From: Vito Macchia Date: Wed, 4 Nov 2020 18:06:31 +0000 (+0100) Subject: Built motion from commit b517aaa2a6638133380e4d135c64a80893061362. Version 3.0.0... X-Git-Url: http://repos.xcallymotion.com/?a=commitdiff_plain;h=876fdfe85e2aa62746119915df910d649ef5eaac;p=motion-next.git Built motion from commit b517aaa2a6638133380e4d135c64a80893061362. Version 3.0.0-alpha --- diff --git a/apidoc/api_project.js b/apidoc/api_project.js index b93595f..5ddc7e2 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-04T17:14:08.552Z", + "time": "2020-11-04T18:00:21.372Z", "url": "https://apidocjs.com", "version": "0.25.0" } diff --git a/apidoc/api_project.json b/apidoc/api_project.json index a6dad9d..4f7460e 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-04T17:14:08.552Z", + "time": "2020-11-04T18:00:21.372Z", "url": "https://apidocjs.com", "version": "0.25.0" } diff --git a/public/18-4967bb0e47bf9114dedd.js b/public/18-4967bb0e47bf9114dedd.js index 49630f2..c03886a 100644 --- a/public/18-4967bb0e47bf9114dedd.js +++ b/public/18-4967bb0e47bf9114dedd.js @@ -1 +1 @@ -var a2_0x5bb8=['head',';secure','fuzzy','gmtOffset','compareDocumentPosition','maxMode','','angular-toasty:\x20No\x20toast\x20title\x20or\x20message\x20specified!','include|use\x20<','regexp','okta\x20jahki','#c2185b','[object\x20ArrayBuffer]','once','a8m.math.kbFmt','outerMargin','یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه','tickHeight','socket.io-client:socket','%d\x20ҫеккунт','dddd\x20[tɛmɛnen\x20lɛrɛ]\x20LT','^\x5c.\x5cw.*$','[Yesterday\x20at]\x20LT','ee82ee','restroom',']\x20LT[-kor]','\x5cb(?:([0-9][0-9_]*)?\x5c.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*\x5c.?[0-9_]*(?:[pP](?:[+-]?[0-9_]+)?)?)\x5cb','thrift','keyup','^uibDatepicker','\x5cb\x5cd+','#FF9900','he\x20ra','EventEmitter','pages','mdHighlightFlags','block','ideograph_advantage','mw-question-offered-answer-list-builder.html','registerFooter','protected','#ff6f00','IEMobile|MSIEMobile','\x27\x20has\x20two\x20type\x20configurations.','socket\x20error\x20%j','周日_周一_周二_周三_周四_周五_周六','cd853f','^gridster','ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை','getBackgroundPoint','getRelativePosition','railBorderXWidth','pre','break-after','button,\x20a,\x20md-button','readonly','#651fff','mdColumn','modelMapper','[sabah\x20saat]\x20LT','[\x5cx80-\x5cxBF]','бир\x20жыл','haml','extra','beagan\x20diogan','getOpenMenuIndex','transform','ALLOWED_METHODS','localDescription','[ahir\x20a\x20','^---s*$','local_tag','$urlService','dropdownAppendToBody','#comment','applyAnimationDuration','before','trimStart','recovery_options','peerconnection:createanswerfailed','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\x20IRP_ALIGN\x20irp_here','stubString','Cannot\x20call\x20a\x20class\x20as\x20a\x20function','#e1f5fe','disableScrollAround','md-desc','[object\x20RegExp]','INVALID','chipAppendDelay','mis','onClone','pointerdown','[;@]','$includeContentLoaded','netscape','bir\x20sagat','mjeseci','sctpmap','','TOUCHPAD.*[78910]|\x5cbTOUCHTAB\x5cb','uri_params','vm.isOpen\x20=\x20!vm.isOpen','á~ñ\x20hó~úr','MⓂMḾṀṂⱮƜ','_delayedDragTouchMoveHandler','xls','firstElementChild','clearParams','aliasPixel','cancelable','pageElement','animationObject','pbi','shouldAddOnBlur','uibTooltip','e-mail','eagerResolve','md-multiple','clean','do_lu_ma_me_gi_ve_sa','plaintext','%d\x20عام','^form','\x5cb(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\x5cb','bidiProperty','uib/template/tooltip/tooltip-html-popup.html','onDomRemoved','[gelecek]\x20dddd\x20[saat]\x20LT','kissing_cat','startingDay','material.components.list','日_一_二_三_四_五_六','fontFamily','article','minRows','shiftKey','soccer','%d\x20ýyl','MONTH','[T~ódá~ý\x20át]\x20LT','setCancelButtonLabel','app/directives/input-item/input-item.html','Object','&?mdOnDeselect','[\x5cufe0e\x5cufe0f]?','\x20minutit','ප.ව.','يومين','$includeContentRequested','getElementsAtEventForMode','BINARY_ACK','reason','ngLink','So_Ma_Di_Wo_Do_Vr_Sa','illuminate\x20illuminance\x20gather','[^\x5c\x5c]\x27','\x5cb(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\x5cb','хвіліна_хвіліны_хвілін','Abs\x20Acos\x20Angle\x20Attachments\x20Area\x20AreaGeodetic\x20Asin\x20Atan\x20Atan2\x20Average\x20Bearing\x20Boolean\x20Buffer\x20BufferGeodetic\x20Ceil\x20Centroid\x20Clip\x20Console\x20Constrain\x20Contains\x20Cos\x20Count\x20Crosses\x20Cut\x20Date\x20DateAdd\x20DateDiff\x20Day\x20Decode\x20DefaultValue\x20Dictionary\x20Difference\x20Disjoint\x20Distance\x20DistanceGeodetic\x20Distinct\x20DomainCode\x20DomainName\x20Equals\x20Exp\x20Extent\x20Feature\x20FeatureSet\x20FeatureSetByAssociation\x20FeatureSetById\x20FeatureSetByPortalItem\x20FeatureSetByRelationshipName\x20FeatureSetByTitle\x20FeatureSetByUrl\x20Filter\x20First\x20Floor\x20Geometry\x20GroupBy\x20Guid\x20HasKey\x20Hour\x20IIf\x20IndexOf\x20Intersection\x20Intersects\x20IsEmpty\x20IsNan\x20IsSelfIntersecting\x20Length\x20LengthGeodetic\x20Log\x20Max\x20Mean\x20Millisecond\x20Min\x20Minute\x20Month\x20MultiPartToSinglePart\x20Multipoint\x20NextSequenceValue\x20Now\x20Number\x20OrderBy\x20Overlaps\x20Point\x20Polygon\x20Polyline\x20Portal\x20Pow\x20Random\x20Relate\x20Reverse\x20RingIsClockWise\x20Round\x20Second\x20SetGeometry\x20Sin\x20Sort\x20Sqrt\x20Stdev\x20Sum\x20SymmetricDifference\x20Tan\x20Text\x20Timestamp\x20Today\x20ToLocal\x20Top\x20Touches\x20ToUTC\x20TrackCurrentTime\x20TrackGeometryWindow\x20TrackIndex\x20TrackStartTime\x20TrackWindow\x20TypeOf\x20Union\x20UrlEncode\x20Variance\x20Weekday\x20When\x20Within\x20Year\x20','#f57c00','unregistered','Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A','illegalRe','setPM','newEndIndex','gutter','%d\x20minutu','incrementMinutes','cookie','[Imorgon]\x20LT','_tones','D\x20MMMM\x20YYYY,\x20A\x20h:mm','जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.','_createLiveElement','\x20өдрийн','[מחר\x20ב־]LT','#fb8c00','một\x20giờ','ޑިސެމްބަރު','ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie','$$ngAnimateParentKey','\x22text\x22','\x5cb(?:ll(?:AgentInExperience|(?:Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(?:Details|ErrorMessage)|ReturnObjectsBy(?:ID|Owner)|Json(?:2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(?:Mag|Norm|Dist)|Rot(?:Between|2(?:Euler|Fwd|Left|Up))|(?:Euler|Axes)2Rot|Whisper|(?:Region|Owner)?Say|Shout|Listen(?:Control|Remove)?|Sensor(?:Repeat|Remove)?|Detected(?:Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|(?:[GS]et)(?:AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(?:Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(?:Scale|Offset|Rotate)Texture|(?:Rot)?Target(?:Remove)?|(?:Stop)?MoveToTarget|Apply(?:Rotational)?Impulse|Set(?:KeyframedMotion|ContentType|RegionPos|(?:Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(?:Queueing|Radius)|Vehicle(?:Type|(?:Float|Vector|Rotation)Param)|(?:Touch|Sit)?Text|Camera(?:Eye|At)Offset|PrimitiveParams|ClickAction|Link(?:Alpha|Color|PrimitiveParams(?:Fast)?|Texture(?:Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get(?:(?:Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(?:PrimitiveParams|Number(?:OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(?:Details|PermMask|PrimCount)|Parcel(?:MaxPrims|Details|Prim(?:Count|Owners))|Attached(?:List)?|(?:SPMax|Free|Used)Memory|Region(?:Name|TimeDilation|FPS|Corner|AgentCount)|Root(?:Position|Rotation)|UnixTime|(?:Parcel|Region)Flags|(?:Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(?:Prims|NotecardLines|Sides)|Animation(?:List)?|(?:Camera|Local)(?:Pos|Rot)|Vel|Accel|Omega|Time(?:stamp|OfDay)|(?:Object|CenterOf)?Mass|MassMKS|Energy|Owner|(?:Owner)?Key|SunDirection|Texture(?:Offset|Scale|Rot)|Inventory(?:Number|Name|Key|Type|Creator|PermMask)|Permissions(?:Key)?|StartParameter|List(?:Length|EntryType)|Date|Agent(?:Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(?:Name|State))|(?:Get|Reset|GetAndReset)Time|PlaySound(?:Slave)?|LoopSound(?:Master|Slave)?|(?:Trigger|Stop|Preload)Sound|(?:(?:Get|Delete)Sub|Insert)String|To(?:Upper|Lower)|Give(?:InventoryList|Money)|RezObject|(?:Stop)?LookAt|Sleep|CollisionFilter|(?:Take|Release)Controls|DetachFromAvatar|AttachToAvatar(?:Temp)?|InstantMessage|(?:GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(?:Length|Trim)|(?:Start|Stop)Animation|TargetOmega|Request(?:Experience)?Permissions|(?:Create|Break)Link|BreakAllLinks|(?:Give|Remove)Inventory|Water|PassTouches|Request(?:Agent|Inventory)Data|TeleportAgent(?:Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(?:Axis|Angle)|A(?:cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(?:CSV|Integer|Json|Float|String|Key|Vector|Rot|List(?:Strided)?)|DeleteSubList|List(?:Statistics|Sort|Randomize|(?:Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(?:CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(?:Slope|Normal|Contour)|GroundRepel|(?:Set|Remove)VehicleFlags|SitOnLink|(?:AvatarOn)?(?:Link)?SitTarget|Script(?:Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(?:Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(?:Integer|String)ToBase64|XorBase64|Log(?:10)?|Base64To(?:String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(?:Load|Release|(?:E|Une)scape)URL|ParcelMedia(?:CommandList|Query)|ModPow|MapDestination|(?:RemoveFrom|AddTo|Reset)Land(?:Pass|Ban)List|(?:Set|Clear)CameraParams|HTTP(?:Request|Response)|TextBox|DetectedTouch(?:UV|Face|Pos|(?:N|Bin)ormal|ST)|(?:MD5|SHA1|DumpList2)String|Request(?:Secure)?URL|Clear(?:Prim|Link)Media|(?:Link)?ParticleSystem|(?:Get|Request)(?:Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(?:Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\x5cb','getMinutes','className','collapseAll','_|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','_liveElement','mdTable','[मागील]\x20dddd,\x20LT','=?mdActive','dddd,\x20YYYY\x20оны\x20MMMMын\x20D\x20HH:mm','Page:','upgrade','ExpansionPanel\x20\x27{0}\x27\x20is\x20not\x20available!\x20Did\x20you\x20use\x20md-component-id=\x27{0}\x27?','max-forwards','double\x20float\x20int32\x20int64\x20uint32\x20uint64\x20sint32\x20sint64\x20fixed32\x20fixed64\x20sfixed32\x20sfixed64\x20bool\x20string\x20bytes','هڪ\x20منٽ','debounceUpdate','badargs','_onTouchMove','interceptor','ستمبر','No\x20interim\x20elements\x20currently\x20showing\x20up.','-webkit-sticky','registerContainerProxy','\x5cb(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(.hb)?|jr(.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs.[sd]|add.[sd]|alnv.ps|bc1[ft]l?|c.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et]).[sd]|(ceil|floor|round|trunc).[lw].[sd]|cfc1|cvt.d.[lsw]|cvt.l.[dsw]|cvt.ps.s|cvt.s.[dlw]|cvt.s.p[lu]|cvt.w.[dls]|div.[ds]|ldx?c1|luxc1|lwx?c1|madd.[sd]|mfc1|mov[fntz]?.[ds]|msub.[sd]|mth?c1|mul.[ds]|neg.[ds]|nmadd.[ds]|nmsub.[ds]|p[lu][lu].ps|recip.fmt|r?sqrt.[ds]|sdx?c1|sub.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/','pie','રાત','há\x20%s','Ait._Som._Mon._Bud._Bre._Suk._Son.','toggleOpen','autohotkey','byteLength','transform-style','mozMatches','\x5c{%','(\x5cb0[xX][a-fA-F0-9_]+)|(\x5cb\x5cd(\x5cd|_\x5cd)*(\x5c.(\x5cd(\x5cd|_\x5cd)*)?)?(_*[eE]([-+]\x5cd(_\x5cd|\x5cd)*)?)?[_a-z]*)','mdCell','Obigo','getBodyRows','longestText','[minulú\x20nedeľu\x20o]\x20LT','STATUS_EARLY','SSSS','apple','#7b1fa2','configMerge','publishedAt','webkitMatchesSelector','[下]dddd\x20LT','^mdInputContainer','mdVisible','ps--active-x','#aa00ff','[a-z_]\x5cw*\x27[\x5cw\x27]*','tail','%define\x20%xdefine\x20%+\x20%undef\x20%defstr\x20%deftok\x20%assign\x20%strcat\x20%strlen\x20%substr\x20%rotate\x20%elif\x20%else\x20%endif\x20%if\x20%ifmacro\x20%ifctx\x20%ifidn\x20%ifidni\x20%ifid\x20%ifnum\x20%ifstr\x20%iftoken\x20%ifempty\x20%ifenv\x20%error\x20%warning\x20%fatal\x20%rep\x20%endrep\x20%include\x20%push\x20%pop\x20%repl\x20%pathsearch\x20%depend\x20%use\x20%arg\x20%stacksize\x20%local\x20%line\x20%comment\x20%endcomment\x20.nolist\x20__FILE__\x20__LINE__\x20__SECT__\x20\x20__BITS__\x20__OUTPUT_FORMAT__\x20__DATE__\x20__TIME__\x20__DATE_NUM__\x20__TIME_NUM__\x20__UTC_DATE__\x20__UTC_TIME__\x20__UTC_DATE_NUM__\x20__UTC_TIME_NUM__\x20\x20__PASS__\x20struc\x20endstruc\x20istruc\x20at\x20iend\x20align\x20alignb\x20sectalign\x20daz\x20nodaz\x20up\x20down\x20zero\x20default\x20option\x20assume\x20public\x20bits\x20use16\x20use32\x20use64\x20default\x20section\x20segment\x20absolute\x20extern\x20global\x20common\x20cpu\x20float\x20__utf16__\x20__utf16le__\x20__utf16be__\x20__utf32__\x20__utf32le__\x20__utf32be__\x20__float8__\x20__float16__\x20__float32__\x20__float64__\x20__float80m__\x20__float80e__\x20__float128l__\x20__float128h__\x20__Infinity__\x20__QNaN__\x20__SNaN__\x20Inf\x20NaN\x20QNaN\x20SNaN\x20float8\x20float16\x20float32\x20float64\x20float80m\x20float80e\x20float128l\x20float128h\x20__FLOAT_DAZ__\x20__FLOAT_ROUND__\x20__FLOAT__','skipHide','attrs2','font-size-adjust','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bouquet','र_सो_मं_बु_गु_शु_श','','toName','dolls','%d\x20মাস','prolog','[երեկ]\x20LT','%d\x20საათი','justify-content','box-shadow','image','mdPanel:\x20MdPanel\x20Animations\x20failed.\x20Hiding\x20panel\x20without\x20animating.','yaml','connection:%s','lasso','([G])([0-9]+\x5c.?[0-9]?)','forceFallback','getPointerStyle','%d\x20diimmut','warn','jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec','सुबह','post\x20%s','\x5c^rem{','closing\x20session\x20','toHex8String','un\x20mois','findFocusTarget','%s\x20múlva','usePointStyle','SSSSSSS','defaultMaxListeners','[Inniu\x20ag]\x20LT','miz','onInvalid','','\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','getMembers','WhatsappAccountActionsController','src/js/modules/forgot/forgot.html/forgot-[chunkhash].html','Delete\x20dispositions','IntervalsController','ScreenRecordings','smsQueue:update','FreshdeskAccount\x20properly\x20tested','Restored\x20Contact','createOrEditMailAccountMailCannedAnswer','pieChart','SmsAccountActionsController','header','collapsing','hasMicrophone','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20vtigerConfiguration?','dashboard:update','integrations/desk/accounts/:id/configurations','selectedFreshsalesConfiguration','selectedFaxAccounts','TemplatesController\x20as\x20vm','users/:id/screen_recordings','/zohoAccounts','deselectVoiceRecordings','skype','deleteOpenchannelAccountOpenchannelCannedAnswer','ringingId','CreateOrEditMailAccountDialogController','permissionId','app.openchannel','cancelUpdateCondition','Joanna','Outbound\x20route\x20not\x20deleted!','createOrEditContext','\x27ws\x27','Somali','subtract','ms-search-bar','callStatuses','One\x20Time','splice','dashboard','pow','openchannelInteraction','xorWith','COUNT\x20(DISTINCT\x20','Europe/Madrid','voice/mails/:id','America/Juneau','app/errors/404','ChatProactiveAction\x20deleted!','AgentHomeDashboardMultiChannelMailController','api.voicePrefix.save','Pacific/Norfolk','WEBSITES','Last','ZendeskAccount','setHours','.ms-nav-button','

','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/tag/dialog.html/dialog-[chunkhash].html','angucomplete-alt:clearInput','editInterval','Authorization','deleteSmsQueue','VtigerAccounts','Geraint','NOT\x20LIKE','api.voiceRecording.update','exportSelectedPlugins','DASHBOARDS.TAGS','src/js/modules/main/apps/voice/views/realtime/telephones/view.html/view-[chunkhash].html','Pacific/Fakaofo','THEMES','TCL:\x20vm.recording[vm.path]','EditOpenchannelAccountAppagentDialogController','GET_QUEUE','CONFIGURATIONS','exportSelectedIvrCampaignHoppers','MAIL.ALL_AGENTS','ListCustomFieldsController','nospace','src/js/modules/main/apps/tools/views/intervals/intervals.html/intervals-[chunkhash].html','WhatsappAccountagentaddController','deleteInternalRoute','https://','openchannelInteractionTags:save','getCustomFields','apps.analytics','icon-playlist-plus','microphoneMute','erlangAbandonmentRate','Kazakh','nonat','includes','EditMailAccountAppsystemDialogController','rpc/chat/queues/:id/notify','General','Warning','users/:id/unpause','\x27th\x27','getOutboundRouteApps','Thai\x20(Thailand)','slice','msClickToCall','Metric\x20properly\x20deleted!','Streets','Inbound','searchTextChange','AVG\x20(','delete\x20interval','nameField','Datetime','ComposeMailInteractionDialogController','MailAccount\x20properly\x20deleted!','off','\x20has\x20been\x20deleted!','jscripty/projects/:id/answers','INTEGRATIONS.EDIT_SERVICENOWCONFIGURATION','userStatusOptions','createOrEditTrigger','configuration','app.motiondialer.realtime.abandonedcalls','msNavigationNode','orientation','src/js/modules/main/apps/contactmanager/views/contacts/create/dialog.html/dialog-[chunkhash].html','\x27report_chat_queue\x27','integrations/zendesk/accounts/:id/clone','Contact\x20properly\x20updated!','CannedAnswer','$substring','ZohoAccountConfigurationsController','method','Malayalam','Delete\x20CustomField','proactive','UserSmsQueue','deleteOutboundRouteApp','STAFF.AGENTS','selectedFaxQueues','deleteWhatsappAccountInteraction','zoho.com','month','SYSTEM:GET_VOICEMAILS','DASHBOARDS.GENERAL','MsThemeOptionsController\x20as\x20vm','FAX.FAXQUEUES','The\x20pause\x20will\x20be\x20deleted.','Europe/Oslo','dialer','OpenchannelQueues','chat/groups/:id/messages','Widget\x20has\x20been\x20deleted!','Arabic\x20(Israel)','SmsAccountsController\x20as\x20vm','Korean\x20Male','stopInterval','customization','deselectZohoAccounts','openchannel/accounts/:id/users','READ_PERMISSION','CreateOrEditReportDialogController','icon-deskphone','delete\x20openchannelAccount','queues','deleteSelectedPauses','deselectFaxQueues','fax/reports/transfer/describe','Unable\x20to\x20shutdown\x20Jabra\x20library','America/Anchorage','from-voip-provider','noanswer','new','rpcWhatsappQueuesWaitingInteractions','cm/contacts/merge','UserController\x20as\x20vm','selectedTags','app.tools.customDashboards.edit','isStepCurrent','getInboundRouteApps','msPhonebar','ANSWERED','delete\x20MailSubstatuss','Module\x20not\x20included\x20in\x20the\x20license','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20freshdeskAccounts?','analytics/custom_reports/:id/clone','api.user.save','ZendeskConfiguration\x20properly\x20deleted!','Spanish\x20(Spain)','pm_id','avgHoldTime','gsm','IvrCampaign\x20properly\x20deleted!','voiceQueue','rpcVoiceQueues','Joey','unit','SYSTEM:GET_PAUSES','square/recordings/:id/clone','getTime','queryJscriptySession','app.integrations.vtigerAccounts','exportSelectedUsers','integrations/desk/accounts/:id/fields','responsive','apiName','beep','app.settings.system','VOICE.NEW_VOICERECORDING','notification','^msVerticalStepper','orange-A700-bg','User\x20properly\x20saved!','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20whatsappQueues?','CALLYSQUARE.CALLYSQUARE','Project\x20has\x20been\x20','EditInboundAppvoicemailDialogController','Indian/Chagos','Wide','Pacific/Pago_Pago','selectedZohoConfiguration','addApi','changePassword','SYSTEM:GETvoiceQueues','MailAccountagentaddController','patchConference','delete\x20hopper','yAxes','removeQueues','EditChatWebsiteAppautoreplyDialogController','delete\x20variable','customFields','resetlistdialog','ms-widget','app/main/apps/plugins','SYSTEM:DELETEvoicePrefix','removeInfoBar','themes','$transitions','deleteSelectedContexts','+=400','removeTeams','MAIL.SELECTED_AGENTS','internalDial','Indian/Cocos','mail/substatuses/:id','tcp','delete\x20network','SYSTEM:ivrCampaign.REMOVELIST','TOOLS.TRIGGERS','outboundQueues','AgentGeneralInteractionController','Sms','ActionId','Turkish','TAB','api.cmHopper.update','API:ERROR','UpdatesController','rpc/fax/queues/waitinginteractions','Fields\x20copied!','deselectSmsQueues','VOICE.RUNSENTIMENT_VOICERECORDING','queue','createOrEditContact','selectedDescriptions','/companies','Email\x20Report\x20Transfer','ringingMute','mwForm.pageEvents.changePage','constructor','priority','deleteQueueCampaignHopperBlack','MOTIONDIALER.IVRCAMPAIGNS','FaxAccounts','newDeskConfiguration','mail/queues/:id','src/js/modules/core/directives/ms-click-to-call/ms-click-to-call.html/ms-click-to-call-[chunkhash].html','src/js/modules/main/apps/callysquare/views/odbcs/create/dialog.html/dialog-[chunkhash].html','UserVoiceDashboardDialerController\x20as\x20vm','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/noop/dialog.html/dialog-[chunkhash].html','extraData','DeskAccountsController','Version','src/js/modules/main/apps/integrations/views/deskAccounts/edit/item/dialog.html/dialog-[chunkhash].html','command','stepNumber','apps.tools.intervals','\x27S\x27','deleteDynamics365Configuration','project','Anonymous','\x27mail_interactions\x27','Europe/Zurich','desk','Delete','outboundanswerRate','delete\x20screenRecording','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20openchannelAccounts?','FaxAccountDispositionsController','src/js/modules/main/apps/chat/views/chatQueues/create/dialog.html/dialog-[chunkhash].html','The\x20chatProactiveAction\x20will\x20be\x20deleted.','msNavigation::stateMatched','deleteAction','chatInteraction','Message\x20properly\x20sent!','newFreshsalesConfiguration','TOOLBAR.USER_FORCE_LOGOUT','\x27KHOMP\x27','us-east-1','SYSTEM:GET_VARIABLES','src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/zendeskConfigurations/dialog.html/dialog-[chunkhash].html','country','projects','UNKNOWN','deleteSelectedOutboundRoutes','faxInteractionDownload','DASHBOARDS.UNKNOWN','Maja\x20(Polish,\x20Female)','api.interval.delete','Comic\x20Sans\x20MS','addNewMailQueue','apps.settings','app.contactmanager.contacts','\x27progressive\x27','vertical','createOrEditFreshdeskConfiguration','Error\x20creating\x20tag!','text','STAFF.PERMISSIONS_WARNING_ENABLE_ALL','What\x20would\x20you\x20name\x20your\x20list?','callback','CALLYSQUARE.NEW_ODBC','selectedChatWebsiteProactiveActions','selectedOperator','altDate','createdAt,updatedAt,id,filename,projectName,uniqueid,callerid,extension,audio,savePath,format','get_path','api.schedule.save','\x27never\x27','chat/interactions/:id','endTime','Finnish','ENDS_WITH','saveInterval','multipleUsers.name','comedia','hu-HU','onRemoveMember','America/Indiana/Tell_City','America/Miquelon','hasPermission','es-PR','pTalking','src/js/modules/main/apps/integrations/views/deskAccounts/edit/view.html/view-[chunkhash].html','icon-email','The\x20max\x20allowed\x20size\x20is\x20','European\x20Catalan\x20Female','interactions','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20group?','CreateOrEditSmsCannedAnswerDialogController','apps.integrations.zohoAccounts','DashboardItem\x20properly\x20created','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20freshsalesConfiguration?','analyticDefaultReport','api.dashboardItem.update','getConfigurations','squareOdbc','VtigerAccountsController','delete\x20chanSpy','deleteSelectedFreshsalesAccounts','deselectUserProfiles','integrations/sugarcrm/accounts/:id','gotoZohoAccounts','SYSTEM:GETuserProfile','Swahili','api.dashboard.update','FORGOTPASSWORD.LINK_SENT','pick','detectBrowser','GROUP\x20BY\x20','integrations/reports/:id','FaxQueue\x20properly\x20created','_path','apps.jscripty.projects','_id','onSaveFaxQueue','api.intVtigerConfiguration.delete','Spanish\x20(Chile)','OutboundRoute\x20properly\x20deleted!','^mdSidenav','$get','Oriya','deleteAgent','hopperFinal','layoutStyle','onVoiceQueue','/tools','sounds','spy','selectedIntervals','src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/item/dialog.html/dialog-[chunkhash].html','apps.callysquare.projects','users/:id/openchannel_accounts','hasClass','whatsapp/accounts/:id/notify','assets/images/business/queueCampaigns.jpg','EditWhatsappAccountAppagentDialogController','More','originateInProgress','gotoSugarcrmAccounts','src/js/modules/footer/layouts/vertical-navigation/footer.html/footer-[chunkhash].html','dialogflow','Emma','every','ivrCampaignHopperFinals','FaxAccountActionsController','Pause','responseData','plugin@get','sw-KE','api.mailQueue.update','apps.integrations.servicenowAccounts','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/blacklistadd/blacklistadd.html/blacklistadd-[chunkhash].html','zohoAccounts','CreateOrEditchanSpyDialogController','exportSelectedIvrCampaignHopperHistories','MailQueueagentaddController','TOOLBAR.WEBRTC_MICROPHONE_NOT_AVAILABLE','users/:id/groups','EditWhatsappAccountAppamazonlexDialogController','onInteractionSave','api.trigger.delete','delete\x20ServicenowAccounts','ShowOfflineMessageOfflineMessageDialogController','Project\x20updated!','Outbound','CreateOrEditDashboardItemDialogController','rpcTrunks','Romansh','err','call\x20with\x20session\x20Id\x20','mwFormBuilder','Atlantic/Faroe','OpenchannelAccountId','selectedVoicemails','ServicenowAccounts','Openchannel\x20Interaction','IvrCampaigns','awsLexRegion','CompanyController\x20as\x20vm','selectedOutboundRouteApps','delete\x20FaxAccounts','ndauth_url','ZohoAccount\x20updated!','ANALYTICS.RENAME','chat/websites/:id/canned_answers','newZohoConfiguration','Asia\x20Pacific\x20(Mumbai)','arrayzone','SYSTEM:GET_PROJECTS','getNavigation','rpcFaxQueuesWaitingInteractions','EditChatWebsiteApptagDialogController','isPause','newCustomDashboard','api/plugins','defer','id,name,dialPrefix','complete','users/:id/whatsapp_accounts','getOpenchannelInteractions','voiceQueue:save','deleteSelectedQueueCampaignHopperBlacks','api.userProfile.update','src/js/modules/main/apps/callysquare/views/squareRecordings/squareRecordings.html/squareRecordings-[chunkhash].html','fax/accounts/:id/send','lang','analytics/custom_reports/:id/run','agents','Japanese\x20Female','Asia/Baku','Sound','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27ringing\x27','src/js/modules/main/apps/mail/views/realtime/accounts/view.html/view-[chunkhash].html','motion2.home.abandoned.voice.calls:','b:\x20Only\x20spy\x20on\x20channels\x20involved\x20in\x20a\x20bridged\x20call.','voicemail','rpcOpenchannelQueuesWaitingInteractions','licenseKey','Legend','DASHBOARDS.LAST_MONTH','predictiveIntervalDroppedCallsCallersExit','SYSTEM:GETLISTS','SYSTEM:GETsmsAccount','integrations/desk/fields/:id/clone','ShowQuestionsSessionDialogController','app.dashboards.general.whatsapp','ondevicechange','incoming','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):NoOp(No\x20number\x20available)','en-AU','createOrEditUserProfile','api','Arial','Asia/Ashgabat','DATE\x20(','src/js/modules/main/apps/settings/views/system/system.html/system-[chunkhash].html','selectedMode','QueueCampaigncloneController','SYSTEM:GET_TAGS','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20report?','deleteVoiceQueuesChannels','globalLists','whatsappAccount@get','CreateOrEditSquareRecordingDialogController','Delete\x20Interval','Dynamics365Account\x20properly\x20saved!','ANALYTICS.METRICS','apps.voice.musiconholds','keyBy','arraypriority','deleteSugarcrmAccount','arraybuffer','deleteTeam','webrtc','Thumb','it-IT','outboundDropRate','api.openchannelAccount.save','isCustomField','CreateOrEditCustomFieldDialogController','UploadSoundDialogController','sessionsgoto','chatAccounts','integrations/freshsales/configurations/:id/subjects','stateService','mail/accounts/:id/out_servers','fullPath','fromJson','screenRecording','src/js/modules/core/directives/ms-stepper/templates/vertical/step/vertical-step.html/vertical-step-[chunkhash].html','SYSTEM:DELETEvoiceChanSpy','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/teamadd/teamadd.html/teamadd-[chunkhash].html','selectedOpenchannelQueues','msNavigationItem','selectAllContexts','deleteListCustomField','WebReportDialogController','globalStatusFilter','isAdmin','QueueCampaignController','api.voiceChanSpy.delete','Quechua','audioinput','integrations/reports/:id/clone','getFirstAvailableContact','/openchannel','devices','Re:','Korean\x20(South\x20Korea)','Upload\x20error','1st','apps.contactmanager.companies','Latvian','originalMessage','unshift','chatQueue:remove','merge','EditInternalAppsetDialogController','Russell','selectAllChatWebsites','api.smsAccount.delete','createOrEditZendeskConfiguration','msMasonryController','deleteTag','integrations/servicenow/accounts/:id/configurations','analytics/tree_reports/:id','Fields\x20has\x20been\x20saved!','voiceQueuesLog/:id/clone','QueuesFaxRealtimeController','journey','QUICKPANEL.INFO','whatsappInteractions','motion2.','User\x20not\x20deleted!','LicenseController\x20as\x20vm','whatsapp_queue_waiting_interaction:save','app/main/apps/voice','createOrEditDeskConfiguration','\x20and\x20its\x20subnode\x20will\x20be\x20deleted.','terminate\x20->\x20session','interactionid','api.cloudProvider.save','si-LK','Dynamics365Account','addNewOpenchannelQueue','ChatProactiveAction\x20properly\x20created','$stateProvider','SYSTEM:DELETEcmCustomField','src/js/modules/main/apps/analytics/views/reports/run/web/dialog.html/dialog-[chunkhash].html','xmd-voicequeueid','Contact\x20not\x20available','scrollWidth','ERROR\x20OPEN\x20CONTACT','contrast4','ui.router','saveSugarcrmConfiguration','messages','imagesLoaded','max-width:\x20500px;','users/:id/contacts','ACCOUNT:SEND','app.whatsapp.realtime.agents','api.intFreshsalesConfiguration.update','getMailAccountLabel','\x27all\x27','arraymonitor_format','sms/interactions/describe','vm_pb','whatsapp/accounts/:id/clone','EditChatWebsiteAppdialogflowDialogController','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/agentadd/agentadd.html/agentadd-[chunkhash].html','hopper\x20#','monitor','delete\x20chatProactiveAction','\x279600\x27','cafrenchfemale','Resource\x20part\x20\x22','CreateOrEditVoiceRecordingDialogController','treeCustomInstance','Asia/Srednekolymsk','getSize','selectAllReports','America/Rio_Branco','ZohoAccount\x20properly\x20created','app.motiondialer.realtime','campaigns/:id/lists','forIn','queueaddchannel','app/errors/500','empty','ap-northeast-1','hostname','saveMailQueue','calls','MsShortcutsController','reports','highlight','bg-BG','deleteSelectedIntervals','sugarcrmAccounts','SYSTEM:DELETEtemplate','Montenegrin','\x27agi://127.0.0.1/square,{{project.name}}\x27','WHATSAPP.NEW_WHATSAPPACCOUNT','newUserProfile','dialPredictiveIntervalMaxThreshold','deleteFaxAccount','usspanishmale','EditOpenchannelAccountAppsystemDialogController','mozHidden','createOrEditNetwork','-02:00','UserDashboardGeneralController\x20as\x20vm','en-NG','delete\x20project','enqueue','TOOLS.EDIT_CUSTOMDASHBOARD','Antarctica/Casey','\x20selected','copy','web-report','ANALYTICS.ANALYTICS','deleteSelectedTriggerAnyConditions','mail/messages/:id/reject','openchannel/accounts/describe','boxed','saveUser','intSugarcrmAccount','mail/queues/:id/teams','application','stopplugin','TOOLS.NOTIFICATIONS.CONDITION_DELETED_SUCCESS_TITLE','addNewVtigerAccount','mailMessage:save','installing','America/Thunder_Bay','TOOLBAR.ENGLISH','selectAllUserProfiles','newServicenowConfiguration','createOrEditProjectSession','start3WayConf','exportSelectedOpenchannelAccountOpenchannelCannedAnswers','CSquare\x20Details\x20Report','Lists','createOrEditMailQueue','Dialer\x20Hopper\x20Final','subStatuses','TOOLS.EDIT_ALLCONDITION','removeLists','rpc/agents/:id/capacity','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20sessions?','Antarctica/Mawson','isDateBeforeToday','Europe/Amsterdam','mail/reports/queue/:id','DashboardItem\x20properly\x20deleted!','auth/local/forgot','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20templates?','voice/mails/messages/:id/download','arraytransport','List\x20properly\x20deleted!','sms/accounts/:id/applications','openchannel/queues/:id','saveFaxQueue','Persian\x20(Iran)','logout','Italian','DASHBOARDS.OCTOBER','src/js/modules/toolbar/changepassword/changepassword.html/changepassword-[chunkhash].html','-message','Preview','$[${LEN(${CDR(prefix)})}\x20>\x200]?Goto(','sounds/:id/clone','\x27report_mail_transfer\x27','Persian','hoursS','deleteVoiceQueue','America/Toronto','preferredLanguage','success','CreateOrEditServicenowConfigurationDialogController','sql','Checkboxes','digit','xlsx','deleteSelectedTeams','parentDisposition','Pacific/Bougainville','isMobile','VOICE.INTERNAL','Mathieu','apps.home.whatsapp','deleteSelectedOpenchannelAccountOpenchannelCannedAnswers','deleteChatWebsiteInteraction','field,alias,function,format,groupBy,orderBy,custom,MetricId','Square\x20ODBC\x20properly\x20tested','call','src/js/modules/main/apps/staff/views/agents/edit/queueadd/queueadd.html/queueadd-[chunkhash].html','Arabic\x20(Kuwait)','SYSTEM:GET_INTERVALS','matchingField','en-PH','SquareProjectId','getValues','unhold','integrations/dynamics365/configurations/:id/clone','license/:id','ASC','/squareRecordings','app.integrations.sugarcrmAccounts.edit','selectReport','Antarctica/Troll','CHAT.EDIT_','Carmen','deleteMohSound','password','rpc/openchannel/queues','CreateOrEditSmsQueueDialogController','g722','CreateOrEditDispositionDialogController','chat/websites/:id/snippet','key','undefined','TOOLS.NOTIFICATIONS.CONDITIONS_DELETE_MESSAGE','getFormats','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/queue/dialog.html/dialog-[chunkhash].html','delete\x20odbc','AdvancedSearchController','invoke','object','createOrEditAgent','INTEGRATIONS.NEW_VTIGERACCOUNT','pauses/describe','DASHBOARDS.AUGUST','src/js/modules/main/apps/dashboards/views/general/agent/home/abandoned/dispose/dialog.html/dialog-[chunkhash].html','INTEGRATIONS.ZENDESKACCOUNTS','src/js/modules/main/apps/sms/views/smsAccounts/edit/smsCannedAnswers/dialog.html/dialog-[chunkhash].html','contactManager','AgentGeneralPopupController','monthFrom','Outgoing','Reports','exportSelectedVoicemailMessages','The\x20smsAccount\x20will\x20be\x20deleted.','ChatQueue\x20properly\x20created','attachments/:id','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chatWebsites?','The\x20whatsappQueue\x20will\x20be\x20deleted.','The\x20metric\x20will\x20be\x20deleted.','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20offlineMessages?','selectedTrunks','loadNextPage','allowDelete','delete\x20outboundroute','api.intZohoAccount.update','$destroy\x20event\x20fired','AgentsMotionDialerRealtimeController\x20as\x20vm','\x22\x20err:','delete\x20metric','api.voiceMusicOnHold.delete','onSaveQueue','Europe/Vilnius','saveCustomDashboard','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/close/dialog.html/dialog-[chunkhash].html','app.tools.trunks.edit','app.voice.realtime.queue_calls','UserMailAccount','\x27squared\x27','saveSmsQueue','question,answer','Would\x20you\x20like\x20to\x20update\x20your\x20system?','src/js/modules/errors/404/error-404.html/error-404-[chunkhash].html','Type','red-300-fg\x20icon-phone-hangup','ru-RU','folded','chat/proactive_actions/describe','The\x20theme\x20\x22','grammar','recallme','ANALYTICS.EDIT_EXTRACTEDREPORT','Accept','api.intDeskConfiguration.save','Restore\x20Contacts','getAttachment','firstLastDayMonth','delete\x20zohoAccount','previousStep','TOTAL','EditInternalAppcustomDialogController','ChatWebsiteActionsController','.results','CreateOrEditCloudProviderDialogController','isSupported','variables/:id/clone','onRemoveUserWhatsappQueue','/mailSubtatuses','AllCondition\x20properly\x20deleted!','INTEGRATIONS.NEW_ZENDESKACCOUNT','SYSTEM:DELETEuserProfile','CONTACTMANAGER.COMPANIES','contact_import_error','/marketplace','','Africa/Johannesburg','mwFormUtils','su-ID','America/Scoresbysund','app.plugins','TOOLS.NEW_INTERVAL','DASHBOARDS.NONE','INTEGRATIONS.EDIT_SUGARCRMCONFIGURATION','voicemailMessages','AccountId','login','ngEmbed','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?','notifications/:id','chatWebsite','SmsQueueController\x20as\x20vm','JscriptyProjectController\x20as\x20vm','trunk_name','vm.queueCampaign.dialMethod\x20===\x20\x27booked\x27','\x270\x27','smsInteraction:update','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20agent?','deleteDeskConfiguration','Asia/Gaza','createOrEditIvrCampaignHopper','production','version/fetch','analytics/field_reports/:id','whatsappInteraction','delete\x20template','falsepriority','Contexts','destaccountcode','sms/reports/transfer/:id','app.settings.updates','FaxQueueController','deleteSelectedFields','TOOLBAR.NOTIFICATION_TITLE_RECIPIENT','getActiveTheme','Delete\x20QueueCampaign','ta-LK','loadLastMessage','createdAt,updatedAt,id,name,username,remoteUri,password,serverUrl,description','musiconholdMohSounds','Unknown\x20status','api.intSugarcrmConfiguration.update','src/js/modules/main/apps/staff/views/telephones/create/dialog.html/dialog-[chunkhash].html','open','AgentsMotionDialerRealtimeController','Interlingua','mail_queue_waiting_interaction:remove','jscriptyProject','alias','es-PY','\x20deleted!','ChineseTraditional','limitObjectFromTo','delete\x20description','authInterceptor','CDR(type)=outbound','sounds/:id','ServicenowAccount\x20properly\x20saved!','XCALLY-MOTION-ANSWER=1','setToggleItem','TOOLS.DISPOSITIONS','CreateOrEditHopperCampaignIdDialogController','showMailInteraction','MotionDialerRealtimeController','app/quick-panel','onTransfer','src/js/modules/main/apps/openchannel/views/openchannelQueues/openchannelQueues.html/openchannelQueues-[chunkhash].html','+04:00','saveVoiceQueue','app.voice.voicePrefixes','You\x20can\x27t\x20remove\x20service\x20account','DropRate','+06:30','src/js/modules/main/apps/mail/views/realtime/agents/view.html/view-[chunkhash].html','removeCondition','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20reports?','SYSTEM:GET_','TOOLS.NOTIFICATIONS.TRIGGER_DELETE_TITLE','+10:30','/customizations','tue','data2','Image\x20is\x20loaded','columnName','Telugu','','amd','About','Turkish\x20(Turkey)','square/odbc/:id/test','\x27tcp\x27','deselectScheduler','setFolded','whatsappQueue:remove','VoiceQueueId','rpc/chat/queues','Miguel','users/describe','tail','createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','intZohoConfiguration','freshsalesAccount','analytics/default_reports/:id/clone','src/js/modules/core/directives/ms-dual-multiselect/ms-dual-multiselect.html/ms-dual-multiselect-[chunkhash].html','-07:00','selectedIntervalIntervals','addNewscreenRecording','SSML','US\x20Spanish\x20Male','mergeContact','isHiddenField','SmsAccountSmsCannedAnswersController','arrayenvelope','\x27ASC\x27','deleteSelectedScreenRecordings','queueCampaigns','api.pm2.save','addAllCondition','ChatWebsitesController\x20as\x20vm','app.openchannel.realtime.queues','/api/transfer?number=','selectTagsChanged','apps.mail.mailQueues','Star','integrations/zendesk/accounts/describe','allconditions','Please\x20enable\x20browser\x20notifications!','selectedVoiceQueues','faxAccount','tools','selectedTriggers','FromId','Customer\x20Ip','selected','integrations/zoho/configurations/:id/descriptions','JscriptyProjectsController','selectedResultIndex','Pacific/Chatham','rpc/voice/queues/channels/:uniqueid/redirect/:exten','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20cannedAnswers?','ZendeskAccount\x20properly\x20tested','onComplete','Agent\x20password\x20properly\x20updated!','SYSTEM:DELETEvoiceQueue','sw-TZ','Interaction','blue-grey-A200-fg','ivrCampaignHoppers','exportSelectedDispositions','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperFinals?','calleridname','getHistories','auth/local','voice/contexts/describe','whatsapp/interactions/:id/messages','CreateOrEditMailCannedAnswerDialogController','isFirstStep','intFreshsalesConfiguration','vm_home.sidebar','OPENCHANNEL.NEW_OPENCHANNELCANNEDANSWER','Hebrew','EditWhatsappAccountAppqueueDialogController','Openchannel\x20Report\x20Queue','WhatsappAccount\x20properly\x20created','FaxAccountInteractionsController','SYSTEM:GET_TEMPLATES','number','TelephonesController\x20as\x20vm','Italian\x20(Italy)','{part}/i18n/{lang}.json','outboundAbandonRate','gotoPreviousStep','SYSTEM:DELETECONFIGURATIONFIELD','firstLevel','CompaniesController\x20as\x20vm','localstationid','en-NZ','api.pm2.update','getFaxAccountApps','delete\x20mailAccount','deleteSelectedChatWebsiteChatCannedAnswers','getResponseSheetRow','prompt','populateResults','arraymaxrate','SmsQueueagentaddController','saveGeneral','cm/hopper/opencontacts','SETTINGS.JIRA_ERROR_MESSAGE','VoiceQueue\x20properly\x20created','setFormatTime','automations/:id/conditions','delete\x20vtigerConfiguration','teams/describe','TriggerController','GROUP_CONCAT\x20DESC','exportSelectedTriggerActions','VoiceQueue\x20updated!','addCall\x20->\x20target,\x20inbound,\x20fullname','\x27wss\x27','awsPollyRegion','stopping','getPlugins','AgentHomeMyContactsController','facebook','onSaveSmsInteraction','vm.globalCustomField.type','interval@get','openchannel/accounts/:id/send','\x27openchannel_accounts\x27','gotoChatWebsites','QueueCampaignlistaddController','selectedPauses','cloudProviders/:id/clone','removeByInteraction','MsNavController','Process\x20stopped!','ChatInternalController','/cannedAnswers','customizations','/chanSpies','app.contactmanager','downloadfile2','get_parent','gotoChatQueues','The\x20servicenowConfiguration\x20will\x20be\x20deleted.','Round\x20Robin\x20Memory','jscriptyAnswerReport','phoneBarExpires','vm.options.isOpen','DASHBOARDS.VOICE','Asia/Pontianak','CreateOrEditDynamics365AccountItemDialogController','src/js/modules/main/apps/openchannel/views/realtime/realtime.html/realtime-[chunkhash].html','VOICE.INBOUND','\x27ru\x27','horizontal','saveDeskAccount','\x27wrapup\x27','audio','src/js/modules/main/apps/tools/views/pauses/create/dialog.html/dialog-[chunkhash].html','totalSteps','TriggersController\x20as\x20vm','\x20has\x20been\x20reset','src/js/modules/main/apps/staff/views/agents/edit/changepassword/changepassword.html/changepassword-[chunkhash].html','api.schedule.delete','ZohoAccounts','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27paused\x27','src/js/modules/main/apps/integrations/views/deskAccounts/create/dialog.html/dialog-[chunkhash].html','api.intZohoConfiguration.delete','CHAT.EDIT_CHATPROACTIVEACTION','windowHeight','invalid','MAILACCOUNT:SEND','paragraph','auth/local/reset/:token','INTEGRATIONS.EDIT_ZOHOCONFIGURATION','Amharic\x20(Ethiopia)','Portuguese\x20(Brazil)','en-GB','newContact','api.jscripty.account','voice/agents/reports/:id','userProfile/sections/:id/clone','The\x20squareRecording\x20will\x20be\x20deleted.','Contact\x20ID\x20','readOnly','\x0a','hopperBlack\x20#','Please\x20use\x20only\x20json\x20files','timezone','app.sms.smsAccounts.edit','processing','integrations/zoho/accounts/describe','webbar:originate','assignTo','OpenchannelAccountsController','app.voice','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/system/dialog.html/dialog-[chunkhash].html','Plugin\x20uninstalled!','nb-NO','api.smsQueue.delete','Whatsapp\x20Queues','\x27ko\x27','selectedWhatsappAccountInteractions','src/js/modules/main/apps/callysquare/views/squareRecordings/create/dialog.html/dialog-[chunkhash].html','custom','ReferAttendedDialogController','Indian/Maldives','Asia/Pyongyang','apps.settings.networks','api.analyticReport.delete','delete\x20cloudProvider','Unknown','failed','SYSTEM:GET_LISTS','AgentHomeVoiceController','displayCannedAnswerInput','HANGUPCAUSE_41','delete\x20internalroute','#2d323e','Staff','12000','angular-cron-jobs','FaxAccountsController','chatGroup:remove','getIvrCampaigns','mobile','msCard::cardTemplateLoaded','campaign','disableGetContact','voice/agents/reports/describe','EditFaxAccountAppcloseDialogController','getSmsAccountApps','selectedFaxAccountApps','+01:00','EditWhatsappAccountApp','unreadTotalGroupMessages','api.cmList.update','onRemoveWhatsappQueue','runsentimentSelectedVoiceRecordings','mailStatusTime','#ffffff','Transfer\x20','Plugin\x20properly\x20saved!','notes','createOrEditWhatsappQueue','UserProfilePermissionsController','verifySmtp','integrations/servicenow/fields/describe','app.fax.faxQueues.edit','hangup','app.whatsapp.whatsappQueues','ChatQueuesController\x20as\x20vm','onLogin','input','ChatQueues','InternalRoute\x20properly\x20deleted!','app.sms.smsAccounts','currentConferenceSessions','rpc@getTelephones','Delete\x20chanSpy','columnCount','MailSubstatuses','option','uninstall\x20plugin','companiesMap','chat/groups/:id','apps.settings.generals','ZohoAccountsController','getMusicOnHolds','Hausa','triggerActions','red-300-fg\x20icon-close-circle','api.campaign.update','openchannelInteractionDownload','icon-tablet','volume','wholerow','src/js/modules/main/apps/marketplace/views/plugins/create/dialog.html/dialog-[chunkhash].html','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/interval/dialog.html/dialog-[chunkhash].html','getWhatsappQueues','CSV','TeamagentaddController','Quarters','newAllCondition','ChanSpiesController\x20as\x20vm','initializeRealtimeCampaign','\x27roundrobin\x27','setOrientation','src/js/modules/main/apps/fax/views/faxQueues/edit/agentadd/agentadd.html/agentadd-[chunkhash].html','Mobile','playrecording','OmniWeb/','ServicenowAccount\x20properly\x20tested','VIDEO.CANT_DOWNLOAD_THIS_FILE','app.settings.networks','direction','+03:30','IvrCampaignController','apps.plugins','src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/interval/dialog.html/dialog-[chunkhash].html','TOOLS.NEW_TRUNK','blue-A700','failedRows','api.intSugarcrmConfiguration.delete','api.chatQueue.delete','api.sms.account','shift','User\x20updated!','closeReason','-name','deleteChatWebsiteApp','unknown-version','Fewest\x20Calls','icecandidate','msRandomClass','Highest','rpcCampaigns','CreateOrEditSugarcrmAccountItemDialogController','VOICE.SELECTED_AGENTS','turn','exportSelectedIntervals','toggleFold','api.intVtigerConfiguration.update','addNewOutboundRoute','TOOLBAR.WEBRTC_SPEAKER_NOT_AVAILABLE','use','src/js/modules/main/apps/whatsapp/views/whatsappQueues/whatsappQueues.html/whatsappQueues-[chunkhash].html','selectedMailSubstatuses','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20agents?','createdAt,updatedAt,id,name,mode,directory,application,format,sort','OpenchannelQueue\x20properly\x20deleted!','
TODO\x20legend\x20status\x20+\x20state
','integrations/freshdesk/configurations/:id/fields','queueCampaignHopperHistories','API\x20reject\x20message\x20not\x20found:\x20','ispeechAsrModel','admin,user','US\x20Spanish\x20Female','sidenav-open','openFromEditor','Giorgio\x20(Italian,\x20Male)','@from-voicemail','substr','ap-northeast-2','countDown','mapKey','api.chatProactiveAction.save','src/js/modules/main/apps/contactmanager/views/lists/edit/agentadd/agentadd.html/agentadd-[chunkhash].html','trunk@get','saveCustomization','context.name','app.reset','English\x20(United\x20States)','faxAccountInteractions','The\x20hopper\x20will\x20be\x20deleted.','cm/custom_fields/:id','$setPristine','deleteSelectedMailAccountInteractions','STAFF.EDIT_TEAM','MusicOnHolds','Asia/Dubai','Agents','app.header','-createdAt','Node','int','ANALYTICS.EDIT_METRIC','createOrEditSchedule','deselectIntervals','gotoAgents','messaging','TOOLS.CANNEDANSWERS','field','getFinals','conditions','integrations/zoho/accounts/:id/configurations','uploadSound','whatsapp/interactions/:id/download','EditFaxAccountApptagDialogController','deleteSelectedWhatsappAccountApps','MailCannedAnswer\x20properly\x20saved!','api.intZendeskAccount.delete','/dashboards','ap-southeast-2','MARKETPLACE.EDIT_PLUGIN','onRemoveUserMailQueue','bottom-right','openchannel/messages/:id/reject','GROUP_CONCAT\x20(','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chatCannedAnswers?','api.voiceExtension.delete','callysquare','FaxAccount','newSmsQueue','api.mailAccount.save','globalStatus','apply','EditSmsAccountApp','mailQueue:update','UpdateDialogController','setItem','\x27null\x27','/:id','searchResultClick','voice/queues/reports/describe','DISPOSITION_DELETE_MESSAGE','api.intVtigerAccount.save','Plivo','api.pause.update','voiceMail.mailbox','External','rpc/outbound','rpc/voice/queues/channels','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27paused\x27','InternalRoute\x20properly\x20saved!','DASHBOARDS.MARCH','pauseTypeFilter','voicePause','TrunkId','Plugin\x20not\x20deleted!','addNewPlugin','src/js/modules/main/apps/mail/views/realtime/realtime.html/realtime-[chunkhash].html','intSalesforceAccount','smsAccounts','deselectOutboundRoutes','Interaction:save','api.trunk.delete','chat/interactions/:id/clone','DisposeAbandonedCallDialogController','Not\x20Found','EditMailAccountAppcloseDialogController','subjects','Edited','CreateOrEditChatWebsiteDialogController','users/:id/clone','fax/accounts/addaccountapplications','integrations/sugarcrm/configurations/:id/subjects','\x27udp\x27','Variables','getFreshsalesAccounts','processes','CreateOrEditVoicemailDialogController','saveSettings','getActiveItem','myQueues','\x27rfc2833\x27','outboundroutes','msTimezone','checkPause','Delete\x20InternalRoute','Hungarian\x20Female','mailQueueReport','saveAllCondition','EditInternalAppringgroupDialogController','chatQueues','showInteraction','Africa/Khartoum','system/process/:pid/kill','newSmsAccount','CustomField\x20properly\x20deleted!','Kurdish','General\x20updated!','CreateOrEditSessionDialogController','id,uniqueid,calleridnum,statedesc,scheduledat,starttime,endtime','SYSTEM:DELETEintSugarcrmAccount','Company\x20properly\x20deleted!','createOrEditTrunk','saveInternalRouteApp','CKEDITOR','createOrEditWidget','MailSubstatus\x20properly\x20saved!','SYSTEM:USERPROFILE.REMOVESECTIONS','\x27csv\x27','editWhatsappAccountApp','Calibri,\x20Verdana,\x20Geneva,\x20sans-serif','...','The\x20project\x20will\x20be\x20deleted.','plugins/:id/download','app.chat.realtime','Macro','home.sms','src/js/modules/main/apps/chat/views/chatWebsites/edit/chatCannedAnswers/dialog.html/dialog-[chunkhash].html','Jabra\x20library\x20correctly\x20initialized\x20and\x20device\x20correctly\x20installed','Dial\x20Report','Chat','openchannel.openchannelAccounts','attachments/describe','exportSelectedChatWebsites','selectAllTags','getChatWebsiteLabel','added','Record','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','sessionConf','arrayminrate','smsAccountInteractions','Plugins','integrations/servicenow/configurations/:id/subjects','api.whatsappAccount.update','\x27uk\x27','saveChatCannedAnswer','Safari','Options','api.intFreshsalesConfiguration.save','selectAllOpenchannelAccounts','app.fax.realtime.agents','SYSTEM:DELETEscreenRecording','cm/lists/:id/contacts/csv','salesforceAccounts','onInit','apps.home.mycontacts','streets','delete\x20list','sms/reports/transfer/describe','mail/accounts/:id/canned_answers','selectAll','forgotPassword','contexts','editDraft','ur-PK','replyAll','integrations/freshdesk/configurations/:id/clone','openchannel/applications/describe','digits','Delete\x20MusicOnHold','deleteGroup','deleteMailQueue','OpenchannelAccountController\x20as\x20vm','\x27whatsapp_queues\x27','saveQueueCampaign','automations/:id/actions','WhatsappQueueId','deleteOpenchannelQueue','report_agent','addNewContact','Lowest','ms-theme-options','@uniqueid','rurussianmale','exportSelectedFaxAccountInteractions','app.tools.schedules','EditFaxAccountApp','TOOLS.EDIT_PAUSE','lo-LA','innerHeight','canDelete','uniqueid,calleridnum,statedesc,scheduledat,starttime,endtime','anySecondLevelDisposition','deleteMailAccountApp','-06:00','integrations/servicenow/accounts/:id/fields','voiceCallReport','Indian/Christmas','api.variable.delete','\x27months\x27','render','copyReport','America/Martinique','Would\x20you\x20like\x20to\x20save\x20your\x20survey?','deleteSelectedReportFields','newMohSound','getColorByChannel','Corsican','userProfiles','CDR(destination)=','getTemplates','onChangeList','voiceQueue@get','whatsapp/queues/:id/members','rpcChatQueuesWaitingInteractions','api.intDeskAccount.update','SYSTEM:GETsmsQueue','actions/:id','getHours','CreateOrEditSmsAccountDialogController','chat/reports/transfer/:id','flash','ar-OM','TOOLBAR.FRENCH','canGoInConference','markAsUnread','ar-BH','\x27report_openchannel_transfer\x27','webbar:answer','English\x20(UK)','deleteInternalRouteApp','analyticExtractedReport@get','networks/describe','dispositions','encodeURIComponent','Bosnian','SYSTEM:DELETEdisposition','apps.staff.teams','escape','id-ID','newSquareRecording','clearDispositionSelection','cmHopperFinal','QueueCampaign\x20properly\x20deleted!','PLUGINS.PLUGINS','CreateOrEditHopperVoiceQueueIdDialogController','0px','/about','Websites','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/set/dialog.html/dialog-[chunkhash].html','referAttended','-interaction','done','mailCapacity','dashboards','jscripty/answers/reports/:id','arrayheader_shape','$watch','onRemoteTransfer\x20->\x20evt,\x20data','app.openchannel.realtime','voice/mails/:id/clone','Util','America/Argentina/La_Rioja','id,name,fullname,userpic','saveList','Africa/Windhoek','chatWebsiteProactiveActions','black','listFields','treeDefaultData','Tatyana\x20(Russian,\x20Female)','api.mailAccount.delete','Pacific/Tahiti','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/agentadd/agentadd.html/agentadd-[chunkhash].html','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailSubtatuses?','SmsAccountController','src/js/modules/main/apps/chat/views/chatQueues/edit/agentadd/agentadd.html/agentadd-[chunkhash].html','delete\x20InternalRoutes','getOpenchannelAccounts','openchannel/reports/transfer/describe','vm_dc.query.filter','\x27fax_interactions\x27','/faxAccounts','Icelandic\x20(Iceland)','\x27chat_messages\x27','addNewAgent','iPad','RR\x20Memory','selectedSalesforceAccounts','Body','voice/recordings/:id/transcribe','ScreenRecordingsController\x20as\x20vm','Context\x20properly\x20saved!','DASHBOARDS.DRAFT_SAVE_WARNING_MESSAGE','addContactTab','app.errors_error-500','MsSearchBarController','shouldInterpolate','teamadddialog','VoiceRecordingController\x20as\x20vm','getVtigerConfiguration','InteractionId','America/Creston','addAgents','European\x20Dutch\x20Female','GET_ODBC','\x27da\x27','en-KE','api.chatGroup.delete','WhatsappAccountDispositionsController','America/Eirunepe','removeSound','deep-orange','data5','OPENCHANNEL.ALL_AGENTS','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/agi/dialog.html/dialog-[chunkhash].html','Maltese','jaws','set','selectedContact','msDatepickerFix','vTiger','GlobalCustomField\x20properly\x20saved!','VOICE.ALL_AGENTS','selectedChatQueues','allResourcesEnabled','api.intDynamics365Account.save','destcalleridnum','Fields\x20has\x20been\x20copied!','onResultClick','user:agentcomplete','api.whatsappAccount.save','/smsQueues','FORGOTPASSWORD.LINNK_SENT_MESSAGE','duplicates','chat/websites/describe','description','api.cloudProvider.delete','createOrEditDescription','GET_COMPANY','getOpenchannelQueuesWaitingInteractions','AgentHomeDashboardController','buttonClicked','src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/agentadd/agentadd.html/agentadd-[chunkhash].html','Hangup_Cause','SugarcrmAccount\x20properly\x20tested','Asia\x20Pacific\x20(Singapore)','addNewCompany','arrayextensionMonitor','$resource','WhatsappAccount\x20properly\x20deleted!','euritalianfemale','This\x20Year','analyticTreeReport','Timeout','FAX.REALTIME','saveUserProfile','popup','SETTINGS.UPDATE','$stateParams','Smtp\x20verified!','autoAnswerDelay','\x27it\x27','ServicenowAccountController','List\x20properly\x20created','SYSTEM:DOWNLOADJSON','app.footer','SmsCannedAnswer\x20properly\x20created','browserName','api.dashboard.clone','getActions','delete\x20dynamics365Configuration','exportSelectedQueueCampaignHoppers','Report\x20deleted!','DASHBOARDS.SELECT_AGENT','fail\x20callbackurl:\x22','ServicenowAccountsController','Chinese,\x20Mandarin\x20(Traditional,\x20Taiwan)','app.errors_error-404','protocol','api.contact.save','delete','iframe','Delete\x20VoiceRecording','msWidgetBack','jscriptyProjects','Arabic\x20(Algeria)','realtime','ZohoAccountController','saveContext','Taiwan\x20Chinese\x20Female','QueueCampaign\x20properly\x20cloned','queueCampaignHopperFinals','mail/interactions/:id/messages','gl-ES','bind','SYSTEM:DELETEuser','ready','ms-card','answeredAt','answerHook\x20->\x20payload','SYSTEM:COPYREPORT','MAIL.MAILQUEUES','focus','endOf','removeShortcut','saveOpenchannelQueue','AgentGeneralJscriptyController','selectedChanSpies','refer\x20->\x20session','The\x20schedule\x20will\x20be\x20deleted.','ng-sortable','Hindi\x20(India)','delete\x20openchannelCannedAnswers','apr','api.network.save','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/amazonlex/dialog.html/dialog-[chunkhash].html','addNewProject','exportSelectedLists','sms/reports/transfer/:id/clone','isValid','Asia/Hong_Kong','#1e2129','sound.name','AgentReject','queueCampaignHoppers','deleteMailAccount','api.mailSubstatus.save','cm/hopper_black/:id','left','penalty','krkoreanfemale','\x27switch\x27','multiBarChart','chat/queues/:id/users','src/js/modules/main/apps/integrations/views/zohoAccounts/edit/view.html/view-[chunkhash].html','square/odbc/:id','setMinutes','addNewchanSpy','General\x20properly\x20created','ContactsController\x20as\x20vm','moveContactsQueueCampaignHopperFinal','Project\x20','$mdMenu','\x27beepall\x27','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/interval/dialog.html/dialog-[chunkhash].html','AgentHomeDashboardMultiChannelFaxController','getDeskAccounts','passwordResetAt','Owner','src/js/modules/main/apps/plugins/views/plugin/plugin.html/plugin-[chunkhash].html','green-A700','\x27pt-br\x27','absorbEvent','mouseEventIgnoreTimeout','src/js/modules/main/apps/callysquare/views/projects/edit/import/import.html/import-[chunkhash].html','saveZohoAccount','take','SYSTEM:GET_CONTEXTS','\x27agentBusyFactor\x27','/teams','addInteractionTab','iceCandidateTimeout','\x20properly\x20deleted!','apps.video.screenRecordings','msScrollOptions','Mandarin\x20Chinese','/queueCampaigns','updateLayoutStyle','integrations/vtiger/fields/describe','$setViewValue','msShortcuts','getOutboundRoutes','\x20has\x20been\x20run!','chat/queues/:id','data','smtp','hasChildren','Asia/Thimphu','Agreement','CDR(tag)=','European\x20Spanish\x20Male','showDialpad','TOOLBAR.POLISH','app.chat.chatQueues','demo','app.integrations.dynamics365Accounts','voice/extensions/describe','fax/accounts/describe','deselectTriggers','getZendeskConfiguration','DASHBOARDS.CLOSED','TOOLS.SCHEDULER','bulkCreate','TOOLBAR.INDONESIAN','https://www.xcally.com/bar/phonebar/autoupdater.xml','Number','plugins/webhook','angucomplete-alt','addClass','translate','listOrder','getSquareRecordings','createOrEditSubject','orderBy','cmList','attrs','deleteZendeskAccount','intZohoAccount@get','src/js/modules/main/apps/settings/views/cloudProviders/cloudProviders.html/cloudProviders-[chunkhash].html','plainBody','integrations/salesforce/fields/:id/clone','eurturkishfemale','SSO_LOGIN','PREVIEW','sugarcrm','layoutModes','lime-A700-bg','The\x20file\x20is\x20too\x20big.\x20The\x20max\x20allowed\x20size\x20is\x20','ms-target-wrap','src/js/modules/main/apps/voice/views/realtime/agents/view.html/view-[chunkhash].html','jscripty/sessions/reports/:id/questions','smsInteraction','treeCustomData','\x27openchannel_interactions\x27','schedule','\x27cdr\x27','ms-nav-folded\x20ms-nav-folded-open','deleteSelectedSmsAccountSmsCannedAnswers','America/Cuiaba','EditOpenchannelAccountAppamazonlexDialogController','integrations/zoho/configurations/describe','sendDTMF','displayName','Windows\x20App','trigger:bot','app.voice.voiceQueues.edit','ukenglishmale','ended','deleteCustomization','queueCampaign','lt-LT','MAX','importContacts','rgb(','voiceExtension:update','searchFields','affectedRows','mailCannedAnswers','CreateOrEditNetworkDialogController','src/js/modules/main/apps/motiondialer/views/realtime/abandonedcalls/view.html/view-[chunkhash].html','America/Santarem','outgoing','$destroy','createOrEditZohoConfiguration','deleteIvrCampaign','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/interval/dialog.html/dialog-[chunkhash].html','Allowing\x20disposition\x20for\x20call\x20%s','saveDialog','api.cmCustomField.update','getProjectSessions','newDynamics365Configuration','describe','MsNavigationController','mohSound','isLoggedIn','settings/:id/clone','Voicemail\x20properly\x20saved!','SYSTEM:DESCRIBE_CM_CONTACT','Gwineth','onSaveCampaign','step','\x27no\x27','message','chat/websites/:id/fields','clickOutsideToClose','STAFF.NEW_AGENT','countbusyretry','integrations/zendesk/configurations/:id/tags','Customization\x20properly\x20deleted!','showFooter','Century\x20Gothic','MailQueueId','runTranscribe','Urdu','getMailAccountApps','deleteDeskAccount','Project\x20deleted!','selectedReport','Mads','getDispositions','src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/view.html/view-[chunkhash].html','Africa/El_Aaiun','createdAt,updatedAt,id,interactionid,channel,format,value,rating,UserId,duration,startedAt,closedAt','addNewAllCondition','Smpt\x20id\x20unknown','src/js/modules/main/apps/dashboards/views/general/user/fax/user.general.fax.html/user.general.fax-[chunkhash].html','DASHBOARDS.OVERWRITE','app.staff.agents.edit','\x27s\x27','currentUser','api/sounds','Spanish\x20(Paraguay)','Hopper\x20properly\x20created','ERROR\x20OPEN\x20INTERACTION','deselectTelephones','integrations/zendesk/fields/:id','FreshdeskConfiguration\x20deleted!','JSCRIPTY.ALL_SURVEY_DATA_WILL_BE_LOST','granted','Pauses','whatsapp/messages/:id/reject','AND','mail/substatuses/describe','Delete\x20SugarcrmConfiguration','intSalesforceField','msThemeOptions','getAnswers','WHATSAPP.WHATSAPPQUEUES','deleteSound','chat/websites/:id/customer_avatar','XCALLY-MOTION-PROGRESS=0','api.cmList.delete','CHAT.EDIT_CHATQUEUE','src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/teamadd/teamadd.html/teamadd-[chunkhash].html','EditOpenchannelAccountAppnoopDialogController','motion2.home.openchannel:','EditFaxAccountAppgotoifDialogController','campaigns/:id/blacklists','disposeInteraction','Spanish\x20(Ecuador)','PUT','newVtigerConfiguration','ca-central-1','api.openchannelQueue.delete','ms-nav-button','notification:save','app.tools.trunks','FreshsalesAccount\x20properly\x20created','CONTACTMANAGER.EDIT_LIST','squareReport','analytics','fil-PH','hasModulePermissions','CreateOrEditChatCannedAnswerDialogController','disableMdInkRippleOnMobile','/voicemails','VOICE.EDIT_INBOUNDROUTE','queue.name','ProjectsController\x20as\x20vm','paginatedInteractions','PhoneBar\x20API\x20Error','firstLevelDisposition','whatsapp/messages/:id/status','getFolded','The\x20screenRecording\x20will\x20be\x20deleted.','$invalid','ComposeSmsInteractionDialogController','app.voice.voicemails.edit','setAttribute','rfc2833','screen/recordings/:id/download','ToolbarController\x20as\x20vm','CreateOrEditZohoConfigurationDialogController','\x20will\x20be\x20overwritten\x20by\x20the\x20fields\x20of\x20the\x20contact\x20#','trunk','ChatWebsite\x20properly\x20deleted!','-04:30','Node\x20Updated','lv-LV','id,phone,scheduledat,recallme,priority,UserId,OwnerId','SmsQueue\x20properly\x20deleted!','xxxxxxxx','=startTime','\x20session','src/js/modules/main/apps/dashboards/views/general/agent/contact/selection/dialog.html/dialog-[chunkhash].html','app.dashboards.custom','cm/hopper/preview','transcribeStatus','AgentsOpenchannelRealtimeController','setCurrentUser','jscripty/projects/:id','apps.callysquare.squareRecordings','saveDisposition','users/:id/scheduled_calls','America/Phoenix','upload','Inbound\x20Call','SIP/','rpc/outbound/channels','Europe/Paris','SquareRecording\x20properly\x20deleted!','shutdown','getSubjects','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/dialogflow/dialog.html/dialog-[chunkhash].html','msUtils','templates/:id/clone','es-AR','EditMailAccountAppqueueDialogController','useLoader','Template\x20properly\x20created','saveWhatsappAccount','pause@get','tab','parent','/forgot','freshdeskConfiguration','Europe/Sofia','voice/mohs/:id/sounds','icon-heart','getPauses','app.voice.realtime.outbound_calls','createdAt,updatedAt,id,name,username,password,remoteUri,tenantId,clientId,clientSecret,serverUrl,description','America/Araguaina','goto','telephone:save','flipWidget','api.intSugarcrmAccount.delete','smsInteractions','userFaxQueue:remove','showResetButton','\x20ms','outboundBusyCallsDay','createdAt,updatedAt,id,save_name,converted_format,audio','CreateOrEditDynamics365AccountDialogController','DeskAccount\x20properly\x20tested','savechanSpy','Queue\x20properly\x20updated!','newTemplate','getSmsQueues','attachments/:id/clone','dashboards/:id/clone','Chinese,\x20Mandarin\x20(Simplified,\x20China)','ms-timeline','showNotification','analytics/metrics/describe','jscripty/sessions/reports/:id','French\x20(Canada)','square/details/reports/describe','CreateOrEditInboundRouteDialogController','Tag\x20properly\x20created','America/Santa_Isabel','Pacific/Easter','addNewQueueCampaign','src/js/modules/main/apps/voice/views/realtime/realtime.html/realtime-[chunkhash].html','Email\x20field\x20is\x20not\x20valid','\x27paused\x27','app/reset','TOOLS.EDIT_INTERVAL','\x27hotmail\x27','startPredictive','CreateOrEditZendeskAccountItemDialogController','analytics/metrics/:id','trustAsHtml','tr-TR','JSCRIPTY.EDIT_PROJECT','getWhatsappQueuesWaitingInteractions','faxCurrentCapacity','image','app.analytics.metrics','api.action.update','queryReport','cmn-Hans-HK','Error404Controller','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20sounds?','newvoicePrefix','onUpdateSmsQueue','ceil','SmsAccountInteractionsController','Georgia','listCustomFields','Mail\x20Account\x20not\x20deleted!','api.contact.delete','Hours','googleCloudTtslanguageCode','getODBC','disposeCall','ms-navigation-folded','Portuguese\x20(Nrazilian)','remote','\x27B\x27','deleteDisposition','createOrEditSalesforceAccount','ngJsTree','firstDayMonth','The\x20vtigerAccount\x20will\x20be\x20deleted.','newCustomization','Mozilla',',${EXTEN},','TOOLS.NOTIFICATIONS.ACTION_DELETED_SUCCESS_TITLE','QueueParamsMotionDialerRealtimeController\x20as\x20vm','queryHistory','addJscriptyTab','deletechanSpy','MOTLICENSE','Tajik','api.squareRecording.update','/faxQueues','newProject','changePasswordForm','src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/item/dialog.html/dialog-[chunkhash].html','MxGraphEditXMLController','Fax\x20Report\x20Queue','Europe/Copenhagen','selectAllVoiceRecordings','agentCapacity','exportSelectedUserProfiles','selectedSmsAccountSmsCannedAnswers','setNavigationScope','America/Santiago','SYSTEM:QUEUES_ASSOCIATION','List\x20name','api.openchannelMessage.accept','accept','getUserDeviceMediaExt','arrayagentIdentifier','ms-widget-back','salesforce','src/js/modules/main/apps/chat/views/chatWebsites/create/dialog.html/dialog-[chunkhash].html','Smtp\x20properly\x20created','ndassistant_url','agentname','api.smsAccount.update','newMetric','smsInteraction:save','/login?token&userId','requestPermission','-stamp','exportSelectedChatWebsiteInteractions','Company\x20properly\x20created','ServiceNow','help','selectedMailAccountApps','motion2.home.abandoned.bull.calls:','delete\x20chanSpys','\x272\x27','SmsQueueController','The\x20item\x20will\x20be\x20deleted.','selectAllVoiceQueues','ms-search-bar-expanded','EditSmsAccountApptagDialogController','setPlaceholder','left_join','voice/calls/reports/describe','es-SV','MAX\x20(','isObjectLike','api.disposition.save','green-A700-bg','mail_queue:save','STAFF.CLOSE','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20zohoConfiguration?','$promise','TOOLS.NOTIFICATIONS.CONDITIONS_DELETE_TITLE','Agent\x20properly\x20saved!','deleteProject','getVoicePrefixes','phoneBarPrefixRequired','WhatsappAccountWhatsappCannedAnswersController','English\x20(Nigeria)','integrations/freshsales/configurations/describe','/api/settings/1/favicon','denied','SYSTEM:GET_AGENTS','hopperHistory','/dialer','EditOpenchannelAccountAppintervalDialogController','endDate','AgentGeneralBotController','Europe/Moscow','addConfiguration','Arabic\x20(State\x20of\x20Palestine)','deleteSelectedWhatsappAccountWhatsappCannedAnswers','Sound\x20properly\x20created','delete\x20proactive','DASHBOARDS.SELECT_TAG','campaigns/:id/clone','deselectSounds','Voicemails','createMediaStreamSource','VOICE.WRONG_EXTENSION','smsMessage','tree','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20voicemails?','mailPause','getMetrics','','ERROR','ChatQueueagentaddController','onSaveOutbound','category','blue','saveSmtp','Delete\x20IvrCampaign','/assets/images/theme-options/vertical-nav-with-full-toolbar-2.jpg','Unable\x20to\x20init\x20media\x20devices','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20mailCannedAnswer?','disposition@get','CreateOrEditDeskConfigurationDialogController','SMS.REALTIME','duplicateContact','dashboard:remove','fax/messages/:id/clone','ChatWebsiteOfflineMessagesController','msQuickFilter','selectedContacts','eu-ES','getAgents','getScreenRecordings','\x27turn\x27','mediaDevices','delete\x20MailQueues','gotoUserProfiles','Whatsapp\x20Messages','src/js/modules/main/apps/analytics/views/metrics/metrics.html/metrics-[chunkhash].html','groupId','times','app.integrations.servicenowAccounts','deleteWhatsappQueue','analytics/custom_reports/:id/preview','jstree','UserSmsDashboardGeneralController','America/Montevideo','\x27newTab\x27','campaigns','exportSelectedProjectSessions','foreignKey','$translate','addTab','QueueCampaignHopperHistoriesController','answers','Accounts','src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/view.html/view-[chunkhash].html','id,firstName,lastName,phone,email','unreadGroupMessages','databases','sk-SK','selectedMusicOnHoldMohSounds','sms/queues/:id/users','arrayvideosupport','request','selectedVariables','DispositionsController','delete\x20voiceQueue','jpg','app/core/directives/ms-phonebar/sounds/incoming-call.ogg','SYSTEM:GETmailAccounts','app.mail.realtime','src/js/modules/main/apps/analytics/views/reports/create/dialog.html/dialog-[chunkhash].html','/servicenowAccounts','','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20musiconholds?','MOTIONDIALER.NEW_IVRCAMPAIGN','TOOLS.EDIT_TAG','dialActive','onFieldSelection','MARKETPLACE.MARKETPLACE','.ms-stepper-step-content','faxQueue@get','mail/interactions/:id/tags','/queues','interval_id','basic','ZendeskAccount\x20properly\x20deleted!','/updates','ZendeskAccounts','EditOpenchannelAccountAppgotopDialogController','onSearchFieldsInit','chatInteraction@get','America/Godthab','$translatePartialLoader','api.trunk.clone','SYSTEM:DELETEjscriptyProject','Africa/Algiers','Europe/Dublin','mailMessage:update','\x27ap-southeast-2\x27','users/:id/whatsapp_interactions','telephone','South\x20America\x20(São\x20Paulo)','America/Regina','CreateOrEditChatProactiveActionDialogController','selectedCompany','Europe/Rome','api.interval.update','content','chat/websites/:id/interactions','phoneBarAutoAnswerDelay','Delete\x20Schedule','America/Nome','insertHtml','Liv\x20(Norwegian,\x20Female)','SYSTEM:DELETEreportsByParents','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20variables?','full-height','\x27ja\x27','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/amazonlex/dialog.html/dialog-[chunkhash].html','\x27fr\x27','&token=','Project\x20properly\x20created','app.fax.faxAccounts.edit','app.tools.templates','Thai','alaw','app/main/apps/jscripty','arrayusereqphone','Trebuchet\x20MS,Helvetica,sans-serif','apps.voice.chanSpies','America/Guatemala','ngFlow','deleteSelectedProjects','\x27localnet\x27','ChatWebsiteController\x20as\x20vm','Integrations','deleteOpenchannelQueuesWaitingInteractions','sectionColor','scheduledat','app.voice.inboundroutes.edit','chat/reports/transfer/:id/clone','amber-A200-bg','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/noop/dialog.html/dialog-[chunkhash].html','api.team.save','Template\x20properly\x20saved!','onSelectList','-05:00','integrations/zendesk/accounts/:id/configurations','VOICE.NEW_VOICEPREFIX','DASHBOARDS.APRIL','securePassword','cm/hopper_final/:id','newTrunk','selectedSmsAccountApps','Geraint\x20(English,\x20Welsh,\x20Male)','addNewDashboardItem','mail/interactions/:id/clone','variables','cloudProviders/:id','deleteTelephone','The\x20mailAccount\x20will\x20be\x20deleted.','UserProfile\x20properly\x20deleted!','passwordPattern','ChatWebsiteChatDispositionsController','ServicenowAccount\x20properly\x20deleted!','license/:id/clone','CreateOrEditMohSoundDialogController','CannedAnswer\x20properly\x20created','The\x20salesforceAccount\x20will\x20be\x20deleted.','enable','wed','$filter','app.dashboards.general','api.tag.update','SYSTEM:GETusers','smsInteractionTags:save','office2013','csv','WHATSAPP.EDIT_','square/projects/:id/clone','Europe/London','CDR(routeid)=','answer','currentXML','loose','migrations/describe','QueueCampaignagentaddController','apps.contactmanager','CreateOrEditContextDialogController','MAIL.REALTIME','The\x20chatQueue\x20will\x20be\x20deleted.','maxdigit','ExtractedReports','jpjapanesefemale','listSelected','\x2714400\x27','saveSmsAccountApp','Report\x20field\x20properly\x20created','getFreshdeskAccounts','ivrCampaignHopperBlacks','SquareRecording','blue-fg','createdAt,updatedAt,id,name,description','EditSmsAccountAppgotopDialogController','Swedish\x20(Sweden)','DeskConfiguration\x20properly\x20saved!','Cambodian','saveContact','Error500Controller','contactmanager','ExtractedReportsController','SYSTEM:GETcontexts','deselectQueueCampaigns','isDefined','delete\x20Trunks','api.template.delete','motion2.home.contacts:','networks/:id/clone','isSearchBarVisible','icon-chart-line','newMailSubstatus','Explorer','EditSmsAccountAppdialogflowDialogController','stopMonitor','VoicemailMessagesController','SMSACCOUNT:SEND','rpcSmsQueues','xorBy','exportSelectedChanSpies','dispositions/describe','app.motiondialer.realtime.ivr_campaigns','TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE','firstName,lastName,mobile','selectAllDynamics365Accounts','deleteOdbc','\x27externip\x27','OpenchannelInteractionId','paginate','cloneCustomDashboard','exportSelectedWhatsappQueues','getResponseSheet','euritalianmale','TOOLBAR.CHANGE_LANGUAGE_MESSAGE','delete\x20ivrCampaign','api.pause.save','deselectODBC','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','onWithoutApply','api.intItem.update','/salesforceAccounts','settings/:id','Twi','Intervals','OpenchannelCannedAnswer\x20properly\x20saved!','+12:00','fi-FI','checkRange','voiceDialReportColumns','Asia/Qatar','user_has_mail_interactions:save','cm/hopper_final/voice/campaign/moveContacts/:id','controlsList','openchannel/accounts/:id','ivrCampaigns','getRemoteStreams','\x27none\x27','$broadcast','Asia/Tokyo','$ariaProvider','The\x20array\x20must\x20have\x203\x20or\x204\x20colors.','userChatQueue:remove','WHATSAPP.EDIT_WHATSAPPQUEUE','Smtp','SYSTEM:GETwhatsappAccount','queuecallerleaveAt','api.intDynamics365Account.update','migrations/:id/clone','target','getSenders','screen/recordings/:id','voice/prefixes/:id/clone','mail/accounts/:id/messages','rewriteRouting','Pacific/Rarotonga','rpcMailQueues','Delete\x20MailAccount','addNewZohoAccount','resources','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20contact?','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20teams?','getZohoConfiguration','sms/accounts/:id/users','The\x20network\x20will\x20be\x20deleted.','hoppers','api.user.update','blue-grey-A200','Delete\x20Agent','\x27nl\x27','closed','getFullYear','analyticMetric','api.contacts.save','yes','whatsappPause','row','updateQueue','exportSelectedOpenchannelAccountInteractions','NEVER','exportSelectedScreenRecordings','outboundNoAnswerCallsDay','deleteSchedule','$location','callCallback\x20->\x20url,\x20params','500','app.mail.realtime.queues','SYSTEM:GETintFreshdeskAccount','/mailAccounts','currentPage','rpc@getTrunks','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20project?','appendChild','CDR(type)=internal','selectedVoicePrefixes','TOOLS.NOTIFICATIONS.ACTION_DELETE_TITLE','humanizeDoc','name,id','deleteSelectedChatWebsiteApps','MAIL.EDIT_','oldPasswordMatch','Odbc\x20properly\x20saved!','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hoppers?','faxQueue:remove','delete\x20freshsalesConfiguration','placed','openchannel/messages/:id/clone','projectSessions','smsMessage:save','showQuestionsProjectSession','Jan\x20(Polish,\x20Male)','Camino','callbackQueue','isJabraEnabled','audiooutput','OPENCHANNEL.OPENCHANNELACCOUNTS','apps.analytics.extractedReports','CONTACTMANAGER.COPY_CONTACT','Plugin\x20properly\x20deleted!','src/js/modules/main/apps/staff/views/userProfiles/create/dialog.html/dialog-[chunkhash].html','monthDayFrom','vm.queryHistory.filter','read','WhatsappQueueController','fontSize_sizes','src/js/modules/main/apps/voice/views/musiconholds/edit/view.html/view-[chunkhash].html','delete\x20UserProfiles','app.errors','Team\x20properly\x20saved!','png','sms_queue_waiting_interaction:remove','ServicenowAccount','recordings','chatGroup','CreateOrEditQueueCampaignDialogController','deselectChatQueues','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20cloudProviders?','apps.integrations.freshdeskAccounts','EditChatWebsiteAppgotopDialogController','deselectSalesforceAccounts','AbandonedCallsVoiceRealtimeController\x20as\x20vm','squareRecording@get','src/js/modules/main/apps/staff/views/userProfiles/userProfiles.html/userProfiles-[chunkhash].html','filter','api.schedule.update','DefaultReports','Asia/Ulaanbaatar','OpenchannelRealtimeController','app.integrations.servicenowAccounts.edit','expandAnimation','newOutboundRoute','src/js/modules/navigation/layouts/horizontal-navigation/navigation.html/navigation-[chunkhash].html','contact','FaxQueue','European\x20German\x20Female','VOICE.ALL','GET','onProgress\x20->\x20session,\x20data','icon-help','Dutch','unix','America/Rainy_River','analytics/extracted_reports/:id/clone','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27penalty\x27','telephoneForm','ChatWebsitelogoController','isInProgress','Antarctica/Davis','rpc/agents','motion.selectedTheme','/whatsappQueues','openchannelAccount','STAFF.ALL_AGENTS','onClick','predictiveIntervalAvgHoldtime','VoiceMusicOnHoldId','inReplyTo','arraysetqueueentryvar','functions','Schedule\x20properly\x20created','Tags\x20has\x20been\x20set!','CSV\x20stop\x20import\x20process\x20failed!','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?','polling','Bulgarian\x20(Bulgaria)','getAllConditions','TOOLS.TOOLS','inboundroute','America/Indiana/Winamac','_interactions:remove','showIncompleteSubmitButton','src/js/modules/navigation/layouts/vertical-navigation-fullwidth-toolbar-2/navigation.html/navigation-[chunkhash].html','icon-fire','MailQueuesController','src/js/modules/main/apps/fax/views/faxQueues/edit/view.html/view-[chunkhash].html','rpc/agents/:id/notify','cm/lists/:id/clone','OutboundRoute','setFoldedOpen','s:\x20Skip\x20the\x20playback\x20of\x20the\x20channel\x20type\x20(i.e.\x20SIP,\x20IAX,\x20etc)\x20when\x20speaking\x20the\x20selected\x20channel\x20name.','\x27left\x27','The\x20sugarcrmAccount\x20will\x20be\x20deleted.','INTEGRATIONS.EDIT_SALESFORCEACCOUNT','addNewGlobalCustomField','getBoundingClientRect','getQueueCampaignHopperFinals','square/projects/:id/users','MOTIONDIALER.SELECT_CAMPAIGN','square/messages/:id','deleteSelectedFaxAccounts','api.chatWebsite.delete','INTEGRATIONS.NEW_SERVICENOWCONFIGURATION','chat/reports/queue/:id','UserChatDashboardGeneralController','EditWhatsappAccountAppintervalDialogController','leave','getMap','rec','JSCRIPTY.YES','loadingProgress','app.motiondialer.queueCampaigns','factory','newscreenRecording','SETTINGS.EDIT_SMTP','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27loose\x27','integrations/dynamics365/configurations/describe','dayOfWeekTo','icon-audiobook','sip_id','STAFF.TELEPHONES','There\x20has\x20been\x20an\x20error\x20while\x20trying\x20to\x20save\x20your\x20survey\x20session!','exportSelectedQueueCampaignHopperHistories','testtestintegrationaccount','hopper','selectedCompanies','id=','selectedOpenchannelAccounts','CustomDashboardItemsController','TOOLBAR.NORWEGIAN','SYSTEM:DELETEsquareOdbc','/reset/:token','UserChatWebsite','CONTACTMANAGER.ERRORS.PHONEBAR_API','countdownattr','delete\x20session','\x27{{voiceMail.mailbox}}@from-voicemail\x27','actions/describe','Supported\x20extension:\x20','dashboards/items/:id','UserProfile\x20updated!','abandonedCalls','properties','whatsappCapacity','apps.chat.chatQueues','sr-ME','INTEGRATIONS.EDIT_FRESHDESKACCOUNT','Telephone\x20updated!','analyticFieldReport','desktopNotification','SYSTEM:DELETEcmList','/plugins','hue-3','\x27booked\x27','integrations/freshdesk/configurations/:id','chat/websites/:id/dispositions','AgentGeneralHomeController','SYSTEM:GET_TREE_REPORT_STRUCTURE','ukenglishfemale','PERMISSIONS','destroy','LIST:GETCustomFields','unhold\x20->\x20session','TagInteractionDialogController','QueueParamsMotionDialerRealtimeController','cmHopperBlack','exists','transferLastMessage','The\x20user\x20will\x20be\x20deleted.','es-EC','Europe/Volgograd','createdAt,updatedAt,id,name,VoiceExtensionId,callerIdAll,description','\x27quarters\x27','FaxAccount\x20properly\x20created','Voicemail','Bengali\x20(India)','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/hangup/dialog.html/dialog-[chunkhash].html','','trunks','app.errors.error-404','userVoiceQueue:save','TOOLBAR.CHINESETRADITIONAL','whatsappInteractionTags:save','ATTENTION','Input','\x27text\x27','getChatWebsiteOfflineMessages','intServicenowField','app.staff.telephones.edit','phone','sms/interactions/:id/tags','exportSelectedOutboundRoutes','UserProfilecloneController','onChangeVisibility','api.intFreshsalesAccount.delete','api.intSugarcrmAccount.save','offset','id,name,role,context','src/js/modules/main/apps/integrations/views/sugarcrmAccounts/create/dialog.html/dialog-[chunkhash].html','STAFF.EDIT_USERPROFILE','api.squareProject.update','/cloudProviders','rpc/voice/channels/:uniqueid/mixmonitor','srcObject','blacklist','DADHI','updatedAt','selectChangedAdvanced','EditInboundAppgotoDialogController','Delete\x20SalesforceConfiguration','fax/reports/queue/:id','saved','smsQueue:remove','apps.callysquare','queueLogin','brportuguesefemale','rpc@getWhatsappQueues','accountProperty','hotdesk','Auth','FreshdeskAccount\x20properly\x20created','Pacific/Funafuti','composeOpenchannelInteraction','users/:id/mail_accounts','America/Blanc-Sablon','stateParams','isNaN','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20tags?','registerStep','FEMALE','CreateOrEditUserDialogController','getGlobalCustomFields','STAFF.NEW_USERPROFILE','/attachment_download?attachId=','app.dashboards','intSalesforceConfiguration','selectedWhatsappAccounts','Asia/Novosibirsk','Outlook365','selectedContexts','mar','VoiceQueue\x20properly\x20deleted!','Default','onVoiceChannelRemove\x20->\x20evt','googleTtsLanguage','asc','FaxQueuesController\x20as\x20vm','chatQueuesTotal','app.openchannel.openchannelQueues','apps.settings.updates','ngMessages','deleteConfirm','src/js/modules/main/apps/fax/views/faxAccounts/faxAccounts.html/faxAccounts-[chunkhash].html','countdownAttr','arrayshowWebBar','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20internalroutes?','WhatsappQueueController\x20as\x20vm','$mdThemingProvider','onUserVoiceQueue','onReply','English\x20(Australian)','MotionDialerRealtimeController\x20as\x20vm','Swedish','api.trigger.update','apiselect','cloudProvider@get','NO_ANSWER','America/Caracas','getCurrentUser','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','rpcVoiceQueuesChannelsTmp','=endTime','MOTIONDIALER.QUEUECAMPAIGNS','The\x20','OpenchannelQueuesController\x20as\x20vm','DASHBOARDS.SELECT_READ_UNREAD','saveOpenchannelCannedAnswer','integrations/zendesk/configurations/describe','app.chat.realtime.queues','chat/applications/describe','ChatWebsiteId','Lotte','Chinese\x20(Traditional)','hasShortcut','chat/websites/:id/avatar','botname','api.intSalesforceAccount.delete','may','createOrEditMusicOnHold','voiceMailMessage','selectedMailShowDetails','analytics/extracted_reports/:id','/errors/error-500','exportSelectedContexts','ORDER\x20BY\x20','ar-TN','cdr/describe','thirdLevelDisposition','multipleUsers','src/js/modules/core/directives/ms-font-family/ms-font-family.html/ms-font-family-[chunkhash].html','Brazilian\x20Portuguese\x20Female','countContactsIvrCampaignHopperFinal','America/Ojinaga','CreateOrEditSquareProjectDialogController','user_has_fax_interactions:remove','SYSTEM:GET_QUEUES','Kimberly','UserVoiceQueue','rpc/voice/channels','Antarctica/Macquarie','red-fg','userProfileId','America/Winnipeg','version','arraymode','api.template.update','DENIED','localStorage','icon-minus-circle','SMS.ALL_TEAMS','addNewWhatsappAccount','.zip','saveTeam','fax/reports/transfer/:id','found','getInternalRoutes','opt2','getJscriptySessions','QueuesFaxRealtimeController\x20as\x20vm','selectAllAgents','zendeskAccounts','getContexts','mailAccountApp','createElement','The\x20freshsalesConfiguration\x20will\x20be\x20deleted.','DASHBOARDS.ABANDONED','createdAt,updatedAt,id,name,dsn,description','output','zohoConfiguration','channelStatus','selectedZendeskAccounts','SYSTEM:DELETEvoiceRecording','getWhatsappAccountLabel','mail/accounts/:id/verify','Networks','getChatQueues','voice/transfers/reports/:id/clone','Voicemail\x20updated!','Pacific/Auckland','Message\x20has\x20been\x20accepted!','selectedChatWebsiteApps','deselectFreshdeskAccounts','WhatsappAccounts','exportSelectedNetworks','selectedDynamics365Accounts','whatsapp/reports/queue/describe','SugarcrmConfiguration\x20properly\x20deleted!','Asia/Samarkand','id,phone,scheduledat,priority,recallme,VoiceQueueId,CampaignId,UserId','eurnorwegianfemale','third','whatsappCannedAnswer\x20#','QueuesVoiceRealtimeController\x20as\x20vm','eurfrenchfemale','incident','analytics/field_reports/destroy_many','MailInteractionId','HopperBlack\x20deleted!','variableName','src/js/modules/main/apps/mail/views/mailAccounts/edit/mailCannedAnswers/dialog.html/dialog-[chunkhash].html','CreateOrEditTelephoneDialogController','path\x20must\x20be\x20a\x20string\x20(eg.\x20`dashboard.project`)','-starttime','selectAllProjects','api.jscriptyProject.update','usmoney','Ringall','America/Moncton','app.callysquare','rpcAgents','rpcChatQueues','SETTINGS.SYSTEM','saveOutboundRouteApp','apps.marketplace','deleteSmsAccountApp','toNumber','Verdana,Geneva,sans-serif','INTEGRATIONS.EDIT_SUGARCRMACCOUNT','\x27update\x27','newsAlertHide','getAiTools','SYSTEM:DELETEvoiceContext','delete\x20contact','Asia/Omsk','$stateChangeStart','exportSelectedMailAccountInteractions','addNewVariable','substring','id,action,contact,data1,data2,data3,data4,data5,data6,data7,createdAt,updatedAt','VoiceQueueController','SquareRecordingsController\x20as\x20vm','replyTemplate','onDispositionChange','createdAt,updatedAt,id,key,value,description','DESC','element','EQUALS','Delete\x20ServicenowAccount','rpc/fax/accounts','VtigerAccountController','createObjectURL','delete\x20globalCustomField','SmsQueueteamaddController','user_has_','getSmsAccountSmsCannedAnswers','delete\x20mailCannedAnswers','schedules/describe','round','SYSTEM:DELETEmailAccount','src/js/modules/core/directives/ms-stepper/templates/vertical/vertical.html/vertical-[chunkhash].html','onUpdateVoiceQueue','voice_queue_channel:remove','deleteMailSubstatus','sip','jun','=msNavigationHorizontalNode','HMAC','MSIE','motion2.home.scheduled:','Priority','SYSTEM:GET_REPORTS','Admin\x20Only','/sugarcrmAccounts','whatsappInteraction:save','Portuguese\x20(Portugal)','\x20has\x20been\x20created!','faxAccounts','deleteSelectedTemplates','Outbound\x20Call','extractedReports','fax/queues/:id/teams','icon-cog','\x20will\x20be\x20restored.','newServicenowAccount','chat/offline_messages/:id','@autocomplete','apps.openchannel','selectedReportFields','exportSelectedFreshdeskAccounts','remove','src/js/modules/core/directives/ms-tab-scroll/ms-tab-scroll.html/ms-tab-scroll-[chunkhash].html','inboundroutes','TOOLBAR.ARABIC','Tonga','arrayencryption','Africa/Monrovia','Asia/Beirut','apps.voice','jabraSession','voiceCalls','soundPlayer','treeCtrl:\x20error\x20from\x20js\x20tree\x20-\x20','apps.plugins.plugin_','Pacific/Chuuk','app.settings.smtps','intFreshdeskAccount@get','availableStates','FreshdeskAccountsController\x20as\x20vm','lastIn','WhatsappAccountsController','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/dial/dialog.html/dialog-[chunkhash].html','getNetworks','apps.settings.cloudProviders','CompanyController','delete\x20interaction','saveChatWebsite','Time','newGeneral','addNewZendeskAccount','api.squareOdbc.delete','selectedSounds','app.voice.realtime','ca-ES','\x27SIP/{{user.name}}\x27','ar-JO','ms-MY','Spanish\x20(Colombia)','Please\x20save\x20the\x20contact\x20before\x20disposing!','VOICE.CANT_DOWNLOAD_THIS_FILE','accentPalette','content-type','removeAllListeners','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/listadd/listadd.html/listadd-[chunkhash].html','integrations/dynamics365/configurations/:id/fields','microphoneId','EditWhatsappAccountAppsystemDialogController','Delete\x20InboundRoute','Smtp\x20properly\x20saved!','TOOLS.NOTIFICATIONS.DISPOSITION_SAVED_SUCCESS_TITLE','analyticTreeReport@get','isStepHidden','+04:30','America/Matamoros','Condition','Hans\x20(German,\x20Male)','salesforceAccount','spymailInteraction','\x27wrandom\x27','CreateOrEditServicenowAccountItemDialogController','src/js/modules/main/apps/mail/views/mailSubtatuses/mailSubtatuses.html/mailSubtatuses-[chunkhash].html','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/whatsappAccounts.html/whatsappAccounts-[chunkhash].html','src/js/modules/main/apps/settings/views/networks/create/dialog.html/dialog-[chunkhash].html','GoSub','Swahili\x20(Kenya)','msNavigation::collapse','replace','CreateOrEditTriggerDialogController','originator','SYSTEM:UPDATEcontact','WhatsappQueuesController\x20as\x20vm','\x27twilio\x27','SYSTEM:GETcampaign','defaultEntry','Polish','deleteSelectedUserProfiles','selectAllSounds','cm/lists/:id/users','total','congestion','ZohoConfiguration\x20properly\x20created','saveVoiceRecording','down','integrations/sugarcrm/configurations/:id','deleteSelectedGlobalCustomFields','ANALYTICS.NEW_EXTRACTEDREPORT','Whatsapp\x20Report\x20Transfer','MailRealtimeController','showFaxInteraction','AgentHomeDashboardMultiChannelSmsController','onListSelection','app.voice.internalroutes.edit','Comic\x20Sans\x20MS,cursive','selectedListCustomFields','ZendeskAccountController','addNewMailAccount','IS\x20NOT\x20NULL','SYSTEM:GETintZendeskAccount','chat/internal/messages/describe','Asia\x20Pacific\x20(Tokyo)','tag.name','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/gotoif/dialog.html/dialog-[chunkhash].html','The\x20servicenowAccount\x20will\x20be\x20deleted.','mailInteractions','$gte','setConditionStatus','toggle','onSaveUserMailQueue','gotoMailAccounts','api.cmCompany.delete','The\x20interval\x20will\x20be\x20deleted.','src/js/modules/main/apps/voice/views/voiceQueues/edit/view.html/view-[chunkhash].html','deleteChatQueuesWaitingInteractions','dragging','src/js/modules/main/apps/fax/views/realtime/agents/view.html/view-[chunkhash].html','Read','credential','contactName','getFaxAccounts','mailInteraction:update','createdAt,updatedAt,id,starttime,endtime,membername,calleridnum,completed','params','app.settings.license','webbar:transfer','export','Sinhala\x20(Srilanka)','apiAccountRoute','openchannelInteractions','chat/internal/messages/:id/clone','$on','ToId','isAfter','md-background-bg\x20md-hue-3','Asia\x20Pacific\x20(Seoul)','chat/groups/:id/clone','mailServerOut','networks/:id','webrtc::transfer','0.26','openchannelMessage','SYSTEM:DELETEnetwork','SYSTEM:GETConfigurations','\x27days\x27','deleteSmsAccount','Portuguese\x20(European)','exportSelectedTriggerAllConditions','Amharic','NOBEEP','cm/contacts/:id/clone','TrunksController','Reset\x20Succesfull','Asia/Baghdad','src/js/modules/main/apps/sms/views/smsQueues/smsQueues.html/smsQueues-[chunkhash].html','openchannelAccountApp','tif','saveHopper','msNavigation','countContactsQueueCampaignHopperFinal','wss','intervals/:id/sub_intervals/create_many','mail/reports/queue/describe','vm_voice.query.filter','addTrack','openchannel/interactions/:id','apps.chat.realtime','\x27IAX\x27','vm.query','filtered','\x27voice_recordings\x27','VOICE.NEW_VOICEQUEUE','newHopper','tabs','WHATSAPPACCOUNT:SEND','toString','AgentBusyFactor','TOOLS.NOTIFICATIONS.TRIGGER_DELETE_MESSAGE','selectedSquareRecordings','g723','cm/lists/:id/fields','MsStepperController','integrations','asterisk','app.errors.error-500','$gt','deleteDynamics365Account','motion.newsAlertHide:','autocomplete','whatsappQueue@get','src/js/modules/main/apps/motiondialer/views/realtime/realtime.html/realtime-[chunkhash].html','DASHBOARDS.RESCHEDULE','arraydialOrderByScheduledAt','CloudProvidersController','api.squareRecording.save','WhatsappCannedAnswer\x20deleted!','newContext','pause_id','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20openchannelCannedAnswers?','FaxQueuesController','msInfoBar','Lucida\x20Sans\x20Unicode,Lucida\x20Grande,sans-serif','deleteVoicemail','3rd','\x2716\x27','Tag\x20properly\x20created!','response','eurpolishfemale','America/North_Dakota/New_Salem','data:text/json;charset=utf-8,','cm/contacts/:id/hopper_histories','Chinese\x20Female','triggers/describe','user','AgentchangepasswordController','addIntervals','parseCrudPermissions','question','INTEGRATIONS.EDIT_','America/Whitehorse','rundialog','\x2721\x27','whatsapp/applications/:id','gotogoto','searchText','Process\x20updated!','filteredAgents','integrations/zoho/fields/:id/clone','matchType','chatPause','VOICE.VOICEQUEUES','clearAll','sms/interactions/:id/messages','EditoutboundApp','getZohoAccounts','\x27report_whatsapp_queue\x27','api.cmHopper.save','nl-NL','ja-JP','integrations/dynamics365/fields/:id','addCondition','SYSTEM:DELETE_HOPPER','sms/accounts/:id/interactions','addNewChatWebsite','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/gotop/dialog.html/dialog-[chunkhash].html','vtigerConfiguration','delete\x20Reports','token','SalesforceAccount\x20properly\x20tested','DASHBOARDS.UNREAD','Email\x20Queues','MusicOnHold','arraytype','isJsonString','loadShortcuts','api.intFreshdeskConfiguration.save','Value','udp','Arabic','app.openchannel.openchannelAccounts','app.mail.realtime.accounts','Female','dialQueueProject','autoSelectOperator','/api/chat/websites/:id/customer_avatar','wav49','contentOnly','SYSTEM:GETpauses','smsAccountApp','/odbcs','fax/queues/:id/users','CALLYSQUARE.NEW_PROJECT','The\x20ivrCampaign\x20will\x20be\x20deleted.','/jscripty','gotoDynamics365Accounts','voice_queue_channel:save','TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE','selectedOpenchannelAccountApps','CreateOrEditOdbcDialogController','.result','Subject\x20deleted!','integrations/servicenow/accounts/:id/clone','agreement','voiceDialReport','deleteFreshsalesConfiguration','IvrCampaign\x20updated!','deleteSmsAccountSmsCannedAnswer','Delete\x20actions','app.analytics','toDate','deleteChatWebsiteChatCannedAnswer','ChatWebsite\x20updated!','SalesforceConfiguration\x20deleted!','maxTimeUnit','startTimeAttr','api.telephone.save','To\x20is\x20mandatory','deskAccount','newSchedule','/chat','STAFF.NEW_USER','chat/reports/transfer/describe','Delete\x20triggers','createdAt,updatedAt,id,format,value,type,uniqueid,calleridnum,exten,connectedlinenum,queue,rating,audio,transcribeStatus,UserId','msApi::resolveSuccess','Tatyana','STAFF.PERMISSIONS_SELECTED_RESOURCES','varPath','SmsAccount\x20updated!','QueueCampaign\x20properly\x20saved!','Customization\x20properly\x20created','msVerticalStepper','createdAt,updatedAt,id,alias,type,values,required,clickToAction,actionType','app.analytics.reports','newAgent','setCurrentStep','createVidaooSession','apps.voice.voicePrefixes','newWhatsappCannedAnswer','api.intServicenowAccount.update','Russian\x20(Russia)','onMultiselectInit','MsStepper','userFaxQueue:save','Interactions','selectedOpenchannelAccountInteractions','transferNumber','arraydialCheckDuplicateType','code','newWhatsappQueue','AgentsWhatsappRealtimeController','countBy','OPENCHANNEL.EDIT_','msWidget','counter','api.tag.delete','rgba(','onUpdateFaxInteraction','OwnerId','hour','screenrecording','/:id?tab','fromKey','Please\x20select\x20a\x20variable','getSmsAccounts','INTEGRATIONS.SALESFORCEACCOUNTS','api.sound.save','integrations/freshdesk/fields/:id','analytics/extracted_reports/describe','addLists','list','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/interval/dialog.html/dialog-[chunkhash].html','EditInternalAppgotoDialogController','src/js/modules/main/apps/dashboards/views/general/user/whatsapp/user.general.whatsapp.html/user.general.whatsapp-[chunkhash].html','Asia/Krasnoyarsk','0.7','EditChatWebsiteAppamazonlexDialogController','Never','voiceMail@get','SYSTEM:DELETEmailSubstatus','statusText','Interval','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20chatProactiveAction?','SYSTEM:DELETEinterval','getHopperFinals','createOrEditList','Pirate','Raveena\x20(English,\x20Indian,\x20Female)','deselectFaxAccounts','EU\x20(Paris)','hiddenCC','vtigerAccounts','getVoiceRecordings','integrations/vtiger/configurations/:id/clone','SYSTEM:GETvoiceRecording','SYSTEM:GET_MUSICONHOLDS','AppZone','apps.mail.mailSubtatuses','BLACKLIST','app.fax.faxAccounts','apps.chat.chatWebsites','widgets','fields','contactRelationUpdate','=ngModel','\x27DESC\x27','.UNKNOWN','DASHBOARDS.NOTAVAILABLE','\x27report_jscripty_sessions\x27','getInternalRouteApps','api/','getFaxQueuesWaitingInteractions','delete\x20subjects','moveQueueCampaignHopperFinal','OpenchannelQueue','addBlackLists','Message\x20properly\x20accepted!','Invalid\x20company\x20name.','TOOLBAR.WARNING','SYSTEM:GETtags','idField','removeTab','VIDEO.EDIT_SCREENRECORDING','voicePrefixagentaddController','voice_outbound:save','app.mail.mailAccounts','integrations/zendesk/fields/:id/clone','day','createOrEditSugarcrmConfiguration','API:NEW_VARIABLE','isCompatibleBrowser','src/js/modules/main/apps/motiondialer/views/realtime/agents/view.html/view-[chunkhash].html','api.jscriptyProject.delete','/assets/images/theme-options/content-only.jpg','instant','api.intDeskConfiguration.delete','firstName,lastName,email','Abandoned','add','values','EU\x20(Ireland)','Chantal\x20(French,\x20Canadian,\x20Female)','ENTER','max','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/listadd/listadd.html/listadd-[chunkhash].html','app.integrations.freshsalesAccounts','America/Asuncion','analytics/default_reports/:id/query','deleteSelectedZendeskAccounts','saveTag','\x27route\x27','DASHBOARDS.WHATSAPP','$mdDialog','cmCustomField','id,name,enabled,includeAll,autoAssociation,crudPermissions','arraynat','Africa/Ceuta','iPod','Delete\x20OpenchannelQueue','cloneProject','Asia/Aqtobe','SYSTEM:GETprojects','app.analytics.reports.edit','exportSelectedMusicOnHoldMohSounds','secondLevelDisposition','app.voice.realtime.telephones','userProfileResource','members','SYSTEM:DELETEwhatsappQueue','cdr/:id/clone','INTEGRATIONS.NEW_SERVICENOWACCOUNT','/tags','dynamics365Account','integrations/salesforce/accounts/:id','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20messages?','DASHBOARDS.SUN','motion2.home.chat:','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/gotoif/dialog.html/dialog-[chunkhash].html','QueueParamsVoiceRealtimeController','IS\x20EMPTY','','addRecording','pt-PT','UserSmsAccount','attrSerie','callNumber','selectedColor','msFormWizardForm','deletePlugin','odbcs','id,name,level,ParentId','chatCapacity','green-A700-fg','tags','api.whatsappQueue.update','Website','Europe/Athens','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/autoreply/dialog.html/dialog-[chunkhash].html','users','newCannedAnswer','\x20and\x20','SYSTEM:UPDATECONFIGURATIONFIELD','Invalid\x20transfer','integrations/servicenow/fields/:id','delete\x20SugarcrmAccounts','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20screenRecordings?','Swedish\x20Female','table','PausesController\x20as\x20vm','saveExtractedReport','openchannelQueue:save','integrations/sugarcrm/accounts/:id/fields','MOTIONDIALER.ALL_LISTS','ghost','jscripty/projects/:id/summary','agent\x20updated!','getUserProfiles','Start\x20Date','Delete\x20OutboundRoute','reload','BEEP','attr','chatCurrentCapacity','az-AZ','class','file','internalControl','ilbc','getLockedItems','days','Internal\x20Call','sms/accounts/:id/status','createOrEditTemplate','firstName,lastName,fax','Delete\x20GlobalCustomField','voice/mails/:id/messages','Restore\x20Contact','da-DK','src/js/modules/main/apps/voice/views/voiceQueues/create/dialog.html/dialog-[chunkhash].html','getScheduledCalls','Arabic\x20(Bahrain)','onRemoveSmsQueue','selectedFaxAccountInteractions','Customizations','app.sms.smsQueues.edit','voicePrefix\x20properly\x20created','SYSTEM:GETfaxQueue','FooterController','hasChildrenPermissions','chat/interactions/:id/vidaoo','Tahoma','\x274800\x27','TOOLS.NOTIFICATIONS.ACTION_SAVED_SUCCESS_TITLE','gotoWhatsappAccounts','src/js/modules/core/directives/ms-advanced-search/ms-advanced-search.html/ms-advanced-search-[chunkhash].html','Asia/Kolkata','isValidRange','MailQueue\x20properly\x20deleted!','getContact','onUpdateChatInteraction','\x27report_dial\x27','networks','CustomDashboards','listOrderAsc','bn-BD','EditWhatsappAccountAppdialogflowDialogController','intSugarcrmAccount@get','api.inteactionMessage.get','delete\x20Intervals','cm/hopper_history/:id/clone','getProactiveActions','app.callysquare.projects.edit','\x20will\x20be\x20uninstalled.','Template','\x27files\x27','zh-HK','deleteSelectedInboundRoutes','whatsappInteractionDownload','getTriggerAllConditions','openchannelQueue:remove','src/js/modules/main/apps/openchannel/views/realtime/queues/view.html/view-[chunkhash].html','createOrEditSquareRecording','newMailCannedAnswer','vm.selectedCompany','screenRecordings','DuplicateContactDialogController','/deskAccounts','fax/messages/describe','ServicenowAccount\x20properly\x20created','allowedStandardFields','scope','apps.home.dashboard','TOOLS.NOTIFICATIONS.','SYSTEM:DELETEcampaign','clear','Salli','savevoicePrefix','WhatsappQueue\x20properly\x20created','src/js/modules/main/apps/marketplace/views/plugins/plugins.html/plugins-[chunkhash].html','Message\x20properly\x20rejected!','\x27report_sms_transfer\x27','SYSTEM:GETmailQueue','openchannelQueueReport','jscriptyQuestionReport','square/details/reports/:id/clone','next','\x274\x27','whatsappStatusTime','Attached\x20pm2\x20process\x20successfully\x20restarted','sms/accounts/:id/canned_answers','onSaveUserChatQueue','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperHistory?','Yiddish','width','assign','integrations/:id/clone','results','Emma\x20(English,\x20British,\x20Female)','SYSTEM:GETjscriptyProject','whatsappCannedAnswers','toasty','Delete\x20CustomDashboard','onUpdateChatQueue','selectedQueueCampaignHopperBlacks','Catalan','screenRecording@get','lastLoginAt','OPENCHANNEL.EDIT_OPENCHANNELACCOUNT','hopperFinal\x20#','chatInteractionDownload','data4','user@get','STAFF.','selectAllSquareRecordings','VoicePrefixesController','Delete\x20DeskConfiguration','src/js/modules/main/apps/fax/views/realtime/queues/view.html/view-[chunkhash].html','\x27whatsapp_accounts\x27','Delete\x20ZendeskConfiguration','Australia/Brisbane','ReportsController','getMailAccounts','deleteVtigerAccount','IvrCampaign\x20properly\x20cloned','SYSTEM:DELETEtag','saveSchedule','App\x20deleted!','\x27sms_accounts\x27','pt\x22>

','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20customFields?','hold','chatCannedAnswers','app.tools.triggers.edit','integrations/freshsales/accounts/:id','queryChannels','scrollTop','/accounts','Asia/Hebron','DEFAULT','delete\x20extractedReport','block','IvrCampaigncloneController','DASHBOARDS.NOT_ASSIGNED','onRemoveOpenchannelQueueChannel','selectedVoicemailMessages','mail/substatuses/:id/clone','notification:remove','hideDelay',':id','app.voice.voiceQueues','ms-navigation-folded-open','motionGenerator','api.chatWebsite.save','api.campaign.save','/analytics','TOOLS.NOTIFICATIONS.TRIGGER_DELETED_SUCCESS_TITLE','.html','Interaction\x20properly\x20closed!','requestSucceeded','STAFF.ALL_TEAMS','sort','selectedDeskAccounts','chatQueue@get','src/js/modules/main/apps/whatsapp/views/realtime/queues/view.html/view-[chunkhash].html','vm.query.filter','selectedInternalRouteApps','exportSelectedVoiceRecordings','SYSTEM:GETplugin','deselectTeams','OpenchannelAccounts','STAFF.CANCEL','changeDisplayCannedAnswerInputValue','MsWidgetEngineMultibarChartController','integrations/dynamics365/configurations/:id/subjects','ms-form-wizard','TOOLS.TEMPLATES','app.motiondialer','Telephones','message\x20#','0.54','variable.name','Asia/Tashkent','previousContact','isInConference','acceptcall','hue-2','CreateOrEditZendeskConfigurationDialogController','SalesforceAccountsController','CSCTelecom','from-sip','The\x20userProfile\x20will\x20be\x20deleted.','msApi::requestSuccess','#616161','app.marketplace','Trunk\x20properly\x20deleted!','OpenchannelQueue\x20properly\x20saved!','motion2.home.','priorities','openchannelInteraction:save','Are\x20you\x20sure?','showMessageInfo','SMS.SMS','DASHBOARDS.DASHBOARD','dynamics365Accounts','Dynamics365Account\x20properly\x20deleted!','wrapup','lists','src/js/modules/main/apps/staff/views/teams/edit/agentadd/agentadd.html/agentadd-[chunkhash].html','is-mobile','app.staff.userProfiles.edit','delete\x20freshsalesAccount','Cannot\x20find\x20module\x20\x27','dateRangeManager','api.smsQueue.update','SYSTEM:DELETEpause','/api/jira','DashboardCustomController','chat/interactions/:id/download','offHook','America/El_Salvador','bcc','MsNavigationHorizontalNodeController','startOf','whatsapp/messages/:id','exportSelectedMetrics','delete\x20Dynamics365Accounts','customFieldsMap','INTEGRATIONS.EDIT_VTIGERCONFIGURATION','LocalNET','sseconds','Customer\x20Journey\x20can\x27t\x20open\x20the\x20interaction','getFaxInteractions','integrations/vtiger/accounts/:id/configurations','Invalid\x20license\x20key','isValidCondition','ParentId','src/js/modules/main/apps/tools/views/cannedAnswers/create/dialog.html/dialog-[chunkhash].html','IvrCampaignsController\x20as\x20vm','DeskAccount\x20updated!','src/js/modules/main/apps/voice/views/outboundroutes/outboundroutes.html/outboundroutes-[chunkhash].html','The\x20mohSound\x20will\x20be\x20deleted.','prefix','focusOn','api.user.createApiKey','integrations/desk/configurations/:id/clone','Report\x20properly\x20copied!','chat/applications/:id','TCL:\x20vm.path','saveZendeskAccount','sessions','passwordExpiresDays','interceptors','No\x20corresponding\x20process\x20found','src/js/modules/main/apps/voice/views/realtime/queue_calls/view.html/view-[chunkhash].html','whatsappMessage','filterHiddenStep','intZohoAccount','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/goto/dialog.html/dialog-[chunkhash].html','smsCannedAnswer','user:agentconnect','app.contactmanager.lists.edit','apps.voice.inboundroutes','screen/recordings/:id/clone','app.voice.realtime.trunks','src/js/modules/core/layouts/vertical-navigation-fullwidth-toolbar.html/vertical-navigation-fullwidth-toolbar-[chunkhash].html','hold\x20->\x20session','/chatWebsites','addNewSugarcrmAccount','globalCompanies','src/js/modules/auth/services/hotdesk/dialog.html/dialog-[chunkhash].html','arraytable','voicePrefix','EditInboundAppqueueDialogController','newList','ringGroup','Answer','src/js/modules/main/apps/contactmanager/views/contacts/merge/dialog.html/dialog-[chunkhash].html','Templates','selectedSubjects','FreshdeskAccountController\x20as\x20vm','whatsapp/reports/transfer/describe','true','avgTalkTime','Openchannel\x20Account','onRemoveUserFaxQueue','KDE','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27inuse\x27','EditFaxAccountAppintervalDialogController','Delete\x20VoiceQueue','jscripty/sessions/reports/describe','New_Tab','msNav::pushToLockedList','FaxQueue\x20updated!','QueuesSmsRealtimeController\x20as\x20vm','item','InternalRoute','Conchita','EditWhatsappAccountAppgotoifDialogController','openchannel/interactions/describe','legend','teams/:id','goToFaxAccount','ngModel','\x27preview\x27','api.agent.save','firstName,lastName,phone,mobile','connection','newTag','src/js/modules/main/apps/integrations/views/zohoAccounts/zohoAccounts.html/zohoAccounts-[chunkhash].html','DialogController','exportDate','MxGraphUpdateInfoController','saveWhatsappQueue','when','SYSTEM:DELETEanalyticMetric','api.analyticreport.delete','VoicePrefixes','Pacific/Tarawa','DASHBOARDS.OPENED','EditInternalAppplaybackDialogController','CreateOrEditOpenchannelAccountDialogController','importReport','mail/messages/:id/download','Ruben\x20(Dutch,\x20Male)','America/Port-au-Prince','ScreenRecordingsController','Telephone\x20properly\x20deleted!','testtestOdbc','deleteSelectedSquareRecordings','gotocontactsgoto','motion.customTheme','Begin\x20forwarded\x20message:

From:\x20{{\x20from\x20}}
Subject:\x20{{\x20subject\x20}}
Date:\x20{{\x20date\x20}},\x20at\x20{{\x20time\x20}}
To:\x20{{\x20to\x20}}','registerForm','deselectAiTools','src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/configurations/dialog.html/dialog-[chunkhash].html','api.analyticExtractedReport.update','getCount','InternalRoute\x20updated!','chat/websites/:id/offline','handleMouseenter','Application_Name','STAFF.NEW_TEAM','app.integrations.sugarcrmAccounts','SYSTEM:DELETEintSalesforceAccount','WebsiteAlias','app.chat.chatQueues.edit','name','SYSTEM:DELETEvariable','id,name,crudPermissions','contact:import:','voicePrefix@get','Jan','uriLocation','APPS','America/Mexico_City','ANALYTICS.NO_METRIC_FOUND','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(CALLERID(all)=','userOpenchannelQueue:remove','src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeFax/dialog.html/dialog-[chunkhash].html','uk-UA','editMailAccountApp','openchannelQueues','Session\x20save\x20error','deleteSelectedOpenchannelQueues','Breton','deleteInboundRouteApp','MALE','delete\x20MusicOnHolds','exportSelectedCannedAnswers','whatsapp/messages/:id/accept','shortcuts','deleteOpenchannelAccount','Maxim\x20(Russian,\x20Male)','onSaveMailQueueChannel','CDR(prefix)=noprefix','Slovenian\x20(Slovenia)','isExtra','createOrEditOpenchannelQueue','CustomReports','sa-east-1','getChannelByItem','Updates','Your\x20password\x20properly\x20updated','api.item.save','timer-tick','truepriority','SYSTEM:GETvariables','app.contactmanager.globalCustomFields','deleteSelectedMusicOnHolds','MsSearchBarController\x20as\x20vm','selectAllWhatsappQueues','deleteSelectedServicenowAccounts','lastPauseAt','deleteSelectedWhatsappQueues','-08:00','en-GH','pascalprecht.translate','src/js/modules/main/apps/settings/views/license/license.html/license-[chunkhash].html','sms/reports/queue/:id/clone','mail_queue_waiting_interaction:save','oldPassword','Australia/Darwin','selectedInternalRoutes','network','pluginUpdated','ms-masonry-item','voiceQueueReport:update','HopperHistory\x20deleted!','\x27unavailable\x27','Asia/Irkutsk','optionalStep','internaldial','canned_answers/:id/clone','squareProject','dashboardItems','sms_queue_waiting_interaction:save','Agent','app.help.about','msTabScroll','deleteSelectedSmsAccountInteractions','sendReport','return','ContactSelectionController','getContacts','','whatsappAccountApps','*pause','unknown','deleteSelectedChatWebsites','template','forEach','selectedIvrCampaignHopperFinals','\x27report_queue\x27','SYSTEM:DELETEvoiceMusicOnHold','America/Los_Angeles','moveSelectedQueueCampaignHopperFinals','saveProject','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/dialogflow/dialog.html/dialog-[chunkhash].html','Scheduler','home.openchannel','awsPollyVoice','isUndefined','\x27q\x27','goTo','Italian\x20(Italy)\x20/\x20Finnish\x20(Finland)','Realtime','Uzbek','src/js/modules/main/apps/marketplace/views/plugins/edit/view.html/view-[chunkhash].html','\x27report_chat_transfer\x27','vm.voiceQueue.joinempty.length\x20===\x201\x20\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27no\x27','apps.fax.faxAccounts','deselectZendeskAccounts','createOrEditTag','errors','selectedList','api.mailQueue.save','deletevoicePrefix','Key','downloadChatInteraction','Asia/Oral','src/js/modules/main/apps/fax/views/faxAccounts/edit/agentadd/agentadd.html/agentadd-[chunkhash].html','project_id','SYSTEM:DELETEmailQueue','delete\x20zendeskConfiguration','PrefixDialogController','openchannel/messages/:id','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/amazonlex/dialog.html/dialog-[chunkhash].html','SettingsController','customFieldsForm','selectAllScheduler','Message:update','Report\x20downloaded!','out-left-aligned','createOrEditIvrCampaign','delete\x20salesforceAccount','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/externaldial/dialog.html/dialog-[chunkhash].html','SYSTEM:DELETEschedule','$inject','editHopper','integrations/desk/fields/describe','motion.authenticationtype','id,name,mapAgentsId,waiting','offlineForm','#275498','OutboundRouteController','newVoiceQueue','isStepNumberValid','deselectDynamics365Accounts','MailSubstatus','cm/companies/:id/clone','variable@get','MsStepperController\x20as\x20MsStepper','AmazonAWS','US\x20East\x20(N.\x20Virginia)','chatWebsite@get','users/:id/queues','VoicemailsController','intSugarcrmField','delete\x20message','editdialog','app.dashboards.general.chat','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/close/dialog.html/dialog-[chunkhash].html','chatTransferReport','general','team','localizationMap','America/Cambridge_Bay','openchannel_queue_waiting_interaction:save','MOTIONDIALER.EDIT_IVRCAMPAIGN','EditWhatsappAccountAppnoopDialogController','arraydtmfmode','saveOpenchannelAccount','Chinese\x20(Simplified)','g729','Japanese','motion2.home.mail:','id,name','EditMailAccountAppgotoifDialogController','api.voiceContext.save','selectedChatWebsiteChatCannedAnswers','dnd','evt','WHATSAPP.ALL_TEAMS','Courier\x20New,Courier,monospace','sms_text','treeReports','Agent\x20Report','\x27gmail\x27','trimStart','faxTransferReport','delete\x20dynamics365Account','dispose','app/core/directives/ms-widget-engine/ms-widget-engine-','deleteZohoConfiguration','voiceQueue:update','Kannada\x20(India)','substatus','integrations/dynamics365/accounts/:id/configurations','Mailbox@Context','xAnswerAfterSec','createdAt,updatedAt,id,callerid,duration,audio,stamp,msg_id','voiceQueueReport','voiceQueue:remove','Europe/Budapest','Marathi\x20(India)','voiceQueuesLog/describe','fromNow','getOpenchannelAccountApps','IntervalId','deleteSelectedFaxAccountApps','\x20has\x20been\x20','notifications','users/:id/sms_accounts','/trunks','deleteUser','motion-blue','app.fax.realtime','level','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20interactions?','SYSTEM:DELETEfaxAccount','whatsapp','SYSTEM:GETreport','Interval\x20properly\x20deleted!','isPartialPause','SYSTEM:GETmailAccount','UpdateLicenseDialogController','French','STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE','palettes','isAgent','UservoicePrefix','integrationTab','columnWidth','api.voicePrefix.update','uploadSounds','deselectPlugins','downloadFaxInteraction','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20vtigerAccounts?','license@get','app.tools.triggers','MailRealtimeController\x20as\x20vm','MailQueueController\x20as\x20vm','chanSpy\x20properly\x20created','getTracks','-04:00','chat_queue_waiting_interaction:save','TOOLS.NOTIFICATIONS.TRIGGER_SAVED_SUCCESS_TITLE','square/recordings/:id/download','clone','showPredictiveQueueCampaignInfo','intZohoField','msTimeline','CAMPAIGN\x20NOT\x20ACTIVE','split','createList','selectedUsers','Description\x20deleted!','sms/interactions/:id/download','addons','Delete\x20Context','outerHeight','deletePause','app.motiondialer.queueCampaigns.edit','INTEGRATIONS.EDIT_DESKACCOUNT','OpenchannelQueueController','attributes','mail/applications/:id','api.analyticExtractedReport.delete','TOOLBAR.HINDI','Chinese,\x20Cantonese\x20(Traditional,\x20Hong\x20Kong)','sms/interactions/:id/clone','selectAllUsers','createOrEditProject','app.fax','deleteSelectedReports','foreground','voiceExtension','GROUP_CONCAT','outboundDropCallsDayTimeout','CALLYSQUARE.EDIT_ODBC','api.intFreshdeskAccount.update','saveServicenowConfiguration','General\x20properly\x20saved!','currentconferenceSessions','Type\x20the\x20target','saveOrPublishProject','delete\x20deskConfiguration','msScrollConfig','voice/mohs/:id/sounds/:id2','api/users/','Notification\x20API\x20not\x20supported','whatsapp/queues/:id/teams','api.dashboardItem.delete','Triggers','addNewInternalRoute','\x20attached\x20process\x20will\x20be\x20stoppped.','deleteSelectedZohoAccounts','Import\x20process\x20failed!','openchannelAccountInteractions','api.squareRecording.delete','api.tag.save','+03:00','verifysmtpverifysmtp','addNewChatProactiveAction','whatsappStatus','deleteTemplate','US\x20West\x20(Oregon)','saveChatGroup','editOpenchannelAccountApp','VOICE.EDIT_OUTBOUNDROUTE','DASHBOARDS.SELECT_DATE_RANGE','getConfig','ForgotPasswordController\x20as\x20vm','src/js/modules/header/layouts/vertical-navigation/header.html/header-[chunkhash].html','Compose','rows','/realtime','integrations/servicenow/fields/:id/clone','VOICE.NEW_OUTBOUNDROUTE','cmHopper','src/js/modules/main/apps/integrations/views/vtigerAccounts/vtigerAccounts.html/vtigerAccounts-[chunkhash].html','','floor','delete\x20voicePrefix','SmsQueuesController\x20as\x20vm','Metric\x20properly\x20saved!','OPENCHANNEL.OPENCHANNELQUEUES','ChatQueueController','MsTabScrollController','finish','Delete\x20List','InternalRoutes','CreateOrEditUserProfileDialogController','MAIL.MAIL','SYSTEM:GETqueues','saveMailCannedAnswer','/lists','whatsappAccountWhatsappCannedAnswers','exportSelectedZohoAccounts','addNewChatCannedAnswer','chunk','\x27fewestcalls\x27','UpdatesController\x20as\x20vm','msNav','callbackurl:\x22','\x27agent_fullname\x27','European\x20Turkish\x20Female','ChatWebsites','\x27thumb\x27','freshdeskAccount','VtigerAccount\x20updated!','English\x20(New\x20Zealand)','SYSTEM:GET_VOICEQUEUES','selectedServicenowAccounts','CreateOrEditGeneralDialogController','WhatsappAccount\x20updated!','clonedialog','whatsappAccount','/*\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}','Japanese\x20(Japan)','\x20sessionToHangup','whatsappAccountApp','INTEGRATIONS.SUGARCRMACCOUNTS','RunReportDialogController','COUNT\x20DISTINCT','forward','ensureSelectedResultIsVisible','integrations/freshsales/configurations/:id','address','onSaveOpenchannelInteraction','Arabic\x20(Egypt)','newCompany','all','CreateOrEditAnyConditionDialogController','toggleMsNavigationFolded','/system?tab','theme','us-west-2','api.cloudProvider.update','Set','The\x20list\x20is\x20empty','cm/lists/:id','chat/offline_messages/:id/clone','app.tools.cannedAnswers','FaxRealtimeController\x20as\x20vm','WHATSAPP.EDIT_WHATSAPPACCOUNT','SYSTEM:GETvoiceMails','src/js/modules/core/directives/ms-phonebar/referAttended/dialog.html/dialog-[chunkhash].html','offlinemessagesgoto','Fax\x20Messages','pendingChanges','drafts','api.intSalesforceConfiguration.delete','src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/view.html/view-[chunkhash].html','CustomReportId','userLists','ExtractedReport\x20properly\x20deleted!','models','trunk:save','intervals/describe','integrations/describe','getDeskConfiguration','disableCustomScrollbarsOnMobile','currentPath','Unlicensed','app.integrations.deskAccounts','vtiger','Brian','delete\x20mohSounds','Atlantic/Madeira','300\x20400','onStart','whatsapp/reports/queue/:id','saveSmsAccount','300','src/js/modules/main/apps/tools/views/intervals/create/dialog.html/dialog-[chunkhash].html','STAFF.CLONE_USERPROFILE','Dashboards','id,body','Squared','quickFilterManager','admin','voiceMusicOnHold','addNewMailSubstatus','POST','Fax\x20','sourceid','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20globalCustomFields?','*|\x0a','VOICE.ALL_TEAMS','whatsapp/interactions/describe','AgentHomeScheduledCallsController','microphone','Europe/Luxembourg','Fwd:','progressive','EditOpenchannelAccountApptagDialogController','settings/:id/favicon','api.smsQueue.save','exportSelectedVoiceQueues','light','addVoiceQueuesChannels','aws_access_key_id','Unable\x20to\x20play\x20autoAnswer\x20notification','sms/accounts/:id/dispositions','chatApplication','app.forgot','Maori','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27inuse\x27','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20session?','voiceQueueReport:save','onSearchBarExpand','\x271\x27','chat/interactions/:id/attachment_download','api.intDeskAccount.save','createOrEditTriggerAllCondition','saveInboundRoute','integrations/zendesk/accounts/:id/fields','cmCompany@get','src/js/modules/main/apps/staff/views/agents/agents.html/agents-[chunkhash].html','users/:id/prefixes','America/Boa_Vista','host','delete\x20DeskAccounts','uselessFields','CONTACTMANAGER.NEW_LIST','selectedNetworks','faxQueue:save','vendor','integrations/desk/configurations/:id/tags','sep','Project\x20properly\x20','onSaveWhatsappQueue','provider','h264','saveInboundRouteApp','Pacific/Kosrae','JSCRIPTY.DO_YOU_WANT_TO_RESET_SESSION','chat/proactive_actions/:id/clone','formatdate','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/playback/dialog.html/dialog-[chunkhash].html','VoiceQueues','top\x20right','prototype','userSmsQueue:save','SYSTEM:GET_INTERVAL','whatsappQueue:update','updateCondition','DASHBOARDS.DISABLED','DASHBOARDS.FRI','catch','SmsCannedAnswer\x20properly\x20deleted!','_blank','getAuthenticationType','ivrCampaign','amazonlex','src/js/modules/toolbar/preview/dialog.html/dialog-[chunkhash].html','hide','trunk_id','addNewDynamics365Account','deselectContexts','userProfiles/:id/resources','The\x20deskConfiguration\x20will\x20be\x20deleted.','createdAt,','Extension','api.intDynamics365Configuration.delete','INTEGRATIONS.SERVICENOWACCOUNTS','UserOpenchannelQueue','app/header','Network\x20properly\x20created','Radio\x20Buttons','Queues\x20association\x20has\x20been\x20updated!','MsTimelineController','TOOLBAR.DUTCH','ToolbarController','analytics/extracted_reports/:id/download','jscripty/projects/:id/clone','FaxQueue\x20properly\x20saved!','\x2718\x27','contents','UserProfile\x20properly\x20saved!','resetForm','delete\x20Networks','newInterval','selectAllOutboundRoutes','msNavIsFolded','\x27sms_queues\x27','faxMessage:save','America/Cayenne','intFreshsalesField','SETTINGS.EDIT_CUSTOMIZATION','arraydirectmedia','removeCookies','app.voice.voiceRecordings.edit','zoho.eu','outboundUnknownCallsDay','dialMethod','CreateOrEditWhatsappAccountDialogController','prop','SYSTEM:GETCONFIGURATION','src/js/modules/main/apps/tools/views/trunks/edit/view.html/view-[chunkhash].html','getTrunks','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','User\x20API\x20key\x20updated!','getHeader','angular.filter','deletedAt','mailAccount@get','redirectToNumber','icon-sitemap','DisposeCallDialogController','api.openchannelAccount.update','api.trigger.save','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27yes\x27','CustomDashboard\x20properly\x20deleted!','Xhosa','ngValue','GeneralsController','SYSTEM:DELETEfaxQueue','deleteSelectedQueueCampaignHoppers','onUnhold\x20->\x20session,\x20data','app.whatsapp.whatsappQueues.edit','SYSTEM:GETmusiconholds','InteractionDialogController','describeTable','Settings','msChipColor','square/recordings/:id','src/js/modules/main/apps/tools/views/templates/create/dialog.html/dialog-[chunkhash].html','icon-format-text','deleteSelectedVoicePrefixes','America/Rankin_Inlet','America/Hermosillo','Admin','Delete\x20FreshsalesConfiguration','createOrEditVtigerConfiguration','getVoiceCalls','src/js/modules/main/apps/integrations/views/zohoAccounts/create/dialog.html/dialog-[chunkhash].html','api.squareProject.save','src/js/modules/main/apps/motiondialer/views/queueCampaigns/create/dialog.html/dialog-[chunkhash].html','zh-TW','src/js/modules/quick-panel/tabs/groups/create/dialog.html/dialog-[chunkhash].html','src/js/modules/main/apps/sms/views/realtime/queues/view.html/view-[chunkhash].html','getServicenowAccounts','European\x20Danish\x20Female','app.voice.internalroutes','src/js/modules/main/apps/sms/views/realtime/realtime.html/realtime-[chunkhash].html','Arabic\x20(Saudi\x20Arabia)','INTEGRATIONS.EDIT_VTIGERACCOUNT','Connection\x20succeded!','apps.contactmanager.lists','-10:00','/assets/images/theme-options/content-with-toolbar.jpg','DASHBOARDS.FEBRUARY','Europe/Lisbon','formsIncomplete','queueNotifyMethod','editstate','contactFields','chatWebsiteInteractions','mail','#9ea1a9','QueueCampaigns','integrations/desk/configurations/describe','Openchannel\x20Report\x20Transfer','ChatWebsiteagentaddController','sms/applications/describe','\x27integrationTab\x27','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20openchannelCannedAnswer?','ChatQueue','speed','CustomDashboard\x20properly\x20created','saveItem','^msNavigationNode','gotoTriggers','create_node','Error404Controller\x20as\x20vm','treeDefaultInstance','trigger:browser:popup','app.contactmanager.companies','position','src/js/modules/main/apps/tools/views/customDashboards/edit/dashboard/dialog.html/dialog-[chunkhash].html','Europe/Stockholm','whatsapp/applications/describe','configurations','MusicOnHoldsController\x20as\x20vm','\x27zoho.com\x27','reschedule','analytics/field_reports/:id/create_many','createOrEditQueueCampaign','jscriptySessionReport','SYSTEM:GETsounds','gotoFreshsalesAccounts','0.87','deleteQueueCampaignHopperHistory','\x27g729\x27','/assets/images/theme-options/vertical-nav-with-full-toolbar.jpg','RESETPASSWORD.PASSWORD_RESET','deleteVariable','CreateOrEditFreshsalesAccountDialogController','queryHistory.filter','saveProjectAs','trigger@get','dddd','faxQueue','collapseOnBlur','rules','fax/accounts/:id/clone','700','Low','openchannel/interactions/:id/clone','/variables','Unable\x20to\x20create\x20session!','\x27website_alias\x27','es-PE','\x27report_sms_queue\x27','America/Puerto_Rico','*,*,*,*','src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/configurations/dialog.html/dialog-[chunkhash].html','404','setThemesList','The\x20status\x20will\x20be\x20changed\x20to:\x20','dateEnd','VOICE.MUSICONHOLDS','current','voice/queues/:id/users','api.mailAccount.update','welcomemessage','Mobile\x20','api.faxQueue.save','manageResources','sectionId','The\x20freshdeskConfiguration\x20will\x20be\x20deleted.','delete\x20scheduled\x20call','\x27eu-west-1\x27','#content','composeFaxInteraction','Would\x20you\x20like\x20to\x20delete\x20','field,alias','inband','cloudProvider','AgentsFaxRealtimeController\x20as\x20vm','CreateOrEditOpenchannelQueueDialogController','HOUR','lastOut','Which\x20number\x20do\x20you\x20want\x20transfer\x20the\x20call\x20to?','Restored','newVariable','mailInteractionTags:save','selectAllTeams','intVtigerConfiguration','el-GR','EditFaxAccountAppnoopDialogController','survey','openchannelCurrentCapacity','ResetPasswordController','getIntervals','phonenumber','delete\x20hopperFinal','VOICE.VOICERECORDINGS','Variable\x20properly\x20saved!','duplicate','closedAt','chatMessage:update','vi-VN','VOICE.NEW_VOICEMAIL','STAFF.CONFIRM','ServicenowAccount\x20updated!','questionId','resetPassword','chatStatus','whatsappTransferReport','400','EditOpenchannelAccountAppdialogflowDialogController','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/tag/dialog.html/dialog-[chunkhash].html','Label','app/main/apps/dashboards','OPENCHANNEL.OPENCHANNEL','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/agent/dialog.html/dialog-[chunkhash].html','path','User\x20properly\x20created','DASHBOARDS.SELECT_DATE','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20item?','chat/websites/:id/users','musiconholds','deleteCustomDashboard','plugin:update','onFirstLevelSelection','onFinish','mail/accounts/:id/send','getUserMedia','jan','permissionsmanagedialog','Contact','whatsappInteraction:update','apps.home.contacts','Delete\x20AllCondition','Group\x20properly\x20deleted!','WhatsappAccount\x20properly\x20saved!','app.callysquare.squareRecordings','api.dashboardItem.save','deselectInboundRoutes','eurportuguesefemale','600','secret','SalesforceConfiguration\x20properly\x20saved!','rpcMailQueuesWaitingInteractions','getArrayErrors','flip','\x27penalty\x27','The\x20license\x20has\x20been\x20updated!','selectAllVtigerAccounts','interaction','The\x20zendeskAccount\x20will\x20be\x20deleted.','toISOString','AiTools','removeApiKey','api.intSalesforceAccount.update','editCondition','createdAt,updatedAt,id,ContactId,phone,countcongestionretry,countbusyretry,countnoanswerretry,countnosuchnumberretry,countdropretry,countabandonedretry,countmachineretry,countagentrejectretry,scheduledat,priority','\x27/var/opt/motion2/server/files/sounds/converted/{{sound.save_name}}\x27','src/js/modules/main/apps/settings/views/smtps/smtps.html/smtps-[chunkhash].html','minutes','find','API\x20accept\x20message\x20not\x20found:\x20','getApi','editInboundRouteApp','#3470ca','D\x20MMM\x20YYYY','Successful\x20call','\x20Contacts\x20selected','createOrEditCustomDashboard','inuse','saveMailAccountApp','groupsToArray','TelephonesVoiceRealtimeController','SugarcrmAccount','app.voice.contexts','Disposition','\x27sv\x27','allConditions','Century\x20Gothic,Futura,Didact\x20Gothic,san-serif','CreateOrEditAgentDialogController','Raveena','members/reports/describe','phoneBarEnableScreenRecordingByAgent','File\x20name','macro','STAFF.NOTIFICATIONS.PERMISSIONS_DISABLED_ALL_SUCCESS_MESSAGE','mail/out_servers/:id/clone','pt\x22>','eurportuguesemale','app.jscripty.projects.edit','CHAT.ALL_AGENTS','Companies','selectAllIntervals','arrayattach','\x20has\x20been\x20verified!','chat/websites/:id/offline_messages','addNewAction','intServicenowAccount@get','SugarCRM','0.12','DASHBOARDS.NO_DISPOSITION_SET','deleteSelectedVoicemailMessages','track','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20description?','controller','teal-bg','MAIL.UNKNOWN','\x27datetime\x27','deleteSelectedUsers','Last\x20Year','outboundrouteApps','selectedSugarcrmConfiguration','users/:id/openchannel_interactions','onSelectListSuccess','onRemoveWhatsappQueueChannel','uninstallplugin','teal','JscriptyProjectsController\x20as\x20vm','\x27yahoo\x27','AgentGeneralContactController','animateHeightClass','badges','whatsappAccountInteractions','.ogg','InboundRoutesController\x20as\x20vm','CreateOrEditMusicOnHoldDialogController','mailStatus','SYSTEM:UPDATECMHOPPERFINAL','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/gotoif/dialog.html/dialog-[chunkhash].html','appsecret','getDaysOfWeek','init','flow','msScroll','gotoSalesforceAccounts','escapeToClose','isNumber','zh-CN','deleteSelectedTriggers','PowerDialing','api.intDynamics365Account.delete','chatInteraction:save','Subject','Text','getGroups','mail/interactions/:id/download','MsWidgetEngineController','getChanSpies','UNIX_TIMESTAMP\x20(','openProject','icon-whatsapp','settings/:id/logo_login','Hacker','src/js/modules/main/apps/contactmanager/views/lists/edit/view.html/view-[chunkhash].html','ZendeskConfiguration\x20properly\x20saved!','gotoServicenowAccounts','Voice','removeSquareProjects','fax/interactions/:id/tags','deleteFaxAccountApp','cm/hopper_final/:id/clone','integrations/freshsales/accounts/:id/fields','deselectProjects','ar-IQ','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperHistories?','app.dashboards.general.user','ChatWebsite\x20properly\x20created','INTEGRATIONS.NEW_','eurspanishmale','\x27limit\x27','selectedIvrCampaignHoppers','eurgermanmale','gridster','deleteOutboundRoute','root','saveOpenchannelAccountApp','findLast','OpenchannelAccount\x20properly\x20created','icon-apps','src/js/modules/core/directives/ms-shortcuts/ms-shortcuts.html/ms-shortcuts-[chunkhash].html','@msUtils.firstLastDayMonth()','createOrEditWhatsappAccount','src/js/modules/main/apps/callysquare/views/projects/projects.html/projects-[chunkhash].html','arraySmtp.service','apps.openchannel.realtime','toggleCollapsed','onVoiceExtensionUpdate','SMS.EDIT_','VIDEO.NEW_SCREENRECORDING','createOrEditvoicePrefix','VOICE.RUNTRANSCRIBESENTIMENT_VOICERECORDING','/queue_params','Slovak\x20(Slovakia)','\x27invite\x27','gotorealtimegoto','Asia/Vladivostok','addNewvoicePrefix','\x27report_fax_queue\x27','Asia/Kuching','hasDashboardPermissions','QueueCampaignblacklistaddController','setBaseUrl','ProjectcloneController','
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Extra:\x20','getIvrCampaignHopperBlacks','selectedInboundRoutes','Vitoria\x20(Portuguese,\x20Brazilian,\x20Female)','integrations/dynamics365/fields/describe','querySearch','nolimit','Files','toolbarColor','UserId','test','app.mail','deleteSelectedVoiceRecordings','gotoContacts','src/js/modules/main/apps/staff/views/telephones/edit/view.html/view-[chunkhash].html','src/js/modules/main/apps/mail/views/mailQueues/mailQueues.html/mailQueues-[chunkhash].html','green-300-fg\x20icon-phone-in-talk','voiceQueuesSelected','src/js/modules/main/apps/integrations/views/freshdeskAccounts/freshdeskAccounts.html/freshdeskAccounts-[chunkhash].html','Request\x20sent!','whatsappMessage:update','Email\x20Interaction','opts','arrayrecordingFormat','exportSelectedWhatsappAccountInteractions','stun:','SYSTEM:LISTS_ASSOCIATION','app.chat','Asia/Kabul','dateStart','Pacific/Marquesas','src/js/modules/main/apps/staff/views/teams/create/dialog.html/dialog-[chunkhash].html','onHook','msDialogRecording','UserWhatsappDashboardGeneralController','appid','Delete\x20SugarcrmAccount','\x20properly\x20created','America/Argentina/Ushuaia','createOrEditVtigerAccount','\x27strict\x27','_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','selectedTeams','Delete\x20SalesforceAccount','FaxAccountId','deselectFreshsalesAccounts','MMM\x20d,\x20y\x20h:mm\x20a','TOOLS.SOUNDS','GlobalCustomField\x20properly\x20created','companies','European\x20Norwegian\x20Female','definePalette','SYSTEM:DELETEtrunk','composeMailInteraction','apps.marketplace.plugins','api.whatsappQueue.delete','EditMailAccountApp','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/create/dialog.html/dialog-[chunkhash].html','createdAt,updatedAt,id,name,type,active,description,icon,sidebar,path,adminUrl,agentUrl,scriptName,scriptPath,version','xmd-contactid','api.staff.save','UserWhatsappAccount','AgentHomeRecordingsController','VOICE.VOICEPREFIXES','Close\x20Contact','abandonRate','Asia/Makassar','delete\x20VoiceRecordings','ExtractedReport','EditSmsAccountAppintervalDialogController','deleteSelectedTags','arrayoutput','aws_secret_access_key','oct','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20smsQueues?','dashboardItem','allowedItems','openchannelCannedAnswers','script','setScrollEl','api.userProfile.save','delete\x20salesforceConfiguration','CannedAnswersController\x20as\x20vm','isDisabled','ChineseSimplified','app.tools.intervals','FaxQueueteamaddController','Hungarian\x20(Hungary)','YYYY-MM-DD\x20HH:mm:ss','app.voice.realtime.queues','selectAllTriggers','License','usenglishmale','#5688d3','whatsapp/messages/describe','mail/reports/transfer/:id/clone','userProfile@get','md-toolbar','getChatInteractions','allDispositions','delete\x20whatsappQueue','gosub','ZendeskConfiguration\x20properly\x20created','api.intZohoAccount.save','onRemoveChatQueue','pause','motion.cookieAlertHide:','get_node','createdAt,updatedAt,id,appdata,type,exten,context,recordingFormat,cutdigits,description','router','conditions/describe','SYSTEM:DELETEFIELD','English\x20(Ireland)','Trunk','InternalRouteActionsController','src/js/modules/main/apps/sms/views/smsQueues/create/dialog.html/dialog-[chunkhash].html','selectedLanguage','mail/accounts/describe','MOTIONDIALER.EDIT_QUEUECAMPAIGN','metric','rpc@getVoiceQueuesChannels','API:GET_COMPANY_SECTION','src/js/modules/main/apps/sms/views/smsAccounts/edit/agentadd/agentadd.html/agentadd-[chunkhash].html','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20lists?','draggable','chat/interactions/:id/messages','onaddstream','addNewTeam','createdAt,updatedAt,id,name,description,username,accessKey,remoteUri,serverUrl',',xX,,,300,,,,,','Tamil\x20(Singapore)','SalesforceAccountController','api.intZohoConfiguration.update','outboundrouteid=','Network','gotoReports','cm/hopper_black/:id/clone','delete\x20sessions','USERPROFILE:GETRESOURCES(','FreshdeskAccountsController','src/js/modules/main/apps/analytics/views/reports/run/dialog.html/dialog-[chunkhash].html','isEstablished','addNewSound','addNewVoicemail','faxAccountApp','integrations/salesforce/accounts/:id/configurations','/video','readAsDataURL','TOOLS.NOTIFICATIONS.ACTIONS_DELETE_MESSAGE','Atlantic/Azores','stateRegistry','ContactController','HH:mm:ss','chat/websites/:id/notify','pullAllBy','Dynamics365AccountConfigurationsController','initialize','ms-nav','deleteMailAccountMailCannedAnswer','OPENCHANNEL.SELECTED_TEAMS','/api/settings/1/logo_login','ChatCannedAnswer\x20deleted!','\x27de\x27','List\x20properly\x20saved!','transfer','src/js/modules/main/apps/analytics/views/reports/preview/dialog.html/dialog-[chunkhash].html','addNewSmsQueue','America/Barbados','SYSTEM:DELETEvoiceMail','src/js/modules/main/apps/tools/views/customDashboards/edit/view.html/view-[chunkhash].html','delete\x20Projects','Delete\x20ChatWebsite','src/js/modules/main/apps/staff/views/users/users.html/users-[chunkhash].html','rgba','createdAt,updatedAt,id,field,alias,function,format,groupBy,orderBy,custom,MetricId','Dynamics365Configuration\x20properly\x20deleted!','targetEvent','default','getColorByItem','UploadPluginDialogController','SYSTEM:DELETEdashboard','safari','inboundrouteApps','createdAt,updatedAt,id,name,service,data2,data1','SYSTEM:DELETEwhatsappAccount','addNewReportField','src/js/modules/main/apps/whatsapp/views/realtime/realtime.html/realtime-[chunkhash].html','DELETE_PERMISSION','Announce_Overrides','..a','sortable','src/js/modules/main/apps/staff/views/telephones/telephones.html/telephones-[chunkhash].html','chat/interactions/:id/my_messages','removeItems','parentKey','Delete\x20SquareRecording','versionSearch','recipient','retry','\x27cm_hopper_history\x27','wechat','differenceWith','Interval\x20updated!','src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/view.html/view-[chunkhash].html','addNewItem','$eval','getSmsInteractions','setPermission','$interval','src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/item/dialog.html/dialog-[chunkhash].html','exportSelectedVoicePrefixes','\x27gsm\x27','IvrCampaignHopperStatisticsController','triggers','Campaign','FAX.SELECTED_AGENTS','timer-set-countdown','edit','updateLocalStorage','B:\x20Instead\x20of\x20whispering\x20on\x20a\x20single\x20channel\x20barge\x20in\x20on\x20both\x20channels\x20involved\x20in\x20the\x20call.','ms-scroll','Playback','Last\x20Month','chatQueue:save','getContactLabel','createOrEditPause','\x20has\x20been\x20cloned!','Unable\x20to\x20convert\x20question','ms-stepper-step','createOrEditFreshsalesAccount','ZendeskAccountsController\x20as\x20vm','voice/queues/reports/:id/clone','globalStatusTime','#ececee','MAIL.EDIT_MAILACCOUNT','onSaveUserSmsQueue','valueReplacer','saveMailAccount','differenceBy','ZohoConfiguration\x20properly\x20saved!','JSCRIPTY.NEW_PROJECT','\x20has\x20been\x20installed!','RESETPASSWORD.PASSWORD_RESET_MESSAGE','createdAt,updatedAt,id,role,fullname,name,email,password,description,autointernal,internal,voicemail,transport,nat,allow,callerid,context,callgroup,pickupgroup,videosupport,encryption,phone,mobile','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','friend','HANGUPCAUSE_16','Interaction\x20deleted!','api.telephone.changePassword','src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/item/dialog.html/dialog-[chunkhash].html','deleteSelectedChatWebsiteOfflineMessages','New\x20Item','icon-label','MailQueue\x20properly\x20created','pt-br','src/js/modules/main/apps/voice/views/chanSpies/chanSpies.html/chanSpies-[chunkhash].html','AgentsWhatsappRealtimeController\x20as\x20vm','unmute','CreateOrEditZendeskAccountDialogController','addNewFreshdeskConfiguration','\x27report_openchannel_queue\x27','intersection','America/Glace_Bay','\x27star\x27','sms/queues/:id/members','Description\x20has\x20been\x20deleted!','cmHopperHistory','reLayoutDebounce','CreateOrEditVariableDialogController','SmsAccountDispositionsController','online','Interval\x20properly\x20created','icon-keyboard','sumHoldTime','\x27adminOnly\x27','fax/applications/:id','runtranscriberuntranscribesentiment','src/js/modules/main/apps/openchannel/views/openchannelAccounts/create/dialog.html/dialog-[chunkhash].html','icon-script','api.whatsappQueue.save','recentEmojis','Voicemail\x20properly\x20created','FaxQueue\x20properly\x20deleted!','rpcTelephones','updateLayoutMode','onRemoveMailQueueChannel','MotionDialer','MOTIONDIALER.REALTIME','analytics/field_reports/create_many','SYSTEM:GETvoiceMusicOnHold','createdAt,updatedAt,id,service,name,email,Smtp.service,Smtp.host,Smtp.port,Smtp.secure,Smtp.authentication,Smtp.user,Smtp.pass,description','addNewInboundRoute','tech','Gmail','selectedChatWebsites','TOOLBAR.BRAZILIAN','DASHBOARDS.ALL','getLogo','src/js/modules/main/apps/analytics/views/extractedReports/extractedReports.html/extractedReports-[chunkhash].html','Message','AbandonedCallsVoiceRealtimeController','id,name,internal,fullname','centered','The\x20chatWebsite\x20will\x20be\x20deleted.','EditFaxAccountAppgotopDialogController','All\x20unfilled\x20values\x20of\x20the\x20contact\x20#','cm_contacts','\x22\x20target=\x22_self\x22>','DASHBOARDS.SELECT_QUEUE','IntervalIntervalsController','getMailQueues','integrations/dynamics365/configurations/:id','goToEditState','delete\x20customDashboard','\x27agent_alias\x27','The\x20openchannelQueue\x20will\x20be\x20deleted.','contrast','loggedIn','newDashboardItem','formats','onload','convertDuration','stringToNumber','src/js/modules/main/apps/chat/views/realtime/realtime.html/realtime-[chunkhash].html','app.motiondialer.ivrCampaigns.edit','voice/recordings/describe','colors','rpc@getOutbound','Hopper\x20properly\x20saved!','\x27centered\x27','delete\x20chatQueue','initializeRealtimeQueue','Delete\x20FreshdeskConfiguration','TOOLS.INTERVALS','','GeneralsController\x20as\x20vm','\x27onlyIfOpen\x27','onIntegrationInit','\x2717\x27','getVoiceQueuesPreview','Channel\x20','Phonebar','Asia/Yakutsk','preload','\x27g722\x27','msCard','pull','jscriptySessions','onOperatorChange','sortableTable','src/js/modules/main/apps/staff/views/users/edit/view.html/view-[chunkhash].html','preventDefault','The\x20cannedAnswer\x20will\x20be\x20deleted.','monthName','getMonthName','#ms-shortcut-add-menu','ListDispositionsController','InboundRoutes','src/js/modules/main/apps/tools/views/sounds/upload/dialog.html/dialog-[chunkhash].html','Asia/Sakhalin','updating','exportSelectedODBC','subString','-=400','voiceQueuesTotal','SYSTEM:GEToutboundRoutes','users/:id/avatar','write','VOICE.DIALER','showConfirm','freshsalesConfiguration','createdAt,updatedAt,id,save_name,converted_format,name,audio,description','PreviewDialogController','Invalid\x20attempt\x20to\x20destructure\x20non-iterable\x20instance.\x0aIn\x20order\x20to\x20be\x20iterable,\x20non-array\x20objects\x20must\x20have\x20a\x20[Symbol.iterator]()\x20method.','mailQueue@get','chooseFromList','queueCampaignHopperBlacks','UserFaxAccount','pauseType','app.chat.chatWebsites','\x27password\x27','INTEGRATIONS.DYNAMICS365ACCOUNTS','America/Guyana','src/js/modules/main/apps/voice/views/voicemails/voicemails.html/voicemails-[chunkhash].html','Editor','ExternIP','disposedAt','Cancel','startTime','MotionDialerQueueId','src/js/modules/main/apps/openchannel/views/openchannelAccounts/openchannelAccounts.html/openchannelAccounts-[chunkhash].html','triggerAllConditions','ngCookies','selectContact','interface','api.intServicenowConfiguration.delete','monitors','limit','vm.queryFinal.filter','api.variable.update','whatsapp/queues/:id/users','FreshsalesAccountsController','Are\x20you\x20sure\x20want\x20to\x20uninstall\x20the\x20plugin?','+05:30','openchannel/reports/queue/:id','md-hue-3','SETTINGS.SETTINGS','chchinesemale','WhatsappQueueagentaddController','AgentsMailRealtimeController','\x20\x20properly\x20logout','America/Indiana/Knox','savePassword','callerID','voice/mohs/:id','data1','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27yes\x27','integrations/freshsales/fields/describe','\x20ORDER\x20BY\x20','arraycservice','SYSTEM:GETwhatsappQueue','arrayringinuse','Motion\x20WebRTC\x20Bar\x200.2.0','app.integrations.zendeskAccounts.edit','chat','initDevice','Zendesk','Australia/Melbourne','blue-grey','VtigerConfiguration\x20properly\x20created','Scheduled\x20Calls','\x27always\x27','mail/accounts/:id/clone','rtlSupport','api.intFreshdeskAccount.save','\x27SIP/{{multipleUsers.name}}\x27','updateLicense','smsApplication','app.video','Carla','America/Tijuana','/screenRecordings','IS\x20NULL','integrations/reports/describe','square/projects/:id','account_id','Afrikaans\x20(South\x20Africa)','integrations/zoho/accounts/:id','QueueCampaignteamaddController','unmanaged','top-right','deleteSelectedDescriptions','ANALYTICS.NEW_REPORT','The\x20smtp\x20will\x20be\x20deleted.','chatOfflineMessage','voice/queues/describe','Catalan\x20(Catalan)','VOICE.FILE_NOT_FOUND','auth/google','America/Halifax','dashboards/describe','TOOLS.EDIT_TEMPLATE','chatWebsiteChatCannedAnswers','advancedQuery','SETTINGS.LICENSE','jabra','whatsappQueue','toggleChat','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/agi/dialog.html/dialog-[chunkhash].html','src/js/modules/main/apps/tools/views/triggers/edit/actions/create/dialog.html/dialog-[chunkhash].html','footer','app','scriptName','TrunksController\x20as\x20vm','Company\x20properly\x20created!','Contact\x20updated!','integrations/salesforce/configurations/describe','mail/accounts/:id/users','Delete\x20CloudProvider','OutboundRouteController\x20as\x20vm','Chantal','SYSTEM:GETintSalesforceAccount','\x27e\x27','TOOLS.EDIT_VARIABLE','ProjectSessionsController','src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/view.html/view-[chunkhash].html','secToTime','DeskAccount\x20properly\x20created','getFunctions','ringgroup','customField','ar-IL','EditInboundApphangupDialogController','SYSTEM:SENDMESSAGE','yearsS','IvrCampaignblacklistaddController','getFaxQueues','ms-navigation-horizontal','
','handleResultClick','TOOLS.NOTIFICATIONS.ACTIONS_DELETE_TITLE','dynamics365','EditInboundAppintervalDialogController','Hopper\x20deleted!','The\x20openchannelCannedAnswer\x20will\x20be\x20deleted.','FaxAccountController\x20as\x20vm','api.mailQueue.delete','Delete\x20Metric','allCondition','IvrCampaignHopperFinalsController','src/js/modules/main/apps/chat/views/chatQueues/edit/view.html/view-[chunkhash].html','timeRangeTo','EditInternalAppvoicemailDialogController','triggerAnyConditions','Marlene','reLayout','\x27bottom_right\x27','QueuesMailRealtimeController','selectedWhatsappQueues','TrunksFaxRealtimeController','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/autoreply/dialog.html/dialog-[chunkhash].html','Yes','pauses','Delete\x20SmsQueue','openSettings','gotoInternalRoutes','ZohoAccountsController\x20as\x20vm','users/:id/teams','searchInProgress','\x27fax_messages\x27','unknown-os','Failed\x20to\x20retrieve\x20pm2\x20processes','TrunkController','pickerModel','account','rpc/sms/queues/waitinginteractions','apiRoute','Numbers\x20to\x20999','apps.fax','webrtc::logout','Dora\x20(Icelandic,\x20Female)','\x22>','apps.voice.contexts','STAFF.PERMISSIONS_UNAUTHORIZED_CREATION_MESSAGE','onRemoveUserSmsQueue','isDraft','updateProcess','JSCRIPTY.JSCRIPTY','CreateOrEditSalesforceAccountDialogController','Pacific/Port_Moresby','blue-grey-fg','faxInteraction:update','Catalan\x20(Spain)','removeClass','50\x20100\x20200\x20A100','deleteSalesforceAccount','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.','apps.mail.mailAccounts','whatsapp/reports/transfer/:id','|{color:red}','SmsAccounts','mouseenter\x20mouseleave','webkitHidden','uisref','Invalid\x20number\x20of\x20arguments\x20supplied\x20in\x20the\x20color\x20array:\x20','saveFaxAccount','style','XCALLY-MOTION-ANSWER=0','icon-account-multiple','externaldial','src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/custom/dialog.html/dialog-[chunkhash].html','MARKETPLACE.NEW_PLUGIN','\x27ulaw\x27','^msFormWizard','newVoicemail','chatStatusTime','api.chatProactiveAction.delete','transferCallback','UserVoiceDashboardGeneralController\x20as\x20vm','delete\x20OpenchannelAccounts','mail/applications/describe','FORGOTPASSWORD.PASSWORD_RESET_ERROR','SYSTEM:ADDFIELDS','indexOf','addNewList','newExtractedReport','api.voiceQueue.save','addNewContext','src/js/modules/main/apps/voice/views/internalroutes/internalroutes.html/internalroutes-[chunkhash].html','isLastStep','deleteServicenowAccount','ringing','rpc@getMailQueues','getDaysOfMonth','createdAt,updatedAt,ContactId,phone','selectAllSmsQueues','mail/queues/:id/members','intDeskAccount','md-content[name*=\x27interaction-content-','setAs','start','createOrEditMusicOnHoldMohSound','onConfirmed\x20->\x20session,\x20data','chatWebsiteOfflineMessages','first','icon-video','outboundNoSuchCallsDay','deleteFreshsalesAccount','closed\x20===\x200','HANGUPCAUSE_22','internal','autoClose','showLoadingIndicator','openchannelPause','faxQueue:update','delete\x20hopperBlack','statusList','users/:id/chat_websites','msApi::requestStart','URL','Analytics','CreateOrEditFreshdeskAccountItemDialogController','Scheduled\x20call\x20has\x20been\x20deleted!','nodownload','serviceWorker','deleteSelectedIvrCampaignHoppers','app.voice.musiconholds','QueueCallsMotionDialerRealtimeController\x20as\x20vm','Subject','addNewDeskAccount','updateInfo','src/js/modules/main/apps/tools/views/tags/tags.html/tags-[chunkhash].html','arrayrandom_periodic_announce','src/js/modules/main/apps/contactmanager/views/contacts/duplicate/dialog.html/dialog-[chunkhash].html','src/js/modules/main/apps/tools/views/tags/create/dialog.html/dialog-[chunkhash].html','api.intZendeskAccount.update','AgentsSmsRealtimeController\x20as\x20vm','ms-nav-folded-open','chatWebsiteApps','CopyReportDialogController','#21467e','sortBy','whatsappQueues','\x27g726\x27','analyticCustomReport','app.whatsapp.realtime','What\x20would\x20you\x20name\x20your\x20company?','months','chat/reports/queue/describe','openDialog','expanded','plugin','createdAt,updatedAt,id,appdata,type,exten,context,description','tagInteraction','in-right-aligned','Delete\x20Tag','extractedReport','calendar','Dynamics365AccountController','AboutController','\x27mail_queues\x27','America/Belem','MsWidgetController','app.settings.customizations','OdbcsController','runReport','fax_queue_waiting_interaction:remove','extravar','DefaultReportId','Sundanese','arraysubtractUnit','STAFF.NOTIFICATIONS.PERMISSIONS_SAVED_SUCCESS_TITLE','RecordDialogController','stop\x20plugin\x20process','count','Node\x20has\x20been\x20updated!','deselectDispositions','toastyConfigProvider','

\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Queue:\x20','deleteSmsAccountInteraction','AgentHomeDashboardVoiceController','force_rport','Gwineth\x20(Welsh,\x20Female)','SugarcrmAccountController\x20as\x20vm','deleteCloudProvider','integrations/freshsales/fields/:id/clone','The\x20mailQueue\x20will\x20be\x20deleted.','push','OpenchannelAccountagentaddController','License\x20update\x20failed!','fresh','MailAccountController\x20as\x20vm','sugarcrmConfiguration','api.intFreshsalesAccount.save','app.openchannel.openchannelQueues.edit','Telephone\x20properly\x20created','mycontacts','api.contact.update','mohSounds','trim','Sound\x20properly\x20deleted!','bull','getMessagesAlignment','constant','goalname','deselectCompanies','chat/interactions/:id/attachment_upload','exportSelectedChatWebsiteChatCannedAnswers','deleteTrunk','required','newSmsCannedAnswer','QUICKPANEL.NEW_CHATGROUP','Agi','IndexFactory','SYSTEM:GETintVtigerAccount','openchannelAccountOpenchannelCannedAnswers','apps.integrations.freshsalesAccounts','SYSTEM:DELETEhopper','SYSTEM:GETcmList','fax/accounts/:id/interactions','src/js/modules/main/apps/analytics/views/reports/copy/dialog.html/dialog-[chunkhash].html','integrations/salesforce/fields/describe','','inboundQueues','api.team.delete','error','operator','auenglishfemale','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20zohoAccounts?','newDynamics365Account','accountConnected','sms/applications/:id','analytics/default_reports/:id/preview','CreateOrEditActionDialogController','saveOutboundRoute','mailApplication','Norwegian\x20(Norway)','selectAllQueueCampaigns','Asia/Yekaterinburg','QueueCampaignHopperFinalsController','\x27alternate\x27','api.intSugarcrmConfiguration.save','lexregion','us-west-1','hy-AM','appdata.name','Report\x20properly\x20deleted!','saveLists','pickerModels','isValueByCondition','addPart','createdAt,updatedAt,id,name,channel,status,description','load','CustomizationsController','app.voice.chanSpies','MOTIONDIALER.CLONE_IVRCAMPAIGN','XCALLY-MOTION-PROGRESS=1','AgentHomeAbandonedController','SYSTEM:EDITMODALSHOW','SETTINGS.AITOOLS','isSame','chatCannedAnswer','VoiceRealtimeController','onFaxMessageSave','SYSTEM:UPDATEBLACKLIST','\x27very\x27','startMonitor','dateOfBirth','Pacific/Pohnpei','endOfConversation','queue_id','motion2.home.mycontacts:','resultsLoading','areaText','cm/contacts/:id','SYSTEM:ADDTAGS','src/js/modules/main/apps/motiondialer/views/realtime/queues/predictive/dialog.html/dialog-[chunkhash].html','toJson','\x27us-east-1\x27','delete\x20tag','Agent\x20properly\x20created','users/:id/agents','app.tools','getColumns','SYSTEM:GET_APIKEY','/ivr_campaigns','openchannelCannedAnswer','intSugarcrmConfiguration','VERSION\x20','delete\x20schedule','src/js/modules/main/apps/motiondialer/views/realtime/queues/view.html/view-[chunkhash].html','id,fullname,role','module','faxInteraction:save','enumerateDevices','TriggersController','fileAdded','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20mohSound?','QueueCampaign\x20updated!','SYSTEM:DELETEopenchannelQueue','SETTINGS.UPDATES','api.user.changePassword','enableUncompleteSave','CHAT.EDIT_CHATWEBSITE','SYSTEM:DELETEtrigger','color','\x27tls\x27','America/Argentina/Tucuman','MailSubstatusesController\x20as\x20vm','TOOLBAR.STAY_LOGGED','Win','FAX.FAX','isIndeterminate','TOOLS.CANCEL','Europe/Simferopol','Chinese\x20(Taiwan)','api.mail.account','ABANDONED','Interval\x20deleted!','api.voiceExtension.update','deleteSelectedContacts','Chinese\x20(Hong\x20Kong)','api.fax.account','SYSTEM:GETvoiceQueue','fullname','UserController','FaxQueues','CompanyId','textarea','selectAllFaxAccounts','src/js/modules/main/apps/callysquare/views/projects/edit/info/info.html/info-[chunkhash].html','ChatInteractionId','deleteSelectedIvrCampaigns','selectedChatWebsiteInteractions','mobileBarActive','Emojis','noop','openchannelCannedAnswer\x20#','addNewCustomField','bot','newPlugin','beepall','subsections','License\x20Request','selectedcrudPermissions','The\x20customization\x20will\x20be\x20deleted.','getProcesses','src/js/modules/main/apps/voice/views/contexts/contexts.html/contexts-[chunkhash].html','sms/applications/:id/clone','MsNavigationController\x20as\x20vm','rpc/voice/queues/channels/:uniqueid','saveZendeskConfiguration','wait','CreateOrEditExtractedReportDialogController','draftManager','Frisian','thirdLevel','Openchannel\x20Messages','integrations/dynamics365/fields/:id/clone','VoiceRecording\x20properly\x20deleted!','X-Answer-Mode','ServicenowConfiguration\x20properly\x20deleted!','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20companies?','getOrderBy','delete\x20descriptions','union','INTEGRATIONS.NEW_VTIGERCONFIGURATION','src/js/modules/main/apps/sms/views/smsAccounts/smsAccounts.html/smsAccounts-[chunkhash].html','integrations/dynamics365/accounts/describe','servicenowConfiguration','The\x20zohoAccount\x20will\x20be\x20deleted.','\x27token\x27','Arabic\x20(United\x20Arab\x20Emirates)','pound','WhatsappAccountId','src/js/modules/core/directives/ms-phonebar/settings/settings.html/settings-[chunkhash].html','src/js/modules/main/apps/dashboards/views/general/user/sms/user.general.sms.html/user.general.sms-[chunkhash].html','Lotte\x20(Dutch,\x20Female)','SYSTEM:DELETEintFreshdeskAccount','es-CO','TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE','selectedItem','app.contactmanager.contacts.edit','ChatGroupController','getDate','src/js/modules/main/apps/integrations/views/zohoAccounts/edit/item/dialog.html/dialog-[chunkhash].html','timeout','scales','','Lucky\x20day','rpcFaxAccounts','msTimelineItem','src/js/modules/main/apps/dashboards/views/general/agent/interaction/agent.general.interaction.dialog.html/agent.general.interaction.dialog-[chunkhash].html','Cannot\x20call\x20a\x20class\x20as\x20a\x20function','api.user.delete','unreadTotalMessages','CreateOrEditFaxAccountDialogController','TOOLS.NOTIFICATIONS.ACTION_CREATED_SUCCESS_TITLE','AgentqueueaddController','ZendeskConfiguration\x20deleted!','composeSmsInteraction','STAFF.SELECTED_TEAMS','delete\x20ZohoAccounts','EditMailAccountAppautoreplyDialogController','absolute','source','api.sound.update','exportSelectedIntervalIntervals','Europe/Prague','chat/queues/describe','vm.queueCampaign.dialMethod\x20!==\x20\x27booked\x27','America/Iqaluit','usersMap','\x27o\x27','Company','src/js/modules/core/directives/ms-info-bar/ms-info-bar.html/ms-info-bar-[chunkhash].html','CreateOrEditFreshsalesAccountItemDialogController','selectedSection','id,tree','userpic','allReportsSelected','SYSTEM:analyticFieldReport','msNavigationHorizontal','SYSTEM:GET_USERS','startCase','INTEGRATIONS.EDIT_FRESHDESKCONFIGURATION','+05:00','delete\x20user','app.settings','utcOffset','4800','Korean\x20Female','descriptions','gotoFaxAccounts','Congestion','selectedMetrics','musiconhold','addNewMetric','view','voiceQueuesLog/:id','TOOLS.NOTIFICATIONS.CONDITION_DELETE_TITLE','triggers/:id/any_conditions','CreateOrEditSalesforceAccountItemDialogController','user:forcelogout','TOOLS.TAGS','osVersion','European\x20Italian\x20Female','motionbar','arraysetqueuevar','autocompleteRequireMatch','mailAccountMailCannedAnswers','TOOLS.NEW_DASHBOARDITEM','api.item.delete','showChatInteraction','square/odbc/describe','CreateOrEditCustomizationDialogController','addNewFreshsalesAccount','createMediaStreamDestination','SYSTEM:DELETEopenchannelAccount','\x27hours\x27','SquareRecording\x20properly\x20saved!','CreateOrEditReportFieldDialogController','+09:30','Linear','selectedSalesforceConfiguration','onChangeSection','conversationUpdate','Kinyarwanda','Date','MailAccountDispositionsController','motionTheming','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27unknown\x27','drop','src/js/modules/main/apps/contactmanager/views/contacts/edit/view.html/view-[chunkhash].html','There\x20is\x20a\x20call\x20that\x20hasn\x27t\x20been\x20disposed\x20yet.','fr-CA','src/js/modules/main/apps/tools/views/dispositions/create/dialog.html/dialog-[chunkhash].html','app.contactmanager.lists','motion.user:','$pristine','ms-navigation-node','selectSession\x20->\x20session','DASHBOARDS.FAX','id,mailbox','openchannel/accounts/:id/interactions','fax/accounts/:id/dispositions','telephones','gotoInboundRoutes','msApi::resolveError','EditOpenchannelAccountApp','bottom_right','deselectIvrCampaigns','integrations/vtiger/accounts/:id/clone','hue-1','plugins/:id','getUnread','ms-navigation-horizontal-mobile-menu-active','auth/local/user/:token','api.trunk.update','tags/:id','dayOfWeekFrom','KEY_CODE','api.squareOdbc.update','reset','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27invalid\x27','EditInboundAppagiDialogController','mailAccounts','auto','then','delete\x20hoppers','apps.voice.realtime','selectedFields','SystemController','lastDayMonth','globalUserLists','deleteSelectedDeskAccounts','\x2741\x27','100','aws_bot_name','square/details/reports/:id','alreadyExistsTab','Numbers\x20to\x2099','answerRate','sms/messages/:id/reject','refer','$mdToast','newChatCannedAnswer','TCL:\x20\x20path','automation','VOICE.SELECTED_TEAMS','createdAt,updatedAt,id,name,description,crudPermissions','-03:30','scheduledCalls','accesskeyid','newZohoAccount','You\x20are\x20not\x20the\x20owner\x20of\x20the\x20last\x20message!','blacklistadddialog','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20intervals?','api.faxAccount.update','createOrEditReportField','deletescreenRecording','invite','delete\x20mohSound','UserapikeymanagerController','scrollEl','Whatsapp\x20Interaction','#tab-container','selectAllContacts','toggleDialpad','gotoFaxQueues','api.screenRecording.update','applications','Type\x20a\x20message','createOrEditUser','reportRoute','Europe/Tirane','YYYY-MM-DD','hasRole','MsWidgetEngineCounterController','getFaxAccountLabel','Europe/Zaporozhye','back','opus','/sms','app.tools.variables','QueuesMotionDialerRealtimeController','The\x20sound\x20will\x20be\x20deleted.','app.integrations.zendeskAccounts','exportSelectedVoicemails','Partially\x20Enabled','Email\x20','api.openchannelAccount.delete','api.analyticReport.update','app.integrations.dynamics365Accounts.edit','available','conditions/:id','\x27outlook365\x27','SYSTEM:PAUSEUSER','+07:00','user:update','/metrics','mohSound\x20#','deleteSelectedProjectSessions','TOOLS.EDIT_SCHEDULE','onSearchBarCollapse','removeAttachment','endValue','SYSTEM:GETintZohoAccount','loop','ServicenowConfiguration\x20properly\x20saved!','SYSTEM:GETcmCompany','Variable','dynamics365Configuration','onUpdateVoiceQueueReport','deleteSubjectConfirm','DASHBOARDS.SELECT_STATUS','Message:save','arraydelete','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/gotop/dialog.html/dialog-[chunkhash].html','Lucida\x20Sans\x20Unicode','whatsapp/queues/:id/clone','arrayrole','Report\x20Field\x20properly\x20saved!','network@get','apps.motiondialer.ivrCampaigns','\x27SI\x27','duplicatedRows','advancedSearch','limitCalls','src/js/modules/main/apps/callysquare/views/projects/edit/dialog/dialog.html/dialog-[chunkhash].html','delete\x20Pauses','src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/configurations/dialog.html/dialog-[chunkhash].html','mailQueues','Re:\x20','$[${XCALLY-MOTION-ANSWER}=0]?Answer','palette','cm/hopper_final/describe','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperBlack?','data3','restart\x20plugin\x20process','deselectVoicePrefixes','I\x20agree','.wav','intZendeskConfiguration','deleteChatQueue','joinTypes','src/js/modules/main/apps/callysquare/views/projects/edit/view.html/view-[chunkhash].html','saveDynamics365Account','msApi::requestError','postalCode','value','integrations/sugarcrm/configurations/describe','/abandonedcalls','memberReport','CreateOrEditAllConditionDialogController','Contact\x20properly\x20created','deleteFieldConfirm','userProfileSection@get','intFreshdeskField','rpc/fax/queues','api.intZohoAccount.delete','onReadyEditor','OpenchannelCannedAnswer\x20deleted!','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20trunks?','integrations/freshdesk/fields/:id/clone','src/js/modules/main/apps/tools/views/triggers/triggers.html/triggers-[chunkhash].html','Filiz\x20(Turkish,\x20Female)','Agents\x20association\x20has\x20been\x20updated!','findSessionBySessionId\x20->\x20sessionId,\x20vm_pb.sessions','keys','rpc/openchannel/queues/:id/waitinginteractions','$parent','System','apps.home.sms','TOOLBAR.ITALIAN','groupBy','squareOdbc@get','width=','\x27plivo\x27','motionPalettes','selectedFreshdeskConfiguration','Classic+','geEditor','\x20has\x20been\x20saved!','.eml','fax/applications/:id/clone','sound@get','DASHBOARDS.NEW_CONTACT','extraHeaders','TOOLBAR.CHANGE_LANGUAGE_TITLE','pm2@get','delete\x20OpenchannelQueues','deleteChatCannedAnswer','QueueCampaignresetlistController','chain','quickFilters','filterByTags','internalrouteApps','$digest','DeskAccount\x20properly\x20deleted!','ar-LB','rpc/fax/queues/:id/notify','SYSTEM:GET_USERPROFILES','cmn-Hant-TW','src/js/modules/main/apps/voice/views/realtime/abandonedcalls/view.html/view-[chunkhash].html','addNewCustomization','intZendeskAccount@get','Korean','Kirundi','Field\x20has\x20been\x20deleted!','Hindi','voice/prefixes/:id/users','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/clone/clone.html/clone-[chunkhash].html','America/New_York','Motion\x20License\x20Request','vm_rf.query.filter','Delete\x20ZohoAccount','WHATSAPP.EDIT_WHATSAPPCANNEDANSWER','openchannelAccounts','textContent','dialPredictiveIntervalMinThreshold','templates/:id','icon-fish','Pacific/Enderbury','record','createdAt,updatedAt,id,name,enableUncompleteSave,sendUnpauseOnSubmit,description,formData','hours','TOOLS.EDIT_DASHBOARDITEM','voiceMusicOnHoldDownload','settings','sms/messages/:id/accept','Australia/Adelaide','multipleChoices','flipped','EditInternalAppagiDialogController','sms/queues/:id/teams','api.intZendeskConfiguration.update','createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUri,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','deleteTriggerAnyCondition','Least\x20Recent','\x27pt\x27','GRANTED','SMS.SELECTED_TEAMS','voiceMails','app.dashboards.general.dialer','newMail','endRangeValue','f50000','previousStepInvalid','app.dashboards.general.openchannel','deleteZendeskConfiguration','Stun','Spanish\x20(Honduras)','selectedLists','xAnswerMode','createOrEditDeskAccount','Chat\x20Queues','Trasfer\x20properly\x20done!','Project','moveContactsIvrCampaignHopperFinal','enabled','respectItemOrder','msNav::expandMatchingToggles','msEmojiArea','ExtractedReport\x20properly\x20saved!','blue-300-fg\x20icon-phone-outgoing','FreshsalesAccountController\x20as\x20vm','top','ms-target','NoSuchNumber','src/js/modules/core/directives/ms-phonebar/record/dialog.html/dialog-[chunkhash].html','SmsAccountagentaddController','queryResult','square/odbc/:id/clone','binding','Atlantic/Canary','api.campaign.delete','aug','createdAt,updatedAt,id,name,type,username,remoteUri,authType,password,token,serverUrl,description','://','\x20is\x20not\x20supported!','iCab','seconds','selectedExtractedReports','EditInboundAppringgroupDialogController','onTransferCallback\x20->\x20session,\x20textContent,\x20position,\x20delay','Delete\x20Telephone','onhold','Team','\x27zh-CN\x27','Marketplace','msNavigationAgentService','newIvrCampaign','UserOpenchannelDashboardGeneralController\x20as\x20vm','downloadInteraction','SMS.SELECTED_AGENTS','chat.chatWebsites','Astrid\x20(Swedish,\x20Female)','lastMessageAt','mail/accounts/:id','Africa/Casablanca','onPause','integrations/zendesk/configurations/:id/clone','AGI','Call\x20%s\x20not\x20found\x20or\x20already\x20completed','7200','#ebf1fa','PredictiveQueueCampaignDialogController','Nicole\x20(English,\x20Austrialian,\x20Female)','+08:30','disposition','\x27zh-TW\x27','Project\x20properly\x20cloned','CreateOrEditOutboundRouteDialogController','addNewTag','onUpdateMailInteraction','Contact\x20Relation\x20Update','America/Detroit','jscripty/projects/describe','mailInteraction@get','api.cmCompany.update','TOOLBAR.NOTIFICATION_TITLE','FAX.ALL_AGENTS','Delete\x20Plugin','hidden','NetworksController','integrations/vtiger/configurations/:id/fields','src/js/modules/main/apps/settings/views/networks/networks.html/networks-[chunkhash].html','addCustomField','CONTACTMANAGER.EDIT_HOPPER','MOTIONDIALER.CLONE_QUEUECAMPAIGN','cmContact@getHoppers','id,field,operator,value,createdAt,updatedAt','lime-A700-fg','createdAt,updatedAt,id,name,type,username,remoteUri,password,clientId,clientSecret,securityToken,serverUrl,description','getVoiceQueuesChannelRedirect','project.name','api.cmCustomField.delete','DASHBOARDS.','showLastMessage','07:00-22:00,*,*,*','motNotification','isNavFoldedOpen','&autoStart','addNewNetwork','voiceAgentReportColumns','Delete\x20Sound','ProjectViewerController','exportSelectedSmsAccountInteractions','createOrEditVoiceQueue','userProfile/sections/:id','getVariables','delete\x20offlineMessage','RECALLME','mail/reports/transfer/describe','Firefox','_XCALLY_MIXMONITOR_FORMAT=','Restored\x20Contacts','selectedDisposition','\x27select\x27','Validation\x20error','IvrCampaignController\x20as\x20vm','auto\x20answer\x20enabled\x20after:','unavailable','plugins','delay','outbound','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20deskConfiguration?','stateClass','UserSmsDashboardGeneralController\x20as\x20vm','deleteSelectedOpenchannelAccountApps','gotoLastStep','ko-KR','app.video.screenRecordings','vm.detailForm.$pristine','WhatsappAccountInteractionsController','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20userProfiles?','savedAsDraft','removed','MailAccounts','user_has_whatsapp_interactions:remove','English\x20(Tanzania)','QuickPanelController','Error\x20while\x20removing\x20tab','Your\x20survey\x20session\x20has\x20been\x20properly\x20saved!','$timeout','newOpenchannelCannedAnswer','openchannelAccount@get','createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description','arraysendrpid','selectedTriggerAllConditions','UserProfilesController','Switch','voiceRecordings','info','deskAccounts','mailSubtatuses','selectedUserProfiles','/api/auth/','Field\x20deleted!','agentOnly','template_id','','closeOnClick','id,name,fullname','api.intVtigerAccount.delete','selectedSmsAccountInteractions','acceptedMessages','chatQueueReport','api.squareProject.delete','scriptPath','messageId','app.fax.realtime.accounts','Freshdesk','deselectOpenchannelAccounts','Pacific/Honolulu','selectAllDispositions','transferHook\x20->\x20payload','amber-fg','\x27us-west-2\x27','SYSTEM:DELETECONFIGURATION','ChatCannedAnswer\x20properly\x20created','getTelephones','userId','users/:id/recordings','status_code','predictiveIntervalDroppedCallsTimeout','trustedHtml','cm/hopper_black/describe','identity','MAIL.EDIT_MAILCANNEDANSWER','app.mail.mailQueues','SalesforceAccount','revokeObjectURL','voiceMailMessageDownload','onRemove','faxQueues','Ewa\x20(Polish,\x20Female)','deselectSquareRecordings','integrations/zendesk/configurations/:id','closeReportDialog','STAFF.NEW_TELEPHONE','getIconByChannel','America/Indiana/Petersburg','Europe/Andorra','/inboundroutes','ruri','api.mailSubstatus.update','intZendeskAccount','Naja\x20(Danish,\x20Female)','Context','onEnableAutomaticScreenRecordingSelection','agi','predictiveIntervalAvailable','','motion2.realtime.abandoned.bull.abandonedCalls:','appdata','Australia/Hobart','The\x20agent\x20will\x20be\x20deleted.','MxGraphDialogController','/musiconholds','onChangeVoiceQueues','clearFilter','onRemoveChatQueueChannel','fr-FR','\x277200\x27','users/:id/fax_interactions','Asia/Ho_Chi_Minh','selectedMailAccountInteractions','Laothian','Voice\x20Recordings','openContact','#2e62b1','redirectToAgent','Pacific/Wake','This\x20message\x20has\x20no\x20subject.\x20Are\x20you\x20sure\x20you\x20want\x20to\x20send\x20it?','Uighur','setLockedItem','getVoiceChannels\x20->\x20session','green-300-fg\x20icon-checkbox-marked-circle','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','TelephoneController','EditInternalAppintervalDialogController','webbar:hangup','SquareRecordings','SYSTEM:SORTABLETABLE','match','app.toolbar','deleteMusicOnHold','getInfo','gotoProjects','smsQueueReport','app.jscripty','dateFilterLocalizationFactory','ExecIf','createOrEditSmsAccountSmsCannedAnswer','nodeType','mail/messages/describe','ms-info-bar-active','delete\x20whatsappCannedAnswers','Alphabetical','gotop','TOOLBAR.HEBREW','Gecko','$urlRouterProvider','QueuesSmsRealtimeController','Delete\x20ChatQueue','faxPause','CreateOrEditMailSubstatusDialogController','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27no\x27','rpc@getSmsQueues','toggleMobileBar','onSaveFaxInteraction','installplugin','ReportsController\x20as\x20vm','setText','getSelectedVariable','deviceId','bn-IN','TOOLS.EDIT_TRUNK','agent','The\x20freshsalesAccount\x20will\x20be\x20deleted.','AgentHomeWhatsappController','None','template@get','
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Call\x20from:\x20','INTEGRATIONS.EDIT_DYNAMICS365CONFIGURATION','treeStructure','outboundrouteApp','\x20has\x20been\x20uninstalled!','ngCsv','onSaveOpenchannelQueueChannel','DeskAccountController','Tigrinya','WhatsappQueuesController','CustomDashboard\x20updated!','app.whatsapp','dispositionsValues','src/js/modules/main/apps/voice/views/internalroutes/edit/view.html/view-[chunkhash].html','OpenchannelQueueagentaddController','America/Argentina/Jujuy','UK\x20English\x20Female','api.chatWebsite.update','$startsWith','AgentHomeSmsController','webrtc::settings','SMS.EDIT_SMSACCOUNT','\x27WAV\x27','@pid','isChecked','src/js/modules/main/apps/integrations/views/freshsalesAccounts/create/dialog.html/dialog-[chunkhash].html','deviceInfo','phoneBarEnableAutomaticScreenRecording','Notification\x20creating\x20error','WhatsappQueues','getAnyConditions','sl-SI','deleteQueueCampaign','deleteSelectedCustomDashboards','voice/extensions/:id','shortinfo','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20sugarcrmAccounts?','SYSTEM:DELETEintZohoAccount','trunks/:id/clone','ReportConditionsController','newFaxAccount','ANALYTICS.NEW_METRIC','selectAllSalesforceAccounts','UserWhatsappDashboardGeneralController\x20as\x20vm','src/js/modules/main/apps/jscripty/views/projects/projects.html/projects-[chunkhash].html','jscripty/projects/:id/sessions','settings/:id/logo','selectAllPauses','mdColorPicker',':8089/ws','ZendeskAccount\x20updated!','id,name,dialActive','deleteSugarcrmConfiguration','ClickSend','notification:send','getSounds','$document','msNavFoldService','UserFaxQueue','selectedTelephones','DASHBOARDS.RECORDINGS','api.voiceMail.save','api.intVtigerAccount.update','translate3d(','CONTACTMANAGER.EDIT_GLOBALCUSTOMFIELD','Delete\x20disposition','VOICE.NEW_MUSICONHOLD','formData','newCloudProvider','context','SYSTEM:GETdashboard','onClickTab','icon-hangouts','end','AbandonedCallsMotionDialerRealtimeController\x20as\x20vm','body','gt-md','IS\x20NOT\x20EMPTY','tTxX','CONTACTMANAGER.CONTACTS','date','checkContactHopper','DASHBOARDS.UNTITLED','delete\x20Sounds','ServicenowConfiguration\x20properly\x20created','MOTIONDIALER.SELECTED_TEAMS','STAFF.SELECTED_QUEUES_','src/js/modules/main/apps/staff/views/agents/create/dialog.html/dialog-[chunkhash].html','SYSTEM:GETANSWERS','Report\x20saved!','api.analyticFieldReport.update','ms-navigation-horizontal-item','en-IN','Asia/Nicosia','integrations/desk/fields/:id','selectedMailShowSystemMessage','SYSTEM:DELETEvoiceExtension','green-300-fg\x20icon-phone-hangup','Australia/Lindeman','PDF','api.cmCustomField.save','medium','Mac','deleteContact','showTooltip','src/js/modules/reset/reset.html/reset-[chunkhash].html','send','Spanish\x20(El\x20Salvador)','WhatsappRealtimeController\x20as\x20vm','rpc/voice/queues','userAgent','getQueueCampaignHopperHistories','createOrEditQueueCampaignHopper','prev','SYSTEM:GET_TEAMS','createOrEditTeam','en-US','MetricId','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/ringgroup/dialog.html/dialog-[chunkhash].html','getChatWebsiteApps','openChannel','vm.agent.showWebBar\x20==\x201','speaker','voiceRecording@get','getServicenowConfiguration','src/js/modules/main/apps/settings/views/customizations/customizations.html/customizations-[chunkhash].html','app.voice.inboundroutes','SYSTEM:GET_OUTBOUNDROUTES','attachments','languages','SMS\x20Interaction','deleteSelectedTriggerActions','rpc/voice/queues/preview/:id','ms-navigation-horizontal-node','CreateOrEditOfflineMessageDialogController','Delete\x20trigger','Astrid','addNewTemplate','selectedDeskConfiguration','app.staff.teams','interpolate','src/js/modules/main/apps/mail/views/mailQueues/edit/teamadd/teamadd.html/teamadd-[chunkhash].html','deleteChatWebsite','exportSelectedFaxQueues','This\x20Month','selectAllExtractedReports','VIDEO.FILE_NOT_FOUND','stoppedTime','DASHBOARDS.SELECT_CAMPAIGN','gray','Spanish','MsNavigationNodeController','param','GET_TEMPLATE','selectedWhatsappAccountApps','src/js/modules/main/apps/settings/views/updates/updates.html/updates-[chunkhash].html','Company\x20name','saveVtigerAccount','fax_queue_waiting_interaction:save','newSugarcrmConfiguration','\x20yyyy','Europe/Bucharest','ReportFieldsController','api.trunk.save','+11:00','#5c616f','AgentHomeContactsController','getBaseUrl','reportType','searchOptions','The\x20dynamics365Configuration\x20will\x20be\x20deleted.','mute','deleteGeneral','MONITOR_OPTIONS=ab','INTEGRATIONS.EDIT_DYNAMICS365ACCOUNT','Are\x20you\x20sure\x20want\x20to\x20run\x20the\x20schedule?','exten','deselectSugarcrmAccounts','src/js/modules/main/apps/openchannel/views/realtime/agents/view.html/view-[chunkhash].html','plugins/describe','The\x20trunk\x20will\x20be\x20deleted.','report','0.3','Spanish\x20(Mexico)','participants','Mads\x20(Danish,\x20Male)','addNewFreshdeskAccount','jabraClicked','app/main/apps/sms','WHATSAPP.ALL_AGENTS','Member\x20Report','\x27friend\x27','answered','userStatus','createOrEditVariable','XMLHttpRequest','onInternalMessageUpdate','selectedQueueCampaignHopperHistories','SmsRealtimeController\x20as\x20vm','2400','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','src/js/modules/main/apps/staff/views/userProfiles/edit/view.html/view-[chunkhash].html','kind','src/js/modules/main/apps/staff/views/users/edit/apikeymanager/apikeymanager.html/apikeymanager-[chunkhash].html','msNavigationHorizontalItem','zendeskConfigurations','Error\x20retrieving\x20user\x20profile\x20permissions','GET_PAUSE','TriggerActionsController','/userProfiles','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/whatsappCannedAnswers/dialog.html/dialog-[chunkhash].html','queueMethod','Would\x20you\x20like\x20to\x20change\x20the\x20status\x20of\x20the\x20process\x20#','OpenchannelRealtimeController\x20as\x20vm','\x27invalid\x27','X-CID:\x20','Jacek','America/North_Dakota/Center','$window','America/Dawson_Creek','deleteReportField','app.integrations','The\x20contact\x20is\x20in\x20the\x20hopper','addMessage','search','getDynamics365Accounts','grey-fg\x20icon-minus-circle','Odbc\x20properly\x20created','integrations/servicenow/configurations/describe','SugarcrmAccounts','VoiceRecordingController','agentInternal','Asia/Almaty','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/tag/dialog.html/dialog-[chunkhash].html','ZohoAccount\x20properly\x20saved!','msResponsiveTable','xAxes','apps.home.openchannel','Infobip','msDatepickerFixConfig','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/close/dialog.html/dialog-[chunkhash].html','deleteSelectedSugarcrmAccounts','xm-mail-content-','very','deleteSelectedAiTools','VtigerConfiguration\x20properly\x20saved!','$interpolate','port','\x27report_square_details\x27','ddays','anyThirdLevelDisposition','mon','diff','mail/reports/queue/:id/clone','membername','Europe/Uzhgorod','+02:00','selectedFreshsalesAccounts','agentcompleteAt','recordingURL','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','paused','updateAccountApplications','Europe/Helsinki','selectedPlugins','UserVoiceDashboardDialerController','selectedServicenowConfiguration','newInternalRoute','SmsAccountController\x20as\x20vm','OpenchannelAccountsController\x20as\x20vm','defaultHeaderWhiteLabel','deleteSelectedDynamics365Accounts','src/js/modules/main/apps/tools/views/triggers/edit/anyconditions/create/dialog.html/dialog-[chunkhash].html','delete\x20Agents','mapArray','@id','integrations/desk/accounts/:id/clone','mailInteraction:save','motion.shortcuts','campaigntype','openchannelQueue@get','user_has_whatsapp_interactions:save','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/queue/dialog.html/dialog-[chunkhash].html','MAIL.SELECTED_TEAMS','OfflineMessage\x20deleted!','Warning!\x20You\x20won\x27t\x20select\x20a\x20different\x20list\x20for\x20the\x20contact\x20','levels','newOpenchannelQueue','createOrEditOpenchannelAccount','HOUR\x20(','America/Bahia','VoiceQueue','getHoppers','Dashboard','currentReport','saveTrigger','ChatQueue\x20properly\x20deleted!','intervals','app.whatsapp.realtime.queues','ProjectspermissionaddController','warn','api.intZendeskConfiguration.save','Pause\x20properly\x20created','delete\x20SquareRecordings','integrations/servicenow/accounts/describe','$compile','InboundRoute\x20properly\x20deleted!','DispositionsController\x20as\x20vm','delete\x20hopperFinals','arrayauthType','AgentsVoiceRealtimeController\x20as\x20vm','motionThemes','ChatQueuesController','Cannot\x20upload\x20the\x20sound','/api/settings/1/logo','DASHBOARDS.CHAT','dialPredictiveInterval','min','api.cannedAnswer.delete','SETTINGS.SMTP','intDynamics365Configuration','TOOLBAR.PERSIAN','onSaveOpenchannelQueue','openMailDraft','getSmsAccountLabel','apps.voice.voicemails','updateConfirm','AgentteamaddController','Malay\x20(Malaysia)','UsersController','disable','selectedODBC','Pacific/Guadalcanal','TelephonesController','delete\x20messages','app.quick-panel','intDynamics365Field','getObject','Target','Rejected','vtigerAccount','chatInternalMessage:save','prefixes','not_inuse','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/resetlist/resetlist.html/resetlist-[chunkhash].html','${EXTEN}','WHATSAPP.NEW_WHATSAPPQUEUE','QueuesChatRealtimeController\x20as\x20vm','importXML','STAFF.NOTIFICATIONS.PERMISSIONS_DISABLED_ALL_SUCCESS_TITLE','accent','openchannel-interaction','/api/originate/','getVoiceQueuesReport','TOOLBAR.SPANISH','/zendeskAccounts','INTEGRATIONS.NEW_SUGARCRMCONFIGURATION','src/js/modules/main/apps/tools/views/variables/create/dialog.html/dialog-[chunkhash].html','/schedules','DisposeInteractionDialogController','Zulu','cm/contacts/create_many','#c5c6cb','exportSelectedQueueCampaignHopperBlacks','ngBindHtmlUnsafe','MAIL.NEW_MAILSUBSTATUS','right','api.intFreshdeskAccount.delete','Reject','rpc/mail/queues/waitinginteractions','cm/lists/:id/contacts','savePause','EditChatWebsiteAppgotoifDialogController','EditoutboundAppoutbounddialDialogController','containerPos','ticketType','/integrations','gotoVoiceQueues','newSmtp','SugarcrmConfiguration\x20properly\x20created','dateTime','startingSelectedItems','Message\x20has\x20been\x20rejected!','id,name,description,notes','createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,description,receiveUri,notificationSound,notificationShake,notificationTemplate','waitImagesLoaded','createOrEditChatWebsite','SYSTEM:RESETLIST','converted_format','km-KH','selectedItemChange','tables','src/js/modules/main/apps/mail/views/realtime/queues/view.html/view-[chunkhash].html','getTags','ChangePasswordController','faxInteraction','deleteconfirm','#3c4252','CustomizationlogoController','ContactId','api.intServicenowConfiguration.save','onEnableScreenRecordingByAgentSelection','$mdMedia','id,uniqueid,calleridnum,statedesc,starttime,disposition','msApi::resolveStart','ms-navigation','cmContact@get','SYSTEM:GETinterval','The\x20zendeskConfiguration\x20will\x20be\x20deleted.','CreateOrEditTagDialogController','TOOLS.NOTIFICATIONS.ACTIONS_DELETED_SUCCESS_TITLE','angularMaterialFormBuilder','dial','filename','ComposeFaxInteractionDialogController','Odbc\x20properly\x20deleted!','delete\x20voiceRecording','Logout','api.intZendeskConfiguration.delete','CSV\x20import\x20process\x20stopped!','addNewZendeskConfiguration','/whatsappAccounts','deleteAllCondition','Error\x20initializing\x20Jabra\x20integration','campaigns/:id/hopper_histories','integrations/freshdesk/configurations/:id/tags','SugarcrmAccount\x20properly\x20deleted!','api.action.save','getCampaigns','selectAllWhatsappAccounts','permissions','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20','deleteSelectedSmsAccountApps','/voiceRecordings','squareReportDetail','QueueId','variable','toolbar','FaxAccount\x20properly\x20saved!','playback','api.squareOdbc.save','fax/queues/describe','onInternalMessageSave','America/Recife','
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
','now','CONTACTMANAGER.NEW_COMPANY','getCompanies','ckeditor','role','whatsapp/queues/:id','ChatProactiveAction\x20properly\x20deleted!','stopUpload','Are\x20you\x20sure\x20want\x20to\x20restore\x20the\x20contact?','Fully\x20Enabled','SYSTEM:GETTAGS','attrVoiceQueues','OpenchannelCannedAnswer\x20properly\x20created','msNavTitle','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27unavailable\x27','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20ivrCampaigns?','Tags\x20set!','last','STAFF.USERPROFILES','SYSTEM:GET_FAXACCOUNTS','socket','deleteZohoAccount','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20node?','\x27AU\x27','cmContact','whatsapp/interactions/:id/clone','windowWidth','getTeams','\x20will\x20be\x20deleted.','createOrEditDisposition','PreviewReportDialogController','\x27mail_messages\x27','Waiting\x20to\x20restart\x20motion...','cannedAnswer','CHAT.NEW_CHATWEBSITE','simple','Conchita\x20(Spanish,\x20Castilian,\x20Female)','voicePrefix\x20properly\x20saved!','downloadtranscribefile2','onMessageSave','Delete\x20SmsAccount','horizontalNavigation','route','deselectVtigerAccounts','editSmsAccountApp','SYSTEM:DELETEintDeskAccount','modelCtrl','DASHBOARDS.SEPTEMBER','apps.whatsapp','addNewSugarcrmConfiguration','uniqueIdentifier','countnoanswerretry','cm/hopper/:id/clone','CustomField\x20deleted!','Gujarati\x20(India)','Polish\x20(Poland)','selectAllFreshsalesAccounts','InboundRouteActionsController','Are\x20you\x20sure\x20want\x20to\x20close\x20the\x20','$rootScope','chat/interactions/:id/abandon','/settings','showMenu','navigator','Europe/Vienna','src/js/modules/main/apps/contactmanager/views/globalCustomFields/create/dialog.html/dialog-[chunkhash].html','Europe/Tallinn','\x27report_mail_queue\x27','user_has_mail_interactions:remove','onSaveUserOpenchannelQueue','isoWeek','hiddendigitsnum','migrations/:id','Edge','Dialer\x20Hopper\x20Logs','onUpdateOpenchannelInteraction','AgentHomeAbandonedVoiceController','Integration_Tab','createdAt,updatedAt,id,name,html,description','Interaction:update','openchannel/accounts/:id/dispositions','createOrEditOutboundRoute','America/Jamaica','VoiceRealtimeController\x20as\x20vm','flattenDeep','VOICE.INTERNALROUTES','paginatedAgents','customDashboard','voice/queues/:id/members','MergeContactDialogController','getResults','api/attachments','icon','CALLYSQUARE.SQUARERECORDINGS','exportSelectedIvrCampaigns','fax/queues/:id/clone','selectedCustomDashboards','Occitan','CreateOrEditDeskAccountItemDialogController','src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/configurations/dialog.html/dialog-[chunkhash].html','voice/calls/reports/:id/clone','selectedItems','rpc@getOutboundChannels','onTabScroll','Contact\x20properly\x20merged!','session','MailQueue\x20properly\x20saved!','Basic','chatInternalMessage:update','video','delete\x20Teams','monthTo','settings/describe','marketplace','availableOperators','file_id','string','TOOLBAR.CHINESESIMPLIFIED','','SETTINGS.NEW_CUSTOMIZATION','street','mailbox','delete\x20interactions','Delete\x20Hopper','saveFreshsalesAccount','saveSound','Trebuchet\x20MS','enter','api.network.delete','INTEGRATIONS.NEW_SALESFORCEACCOUNT','api.analyticMetric.update','The\x20list\x20will\x20be\x20deleted.','W:\x20Enable\x20private\x20whisper\x20mode,\x20so\x20the\x20spying\x20channel\x20can\x20talk\x20to\x20the\x20spied-on\x20channel\x20but\x20cannot\x20listen\x20to\x20that\x20channel.','warning','ngAria','What\x20would\x20you\x20name\x20your\x20tag?','delete\x20customField','user_has_chat_interactions:save','#chat-dialog','apps.home.mail','autoCreate','app.integrations.vtigerAccounts.edit','MailAccountsRealtimeController\x20as\x20vm','The\x20whatsappAccount\x20will\x20be\x20deleted.','moveConfirm','Yoruba','newZendeskAccount','EditInboundAppinternaldialDialogController','pendingCondition','QueuesWhatsappRealtimeController\x20as\x20vm','OutboundCallsVoiceRealtimeController','saveAgents','cmList@get','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/voicemail/dialog.html/dialog-[chunkhash].html','apps.tools.dispositions','newSound','JSCRIPTY.SESSION_RESULTS','MailCannedAnswer\x20deleted!','Australia/Lord_Howe','src/js/modules/main/apps/mail/views/mailAccounts/edit/view.html/view-[chunkhash].html','some','\x27--\x27','ListsController','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27unavailable\x27','\x20has\x20been\x20downloaded!','FaxAccountController','arraysetinterfacevar','$log','Delete\x20FaxQueue','src/js/modules/main/apps/tools/views/schedules/partialViews/reports/treeReports.html/treeReports-[chunkhash].html','integrations/sugarcrm/accounts/describe','sugarcrmAccount','joinAt','SYSTEM:GET_SOUNDS','voice/dials/reports/describe','getTriggerAnyConditions','Asia/Taipei','getChatWebsites','api.analyticExtractedReport.save','SYSTEM:UPDATECMHOPPERHISTORY','temporarilyIgnoreMouseEvents','cloudProviders/describe','apps.mail.realtime','Lists\x20association\x20has\x20been\x20updated!','DASHBOARDS.SELECT_SUBSTATUS','isObject','Ines\x20(Portuguese,\x20Female)','\x27right\x27','api.voiceChanSpy.update','getInboundRoutes','api.whatsappAccount.delete','^msWidget','trustAsResourceUrl','rpc@getAgents','Dynamics365AccountsController\x20as\x20vm','Spanish\x20(Peru)','SUM','hasSectionsPermissions','read1stAt','\x27xlsx\x27','motion','allowmessenger','app.voice.outboundroutes','America/Vancouver','onUserCalled','uniq','getAttachments','snakecase','Moldavian','selectedMusicOnHolds','onSaveChatInteraction','getInstallInfo','UserProfilesController\x20as\x20vm','api.voiceQueue.update','angular-toasty','spyopenchannelInteraction','HANGUPCAUSE_21','\x27).style.display=\x27block\x27;\x20this.parentNode.removeChild(this)\x22>See\x20More\x20payload','STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_MESSAGE','gotoTelephones','saveMusicOnHold','mail/out_servers/describe','MsFormWizardController','app.whatsapp.whatsappAccounts.edit','replaceWith','Round\x20Robin','save_name','analytics/field_reports/describe','faxInteraction@get','msVerticalStepperStep','onclick','OutboundRoute\x20properly\x20created','api.voiceContext.update','Pacific/Guam','secondDisposition','app.dashboards.general.sms','openedAt','createOrEditOdbc','\x27report_jscripty_questions\x27','\x27linear\x27','src/js/modules/main/apps/dashboards/views/general/user/chat/user.general.chat.html/user.general.chat-[chunkhash].html','htmlContent','AgentHomeChatController','deleteSelectedFreshdeskAccounts','Asia/Brunei','onBefore','whatsappInteraction@get','src/js/modules/main/apps/marketplace/views/plugins/upload/dialog.html/dialog-[chunkhash].html','createOrEditVoiceRecording','collapse','api.condition.update','EditHopperDialogController','EditMailAccountAppintervalDialogController','motion2.home.sms:','ChatWebsitecustomerAvatarController','\x20or\x20','templates/describe','selectedIvrCampaignHopperBlacks','apps.home.scheduled','deleteExtractedReport','arraysort','downloadtranscribe','pid','Phone','deleteMailAccountInteraction','deleteSelectedTelephones','apps.tools.cannedAnswers','msAdvancedSearch','api.intSalesforceAccount.save','src/js/modules/main/apps/analytics/views/reports/edit/field/dialog.html/dialog-[chunkhash].html','Phone\x20number','ngResource','targetScope','createOrEditTelephone'];(function(_0x4e6fee,_0x182e60){var _0x2e7fb4=function(_0x53768d){while(--_0x53768d){_0x4e6fee['push'](_0x4e6fee['shift']());}};_0x2e7fb4(++_0x182e60);}(a0_0x182e,0xda));var a0_0x2e7f=function(_0x4e6fee,_0x182e60){_0x4e6fee=_0x4e6fee-0x0;var _0x2e7fb4=a0_0x182e[_0x4e6fee];return _0x2e7fb4;};var _0x553250=a0_0x2e7f;(self['webpackChunkmotion_frontend']=self[_0x553250('0x6fa')]||[])[_0x553250('0x206c')]([[0x8f],{0x1efd:(_0x53768d,_0x6ddc9,_0x398308)=>{var _0x3877e3=_0x553250;'use strict';var _0x4364b6=_0x398308(0x304);_0x3273bc[_0x3877e3('0x1a81')]=[_0x3877e3('0x1fd')];function _0x3273bc(_0x852f35){var _0x5ebe1c=_0x3877e3;_0x852f35[_0x5ebe1c('0x199f')]['push'](_0x5ebe1c('0xe68'));}const _0x42e08f=_0x3273bc;_0x5affd3['$inject']=[_0x3877e3('0xbc4')];function _0x5affd3(_0x7471db){var _0x3cdab2=_0x3877e3,_0x6ee8a={'to':function _0x44816f(_0x3663c2){var _0x2e30aa=a0_0x2e7f;return _0x3663c2[_0x2e30aa('0x237b')]===!![];}},_0x5b8e74={'to':function _0x242ebd(_0x1b1464){var _0x55a9f3=a0_0x2e7f;return _0x1b1464[_0x55a9f3('0x19fe')]!==_0x55a9f3('0xab');}},_0x3f3b29={'to':function _0x3decab(_0x1f7d3b){var _0x1981bc=a0_0x2e7f;return _0x1f7d3b[_0x1981bc('0xaf2')];}},_0x25196f={'to':function _0x240f44(_0x1c655c){var _0x1ca848=a0_0x2e7f;return _0x1c655c[_0x1ca848('0x12e2')][_0x1ca848('0x19fe')]===_0x1ca848('0x143c');}},_0x4f341c=function _0x1739f3(_0x25bf91){var _0x2a347d=a0_0x2e7f,_0x24fb7c=_0x25bf91[_0x2a347d('0x914')]()[_0x2a347d('0x595')](_0x2a347d('0x15bc')),_0x50287c=_0x25bf91[_0x2a347d('0x1e2a')][_0x2a347d('0xcee')];return!_0x24fb7c[_0x2a347d('0x121c')]()?_0x50287c['target'](_0x2a347d('0xab'),undefined,{'reload':!![]}):_0x24fb7c[_0x2a347d('0x481')]()[_0x2a347d('0x1c1d')](function(){var _0x539907=_0x2a347d;return _0x50287c[_0x539907('0x14a5')](_0x539907('0xab'),undefined,{'reload':!![]});});},_0x3250e2=function _0x585b7e(_0x3cc572){var _0x4e73f2=a0_0x2e7f,_0x1fc887=_0x3cc572[_0x4e73f2('0x914')]()[_0x4e73f2('0x595')]('Auth'),_0x303c58=_0x3cc572['router'][_0x4e73f2('0xcee')],_0x526049=_0x3cc572['$to']();if(_0x1fc887[_0x4e73f2('0x21de')](_0x4e73f2('0x2402'))&&_0x526049['name']!=_0x4e73f2('0x143c'))return _0x303c58['target']('app.dashboards.general',{'redirect':![]},{'reload':!![]});},_0x1cedb0=function _0x1fd264(_0x37c9c5){var _0x382891=a0_0x2e7f,_0x32d65c=_0x37c9c5[_0x382891('0x914')]()[_0x382891('0x595')]('Auth'),_0x44f1fe=_0x37c9c5['router'][_0x382891('0xcee')],_0x205e3a=_0x37c9c5[_0x382891('0x7d2')]();if(_0x32d65c[_0x382891('0x21de')](_0x382891('0x1775'))){if(!_0x32d65c[_0x382891('0xc35')](_0x205e3a[_0x382891('0xaf2')]))return _0x44f1fe['target'](_0x382891('0x143c'),{'redirect':![]},{'reload':!![]});else{var _0x2406a1=_0x37c9c5['params']()['id']?Number(_0x37c9c5[_0x382891('0x171b')]()['id']):undefined;if(_0x2406a1)return _0x32d65c['hasResourcePermission'](_0x205e3a[_0x382891('0xaf2')],_0x2406a1)[_0x382891('0x1c1d')](function(){var _0x6ad891=_0x382891;return _0x44f1fe[_0x6ad891('0x14a5')](_0x205e3a[_0x6ad891('0x12e2')]['name'],{'redirect':![]},{'reload':!![]});});}}},_0x17e5b4=function _0x38f239(_0x5985bf){var _0x21bb57=a0_0x2e7f,_0x2cbbae=_0x5985bf[_0x21bb57('0x914')]()[_0x21bb57('0x595')](_0x21bb57('0x15bc')),_0x588512=_0x5985bf[_0x21bb57('0x1e2a')][_0x21bb57('0xcee')];if(_0x2cbbae[_0x21bb57('0x21de')](_0x21bb57('0x1775'))&&!_0x2cbbae[_0x21bb57('0xc35')](0x64))return _0x588512['target'](_0x21bb57('0x143c'),{'redirect':![]},{'reload':!![]});};_0x7471db[_0x3cdab2('0x276f')](_0x6ee8a,_0x4f341c),_0x7471db[_0x3cdab2('0x1bce')](_0x5b8e74,_0x3250e2),_0x7471db[_0x3cdab2('0x1d0b')](_0x3f3b29,_0x1cedb0),_0x7471db[_0x3cdab2('0x1d0b')](_0x25196f,_0x17e5b4);}const _0x174741=_0x5affd3;var _0x50b0e0=_0x398308(0x1956),_0x86640f=_0x398308['n'](_0x50b0e0),_0xe9c7a3=_0x398308(0x17d),_0x1088bc=_0x398308['n'](_0xe9c7a3);const _0x5a4896=_0x398308['p']+_0x3877e3('0x19b1');_0x2ab0da[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),_0x3877e3('0x26'),'$q',_0x3877e3('0xccd'),'$window',_0x3877e3('0x243f')];function _0x2ab0da(_0x192f6e,_0x55af8d,_0x553401,_0x398e67,_0x4ddeaf,_0x277a54){var _0x2c91d0,_0x567631={'getToken':_0x493bed,'getCurrentUser':_0x1518ca,'getPermissions':_0x27f2da,'hasChildrenPermissions':_0x27cb1b,'hasModulePermissions':_0x45e659,'hasModulesPermissions':_0x5b6dec,'hasRole':_0x411695,'hasPermission':_0x18dd5f,'hasResourcePermission':_0x5f0be7,'hasSectionPermissions':_0xcb7cce,'hasSectionsPermissions':_0x114336,'isAgent':_0x86f166,'isAdmin':_0x788ed4,'isLoggedIn':_0x7ca133,'isTelephone':_0x2d4844,'isUser':_0x2e2890,'login':_0x44101b,'logout':_0x1e8de,'parseCrudPermissions':_0x3f48bf,'queueLogin':_0x141885,'reloadPermissions':_0x6d7721,'removeCookies':_0x239155,'retrieveUser':_0x1bb43c,'setCurrentUser':_0x128185,'getAuthenticationType':_0x1937a0,'loginSSO':_0x524b8d};return _0x567631;function _0x493bed(){var _0x2e516a=a0_0x2e7f;return _0x55af8d['get'](_0x2e516a('0x863'));}function _0x1518ca(){return _0x2c91d0;}function _0x128185(_0x47f433){var _0x495f3d=a0_0x2e7f;_0x2c91d0=_0x86640f()[_0x495f3d('0xd0e')](_0x2c91d0,_0x47f433);}function _0x141885(_0x522cff){return _0x553401(function(_0x3fe9aa,_0x449ccf){var _0x346fc2=a0_0x2e7f;_0x398e67[_0x346fc2('0x1775')][_0x346fc2('0xe38')]({'id':_0x2c91d0['id'],'device':'web','intrf':_0x522cff})[_0x346fc2('0x1376')][_0x346fc2('0x21ad')](function(_0xc28f4c){_0x3fe9aa(_0xc28f4c);})[_0x346fc2('0x1c1d')](function(_0x75e494){_0x449ccf(_0x75e494);});});}function _0x28a98d(){return _0x553401(function(_0x5e2a0d,_0x5d5f00){var _0x44c3c4=a0_0x2e7f;_0x398e67['user'][_0x44c3c4('0xda3')]({'id':_0x2c91d0['id'],'device':_0x44c3c4('0x865')})[_0x44c3c4('0x1376')][_0x44c3c4('0x21ad')](function(){_0x5e2a0d();})[_0x44c3c4('0x1c1d')](function(_0x2c793c){_0x5d5f00(_0x2c793c);});});}function _0x3688ac(_0x5b8230){return _0x553401(function(_0x2ed1e3,_0x3e6ed6){var _0x3999f5=a0_0x2e7f,_0x56136={'online':_0x5b8230,'lastLoginAt':_0x5b8230?_0x1088bc()()[_0x3999f5('0x153')](_0x3999f5('0x1e15')):undefined};_0x398e67[_0x3999f5('0x1775')][_0x3999f5('0x5ef')]({'id':_0x2c91d0['id']},_0x56136)[_0x3999f5('0x1376')][_0x3999f5('0x21ad')](function(_0x3291f1){_0x2ed1e3(_0x3291f1);})[_0x3999f5('0x1c1d')](function(_0x54836a){_0x3e6ed6(_0x54836a);});});}function _0x44101b(_0x251fd3){return _0x553401(function(_0xce5c0d,_0xad02da){var _0x12409d=a0_0x2e7f;_0x398e67[_0x12409d('0xa15')]['local'](_0x251fd3)[_0x12409d('0x1376')][_0x12409d('0x21ad')](function(_0x4ea791){var _0x12ad4d=_0x12409d;return _0x55af8d[_0x12ad4d('0x8c4')](_0x12ad4d('0x863'),_0x4ea791[_0x12ad4d('0x1797')]),_0x398e67['user'][_0x12ad4d('0x595')]({'id':_0x4ea791['id']})[_0x12ad4d('0x1376')];})[_0x12409d('0x21ad')](function(_0x1cd63f){var _0x30a906=_0x12409d;_0x2c91d0=_0x1cd63f,_0x2c91d0['lastLoginAt']=_0x1088bc()()['format'](_0x30a906('0x1e15')),_0x28e647('LOCAL_LOGIN');})[_0x12409d('0x21ad')](function(){var _0xde730c=_0x12409d;if(_0x86f166()&&_0x2c91d0[_0xde730c('0x9f')]===0x1&&_0x2c91d0[_0xde730c('0x15bb')])return _0x192f6e[_0xde730c('0x853')]({'controller':_0xde730c('0x58b'),'controllerAs':'vm','templateUrl':_0x5a4896,'parent':angular[_0xde730c('0x1676')](_0x277a54[_0xde730c('0x2452')]),'clickOutsideToClose':![],'resolve':{'telephones':[_0xde730c('0x354'),function _0x1b21a6(_0x59e0e2){var _0x325612=_0xde730c;return _0x59e0e2['resolve']('user@get',{'fields':_0x325612('0xe5'),'role':'telephone','nolimit':!![]});}]}});})[_0x12409d('0x21ad')](function(_0x25e0e5){var _0x47e049=_0x12409d;if(_0x86f166()&&_0x2c91d0[_0x47e049('0x9f')]!==0x0)return _0x141885(_0x25e0e5);else{if(_0x788ed4()||_0x2e2890())return _0x3688ac(!![]);else return;}})[_0x12409d('0x21ad')](function(_0x375455){var _0x4f77d2=_0x12409d;_0x2c91d0=_0x86640f()[_0x4f77d2('0x1902')](_0x2c91d0,_0x375455),_0xce5c0d();})['catch'](function(_0x1097e1){_0xad02da(_0x1097e1);});});}function _0x239155(){var _0x501f81=a0_0x2e7f;_0x55af8d[_0x501f81('0x16a2')](_0x501f81('0x863')),_0x2c91d0&&(_0x4ddeaf[_0x501f81('0x161e')]['removeItem'](_0x501f81('0x218f')+_0x2c91d0['id']),_0x4ddeaf[_0x501f81('0x161e')][_0x501f81('0x27e0')](_0x501f81('0x1a84')),_0x2c91d0=null);}function _0x1e8de(_0x2762dd){return _0x553401(function(_0x207cc8,_0x11320b){var _0x4f227c=a0_0x2e7f;_0x2762dd?(_0x239155(),_0x207cc8()):_0x553401[_0x4f227c('0x8ac')]()[_0x4f227c('0x21ad')](function(){var _0x1afaa7=_0x4f227c;if(_0x86f166()&&_0x2c91d0[_0x1afaa7('0x9f')]!==0x0)return _0x28a98d();else{if(_0x788ed4()||_0x2e2890())return _0x3688ac(![]);else return;}})['then'](function(){_0x239155(),_0x207cc8();})[_0x4f227c('0x1c1d')](function(_0x282d25){_0x11320b(_0x282d25);});});}function _0x7ca133(){return _0x493bed()?!![]:![];}function _0x86f166(){var _0x2ee6d3=a0_0x2e7f;return _0x2c91d0[_0x2ee6d3('0x25c8')]===_0x2ee6d3('0x2402');}function _0x788ed4(){var _0x36c627=a0_0x2e7f;return _0x2c91d0[_0x36c627('0x25c8')]===_0x36c627('0x1bd8');}function _0x2e2890(){var _0x38654c=a0_0x2e7f;return _0x2c91d0[_0x38654c('0x25c8')]===_0x38654c('0x1775');}function _0x2d4844(){var _0x2b50c1=a0_0x2e7f;return _0x2c91d0[_0x2b50c1('0x25c8')]==='telephone';}function _0x1bb43c(){return _0x553401(function(_0x49b6c7,_0x2f21c6){var _0x32750b=a0_0x2e7f;_0x398e67[_0x32750b('0x1775')][_0x32750b('0x491')]()[_0x32750b('0x1376')]['then'](function(_0x4769c8){var _0x238871=_0x32750b;return _0x4769c8['role']===_0x238871('0x1775')?_0x27f2da(_0x4769c8['userProfileId'])[_0x238871('0x21ad')](function(_0x52e25f){var _0xae0864=_0x238871;return _0x4769c8[_0xae0864('0x25b5')]=_0x52e25f,_0x4769c8;}):_0x4769c8;})['then'](function(_0x52dca0){_0x2c91d0=_0x52dca0,_0x49b6c7(_0x2c91d0);})['catch'](function(_0x311b0e){_0x2f21c6(_0x311b0e);});});}function _0x411695(_0x1f0a18){return _0x2c91d0?_0x2c91d0['role']===_0x1f0a18:![];}function _0x18dd5f(_0xb49926){var _0x1fd233=a0_0x2e7f;return _0x2c91d0?_0x86640f()[_0x1fd233('0xb34')](_0x2c91d0[_0x1fd233('0x25b5')],_0xb49926):![];}function _0x27f2da(_0xfbf4aa){var _0x5d2ca8=[];return _0x553401(function(_0x49eaf0,_0x5ef713){var _0x23d6c5=a0_0x2e7f;return!_0xfbf4aa&&_0x49eaf0(_0x5d2ca8),_0x398e67[_0x23d6c5('0x758')][_0x23d6c5('0x809')]({'id':_0xfbf4aa})[_0x23d6c5('0x1376')][_0x23d6c5('0x21ad')](function(_0x30ed01){var _0x476fdd=_0x23d6c5;for(var _0x496fa2=0x0;_0x496fa2<_0x30ed01[_0x476fdd('0x577')];_0x496fa2++){var _0x5d29d2=_0x30ed01[_0x496fa2];_0x5d2ca8[_0x476fdd('0x206c')](_0x5d29d2[_0x476fdd('0x1cd2')]),_0x5d29d2[_0x476fdd('0x2107')]&&(_0x5d2ca8=_0x86640f()[_0x476fdd('0x1877')](_0x5d2ca8,_0x5d29d2[_0x476fdd('0x2107')]));}return _0x5d2ca8;})[_0x23d6c5('0x21ad')](function(_0x1a0283){_0x49eaf0(_0x1a0283);})[_0x23d6c5('0x1c1d')](function(_0x1c8f88){var _0xe02f35=_0x23d6c5;_0x5ef713(_0xe02f35('0x24d5'),_0x1c8f88);});});}function _0x27cb1b(_0x57df6a){if(!_0x57df6a)return![];return _0x86640f()['some'](_0x57df6a,function(_0x86e5b2){return _0x18dd5f(_0x86e5b2);});}function _0x6d7721(){return _0x553401(function(_0x6ff44c,_0x3f2653){var _0x12773c=a0_0x2e7f;_0x27f2da(_0x2c91d0['userProfileId'])[_0x12773c('0x21ad')](function(_0x3ca5ad){var _0x407ba2=_0x12773c;_0x2c91d0[_0x407ba2('0x25b5')]=_0x3ca5ad,_0x6ff44c();})[_0x12773c('0x1c1d')](function(_0x4794d0){_0x3f2653(_0x4794d0);});});}function _0x3f48bf(_0xa140a5){var _0x4d82b7=a0_0x2e7f;return _0x788ed4()?{'readOnly':![],'canEdit':!![],'canDelete':!![]}:!_0xa140a5?{'readOnly':!![],'canEdit':![],'canDelete':![]}:{'readOnly':_0x86640f()['includes'](_0xa140a5,'r')&&_0xa140a5[_0x4d82b7('0x577')]===0x1?!![]:![],'canEdit':_0x86640f()[_0x4d82b7('0xb34')](_0xa140a5,'e')?!![]:![],'canDelete':_0x86640f()[_0x4d82b7('0xb34')](_0xa140a5,'d')?!![]:![]};}function _0x5f0be7(_0x779807,_0x33a008){return _0x553401(function(_0x2c8f61,_0x4fec1a){var _0x4b3203=a0_0x2e7f;return _0x398e67[_0x4b3203('0xab4')][_0x4b3203('0x595')]({'userProfileId':_0x2c91d0[_0x4b3203('0x1618')],'sectionId':_0x779807})[_0x4b3203('0x1376')][_0x4b3203('0x21ad')](function(_0x1d9603){var _0x181738=_0x4b3203,_0x531912=_0x1d9603[_0x181738('0x1b33')][0x0];if(_0x531912[_0x181738('0x80c')])_0x2c8f61();else return _0x398e67[_0x181738('0x185e')]['get']({'sectionId':_0x531912['id'],'nolimit':!![]})['$promise'][_0x181738('0x21ad')](function(_0x515797){var _0x422ff2=_0x181738,_0x524575=_0x515797[_0x422ff2('0x1b33')];_0x86640f()[_0x422ff2('0x2664')](_0x524575,['resourceId',_0x33a008])?_0x2c8f61():_0x4fec1a();});})[_0x4b3203('0x1c1d')](function(_0xfb8099){var _0x4203d0=_0x4b3203;_0x4fec1a(_0x4203d0('0x24d5'),_0xfb8099);});});}function _0xcb7cce(_0x4b09f5){return _0x553401(function(_0x236ac5,_0x4c4594){var _0x1e0acf=a0_0x2e7f,_0x5504f3={};return _0x6d7721()[_0x1e0acf('0x21ad')](function(){var _0x4586d9=_0x1e0acf;_0x86640f()[_0x4586d9('0xb34')](_0x2c91d0[_0x4586d9('0x25b5')],_0x4b09f5)&&(_0x5504f3[_0x4b09f5]=!![]),_0x236ac5(_0x5504f3);})[_0x1e0acf('0x1c1d')](function(_0x6688f3){_0x4c4594(_0x6688f3);});});}function _0x114336(_0x4c32aa){return _0x553401(function(_0x24714d,_0x3990fd){var _0x374257=a0_0x2e7f,_0x276735={};if(_0x788ed4())_0x4c32aa['forEach'](function(_0x5a775a){_0x276735[_0x5a775a]=!![];}),_0x24714d(_0x276735);else return _0x6d7721()[_0x374257('0x21ad')](function(){var _0x440b93=_0x374257;_0x4c32aa[_0x440b93('0x1a52')](function(_0x389dc0){var _0x354c65=_0x440b93;_0x86640f()[_0x354c65('0xb34')](_0x2c91d0[_0x354c65('0x25b5')],_0x389dc0)&&(_0x276735[_0x389dc0]=!![]);}),_0x24714d(_0x276735);})['catch'](function(_0x494401){_0x3990fd(_0x494401);});});}function _0x45e659(_0x8d0300){return _0x553401(function(_0x1c792c,_0x136755){var _0x2dc503=a0_0x2e7f;_0x788ed4()?_0x1c792c(!![]):_0x398e67[_0x2dc503('0xab4')][_0x2dc503('0x595')]({'userProfileId':_0x2c91d0[_0x2dc503('0x1618')]})[_0x2dc503('0x1376')]['then'](function(_0x2cd88c){var _0x5a22e5=_0x2dc503,_0x4af052=_0x2cd88c&&_0x2cd88c['rows']?_0x2cd88c['rows']:[];if(!_0x86640f()['isEmpty'](_0x4af052)){var _0x5ac236=_0x86640f()[_0x5a22e5('0x1503')](_0x4af052,function(_0x3f35db){var _0x36ee88=_0x5a22e5;return _0x3f35db[_0x36ee88('0x2296')];});_0x1c792c(_0x86640f()[_0x5a22e5('0x2664')](_0x5ac236,[_0x5a22e5('0x139c'),_0x8d0300]));}else _0x1c792c(![]);})[_0x2dc503('0x1c1d')](function(_0x28407c){_0x136755(_0x28407c);});});}function _0x5b6dec(_0xd92373){return _0x553401(function(_0x37c751,_0x43dcb5){var _0x3c890a=a0_0x2e7f,_0x5922fc={};_0x788ed4()?(_0xd92373[_0x3c890a('0x1a52')](function(_0x380bf9){_0x5922fc[_0x380bf9]=!![];}),_0x37c751(_0x5922fc)):_0x398e67[_0x3c890a('0xab4')]['get']({'userProfileId':_0x2c91d0[_0x3c890a('0x1618')]})[_0x3c890a('0x1376')][_0x3c890a('0x21ad')](function(_0xf7abdb){var _0x14e4ef=_0x3c890a,_0x3ac79e=_0xf7abdb&&_0xf7abdb[_0x14e4ef('0x1b33')]?_0xf7abdb[_0x14e4ef('0x1b33')]:[];if(!_0x86640f()[_0x14e4ef('0x23aa')](_0x3ac79e)){var _0x52af6f=_0x86640f()(_0x3ac79e)['filter'](function(_0x539531){var _0x56348a=_0x14e4ef;return _0x539531[_0x56348a('0x2296')]&&_0x86640f()['includes'](_0xd92373,_0x539531['category']);})[_0x14e4ef('0x597')](function(_0x2e5078){return _0x2e5078['category'];})['map'](function(_0x215bbb){var _0x1aa4d5=_0x14e4ef;return _0x215bbb[_0x1aa4d5('0x139c')];})[_0x14e4ef('0x2228')]();_0x52af6f[_0x14e4ef('0x1a52')](function(_0x133bee){_0x5922fc[_0x133bee]=!![];}),_0x37c751(_0x5922fc);}else _0x37c751({});})[_0x3c890a('0x1c1d')](function(_0x4be98a){_0x43dcb5(_0x4be98a);});});}function _0x1937a0(){var _0x148124=a0_0x2e7f;return _0x4ddeaf[_0x148124('0x161e')]['motion.authenticationtype']||'NONE';}function _0x28e647(_0x492924){var _0x5b5b8e=a0_0x2e7f;_0x4ddeaf['localStorage'][_0x5b5b8e('0x1a84')]=_0x492924;}function _0x524b8d(_0x69740){var _0x5814d3=a0_0x2e7f;return _0x28e647(_0x5814d3('0x11e8')),_0x5814d3('0x2320')+_0x69740;}}const _0x17dcf0=_0x2ab0da;_0x3f182c['$inject']=[_0x3877e3('0x1850'),_0x3877e3('0x2197')];function _0x3f182c(_0x5f4b42,_0x4fc797){var _0x522ff7=_0x3877e3,_0xb37a7b=this;function _0x437cc2(_0x177e7c){var _0x35dcf6=a0_0x2e7f;_0x5f4b42[_0x35dcf6('0x1c24')](_0x177e7c);}_0xb37a7b['telephones']=_0x4fc797,_0xb37a7b[_0x522ff7('0x167')]=_0x437cc2,_0x4fc797[_0x522ff7('0x205f')]&&(_0xb37a7b['name']=_0x4fc797[_0x522ff7('0x1b33')][0x0][_0x522ff7('0x19fe')]);}const _0xca5277=_0x3f182c;_0x567008[_0x3877e3('0x1a81')]=[_0x3877e3('0x25ff'),'$q','$cookies',_0x3877e3('0x44e'),_0x3877e3('0x10ec')];function _0x567008(_0x464bf6,_0x89d3b2,_0x26bea6,_0x500975,_0x49e8c0){var _0x37c89f;return{'request':function _0x5052dc(_0x3a00f1){var _0x56dee6=a0_0x2e7f,_0x5b8af7=_0x26bea6[_0x56dee6('0x595')](_0x56dee6('0x863'));return _0x3a00f1[_0x56dee6('0x4d8')]=_0x3a00f1[_0x56dee6('0x4d8')]||{},(![]||_0x49e8c0[_0x56dee6('0x6af')](_0x3a00f1[_0x56dee6('0x770')]))&&_0x5b8af7&&(_0x3a00f1['headers'][_0x56dee6('0xb15')]=_0x56dee6('0x5c8')+_0x5b8af7),_0x3a00f1;},'responseError':function _0x3cd55e(_0x57fc08){var _0x10bdd6=a0_0x2e7f;switch(_0x57fc08['status']){case 0x191:_0x26bea6[_0x10bdd6('0x16a2')](_0x10bdd6('0x863')),(_0x37c89f||(_0x37c89f=_0x500975['get'](_0x10bdd6('0xa9f'))))['go'](_0x10bdd6('0xab'));break;case 0x194:break;default:break;}return _0x89d3b2['reject'](_0x57fc08);}};}const _0x20d912=_0x567008;_0x570adc[_0x3877e3('0x1a81')]=[_0x3877e3('0x24e1')];function _0x570adc(_0x217d92){var _0x9616c3={'safeCb':function _0x332dc1(_0x1f9922){var _0xc190e2=a0_0x2e7f;return angular['isFunction'](_0x1f9922)?_0x1f9922:angular[_0xc190e2('0x2101')];},'urlParse':function _0x6cabdc(_0x4eb76a){var _0x4cadfe=a0_0x2e7f,_0x427830=document['createElement']('a');return _0x427830[_0x4cadfe('0x69e')]=_0x4eb76a,_0x427830[_0x4cadfe('0x1c01')]===''&&(_0x427830[_0x4cadfe('0x69e')]=_0x427830[_0x4cadfe('0x69e')]),_0x427830;},'isSameOrigin':function _0x517f7a(_0x50f5a4,_0x5b6e44){var _0x5e086c=a0_0x2e7f;return _0x50f5a4=_0x9616c3[_0x5e086c('0x7d3')](_0x50f5a4),_0x5b6e44=_0x5b6e44&&[]['concat'](_0x5b6e44)||[],_0x5b6e44=_0x5b6e44[_0x5e086c('0x26c3')](_0x9616c3[_0x5e086c('0x7d3')]),_0x5b6e44[_0x5e086c('0x206c')](_0x217d92[_0x5e086c('0x626')]),_0x5b6e44=_0x5b6e44[_0x5e086c('0x1503')](function(_0x41d6e4){var _0x5cee07=_0x5e086c,_0x45d983=_0x50f5a4[_0x5cee07('0xd59')]===_0x41d6e4[_0x5cee07('0xd59')],_0x4c1567=_0x50f5a4['protocol']===_0x41d6e4[_0x5cee07('0x1162')],_0x4966e2=_0x50f5a4[_0x5cee07('0x24fe')]===_0x41d6e4['port']||_0x41d6e4[_0x5cee07('0x24fe')]===''&&(_0x50f5a4[_0x5cee07('0x24fe')]==='80'||_0x50f5a4[_0x5cee07('0x24fe')]==='443');return _0x45d983&&_0x4c1567&&_0x4966e2;}),_0x5b6e44['length']>=0x1;}};return _0x9616c3;}const _0x132586=_0x570adc;;angular['module']('app.auth',[])[_0x3877e3('0x13')](_0x42e08f)['run'](_0x174741)[_0x3877e3('0x1551')](_0x3877e3('0x15bc'),_0x17dcf0)['controller']('HotDeskDialogController',_0xca5277)['factory'](_0x3877e3('0xe68'),_0x20d912)[_0x3877e3('0x1551')](_0x3877e3('0x10ec'),_0x132586);var _0x1daa22=_0x398308(0xca2),_0x12bcd4=_0x398308(0x1e94),_0xfdf21a=_0x398308(0x1e80),_0x56903e=_0x398308(0x11ee),_0x2622b8=_0x398308(0x36e),_0x4e0eb5=_0x398308(0x1bdb),_0x57ffa7=_0x398308(0x1c17),_0x98499=_0x398308(0x813),_0x5e7f82=_0x398308(0xdff),_0x5200f3=_0x398308(0x251),_0x1364d1=_0x398308(0xdf),_0x29dbad=_0x398308(0x1299),_0x3c7483=_0x398308(0x177),_0x25f042=_0x398308(0x573);function _0x26ba92(){var _0x175f3c=_0x3877e3,_0x6c9b16={'disableCustomScrollbars':![],'disableMdInkRippleOnMobile':!![],'disableCustomScrollbarsOnMobile':!![]};function _0x283ca4(_0x56d6ef){_0x6c9b16=angular['extend']({},_0x6c9b16,_0x56d6ef);}function _0x476f2c(_0x383d3f){var _0x448faf=a0_0x2e7f;if(angular[_0x448faf('0x1a5d')](_0x6c9b16[_0x383d3f]))return![];return _0x6c9b16[_0x383d3f];}function _0xc5efe7(_0x45d955,_0x34e2c6){_0x6c9b16[_0x45d955]=_0x34e2c6;}this[_0x175f3c('0xc5d')]=function(){var _0x28b564={'getConfig':_0x476f2c,'setConfig':_0xc5efe7};return _0x28b564;},this[_0x175f3c('0x13')]=_0x283ca4;}const _0x1949f7=_0x26ba92;_0x5dde48[_0x3877e3('0x1a81')]=[_0x3877e3('0x149c'),'$logProvider','msScrollConfigProvider','motionConfigProvider'];function _0x5dde48(_0x1009d5,_0x511f01,_0x1fda2b,_0x20d2cd){var _0x4d6d63=_0x3877e3;_0x511f01[_0x4d6d63('0x679')](!![]),_0x1009d5[_0x4d6d63('0x13')]({'tabindex':![]}),_0x20d2cd[_0x4d6d63('0x13')]({'disableCustomScrollbars':![],'disableCustomScrollbarsOnMobile':!![],'disableMdInkRippleOnMobile':!![]}),_0x1fda2b[_0x4d6d63('0x13')]({'wheelPropagation':!![]});}const _0x52f441=_0x5dde48;_0x138e4b[_0x3877e3('0x1a81')]=[_0x3877e3('0x12d9'),_0x3877e3('0x193b'),_0x3877e3('0x6d5')];function _0x138e4b(_0x203b7f,_0x1aaa67,_0x4c795f){var _0x59feb3=_0x3877e3;_0x1aaa67[_0x59feb3('0xa5c')]();if(_0x4c795f[_0x59feb3('0x1b2f')](_0x59feb3('0x126c'))&&_0x203b7f[_0x59feb3('0xdba')]()){var _0x19ddba=angular['element'](_0x59feb3('0x2452'));_0x19ddba[_0x59feb3('0x18a5')]('md-no-ink',!![]);}_0x203b7f[_0x59feb3('0xdba')]()&&angular[_0x59feb3('0x1676')](_0x59feb3('0x8b'))['addClass'](_0x59feb3('0x1974'));var _0xc73927=_0x203b7f['detectBrowser']();if(_0xc73927){var _0x3869eb=_0xc73927[_0x59feb3('0x19e')]+'\x20'+_0xc73927[_0x59feb3('0x161a')]+'\x20'+_0xc73927['os'];angular[_0x59feb3('0x1676')](_0x59feb3('0x8b'))['addClass'](_0x3869eb);}}const _0x556cb8=_0x138e4b;_0x2b14e1[_0x3877e3('0x1a81')]=[_0x3877e3('0x24e1'),'$mdDialog',_0x3877e3('0x15bc'),_0x3877e3('0x20e2'),_0x3877e3('0x181e'),'storagePath'];function _0x2b14e1(_0x4b4093,_0x4426f2,_0x44c3d7,_0x5311f9,_0x3088f7,_0x547d04){var _0x5ca3ea=_0x3877e3,_0x36703e=this;_0x36703e['currentUser']=_0x44c3d7[_0x5ca3ea('0x15ed')](),_0x36703e['searchOptions']={'matchType':'$and','conditions':[],'fields':_0x3088f7},_0x36703e[_0x5ca3ea('0x1dc5')]=_0x5311f9,_0x36703e['onInit']=_0x516e2c,_0x36703e[_0x5ca3ea('0x77b')]=_0x464fce,_0x36703e['clearConditions']=_0x573a8f,_0x36703e[_0x5ca3ea('0xa55')]=_0x9f555c,_0x36703e['close']=_0x582230;function _0x516e2c(){var _0x50bc58=_0x5ca3ea;if(_0x547d04){var _0x1afb7f=_0x2a0889();typeof _0x1afb7f[_0x50bc58('0x2211')]!=='undefined'&&(_0x36703e[_0x50bc58('0x24b0')]=_0x86640f()['merge'](_0x36703e[_0x50bc58('0x24b0')],_0x1afb7f[_0x50bc58('0x2211')]));}}function _0x464fce(){var _0x4c661a=_0x5ca3ea,_0x48ae23=_0x86640f()[_0x4c661a('0x1503')](_0x36703e[_0x4c661a('0x24b0')]['conditions'],['disabled',![]]),_0x41ad97='['+_0x36703e[_0x4c661a('0x24b0')][_0x4c661a('0x1784')]+']',_0x30bced=[],_0x5707eb='';_0x86640f()(_0x48ae23)['groupBy']('name')[_0x4c661a('0x1a52')](function(_0x2d218d){var _0x223127=_0x4c661a,_0x459e05=_0x2d218d[0x0],_0x4de7b5=_0x2d218d[_0x223127('0x577')]>0x1?!![]:![],_0x10ca5d=_0x459e05[_0x223127('0x77')]['column'];if(_0x4de7b5){var _0x3abe20=_0x86640f()(_0x2d218d)['groupBy'](function(_0x1c4de1){var _0x2999c8=_0x223127;return _0x1c4de1['query'][_0x2999c8('0x2093')];})[_0x223127('0x9e7')](function(_0x216f0d){var _0x33e2a9=_0x223127;return _0x86640f()[_0x33e2a9('0x2254')](_0x216f0d)['map'](function(_0x1cfa3c){var _0x522540=_0x33e2a9;return _0x1cfa3c[_0x522540('0x77')][_0x522540('0x2228')];})[_0x33e2a9('0x2618')]()['value']();})[_0x223127('0x2228')](),_0x466632=[];_0x86640f()[_0x223127('0x223b')](_0x3abe20)[_0x223127('0x1a52')](function(_0x3b3220){var _0x1c0bb9=_0x223127,_0x53c2b1=_0x3abe20[_0x3b3220],_0x398d33=_0x3b3220;_0x86640f()[_0x1c0bb9('0xb34')]([_0x1c0bb9('0x3b3'),_0x1c0bb9('0x2d1'),_0x1c0bb9('0x23')],_0x3b3220)?_0x398d33+='['+_0x53c2b1+']':_0x53c2b1[_0x1c0bb9('0x1a52')](function(_0x3bf214){_0x398d33+='['+_0x3bf214+']';}),_0x466632['push'](_0x398d33);}),_0x5707eb+=_0x10ca5d+':='+_0x466632[_0x223127('0x136')](':=');}else _0x5707eb=_0x10ca5d+':='+_0x459e05[_0x223127('0x77')][_0x223127('0x2093')]+'['+_0x459e05[_0x223127('0x77')]['value']+']';_0x30bced[_0x223127('0x206c')](_0x5707eb);}),_0x41ad97+=_0x30bced[_0x4c661a('0x136')]('||'),_0x1e537b(),_0x4426f2[_0x4c661a('0x1c24')](_0x41ad97);}function _0x573a8f(){var _0x1a9807=_0x5ca3ea;_0x36703e[_0x1a9807('0x24b0')]['conditions']=[],_0x58bfed();}function _0x9f555c(){var _0x4362f8=_0x5ca3ea;_0x1e537b(),_0x4426f2[_0x4362f8('0x1c24')]();}function _0x582230(){var _0x14a031=_0x5ca3ea;_0x4426f2[_0x14a031('0x1c24')](![]);}function _0x2a0889(){var _0x341db9=_0x5ca3ea,_0x34c47d=_0x4b4093[_0x341db9('0x161e')][_0x341db9('0x633')](_0x341db9('0xd1e')+_0x547d04+':'+_0x36703e['currentUser']['id']);return _0x34c47d?JSON[_0x341db9('0x399')](_0x34c47d):{};}function _0x23daa3(_0x302365){var _0x5ebeba=_0x5ca3ea;_0x4b4093[_0x5ebeba('0x161e')]['setItem'](_0x5ebeba('0xd1e')+_0x547d04+':'+_0x36703e[_0x5ebeba('0x123f')]['id'],JSON[_0x5ebeba('0x25e')](_0x302365));}function _0x1e537b(){var _0x4884ce=_0x5ca3ea;if(_0x547d04){var _0x46eef5=_0x2a0889();_0x46eef5[_0x4884ce('0x2211')]=_0x86640f()[_0x4884ce('0x27b1')](_0x36703e[_0x4884ce('0x24b0')],_0x4884ce('0x181e')),_0x23daa3(_0x46eef5);}}function _0x58bfed(){var _0x4c116b=_0x5ca3ea;if(_0x547d04){var _0x4e970b=_0x2a0889();delete _0x4e970b[_0x4c116b('0x2211')];if(_0x4e970b[_0x4c116b('0x77')])delete _0x4e970b['query'][_0x4c116b('0x24e7')];_0x23daa3(_0x4e970b);}}}const _0x24c057=_0x2b14e1;_0x58c792[_0x3877e3('0x1a81')]=[_0x3877e3('0x2313')];function _0x58c792(_0x1b98a0){return{'restrict':'A','link':function _0xfc18f1(_0x34d0ef,_0x1e9c85,_0x1c0f3d){var _0x5a2f8d=a0_0x2e7f;_0x34d0ef[_0x5a2f8d('0x10e8')](_0x1c0f3d['focusOn'],function(_0x2eff94){_0x1b98a0(function(){var _0x2f8e53=a0_0x2e7f;_0x2eff94?_0x1e9c85[0x0][_0x2f8e53('0x117a')]():_0x1e9c85[0x0][_0x2f8e53('0x984')]();});});}};}const _0x14f0eb=_0x58c792;var _0xd3de22=_0x398308(0x1433),_0x28e7fa=_0x398308['n'](_0xd3de22);_0x122ac9[_0x3877e3('0x1a81')]=[_0x3877e3('0x2313'),'$q',_0x3877e3('0x24fd')];function _0x122ac9(_0x3be3fd,_0x150d0d,_0xd7b4a5){return{'restrict':'E','compile':function _0x29b9ec(_0x3ca4e7,_0x1584cc){var _0x42d11f=a0_0x2e7f,_0x16a299;return!_0x1584cc[_0x42d11f('0x17e8')]&&(_0x16a299=_0x3ca4e7[_0x42d11f('0x8b')](),_0x3ca4e7[_0x42d11f('0xd57')]()),function(_0x2fe2bf,_0x3b9801,_0x50b650){var _0xaf6e0=_0x42d11f;_0x50b650['code']&&(_0x16a299=_0x2fe2bf['$eval'](_0x50b650[_0xaf6e0('0x17e8')]));var _0x1ee522=_0x2fe2bf[_0xaf6e0('0x1e8a')](_0x50b650[_0xaf6e0('0x1110')]);_0x150d0d['when'](_0x16a299)[_0xaf6e0('0x21ad')](function(_0x470a58){var _0x31b50e=_0xaf6e0;if(_0x470a58){_0x1ee522&&(_0x470a58=_0xd7b4a5(_0x470a58)(_0x2fe2bf));var _0x34ce3b=angular[_0x31b50e('0x1676')](_0x31b50e('0x1faf'));_0x3b9801[_0x31b50e('0x92d')](_0x34ce3b),_0x3be3fd(function(){_0x5be592(_0x470a58,_0x34ce3b);},0x22,![]);}});function _0x5be592(_0x1da9eb,_0x3e8af9){var _0x5cec30=_0xaf6e0,_0xfbd311=_0x3e8af9[_0x5cec30('0x1d2e')](_0x5cec30('0x17e8')),_0x759ef8=_0x1da9eb[_0x5cec30('0x1af5')]('\x0a');_0x759ef8=_0x759ef8[_0x5cec30('0x1503')](function(_0x386053){var _0x4c6ed8=_0x5cec30;return _0x386053[_0x4c6ed8('0x2078')]()[_0x4c6ed8('0x577')];});var _0x22aa6a=_0x759ef8[0x0][_0x5cec30('0x23e0')](/^\s*/)[0x0],_0x3b2ab4=new RegExp('^'+_0x22aa6a);_0x759ef8=_0x759ef8['map'](function(_0x5772ca){var _0xa917a9=_0x5cec30;return _0x5772ca[_0xa917a9('0x16e4')](_0x3b2ab4,'')[_0xa917a9('0x16e4')](/\s+$/,'');});var _0x73928c=_0x28e7fa()[_0x5cec30('0xd5e')](_0x50b650[_0x5cec30('0x10f')]||_0x50b650[_0x5cec30('0xcb3')],_0x759ef8[_0x5cec30('0x136')]('\x0a'),!![]);_0x73928c[_0x5cec30('0x2228')]=_0x73928c[_0x5cec30('0x2228')]['replace'](/=""<\/span>/gi,'')['replace'](_0x5cec30('0x999'),'')['replace'](_0x5cec30('0x1b39'),''),_0xfbd311['append'](_0x73928c[_0x5cec30('0x2228')])[_0x5cec30('0x11da')](_0x5cec30('0xd5e'));}};}};}const _0x4b5eb7=_0x122ac9,_0x1f75f9=_0x398308['p']+_0x3877e3('0x18c6');_0x159c6f[_0x3877e3('0x1a81')]=[_0x3877e3('0x13c1'),'$q',_0x3877e3('0xccd'),_0x3877e3('0x1908')];function _0x1fd3e9(){return{'restrict':'E','scope':{'options':'=','clearFilter':'&'},'controller':_0x159c6f,'controllerAs':'vm','bindToController':!![],'templateUrl':_0x1f75f9};}function _0x159c6f(_0x309f10,_0xf27377,_0x13451c,_0x37351a){var _0x5ee631=_0x3877e3,_0x4d655d=this;_0x4d655d[_0x5ee631('0x2636')]=[{'type':'$eq','symbol':'=','translate':_0x5ee631('0x1677'),'excludeFrom':[_0x5ee631('0x91f')]},{'type':_0x5ee631('0x3fe'),'symbol':'≠','translate':'IS_NOT_EQUAL','excludeFrom':[_0x5ee631('0x91f')]},{'type':_0x5ee631('0x2d1'),'symbol':'∈','translate':_0x5ee631('0x654'),'applyTo':[_0x5ee631('0x91f')]},{'type':_0x5ee631('0x23'),'symbol':'∉','translate':'IS_NOT_AMONG','applyTo':[_0x5ee631('0x91f')]},{'type':_0x5ee631('0xb58'),'symbol':'⊃','translate':_0x5ee631('0x602'),'applyTo':['text']},{'type':_0x5ee631('0x2419'),'symbol':'a..','translate':'STARTS_WITH','applyTo':[_0x5ee631('0xc1e')]},{'type':_0x5ee631('0x57b'),'symbol':_0x5ee631('0x1e7a'),'translate':_0x5ee631('0xc2d'),'applyTo':[_0x5ee631('0xc1e')]},{'type':_0x5ee631('0x7a2'),'symbol':'<','translate':_0x5ee631('0x62f'),'applyTo':[_0x5ee631('0x2457'),_0x5ee631('0xed8')]},{'type':_0x5ee631('0x1759'),'symbol':'>','translate':'IS_GREATER_THAN','applyTo':[_0x5ee631('0x2457'),_0x5ee631('0xed8')]},{'type':'$lte','symbol':'≤','translate':_0x5ee631('0xa9b'),'applyTo':[_0x5ee631('0x2457'),_0x5ee631('0xed8')]},{'type':_0x5ee631('0x170a'),'symbol':'≥','translate':'IS_GREATER_THAN_OR_EQUAL_TO','applyTo':[_0x5ee631('0x2457'),_0x5ee631('0xed8')]},{'type':_0x5ee631('0x3b3'),'symbol':'≬','translate':'IS_BETWEEN','applyTo':[_0x5ee631('0x2457'),_0x5ee631('0xed8')]}],_0x4d655d['operators']=_0x4d655d['availableOperators'],_0x4d655d['addCondition']=_0x3fab29,_0x4d655d[_0x5ee631('0x1d29')]=_0xca1367,_0x4d655d[_0x5ee631('0x1c1a')]=_0x18545c,_0x4d655d[_0x5ee631('0xaf4')]=_0x39f372,_0x4d655d[_0x5ee631('0x170b')]=_0x33d791,_0x4d655d[_0x5ee631('0xe7c')]=_0x89c886,_0x4d655d[_0x5ee631('0xdc9')]=_0x52b7d4,_0x4d655d['onFieldChange']=_0x3bebde,_0x4d655d[_0x5ee631('0x1f19')]=_0x23a987,_0x4d655d['onValueChange']=_0x54469f,_0x4d655d[_0x5ee631('0x1490')]=_0x2c609a,_0x4d655d[_0x5ee631('0x547')]=_0x347c8c;function _0x3bebde(){var _0x40557a=_0x5ee631;_0x4d655d[_0x40557a('0x2228')]=undefined,_0x4d655d[_0x40557a('0x2288')]=undefined,_0x4d655d[_0x40557a('0x1780')]=undefined,_0x4d655d['isValidCondition']=![],_0x369195(),_0x4d655d[_0x40557a('0x17a7')]=_0x4d655d[_0x40557a('0x2636')][_0x40557a('0x577')]===0x1?!![]:![];if(!_0x4d655d[_0x40557a('0x17a7')])_0x4d655d['selectedOperator']=undefined;}function _0x23a987(_0x4891c3){var _0x369383=_0x5ee631;_0x4d655d['isValidRange']=!![],_0x4d655d['selectedOperator']&&(_0x4891c3?_0x4891c3[_0x369383('0x23a0')]?_0x86640f()['difference'](_0x4d655d[_0x369383('0xc24')][_0x369383('0x23a0')],_0x4891c3[_0x369383('0x23a0')])[_0x369383('0x577')]>0x0&&(_0x4d655d['value']=null):_0x4d655d[_0x369383('0xc24')][_0x369383('0x23a0')]&&(_0x4d655d[_0x369383('0x2228')]=null):_0x4d655d['value']=null,_0x4d655d[_0x369383('0xc24')][_0x369383('0x7fa')]!=_0x369383('0x172')&&(_0x4d655d['endRangeValue']=null),_0x4d655d[_0x369383('0x30c')][_0x369383('0x26a0')]&&!_0x86640f()[_0x369383('0x23aa')](_0x4d655d['selectedField'][_0x369383('0x26a0')][_0x369383('0x1b77')])&&(_0x4d655d[_0x369383('0xc24')][_0x369383('0x1a1c')]=_0x86640f()[_0x369383('0x2664')](_0x4d655d[_0x369383('0x30c')][_0x369383('0x26a0')][_0x369383('0x1b77')],function(_0x4b84af){var _0x32dd18=_0x369383;return _0x4b84af===_0x4d655d[_0x32dd18('0xc24')][_0x32dd18('0x7fa')];}))),_0x4f670();}function _0x54469f(){var _0x434609=_0x5ee631;if(_0x4d655d['selectedOperator']&&_0x4d655d[_0x434609('0xc24')][_0x434609('0x7fa')]==='$between'){if(_0x4d655d['selectedField']['type']===_0x434609('0xed8'))_0x2c609a();else _0x4d655d[_0x434609('0x30c')]['type']===_0x434609('0x2457')&&(_0x4d655d['minDateRange']=_0x1088bc()(_0x4d655d[_0x434609('0x2228')])[_0x434609('0x1842')](0x1,_0x434609('0x1837')),_0x4f670());}else _0x4f670();}function _0x369195(){var _0x5f26ef=_0x5ee631,_0x31bd78=_0x4d655d[_0x5f26ef('0x30c')][_0x5f26ef('0x26a0')]&&!_0x86640f()[_0x5f26ef('0x23aa')](_0x4d655d['selectedField'][_0x5f26ef('0x26a0')][_0x5f26ef('0x1b77')]),_0x30fbde=_0x4d655d[_0x5f26ef('0x30c')][_0x5f26ef('0x26a0')]&&!_0x86640f()[_0x5f26ef('0x23aa')](_0x4d655d['selectedField'][_0x5f26ef('0x26a0')][_0x5f26ef('0x198')]);_0x4d655d[_0x5f26ef('0x2636')]=_0x86640f()['filter'](_0x4d655d[_0x5f26ef('0x235d')],function(_0x3b3cac){var _0x43069e=_0x5f26ef,_0x5b06c8=!_0x3b3cac[_0x43069e('0x23a0')]||_0x86640f()['includes'](_0x3b3cac[_0x43069e('0x23a0')],_0x4d655d[_0x43069e('0x30c')][_0x43069e('0x7fa')]);_0x3b3cac[_0x43069e('0x1a1c')]=_0x31bd78&&_0x86640f()[_0x43069e('0x2664')](_0x4d655d[_0x43069e('0x30c')][_0x43069e('0x26a0')][_0x43069e('0x1b77')],function(_0x367e1b){var _0x463189=_0x43069e;return _0x367e1b===_0x3b3cac[_0x463189('0x7fa')];});var _0x5be049=_0x86640f()['includes'](_0x3b3cac['excludeFrom'],_0x4d655d[_0x43069e('0x30c')][_0x43069e('0x7fa')])||_0x30fbde&&_0x86640f()[_0x43069e('0xb34')](_0x4d655d['selectedField'][_0x43069e('0x26a0')][_0x43069e('0x198')],_0x3b3cac[_0x43069e('0x7fa')]);if((_0x5b06c8||_0x3b3cac[_0x43069e('0x1a1c')])&&!_0x5be049)return _0x3b3cac;});}function _0x52b7d4(){var _0x46814d=_0x5ee631,_0x3bca0a=angular['copy'](_0x4d655d[_0x46814d('0x30c')][_0x46814d('0x26a0')][_0x46814d('0x25ee')]);if(_0x4d655d['selectedField'][_0x46814d('0x7fa')]===_0x46814d('0x175c'))for(var _0x44e627=0x0;_0x44e627Number(_0x4d655d['value'])?!![]:![]:_0x4d655d[_0x27078f('0x18c8')]=!![];else _0x4d655d[_0x27078f('0x30c')][_0x27078f('0x7fa')]==='date'&&(_0x4d655d[_0x27078f('0x2398')]=_0x1088bc()(_0x4d655d[_0x27078f('0x2288')])[_0x27078f('0xafa')](0x1,_0x27078f('0x1837')),_0x4d655d['isValidRange']=!![]);_0x4f670();}function _0x3fab29(){var _0x540b42=_0x5ee631,_0x84bb91=_0x5e4a41();_0x4d655d[_0x540b42('0x26a0')][_0x540b42('0xffa')][_0x540b42('0x206c')](_0x84bb91),_0x19d39c();}function _0xca1367(_0x48d3b2){var _0xc73358=_0x5ee631;_0x4d655d[_0xc73358('0x2658')]=_0x48d3b2,_0x4d655d[_0xc73358('0x2658')][_0xc73358('0x1ff3')]='md-amber-200-bg',_0x4d655d[_0xc73358('0x30c')]=_0x86640f()[_0xc73358('0x1d2e')](_0x4d655d[_0xc73358('0x26a0')][_0xc73358('0x181e')],[_0xc73358('0x19fe'),_0x4d655d[_0xc73358('0x2658')][_0xc73358('0x19fe')]]),_0x369195(),_0x4d655d[_0xc73358('0xc24')]=_0x86640f()[_0xc73358('0x1d2e')](_0x4d655d['availableOperators'],[_0xc73358('0x7fa'),_0x4d655d[_0xc73358('0x2658')][_0xc73358('0x77')][_0xc73358('0x2093')]]),_0x4d655d[_0xc73358('0x30c')][_0xc73358('0x7fa')]===_0xc73358('0x2457')&&typeof _0x4d655d[_0xc73358('0x2658')]['value']===_0xc73358('0x2638')?(_0x4d655d[_0xc73358('0x2228')]=new Date(_0x4d655d[_0xc73358('0x2658')][_0xc73358('0x2228')]),_0x4d655d[_0xc73358('0x188')]=_0x1088bc()(_0x4d655d['value'])[_0xc73358('0x1842')](0x1,'day'),_0x4d655d['endRangeValue']=_0x4d655d[_0xc73358('0x2658')][_0xc73358('0x21fb')]?new Date(_0x4d655d[_0xc73358('0x2658')]['endValue']):undefined):(_0x4d655d['value']=_0x4d655d[_0xc73358('0x2658')]['value'],_0x4d655d[_0xc73358('0x2288')]=_0x4d655d[_0xc73358('0x2658')]['endValue']),_0x4d655d[_0xc73358('0x18c8')]=!![],_0x4d655d['isValidCondition']=!![];}function _0x18545c(){var _0x4c5ce0=_0x5ee631,_0x1f7554=_0x5e4a41(),_0x552ad3=_0x86640f()['findIndex'](_0x4d655d['options']['conditions'],'style');_0x4d655d[_0x4c5ce0('0x26a0')][_0x4c5ce0('0xffa')][_0x4c5ce0('0xafe')](_0x552ad3,0x1,_0x1f7554),_0x19d39c(),_0x4d655d[_0x4c5ce0('0x2658')][_0x4c5ce0('0x1ff3')]=null,_0x4d655d[_0x4c5ce0('0x2658')]=undefined;}function _0x39f372(){var _0x45149f=_0x5ee631;_0x4d655d['pendingCondition'][_0x45149f('0x1ff3')]=null,_0x4d655d['pendingCondition']=undefined;}function _0x33d791(_0x3cf1b2){var _0x538802=_0x5ee631;_0x3cf1b2[_0x538802('0x1ff3')]=_0x3cf1b2[_0x538802('0x30')]?undefined:_0x538802('0x4cf'),_0x3cf1b2['disabled']=!_0x3cf1b2[_0x538802('0x30')];}function _0x89c886(){var _0xa4a24c=_0x5ee631;if(_0x86640f()['isEmpty'](_0x4d655d[_0xa4a24c('0x26a0')][_0xa4a24c('0xffa')]))_0x4d655d[_0xa4a24c('0x23c8')]();}function _0x347c8c(){var _0x7baee0=_0x5ee631;_0x4d655d[_0x7baee0('0x2658')]?_0x18545c():_0x3fab29();}function _0x5e4a41(){var _0xa2d4bc=_0x5ee631;return{'name':_0x4d655d['selectedField'][_0xa2d4bc('0x19fe')],'operator':_0x309f10[_0xa2d4bc('0x183e')](_0xa2d4bc('0x22e4')+_0x4d655d[_0xa2d4bc('0xc24')][_0xa2d4bc('0x11db')]),'value':_0x4d655d[_0xa2d4bc('0x2228')],'endValue':_0x4d655d[_0xa2d4bc('0x2288')],'displayValue':_0x257de8(_0x4d655d['value']),'displayEndValue':_0x257de8(_0x4d655d[_0xa2d4bc('0x2288')]),'query':{'column':_0x4d655d[_0xa2d4bc('0x30c')][_0xa2d4bc('0x23bd')],'operator':_0x4d655d[_0xa2d4bc('0xc24')][_0xa2d4bc('0x7fa')],'value':_0x41b9b5()},'disabled':![]};}function _0x257de8(_0x44b4d0){var _0x18d7af=_0x5ee631,_0xae0451;if(!_0x44b4d0)return undefined;switch(_0x4d655d['selectedField']['type']){case _0x18d7af('0x2457'):_0xae0451=_0x1088bc()(_0x44b4d0)[_0x18d7af('0x153')]('YYYY-MM-DD');break;case _0x18d7af('0x91f'):{var _0xc0d6fa=_0x86640f()[_0x18d7af('0x26c3')](_0x44b4d0,function(_0x1f1561){return _0x1f1561['name'];});_0xae0451=_0x4d655d['selectedOperator'][_0x18d7af('0x7fa')]===_0x18d7af('0x940')?_0xc0d6fa['join'](_0x18d7af('0x2779')):_0xc0d6fa[_0x18d7af('0x136')](_0x18d7af('0x1890'));}break;case'select':_0xae0451=_0x44b4d0['name'];break;case _0x18d7af('0x175c'):_0xae0451=_0x4d655d[_0x18d7af('0xc24')][_0x18d7af('0x1a1c')]?_0x44b4d0:_0x44b4d0[_0x18d7af('0x20b')];break;default:_0xae0451=_0x44b4d0;break;}return _0xae0451;}function _0x41b9b5(){var _0x15e883=_0x5ee631,_0x540015=_0x4d655d['value'],_0x5440bc=_0x4d655d[_0x15e883('0x2288')],_0xc02979;switch(_0x4d655d['selectedField']['type']){case _0x15e883('0x2457'):{var _0x593ed7=_0x1088bc()(_0x540015)[_0x15e883('0x215e')](0x0,!![])['format']('YYYY-MM-DD');if(_0x4d655d['selectedOperator'][_0x15e883('0x7fa')]===_0x15e883('0x3b3')){var _0x5f39b0=_0x1088bc()(_0x5440bc)[_0x15e883('0x215e')](0x0,!![])[_0x15e883('0x153')](_0x15e883('0x21dd'));_0xc02979=[_0x593ed7,_0x5f39b0];}else _0xc02979=_0x593ed7;}break;case _0x15e883('0xed8'):_0xc02979=_0x4d655d['selectedOperator'][_0x15e883('0x7fa')]===_0x15e883('0x3b3')?[_0x540015,_0x5440bc]:_0x540015;break;case _0x15e883('0x91f'):{var _0x226f3f=_0x4d655d[_0x15e883('0x30c')][_0x15e883('0x26a0')]['field']||'id';_0xc02979=_0x86640f()['map'](_0x540015,_0x226f3f);}break;case _0x15e883('0x2844'):_0xc02979=_0x540015['id'];break;case _0x15e883('0x175c'):_0xc02979=_0x4d655d['selectedOperator'][_0x15e883('0x1a1c')]?_0x540015:_0x540015['id'];break;default:_0xc02979=_0x540015;break;}return _0xc02979;}function _0x19d39c(){var _0x175027=_0x5ee631;_0x4d655d['value']=null,_0x4d655d['endRangeValue']=null,_0x4d655d[_0x175027('0x188')]=null,_0x4d655d[_0x175027('0x2398')]=null,_0x4d655d[_0x175027('0x198e')]=![];}}const _0xa2d4cf=_0x1fd3e9;function _0x572a72(){var _0x935e46=_0x3877e3;return{'restrict':'E','scope':{'templatePath':_0x935e46('0x31d'),'card':_0x935e46('0x1820'),'vm':'=viewModel'},'template':'','compile':function _0x2fcf01(_0x35e7df){var _0xffc290=_0x935e46;return _0x35e7df[_0xffc290('0x11da')](_0xffc290('0x1175')),function _0x3cbf84(_0x3b5952,_0x5b89dc){function _0x279e64(){var _0x3edf38=a0_0x2e7f;_0x3b5952[_0x3edf38('0x2389')](_0x3edf38('0xf66'),_0x5b89dc);}_0x3b5952['cardTemplateLoaded']=_0x279e64;};}};}const _0x13a3a5=_0x572a72;;function _0x2ea474(){return{'restrict':'A','link':function _0x253f33(_0x50517f,_0x3742bf,_0x573f6f){var _0x470634=a0_0x2e7f;_0x573f6f[_0x470634('0x26f1')](_0x470634('0x1c69'),function(_0x4e0a95){var _0x4d269a=_0x470634,_0x415574=_0x3742bf['parent']()[_0x4d269a('0x12e2')]();!_0x415574[_0x4d269a('0xc6a')](_0x4d269a('0x1726'))&&_0x415574[_0x4d269a('0x11da')](_0x4d269a('0x1726'));if(!_0x86640f()[_0x4d269a('0x23aa')](_0x4e0a95))_0x415574[_0x4d269a('0x11da')](_0x4e0a95);else{var _0x16fffe=_0x415574[0x0][_0x4d269a('0x2396')][_0x4d269a('0x1af5')]('\x20'),_0x191ca0=_0x16fffe[_0x4d269a('0x2004')](_0x4d269a('0x1f52'));_0x16fffe['length']=_0x191ca0+0x1,_0x415574[0x0]['className']=_0x16fffe['join']('\x20');}});}};}const _0x3ce5ca=_0x2ea474,_0x1f8d27=_0x398308['p']+_0x3877e3('0xbeb'),_0x4ebac9=_0x398308['p']+_0x3877e3('0x1b6b');;function _0x58dc1b(){var _0x55851a=_0x3877e3;return{'restrict':'E','scope':{'type':'=','disabled':'=','target':'=','prefix':'=','license':'='},'controller':['$scope',_0x55851a('0x25ff'),_0x55851a('0x7ae'),'$translate',_0x55851a('0x243f'),_0x55851a('0x1850'),_0x55851a('0x15bc'),_0x55851a('0x1908'),_0x55851a('0xccd'),function _0x49f1af(_0x3d5d73,_0x37df5d,_0x5dbd5c,_0x3d4688,_0x521829,_0x5b8f41,_0x3bae44,_0x422f06,_0x507434){var _0x13b2d9=_0x55851a;_0x3d5d73[_0x13b2d9('0x123f')]=_0x3bae44[_0x13b2d9('0x15ed')](),_0x3d5d73[_0x13b2d9('0x2602')]=function(){var _0x57ea2a=_0x13b2d9;return _0x3d5d73[_0x57ea2a('0x14a5')]&&_0x3d5d73['target']['indexOf']('@')<0x0&&_0x3d5d73[_0x57ea2a('0x14a5')]!=_0x3d5d73[_0x57ea2a('0x123f')][_0x57ea2a('0x201f')]&&_0x3d5d73[_0x57ea2a('0x14a5')]!=_0x3d5d73[_0x57ea2a('0x123f')][_0x57ea2a('0x19fe')]&&(_0x3d5d73[_0x57ea2a('0x123f')][_0x57ea2a('0x9f')]==0x0&&_0x3d5d73[_0x57ea2a('0x123f')][_0x57ea2a('0x6db')]||_0x3d5d73['currentUser']['showWebBar']==0x2&&_0x3d5d73['license']['webrtc'])&&!_0x3d5d73[_0x57ea2a('0x30')];};function _0x280890(_0x18773e){var _0x40463a=_0x13b2d9;return _0x507434['user']['getVoicePrefixes']({'id':_0x3d5d73['currentUser']['id']})[_0x40463a('0x1376')][_0x40463a('0x21ad')](function(_0x3117a0){var _0x5873f0=_0x40463a;if(_0x3117a0['count'])return _0x5b8f41[_0x5873f0('0x853')]({'controller':'PrefixDialogController','controllerAs':'vm','templateUrl':_0x4ebac9,'parent':angular[_0x5873f0('0x1676')](_0x521829[_0x5873f0('0x2452')]),'clickOutsideToClose':!![],'locals':{'prefixes':_0x3117a0,'required':_0x3d5d73[_0x5873f0('0x123f')][_0x5873f0('0x137b')]}});})[_0x40463a('0x21ad')](function(_0x2e3976){var _0x18f745=_0x40463a;if(!_0x3d5d73[_0x18f745('0x123f')][_0x18f745('0x137b')]){if(_0x2e3976&&_0x2e3976!==-0x1)_0x301781(_0x2e3976+_0x18773e);else!_0x2e3976&&_0x301781(_0x18773e);}else _0x2e3976&&_0x2e3976!==-0x1&&_0x301781(_0x2e3976+_0x18773e);});}function _0x301781(_0x3cec3e){var _0x3ed14e=_0x13b2d9;switch(_0x3d5d73[_0x3ed14e('0x123f')]['showWebBar']){case 0x0:return _0x4fc5e8(_0x3ed14e('0x356')+(_0x3d5d73[_0x3ed14e('0x123f')][_0x3ed14e('0x899')]||_0x3ed14e('0x299'))+_0x3ed14e('0x2567')+_0x260018(_0x3cec3e));case 0x2:return _0x37df5d[_0x3ed14e('0x149a')](_0x3ed14e('0x37d'),{'target':_0x260018(_0x3cec3e)});default:break;}}_0x3d5d73[_0x13b2d9('0xdc2')]=function(_0x43cd3b){var _0x27e301=_0x13b2d9;return _0x3d5d73[_0x27e301('0x123f')]['showWebBar']!==0x2?_0x280890(_0x43cd3b):_0x301781(_0x43cd3b);},_0x3d5d73['transfer']=function(_0xfcec76){var _0x514547=_0x13b2d9;switch(_0x3d5d73[_0x514547('0x123f')][_0x514547('0x9f')]){case 0x0:return _0x4fc5e8(_0x514547('0x356')+(_0x3d5d73[_0x514547('0x123f')][_0x514547('0x899')]||'9888')+_0x514547('0xeaa')+_0x260018(_0xfcec76));case 0x2:_0x37df5d[_0x514547('0x149a')](_0x514547('0x172b'),{'target':_0x260018(_0xfcec76)});break;default:break;}};function _0x260018(_0x481ed0){var _0x4a4224=_0x13b2d9;return!_0x86640f()[_0x4a4224('0x1c7')](_0x481ed0)?_0x481ed0[_0x4a4224('0x16e4')](/[^\w.+#*-]+/g,''):'';}function _0x4fc5e8(_0x1c65b9){var _0x5bacce=_0x13b2d9;return _0x5dbd5c[_0x5bacce('0x595')](_0x1c65b9)['success'](function(){var _0x18b8ef=_0x5bacce;_0x422f06[_0x18b8ef('0xdb1')]({'title':_0x18b8ef('0x1d34'),'msg':'Call\x20properly\x20handled!'});})[_0x5bacce('0x2092')](function(){var _0x4c8c3a=_0x5bacce;_0x422f06['error']({'title':'PhoneBar\x20API\x20Error','msg':_0x3d4688[_0x4c8c3a('0x183e')](_0x4c8c3a('0x1566'))});});}}],'templateUrl':_0x1f8d27};}const _0x2ace68=_0x58dc1b;_0x237992['$inject']=[_0x3877e3('0x24f6')];function _0x5b6dc3(){var _0x418e7d=_0x3877e3;_0x219a3d[_0x418e7d('0x1a81')]=['configuration'];var _0x405ea8=this,_0x5bc3d8={'formatter':function _0x1ff014(_0x20da87){if(!_0x20da87)return'';return _0x20da87===''?_0x20da87:new Date(_0x20da87);},'parser':function _0x32de32(_0x2f3517){var _0x34bdc6=_0x418e7d;if(!_0x2f3517)return'';return _0x1088bc()(_0x2f3517)['add'](_0x1088bc()(_0x2f3517)[_0x34bdc6('0x215e')](),'m')[_0x34bdc6('0x17c1')]();}};function _0x219a3d(_0x484291){var _0x4b380d=_0x418e7d;_0x5bc3d8=angular[_0x4b380d('0x1ad')]({},_0x5bc3d8,_0x484291);}_0x405ea8[_0x418e7d('0x13')]=_0x219a3d,_0x405ea8[_0x418e7d('0xc5d')]=function(){return _0x5bc3d8;};}function _0x237992(_0x29b7e3){var _0x353374=_0x3877e3;return{'require':_0x353374('0x19d2'),'priority':0x1,'link':function _0x2632b6(_0x4563d8,_0x474719,_0x1274ad,_0x467420){var _0xba944=_0x353374;_0x467420[_0xba944('0x244')]['push'](_0x29b7e3['formatter']),_0x467420[_0xba944('0x488')][_0xba944('0x206c')](_0x29b7e3[_0xba944('0x3e6')]);}};}_0x55a6cf[_0x3877e3('0x1a81')]=['api'];function _0x55a6cf(_0x50ef2e){return{'restrict':'E','scope':{'id':'=','model':'=','element':'=','title':'=','path':'='},'replace':!![],'link':function _0x3bb89b(_0x11226b,_0xe46b43){var _0x1f288b=a0_0x2e7f,_0x1bb1dc=![],_0x3c7c3d={};_0x3c7c3d['id']=_0x11226b['id'];!_0x86640f()[_0x1f288b('0x1c7')](_0x11226b[_0x1f288b('0x1d02')])&&(_0x3c7c3d[_0x1f288b('0x1d02')]=_0x11226b[_0x1f288b('0x1d02')]);var _0x18b760=document[_0x1f288b('0x162e')](_0x11226b['element']);_0x18b760[_0x1f288b('0x127a')](_0x1f288b('0x1f14'),'none'),_0x18b760[_0x1f288b('0x127a')]('controls',_0x1f288b('0x19bd')),_0x11226b[_0x1f288b('0x1676')]===_0x1f288b('0xf21')&&_0x18b760[_0x1f288b('0x127a')](_0x1f288b('0x1ff3'),_0x1f288b('0x6d7')),_0x11226b[_0x1f288b('0x1676')]===_0x1f288b('0x2631')&&_0x18b760[_0x1f288b('0x127a')](_0x1f288b('0x1ff3'),_0x1f288b('0xd38')),_0x18b760[_0x1f288b('0x127a')](_0x1f288b('0x4b4'),_0x11226b['title']),_0x18b760[_0x1f288b('0x127a')]('src','\x20'),_0x18b760['onplay']=function(_0x4ca6ca){var _0x320cc5=_0x1f288b;!_0x1bb1dc&&(_0x1bb1dc=!![],_0x4ca6ca[_0x320cc5('0x1f1c')](),_0x50ef2e[_0x11226b[_0x320cc5('0x55d')]]['download'](_0x3c7c3d)[_0x320cc5('0x1376')][_0x320cc5('0x21ad')](function(_0x311c3d){var _0x5b0cf7=_0x320cc5,_0x4d518f=[_0x311c3d['buffer']],_0x5c6128=new Blob(_0x4d518f,{'type':_0x311c3d[_0x5b0cf7('0x7fa')]});_0x18b760[_0x5b0cf7('0x127a')](_0x5b0cf7('0x7fa'),_0x311c3d[_0x5b0cf7('0x7fa')]),_0x18b760[_0x5b0cf7('0x127a')]('src',URL['createObjectURL'](_0x5c6128)),_0x18b760[_0x5b0cf7('0x653')]();})[_0x320cc5('0x1c1d')](function(_0xed6398){var _0x4df20b=_0x320cc5;console[_0x4df20b('0x2092')](_0xed6398);}));},_0xe46b43[_0x1f288b('0x92d')](_0x18b760);}};}const _0x196882=_0x55a6cf,_0x1926c4=_0x398308['p']+_0x3877e3('0xe99');;function _0xcb6472(){var _0x104a5e=_0x3877e3;return{'restrict':'E','scope':{'options':'='},'controller':[_0x104a5e('0x95a'),function _0x5357eb(_0x177ffb){var _0x2b3c65=_0x104a5e;_0x177ffb[_0x2b3c65('0x35f')]=function(_0x463555,_0xb7d146,_0x19aca0){var _0x559922=_0x2b3c65;if(_0xb7d146['readOnly'])return;else{if(typeof _0x463555[_0x559922('0x118b')]!=='undefined'&&_0x463555['isValid'])return _0x19aca0?_0x177ffb['transfer'](_0xb7d146[_0x559922('0x2629')],_0xb7d146[_0x559922('0x1b9a')],_0xb7d146[_0x559922('0x2629')][_0x559922('0x2004')](_0x463555),_0x19aca0):_0x177ffb[_0x559922('0x1e61')](_0xb7d146[_0x559922('0x1b9a')],_0xb7d146[_0x559922('0x2629')],_0xb7d146[_0x559922('0x1b9a')][_0x559922('0x2004')](_0x463555),_0x19aca0);}},_0x177ffb[_0x2b3c65('0x1e61')]=function(_0x561b4f,_0x379e59,_0x91605d,_0x371750){var _0x2c58a2=_0x2b3c65,_0x1ec14e=[];if(_0x91605d>=0x0)_0x1ec14e['push'](_0x561b4f[_0x91605d]),_0x379e59[_0x2c58a2('0x206c')](_0x561b4f[_0x91605d]),_0x561b4f['splice'](_0x91605d,0x1);else{for(var _0x2839d6=0x0;_0x2839d6<_0x561b4f[_0x2c58a2('0x577')];_0x2839d6++){typeof _0x561b4f[_0x2839d6][_0x2c58a2('0x118b')]!=='undefined'&&_0x561b4f[_0x2839d6][_0x2c58a2('0x118b')]&&_0x379e59[_0x2c58a2('0x206c')](_0x561b4f[_0x2839d6]);}for(var _0x2ab503=_0x561b4f['length']-0x1;_0x2ab503>=0x0;_0x2ab503--){_0x561b4f[_0x2ab503][_0x2c58a2('0x118b')]&&_0x561b4f[_0x2c58a2('0xafe')](_0x2ab503,0x1);}_0x1ec14e=_0x379e59;}_0x177ffb[_0x2c58a2('0x26a0')][_0x2c58a2('0x1ffe')]&&_0x177ffb['options'][_0x2c58a2('0x1ffe')](_0x1ec14e,_0x371750);},_0x177ffb[_0x2b3c65('0x699')]=function(_0x8766b7,_0x2e7d42){var _0x3dd8d4=_0x2b3c65,_0x115c4c='';if(_0x86640f()[_0x3dd8d4('0x1c7')](_0x2e7d42))return _0x115c4c;if(_0x86640f()['isArray'](_0x2e7d42)){for(var _0x2c1a8d=0x0;_0x2c1a8d<_0x2e7d42[_0x3dd8d4('0x577')];_0x2c1a8d++){_0x115c4c+='\x20'+(_0x8766b7[_0x2e7d42[_0x2c1a8d]]?_0x8766b7[_0x2e7d42[_0x2c1a8d]]:'');}return _0x115c4c;}else return _0x8766b7[_0x2e7d42]?_0x8766b7[_0x2e7d42]:'';};}],'templateUrl':_0x1926c4};}const _0x18082e=_0xcb6472;_0x10c5f6[_0x3877e3('0x1a81')]=[_0x3877e3('0x13c1')];function _0x10c5f6(_0x515ee5){var _0x542a8d=_0x3877e3;return{'restrict':'E','replace':!![],'scope':{'onReply':'&','ngModel':'=','ctrlMethods':'=','pickerPosition':'=','search':'=','recentEmojis':'=','placeholder':'='},'template':_0x542a8d('0xad5'),'link':function _0x5d1070(_0x302d26,_0x2d4ec5){var _0x34460c=_0x542a8d,_0x577102=_0x2d4ec5[_0x34460c('0x525')]({'pickerPosition':_0x302d26['pickerPosition'],'search':_0x302d26['search'],'recentEmojis':_0x302d26[_0x34460c('0x1ed5')],'placeholder':_0x515ee5[_0x34460c('0x183e')](_0x302d26[_0x34460c('0x5a2')]||_0x34460c('0x21d9')),'attributes':{'spellcheck':!![]},'events':{'keypress':function _0x1a2db9(_0x699726,_0x49ad5d){var _0x16c121=_0x34460c;_0x302d26[_0x16c121('0x19d2')]=this['getText'](),_0x302d26[_0x16c121('0x15e4')]({'event':_0x49ad5d,'body':this[_0x16c121('0x548')]()});},'emojibtn_click':function _0x123015(){var _0x21c663=_0x34460c;_0x302d26['ngModel']=this[_0x21c663('0x548')]();}}});_0x302d26[_0x34460c('0x19d2')]&&_0x577102[0x0]['emojioneArea'][_0x34460c('0x23fd')](_0x302d26[_0x34460c('0x19d2')]),_0x302d26[_0x34460c('0x18aa')]=_0x302d26[_0x34460c('0xa7c')]||{},_0x302d26[_0x34460c('0x18aa')]['setText']=function(_0x7db32d){var _0x176dcb=_0x34460c;_0x577102[0x0]['emojioneArea'][_0x176dcb('0x23fd')](_0x7db32d);},_0x302d26[_0x34460c('0x18aa')]['getText']=function(){var _0x41778a=_0x34460c;return _0x577102[0x0][_0x41778a('0x525')][_0x41778a('0x548')]();},_0x302d26['$watch'](_0x34460c('0x19d2'),function(_0xfc027){var _0x3aaafb=_0x34460c;!_0xfc027&&_0x577102[0x0][_0x3aaafb('0x525')]['setText']('');});}};}const _0x5dfd4a=_0x10c5f6,_0xf63fe3=_0x398308['p']+_0x3877e3('0x160c');;function _0x1ad37d(){var _0x25c442=_0x3877e3;return{'restrict':'E','scope':{'ngModel':'='},'controller':[_0x25c442('0x95a'),function _0x1d030a(_0x2a885a){var _0x443372=_0x25c442;_0x2a885a['fonts']=[{'option':_0x443372('0xcce'),'value':'Arial,Helvetica,sans-serif'},{'option':_0x443372('0x122c'),'value':_0x443372('0x1d40')},{'option':'Calibri','value':_0x443372('0x105e')},{'option':_0x443372('0xc16'),'value':_0x443372('0x16fe')},{'option':'Courier\x20New','value':_0x443372('0x1aaf')},{'option':_0x443372('0x1323'),'value':_0x443372('0x0')},{'option':_0x443372('0x2209'),'value':_0x443372('0x1769')},{'option':_0x443372('0x18c2'),'value':'Tahoma,Geneva,sans-serif'},{'option':_0x443372('0x161'),'value':'Times\x20New\x20Roman,Times,serif'},{'option':_0x443372('0x2642'),'value':_0x443372('0x1410')},{'option':_0x443372('0x6ed'),'value':_0x443372('0x1663')}];}],'templateUrl':_0xf63fe3};}const _0x2f0e99=_0x1ad37d;function _0xad0879(){var _0x33f1eb=_0x3877e3,_0x481542=this;_0x481542['forms']=[],_0x481542[_0x33f1eb('0x25c')]=0x0,_0x481542[_0x33f1eb('0x19f0')]=_0x235bc7,_0x481542[_0x33f1eb('0xe1d')]=_0xac04c4,_0x481542[_0x33f1eb('0x8c5')]=_0x212a0d,_0x481542[_0x33f1eb('0x3b9')]=_0x3e64b7,_0x481542['lastStep']=_0x417a30,_0x481542[_0x33f1eb('0xf23')]=_0x2dcf8b,_0x481542[_0x33f1eb('0xece')]=_0x1be56e,_0x481542[_0x33f1eb('0x200a')]=_0x4e290f,_0x481542[_0x33f1eb('0x2ec')]=_0x309ac0,_0x481542[_0x33f1eb('0x228a')]=_0x3115af,_0x481542[_0x33f1eb('0x1c86')]=_0x1bd999,_0x481542[_0x33f1eb('0x1c3c')]=_0x219f89;function _0x235bc7(_0x25aaf3){var _0x93bf63=_0x33f1eb;_0x481542['forms'][_0x93bf63('0x206c')](_0x25aaf3);}function _0xac04c4(){var _0x2d28aa=_0x33f1eb;if(_0x1be56e())return;_0x481542[_0x2d28aa('0x25c')]--;}function _0x212a0d(){if(_0x4e290f())return;_0x481542['selectedIndex']++;}function _0x3e64b7(){_0x481542['selectedIndex']=0x0;}function _0x417a30(){var _0x13cab1=_0x33f1eb;_0x481542[_0x13cab1('0x25c')]=_0x2dcf8b()-0x1;}function _0x2dcf8b(){var _0x4e6d72=_0x33f1eb;return _0x481542[_0x4e6d72('0xa0e')][_0x4e6d72('0x577')];}function _0x1be56e(){var _0x551006=_0x33f1eb;return _0x481542[_0x551006('0x25c')]===0x0;}function _0x4e290f(){var _0x400029=_0x33f1eb;return _0x481542[_0x400029('0x25c')]===_0x2dcf8b()-0x1;}function _0x309ac0(){var _0x4d85b9=_0x33f1eb;return angular['isDefined'](_0x481542[_0x4d85b9('0xa0e')][_0x481542[_0x4d85b9('0x25c')]])&&_0x481542[_0x4d85b9('0xa0e')][_0x481542[_0x4d85b9('0x25c')]][_0x4d85b9('0x1277')];}function _0x3115af(){var _0x18de06=_0x33f1eb;return _0x481542[_0x18de06('0x25c')]>0x0&&angular['isDefined'](_0x481542[_0x18de06('0xa0e')][_0x481542[_0x18de06('0x25c')]-0x1])&&_0x481542[_0x18de06('0xa0e')][_0x481542[_0x18de06('0x25c')]-0x1][_0x18de06('0x1277')];}function _0x1bd999(){var _0x57df4c=_0x33f1eb;for(var _0x4ca54d=0x0;_0x4ca54d<_0x481542[_0x57df4c('0xa0e')][_0x57df4c('0x577')];_0x4ca54d++){if(_0x481542['forms'][_0x4ca54d][_0x57df4c('0x1277')])return!![];}return![];}function _0x219f89(){var _0x4dc9b7=_0x33f1eb;_0x481542[_0x4dc9b7('0x25c')]=0x0;for(var _0x2c7dae=0x0;_0x2c7dae<_0x481542[_0x4dc9b7('0xa0e')]['length'];_0x2c7dae++){_0x481542[_0x4dc9b7('0xa0e')][_0x2c7dae][_0x4dc9b7('0xfe8')](),_0x481542[_0x4dc9b7('0xa0e')][_0x2c7dae]['$setUntouched']();}}}function _0x2aceb1(){var _0x2afd6a=_0x3877e3;return{'restrict':'E','scope':!![],'controller':_0x2afd6a('0x980'),'compile':function _0x9f1e35(_0x2ab8b6){var _0x1c9069=_0x2afd6a;return _0x2ab8b6[_0x1c9069('0x11da')](_0x1c9069('0x1952')),function _0x511244(){};}};}function _0x2337b1(){var _0x24437=_0x3877e3;return{'restrict':'A','require':['form',_0x24437('0x1ffa')],'compile':function _0x5743b5(_0x5b3451){var _0x4f89b0=_0x24437;return _0x5b3451[_0x4f89b0('0x11da')](_0x4f89b0('0x711')),function _0x5f2f97(_0x2c553a,_0x13f765,_0x17a969,_0x612967){var _0x15568c=_0x4f89b0,_0x5381d7=_0x612967[0x0],_0xcfa137=_0x612967[0x1];_0xcfa137[_0x15568c('0x19f0')](_0x5381d7);};}};}const _0x36bcab=_0x398308['p']+_0x3877e3('0x2150');_0xc9c665[_0x3877e3('0x1a81')]=[_0x3877e3('0x243f')];function _0xc9c665(_0x255523){return{'restrict':'E','scope':{'onClose':'&'},'transclude':!![],'templateUrl':_0x36bcab,'link':function _0x231bf2(_0x4b6a29,_0x3adfee){var _0x5213eb=a0_0x2e7f,_0x4efda8=_0x255523['find'](_0x5213eb('0x23ec')),_0x4db345=_0x5213eb('0x23ec');_0x4efda8[_0x5213eb('0x11da')](_0x4db345);function _0x59496f(){var _0x206501=_0x5213eb;_0x4efda8[_0x206501('0x1fe6')](_0x4db345),_0x3adfee[_0x206501('0x16a2')](),_0x4b6a29[_0x206501('0x88')]&&_0x4b6a29['onClose'](),_0x4b6a29[_0x206501('0x1210')]();}_0x4b6a29[_0x5213eb('0xbc2')]=_0x59496f;}};}const _0x3eda71=_0xc9c665;_0xb504c['$inject']=[_0x3877e3('0x2313')],_0x237c2d[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0x2599'),_0x3877e3('0x2313')];function _0x237c2d(_0x1367a8,_0x46801a,_0x2a93f4,_0x246900){var _0x5b9c45=_0x3877e3,_0x3a145f=this,_0x48a6b4={'columnCount':0x5,'respectItemOrder':![],'reLayoutDebounce':0x190,'responsive':{'md':0x3,'sm':0x2,'xs':0x1}},_0x1b601e=!![];_0x3a145f[_0x5b9c45('0x26a0')]=null,_0x3a145f[_0x5b9c45('0x94b')]=[],_0x3a145f[_0x5b9c45('0x257d')]='',_0x3a145f[_0x5b9c45('0x1ae0')]='',_0x3a145f[_0x5b9c45('0x1b9a')]=[],_0x3a145f['reLayout']=_0x55fab4,_0x3a145f[_0x5b9c45('0x1e59')]=_0x3d77e7,_0x3a145f[_0x5b9c45('0x2588')]=_0xc5ece6;function _0x3d77e7(){var _0x3fb09c=_0x5b9c45;_0x3a145f[_0x3fb09c('0x26a0')]=!_0x3a145f[_0x3fb09c('0x26a0')]?_0x48a6b4:angular['extend'](_0x48a6b4,_0x3a145f[_0x3fb09c('0x26a0')]),_0x164782();}_0x1367a8[_0x5b9c45('0x1723')]('msMasonry:relayout',function(){_0x55fab4();});function _0xc5ece6(_0x2f44a3,_0x591b0d){var _0x4101e3=_0x5b9c45;if(typeof imagesLoaded!=='undefined'){var _0x1fe599=_0x46801a[_0x4101e3('0xd37')](_0x2f44a3);_0x1fe599['on'](_0x4101e3('0x10e3'),function(){_0x591b0d();});}else _0x591b0d();}function _0x164782(){_0x1367a8['$watch'](function(){var _0x45d075=a0_0x2e7f;return _0x3a145f[_0x45d075('0x94b')][_0x45d075('0x1901')]();},function(_0x4dd116,_0x521ab2){_0x4dd116!==_0x521ab2&&_0x55fab4();});}function _0x55fab4(){var _0xa7c889=_0x5b9c45;_0x1b601e&&_0x246900[_0xa7c889('0x3b5')](_0x1b601e);_0x1b601e=_0x246900(function(){var _0x2975de=_0xa7c889;_0x54cbde(),_0x1367a8[_0x2975de('0x149a')]('msMasonry:relayoutFinished');},_0x3a145f['options'][_0xa7c889('0x1ec8')]);function _0x54cbde(){var _0x16cd44=_0xa7c889;_0x3a145f[_0x16cd44('0x257d')]=_0x3a145f[_0x16cd44('0x94b')][0x0][_0x16cd44('0x1540')](),_0x346f52(),_0x1367a8[_0x16cd44('0x149a')]('msMasonry:relayoutStarted'),_0x3a145f[_0x16cd44('0x1b9a')]=_0x3a145f['container']['find'](_0x16cd44('0x1a39'));var _0x549335=Array['apply'](null,new Array(_0x3a145f[_0x16cd44('0xf88')]))[_0x16cd44('0x26c3')](function(){return 0x0;});for(var _0x12b1d5=0x0;_0x12b1d5<_0x3a145f[_0x16cd44('0x1b9a')][_0x16cd44('0x577')];_0x12b1d5++){var _0x41f83e=_0x3a145f[_0x16cd44('0x1b9a')][_0x12b1d5],_0x421f78=void 0x0,_0x133e62=void 0x0;_0x41f83e=angular[_0x16cd44('0x1676')](_0x41f83e);_0x41f83e['scope']()&&_0x41f83e[_0x16cd44('0x18ea')]()[_0x16cd44('0x149a')](_0x16cd44('0xa42'));_0x41f83e[_0x16cd44('0x470')]({'width':_0x3a145f[_0x16cd44('0x1ae0')]});_0x3a145f[_0x16cd44('0x26a0')][_0x16cd44('0x2297')]?(_0x421f78=_0x12b1d5%_0x3a145f[_0x16cd44('0xf88')],_0x133e62=_0x549335[_0x421f78]):(_0x133e62=Math[_0x16cd44('0x2544')]['apply'](Math,_0x549335),_0x421f78=_0x549335[_0x16cd44('0x2004')](_0x133e62));_0x549335[_0x421f78]=_0x133e62+_0x41f83e[0x0]['getBoundingClientRect']()[_0x16cd44('0x5cf')];var _0x4025ef=Math[_0x16cd44('0x1682')](_0x421f78*_0x3a145f[_0x16cd44('0x1ae0')]),_0x295d3d=_0x133e62;_0x41f83e[_0x16cd44('0x470')]({'transform':_0x16cd44('0x2446')+_0x4025ef+_0x16cd44('0x67b')+_0x295d3d+_0x16cd44('0x27d8')}),_0x41f83e['addClass'](_0x16cd44('0x14dd')),_0x41f83e[_0x16cd44('0x18ea')]()&&_0x41f83e[_0x16cd44('0x18ea')]()[_0x16cd44('0x149a')](_0x16cd44('0x110'));}}}function _0x346f52(){var _0x1f2f13=_0x5b9c45;_0x3a145f[_0x1f2f13('0xf88')]=_0x3a145f[_0x1f2f13('0x26a0')]['columnCount'];if(_0x2a93f4(_0x1f2f13('0x2453')))_0x3a145f['columnCount']=_0x3a145f[_0x1f2f13('0x26a0')][_0x1f2f13('0xf88')];else{if(_0x2a93f4('md'))_0x3a145f[_0x1f2f13('0xf88')]=_0x3a145f[_0x1f2f13('0xf88')]>_0x3a145f['options'][_0x1f2f13('0xba2')]['md']?_0x3a145f['options'][_0x1f2f13('0xba2')]['md']:_0x3a145f[_0x1f2f13('0xf88')];else _0x2a93f4('sm')?_0x3a145f[_0x1f2f13('0xf88')]=_0x3a145f[_0x1f2f13('0xf88')]>_0x3a145f[_0x1f2f13('0x26a0')]['responsive']['sm']?_0x3a145f[_0x1f2f13('0x26a0')][_0x1f2f13('0xba2')]['sm']:_0x3a145f[_0x1f2f13('0xf88')]:_0x3a145f[_0x1f2f13('0xf88')]=_0x3a145f[_0x1f2f13('0x26a0')][_0x1f2f13('0xba2')]['xs'];}_0x3a145f[_0x1f2f13('0x1ae0')]=_0x3a145f['containerPos'][_0x1f2f13('0x1901')]/_0x3a145f[_0x1f2f13('0xf88')];}}function _0xb504c(_0x100bc8){var _0x5b9303=_0x3877e3;return{'restrict':'AEC','controller':_0x5b9303('0xd14'),'compile':_0x3f22e6};function _0x3f22e6(_0x89969d,_0x5f2c80){return{'pre':function _0x55777a(_0x755f85,_0x554884,_0x11ffd9,_0x3d2cf2){var _0x55f727=a0_0x2e7f;_0x3d2cf2[_0x55f727('0x26a0')]=angular[_0x55f727('0xcf1')](_0x5f2c80['options']||'{}'),_0x3d2cf2['container']=_0x89969d;},'post':function _0x1006b7(_0x4b8808,_0xd704a,_0x1ff716,_0x30fb87){_0x100bc8(function(){var _0xc8ff39=a0_0x2e7f;_0x30fb87[_0xc8ff39('0x1e59')]();});}};}}function _0x11320c(){var _0x3575d1=_0x3877e3;return{'restrict':'AEC','require':_0x3575d1('0x97e'),'priority':0x1,'link':_0x47fe92};function _0x47fe92(_0x3a335e,_0x2c9a4c,_0x3e5c4b,_0x5ef519){var _0x363fe7=_0x3575d1;_0x5ef519[_0x363fe7('0x2588')](_0x2c9a4c,function(){_0x5ef519['reLayout']();}),_0x3a335e['$on'](_0x363fe7('0x110'),function(){var _0x168a10=_0x363fe7;_0x3a335e[_0x168a10('0x10e8')](function(){var _0x3938e5=_0x168a10;return _0x2c9a4c[_0x3938e5('0x5cf')]();},function(_0x3be70d,_0x522d9e){var _0x17fb66=_0x168a10;_0x3be70d!==_0x522d9e&&_0x5ef519[_0x17fb66('0x1fc0')]();});}),_0x2c9a4c['on'](_0x363fe7('0x1210'),function(){var _0x425dc3=_0x363fe7;_0x5ef519[_0x425dc3('0x1fc0')]();});}}const _0x171074=_0x398308['p']+'src/js/modules/core/directives/ms-material-color-picker/ms-material-color-picker.html/ms-material-color-picker-[chunkhash].html';_0x2a8a90['$inject']=[_0x3877e3('0x95a'),'$mdColorPalette',_0x3877e3('0x11a2'),_0x3877e3('0x193b')];function _0x2a8a90(_0x391e6e,_0x4bed86,_0x101131,_0x47cd1d){var _0x491daf=_0x3877e3,_0x5cbeec=this;_0x5cbeec[_0x491daf('0x1adc')]=_0x4bed86,_0x5cbeec[_0x491daf('0x9ae')]=![],_0x5cbeec['selectedHues']=![],_0x391e6e[_0x491daf('0x128b')]={},_0x5cbeec['activateHueSelection']=_0x2306a9,_0x5cbeec['selectColor']=_0x35815e,_0x5cbeec['removeColor']=_0x5d09d4,_0x391e6e['$watch']('ngModel',_0xa81593);function _0x2306a9(_0x14a8f6,_0x44af24){var _0x5f14e4=_0x491daf;_0x5cbeec[_0x5f14e4('0x9ae')]=_0x14a8f6,_0x5cbeec['selectedHues']=_0x44af24;}function _0x35815e(_0x16b983,_0x2a5702){var _0x31fd91=_0x491daf;_0x2c0641(_0x16b983,_0x2a5702),_0x3667a6(),_0x101131[_0x31fd91('0x1c24')]();}function _0x5d09d4(){var _0x274ce3=_0x491daf;_0x5cbeec[_0x274ce3('0x1882')]={'palette':'','hue':'','class':''},_0x2306a9(![],![]),_0x3667a6();}function _0xa81593(){var _0x21768f=_0x491daf;if(!_0x5cbeec[_0x21768f('0x25f2')][_0x21768f('0x6f5')]||_0x5cbeec[_0x21768f('0x25f2')][_0x21768f('0x6f5')]===''){_0x5d09d4();return;}var _0x5c59f1,_0x5a0e6f;if(_0x5cbeec[_0x21768f('0x2bf')]===_0x21768f('0x18a8')){var _0x2a4158=_0x5cbeec['modelCtrl'][_0x21768f('0x6f5')][_0x21768f('0x1af5')]('-');_0x2a4158['length']>=0x5?(_0x5c59f1=_0x2a4158[0x1]+'-'+_0x2a4158[0x2],_0x5a0e6f=_0x2a4158[0x3]):(_0x5c59f1=_0x2a4158[0x1],_0x5a0e6f=_0x2a4158[0x2]);}else _0x5cbeec[_0x21768f('0x2bf')]===_0x21768f('0x63f')&&(_0x5c59f1=_0x5cbeec[_0x21768f('0x25f2')][_0x21768f('0x6f5')][_0x21768f('0x2219')],_0x5a0e6f=_0x5cbeec[_0x21768f('0x25f2')][_0x21768f('0x6f5')][_0x21768f('0x88e')]||0x1f4);_0x2c0641(_0x5c59f1,_0x5a0e6f);}function _0x2c0641(_0x1dfb60,_0x249da6){var _0x11dab9=_0x491daf;_0x5cbeec[_0x11dab9('0x1882')]={'palette':_0x1dfb60,'hue':_0x249da6,'class':'md-'+_0x1dfb60+'-'+_0x249da6+_0x11dab9('0x740'),'bgColorValue':_0x47cd1d['rgba'](_0x5cbeec[_0x11dab9('0x1adc')][_0x1dfb60][_0x249da6]['value']),'fgColorValue':_0x47cd1d[_0x11dab9('0x1e6a')](_0x5cbeec[_0x11dab9('0x1adc')][_0x1dfb60][_0x249da6][_0x11dab9('0x1ef9')])},_0x5cbeec['msModelType']===_0x11dab9('0x63f')&&!angular[_0x11dab9('0x816')](_0x5cbeec['selectedColor'],_0x5cbeec[_0x11dab9('0x25f2')][_0x11dab9('0x6f5')])&&_0x3667a6(),_0x2306a9(_0x1dfb60,_0x5cbeec['palettes'][_0x1dfb60]),_0x391e6e[_0x11dab9('0x128b')]=_0x5cbeec[_0x11dab9('0x1882')];}function _0x3667a6(){var _0x3eca4d=_0x491daf;if(_0x5cbeec['msModelType']==='class')_0x5cbeec[_0x3eca4d('0x25f2')][_0x3eca4d('0x11bd')](_0x5cbeec['selectedColor']['class']);else _0x5cbeec[_0x3eca4d('0x2bf')]===_0x3eca4d('0x63f')&&_0x5cbeec[_0x3eca4d('0x25f2')][_0x3eca4d('0x11bd')](_0x5cbeec[_0x3eca4d('0x1882')]);}}function _0x40652a(){var _0x47a054=_0x3877e3;return{'require':[_0x47a054('0x63'),_0x47a054('0x19d2')],'restrict':'E','scope':{'ngModel':'=','msModelType':'@?'},'controller':_0x47a054('0x57c'),'transclude':!![],'templateUrl':_0x171074,'link':function _0x26799b(_0x25562e,_0x356048,_0x495279,_0x5588a9,_0xce6778){var _0x6f84a0=_0x47a054,_0x9c703=_0x5588a9[0x0];_0x9c703[_0x6f84a0('0x25f2')]=_0x5588a9[0x1],_0x9c703[_0x6f84a0('0x2bf')]=_0x25562e['msModelType']||_0x6f84a0('0x18a8'),_0xce6778(_0x25562e,function(_0x8e3b45){var _0x561dcc=_0x6f84a0;_0x8e3b45=_0x8e3b45['filter'](function(_0x5ee152,_0x5f4381){var _0x15737c=a0_0x2e7f;return _0x5f4381[_0x15737c('0x23ea')]===0x1?!![]:![];}),_0x8e3b45[_0x561dcc('0x577')]&&_0x356048[_0x561dcc('0x1d2e')]('ms-color-picker-button')[_0x561dcc('0x275a')](_0x8e3b45);});}};}_0x32f7f5[_0x3877e3('0x1a81')]=['$rootScope','$q',_0x3877e3('0x61f'),'$state'],_0x2ae776[_0x3877e3('0x1a81')]=[_0x3877e3('0x25ff'),_0x3877e3('0x3f3'),_0x3877e3('0x2440')],_0x1e3046[_0x3877e3('0x1a81')]=[_0x3877e3('0x243f'),_0x3877e3('0x25ff'),_0x3877e3('0x2440')];function _0x1a9837(){var _0x24c10e={},_0x3d0d96={'setFoldable':_0x300cba,'isNavFoldedOpen':_0x41f7c3,'toggleFold':_0x685254,'openFolded':_0x3cb2e2,'closeFolded':_0x48b12e};return _0x3d0d96;function _0x300cba(_0x393959,_0x284284){_0x24c10e={'scope':_0x393959,'element':_0x284284};}function _0x41f7c3(){var _0x41b899=a0_0x2e7f;return _0x24c10e['scope'][_0x41b899('0x22e8')]();}function _0x685254(){_0x24c10e['scope']['toggleFold']();}function _0x3cb2e2(){var _0x4a9243=a0_0x2e7f;_0x24c10e[_0x4a9243('0x18ea')][_0x4a9243('0x26b1')]();}function _0x48b12e(){var _0x568c51=a0_0x2e7f;_0x24c10e['scope'][_0x568c51('0x60')]();}}function _0x1e3046(_0x45c113,_0x1895ef,_0x208475){return{'restrict':'A','link':function _0x1105d2(_0x1487de,_0xa2c494,_0x3e4fa3){var _0x1abace=a0_0x2e7f,_0x5e585b=_0x3e4fa3[_0x1abace('0x1c40')]===_0x1abace('0x19bd'),_0x5913a9=![],_0x523f64=angular['element'](_0x45c113[0x0][_0x1abace('0x2452')]),_0x24154e=angular[_0x1abace('0x1676')](_0x1abace('0x263a')),_0x17d952=angular[_0x1abace('0x1676')](_0x1abace('0x2817')),_0x2d41f7=_0xa2c494[_0x1abace('0x12e2')]();_0x208475[_0x1abace('0xe')](_0x1487de,_0xa2c494,_0x5e585b);_0x5e585b?_0x11cad3():_0x1c0a97();function _0x40b3b8(){return _0x5913a9;}function _0x11a32f(){_0x5e585b=!_0x5e585b,_0x5e585b?_0x11cad3():_0x1c0a97();}function _0x11cad3(){var _0x5626d0=_0x1abace;_0x523f64[_0x5626d0('0x11da')]('ms-nav-folded'),_0x1895ef[_0x5626d0('0x149a')](_0x5626d0('0x5d3')),_0xa2c494[_0x5626d0('0x192b')](0x0),_0x2d41f7[_0x5626d0('0x92d')](_0x24154e),_0x24154e['on'](_0x5626d0('0x6b9'),function(_0x509224){_0xbb65e9(_0x509224),_0x5913a9=!![];});}function _0xbb65e9(_0x376cc9){var _0x26881e=_0x1abace;angular['isDefined'](_0x376cc9)&&_0x376cc9[_0x26881e('0x1f1c')](),_0x523f64[_0x26881e('0x11da')](_0x26881e('0x203a')),_0x1895ef[_0x26881e('0x149a')](_0x26881e('0x2298')),_0x2d41f7['find'](_0x24154e)[_0x26881e('0x16a2')](),_0x2d41f7[_0x26881e('0x12e2')]()[_0x26881e('0x92d')](_0x17d952),_0x17d952['on'](_0x26881e('0x6b9'),function(_0x59a0ef){_0x7a6e73(_0x59a0ef),_0x5913a9=![];});}function _0x7a6e73(_0x4e2c67){var _0x59cc08=_0x1abace;angular['isDefined'](_0x4e2c67)&&_0x4e2c67[_0x59cc08('0x1f1c')](),_0x1895ef[_0x59cc08('0x149a')](_0x59cc08('0x5d3')),_0xa2c494[_0x59cc08('0x192b')](0x0),_0x523f64[_0x59cc08('0x1fe6')](_0x59cc08('0x203a')),_0x2d41f7[_0x59cc08('0x12e2')]()[_0x59cc08('0x1d2e')](_0x17d952)['remove'](),_0x2d41f7[_0x59cc08('0x92d')](_0x24154e),_0x24154e['on'](_0x59cc08('0x6b9'),function(_0x44cf0c){_0xbb65e9(_0x44cf0c),_0x5913a9=!![];});}function _0x1c0a97(){var _0x184ed4=_0x1abace;_0x523f64[_0x184ed4('0x1fe6')](_0x184ed4('0x11f6')),_0x1895ef[_0x184ed4('0x149a')]('msNav::expandMatchingToggles'),_0xa2c494[_0x184ed4('0xb49')]('mouseenter\x20mouseleave');}_0x1487de[_0x1abace('0xfc5')]=_0x11a32f,_0x1487de[_0x1abace('0x26b1')]=_0xbb65e9,_0x1487de[_0x1abace('0x60')]=_0x7a6e73,_0x1487de[_0x1abace('0x22e8')]=_0x40b3b8,_0x1487de['$on'](_0x1abace('0x1210'),function(){var _0x35d4ab=_0x1abace;_0x24154e[_0x35d4ab('0xb49')]('mouseenter\x20touchstart'),_0x17d952[_0x35d4ab('0xb49')]('mouseenter\x20touchstart'),_0xa2c494[_0x35d4ab('0xb49')](_0x35d4ab('0x1fee'));});}};}function _0xbc6055(){var _0x50c480=_0x3877e3,_0x3cdcfe=this,_0x3e54cb=![],_0x3e7de7=[],_0x43a8a6=[];_0x3cdcfe[_0x50c480('0x1e10')]=_0x1c7c35,_0x3cdcfe['enable']=_0x47d9de,_0x3cdcfe['disable']=_0x303c72,_0x3cdcfe[_0x50c480('0xe6d')]=_0x1fb100,_0x3cdcfe[_0x50c480('0x18ac')]=_0x3450a4,_0x3cdcfe[_0x50c480('0x23d7')]=_0x1f5cd6,_0x3cdcfe[_0x50c480('0x52c')]=_0x2cf574;function _0x1c7c35(){return _0x3e54cb;}function _0x303c72(){_0x3e54cb=!![];}function _0x47d9de(){_0x3e54cb=![];}function _0x1fb100(_0x12ead2,_0x4b0e32){var _0x2dc6a9=_0x50c480;_0x3e7de7[_0x2dc6a9('0x206c')]({'element':_0x12ead2,'scope':_0x4b0e32});}function _0x3450a4(){return _0x43a8a6;}function _0x1f5cd6(_0x532660,_0x1e5dfb){_0x43a8a6['push']({'element':_0x532660,'scope':_0x1e5dfb});}function _0x2cf574(){_0x43a8a6=[];}}function _0x2ae776(_0x91d315,_0x284360,_0x2ce297){var _0x56723c=_0x3877e3;return{'restrict':'E','scope':{},'controller':_0x56723c('0xf09'),'compile':function _0x3351e1(_0x226fea){var _0x299ca0=_0x56723c;return _0x226fea[_0x299ca0('0x11da')](_0x299ca0('0x1e5a')),function _0x406134(_0x544c82){var _0x40680d=_0x299ca0;_0x91d315['$broadcast'](_0x40680d('0x2298'));var _0x2c886c=_0x91d315[_0x40680d('0x1723')](_0x40680d('0xa1'),function(){var _0x2c707a=_0x40680d;_0x91d315[_0x2c707a('0x149a')](_0x2c707a('0x2298')),_0x284360[_0x2c707a('0x19dd')](_0x2c707a('0xa9c'))['then'](function(_0xdb8641){_0xdb8641['close'](),_0x2ce297['isNavFoldedOpen']()&&_0x2ce297['closeFolded']();});});_0x544c82[_0x40680d('0x1723')](_0x40680d('0x1210'),function(){_0x2c886c();});};}};}function _0x13d58a(){return{'restrict':'A','compile':function _0x4932d0(_0x54ff93){return _0x54ff93['addClass']('ms-nav-title'),function _0x5d9f33(){};}};}function _0x2378f4(){return{'restrict':'AE','compile':function _0x2a8d73(_0x341160){var _0x469db4=a0_0x2e7f;return _0x341160[_0x469db4('0x11da')](_0x469db4('0x1262')),function _0x3e30cf(){};}};}function _0x32f7f5(_0x4548a5,_0xeabe5,_0x528c76,_0x1d2ade){return{'restrict':'A','require':'^msNav','scope':!![],'compile':function _0x495f82(_0x3cbd9b,_0x3f73dc){var _0x2eb604=a0_0x2e7f;return _0x3cbd9b[_0x2eb604('0x11da')](_0x2eb604('0xe0')),angular[_0x2eb604('0x1a5d')](_0x3f73dc[_0x2eb604('0x42d')])&&(_0x3f73dc['collapsed']=!![]),_0x3cbd9b[_0x2eb604('0x18a5')](_0x2eb604('0x42d'),_0x3f73dc[_0x2eb604('0x42d')]),function _0x6bc686(_0x4c68cc,_0x3246c9,_0x109363,_0x3e982f){var _0x4cb87f=_0x2eb604,_0x41b7ff={'expanded':_0x4cb87f('0x2047'),'expandAnimation':'expand-animation','collapseAnimation':'collapse-animation'},_0x26e6c8=_0x3246c9[_0x4cb87f('0x1d2e')]('a'),_0x16272c=[],_0x2034fd=/\(.*\)/g;angular[_0x4cb87f('0x1a52')](_0x26e6c8,function(_0x1adc47){var _0x1369f5=_0x4cb87f,_0x315a3c=angular['element'](_0x1adc47)[_0x1369f5('0x18a5')](_0x1369f5('0x933'));if(angular[_0x1369f5('0x1a5d')](_0x315a3c))return;_0x315a3c=_0x315a3c[_0x1369f5('0x16e4')](_0x2034fd,''),_0x16272c['push'](_0x315a3c);}),_0x3e982f[_0x4cb87f('0xe6d')](_0x3246c9,_0x4c68cc),_0x3246c9['children'](_0x4cb87f('0xb10'))['on'](_0x4cb87f('0x997'),_0x5f3601);function _0x5f3601(){var _0x2135a1=_0x4cb87f;if(_0x3e982f['isDisabled']())return;_0x3e982f['disable'](),_0x164dcc()?(_0x3e982f[_0x2135a1('0x52c')](),_0x4c68cc['$emit'](_0x2135a1('0x19c7')),_0x4548a5[_0x2135a1('0x149a')](_0x2135a1('0x2740')),_0x4c68c7()['then'](function(){var _0xf2551c=_0x2135a1;_0x3e982f[_0xf2551c('0x1439')]();})):_0x4c68cc[_0x2135a1('0x149a')](_0x2135a1('0x5d3'));}_0x4c68cc[_0x4cb87f('0x1723')](_0x4cb87f('0x1210'),function(){var _0x2901b2=_0x4cb87f;_0x3246c9[_0x2901b2('0xc9')](_0x2901b2('0xb10'))[_0x2901b2('0xb49')]('click');}),_0x4c68cc['$on'](_0x4cb87f('0x2740'),function(){var _0x4a5746=_0x4cb87f,_0x2fa242=_0x3e982f[_0x4a5746('0x18ac')](),_0xa1c379=![];angular[_0x4a5746('0x1a52')](_0x2fa242,function(_0x1eb04a){angular['equals'](_0x1eb04a['scope'],_0x4c68cc)&&(_0xa1c379=!![]);});if(_0xa1c379)return;_0x59bc9a()[_0x4a5746('0x21ad')](function(){_0x3e982f['enable']();});}),_0x4c68cc[_0x4cb87f('0x1723')](_0x4cb87f('0x5d3'),function(){_0x59bc9a()['then'](function(){_0x3e982f['enable']();});}),_0x4c68cc[_0x4cb87f('0x1723')](_0x4cb87f('0x2298'),function(){var _0x29a69d=_0x4cb87f,_0x5c1bcd=_0x1d2ade[_0x29a69d('0x1ccb')]['name'],_0x4d827a=![];angular[_0x29a69d('0x1a52')](_0x16272c,function(_0x2ee3c){_0x5c1bcd===_0x2ee3c&&(_0x4d827a=!![]);}),_0x4d827a?_0x4c68c7():_0x59bc9a();}),_0x4c68cc[_0x4cb87f('0x1723')](_0x4cb87f('0x19c7'),function(){var _0x4f95ae=_0x4cb87f;_0x3e982f[_0x4f95ae('0x23d7')](_0x3246c9,_0x4c68cc);});function _0x164dcc(){var _0x4b46e3=_0x4cb87f;return _0x3246c9[_0x4b46e3('0x18a5')]('collapsed')===_0x4b46e3('0x19bd');}function _0x534580(){return!_0x164dcc();}function _0x4c68c7(){var _0x4b4474=_0x4cb87f,_0x24ce4f=_0xeabe5[_0x4b4474('0xca9')]();if(_0x534580())return _0x24ce4f[_0x4b4474('0x37a')]({'error':!![]}),_0x24ce4f[_0x4b4474('0x71b')];_0x3246c9[_0x4b4474('0x18a5')](_0x4b4474('0x42d'),![]);var _0x27eba1=angular[_0x4b4474('0x1676')](_0x3246c9[_0x4b4474('0x1d2e')]('ms-nav-toggle-items')[0x0]);_0x27eba1[_0x4b4474('0x470')]({'position':_0x4b4474('0x2145'),'visibility':'hidden','display':_0x4b4474('0x1930'),'height':'auto'});var _0x2ab41d=_0x27eba1[0x0][_0x4b4474('0x3b2')];return _0x27eba1[_0x4b4474('0x470')]({'position':'','visibility':'','display':'','height':''}),_0x4c68cc[_0x4b4474('0x6da')](function(){var _0x4dc157=_0x4b4474;_0x528c76['animate'](_0x27eba1,{'display':'block','height':_0x4dc157('0x10dd')},{'height':_0x2ab41d+'px'},_0x41b7ff[_0x4dc157('0x1509')])[_0x4dc157('0x21ad')](function(){var _0x1d10e0=_0x4dc157;_0x27eba1[_0x1d10e0('0x11da')](_0x41b7ff[_0x1d10e0('0x2047')]),_0x27eba1[_0x1d10e0('0x470')]({'height':''}),_0x24ce4f['resolve']({'success':!![]});});}),_0x24ce4f[_0x4b4474('0x71b')];}function _0x59bc9a(){var _0x2b1239=_0x4cb87f,_0x2453bb=_0xeabe5[_0x2b1239('0xca9')]();if(_0x164dcc())return _0x2453bb['reject']({'error':!![]}),_0x2453bb[_0x2b1239('0x71b')];_0x3246c9[_0x2b1239('0x18a5')](_0x2b1239('0x42d'),!![]);var _0x4c28a6=angular[_0x2b1239('0x1676')](_0x3246c9[_0x2b1239('0x1d2e')](_0x2b1239('0x981'))[0x0]),_0x1be76c=_0x4c28a6[0x0]['offsetHeight'];return _0x4c68cc['$evalAsync'](function(){var _0x270725=_0x2b1239;_0x528c76[_0x270725('0x446')](_0x4c28a6,{'height':_0x1be76c+'px'},{'height':_0x270725('0x10dd')},_0x41b7ff['collapseAnimation'])['then'](function(){var _0x2b8ad7=_0x270725;_0x4c28a6['removeClass'](_0x41b7ff[_0x2b8ad7('0x2047')]),_0x4c28a6[_0x2b8ad7('0x470')]({'display':'','height':''}),_0x2453bb[_0x2b8ad7('0x8ac')]({'success':!![]});});}),_0x2453bb[_0x2b1239('0x71b')];}};}};}const _0x3dcf9b=_0x398308['p']+'src/js/modules/core/directives/ms-navigation/templates/horizontal.html/horizontal-[chunkhash].html',_0x58326b=_0x398308['p']+'src/js/modules/core/directives/ms-navigation/templates/vertical.html/vertical-[chunkhash].html';_0x1e8627[_0x3877e3('0x1a81')]=[_0x3877e3('0x2599')],_0x22da3d[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x88f'),_0x3877e3('0x25ff'),'$state',_0x3877e3('0x48e')],_0x307325[_0x3877e3('0x1a81')]=[_0x3877e3('0x48e')],_0x421597[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$element',_0x3877e3('0x25ff'),_0x3877e3('0x61f'),_0x3877e3('0xa9f'),_0x3877e3('0x48e')],_0x414aec[_0x3877e3('0x1a81')]=['$rootScope','$timeout',_0x3877e3('0x2828'),'msNavigationService'],_0x18171b[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x48e')];function _0x4afcf2(){var _0x1b4cb0=_0x3877e3,_0x2f14bd=angular['injector'](['ng'])[_0x1b4cb0('0x595')](_0x1b4cb0('0x266b')),_0x554aa9=[],_0xdd8c01=this;_0xdd8c01[_0x1b4cb0('0x1c97')]=_0x473510,_0xdd8c01[_0x1b4cb0('0x1c8')]=_0x3b94ed,_0xdd8c01['sortByWeight']=_0x3a29ef;function _0x473510(_0x579950,_0x118141){var _0x114e81=_0x1b4cb0;if(!angular[_0x114e81('0xbc')](_0x579950)){_0x2f14bd['error'](_0x114e81('0x1654'));return;}var _0x1262b=_0x579950[_0x114e81('0x1af5')]('.'),_0x28c94a=_0x1262b[_0x1262b[_0x114e81('0x577')]-0x1],_0x409768=_0x4726dc(_0x1262b),_0x52b2ec=![];for(var _0xa4019=0x0;_0xa4019<_0x409768[_0x114e81('0x577')];_0xa4019++){if(_0x409768[_0xa4019][_0x114e81('0xc57')]===_0x28c94a){_0x52b2ec=_0x409768[_0xa4019];break;}}_0x52b2ec?(angular[_0x114e81('0x1ad')](_0x52b2ec,_0x118141),_0x52b2ec[_0x114e81('0x1ff0')]=_0x38b13e(_0x52b2ec)):(_0x118141[_0x114e81('0xc9')]=[],(angular['isUndefined'](_0x118141[_0x114e81('0x875')])||!angular['isNumber'](_0x118141[_0x114e81('0x875')]))&&(_0x118141[_0x114e81('0x875')]=0x1),_0x118141['_id']=_0x28c94a,_0x118141[_0x114e81('0xc55')]=_0x579950,_0x118141['uisref']=_0x38b13e(_0x118141),_0x409768[_0x114e81('0x206c')](_0x118141));}function _0x3b94ed(_0x1b59ff){var _0x5883b5=_0x1b4cb0;if(!angular[_0x5883b5('0xbc')](_0x1b59ff)){_0x2f14bd[_0x5883b5('0x2092')](_0x5883b5('0x1654'));return;}var _0x4ebe01=_0x554aa9,_0x1ec7c5=_0x1b59ff[_0x5883b5('0x1af5')]('.');for(var _0x3c4eac=0x0;_0x3c4eac<_0x1ec7c5[_0x5883b5('0x577')];_0x3c4eac++){var _0x3813af=_0x1ec7c5[_0x3c4eac];for(var _0x3b61ed=0x0;_0x3b61ed<_0x4ebe01[_0x5883b5('0x577')];_0x3b61ed++){if(_0x4ebe01[_0x3b61ed]['_id']===_0x3813af){if(_0x4ebe01[_0x3b61ed][_0x5883b5('0xc55')]===_0x1b59ff)return _0x4ebe01['splice'](_0x3b61ed,0x1),!![];_0x4ebe01=_0x4ebe01[_0x3b61ed][_0x5883b5('0xc9')];break;}}}return![];}function _0x3a29ef(_0x515f7f){var _0x5781c1=_0x1b4cb0;!_0x515f7f&&(_0x515f7f=_0x554aa9,_0x515f7f[_0x5781c1('0x1944')](_0x2a52b9));for(var _0x54380e=0x0;_0x54380e<_0x515f7f['length'];_0x54380e++){var _0x43e955=_0x515f7f[_0x54380e][_0x5781c1('0xc9')];_0x43e955[_0x5781c1('0x577')]>0x1&&_0x43e955[_0x5781c1('0x1944')](_0x2a52b9),_0x43e955[_0x5781c1('0x577')]>0x0&&_0x3a29ef(_0x43e955);}}function _0x4726dc(_0xb7bd0c){var _0x53b0d3=_0x1b4cb0,_0x48ef53=_0x554aa9;if(_0xb7bd0c[_0x53b0d3('0x577')]===0x1)return _0x48ef53;_0xb7bd0c[_0x53b0d3('0x4ee')]();for(var _0x36adab=0x0;_0x36adab<_0xb7bd0c[_0x53b0d3('0x577')];_0x36adab++){var _0x48763d=_0xb7bd0c[_0x36adab],_0x39db88=!![];for(var _0x4a700c=0x0;_0x4a700c<_0x48ef53[_0x53b0d3('0x577')];_0x4a700c++){if(_0x48ef53[_0x4a700c][_0x53b0d3('0xc57')]===_0x48763d){_0x48ef53=_0x48ef53[_0x4a700c][_0x53b0d3('0xc9')],_0x39db88=![];break;}}if(_0x39db88){var _0x1d8999={'_id':_0x48763d,'_path':_0xb7bd0c[_0x53b0d3('0x136')]('.'),'title':_0x48763d,'weight':0x1,'children':[]};_0x48ef53[_0x53b0d3('0x206c')](_0x1d8999),_0x48ef53=_0x1d8999[_0x53b0d3('0xc9')];}}return _0x48ef53;}function _0x2a52b9(_0x499005,_0xc2dffe){var _0x12f21e=_0x1b4cb0;return parseInt(_0x499005[_0x12f21e('0x875')])-parseInt(_0xc2dffe[_0x12f21e('0x875')]);}function _0x38b13e(_0x4b5be7){var _0x1971ed=_0x1b4cb0,_0x12eef2='';return angular[_0x1971ed('0x1465')](_0x4b5be7['state'])&&(_0x12eef2=_0x4b5be7[_0x1971ed('0x27e')],angular[_0x1971ed('0x1465')](_0x4b5be7[_0x1971ed('0x15c2')])&&angular[_0x1971ed('0x267d')](_0x4b5be7[_0x1971ed('0x15c2')])&&(_0x12eef2=_0x12eef2+'('+angular[_0x1971ed('0x20c6')](_0x4b5be7['stateParams'])+')')),_0x12eef2;}this[_0x1b4cb0('0xc5d')]=function(){var _0x266b9a=null,_0x183bf6=null,_0x1c951a=null,_0x46c740=null,_0x1633d1={'saveItem':_0x473510,'deleteItem':_0x3b94ed,'sort':_0x3a29ef,'clearNavigation':_0x22b123,'setActiveItem':_0x1b4ecd,'getActiveItem':_0x2e9974,'getNavigation':_0xf8fe4,'getFlatNavigation':_0x454ea7,'setNavigationScope':_0xedbb73,'setFolded':_0x1412c1,'getFolded':_0x271a17,'setFoldedOpen':_0x182943,'getFoldedOpen':_0x106b58,'toggleFolded':_0x45c2e6};return _0x1633d1;function _0x22b123(){var _0x3c6fe7=a0_0x2e7f;_0x554aa9=[],_0x183bf6&&(_0x183bf6['vm'][_0x3c6fe7('0xa9c')]=_0x554aa9);}function _0x1b4ecd(_0xf2370d,_0x2293cc){_0x266b9a={'node':_0xf2370d,'scope':_0x2293cc};}function _0x2e9974(){return _0x266b9a;}function _0xf8fe4(_0x1cf77b){var _0x387dd7=a0_0x2e7f;if(_0x1cf77b){for(var _0x57c5a8=0x0;_0x57c5a8<_0x554aa9[_0x387dd7('0x577')];_0x57c5a8++){if(_0x554aa9[_0x57c5a8][_0x387dd7('0xc57')]===_0x1cf77b)return[_0x554aa9[_0x57c5a8]];}return null;}return _0x554aa9;}function _0x454ea7(_0x2cbdd6){var _0x4be40e=_0xf8fe4(_0x2cbdd6);return _0x2977dd(_0x4be40e);}function _0xedbb73(_0x2cad9b){_0x183bf6=_0x2cad9b;}function _0x1412c1(_0x45e2c6){_0x1c951a=_0x45e2c6;}function _0x271a17(){return _0x1c951a;}function _0x182943(_0x5ce752){_0x46c740=_0x5ce752;}function _0x106b58(){return _0x46c740;}function _0x45c2e6(){var _0x1b00d0=a0_0x2e7f;_0x183bf6[_0x1b00d0('0x86')]();}function _0x2977dd(_0xb1cc64){var _0xe13e43=a0_0x2e7f,_0x623d3e=[];for(var _0x493b81=0x0;_0x493b81<_0xb1cc64[_0xe13e43('0x577')];_0x493b81++){var _0x1d70f3=angular[_0xe13e43('0xd75')](_0xb1cc64[_0x493b81]);_0x1d70f3[_0xe13e43('0xc9')]=[],_0x623d3e['push'](_0x1d70f3),_0xb1cc64[_0x493b81][_0xe13e43('0xc9')][_0xe13e43('0x577')]>0x0&&(_0x623d3e=_0x623d3e[_0xe13e43('0x1877')](_0x2977dd(_0xb1cc64[_0x493b81]['children'])));}return _0x623d3e;}};}function _0x18171b(_0x82dacd,_0x76577f){var _0x3dedca=_0x3877e3,_0xa56943=this;_0x82dacd[_0x3dedca('0x1da0')]?_0xa56943[_0x3dedca('0xa9c')]=_0x76577f[_0x3dedca('0xca3')](_0x82dacd[_0x3dedca('0x1da0')]):_0xa56943[_0x3dedca('0xa9c')]=_0x76577f[_0x3dedca('0xca3')]();_0xa56943[_0x3dedca('0x634')]=_0x437bca,_0xe78244();function _0xe78244(){_0x76577f['sort']();}function _0x437bca(){var _0x4f2b9b=_0x3dedca;angular[_0x4f2b9b('0x1676')](_0x4f2b9b('0x2452'))[_0x4f2b9b('0x2806')](_0x4f2b9b('0x21a1'));}}function _0x414aec(_0x3a8174,_0x2bb0e4,_0x4f3c62,_0x1586d0){return{'restrict':'E','scope':{'folded':'=','root':'@'},'controller':'MsNavigationController\x20as\x20vm','templateUrl':_0x58326b,'transclude':!![],'compile':function _0x449387(_0x5c26bb){var _0x47836d=a0_0x2e7f;return _0x5c26bb[_0x47836d('0x11da')](_0x47836d('0x259c')),function _0xb0e073(_0x27a4f5,_0x73c341){var _0x4893af=_0x47836d,_0x94d074=angular[_0x4893af('0x1676')](_0x4893af('0x2452')),_0x417b80=angular['element'](_0x4893af('0x94a')),_0x57565f=angular[_0x4893af('0x1676')](_0x4893af('0xe2d')),_0x561c36=_0x4f3c62(_0x4893af('0xa9c'));_0x1586d0[_0x4893af('0x134a')](_0x27a4f5),_0x33d192();function _0x33d192(){var _0x1a556d=_0x4893af;_0x1586d0[_0x1a556d('0x1275')]()===null&&_0x1586d0[_0x1a556d('0xe8e')](_0x27a4f5['folded']),_0x1586d0[_0x1a556d('0x1275')]()&&(_0x2bb0e4(function(){var _0x43aa21=_0x1a556d;_0x3a8174['$broadcast'](_0x43aa21('0x16e3'));}),_0x94d074['addClass'](_0x1a556d('0x132b')),_0x2a3e82());}_0x27a4f5[_0x4893af('0x10e8')](function(){return _0x561c36['isLockedOpen']();},function(_0x216970,_0x2dfb02){var _0x35bc2c=_0x4893af;if(angular[_0x35bc2c('0x1a5d')](_0x216970)||angular[_0x35bc2c('0x816')](_0x216970,_0x2dfb02))return;var _0x541e1a=_0x1586d0[_0x35bc2c('0x1275')]();if(_0x541e1a){if(_0x216970)_0x3a8174[_0x35bc2c('0x149a')](_0x35bc2c('0x16e3'));else{var _0x572d01=_0x1586d0[_0x35bc2c('0x103f')]();_0x572d01&&_0x572d01[_0x35bc2c('0x18ea')][_0x35bc2c('0x2389')](_0x35bc2c('0xc04'));}}}),_0x27a4f5['$watch'](_0x4893af('0xe11'),function(_0x37490f,_0x4c546a){var _0x5efe04=_0x4893af;if(angular[_0x5efe04('0x1a5d')](_0x37490f)||angular[_0x5efe04('0x816')](_0x37490f,_0x4c546a))return;_0x3bb453(_0x37490f);});function _0x3bb453(_0xfa89d2){var _0x539397=_0x4893af;_0x1586d0[_0x539397('0xe8e')](_0xfa89d2);if(_0xfa89d2)_0x3a8174['$broadcast'](_0x539397('0x16e3')),_0x94d074[_0x539397('0x11da')](_0x539397('0x132b')),_0x2a3e82();else{var _0x829e63=_0x1586d0[_0x539397('0x103f')]();_0x829e63&&_0x829e63['scope'][_0x539397('0x2389')](_0x539397('0xc04')),_0x94d074['removeClass'](_0x539397('0x22b')),_0x2512da();}}function _0x2a3e82(){var _0x3154fc=_0x4893af;_0x73c341[_0x3154fc('0x12e2')]()['append'](_0x417b80),_0x2bb0e4(function(){_0x417b80['on']('mouseenter\x20touchstart',_0x55e3a8);});}function _0x36f024(){var _0x295c17=_0x4893af;_0x94d074['find']('#main')[_0x295c17('0x92d')](_0x57565f),_0x57565f['on'](_0x295c17('0x6b9'),_0xa8aa65);}function _0x2512da(){var _0x9a8799=_0x4893af;_0x57565f[_0x9a8799('0x16a2')]();}function _0x55e3a8(_0xc4e031){var _0x3dbc4c=_0x4893af;_0xc4e031&&_0xc4e031[_0x3dbc4c('0x1f1c')]();_0x1586d0[_0x3dbc4c('0x153a')](!![]);var _0x3b2af3=_0x1586d0[_0x3dbc4c('0x103f')]();_0x3b2af3&&_0x3b2af3[_0x3dbc4c('0x18ea')][_0x3dbc4c('0x2389')](_0x3dbc4c('0xc04')),_0x94d074[_0x3dbc4c('0x11da')](_0x3dbc4c('0x193a')),_0x417b80['remove'](),_0x36f024();}function _0xa8aa65(_0x51c094){var _0x555a8d=_0x4893af;_0x51c094&&_0x51c094[_0x555a8d('0x1f1c')](),_0x1586d0['setFoldedOpen'](![]),_0x3a8174[_0x555a8d('0x149a')](_0x555a8d('0x16e3')),_0x94d074['removeClass'](_0x555a8d('0x193a')),_0x57565f['remove'](),_0x2a3e82();}_0x27a4f5[_0x4893af('0x86')]=function(){var _0x343a99=_0x4893af,_0x44d6cd=_0x1586d0[_0x343a99('0x1275')]();_0x3bb453(!_0x44d6cd);},_0x27a4f5[_0x4893af('0x1723')](_0x4893af('0x166b'),function(){_0x561c36['close']();}),_0x27a4f5[_0x4893af('0x1723')](_0x4893af('0x1210'),function(){var _0x5e0991=_0x4893af;_0x57565f[_0x5e0991('0xb49')](_0x5e0991('0x6b9')),_0x417b80['off']('mouseenter\x20touchstart');});};}};}function _0x421597(_0x34cd4b,_0x4dd81c,_0x305d1e,_0x7a2cf2,_0x5338ff,_0x5d5b2f){var _0x404007=_0x3877e3,_0x1348e9=this;_0x1348e9[_0x404007('0x1676')]=_0x4dd81c,_0x1348e9[_0x404007('0x36f')]=_0x34cd4b['node'],_0x1348e9[_0x404007('0x11c4')]=undefined,_0x1348e9[_0x404007('0x42d')]=undefined,_0x1348e9[_0x404007('0x180')]=undefined,_0x1348e9['group']=undefined,_0x1348e9[_0x404007('0x1d6a')]='animate-height',_0x1348e9[_0x404007('0x1dab')]=_0xd46d46,_0x1348e9[_0x404007('0x2773')]=_0x5916b0,_0x1348e9['expand']=_0x11b526,_0x1348e9[_0x404007('0x9b2')]=_0x4ae7e3,_0x1348e9[_0x404007('0x281f')]=_0x30ee76,_0x1b88cf();function _0x1b88cf(){var _0x4ff716=_0x404007;_0x1348e9[_0x4ff716('0x11c4')]=_0x1348e9['node'][_0x4ff716('0xc9')][_0x4ff716('0x577')]>0x0,_0x1348e9[_0x4ff716('0x89e')]=!!(angular[_0x4ff716('0x1465')](_0x1348e9[_0x4ff716('0x36f')][_0x4ff716('0x89e')])&&_0x1348e9['node']['group']===!![]);!_0x1348e9['hasChildren']||_0x1348e9[_0x4ff716('0x89e')]?_0x1348e9['collapsable']=![]:_0x1348e9[_0x4ff716('0x180')]=!!(angular[_0x4ff716('0x1a5d')](_0x1348e9['node'][_0x4ff716('0x180')])||typeof _0x1348e9[_0x4ff716('0x36f')][_0x4ff716('0x180')]!==_0x4ff716('0x2380')||_0x1348e9['node'][_0x4ff716('0x180')]===!![]);!_0x1348e9[_0x4ff716('0x180')]?_0x1348e9[_0x4ff716('0x42d')]=![]:_0x1348e9[_0x4ff716('0x42d')]=!!(angular[_0x4ff716('0x1a5d')](_0x1348e9[_0x4ff716('0x36f')][_0x4ff716('0x42d')])||typeof _0x1348e9[_0x4ff716('0x36f')]['collapsed']!==_0x4ff716('0x2380')||_0x1348e9['node']['collapsed']===!![]);if(_0x1348e9[_0x4ff716('0x36f')][_0x4ff716('0x27e')]===_0x5338ff[_0x4ff716('0x1ccb')][_0x4ff716('0x19fe')]||_0x5338ff[_0x4ff716('0xb34')](_0x1348e9[_0x4ff716('0x36f')][_0x4ff716('0x27e')])){if(angular[_0x4ff716('0x1465')](_0x1348e9[_0x4ff716('0x36f')]['stateParams'])&&angular[_0x4ff716('0x1465')](_0x5338ff[_0x4ff716('0x171b')])&&!angular[_0x4ff716('0x816')](_0x1348e9[_0x4ff716('0x36f')][_0x4ff716('0x15c2')],_0x5338ff['params']))return;_0x34cd4b['$emit'](_0x4ff716('0xc04')),_0x5d5b2f[_0x4ff716('0x6eb')](_0x1348e9[_0x4ff716('0x36f')],_0x34cd4b);}_0x34cd4b[_0x4ff716('0x1723')](_0x4ff716('0xc04'),function(){var _0x2b3c76=_0x4ff716;_0x1348e9[_0x2b3c76('0x180')]&&_0x1348e9[_0x2b3c76('0x42d')]&&_0x34cd4b[_0x2b3c76('0x6da')](function(){var _0x26059d=_0x2b3c76;_0x1348e9[_0x26059d('0x42d')]=![];});}),_0x34cd4b['$on'](_0x4ff716('0x16e3'),function(_0x521845,_0x296d54){var _0x5f0ab3=_0x4ff716;if(_0x1348e9[_0x5f0ab3('0x42d')]||!_0x1348e9[_0x5f0ab3('0x180')])return;if(angular[_0x5f0ab3('0x1a5d')](_0x296d54))_0x1348e9[_0x5f0ab3('0x2773')]();else{var _0x5eec6c=_0x296d54[_0x5f0ab3('0x1af5')]('.'),_0x5ae921=[],_0x5b64c0=_0x5d5b2f[_0x5f0ab3('0x103f')]();_0x5b64c0&&(_0x5ae921=_0x5b64c0['node']['_path'][_0x5f0ab3('0x1af5')]('.'));if(_0x5eec6c[_0x5f0ab3('0x2004')](_0x1348e9['node'][_0x5f0ab3('0xc57')])>-0x1)return;if(_0x5ae921['indexOf'](_0x1348e9['node'][_0x5f0ab3('0xc57')])>-0x1)return;_0x1348e9[_0x5f0ab3('0x2773')]();}}),_0x34cd4b[_0x4ff716('0x1723')](_0x4ff716('0xa1'),function(){var _0xdcdd13=_0x4ff716;if(_0x1348e9[_0xdcdd13('0x36f')][_0xdcdd13('0x27e')]===_0x5338ff[_0xdcdd13('0x1ccb')]['name']){if(angular[_0xdcdd13('0x1465')](_0x1348e9['node'][_0xdcdd13('0x15c2')])&&angular[_0xdcdd13('0x1465')](_0x5338ff[_0xdcdd13('0x171b')])&&!angular[_0xdcdd13('0x816')](_0x1348e9[_0xdcdd13('0x36f')][_0xdcdd13('0x15c2')],_0x5338ff[_0xdcdd13('0x171b')]))return;_0x5d5b2f[_0xdcdd13('0x6eb')](_0x1348e9['node'],_0x34cd4b),_0x305d1e[_0xdcdd13('0x149a')](_0xdcdd13('0x16e3'),_0x1348e9[_0xdcdd13('0x36f')]['_path']);}if(_0x5338ff['includes'](_0x1348e9[_0xdcdd13('0x36f')][_0xdcdd13('0x27e')])){if(angular[_0xdcdd13('0x1465')](_0x1348e9[_0xdcdd13('0x36f')][_0xdcdd13('0x15c2')])&&angular[_0xdcdd13('0x1465')](_0x5338ff['params'])&&!angular[_0xdcdd13('0x816')](_0x1348e9[_0xdcdd13('0x36f')][_0xdcdd13('0x15c2')],_0x5338ff[_0xdcdd13('0x171b')]))return;_0x34cd4b[_0xdcdd13('0x2389')](_0xdcdd13('0xc04'));}});}function _0xd46d46(){var _0x1533ad=_0x404007;_0x1348e9[_0x1533ad('0x42d')]?_0x1348e9['expand']():_0x1348e9[_0x1533ad('0x2773')]();}function _0x5916b0(){var _0x27b94e=_0x404007,_0x47af46=_0x1348e9[_0x27b94e('0x1676')][_0x27b94e('0xc9')]('ul'),_0x54ef62=_0x47af46[0x0][_0x27b94e('0x3b2')];_0x34cd4b[_0x27b94e('0x6da')](function(){var _0x54a71b=_0x27b94e;_0x1348e9['collapsed']=!![],_0x1348e9['element'][_0x54a71b('0x11da')](_0x54a71b('0xae3')),_0x7a2cf2[_0x54a71b('0x446')](_0x47af46,{'display':_0x54a71b('0x1930'),'height':_0x54ef62+'px'},{'height':_0x54a71b('0x10dd')},_0x1348e9[_0x54a71b('0x1d6a')])[_0x54a71b('0x21ad')](function(){var _0x5a875e=_0x54a71b;_0x47af46[_0x5a875e('0x470')]({'display':'','height':''}),_0x1348e9[_0x5a875e('0x1676')][_0x5a875e('0x1fe6')](_0x5a875e('0xae3'));}),_0x34cd4b[_0x54a71b('0x149a')](_0x54a71b('0x16e3'));});}function _0x11b526(){var _0x3ddd11=_0x404007,_0x4f2727=_0x1348e9[_0x3ddd11('0x1676')][_0x3ddd11('0xc9')]('ul');_0x4f2727['css']({'position':'absolute','visibility':_0x3ddd11('0x22d6'),'display':_0x3ddd11('0x1930'),'height':_0x3ddd11('0x21ac')});var _0x42fd90=_0x4f2727[0x0][_0x3ddd11('0x3b2')];_0x4f2727[_0x3ddd11('0x470')]({'position':'','visibility':'','display':'','height':''}),_0x34cd4b[_0x3ddd11('0x6da')](function(){var _0x5c767b=_0x3ddd11;_0x1348e9[_0x5c767b('0x42d')]=![],_0x1348e9[_0x5c767b('0x1676')][_0x5c767b('0x11da')]('expanding'),_0x7a2cf2['animate'](_0x4f2727,{'display':_0x5c767b('0x1930'),'height':_0x5c767b('0x10dd')},{'height':_0x42fd90+'px'},_0x1348e9['animateHeightClass'])[_0x5c767b('0x21ad')](function(){var _0x1cbf67=_0x5c767b;_0x4f2727[_0x1cbf67('0x470')]({'height':''}),_0x1348e9[_0x1cbf67('0x1676')][_0x1cbf67('0x1fe6')]('expanding');}),_0x305d1e['$broadcast'](_0x5c767b('0x16e3'),_0x1348e9[_0x5c767b('0x36f')][_0x5c767b('0xc55')]);});}function _0x4ae7e3(){var _0xf61d0c=_0x404007;return _0x1348e9[_0xf61d0c('0x36f')][_0xf61d0c('0x18a8')];}function _0x30ee76(){var _0x3bbf37=_0x404007;if(angular[_0x3bbf37('0x1465')](_0x1348e9[_0x3bbf37('0x36f')]['hidden'])&&angular[_0x3bbf37('0x272f')](_0x1348e9[_0x3bbf37('0x36f')]['hidden']))return _0x1348e9['node'][_0x3bbf37('0x22d6')]();return![];}}function _0x335c85(){return{'restrict':'A','bindToController':{'node':'=msNavigationNode'},'controller':'MsNavigationNodeController\x20as\x20vm','compile':function _0x4dfd1a(_0x290f92){var _0xcf7723=a0_0x2e7f;return _0x290f92[_0xcf7723('0x11da')](_0xcf7723('0x2191')),function _0x609c21(_0x41ff1a,_0x2869e9,_0x569410,_0x25d531){var _0x306a12=_0xcf7723;_0x2869e9[_0x306a12('0x11da')](_0x25d531[_0x306a12('0x9b2')]()),_0x25d531[_0x306a12('0x89e')]&&_0x2869e9['addClass'](_0x306a12('0x89e'));};}};}function _0x5cf93c(){var _0xf270f1=_0x3877e3;return{'restrict':'A','require':_0xf270f1('0x1c98'),'compile':function _0x2b943f(_0x5a83f3){var _0x23bb24=_0xf270f1;return _0x5a83f3[_0x23bb24('0x11da')]('ms-navigation-item'),function _0x241b01(_0x5d32ff,_0x3eeea4,_0x22383e,_0x10fea4){var _0x471b15=_0x23bb24;_0x10fea4['collapsable']&&_0x3eeea4['on'](_0x471b15('0x997'),_0x10fea4[_0x471b15('0x1dab')]),_0x5d32ff[_0x471b15('0x1723')](_0x471b15('0x1210'),function(){var _0x2a38ac=_0x471b15;_0x3eeea4[_0x2a38ac('0xb49')]('click');});};}};}function _0x307325(_0x5778dc){var _0x5ad9c7=_0x3877e3;return{'restrict':'E','scope':{'root':'@'},'controller':_0x5ad9c7('0x210e'),'templateUrl':_0x3dcf9b,'transclude':!![],'compile':function _0x43849f(_0x2f4692){var _0x643f96=_0x5ad9c7;return _0x2f4692[_0x643f96('0x11da')](_0x643f96('0x1fae')),function _0x5e6980(_0xbfdd19){var _0x39245e=_0x643f96;_0x5778dc[_0x39245e('0x134a')](_0xbfdd19);};}};}function _0x22da3d(_0x281052,_0x4ac63a,_0x1f49ef,_0x35bf12,_0x3c67ff){var _0x2a524c=_0x3877e3,_0x1b76ce=this;_0x1b76ce[_0x2a524c('0x1676')]=_0x4ac63a,_0x1b76ce['node']=_0x281052[_0x2a524c('0x36f')],_0x1b76ce['hasChildren']=undefined,_0x1b76ce[_0x2a524c('0x89e')]=undefined,_0x1b76ce[_0x2a524c('0x9b2')]=_0x46ebba,_0x43ea58();function _0x43ea58(){var _0x4de785=_0x2a524c;_0x1b76ce[_0x4de785('0x3be')]=![],_0x1b76ce[_0x4de785('0x11c4')]=_0x1b76ce['node']['children'][_0x4de785('0x577')]>0x0,_0x1b76ce['group']=!!(angular['isDefined'](_0x1b76ce['node'][_0x4de785('0x89e')])&&_0x1b76ce['node'][_0x4de785('0x89e')]===!![]);if(_0x1b76ce[_0x4de785('0x36f')][_0x4de785('0x27e')]===_0x35bf12['current'][_0x4de785('0x19fe')]||_0x35bf12[_0x4de785('0xb34')](_0x1b76ce[_0x4de785('0x36f')]['state'])){if(angular[_0x4de785('0x1465')](_0x1b76ce[_0x4de785('0x36f')][_0x4de785('0x15c2')])&&angular[_0x4de785('0x1465')](_0x35bf12[_0x4de785('0x171b')])&&!angular[_0x4de785('0x816')](_0x1b76ce[_0x4de785('0x36f')][_0x4de785('0x15c2')],_0x35bf12[_0x4de785('0x171b')]))return;_0x281052['$emit'](_0x4de785('0xc04')),_0x3c67ff[_0x4de785('0x6eb')](_0x1b76ce[_0x4de785('0x36f')],_0x281052);}_0x281052[_0x4de785('0x1723')]('msNavigation::stateMatched',function(){var _0x3439ba=_0x4de785;_0x1b76ce['hasChildren']&&_0x281052[_0x3439ba('0x6da')](function(){var _0xc94a5d=_0x3439ba;_0x1b76ce[_0xc94a5d('0x3be')]=!![];});}),_0x281052['$on'](_0x4de785('0x414'),function(){var _0x395e66=_0x4de785;if(!_0x1b76ce['hasChildren'])return;var _0x2f48c3=[],_0x25a245=_0x3c67ff[_0x395e66('0x103f')]();_0x25a245&&(_0x2f48c3=_0x25a245[_0x395e66('0x36f')][_0x395e66('0xc55')][_0x395e66('0x1af5')]('.')),_0x2f48c3[_0x395e66('0x2004')](_0x1b76ce[_0x395e66('0x36f')][_0x395e66('0xc57')])>-0x1?_0x281052[_0x395e66('0x6da')](function(){var _0x2fb32e=_0x395e66;_0x1b76ce[_0x2fb32e('0x3be')]=!![];}):_0x281052['$evalAsync'](function(){var _0x5eeeb6=_0x395e66;_0x1b76ce[_0x5eeeb6('0x3be')]=![];});}),_0x281052['$on'](_0x4de785('0xa1'),function(){var _0x1c4b51=_0x4de785;if(_0x1b76ce[_0x1c4b51('0x36f')]['state']===_0x35bf12[_0x1c4b51('0x1ccb')][_0x1c4b51('0x19fe')]||_0x35bf12[_0x1c4b51('0xb34')](_0x1b76ce[_0x1c4b51('0x36f')][_0x1c4b51('0x27e')])){if(angular[_0x1c4b51('0x1465')](_0x1b76ce[_0x1c4b51('0x36f')]['stateParams'])&&angular[_0x1c4b51('0x1465')](_0x35bf12[_0x1c4b51('0x171b')])&&!angular['equals'](_0x1b76ce['node'][_0x1c4b51('0x15c2')],_0x35bf12[_0x1c4b51('0x171b')]))return;_0x3c67ff['setActiveItem'](_0x1b76ce['node'],_0x281052),_0x1f49ef[_0x1c4b51('0x149a')]('msNavigation::clearActive');}});}function _0x46ebba(){var _0x1885ee=_0x2a524c;return _0x1b76ce[_0x1885ee('0x36f')][_0x1885ee('0x18a8')];}}function _0x1d2a99(){var _0x190132=_0x3877e3;return{'restrict':'A','bindToController':{'node':_0x190132('0x168a')},'controller':'MsNavigationHorizontalNodeController\x20as\x20vm','compile':function _0x355cfa(_0x42daa2){var _0x2a6b28=_0x190132;return _0x42daa2[_0x2a6b28('0x11da')](_0x2a6b28('0x248c')),function _0x374087(_0x342ed2,_0x53fcce,_0x1eeaaf,_0x3002cc){var _0x4eae45=_0x2a6b28;_0x53fcce[_0x4eae45('0x11da')](_0x3002cc[_0x4eae45('0x9b2')]()),_0x3002cc[_0x4eae45('0x89e')]&&_0x53fcce[_0x4eae45('0x11da')](_0x4eae45('0x89e'));};}};}function _0x1e8627(_0x4814a0){var _0x4611bc=_0x3877e3;return{'restrict':'A','require':_0x4611bc('0x79d'),'compile':function _0x3f7385(_0x48f22e){var _0x5720b1=_0x4611bc;return _0x48f22e[_0x5720b1('0x11da')](_0x5720b1('0x2462')),function _0x2fe6b2(_0x581154,_0x7cda43,_0x14918e,_0x6929e0){var _0x567717=_0x5720b1;_0x7cda43['on']('click',_0x2901c6);function _0x2901c6(){var _0x440668=a0_0x2e7f;if(!_0x6929e0[_0x440668('0x11c4')]||_0x4814a0(_0x440668('0x2453')))return;_0x7cda43['toggleClass'](_0x440668('0x2047'));}_0x581154[_0x567717('0x1723')]('$destroy',function(){var _0x424b28=_0x567717;_0x7cda43[_0x424b28('0xb49')](_0x424b28('0x997'));});};}};}const _0x37cdd7=_0x398308['p']+_0x3877e3('0x22a0'),_0xf687ac=_0x398308['p']+_0x3877e3('0x1bb6'),_0x3e9450=_0x398308['p']+_0x3877e3('0x2128'),_0x3664f1=_0x398308['p']+'src/js/modules/core/directives/ms-phonebar/ms-phonebar.html/ms-phonebar-[chunkhash].html';var _0x4a650a=_0x398308(0x175b),_0x5b5fef=_0x398308['n'](_0x4a650a),_0x876503=_0x398308(0x26ba),_0x216f43=_0x398308['n'](_0x876503);_0x4b6f28[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x1e8d'),'$mdDialog','$mdToast',_0x3877e3('0x24e1'),_0x3877e3('0x13c1'),_0x3877e3('0x7ae'),'toasty',_0x3877e3('0xccd'),_0x3877e3('0x22e7'),'Auth',_0x3877e3('0x25d8')];function _0x4a7ad6(_0x4a4426){var _0x3967bc=_0x3877e3;_0x3967bc('0x1872');return typeof Symbol===_0x3967bc('0x6c1')&&typeof Symbol['iterator']===_0x3967bc('0x85a')?_0x4a7ad6=function _0xe7b47b(_0xc79428){return typeof _0xc79428;}:_0x4a7ad6=function _0x51b418(_0x39063f){var _0x5cb5a3=_0x3967bc;return _0x39063f&&typeof Symbol===_0x5cb5a3('0x6c1')&&_0x39063f['constructor']===Symbol&&_0x39063f!==Symbol[_0x5cb5a3('0x1c16')]?_0x5cb5a3('0x85a'):typeof _0x39063f;},_0x4a7ad6(_0x4a4426);}function _0x4b6f28(_0x3c27f5,_0x4849ea,_0x395b06,_0x32085e,_0x39ab43,_0x3de915,_0x5c3ba5,_0x339df2,_0x1892f,_0x545795,_0x54f7a3,_0x2cd072,_0x1ea125,_0x130d8b){var _0x34d04d=_0x3877e3,_0x173284=this,_0x54e379=window[_0x34d04d('0x1f8e')];_0x173284[_0x34d04d('0x390')]=_0x54f7a3[_0x34d04d('0x390')],_0x173284[_0x34d04d('0x59f')]=_0x3c27f5[_0x34d04d('0x223d')]['vm']['conf'];var _0x1ce43a=[_0x34d04d('0xaf0'),_0x34d04d('0x47a'),_0x34d04d('0x16cf'),_0x34d04d('0x829'),_0x34d04d('0x6a5'),_0x34d04d('0xf3'),_0x34d04d('0xbe2'),_0x34d04d('0xab6'),_0x34d04d('0xb30')],_0x3782b4=_0x173284[_0x34d04d('0x59f')]&&JSON['parse'](_0x5c3ba5[_0x34d04d('0x161e')]['getItem'](_0x34d04d('0x719')+_0x173284[_0x34d04d('0x59f')]['id']))||{'webrtc':{'ringingVolume':0.5,'speakerVolume':0.5,'microphoneVolume':0x1,'ringingMute':![],'speakerMute':![],'microphoneMute':![]}};_0x32085e(function(){},0x3e7),_0x173284[_0x34d04d('0xfab')]=_0x34d04d('0x2575'),_0x173284[_0x34d04d('0xcd2')]='md-scale',_0x173284[_0x34d04d('0x14a5')]='',_0x173284[_0x34d04d('0x11c9')]=![],_0x173284['soundPlayer']=document[_0x34d04d('0x162e')]('audio'),_0x173284[_0x34d04d('0x5fb')]=document[_0x34d04d('0x10a')](_0x173284[_0x34d04d('0x59f')][_0x34d04d('0x18f')]),_0x173284[_0x34d04d('0x16ad')]['volume']=0x1,_0x173284[_0x34d04d('0x1071')]={'mediaConstraints':{'audio':!![],'video':![]},'pcConfig':{'iceServers':[]}},_0x173284[_0x34d04d('0x199d')]=[],_0x173284[_0x34d04d('0xd5b')]=[],_0x173284[_0x34d04d('0x14e4')]=[],_0x173284[_0x34d04d('0x10c7')]=![],_0x173284['isInConference']=![],_0x173284[_0x34d04d('0xf85')]=[],_0x173284['ua']=new(_0x5b5fef())['UA']({'sockets':[new(_0x5b5fef())['WebSocketInterface'](_0x34d04d('0x661')+_0x173284['conf']['host']+_0x34d04d('0x2438'))],'uri':new(_0x5b5fef())['URI'](_0x34d04d('0x1688'),_0x173284[_0x34d04d('0x59f')][_0x34d04d('0x19fe')],_0x173284[_0x34d04d('0x59f')][_0x34d04d('0x1c01')],0x13c4,null,null)[_0x34d04d('0x174f')](),'authorization_user':_0x173284[_0x34d04d('0x59f')]['name'],'ha1':_0x173284['conf'][_0x34d04d('0xbf')],'realm':_0x173284['conf']['realm'],'user_agent':_0x173284[_0x34d04d('0x59f')]['ua'],'session_timers_refresh_method':_0x34d04d('0x21ce'),'register_expires':_0x173284['conf'][_0x34d04d('0xf16')]||0x3c,'register':!![]}),_0x173284[_0x34d04d('0x59f')]=_0x86640f()[_0x34d04d('0xd0e')](_0x3782b4['webrtc'],_0x173284[_0x34d04d('0x59f')]),_0x173284[_0x34d04d('0x175')]=![],_0x173284[_0x34d04d('0x14e5')]=![],_0x173284[_0x34d04d('0x191')]=![],_0x173284[_0x34d04d('0x16ab')]=null,_0x173284[_0x34d04d('0x24c2')]=![],_0x173284[_0x34d04d('0x113d')]=![],_0x173284[_0x34d04d('0xc6f')]=![];function _0x37e017(){var _0xcce381=_0x34d04d;_0x4709da(![]),navigator[_0xcce381('0x13b0')][_0xcce381('0xcc8')]=function(){var _0x17d7a8=_0xcce381;!_0x173284['initDeviceInProgress']&&(_0x173284[_0x17d7a8('0x175')]=!![],_0x54e379&&_0x173284[_0x17d7a8('0x191')]?_0x54e379['shutdown']()[_0x17d7a8('0x21ad')](function(){var _0x56d08f=_0x17d7a8;_0x173284[_0x56d08f('0x191')]=![],_0x173284[_0x56d08f('0x14e5')]=![],_0x4709da(!![]);})[_0x17d7a8('0x1c1d')](function(_0x4312cc){var _0x5b939f=_0x17d7a8;console['error'](_0x5b939f('0xb7e'),_0x4312cc);}):_0x4709da(!![]));};var _0x305c5f=[_0x54f7a3['network'][_0xcce381('0x595')]({'type':_0xcce381('0xfc3'),'nolimit':!![]})[_0xcce381('0x1376')],_0x54f7a3[_0xcce381('0x1a37')][_0xcce381('0x595')]({'type':'stun','nolimit':!![]})[_0xcce381('0x1376')]];Promise[_0xcce381('0x1ba7')](_0x305c5f)[_0xcce381('0x21ad')](function(_0x10b511){var _0x609a7e=_0xcce381,_0x14d5f7=_0x10b511[0x0]['rows'],_0x4c9839=_0x10b511[0x1]['rows'],_0x457c23=[],_0x22f0cd=[];_0x4c9839[_0x609a7e('0x1a52')](function(_0x33ec3e){var _0x6261dd=_0x609a7e;_0x22f0cd[_0x6261dd('0x206c')](_0x6261dd('0x1dd6')+_0x33ec3e['value']);}),_0x457c23['push']({'urls':_0x22f0cd}),_0x14d5f7['forEach'](function(_0x5320bd){var _0x46b392=_0x609a7e,_0x6c6b23={'urls':'turn:'+_0x5320bd[_0x46b392('0x2228')]};_0x5320bd[_0x46b392('0x697')]&&(_0x6c6b23[_0x46b392('0x697')]=_0x5320bd['username']),_0x5320bd[_0x46b392('0xdd5')]&&(_0x6c6b23[_0x46b392('0x1716')]=_0x5320bd[_0x46b392('0xdd5')]),_0x457c23[_0x46b392('0x206c')](_0x6c6b23);}),_0x173284[_0x609a7e('0x1071')][_0x609a7e('0x1b7f')]={'iceServers':_0x457c23};}),this['ua']['on'](_0xcce381('0xaa2'),_0xad6e90[_0xcce381('0x1172')](this)),this['ua']['on']('unregistered',_0x3a7df3[_0xcce381('0x1172')](this)),this['ua']['on']('newRTCSession',_0x503bda[_0xcce381('0x1172')](this)),_0x130d8b['on']('webbar:originate',_0x3469c7[_0xcce381('0x1172')](this)),_0x130d8b['on'](_0xcce381('0x23dd'),_0x4dda9a[_0xcce381('0x1172')](this)),_0x130d8b['on'](_0xcce381('0x10cb'),_0x4ee74f[_0xcce381('0x1172')](this)),_0x130d8b['on'](_0xcce381('0x7ee'),_0x39e958[_0xcce381('0x1172')](this)),_0x130d8b['on']('webbar:unhold',_0x3123c1[_0xcce381('0x1172')](this)),_0x130d8b['on'](_0xcce381('0x171d'),_0x33cfe2['bind'](this));}function _0x4709da(_0x34f10e){var _0x4080a1=_0x34d04d,_0x2140d8,_0x559f37,_0xd46d6d;return _0x173284[_0x4080a1('0x175')]=!![],navigator[_0x4080a1('0x13b0')][_0x4080a1('0x1d0d')]({'audio':!![]})[_0x4080a1('0x21ad')](function(_0x47f651){var _0x2073db=_0x4080a1;return _0x47f651[_0x2073db('0x1aeb')]()['forEach'](function(_0xd52f55){var _0x2a691a=_0x2073db;_0xd52f55[_0x2a691a('0x12b4')]();}),navigator[_0x2073db('0x13b0')][_0x2073db('0x20d7')]();})[_0x4080a1('0x21ad')](function(_0xb5173f){var _0x28c922=_0x4080a1,_0x43a4eb=_0x86640f()[_0x28c922('0x1503')](_0xb5173f,function(_0x21df30){var _0x583aa7=_0x28c922;return _0x21df30[_0x583aa7('0x24d1')]===_0x583aa7('0xd00')&&_0x21df30[_0x583aa7('0x23ff')]!==_0x583aa7('0x1e6e')&&_0x21df30['deviceId']!==_0x583aa7('0x6a9');});if(_0x43a4eb['length']>0x0){var _0x4cffd2=_0x86640f()[_0x28c922('0x1d2e')](_0xb5173f,function(_0x4d195b){var _0x1d7a8e=_0x28c922;return _0x4d195b[_0x1d7a8e('0x23ff')]===_0x1d7a8e('0x1e6e')&&_0x4d195b[_0x1d7a8e('0x24d1')]===_0x1d7a8e('0xd00');});_0xd46d6d=_0x86640f()[_0x28c922('0x1d2e')](_0x43a4eb,function(_0xae760d){var _0x524234=_0x28c922;return _0xae760d[_0x524234('0x13b5')]===_0x4cffd2[_0x524234('0x13b5')];});if(_0x173284[_0x28c922('0x59f')][_0x28c922('0x16cf')]&&!_0x34f10e){var _0x5d5aec=_0x86640f()[_0x28c922('0x1d2e')](_0x43a4eb,function(_0x4d52b9){var _0x4a3566=_0x28c922;return _0x4d52b9[_0x4a3566('0x23ff')]===_0x173284[_0x4a3566('0x59f')]['microphoneId'];});_0x5d5aec&&(_0xd46d6d=_0x5d5aec);}_0x173284[_0x28c922('0x59f')][_0x28c922('0x16cf')]=_0xd46d6d['deviceId'];}else _0x545795[_0x28c922('0x2649')]({'title':_0x339df2[_0x28c922('0x183e')](_0x28c922('0x182e')),'msg':_0x339df2[_0x28c922('0x183e')](_0x28c922('0xc82')),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0x28c922('0x1006')});_0x173284['conf']['microphoneId']?_0x173284[_0x28c922('0x1071')][_0x28c922('0x8e7')][_0x28c922('0xf21')]={'deviceId':_0x173284['conf'][_0x28c922('0x16cf')]}:_0x173284[_0x28c922('0x1071')][_0x28c922('0x8e7')][_0x28c922('0xf21')]=!![];_0x35c480(_0x28c922('0x1be3'),![]);var _0x3c2eab=_0x86640f()[_0x28c922('0x1503')](_0xb5173f,function(_0x2a803c){var _0x16f0aa=_0x28c922;return _0x2a803c[_0x16f0aa('0x24d1')]==='audiooutput'&&_0x2a803c['deviceId']!==_0x16f0aa('0x1e6e')&&_0x2a803c[_0x16f0aa('0x23ff')]!==_0x16f0aa('0x6a9');});if(_0x3c2eab[_0x28c922('0x577')]>0x0){var _0x413949=_0x86640f()['find'](_0xb5173f,function(_0x57e159){var _0x42c1ff=_0x28c922;return _0x57e159[_0x42c1ff('0x23ff')]===_0x42c1ff('0x1e6e')&&_0x57e159[_0x42c1ff('0x24d1')]===_0x42c1ff('0x14e6');});_0x2140d8=_0x86640f()[_0x28c922('0x1d2e')](_0x3c2eab,function(_0x42f79f){var _0x4aad4e=_0x28c922;return _0x42f79f[_0x4aad4e('0x13b5')]===_0x413949[_0x4aad4e('0x13b5')];}),_0x559f37=_0x2140d8;if(_0x173284[_0x28c922('0x59f')]['speakerId']&&!_0x34f10e){var _0x52fbfe=_0x86640f()[_0x28c922('0x1d2e')](_0x3c2eab,function(_0xfe6130){var _0x2bd7a7=_0x28c922;return _0xfe6130[_0x2bd7a7('0x23ff')]===_0x173284[_0x2bd7a7('0x59f')][_0x2bd7a7('0x47a')];});_0x52fbfe&&(_0x559f37=_0x52fbfe);}_0x173284[_0x28c922('0x59f')][_0x28c922('0x47a')]=_0x559f37[_0x28c922('0x23ff')];if(_0x173284[_0x28c922('0x59f')][_0x28c922('0xaf0')]&&!_0x34f10e){var _0x4e158e=_0x86640f()[_0x28c922('0x1d2e')](_0x3c2eab,function(_0x94289c){var _0x5a8a30=_0x28c922;return _0x94289c[_0x5a8a30('0x23ff')]===_0x173284['conf']['ringingId'];});_0x4e158e&&(_0x2140d8=_0x4e158e);}_0x173284[_0x28c922('0x59f')][_0x28c922('0xaf0')]=_0x2140d8[_0x28c922('0x23ff')];}else _0x545795[_0x28c922('0x2649')]({'title':_0x339df2[_0x28c922('0x183e')]('TOOLBAR.WARNING'),'msg':_0x339df2[_0x28c922('0x183e')](_0x28c922('0xfc8')),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0x28c922('0x1006')});return _0x35c480(_0x28c922('0x2481'),![]);})['then'](function(){return _0x35c480('ringing',![]);})['then'](function(){var _0x1b28d7=_0x4080a1;if(_0x54e379)return _0x54e379[_0x1b28d7('0x1d75')]()[_0x1b28d7('0x21ad')](function(){var _0x48e51c=_0x1b28d7;return _0x173284['isJabraInitialized']=!![],_0x54e379[_0x48e51c('0x2697')]();})['then'](function(){var _0x5041ad=_0x1b28d7;return _0x54e379[_0x5041ad('0x1350')]();})[_0x1b28d7('0x21ad')](function(_0x123288){var _0x3f7234=_0x1b28d7;_0xd46d6d&&_0x559f37&&_0x2140d8&&_0x123288&&(_0x86640f()[_0x3f7234('0xb34')]([_0xd46d6d[_0x3f7234('0x13b5')],_0x559f37[_0x3f7234('0x13b5')],_0x2140d8[_0x3f7234('0x13b5')]],_0x123288[_0x3f7234('0x2421')]['browserGroupId'])&&(console[_0x3f7234('0x6fb')](_0x3f7234('0x1066')),_0x173284['isJabraEnabled']=!![],_0x54e379[_0x3f7234('0x1ddd')](),_0x54e379[_0x3f7234('0x3dd')](_0x3f7234('0x195c'),_0x754c74['bind'](this)),_0x54e379[_0x3f7234('0x3dd')](_0x3f7234('0x24b2'),_0x10336a[_0x3f7234('0x1172')](this)),_0x54e379[_0x3f7234('0x3dd')](_0x3f7234('0x1ebe'),_0x4f4bff[_0x3f7234('0x1172')](this)),_0x54e379['addEventListener'](_0x3f7234('0x10c4'),_0x3cb152[_0x3f7234('0x1172')](this)),_0x54e379[_0x3f7234('0x3dd')]('endcall',_0x2b1c23[_0x3f7234('0x1172')](this))));})[_0x1b28d7('0x1c1d')](function(_0x160a34){var _0x5bde41=_0x1b28d7;console[_0x5bde41('0x2533')](_0x5bde41('0x25ae'),_0x160a34);});})[_0x4080a1('0x1c1d')](function(_0x71cc80){var _0x5a730d=_0x4080a1;console['error'](_0x5a730d('0x13a1'),_0x71cc80),_0x71cc80[_0x5a730d('0x19fe')]==='NotFoundError'&&_0x545795[_0x5a730d('0x2649')]({'title':_0x339df2[_0x5a730d('0x183e')]('TOOLBAR.WARNING'),'msg':_0x339df2[_0x5a730d('0x183e')](_0x5a730d('0x357')),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0x5a730d('0x1006')});})[_0x4080a1('0x13e')](function(){var _0x167bb6=_0x4080a1;_0x173284[_0x167bb6('0x175')]=![],_0x3f9d64(),_0x216f43()[_0x167bb6('0x20ad')](_0x447860[_0x167bb6('0x1172')](this));});}function _0x754c74(_0x18c19c){var _0x25506e=_0x34d04d,_0x4f2eac=_0x86640f()[_0x25506e('0x25d5')](_0x173284[_0x25506e('0x199d')]);_0x4f2eac?_0x4f2eac[_0x25506e('0xfab')]==='incoming'&&_0x4f2eac[_0x25506e('0x151a')]()?_0x173284[_0x25506e('0x1446')](_0x4f2eac):console['error'](_0x25506e('0x27b7'),_0x18c19c):console[_0x25506e('0x2092')](_0x25506e('0x645'),_0x18c19c);}function _0x10336a(){var _0x18266b=_0x34d04d;_0x173284['conf'][_0x18266b('0xb30')]=!![],_0x35c480(_0x18266b('0x1be3'),!![]);}function _0x4f4bff(){var _0x21c7c9=_0x34d04d;_0x173284[_0x21c7c9('0x59f')][_0x21c7c9('0xb30')]=![],_0x35c480(_0x21c7c9('0x1be3'),!![]);}function _0x3cb152(){var _0x198aaa=_0x34d04d;_0x173284[_0x198aaa('0x16ab')][_0x198aaa('0x362')]?_0x173284[_0x198aaa('0xdca')](_0x173284['jabraSession']):_0x173284[_0x198aaa('0x1926')](_0x173284['jabraSession']);}function _0x2b1c23(){_0x4ae923()['then'](function(_0x5370fc){var _0x5c25ac=a0_0x2e7f;_0x5370fc!==null&&_0x173284[_0x5c25ac('0xc7')](_0x5370fc);});}function _0x3f9d64(){var _0x2b4775=_0x34d04d;_0x3782b4['webrtc']=_0x86640f()[_0x2b4775('0xc50')](_0x173284[_0x2b4775('0x59f')],_0x1ce43a),_0x5c3ba5['localStorage'][_0x2b4775('0x1014')](_0x2b4775('0x719')+_0x173284[_0x2b4775('0x59f')]['id'],JSON[_0x2b4775('0x25e')](_0x3782b4));}function _0xad6e90(){var _0x505811=_0x34d04d;this[_0x505811('0xaa2')]=!![];}function _0x3a7df3(){this['registered']=![];}function _0x447860(){var _0x2f876c=_0x34d04d;_0x173284[_0x2f876c('0x59f')][_0x2f876c('0xae4')]=_0x216f43()[_0x2f876c('0xae4')],_0x173284['conf'][_0x2f876c('0xa7f')]=_0x216f43()['browser']['name']===_0x2f876c('0x660')||_0x216f43()[_0x2f876c('0x19e')][_0x2f876c('0x19fe')]===_0x2f876c('0x260d')||_0x216f43()[_0x2f876c('0x19e')][_0x2f876c('0x19fe')]===_0x2f876c('0x283b')?_0x216f43()['hasSpeakers']:!![],_0x173284['conf'][_0x2f876c('0x304')]=_0x216f43()['isWebRTCSupported'],_0x173284['conf'][_0x2f876c('0x144')]=_0x216f43()['osName'],_0x173284[_0x2f876c('0x59f')][_0x2f876c('0x216e')]=_0x216f43()[_0x2f876c('0x216e')],_0x173284[_0x2f876c('0x59f')]['browserName']=_0x216f43()['browser'][_0x2f876c('0x19fe')],_0x173284[_0x2f876c('0x59f')][_0x2f876c('0x720')]=_0x216f43()['browser'][_0x2f876c('0x161a')];if(_0x222843())!_0x173284[_0x2f876c('0xa6')]&&_0x173284['ua'][_0x2f876c('0x2015')]();else!_0x173284[_0x2f876c('0x59f')][_0x2f876c('0x2ff')]&&_0x545795[_0x2f876c('0x2649')]({'title':_0x339df2[_0x2f876c('0x183e')](_0x2f876c('0x182e')),'msg':_0x339df2['instant']('TOOLBAR.WEBRTC_LICENSE_NOT_ENABELD'),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0x2f876c('0x1006')});}function _0x222843(){var _0x13920a=_0x34d04d;return _0x173284[_0x13920a('0x59f')][_0x13920a('0x2ff')]&&_0x173284[_0x13920a('0x59f')][_0x13920a('0x304')]&&_0x173284[_0x13920a('0x59f')][_0x13920a('0xae4')]&&_0x173284[_0x13920a('0x59f')][_0x13920a('0xa7f')]&&_0x173284[_0x13920a('0x59f')][_0x13920a('0x1162')]===_0x13920a('0x95e')&&_0x2c2036();}function _0x2c2036(){var _0x34e508=_0x34d04d;return _0x173284[_0x34e508('0x59f')]['browserName']['toLowerCase']()==='chrome'||_0x173284[_0x34e508('0x59f')]['browserName'][_0x34e508('0xac2')]()==='opera'||_0x173284['conf'][_0x34e508('0x1157')][_0x34e508('0xac2')]()===_0x34e508('0x1e72');}function _0x503bda(_0x589cd6){var _0x3de6a7=_0x34d04d;console[_0x3de6a7('0x6f8')](_0x3de6a7('0x2af'),_0x589cd6);var _0x3c88d8=_0x589cd6[_0x3de6a7('0x262d')],_0x263d41=!![],_0x53d8cb='',_0x1aa052=0x0,_0x4e850b;switch(_0x589cd6[_0x3de6a7('0x16e6')]){case _0x3de6a7('0x1f1'):{_0x3c88d8[_0x3de6a7('0x120f')]=!![],_0x3c88d8['name']=_0x589cd6[_0x3de6a7('0x13ce')][_0x3de6a7('0x2350')]['user'],_0x3c88d8[_0x3de6a7('0x1775')]=_0x589cd6[_0x3de6a7('0x13ce')][_0x3de6a7('0x2350')][_0x3de6a7('0x1775')],_0x476e58(_0x3c88d8[_0x3de6a7('0x1775')],![]);var _0x467c5e=_0x3de6a7('0x1e7');_0x4e850b=_0x2fe8bd(_0x589cd6['request'][_0x3de6a7('0x224e')],_0x467c5e),_0x173284['isJabraEnabled']&&(_0x173284[_0x3de6a7('0x16ab')]&&_0x54e379[_0x3de6a7('0x46d')](),_0x173284[_0x3de6a7('0x16ab')]=_0x3c88d8,_0x54e379[_0x3de6a7('0x197e')]());}break;case _0x3de6a7('0x132d'):{var _0xcfe910=_0x1ea125[_0x3de6a7('0x15ed')]();if(_0xcfe910['voicePause']&&_0xcfe910[_0x3de6a7('0x179')]||_0x173284[_0x3de6a7('0xc6f')])_0x263d41=![];else{_0x3c88d8[_0x3de6a7('0xcc9')]=!![],_0x3c88d8[_0x3de6a7('0x19fe')]=_0x589cd6[_0x3de6a7('0x13ce')][_0x3de6a7('0x69b')]['display_name'],_0x3c88d8['user']=_0x589cd6[_0x3de6a7('0x13ce')]['from'][_0x3de6a7('0xa21')][_0x3de6a7('0x1775')],_0x53d8cb=_0x589cd6[_0x3de6a7('0x13ce')][_0x3de6a7('0x1c53')](_0x3de6a7('0x2119'))||'',_0x1aa052=_0x589cd6[_0x3de6a7('0x13ce')][_0x3de6a7('0x1c53')](_0x3de6a7('0x94f'))||0x0,_0x22a698(_0x589cd6[_0x3de6a7('0x262d')]),_0x476e58(_0x589cd6[_0x3de6a7('0x262d')]['user'],!![]);_0x173284['isJabraEnabled']&&_0x54e379[_0x3de6a7('0x791')]();_0x173284[_0x3de6a7('0x59f')][_0x3de6a7('0x41a')]&&_0x395b06(function(){var _0x1c76d1=_0x3de6a7;_0x3c88d8['isInProgress']()&&(_0x3c88d8[_0x1c76d1('0x41a')]=!![],_0x382a07(_0x3c88d8));},_0x173284[_0x3de6a7('0x59f')][_0x3de6a7('0x1150')]?_0x173284['conf'][_0x3de6a7('0x1150')]*0x3e8:0x0);console[_0x3de6a7('0x6f8')](_0x3de6a7('0x2290'),_0x53d8cb),console[_0x3de6a7('0x6f8')](_0x3de6a7('0x1abf'),_0x1aa052);if(_0x53d8cb[_0x3de6a7('0xac2')]()==_0x3de6a7('0x21ac')){var _0x6f31e2=_0x1aa052==0x0?0x1f4:_0x1aa052*0x3e8;console[_0x3de6a7('0x6f8')](_0x3de6a7('0x22fc')+_0x6f31e2+_0x3de6a7('0x12f3')),_0x395b06(function(){var _0x4fb0ad=_0x3de6a7;_0x3c88d8[_0x4fb0ad('0x151a')]()&&(_0x3c88d8['autoAnswer']=!![],_0x382a07(_0x3c88d8));},_0x6f31e2);}}break;}default:}_0x263d41?(_0x3c88d8['call_id']=_0x589cd6[_0x3de6a7('0x13ce')][_0x3de6a7('0x4e8')],_0x4e850b&&(_0x173284['callbackQueue'][_0x3c88d8['call_id']]=_0x4e850b,_0x248a36(_0x4e850b,{'call_id':_0x3c88d8['call_id']})[_0x3de6a7('0x21ad')](function(){var _0x248ffa=_0x3de6a7;console[_0x248ffa('0x6fb')]('callbackurl:\x22'+_0x4e850b+'\x22\x20called\x20successfully');})[_0x3de6a7('0x1c1d')](function(_0x141f3e){var _0x108e35=_0x3de6a7;console[_0x108e35('0x6fb')](_0x108e35('0x115e')+_0x4e850b+_0x108e35('0xdff'),_0x141f3e);})),_0x3c88d8[_0x3de6a7('0x19d6')]&&(_0x3c88d8['connection'][_0x3de6a7('0x1e3b')]=_0x944e0a['bind'](this)),_0x3c88d8[_0x3de6a7('0x11b5')]=null,_0x3c88d8['on'](_0x3de6a7('0x830'),_0x3b432e[_0x3de6a7('0x1172')](this,_0x3c88d8)),_0x3c88d8['on'](_0x3de6a7('0x5f1'),_0x561c69[_0x3de6a7('0x1172')](this,_0x3c88d8)),_0x3c88d8['on'](_0x3de6a7('0x1926'),_0x1a1670[_0x3de6a7('0x1172')](this,_0x3c88d8)),_0x3c88d8['on']('unhold',_0x5c7306[_0x3de6a7('0x1172')](this,_0x3c88d8)),_0x3c88d8['on'](_0x3de6a7('0x1201'),_0x2f4c63['bind'](this,_0x3c88d8)),_0x3c88d8['on']('failed',_0x50d431[_0x3de6a7('0x1172')](this,_0x3c88d8)),_0x3c88d8['on'](_0x3de6a7('0xfbd'),_0x23a494[_0x3de6a7('0x1172')](this,_0x3c88d8)),_0x173284[_0x3de6a7('0x199d')][_0x3de6a7('0x206c')](_0x3c88d8),_0x395b06(function(){var _0x4131b2=_0x3de6a7;_0x3c27f5['$apply'](),console['debug'](_0x4131b2('0x39'),_0x173284[_0x4131b2('0x199d')]);})):_0x8dc580(_0x3c88d8,0x1e6);}function _0x476e58(_0x19c877,_0x2fda7c,_0x2724c1){var _0x10d4e0=_0x34d04d;console[_0x10d4e0('0x6f8')](_0x10d4e0('0xef8'),_0x19c877,_0x2fda7c,_0x2724c1),_0x173284[_0x10d4e0('0xd5b')][_0x10d4e0('0xd0c')]({'target':_0x19c877,'fullname':_0x2724c1||_0x19c877,'inbound':_0x2fda7c,'time':_0x1088bc()()[_0x10d4e0('0x153')]('HH:mm')}),_0x173284[_0x10d4e0('0xd5b')][_0x10d4e0('0x577')]>0x32&&_0x173284[_0x10d4e0('0xd5b')][_0x10d4e0('0x4ee')]();}function _0x22a698(_0x430661){var _0x167b35=_0x34d04d;console[_0x167b35('0x6f8')](_0x167b35('0x12c4'),_0x430661);var _0x4056a3=_0x430661[_0x167b35('0x19fe')]?_0x430661[_0x167b35('0x19fe')]+'\x20<'+_0x430661[_0x167b35('0x1775')]+'>':_0x430661['user'];_0x2cd072['create'](_0x167b35('0x641'),_0x4056a3,null,function(){_0x382a07(_0x430661);},function(){_0x8dc580(_0x430661);})[_0x167b35('0x21ad')](function(_0x3fdbe7){var _0x32bfbd=_0x167b35;_0x430661[_0x32bfbd('0xba7')]=_0x3fdbe7;})['catch'](function(_0x5fa35b){var _0x58d3ac=_0x167b35;console[_0x58d3ac('0x2092')](_0x58d3ac('0x74'),_0x5fa35b);});}function _0x382a07(_0x465dc7){var _0x15d39b=_0x34d04d;console[_0x15d39b('0x6f8')](_0x15d39b('0x40a'),_0x465dc7),_0x173284['conf'][_0x15d39b('0x16cf')]?_0x173284[_0x15d39b('0x1071')]['mediaConstraints'][_0x15d39b('0xf21')]={'deviceId':_0x173284[_0x15d39b('0x59f')][_0x15d39b('0x16cf')]}:_0x173284[_0x15d39b('0x1071')]['mediaConstraints'][_0x15d39b('0xf21')]=!![],_0x465dc7[_0x15d39b('0x1446')](_0x173284[_0x15d39b('0x1071')]),_0x173284[_0x15d39b('0x14e5')]&&(_0x54e379[_0x15d39b('0x197e')](),_0x173284['jabraSession']=_0x465dc7);}function _0x8dc580(_0x3ccdb9,_0x53575e){var _0x50c34b=_0x34d04d;console[_0x50c34b('0x6f8')](_0x50c34b('0xd25'),_0x3ccdb9);var _0x22b308={};if(_0x53575e)_0x22b308['status_code']=_0x53575e;else!_0x3ccdb9[_0x50c34b('0x1e4a')]()&&(_0x22b308[_0x50c34b('0x233b')]=0x25b);_0x3ccdb9[_0x50c34b('0xc7')](_0x22b308);if(_0x173284['isJabraEnabled']){if(_0x173284['sessions'][_0x50c34b('0x577')]===0x0)_0x3ccdb9[_0x50c34b('0x362')]&&_0x54e379[_0x50c34b('0x46d')](),_0x54e379['onHook'](),_0x173284[_0x50c34b('0x16ab')]=null;else{var _0x44a227=_0x86640f()[_0x50c34b('0x25d5')](_0x173284[_0x50c34b('0x199d')]);_0x44a227[_0x50c34b('0x362')]?(_0x54e379['onHook'](),_0x54e379[_0x50c34b('0x1926')](),_0x173284[_0x50c34b('0x16ab')]=_0x44a227):_0x54e379[_0x50c34b('0x197e')]();}}}function _0x3b432e(_0x255074,_0x5a8b60){var _0xa9aacd=_0x34d04d;console['debug'](_0xa9aacd('0x1511'),_0x255074,_0x5a8b60);var _0x277510=![];switch(_0x5a8b60[_0xa9aacd('0x16e6')]){case'local':!this[_0xa9aacd('0x59f')][_0xa9aacd('0xbe2')]&&(this[_0xa9aacd('0x16ad')]['setAttribute']('src',_0xa9aacd('0x13d3')),_0x277510=!![]);break;case _0xa9aacd('0x132d'):this[_0xa9aacd('0x35e')](_0x255074),this[_0xa9aacd('0x16ad')][_0xa9aacd('0x127a')](_0xa9aacd('0xec'),'app/core/directives/ms-phonebar/sounds/outgoing-call.ogg'),_0x277510=!![];break;}_0x173284[_0xa9aacd('0xc6f')]&&(_0x173284['originateInProgress']=![]),_0x277510&&(this[_0xa9aacd('0x16ad')][_0xa9aacd('0x21fd')]=_0xa9aacd('0x21fd'),this[_0xa9aacd('0x16ad')][_0xa9aacd('0x653')]()[_0xa9aacd('0x1c1d')](function(_0x4c09e2){var _0x238999=_0xa9aacd;console[_0x238999('0x6fb')](_0x4c09e2['message']);})),_0x8a0e6(_0x255074)[_0xa9aacd('0x21ad')](function(){var _0x29347e=_0xa9aacd,_0x5a8baa=_0x173284[_0x29347e('0x14e4')][_0x255074[_0x29347e('0x4e8')]];_0x5a8baa&&_0x248a36(_0x5a8baa,{'uniqueid':_0x255074[_0x29347e('0x968')],'call_id':_0x255074['call_id'],'number_called':_0x255074[_0x29347e('0x1775')]})[_0x29347e('0x21ad')](function(){var _0x41c866=_0x29347e;console[_0x41c866('0x6fb')](_0x41c866('0x1b50')+_0x5a8baa+_0x41c866('0x3f1'));})[_0x29347e('0x1c1d')](function(_0x51c42d){var _0x18017c=_0x29347e;console['log'](_0x18017c('0x115e')+_0x5a8baa+'\x22\x20err:',_0x51c42d);})[_0x29347e('0x13e')](function(){var _0x162ffb=_0x29347e;delete _0x173284[_0x162ffb('0x14e4')][_0x255074['call_id']];});})[_0xa9aacd('0x1c1d')](function(_0x4c6116){var _0x5ad846=_0xa9aacd;console[_0x5ad846('0x2092')](_0x5ad846('0x32d'),_0x4c6116);});}function _0x8a0e6(_0x2f84e){var _0x1770f4=_0x34d04d;return console['debug'](_0x1770f4('0x23d8'),_0x2f84e),_0x54f7a3[_0x1770f4('0x9ac')]['getVoiceChannels']()[_0x1770f4('0x1376')][_0x1770f4('0x21ad')](function(_0x2925a9){var _0x360af3=_0x1770f4,_0x2b31d6=_0x86640f()[_0x360af3('0x1d2e')](_0x2925a9[_0x360af3('0x1b33')],function(_0x339a33){var _0x5d4585=_0x360af3;if(_0x339a33['sipcalllinkedid']===_0x2f84e[_0x5d4585('0x4e8')])return _0x339a33;if(_0x339a33['sipcalluniqueid']===_0x2f84e[_0x5d4585('0x4e8')])return _0x339a33;return null;});_0x2b31d6&&(_0x2f84e['monitor']=_0x2b31d6[_0x360af3('0xd46')],_0x2f84e['uniqueid']=_0x2b31d6[_0x360af3('0x968')],_0x2f84e[_0x360af3('0x1f49')]=_0x2b31d6['monitors']);return;});}function _0x561c69(_0x30629c,_0x346727){var _0x3c5e50=_0x34d04d;console[_0x3c5e50('0x6f8')](_0x3c5e50('0x2017'),_0x30629c,_0x346727);var _0x5f8486=document[_0x3c5e50('0x10a')]('div_session_'+_0x30629c['id']['substr'](0x0,0x20));_0x5f8486&&$(_0x5f8486)[_0x3c5e50('0x18ea')]()['$broadcast']('timer-start'),_0x30629c[_0x3c5e50('0x5f1')]=!![],_0x346727['originator']===_0x3c5e50('0x132d')&&_0x30629c[_0x3c5e50('0x19d6')]&&(_0x30629c[_0x3c5e50('0x19d6')]['onaddstream']=_0x944e0a[_0x3c5e50('0x1172')](this),_0x86640f()[_0x3c5e50('0x454')](_0x30629c[_0x3c5e50('0x19d6')]['getRemoteStreams']())&&(this['remotePlayer']['srcObject']=_0x86640f()['head'](_0x30629c[_0x3c5e50('0x19d6')][_0x3c5e50('0x1498')]()),this[_0x3c5e50('0x5fb')][_0x3c5e50('0x653')]())),this[_0x3c5e50('0x16ad')][_0x3c5e50('0x1e26')](),this[_0x3c5e50('0x16ad')][_0x3c5e50('0x21fd')]=null,this['putOtherCallsOnHold'](_0x30629c),_0x30629c[_0x3c5e50('0x41a')]&&(this[_0x3c5e50('0x16ad')][_0x3c5e50('0x127a')]('src',_0x3c5e50('0xa8a')),this[_0x3c5e50('0x16ad')][_0x3c5e50('0x653')]()[_0x3c5e50('0x1c1d')](function(_0x506115){var _0x150916=_0x3c5e50;console[_0x150916('0x6fb')](_0x150916('0x1bee'),_0x506115);})),_0x173284[_0x3c5e50('0x10c7')]=_0x173284['sessions']['length']==0x2,_0x8a0e6(_0x30629c)[_0x3c5e50('0x1c1d')](function(_0x599682){var _0x31a9d4=_0x3c5e50;console[_0x31a9d4('0x2092')](_0x31a9d4('0x32d'),_0x599682);});}function _0x944e0a(_0x11fdde){var _0x3a2ee3=_0x34d04d;console[_0x3a2ee3('0x6f8')]('onAddstream\x20->\x20data',_0x11fdde),this[_0x3a2ee3('0x5fb')][_0x3a2ee3('0x15ac')]=_0x11fdde['stream'],this[_0x3a2ee3('0x5fb')][_0x3a2ee3('0x653')]();}function _0x1a1670(_0x19e036,_0x145ddb){var _0x5a3e40=_0x34d04d;console[_0x5a3e40('0x6f8')](_0x5a3e40('0x748'),_0x19e036,_0x145ddb),_0x145ddb[_0x5a3e40('0x16e6')]==='local'&&(_0x19e036[_0x5a3e40('0x362')]=!![]);}function _0x5c7306(_0x522d1f,_0x517bb3){var _0x558156=_0x34d04d;console[_0x558156('0x6f8')](_0x558156('0x1c63'),_0x522d1f,_0x517bb3),_0x517bb3[_0x558156('0x16e6')]==='local'&&(_0x522d1f[_0x558156('0x362')]=![]);}function _0x2f4c63(_0x48315b,_0x4e2286){var _0x46d4e1=_0x34d04d;console['debug'](_0x46d4e1('0x34f'),_0x48315b,_0x4e2286);_0x173284[_0x46d4e1('0x195b')]&&(_0x86640f()[_0x46d4e1('0xb34')](_0x173284['currentConferenceSessions'],_0x48315b['id'])&&(_0x122af7(),_0x173284[_0x46d4e1('0x113d')]=!![]));_0x86640f()[_0x46d4e1('0x16a2')](this['sessions'],{'id':_0x48315b['id']});_0x173284['sessions'][_0x46d4e1('0x577')]!==0x2&&(_0x173284[_0x46d4e1('0x10c7')]=![]);if(_0x173284[_0x46d4e1('0x14e5')]){if(_0x173284[_0x46d4e1('0x199d')][_0x46d4e1('0x577')]===0x0)_0x48315b['localHold']&&_0x54e379[_0x46d4e1('0x46d')](),_0x54e379['onHook'](),_0x173284[_0x46d4e1('0x16ab')]=null;else{var _0x20a8d6=_0x86640f()[_0x46d4e1('0x25d5')](_0x173284[_0x46d4e1('0x199d')]);_0x20a8d6['localHold']?(_0x54e379[_0x46d4e1('0x1ddd')](),_0x54e379[_0x46d4e1('0x1926')](),_0x173284[_0x46d4e1('0x16ab')]=_0x20a8d6):_0x54e379[_0x46d4e1('0x197e')]();}}}function _0x122af7(){var _0x37ca52=_0x34d04d;_0x173284[_0x37ca52('0x10c7')]=![],_0x173284[_0x37ca52('0x195b')]=![],_0x173284[_0x37ca52('0x1b13')]=[];}function _0x50d431(_0x44777a,_0x140d6a){var _0x10bba3=_0x34d04d;console[_0x10bba3('0x6f8')](_0x10bba3('0x3ea'),_0x44777a,_0x140d6a),this['soundPlayer'][_0x10bba3('0x1e26')](),this['soundPlayer'][_0x10bba3('0x21fd')]=null;_0x44777a['notification']&&_0x44777a[_0x10bba3('0xba7')][_0x10bba3('0x22f')]();_0x173284[_0x10bba3('0x195b')]&&(_0x86640f()[_0x10bba3('0xb34')](_0x173284['currentConferenceSessions'],_0x44777a['id'])&&_0x122af7());_0x173284[_0x10bba3('0xc6f')]&&(_0x173284[_0x10bba3('0xc6f')]=![]);_0x86640f()[_0x10bba3('0x16a2')](this[_0x10bba3('0x199d')],{'id':_0x44777a['id']});_0x173284[_0x10bba3('0x199d')][_0x10bba3('0x577')]!==0x2&&(_0x173284[_0x10bba3('0x10c7')]=![]);if(_0x173284[_0x10bba3('0x14e5')]){if(_0x173284[_0x10bba3('0x199d')][_0x10bba3('0x577')]===0x0)_0x44777a[_0x10bba3('0x362')]&&_0x54e379[_0x10bba3('0x46d')](),_0x54e379[_0x10bba3('0x1ddd')](),_0x173284['jabraSession']=null;else{var _0x2b0a6b=_0x86640f()['last'](_0x173284['sessions']);_0x2b0a6b[_0x10bba3('0x362')]?(_0x54e379[_0x10bba3('0x1ddd')](),_0x54e379[_0x10bba3('0x1926')](),_0x173284[_0x10bba3('0x16ab')]=_0x2b0a6b):_0x54e379[_0x10bba3('0x197e')]();}}}function _0x23a494(_0x33fc9b,_0x342a1d){var _0xf84f31=_0x34d04d;console[_0xf84f31('0x6f8')](_0xf84f31('0x530'),_0x33fc9b,_0x342a1d),_0x33fc9b[_0xf84f31('0x11b5')]!==null&&clearTimeout(_0x33fc9b[_0xf84f31('0x11b5')]),_0x33fc9b['iceCandidateTimeout']=setTimeout(_0x342a1d[_0xf84f31('0x1174')],0x1*0x3e8);}function _0x553eab(){var _0x321c6a=_0x34d04d;_0x173284[_0x321c6a('0x11c9')]=![];}function _0x464973(_0x2014f4,_0x2b6c7a){var _0x622bc0=_0x34d04d,_0x3eeefa=_0x2014f4;!_0x173284['target']&&(_0x173284[_0x622bc0('0x14a5')]='');_0x2b6c7a&&(_0x173284[_0x622bc0('0x14a5')]+=_0x2014f4,_0x3c27f5[_0x622bc0('0x149a')]('angucomplete-alt:changeInput',_0x622bc0('0x11ee'),_0x173284['target']));switch(_0x2014f4){case'*':_0x3eeefa=_0x622bc0('0x1757');break;case'#':_0x3eeefa=_0x622bc0('0x2126');break;default:}_0x173284[_0x622bc0('0x59f')]['enableDtmfTone']&&(_0x173284[_0x622bc0('0x16ad')][_0x622bc0('0x127a')](_0x622bc0('0xec'),'app/core/directives/ms-phonebar/sounds/dialpad/'+_0x3eeefa+_0x622bc0('0x1d6d')),_0x173284[_0x622bc0('0x16ad')][_0x622bc0('0x653')]()[_0x622bc0('0x1c1d')](function(_0x421f2d){console['log'](_0x421f2d['message']);}));for(var _0x24e8b8=0x0;_0x24e8b8<_0x173284[_0x622bc0('0x199d')][_0x622bc0('0x577')];_0x24e8b8+=0x1){_0x173284[_0x622bc0('0x199d')][_0x24e8b8][_0x622bc0('0x1e4a')]()&&!_0x173284['sessions'][_0x24e8b8]['isOnHold']()[_0x622bc0('0x1f1')]&&_0x173284[_0x622bc0('0x199d')][_0x24e8b8][_0x622bc0('0x11fb')](_0x2014f4);}}function _0x35c480(_0x154db4,_0x5b3cdf){var _0x525612=_0x34d04d;switch(_0x154db4){case _0x525612('0x200c'):_0x173284[_0x525612('0x16ad')][_0x525612('0x41b')]=_0x173284[_0x525612('0x59f')]['ringingMute'];_0x173284[_0x525612('0x59f')][_0x525612('0xaf0')]&&_0x173284[_0x525612('0x16ad')][_0x525612('0x114')](_0x173284[_0x525612('0x59f')][_0x525612('0xaf0')])[_0x525612('0x21ad')](function(){var _0x58c5a3=_0x525612;_0x173284[_0x58c5a3('0x16ad')][_0x58c5a3('0xf97')]=_0x173284[_0x58c5a3('0x59f')][_0x58c5a3('0x829')];})[_0x525612('0x21ad')](function(){_0x5b3cdf&&_0x3f9d64();})['catch'](function(_0x3d30f4){var _0x30918b=_0x525612;console[_0x30918b('0x231c')](_0x3d30f4[_0x30918b('0x1224')],_0x173284['conf'][_0x30918b('0xaf0')]);});break;case _0x525612('0x2481'):_0x173284[_0x525612('0x5fb')][_0x525612('0x41b')]=_0x173284[_0x525612('0x59f')][_0x525612('0xab6')];_0x173284[_0x525612('0x59f')]['speakerId']&&_0x173284[_0x525612('0x5fb')][_0x525612('0x114')](_0x173284['conf'][_0x525612('0x47a')])[_0x525612('0x21ad')](function(){var _0x24b0b1=_0x525612;_0x173284[_0x24b0b1('0x5fb')]['volume']=_0x173284['conf'][_0x24b0b1('0x6a5')];})[_0x525612('0x21ad')](function(){_0x5b3cdf&&_0x3f9d64();})[_0x525612('0x1c1d')](function(_0x35c0c7){var _0x313487=_0x525612;console[_0x313487('0x231c')](_0x35c0c7['message'],_0x173284[_0x313487('0x59f')][_0x313487('0x47a')]);});break;case'microphone':for(var _0x1bf8d6=0x0;_0x1bf8d6<_0x173284['sessions'][_0x525612('0x577')];_0x1bf8d6+=0x1){_0x173284['conf'][_0x525612('0xb30')]?_0x173284[_0x525612('0x199d')][_0x1bf8d6][_0x525612('0x24b2')]():_0x173284[_0x525612('0x199d')][_0x1bf8d6][_0x525612('0x1ebe')]();}_0x54e379&&_0x173284[_0x525612('0x14e5')]&&(_0x173284[_0x525612('0x59f')][_0x525612('0xb30')]?_0x54e379[_0x525612('0x24b2')]():_0x54e379[_0x525612('0x1ebe')]());_0x5b3cdf&&_0x3f9d64();break;default:console[_0x525612('0x6fb')]('unknown\x20device');}}function _0x1b572e(_0x35551b){var _0x29328b=_0x34d04d;if(!_0x35551b)_0x4ae37d();else/^(\w|\.|\+|#|\*|\(|\)|\s|-)*$/[_0x29328b('0x1dc7')](_0x35551b)?(_0x173284[_0x29328b('0x14a5')]=_0x35551b,_0x3c27f5[_0x29328b('0x149a')](_0x29328b('0x55f'),'ms-target-wrap',_0x173284['target'])):_0x173284[_0x29328b('0x14a5')]?_0x3c27f5[_0x29328b('0x149a')](_0x29328b('0x55f'),_0x29328b('0x11ee'),_0x173284[_0x29328b('0x14a5')]):_0x4ae37d();}function _0x4ae37d(){var _0x3564e8=_0x34d04d;_0x173284[_0x3564e8('0x14a5')]='',document[_0x3564e8('0x10a')](_0x3564e8('0x229e'))[_0x3564e8('0x984')](),document['getElementById'](_0x3564e8('0x229e'))[_0x3564e8('0x2228')]='',_0x3c27f5[_0x3564e8('0x149a')](_0x3564e8('0xb13'),_0x3564e8('0x11ee'));}function _0x52fb00(_0xc9d013){var _0x4c29ae=_0x34d04d;_0xc9d013&&(_0x173284[_0x4c29ae('0x14a5')]=_0xc9d013['originalObject'][_0x4c29ae('0x14a5')],_0x173284[_0x4c29ae('0xdc2')](),_0x4ae37d());}function _0x3a3677(){var _0xe1e828=_0x34d04d;if(_0x173284[_0xe1e828('0x14a5')]&&_0x173284['target']!==_0x173284['conf'][_0xe1e828('0x19fe')]&&_0x173284[_0xe1e828('0x14a5')]!==_0x173284[_0xe1e828('0x59f')][_0xe1e828('0x201f')]){_0x173284['conf'][_0xe1e828('0x16cf')]?_0x173284['sessionConf'][_0xe1e828('0x8e7')][_0xe1e828('0xf21')]={'deviceId':_0x173284[_0xe1e828('0x59f')]['microphoneId']}:_0x173284['sessionConf'][_0xe1e828('0x8e7')]['audio']=!![];var _0x577ae9=_0x173284[_0xe1e828('0x14a5')][_0xe1e828('0x16e4')](/ /g,'');return _0x577ae9=_0x577ae9[_0xe1e828('0x16e4')](/\(/g,''),_0x577ae9=_0x577ae9[_0xe1e828('0x16e4')](/\)/g,''),_0x59bebc(_0x577ae9)[_0xe1e828('0x21ad')](function(_0x51876f){var _0x460bc2=_0xe1e828;_0x51876f&&_0x173284['ua'][_0x460bc2('0xdc2')](_0x51876f,_0x173284[_0x460bc2('0x1071')]);})[_0xe1e828('0x21ad')](function(){_0x4ae37d();});}}function _0x59bebc(_0x48b6bc){var _0x53de23=_0x34d04d;return _0x54f7a3[_0x53de23('0x1775')][_0x53de23('0x137a')]({'id':_0x173284[_0x53de23('0x59f')]['id']})[_0x53de23('0x1376')][_0x53de23('0x21ad')](function(_0x311392){var _0x1d3208=_0x53de23;if(_0x311392[_0x1d3208('0x205f')])return _0x39ab43['show']({'controller':_0x1d3208('0x1a74'),'controllerAs':'vm','templateUrl':_0x4ebac9,'parent':angular[_0x1d3208('0x1676')](_0x4849ea['body']),'clickOutsideToClose':!![],'locals':{'prefixes':_0x311392,'required':_0x173284[_0x1d3208('0x59f')][_0x1d3208('0x137b')]}});})[_0x53de23('0x21ad')](function(_0x38445b){var _0x42dd0f=_0x53de23;if(!_0x173284[_0x42dd0f('0x59f')][_0x42dd0f('0x137b')]){if(_0x38445b&&_0x38445b!==-0x1)return _0x38445b+_0x48b6bc;else{if(!_0x38445b)return _0x48b6bc;}}else{if(_0x38445b&&_0x38445b!==-0x1)return _0x38445b+_0x48b6bc;}});}function _0x3c56a4(_0x10a923){var _0x1fd767=_0x34d04d;switch(_0x10a923[_0x1fd767('0xddb')][_0x1fd767('0xac2')]()){case'0':case'1':case'2':case'3':case'4':case'5':case'6':case'7':case'8':case'9':case'*':case'#':_0x173284[_0x1fd767('0x7fa')](_0x10a923['key']);break;case _0x1fd767('0x2643'):_0x173284[_0x1fd767('0xdc2')]();break;default:}}function _0x4c33eb(){var _0x4c39d4=_0x34d04d;_0x173284[_0x4c39d4('0x11c9')]=!_0x173284[_0x4c39d4('0x11c9')];}_0x4849ea['bind']('keyup',function(_0x47bfb7){switch(_0x47bfb7['keyCode']){case 0x1b:_0x395b06(function(){var _0x12a231=a0_0x2e7f;_0x173284[_0x12a231('0x11c9')]=![];});break;default:}});function _0x3003f7(){var _0x1158fe=_0x34d04d;_0x173284[_0x1158fe('0x195b')]=!![],_0x173284[_0x1158fe('0x10c7')]=![],_0x173284[_0x1158fe('0xf85')]['push'](_0x173284['sessions'][0x0]['id']),_0x173284[_0x1158fe('0xf85')]['push'](_0x173284['sessions'][0x1]['id']);var _0x416935=_0x173284['sessions'][0x0]['connection'][_0x1158fe('0x14a6')]()[0x0],_0x36d57b=_0x173284[_0x1158fe('0x199d')][0x0][_0x1158fe('0x19d6')]['getReceivers']()[0x0];_0x36d57b[_0x1158fe('0x1d58')][_0x1158fe('0x3dd')]('unmute',function(){setTimeout(function(){_0x215699();},0x3e8);},![]);var _0x3e4b5a=_0x173284['sessions'][0x1][_0x1158fe('0x19d6')]['getSenders']()[0x0],_0x5d7d90=_0x173284[_0x1158fe('0x199d')][0x1][_0x1158fe('0x19d6')][_0x1158fe('0x4f0')]()[0x0];_0x5d7d90['track'][_0x1158fe('0x3dd')]('unmute',function(){setTimeout(function(){_0x215699();},0x3e8);},![]),_0x173284[_0x1158fe('0x199d')][0x0][_0x1158fe('0xdca')]({'useUpdate':![]}),_0x173284[_0x1158fe('0x199d')][0x1][_0x1158fe('0xdca')]({'useUpdate':![]}),_0x36d57b[_0x1158fe('0x1d58')][_0x1158fe('0x2296')]=!![],_0x5d7d90[_0x1158fe('0x1d58')]['enabled']=!![];var _0x31fcd0=new MediaStream(),_0x38d776=new AudioContext(),_0x5e93ce=_0x38d776[_0x1158fe('0x217a')](),_0x3962ec=_0x38d776[_0x1158fe('0x1391')](new MediaStream([_0x5d7d90[_0x1158fe('0x1d58')]]));_0x3962ec[_0x1158fe('0x663')](_0x5e93ce),_0x3962ec=_0x38d776[_0x1158fe('0x1391')](new MediaStream([_0x416935[_0x1158fe('0x1d58')]])),_0x3962ec[_0x1158fe('0x663')](_0x5e93ce),_0x416935[_0x1158fe('0x13d')](_0x5e93ce['stream'][_0x1158fe('0x1aeb')]()[0x0])['then'](function(){}),_0x5e93ce=_0x38d776[_0x1158fe('0x217a')](),_0x3962ec=_0x38d776[_0x1158fe('0x1391')](new MediaStream([_0x36d57b['track']])),_0x3962ec['connect'](_0x5e93ce),_0x3962ec=_0x38d776['createMediaStreamSource'](new MediaStream([_0x3e4b5a[_0x1158fe('0x1d58')]])),_0x3962ec[_0x1158fe('0x663')](_0x5e93ce),_0x3e4b5a['replaceTrack'](_0x5e93ce['stream'][_0x1158fe('0x1aeb')]()[0x0])[_0x1158fe('0x21ad')](function(){var _0x356223=_0x1158fe;_0x31fcd0[_0x356223('0x1744')](_0x36d57b[_0x356223('0x1d58')]),_0x31fcd0['addTrack'](_0x5d7d90[_0x356223('0x1d58')]);var _0x1c3a32=document[_0x356223('0x10a')](_0x356223('0x6dd'));_0x1c3a32[_0x356223('0x15ac')]=_0x31fcd0;var _0x1ff5de=_0x1c3a32[_0x356223('0x653')]();_0x1ff5de!==undefined&&_0x1ff5de['then'](function(){})[_0x356223('0x1c1d')](function(_0x486a8f){var _0x1abc62=_0x356223;console[_0x1abc62('0x6fb')](_0x486a8f);});});}function _0x215699(){var _0x1bd89b=_0x34d04d;if(_0x173284[_0x1bd89b('0x195b')]){var _0x302c53=_0x173284['sessions'][0x0][_0x1bd89b('0x19d6')][_0x1bd89b('0x4f0')]()[0x0],_0x228b5c=_0x173284[_0x1bd89b('0x199d')][0x1]['connection']['getReceivers']()[0x0],_0x1dc20d=new MediaStream();_0x1dc20d[_0x1bd89b('0x1744')](_0x302c53[_0x1bd89b('0x1d58')]),_0x1dc20d[_0x1bd89b('0x1744')](_0x228b5c[_0x1bd89b('0x1d58')]);var _0x2693bb=document[_0x1bd89b('0x10a')]('remote-audio');_0x2693bb['srcObject']=_0x1dc20d;var _0x47cca2=_0x2693bb[_0x1bd89b('0x653')]();_0x47cca2!==undefined&&_0x47cca2[_0x1bd89b('0x21ad')](function(){})[_0x1bd89b('0x1c1d')](function(_0x44ac2f){var _0x4ef44a=_0x1bd89b;console[_0x4ef44a('0x6fb')](_0x44ac2f);});}}function _0x301fcf(_0x251b15){var _0x147112=_0x34d04d;console[_0x147112('0x6f8')](_0x147112('0x2192'),_0x251b15),_0x173284['unhold'](_0x251b15);}function _0x3d64c0(_0xf1a5fc){var _0x4a6ea0=_0x34d04d;console[_0x4a6ea0('0x6f8')](_0x4a6ea0('0x1583'),_0xf1a5fc),_0xf1a5fc['unhold']({'useUpdate':![]}),_0x173284[_0x4a6ea0('0x35e')](_0xf1a5fc),_0x173284[_0x4a6ea0('0x14e5')]&&(_0x54e379[_0x4a6ea0('0x197e')](),_0x54e379[_0x4a6ea0('0x46d')]());}function _0x39bff2(_0x2b15dd){var _0x51cca1=_0x34d04d;console[_0x51cca1('0x6f8')]('record\x20->\x20session',_0x2b15dd),_0x39ab43[_0x51cca1('0x853')]({'controller':_0x51cca1('0x205d'),'controllerAs':'vm','templateUrl':_0x37cdd7,'parent':angular[_0x51cca1('0x1676')](_0x4849ea[_0x51cca1('0x2452')]),'clickOutsideToClose':!![],'locals':{'session':_0x2b15dd,'sessions':_0x173284[_0x51cca1('0x199d')]}});}function _0x1a2146(_0x47d86c){var _0x51b445=_0x34d04d;console[_0x51b445('0x6f8')](_0x51b445('0x19ad'),_0x47d86c),_0x47d86c[_0x51b445('0x1926')]({'useUpdate':![]}),_0x173284[_0x51b445('0x14e5')]&&(_0x54e379[_0x51b445('0x1926')](),_0x54e379[_0x51b445('0x1ddd')]());}function _0x3b84fa(_0x209c34){var _0x51b602=_0x34d04d;console[_0x51b602('0x6f8')](_0x51b602('0x1180'),_0x209c34);var _0x2ff86c=_0x39ab43[_0x51b602('0xee8')]()[_0x51b602('0x4b4')](_0x51b602('0x98c'))['textContent'](_0x51b602('0x1b14'))[_0x51b602('0x5a2')]('Target')[_0x51b602('0x7a7')](_0x51b602('0x2559'))['ok'](_0x51b602('0x98c'))[_0x51b602('0x3b5')](_0x51b602('0x1f40'));_0x39ab43[_0x51b602('0x853')](_0x2ff86c)[_0x51b602('0x21ad')](function(_0x42ea1e){return _0x59bebc(_0x42ea1e);})[_0x51b602('0x21ad')](function(_0x284b20){var _0x2620bc=_0x51b602;_0x209c34[_0x2620bc('0x21bd')](_0x284b20,{'eventHandlers':{'requestSucceeded':_0x12883b(_0x209c34,_0x2620bc('0x1942'),'top\x20right',0xbb8),'requestFailed':_0x12883b(_0x209c34,_0x2620bc('0x280'),'top\x20right',0xbb8)}});});}function _0x12883b(_0x51f0c7,_0x49f53c,_0x31948e,_0x4cb96f){var _0x45a3aa=_0x34d04d;return console[_0x45a3aa('0x6f8')]('onReferCallback\x20->\x20session,\x20textContent,\x20position,\x20delay',_0x51f0c7,_0x49f53c,_0x31948e,_0x4cb96f),function(){var _0x478a7a=_0x45a3aa;_0x3de915[_0x478a7a('0x853')](_0x3de915[_0x478a7a('0x25e7')]()[_0x478a7a('0x226d')](_0x49f53c)['position'](_0x31948e)[_0x478a7a('0x1937')](_0x4cb96f)),_0x8dc580(_0x51f0c7);};}function _0x1fa4d8(_0xc4b664){var _0x51929b=_0x34d04d;console[_0x51929b('0x6f8')](_0x51929b('0x39c'),_0xc4b664),_0x39ab43[_0x51929b('0x853')]({'controller':_0x51929b('0xf51'),'controllerAs':'vm','templateUrl':_0xf687ac,'parent':angular[_0x51929b('0x1676')](_0x4849ea[_0x51929b('0x2452')]),'clickOutsideToClose':!![],'locals':{'session':_0xc4b664,'sessions':_0x86640f()['reject'](_0x173284[_0x51929b('0x199d')],{'id':_0xc4b664['id']}),'isJabraEnabled':_0x173284[_0x51929b('0x14e5')]}});}function _0x117df3(_0x4d0492){var _0x1ac920=_0x34d04d;console['debug'](_0x1ac920('0x912'),_0x4d0492);if(_0x173284['sessions']['length']>0x1)for(var _0x430b63=0x0;_0x430b63<_0x173284[_0x1ac920('0x199d')][_0x1ac920('0x577')];_0x430b63+=0x1){_0x173284['sessions'][_0x430b63]['id']!==_0x4d0492['id']&&!_0x173284[_0x1ac920('0x199d')][_0x430b63][_0x1ac920('0x9eb')]()[_0x1ac920('0x132d')]&&_0x173284['sessions'][_0x430b63][_0x1ac920('0x1926')]({'useUpdate':![]});}}function _0xde2d61(_0x8f2cd9){var _0x28361f=_0x34d04d;_0x39ab43['show']({'controller':_0x28361f('0x1a77'),'controllerAs':'vm','templateUrl':_0x3e9450,'parent':angular['element'](_0x4849ea[_0x28361f('0x2452')]),'targetEvent':_0x8f2cd9,'clickOutsideToClose':!![],'resolve':{'devices':function _0x1c9969(){return navigator['mediaDevices']['enumerateDevices']();}},'locals':{'conf':_0x173284['conf']}})['then'](function(_0x4e1f61){var _0x5754e6=_0x28361f;_0x4e1f61&&(_0x173284['conf']=_0x4e1f61,!_0x173284[_0x5754e6('0x175')]&&(_0x173284[_0x5754e6('0x175')]=!![],_0x54e379&&_0x173284['isJabraInitialized']?_0x54e379[_0x5754e6('0x12d6')]()[_0x5754e6('0x21ad')](function(){var _0x25d890=_0x5754e6;_0x173284['isJabraInitialized']=![],_0x173284[_0x25d890('0x14e5')]=![],_0x4709da(![]);})['catch'](function(_0x3fb52b){var _0x3e789d=_0x5754e6;console[_0x3e789d('0x2092')](_0x3e789d('0xb7e'),_0x3fb52b);}):_0x4709da(![])));});}function _0x31313e(){var _0x4bd4be=_0x34d04d;_0x173284['ua'][_0x4bd4be('0x12b4')](),_0x54e379&&_0x173284['isJabraInitialized']&&_0x54e379['shutdown'](),navigator[_0x4bd4be('0x13b0')][_0x4bd4be('0xcc8')]=function(){};}function _0x5c0a03(_0x94d992,_0x47d9cc){var _0x4ce224=_0x34d04d;console['debug']('onRemoteCall\x20->\x20evt,\x20data',_0x94d992,_0x47d9cc),_0x47d9cc['target']&&(_0x173284[_0x4ce224('0x14a5')]=_0x47d9cc[_0x4ce224('0x14a5')],_0x173284[_0x4ce224('0xdc2')]());}function _0x47291e(_0x52c8c8,_0x595c05){var _0x4e5d07=_0x34d04d;console['debug'](_0x4e5d07('0x10e9'),_0x52c8c8,_0x595c05);if(_0x595c05['target']){var _0x7f9fd9=function _0x2caf0f(_0x2cddf8){var _0x3490f7=_0x4e5d07;if(_0x173284['sessions'][_0x2cddf8][_0x3490f7('0x1e4a')]()&&!_0x173284['sessions'][_0x2cddf8][_0x3490f7('0x9eb')]()[_0x3490f7('0x1f1')])return{'v':_0x59bebc(_0x595c05['target'])[_0x3490f7('0x21ad')](function(_0x4bc922){var _0x6c0a9b=_0x3490f7;_0x4bc922&&_0x173284[_0x6c0a9b('0x199d')][_0x2cddf8][_0x6c0a9b('0x21bd')](_0x4bc922,{'eventHandlers':{'requestSucceeded':_0x12883b(_0x173284['sessions'][_0x2cddf8],'requestSucceeded',_0x6c0a9b('0x1c15'),0xbb8),'requestFailed':_0x12883b(_0x173284[_0x6c0a9b('0x199d')][_0x2cddf8],_0x6c0a9b('0x280'),_0x6c0a9b('0x1c15'),0xbb8)}});})};};for(var _0x2356b7=0x0;_0x2356b7<_0x173284['sessions'][_0x4e5d07('0x577')];_0x2356b7+=0x1){var _0x2ef90e=_0x7f9fd9(_0x2356b7);if(_0x4a7ad6(_0x2ef90e)===_0x4e5d07('0xde3'))return _0x2ef90e['v'];}}}function _0x4ae923(){return new Promise(function(_0xba4197){var _0x39a5aa=a0_0x2e7f,_0x2ef3fd=null;for(var _0x1bd6b8=0x0;_0x1bd6b8<_0x173284[_0x39a5aa('0x199d')][_0x39a5aa('0x577')];_0x1bd6b8++){!_0x86640f()[_0x39a5aa('0x15c')](_0x173284['sessions'][_0x1bd6b8],_0x39a5aa('0x362'))?_0x2ef3fd=_0x173284[_0x39a5aa('0x199d')][_0x1bd6b8]:!_0x173284[_0x39a5aa('0x199d')][_0x1bd6b8][_0x39a5aa('0x362')]&&(_0x2ef3fd=_0x173284['sessions'][_0x1bd6b8]);}_0xba4197(_0x2ef3fd);});}function _0x3469c7(_0x3698cf){var _0x4e32a2=_0x34d04d;console[_0x4e32a2('0x6f8')](_0x4e32a2('0x644'),_0x3698cf);var _0x592ed4=_0x3698cf[_0x4e32a2('0x1881')],_0xdfe2a9=_0x3698cf[_0x4e32a2('0x26f7')],_0x2f218a=_0x3698cf['callbackUrl'];_0x173284['conf']['microphoneId']?_0x173284[_0x4e32a2('0x1071')][_0x4e32a2('0x8e7')][_0x4e32a2('0xf21')]={'deviceId':_0x173284[_0x4e32a2('0x59f')]['microphoneId']}:_0x173284[_0x4e32a2('0x1071')]['mediaConstraints'][_0x4e32a2('0xf21')]=!![];var _0x2d7026=_0x592ed4['replace'](/ /g,'');_0x2d7026=_0x2d7026['replace'](/\(/g,''),_0x2d7026=_0x2d7026['replace'](/\)/g,'');if(_0x2d7026){var _0x84d935=angular[_0x4e32a2('0xd75')](_0x173284[_0x4e32a2('0x1071')]);_0x84d935[_0x4e32a2('0x224e')]=[],_0xdfe2a9&&_0x84d935['extraHeaders'][_0x4e32a2('0x206c')](_0x4e32a2('0x24de')+_0xdfe2a9),_0x2f218a&&_0x84d935[_0x4e32a2('0x224e')][_0x4e32a2('0x206c')]('X-callback-url:\x20'+_0x2f218a),_0x173284[_0x4e32a2('0xc6f')]=!![],_0x173284['ua'][_0x4e32a2('0xdc2')](_0x2d7026,_0x84d935);}}function _0x4dda9a(_0x46bc50){var _0x52d689=_0x34d04d;console[_0x52d689('0x6f8')](_0x52d689('0x2753'),_0x46bc50);var _0xfe45=_0x173284[_0x52d689('0x199d')];if(_0x46bc50['sessionId']){_0xfe45=[];var _0x556981=_0x46bc50[_0x52d689('0x231')];_0xfe45[_0x52d689('0x206c')](_0x22fd08(_0x46bc50['sessionId']));if(_0xfe45[_0x52d689('0x577')]==0x0){console[_0x52d689('0x2533')](_0x52d689('0xc8f')+_0x556981+'\x20not\x20found');return;}}for(var _0x5ebc90=0x0;_0x5ebc90<_0xfe45[_0x52d689('0x577')];_0x5ebc90++){var _0x33ef39=_0xfe45[_0x5ebc90];console[_0x52d689('0x6fb')](_0x52d689('0x1b9b'),_0x33ef39),_0x173284[_0x52d689('0xc7')](_0x33ef39);}}function _0x4ee74f(_0x33e6ba){var _0x4a5dc1=_0x34d04d;console['debug'](_0x4a5dc1('0x1177'),_0x33e6ba);var _0x5a32c4=_0x2b4bb7();if(_0x33e6ba['sessionId']){var _0x17b09c=_0x33e6ba['sessionId'],_0x3b582a=_0x22fd08(_0x33e6ba[_0x4a5dc1('0x231')]);if(!_0x3b582a){console['warn'](_0x4a5dc1('0xc8f')+_0x17b09c+_0x4a5dc1('0x765'));return;}_0x5a32c4=[_0x3b582a];}for(var _0x20f661=0x0;_0x20f661<_0x5a32c4[_0x4a5dc1('0x577')];_0x20f661++){var _0x39b046=_0x5a32c4[_0x20f661];_0x173284[_0x4a5dc1('0x1446')](_0x39b046);}}function _0x2b4bb7(){var _0xa7c4ca=_0x34d04d,_0x4a81d4=_0x86640f()[_0xa7c4ca('0x1d2e')](_0x173284[_0xa7c4ca('0x199d')],function(_0x13e015){var _0x5e7db3=_0xa7c4ca;return _0x13e015['incoming']&&!_0x13e015[_0x5e7db3('0x5f1')];});return _0x4a81d4;}function _0x39e958(_0xc99e54){var _0x288b70=_0x34d04d;console[_0x288b70('0x6f8')](_0x288b70('0x95c'),_0xc99e54);var _0x35de5b=_0x173284[_0x288b70('0x199d')];if(_0xc99e54['sessionId']){_0x35de5b=[],_0x35de5b['push'](_0x22fd08(_0xc99e54['sessionId']));var _0x38297f=_0xc99e54[_0x288b70('0x231')];if(_0x35de5b[_0x288b70('0x577')]==0x0){console[_0x288b70('0x2533')](_0x288b70('0xc8f')+_0x38297f+_0x288b70('0x765'));return;}}for(var _0x128ec8=0x0;_0x128ec8<_0x35de5b[_0x288b70('0x577')];_0x128ec8++){var _0x37a4a7=_0x35de5b[_0x128ec8];_0x173284[_0x288b70('0x1926')](_0x37a4a7);}}function _0x3123c1(_0x5ad44e){var _0x59eeb0=_0x34d04d;console[_0x59eeb0('0x6f8')](_0x59eeb0('0x95c'),_0x5ad44e);if(!_0x5ad44e[_0x59eeb0('0x231')]){console[_0x59eeb0('0x2092')]('sessionId\x20required');return;}var _0xf06a93=_0x22fd08(_0x5ad44e[_0x59eeb0('0x231')]);if(!_0xf06a93){var _0x37b602=_0x5ad44e[_0x59eeb0('0x231')];console[_0x59eeb0('0x2533')](_0x59eeb0('0xc8f')+_0x37b602+_0x59eeb0('0x765'));return;}_0x173284[_0x59eeb0('0xdca')](_0xf06a93);}function _0x33cfe2(_0x1c6b99){var _0x19766f=_0x34d04d;console[_0x19766f('0x6f8')](_0x19766f('0x2333'),_0x1c6b99);if(!_0x1c6b99[_0x19766f('0x231')]){console[_0x19766f('0x2092')](_0x19766f('0x97f'));return;}if(!_0x1c6b99['transferNumber']){console['error'](_0x19766f('0x42'));return;}var _0x285904=_0x22fd08(_0x1c6b99['sessionId']);if(!_0x285904){var _0x13fe21=_0x1c6b99[_0x19766f('0x231')];console[_0x19766f('0x2533')](_0x19766f('0xc8f')+_0x13fe21+_0x19766f('0x765'));return;}_0x285904[_0x19766f('0x21bd')](_0x1c6b99[_0x19766f('0x17e6')],{'eventHandlers':{'requestSucceeded':_0x12883b(_0x285904,_0x19766f('0x1942'),_0x19766f('0x1c15'),0xbb8),'requestFailed':_0x12883b(_0x285904,_0x19766f('0x280'),_0x19766f('0x1c15'),0xbb8)}});}function _0x22fd08(_0x214d31){var _0x5dbb71=_0x34d04d;console['debug'](_0x5dbb71('0x223a'),_0x214d31,_0x173284['sessions']);var _0x45caca=_0x86640f()['find'](_0x173284['sessions'],function(_0x5df474){return _0x5df474['call_id']==_0x214d31;});return _0x45caca;}function _0x248a36(_0x3ee91a,_0x7b8298){var _0x4a2d7d=_0x34d04d;return console['debug'](_0x4a2d7d('0x14c8'),_0x3ee91a,_0x7b8298),_0x1892f({'url':_0x3ee91a,'method':_0x4a2d7d('0x1510'),'params':_0x7b8298});}function _0x2fe8bd(_0x25c71f,_0x34201f,_0x1fd24b){var _0x46325d=_0x34d04d,_0x2d0902=_0x86640f()['find'](_0x25c71f,function(_0x597d68){var _0x4bfab=a0_0x2e7f;return _0x86640f()[_0x4bfab('0x2837')](_0x597d68,_0x34201f);});if(_0x2d0902)return _0x86640f()[_0x46325d('0x2078')](_0x2d0902['replace'](_0x34201f,'')['replace'](_0x1fd24b||':',''));return![];}_0x173284[_0x34d04d('0x14b')]=_0x37e017[_0x34d04d('0x1172')](this),_0x173284['type']=_0x464973,_0x173284['call']=_0x3a3677,_0x173284[_0x34d04d('0x1926')]=_0x1a2146,_0x173284[_0x34d04d('0x21bd')]=_0x3b84fa,_0x173284[_0x34d04d('0x2272')]=_0x39bff2,_0x173284[_0x34d04d('0xdca')]=_0x3d64c0,_0x173284[_0x34d04d('0x1446')]=_0x382a07,_0x173284[_0x34d04d('0xc7')]=_0x8dc580,_0x173284[_0x34d04d('0x510')]=_0x301fcf,_0x173284[_0x34d04d('0x23a4')]=_0x3c56a4,_0x173284[_0x34d04d('0x21d5')]=_0x4c33eb,_0x173284[_0x34d04d('0x10e1')]=_0x1fa4d8,_0x173284['closeDialpad']=_0x553eab,_0x173284[_0x34d04d('0x1f66')]=_0x35c480,_0x173284[_0x34d04d('0x35e')]=_0x117df3,_0x173284[_0x34d04d('0x72')]=_0x1b572e,_0x173284[_0x34d04d('0x3fd')]=_0x52fb00,_0x173284[_0x34d04d('0xd8a')]=_0x3003f7,_0x173284[_0x34d04d('0xbb7')]=_0x215699,_0x3c27f5[_0x34d04d('0x1723')](_0x34d04d('0x241b'),_0xde2d61),_0x3c27f5[_0x34d04d('0x1723')](_0x34d04d('0x1fd8'),_0x31313e),_0x3c27f5[_0x34d04d('0x1723')](_0x34d04d('0x37d'),_0x5c0a03),_0x3c27f5[_0x34d04d('0x1723')](_0x34d04d('0x172b'),_0x47291e),_0x3c27f5[_0x34d04d('0x1723')]('$destroy',function(){var _0x556b75=_0x34d04d;console[_0x556b75('0x6f8')](_0x556b75('0xdfd')),_0x130d8b['removeAllListeners'](_0x556b75('0xf44')),_0x130d8b[_0x556b75('0x16cc')]('webbar:hangup'),_0x130d8b[_0x556b75('0x16cc')](_0x556b75('0x10cb')),_0x130d8b[_0x556b75('0x16cc')](_0x556b75('0x7ee')),_0x130d8b[_0x556b75('0x16cc')]('webbar:unhold'),_0x130d8b[_0x556b75('0x16cc')](_0x556b75('0x171d'));});}function _0xf67e67(){var _0x16a1a0=_0x3877e3;return{'restrict':'E','scope':{'conf':'='},'require':_0x16a1a0('0xb8a'),'controller':'MsPhonebarController','controllerAs':_0x16a1a0('0xd41'),'bindToController':!![],'templateUrl':_0x3664f1};}_0x2321a6[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),_0x3877e3('0x255d'),_0x3877e3('0x2082')];function _0x2321a6(_0x3f504b,_0x4620cf,_0x48d4be){var _0x562939=_0x3877e3,_0x5c4389=this;function _0x34f271(){var _0x261664=a0_0x2e7f;_0x3f504b['hide'](_0x5c4389[_0x261664('0x1995')]);}function _0x3cb519(_0x443724){var _0x36f2b7=a0_0x2e7f;_0x3f504b[_0x36f2b7('0x1c24')](_0x443724);}_0x5c4389[_0x562939('0x255d')]=_0x4620cf,_0x5c4389['required']=_0x48d4be,_0x5c4389[_0x562939('0x167')]=_0x3cb519,_0x5c4389[_0x562939('0xdc2')]=_0x34f271;}const _0x25984b=_0x2321a6;_0x2ff30b['$inject']=[_0x3877e3('0x1850'),'$q',_0x3877e3('0xccd'),_0x3877e3('0x199d'),_0x3877e3('0x262d')],_0x1b3bd0[_0x3877e3('0x1a81')]=[_0x3877e3('0x2313')];function _0x1b3bd0(_0x2b00df){var _0x219125=_0x3877e3;return{'restrict':'C','controller':['$scope',_0x219125('0x88f'),function _0xf6cce0(_0x177ca2,_0x26ec70){function _0x3eb9c0(){var _0x13b15c=a0_0x2e7f;_0x26ec70['css'](_0x13b15c('0x7e5'),'inline'),_0x2b00df(_0x46f1c2,0x3e8);}function _0x46f1c2(){var _0x116011=a0_0x2e7f;_0x26ec70[_0x116011('0x470')](_0x116011('0x7e5'),_0x116011('0x983')),_0x2b00df(_0x3eb9c0,0x3e8);}_0x3eb9c0();}],'replace':!![]};}function _0x2ff30b(_0x2b065e,_0x20a3d5,_0x500c0e,_0x5102f6,_0x4ea739){var _0x1f38ca=_0x3877e3,_0x2491ea=this;_0x2491ea['title']=_0x1f38ca('0x106f'),_0x2491ea['sessions']=_0x5102f6,_0x2491ea[_0x1f38ca('0x262d')]=_0x4ea739,_0x2491ea[_0x1f38ca('0x167')]=_0xa3f726,_0x2491ea[_0x1f38ca('0x187d')]=_0x2759b2,_0x2491ea[_0x1f38ca('0x12b4')]=_0x54ffe2,_0x2491ea[_0x1f38ca('0x2015')]=_0x5c7610;function _0x38e630(){function _0x3b15eb(){var _0x15b2a0=a0_0x2e7f;return Math['floor']((0x1+Math[_0x15b2a0('0x271f')]())*0x10000)['toString'](0x10)[_0x15b2a0('0x166e')](0x1);}return _0x3b15eb()+_0x3b15eb()+'-'+_0x3b15eb()+'-'+_0x3b15eb()+'-'+_0x3b15eb()+'-'+_0x3b15eb()+_0x3b15eb()+_0x3b15eb();}function _0x5c7610(_0x5c5cab,_0x43d810){var _0x3a5215=_0x1f38ca;console[_0x3a5215('0x6fb')](_0x3a5215('0x20bb'));var _0x58b9bb=_0x20a3d5[_0x3a5215('0xca9')](),_0x378f98=_0x43d810||_0x5c5cab[_0x3a5215('0x25a4')][_0x3a5215('0x16e4')](/^.*[\\/]/,''),_0x2b3032=_0x378f98[_0x3a5215('0x1af5')]('.')[0x0];return _0x500c0e[_0x3a5215('0x9ac')][_0x3a5215('0x20bb')]({'uniqueid':_0x2491ea['session'][_0x3a5215('0x968')],'filename':_0x2b3032,'format':_0x3a5215('0x1292')})[_0x3a5215('0x1376')][_0x3a5215('0x21ad')](function(_0x3c33a1){var _0x46854b=_0x3a5215;_0x5c5cab[_0x46854b('0x25a4')]=_0x2b3032+'.wav',_0x5c5cab[_0x46854b('0x2799')]=_0x3c33a1[_0x46854b('0x2799')],_0x5c5cab[_0x46854b('0x209')]=_0x46854b('0x154d'),_0x2491ea['session'][_0x46854b('0xd46')]=!![],_0x58b9bb[_0x46854b('0x8ac')](_0x5c5cab);})[_0x3a5215('0x1c1d')](function(_0x439dac){_0x58b9bb['reject'](_0x439dac);}),_0x58b9bb[_0x3a5215('0x71b')];}function _0x54ffe2(_0xbabe67){var _0x20c1a5=_0x1f38ca;return console['log'](_0x20c1a5('0x146f')),_0x500c0e[_0x20c1a5('0x9ac')][_0x20c1a5('0x146f')]({'uniqueid':_0x2491ea[_0x20c1a5('0x262d')][_0x20c1a5('0x968')],'mixmonitorid':_0xbabe67[_0x20c1a5('0x2799')]})[_0x20c1a5('0x1376')][_0x20c1a5('0x21ad')](function(){var _0x313232=_0x20c1a5;_0xbabe67['status']=_0x313232('0x1e26'),_0x2491ea[_0x313232('0x262d')]['monitor']=_0x86640f()[_0x313232('0xb34')](_0x2491ea[_0x313232('0x262d')]['monitors'],{'status':_0x313232('0x154d')});})[_0x20c1a5('0x1c1d')](function(_0x1379cb){var _0x4d9556=_0x20c1a5;console[_0x4d9556('0x2092')](_0x1379cb);});}function _0x2759b2(){var _0x51a784=_0x1f38ca,_0x28ecbe=_0x2b065e[_0x51a784('0xee8')]({'skipHide':!![]})[_0x51a784('0x4b4')]('Start\x20new\x20recording')['textContent']('Type\x20the\x20file\x20name.')[_0x51a784('0x5a2')](_0x51a784('0x1d45'))[_0x51a784('0x7a7')](_0x51a784('0x1d45'))[_0x51a784('0x538')](_0x38e630())['ok']('Start')[_0x51a784('0x3b5')](_0x51a784('0x1f40'));_0x2b065e[_0x51a784('0x853')](_0x28ecbe)['then'](function(_0x4701fd){return _0x5c7610({},_0x4701fd);})['then'](function(_0x4c1e53){var _0x374013=_0x51a784;_0x2491ea[_0x374013('0x262d')][_0x374013('0x1f49')][_0x374013('0x206c')](_0x4c1e53);});}function _0xa3f726(){var _0x37a3f2=_0x1f38ca;_0x2b065e[_0x37a3f2('0x1c24')]();}}_0xa07ef5[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),_0x3877e3('0x21be'),_0x3877e3('0x199d'),_0x3877e3('0x262d'),'isJabraEnabled'];function _0xa07ef5(_0x320adf,_0x53c31f,_0x4d4cc8,_0x5c6be9,_0x1274c0){var _0x14ee21=_0x3877e3,_0x453df4=this,_0x4768f2=window['jabra'];_0x453df4[_0x14ee21('0x4b4')]=_0x14ee21('0xa4d'),_0x453df4['sessions']=_0x4d4cc8,_0x453df4['session']=_0x5c6be9,_0x453df4[_0x14ee21('0x14e5')]=_0x1274c0,_0x453df4['sessionTarget']=null;_0x4d4cc8['length']&&(_0x453df4[_0x14ee21('0x14a5')]=_0x4d4cc8[0x0][_0x14ee21('0x1775')]);_0x453df4[_0x14ee21('0x167')]=_0x24da2f,_0x453df4[_0x14ee21('0x1e61')]=_0x52c952;function _0x52c952(){var _0x39d6f2=_0x14ee21,_0x74189b,_0x9d12e4,_0x2d4a76=_0x86640f()['find'](_0x4d4cc8,function(_0x8dbcc){var _0x5a5013=a0_0x2e7f;if(_0x8dbcc[_0x5a5013('0x1775')]===_0x453df4[_0x5a5013('0x14a5')])return _0x8dbcc;});_0x2d4a76[_0x39d6f2('0x120f')]?(_0x74189b=_0x2d4a76,_0x9d12e4=_0x453df4[_0x39d6f2('0x262d')]):(_0x74189b=_0x453df4[_0x39d6f2('0x262d')],_0x9d12e4=_0x2d4a76),_0x9d12e4[_0x39d6f2('0x21bd')](_0x74189b[_0x39d6f2('0x1775')],{'replaces':_0x74189b,'eventHandlers':{'requestSucceeded':_0x3e2b72(_0x5c6be9,'requestSucceeded','top\x20right',0xbb8,_0x453df4[_0x39d6f2('0x14e5')]),'requestFailed':_0x3e2b72(_0x5c6be9,_0x39d6f2('0x280'),_0x39d6f2('0x1c15'),0xbb8,_0x453df4[_0x39d6f2('0x14e5')])}});}function _0x3e2b72(_0x26e5f9,_0x54134e,_0x27deb8,_0x3a47ce,_0x1652ff){var _0x3eb38e=_0x14ee21;return console['debug'](_0x3eb38e('0x22af'),_0x26e5f9,_0x54134e,_0x27deb8,_0x3a47ce),function(){var _0x48a989=_0x3eb38e;_0x53c31f[_0x48a989('0x853')](_0x53c31f[_0x48a989('0x25e7')]()[_0x48a989('0x226d')](_0x54134e)[_0x48a989('0x1c9f')](_0x27deb8)['hideDelay'](_0x3a47ce)),_0x26e5f9[_0x48a989('0xc7')](),_0x4768f2&&_0x1652ff&&_0x4768f2[_0x48a989('0x1ddd')](),_0x24da2f();};}function _0x24da2f(_0x2572ed){var _0x3d6dd2=_0x14ee21;_0x320adf[_0x3d6dd2('0x1c24')](_0x2572ed);}}const _0xc28898=_0xa07ef5;_0x542e10[_0x3877e3('0x1a81')]=['$mdDialog','conf',_0x3877e3('0xd04')];function _0x542e10(_0x205056,_0x23fcfa,_0x387726){var _0x296c07=_0x3877e3,_0x28d0cf=this;_0x86640f()[_0x296c07('0x16a2')](_0x387726,function(_0x51a29f){var _0x78fe10=_0x296c07;return _0x51a29f[_0x78fe10('0x24d1')]==='audioinput'&&(_0x51a29f[_0x78fe10('0x23ff')]===_0x78fe10('0x1e6e')||_0x51a29f[_0x78fe10('0x23ff')]===_0x78fe10('0x6a9'))||_0x51a29f[_0x78fe10('0x24d1')]===_0x78fe10('0x14e6')&&(_0x51a29f[_0x78fe10('0x23ff')]===_0x78fe10('0x1e6e')||_0x51a29f[_0x78fe10('0x23ff')]===_0x78fe10('0x6a9'));}),_0x23fcfa[_0x296c07('0xaf0')]=_0x282c6b(_0x387726,_0x296c07('0x14e6'),_0x296c07('0xaf0')),_0x23fcfa['speakerId']=_0x282c6b(_0x387726,_0x296c07('0x14e6'),_0x296c07('0x47a')),_0x23fcfa[_0x296c07('0x16cf')]=_0x282c6b(_0x387726,_0x296c07('0xd00'),_0x296c07('0x16cf')),_0x23fcfa[_0x296c07('0x829')]=_0x23fcfa[_0x296c07('0x829')]||0.5,_0x23fcfa[_0x296c07('0x6a5')]=_0x23fcfa[_0x296c07('0x6a5')]||0.5,_0x23fcfa['microphoneVolume']=_0x23fcfa[_0x296c07('0xf3')]||0x1,_0x23fcfa[_0x296c07('0xbe2')]=_0x23fcfa[_0x296c07('0xbe2')]||![],_0x23fcfa[_0x296c07('0xab6')]=_0x23fcfa[_0x296c07('0xab6')]||![],_0x23fcfa[_0x296c07('0xb30')]=_0x23fcfa[_0x296c07('0xb30')]||![],_0x28d0cf[_0x296c07('0x59f')]=angular['copy'](_0x23fcfa),_0x28d0cf[_0x296c07('0xd04')]=_0x387726,_0x28d0cf[_0x296c07('0x103e')]=_0x116c65,_0x28d0cf[_0x296c07('0x167')]=_0x22bb74,_0x28d0cf[_0x296c07('0x183a')]=_0x43a0b2;function _0x43a0b2(){var _0x2ac12f=_0x296c07;return _0x28d0cf[_0x2ac12f('0x59f')]['browserName'][_0x2ac12f('0xac2')]()==='chrome'||_0x28d0cf[_0x2ac12f('0x59f')]['browserName'][_0x2ac12f('0xac2')]()==='opera'||_0x28d0cf[_0x2ac12f('0x59f')][_0x2ac12f('0x1157')][_0x2ac12f('0xac2')]()===_0x2ac12f('0x1e72');}function _0x282c6b(_0x11dd39,_0x196746,_0x6e6fa5){var _0x294bb9=_0x296c07,_0x13d3ec;if(!_0x23fcfa[_0x6e6fa5])_0x13d3ec=_0x86640f()[_0x294bb9('0x1d2e')](_0x11dd39,function(_0x79d01e){var _0x185207=_0x294bb9;return _0x79d01e[_0x185207('0x24d1')]===_0x196746;}),_0x13d3ec&&(_0x23fcfa[_0x6e6fa5]=_0x13d3ec[_0x294bb9('0x23ff')]);else{_0x13d3ec=_0x86640f()['find'](_0x11dd39,function(_0x13899c){var _0x30c257=_0x294bb9;return _0x13899c[_0x30c257('0x23ff')]===_0x23fcfa[_0x6e6fa5];});if(_0x13d3ec)return _0x13d3ec[_0x294bb9('0x23ff')];var _0x309545=_0x86640f()[_0x294bb9('0x127')](_0x11dd39,function(_0x27bd58){var _0x1be906=_0x294bb9;return _0x27bd58[_0x1be906('0x24d1')]===_0x196746;});if(_0x309545>=0x0)return _0x11dd39[_0x309545][_0x294bb9('0x23ff')];}return _0x23fcfa[_0x6e6fa5]||null;}function _0x116c65(){var _0x46bfa7=_0x296c07;_0x205056[_0x46bfa7('0x1c24')](_0x28d0cf[_0x46bfa7('0x59f')]);}function _0x22bb74(){var _0x5baa29=_0x296c07;_0x205056[_0x5baa29('0x1c24')]();}}const _0x13901a=_0x542e10,_0x501917=_0x398308['p']+_0x3877e3('0x690');_0xcfe3ed['$inject']=[_0x3877e3('0x143b'),_0x3877e3('0x23e7')],_0x303005[_0x3877e3('0x1a81')]=[_0x3877e3('0x1978'),_0x3877e3('0x1bd7')];function _0x152652(){return{'restrict':'E','scope':{'query':'=','filters':'=','search':'&'},'controller':_0x303005,'controllerAs':'vm','bindToController':!![],'templateUrl':_0x501917};}function _0x303005(_0x109390,_0x21e826){var _0x4e2c3d=_0x3877e3,_0x42daed=this;_0x42daed['pickerModels']={},_0x42daed[_0x4e2c3d('0x61d')]={},_0x42daed[_0x4e2c3d('0x1a9d')]=_0x109390[_0x4e2c3d('0x1a9d')],_0x42daed[_0x4e2c3d('0x17e1')]=_0x40ffdf,_0x42daed[_0x4e2c3d('0x182')]=_0x2587ae,_0x42daed['onMultiselectSelection']=_0x132e26,_0x42daed['onDateRangeSelection']=_0x4d995f,_0x42daed[_0x4e2c3d('0x64d')]=_0x4ef414,_0x42daed['clearSelection']=_0x1b5e44,_0x42daed[_0x4e2c3d('0x1087')]=_0x50b495;function _0x40ffdf(_0x308afe){_0x66cff3(_0x308afe);}function _0x2587ae(_0x10c01b){var _0x3672f0=_0x4e2c3d,_0x137808=_0x10c01b[_0x3672f0('0xddb')];_0x42daed[_0x3672f0('0x77')][_0x137808]?_0x42daed[_0x3672f0('0x20a9')][_0x137808]=_0x109390['setSelectedDate'](_0x42daed[_0x3672f0('0x77')][_0x137808]):_0x42daed[_0x3672f0('0x20a9')][_0x137808]={'dateStart':null};}function _0x132e26(_0x5b9da3){var _0x51cc5c=_0x4e2c3d;_0x66cff3(_0x5b9da3),_0x42daed[_0x51cc5c('0x24e7')]();}function _0x4d995f(_0x474a69){var _0x31fafc=_0x4e2c3d,_0x20a2db=_0x474a69['key'];_0x42daed['pickerModels'][_0x20a2db][_0x31fafc('0x1dda')]?_0x42daed['query'][_0x20a2db]={'$gte':_0x1088bc()(_0x42daed['pickerModels'][_0x20a2db][_0x31fafc('0x1dda')])[_0x31fafc('0x215e')](0x0,!![])[_0x31fafc('0x153')](),'$lte':_0x1088bc()(_0x42daed[_0x31fafc('0x20a9')][_0x20a2db][_0x31fafc('0x1cc9')])['utcOffset'](0x0,!![])[_0x31fafc('0x1842')](0x17,'hours')[_0x31fafc('0x1842')](0x3b,'minutes')[_0x31fafc('0x1842')](0x3b,_0x31fafc('0x22ac'))[_0x31fafc('0x153')]()}:_0x42daed[_0x31fafc('0x77')][_0x20a2db]=undefined,_0x42daed[_0x31fafc('0x24e7')]();}function _0x4ef414(_0x18f910){var _0x4082e4=_0x4e2c3d,_0x4945c5=_0x18f910[_0x4082e4('0xddb')];_0x42daed[_0x4082e4('0x20a9')][_0x4945c5]={'dateStart':null},delete _0x42daed[_0x4082e4('0x77')][_0x4945c5],_0x42daed['search']();}function _0x50b495(_0x5abb3c){var _0x1d4aca=_0x4e2c3d,_0x5d52cf=_0x5abb3c[_0x1d4aca('0xddb')],_0x3c5f09=_0x5abb3c[_0x1d4aca('0x1c5f')]||'id';_0x42daed[_0x1d4aca('0x77')][_0x5d52cf]=_0x86640f()['map'](_0x5abb3c[_0x1d4aca('0x26a0')],_0x3c5f09),_0x66cff3(_0x5abb3c),_0x42daed[_0x1d4aca('0x24e7')]();}function _0x1b5e44(_0x569214){var _0x28e774=_0x4e2c3d,_0x38a809=_0x569214['key'],_0x34dd3b=_0x569214[_0x28e774('0x1c5f')]||'id';_0x42daed[_0x28e774('0x77')][_0x38a809]=_0x569214[_0x28e774('0x1787')]===![]?[_0x86640f()['head'](_0x569214[_0x28e774('0x26a0')])[_0x34dd3b]]:[],_0x66cff3(_0x569214),_0x42daed['search']();}function _0x66cff3(_0x20c6d3){var _0x2ccdcd=_0x4e2c3d,_0x4ab5c7=_0x20c6d3[_0x2ccdcd('0xddb')],_0x3d0173={'param':_0x42daed[_0x2ccdcd('0x77')][_0x4ab5c7],'resources':_0x20c6d3[_0x2ccdcd('0x26a0')],'placeholder':_0x20c6d3[_0x2ccdcd('0x5a2')],'ngValue':_0x20c6d3[_0x2ccdcd('0x1c5f')]};_0x21e826[_0x2ccdcd('0x136b')](_0x3d0173)[_0x2ccdcd('0x21ad')](function(_0x4200cd){var _0x3c5dd3=_0x2ccdcd;_0x42daed[_0x3c5dd3('0x61d')][_0x4ab5c7]=_0x4200cd;});}}function _0xcfe3ed(_0x43ec3b,_0x58057c){var _0x5675e7={'localizationMap':_0x58057c,'setSelectedDate':_0x134f4c};function _0x134f4c(_0x9b846e){var _0x46b7cb=a0_0x2e7f,_0x323240=new Date(_0x1088bc()['utc'](_0x9b846e[_0x46b7cb('0x170a')])[_0x46b7cb('0x153')](_0x46b7cb('0x21dd'))),_0x560672=new Date(_0x1088bc()[_0x46b7cb('0x493')](_0x9b846e[_0x46b7cb('0x269')])[_0x46b7cb('0x153')]('YYYY-MM-DD')),_0x1c5449={'dateStart':new Date(_0x323240['getFullYear'](),_0x323240[_0x46b7cb('0x40c')](),_0x323240['getDate']()),'dateEnd':new Date(_0x560672[_0x46b7cb('0x14bb')](),_0x560672['getMonth'](),_0x560672[_0x46b7cb('0x2131')]())};return _0x1c5449['selectedTemplateName']=_0x4043fd(_0x1c5449),_0x1c5449;}function _0x4043fd(_0x4dabed){var _0x41bc91=a0_0x2e7f;if(_0x1088bc()(_0x4dabed['dateStart'])[_0x41bc91('0x20b5')](_0x4dabed[_0x41bc91('0x1cc9')])){if(_0x15b717(_0x4dabed))return _0x5675e7[_0x41bc91('0x1a9d')]['Today'];else return _0x1c68d7(_0x4dabed)?_0x5675e7['localizationMap']['Yesterday']:_0x43ec3b(_0x41bc91('0x2457'))(_0x4dabed[_0x41bc91('0x1dda')],'dd\x20MMM\x20yyyy');}else{if(_0x444500(_0x4dabed))return _0x5675e7['localizationMap']['This\x20Week'];else{if(_0xc7e5d2(_0x4dabed))return _0x5675e7['localizationMap']['Last\x20Week'];else{if(_0x24563d(_0x4dabed))return _0x5675e7[_0x41bc91('0x1a9d')][_0x41bc91('0x2497')];else{if(_0x6722c1(_0x4dabed))return _0x5675e7[_0x41bc91('0x1a9d')][_0x41bc91('0x1e9b')];else{if(_0x53311a(_0x4dabed))return _0x5675e7['localizationMap'][_0x41bc91('0x1147')];else return _0x2dfa57(_0x4dabed)?_0x5675e7[_0x41bc91('0x1a9d')][_0x41bc91('0x1d5f')]:_0x43ec3b(_0x41bc91('0x2457'))(_0x4dabed['dateStart'],'dd'+(_0x4dabed[_0x41bc91('0x1dda')][_0x41bc91('0x40c')]()!==_0x4dabed[_0x41bc91('0x1cc9')][_0x41bc91('0x40c')]()||_0x4dabed[_0x41bc91('0x1dda')]['getFullYear']()!==_0x4dabed['dateEnd'][_0x41bc91('0x14bb')]()?_0x41bc91('0x1b6f'):'')+(_0x4dabed['dateStart'][_0x41bc91('0x14bb')]()!==_0x4dabed[_0x41bc91('0x1cc9')]['getFullYear']()?_0x41bc91('0x24a7'):''))+'\x20-\x20'+_0x43ec3b(_0x41bc91('0x2457'))(_0x4dabed[_0x41bc91('0x1cc9')],'dd\x20MMM\x20yyyy');}}}}}}function _0x15b717(_0x4375ba){var _0x2c9177=a0_0x2e7f;return _0x1088bc()()[_0x2c9177('0x1982')](_0x2c9177('0x1837'))[_0x2c9177('0x20b5')](_0x4375ba[_0x2c9177('0x1dda')]);}function _0x1c68d7(_0x5924ce){var _0x438a77=a0_0x2e7f;return _0x1088bc()()[_0x438a77('0xafa')](0x1,_0x438a77('0x18ad'))[_0x438a77('0x1982')]('day')[_0x438a77('0x20b5')](_0x5924ce[_0x438a77('0x1dda')]);}function _0x444500(_0x12a4d2){var _0x30d96f=a0_0x2e7f;return _0x1088bc()()[_0x30d96f('0x1982')]('isoWeek')[_0x30d96f('0x20b5')](_0x12a4d2[_0x30d96f('0x1dda')],_0x30d96f('0x1837'))&&_0x1088bc()()[_0x30d96f('0x117b')](_0x30d96f('0x260a'))[_0x30d96f('0x20b5')](_0x12a4d2[_0x30d96f('0x1cc9')],'day');}function _0xc7e5d2(_0x4f4f5d){var _0xb89fad=a0_0x2e7f;return _0x1088bc()()['subtract'](0x1,_0xb89fad('0x72a'))[_0xb89fad('0x1982')](_0xb89fad('0x260a'))[_0xb89fad('0x20b5')](_0x4f4f5d[_0xb89fad('0x1dda')],_0xb89fad('0x1837'))&&_0x1088bc()()[_0xb89fad('0xafa')](0x1,_0xb89fad('0x72a'))['endOf'](_0xb89fad('0x260a'))[_0xb89fad('0x20b5')](_0x4f4f5d['dateEnd'],_0xb89fad('0x1837'));}function _0x24563d(_0x3f6c36){var _0x190afa=a0_0x2e7f;return _0x1088bc()()[_0x190afa('0x1982')]('month')[_0x190afa('0x20b5')](_0x3f6c36[_0x190afa('0x1dda')],'day')&&_0x1088bc()()['endOf'](_0x190afa('0xb64'))[_0x190afa('0x20b5')](_0x3f6c36[_0x190afa('0x1cc9')],_0x190afa('0x1837'));}function _0x6722c1(_0x445eaf){var _0x4abc90=a0_0x2e7f;return _0x1088bc()()[_0x4abc90('0xafa')](0x1,_0x4abc90('0x2044'))['startOf'](_0x4abc90('0xb64'))[_0x4abc90('0x20b5')](_0x445eaf[_0x4abc90('0x1dda')],_0x4abc90('0x1837'))&&_0x1088bc()()[_0x4abc90('0xafa')](0x1,_0x4abc90('0x2044'))[_0x4abc90('0x117b')](_0x4abc90('0xb64'))['isSame'](_0x445eaf[_0x4abc90('0x1cc9')],_0x4abc90('0x1837'));}function _0x53311a(_0x46e61c){var _0x4ded35=a0_0x2e7f;return _0x1088bc()()['startOf'](_0x4ded35('0x1b8e'))[_0x4ded35('0x20b5')](_0x46e61c['dateStart'],_0x4ded35('0x1837'))&&_0x1088bc()()[_0x4ded35('0x117b')](_0x4ded35('0x1b8e'))[_0x4ded35('0x20b5')](_0x46e61c[_0x4ded35('0x1cc9')],_0x4ded35('0x1837'));}function _0x2dfa57(_0x56961a){var _0x493669=a0_0x2e7f;return _0x1088bc()()[_0x493669('0xafa')](0x1,_0x493669('0x4fc'))[_0x493669('0x1982')]('year')[_0x493669('0x20b5')](_0x56961a[_0x493669('0x1dda')],_0x493669('0x1837'))&&_0x1088bc()()[_0x493669('0xafa')](0x1,_0x493669('0x4fc'))[_0x493669('0x117b')](_0x493669('0x1b8e'))[_0x493669('0x20b5')](_0x56961a[_0x493669('0x1cc9')],_0x493669('0x1837'));}return _0x5675e7;}function _0x4d4485(){return{'restrict':'A','scope':{'msRandomClass':'='},'link':function _0x1ace17(_0x5550b9,_0x4bde6c){var _0x5a7580=a0_0x2e7f,_0x52469d=_0x5550b9[_0x5a7580('0xfbe')][Math['floor'](Math[_0x5a7580('0x271f')]()*_0x5550b9[_0x5a7580('0xfbe')][_0x5a7580('0x577')])];_0x4bde6c['addClass'](_0x52469d);}};}const _0x54e71d=_0x4d4485;_0x373fb6[_0x3877e3('0x1a81')]=[_0x3877e3('0xccd')];function _0x373fb6(_0x2dbdcc){return{'restrict':'E','scope':{'id':'=','model':'=','download':'='},'replace':!![],'link':function _0x1effd8(_0x19e837,_0x27cf81){var _0x39263e=a0_0x2e7f,_0x279185=![],_0x3f098a=document[_0x39263e('0x162e')]('audio');!_0x19e837[_0x39263e('0xb0')]&&_0x3f098a[_0x39263e('0x127a')](_0x39263e('0x1495'),_0x39263e('0x202c')),_0x3f098a[_0x39263e('0x127a')](_0x39263e('0x1f14'),_0x39263e('0x983')),_0x3f098a[_0x39263e('0x127a')](_0x39263e('0x6df'),''),_0x3f098a[_0x39263e('0x127a')](_0x39263e('0x1ff3'),_0x39263e('0x6d7')),_0x3f098a['setAttribute']('src','\x20'),_0x3f098a['onplay']=function(_0xe23356){var _0x514118=_0x39263e;!_0x279185&&(_0x279185=!![],_0xe23356[_0x514118('0x1f1c')](),_0x2dbdcc[_0x19e837[_0x514118('0x55d')]||_0x514118('0x9b8')][_0x514118('0xb0')]({'id':_0x19e837['id']})[_0x514118('0x1376')][_0x514118('0x21ad')](function(_0x58c97d){var _0x71688a=_0x514118,_0x46a701=[_0x58c97d[_0x71688a('0x3da')]],_0x472fdb=new Blob(_0x46a701,{'type':_0x58c97d['type']});_0x3f098a[_0x71688a('0x127a')]('type',_0x58c97d['type']),_0x3f098a['setAttribute'](_0x71688a('0xec'),URL[_0x71688a('0x167b')](_0x472fdb)),_0x3f098a['play']();})['catch'](function(_0x55d0fd){var _0x3d2d10=_0x514118;console[_0x3d2d10('0x2092')](_0x55d0fd);}));},_0x27cf81[_0x39263e('0x92d')](_0x3f098a);}};}const _0x46fc35=_0x373fb6;function _0x4f6a06(){return{'restrict':'A','link':function _0x46c52b(_0x443d59,_0x3f74f4){var _0x5ae55a=a0_0x2e7f,_0x508e88=angular[_0x5ae55a('0x1676')](_0x5ae55a('0x208f'));_0x3f74f4['after'](_0x508e88),_0x508e88['append'](_0x3f74f4);}};}const _0x36a45f=_0x4f6a06;var _0x28574a=_0x398308(0x1703),_0x59f1d1=_0x398308['n'](_0x28574a);_0x12a42e[_0x3877e3('0x1a81')]=[_0x3877e3('0x2313'),'msScrollConfig',_0x3877e3('0x12d9'),'motionConfig'];function _0x3d90c5(){var _0x46af9b=_0x3877e3,_0x35f9b0={'wheelSpeed':0x1,'wheelPropagation':![],'swipePropagation':!![],'minScrollbarLength':null,'maxScrollbarLength':null,'useBothWheelAxes':![],'useKeyboard':!![],'suppressScrollX':![],'suppressScrollY':![],'scrollXMarginOffset':0x0,'scrollYMarginOffset':0x0,'stopPropagationOnClick':!![]};this[_0x46af9b('0xc5d')]=function(){function _0x45db72(){return _0x35f9b0;}var _0x59a825={'getConfig':_0x45db72};return _0x59a825;};function _0x15355a(_0x33378a){var _0x1ae15d=_0x46af9b;_0x35f9b0=angular[_0x1ae15d('0x1ad')]({},_0x35f9b0,_0x33378a);}this[_0x46af9b('0x13')]=_0x15355a;}function _0x12a42e(_0x4c2098,_0x317510,_0x815597,_0x4aa8a6){return{'restrict':'AE','compile':function _0x542fd7(_0x5b188b){var _0x31588f=a0_0x2e7f;if(_0x4aa8a6[_0x31588f('0x1b2f')](_0x31588f('0x6c6')))return;if(_0x4aa8a6[_0x31588f('0x1b2f')](_0x31588f('0x1bc5'))&&_0x815597[_0x31588f('0xdba')]())return;return _0x5b188b['addClass'](_0x31588f('0x1e99')),function _0x3d50d9(_0x11a178,_0x30d421,_0x11c579){var _0x2fe7e=_0x31588f,_0x5511c4={};_0x11c579[_0x2fe7e('0x1d77')]&&(_0x5511c4=_0x11a178[_0x2fe7e('0x1e8a')](_0x11c579[_0x2fe7e('0x1d77')]));_0x5511c4=angular[_0x2fe7e('0x1ad')]({},_0x317510['getConfig'](),_0x5511c4),_0x59f1d1()['initialize'](_0x30d421[0x0],_0x5511c4);function _0x3040c0(){_0x59f1d1()['update'](_0x30d421[0x0]);}_0x30d421['on'](_0x2fe7e('0x970'),_0x3040c0),_0x11a178['$watch'](function(){var _0x3fe4cd=_0x2fe7e;return _0x30d421[_0x3fe4cd('0x1c4d')](_0x3fe4cd('0x27a0'));},function(_0x565157,_0x3df0d1){var _0x3f4506=_0x2fe7e;if(angular[_0x3f4506('0x1a5d')](_0x565157)||angular[_0x3f4506('0x816')](_0x565157,_0x3df0d1))return;_0x3040c0();}),_0x11a178['$watch'](function(){var _0x4feac2=_0x2fe7e;return _0x30d421[_0x4feac2('0x1c4d')](_0x4feac2('0xd31'));},function(_0xc04500,_0x2180d7){var _0x5e4f8f=_0x2fe7e;if(angular[_0x5e4f8f('0x1a5d')](_0xc04500)||angular[_0x5e4f8f('0x816')](_0xc04500,_0x2180d7))return;_0x3040c0();}),_0x11a178[_0x2fe7e('0x1723')](_0x2fe7e('0x1210'),function(){var _0x4e29fa=_0x2fe7e;_0x30d421[_0x4e29fa('0xb49')]('mouseenter'),_0x59f1d1()[_0x4e29fa('0x1581')](_0x30d421[0x0]);});};}};}const _0xc44c85=_0x398308['p']+'src/js/modules/core/directives/ms-search-bar/ms-search-bar.html/ms-search-bar-[chunkhash].html';_0xd9bcaa[_0x3877e3('0x1a81')]=['$document'],_0x31f7c8[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0x88f'),_0x3877e3('0x2313')];function _0x31f7c8(_0x1a37db,_0x343570,_0x3661d5){var _0x257692=_0x3877e3,_0x2e09e2=this;_0x2e09e2[_0x257692('0x42d')]=!![],_0x2e09e2[_0x257692('0x77')]=undefined,_0x2e09e2['queryOptions']={'debounce':_0x2e09e2['debounce']||0x0};var _0x139107=_0x2e09e2['collapseOnBlur']&&_0x2e09e2[_0x257692('0x1cb8')]==_0x257692('0x19bd')?!![]:![];_0x2e09e2[_0x257692('0x20c1')]=![],_0x2e09e2[_0x257692('0x1904')]=null,_0x2e09e2['selectedResultIndex']=0x0,_0x2e09e2[_0x257692('0x696')]=![],_0x2e09e2[_0x257692('0x1081')]=_0x51f5fd,_0x2e09e2[_0x257692('0xee9')]=_0x5102a2,_0x2e09e2[_0x257692('0x3ec')]=_0x3a4fb4,_0x2e09e2['collapse']=_0x503431,_0x2e09e2['blurCollapse']=_0x2837d7,_0x2e09e2[_0x257692('0x11ac')]=_0x2c58c8,_0x2e09e2[_0x257692('0x72d')]=_0x556856,_0x2e09e2['handleMouseenter']=_0x54ba27,_0x2e09e2[_0x257692('0x2678')]=_0x348e9b,_0x2e09e2[_0x257692('0x1fb0')]=_0x325a71,_0x2e09e2['ensureSelectedResultIsVisible']=_0x31e1de;function _0x51f5fd(){var _0x25ac17=_0x257692;_0x1a37db[_0x25ac17('0x10e8')](_0x25ac17('0x1748'),function(_0x436446,_0x35180b){var _0x40c17a=_0x25ac17;if(angular[_0x40c17a('0x1a5d')](_0x436446))return;if(angular['equals'](_0x436446,_0x35180b))return;if(_0x2e09e2['collapsed']){if(_0x436446)_0x1a37db['expand']();else return;}var _0x45678a=_0x1a37db[_0x40c17a('0x223d')][_0x40c17a('0x1e8a')](_0x2e09e2[_0x40c17a('0x630')],{'query':_0x436446}),_0x10946a=angular[_0x40c17a('0x9e1')](_0x45678a),_0x433a2d=_0x45678a&&!!_0x45678a['then'];_0x10946a&&_0x2e09e2[_0x40c17a('0xee9')](_0x45678a),_0x433a2d&&(_0x2e09e2[_0x40c17a('0x20c1')]=!![],_0x45678a[_0x40c17a('0x21ad')](function(_0x234a00){var _0x8c91ed=_0x40c17a;_0x2e09e2[_0x8c91ed('0xee9')](_0x234a00);},function(){var _0x56c3e1=_0x40c17a;_0x2e09e2[_0x56c3e1('0xee9')]([]);})[_0x40c17a('0x13e')](function(){var _0xdb2975=_0x40c17a;_0x2e09e2[_0xdb2975('0x20c1')]=![];}));});}function _0x5102a2(_0x1c8326){var _0x42a7c1=_0x257692;if(_0x2e09e2['collapsed'])return;var _0x2b0a17=angular[_0x42a7c1('0x9e1')](_0x1c8326),_0x21e7f3=_0x1c8326===null;if(!_0x2b0a17&&!_0x21e7f3)return;_0x2e09e2[_0x42a7c1('0xeba')]=0x0,_0x2e09e2[_0x42a7c1('0x1904')]=_0x1c8326;}function _0x3a4fb4(){var _0x15b357=_0x257692;_0x2e09e2[_0x15b357('0x42d')]=![],_0x1a37db[_0x15b357('0x3ec')](),_0x2e09e2[_0x15b357('0x453')]&&angular['isFunction'](_0x2e09e2[_0x15b357('0x453')])&&_0x2e09e2['onExpand']();}function _0x503431(){var _0x431a26=_0x257692;_0x2e09e2['query']='',_0x2e09e2['populateResults'](null),_0x2e09e2['collapsed']=!![],_0x1a37db[_0x431a26('0x2773')](),_0x2e09e2[_0x431a26('0x9a7')]&&angular[_0x431a26('0x272f')](_0x2e09e2[_0x431a26('0x9a7')])&&_0x2e09e2[_0x431a26('0x9a7')]();}function _0x2837d7(){if(!_0x139107)return;_0x2e09e2['collapse']();}function _0x2c58c8(_0x329d3c){_0x329d3c['preventDefault']();}function _0x556856(_0x3e4bb8){var _0x5b817b=_0x257692,_0x238078=_0x3e4bb8[_0x5b817b('0x27e6')],_0x56ce35=[0x1b,0x26,0x28];_0x56ce35[_0x5b817b('0x2004')](_0x238078)>-0x1&&_0x3e4bb8['preventDefault']();switch(_0x238078){case 0xd:if(!_0x2e09e2[_0x5b817b('0x1904')])return;_0x2e09e2[_0x5b817b('0x1fb0')](_0x2e09e2['results'][_0x2e09e2['selectedResultIndex']]);break;case 0x1b:_0x2e09e2['collapse']();break;case 0x26:_0x2e09e2[_0x5b817b('0xeba')]-0x1>=0x0&&(_0x2e09e2['selectedResultIndex']--,_0x2e09e2[_0x5b817b('0x1ba1')]());break;case 0x28:if(!_0x2e09e2[_0x5b817b('0x1904')])return;_0x2e09e2['selectedResultIndex']+0x1<_0x2e09e2[_0x5b817b('0x1904')][_0x5b817b('0x577')]&&(_0x2e09e2['selectedResultIndex']++,_0x2e09e2[_0x5b817b('0x1ba1')]());break;default:break;}}function _0x54ba27(_0x38c95e){var _0x169787=_0x257692;if(_0x2e09e2[_0x169787('0x696')])return;_0x2e09e2['selectedResultIndex']=_0x38c95e;}function _0x348e9b(){var _0x5c5972=_0x257692;_0x2e09e2[_0x5c5972('0x696')]=!![],_0x3661d5[_0x5c5972('0x3b5')](_0x2e09e2[_0x5c5972('0x11ad')]),_0x2e09e2[_0x5c5972('0x11ad')]=_0x3661d5(function(){var _0x4916ab=_0x5c5972;_0x2e09e2[_0x4916ab('0x696')]=![];},0xfa);}function _0x325a71(_0x582143){var _0x500d9e=_0x257692;_0x2e09e2[_0x500d9e('0x1130')]&&_0x2e09e2[_0x500d9e('0x1130')]({'item':_0x582143}),_0x2e09e2[_0x500d9e('0x2773')]();}function _0x31e1de(){var _0x2be346=_0x257692,_0x377771=_0x343570[_0x2be346('0x1d2e')](_0x2be346('0x3f6')),_0xcb4bf5=angular[_0x2be346('0x1676')](_0x377771[_0x2be346('0x1d2e')](_0x2be346('0x17b7'))[_0x2e09e2[_0x2be346('0xeba')]]);if(_0x377771&&_0xcb4bf5){var _0x475728=_0xcb4bf5['position']()['top']-0x8,_0x55ecf8=_0xcb4bf5[_0x2be346('0x1c9f')]()[_0x2be346('0x229d')]+_0xcb4bf5['outerHeight']()+0x8;_0x2e09e2[_0x2be346('0x2678')](),_0x377771[_0x2be346('0x192b')]()>_0x475728&&_0x377771[_0x2be346('0x192b')](_0x475728),_0x55ecf8>_0x377771[_0x2be346('0x5cf')]()+_0x377771[_0x2be346('0x192b')]()&&_0x377771['scrollTop'](_0x55ecf8-_0x377771['height']());}}}function _0xd9bcaa(_0x4ed346){var _0x50c52a=_0x3877e3;return{'restrict':'E','scope':{},'require':_0x50c52a('0x6c'),'controller':_0x50c52a('0x1a29'),'bindToController':{'query':'=?','debounce':'=?','direction':'@','iconColor':'@','onSearch':'@','onResultClick':'&?','onExpand':'&?','onCollapse':'&?','collapseOnBlur':'@'},'templateUrl':_0xc44c85,'compile':function _0x4d2a2a(_0x4d42bb){var _0x399c5a=_0x50c52a;return _0x4d42bb[_0x399c5a('0x11da')](_0x399c5a('0xafb')),function _0x1ff7e9(_0xbb402c,_0x4f4d7d){var _0x62c072=_0x399c5a,_0x34f302=_0x4ed346[_0x62c072('0x1d2e')](_0x62c072('0x2452'));function _0x504303(){var _0x54e67a=_0x62c072;_0x4f4d7d[_0x54e67a('0x11da')](_0x54e67a('0x2047'));if(_0xbb402c['vm']['direction']===_0x54e67a('0x16f4')){_0x4f4d7d[_0x54e67a('0x11da')]('down');var _0xadb5bd=_0x4f4d7d[_0x54e67a('0x2390')](_0x54e67a('0x1e1e'));if(_0xadb5bd)_0xadb5bd[_0x54e67a('0x11da')](_0x54e67a('0x26ac'));}_0x34f302[_0x54e67a('0x11da')](_0x54e67a('0x1369'));}function _0x534672(){var _0x1e1636=_0x62c072;_0x4f4d7d[_0x1e1636('0x1fe6')](_0x1e1636('0x2047'));if(_0xbb402c['vm'][_0x1e1636('0xfab')]==='down'){_0x4f4d7d[_0x1e1636('0x1fe6')](_0x1e1636('0x16f4'));var _0x330412=_0x4f4d7d[_0x1e1636('0x2390')](_0x1e1636('0x1e1e'));if(_0x330412)_0x330412[_0x1e1636('0x1fe6')]('h-128');}_0x34f302[_0x1e1636('0x1fe6')]('ms-search-bar-expanded');}_0xbb402c[_0x62c072('0x2773')]=_0x534672,_0xbb402c[_0x62c072('0x3ec')]=_0x504303;};}};}const _0x345276=_0x398308['p']+_0x3877e3('0x1da5');_0x1d5914['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0x26'),_0x3877e3('0x243f'),'$timeout','$q',_0x3877e3('0x48e')];function _0x1d5914(_0x481d72,_0x153bb0,_0x59efbd,_0x234099,_0x2d2785,_0x4d659c){var _0x550fed=_0x3877e3,_0x24b934=this;_0x24b934[_0x550fed('0x77')]='',_0x24b934[_0x550fed('0x26c')]={'debounce':0x12c},_0x24b934[_0x550fed('0x20c1')]=![],_0x24b934[_0x550fed('0xeba')]=0x0,_0x24b934[_0x550fed('0x696')]=![],_0x24b934[_0x550fed('0x20ff')]=![],_0x24b934[_0x550fed('0x1904')]=null,_0x24b934['shortcuts']=[],_0x24b934['sortableOptions']={'ghostClass':_0x550fed('0x189d'),'forceFallback':!![],'fallbackClass':_0x550fed('0x1713'),'onSort':function _0x39a1a3(){var _0x543493=_0x550fed;_0x24b934[_0x543493('0xa7b')]();}};function _0x5934f1(){var _0x171a34=_0x550fed;_0x24b934[_0x171a34('0x179e')]()[_0x171a34('0x21ad')](function(_0x2d4f95){var _0xa5f32a=_0x171a34;_0x24b934[_0xa5f32a('0x1a16')]=_0x2d4f95,_0x24b934[_0xa5f32a('0x1a16')][_0xa5f32a('0x577')]>0x0&&(_0x24b934[_0xa5f32a('0x1904')]=_0x2d4f95);}),_0x481d72[_0x171a34('0x10e8')](_0x171a34('0x26d2'),function(_0x52a8bf,_0x3c25e1){var _0x403603=_0x171a34;if(angular[_0x403603('0x1a5d')](_0x52a8bf))return;if(angular[_0x403603('0x816')](_0x52a8bf,_0x3c25e1))return;_0x24b934[_0x403603('0x20c1')]=!![],_0x24b934[_0x403603('0xee9')]()[_0x403603('0x21ad')](function(_0xefd9c8){var _0x2ded63=_0x403603;_0x24b934[_0x2ded63('0x1904')]=_0xefd9c8;},function(){var _0x49ae06=_0x403603;_0x24b934[_0x49ae06('0x1904')]=[];})[_0x403603('0x13e')](function(){var _0x2ef559=_0x403603;_0x24b934[_0x2ef559('0x20c1')]=![];});});}function _0x532bb1(){var _0x454b7d=_0x550fed,_0x419245=[],_0x5460d6=_0x4d659c[_0x454b7d('0x7d0')](),_0xbaab41=_0x2d2785['defer']();for(var _0x3530ab=0x0;_0x3530ab<_0x5460d6[_0x454b7d('0x577')];_0x3530ab++){_0x5460d6[_0x3530ab][_0x454b7d('0x1ff0')]&&_0x419245['push'](_0x5460d6[_0x3530ab]);}if(_0x24b934['query']){_0x419245=_0x419245[_0x454b7d('0x1503')](function(_0x584350){var _0x2f5938=_0x454b7d;if(_0x584350[_0x2f5938('0x4b4')][_0x2f5938('0xac2')]()[_0x2f5938('0xb34')](_0x24b934['query'][_0x2f5938('0xac2')]()))return!![];});for(var _0x571b10=0x0;_0x571b10<_0x419245['length'];_0x571b10++){_0x419245[_0x571b10][_0x454b7d('0x15fc')]=![];for(var _0x3ce67f=0x0;_0x3ce67f<_0x24b934['shortcuts'][_0x454b7d('0x577')];_0x3ce67f++){if(_0x24b934['shortcuts'][_0x3ce67f]['_id']===_0x419245[_0x571b10][_0x454b7d('0xc57')]){_0x419245[_0x571b10]['hasShortcut']=!![];break;}}}}else _0x24b934[_0x454b7d('0x1a16')][_0x454b7d('0x577')]>0x0&&(_0x419245=_0x24b934[_0x454b7d('0x1a16')]);return _0x24b934[_0x454b7d('0xeba')]=0x0,_0x234099(function(){var _0x3ec7be=_0x454b7d;_0xbaab41[_0x3ec7be('0x8ac')](_0x419245);},0xfa),_0xbaab41[_0x454b7d('0x71b')];}function _0x1f1bab(){var _0xb35156=_0x550fed,_0x234bd0=_0x2d2785[_0xb35156('0xca9')](),_0x30b2fe=angular[_0xb35156('0xcf1')](_0x153bb0[_0xb35156('0x595')](_0xb35156('0x251d')));return angular[_0xb35156('0x1a5d')](_0x30b2fe)&&(_0x30b2fe=[{'title':_0xb35156('0xfed'),'icon':_0xb35156('0x1ff5'),'state':_0xb35156('0x27c8'),'weight':0x5,'children':[],'uisref':_0xb35156('0x27c8'),'hasShortcut':!![]},{'title':_0xb35156('0x1e18'),'icon':_0xb35156('0x169a'),'state':_0xb35156('0x171c'),'weight':0xa,'children':[],'uisref':_0xb35156('0x171c'),'hasShortcut':!![]}],_0x153bb0[_0xb35156('0x8c4')]('motion.shortcuts',angular[_0xb35156('0x20c6')](_0x30b2fe))),_0x234bd0[_0xb35156('0x8ac')](_0x30b2fe),_0x234bd0[_0xb35156('0x71b')];}function _0x5eac7c(){var _0x846421=_0x550fed,_0x4977da=_0x2d2785[_0x846421('0xca9')]();return _0x153bb0[_0x846421('0x8c4')](_0x846421('0x251d'),angular['toJson'](_0x24b934[_0x846421('0x1a16')])),_0x234099(function(){var _0x261d41=_0x846421;_0x4977da[_0x261d41('0x8ac')]({'success':!![]});},0xfa),_0x4977da[_0x846421('0x71b')];}function _0x5af150(_0x2915eb){var _0x325084=_0x550fed;_0x2915eb[_0x325084('0x15fc')]=!![],_0x24b934[_0x325084('0x1a16')][_0x325084('0x206c')](_0x2915eb),_0x24b934[_0x325084('0xa7b')]();}function _0x1e3afe(_0x5a0263){var _0x8774c5=_0x550fed;_0x5a0263[_0x8774c5('0x15fc')]=![];for(var _0x3674fe=0x0;_0x3674fe<_0x24b934[_0x8774c5('0x1a16')][_0x8774c5('0x577')];_0x3674fe++){_0x24b934[_0x8774c5('0x1a16')][_0x3674fe][_0x8774c5('0xc57')]===_0x5a0263[_0x8774c5('0xc57')]&&(_0x24b934[_0x8774c5('0x1a16')][_0x8774c5('0xafe')](_0x3674fe,0x1),!_0x24b934[_0x8774c5('0x77')]&&(_0x24b934['shortcuts'][_0x8774c5('0x577')]===0x0?_0x24b934[_0x8774c5('0x1904')]=null:_0x3674fe>=_0x24b934[_0x8774c5('0x1a16')][_0x8774c5('0x577')]&&(_0x24b934[_0x8774c5('0xeba')]=_0x24b934['shortcuts'][_0x8774c5('0x577')]-0x1)));}_0x24b934[_0x8774c5('0xa7b')]();}function _0x279bfa(_0x4767e5){var _0x3372c4=_0x550fed;_0x4767e5[_0x3372c4('0x15fc')]?_0x24b934[_0x3372c4('0x117c')](_0x4767e5):_0x24b934[_0x3372c4('0x866')](_0x4767e5);}function _0x25eed3(_0x159d34){_0x159d34['preventDefault']();}function _0x49e37b(_0x408361){var _0x35d063=_0x550fed,_0x3f0b95=_0x408361[_0x35d063('0x27e6')],_0x51f9a1=[0x26,0x28];_0x51f9a1[_0x35d063('0x2004')](_0x3f0b95)>-0x1&&_0x408361[_0x35d063('0x1f1c')]();switch(_0x3f0b95){case 0xd:_0x24b934[_0x35d063('0x1fb0')](_0x24b934[_0x35d063('0x1904')][_0x24b934[_0x35d063('0xeba')]]);break;case 0x26:_0x24b934[_0x35d063('0xeba')]-0x1>=0x0&&(_0x24b934['selectedResultIndex']--,_0x24b934[_0x35d063('0x1ba1')]());break;case 0x28:_0x24b934['selectedResultIndex']+0x1<_0x24b934[_0x35d063('0x1904')][_0x35d063('0x577')]&&(_0x24b934[_0x35d063('0xeba')]++,_0x24b934[_0x35d063('0x1ba1')]());break;default:break;}}function _0x248ea1(_0x28799a){var _0x4d2ab6=_0x550fed;if(_0x24b934[_0x4d2ab6('0x696')])return;_0x24b934[_0x4d2ab6('0xeba')]=_0x28799a;}function _0x1a47b6(){var _0x42c4d2=_0x550fed;_0x24b934[_0x42c4d2('0x696')]=!![],_0x234099[_0x42c4d2('0x3b5')](_0x24b934[_0x42c4d2('0x11ad')]),_0x24b934[_0x42c4d2('0x11ad')]=_0x234099(function(){var _0xd42dc2=_0x42c4d2;_0x24b934[_0xd42dc2('0x696')]=![];},0xfa);}function _0x11691f(){var _0x3a8cea=_0x550fed,_0x4c0b0a=_0x59efbd['find'](_0x3a8cea('0x1f20'))['find'](_0x3a8cea('0xe21')),_0x128c9f=angular[_0x3a8cea('0x1676')](_0x4c0b0a['find'](_0x3a8cea('0x17b7'))[_0x24b934[_0x3a8cea('0xeba')]]);if(_0x4c0b0a&&_0x128c9f){var _0x418a86=_0x128c9f['position']()['top']-0x8,_0x46571c=_0x128c9f['position']()['top']+_0x128c9f[_0x3a8cea('0x1afc')]()+0x8;_0x24b934[_0x3a8cea('0x2678')](),_0x4c0b0a[_0x3a8cea('0x192b')]()>_0x418a86&&_0x4c0b0a[_0x3a8cea('0x192b')](_0x418a86),_0x46571c>_0x4c0b0a['height']()+_0x4c0b0a[_0x3a8cea('0x192b')]()&&_0x4c0b0a[_0x3a8cea('0x192b')](_0x46571c-_0x4c0b0a[_0x3a8cea('0x5cf')]());}}function _0x2423a9(){var _0x9a0312=_0x550fed;_0x24b934[_0x9a0312('0x20ff')]=!_0x24b934[_0x9a0312('0x20ff')];}_0x24b934[_0x550fed('0xee9')]=_0x532bb1,_0x24b934[_0x550fed('0x179e')]=_0x1f1bab,_0x24b934[_0x550fed('0xa7b')]=_0x5eac7c,_0x24b934['addShortcut']=_0x5af150,_0x24b934[_0x550fed('0x117c')]=_0x1e3afe,_0x24b934[_0x550fed('0x1fb0')]=_0x279bfa,_0x24b934[_0x550fed('0x11ac')]=_0x25eed3,_0x24b934[_0x550fed('0x72d')]=_0x49e37b,_0x24b934[_0x550fed('0x19f7')]=_0x248ea1,_0x24b934['temporarilyIgnoreMouseEvents']=_0x1a47b6,_0x24b934[_0x550fed('0x1ba1')]=_0x11691f,_0x24b934[_0x550fed('0x23f9')]=_0x2423a9,_0x5934f1();}function _0x4c0cbc(){var _0xf6fea6=_0x3877e3;return{'restrict':'E','scope':{},'require':_0xf6fea6('0x11be'),'controller':_0xf6fea6('0x1878'),'bindToController':{},'templateUrl':_0x345276,'compile':function _0x4e66ea(_0x595cef){var _0x38f582=_0xf6fea6;return _0x595cef[_0x38f582('0x11da')](_0x38f582('0x87')),function _0xc74fe9(){};}};}function _0xbaee9b(){var _0x35dd41=_0x3877e3;return{'restrict':'A','require':_0x35dd41('0xc5c'),'link':function _0x1cedac(_0x10e439,_0x12e98a,_0x51e816,_0x2a14e1){var _0x2810e1=_0x35dd41;_0x10e439[_0x2810e1('0x10e8')](function(){var _0x445d9a=_0x2810e1;return _0x2a14e1[_0x445d9a('0x1f8')]()&&!_0x2a14e1['isLockedOpen']();},function(_0x58b9ec){var _0x12bb31=_0x2810e1;if(angular[_0x12bb31('0x1a5d')](_0x58b9ec))return;_0x12e98a[_0x12bb31('0x12e2')]()[_0x12bb31('0x2806')](_0x12bb31('0x1404'),_0x58b9ec),angular[_0x12bb31('0x1676')](_0x12bb31('0x8b'))[_0x12bb31('0x2806')](_0x12bb31('0xfd6'),_0x58b9ec);});}};}const _0x1e396e=_0xbaee9b;_0x274da1[_0x3877e3('0x1a81')]=[_0x3877e3('0x61f')];function _0x274da1(_0x312524){return{'restrict':'E','link':function _0x55ac0(_0x21332b,_0x40396e){var _0x4ce5c8=a0_0x2e7f,_0x588d82=_0x21332b[_0x4ce5c8('0x1723')](_0x4ce5c8('0x27df'),function(){var _0x33b8a6=_0x4ce5c8;_0x312524[_0x33b8a6('0x154b')](_0x40396e)[_0x33b8a6('0x21ad')](function(){_0x588d82(),_0x21332b=null,_0x40396e=null;});});}};}const _0x3243fe=_0x274da1,_0x46023a=_0x398308['p']+'src/js/modules/core/directives/ms-stepper/templates/horizontal/horizontal.html/horizontal-[chunkhash].html',_0x521534=_0x398308['p']+_0x3877e3('0x1684'),_0x5f376b=_0x398308['p']+_0x3877e3('0xcf3');_0x12f9da[_0x3877e3('0x1a81')]=[_0x3877e3('0x2313')],_0x1651e6[_0x3877e3('0x1a81')]=[_0x3877e3('0x2313')];function _0x1651e6(_0x168020){var _0x1324c5=_0x3877e3,_0x5a6e5b=this;_0x5a6e5b[_0x1324c5('0x581')]=undefined,_0x5a6e5b[_0x1324c5('0xb52')]=_0x1324c5('0xf1e'),_0x5a6e5b['steps']=[],_0x5a6e5b[_0x1324c5('0x283a')]=undefined,_0x5a6e5b[_0x1324c5('0x5b5')]=0x1;function _0x3e0250(_0x285593){var _0x1ea24b=_0x1324c5;return!(angular[_0x1ea24b('0x1a5d')](_0x285593)||_0x285593<0x1||_0x285593>_0x5a6e5b[_0x1ea24b('0x528')]['length']);}function _0x2fe3bd(_0x42d172){_0x5a6e5b['orientation']=_0x42d172||'horizontal';}function _0x3ea6b1(_0x574d21){_0x5a6e5b['mainForm']=_0x574d21;}function _0x2448f3(){var _0x3cec71=_0x1324c5;_0x5a6e5b[_0x3cec71('0x17db')](0x1);}function _0x534695(_0xbd36ce){var _0x5e2c8c=_0x1324c5;if(!_0x3e0250(_0xbd36ce))return null;return!!_0x5a6e5b['steps'][_0xbd36ce-0x1][_0x5e2c8c('0x18ea')]['hideStep'];}function _0x52845f(_0x14e780,_0x5de769,_0x4c8137){var _0x589f8a=_0x1324c5,_0x10a8e7={'element':_0x14e780,'scope':_0x5de769,'form':_0x4c8137,'stepNumber':_0x5de769[_0x589f8a('0x1222')]||_0x5a6e5b[_0x589f8a('0x528')][_0x589f8a('0x577')]+0x1,'stepTitle':_0x5de769[_0x589f8a('0x27e4')],'stepTitleTranslate':_0x5de769['stepTitleTranslate']};return _0x5a6e5b['steps'][_0x589f8a('0x206c')](_0x10a8e7),_0x5a6e5b['steps'][_0x589f8a('0x1944')](function(_0x2ab818,_0x507c3a){var _0x189d2a=_0x589f8a;return _0x2ab818[_0x189d2a('0xbf4')]-_0x507c3a['stepNumber'];}),_0x10a8e7;}function _0x2a13b9(){var _0x3f7d71=_0x1324c5;_0x5a6e5b[_0x3f7d71('0x17db')](_0x5a6e5b[_0x3f7d71('0x5b5')]);}function _0x33af04(){_0x168020(function(){var _0x260262=a0_0x2e7f;for(var _0x353687=0x0;_0x353687<_0x5a6e5b[_0x260262('0x528')]['length'];_0x353687++){_0x5a6e5b['steps'][_0x353687][_0x260262('0x85e')][_0x260262('0xfe8')](),_0x5a6e5b[_0x260262('0x528')][_0x353687][_0x260262('0x85e')][_0x260262('0x26f0')]();}_0x5a6e5b[_0x260262('0x581')]['$setPristine'](),_0x5a6e5b['mainForm'][_0x260262('0x26f0')](),_0x2448f3();});}function _0x151322(_0xcc7cdb){var _0x517167=_0x1324c5;if(!_0x3e0250(_0xcc7cdb))return;_0x5a6e5b[_0x517167('0x5b5')]=_0xcc7cdb;if(_0x5a6e5b['orientation']===_0x517167('0xf1e')){for(var _0x540a5a=0x0;_0x540a5a<_0x5a6e5b['steps'][_0x517167('0x577')];_0x540a5a++){_0x5a6e5b[_0x517167('0x528')][_0x540a5a][_0x517167('0x1676')][_0x517167('0x1c24')]();}_0x5a6e5b[_0x517167('0x528')][_0x5a6e5b['currentStepNumber']-0x1][_0x517167('0x1676')]['show']();}else{if(_0x5a6e5b['orientation']===_0x517167('0xc1b')){for(var _0xbebceb=0x0;_0xbebceb<_0x5a6e5b[_0x517167('0x528')][_0x517167('0x577')];_0xbebceb++){_0x5a6e5b[_0x517167('0x528')][_0xbebceb]['element'][_0x517167('0x1d2e')](_0x517167('0x13df'))['hide']();}_0x5a6e5b[_0x517167('0x528')][_0x5a6e5b[_0x517167('0x5b5')]-0x1]['element'][_0x517167('0x1d2e')]('.ms-stepper-step-content')['show']();}}}function _0x451d9a(_0x7b3dd5){if(_0x534695(_0x7b3dd5))return;_0x5a6e5b['setCurrentStep'](_0x7b3dd5);}function _0x2c9807(){var _0x57c2ad=_0x1324c5,_0xd44c7e=_0x5a6e5b[_0x57c2ad('0x5b5')]-0x1;for(var _0x5b9cc4=_0xd44c7e;_0x5b9cc4>=0x1;_0x5b9cc4--){if(!_0x534695(_0x5b9cc4)){_0xd44c7e=_0x5b9cc4;break;}}_0x5a6e5b[_0x57c2ad('0x17db')](_0xd44c7e);}function _0x1dbf31(){var _0x286467=_0x1324c5,_0x20d63a=_0x5a6e5b['currentStepNumber']+0x1;for(var _0x5d19b3=_0x20d63a;_0x5d19b3<=_0x5a6e5b[_0x286467('0x528')]['length'];_0x5d19b3++){if(!_0x534695(_0x5d19b3)){_0x20d63a=_0x5d19b3;break;}}_0x5a6e5b[_0x286467('0x17db')](_0x20d63a);}function _0x149978(){var _0x24afa2=_0x1324c5;_0x5a6e5b[_0x24afa2('0x17db')](_0x5a6e5b[_0x24afa2('0x528')][_0x24afa2('0x577')]);}function _0x28aef1(){var _0x2ddc1a=_0x1324c5;return _0x5a6e5b[_0x2ddc1a('0x5b5')]===0x1;}function _0x3c435a(){var _0x465f11=_0x1324c5;return _0x5a6e5b[_0x465f11('0x5b5')]===_0x5a6e5b[_0x465f11('0x528')][_0x465f11('0x577')];}function _0x50a455(_0x1a4297){if(!_0x3e0250(_0x1a4297))return null;return _0x5a6e5b['currentStepNumber']===_0x1a4297;}function _0x19a20c(_0x1909d2){var _0x5b333a=_0x1324c5;if(!_0x3e0250(_0x1909d2))return null;return _0x5a6e5b[_0x5b333a('0x528')][_0x1909d2-0x1][_0x5b333a('0x18ea')][_0x5b333a('0x1a3e')];}function _0x2a865f(_0x2f1602){if(!_0x3e0250(_0x2f1602))return null;if(_0x19a20c(_0x2f1602))return!![];return _0x5a6e5b['steps'][_0x2f1602-0x1]['form']['$valid'];}function _0x27ca2c(_0x20b0fa){if(!_0x3e0250(_0x20b0fa))return null;var _0x1e06ac=![];for(var _0x57ab18=0x1;_0x57ab18<_0x20b0fa;_0x57ab18++){if(!_0x2a865f(_0x57ab18)){_0x1e06ac=!![];break;}}return _0x1e06ac;}function _0x5d0363(_0x7c27c5){var _0x159cd3=_0x1324c5;return!_0x534695(_0x7c27c5[_0x159cd3('0xbf4')]);}function _0x68c6da(){var _0x3702f1=_0x1324c5;return _0x5a6e5b[_0x3702f1('0x581')][_0x3702f1('0x6bd')];}_0x5a6e5b[_0x1324c5('0xfa3')]=_0x2fe3bd,_0x5a6e5b['registerMainForm']=_0x3ea6b1,_0x5a6e5b['registerStep']=_0x52845f,_0x5a6e5b['setupSteps']=_0x2a13b9,_0x5a6e5b[_0x1324c5('0x1c3c')]=_0x33af04,_0x5a6e5b[_0x1324c5('0x17db')]=_0x151322,_0x5a6e5b[_0x1324c5('0x9b1')]=_0x451d9a,_0x5a6e5b[_0x1324c5('0xedd')]=_0x2c9807,_0x5a6e5b[_0x1324c5('0x89b')]=_0x1dbf31,_0x5a6e5b[_0x1324c5('0x5c1')]=_0x2448f3,_0x5a6e5b[_0x1324c5('0x2305')]=_0x149978,_0x5a6e5b['isFirstStep']=_0x28aef1,_0x5a6e5b[_0x1324c5('0x200a')]=_0x3c435a,_0x5a6e5b[_0x1324c5('0xb88')]=_0x50a455,_0x5a6e5b['isStepDisabled']=_0x27ca2c,_0x5a6e5b['isStepOptional']=_0x19a20c,_0x5a6e5b[_0x1324c5('0x16d5')]=_0x534695,_0x5a6e5b[_0x1324c5('0x19a3')]=_0x5d0363,_0x5a6e5b['isStepValid']=_0x2a865f,_0x5a6e5b[_0x1324c5('0x1a8a')]=_0x3e0250,_0x5a6e5b[_0x1324c5('0xdd')]=_0x68c6da;}function _0x561c53(){var _0x2660ed=_0x3877e3;return{'restrict':'A','scope':{},'require':[_0x2660ed('0x85e'),'msHorizontalStepper'],'priority':0x3e9,'controller':'MsStepperController\x20as\x20MsStepper','bindToController':{'model':_0x2660ed('0x1820')},'transclude':!![],'templateUrl':_0x46023a,'compile':function _0x54cf44(_0xd67b70){return _0xd67b70['addClass']('ms-stepper'),function _0xbc3602(_0x5689e7,_0x40b38e,_0x256c0c,_0x96aa1){var _0x33eae9=a0_0x2e7f,_0x23295a=_0x96aa1[0x0],_0x2d21f5=_0x96aa1[0x1];_0x2d21f5[_0x33eae9('0xfa3')]('horizontal'),_0x2d21f5['registerMainForm'](_0x23295a),_0x2d21f5[_0x33eae9('0x9d5')]();};}};}function _0x187ef6(){var _0x44d7cb=_0x3877e3;return{'restrict':'E','require':[_0x44d7cb('0x85e'),_0x44d7cb('0x701')],'priority':0x3e8,'scope':{'step':'=?','stepTitle':'=?','stepTitleTranslate':'=?','optionalStep':'=?','hideStep':'=?'},'compile':function _0xc500d5(_0x33add2){var _0x24bc5b=_0x44d7cb;return _0x33add2[_0x24bc5b('0x11da')](_0x24bc5b('0x1ea1')),function _0xdc95de(_0x2c866c,_0xe7b37d,_0x4b9bff,_0x3b9673){var _0x51495a=_0x24bc5b,_0x5d0865=_0x3b9673[0x0],_0x1ee074=_0x3b9673[0x1];_0x2c866c[_0x51495a('0x1a3e')]=angular[_0x51495a('0x1465')](_0x4b9bff[_0x51495a('0x1a3e')]),_0x1ee074[_0x51495a('0x15c5')](_0xe7b37d,_0x2c866c,_0x5d0865),_0xe7b37d['hide']();};}};}function _0x12f9da(_0x1b6d4f){var _0x20ea0e=_0x3877e3;return{'restrict':'A','scope':{},'require':['form',_0x20ea0e('0x17d7')],'priority':0x3e9,'controller':_0x20ea0e('0x1a8f'),'bindToController':{'model':'=ngModel'},'transclude':!![],'templateUrl':_0x521534,'compile':function _0x2498b7(_0x243afe){return _0x243afe['addClass']('ms-stepper'),function _0x46c60f(_0x4474e1,_0x5949d8,_0x4deda6,_0x56a626){var _0xd0e3da=_0x56a626[0x0],_0x5687b5=_0x56a626[0x1];_0x1b6d4f(function(){var _0x35cf80=a0_0x2e7f;_0x5687b5[_0x35cf80('0xfa3')](_0x35cf80('0xc1b')),_0x5687b5[_0x35cf80('0x749')](_0xd0e3da),_0x5687b5[_0x35cf80('0x9d5')]();});};}};}function _0x17ef41(){var _0x559108=_0x3877e3;return{'restrict':'E','require':[_0x559108('0x85e'),_0x559108('0xba8')],'priority':0x3e8,'scope':{'step':'=?','stepTitle':'=?','stepTitleTranslate':'=?','optionalStep':'=?','hideStep':'=?'},'transclude':!![],'templateUrl':-_0x5f376b,'compile':function _0x353420(_0x387888){var _0x3a878b=_0x559108;return _0x387888[_0x3a878b('0x11da')]('ms-stepper-step'),function _0x4f97a9(_0x41d656,_0xc89052,_0x59d6b6,_0x5e24d7){var _0x38dd7a=_0x3a878b,_0x3add1a=_0x5e24d7[0x0],_0x10ad10=_0x5e24d7[0x1];_0x41d656[_0x38dd7a('0x1a3e')]=angular['isDefined'](_0x59d6b6[_0x38dd7a('0x1a3e')]),_0x41d656[_0x38dd7a('0x23a3')]=_0x10ad10[_0x38dd7a('0x15c5')](_0xc89052,_0x41d656,_0x3add1a),_0x41d656[_0x38dd7a('0x17e2')]=_0x10ad10,_0xc89052[_0x38dd7a('0x1d2e')](_0x38dd7a('0x13df'))[_0x38dd7a('0x1c24')]();};}};}const _0xd999b1=_0x398308['p']+_0x3877e3('0x16a3');;function _0x8d8c25(){var _0x8b1eeb=_0x3877e3,_0x4b9390=this;_0x4b9390[_0x8b1eeb('0x262b')]=_0x59a464,_0x4b9390['canScroll']=_0x12e1c8;function _0x59a464(_0x42560f){var _0x55365d=_0x8b1eeb;_0x42560f=='left'?$('#tab-container')[_0x55365d('0x12b4')]()[_0x55365d('0x446')]({'scrollLeft':_0x55365d('0x1f28')},0x3e8):$(_0x55365d('0x21d3'))[_0x55365d('0x12b4')]()[_0x55365d('0x446')]({'scrollLeft':_0x55365d('0xbc6')},0x3e8);}function _0x12e1c8(_0x2cb6a7){var _0x531490=_0x8b1eeb;switch(_0x16ea6e()){case _0x531490('0x3b'):return!![];case _0x531490('0x1194'):return _0x2cb6a7==_0x531490('0x1194')?!![]:![];case'right':return _0x2cb6a7==_0x531490('0x2575')?!![]:![];case _0x531490('0x983'):return![];default:return![];}}function _0x16ea6e(){var _0x5200e3=_0x8b1eeb,_0x12fad2=document[_0x5200e3('0x10a')]('bar-container'),_0x150193=document[_0x5200e3('0x10a')]('tab-container');if(_0x150193['scrollWidth']>_0x12fad2[_0x5200e3('0xd31')]&&_0x12fad2[_0x5200e3('0x898')]==0x0&&_0x150193[_0x5200e3('0x898')]==0x0)return'right';else{if(_0x150193[_0x5200e3('0xd31')]>_0x12fad2[_0x5200e3('0xd31')]&&_0x150193[_0x5200e3('0x898')]>_0x12fad2[_0x5200e3('0x898')]&&_0x12fad2[_0x5200e3('0xd31')]+_0x150193[_0x5200e3('0x898')]>=_0x150193['scrollWidth'])return _0x5200e3('0x1194');else return _0x150193[_0x5200e3('0xd31')]>_0x12fad2[_0x5200e3('0xd31')]&&_0x150193[_0x5200e3('0x898')]>_0x12fad2[_0x5200e3('0x898')]&&_0x12fad2[_0x5200e3('0xd31')]+_0x150193[_0x5200e3('0x898')]<_0x150193[_0x5200e3('0xd31')]?_0x5200e3('0x3b'):_0x5200e3('0x983');}}}function _0x4b2e95(){var _0x51f7d2=_0x3877e3;return{'restrict':'E','scope':{},'transclude':!![],'controller':_0x51f7d2('0x1b40'),'controllerAs':'vm','bindToController':!![],'templateUrl':_0xd999b1,'compile':function _0x49ae16(_0x8e5b3a){return _0x8e5b3a['addClass']('ms-tab-scroll'),function _0xac620f(){};}};}_0x64eeb9[_0x3877e3('0x1a81')]=['$timeout','$q'];function _0x258ca9(){var _0x54528c=_0x3877e3,_0x1d164f=this;_0x1d164f['scrollEl']=undefined,_0x1d164f[_0x54528c('0x1e0c')]=_0x31d284,_0x1d164f['getScrollEl']=_0x387eb2;function _0x31d284(_0x1c0c8f){var _0x13a2e1=_0x54528c;_0x1d164f[_0x13a2e1('0x21d1')]=_0x1c0c8f;}function _0x387eb2(){var _0x46ce04=_0x54528c;return _0x1d164f[_0x46ce04('0x21d1')];}}function _0x11d823(){var _0xab1f5b=_0x3877e3;return{'scope':{'msTimeline':'=?','loadMore':'&?msTimelineLoadMore'},'controller':_0xab1f5b('0x1c33'),'compile':function _0x278e23(_0x240846){var _0x169a69=_0xab1f5b;return _0x240846[_0x169a69('0x11da')](_0x169a69('0x12ff')),function _0x12e9bf(_0x51673b,_0x9543ea,_0x50b67b,_0x4c796d){var _0x59a130=_0x169a69,_0x3fd8d5=angular['element'](_0x59a130('0x1a4c'));_0x9543ea[_0x59a130('0x92d')](_0x3fd8d5);var _0x59709c={'scrollEl':'#content'};_0x59709c=angular[_0x59a130('0x1ad')](_0x59709c,_0x51673b[_0x59a130('0x1af3')],{});var _0x55e61d=angular[_0x59a130('0x1676')](_0x59709c[_0x59a130('0x21d1')]);_0x4c796d[_0x59a130('0x1e0c')](_0x55e61d);var _0x5728e3=0x90;_0x49468a();function _0x2a2e8f(){var _0x1c2307=_0x59a130;_0x55e61d[_0x1c2307('0x192b')]()+_0x55e61d[_0x1c2307('0x5cf')]()+_0x5728e3>_0x3fd8d5[_0x1c2307('0x1c9f')]()[_0x1c2307('0x229d')]&&(_0x3fd8d5[_0x1c2307('0x11da')](_0x1c2307('0x853')),_0x2c5a91(),_0x51673b['loadMore']()['then'](function(){var _0x18519e=_0x1c2307;_0x3fd8d5[_0x18519e('0x1fe6')](_0x18519e('0x853')),_0x49468a();},function(){var _0x3aec33=_0x1c2307;_0x3fd8d5[_0x3aec33('0x16a2')]();}));}function _0x49468a(){var _0x331ec3=_0x59a130;_0x55e61d['on'](_0x331ec3('0x240'),_0x2a2e8f);}function _0x2c5a91(){_0x55e61d['off']('scroll',_0x2a2e8f);}_0x51673b['$on']('$destroy',function(){_0x2c5a91();});};}};}function _0x64eeb9(_0x1751f6,_0x4a6db7){return{'scope':!![],'require':'^msTimeline','compile':function _0x3255c9(_0x4758ed){var _0x59c5a9=a0_0x2e7f;return _0x4758ed[_0x59c5a9('0x11da')]('ms-timeline-item')[_0x59c5a9('0x11da')]('hidden'),function _0x29cf74(_0x5a1d85,_0xff391f,_0xf4638a,_0x1909db){var _0x43ab3d=0x48,_0x89497d=![],_0x3064bd=![],_0x5f588b=_0x1909db['getScrollEl']();_0x191a85();function _0x191a85(){var _0x9f697f=a0_0x2e7f;_0xff391f[_0x9f697f('0x1d2e')](_0x9f697f('0x1175'))?_0x5a1d85[_0x9f697f('0x1723')](_0x9f697f('0xf66'),function(_0x53f3cd,_0x57a002){var _0x547010=angular['element'](_0x57a002[0x0]);_0xdca9c(_0x547010)['then'](function(){_0x1751f6(function(){_0x89497d=!![];});});}):_0xdca9c(_0xff391f)['then'](function(){_0x1751f6(function(){_0x89497d=!![];});}),_0x5f588b['on'](_0x9f697f('0x240'),_0x8b7695),_0x8b7695();}var _0x17bf87=_0x5a1d85['$watch'](function(){return _0x89497d&&_0x3064bd;},function(_0x3ff85c,_0x404acc){var _0x505635=a0_0x2e7f;if(angular['equals'](_0x3ff85c,_0x404acc))return;_0x3ff85c&&(_0xff391f[_0x505635('0x1fe6')](_0x505635('0x22d6'))[_0x505635('0x11da')](_0x505635('0x446')),_0x17bf87());},!![]);function _0xdca9c(_0x5b5bdf){var _0x226d1b=a0_0x2e7f,_0xbf26bd=_0x4a6db7[_0x226d1b('0xca9')](),_0x350104=_0x5b5bdf[_0x226d1b('0x1d2e')](_0x226d1b('0x4f3'));return _0x350104[_0x226d1b('0x577')]>0x0?_0x350104['on'](_0x226d1b('0x20ad'),function(){var _0x23848d=_0x226d1b;_0xbf26bd['resolve'](_0x23848d('0xe84'));}):_0xbf26bd['resolve']('No\x20images'),_0xbf26bd['promise'];}function _0x8b7695(){var _0x26c5fe=a0_0x2e7f;_0x5f588b['scrollTop']()+_0x5f588b[_0x26c5fe('0x5cf')]()>_0xff391f[_0x26c5fe('0x1c9f')]()[_0x26c5fe('0x229d')]+_0x43ab3d&&(_0x1751f6(function(){_0x3064bd=!![];}),_0x5f588b[_0x26c5fe('0xb49')](_0x26c5fe('0x240'),_0x8b7695));}};}};}_0x234d81[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$document',_0x3877e3('0x2313'),'$interval',_0x3877e3('0x24e1'),_0x3877e3('0x13c1'),'$attrs',_0x3877e3('0x88f'),_0x3877e3('0x2538')];function _0x234d81(_0x3b11dd,_0x2fa2a5,_0x596ded,_0x412545,_0x306bef,_0x5e0c74,_0x543766,_0x5da794,_0x516323){var _0x2e89af=_0x3877e3;typeof String[_0x2e89af('0x1c16')][_0x2e89af('0x2078')]!==_0x2e89af('0x6c1')&&(String[_0x2e89af('0x1c16')][_0x2e89af('0x2078')]=function(){var _0x1251b6=_0x2e89af;return this[_0x1251b6('0x16e4')](/^\s+|\s+$/g,'');});_0x3b11dd[_0x2e89af('0x3fb')]=_0x543766[_0x2e89af('0x3fb')]||_0x543766['autostart'];_0x5da794[_0x2e89af('0x8b')]()[_0x2e89af('0x2078')]()[_0x2e89af('0x577')]===0x0?_0x5da794[_0x2e89af('0x92d')](_0x516323(_0x2e89af('0x284'))(_0x3b11dd)):_0x5da794[_0x2e89af('0x92d')](_0x516323(_0x5da794[_0x2e89af('0x1c3a')]())(_0x3b11dd));_0x3b11dd[_0x2e89af('0xa07')]=_0x3b11dd['intervalAttr']||0x3e8,_0x3b11dd[_0x2e89af('0x1f41')]=null,_0x3b11dd[_0x2e89af('0xc2b')]=null,_0x3b11dd[_0x2e89af('0x34b')]=null,_0x3b11dd[_0x2e89af('0x26c2')]=_0x3b11dd[_0x2e89af('0x15de')]&&parseInt(_0x3b11dd[_0x2e89af('0x15de')],0xa)>=0x0?parseInt(_0x3b11dd[_0x2e89af('0x15de')],0xa):undefined,_0x3b11dd[_0x2e89af('0x5ce')]=![],_0x3b11dd[_0x2e89af('0x10e8')]('startTimeAttr',function(_0x5f4fd8,_0x1f5a2e){var _0xf88daf=_0x2e89af;_0x5f4fd8!==_0x1f5a2e&&_0x3b11dd[_0xf88daf('0x5ce')]&&_0x3b11dd[_0xf88daf('0x2015')]();}),_0x3b11dd['$on'](_0x2e89af('0x2852'),function(){_0x3b11dd['start']();}),_0x3b11dd[_0x2e89af('0x1723')](_0x2e89af('0x935'),function(){_0x3b11dd['resume']();}),_0x3b11dd[_0x2e89af('0x1723')]('timer-stop',function(){_0x3b11dd['stop']();}),_0x3b11dd['$on']('timer-clear',function(){var _0x28e80c=_0x2e89af;_0x3b11dd[_0x28e80c('0x18ee')]();}),_0x3b11dd[_0x2e89af('0x1723')](_0x2e89af('0x1e95'),function(_0x38d1a7,_0x200036){var _0x24540b=_0x2e89af;_0x3b11dd[_0x24540b('0x26c2')]=_0x200036;});function _0x52e0db(){var _0x47d9dc=_0x2e89af;_0x3b11dd[_0x47d9dc('0x34b')]&&clearTimeout(_0x3b11dd[_0x47d9dc('0x34b')]);}_0x3b11dd[_0x2e89af('0x2015')]=function(){var _0x559a4a=_0x2e89af,_0xa4a4e0=_0x1088bc()(),_0x55086f=_0x3b11dd[_0x559a4a('0x17c6')]?_0x1088bc()(_0x3b11dd[_0x559a4a('0x17c6')]):null;!_0x55086f||_0x55086f>_0xa4a4e0?_0x3b11dd['startTime']=_0xa4a4e0:_0x3b11dd['startTime']=_0x55086f;var _0x233f91=_0x3b11dd[_0x559a4a('0x24c')]?_0x1088bc()(_0x3b11dd[_0x559a4a('0x24c')]):null;!_0x233f91||_0x233f91<_0xa4a4e0?_0x3b11dd[_0x559a4a('0xc2b')]=null:_0x3b11dd[_0x559a4a('0xc2b')]=_0x233f91,!_0x3b11dd['countdown']&&(_0x3b11dd['countdown']=_0x3b11dd[_0x559a4a('0x15de')]&&parseInt(_0x3b11dd[_0x559a4a('0x15de')],0xa)>0x0?parseInt(_0x3b11dd[_0x559a4a('0x1567')],0xa):undefined),_0x52e0db(),_0xfc4817(),_0x3b11dd['isRunning']=!![];},_0x5da794[0x0][_0x2e89af('0x2015')]=_0x3b11dd[_0x2e89af('0x2015')],_0x3b11dd['resume']=function(){var _0x54d18a=_0x2e89af;_0x52e0db(),_0x3b11dd[_0x54d18a('0x15de')]&&(_0x3b11dd[_0x54d18a('0x26c2')]+=0x1),_0x3b11dd[_0x54d18a('0x1f41')]=_0x1088bc()()['diff'](_0x1088bc()(_0x3b11dd[_0x54d18a('0x249a')])[_0x54d18a('0x2503')](_0x1088bc()(_0x3b11dd[_0x54d18a('0x1f41')]))),_0xfc4817(),_0x3b11dd['isRunning']=!![];},_0x5da794[0x0][_0x2e89af('0x46d')]=_0x3b11dd[_0x2e89af('0x46d')],_0x3b11dd[_0x2e89af('0x12b4')]=function(){var _0x4df976=_0x2e89af;_0x3b11dd[_0x4df976('0x18ee')](),_0x3b11dd[_0x4df976('0x2389')]('timer-stopped',{'timeoutId':_0x3b11dd[_0x4df976('0x34b')],'millis':_0x3b11dd[_0x4df976('0x98a')],'seconds':_0x3b11dd[_0x4df976('0x22ac')],'minutes':_0x3b11dd[_0x4df976('0x1d2d')],'hours':_0x3b11dd[_0x4df976('0x2274')],'days':_0x3b11dd[_0x4df976('0x18ad')]});},_0x3b11dd[_0x2e89af('0x1e26')]=_0x3b11dd['stop'],_0x5da794[0x0][_0x2e89af('0x12b4')]=_0x3b11dd[_0x2e89af('0x12b4')],_0x5da794[0x0][_0x2e89af('0x1e26')]=_0x3b11dd['stop'],_0x3b11dd[_0x2e89af('0x18ee')]=function(){var _0x39451a=_0x2e89af;_0x3b11dd[_0x39451a('0x249a')]=_0x1088bc()(),_0x52e0db(),_0x3b11dd[_0x39451a('0x34b')]=null,_0x3b11dd[_0x39451a('0x5ce')]=![];},_0x5da794[0x0]['clear']=_0x3b11dd[_0x2e89af('0x18ee')],_0x5da794['bind'](_0x2e89af('0x1210'),function(){_0x52e0db(),_0x3b11dd['isRunning']=![];});function _0x310071(){var _0xacbc52=_0x2e89af;_0x543766[_0xacbc52('0x1f41')]!==undefined&&(_0x3b11dd[_0xacbc52('0x98a')]=_0x1088bc()()[_0xacbc52('0x2503')](_0x1088bc()(_0x3b11dd[_0xacbc52('0x1f41')])));if(!_0x3b11dd['maxTimeUnit']||_0x3b11dd[_0xacbc52('0x17c5')]===_0xacbc52('0x1837'))_0x3b11dd[_0xacbc52('0x22ac')]=Math['floor'](_0x3b11dd[_0xacbc52('0x98a')]/0x3e8%0x3c),_0x3b11dd[_0xacbc52('0x1d2d')]=Math['floor'](_0x3b11dd['millis']/0xea60%0x3c),_0x3b11dd[_0xacbc52('0x2274')]=Math[_0xacbc52('0x1b3a')](_0x3b11dd[_0xacbc52('0x98a')]/0x36ee80%0x18),_0x3b11dd[_0xacbc52('0x18ad')]=Math[_0xacbc52('0x1b3a')](_0x3b11dd[_0xacbc52('0x98a')]/0x36ee80/0x18),_0x3b11dd[_0xacbc52('0x2044')]=0x0,_0x3b11dd[_0xacbc52('0x4fc')]=0x0;else{if(_0x3b11dd[_0xacbc52('0x17c5')]==='second')_0x3b11dd['seconds']=Math[_0xacbc52('0x1b3a')](_0x3b11dd[_0xacbc52('0x98a')]/0x3e8),_0x3b11dd['minutes']=0x0,_0x3b11dd[_0xacbc52('0x2274')]=0x0,_0x3b11dd[_0xacbc52('0x18ad')]=0x0,_0x3b11dd[_0xacbc52('0x2044')]=0x0,_0x3b11dd['years']=0x0;else{if(_0x3b11dd[_0xacbc52('0x17c5')]==='minute')_0x3b11dd[_0xacbc52('0x22ac')]=Math['floor'](_0x3b11dd[_0xacbc52('0x98a')]/0x3e8%0x3c),_0x3b11dd[_0xacbc52('0x1d2d')]=Math['floor'](_0x3b11dd['millis']/0xea60),_0x3b11dd[_0xacbc52('0x2274')]=0x0,_0x3b11dd['days']=0x0,_0x3b11dd[_0xacbc52('0x2044')]=0x0,_0x3b11dd[_0xacbc52('0x4fc')]=0x0;else{if(_0x3b11dd[_0xacbc52('0x17c5')]===_0xacbc52('0x17f3'))_0x3b11dd[_0xacbc52('0x22ac')]=Math[_0xacbc52('0x1b3a')](_0x3b11dd[_0xacbc52('0x98a')]/0x3e8%0x3c),_0x3b11dd[_0xacbc52('0x1d2d')]=Math['floor'](_0x3b11dd['millis']/0xea60%0x3c),_0x3b11dd['hours']=Math['floor'](_0x3b11dd[_0xacbc52('0x98a')]/0x36ee80),_0x3b11dd[_0xacbc52('0x18ad')]=0x0,_0x3b11dd[_0xacbc52('0x2044')]=0x0,_0x3b11dd['years']=0x0;else{if(_0x3b11dd[_0xacbc52('0x17c5')]==='month')_0x3b11dd[_0xacbc52('0x22ac')]=Math[_0xacbc52('0x1b3a')](_0x3b11dd[_0xacbc52('0x98a')]/0x3e8%0x3c),_0x3b11dd['minutes']=Math[_0xacbc52('0x1b3a')](_0x3b11dd[_0xacbc52('0x98a')]/0xea60%0x3c),_0x3b11dd['hours']=Math[_0xacbc52('0x1b3a')](_0x3b11dd[_0xacbc52('0x98a')]/0x36ee80%0x18),_0x3b11dd[_0xacbc52('0x18ad')]=Math[_0xacbc52('0x1b3a')](_0x3b11dd[_0xacbc52('0x98a')]/0x36ee80/0x18%0x1e),_0x3b11dd['months']=Math[_0xacbc52('0x1b3a')](_0x3b11dd[_0xacbc52('0x98a')]/0x36ee80/0x18/0x1e),_0x3b11dd[_0xacbc52('0x4fc')]=0x0;else _0x3b11dd[_0xacbc52('0x17c5')]===_0xacbc52('0x1b8e')&&(_0x3b11dd[_0xacbc52('0x22ac')]=Math[_0xacbc52('0x1b3a')](_0x3b11dd[_0xacbc52('0x98a')]/0x3e8%0x3c),_0x3b11dd[_0xacbc52('0x1d2d')]=Math[_0xacbc52('0x1b3a')](_0x3b11dd['millis']/0xea60%0x3c),_0x3b11dd[_0xacbc52('0x2274')]=Math['floor'](_0x3b11dd[_0xacbc52('0x98a')]/0x36ee80%0x18),_0x3b11dd[_0xacbc52('0x18ad')]=Math[_0xacbc52('0x1b3a')](_0x3b11dd['millis']/0x36ee80/0x18%0x1e),_0x3b11dd[_0xacbc52('0x2044')]=Math[_0xacbc52('0x1b3a')](_0x3b11dd[_0xacbc52('0x98a')]/0x36ee80/0x18/0x1e%0xc),_0x3b11dd[_0xacbc52('0x4fc')]=Math[_0xacbc52('0x1b3a')](_0x3b11dd[_0xacbc52('0x98a')]/0x36ee80/0x18/0x16d));}}}}_0x3b11dd['secondsS']=_0x3b11dd[_0xacbc52('0x22ac')]===0x1||_0x3b11dd[_0xacbc52('0x22ac')]===0x0?'':'s',_0x3b11dd[_0xacbc52('0x275')]=_0x3b11dd[_0xacbc52('0x1d2d')]===0x1||_0x3b11dd[_0xacbc52('0x1d2d')]===0x0?'':'s',_0x3b11dd[_0xacbc52('0xdad')]=_0x3b11dd[_0xacbc52('0x2274')]===0x1||_0x3b11dd[_0xacbc52('0x2274')]===0x0?'':'s',_0x3b11dd[_0xacbc52('0x264')]=_0x3b11dd[_0xacbc52('0x18ad')]===0x1||_0x3b11dd[_0xacbc52('0x18ad')]===0x0?'':'s',_0x3b11dd['monthsS']=_0x3b11dd['months']===0x1||_0x3b11dd[_0xacbc52('0x2044')]===0x0?'':'s',_0x3b11dd[_0xacbc52('0x1fab')]=_0x3b11dd['years']===0x1||_0x3b11dd[_0xacbc52('0x4fc')]===0x0?'':'s',_0x3b11dd[_0xacbc52('0x1989')]=_0x3b11dd[_0xacbc52('0x22ac')]<0xa?'0'+_0x3b11dd[_0xacbc52('0x22ac')]:_0x3b11dd['seconds'],_0x3b11dd[_0xacbc52('0x9ea')]=_0x3b11dd['minutes']<0xa?'0'+_0x3b11dd[_0xacbc52('0x1d2d')]:_0x3b11dd['minutes'],_0x3b11dd['hhours']=_0x3b11dd[_0xacbc52('0x2274')]<0xa?'0'+_0x3b11dd[_0xacbc52('0x2274')]:_0x3b11dd[_0xacbc52('0x2274')],_0x3b11dd[_0xacbc52('0x2500')]=_0x3b11dd[_0xacbc52('0x18ad')]<0xa?'0'+_0x3b11dd[_0xacbc52('0x18ad')]:_0x3b11dd[_0xacbc52('0x18ad')],_0x3b11dd['mmonths']=_0x3b11dd['months']<0xa?'0'+_0x3b11dd[_0xacbc52('0x2044')]:_0x3b11dd[_0xacbc52('0x2044')],_0x3b11dd[_0xacbc52('0x3b6')]=_0x3b11dd[_0xacbc52('0x4fc')]<0xa?'0'+_0x3b11dd[_0xacbc52('0x4fc')]:_0x3b11dd[_0xacbc52('0x4fc')];}var _0xfc4817=function _0x1d7798(){var _0x577f5f=_0x2e89af;_0x3b11dd[_0x577f5f('0x98a')]=_0x1088bc()()['diff'](_0x3b11dd['startTime']);var _0x5ee429=_0x3b11dd[_0x577f5f('0x98a')]%0x3e8;_0x3b11dd[_0x577f5f('0x24c')]&&(_0x3b11dd[_0x577f5f('0x98a')]=_0x1088bc()(_0x3b11dd[_0x577f5f('0xc2b')])['diff'](_0x1088bc()()),_0x5ee429=_0x3b11dd[_0x577f5f('0xa07')]-_0x3b11dd[_0x577f5f('0x98a')]%0x3e8);_0x3b11dd['countdownAttr']&&(_0x3b11dd[_0x577f5f('0x98a')]=_0x3b11dd[_0x577f5f('0x26c2')]*0x3e8);if(_0x3b11dd['millis']<0x0){_0x3b11dd[_0x577f5f('0x12b4')](),_0x3b11dd['millis']=0x0,_0x310071();_0x3b11dd[_0x577f5f('0xa8c')]&&_0x3b11dd['$eval'](_0x3b11dd[_0x577f5f('0xa8c')]);return;}_0x310071(),_0x3b11dd[_0x577f5f('0x34b')]=setTimeout(function(){var _0xf21938=_0x577f5f;_0x1d7798(),_0x3b11dd[_0xf21938('0x2258')]();},_0x3b11dd[_0x577f5f('0xa07')]-_0x5ee429),_0x3b11dd[_0x577f5f('0x2389')](_0x577f5f('0x1a24'),{'timeoutId':_0x3b11dd[_0x577f5f('0x34b')],'millis':_0x3b11dd[_0x577f5f('0x98a')]});if(_0x3b11dd[_0x577f5f('0x26c2')]>0x0)_0x3b11dd['countdown']--;else _0x3b11dd[_0x577f5f('0x26c2')]<=0x0&&(_0x3b11dd[_0x577f5f('0x12b4')](),_0x3b11dd[_0x577f5f('0xa8c')]&&_0x3b11dd['$eval'](_0x3b11dd[_0x577f5f('0xa8c')]));};(_0x3b11dd[_0x2e89af('0x3fb')]===undefined||_0x3b11dd['autoStart']===!![])&&_0x3b11dd['start']();}function _0xec6c6f(){var _0x48a86c=_0x3877e3;return{'restrict':'EA','replace':![],'scope':{'intervalAttr':'=interval','startTimeAttr':_0x48a86c('0x1288'),'endTimeAttr':_0x48a86c('0x15f0'),'countdownAttr':_0x48a86c('0x2709'),'autoStart':_0x48a86c('0x22e9'),'maxTimeUnit':'='},'controller':_0x48a86c('0x542')};}const _0x3d71e2=_0x398308['p']+_0x3877e3('0x27ad');;function _0x3e2f41(){var _0x137362=_0x3877e3;return{'restrict':'E','scope':{'ngModel':'='},'controller':[_0x137362('0x95a'),function _0xf1fc3a(_0x2e55d5){var _0x5757e8=_0x137362;_0x2e55d5[_0x5757e8('0xf40')]=[{'name':_0x5757e8('0x234e'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['AD']},{'name':_0x5757e8('0xfec'),'utcOffset':0xf0,'offsetStr':_0x5757e8('0xe75'),'countries':['AE','OM']},{'name':_0x5757e8('0x1dd9'),'utcOffset':0x10e,'offsetStr':_0x5757e8('0x16d6'),'countries':['AF']},{'name':_0x5757e8('0x21dc'),'utcOffset':0x3c,'offsetStr':_0x5757e8('0xf6d'),'countries':['AL']},{'name':'Asia/Yerevan','utcOffset':0xf0,'offsetStr':_0x5757e8('0xe75'),'countries':['AM']},{'name':'Antarctica/Rothera','utcOffset':-0xb4,'offsetStr':_0x5757e8('0x7db'),'countries':['AQ']},{'name':_0x5757e8('0x280e'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AQ']},{'name':_0x5757e8('0xd95'),'utcOffset':0x12c,'offsetStr':_0x5757e8('0x215b'),'countries':['AQ']},{'name':_0x5757e8('0x151b'),'utcOffset':0x1a4,'offsetStr':_0x5757e8('0x21f3'),'countries':['AQ']},{'name':_0x5757e8('0xd73'),'utcOffset':0x1e0,'offsetStr':_0x5757e8('0x3c'),'countries':['AQ']},{'name':'Antarctica/Vostok','utcOffset':0x168,'offsetStr':_0x5757e8('0x26f9'),'countries':['AQ']},{'name':_0x5757e8('0x27b3'),'utcOffset':0x258,'offsetStr':_0x5757e8('0x5d1'),'countries':['AQ']},{'name':'Antarctica/Syowa','utcOffset':0xb4,'offsetStr':'+03:00','countries':['AQ']},{'name':_0x5757e8('0xdd1'),'utcOffset':0x0,'offsetStr':_0x5757e8('0xa56'),'countries':['AQ']},{'name':'America/Argentina/Buenos_Aires','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':'America/Argentina/Cordoba','utcOffset':-0xb4,'offsetStr':_0x5757e8('0x7db'),'countries':['AR']},{'name':'America/Argentina/Salta','utcOffset':-0xb4,'offsetStr':_0x5757e8('0x7db'),'countries':['AR']},{'name':_0x5757e8('0x2416'),'utcOffset':-0xb4,'offsetStr':_0x5757e8('0x7db'),'countries':['AR']},{'name':_0x5757e8('0x20e4'),'utcOffset':-0xb4,'offsetStr':_0x5757e8('0x7db'),'countries':['AR']},{'name':_0x5757e8('0x2a0'),'utcOffset':-0xb4,'offsetStr':_0x5757e8('0x7db'),'countries':['AR']},{'name':_0x5757e8('0x10ed'),'utcOffset':-0xb4,'offsetStr':_0x5757e8('0x7db'),'countries':['AR']},{'name':'America/Argentina/San_Juan','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':_0x5757e8('0xa59'),'utcOffset':-0xb4,'offsetStr':_0x5757e8('0x7db'),'countries':['AR']},{'name':'America/Argentina/San_Luis','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':'America/Argentina/Rio_Gallegos','utcOffset':-0xb4,'offsetStr':_0x5757e8('0x7db'),'countries':['AR']},{'name':_0x5757e8('0x1de3'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':_0x5757e8('0xbb1'),'utcOffset':-0x294,'offsetStr':_0x5757e8('0xbb'),'countries':['AS','UM']},{'name':_0x5757e8('0x2604'),'utcOffset':0x3c,'offsetStr':_0x5757e8('0xf6d'),'countries':['AT']},{'name':_0x5757e8('0x2662'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['AU']},{'name':_0x5757e8('0x1616'),'utcOffset':0x294,'offsetStr':_0x5757e8('0x24ab'),'countries':['AU']},{'name':_0x5757e8('0x23c3'),'utcOffset':0x294,'offsetStr':_0x5757e8('0x24ab'),'countries':['AU']},{'name':'Australia/Currie','utcOffset':0x294,'offsetStr':_0x5757e8('0x24ab'),'countries':['AU']},{'name':_0x5757e8('0x1f68'),'utcOffset':0x294,'offsetStr':_0x5757e8('0x24ab'),'countries':['AU']},{'name':'Australia/Sydney','utcOffset':0x294,'offsetStr':_0x5757e8('0x24ab'),'countries':['AU']},{'name':'Australia/Broken_Hill','utcOffset':0x276,'offsetStr':'+10:30','countries':['AU']},{'name':_0x5757e8('0x191b'),'utcOffset':0x258,'offsetStr':_0x5757e8('0x5d1'),'countries':['AU']},{'name':_0x5757e8('0x2469'),'utcOffset':0x258,'offsetStr':_0x5757e8('0x5d1'),'countries':['AU']},{'name':_0x5757e8('0x2279'),'utcOffset':0x276,'offsetStr':_0x5757e8('0xe80'),'countries':['AU']},{'name':_0x5757e8('0x1a35'),'utcOffset':0x23a,'offsetStr':_0x5757e8('0x217f'),'countries':['AU']},{'name':'Australia/Perth','utcOffset':0x1e0,'offsetStr':_0x5757e8('0x3c'),'countries':['AU']},{'name':_0x5757e8('0x26e4'),'utcOffset':0x20d,'offsetStr':'+08:45','countries':['AU']},{'name':_0x5757e8('0xcb7'),'utcOffset':0xf0,'offsetStr':_0x5757e8('0xe75'),'countries':['AZ']},{'name':_0x5757e8('0x1e64'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BB']},{'name':'Asia/Dhaka','utcOffset':0x168,'offsetStr':'+06:00','countries':['BD']},{'name':'Europe/Brussels','utcOffset':0x3c,'offsetStr':_0x5757e8('0xf6d'),'countries':['BE']},{'name':_0x5757e8('0x12e5'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['BG']},{'name':_0x5757e8('0x841'),'utcOffset':-0xf0,'offsetStr':_0x5757e8('0x1aec'),'countries':['BM']},{'name':_0x5757e8('0x276e'),'utcOffset':0x1e0,'offsetStr':_0x5757e8('0x3c'),'countries':['BN']},{'name':'America/La_Paz','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BO']},{'name':_0x5757e8('0x6b0'),'utcOffset':-0x78,'offsetStr':_0x5757e8('0xd6d'),'countries':['BR']},{'name':_0x5757e8('0x2052'),'utcOffset':-0xb4,'offsetStr':_0x5757e8('0x7db'),'countries':['BR']},{'name':'America/Fortaleza','utcOffset':-0xb4,'offsetStr':_0x5757e8('0x7db'),'countries':['BR']},{'name':_0x5757e8('0x25c2'),'utcOffset':-0xb4,'offsetStr':_0x5757e8('0x7db'),'countries':['BR']},{'name':_0x5757e8('0x12eb'),'utcOffset':-0xb4,'offsetStr':_0x5757e8('0x7db'),'countries':['BR']},{'name':_0x5757e8('0x2d0'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},{'name':_0x5757e8('0x2529'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},{'name':_0x5757e8('0x618'),'utcOffset':-0x78,'offsetStr':_0x5757e8('0xd6d'),'countries':['BR']},{'name':_0x5757e8('0x464'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},{'name':_0x5757e8('0x11f8'),'utcOffset':-0xb4,'offsetStr':_0x5757e8('0x7db'),'countries':['BR']},{'name':_0x5757e8('0x120e'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},{'name':'America/Porto_Velho','utcOffset':-0xf0,'offsetStr':_0x5757e8('0x1aec'),'countries':['BR']},{'name':_0x5757e8('0x1c00'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BR']},{'name':'America/Manaus','utcOffset':-0xf0,'offsetStr':_0x5757e8('0x1aec'),'countries':['BR']},{'name':_0x5757e8('0x111d'),'utcOffset':-0x12c,'offsetStr':_0x5757e8('0x1422'),'countries':['BR']},{'name':_0x5757e8('0xd50'),'utcOffset':-0x12c,'offsetStr':_0x5757e8('0x1422'),'countries':['BR']},{'name':'America/Nassau','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['BS']},{'name':_0x5757e8('0x11c5'),'utcOffset':0x168,'offsetStr':_0x5757e8('0x26f9'),'countries':['BT']},{'name':_0x5757e8('0x12d'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['BY']},{'name':'America/Belize','utcOffset':-0x168,'offsetStr':_0x5757e8('0x10a9'),'countries':['BZ']},{'name':_0x5757e8('0x26e8'),'utcOffset':-0xd2,'offsetStr':_0x5757e8('0x21c4'),'countries':['CA']},{'name':_0x5757e8('0x1f88'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CA']},{'name':_0x5757e8('0x1ec3'),'utcOffset':-0xf0,'offsetStr':_0x5757e8('0x1aec'),'countries':['CA']},{'name':_0x5757e8('0x165a'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CA']},{'name':_0x5757e8('0x26a'),'utcOffset':-0xf0,'offsetStr':_0x5757e8('0x1aec'),'countries':['CA']},{'name':_0x5757e8('0x15c1'),'utcOffset':-0xf0,'offsetStr':_0x5757e8('0x1aec'),'countries':['CA']},{'name':_0x5757e8('0xdaf'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},{'name':'America/Nipigon','utcOffset':-0x12c,'offsetStr':_0x5757e8('0x1422'),'countries':['CA']},{'name':_0x5757e8('0xd85'),'utcOffset':-0x12c,'offsetStr':_0x5757e8('0x1422'),'countries':['CA']},{'name':_0x5757e8('0x214c'),'utcOffset':-0x12c,'offsetStr':_0x5757e8('0x1422'),'countries':['CA']},{'name':'America/Pangnirtung','utcOffset':-0x12c,'offsetStr':_0x5757e8('0x1422'),'countries':['CA']},{'name':'America/Resolute','utcOffset':-0x168,'offsetStr':_0x5757e8('0x10a9'),'countries':['CA']},{'name':'America/Atikokan','utcOffset':-0x12c,'offsetStr':_0x5757e8('0x1422'),'countries':['CA']},{'name':_0x5757e8('0x1c6e'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},{'name':_0x5757e8('0x1619'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},{'name':_0x5757e8('0x1515'),'utcOffset':-0x168,'offsetStr':_0x5757e8('0x10a9'),'countries':['CA']},{'name':_0x5757e8('0x13f6'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},{'name':'America/Swift_Current','utcOffset':-0x168,'offsetStr':_0x5757e8('0x10a9'),'countries':['CA']},{'name':'America/Edmonton','utcOffset':-0x1a4,'offsetStr':_0x5757e8('0xe9a'),'countries':['CA']},{'name':_0x5757e8('0x1a9e'),'utcOffset':-0x1a4,'offsetStr':_0x5757e8('0xe9a'),'countries':['CA']},{'name':'America/Yellowknife','utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['CA']},{'name':'America/Inuvik','utcOffset':-0x1a4,'offsetStr':_0x5757e8('0xe9a'),'countries':['CA']},{'name':_0x5757e8('0x1115'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['CA']},{'name':_0x5757e8('0x24e2'),'utcOffset':-0x1a4,'offsetStr':_0x5757e8('0xe9a'),'countries':['CA']},{'name':'America/Fort_Nelson','utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['CA']},{'name':_0x5757e8('0x268f'),'utcOffset':-0x1e0,'offsetStr':_0x5757e8('0x1a2e'),'countries':['CA']},{'name':_0x5757e8('0x177b'),'utcOffset':-0x1e0,'offsetStr':_0x5757e8('0x1a2e'),'countries':['CA']},{'name':'America/Dawson','utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['CA']},{'name':_0x5757e8('0xbca'),'utcOffset':0x186,'offsetStr':_0x5757e8('0xe7a'),'countries':['CC']},{'name':_0x5757e8('0xbfb'),'utcOffset':0x3c,'offsetStr':_0x5757e8('0xf6d'),'countries':['CH','DE','LI']},{'name':'Africa/Abidjan','utcOffset':0x0,'offsetStr':_0x5757e8('0xa56'),'countries':['CI','BF','GM','GN','ML','MR','SH','SL','SN','ST','TG']},{'name':_0x5757e8('0x14ab'),'utcOffset':-0x258,'offsetStr':'-10:00','countries':['CK']},{'name':_0x5757e8('0x134b'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['CL']},{'name':_0x5757e8('0x1308'),'utcOffset':-0x12c,'offsetStr':_0x5757e8('0x1422'),'countries':['CL']},{'name':'Asia/Shanghai','utcOffset':0x1e0,'offsetStr':_0x5757e8('0x3c'),'countries':['CN']},{'name':'Asia/Urumqi','utcOffset':0x168,'offsetStr':_0x5757e8('0x26f9'),'countries':['CN']},{'name':_0x5757e8('0x2705'),'utcOffset':-0x12c,'offsetStr':_0x5757e8('0x1422'),'countries':['CO']},{'name':_0x5757e8('0x2fb'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CR']},{'name':'America/Havana','utcOffset':-0x12c,'offsetStr':_0x5757e8('0x1422'),'countries':['CU']},{'name':_0x5757e8('0x68'),'utcOffset':-0x3c,'offsetStr':_0x5757e8('0x782'),'countries':['CV']},{'name':'America/Curacao','utcOffset':-0xf0,'offsetStr':_0x5757e8('0x1aec'),'countries':['CW','AW','BQ','SX']},{'name':_0x5757e8('0x10ac'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['CX']},{'name':_0x5757e8('0x2464'),'utcOffset':0x78,'offsetStr':_0x5757e8('0x2507'),'countries':['CY']},{'name':_0x5757e8('0x2149'),'utcOffset':0x3c,'offsetStr':_0x5757e8('0xf6d'),'countries':['CZ','SK']},{'name':'Europe/Berlin','utcOffset':0x3c,'offsetStr':_0x5757e8('0xf6d'),'countries':['DE']},{'name':_0x5757e8('0x1345'),'utcOffset':0x3c,'offsetStr':_0x5757e8('0xf6d'),'countries':['DK']},{'name':_0x5757e8('0x33b'),'utcOffset':-0xf0,'offsetStr':_0x5757e8('0x1aec'),'countries':['DO']},{'name':_0x5757e8('0x13ef'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['DZ']},{'name':'America/Guayaquil','utcOffset':-0x12c,'offsetStr':_0x5757e8('0x1422'),'countries':['EC']},{'name':_0x5757e8('0x724'),'utcOffset':-0x168,'offsetStr':_0x5757e8('0x10a9'),'countries':['EC']},{'name':_0x5757e8('0x2606'),'utcOffset':0x78,'offsetStr':_0x5757e8('0x2507'),'countries':['EE']},{'name':_0x5757e8('0x1876'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['EG']},{'name':_0x5757e8('0x1237'),'utcOffset':0x0,'offsetStr':_0x5757e8('0xa56'),'countries':['EH']},{'name':_0x5757e8('0xb04'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['ES']},{'name':_0x5757e8('0x1854'),'utcOffset':0x3c,'offsetStr':_0x5757e8('0xf6d'),'countries':['ES']},{'name':_0x5757e8('0x22a5'),'utcOffset':0x0,'offsetStr':_0x5757e8('0xa56'),'countries':['ES']},{'name':_0x5757e8('0x250e'),'utcOffset':0x78,'offsetStr':_0x5757e8('0x2507'),'countries':['FI','AX']},{'name':'Pacific/Fiji','utcOffset':0x2d0,'offsetStr':_0x5757e8('0x148e'),'countries':['FJ']},{'name':'Atlantic/Stanley','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['FK']},{'name':_0x5757e8('0x16b0'),'utcOffset':0x258,'offsetStr':_0x5757e8('0x5d1'),'countries':['FM']},{'name':_0x5757e8('0x20bd'),'utcOffset':0x294,'offsetStr':_0x5757e8('0x24ab'),'countries':['FM']},{'name':_0x5757e8('0x1c0f'),'utcOffset':0x294,'offsetStr':_0x5757e8('0x24ab'),'countries':['FM']},{'name':_0x5757e8('0xc91'),'utcOffset':0x0,'offsetStr':_0x5757e8('0xa56'),'countries':['FO']},{'name':_0x5757e8('0x12d4'),'utcOffset':0x3c,'offsetStr':_0x5757e8('0xf6d'),'countries':['FR']},{'name':_0x5757e8('0x1444'),'utcOffset':0x0,'offsetStr':_0x5757e8('0xa56'),'countries':['GB','GG','IM','JE']},{'name':_0x5757e8('0x13a'),'utcOffset':0xf0,'offsetStr':_0x5757e8('0xe75'),'countries':['GE']},{'name':_0x5757e8('0x1c43'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['GF']},{'name':_0x5757e8('0xa2b'),'utcOffset':0x0,'offsetStr':_0x5757e8('0xa56'),'countries':['GH']},{'name':_0x5757e8('0x92a'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['GI']},{'name':_0x5757e8('0x13eb'),'utcOffset':-0xb4,'offsetStr':_0x5757e8('0x7db'),'countries':['GL']},{'name':_0x5757e8('0x1b95'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['GL']},{'name':_0x5757e8('0xe31'),'utcOffset':-0x3c,'offsetStr':_0x5757e8('0x782'),'countries':['GL']},{'name':_0x5757e8('0x578'),'utcOffset':-0xf0,'offsetStr':_0x5757e8('0x1aec'),'countries':['GL']},{'name':_0x5757e8('0x188c'),'utcOffset':0x78,'offsetStr':_0x5757e8('0x2507'),'countries':['GR']},{'name':'Atlantic/South_Georgia','utcOffset':-0x78,'offsetStr':_0x5757e8('0xd6d'),'countries':['GS']},{'name':_0x5757e8('0x1412'),'utcOffset':-0x168,'offsetStr':_0x5757e8('0x10a9'),'countries':['GT']},{'name':_0x5757e8('0x2763'),'utcOffset':0x258,'offsetStr':_0x5757e8('0x5d1'),'countries':['GU','MP']},{'name':_0x5757e8('0xa69'),'utcOffset':0x0,'offsetStr':_0x5757e8('0xa56'),'countries':['GW']},{'name':_0x5757e8('0x1f3b'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['GY']},{'name':_0x5757e8('0x118c'),'utcOffset':0x1e0,'offsetStr':_0x5757e8('0x3c'),'countries':['HK']},{'name':_0x5757e8('0x2840'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['HN']},{'name':_0x5757e8('0x19e8'),'utcOffset':-0x12c,'offsetStr':_0x5757e8('0x1422'),'countries':['HT']},{'name':_0x5757e8('0x1ac3'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['HU']},{'name':_0x5757e8('0x7ff'),'utcOffset':0x1a4,'offsetStr':_0x5757e8('0x21f3'),'countries':['ID']},{'name':_0x5757e8('0xf19'),'utcOffset':0x1a4,'offsetStr':_0x5757e8('0x21f3'),'countries':['ID']},{'name':_0x5757e8('0x1dff'),'utcOffset':0x1e0,'offsetStr':_0x5757e8('0x3c'),'countries':['ID']},{'name':_0x5757e8('0x501'),'utcOffset':0x21c,'offsetStr':_0x5757e8('0x3e2'),'countries':['ID']},{'name':_0x5757e8('0x13f0'),'utcOffset':0x0,'offsetStr':_0x5757e8('0xa56'),'countries':['IE']},{'name':_0x5757e8('0x1d7'),'utcOffset':0x78,'offsetStr':_0x5757e8('0x2507'),'countries':['IL']},{'name':_0x5757e8('0x18c7'),'utcOffset':0x14a,'offsetStr':_0x5757e8('0x1f50'),'countries':['IN']},{'name':_0x5757e8('0xbaf'),'utcOffset':0x168,'offsetStr':_0x5757e8('0x26f9'),'countries':['IO']},{'name':_0x5757e8('0x1739'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['IQ']},{'name':'Asia/Tehran','utcOffset':0xd2,'offsetStr':_0x5757e8('0xfac'),'countries':['IR']},{'name':_0x5757e8('0x503'),'utcOffset':0x0,'offsetStr':_0x5757e8('0xa56'),'countries':['IS']},{'name':_0x5757e8('0x13f9'),'utcOffset':0x3c,'offsetStr':_0x5757e8('0xf6d'),'countries':['IT','SM','VA']},{'name':_0x5757e8('0x2616'),'utcOffset':-0x12c,'offsetStr':_0x5757e8('0x1422'),'countries':['JM']},{'name':_0x5757e8('0x20f'),'utcOffset':0x78,'offsetStr':_0x5757e8('0x2507'),'countries':['JO']},{'name':_0x5757e8('0x149b'),'utcOffset':0x21c,'offsetStr':'+09:00','countries':['JP']},{'name':_0x5757e8('0x6ad'),'utcOffset':0xb4,'offsetStr':_0x5757e8('0x1b25'),'countries':['KE','DJ','ER','ET','KM','MG','SO','TZ','UG','YT']},{'name':'Asia/Bishkek','utcOffset':0x168,'offsetStr':_0x5757e8('0x26f9'),'countries':['KG']},{'name':_0x5757e8('0x19e1'),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['KI']},{'name':_0x5757e8('0x2271'),'utcOffset':0x30c,'offsetStr':'+13:00','countries':['KI']},{'name':_0x5757e8('0x194'),'utcOffset':0x348,'offsetStr':'+14:00','countries':['KI']},{'name':_0x5757e8('0xf53'),'utcOffset':0x1fe,'offsetStr':_0x5757e8('0x22c7'),'countries':['KP']},{'name':'Asia/Seoul','utcOffset':0x21c,'offsetStr':_0x5757e8('0x3e2'),'countries':['KR']},{'name':'America/Cayman','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['KY']},{'name':_0x5757e8('0x24ef'),'utcOffset':0x168,'offsetStr':_0x5757e8('0x26f9'),'countries':['KZ']},{'name':_0x5757e8('0x5dd'),'utcOffset':0x168,'offsetStr':_0x5757e8('0x26f9'),'countries':['KZ']},{'name':_0x5757e8('0x1858'),'utcOffset':0x12c,'offsetStr':_0x5757e8('0x215b'),'countries':['KZ']},{'name':_0x5757e8('0x823'),'utcOffset':0x12c,'offsetStr':_0x5757e8('0x215b'),'countries':['KZ']},{'name':_0x5757e8('0x1a6f'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['KZ']},{'name':_0x5757e8('0x16a9'),'utcOffset':0x78,'offsetStr':_0x5757e8('0x2507'),'countries':['LB']},{'name':'Asia/Colombo','utcOffset':0x14a,'offsetStr':'+05:30','countries':['LK']},{'name':_0x5757e8('0x16a8'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['LR']},{'name':_0x5757e8('0xe03'),'utcOffset':0x78,'offsetStr':_0x5757e8('0x2507'),'countries':['LT']},{'name':_0x5757e8('0x1be4'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['LU']},{'name':_0x5757e8('0x1d8'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['LV']},{'name':'Africa/Tripoli','utcOffset':0x78,'offsetStr':_0x5757e8('0x2507'),'countries':['LY']},{'name':_0x5757e8('0x22be'),'utcOffset':0x0,'offsetStr':_0x5757e8('0xa56'),'countries':['MA']},{'name':_0x5757e8('0x7e2'),'utcOffset':0x3c,'offsetStr':_0x5757e8('0xf6d'),'countries':['MC']},{'name':'Europe/Chisinau','utcOffset':0x78,'offsetStr':_0x5757e8('0x2507'),'countries':['MD']},{'name':_0x5757e8('0x270b'),'utcOffset':0x2d0,'offsetStr':_0x5757e8('0x148e'),'countries':['MH']},{'name':'Pacific/Kwajalein','utcOffset':0x2d0,'offsetStr':'+12:00','countries':['MH']},{'name':_0x5757e8('0x129d'),'utcOffset':0x186,'offsetStr':_0x5757e8('0xe7a'),'countries':['MM']},{'name':_0x5757e8('0x1506'),'utcOffset':0x1e0,'offsetStr':_0x5757e8('0x3c'),'countries':['MN']},{'name':'Asia/Hovd','utcOffset':0x1a4,'offsetStr':_0x5757e8('0x21f3'),'countries':['MN']},{'name':'Asia/Choibalsan','utcOffset':0x1e0,'offsetStr':_0x5757e8('0x3c'),'countries':['MN']},{'name':'Asia/Macau','utcOffset':0x1e0,'offsetStr':_0x5757e8('0x3c'),'countries':['MO']},{'name':_0x5757e8('0x10b1'),'utcOffset':-0xf0,'offsetStr':_0x5757e8('0x1aec'),'countries':['MQ']},{'name':'Europe/Malta','utcOffset':0x3c,'offsetStr':_0x5757e8('0xf6d'),'countries':['MT']},{'name':_0x5757e8('0x728'),'utcOffset':0xf0,'offsetStr':_0x5757e8('0xe75'),'countries':['MU']},{'name':_0x5757e8('0xf52'),'utcOffset':0x12c,'offsetStr':_0x5757e8('0x215b'),'countries':['MV']},{'name':_0x5757e8('0x1a06'),'utcOffset':-0x168,'offsetStr':_0x5757e8('0x10a9'),'countries':['MX']},{'name':_0x5757e8('0x2843'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['MX']},{'name':'America/Merida','utcOffset':-0x168,'offsetStr':_0x5757e8('0x10a9'),'countries':['MX']},{'name':_0x5757e8('0x290'),'utcOffset':-0x168,'offsetStr':_0x5757e8('0x10a9'),'countries':['MX']},{'name':_0x5757e8('0x16d7'),'utcOffset':-0x168,'offsetStr':_0x5757e8('0x10a9'),'countries':['MX']},{'name':'America/Mazatlan','utcOffset':-0x1a4,'offsetStr':_0x5757e8('0xe9a'),'countries':['MX']},{'name':'America/Chihuahua','utcOffset':-0x1a4,'offsetStr':_0x5757e8('0xe9a'),'countries':['MX']},{'name':_0x5757e8('0x160f'),'utcOffset':-0x1a4,'offsetStr':_0x5757e8('0xe9a'),'countries':['MX']},{'name':_0x5757e8('0x1c6f'),'utcOffset':-0x1a4,'offsetStr':_0x5757e8('0xe9a'),'countries':['MX']},{'name':_0x5757e8('0x1f75'),'utcOffset':-0x1e0,'offsetStr':_0x5757e8('0x1a2e'),'countries':['MX']},{'name':_0x5757e8('0x1307'),'utcOffset':-0x1e0,'offsetStr':_0x5757e8('0x1a2e'),'countries':['MX']},{'name':'America/Bahia_Banderas','utcOffset':-0x168,'offsetStr':_0x5757e8('0x10a9'),'countries':['MX']},{'name':_0x5757e8('0x514'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MY']},{'name':_0x5757e8('0x1db8'),'utcOffset':0x1e0,'offsetStr':_0x5757e8('0x3c'),'countries':['MY']},{'name':'Africa/Maputo','utcOffset':0x78,'offsetStr':'+02:00','countries':['MZ','BI','BW','CD','MW','RW','ZM','ZW']},{'name':_0x5757e8('0x10f0'),'utcOffset':0x78,'offsetStr':_0x5757e8('0x2507'),'countries':['NA']},{'name':'Pacific/Noumea','utcOffset':0x294,'offsetStr':_0x5757e8('0x24ab'),'countries':['NC']},{'name':_0x5757e8('0xb0b'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['NF']},{'name':'Africa/Lagos','utcOffset':0x3c,'offsetStr':_0x5757e8('0xf6d'),'countries':['NG','AO','BJ','CD','CF','CG','CM','GA','GQ','NE']},{'name':'America/Managua','utcOffset':-0x168,'offsetStr':'-06:00','countries':['NI']},{'name':_0x5757e8('0xd97'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['NL']},{'name':_0x5757e8('0xb6a'),'utcOffset':0x3c,'offsetStr':_0x5757e8('0xf6d'),'countries':['NO','SJ']},{'name':'Asia/Kathmandu','utcOffset':0x159,'offsetStr':'+05:45','countries':['NP']},{'name':'Pacific/Nauru','utcOffset':0x2d0,'offsetStr':'+12:00','countries':['NR']},{'name':'Pacific/Niue','utcOffset':-0x294,'offsetStr':'-11:00','countries':['NU']},{'name':_0x5757e8('0x163d'),'utcOffset':0x30c,'offsetStr':_0x5757e8('0x1b94'),'countries':['NZ','AQ']},{'name':_0x5757e8('0xebb'),'utcOffset':0x339,'offsetStr':_0x5757e8('0x3f5'),'countries':['NZ']},{'name':_0x5757e8('0x3e7'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['PA']},{'name':'America/Lima','utcOffset':-0x12c,'offsetStr':_0x5757e8('0x1422'),'countries':['PE']},{'name':_0x5757e8('0x10f7'),'utcOffset':-0x258,'offsetStr':'-10:00','countries':['PF']},{'name':_0x5757e8('0x1ddb'),'utcOffset':-0x23a,'offsetStr':'-09:30','countries':['PF']},{'name':_0x5757e8('0x775'),'utcOffset':-0x21c,'offsetStr':_0x5757e8('0x430'),'countries':['PF']},{'name':_0x5757e8('0x1fe2'),'utcOffset':0x258,'offsetStr':'+10:00','countries':['PG']},{'name':_0x5757e8('0xdb9'),'utcOffset':0x294,'offsetStr':_0x5757e8('0x24ab'),'countries':['PG']},{'name':'Asia/Manila','utcOffset':0x1e0,'offsetStr':_0x5757e8('0x3c'),'countries':['PH']},{'name':'Asia/Karachi','utcOffset':0x12c,'offsetStr':'+05:00','countries':['PK']},{'name':_0x5757e8('0x36a'),'utcOffset':0x3c,'offsetStr':_0x5757e8('0xf6d'),'countries':['PL']},{'name':_0x5757e8('0xc34'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['PM']},{'name':_0x5757e8('0xf4'),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['PN']},{'name':_0x5757e8('0x1cc3'),'utcOffset':-0xf0,'offsetStr':_0x5757e8('0x1aec'),'countries':['PR']},{'name':_0x5757e8('0xe45'),'utcOffset':0x78,'offsetStr':_0x5757e8('0x2507'),'countries':['PS']},{'name':_0x5757e8('0x192d'),'utcOffset':0x78,'offsetStr':_0x5757e8('0x2507'),'countries':['PS']},{'name':_0x5757e8('0x1c85'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['PT']},{'name':_0x5757e8('0x1bcc'),'utcOffset':0x0,'offsetStr':_0x5757e8('0xa56'),'countries':['PT']},{'name':_0x5757e8('0x1e52'),'utcOffset':-0x3c,'offsetStr':'-01:00','countries':['PT']},{'name':_0x5757e8('0x266'),'utcOffset':0x21c,'offsetStr':'+09:00','countries':['PW']},{'name':_0x5757e8('0x184a'),'utcOffset':-0xb4,'offsetStr':_0x5757e8('0x7db'),'countries':['PY']},{'name':_0x5757e8('0x1492'),'utcOffset':0xb4,'offsetStr':_0x5757e8('0x1b25'),'countries':['QA','BH']},{'name':_0x5757e8('0xa7a'),'utcOffset':0xf0,'offsetStr':_0x5757e8('0xe75'),'countries':['RE','TF']},{'name':_0x5757e8('0x24a8'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['RO']},{'name':'Europe/Belgrade','utcOffset':0x3c,'offsetStr':'+01:00','countries':['RS','BA','HR','ME','MK','SI']},{'name':_0x5757e8('0x2f5'),'utcOffset':0x78,'offsetStr':_0x5757e8('0x2507'),'countries':['RU']},{'name':_0x5757e8('0x1387'),'utcOffset':0xb4,'offsetStr':_0x5757e8('0x1b25'),'countries':['RU']},{'name':_0x5757e8('0x20eb'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['RU']},{'name':_0x5757e8('0x158b'),'utcOffset':0xb4,'offsetStr':_0x5757e8('0x1b25'),'countries':['RU']},{'name':_0x5757e8('0x960'),'utcOffset':0xf0,'offsetStr':_0x5757e8('0xe75'),'countries':['RU']},{'name':_0x5757e8('0x209f'),'utcOffset':0x12c,'offsetStr':_0x5757e8('0x215b'),'countries':['RU']},{'name':_0x5757e8('0x166a'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['RU']},{'name':_0x5757e8('0x15ce'),'utcOffset':0x168,'offsetStr':_0x5757e8('0x26f9'),'countries':['RU']},{'name':_0x5757e8('0x7cf'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['RU']},{'name':_0x5757e8('0x1802'),'utcOffset':0x1a4,'offsetStr':_0x5757e8('0x21f3'),'countries':['RU']},{'name':_0x5757e8('0x1a3d'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['RU']},{'name':_0x5757e8('0x427'),'utcOffset':0x1e0,'offsetStr':_0x5757e8('0x3c'),'countries':['RU']},{'name':_0x5757e8('0x1f13'),'utcOffset':0x21c,'offsetStr':_0x5757e8('0x3e2'),'countries':['RU']},{'name':'Asia/Khandyga','utcOffset':0x21c,'offsetStr':_0x5757e8('0x3e2'),'countries':['RU']},{'name':_0x5757e8('0x1db5'),'utcOffset':0x258,'offsetStr':_0x5757e8('0x5d1'),'countries':['RU']},{'name':_0x5757e8('0x1f24'),'utcOffset':0x258,'offsetStr':_0x5757e8('0x5d1'),'countries':['RU']},{'name':_0x5757e8('0x8e9'),'utcOffset':0x258,'offsetStr':_0x5757e8('0x5d1'),'countries':['RU']},{'name':'Asia/Magadan','utcOffset':0x258,'offsetStr':_0x5757e8('0x5d1'),'countries':['RU']},{'name':_0x5757e8('0xd4d'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['RU']},{'name':_0x5757e8('0x2714'),'utcOffset':0x2d0,'offsetStr':_0x5757e8('0x148e'),'countries':['RU']},{'name':_0x5757e8('0x102'),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['RU']},{'name':_0x5757e8('0x220'),'utcOffset':0xb4,'offsetStr':_0x5757e8('0x1b25'),'countries':['SA','KW','YE']},{'name':_0x5757e8('0x2553'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['SB']},{'name':_0x5757e8('0xa46'),'utcOffset':0xf0,'offsetStr':_0x5757e8('0xe75'),'countries':['SC']},{'name':_0x5757e8('0x104c'),'utcOffset':0xb4,'offsetStr':_0x5757e8('0x1b25'),'countries':['SD','SS']},{'name':_0x5757e8('0x1ca1'),'utcOffset':0x3c,'offsetStr':_0x5757e8('0xf6d'),'countries':['SE']},{'name':'Asia/Singapore','utcOffset':0x1e0,'offsetStr':_0x5757e8('0x3c'),'countries':['SG']},{'name':_0x5757e8('0x2836'),'utcOffset':-0xb4,'offsetStr':_0x5757e8('0x7db'),'countries':['SR']},{'name':_0x5757e8('0x197f'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['SV']},{'name':'Asia/Damascus','utcOffset':0x78,'offsetStr':'+02:00','countries':['SY']},{'name':_0x5757e8('0x27fb'),'utcOffset':-0xf0,'offsetStr':_0x5757e8('0x1aec'),'countries':['TC']},{'name':_0x5757e8('0x95'),'utcOffset':0x3c,'offsetStr':_0x5757e8('0xf6d'),'countries':['TD']},{'name':_0x5757e8('0x72c'),'utcOffset':0x12c,'offsetStr':_0x5757e8('0x215b'),'countries':['TF']},{'name':'Asia/Bangkok','utcOffset':0x1a4,'offsetStr':_0x5757e8('0x21f3'),'countries':['TH','KH','LA','VN']},{'name':'Asia/Dushanbe','utcOffset':0x12c,'offsetStr':_0x5757e8('0x215b'),'countries':['TJ']},{'name':_0x5757e8('0xb1e'),'utcOffset':0x30c,'offsetStr':_0x5757e8('0x1b94'),'countries':['TK']},{'name':'Asia/Dili','utcOffset':0x21c,'offsetStr':_0x5757e8('0x3e2'),'countries':['TL']},{'name':_0x5757e8('0xccf'),'utcOffset':0x12c,'offsetStr':_0x5757e8('0x215b'),'countries':['TM']},{'name':_0x5757e8('0x2367'),'utcOffset':0x3c,'offsetStr':_0x5757e8('0xf6d'),'countries':['TN']},{'name':_0x5757e8('0x285e'),'utcOffset':0x30c,'offsetStr':_0x5757e8('0x1b94'),'countries':['TO']},{'name':'Europe/Istanbul','utcOffset':0x78,'offsetStr':_0x5757e8('0x2507'),'countries':['TR']},{'name':_0x5757e8('0x156'),'utcOffset':-0xf0,'offsetStr':_0x5757e8('0x1aec'),'countries':['TT','AG','AI','BL','DM','GD','GP','KN','LC','MF','MS','VC','VG','VI']},{'name':_0x5757e8('0x15be'),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['TV']},{'name':_0x5757e8('0x2674'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['TW']},{'name':_0x5757e8('0xa79'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['UA']},{'name':_0x5757e8('0x2506'),'utcOffset':0x78,'offsetStr':_0x5757e8('0x2507'),'countries':['UA']},{'name':_0x5757e8('0x21e1'),'utcOffset':0x78,'offsetStr':_0x5757e8('0x2507'),'countries':['UA']},{'name':_0x5757e8('0x23d4'),'utcOffset':0x2d0,'offsetStr':_0x5757e8('0x148e'),'countries':['UM']},{'name':_0x5757e8('0x2267'),'utcOffset':-0x12c,'offsetStr':_0x5757e8('0x1422'),'countries':['US']},{'name':_0x5757e8('0x22cf'),'utcOffset':-0x12c,'offsetStr':_0x5757e8('0x1422'),'countries':['US']},{'name':'America/Kentucky/Louisville','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':'America/Kentucky/Monticello','utcOffset':-0x12c,'offsetStr':_0x5757e8('0x1422'),'countries':['US']},{'name':_0x5757e8('0x55b'),'utcOffset':-0x12c,'offsetStr':_0x5757e8('0x1422'),'countries':['US']},{'name':_0x5757e8('0x35c'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':_0x5757e8('0x1530'),'utcOffset':-0x12c,'offsetStr':_0x5757e8('0x1422'),'countries':['US']},{'name':'America/Indiana/Marengo','utcOffset':-0x12c,'offsetStr':_0x5757e8('0x1422'),'countries':['US']},{'name':_0x5757e8('0x234d'),'utcOffset':-0x12c,'offsetStr':_0x5757e8('0x1422'),'countries':['US']},{'name':'America/Indiana/Vevay','utcOffset':-0x12c,'offsetStr':_0x5757e8('0x1422'),'countries':['US']},{'name':'America/Chicago','utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},{'name':_0x5757e8('0xc33'),'utcOffset':-0x168,'offsetStr':_0x5757e8('0x10a9'),'countries':['US']},{'name':_0x5757e8('0x1f58'),'utcOffset':-0x168,'offsetStr':_0x5757e8('0x10a9'),'countries':['US']},{'name':'America/Menominee','utcOffset':-0x168,'offsetStr':_0x5757e8('0x10a9'),'countries':['US']},{'name':_0x5757e8('0x24e0'),'utcOffset':-0x168,'offsetStr':_0x5757e8('0x10a9'),'countries':['US']},{'name':_0x5757e8('0x1770'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},{'name':_0x5757e8('0x407'),'utcOffset':-0x168,'offsetStr':_0x5757e8('0x10a9'),'countries':['US']},{'name':_0x5757e8('0x3d3'),'utcOffset':-0x1a4,'offsetStr':_0x5757e8('0xe9a'),'countries':['US']},{'name':_0x5757e8('0x25d'),'utcOffset':-0x1a4,'offsetStr':_0x5757e8('0xe9a'),'countries':['US']},{'name':_0x5757e8('0x12cf'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['US']},{'name':_0x5757e8('0x1a56'),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['US']},{'name':'America/Metlakatla','utcOffset':-0x1e0,'offsetStr':_0x5757e8('0x1a2e'),'countries':['US']},{'name':_0x5757e8('0xb7f'),'utcOffset':-0x21c,'offsetStr':_0x5757e8('0x430'),'countries':['US']},{'name':_0x5757e8('0xb06'),'utcOffset':-0x21c,'offsetStr':_0x5757e8('0x430'),'countries':['US']},{'name':'America/Sitka','utcOffset':-0x21c,'offsetStr':_0x5757e8('0x430'),'countries':['US']},{'name':_0x5757e8('0x27a8'),'utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},{'name':_0x5757e8('0x13ff'),'utcOffset':-0x21c,'offsetStr':_0x5757e8('0x430'),'countries':['US']},{'name':'America/Adak','utcOffset':-0x258,'offsetStr':_0x5757e8('0x1c82'),'countries':['US']},{'name':_0x5757e8('0x2331'),'utcOffset':-0x258,'offsetStr':_0x5757e8('0x1c82'),'countries':['US','UM']},{'name':_0x5757e8('0x13bc'),'utcOffset':-0xb4,'offsetStr':_0x5757e8('0x7db'),'countries':['UY']},{'name':_0x5757e8('0x1646'),'utcOffset':0x12c,'offsetStr':_0x5757e8('0x215b'),'countries':['UZ']},{'name':_0x5757e8('0x1959'),'utcOffset':0x12c,'offsetStr':_0x5757e8('0x215b'),'countries':['UZ']},{'name':_0x5757e8('0x15ec'),'utcOffset':-0x10e,'offsetStr':_0x5757e8('0x1282'),'countries':['VE']},{'name':_0x5757e8('0x23cd'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['VN']},{'name':'Pacific/Efate','utcOffset':0x294,'offsetStr':_0x5757e8('0x24ab'),'countries':['VU']},{'name':_0x5757e8('0x8ea'),'utcOffset':0x2d0,'offsetStr':_0x5757e8('0x148e'),'countries':['WF']},{'name':'Pacific/Apia','utcOffset':0x348,'offsetStr':_0x5757e8('0x450'),'countries':['WS']},{'name':_0x5757e8('0xe2e'),'utcOffset':0x78,'offsetStr':_0x5757e8('0x2507'),'countries':['ZA','LS','SZ']}];}],'templateUrl':_0x3d71e2};}const _0x1eb03c=_0x3e2f41;;function _0x570fa7(){var _0x41bd84=_0x3877e3,_0x17108a=this;_0x17108a[_0x41bd84('0x1503')]=[],_0x17108a['filtered']=![],_0x17108a['fontSize']=0x14;function _0x23cbef(_0x28f429){var _0x286887=_0x41bd84,_0x546d75=0x0;if(_0x28f429){_0x17108a[_0x286887('0x265')]=_0x28f429[_0x286887('0x11e1')][0x2]&&_0x28f429['attrs'][0x2][_0x286887('0x2228')]?parseInt(_0x28f429['attrs'][0x2]['value'])-parseInt(_0x28f429[_0x286887('0x11e1')][0x2][_0x286887('0x2228')])%0x2:0x14;_0x28f429['attrs'][0x1][_0x286887('0x2228')]&&_0x28f429[_0x286887('0x11e1')][0x1][_0x286887('0x2228')][_0x286887('0x577')]?(_0x17108a[_0x286887('0x1749')]=!![],_0x17108a[_0x286887('0x1503')]=_0x86640f()[_0x286887('0x1ec2')](_0x28f429['voiceQueuesSelected'],_0x28f429[_0x286887('0x11e1')][0x1][_0x286887('0x2228')])):(_0x17108a[_0x286887('0x1749')]=![],_0x17108a['filter']=_0x28f429[_0x286887('0x1dce')]);for(var _0x20635a=0x0;_0x20635a<_0x28f429[_0x286887('0x2b6')][_0x286887('0x1b33')]['length'];_0x20635a+=0x1){_0x86640f()[_0x286887('0xb34')](_0x17108a[_0x286887('0x1503')],_0x28f429[_0x286887('0x2b6')][_0x286887('0x1b33')][_0x20635a]['id'])&&(_0x546d75+=_0x28f429[_0x286887('0x2b6')][_0x286887('0x1b33')][_0x20635a][_0x28f429[_0x286887('0x11e1')][0x0][_0x286887('0x2228')]]?parseInt(_0x28f429[_0x286887('0x2b6')][_0x286887('0x1b33')][_0x20635a][_0x28f429[_0x286887('0x11e1')][0x0][_0x286887('0x2228')]]):0x0);}}return _0x546d75;}_0x17108a[_0x41bd84('0x19f4')]=_0x23cbef;}const _0x51a188=_0x570fa7;_0xad9fff[_0x3877e3('0x1a81')]=['$translate'];function _0xad9fff(_0x55f1db){var _0x292c5f=_0x3877e3,_0xe7d637=this;_0xe7d637['filter']=[],_0xe7d637[_0x292c5f('0x1749')]=![],_0xe7d637['properties']=[],_0xe7d637[_0x292c5f('0x1198')]={'labels':['QUEUE_NAME'],'series':[_0x292c5f('0xe1e')],'data':[[0x32]],'options':{'responsive':!![],'legend':{'display':!![],'fontColor':'#2196f3'},'scales':{'xAxes':[{'gridLines':{'display':!![]},'ticks':{'fontColor':_0x292c5f('0xd8'),'stepSize':0x1,'beginAtZero':!![]}}],'yAxes':[{'gridLines':{'display':![]},'ticks':{'fontColor':_0x292c5f('0xd8')}}]}}};function _0x4e6f05(_0xff2dff){var _0x1b64d7=_0x292c5f;_0xe7d637[_0x1b64d7('0x156f')]=_0x86640f()[_0x1b64d7('0x26c3')](_0x86640f()[_0x1b64d7('0x1503')](_0xff2dff['attrs'],function(_0x3774ad){var _0x7cf6b2=_0x1b64d7;return _0x3774ad[_0x7cf6b2('0x19fe')]&&_0x3774ad[_0x7cf6b2('0x19fe')][_0x7cf6b2('0x2004')](_0x7cf6b2('0x1880'))>=0x0&&_0x3774ad[_0x7cf6b2('0x2228')]&&_0x3774ad[_0x7cf6b2('0x2228')]!==_0x7cf6b2('0x27a');}),_0x1b64d7('0x2228'));_0xff2dff['attrs'][0x3][_0x1b64d7('0x2228')]&&_0xff2dff[_0x1b64d7('0x11e1')][0x3][_0x1b64d7('0x2228')][_0x1b64d7('0x577')]?(_0xe7d637['filtered']=!![],_0xe7d637[_0x1b64d7('0x1503')]=_0x86640f()[_0x1b64d7('0x1ec2')](_0xff2dff[_0x1b64d7('0x1dce')],_0xff2dff[_0x1b64d7('0x11e1')][0x3][_0x1b64d7('0x2228')])):(_0xe7d637['filtered']=![],_0xe7d637[_0x1b64d7('0x1503')]=_0xff2dff[_0x1b64d7('0x1dce')]);if(_0xe7d637[_0x1b64d7('0x1198')][_0x1b64d7('0xa87')][_0x1b64d7('0x577')]>_0xe7d637['properties']['length']){var _0x57f445=_0xe7d637[_0x1b64d7('0x1198')][_0x1b64d7('0xa87')]['length']-_0xe7d637[_0x1b64d7('0x156f')][_0x1b64d7('0x577')];_0xe7d637[_0x1b64d7('0x1198')]['series']['splice'](0x0,_0x57f445),_0xe7d637[_0x1b64d7('0x1198')][_0x1b64d7('0x11c2')]['splice'](0x0,_0x57f445);}for(var _0x401e9b=0x0;_0x401e9b<_0xe7d637[_0x1b64d7('0x156f')][_0x1b64d7('0x577')];_0x401e9b+=0x1){_0xe7d637[_0x1b64d7('0x1198')][_0x1b64d7('0xa87')][_0x401e9b]=_0x55f1db[_0x1b64d7('0x183e')](_0x1b64d7('0x80b')+_0xe7d637[_0x1b64d7('0x156f')][_0x401e9b][_0x1b64d7('0x2e8')]());_0x86640f()[_0x1b64d7('0x1c7')](_0xe7d637[_0x1b64d7('0x1198')][_0x1b64d7('0x11c2')][_0x401e9b])&&(_0xe7d637[_0x1b64d7('0x1198')][_0x1b64d7('0x11c2')][_0x401e9b]=[]);if(_0xe7d637[_0x1b64d7('0x1198')]['labels']['length']>_0xe7d637['filter'][_0x1b64d7('0x577')]){var _0x2fe3e2=_0xe7d637[_0x1b64d7('0x1198')][_0x1b64d7('0x878')][_0x1b64d7('0x577')]-_0xe7d637[_0x1b64d7('0x1503')][_0x1b64d7('0x577')];_0xe7d637[_0x1b64d7('0x1198')][_0x1b64d7('0x878')]['splice'](0x0,_0x2fe3e2),_0xe7d637['multiBarChart'][_0x1b64d7('0x11c2')][_0x401e9b]['splice'](0x0,_0x2fe3e2);}for(var _0x53f11a=0x0,_0x52af66=0x0;_0x53f11a<_0xff2dff[_0x1b64d7('0x2b6')][_0x1b64d7('0x1b33')][_0x1b64d7('0x577')];_0x53f11a+=0x1){_0x86640f()[_0x1b64d7('0xb34')](_0xe7d637[_0x1b64d7('0x1503')],_0xff2dff[_0x1b64d7('0x2b6')][_0x1b64d7('0x1b33')][_0x53f11a]['id'])&&(_0xe7d637['multiBarChart']['labels'][_0x52af66]=_0xff2dff[_0x1b64d7('0x2b6')][_0x1b64d7('0x1b33')][_0x53f11a][_0x1b64d7('0x19fe')],_0xe7d637[_0x1b64d7('0x1198')]['data'][_0x401e9b][_0x52af66]=_0xff2dff[_0x1b64d7('0x2b6')][_0x1b64d7('0x1b33')][_0x53f11a][_0xe7d637[_0x1b64d7('0x156f')][_0x401e9b]]?parseInt(_0xff2dff['voiceQueues'][_0x1b64d7('0x1b33')][_0x53f11a][_0xe7d637[_0x1b64d7('0x156f')][_0x401e9b]]):0x0,_0x52af66+=0x1);}}}function _0x5454f1(_0x1b5f12){var _0x3ed0c7=_0x292c5f;_0xe7d637[_0x3ed0c7('0x1198')][_0x3ed0c7('0x26a0')]['legend'][_0x3ed0c7('0x2800')]=_0x1b5f12[_0x3ed0c7('0x1b0b')];for(var _0xf078d6=0x0;_0xf078d6<_0xe7d637[_0x3ed0c7('0x1198')][_0x3ed0c7('0x26a0')][_0x3ed0c7('0x2134')][_0x3ed0c7('0x24f3')][_0x3ed0c7('0x577')];_0xf078d6+=0x1){_0xe7d637[_0x3ed0c7('0x1198')]['options']['scales'][_0x3ed0c7('0x24f3')][_0xf078d6][_0x3ed0c7('0x91a')][_0x3ed0c7('0x2800')]=_0x1b5f12[_0x3ed0c7('0x1b0b')];}for(var _0x52e87c=0x0;_0x52e87c<_0xe7d637['multiBarChart'][_0x3ed0c7('0x26a0')]['scales'][_0x3ed0c7('0xbb9')][_0x3ed0c7('0x577')];_0x52e87c+=0x1){_0xe7d637[_0x3ed0c7('0x1198')][_0x3ed0c7('0x26a0')][_0x3ed0c7('0x2134')][_0x3ed0c7('0xbb9')][_0x52e87c][_0x3ed0c7('0x91a')][_0x3ed0c7('0x2800')]=_0x1b5f12[_0x3ed0c7('0x1b0b')];}}function _0x2c1bb4(_0xdff72){var _0x290511=_0x292c5f;_0xdff72&&(_0xdff72[_0x290511('0x11e1')]&&_0x4e6f05(_0xdff72),_0xdff72[_0x290511('0x1b0b')]&&_0x5454f1(_0xdff72));}_0xe7d637['getMultiBarChart']=_0x2c1bb4;}const _0x342c5f=_0xad9fff;_0x462b0e[_0x3877e3('0x1a81')]=[_0x3877e3('0x13c1')];function _0x462b0e(_0x59b923){var _0x358cce=_0x3877e3,_0x4c59bf=this;_0x4c59bf[_0x358cce('0x1503')]=[],_0x4c59bf[_0x358cce('0x1749')]=![],_0x4c59bf[_0x358cce('0x156f')]=[],_0x4c59bf[_0x358cce('0xae0')]={'labels':[_0x358cce('0xb8b')],'data':[0x1e],'options':{'responsive':!![],'legend':{'display':!![]}}};function _0x3dc7ff(_0x497d50){var _0x549473=_0x358cce;_0x4c59bf['properties']=_0x86640f()[_0x549473('0x26c3')](_0x86640f()[_0x549473('0x1503')](_0x497d50['attrs'],function(_0x1df007){var _0x9cb43e=_0x549473;return _0x1df007['name']&&_0x1df007[_0x9cb43e('0x19fe')][_0x9cb43e('0x2004')](_0x9cb43e('0x1880'))>=0x0&&_0x1df007['value']&&_0x1df007[_0x9cb43e('0x2228')]!==_0x9cb43e('0x27a');}),_0x549473('0x2228'));_0x497d50[_0x549473('0x11e1')][0x3][_0x549473('0x2228')]&&_0x497d50[_0x549473('0x11e1')][0x3]['value']['length']?(_0x4c59bf[_0x549473('0x1749')]=!![],_0x4c59bf[_0x549473('0x1503')]=_0x86640f()[_0x549473('0x1ec2')](_0x497d50[_0x549473('0x1dce')],_0x497d50[_0x549473('0x11e1')][0x3][_0x549473('0x2228')])):(_0x4c59bf['filtered']=![],_0x4c59bf[_0x549473('0x1503')]=_0x497d50[_0x549473('0x1dce')]);if(_0x4c59bf[_0x549473('0xae0')][_0x549473('0x878')][_0x549473('0x577')]>_0x4c59bf['properties'][_0x549473('0x577')]){var _0x1221a7=_0x4c59bf[_0x549473('0xae0')][_0x549473('0x878')][_0x549473('0x577')]-_0x4c59bf['properties'][_0x549473('0x577')];_0x4c59bf[_0x549473('0xae0')]['labels']['splice'](0x0,_0x1221a7),_0x4c59bf[_0x549473('0xae0')]['data']['splice'](0x0,_0x1221a7);}for(var _0x1e38a6=0x0,_0x96f8ec=0x0;_0x1e38a6<_0x4c59bf[_0x549473('0x156f')][_0x549473('0x577')];_0x1e38a6+=0x1){_0x4c59bf[_0x549473('0xae0')][_0x549473('0x878')][_0x1e38a6]=_0x59b923[_0x549473('0x183e')](_0x549473('0x80b')+_0x4c59bf[_0x549473('0x156f')][_0x1e38a6][_0x549473('0x2e8')]());for(var _0x3655b9=0x0;_0x3655b9<_0x497d50[_0x549473('0x2b6')]['rows']['length'];_0x3655b9+=0x1){_0x86640f()[_0x549473('0xb34')](_0x4c59bf[_0x549473('0x1503')],_0x497d50['voiceQueues']['rows'][_0x3655b9]['id'])&&(_0x96f8ec+=_0x497d50[_0x549473('0x2b6')]['rows'][_0x3655b9][_0x4c59bf[_0x549473('0x156f')][_0x1e38a6]]?parseInt(_0x497d50['voiceQueues']['rows'][_0x3655b9][_0x4c59bf[_0x549473('0x156f')][_0x1e38a6]]):0x0);}_0x4c59bf[_0x549473('0xae0')][_0x549473('0x11c2')][_0x1e38a6]=_0x96f8ec,_0x96f8ec=0x0;}}function _0x48a1e6(_0x1ff89a){var _0x428937=_0x358cce;_0x4c59bf[_0x428937('0xae0')]['options'][_0x428937('0x19cf')][_0x428937('0x2800')]=_0x1ff89a['foreground'];}function _0x39cd39(_0x6064a1){var _0x3c3580=_0x358cce;_0x6064a1&&(_0x6064a1[_0x3c3580('0x11e1')]&&_0x3dc7ff(_0x6064a1),_0x6064a1[_0x3c3580('0x1b0b')]&&_0x48a1e6(_0x6064a1));}_0x4c59bf['getPieChart']=_0x39cd39;}const _0x357aa1=_0x462b0e;_0x2ebd70['$inject']=[_0x3877e3('0x95a'),'$timeout',_0x3877e3('0x1e8d'),_0x3877e3('0xccd')];function _0x2ebd70(_0x504a14,_0x2dbcfa,_0x28d656,_0x5ea83f){var _0x5b6ae0=_0x3877e3,_0x4ee40e=this;_0x4ee40e[_0x5b6ae0('0xfdc')]=0x0,_0x4ee40e[_0x5b6ae0('0x14f')]=0x0,_0x4ee40e['title']='',_0x4ee40e[_0x5b6ae0('0x2d5')]=[],_0x4ee40e['results']={'rows':[],'count':0x0},_0x4ee40e['query']={'limit':0xa,'page':0x1,'startDate':_0x1088bc()()[_0x5b6ae0('0x1982')](_0x5b6ae0('0x1837'))['format'](_0x5b6ae0('0x1e15')),'endDate':_0x1088bc()()[_0x5b6ae0('0x117b')](_0x5b6ae0('0x1837'))[_0x5b6ae0('0x153')](_0x5b6ae0('0x1e15')),'output':_0x5b6ae0('0x865')},_0x4ee40e[_0x5b6ae0('0x1081')]=_0x6f9b5f,_0x4ee40e['getResults']=_0x409e8c,_0x4ee40e[_0x5b6ae0('0x1ea9')]=_0x585123;function _0x6f9b5f(_0x44a6d0){var _0x40d495=_0x5b6ae0;_0x44a6d0&&(_0x44a6d0[_0x40d495('0x11e1')]&&(_0x44a6d0[_0x40d495('0x11e1')][0x0]&&_0x44a6d0[_0x40d495('0x11e1')][0x0][_0x40d495('0x2228')]&&(_0x4ee40e[_0x40d495('0x77')]['id']=_0x44a6d0['attrs'][0x0][_0x40d495('0x2228')],_0x5ea83f[_0x40d495('0x1575')][_0x40d495('0x595')]({'fields':_0x40d495('0x1cd9'),'nolimit':!![],'DefaultReportId':_0x44a6d0['attrs'][0x0]['type']==='default'?_0x44a6d0[_0x40d495('0x11e1')][0x0][_0x40d495('0x2228')]:undefined,'CustomReportId':_0x44a6d0[_0x40d495('0x11e1')][0x0][_0x40d495('0x7fa')]===_0x40d495('0xf50')?_0x44a6d0[_0x40d495('0x11e1')][0x0][_0x40d495('0x2228')]:undefined})[_0x40d495('0x1376')]['then'](function(_0x2ec6dc){var _0x421c43=_0x40d495;_0x2ec6dc&&_0x2ec6dc[_0x421c43('0x1b33')]&&(_0x4ee40e[_0x421c43('0x2d5')]=_0x2ec6dc['rows']);switch(_0x44a6d0[_0x421c43('0x11e1')][0x0][_0x421c43('0x7fa')]){case'default':_0x4ee40e['reportRoute']=_0x421c43('0xc42');break;case _0x421c43('0xf50'):_0x4ee40e[_0x421c43('0x21db')]='analyticCustomReport';break;}return _0x5ea83f[_0x4ee40e[_0x421c43('0x21db')]][_0x421c43('0x595')]({'id':_0x44a6d0[_0x421c43('0x11e1')][0x0][_0x421c43('0x2228')],'fields':_0x421c43('0x1aa8')})['$promise'];})['then'](function(_0x45b17b){var _0x3b7a4a=_0x40d495;_0x45b17b&&_0x45b17b[_0x3b7a4a('0x19fe')]&&(_0x4ee40e[_0x3b7a4a('0x4b4')]=_0x45b17b['name']),_0x409e8c();})[_0x40d495('0x1c1d')](function(_0x12c770){var _0x2f9f52=_0x40d495;console[_0x2f9f52('0x6fb')](_0x12c770);})),_0x44a6d0[_0x40d495('0x11e1')][0x1]&&_0x44a6d0[_0x40d495('0x11e1')][0x1][_0x40d495('0x2228')]&&(_0x4ee40e['refresh']=parseInt(_0x44a6d0[_0x40d495('0x11e1')][0x1][_0x40d495('0x2228')]),!_0x86640f()[_0x40d495('0x15c3')](_0x4ee40e[_0x40d495('0x14f')])&&_0x4ee40e[_0x40d495('0x14f')]>0x0?(_0x4ee40e[_0x40d495('0xfdc')]=parseInt(_0x44a6d0[_0x40d495('0x11e1')][0x1][_0x40d495('0x2228')]),_0x4ee40e['interval']=_0x28d656(function(){var _0x3a12c7=_0x40d495;_0x4ee40e[_0x3a12c7('0xfdc')]-=0x1;},0x3e8,0x0),_0x4ee40e[_0x40d495('0x2133')]=_0x2dbcfa(function(){var _0x1fb7c6=_0x40d495;_0x4ee40e[_0x1fb7c6('0xa07')]&&_0x28d656['cancel'](_0x4ee40e['interval']),_0x6f9b5f(_0x44a6d0);},_0x4ee40e['refresh']*0x3e8)):(_0x4ee40e[_0x40d495('0xa07')]&&_0x28d656[_0x40d495('0x3b5')](_0x4ee40e[_0x40d495('0xa07')]),_0x4ee40e[_0x40d495('0x2133')]&&_0x2dbcfa[_0x40d495('0x3b5')](_0x4ee40e[_0x40d495('0x2133')])))));}function _0xe8d291(_0x45e76f){var _0x4d277f=_0x5b6ae0;_0x4ee40e[_0x4d277f('0x1904')]=_0x45e76f||{'count':0x0,'rows':[]};}function _0x409e8c(){var _0x2da88b=_0x5b6ae0;_0x4ee40e[_0x2da88b('0x77')][_0x2da88b('0x15a5')]=(_0x4ee40e[_0x2da88b('0x77')][_0x2da88b('0x2376')]-0x1)*_0x4ee40e[_0x2da88b('0x77')][_0x2da88b('0x1f4a')],_0x4ee40e[_0x2da88b('0x71b')]=_0x5ea83f[_0x4ee40e['reportRoute']][_0x2da88b('0x2362')](_0x4ee40e[_0x2da88b('0x77')],_0xe8d291)['$promise'];}function _0x585123(_0x780a32,_0x52f413){var _0x47b662=_0x5b6ae0;return _0x1088bc()(_0x52f413,'YYYY-MM-DDTHH:mm:ssZ',!![])[_0x47b662('0x118b')]()&&(_0x52f413=_0x1088bc()(_0x52f413,'')['format'](_0x47b662('0x1e15'))),_0x52f413;}_0x504a14[_0x5b6ae0('0x1723')](_0x5b6ae0('0x1210'),function(){var _0x42e186=_0x5b6ae0;_0x4ee40e[_0x42e186('0xa07')]&&_0x28d656['cancel'](_0x4ee40e[_0x42e186('0xa07')]),_0x4ee40e[_0x42e186('0x2133')]&&_0x2dbcfa[_0x42e186('0x3b5')](_0x4ee40e[_0x42e186('0x2133')]);});}const _0x7fc6de=_0x2ebd70,_0x547078=_0x398308['p']+'src/js/modules/core/directives/ms-widget-engine/ms-widget-engine.html/ms-widget-engine-[chunkhash].html';_0x391e80[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),_0x3877e3('0x73f')];function _0x391e80(_0x2e7803,_0x3448bd){var _0x1361cc=_0x3877e3,_0x481da9=this;function _0x56e7da(_0x241bdb){var _0x11a093=a0_0x2e7f;return _0x3448bd[_0x11a093('0x2684')](_0x241bdb);}_0x481da9[_0x1361cc('0x271e')]=_0x56e7da;}function _0x482147(){var _0x18aba8=_0x3877e3;return{'restrict':'E','scope':{'config':'=?','onEdit':'&?','onDelete':'&?'},'require':_0x18aba8('0x2712'),'controller':_0x18aba8('0x1d84'),'controllerAs':'vm','bindToController':!![],'templateUrl':_0x547078};}_0x5f2298['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0x88f')];function _0x5f2298(_0x235c7a,_0x422851){var _0x743a6c=_0x3877e3,_0xd5b57=this;_0xd5b57[_0x743a6c('0x227b')]=![];function _0x521863(){var _0x328eab=_0x743a6c;return angular[_0x328eab('0x1465')](_0x235c7a[_0x328eab('0xa2')])&&_0x235c7a[_0x328eab('0xa2')]===!![];}function _0xe9966(){var _0xdd0ff3=_0x743a6c;if(!_0x521863())return;_0xd5b57[_0xdd0ff3('0x227b')]=!_0xd5b57[_0xdd0ff3('0x227b')],_0x422851[_0xdd0ff3('0x2806')](_0xdd0ff3('0x227b'),_0xd5b57[_0xdd0ff3('0x227b')]);}_0xd5b57['flip']=_0xe9966;}function _0x4c997d(){var _0x4768bb=_0x3877e3;return{'restrict':'E','scope':{'flippable':'=?'},'controller':_0x4768bb('0x2053'),'transclude':!![],'compile':function _0x49d8fe(_0x59aa5f){var _0xaa7184=_0x4768bb;return _0x59aa5f['addClass'](_0xaa7184('0xbbf')),function _0x56c6ad(_0x44ef3a,_0x3ce793,_0x37866c,_0x4c48ec,_0x24d169){_0x24d169(function(_0x446a3c){var _0x17a708=a0_0x2e7f;_0x3ce793[_0x17a708('0xd57')](),_0x3ce793['append'](_0x446a3c);});};}};}function _0x2826f1(){var _0x5ceddb=_0x3877e3;return{'restrict':'E','require':_0x5ceddb('0x2683'),'transclude':!![],'compile':function _0x577c1a(_0xae558b){var _0xb71dfa=_0x5ceddb;return _0xae558b[_0xb71dfa('0x11da')](_0xb71dfa('0x5df')),function _0x1ff605(_0x2a40f4,_0x3d6f17,_0x3405fc,_0x3b1d4d,_0x1dc9f2){var _0x2f6d91=_0xb71dfa;_0x1dc9f2(function(_0x22fe94){var _0x46f8a9=a0_0x2e7f;_0x3d6f17[_0x46f8a9('0xd57')](),_0x3d6f17[_0x46f8a9('0x92d')](_0x22fe94);}),_0x2a40f4[_0x2f6d91('0x12ee')]=_0x3b1d4d[_0x2f6d91('0x1d1f')];};}};}function _0xec783d(){return{'restrict':'E','require':'^msWidget','transclude':!![],'compile':function _0x40a0dc(_0x248c9b){var _0x112d79=a0_0x2e7f;return _0x248c9b['addClass'](_0x112d79('0x1352')),function _0x4d2be3(_0x179aef,_0x1ac678,_0xea9220,_0x56aeb9,_0x1fead6){var _0x3e6343=_0x112d79;_0x1fead6(function(_0x1c80c3){var _0x28f834=a0_0x2e7f;_0x1ac678[_0x28f834('0xd57')](),_0x1ac678[_0x28f834('0x92d')](_0x1c80c3);}),_0x179aef['flipWidget']=_0x56aeb9[_0x3e6343('0x1d1f')];};}};};var _0x395467=[[_0x3877e3('0x1996'),_0x14f0eb,_0x3877e3('0x921')],['hljs',_0x4b5eb7,_0x3877e3('0x921')],[_0x3877e3('0x2785'),_0xa2d4cf,'directive'],[_0x3877e3('0x1f16'),_0x13a3a5,_0x3877e3('0x921')],['msChipColor',_0x3ce5ca,_0x3877e3('0x921')],[_0x3877e3('0xb3e'),_0x2ace68,'directive'],['msDatepickerFixConfig',_0x5b6dc3,_0x3877e3('0x1c0c')],[_0x3877e3('0x1127'),_0x237992,_0x3877e3('0x921')],[_0x3877e3('0x1dde'),_0x196882,_0x3877e3('0x921')],['msDualMultiselect',_0x18082e,'directive'],[_0x3877e3('0x2299'),_0x5dfd4a,_0x3877e3('0x921')],[_0x3877e3('0x6a3'),_0x2f0e99,_0x3877e3('0x921')],[_0x3877e3('0x2758'),_0xad0879,'controller'],[_0x3877e3('0x1b'),_0x2aceb1,_0x3877e3('0x921')],[_0x3877e3('0x1883'),_0x2337b1,'directive'],[_0x3877e3('0x1768'),_0x3eda71,_0x3877e3('0x921')],[_0x3877e3('0xd14'),_0x237c2d,_0x3877e3('0x1d5a')],['msMasonry',_0xb504c,_0x3877e3('0x921')],['msMasonryItem',_0x11320c,_0x3877e3('0x921')],['msMaterialColorPickerController',_0x2a8a90,_0x3877e3('0x1d5a')],[_0x3877e3('0x63'),_0x40652a,'directive'],[_0x3877e3('0x2440'),_0x1a9837,_0x3877e3('0x1551')],['msNavIsFolded',_0x1e3046,'directive'],[_0x3877e3('0xf09'),_0xbc6055,_0x3877e3('0x1d5a')],[_0x3877e3('0x1b4f'),_0x2ae776,_0x3877e3('0x921')],[_0x3877e3('0x25d1'),_0x13d58a,_0x3877e3('0x921')],[_0x3877e3('0x3b8'),_0x2378f4,'directive'],['msNavToggle',_0x32f7f5,_0x3877e3('0x921')],[_0x3877e3('0x48e'),_0x4afcf2,'provider'],[_0x3877e3('0x121a'),_0x18171b,_0x3877e3('0x1d5a')],[_0x3877e3('0x173e'),_0x414aec,'directive'],[_0x3877e3('0x249e'),_0x421597,_0x3877e3('0x1d5a')],[_0x3877e3('0xb51'),_0x335c85,_0x3877e3('0x921')],[_0x3877e3('0xcf7'),_0x5cf93c,_0x3877e3('0x921')],[_0x3877e3('0x2157'),_0x307325,'directive'],[_0x3877e3('0x1981'),_0x22da3d,_0x3877e3('0x1d5a')],['msNavigationHorizontalNode',_0x1d2a99,_0x3877e3('0x921')],[_0x3877e3('0x24d3'),_0x1e8627,'directive'],['MsPhonebarController',_0x4b6f28,_0x3877e3('0x1d5a')],[_0x3877e3('0xb8a'),_0xf67e67,_0x3877e3('0x921')],[_0x3877e3('0x1a74'),_0x25984b,_0x3877e3('0x1d5a')],['msBlink',_0x1b3bd0,_0x3877e3('0x921')],[_0x3877e3('0x205d'),_0x2ff30b,_0x3877e3('0x1d5a')],['ReferAttendedDialogController',_0xc28898,'controller'],[_0x3877e3('0x1a77'),_0x13901a,_0x3877e3('0x1d5a')],[_0x3877e3('0x13aa'),_0x152652,_0x3877e3('0x921')],['dateRangeManager',_0xcfe3ed,'factory'],[_0x3877e3('0xfbe'),_0x54e71d,_0x3877e3('0x921')],['msRecording',_0x46fc35,'directive'],[_0x3877e3('0x24f2'),_0x36a45f,_0x3877e3('0x921')],[_0x3877e3('0x1b17'),_0x3d90c5,'provider'],[_0x3877e3('0x1d77'),_0x12a42e,_0x3877e3('0x921')],[_0x3877e3('0x110f'),_0x31f7c8,'controller'],[_0x3877e3('0x6c'),_0xd9bcaa,_0x3877e3('0x921')],[_0x3877e3('0xd5c'),_0x1d5914,_0x3877e3('0x1d5a')],['msShortcuts',_0x4c0cbc,'directive'],['msSidenavHelper',_0x1e396e,_0x3877e3('0x921')],[_0x3877e3('0x509'),_0x3243fe,_0x3877e3('0x921')],[_0x3877e3('0x1755'),_0x1651e6,_0x3877e3('0x1d5a')],[_0x3877e3('0xaca'),_0x561c53,_0x3877e3('0x921')],[_0x3877e3('0x103'),_0x187ef6,'directive'],[_0x3877e3('0x17d7'),_0x12f9da,_0x3877e3('0x921')],[_0x3877e3('0x275f'),_0x17ef41,_0x3877e3('0x921')],[_0x3877e3('0x1b40'),_0x8d8c25,_0x3877e3('0x1d5a')],[_0x3877e3('0x1a46'),_0x4b2e95,_0x3877e3('0x921')],[_0x3877e3('0x1c33'),_0x258ca9,'controller'],[_0x3877e3('0x1af3'),_0x11d823,'directive'],[_0x3877e3('0x2138'),_0x64eeb9,'directive'],[_0x3877e3('0x542'),_0x234d81,_0x3877e3('0x1d5a')],[_0x3877e3('0x2841'),_0xec6c6f,_0x3877e3('0x921')],[_0x3877e3('0x1043'),_0x1eb03c,_0x3877e3('0x921')],[_0x3877e3('0x21df'),_0x51a188,_0x3877e3('0x1d5a')],[_0x3877e3('0x1950'),_0x342c5f,'controller'],['MsWidgetEnginePieChartController',_0x357aa1,'controller'],['MsWidgetEngineWebReportController',_0x7fc6de,'controller'],[_0x3877e3('0x1d84'),_0x391e80,_0x3877e3('0x1d5a')],[_0x3877e3('0x2712'),_0x482147,_0x3877e3('0x921')],[_0x3877e3('0x2053'),_0x5f2298,_0x3877e3('0x1d5a')],[_0x3877e3('0x17ed'),_0x4c997d,_0x3877e3('0x921')],[_0x3877e3('0x14'),_0x2826f1,_0x3877e3('0x921')],[_0x3877e3('0x1167'),_0xec783d,_0x3877e3('0x921')]];const _0x530dd0=_0x395467;_0x5458f7['$inject']=['$q',_0x3877e3('0x13c1')];function _0x5458f7(_0x25db70,_0x306971){function _0x3eee0a(_0xae7890){var _0x3bc73d;return _0x25db70(function(_0x475506){var _0x197274=a0_0x2e7f;try{if(_0x86640f()[_0x197274('0x23aa')](_0xae7890[_0x197274('0x14af')]))_0x3bc73d=_0x306971[_0x197274('0x183e')](_0x197274('0xe34'));else{if(_0x86640f()[_0x197274('0x23aa')](_0xae7890[_0x197274('0x249f')]))_0x3bc73d=_0xae7890['placeholder']?_0x306971[_0x197274('0x183e')](_0xae7890[_0x197274('0x5a2')]):_0x306971[_0x197274('0x183e')]('DASHBOARDS.CHOOSE');else{if(_0xae7890['param'][_0x197274('0x577')]===_0xae7890[_0x197274('0x14af')][_0x197274('0x577')])_0x3bc73d=_0x306971['instant'](_0x197274('0x1ee5'));else{var _0x32408b=_0xae7890[_0x197274('0x1c5f')]||'id';_0x3bc73d=_0x86640f()(_0xae7890[_0x197274('0x14af')])[_0x197274('0x1503')](function(_0x5c0b13){return _0x86640f()['includes'](_0xae7890['param'],_0x5c0b13[_0x32408b]);})[_0x197274('0x26c3')](_0x197274('0x19fe'))[_0x197274('0x2228')]()[_0x197274('0x136')](',\x20');}}}_0x475506(_0x3bc73d);}catch(_0x149832){console['log']('QuickFilterManager::setPlaceholder',_0x149832),_0x475506(null);}});}var _0xc92dcf={'setPlaceholder':_0x3eee0a};return _0xc92dcf;}const _0x29716c=_0x5458f7;;function _0x399b7d(){return function(_0x1f6e41){var _0x2bce16=a0_0x2e7f,_0x3952d5=Date[_0x2bce16('0x25c4')]()-new Date(_0x1f6e41);if(_0x3952d5<0x3c*0x3c*0x3e8)return _0x1088bc()(_0x1f6e41)[_0x2bce16('0x1ac6')]();else{if(_0x3952d5<0x3c*0x3c*0x18*0x3e8)return _0x1088bc()(_0x1f6e41)['format'](_0x2bce16('0x5f7'));else return _0x3952d5<0x3c*0x3c*0x18*0x7*0x3e8?_0x1088bc()(_0x1f6e41)[_0x2bce16('0x153')](_0x2bce16('0x1cb6')):_0x1088bc()(_0x1f6e41)[_0x2bce16('0x204e')]();}};}const _0x27bc88=_0x399b7d;_0x1ae1d1[_0x3877e3('0x1a81')]=['$sce'];function _0x1ae1d1(_0x245023){return function(_0x529447){var _0x4cc69e=a0_0x2e7f;return _0x245023[_0x4cc69e('0x1313')](_0x529447);};}function _0x5291a3(){return function(_0x55fc91){var _0x1cac57=a0_0x2e7f;return String(_0x55fc91)[_0x1cac57('0x16e4')](/<[^>]+>/gm,'');};}function _0x158cc6(){return function(_0x350220){var _0x34c00d=a0_0x2e7f;return!_0x350220?'':_0x350220[_0x34c00d('0x16e4')](/ /g,'');};}function _0x2bd386(){return function(_0x5d90e4){var _0x541f71=a0_0x2e7f;if(!_0x5d90e4)return;if(_0x5d90e4[_0x541f71('0x7fa')]==='directive')return _0x5d90e4[_0x541f71('0x19fe')][_0x541f71('0x16e4')](/([A-Z])/g,function(_0x5a5900){var _0x3a6409=_0x541f71;return'-'+_0x5a5900[_0x3a6409('0xac2')]();});return _0x5d90e4[_0x541f71('0x214')]||_0x5d90e4[_0x541f71('0x19fe')];};};function _0x4e5faa(){return function(_0x2d29dc){var _0x3c444f=a0_0x2e7f;if(!_0x2d29dc)return'';return _0x86640f()[_0x3c444f('0x1b7e')](_0x2d29dc);};}const _0x4a05ad=_0x4e5faa;function _0x494deb(){return function(_0x9aed09,_0x4160ba){var _0x2150b9=a0_0x2e7f;if(_0x9aed09[_0x2150b9('0x577')]===0x0||!_0x4160ba)return _0x9aed09;if(_0x4160ba[_0x2150b9('0x577')]===0x0)return[];var _0x2c97a9=[];for(var _0x674979=0x0;_0x674979<_0x9aed09[_0x2150b9('0x577')];_0x674979++){var _0x2aec58=_0x9aed09[_0x674979],_0x2570ff=![];for(var _0x1bc142=0x0;_0x1bc142<_0x4160ba['length'];_0x1bc142++){var _0x16b191=_0x4160ba[_0x1bc142];if(_0x2aec58['id']===_0x16b191){_0x2570ff=!![];break;}}_0x2570ff&&_0x2c97a9[_0x2150b9('0x206c')](_0x2aec58);}return _0x2c97a9;};}const _0x2a87c8=_0x494deb;function _0x5413df(){return function(_0x2c9a18,_0x4f592e,_0x55efa3){var _0x4f3e10=a0_0x2e7f;if(_0x2c9a18[_0x4f3e10('0x577')]===0x0||!_0x55efa3||_0x55efa3[_0x4f3e10('0x577')]===0x0)return _0x2c9a18;var _0x1a64e7=[];for(var _0x1f4400=0x0;_0x1f4400<_0x2c9a18['length'];_0x1f4400++){var _0xde6f03=_0x2c9a18[_0x1f4400],_0x10ba98=![];for(var _0x230788=0x0;_0x230788<_0x55efa3[_0x4f3e10('0x577')];_0x230788++){var _0x2240de=_0x55efa3[_0x230788];if(_0xde6f03[_0x4f592e][_0x4f3e10('0x2004')](_0x2240de)>-0x1){_0x10ba98=!![];break;}}_0x10ba98&&_0x1a64e7['push'](_0xde6f03);}return _0x1a64e7;};}const _0x102a9d=_0x5413df;;function _0x543083(){return function(_0x1103aa){var _0x367118=a0_0x2e7f;if(!_0x1103aa)return'';return _0x86640f()[_0x367118('0x422')](_0x1103aa);};}const _0x127969=_0x543083;;function _0x4b488a(){return function(_0x44ccf0){var _0x24736f=a0_0x2e7f;if(!_0x44ccf0)return'';return _0x86640f()[_0x24736f('0x2159')](_0x44ccf0);};}const _0x501a43=_0x4b488a;function _0xe684aa(){return function(_0x247a0e,_0x4bbcaa){var _0x2e13e7=a0_0x2e7f;if(_0x247a0e[_0x2e13e7('0x577')]===0x0||_0x4bbcaa[_0x2e13e7('0x577')]===0x0)return _0x247a0e;var _0xedc9c9=[];return _0x247a0e[_0x2e13e7('0x1a52')](function(_0x2275cb){var _0x57a92d=_0x2e13e7,_0x33a9f4=_0x4bbcaa[_0x57a92d('0xc74')](function(_0x2a80b9){var _0x5ec49b=_0x57a92d,_0x404993=![];return _0x2275cb[_0x5ec49b('0x1889')][_0x5ec49b('0x1a52')](function(_0x237dfd){var _0x1228df=_0x5ec49b;if(_0x237dfd[_0x1228df('0x19fe')]===_0x2a80b9[_0x1228df('0x19fe')]){_0x404993=!![];return;}}),_0x404993;});_0x33a9f4&&_0xedc9c9[_0x57a92d('0x206c')](_0x2275cb);}),_0xedc9c9;};}function _0x3c9c82(){return function(_0x3688df,_0x4ec4f6){var _0x36fa11=a0_0x2e7f;if(_0x3688df[_0x36fa11('0x577')]===0x0||_0x4ec4f6[_0x36fa11('0x577')]===0x0)return;if(_0x3688df[_0x36fa11('0x577')]<_0x4ec4f6[_0x36fa11('0x577')])return[];var _0x167534=[],_0x39b7e3=_0x4ec4f6[_0x36fa11('0xc74')](function(_0x3352ad){var _0x4ce1ea=![];return _0x3688df['forEach'](function(_0x118b12){var _0x41d883=a0_0x2e7f;if(_0x118b12[_0x41d883('0x19fe')]===_0x3352ad[_0x41d883('0x19fe')]){_0x4ce1ea=!![];return;}}),_0x4ce1ea;});return _0x39b7e3&&_0x167534[_0x36fa11('0x206c')](_0x3688df),_0x167534;};}function _0x235b0b(_0x41cf76,_0x1d6d19){var _0x470d4d=_0x3877e3;if(!(_0x41cf76 instanceof _0x1d6d19))throw new TypeError(_0x470d4d('0x213a'));}var _0x4e5db4=function _0x3e06e1(_0x243caf,_0x488c27,_0x23dbda,_0xac772e){var _0x4f1886=_0x3877e3;_0x235b0b(this,_0x3e06e1),this['id']=Math[_0x4f1886('0x271f')]()[_0x4f1886('0x174f')](0x24)[_0x4f1886('0x166e')](0x2,0xf)+Math[_0x4f1886('0x271f')]()[_0x4f1886('0x174f')](0x24)[_0x4f1886('0x166e')](0x2,0xf),this[_0x4f1886('0x4b4')]=_0x243caf,this[_0x4f1886('0x2452')]=_0x488c27,this[_0x4f1886('0x134f')]=_0x23dbda,this['reject']=_0xac772e,this['close']=_0xac290c;};function _0x38184f(){var _0x55343e=_0x3877e3;return!(window[_0x55343e('0x27c3')][_0x55343e('0x22d6')]||window[_0x55343e('0x27c3')][_0x55343e('0xd6b')]||window[_0x55343e('0x27c3')][_0x55343e('0x1fef')]);}function _0x9d97ae(){var _0x13a498=_0x3877e3;return/Chrome/[_0x13a498('0x1dc7')](navigator[_0x13a498('0x2475')])&&/Google Inc/['test'](navigator['vendor']);}function _0xac290c(){var _0x3ec878=_0x3877e3,_0x562d06=this;navigator['serviceWorker'][_0x3ec878('0x1174')][_0x3ec878('0x21ad')](function(_0x134ce8){var _0x3b01c3=_0x3ec878;_0x134ce8[_0x3b01c3('0x227')]()[_0x3b01c3('0x21ad')](function(_0x24c50f){var _0x435da5=_0x3b01c3,_0x3599d8=_0x86640f()[_0x435da5('0x1d2e')](_0x24c50f,function(_0x8582c0){return _0x8582c0['data']['id']===_0x562d06['id'];});_0x3599d8&&_0x3599d8[_0x435da5('0x22f')]();});});}function _0x5b3831(){return{'$get':[_0x452656]};function _0x452656(){var _0x2f08ba=a0_0x2e7f,_0x5a96b2=[],_0x2ebcc9,_0x2c1ee7;return'serviceWorker'in navigator&&_0x9d97ae()?navigator[_0x2f08ba('0x202d')][_0x2f08ba('0xa6')](_0x2f08ba('0x12bd'))[_0x2f08ba('0x21ad')](function(_0x237048){var _0x57aa84=_0x2f08ba;_0x2ebcc9=_0x237048,_0x2ebcc9[_0x57aa84('0x5ef')]();if(_0x2ebcc9['installing'])_0x2c1ee7=_0x2ebcc9[_0x57aa84('0xd84')];else{if(_0x2ebcc9[_0x57aa84('0x8b6')])_0x2c1ee7=_0x2ebcc9['waiting'];else _0x2ebcc9[_0x57aa84('0x695')]&&(_0x2c1ee7=_0x2ebcc9[_0x57aa84('0x695')]);}})[_0x2f08ba('0x1c1d')](function(_0x58edc4){var _0x41fc30=_0x2f08ba;console[_0x41fc30('0x2092')](_0x41fc30('0x149'),_0x58edc4);}):console[_0x2f08ba('0x2092')](_0x2f08ba('0x61')),navigator['serviceWorker']['addEventListener'](_0x2f08ba('0x1224'),function(_0x998295){var _0x39f053=_0x2f08ba;if(_0x998295[_0x39f053('0x2146')]!==_0x2c1ee7)return;var _0x4ea17a=_0x86640f()[_0x39f053('0x1d2e')](_0x5a96b2,{'id':_0x998295[_0x39f053('0x11c2')]['id']});if(_0x4ea17a)switch(_0x998295[_0x39f053('0x11c2')][_0x39f053('0x9fc')]){case _0x39f053('0x134f'):_0x4ea17a[_0x39f053('0x134f')]&&_0x4ea17a[_0x39f053('0x134f')]();break;case'reject':_0x4ea17a[_0x39f053('0x37a')]&&_0x4ea17a[_0x39f053('0x37a')]();break;default:}}),{'create':function _0x1ab556(_0x579043,_0x283643,_0x7d728f,_0x1371a7,_0x391cd7){return new Promise(function(_0x2e0578,_0x4eda1e){var _0x656dda=a0_0x2e7f,_0x1691d2;_0x9d97ae()&&!_0x38184f()?(_0x1691d2=new _0x4e5db4(_0x579043||'MyTitle',_0x283643||_0x656dda('0x307'),_0x1371a7,_0x391cd7),_0x5a96b2['push'](_0x1691d2),_0x1691d2?window[_0x656dda('0x1e')][_0x656dda('0x135c')]()[_0x656dda('0x21ad')](function(_0x23469d){var _0x5da200=_0x656dda;if(_0x23469d===_0x5da200('0x1248'))return _0x2ebcc9[_0x5da200('0x1300')](_0x1691d2['title'],{'body':_0x1691d2[_0x5da200('0x2452')],'requireInteraction':!![],'icon':_0x7d728f||_0x5da200('0xc6c'),'data':{'id':_0x1691d2['id']},'actions':[{'action':_0x5da200('0x134f'),'title':_0x5da200('0xe17')},{'action':'reject','title':_0x5da200('0x2577')}]});})[_0x656dda('0x21ad')](function(){_0x2e0578(_0x1691d2);})[_0x656dda('0x1c1d')](function(_0x17f219){_0x4eda1e(_0x17f219);}):_0x4eda1e(new Error(_0x656dda('0x2423')))):_0x2e0578();});}};}}const _0x572d77=_0x5b3831;_0x142e79[_0x3877e3('0x1a81')]=['$q',_0x3877e3('0x266b'),_0x3877e3('0xccd')];function _0x142e79(_0x3500d5,_0x3829d8,_0x37a194){var _0x400bda={'resolve':_0xd905dc};return _0x400bda;function _0xd905dc(_0x8078a9,_0x34f790){var _0x3b1b61=a0_0x2e7f,_0x2eb7d3=_0x8078a9[_0x3b1b61('0x1af5')]('@'),_0x3e6d96=_0x2eb7d3[0x0],_0x518100=_0x2eb7d3[0x1],_0x1140f6=_0x34f790||{};if(!_0x3e6d96||!_0x518100)return _0x3829d8[_0x3b1b61('0x2092')](_0x3b1b61('0x659')),![];var _0x5bb801=_0x3500d5['defer'](),_0x1ebdd4=_0x91f002(_0x3e6d96);return!_0x1ebdd4?(_0x3829d8[_0x3b1b61('0x2092')](_0x3b1b61('0x2388')+_0x3e6d96+'\x22\x20is\x20not\x20defined\x20in\x20the\x20api\x20service!'),_0x5bb801[_0x3b1b61('0x37a')](_0x3b1b61('0x2388')+_0x3e6d96+_0x3b1b61('0x761'))):_0x1ebdd4[_0x518100](_0x1140f6,function(_0x3a3145){var _0x5e7536=_0x3b1b61;_0x5bb801[_0x5e7536('0x8ac')](_0x3a3145);},function(_0x5a8489){var _0x19d63c=_0x3b1b61;_0x5bb801[_0x19d63c('0x37a')](_0x5a8489);}),_0x5bb801['promise'];}function _0x91f002(_0xecebf2){var _0x2450cc=a0_0x2e7f,_0xe41126=_0xecebf2[_0x2450cc('0x1af5')]('.'),_0x333302=_0x37a194;for(var _0x1bd258=0x0;_0x1bd258<_0xe41126[_0x2450cc('0x577')];_0x1bd258++){if(angular[_0x2450cc('0x1a5d')](_0x333302[_0xe41126[_0x1bd258]])){_0x3829d8[_0x2450cc('0x2092')](_0x2450cc('0xd4a')+_0xe41126[_0x1bd258]+_0x2450cc('0x1e9')),_0x333302=![];break;}_0x333302=_0x333302[_0xe41126[_0x1bd258]];}if(!_0x333302)return![];return _0x333302;}}const _0x249beb=_0x142e79;_0x4c72dc['$inject']=['$rootScope'];function _0x4c72dc(_0x2d113a){function _0x5da2bb(){var _0x531a59=a0_0x2e7f;_0x2d113a[_0x531a59('0x154f')]=!![];}function _0xd6c8e7(){_0x2d113a['loadingProgress']=![];}var _0x231879={'showLoadingIndicator':_0x5da2bb,'hideLoadingIndicator':_0xd6c8e7};return _0x231879;}const _0xd21092=_0x4c72dc;function _0x4b5817(){var _0x3236f1=_0x3877e3,_0x4fea49=this,_0xce38cb=angular['injector'](['ng'])['get']('$log'),_0x1aae39='',_0x2d1895=[];_0x4fea49[_0x3236f1('0x1dbb')]=_0x1d09d9,_0x4fea49[_0x3236f1('0x24ae')]=_0x2393a1,_0x4fea49[_0x3236f1('0x3b4')]=_0x72dc5,_0x4fea49[_0x3236f1('0xa6')]=_0x58351b;function _0x1d09d9(_0x125c96){_0x1aae39=_0x125c96;}function _0x2393a1(){return _0x1aae39;}function _0x72dc5(){return _0x2d1895;}function _0x58351b(_0x3882ec,_0x3d3fdd){var _0xbea82f=_0x3236f1;if(!angular[_0xbea82f('0xbc')](_0x3882ec)){_0xce38cb[_0xbea82f('0x2092')](_0xbea82f('0x1b7'));return;}if(!angular['isArray'](_0x3d3fdd)){_0xce38cb[_0xbea82f('0x2092')](_0xbea82f('0x1e2'));return;}_0x2d1895[_0x3882ec]={'url':_0x1aae39+(_0x3d3fdd[0x0]||''),'paramDefaults':_0x3d3fdd[0x1]||[],'actions':_0x3d3fdd[0x2]||[],'options':_0x3d3fdd[0x3]||{}};}this['$get']=function(_0x460bcd,_0xe4f043,_0x4d91c9,_0x1e26b7){var _0x3094c1={'setBaseUrl':_0x1d09d9,'getBaseUrl':_0x2393a1,'register':_0x58351b,'resolve':_0x5da3d6,'request':_0x23d79b};return _0x3094c1;function _0x5da3d6(_0x575c82,_0x4bd63f){var _0xafbc5e=a0_0x2e7f;_0x1e26b7[_0xafbc5e('0x149a')](_0xafbc5e('0x259b'));var _0x2e66fe=_0x575c82[_0xafbc5e('0x1af5')]('@'),_0x4c75b9=_0x2e66fe[0x0],_0x5d9705=_0x2e66fe[0x1],_0x22c8a1=_0x4bd63f||{};if(!_0x4c75b9||!_0x5d9705)return _0x460bcd['error'](_0xafbc5e('0xd')),![];var _0x1fc6db=_0xe4f043[_0xafbc5e('0xca9')](),_0x26eece=_0x2d1895[_0x4c75b9];if(!_0x26eece)_0x460bcd[_0xafbc5e('0x2092')](_0xafbc5e('0x2388')+_0x4c75b9+_0xafbc5e('0x761')),_0x1fc6db['reject'](_0xafbc5e('0x2388')+_0x4c75b9+_0xafbc5e('0x761'));else{var _0x1bdca2=_0x4d91c9(_0x26eece[_0xafbc5e('0x770')],_0x26eece[_0xafbc5e('0x776')],_0x26eece[_0xafbc5e('0x484')],_0x26eece[_0xafbc5e('0x26a0')]);_0x1bdca2[_0x5d9705](_0x22c8a1,function(_0x5d8ed3){var _0x4fef5d=_0xafbc5e;_0x1fc6db[_0x4fef5d('0x8ac')](_0x5d8ed3),_0x1e26b7[_0x4fef5d('0x149a')](_0x4fef5d('0x17d0'));},function(_0x3e122f){var _0x1ea990=_0xafbc5e;_0x1fc6db[_0x1ea990('0x37a')](_0x3e122f),_0x1e26b7[_0x1ea990('0x149a')](_0x1ea990('0x2199'));});}return _0x1fc6db[_0xafbc5e('0x71b')];}function _0x23d79b(_0x371c02,_0x3c8d8d,_0x59dab2,_0x353c64){var _0x220c85=a0_0x2e7f;_0x1e26b7[_0x220c85('0x149a')](_0x220c85('0x2027'));var _0x4714a9=_0x371c02[_0x220c85('0x1af5')]('@'),_0x27fac8=_0x4714a9[0x0],_0x3662aa=_0x4714a9[0x1],_0x1e9cbe=_0x3c8d8d||{};if(!_0x27fac8||!_0x3662aa)return _0x460bcd[_0x220c85('0x2092')](_0x220c85('0xd')),![];var _0x40d80d=_0xe4f043[_0x220c85('0xca9')](),_0x1956ea=_0x2d1895[_0x27fac8];if(!_0x1956ea)_0x460bcd[_0x220c85('0x2092')](_0x220c85('0x2388')+_0x27fac8+_0x220c85('0x761')),_0x40d80d[_0x220c85('0x37a')](_0x220c85('0x2388')+_0x27fac8+_0x220c85('0x761'));else{var _0x392ce8=_0x4d91c9(_0x1956ea['url'],_0x1956ea[_0x220c85('0x776')],_0x1956ea[_0x220c85('0x484')],_0x1956ea[_0x220c85('0x26a0')]);_0x392ce8[_0x3662aa](_0x1e9cbe,function(_0x1b9a60){var _0x2c5a5f=_0x220c85;_0x1e26b7['$broadcast'](_0x2c5a5f('0x1963')),_0x40d80d[_0x2c5a5f('0x8ac')](_0x1b9a60),angular[_0x2c5a5f('0x1465')](_0x59dab2)&&angular[_0x2c5a5f('0x272f')](_0x59dab2)&&_0x59dab2(_0x1b9a60);},function(_0x43bfbb){var _0x16e86f=_0x220c85;_0x1e26b7[_0x16e86f('0x149a')](_0x16e86f('0x2226')),_0x40d80d[_0x16e86f('0x37a')](_0x43bfbb),angular[_0x16e86f('0x1465')](_0x353c64)&&angular[_0x16e86f('0x272f')](_0x353c64)&&_0x353c64(_0x43bfbb);});}return _0x40d80d[_0x220c85('0x71b')];}};}const _0x2e3131=_0x4b5817;var _0x4b5a1d=_0x398308(0x985),_0x50772e=_0x398308['n'](_0x4b5a1d);_0x35ecef[_0x3877e3('0x1a81')]=['$window'];function _0x35ecef(_0x16c48f){var _0x38676e=_0x3877e3,_0x418cf8=new(_0x50772e())(_0x16c48f['navigator'][_0x38676e('0x2475')]),_0x16b5d1=null,_0x594519={'exists':_0x4e32a6,'detectBrowser':_0x3a5582,'guidGenerator':_0xad2835,'isMobile':_0x25ca59,'toggleInArray':_0x276b5c,'firstLastDayMonth':_0x1a0e23};return _0x594519;function _0x4e32a6(_0x2e954f,_0x5f41ca){return _0x5f41ca['indexOf'](_0x2e954f)>-0x1;}function _0x3a5582(){var _0x210b6e=_0x38676e;if(_0x16b5d1)return _0x16b5d1;var _0x51b3df=[{'string':_0x16c48f[_0x210b6e('0x2603')]['userAgent'],'subString':_0x210b6e('0x260d'),'versionSearch':_0x210b6e('0x260d'),'identity':'Edge'},{'string':_0x16c48f[_0x210b6e('0x2603')]['userAgent'],'subString':_0x210b6e('0x660'),'identity':_0x210b6e('0x660')},{'string':_0x16c48f[_0x210b6e('0x2603')]['userAgent'],'subString':_0x210b6e('0x26fd'),'versionSearch':_0x210b6e('0xfa7'),'identity':_0x210b6e('0x26fd')},{'string':_0x16c48f[_0x210b6e('0x2603')][_0x210b6e('0x1c07')],'subString':'Apple','versionSearch':_0x210b6e('0xbf1'),'identity':_0x210b6e('0x1079')},{'prop':_0x16c48f[_0x210b6e('0x7e4')],'identity':_0x210b6e('0x283b')},{'string':_0x16c48f[_0x210b6e('0x2603')]['vendor'],'subString':_0x210b6e('0x22ab'),'identity':'iCab'},{'string':_0x16c48f['navigator'][_0x210b6e('0x1c07')],'subString':_0x210b6e('0x19c1'),'identity':'Konqueror'},{'string':_0x16c48f[_0x210b6e('0x2603')]['userAgent'],'subString':_0x210b6e('0x22f5'),'identity':_0x210b6e('0x22f5')},{'string':_0x16c48f[_0x210b6e('0x2603')][_0x210b6e('0x1c07')],'subString':_0x210b6e('0x14e3'),'identity':_0x210b6e('0x14e3')},{'string':_0x16c48f['navigator'][_0x210b6e('0x2475')],'subString':_0x210b6e('0x3ed'),'identity':_0x210b6e('0x3ed')},{'string':_0x16c48f['navigator'][_0x210b6e('0x2475')],'subString':'MSIE','identity':_0x210b6e('0x146d'),'versionSearch':_0x210b6e('0x168c')},{'string':_0x16c48f[_0x210b6e('0x2603')][_0x210b6e('0x2475')],'subString':'Trident/7','identity':_0x210b6e('0x146d'),'versionSearch':'rv'},{'string':_0x16c48f[_0x210b6e('0x2603')][_0x210b6e('0x2475')],'subString':_0x210b6e('0x23f1'),'identity':_0x210b6e('0x1335'),'versionSearch':'rv'},{'string':_0x16c48f[_0x210b6e('0x2603')][_0x210b6e('0x2475')],'subString':'Mozilla','identity':_0x210b6e('0x3ed'),'versionSearch':_0x210b6e('0x1335')}],_0x1934a3=[{'string':_0x16c48f[_0x210b6e('0x2603')][_0x210b6e('0x273c')],'subString':_0x210b6e('0x20e7'),'identity':_0x210b6e('0xa50')},{'string':_0x16c48f[_0x210b6e('0x2603')]['platform'],'subString':_0x210b6e('0x246d'),'identity':_0x210b6e('0x246d')},{'string':_0x16c48f[_0x210b6e('0x2603')][_0x210b6e('0x273c')],'subString':_0x210b6e('0x273f'),'identity':'Linux'},{'string':_0x16c48f[_0x210b6e('0x2603')]['platform'],'subString':_0x210b6e('0x107'),'identity':_0x210b6e('0x107')},{'string':_0x16c48f[_0x210b6e('0x2603')][_0x210b6e('0x273c')],'subString':_0x210b6e('0x1855'),'identity':'iPod'},{'string':_0x16c48f[_0x210b6e('0x2603')][_0x210b6e('0x273c')],'subString':_0x210b6e('0x1105'),'identity':'iPad'},{'string':_0x16c48f[_0x210b6e('0x2603')][_0x210b6e('0x273c')],'subString':_0x210b6e('0xa3b'),'identity':_0x210b6e('0xa3b')}],_0x3629db='';function _0x465055(_0x4ea538){var _0x348d03=_0x210b6e;for(var _0x359d3b=0x0;_0x359d3b<_0x4ea538[_0x348d03('0x577')];_0x359d3b++){var _0x71516d=_0x4ea538[_0x359d3b][_0x348d03('0x2638')],_0x94c0ac=_0x4ea538[_0x359d3b][_0x348d03('0x1c4d')];_0x3629db=_0x4ea538[_0x359d3b][_0x348d03('0x1e81')]||_0x4ea538[_0x359d3b]['identity'];if(_0x71516d){if(_0x71516d['indexOf'](_0x4ea538[_0x359d3b][_0x348d03('0x1f27')])!==-0x1)return _0x4ea538[_0x359d3b]['identity'];}else{if(_0x94c0ac)return _0x4ea538[_0x359d3b][_0x348d03('0x233f')];}}}function _0x6b22f1(_0x545f4d){var _0x113fc4=_0x210b6e,_0x2f2a99=_0x545f4d['indexOf'](_0x3629db);if(_0x2f2a99===-0x1)return;return parseInt(_0x545f4d['substring'](_0x2f2a99+_0x3629db[_0x113fc4('0x577')]+0x1));}var _0xa71c5e=_0x465055(_0x51b3df)||'unknown-browser',_0xcab741=_0x6b22f1(_0x16c48f['navigator'][_0x210b6e('0x2475')])||_0x6b22f1(_0x16c48f[_0x210b6e('0x2603')]['appVersion'])||_0x210b6e('0xfbb'),_0x1d54fa=_0x465055(_0x1934a3)||_0x210b6e('0x1fcf');return _0xa71c5e=_0xa71c5e[_0x210b6e('0xac2')](),_0xcab741=_0xa71c5e+'-'+_0xcab741,_0x1d54fa=_0x1d54fa[_0x210b6e('0xac2')](),_0x16b5d1={'browser':_0xa71c5e,'version':_0xcab741,'os':_0x1d54fa},_0x16b5d1;}function _0xad2835(){var _0x3a50b5=function _0x4c9d53(){var _0x2c753d=a0_0x2e7f;return((0x1+Math['random']())*0x10000||0x0)[_0x2c753d('0x174f')](0x10)['substring'](0x1);};return _0x3a50b5()+_0x3a50b5()+_0x3a50b5()+_0x3a50b5()+_0x3a50b5()+_0x3a50b5();}function _0x25ca59(){var _0x276099=_0x38676e;return _0x418cf8[_0x276099('0xf65')]();}function _0x276b5c(_0x36f4a4,_0x1f0140){var _0x560033=_0x38676e;_0x1f0140[_0x560033('0x2004')](_0x36f4a4)===-0x1?_0x1f0140[_0x560033('0x206c')](_0x36f4a4):_0x1f0140[_0x560033('0xafe')](_0x1f0140[_0x560033('0x2004')](_0x36f4a4),0x1);}function _0x1a0e23(){var _0x54882a=_0x38676e;return{'$gte':_0x1088bc()()[_0x54882a('0x1982')]('month')[_0x54882a('0x215e')](0x0,!![])[_0x54882a('0x153')](),'$lte':_0x1088bc()()[_0x54882a('0x117b')](_0x54882a('0xb64'))['utcOffset'](0x0,!![])['format']()};}}const _0x2f64aa=_0x35ecef,_0x580141=_0x398308['p']+_0x3877e3('0x9e3');_0xff14b0['$inject']=[_0x3877e3('0x2828')],_0x119c45[_0x3877e3('0x1a81')]=[_0x3877e3('0x26'),'motionTheming'];function _0x119c45(_0x2541ca,_0x4fd5ed){var _0x80bc0d=_0x3877e3,_0x528352=this;_0x528352[_0x80bc0d('0xbc3')]=_0x4fd5ed[_0x80bc0d('0xbc3')],_0x528352[_0x80bc0d('0x11eb')]=[{'label':_0x80bc0d('0x1291'),'value':'boxed'},{'label':_0x80bc0d('0xbb0'),'value':'wide'}],_0x528352[_0x80bc0d('0x1db')]=[{'label':'Vertical\x20Navigation','value':'verticalNavigation','figure':_0x80bc0d('0x99')},{'label':'Vertical\x20Navigation\x20with\x20Fullwidth\x20Toolbar','value':'verticalNavigationFullwidthToolbar','figure':_0x80bc0d('0x1caf')},{'label':'Vertical\x20Navigation\x20with\x20Fullwidth\x20Toolbar\x202','value':_0x80bc0d('0x27ec'),'figure':_0x80bc0d('0x13a0')},{'label':'Horizontal\x20Navigation','value':_0x80bc0d('0x25ed'),'figure':'/assets/images/theme-options/horizontal-nav.jpg'},{'label':'Content\x20with\x20Toolbar','value':'contentWithToolbar','figure':_0x80bc0d('0x1c83')},{'label':_0x80bc0d('0x58d'),'value':_0x80bc0d('0x17aa'),'figure':_0x80bc0d('0x183d')}],_0x528352[_0x80bc0d('0x4b')]=_0x80bc0d('0x3bd'),_0x528352[_0x80bc0d('0xc61')]=_0x2541ca['get'](_0x80bc0d('0x68c'))||'verticalNavigation',_0x528352[_0x80bc0d('0x253')]=_0x56dcc7,_0x528352[_0x80bc0d('0xe54')]=_0x1b944f,_0x528352[_0x80bc0d('0x1ed9')]=_0x5d6577,_0x528352[_0x80bc0d('0x11bb')]=_0x5d2e5b;function _0x56dcc7(_0x465ead){_0x4fd5ed['setActiveTheme'](_0x465ead);}function _0x1b944f(){var _0x839266=_0x80bc0d;return _0x4fd5ed[_0x839266('0xbc3')]['active'];}function _0x5d6577(){var _0x127582=_0x80bc0d,_0x4f991e=angular['element']('body');_0x4f991e['toggleClass'](_0x127582('0xd7b'),_0x528352[_0x127582('0x4b')]===_0x127582('0xd7b'));}function _0x5d2e5b(){var _0xc37fa=_0x80bc0d;_0x2541ca['put'](_0xc37fa('0x68c'),_0x528352['layoutStyle']),location['reload']();}}function _0xff14b0(_0x4854f1){var _0x1b2815=_0x3877e3;return{'restrict':'E','scope':{},'controller':_0x1b2815('0xb67'),'templateUrl':_0x580141,'compile':function _0x1f045a(_0x5c3b2c){var _0x354a62=_0x1b2815;return _0x5c3b2c[_0x354a62('0x11da')](_0x354a62('0x109c')),function _0x40d1cb(_0x209564){var _0xbbe6ac=_0x354a62;function _0xf488f(){var _0x50e47b=a0_0x2e7f;_0x4854f1(_0x50e47b('0x2c1'))[_0x50e47b('0x170c')]();}_0x209564[_0xbbe6ac('0x3ae')]=_0xf488f;};}};}_0x256165[_0x3877e3('0x1a81')]=['$cookies',_0x3877e3('0x266b'),_0x3877e3('0x2187')];function _0x256165(_0x41711b,_0x51af52,_0x72cca7){var _0x1691fa={},_0x5169c4={'generate':_0xf51e01,'rgba':_0x11f27d};return _0x5169c4;function _0xf51e01(){var _0x17733f=a0_0x2e7f,_0x48c385=angular[_0x17733f('0xd75')](_0x72cca7[_0x17733f('0x6b4')]()),_0x3445ab=angular['copy'](_0x72cca7[_0x17733f('0x1a')]());angular['forEach'](_0x48c385,function(_0x377505){var _0x3db5b2=_0x17733f;_0x1691fa[_0x377505[_0x3db5b2('0x19fe')]]={},angular[_0x3db5b2('0x1a52')](_0x377505[_0x3db5b2('0x1f03')],function(_0x4373f4,_0x3593b1){var _0x55a9c0=_0x3db5b2;_0x1691fa[_0x377505[_0x55a9c0('0x19fe')]][_0x3593b1]={'name':_0x4373f4[_0x55a9c0('0x19fe')],'levels':{'default':{'color':_0x11f27d(_0x3445ab[_0x4373f4[_0x55a9c0('0x19fe')]][_0x4373f4['hues'][_0x55a9c0('0x1e6e')]][_0x55a9c0('0x2228')]),'contrast1':_0x11f27d(_0x3445ab[_0x4373f4[_0x55a9c0('0x19fe')]][_0x4373f4[_0x55a9c0('0xac4')][_0x55a9c0('0x1e6e')]][_0x55a9c0('0x1ef9')],0x1),'contrast2':_0x11f27d(_0x3445ab[_0x4373f4[_0x55a9c0('0x19fe')]][_0x4373f4[_0x55a9c0('0xac4')][_0x55a9c0('0x1e6e')]][_0x55a9c0('0x1ef9')],0x2),'contrast3':_0x11f27d(_0x3445ab[_0x4373f4[_0x55a9c0('0x19fe')]][_0x4373f4[_0x55a9c0('0xac4')][_0x55a9c0('0x1e6e')]][_0x55a9c0('0x1ef9')],0x3),'contrast4':_0x11f27d(_0x3445ab[_0x4373f4['name']][_0x4373f4[_0x55a9c0('0xac4')][_0x55a9c0('0x1e6e')]][_0x55a9c0('0x1ef9')],0x4)},'hue1':{'color':_0x11f27d(_0x3445ab[_0x4373f4[_0x55a9c0('0x19fe')]][_0x4373f4[_0x55a9c0('0xac4')][_0x55a9c0('0x219e')]][_0x55a9c0('0x2228')]),'contrast1':_0x11f27d(_0x3445ab[_0x4373f4[_0x55a9c0('0x19fe')]][_0x4373f4[_0x55a9c0('0xac4')][_0x55a9c0('0x219e')]][_0x55a9c0('0x1ef9')],0x1),'contrast2':_0x11f27d(_0x3445ab[_0x4373f4[_0x55a9c0('0x19fe')]][_0x4373f4[_0x55a9c0('0xac4')][_0x55a9c0('0x219e')]][_0x55a9c0('0x1ef9')],0x2),'contrast3':_0x11f27d(_0x3445ab[_0x4373f4['name']][_0x4373f4[_0x55a9c0('0xac4')]['hue-1']][_0x55a9c0('0x1ef9')],0x3),'contrast4':_0x11f27d(_0x3445ab[_0x4373f4[_0x55a9c0('0x19fe')]][_0x4373f4[_0x55a9c0('0xac4')][_0x55a9c0('0x219e')]][_0x55a9c0('0x1ef9')],0x4)},'hue2':{'color':_0x11f27d(_0x3445ab[_0x4373f4['name']][_0x4373f4[_0x55a9c0('0xac4')][_0x55a9c0('0x195d')]][_0x55a9c0('0x2228')]),'contrast1':_0x11f27d(_0x3445ab[_0x4373f4[_0x55a9c0('0x19fe')]][_0x4373f4['hues'][_0x55a9c0('0x195d')]][_0x55a9c0('0x1ef9')],0x1),'contrast2':_0x11f27d(_0x3445ab[_0x4373f4['name']][_0x4373f4[_0x55a9c0('0xac4')][_0x55a9c0('0x195d')]][_0x55a9c0('0x1ef9')],0x2),'contrast3':_0x11f27d(_0x3445ab[_0x4373f4[_0x55a9c0('0x19fe')]][_0x4373f4[_0x55a9c0('0xac4')]['hue-2']][_0x55a9c0('0x1ef9')],0x3),'contrast4':_0x11f27d(_0x3445ab[_0x4373f4[_0x55a9c0('0x19fe')]][_0x4373f4[_0x55a9c0('0xac4')]['hue-2']][_0x55a9c0('0x1ef9')],0x4)},'hue3':{'color':_0x11f27d(_0x3445ab[_0x4373f4[_0x55a9c0('0x19fe')]][_0x4373f4[_0x55a9c0('0xac4')]['hue-3']][_0x55a9c0('0x2228')]),'contrast1':_0x11f27d(_0x3445ab[_0x4373f4[_0x55a9c0('0x19fe')]][_0x4373f4['hues'][_0x55a9c0('0x1579')]][_0x55a9c0('0x1ef9')],0x1),'contrast2':_0x11f27d(_0x3445ab[_0x4373f4[_0x55a9c0('0x19fe')]][_0x4373f4[_0x55a9c0('0xac4')][_0x55a9c0('0x1579')]][_0x55a9c0('0x1ef9')],0x2),'contrast3':_0x11f27d(_0x3445ab[_0x4373f4[_0x55a9c0('0x19fe')]][_0x4373f4[_0x55a9c0('0xac4')][_0x55a9c0('0x1579')]]['contrast'],0x3),'contrast4':_0x11f27d(_0x3445ab[_0x4373f4[_0x55a9c0('0x19fe')]][_0x4373f4[_0x55a9c0('0xac4')][_0x55a9c0('0x1579')]][_0x55a9c0('0x1ef9')],0x4)}}};});}),_0x3a523f(_0x1691fa);var _0x2f0d3b={};angular[_0x17733f('0x1a52')](_0x1691fa,function(_0x3727f9,_0x54d09c){var _0x474edf=_0x17733f;_0x2f0d3b={},_0x2f0d3b[_0x474edf('0x386')]=_0x54d09c,angular[_0x474edf('0x1a52')](_0x3727f9,function(_0x4dfca2,_0x40d239){var _0x125029=_0x474edf;angular[_0x125029('0x1a52')](_0x4dfca2[_0x125029('0x2525')],function(_0x34cd20,_0x1824c3){var _0x127572=_0x125029;angular[_0x127572('0x1a52')](_0x34cd20,function(_0x40276f,_0x8176c6){_0x2f0d3b['@'+_0x40d239+_0x1316d7(_0x1824c3)+_0x1316d7(_0x8176c6)]=_0x40276f;});});}),_0x546feb(_0x2f0d3b);});}function _0x3a523f(_0x2be8e8){var _0x2766b5=a0_0x2e7f,_0x292e79=angular[_0x2766b5('0xd75')](_0x2be8e8);angular['forEach'](_0x292e79,function(_0x51ff49){angular['forEach'](_0x51ff49,function(_0x3a7a2a,_0x68b8e5){var _0xc11dd2=a0_0x2e7f;_0x51ff49[_0x68b8e5]=_0x3a7a2a[_0xc11dd2('0x2525')],_0x51ff49[_0x68b8e5][_0xc11dd2('0x20e2')]=_0x3a7a2a[_0xc11dd2('0x2525')][_0xc11dd2('0x1e6e')][_0xc11dd2('0x20e2')],_0x51ff49[_0x68b8e5][_0xc11dd2('0x5ca')]=_0x3a7a2a[_0xc11dd2('0x2525')][_0xc11dd2('0x1e6e')]['contrast1'],_0x51ff49[_0x68b8e5]['contrast2']=_0x3a7a2a[_0xc11dd2('0x2525')]['default']['contrast2'],_0x51ff49[_0x68b8e5]['contrast3']=_0x3a7a2a[_0xc11dd2('0x2525')][_0xc11dd2('0x1e6e')][_0xc11dd2('0x4a2')],_0x51ff49[_0x68b8e5][_0xc11dd2('0xd33')]=_0x3a7a2a[_0xc11dd2('0x2525')][_0xc11dd2('0x1e6e')][_0xc11dd2('0xd33')],delete _0x51ff49[_0x68b8e5][_0xc11dd2('0x1e6e')];});}),_0x72cca7[_0x2766b5('0x1cc7')](_0x292e79);var _0x27f873=_0x41711b['get'](_0x2766b5('0x151d'));_0x27f873?_0x72cca7[_0x2766b5('0x253')](_0x27f873):_0x72cca7[_0x2766b5('0x253')](_0x2766b5('0x1e6e'));}function _0x546feb(_0x40d462){var _0x2311c4=a0_0x2e7f,_0x13d372=_0x2311c4('0x1b5e'),_0x161eba=new RegExp(Object[_0x2311c4('0x223b')](_0x40d462)[_0x2311c4('0x136')]('|'),'gi'),_0x100b7b=_0x13d372[_0x2311c4('0x16e4')](_0x161eba,function(_0x327f3f){return _0x40d462[_0x327f3f];}),_0x249d39=angular[_0x2311c4('0x1676')](_0x2311c4('0x454')),_0x3101d8=angular[_0x2311c4('0x1676')](_0x2311c4('0x1398'));_0x3101d8[_0x2311c4('0x8b')](_0x100b7b),_0x249d39['append'](_0x3101d8);}function _0x11f27d(_0x3260e3,_0x14e270){var _0x1fa7df=a0_0x2e7f,_0x7c4efc=_0x14e270||![];_0x3260e3[_0x1fa7df('0x577')]===0x4&&_0x3260e3[0x0]===0xff&&_0x3260e3[0x1]===0xff&&_0x3260e3[0x2]===0xff&&_0x3260e3['splice'](0x3,0x4);_0x7c4efc&&(_0x3260e3=_0x429366(_0x3260e3,_0x7c4efc));if(_0x3260e3[_0x1fa7df('0x577')]===0x3)return _0x1fa7df('0x1207')+_0x3260e3['join'](',')+')';else{if(_0x3260e3[_0x1fa7df('0x577')]===0x4)return _0x1fa7df('0x17f0')+_0x3260e3[_0x1fa7df('0x136')](',')+')';else _0x51af52[_0x1fa7df('0x2092')](_0x1fa7df('0x1ff1')+_0x3260e3[_0x1fa7df('0x577')]+'\x0a'+_0x1fa7df('0x149d'));}}function _0x429366(_0x264d7c,_0x2c07b9){var _0x28e70a=a0_0x2e7f,_0x2454ec={'white':{0x1:'1',0x2:_0x28e70a('0x1803'),0x3:_0x28e70a('0x24bd'),0x4:_0x28e70a('0x1d55')},'black':{0x1:_0x28e70a('0x1cac'),0x2:_0x28e70a('0x1957'),0x3:_0x28e70a('0x172c'),0x4:_0x28e70a('0x1d55')}};if(_0x264d7c[0x0]===0xff&&_0x264d7c[0x1]===0xff&&_0x264d7c[0x2]===0xff)_0x264d7c[0x3]=_0x2454ec[_0x28e70a('0x826')][_0x2c07b9];else _0x264d7c[0x0]===0x0&&_0x264d7c[0x1]===0x0&&_0x264d7c[0x2]===0x0&&(_0x264d7c[0x3]=_0x2454ec[_0x28e70a('0x10f2')][_0x2c07b9]);return _0x264d7c;}function _0x1316d7(_0x589a3b){var _0x13249b=a0_0x2e7f;return _0x589a3b[_0x13249b('0x1e6')](0x0)[_0x13249b('0x2e8')]()+_0x589a3b['slice'](0x1);}}const _0x14a020=_0x256165;var _0x47f472=[{'name':'motion-blue','options':{0x32:_0x3877e3('0x22c4'),0x64:_0x3877e3('0x75b'),0xc8:_0x3877e3('0x4d7'),0x12c:_0x3877e3('0x347'),0x190:_0x3877e3('0x1e1a'),0x1f4:_0x3877e3('0x1d32'),0x258:_0x3877e3('0x23d2'),0x2bc:_0x3877e3('0x1a87'),0x320:_0x3877e3('0x203d'),0x384:_0x3877e3('0xce'),'A100':_0x3877e3('0x75b'),'A200':_0x3877e3('0x4d7'),'A400':_0x3877e3('0x1e1a'),'A700':_0x3877e3('0x1a87'),'contrastDefaultColor':_0x3877e3('0x1beb'),'contrastDarkColors':_0x3877e3('0x1fe7'),'contrastStrongLightColors':_0x3877e3('0x1bcd')}},{'name':'motion-paleblue','options':{0x32:_0x3877e3('0x1ea6'),0x64:_0x3877e3('0x2571'),0xc8:_0x3877e3('0x1c8c'),0x12c:_0x3877e3('0x979'),0x190:_0x3877e3('0x24ac'),0x1f4:_0x3877e3('0x2594'),0x258:'#353a48',0x2bc:_0x3877e3('0xf5e'),0x320:'#262933',0x384:_0x3877e3('0x118d'),'A100':_0x3877e3('0x2571'),'A200':_0x3877e3('0x1c8c'),'A400':_0x3877e3('0x24ac'),'A700':_0x3877e3('0xf5e'),'contrastDefaultColor':_0x3877e3('0x1beb'),'contrastDarkColors':_0x3877e3('0x1fe7'),'contrastStrongLightColors':'300\x20400'}}];const _0x41dff8=_0x47f472;var _0x1aae3b={'default':{'primary':{'name':_0x3877e3('0x2ae'),'hues':{'default':_0x3877e3('0x1cbb'),'hue-1':_0x3877e3('0x14c9'),'hue-2':_0x3877e3('0x1d1a'),'hue-3':_0x3877e3('0x1cfb')}},'accent':{'name':_0x3877e3('0x285c'),'hues':{'default':_0x3877e3('0x1d1a'),'hue-1':_0x3877e3('0x1cfb'),'hue-2':_0x3877e3('0x1cbb'),'hue-3':_0x3877e3('0x61c')}},'warn':{'name':_0x3877e3('0x1b84')},'background':{'name':_0x3877e3('0x778'),'hues':{'default':_0x3877e3('0x61c'),'hue-1':_0x3877e3('0x61c'),'hue-2':_0x3877e3('0x21b6'),'hue-3':_0x3877e3('0x1bd1')}}},'pinkTheme':{'primary':{'name':_0x3877e3('0x1f69'),'hues':{'default':_0x3877e3('0x148'),'hue-1':_0x3877e3('0x1d1a'),'hue-2':_0x3877e3('0x1cfb'),'hue-3':_0x3877e3('0x61c')}},'accent':{'name':'pink','hues':{'default':_0x3877e3('0x1cfb'),'hue-1':'300','hue-2':'600','hue-3':'A100'}},'warn':{'name':_0x3877e3('0x139d')},'background':{'name':_0x3877e3('0x778'),'hues':{'default':'A100','hue-1':_0x3877e3('0x61c'),'hue-2':'100','hue-3':_0x3877e3('0x1bd1')}}},'tealTheme':{'primary':{'name':_0x3877e3('0x1acf'),'hues':{'default':_0x3877e3('0xa04'),'hue-1':_0x3877e3('0x1d1a'),'hue-2':_0x3877e3('0x14c9'),'hue-3':_0x3877e3('0x61c')}},'accent':{'name':_0x3877e3('0x1d66'),'hues':{'default':_0x3877e3('0x14c9'),'hue-1':_0x3877e3('0x1cfb'),'hue-2':_0x3877e3('0x1d1a'),'hue-3':_0x3877e3('0x61c')}},'warn':{'name':_0x3877e3('0x111f')},'background':{'name':_0x3877e3('0x778'),'hues':{'default':_0x3877e3('0x61c'),'hue-1':_0x3877e3('0x61c'),'hue-2':_0x3877e3('0x21b6'),'hue-3':_0x3877e3('0x1bd1')}}}};const _0x5e3996=_0x1aae3b;_0x4329d3[_0x3877e3('0x1a81')]=[_0x3877e3('0x15e2'),_0x3877e3('0x2245'),_0x3877e3('0x253e')];function _0x4329d3(_0xffd1a6,_0x587274,_0x7576ee){var _0x2e20fe=_0x3877e3,_0x474eef;angular['injector'](['ngCookies'])[_0x2e20fe('0xde2')]([_0x2e20fe('0x26'),function(_0x297fbe){_0x474eef=_0x297fbe;}]);var _0x2a20e2=_0x474eef[_0x2e20fe('0x2558')](_0x2e20fe('0x19ee'));_0x2a20e2&&(_0x7576ee[_0x2e20fe('0xf50')]=_0x2a20e2),_0xffd1a6[_0x2e20fe('0x4c9')](!![]),angular[_0x2e20fe('0x1a52')](_0x587274,function(_0x22742b){var _0xebb4f7=_0x2e20fe;_0xffd1a6[_0xebb4f7('0x1df0')](_0x22742b[_0xebb4f7('0x19fe')],_0x22742b['options']);}),angular[_0x2e20fe('0x1a52')](_0x7576ee,function(_0x2bb587,_0x137428){var _0x1bb552=_0x2e20fe;_0xffd1a6[_0x1bb552('0x1bab')](_0x137428)[_0x1bb552('0x9cb')](_0x2bb587['primary'][_0x1bb552('0x19fe')],_0x2bb587[_0x1bb552('0x424')]['hues'])[_0x1bb552('0x16ca')](_0x2bb587[_0x1bb552('0x2565')][_0x1bb552('0x19fe')],_0x2bb587[_0x1bb552('0x2565')][_0x1bb552('0xac4')])[_0x1bb552('0x239')](_0x2bb587[_0x1bb552('0x2533')][_0x1bb552('0x19fe')],_0x2bb587[_0x1bb552('0x2533')][_0x1bb552('0xac4')])[_0x1bb552('0x353')](_0x2bb587['background'][_0x1bb552('0x19fe')],_0x2bb587['background'][_0x1bb552('0xac4')]);});}const _0x55b000=_0x4329d3;_0x56ea27['$inject']=['$cookies',_0x3877e3('0x266b'),'$mdTheming'];function _0x56ea27(_0x55ea56,_0x1c9011,_0x3c7614){var _0x479aa9={'getRegisteredPalettes':_0x33b9b7,'getRegisteredThemes':_0x36c2c8,'setActiveTheme':_0x43ea26,'setThemesList':_0x5def63,'themes':{'list':{},'active':{'name':'','theme':{}}}};return _0x479aa9;function _0x33b9b7(){return _0x3c7614['PALETTES'];}function _0x36c2c8(){var _0x58a25b=a0_0x2e7f;return _0x3c7614[_0x58a25b('0xb1f')];}function _0x43ea26(_0x187d32){var _0x4cf787=a0_0x2e7f;if(angular[_0x4cf787('0x1a5d')](_0x479aa9[_0x4cf787('0xbc3')][_0x4cf787('0x17fe')][_0x187d32])){if(angular[_0x4cf787('0x1a5d')](_0x479aa9['themes']['list']['default'])){_0x1c9011[_0x4cf787('0x2092')]('You\x20must\x20have\x20at\x20least\x20one\x20theme\x20named\x20\x22default\x22');return;}_0x1c9011[_0x4cf787('0x2533')](_0x4cf787('0xe13')+_0x187d32+_0x4cf787('0x7d')),_0x479aa9[_0x4cf787('0xbc3')][_0x4cf787('0x695')][_0x4cf787('0x19fe')]=_0x4cf787('0x1e6e'),_0x479aa9[_0x4cf787('0xbc3')][_0x4cf787('0x695')]['theme']=_0x479aa9[_0x4cf787('0xbc3')][_0x4cf787('0x17fe')][_0x4cf787('0x1e6e')],_0x55ea56[_0x4cf787('0x8c4')]('motion.selectedTheme',_0x479aa9['themes']['active'][_0x4cf787('0x19fe')]);return;}_0x479aa9[_0x4cf787('0xbc3')][_0x4cf787('0x695')][_0x4cf787('0x19fe')]=_0x187d32,_0x479aa9['themes'][_0x4cf787('0x695')]['theme']=_0x479aa9['themes'][_0x4cf787('0x17fe')][_0x187d32],_0x55ea56['put']('motion.selectedTheme',_0x187d32);}function _0x5def63(_0x4f800d){var _0x3c66f4=a0_0x2e7f;_0x479aa9['themes'][_0x3c66f4('0x17fe')]=_0x4f800d;}}const _0x2983fb=_0x56ea27;function _0x931753(_0x206a76,_0x58af21){return _0x15b827(_0x206a76)||_0x251ba1(_0x206a76,_0x58af21)||_0x5bf43f(_0x206a76,_0x58af21)||_0x27582e();}function _0x27582e(){var _0xe52bd=_0x3877e3;throw new TypeError(_0xe52bd('0x1f32'));}function _0x5bf43f(_0x229646,_0x192999){var _0x31de7b=_0x3877e3;if(!_0x229646)return;if(typeof _0x229646===_0x31de7b('0x2638'))return _0x596d8c(_0x229646,_0x192999);var _0x3b9a75=Object[_0x31de7b('0x1c16')][_0x31de7b('0x174f')][_0x31de7b('0xdc2')](_0x229646)[_0x31de7b('0xb3d')](0x8,-0x1);if(_0x3b9a75==='Object'&&_0x229646['constructor'])_0x3b9a75=_0x229646[_0x31de7b('0xbe4')]['name'];if(_0x3b9a75==='Map'||_0x3b9a75==='Set')return Array[_0x31de7b('0x69b')](_0x229646);if(_0x3b9a75===_0x31de7b('0x2741')||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/['test'](_0x3b9a75))return _0x596d8c(_0x229646,_0x192999);}function _0x596d8c(_0x5f1fd3,_0x572ca9){var _0x44c8b0=_0x3877e3;if(_0x572ca9==null||_0x572ca9>_0x5f1fd3[_0x44c8b0('0x577')])_0x572ca9=_0x5f1fd3['length'];for(var _0x2c1a71=0x0,_0x5cd284=new Array(_0x572ca9);_0x2c1a71<_0x572ca9;_0x2c1a71++){_0x5cd284[_0x2c1a71]=_0x5f1fd3[_0x2c1a71];}return _0x5cd284;}function _0x251ba1(_0x4614bc,_0x5e5ec5){var _0x55fc5f=_0x3877e3;if(typeof Symbol==='undefined'||!(Symbol['iterator']in Object(_0x4614bc)))return;var _0x381470=[],_0x3a4e53=!![],_0x20d8b9=![],_0x212929=undefined;try{for(var _0x2c46c4=_0x4614bc[Symbol[_0x55fc5f('0x26ce')]](),_0x73779;!(_0x3a4e53=(_0x73779=_0x2c46c4[_0x55fc5f('0x18f9')]())[_0x55fc5f('0x10e3')]);_0x3a4e53=!![]){_0x381470[_0x55fc5f('0x206c')](_0x73779['value']);if(_0x5e5ec5&&_0x381470[_0x55fc5f('0x577')]===_0x5e5ec5)break;}}catch(_0x32cb03){_0x20d8b9=!![],_0x212929=_0x32cb03;}finally{try{if(!_0x3a4e53&&_0x2c46c4[_0x55fc5f('0x1a49')]!=null)_0x2c46c4[_0x55fc5f('0x1a49')]();}finally{if(_0x20d8b9)throw _0x212929;}}return _0x381470;}function _0x15b827(_0xad3d30){if(Array['isArray'](_0xad3d30))return _0xad3d30;}var _0x46bec0=angular[_0x3877e3('0x20d5')]('app.core',[_0x3877e3('0x19'),'ngAria','ngCookies',_0x3877e3('0x15db'),_0x3877e3('0x2789'),'ngSanitize',_0x3877e3('0x794'),_0x3877e3('0x1a30'),_0x3877e3('0xd34'),'ui.router.state.events',_0x3877e3('0x1d9e'),'ds.clock',_0x3877e3('0x11d9')])[_0x3877e3('0x1c0c')]('motionConfig',_0x1949f7)[_0x3877e3('0x13')](_0x52f441)[_0x3877e3('0x2362')](_0x556cb8)[_0x3877e3('0x1d5a')](_0x3877e3('0xde1'),_0x24c057);_0x46bec0=_0x530dd0['reduce'](function(_0x5d34d6,_0x4a5257){var _0x51a35e=_0x3877e3,_0x490d0d=_0x931753(_0x4a5257,0x3),_0x4d73af=_0x490d0d[0x0],_0x1952ff=_0x490d0d[0x1],_0x24c86f=_0x490d0d[0x2];switch(_0x24c86f){case'directive':_0x5d34d6['directive'](_0x4d73af,_0x1952ff);break;case'provider':_0x5d34d6[_0x51a35e('0x1c0c')](_0x4d73af,_0x1952ff);break;case _0x51a35e('0x1d5a'):_0x5d34d6[_0x51a35e('0x1d5a')](_0x4d73af,_0x1952ff);break;case _0x51a35e('0x1551'):_0x5d34d6[_0x51a35e('0x1551')](_0x4d73af,_0x1952ff);break;default:break;}return _0x5d34d6;},_0x46bec0),_0x46bec0[_0x3877e3('0x1551')](_0x3877e3('0x1bd7'),_0x29716c)[_0x3877e3('0x1503')](_0x3877e3('0xc25'),_0x27bc88)[_0x3877e3('0x1503')]('toTrusted',_0x1ae1d1)[_0x3877e3('0x1503')](_0x3877e3('0x1b7d'),_0x5291a3)[_0x3877e3('0x1503')](_0x3877e3('0xb27'),_0x158cc6)[_0x3877e3('0x1503')](_0x3877e3('0x14d4'),_0x2bd386)[_0x3877e3('0x1503')]('capitalize',_0x4a05ad)[_0x3877e3('0x1503')](_0x3877e3('0x2ce'),_0x2a87c8)['filter'](_0x3877e3('0x421'),_0x102a9d)[_0x3877e3('0x1503')](_0x3877e3('0x2693'),_0x127969)[_0x3877e3('0x1503')](_0x3877e3('0x678'),_0x501a43)[_0x3877e3('0x1503')](_0x3877e3('0x2256'),_0xe684aa)[_0x3877e3('0x1503')](_0x3877e3('0x994'),_0x3c9c82)[_0x3877e3('0x1c0c')](_0x3877e3('0x22e7'),_0x572d77)[_0x3877e3('0x1551')]('apiResolver',_0x249beb)[_0x3877e3('0x1551')](_0x3877e3('0x23ba'),_0xd21092)[_0x3877e3('0x1c0c')](_0x3877e3('0x2717'),_0x2e3131)[_0x3877e3('0x1551')](_0x3877e3('0x12d9'),_0x2f64aa)[_0x3877e3('0x1d5a')](_0x3877e3('0x12bf'),_0x119c45)[_0x3877e3('0x921')](_0x3877e3('0x124f'),_0xff14b0)['factory']('motionGenerator',_0x14a020)[_0x3877e3('0x207c')](_0x3877e3('0x2245'),_0x41dff8)['constant'](_0x3877e3('0x253e'),_0x5e3996)[_0x3877e3('0x13')](_0x55b000)[_0x3877e3('0x70')](_0x3877e3('0x2187'),_0x2983fb),_0x5a4f5b[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x26'),_0x3877e3('0x21e'),_0x3877e3('0x25d8'),'msNavigationService',_0x3877e3('0x15bc'),_0x3877e3('0xccd')];function _0x5a4f5b(_0x4814c4,_0x274c5f,_0x301e6c,_0x5f3fc,_0x162a4d,_0x23f9aa,_0x51d060){var _0x18ca2f=_0x3877e3,_0x4d9983=this;_0x4d9983['bodyEl']=angular[_0x18ca2f('0x1676')](_0x18ca2f('0x2452')),_0x4d9983[_0x18ca2f('0x11b8')]={'suppressScrollX':!![]},_0x4d9983['setting']=_0x301e6c,_0x4d9983[_0x18ca2f('0x390')]=_0x51d060[_0x18ca2f('0x390')],_0x4d9983['$onInit']=_0x3d5a54,_0x4d9983[_0x18ca2f('0x1ba9')]=_0x4d3e66,_0x4d9983['getLogo']=_0x1c950b,_0x5f3fc['on']('dashboard:save',_0x29fd5a),_0x5f3fc['on'](_0x18ca2f('0xae6'),_0x29fd5a),_0x5f3fc['on'](_0x18ca2f('0x13a7'),_0x42d49e),_0x5f3fc['on'](_0x18ca2f('0x948'),_0x115620),_0x5f3fc['on'](_0x18ca2f('0x1d09'),_0x115620),_0x5f3fc['on']('plugin:remove',_0x122c19);function _0x3d5a54(){var _0x57b9c5=_0x18ca2f;_0x4d9983['folded']=_0x274c5f[_0x57b9c5('0x595')](_0x57b9c5('0x63c'))===_0x57b9c5('0x19bd')||![];}function _0x4d3e66(){var _0x4e8538=_0x18ca2f;_0x4d9983[_0x4e8538('0xe11')]=!_0x4d9983[_0x4e8538('0xe11')],_0x274c5f['put'](_0x4e8538('0x63c'),_0x4d9983[_0x4e8538('0xe11')]);}function _0x1c950b(){var _0x5e9b84=_0x18ca2f;return _0x4d9983[_0x5e9b84('0x21e')][_0x5e9b84('0x2515')]?_0x5e9b84('0x371'):_0x4d9983[_0x5e9b84('0x21e')]['headerWhiteLabel'];}function _0x29fd5a(_0xdbce76){var _0x40fc17=_0x18ca2f;if(_0xdbce76&&_0xdbce76['id']){var _0xecf799=0x1869f+_0xdbce76['id'];_0x162a4d[_0x40fc17('0x1c97')](_0x40fc17('0x2825')+_0xecf799,{'id':_0xecf799,'title':_0xdbce76['name']||_0x40fc17('0x33e'),'state':'app.dashboards.custom','stateParams':_0xdbce76,'weight':0x2,'hidden':function _0x29cbc4(){var _0x125a12=_0x40fc17;return _0x23f9aa['hasRole'](_0x125a12('0x2402'))||!_0x23f9aa[_0x125a12('0xc35')](_0xecf799)&&!_0x23f9aa[_0x125a12('0x21de')](_0x125a12('0x1bd8'));}});}}function _0x42d49e(_0x34e4ee){var _0xd18427=_0x18ca2f;if(_0x34e4ee&&_0x34e4ee['id']){var _0x54e1a2=0x1869f+_0x34e4ee['id'];_0x162a4d[_0xd18427('0x1c8')]('apps.dashboards.custom_'+_0x54e1a2);}}function _0x115620(_0x6cbb33){var _0x1d1e66=_0x18ca2f;if(_0x6cbb33&&_0x6cbb33['id']&&_0x6cbb33[_0x1d1e66('0x238c')]!=_0x1d1e66('0x4ba')){if(_0x6cbb33[_0x1d1e66('0x695')]){if(_0x6cbb33[_0x1d1e66('0x238c')]==_0x1d1e66('0x869')||_0x6cbb33['sidebar']==_0x1d1e66('0x769')){_0x162a4d[_0x1d1e66('0x1c97')](_0x1d1e66('0xfae'),{'id':0x76c,'title':_0x1d1e66('0x1074'),'translate':_0x1d1e66('0x10db'),'icon':_0x1d1e66('0x1da4'),'weight':0x11,'hidden':function _0x53fb92(){var _0x1bb2df=_0x1d1e66;return _0x23f9aa['hasRole'](_0x1bb2df('0x2402'))||!_0x23f9aa[_0x1bb2df('0xc35')](0x76c)&&!_0x23f9aa['hasRole'](_0x1bb2df('0x1bd8'));}});var _0x2bc850=0x15b38+_0x6cbb33['id'];_0x162a4d[_0x1d1e66('0x1c97')]('apps.plugins.plugin_'+_0x2bc850,{'id':_0x2bc850,'title':_0x6cbb33[_0x1d1e66('0x19fe')]||_0x1d1e66('0x33e'),'state':_0x1d1e66('0x2383'),'stateParams':_0x6cbb33,'weight':0x2,'hidden':function _0x109c01(){var _0x19883a=_0x1d1e66;return _0x23f9aa[_0x19883a('0x21de')](_0x19883a('0x2402'))||!_0x23f9aa[_0x19883a('0xc35')](_0x2bc850)&&!_0x23f9aa['hasRole']('admin');}}),_0x162a4d[_0x1d1e66('0x1944')]();}}else{var _0x5925be=0x15b38+_0x6cbb33['id'];_0x23c538(0x76c,_0x5925be)&&(_0x6cbb33[_0x1d1e66('0x238c')]=='always'||_0x6cbb33[_0x1d1e66('0x238c')]=='adminOnly')&&(_0x162a4d['deleteItem'](_0x1d1e66('0x16af')+_0x5925be),!_0x128266(0x76c)&&_0x162a4d[_0x1d1e66('0x1c97')](_0x1d1e66('0xfae'),{'id':0x76c,'title':'Plugins','translate':'PLUGINS.PLUGINS','icon':_0x1d1e66('0x1da4'),'weight':0x11,'hidden':function _0x15f13e(){return!![];}}));}}}function _0x122c19(_0x308a8d){var _0x1f3ae4=_0x18ca2f;if(_0x308a8d&&_0x308a8d['id']&&_0x308a8d[_0x1f3ae4('0x238c')]!=_0x1f3ae4('0x4ba')){var _0x530d20=0x15b38+_0x308a8d['id'];(_0x308a8d['sidebar']==_0x1f3ae4('0x869')||_0x308a8d['sidebar']==_0x1f3ae4('0x769'))&&(_0x162a4d[_0x1f3ae4('0x1c8')](_0x1f3ae4('0x16af')+_0x530d20),!_0x128266(0x76c)&&_0x162a4d['saveItem'](_0x1f3ae4('0xfae'),{'id':0x76c,'title':_0x1f3ae4('0x1074'),'translate':_0x1f3ae4('0x10db'),'icon':_0x1f3ae4('0x1da4'),'weight':0x11,'hidden':function _0x2906b6(){return!![];}}));}}function _0x128266(_0x1204d1){var _0x5eb03f=_0x18ca2f,_0x47a3e5=_0x162a4d[_0x5eb03f('0xca3')](),_0x44f75d=_0x86640f()[_0x5eb03f('0x1d2e')](_0x47a3e5[0x0][_0x5eb03f('0xc9')],{'id':_0x1204d1});return _0x44f75d&&_0x44f75d[_0x5eb03f('0xc9')][_0x5eb03f('0x577')]>0x0?!![]:![];}function _0x23c538(_0x45c0a0,_0xd05742){var _0x1c666b=_0x18ca2f,_0xfc5347=_0x162a4d[_0x1c666b('0xca3')](),_0x4c8b6c=_0x86640f()[_0x1c666b('0x1d2e')](_0xfc5347[0x0][_0x1c666b('0xc9')],{'id':_0x45c0a0});if(!_0x4c8b6c)return![];return _0x86640f()[_0x1c666b('0x2664')](_0x4c8b6c['children'],{'id':_0xd05742});}_0x4814c4[_0x18ca2f('0x1723')](_0x18ca2f('0xa1'),function(){var _0x1d8f22=_0x18ca2f;_0x4d9983[_0x1d8f22('0x5e6')][_0x1d8f22('0x1fe6')]('ms-navigation-horizontal-mobile-menu-active');});}const _0x4c5903=_0x5a4f5b;;function _0x12bf28(){}angular['module'](_0x3877e3('0xa32'),[])[_0x3877e3('0x13')](_0x12bf28)[_0x3877e3('0x1d5a')](_0x3877e3('0x50d'),_0x4c5903),_0x396b6e[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x1850'),_0x3877e3('0x21be'),_0x3877e3('0xccd'),_0x3877e3('0x1775'),_0x3877e3('0x21e'),_0x3877e3('0x21a8')];function _0x396b6e(_0x3dfb37,_0x195cc5,_0x5561d5,_0x278617,_0x1c0476,_0x3fd92f,_0x6a18ca){var _0x1e6a6b=_0x3877e3,_0x48f9b8=this;_0x48f9b8[_0x1e6a6b('0x1a69')]=[],_0x48f9b8[_0x1e6a6b('0x1775')]=_0x1c0476,_0x48f9b8['setting']=_0x3fd92f,_0x48f9b8['reset']=_0x6a18ca,_0x48f9b8[_0x1e6a6b('0x1432')]=_0x48f9b8[_0x1e6a6b('0x21e')][_0x1e6a6b('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x48f9b8[_0x1e6a6b('0x1f59')]=_0x25d2fe,_0x48f9b8[_0x1e6a6b('0x167')]=_0x4755ff,_0x3dfb37[_0x1e6a6b('0x10e8')](_0x1e6a6b('0xa22'),function(_0x3baf0b){var _0x15ee9c=_0x1e6a6b;!_0x86640f()[_0x15ee9c('0x1c7')](_0x48f9b8[_0x15ee9c('0x1a34')])&&(_0x3baf0b===_0x48f9b8[_0x15ee9c('0x1a34')]?_0x3dfb37[_0x15ee9c('0x1341')]['password'][_0x15ee9c('0xa37')](_0x15ee9c('0x14d8'),![]):_0x3dfb37[_0x15ee9c('0x1341')]['password'][_0x15ee9c('0xa37')](_0x15ee9c('0x14d8'),!![]));});function _0x25d2fe(){var _0x3c8fa5=_0x1e6a6b;_0x48f9b8[_0x3c8fa5('0x1a69')]=[],_0x278617[_0x3c8fa5('0x1775')]['changePassword']({'id':_0x48f9b8[_0x3c8fa5('0x1775')]['id']},{'oldPassword':_0x48f9b8[_0x3c8fa5('0x1a34')],'newPassword':_0x48f9b8[_0x3c8fa5('0xdd5')]})['$promise']['then'](function(){var _0x3a8cb7=_0x3c8fa5;_0x5561d5['show'](_0x5561d5['simple']()[_0x3a8cb7('0x226d')](_0x3a8cb7('0x1a22'))[_0x3a8cb7('0x1c9f')](_0x3a8cb7('0x1c15'))[_0x3a8cb7('0x1937')](0x1388)),_0x4755ff();})[_0x3c8fa5('0x1c1d')](function(_0x522597){var _0x3c1816=_0x3c8fa5;console['error'](_0x522597),_0x48f9b8[_0x3c1816('0x1a69')]=_0x522597[_0x3c1816('0x11c2')][_0x3c1816('0x1a69')]&&_0x522597[_0x3c1816('0x11c2')][_0x3c1816('0x1a69')][_0x3c1816('0x577')]?_0x522597[_0x3c1816('0x11c2')]['errors']:[{'message':_0x522597[_0x3c1816('0x11c2')][_0x3c1816('0x1224')]||_0x3c1816('0x605'),'type':_0x3c1816('0x20de')}];});}function _0x4755ff(){var _0x4b971c=_0x1e6a6b;_0x195cc5[_0x4b971c('0x1c24')]();}}const _0x5be68f=_0x396b6e;_0x505985[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$location',_0x3877e3('0x1850'),'toasty','api',_0x3877e3('0x8a1'),_0x3877e3('0xbbd')];function _0x505985(_0x5a629b,_0x4d66d3,_0x1b19b2,_0x4d61c7,_0x10439b,_0x13fb0d,_0x21caec,_0x1710d6){var _0x3c4b9f=_0x3877e3,_0x1f46bb=this;_0x1f46bb[_0x3c4b9f('0x1986')]=_0x1710d6&&_0x1710d6[_0x3c4b9f('0x1b33')]?_0x86640f()['mapValues'](_0x86640f()[_0x3c4b9f('0xcde')](_0x1710d6[_0x3c4b9f('0x1b33')],function(_0x20bb4d){var _0x6231c0=_0x3c4b9f;return _0x6231c0('0x714')+_0x20bb4d['id'];}),_0x3c4b9f('0x19fe')):{},_0x1f46bb[_0x3c4b9f('0x1a69')]=[],_0x1f46bb[_0x3c4b9f('0x5ab')]=[],_0x1f46bb[_0x3c4b9f('0x8a1')]=_0x21caec,_0x1f46bb[_0x3c4b9f('0x108')]=![],_0x1f46bb[_0x3c4b9f('0x2551')]=![],_0x1f46bb[_0x3c4b9f('0xf68')]=![],_0x1f46bb[_0x3c4b9f('0x5ab')]['push'](_0x1f46bb[_0x3c4b9f('0x8a1')]['id']),_0x1f46bb['originatePreview']=_0x3b0d59,_0x1f46bb[_0x3c4b9f('0x167')]=_0x53d1e1,_0x1f46bb['nextContact']=_0x1a681c,_0x1f46bb[_0x3c4b9f('0x195a')]=_0xac72fb,_0x1f46bb[_0x3c4b9f('0xd02')]=_0x5c7932,_0x1f46bb[_0x3c4b9f('0xce8')]=_0x28a8e2,_0x1f46bb[_0x3c4b9f('0xea0')]=_0x92ec5d,_0x1f46bb['isNil']=_0xccce73;function _0xccce73(_0x19b18f){var _0x368994=_0x3c4b9f;return _0x86640f()[_0x368994('0x1c7')](_0x19b18f);}function _0x28a8e2(_0x1f3eab){var _0x4a7e3f=_0x3c4b9f;return _0x86640f()[_0x4a7e3f('0x2837')](_0x1f3eab,_0x4a7e3f('0x714'));}function _0x92ec5d(_0x12083b){var _0x26750f=_0x3c4b9f;return _0x86640f()['includes']([_0x26750f('0x214f'),_0x26750f('0x20f8'),_0x26750f('0x815'),'UserId',_0x26750f('0x23ae'),_0x26750f('0x1c55'),'id',_0x26750f('0xbe5'),_0x26750f('0x141a'),'tags','updatedAt',_0x26750f('0xefe'),'twitter',_0x26750f('0xaee'),_0x26750f('0x1e85'),_0x26750f('0x7a5'),_0x26750f('0x68a'),_0x26750f('0x23b0'),'telegram'],_0x12083b);}function _0x3b0d59(){var _0x2469b6=_0x3c4b9f;_0x1f46bb[_0x2469b6('0x108')]=!![],_0x1f46bb[_0x2469b6('0x2551')]=!![],_0x86640f()[_0x2469b6('0x23aa')](_0x1f46bb[_0x2469b6('0x8a1')])?(_0x10439b[_0x2469b6('0x2092')]({'title':_0x2469b6('0x1ee8'),'msg':_0x2469b6('0xd30')}),_0x1f46bb[_0x2469b6('0x2551')]=![],_0x1f46bb['hopperIds']=[],_0x53d1e1(!![])):_0x13fb0d[_0x2469b6('0x9ac')][_0x2469b6('0x1f10')]({'id':_0x1f46bb[_0x2469b6('0x8a1')]['id']})[_0x2469b6('0x1376')][_0x2469b6('0x21ad')](function(){_0x53d1e1(!![]);})['catch'](function(_0x3860ff){var _0x4f2d29=_0x2469b6;_0x10439b[_0x4f2d29('0x2092')]({'title':'Message','msg':_0x3860ff[_0x4f2d29('0x11c2')]}),_0x53d1e1(!![]);})['finally'](function(){var _0x8d55ab=_0x2469b6;_0x1f46bb[_0x8d55ab('0x2551')]=![],_0x1f46bb[_0x8d55ab('0x5ab')]=[];});}function _0x53d1e1(_0x18953e){var _0x54b0cf=_0x3c4b9f;_0x86640f()[_0x54b0cf('0x1c7')](_0x18953e)&&_0x13fb0d['cmHopper']['update']({'id':_0x1f46bb['preview']['id'],'UserId':null}),_0x4d61c7['hide']();}_0x5a629b[_0x3c4b9f('0x1723')](_0x3c4b9f('0x1210'),function(){var _0x3b56ca=_0x3c4b9f;!_0x1f46bb[_0x3b56ca('0x108')]&&_0x13fb0d[_0x3b56ca('0x1b37')][_0x3b56ca('0x5ef')]({'id':_0x1f46bb[_0x3b56ca('0x8a1')]['id'],'UserId':null});});function _0x1a681c(){var _0x4fa33b=_0x3c4b9f;return _0x1f46bb[_0x4fa33b('0xf68')]=!![],_0x13fb0d['cmHopper'][_0x4fa33b('0x270c')]({'hopperIds':_0x1f46bb[_0x4fa33b('0x5ab')],'direction':_0x4fa33b('0x18f9')})[_0x4fa33b('0x1376')][_0x4fa33b('0x21ad')](function(_0x12a0ce){var _0x36b9f7=_0x4fa33b;_0x1f46bb[_0x36b9f7('0xf68')]=![],!_0x86640f()['isNil'](_0x12a0ce)&&!_0x86640f()[_0x36b9f7('0x1c7')](_0x12a0ce[_0x36b9f7('0x1da')])&&_0x12a0ce[_0x36b9f7('0x1da')]['dialActive']?(!_0x1f46bb[_0x36b9f7('0x108')]&&_0x13fb0d[_0x36b9f7('0x1b37')][_0x36b9f7('0x5ef')]({'id':_0x1f46bb[_0x36b9f7('0x8a1')]['id'],'UserId':null}),_0x1f46bb[_0x36b9f7('0x8a1')]=_0x12a0ce,_0x1f46bb[_0x36b9f7('0x5ab')]['push'](_0x1f46bb['preview']['id'])):(_0x1f46bb[_0x36b9f7('0x5ab')]=[],_0x4d61c7[_0x36b9f7('0x1c24')](),_0x10439b[_0x36b9f7('0x231c')]({'title':_0x36b9f7('0x11e9'),'msg':_0x36b9f7('0x1af4')}));})[_0x4fa33b('0x1c1d')](function(_0x2f5183){var _0x148178=_0x4fa33b;_0x1f46bb[_0x148178('0xf68')]=![],_0x1f46bb['hopperIds']=[];if(_0x2f5183['status']===0x194)_0x1f46bb['getFirstAvailableContact']();else{if(_0x2f5183[_0x148178('0x11c2')]&&_0x2f5183['data'][_0x148178('0x1a69')]&&_0x2f5183[_0x148178('0x11c2')][_0x148178('0x1a69')]['length']){_0x4d61c7[_0x148178('0x1c24')]();for(var _0x5657c8=0x0;_0x5657c8<_0x2f5183[_0x148178('0x11c2')][_0x148178('0x1a69')][_0x148178('0x577')];_0x5657c8+=0x1){_0x10439b[_0x148178('0x2092')]({'title':_0x2f5183[_0x148178('0x11c2')][_0x148178('0x1a69')][_0x5657c8][_0x148178('0x7fa')],'msg':_0x2f5183[_0x148178('0x11c2')][_0x148178('0x1a69')][_0x5657c8][_0x148178('0x1224')]});}}else _0x4d61c7['hide'](),_0x10439b[_0x148178('0x2092')]({'title':_0x2f5183[_0x148178('0x209')]?_0x148178('0x22d')+_0x2f5183[_0x148178('0x209')]+_0x148178('0xa99')+_0x2f5183[_0x148178('0x1808')]:_0x148178('0x369'),'msg':_0x2f5183[_0x148178('0x11c2')]?JSON[_0x148178('0x25e')](_0x2f5183[_0x148178('0x11c2')][_0x148178('0x1224')]):_0x2f5183[_0x148178('0x174f')]()});}});}function _0xac72fb(){var _0x4eaecd=_0x3c4b9f;_0x1f46bb[_0x4eaecd('0xf68')]=!![];if(_0x1f46bb[_0x4eaecd('0x5ab')][_0x4eaecd('0x577')]>0x1){var _0xa3d431=_0x86640f()['without'](_0x1f46bb[_0x4eaecd('0x5ab')],_0x1f46bb[_0x4eaecd('0x8a1')]['id']);return _0x13fb0d[_0x4eaecd('0x1b37')]['getPreview']({'hopperIds':_0xa3d431,'direction':_0x4eaecd('0x2478')})['$promise'][_0x4eaecd('0x21ad')](function(_0xefb97){var _0x467e0b=_0x4eaecd;_0x1f46bb['disableGetContact']=![],!_0x86640f()['isNil'](_0xefb97)&&!_0x86640f()[_0x467e0b('0x1c7')](_0xefb97[_0x467e0b('0x1da')])&&_0xefb97[_0x467e0b('0x1da')][_0x467e0b('0x13dc')]?(_0x86640f()[_0x467e0b('0x16a2')](_0x1f46bb[_0x467e0b('0x5ab')],function(_0x363959){var _0x3535b1=_0x467e0b;return _0x363959==_0x1f46bb[_0x3535b1('0x8a1')]['id'];}),!_0x1f46bb[_0x467e0b('0x108')]&&_0x13fb0d[_0x467e0b('0x1b37')][_0x467e0b('0x5ef')]({'id':_0x1f46bb[_0x467e0b('0x8a1')]['id'],'UserId':null}),_0x1f46bb['preview']=_0xefb97):(_0x1f46bb[_0x467e0b('0x5ab')]=[],_0x4d61c7[_0x467e0b('0x1c24')](),_0x10439b[_0x467e0b('0x231c')]({'title':_0x467e0b('0x11e9'),'msg':'CAMPAIGN\x20NOT\x20ACTIVE'}));})['catch'](function(_0x274965){var _0x5e7ac9=_0x4eaecd;if(_0x274965[_0x5e7ac9('0x209')]===0x194)_0x1f46bb[_0x5e7ac9('0x5ab')]=[_0x1f46bb['preview']['id']],_0x10439b[_0x5e7ac9('0x231c')]({'title':_0x5e7ac9('0x11e9'),'msg':'PREVIOUS\x20CONTACTS\x20NOT\x20AVAILABLE'});else{if(_0x274965[_0x5e7ac9('0x11c2')]&&_0x274965[_0x5e7ac9('0x11c2')]['errors']&&_0x274965[_0x5e7ac9('0x11c2')][_0x5e7ac9('0x1a69')][_0x5e7ac9('0x577')]){_0x1f46bb[_0x5e7ac9('0x5ab')]=[],_0x4d61c7[_0x5e7ac9('0x1c24')]();for(var _0x88e2bb=0x0;_0x88e2bb<_0x274965[_0x5e7ac9('0x11c2')][_0x5e7ac9('0x1a69')][_0x5e7ac9('0x577')];_0x88e2bb+=0x1){_0x10439b['error']({'title':_0x274965[_0x5e7ac9('0x11c2')][_0x5e7ac9('0x1a69')][_0x88e2bb][_0x5e7ac9('0x7fa')],'msg':_0x274965[_0x5e7ac9('0x11c2')][_0x5e7ac9('0x1a69')][_0x88e2bb][_0x5e7ac9('0x1224')]});}}else _0x1f46bb['hopperIds']=[],_0x4d61c7['hide'](),_0x10439b[_0x5e7ac9('0x2092')]({'title':_0x274965['status']?_0x5e7ac9('0x22d')+_0x274965[_0x5e7ac9('0x209')]+'\x20-\x20'+_0x274965['statusText']:_0x5e7ac9('0x369'),'msg':_0x274965[_0x5e7ac9('0x11c2')]?JSON['stringify'](_0x274965[_0x5e7ac9('0x11c2')][_0x5e7ac9('0x1224')]):_0x274965[_0x5e7ac9('0x174f')]()});}});}}function _0x5c7932(){var _0x34d049=_0x3c4b9f;return _0x1f46bb[_0x34d049('0xf68')]=!![],_0x10439b[_0x34d049('0x231c')]({'title':_0x34d049('0x11e9'),'msg':_0x34d049('0x21b')}),_0x13fb0d[_0x34d049('0x1b37')]['getPreview']({'hopperIds':[_0x1f46bb['preview']['id']],'direction':_0x34d049('0x18f9')})[_0x34d049('0x1376')][_0x34d049('0x21ad')](function(_0x3816fc){var _0x1188ee=_0x34d049;!_0x86640f()[_0x1188ee('0x1c7')](_0x3816fc)&&!_0x86640f()[_0x1188ee('0x1c7')](_0x3816fc[_0x1188ee('0x1da')])&&_0x3816fc[_0x1188ee('0x1da')][_0x1188ee('0x13dc')]?(!_0x1f46bb[_0x1188ee('0x108')]&&_0x13fb0d['cmHopper']['update']({'id':_0x1f46bb[_0x1188ee('0x8a1')]['id'],'UserId':null}),_0x1f46bb[_0x1188ee('0x8a1')]=_0x3816fc,_0x1f46bb[_0x1188ee('0x5ab')][_0x1188ee('0x206c')](_0x1f46bb[_0x1188ee('0x8a1')]['id'])):(_0x4d61c7[_0x1188ee('0x1c24')](),_0x10439b[_0x1188ee('0x231c')]({'title':_0x1188ee('0x11e9'),'msg':_0x1188ee('0x1af4')}));})[_0x34d049('0x1c1d')](function(_0x3485b9){var _0x23c297=_0x34d049;_0x4d61c7[_0x23c297('0x1c24')]();if(_0x3485b9[_0x23c297('0x209')]===0x194)_0x10439b[_0x23c297('0x231c')]({'title':_0x23c297('0x11e9'),'msg':_0x23c297('0x360')});else{if(_0x3485b9[_0x23c297('0x11c2')]&&_0x3485b9['data'][_0x23c297('0x1a69')]&&_0x3485b9[_0x23c297('0x11c2')]['errors'][_0x23c297('0x577')])for(var _0xe91c57=0x0;_0xe91c57<_0x3485b9[_0x23c297('0x11c2')]['errors'][_0x23c297('0x577')];_0xe91c57+=0x1){_0x10439b[_0x23c297('0x2092')]({'title':_0x3485b9[_0x23c297('0x11c2')][_0x23c297('0x1a69')][_0xe91c57]['type'],'msg':_0x3485b9[_0x23c297('0x11c2')][_0x23c297('0x1a69')][_0xe91c57]['message']});}else _0x10439b[_0x23c297('0x2092')]({'title':_0x3485b9['status']?_0x23c297('0x22d')+_0x3485b9[_0x23c297('0x209')]+'\x20-\x20'+_0x3485b9[_0x23c297('0x1808')]:_0x23c297('0x369'),'msg':_0x3485b9[_0x23c297('0x11c2')]?JSON[_0x23c297('0x25e')](_0x3485b9[_0x23c297('0x11c2')]['message']):_0x3485b9['toString']()});}})[_0x34d049('0x13e')](function(){var _0x5cd43e=_0x34d049;_0x1f46bb[_0x5cd43e('0xf68')]=![];});}}const _0x45c7b4=_0x505985,_0x2a2f89=_0x398308['p']+_0x3877e3('0x1c23'),_0x5072bc=_0x398308['p']+_0x3877e3('0xda6');_0x11b48a[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0x25ff'),'$q',_0x3877e3('0xa9f'),_0x3877e3('0x2313'),_0x3877e3('0x14c7'),_0x3877e3('0x2828'),'$translate',_0x3877e3('0x21be'),_0x3877e3('0x24e1'),_0x3877e3('0x1850'),'$document',_0x3877e3('0x26'),'toasty',_0x3877e3('0x48e'),_0x3877e3('0x15bc'),_0x3877e3('0x25d8'),_0x3877e3('0xccd'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0x1e8d')];function _0x11b48a(_0xb869f7,_0x1ca940,_0x3efde6,_0x5e7777,_0x115e0f,_0x348e83,_0x5635ac,_0x4e79f0,_0x2230d7,_0x1816fb,_0x583c8f,_0x2d8b83,_0xd03ac2,_0x42a4b1,_0x562494,_0x38a768,_0x1e77a6,_0xf99e8e,_0x17e407,_0x3c93a4,_0x2e472a){var _0x726fae=_0x3877e3,_0x401b12=this;_0x401b12['voiceQueues']={},_0x401b12[_0x726fae('0x152b')]=!![],_0x401b12[_0x726fae('0x390')]=_0xf99e8e[_0x726fae('0x390')];var _0x4feab7;_0x1ca940[_0x726fae('0x2c9')]={'search':''},_0x401b12['pauses']=[],_0x401b12['license']=_0x17e407,_0x401b12[_0x726fae('0x123f')]=_0x38a768['getCurrentUser'](),_0x401b12[_0x726fae('0x213c')]=0x0,_0x401b12[_0x726fae('0xf6f')]=0x0,_0x401b12['contcts']=0x0;_0x401b12[_0x726fae('0x123f')][_0x726fae('0x25c8')]===_0x726fae('0x2402')&&(_0x4feab7=_0x2e472a(_0x2fe29a,0x3a97));_0x401b12[_0x726fae('0x21e')]=_0x3c93a4,_0x401b12[_0x726fae('0x5e6')]=angular[_0x726fae('0x1676')]('body'),_0x401b12['conf']={'realm':_0x726fae('0x1757'),'host':_0x348e83[_0x726fae('0x1c01')](),'protocol':_0x348e83[_0x726fae('0x1162')](),'remotePlayerId':_0x726fae('0x6dd'),'ua':_0x726fae('0x1f63'),'license':_0x401b12[_0x726fae('0x2ff')][_0x726fae('0xce3')],'phoneBarExpires':_0x401b12[_0x726fae('0x123f')]['phoneBarExpires'],'phoneBarPrefixRequired':_0x401b12['currentUser'][_0x726fae('0x137b')]},_0x401b12[_0x726fae('0x77')]={'id':_0x38a768[_0x726fae('0x15ed')]()['id'],'fields':_0x726fae('0x7fb'),'channel':'voice','nolimit':!![]},_0x401b12[_0x726fae('0xb4d')]=[{'title':_0x726fae('0xa2c'),'icon':'icon-checkbox-marked-circle','color':'#4CAF50'},{'title':'Away','icon':_0x726fae('0x282d'),'color':_0x726fae('0x20e')},{'title':_0x726fae('0x3c4'),'icon':_0x726fae('0x161f'),'color':_0x726fae('0x336')},{'title':'Invisible','icon':_0x726fae('0xc5'),'color':_0x726fae('0x1aa')},{'title':_0x726fae('0x46c'),'icon':_0x726fae('0xc5'),'color':_0x726fae('0x1964')}],_0x401b12[_0x726fae('0x2488')]={'ar':{'title':_0x726fae('0x17a2'),'translation':_0x726fae('0x16a5'),'code':'ar','flag':'ar'},'da':{'title':'Danish','translation':'TOOLBAR.DANISH','code':'da','flag':'da'},'de':{'title':_0x726fae('0x2a'),'translation':'TOOLBAR.GERMAN','code':'de','flag':'de'},'en':{'title':'English','translation':_0x726fae('0xd86'),'code':'en','flag':'us'},'es':{'title':'Spanish','translation':_0x726fae('0x2569'),'code':'es','flag':'es'},'fa':{'title':'Persian','translation':_0x726fae('0x2548'),'code':'fa','flag':'fa'},'fi':{'title':_0x726fae('0xc2c'),'translation':_0x726fae('0x26e2'),'code':'fi','flag':'fi'},'fr':{'title':'French','translation':_0x726fae('0x10c6'),'code':'fr','flag':'fr'},'he':{'title':'Hebrew','translation':_0x726fae('0x23f0'),'code':'he','flag':'he'},'hi':{'title':'Hindi','translation':_0x726fae('0x1b04'),'code':'hi','flag':'hi'},'id':{'title':_0x726fae('0x4c'),'translation':_0x726fae('0x11d5'),'code':'id','flag':'id'},'it':{'title':_0x726fae('0xda4'),'translation':_0x726fae('0x2240'),'code':'it','flag':'it'},'ja':{'title':_0x726fae('0x1aa6'),'translation':'TOOLBAR.JAPANESE','code':'ja','flag':'ja'},'ko':{'title':_0x726fae('0x2261'),'translation':_0x726fae('0x1294'),'code':'ko','flag':'ko'},'lv':{'title':_0x726fae('0xd0a'),'translation':_0x726fae('0x59c'),'code':'lv','flag':'lv'},'nl':{'title':_0x726fae('0x1513'),'translation':_0x726fae('0x1c34'),'code':'nl','flag':'nl'},'no':{'title':_0x726fae('0x2748'),'translation':_0x726fae('0x1562'),'code':'no','flag':'no'},'pl':{'title':_0x726fae('0x16ec'),'translation':_0x726fae('0x11ca'),'code':'pl','flag':'pl'},'pt-BR':{'title':'Brazilian','translation':_0x726fae('0x1ee4'),'code':'pt-BR','flag':_0x726fae('0x2854')},'pt-PT':{'title':_0x726fae('0x573'),'translation':'TOOLBAR.PORTUGUESE','code':'pt-PT','flag':_0x726fae('0x187e')},'ru':{'title':_0x726fae('0x410'),'translation':_0x726fae('0x11a'),'code':'ru','flag':'ru'},'sv':{'title':'Swedish','translation':'TOOLBAR.SWEDISH','code':'sv','flag':'sv'},'tr':{'title':_0x726fae('0xbd4'),'translation':_0x726fae('0x849'),'code':'tr','flag':'tr'},'zh-CN':{'title':_0x726fae('0x1e11'),'translation':_0x726fae('0x2639'),'code':_0x726fae('0x1d7b'),'flag':_0x726fae('0x1d7b')},'zh-TW':{'title':_0x726fae('0xe65'),'translation':_0x726fae('0x1596'),'code':_0x726fae('0x1c77'),'flag':_0x726fae('0x1c77')}};var _0x42b8a4=['ar','fa','he'];_0x401b12['toggleSidenav']=_0x2403e4,_0x401b12[_0x726fae('0xda3')]=_0xd81a29,_0x401b12['changeLanguage']=_0x432659,_0x401b12[_0x726fae('0x2368')]=_0x247a5e,_0x401b12['toggleHorizontalMobileMenu']=_0xd56304,_0x401b12['toggleMsNavigationFolded']=_0x221873,_0x401b12['search']=_0x5d4a8f,_0x401b12[_0x726fae('0x1017')]=_0x58331a,_0x401b12[_0x726fae('0x1fc9')]=_0x39f7ae,_0x401b12[_0x726fae('0xbb4')]=_0x3e0826,_0x401b12[_0x726fae('0x1add')]=_0x252cf0,_0x401b12[_0x726fae('0x425')]=_0x30dc8b,_0x401b12[_0x726fae('0x2690')]=_0x2fa463,_0x401b12['pause']=_0xd6ac2c,_0x401b12[_0x726fae('0xa8e')]=_0x3e57a4,_0x401b12[_0x726fae('0x8a1')]=_0x86968,_0x401b12[_0x726fae('0x1ee6')]=_0x241ca0,_0x401b12['userIsNotPhonebar']=_0x30f096,_0x401b12[_0x726fae('0x25c1')]=_0x1fbfba,_0x401b12[_0x726fae('0x24cb')]=_0x32239a,_0x401b12[_0x726fae('0x15e3')]=_0x4a1706,_0x401b12['onVoiceQueue']=_0x2971a5,_0x13a8db(),_0x2aa25b(),_0x3137ee();function _0x13a8db(){var _0x280bce=_0x726fae;_0x401b12[_0x280bce('0x1775')]=_0x38a768[_0x280bce('0x15ed')](),_0x401b12[_0x280bce('0x59f')][_0x280bce('0xbf')]=_0x401b12[_0x280bce('0x1775')]['md5secret'],_0x401b12[_0x280bce('0x59f')]['id']=_0x401b12['user']['id'],_0x401b12['conf']['name']=_0x401b12[_0x280bce('0x1775')][_0x280bce('0x19fe')],_0x401b12[_0x280bce('0x59f')]['fullname']=_0x401b12[_0x280bce('0x1775')][_0x280bce('0x20f5')],_0x401b12['conf'][_0x280bce('0x201f')]=_0x401b12[_0x280bce('0x1775')][_0x280bce('0x201f')],_0x401b12[_0x280bce('0x59f')][_0x280bce('0xab3')]=_0x401b12['user'][_0x280bce('0x3dc')],_0x401b12[_0x280bce('0x59f')][_0x280bce('0x41a')]=_0x401b12[_0x280bce('0x1775')]['phoneBarAutoAnswer'],_0x401b12[_0x280bce('0x59f')][_0x280bce('0x5a4')]=_0x401b12[_0x280bce('0x1775')][_0x280bce('0x6d0')],_0x401b12['conf']['enableDtmfTone']=_0x401b12[_0x280bce('0x1775')]['phoneBarEnableDtmfTone'],_0x401b12[_0x280bce('0x59f')][_0x280bce('0x1150')]=_0x401b12[_0x280bce('0x1775')][_0x280bce('0x13fd')],_0x401b12[_0x280bce('0x24c8')]=_0x401b12[_0x280bce('0xb4d')][0x0];var _0x55883a=_0xd03ac2['get'](_0x280bce('0xacc'));_0x55883a&&typeof _0x401b12[_0x280bce('0x2488')][_0x55883a]!==_0x280bce('0xddc')?_0x401b12[_0x280bce('0x1e31')]=_0x401b12['languages'][_0x55883a]:_0x401b12[_0x280bce('0x1e31')]=_0x401b12[_0x280bce('0x2488')][_0x4e79f0[_0x280bce('0xdb0')]()];_0xf99e8e[_0x280bce('0x1e26')][_0x280bce('0x595')]({'fields':_0x280bce('0x19fe'),'nolimit':!![]})['$promise'][_0x280bce('0x21ad')](function(_0x7a551b){var _0x2dc06b=_0x280bce;_0x401b12[_0x2dc06b('0x1fc7')]=_0x7a551b[_0x2dc06b('0x1b33')]?_0x7a551b[_0x2dc06b('0x1b33')]:[];})['catch'](function(_0x1cfd05){var _0x2fd979=_0x280bce;_0x42a4b1[_0x2fd979('0x2092')]({'title':_0x1cfd05[_0x2fd979('0x209')]?'API:'+_0x1cfd05['status']+_0x2fd979('0xa99')+_0x1cfd05[_0x2fd979('0x1808')]:'SYSTEM:GETPAUSES','msg':_0x1cfd05['status']?JSON['stringify'](_0x1cfd05[_0x2fd979('0x11c2')]):_0x1cfd05[_0x2fd979('0x174f')]()});});if(_0x38a768[_0x280bce('0x1c20')]()==_0x280bce('0x59')){if(_0x401b12[_0x280bce('0x21e')][_0x280bce('0x1426')]){if(!_0x401b12[_0x280bce('0x1775')]['passwordResetAt'])_0x3e0826(null,!![]);else{var _0xcfb9fe=_0x1088bc()(_0x401b12[_0x280bce('0x1775')][_0x280bce('0x11a7')])['add'](_0x401b12[_0x280bce('0x21e')][_0x280bce('0x199e')]||0x5a,'day');if(_0x1088bc()()['isAfter'](_0xcfb9fe))_0x3e0826(null,!![]);else _0x1088bc()()[_0x280bce('0x1842')](0xf,_0x280bce('0x1837'))[_0x280bce('0x1725')](_0xcfb9fe)&&_0x42a4b1[_0x280bce('0x2649')]({'title':_0x4e79f0[_0x280bce('0x183e')]('TOOLBAR.WARNING')+'!','msg':_0x4e79f0[_0x280bce('0x183e')]('TOOLBAR.PASSWORD_EXPIRE_REMAINING_DAYS')+':\x20'+Math[_0x280bce('0x1321')](_0xcfb9fe[_0x280bce('0x2503')](_0x1088bc()(),_0x280bce('0x18ad'),!![])),'timeout':0x4e20});}}}}function _0x3137ee(){var _0x5cd9c0=_0x726fae;_0x1e77a6[_0x5cd9c0('0x663')](),_0x1e77a6['on'](_0x5cd9c0('0x21f4'),_0x401b12[_0x5cd9c0('0x425')]),_0x1e77a6['on'](_0x5cd9c0('0x159'),_0x401b12[_0x5cd9c0('0x2690')]),_0x1e77a6['on'](_0x5cd9c0('0x255c'),_0x401b12[_0x5cd9c0('0x25c1')]),_0x1e77a6['on']('chatInternalMessage:update',_0x401b12[_0x5cd9c0('0x24cb')]),_0x1e77a6['on'](_0x5cd9c0('0x1595'),_0x401b12[_0x5cd9c0('0x15e3')]),_0x1e77a6['on'](_0x5cd9c0('0xcae'),_0x401b12[_0x5cd9c0('0xc62')]),_0x1e77a6['on'](_0x5cd9c0('0x3b0'),_0x401b12[_0x5cd9c0('0x15e3')]),_0x1e77a6['on'](_0x5cd9c0('0x1ac2'),_0x401b12['onVoiceQueue']),_0x1e77a6['on'](_0x5cd9c0('0x1aba'),_0x401b12[_0x5cd9c0('0xc62')]),_0x1e77a6['on'](_0x5cd9c0('0x216c'),_0x355935),_0x1e77a6['on'](_0x5cd9c0('0x243d'),_0x7dcc2);}function _0x764fe4(){var _0x22de8c=_0x726fae;_0x1e77a6['removeAllListeners'](_0x22de8c('0x159')),_0x1e77a6[_0x22de8c('0x16cc')](_0x22de8c('0x21f4')),_0x1e77a6['removeAllListeners'](_0x22de8c('0x255c')),_0x1e77a6[_0x22de8c('0x16cc')]('chatInternalMessage:update'),_0x1e77a6[_0x22de8c('0x16cc')]('userVoiceQueue:save'),_0x1e77a6['removeAllListeners'](_0x22de8c('0xcae')),_0x1e77a6[_0x22de8c('0x16cc')](_0x22de8c('0x3b0')),_0x1e77a6[_0x22de8c('0x16cc')](_0x22de8c('0x1ac2')),_0x1e77a6[_0x22de8c('0x16cc')](_0x22de8c('0x1aba')),_0x1e77a6[_0x22de8c('0x16cc')](_0x22de8c('0x216c')),_0x1e77a6[_0x22de8c('0x16cc')](_0x22de8c('0x243d')),_0x1e77a6[_0x22de8c('0x8d8')]();}function _0x51043f(_0x1a59eb){var _0x131426=_0x726fae;_0x401b12[_0x131426('0x2b6')]=_0x1a59eb?_0x86640f()[_0x131426('0xcde')](_0x1a59eb[_0x131426('0x1b33')]?_0x1a59eb[_0x131426('0x1b33')]:[],'id'):{};}function _0x2aa25b(){var _0xb6fcf5=_0x726fae;_0x401b12[_0xb6fcf5('0x71b')]=_0xf99e8e[_0xb6fcf5('0x1775')][_0xb6fcf5('0x71c')](_0x401b12[_0xb6fcf5('0x77')],_0x51043f)[_0xb6fcf5('0x1376')];}function _0x2971a5(){_0x2aa25b();}function _0x4a1706(_0x1c76af){var _0x1c93aa=_0x726fae;_0x86640f()[_0x1c93aa('0x27fc')](_0x1c76af['UserId'])===_0x38a768[_0x1c93aa('0x15ed')]()['id']&&_0x2aa25b();}function _0xd6ac2c(_0xe208d3){var _0x5d9d96=_0x726fae;return _0xf99e8e[_0x5d9d96('0x1775')][_0x5d9d96('0x1e26')]({'id':_0x401b12[_0x5d9d96('0x1775')]['id'],'type':_0xe208d3||_0x5d9d96('0x628')})[_0x5d9d96('0x1376')][_0x5d9d96('0x1c1d')](function(_0x1dc7fe){var _0x2b47fd=_0x5d9d96;_0x42a4b1['error']({'title':_0x1dc7fe[_0x2b47fd('0x209')]?_0x2b47fd('0x22d')+_0x1dc7fe['status']+'\x20-\x20'+_0x1dc7fe[_0x2b47fd('0x1808')]:_0x2b47fd('0x21f2'),'msg':_0x1dc7fe['status']?JSON[_0x2b47fd('0x25e')](_0x1dc7fe['data']):_0x1dc7fe[_0x2b47fd('0x174f')]()});});}function _0x3e57a4(){var _0x55fa75=_0x726fae;return _0xf99e8e['user'][_0x55fa75('0xa8e')]({'id':_0x401b12[_0x55fa75('0x1775')]['id']})[_0x55fa75('0x1376')][_0x55fa75('0x1c1d')](function(_0xcdf5e5){var _0x2eb4ec=_0x55fa75;_0x42a4b1['error']({'title':_0xcdf5e5[_0x2eb4ec('0x209')]?'API:'+_0xcdf5e5[_0x2eb4ec('0x209')]+_0x2eb4ec('0xa99')+_0xcdf5e5[_0x2eb4ec('0x1808')]:_0x2eb4ec('0x27ab'),'msg':_0xcdf5e5[_0x2eb4ec('0x209')]?JSON[_0x2eb4ec('0x25e')](_0xcdf5e5['data']):_0xcdf5e5['toString']()});});}function _0x86968(_0x33b768){var _0x574e32=_0x726fae;return _0x401b12[_0x574e32('0x2551')]=!![],_0xf99e8e['cmHopper']['getPreview']()[_0x574e32('0x1376')]['then'](function(_0x38cdb6){var _0x3af962=_0x574e32;!_0x86640f()['isNil'](_0x38cdb6)&&!_0x86640f()[_0x3af962('0x1c7')](_0x38cdb6[_0x3af962('0x1da')])&&_0x38cdb6['Queue'][_0x3af962('0x13dc')]?_0x583c8f[_0x3af962('0x853')]({'controller':_0x3af962('0x1f31'),'controllerAs':'vm','templateUrl':_0x2a2f89,'parent':angular[_0x3af962('0x1676')](_0x2d8b83[_0x3af962('0x2452')]),'targetEvent':_0x33b768,'clickOutsideToClose':!![],'locals':{'preview':_0x38cdb6},'resolve':{'customFields':[_0x3af962('0x354'),function _0x5a60b2(_0x38ebd0){var _0x7c7d13=_0x3af962;return _0x38ebd0[_0x7c7d13('0x8ac')](_0x7c7d13('0x44f'),{'nolimit':!![]});}]}}):_0x42a4b1['info']({'title':_0x3af962('0x11e9'),'msg':_0x3af962('0x1af4')});})[_0x574e32('0x1c1d')](function(_0x1a1e35){var _0x106938=_0x574e32;if(_0x1a1e35[_0x106938('0x209')]===0x194)_0x42a4b1[_0x106938('0x231c')]({'title':_0x106938('0x11e9'),'msg':_0x106938('0x27d3')});else{if(_0x1a1e35['data']&&_0x1a1e35[_0x106938('0x11c2')][_0x106938('0x1a69')]&&_0x1a1e35[_0x106938('0x11c2')][_0x106938('0x1a69')][_0x106938('0x577')]){_0x401b12['errors']=_0x1a1e35[_0x106938('0x11c2')][_0x106938('0x1a69')]||[{'message':_0x1a1e35[_0x106938('0x174f')](),'type':'api.openchannelMessage.accept'}];for(var _0x299e13=0x0;_0x299e13<_0x1a1e35[_0x106938('0x11c2')][_0x106938('0x1a69')][_0x106938('0x577')];_0x299e13+=0x1){_0x42a4b1[_0x106938('0x2092')]({'title':_0x1a1e35[_0x106938('0x11c2')][_0x106938('0x1a69')][_0x299e13][_0x106938('0x7fa')],'msg':_0x1a1e35[_0x106938('0x11c2')][_0x106938('0x1a69')][_0x299e13][_0x106938('0x1224')]});}}else _0x42a4b1[_0x106938('0x2092')]({'title':_0x1a1e35['status']?_0x106938('0x22d')+_0x1a1e35['status']+'\x20-\x20'+_0x1a1e35[_0x106938('0x1808')]:'api.openchannelMessage.accept','msg':_0x1a1e35['data']?JSON[_0x106938('0x25e')](_0x1a1e35['data'][_0x106938('0x1224')]):_0x1a1e35[_0x106938('0x174f')]()});}})[_0x574e32('0x13e')](function(){_0x401b12['disable']=![];});}function _0x2403e4(_0x125cf8){var _0x2c7f46=_0x726fae;_0x5635ac(_0x125cf8)[_0x2c7f46('0x170c')]();}function _0x30f096(){var _0x28883d=_0x726fae;return _0x401b12[_0x28883d('0x123f')][_0x28883d('0x25c8')]===_0x28883d('0x1bd8')||_0x401b12[_0x28883d('0x123f')][_0x28883d('0x25c8')]===_0x28883d('0x1775')||_0x401b12[_0x28883d('0x123f')]['role']===_0x28883d('0x2402')&&_0x401b12[_0x28883d('0x123f')]['showWebBar']!==0x0;}_0xf99e8e['chatInternalMessage'][_0x726fae('0x595')]({'fields':_0x726fae('0xeb5'),'ToId':_0x401b12[_0x726fae('0x123f')]['id'],'read':![],'nolimit':!![]})[_0x726fae('0x1376')]['then'](function(_0x1a8703){var _0x2b71e5=_0x726fae;_0x401b12[_0x2b71e5('0x213c')]=_0x1a8703[_0x2b71e5('0x1b33')][_0x2b71e5('0x577')];});function _0x1fbfba(_0x302811){var _0x1c5ef2=_0x726fae;_0x302811['ToId']===_0x401b12[_0x1c5ef2('0x123f')]['id']&&!_0x302811[_0x1c5ef2('0x96d')]&&(_0x401b12['unreadTotalMessages']+=0x1),_0x302811[_0x1c5ef2('0x1724')]===_0x401b12[_0x1c5ef2('0x123f')]['id']&&_0x302811[_0x1c5ef2('0xeb5')]!==_0x401b12[_0x1c5ef2('0x123f')]['id']&&!_0x302811[_0x1c5ef2('0x14ee')]&&_0x302811['ChatGroupId']&&_0x401b12[_0x1c5ef2('0xf6f')]++;}function _0x32239a(_0x24095d){var _0x4ebca8=_0x726fae;_0x24095d[_0x4ebca8('0x1724')]===_0x401b12[_0x4ebca8('0x123f')]['id']&&_0x24095d[_0x4ebca8('0x14ee')]&&_0x401b12[_0x4ebca8('0x213c')]>0x0&&!_0x24095d['ChatGroupId']&&(_0x401b12[_0x4ebca8('0x213c')]-=0x1),_0x24095d['ToId']===_0x401b12[_0x4ebca8('0x123f')]['id']&&_0x24095d['read']&&_0x24095d[_0x4ebca8('0x96d')]&&_0x401b12['unreadTotalGroupMessages']>0x0&&_0x401b12[_0x4ebca8('0xf6f')]--;}function _0x247a5e(_0x36aa9c){var _0x4cecfc=_0x726fae;_0x401b12[_0x4cecfc('0x24c8')]=_0x36aa9c;}function _0xd81a29(_0x4c9866){var _0x26e2ab=_0x726fae;return _0x764fe4(),_0x38a768[_0x26e2ab('0xda3')](_0x4c9866)[_0x26e2ab('0x21ad')](function(){var _0x32ec19=_0x26e2ab;return _0x1ca940[_0x32ec19('0x149a')](_0x32ec19('0x1fd8')),_0x5e7777['go'](_0x32ec19('0xab'));})[_0x26e2ab('0x1c1d')](function(_0x41cf59){var _0x2b61f6=_0x26e2ab;console[_0x2b61f6('0x2092')](_0x41cf59);});}function _0x432659(_0xe92e00){var _0x24cf84=_0x726fae;if(typeof _0x401b12[_0x24cf84('0x2488')][_0xe92e00['code']]=='undefined'){var _0x187e77=_0x24cf84('0x1fe9');_0x2230d7['show']({'template':_0x24cf84('0x50f')+_0x187e77+_0x24cf84('0x2324'),'hideDelay':0x1b58,'position':_0x24cf84('0x1c15'),'parent':_0x24cf84('0x1cd6')});return;}_0x401b12[_0x24cf84('0x1e31')]=_0xe92e00,_0xd03ac2[_0x24cf84('0x8c4')](_0x24cf84('0xacc'),_0xe92e00['code']),_0x4e79f0[_0x24cf84('0xfc9')](_0xe92e00[_0x24cf84('0x17e8')]),_0x5e7777[_0x24cf84('0x1ccb')][_0x24cf84('0x19fe')]===_0x24cf84('0x18d7')&&_0x1816fb[_0x24cf84('0x626')][_0x24cf84('0x18a3')](),_0x42b8a4[_0x24cf84('0x2004')](_0xe92e00[_0x24cf84('0x17e8')])>=0x0?_0x42a4b1[_0x24cf84('0x231c')]({'title':_0x4e79f0['instant'](_0x24cf84('0x224f')),'msg':_0x4e79f0['instant'](_0x24cf84('0x1482'))}):_0xb869f7[_0x24cf84('0x223d')][_0x24cf84('0x223d')]['vm'][_0x24cf84('0xfab')]='ltr';}function _0xd56304(){var _0x2cef8f=_0x726fae;_0x401b12[_0x2cef8f('0x5e6')][_0x2cef8f('0x2806')]('ms-navigation-horizontal-mobile-menu-active');}function _0x221873(){_0x562494['toggleFolded']();}function _0x5d4a8f(_0x2e0f3b){var _0x3a2a6a=_0x726fae,_0x5889a6=[],_0x210e52=_0x562494[_0x3a2a6a('0x7d0')](),_0x35a933=_0x3efde6['defer']();for(var _0x4de7b7=0x0;_0x4de7b7<_0x210e52[_0x3a2a6a('0x577')];_0x4de7b7++){_0x210e52[_0x4de7b7][_0x3a2a6a('0x1ff0')]&&_0x5889a6[_0x3a2a6a('0x206c')](_0x210e52[_0x4de7b7]);}return _0x2e0f3b&&(_0x5889a6=_0x5889a6[_0x3a2a6a('0x1503')](function(_0xfc5ca){var _0x48c3ba=_0x3a2a6a;if(_0xfc5ca[_0x48c3ba('0x4b4')][_0x48c3ba('0xac2')]()[_0x48c3ba('0xb34')](_0x2e0f3b['toLowerCase']()))return!![];})),_0x115e0f(function(){_0x35a933['resolve'](_0x5889a6);},0x3e8),_0x35a933[_0x3a2a6a('0x71b')];}function _0x58331a(_0x4bebb4){var _0x53ec86=_0x726fae;_0x4bebb4[_0x53ec86('0x1ff0')]&&(_0x4bebb4[_0x53ec86('0x15c2')]?_0x5e7777['go'](_0x4bebb4['state'],_0x4bebb4[_0x53ec86('0x15c2')]):_0x5e7777['go'](_0x4bebb4[_0x53ec86('0x27e')]));}function _0x39f7ae(){var _0x2e0c31=_0x726fae;_0x1ca940[_0x2e0c31('0x149a')](_0x2e0c31('0x241b'));}function _0x3e0826(_0x5270c9,_0x2c9b64){var _0x2c829c=_0x726fae;_0x583c8f[_0x2c829c('0x853')]({'controller':'ChangePasswordController','controllerAs':'vm','templateUrl':_0x5072bc,'parent':angular['element'](_0x2d8b83[_0x2c829c('0x2452')]),'targetEvent':_0x5270c9,'clickOutsideToClose':_0x2c9b64?![]:!![],'escapeToClose':_0x2c9b64?![]:!![],'locals':{'user':_0x401b12[_0x2c829c('0x1775')],'setting':_0x3c93a4,'reset':_0x2c9b64}});}function _0x252cf0(){var _0x4457a3=_0x726fae;return _0x38a768[_0x4457a3('0x15ed')]()&&_0x38a768['hasRole'](_0x4457a3('0x2402'));}function _0x30dc8b(_0x1f19f2){var _0x4a282c=_0x726fae;if(_0x1f19f2['id']===_0x401b12['user']['id']){if(_0x1f19f2['role']===_0x4a282c('0x2402')&&_0x86640f()['isBoolean'](_0x1f19f2[_0x4a282c('0x1ecb')])&&!_0x1f19f2[_0x4a282c('0x1ecb')]){if(_0x401b12[_0x4a282c('0x1775')][_0x4a282c('0x9f')]!==0x0){_0x764fe4();var _0x155972=_0x583c8f[_0x4a282c('0xa33')]()['title'](_0x4e79f0[_0x4a282c('0x183e')](_0x4a282c('0x182e'))+'!')[_0x4a282c('0x226d')](_0x4e79f0[_0x4a282c('0x183e')](_0x4a282c('0x7eb')))[_0x4a282c('0x7a7')](_0x4e79f0[_0x4a282c('0x183e')](_0x4a282c('0x182e'))+'!')['ok'](_0x4e79f0[_0x4a282c('0x183e')](_0x4a282c('0x20e6')))[_0x4a282c('0x3b5')](_0x4a282c('0x25a8'));_0x583c8f[_0x4a282c('0x853')](_0x155972)[_0x4a282c('0x21ad')](function(){var _0x549f29=_0x4a282c;return _0x38a768[_0x549f29('0x15b7')]()[_0x549f29('0x21ad')](function(){var _0x2aa54f=_0x549f29;_0x3137ee(),_0x86640f()[_0x2aa54f('0xd0e')](_0x401b12[_0x2aa54f('0x1775')],_0x1f19f2),_0x38a768[_0x2aa54f('0x12ca')](_0x401b12[_0x2aa54f('0x1775')]);});})[_0x4a282c('0x1c1d')](function(){_0xd81a29(!![]);});}else _0xd81a29(!![]);}else _0x86640f()[_0x4a282c('0xd0e')](_0x401b12[_0x4a282c('0x1775')],_0x1f19f2),_0x38a768[_0x4a282c('0x12ca')](_0x401b12[_0x4a282c('0x1775')]);}}function _0x2fa463(_0x8c9a28){var _0x2b58dd=_0x726fae;_0x401b12[_0x2b58dd('0x123f')]['showWebBar']===0x2&&_0x401b12['currentUser']['role']===_0x2b58dd('0x2402')&&_0x401b12[_0x2b58dd('0x123f')][_0x2b58dd('0x19fe')]===_0x8c9a28['membername']&&_0x42a4b1['info']({'title':'WebRTC\x20Popup','msg':_0x2b58dd('0x2407')+_0x8c9a28[_0x2b58dd('0x5d4')]+_0x2b58dd('0x2063')+_0x8c9a28[_0x2b58dd('0xbdd')]+_0x2b58dd('0x1dbd')+(_0x8c9a28[_0x2b58dd('0x142d')]&&_0x8c9a28[_0x2b58dd('0x142d')][_0x2b58dd('0x2058')]?_0x8c9a28['variables']['extravar']:'Not\x20defined')+_0x2b58dd('0x25c3'),'showClose':!![],'timeout':0x2710,'html':!![]});}function _0x241ca0(){var _0x3bfc94=_0x726fae;return _0x401b12[_0x3bfc94('0x21e')]['defaultHeaderWhiteLabel']?_0x3bfc94('0x371'):_0x401b12[_0x3bfc94('0x21e')]['headerWhiteLabel'];}function _0x2fe29a(){var _0x3caa6e=_0x726fae;_0x86640f()[_0x3caa6e('0x2664')](_0x401b12['voiceQueues'],{'dialMethod':_0x3caa6e('0x8a1'),'dialActive':!![]})&&_0x401b12[_0x3caa6e('0x2ff')]['dialer']&&_0x401b12[_0x3caa6e('0x152b')]?(_0x401b12['polling']=![],_0xf99e8e[_0x3caa6e('0x1b37')][_0x3caa6e('0x562')]()[_0x3caa6e('0x1376')][_0x3caa6e('0x21ad')](function(_0x14c267){var _0x224fa7=_0x3caa6e;_0x14c267&&_0x86640f()[_0x224fa7('0x1d7a')](_0x14c267['contacts'])&&(_0x401b12[_0x224fa7('0x2814')]=_0x14c267[_0x224fa7('0x2814')]);})['finally'](function(){var _0xc2adf3=_0x3caa6e;_0x401b12[_0xc2adf3('0x152b')]=!![];})):_0x401b12[_0x3caa6e('0x2814')]=0x0;}function _0x8775b3(){var _0x2ab8b=_0x726fae;_0x4feab7&&(_0x2e472a[_0x2ab8b('0x3b5')](_0x4feab7),_0x4feab7=null);}function _0x355935(_0x19bdd9){var _0x95c7e4=_0x726fae;console[_0x95c7e4('0x6f8')](_0x95c7e4('0x37e'),_0x19bdd9);if(_0x401b12[_0x95c7e4('0x1775')][_0x95c7e4('0x9f')]!==0x0)return _0x764fe4(),_0x38a768['logout'](!![])[_0x95c7e4('0x21ad')](function(){var _0xbaf75f=_0x95c7e4;_0x1ca940[_0xbaf75f('0x149a')](_0xbaf75f('0x1fd8')),_0x583c8f[_0xbaf75f('0x853')](_0x583c8f[_0xbaf75f('0x95b')]()[_0xbaf75f('0x12e2')](angular['element'](_0x2d8b83[_0xbaf75f('0x2452')]))[_0xbaf75f('0x1226')](![])[_0xbaf75f('0x1d79')](![])[_0xbaf75f('0x4b4')](_0x4e79f0['instant'](_0xbaf75f('0x182e')))[_0xbaf75f('0x226d')](_0x4e79f0[_0xbaf75f('0x183e')](_0xbaf75f('0xc09'),{'ip':_0x19bdd9['ip']}))['ok']('OK'))['then'](function(){return _0x5e7777['go']('app.login');});})[_0x95c7e4('0x1c1d')](function(_0x4dd525){var _0x31ba5c=_0x95c7e4;console[_0x31ba5c('0x2092')](_0x4dd525);});}function _0x7dcc2(_0x2f406e){var _0x2631e5=_0x726fae,_0x570053=_0x2f406e;if(_0x401b12[_0x2631e5('0x123f')]['id']===_0x570053[_0x2631e5('0x1e82')]){var _0x23e934=_0x4e79f0[_0x2631e5('0x183e')](_0x2631e5('0x22d3'),{'sender':_0x570053[_0x2631e5('0x33f')]}),_0x17e83d=_0x570053[_0x2631e5('0x1137')]?_0x4e79f0['instant'](_0x2631e5('0xe53'),{'recipient':_0x570053[_0x2631e5('0x1137')]}):null;_0x42a4b1['wait']({'title':_0x17e83d?_0x23e934+'\x20'+_0x17e83d:_0x23e934,'msg':_0x570053[_0x2631e5('0x13fb')],'clickToClose':![],'timeout':![],'sound':_0x570053[_0x2631e5('0xba4')],'html':!![]});}}_0xb869f7[_0x726fae('0x1723')](_0x726fae('0x1210'),function(){var _0x6413f1=_0x726fae;_0x1e77a6['removeAllListeners']('user:called'),_0x1e77a6[_0x6413f1('0x16cc')]('user:update'),_0x1e77a6[_0x6413f1('0x16cc')](_0x6413f1('0x255c')),_0x1e77a6[_0x6413f1('0x16cc')](_0x6413f1('0x2630')),_0x1e77a6[_0x6413f1('0x16cc')](_0x6413f1('0x1595')),_0x1e77a6[_0x6413f1('0x16cc')]('voiceQueue:save'),_0x1e77a6[_0x6413f1('0x16cc')]('userVoiceQueue:remove'),_0x1e77a6[_0x6413f1('0x16cc')](_0x6413f1('0x1ac2')),_0x1e77a6[_0x6413f1('0x16cc')](_0x6413f1('0x1aba')),_0x1e77a6[_0x6413f1('0x16cc')]('user:forcelogout'),_0x1e77a6[_0x6413f1('0x16cc')](_0x6413f1('0x243d')),_0x8775b3();});}const _0x4c0be3=_0x11b48a;_0x40e477[_0x3877e3('0x1a81')]=[_0x3877e3('0x972')];function _0x40e477(_0x424d32){var _0x4ada5b=_0x3877e3;_0x424d32['addPart'](_0x4ada5b('0x27f9'));}angular[_0x3877e3('0x20d5')]('app.toolbar',[])[_0x3877e3('0x13')](_0x40e477)[_0x3877e3('0x1d5a')](_0x3877e3('0x2591'),_0x5be68f)[_0x3877e3('0x1d5a')](_0x3877e3('0x1f31'),_0x45c7b4)[_0x3877e3('0x1d5a')](_0x3877e3('0x1c35'),_0x4c0be3),_0x40b276['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0x13c1'),'$q','Auth',_0x3877e3('0x25d8'),_0x3877e3('0xccd'),'desktopNotification','license'];function _0x40b276(_0x3064ac,_0x36db38,_0x3c801d,_0x33f2ae,_0x2f3df8,_0x5b3dc2,_0x510d5e,_0x479b08){var _0x601581=_0x3877e3,_0x5a90af=this;_0x5a90af[_0x601581('0x2457')]=_0x1088bc()()[_0x601581('0x153')](),_0x5a90af['currentUser']=_0x33f2ae[_0x601581('0x15ed')](),_0x5a90af[_0x601581('0x2ff')]=_0x479b08,_0x5a90af[_0x601581('0x213c')]=0x0,_0x5a90af['unreadTotalGroupMessages']=0x0,_0x5a90af[_0x601581('0xa67')]=_0x330dab,_0x5a90af[_0x601581('0x25eb')]=_0x49ff28,_0x5a90af[_0x601581('0xbe')]=_0x311200,_0x2f3df8['on'](_0x601581('0x255c'),_0x5a90af['onMessageSave']),_0x2f3df8['on'](_0x601581('0x2630'),_0x5a90af[_0x601581('0xbe')]),_0x5b3dc2[_0x601581('0x8cc')][_0x601581('0x595')]({'fields':'FromId','ToId':_0x5a90af[_0x601581('0x123f')]['id'],'read':![],'nolimit':!![],'ChatGroupId':_0x601581('0x27a')})[_0x601581('0x1376')]['then'](function(_0x294d60){var _0x44ca8a=_0x601581;return _0x294d60&&_0x294d60[_0x44ca8a('0x205f')]&&(_0x5a90af[_0x44ca8a('0x213c')]=_0x294d60[_0x44ca8a('0x205f')]),_0x5b3dc2['user']['getGroups']({'id':_0x5a90af[_0x44ca8a('0x123f')]['id']})[_0x44ca8a('0x1376')];})[_0x601581('0x21ad')](function(_0x437030){var _0x49d12c=_0x601581,_0x1787a7=[],_0x2e2ace=_0x437030['rows'];for(var _0x266633=0x0;_0x266633<_0x2e2ace[_0x49d12c('0x577')];_0x266633++){_0x1787a7[_0x49d12c('0x206c')](_0x5b3dc2[_0x49d12c('0x14f9')][_0x49d12c('0x21a0')]({'id':_0x2e2ace[_0x266633]['id']})[_0x49d12c('0x1376')]);}return _0x3c801d[_0x49d12c('0x1ba7')](_0x1787a7);})['then'](function(_0x487f04){var _0x3ff374=_0x601581;for(var _0x266587=0x0;_0x266587<_0x487f04[_0x3ff374('0x577')];_0x266587++){_0x5a90af[_0x3ff374('0xf6f')]+=_0x487f04[_0x266587][_0x3ff374('0x205f')];}})[_0x601581('0x1c1d')](function(_0x36f35e){var _0x2051c1=_0x601581;console[_0x2051c1('0x2092')](_0x36f35e);});function _0x40cff8(_0x18d1c7){var _0x332f71=_0x601581,_0x5beb7f={'autoClose':!![],'duration':0xa,'showOnPageHidden':!![],'icon':_0x332f71('0x1b19')+_0x18d1c7[_0x332f71('0xeb5')]+_0x332f71('0x80d'),'body':_0x18d1c7[_0x332f71('0x2452')]||'','focusOnclick':!![],'closeOnClick':!![]};_0x510d5e[_0x332f71('0x853')](_0x36db38[_0x332f71('0x183e')]('QUICKPANEL.NEW_INTERNAL_MESSAGE'),_0x5beb7f);}function _0x1304f6(_0x248675){var _0x1ea2eb=_0x601581;_0x510d5e[_0x1ea2eb('0xe23')]()?_0x510d5e[_0x1ea2eb('0x135c')]()[_0x1ea2eb('0x21ad')](function(){_0x40cff8(_0x248675);},function(_0x5e612f){var _0x32fd28=_0x1ea2eb;console[_0x32fd28('0x2092')](_0x32fd28('0xeb0'),_0x5e612f);}):console[_0x1ea2eb('0x2092')]('Browser\x20notifications\x20are\x20not\x20supported\x20by\x20the\x20browser.\x20Normal\x20notifications\x20will\x20be\x20used.');}function _0x330dab(){var _0x55cd8a=_0x601581;return _0x5a90af['currentUser'][_0x55cd8a('0x25c8')]===_0x55cd8a('0x1bd8')||_0x5a90af[_0x55cd8a('0x123f')][_0x55cd8a('0x25c8')]===_0x55cd8a('0x1775')||_0x5a90af[_0x55cd8a('0x123f')][_0x55cd8a('0x25c8')]===_0x55cd8a('0x2402')&&_0x5a90af[_0x55cd8a('0x123f')][_0x55cd8a('0x9f')]!==0x0;}function _0x49ff28(_0x23542b){var _0x21065c=_0x601581;_0x23542b[_0x21065c('0x1724')]===_0x5a90af[_0x21065c('0x123f')]['id']&&_0x23542b['FromId']!==_0x5a90af[_0x21065c('0x123f')]['id']&&!_0x23542b[_0x21065c('0x14ee')]&&_0x23542b[_0x21065c('0x96d')]&&(_0x5a90af[_0x21065c('0xf6f')]++,_0x1304f6(_0x23542b)),_0x23542b[_0x21065c('0x1724')]===_0x5a90af[_0x21065c('0x123f')]['id']&&!_0x23542b[_0x21065c('0x96d')]&&(_0x5a90af['unreadTotalMessages']+=0x1,_0x1304f6(_0x23542b));}function _0x311200(_0x4ff71c){var _0x5cf647=_0x601581;_0x4ff71c[_0x5cf647('0x1724')]===_0x5a90af[_0x5cf647('0x123f')]['id']&&_0x4ff71c[_0x5cf647('0x14ee')]&&_0x5a90af[_0x5cf647('0x213c')]>0x0&&!_0x4ff71c[_0x5cf647('0x96d')]&&(_0x5a90af[_0x5cf647('0x213c')]-=0x1),_0x4ff71c[_0x5cf647('0x1724')]==_0x5a90af[_0x5cf647('0x123f')]['id']&&_0x4ff71c[_0x5cf647('0xeb5')]!==_0x5a90af[_0x5cf647('0x123f')]['id']&&_0x4ff71c['ChatGroupId']&&_0x4ff71c[_0x5cf647('0x14ee')]&&(_0x5a90af[_0x5cf647('0xf6f')]>0x0&&_0x5a90af[_0x5cf647('0xf6f')]--);}_0x3064ac[_0x601581('0x1723')](_0x601581('0x1210'),function(){var _0x442f4a=_0x601581;_0x2f3df8[_0x442f4a('0x16cc')]('chatInternalMessage:save'),_0x2f3df8['removeAllListeners'](_0x442f4a('0x2630'));});}const _0xb45f53=_0x40b276;_0x1de9fa[_0x3877e3('0x1a81')]=['$scope','toasty',_0x3877e3('0xccd'),_0x3877e3('0x2313'),'Auth',_0x3877e3('0x25d8'),'$mdSidenav','$q',_0x3877e3('0x1e8d'),_0x3877e3('0x13c1'),_0x3877e3('0x25ff'),_0x3877e3('0x7ae')];function _0x1de9fa(_0x4df6bc,_0x40fbfe,_0x20acdb,_0x2dc9eb,_0x2e23ce,_0x21aa4e,_0x1e08d3,_0x27a2a4,_0x3ad0fa,_0xa2a951,_0x14afb9,_0x2312a3){var _0x484d84=_0x3877e3,_0x1d9074=this;_0x1d9074[_0x484d84('0x123f')]=_0x2e23ce[_0x484d84('0x15ed')](),_0x1d9074[_0x484d84('0x1775')]=undefined,_0x1d9074['users']={'count':0x0,'rows':[]},_0x1d9074['standardDate']=_0x1088bc()(0x0)[_0x484d84('0x153')]('YYYY-MM-DD\x20HH:mm:ss'),_0x1d9074['unreadMessage']={},_0x1d9074['replyMessage']='',_0x1d9074[_0x484d84('0x30')]=![],_0x1d9074[_0x484d84('0x1d75')]=_0x330b1d,_0x1d9074[_0x484d84('0x1f90')]=_0x3958bf,_0x1d9074['reply']=_0x4ef54c,_0x1d9074['onMessageSave']=_0x3aa0cf,_0x1d9074[_0x484d84('0xbe')]=_0x2211f7,_0x1d9074[_0x484d84('0x425')]=_0x34687c,_0x1d9074[_0x484d84('0x709')]=_0xc36fa7,_0x1d9074['call']=_0x4179ba,_0x1d9074['transfer']=_0x2d1b26,_0x21aa4e['on'](_0x484d84('0x255c'),_0x1d9074[_0x484d84('0x25eb')]),_0x21aa4e['on']('chatInternalMessage:update',_0x1d9074[_0x484d84('0xbe')]),_0x21aa4e['on']('user:update',_0x1d9074[_0x484d84('0x425')]),_0x1e08d3('quick-panel')[_0x484d84('0x88')](function(){var _0x1fc08f=_0x484d84;_0x1d9074[_0x1fc08f('0x1775')]=undefined;}),_0x20acdb[_0x484d84('0x8cc')][_0x484d84('0x595')]({'fields':_0x484d84('0xeb5'),'ToId':_0x1d9074['currentUser']['id'],'read':![],'nolimit':!![],'ChatGroupId':_0x484d84('0x27a')})[_0x484d84('0x1376')][_0x484d84('0x21ad')](function(_0x5efe8d){var _0x5edbeb=_0x484d84;_0x1d9074[_0x5edbeb('0x3bb')]=_0x86640f()[_0x5edbeb('0x17eb')](_0x5efe8d['rows'],_0x5edbeb('0xeb5'));})['catch'](function(){}),_0x20acdb[_0x484d84('0x8cc')][_0x484d84('0x3b7')]()[_0x484d84('0x1376')][_0x484d84('0x21ad')](function(_0x426c1a){var _0x1a3da6=_0x484d84;_0x1d9074[_0x1a3da6('0x188e')]=_0x426c1a;})[_0x484d84('0x1c1d')](function(_0x35d4ba){var _0xaa9a41=_0x484d84;console[_0xaa9a41('0x2092')](_0x35d4ba);});function _0x330b1d(_0x3b28eb){var _0x4b3935=_0x484d84;_0x1d9074[_0x4b3935('0x2ff')]=_0x3b28eb;}function _0x3aa0cf(_0x4a216a){var _0x48ab26=_0x484d84;if(_0x4a216a[_0x48ab26('0x1724')]===_0x1d9074[_0x48ab26('0x123f')]['id']&&!_0x4a216a[_0x48ab26('0x96d')]){_0x1d9074[_0x48ab26('0x1775')]&&_0x1d9074[_0x48ab26('0x1775')]['id']===_0x4a216a[_0x48ab26('0xeb5')]?(_0x1d9074[_0x48ab26('0x1775')][_0x48ab26('0xd36')]['rows']['push'](_0x4a216a),_0x2ea6b4(0x0),_0x20acdb['chatInternalMessage'][_0x48ab26('0x5ef')]({'id':_0x4a216a['id'],'read':!![]})):_0x1d9074[_0x48ab26('0x3bb')][_0x4a216a[_0x48ab26('0xeb5')]]=_0x1d9074['unreadMessage'][_0x4a216a[_0x48ab26('0xeb5')]]?_0x1d9074[_0x48ab26('0x3bb')][_0x4a216a[_0x48ab26('0xeb5')]]+0x1:0x1;var _0x100234=_0x86640f()[_0x48ab26('0x1d2e')](_0x1d9074[_0x48ab26('0x188e')][_0x48ab26('0x1b33')],{'id':_0x4a216a[_0x48ab26('0xeb5')]});_0x100234&&(_0x100234['lastMessageAt']=_0x4a216a[_0x48ab26('0x23ae')],_0x100234[_0x48ab26('0x961')]=_0x4a216a);}}function _0x2211f7(_0x3b8bbd){var _0x445837=_0x484d84;if((_0x3b8bbd[_0x445837('0xeb5')]===_0x1d9074[_0x445837('0x123f')]['id']||_0x3b8bbd[_0x445837('0x1724')]===_0x1d9074[_0x445837('0x123f')]['id'])&&!_0x3b8bbd[_0x445837('0x96d')]){if(_0x1d9074['user']){var _0x1b606d=_0x86640f()[_0x445837('0x1d2e')](_0x1d9074[_0x445837('0x1775')]['messages']['rows'],{'id':_0x3b8bbd['id']});_0x1b606d&&_0x86640f()[_0x445837('0xd0e')](_0x1b606d,_0x3b8bbd);}var _0xb64128=_0x86640f()[_0x445837('0x1d2e')](_0x1d9074[_0x445837('0x188e')][_0x445837('0x1b33')],{'id':_0x1d9074['currentUser']['id']===_0x3b8bbd[_0x445837('0xeb5')]?_0x3b8bbd[_0x445837('0x1724')]:_0x3b8bbd[_0x445837('0xeb5')]});_0xb64128&&_0xb64128[_0x445837('0x961')]&&_0x86640f()['merge'](_0xb64128[_0x445837('0x961')],_0x3b8bbd),_0x3b8bbd[_0x445837('0x1724')]===_0x1d9074[_0x445837('0x123f')]['id']&&(_0x3b8bbd['read']&&_0x1d9074['unreadMessage'][_0x3b8bbd[_0x445837('0xeb5')]]>0x0&&(_0x1d9074[_0x445837('0x3bb')][_0x3b8bbd['FromId']]-=0x1));}}function _0x34687c(_0x2f24bf){var _0x4f0ed6=_0x484d84,_0x25f870=_0x86640f()[_0x4f0ed6('0x1d2e')](_0x1d9074['users'][_0x4f0ed6('0x1b33')],{'id':_0x2f24bf['id']});_0x25f870&&(!_0x86640f()[_0x4f0ed6('0x1c7')](_0x2f24bf[_0x4f0ed6('0x1ecb')])&&_0x25f870[_0x4f0ed6('0x1ecb')]!==_0x2f24bf[_0x4f0ed6('0x1ecb')]&&(_0x25f870['online']=_0x2f24bf['online']),!_0x86640f()[_0x4f0ed6('0x1c7')](_0x2f24bf[_0x4f0ed6('0x268d')])&&_0x25f870[_0x4f0ed6('0x268d')]!==_0x2f24bf[_0x4f0ed6('0x268d')]&&(_0x25f870['allowmessenger']=_0x2f24bf[_0x4f0ed6('0x268d')]));}function _0x3958bf(_0x5c80be){var _0x33aaeb=_0x484d84;if(_0x5c80be){if(!_0x5c80be[_0x33aaeb('0x268d')]&&_0x5c80be[_0x33aaeb('0x25c8')]===_0x33aaeb('0x2402')){_0x40fbfe['warning']({'title':_0xa2a951[_0x33aaeb('0x183e')](_0x33aaeb('0x881')),'msg':_0xa2a951[_0x33aaeb('0x183e')](_0x33aaeb('0x771'))}),_0x1d9074['user']=undefined;return;}_0x1d9074['user']=_0x5c80be,_0x1d9074[_0x33aaeb('0x51e')]='',_0x20acdb[_0x33aaeb('0x8cc')][_0x33aaeb('0x595')]({'sort':_0x33aaeb('0x23ae'),'FromId':_0x1d9074['currentUser']['id']+','+_0x5c80be['id'],'ToId':_0x1d9074[_0x33aaeb('0x123f')]['id']+','+_0x5c80be['id'],'ChatGroupId':_0x33aaeb('0x27a')})[_0x33aaeb('0x1376')]['then'](function(_0x4fef35){var _0x1ecf9f=_0x33aaeb;if(_0x4fef35&&_0x4fef35[_0x1ecf9f('0x1b33')]){_0x1d9074[_0x1ecf9f('0x1775')][_0x1ecf9f('0xd36')]=_0x4fef35;for(var _0x1a333e=0x0;_0x1a333e<_0x1d9074['user'][_0x1ecf9f('0xd36')][_0x1ecf9f('0x1b33')]['length'];_0x1a333e+=0x1){_0x1d9074[_0x1ecf9f('0x1775')]['messages'][_0x1ecf9f('0x1b33')][_0x1a333e]['read']===![]&&_0x1d9074[_0x1ecf9f('0x1775')][_0x1ecf9f('0xd36')][_0x1ecf9f('0x1b33')][_0x1a333e][_0x1ecf9f('0x1724')]===_0x1d9074[_0x1ecf9f('0x123f')]['id']&&_0x20acdb[_0x1ecf9f('0x8cc')][_0x1ecf9f('0x5ef')]({'id':_0x1d9074[_0x1ecf9f('0x1775')][_0x1ecf9f('0xd36')]['rows'][_0x1a333e]['id'],'read':!![]});}}})['finally'](function(){_0x2ea6b4(0x0);});}else _0x1d9074[_0x33aaeb('0x1775')]=undefined;}function _0x4ef54c(){var _0x55631b=_0x484d84;_0x1d9074['disabled']=!![];if(_0x1d9074[_0x55631b('0x51e')]===''){_0x1d9074[_0x55631b('0x30')]=![];return;}var _0x399bbb={'FromId':_0x1d9074[_0x55631b('0x123f')]['id'],'ToId':_0x1d9074['user']['id'],'body':_0x1d9074[_0x55631b('0x51e')],'read':![]};_0x1d9074['replyMessage']='',_0x20acdb[_0x55631b('0x8cc')][_0x55631b('0x186f')](_0x399bbb)[_0x55631b('0x1376')][_0x55631b('0x21ad')](function(_0x3e1fd8){var _0x2c91de=_0x55631b;_0x1d9074[_0x2c91de('0x1775')][_0x2c91de('0xd36')][_0x2c91de('0x1b33')][_0x2c91de('0x206c')](_0x3e1fd8),_0x1d9074[_0x2c91de('0x1775')][_0x2c91de('0x22bc')]=_0x3e1fd8[_0x2c91de('0x23ae')],_0x1d9074['user'][_0x2c91de('0x961')]=_0x3e1fd8,_0x2ea6b4(0x190);})[_0x55631b('0x1c1d')](function(){})[_0x55631b('0x13e')](function(){var _0x3d8dca=_0x55631b;_0x1d9074[_0x3d8dca('0x30')]=![];});}function _0x2ea6b4(_0x50055f){var _0x5c13ee=_0x484d84,_0x1b4a43=angular[_0x5c13ee('0x1676')](_0x5c13ee('0x264e'));_0x2dc9eb(function(){var _0x1a9bdd=_0x5c13ee;_0x1b4a43[_0x1a9bdd('0x446')]({'scrollTop':_0x1b4a43[0x0]['scrollHeight']},_0x50055f);},0x0);}function _0x362aea(_0x11bee4){var _0x2335e9=_0x484d84;return!_0x86640f()['isNil'](_0x11bee4)?_0x11bee4[_0x2335e9('0x16e4')](/[^\w.+#*-]+/g,''):'';}function _0xc36fa7(_0x25f877){var _0x31ed5f=_0x484d84;_0x14afb9[_0x31ed5f('0x149a')](_0x31ed5f('0x37d'),{'target':_0x362aea(_0x25f877)});}function _0x4179ba(_0x585240){var _0x194e92=_0x484d84;return _0x246b0e('http://127.0.0.1:'+(_0x1d9074[_0x194e92('0x1775')]['phoneBarRemoteControlPort']||_0x194e92('0x299'))+_0x194e92('0x2567')+_0x362aea(_0x585240));}function _0x2d1b26(_0x581503){var _0xa53721=_0x484d84;return _0x246b0e(_0xa53721('0x356')+(_0x1d9074[_0xa53721('0x1775')][_0xa53721('0x899')]||_0xa53721('0x299'))+_0xa53721('0xeaa')+_0x362aea(_0x581503));}function _0x246b0e(_0x13a26){var _0x484dd8=_0x484d84;return _0x2312a3[_0x484dd8('0x595')](_0x13a26)[_0x484dd8('0xdb1')](function(){var _0x5b7c04=_0x484dd8;_0x40fbfe[_0x5b7c04('0xdb1')]({'title':_0x5b7c04('0x1d34'),'msg':'Call\x20properly\x20handled!'});})[_0x484dd8('0x2092')](function(){var _0x5854b0=_0x484dd8;_0x40fbfe['error']({'title':_0x5854b0('0x1272'),'msg':_0xa2a951['instant'](_0x5854b0('0x1566'))});});}_0x4df6bc[_0x484d84('0x1723')]('$destroy',function(){var _0x56f9f1=_0x484d84;_0x21aa4e[_0x56f9f1('0x16cc')](_0x56f9f1('0x255c')),_0x21aa4e[_0x56f9f1('0x16cc')](_0x56f9f1('0x2630')),_0x21aa4e[_0x56f9f1('0x16cc')](_0x56f9f1('0x21f4'));});}const _0x2f65ad=_0x1de9fa;_0x975551['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),_0x3877e3('0x1908'),'api','Auth',_0x3877e3('0x89e'),_0x3877e3('0x185f')];function _0x975551(_0x51282f,_0x9da44,_0x50cde5,_0x4cf2cd,_0x493d32,_0x46848c,_0x50650d,_0x35090f,_0x43c9a8){var _0x1cea79=_0x3877e3,_0x501852=this;_0x501852[_0x1cea79('0x1a69')]=[],_0x501852[_0x1cea79('0x4b4')]='QUICKPANEL.EDIT_CHATGROUP',_0x501852[_0x1cea79('0x89e')]=angular[_0x1cea79('0xd75')](_0x35090f),_0x501852['currentUser']=_0x50650d[_0x1cea79('0x15ed')](),_0x501852[_0x1cea79('0x185f')]=_0x43c9a8,_0x501852[_0x1cea79('0x411')]=!![];!_0x501852['group']&&(_0x501852[_0x1cea79('0x89e')]={'write':!![],'members':[]},_0x501852['title']=_0x1cea79('0x2084'));_0x501852[_0x1cea79('0x1b2b')]=_0x2fef51,_0x501852[_0x1cea79('0x167')]=_0x551071,_0x501852[_0x1cea79('0x1dc2')]=_0x1183a3;function _0x7a4a3c(_0x497fda){var _0x3a1d4b=_0x1cea79,_0x1d9123=_0x497fda[_0x3a1d4b('0xac2')]();return function _0xf8a2a9(_0x4f9c8d){var _0x162bcf=_0x3a1d4b,_0x58f70d=_0x4f9c8d[_0x162bcf('0x19fe')][_0x162bcf('0xac2')]();return _0x58f70d[_0x162bcf('0x2004')](_0x1d9123)!=-0x1;};}function _0x1183a3(_0x59778f){var _0x47434a=_0x1cea79;return _0x59778f?_0x501852[_0x47434a('0x185f')][_0x47434a('0x1b33')]['filter'](_0x7a4a3c(_0x59778f)):[];}function _0x2fef51(){var _0xa84a5b=_0x1cea79,_0x37d88f;return _0x501852[_0xa84a5b('0x1a69')]=[],_0x46848c[_0xa84a5b('0x14f9')]['save']({'name':_0x501852[_0xa84a5b('0x89e')][_0xa84a5b('0x19fe')],'write':_0x501852[_0xa84a5b('0x89e')][_0xa84a5b('0x1f2c')]})['$promise'][_0xa84a5b('0x21ad')](function(_0x43919f){var _0x565ae8=_0xa84a5b,_0x4427c9=_0x86640f()[_0x565ae8('0x26c3')](_0x501852[_0x565ae8('0x89e')][_0x565ae8('0x185f')],'id');return _0x4427c9[_0x565ae8('0xd0c')](_0x501852[_0x565ae8('0x123f')]['id']),_0x37d88f=_0x43919f,_0x46848c[_0x565ae8('0x14f9')]['addMembers']({'id':_0x37d88f['id'],'ids':_0x4427c9})[_0x565ae8('0x1376')];})['then'](function(){var _0x11f4a6=_0xa84a5b;_0x493d32[_0x11f4a6('0xdb1')]({'title':_0x11f4a6('0x785'),'msg':_0x37d88f['name']+_0x11f4a6('0x2249')}),_0x551071(_0x37d88f);})[_0xa84a5b('0x1c1d')](function(_0x5e191b){var _0x25d3ca=_0xa84a5b;_0x493d32['error']({'title':_0x5e191b[_0x25d3ca('0x209')]?_0x25d3ca('0x22d')+_0x5e191b[_0x25d3ca('0x209')]+_0x25d3ca('0xa99')+_0x5e191b[_0x25d3ca('0x1808')]:_0x25d3ca('0x332'),'msg':_0x5e191b[_0x25d3ca('0x11c2')]?JSON['stringify'](_0x5e191b[_0x25d3ca('0x11c2')][_0x25d3ca('0x1224')]):_0x5e191b['toString']()});});}function _0x551071(_0x3abe0d){var _0x1beecb=_0x1cea79;_0x4cf2cd[_0x1beecb('0x1c24')](_0x3abe0d);}}const _0x34477f=_0x975551,_0x149e2a=_0x398308['p']+_0x3877e3('0x1c78'),_0xd6a970=_0x398308['p']+'src/js/modules/quick-panel/tabs/groups/info/dialog.html/dialog-[chunkhash].html';_0xb3394[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x243f'),'$timeout',_0x3877e3('0x1850'),'$mdSidenav','$q',_0x3877e3('0x15bc'),_0x3877e3('0xccd'),'socket',_0x3877e3('0x1908')];function _0xb3394(_0x52bb61,_0x1dd208,_0x806858,_0x1f8086,_0x224942,_0x379050,_0x56256e,_0x474a78,_0x8e0537,_0x505b17){var _0x10eb6a=_0x3877e3,_0x37aca0=this;_0x37aca0[_0x10eb6a('0x123f')]=_0x56256e['getCurrentUser'](),_0x37aca0[_0x10eb6a('0x13c8')]={},_0x37aca0[_0x10eb6a('0x504')]={},_0x37aca0[_0x10eb6a('0x24bf')],_0x37aca0['group'],_0x37aca0[_0x10eb6a('0x1d75')]=_0x50adeb,_0x37aca0[_0x10eb6a('0x21e2')]=_0x4da52e,_0x37aca0['addGroup']=_0x3a2fa0,_0x37aca0[_0x10eb6a('0x1091')]=_0x135acb,_0x37aca0[_0x10eb6a('0x1d39')]=_0x454204,_0x37aca0[_0x10eb6a('0x196c')]=_0x6a9a67,_0x37aca0[_0x10eb6a('0x1f90')]=_0x4350f2,_0x37aca0[_0x10eb6a('0x820')]=_0x45e145,_0x8e0537['on']('chatInternalMessage:save',_0x4acceb),_0x8e0537['on'](_0x10eb6a('0x2630'),_0x22a03b),_0x8e0537['on'](_0x10eb6a('0xf63'),_0x258590),_0x224942(_0x10eb6a('0x3e9'))[_0x10eb6a('0x88')](_0x4da52e);function _0x258590(_0x1bd8e4){var _0x3b9beb=_0x10eb6a;_0x37aca0[_0x3b9beb('0x504')][_0x1bd8e4['id']]&&delete _0x37aca0[_0x3b9beb('0x504')][_0x1bd8e4['id']];}function _0x22a03b(_0x3b4a1e){var _0x16f14d=_0x10eb6a;_0x3b4a1e['ToId']==_0x37aca0['currentUser']['id']&&_0x3b4a1e[_0x16f14d('0xeb5')]!==_0x37aca0[_0x16f14d('0x123f')]['id']&&_0x3b4a1e[_0x16f14d('0x96d')]&&_0x3b4a1e[_0x16f14d('0x14ee')]&&(_0x37aca0[_0x16f14d('0x504')][_0x3b4a1e[_0x16f14d('0x96d')]][_0x16f14d('0x13c8')]>0x0&&_0x37aca0[_0x16f14d('0x504')][_0x3b4a1e[_0x16f14d('0x96d')]]['unreadGroupMessages']--,_0x37aca0['group'][_0x16f14d('0xd36')][_0x3b4a1e['id']]&&(_0x37aca0[_0x16f14d('0x89e')][_0x16f14d('0xd36')][_0x3b4a1e['id']][_0x16f14d('0x14ee')]=!![]));}function _0x4acceb(_0x5d8e9c){var _0x2799d4=_0x10eb6a;if(!_0x37aca0[_0x2799d4('0x89e')]&&_0x5d8e9c[_0x2799d4('0x1724')]===_0x37aca0[_0x2799d4('0x123f')]['id']&&_0x5d8e9c[_0x2799d4('0xeb5')]!==_0x37aca0[_0x2799d4('0x123f')]['id']&&!_0x5d8e9c[_0x2799d4('0x14ee')]&&_0x5d8e9c[_0x2799d4('0x96d')]){var _0x810673=_0x37aca0['groups'][_0x5d8e9c[_0x2799d4('0x96d')]];if(_0x810673)!_0x810673['unreadGroupMessages']&&(_0x810673[_0x2799d4('0x13c8')]=0x0),_0x810673[_0x2799d4('0x13c8')]++;else return _0x474a78[_0x2799d4('0x14f9')]['get']({'id':_0x5d8e9c[_0x2799d4('0x96d')]})[_0x2799d4('0x1376')][_0x2799d4('0x21ad')](function(_0x170fb3){var _0x1eaf7d=_0x2799d4;_0x170fb3[_0x1eaf7d('0x13c8')]=0x1,_0x37aca0['groups'][_0x170fb3['id']]=_0x170fb3;});}_0x37aca0['group']&&_0x5d8e9c[_0x2799d4('0x96d')]===_0x37aca0[_0x2799d4('0x89e')]['id']&&_0x5d8e9c[_0x2799d4('0x1724')]===_0x37aca0[_0x2799d4('0x123f')]['id']&&_0x474a78['chatInternalMessage'][_0x2799d4('0x5ef')]({'id':_0x5d8e9c['id'],'read':!![]})['$promise'][_0x2799d4('0x21ad')](function(){_0x7695bd(_0x5d8e9c);});}function _0x50adeb(_0x9ed1ba){var _0x4ba19d=_0x10eb6a;return _0x37aca0[_0x4ba19d('0x2ff')]=_0x9ed1ba,_0x474a78[_0x4ba19d('0x1775')][_0x4ba19d('0x1d82')]({'id':_0x37aca0[_0x4ba19d('0x123f')]['id']})['$promise'][_0x4ba19d('0x21ad')](function(_0x15f3da){var _0xee97c8=_0x4ba19d,_0x3230ba=[];for(var _0x374715=0x0;_0x374715<_0x15f3da[_0xee97c8('0x1b33')][_0xee97c8('0x577')];_0x374715++){_0x15f3da[_0xee97c8('0x1b33')][_0x374715][_0xee97c8('0x13c8')]=0x0,_0x37aca0[_0xee97c8('0x504')][_0x15f3da['rows'][_0x374715]['id']]=_0x15f3da[_0xee97c8('0x1b33')][_0x374715],_0x3230ba[_0xee97c8('0x206c')](_0x474a78[_0xee97c8('0x14f9')][_0xee97c8('0x21a0')]({'id':_0x15f3da[_0xee97c8('0x1b33')][_0x374715]['id']})[_0xee97c8('0x1376')]);}return _0x379050[_0xee97c8('0x1ba7')](_0x3230ba);})[_0x4ba19d('0x21ad')](function(_0x5b7861){var _0x3ff9ef=_0x4ba19d;for(var _0x492ce8=0x0;_0x492ce8<_0x5b7861[_0x3ff9ef('0x577')];_0x492ce8++){_0x37aca0[_0x3ff9ef('0x504')][_0x5b7861[_0x492ce8]['id']][_0x3ff9ef('0x13c8')]+=_0x5b7861[_0x492ce8][_0x3ff9ef('0x205f')];}})[_0x4ba19d('0x1c1d')](function(_0x2863dd){var _0x3d7e54=_0x4ba19d;console[_0x3d7e54('0x2092')](_0x2863dd);});}function _0x454204(){var _0x3a46e5=_0x10eb6a;return _0x86640f()[_0x3a46e5('0x1843')](_0x37aca0[_0x3a46e5('0x504')]);}function _0x6a9a67(_0xc75fe1,_0x2a2f78){var _0x170272=_0x10eb6a;_0x1f8086['show']({'controller':'ShowMessageInfoDialogController','controllerAs':'vm','templateUrl':_0xd6a970,'parent':angular['element'](_0x1dd208[_0x170272('0x2452')]),'targetEvent':_0xc75fe1,'clickOutsideToClose':!![],'locals':{'message':_0x2a2f78},'resolve':{'data':function _0x4ab652(){var _0x11d01b=_0x170272,_0x3736fb={'messages':[]};return _0x474a78[_0x11d01b('0x8cc')][_0x11d01b('0x595')]({'ChatInternalMessageId':_0x2a2f78['id']})[_0x11d01b('0x1376')][_0x11d01b('0x21ad')](function(_0x4c1007){var _0x2fae7a=_0x11d01b,_0x2d7b73=[];_0x3736fb[_0x2fae7a('0xd36')]=_0x4c1007['rows'],_0x3736fb['messages'][_0x2fae7a('0xd0c')](_0x2a2f78);for(var _0x325e6b=0x0;_0x325e6b<_0x3736fb[_0x2fae7a('0xd36')][_0x2fae7a('0x577')];_0x325e6b++){_0x2d7b73['push'](_0x474a78['user'][_0x2fae7a('0x595')]({'id':_0x3736fb['messages'][_0x325e6b][_0x2fae7a('0x1724')],'fields':_0x2fae7a('0x10ee')})['$promise']);}return _0x379050[_0x2fae7a('0x1ba7')](_0x2d7b73);})['then'](function(_0x593735){var _0x517bf1=_0x11d01b;return _0x3736fb[_0x517bf1('0x188e')]=_0x593735,_0x3736fb;})[_0x11d01b('0x1c1d')](function(_0x471dbb){_0x471dbb&&console['error'](_0x471dbb);});}}})['then'](function(){})['catch'](function(_0x5ab287){var _0xf0eeba=_0x170272;_0x5ab287&&console[_0xf0eeba('0x2092')](_0x5ab287['message']);});}function _0x45e145(){var _0x5be331=_0x10eb6a;if(!_0x37aca0[_0x5be331('0x51e')])return;var _0xbdf4a9={'id':_0x37aca0[_0x5be331('0x89e')]['id'],'FromId':_0x37aca0['currentUser']['id'],'ToId':_0x37aca0['currentUser']['id'],'body':_0x37aca0[_0x5be331('0x51e')],'read':!![]},_0x27bd75=[];_0x37aca0[_0x5be331('0x51e')]='',_0x474a78[_0x5be331('0x14f9')]['addMessage'](_0xbdf4a9)['$promise'][_0x5be331('0x21ad')](function(_0x7686b){var _0x259406=_0x5be331;_0xbdf4a9['read']=![],_0xbdf4a9['ChatInternalMessageId']=_0x7686b['id'];for(var _0x2d0ed=0x0;_0x2d0ed<_0x37aca0[_0x259406('0x89e')][_0x259406('0x185f')]['length'];_0x2d0ed++){_0x37aca0[_0x259406('0x89e')][_0x259406('0x185f')][_0x2d0ed]['id']!==_0x37aca0[_0x259406('0x123f')]['id']&&(_0xbdf4a9[_0x259406('0x1724')]=_0x37aca0[_0x259406('0x89e')][_0x259406('0x185f')][_0x2d0ed]['id'],_0x27bd75[_0x259406('0x206c')](_0x474a78[_0x259406('0x14f9')][_0x259406('0x24e6')](angular[_0x259406('0xd75')](_0xbdf4a9))[_0x259406('0x1376')]));}return _0x379050[_0x259406('0x1ba7')](_0x27bd75);})[_0x5be331('0x1c1d')](function(_0x2184be){var _0x1b2541=_0x5be331;console[_0x1b2541('0x6fb')](_0x2184be);});}function _0x7695bd(_0x4077fd){var _0xb88c84=_0x10eb6a;_0x37aca0[_0xb88c84('0x89e')][_0xb88c84('0xd36')][_0x4077fd['id']]=_0x4077fd,_0x9e3737(0x190);}function _0x4da52e(){var _0x18ab79=_0x10eb6a;delete _0x37aca0[_0x18ab79('0x89e')];}function _0x9e3737(_0x11410f){var _0x379263=_0x10eb6a,_0x4c0e32=angular[_0x379263('0x1676')](_0x379263('0x26b8'));_0x806858(function(){var _0x831e37=_0x379263;_0x4c0e32[_0x831e37('0x446')]({'scrollTop':_0x4c0e32[0x0]['scrollHeight']},_0x11410f);},0x0);}function _0x4350f2(_0x5e7b59){var _0xd68b34=_0x10eb6a;_0x37aca0[_0xd68b34('0x89e')]={'id':_0x5e7b59['id'],'write':_0x5e7b59[_0xd68b34('0x1f2c')],'messages':{}},_0x474a78[_0xd68b34('0x14f9')][_0xd68b34('0xad6')]({'id':_0x5e7b59['id'],'fields':_0xd68b34('0x2326')})[_0xd68b34('0x1376')][_0xd68b34('0x21ad')](function(_0x4404bf){var _0x5ecf6a=_0xd68b34;return _0x37aca0[_0x5ecf6a('0x89e')]['membersByKeys']=_0x86640f()[_0x5ecf6a('0xcde')](_0x4404bf[_0x5ecf6a('0x1b33')],'id'),_0x37aca0[_0x5ecf6a('0x89e')][_0x5ecf6a('0x185f')]=_0x86640f()[_0x5ecf6a('0x1eab')](_0x4404bf['rows'],[{'id':_0x37aca0[_0x5ecf6a('0x123f')]['id']}],'id'),_0x37aca0[_0x5ecf6a('0x24bf')]=_0x86640f()[_0x5ecf6a('0x26c3')](_0x37aca0[_0x5ecf6a('0x89e')][_0x5ecf6a('0x185f')],_0x5ecf6a('0x20f5'))['join'](',\x20'),_0x474a78[_0x5ecf6a('0x14f9')]['getMessages']({'id':_0x5e7b59['id'],'nolimit':!![]})[_0x5ecf6a('0x1376')];})['then'](function(_0x601e87){var _0x4768c4=_0xd68b34,_0x2783e8=[],_0x2e9620;for(var _0x1a4208=0x0;_0x1a4208<_0x601e87[_0x4768c4('0x205f')];_0x1a4208++){_0x601e87[_0x4768c4('0x1b33')][_0x1a4208][_0x4768c4('0x1724')]===_0x37aca0[_0x4768c4('0x123f')]['id']&&(_0x2e9620=_0x601e87[_0x4768c4('0x1b33')][_0x1a4208],_0x37aca0[_0x4768c4('0x89e')][_0x4768c4('0xd36')][_0x2e9620['id']]=_0x2e9620,_0x601e87[_0x4768c4('0x1b33')][_0x1a4208][_0x4768c4('0x1724')]==_0x37aca0['currentUser']['id']&&_0x601e87[_0x4768c4('0x1b33')][_0x1a4208][_0x4768c4('0xeb5')]!==_0x37aca0['currentUser']['id']&&!_0x2e9620[_0x4768c4('0x14ee')]&&_0x2783e8[_0x4768c4('0x206c')](_0x474a78[_0x4768c4('0x8cc')][_0x4768c4('0x5ef')]({'id':_0x2e9620['id'],'read':!![]})));}return _0x379050[_0x4768c4('0x1ba7')](_0x2783e8);})[_0xd68b34('0x21ad')](function(){_0x9e3737(0x190);})[_0xd68b34('0x1c1d')](function(_0x2d1b23){var _0xbd626e=_0xd68b34;console['error'](_0x2d1b23[_0xbd626e('0x1224')]);});}function _0x135acb(_0x40a9ec,_0x302a21){var _0x1ea659=_0x10eb6a,_0x26fc24=_0x1f8086[_0x1ea659('0xa33')]()[_0x1ea659('0x4b4')](_0x1ea659('0xc3d'))[_0x1ea659('0x276b')](_0x1ea659('0x187c')+_0x40a9ec[_0x1ea659('0x19fe')]+''+_0x1ea659('0x25e0'))[_0x1ea659('0x7a7')](_0x1ea659('0x6d6'))[_0x1ea659('0x1e6d')](_0x302a21)['ok']('OK')['cancel'](_0x1ea659('0x284b'));_0x1f8086[_0x1ea659('0x853')](_0x26fc24)[_0x1ea659('0x21ad')](function(){var _0x32a82e=_0x1ea659;return _0x474a78['chatGroup']['delete']({'id':_0x40a9ec['id']})[_0x32a82e('0x1376')];})[_0x1ea659('0x21ad')](function(){var _0x584e34=_0x1ea659;delete _0x37aca0[_0x584e34('0x504')][_0x40a9ec['id']],_0x505b17[_0x584e34('0xdb1')]({'title':_0x584e34('0x1d14'),'msg':_0x40a9ec[_0x584e34('0x19fe')]+_0x584e34('0xb4a')});})['catch'](function(_0x2a5772){var _0x42c232=_0x1ea659;_0x2a5772&&_0x505b17['error']({'title':_0x2a5772['status']?_0x42c232('0x22d')+_0x2a5772[_0x42c232('0x209')]+_0x42c232('0xa99')+_0x2a5772[_0x42c232('0x1808')]:_0x42c232('0x111b'),'msg':_0x2a5772[_0x42c232('0x11c2')]?JSON[_0x42c232('0x25e')](_0x2a5772['data']['message']):_0x2a5772[_0x42c232('0x174f')]()});});}function _0x3a2fa0(_0x2304eb,_0x26218b){var _0x239b56=_0x10eb6a;_0x1f8086[_0x239b56('0x853')]({'controller':_0x239b56('0x378'),'controllerAs':'vm','templateUrl':_0x149e2a,'parent':angular[_0x239b56('0x1676')](_0x1dd208[_0x239b56('0x2452')]),'targetEvent':_0x26218b,'clickOutsideToClose':!![],'locals':{'group':_0x2304eb,'me':_0x37aca0[_0x239b56('0x123f')],'license':null,'setting':null},'resolve':{'members':function _0x4ed731(){var _0x1c5e19=_0x239b56;return _0x56256e['hasRole'](_0x1c5e19('0x1bd8'))?_0x474a78[_0x1c5e19('0x1775')]['get']({'role':_0x1c5e19('0x2402')})[_0x1c5e19('0x1376')]:_0x474a78[_0x1c5e19('0x758')][_0x1c5e19('0x321')]({'id':_0x56256e[_0x1c5e19('0x15ed')]()[_0x1c5e19('0x1618')],'section':'Agents','role':_0x1c5e19('0x2402')})[_0x1c5e19('0x1376')];}}})[_0x239b56('0x21ad')](function(_0x143da5){var _0x20cada=_0x239b56;_0x143da5&&(_0x37aca0[_0x20cada('0x504')][_0x143da5['id']]=_0x143da5);})[_0x239b56('0x1c1d')](function(_0x2caffb){var _0x1aaefc=_0x239b56;_0x2caffb&&console[_0x1aaefc('0x2092')](_0x2caffb[_0x1aaefc('0x1224')]);});}_0x52bb61[_0x10eb6a('0x1723')](_0x10eb6a('0x1210'),function(){var _0x5bf7fe=_0x10eb6a;_0x8e0537[_0x5bf7fe('0x16cc')]('chatInternalMessage:save'),_0x8e0537['removeAllListeners'](_0x5bf7fe('0x2630')),_0x8e0537['removeAllListeners'](_0x5bf7fe('0xf63'));});}const _0x55a364=_0xb3394;_0x5973cf[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$location',_0x3877e3('0x1850'),_0x3877e3('0x1908'),_0x3877e3('0xccd'),'Auth',_0x3877e3('0x11c2')];function _0x5973cf(_0x50c476,_0x191b46,_0x56689b,_0xa5c2c,_0x56025a,_0x108910,_0x25b2d5,_0x15e5c8){var _0x6acf59=_0x3877e3,_0x25539a=this;_0x25539a[_0x6acf59('0x11c2')]=_0x15e5c8,_0x25539a[_0x6acf59('0x4b4')]=_0x6acf59('0xd1c');function _0x2ef015(){var _0x366629=_0x6acf59;_0xa5c2c[_0x366629('0x1c24')]();}_0x25539a[_0x6acf59('0x167')]=_0x2ef015;}const _0xb6750b=_0x5973cf;_0x3b2206[_0x3877e3('0x1a81')]=[_0x3877e3('0x972')];function _0x3b2206(_0x21bd42){var _0x4e3f2d=_0x3877e3;_0x21bd42[_0x4e3f2d('0x20ab')](_0x4e3f2d('0xe72'));}angular[_0x3877e3('0x20d5')](_0x3877e3('0x2556'),[])[_0x3877e3('0x13')](_0x3b2206)['controller'](_0x3877e3('0x2310'),_0xb45f53)[_0x3877e3('0x1d5a')](_0x3877e3('0xf0b'),_0x2f65ad)[_0x3877e3('0x1d5a')](_0x3877e3('0x378'),_0x34477f)['controller'](_0x3877e3('0x2130'),_0x55a364)[_0x3877e3('0x1d5a')](_0x3877e3('0x2792'),_0xb6750b),_0x423ec2[_0x3877e3('0x1a81')]=[_0x3877e3('0x15bc'),_0x3877e3('0x26')];function _0x423ec2(_0xd298e,_0x167722){var _0x97950f=_0x3877e3,_0x3adf07=this;function _0x28484a(){var _0x45adc1=a0_0x2e7f;_0x167722[_0x45adc1('0x8c4')](_0x45adc1('0x175b')+_0x3adf07[_0x45adc1('0x123f')]['id'],!![]);}_0x3adf07['currentUser']=_0xd298e[_0x97950f('0x15ed')](),_0x3adf07[_0x97950f('0x1666')]=_0x167722[_0x97950f('0x595')](_0x97950f('0x175b')+_0x3adf07[_0x97950f('0x123f')]['id'])||![],_0x3adf07['newsAlertOnClose']=_0x28484a;}const _0x54b4b4=_0x423ec2;_0x8ee754[_0x3877e3('0x1a81')]=[_0x3877e3('0x972')];function _0x8ee754(_0x370063){var _0x4aa246=_0x3877e3;_0x370063[_0x4aa246('0x20ab')](_0x4aa246('0x1c2f'));}angular[_0x3877e3('0x20d5')](_0x3877e3('0xfee'),[])[_0x3877e3('0x13')](_0x8ee754)['controller']('HeaderController',_0x54b4b4),_0x3e41b9[_0x3877e3('0x1a81')]=[_0x3877e3('0x15bc'),'$cookies'];function _0x3e41b9(_0x45a268,_0x5e6948){var _0x803498=_0x3877e3,_0x5fc25f=this;function _0x805bca(){var _0x44986d=a0_0x2e7f;_0x5e6948[_0x44986d('0x8c4')](_0x44986d('0x1e27')+_0x5fc25f[_0x44986d('0x123f')]['id'],!![]);}_0x5fc25f['currentUser']=_0x45a268[_0x803498('0x15ed')](),_0x5fc25f[_0x803498('0x27e7')]=_0x5e6948[_0x803498('0x595')](_0x803498('0x1e27')+_0x5fc25f[_0x803498('0x123f')]['id'])||![],_0x5fc25f['cookieAlertOnClose']=_0x805bca;}const _0x5bef48=_0x3e41b9;_0x33d48f[_0x3877e3('0x1a81')]=['$translatePartialLoaderProvider'];function _0x33d48f(_0x361b26){_0x361b26['addPart']('app/footer');}angular[_0x3877e3('0x20d5')](_0x3877e3('0x1155'),[])[_0x3877e3('0x13')](_0x33d48f)[_0x3877e3('0x1d5a')](_0x3877e3('0x18bf'),_0x5bef48);var _0x25638b=_0x398308(0x1cbe),_0x16da28=_0x398308(0x2303),_0x1c82cc=_0x398308(0xde6),_0x2ca5ae=_0x398308(0x321),_0x4f8dca=_0x398308(0x1c92),_0x267c85=_0x398308(0x2361),_0x771153=_0x398308(0xdd5),_0x1b6de3=_0x398308(0x9d6),_0x29a0a1=_0x398308(0x20aa),_0x296c72=_0x398308(0x1ac1),_0x48192b=_0x398308(0x15c3),_0x44f27b=_0x398308(0x154a),_0x597b89=_0x398308(0x2154),_0x4430b6=_0x398308(0x23a1),_0x1b2506=_0x398308(0xa7c),_0x24cee2=_0x398308(0x1eaf),_0x27d41f=_0x398308(0x444),_0x17e5e2=_0x398308(0x1c4),_0x166ced=_0x398308(0x121a),_0x26ac2b=_0x398308(0x1be),_0x225a3e=_0x398308(0xd3e);const _0x7d1d80=_0x398308['p']+_0x3877e3('0xfd'),_0x5e82b3=_0x398308['p']+_0x3877e3('0xa5'),_0x3c3005=_0x398308['p']+_0x3877e3('0x276a'),_0x38b53e=_0x398308['p']+_0x3877e3('0x54e'),_0x363a8e=_0x398308['p']+_0x3877e3('0x2129'),_0x3f5414=_0x398308['p']+_0x3877e3('0x642'),_0x1dd2c1=_0x398308['p']+_0x3877e3('0x123b'),_0x1bc028=_0x398308['p']+_0x3877e3('0x1801');_0x978117[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x25d8'),'chatInteractions',_0x3877e3('0x2d9')];function _0x978117(_0x582618,_0x26c293,_0x4693a8,_0x1f1933){var _0x48af92=_0x3877e3,_0x1562e9=this,_0xa7929b=[];_0x1562e9['config']={'format':_0x48af92('0x436'),'unit':_0x48af92('0x22ac'),'trim':![]},_0x1562e9[_0x48af92('0x923')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':'00:00:00','avgTalkTime':_0x48af92('0x385'),'answerRate':0x0,'abandonRate':0x0},_0x1562e9[_0x48af92('0x2d9')]=_0x1f1933?_0x86640f()[_0x48af92('0xcde')](_0x1f1933[_0x48af92('0x1b33')]?_0x1f1933['rows']:[],'id'):{},_0x1562e9['onSaveChatInteraction']=_0x425d7b,_0x1562e9[_0x48af92('0x18cb')]=_0x2d93bd,_0x26c293['on'](_0x48af92('0x1d7f'),_0x1562e9[_0x48af92('0x2696')]),_0x26c293['on'](_0x48af92('0x666'),_0x1562e9[_0x48af92('0x18cb')]),_0xd4aec3();function _0x456ce5(_0x42200e,_0x38e03a){var _0x1ab98e=_0x48af92;!_0x42200e[_0x1ab98e('0x14ba')]&&!_0x42200e[_0x1ab98e('0x1dc6')]&&_0x38e03a&&(_0x1562e9['inbound'][_0x1ab98e('0x8b6')]+=0x1);!_0x42200e[_0x1ab98e('0x14ba')]&&_0x42200e[_0x1ab98e('0x1dc6')]&&!_0x86640f()[_0x1ab98e('0xb34')](_0xa7929b,_0x42200e['id'])&&(_0x1562e9[_0x1ab98e('0x923')]['talking']+=0x1,_0xa7929b[_0x1ab98e('0x206c')](_0x42200e['id']),!_0x38e03a&&_0x1562e9['inbound'][_0x1ab98e('0x8b6')]&&(_0x1562e9[_0x1ab98e('0x923')][_0x1ab98e('0x8b6')]-=0x1));if(_0x42200e[_0x1ab98e('0x14ba')]&&_0x42200e['disposition']===_0x1ab98e('0x1f4'))_0x1562e9['inbound'][_0x1ab98e('0x1f4')]+=0x1,!_0x38e03a&&_0x1562e9['inbound']['waiting']&&(_0x1562e9[_0x1ab98e('0x923')]['waiting']-=0x1);else{if(_0x42200e[_0x1ab98e('0x14ba')]&&!_0x42200e[_0x1ab98e('0x1dc6')]&&_0x42200e[_0x1ab98e('0x22c8')])_0x1562e9[_0x1ab98e('0x923')][_0x1ab98e('0x1f7e')]+=0x1,!_0x38e03a&&_0x1562e9['inbound'][_0x1ab98e('0x8b6')]&&(_0x1562e9['inbound'][_0x1ab98e('0x8b6')]-=0x1);else _0x42200e[_0x1ab98e('0x14ba')]&&_0x42200e[_0x1ab98e('0x1dc6')]&&(_0x1562e9[_0x1ab98e('0x923')][_0x1ab98e('0x27f1')]+=_0x1088bc()(_0x42200e[_0x1ab98e('0x1cf1')])[_0x1ab98e('0x2503')](_0x1088bc()(_0x42200e[_0x1ab98e('0x268a')]),_0x1562e9[_0x1ab98e('0x13')][_0x1ab98e('0xb9a')]),_0x1562e9['inbound'][_0x1ab98e('0x1ece')]+=_0x1088bc()(_0x42200e['read1stAt'])['diff'](_0x1088bc()(_0x42200e[_0x1ab98e('0x23ae')]),_0x1562e9[_0x1ab98e('0x13')][_0x1ab98e('0xb9a')]),_0x1562e9[_0x1ab98e('0x923')][_0x1ab98e('0x24c7')]+=0x1,!_0x38e03a&&_0x1562e9[_0x1ab98e('0x923')]['talking']&&(_0x1562e9['inbound'][_0x1ab98e('0x4f6')]-=0x1));}_0x38e03a&&(_0x1562e9[_0x1ab98e('0x923')][_0x1ab98e('0x16f0')]+=0x1);}function _0x35ccea(){var _0x224bbe=_0x48af92;_0x1562e9[_0x224bbe('0x923')]['abandonRate']=Math[_0x224bbe('0x1682')]((_0x1562e9['inbound'][_0x224bbe('0x1f4')]+_0x1562e9[_0x224bbe('0x923')]['unmanaged'])/(_0x1562e9[_0x224bbe('0x923')][_0x224bbe('0x16f0')]-_0x1562e9[_0x224bbe('0x923')][_0x224bbe('0x4f6')]-_0x1562e9['inbound'][_0x224bbe('0x8b6')])*0x64,-0x2),_0x1562e9[_0x224bbe('0x923')][_0x224bbe('0x21bb')]=Math[_0x224bbe('0x1682')](_0x1562e9[_0x224bbe('0x923')]['answered']/(_0x1562e9[_0x224bbe('0x923')][_0x224bbe('0x16f0')]-_0x1562e9[_0x224bbe('0x923')][_0x224bbe('0x4f6')]-_0x1562e9[_0x224bbe('0x923')][_0x224bbe('0x8b6')])*0x64,-0x2),_0x1562e9[_0x224bbe('0x923')][_0x224bbe('0xb94')]=_0x1088bc()[_0x224bbe('0x79e')](Math['round'](_0x1562e9['inbound'][_0x224bbe('0x1ece')]/_0x1562e9['inbound'][_0x224bbe('0x24c7')]),_0x1562e9[_0x224bbe('0x13')][_0x224bbe('0xb9a')])['format'](_0x1562e9[_0x224bbe('0x13')][_0x224bbe('0x153')],_0x1562e9[_0x224bbe('0x13')]),_0x1562e9[_0x224bbe('0x923')][_0x224bbe('0x19be')]=_0x1088bc()[_0x224bbe('0x79e')](Math[_0x224bbe('0x1682')](_0x1562e9[_0x224bbe('0x923')][_0x224bbe('0x27f1')]/_0x1562e9[_0x224bbe('0x923')][_0x224bbe('0x24c7')]),_0x1562e9[_0x224bbe('0x13')][_0x224bbe('0xb9a')])[_0x224bbe('0x153')](_0x1562e9[_0x224bbe('0x13')][_0x224bbe('0x153')],_0x1562e9[_0x224bbe('0x13')]);}function _0xd4aec3(){var _0x141c0b=_0x48af92;if(Object[_0x141c0b('0x223b')](_0x1562e9[_0x141c0b('0x2d9')])['length']>0x0)for(var _0x2d4d2b=0x0;_0x2d4d2b<_0x4693a8[_0x141c0b('0x1b33')][_0x141c0b('0x577')];_0x2d4d2b+=0x1){if(_0x390ebe(_0x4693a8[_0x141c0b('0x1b33')][_0x2d4d2b])){var _0x3543ac=_0x4693a8[_0x141c0b('0x1b33')][_0x2d4d2b];_0x456ce5(_0x3543ac,!![]),_0x35ccea();}}}function _0x390ebe(_0x21f730){var _0x350d9b=_0x48af92;if(_0x86640f()[_0x350d9b('0x2664')](_0x1562e9['chatWebsites'],{'id':_0x86640f()[_0x350d9b('0x1662')](_0x21f730[_0x350d9b('0x15f9')])}))return!![];return![];}function _0x3a23b2(_0x48c24a){var _0x8490e9=_0x48af92,_0x47db92=_0x1088bc()()[_0x8490e9('0x215e')](0x0,!![])[_0x8490e9('0x1982')]('day'),_0x46075a=_0x1088bc()()[_0x8490e9('0x215e')](0x0,!![])[_0x8490e9('0x117b')](_0x8490e9('0x1837'));return _0x1088bc()(_0x48c24a)[_0x8490e9('0x215e')](0x0,!![])['isBetween'](_0x47db92,_0x46075a);}function _0x425d7b(_0x265a37){var _0x2590bc=_0x48af92;_0x390ebe(_0x265a37)&&_0x3a23b2(_0x265a37[_0x2590bc('0x23ae')])&&(_0x456ce5(_0x265a37,!![]),_0x35ccea());}function _0x2d93bd(_0x4642f8){var _0x4a79aa=_0x48af92;_0x390ebe(_0x4642f8)&&_0x3a23b2(_0x4642f8[_0x4a79aa('0x23ae')])&&(_0x456ce5(_0x4642f8,![]),_0x35ccea());}_0x582618['$on'](_0x48af92('0x1210'),function(){var _0x3dd48c=_0x48af92;_0x26c293[_0x3dd48c('0x16cc')](_0x3dd48c('0x1d7f')),_0x26c293[_0x3dd48c('0x16cc')](_0x3dd48c('0x666'));});}const _0x66afe2=_0x978117;_0x43d625[_0x3877e3('0x1a81')]=['$scope','$interval',_0x3877e3('0x25d8'),_0x3877e3('0xbd0'),'rpcQueues',_0x3877e3('0x1f08'),_0x3877e3('0xfa1'),_0x3877e3('0xfc0')];function _0x43d625(_0xd8acaa,_0xb752e1,_0x4dddbe,_0x239ab0,_0x4a3d73,_0x230957,_0x2ba8ee,_0x408ff5){var _0xaaeefc=_0x3877e3,_0x5bfc82=this;_0x5bfc82[_0xaaeefc('0xbd0')]=_0x239ab0?_0x86640f()[_0xaaeefc('0xcde')](_0x239ab0[_0xaaeefc('0x1b33')]?_0x239ab0[_0xaaeefc('0x1b33')]:[],'id'):{},_0x5bfc82[_0xaaeefc('0x245')]=_0x4a3d73?_0x86640f()['keyBy'](_0x4a3d73[_0xaaeefc('0x1b33')]?_0x4a3d73[_0xaaeefc('0x1b33')]:[],'id'):{},_0x5bfc82[_0xaaeefc('0xfc0')]=_0x408ff5?_0x86640f()[_0xaaeefc('0xcde')](_0x408ff5[_0xaaeefc('0x1b33')]?_0x408ff5[_0xaaeefc('0x1b33')]:[],'id'):{},_0x5bfc82[_0xaaeefc('0x9d8')]={'originated':0x0,'limitCalls':0x0},_0x5bfc82['inbound']={'waiting':0x0,'talking':0x0,'pTalking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0xaaeefc('0x385'),'avgTalkTime':_0xaaeefc('0x385'),'answerRate':0x0,'abandonRate':0x0,'outboundDropCallsDayCallersExit':0x0,'outboundDropCallsDayTimeout':0x0},_0x5bfc82[_0xaaeefc('0xe02')]=_0x4de132,_0x5bfc82[_0xaaeefc('0x1221')]=_0x409846,_0x4dddbe['onWithoutApply'](_0xaaeefc('0x83e'),_0x5bfc82[_0xaaeefc('0xe02')]),_0x5bfc82['interval']=_0xb752e1(function(){_0xc4b83c(),_0x4e8cd9();},0x3e7),_0x4dddbe[_0xaaeefc('0x1487')](_0xaaeefc('0x417'),_0x5bfc82[_0xaaeefc('0x1221')]),_0xc4b83c(),_0x4e8cd9();function _0xc4b83c(){var _0x3a5736=_0xaaeefc;_0x230957({'queues':_0x5bfc82[_0x3a5736('0xbd0')],'rpcQueues':_0x5bfc82[_0x3a5736('0x245')]})[_0x3a5736('0x21ad')](function(_0x48c3e1){var _0x1d4f86=_0x3a5736;_0x5bfc82[_0x1d4f86('0x923')]=_0x48c3e1;});}function _0x4e8cd9(){var _0x54c58f=_0xaaeefc;_0x2ba8ee({'rpcCampaigns':_0x5bfc82[_0x54c58f('0xfc0')]})[_0x54c58f('0x21ad')](function(_0x556b7f){_0x5bfc82['ivr']=_0x556b7f;});}function _0x4de132(_0x29e41d){var _0x30e0a1=_0xaaeefc;_0x5bfc82[_0x30e0a1('0xbd0')][_0x29e41d['id']]&&(_0x5bfc82[_0x30e0a1('0x245')][_0x29e41d['id']]&&(_0x5bfc82[_0x30e0a1('0x245')][_0x29e41d['id']]=_0x29e41d));}function _0x409846(_0x4f98ba){var _0x445537=_0xaaeefc;_0x5bfc82[_0x445537('0xfc0')][_0x4f98ba['id']]&&(_0x5bfc82['rpcCampaigns'][_0x4f98ba['id']]=_0x4f98ba);}_0xd8acaa[_0xaaeefc('0x1723')](_0xaaeefc('0x1210'),function(){var _0x3ab23a=_0xaaeefc;_0x4dddbe[_0x3ab23a('0x16cc')](_0x3ab23a('0x83e')),_0x4dddbe['removeAllListeners'](_0x3ab23a('0x417')),_0x5bfc82[_0x3ab23a('0xa07')]&&_0xb752e1['cancel'](_0x5bfc82[_0x3ab23a('0xa07')]);});}const _0x2d4fab=_0x43d625;_0x564c72['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0x25d8'),_0x3877e3('0x702'),_0x3877e3('0x1695')];function _0x564c72(_0x3587cf,_0x2f0fe3,_0x4088f9,_0x2497f8){var _0x4da364=_0x3877e3,_0x13d4e4=this,_0x11e730=[];_0x13d4e4[_0x4da364('0x13')]={'format':_0x4da364('0x436'),'unit':_0x4da364('0x22ac'),'trim':![]},_0x13d4e4[_0x4da364('0x923')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x4da364('0x385'),'avgTalkTime':_0x4da364('0x385'),'answerRate':0x0,'abandonRate':0x0},_0x13d4e4[_0x4da364('0x1695')]=_0x2497f8?_0x86640f()['keyBy'](_0x2497f8[_0x4da364('0x1b33')]?_0x2497f8[_0x4da364('0x1b33')]:[],'id'):{},_0x13d4e4[_0x4da364('0x23fa')]=_0x156178,_0x13d4e4[_0x4da364('0x17f1')]=_0xd4b770,_0x2f0fe3['on'](_0x4da364('0x20d6'),_0x13d4e4[_0x4da364('0x23fa')]),_0x2f0fe3['on'](_0x4da364('0x1fe4'),_0x13d4e4[_0x4da364('0x17f1')]),_0x3761e8();function _0x24cf74(_0x257be2,_0x553e3f){var _0xbf2757=_0x4da364;!_0x257be2['closed']&&!_0x257be2[_0xbf2757('0x1dc6')]&&_0x553e3f&&(_0x13d4e4[_0xbf2757('0x923')][_0xbf2757('0x8b6')]+=0x1),!_0x257be2['closed']&&_0x257be2[_0xbf2757('0x1dc6')]&&!_0x86640f()[_0xbf2757('0xb34')](_0x11e730,_0x257be2['id'])&&(_0x13d4e4[_0xbf2757('0x923')][_0xbf2757('0x4f6')]+=0x1,_0x11e730[_0xbf2757('0x206c')](_0x257be2['id']),!_0x553e3f&&_0x13d4e4[_0xbf2757('0x923')][_0xbf2757('0x8b6')]&&(_0x13d4e4[_0xbf2757('0x923')]['waiting']-=0x1)),_0x257be2[_0xbf2757('0x14ba')]&&_0x257be2[_0xbf2757('0x1dc6')]&&(_0x13d4e4[_0xbf2757('0x923')][_0xbf2757('0x27f1')]+=_0x1088bc()(_0x257be2[_0xbf2757('0x1cf1')])['diff'](_0x1088bc()(_0x257be2['read1stAt']),_0x13d4e4[_0xbf2757('0x13')][_0xbf2757('0xb9a')]),_0x13d4e4['inbound'][_0xbf2757('0x1ece')]+=_0x1088bc()(_0x257be2[_0xbf2757('0x268a')])['diff'](_0x1088bc()(_0x257be2['createdAt']),_0x13d4e4['config'][_0xbf2757('0xb9a')]),_0x13d4e4[_0xbf2757('0x923')][_0xbf2757('0x24c7')]+=0x1,!_0x553e3f&&_0x13d4e4['inbound'][_0xbf2757('0x4f6')]&&(_0x13d4e4[_0xbf2757('0x923')][_0xbf2757('0x4f6')]-=0x1)),_0x257be2['closed']&&!_0x257be2[_0xbf2757('0x1dc6')]&&(_0x13d4e4['inbound']['unmanaged']+=0x1,!_0x553e3f&&_0x13d4e4[_0xbf2757('0x923')]['waiting']&&(_0x13d4e4[_0xbf2757('0x923')][_0xbf2757('0x8b6')]-=0x1)),_0x553e3f&&(_0x13d4e4['inbound'][_0xbf2757('0x16f0')]+=0x1);}function _0x154b72(){var _0x6d6991=_0x4da364;_0x13d4e4[_0x6d6991('0x923')]['abandonRate']=Math[_0x6d6991('0x1682')]((_0x13d4e4[_0x6d6991('0x923')][_0x6d6991('0x1f4')]+_0x13d4e4[_0x6d6991('0x923')][_0x6d6991('0x1f7e')])/(_0x13d4e4[_0x6d6991('0x923')][_0x6d6991('0x16f0')]-_0x13d4e4['inbound'][_0x6d6991('0x4f6')]-_0x13d4e4['inbound'][_0x6d6991('0x8b6')])*0x64,-0x2),_0x13d4e4[_0x6d6991('0x923')]['answerRate']=Math['round'](_0x13d4e4['inbound'][_0x6d6991('0x24c7')]/(_0x13d4e4[_0x6d6991('0x923')][_0x6d6991('0x16f0')]-_0x13d4e4[_0x6d6991('0x923')]['talking']-_0x13d4e4[_0x6d6991('0x923')][_0x6d6991('0x8b6')])*0x64,-0x2),_0x13d4e4[_0x6d6991('0x923')][_0x6d6991('0xb94')]=_0x1088bc()[_0x6d6991('0x79e')](Math[_0x6d6991('0x1682')](_0x13d4e4[_0x6d6991('0x923')][_0x6d6991('0x1ece')]/_0x13d4e4[_0x6d6991('0x923')]['answered']),_0x13d4e4['config'][_0x6d6991('0xb9a')])[_0x6d6991('0x153')](_0x13d4e4[_0x6d6991('0x13')][_0x6d6991('0x153')],_0x13d4e4[_0x6d6991('0x13')]),_0x13d4e4[_0x6d6991('0x923')][_0x6d6991('0x19be')]=_0x1088bc()['duration'](Math['round'](_0x13d4e4[_0x6d6991('0x923')]['sumBillable']/_0x13d4e4[_0x6d6991('0x923')]['answered']),_0x13d4e4['config'][_0x6d6991('0xb9a')])[_0x6d6991('0x153')](_0x13d4e4['config'][_0x6d6991('0x153')],_0x13d4e4[_0x6d6991('0x13')]);}function _0x3761e8(){var _0x4f9893=_0x4da364;if(Object[_0x4f9893('0x223b')](_0x13d4e4[_0x4f9893('0x1695')])['length']>0x0)for(var _0x4e3ea3=0x0;_0x4e3ea3<_0x4088f9[_0x4f9893('0x1b33')]['length'];_0x4e3ea3+=0x1){if(_0x356a2c(_0x4088f9[_0x4f9893('0x1b33')][_0x4e3ea3])){var _0x191138=_0x4088f9['rows'][_0x4e3ea3];_0x24cf74(_0x191138,!![]),_0x154b72();}}}function _0x356a2c(_0x4e923f){var _0x49ef84=_0x4da364;if(_0x86640f()[_0x49ef84('0x2664')](_0x13d4e4[_0x49ef84('0x1695')],{'id':_0x86640f()[_0x49ef84('0x1662')](_0x4e923f[_0x49ef84('0x1de9')])}))return!![];return![];}function _0x36355e(_0x43c973){var _0x587533=_0x4da364,_0x44e467=_0x1088bc()()[_0x587533('0x215e')](0x0,!![])[_0x587533('0x1982')](_0x587533('0x1837')),_0x3fdfa7=_0x1088bc()()[_0x587533('0x215e')](0x0,!![])[_0x587533('0x117b')]('day');return _0x1088bc()(_0x43c973)['utcOffset'](0x0,!![])['isBetween'](_0x44e467,_0x3fdfa7);}function _0x156178(_0x31ebde){var _0xb28cb2=_0x4da364;_0x356a2c(_0x31ebde)&&_0x36355e(_0x31ebde[_0xb28cb2('0x23ae')])&&(_0x24cf74(_0x31ebde,!![]),_0x154b72());}function _0xd4b770(_0x3e796c){var _0x57b46b=_0x4da364;_0x356a2c(_0x3e796c)&&_0x36355e(_0x3e796c[_0x57b46b('0x23ae')])&&(_0x24cf74(_0x3e796c,![]),_0x154b72());}_0x3587cf[_0x4da364('0x1723')](_0x4da364('0x1210'),function(){var _0x40e42b=_0x4da364;_0x2f0fe3[_0x40e42b('0x16cc')]('faxInteraction:save'),_0x2f0fe3[_0x40e42b('0x16cc')]('faxInteraction:update');});}const _0x711785=_0x564c72;_0x528889[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0x25d8'),_0x3877e3('0x1709'),'mailAccounts'];function _0x528889(_0x3cac28,_0x334c7a,_0x3d594d,_0x2f7da7){var _0x4b5dfb=_0x3877e3,_0x25ee8e=this,_0x3f1a1e=[];_0x25ee8e['config']={'format':_0x4b5dfb('0x436'),'unit':_0x4b5dfb('0x22ac'),'trim':![]},_0x25ee8e['inbound']={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':'00:00:00','avgTalkTime':'00:00:00','answerRate':0x0,'abandonRate':0x0},_0x25ee8e['mailAccounts']=_0x2f7da7?_0x86640f()[_0x4b5dfb('0xcde')](_0x2f7da7[_0x4b5dfb('0x1b33')]?_0x2f7da7[_0x4b5dfb('0x1b33')]:[],'id'):{},_0x25ee8e['onSaveMailInteraction']=_0x645686,_0x25ee8e[_0x4b5dfb('0x22cd')]=_0xaa211d,_0x334c7a['on'](_0x4b5dfb('0x251c'),_0x25ee8e['onSaveMailInteraction']),_0x334c7a['on']('mailInteraction:update',_0x25ee8e[_0x4b5dfb('0x22cd')]),_0xda4d42();function _0x50033f(_0x738b32,_0x2ac73c){var _0x29d422=_0x4b5dfb;!_0x738b32[_0x29d422('0x14ba')]&&!_0x738b32[_0x29d422('0x1dc6')]&&_0x2ac73c&&(_0x25ee8e['inbound'][_0x29d422('0x8b6')]+=0x1),!_0x738b32[_0x29d422('0x14ba')]&&_0x738b32[_0x29d422('0x1dc6')]&&!_0x86640f()[_0x29d422('0xb34')](_0x3f1a1e,_0x738b32['id'])&&(_0x25ee8e[_0x29d422('0x923')][_0x29d422('0x4f6')]+=0x1,_0x3f1a1e[_0x29d422('0x206c')](_0x738b32['id']),!_0x2ac73c&&_0x25ee8e['inbound'][_0x29d422('0x8b6')]&&(_0x25ee8e[_0x29d422('0x923')][_0x29d422('0x8b6')]-=0x1)),_0x738b32[_0x29d422('0x14ba')]&&_0x738b32[_0x29d422('0x1dc6')]&&(_0x25ee8e['inbound'][_0x29d422('0x27f1')]+=_0x1088bc()(_0x738b32[_0x29d422('0x1cf1')])[_0x29d422('0x2503')](_0x1088bc()(_0x738b32['read1stAt']),_0x25ee8e[_0x29d422('0x13')][_0x29d422('0xb9a')]),_0x25ee8e[_0x29d422('0x923')][_0x29d422('0x1ece')]+=_0x1088bc()(_0x738b32[_0x29d422('0x268a')])[_0x29d422('0x2503')](_0x1088bc()(_0x738b32[_0x29d422('0x23ae')]),_0x25ee8e[_0x29d422('0x13')][_0x29d422('0xb9a')]),_0x25ee8e[_0x29d422('0x923')][_0x29d422('0x24c7')]+=0x1,!_0x2ac73c&&_0x25ee8e[_0x29d422('0x923')][_0x29d422('0x4f6')]&&(_0x25ee8e[_0x29d422('0x923')][_0x29d422('0x4f6')]-=0x1)),_0x738b32[_0x29d422('0x14ba')]&&!_0x738b32[_0x29d422('0x1dc6')]&&(_0x25ee8e[_0x29d422('0x923')]['unmanaged']+=0x1,!_0x2ac73c&&_0x25ee8e[_0x29d422('0x923')][_0x29d422('0x8b6')]&&(_0x25ee8e[_0x29d422('0x923')][_0x29d422('0x8b6')]-=0x1)),_0x2ac73c&&(_0x25ee8e[_0x29d422('0x923')][_0x29d422('0x16f0')]+=0x1);}function _0x5b3564(){var _0x55c4bc=_0x4b5dfb;_0x25ee8e[_0x55c4bc('0x923')][_0x55c4bc('0x1dfe')]=Math[_0x55c4bc('0x1682')]((_0x25ee8e['inbound'][_0x55c4bc('0x1f4')]+_0x25ee8e['inbound']['unmanaged'])/(_0x25ee8e[_0x55c4bc('0x923')][_0x55c4bc('0x16f0')]-_0x25ee8e[_0x55c4bc('0x923')][_0x55c4bc('0x4f6')]-_0x25ee8e['inbound'][_0x55c4bc('0x8b6')])*0x64,-0x2),_0x25ee8e[_0x55c4bc('0x923')][_0x55c4bc('0x21bb')]=Math['round'](_0x25ee8e[_0x55c4bc('0x923')][_0x55c4bc('0x24c7')]/(_0x25ee8e[_0x55c4bc('0x923')][_0x55c4bc('0x16f0')]-_0x25ee8e[_0x55c4bc('0x923')][_0x55c4bc('0x4f6')]-_0x25ee8e[_0x55c4bc('0x923')][_0x55c4bc('0x8b6')])*0x64,-0x2),_0x25ee8e[_0x55c4bc('0x923')]['avgHoldTime']=_0x1088bc()[_0x55c4bc('0x79e')](Math[_0x55c4bc('0x1682')](_0x25ee8e[_0x55c4bc('0x923')][_0x55c4bc('0x1ece')]/_0x25ee8e[_0x55c4bc('0x923')][_0x55c4bc('0x24c7')]),_0x25ee8e[_0x55c4bc('0x13')][_0x55c4bc('0xb9a')])[_0x55c4bc('0x153')](_0x25ee8e[_0x55c4bc('0x13')][_0x55c4bc('0x153')],_0x25ee8e['config']),_0x25ee8e['inbound'][_0x55c4bc('0x19be')]=_0x1088bc()[_0x55c4bc('0x79e')](Math[_0x55c4bc('0x1682')](_0x25ee8e[_0x55c4bc('0x923')][_0x55c4bc('0x27f1')]/_0x25ee8e[_0x55c4bc('0x923')][_0x55c4bc('0x24c7')]),_0x25ee8e[_0x55c4bc('0x13')][_0x55c4bc('0xb9a')])[_0x55c4bc('0x153')](_0x25ee8e['config'][_0x55c4bc('0x153')],_0x25ee8e[_0x55c4bc('0x13')]);}function _0xda4d42(){var _0x160a77=_0x4b5dfb;if(Object[_0x160a77('0x223b')](_0x25ee8e['mailAccounts'])[_0x160a77('0x577')]>0x0)for(var _0x2c3437=0x0;_0x2c3437<_0x3d594d['rows'][_0x160a77('0x577')];_0x2c3437+=0x1){if(_0x4ca5db(_0x3d594d[_0x160a77('0x1b33')][_0x2c3437])){var _0x112a7f=_0x3d594d[_0x160a77('0x1b33')][_0x2c3437];_0x50033f(_0x112a7f,!![]),_0x5b3564();}}}function _0x4ca5db(_0x54a440){var _0x58c0c5=_0x4b5dfb;if(_0x86640f()[_0x58c0c5('0x2664')](_0x25ee8e[_0x58c0c5('0x21ab')],{'id':_0x86640f()[_0x58c0c5('0x1662')](_0x54a440[_0x58c0c5('0x723')])}))return!![];return![];}function _0x4fff6e(_0x99c411){var _0x2ef1f5=_0x4b5dfb,_0x203fee=_0x1088bc()()[_0x2ef1f5('0x215e')](0x0,!![])['startOf'](_0x2ef1f5('0x1837')),_0xfeb900=_0x1088bc()()[_0x2ef1f5('0x215e')](0x0,!![])[_0x2ef1f5('0x117b')](_0x2ef1f5('0x1837'));return _0x1088bc()(_0x99c411)['utcOffset'](0x0,!![])[_0x2ef1f5('0x26cc')](_0x203fee,_0xfeb900);}function _0x645686(_0x13cf2a){var _0x1098c2=_0x4b5dfb;_0x4ca5db(_0x13cf2a)&&_0x4fff6e(_0x13cf2a[_0x1098c2('0x23ae')])&&(_0x50033f(_0x13cf2a,!![]),_0x5b3564());}function _0xaa211d(_0x4e753c){_0x4ca5db(_0x4e753c)&&_0x4fff6e(_0x4e753c['createdAt'])&&(_0x50033f(_0x4e753c,![]),_0x5b3564());}_0x3cac28['$on'](_0x4b5dfb('0x1210'),function(){var _0x8dc23c=_0x4b5dfb;_0x334c7a['removeAllListeners']('mailInteraction:save'),_0x334c7a[_0x8dc23c('0x16cc')](_0x8dc23c('0x1719'));});}const _0x576319=_0x528889;_0x3ed98c[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0x25d8'),_0x3877e3('0x1721'),_0x3877e3('0x226c')];function _0x3ed98c(_0x498f8d,_0x5cdfb4,_0x5c6e33,_0x51470d){var _0x5e9daa=_0x3877e3,_0x46ff32=this,_0xc6c484=[];_0x46ff32['config']={'format':_0x5e9daa('0x436'),'unit':_0x5e9daa('0x22ac'),'trim':![]},_0x46ff32['inbound']={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x5e9daa('0x385'),'avgTalkTime':_0x5e9daa('0x385'),'answerRate':0x0,'abandonRate':0x0},_0x46ff32[_0x5e9daa('0x226c')]=_0x51470d?_0x86640f()['keyBy'](_0x51470d['rows']?_0x51470d[_0x5e9daa('0x1b33')]:[],'id'):{},_0x46ff32[_0x5e9daa('0x1ba4')]=_0x194930,_0x46ff32[_0x5e9daa('0x260f')]=_0x572f9d,_0x5cdfb4['on'](_0x5e9daa('0x196a'),_0x46ff32[_0x5e9daa('0x1ba4')]),_0x5cdfb4['on'](_0x5e9daa('0x6cf'),_0x46ff32[_0x5e9daa('0x260f')]),_0x238c85();function _0x513c32(_0x433794,_0x5d9370){var _0xee16b8=_0x5e9daa;!_0x433794[_0xee16b8('0x14ba')]&&!_0x433794[_0xee16b8('0x1dc6')]&&_0x5d9370&&(_0x46ff32[_0xee16b8('0x923')][_0xee16b8('0x8b6')]+=0x1),!_0x433794['closed']&&_0x433794[_0xee16b8('0x1dc6')]&&!_0x86640f()[_0xee16b8('0xb34')](_0xc6c484,_0x433794['id'])&&(_0x46ff32[_0xee16b8('0x923')]['talking']+=0x1,_0xc6c484[_0xee16b8('0x206c')](_0x433794['id']),!_0x5d9370&&_0x46ff32[_0xee16b8('0x923')][_0xee16b8('0x8b6')]&&(_0x46ff32[_0xee16b8('0x923')][_0xee16b8('0x8b6')]-=0x1)),_0x433794['closed']&&_0x433794['UserId']&&(_0x46ff32[_0xee16b8('0x923')][_0xee16b8('0x27f1')]+=_0x1088bc()(_0x433794[_0xee16b8('0x1cf1')])[_0xee16b8('0x2503')](_0x1088bc()(_0x433794['read1stAt']),_0x46ff32[_0xee16b8('0x13')][_0xee16b8('0xb9a')]),_0x46ff32['inbound'][_0xee16b8('0x1ece')]+=_0x1088bc()(_0x433794[_0xee16b8('0x268a')])['diff'](_0x1088bc()(_0x433794[_0xee16b8('0x23ae')]),_0x46ff32[_0xee16b8('0x13')][_0xee16b8('0xb9a')]),_0x46ff32[_0xee16b8('0x923')][_0xee16b8('0x24c7')]+=0x1,!_0x5d9370&&_0x46ff32['inbound'][_0xee16b8('0x4f6')]&&(_0x46ff32[_0xee16b8('0x923')][_0xee16b8('0x4f6')]-=0x1)),_0x433794[_0xee16b8('0x14ba')]&&!_0x433794[_0xee16b8('0x1dc6')]&&(_0x46ff32[_0xee16b8('0x923')][_0xee16b8('0x1f7e')]+=0x1,!_0x5d9370&&_0x46ff32[_0xee16b8('0x923')][_0xee16b8('0x8b6')]&&(_0x46ff32[_0xee16b8('0x923')][_0xee16b8('0x8b6')]-=0x1)),_0x5d9370&&(_0x46ff32['inbound'][_0xee16b8('0x16f0')]+=0x1);}function _0x3986d7(){var _0x5a9924=_0x5e9daa;_0x46ff32['inbound'][_0x5a9924('0x1dfe')]=Math[_0x5a9924('0x1682')]((_0x46ff32[_0x5a9924('0x923')][_0x5a9924('0x1f4')]+_0x46ff32['inbound']['unmanaged'])/(_0x46ff32['inbound'][_0x5a9924('0x16f0')]-_0x46ff32['inbound'][_0x5a9924('0x4f6')]-_0x46ff32['inbound'][_0x5a9924('0x8b6')])*0x64,-0x2),_0x46ff32[_0x5a9924('0x923')][_0x5a9924('0x21bb')]=Math[_0x5a9924('0x1682')](_0x46ff32[_0x5a9924('0x923')][_0x5a9924('0x24c7')]/(_0x46ff32[_0x5a9924('0x923')][_0x5a9924('0x16f0')]-_0x46ff32[_0x5a9924('0x923')][_0x5a9924('0x4f6')]-_0x46ff32[_0x5a9924('0x923')]['waiting'])*0x64,-0x2),_0x46ff32[_0x5a9924('0x923')][_0x5a9924('0xb94')]=_0x1088bc()[_0x5a9924('0x79e')](Math[_0x5a9924('0x1682')](_0x46ff32[_0x5a9924('0x923')][_0x5a9924('0x1ece')]/_0x46ff32[_0x5a9924('0x923')][_0x5a9924('0x24c7')]),_0x46ff32[_0x5a9924('0x13')][_0x5a9924('0xb9a')])[_0x5a9924('0x153')](_0x46ff32[_0x5a9924('0x13')][_0x5a9924('0x153')],_0x46ff32['config']),_0x46ff32[_0x5a9924('0x923')][_0x5a9924('0x19be')]=_0x1088bc()[_0x5a9924('0x79e')](Math[_0x5a9924('0x1682')](_0x46ff32['inbound'][_0x5a9924('0x27f1')]/_0x46ff32[_0x5a9924('0x923')]['answered']),_0x46ff32['config'][_0x5a9924('0xb9a')])[_0x5a9924('0x153')](_0x46ff32[_0x5a9924('0x13')][_0x5a9924('0x153')],_0x46ff32['config']);}function _0x238c85(){var _0x4f9e6a=_0x5e9daa;if(Object[_0x4f9e6a('0x223b')](_0x46ff32[_0x4f9e6a('0x226c')])[_0x4f9e6a('0x577')]>0x0)for(var _0x49d19d=0x0;_0x49d19d<_0x5c6e33[_0x4f9e6a('0x1b33')][_0x4f9e6a('0x577')];_0x49d19d+=0x1){if(_0x5e1ef4(_0x5c6e33['rows'][_0x49d19d])){var _0x518e0b=_0x5c6e33[_0x4f9e6a('0x1b33')][_0x49d19d];_0x513c32(_0x518e0b,!![]),_0x3986d7();}}}function _0x5e1ef4(_0x5db6d0){var _0x3abb41=_0x5e9daa;if(_0x86640f()[_0x3abb41('0x2664')](_0x46ff32['openchannelAccounts'],{'id':_0x86640f()[_0x3abb41('0x1662')](_0x5db6d0[_0x3abb41('0xc92')])}))return!![];return![];}function _0x1bbc2b(_0x1bc06b){var _0x5b2add=_0x5e9daa,_0x256f42=_0x1088bc()()[_0x5b2add('0x215e')](0x0,!![])[_0x5b2add('0x1982')](_0x5b2add('0x1837')),_0x16b568=_0x1088bc()()[_0x5b2add('0x215e')](0x0,!![])[_0x5b2add('0x117b')](_0x5b2add('0x1837'));return _0x1088bc()(_0x1bc06b)[_0x5b2add('0x215e')](0x0,!![])[_0x5b2add('0x26cc')](_0x256f42,_0x16b568);}function _0x194930(_0x5d7f28){_0x5e1ef4(_0x5d7f28)&&_0x1bbc2b(_0x5d7f28['createdAt'])&&(_0x513c32(_0x5d7f28,!![]),_0x3986d7());}function _0x572f9d(_0x4704cb){var _0x362a51=_0x5e9daa;_0x5e1ef4(_0x4704cb)&&_0x1bbc2b(_0x4704cb[_0x362a51('0x23ae')])&&(_0x513c32(_0x4704cb,![]),_0x3986d7());}_0x498f8d['$on'](_0x5e9daa('0x1210'),function(){var _0x4bd72b=_0x5e9daa;_0x5cdfb4[_0x4bd72b('0x16cc')](_0x4bd72b('0x196a')),_0x5cdfb4[_0x4bd72b('0x16cc')](_0x4bd72b('0x6cf'));});}const _0x469c12=_0x3ed98c;_0x3e2832['$inject']=['$scope',_0x3877e3('0x25d8'),'smsInteractions','smsAccounts'];function _0x3e2832(_0x19771e,_0x2f99bc,_0x1db7cf,_0x34e771){var _0x28e858=_0x3877e3,_0x2bd186=this,_0x3a3345=[];_0x2bd186['config']={'format':_0x28e858('0x436'),'unit':_0x28e858('0x22ac'),'trim':![]},_0x2bd186[_0x28e858('0x923')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x28e858('0x385'),'avgTalkTime':_0x28e858('0x385'),'answerRate':0x0,'abandonRate':0x0},_0x2bd186[_0x28e858('0x102b')]=_0x34e771?_0x86640f()[_0x28e858('0xcde')](_0x34e771[_0x28e858('0x1b33')]?_0x34e771[_0x28e858('0x1b33')]:[],'id'):{},_0x2bd186[_0x28e858('0xeff')]=_0x28d043,_0x2bd186['onUpdateSmsInteraction']=_0x454be2,_0x2f99bc['on'](_0x28e858('0x135a'),_0x2bd186[_0x28e858('0xeff')]),_0x2f99bc['on'](_0x28e858('0xe42'),_0x2bd186[_0x28e858('0x9a2')]),_0x29c2dc();function _0x1a3ecb(_0x31ed85,_0x20a072){var _0x2643d6=_0x28e858;!_0x31ed85[_0x2643d6('0x14ba')]&&!_0x31ed85[_0x2643d6('0x1dc6')]&&_0x20a072&&(_0x2bd186[_0x2643d6('0x923')][_0x2643d6('0x8b6')]+=0x1),!_0x31ed85[_0x2643d6('0x14ba')]&&_0x31ed85[_0x2643d6('0x1dc6')]&&!_0x86640f()[_0x2643d6('0xb34')](_0x3a3345,_0x31ed85['id'])&&(_0x2bd186[_0x2643d6('0x923')][_0x2643d6('0x4f6')]+=0x1,_0x3a3345[_0x2643d6('0x206c')](_0x31ed85['id']),!_0x20a072&&_0x2bd186[_0x2643d6('0x923')][_0x2643d6('0x8b6')]&&(_0x2bd186['inbound'][_0x2643d6('0x8b6')]-=0x1)),_0x31ed85[_0x2643d6('0x14ba')]&&_0x31ed85[_0x2643d6('0x1dc6')]&&(_0x2bd186[_0x2643d6('0x923')][_0x2643d6('0x27f1')]+=_0x1088bc()(_0x31ed85[_0x2643d6('0x1cf1')])['diff'](_0x1088bc()(_0x31ed85['read1stAt']),_0x2bd186['config']['unit']),_0x2bd186[_0x2643d6('0x923')][_0x2643d6('0x1ece')]+=_0x1088bc()(_0x31ed85[_0x2643d6('0x268a')])[_0x2643d6('0x2503')](_0x1088bc()(_0x31ed85[_0x2643d6('0x23ae')]),_0x2bd186['config'][_0x2643d6('0xb9a')]),_0x2bd186[_0x2643d6('0x923')][_0x2643d6('0x24c7')]+=0x1,!_0x20a072&&_0x2bd186[_0x2643d6('0x923')]['talking']&&(_0x2bd186[_0x2643d6('0x923')][_0x2643d6('0x4f6')]-=0x1)),_0x31ed85[_0x2643d6('0x14ba')]&&!_0x31ed85[_0x2643d6('0x1dc6')]&&(_0x2bd186[_0x2643d6('0x923')][_0x2643d6('0x1f7e')]+=0x1,!_0x20a072&&_0x2bd186['inbound'][_0x2643d6('0x8b6')]&&(_0x2bd186[_0x2643d6('0x923')][_0x2643d6('0x8b6')]-=0x1)),_0x20a072&&(_0x2bd186[_0x2643d6('0x923')][_0x2643d6('0x16f0')]+=0x1);}function _0xc5f89f(){var _0x4df681=_0x28e858;_0x2bd186[_0x4df681('0x923')][_0x4df681('0x1dfe')]=Math[_0x4df681('0x1682')]((_0x2bd186[_0x4df681('0x923')][_0x4df681('0x1f4')]+_0x2bd186[_0x4df681('0x923')]['unmanaged'])/(_0x2bd186[_0x4df681('0x923')][_0x4df681('0x16f0')]-_0x2bd186[_0x4df681('0x923')][_0x4df681('0x4f6')]-_0x2bd186[_0x4df681('0x923')][_0x4df681('0x8b6')])*0x64,-0x2),_0x2bd186[_0x4df681('0x923')][_0x4df681('0x21bb')]=Math[_0x4df681('0x1682')](_0x2bd186[_0x4df681('0x923')][_0x4df681('0x24c7')]/(_0x2bd186['inbound'][_0x4df681('0x16f0')]-_0x2bd186['inbound'][_0x4df681('0x4f6')]-_0x2bd186['inbound'][_0x4df681('0x8b6')])*0x64,-0x2),_0x2bd186[_0x4df681('0x923')]['avgHoldTime']=_0x1088bc()[_0x4df681('0x79e')](Math[_0x4df681('0x1682')](_0x2bd186['inbound'][_0x4df681('0x1ece')]/_0x2bd186['inbound'][_0x4df681('0x24c7')]),_0x2bd186[_0x4df681('0x13')][_0x4df681('0xb9a')])[_0x4df681('0x153')](_0x2bd186['config']['format'],_0x2bd186['config']),_0x2bd186[_0x4df681('0x923')][_0x4df681('0x19be')]=_0x1088bc()['duration'](Math[_0x4df681('0x1682')](_0x2bd186[_0x4df681('0x923')][_0x4df681('0x27f1')]/_0x2bd186['inbound']['answered']),_0x2bd186[_0x4df681('0x13')][_0x4df681('0xb9a')])['format'](_0x2bd186[_0x4df681('0x13')]['format'],_0x2bd186['config']);}function _0x29c2dc(){var _0x256a10=_0x28e858;if(Object[_0x256a10('0x223b')](_0x2bd186[_0x256a10('0x102b')])['length']>0x0)for(var _0x1dd0ad=0x0;_0x1dd0ad<_0x1db7cf[_0x256a10('0x1b33')][_0x256a10('0x577')];_0x1dd0ad+=0x1){if(_0x50a23b(_0x1db7cf['rows'][_0x1dd0ad])){var _0x355057=_0x1db7cf['rows'][_0x1dd0ad];_0x1a3ecb(_0x355057,!![]),_0xc5f89f();}}}function _0x50a23b(_0x3d7efb){var _0x4d2403=_0x28e858;if(_0x86640f()[_0x4d2403('0x2664')](_0x2bd186[_0x4d2403('0x102b')],{'id':_0x86640f()['toNumber'](_0x3d7efb[_0x4d2403('0x822')])}))return!![];return![];}function _0x80df37(_0x489f9f){var _0x34d400=_0x28e858,_0x391a59=_0x1088bc()()[_0x34d400('0x215e')](0x0,!![])[_0x34d400('0x1982')](_0x34d400('0x1837')),_0x48dce1=_0x1088bc()()[_0x34d400('0x215e')](0x0,!![])[_0x34d400('0x117b')](_0x34d400('0x1837'));return _0x1088bc()(_0x489f9f)[_0x34d400('0x215e')](0x0,!![])[_0x34d400('0x26cc')](_0x391a59,_0x48dce1);}function _0x28d043(_0x199054){var _0x571d10=_0x28e858;_0x50a23b(_0x199054)&&_0x80df37(_0x199054[_0x571d10('0x23ae')])&&(_0x1a3ecb(_0x199054,!![]),_0xc5f89f());}function _0x454be2(_0x54b700){var _0x55d149=_0x28e858;_0x50a23b(_0x54b700)&&_0x80df37(_0x54b700[_0x55d149('0x23ae')])&&(_0x1a3ecb(_0x54b700,![]),_0xc5f89f());}_0x19771e[_0x28e858('0x1723')](_0x28e858('0x1210'),function(){var _0x29855c=_0x28e858;_0x2f99bc[_0x29855c('0x16cc')](_0x29855c('0x135a')),_0x2f99bc[_0x29855c('0x16cc')](_0x29855c('0xe42'));});}const _0x201d0f=_0x3e2832;_0x279393[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),'Auth',_0x3877e3('0x2ff')],_0xf9a20b[_0x3877e3('0x1a81')]=['$q'],_0x3ef6b7[_0x3877e3('0x1a81')]=['$q'];function _0x3ef6b7(_0x5a46a4){var _0x28d3ba=[],_0x59a6fc=function _0x130560(){var _0xe41f38=a0_0x2e7f,_0x4ec7ac=_0x28d3ba[0x0],_0x591156={'waiting':0x0,'talking':0x0,'pTalking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0xe41f38('0x385'),'avgTalkTime':_0xe41f38('0x385'),'answerRate':0x0,'abandonRate':0x0,'originated':0x0,'outboundDropCallsDayCallersExit':0x0,'outboundDropCallsDayTimeout':0x0};_0x86640f()['forIn'](_0x4ec7ac[_0xe41f38('0xb7a')],function(_0xaf392f,_0x5a6b2b){var _0x1aeb0c=_0xe41f38;_0x4ec7ac[_0x1aeb0c('0x245')][_0x5a6b2b]&&(_0x591156[_0x1aeb0c('0x8b6')]+=_0x4ec7ac['rpcQueues'][_0x5a6b2b][_0x1aeb0c('0x8b6')]||0x0,_0x591156[_0x1aeb0c('0x4f6')]+=(_0x4ec7ac[_0x1aeb0c('0x245')][_0x5a6b2b][_0x1aeb0c('0x4f6')]||0x0)+(_0x4ec7ac['rpcQueues'][_0x5a6b2b]['pTalking']||0x0),_0x591156['answered']+=_0x4ec7ac[_0x1aeb0c('0x245')][_0x5a6b2b]['answered']||0x0,_0x591156[_0x1aeb0c('0x1f4')]+=_0x4ec7ac[_0x1aeb0c('0x245')][_0x5a6b2b]['abandoned']||0x0,_0x591156[_0x1aeb0c('0x1ece')]+=_0x4ec7ac[_0x1aeb0c('0x245')][_0x5a6b2b]['sumHoldTime']||0x0,_0x591156[_0x1aeb0c('0x27f1')]+=_0x4ec7ac[_0x1aeb0c('0x245')][_0x5a6b2b]['sumBillable']||0x0,_0x591156[_0x1aeb0c('0x16f0')]+=_0x4ec7ac[_0x1aeb0c('0x245')][_0x5a6b2b][_0x1aeb0c('0x16f0')]||0x0,_0x591156[_0x1aeb0c('0x108')]+=_0x4ec7ac[_0x1aeb0c('0x245')][_0x5a6b2b][_0x1aeb0c('0x108')]||0x0,_0x591156[_0x1aeb0c('0x1871')]+=_0x4ec7ac[_0x1aeb0c('0x245')][_0x5a6b2b][_0x1aeb0c('0x1871')]||0x0,_0x591156[_0x1aeb0c('0x1b0e')]+=_0x4ec7ac[_0x1aeb0c('0x245')][_0x5a6b2b][_0x1aeb0c('0x1b0e')]||0x0);});var _0x3b9819=_0x591156[_0xe41f38('0x16f0')]-_0x591156[_0xe41f38('0x24c7')]-_0x591156['abandoned'];_0x591156[_0xe41f38('0x1f7e')]=_0x3b9819>0x0?_0x3b9819:0x0,_0x591156[_0xe41f38('0xb94')]=Math[_0xe41f38('0x1682')](_0x591156[_0xe41f38('0x16f0')]>0x0?_0x591156[_0xe41f38('0x1ece')]/_0x591156[_0xe41f38('0x16f0')]:0x0),_0x591156[_0xe41f38('0xb94')]=new Date(_0x591156[_0xe41f38('0xb94')]*0x3e8)[_0xe41f38('0x1d25')]()['substr'](0xb,0x8),_0x591156[_0xe41f38('0x19be')]=Math[_0xe41f38('0x1682')](_0x591156[_0xe41f38('0x24c7')]>0x0?_0x591156[_0xe41f38('0x27f1')]/_0x591156['answered']:0x0),_0x591156['avgTalkTime']=new Date(_0x591156['avgTalkTime']*0x3e8)[_0xe41f38('0x1d25')]()[_0xe41f38('0xfda')](0xb,0x8),_0x591156['answerRate']=Math[_0xe41f38('0x1682')]((_0x591156['total']>0x0?_0x591156['answered']/_0x591156[_0xe41f38('0x16f0')]*0x64:0x0)*Math['pow'](0xa,0x1))/Math['pow'](0xa,0x1),_0x591156[_0xe41f38('0x1dfe')]=Math['round']((_0x591156[_0xe41f38('0x16f0')]>0x0?_0x591156[_0xe41f38('0x1f4')]/_0x591156[_0xe41f38('0x16f0')]*0x64:0x0)*Math['pow'](0xa,0x1))/Math['pow'](0xa,0x1),_0x591156[_0xe41f38('0xce6')]=Math[_0xe41f38('0x1682')]((_0x591156['total']>0x0?_0x591156[_0xe41f38('0x1b0e')]/_0x591156[_0xe41f38('0x16f0')]*0x64:0x0)*Math['pow'](0xa,0x1))/Math[_0xe41f38('0xb00')](0xa,0x1),_0x591156['outboundAbandonRate']=Math[_0xe41f38('0x1682')]((_0x591156[_0xe41f38('0x16f0')]>0x0?_0x591156['outboundDropCallsDayCallersExit']/_0x591156[_0xe41f38('0x16f0')]*0x64:0x0)*Math['pow'](0xa,0x1))/Math[_0xe41f38('0xb00')](0xa,0x1),_0x591156[_0xe41f38('0xbfe')]=0x64-_0x591156[_0xe41f38('0xce6')]-_0x591156[_0xe41f38('0xedc')]>0x0&&(_0x591156[_0xe41f38('0x16f0')]||0x0>0x0)?0x64-_0x591156['outboundDropRate']-_0x591156[_0xe41f38('0xedc')]:0x0,_0x28d3ba['shift'](),_0x4ec7ac[_0xe41f38('0xca9')][_0xe41f38('0x8ac')](_0x591156),_0x28d3ba[_0xe41f38('0x577')]>0x0&&_0x130560();};return function(_0x5d0ef6){var _0x293711=a0_0x2e7f,_0x2d612f=_0x5a46a4[_0x293711('0xca9')]();return _0x28d3ba[_0x293711('0x206c')]({'queues':_0x5d0ef6[_0x293711('0xb7a')],'rpcQueues':_0x5d0ef6['rpcQueues'],'defer':_0x2d612f}),_0x28d3ba[_0x293711('0x577')]===0x1&&_0x59a6fc(),_0x2d612f[_0x293711('0x71b')];};}function _0xf9a20b(_0x35875c){var _0x27b2c5=[],_0x621dae=function _0x2c6738(){var _0x3fba47=a0_0x2e7f,_0x481c08=_0x27b2c5[0x0],_0x382b2a={'originated':0x0,'limitCalls':0x0};_0x86640f()[_0x3fba47('0xd54')](_0x481c08[_0x3fba47('0xfc0')],function(_0x1b429e,_0x52c158){var _0x7a6a78=_0x3fba47;_0x481c08[_0x7a6a78('0xfc0')][_0x52c158]&&(_0x382b2a[_0x7a6a78('0x108')]+=_0x481c08[_0x7a6a78('0xfc0')][_0x52c158][_0x7a6a78('0x108')]||0x0,_0x382b2a[_0x7a6a78('0x2212')]+=_0x481c08['rpcCampaigns'][_0x52c158][_0x7a6a78('0x2212')]||0x0);}),_0x27b2c5[_0x3fba47('0xfb6')](),_0x481c08[_0x3fba47('0xca9')][_0x3fba47('0x8ac')](_0x382b2a),_0x27b2c5[_0x3fba47('0x577')]>0x0&&_0x2c6738();};return function(_0x7c8f19){var _0x2d55eb=a0_0x2e7f,_0x14c12a=_0x35875c[_0x2d55eb('0xca9')]();return _0x27b2c5[_0x2d55eb('0x206c')]({'rpcCampaigns':_0x7c8f19[_0x2d55eb('0xfc0')],'defer':_0x14c12a}),_0x27b2c5[_0x2d55eb('0x577')]===0x1&&_0x621dae(),_0x14c12a[_0x2d55eb('0x71b')];};}function _0x4eeac0(){return function(_0x2971be){var _0x44d16e=a0_0x2e7f;return new Date(_0x2971be*0x3e8)[_0x44d16e('0x1d25')]()[_0x44d16e('0xfda')](0xb,0x8);};}function _0x279393(_0x1b0827,_0x4c4941,_0x5ee52a){var _0x58d504=_0x3877e3,_0x5e47cd=this;_0x5e47cd['license']=_0x5ee52a,_0x5e47cd[_0x58d504('0x1081')]=_0x2ee7d8;function _0x2ee7d8(){var _0x2b232a=_0x58d504;_0x5e47cd[_0x2b232a('0x1db9')]=_0x4c4941[_0x2b232a('0x21de')](_0x2b232a('0x1775'))?_0x4c4941['hasPermission'](0x65):!![];if(_0x5e47cd[_0x2b232a('0x1db9')]){var _0x4cbc52=_0x1b0827[_0x2b232a('0x1ccb')][_0x2b232a('0x19fe')];switch(_0x4cbc52){case _0x2b232a('0x143c'):_0x847df1();break;case _0x2b232a('0x7fd'):_0x5e47cd[_0x2b232a('0x302')]=0x0;break;case'app.dashboards.general.dialer':_0x5e47cd['selectedTab']=0x1;break;case _0x2b232a('0x1a98'):_0x5e47cd[_0x2b232a('0x302')]=0x2;break;case _0x2b232a('0x27b2'):_0x5e47cd[_0x2b232a('0x302')]=0x3;break;case _0x2b232a('0x2765'):_0x5e47cd[_0x2b232a('0x302')]=0x4;break;case _0x2b232a('0x228b'):_0x5e47cd[_0x2b232a('0x302')]=0x5;break;case _0x2b232a('0x3ac'):_0x5e47cd[_0x2b232a('0x302')]=0x6;break;case _0x2b232a('0xcc7'):_0x5e47cd[_0x2b232a('0x302')]=0x7;break;}}}function _0x847df1(){var _0xb892a0=_0x58d504,_0x53cad2=[];_0x5e47cd[_0xb892a0('0x2ff')][_0xb892a0('0x8ed')]&&_0x53cad2[_0xb892a0('0x206c')]('app.dashboards.general.voice'),_0x5e47cd[_0xb892a0('0x2ff')][_0xb892a0('0xb6b')]&&_0x53cad2[_0xb892a0('0x206c')](_0xb892a0('0x2286')),_0x5e47cd[_0xb892a0('0x2ff')][_0xb892a0('0x1f65')]&&_0x53cad2['push'](_0xb892a0('0x1a98')),_0x5e47cd[_0xb892a0('0x2ff')][_0xb892a0('0x1c8b')]&&_0x53cad2[_0xb892a0('0x206c')](_0xb892a0('0x27b2')),_0x5e47cd[_0xb892a0('0x2ff')][_0xb892a0('0xff6')]&&_0x53cad2[_0xb892a0('0x206c')](_0xb892a0('0x2765')),_0x5e47cd['license']['openchannel']&&_0x53cad2['push']('app.dashboards.general.openchannel'),_0x5e47cd[_0xb892a0('0x2ff')]['fax']&&_0x53cad2['push']('app.dashboards.general.fax'),_0x5e47cd['license']['whatsapp']&&_0x53cad2[_0xb892a0('0x206c')](_0xb892a0('0xcc7'));if(_0x53cad2['length']>0x0)_0x1b0827['go'](_0x86640f()['first'](_0x53cad2));}}_0xe7ce0a[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x25d8'),_0x3877e3('0x2090'),_0x3877e3('0x245'),_0x3877e3('0x2300'),_0x3877e3('0x1f08')];function _0xe7ce0a(_0x1b46fa,_0x55bd43,_0x57ad7b,_0x5b7f55,_0x38d6ad,_0x2ff597){var _0x1cdffb=_0x3877e3,_0xfb3bde=this;_0xfb3bde[_0x1cdffb('0x2090')]=_0x57ad7b?_0x86640f()['keyBy'](_0x57ad7b[_0x1cdffb('0x1b33')]?_0x57ad7b[_0x1cdffb('0x1b33')]:[],'id'):{},_0xfb3bde['rpcQueues']=_0x5b7f55?_0x86640f()[_0x1cdffb('0xcde')](_0x5b7f55[_0x1cdffb('0x1b33')]?_0x5b7f55[_0x1cdffb('0x1b33')]:[],'id'):{},_0xfb3bde['inbound']={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x1cdffb('0x385'),'avgTalkTime':'00:00:00','answerRate':0x0,'abandonRate':0x0},_0xfb3bde[_0x1cdffb('0x2300')]=_0x38d6ad||{'answered':0x0,'sumBillable':0x0,'sumDuration':0x0,'sumHoldTime':0x0,'total':0x0},_0xfb3bde[_0x1cdffb('0xe02')]=_0x2120a3,_0xfb3bde[_0x1cdffb('0x139b')]=_0x9e84ad,_0x55bd43['on']('voice_queue:save',_0xfb3bde[_0x1cdffb('0xe02')]),_0x55bd43['on']('voice_outbound:save',_0xfb3bde[_0x1cdffb('0x139b')]),_0x46347c();function _0x46347c(){var _0x4c1000=_0x1cdffb;_0x2ff597({'queues':_0xfb3bde['inboundQueues'],'rpcQueues':_0xfb3bde['rpcQueues']})[_0x4c1000('0x21ad')](function(_0x5f2660){var _0x4f86cd=_0x4c1000;_0xfb3bde[_0x4f86cd('0x923')]=_0x5f2660;});}function _0x2120a3(_0x45c8f0){var _0x3dcd36=_0x1cdffb;_0xfb3bde[_0x3dcd36('0x2090')][_0x45c8f0['id']]&&(_0xfb3bde[_0x3dcd36('0x245')][_0x45c8f0['id']]&&(_0xfb3bde[_0x3dcd36('0x245')][_0x45c8f0['id']]=_0x45c8f0,_0x46347c()));}function _0x9e84ad(_0x500fc7){var _0x789524=_0x1cdffb;_0xfb3bde[_0x789524('0x2300')]=_0x500fc7;}_0x1b46fa[_0x1cdffb('0x1723')](_0x1cdffb('0x1210'),function(){var _0x388e38=_0x1cdffb;_0x55bd43['removeAllListeners'](_0x388e38('0x83e')),_0x55bd43[_0x388e38('0x16cc')](_0x388e38('0x1834'));});}const _0x5e709a=_0xe7ce0a;_0x31e97d[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x25d8'),_0x3877e3('0xd1d'),_0x3877e3('0x46a')];function _0x31e97d(_0x3acada,_0x40d037,_0x9489d6,_0x2b34ec){var _0x7a158a=_0x3877e3,_0x345371=this,_0x53b292=[];_0x345371[_0x7a158a('0x13')]={'format':_0x7a158a('0x436'),'unit':_0x7a158a('0x22ac'),'trim':![]},_0x345371[_0x7a158a('0x923')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x7a158a('0x385'),'avgTalkTime':'00:00:00','answerRate':0x0,'abandonRate':0x0},_0x345371[_0x7a158a('0x46a')]=_0x2b34ec?_0x86640f()[_0x7a158a('0xcde')](_0x2b34ec[_0x7a158a('0x1b33')]?_0x2b34ec[_0x7a158a('0x1b33')]:[],'id'):{},_0x345371[_0x7a158a('0x2b7')]=_0x395b29,_0x345371[_0x7a158a('0x1299')]=_0x2eac56,_0x40d037['on'](_0x7a158a('0x1692'),_0x345371[_0x7a158a('0x2b7')]),_0x40d037['on'](_0x7a158a('0x1d11'),_0x345371[_0x7a158a('0x1299')]),_0x4f01fe();function _0x349008(_0x188f60,_0x72cb24){var _0x53339a=_0x7a158a;!_0x188f60[_0x53339a('0x14ba')]&&!_0x188f60[_0x53339a('0x1dc6')]&&_0x72cb24&&(_0x345371[_0x53339a('0x923')][_0x53339a('0x8b6')]+=0x1),!_0x188f60[_0x53339a('0x14ba')]&&_0x188f60['UserId']&&!_0x86640f()[_0x53339a('0xb34')](_0x53b292,_0x188f60['id'])&&(_0x345371[_0x53339a('0x923')][_0x53339a('0x4f6')]+=0x1,_0x53b292[_0x53339a('0x206c')](_0x188f60['id']),!_0x72cb24&&_0x345371[_0x53339a('0x923')][_0x53339a('0x8b6')]&&(_0x345371[_0x53339a('0x923')][_0x53339a('0x8b6')]-=0x1)),_0x188f60[_0x53339a('0x14ba')]&&_0x188f60[_0x53339a('0x1dc6')]&&(_0x345371[_0x53339a('0x923')][_0x53339a('0x27f1')]+=_0x1088bc()(_0x188f60['closedAt'])['diff'](_0x1088bc()(_0x188f60[_0x53339a('0x268a')]),_0x345371[_0x53339a('0x13')]['unit']),_0x345371[_0x53339a('0x923')][_0x53339a('0x1ece')]+=_0x1088bc()(_0x188f60['read1stAt'])[_0x53339a('0x2503')](_0x1088bc()(_0x188f60['createdAt']),_0x345371[_0x53339a('0x13')][_0x53339a('0xb9a')]),_0x345371[_0x53339a('0x923')][_0x53339a('0x24c7')]+=0x1,!_0x72cb24&&_0x345371[_0x53339a('0x923')][_0x53339a('0x4f6')]&&(_0x345371[_0x53339a('0x923')][_0x53339a('0x4f6')]-=0x1)),_0x188f60[_0x53339a('0x14ba')]&&!_0x188f60[_0x53339a('0x1dc6')]&&(_0x345371[_0x53339a('0x923')][_0x53339a('0x1f7e')]+=0x1,!_0x72cb24&&_0x345371[_0x53339a('0x923')][_0x53339a('0x8b6')]&&(_0x345371[_0x53339a('0x923')][_0x53339a('0x8b6')]-=0x1)),_0x72cb24&&(_0x345371['inbound'][_0x53339a('0x16f0')]+=0x1);}function _0x2bed8f(){var _0x2d89d6=_0x7a158a;_0x345371[_0x2d89d6('0x923')][_0x2d89d6('0x1dfe')]=Math['round']((_0x345371[_0x2d89d6('0x923')][_0x2d89d6('0x1f4')]+_0x345371[_0x2d89d6('0x923')]['unmanaged'])/(_0x345371[_0x2d89d6('0x923')]['total']-_0x345371[_0x2d89d6('0x923')][_0x2d89d6('0x4f6')]-_0x345371[_0x2d89d6('0x923')][_0x2d89d6('0x8b6')])*0x64,-0x2),_0x345371[_0x2d89d6('0x923')][_0x2d89d6('0x21bb')]=Math['round'](_0x345371[_0x2d89d6('0x923')][_0x2d89d6('0x24c7')]/(_0x345371[_0x2d89d6('0x923')][_0x2d89d6('0x16f0')]-_0x345371[_0x2d89d6('0x923')][_0x2d89d6('0x4f6')]-_0x345371[_0x2d89d6('0x923')][_0x2d89d6('0x8b6')])*0x64,-0x2),_0x345371['inbound']['avgHoldTime']=_0x1088bc()[_0x2d89d6('0x79e')](Math[_0x2d89d6('0x1682')](_0x345371[_0x2d89d6('0x923')][_0x2d89d6('0x1ece')]/_0x345371[_0x2d89d6('0x923')][_0x2d89d6('0x24c7')]),_0x345371[_0x2d89d6('0x13')][_0x2d89d6('0xb9a')])['format'](_0x345371[_0x2d89d6('0x13')][_0x2d89d6('0x153')],_0x345371['config']),_0x345371[_0x2d89d6('0x923')][_0x2d89d6('0x19be')]=_0x1088bc()[_0x2d89d6('0x79e')](Math[_0x2d89d6('0x1682')](_0x345371[_0x2d89d6('0x923')]['sumBillable']/_0x345371[_0x2d89d6('0x923')][_0x2d89d6('0x24c7')]),_0x345371[_0x2d89d6('0x13')][_0x2d89d6('0xb9a')])['format'](_0x345371[_0x2d89d6('0x13')]['format'],_0x345371[_0x2d89d6('0x13')]);}function _0x4f01fe(){var _0x283f8e=_0x7a158a;if(Object['keys'](_0x345371[_0x283f8e('0x46a')])[_0x283f8e('0x577')]>0x0)for(var _0x4ee5e5=0x0;_0x4ee5e5<_0x9489d6['rows'][_0x283f8e('0x577')];_0x4ee5e5+=0x1){if(_0x1f7474(_0x9489d6[_0x283f8e('0x1b33')][_0x4ee5e5])){var _0x55e37e=_0x9489d6[_0x283f8e('0x1b33')][_0x4ee5e5];_0x349008(_0x55e37e,!![]),_0x2bed8f();}}}function _0x1f7474(_0x3c5128){var _0x5221b7=_0x7a158a;if(_0x86640f()['some'](_0x345371[_0x5221b7('0x46a')],{'id':_0x86640f()[_0x5221b7('0x1662')](_0x3c5128['WhatsappAccountId'])}))return!![];return![];}function _0x1b7085(_0x410906){var _0x2fc3e5=_0x7a158a,_0x3a6957=_0x1088bc()()[_0x2fc3e5('0x215e')](0x0,!![])['startOf'](_0x2fc3e5('0x1837')),_0x5b4a4f=_0x1088bc()()[_0x2fc3e5('0x215e')](0x0,!![])[_0x2fc3e5('0x117b')](_0x2fc3e5('0x1837'));return _0x1088bc()(_0x410906)[_0x2fc3e5('0x215e')](0x0,!![])[_0x2fc3e5('0x26cc')](_0x3a6957,_0x5b4a4f);}function _0x395b29(_0x576087){var _0x72799c=_0x7a158a;_0x1f7474(_0x576087)&&_0x1b7085(_0x576087[_0x72799c('0x23ae')])&&(_0x349008(_0x576087,!![]),_0x2bed8f());}function _0x2eac56(_0x361f78){var _0x2accf8=_0x7a158a;_0x1f7474(_0x361f78)&&_0x1b7085(_0x361f78[_0x2accf8('0x23ae')])&&(_0x349008(_0x361f78,![]),_0x2bed8f());}_0x3acada[_0x7a158a('0x1723')](_0x7a158a('0x1210'),function(){var _0x42d2e6=_0x7a158a;_0x40d037['removeAllListeners'](_0x42d2e6('0x1692')),_0x40d037[_0x42d2e6('0x16cc')]('whatsappInteraction:update');});}const _0x9ceaac=_0x31e97d;_0x478d86['$inject']=['$stateProvider'];function _0x478d86(_0x8b0e7a){var _0x4319ac=_0x3877e3;_0x8b0e7a['state'](_0x4319ac('0x7fd'),{'url':'/voice','data':{'selectedTab':0x0},'views':{'voice':{'templateUrl':_0x7d1d80,'controller':_0x4319ac('0x1fff')}},'resolve':{'rpcQueues':['apiResolver',function _0x5eda93(_0x204a66){var _0x3e73b5=_0x4319ac;return _0x204a66['resolve'](_0x3e73b5('0xa73'));}],'inboundQueues':['apiResolver','Auth',function _0x5af9b4(_0x29fafb,_0x4b5429){var _0x452971=_0x4319ac;return _0x4b5429[_0x452971('0x21de')](_0x452971('0x1bd8'))?_0x29fafb[_0x452971('0x8ac')](_0x452971('0x10bb'),{'fields':_0x452971('0x1aa8'),'type':_0x452971('0x923'),'nolimit':!![]}):_0x29fafb[_0x452971('0x8ac')](_0x452971('0x52f'),{'id':_0x4b5429[_0x452971('0x15ed')]()[_0x452971('0x1618')],'section':'VoiceQueues','fields':'id,name','type':_0x452971('0x923'),'channel':'voice','nolimit':!![]});}],'outbound':['apiResolver',function _0x2a30e5(_0xa4c2b1){var _0x870d39=_0x4319ac;return _0xa4c2b1[_0x870d39('0x8ac')](_0x870d39('0x1f04'));}]},'authenticate':!![],'bodyClass':'dashboards'})['state']('app.dashboards.general.dialer',{'url':_0x4319ac('0x1383'),'data':{'selectedTab':0x1},'views':{'dialer':{'templateUrl':_0x5e82b3,'controller':_0x4319ac('0xbed')}},'resolve':{'rpcQueues':[_0x4319ac('0x354'),function _0x5a21a1(_0x1db7f3){var _0x232a5f=_0x4319ac;return _0x1db7f3[_0x232a5f('0x8ac')](_0x232a5f('0xa73'));}],'outboundQueues':[_0x4319ac('0x354'),'Auth',function _0x4313df(_0x2d17a8,_0x2a22b5){var _0x2034cc=_0x4319ac;return _0x2a22b5[_0x2034cc('0x21de')](_0x2034cc('0x1bd8'))?_0x2d17a8['resolve'](_0x2034cc('0x10bb'),{'fields':_0x2034cc('0x1aa8'),'type':'outbound','nolimit':!![]}):_0x2d17a8[_0x2034cc('0x8ac')]('userProfile@getResources',{'id':_0x2a22b5['getCurrentUser']()[_0x2034cc('0x1618')],'section':'QueueCampaigns','fields':_0x2034cc('0x1aa8'),'type':_0x2034cc('0x2300'),'channel':_0x2034cc('0x8ed'),'nolimit':!![]});}],'rpcCampaigns':['apiResolver',function _0x38adbf(_0x5c8b94){var _0x29bdfb=_0x4319ac;return _0x5c8b94[_0x29bdfb('0x8ac')](_0x29bdfb('0x62a'));}]},'authenticate':!![],'bodyClass':_0x4319ac('0x10e5')})[_0x4319ac('0x27e')](_0x4319ac('0x1a98'),{'url':'/chat','data':{'selectedTab':0x2},'views':{'chat':{'templateUrl':_0x3c3005,'controller':_0x4319ac('0xa5b')}},'resolve':{'chatInteractions':[_0x4319ac('0x354'),function _0x1a55d2(_0x2fbcdd){var _0x4868da=_0x4319ac;return _0x2fbcdd[_0x4868da('0x8ac')](_0x4868da('0x13ea'),{'createdAt':{'$gte':_0x1088bc()()[_0x4868da('0x1982')](_0x4868da('0x1837'))['utcOffset'](0x0,!![])['format'](),'$lte':_0x1088bc()()[_0x4868da('0x117b')]('day')[_0x4868da('0x215e')](0x0,!![])[_0x4868da('0x153')]()},'nolimit':!![]});}],'chatWebsites':[_0x4319ac('0x354'),_0x4319ac('0x15bc'),function _0xb049ff(_0xbd21e7,_0x581446){var _0x269c85=_0x4319ac;return _0x581446[_0x269c85('0x21de')](_0x269c85('0x1bd8'))?_0xbd21e7['resolve'](_0x269c85('0x1a92'),{'fields':_0x269c85('0x94'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0xbd21e7[_0x269c85('0x8ac')](_0x269c85('0x52f'),{'id':_0x581446['getCurrentUser']()[_0x269c85('0x1618')],'section':_0x269c85('0x1b53'),'fields':_0x269c85('0x94'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x4319ac('0x10e5')})[_0x4319ac('0x27e')]('app.dashboards.general.mail',{'url':_0x4319ac('0x1295'),'data':{'selectedTab':0x3},'views':{'mail':{'templateUrl':_0x38b53e,'controller':'UserMailDashboardGeneralController\x20as\x20vm'}},'resolve':{'mailInteractions':[_0x4319ac('0x354'),function _0x39f975(_0x2b2e9c){var _0x4895c7=_0x4319ac;return _0x2b2e9c[_0x4895c7('0x8ac')](_0x4895c7('0x22d1'),{'createdAt':{'$gte':_0x1088bc()()['startOf'](_0x4895c7('0x1837'))['utcOffset'](0x0,!![])[_0x4895c7('0x153')](),'$lte':_0x1088bc()()[_0x4895c7('0x117b')](_0x4895c7('0x1837'))[_0x4895c7('0x215e')](0x0,!![])[_0x4895c7('0x153')]()},'nolimit':!![]});}],'mailAccounts':[_0x4319ac('0x354'),_0x4319ac('0x15bc'),function _0x56dea4(_0xaae746,_0x371bfa){var _0x4a84f9=_0x4319ac;return _0x371bfa['hasRole']('admin')?_0xaae746[_0x4a84f9('0x8ac')](_0x4a84f9('0x1c56'),{'fields':_0x4a84f9('0x1070'),'sort':_0x4a84f9('0x33'),'limit':0xa,'offset':0x0}):_0xaae746[_0x4a84f9('0x8ac')](_0x4a84f9('0x52f'),{'id':_0x371bfa[_0x4a84f9('0x15ed')]()[_0x4a84f9('0x1618')],'section':_0x4a84f9('0x230d'),'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':'-updatedAt','limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x4319ac('0x10e5')})[_0x4319ac('0x27e')](_0x4319ac('0x2765'),{'url':_0x4319ac('0x21e4'),'data':{'selectedTab':0x4},'views':{'sms':{'templateUrl':_0x363a8e,'controller':_0x4319ac('0x2303')}},'resolve':{'smsInteractions':[_0x4319ac('0x354'),function _0x5cf173(_0x4b54d9){var _0x15af2a=_0x4319ac;return _0x4b54d9['resolve']('smsInteraction@get',{'createdAt':{'$gte':_0x1088bc()()[_0x15af2a('0x1982')](_0x15af2a('0x1837'))[_0x15af2a('0x215e')](0x0,!![])[_0x15af2a('0x153')](),'$lte':_0x1088bc()()[_0x15af2a('0x117b')](_0x15af2a('0x1837'))['utcOffset'](0x0,!![])[_0x15af2a('0x153')]()},'nolimit':!![]});}],'smsAccounts':[_0x4319ac('0x354'),_0x4319ac('0x15bc'),function _0x47b0a0(_0x5ac8db,_0x34becd){var _0x2ad1c1=_0x4319ac;return _0x34becd[_0x2ad1c1('0x21de')]('admin')?_0x5ac8db[_0x2ad1c1('0x8ac')](_0x2ad1c1('0x6c3'),{'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':'-updatedAt','limit':0xa,'offset':0x0}):_0x5ac8db[_0x2ad1c1('0x8ac')]('userProfile@getResources',{'id':_0x34becd[_0x2ad1c1('0x15ed')]()[_0x2ad1c1('0x1618')],'section':_0x2ad1c1('0x1fed'),'fields':_0x2ad1c1('0x201'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x4319ac('0x10e5')})[_0x4319ac('0x27e')](_0x4319ac('0x228b'),{'url':_0x4319ac('0xd03'),'data':{'selectedTab':0x5},'views':{'openchannel':{'templateUrl':_0x3f5414,'controller':_0x4319ac('0x22b7')}},'resolve':{'openchannelInteractions':[_0x4319ac('0x354'),function _0x50030e(_0x386b87){var _0x126b63=_0x4319ac;return _0x386b87[_0x126b63('0x8ac')]('openchannelInteraction@get',{'createdAt':{'$gte':_0x1088bc()()[_0x126b63('0x1982')](_0x126b63('0x1837'))[_0x126b63('0x215e')](0x0,!![])['format'](),'$lte':_0x1088bc()()[_0x126b63('0x117b')](_0x126b63('0x1837'))[_0x126b63('0x215e')](0x0,!![])[_0x126b63('0x153')]()},'nolimit':!![]});}],'openchannelAccounts':['apiResolver',_0x4319ac('0x15bc'),function _0x13bf38(_0x1e650d,_0x124e19){var _0x507368=_0x4319ac;return _0x124e19['hasRole'](_0x507368('0x1bd8'))?_0x1e650d[_0x507368('0x8ac')](_0x507368('0x2315'),{'fields':_0x507368('0x2587'),'sort':'-updatedAt','nolimit':!![]}):_0x1e650d[_0x507368('0x8ac')](_0x507368('0x52f'),{'id':_0x124e19[_0x507368('0x15ed')]()[_0x507368('0x1618')],'section':_0x507368('0x194d'),'fields':_0x507368('0x2587'),'sort':_0x507368('0x33'),'nolimit':!![]});}]},'authenticate':!![],'bodyClass':'dashboards'})[_0x4319ac('0x27e')](_0x4319ac('0x3ac'),{'url':'/fax','data':{'selectedTab':0x6},'views':{'fax':{'templateUrl':_0x1dd2c1,'controller':'UserFaxDashboardGeneralController\x20as\x20vm'}},'resolve':{'faxInteractions':[_0x4319ac('0x354'),function _0x54df01(_0xfd05da){var _0x107979=_0x4319ac;return _0xfd05da['resolve'](_0x107979('0x275e'),{'createdAt':{'$gte':_0x1088bc()()[_0x107979('0x1982')](_0x107979('0x1837'))[_0x107979('0x215e')](0x0,!![])[_0x107979('0x153')](),'$lte':_0x1088bc()()['endOf'](_0x107979('0x1837'))['utcOffset'](0x0,!![])[_0x107979('0x153')]()},'nolimit':!![]});}],'faxAccounts':[_0x4319ac('0x354'),'Auth',function _0x49c900(_0x30a516,_0xbac36f){var _0x4dbdaf=_0x4319ac;return _0xbac36f[_0x4dbdaf('0x21de')]('admin')?_0x30a516[_0x4dbdaf('0x8ac')]('faxAccount@get',{'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':_0x4dbdaf('0x33'),'limit':0xa,'offset':0x0}):_0x30a516[_0x4dbdaf('0x8ac')]('userProfile@getResources',{'id':_0xbac36f['getCurrentUser']()[_0x4dbdaf('0x1618')],'section':_0x4dbdaf('0xbe8'),'fields':_0x4dbdaf('0x7c5'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x4319ac('0x10e5')})[_0x4319ac('0x27e')](_0x4319ac('0xcc7'),{'url':'/whatsapp','data':{'selectedTab':0x7},'views':{'whatsapp':{'templateUrl':_0x1bc028,'controller':_0x4319ac('0x2432')}},'resolve':{'whatsappInteractions':['apiResolver',function _0x3c125a(_0x234eea){var _0x5e47df=_0x4319ac;return _0x234eea['resolve'](_0x5e47df('0x2770'),{'createdAt':{'$gte':_0x1088bc()()[_0x5e47df('0x1982')](_0x5e47df('0x1837'))['utcOffset'](0x0,!![])[_0x5e47df('0x153')](),'$lte':_0x1088bc()()[_0x5e47df('0x117b')](_0x5e47df('0x1837'))[_0x5e47df('0x215e')](0x0,!![])[_0x5e47df('0x153')]()},'nolimit':!![]});}],'whatsappAccounts':['apiResolver','Auth',function _0x1e26ea(_0x2ccd0d,_0x29034c){var _0x56fb45=_0x4319ac;return _0x29034c[_0x56fb45('0x21de')](_0x56fb45('0x1bd8'))?_0x2ccd0d['resolve']('whatsappAccount@get',{'fields':_0x56fb45('0x3cd'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x2ccd0d[_0x56fb45('0x8ac')](_0x56fb45('0x52f'),{'id':_0x29034c['getCurrentUser']()[_0x56fb45('0x1618')],'section':'WhatsappAccounts','fields':_0x56fb45('0x3cd'),'sort':_0x56fb45('0x33'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x4319ac('0x10e5')});}angular['module']('app.dashboards.general.user',[])['config'](_0x478d86)[_0x3877e3('0x1d5a')](_0x3877e3('0x1549'),_0x66afe2)[_0x3877e3('0x1d5a')](_0x3877e3('0x2510'),_0x2d4fab)[_0x3877e3('0x1d5a')]('UserFaxDashboardGeneralController',_0x711785)[_0x3877e3('0x1d5a')]('UserMailDashboardGeneralController',_0x576319)[_0x3877e3('0x1d5a')](_0x3877e3('0x1f0'),_0x469c12)['controller'](_0x3877e3('0x13bb'),_0x201d0f)['filter'](_0x3877e3('0x1fa3'),_0x4eeac0)[_0x3877e3('0x1551')](_0x3877e3('0x1f08'),_0x3ef6b7)['factory'](_0x3877e3('0xfa1'),_0xf9a20b)[_0x3877e3('0x1d5a')](_0x3877e3('0x837'),_0x279393)[_0x3877e3('0x1d5a')]('UserVoiceDashboardGeneralController',_0x5e709a)['controller'](_0x3877e3('0x1ddf'),_0x9ceaac);const _0x5b0a7e=_0x398308['p']+'src/js/modules/main/apps/dashboards/views/general/agent/interaction/dispose/dialog.html/dialog-[chunkhash].html',_0x5c4654=_0x398308['p']+_0x3877e3('0x12c5');var _0x1790d9=_0x398308(0x1d2),_0x3b4181=_0x398308['n'](_0x1790d9);_0x236045[_0x3877e3('0x1a81')]=[_0x3877e3('0x25ff'),_0x3877e3('0x13c1'),_0x3877e3('0x24e1'),_0x3877e3('0x15bc')],_0x352a5f[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$timeout',_0x3877e3('0x1850'),'$window','$translate','$document','Auth',_0x3877e3('0xccd'),_0x3877e3('0x25d8'),'toasty',_0x3877e3('0x21b3'),'globalLists',_0x3877e3('0x19b0'),_0x3877e3('0x368'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0x1576'),'msUtils'];function _0x352a5f(_0x1c76e7,_0x170a80,_0x403183,_0x2226d0,_0x3eff95,_0x1b846e,_0x4c8255,_0x48e863,_0x77ee3e,_0x297a85,_0x30865e,_0x5ce047,_0x46c7d0,_0x5bd88c,_0x117d10,_0x349468,_0x1bcd24,_0x29ef45){var _0x3180ff=_0x3877e3,_0x43e22b=this;_0x43e22b[_0x3180ff('0x2ff')]=_0x117d10,_0x43e22b['setting']=_0x349468,_0x43e22b[_0x3180ff('0xc51')]=_0x29ef45[_0x3180ff('0xc51')](),_0x43e22b[_0x3180ff('0x1775')]=_0x4c8255[_0x3180ff('0x15ed')](),_0x43e22b['currentTab']=0x0,_0x43e22b['notifications']={},_0x43e22b[_0x3180ff('0x174d')]={},_0x43e22b[_0x3180ff('0x1347')]={},_0x43e22b[_0x3180ff('0x21b3')]=_0x30865e||{'count':0x0,'rows':[]},_0x43e22b['globalLists']=_0x5ce047||{'count':0x0,'rows':[]},_0x43e22b['globalCompanies']=_0x46c7d0||{'count':0x0,'rows':[]},_0x43e22b['globalTags']=_0x5bd88c||{'count':0x0,'rows':[]},_0x43e22b[_0x3180ff('0x244e')]=_0x447f52,_0x43e22b[_0x3180ff('0x28f')]=_0x43dd58,_0x43e22b[_0x3180ff('0x21b9')]=_0x6c37eb,_0x43e22b['addContactTab']=_0x3decb4,_0x43e22b[_0x3180ff('0x11b4')]=_0x3b43be,_0x43e22b[_0x3180ff('0x13c2')]=_0xe96d8d,_0x43e22b[_0x3180ff('0x1831')]=_0x2a95f5,_0x43e22b[_0x3180ff('0x1e97')]=_0x181603,_0x43e22b[_0x3180ff('0x39d')]=_0x57e201,_0x77ee3e['on'](_0x3180ff('0x8c'),_0x152082),_0x77ee3e['on']('trigger:jscripty',_0x23e6ed),_0x77ee3e['on'](_0x3180ff('0x11fe'),_0x13b558),_0x77ee3e['on']('trigger:browser:url',_0x147dc6),_0x77ee3e['on'](_0x3180ff('0x1c9d'),_0x3e01fe),_0x77ee3e['on'](_0x3180ff('0x1263'),_0x245907),_0x77ee3e['on']('notification:remove',_0x1222a5),_0x77ee3e['on'](_0x3180ff('0x1686'),_0xbed333),_0x77ee3e['on'](_0x3180ff('0x569'),_0xbed333),_0x4723b5();function _0x4723b5(){var _0x163be2=_0x3180ff,_0x485e28=_0x2226d0[_0x163be2('0x161e')][_0x163be2('0x633')]('motion2.user:'+_0x43e22b[_0x163be2('0x1775')]['id']);if(_0x485e28)try{_0x485e28=JSON[_0x163be2('0x399')](_0x485e28),_0x43e22b['tabs']=_0x485e28[_0x163be2('0x174d')]?_0x485e28['tabs']:{},_0x43e22b[_0x163be2('0x3c7')]=_0x485e28[_0x163be2('0x3c7')]?_0x485e28[_0x163be2('0x3c7')]:0x0,_0xb12395(_0x43e22b[_0x163be2('0x174d')][_0x43e22b['currentTab']]);}catch(_0x10f34e){console['error'](_0x10f34e);}}function _0x181603(_0x1677af){var _0x286980=_0x3180ff,_0x51bca8={};for(var _0x35d12e in _0x43e22b[_0x286980('0x174d')]){typeof _0x43e22b[_0x286980('0x174d')][_0x35d12e]!==_0x286980('0xddc')&&(_0x51bca8[_0x35d12e]=_0x86640f()[_0x286980('0xc50')](_0x43e22b['tabs'][_0x35d12e],[_0x286980('0x7fa'),_0x286980('0x4b4'),'channel',_0x286980('0x2620'),_0x286980('0x20e2'),_0x286980('0x2650'),'id',_0x286980('0x15b4'),'badges']),!_0x86640f()[_0x286980('0x1c7')](_0x43e22b[_0x286980('0x174d')][_0x35d12e]['contact'])&&(_0x51bca8[_0x35d12e]['contact']=_0x86640f()[_0x286980('0xc50')](_0x43e22b[_0x286980('0x174d')][_0x35d12e]['contact'],['id',_0x286980('0x815')])),!_0x86640f()['isNil'](_0x43e22b[_0x286980('0x174d')][_0x35d12e]['calls'])&&(_0x51bca8[_0x35d12e]['calls']=_0x43e22b[_0x286980('0x174d')][_0x35d12e][_0x286980('0xd5b')]),_0x43e22b['tabs'][_0x35d12e][_0x286980('0x1d23')]&&(_0x51bca8[_0x35d12e][_0x286980('0x1d23')]=_0x86640f()[_0x286980('0xc50')](_0x43e22b[_0x286980('0x174d')][_0x35d12e]['interaction'],['id',_0x286980('0xc92'),_0x286980('0x723'),'ChatWebsiteId','FaxAccountId',_0x286980('0x822'),'WhatsappAccountId',_0x286980('0x14ba'),'draft'])));}var _0x46ae15=JSON[_0x286980('0x399')](_0x2226d0[_0x286980('0x161e')][_0x286980('0x633')](_0x286980('0x719')+_0x43e22b[_0x286980('0x1775')]['id']));_0x46ae15?(_0x46ae15[_0x286980('0x174d')]=_0x51bca8,_0x46ae15[_0x286980('0x3c7')]=_0x43e22b['currentTab']):_0x46ae15={'tabs':_0x51bca8,'currentTab':_0x43e22b[_0x286980('0x3c7')]},_0x2226d0[_0x286980('0x161e')][_0x286980('0x1014')]('motion2.user:'+_0x43e22b[_0x286980('0x1775')]['id'],JSON[_0x286980('0x25e')](_0x46ae15)),_0x1677af&&_0xb12395(_0x1677af);}function _0xb12395(_0x2afedb){var _0x5a059b=_0x3180ff;if(_0x86640f()[_0x5a059b('0x1c7')](_0x2afedb)||_0x2afedb&&_0x2afedb[_0x5a059b('0x7fa')]==='interaction'){var _0x18fdf8={'id':_0x43e22b[_0x5a059b('0x1775')]['id'],'online':!![],'capacity':{'mail':0x0,'fax':0x0,'sms':0x0,'whatsapp':0x0,'openchannel':0x0,'chat':0x0},'interaction':{'mail':[],'fax':[],'sms':[],'whatsapp':[],'openchannel':[],'chat':[]}};for(var _0x557d95 in _0x43e22b['tabs']){typeof _0x43e22b[_0x5a059b('0x174d')][_0x557d95]!==_0x5a059b('0xddc')&&(typeof _0x18fdf8[_0x5a059b('0x61e')][_0x43e22b['tabs'][_0x557d95][_0x5a059b('0x27b5')]]!==_0x5a059b('0xddc')&&_0x43e22b['tabs'][_0x557d95][_0x5a059b('0x1d23')]&&!_0x43e22b[_0x5a059b('0x174d')][_0x557d95][_0x5a059b('0x1d23')][_0x5a059b('0x14ba')]&&(_0x18fdf8[_0x5a059b('0x61e')][_0x43e22b[_0x5a059b('0x174d')][_0x557d95][_0x5a059b('0x27b5')]]+=0x1,_0x18fdf8[_0x5a059b('0x1d23')][_0x43e22b[_0x5a059b('0x174d')][_0x557d95][_0x5a059b('0x27b5')]][_0x5a059b('0x206c')](_0x43e22b[_0x5a059b('0x174d')][_0x557d95]['interaction']['id'])));}if(!_0x86640f()['isEqual'](_0x43e22b[_0x5a059b('0x1347')],_0x18fdf8[_0x5a059b('0x61e')]))return _0x43e22b[_0x5a059b('0x1347')]=_0x18fdf8[_0x5a059b('0x61e')],_0x48e863[_0x5a059b('0x9ac')][_0x5a059b('0x25')](_0x18fdf8);}}function _0x57e201(_0xe813bd){var _0x4fa402=_0x3180ff,_0x5c5de6=![],_0x2b5db0=_0x403183[_0x4fa402('0xa33')]()['title'](_0xe813bd[_0x4fa402('0x7fa')]===_0x4fa402('0x1d23')?_0x4fa402('0x2d4'):_0x4fa402('0x25fe')+_0xe813bd['type']+'?')[_0x4fa402('0x226d')](_0xe813bd[_0x4fa402('0x7fa')]===_0x4fa402('0x1d23')?'':_0x4fa402('0x15f2')+_0xe813bd[_0x4fa402('0x7fa')]+'\x20has\x20been\x20modified.\x20Closing\x20will\x20lose\x20all\x20changes!')[_0x4fa402('0x7a7')](_0x4fa402('0x1dfd'))['ok'](_0xe813bd['type']===_0x4fa402('0x1d23')?'YES':'OK')['cancel'](_0xe813bd['type']===_0x4fa402('0x1d23')?'NO':_0x4fa402('0x284b'));if(_0xe813bd[_0x4fa402('0x15b4')]){var _0x5879bb=![];_0x86640f()[_0x4fa402('0x1a52')](_0xe813bd[_0x4fa402('0xd5b')],function(_0xbf613b){var _0x624035=_0x4fa402;_0xbf613b[_0x624035('0x798')]&&(_0x5879bb=!![]);});if(_0xe813bd[_0x4fa402('0x7fa')]===_0x4fa402('0x150c')&&_0xe813bd[_0x4fa402('0xd5b')][_0x4fa402('0x577')]>0x0){var _0x5e0999=undefined;if(_0x5879bb)_0x5e0999=_0x403183[_0x4fa402('0x95b')]()['title'](_0x4fa402('0xb38'))[_0x4fa402('0x226d')]('There\x20is\x20a\x20call\x20that\x20hasn\x27t\x20been\x20disposed\x20yet.')['ok']('OK'),_0x403183[_0x4fa402('0x853')](_0x5e0999)['finally'](function(){_0x5e0999=undefined;});else return _0x2b5db0['_options']['textContent']=_0x4fa402('0x218b'),_0x403183['show'](_0x2b5db0)[_0x4fa402('0x21ad')](function(){_0x2a95f5(_0xe813bd);});}else _0x2a95f5(_0xe813bd);}else{var _0x1141b9=_0x43e22b[_0x4fa402('0x1775')]['voicePause']||_0x43e22b[_0x4fa402('0x1775')]['chatPause']||_0x43e22b['user'][_0x4fa402('0x1396')]||_0x43e22b[_0x4fa402('0x1775')][_0x4fa402('0x2022')]||_0x43e22b[_0x4fa402('0x1775')][_0x4fa402('0x23f5')];return _0x5c5de6=![],_0xe813bd[_0x4fa402('0x7fa')]===_0x4fa402('0x1d23')&&(_0x5c5de6=_0xe813bd['interaction'][_0x4fa402('0x5f0')]['mandatoryDisposition']),_0x403183[_0x4fa402('0x853')](_0x2b5db0)[_0x4fa402('0x21ad')](function(){var _0x56a4cd=_0x4fa402;_0xe813bd['type']===_0x56a4cd('0x1d23')&&_0x403183[_0x56a4cd('0x853')]({'controller':'DisposeInteractionDialogController','controllerAs':'vm','templateUrl':_0x5b0a7e,'parent':angular['element'](_0x1b846e[_0x56a4cd('0x2452')]),'onRemoving':function _0x13e4bc(){var _0x3342ca=_0x56a4cd;_0x43e22b[_0x3342ca('0x1775')]&&_0x5c5de6&&!_0x1141b9&&_0x48e863['user'][_0x3342ca('0xa8e')]({'id':_0x43e22b['user']['id']})['$promise'][_0x3342ca('0x1c1d')](function(_0x4a41a3){var _0x2dce3c=_0x3342ca;console[_0x2dce3c('0x2092')](_0x4a41a3);});},'clickOutsideToClose':!_0x5c5de6,'escapeToClose':!_0x5c5de6,'locals':{'user':_0x43e22b[_0x56a4cd('0x1775')],'channel':_0xe813bd[_0x56a4cd('0x27b5')],'interaction':_0xe813bd[_0x56a4cd('0x1d23')]}}),_0x2a95f5(_0xe813bd);})['catch'](function(){var _0x3a4b37=_0x4fa402;_0xe813bd[_0x3a4b37('0x7fa')]===_0x3a4b37('0x1d23')&&_0x2a95f5(_0xe813bd);});}}function _0x2debb3(_0x30817b){var _0x5d221d=_0x3180ff;if(_0x30817b[_0x5d221d('0x27b5')]&&_0x30817b[_0x5d221d('0x1d23')])return _0x48e863[_0x5d221d('0x1775')][_0x5d221d('0x16a2')+_0x86640f()[_0x5d221d('0x22e')](_0x30817b['channel'])+'Interactions']({'id':_0x43e22b[_0x5d221d('0x1775')]['id'],'ids':[_0x30817b['interaction']['id']]})[_0x5d221d('0x1376')][_0x5d221d('0x1c1d')](function(_0x13c144){var _0x4ba8f0=_0x5d221d;console[_0x4ba8f0('0x2092')](_0x13c144);});}function _0x2a95f5(_0x144594){var _0x58d899=_0x3180ff;if(_0x43e22b[_0x58d899('0x174d')][_0x144594['id']]){_0x2debb3(_0x43e22b['tabs'][_0x144594['id']]),delete _0x43e22b['tabs'][_0x144594['id']],_0x43e22b[_0x58d899('0x3c7')]=0x0,_0x181603(_0x144594);if(_0x144594[_0x58d899('0x7fa')]===_0x58d899('0x1d23'))return _0x48e863[_0x144594[_0x58d899('0x27b5')]+_0x58d899('0xec3')][_0x58d899('0x595')]({'id':_0x144594['interaction']['id']})[_0x58d899('0x1376')]['then'](function(_0x5deeb0){var _0x35e2f3=_0x58d899;return _0x48e863[_0x35e2f3('0x1775')][_0x35e2f3('0x16a2')+_0x86640f()[_0x35e2f3('0x22e')](_0x144594[_0x35e2f3('0x27b5')])+_0x35e2f3('0x17e4')]({'id':_0x43e22b[_0x35e2f3('0x1775')]['id'],'ids':[_0x5deeb0['id']]})['$promise'];})[_0x58d899('0x1c1d')](function(_0x31314a){console['error'](_0x31314a);});}}function _0xe96d8d(_0x585aae){var _0x5262ad=_0x3180ff;_0x585aae['id']=_0x86640f()[_0x5262ad('0x271f')](0x2540be400),_0x585aae[_0x5262ad('0x2766')]=new Date(),_0x585aae[_0x5262ad('0x15b4')]=![],_0x585aae[_0x5262ad('0x1d6b')]=0x0,_0x43e22b[_0x5262ad('0x174d')][_0x585aae['id']]=_0x585aae,_0x43e22b[_0x5262ad('0x3c7')]=_0x585aae['id'],_0x181603(_0x585aae);}function _0x43dd58(_0x9b82fb){return _0x9b82fb===_0x43e22b['currentTab'];}function _0x447f52(_0x5a6018){var _0x2aa949=_0x3180ff;_0x43e22b[_0x2aa949('0x3c7')]=_0x5a6018,_0x181603(_0x43e22b[_0x2aa949('0x174d')][_0x5a6018]);}function _0x6c37eb(_0x17a1d5){var _0xc63336=_0x3180ff;return _0x86640f()[_0xc63336('0x1d2e')](_0x43e22b[_0xc63336('0x174d')],function(_0xfaa2e1){var _0x559ffb=_0xc63336;return _0xfaa2e1[_0x559ffb('0x7fa')]===_0x559ffb('0x1d23')&&_0xfaa2e1['interaction']&&_0xfaa2e1['interaction']['id']==_0x17a1d5[_0x559ffb('0x1bb')]&&_0xfaa2e1[_0x559ffb('0x27b5')]==_0x17a1d5[_0x559ffb('0x27b5')];});}function _0x34793c(_0x54a1bd){var _0x4d6425=_0x3180ff,_0x4c77b1='';if(_0x54a1bd){if(_0x54a1bd[_0x4d6425('0x992')]||_0x54a1bd[_0x4d6425('0x6d')])_0x54a1bd[_0x4d6425('0x992')]&&(_0x4c77b1+=_0x54a1bd['firstName']+'\x20'),_0x54a1bd[_0x4d6425('0x6d')]&&(_0x4c77b1+=_0x54a1bd[_0x4d6425('0x6d')]);else _0x54a1bd[_0x4d6425('0x159e')]&&(_0x4c77b1=_0x54a1bd[_0x4d6425('0x159e')]);}return _0x4c77b1;}function _0x4f5607(_0x283272){var _0x14476a=_0x3180ff;switch(_0x283272){case _0x14476a('0x1f65'):return'icon-hangouts';case'mail':return _0x14476a('0xc39');case'sms':return _0x14476a('0x2750');case _0x14476a('0xac9'):return'icon-google-earth';case _0x14476a('0x93f'):return'icon-deskphone';case _0x14476a('0x1ad4'):return _0x14476a('0x1d88');default:return _0x14476a('0x244f');}}function _0x16cee5(_0x161a18){var _0x2243c0=_0x3180ff;switch(_0x161a18){case _0x2243c0('0x1f65'):return _0x2243c0('0x11aa');case'mail':return _0x2243c0('0x1d66');case'sms':return _0x2243c0('0x272d');case _0x2243c0('0xac9'):return _0x2243c0('0xaa0');case'fax':return _0x2243c0('0x14b7');case'whatsapp':return _0x2243c0('0x529');default:return _0x2243c0('0x778');}}function _0x3decb4(_0x1ad2d3,_0x3caab0){var _0x519c77=_0x3180ff,_0x302a89={'type':_0x519c77('0x150c'),'title':_0x1ad2d3?_0x34793c(_0x1ad2d3):_0x3eff95[_0x519c77('0x183e')](_0x519c77('0x224d')),'icon':_0x519c77('0x6c9'),'color':_0x519c77('0x1b84'),'contact':_0x1ad2d3,'calls':_0x3caab0?[_0x3caab0]:[],'autoCreate':_0x3caab0?_0x3caab0[_0x519c77('0x2650')]:0x0};if(_0x3caab0){if(_0x3caab0[_0x519c77('0x2c4')]&&_0x3caab0[_0x519c77('0x2c4')]===_0x519c77('0xb6b'))_0x3caab0[_0x519c77('0x1176')]=_0x3caab0[_0x519c77('0xa6c')]?_0x1088bc()(_0x3caab0[_0x519c77('0xa6c')],_0x519c77('0x1e15'))[_0x519c77('0x17c1')]():new Date();else{if(_0x3caab0[_0x519c77('0x968')]){var _0x4052a5=_0x3caab0[_0x519c77('0x968')][_0x519c77('0x1af5')]('.')[0x0];_0x3caab0[_0x519c77('0x1176')]=_0x4052a5?new Date(parseInt(_0x4052a5)*0x3e8):new Date();}}(_0x3caab0[_0x519c77('0x2509')]||_0x3caab0[_0x519c77('0x8ca')])&&_0x13467f(_0x3caab0);}if(_0x1ad2d3){var _0x2af52f=_0x86640f()[_0x519c77('0x1d2e')](_0x43e22b[_0x519c77('0x174d')],function(_0x5b0e44){var _0x6f3ca=_0x519c77;if(_0x5b0e44[_0x6f3ca('0x150c')]&&_0x5b0e44[_0x6f3ca('0x150c')]['id'])return _0x5b0e44[_0x6f3ca('0x7fa')]===_0x6f3ca('0x150c')&&_0x5b0e44[_0x6f3ca('0x150c')]&&_0x5b0e44[_0x6f3ca('0x150c')]['id']==_0x1ad2d3['id'];return _0x5b0e44['type']===_0x6f3ca('0x150c')&&_0x5b0e44['contact']&&_0x5b0e44[_0x6f3ca('0x150c')][_0x6f3ca('0x159e')]==_0x1ad2d3[_0x6f3ca('0x159e')];});if(_0x2af52f){if(_0x3caab0)return _0x48e863['voiceCallReport'][_0x519c77('0x595')]({'uniqueid':_0x3caab0[_0x519c77('0x968')]})[_0x519c77('0x1376')][_0x519c77('0x21ad')](function(_0x2a7fca){var _0x29d0ca=_0x519c77;_0x2a7fca&&_0x2a7fca[_0x29d0ca('0x1b33')][_0x29d0ca('0x577')]>0x0&&(_0x3caab0['disposedAt']=_0x86640f()[_0x29d0ca('0x2019')](_0x2a7fca[_0x29d0ca('0x1b33')])['endtime']);if(_0x2af52f['calls']){var _0x167548=_0x86640f()[_0x29d0ca('0x1d2e')](_0x2af52f[_0x29d0ca('0xd5b')],function(_0x262ef4){var _0x15778a=_0x29d0ca;return _0x262ef4[_0x15778a('0x968')]===_0x3caab0[_0x15778a('0x968')];});!_0x167548&&_0x2af52f[_0x29d0ca('0xd5b')][_0x29d0ca('0x206c')](_0x3caab0);}else _0x2af52f[_0x29d0ca('0xd5b')]=[_0x3caab0];_0x43e22b[_0x29d0ca('0x3c7')]=_0x2af52f['id'];});}else{if(_0x1ad2d3[_0x519c77('0x815')])return _0x48e863[_0x519c77('0x22c8')][_0x519c77('0x595')]({'ListId':_0x1ad2d3[_0x519c77('0x815')]})[_0x519c77('0x1376')][_0x519c77('0x21ad')](function(_0x5cb927){var _0x1010c8=_0x519c77;return _0x302a89[_0x1010c8('0x10d0')]=_0x5cb927,_0x48e863[_0x1010c8('0x11e0')][_0x1010c8('0xb2d')]({'id':_0x1ad2d3[_0x1010c8('0x815')]})['$promise'];})[_0x519c77('0x21ad')](function(_0x2be096){var _0x47a27c=_0x519c77;_0x302a89[_0x47a27c('0xbbd')]=_0x2be096;})[_0x519c77('0x1c1d')](_0x570a9e())[_0x519c77('0x13e')](function(){_0xe96d8d(_0x302a89);});else _0xe96d8d(_0x302a89);}}else _0xe96d8d(_0x302a89);}function _0x3b43be(_0x45be4f,_0x42195f){var _0x4d41bd=_0x3180ff,_0x3ff0ad=_0x86640f()[_0x4d41bd('0x1d2e')](_0x43e22b[_0x4d41bd('0x174d')],function(_0x368e91){var _0x425911=_0x4d41bd;return _0x368e91[_0x425911('0x7fa')]===_0x425911('0x1d23')&&_0x368e91[_0x425911('0x1d23')]&&_0x368e91[_0x425911('0x1d23')]['id']===_0x42195f['id']&&_0x368e91['channel']===_0x45be4f;});_0x3ff0ad?(_0x3ff0ad[_0x4d41bd('0x1fde')]=_0x42195f[_0x4d41bd('0x1fde')]||![],_0x43e22b[_0x4d41bd('0x3c7')]=_0x3ff0ad['id']):(_0x3ff0ad={'type':_0x4d41bd('0x1d23'),'title':_0x45be4f?_0x45be4f[_0x4d41bd('0x2e8')]():_0x4d41bd('0xac9'),'icon':_0x4f5607(_0x45be4f),'color':_0x16cee5(_0x45be4f),'channel':_0x45be4f,'interaction':_0x42195f,'isDraft':_0x42195f[_0x4d41bd('0x1fde')]||![]},_0xe96d8d(_0x3ff0ad));}function _0xd14ed9(_0x1db3b2){var _0x2a4321=_0x3180ff,_0x3083f4={'autoClose':!![],'duration':0xa,'showOnPageHidden':!![],'icon':_0x2a4321('0x976'),'body':_0x1db3b2['queue']?_0x2a4321('0x677')+_0x1db3b2[_0x2a4321('0xbdd')]:'','focusOnclick':!![],'closeOnClick':!![]};_0x1bcd24[_0x2a4321('0x853')](_0x1db3b2[_0x2a4321('0x4b4')],_0x3083f4);}function _0x857cae(_0x59b801){var _0x1312bb=_0x3180ff;_0x1bcd24[_0x1312bb('0xe23')]()?_0x1bcd24['requestPermission']()[_0x1312bb('0x21ad')](function(){_0xd14ed9(_0x59b801);},function(_0x4c7bb4){var _0x5ca5ee=_0x1312bb;console[_0x5ca5ee('0x2092')](_0x5ca5ee('0xeb0'),_0x4c7bb4);}):console[_0x1312bb('0x2092')]('Browser\x20notifications\x20are\x20not\x20supported\x20by\x20the\x20browser.\x20Normal\x20notifications\x20will\x20be\x20used.');}function _0x245907(_0x544204){var _0x5eb915=_0x3180ff;if(_0x544204&&_0x544204[_0x5eb915('0x968')]){_0x857cae(_0x544204);var _0x2ab3ab=_0x6c37eb(_0x544204);if(_0x2ab3ab){if(_0x48e863[_0x544204[_0x5eb915('0x27b5')]+_0x5eb915('0x1ee8')])return _0x43e22b['currentTab']!==_0x2ab3ab['id']&&(_0x2ab3ab[_0x5eb915('0x1d6b')]+=0x1),_0x48e863[_0x544204[_0x5eb915('0x27b5')]+_0x5eb915('0x1ee8')][_0x5eb915('0x134f')]({'id':_0x544204['id'],'UserId':_0x43e22b['user']['id']})['$promise'][_0x5eb915('0x1c1d')](_0x570a9e());}else _0x297a85[_0x5eb915('0x2111')]({'title':_0x544204[_0x5eb915('0x4b4')],'msg':_0x544204[_0x5eb915('0x77c')]||'','showClose':![],'clickToClose':![],'timeout':![],'sound':_0x544204['sound'],'html':!![],'shake':_0x544204['shake']||![],'onAdd':function _0x32d34b(){_0x43e22b['notifications'][_0x544204['uniqueid']]=this['id'];},'onAccept':function _0x352177(){var _0x34d6a2=_0x5eb915;_0x1222a5(_0x544204);if(_0x48e863[_0x544204[_0x34d6a2('0x27b5')]+_0x34d6a2('0x1ee8')])return _0x48e863[_0x544204['channel']+_0x34d6a2('0x1ee8')][_0x34d6a2('0x134f')]({'id':_0x544204['id'],'UserId':_0x43e22b[_0x34d6a2('0x1775')]['id'],'manual':!![]})[_0x34d6a2('0x1376')][_0x34d6a2('0x21ad')](function(_0x27f926){var _0x304b51=_0x34d6a2;_0x3b43be(_0x27f926[_0x304b51('0x27b5')],_0x27f926[_0x304b51('0x1d23')]),_0x297a85[_0x304b51('0xdb1')]({'title':_0x304b51('0x182c'),'msg':_0x304b51('0x163e')});})[_0x34d6a2('0x1c1d')](_0x570a9e());},'onReject':function _0x37450c(){var _0x2f95fc=_0x5eb915;_0x1222a5(_0x544204);if(_0x48e863[_0x544204['channel']+_0x2f95fc('0x1ee8')])return _0x48e863[_0x544204['channel']+_0x2f95fc('0x1ee8')]['reject']({'id':_0x544204['id'],'UserId':_0x43e22b[_0x2f95fc('0x1775')]['id']})[_0x2f95fc('0x1376')][_0x2f95fc('0x21ad')](function(){var _0x1712b8=_0x2f95fc;_0x297a85[_0x1712b8('0xdb1')]({'title':_0x1712b8('0x18f3'),'msg':_0x1712b8('0x2585')});})[_0x2f95fc('0x1c1d')](_0x570a9e());}});}}function _0x1222a5(_0x5a4b51){var _0x193d42=_0x3180ff;_0x5a4b51&&_0x5a4b51['uniqueid']&&(_0x43e22b[_0x193d42('0x1acb')][_0x5a4b51['uniqueid']]&&(_0x297a85[_0x193d42('0x18ee')](_0x43e22b[_0x193d42('0x1acb')][_0x5a4b51[_0x193d42('0x968')]]),delete _0x43e22b[_0x193d42('0x1acb')][_0x5a4b51[_0x193d42('0x968')]]));}function _0x152082(_0x94f6cc){var _0x5a787e=_0x3180ff;if(!_0x94f6cc['contacts']){_0x3decb4(_0x94f6cc[_0x5a787e('0x150c')],_0x94f6cc['evt']);return;}_0x403183[_0x5a787e('0x853')]({'controller':_0x5a787e('0x1a4a'),'controllerAs':'vm','templateUrl':_0x5c4654,'parent':angular[_0x5a787e('0x1676')](_0x1b846e[_0x5a787e('0x2452')]),'locals':{'contacts':_0x94f6cc[_0x5a787e('0x2814')],'callNumber':_0x94f6cc[_0x5a787e('0x1aad')]['routeId']?_0x94f6cc[_0x5a787e('0x1aad')][_0x5a787e('0x112e')]:_0x94f6cc[_0x5a787e('0x1aad')][_0x5a787e('0x5d4')]}})['then'](function(_0x2f3ea6){var _0x11a4c2=_0x5a787e;_0x3decb4(_0x2f3ea6,_0x94f6cc[_0x11a4c2('0x1aad')]);});}function _0x23e6ed(_0x3d0194){var _0x12b934=_0x3180ff;return _0x48e863['jscriptyProject']['get']({'id':_0x3d0194['ProjectId']})[_0x12b934('0x1376')][_0x12b934('0x21ad')](function(_0x31d5b3){var _0x1eed41=_0x12b934;if(_0x31d5b3){if(_0x86640f()['isUndefined'](_0x3d0194[_0x1eed41('0x1df8')])){try{_0x31d5b3[_0x1eed41('0x244a')]=_0x3b4181()[_0x1eed41('0x10af')](_0x31d5b3[_0x1eed41('0x244a')],_0x86640f()[_0x1eed41('0xd0e')](_0x3d0194,{'user':_0x43e22b[_0x1eed41('0x1775')]}));}catch(_0x4b736c){console['error'](_0x4b736c);}_0xe96d8d({'type':_0x1eed41('0x9c7'),'title':_0x31d5b3[_0x1eed41('0x19fe')],'icon':_0x1eed41('0x1ed3'),'color':_0x1eed41('0x778'),'project':_0x31d5b3,'call':_0x3d0194});}else return _0x48e863[_0x1eed41('0x25dc')]['get']({'id':_0x3d0194['xmd-contactid']})[_0x1eed41('0x1376')][_0x1eed41('0x21ad')](function(_0x16efe1){var _0x3ae9fd=_0x1eed41;try{_0x31d5b3[_0x3ae9fd('0x244a')]=_0x3b4181()[_0x3ae9fd('0x10af')](_0x31d5b3['formData'],_0x86640f()[_0x3ae9fd('0xd0e')](_0x3d0194,{'user':_0x43e22b[_0x3ae9fd('0x1775')],'contact':_0x16efe1}));}catch(_0x430849){console['error'](_0x430849);}_0xe96d8d({'type':_0x3ae9fd('0x9c7'),'title':_0x31d5b3[_0x3ae9fd('0x19fe')],'icon':_0x3ae9fd('0x1ed3'),'color':_0x3ae9fd('0x778'),'project':_0x31d5b3,'call':_0x3d0194,'contact':_0x16efe1});})['catch'](_0x570a9e());}})[_0x12b934('0x1c1d')](_0x570a9e());}function _0x147dc6(_0x5c3cd9){var _0x571c71=_0x3180ff;if(_0x5c3cd9&&_0x5c3cd9[_0x571c71('0xa21')]){_0x5c3cd9['uri']=_0x86640f()['replace'](_0x5c3cd9['uri'],'<%3B',''),_0x5c3cd9[_0x571c71('0xa21')]=_0x86640f()[_0x571c71('0x16e4')](_0x5c3cd9[_0x571c71('0xa21')],'=>%3B=','');if(_0x5c3cd9[_0x571c71('0x1a04')])switch(_0x5c3cd9[_0x571c71('0x1a04')]){case'0':_0x2226d0[_0x571c71('0xe5d')](_0x5c3cd9[_0x571c71('0xa21')]);break;case'1':_0x2226d0[_0x571c71('0xe5d')](_0x5c3cd9[_0x571c71('0xa21')],'_blank',_0x571c71('0x2243')+(_0x5c3cd9[_0x571c71('0x25de')]||_0x571c71('0x148'))+',height='+_0x5c3cd9[_0x571c71('0xf2d')]||0x0);break;case'2':{var _0x66757={'type':_0x571c71('0x1165'),'title':_0x5c3cd9[_0x571c71('0xa21')],'icon':'icon-google-earth','color':_0x571c71('0x139d'),'src':_0x5c3cd9['uri']};_0xe96d8d(_0x66757);}break;default:_0x2226d0[_0x571c71('0xe5d')](_0x5c3cd9[_0x571c71('0xa21')]);}else _0x2226d0['open'](_0x5c3cd9[_0x571c71('0xa21')]);}}function _0x3e01fe(_0x15801d){var _0xabfa27=_0x3180ff;_0x15801d&&_0x15801d['html']&&_0xe96d8d({'type':_0xabfa27('0x114c'),'title':_0x15801d[_0xabfa27('0x5d4')]||'popup','icon':_0xabfa27('0xf96'),'color':_0xabfa27('0x778'),'html':_0x15801d[_0xabfa27('0x8b')]});}function _0x13b558(_0x240acc){var _0x549360=_0x3180ff,_0xde97ec=_0x240acc['calleridname']&&_0x240acc[_0x549360('0xec8')]!==''?_0x240acc['calleridname']:_0x240acc[_0x549360('0x5d4')],_0x15f023=_0x240acc[_0x549360('0x5d4')];return _0x48e863['squareMessage'][_0x549360('0x595')]({'fields':'id','limit':0x1,'offset':0x0,'uniqueid':_0x240acc[_0x549360('0x968')]})[_0x549360('0x1376')]['then'](function(_0x414f0e){var _0x2a6d7a=_0x549360;_0x414f0e[_0x2a6d7a('0x205f')]&&_0xe96d8d({'type':_0x2a6d7a('0x2104'),'title':_0xde97ec+'\x20<'+_0x15f023+'>','icon':'fas\x20fa-robot','color':_0x2a6d7a('0x94c'),'data':{'uniqueid':_0x240acc[_0x2a6d7a('0x968')]}});});}function _0xbed333(_0x351e18){var _0x1a5ba5=_0x3180ff;console[_0x1a5ba5('0x6f8')](_0x1a5ba5('0x15d4'),_0x351e18);for(var _0x5bc1fd in _0x43e22b[_0x1a5ba5('0x174d')]){if(typeof _0x43e22b[_0x1a5ba5('0x174d')][_0x5bc1fd]!=='undefined'){var _0x5ba1fc=_0x43e22b[_0x1a5ba5('0x174d')][_0x5bc1fd];if(_0x5ba1fc['calls']){console[_0x1a5ba5('0x6f8')]('onVoiceChannelRemove\x20->\x20\x20key,\x20tab,\x20tab.calls',_0x5bc1fd,_0x5ba1fc,_0x5ba1fc['calls']);var _0xa8bdff=_0x86640f()[_0x1a5ba5('0x127')](_0x5ba1fc[_0x1a5ba5('0xd5b')],function(_0x321d13){var _0x2ac0a8=_0x1a5ba5;return _0x321d13[_0x2ac0a8('0x968')]===_0x351e18['uniqueid'];});_0xa8bdff>=0x0&&!_0x5ba1fc[_0x1a5ba5('0xd5b')][_0xa8bdff][_0x1a5ba5('0x1f3f')]?(console['debug'](_0x1a5ba5('0x1214'),_0x351e18[_0x1a5ba5('0x968')]),_0x13467f(_0x5ba1fc['calls'][_0xa8bdff])):console['debug'](_0x1a5ba5('0x22c2'),_0x351e18[_0x1a5ba5('0x968')]),_0x43e22b['contact']&&_0x43e22b[_0x1a5ba5('0x150c')]['id']&&_0x170a80(_0x3eac42(_0x351e18[_0x1a5ba5('0x968')],_0x43e22b[_0x1a5ba5('0x150c')]['id'],_0x5ba1fc),0x3e8);}}}_0x181603();}function _0x3eac42(_0x3bcb72,_0x5146ba,_0x3986fe){return function(){var _0x3dd590=a0_0x2e7f,_0x36b124=_0x86640f()[_0x3dd590('0x1d2e')](_0x3986fe[_0x3dd590('0xd5b')],function(_0x2bd991){return _0x2bd991['uniqueid']===_0x3bcb72;});if(_0x36b124)return _0x48e863['voiceCallReport']['update']({'id':_0x3bcb72,'ContactId':_0x5146ba})['$promise'][_0x3dd590('0x1c1d')](function(_0x11c93d){var _0x5286df=_0x3dd590;console[_0x5286df('0x2092')](_0x11c93d);});};}function _0x13467f(_0x1f0369){var _0x1495d5=_0x3180ff;_0x1f0369[_0x1495d5('0x1f3f')]=new Date();}function _0x570a9e(){return function(_0x5c0c7f){var _0x3c8345=a0_0x2e7f;if(_0x5c0c7f[_0x3c8345('0x209')]===0x194)_0x297a85[_0x3c8345('0x2649')]({'title':_0x3eff95[_0x3c8345('0x183e')](_0x3c8345('0x61b')),'msg':_0x3eff95[_0x3c8345('0x183e')]('DASHBOARDS.ACCEPT_ELSEWHERE')});else{if(_0x5c0c7f[_0x3c8345('0x11c2')]&&_0x5c0c7f[_0x3c8345('0x11c2')][_0x3c8345('0x1a69')]&&_0x5c0c7f[_0x3c8345('0x11c2')]['errors'][_0x3c8345('0x577')]){_0x43e22b[_0x3c8345('0x1a69')]=_0x5c0c7f[_0x3c8345('0x11c2')][_0x3c8345('0x1a69')]||[{'message':_0x5c0c7f[_0x3c8345('0x174f')](),'type':_0x3c8345('0x134e')}];for(var _0x321519=0x0;_0x321519<_0x5c0c7f[_0x3c8345('0x11c2')][_0x3c8345('0x1a69')][_0x3c8345('0x577')];_0x321519+=0x1){_0x297a85[_0x3c8345('0x2092')]({'title':_0x5c0c7f[_0x3c8345('0x11c2')][_0x3c8345('0x1a69')][_0x321519]['type'],'msg':_0x5c0c7f[_0x3c8345('0x11c2')][_0x3c8345('0x1a69')][_0x321519][_0x3c8345('0x1224')]});}}else _0x297a85[_0x3c8345('0x2092')]({'title':_0x5c0c7f['status']?'API:'+_0x5c0c7f[_0x3c8345('0x209')]+'\x20-\x20'+_0x5c0c7f['statusText']:_0x3c8345('0x134e'),'msg':_0x5c0c7f[_0x3c8345('0x11c2')]?JSON[_0x3c8345('0x25e')](_0x5c0c7f[_0x3c8345('0x11c2')]['message']):_0x5c0c7f['toString']()});}};}_0x1c76e7[_0x3180ff('0x1723')]('$destroy',function(){var _0x2ec6b8=_0x3180ff;for(var _0x1b0b07 in _0x43e22b[_0x2ec6b8('0x1acb')]){typeof _0x43e22b[_0x2ec6b8('0x1acb')][_0x1b0b07]!==_0x2ec6b8('0xddc')&&_0x1222a5({'uniqueid':_0x1b0b07});}_0x77ee3e[_0x2ec6b8('0x16cc')](_0x2ec6b8('0x8c')),_0x77ee3e['removeAllListeners']('trigger:jscripty'),_0x77ee3e[_0x2ec6b8('0x16cc')]('trigger:browser:url'),_0x77ee3e[_0x2ec6b8('0x16cc')](_0x2ec6b8('0x1c9d')),_0x77ee3e[_0x2ec6b8('0x16cc')](_0x2ec6b8('0x1263')),_0x77ee3e[_0x2ec6b8('0x16cc')](_0x2ec6b8('0x1936')),_0x77ee3e[_0x2ec6b8('0x16cc')](_0x2ec6b8('0x1686')),_0x77ee3e[_0x2ec6b8('0x16cc')](_0x2ec6b8('0x569'));});}function _0x236045(_0x3bac75,_0x35f92b,_0x1d68b5,_0x4066bf){var _0x3d76ae=_0x3877e3,_0x1659ff={},_0x1eaa60={},_0x11295e={},_0x195782={};_0x1659ff[_0x3d76ae('0x1d75')]=function(){var _0x1070cd=_0x3d76ae;_0x1659ff[_0x1070cd('0x1bba')]=_0x2be32d();},_0x1659ff['getByInteraction']=function(_0x1e89e9){var _0x3f0974=_0x3d76ae;return _0x1659ff[_0x3f0974('0x1bba')]=_0x2be32d(),_0x86640f()[_0x3f0974('0x1d2e')](_0x86640f()[_0x3f0974('0x1843')](_0x1659ff[_0x3f0974('0x1bba')]),function(_0x132480){var _0x2037e5=_0x3f0974;return _0x132480[_0x2037e5('0x1d23')]&&_0x132480[_0x2037e5('0x1d23')]['id']===_0x1e89e9;});},_0x1659ff[_0x3d76ae('0xf08')]=function(_0x3d3e1b){var _0x19e6d9=_0x3d76ae;_0x1659ff['drafts']=_0x2be32d();var _0x5d3676=_0x86640f()[_0x19e6d9('0x1d2e')](_0x86640f()[_0x19e6d9('0x1843')](_0x1659ff['drafts']),function(_0x19f26f){var _0xff6681=_0x19e6d9;return _0x19f26f['interaction']&&_0x19f26f[_0xff6681('0x1d23')]['id']===_0x3d3e1b;});_0x5d3676&&(delete _0x1659ff['drafts'][_0x5d3676['id']],_0x453b4c());},_0x1659ff['add']=function(_0x31a6af){var _0x44bb62=_0x3d76ae;_0x1659ff[_0x44bb62('0x1bba')]=_0x2be32d();var _0x1cccb2=_0x35f92b[_0x44bb62('0x183e')](_0x44bb62('0x2459'));if(_0x31a6af[_0x44bb62('0x150c')])_0x1cccb2=_0x31a6af[_0x44bb62('0x150c')]['firstName']||_0x31a6af[_0x44bb62('0x150c')][_0x44bb62('0x2822')];else!_0x86640f()['isEmpty'](_0x31a6af['message']['subject'])&&(_0x1cccb2=_0x31a6af[_0x44bb62('0x1224')]['subject']);var _0x335050={'type':_0x44bb62('0x939'),'title':_0x31a6af['account']['key']+_0x44bb62('0xa99')+_0x1cccb2,'channel':_0x31a6af[_0x44bb62('0x27b5')],'content':_0x31a6af[_0x44bb62('0x1224')],'account':_0x31a6af[_0x44bb62('0x1fd3')],'interaction':_0x31a6af[_0x44bb62('0x1d23')],'id':_0x86640f()[_0x44bb62('0x271f')](0x2540be400),'openedAt':new Date(),'saved':![]};_0x1659ff[_0x44bb62('0x1bba')][_0x335050['id']]=_0x335050,_0x453b4c();},_0x1659ff[_0x3d76ae('0x5ef')]=function(_0x8cf4c5){var _0x25aaaa=_0x3d76ae;_0x1659ff['drafts']=_0x2be32d();var _0x141fcc=_0x1659ff[_0x25aaaa('0x1bba')][_0x8cf4c5['id']];_0x141fcc&&(_0x141fcc[_0x25aaaa('0x13fb')]=_0x8cf4c5[_0x25aaaa('0x1224')],_0x1659ff[_0x25aaaa('0x1bba')][_0x8cf4c5['id']]=_0x141fcc,_0x453b4c());},_0x1659ff['open']=function(_0x4287ec){var _0x137268=_0x3d76ae;_0x1659ff[_0x137268('0x1bba')]=_0x2be32d();var _0x5df5e1=_0x1659ff['drafts'][_0x4287ec];_0x5df5e1&&_0x3bac75[_0x137268('0x149a')](_0x137268('0xe5d')+_0x86640f()[_0x137268('0x2159')](_0x11295e)+'Draft',_0x5df5e1);},_0x1659ff[_0x3d76ae('0x16a2')]=function(_0x390406){var _0x55559b=_0x3d76ae;_0x1659ff[_0x55559b('0x1bba')]=_0x2be32d(),_0x1659ff['drafts'][_0x390406]&&(delete _0x1659ff[_0x55559b('0x1bba')][_0x390406],_0x453b4c());};function _0x2be32d(){var _0x4febfe=_0x3d76ae;_0x1eaa60=_0x4066bf[_0x4febfe('0x15ed')]();var _0x1a2716=_0x1d68b5['localStorage'][_0x4febfe('0x633')](_0x4febfe('0x74b')+_0x1eaa60['id']);_0x1a2716?_0x11295e=JSON[_0x4febfe('0x399')](_0x1a2716)[_0x4febfe('0x1d1')]:_0x11295e=_0x4febfe('0xaff');_0x195782=_0x1d68b5[_0x4febfe('0x161e')][_0x4febfe('0x633')](_0x4febfe('0x1968')+_0x11295e+':'+_0x1eaa60['id']);if(_0x195782){var _0x5bc631=JSON[_0x4febfe('0x399')](_0x195782);!_0x5bc631[_0x4febfe('0x1bba')]&&(_0x5bc631[_0x4febfe('0x1bba')]={}),_0x195782=_0x5bc631;}else _0x195782={'drafts':{}};return _0x195782[_0x4febfe('0x1bba')];}function _0x453b4c(){var _0x3b919a=_0x3d76ae;_0x86640f()[_0x3b919a('0x23aa')](_0x1659ff[_0x3b919a('0x1bba')])?delete _0x195782[_0x3b919a('0x1bba')]:_0x195782[_0x3b919a('0x1bba')]=_0x1659ff[_0x3b919a('0x1bba')],_0x1d68b5[_0x3b919a('0x161e')][_0x3b919a('0x1014')]('motion2.home.'+_0x11295e+':'+_0x1eaa60['id'],JSON[_0x3b919a('0x25e')](_0x195782));}return _0x1659ff;}function _0x48731f(){var _0x5a4b5f=_0x3877e3,_0x385099={'autoClose':!![],'duration':0x5,'showOnPageHidden':![]};return{'config':_0x1f52da,'$get':['$q',_0x5a4b5f('0x2313'),_0x5a4b5f('0x24e1'),_0x5a4b5f('0x1580'),_0x54d9f9]};function _0x1f52da(_0x2ea6ab){var _0x4d32ca=_0x5a4b5f;for(var _0x3b592b in _0x2ea6ab){typeof _0x385099[_0x3b592b]!=='undefined'&&typeof _0x2ea6ab[_0x3b592b]!==_0x4d32ca('0xddc')&&(_0x385099[_0x3b592b]=_0x2ea6ab[_0x3b592b]);}}function _0x54d9f9(_0x22a118,_0x30d17a,_0x319ba6,_0x4ae239){var _0x1a7888=_0x5a4b5f,_0x565abb=_0x319ba6['Notification']||_0x319ba6[_0x1a7888('0x908')]||_0x319ba6['webkitNotification'],_0x2f35f2={'isSupported':_0x4bc4dc,'currentPermission':_0x13ed95,'requestPermission':_0x2d44c1,'show':_0x5e1e94,'permissions':{'default':_0x4ae239[_0x1a7888('0x192e')],'granted':_0x4ae239[_0x1a7888('0x2283')],'denied':_0x4ae239[_0x1a7888('0x161d')]}};return _0x2f35f2;function _0x4bc4dc(){var _0x148733=_0x1a7888;return!(typeof _0x565abb===_0x148733('0xddc'));}function _0x13ed95(){return(_0x565abb||{})['permission'];}function _0x2d44c1(){var _0x518995=_0x1a7888;if(!_0x4bc4dc())return _0x22a118[_0x518995('0x37a')](_0x518995('0x1b1a'));var _0x47babd=_0x22a118['defer']();return Promise[_0x518995('0x8ac')](_0x565abb[_0x518995('0x135c')])==_0x565abb[_0x518995('0x135c')]?_0x565abb[_0x518995('0x135c')]()[_0x518995('0x21ad')](function(_0xe1a4ef){var _0x26c23a=_0x518995;_0x4ae239[_0x26c23a('0x2283')]===_0xe1a4ef?_0x47babd[_0x26c23a('0x8ac')](_0xe1a4ef):_0x47babd['reject'](_0xe1a4ef);}):_0x565abb['requestPermission'](function(_0x6143c7){var _0x59792e=_0x518995;_0x4ae239[_0x59792e('0x2283')]===_0x6143c7?_0x47babd[_0x59792e('0x8ac')](_0x6143c7):_0x47babd[_0x59792e('0x37a')](_0x6143c7);}),_0x47babd['promise'];}function _0x5e1e94(_0x2f685b,_0x16e1f5){var _0x15a8dd=_0x1a7888;_0x16e1f5=_0x16e1f5||{};if(!_0x4bc4dc()||!_0xdd271a(_0x2f685b,_0x16e1f5)||_0x4a0cc9(_0x16e1f5[_0x15a8dd('0x19c')])||_0x13ed95()!==_0x4ae239[_0x15a8dd('0x2283')])return;var _0x449724=new _0x565abb(_0x2f685b,_0x16e1f5),_0x3491df=_0x16e1f5[_0x15a8dd('0x79e')]||_0x385099['duration'],_0x1c0a92=_0x16e1f5[_0x15a8dd('0x2020')]===undefined?_0x385099[_0x15a8dd('0x2020')]:_0x16e1f5['autoClose'];_0x449724[_0x15a8dd('0x2760')]=function(){var _0x54568e=_0x15a8dd;_0x16e1f5[_0x54568e('0x1521')]&&_0x16e1f5['onClick'](),_0x16e1f5['focusOnclick']&&window[_0x54568e('0x117a')](),_0x16e1f5[_0x54568e('0x2325')]&&_0x449724[_0x54568e('0x22f')]();};if(_0x1c0a92)_0x48788a(_0x449724,_0x3491df);return _0x449724;}function _0xdd271a(_0xd08e32,_0x58ebf8){var _0x405fb9=_0x1a7888,_0x2d5494=angular['isString'](_0xd08e32),_0x447f92=!_0x58ebf8[_0x405fb9('0x1521')]||angular[_0x405fb9('0x272f')](_0x58ebf8['onClick']);return _0x2d5494&&_0x447f92;}function _0x4a0cc9(_0x2d9a48){var _0x5e2c85=_0x1a7888;if(!_0x2d9a48&&!_0x385099[_0x5e2c85('0x19c')])return;return!(window[_0x5e2c85('0x27c3')][_0x5e2c85('0x22d6')]||window['document'][_0x5e2c85('0xd6b')]||window[_0x5e2c85('0x27c3')][_0x5e2c85('0x1fef')]);}function _0x48788a(_0x56f513,_0x38f22b){var _0x202eeb=_0x1a7888,_0x2e7b23=_0x38f22b*0x3e8;_0x30d17a(_0x56f513['close'][_0x202eeb('0x1172')](_0x56f513),_0x2e7b23,![]);}}}function _0x1a6a7d(){var _0x44f6cc=_0x3877e3,_0x3fce8e=angular[_0x44f6cc('0x914')](['ng'])[_0x44f6cc('0x595')](_0x44f6cc('0x266b')),_0x4934ae=[],_0x2d917b=this;_0x2d917b['saveItem']=_0x4ed107,_0x2d917b[_0x44f6cc('0x1c8')]=_0x172495;function _0x4ed107(_0xc9571,_0x1f2b2b){var _0x18c76b=_0x44f6cc;if(!angular[_0x18c76b('0xbc')](_0xc9571)){_0x3fce8e[_0x18c76b('0x2092')]('path\x20must\x20be\x20a\x20string\x20(eg.\x20`dashboard.project`)');return;}var _0x475f74=_0xc9571[_0x18c76b('0x1af5')]('.'),_0x5d4ec5=_0x475f74[_0x475f74[_0x18c76b('0x577')]-0x1],_0x129101=_0x5031cd(_0x475f74),_0x31444a=![];for(var _0x434051=0x0;_0x434051<_0x129101[_0x18c76b('0x577')];_0x434051++){if(_0x129101[_0x434051][_0x18c76b('0xc57')]===_0x5d4ec5){_0x31444a=_0x129101[_0x434051];break;}}_0x31444a?(angular[_0x18c76b('0x1ad')](_0x31444a,_0x1f2b2b),_0x31444a[_0x18c76b('0x1ff0')]=_0x331415(_0x31444a)):(_0x1f2b2b[_0x18c76b('0xc9')]=[],(angular[_0x18c76b('0x1a5d')](_0x1f2b2b[_0x18c76b('0x875')])||!angular[_0x18c76b('0x1d7a')](_0x1f2b2b['weight']))&&(_0x1f2b2b[_0x18c76b('0x875')]=0x1),_0x1f2b2b[_0x18c76b('0xc57')]=_0x5d4ec5,_0x1f2b2b[_0x18c76b('0xc55')]=_0xc9571,_0x1f2b2b[_0x18c76b('0x1ff0')]=_0x331415(_0x1f2b2b),_0x129101[_0x18c76b('0x206c')](_0x1f2b2b));}function _0x172495(_0x48f308){var _0x2797b9=_0x44f6cc;if(!angular[_0x2797b9('0xbc')](_0x48f308)){_0x3fce8e['error'](_0x2797b9('0x1654'));return;}var _0x354771=_0x4934ae,_0x1347c0=_0x48f308['split']('.');for(var _0x3d4aa4=0x0;_0x3d4aa4<_0x1347c0[_0x2797b9('0x577')];_0x3d4aa4++){var _0x2273d6=_0x1347c0[_0x3d4aa4];for(var _0xca3129=0x0;_0xca3129<_0x354771['length'];_0xca3129++){if(_0x354771[_0xca3129][_0x2797b9('0xc57')]===_0x2273d6){if(_0x354771[_0xca3129]['_path']===_0x48f308)return _0x354771[_0x2797b9('0xafe')](_0xca3129,0x1),!![];_0x354771=_0x354771[_0xca3129]['children'];break;}}}return![];}function _0x5031cd(_0x568952){var _0x2b9d5b=_0x44f6cc,_0x3e5380=_0x4934ae;if(_0x568952[_0x2b9d5b('0x577')]===0x1)return _0x3e5380;_0x568952[_0x2b9d5b('0x4ee')]();for(var _0x4ce1cc=0x0;_0x4ce1cc<_0x568952[_0x2b9d5b('0x577')];_0x4ce1cc++){var _0x39046d=_0x568952[_0x4ce1cc],_0xb98523=!![];for(var _0x225912=0x0;_0x225912<_0x3e5380[_0x2b9d5b('0x577')];_0x225912++){if(_0x3e5380[_0x225912]['_id']===_0x39046d){_0x3e5380=_0x3e5380[_0x225912][_0x2b9d5b('0xc9')],_0xb98523=![];break;}}if(_0xb98523){var _0x3dadea={'_id':_0x39046d,'_path':_0x568952[_0x2b9d5b('0x136')]('.'),'title':_0x39046d,'weight':0x1,'children':[]};_0x3e5380[_0x2b9d5b('0x206c')](_0x3dadea),_0x3e5380=_0x3dadea[_0x2b9d5b('0xc9')];}}return _0x3e5380;}function _0x331415(_0x1946b9){var _0x5938ea=_0x44f6cc,_0x26d436='';return angular[_0x5938ea('0x1465')](_0x1946b9['state'])&&(_0x26d436=_0x1946b9[_0x5938ea('0x27e')],angular[_0x5938ea('0x1465')](_0x1946b9['stateParams'])&&angular[_0x5938ea('0x267d')](_0x1946b9['stateParams'])&&(_0x26d436=_0x26d436+'('+angular[_0x5938ea('0x20c6')](_0x1946b9['stateParams'])+')')),_0x26d436;}this[_0x44f6cc('0xc5d')]=function(){var _0x5d7c86={'saveItem':_0x4ed107,'getNavigation':_0x43a980};return _0x5d7c86;function _0x43a980(_0x38be75){var _0x4cb073=a0_0x2e7f;if(_0x38be75){for(var _0x562e89=0x0;_0x562e89<_0x4934ae[_0x4cb073('0x577')];_0x562e89++){if(_0x4934ae[_0x562e89][_0x4cb073('0xc57')]===_0x38be75)return[_0x4934ae[_0x562e89]];}return null;}return _0x4934ae;}};}var _0x3080a2={'DEFAULT':_0x3877e3('0x1e6e'),'GRANTED':_0x3877e3('0x1248'),'DENIED':_0x3877e3('0x1380')};_0x57df32[_0x3877e3('0x1a81')]=[_0x3877e3('0xccd')];function _0x57df32(_0x186e60){var _0x4abd7e=_0x3877e3,_0x176960=this;_0x176960[_0x4abd7e('0x21e')]={},_0x176960[_0x4abd7e('0xd36')]={'count':0x0,'rows':[]},_0x176960[_0x4abd7e('0x104b')]=![];function _0x38cfc1(_0x552e3f,_0x185747){var _0x3b65da=_0x4abd7e;_0x176960[_0x3b65da('0x21e')]=_0x185747,_0x176960[_0x3b65da('0x12e1')]=_0x552e3f,_0x176960[_0x3b65da('0x12e1')][_0x3b65da('0x15b4')]=!![];if(_0x176960[_0x3b65da('0x12e1')]&&_0x176960[_0x3b65da('0x12e1')]['data']&&_0x176960[_0x3b65da('0x12e1')][_0x3b65da('0x11c2')][_0x3b65da('0x968')])return _0x186e60[_0x3b65da('0x974')]['get']({'uniqueid':_0x176960[_0x3b65da('0x12e1')][_0x3b65da('0x11c2')][_0x3b65da('0x968')]})['$promise'][_0x3b65da('0x21ad')](function(_0x399f5a){var _0x2f8a16=_0x3b65da;_0x176960[_0x2f8a16('0xd36')]=_0x399f5a;})['finally'](function(){var _0x4e772b=_0x3b65da;_0x176960[_0x4e772b('0x104b')]=!![];});else _0x176960[_0x3b65da('0x104b')]=!![];}function _0x2f7b76(_0x3d1ac6){var _0x3324ec=_0x4abd7e;switch(_0x176960['setting']['messagesAlignment']){case'left':if(_0x3d1ac6[_0x3324ec('0xfab')]=='in')return _0x3d1ac6[_0x3324ec('0xfab')];return _0x3324ec('0x1a7c');case _0x3324ec('0x2575'):if(_0x3d1ac6['direction']=='in')return _0x3324ec('0x204b');return _0x3d1ac6[_0x3324ec('0xfab')];default:return _0x3d1ac6[_0x3324ec('0xfab')];}}_0x176960[_0x4abd7e('0x1d75')]=_0x38cfc1,_0x176960[_0x4abd7e('0x207b')]=_0x2f7b76;}const _0x14a7e5=_0x57df32,_0x5e562c=_0x398308['p']+_0x3877e3('0x2036'),_0x330672=_0x398308['p']+_0x3877e3('0x19b8'),_0x4d9588=_0x398308['p']+'src/js/modules/main/apps/dashboards/views/general/agent/contact/dispose/dialog.html/dialog-[chunkhash].html',_0x1b0109=_0x398308['p']+_0x3877e3('0x1a0a'),_0x1aa985=_0x398308['p']+'src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeMail/dialog.html/dialog-[chunkhash].html',_0x490417=_0x398308['p']+_0x3877e3('0x325'),_0x28174d=_0x398308['p']+_0x3877e3('0x27cb'),_0x91aafd=_0x398308['p']+_0x3877e3('0x5e4');_0xc04406['$inject']=[_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x95a'),'$q',_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x13c1'),_0x3877e3('0x12d9')];var _0x3cb5ba={'fax':_0x1b0109,'mail':_0x1aa985,'openchannel':_0x490417,'sms':_0x28174d,'whatsapp':_0x91aafd};function _0xc04406(_0x3b412e,_0xaf4c7b,_0xb1112a,_0x5dd0b2,_0x178364,_0x197c51,_0x5571b9,_0x32fb2f,_0x3344a4,_0x54eb1e){var _0x4250eb=_0x3877e3,_0x4dd980=this;_0x4dd980[_0x4250eb('0x1775')]=_0x32fb2f[_0x4250eb('0x15ed')](),_0x4dd980[_0x4250eb('0xc51')]=_0x54eb1e[_0x4250eb('0xc51')](),_0x4dd980['journey']=[],_0x4dd980[_0x4250eb('0x12c')]={'fields':_0x4250eb('0x8e6'),'sort':_0x4250eb('0x33'),'limit':0xa,'page':0x1},_0x4dd980[_0x4250eb('0xcc')]={'fields':'uniqueid,calleridnum,statedesc,starttime,disposition,secondDisposition,thirdDisposition','sort':_0x4250eb('0x33'),'limit':0xa,'page':0x1},_0x4dd980[_0x4250eb('0x1339')]={'fields':_0x4250eb('0x10a6'),'sort':_0x4250eb('0x33'),'limit':0xa,'page':0x1},_0x4dd980[_0x4250eb('0x14b5')]={'rows':[],'count':0x0},_0x4dd980[_0x4250eb('0x128a')]={'rows':[],'count':0x0},_0x4dd980[_0x4250eb('0x23a8')]={'rows':[],'count':0x0},_0x4dd980[_0x4250eb('0x1332')]=new Date(_0x1088bc()()[_0x4250eb('0x1982')](_0x4250eb('0xb64'))[_0x4250eb('0xafa')](0x1,_0x4250eb('0x22ac'))[_0x4250eb('0x215e')](0x0,!![])[_0x4250eb('0x153')]()),_0x4dd980[_0x4250eb('0x21b2')]=new Date(_0x1088bc()()['endOf']('month')[_0x4250eb('0xafa')](0x1,_0x4250eb('0x1837'))['utcOffset'](0x0,!![])['format']()),_0x4dd980[_0x4250eb('0x109a')]=_0x382435,_0x4dd980[_0x4250eb('0x145f')]=_0x57b084,_0x4dd980['getCustomFields']=_0x1f4b42,_0x4dd980[_0x4250eb('0xdc2')]=_0x5dd0b2[_0x4250eb('0x223d')]['vm'][_0x4250eb('0xdc2')],_0x4dd980[_0x4250eb('0x132a')]=_0x982c36,_0x4dd980['duplicateContact']=_0x45bbdb,_0x4dd980['mergeContact']=_0x190bcf,_0x4dd980[_0x4250eb('0x279')]=_0x457687,_0x4dd980[_0x4250eb('0x133a')]=_0xe7185c,_0x4dd980['getHoppers']=_0x1418ef,_0x4dd980[_0x4250eb('0xff9')]=_0x98920,_0x4dd980[_0x4250eb('0xec9')]=_0x5ab84b,_0x4dd980[_0x4250eb('0xa81')]=_0x424323,_0x4dd980['getMailAccounts']=_0x5688a3,_0x4dd980[_0x4250eb('0x1718')]=_0x127997,_0x4dd980['getSmsAccounts']=_0x5b242e,_0x4dd980[_0x4250eb('0x86b')]=_0x576973,_0x4dd980['getOpenchannelAccounts']=_0x375b44,_0x4dd980['getChatWebsites']=_0x17f98c,_0x4dd980[_0x4250eb('0x130')]=_0x176b7b,_0x4dd980[_0x4250eb('0xaab')]=_0x288c80,_0x4dd980[_0x4250eb('0x1d75')]=_0xa8f662,_0x4dd980[_0x4250eb('0xc35')]=_0x5dd2b1,_0x4dd980['openInteraction']=_0x34184c,_0x4dd980['getColorByItem']=_0x135753,_0x4dd980['isMyAccount']=_0x230aac,_0x4dd980[_0x4250eb('0xa81')]();function _0x230aac(_0x3df349){var _0x3fe7ef=_0x4250eb;if(_0x3df349[_0x3fe7ef('0x1de9')])return _0x86640f()[_0x3fe7ef('0xb34')](_0x86640f()['map'](_0x4dd980['faxAccounts']?_0x4dd980[_0x3fe7ef('0x1695')][_0x3fe7ef('0x1b33')]:[],'id'),_0x3df349['FaxAccountId']);else{if(_0x3df349['OpenchannelAccountId'])return _0x86640f()[_0x3fe7ef('0xb34')](_0x86640f()[_0x3fe7ef('0x26c3')](_0x4dd980[_0x3fe7ef('0x226c')]?_0x4dd980[_0x3fe7ef('0x226c')][_0x3fe7ef('0x1b33')]:[],'id'),_0x3df349[_0x3fe7ef('0xc92')]);else{if(_0x3df349[_0x3fe7ef('0x822')])return _0x86640f()[_0x3fe7ef('0xb34')](_0x86640f()[_0x3fe7ef('0x26c3')](_0x4dd980[_0x3fe7ef('0x102b')]?_0x4dd980['smsAccounts'][_0x3fe7ef('0x1b33')]:[],'id'),_0x3df349[_0x3fe7ef('0x822')]);else{if(_0x3df349[_0x3fe7ef('0x2127')])return _0x86640f()[_0x3fe7ef('0xb34')](_0x86640f()[_0x3fe7ef('0x26c3')](_0x4dd980['whatsappAccounts']?_0x4dd980[_0x3fe7ef('0x46a')]['rows']:[],'id'),_0x3df349[_0x3fe7ef('0x2127')]);else{if(_0x3df349['MailAccountId'])return _0x86640f()[_0x3fe7ef('0xb34')](_0x86640f()[_0x3fe7ef('0x26c3')](_0x4dd980[_0x3fe7ef('0x21ab')]?_0x4dd980['mailAccounts'][_0x3fe7ef('0x1b33')]:[],'id'),_0x3df349[_0x3fe7ef('0x723')]);else{if(_0x3df349[_0x3fe7ef('0x15f9')])return _0x86640f()[_0x3fe7ef('0xb34')](_0x86640f()[_0x3fe7ef('0x26c3')](_0x4dd980['chatAccounts']?_0x4dd980[_0x3fe7ef('0xcec')][_0x3fe7ef('0x1b33')]:[],'id'),_0x3df349[_0x3fe7ef('0x15f9')]);else{if(_0x3df349[_0x3fe7ef('0x31a')])return!![];}}}}}}return![];}function _0x34184c(_0x24e616,_0x4429fa){var _0x50e4de=_0x4250eb;try{if(_0x4429fa['MailAccountId'])return _0x5dd0b2[_0x50e4de('0x223d')]['$parent'][_0x50e4de('0x223d')]['vm'][_0x50e4de('0x11b4')](_0x50e4de('0x1c8b'),_0x4429fa);else{if(_0x4429fa['ChatWebsiteId'])return _0x5dd0b2[_0x50e4de('0x223d')][_0x50e4de('0x223d')][_0x50e4de('0x223d')]['vm'][_0x50e4de('0x11b4')](_0x50e4de('0x1f65'),_0x4429fa);else{if(_0x4429fa['SmsAccountId'])return _0x5dd0b2['$parent']['$parent']['$parent']['vm'][_0x50e4de('0x11b4')]('sms',_0x4429fa);else{if(_0x4429fa[_0x50e4de('0x2127')])return _0x5dd0b2['$parent'][_0x50e4de('0x223d')][_0x50e4de('0x223d')]['vm'][_0x50e4de('0x11b4')](_0x50e4de('0x1ad4'),_0x4429fa);else{if(_0x4429fa[_0x50e4de('0xc92')])return _0x5dd0b2[_0x50e4de('0x223d')][_0x50e4de('0x223d')][_0x50e4de('0x223d')]['vm'][_0x50e4de('0x11b4')](_0x50e4de('0xac9'),_0x4429fa);else{if(_0x4429fa[_0x50e4de('0x1de9')])return _0x5dd0b2[_0x50e4de('0x223d')][_0x50e4de('0x223d')][_0x50e4de('0x223d')]['vm']['addInteractionTab'](_0x50e4de('0x93f'),_0x4429fa);}}}}}}catch(_0x50244c){_0x5571b9[_0x50e4de('0x2092')]({'title':_0x50e4de('0x1243'),'msg':_0x50e4de('0x198a')});}}function _0x4a5964(_0x1af449){var _0x2acfd4=_0x4250eb;if(!_0x1af449[_0x2acfd4('0x22c8')])return'('+_0x3344a4['instant'](_0x2acfd4('0x1d56'))+')';var _0x44a8f9=_0x86640f()['compact']([_0x1af449[_0x2acfd4('0x22c8')],_0x1af449[_0x2acfd4('0x2764')],_0x1af449[_0x2acfd4('0x125')]]);return'('+_0x44a8f9['join'](_0x2acfd4('0xa99'))+')';}function _0x17c16e(_0x5f9f30){var _0x34d662=_0x4250eb;_0x5f9f30&&_0x5f9f30['count']&&_0x5f9f30['rows'][_0x34d662('0x577')]&&(_0x4dd980['journey']=_0x86640f()[_0x34d662('0x1877')](_0x4dd980[_0x34d662('0xd1b')],_0x5f9f30[_0x34d662('0x1b33')]),_0x4dd980[_0x34d662('0xd1b')][_0x34d662('0x1a52')](function(_0x18f953){var _0x133768=_0x34d662;_0x18f953[_0x133768('0x2413')]=_0x4a5964(_0x18f953);}));}function _0x1f689c(_0x2f928c){var _0x390416=_0x4250eb,_0x245e10=['mail',_0x390416('0x1f65'),'sms',_0x390416('0xac9'),_0x390416('0x93f'),'whatsapp'];if(_0x2f928c&&_0x2f928c['id']){for(var _0x390545=0x0;_0x390545<_0x245e10[_0x390416('0x577')];_0x390545++){_0x197c51[_0x245e10[_0x390545]+_0x390416('0xec3')][_0x390416('0x595')]({'ContactId':_0x2f928c['id'],'journey':!![],'includeAll':!![]})[_0x390416('0x1376')][_0x390416('0x21ad')](_0x17c16e);}_0x197c51['voiceCallReport']['get']({'ContactId':_0x2f928c['id'],'includeAll':!![]})['$promise']['then'](_0x17c16e)['catch'](function(_0x1c275a){console['error'](_0x1c275a);});}}function _0x2f96a9(_0x35daf8){var _0x1311fb=_0x4250eb;switch(_0x35daf8){case _0x1311fb('0x1f65'):return _0x1311fb('0x11aa');case'mail':return _0x1311fb('0x1d66');case _0x1311fb('0x3d0'):return _0x1311fb('0x272d');case _0x1311fb('0xac9'):return _0x1311fb('0xaa0');case _0x1311fb('0x93f'):return _0x1311fb('0x14b7');case _0x1311fb('0x1ad4'):return'lime-A700';default:return _0x1311fb('0xfb1');}}function _0x135753(_0x2bf47e){var _0x2f4808=_0x4250eb,_0x3a5fad='';if(_0x2bf47e[_0x2f4808('0x1de9')])_0x3a5fad=_0x2f4808('0x93f');else{if(_0x2bf47e[_0x2f4808('0xc92')])_0x3a5fad=_0x2f4808('0xac9');else{if(_0x2bf47e[_0x2f4808('0x822')])_0x3a5fad=_0x2f4808('0x3d0');else{if(_0x2bf47e[_0x2f4808('0x2127')])_0x3a5fad='whatsapp';else{if(_0x2bf47e[_0x2f4808('0x723')])_0x3a5fad=_0x2f4808('0x1c8b');else{if(_0x2bf47e['ChatWebsiteId'])_0x3a5fad=_0x2f4808('0x1f65');else _0x2bf47e[_0x2f4808('0x31a')]&&(_0x3a5fad=_0x2f4808('0x8ed'));}}}}}return _0x2f96a9(_0x3a5fad);}function _0xa8f662(_0x3d03a4,_0x585b4c){var _0x23724b=_0x4250eb;return _0x4dd980[_0x23724b('0x12e1')]=_0x3d03a4,_0x5dd0b2['$watchGroup']([_0x23724b('0x2308'),_0x23724b('0x1b3')],function(_0x3693bf){var _0x499871=_0x23724b;_0x4dd980[_0x499871('0x12e1')][_0x499871('0x15b4')]=_0x3693bf[0x0]&&_0x3693bf[0x1];}),_0x4dd980[_0x23724b('0x2ff')]=_0x585b4c,_0x4dd980['contact']=_0x4dd980[_0x23724b('0x12e1')]['contact'],_0x4dd980[_0x23724b('0xf36')]=![],_0x4dd980[_0x23724b('0x3c7')]=0x0,_0x197c51[_0x23724b('0x1775')][_0x23724b('0x595')]({'fields':_0x23724b('0x26e5'),'nolimit':!![]})[_0x23724b('0x1376')]['then'](function(_0x3b50ca){var _0x2671be=_0x23724b;_0x4dd980[_0x2671be('0x188e')]=_0x3b50ca||{'count':0x0,'rows':[]},_0x4dd980['usersMap']=_0x86640f()[_0x2671be('0x9e7')](_0x86640f()[_0x2671be('0xcde')](_0x4dd980['users'][_0x2671be('0x1b33')],'id'),_0x2671be('0x20f5'));return;})[_0x23724b('0x21ad')](function(){var _0x3751b0=_0x23724b,_0x576ea2=[],_0x5d4c7e=function _0x5ae271(_0x415cdb){var _0x4226a2=a0_0x2e7f,_0x2d3c87=_0x4dd980[_0x4226a2('0x12e1')]['calls'][_0x415cdb];_0x576ea2['push'](_0x197c51[_0x4226a2('0x10ab')][_0x4226a2('0x595')]({'uniqueid':_0x2d3c87[_0x4226a2('0x968')]})[_0x4226a2('0x1376')][_0x4226a2('0x21ad')](function(_0x51b841){var _0x5ca33f=_0x4226a2;_0x51b841&&_0x51b841[_0x5ca33f('0x1b33')][_0x5ca33f('0x577')]>0x0&&(_0x2d3c87['disposedAt']=_0x86640f()[_0x5ca33f('0x2019')](_0x51b841[_0x5ca33f('0x1b33')])['endtime']);return;}));};for(var _0x14206e=0x0;_0x14206e<_0x4dd980['tab'][_0x3751b0('0xd5b')][_0x3751b0('0x577')];_0x14206e++){_0x5d4c7e(_0x14206e);}return _0x178364['all'](_0x576ea2);})[_0x23724b('0x21ad')](function(){var _0xfebe25=_0x23724b;if(_0x4dd980[_0xfebe25('0x150c')]&&_0x4dd980[_0xfebe25('0x150c')]['id']){var _0x7fe142={'id':_0x4dd980[_0xfebe25('0x150c')]['id'],'ListId':_0x4dd980[_0xfebe25('0x150c')][_0xfebe25('0x815')],'limit':0x1,'offset':0x0,'sort':'-updatedAt'};return _0x197c51[_0xfebe25('0x25dc')]['get'](_0x7fe142)[_0xfebe25('0x1376')][_0xfebe25('0x21ad')](function(_0x1d0053){var _0x5663a9=_0xfebe25;return _0x4dd980['contact']=_0x1d0053,_0x4dd980[_0x5663a9('0x12e1')][_0x5663a9('0x150c')]=_0x1d0053,_0x197c51['user'][_0x5663a9('0x9a1')]({'id':_0x4dd980[_0x5663a9('0x1775')]['id'],'ids':[_0x4dd980[_0x5663a9('0x150c')]['id']]});})[_0xfebe25('0x21ad')](function(){var _0x2e763a=_0xfebe25;if(_0x4dd980[_0x2e763a('0x150c')]['ListId'])return _0x197c51[_0x2e763a('0x22c8')][_0x2e763a('0x595')]({'ListId':_0x4dd980['contact'][_0x2e763a('0x815')]})[_0x2e763a('0x1376')][_0x2e763a('0x21ad')](function(_0x544868){var _0x3b7337=_0x2e763a;return _0x4dd980[_0x3b7337('0x12e1')][_0x3b7337('0x10d0')]=_0x544868,_0x197c51['cmList']['getCustomFields']({'id':_0x4dd980[_0x3b7337('0x150c')][_0x3b7337('0x815')]})[_0x3b7337('0x1376')];})['then'](function(_0xc1124){var _0x5af2ae=_0x2e763a;_0x4dd980[_0x5af2ae('0x12e1')][_0x5af2ae('0xbbd')]=_0xc1124;return;});return;})[_0xfebe25('0x21ad')](function(){var _0x36b825=_0xfebe25;try{_0x4dd980[_0x36b825('0x12e1')][_0x36b825('0x1bbe')]=_0x5dd0b2[_0x36b825('0x223d')][_0x36b825('0x223d')][_0x36b825('0x223d')]['vm'][_0x36b825('0x21b3')],_0x4dd980[_0x36b825('0x12e1')][_0x36b825('0x1972')]=_0x5dd0b2[_0x36b825('0x223d')][_0x36b825('0x223d')][_0x36b825('0x223d')]['vm'][_0x36b825('0xcd7')],_0x4dd980[_0x36b825('0x12e1')][_0x36b825('0x1dee')]=_0x5dd0b2['$parent'][_0x36b825('0x223d')][_0x36b825('0x223d')]['vm'][_0x36b825('0x19b0')],_0x4dd980[_0x36b825('0x12e1')][_0x36b825('0x1889')]=_0x5dd0b2[_0x36b825('0x223d')][_0x36b825('0x223d')][_0x36b825('0x223d')]['vm'][_0x36b825('0x368')],_0x4dd980[_0x36b825('0x12e1')][_0x36b825('0x2650')]=0x0,_0x4dd980[_0x36b825('0x150c')][_0x36b825('0x815')]&&(_0x4dd980[_0x36b825('0x12e1')][_0x36b825('0x1bbe')][_0x36b825('0x1b33')]=_0x86640f()['unionBy'](_0x4dd980[_0x36b825('0x12e1')][_0x36b825('0x1bbe')][_0x36b825('0x1b33')],_0x86640f()[_0x36b825('0x1503')](_0x4dd980[_0x36b825('0x12e1')]['lists'][_0x36b825('0x1b33')],{'id':_0x4dd980[_0x36b825('0x150c')][_0x36b825('0x815')]}),'id'),_0x4dd980[_0x36b825('0x17fe')]=_0x86640f()['find'](_0x4dd980[_0x36b825('0x12e1')][_0x36b825('0x1bbe')][_0x36b825('0x1b33')],{'id':_0x4dd980[_0x36b825('0x150c')][_0x36b825('0x815')]}));}catch(_0x55198e){}_0x4dd980[_0x36b825('0x252b')](),_0x4dd980[_0x36b825('0xff9')](),_0x4dd980[_0x36b825('0xec9')](),_0x4dd980[_0x36b825('0x191d')](),_0x4dd980[_0x36b825('0x1718')](),_0x4dd980[_0x36b825('0x17f8')](),_0x4dd980[_0x36b825('0x86b')](),_0x4dd980[_0x36b825('0x10fd')](),_0x4dd980[_0x36b825('0x2675')](),_0x4dd980[_0x36b825('0x130')]();return;})[_0xfebe25('0x21ad')](function(){var _0x7d90f8=_0xfebe25;return _0x197c51[_0x7d90f8('0x25dc')][_0x7d90f8('0x2590')]({'id':_0x4dd980['contact']['id']})['$promise']['then'](function(_0x1ee10e){var _0x2efe9d=_0x7d90f8;_0x4dd980['tab'][_0x2efe9d('0x557')]=_0x86640f()[_0x2efe9d('0x26c3')](_0x1ee10e[_0x2efe9d('0x1b33')],'id');return;});});}else{_0x4dd980['newContact']=!![];if(_0x3d03a4[_0xfebe25('0x2650')])return console['log']('autoCreate'),_0x4dd980[_0xfebe25('0x109a')]();return;}})[_0x23724b('0x21ad')](_0x1f689c(_0x4dd980[_0x23724b('0x150c')]));}function _0x288c80(_0x6166fc,_0x101797,_0x54bad5,_0x4e566b){var _0x569366=_0x4250eb,_0x3e77d6=_0x101797['toLowerCase']();_0x3b412e[_0x569366('0x853')]({'controller':_0x569366('0x1b32')+_0x101797+_0x569366('0x1c66'),'controllerAs':'vm','templateUrl':_0x3cb5ba[_0x3e77d6],'parent':angular[_0x569366('0x1676')](_0xaf4c7b[_0x569366('0x2452')]),'clickOutsideToClose':![],'locals':{'account':_0x54bad5,'message':{'to':_0x3e77d6=='mail'?_0x4e566b:_0x4e566b[_0x569366('0x1af5')](',')},'type':_0x569366('0xb82'),'interaction':{'Contact':_0x4dd980['contact']}},'fullscreen':!![]})[_0x569366('0x21ad')](function(_0x354030){var _0x472f91=_0x569366;return _0x197c51[_0x3e77d6+_0x472f91('0x5f0')][_0x472f91('0x2471')]({'id':_0x54bad5['id']},_0x354030)[_0x472f91('0x1376')][_0x472f91('0x21ad')](function(_0x2bcad4){var _0x13d625=_0x472f91;if(_0x101797==='Mail'){var _0x34f847=_0x2bcad4;if(_0x34f847&&_0x34f847[_0x13d625('0x5d')]&&_0x34f847['Messages'][_0x13d625('0x577')]){if(_0x354030[_0x13d625('0x2487')]&&_0x354030[_0x13d625('0x2487')][_0x13d625('0x577')])for(var _0x4283a=0x0;_0x4283a<_0x354030[_0x13d625('0x2487')][_0x13d625('0x577')];_0x4283a+=0x1){_0x197c51['attachment'][_0x13d625('0x5ef')]({'id':_0x354030[_0x13d625('0x2487')][_0x4283a]['id']},{'MailMessageId':_0x86640f()['head'](_0x34f847['Messages'])['id']});}_0x5571b9['success']({'title':_0x13d625('0xc07'),'msg':_0x13d625('0x4b5')});if(_0x34f847[_0x13d625('0x14ba')]){_0x34f847['disposition']=null;var _0x515e85=!_0x54bad5['mandatoryDisposition'],_0x586a38=_0x4dd980['user']['voicePause']||_0x4dd980[_0x13d625('0x1775')]['chatPause']||_0x4dd980['user'][_0x13d625('0x1396')]||_0x4dd980[_0x13d625('0x1775')][_0x13d625('0x2022')]||_0x4dd980[_0x13d625('0x1775')]['faxPause'];_0x3b412e[_0x13d625('0x853')]({'controller':_0x13d625('0x256e'),'controllerAs':'vm','templateUrl':_0x5b0a7e,'parent':angular[_0x13d625('0x1676')](_0xaf4c7b[_0x13d625('0x2452')]),'onRemoving':function _0x399999(){var _0x599c86=_0x13d625;_0x4dd980[_0x599c86('0x1775')]&&_0x54bad5[_0x599c86('0x798')]&&!_0x586a38&&_0x197c51[_0x599c86('0x1775')]['unpause']({'id':_0x4dd980[_0x599c86('0x1775')]['id']})[_0x599c86('0x1376')][_0x599c86('0x1c1d')](function(_0x334301){var _0xb644cf=_0x599c86;console[_0xb644cf('0x2092')](_0x334301);});},'clickOutsideToClose':_0x515e85,'escapeToClose':_0x515e85,'locals':{'user':_0x4dd980[_0x13d625('0x1775')],'channel':_0x13d625('0x1c8b'),'interaction':_0x34f847}});}else _0x5dd0b2['$parent']['vm'][_0x13d625('0x11b4')](_0x13d625('0x1c8b'),_0x34f847);}}else _0x5571b9[_0x13d625('0xdb1')]({'title':_0x13d625('0xc07'),'msg':_0x13d625('0x4b5')}),_0x5dd0b2[_0x13d625('0x223d')]['vm'][_0x13d625('0x11b4')](_0x3e77d6,_0x2bcad4);})['catch'](function(_0x140fa1){var _0x33de37=_0x472f91;if(_0x140fa1['data']&&_0x140fa1[_0x33de37('0x11c2')][_0x33de37('0x1a69')]&&_0x140fa1[_0x33de37('0x11c2')][_0x33de37('0x1a69')][_0x33de37('0x577')])for(var _0x3b53bd=0x0;_0x3b53bd<_0x140fa1[_0x33de37('0x11c2')][_0x33de37('0x1a69')][_0x33de37('0x577')];_0x3b53bd+=0x1){_0x5571b9[_0x33de37('0x2092')]({'title':_0x140fa1[_0x33de37('0x11c2')][_0x33de37('0x1a69')][_0x3b53bd][_0x33de37('0x7fa')],'msg':_0x140fa1[_0x33de37('0x11c2')][_0x33de37('0x1a69')][_0x3b53bd][_0x33de37('0x1224')]});}else _0x3e77d6===_0x33de37('0x93f')?_0x5571b9[_0x33de37('0x2092')]({'title':_0x33de37('0x8a8'),'msg':_0x140fa1[_0x33de37('0x11c2')]?JSON[_0x33de37('0x25e')](_0x140fa1[_0x33de37('0x11c2')]):_0x140fa1[_0x33de37('0x1224')]||_0x140fa1['toString']()}):_0x5571b9[_0x33de37('0x2092')]({'title':_0x140fa1[_0x33de37('0x209')]?_0x33de37('0x22d')+_0x140fa1[_0x33de37('0x209')]+_0x33de37('0xa99')+_0x140fa1[_0x33de37('0x1808')]:_0x101797[_0x33de37('0x2e8')]()+_0x33de37('0xd3a'),'msg':_0x140fa1[_0x33de37('0x11c2')]?JSON[_0x33de37('0x25e')](_0x140fa1['data'][_0x33de37('0x1224')]):_0x140fa1[_0x33de37('0x1224')]||_0x140fa1[_0x33de37('0x174f')]()});});});}function _0x382435(){var _0x504690=_0x4250eb;_0x4dd980['errors']=[],_0x197c51[_0x504690('0x25dc')][_0x504690('0x186f')](_0x4dd980[_0x504690('0x150c')])[_0x504690('0x1376')][_0x504690('0x21ad')](function(_0xfdefc8){var _0x4590dc=_0x504690;return _0x4dd980[_0x4590dc('0x150c')]['id']=_0xfdefc8['id'],_0x4dd980[_0x4590dc('0xf36')]=![],_0x4dd980[_0x4590dc('0x12e1')][_0x4590dc('0x4b4')]=_0xfdefc8['firstName']||_0xfdefc8[_0x4590dc('0x159e')],_0x4dd980[_0x4590dc('0x12e1')][_0x4590dc('0x150c')]=_0x4dd980[_0x4590dc('0x150c')],_0x197c51[_0x4590dc('0x1775')][_0x4590dc('0x9a1')]({'id':_0x32fb2f[_0x4590dc('0x15ed')]()['id'],'ids':[_0xfdefc8['id']]});})[_0x504690('0x21ad')](function(){var _0xf48146=_0x504690;_0x4dd980['detailForm'][_0xf48146('0x2190')]=!![],_0x4dd980['customFieldsForm'][_0xf48146('0x2190')]=!![],_0x5571b9[_0xf48146('0xdb1')]({'title':_0xf48146('0x222d'),'msg':_0x4dd980[_0xf48146('0x150c')]['firstName']?_0x4dd980['contact'][_0xf48146('0x992')]+_0xf48146('0x1694'):''});})[_0x504690('0x21ad')](function(){var _0x5d3357=_0x504690;return _0x197c51['cmContact'][_0x5d3357('0x87a')]({'id':_0x4dd980['contact']['id'],'ids':_0x4dd980[_0x5d3357('0x12e1')]['Tags']})[_0x5d3357('0x1376')];})[_0x504690('0x1c1d')](function(_0x445a5b){var _0x1c23e8=_0x504690;if(_0x445a5b[_0x1c23e8('0x11c2')]&&_0x445a5b['data'][_0x1c23e8('0x1a69')]&&_0x445a5b[_0x1c23e8('0x11c2')]['errors']['length']){_0x4dd980[_0x1c23e8('0x1a69')]=_0x445a5b[_0x1c23e8('0x11c2')][_0x1c23e8('0x1a69')]||[{'message':_0x445a5b[_0x1c23e8('0x174f')](),'type':'api.contact.save'}];for(var _0x40c09a=0x0;_0x40c09a<_0x445a5b[_0x1c23e8('0x11c2')]['errors'][_0x1c23e8('0x577')];_0x40c09a+=0x1){_0x5571b9[_0x1c23e8('0x2092')]({'title':_0x445a5b[_0x1c23e8('0x11c2')]['errors'][_0x40c09a][_0x1c23e8('0x7fa')],'msg':_0x445a5b[_0x1c23e8('0x11c2')]['errors'][_0x40c09a][_0x1c23e8('0x1224')]});}}else _0x5571b9['error']({'title':_0x445a5b[_0x1c23e8('0x209')]?_0x1c23e8('0x22d')+_0x445a5b[_0x1c23e8('0x209')]+_0x1c23e8('0xa99')+_0x445a5b[_0x1c23e8('0x1808')]:'api.contact.save','msg':_0x445a5b[_0x1c23e8('0x11c2')]?JSON[_0x1c23e8('0x25e')](_0x445a5b[_0x1c23e8('0x11c2')][_0x1c23e8('0x1224')]):_0x445a5b['toString']()});});}function _0x57b084(){var _0x1e7939=_0x4250eb;_0x4dd980[_0x1e7939('0x1a69')]=[],_0x197c51[_0x1e7939('0x25dc')][_0x1e7939('0x5ef')]({'id':_0x4dd980[_0x1e7939('0x150c')]['id']},_0x4dd980[_0x1e7939('0x150c')])['$promise'][_0x1e7939('0x21ad')](function(_0x22113c){var _0x1bde89=_0x1e7939;return _0x4dd980[_0x1bde89('0x12e1')][_0x1bde89('0x4b4')]=_0x22113c[_0x1bde89('0x992')]||_0x22113c[_0x1bde89('0x159e')],_0x4dd980['tab'][_0x1bde89('0x150c')]=_0x4dd980[_0x1bde89('0x150c')],_0x5dd0b2[_0x1bde89('0x223d')]['vm'][_0x1bde89('0x1e97')](),_0x197c51[_0x1bde89('0x1775')][_0x1bde89('0x9a1')]({'id':_0x32fb2f['getCurrentUser']()['id'],'ids':[_0x22113c['id']]});})[_0x1e7939('0x21ad')](function(){var _0x446186=_0x1e7939;return _0x197c51['cmContact']['setTags']({'id':_0x4dd980[_0x446186('0x150c')]['id'],'ids':_0x4dd980[_0x446186('0x12e1')][_0x446186('0x557')]})['$promise'];})['then'](function(){var _0x1d08d9=_0x1e7939;_0x4dd980['detailForm'][_0x1d08d9('0x2190')]=!![],_0x4dd980[_0x1d08d9('0x1a78')][_0x1d08d9('0x2190')]=!![],_0x5571b9[_0x1d08d9('0xdb1')]({'title':_0x1d08d9('0xb56'),'msg':_0x4dd980['contact']['name']?_0x4dd980[_0x1d08d9('0x150c')][_0x1d08d9('0x19fe')]+'\x20has\x20been\x20updated!':''});})[_0x1e7939('0x1c1d')](function(_0x313672){var _0x3d9512=_0x1e7939;if(_0x313672['data']&&_0x313672[_0x3d9512('0x11c2')]['errors']&&_0x313672[_0x3d9512('0x11c2')][_0x3d9512('0x1a69')]['length']){_0x4dd980['errors']=_0x313672[_0x3d9512('0x11c2')][_0x3d9512('0x1a69')]||[{'message':_0x313672[_0x3d9512('0x174f')](),'type':_0x3d9512('0x1163')}];for(var _0x18acd5=0x0;_0x18acd5<_0x313672[_0x3d9512('0x11c2')][_0x3d9512('0x1a69')]['length'];_0x18acd5+=0x1){_0x5571b9[_0x3d9512('0x2092')]({'title':_0x313672[_0x3d9512('0x11c2')][_0x3d9512('0x1a69')][_0x18acd5]['type'],'msg':_0x313672[_0x3d9512('0x11c2')]['errors'][_0x18acd5][_0x3d9512('0x1224')]});}}else _0x5571b9[_0x3d9512('0x2092')]({'title':_0x313672[_0x3d9512('0x209')]?'API:'+_0x313672[_0x3d9512('0x209')]+_0x3d9512('0xa99')+_0x313672[_0x3d9512('0x1808')]:_0x3d9512('0x1163'),'msg':_0x313672[_0x3d9512('0x11c2')]?JSON[_0x3d9512('0x25e')](_0x313672['data']['message']):_0x313672[_0x3d9512('0x174f')]()});});}_0x5dd0b2[_0x4250eb('0x10e8')](_0x4250eb('0x3c7'),function(){var _0x4e27c1=_0x4250eb;_0x4dd980[_0x4e27c1('0x3c7')]===0x1&&(_0x4dd980['getHoppers'](),_0x4dd980['getFinals'](),_0x4dd980[_0x4e27c1('0xec9')]());});var _0xb25ec8=!![],_0x34da4a=0x1;_0x5dd0b2[_0x4250eb('0x10e8')](_0x4250eb('0x1b7c'),function(_0x1b8fee,_0x4078be){var _0x1cef6e=_0x4250eb;_0xb25ec8?_0xb1112a(function(){_0xb25ec8=![];}):(!_0x4078be&&(_0x34da4a=_0x4dd980[_0x1cef6e('0x12c')][_0x1cef6e('0x2376')]),_0x1b8fee!==_0x4078be&&(_0x4dd980[_0x1cef6e('0x12c')][_0x1cef6e('0x2376')]=0x1),!_0x1b8fee&&(_0x4dd980[_0x1cef6e('0x12c')][_0x1cef6e('0x2376')]=_0x34da4a),_0x4dd980[_0x1cef6e('0x252b')]());}),_0x5dd0b2[_0x4250eb('0x10e8')]('queryFinal.filter',function(_0x18d158,_0x172209){var _0x83ec17=_0x4250eb;_0xb25ec8?_0xb1112a(function(){_0xb25ec8=![];}):(!_0x172209&&(_0x34da4a=_0x4dd980[_0x83ec17('0xcc')][_0x83ec17('0x2376')]),_0x18d158!==_0x172209&&(_0x4dd980[_0x83ec17('0xcc')][_0x83ec17('0x2376')]=0x1),!_0x18d158&&(_0x4dd980[_0x83ec17('0xcc')][_0x83ec17('0x2376')]=_0x34da4a),_0x4dd980[_0x83ec17('0xff9')]());}),_0x5dd0b2[_0x4250eb('0x10e8')](_0x4250eb('0x1cb3'),function(_0x3b5804,_0x5bbae7){var _0x552cdd=_0x4250eb;_0xb25ec8?_0xb1112a(function(){_0xb25ec8=![];}):(!_0x5bbae7&&(_0x34da4a=_0x4dd980[_0x552cdd('0x1339')][_0x552cdd('0x2376')]),_0x3b5804!==_0x5bbae7&&(_0x4dd980['queryHistory'][_0x552cdd('0x2376')]=0x1),!_0x3b5804&&(_0x4dd980[_0x552cdd('0x1339')][_0x552cdd('0x2376')]=_0x34da4a),_0x4dd980[_0x552cdd('0xec9')]());});function _0x4d7f44(_0x357013){return function(_0x3e6fbc){_0x4dd980[_0x357013]=_0x3e6fbc||{'count':0x0,'rows':[]};};}function _0x1418ef(){var _0x449c8d=_0x4250eb;_0x4dd980[_0x449c8d('0x150c')]&&_0x4dd980[_0x449c8d('0x150c')]['id']&&(_0x4dd980[_0x449c8d('0x12c')][_0x449c8d('0x2596')]=_0x4dd980[_0x449c8d('0x150c')]['id'],_0x4dd980[_0x449c8d('0x12c')]['offset']=(_0x4dd980[_0x449c8d('0x12c')][_0x449c8d('0x2376')]-0x1)*_0x4dd980[_0x449c8d('0x12c')][_0x449c8d('0x1f4a')],_0x4dd980[_0x449c8d('0x71b')]=_0x197c51[_0x449c8d('0x1b37')][_0x449c8d('0x595')](_0x4dd980[_0x449c8d('0x12c')],_0x4d7f44(_0x449c8d('0x14b5')))[_0x449c8d('0x1376')]);}function _0x98920(){var _0x5a2c12=_0x4250eb;_0x4dd980[_0x5a2c12('0x150c')]&&_0x4dd980[_0x5a2c12('0x150c')]['id']&&(_0x4dd980['queryFinal'][_0x5a2c12('0x2596')]=_0x4dd980[_0x5a2c12('0x150c')]['id'],_0x4dd980[_0x5a2c12('0xcc')][_0x5a2c12('0x15a5')]=(_0x4dd980[_0x5a2c12('0xcc')][_0x5a2c12('0x2376')]-0x1)*_0x4dd980['queryFinal']['limit'],_0x4dd980['promise']=_0x197c51[_0x5a2c12('0x10d9')][_0x5a2c12('0x595')](_0x4dd980[_0x5a2c12('0xcc')],_0x4d7f44(_0x5a2c12('0x128a')))[_0x5a2c12('0x1376')]);}function _0x5ab84b(){var _0x4c3958=_0x4250eb;_0x4dd980[_0x4c3958('0x150c')]&&_0x4dd980[_0x4c3958('0x150c')]['id']&&(_0x4dd980[_0x4c3958('0x1339')]['ContactId']=_0x4dd980['contact']['id'],_0x4dd980[_0x4c3958('0x1339')][_0x4c3958('0x15a5')]=(_0x4dd980[_0x4c3958('0x1339')]['page']-0x1)*_0x4dd980[_0x4c3958('0x1339')][_0x4c3958('0x1f4a')],_0x4dd980[_0x4c3958('0x71b')]=_0x197c51[_0x4c3958('0x1ec7')]['get'](_0x4dd980[_0x4c3958('0x1339')],_0x4d7f44(_0x4c3958('0x23a8')))[_0x4c3958('0x1376')]);}function _0x424323(){var _0x2c0c98=_0x4250eb;_0x197c51[_0x2c0c98('0xe61')]['get']({'fields':_0x2c0c98('0xa31'),'sort':_0x2c0c98('0x33'),'nolimit':!![]})[_0x2c0c98('0x1376')]['then'](function(_0xd30393){var _0x4f9720=_0x2c0c98;_0x4dd980[_0x4f9720('0x1168')]=_0xd30393||{'count':0x0,'rows':[]};})['catch'](function(_0x486645){var _0x25d76c=_0x2c0c98;if(_0x486645[_0x25d76c('0x11c2')]&&_0x486645['data'][_0x25d76c('0x1a69')]&&_0x486645['data']['errors']['length']){_0x4dd980[_0x25d76c('0x1a69')]=_0x486645[_0x25d76c('0x11c2')][_0x25d76c('0x1a69')]||[{'message':_0x486645[_0x25d76c('0x174f')](),'type':_0x25d76c('0xf37')}];for(var _0x2cacc1=0x0;_0x2cacc1<_0x486645[_0x25d76c('0x11c2')][_0x25d76c('0x1a69')][_0x25d76c('0x577')];_0x2cacc1+=0x1){_0x5571b9[_0x25d76c('0x2092')]({'title':_0x486645[_0x25d76c('0x11c2')]['errors'][_0x2cacc1]['type'],'msg':_0x486645[_0x25d76c('0x11c2')][_0x25d76c('0x1a69')][_0x2cacc1][_0x25d76c('0x1224')]});}}else _0x5571b9['error']({'title':_0x486645['status']?_0x25d76c('0x22d')+_0x486645[_0x25d76c('0x209')]+'\x20-\x20'+_0x486645[_0x25d76c('0x1808')]:_0x25d76c('0xf37'),'msg':_0x486645[_0x25d76c('0x11c2')]?JSON[_0x25d76c('0x25e')](_0x486645[_0x25d76c('0x11c2')]['message']):_0x486645[_0x25d76c('0x174f')]()});});}function _0x5688a3(){var _0x5930d8=_0x4250eb;_0x197c51[_0x5930d8('0x1775')]['getMailAccounts']({'id':_0x4dd980[_0x5930d8('0x1775')]['id'],'nolimit':!![]})['$promise']['then'](function(_0x534988){_0x4dd980['mailAccounts']=_0x534988||{'count':0x0,'rows':[]};})[_0x5930d8('0x1c1d')](function(_0x2543e0){var _0x30e1b8=_0x5930d8;if(_0x2543e0[_0x30e1b8('0x11c2')]&&_0x2543e0[_0x30e1b8('0x11c2')][_0x30e1b8('0x1a69')]&&_0x2543e0[_0x30e1b8('0x11c2')][_0x30e1b8('0x1a69')][_0x30e1b8('0x577')]){_0x4dd980[_0x30e1b8('0x1a69')]=_0x2543e0[_0x30e1b8('0x11c2')][_0x30e1b8('0x1a69')]||[{'message':_0x2543e0['toString'](),'type':_0x30e1b8('0x20ed')}];for(var _0x4f6d23=0x0;_0x4f6d23<_0x2543e0[_0x30e1b8('0x11c2')][_0x30e1b8('0x1a69')]['length'];_0x4f6d23+=0x1){_0x5571b9[_0x30e1b8('0x2092')]({'title':_0x2543e0[_0x30e1b8('0x11c2')]['errors'][_0x4f6d23][_0x30e1b8('0x7fa')],'msg':_0x2543e0['data']['errors'][_0x4f6d23]['message']});}}else _0x5571b9[_0x30e1b8('0x2092')]({'title':_0x2543e0[_0x30e1b8('0x209')]?_0x30e1b8('0x22d')+_0x2543e0['status']+'\x20-\x20'+_0x2543e0[_0x30e1b8('0x1808')]:_0x30e1b8('0x20ed'),'msg':_0x2543e0[_0x30e1b8('0x11c2')]?JSON[_0x30e1b8('0x25e')](_0x2543e0['data']['message']):_0x2543e0['toString']()});});}function _0x127997(){var _0x2b6d1d=_0x4250eb;_0x197c51[_0x2b6d1d('0x1775')][_0x2b6d1d('0x1718')]({'id':_0x4dd980['user']['id'],'nolimit':!![]})[_0x2b6d1d('0x1376')]['then'](function(_0x366082){var _0x430660=_0x2b6d1d;_0x4dd980[_0x430660('0x1695')]=_0x366082||{'count':0x0,'rows':[]};})[_0x2b6d1d('0x1c1d')](function(_0x423166){var _0x37b854=_0x2b6d1d;if(_0x423166['data']&&_0x423166['data'][_0x37b854('0x1a69')]&&_0x423166[_0x37b854('0x11c2')][_0x37b854('0x1a69')][_0x37b854('0x577')]){_0x4dd980[_0x37b854('0x1a69')]=_0x423166[_0x37b854('0x11c2')][_0x37b854('0x1a69')]||[{'message':_0x423166[_0x37b854('0x174f')](),'type':'api.fax.account'}];for(var _0x1ef3e0=0x0;_0x1ef3e0<_0x423166[_0x37b854('0x11c2')]['errors'][_0x37b854('0x577')];_0x1ef3e0+=0x1){_0x5571b9[_0x37b854('0x2092')]({'title':_0x423166['data'][_0x37b854('0x1a69')][_0x1ef3e0][_0x37b854('0x7fa')],'msg':_0x423166[_0x37b854('0x11c2')]['errors'][_0x1ef3e0]['message']});}}else _0x5571b9['error']({'title':_0x423166[_0x37b854('0x209')]?_0x37b854('0x22d')+_0x423166[_0x37b854('0x209')]+_0x37b854('0xa99')+_0x423166[_0x37b854('0x1808')]:_0x37b854('0x20f3'),'msg':_0x423166[_0x37b854('0x11c2')]?JSON[_0x37b854('0x25e')](_0x423166[_0x37b854('0x11c2')][_0x37b854('0x1224')]):_0x423166[_0x37b854('0x174f')]()});});}function _0x5b242e(){var _0xbe6dba=_0x4250eb;_0x197c51['user'][_0xbe6dba('0x17f8')]({'id':_0x4dd980[_0xbe6dba('0x1775')]['id'],'nolimit':!![]})[_0xbe6dba('0x1376')][_0xbe6dba('0x21ad')](function(_0x28e913){var _0x287bd6=_0xbe6dba;_0x4dd980[_0x287bd6('0x102b')]=_0x28e913||{'count':0x0,'rows':[]};})['catch'](function(_0x1054d6){var _0x51b1cd=_0xbe6dba;if(_0x1054d6['data']&&_0x1054d6[_0x51b1cd('0x11c2')][_0x51b1cd('0x1a69')]&&_0x1054d6[_0x51b1cd('0x11c2')][_0x51b1cd('0x1a69')]['length']){_0x4dd980[_0x51b1cd('0x1a69')]=_0x1054d6[_0x51b1cd('0x11c2')]['errors']||[{'message':_0x1054d6[_0x51b1cd('0x174f')](),'type':_0x51b1cd('0xfb5')}];for(var _0x53e0b1=0x0;_0x53e0b1<_0x1054d6[_0x51b1cd('0x11c2')][_0x51b1cd('0x1a69')]['length'];_0x53e0b1+=0x1){_0x5571b9[_0x51b1cd('0x2092')]({'title':_0x1054d6[_0x51b1cd('0x11c2')][_0x51b1cd('0x1a69')][_0x53e0b1]['type'],'msg':_0x1054d6['data'][_0x51b1cd('0x1a69')][_0x53e0b1][_0x51b1cd('0x1224')]});}}else _0x5571b9['error']({'title':_0x1054d6[_0x51b1cd('0x209')]?_0x51b1cd('0x22d')+_0x1054d6[_0x51b1cd('0x209')]+_0x51b1cd('0xa99')+_0x1054d6[_0x51b1cd('0x1808')]:_0x51b1cd('0xfb5'),'msg':_0x1054d6[_0x51b1cd('0x11c2')]?JSON[_0x51b1cd('0x25e')](_0x1054d6[_0x51b1cd('0x11c2')][_0x51b1cd('0x1224')]):_0x1054d6[_0x51b1cd('0x174f')]()});});}function _0x576973(){var _0xc2b3e4=_0x4250eb;_0x197c51[_0xc2b3e4('0x1775')][_0xc2b3e4('0x86b')]({'id':_0x4dd980[_0xc2b3e4('0x1775')]['id'],'nolimit':!![]})[_0xc2b3e4('0x1376')][_0xc2b3e4('0x21ad')](function(_0x4487be){var _0x3822b9=_0xc2b3e4;_0x4dd980[_0x3822b9('0x46a')]=_0x4487be||{'count':0x0,'rows':[]};})[_0xc2b3e4('0x1c1d')](function(_0x479934){var _0x289e7e=_0xc2b3e4;if(_0x479934['data']&&_0x479934[_0x289e7e('0x11c2')][_0x289e7e('0x1a69')]&&_0x479934[_0x289e7e('0x11c2')]['errors']['length']){_0x4dd980[_0x289e7e('0x1a69')]=_0x479934[_0x289e7e('0x11c2')][_0x289e7e('0x1a69')]||[{'message':_0x479934[_0x289e7e('0x174f')](),'type':_0x289e7e('0xa36')}];for(var _0x44844a=0x0;_0x44844a<_0x479934[_0x289e7e('0x11c2')][_0x289e7e('0x1a69')]['length'];_0x44844a+=0x1){_0x5571b9[_0x289e7e('0x2092')]({'title':_0x479934[_0x289e7e('0x11c2')][_0x289e7e('0x1a69')][_0x44844a][_0x289e7e('0x7fa')],'msg':_0x479934[_0x289e7e('0x11c2')][_0x289e7e('0x1a69')][_0x44844a][_0x289e7e('0x1224')]});}}else _0x5571b9[_0x289e7e('0x2092')]({'title':_0x479934[_0x289e7e('0x209')]?'API:'+_0x479934[_0x289e7e('0x209')]+'\x20-\x20'+_0x479934[_0x289e7e('0x1808')]:_0x289e7e('0xa36'),'msg':_0x479934[_0x289e7e('0x11c2')]?JSON[_0x289e7e('0x25e')](_0x479934[_0x289e7e('0x11c2')][_0x289e7e('0x1224')]):_0x479934[_0x289e7e('0x174f')]()});});}function _0x375b44(){var _0x3ff64e=_0x4250eb;_0x197c51['user'][_0x3ff64e('0x10fd')]({'id':_0x4dd980[_0x3ff64e('0x1775')]['id'],'nolimit':!![]})[_0x3ff64e('0x1376')][_0x3ff64e('0x21ad')](function(_0x551e2a){var _0x1ac597=_0x3ff64e;_0x4dd980[_0x1ac597('0x226c')]=_0x551e2a||{'count':0x0,'rows':[]};})['catch'](function(_0x19caaa){var _0x196752=_0x3ff64e;if(_0x19caaa[_0x196752('0x11c2')]&&_0x19caaa['data'][_0x196752('0x1a69')]&&_0x19caaa[_0x196752('0x11c2')][_0x196752('0x1a69')]['length']){_0x4dd980['errors']=_0x19caaa['data'][_0x196752('0x1a69')]||[{'message':_0x19caaa[_0x196752('0x174f')](),'type':_0x196752('0x1f')}];for(var _0x3d3a0f=0x0;_0x3d3a0f<_0x19caaa['data'][_0x196752('0x1a69')]['length'];_0x3d3a0f+=0x1){_0x5571b9[_0x196752('0x2092')]({'title':_0x19caaa[_0x196752('0x11c2')][_0x196752('0x1a69')][_0x3d3a0f]['type'],'msg':_0x19caaa[_0x196752('0x11c2')]['errors'][_0x3d3a0f][_0x196752('0x1224')]});}}else _0x5571b9[_0x196752('0x2092')]({'title':_0x19caaa['status']?_0x196752('0x22d')+_0x19caaa[_0x196752('0x209')]+'\x20-\x20'+_0x19caaa[_0x196752('0x1808')]:_0x196752('0x1f'),'msg':_0x19caaa['data']?JSON['stringify'](_0x19caaa['data'][_0x196752('0x1224')]):_0x19caaa[_0x196752('0x174f')]()});});}function _0x17f98c(){var _0x35ba9f=_0x4250eb;_0x197c51[_0x35ba9f('0x1775')][_0x35ba9f('0x2675')]({'id':_0x4dd980['user']['id'],'nolimit':!![]})['$promise'][_0x35ba9f('0x21ad')](function(_0x5322cd){var _0x50fe46=_0x35ba9f;_0x4dd980[_0x50fe46('0xcec')]=_0x5322cd||{'count':0x0,'rows':[]};})[_0x35ba9f('0x1c1d')](function(_0x3f908b){var _0x2b9dc0=_0x35ba9f;if(_0x3f908b[_0x2b9dc0('0x11c2')]&&_0x3f908b[_0x2b9dc0('0x11c2')]['errors']&&_0x3f908b[_0x2b9dc0('0x11c2')][_0x2b9dc0('0x1a69')][_0x2b9dc0('0x577')]){_0x4dd980[_0x2b9dc0('0x1a69')]=_0x3f908b['data']['errors']||[{'message':_0x3f908b[_0x2b9dc0('0x174f')](),'type':_0x2b9dc0('0x8eb')}];for(var _0x52d92f=0x0;_0x52d92f<_0x3f908b['data'][_0x2b9dc0('0x1a69')][_0x2b9dc0('0x577')];_0x52d92f+=0x1){_0x5571b9[_0x2b9dc0('0x2092')]({'title':_0x3f908b[_0x2b9dc0('0x11c2')][_0x2b9dc0('0x1a69')][_0x52d92f][_0x2b9dc0('0x7fa')],'msg':_0x3f908b[_0x2b9dc0('0x11c2')][_0x2b9dc0('0x1a69')][_0x52d92f][_0x2b9dc0('0x1224')]});}}else _0x5571b9[_0x2b9dc0('0x2092')]({'title':_0x3f908b[_0x2b9dc0('0x209')]?_0x2b9dc0('0x22d')+_0x3f908b['status']+_0x2b9dc0('0xa99')+_0x3f908b[_0x2b9dc0('0x1808')]:_0x2b9dc0('0x8eb'),'msg':_0x3f908b['data']?JSON[_0x2b9dc0('0x25e')](_0x3f908b[_0x2b9dc0('0x11c2')]['message']):_0x3f908b[_0x2b9dc0('0x174f')]()});});}function _0x176b7b(){var _0x238073=_0x4250eb;_0x197c51[_0x238073('0x1775')][_0x238073('0x130')]({'id':_0x4dd980[_0x238073('0x1775')]['id'],'nolimit':!![]})[_0x238073('0x1376')]['then'](function(_0x55d553){_0x4dd980['lists']=_0x55d553||{'count':0x0,'rows':[]};})[_0x238073('0x1c1d')](function(_0x1f2c09){var _0x5013e0=_0x238073;if(_0x1f2c09[_0x5013e0('0x11c2')]&&_0x1f2c09['data'][_0x5013e0('0x1a69')]&&_0x1f2c09[_0x5013e0('0x11c2')][_0x5013e0('0x1a69')][_0x5013e0('0x577')]){_0x4dd980[_0x5013e0('0x1a69')]=_0x1f2c09['data'][_0x5013e0('0x1a69')]||[{'message':_0x1f2c09['toString'](),'type':_0x5013e0('0x93b')}];for(var _0xe42fa4=0x0;_0xe42fa4<_0x1f2c09[_0x5013e0('0x11c2')][_0x5013e0('0x1a69')][_0x5013e0('0x577')];_0xe42fa4+=0x1){_0x5571b9[_0x5013e0('0x2092')]({'title':_0x1f2c09[_0x5013e0('0x11c2')][_0x5013e0('0x1a69')][_0xe42fa4]['type'],'msg':_0x1f2c09[_0x5013e0('0x11c2')][_0x5013e0('0x1a69')][_0xe42fa4][_0x5013e0('0x1224')]});}}else _0x5571b9[_0x5013e0('0x2092')]({'title':_0x1f2c09[_0x5013e0('0x209')]?'API:'+_0x1f2c09['status']+'\x20-\x20'+_0x1f2c09[_0x5013e0('0x1808')]:_0x5013e0('0x93b'),'msg':_0x1f2c09['data']?JSON['stringify'](_0x1f2c09[_0x5013e0('0x11c2')][_0x5013e0('0x1224')]):_0x1f2c09[_0x5013e0('0x174f')]()});});}function _0x45bbdb(_0x3ee773){var _0x54cf52=_0x4250eb;_0x3b412e[_0x54cf52('0x853')]({'controller':_0x54cf52('0x18e5'),'controllerAs':'vm','templateUrl':_0x5e562c,'parent':angular[_0x54cf52('0x1676')](_0xaf4c7b[_0x54cf52('0x2452')]),'targetEvent':_0x3ee773,'clickOutsideToClose':!![],'resolve':{'contact':[_0x54cf52('0x354'),function _0x3d9749(_0x3c463e){var _0x1f7c39=_0x54cf52;return _0x3c463e[_0x1f7c39('0x8ac')]('cmContact@get',{'id':_0x4dd980[_0x1f7c39('0x150c')]['id']});}],'lists':[_0x54cf52('0x354'),function _0x40638f(_0x532c5f){var _0x1c1fb6=_0x54cf52;return _0x532c5f[_0x1c1fb6('0x8ac')](_0x1c1fb6('0x4ac'),{'id':_0x32fb2f[_0x1c1fb6('0x15ed')]()['id'],'fields':_0x1c1fb6('0x1aa8')});}]},'locals':{'contacts':[]}});}function _0x190bcf(_0x32dbcd){var _0x2f9dd2=_0x4250eb;_0x3b412e[_0x2f9dd2('0x853')]({'controller':_0x2f9dd2('0x261d'),'controllerAs':'vm','templateUrl':_0x330672,'parent':angular[_0x2f9dd2('0x1676')](_0xaf4c7b[_0x2f9dd2('0x2452')]),'targetEvent':_0x32dbcd,'clickOutsideToClose':!![],'resolve':{'contact':[_0x2f9dd2('0x354'),function _0x46efab(_0x480783){var _0x45195f=_0x2f9dd2;return _0x480783[_0x45195f('0x8ac')](_0x45195f('0x259d'),{'id':_0x4dd980[_0x45195f('0x150c')]['id']});}],'lists':[_0x2f9dd2('0x354'),function _0x1539d3(_0x53cd44){var _0x8a2d3b=_0x2f9dd2;return _0x53cd44[_0x8a2d3b('0x8ac')]('user@getLists',{'id':_0x32fb2f[_0x8a2d3b('0x15ed')]()['id'],'fields':'id,name'});}]},'locals':{'contacts':[]}})[_0x2f9dd2('0x21ad')](function(_0x51715f){var _0x45a3ee=_0x2f9dd2;if(_0x51715f){for(var _0x53ade9 in _0x5dd0b2[_0x45a3ee('0x223d')]['$parent'][_0x45a3ee('0x223d')]['vm'][_0x45a3ee('0x174d')]){if(typeof _0x5dd0b2[_0x45a3ee('0x223d')][_0x45a3ee('0x223d')][_0x45a3ee('0x223d')]['vm']['tabs'][_0x53ade9]!=='undefined'){var _0x264a3f=_0x5dd0b2['$parent'][_0x45a3ee('0x223d')][_0x45a3ee('0x223d')]['vm']['tabs'][_0x53ade9];_0x264a3f&&_0x264a3f[_0x45a3ee('0x150c')]&&(_0x51715f[_0x45a3ee('0x69b')]&&_0x51715f['from']['id']&&_0x51715f[_0x45a3ee('0x69b')]['id']===_0x264a3f[_0x45a3ee('0x150c')]['id']&&_0x5dd0b2['$parent'][_0x45a3ee('0x223d')][_0x45a3ee('0x223d')]['vm'][_0x45a3ee('0x1831')](_0x264a3f),_0x51715f['to']&&_0x51715f['to']['id']&&_0x51715f['to']['id']===_0x264a3f[_0x45a3ee('0x150c')]['id']&&_0x5dd0b2[_0x45a3ee('0x223d')][_0x45a3ee('0x223d')][_0x45a3ee('0x223d')]['vm'][_0x45a3ee('0x1831')](_0x264a3f));}}_0x51715f[_0x45a3ee('0xb82')]&&_0x5dd0b2[_0x45a3ee('0x223d')][_0x45a3ee('0x223d')][_0x45a3ee('0x223d')]['vm'][_0x45a3ee('0x110d')](_0x51715f[_0x45a3ee('0xb82')]);}});}function _0x982c36(_0xa31c4d,_0x41086e){var _0x81b1b2=_0x4250eb,_0x307944=_0x4dd980[_0x81b1b2('0x1775')][_0x81b1b2('0x1025')]||_0x4dd980[_0x81b1b2('0x1775')][_0x81b1b2('0x1785')]||_0x4dd980['user'][_0x81b1b2('0x1396')]||_0x4dd980['user'][_0x81b1b2('0x2022')]||_0x4dd980[_0x81b1b2('0x1775')][_0x81b1b2('0x23f5')],_0x39dc1e=_0x41086e[_0x81b1b2('0x798')];if(_0x4dd980[_0x81b1b2('0xf36')]){_0x5571b9[_0x81b1b2('0x2092')]({'title':_0x81b1b2('0x1598'),'msg':_0x81b1b2('0x16c8')});return;}_0x3b412e['show']({'controller':_0x81b1b2('0x1c59'),'controllerAs':'vm','templateUrl':_0x4d9588,'parent':angular[_0x81b1b2('0x1676')](_0xaf4c7b[_0x81b1b2('0x2452')]),'targetEvent':_0x41086e,'clickOutsideToClose':!_0x41086e[_0x81b1b2('0x798')],'escapeToClose':!_0x41086e[_0x81b1b2('0x798')],'resolve':{'globalDispositions':['apiResolver',function _0x4eed14(_0x190997){var _0xcbc66a=_0x81b1b2;return _0x190997[_0xcbc66a('0x8ac')](_0xcbc66a('0x13a3'),{'MailAccountId':_0xcbc66a('0x27a'),'FaxAccountId':_0xcbc66a('0x27a'),'SmsAccountId':_0xcbc66a('0x27a'),'WhatsappAccountId':_0xcbc66a('0x27a'),'OpenchannelAccountId':_0xcbc66a('0x27a'),'ChatWebsiteId':_0xcbc66a('0x27a'),'ListId':'null'});}]},'onRemoving':function _0x522dbd(){var _0x1848c5=_0x81b1b2;_0x4dd980[_0x1848c5('0x1775')]&&_0x39dc1e&&!_0x307944&&_0x197c51[_0x1848c5('0x1775')]['unpause']({'id':_0x4dd980['user']['id']})[_0x1848c5('0x1376')]['catch'](function(_0x2294c8){var _0x174e9a=_0x1848c5;console[_0x174e9a('0x2092')](_0x2294c8);});},'locals':{'dispositions':_0x4dd980[_0x81b1b2('0x12e1')][_0x81b1b2('0x10d0')],'contact':_0x4dd980[_0x81b1b2('0x150c')],'call':_0x41086e}})['then'](function(_0x447bdd){var _0x18ff50=_0x81b1b2;if(_0x447bdd){if(_0x447bdd===_0x18ff50('0x181a'))_0x5571b9['success']({'title':_0x3344a4[_0x18ff50('0x183e')](_0x18ff50('0x5e8')),'msg':_0x3344a4[_0x18ff50('0x183e')]('DASHBOARDS.CALL_DISPOSED')+'\x20'+_0x447bdd});else{if(_0x447bdd===_0x18ff50('0x22f3')||_0x447bdd==='RESCHEDULE'){}else _0x5571b9[_0x18ff50('0xdb1')]({'title':_0x3344a4[_0x18ff50('0x183e')](_0x18ff50('0x5e8')),'msg':_0x3344a4['instant']('DASHBOARDS.CALL_SAVED')});}}for(var _0x18aaa5 in _0x5dd0b2[_0x18ff50('0x223d')]['$parent']['$parent']['vm'][_0x18ff50('0x174d')]){if(typeof _0x5dd0b2[_0x18ff50('0x223d')][_0x18ff50('0x223d')][_0x18ff50('0x223d')]['vm'][_0x18ff50('0x174d')][_0x18aaa5]!==_0x18ff50('0xddc')){var _0x4547b1=_0x5dd0b2[_0x18ff50('0x223d')][_0x18ff50('0x223d')][_0x18ff50('0x223d')]['vm']['tabs'][_0x18aaa5];_0x86640f()['remove'](_0x4547b1[_0x18ff50('0xd5b')],function(_0x45aafb){return _0x45aafb['uniqueid']===_0x41086e['uniqueid'];});}}_0x5dd0b2[_0x18ff50('0x223d')]['vm'][_0x18ff50('0x1e97')]();});}function _0x1f4b42(_0x22f30a){var _0x1e4795=_0x4250eb;return _0x197c51[_0x1e4795('0x11e0')][_0x1e4795('0xb2d')]({'id':_0x22f30a})[_0x1e4795('0x1376')][_0x1e4795('0x21ad')](function(_0x323600){var _0x4bb7e1=_0x1e4795;_0x4dd980[_0x4bb7e1('0x12e1')][_0x4bb7e1('0xbbd')]=_0x323600;})[_0x1e4795('0x1c1d')](function(_0x53d827){var _0xae9e16=_0x1e4795;_0x5571b9['error']({'title':_0x53d827[_0xae9e16('0x209')]?_0xae9e16('0x22d')+_0x53d827[_0xae9e16('0x209')]+'\x20-\x20'+_0x53d827[_0xae9e16('0x1808')]:_0xae9e16('0x1582'),'msg':_0x53d827[_0xae9e16('0x11c2')]?JSON[_0xae9e16('0x25e')](_0x53d827[_0xae9e16('0x11c2')]):_0x53d827[_0xae9e16('0x174f')]()});});}function _0x457687(_0x6599cd){return _0x6599cd===null?undefined:new Date(_0x6599cd);}function _0xe7185c(_0x44d1df){var _0x50797a=_0x4250eb;try{_0x44d1df[_0x50797a('0x244a')]=_0x3b4181()['render'](_0x44d1df[_0x50797a('0x244a')],{'contact':_0x4dd980[_0x50797a('0x150c')],'user':_0x4dd980[_0x50797a('0x1775')]});}catch(_0x26cc56){console[_0x50797a('0x2092')](_0x26cc56);}try{_0x5dd0b2[_0x50797a('0x223d')][_0x50797a('0x223d')][_0x50797a('0x223d')]['vm'][_0x50797a('0x13c2')]({'type':_0x50797a('0x9c7'),'title':_0x44d1df[_0x50797a('0x19fe')],'icon':_0x50797a('0x1ed3'),'color':'grey','project':_0x44d1df,'contact':_0x4dd980[_0x50797a('0x150c')]});}catch(_0x5b8530){_0x5571b9[_0x50797a('0x2092')]({'title':'ERROR\x20OPENING\x20JSCRIPTY\x20PROJECT','msg':_0x50797a('0xa02')+JSON[_0x50797a('0x25e')](_0x5b8530)});}}function _0x5dd2b1(_0xfd728f){var _0x4a6388=_0x4250eb;return _0x32fb2f[_0x4a6388('0xc35')](_0xfd728f);}_0x5dd0b2[_0x4250eb('0x1723')](_0x4250eb('0x1210'),function(){});}const _0x2bc874=_0xc04406;_0x32c057[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x10d0'),_0x3877e3('0xa17'),_0x3877e3('0xdc2'),'contact',_0x3877e3('0x15bc'),_0x3877e3('0x13c1')];function _0x32c057(_0x2a5853,_0x3c60f6,_0x20fdf7,_0x320e43,_0x49dd47,_0x40d8e1,_0x45f13e,_0x5a7005,_0x1ee3e3,_0x502de0){var _0x393c18=_0x3877e3,_0x27c8bc=this;_0x27c8bc['isReschedule']=![],_0x27c8bc['recallme']=![],_0x27c8bc[_0x393c18('0x1203')]=undefined,_0x27c8bc['queueCampaigns']={'count':0x0,'rows':[]},_0x27c8bc[_0x393c18('0x10d0')]=_0x49dd47['rows'],_0x27c8bc[_0x393c18('0xa17')]=_0x40d8e1[_0x393c18('0x1b33')],_0x27c8bc['contact']=_0x5a7005,_0x27c8bc[_0x393c18('0xdc2')]=_0x45f13e,_0x27c8bc[_0x393c18('0x322')]=_0x27c8bc[_0x393c18('0xdc2')][_0x393c18('0x322')]||undefined,_0x27c8bc['dialerCall']=![],_0x27c8bc[_0x393c18('0x1b88')]=![],_0x27c8bc[_0x393c18('0x155d')]={'minDate':new Date(),'dateTime':new Date()};_0x27c8bc['call']&&_0x27c8bc[_0x393c18('0xdc2')]['variables']&&_0x27c8bc[_0x393c18('0xdc2')]['variables'][_0x393c18('0xd2f')]?(_0x27c8bc[_0x393c18('0x23a2')]=!![],_0x320e43[_0x393c18('0xb97')][_0x393c18('0xab7')]({'id':_0x27c8bc[_0x393c18('0xdc2')][_0x393c18('0x142d')][_0x393c18('0xd2f')]})[_0x393c18('0x1376')][_0x393c18('0x21ad')](function(_0x3210bb){var _0xcb313=_0x393c18;_0x3210bb&&_0x3210bb[_0xcb313('0x1b33')]&&_0x3210bb['rows']['length']>0x0&&(_0x27c8bc[_0xcb313('0x1b88')]=!![]);})[_0x393c18('0x1c1d')](function(_0x26357c){var _0x39ad78=_0x393c18;_0x20fdf7[_0x39ad78('0x2092')]({'title':_0x26357c[_0x39ad78('0x209')]?_0x39ad78('0x22d')+_0x26357c[_0x39ad78('0x209')]+_0x39ad78('0xa99')+_0x26357c[_0x39ad78('0x1808')]:_0x39ad78('0x847'),'msg':_0x26357c[_0x39ad78('0x11c2')]?JSON['stringify'](_0x26357c[_0x39ad78('0x11c2')]):_0x26357c[_0x39ad78('0x174f')]()});})):_0x320e43[_0x393c18('0x1775')][_0x393c18('0x71c')]({'id':_0x1ee3e3[_0x393c18('0x15ed')]()['id'],'fields':_0x393c18('0x243a'),'channel':_0x393c18('0x8ed'),'type':'outbound','nolimit':!![]})[_0x393c18('0x1376')]['then'](function(_0x255c5){var _0x2b9f7a=_0x393c18;_0x27c8bc[_0x2b9f7a('0xea5')]=_0x255c5||{'count':0x0,'rows':[]};})[_0x393c18('0x1c1d')](function(_0x254dda){var _0x4b4448=_0x393c18;console[_0x4b4448('0x2092')](_0x254dda);});_0x27c8bc[_0x393c18('0x1673')]=_0x5f5c12,_0x27c8bc['clearDispositionSelection']=_0x33b022,_0x27c8bc['saveDisposition']=_0x4c4a0c,_0x27c8bc[_0x393c18('0x167')]=_0x31c440,_0x27c8bc['saveReschedule']=_0x43e98a;function _0x5f5c12(_0x53f6e7){var _0x3e0cf1=_0x393c18,_0x6ef941=_0x86640f()[_0x3e0cf1('0x795')](_0x27c8bc[_0x3e0cf1('0x10d0')],_0x27c8bc[_0x3e0cf1('0xa17')],'id');switch(_0x53f6e7){case _0x3e0cf1('0x2019'):_0x27c8bc[_0x3e0cf1('0x22f8')]=_0x27c8bc[_0x3e0cf1('0x1273')],_0x27c8bc[_0x3e0cf1('0x10a7')]=_0x86640f()[_0x3e0cf1('0x2664')](_0x6ef941,[_0x3e0cf1('0x198f'),_0x27c8bc['firstLevelDisposition']['id']]),_0x27c8bc[_0x3e0cf1('0x185c')]=undefined,_0x27c8bc['thirdLevelDisposition']=undefined,_0x27c8bc[_0x3e0cf1('0x2501')]=![];break;case _0x3e0cf1('0x502'):_0x27c8bc[_0x3e0cf1('0x22f8')]=_0x27c8bc[_0x3e0cf1('0x185c')],_0x27c8bc['anyThirdLevelDisposition']=_0x86640f()[_0x3e0cf1('0x2664')](_0x6ef941,['ParentId',_0x27c8bc[_0x3e0cf1('0x185c')]['id']]);break;case _0x3e0cf1('0x1649'):_0x27c8bc[_0x3e0cf1('0x22f8')]=_0x27c8bc[_0x3e0cf1('0x160a')];break;}}function _0x33b022(_0x35a341){var _0x2ad5e7=_0x393c18;if(_0x35a341==='second')_0x27c8bc[_0x2ad5e7('0x185c')]=undefined,_0x27c8bc['thirdLevelDisposition']=undefined,_0x27c8bc[_0x2ad5e7('0x22f8')]=_0x27c8bc[_0x2ad5e7('0x1273')];else _0x35a341==='third'&&(_0x27c8bc[_0x2ad5e7('0x160a')]=undefined,_0x27c8bc[_0x2ad5e7('0x22f8')]=_0x27c8bc[_0x2ad5e7('0x185c')]);}function _0x384b06(){var _0x5b5e81=_0x393c18,_0x145dfb=_0x27c8bc[_0x5b5e81('0x22f8')]?_0x27c8bc[_0x5b5e81('0x22f8')][_0x5b5e81('0x19fe')][_0x5b5e81('0xac2')]():undefined;return{'id':_0x27c8bc[_0x5b5e81('0xdc2')][_0x5b5e81('0x968')],'disposition':_0x27c8bc[_0x5b5e81('0x1273')]?_0x27c8bc[_0x5b5e81('0x1273')][_0x5b5e81('0x19fe')]:null,'secondDisposition':_0x27c8bc[_0x5b5e81('0x185c')]?_0x27c8bc['secondLevelDisposition']['name']:null,'thirdDisposition':_0x27c8bc['thirdLevelDisposition']?_0x27c8bc[_0x5b5e81('0x160a')][_0x5b5e81('0x19fe')]:null,'dispositionat':_0x1088bc()(),'amd':_0x145dfb===_0x5b5e81('0xe88'),'fax':_0x145dfb===_0x5b5e81('0x93f'),'blacklist':_0x145dfb===_0x5b5e81('0x15ad'),'recallme':_0x145dfb===_0x5b5e81('0xe15'),'UserId':_0x145dfb===_0x5b5e81('0xe15')?_0x1ee3e3[_0x5b5e81('0x15ed')]()['id']:null,'OwnerId':_0x1ee3e3['getCurrentUser']()['id']};}function _0x1a44ff(){var _0x48bec9=_0x393c18;return _0x320e43[_0x48bec9('0x10ab')]['update']({'id':_0x27c8bc[_0x48bec9('0xdc2')][_0x48bec9('0x968')],'userDisposition':_0x27c8bc[_0x48bec9('0x1273')]?_0x27c8bc['firstLevelDisposition'][_0x48bec9('0x19fe')]:null,'userSecondDisposition':_0x27c8bc[_0x48bec9('0x185c')]?_0x27c8bc[_0x48bec9('0x185c')][_0x48bec9('0x19fe')]:null,'userThirdDisposition':_0x27c8bc[_0x48bec9('0x160a')]?_0x27c8bc['thirdLevelDisposition']['name']:null,'note':_0x27c8bc[_0x48bec9('0x322')],'UserId':_0x1ee3e3[_0x48bec9('0x15ed')]()['id'],'ContactId':_0x27c8bc[_0x48bec9('0x150c')]['id']})['$promise'][_0x48bec9('0x1c1d')](function(_0x4835a2){var _0x26a0b5=_0x48bec9;_0x20fdf7[_0x26a0b5('0x2092')]({'title':_0x4835a2[_0x26a0b5('0x209')]?_0x26a0b5('0x22d')+_0x4835a2[_0x26a0b5('0x209')]+_0x26a0b5('0xa99')+_0x4835a2[_0x26a0b5('0x1808')]:'SYSTEM:UPDATEVOICECALLREPORT','msg':_0x4835a2[_0x26a0b5('0x11c2')]?JSON['stringify'](_0x4835a2['data']):_0x4835a2[_0x26a0b5('0x174f')]()});});}function _0x195f58(){var _0x46a294=_0x393c18;return _0x320e43[_0x46a294('0x9b8')][_0x46a294('0x595')]({'uniqueid':_0x27c8bc[_0x46a294('0xdc2')]['uniqueid']})[_0x46a294('0x1376')][_0x46a294('0x21ad')](function(_0x302ee3){var _0x189e74=_0x46a294;if(_0x302ee3)for(var _0x337df8=0x0;_0x337df8<_0x302ee3[_0x189e74('0x1b33')][_0x189e74('0x577')];_0x337df8+=0x1){_0x320e43[_0x189e74('0x9b8')]['update']({'id':_0x302ee3[_0x189e74('0x1b33')][_0x337df8]['id'],'userDisposition':_0x27c8bc['firstLevelDisposition']?_0x27c8bc['firstLevelDisposition']['name']:null,'userSecondDisposition':_0x27c8bc[_0x189e74('0x185c')]?_0x27c8bc['secondLevelDisposition'][_0x189e74('0x19fe')]:null,'userThirdDisposition':_0x27c8bc[_0x189e74('0x160a')]?_0x27c8bc['thirdLevelDisposition'][_0x189e74('0x19fe')]:null})[_0x189e74('0x1376')][_0x189e74('0x1c1d')](function(_0x209a05){var _0x2de548=_0x189e74;_0x20fdf7[_0x2de548('0x2092')]({'title':_0x209a05['status']?_0x2de548('0x22d')+_0x209a05[_0x2de548('0x209')]+'\x20-\x20'+_0x209a05[_0x2de548('0x1808')]:_0x2de548('0x1f6'),'msg':_0x209a05[_0x2de548('0x11c2')]?JSON['stringify'](_0x209a05[_0x2de548('0x11c2')]):_0x209a05['toString']()});});}})[_0x46a294('0x1c1d')](function(_0x17d648){var _0x1507de=_0x46a294;_0x20fdf7[_0x1507de('0x2092')]({'title':_0x17d648[_0x1507de('0x209')]?_0x1507de('0x22d')+_0x17d648[_0x1507de('0x209')]+_0x1507de('0xa99')+_0x17d648[_0x1507de('0x1808')]:_0x1507de('0x1f6'),'msg':_0x17d648[_0x1507de('0x11c2')]?JSON['stringify'](_0x17d648[_0x1507de('0x11c2')]):_0x17d648[_0x1507de('0x174f')]()});});}function _0x475870(){var _0x184e2b=_0x393c18;return _0x320e43['cmHopperFinal']['update'](_0x384b06())[_0x184e2b('0x1376')][_0x184e2b('0x1c1d')](function(_0x8b10ae){var _0x16222b=_0x184e2b;_0x20fdf7[_0x16222b('0x2092')]({'title':_0x8b10ae[_0x16222b('0x209')]?_0x16222b('0x22d')+_0x8b10ae[_0x16222b('0x209')]+'\x20-\x20'+_0x8b10ae[_0x16222b('0x1808')]:_0x16222b('0x1d71'),'msg':_0x8b10ae['data']?JSON['stringify'](_0x8b10ae['data']):_0x8b10ae[_0x16222b('0x174f')]()});});}function _0x4abc11(){var _0x24645d=_0x393c18;return _0x320e43['cmHopperHistory'][_0x24645d('0x5ef')](_0x384b06())[_0x24645d('0x1376')][_0x24645d('0x1c1d')](function(_0x969fe0){var _0x34a745=_0x24645d;_0x20fdf7['error']({'title':_0x969fe0[_0x34a745('0x209')]?_0x34a745('0x22d')+_0x969fe0['status']+_0x34a745('0xa99')+_0x969fe0['statusText']:_0x34a745('0x2677'),'msg':_0x969fe0[_0x34a745('0x11c2')]?JSON[_0x34a745('0x25e')](_0x969fe0[_0x34a745('0x11c2')]):_0x969fe0['toString']()});});}function _0xe968bd(_0x96632){var _0xec690a=_0x393c18;if(_0x96632)return _0x320e43[_0xec690a('0xb97')][_0xec690a('0xab7')]({'id':_0x96632,'type':'outbound','fields':'id'})['$promise']['then'](function(_0x367667){var _0x2e8c1a=_0xec690a,_0x490842=[];if(_0x367667&&_0x367667['count']>0x0){for(var _0x340eb6=0x0;_0x340eb6<_0x367667['rows'][_0x2e8c1a('0x577')];_0x340eb6+=0x1){var _0x370a1e=angular[_0x2e8c1a('0xd75')](_0x27c8bc[_0x2e8c1a('0x150c')]);delete _0x370a1e['id'],_0x370a1e[_0x2e8c1a('0x815')]=_0x367667[_0x2e8c1a('0x1b33')][_0x340eb6]['id'],_0x490842[_0x2e8c1a('0x206c')](_0x320e43[_0x2e8c1a('0x25dc')][_0x2e8c1a('0x186f')](_0x370a1e)['$promise']);}return _0x3c60f6[_0x2e8c1a('0x1ba7')](_0x490842);}_0x20fdf7[_0x2e8c1a('0xdb1')]({'title':_0x502de0['instant'](_0x2e8c1a('0x5e8')),'msg':_0x502de0['instant'](_0x2e8c1a('0x1823'))+'\x20'+_0x27c8bc['selectedDisposition']}),_0x27c8bc['selectedDisposition']=undefined;return;})[_0xec690a('0x21ad')](function(_0x345545){var _0x425cf0=_0xec690a;_0x345545&&_0x2a5853[_0x425cf0('0x1c24')](_0x27c8bc[_0x425cf0('0x22f8')]?_0x27c8bc['selectedDisposition'][_0x425cf0('0x19fe')][_0x425cf0('0x2e8')]():'');})[_0xec690a('0x1c1d')](function(_0x31332c){var _0x47dad1=_0xec690a;_0x20fdf7['error']({'title':_0x31332c[_0x47dad1('0x209')]?'API:'+_0x31332c['status']+_0x47dad1('0xa99')+_0x31332c['statusText']:_0x47dad1('0x20b9'),'msg':_0x31332c[_0x47dad1('0x11c2')]?JSON[_0x47dad1('0x25e')](_0x31332c['data']):_0x31332c[_0x47dad1('0x174f')]()}),_0x2a5853[_0x47dad1('0x1c24')](_0x27c8bc[_0x47dad1('0x22f8')]?_0x27c8bc[_0x47dad1('0x22f8')][_0x47dad1('0x19fe')]['toUpperCase']():'');});}function _0x4c4a0c(_0x3a0696){var _0x3e3dba=_0x393c18;_0x27c8bc[_0x3e3dba('0x22f8')]=_0x86640f()['isNil'](_0x3a0696)?_0x27c8bc[_0x3e3dba('0x22f8')]:{'name':_0x3a0696};_0x3a0696&&(_0x27c8bc['firstLevelDisposition']=_0x27c8bc[_0x3e3dba('0x22f8')]);_0x27c8bc[_0x3e3dba('0xdc2')]['note']=_0x27c8bc[_0x3e3dba('0x322')],_0x1a44ff(),_0x195f58();_0x27c8bc[_0x3e3dba('0x23a2')]&&(_0x475870(),_0x4abc11());if(!_0x86640f()[_0x3e3dba('0x1c7')](_0x27c8bc['selectedDisposition']))switch(_0x27c8bc['selectedDisposition'][_0x3e3dba('0x19fe')][_0x3e3dba('0xac2')]()){case _0x3e3dba('0x15ad'):_0x27c8bc['call']&&_0x27c8bc[_0x3e3dba('0xdc2')][_0x3e3dba('0x142d')]&&_0x27c8bc[_0x3e3dba('0xdc2')][_0x3e3dba('0x142d')]['xmd-voicequeueid']&&_0xe968bd(_0x27c8bc[_0x3e3dba('0xdc2')]['variables'][_0x3e3dba('0xd2f')]);break;case _0x3e3dba('0x1ca6'):_0x27c8bc[_0x3e3dba('0x828')]=!![],_0x27c8bc[_0x3e3dba('0xe15')]=![];break;case _0x3e3dba('0xe15'):_0x27c8bc[_0x3e3dba('0x828')]=!![],_0x27c8bc[_0x3e3dba('0xe15')]=!![];break;default:_0x2a5853[_0x3e3dba('0x1c24')](_0x27c8bc[_0x3e3dba('0x22f8')]?_0x27c8bc[_0x3e3dba('0x22f8')][_0x3e3dba('0x19fe')]['toUpperCase']():'');}else _0x2a5853[_0x3e3dba('0x1c24')](_0x27c8bc['selectedDisposition']?_0x27c8bc[_0x3e3dba('0x22f8')][_0x3e3dba('0x19fe')]['toUpperCase']():'');}function _0x31c440(){_0x2a5853['cancel']();}function _0x43e98a(){var _0x5ddbff=_0x393c18;return _0x27c8bc[_0x5ddbff('0x2551')]=!![],_0x320e43[_0x5ddbff('0x1b37')][_0x5ddbff('0x186f')]({'phone':_0x27c8bc[_0x5ddbff('0x150c')][_0x5ddbff('0x159e')],'UserId':_0x27c8bc[_0x5ddbff('0xe15')]?_0x1ee3e3[_0x5ddbff('0x15ed')]()['id']:null,'ContactId':_0x27c8bc[_0x5ddbff('0x150c')]['id'],'ListId':_0x27c8bc['contact'][_0x5ddbff('0x815')],'VoiceQueueId':_0x27c8bc[_0x5ddbff('0x23a2')]?Number(_0x27c8bc[_0x5ddbff('0xdc2')][_0x5ddbff('0xd2f')]):_0x27c8bc[_0x5ddbff('0x1203')]?_0x27c8bc[_0x5ddbff('0x1203')]['id']:null,'scheduledat':_0x1088bc()(_0x27c8bc['hopper']['dateTime'])[_0x5ddbff('0x153')](_0x5ddbff('0x1e15')),'priority':0x3,'recallme':_0x27c8bc[_0x5ddbff('0xe15')],'OwnerId':_0x1ee3e3[_0x5ddbff('0x15ed')]()['id']})[_0x5ddbff('0x1376')][_0x5ddbff('0x21ad')](function(){var _0x5f2fb5=_0x5ddbff;_0x27c8bc[_0x5f2fb5('0x23a2')]&&_0x320e43[_0x5f2fb5('0x10d9')][_0x5f2fb5('0x5ef')]({'id':_0x27c8bc[_0x5f2fb5('0xdc2')]['uniqueid'],'rescheduled':!![],'rescheduledat':_0x1088bc()(_0x27c8bc[_0x5f2fb5('0x155d')][_0x5f2fb5('0x2583')])[_0x5f2fb5('0x153')](_0x5f2fb5('0x1e15')),'recallme':_0x27c8bc[_0x5f2fb5('0xe15')]})[_0x5f2fb5('0x1376')][_0x5f2fb5('0x1c1d')](function(_0x1d336e){var _0x4b8739=_0x5f2fb5;console[_0x4b8739('0x6fb')](_0x1d336e);});})['then'](function(){var _0x3029db=_0x5ddbff;_0x20fdf7[_0x3029db('0xdb1')]({'title':_0x502de0[_0x3029db('0x183e')](_0x3029db('0x5e8')),'msg':_0x502de0[_0x3029db('0x183e')](_0x3029db('0x610'))+'\x20'+(_0x27c8bc[_0x3029db('0xe15')]?_0x502de0[_0x3029db('0x183e')](_0x3029db('0x8df')):_0x502de0['instant'](_0x3029db('0x175f')))});})['catch'](function(){var _0x4bc74f=_0x5ddbff;_0x2a5853['hide'](_0x27c8bc[_0x4bc74f('0x22f8')]?_0x27c8bc[_0x4bc74f('0x22f8')][_0x4bc74f('0x19fe')][_0x4bc74f('0x2e8')]():'');})['finally'](function(){var _0x24f0a4=_0x5ddbff;_0x27c8bc[_0x24f0a4('0x2551')]=![],_0x2a5853[_0x24f0a4('0x1c24')](_0x27c8bc['selectedDisposition']?_0x27c8bc[_0x24f0a4('0x22f8')]['name']['toUpperCase']():'');});}}const _0x176646=_0x32c057;_0x37115b[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$location',_0x3877e3('0x1850'),_0x3877e3('0x2313'),'toasty','api','contact',_0x3877e3('0xdc2'),_0x3877e3('0x15bc'),'recallme',_0x3877e3('0x13c1')];function _0x37115b(_0x42c7c3,_0x2978d8,_0x54d09a,_0x249fe1,_0x110aa4,_0x3e2182,_0x50756d,_0x649fdb,_0xfc99da,_0x492b7b,_0x17a8b5,_0x29a0f5){var _0x3649d6=_0x3877e3,_0x8131d8=this;_0x8131d8[_0x3649d6('0xdc2')]=_0xfc99da,_0x8131d8[_0x3649d6('0x150c')]=_0x649fdb,_0x8131d8['hopper']={'minDate':new Date(),'dateTime':new Date()};function _0x2ea3fc(){var _0x57880e=_0x3649d6;return _0x8131d8['disable']=!![],_0x50756d[_0x57880e('0x1b37')][_0x57880e('0x186f')]({'phone':_0x8131d8[_0x57880e('0x150c')][_0x57880e('0x159e')],'UserId':_0x17a8b5?_0x492b7b[_0x57880e('0x15ed')]()['id']:null,'ContactId':_0x8131d8[_0x57880e('0x150c')]['id'],'ListId':_0x8131d8[_0x57880e('0x150c')]['ListId'],'VoiceQueueId':Number(_0x8131d8[_0x57880e('0xdc2')][_0x57880e('0xd2f')]),'scheduledat':_0x1088bc()(_0x8131d8[_0x57880e('0x155d')]['dateTime'])[_0x57880e('0x153')](_0x57880e('0x1e15')),'priority':0x3,'recallme':_0x17a8b5,'OwnerId':_0x492b7b[_0x57880e('0x15ed')]()['id']})[_0x57880e('0x1376')][_0x57880e('0x21ad')](function(){var _0x10d4e7=_0x57880e;_0x50756d[_0x10d4e7('0x10d9')]['update']({'id':_0x8131d8[_0x10d4e7('0xdc2')][_0x10d4e7('0x968')],'rescheduled':!![],'rescheduledat':_0x1088bc()(_0x8131d8[_0x10d4e7('0x155d')][_0x10d4e7('0x2583')])[_0x10d4e7('0x153')]('YYYY-MM-DD\x20HH:mm:ss'),'recallme':_0x17a8b5})['$promise'];})[_0x57880e('0x21ad')](function(){var _0x5dc772=_0x57880e;_0x3e2182['success']({'title':_0x29a0f5[_0x5dc772('0x183e')](_0x5dc772('0x5e8')),'msg':_0x29a0f5['instant']('DASHBOARDS.CALL_DISPOSED')+'\x20'+(_0x17a8b5?_0x29a0f5[_0x5dc772('0x183e')](_0x5dc772('0x8df')):_0x29a0f5[_0x5dc772('0x183e')](_0x5dc772('0x175f')))}),_0x249fe1[_0x5dc772('0x1c24')]();})['catch'](function(_0x2ede40){var _0x14b2ca=_0x57880e;_0x249fe1[_0x14b2ca('0x3b5')](_0x2ede40);})[_0x57880e('0x13e')](function(){var _0x50f02c=_0x57880e;_0x8131d8[_0x50f02c('0x2551')]=![];});}function _0x38b035(){_0x249fe1['cancel']();}_0x8131d8['closeDialog']=_0x38b035,_0x8131d8[_0x3649d6('0x1215')]=_0x2ea3fc;}const _0x3bb804=_0x37115b;_0x21b3dd[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$translate',_0x3877e3('0xccd'),_0x3877e3('0x2814'),'callNumber','toasty'];function _0x21b3dd(_0x1de25c,_0x178152,_0x13e229,_0x2cb347,_0x18f5a8,_0x3280ba){var _0x1979d6=_0x3877e3,_0x2e4ab2=this;_0x2e4ab2[_0x1979d6('0x1881')]=_0x18f5a8,_0x2e4ab2[_0x1979d6('0x2376')]=0x1;function _0xea45f7(){var _0x5d7951=_0x1979d6;_0x13e229['cmList']['get']({'fields':'id,name','nolimit':!![]})[_0x5d7951('0x1376')][_0x5d7951('0x21ad')](function(_0x3065ae){var _0xd39cdf=_0x5d7951;_0x2e4ab2[_0xd39cdf('0x1972')]=_0x86640f()[_0xd39cdf('0x2254')](_0x3065ae[_0xd39cdf('0x1b33')])[_0xd39cdf('0xcde')]('id')[_0xd39cdf('0x9e7')](_0xd39cdf('0x19fe'))['value'](),_0x13e229[_0xd39cdf('0x1851')][_0xd39cdf('0x595')]({'fields':_0xd39cdf('0x558'),'nolimit':!![]})[_0xd39cdf('0x1376')][_0xd39cdf('0x21ad')](function(_0x2b470a){var _0x2a1a26=_0xd39cdf;_0x2e4ab2[_0x2a1a26('0xbbd')]=_0x2b470a[_0x2a1a26('0x1b33')],_0x2e4ab2[_0x2a1a26('0x2814')]=_0x86640f()['map'](_0x2cb347,function(_0x50fd83){var _0x2f9862=_0x2a1a26;return Object[_0x2f9862('0x223b')](_0x50fd83)[_0x2f9862('0x1a52')](function(_0x578a2a){var _0x2d1020=_0x2f9862;if(Number(_0x50fd83[_0x578a2a])===Number(_0x2e4ab2[_0x2d1020('0x1881')])){if(_0x578a2a[_0x2d1020('0x2837')](_0x2d1020('0x714'))){var _0x45f3c8=_0x86640f()['find'](_0x2e4ab2[_0x2d1020('0xbbd')],['id',Number(_0x86640f()[_0x2d1020('0x1ab4')](_0x578a2a,'cf_'))]);_0x50fd83[_0x2d1020('0xdc6')]=_0x45f3c8?_0x45f3c8[_0x2d1020('0xe62')]:_0x178152[_0x2d1020('0x183e')](_0x2d1020('0xc13'));}else _0x50fd83[_0x2d1020('0xdc6')]=_0x578a2a;}}),_0x50fd83;});});})['then'](function(){var _0x193a0e=_0x5d7951;_0x2e4ab2['paginatedContacts']=_0x86640f()[_0x193a0e('0x1b4c')](_0x2cb347,0x4);})['catch'](function(_0x1be1ec){var _0x29f7fe=_0x5d7951;_0x3280ba[_0x29f7fe('0x2092')]({'title':_0x1be1ec[_0x29f7fe('0x209')]?_0x29f7fe('0x22d')+_0x1be1ec[_0x29f7fe('0x209')]+_0x29f7fe('0xa99')+_0x1be1ec[_0x29f7fe('0x1808')]:_0x29f7fe('0x3de'),'msg':_0x1be1ec[_0x29f7fe('0x11c2')]?JSON[_0x29f7fe('0x25e')](_0x1be1ec[_0x29f7fe('0x11c2')][_0x29f7fe('0x1224')]):_0x1be1ec['toString']()});});}function _0x4c6b0b(){var _0x367537=_0x1979d6;_0x1de25c[_0x367537('0x1c24')](_0x2e4ab2[_0x367537('0x1126')]);}_0x2e4ab2[_0x1979d6('0x1081')]=_0xea45f7,_0x2e4ab2[_0x1979d6('0x1f46')]=_0x4c6b0b;}const _0x544faa=_0x21b3dd;_0x327691[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0x1e8d')];function _0x327691(_0x130c9b,_0xb02ca3){var _0x3b0f84=_0x3877e3,_0x4349c8=_0xb02ca3(function(){},0x3e7);_0x130c9b[_0x3b0f84('0x1723')](_0x3b0f84('0x1210'),function(){var _0x26b719=_0x3b0f84;_0x4349c8&&(_0xb02ca3[_0x26b719('0x3b5')](_0x4349c8),_0x4349c8=null);});}const _0x174c0=_0x327691;_0x4e2151[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$timeout','$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x24e1'),'$translate',_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'socket'];function _0x4e2151(_0x5436fd,_0x37084f,_0x4dc6da,_0x5ec9a4,_0x1f2ebf,_0x3a726b,_0x53a1b7,_0x7eb0f8,_0x5cc372){var _0x110a87=_0x3877e3,_0x48683d=this;_0x48683d[_0x110a87('0x246f')]=![],_0x48683d[_0x110a87('0x14f')]=!![],_0x48683d[_0x110a87('0x2551')]=[],_0x48683d['dispositions']={'count':0x0,'rows':[]},_0x48683d[_0x110a87('0x123f')]=_0x7eb0f8[_0x110a87('0x15ed')](),_0x48683d[_0x110a87('0xb7a')]={},_0x48683d[_0x110a87('0x156e')]={'count':0x0,'rows':[]},_0x48683d[_0x110a87('0x77')]={'fields':_0x110a87('0x7dc'),'type':'outbound','queuecallerexitreason':'TIMEOUT'+','+_0x110a87('0x20ee'),'sort':_0x110a87('0x33'),'limit':0xa,'page':0x1},_0x48683d[_0x110a87('0x2796')]=_0x1d5356,_0x48683d[_0x110a87('0x67a')]=_0x21e198,_0x48683d['onInit']=_0x4cff55,_0x48683d['reserved']=_0x571b7e,_0x48683d[_0x110a87('0x1ab7')]=_0x1c0693,_0x48683d[_0x110a87('0xdc2')]=_0x5436fd['$parent']['$parent']['$parent']['$parent']['vm'][_0x110a87('0xdc2')],_0x48683d['transfer']=_0x5436fd['$parent']['$parent'][_0x110a87('0x223d')][_0x110a87('0x223d')]['vm'][_0x110a87('0x1e61')],_0x48683d[_0x110a87('0x709')]=_0x5436fd[_0x110a87('0x223d')][_0x110a87('0x223d')][_0x110a87('0x223d')][_0x110a87('0x223d')]['vm'][_0x110a87('0x709')],_0x48683d[_0x110a87('0x9c1')]=_0x5436fd[_0x110a87('0x223d')][_0x110a87('0x223d')][_0x110a87('0x223d')][_0x110a87('0x223d')]['vm'][_0x110a87('0x9c1')],_0x48683d['onSearchBarCollapse']=_0x4c7e7f,_0x48683d[_0x110a87('0x1bf6')]=_0x73f7cc,_0x5cc372[_0x110a87('0x1487')](_0x110a87('0x1bf5'),_0xcab28e),_0x5cc372[_0x110a87('0x1487')](_0x110a87('0x1a3a'),_0x338e10),_0x4cff55();function _0x4cff55(){var _0x4b8622=_0x110a87;return _0x53a1b7[_0x4b8622('0x22c8')][_0x4b8622('0x595')]({'MailAccountId':_0x4b8622('0x27a'),'FaxAccountId':'null','SmsAccountId':_0x4b8622('0x27a'),'WhatsappAccountId':_0x4b8622('0x27a'),'OpenchannelAccountId':'null','ChatWebsiteId':'null'})[_0x4b8622('0x1376')]['then'](function(_0x35ce02){var _0x3adad2=_0x4b8622;return _0x48683d[_0x3adad2('0x10d0')]=_0x35ce02?_0x35ce02[_0x3adad2('0x1b33')]:[],_0x53a1b7[_0x3adad2('0x1775')][_0x3adad2('0x71c')]({'id':_0x7eb0f8[_0x3adad2('0x15ed')]()['id'],'fields':_0x3adad2('0x1aa8'),'channel':_0x3adad2('0x8ed'),'type':_0x3adad2('0x2300'),'nolimit':!![]})[_0x3adad2('0x1376')];})['then'](function(_0x2f8f00){var _0x55ab90=_0x4b8622;_0x48683d[_0x55ab90('0xb7a')]=_0x2f8f00||{'count':0x0,'rows':[]},_0x48683d[_0x55ab90('0x6d3')]=_0x86640f()['mapValues'](_0x86640f()['keyBy'](_0x48683d['queues'][_0x55ab90('0x1b33')],_0x55ab90('0x19fe')),_0x55ab90('0x19fe')),_0x48683d[_0x55ab90('0xf9')]=_0x48683d['queues'][_0x55ab90('0x1b33')]?_0x86640f()['map'](_0x48683d['queues'][_0x55ab90('0x1b33')],_0x55ab90('0x19fe'))['join'](','):undefined;})['then'](function(){_0x48683d['quickFilters']=_0x4ac394();})['catch'](function(_0x111a1d){console['log'](_0x111a1d);})['finally'](function(){var _0x4486d6=_0x4b8622,_0x5624a5=_0x1f2ebf['localStorage'][_0x4486d6('0x633')](_0x4486d6('0x1363')+_0x48683d[_0x4486d6('0x123f')]['id']);if(_0x5624a5)_0x5624a5=JSON[_0x4486d6('0x399')](_0x5624a5),_0x5624a5[_0x4486d6('0x77')]&&(_0x48683d[_0x4486d6('0x77')]=_0x86640f()[_0x4486d6('0xd0e')](_0x5624a5[_0x4486d6('0x77')],_0x86640f()['omit'](_0x48683d[_0x4486d6('0x77')],[_0x4486d6('0x1944'),_0x4486d6('0x1f4a'),'page'])),_0x48683d['query']=_0x86640f()[_0x4486d6('0x27b1')](_0x48683d['query'],'filter'));else{var _0x38600b={'$gte':_0x1088bc()()[_0x4486d6('0x1982')]('month')[_0x4486d6('0x215e')](0x0,!![])[_0x4486d6('0x153')](),'$lte':_0x1088bc()()[_0x4486d6('0x117b')]('month')[_0x4486d6('0x215e')](0x0,!![])['format']()};_0x48683d[_0x4486d6('0x77')]['createdAt']=_0x38600b;}_0x48683d[_0x4486d6('0x146a')]=_0x48683d['query'][_0x4486d6('0x1503')]?!![]:![],_0x48683d['getAbandonedCalls']();});}function _0x4ac394(){var _0x58474d=_0x110a87;return[{'name':_0x58474d('0x18a1'),'key':_0x58474d('0x23ae'),'type':'date','label':_0x58474d('0x1d04')},{'name':_0x58474d('0x1a44'),'key':_0x58474d('0x1dc6'),'type':_0x58474d('0x2844'),'label':_0x58474d('0x115d'),'customOptions':[{'value':_0x48683d[_0x58474d('0x123f')]['id'],'translate':_0x58474d('0x4db')},{'value':_0x58474d('0x1015'),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':_0x58474d('0x1ee5')}]},{'name':'Campaign','key':_0x58474d('0xbdd'),'type':_0x58474d('0x91f'),'label':_0x58474d('0x249b'),'options':_0x48683d['queues'][_0x58474d('0x1b33')],'ngValue':_0x58474d('0x19fe'),'clearAll':![]}];}function _0x1d5356(){var _0x1f6495=_0x110a87;_0x48683d[_0x1f6495('0x77')][_0x1f6495('0xbdd')]=_0x48683d[_0x1f6495('0x77')][_0x1f6495('0xbdd')]||_0x48683d[_0x1f6495('0xf9')][_0x1f6495('0x1af5')](','),_0x48683d[_0x1f6495('0x77')][_0x1f6495('0x15a5')]=(_0x48683d[_0x1f6495('0x77')]['page']-0x1)*_0x48683d[_0x1f6495('0x77')][_0x1f6495('0x1f4a')];var _0x3383e5={'query':_0x48683d[_0x1f6495('0x77')]};_0x1f2ebf[_0x1f6495('0x161e')][_0x1f6495('0x1014')](_0x1f6495('0x1363')+_0x48683d[_0x1f6495('0x123f')]['id'],JSON[_0x1f6495('0x25e')](_0x3383e5)),_0x48683d[_0x1f6495('0x71b')]=_0x53a1b7[_0x1f6495('0x1ac1')][_0x1f6495('0x2568')](_0x48683d[_0x1f6495('0x77')],_0x2b9ddf)[_0x1f6495('0x1376')];}function _0x2b9ddf(_0x37bf84){var _0x1595e4=_0x110a87;_0x48683d['abandonedCalls']=_0x37bf84||{'count':0x0,'rows':[]},_0x48683d[_0x1595e4('0x14f')]=!![];}function _0x1c0693(_0x22ba0c){var _0x39381d=_0x110a87;_0x4dc6da[_0x39381d('0x853')]({'controller':_0x39381d('0x1030'),'controllerAs':'vm','templateUrl':_0x39381d('0x5f4'),'parent':angular['element'](_0x5ec9a4[_0x39381d('0x2452')]),'targetEvent':_0x22ba0c,'resolve':{'globalDispositions':['apiResolver',function _0x55a579(_0x1abce9){var _0x2d3ac3=_0x39381d;return _0x1abce9[_0x2d3ac3('0x8ac')](_0x2d3ac3('0x13a3'),{'MailAccountId':'null','FaxAccountId':_0x2d3ac3('0x27a'),'SmsAccountId':'null','WhatsappAccountId':_0x2d3ac3('0x27a'),'OpenchannelAccountId':'null','ChatWebsiteId':_0x2d3ac3('0x27a'),'ListId':_0x2d3ac3('0x27a')});}]},'locals':{'dispositions':_0x48683d['dispositions'],'call':_0x22ba0c}})[_0x39381d('0x21ad')](function(_0x52b56f){var _0x573678=_0x39381d;if(_0x52b56f){_0x48683d[_0x573678('0x2551')][_0x22ba0c['id']]=!![];var _0x1dc2ee={'id':_0x22ba0c['id'],'lastAssignedTo':_0x22ba0c['assigned']?_0x48683d[_0x573678('0x123f')][_0x573678('0x19fe')]:null,'assigned':_0x22ba0c[_0x573678('0x284c')],'disposition':_0x52b56f[_0x573678('0xedf')]||null,'secondDisposition':_0x52b56f['secondLevel']||null,'thirdDisposition':_0x52b56f[_0x573678('0x2115')]||null};_0x53a1b7['voiceQueueReport'][_0x573678('0x5ef')](_0x1dc2ee)['$promise']['catch'](function(_0x18c98c){console['log'](_0x18c98c);})[_0x573678('0x13e')](function(){var _0x18feda=_0x573678;_0x48683d[_0x18feda('0x2551')][_0x22ba0c['id']]=![];});}});}function _0x4c7e7f(){var _0x587dfc=_0x110a87;_0x48683d['query']['filter']=undefined,_0x48683d[_0x587dfc('0x146a')]=![];}function _0x73f7cc(){var _0x5109bf=_0x110a87;_0x48683d[_0x5109bf('0x146a')]=!![];}var _0x195a9a=!![],_0x4b6ce=0x1;_0x5436fd[_0x110a87('0x10e8')]('vm_bull.query.filter',function(_0x54606e,_0x22f14c){var _0x25edde=_0x110a87;_0x195a9a?_0x37084f(function(){_0x195a9a=![];}):(!_0x22f14c&&(_0x4b6ce=_0x48683d['query'][_0x25edde('0x2376')]),_0x54606e!==_0x22f14c&&(_0x48683d[_0x25edde('0x77')][_0x25edde('0x2376')]=0x1),!_0x54606e&&(_0x48683d[_0x25edde('0x77')][_0x25edde('0x2376')]=_0x4b6ce),_0x48683d[_0x25edde('0x2796')]());});function _0x21e198(){var _0x3ef87e=_0x110a87;_0x48683d[_0x3ef87e('0x246f')]=![],_0x48683d[_0x3ef87e('0x2796')]();}function _0x571b7e(_0x1bf115){var _0x6afd08=_0x110a87;_0x1bf115&&(_0x48683d[_0x6afd08('0x2551')][_0x1bf115['id']]=!![],_0x53a1b7[_0x6afd08('0x1ac1')][_0x6afd08('0x5ef')]({'id':_0x1bf115['id'],'lastAssignedTo':_0x1bf115['assigned']?_0x48683d[_0x6afd08('0x123f')]['name']:null,'assigned':_0x1bf115[_0x6afd08('0x284c')]})[_0x6afd08('0x1376')][_0x6afd08('0x1c1d')](function(_0x412924){var _0x57b799=_0x6afd08;console[_0x57b799('0x6fb')](_0x412924);})[_0x6afd08('0x13e')](function(){var _0x1c94b2=_0x6afd08;_0x48683d[_0x1c94b2('0x2551')][_0x1bf115['id']]=![];}));}function _0xcab28e(_0x214161){var _0x4214ba=_0x110a87;_0x48683d['queuesMap']&&_0x214161['type']===_0x4214ba('0x2300')&&_0x48683d[_0x4214ba('0x6d3')][_0x214161[_0x4214ba('0xbdd')]]&&(_0x48683d[_0x4214ba('0x246f')]=!![]);}function _0x338e10(_0x24e28a){var _0x544e5d=_0x110a87;if(_0x24e28a){var _0x2f375b=_0x86640f()['findIndex'](_0x48683d['abandonedCalls'][_0x544e5d('0x1b33')],['id',_0x24e28a['id']]);_0x2f375b>=0x0&&_0x86640f()[_0x544e5d('0xd0e')](_0x48683d[_0x544e5d('0x156e')][_0x544e5d('0x1b33')][_0x2f375b],_0x24e28a);}}_0x5436fd[_0x110a87('0x1723')](_0x110a87('0x1210'),function(){var _0x107c65=_0x110a87;_0x5cc372['removeAllListeners']('voiceQueueReport:save'),_0x5cc372[_0x107c65('0x16cc')]('voiceQueueReport:update');});}const _0x293020=_0x4e2151;_0x3ca3aa['$inject']=[_0x3877e3('0x1850'),'dispositions','globalDispositions','call'];function _0x3ca3aa(_0x541a5b,_0x4d573e,_0x180213,_0x4e0542){var _0x1b8263=_0x3877e3,_0x1f87c5=this;_0x1f87c5[_0x1b8263('0x10d0')]=_0x4d573e['rows'],_0x1f87c5[_0x1b8263('0xa17')]=_0x180213[_0x1b8263('0x1b33')],_0x1f87c5[_0x1b8263('0xdc2')]=_0x4e0542,_0x1f87c5[_0x1b8263('0x322')]=_0x1f87c5[_0x1b8263('0xdc2')][_0x1b8263('0x322')]||undefined,_0x1f87c5[_0x1b8263('0x1673')]=_0xacf992,_0x1f87c5[_0x1b8263('0x10d8')]=_0x23c609,_0x1f87c5['saveDisposition']=_0x44765a,_0x1f87c5[_0x1b8263('0x167')]=_0x5a756a;function _0xacf992(_0x374ccf){var _0x593e4f=_0x1b8263,_0x2ff41e=_0x86640f()[_0x593e4f('0x795')](_0x1f87c5[_0x593e4f('0x10d0')],_0x1f87c5['globalDispositions'],'id');switch(_0x374ccf){case _0x593e4f('0x2019'):_0x1f87c5['selectedDisposition']=_0x1f87c5[_0x593e4f('0x1273')],_0x1f87c5[_0x593e4f('0x10a7')]=_0x86640f()[_0x593e4f('0x2664')](_0x2ff41e,['ParentId',_0x1f87c5[_0x593e4f('0x1273')]['id']]),_0x1f87c5[_0x593e4f('0x185c')]=undefined,_0x1f87c5['thirdLevelDisposition']=undefined,_0x1f87c5[_0x593e4f('0x2501')]=![];break;case _0x593e4f('0x502'):_0x1f87c5[_0x593e4f('0x22f8')]=_0x1f87c5[_0x593e4f('0x185c')],_0x1f87c5['anyThirdLevelDisposition']=_0x86640f()[_0x593e4f('0x2664')](_0x2ff41e,[_0x593e4f('0x198f'),_0x1f87c5['secondLevelDisposition']['id']]);break;case _0x593e4f('0x1649'):_0x1f87c5[_0x593e4f('0x22f8')]=_0x1f87c5['thirdLevelDisposition'];break;}}function _0x23c609(_0x1ac6d8){var _0x5455d1=_0x1b8263;if(_0x1ac6d8===_0x5455d1('0x502'))_0x1f87c5[_0x5455d1('0x185c')]=undefined,_0x1f87c5[_0x5455d1('0x160a')]=undefined,_0x1f87c5[_0x5455d1('0x22f8')]=_0x1f87c5[_0x5455d1('0x1273')];else _0x1ac6d8==='third'&&(_0x1f87c5[_0x5455d1('0x160a')]=undefined,_0x1f87c5['selectedDisposition']=_0x1f87c5[_0x5455d1('0x185c')]);}function _0x44765a(){var _0x4882e2=_0x1b8263;_0x1f87c5[_0x4882e2('0xdc2')]['note']=_0x1f87c5[_0x4882e2('0x322')];var _0x183e4f={'firstLevel':_0x1f87c5[_0x4882e2('0x1273')]?_0x1f87c5[_0x4882e2('0x1273')][_0x4882e2('0x19fe')]:undefined,'secondLevel':_0x1f87c5[_0x4882e2('0x185c')]?_0x1f87c5[_0x4882e2('0x185c')][_0x4882e2('0x19fe')]:undefined,'thirdLevel':_0x1f87c5['thirdLevelDisposition']?_0x1f87c5[_0x4882e2('0x160a')][_0x4882e2('0x19fe')]:undefined};_0x541a5b['hide'](_0x183e4f);}function _0x5a756a(){var _0x4d2f97=_0x1b8263;_0x541a5b[_0x4d2f97('0x3b5')]();}}const _0x204d05=_0x3ca3aa;_0x37ea21[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x24e1'),_0x3877e3('0x13c1'),'api',_0x3877e3('0x15bc'),_0x3877e3('0x25d8')];function _0x37ea21(_0x4a6094,_0x4e682e,_0xb9056f,_0x479993,_0xfdcc21,_0x2f9ebd,_0x449dfe,_0x191b5a,_0x211b0b){var _0x155f31=_0x3877e3,_0x35bc95=this;_0x35bc95[_0x155f31('0x246f')]=![],_0x35bc95[_0x155f31('0x14f')]=!![],_0x35bc95[_0x155f31('0x2551')]=[],_0x35bc95[_0x155f31('0x10d0')]={'count':0x0,'rows':[]},_0x35bc95[_0x155f31('0x123f')]=_0x191b5a[_0x155f31('0x15ed')](),_0x35bc95[_0x155f31('0xb7a')]={},_0x35bc95[_0x155f31('0x156e')]={'count':0x0,'rows':[]},_0x35bc95[_0x155f31('0x77')]={'fields':_0x155f31('0x7dc'),'type':_0x155f31('0x923'),'queuecallerexitreason':_0x155f31('0x330')+','+'ABANDONED','sort':_0x155f31('0x33'),'limit':0xa,'page':0x1},_0x35bc95[_0x155f31('0x2796')]=_0x4c355b,_0x35bc95[_0x155f31('0x67a')]=_0x5c39bf,_0x35bc95[_0x155f31('0x1081')]=_0x2ae3f0,_0x35bc95[_0x155f31('0x27aa')]=_0x5c624e,_0x35bc95[_0x155f31('0x1ab7')]=_0x245532,_0x35bc95[_0x155f31('0xdc2')]=_0x4a6094[_0x155f31('0x223d')][_0x155f31('0x223d')][_0x155f31('0x223d')][_0x155f31('0x223d')]['vm'][_0x155f31('0xdc2')],_0x35bc95[_0x155f31('0x1e61')]=_0x4a6094[_0x155f31('0x223d')][_0x155f31('0x223d')][_0x155f31('0x223d')][_0x155f31('0x223d')]['vm']['transfer'],_0x35bc95['webcall']=_0x4a6094['$parent']['$parent'][_0x155f31('0x223d')][_0x155f31('0x223d')]['vm']['webcall'],_0x35bc95['webtransfer']=_0x4a6094[_0x155f31('0x223d')][_0x155f31('0x223d')]['$parent'][_0x155f31('0x223d')]['vm'][_0x155f31('0x9c1')],_0x35bc95[_0x155f31('0x21f9')]=_0x1bcaee,_0x35bc95['onSearchBarExpand']=_0x2ade72,_0x211b0b['onWithoutApply']('voiceQueueReport:save',_0xb1a606),_0x211b0b[_0x155f31('0x1487')]('voiceQueueReport:update',_0x41dc0c),_0x2ae3f0();function _0x2ae3f0(){var _0x5554a0=_0x155f31;return _0x449dfe['disposition'][_0x5554a0('0x595')]({'MailAccountId':_0x5554a0('0x27a'),'FaxAccountId':'null','SmsAccountId':_0x5554a0('0x27a'),'WhatsappAccountId':_0x5554a0('0x27a'),'OpenchannelAccountId':'null','ChatWebsiteId':'null'})['$promise'][_0x5554a0('0x21ad')](function(_0x56d5b5){var _0x2d0929=_0x5554a0;return _0x35bc95['dispositions']=_0x56d5b5?_0x56d5b5['rows']:[],_0x449dfe[_0x2d0929('0x1775')]['getQueues']({'id':_0x191b5a[_0x2d0929('0x15ed')]()['id'],'fields':_0x2d0929('0x1aa8'),'channel':_0x2d0929('0x8ed'),'type':'inbound','nolimit':!![]})['$promise'];})[_0x5554a0('0x21ad')](function(_0x228ebe){var _0x21fe00=_0x5554a0;_0x35bc95[_0x21fe00('0xb7a')]=_0x228ebe||{'count':0x0,'rows':[]},_0x35bc95[_0x21fe00('0x6d3')]=_0x86640f()[_0x21fe00('0x9e7')](_0x86640f()['keyBy'](_0x35bc95['queues'][_0x21fe00('0x1b33')],_0x21fe00('0x19fe')),'name'),_0x35bc95[_0x21fe00('0xf9')]=_0x35bc95[_0x21fe00('0xb7a')][_0x21fe00('0x1b33')]?_0x86640f()[_0x21fe00('0x26c3')](_0x35bc95[_0x21fe00('0xb7a')][_0x21fe00('0x1b33')],_0x21fe00('0x19fe'))[_0x21fe00('0x136')](','):undefined;})['then'](function(){var _0x1a4ed3=_0x5554a0;_0x35bc95[_0x1a4ed3('0x2255')]=_0x11e472();})[_0x5554a0('0x1c1d')](function(_0x293890){console['log'](_0x293890);})['finally'](function(){var _0x35c4b3=_0x5554a0,_0x3c6058=_0xfdcc21[_0x35c4b3('0x161e')][_0x35c4b3('0x633')](_0x35c4b3('0xcbb')+_0x35bc95[_0x35c4b3('0x123f')]['id']);if(_0x3c6058)_0x3c6058=JSON[_0x35c4b3('0x399')](_0x3c6058),_0x3c6058[_0x35c4b3('0x77')]&&(_0x35bc95[_0x35c4b3('0x77')]=_0x86640f()[_0x35c4b3('0xd0e')](_0x3c6058['query'],_0x86640f()[_0x35c4b3('0x27b1')](_0x35bc95[_0x35c4b3('0x77')],['sort',_0x35c4b3('0x1f4a'),_0x35c4b3('0x2376')])),_0x35bc95[_0x35c4b3('0x77')]=_0x86640f()[_0x35c4b3('0x27b1')](_0x35bc95[_0x35c4b3('0x77')],_0x35c4b3('0x1503')));else{var _0x56fb60={'$gte':_0x1088bc()()['startOf'](_0x35c4b3('0xb64'))['utcOffset'](0x0,!![])[_0x35c4b3('0x153')](),'$lte':_0x1088bc()()[_0x35c4b3('0x117b')](_0x35c4b3('0xb64'))[_0x35c4b3('0x215e')](0x0,!![])[_0x35c4b3('0x153')]()};_0x35bc95[_0x35c4b3('0x77')][_0x35c4b3('0x23ae')]=_0x56fb60;}_0x35bc95[_0x35c4b3('0x146a')]=_0x35bc95[_0x35c4b3('0x77')]['filter']?!![]:![],_0x35bc95[_0x35c4b3('0x2796')]();});}function _0x11e472(){var _0x4187e6=_0x155f31;return[{'name':_0x4187e6('0x18a1'),'key':'createdAt','type':'date','label':_0x4187e6('0x1d04')},{'name':_0x4187e6('0x1a44'),'key':_0x4187e6('0x1dc6'),'type':_0x4187e6('0x2844'),'label':_0x4187e6('0x115d'),'customOptions':[{'value':_0x35bc95[_0x4187e6('0x123f')]['id'],'translate':'DASHBOARDS.ME'},{'value':'\x27null\x27','translate':_0x4187e6('0x1932')},{'value':undefined,'translate':_0x4187e6('0x1ee5')}]},{'name':'Campaign','key':_0x4187e6('0xbdd'),'type':_0x4187e6('0x91f'),'label':_0x4187e6('0x1ef1'),'options':_0x35bc95[_0x4187e6('0xb7a')][_0x4187e6('0x1b33')],'ngValue':_0x4187e6('0x19fe'),'clearAll':![]}];}function _0x4c355b(){var _0x4c94ff=_0x155f31;_0x35bc95['query'][_0x4c94ff('0xbdd')]=_0x35bc95[_0x4c94ff('0x77')][_0x4c94ff('0xbdd')]||_0x35bc95[_0x4c94ff('0xf9')]['split'](','),_0x35bc95['query'][_0x4c94ff('0x15a5')]=(_0x35bc95['query'][_0x4c94ff('0x2376')]-0x1)*_0x35bc95[_0x4c94ff('0x77')]['limit'];var _0x111c94={'query':_0x35bc95[_0x4c94ff('0x77')]};_0xfdcc21['localStorage']['setItem'](_0x4c94ff('0xcbb')+_0x35bc95[_0x4c94ff('0x123f')]['id'],JSON[_0x4c94ff('0x25e')](_0x111c94)),_0x35bc95[_0x4c94ff('0x71b')]=_0x449dfe[_0x4c94ff('0x1ac1')][_0x4c94ff('0x2568')](_0x35bc95[_0x4c94ff('0x77')],_0x2b7ea1)[_0x4c94ff('0x1376')];}function _0x2b7ea1(_0x13f566){var _0x34985c=_0x155f31;_0x35bc95[_0x34985c('0x156e')]=_0x13f566||{'count':0x0,'rows':[]},_0x35bc95[_0x34985c('0x14f')]=!![];}function _0x245532(_0x15b4d0){var _0x132c3d=_0x155f31;_0xb9056f[_0x132c3d('0x853')]({'controller':_0x132c3d('0x1030'),'controllerAs':'vm','templateUrl':_0x132c3d('0x5f4'),'parent':angular[_0x132c3d('0x1676')](_0x479993[_0x132c3d('0x2452')]),'targetEvent':_0x15b4d0,'resolve':{'globalDispositions':['apiResolver',function _0x420404(_0x41c7a5){var _0x2ee9c6=_0x132c3d;return _0x41c7a5[_0x2ee9c6('0x8ac')](_0x2ee9c6('0x13a3'),{'MailAccountId':'null','FaxAccountId':'null','SmsAccountId':'null','WhatsappAccountId':_0x2ee9c6('0x27a'),'OpenchannelAccountId':'null','ChatWebsiteId':'null','ListId':_0x2ee9c6('0x27a')});}]},'locals':{'dispositions':_0x35bc95[_0x132c3d('0x10d0')],'call':_0x15b4d0}})['then'](function(_0x55d4c6){var _0x3912ca=_0x132c3d;if(_0x55d4c6){_0x35bc95[_0x3912ca('0x2551')][_0x15b4d0['id']]=!![];var _0x329115={'id':_0x15b4d0['id'],'lastAssignedTo':_0x15b4d0[_0x3912ca('0x284c')]?_0x35bc95[_0x3912ca('0x123f')][_0x3912ca('0x19fe')]:null,'assigned':_0x15b4d0['assigned'],'disposition':_0x55d4c6[_0x3912ca('0xedf')]||null,'secondDisposition':_0x55d4c6[_0x3912ca('0x4a6')]||null,'thirdDisposition':_0x55d4c6[_0x3912ca('0x2115')]||null};_0x449dfe[_0x3912ca('0x1ac1')][_0x3912ca('0x5ef')](_0x329115)['$promise'][_0x3912ca('0x1c1d')](function(_0x160522){console['log'](_0x160522);})[_0x3912ca('0x13e')](function(){var _0x27bd8c=_0x3912ca;_0x35bc95[_0x27bd8c('0x2551')][_0x15b4d0['id']]=![];});}});}function _0x1bcaee(){var _0x43abe9=_0x155f31;_0x35bc95[_0x43abe9('0x77')][_0x43abe9('0x1503')]=undefined,_0x35bc95[_0x43abe9('0x146a')]=![];}function _0x2ade72(){var _0x47065d=_0x155f31;_0x35bc95[_0x47065d('0x146a')]=!![];}var _0x4da6fe=!![],_0x15d463=0x1;_0x4a6094[_0x155f31('0x10e8')](_0x155f31('0x1743'),function(_0x57960c,_0x4c19cc){var _0x52c4ff=_0x155f31;_0x4da6fe?_0x4e682e(function(){_0x4da6fe=![];}):(!_0x4c19cc&&(_0x15d463=_0x35bc95[_0x52c4ff('0x77')][_0x52c4ff('0x2376')]),_0x57960c!==_0x4c19cc&&(_0x35bc95['query'][_0x52c4ff('0x2376')]=0x1),!_0x57960c&&(_0x35bc95[_0x52c4ff('0x77')][_0x52c4ff('0x2376')]=_0x15d463),_0x35bc95[_0x52c4ff('0x2796')]());});function _0x5c39bf(){var _0x59355e=_0x155f31;_0x35bc95[_0x59355e('0x246f')]=![],_0x35bc95[_0x59355e('0x2796')]();}function _0x5c624e(_0x503021){var _0x11bdd2=_0x155f31;_0x503021&&(_0x35bc95[_0x11bdd2('0x2551')][_0x503021['id']]=!![],_0x449dfe[_0x11bdd2('0x1ac1')][_0x11bdd2('0x5ef')]({'id':_0x503021['id'],'lastAssignedTo':_0x503021['assigned']?_0x35bc95[_0x11bdd2('0x123f')]['name']:null,'assigned':_0x503021[_0x11bdd2('0x284c')]})[_0x11bdd2('0x1376')][_0x11bdd2('0x1c1d')](function(_0x244975){var _0x1728ec=_0x11bdd2;console[_0x1728ec('0x6fb')](_0x244975);})[_0x11bdd2('0x13e')](function(){_0x35bc95['disable'][_0x503021['id']]=![];}));}function _0xb1a606(_0x33efdd){var _0xa10d2c=_0x155f31;_0x35bc95[_0xa10d2c('0x6d3')]&&_0x33efdd[_0xa10d2c('0x7fa')]===_0xa10d2c('0x923')&&_0x35bc95[_0xa10d2c('0x6d3')][_0x33efdd[_0xa10d2c('0xbdd')]]&&(_0x35bc95[_0xa10d2c('0x246f')]=!![]);}function _0x41dc0c(_0x7c4ca7){var _0x5e9355=_0x155f31;if(_0x7c4ca7){var _0x5169a5=_0x86640f()[_0x5e9355('0x127')](_0x35bc95[_0x5e9355('0x156e')][_0x5e9355('0x1b33')],['id',_0x7c4ca7['id']]);_0x5169a5>=0x0&&_0x86640f()[_0x5e9355('0xd0e')](_0x35bc95[_0x5e9355('0x156e')][_0x5e9355('0x1b33')][_0x5169a5],_0x7c4ca7);}}_0x4a6094['$on']('$destroy',function(){var _0x2725fd=_0x155f31;_0x211b0b[_0x2725fd('0x16cc')](_0x2725fd('0x1bf5')),_0x211b0b['removeAllListeners'](_0x2725fd('0x1a3a'));});}const _0x3225a0=_0x37ea21;_0x3ccc53['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),'Auth','msNavigationAgentService',_0x3877e3('0x2113')];function _0x3ccc53(_0x181fc6,_0x134ffe,_0xd39ffc,_0x1987ce,_0x47e81a){var _0x1d3c6e=_0x3877e3,_0x4a13f4=this;_0x4a13f4['user']=_0xd39ffc[_0x1d3c6e('0x15ed')](),_0x4a13f4[_0x1d3c6e('0x2ff')]={},_0x4a13f4[_0x1d3c6e('0x2048')]={},_0x4a13f4[_0x1d3c6e('0x21e')]={},_0x4a13f4[_0x1d3c6e('0x238c')]=_0x1d3c6e('0xaff'),_0x4a13f4[_0x1d3c6e('0x2113')]=_0x47e81a,_0x4a13f4['navigation']=_0x1987ce[_0x1d3c6e('0xca3')](),_0x4a13f4['addContactTab']=_0x181fc6[_0x1d3c6e('0x223d')]['vm']['addContactTab'],_0x4a13f4[_0x1d3c6e('0x11b4')]=_0x181fc6['$parent']['vm'][_0x1d3c6e('0x11b4')],_0x4a13f4[_0x1d3c6e('0x1d75')]=_0x261296,_0x4a13f4[_0x1d3c6e('0x91')]=_0x4ef1d9,_0x4a13f4[_0x1d3c6e('0xc35')]=_0x3c7059;function _0x261296(_0x19f7bc,_0xe51cae){var _0x1a23fd=_0x1d3c6e;_0x4a13f4[_0x1a23fd('0x2ff')]=_0x19f7bc,_0x4a13f4[_0x1a23fd('0x21e')]=_0xe51cae;var _0x4855a2=_0x134ffe[_0x1a23fd('0x161e')][_0x1a23fd('0x633')](_0x1a23fd('0x74b')+_0x4a13f4[_0x1a23fd('0x1775')]['id']);if(_0x4855a2){try{_0x4855a2=JSON[_0x1a23fd('0x399')](_0x4855a2),_0x4a13f4[_0x1a23fd('0x238c')]=_0x4855a2[_0x1a23fd('0x1d1')]?_0x4855a2['currentSidebarTab']:_0x1a23fd('0xaff');}catch(_0x168628){console['error'](_0x168628),_0x4a13f4[_0x1a23fd('0x238c')]='dashboard';}_0x4a13f4[_0x1a23fd('0x238c')]==='mail'&&_0x4a13f4['draftManager'][_0x1a23fd('0x1d75')]();}}function _0x3c7059(_0x35b912){var _0x47efca=_0x1d3c6e;return _0xd39ffc[_0x47efca('0xc35')](_0x35b912);}function _0x4ef1d9(_0x590e4a){var _0x2a78ec=_0x1d3c6e;_0x4a13f4[_0x2a78ec('0x238c')]=_0x590e4a[_0x2a78ec('0x2167')],_0x4a13f4[_0x2a78ec('0x238c')]==='plugin'&&(_0x4a13f4['plugin']=_0x590e4a['stateParams'],_0x4a13f4[_0x2a78ec('0x1b6c')]=_0x590e4a['id'],_0x181fc6[_0x2a78ec('0x149a')]('pluginUpdated',{'plugin':_0x4a13f4[_0x2a78ec('0x2048')]})),_0x134ffe[_0x2a78ec('0x161e')][_0x2a78ec('0x1014')](_0x2a78ec('0x74b')+_0x4a13f4[_0x2a78ec('0x1775')]['id'],JSON[_0x2a78ec('0x25e')]({'currentSidebarTab':_0x590e4a[_0x2a78ec('0x2167')]}));}_0x181fc6[_0x1d3c6e('0x10e8')](_0x1d3c6e('0xed0'),function(_0x4c81ed){var _0x46ce15=_0x1d3c6e;_0x4c81ed===_0x46ce15('0x1c8b')?_0x4a13f4[_0x46ce15('0x2113')][_0x46ce15('0x1d75')]():_0x4a13f4[_0x46ce15('0x2113')][_0x46ce15('0x1bba')]={};});}const _0x5e469b=_0x3ccc53,_0x44f47e=_0x398308['p']+_0x3877e3('0x2db');_0x75a8a8[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0x2313'),'$mdDialog','$document','$window',_0x3877e3('0x13c1'),'api',_0x3877e3('0x15bc'),_0x3877e3('0x25d8'),'toasty'];function _0x75a8a8(_0x360898,_0x2a1634,_0x241708,_0x25028d,_0x3bedb5,_0x25cec0,_0x483d52,_0x442d3a,_0x383d55,_0x2bd364){var _0x321b53=_0x3877e3,_0x19460a=this;_0x19460a['user']=_0x442d3a['getCurrentUser'](),_0x19460a['license']={},_0x19460a[_0x321b53('0x21e')]={},_0x19460a[_0x321b53('0x1889')]={'count':0x0,'rows':[]},_0x19460a[_0x321b53('0x280b')]={'count':0x0,'rows':[]},_0x19460a[_0x321b53('0x77')]={'includeAll':!![],'sort':_0x321b53('0x33'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x19460a['advancedSearch']={'fields':[{'name':'Id','column':'id','type':_0x321b53('0xed8')},{'name':_0x321b53('0x1d10'),'column':'Contact','type':_0x321b53('0x175c'),'options':{'searchFields':[_0x321b53('0x992'),'lastName','email'],'route':{'model':_0x321b53('0x25dc'),'action':_0x321b53('0x595'),'params':{'fields':_0x321b53('0x2704'),'Contact':_0x321b53('0x169e'),'nolimit':!![]}},'extraOperators':[_0x321b53('0xb58')],'excludedOperators':[_0x321b53('0x3fe')]}},{'name':_0x321b53('0x1108'),'column':_0x321b53('0x2452'),'type':'text','options':{'excludedOperators':[_0x321b53('0x940'),'$ne']}},{'name':'Status','column':'closed','type':'select','values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x321b53('0x11d2')}],'options':{'excludedOperators':[_0x321b53('0x3fe')]}},{'name':_0x321b53('0xeb6'),'column':_0x321b53('0x409'),'type':_0x321b53('0xc1e'),'options':{'excludedOperators':[_0x321b53('0x940'),_0x321b53('0x3fe'),'$startsWith',_0x321b53('0x57b')]}},{'name':_0x321b53('0x1a44'),'column':_0x321b53('0x6e4'),'type':_0x321b53('0x175c'),'options':{'table':'i','route':{'model':_0x321b53('0x1775'),'action':_0x321b53('0x595'),'params':{'role':'agent','fields':_0x321b53('0x2326'),'nolimit':!![]}},'searchFields':[_0x321b53('0x20f5'),'name'],'extraOperators':[_0x321b53('0xb58')],'excludedOperators':[_0x321b53('0x3fe')]}},{'name':_0x321b53('0x188b'),'column':_0x321b53('0x15f9'),'type':_0x321b53('0x91f'),'options':{'route':{'model':_0x321b53('0x1775'),'action':'getChatWebsites','params':{'id':_0x19460a[_0x321b53('0x1775')]['id'],'nolimit':!![]}}}},{'name':_0x321b53('0x557'),'column':_0x321b53('0x295'),'type':_0x321b53('0x91f'),'options':{'route':{'model':_0x321b53('0x907'),'action':_0x321b53('0x595'),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x321b53('0x18a1'),'column':_0x321b53('0x23ae'),'type':_0x321b53('0x2457'),'options':{'excludedOperators':[_0x321b53('0x3fe')]}},{'name':_0x321b53('0x1715'),'column':_0x321b53('0x6c5'),'type':_0x321b53('0x2844'),'values':[{'id':0x1,'translate':_0x321b53('0x629')},{'id':0x0,'translate':_0x321b53('0x1799')}],'options':{'excludedOperators':[_0x321b53('0x3fe')]}}]},_0x19460a['sectionColor']=_0x321b53('0x11aa'),_0x19460a['onInit']=_0x4bdb57,_0x19460a[_0x321b53('0xdb1')]=_0x5f4590,_0x19460a[_0x321b53('0x1e1f')]=_0x321280,_0x19460a[_0x321b53('0x2176')]=_0xf165ad,_0x19460a[_0x321b53('0x1a6e')]=_0x25bba1,_0x19460a[_0x321b53('0x125c')]=_0x1838db,_0x19460a[_0x321b53('0x1e9d')]=_0x57f6a7,_0x19460a['getAgentLabel']=_0x3a2358,_0x19460a[_0x321b53('0x106d')]=_0x431001,_0x19460a['onSearchBarCollapse']=_0x403ffa,_0x19460a[_0x321b53('0x1bf6')]=_0x225660,_0x19460a[_0x321b53('0x7e3')]=_0x114ca0;function _0x4bdb57(_0x33cc06,_0x319026){var _0x501a21=_0x321b53;return _0x19460a[_0x501a21('0x2ff')]=_0x33cc06,_0x19460a['setting']=_0x319026,_0x483d52[_0x501a21('0x1775')][_0x501a21('0x595')+_0x86640f()[_0x501a21('0x22e')]('ChatWebsites')]({'id':_0x19460a[_0x501a21('0x1775')]['id'],'nolimit':!![]})[_0x501a21('0x1376')]['then'](function(_0x35b630){var _0x45f458=_0x501a21;return _0x19460a[_0x45f458('0xcec')]=_0x35b630||{'count':0x0,'rows':[]},_0x483d52[_0x45f458('0x907')][_0x45f458('0x595')]()[_0x45f458('0x1376')];})[_0x501a21('0x21ad')](function(_0x1b586d){var _0x224a0e=_0x501a21;_0x19460a[_0x224a0e('0x1889')]=_0x1b586d||{'count':0x0,'rows':[]};})[_0x501a21('0x21ad')](function(){var _0x4e5d1a=_0x501a21;_0x19460a[_0x4e5d1a('0x2255')]=_0x1ff8d8();})[_0x501a21('0x1c1d')](function(_0x2d98cf){console['error'](_0x2d98cf);})['finally'](function(){var _0x2774e8=_0x501a21,_0x16e39e=_0x3bedb5[_0x2774e8('0x161e')]['getItem'](_0x2774e8('0x1868')+_0x19460a['user']['id']);if(_0x16e39e)try{_0x16e39e=JSON['parse'](_0x16e39e);if(_0x16e39e[_0x2774e8('0x77')]){_0x19460a[_0x2774e8('0x77')]=_0x86640f()[_0x2774e8('0xd0e')](_0x19460a[_0x2774e8('0x77')],_0x16e39e[_0x2774e8('0x77')]);if(_0x86640f()[_0x2774e8('0x23aa')](_0x19460a['chatAccounts'][_0x2774e8('0x1b33')]))_0x19460a['query']['ChatWebsiteId']=[];else _0x86640f()['isEmpty'](_0x19460a[_0x2774e8('0x77')][_0x2774e8('0x15f9')])&&(_0x19460a[_0x2774e8('0x77')]['ChatWebsiteId']=_0x86640f()(_0x19460a[_0x2774e8('0xcec')]['rows'])['map']('id')['take']()[_0x2774e8('0x2228')]());_0x19460a[_0x2774e8('0x77')]['sort']&&_0x19460a[_0x2774e8('0x77')][_0x2774e8('0x1944')][_0x2774e8('0x2004')](_0x2774e8('0x961'))>=0x0&&(_0x19460a[_0x2774e8('0x77')]=_0x86640f()[_0x2774e8('0x27b1')](_0x19460a['query'],_0x2774e8('0x1944'))),_0x19460a[_0x2774e8('0x77')][_0x2774e8('0x282f')]=!![],_0x19460a['isSearchBarVisible']=_0x19460a['query']['filter']?!![]:![];}}catch(_0x30b228){console[_0x2774e8('0x2092')](_0x30b228);}else{var _0x5550cc={'$gte':_0x1088bc()()[_0x2774e8('0x1982')]('month')['utcOffset'](0x0,!![])[_0x2774e8('0x153')](),'$lte':_0x1088bc()()[_0x2774e8('0x117b')](_0x2774e8('0xb64'))[_0x2774e8('0x215e')](0x0,!![])[_0x2774e8('0x153')]()},_0x1c0b2c={'ChatWebsiteId':_0x86640f()[_0x2774e8('0x26c3')](_0x19460a[_0x2774e8('0xcec')]['rows'],'id'),'createdAt':_0x5550cc};_0x19460a[_0x2774e8('0x77')]=_0x86640f()[_0x2774e8('0xd0e')](_0x19460a[_0x2774e8('0x77')],_0x1c0b2c);}_0x383d55['on']('chatInteraction:save',_0x12f54f),_0x383d55['on'](_0x2774e8('0x666'),_0x12f54f),_0x383d55['on'](_0x2774e8('0x122'),_0x23f22e),_0x383d55['on']('chatMessage:save',_0x48cc74),_0x383d55['on']('chatMessage:update',_0x48cc74),_0x383d55['on']('user_has_chat_interactions:save',_0x57dc01),_0x383d55['on'](_0x2774e8('0x283d'),_0x5bc004),_0x321280(_0x19460a[_0x2774e8('0x77')][_0x2774e8('0x2376')]);});}function _0x1ff8d8(){var _0x2a3e56=_0x321b53;return[{'name':_0x2a3e56('0x18a1'),'key':'createdAt','type':_0x2a3e56('0x2457'),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x2a3e56('0x5d'),'key':_0x2a3e56('0x14ee'),'type':_0x2a3e56('0x2844'),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':_0x2a3e56('0x1799')},{'value':0x1,'translate':_0x2a3e56('0x629')},{'value':null,'translate':_0x2a3e56('0x1ee5')}]},{'name':_0x2a3e56('0x843'),'key':_0x2a3e56('0x14ba'),'type':_0x2a3e56('0x2844'),'label':_0x2a3e56('0x2204'),'customOptions':[{'value':0x0,'translate':_0x2a3e56('0x19e2')},{'value':0x1,'translate':'DASHBOARDS.CLOSED'},{'value':null,'translate':_0x2a3e56('0x1ee5')}]},{'name':_0x2a3e56('0x188b'),'key':'ChatWebsiteId','type':'multiselect','label':'DASHBOARDS.SELECT_ACCOUNT','options':_0x19460a['chatAccounts']['rows'],'clearAll':![]},{'name':_0x2a3e56('0x1a44'),'key':'UserId','type':_0x2a3e56('0x2844'),'label':_0x2a3e56('0x115d'),'customOptions':[{'value':_0x19460a[_0x2a3e56('0x1775')]['id'],'translate':_0x2a3e56('0x4db')},{'value':'null','translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':_0x2a3e56('0x1ee5')}]},{'name':_0x2a3e56('0x295'),'key':_0x2a3e56('0x907'),'type':'multiselect','label':_0x2a3e56('0x138d'),'options':_0x19460a[_0x2a3e56('0x1889')][_0x2a3e56('0x1b33')],'placeholder':_0x2a3e56('0xb1c')}];}function _0x5f4590(_0x3ee4ab){var _0x55b4f1=_0x321b53;_0x19460a[_0x55b4f1('0x1fcd')]=![],_0x19460a[_0x55b4f1('0x280b')]=_0x3ee4ab||{'count':0x0,'rows':[]};for(var _0x43b982=0x0;_0x43b982<_0x19460a['chatInteractions'][_0x55b4f1('0x1b33')]['length'];_0x43b982+=0x1){_0x57f6a7(_0x19460a[_0x55b4f1('0x280b')][_0x55b4f1('0x1b33')][_0x43b982]);}}function _0x321280(_0x15b115){var _0x4aaa68=_0x321b53;_0x19460a[_0x4aaa68('0x1fcd')]=!![];!_0x15b115&&(_0x19460a[_0x4aaa68('0x77')][_0x4aaa68('0x2376')]=0x1);_0x19460a['query'][_0x4aaa68('0x15a5')]=(_0x19460a['query']['page']-0x1)*_0x19460a[_0x4aaa68('0x77')][_0x4aaa68('0x1f4a')];var _0x1f1a1d=_0x3bedb5[_0x4aaa68('0x161e')][_0x4aaa68('0x633')](_0x4aaa68('0x1868')+_0x19460a[_0x4aaa68('0x1775')]['id']);_0x1f1a1d=_0x1f1a1d?JSON[_0x4aaa68('0x399')](_0x1f1a1d):{},_0x1f1a1d[_0x4aaa68('0x77')]=_0x19460a['query'],_0x3bedb5[_0x4aaa68('0x161e')][_0x4aaa68('0x1014')](_0x4aaa68('0x1868')+_0x19460a[_0x4aaa68('0x1775')]['id'],JSON['stringify'](_0x1f1a1d)),_0x19460a[_0x4aaa68('0x71b')]=_0x483d52[_0x4aaa68('0xc06')][_0x4aaa68('0x595')](_0x19460a[_0x4aaa68('0x77')],_0x5f4590)[_0x4aaa68('0x1376')];}function _0xf165ad(_0x4dd17a,_0x389e9e){var _0x53d9b8=_0x321b53;_0x360898[_0x53d9b8('0x223d')]['vm']['addInteractionTab'](_0x53d9b8('0x1f65'),_0x389e9e);}function _0x25bba1(_0x4438c4,_0x2f7e0a,_0xece9be){var _0x326d2d=_0x321b53;_0x483d52[_0x326d2d('0xc06')][_0x326d2d('0xb0')]({'id':_0x2f7e0a['id'],'attachments':_0xece9be})[_0x326d2d('0x1376')]['then'](function(_0x282244){var _0x552efe=_0x326d2d,_0x4d2a15=[_0x282244['buffer']],_0x14e97f=_0x552efe('0x247')+_0x2f7e0a['id']+_0x552efe('0x1622'),_0x3cd614=new Blob(_0x4d2a15,{'type':_0x282244['type']}),_0x5f375b=window[_0x552efe('0x27c3')][_0x552efe('0x162e')]('a');_0x5f375b['setAttribute'](_0x552efe('0x69e'),URL[_0x552efe('0x167b')](_0x3cd614)),_0x5f375b[_0x552efe('0x127a')](_0x552efe('0xb0'),_0x14e97f),document[_0x552efe('0x2452')][_0x552efe('0x14d0')](_0x5f375b),_0x5f375b['click']();})[_0x326d2d('0x1c1d')](function(_0x8c42d3){var _0x21079b=_0x326d2d;if(_0x8c42d3[_0x21079b('0x11c2')]&&_0x8c42d3[_0x21079b('0x11c2')][_0x21079b('0x1a69')]&&_0x8c42d3[_0x21079b('0x11c2')][_0x21079b('0x1a69')][_0x21079b('0x577')])for(var _0x5cc2af=0x0;_0x5cc2af<_0x8c42d3[_0x21079b('0x11c2')][_0x21079b('0x1a69')][_0x21079b('0x577')];_0x5cc2af+=0x1){_0x2bd364[_0x21079b('0x2092')]({'title':_0x8c42d3[_0x21079b('0x11c2')]['errors'][_0x5cc2af]['type'],'msg':_0x8c42d3[_0x21079b('0x11c2')][_0x21079b('0x1a69')][_0x5cc2af]['message']});}else _0x2bd364[_0x21079b('0x2092')]({'title':_0x8c42d3[_0x21079b('0x209')]?_0x21079b('0x22d')+_0x8c42d3[_0x21079b('0x209')]+_0x21079b('0xa99')+_0x8c42d3['statusText']:'downloadChatInteraction','msg':_0x8c42d3['data']?JSON['stringify'](_0x8c42d3['data']['message']):_0x8c42d3[_0x21079b('0x174f')]()});});}function _0x1838db(_0x2daf66,_0x24120c){var _0x1c8cbd=_0x321b53,_0x4bd8e1=_0x19460a[_0x1c8cbd('0x1775')][_0x1c8cbd('0x1025')]||_0x19460a['user'][_0x1c8cbd('0x1785')]||_0x19460a[_0x1c8cbd('0x1775')][_0x1c8cbd('0x1396')]||_0x19460a[_0x1c8cbd('0x1775')]['openchannelPause']||_0x19460a['user']['faxPause'],_0x127f3f=!_0x24120c[_0x1c8cbd('0x5f0')]['mandatoryDisposition'];_0x241708['show']({'controller':'DisposeInteractionDialogController','controllerAs':'vm','templateUrl':_0x5b0a7e,'parent':angular[_0x1c8cbd('0x1676')](_0x25028d['body']),'clickOutsideToClose':_0x127f3f,'escapeToClose':_0x127f3f,'onRemoving':function _0x16213e(){var _0x469552=_0x1c8cbd;_0x19460a[_0x469552('0x1775')]&&_0x24120c[_0x469552('0x5f0')]['mandatoryDisposition']&&!_0x4bd8e1&&_0x483d52[_0x469552('0x1775')][_0x469552('0xa8e')]({'id':_0x19460a['user']['id']})[_0x469552('0x1376')]['catch'](function(_0x713d9e){var _0x13e9fd=_0x469552;console[_0x13e9fd('0x2092')](_0x713d9e);});},'locals':{'user':_0x19460a[_0x1c8cbd('0x1775')],'channel':_0x1c8cbd('0x1f65'),'interaction':_0x24120c}});}function _0x57f6a7(_0x5c381b){var _0x1abcea=_0x321b53;_0x5c381b['Contact']?_0x5c381b[_0x1abcea('0x1717')]=(_0x5c381b['Contact'][_0x1abcea('0x992')]||'')+'\x20'+(_0x5c381b[_0x1abcea('0x1d10')]['lastName']||''):_0x5c381b['contactName']=_0x25cec0['instant']('DASHBOARDS.UNKNOWN');}function _0x3a2358(_0x47fb17){var _0x2403ca=_0x321b53;if(_0x47fb17[_0x2403ca('0x1dc6')])return _0x47fb17[_0x2403ca('0x1dc6')]===_0x19460a[_0x2403ca('0x1775')]['id']?_0x25cec0[_0x2403ca('0x183e')](_0x2403ca('0x4db')):_0x47fb17[_0x2403ca('0x11a8')][_0x2403ca('0x20f5')]+'\x20<'+_0x47fb17[_0x2403ca('0x11a8')][_0x2403ca('0x201f')]+'>';return _0x25cec0['instant']('DASHBOARDS.NOT_ASSIGNED');}function _0x431001(_0x540d93){var _0x577f04=_0x321b53;if(_0x540d93[_0x577f04('0x5f0')])return _0x540d93['Account'][_0x577f04('0xddb')];return _0x25cec0[_0x577f04('0x183e')](_0x577f04('0xc13'));}function _0x57dc01(_0x2a52de){var _0x5edb12=_0x321b53,_0x2995ab,_0x3d4047=_0x86640f()[_0x5edb12('0x1d2e')](_0x19460a[_0x5edb12('0x280b')][_0x5edb12('0x1b33')],{'id':_0x2a52de[_0x5edb12('0x20fc')]});_0x3d4047&&_0x3d4047['Users']&&(_0x2995ab=_0x86640f()[_0x5edb12('0x1d2e')](_0x3d4047[_0x5edb12('0x6cc')],{'id':_0x2a52de['UserId']}),!_0x2995ab&&_0x3d4047[_0x5edb12('0x6cc')]['push']({'id':_0x2a52de[_0x5edb12('0x1dc6')]}));}function _0x5bc004(_0x333626){var _0x2f4e25=_0x321b53,_0x4a101d=_0x86640f()['find'](_0x19460a['chatInteractions']['rows'],{'id':_0x333626[_0x2f4e25('0x20fc')]});_0x4a101d&&_0x4a101d[_0x2f4e25('0x6cc')]&&_0x86640f()[_0x2f4e25('0x16a2')](_0x4a101d[_0x2f4e25('0x6cc')],{'id':_0x333626[_0x2f4e25('0x1dc6')]});}function _0x12f54f(_0x3d0435){var _0x2e85c2=_0x321b53;if(_0x3d0435){var _0x14f187=_0x86640f()[_0x2e85c2('0x1d2e')](_0x19460a[_0x2e85c2('0x280b')]['rows'],{'id':_0x3d0435['id']});if(_0x14f187){_0x14f187[_0x2e85c2('0x6cc')]=[];_0x3d0435['closed']&&(_0x14f187['unreadMessages']=0x0);if(_0x19460a[_0x2e85c2('0x77')][_0x2e85c2('0x1944')]){var _0x38958e=_0x86640f()[_0x2e85c2('0x2837')](_0x19460a['query'][_0x2e85c2('0x1944')],'-')?_0x2e85c2('0x340'):_0x2e85c2('0x15d6');_0x19460a[_0x2e85c2('0x280b')]['rows']=_0x86640f()[_0x2e85c2('0x11df')](_0x19460a[_0x2e85c2('0x280b')][_0x2e85c2('0x1b33')],_0x86640f()[_0x2e85c2('0x1ab4')](_0x19460a[_0x2e85c2('0x77')][_0x2e85c2('0x1944')],'-'),_0x38958e);}_0x86640f()[_0x2e85c2('0xd0e')](_0x14f187,_0x86640f()[_0x2e85c2('0xc50')](_0x3d0435,_0x86640f()[_0x2e85c2('0x223b')](_0x14f187)));}else _0x321280(_0x19460a[_0x2e85c2('0x77')][_0x2e85c2('0x2376')]);}}function _0x23f22e(_0x37797a){var _0x119db2=_0x321b53;if(_0x37797a){var _0x14b065=_0x86640f()['find'](_0x19460a[_0x119db2('0x280b')][_0x119db2('0x1b33')],{'id':_0x37797a['id']});_0x14b065&&(_0x14b065[_0x119db2('0x557')]=_0x37797a[_0x119db2('0x1889')]||[],_0x86640f()[_0x119db2('0xd0e')](_0x14b065,_0x86640f()['pick'](_0x37797a,_0x86640f()[_0x119db2('0x223b')](_0x14b065))));}}function _0x48cc74(_0x3b2468){var _0x26a6f0=_0x321b53;if(_0x3b2468&&!_0x3b2468[_0x26a6f0('0x1d1b')]){var _0x5863d9=_0x86640f()[_0x26a6f0('0x1d2e')](_0x19460a[_0x26a6f0('0x280b')][_0x26a6f0('0x1b33')],{'id':_0x3b2468['ChatInteractionId']});if(_0x5863d9){var _0x594749=_0x86640f()['find'](_0x5863d9['Messages'],{'id':_0x3b2468['id']});_0x594749?_0x86640f()[_0x26a6f0('0xd0e')](_0x594749,_0x86640f()[_0x26a6f0('0xc50')](_0x3b2468,_0x86640f()[_0x26a6f0('0x223b')](_0x594749))):(_0x86640f()[_0x26a6f0('0x1c7')](_0x5863d9[_0x26a6f0('0x5d')])&&(_0x5863d9[_0x26a6f0('0x5d')]={'count':0x0}),!_0x3b2468[_0x26a6f0('0x14ee')]&&(_0x5863d9['Messages'][_0x26a6f0('0x205f')]+=0x1));}}}function _0x403ffa(){var _0x38d358=_0x321b53;_0x19460a[_0x38d358('0x146a')]=![];}function _0x225660(){var _0x34af05=_0x321b53;_0x19460a[_0x34af05('0x146a')]=!![];}function _0x114ca0(){var _0x2d1f4f=_0x321b53;_0x19460a[_0x2d1f4f('0x146a')]=![],_0x241708[_0x2d1f4f('0x853')]({'controller':_0x2d1f4f('0xde1'),'controllerAs':'vm','templateUrl':_0x44f47e,'parent':angular[_0x2d1f4f('0x1676')](_0x25028d[_0x2d1f4f('0x2452')]),'clickOutsideToClose':![],'locals':{'color':_0x19460a['sectionColor'],'fields':_0x19460a[_0x2d1f4f('0x2211')][_0x2d1f4f('0x181e')],'storagePath':_0x2d1f4f('0x8')},'fullscreen':!![]})[_0x2d1f4f('0x21ad')](function(_0x518253){var _0x589db8=_0x2d1f4f;_0x19460a['query'][_0x589db8('0x24e7')]=_0x518253===![]?undefined:_0x518253;if(_0x19460a[_0x589db8('0x77')][_0x589db8('0x24e7')]||_0x518253===![])_0x321280();})['catch'](function(_0x247ec3){var _0x551c41=_0x2d1f4f;_0x2bd364[_0x551c41('0x2092')]({'title':'ERROR','msg':_0x247ec3[_0x551c41('0x11c2')]?JSON[_0x551c41('0x25e')](_0x247ec3[_0x551c41('0x11c2')][_0x551c41('0x1224')]):_0x247ec3[_0x551c41('0x174f')]()});});}var _0x3cee93=!![],_0x37b89e=0x1;_0x360898[_0x321b53('0x10e8')](_0x321b53('0x1948'),function(_0x423f28,_0x2a5c7b){var _0x4c91fc=_0x321b53;_0x3cee93?_0x2a1634(function(){_0x3cee93=![];}):(!_0x2a5c7b&&(_0x37b89e=_0x19460a['query']['page']),_0x423f28!==_0x2a5c7b&&(_0x19460a[_0x4c91fc('0x77')][_0x4c91fc('0x2376')]=0x1),!_0x423f28&&(_0x19460a[_0x4c91fc('0x77')]['page']=_0x37b89e),_0x321280(_0x19460a['query'][_0x4c91fc('0x2376')]));}),_0x360898[_0x321b53('0x1723')]('$destroy',function(){var _0x1a9c00=_0x321b53;_0x383d55[_0x1a9c00('0x16cc')](_0x1a9c00('0x97b')),_0x383d55['removeAllListeners'](_0x1a9c00('0x1cf2')),_0x383d55[_0x1a9c00('0x16cc')](_0x1a9c00('0x1d7f')),_0x383d55[_0x1a9c00('0x16cc')](_0x1a9c00('0x122')),_0x383d55[_0x1a9c00('0x16cc')]('chatInteraction:update'),_0x383d55['removeAllListeners'](_0x1a9c00('0x264d')),_0x383d55[_0x1a9c00('0x16cc')](_0x1a9c00('0x283d'));});}const _0x53baef=_0x75a8a8;_0x381b82[_0x3877e3('0x1a81')]=[_0x3877e3('0x243f'),'$scope','$timeout',_0x3877e3('0x1850'),_0x3877e3('0x24e1'),_0x3877e3('0x15bc'),_0x3877e3('0xccd'),_0x3877e3('0x1908')];function _0x381b82(_0x3f3fe3,_0x2ef0f0,_0x47544b,_0x56e886,_0x3f92d1,_0xa15592,_0x42ec66,_0x533895){var _0xcd22e1=_0x3877e3,_0x4080cf=this;_0x4080cf[_0xcd22e1('0x123f')]=_0xa15592[_0xcd22e1('0x15ed')](),_0x4080cf[_0xcd22e1('0x1972')]={},_0x4080cf[_0xcd22e1('0x2814')]={'count':0x0,'rows':[]},_0x4080cf[_0xcd22e1('0x1889')]={'count':0x0,'rows':[]},_0x4080cf[_0xcd22e1('0x77')]={'includeAll':!![],'sort':_0xcd22e1('0x33'),'limit':0xa,'page':0x1},_0x4080cf[_0xcd22e1('0x2211')]={'fields':[]},_0x4080cf['sectionColor']=_0xcd22e1('0x1b84'),_0x4080cf[_0xcd22e1('0x1a4b')]=_0x3936de,_0x4080cf[_0xcd22e1('0x813')]=_0x11191c,_0x4080cf[_0xcd22e1('0xe9f')]=_0x251693,_0x4080cf[_0xcd22e1('0x13a6')]=_0x24520d,_0x4080cf[_0xcd22e1('0x23d1')]=_0x541b53,_0x4080cf['call']=_0x2ef0f0[_0xcd22e1('0x223d')]['vm'][_0xcd22e1('0xdc2')],_0x4080cf[_0xcd22e1('0x1081')]=_0x16f364,_0x4080cf[_0xcd22e1('0x21f9')]=_0x41d6d0,_0x4080cf[_0xcd22e1('0x1bf6')]=_0xecf28,_0x4080cf[_0xcd22e1('0x7e3')]=_0x40443;function _0x16f364(){var _0x219059=_0xcd22e1;_0x42ec66[_0x219059('0x1775')]['getLists']({'id':_0x4080cf['currentUser']['id'],'fields':_0x219059('0xcaa'),'sort':_0x219059('0x19fe'),'nolimit':!![]})['$promise']['then'](function(_0x3a873d){var _0x177a6c=_0x219059;return _0x4080cf[_0x177a6c('0x1972')]=_0x3a873d||{'count':0x0,'rows':[]},_0x4080cf['listsMap']=_0x86640f()[_0x177a6c('0xcde')](_0x4080cf[_0x177a6c('0x1972')][_0x177a6c('0x1b33')],'id'),_0x42ec66[_0x177a6c('0x907')][_0x177a6c('0x595')]()[_0x177a6c('0x1376')];})[_0x219059('0x21ad')](function(_0x218210){_0x4080cf['tags']=_0x218210||{'count':0x0,'rows':[]};})[_0x219059('0x21ad')](function(){var _0xd53fb9=_0x219059;_0x4080cf[_0xd53fb9('0x2255')]=_0x1b9620();})[_0x219059('0x1c1d')](function(_0x5f5b3f){var _0x106c73=_0x219059;console[_0x106c73('0x2092')](_0x5f5b3f);})[_0x219059('0x13e')](function(){var _0x199322=_0x219059,_0x17ac11=_0x3f92d1[_0x199322('0x161e')][_0x199322('0x633')](_0x199322('0x1468')+_0x4080cf[_0x199322('0x123f')]['id']);if(_0x17ac11)try{_0x17ac11=JSON[_0x199322('0x399')](_0x17ac11);if(_0x17ac11[_0x199322('0x77')]){_0x4080cf['query']=_0x86640f()['merge'](_0x4080cf[_0x199322('0x77')],_0x17ac11['query']);if(_0x86640f()['isEmpty'](_0x4080cf[_0x199322('0x1972')][_0x199322('0x1b33')]))_0x4080cf['query'][_0x199322('0x815')]=[];else _0x86640f()[_0x199322('0x23aa')](_0x4080cf[_0x199322('0x77')][_0x199322('0x815')])&&(_0x4080cf[_0x199322('0x77')]['ListId']=_0x86640f()(_0x4080cf[_0x199322('0x1972')][_0x199322('0x1b33')])[_0x199322('0x26c3')]('id')[_0x199322('0x11b0')]()[_0x199322('0x2228')]());}}catch(_0x4c12da){console[_0x199322('0x6fb')](_0x4c12da);}else _0x4080cf[_0x199322('0x77')][_0x199322('0x815')]=_0x86640f()['map'](_0x4080cf[_0x199322('0x1972')]['rows'],'id');_0x4080cf['isSearchBarVisible']=_0x4080cf[_0x199322('0x77')]['filter']?!![]:![],_0x3936de();});}function _0x1b9620(){var _0x2e2c95=_0xcd22e1;return[{'name':_0x2e2c95('0x9cf'),'key':_0x2e2c95('0x815'),'type':_0x2e2c95('0x91f'),'label':_0x2e2c95('0x2736'),'options':_0x4080cf[_0x2e2c95('0x1972')][_0x2e2c95('0x1b33')],'clearAll':![]},{'name':_0x2e2c95('0x295'),'key':'tag','type':_0x2e2c95('0x91f'),'label':'DASHBOARDS.SELECT_TAG','options':_0x4080cf[_0x2e2c95('0x1889')][_0x2e2c95('0x1b33')],'placeholder':_0x2e2c95('0xb1c')}];}function _0x444fa4(_0xae70e5){var _0x466273=_0xcd22e1;_0x4080cf[_0x466273('0x1fcd')]=![],_0x4080cf[_0x466273('0x2814')]=_0xae70e5||{'count':0x0,'rows':[]};}function _0x3936de(_0x4ecce7){var _0x44f3fe=_0xcd22e1;_0x4080cf[_0x44f3fe('0x1fcd')]=!![],_0x203768();!_0x4ecce7&&(_0x4080cf[_0x44f3fe('0x77')][_0x44f3fe('0x2376')]=0x1);_0x4080cf[_0x44f3fe('0x77')]['offset']=(_0x4080cf[_0x44f3fe('0x77')][_0x44f3fe('0x2376')]-0x1)*_0x4080cf[_0x44f3fe('0x77')][_0x44f3fe('0x1f4a')];var _0x42fe28=_0x3f92d1[_0x44f3fe('0x161e')][_0x44f3fe('0x633')]('motion2.home.contacts:'+_0x4080cf[_0x44f3fe('0x123f')]['id']);_0x42fe28=_0x42fe28?JSON['parse'](_0x42fe28):{},_0x42fe28['query']=_0x4080cf['query'],_0x3f92d1['localStorage'][_0x44f3fe('0x1014')](_0x44f3fe('0x1468')+_0x4080cf[_0x44f3fe('0x123f')]['id'],JSON['stringify'](_0x42fe28)),_0x4080cf[_0x44f3fe('0x71b')]=_0x42ec66[_0x44f3fe('0x25dc')][_0x44f3fe('0x595')](_0x4080cf[_0x44f3fe('0x77')],_0x444fa4)[_0x44f3fe('0x1376')];}function _0x541b53(_0x588cab){var _0xf8000=_0xcd22e1;return _0x42ec66['cmContact']['get']({'id':_0x588cab})[_0xf8000('0x1376')][_0xf8000('0x21ad')](function(_0x5a28c4){var _0x371388=_0xf8000;_0x2ef0f0[_0x371388('0x223d')]['vm']['addContactTab'](_0x5a28c4);});}function _0x11191c(){_0x3936de();}function _0x24520d(_0x19136b,_0x18bc53){var _0x1c2eac=_0xcd22e1;_0x56e886[_0x1c2eac('0x853')]({'controller':'DuplicateContactDialogController','controllerAs':'vm','templateUrl':_0x5e562c,'parent':angular[_0x1c2eac('0x1676')](_0x3f3fe3['body']),'targetEvent':_0x19136b,'clickOutsideToClose':!![],'resolve':{'contact':[_0x1c2eac('0x354'),function _0x16c013(_0x4103c8){var _0x4c9e3e=_0x1c2eac;return _0x4103c8[_0x4c9e3e('0x8ac')]('cmContact@get',{'id':_0x18bc53['id']});}],'lists':[_0x1c2eac('0x354'),function _0x5c3347(_0x56501d){var _0x238dc7=_0x1c2eac;return _0x56501d[_0x238dc7('0x8ac')](_0x238dc7('0x4ac'),{'id':_0x4080cf[_0x238dc7('0x123f')]['id'],'fields':_0x238dc7('0x1aa8')});}]},'locals':{'contacts':_0x4080cf['contacts']['rows']}});}function _0x251693(_0x36ffc0,_0x3f6223){var _0x541f6a=_0xcd22e1;_0x56e886[_0x541f6a('0x853')]({'controller':'MergeContactDialogController','controllerAs':'vm','templateUrl':_0x330672,'parent':angular['element'](_0x3f3fe3[_0x541f6a('0x2452')]),'targetEvent':_0x36ffc0,'clickOutsideToClose':!![],'resolve':{'contact':[_0x541f6a('0x354'),function _0x3ef021(_0xff0e4d){var _0xbd056=_0x541f6a;return _0xff0e4d[_0xbd056('0x8ac')](_0xbd056('0x259d'),{'id':_0x3f6223['id']});}],'lists':[_0x541f6a('0x354'),function _0x3b2be4(_0x910868){var _0xb2c787=_0x541f6a;return _0x910868['resolve'](_0xb2c787('0x4ac'),{'id':_0x4080cf[_0xb2c787('0x123f')]['id'],'fields':_0xb2c787('0x1aa8')});}]},'locals':{'contacts':_0x4080cf['contacts']['rows']}});}function _0x41d6d0(){_0x4080cf['isSearchBarVisible']=![];}function _0xecf28(){var _0x2186f0=_0xcd22e1;_0x4080cf[_0x2186f0('0x146a')]=!![];}function _0x203768(){var _0x1a4f67=_0xcd22e1;return _0x42ec66[_0x1a4f67('0x25dc')][_0x1a4f67('0x1219')]({'id':_0x4080cf['query'][_0x1a4f67('0x815')]})[_0x1a4f67('0x1376')][_0x1a4f67('0x21ad')](function(_0x305f67){var _0x44fa9b=_0x1a4f67;return _0x86640f()(_0x305f67['toJSON']())[_0x44fa9b('0x27b1')](_0x44fa9b('0x1dc6'))[_0x44fa9b('0x1843')]()[_0x44fa9b('0x26c3')](function(_0x11af5d){return _0x2f7b7c(_0x11af5d);})[_0x44fa9b('0x2228')]();})[_0x1a4f67('0x21ad')](function(_0x56230c){var _0x42a422=_0x1a4f67;_0x4080cf[_0x42a422('0x2211')][_0x42a422('0x181e')]=_0x56230c;var _0x2bcfc7={'name':_0x42a422('0x557'),'column':_0x42a422('0x295'),'type':_0x42a422('0x91f'),'options':{'route':{'model':_0x42a422('0x907'),'action':'get','params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},_0x334c41=_0x86640f()[_0x42a422('0x127')](_0x56230c,function(_0x126539){var _0x21a7e3=_0x42a422;return _0x86640f()[_0x21a7e3('0x2837')](_0x126539[_0x21a7e3('0x23bd')],_0x21a7e3('0x714'));})||_0x56230c[_0x42a422('0x577')]-0x1;if(_0x334c41<0x0)_0x334c41=_0x56230c[_0x42a422('0x577')];_0x4080cf[_0x42a422('0x2211')]['fields']['splice'](_0x334c41,0x0,_0x2bcfc7);})[_0x1a4f67('0x1c1d')](function(_0x5d5abf){var _0x3b1fdd=_0x1a4f67;_0x533895[_0x3b1fdd('0x2092')]({'title':_0x5d5abf[_0x3b1fdd('0x209')]?_0x3b1fdd('0x22d')+_0x5d5abf[_0x3b1fdd('0x209')]+_0x3b1fdd('0xa99')+_0x5d5abf[_0x3b1fdd('0x1808')]:_0x3b1fdd('0x8ae'),'msg':_0x5d5abf[_0x3b1fdd('0x11c2')]?JSON[_0x3b1fdd('0x25e')](_0x5d5abf[_0x3b1fdd('0x11c2')][_0x3b1fdd('0x1224')]):_0x5d5abf[_0x3b1fdd('0x174f')]()});});}function _0x2f7b7c(_0x2807dd){var _0x365dc1=_0xcd22e1,_0x28b005={'name':_0x86640f()[_0x365dc1('0x2159')](_0x2807dd[_0x365dc1('0x11fc')]),'column':_0x2807dd[_0x365dc1('0xe85')],'options':{}};if(_0x2807dd[_0x365dc1('0xf50')])switch(_0x2807dd['custom'][_0x365dc1('0x7fa')]){case'text':_0x28b005[_0x365dc1('0x7fa')]=_0x365dc1('0xc1e');break;case _0x365dc1('0x2844'):_0x28b005[_0x365dc1('0x7fa')]='multiselect',_0x28b005[_0x365dc1('0x1843')]=_0x86640f()['map'](JSON[_0x365dc1('0x399')](_0x2807dd[_0x365dc1('0xf50')][_0x365dc1('0x1843')]),function(_0x5c56e5,_0x51b1d8){var _0x3745b0=_0x365dc1;return{'id':_0x51b1d8,'name':_0x5c56e5[_0x3745b0('0x2228')],'value':_0x5c56e5[_0x3745b0('0x2228')]};}),_0x28b005['options'][_0x365dc1('0xff8')]=_0x365dc1('0x19fe');break;case _0x365dc1('0x23a7'):_0x28b005[_0x365dc1('0x7fa')]=_0x365dc1('0x2844'),_0x28b005[_0x365dc1('0x1843')]=[{'id':0x1,'translate':_0x365dc1('0x6be')},{'id':0x0,'translate':_0x365dc1('0x1c1b')}],_0x28b005[_0x365dc1('0x26a0')][_0x365dc1('0x198')]=[_0x365dc1('0x3fe')];break;case _0x365dc1('0xed8'):_0x28b005['type']='number';break;case _0x365dc1('0x128c'):_0x28b005[_0x365dc1('0x7fa')]='date';break;}else switch(_0x2807dd['columnName']){case _0x365dc1('0x20bc'):_0x28b005[_0x365dc1('0x7fa')]='date';break;case'CompanyId':_0x28b005[_0x365dc1('0x19fe')]=_0x365dc1('0x214f'),_0x28b005['type']='autocomplete',_0x28b005['options'][_0x365dc1('0x25ee')]={'model':_0x365dc1('0x2725'),'action':_0x365dc1('0x595'),'params':{'fields':_0x365dc1('0x1aa8'),'nolimit':!![]}},_0x28b005[_0x365dc1('0x26a0')]['searchFields']=['name'],_0x28b005[_0x365dc1('0x26a0')][_0x365dc1('0x198')]=[_0x365dc1('0x3fe')];break;case _0x365dc1('0x815'):_0x28b005['name']=_0x365dc1('0x9cf'),_0x28b005[_0x365dc1('0x7fa')]='autocomplete',_0x28b005[_0x365dc1('0x26a0')][_0x365dc1('0x25ee')]={'model':_0x365dc1('0x1775'),'action':_0x365dc1('0x130'),'params':{'id':_0x4080cf[_0x365dc1('0x123f')]['id'],'fields':_0x365dc1('0x1aa8'),'nolimit':!![]}},_0x28b005['options'][_0x365dc1('0x1209')]=[_0x365dc1('0x19fe')],_0x28b005[_0x365dc1('0x26a0')][_0x365dc1('0x198')]=['$ne'];break;default:if(_0x86640f()[_0x365dc1('0xb34')](_0x2807dd['type']['toLowerCase'](),'int'))_0x28b005[_0x365dc1('0x7fa')]=_0x365dc1('0xed8');else _0x86640f()['includes'](_0x2807dd[_0x365dc1('0x7fa')][_0x365dc1('0xac2')](),_0x365dc1('0x2457'))?_0x28b005[_0x365dc1('0x7fa')]=_0x365dc1('0x2457'):_0x28b005['type']='text';break;}return _0x28b005;}function _0x40443(){var _0x52c356=_0xcd22e1;_0x4080cf['isSearchBarVisible']=![],_0x56e886['show']({'controller':_0x52c356('0xde1'),'controllerAs':'vm','templateUrl':_0x44f47e,'parent':angular['element'](_0x3f3fe3['body']),'clickOutsideToClose':![],'locals':{'color':_0x4080cf[_0x52c356('0x1419')],'fields':_0x4080cf[_0x52c356('0x2211')]['fields'],'storagePath':'home.contacts'},'fullscreen':!![]})[_0x52c356('0x21ad')](function(_0x509a8e){var _0x2a0be7=_0x52c356;_0x4080cf[_0x2a0be7('0x77')]['search']=_0x509a8e===![]?undefined:_0x509a8e;if(_0x4080cf['query'][_0x2a0be7('0x24e7')]||_0x509a8e===![])_0x3936de();})[_0x52c356('0x1c1d')](function(_0x1d2e88){var _0x5736da=_0x52c356;_0x533895['error']({'title':_0x5736da('0x1399'),'msg':_0x1d2e88['data']?JSON[_0x5736da('0x25e')](_0x1d2e88[_0x5736da('0x11c2')]['message']):_0x1d2e88[_0x5736da('0x174f')]()});});}var _0x5ac285=!![],_0x1251f7=0x1;_0x2ef0f0[_0xcd22e1('0x10e8')](_0xcd22e1('0x1948'),function(_0x1dd815,_0x4267f8){var _0x1b0097=_0xcd22e1;_0x5ac285?_0x47544b(function(){_0x5ac285=![];}):(!_0x4267f8&&(_0x1251f7=_0x4080cf[_0x1b0097('0x77')][_0x1b0097('0x2376')]),_0x1dd815!==_0x4267f8&&(_0x4080cf[_0x1b0097('0x77')][_0x1b0097('0x2376')]=0x1),!_0x1dd815&&(_0x4080cf['query'][_0x1b0097('0x2376')]=_0x1251f7),_0x3936de());});}const _0x40de95=_0x381b82;_0x576666['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0x1e8d')];function _0x576666(_0xe813ef,_0x1ef83f){var _0x3f3daa=_0x3877e3,_0x55f982=_0x1ef83f(function(){},0x3e7);_0xe813ef['$on'](_0x3f3daa('0x1210'),function(){_0x55f982&&(_0x1ef83f['cancel'](_0x55f982),_0x55f982=null);});}const _0x49c216=_0x576666;_0x52a3f1[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x24e1'),_0x3877e3('0x13c1'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x25d8')];function _0x52a3f1(_0x1cc64a,_0x21efcd,_0x396a73,_0x2a3fb5,_0x5441a1,_0xb40aff,_0x9016a4,_0x2acb54,_0x3cd707){var _0x1b3429=_0x3877e3,_0x452aae=this,_0x3fc258=[_0x1b3429('0x7fa'),_0x1b3429('0x8b6'),_0x1b3429('0x1c4b'),_0x1b3429('0x13dc')];_0x452aae[_0x1b3429('0x2b6')]={},_0x452aae[_0x1b3429('0x1f29')]=0x0,_0x452aae['rpcVoiceQueues']={},_0x452aae[_0x1b3429('0x80')]={},_0x452aae[_0x1b3429('0x3e3')]={},_0x452aae[_0x1b3429('0x1bec')]={},_0x452aae[_0x1b3429('0xcd6')]=[],_0x452aae['load']=!![],_0x452aae[_0x1b3429('0x77')]={'id':_0x2acb54[_0x1b3429('0x15ed')]()['id'],'fields':_0x1b3429('0x7fb'),'channel':_0x1b3429('0x8ed'),'type':_0x1b3429('0x2300'),'limit':0xa,'page':0x1},_0x452aae[_0x1b3429('0x192a')]={'limit':0xa,'page':0x1},_0x452aae[_0x1b3429('0xdb1')]=_0x164519,_0x452aae[_0x1b3429('0x80')]=_0x47be83,_0x452aae[_0x1b3429('0xd4e')]=_0x1bf727,_0x452aae[_0x1b3429('0xe02')]=_0x15ebc8,_0x452aae[_0x1b3429('0x26c4')]=_0x269127,_0x452aae[_0x1b3429('0x15e3')]=_0x6d6343,_0x452aae[_0x1b3429('0x518')]=_0x1222e5,_0x452aae[_0x1b3429('0x1685')]=_0x145105,_0x452aae[_0x1b3429('0x2382')]=_0x5b499a,_0x3cd707['onWithoutApply']('voice_queue:save',_0x452aae[_0x1b3429('0xe02')]),_0x3cd707[_0x1b3429('0x1487')](_0x1b3429('0x17b3'),_0x452aae['onSaveChannel']),_0x3cd707[_0x1b3429('0x1487')](_0x1b3429('0x1595'),_0x452aae[_0x1b3429('0x15e3')]),_0x3cd707[_0x1b3429('0x1487')](_0x1b3429('0x3b0'),_0x452aae[_0x1b3429('0x15e3')]),_0x3cd707[_0x1b3429('0x1487')](_0x1b3429('0xcae'),_0x452aae[_0x1b3429('0x518')]),_0x3cd707[_0x1b3429('0x1487')](_0x1b3429('0x1ac2'),_0x452aae['onRemoveVoiceQueue']),_0x3cd707[_0x1b3429('0x1487')](_0x1b3429('0x1aba'),_0x452aae[_0x1b3429('0x1685')]),_0x9016a4[_0x1b3429('0x9ac')][_0x1b3429('0x80')]()['$promise']['then'](function(_0x4ee79b){var _0x20515f=_0x1b3429;return _0x452aae[_0x20515f('0xb98')]=_0x4ee79b?_0x86640f()[_0x20515f('0xcde')](_0x4ee79b[_0x20515f('0x1b33')]?_0x4ee79b[_0x20515f('0x1b33')]:[],'id'):{},_0x9016a4[_0x20515f('0x9ac')][_0x20515f('0x37c')]()[_0x20515f('0x1376')];})['then'](function(_0x452782){var _0x57e3c9=_0x1b3429;_0x452aae[_0x57e3c9('0x3e3')]=_0x452782?_0x86640f()[_0x57e3c9('0xcde')](_0x452782['rows']?_0x86640f()[_0x57e3c9('0x1503')](_0x452782[_0x57e3c9('0x1b33')],{'type':_0x57e3c9('0x2300'),'queuecallerleaveAt':null}):[],_0x57e3c9('0x968')):{};})['catch'](function(_0x34a4a6){var _0x80ec96=_0x1b3429;console[_0x80ec96('0x2092')](_0x34a4a6);})[_0x1b3429('0x13e')](function(){var _0x27ade7=_0x1b3429;_0x86640f()[_0x27ade7('0xd0e')](_0x452aae['rpcVoiceQueuesChannels'],_0x452aae[_0x27ade7('0x1bec')]);for(var _0x3868e5=0x0;_0x3868e5<_0x452aae[_0x27ade7('0xcd6')][_0x27ade7('0x577')];_0x3868e5+=0x1){delete _0x452aae['rpcVoiceQueuesChannels'][_0x452aae[_0x27ade7('0xcd6')][_0x3868e5]];}_0x452aae['load']=![],_0x452aae[_0x27ade7('0x1bec')]={},_0x452aae[_0x27ade7('0xcd6')]=[],_0x452aae[_0x27ade7('0x80')]();});function _0x164519(_0x32c37a){var _0x121dce=_0x1b3429;_0x452aae[_0x121dce('0x1f29')]=_0x32c37a[_0x121dce('0x205f')]?_0x32c37a[_0x121dce('0x205f')]:0x0,_0x452aae[_0x121dce('0x2b6')]=_0x32c37a?_0x86640f()[_0x121dce('0xcde')](_0x32c37a[_0x121dce('0x1b33')]?_0x32c37a[_0x121dce('0x1b33')]:[],'id'):{},_0x38786b();}function _0x47be83(){var _0x1674e0=_0x1b3429;_0x452aae[_0x1674e0('0x77')][_0x1674e0('0x15a5')]=(_0x452aae[_0x1674e0('0x77')][_0x1674e0('0x2376')]-0x1)*_0x452aae[_0x1674e0('0x77')][_0x1674e0('0x1f4a')],_0x452aae[_0x1674e0('0x71b')]=_0x9016a4[_0x1674e0('0x1775')]['getQueues'](_0x452aae[_0x1674e0('0x77')],_0x164519)[_0x1674e0('0x1376')];}var _0x21dc06=!![],_0x2f10d5=0x1;_0x1cc64a['$watch'](_0x1b3429('0x10ff'),function(_0x1793c4,_0xec1b88){var _0xb907db=_0x1b3429;_0x21dc06?_0x21efcd(function(){_0x21dc06=![];}):(!_0xec1b88&&(_0x2f10d5=_0x452aae[_0xb907db('0x77')]['page']),_0x1793c4!==_0xec1b88&&(_0x452aae[_0xb907db('0x77')]['page']=0x1),!_0x1793c4&&(_0x452aae[_0xb907db('0x77')][_0xb907db('0x2376')]=_0x2f10d5),_0x452aae[_0xb907db('0x80')]());});function _0x1bf727(_0x31a547){var _0x480508=_0x1b3429;return _0x86640f()[_0x480508('0x337')](_0x31a547);}function _0x38786b(){var _0x5a94a5=_0x1b3429;_0x86640f()[_0x5a94a5('0xd54')](_0x452aae[_0x5a94a5('0x2b6')],function(_0x3fa93d,_0x203bd6){var _0x5239ab=_0x5a94a5;_0x452aae[_0x5239ab('0xb98')][_0x203bd6]&&(_0x452aae[_0x5239ab('0x2b6')][_0x203bd6][_0x5239ab('0x8b6')]=_0x452aae[_0x5239ab('0xb98')][_0x203bd6]['waiting']||0x0);});}function _0x15ebc8(_0x5b8ec0){var _0x5dca43=_0x1b3429;_0x452aae[_0x5dca43('0x2b6')][_0x5b8ec0['id']]&&(_0x452aae[_0x5dca43('0xb98')][_0x5b8ec0['id']]&&(_0x452aae['rpcVoiceQueues'][_0x5b8ec0['id']]=_0x5b8ec0,_0x86640f()[_0x5dca43('0xd0e')](_0x452aae['voiceQueues'][_0x5b8ec0['id']],_0x86640f()[_0x5dca43('0xc50')](_0x5b8ec0,_0x3fc258))));}function _0x269127(_0x57fa9d){var _0x153ab3=_0x1b3429;_0x57fa9d[_0x153ab3('0x7fa')]===_0x153ab3('0x2300')&&(_0x57fa9d[_0x153ab3('0x14a2')]?(delete _0x452aae[_0x153ab3('0x3e3')][_0x57fa9d['uniqueid']],_0x452aae[_0x153ab3('0x20ad')]&&_0x452aae[_0x153ab3('0xcd6')]['push'](_0x57fa9d[_0x153ab3('0x968')])):(_0x452aae['rpcVoiceQueuesChannels'][_0x57fa9d[_0x153ab3('0x968')]]=_0x57fa9d,_0x452aae[_0x153ab3('0x20ad')]&&(_0x452aae[_0x153ab3('0x1bec')][_0x57fa9d['uniqueid']]=_0x57fa9d)));}function _0x1222e5(_0x40ba59){var _0x1d6822=_0x1b3429;!_0x86640f()[_0x1d6822('0x1c7')](_0x40ba59)&&(_0x452aae[_0x1d6822('0xb98')][_0x40ba59['id']]=_0x86640f()['pick'](_0x40ba59,_0x3fc258));}function _0x145105(_0x5862cc){var _0x2809b2=_0x1b3429;!_0x86640f()[_0x2809b2('0x1c7')](_0x5862cc)&&(_0x452aae['rpcVoiceQueues'][_0x5862cc['id']]&&_0x86640f()[_0x2809b2('0xd0e')](_0x452aae[_0x2809b2('0xb98')][_0x5862cc['id']],_0x86640f()[_0x2809b2('0xc50')](_0x5862cc,_0x3fc258)),_0x452aae[_0x2809b2('0x2b6')][_0x5862cc['id']]&&_0x86640f()[_0x2809b2('0xd0e')](_0x452aae[_0x2809b2('0x2b6')][_0x5862cc['id']],_0x86640f()[_0x2809b2('0xc50')](_0x5862cc,_0x3fc258)));}function _0x5b499a(_0x22591a){var _0x24f59c=_0x1b3429;!_0x86640f()[_0x24f59c('0x1c7')](_0x22591a)&&(delete _0x452aae[_0x24f59c('0xb98')][_0x22591a['id']],delete _0x452aae[_0x24f59c('0x2b6')][_0x22591a['id']]);}function _0x6d6343(_0x504c0f){var _0x7b97de=_0x1b3429;_0x86640f()['toInteger'](_0x504c0f[_0x7b97de('0x1dc6')])===_0x2acb54[_0x7b97de('0x15ed')]()['id']&&_0x452aae[_0x7b97de('0x80')]();}_0x1cc64a[_0x1b3429('0x1723')](_0x1b3429('0x1210'),function(){var _0x460db7=_0x1b3429;_0x3cd707[_0x460db7('0x16cc')](_0x460db7('0x83e')),_0x3cd707[_0x460db7('0x16cc')](_0x460db7('0x17b3')),_0x3cd707[_0x460db7('0x16cc')]('userVoiceQueue:save'),_0x3cd707[_0x460db7('0x16cc')](_0x460db7('0x3b0')),_0x3cd707[_0x460db7('0x16cc')](_0x460db7('0xcae')),_0x3cd707[_0x460db7('0x16cc')](_0x460db7('0x1aba')),_0x3cd707['removeAllListeners'](_0x460db7('0x1ac2'));});}const _0x49935c=_0x52a3f1;_0x1afb0b[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x24e1'),'$translate',_0x3877e3('0xccd'),'Auth',_0x3877e3('0x25d8')];function _0x1afb0b(_0x3f886f,_0x48d1d5,_0x422c32,_0x418778,_0x18e890,_0xb0fa80,_0x4a998a,_0x19075e,_0x248147){var _0x4e74d8=_0x3877e3,_0x97c848=this,_0x1696ff=['id',_0x4e74d8('0x19fe'),_0x4e74d8('0x92f'),_0x4e74d8('0x8b6')],_0x631dc3=!![];_0x97c848[_0x4e74d8('0x104a')]={},_0x97c848[_0x4e74d8('0x15d8')]=0x0,_0x97c848['rpcChatQueues']={},_0x97c848[_0x4e74d8('0x1271')]=[],_0x97c848[_0x4e74d8('0x1712')]=[],_0x97c848['rpcChatQueuesWaitingInteractions']={},_0x97c848[_0x4e74d8('0x77')]={'id':_0x19075e['getCurrentUser']()['id'],'channel':_0x4e74d8('0x1f65'),'fields':_0x4e74d8('0x1a85'),'limit':0xa,'page':0x1},_0x97c848[_0x4e74d8('0x192a')]={'limit':0xa,'page':0x1},_0x97c848[_0x4e74d8('0xdb1')]=_0x2a85e0,_0x97c848['getChatQueues']=_0x54fcf4,_0x97c848[_0x4e74d8('0xd4e')]=_0x42590a,_0x97c848['getColorByChannel']=_0x5b0b47,_0x97c848[_0x4e74d8('0x147d')]=_0xe691af,_0x97c848[_0x4e74d8('0xe02')]=_0x22ee38,_0x97c848['onSaveChatQueue']=_0xcc6d87,_0x97c848[_0x4e74d8('0x190a')]=_0x2dda31,_0x97c848[_0x4e74d8('0x1e25')]=_0x4543ab,_0x97c848['onSaveUserChatQueue']=_0x2f8612,_0x97c848[_0x4e74d8('0x71a')]=_0x4e736f,_0x97c848['onSaveChatQueueChannel']=_0x4b44e6,_0x97c848[_0x4e74d8('0x23c9')]=_0x384db4,_0x248147[_0x4e74d8('0x1487')]('chat_queue:save',_0x97c848[_0x4e74d8('0xe02')]),_0x248147[_0x4e74d8('0x1487')]('chatQueue:save',_0x97c848[_0x4e74d8('0x751')]),_0x248147['onWithoutApply']('chatQueue:update',_0x97c848['onUpdateChatQueue']),_0x248147['onWithoutApply']('chatQueue:remove',_0x97c848[_0x4e74d8('0x1e25')]),_0x248147['onWithoutApply'](_0x4e74d8('0x6f'),_0x97c848[_0x4e74d8('0x18fe')]),_0x248147['onWithoutApply'](_0x4e74d8('0x149e'),_0x97c848[_0x4e74d8('0x71a')]),_0x248147[_0x4e74d8('0x1487')]('chat_queue_waiting_interaction:save',_0x97c848[_0x4e74d8('0x176')]),_0x248147[_0x4e74d8('0x1487')](_0x4e74d8('0x189'),_0x97c848[_0x4e74d8('0x23c9')]),_0x4a998a['rpc']['getChatQueues']()['$promise']['then'](function(_0x1f9adc){var _0x4b8fa8=_0x4e74d8;_0x97c848[_0x4b8fa8('0x165d')]=_0x1f9adc?_0x86640f()['keyBy'](_0x1f9adc[_0x4b8fa8('0x1b33')]?_0x1f9adc['rows']:[],'id'):{};})[_0x4e74d8('0x21ad')](function(){var _0x3aad33=_0x4e74d8;return _0x4a998a[_0x3aad33('0x1775')][_0x3aad33('0x71c')]({'id':_0x19075e[_0x3aad33('0x15ed')]()['id'],'channel':'chat'})[_0x3aad33('0x1376')];})[_0x4e74d8('0x21ad')](function(_0x241e37){var _0x3ae5dc=_0x4e74d8;return _0x97c848[_0x3ae5dc('0x1040')]=_0x241e37['rows'],_0x4a998a['rpc'][_0x3ae5dc('0x8b5')]()['$promise'];})[_0x4e74d8('0x21ad')](function(_0x2d2f70){var _0x282ff5=_0x4e74d8,_0xb108e8=_0x86640f()['filter'](_0x2d2f70[_0x282ff5('0x1b33')],function(_0x56cc47){var _0x27936f=_0x282ff5;return _0x86640f()[_0x27936f('0xb34')](_0x97c848[_0x27936f('0x1040')],{'id':_0x56cc47[_0x27936f('0x20bf')]});});_0x2d2f70['rows']=_0xb108e8,_0x2d2f70[_0x282ff5('0x205f')]=_0xb108e8['length'],_0x86640f()['merge'](_0x97c848[_0x282ff5('0x10bd')],_0x2d2f70?_0x86640f()[_0x282ff5('0xcde')](_0x2d2f70['rows']?_0x2d2f70['rows']:[],'id'):{});})[_0x4e74d8('0x1c1d')](function(_0x3b541c){var _0x387de5=_0x4e74d8;console[_0x387de5('0x2092')](_0x3b541c);})[_0x4e74d8('0x13e')](function(){var _0x3e3099=_0x4e74d8;for(var _0x2ae1af=0x0;_0x2ae1af<_0x97c848[_0x3e3099('0x1712')][_0x3e3099('0x577')];_0x2ae1af+=0x1){delete _0x97c848[_0x3e3099('0x10bd')][_0x97c848[_0x3e3099('0x1712')][_0x2ae1af]];}_0x631dc3=![],_0x97c848[_0x3e3099('0x1712')]=[],_0x54fcf4(),_0xe691af();});function _0xe691af(){var _0x1d1e87=_0x4e74d8,_0x358d52=(_0x97c848[_0x1d1e87('0x192a')][_0x1d1e87('0x2376')]-0x1)*_0x97c848[_0x1d1e87('0x192a')]['limit'];_0x97c848['paginatedInteractions']=_0x86640f()[_0x1d1e87('0x11df')](_0x97c848[_0x1d1e87('0x10bd')],[_0x1d1e87('0x2670')],[_0x1d1e87('0x340')]),_0x97c848[_0x1d1e87('0xc3c')]=_0x86640f()['drop'](_0x97c848[_0x1d1e87('0x1271')],_0x358d52)['slice'](0x0,_0x97c848[_0x1d1e87('0x192a')][_0x1d1e87('0x1f4a')]);}function _0x2a85e0(_0x383770){var _0x4d1e32=_0x4e74d8;_0x97c848[_0x4d1e32('0x15d8')]=_0x383770[_0x4d1e32('0x205f')]?_0x383770[_0x4d1e32('0x205f')]:0x0,_0x97c848[_0x4d1e32('0x104a')]=_0x383770?_0x86640f()[_0x4d1e32('0xcde')](_0x383770[_0x4d1e32('0x1b33')]?_0x383770[_0x4d1e32('0x1b33')]:[],'id'):{},_0x1270de();}function _0x54fcf4(){var _0x3be57d=_0x4e74d8;_0x97c848[_0x3be57d('0x77')][_0x3be57d('0x15a5')]=(_0x97c848[_0x3be57d('0x77')][_0x3be57d('0x2376')]-0x1)*_0x97c848[_0x3be57d('0x77')]['limit'],_0x97c848['promise']=_0x4a998a['user']['getQueues'](_0x97c848[_0x3be57d('0x77')],_0x2a85e0)[_0x3be57d('0x1376')];}var _0x466b6f=!![],_0x4255aa=0x1;_0x3f886f['$watch'](_0x4e74d8('0x10ff'),function(_0x5a0247,_0x36ee13){var _0x4b9c65=_0x4e74d8;_0x466b6f?_0x48d1d5(function(){_0x466b6f=![];}):(!_0x36ee13&&(_0x4255aa=_0x97c848['query'][_0x4b9c65('0x2376')]),_0x5a0247!==_0x36ee13&&(_0x97c848[_0x4b9c65('0x77')][_0x4b9c65('0x2376')]=0x1),!_0x5a0247&&(_0x97c848[_0x4b9c65('0x77')][_0x4b9c65('0x2376')]=_0x4255aa),_0x97c848[_0x4b9c65('0x163a')]());});function _0x42590a(_0x58b1b7){var _0xf5983f=_0x4e74d8;return _0x86640f()[_0xf5983f('0x337')](_0x58b1b7);}function _0x1270de(){var _0x346fa0=_0x4e74d8;_0x86640f()[_0x346fa0('0xd54')](_0x97c848[_0x346fa0('0x104a')],function(_0x588760,_0x4d9e1e){var _0x538739=_0x346fa0;_0x97c848['rpcChatQueues'][_0x4d9e1e]&&(_0x97c848[_0x538739('0x104a')][_0x4d9e1e][_0x538739('0x8b6')]=_0x97c848[_0x538739('0x165d')][_0x4d9e1e]['waiting']||0x0);});}function _0x22ee38(_0x504f27){var _0x327508=_0x4e74d8;_0x97c848[_0x327508('0x104a')][_0x504f27['id']]&&(_0x97c848['rpcChatQueues'][_0x504f27['id']]&&(_0x86640f()[_0x327508('0xd0e')](_0x97c848['rpcChatQueues'][_0x504f27['id']],_0x86640f()[_0x327508('0xc50')](_0x504f27,_0x1696ff)),_0x86640f()[_0x327508('0xd0e')](_0x97c848[_0x327508('0x104a')][_0x504f27['id']],_0x86640f()[_0x327508('0xc50')](_0x504f27,_0x1696ff))));}function _0xcc6d87(_0x2d5aaa){var _0x449661=_0x4e74d8;!_0x86640f()[_0x449661('0x1c7')](_0x2d5aaa)&&(_0x97c848['rpcChatQueues'][_0x2d5aaa['id']]=_0x86640f()[_0x449661('0xc50')](_0x2d5aaa,_0x1696ff));}function _0x2dda31(_0x4c5812){var _0x5e06ee=_0x4e74d8;!_0x86640f()[_0x5e06ee('0x1c7')](_0x4c5812)&&(_0x97c848[_0x5e06ee('0x165d')][_0x4c5812['id']]&&_0x86640f()[_0x5e06ee('0xd0e')](_0x97c848[_0x5e06ee('0x165d')][_0x4c5812['id']],_0x86640f()[_0x5e06ee('0xc50')](_0x4c5812,_0x1696ff)),_0x97c848[_0x5e06ee('0x104a')][_0x4c5812['id']]&&_0x86640f()['merge'](_0x97c848[_0x5e06ee('0x104a')][_0x4c5812['id']],_0x86640f()[_0x5e06ee('0xc50')](_0x4c5812,_0x1696ff)));}function _0x4543ab(_0x51fd90){var _0x5dd71b=_0x4e74d8;!_0x86640f()[_0x5dd71b('0x1c7')](_0x51fd90)&&(delete _0x97c848[_0x5dd71b('0x165d')][_0x51fd90['id']],delete _0x97c848[_0x5dd71b('0x104a')][_0x51fd90['id']]);}function _0x2f8612(_0x3997a3){var _0x2e7e53=_0x4e74d8;_0x86640f()[_0x2e7e53('0x27fc')](_0x3997a3[_0x2e7e53('0x1dc6')])===_0x19075e[_0x2e7e53('0x15ed')]()['id']&&_0x97c848['getChatQueues']();}function _0x4e736f(_0x7055a4){var _0x145522=_0x4e74d8;_0x86640f()[_0x145522('0x27fc')](_0x7055a4[_0x145522('0x1dc6')])===_0x19075e['getCurrentUser']()['id']&&_0x97c848['getChatQueues']();}function _0x4b44e6(_0x59b72b){var _0x10f14c=_0x4e74d8;_0x97c848['chatQueues'][_0x59b72b[_0x10f14c('0x20bf')]]&&(_0x97c848['rpcChatQueuesWaitingInteractions'][_0x59b72b['id']]=_0x59b72b,_0xe691af());}function _0x384db4(_0x50c54e){var _0x17b7de=_0x4e74d8;delete _0x97c848[_0x17b7de('0x10bd')][_0x50c54e['id']],_0x631dc3&&_0x97c848[_0x17b7de('0x1712')]['push'](_0x50c54e['id']),_0xe691af();}function _0x5b0b47(_0x42f736){var _0x4591c9=_0x4e74d8;switch(_0x42f736){case'chat':return _0x4591c9('0x1372');case _0x4591c9('0x1c8b'):return _0x4591c9('0x1d5b');case'sms':return _0x4591c9('0x5d6');case _0x4591c9('0x1ad4'):return'lime-A700-bg';case _0x4591c9('0xac9'):return _0x4591c9('0x141d');case _0x4591c9('0x93f'):return _0x4591c9('0x235a');default:return _0x4591c9('0x9ed');}}_0x3f886f['$on'](_0x4e74d8('0x1210'),function(){var _0x3b4956=_0x4e74d8;_0x248147[_0x3b4956('0x16cc')]('chat_queue:save'),_0x248147['removeAllListeners'](_0x3b4956('0x1e9c')),_0x248147[_0x3b4956('0x16cc')](_0x3b4956('0x6f0')),_0x248147['removeAllListeners'](_0x3b4956('0xd0d')),_0x248147[_0x3b4956('0x16cc')](_0x3b4956('0x6f')),_0x248147['removeAllListeners'](_0x3b4956('0x149e')),_0x248147[_0x3b4956('0x16cc')](_0x3b4956('0x1aed')),_0x248147['removeAllListeners'](_0x3b4956('0x189'));});}const _0x44ec73=_0x1afb0b;_0x2e9b20[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$timeout','$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x24e1'),_0x3877e3('0x13c1'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x25d8')];function _0x2e9b20(_0x383c0e,_0x582cf4,_0x20a2f2,_0x36d2be,_0x4f42e9,_0x1844da,_0x18eac9,_0x5308aa,_0x5831f9){var _0x446560=_0x3877e3,_0xf2c443=this,_0x152179=['id',_0x446560('0x19fe'),_0x446560('0x92f'),'waiting'],_0xd516cd=!![];_0xf2c443['faxQueues']={},_0xf2c443['faxQueuesTotal']=0x0,_0xf2c443['rpcFaxQueues']={},_0xf2c443[_0x446560('0x1271')]=[],_0xf2c443[_0x446560('0x894')]=[],_0xf2c443['rpcFaxQueuesWaitingInteractions']={},_0xf2c443[_0x446560('0x77')]={'id':_0x5308aa[_0x446560('0x15ed')]()['id'],'channel':_0x446560('0x93f'),'fields':'id,name,mapAgentsId,waiting','limit':0xa,'page':0x1},_0xf2c443['queryChannels']={'limit':0xa,'page':0x1},_0xf2c443[_0x446560('0xdb1')]=_0x5a570b,_0xf2c443[_0x446560('0x1fad')]=_0x2ad911,_0xf2c443['getSize']=_0x23195f,_0xf2c443[_0x446560('0x10b5')]=_0x443c30,_0xf2c443[_0x446560('0x147d')]=_0x7a0584,_0xf2c443[_0x446560('0xe02')]=_0x1e9c35,_0xf2c443[_0x446560('0xc58')]=_0x407dac,_0xf2c443[_0x446560('0x870')]=_0x19ad8b,_0xf2c443['onRemoveFaxQueue']=_0x1f6e70,_0xf2c443[_0x446560('0x84d')]=_0x366dd8,_0xf2c443['onRemoveUserFaxQueue']=_0x3210ca,_0xf2c443['onSaveFaxQueueChannel']=_0x8d68e0,_0xf2c443[_0x446560('0x441')]=_0xca6d5c,_0x5831f9['onWithoutApply'](_0x446560('0x9b7'),_0xf2c443[_0x446560('0xe02')]),_0x5831f9[_0x446560('0x1487')](_0x446560('0x1c06'),_0xf2c443[_0x446560('0xc58')]),_0x5831f9[_0x446560('0x1487')](_0x446560('0x2023'),_0xf2c443[_0x446560('0x870')]),_0x5831f9['onWithoutApply'](_0x446560('0x14db'),_0xf2c443[_0x446560('0x119')]),_0x5831f9[_0x446560('0x1487')]('userFaxQueue:save',_0xf2c443[_0x446560('0x84d')]),_0x5831f9[_0x446560('0x1487')](_0x446560('0x12f1'),_0xf2c443[_0x446560('0x19c0')]),_0x5831f9[_0x446560('0x1487')](_0x446560('0x24a5'),_0xf2c443['onSaveFaxQueueChannel']),_0x5831f9[_0x446560('0x1487')](_0x446560('0x2057'),_0xf2c443[_0x446560('0x441')]),_0x18eac9[_0x446560('0x9ac')][_0x446560('0x1fad')]()[_0x446560('0x1376')]['then'](function(_0x309236){var _0x424700=_0x446560;_0xf2c443[_0x424700('0x2728')]=_0x309236?_0x86640f()['keyBy'](_0x309236[_0x424700('0x1b33')]?_0x309236['rows']:[],'id'):{};})[_0x446560('0x21ad')](function(){var _0x183f79=_0x446560;return _0x18eac9['user'][_0x183f79('0x71c')]({'id':_0x5308aa['getCurrentUser']()['id'],'channel':_0x183f79('0x93f')})[_0x183f79('0x1376')];})[_0x446560('0x21ad')](function(_0x725cbf){var _0x3e6e07=_0x446560;return _0xf2c443['myQueues']=_0x725cbf[_0x3e6e07('0x1b33')],_0x18eac9[_0x3e6e07('0x9ac')][_0x3e6e07('0x1827')]()[_0x3e6e07('0x1376')];})['then'](function(_0xd73c6c){var _0x19b3b8=_0x446560,_0x2d8648=_0x86640f()[_0x19b3b8('0x1503')](_0xd73c6c['rows'],function(_0x3edd35){var _0x54e8d9=_0x19b3b8;return _0x86640f()[_0x54e8d9('0xb34')](_0xf2c443['myQueues'],{'id':_0x3edd35['queue_id']});});_0xd73c6c[_0x19b3b8('0x1b33')]=_0x2d8648,_0xd73c6c[_0x19b3b8('0x205f')]=_0x2d8648[_0x19b3b8('0x577')],_0x86640f()[_0x19b3b8('0xd0e')](_0xf2c443['rpcFaxQueuesWaitingInteractions'],_0xd73c6c?_0x86640f()['keyBy'](_0xd73c6c[_0x19b3b8('0x1b33')]?_0xd73c6c[_0x19b3b8('0x1b33')]:[],'id'):{});})[_0x446560('0x1c1d')](function(_0xaaa47a){var _0x21669d=_0x446560;console[_0x21669d('0x2092')](_0xaaa47a);})['finally'](function(){var _0x1531cc=_0x446560;for(var _0x104629=0x0;_0x104629<_0xf2c443[_0x1531cc('0x894')][_0x1531cc('0x577')];_0x104629+=0x1){delete _0xf2c443[_0x1531cc('0xca4')][_0xf2c443[_0x1531cc('0x894')][_0x104629]];}_0xd516cd=![],_0xf2c443[_0x1531cc('0x894')]=[],_0x2ad911(),_0x7a0584();});function _0x7a0584(){var _0x44d41b=_0x446560,_0x17b60f=(_0xf2c443[_0x44d41b('0x192a')][_0x44d41b('0x2376')]-0x1)*_0xf2c443[_0x44d41b('0x192a')][_0x44d41b('0x1f4a')];_0xf2c443[_0x44d41b('0x1271')]=_0x86640f()['orderBy'](_0xf2c443[_0x44d41b('0xca4')],[_0x44d41b('0x2670')],[_0x44d41b('0x340')]),_0xf2c443[_0x44d41b('0xc3c')]=_0x86640f()['drop'](_0xf2c443[_0x44d41b('0x1271')],_0x17b60f)['slice'](0x0,_0xf2c443[_0x44d41b('0x192a')][_0x44d41b('0x1f4a')]);}function _0x5a570b(_0x357505){var _0x4e0fd3=_0x446560;_0xf2c443['faxQueuesTotal']=_0x357505[_0x4e0fd3('0x205f')]?_0x357505[_0x4e0fd3('0x205f')]:0x0,_0xf2c443['faxQueues']=_0x357505?_0x86640f()[_0x4e0fd3('0xcde')](_0x357505['rows']?_0x357505[_0x4e0fd3('0x1b33')]:[],'id'):{},_0x16941a();}function _0x2ad911(){var _0x6cf9fb=_0x446560;_0xf2c443['query'][_0x6cf9fb('0x15a5')]=(_0xf2c443[_0x6cf9fb('0x77')][_0x6cf9fb('0x2376')]-0x1)*_0xf2c443[_0x6cf9fb('0x77')][_0x6cf9fb('0x1f4a')],_0xf2c443['promise']=_0x18eac9['user'][_0x6cf9fb('0x71c')](_0xf2c443[_0x6cf9fb('0x77')],_0x5a570b)[_0x6cf9fb('0x1376')];}var _0x32e1a8=!![],_0x147941=0x1;_0x383c0e[_0x446560('0x10e8')](_0x446560('0x10ff'),function(_0x1091cd,_0x3ecd6e){var _0x3caab5=_0x446560;_0x32e1a8?_0x582cf4(function(){_0x32e1a8=![];}):(!_0x3ecd6e&&(_0x147941=_0xf2c443[_0x3caab5('0x77')][_0x3caab5('0x2376')]),_0x1091cd!==_0x3ecd6e&&(_0xf2c443[_0x3caab5('0x77')]['page']=0x1),!_0x1091cd&&(_0xf2c443[_0x3caab5('0x77')][_0x3caab5('0x2376')]=_0x147941),_0xf2c443[_0x3caab5('0x1fad')]());});function _0x23195f(_0x498c63){return _0x86640f()['size'](_0x498c63);}function _0x16941a(){var _0x47dc9c=_0x446560;_0x86640f()[_0x47dc9c('0xd54')](_0xf2c443['faxQueues'],function(_0x4310e5,_0x491e81){var _0x5107fc=_0x47dc9c;_0xf2c443[_0x5107fc('0x2728')][_0x491e81]&&(_0xf2c443[_0x5107fc('0x2346')][_0x491e81]['waiting']=_0xf2c443['rpcFaxQueues'][_0x491e81][_0x5107fc('0x8b6')]||0x0);});}function _0x1e9c35(_0x16908c){var _0x16f0ad=_0x446560;_0xf2c443['faxQueues'][_0x16908c['id']]&&(_0xf2c443[_0x16f0ad('0x2728')][_0x16908c['id']]&&(_0x86640f()[_0x16f0ad('0xd0e')](_0xf2c443[_0x16f0ad('0x2728')][_0x16908c['id']],_0x86640f()['pick'](_0x16908c,_0x152179)),_0x86640f()[_0x16f0ad('0xd0e')](_0xf2c443[_0x16f0ad('0x2346')][_0x16908c['id']],_0x86640f()[_0x16f0ad('0xc50')](_0x16908c,_0x152179))));}function _0x407dac(_0xdeacd){var _0x34e6bb=_0x446560;!_0x86640f()[_0x34e6bb('0x1c7')](_0xdeacd)&&(_0xf2c443['rpcFaxQueues'][_0xdeacd['id']]=_0x86640f()[_0x34e6bb('0xc50')](_0xdeacd,_0x152179));}function _0x19ad8b(_0x5349c0){var _0xbf5718=_0x446560;!_0x86640f()[_0xbf5718('0x1c7')](_0x5349c0)&&(_0xf2c443[_0xbf5718('0x2728')][_0x5349c0['id']]&&_0x86640f()[_0xbf5718('0xd0e')](_0xf2c443[_0xbf5718('0x2728')][_0x5349c0['id']],_0x86640f()[_0xbf5718('0xc50')](_0x5349c0,_0x152179)),_0xf2c443[_0xbf5718('0x2346')][_0x5349c0['id']]&&_0x86640f()['merge'](_0xf2c443[_0xbf5718('0x2346')][_0x5349c0['id']],_0x86640f()[_0xbf5718('0xc50')](_0x5349c0,_0x152179)));}function _0x1f6e70(_0x263407){var _0x2022d0=_0x446560;!_0x86640f()['isNil'](_0x263407)&&(delete _0xf2c443[_0x2022d0('0x2728')][_0x263407['id']],delete _0xf2c443[_0x2022d0('0x2346')][_0x263407['id']]);}function _0x366dd8(_0x4268cc){var _0x22c065=_0x446560;_0x86640f()[_0x22c065('0x27fc')](_0x4268cc[_0x22c065('0x1dc6')])===_0x5308aa[_0x22c065('0x15ed')]()['id']&&_0xf2c443[_0x22c065('0x1fad')]();}function _0x3210ca(_0x2e5fb1){var _0x1f3321=_0x446560;_0x86640f()[_0x1f3321('0x27fc')](_0x2e5fb1[_0x1f3321('0x1dc6')])===_0x5308aa[_0x1f3321('0x15ed')]()['id']&&_0xf2c443[_0x1f3321('0x1fad')]();}function _0x8d68e0(_0x7cc2ad){var _0x1fc7e2=_0x446560;_0xf2c443[_0x1fc7e2('0x2346')][_0x7cc2ad[_0x1fc7e2('0x20bf')]]&&(_0xf2c443[_0x1fc7e2('0xca4')][_0x7cc2ad['id']]=_0x7cc2ad,_0x7a0584());}function _0xca6d5c(_0x5ef151){var _0x19ced0=_0x446560;delete _0xf2c443[_0x19ced0('0xca4')][_0x5ef151['id']],_0xd516cd&&_0xf2c443['deleteFaxQueuesWaitingInteractions'][_0x19ced0('0x206c')](_0x5ef151['id']),_0x7a0584();}function _0x443c30(_0x30ce11){var _0xce96ee=_0x446560;switch(_0x30ce11){case _0xce96ee('0x1f65'):return _0xce96ee('0x1372');case _0xce96ee('0x1c8b'):return _0xce96ee('0x1d5b');case _0xce96ee('0x3d0'):return _0xce96ee('0x5d6');case'whatsapp':return _0xce96ee('0x11ec');case'openchannel':return _0xce96ee('0x141d');case'fax':return _0xce96ee('0x235a');default:return'white-bg';}}_0x383c0e[_0x446560('0x1723')](_0x446560('0x1210'),function(){var _0x591cf7=_0x446560;_0x5831f9[_0x591cf7('0x16cc')](_0x591cf7('0x9b7')),_0x5831f9[_0x591cf7('0x16cc')](_0x591cf7('0x1c06')),_0x5831f9[_0x591cf7('0x16cc')](_0x591cf7('0x2023')),_0x5831f9[_0x591cf7('0x16cc')](_0x591cf7('0x14db')),_0x5831f9[_0x591cf7('0x16cc')](_0x591cf7('0x17e3')),_0x5831f9['removeAllListeners'](_0x591cf7('0x12f1')),_0x5831f9['removeAllListeners'](_0x591cf7('0x24a5')),_0x5831f9['removeAllListeners'](_0x591cf7('0x2057'));});}const _0x554499=_0x2e9b20;_0x3fd1eb['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0x2313'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x24e1'),_0x3877e3('0x13c1'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'socket'];function _0x3fd1eb(_0x3400d3,_0x404f3d,_0x439ef9,_0x19bc8d,_0x47556b,_0x1a2da6,_0x39005d,_0x567d33,_0x597277){var _0x2152d0=_0x3877e3,_0x7cdc8=this,_0x3646ce=['id','name','mapAgentsId',_0x2152d0('0x8b6')],_0xeae496=!![];_0x7cdc8[_0x2152d0('0x2216')]={},_0x7cdc8[_0x2152d0('0x966')]=0x0,_0x7cdc8[_0x2152d0('0x14ac')]={},_0x7cdc8['paginatedInteractions']=[],_0x7cdc8[_0x2152d0('0x3ce')]=[],_0x7cdc8[_0x2152d0('0x1d1d')]={},_0x7cdc8[_0x2152d0('0x77')]={'id':_0x567d33[_0x2152d0('0x15ed')]()['id'],'channel':_0x2152d0('0x1c8b'),'fields':_0x2152d0('0x1a85'),'limit':0xa,'page':0x1},_0x7cdc8['queryChannels']={'limit':0xa,'page':0x1},_0x7cdc8[_0x2152d0('0xdb1')]=_0x14e223,_0x7cdc8[_0x2152d0('0x1ef3')]=_0x607ec4,_0x7cdc8['getSize']=_0x506ffe,_0x7cdc8[_0x2152d0('0x10b5')]=_0x2e6c76,_0x7cdc8[_0x2152d0('0x147d')]=_0x373e69,_0x7cdc8['onSaveQueue']=_0x475c33,_0x7cdc8['onSaveMailQueue']=_0xf5ed48,_0x7cdc8[_0x2152d0('0x42f')]=_0x1639e3,_0x7cdc8[_0x2152d0('0x8e1')]=_0x20472c,_0x7cdc8[_0x2152d0('0x170d')]=_0x269aab,_0x7cdc8[_0x2152d0('0x1005')]=_0x10ec3a,_0x7cdc8[_0x2152d0('0x1a19')]=_0x2e4e7a,_0x7cdc8[_0x2152d0('0x1eda')]=_0xb56d1b,_0x597277[_0x2152d0('0x1487')](_0x2152d0('0x1373'),_0x7cdc8[_0x2152d0('0xe02')]),_0x597277['onWithoutApply'](_0x2152d0('0x3d8'),_0x7cdc8['onSaveMailQueue']),_0x597277[_0x2152d0('0x1487')](_0x2152d0('0x1012'),_0x7cdc8['onUpdateMailQueue']),_0x597277[_0x2152d0('0x1487')](_0x2152d0('0x6ae'),_0x7cdc8[_0x2152d0('0x8e1')]),_0x597277[_0x2152d0('0x1487')](_0x2152d0('0x236e'),_0x7cdc8[_0x2152d0('0x170d')]),_0x597277['onWithoutApply'](_0x2152d0('0x7e7'),_0x7cdc8[_0x2152d0('0x1005')]),_0x597277[_0x2152d0('0x1487')](_0x2152d0('0x1a33'),_0x7cdc8['onSaveMailQueueChannel']),_0x597277['onWithoutApply'](_0x2152d0('0xe60'),_0x7cdc8[_0x2152d0('0x1eda')]),_0x39005d[_0x2152d0('0x9ac')][_0x2152d0('0x1ef3')]()[_0x2152d0('0x1376')][_0x2152d0('0x21ad')](function(_0x399443){var _0x4ae926=_0x2152d0;_0x7cdc8[_0x4ae926('0x14ac')]=_0x399443?_0x86640f()[_0x4ae926('0xcde')](_0x399443[_0x4ae926('0x1b33')]?_0x399443[_0x4ae926('0x1b33')]:[],'id'):{};})[_0x2152d0('0x21ad')](function(){var _0x1d8a2e=_0x2152d0;return _0x39005d[_0x1d8a2e('0x1775')][_0x1d8a2e('0x71c')]({'id':_0x567d33[_0x1d8a2e('0x15ed')]()['id'],'channel':'mail'})[_0x1d8a2e('0x1376')];})[_0x2152d0('0x21ad')](function(_0x588a28){var _0x541443=_0x2152d0;return _0x7cdc8[_0x541443('0x1040')]=_0x588a28['rows'],_0x39005d[_0x541443('0x9ac')][_0x541443('0x243')]()[_0x541443('0x1376')];})[_0x2152d0('0x21ad')](function(_0x1b8d8b){var _0x3cf0d4=_0x2152d0,_0x4876be=_0x86640f()[_0x3cf0d4('0x1503')](_0x1b8d8b[_0x3cf0d4('0x1b33')],function(_0x7aa7b0){var _0x2d25ff=_0x3cf0d4;return _0x86640f()[_0x2d25ff('0xb34')](_0x7cdc8[_0x2d25ff('0x1040')],{'id':_0x7aa7b0[_0x2d25ff('0x20bf')]});});_0x1b8d8b[_0x3cf0d4('0x1b33')]=_0x4876be,_0x1b8d8b['count']=_0x4876be[_0x3cf0d4('0x577')],_0x86640f()[_0x3cf0d4('0xd0e')](_0x7cdc8[_0x3cf0d4('0x1d1d')],_0x1b8d8b?_0x86640f()[_0x3cf0d4('0xcde')](_0x1b8d8b[_0x3cf0d4('0x1b33')]?_0x1b8d8b['rows']:[],'id'):{});})[_0x2152d0('0x1c1d')](function(_0x2b53a0){var _0x3ef202=_0x2152d0;console[_0x3ef202('0x2092')](_0x2b53a0);})['finally'](function(){var _0xe3b584=_0x2152d0;for(var _0x435356=0x0;_0x435356<_0x7cdc8[_0xe3b584('0x3ce')][_0xe3b584('0x577')];_0x435356+=0x1){delete _0x7cdc8[_0xe3b584('0x1d1d')][_0x7cdc8[_0xe3b584('0x3ce')][_0x435356]];}_0xeae496=![],_0x7cdc8[_0xe3b584('0x3ce')]=[],_0x607ec4(),_0x373e69();});function _0x373e69(){var _0x58799e=_0x2152d0,_0x1cc29=(_0x7cdc8['queryChannels'][_0x58799e('0x2376')]-0x1)*_0x7cdc8[_0x58799e('0x192a')][_0x58799e('0x1f4a')];_0x7cdc8[_0x58799e('0x1271')]=_0x86640f()['orderBy'](_0x7cdc8[_0x58799e('0x1d1d')],[_0x58799e('0x2670')],[_0x58799e('0x340')]),_0x7cdc8[_0x58799e('0xc3c')]=_0x86640f()[_0x58799e('0x2189')](_0x7cdc8[_0x58799e('0x1271')],_0x1cc29)[_0x58799e('0xb3d')](0x0,_0x7cdc8[_0x58799e('0x192a')][_0x58799e('0x1f4a')]);}function _0x14e223(_0x5c0a5c){var _0x5eaa66=_0x2152d0;_0x7cdc8[_0x5eaa66('0x966')]=_0x5c0a5c[_0x5eaa66('0x205f')]?_0x5c0a5c[_0x5eaa66('0x205f')]:0x0,_0x7cdc8['mailQueues']=_0x5c0a5c?_0x86640f()[_0x5eaa66('0xcde')](_0x5c0a5c[_0x5eaa66('0x1b33')]?_0x5c0a5c['rows']:[],'id'):{},_0x55e2bd();}function _0x607ec4(){var _0x569b9f=_0x2152d0;_0x7cdc8[_0x569b9f('0x77')][_0x569b9f('0x15a5')]=(_0x7cdc8[_0x569b9f('0x77')]['page']-0x1)*_0x7cdc8[_0x569b9f('0x77')][_0x569b9f('0x1f4a')],_0x7cdc8[_0x569b9f('0x71b')]=_0x39005d['user'][_0x569b9f('0x71c')](_0x7cdc8[_0x569b9f('0x77')],_0x14e223)[_0x569b9f('0x1376')];}var _0x116344=!![],_0x269a32=0x1;_0x3400d3[_0x2152d0('0x10e8')](_0x2152d0('0x10ff'),function(_0x27eddf,_0x585a67){var _0x1b9e3f=_0x2152d0;_0x116344?_0x404f3d(function(){_0x116344=![];}):(!_0x585a67&&(_0x269a32=_0x7cdc8[_0x1b9e3f('0x77')][_0x1b9e3f('0x2376')]),_0x27eddf!==_0x585a67&&(_0x7cdc8[_0x1b9e3f('0x77')][_0x1b9e3f('0x2376')]=0x1),!_0x27eddf&&(_0x7cdc8[_0x1b9e3f('0x77')][_0x1b9e3f('0x2376')]=_0x269a32),_0x7cdc8[_0x1b9e3f('0x1ef3')]());});function _0x506ffe(_0x388ea5){var _0x56de32=_0x2152d0;return _0x86640f()[_0x56de32('0x337')](_0x388ea5);}function _0x55e2bd(){var _0x290d0f=_0x2152d0;_0x86640f()[_0x290d0f('0xd54')](_0x7cdc8['mailQueues'],function(_0x171499,_0x2004e0){var _0x15efb2=_0x290d0f;_0x7cdc8[_0x15efb2('0x14ac')][_0x2004e0]&&(_0x7cdc8[_0x15efb2('0x2216')][_0x2004e0][_0x15efb2('0x8b6')]=_0x7cdc8[_0x15efb2('0x14ac')][_0x2004e0]['waiting']||0x0);});}function _0x475c33(_0x36acfc){var _0x55c130=_0x2152d0;_0x7cdc8[_0x55c130('0x2216')][_0x36acfc['id']]&&(_0x7cdc8[_0x55c130('0x14ac')][_0x36acfc['id']]&&(_0x86640f()[_0x55c130('0xd0e')](_0x7cdc8[_0x55c130('0x14ac')][_0x36acfc['id']],_0x86640f()['pick'](_0x36acfc,_0x3646ce)),_0x86640f()[_0x55c130('0xd0e')](_0x7cdc8[_0x55c130('0x2216')][_0x36acfc['id']],_0x86640f()[_0x55c130('0xc50')](_0x36acfc,_0x3646ce))));}function _0xf5ed48(_0xab44c7){var _0x1856e7=_0x2152d0;!_0x86640f()[_0x1856e7('0x1c7')](_0xab44c7)&&(_0x7cdc8[_0x1856e7('0x14ac')][_0xab44c7['id']]=_0x86640f()[_0x1856e7('0xc50')](_0xab44c7,_0x3646ce));}function _0x1639e3(_0x28f911){var _0x31493d=_0x2152d0;!_0x86640f()['isNil'](_0x28f911)&&(_0x7cdc8['rpcMailQueues'][_0x28f911['id']]&&_0x86640f()[_0x31493d('0xd0e')](_0x7cdc8[_0x31493d('0x14ac')][_0x28f911['id']],_0x86640f()[_0x31493d('0xc50')](_0x28f911,_0x3646ce)),_0x7cdc8[_0x31493d('0x2216')][_0x28f911['id']]&&_0x86640f()[_0x31493d('0xd0e')](_0x7cdc8[_0x31493d('0x2216')][_0x28f911['id']],_0x86640f()[_0x31493d('0xc50')](_0x28f911,_0x3646ce)));}function _0x20472c(_0x4607a8){var _0x30428a=_0x2152d0;!_0x86640f()[_0x30428a('0x1c7')](_0x4607a8)&&(delete _0x7cdc8[_0x30428a('0x14ac')][_0x4607a8['id']],delete _0x7cdc8[_0x30428a('0x2216')][_0x4607a8['id']]);}function _0x269aab(_0x277357){var _0x566695=_0x2152d0;_0x86640f()['toInteger'](_0x277357[_0x566695('0x1dc6')])===_0x567d33[_0x566695('0x15ed')]()['id']&&_0x7cdc8[_0x566695('0x1ef3')]();}function _0x10ec3a(_0x369e3d){var _0x218a8d=_0x2152d0;_0x86640f()[_0x218a8d('0x27fc')](_0x369e3d[_0x218a8d('0x1dc6')])===_0x567d33[_0x218a8d('0x15ed')]()['id']&&_0x7cdc8[_0x218a8d('0x1ef3')]();}function _0x2e4e7a(_0x178414){var _0x37ea6d=_0x2152d0;_0x7cdc8[_0x37ea6d('0x2216')][_0x178414[_0x37ea6d('0x20bf')]]&&(_0x7cdc8[_0x37ea6d('0x1d1d')][_0x178414['id']]=_0x178414,_0x373e69());}function _0xb56d1b(_0x185000){var _0x1c2e2f=_0x2152d0;delete _0x7cdc8[_0x1c2e2f('0x1d1d')][_0x185000['id']],_0xeae496&&_0x7cdc8[_0x1c2e2f('0x3ce')][_0x1c2e2f('0x206c')](_0x185000['id']),_0x373e69();}function _0x2e6c76(_0x5e25d4){var _0x2a3931=_0x2152d0;switch(_0x5e25d4){case _0x2a3931('0x1f65'):return _0x2a3931('0x1372');case'mail':return'teal-bg';case _0x2a3931('0x3d0'):return'orange-bg';case _0x2a3931('0x1ad4'):return _0x2a3931('0x11ec');case'openchannel':return _0x2a3931('0x141d');case'fax':return _0x2a3931('0x235a');default:return _0x2a3931('0x9ed');}}_0x3400d3[_0x2152d0('0x1723')]('$destroy',function(){var _0xde75b4=_0x2152d0;_0x597277['removeAllListeners'](_0xde75b4('0x1373')),_0x597277[_0xde75b4('0x16cc')](_0xde75b4('0x3d8')),_0x597277[_0xde75b4('0x16cc')](_0xde75b4('0x1012')),_0x597277[_0xde75b4('0x16cc')](_0xde75b4('0x6ae')),_0x597277[_0xde75b4('0x16cc')](_0xde75b4('0x236e')),_0x597277['removeAllListeners'](_0xde75b4('0x7e7')),_0x597277['removeAllListeners']('mail_queue_waiting_interaction:save'),_0x597277[_0xde75b4('0x16cc')]('mail_queue_waiting_interaction:remove');});}const _0x4ffe07=_0x3fd1eb;_0x31f893['$inject']=['$scope',_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),'$window','$translate',_0x3877e3('0xccd'),'Auth',_0x3877e3('0x25d8')];function _0x31f893(_0x2452ec,_0x313669,_0x1a4038,_0xb43eae,_0x5375fa,_0x182f37,_0x492c83,_0x198ed5,_0x4cdb3b){var _0x2dbbb5=_0x3877e3,_0x4b20cf=this,_0x324ea2=['id',_0x2dbbb5('0x19fe'),_0x2dbbb5('0x92f'),_0x2dbbb5('0x8b6')],_0x32b05f=!![];_0x4b20cf[_0x2dbbb5('0x1a0d')]={},_0x4b20cf[_0x2dbbb5('0x7ec')]=0x0,_0x4b20cf['rpcOpenchannelQueues']={},_0x4b20cf['paginatedInteractions']=[],_0x4b20cf['deleteOpenchannelQueuesWaitingInteractions']=[],_0x4b20cf[_0x2dbbb5('0xcbe')]={},_0x4b20cf[_0x2dbbb5('0x77')]={'id':_0x198ed5[_0x2dbbb5('0x15ed')]()['id'],'channel':_0x2dbbb5('0xac9'),'fields':_0x2dbbb5('0x1a85'),'limit':0xa,'page':0x1},_0x4b20cf[_0x2dbbb5('0x192a')]={'limit':0xa,'page':0x1},_0x4b20cf[_0x2dbbb5('0xdb1')]=_0xc0a234,_0x4b20cf['getOpenchannelQueues']=_0x5b8241,_0x4b20cf['getSize']=_0x1d4ed9,_0x4b20cf[_0x2dbbb5('0x10b5')]=_0x42b15c,_0x4b20cf[_0x2dbbb5('0x147d')]=_0x1285b0,_0x4b20cf[_0x2dbbb5('0xe02')]=_0x1f9d22,_0x4b20cf[_0x2dbbb5('0x2549')]=_0x261e19,_0x4b20cf['onUpdateOpenchannelQueue']=_0x58b343,_0x4b20cf[_0x2dbbb5('0x14d')]=_0x1105bf,_0x4b20cf['onSaveUserOpenchannelQueue']=_0x187eed,_0x4b20cf[_0x2dbbb5('0x911')]=_0x34e72d,_0x4b20cf[_0x2dbbb5('0x240d')]=_0x3dfde5,_0x4b20cf['onRemoveOpenchannelQueueChannel']=_0x54f007,_0x4cdb3b[_0x2dbbb5('0x1487')]('openchannel_queue:save',_0x4b20cf['onSaveQueue']),_0x4cdb3b['onWithoutApply'](_0x2dbbb5('0x189a'),_0x4b20cf['onSaveOpenchannelQueue']),_0x4cdb3b[_0x2dbbb5('0x1487')](_0x2dbbb5('0x341'),_0x4b20cf[_0x2dbbb5('0x9f6')]),_0x4cdb3b['onWithoutApply'](_0x2dbbb5('0x18df'),_0x4b20cf[_0x2dbbb5('0x14d')]),_0x4cdb3b[_0x2dbbb5('0x1487')](_0x2dbbb5('0x9c9'),_0x4b20cf[_0x2dbbb5('0x2609')]),_0x4cdb3b[_0x2dbbb5('0x1487')](_0x2dbbb5('0x1a09'),_0x4b20cf[_0x2dbbb5('0x911')]),_0x4cdb3b['onWithoutApply']('openchannel_queue_waiting_interaction:save',_0x4b20cf['onSaveOpenchannelQueueChannel']),_0x4cdb3b[_0x2dbbb5('0x1487')](_0x2dbbb5('0x12c1'),_0x4b20cf[_0x2dbbb5('0x1933')]),_0x492c83['rpc'][_0x2dbbb5('0x511')]()['$promise']['then'](function(_0x4606bd){var _0x32c6b4=_0x2dbbb5;_0x4b20cf['rpcOpenchannelQueues']=_0x4606bd?_0x86640f()[_0x32c6b4('0xcde')](_0x4606bd['rows']?_0x4606bd[_0x32c6b4('0x1b33')]:[],'id'):{};})[_0x2dbbb5('0x21ad')](function(){var _0x7b3320=_0x2dbbb5;return _0x492c83[_0x7b3320('0x1775')]['getQueues']({'id':_0x198ed5[_0x7b3320('0x15ed')]()['id'],'channel':_0x7b3320('0xac9')})['$promise'];})[_0x2dbbb5('0x21ad')](function(_0x23f524){var _0x42a38f=_0x2dbbb5;return _0x4b20cf['myQueues']=_0x23f524[_0x42a38f('0x1b33')],_0x492c83[_0x42a38f('0x9ac')][_0x42a38f('0x113b')]()[_0x42a38f('0x1376')];})[_0x2dbbb5('0x21ad')](function(_0x219f19){var _0x295025=_0x2dbbb5,_0x247549=_0x86640f()['filter'](_0x219f19[_0x295025('0x1b33')],function(_0x5402ba){return _0x86640f()['includes'](_0x4b20cf['myQueues'],{'id':_0x5402ba['queue_id']});});_0x219f19['rows']=_0x247549,_0x219f19[_0x295025('0x205f')]=_0x247549['length'],_0x86640f()['merge'](_0x4b20cf[_0x295025('0xcbe')],_0x219f19?_0x86640f()[_0x295025('0xcde')](_0x219f19[_0x295025('0x1b33')]?_0x219f19['rows']:[],'id'):{});})[_0x2dbbb5('0x1c1d')](function(_0x5eda39){var _0x223f54=_0x2dbbb5;console[_0x223f54('0x2092')](_0x5eda39);})[_0x2dbbb5('0x13e')](function(){var _0x11bb1b=_0x2dbbb5;for(var _0x3cc351=0x0;_0x3cc351<_0x4b20cf['deleteOpenchannelQueuesWaitingInteractions'][_0x11bb1b('0x577')];_0x3cc351+=0x1){delete _0x4b20cf[_0x11bb1b('0xcbe')][_0x4b20cf[_0x11bb1b('0x1418')][_0x3cc351]];}_0x32b05f=![],_0x4b20cf[_0x11bb1b('0x1418')]=[],_0x5b8241(),_0x1285b0();});function _0x1285b0(){var _0x12abce=_0x2dbbb5,_0x3c6f95=(_0x4b20cf[_0x12abce('0x192a')]['page']-0x1)*_0x4b20cf['queryChannels'][_0x12abce('0x1f4a')];_0x4b20cf['paginatedInteractions']=_0x86640f()[_0x12abce('0x11df')](_0x4b20cf[_0x12abce('0xcbe')],['joinAt'],[_0x12abce('0x340')]),_0x4b20cf[_0x12abce('0xc3c')]=_0x86640f()[_0x12abce('0x2189')](_0x4b20cf['paginatedInteractions'],_0x3c6f95)[_0x12abce('0xb3d')](0x0,_0x4b20cf[_0x12abce('0x192a')][_0x12abce('0x1f4a')]);}function _0xc0a234(_0x3c5557){var _0x21f840=_0x2dbbb5;_0x4b20cf[_0x21f840('0x7ec')]=_0x3c5557[_0x21f840('0x205f')]?_0x3c5557['count']:0x0,_0x4b20cf[_0x21f840('0x1a0d')]=_0x3c5557?_0x86640f()['keyBy'](_0x3c5557[_0x21f840('0x1b33')]?_0x3c5557[_0x21f840('0x1b33')]:[],'id'):{},_0xcaf259();}function _0x5b8241(){var _0x1785ea=_0x2dbbb5;_0x4b20cf['query']['offset']=(_0x4b20cf['query'][_0x1785ea('0x2376')]-0x1)*_0x4b20cf[_0x1785ea('0x77')][_0x1785ea('0x1f4a')],_0x4b20cf['promise']=_0x492c83[_0x1785ea('0x1775')]['getQueues'](_0x4b20cf['query'],_0xc0a234)[_0x1785ea('0x1376')];}var _0x4f4e53=!![],_0x5ac760=0x1;_0x2452ec[_0x2dbbb5('0x10e8')](_0x2dbbb5('0x10ff'),function(_0x34f8e3,_0x793064){var _0x570cb6=_0x2dbbb5;_0x4f4e53?_0x313669(function(){_0x4f4e53=![];}):(!_0x793064&&(_0x5ac760=_0x4b20cf['query'][_0x570cb6('0x2376')]),_0x34f8e3!==_0x793064&&(_0x4b20cf['query'][_0x570cb6('0x2376')]=0x1),!_0x34f8e3&&(_0x4b20cf[_0x570cb6('0x77')][_0x570cb6('0x2376')]=_0x5ac760),_0x4b20cf['getOpenchannelQueues']());});function _0x1d4ed9(_0x14acf1){var _0x468c3c=_0x2dbbb5;return _0x86640f()[_0x468c3c('0x337')](_0x14acf1);}function _0xcaf259(){var _0x28d264=_0x2dbbb5;_0x86640f()[_0x28d264('0xd54')](_0x4b20cf['openchannelQueues'],function(_0x130b27,_0x35b7da){var _0x5a22f7=_0x28d264;_0x4b20cf[_0x5a22f7('0x637')][_0x35b7da]&&(_0x4b20cf[_0x5a22f7('0x1a0d')][_0x35b7da][_0x5a22f7('0x8b6')]=_0x4b20cf[_0x5a22f7('0x637')][_0x35b7da][_0x5a22f7('0x8b6')]||0x0);});}function _0x1f9d22(_0x3968b3){var _0x4a485c=_0x2dbbb5;_0x4b20cf['openchannelQueues'][_0x3968b3['id']]&&(_0x4b20cf[_0x4a485c('0x637')][_0x3968b3['id']]&&(_0x86640f()['merge'](_0x4b20cf[_0x4a485c('0x637')][_0x3968b3['id']],_0x86640f()[_0x4a485c('0xc50')](_0x3968b3,_0x324ea2)),_0x86640f()[_0x4a485c('0xd0e')](_0x4b20cf['openchannelQueues'][_0x3968b3['id']],_0x86640f()['pick'](_0x3968b3,_0x324ea2))));}function _0x261e19(_0x266f6d){var _0x162144=_0x2dbbb5;!_0x86640f()[_0x162144('0x1c7')](_0x266f6d)&&(_0x4b20cf[_0x162144('0x637')][_0x266f6d['id']]=_0x86640f()[_0x162144('0xc50')](_0x266f6d,_0x324ea2));}function _0x58b343(_0x4bc7ba){var _0x5dafac=_0x2dbbb5;!_0x86640f()[_0x5dafac('0x1c7')](_0x4bc7ba)&&(_0x4b20cf[_0x5dafac('0x637')][_0x4bc7ba['id']]&&_0x86640f()[_0x5dafac('0xd0e')](_0x4b20cf[_0x5dafac('0x637')][_0x4bc7ba['id']],_0x86640f()['pick'](_0x4bc7ba,_0x324ea2)),_0x4b20cf[_0x5dafac('0x1a0d')][_0x4bc7ba['id']]&&_0x86640f()['merge'](_0x4b20cf['openchannelQueues'][_0x4bc7ba['id']],_0x86640f()[_0x5dafac('0xc50')](_0x4bc7ba,_0x324ea2)));}function _0x1105bf(_0x4346fd){var _0x5c67b2=_0x2dbbb5;!_0x86640f()[_0x5c67b2('0x1c7')](_0x4346fd)&&(delete _0x4b20cf[_0x5c67b2('0x637')][_0x4346fd['id']],delete _0x4b20cf[_0x5c67b2('0x1a0d')][_0x4346fd['id']]);}function _0x187eed(_0x875b3d){var _0x1c3ac9=_0x2dbbb5;_0x86640f()['toInteger'](_0x875b3d[_0x1c3ac9('0x1dc6')])===_0x198ed5[_0x1c3ac9('0x15ed')]()['id']&&_0x4b20cf[_0x1c3ac9('0x511')]();}function _0x34e72d(_0x3018a9){var _0x29fe23=_0x2dbbb5;_0x86640f()[_0x29fe23('0x27fc')](_0x3018a9[_0x29fe23('0x1dc6')])===_0x198ed5[_0x29fe23('0x15ed')]()['id']&&_0x4b20cf[_0x29fe23('0x511')]();}function _0x3dfde5(_0x87d40f){_0x4b20cf['openchannelQueues'][_0x87d40f['queue_id']]&&(_0x4b20cf['rpcOpenchannelQueuesWaitingInteractions'][_0x87d40f['id']]=_0x87d40f,_0x1285b0());}function _0x54f007(_0x50be94){var _0xaf8869=_0x2dbbb5;delete _0x4b20cf[_0xaf8869('0xcbe')][_0x50be94['id']],_0x32b05f&&_0x4b20cf[_0xaf8869('0x1418')]['push'](_0x50be94['id']),_0x1285b0();}function _0x42b15c(_0x25c045){var _0x49b5e0=_0x2dbbb5;switch(_0x25c045){case _0x49b5e0('0x1f65'):return'green-A700-bg';case'mail':return _0x49b5e0('0x1d5b');case _0x49b5e0('0x3d0'):return _0x49b5e0('0x5d6');case _0x49b5e0('0x1ad4'):return _0x49b5e0('0x11ec');case _0x49b5e0('0xac9'):return _0x49b5e0('0x141d');case _0x49b5e0('0x93f'):return _0x49b5e0('0x235a');default:return _0x49b5e0('0x9ed');}}_0x2452ec[_0x2dbbb5('0x1723')]('$destroy',function(){var _0x4ccaf8=_0x2dbbb5;_0x4cdb3b['removeAllListeners'](_0x4ccaf8('0x30e')),_0x4cdb3b['removeAllListeners'](_0x4ccaf8('0x189a')),_0x4cdb3b[_0x4ccaf8('0x16cc')]('openchannelQueue:update'),_0x4cdb3b[_0x4ccaf8('0x16cc')](_0x4ccaf8('0x18df')),_0x4cdb3b[_0x4ccaf8('0x16cc')]('userOpenchannelQueue:save'),_0x4cdb3b['removeAllListeners']('userOpenchannelQueue:remove'),_0x4cdb3b[_0x4ccaf8('0x16cc')](_0x4ccaf8('0x1a9f')),_0x4cdb3b[_0x4ccaf8('0x16cc')](_0x4ccaf8('0x12c1'));});}const _0x53bf59=_0x31f893;_0x256ae6[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x24e1'),_0x3877e3('0x13c1'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'socket'];function _0x256ae6(_0x1040f7,_0x3541ae,_0xd38f53,_0x21f7bb,_0xbe374b,_0x4dfd98,_0x340f37,_0x5e1b7b,_0x3f833d){var _0x46f10d=_0x3877e3,_0x3bffcf=this,_0x30f6f8=['id',_0x46f10d('0x19fe'),_0x46f10d('0x92f'),_0x46f10d('0x8b6')],_0x534303=!![];_0x3bffcf[_0x46f10d('0x6ce')]={},_0x3bffcf['smsQueuesTotal']=0x0,_0x3bffcf[_0x46f10d('0x1472')]={},_0x3bffcf[_0x46f10d('0x1271')]=[],_0x3bffcf[_0x46f10d('0x689')]=[],_0x3bffcf[_0x46f10d('0x9bf')]={},_0x3bffcf['query']={'id':_0x5e1b7b['getCurrentUser']()['id'],'channel':'sms','fields':_0x46f10d('0x1a85'),'limit':0xa,'page':0x1},_0x3bffcf[_0x46f10d('0x192a')]={'limit':0xa,'page':0x1},_0x3bffcf[_0x46f10d('0xdb1')]=_0x2b76c6,_0x3bffcf[_0x46f10d('0x12fb')]=_0x16dde6,_0x3bffcf[_0x46f10d('0xd4e')]=_0x4f7006,_0x3bffcf[_0x46f10d('0x10b5')]=_0x3b8960,_0x3bffcf[_0x46f10d('0x147d')]=_0x1870b1,_0x3bffcf[_0x46f10d('0xe02')]=_0x1aff2a,_0x3bffcf['onSaveSmsQueue']=_0x5a4ac4,_0x3bffcf[_0x46f10d('0x1320')]=_0x4a3dc5,_0x3bffcf['onRemoveSmsQueue']=_0x633fe3,_0x3bffcf[_0x46f10d('0x1ea8')]=_0x320050,_0x3bffcf[_0x46f10d('0x1fdd')]=_0x1fe3ff,_0x3bffcf[_0x46f10d('0x2720')]=_0x5f4358,_0x3bffcf['onRemoveSmsQueueChannel']=_0x36c974,_0x3f833d[_0x46f10d('0x1487')]('sms_queue:save',_0x3bffcf['onSaveQueue']),_0x3f833d[_0x46f10d('0x1487')](_0x46f10d('0x2a2'),_0x3bffcf[_0x46f10d('0x5a6')]),_0x3f833d[_0x46f10d('0x1487')](_0x46f10d('0xadc'),_0x3bffcf[_0x46f10d('0x1320')]),_0x3f833d['onWithoutApply']('smsQueue:remove',_0x3bffcf[_0x46f10d('0x18b9')]),_0x3f833d[_0x46f10d('0x1487')]('userSmsQueue:save',_0x3bffcf[_0x46f10d('0x1ea8')]),_0x3f833d[_0x46f10d('0x1487')]('userSmsQueue:remove',_0x3bffcf[_0x46f10d('0x1fdd')]),_0x3f833d[_0x46f10d('0x1487')](_0x46f10d('0x1a43'),_0x3bffcf[_0x46f10d('0x2720')]),_0x3f833d['onWithoutApply'](_0x46f10d('0x14f6'),_0x3bffcf[_0x46f10d('0x3a1')]),_0x340f37['rpc'][_0x46f10d('0x12fb')]()['$promise'][_0x46f10d('0x21ad')](function(_0x16fca7){var _0x15c395=_0x46f10d;_0x3bffcf[_0x15c395('0x1472')]=_0x16fca7?_0x86640f()[_0x15c395('0xcde')](_0x16fca7[_0x15c395('0x1b33')]?_0x16fca7[_0x15c395('0x1b33')]:[],'id'):{};})['then'](function(){var _0x2ae354=_0x46f10d;return _0x340f37[_0x2ae354('0x1775')][_0x2ae354('0x71c')]({'id':_0x5e1b7b[_0x2ae354('0x15ed')]()['id'],'channel':_0x2ae354('0x3d0')})[_0x2ae354('0x1376')];})['then'](function(_0x2dff65){var _0x184289=_0x46f10d;return _0x3bffcf['myQueues']=_0x2dff65[_0x184289('0x1b33')],_0x340f37[_0x184289('0x9ac')]['getSmsQueuesWaitingInteractions']()[_0x184289('0x1376')];})['then'](function(_0xf9f72c){var _0x1ab167=_0x46f10d,_0x321a6d=_0x86640f()[_0x1ab167('0x1503')](_0xf9f72c['rows'],function(_0x53e778){var _0x3aad0d=_0x1ab167;return _0x86640f()['includes'](_0x3bffcf[_0x3aad0d('0x1040')],{'id':_0x53e778['queue_id']});});_0xf9f72c[_0x1ab167('0x1b33')]=_0x321a6d,_0xf9f72c[_0x1ab167('0x205f')]=_0x321a6d['length'],_0x86640f()['merge'](_0x3bffcf[_0x1ab167('0x9bf')],_0xf9f72c?_0x86640f()[_0x1ab167('0xcde')](_0xf9f72c[_0x1ab167('0x1b33')]?_0xf9f72c[_0x1ab167('0x1b33')]:[],'id'):{});})['catch'](function(_0x155e1a){var _0xb5c346=_0x46f10d;console[_0xb5c346('0x2092')](_0x155e1a);})[_0x46f10d('0x13e')](function(){var _0x49614f=_0x46f10d;for(var _0xaf632f=0x0;_0xaf632f<_0x3bffcf[_0x49614f('0x689')][_0x49614f('0x577')];_0xaf632f+=0x1){delete _0x3bffcf[_0x49614f('0x9bf')][_0x3bffcf['deleteSmsQueuesWaitingInteractions'][_0xaf632f]];}_0x534303=![],_0x3bffcf[_0x49614f('0x689')]=[],_0x16dde6(),_0x1870b1();});function _0x1870b1(){var _0x54e03e=_0x46f10d,_0x20b4a0=(_0x3bffcf[_0x54e03e('0x192a')][_0x54e03e('0x2376')]-0x1)*_0x3bffcf[_0x54e03e('0x192a')][_0x54e03e('0x1f4a')];_0x3bffcf[_0x54e03e('0x1271')]=_0x86640f()[_0x54e03e('0x11df')](_0x3bffcf[_0x54e03e('0x9bf')],[_0x54e03e('0x2670')],[_0x54e03e('0x340')]),_0x3bffcf[_0x54e03e('0xc3c')]=_0x86640f()[_0x54e03e('0x2189')](_0x3bffcf['paginatedInteractions'],_0x20b4a0)[_0x54e03e('0xb3d')](0x0,_0x3bffcf[_0x54e03e('0x192a')][_0x54e03e('0x1f4a')]);}function _0x2b76c6(_0xf26ca0){var _0x4cf657=_0x46f10d;_0x3bffcf['smsQueuesTotal']=_0xf26ca0['count']?_0xf26ca0[_0x4cf657('0x205f')]:0x0,_0x3bffcf[_0x4cf657('0x6ce')]=_0xf26ca0?_0x86640f()['keyBy'](_0xf26ca0[_0x4cf657('0x1b33')]?_0xf26ca0[_0x4cf657('0x1b33')]:[],'id'):{},_0x2c2a59();}function _0x16dde6(){var _0x24a88e=_0x46f10d;_0x3bffcf[_0x24a88e('0x77')][_0x24a88e('0x15a5')]=(_0x3bffcf[_0x24a88e('0x77')][_0x24a88e('0x2376')]-0x1)*_0x3bffcf[_0x24a88e('0x77')][_0x24a88e('0x1f4a')],_0x3bffcf['promise']=_0x340f37['user']['getQueues'](_0x3bffcf['query'],_0x2b76c6)[_0x24a88e('0x1376')];}var _0x13fd87=!![],_0x577773=0x1;_0x1040f7[_0x46f10d('0x10e8')](_0x46f10d('0x10ff'),function(_0x363855,_0x5abe9a){var _0x41d9a1=_0x46f10d;_0x13fd87?_0x3541ae(function(){_0x13fd87=![];}):(!_0x5abe9a&&(_0x577773=_0x3bffcf['query'][_0x41d9a1('0x2376')]),_0x363855!==_0x5abe9a&&(_0x3bffcf[_0x41d9a1('0x77')][_0x41d9a1('0x2376')]=0x1),!_0x363855&&(_0x3bffcf[_0x41d9a1('0x77')][_0x41d9a1('0x2376')]=_0x577773),_0x3bffcf[_0x41d9a1('0x12fb')]());});function _0x4f7006(_0x176e6e){var _0x3d5bdb=_0x46f10d;return _0x86640f()[_0x3d5bdb('0x337')](_0x176e6e);}function _0x2c2a59(){var _0x5b42e5=_0x46f10d;_0x86640f()[_0x5b42e5('0xd54')](_0x3bffcf['smsQueues'],function(_0x4538fc,_0x4fc752){var _0xf5f778=_0x5b42e5;_0x3bffcf['rpcSmsQueues'][_0x4fc752]&&(_0x3bffcf[_0xf5f778('0x6ce')][_0x4fc752][_0xf5f778('0x8b6')]=_0x3bffcf[_0xf5f778('0x1472')][_0x4fc752][_0xf5f778('0x8b6')]||0x0);});}function _0x1aff2a(_0x48fb50){var _0x2652fa=_0x46f10d;_0x3bffcf[_0x2652fa('0x6ce')][_0x48fb50['id']]&&(_0x3bffcf[_0x2652fa('0x1472')][_0x48fb50['id']]&&(_0x86640f()[_0x2652fa('0xd0e')](_0x3bffcf[_0x2652fa('0x1472')][_0x48fb50['id']],_0x86640f()[_0x2652fa('0xc50')](_0x48fb50,_0x30f6f8)),_0x86640f()[_0x2652fa('0xd0e')](_0x3bffcf[_0x2652fa('0x6ce')][_0x48fb50['id']],_0x86640f()[_0x2652fa('0xc50')](_0x48fb50,_0x30f6f8))));}function _0x5a4ac4(_0x414088){var _0x33b14c=_0x46f10d;!_0x86640f()[_0x33b14c('0x1c7')](_0x414088)&&(_0x3bffcf[_0x33b14c('0x1472')][_0x414088['id']]=_0x86640f()[_0x33b14c('0xc50')](_0x414088,_0x30f6f8));}function _0x4a3dc5(_0x2e2eb5){var _0x312aba=_0x46f10d;!_0x86640f()[_0x312aba('0x1c7')](_0x2e2eb5)&&(_0x3bffcf[_0x312aba('0x1472')][_0x2e2eb5['id']]&&_0x86640f()['merge'](_0x3bffcf[_0x312aba('0x1472')][_0x2e2eb5['id']],_0x86640f()['pick'](_0x2e2eb5,_0x30f6f8)),_0x3bffcf[_0x312aba('0x6ce')][_0x2e2eb5['id']]&&_0x86640f()[_0x312aba('0xd0e')](_0x3bffcf[_0x312aba('0x6ce')][_0x2e2eb5['id']],_0x86640f()[_0x312aba('0xc50')](_0x2e2eb5,_0x30f6f8)));}function _0x633fe3(_0x132383){var _0xc488a4=_0x46f10d;!_0x86640f()[_0xc488a4('0x1c7')](_0x132383)&&(delete _0x3bffcf[_0xc488a4('0x1472')][_0x132383['id']],delete _0x3bffcf[_0xc488a4('0x6ce')][_0x132383['id']]);}function _0x320050(_0x2076e8){var _0x233536=_0x46f10d;_0x86640f()[_0x233536('0x27fc')](_0x2076e8['UserId'])===_0x5e1b7b[_0x233536('0x15ed')]()['id']&&_0x3bffcf[_0x233536('0x12fb')]();}function _0x1fe3ff(_0x1b0d64){var _0x10858a=_0x46f10d;_0x86640f()[_0x10858a('0x27fc')](_0x1b0d64[_0x10858a('0x1dc6')])===_0x5e1b7b['getCurrentUser']()['id']&&_0x3bffcf['getSmsQueues']();}function _0x5f4358(_0x15e56d){var _0x4297b2=_0x46f10d;_0x3bffcf['smsQueues'][_0x15e56d[_0x4297b2('0x20bf')]]&&(_0x3bffcf[_0x4297b2('0x9bf')][_0x15e56d['id']]=_0x15e56d,_0x1870b1());}function _0x36c974(_0xf2a2c7){var _0x33bc02=_0x46f10d;delete _0x3bffcf[_0x33bc02('0x9bf')][_0xf2a2c7['id']],_0x534303&&_0x3bffcf[_0x33bc02('0x689')]['push'](_0xf2a2c7['id']),_0x1870b1();}function _0x3b8960(_0x37b0f4){var _0x784e1e=_0x46f10d;switch(_0x37b0f4){case _0x784e1e('0x1f65'):return'green-A700-bg';case _0x784e1e('0x1c8b'):return _0x784e1e('0x1d5b');case _0x784e1e('0x3d0'):return _0x784e1e('0x5d6');case _0x784e1e('0x1ad4'):return _0x784e1e('0x11ec');case'openchannel':return _0x784e1e('0x141d');case _0x784e1e('0x93f'):return _0x784e1e('0x235a');default:return _0x784e1e('0x9ed');}}_0x1040f7[_0x46f10d('0x1723')](_0x46f10d('0x1210'),function(){var _0x591de9=_0x46f10d;_0x3f833d['removeAllListeners'](_0x591de9('0x2790')),_0x3f833d[_0x591de9('0x16cc')]('smsQueue:save'),_0x3f833d['removeAllListeners'](_0x591de9('0xadc')),_0x3f833d[_0x591de9('0x16cc')](_0x591de9('0x15b5')),_0x3f833d[_0x591de9('0x16cc')](_0x591de9('0x1c17')),_0x3f833d[_0x591de9('0x16cc')](_0x591de9('0x27fe')),_0x3f833d[_0x591de9('0x16cc')](_0x591de9('0x1a43')),_0x3f833d[_0x591de9('0x16cc')](_0x591de9('0x14f6'));});}const _0x423b9d=_0x256ae6;_0x4e7822[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$timeout',_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x24e1'),_0x3877e3('0x13c1'),'api',_0x3877e3('0x15bc'),_0x3877e3('0x25d8')];function _0x4e7822(_0x46e128,_0x30d23e,_0x103072,_0x302cbe,_0x2dbf4b,_0x1f5033,_0x3b1f4d,_0x4e42bc,_0x3aa524){var _0x36b3be=_0x3877e3,_0x3493ae=this,_0x39d7e5=[_0x36b3be('0x7fa'),'waiting',_0x36b3be('0x1c4b'),_0x36b3be('0x13dc')];_0x3493ae[_0x36b3be('0x2b6')]={},_0x3493ae[_0x36b3be('0x1f29')]=0x0,_0x3493ae['rpcVoiceQueues']={},_0x3493ae[_0x36b3be('0x80')]={},_0x3493ae[_0x36b3be('0x3e3')]={},_0x3493ae[_0x36b3be('0x1bec')]={},_0x3493ae['deleteVoiceQueuesChannels']=[],_0x3493ae['load']=!![],_0x3493ae[_0x36b3be('0x77')]={'id':_0x4e42bc['getCurrentUser']()['id'],'fields':_0x36b3be('0x7fb'),'channel':'voice','type':'inbound','limit':0xa,'page':0x1},_0x3493ae[_0x36b3be('0x192a')]={'limit':0xa,'page':0x1},_0x3493ae[_0x36b3be('0xdb1')]=_0x46ea7e,_0x3493ae[_0x36b3be('0x80')]=_0x27b2e4,_0x3493ae[_0x36b3be('0xd4e')]=_0x390831,_0x3493ae[_0x36b3be('0xe02')]=_0x3662e9,_0x3493ae[_0x36b3be('0x26c4')]=_0x22150f,_0x3493ae[_0x36b3be('0x15e3')]=_0x3adfcb,_0x3493ae[_0x36b3be('0x518')]=_0x41dadc,_0x3493ae[_0x36b3be('0x1685')]=_0x57b28e,_0x3493ae[_0x36b3be('0x2382')]=_0x15bbc4,_0x3aa524[_0x36b3be('0x1487')]('voice_queue:save',_0x3493ae['onSaveQueue']),_0x3aa524[_0x36b3be('0x1487')]('voice_queue_channel:save',_0x3493ae[_0x36b3be('0x26c4')]),_0x3aa524[_0x36b3be('0x1487')](_0x36b3be('0x1595'),_0x3493ae[_0x36b3be('0x15e3')]),_0x3aa524[_0x36b3be('0x1487')]('userVoiceQueue:remove',_0x3493ae[_0x36b3be('0x15e3')]),_0x3aa524['onWithoutApply']('voiceQueue:save',_0x3493ae[_0x36b3be('0x518')]),_0x3aa524[_0x36b3be('0x1487')](_0x36b3be('0x1ac2'),_0x3493ae[_0x36b3be('0x2382')]),_0x3aa524[_0x36b3be('0x1487')]('voiceQueue:update',_0x3493ae['onUpdateVoiceQueue']),_0x3b1f4d[_0x36b3be('0x1775')][_0x36b3be('0x71c')](_0x3493ae['query'])[_0x36b3be('0x1376')][_0x36b3be('0x21ad')](function(_0x59bc40){var _0x2cc963=_0x36b3be;return _0x3493ae[_0x2cc963('0x1040')]=_0x59bc40,_0x3b1f4d['rpc']['getVoiceQueues']()[_0x2cc963('0x1376')];})[_0x36b3be('0x21ad')](function(_0x481b41){var _0x3d7745=_0x36b3be,_0x278e42=_0x481b41['rows'],_0x5799dd=_0x86640f()[_0x3d7745('0xcde')](_0x278e42,'id');for(var _0x344468=0x0;_0x344468<_0x3493ae[_0x3d7745('0x1040')][_0x3d7745('0x205f')];_0x344468++){var _0x5110f4=_0x3493ae[_0x3d7745('0x1040')][_0x3d7745('0x1b33')][_0x344468];_0x3493ae[_0x3d7745('0xb98')][_0x5110f4['id']]=_0x5799dd[_0x5110f4['id']];}return _0x3b1f4d[_0x3d7745('0x9ac')][_0x3d7745('0x37c')]()[_0x3d7745('0x1376')];})['then'](function(_0x3088ba){var _0x1f0f02=_0x36b3be;_0x3493ae[_0x1f0f02('0x3e3')]=_0x3088ba?_0x86640f()[_0x1f0f02('0xcde')](_0x3088ba[_0x1f0f02('0x1b33')]?_0x86640f()[_0x1f0f02('0x1503')](_0x3088ba[_0x1f0f02('0x1b33')],function(_0x4c6bd){var _0x1758e0=_0x1f0f02;if(_0x4c6bd[_0x1758e0('0x7fa')]===_0x1758e0('0x923')&&!_0x4c6bd[_0x1758e0('0x14a2')]&&_0x86640f()[_0x1758e0('0x1d2e')](_0x3493ae['myQueues'][_0x1758e0('0x1b33')],{'name':_0x4c6bd[_0x1758e0('0xbdd')]}))return!![];return![];}):[],_0x1f0f02('0x968')):{};})[_0x36b3be('0x1c1d')](function(_0x3aed5e){var _0x2d60a9=_0x36b3be;console[_0x2d60a9('0x2092')](_0x3aed5e);})['finally'](function(){var _0x44289b=_0x36b3be;_0x86640f()['merge'](_0x3493ae[_0x44289b('0x3e3')],_0x3493ae[_0x44289b('0x1bec')]);for(var _0x4c035c=0x0;_0x4c035c<_0x3493ae[_0x44289b('0xcd6')][_0x44289b('0x577')];_0x4c035c+=0x1){delete _0x3493ae[_0x44289b('0x3e3')][_0x3493ae[_0x44289b('0xcd6')][_0x4c035c]];}_0x3493ae[_0x44289b('0x20ad')]=![],_0x3493ae[_0x44289b('0x1bec')]={},_0x3493ae[_0x44289b('0xcd6')]=[],_0x3493ae['getVoiceQueues']();});function _0x46ea7e(_0x5dd09f){var _0x371368=_0x36b3be;_0x3493ae[_0x371368('0x1f29')]=_0x5dd09f[_0x371368('0x205f')]?_0x5dd09f[_0x371368('0x205f')]:0x0,_0x3493ae[_0x371368('0x2b6')]=_0x5dd09f?_0x86640f()[_0x371368('0xcde')](_0x5dd09f[_0x371368('0x1b33')]?_0x5dd09f['rows']:[],'id'):{},_0x27c48c();}function _0x27b2e4(){var _0x1d7756=_0x36b3be;_0x3493ae[_0x1d7756('0x77')][_0x1d7756('0x15a5')]=(_0x3493ae[_0x1d7756('0x77')][_0x1d7756('0x2376')]-0x1)*_0x3493ae['query'][_0x1d7756('0x1f4a')],_0x3493ae[_0x1d7756('0x71b')]=_0x3b1f4d[_0x1d7756('0x1775')][_0x1d7756('0x71c')](_0x3493ae[_0x1d7756('0x77')],_0x46ea7e)[_0x1d7756('0x1376')];}var _0x2111d6=!![],_0x32c1f0=0x1;_0x46e128['$watch'](_0x36b3be('0x10ff'),function(_0x311ad9,_0x377a86){var _0xcd7978=_0x36b3be;_0x2111d6?_0x30d23e(function(){_0x2111d6=![];}):(!_0x377a86&&(_0x32c1f0=_0x3493ae[_0xcd7978('0x77')]['page']),_0x311ad9!==_0x377a86&&(_0x3493ae[_0xcd7978('0x77')]['page']=0x1),!_0x311ad9&&(_0x3493ae['query']['page']=_0x32c1f0),_0x3493ae['getVoiceQueues']());});function _0x390831(_0x683aae){var _0x37b9b5=_0x36b3be;return _0x86640f()[_0x37b9b5('0x337')](_0x683aae);}function _0x27c48c(){var _0x531466=_0x36b3be;_0x86640f()[_0x531466('0xd54')](_0x3493ae[_0x531466('0x2b6')],function(_0x2e9e82,_0x1accc6){var _0x17a76f=_0x531466;_0x3493ae[_0x17a76f('0xb98')][_0x1accc6]&&(_0x3493ae[_0x17a76f('0x2b6')][_0x1accc6]['waiting']=_0x3493ae[_0x17a76f('0xb98')][_0x1accc6][_0x17a76f('0x8b6')]||0x0);});}function _0x3662e9(_0xb91958){var _0x486d1f=_0x36b3be;_0x3493ae[_0x486d1f('0x2b6')][_0xb91958['id']]&&(_0x3493ae[_0x486d1f('0xb98')][_0xb91958['id']]&&(_0x3493ae[_0x486d1f('0xb98')][_0xb91958['id']]=_0xb91958,_0x86640f()[_0x486d1f('0xd0e')](_0x3493ae['voiceQueues'][_0xb91958['id']],_0x86640f()['pick'](_0xb91958,_0x39d7e5))));}function _0x22150f(_0x51ed86){var _0x308baf=_0x36b3be;_0x51ed86['type']===_0x308baf('0x923')&&(_0x51ed86['queuecallerleaveAt']?(delete _0x3493ae[_0x308baf('0x3e3')][_0x51ed86['uniqueid']],_0x3493ae['load']&&_0x3493ae[_0x308baf('0xcd6')][_0x308baf('0x206c')](_0x51ed86[_0x308baf('0x968')])):(_0x3493ae[_0x308baf('0x3e3')][_0x51ed86[_0x308baf('0x968')]]=_0x51ed86,_0x3493ae[_0x308baf('0x20ad')]&&(_0x3493ae['addVoiceQueuesChannels'][_0x51ed86[_0x308baf('0x968')]]=_0x51ed86)));}function _0x41dadc(_0x375e91){var _0x524535=_0x36b3be;!_0x86640f()['isNil'](_0x375e91)&&(_0x3493ae['rpcVoiceQueues'][_0x375e91['id']]=_0x86640f()[_0x524535('0xc50')](_0x375e91,_0x39d7e5));}function _0x57b28e(_0x737bdc){var _0x46715e=_0x36b3be;!_0x86640f()[_0x46715e('0x1c7')](_0x737bdc)&&(_0x3493ae[_0x46715e('0xb98')][_0x737bdc['id']]&&_0x86640f()[_0x46715e('0xd0e')](_0x3493ae[_0x46715e('0xb98')][_0x737bdc['id']],_0x86640f()[_0x46715e('0xc50')](_0x737bdc,_0x39d7e5)),_0x3493ae[_0x46715e('0x2b6')][_0x737bdc['id']]&&_0x86640f()[_0x46715e('0xd0e')](_0x3493ae['voiceQueues'][_0x737bdc['id']],_0x86640f()[_0x46715e('0xc50')](_0x737bdc,_0x39d7e5)));}function _0x15bbc4(_0x14a1bc){var _0x14ee84=_0x36b3be;!_0x86640f()[_0x14ee84('0x1c7')](_0x14a1bc)&&(delete _0x3493ae['rpcVoiceQueues'][_0x14a1bc['id']],delete _0x3493ae['voiceQueues'][_0x14a1bc['id']]);}function _0x3adfcb(_0x16c561){var _0x5d46c8=_0x36b3be;_0x86640f()[_0x5d46c8('0x27fc')](_0x16c561[_0x5d46c8('0x1dc6')])===_0x4e42bc[_0x5d46c8('0x15ed')]()['id']&&_0x3493ae['getVoiceQueues']();}_0x46e128['$on'](_0x36b3be('0x1210'),function(){var _0x32260a=_0x36b3be;_0x3aa524[_0x32260a('0x16cc')](_0x32260a('0x83e')),_0x3aa524[_0x32260a('0x16cc')](_0x32260a('0x17b3')),_0x3aa524[_0x32260a('0x16cc')](_0x32260a('0x1595')),_0x3aa524[_0x32260a('0x16cc')](_0x32260a('0x3b0')),_0x3aa524[_0x32260a('0x16cc')](_0x32260a('0xcae')),_0x3aa524[_0x32260a('0x16cc')](_0x32260a('0x1aba')),_0x3aa524[_0x32260a('0x16cc')](_0x32260a('0x1ac2'));});}const _0x3ce5fb=_0x4e7822;_0x222a9a[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x24e1'),_0x3877e3('0x13c1'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'socket'];function _0x222a9a(_0x3c6d3b,_0x313cdd,_0x5a38b1,_0x31e916,_0x1c8f70,_0x38e693,_0x441d36,_0x452231,_0x46bbdf){var _0x34b666=_0x3877e3,_0x56637c=this,_0x5d3435=['id',_0x34b666('0x19fe'),_0x34b666('0x92f'),'waiting'],_0x2d68f5=!![];_0x56637c[_0x34b666('0x203f')]={},_0x56637c[_0x34b666('0x1bc')]=0x0,_0x56637c[_0x34b666('0x7d8')]={},_0x56637c[_0x34b666('0x1271')]=[],_0x56637c[_0x34b666('0x402')]=[],_0x56637c[_0x34b666('0xb83')]={},_0x56637c[_0x34b666('0x77')]={'id':_0x452231[_0x34b666('0x15ed')]()['id'],'channel':'whatsapp','fields':'id,name,mapAgentsId,waiting','limit':0xa,'page':0x1},_0x56637c[_0x34b666('0x192a')]={'limit':0xa,'page':0x1},_0x56637c[_0x34b666('0xdb1')]=_0x407eaf,_0x56637c[_0x34b666('0xf9b')]=_0x7d4187,_0x56637c[_0x34b666('0xd4e')]=_0x3d2c51,_0x56637c['getColorByChannel']=_0x3c290e,_0x56637c[_0x34b666('0x147d')]=_0x149820,_0x56637c[_0x34b666('0xe02')]=_0x32cedb,_0x56637c[_0x34b666('0x1c0b')]=_0x2fad63,_0x56637c[_0x34b666('0x274d')]=_0xbeda4f,_0x56637c['onRemoveWhatsappQueue']=_0x45997e,_0x56637c[_0x34b666('0x2737')]=_0x23d8b4,_0x56637c[_0x34b666('0xe25')]=_0x4d5e85,_0x56637c['onSaveWhatsappQueueChannel']=_0x203ea7,_0x56637c[_0x34b666('0x1d64')]=_0x21a463,_0x46bbdf[_0x34b666('0x1487')](_0x34b666('0xa3a'),_0x56637c[_0x34b666('0xe02')]),_0x46bbdf['onWithoutApply'](_0x34b666('0x391'),_0x56637c[_0x34b666('0x1c0b')]),_0x46bbdf[_0x34b666('0x1487')](_0x34b666('0x1c19'),_0x56637c['onUpdateWhatsappQueue']),_0x46bbdf[_0x34b666('0x1487')](_0x34b666('0xe8f'),_0x56637c[_0x34b666('0xf71')]),_0x46bbdf[_0x34b666('0x1487')](_0x34b666('0xa3'),_0x56637c[_0x34b666('0x2737')]),_0x46bbdf['onWithoutApply']('userWhatsappQueue:remove',_0x56637c[_0x34b666('0xe25')]),_0x46bbdf[_0x34b666('0x1487')]('whatsapp_queue_waiting_interaction:save',_0x56637c['onSaveWhatsappQueueChannel']),_0x46bbdf['onWithoutApply']('whatsapp_queue_waiting_interaction:remove',_0x56637c[_0x34b666('0x1d64')]),_0x441d36['rpc'][_0x34b666('0xf9b')]()[_0x34b666('0x1376')]['then'](function(_0x3690ad){var _0x348b2b=_0x34b666;_0x56637c['rpcWhatsappQueues']=_0x3690ad?_0x86640f()[_0x348b2b('0xcde')](_0x3690ad[_0x348b2b('0x1b33')]?_0x3690ad[_0x348b2b('0x1b33')]:[],'id'):{};})['then'](function(){var _0x4e87e9=_0x34b666;return _0x441d36[_0x4e87e9('0x1775')][_0x4e87e9('0x71c')]({'id':_0x452231['getCurrentUser']()['id'],'channel':_0x4e87e9('0x1ad4')})[_0x4e87e9('0x1376')];})[_0x34b666('0x21ad')](function(_0x3bf621){var _0x214718=_0x34b666;return _0x56637c[_0x214718('0x1040')]=_0x3bf621[_0x214718('0x1b33')],_0x441d36[_0x214718('0x9ac')][_0x214718('0x1316')]()['$promise'];})[_0x34b666('0x21ad')](function(_0x49c1ca){var _0x531575=_0x34b666,_0x528495=_0x86640f()['filter'](_0x49c1ca[_0x531575('0x1b33')],function(_0x53c239){var _0x57eefd=_0x531575;return _0x86640f()[_0x57eefd('0xb34')](_0x56637c[_0x57eefd('0x1040')],{'id':_0x53c239['queue_id']});});_0x49c1ca[_0x531575('0x1b33')]=_0x528495,_0x49c1ca['count']=_0x528495[_0x531575('0x577')],_0x86640f()[_0x531575('0xd0e')](_0x56637c[_0x531575('0xb83')],_0x49c1ca?_0x86640f()[_0x531575('0xcde')](_0x49c1ca[_0x531575('0x1b33')]?_0x49c1ca[_0x531575('0x1b33')]:[],'id'):{});})[_0x34b666('0x1c1d')](function(_0x124e6f){console['error'](_0x124e6f);})[_0x34b666('0x13e')](function(){var _0x39f922=_0x34b666;for(var _0x4d03d7=0x0;_0x4d03d7<_0x56637c[_0x39f922('0x402')][_0x39f922('0x577')];_0x4d03d7+=0x1){delete _0x56637c[_0x39f922('0xb83')][_0x56637c[_0x39f922('0x402')][_0x4d03d7]];}_0x2d68f5=![],_0x56637c[_0x39f922('0x402')]=[],_0x7d4187(),_0x149820();});function _0x149820(){var _0x14c27d=_0x34b666,_0xfab3e8=(_0x56637c[_0x14c27d('0x192a')][_0x14c27d('0x2376')]-0x1)*_0x56637c['queryChannels'][_0x14c27d('0x1f4a')];_0x56637c[_0x14c27d('0x1271')]=_0x86640f()[_0x14c27d('0x11df')](_0x56637c[_0x14c27d('0xb83')],[_0x14c27d('0x2670')],[_0x14c27d('0x340')]),_0x56637c[_0x14c27d('0xc3c')]=_0x86640f()[_0x14c27d('0x2189')](_0x56637c['paginatedInteractions'],_0xfab3e8)[_0x14c27d('0xb3d')](0x0,_0x56637c[_0x14c27d('0x192a')][_0x14c27d('0x1f4a')]);}function _0x407eaf(_0x87fd83){var _0x52a7b0=_0x34b666;_0x56637c[_0x52a7b0('0x1bc')]=_0x87fd83['count']?_0x87fd83['count']:0x0,_0x56637c[_0x52a7b0('0x203f')]=_0x87fd83?_0x86640f()[_0x52a7b0('0xcde')](_0x87fd83[_0x52a7b0('0x1b33')]?_0x87fd83[_0x52a7b0('0x1b33')]:[],'id'):{},_0x385fb7();}function _0x7d4187(){var _0x541a2c=_0x34b666;_0x56637c['query'][_0x541a2c('0x15a5')]=(_0x56637c[_0x541a2c('0x77')][_0x541a2c('0x2376')]-0x1)*_0x56637c[_0x541a2c('0x77')][_0x541a2c('0x1f4a')],_0x56637c['promise']=_0x441d36[_0x541a2c('0x1775')]['getQueues'](_0x56637c[_0x541a2c('0x77')],_0x407eaf)[_0x541a2c('0x1376')];}var _0x1c1f6f=!![],_0x12a24a=0x1;_0x3c6d3b['$watch'](_0x34b666('0x10ff'),function(_0x37319d,_0x120624){var _0x3ea603=_0x34b666;_0x1c1f6f?_0x313cdd(function(){_0x1c1f6f=![];}):(!_0x120624&&(_0x12a24a=_0x56637c[_0x3ea603('0x77')]['page']),_0x37319d!==_0x120624&&(_0x56637c['query'][_0x3ea603('0x2376')]=0x1),!_0x37319d&&(_0x56637c[_0x3ea603('0x77')]['page']=_0x12a24a),_0x56637c[_0x3ea603('0xf9b')]());});function _0x3d2c51(_0x5db000){var _0x48abea=_0x34b666;return _0x86640f()[_0x48abea('0x337')](_0x5db000);}function _0x385fb7(){var _0x1f6c71=_0x34b666;_0x86640f()[_0x1f6c71('0xd54')](_0x56637c['whatsappQueues'],function(_0x4ad4b8,_0x1a0b2a){var _0x47dcef=_0x1f6c71;_0x56637c[_0x47dcef('0x7d8')][_0x1a0b2a]&&(_0x56637c[_0x47dcef('0x203f')][_0x1a0b2a][_0x47dcef('0x8b6')]=_0x56637c[_0x47dcef('0x7d8')][_0x1a0b2a][_0x47dcef('0x8b6')]||0x0);});}function _0x32cedb(_0x55ea65){var _0x1d9f79=_0x34b666;_0x56637c[_0x1d9f79('0x203f')][_0x55ea65['id']]&&(_0x56637c[_0x1d9f79('0x7d8')][_0x55ea65['id']]&&(_0x86640f()['merge'](_0x56637c[_0x1d9f79('0x7d8')][_0x55ea65['id']],_0x86640f()['pick'](_0x55ea65,_0x5d3435)),_0x86640f()['merge'](_0x56637c[_0x1d9f79('0x203f')][_0x55ea65['id']],_0x86640f()[_0x1d9f79('0xc50')](_0x55ea65,_0x5d3435))));}function _0x2fad63(_0x52d71e){var _0x101c9d=_0x34b666;!_0x86640f()[_0x101c9d('0x1c7')](_0x52d71e)&&(_0x56637c[_0x101c9d('0x7d8')][_0x52d71e['id']]=_0x86640f()[_0x101c9d('0xc50')](_0x52d71e,_0x5d3435));}function _0xbeda4f(_0x1cb165){var _0x1e9405=_0x34b666;!_0x86640f()[_0x1e9405('0x1c7')](_0x1cb165)&&(_0x56637c[_0x1e9405('0x7d8')][_0x1cb165['id']]&&_0x86640f()[_0x1e9405('0xd0e')](_0x56637c[_0x1e9405('0x7d8')][_0x1cb165['id']],_0x86640f()['pick'](_0x1cb165,_0x5d3435)),_0x56637c[_0x1e9405('0x203f')][_0x1cb165['id']]&&_0x86640f()['merge'](_0x56637c[_0x1e9405('0x203f')][_0x1cb165['id']],_0x86640f()['pick'](_0x1cb165,_0x5d3435)));}function _0x45997e(_0x543475){var _0x59b7f6=_0x34b666;!_0x86640f()['isNil'](_0x543475)&&(delete _0x56637c[_0x59b7f6('0x7d8')][_0x543475['id']],delete _0x56637c[_0x59b7f6('0x203f')][_0x543475['id']]);}function _0x23d8b4(_0x21a2a0){var _0x33c9e3=_0x34b666;_0x86640f()[_0x33c9e3('0x27fc')](_0x21a2a0[_0x33c9e3('0x1dc6')])===_0x452231[_0x33c9e3('0x15ed')]()['id']&&_0x56637c['getWhatsappQueues']();}function _0x4d5e85(_0x83e7b2){var _0x3ab52b=_0x34b666;_0x86640f()[_0x3ab52b('0x27fc')](_0x83e7b2[_0x3ab52b('0x1dc6')])===_0x452231[_0x3ab52b('0x15ed')]()['id']&&_0x56637c[_0x3ab52b('0xf9b')]();}function _0x203ea7(_0x41e961){var _0x409615=_0x34b666;_0x56637c['whatsappQueues'][_0x41e961[_0x409615('0x20bf')]]&&(_0x56637c[_0x409615('0xb83')][_0x41e961['id']]=_0x41e961,_0x149820());}function _0x21a463(_0x57709a){var _0x591741=_0x34b666;delete _0x56637c[_0x591741('0xb83')][_0x57709a['id']],_0x2d68f5&&_0x56637c['deleteWhatsappQueuesWaitingInteractions']['push'](_0x57709a['id']),_0x149820();}function _0x3c290e(_0x4098af){var _0x38b211=_0x34b666;switch(_0x4098af){case _0x38b211('0x1f65'):return _0x38b211('0x1372');case _0x38b211('0x1c8b'):return _0x38b211('0x1d5b');case _0x38b211('0x3d0'):return _0x38b211('0x5d6');case _0x38b211('0x1ad4'):return _0x38b211('0x11ec');case _0x38b211('0xac9'):return _0x38b211('0x141d');case _0x38b211('0x93f'):return _0x38b211('0x235a');default:return'white-bg';}}_0x3c6d3b[_0x34b666('0x1723')]('$destroy',function(){var _0x157755=_0x34b666;_0x46bbdf[_0x157755('0x16cc')](_0x157755('0xa3a')),_0x46bbdf[_0x157755('0x16cc')](_0x157755('0x391')),_0x46bbdf[_0x157755('0x16cc')]('whatsappQueue:update'),_0x46bbdf[_0x157755('0x16cc')](_0x157755('0xe8f')),_0x46bbdf[_0x157755('0x16cc')](_0x157755('0xa3')),_0x46bbdf[_0x157755('0x16cc')](_0x157755('0x442')),_0x46bbdf[_0x157755('0x16cc')](_0x157755('0xd21')),_0x46bbdf[_0x157755('0x16cc')]('whatsapp_queue_waiting_interaction:remove');});}const _0x407a88=_0x222a9a;_0x47902c['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x24e1'),_0x3877e3('0x13c1'),'api',_0x3877e3('0x15bc'),_0x3877e3('0x25d8'),_0x3877e3('0x1908'),_0x3877e3('0x2113')];function _0x47902c(_0x5071db,_0x1e84fd,_0x214a7a,_0x1d0f66,_0x3ff149,_0x363d07,_0x41465d,_0x105d25,_0x17c12a,_0x4464b7,_0x46dd5e){var _0x581cd0=_0x3877e3,_0x2d29b9=this;_0x2d29b9['user']=_0x105d25[_0x581cd0('0x15ed')](),_0x2d29b9[_0x581cd0('0x2ff')]={},_0x2d29b9[_0x581cd0('0x21e')]={},_0x2d29b9[_0x581cd0('0x1889')]={'count':0x0,'rows':[]},_0x2d29b9[_0x581cd0('0x702')]={'count':0x0,'rows':[]},_0x2d29b9['query']={'includeAll':!![],'sort':_0x581cd0('0x33'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x2d29b9['advancedSearch']={'fields':[{'name':'Id','column':'id','type':_0x581cd0('0xed8')},{'name':_0x581cd0('0x1d10'),'column':'Contact','type':_0x581cd0('0x175c'),'options':{'searchFields':['firstName',_0x581cd0('0x6d'),_0x581cd0('0x2822')],'route':{'model':_0x581cd0('0x25dc'),'action':'get','params':{'fields':_0x581cd0('0x2704'),'Contact':_0x581cd0('0x169e'),'nolimit':!![]}},'extraOperators':[_0x581cd0('0xb58')],'excludedOperators':[_0x581cd0('0x3fe')]}},{'name':_0x581cd0('0x1108'),'column':'body','type':'text','options':{'excludedOperators':[_0x581cd0('0x940'),'$ne']}},{'name':'Status','column':_0x581cd0('0x14ba'),'type':_0x581cd0('0x2844'),'values':[{'id':0x0,'translate':_0x581cd0('0x19e2')},{'id':0x1,'translate':_0x581cd0('0x11d2')}],'options':{'excludedOperators':[_0x581cd0('0x3fe')]}},{'name':_0x581cd0('0x1a44'),'column':_0x581cd0('0x6e4'),'type':'autocomplete','options':{'table':'i','route':{'model':_0x581cd0('0x1775'),'action':_0x581cd0('0x595'),'params':{'role':_0x581cd0('0x2402'),'fields':_0x581cd0('0x2326'),'nolimit':!![]}},'searchFields':[_0x581cd0('0x20f5'),_0x581cd0('0x19fe')],'extraOperators':[_0x581cd0('0xb58')],'excludedOperators':[_0x581cd0('0x3fe')]}},{'name':'Account','column':_0x581cd0('0x1de9'),'type':'multiselect','options':{'route':{'model':'user','action':_0x581cd0('0x1718'),'params':{'id':_0x2d29b9[_0x581cd0('0x1775')]['id'],'nolimit':!![]}}}},{'name':'Tags','column':'Tag','type':'multiselect','options':{'route':{'model':_0x581cd0('0x907'),'action':_0x581cd0('0x595'),'params':{'nolimit':!![]}},'excludedOperators':[_0x581cd0('0x23')]}},{'name':_0x581cd0('0x18a1'),'column':_0x581cd0('0x23ae'),'type':'date','options':{'excludedOperators':[_0x581cd0('0x3fe')]}},{'name':_0x581cd0('0x1715'),'column':_0x581cd0('0x6c5'),'type':_0x581cd0('0x2844'),'values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':_0x581cd0('0x1799')}],'options':{'excludedOperators':['$ne']}}]},_0x2d29b9[_0x581cd0('0x1419')]=_0x581cd0('0x1f69'),_0x2d29b9[_0x581cd0('0x1081')]=_0x37213c,_0x2d29b9[_0x581cd0('0xdb1')]=_0xc09009,_0x2d29b9[_0x581cd0('0x198b')]=_0x3eafce,_0x2d29b9[_0x581cd0('0x16fa')]=_0x3534f0,_0x2d29b9['downloadFaxInteraction']=_0x4c36ed,_0x2d29b9[_0x581cd0('0x125c')]=_0x28d662,_0x2d29b9[_0x581cd0('0x1e9d')]=_0x2470aa,_0x2d29b9[_0x581cd0('0x12b5')]=_0xba409f,_0x2d29b9[_0x581cd0('0x21e0')]=_0x4f871a,_0x2d29b9[_0x581cd0('0x1cd7')]=_0x579604,_0x2d29b9[_0x581cd0('0x21f9')]=_0x1e0e49,_0x2d29b9[_0x581cd0('0x1bf6')]=_0x520e6e,_0x2d29b9['openAdvancedSearch']=_0x296886;function _0x37213c(_0x517e15,_0x43f01e){var _0x549741=_0x581cd0;return _0x2d29b9[_0x549741('0x2ff')]=_0x517e15,_0x2d29b9[_0x549741('0x21e')]=_0x43f01e,_0x41465d[_0x549741('0x1775')][_0x549741('0x595')+_0x86640f()['upperFirst'](_0x549741('0x1695'))]({'id':_0x2d29b9['user']['id'],'nolimit':!![]})[_0x549741('0x1376')][_0x549741('0x21ad')](function(_0x165071){var _0x5501d4=_0x549741;return _0x2d29b9[_0x5501d4('0x1695')]=_0x165071||{'count':0x0,'rows':[]},_0x41465d[_0x5501d4('0x907')][_0x5501d4('0x595')]()['$promise'];})['then'](function(_0x380491){var _0x695507=_0x549741;_0x2d29b9[_0x695507('0x1889')]=_0x380491||{'count':0x0,'rows':[]};})['then'](function(){var _0x1c1c62=_0x549741;_0x2d29b9[_0x1c1c62('0x2255')]=_0x4a2711();})[_0x549741('0x1c1d')](function(_0xb31e1d){var _0x4a3dc6=_0x549741;console[_0x4a3dc6('0x2092')](_0xb31e1d);})[_0x549741('0x13e')](function(){var _0x2783a8=_0x549741,_0x47a3b5=_0x3ff149['localStorage']['getItem'](_0x2783a8('0x272e')+_0x2d29b9['user']['id']);if(_0x47a3b5)try{_0x47a3b5=JSON[_0x2783a8('0x399')](_0x47a3b5);if(_0x47a3b5[_0x2783a8('0x77')]){_0x2d29b9[_0x2783a8('0x77')]=_0x86640f()[_0x2783a8('0xd0e')](_0x2d29b9['query'],_0x47a3b5['query']);if(_0x86640f()[_0x2783a8('0x23aa')](_0x2d29b9[_0x2783a8('0x1695')]['rows']))_0x2d29b9['query'][_0x2783a8('0x1de9')]=[];else _0x86640f()[_0x2783a8('0x23aa')](_0x2d29b9['query'][_0x2783a8('0x1de9')])&&(_0x2d29b9['query'][_0x2783a8('0x1de9')]=_0x86640f()(_0x2d29b9['faxAccounts'][_0x2783a8('0x1b33')])[_0x2783a8('0x26c3')]('id')[_0x2783a8('0x11b0')]()[_0x2783a8('0x2228')]());_0x2d29b9[_0x2783a8('0x77')][_0x2783a8('0x1944')]&&_0x2d29b9[_0x2783a8('0x77')][_0x2783a8('0x1944')][_0x2783a8('0x2004')](_0x2783a8('0x961'))>=0x0&&(_0x2d29b9[_0x2783a8('0x77')]=_0x86640f()[_0x2783a8('0x27b1')](_0x2d29b9['query'],'sort')),_0x2d29b9['query'][_0x2783a8('0x282f')]=!![],_0x2d29b9[_0x2783a8('0x146a')]=_0x2d29b9[_0x2783a8('0x77')]['filter']?!![]:![];}}catch(_0x5019a2){console[_0x2783a8('0x2092')](_0x5019a2);}else{var _0x2edb18={'$gte':_0x1088bc()()[_0x2783a8('0x1982')](_0x2783a8('0xb64'))['utcOffset'](0x0,!![])[_0x2783a8('0x153')](),'$lte':_0x1088bc()()[_0x2783a8('0x117b')](_0x2783a8('0xb64'))[_0x2783a8('0x215e')](0x0,!![])[_0x2783a8('0x153')]()},_0x57d6c1={'FaxAccountId':_0x86640f()[_0x2783a8('0x26c3')](_0x2d29b9[_0x2783a8('0x1695')]['rows'],'id'),'createdAt':_0x2edb18};_0x2d29b9[_0x2783a8('0x77')]=_0x86640f()[_0x2783a8('0xd0e')](_0x2d29b9[_0x2783a8('0x77')],_0x57d6c1);}_0x17c12a['on'](_0x2783a8('0x20d6'),_0x2747a6),_0x17c12a['on'](_0x2783a8('0x1fe4'),_0x2747a6),_0x17c12a['on']('faxInteractionTags:save',_0x484a3c),_0x17c12a['on'](_0x2783a8('0x1c42'),_0x3392e7),_0x17c12a['on'](_0x2783a8('0x26d5'),_0x3392e7),_0x17c12a['on']('user_has_fax_interactions:save',_0x112553),_0x17c12a['on'](_0x2783a8('0x1611'),_0x19e994),_0x3eafce(_0x2d29b9[_0x2783a8('0x77')][_0x2783a8('0x2376')]);});}function _0x4a2711(){var _0x5e7cc3=_0x581cd0;return[{'name':_0x5e7cc3('0x18a1'),'key':_0x5e7cc3('0x23ae'),'type':_0x5e7cc3('0x2457'),'label':'DASHBOARDS.SELECT_DATE'},{'name':'Messages','key':_0x5e7cc3('0x14ee'),'type':'select','label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':_0x5e7cc3('0x629')},{'value':null,'translate':_0x5e7cc3('0x1ee5')}]},{'name':_0x5e7cc3('0x843'),'key':'closed','type':_0x5e7cc3('0x2844'),'label':_0x5e7cc3('0x2204'),'customOptions':[{'value':0x0,'translate':_0x5e7cc3('0x19e2')},{'value':0x1,'translate':_0x5e7cc3('0x11d2')},{'value':null,'translate':_0x5e7cc3('0x1ee5')}]},{'name':_0x5e7cc3('0x5f0'),'key':_0x5e7cc3('0x1de9'),'type':'multiselect','label':_0x5e7cc3('0x31e'),'options':_0x2d29b9[_0x5e7cc3('0x1695')][_0x5e7cc3('0x1b33')],'clearAll':![]},{'name':_0x5e7cc3('0x1a44'),'key':'UserId','type':_0x5e7cc3('0x2844'),'label':_0x5e7cc3('0x115d'),'customOptions':[{'value':_0x2d29b9['user']['id'],'translate':'DASHBOARDS.ME'},{'value':'null','translate':_0x5e7cc3('0x1932')},{'value':undefined,'translate':_0x5e7cc3('0x1ee5')}]},{'name':_0x5e7cc3('0x295'),'key':'tag','type':_0x5e7cc3('0x91f'),'label':'DASHBOARDS.SELECT_TAG','options':_0x2d29b9[_0x5e7cc3('0x1889')][_0x5e7cc3('0x1b33')],'placeholder':_0x5e7cc3('0xb1c')}];}function _0xc09009(_0x2b7020){var _0x54e0bf=_0x581cd0;_0x2d29b9['searchInProgress']=![],_0x2d29b9[_0x54e0bf('0x702')]=_0x2b7020||{'count':0x0,'rows':[]};for(var _0x165d95=0x0;_0x165d95<_0x2d29b9['faxInteractions'][_0x54e0bf('0x1b33')][_0x54e0bf('0x577')];_0x165d95+=0x1){_0x2470aa(_0x2d29b9[_0x54e0bf('0x702')][_0x54e0bf('0x1b33')][_0x165d95]);}}function _0x3eafce(_0x2cd5c4){var _0x1895f7=_0x581cd0;_0x2d29b9[_0x1895f7('0x1fcd')]=!![];!_0x2cd5c4&&(_0x2d29b9[_0x1895f7('0x77')]['page']=0x1);_0x2d29b9[_0x1895f7('0x77')][_0x1895f7('0x15a5')]=(_0x2d29b9[_0x1895f7('0x77')][_0x1895f7('0x2376')]-0x1)*_0x2d29b9[_0x1895f7('0x77')][_0x1895f7('0x1f4a')];var _0x1497d0=_0x3ff149['localStorage']['getItem']('motion2.home.fax:'+_0x2d29b9[_0x1895f7('0x1775')]['id']);_0x1497d0=_0x1497d0?JSON['parse'](_0x1497d0):{},_0x1497d0[_0x1895f7('0x77')]=_0x2d29b9['query'],_0x3ff149['localStorage'][_0x1895f7('0x1014')]('motion2.home.fax:'+_0x2d29b9['user']['id'],JSON[_0x1895f7('0x25e')](_0x1497d0)),_0x2d29b9[_0x1895f7('0x71b')]=_0x41465d[_0x1895f7('0x2592')][_0x1895f7('0x595')](_0x2d29b9['query'],_0xc09009)[_0x1895f7('0x1376')];}function _0x3534f0(_0x54cdce,_0x251513){var _0xe11878=_0x581cd0;_0x5071db[_0xe11878('0x223d')]['vm'][_0xe11878('0x11b4')](_0xe11878('0x93f'),_0x251513);}function _0x4c36ed(_0x661867,_0x57c267,_0x219a6d){var _0xa7f31b=_0x581cd0;_0x41465d['faxInteraction'][_0xa7f31b('0xb0')]({'id':_0x57c267['id'],'attachments':_0x219a6d})[_0xa7f31b('0x1376')][_0xa7f31b('0x21ad')](function(_0xa4ec9d){var _0x1b9c98=_0xa7f31b,_0x1145d9=[_0xa4ec9d[_0x1b9c98('0x3da')]],_0x52269e=_0x1b9c98('0x9dc')+_0x57c267['id']+_0x1b9c98('0x1622'),_0x13c3e7=new Blob(_0x1145d9,{'type':_0xa4ec9d['type']}),_0xae78be=window[_0x1b9c98('0x27c3')][_0x1b9c98('0x162e')]('a');_0xae78be[_0x1b9c98('0x127a')]('href',URL['createObjectURL'](_0x13c3e7)),_0xae78be['setAttribute'](_0x1b9c98('0xb0'),_0x52269e),document[_0x1b9c98('0x2452')][_0x1b9c98('0x14d0')](_0xae78be),_0xae78be[_0x1b9c98('0x997')]();})['catch'](function(_0x5a75b6){var _0x37f422=_0xa7f31b;if(_0x5a75b6[_0x37f422('0x11c2')]&&_0x5a75b6[_0x37f422('0x11c2')][_0x37f422('0x1a69')]&&_0x5a75b6['data'][_0x37f422('0x1a69')][_0x37f422('0x577')])for(var _0xd15b31=0x0;_0xd15b31<_0x5a75b6[_0x37f422('0x11c2')][_0x37f422('0x1a69')][_0x37f422('0x577')];_0xd15b31+=0x1){_0x4464b7['error']({'title':_0x5a75b6[_0x37f422('0x11c2')]['errors'][_0xd15b31][_0x37f422('0x7fa')],'msg':_0x5a75b6[_0x37f422('0x11c2')][_0x37f422('0x1a69')][_0xd15b31][_0x37f422('0x1224')]});}else _0x4464b7['error']({'title':_0x5a75b6[_0x37f422('0x209')]?_0x37f422('0x22d')+_0x5a75b6[_0x37f422('0x209')]+_0x37f422('0xa99')+_0x5a75b6[_0x37f422('0x1808')]:_0x37f422('0x1ae4'),'msg':_0x5a75b6[_0x37f422('0x11c2')]?JSON[_0x37f422('0x25e')](_0x5a75b6['data'][_0x37f422('0x1224')]):_0x5a75b6[_0x37f422('0x174f')]()});});}function _0x28d662(_0x530726,_0x59796c){var _0x2a8006=_0x581cd0,_0xc05989=_0x2d29b9['user'][_0x2a8006('0x1025')]||_0x2d29b9['user']['chatPause']||_0x2d29b9['user'][_0x2a8006('0x1396')]||_0x2d29b9[_0x2a8006('0x1775')][_0x2a8006('0x2022')]||_0x2d29b9[_0x2a8006('0x1775')][_0x2a8006('0x23f5')],_0x59a936=!_0x59796c[_0x2a8006('0x5f0')]['mandatoryDisposition'];_0x214a7a[_0x2a8006('0x853')]({'controller':_0x2a8006('0x256e'),'controllerAs':'vm','templateUrl':_0x5b0a7e,'parent':angular[_0x2a8006('0x1676')](_0x1d0f66[_0x2a8006('0x2452')]),'clickOutsideToClose':_0x59a936,'escapeToClose':_0x59a936,'onRemoving':function _0x24ea2e(){var _0x18bd4d=_0x2a8006;_0x2d29b9[_0x18bd4d('0x1775')]&&_0x59796c['Account'][_0x18bd4d('0x798')]&&!_0xc05989&&_0x41465d[_0x18bd4d('0x1775')][_0x18bd4d('0xa8e')]({'id':_0x2d29b9[_0x18bd4d('0x1775')]['id']})[_0x18bd4d('0x1376')][_0x18bd4d('0x1c1d')](function(_0x4fd586){console['error'](_0x4fd586);});},'locals':{'user':_0x2d29b9['user'],'channel':_0x2a8006('0x93f'),'interaction':_0x59796c}});}function _0x2470aa(_0x161532){var _0x3b0a74=_0x581cd0;_0x161532[_0x3b0a74('0x1d10')]?(_0x161532[_0x3b0a74('0x1717')]=(_0x161532[_0x3b0a74('0x1d10')][_0x3b0a74('0x992')]||'')+'\x20'+(_0x161532[_0x3b0a74('0x1d10')][_0x3b0a74('0x6d')]||''),_0x161532[_0x3b0a74('0x67e')]=_0x161532[_0x3b0a74('0x1d10')][_0x3b0a74('0x93f')]):_0x161532[_0x3b0a74('0x1717')]=_0x363d07[_0x3b0a74('0x183e')](_0x3b0a74('0xc13'));}function _0xba409f(_0x34ce2c){var _0x34e465=_0x581cd0;if(_0x34ce2c[_0x34e465('0x1dc6')])return _0x34ce2c[_0x34e465('0x1dc6')]===_0x2d29b9['user']['id']?_0x363d07[_0x34e465('0x183e')](_0x34e465('0x4db')):_0x34ce2c[_0x34e465('0x11a8')][_0x34e465('0x20f5')]+'\x20<'+_0x34ce2c['Owner']['internal']+'>';return _0x363d07[_0x34e465('0x183e')](_0x34e465('0x1932'));}function _0x4f871a(_0x5b5389){var _0x44fb0b=_0x581cd0;if(_0x5b5389['Account'])return _0x5b5389[_0x44fb0b('0x5f0')][_0x44fb0b('0xddb')];return _0x363d07[_0x44fb0b('0x183e')](_0x44fb0b('0xc13'));}function _0x579604(_0x1b02d0,_0x344225){var _0x41708e=_0x581cd0;_0x214a7a[_0x41708e('0x853')]({'controller':'ComposeFaxInteractionDialogController','controllerAs':'vm','templateUrl':_0x1b0109,'parent':angular[_0x41708e('0x1676')](_0x1d0f66[_0x41708e('0x2452')]),'clickOutsideToClose':![],'locals':{'account':_0x344225,'message':{},'type':_0x41708e('0xb82'),'interaction':{}},'fullscreen':!![]})[_0x41708e('0x21ad')](function(_0x9eb64f){var _0x3f31f3=_0x41708e;if(_0x9eb64f){if(_0x9eb64f[_0x3f31f3('0x1224')]&&_0x9eb64f[_0x3f31f3('0x1224')][_0x3f31f3('0x230b')]){var _0x135635={'channel':_0x3f31f3('0x93f'),'account':_0x344225,'message':_0x9eb64f[_0x3f31f3('0x1224')],'contact':_0x9eb64f[_0x3f31f3('0x150c')]};_0x46dd5e[_0x3f31f3('0x1842')](_0x135635);}else{var _0x518bbe=_0x9eb64f;return _0x41465d[_0x3f31f3('0xeb2')][_0x3f31f3('0x2471')]({'id':_0x344225['id']},_0x518bbe)[_0x3f31f3('0x1376')][_0x3f31f3('0x21ad')](function(_0x3cd59e){var _0x18e604=_0x3f31f3;_0x4464b7[_0x18e604('0xdb1')]({'title':_0x18e604('0xc07'),'msg':_0x18e604('0x4b5')}),_0x5071db[_0x18e604('0x223d')]['vm']['addInteractionTab'](_0x18e604('0x93f'),_0x3cd59e);})[_0x3f31f3('0x1c1d')](function(_0xbd3e47){var _0x1f8b51=_0x3f31f3;if(_0xbd3e47[_0x1f8b51('0x11c2')]&&_0xbd3e47[_0x1f8b51('0x11c2')][_0x1f8b51('0x1a69')]&&_0xbd3e47[_0x1f8b51('0x11c2')][_0x1f8b51('0x1a69')]['length'])for(var _0x279643=0x0;_0x279643<_0xbd3e47[_0x1f8b51('0x11c2')][_0x1f8b51('0x1a69')]['length'];_0x279643++){_0x4464b7[_0x1f8b51('0x2092')]({'title':_0xbd3e47['data']['errors'][_0x279643][_0x1f8b51('0x7fa')],'msg':_0xbd3e47[_0x1f8b51('0x11c2')][_0x1f8b51('0x1a69')][_0x279643][_0x1f8b51('0x1224')]});}else _0x4464b7['error']({'title':'FAX:SEND','msg':_0xbd3e47['data']?JSON[_0x1f8b51('0x25e')](_0xbd3e47[_0x1f8b51('0x11c2')]):_0xbd3e47[_0x1f8b51('0x1224')]||_0xbd3e47[_0x1f8b51('0x174f')]()});});}}});}function _0x112553(_0x366c70){var _0x233819=_0x581cd0,_0x24b614,_0x4faf98=_0x86640f()[_0x233819('0x1d2e')](_0x2d29b9[_0x233819('0x702')][_0x233819('0x1b33')],{'id':_0x366c70['FaxInteractionId']});_0x4faf98&&_0x4faf98[_0x233819('0x6cc')]&&(_0x24b614=_0x86640f()[_0x233819('0x1d2e')](_0x4faf98[_0x233819('0x6cc')],{'id':_0x366c70[_0x233819('0x1dc6')]}),!_0x24b614&&_0x4faf98['Users'][_0x233819('0x206c')]({'id':_0x366c70[_0x233819('0x1dc6')]}));}function _0x19e994(_0x32009b){var _0x44ade7=_0x581cd0,_0x538a86=_0x86640f()[_0x44ade7('0x1d2e')](_0x2d29b9[_0x44ade7('0x702')][_0x44ade7('0x1b33')],{'id':_0x32009b[_0x44ade7('0x684')]});_0x538a86&&_0x538a86[_0x44ade7('0x6cc')]&&_0x86640f()['remove'](_0x538a86['Users'],{'id':_0x32009b[_0x44ade7('0x1dc6')]});}function _0x2747a6(_0xd67867){var _0x77e791=_0x581cd0;if(_0xd67867){var _0x232015=_0x86640f()[_0x77e791('0x1d2e')](_0x2d29b9[_0x77e791('0x702')]['rows'],{'id':_0xd67867['id']});if(_0x232015){_0x232015[_0x77e791('0x6cc')]=[];_0xd67867[_0x77e791('0x14ba')]&&(_0x232015[_0x77e791('0x6c5')]=0x0);if(_0x2d29b9['query']['sort']){var _0x57b78d=_0x86640f()[_0x77e791('0x2837')](_0x2d29b9[_0x77e791('0x77')]['sort'],'-')?'desc':_0x77e791('0x15d6');_0x2d29b9['faxInteractions'][_0x77e791('0x1b33')]=_0x86640f()[_0x77e791('0x11df')](_0x2d29b9[_0x77e791('0x702')][_0x77e791('0x1b33')],_0x86640f()[_0x77e791('0x1ab4')](_0x2d29b9[_0x77e791('0x77')][_0x77e791('0x1944')],'-'),_0x57b78d);}_0x86640f()[_0x77e791('0xd0e')](_0x232015,_0x86640f()[_0x77e791('0xc50')](_0xd67867,_0x86640f()[_0x77e791('0x223b')](_0x232015)));}else _0x3eafce(_0x2d29b9['query'][_0x77e791('0x2376')]);}}function _0x484a3c(_0x253bb4){var _0x57e86b=_0x581cd0;if(_0x253bb4){var _0x54a0c2=_0x86640f()['find'](_0x2d29b9[_0x57e86b('0x702')][_0x57e86b('0x1b33')],{'id':_0x253bb4['id']});_0x54a0c2&&(_0x54a0c2[_0x57e86b('0x557')]=_0x253bb4[_0x57e86b('0x1889')]||[],_0x86640f()[_0x57e86b('0xd0e')](_0x54a0c2,_0x86640f()[_0x57e86b('0xc50')](_0x253bb4,_0x86640f()[_0x57e86b('0x223b')](_0x54a0c2))));}}function _0x3392e7(_0x253d02){var _0x11135c=_0x581cd0;if(_0x253d02&&!_0x253d02[_0x11135c('0x1d1b')]){var _0x460660=_0x86640f()[_0x11135c('0x1d2e')](_0x2d29b9[_0x11135c('0x702')][_0x11135c('0x1b33')],{'id':_0x253d02[_0x11135c('0x684')]});if(_0x460660){var _0x4bae56=_0x86640f()[_0x11135c('0x1d2e')](_0x460660[_0x11135c('0x5d')],{'id':_0x253d02['id']});_0x4bae56?_0x86640f()[_0x11135c('0xd0e')](_0x4bae56,_0x86640f()['pick'](_0x253d02,_0x86640f()[_0x11135c('0x223b')](_0x4bae56))):(_0x86640f()[_0x11135c('0x1c7')](_0x460660[_0x11135c('0x5d')])&&(_0x460660[_0x11135c('0x5d')]={'count':0x0}),!_0x253d02[_0x11135c('0x14ee')]&&(_0x460660[_0x11135c('0x5d')]['count']+=0x1));}}}function _0x1e0e49(){var _0x3f97e0=_0x581cd0;_0x2d29b9[_0x3f97e0('0x146a')]=![];}function _0x520e6e(){var _0x4efab1=_0x581cd0;_0x2d29b9[_0x4efab1('0x146a')]=!![];}function _0x296886(){var _0x4662de=_0x581cd0;_0x2d29b9['isSearchBarVisible']=![],_0x214a7a['show']({'controller':_0x4662de('0xde1'),'controllerAs':'vm','templateUrl':_0x44f47e,'parent':angular[_0x4662de('0x1676')](_0x1d0f66[_0x4662de('0x2452')]),'clickOutsideToClose':![],'locals':{'color':_0x2d29b9['sectionColor'],'fields':_0x2d29b9[_0x4662de('0x2211')][_0x4662de('0x181e')],'storagePath':_0x4662de('0x82c')},'fullscreen':!![]})[_0x4662de('0x21ad')](function(_0x3bcb3c){var _0x1cc595=_0x4662de;_0x2d29b9[_0x1cc595('0x77')][_0x1cc595('0x24e7')]=_0x3bcb3c===![]?undefined:_0x3bcb3c;if(_0x2d29b9[_0x1cc595('0x77')]['search']||_0x3bcb3c===![])_0x3eafce();})['catch'](function(_0x2cfab4){var _0x5503c1=_0x4662de;_0x4464b7['error']({'title':'ERROR','msg':_0x2cfab4['data']?JSON[_0x5503c1('0x25e')](_0x2cfab4[_0x5503c1('0x11c2')][_0x5503c1('0x1224')]):_0x2cfab4['toString']()});});}var _0x1fde20=!![],_0x15d659=0x1;_0x5071db[_0x581cd0('0x10e8')](_0x581cd0('0x1948'),function(_0xff5e51,_0x2203d8){var _0x1ddf2b=_0x581cd0;_0x1fde20?_0x1e84fd(function(){_0x1fde20=![];}):(!_0x2203d8&&(_0x15d659=_0x2d29b9[_0x1ddf2b('0x77')][_0x1ddf2b('0x2376')]),_0xff5e51!==_0x2203d8&&(_0x2d29b9[_0x1ddf2b('0x77')][_0x1ddf2b('0x2376')]=0x1),!_0xff5e51&&(_0x2d29b9[_0x1ddf2b('0x77')][_0x1ddf2b('0x2376')]=_0x15d659),_0x3eafce(_0x2d29b9[_0x1ddf2b('0x77')]['page']));}),_0x5071db[_0x581cd0('0x1723')](_0x581cd0('0x1210'),function(){var _0xfbd3f0=_0x581cd0;_0x17c12a[_0xfbd3f0('0x16cc')]('faxMessage:save'),_0x17c12a[_0xfbd3f0('0x16cc')]('faxMessage:update'),_0x17c12a['removeAllListeners']('faxInteraction:save'),_0x17c12a['removeAllListeners'](_0xfbd3f0('0x590')),_0x17c12a[_0xfbd3f0('0x16cc')]('faxInteraction:update'),_0x17c12a['removeAllListeners']('user_has_fax_interactions:save'),_0x17c12a[_0xfbd3f0('0x16cc')](_0xfbd3f0('0x1611'));});}const _0x18a015=_0x47902c;_0x4ab6ec[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$timeout','$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x24e1'),_0x3877e3('0x13c1'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x25d8'),_0x3877e3('0x1908'),_0x3877e3('0x2113')];function _0x4ab6ec(_0x99530,_0x54f8b8,_0x3a227a,_0x33567e,_0x5d7748,_0x122d75,_0x542e26,_0x1a197a,_0x242936,_0xa5d64e,_0x178f25){var _0x22ddf1=_0x3877e3,_0x2910c0=this;_0x2910c0[_0x22ddf1('0x1775')]=_0x1a197a[_0x22ddf1('0x15ed')](),_0x2910c0[_0x22ddf1('0x2ff')]={},_0x2910c0[_0x22ddf1('0x21e')]={},_0x2910c0[_0x22ddf1('0x1889')]={'count':0x0,'rows':[]},_0x2910c0[_0x22ddf1('0x1709')]={'count':0x0,'rows':[]},_0x2910c0[_0x22ddf1('0x77')]={'includeAll':!![],'sort':_0x22ddf1('0x33'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x2910c0[_0x22ddf1('0x2211')]={'fields':[{'name':'Id','column':'id','type':_0x22ddf1('0xed8')},{'name':'Contact','column':'Contact','type':_0x22ddf1('0x175c'),'options':{'searchFields':['firstName',_0x22ddf1('0x6d'),'email'],'route':{'model':_0x22ddf1('0x25dc'),'action':_0x22ddf1('0x595'),'params':{'fields':_0x22ddf1('0x2704'),'Contact':_0x22ddf1('0x169e'),'nolimit':!![]}},'extraOperators':[_0x22ddf1('0xb58')],'excludedOperators':['$ne']}},{'name':'Subject','column':'subject','type':_0x22ddf1('0xc1e'),'options':{'excludedOperators':[_0x22ddf1('0x940'),'$ne']}},{'name':'Body','column':_0x22ddf1('0x11e5'),'type':_0x22ddf1('0xc1e'),'options':{'excludedOperators':[_0x22ddf1('0x940'),_0x22ddf1('0x3fe')]}},{'name':_0x22ddf1('0x843'),'column':_0x22ddf1('0x14ba'),'type':'select','values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x22ddf1('0x11d2')}],'options':{'excludedOperators':[_0x22ddf1('0x3fe')]}},{'name':'Substatus','column':_0x22ddf1('0x1abc'),'type':_0x22ddf1('0x91f'),'options':{'field':'name','route':{'model':'mailSubstatus','action':_0x22ddf1('0x595'),'params':{'nolimit':!![]}},'excludedOperators':[_0x22ddf1('0x23')]}},{'name':_0x22ddf1('0x1a44'),'column':'User','type':_0x22ddf1('0x175c'),'options':{'table':'i','route':{'model':'user','action':'get','params':{'role':_0x22ddf1('0x2402'),'fields':_0x22ddf1('0x2326'),'nolimit':!![]}},'searchFields':['fullname',_0x22ddf1('0x19fe')],'extraOperators':['$substring'],'excludedOperators':[_0x22ddf1('0x3fe')]}},{'name':_0x22ddf1('0x5f0'),'column':_0x22ddf1('0x723'),'type':_0x22ddf1('0x91f'),'options':{'route':{'model':_0x22ddf1('0x1775'),'action':_0x22ddf1('0x191d'),'params':{'id':_0x2910c0['user']['id'],'nolimit':!![]}}}},{'name':_0x22ddf1('0x557'),'column':_0x22ddf1('0x295'),'type':_0x22ddf1('0x91f'),'options':{'route':{'model':_0x22ddf1('0x907'),'action':_0x22ddf1('0x595'),'params':{'nolimit':!![]}},'excludedOperators':[_0x22ddf1('0x23')]}},{'name':_0x22ddf1('0x18a1'),'column':_0x22ddf1('0x23ae'),'type':_0x22ddf1('0x2457'),'options':{'excludedOperators':[_0x22ddf1('0x3fe')]}},{'name':_0x22ddf1('0x1715'),'column':'unreadMessages','type':_0x22ddf1('0x2844'),'values':[{'id':0x1,'translate':_0x22ddf1('0x629')},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':[_0x22ddf1('0x3fe')]}}]},_0x2910c0[_0x22ddf1('0x1419')]=_0x22ddf1('0x1d66'),_0x2910c0['onInit']=_0xb41011,_0x2910c0['success']=_0x43260a,_0x2910c0['getMailInteractions']=_0x33c623,_0x2910c0[_0x22ddf1('0xe70')]=_0x18c29f,_0x2910c0[_0x22ddf1('0x12b6')]=_0x426f8d,_0x2910c0['disposeInteraction']=_0xd750ab,_0x2910c0[_0x22ddf1('0x1e9d')]=_0x45bde0,_0x2910c0[_0x22ddf1('0x12b5')]=_0x11536a,_0x2910c0[_0x22ddf1('0xd3d')]=_0x15436a,_0x2910c0[_0x22ddf1('0x1df2')]=_0x1100eb,_0x2910c0[_0x22ddf1('0x21f9')]=_0x2d078b,_0x2910c0[_0x22ddf1('0x1bf6')]=_0x2f8fd5,_0x2910c0[_0x22ddf1('0x7e3')]=_0x533dcd,_0x99530[_0x22ddf1('0x1723')](_0x22ddf1('0x254a'),_0x48bbc4);function _0xb41011(_0x1c3cfd,_0x381d93){var _0x2ac452=_0x22ddf1;return _0x2910c0[_0x2ac452('0x2ff')]=_0x1c3cfd,_0x2910c0[_0x2ac452('0x21e')]=_0x381d93,_0x542e26[_0x2ac452('0x1775')][_0x2ac452('0x595')+_0x86640f()[_0x2ac452('0x22e')](_0x2ac452('0x21ab'))]({'id':_0x2910c0[_0x2ac452('0x1775')]['id'],'nolimit':!![]})[_0x2ac452('0x1376')][_0x2ac452('0x21ad')](function(_0x229d4b){var _0x2f1c19=_0x2ac452;return _0x2910c0[_0x2f1c19('0x21ab')]=_0x229d4b||{'count':0x0,'rows':[]},_0x542e26[_0x2f1c19('0x907')]['get']()[_0x2f1c19('0x1376')];})[_0x2ac452('0x21ad')](function(_0x4d9385){var _0x334749=_0x2ac452;_0x2910c0[_0x334749('0x1889')]=_0x4d9385||{'count':0x0,'rows':[]};})[_0x2ac452('0x21ad')](function(){var _0x5c044f=_0x2ac452;return _0x542e26[_0x5c044f('0xa94')][_0x5c044f('0x595')]({'nolimit':!![]})[_0x5c044f('0x1376')];})[_0x2ac452('0x21ad')](function(_0x1fc6e8){var _0x3f99ea=_0x2ac452;_0x2910c0[_0x3f99ea('0xd90')]=_0x1fc6e8||{'count':0x0,'rows':[]};})[_0x2ac452('0x21ad')](function(){_0x2910c0['quickFilters']=_0x2a8f95();})[_0x2ac452('0x1c1d')](function(_0x44c3fe){var _0x71939c=_0x2ac452;console[_0x71939c('0x2092')](_0x44c3fe);})['finally'](function(){var _0xb0ff80=_0x2ac452,_0x2fcc72=_0x5d7748[_0xb0ff80('0x161e')][_0xb0ff80('0x633')](_0xb0ff80('0x1aa7')+_0x2910c0[_0xb0ff80('0x1775')]['id']);if(_0x2fcc72)try{_0x2fcc72=JSON[_0xb0ff80('0x399')](_0x2fcc72);if(_0x2fcc72[_0xb0ff80('0x77')]){_0x2910c0['query']=_0x86640f()[_0xb0ff80('0xd0e')](_0x2910c0['query'],_0x2fcc72[_0xb0ff80('0x77')]);if(_0x86640f()['isEmpty'](_0x2910c0[_0xb0ff80('0x21ab')][_0xb0ff80('0x1b33')]))_0x2910c0[_0xb0ff80('0x77')][_0xb0ff80('0x723')]=[];else _0x86640f()[_0xb0ff80('0x23aa')](_0x2910c0['query']['MailAccountId'])&&(_0x2910c0[_0xb0ff80('0x77')][_0xb0ff80('0x723')]=_0x86640f()(_0x2910c0['mailAccounts']['rows'])[_0xb0ff80('0x26c3')]('id')[_0xb0ff80('0x11b0')]()[_0xb0ff80('0x2228')]());_0x2910c0[_0xb0ff80('0x77')][_0xb0ff80('0x1944')]&&_0x2910c0[_0xb0ff80('0x77')][_0xb0ff80('0x1944')][_0xb0ff80('0x2004')](_0xb0ff80('0x961'))>=0x0&&(_0x2910c0[_0xb0ff80('0x77')]=_0x86640f()[_0xb0ff80('0x27b1')](_0x2910c0[_0xb0ff80('0x77')],_0xb0ff80('0x1944'))),_0x2910c0[_0xb0ff80('0x77')][_0xb0ff80('0x282f')]=!![],_0x2910c0[_0xb0ff80('0x146a')]=_0x2910c0[_0xb0ff80('0x77')][_0xb0ff80('0x1503')]?!![]:![];}}catch(_0x4e2656){console['error'](_0x4e2656);}else{var _0x37cf05={'$gte':_0x1088bc()()[_0xb0ff80('0x1982')](_0xb0ff80('0xb64'))[_0xb0ff80('0x215e')](0x0,!![])['format'](),'$lte':_0x1088bc()()['endOf'](_0xb0ff80('0xb64'))[_0xb0ff80('0x215e')](0x0,!![])[_0xb0ff80('0x153')]()},_0x14f42d={'MailAccountId':_0x86640f()['map'](_0x2910c0[_0xb0ff80('0x21ab')][_0xb0ff80('0x1b33')],'id'),'createdAt':_0x37cf05};_0x2910c0[_0xb0ff80('0x77')]=_0x86640f()[_0xb0ff80('0xd0e')](_0x2910c0['query'],_0x14f42d);}_0x242936['on'](_0xb0ff80('0x251c'),_0x15b1a0),_0x242936['on']('mailInteraction:update',_0x15b1a0),_0x242936['on'](_0xb0ff80('0x1ce3'),_0x2507bc),_0x242936['on']('mailMessage:save',_0x2fc0c0),_0x242936['on'](_0xb0ff80('0x13f1'),_0x2fc0c0),_0x242936['on'](_0xb0ff80('0x1493'),_0x59852b),_0x242936['on'](_0xb0ff80('0x2608'),_0x3c5435),_0x33c623(_0x2910c0[_0xb0ff80('0x77')][_0xb0ff80('0x2376')]);});}function _0x2a8f95(){var _0xf1302a=_0x22ddf1;return[{'name':'Start\x20Date','key':_0xf1302a('0x23ae'),'type':_0xf1302a('0x2457'),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0xf1302a('0x5d'),'key':'read','type':_0xf1302a('0x2844'),'label':_0xf1302a('0x15f4'),'customOptions':[{'value':0x0,'translate':_0xf1302a('0x1799')},{'value':0x1,'translate':_0xf1302a('0x629')},{'value':null,'translate':_0xf1302a('0x1ee5')}]},{'name':_0xf1302a('0x843'),'key':_0xf1302a('0x14ba'),'type':_0xf1302a('0x2844'),'label':_0xf1302a('0x2204'),'customOptions':[{'value':0x0,'translate':_0xf1302a('0x19e2')},{'value':0x1,'translate':'DASHBOARDS.CLOSED'},{'value':null,'translate':_0xf1302a('0x1ee5')}]},{'name':_0xf1302a('0x13c'),'key':_0xf1302a('0x1abc'),'type':_0xf1302a('0x2844'),'label':_0xf1302a('0x267c'),'options':_0x2910c0[_0xf1302a('0xd90')][_0xf1302a('0x1b33')],'customOptions':[{'value':_0xf1302a('0x27a'),'translate':_0xf1302a('0xe34')},{'value':undefined,'translate':_0xf1302a('0x1ee5')}],'ngValue':'name','ngIf':'closed\x20===\x200'},{'name':_0xf1302a('0x5f0'),'key':'MailAccountId','type':_0xf1302a('0x91f'),'label':_0xf1302a('0x31e'),'options':_0x2910c0[_0xf1302a('0x21ab')][_0xf1302a('0x1b33')],'clearAll':![]},{'name':_0xf1302a('0x1a44'),'key':_0xf1302a('0x1dc6'),'type':_0xf1302a('0x2844'),'label':_0xf1302a('0x115d'),'customOptions':[{'value':_0x2910c0[_0xf1302a('0x1775')]['id'],'translate':_0xf1302a('0x4db')},{'value':_0xf1302a('0x27a'),'translate':_0xf1302a('0x1932')},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0xf1302a('0x295'),'key':_0xf1302a('0x907'),'type':_0xf1302a('0x91f'),'label':_0xf1302a('0x138d'),'options':_0x2910c0[_0xf1302a('0x1889')][_0xf1302a('0x1b33')],'placeholder':_0xf1302a('0xb1c')}];}function _0x43260a(_0x4eccca){var _0x5af456=_0x22ddf1;_0x2910c0[_0x5af456('0x1fcd')]=![],_0x2910c0['mailInteractions']=_0x4eccca||{'count':0x0,'rows':[]};for(var _0x55e18f=0x0;_0x55e18f<_0x2910c0['mailInteractions']['rows'][_0x5af456('0x577')];_0x55e18f+=0x1){_0x45bde0(_0x2910c0['mailInteractions'][_0x5af456('0x1b33')][_0x55e18f]);}}function _0x33c623(_0xc5eff6){var _0x3f3084=_0x22ddf1;_0x2910c0['searchInProgress']=!![];!_0xc5eff6&&(_0x2910c0[_0x3f3084('0x77')]['page']=0x1);_0x2910c0['query'][_0x3f3084('0x15a5')]=(_0x2910c0[_0x3f3084('0x77')][_0x3f3084('0x2376')]-0x1)*_0x2910c0[_0x3f3084('0x77')]['limit'];var _0x29d65d=_0x5d7748[_0x3f3084('0x161e')][_0x3f3084('0x633')](_0x3f3084('0x1aa7')+_0x2910c0[_0x3f3084('0x1775')]['id']);_0x29d65d=_0x29d65d?JSON['parse'](_0x29d65d):{},_0x29d65d[_0x3f3084('0x77')]=_0x2910c0['query'],_0x5d7748[_0x3f3084('0x161e')][_0x3f3084('0x1014')](_0x3f3084('0x1aa7')+_0x2910c0['user']['id'],JSON[_0x3f3084('0x25e')](_0x29d65d)),_0x2910c0[_0x3f3084('0x71b')]=_0x542e26[_0x3f3084('0x57')][_0x3f3084('0x595')](_0x2910c0[_0x3f3084('0x77')],_0x43260a)[_0x3f3084('0x1376')];}function _0x18c29f(_0x394989,_0x5ebc80){var _0x37b2b7=_0x22ddf1;_0x99530[_0x37b2b7('0x223d')]['vm'][_0x37b2b7('0x11b4')](_0x37b2b7('0x1c8b'),_0x5ebc80);}function _0x426f8d(_0x336bae,_0x1f0649,_0x1cd228){var _0xcf5c01=_0x22ddf1;_0x542e26[_0xcf5c01('0x57')]['download']({'id':_0x1f0649['id'],'attachments':_0x1cd228})['$promise']['then'](function(_0x4852ba){var _0x4741f3=_0xcf5c01,_0x4a7234=[_0x4852ba['buffer']],_0x31eee6=_0x4741f3('0x286')+_0x1f0649['id']+'.zip',_0x355136=new Blob(_0x4a7234,{'type':_0x4852ba[_0x4741f3('0x7fa')]}),_0x3c8b2c=window[_0x4741f3('0x27c3')][_0x4741f3('0x162e')]('a');_0x3c8b2c[_0x4741f3('0x127a')](_0x4741f3('0x69e'),URL[_0x4741f3('0x167b')](_0x355136)),_0x3c8b2c[_0x4741f3('0x127a')](_0x4741f3('0xb0'),_0x31eee6),document['body'][_0x4741f3('0x14d0')](_0x3c8b2c),_0x3c8b2c[_0x4741f3('0x997')]();})[_0xcf5c01('0x1c1d')](function(_0x16a725){var _0x442314=_0xcf5c01;if(_0x16a725[_0x442314('0x11c2')]&&_0x16a725[_0x442314('0x11c2')][_0x442314('0x1a69')]&&_0x16a725[_0x442314('0x11c2')][_0x442314('0x1a69')][_0x442314('0x577')])for(var _0x7b3b33=0x0;_0x7b3b33<_0x16a725[_0x442314('0x11c2')][_0x442314('0x1a69')]['length'];_0x7b3b33+=0x1){_0xa5d64e[_0x442314('0x2092')]({'title':_0x16a725[_0x442314('0x11c2')][_0x442314('0x1a69')][_0x7b3b33][_0x442314('0x7fa')],'msg':_0x16a725['data'][_0x442314('0x1a69')][_0x7b3b33][_0x442314('0x1224')]});}else _0xa5d64e[_0x442314('0x2092')]({'title':_0x16a725[_0x442314('0x209')]?_0x442314('0x22d')+_0x16a725['status']+_0x442314('0xa99')+_0x16a725[_0x442314('0x1808')]:_0x442314('0x12b6'),'msg':_0x16a725[_0x442314('0x11c2')]?JSON['stringify'](_0x16a725[_0x442314('0x11c2')]['message']):_0x16a725['toString']()});});}function _0xd750ab(_0x4c347c,_0x3c6937){var _0x262ee0=_0x22ddf1,_0xfc73fe=_0x2910c0['user']['voicePause']||_0x2910c0[_0x262ee0('0x1775')]['chatPause']||_0x2910c0[_0x262ee0('0x1775')]['mailPause']||_0x2910c0[_0x262ee0('0x1775')][_0x262ee0('0x2022')]||_0x2910c0[_0x262ee0('0x1775')][_0x262ee0('0x23f5')],_0x4556ac=!_0x3c6937[_0x262ee0('0x5f0')]['mandatoryDisposition'];_0x3a227a[_0x262ee0('0x853')]({'controller':'DisposeInteractionDialogController','controllerAs':'vm','templateUrl':_0x5b0a7e,'parent':angular['element'](_0x33567e[_0x262ee0('0x2452')]),'clickOutsideToClose':_0x4556ac,'escapeToClose':_0x4556ac,'onRemoving':function _0x14f5c2(){var _0xd38477=_0x262ee0;_0x2910c0[_0xd38477('0x1775')]&&_0x3c6937[_0xd38477('0x5f0')][_0xd38477('0x798')]&&!_0xfc73fe&&_0x542e26[_0xd38477('0x1775')][_0xd38477('0xa8e')]({'id':_0x2910c0[_0xd38477('0x1775')]['id']})[_0xd38477('0x1376')]['catch'](function(_0x228197){var _0xf0e6a8=_0xd38477;console[_0xf0e6a8('0x2092')](_0x228197);});},'locals':{'user':_0x2910c0[_0x262ee0('0x1775')],'channel':_0x262ee0('0x1c8b'),'interaction':_0x3c6937}});}function _0x45bde0(_0x578010){var _0x46c3ac=_0x22ddf1;if(!_0x86640f()[_0x46c3ac('0x23aa')](_0x578010['to'])&&_0x578010[_0x46c3ac('0x5f0')]&&!_0x86640f()[_0x46c3ac('0xb34')](_0x578010['to'],_0x578010[_0x46c3ac('0x5f0')][_0x46c3ac('0x2822')]))_0x578010['contactName']=_0x578010['to']['split']('\x20<')[0x0],_0x578010[_0x46c3ac('0x67e')]=_0x578010['to']['split']('<')['pop']()[_0x46c3ac('0x1af5')]('>')[0x0];else _0x578010[_0x46c3ac('0x1d10')]?(_0x578010[_0x46c3ac('0x1717')]=(_0x578010[_0x46c3ac('0x1d10')]['firstName']||'')+'\x20'+(_0x578010[_0x46c3ac('0x1d10')][_0x46c3ac('0x6d')]||''),_0x578010[_0x46c3ac('0x67e')]=_0x578010['Contact'][_0x46c3ac('0x2822')]||''):_0x578010[_0x46c3ac('0x1717')]=_0x122d75['instant'](_0x46c3ac('0xc13'));}function _0x11536a(_0xd080e4){var _0x4034ff=_0x22ddf1;if(_0xd080e4[_0x4034ff('0x1dc6')])return _0xd080e4[_0x4034ff('0x1dc6')]===_0x2910c0['user']['id']?_0x122d75[_0x4034ff('0x183e')](_0x4034ff('0x4db')):_0xd080e4[_0x4034ff('0x11a8')][_0x4034ff('0x20f5')]+'\x20<'+_0xd080e4['Owner'][_0x4034ff('0x201f')]+'>';return _0x122d75['instant']('DASHBOARDS.NOT_ASSIGNED');}function _0x15436a(_0x3de749){var _0x34a218=_0x22ddf1;if(_0x3de749['Account'])return _0x3de749['Account'][_0x34a218('0xddb')];return _0x122d75[_0x34a218('0x183e')](_0x34a218('0xc13'));}function _0x48bbc4(_0x11981b,_0x22f38a){var _0x4ee16e=_0x22ddf1;_0x22f38a[_0x4ee16e('0x1d23')]?(_0x22f38a[_0x4ee16e('0x1d23')][_0x4ee16e('0x1fde')]=!![],_0x18c29f(null,_0x22f38a[_0x4ee16e('0x1d23')])):_0x3a227a[_0x4ee16e('0x853')]({'controller':_0x4ee16e('0xb47'),'controllerAs':'vm','templateUrl':_0x1aa985,'parent':angular[_0x4ee16e('0x1676')](_0x33567e[_0x4ee16e('0x2452')]),'clickOutsideToClose':![],'locals':{'account':_0x22f38a[_0x4ee16e('0x1fd3')],'message':_0x22f38a[_0x4ee16e('0x13fb')],'type':_0x4ee16e('0x939'),'interaction':{}},'fullscreen':!![]})['then'](function(_0x45486a){var _0x4840e1=_0x4ee16e;if(_0x45486a){if(_0x45486a[_0x4840e1('0x1224')]&&_0x45486a[_0x4840e1('0x1224')]['savedAsDraft']){var _0x10de43={'id':_0x22f38a['id'],'channel':_0x4840e1('0x1c8b'),'account':_0x45486a[_0x4840e1('0x1fd3')],'message':_0x45486a['message']};_0x178f25[_0x4840e1('0x5ef')](_0x10de43);}else{var _0x3b136b=_0x45486a;return _0x542e26[_0x4840e1('0x66')][_0x4840e1('0x2471')]({'id':_0x22f38a['account']['id']},_0x3b136b)[_0x4840e1('0x1376')][_0x4840e1('0x21ad')](function(_0x186e0c){var _0x44bb79=_0x4840e1;_0x178f25[_0x44bb79('0x16a2')](_0x22f38a['id']);if(_0x186e0c&&_0x186e0c[_0x44bb79('0x5d')]&&_0x186e0c['Messages'][_0x44bb79('0x577')]){if(_0x3b136b[_0x44bb79('0x2487')]&&_0x3b136b['attachments'][_0x44bb79('0x577')])for(var _0x197057=0x0;_0x197057<_0x3b136b[_0x44bb79('0x2487')][_0x44bb79('0x577')];_0x197057+=0x1){_0x542e26[_0x44bb79('0x8f0')]['update']({'id':_0x3b136b['attachments'][_0x197057]['id']},{'MailMessageId':_0x86640f()[_0x44bb79('0x454')](_0x186e0c['Messages'])['id']});}_0xa5d64e[_0x44bb79('0xdb1')]({'title':'Message\x20properly\x20sent!','msg':_0x44bb79('0x4b5')});if(_0x186e0c[_0x44bb79('0x14ba')]){_0x186e0c['disposition']=null;var _0x5d3e9d=!_0x22f38a[_0x44bb79('0x1fd3')]['mandatoryDisposition'],_0x2ee3d3=_0x2910c0[_0x44bb79('0x1775')][_0x44bb79('0x1025')]||_0x2910c0[_0x44bb79('0x1775')]['chatPause']||_0x2910c0[_0x44bb79('0x1775')][_0x44bb79('0x1396')]||_0x2910c0[_0x44bb79('0x1775')][_0x44bb79('0x2022')]||_0x2910c0['user'][_0x44bb79('0x23f5')];_0x3a227a[_0x44bb79('0x853')]({'controller':_0x44bb79('0x256e'),'controllerAs':'vm','templateUrl':_0x5b0a7e,'parent':angular[_0x44bb79('0x1676')](_0x33567e['body']),'onRemoving':function _0x3f4048(){var _0x2bdf32=_0x44bb79;_0x2910c0[_0x2bdf32('0x1775')]&&_0x22f38a[_0x2bdf32('0x1fd3')][_0x2bdf32('0x798')]&&!_0x2ee3d3&&_0x542e26[_0x2bdf32('0x1775')][_0x2bdf32('0xa8e')]({'id':_0x2910c0[_0x2bdf32('0x1775')]['id']})[_0x2bdf32('0x1376')][_0x2bdf32('0x1c1d')](function(_0x81382f){var _0x12147a=_0x2bdf32;console[_0x12147a('0x2092')](_0x81382f);});},'clickOutsideToClose':_0x5d3e9d,'escapeToClose':_0x5d3e9d,'locals':{'user':_0x2910c0[_0x44bb79('0x1775')],'channel':_0x44bb79('0x1c8b'),'interaction':_0x186e0c}});}else _0x99530[_0x44bb79('0x223d')]['vm'][_0x44bb79('0x11b4')](_0x44bb79('0x1c8b'),_0x186e0c);}})[_0x4840e1('0x1c1d')](function(_0x1de5cd){var _0x56ab83=_0x4840e1;if(_0x1de5cd[_0x56ab83('0x11c2')]&&_0x1de5cd[_0x56ab83('0x11c2')][_0x56ab83('0x1a69')]&&_0x1de5cd[_0x56ab83('0x11c2')][_0x56ab83('0x1a69')][_0x56ab83('0x577')])for(var _0x3d99b7=0x0;_0x3d99b7<_0x1de5cd[_0x56ab83('0x11c2')][_0x56ab83('0x1a69')]['length'];_0x3d99b7++){_0xa5d64e['error']({'title':_0x1de5cd[_0x56ab83('0x11c2')][_0x56ab83('0x1a69')][_0x3d99b7]['type'],'msg':_0x1de5cd[_0x56ab83('0x11c2')][_0x56ab83('0x1a69')][_0x3d99b7][_0x56ab83('0x1224')]});}else _0xa5d64e[_0x56ab83('0x2092')]({'title':_0x1de5cd['status']?_0x56ab83('0x22d')+_0x1de5cd[_0x56ab83('0x209')]+_0x56ab83('0xa99')+_0x1de5cd[_0x56ab83('0x1808')]:_0x56ab83('0xf2f'),'msg':_0x1de5cd[_0x56ab83('0x11c2')]?JSON[_0x56ab83('0x25e')](_0x1de5cd['data'][_0x56ab83('0x1224')]):_0x1de5cd[_0x56ab83('0x1224')]||_0x1de5cd[_0x56ab83('0x174f')]()});});}}});}function _0x1100eb(_0x1fdce5,_0x3cd17a){var _0x4d81e5=_0x22ddf1;_0x3a227a['show']({'controller':_0x4d81e5('0xb47'),'controllerAs':'vm','templateUrl':_0x1aa985,'parent':angular[_0x4d81e5('0x1676')](_0x33567e[_0x4d81e5('0x2452')]),'clickOutsideToClose':![],'locals':{'account':_0x3cd17a,'message':{},'type':'new','interaction':{}},'fullscreen':!![]})['then'](function(_0x216224){var _0x4826f0=_0x4d81e5;if(_0x216224){if(_0x216224[_0x4826f0('0x1224')]&&_0x216224[_0x4826f0('0x1224')][_0x4826f0('0x230b')]){var _0x2f702f={'channel':_0x4826f0('0x1c8b'),'account':_0x3cd17a,'message':_0x216224[_0x4826f0('0x1224')],'contact':_0x216224[_0x4826f0('0x150c')]};_0x178f25[_0x4826f0('0x1842')](_0x2f702f);}else{var _0x2aefb1=_0x216224;return _0x542e26[_0x4826f0('0x66')]['send']({'id':_0x3cd17a['id']},_0x2aefb1)['$promise'][_0x4826f0('0x21ad')](function(_0x28b022){var _0x3f21cc=_0x4826f0;if(_0x28b022&&_0x28b022['Messages']&&_0x28b022['Messages'][_0x3f21cc('0x577')]){if(_0x2aefb1[_0x3f21cc('0x2487')]&&_0x2aefb1[_0x3f21cc('0x2487')][_0x3f21cc('0x577')])for(var _0x1554f2=0x0;_0x1554f2<_0x2aefb1[_0x3f21cc('0x2487')]['length'];_0x1554f2+=0x1){_0x542e26['attachment']['update']({'id':_0x2aefb1[_0x3f21cc('0x2487')][_0x1554f2]['id']},{'MailMessageId':_0x86640f()['head'](_0x28b022[_0x3f21cc('0x5d')])['id']});}_0xa5d64e[_0x3f21cc('0xdb1')]({'title':_0x3f21cc('0xc07'),'msg':'Message\x20has\x20been\x20sent!'});if(_0x28b022[_0x3f21cc('0x14ba')]){_0x28b022[_0x3f21cc('0x22c8')]=null;var _0x237f13=!_0x3cd17a[_0x3f21cc('0x798')],_0x3412fa=_0x2910c0[_0x3f21cc('0x1775')][_0x3f21cc('0x1025')]||_0x2910c0[_0x3f21cc('0x1775')][_0x3f21cc('0x1785')]||_0x2910c0[_0x3f21cc('0x1775')][_0x3f21cc('0x1396')]||_0x2910c0[_0x3f21cc('0x1775')]['openchannelPause']||_0x2910c0[_0x3f21cc('0x1775')][_0x3f21cc('0x23f5')];_0x3a227a[_0x3f21cc('0x853')]({'controller':_0x3f21cc('0x256e'),'controllerAs':'vm','templateUrl':_0x5b0a7e,'parent':angular[_0x3f21cc('0x1676')](_0x33567e[_0x3f21cc('0x2452')]),'onRemoving':function _0x29d9f8(){var _0x1c37d1=_0x3f21cc;_0x2910c0[_0x1c37d1('0x1775')]&&_0x3cd17a[_0x1c37d1('0x798')]&&!_0x3412fa&&_0x542e26[_0x1c37d1('0x1775')][_0x1c37d1('0xa8e')]({'id':_0x2910c0[_0x1c37d1('0x1775')]['id']})[_0x1c37d1('0x1376')]['catch'](function(_0x333c50){var _0x3636b3=_0x1c37d1;console[_0x3636b3('0x2092')](_0x333c50);});},'clickOutsideToClose':_0x237f13,'escapeToClose':_0x237f13,'locals':{'user':_0x2910c0[_0x3f21cc('0x1775')],'channel':_0x3f21cc('0x1c8b'),'interaction':_0x28b022}});}else _0x99530[_0x3f21cc('0x223d')]['vm'][_0x3f21cc('0x11b4')](_0x3f21cc('0x1c8b'),_0x28b022);}})[_0x4826f0('0x1c1d')](function(_0x2e8dc4){var _0x3c7a0c=_0x4826f0;if(_0x2e8dc4['data']&&_0x2e8dc4[_0x3c7a0c('0x11c2')][_0x3c7a0c('0x1a69')]&&_0x2e8dc4[_0x3c7a0c('0x11c2')]['errors']['length'])for(var _0x1676f2=0x0;_0x1676f2<_0x2e8dc4['data'][_0x3c7a0c('0x1a69')]['length'];_0x1676f2++){_0xa5d64e[_0x3c7a0c('0x2092')]({'title':_0x2e8dc4['data']['errors'][_0x1676f2][_0x3c7a0c('0x7fa')],'msg':_0x2e8dc4[_0x3c7a0c('0x11c2')]['errors'][_0x1676f2]['message']});}else _0xa5d64e[_0x3c7a0c('0x2092')]({'title':_0x2e8dc4[_0x3c7a0c('0x209')]?_0x3c7a0c('0x22d')+_0x2e8dc4[_0x3c7a0c('0x209')]+_0x3c7a0c('0xa99')+_0x2e8dc4[_0x3c7a0c('0x1808')]:_0x3c7a0c('0xf2f'),'msg':_0x2e8dc4['data']?JSON['stringify'](_0x2e8dc4[_0x3c7a0c('0x11c2')][_0x3c7a0c('0x1224')]):_0x2e8dc4[_0x3c7a0c('0x1224')]||_0x2e8dc4[_0x3c7a0c('0x174f')]()});});}}});}function _0x59852b(_0x1e1efb){var _0x56989d=_0x22ddf1,_0xdfc477,_0x3853d9=_0x86640f()[_0x56989d('0x1d2e')](_0x2910c0[_0x56989d('0x1709')][_0x56989d('0x1b33')],{'id':_0x1e1efb[_0x56989d('0x164f')]});_0x3853d9&&_0x3853d9[_0x56989d('0x6cc')]&&(_0xdfc477=_0x86640f()[_0x56989d('0x1d2e')](_0x3853d9[_0x56989d('0x6cc')],{'id':_0x1e1efb[_0x56989d('0x1dc6')]}),!_0xdfc477&&_0x3853d9[_0x56989d('0x6cc')]['push']({'id':_0x1e1efb[_0x56989d('0x1dc6')]}));}function _0x3c5435(_0x1da167){var _0x5a4410=_0x22ddf1,_0x189b89=_0x86640f()[_0x5a4410('0x1d2e')](_0x2910c0[_0x5a4410('0x1709')]['rows'],{'id':_0x1da167['MailInteractionId']});_0x189b89&&_0x189b89['Users']&&_0x86640f()['remove'](_0x189b89['Users'],{'id':_0x1da167[_0x5a4410('0x1dc6')]});}function _0x15b1a0(_0x252af1){var _0x31fb30=_0x22ddf1;if(_0x252af1){var _0x314f78=_0x86640f()[_0x31fb30('0x1d2e')](_0x2910c0[_0x31fb30('0x1709')][_0x31fb30('0x1b33')],{'id':_0x252af1['id']});if(_0x314f78){_0x314f78[_0x31fb30('0x6cc')]=[];_0x252af1[_0x31fb30('0x14ba')]&&(_0x314f78['unreadMessages']=0x0);if(_0x2910c0[_0x31fb30('0x77')]['sort']){var _0x42a37d=_0x86640f()[_0x31fb30('0x2837')](_0x2910c0[_0x31fb30('0x77')][_0x31fb30('0x1944')],'-')?_0x31fb30('0x340'):_0x31fb30('0x15d6');_0x2910c0[_0x31fb30('0x1709')][_0x31fb30('0x1b33')]=_0x86640f()['orderBy'](_0x2910c0['mailInteractions'][_0x31fb30('0x1b33')],_0x86640f()['trimStart'](_0x2910c0[_0x31fb30('0x77')][_0x31fb30('0x1944')],'-'),_0x42a37d);}_0x86640f()[_0x31fb30('0xd0e')](_0x314f78,_0x86640f()[_0x31fb30('0xc50')](_0x252af1,_0x86640f()['keys'](_0x314f78)));}else _0x33c623(_0x2910c0['query'][_0x31fb30('0x2376')]);}}function _0x2507bc(_0x5445f8){var _0x35fdab=_0x22ddf1;if(_0x5445f8){var _0x1fa5e8=_0x86640f()[_0x35fdab('0x1d2e')](_0x2910c0[_0x35fdab('0x1709')]['rows'],{'id':_0x5445f8['id']});_0x1fa5e8&&(_0x1fa5e8[_0x35fdab('0x557')]=_0x5445f8[_0x35fdab('0x1889')]||[],_0x86640f()[_0x35fdab('0xd0e')](_0x1fa5e8,_0x86640f()['pick'](_0x5445f8,_0x86640f()[_0x35fdab('0x223b')](_0x1fa5e8))));}}function _0x2fc0c0(_0x5ba15c){var _0x2d6c4f=_0x22ddf1;if(_0x5ba15c&&!_0x5ba15c['secret']){var _0xe79449=_0x86640f()[_0x2d6c4f('0x1d2e')](_0x2910c0['mailInteractions'][_0x2d6c4f('0x1b33')],{'id':_0x5ba15c[_0x2d6c4f('0x164f')]});if(_0xe79449){var _0x52d2f1=_0x86640f()[_0x2d6c4f('0x1d2e')](_0xe79449[_0x2d6c4f('0x5d')],{'id':_0x5ba15c['id']});_0x52d2f1?_0x86640f()[_0x2d6c4f('0xd0e')](_0x52d2f1,_0x86640f()['pick'](_0x5ba15c,_0x86640f()[_0x2d6c4f('0x223b')](_0x52d2f1))):(_0x86640f()[_0x2d6c4f('0x1c7')](_0xe79449[_0x2d6c4f('0x5d')])&&(_0xe79449[_0x2d6c4f('0x5d')]={'count':0x0}),!_0x5ba15c[_0x2d6c4f('0x14ee')]&&(_0xe79449['Messages'][_0x2d6c4f('0x205f')]+=0x1));}}}function _0x2d078b(){_0x2910c0['isSearchBarVisible']=![];}function _0x2f8fd5(){var _0x34ee4a=_0x22ddf1;_0x2910c0[_0x34ee4a('0x146a')]=!![];}function _0x533dcd(){var _0x37514b=_0x22ddf1;_0x2910c0[_0x37514b('0x146a')]=![],_0x3a227a['show']({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0x44f47e,'parent':angular[_0x37514b('0x1676')](_0x33567e[_0x37514b('0x2452')]),'clickOutsideToClose':![],'locals':{'color':_0x2910c0[_0x37514b('0x1419')],'fields':_0x2910c0[_0x37514b('0x2211')][_0x37514b('0x181e')],'storagePath':'home.mail'},'fullscreen':!![]})[_0x37514b('0x21ad')](function(_0x5f543f){var _0x33b66a=_0x37514b;_0x2910c0['query'][_0x33b66a('0x24e7')]=_0x5f543f===![]?undefined:_0x5f543f;if(_0x2910c0[_0x33b66a('0x77')][_0x33b66a('0x24e7')]||_0x5f543f===![])_0x33c623();})[_0x37514b('0x1c1d')](function(_0x2785b2){var _0x142cd8=_0x37514b;_0xa5d64e[_0x142cd8('0x2092')]({'title':'ERROR','msg':_0x2785b2[_0x142cd8('0x11c2')]?JSON[_0x142cd8('0x25e')](_0x2785b2['data'][_0x142cd8('0x1224')]):_0x2785b2[_0x142cd8('0x174f')]()});});}var _0x3be17e=!![],_0x4f9cc1=0x1;_0x99530[_0x22ddf1('0x10e8')](_0x22ddf1('0x1948'),function(_0x525979,_0x327931){var _0x5c14c8=_0x22ddf1;_0x3be17e?_0x54f8b8(function(){_0x3be17e=![];}):(!_0x327931&&(_0x4f9cc1=_0x2910c0[_0x5c14c8('0x77')][_0x5c14c8('0x2376')]),_0x525979!==_0x327931&&(_0x2910c0[_0x5c14c8('0x77')]['page']=0x1),!_0x525979&&(_0x2910c0[_0x5c14c8('0x77')]['page']=_0x4f9cc1),_0x33c623(_0x2910c0['query'][_0x5c14c8('0x2376')]));}),_0x99530['$on'](_0x22ddf1('0x1210'),function(){var _0x70fb0b=_0x22ddf1;_0x242936['removeAllListeners'](_0x70fb0b('0xd83')),_0x242936[_0x70fb0b('0x16cc')]('mailMessage:update'),_0x242936[_0x70fb0b('0x16cc')](_0x70fb0b('0x251c')),_0x242936[_0x70fb0b('0x16cc')](_0x70fb0b('0x1ce3')),_0x242936[_0x70fb0b('0x16cc')](_0x70fb0b('0x1719')),_0x242936[_0x70fb0b('0x16cc')](_0x70fb0b('0x1493')),_0x242936[_0x70fb0b('0x16cc')]('user_has_mail_interactions:remove');});}const _0x2b4fa9=_0x4ab6ec;_0x3fe50d[_0x3877e3('0x1a81')]=['$document',_0x3877e3('0x95a'),_0x3877e3('0x2313'),_0x3877e3('0x1850'),'Auth',_0x3877e3('0xccd'),'$window',_0x3877e3('0x1908')];function _0x3fe50d(_0x509646,_0x2a545e,_0x5b89f9,_0x2560c5,_0x519195,_0x2a5fe3,_0xf9bb4,_0x12b2c6){var _0x51664d=_0x3877e3,_0x1b6329=this;_0x1b6329[_0x51664d('0x123f')]=_0x519195[_0x51664d('0x15ed')](),_0x1b6329['lists']={},_0x1b6329['contacts']={'count':0x0,'rows':[]},_0x1b6329[_0x51664d('0x1889')]={'count':0x0,'rows':[]},_0x1b6329[_0x51664d('0x77')]={'includeAll':!![],'id':_0x1b6329[_0x51664d('0x123f')]['id'],'sort':_0x51664d('0x33'),'limit':0xa,'page':0x1},_0x1b6329[_0x51664d('0x2211')]={'fields':[]},_0x1b6329[_0x51664d('0x1419')]=_0x51664d('0x1b84'),_0x1b6329[_0x51664d('0x1a4b')]=_0x3abe06,_0x1b6329[_0x51664d('0x813')]=_0x58eb71,_0x1b6329[_0x51664d('0xe9f')]=_0xe7a80c,_0x1b6329[_0x51664d('0x13a6')]=_0x33dbee,_0x1b6329[_0x51664d('0x23d1')]=_0x407123,_0x1b6329[_0x51664d('0xdc2')]=_0x2a545e[_0x51664d('0x223d')]['vm'][_0x51664d('0xdc2')],_0x1b6329[_0x51664d('0x1081')]=_0x11ce38,_0x1b6329[_0x51664d('0x21f9')]=_0x19d939,_0x1b6329[_0x51664d('0x1bf6')]=_0x5ea22b,_0x1b6329['openAdvancedSearch']=_0x162938;function _0x11ce38(){var _0xe5b73c=_0x51664d;_0x2a5fe3[_0xe5b73c('0x11e0')][_0xe5b73c('0x595')]({'fields':'id,name,dialPrefix','sort':_0xe5b73c('0x19fe'),'nolimit':!![]})[_0xe5b73c('0x1376')]['then'](function(_0x41998a){var _0x7b37e7=_0xe5b73c;return _0x1b6329[_0x7b37e7('0x1972')]=_0x41998a||{'count':0x0,'rows':[]},_0x1b6329[_0x7b37e7('0x249')]=_0x86640f()[_0x7b37e7('0xcde')](_0x1b6329['lists'][_0x7b37e7('0x1b33')],'id'),_0x2a5fe3[_0x7b37e7('0x907')][_0x7b37e7('0x595')]()[_0x7b37e7('0x1376')];})[_0xe5b73c('0x21ad')](function(_0x4d68bc){var _0x37d7ea=_0xe5b73c;_0x1b6329[_0x37d7ea('0x1889')]=_0x4d68bc||{'count':0x0,'rows':[]};})[_0xe5b73c('0x21ad')](function(){var _0x502169=_0xe5b73c;_0x1b6329[_0x502169('0x2255')]=_0x1c5d1e();})[_0xe5b73c('0x1c1d')](function(_0x27402d){var _0x140843=_0xe5b73c;console[_0x140843('0x2092')](_0x27402d);})['finally'](function(){var _0x26e37d=_0xe5b73c,_0x2a7ea0=_0xf9bb4[_0x26e37d('0x161e')][_0x26e37d('0x633')](_0x26e37d('0x20c0')+_0x1b6329[_0x26e37d('0x123f')]['id']);if(_0x2a7ea0)try{_0x2a7ea0=JSON['parse'](_0x2a7ea0);if(_0x2a7ea0[_0x26e37d('0x77')]){_0x1b6329[_0x26e37d('0x77')]=_0x86640f()[_0x26e37d('0xd0e')](_0x1b6329[_0x26e37d('0x77')],_0x2a7ea0[_0x26e37d('0x77')]);if(_0x86640f()[_0x26e37d('0x23aa')](_0x1b6329[_0x26e37d('0x1972')][_0x26e37d('0x1b33')]))_0x1b6329['query'][_0x26e37d('0x815')]=[];else _0x86640f()[_0x26e37d('0x23aa')](_0x1b6329['query']['ListId'])&&(_0x1b6329[_0x26e37d('0x77')][_0x26e37d('0x815')]=_0x86640f()(_0x1b6329[_0x26e37d('0x1972')]['rows'])['map']('id')[_0x26e37d('0x11b0')]()['value']());}}catch(_0x28b6ab){console['error'](_0x28b6ab);}else _0x1b6329[_0x26e37d('0x77')][_0x26e37d('0x815')]=_0x86640f()[_0x26e37d('0x26c3')](_0x1b6329[_0x26e37d('0x1972')][_0x26e37d('0x1b33')],'id');_0x1b6329[_0x26e37d('0x146a')]=_0x1b6329[_0x26e37d('0x77')][_0x26e37d('0x1503')]?!![]:![],_0x3abe06();});}function _0x1c5d1e(){var _0x235d4d=_0x51664d;return[{'name':_0x235d4d('0x9cf'),'key':_0x235d4d('0x815'),'type':_0x235d4d('0x91f'),'label':_0x235d4d('0x2736'),'options':_0x1b6329['lists'][_0x235d4d('0x1b33')],'clearAll':![]},{'name':_0x235d4d('0x295'),'key':'tag','type':'multiselect','label':'DASHBOARDS.SELECT_TAG','options':_0x1b6329[_0x235d4d('0x1889')][_0x235d4d('0x1b33')],'placeholder':_0x235d4d('0xb1c')}];}function _0x59769a(_0x4f4b16){var _0x4d6574=_0x51664d;_0x1b6329[_0x4d6574('0x1fcd')]=![],_0x1b6329[_0x4d6574('0x2814')]=_0x4f4b16||{'count':0x0,'rows':[]};}function _0x3abe06(_0x457dc0){var _0x22e775=_0x51664d;_0x1b6329[_0x22e775('0x1fcd')]=!![],_0xbef40f();!_0x457dc0&&(_0x1b6329[_0x22e775('0x77')][_0x22e775('0x2376')]=0x1);_0x1b6329['query'][_0x22e775('0x15a5')]=(_0x1b6329['query'][_0x22e775('0x2376')]-0x1)*_0x1b6329['query']['limit'];var _0x3a5b48=_0xf9bb4[_0x22e775('0x161e')][_0x22e775('0x633')]('motion2.home.mycontacts:'+_0x1b6329['currentUser']['id']);_0x3a5b48=_0x3a5b48?JSON[_0x22e775('0x399')](_0x3a5b48):{},_0x3a5b48[_0x22e775('0x77')]=_0x1b6329[_0x22e775('0x77')],_0xf9bb4[_0x22e775('0x161e')][_0x22e775('0x1014')](_0x22e775('0x20c0')+_0x1b6329[_0x22e775('0x123f')]['id'],JSON[_0x22e775('0x25e')](_0x3a5b48));if(_0x1b6329['query'][_0x22e775('0x24e7')])_0x1b6329[_0x22e775('0x1f8c')]=_0x86640f()[_0x22e775('0x27b1')](_0x1b6329['query'],'id');_0x1b6329['promise']=_0x1b6329[_0x22e775('0x77')][_0x22e775('0x24e7')]?_0x2a5fe3['cmContact'][_0x22e775('0x595')](_0x1b6329[_0x22e775('0x1f8c')],_0x59769a)[_0x22e775('0x1376')]:_0x2a5fe3[_0x22e775('0x1775')]['getContacts'](_0x1b6329['query'],_0x59769a)[_0x22e775('0x1376')];}function _0x407123(_0x3203f6,_0x235086){var _0x436c30=_0x51664d;_0x2a545e['$parent']['vm'][_0x436c30('0x110d')](_0x235086);}function _0x58eb71(){_0x3abe06();}function _0x33dbee(_0x1f4e13,_0x249811){var _0x1322c2=_0x51664d;_0x2560c5[_0x1322c2('0x853')]({'controller':_0x1322c2('0x18e5'),'controllerAs':'vm','templateUrl':_0x5e562c,'parent':angular[_0x1322c2('0x1676')](_0x509646[_0x1322c2('0x2452')]),'targetEvent':_0x1f4e13,'clickOutsideToClose':!![],'resolve':{'contact':[_0x1322c2('0x354'),function _0x630def(_0x2402b7){var _0x4801fc=_0x1322c2;return _0x2402b7[_0x4801fc('0x8ac')](_0x4801fc('0x259d'),{'id':_0x249811['id']});}],'lists':[_0x1322c2('0x354'),function _0x3a47d4(_0x562159){var _0x627b18=_0x1322c2;return _0x562159[_0x627b18('0x8ac')](_0x627b18('0x4ac'),{'id':_0x1b6329[_0x627b18('0x123f')]['id'],'fields':_0x627b18('0x1aa8')});}]},'locals':{'contacts':_0x1b6329['contacts'][_0x1322c2('0x1b33')]}});}function _0xe7a80c(_0x14e3cb,_0x541895){var _0x699145=_0x51664d;_0x2560c5[_0x699145('0x853')]({'controller':_0x699145('0x261d'),'controllerAs':'vm','templateUrl':_0x330672,'parent':angular[_0x699145('0x1676')](_0x509646[_0x699145('0x2452')]),'targetEvent':_0x14e3cb,'clickOutsideToClose':!![],'resolve':{'contact':[_0x699145('0x354'),function _0x501732(_0x1d8374){var _0x5204c4=_0x699145;return _0x1d8374[_0x5204c4('0x8ac')](_0x5204c4('0x259d'),{'id':_0x541895['id']});}],'lists':[_0x699145('0x354'),function _0x2fda89(_0x77f9ff){var _0x12b3fb=_0x699145;return _0x77f9ff[_0x12b3fb('0x8ac')](_0x12b3fb('0x4ac'),{'id':_0x1b6329['currentUser']['id'],'fields':_0x12b3fb('0x1aa8')});}]},'locals':{'contacts':_0x1b6329['contacts'][_0x699145('0x1b33')]}});}function _0x19d939(){var _0x4a0009=_0x51664d;_0x1b6329[_0x4a0009('0x146a')]=![];}function _0x5ea22b(){var _0x36c864=_0x51664d;_0x1b6329[_0x36c864('0x146a')]=!![];}function _0xbef40f(){var _0x28bd1a=_0x51664d;return _0x2a5fe3[_0x28bd1a('0x25dc')][_0x28bd1a('0x1219')]({'id':_0x1b6329[_0x28bd1a('0x77')][_0x28bd1a('0x815')]})['$promise'][_0x28bd1a('0x21ad')](function(_0x172fd7){var _0x1595c7=_0x28bd1a;return _0x86640f()(_0x172fd7[_0x1595c7('0x3bc')]())[_0x1595c7('0x27b1')](_0x1595c7('0x1dc6'))['values']()[_0x1595c7('0x26c3')](function(_0x4d24c3){return _0x3bb546(_0x4d24c3);})[_0x1595c7('0x2228')]();})[_0x28bd1a('0x21ad')](function(_0x529fd4){var _0xd46eba=_0x28bd1a;_0x1b6329[_0xd46eba('0x2211')][_0xd46eba('0x181e')]=_0x529fd4;var _0x1fb08a={'name':_0xd46eba('0x557'),'column':_0xd46eba('0x295'),'type':_0xd46eba('0x91f'),'options':{'route':{'model':_0xd46eba('0x907'),'action':_0xd46eba('0x595'),'params':{'nolimit':!![]}},'excludedOperators':[_0xd46eba('0x23')]}},_0x9d4aa7=_0x86640f()[_0xd46eba('0x127')](_0x529fd4,function(_0x332135){var _0x40c863=_0xd46eba;return _0x86640f()[_0x40c863('0x2837')](_0x332135['column'],_0x40c863('0x714'));})||_0x529fd4[_0xd46eba('0x577')]-0x1;if(_0x9d4aa7<0x0)_0x9d4aa7=_0x529fd4['length'];_0x1b6329[_0xd46eba('0x2211')]['fields'][_0xd46eba('0xafe')](_0x9d4aa7,0x0,_0x1fb08a);})['catch'](function(_0x3fd075){var _0x1eb1b7=_0x28bd1a;_0x12b2c6[_0x1eb1b7('0x2092')]({'title':_0x3fd075[_0x1eb1b7('0x209')]?_0x1eb1b7('0x22d')+_0x3fd075[_0x1eb1b7('0x209')]+_0x1eb1b7('0xa99')+_0x3fd075[_0x1eb1b7('0x1808')]:_0x1eb1b7('0x8ae'),'msg':_0x3fd075[_0x1eb1b7('0x11c2')]?JSON['stringify'](_0x3fd075[_0x1eb1b7('0x11c2')][_0x1eb1b7('0x1224')]):_0x3fd075[_0x1eb1b7('0x174f')]()});});}function _0x3bb546(_0x53d625){var _0x54afea=_0x51664d,_0x1bce11={'name':_0x86640f()[_0x54afea('0x2159')](_0x53d625[_0x54afea('0x11fc')]),'column':_0x53d625[_0x54afea('0xe85')],'options':{}};if(_0x53d625[_0x54afea('0xf50')])switch(_0x53d625['custom'][_0x54afea('0x7fa')]){case _0x54afea('0xc1e'):_0x1bce11[_0x54afea('0x7fa')]='text';break;case _0x54afea('0x2844'):_0x1bce11['type']=_0x54afea('0x91f'),_0x1bce11['values']=_0x86640f()[_0x54afea('0x26c3')](JSON[_0x54afea('0x399')](_0x53d625[_0x54afea('0xf50')][_0x54afea('0x1843')]),function(_0x1137be,_0xa892e7){var _0x352e28=_0x54afea;return{'id':_0xa892e7,'name':_0x1137be[_0x352e28('0x2228')],'value':_0x1137be[_0x352e28('0x2228')]};}),_0x1bce11[_0x54afea('0x26a0')]['field']=_0x54afea('0x19fe');break;case'switch':_0x1bce11[_0x54afea('0x7fa')]=_0x54afea('0x2844'),_0x1bce11[_0x54afea('0x1843')]=[{'id':0x1,'translate':'DASHBOARDS.ENABLED'},{'id':0x0,'translate':'DASHBOARDS.DISABLED'}],_0x1bce11[_0x54afea('0x26a0')][_0x54afea('0x198')]=['$ne'];break;case _0x54afea('0xed8'):_0x1bce11[_0x54afea('0x7fa')]=_0x54afea('0xed8');break;case'datetime':_0x1bce11[_0x54afea('0x7fa')]=_0x54afea('0x2457');break;}else switch(_0x53d625[_0x54afea('0xe85')]){case _0x54afea('0x20bc'):_0x1bce11[_0x54afea('0x7fa')]='date';break;case'CompanyId':_0x1bce11[_0x54afea('0x19fe')]=_0x54afea('0x214f'),_0x1bce11[_0x54afea('0x7fa')]=_0x54afea('0x175c'),_0x1bce11[_0x54afea('0x26a0')][_0x54afea('0x25ee')]={'model':_0x54afea('0x2725'),'action':_0x54afea('0x595'),'params':{'fields':_0x54afea('0x1aa8'),'nolimit':!![]}},_0x1bce11[_0x54afea('0x26a0')][_0x54afea('0x1209')]=[_0x54afea('0x19fe')],_0x1bce11[_0x54afea('0x26a0')]['excludedOperators']=['$ne'];break;case _0x54afea('0x815'):_0x1bce11['name']=_0x54afea('0x9cf'),_0x1bce11[_0x54afea('0x7fa')]=_0x54afea('0x175c'),_0x1bce11[_0x54afea('0x26a0')][_0x54afea('0x25ee')]={'model':'user','action':_0x54afea('0x130'),'params':{'id':_0x1b6329[_0x54afea('0x123f')]['id'],'fields':_0x54afea('0x1aa8'),'nolimit':!![]}},_0x1bce11[_0x54afea('0x26a0')][_0x54afea('0x1209')]=['name'],_0x1bce11[_0x54afea('0x26a0')]['excludedOperators']=[_0x54afea('0x3fe')];break;default:if(_0x86640f()[_0x54afea('0xb34')](_0x53d625[_0x54afea('0x7fa')][_0x54afea('0xac2')](),'int'))_0x1bce11['type']=_0x54afea('0xed8');else _0x86640f()[_0x54afea('0xb34')](_0x53d625['type'][_0x54afea('0xac2')](),_0x54afea('0x2457'))?_0x1bce11['type']='date':_0x1bce11['type']='text';break;}return _0x1bce11;}function _0x162938(){var _0xf5f33=_0x51664d;_0x1b6329[_0xf5f33('0x146a')]=![],_0x2560c5[_0xf5f33('0x853')]({'controller':_0xf5f33('0xde1'),'controllerAs':'vm','templateUrl':_0x44f47e,'parent':angular[_0xf5f33('0x1676')](_0x509646[_0xf5f33('0x2452')]),'clickOutsideToClose':![],'locals':{'color':_0x1b6329[_0xf5f33('0x1419')],'fields':_0x1b6329[_0xf5f33('0x2211')]['fields'],'storagePath':_0xf5f33('0x2850')},'fullscreen':!![]})[_0xf5f33('0x21ad')](function(_0x5d888d){var _0x26139e=_0xf5f33;_0x1b6329[_0x26139e('0x77')][_0x26139e('0x24e7')]=_0x5d888d===![]?undefined:_0x5d888d;if(_0x5d888d===![])_0x3abe06();else _0x1b6329[_0x26139e('0x77')]['search']&&(_0x1b6329[_0x26139e('0x77')][_0x26139e('0x24e7')]+=_0x26139e('0x236b')+_0x1b6329[_0x26139e('0x123f')]['id']+']',_0x3abe06());})[_0xf5f33('0x1c1d')](function(_0x4ec8e5){var _0x334ed1=_0xf5f33;_0x12b2c6[_0x334ed1('0x2092')]({'title':'ERROR','msg':_0x4ec8e5[_0x334ed1('0x11c2')]?JSON[_0x334ed1('0x25e')](_0x4ec8e5['data'][_0x334ed1('0x1224')]):_0x4ec8e5[_0x334ed1('0x174f')]()});});}var _0x5b2dc4=!![],_0x50f32f=0x1;_0x2a545e[_0x51664d('0x10e8')](_0x51664d('0x1948'),function(_0xc0b5c6,_0x4d67d1){var _0x2024e8=_0x51664d;_0x5b2dc4?_0x5b89f9(function(){_0x5b2dc4=![];}):(!_0x4d67d1&&(_0x50f32f=_0x1b6329[_0x2024e8('0x77')]['page']),_0xc0b5c6!==_0x4d67d1&&(_0x1b6329['query'][_0x2024e8('0x2376')]=0x1),!_0xc0b5c6&&(_0x1b6329[_0x2024e8('0x77')]['page']=_0x50f32f),_0x3abe06());});}const _0x54007a=_0x3fe50d;_0x544f94[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x24e1'),'$translate',_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x25d8'),_0x3877e3('0x1908'),_0x3877e3('0x2113')];function _0x544f94(_0x1f1631,_0x37e085,_0xab4d02,_0x287077,_0x215f8f,_0x2a1c42,_0x5cfb5b,_0x1a3b56,_0x402830,_0x3061ee,_0x524505){var _0x4e08a0=_0x3877e3,_0xa1c972=this;_0xa1c972[_0x4e08a0('0x1775')]=_0x1a3b56['getCurrentUser'](),_0xa1c972['license']={},_0xa1c972[_0x4e08a0('0x21e')]={},_0xa1c972[_0x4e08a0('0x1889')]={'count':0x0,'rows':[]},_0xa1c972['openchannelInteractions']={'count':0x0,'rows':[]},_0xa1c972[_0x4e08a0('0x77')]={'includeAll':!![],'sort':_0x4e08a0('0x33'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0xa1c972[_0x4e08a0('0x2211')]={'fields':[{'name':'Id','column':'id','type':_0x4e08a0('0xed8')},{'name':_0x4e08a0('0x1d10'),'column':_0x4e08a0('0x1d10'),'type':_0x4e08a0('0x175c'),'options':{'searchFields':[_0x4e08a0('0x992'),_0x4e08a0('0x6d'),_0x4e08a0('0x2822')],'route':{'model':_0x4e08a0('0x25dc'),'action':'get','params':{'fields':_0x4e08a0('0x2704'),'Contact':_0x4e08a0('0x169e'),'nolimit':!![]}},'extraOperators':[_0x4e08a0('0xb58')],'excludedOperators':[_0x4e08a0('0x3fe')]}},{'name':_0x4e08a0('0x1108'),'column':_0x4e08a0('0x2452'),'type':_0x4e08a0('0xc1e'),'options':{'excludedOperators':[_0x4e08a0('0x940'),_0x4e08a0('0x3fe')]}},{'name':_0x4e08a0('0x843'),'column':_0x4e08a0('0x14ba'),'type':_0x4e08a0('0x2844'),'values':[{'id':0x0,'translate':_0x4e08a0('0x19e2')},{'id':0x1,'translate':_0x4e08a0('0x11d2')}],'options':{'excludedOperators':[_0x4e08a0('0x3fe')]}},{'name':_0x4e08a0('0x1a44'),'column':'User','type':'autocomplete','options':{'table':'i','route':{'model':'user','action':_0x4e08a0('0x595'),'params':{'role':'agent','fields':'id,name,fullname','nolimit':!![]}},'searchFields':[_0x4e08a0('0x20f5'),_0x4e08a0('0x19fe')],'extraOperators':[_0x4e08a0('0xb58')],'excludedOperators':[_0x4e08a0('0x3fe')]}},{'name':_0x4e08a0('0x5f0'),'column':'OpenchannelAccountId','type':_0x4e08a0('0x91f'),'options':{'route':{'model':'user','action':'getOpenchannelAccounts','params':{'id':_0xa1c972['user']['id'],'nolimit':!![]}}}},{'name':_0x4e08a0('0x557'),'column':'Tag','type':_0x4e08a0('0x91f'),'options':{'route':{'model':_0x4e08a0('0x907'),'action':_0x4e08a0('0x595'),'params':{'nolimit':!![]}},'excludedOperators':[_0x4e08a0('0x23')]}},{'name':_0x4e08a0('0x18a1'),'column':_0x4e08a0('0x23ae'),'type':_0x4e08a0('0x2457'),'options':{'excludedOperators':[_0x4e08a0('0x3fe')]}},{'name':_0x4e08a0('0x1715'),'column':'unreadMessages','type':'select','values':[{'id':0x1,'translate':_0x4e08a0('0x629')},{'id':0x0,'translate':_0x4e08a0('0x1799')}],'options':{'excludedOperators':[_0x4e08a0('0x3fe')]}}]},_0xa1c972[_0x4e08a0('0x1419')]='amber',_0xa1c972[_0x4e08a0('0x1081')]=_0xcd2b50,_0xa1c972[_0x4e08a0('0xdb1')]=_0x10710b,_0xa1c972[_0x4e08a0('0xcad')]=_0x41ade1,_0xa1c972[_0x4e08a0('0x49a')]=_0x1fe27f,_0xa1c972[_0x4e08a0('0x802')]=_0x58009a,_0xa1c972[_0x4e08a0('0x125c')]=_0x54c3b6,_0xa1c972[_0x4e08a0('0x1e9d')]=_0x3b131e,_0xa1c972[_0x4e08a0('0x12b5')]=_0x577d8f,_0xa1c972['getOpenchannelAccountLabel']=_0x52b00e,_0xa1c972[_0x4e08a0('0x15bf')]=_0x442a6b,_0xa1c972['onSearchBarCollapse']=_0x38c353,_0xa1c972[_0x4e08a0('0x1bf6')]=_0xb0226c,_0xa1c972[_0x4e08a0('0x7e3')]=_0x1ba3e9;function _0xcd2b50(_0x249f88,_0x4babf9){var _0x2098a8=_0x4e08a0;return _0xa1c972[_0x2098a8('0x2ff')]=_0x249f88,_0xa1c972['setting']=_0x4babf9,_0x5cfb5b['user'][_0x2098a8('0x595')+_0x86640f()[_0x2098a8('0x22e')]('openchannelAccounts')]({'id':_0xa1c972[_0x2098a8('0x1775')]['id'],'nolimit':!![]})[_0x2098a8('0x1376')][_0x2098a8('0x21ad')](function(_0x135802){var _0x4b8cc2=_0x2098a8;return _0xa1c972[_0x4b8cc2('0x226c')]=_0x135802||{'count':0x0,'rows':[]},_0x5cfb5b[_0x4b8cc2('0x907')][_0x4b8cc2('0x595')]()[_0x4b8cc2('0x1376')];})[_0x2098a8('0x21ad')](function(_0x1869c2){var _0x4a0b99=_0x2098a8;_0xa1c972[_0x4a0b99('0x1889')]=_0x1869c2||{'count':0x0,'rows':[]};})[_0x2098a8('0x21ad')](function(){var _0x3ef62b=_0x2098a8;_0xa1c972[_0x3ef62b('0x2255')]=_0x1108de();})[_0x2098a8('0x1c1d')](function(_0x5930eb){var _0xc93912=_0x2098a8;console[_0xc93912('0x2092')](_0x5930eb);})[_0x2098a8('0x13e')](function(){var _0x3998ce=_0x2098a8,_0x5b2096=_0x215f8f['localStorage'][_0x3998ce('0x633')]('motion2.home.openchannel:'+_0xa1c972[_0x3998ce('0x1775')]['id']);if(_0x5b2096)try{_0x5b2096=JSON[_0x3998ce('0x399')](_0x5b2096);if(_0x5b2096[_0x3998ce('0x77')]){_0xa1c972[_0x3998ce('0x77')]=_0x86640f()['merge'](_0xa1c972[_0x3998ce('0x77')],_0x5b2096['query']);if(_0x86640f()[_0x3998ce('0x23aa')](_0xa1c972[_0x3998ce('0x226c')][_0x3998ce('0x1b33')]))_0xa1c972['query'][_0x3998ce('0xc92')]=[];else _0x86640f()[_0x3998ce('0x23aa')](_0xa1c972['query'][_0x3998ce('0xc92')])&&(_0xa1c972['query'][_0x3998ce('0xc92')]=_0x86640f()(_0xa1c972[_0x3998ce('0x226c')][_0x3998ce('0x1b33')])[_0x3998ce('0x26c3')]('id')[_0x3998ce('0x11b0')]()['value']());_0xa1c972['query'][_0x3998ce('0x1944')]&&_0xa1c972[_0x3998ce('0x77')]['sort'][_0x3998ce('0x2004')](_0x3998ce('0x961'))>=0x0&&(_0xa1c972['query']=_0x86640f()[_0x3998ce('0x27b1')](_0xa1c972[_0x3998ce('0x77')],_0x3998ce('0x1944'))),_0xa1c972['query'][_0x3998ce('0x282f')]=!![],_0xa1c972[_0x3998ce('0x146a')]=_0xa1c972['query'][_0x3998ce('0x1503')]?!![]:![];}}catch(_0x54fe1d){console[_0x3998ce('0x2092')](_0x54fe1d);}else{var _0x40f1f6={'$gte':_0x1088bc()()['startOf'](_0x3998ce('0xb64'))[_0x3998ce('0x215e')](0x0,!![])[_0x3998ce('0x153')](),'$lte':_0x1088bc()()[_0x3998ce('0x117b')]('month')[_0x3998ce('0x215e')](0x0,!![])['format']()},_0x474289={'OpenchannelAccountId':_0x86640f()[_0x3998ce('0x26c3')](_0xa1c972[_0x3998ce('0x226c')]['rows'],'id'),'createdAt':_0x40f1f6};_0xa1c972['query']=_0x86640f()[_0x3998ce('0xd0e')](_0xa1c972['query'],_0x474289);}_0x402830['on'](_0x3998ce('0x196a'),_0x120fcd),_0x402830['on'](_0x3998ce('0x6cf'),_0x120fcd),_0x402830['on'](_0x3998ce('0xb2c'),_0x337ea4),_0x402830['on']('openchannelMessage:save',_0x525cfd),_0x402830['on'](_0x3998ce('0x1cf'),_0x525cfd),_0x402830['on'](_0x3998ce('0x541'),_0x3bcd2c),_0x402830['on'](_0x3998ce('0x145'),_0x5453f5),_0x41ade1(_0xa1c972[_0x3998ce('0x77')][_0x3998ce('0x2376')]);});}function _0x1108de(){var _0x104509=_0x4e08a0;return[{'name':'Start\x20Date','key':_0x104509('0x23ae'),'type':'date','label':'DASHBOARDS.SELECT_DATE'},{'name':_0x104509('0x5d'),'key':_0x104509('0x14ee'),'type':_0x104509('0x2844'),'label':_0x104509('0x15f4'),'customOptions':[{'value':0x0,'translate':_0x104509('0x1799')},{'value':0x1,'translate':'DASHBOARDS.READ'},{'value':null,'translate':_0x104509('0x1ee5')}]},{'name':'Status','key':_0x104509('0x14ba'),'type':_0x104509('0x2844'),'label':_0x104509('0x2204'),'customOptions':[{'value':0x0,'translate':_0x104509('0x19e2')},{'value':0x1,'translate':_0x104509('0x11d2')},{'value':null,'translate':_0x104509('0x1ee5')}]},{'name':_0x104509('0x5f0'),'key':_0x104509('0xc92'),'type':_0x104509('0x91f'),'label':'DASHBOARDS.SELECT_ACCOUNT','options':_0xa1c972[_0x104509('0x226c')][_0x104509('0x1b33')],'clearAll':![]},{'name':_0x104509('0x1a44'),'key':_0x104509('0x1dc6'),'type':'select','label':_0x104509('0x115d'),'customOptions':[{'value':_0xa1c972[_0x104509('0x1775')]['id'],'translate':'DASHBOARDS.ME'},{'value':_0x104509('0x27a'),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x104509('0x295'),'key':_0x104509('0x907'),'type':_0x104509('0x91f'),'label':_0x104509('0x138d'),'options':_0xa1c972['tags'][_0x104509('0x1b33')],'placeholder':'DASHBOARDS.TAGS'}];}function _0x10710b(_0x1014a4){var _0x253407=_0x4e08a0;_0xa1c972['searchInProgress']=![],_0xa1c972[_0x253407('0x1721')]=_0x1014a4||{'count':0x0,'rows':[]};for(var _0x311e59=0x0;_0x311e59<_0xa1c972[_0x253407('0x1721')][_0x253407('0x1b33')]['length'];_0x311e59+=0x1){_0x3b131e(_0xa1c972[_0x253407('0x1721')][_0x253407('0x1b33')][_0x311e59]);}}function _0x41ade1(_0x29c74b){var _0x350a1e=_0x4e08a0;_0xa1c972[_0x350a1e('0x1fcd')]=!![];!_0x29c74b&&(_0xa1c972[_0x350a1e('0x77')][_0x350a1e('0x2376')]=0x1);_0xa1c972['query'][_0x350a1e('0x15a5')]=(_0xa1c972[_0x350a1e('0x77')][_0x350a1e('0x2376')]-0x1)*_0xa1c972['query']['limit'];var _0x4b5558=_0x215f8f[_0x350a1e('0x161e')][_0x350a1e('0x633')](_0x350a1e('0x1259')+_0xa1c972[_0x350a1e('0x1775')]['id']);_0x4b5558=_0x4b5558?JSON['parse'](_0x4b5558):{},_0x4b5558[_0x350a1e('0x77')]=_0xa1c972[_0x350a1e('0x77')],_0x215f8f[_0x350a1e('0x161e')][_0x350a1e('0x1014')](_0x350a1e('0x1259')+_0xa1c972['user']['id'],JSON['stringify'](_0x4b5558)),_0xa1c972[_0x350a1e('0x71b')]=_0x5cfb5b['openchannelInteraction'][_0x350a1e('0x595')](_0xa1c972[_0x350a1e('0x77')],_0x10710b)[_0x350a1e('0x1376')];}function _0x1fe27f(_0x46c09f,_0x20ea0b){_0x1f1631['$parent']['vm']['addInteractionTab']('openchannel',_0x20ea0b);}function _0x58009a(_0x366e6f,_0x3ce066,_0x4fc108){var _0x58ccbc=_0x4e08a0;_0x5cfb5b[_0x58ccbc('0xb01')][_0x58ccbc('0xb0')]({'id':_0x3ce066['id'],'attachments':_0x4fc108})['$promise'][_0x58ccbc('0x21ad')](function(_0xa172d9){var _0x271acc=_0x58ccbc,_0x148548=[_0xa172d9[_0x271acc('0x3da')]],_0x182b3a=_0x271acc('0x2566')+_0x3ce066['id']+'.zip',_0x23ff8f=new Blob(_0x148548,{'type':_0xa172d9[_0x271acc('0x7fa')]}),_0x402ba5=window[_0x271acc('0x27c3')]['createElement']('a');_0x402ba5[_0x271acc('0x127a')](_0x271acc('0x69e'),URL[_0x271acc('0x167b')](_0x23ff8f)),_0x402ba5[_0x271acc('0x127a')](_0x271acc('0xb0'),_0x182b3a),document['body'][_0x271acc('0x14d0')](_0x402ba5),_0x402ba5[_0x271acc('0x997')]();})[_0x58ccbc('0x1c1d')](function(_0x12817a){var _0x51c0f7=_0x58ccbc;if(_0x12817a[_0x51c0f7('0x11c2')]&&_0x12817a[_0x51c0f7('0x11c2')][_0x51c0f7('0x1a69')]&&_0x12817a[_0x51c0f7('0x11c2')][_0x51c0f7('0x1a69')]['length'])for(var _0x45f51c=0x0;_0x45f51c<_0x12817a['data'][_0x51c0f7('0x1a69')][_0x51c0f7('0x577')];_0x45f51c+=0x1){_0x3061ee[_0x51c0f7('0x2092')]({'title':_0x12817a[_0x51c0f7('0x11c2')][_0x51c0f7('0x1a69')][_0x45f51c]['type'],'msg':_0x12817a[_0x51c0f7('0x11c2')][_0x51c0f7('0x1a69')][_0x45f51c]['message']});}else _0x3061ee[_0x51c0f7('0x2092')]({'title':_0x12817a[_0x51c0f7('0x209')]?'API:'+_0x12817a[_0x51c0f7('0x209')]+'\x20-\x20'+_0x12817a[_0x51c0f7('0x1808')]:_0x51c0f7('0x802'),'msg':_0x12817a['data']?JSON[_0x51c0f7('0x25e')](_0x12817a['data'][_0x51c0f7('0x1224')]):_0x12817a[_0x51c0f7('0x174f')]()});});}function _0x54c3b6(_0x42ca70,_0x395137){var _0x5e699f=_0x4e08a0,_0x5baa23=_0xa1c972[_0x5e699f('0x1775')][_0x5e699f('0x1025')]||_0xa1c972[_0x5e699f('0x1775')][_0x5e699f('0x1785')]||_0xa1c972[_0x5e699f('0x1775')][_0x5e699f('0x1396')]||_0xa1c972['user']['openchannelPause']||_0xa1c972[_0x5e699f('0x1775')]['faxPause'],_0xade0d2=!_0x395137[_0x5e699f('0x5f0')][_0x5e699f('0x798')];_0xab4d02[_0x5e699f('0x853')]({'controller':_0x5e699f('0x256e'),'controllerAs':'vm','templateUrl':_0x5b0a7e,'parent':angular[_0x5e699f('0x1676')](_0x287077[_0x5e699f('0x2452')]),'clickOutsideToClose':_0xade0d2,'escapeToClose':_0xade0d2,'onRemoving':function _0x2969c3(){var _0x3bfe2a=_0x5e699f;_0xa1c972[_0x3bfe2a('0x1775')]&&_0x395137[_0x3bfe2a('0x5f0')][_0x3bfe2a('0x798')]&&!_0x5baa23&&_0x5cfb5b[_0x3bfe2a('0x1775')][_0x3bfe2a('0xa8e')]({'id':_0xa1c972[_0x3bfe2a('0x1775')]['id']})[_0x3bfe2a('0x1376')]['catch'](function(_0x4ee59b){var _0x559af4=_0x3bfe2a;console[_0x559af4('0x2092')](_0x4ee59b);});},'locals':{'user':_0xa1c972[_0x5e699f('0x1775')],'channel':_0x5e699f('0xac9'),'interaction':_0x395137}});}function _0x3b131e(_0x26e66f){var _0x58c57a=_0x4e08a0;if(_0x26e66f['from'])_0x26e66f['contactName']=_0x26e66f['from'];else _0x26e66f[_0x58c57a('0x1d10')]?_0x26e66f[_0x58c57a('0x1717')]=(_0x26e66f[_0x58c57a('0x1d10')][_0x58c57a('0x992')]||'')+'\x20'+(_0x26e66f[_0x58c57a('0x1d10')][_0x58c57a('0x6d')]||''):_0x26e66f[_0x58c57a('0x1717')]=_0x2a1c42[_0x58c57a('0x183e')]('DASHBOARDS.UNKNOWN');}function _0x577d8f(_0x564403){var _0x97af12=_0x4e08a0;if(_0x564403['UserId'])return _0x564403[_0x97af12('0x1dc6')]===_0xa1c972[_0x97af12('0x1775')]['id']?_0x2a1c42['instant'](_0x97af12('0x4db')):_0x564403[_0x97af12('0x11a8')][_0x97af12('0x20f5')]+'\x20<'+_0x564403[_0x97af12('0x11a8')][_0x97af12('0x201f')]+'>';return _0x2a1c42[_0x97af12('0x183e')](_0x97af12('0x1932'));}function _0x52b00e(_0x1cf1c8){var _0x5ebaf7=_0x4e08a0;if(_0x1cf1c8[_0x5ebaf7('0x5f0')])return _0x1cf1c8[_0x5ebaf7('0x5f0')][_0x5ebaf7('0xddb')];return _0x2a1c42['instant']('DASHBOARDS.UNKNOWN');}function _0x442a6b(_0x5d9b14,_0x3e3f2e){var _0x3bb7b2=_0x4e08a0;_0xab4d02['show']({'controller':_0x3bb7b2('0x892'),'controllerAs':'vm','templateUrl':_0x490417,'parent':angular['element'](_0x287077['body']),'clickOutsideToClose':![],'locals':{'account':_0x3e3f2e,'message':{},'type':_0x3bb7b2('0xb82'),'interaction':{}},'fullscreen':!![]})[_0x3bb7b2('0x21ad')](function(_0x5041e7){var _0x3ad8c1=_0x3bb7b2;if(_0x5041e7){if(_0x5041e7[_0x3ad8c1('0x1224')]&&_0x5041e7[_0x3ad8c1('0x1224')][_0x3ad8c1('0x230b')]){var _0x2f1600={'channel':'openchannel','account':_0x3e3f2e,'message':_0x5041e7['message'],'contact':_0x5041e7[_0x3ad8c1('0x150c')]};_0x524505['add'](_0x2f1600);}else{var _0x2c3fa2=_0x5041e7;return _0x5cfb5b[_0x3ad8c1('0x151f')][_0x3ad8c1('0x2471')]({'id':_0x3e3f2e['id']},_0x2c3fa2)[_0x3ad8c1('0x1376')][_0x3ad8c1('0x21ad')](function(_0x1a4008){var _0x474c9a=_0x3ad8c1;_0x3061ee['success']({'title':_0x474c9a('0xc07'),'msg':_0x474c9a('0x4b5')}),_0x1f1631[_0x474c9a('0x223d')]['vm'][_0x474c9a('0x11b4')](_0x474c9a('0xac9'),_0x1a4008);})['catch'](function(_0x19a94b){var _0x219f42=_0x3ad8c1;if(_0x19a94b['data']&&_0x19a94b[_0x219f42('0x11c2')]['errors']&&_0x19a94b['data']['errors'][_0x219f42('0x577')])for(var _0x1577ae=0x0;_0x1577ae<_0x19a94b[_0x219f42('0x11c2')][_0x219f42('0x1a69')][_0x219f42('0x577')];_0x1577ae++){_0x3061ee[_0x219f42('0x2092')]({'title':_0x19a94b[_0x219f42('0x11c2')][_0x219f42('0x1a69')][_0x1577ae][_0x219f42('0x7fa')],'msg':_0x19a94b['data'][_0x219f42('0x1a69')][_0x1577ae]['message']});}else _0x3061ee[_0x219f42('0x2092')]({'title':_0x19a94b[_0x219f42('0x209')]?_0x219f42('0x22d')+_0x19a94b[_0x219f42('0x209')]+'\x20-\x20'+_0x19a94b['statusText']:'OPENCHANNELACCOUNT:SEND','msg':_0x19a94b['data']?JSON[_0x219f42('0x25e')](_0x19a94b[_0x219f42('0x11c2')][_0x219f42('0x1224')]):_0x19a94b[_0x219f42('0x1224')]||_0x19a94b[_0x219f42('0x174f')]()});});}}});}function _0x3bcd2c(_0x584a1d){var _0xa2d51f=_0x4e08a0,_0x12bbfb,_0x294755=_0x86640f()['find'](_0xa1c972[_0xa2d51f('0x1721')]['rows'],{'id':_0x584a1d['OpenchannelInteractionId']});_0x294755&&_0x294755[_0xa2d51f('0x6cc')]&&(_0x12bbfb=_0x86640f()[_0xa2d51f('0x1d2e')](_0x294755[_0xa2d51f('0x6cc')],{'id':_0x584a1d['UserId']}),!_0x12bbfb&&_0x294755[_0xa2d51f('0x6cc')][_0xa2d51f('0x206c')]({'id':_0x584a1d[_0xa2d51f('0x1dc6')]}));}function _0x5453f5(_0xb2dcbe){var _0x315d6e=_0x4e08a0,_0x3ed956=_0x86640f()[_0x315d6e('0x1d2e')](_0xa1c972['openchannelInteractions']['rows'],{'id':_0xb2dcbe[_0x315d6e('0x147c')]});_0x3ed956&&_0x3ed956[_0x315d6e('0x6cc')]&&_0x86640f()[_0x315d6e('0x16a2')](_0x3ed956['Users'],{'id':_0xb2dcbe['UserId']});}function _0x120fcd(_0x1724f1){var _0xc57710=_0x4e08a0;if(_0x1724f1){var _0x2cc6c8=_0x86640f()[_0xc57710('0x1d2e')](_0xa1c972['openchannelInteractions']['rows'],{'id':_0x1724f1['id']});if(_0x2cc6c8){_0x2cc6c8[_0xc57710('0x6cc')]=[];_0x1724f1[_0xc57710('0x14ba')]&&(_0x2cc6c8[_0xc57710('0x6c5')]=0x0);if(_0xa1c972[_0xc57710('0x77')][_0xc57710('0x1944')]){var _0x33b8e6=_0x86640f()[_0xc57710('0x2837')](_0xa1c972['query']['sort'],'-')?_0xc57710('0x340'):_0xc57710('0x15d6');_0xa1c972[_0xc57710('0x1721')][_0xc57710('0x1b33')]=_0x86640f()['orderBy'](_0xa1c972['openchannelInteractions'][_0xc57710('0x1b33')],_0x86640f()[_0xc57710('0x1ab4')](_0xa1c972[_0xc57710('0x77')][_0xc57710('0x1944')],'-'),_0x33b8e6);}_0x86640f()[_0xc57710('0xd0e')](_0x2cc6c8,_0x86640f()[_0xc57710('0xc50')](_0x1724f1,_0x86640f()[_0xc57710('0x223b')](_0x2cc6c8)));}else _0x41ade1(_0xa1c972[_0xc57710('0x77')][_0xc57710('0x2376')]);}}function _0x337ea4(_0x238551){var _0x8dbd=_0x4e08a0;if(_0x238551){var _0x195ed5=_0x86640f()[_0x8dbd('0x1d2e')](_0xa1c972[_0x8dbd('0x1721')][_0x8dbd('0x1b33')],{'id':_0x238551['id']});_0x195ed5&&(_0x195ed5['Tags']=_0x238551[_0x8dbd('0x1889')]||[],_0x86640f()[_0x8dbd('0xd0e')](_0x195ed5,_0x86640f()[_0x8dbd('0xc50')](_0x238551,_0x86640f()[_0x8dbd('0x223b')](_0x195ed5))));}}function _0x525cfd(_0x31ca46){var _0x61d632=_0x4e08a0;if(_0x31ca46&&!_0x31ca46[_0x61d632('0x1d1b')]){var _0x4e7b07=_0x86640f()['find'](_0xa1c972[_0x61d632('0x1721')][_0x61d632('0x1b33')],{'id':_0x31ca46[_0x61d632('0x147c')]});if(_0x4e7b07){var _0x245398=_0x86640f()[_0x61d632('0x1d2e')](_0x4e7b07[_0x61d632('0x5d')],{'id':_0x31ca46['id']});_0x245398?_0x86640f()[_0x61d632('0xd0e')](_0x245398,_0x86640f()['pick'](_0x31ca46,_0x86640f()[_0x61d632('0x223b')](_0x245398))):(_0x86640f()[_0x61d632('0x1c7')](_0x4e7b07[_0x61d632('0x5d')])&&(_0x4e7b07['Messages']={'count':0x0}),!_0x31ca46[_0x61d632('0x14ee')]&&(_0x4e7b07[_0x61d632('0x5d')]['count']+=0x1));}}}function _0x38c353(){var _0x306b76=_0x4e08a0;_0xa1c972[_0x306b76('0x146a')]=![];}function _0xb0226c(){var _0x1ab7b7=_0x4e08a0;_0xa1c972[_0x1ab7b7('0x146a')]=!![];}function _0x1ba3e9(){var _0x338689=_0x4e08a0;_0xa1c972[_0x338689('0x146a')]=![],_0xab4d02[_0x338689('0x853')]({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0x44f47e,'parent':angular[_0x338689('0x1676')](_0x287077[_0x338689('0x2452')]),'clickOutsideToClose':![],'locals':{'color':_0xa1c972[_0x338689('0x1419')],'fields':_0xa1c972[_0x338689('0x2211')][_0x338689('0x181e')],'storagePath':_0x338689('0x1a5b')},'fullscreen':!![]})[_0x338689('0x21ad')](function(_0x1c5782){var _0xdd085=_0x338689;_0xa1c972['query'][_0xdd085('0x24e7')]=_0x1c5782===![]?undefined:_0x1c5782;if(_0xa1c972['query'][_0xdd085('0x24e7')]||_0x1c5782===![])_0x41ade1();})['catch'](function(_0x3d1a7b){var _0x380420=_0x338689;_0x3061ee[_0x380420('0x2092')]({'title':'ERROR','msg':_0x3d1a7b[_0x380420('0x11c2')]?JSON['stringify'](_0x3d1a7b['data'][_0x380420('0x1224')]):_0x3d1a7b[_0x380420('0x174f')]()});});}var _0x2290e5=!![],_0x2f65c1=0x1;_0x1f1631[_0x4e08a0('0x10e8')](_0x4e08a0('0x1948'),function(_0x114c47,_0x42cfc9){var _0x33b278=_0x4e08a0;_0x2290e5?_0x37e085(function(){_0x2290e5=![];}):(!_0x42cfc9&&(_0x2f65c1=_0xa1c972[_0x33b278('0x77')][_0x33b278('0x2376')]),_0x114c47!==_0x42cfc9&&(_0xa1c972['query'][_0x33b278('0x2376')]=0x1),!_0x114c47&&(_0xa1c972[_0x33b278('0x77')][_0x33b278('0x2376')]=_0x2f65c1),_0x41ade1(_0xa1c972[_0x33b278('0x77')]['page']));}),_0x1f1631['$on'](_0x4e08a0('0x1210'),function(){var _0x485e50=_0x4e08a0;_0x402830[_0x485e50('0x16cc')]('openchannelMessage:save'),_0x402830[_0x485e50('0x16cc')](_0x485e50('0x1cf')),_0x402830['removeAllListeners'](_0x485e50('0x196a')),_0x402830[_0x485e50('0x16cc')](_0x485e50('0xb2c')),_0x402830[_0x485e50('0x16cc')](_0x485e50('0x6cf')),_0x402830['removeAllListeners']('user_has_openchannel_interactions:save'),_0x402830[_0x485e50('0x16cc')](_0x485e50('0x145'));});}const _0x36815c=_0x544f94;_0x158924['$inject']=['$document',_0x3877e3('0x95a'),_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x114e'),_0x3877e3('0x73f'),_0x3877e3('0x15bc')];function _0x158924(_0x30dc44,_0x837123,_0x420080,_0x5e48dd,_0x498832,_0x9fd74b,_0x279728){var _0x1c9dce=_0x3877e3,_0x5208fe=this;_0x5208fe[_0x1c9dce('0x123f')]=_0x279728[_0x1c9dce('0x15ed')](),_0x5208fe[_0x1c9dce('0x2048')]={};function _0x196a9f(_0x4a71be,_0x3e6b83,_0x574b31){var _0x351163=_0x1c9dce;_0x5208fe['license']=_0x4a71be,_0x5208fe[_0x351163('0x21e')]=_0x3e6b83,_0x5208fe[_0x351163('0x2048')]=_0x574b31;}function _0x56abae(){var _0x1fc798=_0x1c9dce;return _0x9fd74b[_0x1fc798('0x2684')](_0x5208fe[_0x1fc798('0x2048')][_0x1fc798('0x5e5')]);}_0x837123['$on'](_0x1c9dce('0x1a38'),function(_0x140076,_0x3099c6){var _0x2531c1=_0x1c9dce;_0x5208fe[_0x2531c1('0x2048')]=_0x3099c6[_0x2531c1('0x2048')];}),_0x5208fe[_0x1c9dce('0x1081')]=_0x196a9f,_0x5208fe[_0x1c9dce('0x271e')]=_0x56abae,_0x196a9f();}const _0x4daf89=_0x158924;_0x5e67f3[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$window',_0x3877e3('0x2313'),_0x3877e3('0xccd'),'toasty',_0x3877e3('0x15bc')];function _0x5e67f3(_0x4ac64d,_0x2a22eb,_0x1f1df3,_0x2cec56,_0x443b7e,_0x39088f){var _0x598090=_0x3877e3,_0x5b637a=this;_0x5b637a['currentUser']=_0x39088f[_0x598090('0x15ed')](),_0x5b637a[_0x598090('0x231b')]={},_0x5b637a[_0x598090('0x1897')]=_0x598090('0x231b'),_0x5b637a[_0x598090('0x77')]={'UserId':_0x5b637a['currentUser']['id'],'fields':_0x598090('0x17cf'),'sort':_0x598090('0x33'),'limit':0xa,'page':0x1,'type':null},_0x5b637a[_0x598090('0x23ad')]=_0x13461d,_0x5b637a[_0x598090('0x277f')]=_0x59ec65,_0x5b637a[_0x598090('0xdb1')]=_0x2aaa14,_0x5b637a[_0x598090('0x1814')]=_0x4d7cb5,_0x5b637a[_0x598090('0x1081')]=_0x4bb367,_0x5b637a[_0x598090('0x21f9')]=_0x17171e,_0x5b637a['onSearchBarExpand']=_0x532e43;function _0x4bb367(){var _0x5abf2e=_0x598090;_0x5b637a[_0x5abf2e('0x2255')]=_0x34b0fb();var _0x3667f1=_0x2a22eb[_0x5abf2e('0x161e')]['getItem'](_0x5abf2e('0xf7')+_0x5b637a[_0x5abf2e('0x123f')]['id']);if(_0x3667f1)try{_0x3667f1=JSON[_0x5abf2e('0x399')](_0x3667f1),_0x3667f1['query']&&(_0x5b637a[_0x5abf2e('0x77')]=_0x86640f()[_0x5abf2e('0x27b1')](_0x3667f1['query'],[_0x5abf2e('0x1503'),'id']),_0x5b637a[_0x5abf2e('0x77')]['fields']='createdAt,updatedAt,id,format,value,type,uniqueid,calleridnum,exten,connectedlinenum,queue,rating,audio,transcribestatus,UserId',_0x5b637a[_0x5abf2e('0x77')][_0x5abf2e('0x1dc6')]=_0x5b637a[_0x5abf2e('0x123f')]['id']);}catch(_0x62976c){console[_0x5abf2e('0x2092')](_0x62976c);}else{var _0x2b3ab8={'$gte':_0x1088bc()()[_0x5abf2e('0x1982')](_0x5abf2e('0xb64'))['utcOffset'](0x0,!![])[_0x5abf2e('0x153')](),'$lte':_0x1088bc()()[_0x5abf2e('0x117b')](_0x5abf2e('0xb64'))[_0x5abf2e('0x215e')](0x0,!![])[_0x5abf2e('0x153')]()};_0x5b637a[_0x5abf2e('0x77')]['createdAt']=_0x2b3ab8;}_0x5b637a[_0x5abf2e('0x146a')]=_0x5b637a['query'][_0x5abf2e('0x1503')]?!![]:![],_0x5b637a[_0x5abf2e('0x1814')]();}function _0x13461d(_0x45a77d){var _0x4da23a=_0x598090;return _0x2cec56[_0x4da23a('0x9b8')]['download']({'id':_0x45a77d['id'],'exists':!![]})[_0x4da23a('0x1376')][_0x4da23a('0x21ad')](function(_0xbda135){var _0x55ae91=_0x4da23a,_0x576aa9=[_0xbda135[_0x55ae91('0x3da')]],_0x431ed4=new Blob(_0x576aa9,{'type':_0xbda135[_0x55ae91('0x7fa')]}),_0x496a97=window[_0x55ae91('0x27c3')]['createElement']('a');_0x496a97['setAttribute']('href',URL[_0x55ae91('0x167b')](_0x431ed4)),_0x496a97[_0x55ae91('0x127a')]('download',_0x45a77d[_0x55ae91('0x968')]+_0x45a77d['format']),_0x496a97['click']();})['catch'](function(_0x50ee8a){var _0x441f39=_0x4da23a;_0x443b7e[_0x441f39('0x2092')]({'title':_0x50ee8a[_0x441f39('0x209')]?'API:'+_0x50ee8a['status']+_0x441f39('0xa99')+_0x50ee8a[_0x441f39('0x1808')]:'SYSTEM:GETvoiceRecording','msg':_0x50ee8a[_0x441f39('0x11c2')]?JSON[_0x441f39('0x25e')](_0x50ee8a[_0x441f39('0x11c2')]):_0x50ee8a[_0x441f39('0x174f')]()});});}function _0x59ec65(_0x233f1f){var _0x593c19=_0x598090;return _0x2cec56[_0x593c19('0x9b8')][_0x593c19('0x10')]({'id':_0x233f1f['id']})['$promise']['then'](function(_0x3764b5){var _0x5466f8=_0x593c19,_0x6e3e2c=[_0x3764b5[_0x5466f8('0x3da')]],_0x5d86c4=_0x5466f8('0xb0'),_0x42c6ad=new Blob(_0x6e3e2c,{'type':_0x3764b5['type']});_0x5d86c4=_0x233f1f[_0x5466f8('0x968')];var _0x535cb6=window[_0x5466f8('0x27c3')][_0x5466f8('0x162e')]('a');_0x535cb6[_0x5466f8('0x127a')](_0x5466f8('0x69e'),URL[_0x5466f8('0x167b')](_0x42c6ad)),_0x535cb6[_0x5466f8('0x127a')](_0x5466f8('0xb0'),_0x5d86c4),document[_0x5466f8('0x2452')][_0x5466f8('0x14d0')](_0x535cb6),_0x535cb6[_0x5466f8('0x997')]();})['catch'](function(_0x1244e7){var _0x6f4f82=_0x593c19;_0x443b7e[_0x6f4f82('0x2092')]({'title':_0x1244e7[_0x6f4f82('0x209')]?_0x6f4f82('0x22d')+_0x1244e7['status']+_0x6f4f82('0xa99')+_0x1244e7[_0x6f4f82('0x1808')]:_0x6f4f82('0x1816'),'msg':_0x1244e7['data']?JSON[_0x6f4f82('0x25e')](_0x1244e7['data']):_0x1244e7[_0x6f4f82('0x174f')]()});});}function _0x34b0fb(){var _0x2c856f=_0x598090;return[{'name':_0x2c856f('0x18a1'),'key':'createdAt','type':'date','label':_0x2c856f('0x1d04')},{'name':_0x2c856f('0xe0e'),'key':_0x2c856f('0x7fa'),'type':_0x2c856f('0x2844'),'label':_0x2c856f('0x1b70'),'customOptions':[{'value':_0x2c856f('0x201f'),'translate':_0x2c856f('0xdbb')},{'value':_0x2c856f('0x923'),'translate':_0x2c856f('0xf1c')},{'value':_0x2c856f('0x2300'),'translate':_0x2c856f('0x1a7')},{'value':_0x2c856f('0xb6b'),'translate':_0x2c856f('0x1f2d')},{'value':null,'translate':_0x2c856f('0x150f')}]}];}function _0x2aaa14(_0x1dd578){var _0x2c20d0=_0x598090;_0x5b637a['searchInProgress']=![],_0x5b637a[_0x2c20d0('0x231b')]=_0x1dd578||{'count':0x0,'rows':[]};}function _0x4d7cb5(){var _0x56aa49=_0x598090;_0x5b637a[_0x56aa49('0x1fcd')]=!![],_0x5b637a[_0x56aa49('0x77')][_0x56aa49('0x15a5')]=(_0x5b637a[_0x56aa49('0x77')][_0x56aa49('0x2376')]-0x1)*_0x5b637a[_0x56aa49('0x77')][_0x56aa49('0x1f4a')];var _0x59e3a8={'query':_0x5b637a[_0x56aa49('0x77')]};_0x2a22eb[_0x56aa49('0x161e')]['setItem'](_0x56aa49('0xf7')+_0x5b637a[_0x56aa49('0x123f')]['id'],JSON[_0x56aa49('0x25e')](_0x59e3a8)),_0x5b637a[_0x56aa49('0x71b')]=_0x2cec56[_0x56aa49('0x9b8')][_0x56aa49('0x595')](_0x5b637a[_0x56aa49('0x77')],_0x2aaa14)[_0x56aa49('0x1376')];}function _0x17171e(){var _0x14ca07=_0x598090;_0x5b637a[_0x14ca07('0x77')][_0x14ca07('0x1503')]=undefined,_0x5b637a['isSearchBarVisible']=![];}function _0x532e43(){var _0xf82ec0=_0x598090;_0x5b637a[_0xf82ec0('0x146a')]=!![];}var _0x4c1f2b=!![],_0x51e6eb=0x1;_0x4ac64d[_0x598090('0x10e8')](_0x598090('0x1948'),function(_0x24bd62,_0x4c3527){var _0x1138e3=_0x598090;_0x4c1f2b?_0x1f1df3(function(){_0x4c1f2b=![];}):(!_0x4c3527&&(_0x51e6eb=_0x5b637a[_0x1138e3('0x77')][_0x1138e3('0x2376')]),_0x24bd62!==_0x4c3527&&(_0x5b637a[_0x1138e3('0x77')]['page']=0x1),!_0x24bd62&&(_0x5b637a[_0x1138e3('0x77')][_0x1138e3('0x2376')]=_0x51e6eb),_0x5b637a[_0x1138e3('0x1814')]());});}const _0x11aad0=_0x5e67f3,_0x5e1b26=_0x398308['p']+_0x3877e3('0x199');_0x9abd8b['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x15bc')];function _0x9abd8b(_0x8ee24b,_0x475a72,_0x468baf,_0x391c97,_0x25d948,_0x582969,_0x5e7a64,_0x145bc5){var _0x3ec905=_0x3877e3,_0x5bd993=this;_0x5bd993[_0x3ec905('0x123f')]=_0x145bc5[_0x3ec905('0x15ed')](),_0x5bd993[_0x3ec905('0x1969')]=[_0x3ec905('0x109b'),_0x3ec905('0x1cbc'),_0x3ec905('0x68f'),_0x3ec905('0x26b9'),_0x3ec905('0xfbf')],_0x5bd993[_0x3ec905('0x5ed')]={'readOnly':![],'canEdit':!![],'canDelete':!![]},_0x5bd993['scheduledCalls']={},_0x5bd993[_0x3ec905('0x77')]={'id':_0x5bd993['currentUser']['id'],'fields':_0x3ec905('0x1285'),'sort':_0x3ec905('0x141a'),'limit':0xa,'page':0x1},_0x5bd993[_0x3ec905('0xea5')]={'rows':[],'count':0x0},_0x5bd993[_0x3ec905('0xdb1')]=_0x558178,_0x5bd993[_0x3ec905('0x18b7')]=_0x4ca2b5,_0x5bd993['onInit']=_0x316495,_0x5bd993[_0x3ec905('0xd96')]=_0x193ad0,_0x5bd993[_0x3ec905('0x2477')]=_0x55a83b,_0x5bd993[_0x3ec905('0x15dc')]=_0x2c8743;function _0x316495(){var _0x2c4fa3=_0x3ec905;_0x5e7a64[_0x2c4fa3('0x1775')][_0x2c4fa3('0x71c')]({'id':_0x145bc5[_0x2c4fa3('0x15ed')]()['id'],'fields':'id,name','channel':_0x2c4fa3('0x8ed'),'type':_0x2c4fa3('0x2300'),'nolimit':!![]})[_0x2c4fa3('0x1376')]['then'](function(_0x31fd09){_0x5bd993['queueCampaigns']=_0x31fd09||{'count':0x0,'rows':[]};})[_0x2c4fa3('0x21ad')](function(){var _0xc8a9b9=_0x2c4fa3;_0x5bd993[_0xc8a9b9('0x2255')]=_0x18f875();})['catch'](function(_0xae0790){var _0x101788=_0x2c4fa3;console[_0x101788('0x2092')](_0xae0790);})[_0x2c4fa3('0x13e')](function(){var _0x4975d1=_0x2c4fa3,_0x54da50=_0x475a72['localStorage']['getItem']('motion2.home.scheduled:'+_0x5bd993[_0x4975d1('0x123f')]['id']);if(_0x54da50)try{_0x54da50=JSON[_0x4975d1('0x399')](_0x54da50),_0x54da50['query']&&(_0x5bd993[_0x4975d1('0x77')]=_0x86640f()['omit'](_0x54da50[_0x4975d1('0x77')],['filter']));}catch(_0x49c1a5){console[_0x4975d1('0x2092')](_0x49c1a5);}else{var _0x341e8f={'$gte':_0x1088bc()()[_0x4975d1('0x1982')]('month')[_0x4975d1('0x215e')](0x0,!![])[_0x4975d1('0x153')](),'$lte':_0x1088bc()()[_0x4975d1('0x117b')]('month')['utcOffset'](0x0,!![])['format']()};_0x5bd993['query'][_0x4975d1('0x23ae')]=_0x341e8f;}_0x5bd993[_0x4975d1('0x18b7')]();});}function _0x558178(_0x4f4671){var _0x28b665=_0x3ec905;_0x5bd993[_0x28b665('0x1fcd')]=![],_0x5bd993['scheduledCalls']=_0x4f4671||{'count':0x0,'rows':[]};}function _0x18f875(){var _0x26390b=_0x3ec905;return[{'name':'Start\x20Date','key':_0x26390b('0x23ae'),'type':_0x26390b('0x2457'),'label':_0x26390b('0x1d04')},{'name':'Campaigns','key':_0x26390b('0xe90'),'type':'multiselect','label':_0x26390b('0x1543'),'options':_0x5bd993[_0x26390b('0xea5')][_0x26390b('0x1b33')]}];}function _0x4ca2b5(){var _0x13c47d=_0x3ec905;_0x5bd993[_0x13c47d('0x1fcd')]=!![],_0x5bd993[_0x13c47d('0x77')]['id']=_0x5bd993[_0x13c47d('0x123f')]['id'],_0x5bd993['query'][_0x13c47d('0x282f')]=!![],_0x5bd993['query'][_0x13c47d('0x15a5')]=(_0x5bd993[_0x13c47d('0x77')][_0x13c47d('0x2376')]-0x1)*_0x5bd993['query']['limit'];var _0x5c8073={'query':_0x5bd993[_0x13c47d('0x77')]};_0x475a72[_0x13c47d('0x161e')][_0x13c47d('0x1014')](_0x13c47d('0x168d')+_0x5bd993[_0x13c47d('0x123f')]['id'],JSON[_0x13c47d('0x25e')](_0x5c8073)),_0x5bd993['promise']=_0x5e7a64[_0x13c47d('0x1775')]['getScheduledCalls'](_0x5bd993[_0x13c47d('0x77')],_0x558178)[_0x13c47d('0x1376')];}function _0x55a83b(_0x2ba431,_0x33bef1){var _0x25c8e2=_0x3ec905;_0x391c97['show']({'controller':_0x25c8e2('0x10dc'),'controllerAs':'vm','templateUrl':_0x5e1b26,'parent':angular[_0x25c8e2('0x1676')](_0x25d948[_0x25c8e2('0x2452')]),'targetEvent':_0x2ba431,'clickOutsideToClose':!![],'locals':{'queueCampaign':null,'hopper':_0x33bef1,'hoppers':_0x5bd993[_0x25c8e2('0x21c5')][_0x25c8e2('0x1b33')],'license':null,'setting':null,'crudPermissions':_0x5bd993[_0x25c8e2('0x5ed')]}});}function _0x3638f6(_0x140bbd){var _0x57d354=_0x3ec905;_0x5e7a64['cmHopper'][_0x57d354('0x1164')]({'id':_0x140bbd['id']})[_0x57d354('0x1376')][_0x57d354('0x21ad')](function(){var _0x25cd9d=_0x57d354;_0x86640f()[_0x25cd9d('0x16a2')](_0x5bd993[_0x25cd9d('0x21c5')][_0x25cd9d('0x1b33')],{'id':_0x140bbd['id']}),_0x5bd993[_0x25cd9d('0x21c5')][_0x25cd9d('0x205f')]-=0x1,!_0x5bd993['scheduledCalls'][_0x25cd9d('0x1b33')][_0x25cd9d('0x577')]&&_0x5bd993[_0x25cd9d('0x18b7')](),_0x582969['success']({'title':_0x25cd9d('0x365'),'msg':_0x140bbd['name']?_0x25cd9d('0x202b'):''});})[_0x57d354('0x1c1d')](function(_0x1919c7){var _0x56fcd7=_0x57d354;if(_0x1919c7[_0x56fcd7('0x11c2')]&&_0x1919c7[_0x56fcd7('0x11c2')]['errors']&&_0x1919c7['data'][_0x56fcd7('0x1a69')][_0x56fcd7('0x577')]){_0x5bd993[_0x56fcd7('0x1a69')]=_0x1919c7[_0x56fcd7('0x11c2')][_0x56fcd7('0x1a69')]||[{'message':_0x1919c7['toString'](),'type':_0x56fcd7('0x1791')}];for(var _0x51b2e7=0x0;_0x51b2e7<_0x1919c7[_0x56fcd7('0x11c2')][_0x56fcd7('0x1a69')][_0x56fcd7('0x577')];_0x51b2e7++){_0x582969['error']({'title':_0x1919c7[_0x56fcd7('0x11c2')]['errors'][_0x51b2e7][_0x56fcd7('0x7fa')],'msg':_0x1919c7[_0x56fcd7('0x11c2')][_0x56fcd7('0x1a69')][_0x51b2e7][_0x56fcd7('0x1224')]});}}else _0x582969[_0x56fcd7('0x2092')]({'title':_0x1919c7['status']?_0x56fcd7('0x22d')+_0x1919c7['status']+'\x20-\x20'+_0x1919c7[_0x56fcd7('0x1808')]:'SYSTEM:DELETE_HOPPER','msg':_0x1919c7['data']?JSON[_0x56fcd7('0x25e')](_0x1919c7[_0x56fcd7('0x11c2')]['message']):_0x1919c7['message']||_0x1919c7['toString']()});});}function _0x2c8743(_0x17903d,_0x120427){var _0x3a862e=_0x3ec905,_0x5ebb07=_0x391c97[_0x3a862e('0xa33')]()['title'](_0x3a862e('0x67d'))[_0x3a862e('0x276b')](_0x3a862e('0x78a')+_0x3a862e('0x25e0'))[_0x3a862e('0x7a7')](_0x3a862e('0x1cd4'))[_0x3a862e('0x1e6d')](_0x120427)['ok']('OK')[_0x3a862e('0x3b5')](_0x3a862e('0x284b'));_0x391c97[_0x3a862e('0x853')](_0x5ebb07)[_0x3a862e('0x21ad')](function(){_0x3638f6(_0x17903d);},function(){var _0x1a709a=_0x3a862e;console[_0x1a709a('0x6fb')]('CANCEL');});}function _0x193ad0(_0x5ec133){var _0x33a65c=_0x3ec905;return _0x1088bc()(_0x5ec133)[_0x33a65c('0x26a1')](_0x1088bc()());}var _0x5565d1=!![],_0x3dc546=0x1;_0x8ee24b[_0x3ec905('0x10e8')]('vm.query.filter',function(_0x35113d,_0x3ecd3b){var _0x36b19d=_0x3ec905;_0x5565d1?_0x468baf(function(){_0x5565d1=![];}):(!_0x3ecd3b&&(_0x3dc546=_0x5bd993[_0x36b19d('0x77')][_0x36b19d('0x2376')]),_0x35113d!==_0x3ecd3b&&(_0x5bd993[_0x36b19d('0x77')]['page']=0x1),!_0x35113d&&(_0x5bd993['query'][_0x36b19d('0x2376')]=_0x3dc546),_0x5bd993[_0x36b19d('0x18b7')]());});}const _0x3decae=_0x9abd8b;_0x59fed0[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$timeout',_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x24e1'),_0x3877e3('0x13c1'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x25d8'),_0x3877e3('0x1908'),'draftManager'];function _0x59fed0(_0x2038a9,_0x7e9386,_0x41c2b7,_0x43ca34,_0x554ac7,_0x108d62,_0x41b5f4,_0x21e4fd,_0x1fe19e,_0x36b722,_0x49d0e0){var _0x818b21=_0x3877e3,_0x5ca148=this;_0x5ca148[_0x818b21('0x1775')]=_0x21e4fd[_0x818b21('0x15ed')](),_0x5ca148[_0x818b21('0x2ff')]={},_0x5ca148[_0x818b21('0x21e')]={},_0x5ca148['tags']={'count':0x0,'rows':[]},_0x5ca148[_0x818b21('0x12f0')]={'count':0x0,'rows':[]},_0x5ca148[_0x818b21('0x77')]={'includeAll':!![],'sort':'-updatedAt','limit':0xa,'page':0x1,'read':null,'closed':null},_0x5ca148['advancedSearch']={'fields':[{'name':'Id','column':'id','type':_0x818b21('0xed8')},{'name':_0x818b21('0x1d10'),'column':_0x818b21('0x1d10'),'type':_0x818b21('0x175c'),'options':{'searchFields':[_0x818b21('0x992'),_0x818b21('0x6d'),_0x818b21('0x2822')],'route':{'model':_0x818b21('0x25dc'),'action':'get','params':{'fields':'id,firstName,lastName,email','Contact':_0x818b21('0x169e'),'nolimit':!![]}},'extraOperators':[_0x818b21('0xb58')],'excludedOperators':[_0x818b21('0x3fe')]}},{'name':_0x818b21('0x1108'),'column':'body','type':_0x818b21('0xc1e'),'options':{'excludedOperators':[_0x818b21('0x940'),_0x818b21('0x3fe')]}},{'name':_0x818b21('0x843'),'column':_0x818b21('0x14ba'),'type':'select','values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x818b21('0x11d2')}],'options':{'excludedOperators':[_0x818b21('0x3fe')]}},{'name':_0x818b21('0x1a44'),'column':'User','type':_0x818b21('0x175c'),'options':{'table':'i','route':{'model':_0x818b21('0x1775'),'action':_0x818b21('0x595'),'params':{'role':_0x818b21('0x2402'),'fields':_0x818b21('0x2326'),'nolimit':!![]}},'searchFields':[_0x818b21('0x20f5'),'name'],'extraOperators':['$substring'],'excludedOperators':[_0x818b21('0x3fe')]}},{'name':_0x818b21('0x5f0'),'column':_0x818b21('0x822'),'type':_0x818b21('0x91f'),'options':{'route':{'model':'user','action':_0x818b21('0x17f8'),'params':{'id':_0x5ca148[_0x818b21('0x1775')]['id'],'nolimit':!![]}}}},{'name':_0x818b21('0x557'),'column':'Tag','type':_0x818b21('0x91f'),'options':{'route':{'model':_0x818b21('0x907'),'action':_0x818b21('0x595'),'params':{'nolimit':!![]}},'excludedOperators':[_0x818b21('0x23')]}},{'name':_0x818b21('0x18a1'),'column':'createdAt','type':'date','options':{'excludedOperators':['$ne']}},{'name':'Read','column':_0x818b21('0x6c5'),'type':'select','values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':_0x818b21('0x1799')}],'options':{'excludedOperators':[_0x818b21('0x3fe')]}}]},_0x5ca148[_0x818b21('0x1419')]=_0x818b21('0x272d'),_0x5ca148[_0x818b21('0x1081')]=_0x4088cb,_0x5ca148[_0x818b21('0xdb1')]=_0x4bd590,_0x5ca148[_0x818b21('0x1e8b')]=_0x3cb8b5,_0x5ca148[_0x818b21('0x7fc')]=_0x230810,_0x5ca148['downloadSmsInteraction']=_0x5e70f3,_0x5ca148[_0x818b21('0x125c')]=_0xb52eb1,_0x5ca148[_0x818b21('0x1e9d')]=_0x3f10e6,_0x5ca148[_0x818b21('0x12b5')]=_0x5920f6,_0x5ca148[_0x818b21('0x254b')]=_0x411f85,_0x5ca148[_0x818b21('0x2141')]=_0x31c77e,_0x5ca148[_0x818b21('0x21f9')]=_0x1146f9,_0x5ca148[_0x818b21('0x1bf6')]=_0x7781d8,_0x5ca148[_0x818b21('0x7e3')]=_0x41cf84;function _0x4088cb(_0x4a8ba3,_0xe383fb){var _0x318c36=_0x818b21;return _0x5ca148['license']=_0x4a8ba3,_0x5ca148['setting']=_0xe383fb,_0x41b5f4[_0x318c36('0x1775')][_0x318c36('0x595')+_0x86640f()['upperFirst'](_0x318c36('0x102b'))]({'id':_0x5ca148[_0x318c36('0x1775')]['id'],'nolimit':!![]})[_0x318c36('0x1376')]['then'](function(_0x3965c1){var _0xe3b350=_0x318c36;return _0x5ca148[_0xe3b350('0x102b')]=_0x3965c1||{'count':0x0,'rows':[]},_0x41b5f4[_0xe3b350('0x907')][_0xe3b350('0x595')]()[_0xe3b350('0x1376')];})[_0x318c36('0x21ad')](function(_0x4bdc79){var _0x4b1096=_0x318c36;_0x5ca148[_0x4b1096('0x1889')]=_0x4bdc79||{'count':0x0,'rows':[]};})[_0x318c36('0x21ad')](function(){var _0x450fa9=_0x318c36;_0x5ca148[_0x450fa9('0x2255')]=_0x280361();})['catch'](function(_0x3a0490){var _0x115886=_0x318c36;console[_0x115886('0x2092')](_0x3a0490);})[_0x318c36('0x13e')](function(){var _0x158a10=_0x318c36,_0xfbaec6=_0x554ac7['localStorage']['getItem'](_0x158a10('0x2777')+_0x5ca148[_0x158a10('0x1775')]['id']);if(_0xfbaec6)try{_0xfbaec6=JSON['parse'](_0xfbaec6);if(_0xfbaec6['query']){_0x5ca148['query']=_0x86640f()['merge'](_0x5ca148['query'],_0xfbaec6[_0x158a10('0x77')]);if(_0x86640f()['isEmpty'](_0x5ca148[_0x158a10('0x102b')]['rows']))_0x5ca148['query'][_0x158a10('0x822')]=[];else _0x86640f()[_0x158a10('0x23aa')](_0x5ca148[_0x158a10('0x77')]['SmsAccountId'])&&(_0x5ca148[_0x158a10('0x77')][_0x158a10('0x822')]=_0x86640f()(_0x5ca148[_0x158a10('0x102b')]['rows'])['map']('id')[_0x158a10('0x11b0')]()[_0x158a10('0x2228')]());_0x5ca148[_0x158a10('0x77')][_0x158a10('0x1944')]&&_0x5ca148['query'][_0x158a10('0x1944')][_0x158a10('0x2004')](_0x158a10('0x961'))>=0x0&&(_0x5ca148[_0x158a10('0x77')]=_0x86640f()['omit'](_0x5ca148[_0x158a10('0x77')],_0x158a10('0x1944'))),_0x5ca148['query'][_0x158a10('0x282f')]=!![],_0x5ca148[_0x158a10('0x146a')]=_0x5ca148[_0x158a10('0x77')][_0x158a10('0x1503')]?!![]:![];}}catch(_0x35b93b){console['error'](_0x35b93b);}else{var _0x57db12={'$gte':_0x1088bc()()[_0x158a10('0x1982')](_0x158a10('0xb64'))['utcOffset'](0x0,!![])[_0x158a10('0x153')](),'$lte':_0x1088bc()()[_0x158a10('0x117b')]('month')[_0x158a10('0x215e')](0x0,!![])['format']()},_0x544e3d={'SmsAccountId':_0x86640f()[_0x158a10('0x26c3')](_0x5ca148[_0x158a10('0x102b')][_0x158a10('0x1b33')],'id'),'createdAt':_0x57db12};_0x5ca148[_0x158a10('0x77')]=_0x86640f()[_0x158a10('0xd0e')](_0x5ca148[_0x158a10('0x77')],_0x544e3d);}_0x1fe19e['on']('smsInteraction:save',_0x5aa02f),_0x1fe19e['on'](_0x158a10('0xe42'),_0x5aa02f),_0x1fe19e['on'](_0x158a10('0x143f'),_0x5a9ac0),_0x1fe19e['on'](_0x158a10('0x14e0'),_0x35f5f2),_0x1fe19e['on']('smsMessage:update',_0x35f5f2),_0x1fe19e['on'](_0x158a10('0x27c2'),_0x1537e8),_0x1fe19e['on'](_0x158a10('0x8c2'),_0x59fe10),_0x3cb8b5(_0x5ca148['query'][_0x158a10('0x2376')]);});}function _0x280361(){var _0x17badb=_0x818b21;return[{'name':_0x17badb('0x18a1'),'key':_0x17badb('0x23ae'),'type':_0x17badb('0x2457'),'label':_0x17badb('0x1d04')},{'name':_0x17badb('0x5d'),'key':_0x17badb('0x14ee'),'type':_0x17badb('0x2844'),'label':_0x17badb('0x15f4'),'customOptions':[{'value':0x0,'translate':_0x17badb('0x1799')},{'value':0x1,'translate':'DASHBOARDS.READ'},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x17badb('0x843'),'key':'closed','type':_0x17badb('0x2844'),'label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':_0x17badb('0x19e2')},{'value':0x1,'translate':_0x17badb('0x11d2')},{'value':null,'translate':_0x17badb('0x1ee5')}]},{'name':'Account','key':_0x17badb('0x822'),'type':'multiselect','label':_0x17badb('0x31e'),'options':_0x5ca148[_0x17badb('0x102b')][_0x17badb('0x1b33')],'clearAll':![]},{'name':'Agent','key':_0x17badb('0x1dc6'),'type':_0x17badb('0x2844'),'label':_0x17badb('0x115d'),'customOptions':[{'value':_0x5ca148[_0x17badb('0x1775')]['id'],'translate':_0x17badb('0x4db')},{'value':_0x17badb('0x27a'),'translate':_0x17badb('0x1932')},{'value':undefined,'translate':_0x17badb('0x1ee5')}]},{'name':_0x17badb('0x295'),'key':'tag','type':_0x17badb('0x91f'),'label':'DASHBOARDS.SELECT_TAG','options':_0x5ca148[_0x17badb('0x1889')][_0x17badb('0x1b33')],'placeholder':_0x17badb('0xb1c')}];}function _0x4bd590(_0x5e17e9){var _0x3f20a4=_0x818b21;_0x5ca148[_0x3f20a4('0x1fcd')]=![],_0x5ca148[_0x3f20a4('0x12f0')]=_0x5e17e9||{'count':0x0,'rows':[]};for(var _0x268116=0x0;_0x268116<_0x5ca148[_0x3f20a4('0x12f0')][_0x3f20a4('0x1b33')][_0x3f20a4('0x577')];_0x268116+=0x1){_0x3f10e6(_0x5ca148[_0x3f20a4('0x12f0')]['rows'][_0x268116]);}}function _0x3cb8b5(_0x45bf93){var _0x370b65=_0x818b21;_0x5ca148[_0x370b65('0x1fcd')]=!![];!_0x45bf93&&(_0x5ca148[_0x370b65('0x77')][_0x370b65('0x2376')]=0x1);_0x5ca148[_0x370b65('0x77')]['offset']=(_0x5ca148[_0x370b65('0x77')][_0x370b65('0x2376')]-0x1)*_0x5ca148[_0x370b65('0x77')][_0x370b65('0x1f4a')];var _0x5b9c2d=_0x554ac7[_0x370b65('0x161e')][_0x370b65('0x633')]('motion2.home.sms:'+_0x5ca148[_0x370b65('0x1775')]['id']);_0x5b9c2d=_0x5b9c2d?JSON[_0x370b65('0x399')](_0x5b9c2d):{},_0x5b9c2d[_0x370b65('0x77')]=_0x5ca148[_0x370b65('0x77')],_0x554ac7[_0x370b65('0x161e')]['setItem']('motion2.home.sms:'+_0x5ca148[_0x370b65('0x1775')]['id'],JSON[_0x370b65('0x25e')](_0x5b9c2d)),_0x5ca148[_0x370b65('0x71b')]=_0x41b5f4[_0x370b65('0x11f1')][_0x370b65('0x595')](_0x5ca148[_0x370b65('0x77')],_0x4bd590)[_0x370b65('0x1376')];}function _0x230810(_0x59638c,_0x313101){var _0x205896=_0x818b21;_0x2038a9[_0x205896('0x223d')]['vm'][_0x205896('0x11b4')](_0x205896('0x3d0'),_0x313101);}function _0x5e70f3(_0x344a2d,_0x2a7f21,_0x12b03a){var _0x24be72=_0x818b21;_0x41b5f4[_0x24be72('0x11f1')][_0x24be72('0xb0')]({'id':_0x2a7f21['id'],'attachments':_0x12b03a})[_0x24be72('0x1376')][_0x24be72('0x21ad')](function(_0x3bf544){var _0x1ca593=_0x24be72,_0x4c98a5=[_0x3bf544['buffer']],_0x4a6006=_0x1ca593('0x951')+_0x2a7f21['id']+_0x1ca593('0x1622'),_0x1d78c6=new Blob(_0x4c98a5,{'type':_0x3bf544['type']}),_0x1326a4=window['document'][_0x1ca593('0x162e')]('a');_0x1326a4[_0x1ca593('0x127a')]('href',URL[_0x1ca593('0x167b')](_0x1d78c6)),_0x1326a4[_0x1ca593('0x127a')](_0x1ca593('0xb0'),_0x4a6006),document[_0x1ca593('0x2452')][_0x1ca593('0x14d0')](_0x1326a4),_0x1326a4[_0x1ca593('0x997')]();})[_0x24be72('0x1c1d')](function(_0x311bd3){var _0x13a1bf=_0x24be72;if(_0x311bd3[_0x13a1bf('0x11c2')]&&_0x311bd3[_0x13a1bf('0x11c2')][_0x13a1bf('0x1a69')]&&_0x311bd3[_0x13a1bf('0x11c2')][_0x13a1bf('0x1a69')]['length'])for(var _0x589253=0x0;_0x589253<_0x311bd3[_0x13a1bf('0x11c2')]['errors'][_0x13a1bf('0x577')];_0x589253+=0x1){_0x36b722[_0x13a1bf('0x2092')]({'title':_0x311bd3[_0x13a1bf('0x11c2')]['errors'][_0x589253][_0x13a1bf('0x7fa')],'msg':_0x311bd3[_0x13a1bf('0x11c2')]['errors'][_0x589253][_0x13a1bf('0x1224')]});}else _0x36b722['error']({'title':_0x311bd3[_0x13a1bf('0x209')]?_0x13a1bf('0x22d')+_0x311bd3[_0x13a1bf('0x209')]+'\x20-\x20'+_0x311bd3[_0x13a1bf('0x1808')]:_0x13a1bf('0x4f1'),'msg':_0x311bd3['data']?JSON[_0x13a1bf('0x25e')](_0x311bd3['data'][_0x13a1bf('0x1224')]):_0x311bd3[_0x13a1bf('0x174f')]()});});}function _0xb52eb1(_0x3fe4bd,_0x586cfd){var _0x2edcd7=_0x818b21,_0x1db2f3=_0x5ca148[_0x2edcd7('0x1775')]['voicePause']||_0x5ca148['user']['chatPause']||_0x5ca148[_0x2edcd7('0x1775')][_0x2edcd7('0x1396')]||_0x5ca148['user']['openchannelPause']||_0x5ca148['user']['faxPause'],_0x1a6f98=!_0x586cfd[_0x2edcd7('0x5f0')][_0x2edcd7('0x798')];_0x41c2b7[_0x2edcd7('0x853')]({'controller':_0x2edcd7('0x256e'),'controllerAs':'vm','templateUrl':_0x5b0a7e,'parent':angular['element'](_0x43ca34[_0x2edcd7('0x2452')]),'clickOutsideToClose':_0x1a6f98,'escapeToClose':_0x1a6f98,'onRemoving':function _0x5be3c6(){var _0x3d5a85=_0x2edcd7;_0x5ca148[_0x3d5a85('0x1775')]&&_0x586cfd[_0x3d5a85('0x5f0')][_0x3d5a85('0x798')]&&!_0x1db2f3&&_0x41b5f4[_0x3d5a85('0x1775')][_0x3d5a85('0xa8e')]({'id':_0x5ca148[_0x3d5a85('0x1775')]['id']})['$promise']['catch'](function(_0x40003e){var _0x1d64ce=_0x3d5a85;console[_0x1d64ce('0x2092')](_0x40003e);});},'locals':{'user':_0x5ca148[_0x2edcd7('0x1775')],'channel':'sms','interaction':_0x586cfd}});}function _0x3f10e6(_0xeb5b8f){var _0x4656c3=_0x818b21;_0xeb5b8f[_0x4656c3('0x1d10')]?(_0xeb5b8f[_0x4656c3('0x1717')]=(_0xeb5b8f[_0x4656c3('0x1d10')][_0x4656c3('0x992')]||'')+'\x20'+(_0xeb5b8f[_0x4656c3('0x1d10')][_0x4656c3('0x6d')]||''),_0xeb5b8f[_0x4656c3('0x67e')]=_0xeb5b8f[_0x4656c3('0x1d10')][_0x4656c3('0xf65')]):_0xeb5b8f[_0x4656c3('0x1717')]=_0x108d62[_0x4656c3('0x183e')](_0x4656c3('0xc13'));}function _0x5920f6(_0x43b7ab){var _0x29db30=_0x818b21;if(_0x43b7ab[_0x29db30('0x1dc6')])return _0x43b7ab[_0x29db30('0x1dc6')]===_0x5ca148[_0x29db30('0x1775')]['id']?_0x108d62[_0x29db30('0x183e')]('DASHBOARDS.ME'):_0x43b7ab[_0x29db30('0x11a8')][_0x29db30('0x20f5')]+'\x20<'+_0x43b7ab[_0x29db30('0x11a8')]['internal']+'>';return _0x108d62['instant'](_0x29db30('0x1932'));}function _0x411f85(_0x3587b9){var _0x434793=_0x818b21;if(_0x3587b9[_0x434793('0x5f0')])return _0x3587b9[_0x434793('0x5f0')][_0x434793('0xddb')];return _0x108d62['instant'](_0x434793('0xc13'));}function _0x31c77e(_0x30c876,_0x35d7fd){var _0x1d173e=_0x818b21;_0x41c2b7[_0x1d173e('0x853')]({'controller':'ComposeSmsInteractionDialogController','controllerAs':'vm','templateUrl':_0x28174d,'parent':angular['element'](_0x43ca34['body']),'clickOutsideToClose':![],'locals':{'account':_0x35d7fd,'message':{},'type':'new','interaction':{}},'fullscreen':!![]})[_0x1d173e('0x21ad')](function(_0x4eed30){var _0x51c3ca=_0x1d173e;if(_0x4eed30){if(_0x4eed30[_0x51c3ca('0x1224')]&&_0x4eed30[_0x51c3ca('0x1224')][_0x51c3ca('0x230b')]){var _0x15d1eb={'channel':_0x51c3ca('0x3d0'),'account':_0x35d7fd,'message':_0x4eed30[_0x51c3ca('0x1224')],'contact':_0x4eed30[_0x51c3ca('0x150c')]};_0x49d0e0[_0x51c3ca('0x1842')](_0x15d1eb);}else{var _0x189b7f=_0x4eed30;return _0x41b5f4[_0x51c3ca('0xa10')][_0x51c3ca('0x2471')]({'id':_0x35d7fd['id']},_0x189b7f)[_0x51c3ca('0x1376')][_0x51c3ca('0x21ad')](function(_0x466785){var _0x6ac620=_0x51c3ca;_0x36b722[_0x6ac620('0xdb1')]({'title':_0x6ac620('0xc07'),'msg':_0x6ac620('0x4b5')}),_0x2038a9['$parent']['vm'][_0x6ac620('0x11b4')](_0x6ac620('0x3d0'),_0x466785);})[_0x51c3ca('0x1c1d')](function(_0x3229fa){var _0x58ebca=_0x51c3ca;if(_0x3229fa['data']&&_0x3229fa[_0x58ebca('0x11c2')][_0x58ebca('0x1a69')]&&_0x3229fa[_0x58ebca('0x11c2')][_0x58ebca('0x1a69')][_0x58ebca('0x577')])for(var _0x3e4a57=0x0;_0x3e4a57<_0x3229fa[_0x58ebca('0x11c2')]['errors'][_0x58ebca('0x577')];_0x3e4a57++){_0x36b722[_0x58ebca('0x2092')]({'title':_0x3229fa[_0x58ebca('0x11c2')][_0x58ebca('0x1a69')][_0x3e4a57][_0x58ebca('0x7fa')],'msg':_0x3229fa['data']['errors'][_0x3e4a57][_0x58ebca('0x1224')]});}else _0x36b722['error']({'title':_0x3229fa[_0x58ebca('0x209')]?_0x58ebca('0x22d')+_0x3229fa[_0x58ebca('0x209')]+'\x20-\x20'+_0x3229fa[_0x58ebca('0x1808')]:_0x58ebca('0x1471'),'msg':_0x3229fa[_0x58ebca('0x11c2')]?JSON[_0x58ebca('0x25e')](_0x3229fa[_0x58ebca('0x11c2')][_0x58ebca('0x1224')]):_0x3229fa[_0x58ebca('0x1224')]||_0x3229fa[_0x58ebca('0x174f')]()});});}}});}function _0x1537e8(_0x109b76){var _0x116e8e=_0x818b21,_0x226bc9,_0x302144=_0x86640f()[_0x116e8e('0x1d2e')](_0x5ca148[_0x116e8e('0x12f0')][_0x116e8e('0x1b33')],{'id':_0x109b76['SmsInteractionId']});_0x302144&&_0x302144[_0x116e8e('0x6cc')]&&(_0x226bc9=_0x86640f()[_0x116e8e('0x1d2e')](_0x302144[_0x116e8e('0x6cc')],{'id':_0x109b76[_0x116e8e('0x1dc6')]}),!_0x226bc9&&_0x302144[_0x116e8e('0x6cc')][_0x116e8e('0x206c')]({'id':_0x109b76['UserId']}));}function _0x59fe10(_0x5ccabc){var _0x381a7d=_0x818b21,_0x399e4d=_0x86640f()['find'](_0x5ca148[_0x381a7d('0x12f0')]['rows'],{'id':_0x5ccabc[_0x381a7d('0x27bd')]});_0x399e4d&&_0x399e4d[_0x381a7d('0x6cc')]&&_0x86640f()['remove'](_0x399e4d[_0x381a7d('0x6cc')],{'id':_0x5ccabc[_0x381a7d('0x1dc6')]});}function _0x5aa02f(_0x2034fe){var _0x13cbeb=_0x818b21;if(_0x2034fe){var _0x127488=_0x86640f()[_0x13cbeb('0x1d2e')](_0x5ca148['smsInteractions']['rows'],{'id':_0x2034fe['id']});if(_0x127488){_0x127488['Users']=[];_0x2034fe[_0x13cbeb('0x14ba')]&&(_0x127488[_0x13cbeb('0x6c5')]=0x0);if(_0x5ca148[_0x13cbeb('0x77')][_0x13cbeb('0x1944')]){var _0x342bb2=_0x86640f()[_0x13cbeb('0x2837')](_0x5ca148[_0x13cbeb('0x77')]['sort'],'-')?_0x13cbeb('0x340'):_0x13cbeb('0x15d6');_0x5ca148[_0x13cbeb('0x12f0')][_0x13cbeb('0x1b33')]=_0x86640f()[_0x13cbeb('0x11df')](_0x5ca148[_0x13cbeb('0x12f0')]['rows'],_0x86640f()[_0x13cbeb('0x1ab4')](_0x5ca148[_0x13cbeb('0x77')][_0x13cbeb('0x1944')],'-'),_0x342bb2);}_0x86640f()[_0x13cbeb('0xd0e')](_0x127488,_0x86640f()[_0x13cbeb('0xc50')](_0x2034fe,_0x86640f()['keys'](_0x127488)));}else _0x3cb8b5(_0x5ca148[_0x13cbeb('0x77')][_0x13cbeb('0x2376')]);}}function _0x5a9ac0(_0x1d442a){var _0x391314=_0x818b21;if(_0x1d442a){var _0x370f82=_0x86640f()[_0x391314('0x1d2e')](_0x5ca148[_0x391314('0x12f0')][_0x391314('0x1b33')],{'id':_0x1d442a['id']});_0x370f82&&(_0x370f82[_0x391314('0x557')]=_0x1d442a[_0x391314('0x1889')]||[],_0x86640f()[_0x391314('0xd0e')](_0x370f82,_0x86640f()[_0x391314('0xc50')](_0x1d442a,_0x86640f()['keys'](_0x370f82))));}}function _0x35f5f2(_0x247201){var _0x9deb92=_0x818b21;if(_0x247201&&!_0x247201[_0x9deb92('0x1d1b')]){var _0x581c0c=_0x86640f()[_0x9deb92('0x1d2e')](_0x5ca148[_0x9deb92('0x12f0')][_0x9deb92('0x1b33')],{'id':_0x247201[_0x9deb92('0x27bd')]});if(_0x581c0c){var _0x1e650f=_0x86640f()[_0x9deb92('0x1d2e')](_0x581c0c[_0x9deb92('0x5d')],{'id':_0x247201['id']});_0x1e650f?_0x86640f()[_0x9deb92('0xd0e')](_0x1e650f,_0x86640f()[_0x9deb92('0xc50')](_0x247201,_0x86640f()[_0x9deb92('0x223b')](_0x1e650f))):(_0x86640f()[_0x9deb92('0x1c7')](_0x581c0c['Messages'])&&(_0x581c0c[_0x9deb92('0x5d')]={'count':0x0}),!_0x247201[_0x9deb92('0x14ee')]&&(_0x581c0c['Messages'][_0x9deb92('0x205f')]+=0x1));}}}function _0x1146f9(){_0x5ca148['isSearchBarVisible']=![];}function _0x7781d8(){var _0x12a662=_0x818b21;_0x5ca148[_0x12a662('0x146a')]=!![];}function _0x41cf84(){var _0x3a65c7=_0x818b21;_0x5ca148['isSearchBarVisible']=![],_0x41c2b7[_0x3a65c7('0x853')]({'controller':_0x3a65c7('0xde1'),'controllerAs':'vm','templateUrl':_0x44f47e,'parent':angular[_0x3a65c7('0x1676')](_0x43ca34['body']),'clickOutsideToClose':![],'locals':{'color':_0x5ca148['sectionColor'],'fields':_0x5ca148['advancedSearch']['fields'],'storagePath':_0x3a65c7('0x1064')},'fullscreen':!![]})['then'](function(_0x43fa74){var _0x3f4249=_0x3a65c7;_0x5ca148[_0x3f4249('0x77')]['search']=_0x43fa74===![]?undefined:_0x43fa74;if(_0x5ca148[_0x3f4249('0x77')]['search']||_0x43fa74===![])_0x3cb8b5();})[_0x3a65c7('0x1c1d')](function(_0x147ef2){var _0x5bf8d5=_0x3a65c7;_0x36b722[_0x5bf8d5('0x2092')]({'title':_0x5bf8d5('0x1399'),'msg':_0x147ef2['data']?JSON['stringify'](_0x147ef2['data'][_0x5bf8d5('0x1224')]):_0x147ef2['toString']()});});}var _0xa1765=!![],_0x1d8eb0=0x1;_0x2038a9[_0x818b21('0x10e8')]('vm.query.filter',function(_0x1f4880,_0x4aba0e){var _0x2b4d02=_0x818b21;_0xa1765?_0x7e9386(function(){_0xa1765=![];}):(!_0x4aba0e&&(_0x1d8eb0=_0x5ca148[_0x2b4d02('0x77')][_0x2b4d02('0x2376')]),_0x1f4880!==_0x4aba0e&&(_0x5ca148['query'][_0x2b4d02('0x2376')]=0x1),!_0x1f4880&&(_0x5ca148[_0x2b4d02('0x77')][_0x2b4d02('0x2376')]=_0x1d8eb0),_0x3cb8b5(_0x5ca148[_0x2b4d02('0x77')][_0x2b4d02('0x2376')]));}),_0x2038a9['$on'](_0x818b21('0x1210'),function(){var _0x36b539=_0x818b21;_0x1fe19e[_0x36b539('0x16cc')](_0x36b539('0x14e0')),_0x1fe19e[_0x36b539('0x16cc')](_0x36b539('0x1ba')),_0x1fe19e['removeAllListeners']('smsInteraction:save'),_0x1fe19e['removeAllListeners'](_0x36b539('0x143f')),_0x1fe19e[_0x36b539('0x16cc')](_0x36b539('0xe42')),_0x1fe19e['removeAllListeners'](_0x36b539('0x27c2')),_0x1fe19e['removeAllListeners'](_0x36b539('0x8c2'));});}const _0x288b7f=_0x59fed0,_0x5491e9=_0x398308['p']+'src/js/modules/main/apps/dashboards/views/general/agent/home/voice/details/dialog.html/dialog-[chunkhash].html';_0x33e118[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$document',_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x24e1'),'$scope',_0x3877e3('0x2313')];function _0x33e118(_0x21bb6c,_0x4d2093,_0x433899,_0xdc310d,_0x5308c2,_0x4f39d5,_0x493bae,_0x46fb19){var _0x3fba40=_0x3877e3,_0x139845=this;_0x139845['currentUser']=_0x5308c2[_0x3fba40('0x15ed')](),_0x139845[_0x3fba40('0x16ac')]={},_0x139845['table']=_0x3fba40('0x16ac'),_0x139845[_0x3fba40('0x77')]={'UserId':_0x139845[_0x3fba40('0x123f')]['id'],'fields':'id,type,uniqueid,tag,starttime,endtime,source,destination,userDisposition,userSecondDisposition,userThirdDisposition,note,duration,billableseconds,answertime','sort':_0x3fba40('0x33'),'limit':0xa,'page':0x1,'type':null},_0x139845['success']=_0xfa7698,_0x139845[_0x3fba40('0x1c73')]=_0x450478,_0x139845['onInit']=_0x5bf74b,_0x139845[_0x3fba40('0x84')]=_0x107066,_0x139845['onSearchBarCollapse']=_0x34a251,_0x139845[_0x3fba40('0x1bf6')]=_0x534939;function _0x5bf74b(){var _0x1e90c3=_0x3fba40;return _0x433899[_0x1e90c3('0x907')][_0x1e90c3('0x595')]()[_0x1e90c3('0x1376')][_0x1e90c3('0x21ad')](function(_0x26e1c6){var _0x5ae21b=_0x1e90c3;_0x139845[_0x5ae21b('0x1889')]=_0x26e1c6||{'count':0x0,'rows':[]};})['then'](function(){_0x139845['quickFilters']=_0x15f1e8();})['catch'](function(_0x2eee54){var _0x386411=_0x1e90c3;_0xdc310d[_0x386411('0x2092')]({'title':'Init\x20error','msg':_0x2eee54['data']?JSON[_0x386411('0x25e')](_0x2eee54[_0x386411('0x11c2')][_0x386411('0x1224')]):_0x2eee54['message']||_0x2eee54[_0x386411('0x174f')]()}),_0x139845[_0x386411('0x1889')]={'count':0x0,'rows':[]};})[_0x1e90c3('0x13e')](function(){var _0x4edb22=_0x1e90c3,_0x208e08=_0x4f39d5['localStorage'][_0x4edb22('0x633')](_0x4edb22('0x26da')+_0x139845[_0x4edb22('0x123f')]['id']);if(_0x208e08)try{_0x208e08=JSON[_0x4edb22('0x399')](_0x208e08),_0x208e08['query']&&(_0x139845[_0x4edb22('0x77')]=_0x86640f()[_0x4edb22('0x27b1')](_0x208e08['query'],_0x4edb22('0x1503')));}catch(_0x5c3cb5){console[_0x4edb22('0x2092')](_0x5c3cb5);}else{var _0x3abd12={'$gte':_0x1088bc()()[_0x4edb22('0x1982')](_0x4edb22('0xb64'))[_0x4edb22('0x215e')](0x0,!![])[_0x4edb22('0x153')](),'$lte':_0x1088bc()()['endOf'](_0x4edb22('0xb64'))[_0x4edb22('0x215e')](0x0,!![])[_0x4edb22('0x153')]()};_0x139845['query'][_0x4edb22('0x23ae')]=_0x3abd12;}_0x450478();});}function _0x15f1e8(){var _0x3a74ad=_0x3fba40;return[{'name':_0x3a74ad('0x18a1'),'key':_0x3a74ad('0x23ae'),'type':'date','label':'DASHBOARDS.SELECT_DATE'},{'name':_0x3a74ad('0xe0e'),'key':_0x3a74ad('0x7fa'),'type':_0x3a74ad('0x2844'),'label':_0x3a74ad('0x1b70'),'customOptions':[{'value':_0x3a74ad('0x201f'),'translate':_0x3a74ad('0xdbb')},{'value':_0x3a74ad('0x923'),'translate':_0x3a74ad('0xf1c')},{'value':_0x3a74ad('0x2300'),'translate':'VOICE.OUTBOUND'},{'value':_0x3a74ad('0xb6b'),'translate':_0x3a74ad('0x1f2d')},{'value':null,'translate':_0x3a74ad('0x150f')}]}];}function _0xfa7698(_0x5603f5){_0x139845['searchInProgress']=![],_0x139845['voiceCalls']=_0x5603f5||{'count':0x0,'rows':[]};}function _0x450478(){var _0x2f7e7f=_0x3fba40;_0x139845[_0x2f7e7f('0x1fcd')]=!![],_0x139845['query']['offset']=(_0x139845[_0x2f7e7f('0x77')][_0x2f7e7f('0x2376')]-0x1)*_0x139845[_0x2f7e7f('0x77')][_0x2f7e7f('0x1f4a')];var _0x38b73a={'query':_0x139845[_0x2f7e7f('0x77')]};_0x4f39d5['localStorage'][_0x2f7e7f('0x1014')](_0x2f7e7f('0x26da')+_0x139845[_0x2f7e7f('0x123f')]['id'],JSON[_0x2f7e7f('0x25e')](_0x38b73a)),_0x139845['promise']=_0x433899[_0x2f7e7f('0x10ab')][_0x2f7e7f('0x595')](_0x139845[_0x2f7e7f('0x77')],_0xfa7698)[_0x2f7e7f('0x1376')];}function _0x107066(_0x180c51){var _0x262417=_0x3fba40;_0x21bb6c[_0x262417('0x853')]({'controller':'AgentHomeVoiceDetailsController','controllerAs':'vm','templateUrl':_0x5491e9,'parent':angular[_0x262417('0x1676')](_0x4d2093[_0x262417('0x2452')]),'clickOutsideToClose':!![],'locals':{'call':_0x180c51}});}function _0x34a251(){var _0x4c1b06=_0x3fba40;_0x139845[_0x4c1b06('0x77')][_0x4c1b06('0x1503')]=undefined,_0x139845[_0x4c1b06('0x146a')]=![];}function _0x534939(){_0x139845['isSearchBarVisible']=!![];}var _0x3312de=!![],_0x40f995=0x1;_0x493bae['$watch'](_0x3fba40('0x1948'),function(_0x19c285,_0x2f00a7){var _0xe1a16f=_0x3fba40;_0x3312de?_0x46fb19(function(){_0x3312de=![];}):(!_0x2f00a7&&(_0x40f995=_0x139845[_0xe1a16f('0x77')][_0xe1a16f('0x2376')]),_0x19c285!==_0x2f00a7&&(_0x139845['query'][_0xe1a16f('0x2376')]=0x1),!_0x19c285&&(_0x139845['query'][_0xe1a16f('0x2376')]=_0x40f995),_0x139845[_0xe1a16f('0x1c73')]());});}const _0x400c86=_0x33e118;_0x5ed3b1[_0x3877e3('0x1a81')]=['$mdDialog',_0x3877e3('0xdc2')];function _0x5ed3b1(_0xae93c6,_0x76dd4f){var _0x4408a1=this;_0x4408a1['call']=_0x76dd4f;function _0x3dd465(){var _0x2b0ba1=a0_0x2e7f;_0xae93c6[_0x2b0ba1('0x1c24')]();}_0x4408a1['closeDialog']=_0x3dd465;}const _0x1db868=_0x5ed3b1;_0x5e95d9[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0x2313'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x24e1'),_0x3877e3('0x13c1'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x25d8'),_0x3877e3('0x1908'),_0x3877e3('0x2113')];function _0x5e95d9(_0x101c91,_0x415834,_0x1c61c8,_0x260671,_0x52e9eb,_0x1a40be,_0x517128,_0x3fec85,_0x680e1a,_0x42243f,_0x2f8b0c){var _0x4c06c0=_0x3877e3,_0x53d9c3=this;_0x53d9c3[_0x4c06c0('0x1775')]=_0x3fec85[_0x4c06c0('0x15ed')](),_0x53d9c3[_0x4c06c0('0x2ff')]={},_0x53d9c3[_0x4c06c0('0x21e')]={},_0x53d9c3[_0x4c06c0('0x1889')]={'count':0x0,'rows':[]},_0x53d9c3['whatsappInteractions']={'count':0x0,'rows':[]},_0x53d9c3[_0x4c06c0('0x77')]={'includeAll':!![],'sort':_0x4c06c0('0x33'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x53d9c3['advancedSearch']={'fields':[{'name':'Id','column':'id','type':'number'},{'name':_0x4c06c0('0x1d10'),'column':_0x4c06c0('0x1d10'),'type':'autocomplete','options':{'searchFields':[_0x4c06c0('0x992'),_0x4c06c0('0x6d'),_0x4c06c0('0x2822')],'route':{'model':_0x4c06c0('0x25dc'),'action':_0x4c06c0('0x595'),'params':{'fields':_0x4c06c0('0x2704'),'Contact':_0x4c06c0('0x169e'),'nolimit':!![]}},'extraOperators':[_0x4c06c0('0xb58')],'excludedOperators':['$ne']}},{'name':_0x4c06c0('0x1108'),'column':'body','type':'text','options':{'excludedOperators':[_0x4c06c0('0x940'),_0x4c06c0('0x3fe')]}},{'name':_0x4c06c0('0x843'),'column':_0x4c06c0('0x14ba'),'type':'select','values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x4c06c0('0x11d2')}],'options':{'excludedOperators':[_0x4c06c0('0x3fe')]}},{'name':'Agent','column':_0x4c06c0('0x6e4'),'type':_0x4c06c0('0x175c'),'options':{'table':'i','route':{'model':_0x4c06c0('0x1775'),'action':_0x4c06c0('0x595'),'params':{'role':_0x4c06c0('0x2402'),'fields':_0x4c06c0('0x2326'),'nolimit':!![]}},'searchFields':[_0x4c06c0('0x20f5'),_0x4c06c0('0x19fe')],'extraOperators':[_0x4c06c0('0xb58')],'excludedOperators':[_0x4c06c0('0x3fe')]}},{'name':_0x4c06c0('0x5f0'),'column':_0x4c06c0('0x2127'),'type':'multiselect','options':{'route':{'model':_0x4c06c0('0x1775'),'action':_0x4c06c0('0x86b'),'params':{'id':_0x53d9c3[_0x4c06c0('0x1775')]['id'],'nolimit':!![]}}}},{'name':'Tags','column':'Tag','type':_0x4c06c0('0x91f'),'options':{'route':{'model':_0x4c06c0('0x907'),'action':_0x4c06c0('0x595'),'params':{'nolimit':!![]}},'excludedOperators':[_0x4c06c0('0x23')]}},{'name':_0x4c06c0('0x18a1'),'column':_0x4c06c0('0x23ae'),'type':_0x4c06c0('0x2457'),'options':{'excludedOperators':[_0x4c06c0('0x3fe')]}},{'name':'Read','column':_0x4c06c0('0x6c5'),'type':_0x4c06c0('0x2844'),'values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':_0x4c06c0('0x1799')}],'options':{'excludedOperators':[_0x4c06c0('0x3fe')]}}]},_0x53d9c3['sectionColor']=_0x4c06c0('0x529'),_0x53d9c3[_0x4c06c0('0x1081')]=_0xd13f73,_0x53d9c3[_0x4c06c0('0xdb1')]=_0x24470a,_0x53d9c3[_0x4c06c0('0x75f')]=_0x291289,_0x53d9c3[_0x4c06c0('0x603')]=_0x456b6a,_0x53d9c3['downloadWhatsappInteraction']=_0x1470ff,_0x53d9c3[_0x4c06c0('0x125c')]=_0x58cbd4,_0x53d9c3['getContactLabel']=_0x511386,_0x53d9c3[_0x4c06c0('0x12b5')]=_0x26e46c,_0x53d9c3[_0x4c06c0('0x1637')]=_0x4c3634,_0x53d9c3['composeWhatsappInteraction']=_0x330ec9,_0x53d9c3[_0x4c06c0('0x21f9')]=_0x9caaec,_0x53d9c3[_0x4c06c0('0x1bf6')]=_0x3e759d,_0x53d9c3['openAdvancedSearch']=_0x260a94;function _0xd13f73(_0xa8adae,_0x397aaf){var _0x80335d=_0x4c06c0;return _0x53d9c3[_0x80335d('0x2ff')]=_0xa8adae,_0x53d9c3[_0x80335d('0x21e')]=_0x397aaf,_0x517128[_0x80335d('0x1775')][_0x80335d('0x595')+_0x86640f()['upperFirst'](_0x80335d('0x46a'))]({'id':_0x53d9c3['user']['id'],'nolimit':!![]})[_0x80335d('0x1376')][_0x80335d('0x21ad')](function(_0x16cf04){var _0x22fff6=_0x80335d;return _0x53d9c3[_0x22fff6('0x46a')]=_0x16cf04||{'count':0x0,'rows':[]},_0x517128[_0x22fff6('0x907')][_0x22fff6('0x595')]()['$promise'];})[_0x80335d('0x21ad')](function(_0x197a69){var _0x69afa1=_0x80335d;_0x53d9c3[_0x69afa1('0x1889')]=_0x197a69||{'count':0x0,'rows':[]};})[_0x80335d('0x21ad')](function(){var _0x44663f=_0x80335d;_0x53d9c3[_0x44663f('0x2255')]=_0x253913();})['catch'](function(_0x4d3071){var _0x4db5ea=_0x80335d;console[_0x4db5ea('0x2092')](_0x4d3071);})[_0x80335d('0x13e')](function(){var _0x4a56e1=_0x80335d,_0xbce206=_0x52e9eb[_0x4a56e1('0x161e')][_0x4a56e1('0x633')](_0x4a56e1('0x48d')+_0x53d9c3[_0x4a56e1('0x1775')]['id']);if(_0xbce206)try{_0xbce206=JSON['parse'](_0xbce206);if(_0xbce206[_0x4a56e1('0x77')]){_0x53d9c3[_0x4a56e1('0x77')]=_0x86640f()[_0x4a56e1('0xd0e')](_0x53d9c3[_0x4a56e1('0x77')],_0xbce206['query']);if(_0x86640f()[_0x4a56e1('0x23aa')](_0x53d9c3[_0x4a56e1('0x46a')]['rows']))_0x53d9c3[_0x4a56e1('0x77')][_0x4a56e1('0x2127')]=[];else _0x86640f()[_0x4a56e1('0x23aa')](_0x53d9c3[_0x4a56e1('0x77')]['WhatsappAccountId'])&&(_0x53d9c3[_0x4a56e1('0x77')][_0x4a56e1('0x2127')]=_0x86640f()(_0x53d9c3[_0x4a56e1('0x46a')]['rows'])[_0x4a56e1('0x26c3')]('id')[_0x4a56e1('0x11b0')]()['value']());_0x53d9c3[_0x4a56e1('0x77')][_0x4a56e1('0x1944')]&&_0x53d9c3[_0x4a56e1('0x77')][_0x4a56e1('0x1944')][_0x4a56e1('0x2004')](_0x4a56e1('0x961'))>=0x0&&(_0x53d9c3[_0x4a56e1('0x77')]=_0x86640f()['omit'](_0x53d9c3['query'],_0x4a56e1('0x1944'))),_0x53d9c3[_0x4a56e1('0x77')][_0x4a56e1('0x282f')]=!![],_0x53d9c3['isSearchBarVisible']=_0x53d9c3[_0x4a56e1('0x77')][_0x4a56e1('0x1503')]?!![]:![];}}catch(_0x23c28b){console['error'](_0x23c28b);}else{var _0x4521b4={'$gte':_0x1088bc()()[_0x4a56e1('0x1982')](_0x4a56e1('0xb64'))['utcOffset'](0x0,!![])['format'](),'$lte':_0x1088bc()()[_0x4a56e1('0x117b')](_0x4a56e1('0xb64'))['utcOffset'](0x0,!![])[_0x4a56e1('0x153')]()},_0x465bca={'WhatsappAccountId':_0x86640f()[_0x4a56e1('0x26c3')](_0x53d9c3['whatsappAccounts']['rows'],'id'),'createdAt':_0x4521b4};_0x53d9c3[_0x4a56e1('0x77')]=_0x86640f()[_0x4a56e1('0xd0e')](_0x53d9c3[_0x4a56e1('0x77')],_0x465bca);}_0x680e1a['on']('whatsappInteraction:save',_0x48de5d),_0x680e1a['on'](_0x4a56e1('0x1d11'),_0x48de5d),_0x680e1a['on'](_0x4a56e1('0x1597'),_0x102b70),_0x680e1a['on'](_0x4a56e1('0xa5a'),_0x3e8f8c),_0x680e1a['on'](_0x4a56e1('0x1dd1'),_0x3e8f8c),_0x680e1a['on'](_0x4a56e1('0x2520'),_0x57ff1c),_0x680e1a['on'](_0x4a56e1('0x230e'),_0x5126a1),_0x291289(_0x53d9c3['query']['page']);});}function _0x253913(){var _0x24683e=_0x4c06c0;return[{'name':'Start\x20Date','key':'createdAt','type':'date','label':_0x24683e('0x1d04')},{'name':_0x24683e('0x5d'),'key':_0x24683e('0x14ee'),'type':_0x24683e('0x2844'),'label':_0x24683e('0x15f4'),'customOptions':[{'value':0x0,'translate':_0x24683e('0x1799')},{'value':0x1,'translate':_0x24683e('0x629')},{'value':null,'translate':_0x24683e('0x1ee5')}]},{'name':'Status','key':_0x24683e('0x14ba'),'type':_0x24683e('0x2844'),'label':_0x24683e('0x2204'),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':_0x24683e('0x11d2')},{'value':null,'translate':_0x24683e('0x1ee5')}]},{'name':_0x24683e('0x5f0'),'key':_0x24683e('0x2127'),'type':_0x24683e('0x91f'),'label':_0x24683e('0x31e'),'options':_0x53d9c3[_0x24683e('0x46a')][_0x24683e('0x1b33')],'clearAll':![]},{'name':'Agent','key':_0x24683e('0x1dc6'),'type':_0x24683e('0x2844'),'label':_0x24683e('0x115d'),'customOptions':[{'value':_0x53d9c3[_0x24683e('0x1775')]['id'],'translate':'DASHBOARDS.ME'},{'value':'null','translate':_0x24683e('0x1932')},{'value':undefined,'translate':_0x24683e('0x1ee5')}]},{'name':'Tag','key':'tag','type':_0x24683e('0x91f'),'label':_0x24683e('0x138d'),'options':_0x53d9c3['tags'][_0x24683e('0x1b33')],'placeholder':_0x24683e('0xb1c')}];}function _0x24470a(_0x39c63f){var _0x35ef44=_0x4c06c0;_0x53d9c3[_0x35ef44('0x1fcd')]=![],_0x53d9c3[_0x35ef44('0xd1d')]=_0x39c63f||{'count':0x0,'rows':[]};for(var _0x176fb0=0x0;_0x176fb0<_0x53d9c3[_0x35ef44('0xd1d')][_0x35ef44('0x1b33')][_0x35ef44('0x577')];_0x176fb0+=0x1){_0x511386(_0x53d9c3['whatsappInteractions'][_0x35ef44('0x1b33')][_0x176fb0]);}}function _0x291289(_0x310381){var _0x1e9a97=_0x4c06c0;_0x53d9c3[_0x1e9a97('0x1fcd')]=!![];!_0x310381&&(_0x53d9c3[_0x1e9a97('0x77')][_0x1e9a97('0x2376')]=0x1);_0x53d9c3[_0x1e9a97('0x77')][_0x1e9a97('0x15a5')]=(_0x53d9c3['query'][_0x1e9a97('0x2376')]-0x1)*_0x53d9c3['query'][_0x1e9a97('0x1f4a')];var _0x7500ad=_0x52e9eb['localStorage']['getItem']('motion2.home.whatsapp:'+_0x53d9c3[_0x1e9a97('0x1775')]['id']);_0x7500ad=_0x7500ad?JSON[_0x1e9a97('0x399')](_0x7500ad):{},_0x7500ad[_0x1e9a97('0x77')]=_0x53d9c3[_0x1e9a97('0x77')],_0x52e9eb[_0x1e9a97('0x161e')][_0x1e9a97('0x1014')](_0x1e9a97('0x48d')+_0x53d9c3[_0x1e9a97('0x1775')]['id'],JSON[_0x1e9a97('0x25e')](_0x7500ad)),_0x53d9c3[_0x1e9a97('0x71b')]=_0x517128[_0x1e9a97('0xe4a')][_0x1e9a97('0x595')](_0x53d9c3[_0x1e9a97('0x77')],_0x24470a)[_0x1e9a97('0x1376')];}function _0x456b6a(_0x3bfd85,_0x299115){var _0x29e1ca=_0x4c06c0;_0x101c91[_0x29e1ca('0x223d')]['vm']['addInteractionTab'](_0x29e1ca('0x1ad4'),_0x299115);}function _0x1470ff(_0x45fe14,_0x19257f,_0x56b88b){var _0x3559ee=_0x4c06c0;_0x517128['whatsappInteraction']['download']({'id':_0x19257f['id'],'attachments':_0x56b88b})[_0x3559ee('0x1376')][_0x3559ee('0x21ad')](function(_0x59c786){var _0x4daf81=_0x3559ee,_0x14b8d9=[_0x59c786[_0x4daf81('0x3da')]],_0x2eebe2='whatsapp-interaction'+_0x19257f['id']+_0x4daf81('0x1622'),_0x23746c=new Blob(_0x14b8d9,{'type':_0x59c786['type']}),_0x6730ae=window['document'][_0x4daf81('0x162e')]('a');_0x6730ae[_0x4daf81('0x127a')](_0x4daf81('0x69e'),URL[_0x4daf81('0x167b')](_0x23746c)),_0x6730ae[_0x4daf81('0x127a')](_0x4daf81('0xb0'),_0x2eebe2),document['body'][_0x4daf81('0x14d0')](_0x6730ae),_0x6730ae[_0x4daf81('0x997')]();})[_0x3559ee('0x1c1d')](function(_0x18e963){var _0x45b830=_0x3559ee;if(_0x18e963[_0x45b830('0x11c2')]&&_0x18e963[_0x45b830('0x11c2')][_0x45b830('0x1a69')]&&_0x18e963[_0x45b830('0x11c2')][_0x45b830('0x1a69')][_0x45b830('0x577')])for(var _0x493b69=0x0;_0x493b69<_0x18e963[_0x45b830('0x11c2')][_0x45b830('0x1a69')][_0x45b830('0x577')];_0x493b69+=0x1){_0x42243f[_0x45b830('0x2092')]({'title':_0x18e963[_0x45b830('0x11c2')][_0x45b830('0x1a69')][_0x493b69][_0x45b830('0x7fa')],'msg':_0x18e963[_0x45b830('0x11c2')]['errors'][_0x493b69][_0x45b830('0x1224')]});}else _0x42243f[_0x45b830('0x2092')]({'title':_0x18e963[_0x45b830('0x209')]?_0x45b830('0x22d')+_0x18e963[_0x45b830('0x209')]+_0x45b830('0xa99')+_0x18e963[_0x45b830('0x1808')]:'downloadWhatsappInteraction','msg':_0x18e963[_0x45b830('0x11c2')]?JSON[_0x45b830('0x25e')](_0x18e963[_0x45b830('0x11c2')][_0x45b830('0x1224')]):_0x18e963[_0x45b830('0x174f')]()});});}function _0x58cbd4(_0x311655,_0x3c4277){var _0x34aa11=_0x4c06c0,_0x13939a=_0x53d9c3[_0x34aa11('0x1775')][_0x34aa11('0x1025')]||_0x53d9c3[_0x34aa11('0x1775')]['chatPause']||_0x53d9c3['user'][_0x34aa11('0x1396')]||_0x53d9c3['user'][_0x34aa11('0x2022')]||_0x53d9c3[_0x34aa11('0x1775')][_0x34aa11('0x23f5')],_0x33e633=!_0x3c4277[_0x34aa11('0x5f0')]['mandatoryDisposition'];_0x1c61c8[_0x34aa11('0x853')]({'controller':_0x34aa11('0x256e'),'controllerAs':'vm','templateUrl':_0x5b0a7e,'parent':angular[_0x34aa11('0x1676')](_0x260671['body']),'clickOutsideToClose':_0x33e633,'escapeToClose':_0x33e633,'onRemoving':function _0xd8a9f1(){var _0x30b6ce=_0x34aa11;_0x53d9c3[_0x30b6ce('0x1775')]&&_0x3c4277[_0x30b6ce('0x5f0')][_0x30b6ce('0x798')]&&!_0x13939a&&_0x517128[_0x30b6ce('0x1775')][_0x30b6ce('0xa8e')]({'id':_0x53d9c3['user']['id']})['$promise'][_0x30b6ce('0x1c1d')](function(_0x4b000b){var _0x37bd1f=_0x30b6ce;console[_0x37bd1f('0x2092')](_0x4b000b);});},'locals':{'user':_0x53d9c3[_0x34aa11('0x1775')],'channel':_0x34aa11('0x1ad4'),'interaction':_0x3c4277}});}function _0x511386(_0x27e0c1){var _0x158918=_0x4c06c0;_0x27e0c1[_0x158918('0x1d10')]?(_0x27e0c1[_0x158918('0x1717')]=(_0x27e0c1[_0x158918('0x1d10')][_0x158918('0x992')]||'')+'\x20'+(_0x27e0c1[_0x158918('0x1d10')]['lastName']||''),_0x27e0c1[_0x158918('0x67e')]=_0x27e0c1['Contact']['mobile']):_0x27e0c1[_0x158918('0x1717')]=_0x1a40be['instant'](_0x158918('0xc13'));}function _0x26e46c(_0x21a11f){var _0x30827d=_0x4c06c0;if(_0x21a11f['UserId'])return _0x21a11f[_0x30827d('0x1dc6')]===_0x53d9c3[_0x30827d('0x1775')]['id']?_0x1a40be[_0x30827d('0x183e')]('DASHBOARDS.ME'):_0x21a11f[_0x30827d('0x11a8')][_0x30827d('0x20f5')]+'\x20<'+_0x21a11f[_0x30827d('0x11a8')][_0x30827d('0x201f')]+'>';return _0x1a40be[_0x30827d('0x183e')](_0x30827d('0x1932'));}function _0x4c3634(_0x3d84fd){var _0x59bf75=_0x4c06c0;if(_0x3d84fd['Account'])return _0x3d84fd[_0x59bf75('0x5f0')][_0x59bf75('0xddb')];return _0x1a40be[_0x59bf75('0x183e')](_0x59bf75('0xc13'));}function _0x330ec9(_0x2e7501,_0x3f16e7){var _0x5d7024=_0x4c06c0;_0x1c61c8[_0x5d7024('0x853')]({'controller':_0x5d7024('0x848'),'controllerAs':'vm','templateUrl':_0x91aafd,'parent':angular['element'](_0x260671['body']),'clickOutsideToClose':![],'locals':{'account':_0x3f16e7,'message':{},'type':_0x5d7024('0xb82'),'interaction':{}},'fullscreen':!![]})['then'](function(_0xe4718c){var _0x2d2a4c=_0x5d7024;if(_0xe4718c){if(_0xe4718c[_0x2d2a4c('0x1224')]&&_0xe4718c[_0x2d2a4c('0x1224')]['savedAsDraft']){var _0x269a9a={'channel':_0x2d2a4c('0x1ad4'),'account':_0x3f16e7,'message':_0xe4718c[_0x2d2a4c('0x1224')],'contact':_0xe4718c[_0x2d2a4c('0x150c')]};_0x2f8b0c[_0x2d2a4c('0x1842')](_0x269a9a);}else{var _0xe40c61=_0xe4718c;return _0x517128[_0x2d2a4c('0x1b5d')][_0x2d2a4c('0x2471')]({'id':_0x3f16e7['id']},_0xe40c61)[_0x2d2a4c('0x1376')][_0x2d2a4c('0x21ad')](function(_0x547bab){var _0x5f257c=_0x2d2a4c;_0x42243f[_0x5f257c('0xdb1')]({'title':_0x5f257c('0xc07'),'msg':_0x5f257c('0x4b5')}),_0x101c91[_0x5f257c('0x223d')]['vm'][_0x5f257c('0x11b4')](_0x5f257c('0x1ad4'),_0x547bab);})['catch'](function(_0x4d4532){var _0x315293=_0x2d2a4c;if(_0x4d4532[_0x315293('0x11c2')]&&_0x4d4532['data'][_0x315293('0x1a69')]&&_0x4d4532[_0x315293('0x11c2')]['errors']['length'])for(var _0x2cd45e=0x0;_0x2cd45e<_0x4d4532['data'][_0x315293('0x1a69')][_0x315293('0x577')];_0x2cd45e++){_0x42243f[_0x315293('0x2092')]({'title':_0x4d4532['data']['errors'][_0x2cd45e]['type'],'msg':_0x4d4532[_0x315293('0x11c2')][_0x315293('0x1a69')][_0x2cd45e][_0x315293('0x1224')]});}else _0x42243f[_0x315293('0x2092')]({'title':_0x4d4532[_0x315293('0x209')]?_0x315293('0x22d')+_0x4d4532[_0x315293('0x209')]+_0x315293('0xa99')+_0x4d4532['statusText']:_0x315293('0x174e'),'msg':_0x4d4532[_0x315293('0x11c2')]?JSON['stringify'](_0x4d4532[_0x315293('0x11c2')][_0x315293('0x1224')]):_0x4d4532[_0x315293('0x1224')]||_0x4d4532[_0x315293('0x174f')]()});});}}});}function _0x57ff1c(_0x2a9a24){var _0x4fb9ee=_0x4c06c0,_0x43a48b,_0x205af2=_0x86640f()[_0x4fb9ee('0x1d2e')](_0x53d9c3['whatsappInteractions'][_0x4fb9ee('0x1b33')],{'id':_0x2a9a24[_0x4fb9ee('0x74f')]});_0x205af2&&_0x205af2[_0x4fb9ee('0x6cc')]&&(_0x43a48b=_0x86640f()[_0x4fb9ee('0x1d2e')](_0x205af2[_0x4fb9ee('0x6cc')],{'id':_0x2a9a24[_0x4fb9ee('0x1dc6')]}),!_0x43a48b&&_0x205af2[_0x4fb9ee('0x6cc')][_0x4fb9ee('0x206c')]({'id':_0x2a9a24['UserId']}));}function _0x5126a1(_0xb0281d){var _0x1bd974=_0x4c06c0,_0xfc0c07=_0x86640f()[_0x1bd974('0x1d2e')](_0x53d9c3['whatsappInteractions']['rows'],{'id':_0xb0281d['WhatsappInteractionId']});_0xfc0c07&&_0xfc0c07[_0x1bd974('0x6cc')]&&_0x86640f()[_0x1bd974('0x16a2')](_0xfc0c07[_0x1bd974('0x6cc')],{'id':_0xb0281d[_0x1bd974('0x1dc6')]});}function _0x48de5d(_0x59496a){var _0x310f23=_0x4c06c0;if(_0x59496a){var _0x241763=_0x86640f()[_0x310f23('0x1d2e')](_0x53d9c3['whatsappInteractions']['rows'],{'id':_0x59496a['id']});if(_0x241763){_0x241763[_0x310f23('0x6cc')]=[];_0x59496a['closed']&&(_0x241763[_0x310f23('0x6c5')]=0x0);if(_0x53d9c3[_0x310f23('0x77')][_0x310f23('0x1944')]){var _0x1d98c9=_0x86640f()[_0x310f23('0x2837')](_0x53d9c3['query'][_0x310f23('0x1944')],'-')?_0x310f23('0x340'):_0x310f23('0x15d6');_0x53d9c3['whatsappInteractions'][_0x310f23('0x1b33')]=_0x86640f()[_0x310f23('0x11df')](_0x53d9c3[_0x310f23('0xd1d')][_0x310f23('0x1b33')],_0x86640f()[_0x310f23('0x1ab4')](_0x53d9c3[_0x310f23('0x77')]['sort'],'-'),_0x1d98c9);}_0x86640f()[_0x310f23('0xd0e')](_0x241763,_0x86640f()['pick'](_0x59496a,_0x86640f()[_0x310f23('0x223b')](_0x241763)));}else _0x291289(_0x53d9c3[_0x310f23('0x77')][_0x310f23('0x2376')]);}}function _0x102b70(_0x10ab7c){var _0x43bf57=_0x4c06c0;if(_0x10ab7c){var _0x421b7e=_0x86640f()[_0x43bf57('0x1d2e')](_0x53d9c3[_0x43bf57('0xd1d')]['rows'],{'id':_0x10ab7c['id']});_0x421b7e&&(_0x421b7e[_0x43bf57('0x557')]=_0x10ab7c[_0x43bf57('0x1889')]||[],_0x86640f()[_0x43bf57('0xd0e')](_0x421b7e,_0x86640f()[_0x43bf57('0xc50')](_0x10ab7c,_0x86640f()[_0x43bf57('0x223b')](_0x421b7e))));}}function _0x3e8f8c(_0x56aa1a){var _0x4be0a3=_0x4c06c0;if(_0x56aa1a&&!_0x56aa1a[_0x4be0a3('0x1d1b')]){var _0x2aba6f=_0x86640f()[_0x4be0a3('0x1d2e')](_0x53d9c3[_0x4be0a3('0xd1d')][_0x4be0a3('0x1b33')],{'id':_0x56aa1a[_0x4be0a3('0x74f')]});if(_0x2aba6f){var _0xe623fa=_0x86640f()[_0x4be0a3('0x1d2e')](_0x2aba6f['Messages'],{'id':_0x56aa1a['id']});_0xe623fa?_0x86640f()[_0x4be0a3('0xd0e')](_0xe623fa,_0x86640f()[_0x4be0a3('0xc50')](_0x56aa1a,_0x86640f()[_0x4be0a3('0x223b')](_0xe623fa))):(_0x86640f()[_0x4be0a3('0x1c7')](_0x2aba6f['Messages'])&&(_0x2aba6f[_0x4be0a3('0x5d')]={'count':0x0}),!_0x56aa1a[_0x4be0a3('0x14ee')]&&(_0x2aba6f[_0x4be0a3('0x5d')][_0x4be0a3('0x205f')]+=0x1));}}}function _0x9caaec(){var _0x8a0187=_0x4c06c0;_0x53d9c3[_0x8a0187('0x146a')]=![];}function _0x3e759d(){var _0x4f2553=_0x4c06c0;_0x53d9c3[_0x4f2553('0x146a')]=!![];}function _0x260a94(){var _0x3df69c=_0x4c06c0;_0x53d9c3[_0x3df69c('0x146a')]=![],_0x1c61c8[_0x3df69c('0x853')]({'controller':_0x3df69c('0xde1'),'controllerAs':'vm','templateUrl':_0x44f47e,'parent':angular['element'](_0x260671[_0x3df69c('0x2452')]),'clickOutsideToClose':![],'locals':{'color':_0x53d9c3['sectionColor'],'fields':_0x53d9c3[_0x3df69c('0x2211')][_0x3df69c('0x181e')],'storagePath':_0x3df69c('0x953')},'fullscreen':!![]})['then'](function(_0x6eb0c3){var _0x27cd62=_0x3df69c;_0x53d9c3[_0x27cd62('0x77')]['search']=_0x6eb0c3===![]?undefined:_0x6eb0c3;if(_0x53d9c3[_0x27cd62('0x77')]['search']||_0x6eb0c3===![])_0x291289();})[_0x3df69c('0x1c1d')](function(_0x6fd850){var _0x15d8c1=_0x3df69c;_0x42243f['error']({'title':_0x15d8c1('0x1399'),'msg':_0x6fd850[_0x15d8c1('0x11c2')]?JSON[_0x15d8c1('0x25e')](_0x6fd850[_0x15d8c1('0x11c2')]['message']):_0x6fd850[_0x15d8c1('0x174f')]()});});}var _0x234f06=!![],_0x2b839c=0x1;_0x101c91[_0x4c06c0('0x10e8')](_0x4c06c0('0x1948'),function(_0x1211a5,_0x32ede8){var _0xe4d931=_0x4c06c0;_0x234f06?_0x415834(function(){_0x234f06=![];}):(!_0x32ede8&&(_0x2b839c=_0x53d9c3[_0xe4d931('0x77')][_0xe4d931('0x2376')]),_0x1211a5!==_0x32ede8&&(_0x53d9c3[_0xe4d931('0x77')]['page']=0x1),!_0x1211a5&&(_0x53d9c3[_0xe4d931('0x77')][_0xe4d931('0x2376')]=_0x2b839c),_0x291289(_0x53d9c3[_0xe4d931('0x77')][_0xe4d931('0x2376')]));}),_0x101c91['$on'](_0x4c06c0('0x1210'),function(){var _0x5dd0a5=_0x4c06c0;_0x680e1a[_0x5dd0a5('0x16cc')](_0x5dd0a5('0xa5a')),_0x680e1a[_0x5dd0a5('0x16cc')](_0x5dd0a5('0x1dd1')),_0x680e1a[_0x5dd0a5('0x16cc')](_0x5dd0a5('0x1692')),_0x680e1a[_0x5dd0a5('0x16cc')](_0x5dd0a5('0x1597')),_0x680e1a['removeAllListeners']('whatsappInteraction:update'),_0x680e1a['removeAllListeners']('user_has_whatsapp_interactions:save'),_0x680e1a[_0x5dd0a5('0x16cc')](_0x5dd0a5('0x230e'));});}const _0x3860d8=_0x5e95d9;_0x57974d[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$sce'];function _0x57974d(_0x329d52,_0x158b0c){var _0x1e0c16=_0x3877e3,_0x4c378f=this;_0x4c378f[_0x1e0c16('0x21e')]={},_0x4c378f[_0x1e0c16('0xd36')]={'count':0x0,'rows':[]},_0x4c378f[_0x1e0c16('0x104b')]=![];function _0x22d8ae(_0xfa39f8,_0x1342ca){var _0x481b39=_0x1e0c16;_0x4c378f['setting']=_0x1342ca,_0x4c378f[_0x481b39('0x12e1')]=_0xfa39f8,_0x4c378f[_0x481b39('0x12e1')][_0x481b39('0x15b4')]=!![];}function _0x28078f(){var _0x43dfe8=_0x1e0c16;return _0x158b0c['trustAsResourceUrl'](_0x4c378f[_0x43dfe8('0x12e1')]['src']);}_0x4c378f[_0x1e0c16('0x1d75')]=_0x22d8ae,_0x4c378f[_0x1e0c16('0x271e')]=_0x28078f;}const _0x44ddd7=_0x57974d,_0x4da6cb=_0x398308['p']+'src/js/modules/main/apps/dashboards/views/general/agent/interaction/tag/dialog.html/dialog-[chunkhash].html',_0x34719e=_0x398308['p']+'src/js/modules/main/apps/dashboards/views/general/agent/interaction/transfer/dialog.html/dialog-[chunkhash].html';_0x8befa5[_0x3877e3('0x1a81')]=['$sce'],_0x388fde['$inject']=[_0x3877e3('0x26'),_0x3877e3('0x2313'),_0x3877e3('0x243f'),'$scope',_0x3877e3('0x1850'),'$q','$location',_0x3877e3('0x13c1'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),'socket','msUtils',_0x3877e3('0x2113')];function _0x388fde(_0x4cf8c4,_0x4578d0,_0x4d844e,_0x54c09c,_0x457e13,_0x3a4cd6,_0x4dcb8d,_0x48fcfc,_0x2ad6f0,_0x19bd18,_0x30ccbb,_0x370dc4,_0x37cf4b,_0x83704a){var _0x40b7e6=_0x3877e3,_0x2b84ac=this,_0x4a5179=0x19,_0x2a5a8f=_0x4a5179*0x400*0x400;_0x2b84ac[_0x40b7e6('0x122b')]=![],_0x2b84ac['showInteraction']=![],_0x2b84ac['user']=_0x30ccbb[_0x40b7e6('0x15ed')](),_0x2b84ac[_0x40b7e6('0xc51')]=_0x37cf4b[_0x40b7e6('0xc51')](),_0x2b84ac[_0x40b7e6('0xd1b')]=[],_0x2b84ac[_0x40b7e6('0x2329')]=[],_0x2b84ac[_0x40b7e6('0x26f4')]=['mail',_0x40b7e6('0x1f65'),_0x40b7e6('0x3d0'),_0x40b7e6('0xac9'),'fax','whatsapp'],_0x2b84ac['ngFlowOptions']={'target':_0x40b7e6('0x261f'),'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x2a5a8f,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x2b84ac['ngFlow']={'flow':{}},_0x2b84ac[_0x40b7e6('0x1603')]={},_0x2b84ac[_0x40b7e6('0x2466')]={},_0x2b84ac[_0x40b7e6('0x21e')]={},_0x2b84ac[_0x40b7e6('0xa7c')]={},_0x2b84ac['embedOptions']={'fontSmiley':!![],'sanitizeHtml':!![],'emoji':!![],'link':!![],'linkTarget':_0x40b7e6('0x1c1f')},_0x2b84ac['firstDayMonth']=new Date(_0x1088bc()()[_0x40b7e6('0x1982')]('month')[_0x40b7e6('0xafa')](0x1,'seconds')[_0x40b7e6('0x215e')](0x0,!![])[_0x40b7e6('0x153')]()),_0x2b84ac['lastDayMonth']=new Date(_0x1088bc()()[_0x40b7e6('0x117b')](_0x40b7e6('0xb64'))[_0x40b7e6('0xafa')](0x1,_0x40b7e6('0x1837'))[_0x40b7e6('0x215e')](0x0,!![])['format']()),_0x2b84ac['init']=_0xc05426,_0x2b84ac['getLabelByMessage']=_0x1c3faa,_0x2b84ac['openContact']=_0x54a00f,_0x2b84ac['openInteraction']=_0x18db24,_0x2b84ac[_0x40b7e6('0x125c')]=_0x499f03,_0x2b84ac[_0x40b7e6('0x204a')]=_0x239943,_0x2b84ac[_0x40b7e6('0x1df2')]=_0x51dba2,_0x2b84ac['composeFaxInteraction']=_0x6a26ca,_0x2b84ac[_0x40b7e6('0x2141')]=_0xd0f3e8,_0x2b84ac['composeWhatsappInteraction']=_0x524c16,_0x2b84ac[_0x40b7e6('0x1588')]=_0x22ec9e,_0x2b84ac[_0x40b7e6('0x30a')]=_0x1dfd80,_0x2b84ac[_0x40b7e6('0x22b8')]=_0x26219d,_0x2b84ac['openDraft']=_0x575f76,_0x2b84ac[_0x40b7e6('0x17dc')]=_0x2031c5,_0x2b84ac[_0x40b7e6('0x191d')]=_0x142857,_0x2b84ac[_0x40b7e6('0x1718')]=_0x106e12,_0x2b84ac[_0x40b7e6('0x17f8')]=_0x30ed10,_0x2b84ac[_0x40b7e6('0x86b')]=_0x45caad,_0x2b84ac['getOpenchannelAccounts']=_0x457aff,_0x2b84ac[_0x40b7e6('0x2675')]=_0x3f7807,_0x2b84ac[_0x40b7e6('0x130')]=_0x19f6d1,_0x2b84ac[_0x40b7e6('0x820')]=_0x1b5d7b,_0x2b84ac[_0x40b7e6('0x12d0')]=_0x26999a,_0x2b84ac[_0x40b7e6('0x20d9')]=_0x4f35cd,_0x2b84ac[_0x40b7e6('0x27eb')]=_0x4346f3,_0x2b84ac[_0x40b7e6('0x25eb')]=_0xafe43,_0x2b84ac[_0x40b7e6('0xc85')]=_0x4b763d,_0x2b84ac[_0x40b7e6('0xb42')]=_0x1df2c8,_0x2b84ac[_0x40b7e6('0x258d')]=_0x337928,_0x2b84ac[_0x40b7e6('0x234c')]=_0x4f5ea2,_0x2b84ac[_0x40b7e6('0x10b5')]=_0x255552,_0x2b84ac[_0x40b7e6('0x1e6f')]=_0x12c26f,_0x2b84ac[_0x40b7e6('0x207b')]=_0x3160f3,_0x2b84ac[_0x40b7e6('0xf5b')]=![],_0x2b84ac[_0x40b7e6('0x194f')]=_0x4f8eee,_0x2b84ac[_0x40b7e6('0x2014')]=_0x43808c,_0x2b84ac[_0x40b7e6('0x10c8')]=_0x184fb8,_0x2b84ac[_0x40b7e6('0x39b')]=_0x4ace35,_0x2b84ac[_0x40b7e6('0x2692')]=_0xc37395,_0x2b84ac[_0x40b7e6('0xe1a')]=_0x139096,_0x2b84ac['htmlToPlaintext']=_0x3c05e6,_0x2b84ac[_0x40b7e6('0x26cf')]=_0x1869fd,_0x2b84ac[_0x40b7e6('0x27dd')]=_0x5b4e18,_0x2b84ac[_0x40b7e6('0xdf9')]=_0x561774,_0x2b84ac[_0x40b7e6('0x2a8')]={'scrollEl':'#interaction-content'};function _0x3f7807(){var _0x7e3b4d=_0x40b7e6;_0x2ad6f0[_0x7e3b4d('0x1775')][_0x7e3b4d('0x2675')]({'id':_0x2b84ac[_0x7e3b4d('0x1775')]['id'],'nolimit':!![]})['$promise'][_0x7e3b4d('0x21ad')](function(_0x27182c){var _0x2749d5=_0x7e3b4d;_0x2b84ac[_0x2749d5('0xcec')]=_0x27182c||{'count':0x0,'rows':[]};});}function _0x19f6d1(){var _0x140fc5=_0x40b7e6;_0x2ad6f0[_0x140fc5('0x1775')][_0x140fc5('0x130')]({'id':_0x2b84ac[_0x140fc5('0x1775')]['id'],'nolimit':!![]})[_0x140fc5('0x1376')][_0x140fc5('0x21ad')](function(_0x158705){var _0x188536=_0x140fc5;_0x2b84ac[_0x188536('0x607')]=_0x158705||{'count':0x0,'rows':[]};});}function _0x457aff(){var _0x140890=_0x40b7e6;_0x2ad6f0[_0x140890('0x1775')][_0x140890('0x10fd')]({'id':_0x2b84ac[_0x140890('0x1775')]['id'],'nolimit':!![]})['$promise'][_0x140890('0x21ad')](function(_0x3b66ef){var _0x5a9769=_0x140890;_0x2b84ac[_0x5a9769('0x226c')]=_0x3b66ef||{'count':0x0,'rows':[]};})[_0x140890('0x1c1d')](function(_0x4afdc4){var _0x3363a7=_0x140890;if(_0x4afdc4['data']&&_0x4afdc4[_0x3363a7('0x11c2')]['errors']&&_0x4afdc4[_0x3363a7('0x11c2')][_0x3363a7('0x1a69')][_0x3363a7('0x577')]){_0x2b84ac[_0x3363a7('0x1a69')]=_0x4afdc4['data']['errors']||[{'message':_0x4afdc4[_0x3363a7('0x174f')](),'type':_0x3363a7('0x20ed')}];for(var _0x5d3fbd=0x0;_0x5d3fbd<_0x4afdc4[_0x3363a7('0x11c2')]['errors']['length'];_0x5d3fbd+=0x1){_0x19bd18['error']({'title':_0x4afdc4[_0x3363a7('0x11c2')]['errors'][_0x5d3fbd][_0x3363a7('0x7fa')],'msg':_0x4afdc4[_0x3363a7('0x11c2')][_0x3363a7('0x1a69')][_0x5d3fbd][_0x3363a7('0x1224')]});}}else _0x19bd18[_0x3363a7('0x2092')]({'title':_0x4afdc4[_0x3363a7('0x209')]?_0x3363a7('0x22d')+_0x4afdc4[_0x3363a7('0x209')]+'\x20-\x20'+_0x4afdc4[_0x3363a7('0x1808')]:_0x3363a7('0x20ed'),'msg':_0x4afdc4[_0x3363a7('0x11c2')]?JSON[_0x3363a7('0x25e')](_0x4afdc4[_0x3363a7('0x11c2')]['message']):_0x4afdc4[_0x3363a7('0x174f')]()});});}function _0x142857(){var _0x298d59=_0x40b7e6;_0x2ad6f0[_0x298d59('0x1775')][_0x298d59('0x191d')]({'id':_0x2b84ac[_0x298d59('0x1775')]['id'],'nolimit':!![]})['$promise'][_0x298d59('0x21ad')](function(_0x74d12d){var _0x6e276a=_0x298d59;_0x2b84ac[_0x6e276a('0x21ab')]=_0x74d12d||{'count':0x0,'rows':[]};});}function _0x106e12(){var _0x53f768=_0x40b7e6;_0x2ad6f0[_0x53f768('0x1775')][_0x53f768('0x1718')]({'id':_0x2b84ac[_0x53f768('0x1775')]['id'],'nolimit':!![]})[_0x53f768('0x1376')]['then'](function(_0x24c746){_0x2b84ac['faxAccounts']=_0x24c746||{'count':0x0,'rows':[]};});}function _0x30ed10(){var _0x3801cf=_0x40b7e6;_0x2ad6f0['user']['getSmsAccounts']({'id':_0x2b84ac[_0x3801cf('0x1775')]['id'],'nolimit':!![]})[_0x3801cf('0x1376')][_0x3801cf('0x21ad')](function(_0x9a6f3a){var _0x39965b=_0x3801cf;_0x2b84ac[_0x39965b('0x102b')]=_0x9a6f3a||{'count':0x0,'rows':[]};});}function _0x45caad(){var _0x4ca93b=_0x40b7e6;_0x2ad6f0[_0x4ca93b('0x1775')][_0x4ca93b('0x86b')]({'id':_0x2b84ac[_0x4ca93b('0x1775')]['id'],'nolimit':!![]})[_0x4ca93b('0x1376')][_0x4ca93b('0x21ad')](function(_0x144ba1){var _0x1d76e1=_0x4ca93b;_0x2b84ac[_0x1d76e1('0x46a')]=_0x144ba1||{'count':0x0,'rows':[]};});}function _0x561774(){var _0xe79c86=_0x40b7e6,_0x205b22=_0x3a4cd6[_0xe79c86('0xca9')]();if(_0x2b84ac[_0xe79c86('0x83f')])return _0x2b84ac['queryMessage'][_0xe79c86('0x15a5')]=_0x2b84ac[_0xe79c86('0xd36')][_0xe79c86('0x1b33')]['length'],_0x2ad6f0[_0x2b84ac[_0xe79c86('0x12e1')][_0xe79c86('0x27b5')]+_0xe79c86('0xec3')][_0xe79c86('0x83')](_0x2b84ac['queryMessage'])[_0xe79c86('0x1376')][_0xe79c86('0x21ad')](function(_0x4dcccf){var _0x47ae27=_0xe79c86;for(var _0x39aca5=0x0;_0x39aca5<_0x4dcccf[_0x47ae27('0x1b33')][_0x47ae27('0x577')];_0x39aca5+=0x1){_0x2b84ac[_0x47ae27('0xd36')][_0x47ae27('0x1b33')]['push'](_0x4dcccf['rows'][_0x39aca5]),!_0x2b84ac[_0x47ae27('0x1d23')][_0x47ae27('0x14ba')]&&_0x4dcccf['rows'][_0x39aca5][_0x47ae27('0xfab')]==='in'&&!_0x4dcccf['rows'][_0x39aca5][_0x47ae27('0x14ee')]&&(_0x2ad6f0[_0x2b84ac[_0x47ae27('0x12e1')][_0x47ae27('0x27b5')]+'Message'][_0x47ae27('0x134f')]({'id':_0x4dcccf[_0x47ae27('0x1b33')][_0x39aca5]['id'],'UserId':_0x2b84ac[_0x47ae27('0x1775')]['id']}),_0x2b84ac['acceptedMessages'][_0x47ae27('0x206c')](_0x4dcccf['rows'][_0x39aca5]['id']));}return _0x205b22[_0x47ae27('0x8ac')](_0x4dcccf);})[_0xe79c86('0x1c1d')](function(_0x52d727){var _0x5cd60b=_0xe79c86;return _0x205b22[_0x5cd60b('0x37a')](_0x52d727);});return _0x205b22[_0xe79c86('0x37a')]();}function _0xc05426(_0x23435e,_0x11fc0c){var _0x50a21d=_0x40b7e6;_0x2b84ac[_0x50a21d('0x12e1')]=_0x23435e,_0x2b84ac[_0x50a21d('0x12e1')][_0x50a21d('0x15b4')]=!![],_0x2b84ac[_0x50a21d('0x12e1')][_0x50a21d('0x1d6b')]=0x0,_0x2b84ac['setting']=_0x11fc0c||{},_0x2b84ac['tab']&&_0x2b84ac[_0x50a21d('0x12e1')][_0x50a21d('0x27b5')]&&_0x2b84ac[_0x50a21d('0x12e1')][_0x50a21d('0x1d23')]&&(_0x2b84ac[_0x50a21d('0x1d23')]=_0x2b84ac[_0x50a21d('0x12e1')][_0x50a21d('0x1d23')],_0x2ad6f0[_0x2b84ac[_0x50a21d('0x12e1')][_0x50a21d('0x27b5')]+_0x50a21d('0xec3')][_0x50a21d('0x595')]({'id':_0x2b84ac[_0x50a21d('0x12e1')][_0x50a21d('0x1d23')]['id'],'includeAll':!![]})[_0x50a21d('0x1376')]['then'](function(_0x28b29c){var _0x2c82de=_0x50a21d;return _0x28b29c&&(_0x2b84ac[_0x2c82de('0x1d23')]=_0x28b29c,_0x2b84ac[_0x2c82de('0x12e1')][_0x2c82de('0x1d23')]=_0x28b29c),_0x2b84ac['tab'][_0x2c82de('0x15b4')]=_0x2b84ac['interaction'][_0x2c82de('0x14ba')],_0x2b84ac[_0x2c82de('0x83f')]={'id':_0x2b84ac[_0x2c82de('0x1d23')]['id'],'includeAll':!![]},_0x2b84ac[_0x2c82de('0x12e1')][_0x2c82de('0x27b5')]===_0x2c82de('0x1c8b')?(_0x2b84ac['queryMessage']['sort']=_0x2c82de('0x51d'),_0x2b84ac[_0x2c82de('0x83f')]['offset']=0x0,_0x2b84ac[_0x2c82de('0x83f')][_0x2c82de('0x1f4a')]=0x3):(_0x2b84ac['queryMessage'][_0x2c82de('0x1944')]='id',_0x2b84ac['queryMessage'][_0x2c82de('0x1dc3')]=!![]),_0x2ad6f0[_0x2b84ac[_0x2c82de('0x12e1')][_0x2c82de('0x27b5')]+_0x2c82de('0xec3')][_0x2c82de('0x83')](_0x2b84ac[_0x2c82de('0x83f')])['$promise'];})['then'](function(_0x31ee4e){var _0x530903=_0x50a21d;return _0x2b84ac[_0x530903('0xd36')]=_0x31ee4e||{'count':0x0,'rows':[]},_0x2ad6f0[_0x2b84ac[_0x530903('0x12e1')][_0x530903('0x27b5')]==='chat'?_0x530903('0xe3c'):_0x2b84ac[_0x530903('0x12e1')][_0x530903('0x27b5')]+_0x530903('0x5f0')][_0x530903('0x595')]({'id':_0x2b84ac[_0x530903('0x1d23')][_0x2b84ac[_0x530903('0x12e1')][_0x530903('0x27b5')]===_0x530903('0x1f65')?_0x530903('0x15f9'):_0x86640f()[_0x530903('0x1b7e')](_0x2b84ac[_0x530903('0x12e1')][_0x530903('0x27b5')])+_0x530903('0xe37')]})[_0x530903('0x1376')];})['then'](function(_0x4ca50b){var _0x45b141=_0x50a21d;_0x2b84ac[_0x45b141('0x1fd3')]=_0x4ca50b,_0x2b84ac[_0x45b141('0x12e1')][_0x45b141('0x4b4')]=_0x2b84ac['account'][_0x45b141('0xddb')]||_0x2b84ac[_0x45b141('0x1fd3')][_0x45b141('0x19fe')];if(_0x2b84ac[_0x45b141('0x1d23')][_0x45b141('0x2596')])return _0x2ad6f0[_0x45b141('0x25dc')][_0x45b141('0x595')]({'id':_0x2b84ac[_0x45b141('0x1d23')]['ContactId']})[_0x45b141('0x1376')];})['then'](function(_0x57b9c2){var _0x1db88a=_0x50a21d;return _0x57b9c2&&(_0x2b84ac[_0x1db88a('0x150c')]=_0x57b9c2),_0x2b84ac[_0x1db88a('0x104b')]=!![],_0x2b84ac[_0x1db88a('0x150c')]?(_0x1b0697(_0x2b84ac[_0x1db88a('0x150c')]),_0x2b84ac[_0x1db88a('0x12e1')][_0x1db88a('0x4b4')]+=_0x1db88a('0xa99')+_0x2b84ac['contact'][_0x1db88a('0x992')]):_0x2b84ac[_0x1db88a('0x12e1')][_0x1db88a('0x4b4')]+=_0x1db88a('0xa99')+_0x48fcfc[_0x1db88a('0x183e')](_0x2b84ac['tab'][_0x1db88a('0x27b5')][_0x1db88a('0x2e8')]()+_0x1db88a('0x1822')),_0x2ad6f0[_0x1db88a('0x1775')]['get']({'fields':_0x1db88a('0x26e5'),'nolimit':!![]})[_0x1db88a('0x1376')];})[_0x50a21d('0x21ad')](function(_0x29b806){var _0x284768=_0x50a21d;_0x2b84ac[_0x284768('0x188e')]=_0x29b806||{'count':0x0,'rows':[]},_0x2b84ac[_0x284768('0x214d')]=_0x86640f()[_0x284768('0x9e7')](_0x86640f()[_0x284768('0xcde')](_0x2b84ac['users'][_0x284768('0x1b33')],'id'),_0x284768('0x20f5'));})[_0x50a21d('0x21ad')](function(){var _0x2b29df=_0x50a21d;if(_0x2b84ac[_0x2b29df('0x12e1')][_0x2b29df('0x27b5')]&&_0x2b84ac['interaction'])return _0x2ad6f0[_0x2b29df('0x1775')]['add'+_0x86640f()['upperFirst'](_0x2b84ac[_0x2b29df('0x12e1')]['channel'])+_0x2b29df('0x17e4')]({'id':_0x2b84ac[_0x2b29df('0x1775')]['id'],'ids':[_0x2b84ac[_0x2b29df('0x1d23')]['id']]});})[_0x50a21d('0x21ad')](function(){var _0x43fdad=_0x50a21d;return _0x2ad6f0[_0x43fdad('0xa94')][_0x43fdad('0x595')]({'sort':_0x43fdad('0x19fe'),'nolimit':!![]})[_0x43fdad('0x1376')];})[_0x50a21d('0x21ad')](function(_0x332efb){var _0x1cbd47=_0x50a21d;_0x2b84ac[_0x1cbd47('0xd90')]=_0x332efb||{'count':0x0,'rows':[]};})['then'](function(){var _0x3b20a1=_0x50a21d;return _0x2b84ac[_0x3b20a1('0x191d')]();})[_0x50a21d('0x21ad')](function(){return _0x2b84ac['getFaxAccounts']();})[_0x50a21d('0x21ad')](function(){var _0x445aeb=_0x50a21d;return _0x2b84ac[_0x445aeb('0x17f8')]();})[_0x50a21d('0x21ad')](function(){var _0x471bf5=_0x50a21d;return _0x2b84ac[_0x471bf5('0x86b')]();})['then'](function(){var _0x3f4d4f=_0x50a21d;return _0x2b84ac[_0x3f4d4f('0x10fd')]();})[_0x50a21d('0x21ad')](function(){var _0x5b9f08=_0x50a21d;return _0x2b84ac[_0x5b9f08('0x2675')]();})[_0x50a21d('0x21ad')](function(){var _0x54326c=_0x50a21d;return _0x2b84ac[_0x54326c('0x130')]();})[_0x50a21d('0x1c1d')](function(){var _0x3a90ce=_0x50a21d;_0x2b84ac[_0x3a90ce('0x104b')]=!![];})['finally'](function(){var _0x28121d=_0x50a21d;_0x2cbd54(),_0x481dad(),_0x370dc4['on'](_0x2b84ac[_0x28121d('0x12e1')][_0x28121d('0x27b5')]+'Message:save',_0x2b84ac[_0x28121d('0x25eb')]),_0x370dc4['on'](_0x2b84ac['tab'][_0x28121d('0x27b5')]+_0x28121d('0x1a7a'),_0x2b84ac[_0x28121d('0x25eb')]),_0x370dc4['on'](_0x2b84ac[_0x28121d('0x12e1')][_0x28121d('0x27b5')]+'Interaction:save',_0x2b84ac[_0x28121d('0xc85')]),_0x370dc4['on'](_0x2b84ac['tab']['channel']+_0x28121d('0x2613'),_0x2b84ac[_0x28121d('0xc85')]),_0x370dc4['on'](_0x28121d('0x167e')+_0x2b84ac[_0x28121d('0x12e1')][_0x28121d('0x27b5')]+_0x28121d('0xa2e'),_0x2b84ac[_0x28121d('0x26cf')]),_0x370dc4['on'](_0x28121d('0x167e')+_0x2b84ac[_0x28121d('0x12e1')][_0x28121d('0x27b5')]+_0x28121d('0x1531'),_0x2b84ac[_0x28121d('0x27dd')]),_0x2b84ac['tab']['areaText']=_0x2b84ac[_0x28121d('0x12e1')][_0x28121d('0x20c2')]?_0x2b84ac[_0x28121d('0x12e1')][_0x28121d('0x20c2')]:'',_0x2b84ac[_0x28121d('0x122b')]=!![],_0x2b84ac['tab'][_0x28121d('0x27b5')]===_0x28121d('0x1c8b')&&(_0x2b84ac[_0x28121d('0x939')]=_0x83704a[_0x28121d('0x888')](_0x2b84ac[_0x28121d('0x12e1')][_0x28121d('0x1d23')]['id']),_0x2b84ac['tab'][_0x28121d('0x1fde')]&&(_0x2b84ac[_0x28121d('0x12e1')]['interaction'][_0x28121d('0x14ba')]?(_0x83704a[_0x28121d('0xf08')](_0x2b84ac[_0x28121d('0x12e1')][_0x28121d('0x1d23')]['id']),_0x2b84ac[_0x28121d('0x939')]=null):_0x575f76()));}));}function _0x4ace35(_0x41a01f){var _0x2a7d36=_0x40b7e6;if(_0x41a01f[_0x2a7d36('0x1de9')])return _0x86640f()[_0x2a7d36('0xb34')](_0x86640f()[_0x2a7d36('0x26c3')](_0x2b84ac[_0x2a7d36('0x1695')]?_0x2b84ac[_0x2a7d36('0x1695')][_0x2a7d36('0x1b33')]:[],'id'),_0x41a01f['FaxAccountId']);else{if(_0x41a01f[_0x2a7d36('0xc92')])return _0x86640f()[_0x2a7d36('0xb34')](_0x86640f()[_0x2a7d36('0x26c3')](_0x2b84ac[_0x2a7d36('0x226c')]?_0x2b84ac[_0x2a7d36('0x226c')][_0x2a7d36('0x1b33')]:[],'id'),_0x41a01f[_0x2a7d36('0xc92')]);else{if(_0x41a01f[_0x2a7d36('0x822')])return _0x86640f()[_0x2a7d36('0xb34')](_0x86640f()[_0x2a7d36('0x26c3')](_0x2b84ac[_0x2a7d36('0x102b')]?_0x2b84ac[_0x2a7d36('0x102b')][_0x2a7d36('0x1b33')]:[],'id'),_0x41a01f['SmsAccountId']);else{if(_0x41a01f[_0x2a7d36('0x2127')])return _0x86640f()[_0x2a7d36('0xb34')](_0x86640f()[_0x2a7d36('0x26c3')](_0x2b84ac[_0x2a7d36('0x46a')]?_0x2b84ac[_0x2a7d36('0x46a')][_0x2a7d36('0x1b33')]:[],'id'),_0x41a01f[_0x2a7d36('0x2127')]);else{if(_0x41a01f[_0x2a7d36('0x723')])return _0x86640f()[_0x2a7d36('0xb34')](_0x86640f()[_0x2a7d36('0x26c3')](_0x2b84ac[_0x2a7d36('0x21ab')]?_0x2b84ac[_0x2a7d36('0x21ab')][_0x2a7d36('0x1b33')]:[],'id'),_0x41a01f[_0x2a7d36('0x723')]);else{if(_0x41a01f[_0x2a7d36('0x15f9')])return _0x86640f()['includes'](_0x86640f()[_0x2a7d36('0x26c3')](_0x2b84ac['chatAccounts']?_0x2b84ac[_0x2a7d36('0xcec')][_0x2a7d36('0x1b33')]:[],'id'),_0x41a01f[_0x2a7d36('0x15f9')]);else{if(_0x41a01f[_0x2a7d36('0x31a')])return!![];}}}}}}return![];}function _0x1869fd(_0x28ba43){var _0x22572f=_0x40b7e6,_0xae564c;_0x2b84ac[_0x22572f('0x1d23')]['id']==_0x28ba43[_0x86640f()[_0x22572f('0x22e')](_0x2b84ac[_0x22572f('0x12e1')][_0x22572f('0x27b5')])+_0x22572f('0x1114')]&&(_0x2b84ac[_0x22572f('0x1d23')]['Users']&&(_0xae564c=_0x86640f()[_0x22572f('0x1d2e')](_0x2b84ac[_0x22572f('0x1d23')]['Users'],{'id':_0x28ba43[_0x22572f('0x1dc6')]})),!_0xae564c&&_0x2b84ac[_0x22572f('0x1d23')][_0x22572f('0x6cc')]['push']({'id':_0x28ba43['UserId']}));}function _0x5b4e18(_0x4f2c00){var _0x2a9699=_0x40b7e6;_0x2b84ac[_0x2a9699('0x1d23')]['id']==_0x4f2c00[_0x86640f()[_0x2a9699('0x22e')](_0x2b84ac[_0x2a9699('0x12e1')]['channel'])+_0x2a9699('0x1114')]&&(_0x2b84ac[_0x2a9699('0x1d23')][_0x2a9699('0x6cc')]&&_0x86640f()[_0x2a9699('0x16a2')](_0x2b84ac[_0x2a9699('0x1d23')][_0x2a9699('0x6cc')],{'id':_0x4f2c00[_0x2a9699('0x1dc6')]}));}function _0x337928(_0x2c0aeb){var _0x581fed=_0x40b7e6;if(_0x2c0aeb){try{_0x86640f()[_0x581fed('0x53e')][_0x581fed('0x2493')]=/{{([\s\S]+?)}}/g;var _0x5af289=_0x86640f()['template'](_0x2c0aeb['value']),_0x5bcc46={'user':_0x2b84ac['user'],'account':_0x2b84ac[_0x581fed('0x1fd3')],'interaction':_0x2b84ac[_0x581fed('0x1d23')],'contact':_0x2b84ac[_0x581fed('0x1d23')]&&_0x2b84ac[_0x581fed('0x1d23')][_0x581fed('0x1d10')]?_0x2b84ac[_0x581fed('0x1d23')]['Contact']:{}};_0x2b84ac['tab'][_0x581fed('0x20c2')]+='\x20'+_0x5af289(_0x5bcc46),_0x2b84ac[_0x581fed('0xa7c')][_0x581fed('0x23fd')](_0x2b84ac[_0x581fed('0x12e1')][_0x581fed('0x20c2')]);}catch(_0x1f568d){_0x2b84ac[_0x581fed('0x12e1')][_0x581fed('0x20c2')]+='\x20'+_0x2c0aeb[_0x581fed('0x2228')],_0x2b84ac[_0x581fed('0xa7c')]['setText'](_0x2b84ac[_0x581fed('0x12e1')][_0x581fed('0x20c2')]);}_0x2b84ac[_0x581fed('0x212e')]=null,_0x2b84ac[_0x581fed('0x194f')]();}}function _0x1df2c8(_0x4dbc1b){var _0x29115c=_0x40b7e6,_0x3aa9f3=_0x3a4cd6[_0x29115c('0xca9')](),_0x1438cd=[],_0x563da8={},_0x2debf2=_0x2b84ac[_0x29115c('0x12e1')][_0x29115c('0x27b5')]===_0x29115c('0x1f65')?_0x29115c('0x15f9'):_0x86640f()[_0x29115c('0x1b7e')](_0x2b84ac[_0x29115c('0x12e1')][_0x29115c('0x27b5')])+_0x29115c('0xe37');return _0x563da8['filter']=_0x4dbc1b,_0x563da8[_0x2debf2]=_0x2b84ac[_0x29115c('0x1fd3')]['id'],_0x2ad6f0[_0x29115c('0x25e5')][_0x29115c('0x595')](_0x563da8)['$promise'][_0x29115c('0x21ad')](function(_0x316b6c){var _0x25a1c0=_0x29115c;return _0x1438cd=_0x86640f()[_0x25a1c0('0x1877')](_0x1438cd,_0x316b6c['rows']),_0x2ad6f0[_0x25a1c0('0x25e5')]['get']({'filter':_0x4dbc1b})[_0x25a1c0('0x1376')];})[_0x29115c('0x21ad')](function(_0x194706){var _0x18ea15=_0x29115c;_0x1438cd=_0x86640f()[_0x18ea15('0x1877')](_0x1438cd,_0x86640f()['filter'](_0x194706[_0x18ea15('0x1b33')],function(_0x23ae66){var _0x392064=_0x18ea15;return!_0x23ae66[_0x392064('0x723')]&&!_0x23ae66[_0x392064('0x1de9')]&&!_0x23ae66['SmsAccountId']&&!_0x23ae66[_0x392064('0x2127')]&&!_0x23ae66[_0x392064('0xc92')]&&!_0x23ae66['ChatWebsiteId'];})),_0x3aa9f3[_0x18ea15('0x8ac')](_0x1438cd);})[_0x29115c('0x1c1d')](function(_0x22c0fb){_0x3aa9f3['reject'](_0x22c0fb);}),_0x3aa9f3[_0x29115c('0x71b')];}function _0x54a00f(_0x4f5eb0,_0x3a7736){var _0x581bb5=_0x40b7e6;try{_0x2b84ac[_0x581bb5('0x12e1')]&&!_0x2b84ac[_0x581bb5('0x12e1')]['spy']&&_0x54c09c['$parent']['$parent']['$parent']['vm'][_0x581bb5('0x110d')](_0x3a7736||_0x2b84ac[_0x581bb5('0x150c')]);}catch(_0x4b1c6f){_0x19bd18[_0x581bb5('0x2092')]({'title':'ERROR\x20OPEN\x20CONTACT','msg':_0x581bb5('0xeb')});}}function _0x18db24(_0x2c5a29,_0x5b6078){var _0x443716=_0x40b7e6;try{if(_0x5b6078[_0x443716('0x723')])return _0x54c09c[_0x443716('0x223d')]['$parent'][_0x443716('0x223d')]['vm'][_0x443716('0x11b4')](_0x443716('0x1c8b'),_0x5b6078);else{if(_0x5b6078[_0x443716('0x15f9')])return _0x54c09c[_0x443716('0x223d')][_0x443716('0x223d')][_0x443716('0x223d')]['vm'][_0x443716('0x11b4')](_0x443716('0x1f65'),_0x5b6078);else{if(_0x5b6078[_0x443716('0x822')])return _0x54c09c[_0x443716('0x223d')][_0x443716('0x223d')]['$parent']['vm']['addInteractionTab']('sms',_0x5b6078);else{if(_0x5b6078[_0x443716('0x2127')])return _0x54c09c[_0x443716('0x223d')]['$parent'][_0x443716('0x223d')]['vm'][_0x443716('0x11b4')](_0x443716('0x1ad4'),_0x5b6078);else{if(_0x5b6078[_0x443716('0xc92')])return _0x54c09c[_0x443716('0x223d')][_0x443716('0x223d')][_0x443716('0x223d')]['vm'][_0x443716('0x11b4')]('openchannel',_0x5b6078);else{if(_0x5b6078['FaxAccountId'])return _0x54c09c[_0x443716('0x223d')][_0x443716('0x223d')][_0x443716('0x223d')]['vm']['addInteractionTab']('fax',_0x5b6078);}}}}}}catch(_0x2e2f00){_0x19bd18[_0x443716('0x2092')]({'title':_0x443716('0x1243'),'msg':_0x443716('0x198a')});}}function _0x239943(){var _0x3aea0f=_0x40b7e6;_0x457e13[_0x3aea0f('0x853')]({'controller':_0x3aea0f('0x1584'),'controllerAs':'vm','templateUrl':_0x4da6cb,'parent':angular[_0x3aea0f('0x1676')](_0x4d844e[_0x3aea0f('0x2452')]),'clickOutsideToClose':!![],'skipHide':Boolean(_0x2b84ac[_0x3aea0f('0x12e1')]['spy']),'resolve':{'tags':[_0x3aea0f('0x354'),function _0x331d52(_0x1f8747){var _0x5cf7d8=_0x3aea0f;return _0x1f8747['resolve'](_0x5cf7d8('0x995'),{'sort':_0x5cf7d8('0x19fe'),'nolimit':!![],'fields':'id,name,color'});}]},'locals':{'channel':_0x2b84ac['tab']['channel'],'interaction':_0x2b84ac[_0x3aea0f('0x12e1')]['interaction']}});}function _0x499f03(){var _0xffd766=_0x40b7e6,_0x55bf52=_0x2b84ac['user'][_0xffd766('0x1025')]||_0x2b84ac[_0xffd766('0x1775')][_0xffd766('0x1785')]||_0x2b84ac['user'][_0xffd766('0x1396')]||_0x2b84ac['user'][_0xffd766('0x2022')]||_0x2b84ac['user'][_0xffd766('0x23f5')],_0x2865b4=!_0x2b84ac['tab'][_0xffd766('0x1d23')][_0xffd766('0x5f0')]['mandatoryDisposition'];_0x457e13[_0xffd766('0x853')]({'controller':_0xffd766('0x256e'),'controllerAs':'vm','templateUrl':_0x5b0a7e,'parent':angular['element'](_0x4d844e['body']),'clickOutsideToClose':_0x2865b4,'escapeToClose':_0x2865b4,'onRemoving':function _0x11fde7(){var _0x19e8e5=_0xffd766;_0x2b84ac[_0x19e8e5('0x1775')]&&_0x2b84ac[_0x19e8e5('0x1d23')][_0x19e8e5('0x5f0')]['mandatoryDisposition']&&!_0x55bf52&&_0x2ad6f0[_0x19e8e5('0x1775')]['unpause']({'id':_0x2b84ac['user']['id']})[_0x19e8e5('0x1376')][_0x19e8e5('0x1c1d')](function(_0x2765a1){var _0x5f428b=_0x19e8e5;console[_0x5f428b('0x2092')](_0x2765a1);});},'locals':{'user':_0x2b84ac[_0xffd766('0x1775')],'channel':_0x2b84ac[_0xffd766('0x12e1')]['channel'],'interaction':_0x2b84ac[_0xffd766('0x12e1')][_0xffd766('0x1d23')]}})[_0xffd766('0x21ad')](function(_0x2e9bb1){var _0x3e11ab=_0xffd766;_0x2b84ac['tab'][_0x3e11ab('0x15b4')]=Boolean(_0x2e9bb1),_0x2e9bb1&&_0x54c09c[_0x3e11ab('0x223d')][_0x3e11ab('0x223d')]['$parent']['vm']['closeTab'](_0x2b84ac[_0x3e11ab('0x12e1')]);});}function _0xee86b6(_0x4d3fb8,_0xdb0da6){var _0x525fb4=_0x40b7e6;_0x2b84ac['tab'][_0x525fb4('0x1224')]=_0xdb0da6,_0x457e13['show']({'controller':'ComposeMailInteractionDialogController','controllerAs':'vm','templateUrl':_0x1aa985,'parent':angular[_0x525fb4('0x1676')](_0x4d844e[_0x525fb4('0x2452')]),'clickOutsideToClose':![],'locals':{'account':_0x2b84ac[_0x525fb4('0x1fd3')],'message':_0x2b84ac[_0x525fb4('0x12e1')][_0x525fb4('0x1224')],'type':_0x4d3fb8,'interaction':_0x2b84ac[_0x525fb4('0x1d23')]},'fullscreen':!![],'skipHide':Boolean(_0x2b84ac[_0x525fb4('0x12e1')][_0x525fb4('0xc65')])})[_0x525fb4('0x21ad')](function(_0x4b2658){var _0x3987ca=_0x525fb4;if(_0x4b2658){if(_0x4b2658[_0x3987ca('0x1224')]&&_0x4b2658[_0x3987ca('0x1224')][_0x3987ca('0x230b')])_0x2b84ac[_0x3987ca('0x939')]?_0x83704a[_0x3987ca('0x5ef')]({'id':_0x2b84ac['draft']['id'],'channel':'mail','account':_0x2b84ac[_0x3987ca('0x1fd3')],'message':_0x4b2658[_0x3987ca('0x1224')],'contact':_0x2b84ac[_0x3987ca('0x150c')],'interaction':_0x2b84ac[_0x3987ca('0x1d23')]}):_0x83704a[_0x3987ca('0x1842')]({'channel':_0x3987ca('0x1c8b'),'account':_0x2b84ac[_0x3987ca('0x1fd3')],'message':_0x4b2658[_0x3987ca('0x1224')],'contact':_0x2b84ac[_0x3987ca('0x150c')],'interaction':_0x2b84ac[_0x3987ca('0x1d23')]}),_0x2b84ac['draft']=_0x83704a[_0x3987ca('0x888')](_0x2b84ac['tab'][_0x3987ca('0x1d23')]['id']);else{var _0x559a33=_0x4b2658;_0x559a33&&_0x261463(_0x559a33),_0x559a33['Interaction']&&_0x2b84ac['interaction']&&_0x2b84ac[_0x3987ca('0x1d23')]['id']&&(_0x559a33['Interaction']['id']=_0x2b84ac['interaction']['id'],_0x2ad6f0['mailInteraction'][_0x3987ca('0x5ef')](_0x559a33[_0x3987ca('0xec3')])[_0x3987ca('0x1376')][_0x3987ca('0x21ad')](function(_0x479ba4){var _0x1e8b71=_0x3987ca;if(_0x479ba4&&_0x479ba4[_0x1e8b71('0x14ba')])_0x2b84ac[_0x1e8b71('0x12e1')]['saved']=!![],_0x2b84ac[_0x1e8b71('0x1d23')][_0x1e8b71('0x14ba')]=!![],_0x499f03();else _0x559a33[_0x1e8b71('0xec3')][_0x1e8b71('0x1abc')]!==null&&(_0x2b84ac[_0x1e8b71('0x12e1')][_0x1e8b71('0x15b4')]=!![],_0x2b84ac[_0x1e8b71('0x12e1')][_0x1e8b71('0x1d23')][_0x1e8b71('0x1abc')]=_0x559a33[_0x1e8b71('0xec3')][_0x1e8b71('0x1abc')],_0x54c09c['$parent'][_0x1e8b71('0x223d')][_0x1e8b71('0x223d')]['vm'][_0x1e8b71('0x39d')](_0x2b84ac[_0x1e8b71('0x12e1')]));})['catch'](function(_0x31675b){var _0x16dc99=_0x3987ca;console[_0x16dc99('0x2092')](_0x31675b);}));}}})[_0x525fb4('0x13e')](function(){var _0x17b637=_0x525fb4;_0x2b84ac['tab'][_0x17b637('0x1fde')]=![];});}function _0x51dba2(_0x39e3a8,_0x300769){var _0x34576c=_0x40b7e6;if(_0x300769[_0x34576c('0x1524')]){var _0x5340f8=_0x86640f()[_0x34576c('0x1d2e')](_0x2b84ac['messages'][_0x34576c('0x1b33')],{'messageId':_0x300769[_0x34576c('0x1524')]});if(_0x5340f8)_0xee86b6(_0x39e3a8,_0x5340f8);else return _0x2ad6f0[_0x34576c('0x4cd')][_0x34576c('0x595')]({'messageId':_0x300769['inReplyTo']})[_0x34576c('0x1376')][_0x34576c('0x21ad')](function(_0x217e60){var _0x368582=_0x34576c;_0xee86b6(_0x39e3a8,_0x217e60&&_0x217e60[_0x368582('0x205f')]?_0x217e60['rows'][0x0]:undefined);})[_0x34576c('0x1c1d')](function(_0x302a3e){var _0x13d868=_0x34576c;console[_0x13d868('0x2092')](_0x302a3e),_0xee86b6(_0x39e3a8,undefined);});}else _0xee86b6(_0x39e3a8,_0x300769);}function _0x6a26ca(_0x2fca11){var _0x4ae931=_0x40b7e6,_0x2a77c1={'to':[]};_0x2a77c1['to'][_0x4ae931('0x206c')](_0x2b84ac[_0x4ae931('0x150c')][_0x4ae931('0x93f')]),_0x457e13[_0x4ae931('0x853')]({'controller':'ComposeFaxInteractionDialogController','controllerAs':'vm','templateUrl':_0x1b0109,'parent':angular[_0x4ae931('0x1676')](_0x4d844e[_0x4ae931('0x2452')]),'clickOutsideToClose':![],'locals':{'account':_0x2b84ac[_0x4ae931('0x1fd3')],'message':_0x2a77c1,'type':_0x2fca11},'fullscreen':!![]})[_0x4ae931('0x21ad')](function(_0x2d7b2a){var _0x3241e0=_0x4ae931;return _0x2ad6f0[_0x3241e0('0xeb2')][_0x3241e0('0x2471')]({'id':_0x2b84ac['account']['id']},_0x2d7b2a)[_0x3241e0('0x1376')][_0x3241e0('0x21ad')](function(_0x52bf72){var _0x457c27=_0x3241e0;_0x19bd18['success']({'title':_0x457c27('0xc07'),'msg':_0x457c27('0x4b5')}),_0x54c09c[_0x457c27('0x223d')]['vm'][_0x457c27('0x11b4')](_0x457c27('0x93f'),_0x52bf72);})[_0x3241e0('0x1c1d')](function(_0xfaf60b){var _0x3dfa43=_0x3241e0;if(_0xfaf60b[_0x3dfa43('0x11c2')]&&_0xfaf60b['data'][_0x3dfa43('0x1a69')]&&_0xfaf60b[_0x3dfa43('0x11c2')][_0x3dfa43('0x1a69')][_0x3dfa43('0x577')])for(var _0x5ad018=0x0;_0x5ad018<_0xfaf60b['data'][_0x3dfa43('0x1a69')]['length'];_0x5ad018++){_0x19bd18['error']({'title':_0xfaf60b[_0x3dfa43('0x11c2')][_0x3dfa43('0x1a69')][_0x5ad018]['type'],'msg':_0xfaf60b['data'][_0x3dfa43('0x1a69')][_0x5ad018][_0x3dfa43('0x1224')]});}else _0x19bd18['error']({'title':'FAX:SEND','msg':_0xfaf60b[_0x3dfa43('0x11c2')]?JSON[_0x3dfa43('0x25e')](_0xfaf60b[_0x3dfa43('0x11c2')]):_0xfaf60b[_0x3dfa43('0x1224')]||_0xfaf60b[_0x3dfa43('0x174f')]()});});});}function _0xd0f3e8(_0x2926c9,_0x4c7274){var _0x3998a5=_0x40b7e6;_0x457e13[_0x3998a5('0x853')]({'controller':_0x3998a5('0x1278'),'controllerAs':'vm','templateUrl':_0x28174d,'parent':angular[_0x3998a5('0x1676')](_0x4d844e[_0x3998a5('0x2452')]),'clickOutsideToClose':![],'locals':{'account':_0x2b84ac[_0x3998a5('0x1fd3')],'message':_0x4c7274,'type':_0x2926c9},'fullscreen':!![],'skipHide':Boolean(_0x2b84ac[_0x3998a5('0x12e1')][_0x3998a5('0xc65')])})[_0x3998a5('0x21ad')](function(_0x55857e){_0x55857e&&_0x261463(_0x55857e);});}function _0x524c16(_0x1cb7dc,_0x4f48c0){var _0x109420=_0x40b7e6;_0x457e13[_0x109420('0x853')]({'controller':_0x109420('0x848'),'controllerAs':'vm','templateUrl':_0x91aafd,'parent':angular[_0x109420('0x1676')](_0x4d844e[_0x109420('0x2452')]),'clickOutsideToClose':![],'locals':{'account':_0x2b84ac[_0x109420('0x1fd3')],'message':_0x4f48c0,'type':_0x1cb7dc},'fullscreen':!![],'skipHide':Boolean(_0x2b84ac['tab'][_0x109420('0xc65')])})[_0x109420('0x21ad')](function(_0x4a270b){_0x4a270b&&_0x261463(_0x4a270b);});}function _0x22ec9e(){var _0x4a292f=_0x40b7e6;if(_0x2b84ac[_0x4a292f('0x1d23')]){var _0x460d17=_0x86640f()[_0x4a292f('0x1da2')](_0x2b84ac['messages']['rows'],function(_0x13fdf0){var _0x8282bd=_0x4a292f;return _0x13fdf0[_0x8282bd('0xfab')]==='in';});_0x460d17?_0x457e13[_0x4a292f('0x853')]({'controller':_0x4a292f('0x592'),'controllerAs':'vm','templateUrl':_0x34719e,'parent':angular[_0x4a292f('0x1676')](_0x4d844e[_0x4a292f('0x2452')]),'clickOutsideToClose':![],'locals':{'account':_0x2b84ac[_0x4a292f('0x1fd3')],'interaction':_0x2b84ac[_0x4a292f('0x1d23')],'message':_0x460d17,'channel':_0x2b84ac['tab'][_0x4a292f('0x27b5')]}})[_0x4a292f('0x21ad')](function(_0x5d1a0a){var _0xa7639c=_0x4a292f;_0x2b84ac[_0xa7639c('0x12e1')][_0xa7639c('0x15b4')]=Boolean(_0x5d1a0a),_0x5d1a0a&&_0x54c09c[_0xa7639c('0x223d')][_0xa7639c('0x223d')][_0xa7639c('0x223d')]['vm'][_0xa7639c('0x39d')](_0x2b84ac[_0xa7639c('0x12e1')]);}):_0x19bd18[_0x4a292f('0x2092')]({'title':_0x4a292f('0x1892'),'msg':_0x4a292f('0x991')});}}function _0x551cec(_0x423320){var _0x19273f=_0x40b7e6,_0x1defa1={},_0x264304=_0x2b84ac[_0x19273f('0x12e1')][_0x19273f('0x27b5')]===_0x19273f('0x1f65')?'ChatWebsiteId':_0x86640f()[_0x19273f('0x1b7e')](_0x2b84ac[_0x19273f('0x12e1')][_0x19273f('0x27b5')])+_0x19273f('0xe37');return _0x1defa1[_0x264304]=_0x2b84ac['interaction'][_0x264304][_0x19273f('0x174f')](),_0x1defa1[_0x86640f()[_0x19273f('0x1b7e')](_0x2b84ac['tab'][_0x19273f('0x27b5')])+'InteractionId']=_0x2b84ac[_0x19273f('0x1d23')]['id'],(_0x2b84ac[_0x19273f('0x12e1')]['channel']===_0x19273f('0x3d0')||_0x2b84ac[_0x19273f('0x12e1')][_0x19273f('0x27b5')]===_0x19273f('0x1ad4'))&&(_0x1defa1[_0x19273f('0x159e')]=_0x2b84ac[_0x19273f('0x1d23')][_0x19273f('0x159e')]),_0x423320&&(_0x1defa1[_0x19273f('0x1dc6')]=_0x2b84ac[_0x19273f('0x1775')]['id'],_0x1defa1[_0x19273f('0x2596')]=_0x2b84ac[_0x19273f('0x1d23')][_0x19273f('0x2596')],_0x1defa1[_0x19273f('0x2452')]=_0x423320),_0x1defa1;}function _0x4f35cd(_0x5a7719){var _0x7c4eb=_0x40b7e6;if(_0x5a7719[_0x7c4eb('0x337')]>_0x2a5a8f)return _0x19bd18[_0x7c4eb('0x2092')]({'title':_0x7c4eb('0x8d1'),'msg':_0x7c4eb('0xc3a')+_0x4a5179+'MB'}),![];return!![];}function _0x4346f3(_0x5b6cd7,_0x37eb5d){var _0x596e77=_0x40b7e6,_0x520815=JSON[_0x596e77('0x399')](_0x37eb5d),_0x4dd38b=_0x520815['name'];_0x2b84ac[_0x596e77('0x12e1')][_0x596e77('0x27b5')]===_0x596e77('0x1f65')&&(_0x4dd38b=_0x596e77('0x1b60')+(_0x2b84ac['account'][_0x596e77('0x132d')]?_0x2b84ac[_0x596e77('0x1fd3')][_0x596e77('0x132d')]:_0x4dcb8d['protocol']()+_0x596e77('0x22a9')+_0x4dcb8d[_0x596e77('0x1c01')]())+'/api/chat/interactions/'+_0x2b84ac[_0x596e77('0x1d23')]['id']+_0x596e77('0x15ca')+_0x520815['id']+_0x596e77('0x1408')+_0x2b84ac['account'][_0x596e77('0x1797')]+_0x596e77('0x1ef0')+_0x520815[_0x596e77('0x19fe')]+_0x596e77('0x781')),_0x261463({'body':_0x4dd38b,'AttachmentId':_0x520815['id']});}function _0x26999a(){var _0x378521=_0x40b7e6;_0x2b84ac[_0x378521('0x1413')][_0x378521('0x1d76')][_0x378521('0x1dd3')][_0x378521('0x4d8')]={'X-Requested-With':_0x378521('0x24ca'),'Authorization':_0x378521('0x5c8')+_0x4cf8c4[_0x378521('0x595')](_0x378521('0x863'))},_0x2b84ac[_0x378521('0x1413')][_0x378521('0x1d76')]['upload']();}function _0x1b5d7b(_0x31898e,_0x37e981){var _0x595f32=_0x40b7e6;if(_0x31898e&&_0x31898e['keyCode']===0xd&&_0x31898e['shiftKey'])return;if(_0x31898e&&_0x31898e['keyCode']!==0xd)return;if(_0x37e981[_0x595f32('0x2078')]()==='')return;_0x261463(_0x551cec(_0x37e981[_0x595f32('0x16e4')](/\n$/,'')));}function _0x481dad(){var _0x4789cf=_0x40b7e6;_0x2b84ac[_0x4789cf('0x12e1')][_0x4789cf('0x27b5')]!==_0x4789cf('0x1c8b')&&_0x4578d0(function(){var _0x447b60=_0x4789cf,_0xaf1f58=angular[_0x447b60('0x1676')](_0x4d844e[_0x447b60('0x1d2e')](_0x447b60('0x2013')+_0x2b84ac[_0x447b60('0x12e1')]['id']+'\x27]'));_0xaf1f58&&_0xaf1f58[0x0]&&(_0xaf1f58[0x0][_0x447b60('0x192b')]=_0xaf1f58[0x0][_0x447b60('0x27a0')]);},0x0);}function _0x1c3faa(_0x169647){var _0x318c8d=_0x40b7e6,_0x49e2a7='loading...';if(_0x169647){if(_0x169647['direction']==='in')return _0x169647[_0x318c8d('0x1d10')]?_0x169647[_0x318c8d('0x1d10')][_0x318c8d('0x992')]||_0x318c8d('0xbf9'):_0x49e2a7;else{if(_0x169647[_0x318c8d('0x1dc6')])return _0x2b84ac[_0x318c8d('0x214d')]?_0x2b84ac[_0x318c8d('0x214d')][_0x169647[_0x318c8d('0x1dc6')]]:_0x49e2a7;}return'System'||0x0;}}function _0x1dfd80(_0x1a1c46,_0x306e87){var _0x297057=_0x40b7e6;_0x2b84ac[_0x297057('0x12e1')][_0x297057('0x27b5')]&&_0x1a1c46['id']&&_0x2ad6f0[_0x2b84ac['tab']['channel']+_0x297057('0x1ee8')][_0x297057('0xb0')]({'id':_0x1a1c46['id'],'attachments':_0x306e87})[_0x297057('0x1376')][_0x297057('0x21ad')](function(_0x393033){var _0x51248b=_0x297057,_0x40d531=[_0x393033['buffer']],_0x147a49=_0x51248b('0xb0'),_0x15dd49=new Blob(_0x40d531,{'type':_0x393033[_0x51248b('0x7fa')]});_0x147a49=_0x2b84ac[_0x51248b('0x12e1')][_0x51248b('0x27b5')]+_0x51248b('0xda7')+_0x1a1c46['id']+_0x51248b('0x224a');var _0x38d694=window[_0x51248b('0x27c3')]['createElement']('a');_0x38d694[_0x51248b('0x127a')](_0x51248b('0x69e'),URL[_0x51248b('0x167b')](_0x15dd49)),_0x38d694[_0x51248b('0x127a')](_0x51248b('0xb0'),_0x147a49),document['body']['appendChild'](_0x38d694),_0x38d694[_0x51248b('0x997')]();})[_0x297057('0x1c1d')](function(_0x12e5e7){var _0xb527df=_0x297057;if(_0x12e5e7[_0xb527df('0x11c2')]&&_0x12e5e7['data'][_0xb527df('0x1a69')]&&_0x12e5e7[_0xb527df('0x11c2')][_0xb527df('0x1a69')]['length'])for(var _0x211238=0x0;_0x211238<_0x12e5e7[_0xb527df('0x11c2')][_0xb527df('0x1a69')]['length'];_0x211238+=0x1){_0x19bd18['error']({'title':_0x12e5e7[_0xb527df('0x11c2')]['errors'][_0x211238][_0xb527df('0x7fa')],'msg':_0x12e5e7[_0xb527df('0x11c2')][_0xb527df('0x1a69')][_0x211238][_0xb527df('0x1224')]});}else _0x19bd18[_0xb527df('0x2092')]({'title':_0x12e5e7[_0xb527df('0x209')]?'API:'+_0x12e5e7['status']+_0xb527df('0xa99')+_0x12e5e7[_0xb527df('0x1808')]:_0xb527df('0x419'),'msg':_0x12e5e7[_0xb527df('0x11c2')]?JSON[_0xb527df('0x25e')](_0x12e5e7[_0xb527df('0x11c2')][_0xb527df('0x1224')]):_0x12e5e7[_0xb527df('0x174f')]()});});}function _0x26219d(_0x59c898,_0x5d1021){var _0x1a3b60=_0x40b7e6;_0x2b84ac[_0x1a3b60('0x12e1')][_0x1a3b60('0x27b5')]&&_0x59c898['id']&&_0x2ad6f0[_0x2b84ac['tab'][_0x1a3b60('0x27b5')]+_0x1a3b60('0xec3')][_0x1a3b60('0xb0')]({'id':_0x59c898['id'],'attachments':_0x5d1021})[_0x1a3b60('0x1376')][_0x1a3b60('0x21ad')](function(_0x3bd609){var _0x5dfd5b=_0x1a3b60,_0x36c40e=[_0x3bd609[_0x5dfd5b('0x3da')]],_0x27ead6=_0x2b84ac[_0x5dfd5b('0x12e1')]['channel']+_0x5dfd5b('0x10e2')+_0x59c898['id']+_0x5dfd5b('0x1622'),_0x58bda9=new Blob(_0x36c40e,{'type':_0x3bd609[_0x5dfd5b('0x7fa')]}),_0x519682=window['document'][_0x5dfd5b('0x162e')]('a');_0x519682[_0x5dfd5b('0x127a')](_0x5dfd5b('0x69e'),URL[_0x5dfd5b('0x167b')](_0x58bda9)),_0x519682[_0x5dfd5b('0x127a')](_0x5dfd5b('0xb0'),_0x27ead6),document[_0x5dfd5b('0x2452')][_0x5dfd5b('0x14d0')](_0x519682),_0x519682[_0x5dfd5b('0x997')]();})[_0x1a3b60('0x1c1d')](function(_0x5edf07){var _0x564b6d=_0x1a3b60;if(_0x5edf07[_0x564b6d('0x11c2')]&&_0x5edf07['data']['errors']&&_0x5edf07[_0x564b6d('0x11c2')]['errors'][_0x564b6d('0x577')])for(var _0x560c7e=0x0;_0x560c7e<_0x5edf07['data'][_0x564b6d('0x1a69')][_0x564b6d('0x577')];_0x560c7e+=0x1){_0x19bd18[_0x564b6d('0x2092')]({'title':_0x5edf07['data'][_0x564b6d('0x1a69')][_0x560c7e][_0x564b6d('0x7fa')],'msg':_0x5edf07[_0x564b6d('0x11c2')][_0x564b6d('0x1a69')][_0x560c7e][_0x564b6d('0x1224')]});}else _0x19bd18[_0x564b6d('0x2092')]({'title':_0x5edf07['status']?_0x564b6d('0x22d')+_0x5edf07['status']+_0x564b6d('0xa99')+_0x5edf07['statusText']:_0x564b6d('0x18d3'),'msg':_0x5edf07['data']?JSON['stringify'](_0x5edf07['data'][_0x564b6d('0x1224')]):_0x5edf07[_0x564b6d('0x174f')]()});});}function _0x261463(_0x4d5ca0){var _0x4636e7=_0x40b7e6;if(_0x4d5ca0)return _0x4d5ca0[_0x2b84ac['tab'][_0x4636e7('0x27b5')]===_0x4636e7('0x1f65')?_0x4636e7('0x15f9'):_0x86640f()[_0x4636e7('0x1b7e')](_0x2b84ac[_0x4636e7('0x12e1')][_0x4636e7('0x27b5')])+'AccountId']=_0x2b84ac['interaction'][_0x2b84ac[_0x4636e7('0x12e1')][_0x4636e7('0x27b5')]===_0x4636e7('0x1f65')?'ChatWebsiteId':_0x86640f()[_0x4636e7('0x1b7e')](_0x2b84ac[_0x4636e7('0x12e1')][_0x4636e7('0x27b5')])+'AccountId'],_0x4d5ca0[_0x86640f()[_0x4636e7('0x1b7e')](_0x2b84ac[_0x4636e7('0x12e1')][_0x4636e7('0x27b5')])+_0x4636e7('0x1114')]=_0x2b84ac['interaction']['id'],_0x4d5ca0['UserId']=_0x2b84ac[_0x4636e7('0x1775')]['id'],_0x4d5ca0[_0x4636e7('0x2596')]=_0x2b84ac[_0x4636e7('0x1d23')]['ContactId'],_0x4d5ca0['direction']=_0x4636e7('0x5d5'),_0x4d5ca0[_0x4636e7('0x1d1b')]=Boolean(_0x2b84ac[_0x4636e7('0x12e1')]['spy']||_0x4d5ca0['secret']),_0x2ad6f0[_0x2b84ac[_0x4636e7('0x12e1')][_0x4636e7('0x27b5')]+_0x4636e7('0x1ee8')][_0x4636e7('0x186f')](_0x4d5ca0)['$promise'][_0x4636e7('0x21ad')](function(_0x557f67){var _0x103ba1=_0x4636e7;if(_0x557f67&&_0x557f67['id']){if(!_0x86640f()[_0x103ba1('0x23aa')](_0x4d5ca0[_0x103ba1('0x2487')])){var _0x97b939=[];for(var _0x406fa8=0x0;_0x406fa8<_0x4d5ca0[_0x103ba1('0x2487')][_0x103ba1('0x577')];_0x406fa8++){var _0x3dfb10=_0x4d5ca0['attachments'][_0x406fa8];_0x3dfb10[_0x103ba1('0x3fa')]?_0x97b939[_0x103ba1('0x206c')](_0x2ad6f0[_0x103ba1('0x8f0')][_0x103ba1('0x1af0')]({'id':_0x3dfb10['id']},{'name':_0x3dfb10[_0x103ba1('0x19fe')],'basename':_0x3dfb10['basename'],'type':_0x3dfb10[_0x103ba1('0x7fa')],'MailMessageId':_0x557f67['id']})[_0x103ba1('0x1376')]):_0x97b939[_0x103ba1('0x206c')](_0x2ad6f0[_0x103ba1('0x8f0')][_0x103ba1('0x5ef')]({'id':_0x3dfb10['id']},{'MailMessageId':_0x557f67['id']})['$promise']);}return _0x3a4cd6['all'](_0x97b939);}}})['catch'](function(_0x2caa3f){var _0x449338=_0x4636e7;_0x19bd18['error']({'title':_0x2caa3f['status']?'API:'+_0x2caa3f['status']+'\x20-\x20'+_0x2caa3f['statusText']:_0x449338('0x1faa'),'msg':_0x2caa3f['data']?JSON[_0x449338('0x25e')](_0x2caa3f[_0x449338('0x11c2')]):_0x2caa3f[_0x449338('0x174f')]()});})[_0x4636e7('0x13e')](function(){var _0xaf75c0=_0x4636e7;_0x2b84ac['tab'][_0xaf75c0('0x27b5')]==='mail'&&(_0x4d5ca0[_0xaf75c0('0x1fde')]&&(_0x83704a[_0xaf75c0('0xf08')](_0x2b84ac[_0xaf75c0('0x1d23')]['id']),_0x2b84ac[_0xaf75c0('0x939')]=null)),_0x2b84ac[_0xaf75c0('0x12e1')][_0xaf75c0('0x20c2')]='',_0x481dad();});}function _0x43808c(_0x4eb202){var _0x2ab403=_0x40b7e6;_0x2b84ac['tab'][_0x2ab403('0x27b5')]&&_0x2b84ac['interaction']&&_0x2b84ac[_0x2ab403('0x1d23')]['id']&&_0x2ad6f0[_0x2b84ac[_0x2ab403('0x12e1')][_0x2ab403('0x27b5')]+_0x2ab403('0xec3')][_0x2ab403('0x5ef')]({'id':_0x2b84ac[_0x2ab403('0x1d23')]['id'],'substatus':_0x4eb202})[_0x2ab403('0x1376')][_0x2ab403('0x1c1d')](function(_0x4baee9){console['error'](_0x4baee9);});}function _0x184fb8(){var _0x1c36f9=_0x40b7e6;if(_0x2b84ac[_0x1c36f9('0x12e1')][_0x1c36f9('0x27b5')]&&_0x2b84ac[_0x1c36f9('0x1d23')]&&_0x2b84ac['interaction']['id']){if(_0x2b84ac['acceptedMessages'][_0x1c36f9('0x577')])for(var _0x3d5f5e=0x0;_0x3d5f5e<_0x2b84ac['acceptedMessages'][_0x1c36f9('0x577')];_0x3d5f5e+=0x1){_0x2ad6f0[_0x2b84ac['tab'][_0x1c36f9('0x27b5')]+_0x1c36f9('0x1ee8')][_0x1c36f9('0x5ef')]({'id':_0x2b84ac[_0x1c36f9('0x2329')][_0x3d5f5e],'read':![],'UserId':null});}else for(var _0xa6efb8=0x0;_0xa6efb8<_0x2b84ac[_0x1c36f9('0xd36')][_0x1c36f9('0x1b33')][_0x1c36f9('0x577')];_0xa6efb8+=0x1){if(_0x2b84ac[_0x1c36f9('0xd36')]['rows'][_0xa6efb8][_0x1c36f9('0xfab')]==='in'){_0x2b84ac['messages'][_0x1c36f9('0x1b33')][_0xa6efb8][_0x1c36f9('0x1dc6')]===_0x2b84ac[_0x1c36f9('0x1775')]['id']?_0x2ad6f0[_0x2b84ac['tab'][_0x1c36f9('0x27b5')]+_0x1c36f9('0x1ee8')][_0x1c36f9('0x5ef')]({'id':_0x2b84ac[_0x1c36f9('0xd36')]['rows'][_0xa6efb8]['id'],'read':![],'UserId':null}):_0x19bd18[_0x1c36f9('0x2092')]({'title':_0x1c36f9('0x1c3'),'msg':_0x1c36f9('0x21c8')});break;}}}_0x2b84ac[_0x1c36f9('0x12e1')]['saved']=!![],_0x54c09c[_0x1c36f9('0x223d')][_0x1c36f9('0x223d')][_0x1c36f9('0x223d')]['vm'][_0x1c36f9('0x39d')](_0x2b84ac['tab']);}function _0x4b763d(_0x279a55){var _0x47acc0=_0x40b7e6;if(_0x279a55&&_0x2b84ac[_0x47acc0('0x1d23')]['id']!==_0x279a55['id'])return;_0x279a55[_0x47acc0('0x14ba')]&&(_0x2b84ac[_0x47acc0('0x12e1')][_0x47acc0('0x15b4')]=!![]),_0x86640f()[_0x47acc0('0xd0e')](_0x2b84ac[_0x47acc0('0x1d23')],_0x279a55);}function _0xafe43(_0x2e4f80){var _0x2928fe=_0x40b7e6;if(_0x2e4f80&&_0x2b84ac['interaction']['id']!=_0x2e4f80[_0x86640f()[_0x2928fe('0x1b7e')](_0x2b84ac[_0x2928fe('0x12e1')][_0x2928fe('0x27b5')])+_0x2928fe('0x1114')])return;var _0x5d8788=![];_0x2b84ac[_0x2928fe('0xd36')]?_0x5d8788=_0x86640f()[_0x2928fe('0x1d2e')](_0x2b84ac[_0x2928fe('0xd36')][_0x2928fe('0x1b33')],{'id':_0x2e4f80['id']}):_0x2b84ac[_0x2928fe('0xd36')]={'rows':[],'count':0x0},_0x5d8788?_0x86640f()[_0x2928fe('0xd0e')](_0x5d8788,_0x2e4f80):(_0x2b84ac['tab'][_0x2928fe('0x27b5')]===_0x2928fe('0x1c8b')?_0x2b84ac['messages'][_0x2928fe('0x1b33')][_0x2928fe('0xd0c')](_0x2e4f80):_0x2b84ac[_0x2928fe('0xd36')][_0x2928fe('0x1b33')]['push'](_0x2e4f80),_0x481dad());}function _0x4f5ea2(_0x522208){var _0x1fe09a=_0x40b7e6;switch(_0x522208){case'chat':return _0x1fe09a('0x244f');case _0x1fe09a('0x1c8b'):return _0x1fe09a('0xc39');case _0x1fe09a('0x3d0'):return'icon-message-text';case _0x1fe09a('0x1ad4'):return'icon-whatsapp';case _0x1fe09a('0xac9'):return _0x1fe09a('0x1eb');case _0x1fe09a('0x93f'):return _0x1fe09a('0xb78');default:return _0x1fe09a('0x244f');}}function _0x255552(_0x46a731){var _0x47a5a1=_0x40b7e6;switch(_0x46a731){case _0x47a5a1('0x1f65'):return _0x47a5a1('0x11aa');case'mail':return _0x47a5a1('0x1d66');case _0x47a5a1('0x3d0'):return _0x47a5a1('0x272d');case'openchannel':return _0x47a5a1('0xaa0');case'fax':return _0x47a5a1('0x14b7');case _0x47a5a1('0x1ad4'):return _0x47a5a1('0x529');default:return _0x47a5a1('0xfb1');}}function _0x12c26f(_0x74d32e){var _0x2ca274=_0x40b7e6,_0x4545cc='';if(_0x74d32e[_0x2ca274('0x1de9')])_0x4545cc=_0x2ca274('0x93f');else{if(_0x74d32e[_0x2ca274('0xc92')])_0x4545cc=_0x2ca274('0xac9');else{if(_0x74d32e[_0x2ca274('0x822')])_0x4545cc='sms';else{if(_0x74d32e[_0x2ca274('0x2127')])_0x4545cc=_0x2ca274('0x1ad4');else{if(_0x74d32e[_0x2ca274('0x723')])_0x4545cc=_0x2ca274('0x1c8b');else{if(_0x74d32e[_0x2ca274('0x15f9')])_0x4545cc='chat';else _0x74d32e[_0x2ca274('0x31a')]&&(_0x4545cc=_0x2ca274('0x8ed'));}}}}}return _0x255552(_0x4545cc);}function _0x3160f3(_0x228978){var _0x189fbb=_0x40b7e6;if(_0x228978['secret']&&_0x2b84ac[_0x189fbb('0x1775')]['id']!=_0x228978[_0x189fbb('0x1dc6')])return'in';switch(_0x2b84ac[_0x189fbb('0x21e')]['messagesAlignment']){case _0x189fbb('0x1194'):if(_0x228978[_0x189fbb('0xfab')]=='in')return _0x228978[_0x189fbb('0xfab')];return _0x189fbb('0x1a7c');case _0x189fbb('0x2575'):if(_0x228978[_0x189fbb('0xfab')]=='in')return _0x189fbb('0x204b');return _0x228978[_0x189fbb('0xfab')];default:return _0x228978['direction'];}}function _0x4f8eee(){var _0x550be9=_0x40b7e6;_0x2b84ac[_0x550be9('0xf5b')]=!_0x2b84ac[_0x550be9('0xf5b')];}function _0xc37395(_0x208843){var _0x1eceb2=_0x40b7e6;return _0x2ad6f0[_0x1eceb2('0x8f0')]['get']({'MailMessageId':_0x208843['id']})[_0x1eceb2('0x1376')][_0x1eceb2('0x21ad')](function(_0x4d2d08){var _0x567c04=_0x1eceb2;_0x4d2d08&&_0x4d2d08[_0x567c04('0x1b33')]&&(_0x208843[_0x567c04('0x2487')]=_0x4d2d08[_0x567c04('0x1b33')]);})[_0x1eceb2('0x1c1d')](function(_0x42d7ee){var _0x25f4d1=_0x1eceb2;_0x19bd18['error']({'title':_0x42d7ee[_0x25f4d1('0x209')]?_0x25f4d1('0x22d')+_0x42d7ee['status']+_0x25f4d1('0xa99')+_0x42d7ee[_0x25f4d1('0x1808')]:_0x25f4d1('0x9a3'),'msg':_0x42d7ee['data']?JSON[_0x25f4d1('0x25e')](_0x42d7ee[_0x25f4d1('0x11c2')]):_0x42d7ee['toString']()});});}function _0x139096(_0x394e8d){var _0x165935=_0x40b7e6;return _0x2ad6f0[_0x165935('0x8f0')][_0x165935('0xb0')]({'id':_0x394e8d['id']})[_0x165935('0x1376')][_0x165935('0x21ad')](function(_0x1f7bee){var _0x32e479=_0x165935;if(_0x1f7bee){var _0x38234b=new Blob([_0x1f7bee[_0x32e479('0x3da')]],{'type':_0x1f7bee['type']}),_0x19f8d4=document[_0x32e479('0x162e')]('a'),_0xa6320b=window[_0x32e479('0x2028')]['createObjectURL'](_0x38234b);_0x19f8d4[_0x32e479('0x69e')]=_0xa6320b,_0x19f8d4[_0x32e479('0x14a5')]=_0x32e479('0x733'),_0x19f8d4['download']=_0x394e8d[_0x32e479('0x19fe')],document[_0x32e479('0x2452')][_0x32e479('0x14d0')](_0x19f8d4),_0x19f8d4[_0x32e479('0x997')](),setTimeout(function(){var _0x235bd1=_0x32e479;document[_0x235bd1('0x2452')]['removeChild'](_0x19f8d4),window[_0x235bd1('0x2028')][_0x235bd1('0x2343')](_0xa6320b);},0x64);}})[_0x165935('0x1c1d')](function(_0x1a7316){var _0xaf541a=_0x165935;_0x19bd18[_0xaf541a('0x2092')]({'title':_0x1a7316[_0xaf541a('0x209')]?_0xaf541a('0x22d')+_0x1a7316['status']+_0xaf541a('0xa99')+_0x1a7316[_0xaf541a('0x1808')]:_0xaf541a('0x9a3'),'msg':_0x1a7316['data']?JSON[_0xaf541a('0x25e')](_0x1a7316[_0xaf541a('0x11c2')]):_0x1a7316[_0xaf541a('0x174f')]()});});}function _0x2cbd54(){var _0x2809fb=_0x40b7e6;if(!_0x2b84ac[_0x2809fb('0x12e1')]['spy']&&!_0x2b84ac[_0x2809fb('0x1d23')][_0x2809fb('0x14ba')])for(var _0x171138=0x0;_0x171138<_0x2b84ac[_0x2809fb('0xd36')][_0x2809fb('0x1b33')][_0x2809fb('0x577')];_0x171138+=0x1){_0x2b84ac['messages'][_0x2809fb('0x1b33')][_0x171138]['direction']==='in'&&!_0x2b84ac[_0x2809fb('0xd36')][_0x2809fb('0x1b33')][_0x171138][_0x2809fb('0x14ee')]&&(_0x2ad6f0[_0x2b84ac[_0x2809fb('0x12e1')][_0x2809fb('0x27b5')]+_0x2809fb('0x1ee8')][_0x2809fb('0x134f')]({'id':_0x2b84ac[_0x2809fb('0xd36')][_0x2809fb('0x1b33')][_0x171138]['id'],'UserId':_0x2b84ac[_0x2809fb('0x1775')]['id']}),_0x2b84ac['acceptedMessages'][_0x2809fb('0x206c')](_0x2b84ac[_0x2809fb('0xd36')][_0x2809fb('0x1b33')][_0x171138]['id']));}}function _0x4e085d(_0x435587){var _0x5598bf=_0x40b7e6;if(!_0x435587[_0x5598bf('0x22c8')])return'('+_0x48fcfc[_0x5598bf('0x183e')](_0x5598bf('0x1d56'))+')';var _0x19d6d4=_0x86640f()[_0x5598bf('0x596')]([_0x435587['disposition'],_0x435587[_0x5598bf('0x2764')],_0x435587[_0x5598bf('0x125')]]);return'('+_0x19d6d4['join'](_0x5598bf('0xa99'))+')';}function _0x5ababa(_0xe8fdc1){var _0x5289ac=_0x40b7e6;_0xe8fdc1&&_0xe8fdc1[_0x5289ac('0x205f')]&&_0xe8fdc1[_0x5289ac('0x1b33')][_0x5289ac('0x577')]&&(_0x2b84ac[_0x5289ac('0xd1b')]=_0x86640f()[_0x5289ac('0x1877')](_0x2b84ac[_0x5289ac('0xd1b')],_0xe8fdc1[_0x5289ac('0x1b33')]),_0x2b84ac[_0x5289ac('0xd1b')][_0x5289ac('0x1a52')](function(_0x5cfe97){var _0x412832=_0x5289ac;_0x5cfe97[_0x412832('0x2413')]=_0x4e085d(_0x5cfe97);}));}function _0x1b0697(_0x5d5b79){var _0x46bdba=_0x40b7e6;if(_0x5d5b79&&_0x5d5b79['id']){for(var _0x1229ee=0x0;_0x1229ee<_0x2b84ac[_0x46bdba('0x26f4')][_0x46bdba('0x577')];_0x1229ee++){_0x2ad6f0[_0x2b84ac[_0x46bdba('0x26f4')][_0x1229ee]+'Interaction'][_0x46bdba('0x595')]({'ContactId':_0x5d5b79['id'],'journey':!![],'includeAll':!![]})[_0x46bdba('0x1376')]['then'](_0x5ababa);}_0x2ad6f0[_0x46bdba('0x10ab')][_0x46bdba('0x595')]({'ContactId':_0x5d5b79['id'],'includeAll':!![]})[_0x46bdba('0x1376')][_0x46bdba('0x21ad')](_0x5ababa);}}function _0x3c05e6(_0x541e3d){var _0x287763=_0x40b7e6;return _0x541e3d?String(_0x541e3d)[_0x287763('0x16e4')](/<[^>]+>/gm,''):'';}function _0x575f76(_0x18a6b8){var _0x266d40=_0x40b7e6;switch(_0x2b84ac['tab'][_0x266d40('0x27b5')]){case'mail':_0x2b84ac['draft']['content'][_0x266d40('0xd0b')]=_0x18a6b8?_0x86640f()['find'](_0x2b84ac[_0x266d40('0x1d23')][_0x266d40('0x5d')],['id',_0x18a6b8]):_0x2b84ac[_0x266d40('0x1d23')]['Messages'][_0x2b84ac[_0x266d40('0x1d23')][_0x266d40('0x5d')][_0x266d40('0x577')]-0x1],_0xee86b6(_0x2b84ac[_0x266d40('0x939')]['type'],_0x2b84ac[_0x266d40('0x939')][_0x266d40('0x13fb')]);break;case _0x266d40('0x93f'):break;case _0x266d40('0xac9'):break;case _0x266d40('0x3d0'):break;case'whatsapp':break;}}_0x54c09c[_0x40b7e6('0x1723')](_0x40b7e6('0x1210'),function(){var _0x3239d0=_0x40b7e6;_0x370dc4['removeAllListeners'](_0x2b84ac['tab'][_0x3239d0('0x27b5')]+_0x3239d0('0x2205')),_0x370dc4[_0x3239d0('0x16cc')](_0x2b84ac['tab'][_0x3239d0('0x27b5')]+_0x3239d0('0x1a7a')),_0x370dc4[_0x3239d0('0x16cc')](_0x2b84ac[_0x3239d0('0x12e1')]['channel']+_0x3239d0('0x102d')),_0x370dc4[_0x3239d0('0x16cc')](_0x2b84ac[_0x3239d0('0x12e1')][_0x3239d0('0x27b5')]+_0x3239d0('0x2613')),_0x370dc4[_0x3239d0('0x16cc')](_0x3239d0('0x167e')+_0x2b84ac[_0x3239d0('0x12e1')][_0x3239d0('0x27b5')]+_0x3239d0('0xa2e')),_0x370dc4[_0x3239d0('0x16cc')](_0x3239d0('0x167e')+_0x2b84ac[_0x3239d0('0x12e1')]['channel']+'_interactions:remove');});function _0x2031c5(_0xe4dfe1){var _0x1e3b0c=_0x40b7e6,_0x4de6cd={'id':_0xe4dfe1['id']};return _0x2ad6f0[_0x1e3b0c('0xc06')][_0x1e3b0c('0x17dc')](_0x4de6cd)[_0x1e3b0c('0x1376')][_0x1e3b0c('0x21ad')](function(){var _0x324f19=_0x1e3b0c;_0x19bd18['success']({'title':_0x324f19('0xa3f'),'msg':'Session\x20properly\x20created.'});})[_0x1e3b0c('0x1c1d')](function(){var _0x2434f8=_0x1e3b0c;_0x19bd18[_0x2434f8('0x2092')]({'title':_0x2434f8('0xa3f'),'msg':_0x2434f8('0x1cbf')});});}}function _0x8befa5(_0x3ce737){var _0x40ea65=_0x3877e3;return{'scope':{'ngBindHtmlUnsafe':'='},'template':_0x40ea65('0x350'),'link':function _0x5aa674(_0xa05d4a){var _0x5c47f8=_0x40ea65;function _0x19a839(){var _0x377c77=a0_0x2e7f,_0x2ca51c=_0x377c77('0x24f9')+Math['floor'](Math[_0x377c77('0x271f')]()*0x270f+0x1);return _0x377c77('0x1289')+_0x2ca51c+_0x377c77('0x269d')+_0x2ca51c+_0x377c77('0x902');}_0xa05d4a[_0x5c47f8('0xab1')]=function(){var _0xce1791=_0x5c47f8,_0x24e0d2=_0x86640f()[_0xce1791('0x16e4')](_0xa05d4a['ngBindHtmlUnsafe'],'_0x131a52)return _0x4e0f52[_0x384bea('0x2092')]({'title':'File\x20too\x20big','msg':_0x384bea('0xc3a')+_0x35133c+'MB'}),![];return!![];}function _0x257aad(_0xbacfc1,_0x11e3bb){var _0x2ed2f3=_0x3706be;try{_0x11e3bb=JSON[_0x2ed2f3('0x399')](_0x11e3bb),_0x11e3bb[_0x2ed2f3('0x337')]=_0xbacfc1['size'],_0x26381f[_0x2ed2f3('0x1224')][_0x2ed2f3('0x2487')]['push'](_0x11e3bb);}catch(_0x1dca55){console[_0x2ed2f3('0x2092')](_0x1dca55);}}function _0x26559e(_0x5e0799){var _0x2ecd9c=_0x3706be,_0x58a20e='';return _0x5e0799[_0x2ecd9c('0x992')]&&_0x5e0799[_0x2ecd9c('0x992')]!==_0x5e0799[_0x2ecd9c('0x93f')]&&(_0x58a20e+=_0x5e0799[_0x2ecd9c('0x992')]+'\x20'),_0x5e0799[_0x2ecd9c('0x6d')]&&_0x5e0799[_0x2ecd9c('0x6d')]!==_0x5e0799[_0x2ecd9c('0x93f')]&&(_0x58a20e+=_0x5e0799[_0x2ecd9c('0x6d')]+'\x20'),_0x58a20e+='<'+_0x5e0799['fax']+'>';}function _0x13ab20(_0x30fb4f){var _0xde0b30=_0x3706be,_0x41aa16=_0x30fb4f;if(_0x86640f()[_0xde0b30('0x267d')](_0x30fb4f))return _0x30fb4f[_0xde0b30('0x93f')];if(_0x61f911(_0x41aa16))return _0x41aa16;return _0x4e0f52[_0xde0b30('0x2092')](_0xde0b30('0x1bdc')+_0x41aa16+'\x20is\x20not\x20valid'),null;}function _0x61f911(_0x92f36c){var _0x31d860=_0x3706be,_0x2d0f7d=/[&/\\#,()$~%.'":;*?<>{}\s\\|a-zA-Z\pS!òàùè…_§°çéì-]/;return!_0x2d0f7d[_0x31d860('0x1dc7')](_0x92f36c);}function _0x29ddac(_0x46f32f){var _0x5025a5=_0x3706be;return _0x51ccbb&&_0x51ccbb[_0x5025a5('0x815')]?_0x385090[_0x5025a5('0x25dc')][_0x5025a5('0x595')]({'ListId':_0x51ccbb[_0x5025a5('0x815')],'nolimit':!![],'filter':_0x46f32f,'fields':_0x5025a5('0x18b1')})['$promise'][_0x5025a5('0x21ad')](function(_0x4b4131){var _0x2dbb57=_0x5025a5;return _0x4b4131[_0x2dbb57('0x1b33')];}):[];}function _0x1a5b64(){var _0x1544d1=_0x3706be;_0x35d684['draft']=_0x26381f[_0x1544d1('0x1224')],_0x117125[_0x1544d1('0x3b5')]();}}const _0x1bfe95=_0x9ac240;_0x2b1d2a[_0x3877e3('0x1a81')]=[_0x3877e3('0x26'),_0x3877e3('0x24e1'),_0x3877e3('0x1850'),_0x3877e3('0xa7'),'$translate','account',_0x3877e3('0x1224'),_0x3877e3('0x7fa'),'api',_0x3877e3('0x1908'),'$q',_0x3877e3('0x15bc'),_0x3877e3('0x1d23'),'draftManager'];function _0x2b1d2a(_0x55edc4,_0x3e4b81,_0xe4a2ea,_0x244604,_0x169de1,_0x3722d4,_0x346fe0,_0x483a7c,_0xe48ead,_0x3356ff,_0x48fb18,_0x166486,_0x58b727,_0x4b5fa2){var _0xf635eb=_0x3877e3,_0x4982fd=this,_0x310f9b=0x19,_0x4066a9=_0x310f9b*0x400*0x400;_0x4982fd[_0xf635eb('0x123f')]=_0x166486[_0xf635eb('0x15ed')](),_0x4982fd['secret']=_0x483a7c===_0xf635eb('0x322')?!![]:![],_0x4982fd['hiddenCC']=!![],_0x4982fd['hiddenBCC']=!![],_0x4982fd[_0xf635eb('0xf7a')]=!![],_0x4982fd['errors']=[],_0x4982fd[_0xf635eb('0x26b5')]=[_0x244604[_0xf635eb('0x21a6')]['ENTER'],_0x244604[_0xf635eb('0x21a6')][_0xf635eb('0x1c2')],_0x244604[_0xf635eb('0x21a6')]['TAB']],_0x4982fd[_0xf635eb('0xb42')]=_0x440842,_0x4982fd[_0xf635eb('0x258d')]=_0x5e4609,_0x4982fd[_0xf635eb('0x2233')]=_0x13ae8d,_0x86640f()[_0xf635eb('0x53e')][_0xf635eb('0x2493')]=/{{([\s\S]+?)}}/g,_0x4982fd[_0xf635eb('0x12bb')]=_0x86640f()[_0xf635eb('0x1a51')](_0xf635eb('0x23c0')),_0x4982fd[_0xf635eb('0x1672')]=_0x86640f()[_0xf635eb('0x1a51')](_0xf635eb('0x2d6')),_0x4982fd[_0xf635eb('0x26be')]=_0x86640f()[_0xf635eb('0x1a51')](_0xf635eb('0x19ef')),_0x4982fd[_0xf635eb('0x1224')]={'from':_0x4982fd[_0xf635eb('0x12bb')]({'name':_0x3722d4[_0xf635eb('0x19fe')],'email':_0x3722d4[_0xf635eb('0x2822')]||_0x3722d4[_0xf635eb('0x14a0')][_0xf635eb('0x1775')]}),'to':[],'cc':[],'bcc':[],'body':_0x3f68ae(),'type':_0x483a7c,'attachments':[],'showLastMessage':!![]},_0x4982fd[_0xf635eb('0x939')]=null,_0x4982fd[_0xf635eb('0x25c7')]={'skin':_0xf635eb('0x1440'),'startupFocus':!![],'language':'en','allowedContent':!![],'extraPlugins':_0xf635eb('0xab8'),'toolbarGroups':[{'name':_0xf635eb('0x7ed'),'groups':[_0xf635eb('0x7ed')]},{'name':_0xf635eb('0x43d'),'groups':[_0xf635eb('0x281d')]},{'name':_0xf635eb('0x1f03'),'groups':[_0xf635eb('0x1f03')]},{'name':_0xf635eb('0x13b'),'groups':['basicstyles']},{'name':_0xf635eb('0xf30'),'groups':[_0xf635eb('0x17fe'),_0xf635eb('0x197'),'align']}],'autoGrow_onStartup':!![],'autoGrow_minHeight':_0x4982fd[_0xf635eb('0x1d1b')]?0xa0:0x12c,'autoGrow_maxHeight':_0x3e4b81[_0xf635eb('0x10a4')]-0x190,'autocorrect_enabled':!![],'disableNativeSpellChecker':![],'enterMode':window[_0xf635eb('0x1058')]['ENTER_BR'],'font_defaultLabel':_0x3722d4[_0xf635eb('0x801')]?_0x3722d4[_0xf635eb('0x801')][_0xf635eb('0x1af5')](',')[0x0]:_0xf635eb('0xcce'),'fontSize_defaultLabel':_0x3722d4[_0xf635eb('0x265')]||'12','removePlugins':_0xf635eb('0x570')};var _0x467f47=[];for(var _0x1ce29d=0x8;_0x1ce29d<=0x48;_0x1ce29d++){_0x467f47[_0xf635eb('0x206c')](_0x1ce29d+'/'+_0x1ce29d+'pt');}_0x4982fd[_0xf635eb('0x25c7')][_0xf635eb('0x14f0')]=_0x467f47[_0xf635eb('0x136')](';'),_0x4982fd[_0xf635eb('0x467')]={'target':'api/attachments','singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x4066a9,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x4982fd[_0xf635eb('0x1413')]={'flow':{}},_0x4982fd['reply']=_0x5b16c3,_0x4982fd[_0xf635eb('0x2287')]=_0x2fb2c5,_0x4982fd[_0xf635eb('0x1ba0')]=_0x26d989,_0x4982fd[_0xf635eb('0x108a')]=_0x13f721,_0x4982fd[_0xf635eb('0x2471')]=_0x120fec,_0x4982fd['note']=_0x30130a,_0x4982fd[_0xf635eb('0x8f2')]=_0x2ce5b6,_0x4982fd[_0xf635eb('0x12d0')]=_0x14f2d4,_0x4982fd[_0xf635eb('0x27eb')]=_0x36d18d,_0x4982fd[_0xf635eb('0x21fa')]=_0x1c18c1,_0x4982fd[_0xf635eb('0x20d9')]=_0x41baea,_0x4982fd[_0xf635eb('0x18ca')]=_0x671c1f,_0x4982fd['contactSearch']=_0x4f9cb9,_0x4982fd[_0xf635eb('0x27f5')]=_0x5ad455,_0x4982fd['saveDraft']=_0x2ae5c4,_0x4982fd[_0xf635eb('0x167')]=_0x2c4351,_0x4982fd[_0xf635eb('0xe57')]=_0x563ce7;switch(_0x483a7c){case _0xf635eb('0x820'):_0x4982fd[_0xf635eb('0x820')](![]);break;case _0xf635eb('0x108c'):_0x4982fd[_0xf635eb('0x820')](!![]);break;case _0xf635eb('0x1ba0'):_0x4982fd['forward']();break;case _0xf635eb('0x939'):_0x4982fd[_0xf635eb('0x108a')]();break;case'new':_0x4982fd[_0xf635eb('0x2287')]();break;case _0xf635eb('0x322'):_0x4982fd[_0xf635eb('0x322')]();break;}_0xe48ead[_0xf635eb('0xa94')]['get']({'nolimit':!![]})[_0xf635eb('0x1376')][_0xf635eb('0x21ad')](function(_0x49f904){var _0x2fadb6=_0xf635eb;_0x4982fd[_0x2fadb6('0xd90')]=_0x49f904||{'count':0x0,'rows':[]};})['catch'](function(_0x246d21){var _0x491117=_0xf635eb;console[_0x491117('0x2092')](_0x246d21);});!_0x4982fd['secret']&&_0x45ba6d();function _0x5b16c3(_0x24229c){var _0x424623=_0xf635eb;angular[_0x424623('0x1465')](_0x346fe0)&&(_0x4982fd[_0x424623('0x1224')][_0x424623('0x7fa')]='reply',_0x4982fd[_0x424623('0x1224')]['to']=_0x346fe0[_0x424623('0xfab')]==='in'?_0x346fe0['from'][_0x424623('0x1af5')](','):_0x346fe0['to']['split'](','),_0x4982fd[_0x424623('0x1224')][_0x424623('0x32a')]=_0x86640f()[_0x424623('0x2837')](_0x346fe0[_0x424623('0x32a')],_0x424623('0xd05'))?_0x346fe0[_0x424623('0x32a')]:_0x424623('0x2217')+_0x346fe0[_0x424623('0x32a')],_0x4982fd[_0x424623('0x1224')]['inReplyTo']=_0x346fe0[_0x424623('0x232d')],_0x4982fd['message']['body']=_0x3f68ae(),_0x4982fd[_0x424623('0x1224')][_0x424623('0x2487')]=[],_0x24229c&&_0x346fe0['cc']&&(_0x4982fd['hiddenCC']=![],_0x4982fd['message']['cc']=_0x346fe0['cc'][_0x424623('0x1af5')](',')),_0x4982fd['message']['showLastMessage']=![]);}function _0x2fb2c5(){var _0x114529=_0xf635eb;angular['isDefined'](_0x346fe0)&&(_0x4982fd['message'][_0x114529('0x7fa')]=_0x114529('0xb82'),_0x4982fd[_0x114529('0x1224')]['to']=_0x346fe0['to']?_0x346fe0['to']['split'](','):[]);}function _0x13f721(){var _0x297f9a=_0xf635eb;_0x4982fd['isDraft']=!![],angular[_0x297f9a('0x1465')](_0x346fe0)&&(_0x346fe0['savedAsDraft']=![],_0x4982fd['message']=angular[_0x297f9a('0xd75')](_0x346fe0),!_0x86640f()[_0x297f9a('0x23aa')](_0x4982fd[_0x297f9a('0x1224')]['cc'])&&(_0x4982fd[_0x297f9a('0x1812')]=![]),!_0x86640f()[_0x297f9a('0x23aa')](_0x4982fd['message'][_0x297f9a('0x1980')])&&(_0x4982fd[_0x297f9a('0x2366')]=![]));}function _0x26d989(){var _0x2726f2=_0xf635eb;if(angular[_0x2726f2('0x1465')](_0x346fe0)){_0x4982fd['message'][_0x2726f2('0x7fa')]=_0x2726f2('0x1ba0'),_0x4982fd[_0x2726f2('0x1224')][_0x2726f2('0x32a')]=_0x86640f()['startsWith'](_0x346fe0[_0x2726f2('0x32a')],_0x2726f2('0x1be5'))?_0x346fe0[_0x2726f2('0x32a')]:_0x2726f2('0x2365')+_0x346fe0['subject'],_0x4982fd[_0x2726f2('0x1224')][_0x2726f2('0x2452')]=_0x3f68ae();if(_0x346fe0[_0x2726f2('0x56b')]&&_0x346fe0['Attachments']['length'])for(var _0xe3d979=0x0;_0xe3d979<_0x346fe0[_0x2726f2('0x56b')][_0x2726f2('0x577')];_0xe3d979++){_0x4982fd[_0x2726f2('0x1224')]['attachments'][_0x2726f2('0x206c')](_0x346fe0['Attachments'][_0xe3d979]);}_0x4982fd['message'][_0x2726f2('0x22e5')]=![];}}function _0x30130a(){var _0x54577d=_0xf635eb;_0x4982fd[_0x54577d('0x7fa')]=_0x54577d('0x322'),_0x4982fd[_0x54577d('0x1d1b')]=!![],_0x4982fd['message']['body']=_0x54577d('0x2358')+_0x3722d4['fontFamily']+';font-size:'+_0x3722d4[_0x54577d('0x265')]+_0x54577d('0x1924');}function _0x24a856(_0x46bab4,_0x3ff284){var _0x3618de=_0xf635eb,_0x569164={'from':_0x4982fd[_0x3618de('0x1224')][_0x3618de('0x69b')],'to':_0x4982fd[_0x3618de('0x1224')]['to'][_0x3618de('0x136')](','),'cc':_0x4982fd[_0x3618de('0x1224')]['cc']['join'](','),'bcc':_0x4982fd[_0x3618de('0x1224')][_0x3618de('0x1980')][_0x3618de('0x136')](','),'subject':_0x4982fd[_0x3618de('0x1224')][_0x3618de('0x32a')],'body':_0x4982fd[_0x3618de('0x1224')][_0x3618de('0x22e5')]?_0x4982fd['message']['body']:_0x4982fd[_0x3618de('0x1224')][_0x3618de('0x2452')]+_0x1f00de(_0x4982fd[_0x3618de('0x1224')][_0x3618de('0x7fa')]),'inReplyTo':_0x4982fd[_0x3618de('0x1224')]['inReplyTo'],'attach':_0x4982fd[_0x3618de('0x1224')][_0x3618de('0x2487')][_0x3618de('0x577')],'attachments':_0x4982fd[_0x3618de('0x1224')][_0x3618de('0x2487')],'Interaction':{'lastMsgDirection':_0x3618de('0x5d5'),'lastMsgBody':_0x4982fd['message'][_0x3618de('0x2452')],'substatus':_0x3ff284},'isDraft':_0x4982fd[_0x3618de('0x1fde')]};_0x569164[_0x3618de('0x8b')]=_0x3618de('0x13d8')+_0x86640f()[_0x3618de('0x16e4')](_0x569164[_0x3618de('0x2452')],_0x3618de('0x186c'),'_0x4066a9)return _0x3356ff[_0x468761('0x2092')]({'title':_0x468761('0x8d1'),'msg':_0x468761('0xc3a')+_0x310f9b+'MB'}),![];return!![];}function _0x14f2d4(){var _0x41f6d4=_0xf635eb;_0x4982fd['ngFlow'][_0x41f6d4('0x1d76')][_0x41f6d4('0x1dd3')][_0x41f6d4('0x4d8')]={'X-Requested-With':_0x41f6d4('0x24ca'),'Authorization':'Bearer\x20'+_0x55edc4['get'](_0x41f6d4('0x863'))},_0x4982fd[_0x41f6d4('0x1413')][_0x41f6d4('0x1d76')][_0x41f6d4('0x12d0')]();}function _0x36d18d(_0x37c44a,_0x359c25){var _0x344e92=_0xf635eb;try{_0x359c25=JSON['parse'](_0x359c25),_0x359c25[_0x344e92('0x337')]=_0x37c44a['size'],_0x4982fd['message']['attachments'][_0x344e92('0x206c')](_0x359c25);}catch(_0x16d640){console[_0x344e92('0x2092')](_0x16d640);}}function _0x1c18c1(_0xb6a790){var _0x3d9276=_0xf635eb;_0x4982fd[_0x3d9276('0x1224')][_0x3d9276('0x2487')]=_0x86640f()[_0x3d9276('0x37a')](_0x4982fd[_0x3d9276('0x1224')][_0x3d9276('0x2487')],{'id':_0xb6a790['id']}),!_0xb6a790[_0x3d9276('0x3fa')]&&_0xe48ead['attachment'][_0x3d9276('0x1164')]({'id':_0xb6a790['id']})['$promise'][_0x3d9276('0x1c1d')](function(_0x47688b){var _0x1c85e4=_0x3d9276;_0x3356ff[_0x1c85e4('0x2092')]({'title':_0x47688b[_0x1c85e4('0x209')]?'API:'+_0x47688b[_0x1c85e4('0x209')]+_0x1c85e4('0xa99')+_0x47688b['statusText']:'api.attachment.delete','msg':_0x47688b[_0x1c85e4('0x11c2')]?JSON[_0x1c85e4('0x25e')](_0x47688b['data'][_0x1c85e4('0x1224')]):_0x47688b[_0x1c85e4('0x174f')]()});});}function _0x671c1f(_0x3a827e){var _0x162e85=_0xf635eb,_0x6c6011='';return _0x3a827e[_0x162e85('0x992')]&&_0x3a827e[_0x162e85('0x992')]!==_0x3a827e[_0x162e85('0x2822')]&&(_0x6c6011+=_0x3a827e['firstName']+'\x20'),_0x3a827e[_0x162e85('0x6d')]&&_0x3a827e[_0x162e85('0x6d')]!==_0x3a827e['email']&&(_0x6c6011+=_0x3a827e[_0x162e85('0x6d')]+'\x20'),_0x6c6011+='<'+_0x3a827e[_0x162e85('0x2822')]+'>';}function _0x5ad455(_0x17d833,_0x4fc0ab){var _0x45cc64=_0xf635eb;if(_0x86640f()['isObject'](_0x17d833))return _0x4982fd['contact']=_0x17d833,_0x17d833[_0x45cc64('0x2822')];if(_0x86640f()['isString'](_0x17d833)){if(_0x7446fa(_0x17d833))return _0x4982fd['contact']={'email':_0x17d833},_0x17d833;else{var _0x15ee36=_0x17d833[_0x45cc64('0x1af5')](',');for(var _0x5c7f90=0x0;_0x5c7f90<_0x15ee36[_0x45cc64('0x577')];_0x5c7f90+=0x1){_0x7446fa(_0x15ee36[_0x5c7f90])?_0x86640f()[_0x45cc64('0x9e1')](_0x4fc0ab)&&_0x86640f()[_0x45cc64('0x2004')](_0x4fc0ab,_0x15ee36[_0x5c7f90])<0x0&&_0x4fc0ab[_0x45cc64('0x206c')](_0x15ee36[_0x5c7f90]):_0x3356ff[_0x45cc64('0x2092')](_0x45cc64('0x21eb')+_0x15ee36[_0x5c7f90]+_0x45cc64('0x582'));}return _0x4982fd[_0x45cc64('0x150c')]={'email':_0x17d833[_0x45cc64('0x1af5')](',')[0x0]},null;}}return _0x3356ff[_0x45cc64('0x2092')](_0x45cc64('0x130b')),null;}function _0x4f9cb9(_0x114ca8){var _0x28941f=_0xf635eb;return _0x3722d4&&_0x3722d4[_0x28941f('0x815')]?_0xe48ead['cmContact'][_0x28941f('0x595')]({'ListId':_0x3722d4[_0x28941f('0x815')],'nolimit':!![],'filter':_0x114ca8,'fields':_0x28941f('0x1840')})[_0x28941f('0x1376')][_0x28941f('0x21ad')](function(_0x41b926){var _0x1fc0bd=_0x28941f;return _0x41b926[_0x1fc0bd('0x1b33')];}):[];}function _0x2ae5c4(){var _0x4d83c7=_0xf635eb;_0x4982fd['message'][_0x4d83c7('0x230b')]=!![],_0x4982fd[_0x4d83c7('0x939')]=_0x4b5fa2[_0x4d83c7('0x888')](_0x58b727['id']);var _0x38882d={'account':_0x3722d4,'message':_0x4982fd['message'],'contact':_0x4982fd[_0x4d83c7('0x150c')],'interaction':_0x58b727};if(_0x4982fd[_0x4d83c7('0x939')]&&!_0x4982fd[_0x4d83c7('0x1fde')]){var _0x23cf4b=_0xe4a2ea['confirm']({'skipHide':!![]})[_0x4d83c7('0x4b4')](_0x169de1[_0x4d83c7('0x183e')]('DASHBOARDS.DRAFT_SAVE_WARNING_TITLE'))[_0x4d83c7('0x13fb')](_0x169de1[_0x4d83c7('0x183e')](_0x4d83c7('0x110c')))['ariaLabel'](_0x4d83c7('0x1e1'))['ok'](_0x169de1[_0x4d83c7('0x183e')](_0x4d83c7('0x123c')))[_0x4d83c7('0x3b5')](_0x169de1[_0x4d83c7('0x183e')]('DASHBOARDS.CANCEL'));_0xe4a2ea[_0x4d83c7('0x853')](_0x23cf4b)['then'](function(){var _0x20fe01=_0x4d83c7;_0xe4a2ea[_0x20fe01('0x1c24')](_0x38882d);});}else _0xe4a2ea[_0x4d83c7('0x1c24')](_0x38882d);}function _0x2c4351(){var _0x33c3df=_0xf635eb;_0xe4a2ea[_0x33c3df('0x3b5')]();}function _0x7446fa(_0x133b64){var _0x404256=_0xf635eb,_0x327575=/^(([^<>()[\]\\.,;:\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 _0x327575[_0x404256('0x1dc7')](_0x133b64);}function _0x2f16f8(_0x207121){var _0x2248ec=_0xf635eb,_0x38b769=/]*>([^]*)<\/body/m,_0x6905a6=_0x207121[_0x2248ec('0x23e0')](_0x38b769);if(_0x6905a6)return _0x6905a6[0x1];return _0x207121;}function _0x3a2f5a(){var _0x2ba89b=_0xf635eb;if(_0x86640f()[_0x2ba89b('0x1c7')](_0x3722d4[_0x2ba89b('0x1a51')]))return'';try{var _0x1828c6=_0x86640f()[_0x2ba89b('0x1a51')](_0x3722d4['template']),_0x20d754={'user':_0x4982fd[_0x2ba89b('0x123f')],'account':_0x3722d4,'interaction':_0x58b727,'contact':_0x58b727&&_0x58b727[_0x2ba89b('0x1d10')]?_0x58b727[_0x2ba89b('0x1d10')]:{}};return _0x1828c6(_0x20d754);}catch(_0xad8bc8){return console[_0x2ba89b('0x2092')](_0xad8bc8),'';}}function _0x3f68ae(){var _0x2f8a72=_0xf635eb;return _0x2f8a72('0x2358')+_0x3722d4[_0x2f8a72('0x801')]+';font-size:'+_0x3722d4[_0x2f8a72('0x265')]+_0x2f8a72('0x1d49')+_0x3a2f5a()+_0x2f8a72('0xe87');}function _0x1f00de(_0x181605){var _0x3839c3=_0xf635eb,_0x252ff9=_0x3839c3('0x1f0b');switch(_0x181605){case _0x3839c3('0x820'):case _0x3839c3('0x108c'):_0x252ff9+=_0x4982fd[_0x3839c3('0x1672')]({'date':_0x1088bc()(_0x346fe0[_0x3839c3('0x23ae')])[_0x3839c3('0x153')](_0x3839c3('0x1d33'))||'','time':_0x1088bc()(_0x346fe0[_0x3839c3('0x23ae')])['format']('HH:mm')||'','from':_0x86640f()['escape'](_0x346fe0[_0x3839c3('0x69b')])||''});break;case _0x3839c3('0x1ba0'):_0x252ff9+=_0x4982fd[_0x3839c3('0x26be')]({'date':_0x1088bc()(_0x346fe0[_0x3839c3('0x23ae')])[_0x3839c3('0x153')](_0x3839c3('0x1d33'))||'','time':_0x1088bc()(_0x346fe0[_0x3839c3('0x23ae')])['format']('HH:mm')||'','from':_0x86640f()[_0x3839c3('0x10d5')](_0x346fe0[_0x3839c3('0x69b')])||'','to':_0x86640f()[_0x3839c3('0x10d5')](_0x346fe0['to'])||'','subject':_0x86640f()[_0x3839c3('0x10d5')](_0x346fe0[_0x3839c3('0x32a')])||''});break;}var _0x5f1511=_0x4982fd['message'][_0x3839c3('0x22e5')]&&_0x346fe0['originalMessage']?_0x346fe0[_0x3839c3('0xd0b')][_0x3839c3('0x2452')]:_0x346fe0[_0x3839c3('0x2452')];return _0x252ff9+=_0x3839c3('0xb11'),_0x252ff9+=_0x2f16f8(_0x5f1511?_0x86640f()['replace'](_0x5f1511,_0x3839c3('0x186c'),_0x3839c3('0x25f')):''),_0x252ff9+=_0x3839c3('0x1592'),_0x181605?_0x252ff9:'';}function _0x563ce7(){var _0x4b8616=_0xf635eb;_0x4982fd[_0x4b8616('0x1224')][_0x4b8616('0x2452')]+=_0x1f00de(_0x4982fd[_0x4b8616('0x1224')][_0x4b8616('0x7fa')]);}}const _0x360486=_0x2b1d2a;_0x158815[_0x3877e3('0x1a81')]=[_0x3877e3('0x26'),_0x3877e3('0x2313'),_0x3877e3('0x24e1'),'$mdDialog',_0x3877e3('0xa7'),_0x3877e3('0x1fd3'),_0x3877e3('0x1224'),_0x3877e3('0x7fa'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x15bc')];function _0x158815(_0x475010,_0x3efbb2,_0x578aa9,_0x3e0fef,_0x573ac5,_0x2ebc50,_0x224c5d,_0xc61d85,_0x2be860,_0x5af431,_0x1d78ca,_0x338067,_0x4c248e){var _0x2ca424=_0x3877e3,_0xb2eb67=this;_0xb2eb67[_0x2ca424('0x123f')]=_0x4c248e[_0x2ca424('0x15ed')](),_0xb2eb67[_0x2ca424('0x1a69')]=[],_0xb2eb67[_0x2ca424('0x26b5')]=[_0x573ac5['KEY_CODE'][_0x2ca424('0x1846')],_0x573ac5['KEY_CODE'][_0x2ca424('0x1c2')],_0x573ac5[_0x2ca424('0x21a6')]['TAB']],_0xb2eb67['searchTextChange']=_0x1827d0,_0xb2eb67[_0x2ca424('0x258d')]=_0x58d351,_0xb2eb67['note']=_0x25d4e2,_0xb2eb67[_0x2ca424('0x8f2')]=_0x1adea5,_0xb2eb67[_0x2ca424('0xa7c')]={},_0xb2eb67[_0x2ca424('0x1224')]={'from':_0x2ebc50[_0x2ca424('0x159e')],'to':_0x86640f()[_0x2ca424('0x1c7')](_0x224c5d['to'])||_0x86640f()[_0x2ca424('0x23aa')](_0x224c5d['to'])?[]:_0x224c5d['to'],'body':''},_0xb2eb67['send']=_0xfe7bf0,_0xb2eb67[_0x2ca424('0x18ca')]=_0x464ad6,_0xb2eb67[_0x2ca424('0x167')]=_0x49a34d,_0xb2eb67[_0x2ca424('0x2808')]=_0x2011a3,_0xb2eb67['transformContact']=_0x2e90c2;switch(_0xc61d85){case _0x2ca424('0x322'):_0xb2eb67[_0x2ca424('0x322')]();break;}function _0x4aee53(_0x2a09cb){var _0x323eef=_0x2ca424;_0x3e0fef['hide']({'to':_0xb2eb67[_0x323eef('0x1224')]['to'][_0x323eef('0x136')](','),'body':_0x2a09cb});}function _0xfe7bf0(){var _0x2dbac3=_0x2ca424;_0xb2eb67['message']['to']&&_0xb2eb67[_0x2dbac3('0x1224')][_0x2dbac3('0x2452')]&&(_0xb2eb67[_0x2dbac3('0x1224')]['to'][_0x2dbac3('0x577')]?_0x4aee53(_0xb2eb67['message'][_0x2dbac3('0x2452')]):_0x5af431[_0x2dbac3('0x2092')](_0x2dbac3('0x17c8')));}function _0x58d351(_0xb85415){var _0x120c1f=_0x2ca424;if(_0xb85415){try{_0x86640f()[_0x120c1f('0x53e')]['interpolate']=/{{([\s\S]+?)}}/g;var _0x246d1e=_0x86640f()[_0x120c1f('0x1a51')](_0xb85415[_0x120c1f('0x2228')]),_0x411b0a={'user':_0xb2eb67[_0x120c1f('0x123f')],'account':_0x2ebc50};_0xb2eb67[_0x120c1f('0x1224')][_0x120c1f('0x2452')]+='\x20'+_0x246d1e(_0x411b0a),_0xb2eb67['ctrlMethods'][_0x120c1f('0x23fd')](_0xb2eb67[_0x120c1f('0x1224')]['body']);}catch(_0x227c5f){_0xb2eb67['message']['body']+='\x20'+_0xb85415['value'],_0xb2eb67['ctrlMethods']['setText'](_0xb2eb67[_0x120c1f('0x1224')][_0x120c1f('0x2452')]);}_0xb2eb67['selectedItem']=null;}}function _0x1827d0(_0x53bf6c){var _0x2e3f77=_0x2ca424,_0x4d7b81=_0x1d78ca[_0x2e3f77('0xca9')](),_0x5be89d=[];return _0x2be860[_0x2e3f77('0x25e5')]['get']({'filter':_0x53bf6c,'OpenchannelAccountId':_0x2ebc50['id']})['$promise'][_0x2e3f77('0x21ad')](function(_0x491543){var _0x473c40=_0x2e3f77;return _0x5be89d=_0x86640f()['concat'](_0x5be89d,_0x491543['rows']),_0x2be860[_0x473c40('0x25e5')][_0x473c40('0x595')]({'filter':_0x53bf6c})[_0x473c40('0x1376')];})[_0x2e3f77('0x21ad')](function(_0x534860){var _0x587ede=_0x2e3f77;_0x5be89d=_0x86640f()[_0x587ede('0x1877')](_0x5be89d,_0x86640f()[_0x587ede('0x1503')](_0x534860[_0x587ede('0x1b33')],function(_0x2f7e0f){var _0x13b5af=_0x587ede;return!_0x2f7e0f[_0x13b5af('0x723')]&&!_0x2f7e0f['FaxAccountId']&&!_0x2f7e0f[_0x13b5af('0x822')]&&!_0x2f7e0f[_0x13b5af('0x2127')]&&!_0x2f7e0f['OpenchannelAccountId']&&!_0x2f7e0f[_0x13b5af('0x15f9')];})),_0x4d7b81['resolve'](_0x5be89d);})[_0x2e3f77('0x1c1d')](function(_0x5c1f74){var _0x12deba=_0x2e3f77;_0x4d7b81[_0x12deba('0x37a')](_0x5c1f74);}),_0x4d7b81['promise'];}function _0x464ad6(_0x25725e){var _0xbf51ac=_0x2ca424,_0x3440ed='';return _0x25725e[_0xbf51ac('0x992')]&&_0x25725e[_0xbf51ac('0x992')]!==_0x25725e[_0x2ebc50[_0xbf51ac('0xfdd')]]&&(_0x3440ed+=_0x25725e['firstName']+'\x20'),_0x25725e[_0xbf51ac('0x6d')]&&_0x25725e['lastName']!==_0x25725e[_0x2ebc50[_0xbf51ac('0xfdd')]]&&(_0x3440ed+=_0x25725e[_0xbf51ac('0x6d')]+'\x20'),_0x3440ed+='<'+_0x25725e[_0x2ebc50[_0xbf51ac('0xfdd')]]+'>';}function _0x2e90c2(_0x217245){var _0x1f93c0=_0x2ca424,_0x50f5bd=_0x217245;if(_0x86640f()[_0x1f93c0('0x267d')](_0x50f5bd))return _0x217245[_0x2ebc50[_0x1f93c0('0xfdd')]];return _0x50f5bd;}function _0x2011a3(_0x229381){var _0x47a555=_0x2ca424;if(_0x2ebc50&&_0x2ebc50[_0x47a555('0x815')]){var _0x3f8466=_0x47a555('0x19d5');return _0x2ebc50[_0x47a555('0xfdd')]&&(_0x3f8466+=','+_0x2ebc50[_0x47a555('0xfdd')]),_0x2be860[_0x47a555('0x25dc')]['get']({'ListId':_0x2ebc50[_0x47a555('0x815')],'nolimit':!![],'filter':_0x229381,'fields':_0x3f8466})['$promise']['then'](function(_0x12a24d){var _0xdebb3a=_0x47a555;return _0x12a24d[_0xdebb3a('0x1b33')];});}return[];}function _0x49a34d(){var _0x4fef91=_0x2ca424;_0x3e0fef[_0x4fef91('0x3b5')]();}function _0x25d4e2(){_0xb2eb67['secret']=!![];}function _0x1adea5(){var _0x4e9d55=_0x2ca424;_0xb2eb67[_0x4e9d55('0x1224')][_0x4e9d55('0x2452')]&&_0x3e0fef['hide']({'secret':!![],'body':_0xb2eb67[_0x4e9d55('0x1224')][_0x4e9d55('0x2452')]});}}const _0x496d81=_0x158815;_0x10316a[_0x3877e3('0x1a81')]=[_0x3877e3('0x26'),_0x3877e3('0x2313'),_0x3877e3('0x24e1'),'$mdDialog',_0x3877e3('0xa7'),_0x3877e3('0x1fd3'),_0x3877e3('0x1224'),_0x3877e3('0x7fa'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),'$q','$translate',_0x3877e3('0x15bc')];function _0x10316a(_0x267254,_0x30c275,_0x13e745,_0x64f738,_0x348847,_0xb40768,_0x1863c9,_0xd4f46e,_0x1885aa,_0x2c5490,_0x28cba1,_0x48ec81,_0x21adaa){var _0x1dfd74=_0x3877e3,_0x31e6d7=this;_0x31e6d7['currentUser']=_0x21adaa[_0x1dfd74('0x15ed')](),_0x31e6d7['errors']=[],_0x31e6d7[_0x1dfd74('0x26b5')]=[_0x348847[_0x1dfd74('0x21a6')][_0x1dfd74('0x1846')],_0x348847['KEY_CODE'][_0x1dfd74('0x1c2')],_0x348847[_0x1dfd74('0x21a6')][_0x1dfd74('0xbd5')]],_0x31e6d7[_0x1dfd74('0xb42')]=_0x1b6d3f,_0x31e6d7[_0x1dfd74('0x258d')]=_0x5142d7,_0x31e6d7[_0x1dfd74('0x322')]=_0x2c70cd,_0x31e6d7[_0x1dfd74('0x8f2')]=_0x2075d6,_0x31e6d7['ctrlMethods']={},_0x31e6d7['message']={'from':_0xb40768[_0x1dfd74('0x159e')],'to':_0x86640f()['isNil'](_0x1863c9['to'])||_0x86640f()[_0x1dfd74('0x23aa')](_0x1863c9['to'])?[]:_0x1863c9['to'],'body':''},_0x31e6d7[_0x1dfd74('0x2471')]=_0x51b617,_0x31e6d7[_0x1dfd74('0x18ca')]=_0x398856,_0x31e6d7[_0x1dfd74('0x167')]=_0x49842d,_0x31e6d7[_0x1dfd74('0x2808')]=_0x4cb49d,_0x31e6d7['transformContact']=_0x5a6142;switch(_0xd4f46e){case'note':_0x31e6d7['note']();break;}function _0xf89a2c(_0x2dcca4){var _0x322d6a=_0x1dfd74;_0x64f738[_0x322d6a('0x1c24')]({'to':_0x31e6d7[_0x322d6a('0x1224')]['to'][_0x322d6a('0x136')](','),'body':_0x2dcca4});}function _0x51b617(){var _0x10c492=_0x1dfd74;_0x31e6d7['message']['to']&&_0x31e6d7['message'][_0x10c492('0x2452')]&&(_0x31e6d7[_0x10c492('0x1224')]['to'][_0x10c492('0x577')]?_0xf89a2c(_0x31e6d7[_0x10c492('0x1224')][_0x10c492('0x2452')]):_0x2c5490[_0x10c492('0x2092')](_0x10c492('0x17c8')));}function _0x5142d7(_0x1e92ac){var _0x44ae92=_0x1dfd74;if(_0x1e92ac){try{_0x86640f()[_0x44ae92('0x53e')][_0x44ae92('0x2493')]=/{{([\s\S]+?)}}/g;var _0x2a830e=_0x86640f()['template'](_0x1e92ac[_0x44ae92('0x2228')]),_0x6ec84c={'user':_0x31e6d7[_0x44ae92('0x123f')],'account':_0xb40768};_0x31e6d7['message'][_0x44ae92('0x2452')]+='\x20'+_0x2a830e(_0x6ec84c),_0x31e6d7[_0x44ae92('0xa7c')]['setText'](_0x31e6d7[_0x44ae92('0x1224')][_0x44ae92('0x2452')]);}catch(_0x293802){_0x31e6d7[_0x44ae92('0x1224')][_0x44ae92('0x2452')]+='\x20'+_0x1e92ac[_0x44ae92('0x2228')],_0x31e6d7['ctrlMethods'][_0x44ae92('0x23fd')](_0x31e6d7[_0x44ae92('0x1224')][_0x44ae92('0x2452')]);}_0x31e6d7['selectedItem']=null;}}function _0x1b6d3f(_0x31116a){var _0xb12c32=_0x1dfd74,_0x2de4f6=_0x28cba1[_0xb12c32('0xca9')](),_0x1dfc97=[];return _0x1885aa[_0xb12c32('0x25e5')][_0xb12c32('0x595')]({'filter':_0x31116a,'SmsAccountId':_0xb40768['id']})[_0xb12c32('0x1376')][_0xb12c32('0x21ad')](function(_0x191eaf){var _0x4d4f9f=_0xb12c32;return _0x1dfc97=_0x86640f()[_0x4d4f9f('0x1877')](_0x1dfc97,_0x191eaf[_0x4d4f9f('0x1b33')]),_0x1885aa[_0x4d4f9f('0x25e5')][_0x4d4f9f('0x595')]({'filter':_0x31116a})['$promise'];})[_0xb12c32('0x21ad')](function(_0xabb854){var _0x37acbb=_0xb12c32;_0x1dfc97=_0x86640f()[_0x37acbb('0x1877')](_0x1dfc97,_0x86640f()[_0x37acbb('0x1503')](_0xabb854[_0x37acbb('0x1b33')],function(_0x3a4c35){var _0x40244d=_0x37acbb;return!_0x3a4c35[_0x40244d('0x723')]&&!_0x3a4c35[_0x40244d('0x1de9')]&&!_0x3a4c35[_0x40244d('0x822')]&&!_0x3a4c35[_0x40244d('0xc92')]&&!_0x3a4c35['ChatWebsiteId'];})),_0x2de4f6[_0x37acbb('0x8ac')](_0x1dfc97);})[_0xb12c32('0x1c1d')](function(_0x29c2cc){var _0x418f71=_0xb12c32;_0x2de4f6[_0x418f71('0x37a')](_0x29c2cc);}),_0x2de4f6[_0xb12c32('0x71b')];}function _0x398856(_0x2ac21e){var _0x5d9194=_0x1dfd74,_0x2f56ba='';return _0x2ac21e[_0x5d9194('0x992')]&&_0x2ac21e['firstName']!==_0x2ac21e[_0x5d9194('0xf65')]&&(_0x2f56ba+=_0x2ac21e['firstName']+'\x20'),_0x2ac21e[_0x5d9194('0x6d')]&&_0x2ac21e['lastName']!==_0x2ac21e[_0x5d9194('0xf65')]&&(_0x2f56ba+=_0x2ac21e[_0x5d9194('0x6d')]+'\x20'),_0x2f56ba+='<'+_0x2ac21e['mobile']+'>';}function _0x5a6142(_0x4dd9a3){var _0x3673bb=_0x1dfd74,_0x2e19e7=_0x4dd9a3;if(_0x86640f()[_0x3673bb('0x267d')](_0x2e19e7))return _0x4dd9a3[_0x3673bb('0xf65')];if(_0x2ddf6c(_0x2e19e7))return _0x2e19e7;return _0x2c5490[_0x3673bb('0x2092')](_0x3673bb('0x1ccf')+_0x2e19e7+'\x20is\x20not\x20valid'),null;}function _0x4cb49d(_0x2405ed){var _0x3a7e5c=_0x1dfd74;if(_0xb40768&&_0xb40768[_0x3a7e5c('0x815')])return _0x1885aa[_0x3a7e5c('0x25dc')][_0x3a7e5c('0x595')]({'ListId':_0xb40768[_0x3a7e5c('0x815')],'nolimit':!![],'filter':_0x2405ed,'fields':_0x3a7e5c('0x1478')})[_0x3a7e5c('0x1376')]['then'](function(_0x5dfbda){var _0x452bbd=_0x3a7e5c;return _0x5dfbda[_0x452bbd('0x1b33')];});return[];}function _0x49842d(){_0x64f738['cancel']();}function _0x2ddf6c(_0x132ddb){var _0x119600=_0x1dfd74,_0x4dafc2=/^(\+|\d)[0-9]{7,16}$/;return _0x4dafc2[_0x119600('0x1dc7')](_0x132ddb);}function _0x2c70cd(){var _0x5901d9=_0x1dfd74;_0x31e6d7[_0x5901d9('0x1d1b')]=!![];}function _0x2075d6(){var _0x4ee72d=_0x1dfd74;_0x31e6d7[_0x4ee72d('0x1224')][_0x4ee72d('0x2452')]&&_0x64f738[_0x4ee72d('0x1c24')]({'secret':!![],'body':_0x31e6d7[_0x4ee72d('0x1224')]['body']});}}const _0x4d5305=_0x10316a;_0x1c8f09[_0x3877e3('0x1a81')]=[_0x3877e3('0x26'),_0x3877e3('0x2313'),_0x3877e3('0x24e1'),'$mdDialog',_0x3877e3('0xa7'),_0x3877e3('0x1fd3'),_0x3877e3('0x1224'),'type',_0x3877e3('0xccd'),'toasty','$q',_0x3877e3('0x13c1'),_0x3877e3('0x15bc')];function _0x1c8f09(_0x427ffe,_0x148e32,_0x52bc38,_0x46274b,_0x538c7d,_0x49e86f,_0x555584,_0x1aeca8,_0x2c293a,_0x291056,_0x2fdd3a,_0x29e1a9,_0x401a6a){var _0x26ae00=_0x3877e3,_0x36e16c=this;_0x36e16c[_0x26ae00('0x123f')]=_0x401a6a[_0x26ae00('0x15ed')](),_0x36e16c['errors']=[],_0x36e16c[_0x26ae00('0x26b5')]=[_0x538c7d[_0x26ae00('0x21a6')]['ENTER'],_0x538c7d['KEY_CODE'][_0x26ae00('0x1c2')],_0x538c7d[_0x26ae00('0x21a6')][_0x26ae00('0xbd5')]],_0x36e16c[_0x26ae00('0xb42')]=_0x47d729,_0x36e16c['selectedItemChange']=_0x1c0956,_0x36e16c['note']=_0x1ea9c7,_0x36e16c[_0x26ae00('0x8f2')]=_0x1274a3,_0x36e16c[_0x26ae00('0xa7c')]={},_0x36e16c[_0x26ae00('0x1224')]={'from':_0x49e86f[_0x26ae00('0x159e')],'to':_0x86640f()[_0x26ae00('0x1c7')](_0x555584['to'])||_0x86640f()[_0x26ae00('0x23aa')](_0x555584['to'])?[]:_0x555584['to'],'body':''},_0x36e16c[_0x26ae00('0x2471')]=_0x32264e,_0x36e16c[_0x26ae00('0x18ca')]=_0x580325,_0x36e16c[_0x26ae00('0x167')]=_0x5206ee,_0x36e16c[_0x26ae00('0x2808')]=_0x1fa229,_0x36e16c[_0x26ae00('0x27f5')]=_0x83068b;switch(_0x1aeca8){case _0x26ae00('0x322'):_0x36e16c[_0x26ae00('0x322')]();break;}function _0x40c427(_0x49a22b){var _0x58be2b=_0x26ae00;_0x46274b[_0x58be2b('0x1c24')]({'to':_0x36e16c[_0x58be2b('0x1224')]['to'][_0x58be2b('0x136')](','),'body':_0x49a22b});}function _0x32264e(){var _0xb70c2=_0x26ae00;_0x36e16c[_0xb70c2('0x1224')]['to']&&_0x36e16c['message'][_0xb70c2('0x2452')]&&(_0x36e16c['message']['to'][_0xb70c2('0x577')]?_0x40c427(_0x36e16c[_0xb70c2('0x1224')]['body']):_0x291056[_0xb70c2('0x2092')](_0xb70c2('0x17c8')));}function _0x1c0956(_0x686be2){var _0x4abf8f=_0x26ae00;if(_0x686be2){try{_0x86640f()[_0x4abf8f('0x53e')][_0x4abf8f('0x2493')]=/{{([\s\S]+?)}}/g;var _0x570179=_0x86640f()[_0x4abf8f('0x1a51')](_0x686be2[_0x4abf8f('0x2228')]),_0x292b1a={'user':_0x36e16c[_0x4abf8f('0x123f')],'account':_0x49e86f};_0x36e16c[_0x4abf8f('0x1224')][_0x4abf8f('0x2452')]+='\x20'+_0x570179(_0x292b1a),_0x36e16c[_0x4abf8f('0xa7c')][_0x4abf8f('0x23fd')](_0x36e16c['message'][_0x4abf8f('0x2452')]);}catch(_0x301d48){_0x36e16c[_0x4abf8f('0x1224')]['body']+='\x20'+_0x686be2[_0x4abf8f('0x2228')],_0x36e16c[_0x4abf8f('0xa7c')][_0x4abf8f('0x23fd')](_0x36e16c[_0x4abf8f('0x1224')][_0x4abf8f('0x2452')]);}_0x36e16c[_0x4abf8f('0x212e')]=null;}}function _0x47d729(_0x5af23e){var _0x430be8=_0x26ae00,_0x1862b7=_0x2fdd3a[_0x430be8('0xca9')](),_0x4ad3a5=[];return _0x2c293a[_0x430be8('0x25e5')][_0x430be8('0x595')]({'filter':_0x5af23e,'WhatsappAccountId':_0x49e86f['id']})['$promise'][_0x430be8('0x21ad')](function(_0x51f761){var _0x57b7cc=_0x430be8;return _0x4ad3a5=_0x86640f()['concat'](_0x4ad3a5,_0x51f761['rows']),_0x2c293a['cannedAnswer'][_0x57b7cc('0x595')]({'filter':_0x5af23e})[_0x57b7cc('0x1376')];})[_0x430be8('0x21ad')](function(_0x5a1fb7){var _0x10be20=_0x430be8;_0x4ad3a5=_0x86640f()[_0x10be20('0x1877')](_0x4ad3a5,_0x86640f()[_0x10be20('0x1503')](_0x5a1fb7[_0x10be20('0x1b33')],function(_0x256c13){var _0xb4ad7c=_0x10be20;return!_0x256c13[_0xb4ad7c('0x723')]&&!_0x256c13['FaxAccountId']&&!_0x256c13[_0xb4ad7c('0x2127')]&&!_0x256c13[_0xb4ad7c('0xc92')]&&!_0x256c13[_0xb4ad7c('0x15f9')];})),_0x1862b7[_0x10be20('0x8ac')](_0x4ad3a5);})[_0x430be8('0x1c1d')](function(_0x138449){var _0x2f7173=_0x430be8;_0x1862b7[_0x2f7173('0x37a')](_0x138449);}),_0x1862b7['promise'];}function _0x580325(_0x4e222d){var _0x32d3b4=_0x26ae00,_0x5e45e0='';return _0x4e222d[_0x32d3b4('0x992')]&&_0x4e222d[_0x32d3b4('0x992')]!==_0x4e222d[_0x32d3b4('0xf65')]&&(_0x5e45e0+=_0x4e222d[_0x32d3b4('0x992')]+'\x20'),_0x4e222d['lastName']&&_0x4e222d['lastName']!==_0x4e222d['mobile']&&(_0x5e45e0+=_0x4e222d[_0x32d3b4('0x6d')]+'\x20'),_0x5e45e0+='<'+_0x4e222d[_0x32d3b4('0xf65')]+'>';}function _0x83068b(_0x3edfdc){var _0x130af9=_0x26ae00,_0x96d85d=_0x3edfdc;if(_0x86640f()[_0x130af9('0x267d')](_0x96d85d))return _0x3edfdc[_0x130af9('0xf65')];if(_0xe5ee53(_0x96d85d))return _0x96d85d;return _0x291056[_0x130af9('0x2092')](_0x130af9('0x1ccf')+_0x96d85d+_0x130af9('0x582')),null;}function _0x1fa229(_0x20e070){var _0x492d65=_0x26ae00;if(_0x49e86f&&_0x49e86f[_0x492d65('0x815')])return _0x2c293a['cmContact']['get']({'ListId':_0x49e86f[_0x492d65('0x815')],'nolimit':!![],'filter':_0x20e070,'fields':'firstName,lastName,mobile'})['$promise'][_0x492d65('0x21ad')](function(_0x59eb9c){var _0x43ed5d=_0x492d65;return _0x59eb9c[_0x43ed5d('0x1b33')];});return[];}function _0x5206ee(){var _0x41a2ed=_0x26ae00;_0x46274b[_0x41a2ed('0x3b5')]();}function _0xe5ee53(_0x30eca6){var _0x908cf0=_0x26ae00,_0xb8b510=/^(\+|\d)[0-9]{7,16}$/;return _0xb8b510[_0x908cf0('0x1dc7')](_0x30eca6);}function _0x1ea9c7(){var _0x1948d4=_0x26ae00;_0x36e16c[_0x1948d4('0x1d1b')]=!![];}function _0x1274a3(){var _0x13151a=_0x26ae00;_0x36e16c[_0x13151a('0x1224')][_0x13151a('0x2452')]&&_0x46274b[_0x13151a('0x1c24')]({'secret':!![],'body':_0x36e16c[_0x13151a('0x1224')][_0x13151a('0x2452')]});}}const _0x79d4f7=_0x1c8f09;_0x3b352e[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),_0x3877e3('0x1908'),_0x3877e3('0xccd'),'interaction',_0x3877e3('0x27b5'),_0x3877e3('0x1775'),_0x3877e3('0x2113')];function _0x3b352e(_0x5c868d,_0x13b3d9,_0x16e1dc,_0x3638af,_0x2b7da0,_0x2b8dc8,_0x217a02){var _0x48f5b0=_0x3877e3,_0x292853=this;_0x292853['errors']=[],_0x292853[_0x48f5b0('0x10d0')]=[],_0x292853[_0x48f5b0('0x1d23')]=angular['copy'](_0x3638af);!_0x292853['interaction'][_0x48f5b0('0x22c8')]&&(_0x292853[_0x48f5b0('0x1d23')]['disposition']=null);_0x292853[_0x48f5b0('0x27b5')]=_0x2b7da0,_0x292853[_0x48f5b0('0x1fd5')]=_0x292853['channel']+'Interaction',_0x292853[_0x48f5b0('0x1720')]=_0x292853[_0x48f5b0('0x27b5')]+(_0x292853[_0x48f5b0('0x27b5')]===_0x48f5b0('0x1f65')?'Website':'Account'),_0x292853[_0x48f5b0('0x15ba')]=_0x86640f()['capitalize'](_0x292853[_0x48f5b0('0x27b5')])+(_0x292853[_0x48f5b0('0x27b5')]===_0x48f5b0('0x1f65')?_0x48f5b0('0x188b'):_0x48f5b0('0x5f0'))+'Id',_0x292853['firstLevelDisposition']=null,_0x292853[_0x48f5b0('0x798')]=![],_0x292853['mandatoryDispositionPause']='',_0x292853[_0x48f5b0('0x8a')]=_0x2b8dc8[_0x48f5b0('0x1025')]||_0x2b8dc8[_0x48f5b0('0x1785')]||_0x2b8dc8['mailPause']||_0x2b8dc8[_0x48f5b0('0x2022')]||_0x2b8dc8[_0x48f5b0('0x23f5')],_0x292853[_0x48f5b0('0x1673')]=_0x9e833e,_0x292853[_0x48f5b0('0x10d8')]=_0x2c530b,_0x292853[_0x48f5b0('0x12cd')]=_0x2b26f6,_0x292853[_0x48f5b0('0x167')]=_0x48fc7b;function _0x42d7c3(){var _0x5bf078=_0x48f5b0,_0x4c708d=[],_0x3ee486={'fields':_0x5bf078('0x1886'),'sort':_0x5bf078('0x19fe'),'nolimit':!![]};_0x3ee486[_0x292853['accountProperty']]=_0x3638af[_0x292853['accountProperty']],_0x16e1dc[_0x292853[_0x5bf078('0x1720')]][_0x5bf078('0x595')]({'id':_0x3638af[_0x292853['accountProperty']]})[_0x5bf078('0x1376')][_0x5bf078('0x21ad')](function(_0x52ac11){var _0x488247=_0x5bf078;return _0x292853[_0x488247('0x798')]=_0x52ac11['mandatoryDisposition'],_0x292853[_0x488247('0x798')]&&(_0x292853[_0x488247('0x520')]=_0x52ac11['mandatoryDispositionPause']['name']),_0x16e1dc[_0x488247('0x22c8')][_0x488247('0x595')](_0x3ee486)[_0x488247('0x1376')];})[_0x5bf078('0x21ad')](function(_0x5cd3dd){var _0x3d6498=_0x5bf078;return _0x5cd3dd[_0x3d6498('0x1b33')][_0x3d6498('0x577')]&&(_0x4c708d=_0x86640f()[_0x3d6498('0x1877')](_0x4c708d,_0x5cd3dd['rows'])),_0x16e1dc[_0x3d6498('0x22c8')][_0x3d6498('0x595')]({'MailAccountId':_0x3d6498('0x27a'),'FaxAccountId':_0x3d6498('0x27a'),'SmsAccountId':'null','WhatsappAccountId':'null','OpenchannelAccountId':'null','ChatWebsiteId':'null','ListId':_0x3d6498('0x27a')})[_0x3d6498('0x1376')];})[_0x5bf078('0x21ad')](function(_0xf2e793){var _0x8a2992=_0x5bf078;_0xf2e793['rows']['length']&&(_0x4c708d=_0x86640f()[_0x8a2992('0x1877')](_0x4c708d,_0xf2e793[_0x8a2992('0x1b33')]));})['catch'](function(_0x40f5e6){console['error'](_0x40f5e6);})[_0x5bf078('0x13e')](function(){var _0x341df4=_0x5bf078;_0x292853[_0x341df4('0x10d0')]=_0x86640f()['orderBy'](_0x4c708d,[_0x341df4('0x19fe')],[_0x341df4('0x15d6')]),_0x172b35();});}function _0x172b35(){var _0x2faa22=_0x48f5b0;_0x292853[_0x2faa22('0x798')]&&!_0x292853[_0x2faa22('0x8a')]&&_0x16e1dc[_0x2faa22('0x1775')]['pause']({'id':_0x2b8dc8['id'],'type':_0x292853[_0x2faa22('0x520')]||_0x2faa22('0x628')})['$promise'][_0x2faa22('0x21ad')](function(){})['catch'](function(_0x512afb){var _0x269771=_0x2faa22;console[_0x269771('0x2092')](_0x512afb);});}function _0x9e833e(_0x1051a5){var _0x199903=_0x48f5b0;if(_0x1051a5===_0x199903('0x2019')){_0x292853[_0x199903('0x10a7')]=_0x292853[_0x199903('0x1273')]?_0x86640f()[_0x199903('0x2664')](_0x292853['dispositions'],[_0x199903('0x198f'),_0x292853[_0x199903('0x1273')]['id']]):![];if(!_0x292853[_0x199903('0x1273')])_0x292853[_0x199903('0x185c')]=undefined;}else _0x1051a5===_0x199903('0x502')&&(_0x292853[_0x199903('0x2501')]=_0x86640f()[_0x199903('0x2664')](_0x292853['dispositions'],[_0x199903('0x198f'),_0x292853[_0x199903('0x185c')]['id']]));}function _0x2c530b(_0x3af15b){var _0x274d52=_0x48f5b0;if(_0x3af15b===_0x274d52('0x502'))_0x292853[_0x274d52('0x185c')]=undefined,_0x292853[_0x274d52('0x160a')]=undefined;else _0x3af15b===_0x274d52('0x1649')&&(_0x292853['thirdLevelDisposition']=undefined);}function _0x2b26f6(){var _0x524c50=_0x48f5b0;_0x292853['errors']=[],_0x292853[_0x524c50('0x1d23')][_0x524c50('0x1dc6')]=_0x2b8dc8['id'],_0x292853[_0x524c50('0x1d23')][_0x524c50('0x14ba')]=!![],_0x292853[_0x524c50('0x1d23')][_0x524c50('0xfb8')]=_0x524c50('0x2402'),_0x292853[_0x524c50('0x1d23')][_0x524c50('0x22c8')]=_0x292853[_0x524c50('0x1273')]?_0x292853[_0x524c50('0x1273')]['name']:null,_0x292853[_0x524c50('0x1d23')][_0x524c50('0x2764')]=_0x292853[_0x524c50('0x185c')]?_0x292853[_0x524c50('0x185c')]['name']:undefined,_0x292853[_0x524c50('0x1d23')][_0x524c50('0x125')]=_0x292853[_0x524c50('0x160a')]?_0x292853[_0x524c50('0x160a')][_0x524c50('0x19fe')]:undefined,_0x16e1dc[_0x292853['apiRoute']]?_0x16e1dc[_0x292853['apiRoute']][_0x524c50('0x5ef')](_0x86640f()[_0x524c50('0xc50')](_0x292853[_0x524c50('0x1d23')],[_0x524c50('0x723'),'FaxAccountId',_0x524c50('0x822'),_0x524c50('0x2127'),'ChatWebsiteId',_0x524c50('0xc92'),'closed',_0x524c50('0xfb8'),_0x524c50('0x22c8'),_0x524c50('0x2764'),_0x524c50('0x125'),'id','note','UserId']))[_0x524c50('0x1376')]['then'](function(_0x3d9773){var _0x43bf07=_0x524c50;_0x292853[_0x43bf07('0x1d23')]=_0x3d9773,_0x292853[_0x43bf07('0x27b5')]===_0x43bf07('0x1c8b')&&_0x217a02[_0x43bf07('0xf08')](_0x292853['interaction']['id']),_0x13b3d9[_0x43bf07('0xdb1')]({'title':_0x43bf07('0x1941'),'msg':'Interaction\x20has\x20been\x20closed!'});})[_0x524c50('0x21ad')](function(){_0x48fc7b(!![]);})[_0x524c50('0x1c1d')](function(_0x4ac1e5){var _0x61565e=_0x524c50;if(_0x4ac1e5['data']&&_0x4ac1e5[_0x61565e('0x11c2')][_0x61565e('0x1a69')]&&_0x4ac1e5['data'][_0x61565e('0x1a69')][_0x61565e('0x577')]){_0x292853['errors']=_0x4ac1e5[_0x61565e('0x11c2')]['errors']||[{'message':_0x4ac1e5[_0x61565e('0x174f')](),'type':'api.variable.update'}];for(var _0x559372=0x0;_0x559372<_0x4ac1e5[_0x61565e('0x11c2')]['errors'][_0x61565e('0x577')];_0x559372++){_0x13b3d9[_0x61565e('0x2092')]({'title':_0x4ac1e5[_0x61565e('0x11c2')][_0x61565e('0x1a69')][_0x559372][_0x61565e('0x7fa')],'msg':_0x4ac1e5['data'][_0x61565e('0x1a69')][_0x559372]['message']});}}else _0x13b3d9[_0x61565e('0x2092')]({'title':_0x4ac1e5[_0x61565e('0x209')]?_0x61565e('0x22d')+_0x4ac1e5['status']+_0x61565e('0xa99')+_0x4ac1e5[_0x61565e('0x1808')]:_0x61565e('0x1f4c'),'msg':_0x4ac1e5['data']?JSON[_0x61565e('0x25e')](_0x4ac1e5[_0x61565e('0x11c2')][_0x61565e('0x1224')]):_0x4ac1e5[_0x61565e('0x174f')]()});}):_0x48fc7b(![]);}function _0x48fc7b(_0x4e812a){var _0x5b01ec=_0x48f5b0;_0x5c868d[_0x5b01ec('0x1c24')](_0x4e812a);}_0x42d7c3();}const _0x4af9bd=_0x3b352e;_0x38a5ee[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),_0x3877e3('0x1908'),_0x3877e3('0xccd'),'interaction',_0x3877e3('0x27b5'),'tags'];function _0x38a5ee(_0x1c6aec,_0x4181cb,_0x57303c,_0x3bdce3,_0x4a1352,_0x1670f2){var _0x57c940=_0x3877e3,_0x58ca77=this;_0x58ca77['errors']=[],_0x58ca77[_0x57c940('0x1889')]=_0x1670f2,_0x58ca77['interaction']=angular[_0x57c940('0xd75')](_0x3bdce3),_0x58ca77[_0x57c940('0x1d23')]['Tags']=_0x86640f()[_0x57c940('0x26c3')](_0x58ca77[_0x57c940('0x1d23')][_0x57c940('0x557')],function(_0x5c802d){var _0x53cef2=_0x57c940;return{'id':_0x5c802d['id'],'name':_0x5c802d['name'],'color':_0x5c802d[_0x53cef2('0x20e2')]};}),_0x58ca77[_0x57c940('0x27b5')]=_0x4a1352,_0x58ca77[_0x57c940('0x2172')]=!![],_0x58ca77[_0x57c940('0x184d')]=_0x379dae,_0x58ca77[_0x57c940('0x167')]=_0x560964,_0x58ca77[_0x57c940('0x1fd5')]=_0x58ca77['channel']+_0x57c940('0xec3');function _0x379dae(){var _0x2d6d22=_0x57c940;_0x58ca77[_0x2d6d22('0x1a69')]=[];if(_0x57303c[_0x58ca77['apiRoute']])return _0x57303c[_0x58ca77['apiRoute']]['addTags']({'id':_0x58ca77[_0x2d6d22('0x1d23')]['id'],'ids':_0x86640f()[_0x2d6d22('0x26c3')](_0x58ca77[_0x2d6d22('0x1d23')][_0x2d6d22('0x557')],'id')})['$promise'][_0x2d6d22('0x21ad')](function(){var _0x41e7c8=_0x2d6d22;_0x4181cb[_0x41e7c8('0xdb1')]({'title':'Interaction\x20properly\x20tagged!','msg':'Interaction\x20has\x20been\x20tagged!'}),_0x3bdce3[_0x41e7c8('0x557')]=_0x58ca77[_0x41e7c8('0x1d23')][_0x41e7c8('0x557')],_0x560964(!![]);})[_0x2d6d22('0x1c1d')](function(_0x4d6783){var _0x7ccd6=_0x2d6d22;if(_0x4d6783[_0x7ccd6('0x11c2')]&&_0x4d6783['data']['errors']&&_0x4d6783[_0x7ccd6('0x11c2')][_0x7ccd6('0x1a69')][_0x7ccd6('0x577')])for(var _0x5376b7=0x0;_0x5376b7<_0x4d6783[_0x7ccd6('0x11c2')][_0x7ccd6('0x1a69')][_0x7ccd6('0x577')];_0x5376b7+=0x1){_0x4181cb[_0x7ccd6('0x2092')]({'title':_0x4d6783[_0x7ccd6('0x11c2')][_0x7ccd6('0x1a69')][_0x5376b7]['type'],'msg':_0x4d6783[_0x7ccd6('0x11c2')][_0x7ccd6('0x1a69')][_0x5376b7][_0x7ccd6('0x1224')]});}else _0x4181cb[_0x7ccd6('0x2092')]({'title':_0x4d6783[_0x7ccd6('0x209')]?'API:'+_0x4d6783['status']+_0x7ccd6('0xa99')+_0x4d6783[_0x7ccd6('0x1808')]:_0x7ccd6('0x1f4c'),'msg':_0x4d6783['data']?JSON[_0x7ccd6('0x25e')](_0x4d6783[_0x7ccd6('0x11c2')][_0x7ccd6('0x1224')]):_0x4d6783[_0x7ccd6('0x174f')]()});});else _0x560964(![]);}function _0x560964(_0x2711af){_0x1c6aec['hide'](_0x2711af);}}const _0x1f3a9a=_0x38a5ee;_0x11e646['$inject']=[_0x3877e3('0x1850'),_0x3877e3('0x2313'),_0x3877e3('0x15bc'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x27b5'),_0x3877e3('0x1224'),_0x3877e3('0x1fd3')];function _0x11e646(_0x50962f,_0x406b6f,_0x25de57,_0x32f893,_0xa95058,_0x147bd2,_0x290fc2,_0x11deac){var _0x5aa344=_0x3877e3,_0x59a03f=this;_0x59a03f[_0x5aa344('0x123f')]=_0x25de57[_0x5aa344('0x15ed')](),_0x59a03f[_0x5aa344('0x27b5')]=_0x147bd2[_0x5aa344('0xac2')](),_0x59a03f[_0x5aa344('0x1224')]=_0x290fc2,_0x59a03f[_0x5aa344('0x1fd3')]=_0x11deac,_0x59a03f[_0x5aa344('0x1e61')]={'id':0x0,'type':_0x5aa344('0xbdd')},_0x59a03f[_0x5aa344('0xb7a')]={'count':0x0,'rows':[]},_0x59a03f['agents']=_0x59a03f['queues'],_0x59a03f[_0x5aa344('0x24da')]=_0x59a03f['channel']+_0x5aa344('0x1da'),_0x59a03f['queueNotifyMethod']=_0x59a03f[_0x5aa344('0x27b5')]+_0x5aa344('0x3ee'),_0x59a03f[_0x5aa344('0xe73')]=_0x3e48d7,_0x59a03f['closeDialog']=_0x4bc38f,_0x59a03f[_0x5aa344('0x1d75')]=_0x8fc6fc,_0x59a03f['init']();function _0x8fc6fc(){var _0xab5a4a=_0x5aa344;return _0x32f893[_0xab5a4a('0x1775')][_0xab5a4a('0x595')]({'fields':_0xab5a4a('0x1aa8'),'role':_0xab5a4a('0x2402'),'sort':_0xab5a4a('0x19fe'),'nolimit':!![]})[_0xab5a4a('0x1376')][_0xab5a4a('0x21ad')](function(_0x1a70e6){var _0x4c0766=_0xab5a4a;return _0x59a03f[_0x4c0766('0xcb5')]=_0x1a70e6||{'count':0x0,'rows':[]},_0x32f893[_0x59a03f[_0x4c0766('0x24da')]][_0x4c0766('0x595')]({'fields':_0x4c0766('0x1aa8'),'sort':'name','nolimit':!![]})[_0x4c0766('0x1376')];})[_0xab5a4a('0x21ad')](function(_0x336ff3){_0x59a03f['queues']=_0x336ff3||{'count':0x0,'rows':[]};})[_0xab5a4a('0x1c1d')](function(_0x3ae6c6){var _0x178532=_0xab5a4a;console[_0x178532('0x2092')](_0x3ae6c6);});}function _0x4bc38f(_0x738ca0){_0x50962f['hide'](_0x738ca0);}function _0x3e48d7(){_0x4bc38f(!![]),_0x406b6f(function(){var _0x1c6a96=a0_0x2e7f;return _0x32f893['rpc'][_0x59a03f[_0x1c6a96('0x1e61')][_0x1c6a96('0x7fa')]==='agent'?'agentNotify':_0x59a03f[_0x1c6a96('0x1c87')]]({'id':_0x59a03f[_0x1c6a96('0x1e61')]['id'],'messageId':_0x59a03f[_0x1c6a96('0x1224')]['id'],'channel':_0x59a03f[_0x1c6a96('0x27b5')]})[_0x1c6a96('0x1376')][_0x1c6a96('0x21ad')](function(){var _0x3cb45f=_0x1c6a96;_0xa95058[_0x3cb45f('0xdb1')]({'title':_0x3cb45f('0x2293'),'msg':_0x3cb45f('0xf75')+_0x59a03f[_0x3cb45f('0x1e61')]['type']+'\x20has\x20been\x20done!'});})[_0x1c6a96('0x1c1d')](function(_0x4adfff){var _0x1693fa=_0x1c6a96;if(_0x4adfff[_0x1693fa('0x11c2')]&&_0x4adfff[_0x1693fa('0x11c2')][_0x1693fa('0x1a69')]&&_0x4adfff[_0x1693fa('0x11c2')]['errors'][_0x1693fa('0x577')]){_0x59a03f[_0x1693fa('0x1a69')]=_0x4adfff['data'][_0x1693fa('0x1a69')]||[{'message':_0x4adfff['toString'](),'type':_0x1693fa('0x731')}];for(var _0x59c357=0x0;_0x59c357<_0x4adfff[_0x1693fa('0x11c2')][_0x1693fa('0x1a69')][_0x1693fa('0x577')];_0x59c357++){_0xa95058[_0x1693fa('0x2092')]({'title':_0x4adfff[_0x1693fa('0x11c2')]['errors'][_0x59c357][_0x1693fa('0x7fa')],'msg':_0x4adfff[_0x1693fa('0x11c2')][_0x1693fa('0x1a69')][_0x59c357]['message']});}}else _0xa95058['error']({'title':_0x4adfff[_0x1693fa('0x209')]?'API:'+_0x4adfff['status']+'\x20-\x20'+_0x4adfff[_0x1693fa('0x1808')]:'api.rpc.notify','msg':_0x4adfff[_0x1693fa('0x11c2')]?JSON['stringify'](_0x4adfff[_0x1693fa('0x11c2')][_0x1693fa('0x1224')]):_0x4adfff[_0x1693fa('0x174f')]()});});},0x1388);}}const _0x24c280=_0x11e646;_0x1f26a0[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$q',_0x3877e3('0x1850'),'mwFormResponseUtils','api',_0x3877e3('0x1908'),_0x3877e3('0x15bc'),'$translate',_0x3877e3('0x25ff'),_0x3877e3('0x2313'),_0x3877e3('0x12d9')];function _0x1f26a0(_0x128ab5,_0x18dbcd,_0x396b26,_0x4bc0ea,_0x281af6,_0x16f1e8,_0x3d708d,_0x540489,_0x562051,_0x28034b,_0x60264){var _0x14d192=_0x3877e3,_0x13e455=this;_0x13e455[_0x14d192('0x2729')]={},_0x13e455[_0x14d192('0x12f2')]=!![],_0x13e455['showIncompleteSubmitButton']=![],_0x13e455[_0x14d192('0xc51')]=_0x60264[_0x14d192('0xc51')](),_0x13e455['onSubmit']=_0x5a6e30,_0x13e455[_0x14d192('0x23d1')]=_0x4497f9,_0x13e455['isJsonString']=_0x4bd8b9,_0x13e455[_0x14d192('0x1480')]=_0x29ea5c,_0x13e455['getResponseSheetRow']=_0x1e634f,_0x13e455[_0x14d192('0x79')]=_0x2449f1,_0x13e455['getQuestionWithResponseList']=_0x1b9a20,_0x13e455['init']=_0x1b6520,_0x13e455[_0x14d192('0x85b')]=function(_0x561b48){var _0x7ef205=_0x14d192;if(_0x13e455[_0x7ef205('0x2729')]['reset']){var _0x41816e=_0x396b26[_0x7ef205('0xa33')]()[_0x7ef205('0x4b4')](_0x540489[_0x7ef205('0x183e')](_0x7ef205('0x1c10')))[_0x7ef205('0x13fb')](_0x540489[_0x7ef205('0x183e')](_0x7ef205('0x1247')))[_0x7ef205('0x226d')]('')['ariaLabel']('survey')[_0x7ef205('0x1e6d')](_0x561b48)['ok'](_0x540489[_0x7ef205('0x183e')](_0x7ef205('0x154e')))[_0x7ef205('0x3b5')](_0x540489[_0x7ef205('0x183e')]('JSCRIPTY.NO'));_0x396b26[_0x7ef205('0x853')](_0x41816e)[_0x7ef205('0x21ad')](function(){var _0x50da1d=_0x7ef205;_0x13e455[_0x50da1d('0x1532')]=![],_0x13e455[_0x50da1d('0xbf8')][_0x50da1d('0x14cd')]=undefined,_0x2def2d(),_0x13e455[_0x50da1d('0x2729')][_0x50da1d('0x21a8')]();});}};function _0x2def2d(){var _0x587e67=_0x14d192;try{_0x128ab5[_0x587e67('0x223d')][_0x587e67('0x223d')][_0x587e67('0x223d')]['vm'][_0x587e67('0x1e97')]();}catch(_0x1743b8){_0x16f1e8[_0x587e67('0x2092')]({'title':_0x587e67('0x78f'),'msg':_0x587e67('0x90c')});}}function _0x1b6520(_0x45f2a6){var _0x2f6ea2=_0x14d192;_0x13e455[_0x2f6ea2('0x12e1')]=_0x45f2a6;if(_0x13e455[_0x2f6ea2('0x12e1')]){_0x13e455[_0x2f6ea2('0xdc2')]=_0x13e455[_0x2f6ea2('0x12e1')][_0x2f6ea2('0xdc2')],_0x13e455[_0x2f6ea2('0x92e')]=_0x13e455[_0x2f6ea2('0x12e1')][_0x2f6ea2('0x2766')],_0x13e455['contact']=_0x13e455['tab'][_0x2f6ea2('0x150c')],_0x13e455[_0x2f6ea2('0xbf8')]=_0x13e455[_0x2f6ea2('0x12e1')]['project'];if(_0x13e455[_0x2f6ea2('0xbf8')]){if(_0x86640f()[_0x2f6ea2('0x1370')](_0x13e455[_0x2f6ea2('0xbf8')]['formData'])){}else _0x13e455[_0x2f6ea2('0x179d')](_0x13e455[_0x2f6ea2('0xbf8')]['formData'])?_0x13e455['project'][_0x2f6ea2('0x244a')]=JSON['parse'](_0x13e455[_0x2f6ea2('0xbf8')][_0x2f6ea2('0x244a')]):_0x13e455[_0x2f6ea2('0xbf8')][_0x2f6ea2('0x244a')]=undefined;_0x13e455[_0x2f6ea2('0xbf8')][_0x2f6ea2('0xc78')]=_0x13e455[_0x2f6ea2('0xbf8')]['responseData']||{},_0x13e455['project']['currentPage']!==undefined&&_0x28034b(function(){var _0x5cfc85=_0x2f6ea2;_0x562051['$broadcast'](_0x5cfc85('0xbe3'),{'page':_0x13e455[_0x5cfc85('0xbf8')]['currentPage']});}),_0x128ab5[_0x2f6ea2('0x1723')](_0x2f6ea2('0x12ba'),function(_0x354b75,_0x2f0a8b){var _0x564011=_0x2f6ea2;if(_0x2f0a8b[_0x564011('0x14cd')]){_0x13e455[_0x564011('0xbf8')][_0x564011('0x14cd')]=_0x2f0a8b[_0x564011('0x14cd')][_0x564011('0xed8')]-0x1,_0x2def2d();_0x13e455[_0x564011('0xbf8')][_0x564011('0x20df')]&&(_0x2f0a8b[_0x564011('0x14cd')][_0x564011('0xed8')]>=0x1&&_0x2f0a8b[_0x564011('0x14cd')][_0x564011('0xed8')]<_0x13e455[_0x564011('0xbf8')]['formData']['pages'][_0x564011('0x577')]?_0x13e455[_0x564011('0x1532')]=!![]:_0x13e455[_0x564011('0x1532')]=![]);if(_0x13e455[_0x564011('0xbf8')]['formData']&&_0x13e455[_0x564011('0xbf8')][_0x564011('0x244a')][_0x564011('0x281c')])for(var _0x3afcdd=0x0,_0x3006e1=_0x13e455[_0x564011('0xbf8')][_0x564011('0x244a')][_0x564011('0x281c')][_0x564011('0x577')];_0x3afcdd<_0x3006e1;_0x3afcdd++){if(_0x2f0a8b['currentPage']['number']<_0x3afcdd+0x1&&_0x13e455[_0x564011('0xbf8')][_0x564011('0x244a')]['pages'][_0x3afcdd][_0x564011('0x5c3')])for(var _0x34c455=0x0,_0x3438f3=_0x13e455[_0x564011('0xbf8')][_0x564011('0x244a')][_0x564011('0x281c')][_0x3afcdd]['elements']['length'];_0x34c455<_0x3438f3;_0x34c455++){_0x13e455[_0x564011('0xbf8')][_0x564011('0x244a')][_0x564011('0x281c')][_0x3afcdd][_0x564011('0x5c3')][_0x34c455][_0x564011('0x7fa')]==='question'&&_0x13e455[_0x564011('0xbf8')][_0x564011('0x244a')][_0x564011('0x281c')][_0x3afcdd][_0x564011('0x5c3')][_0x34c455][_0x564011('0x1779')]&&delete _0x13e455[_0x564011('0xbf8')][_0x564011('0xc78')][_0x13e455[_0x564011('0xbf8')]['formData'][_0x564011('0x281c')][_0x3afcdd]['elements'][_0x34c455][_0x564011('0x1779')]['id']];}}}});}}}function _0x4bd8b9(_0x388ceb){var _0x38bff2=_0x14d192;if(_0x86640f()[_0x38bff2('0x1c7')](_0x388ceb))return![];try{JSON[_0x38bff2('0x399')](_0x388ceb);}catch(_0x18c23c){return![];}return!![];}function _0x4497f9(_0x588658,_0x58608b){var _0x241029=_0x14d192;try{_0x128ab5['$parent'][_0x241029('0x223d')][_0x241029('0x223d')]['vm'][_0x241029('0x110d')](_0x58608b);}catch(_0x82c58f){_0x16f1e8['error']({'title':_0x241029('0xd32'),'msg':_0x241029('0x30b')});}}function _0x2ee2aa(_0x518dbf){var _0x5e3ca7=_0x14d192,_0x4fb4df=_0x18dbcd[_0x5e3ca7('0xca9')]();return _0x13e455[_0x5e3ca7('0xbf8')]['sendUnpauseOnSubmit']?_0x281af6[_0x5e3ca7('0x1775')][_0x5e3ca7('0xa8e')]({'id':_0x518dbf['id']})['$promise'][_0x5e3ca7('0x21ad')](function(){var _0x13325b=_0x5e3ca7;_0x4fb4df[_0x13325b('0x8ac')]();})[_0x5e3ca7('0x1c1d')](function(){var _0x345b55=_0x5e3ca7;console[_0x345b55('0x6fb')](_0x345b55('0xc8e')),_0x4fb4df['resolve']();}):_0x4fb4df['resolve'](),_0x4fb4df[_0x5e3ca7('0x71b')];}function _0x1f4d24(_0xe3280a,_0x5185f5){var _0x55772f=_0x14d192,_0xabfd83=[],_0x35e890=[],_0x1d4320=_0x3d708d[_0x55772f('0x15ed')]();_0x2ee2aa(_0x1d4320)[_0x55772f('0x21ad')](function(){var _0x3f45c8=_0x55772f;return _0x281af6[_0x3f45c8('0x1ca9')][_0x3f45c8('0x186f')]({'starttime':_0x13e455[_0x3f45c8('0x92e')],'membername':_0x13e455[_0x3f45c8('0xdc2')]&&_0x13e455[_0x3f45c8('0xdc2')][_0x3f45c8('0x2505')]?_0x13e455[_0x3f45c8('0xdc2')]['membername']:_0x1d4320['name'],'calleridname':_0x13e455[_0x3f45c8('0xdc2')]&&_0x13e455[_0x3f45c8('0xdc2')][_0x3f45c8('0xec8')]?_0x13e455[_0x3f45c8('0xdc2')]['calleridname']:undefined,'calleridnum':_0x13e455['call']&&_0x13e455[_0x3f45c8('0xdc2')][_0x3f45c8('0x5d4')]?_0x13e455[_0x3f45c8('0xdc2')][_0x3f45c8('0x5d4')]:undefined,'queue':_0x13e455[_0x3f45c8('0xdc2')]&&_0x13e455['call'][_0x3f45c8('0xbdd')]?_0x13e455['call'][_0x3f45c8('0xbdd')]:undefined,'uniqueid':_0x13e455[_0x3f45c8('0xdc2')]&&_0x13e455[_0x3f45c8('0xdc2')]['uniqueid']?_0x13e455[_0x3f45c8('0xdc2')][_0x3f45c8('0x968')]:undefined,'VoiceQueueId':_0x13e455[_0x3f45c8('0xdc2')]&&_0x13e455[_0x3f45c8('0xdc2')][_0x3f45c8('0xd2f')]?_0x13e455[_0x3f45c8('0xdc2')][_0x3f45c8('0xd2f')]:undefined,'ProjectId':_0x13e455[_0x3f45c8('0xbf8')]&&_0x13e455[_0x3f45c8('0xbf8')]['id']?_0x13e455[_0x3f45c8('0xbf8')]['id']:undefined,'projectname':_0x13e455[_0x3f45c8('0xbf8')]&&_0x13e455['project'][_0x3f45c8('0x19fe')]?_0x13e455[_0x3f45c8('0xbf8')][_0x3f45c8('0x19fe')]:undefined,'ContactId':_0x13e455[_0x3f45c8('0x150c')]&&_0x13e455['contact']['id']?_0x13e455[_0x3f45c8('0x150c')]['id']:undefined,'completed':_0x5185f5})[_0x3f45c8('0x1376')];})[_0x55772f('0x21ad')](function(_0x7853fa){var _0x59bc86=_0x55772f;if(_0x7853fa){var _0x1a722d=_0x13e455['getResponseSheetHeaders'](),_0x2383f4=_0x13e455[_0x59bc86('0xee7')](),_0x4e13c8=_0x13e455[_0x59bc86('0x9c8')]();for(var _0x120767=0x0;_0x120767<_0x1a722d['length'];_0x120767+=0x1){if(!_0x86640f()[_0x59bc86('0x23aa')](String(_0x2383f4[_0x120767]))){try{_0xabfd83[_0x59bc86('0x206c')](_0x281af6[_0x59bc86('0x18f7')][_0x59bc86('0x186f')]({'question':_0x1a722d[_0x120767],'answer':_0x4e13c8[_0x120767][_0x59bc86('0x7fa')]===_0x59bc86('0x2457')?_0x1088bc()(String(_0x2383f4[_0x120767]))[_0x59bc86('0x153')](_0x59bc86('0x21dd')):_0x4e13c8[_0x120767][_0x59bc86('0x7fa')]===_0x59bc86('0x7a0')?_0x1088bc()(String(_0x2383f4[_0x120767]))[_0x59bc86('0x153')](_0x59bc86('0x5f7')):String(_0x2383f4[_0x120767]),'questionId':_0x4e13c8[_0x120767]['id'],'membername':_0x13e455['call']&&_0x13e455['call']['membername']?_0x13e455[_0x59bc86('0xdc2')][_0x59bc86('0x2505')]:_0x1d4320[_0x59bc86('0x19fe')],'calleridname':_0x13e455['call']&&_0x13e455[_0x59bc86('0xdc2')]['calleridname']?_0x13e455[_0x59bc86('0xdc2')][_0x59bc86('0xec8')]:undefined,'calleridnum':_0x13e455[_0x59bc86('0xdc2')]&&_0x13e455[_0x59bc86('0xdc2')]['calleridnum']?_0x13e455[_0x59bc86('0xdc2')][_0x59bc86('0x5d4')]:undefined,'queue':_0x13e455[_0x59bc86('0xdc2')]&&_0x13e455[_0x59bc86('0xdc2')]['queue']?_0x13e455[_0x59bc86('0xdc2')][_0x59bc86('0xbdd')]:undefined,'uniqueid':_0x13e455['call']&&_0x13e455['call'][_0x59bc86('0x968')]?_0x13e455[_0x59bc86('0xdc2')][_0x59bc86('0x968')]:undefined,'SessionId':_0x7853fa['id'],'ProjectId':_0x13e455['project']['id'],'projectname':_0x13e455[_0x59bc86('0xbf8')][_0x59bc86('0x19fe')]}));}catch(_0x2705f4){console['error'](_0x59bc86('0x1ea0'),_0x2705f4);}var _0x44c1d8=String(_0x2383f4[_0x120767])[_0x59bc86('0x1af5')](';');for(var _0x7ed929=0x0;_0x7ed929<_0x44c1d8[_0x59bc86('0x577')];_0x7ed929+=0x1){var _0x3c26a4=_0x44c1d8[_0x7ed929][_0x59bc86('0x2078')]();try{_0x35e890[_0x59bc86('0x206c')](_0x281af6[_0x59bc86('0xf15')][_0x59bc86('0x186f')]({'question':_0x1a722d[_0x120767],'questionId':_0x4e13c8[_0x120767]['id'],'answer':_0x4e13c8[_0x120767][_0x59bc86('0x7fa')]===_0x59bc86('0x2457')?_0x1088bc()(_0x3c26a4)[_0x59bc86('0x153')](_0x59bc86('0x21dd')):_0x4e13c8[_0x120767][_0x59bc86('0x7fa')]===_0x59bc86('0x7a0')?_0x1088bc()(_0x3c26a4)[_0x59bc86('0x153')](_0x59bc86('0x5f7')):_0x3c26a4,'membername':_0x13e455[_0x59bc86('0xdc2')]&&_0x13e455[_0x59bc86('0xdc2')][_0x59bc86('0x2505')]?_0x13e455[_0x59bc86('0xdc2')][_0x59bc86('0x2505')]:_0x1d4320[_0x59bc86('0x19fe')],'calleridname':_0x13e455[_0x59bc86('0xdc2')]&&_0x13e455[_0x59bc86('0xdc2')][_0x59bc86('0xec8')]?_0x13e455[_0x59bc86('0xdc2')][_0x59bc86('0xec8')]:undefined,'calleridnum':_0x13e455[_0x59bc86('0xdc2')]&&_0x13e455[_0x59bc86('0xdc2')][_0x59bc86('0x5d4')]?_0x13e455[_0x59bc86('0xdc2')][_0x59bc86('0x5d4')]:undefined,'queue':_0x13e455[_0x59bc86('0xdc2')]&&_0x13e455[_0x59bc86('0xdc2')][_0x59bc86('0xbdd')]?_0x13e455[_0x59bc86('0xdc2')]['queue']:undefined,'uniqueid':_0x13e455[_0x59bc86('0xdc2')]&&_0x13e455[_0x59bc86('0xdc2')][_0x59bc86('0x968')]?_0x13e455[_0x59bc86('0xdc2')][_0x59bc86('0x968')]:undefined,'SessionId':_0x7853fa['id'],'ProjectId':_0x13e455[_0x59bc86('0xbf8')]['id'],'projectname':_0x13e455[_0x59bc86('0xbf8')][_0x59bc86('0x19fe')]}));}catch(_0x1073a8){console['error'](_0x59bc86('0x718'),_0x1073a8);}}}}}return _0x18dbcd[_0x59bc86('0x1ba7')](_0xabfd83)[_0x59bc86('0x21ad')](function(){var _0x22e28f=_0x59bc86;return _0x18dbcd[_0x22e28f('0x1ba7')](_0x35e890)[_0x22e28f('0x21ad')](function(){return _0x7853fa;});});})[_0x55772f('0x21ad')](function(_0x21c7eb){var _0xda6cff=_0x55772f;_0x21c7eb?_0xe3280a[_0xda6cff('0x8ac')](!![]):_0xe3280a[_0xda6cff('0x37a')]();})[_0x55772f('0x1c1d')](function(_0xa86e55){var _0x559877=_0x55772f;if(_0xa86e55[_0x559877('0x11c2')]&&_0xa86e55[_0x559877('0x11c2')][_0x559877('0x1a69')]&&_0xa86e55[_0x559877('0x11c2')][_0x559877('0x1a69')][_0x559877('0x577')]){_0x13e455[_0x559877('0x1a69')]=_0xa86e55[_0x559877('0x11c2')][_0x559877('0x1a69')]||[{'message':_0xa86e55[_0x559877('0x174f')](),'type':_0x559877('0x1163')}];for(var _0x5b83a1=0x0;_0x5b83a1<_0xa86e55['data'][_0x559877('0x1a69')][_0x559877('0x577')];_0x5b83a1+=0x1){_0x16f1e8['error']({'title':_0xa86e55[_0x559877('0x11c2')][_0x559877('0x1a69')][_0x5b83a1]['type'],'msg':_0xa86e55['data']['errors'][_0x5b83a1][_0x559877('0x1224')]});}}else _0x16f1e8[_0x559877('0x2092')]({'title':_0xa86e55['status']?_0x559877('0x22d')+_0xa86e55[_0x559877('0x209')]+_0x559877('0xa99')+_0xa86e55[_0x559877('0x1808')]:'api.contact.save','msg':_0xa86e55['data']?JSON[_0x559877('0x25e')](_0xa86e55[_0x559877('0x11c2')][_0x559877('0x1224')]):_0xa86e55[_0x559877('0x174f')]()});_0xe3280a[_0x559877('0x37a')]();});}function _0x4f3108(_0x363e7a){var _0x5a7ab3=_0x14d192;try{_0x128ab5[_0x5a7ab3('0x223d')][_0x5a7ab3('0x223d')][_0x5a7ab3('0x223d')]['vm'][_0x5a7ab3('0x1831')](_0x363e7a);}catch(_0x19b9e7){_0x16f1e8[_0x5a7ab3('0x2092')]({'title':'ERROR\x20REMOVE\x20TAB','msg':_0x5a7ab3('0x2311')});}}function _0x5a6e30(_0x3196d8,_0xa770a){var _0x37ac55=_0x14d192,_0x1b7d12=_0x18dbcd['defer']();if(_0xa770a){var _0x45faf4=_0x396b26[_0x37ac55('0xa33')]()[_0x37ac55('0x4b4')](_0x37ac55('0x10b2'))[_0x37ac55('0x226d')]('')[_0x37ac55('0x7a7')](_0x37ac55('0x1ce8'))[_0x37ac55('0x1e6d')](_0x3196d8)['ok'](_0x37ac55('0x32b'))['cancel']('NO');_0x396b26[_0x37ac55('0x853')](_0x45faf4)['then'](function(){_0x1f4d24(_0x1b7d12,![]);},function(){var _0x5555a1=_0x37ac55;_0x1b7d12[_0x5555a1('0x8ac')]();});}else _0x1f4d24(_0x1b7d12,!![]);return _0x1b7d12[_0x37ac55('0x71b')][_0x37ac55('0x21ad')](function(_0x44e99f){var _0x24531c=_0x37ac55;_0x44e99f&&(_0x16f1e8[_0x24531c('0xdb1')]({'title':'Session\x20saved','msg':_0x24531c('0x2312')}),_0x4f3108(_0x13e455['tab']));})['catch'](function(){var _0x535e51=_0x37ac55;_0x16f1e8[_0x535e51('0x2092')]({'title':_0x535e51('0x1a0e'),'msg':_0x535e51('0x155a')});});}function _0x29ea5c(){var _0xbcd77d=_0x14d192;return _0x4bc0ea[_0xbcd77d('0x1480')](_0x13e455[_0xbcd77d('0xbf8')][_0xbcd77d('0x244a')],_0x13e455[_0xbcd77d('0xbf8')][_0xbcd77d('0xc78')],![]);}function _0x1e634f(){var _0x2e49b3=_0x14d192;return _0x4bc0ea[_0x2e49b3('0xee7')](_0x13e455[_0x2e49b3('0xbf8')][_0x2e49b3('0x244a')],_0x13e455['project'][_0x2e49b3('0xc78')]);}function _0x2449f1(){var _0x1c6d8a=_0x14d192;return _0x4bc0ea[_0x1c6d8a('0x79')](_0x13e455['project'][_0x1c6d8a('0x244a')],![]);}function _0x1b9a20(){var _0x187117=_0x14d192;return _0x4bc0ea[_0x187117('0x9c8')](_0x13e455[_0x187117('0xbf8')][_0x187117('0x244a')],_0x13e455[_0x187117('0xbf8')][_0x187117('0xc78')]);}}const _0x273c30=_0x1f26a0;_0x14f479[_0x3877e3('0x1a81')]=['$translate',_0x3877e3('0x1908'),_0x3877e3('0xba7'),_0x3877e3('0xccd'),'Auth'];function _0x14f479(_0x123327,_0x177a06,_0x233bfc,_0x1b5d5d,_0x5d21fc){var _0x5de287=_0x3877e3,_0x4da8a7=this;_0x4da8a7[_0x5de287('0xba7')]=_0x233bfc,_0x4da8a7[_0x5de287('0x1775')]=_0x5d21fc[_0x5de287('0x15ed')]();function _0x202848(){return function(_0x7fc1bf){var _0x268fbb=a0_0x2e7f;if(_0x7fc1bf[_0x268fbb('0x209')]===0x194)_0x177a06['info']({'title':_0x123327['instant'](_0x268fbb('0x61b')),'msg':_0x123327['instant']('DASHBOARDS.ACCEPT_ELSEWHERE')});else{if(_0x7fc1bf[_0x268fbb('0x11c2')]&&_0x7fc1bf['data'][_0x268fbb('0x1a69')]&&_0x7fc1bf[_0x268fbb('0x11c2')][_0x268fbb('0x1a69')][_0x268fbb('0x577')]){_0x4da8a7[_0x268fbb('0x1a69')]=_0x7fc1bf[_0x268fbb('0x11c2')][_0x268fbb('0x1a69')]||[{'message':_0x7fc1bf[_0x268fbb('0x174f')](),'type':'api.openchannelMessage.accept'}];for(var _0x2e08f3=0x0;_0x2e08f3<_0x7fc1bf[_0x268fbb('0x11c2')][_0x268fbb('0x1a69')][_0x268fbb('0x577')];_0x2e08f3+=0x1){_0x177a06[_0x268fbb('0x2092')]({'title':_0x7fc1bf[_0x268fbb('0x11c2')][_0x268fbb('0x1a69')][_0x2e08f3]['type'],'msg':_0x7fc1bf[_0x268fbb('0x11c2')][_0x268fbb('0x1a69')][_0x2e08f3]['message']});}}else _0x177a06[_0x268fbb('0x2092')]({'title':_0x7fc1bf[_0x268fbb('0x209')]?_0x268fbb('0x22d')+_0x7fc1bf[_0x268fbb('0x209')]+'\x20-\x20'+_0x7fc1bf['statusText']:'api.openchannelMessage.accept','msg':_0x7fc1bf[_0x268fbb('0x11c2')]?JSON[_0x268fbb('0x25e')](_0x7fc1bf['data'][_0x268fbb('0x1224')]):_0x7fc1bf[_0x268fbb('0x174f')]()});}};}function _0x2572db(){var _0x22e812=_0x5de287;if(_0x1b5d5d[_0x4da8a7[_0x22e812('0xba7')][_0x22e812('0x27b5')]+'Message'])return _0x1b5d5d[_0x4da8a7['notification'][_0x22e812('0x27b5')]+_0x22e812('0x1ee8')]['accept']({'id':_0x4da8a7[_0x22e812('0xba7')]['id'],'UserId':_0x4da8a7[_0x22e812('0x1775')]['id'],'manual':!![]})[_0x22e812('0x1376')][_0x22e812('0x21ad')](function(){var _0x24c4ea=_0x22e812;_0x177a06[_0x24c4ea('0xdb1')]({'title':_0x24c4ea('0x182c'),'msg':_0x24c4ea('0x163e')});})['catch'](_0x202848());else _0x177a06[_0x22e812('0x2092')]({'title':_0x22e812('0xbd7'),'msg':_0x22e812('0x1d2f')+_0x4da8a7[_0x22e812('0xba7')][_0x22e812('0x27b5')]+_0x22e812('0x1ee8')});}function _0x325a93(){var _0x3e6e31=_0x5de287;if(_0x1b5d5d[_0x4da8a7['notification']['channel']+_0x3e6e31('0x1ee8')])return _0x1b5d5d[_0x4da8a7[_0x3e6e31('0xba7')]['channel']+_0x3e6e31('0x1ee8')][_0x3e6e31('0x37a')]({'id':_0x4da8a7['notification']['id'],'UserId':_0x4da8a7[_0x3e6e31('0x1775')]['id']})[_0x3e6e31('0x1376')]['then'](function(){var _0x320d98=_0x3e6e31;_0x177a06[_0x320d98('0xdb1')]({'title':_0x320d98('0x18f3'),'msg':'Message\x20has\x20been\x20rejected!'});})[_0x3e6e31('0x1c1d')](_0x202848());else _0x177a06['error']({'title':_0x3e6e31('0xbd7'),'msg':_0x3e6e31('0xfd2')+_0x4da8a7[_0x3e6e31('0xba7')][_0x3e6e31('0x27b5')]+'Message'});}_0x4da8a7[_0x5de287('0x134f')]=_0x2572db,_0x4da8a7[_0x5de287('0x37a')]=_0x325a93;}const _0x8a0fc0=_0x14f479;function _0x195aae(){var _0x5627e2=this;function _0x49cdf5(_0x5c4fe3){var _0x4d8204=a0_0x2e7f;_0x5627e2[_0x4d8204('0x12e1')]=_0x5c4fe3,_0x5627e2[_0x4d8204('0x12e1')]&&(_0x5627e2[_0x4d8204('0x12e1')][_0x4d8204('0x15b4')]=!![],_0x5627e2['html']=_0x5627e2[_0x4d8204('0x12e1')][_0x4d8204('0x8b')]);}_0x5627e2['init']=_0x49cdf5;}const _0x106dd9=_0x195aae,_0x288b8a=_0x398308['p']+'src/js/modules/main/apps/dashboards/views/general/agent/agent.general.html/agent.general-[chunkhash].html';_0x3ee447[_0x3877e3('0x1a81')]=['$stateProvider'];function _0x3ee447(_0x178041){var _0xf1d353=_0x3877e3;_0x178041[_0xf1d353('0x27e')](_0xf1d353('0x143c'),{'url':'/general','views':{'content@app':{'templateProvider':[_0xf1d353('0x114e'),_0xf1d353('0x2ea'),_0xf1d353('0x15bc'),function _0x3f3cf3(_0x3ff29a,_0x5323b4,_0x43f86e){var _0x555837=_0xf1d353;return _0x43f86e[_0x555837('0x1add')]()?_0x5323b4[_0x555837('0x83a')](_0x288b8a,_0x3ff29a):_0x5323b4[_0x555837('0x83a')](_0x7d1d80,_0x3ff29a);}],'controllerProvider':[_0xf1d353('0x15bc'),function _0x3e2e8d(_0xe44efd){var _0x4f51f2=_0xf1d353;return _0xe44efd['isAgent']()?_0x4f51f2('0x6a2'):_0x4f51f2('0xd6e');}]}},'resolve':{'globalUserLists':[_0xf1d353('0x354'),_0xf1d353('0x15bc'),function _0x3d120e(_0x1f0751,_0x14240f){var _0x1dee22=_0xf1d353;return _0x1f0751[_0x1dee22('0x8ac')](_0x1dee22('0x4ac'),{'id':_0x14240f[_0x1dee22('0x15ed')]()['id'],'sort':_0x1dee22('0x19fe'),'nolimit':!![]});}],'globalLists':[_0xf1d353('0x354'),function _0x1f4876(_0x2561ee){var _0x4d7df5=_0xf1d353;return _0x2561ee['resolve'](_0x4d7df5('0x265c'),{'sort':_0x4d7df5('0x19fe'),'nolimit':!![]});}],'globalTags':[_0xf1d353('0x354'),function _0x286870(_0xd3a9f4){var _0x31343a=_0xf1d353;return _0xd3a9f4[_0x31343a('0x8ac')](_0x31343a('0x995'),{'sort':'name','nolimit':!![]});}],'globalCompanies':[_0xf1d353('0x354'),function _0x41400f(_0x51ba08){var _0x239cf3=_0xf1d353;return _0x51ba08[_0x239cf3('0x8ac')]('cmCompany@get',{'sort':_0x239cf3('0x19fe'),'nolimit':!![]});}]},'authenticate':!![],'bodyClass':'dashboards'});}angular[_0x3877e3('0x20d5')](_0x3877e3('0x143c'),['ngMaterialDateRangePicker',_0x3877e3('0x1d97')])[_0x3877e3('0x13')](_0x3ee447)[_0x3877e3('0x1d5a')]('AgentDashboardGeneralController',_0x352a5f)[_0x3877e3('0x1551')](_0x3877e3('0x2113'),_0x236045)[_0x3877e3('0x1c0c')](_0x3877e3('0x1576'),_0x48731f)[_0x3877e3('0x1c0c')](_0x3877e3('0x22b5'),_0x1a6a7d)[_0x3877e3('0x207c')](_0x3877e3('0x1580'),_0x3080a2)['controller'](_0x3877e3('0x1386'),_0x14a7e5)['controller'](_0x3877e3('0x1d69'),_0x2bc874)[_0x3877e3('0x1d5a')]('DisposeCallDialogController',_0x176646)['controller']('RescheduleCallDialogController',_0x3bb804)[_0x3877e3('0x1d5a')](_0x3877e3('0x1a4a'),_0x544faa)[_0x3877e3('0x1d5a')](_0x3877e3('0x20b2'),_0x174c0)[_0x3877e3('0x1d5a')]('AgentHomeAbandonedBullController',_0x293020)[_0x3877e3('0x1d5a')](_0x3877e3('0x1030'),_0x204d05)[_0x3877e3('0x1d5a')](_0x3877e3('0x2610'),_0x3225a0)[_0x3877e3('0x1d5a')](_0x3877e3('0x157d'),_0x5e469b)[_0x3877e3('0x1d5a')](_0x3877e3('0x276c'),_0x53baef)[_0x3877e3('0x1d5a')](_0x3877e3('0x24ad'),_0x40de95)['controller'](_0x3877e3('0x113c'),_0x49c216)[_0x3877e3('0x1d5a')]('AgentHomeDashboardBullController',_0x49935c)['controller']('AgentHomeDashboardMultiChannelChatController',_0x44ec73)[_0x3877e3('0x1d5a')](_0x3877e3('0x11a5'),_0x554499)['controller'](_0x3877e3('0xb09'),_0x4ffe07)[_0x3877e3('0x1d5a')](_0x3877e3('0x5ec'),_0x53bf59)[_0x3877e3('0x1d5a')](_0x3877e3('0x16fb'),_0x423b9d)[_0x3877e3('0x1d5a')](_0x3877e3('0x2065'),_0x3ce5fb)[_0x3877e3('0x1d5a')]('AgentHomeDashboardMultiChannelWhatsappController',_0x407a88)[_0x3877e3('0x1d5a')](_0x3877e3('0x285f'),_0x18a015)['controller'](_0x3877e3('0xa95'),_0x2b4fa9)[_0x3877e3('0x1d5a')](_0x3877e3('0xefd'),_0x54007a)[_0x3877e3('0x1d5a')]('AgentHomeOpenchannelController',_0x36815c)[_0x3877e3('0x1d5a')]('AgentHomePluginsController',_0x4daf89)[_0x3877e3('0x1d5a')](_0x3877e3('0x1dfb'),_0x11aad0)[_0x3877e3('0x1d5a')](_0x3877e3('0x1be2'),_0x3decae)['controller'](_0x3877e3('0x241a'),_0x288b7f)[_0x3877e3('0x1d5a')](_0x3877e3('0xf5a'),_0x400c86)[_0x3877e3('0x1d5a')]('AgentHomeVoiceDetailsController',_0x1db868)[_0x3877e3('0x1d5a')](_0x3877e3('0x2404'),_0x3860d8)['controller']('AgentGeneralIframeController',_0x44ddd7)['directive'](_0x3877e3('0x2573'),_0x8befa5)[_0x3877e3('0x1503')](_0x3877e3('0x1a20'),_0x44cfcf)['controller'](_0x3877e3('0xbd1'),_0x388fde)[_0x3877e3('0x1551')](_0x3877e3('0x2100'),_0x5a28b0)[_0x3877e3('0x1d5a')](_0x3877e3('0x25a5'),_0x1bfe95)[_0x3877e3('0x1d5a')](_0x3877e3('0xb47'),_0x360486)[_0x3877e3('0x1d5a')](_0x3877e3('0x892'),_0x496d81)[_0x3877e3('0x1d5a')]('ComposeSmsInteractionDialogController',_0x4d5305)[_0x3877e3('0x1d5a')](_0x3877e3('0x848'),_0x79d4f7)[_0x3877e3('0x1d5a')](_0x3877e3('0x256e'),_0x4af9bd)['controller']('TagInteractionDialogController',_0x1f3a9a)[_0x3877e3('0x1d5a')](_0x3877e3('0x592'),_0x24c280)[_0x3877e3('0x1d5a')](_0x3877e3('0x117e'),_0x273c30)['controller']('NotificationController',_0x8a0fc0)[_0x3877e3('0x1d5a')](_0x3877e3('0xdec'),_0x106dd9);const _0x1fb5eb=_0x398308['p']+'src/js/modules/main/apps/dashboards/views/custom/custom.html/custom-[chunkhash].html';_0x1e36dc['$inject']=[_0x3877e3('0xa9f'),'$interval','$scope','api',_0x3877e3('0x25d8'),_0x3877e3('0x15bc'),_0x3877e3('0x2b6'),_0x3877e3('0x758'),_0x3877e3('0xab4')];function _0x1e36dc(_0x784b8b,_0x2248f3,_0x4a1fa8,_0x36fdfa,_0xc467d7,_0x1524c8,_0x867e17,_0x175734,_0x169c87){var _0x2a9311=_0x3877e3,_0x203e87=this;_0x203e87[_0x2a9311('0x123f')]=_0x1524c8[_0x2a9311('0x15ed')](),_0x203e87[_0x2a9311('0x758')]=_0x175734,_0x203e87[_0x2a9311('0xab4')]=_0x169c87&&_0x169c87['count']==0x1?_0x169c87['rows'][0x0]:null,_0x203e87[_0x2a9311('0x5ed')]=_0x1524c8[_0x2a9311('0x1778')](_0x203e87[_0x2a9311('0xab4')]?_0x203e87[_0x2a9311('0xab4')][_0x2a9311('0x5ed')]:null),_0x203e87[_0x2a9311('0x261b')]={},_0x203e87[_0x2a9311('0x2b6')]=_0x867e17&&_0x867e17[_0x2a9311('0x205f')]?_0x867e17:{'count':0x0,'rows':[]},_0x203e87[_0x2a9311('0x1dce')]=_0x867e17&&_0x867e17['count']?_0x86640f()[_0x2a9311('0x26c3')](_0x867e17[_0x2a9311('0x1b33')],'id'):[],_0x203e87[_0x2a9311('0xa07')]=_0x2248f3(function(){},0x3e8),_0x203e87[_0x2a9311('0x23c7')]=_0x16da7e,_0x203e87['goToEdit']=_0x26fab9,_0xc467d7[_0x2a9311('0x1487')](_0x2a9311('0x83e'),_0x14ba76),_0x36fdfa[_0x2a9311('0xaff')][_0x2a9311('0x595')]({'id':_0x784b8b[_0x2a9311('0x171b')]['id']})[_0x2a9311('0x1376')][_0x2a9311('0x21ad')](function(_0x54aa6e){var _0x561bf5=_0x2a9311;if(_0x54aa6e)return _0x203e87[_0x561bf5('0x261b')]=_0x54aa6e,_0x203e87[_0x561bf5('0x261b')]['widgets']=[],_0x203e87[_0x561bf5('0x261b')][_0x561bf5('0x8a1')]=!![],_0x203e87[_0x561bf5('0x261b')][_0x561bf5('0x1e39')]={'enabled':![]},_0x203e87[_0x561bf5('0x261b')][_0x561bf5('0x62e')]={'enabled':![]},_0x36fdfa[_0x561bf5('0xaff')][_0x561bf5('0x1e5')]({'id':_0x203e87[_0x561bf5('0x261b')]['id']})[_0x561bf5('0x1376')];})[_0x2a9311('0x21ad')](function(_0x5400f0){var _0x3dcb66=_0x2a9311;if(_0x5400f0&&_0x5400f0[_0x3dcb66('0x205f')]&&_0x5400f0['rows'])for(var _0x38a63f=0x0;_0x38a63f<_0x5400f0['rows'][_0x3dcb66('0x577')];_0x38a63f+=0x1){_0x5400f0[_0x3dcb66('0x1b33')][_0x38a63f][_0x3dcb66('0x301')]=_0x3dcb66('0x1ab8')+_0x5400f0[_0x3dcb66('0x1b33')][_0x38a63f]['type']+_0x3dcb66('0x27d4')+_0x5400f0[_0x3dcb66('0x1b33')][_0x38a63f][_0x3dcb66('0x7fa')]+_0x3dcb66('0x1940'),_0x5400f0[_0x3dcb66('0x1b33')][_0x38a63f][_0x3dcb66('0x2b6')]=_0x203e87[_0x3dcb66('0x2b6')],_0x5400f0[_0x3dcb66('0x1b33')][_0x38a63f][_0x3dcb66('0x1dce')]=_0x203e87[_0x3dcb66('0x1dce')],_0x203e87['customDashboard'][_0x3dcb66('0x181d')][_0x3dcb66('0x206c')](_0x5400f0['rows'][_0x38a63f]);}})[_0x2a9311('0x1c1d')](function(){var _0x542f15=_0x2a9311;_0x203e87[_0x542f15('0x261b')]=undefined;});function _0x14ba76(_0x36bf77){var _0x1ebba5=_0x2a9311,_0x4b4482=_0x86640f()['find'](_0x203e87[_0x1ebba5('0x2b6')][_0x1ebba5('0x1b33')],{'id':_0x36bf77['id']});_0x4b4482&&_0x86640f()['merge'](_0x4b4482,_0x86640f()[_0x1ebba5('0xc50')](_0x36bf77,_0x86640f()['keys'](_0x4b4482)));}function _0x16da7e(){var _0x57ea46=_0x2a9311;for(var _0x571a1e=0x0;_0x571a1e<_0x203e87[_0x57ea46('0x261b')]['widgets'][_0x57ea46('0x577')];_0x571a1e+=0x1){_0x203e87[_0x57ea46('0x261b')][_0x57ea46('0x181d')][_0x571a1e][_0x57ea46('0x1dce')]=_0x203e87['voiceQueuesSelected'];}}function _0x26fab9(){var _0x291880=_0x2a9311;_0x784b8b['go'](_0x291880('0xb87'),{'id':_0x203e87[_0x291880('0x261b')]['id'],'tab':0x1});}_0x4a1fa8[_0x2a9311('0x1723')](_0x2a9311('0x1210'),function(){var _0x4d064e=_0x2a9311;_0xc467d7[_0x4d064e('0x16cc')](_0x4d064e('0x83e')),_0x203e87[_0x4d064e('0xa07')]&&_0x2248f3[_0x4d064e('0x3b5')](_0x203e87['interval']);});}const _0x3d82d3=_0x1e36dc;_0x1b1b2e[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c')];function _0x1b1b2e(_0x54e2d7){var _0x29a89e=_0x3877e3;_0x54e2d7[_0x29a89e('0x27e')](_0x29a89e('0x12c6'),{'url':_0x29a89e('0xaa4'),'views':{'content@app':{'templateUrl':_0x1fb5eb,'controller':_0x29a89e('0x651')}},'resolve':{'voiceQueues':[_0x29a89e('0x354'),_0x29a89e('0x15bc'),function _0x3f6604(_0x1d7373,_0x2763ee){var _0x46055d=_0x29a89e,_0x4a7cef,_0xb6b6d2=_0x2763ee['hasRole'](_0x46055d('0x1bd8'))?_0x1d7373[_0x46055d('0x8ac')](_0x46055d('0x10bb'),{'fields':_0x46055d('0x1aa8'),'nolimit':!![]}):_0x1d7373[_0x46055d('0x8ac')](_0x46055d('0x52f'),{'id':_0x2763ee['getCurrentUser']()['userProfileId'],'section':_0x46055d('0x1c14'),'mergeResources':!![],'fields':_0x46055d('0x1aa8'),'channel':_0x46055d('0x8ed'),'nolimit':!![]});return _0xb6b6d2['then'](function(_0x232d3b){var _0x503f40=_0x46055d;return _0x4a7cef=_0x232d3b,_0x1d7373[_0x503f40('0x8ac')](_0x503f40('0xa73'));})[_0x46055d('0x21ad')](function(_0x583159){var _0x2034f1=_0x46055d;if(_0x583159)for(var _0x351ca8=0x0,_0x5cf734;_0x351ca8<_0x583159[_0x2034f1('0x1b33')][_0x2034f1('0x577')];_0x351ca8+=0x1){_0x5cf734=_0x86640f()['find'](_0x4a7cef[_0x2034f1('0x1b33')],{'id':_0x583159[_0x2034f1('0x1b33')][_0x351ca8]['id']}),_0x5cf734&&_0x86640f()[_0x2034f1('0xd0e')](_0x5cf734,_0x86640f()[_0x2034f1('0xc50')](_0x583159[_0x2034f1('0x1b33')][_0x351ca8],['waiting',_0x2034f1('0x16f0'),_0x2034f1('0x4f6'),_0x2034f1('0x24c7'),'unmanaged',_0x2034f1('0x1f4')]));}return _0x4a7cef;});}],'userProfile':['apiResolver','Auth',function _0x3e3df0(_0x391dab,_0x1bc811){var _0x3e3249=_0x29a89e;return _0x391dab[_0x3e3249('0x8ac')](_0x3e3249('0x1e1d'),{'fields':'id,name,crudPermissions','id':_0x1bc811[_0x3e3249('0x15ed')]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x29a89e('0x15bc'),function _0x43dfd2(_0x4d1248,_0x3b764d){var _0x29a7e1=_0x29a89e;return _0x4d1248['resolve'](_0x29a7e1('0x222f'),{'fields':_0x29a7e1('0x1852'),'userProfileId':_0x3b764d['getCurrentUser']()[_0x29a7e1('0x1618')],'sectionId':0x64});}]},'authenticate':!![],'bodyClass':_0x29a89e('0x10e5')});}angular[_0x3877e3('0x20d5')]('app.dashboards.custom',[])['config'](_0x1b1b2e)[_0x3877e3('0x1d5a')](_0x3877e3('0x197c'),_0x3d82d3),_0x331b5f[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c'),_0x3877e3('0x972')];function _0x331b5f(_0x4816bb,_0x15943c){var _0x32d888=_0x3877e3;_0x4816bb['state'](_0x32d888('0x15cb'),{'abstract':!![],'url':_0x32d888('0x1002')}),_0x15943c[_0x32d888('0x20ab')](_0x32d888('0x1cff'));}angular[_0x3877e3('0x20d5')](_0x3877e3('0x15cb'),[_0x3877e3('0x240c'),'ngPassword',_0x3877e3('0xca'),_0x3877e3('0x1d76'),_0x3877e3('0x2437'),_0x3877e3('0x25c7'),_0x3877e3('0x1182'),'ngAria',_0x3877e3('0x19'),_0x3877e3('0x335'),_0x3877e3('0xc90'),'mwFormViewer',_0x3877e3('0xe2f'),_0x3877e3('0x10c'),_0x3877e3('0xf61'),'ngEmbed',_0x3877e3('0x25a2'),_0x3877e3('0x27ba'),'chart.js',_0x3877e3('0x1c54'),_0x3877e3('0x143c'),_0x3877e3('0x12c6')])[_0x3877e3('0x13')](_0x331b5f);const _0xab5076=_0x398308['p']+_0x3877e3('0x238'),_0x50b56d=_0x398308['p']+_0x3877e3('0x245e');_0x542b6f[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x13c1'),'agents',_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x542b6f(_0x4ef63f,_0xe68af2,_0x2d51f9,_0x3b86ae,_0x1597fe,_0x2574aa,_0x5a9f6a,_0x271060,_0x3a0692,_0x171fe1,_0x1eb2a4,_0x52d7ba,_0x475943,_0x3f58f4,_0x55392f,_0x4a33f9,_0x1b1002){var _0x539084=_0x3877e3,_0x54a953=this;_0x54a953['license']=_0x4a33f9,_0x54a953[_0x539084('0x21e')]=_0x1b1002,_0x54a953['currentUser']=_0x55392f[_0x539084('0x15ed')](),_0x54a953[_0x539084('0xcb5')]=_0x3a0692||{'count':0x0,'rows':[]},_0x54a953[_0x539084('0x758')]=_0x171fe1,_0x54a953['userProfileSection']=_0x1eb2a4&&_0x1eb2a4[_0x539084('0x205f')]==0x1?_0x1eb2a4[_0x539084('0x1b33')][0x0]:null,_0x54a953[_0x539084('0x5ed')]=_0x55392f[_0x539084('0x1778')](_0x54a953[_0x539084('0xab4')]?_0x54a953[_0x539084('0xab4')]['crudPermissions']:null),_0x54a953[_0x539084('0x1897')]='agents',_0x54a953['listOrder']='',_0x54a953[_0x539084('0x18cf')]=null,_0x54a953[_0x539084('0x614')]=[],_0x54a953['query']={'fields':_0x539084('0x747'),'role':_0x539084('0x2402'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x54a953[_0x539084('0x15df')]=_0x86640f()[_0x539084('0xcde')]([{'option':_0x539084('0x1f12'),'value':'0'},{'option':_0x539084('0x101e'),'value':'1'},{'option':'WebRTC','value':'2'}],function(_0x2f7f23){var _0x3c721b=_0x539084;return _0x86640f()[_0x3c721b('0x16e4')](_0x2f7f23[_0x3c721b('0x2228')],new RegExp('\x27','g'),'');}),_0x54a953[_0x539084('0xd9d')]=_0x86640f()[_0x539084('0xcde')]([{'option':'udp','value':'\x27udp\x27'},{'option':'tcp','value':'\x27tcp\x27'},{'option':'ws','value':_0x539084('0xaf8'),'ngIf':_0x539084('0x2480')},{'option':'wss','value':'\x27wss\x27','ngIf':_0x539084('0x2480')},{'option':_0x539084('0x263'),'value':_0x539084('0x20e3'),'ngIf':_0x539084('0x2480')}],function(_0x1dd843){var _0x338afe=_0x539084;return _0x86640f()[_0x338afe('0x16e4')](_0x1dd843['value'],new RegExp('\x27','g'),'');}),_0x54a953[_0x539084('0x1853')]=_0x86640f()[_0x539084('0xcde')]([{'option':_0x539084('0x2066'),'value':_0x539084('0x6e6')},{'option':'comedia','value':_0x539084('0xa')},{'option':_0x539084('0x14be'),'value':_0x539084('0x53f')},{'option':'no','value':_0x539084('0x1223')},{'option':_0x539084('0x4ba'),'value':_0x539084('0xc29')},{'option':_0x539084('0x25ee'),'value':_0x539084('0x184e')}],function(_0x4fa09d){var _0x4c269d=_0x539084;return _0x86640f()[_0x4c269d('0x16e4')](_0x4fa09d[_0x4c269d('0x2228')],new RegExp('\x27','g'),'');}),_0x54a953[_0x539084('0x179c')]=_0x86640f()[_0x539084('0xcde')]([{'option':_0x539084('0xa58'),'value':'\x27friend\x27'},{'option':_0x539084('0x6e4'),'value':_0x539084('0x50c')},{'option':'Peer','value':'\x27peer\x27'}],function(_0x80b867){var _0x3797a7=_0x539084;return _0x86640f()[_0x3797a7('0x16e4')](_0x80b867['value'],new RegExp('\x27','g'),'');}),_0x54a953[_0x539084('0x26d9')]=_0x86640f()['keyBy']([{'option':_0x539084('0x38c'),'value':_0x539084('0x1ff9')},{'option':'alaw','value':'\x27alaw\x27'},{'option':_0x539084('0xb95'),'value':_0x539084('0x1e90')},{'option':_0x539084('0xdd8'),'value':_0x539084('0x1f15')},{'option':_0x539084('0x1aa5'),'value':'\x27g729\x27'},{'option':'opus','value':_0x539084('0x81f')},{'option':'h264','value':_0x539084('0x76f')}],function(_0x18a11c){var _0x54e35c=_0x539084;return _0x86640f()[_0x54e35c('0x16e4')](_0x18a11c[_0x54e35c('0x2228')],new RegExp('\x27','g'),'');}),_0x54a953[_0x539084('0x13cd')]=_0x86640f()[_0x539084('0xcde')]([{'option':_0x539084('0x1fc6'),'value':_0x539084('0x53f')},{'option':'No','value':_0x539084('0x1223')},{'option':_0x539084('0x342'),'value':'\x27always\x27'}],function(_0x36338d){var _0x3a22b1=_0x539084;return _0x86640f()[_0x3a22b1('0x16e4')](_0x36338d['value'],new RegExp('\x27','g'),'');}),_0x54a953[_0x539084('0x1143')]=_0x86640f()[_0x539084('0xcde')]([{'option':'Inactive','value':'\x27\x27'},{'option':'wav','value':'\x27wav\x27'},{'option':'wav49','value':_0x539084('0x241d')},{'option':'gsm','value':'\x27gsm\x27'}],function(_0x5f617c){var _0x5a319d=_0x539084;return _0x86640f()['replace'](_0x5f617c[_0x5a319d('0x2228')],new RegExp('\x27','g'),'');}),_0x54a953['editstate']=_0x3160db,_0x54a953['teamadddialog']=_0x77b91f,_0x54a953[_0x539084('0x2593')]=_0x3b4cf4,_0x54a953[_0x539084('0xdb1')]=_0x35e9cd,_0x54a953['getAgents']=_0x25ee3a,_0x54a953[_0x539084('0xde4')]=_0xf717ba,_0x54a953[_0x539084('0xc5f')]=_0x2aa982,_0x54a953['exportSelectedAgents']=_0x2711a2,_0x54a953['deleteSelectedAgents']=_0x1fbc0d,_0x54a953[_0x539084('0x27c5')]=_0x598103,_0x54a953[_0x539084('0x162a')]=_0x54edb5;function _0x3160db(_0x2d8401){var _0x50c0af=_0x539084;_0x2d51f9['go'](_0x50c0af('0x123d'),{'id':_0x2d8401['id'],'agent':_0x2d8401,'crudPermissions':_0x54a953[_0x50c0af('0x5ed')]});}function _0x77b91f(_0x459b79,_0x59f950){var _0x139a50=_0x539084;_0x1597fe[_0x139a50('0x853')]({'controller':_0x139a50('0x254e'),'controllerAs':'vm','templateUrl':_0xab5076,'parent':angular[_0x139a50('0x1676')](_0x2574aa['body']),'targetEvent':_0x59f950,'clickOutsideToClose':!![],'locals':{'agent':_0x459b79,'agents':_0x54a953[_0x139a50('0xcb5')]?_0x54a953[_0x139a50('0xcb5')][_0x139a50('0x1b33')]:[],'crudPermissions':_0x54a953['crudPermissions']}});}function _0x3b4cf4(_0x127400,_0x46f070){var _0x58205e=_0x539084,_0x4f99b3=_0x1597fe['confirm']()[_0x58205e('0x4b4')](_0x58205e('0x25b6')+_0x86640f()[_0x58205e('0x2159')](_0x58205e('0x2402'))+'?')[_0x58205e('0x276b')](_0x58205e('0x622')+(_0x127400[_0x58205e('0x19fe')]||_0x58205e('0x2402'))+_0x58205e('0x2135')+_0x58205e('0x25e0'))[_0x58205e('0x7a7')](_0x58205e('0x89c'))['targetEvent'](_0x46f070)['ok']('OK')[_0x58205e('0x3b5')]('CANCEL');_0x1597fe[_0x58205e('0x853')](_0x4f99b3)[_0x58205e('0x21ad')](function(){_0x2aa982(_0x127400);},function(){var _0x1d8800=_0x58205e;console[_0x1d8800('0x6fb')]('CANCEL');});}var _0x2858e3=!![],_0x3574cf=0x1;_0x4ef63f[_0x539084('0x10e8')](_0x539084('0x1948'),function(_0x274daf,_0x264003){var _0x1b5c0e=_0x539084;_0x2858e3?_0x5a9f6a(function(){_0x2858e3=![];}):(!_0x264003&&(_0x3574cf=_0x54a953[_0x1b5c0e('0x77')][_0x1b5c0e('0x2376')]),_0x274daf!==_0x264003&&(_0x54a953[_0x1b5c0e('0x77')][_0x1b5c0e('0x2376')]=0x1),!_0x274daf&&(_0x54a953[_0x1b5c0e('0x77')]['page']=_0x3574cf),_0x54a953['getAgents']());});function _0x35e9cd(_0x4be917){var _0x359a38=_0x539084;_0x54a953[_0x359a38('0xcb5')]=_0x4be917||{'count':0x0,'rows':[]};}function _0x25ee3a(){var _0x47d5f5=_0x539084;_0x54a953['query'][_0x47d5f5('0x15a5')]=(_0x54a953[_0x47d5f5('0x77')][_0x47d5f5('0x2376')]-0x1)*_0x54a953[_0x47d5f5('0x77')][_0x47d5f5('0x1f4a')],_0x55392f['hasRole'](_0x47d5f5('0x1bd8'))?_0x54a953[_0x47d5f5('0x71b')]=_0x52d7ba['user'][_0x47d5f5('0x595')](_0x54a953[_0x47d5f5('0x77')],_0x35e9cd)['$promise']:(_0x54a953['query']['id']=_0x54a953['userProfile']['id'],_0x54a953[_0x47d5f5('0x77')]['section']=_0x47d5f5('0xfed'),_0x54a953[_0x47d5f5('0x71b')]=_0x52d7ba['userProfile'][_0x47d5f5('0x321')](_0x54a953['query'],_0x35e9cd)[_0x47d5f5('0x1376')]);}function _0xf717ba(_0x35d882,_0x4be969){var _0x4b4481=_0x539084;_0x1597fe[_0x4b4481('0x853')]({'controller':_0x4b4481('0x1d41'),'controllerAs':'vm','templateUrl':_0x50b56d,'parent':angular[_0x4b4481('0x1676')](_0x2574aa[_0x4b4481('0x2452')]),'targetEvent':_0x35d882,'clickOutsideToClose':!![],'locals':{'agent':_0x4be969,'agents':_0x54a953[_0x4b4481('0xcb5')][_0x4b4481('0x1b33')],'license':_0x54a953[_0x4b4481('0x2ff')],'setting':_0x54a953[_0x4b4481('0x21e')],'crudPermissions':_0x54a953[_0x4b4481('0x5ed')]}});}function _0x2aa982(_0x4854bf){var _0x5e62bd=_0x539084;_0x52d7ba[_0x5e62bd('0x1775')][_0x5e62bd('0x1164')]({'id':_0x4854bf['id']})['$promise'][_0x5e62bd('0x21ad')](function(){var _0x3cf035=_0x5e62bd;_0x86640f()[_0x3cf035('0x16a2')](_0x54a953['agents'][_0x3cf035('0x1b33')],{'id':_0x4854bf['id']}),_0x54a953[_0x3cf035('0xcb5')][_0x3cf035('0x205f')]-=0x1,!_0x54a953[_0x3cf035('0xcb5')][_0x3cf035('0x1b33')]['length']&&_0x54a953[_0x3cf035('0x13ad')](),_0x3f58f4[_0x3cf035('0xdb1')]({'title':_0x86640f()[_0x3cf035('0x2159')](_0x3cf035('0x1a44'))+_0x3cf035('0xe64'),'msg':_0x4854bf['name']?_0x4854bf[_0x3cf035('0x19fe')]+_0x3cf035('0xb4a'):''});})[_0x5e62bd('0x1c1d')](function(_0x47239c){var _0x49650a=_0x5e62bd;if(_0x47239c[_0x49650a('0x11c2')]&&_0x47239c['data'][_0x49650a('0x1a69')]&&_0x47239c[_0x49650a('0x11c2')]['errors'][_0x49650a('0x577')]){_0x54a953[_0x49650a('0x1a69')]=_0x47239c[_0x49650a('0x11c2')][_0x49650a('0x1a69')]||[{'message':_0x47239c[_0x49650a('0x174f')](),'type':_0x49650a('0x1173')}];for(var _0x213d08=0x0;_0x213d08<_0x47239c['data'][_0x49650a('0x1a69')]['length'];_0x213d08++){_0x3f58f4['error']({'title':_0x47239c[_0x49650a('0x11c2')][_0x49650a('0x1a69')][_0x213d08][_0x49650a('0x7fa')],'msg':_0x47239c[_0x49650a('0x11c2')]['errors'][_0x213d08]['message']});}}else _0x3f58f4['error']({'title':_0x47239c[_0x49650a('0x209')]?'API:'+_0x47239c[_0x49650a('0x209')]+'\x20-\x20'+_0x47239c[_0x49650a('0x1808')]:_0x49650a('0x1173'),'msg':_0x47239c[_0x49650a('0x11c2')]?JSON['stringify'](_0x47239c[_0x49650a('0x11c2')][_0x49650a('0x1224')]):_0x47239c['message']||_0x47239c['toString']()});});}function _0x2711a2(){var _0x512e99=_0x539084,_0x52582d=angular['copy'](_0x54a953[_0x512e99('0x614')]);return _0x54a953[_0x512e99('0x614')]=[],_0x52582d;}function _0x1fbc0d(_0x30296f){var _0x384c60=_0x539084,_0x51ed93=_0x1597fe[_0x384c60('0xa33')]()['title'](_0x384c60('0xfcc'))['htmlContent'](_0x384c60('0x622')+_0x54a953['selectedAgents'][_0x384c60('0x577')]+_0x384c60('0xd74')+_0x384c60('0x25e0'))[_0x384c60('0x7a7')](_0x384c60('0x2518'))[_0x384c60('0x1e6d')](_0x30296f)['ok']('OK')['cancel'](_0x384c60('0x284b'));_0x1597fe[_0x384c60('0x853')](_0x51ed93)['then'](function(){var _0xadd233=_0x384c60;_0x54a953[_0xadd233('0x614')][_0xadd233('0x1a52')](function(_0x20d041){_0x2aa982(_0x20d041);}),_0x54a953['selectedAgents']=[];});}function _0x598103(){var _0x2c971f=_0x539084;_0x54a953[_0x2c971f('0x614')]=[];}function _0x54edb5(){var _0x3b1afd=_0x539084;_0x54a953[_0x3b1afd('0x614')]=_0x54a953['agents'][_0x3b1afd('0x1b33')];}}const _0x12458a=_0x542b6f;_0x311124['$inject']=[_0x3877e3('0x95a'),'$state',_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0xcb5'),_0x3877e3('0x2402'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),'crudPermissions'];function _0x311124(_0x16f04c,_0x3d6cbc,_0x31a0b8,_0x3cf113,_0x1bb5ad,_0x2a9f1c,_0x6881,_0x3d2d0d,_0x471738,_0x4b22de,_0x58d8ab,_0x50bcb0,_0x41ad9b,_0x240e98){var _0x516ac5=_0x3877e3,_0x157fed=this;_0x157fed[_0x516ac5('0x123f')]=_0x58d8ab[_0x516ac5('0x15ed')](),_0x157fed['errors']=[],_0x157fed[_0x516ac5('0x21e')]=_0x41ad9b,_0x157fed[_0x516ac5('0x2ff')]=_0x50bcb0,_0x157fed[_0x516ac5('0x5ed')]=_0x240e98,_0x157fed[_0x516ac5('0x126a')]={},_0x157fed[_0x516ac5('0x1432')]=_0x157fed[_0x516ac5('0x21e')]&&_0x157fed[_0x516ac5('0x21e')][_0x516ac5('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x157fed[_0x516ac5('0x4b4')]='STAFF.EDIT_AGENT',_0x157fed[_0x516ac5('0x2402')]=angular['copy'](_0x471738),_0x157fed[_0x516ac5('0xcb5')]=_0x3d2d0d,_0x157fed[_0x516ac5('0x17da')]=![];!_0x157fed[_0x516ac5('0x2402')]&&(_0x157fed[_0x516ac5('0x2402')]={'role':_0x516ac5('0x2402'),'showWebBar':'0','autointernal':!![],'type':_0x516ac5('0x1eb2'),'context':_0x516ac5('0x1961'),'phoneBarRemoteControl':!![],'phoneBarRemoteControlPort':0x26a0,'allowmessenger':!![]},_0x157fed[_0x516ac5('0x4b4')]=_0x516ac5('0x1227'),_0x157fed[_0x516ac5('0x17da')]=!![]);_0x157fed[_0x516ac5('0x1104')]=_0x1f634b,_0x157fed['saveAgent']=_0x354b6c,_0x157fed[_0x516ac5('0xc5f')]=_0xf01b5c,_0x157fed[_0x516ac5('0x279')]=_0x181bf7,_0x157fed[_0x516ac5('0x167')]=_0x3f7fc2;function _0x1f634b(){var _0x4b6933=_0x516ac5;_0x157fed[_0x4b6933('0x1a69')]=[],_0x4b22de[_0x4b6933('0x1775')][_0x4b6933('0x186f')](_0x157fed[_0x4b6933('0x2402')])[_0x4b6933('0x1376')][_0x4b6933('0x21ad')](function(_0x4629eb){var _0x57abe3=_0x4b6933;_0x157fed[_0x57abe3('0xcb5')][_0x57abe3('0xd0c')](_0x4629eb[_0x57abe3('0x3bc')]()),_0x6881[_0x57abe3('0xdb1')]({'title':_0x57abe3('0x20c9'),'msg':_0x157fed[_0x57abe3('0x2402')][_0x57abe3('0x19fe')]?_0x157fed[_0x57abe3('0x2402')][_0x57abe3('0x19fe')]+_0x57abe3('0x1694'):''}),_0x3f7fc2(_0x4629eb);})[_0x4b6933('0x1c1d')](function(_0x55a7a1){var _0x376a58=_0x4b6933;if(_0x55a7a1[_0x376a58('0x11c2')]&&_0x55a7a1['data'][_0x376a58('0x1a69')]&&_0x55a7a1[_0x376a58('0x11c2')][_0x376a58('0x1a69')][_0x376a58('0x577')]){_0x157fed[_0x376a58('0x1a69')]=_0x55a7a1[_0x376a58('0x11c2')]['errors']||[{'message':_0x55a7a1['toString'](),'type':_0x376a58('0xb90')}];for(var _0x5521c2=0x0;_0x5521c2<_0x55a7a1['data'][_0x376a58('0x1a69')][_0x376a58('0x577')];_0x5521c2+=0x1){_0x6881[_0x376a58('0x2092')]({'title':_0x55a7a1[_0x376a58('0x11c2')]['errors'][_0x5521c2]['type'],'msg':_0x55a7a1[_0x376a58('0x11c2')][_0x376a58('0x1a69')][_0x5521c2]['message']});}}else _0x6881[_0x376a58('0x2092')]({'title':_0x55a7a1['status']?_0x376a58('0x22d')+_0x55a7a1[_0x376a58('0x209')]+'\x20-\x20'+_0x55a7a1[_0x376a58('0x1808')]:_0x376a58('0xb90'),'msg':_0x55a7a1[_0x376a58('0x11c2')]?JSON[_0x376a58('0x25e')](_0x55a7a1[_0x376a58('0x11c2')][_0x376a58('0x1224')]):_0x55a7a1[_0x376a58('0x174f')]()});});}function _0x354b6c(){var _0x38e1e6=_0x516ac5;_0x157fed[_0x38e1e6('0x1a69')]=[],_0x4b22de[_0x38e1e6('0x1775')][_0x38e1e6('0x5ef')]({'id':_0x157fed['agent']['id']},_0x157fed[_0x38e1e6('0x2402')])[_0x38e1e6('0x1376')][_0x38e1e6('0x21ad')](function(_0x303be2){var _0x1e155f=_0x38e1e6,_0x4a6794=_0x86640f()[_0x1e155f('0x1d2e')](_0x157fed[_0x1e155f('0xcb5')],{'id':_0x303be2['id']});_0x4a6794&&_0x86640f()[_0x1e155f('0xd0e')](_0x4a6794,_0x86640f()[_0x1e155f('0xc50')](_0x303be2[_0x1e155f('0x3bc')](),_0x86640f()[_0x1e155f('0x223b')](_0x4a6794))),_0x6881[_0x1e155f('0xdb1')]({'title':_0x1e155f('0x1378'),'msg':_0x157fed[_0x1e155f('0x2402')][_0x1e155f('0x19fe')]?_0x157fed[_0x1e155f('0x2402')][_0x1e155f('0x19fe')]+_0x1e155f('0x2249'):''}),_0x3f7fc2(_0x303be2);})[_0x38e1e6('0x1c1d')](function(_0x17e264){var _0x39898f=_0x38e1e6;if(_0x17e264[_0x39898f('0x11c2')]&&_0x17e264['data']['errors']&&_0x17e264['data'][_0x39898f('0x1a69')]['length']){_0x157fed[_0x39898f('0x1a69')]=_0x17e264[_0x39898f('0x11c2')][_0x39898f('0x1a69')]||[{'message':_0x17e264[_0x39898f('0x174f')](),'type':_0x39898f('0x14b6')}];for(var _0x466c42=0x0;_0x466c42<_0x17e264['data']['errors'][_0x39898f('0x577')];_0x466c42++){_0x6881[_0x39898f('0x2092')]({'title':_0x17e264[_0x39898f('0x11c2')][_0x39898f('0x1a69')][_0x466c42]['type'],'msg':_0x17e264[_0x39898f('0x11c2')][_0x39898f('0x1a69')][_0x466c42]['message']});}}else _0x6881['error']({'title':_0x17e264[_0x39898f('0x209')]?_0x39898f('0x22d')+_0x17e264['status']+_0x39898f('0xa99')+_0x17e264[_0x39898f('0x1808')]:_0x39898f('0x14b6'),'msg':_0x17e264['data']?JSON[_0x39898f('0x25e')](_0x17e264[_0x39898f('0x11c2')][_0x39898f('0x1224')]):_0x17e264['toString']()});});}function _0xf01b5c(_0x432b9d){var _0x208e21=_0x516ac5;_0x157fed[_0x208e21('0x1a69')]=[];var _0x3c2be3=_0x3cf113['confirm']()[_0x208e21('0x4b4')](_0x208e21('0x196b'))[_0x208e21('0x13fb')](_0x208e21('0x23c4'))['ariaLabel'](_0x208e21('0x14b8'))['ok'](_0x208e21('0xbfd'))['cancel']('Cancel')['targetEvent'](_0x432b9d);_0x3cf113['show'](_0x3c2be3)[_0x208e21('0x21ad')](function(){var _0x3e7460=_0x208e21;_0x4b22de['user'][_0x3e7460('0x1164')]({'id':_0x157fed[_0x3e7460('0x2402')]['id']})[_0x3e7460('0x1376')]['then'](function(){var _0x11265a=_0x3e7460;_0x86640f()['remove'](_0x157fed[_0x11265a('0xcb5')],{'id':_0x157fed['agent']['id']}),_0x6881[_0x11265a('0xdb1')]({'title':_0x11265a('0x5d9'),'msg':(_0x157fed[_0x11265a('0x2402')][_0x11265a('0x19fe')]||'agent')+'\x20has\x20been\x20deleted!'}),_0x3f7fc2(_0x157fed[_0x11265a('0x2402')]);})[_0x3e7460('0x1c1d')](function(_0x55616a){var _0x322bfe=_0x3e7460;if(_0x55616a[_0x322bfe('0x11c2')]&&_0x55616a[_0x322bfe('0x11c2')]['errors']&&_0x55616a[_0x322bfe('0x11c2')][_0x322bfe('0x1a69')][_0x322bfe('0x577')]){_0x157fed[_0x322bfe('0x1a69')]=_0x55616a[_0x322bfe('0x11c2')]['errors']||[{'message':_0x55616a[_0x322bfe('0x174f')](),'type':_0x322bfe('0x213b')}];for(var _0xd1768d=0x0;_0xd1768d<_0x55616a['data'][_0x322bfe('0x1a69')]['length'];_0xd1768d++){_0x6881[_0x322bfe('0x2092')]({'title':_0x55616a['data']['errors'][_0xd1768d][_0x322bfe('0x7fa')],'msg':_0x55616a[_0x322bfe('0x11c2')][_0x322bfe('0x1a69')][_0xd1768d][_0x322bfe('0x1224')]});}}else _0x6881[_0x322bfe('0x2092')]({'title':_0x55616a[_0x322bfe('0x209')]?_0x322bfe('0x22d')+_0x55616a[_0x322bfe('0x209')]+'\x20-\x20'+_0x55616a[_0x322bfe('0x1808')]:_0x322bfe('0x213b'),'msg':_0x55616a['data']?JSON[_0x322bfe('0x25e')](_0x55616a[_0x322bfe('0x11c2')][_0x322bfe('0x1224')]):_0x55616a[_0x322bfe('0x1224')]||_0x55616a[_0x322bfe('0x174f')]()});});},function(){});}function _0x181bf7(_0x3afc82){return _0x3afc82===null?undefined:new Date(_0x3afc82);}function _0x3f7fc2(_0x5c1069){var _0x250c5e=_0x516ac5;_0x3cf113[_0x250c5e('0x1c24')](_0x5c1069);}}const _0x12e213=_0x311124;_0x4394c0['$inject']=[_0x3877e3('0x26'),_0x3877e3('0x1908')];function _0x4394c0(_0x471818,_0x37cc79){var _0x17c71c=_0x3877e3,_0x382b32=this,_0xa516c=0x8,_0x210b18=_0xa516c*0x400*0x400;_0x382b32[_0x17c71c('0x2402')]={},_0x382b32[_0x17c71c('0x5ed')],_0x382b32[_0x17c71c('0x467')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x210b18,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x382b32[_0x17c71c('0x1413')]={'flow':{}},_0x382b32[_0x17c71c('0x8c3')]=![],_0x382b32[_0x17c71c('0x20d9')]=_0x15f5a5,_0x382b32[_0x17c71c('0x12d0')]=_0x4fb7e7,_0x382b32['fileSuccess']=_0xc26f69,_0x382b32[_0x17c71c('0x1d75')]=_0x19a5d6;function _0x19a5d6(_0x24a489,_0x148f5){var _0x4fa824=_0x17c71c;_0x382b32[_0x4fa824('0x2402')]=angular[_0x4fa824('0xd75')](_0x24a489),_0x382b32[_0x4fa824('0x5ed')]=typeof _0x148f5!=='undefined'?_0x148f5:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x382b32[_0x4fa824('0x467')]['target']=_0x4fa824('0x1b19')+_0x382b32['agent']['id']+_0x4fa824('0x80d'),_0x382b32[_0x4fa824('0x2402')][_0x4fa824('0x851')]=[];}function _0x15f5a5(_0xc8656e){var _0x359635=_0x17c71c,_0x3c36a2=[_0x359635('0x14f5'),_0x359635('0x13d2')];if(!_0x86640f()[_0x359635('0xb34')](_0x3c36a2,_0xc8656e[_0x359635('0x9bb')]()))return _0x37cc79['error']({'title':'Invalid\x20extension:\x20'+_0xc8656e[_0x359635('0x9bb')](),'msg':_0x359635('0x156b')+_0x3c36a2[_0x359635('0x136')]()}),![];if(_0xc8656e[_0x359635('0x337')]>_0x210b18)return _0x37cc79[_0x359635('0x2092')]({'title':_0x359635('0x8d1'),'msg':_0x359635('0xc3a')+_0xa516c+'MB'}),![];var _0x4e6660={'id':_0xc8656e['uniqueIdentifier'],'file':_0xc8656e,'type':_0x359635('0x326')};return _0x382b32[_0x359635('0x2402')]['images'][_0x359635('0xd0c')](_0x4e6660),!![];}function _0x4fb7e7(){var _0x1256f4=_0x17c71c;_0x382b32['ngFlow'][_0x1256f4('0x1d76')][_0x1256f4('0x1dd3')][_0x1256f4('0x4d8')]={'X-Requested-With':_0x1256f4('0x24ca'),'Authorization':_0x1256f4('0x5c8')+_0x471818[_0x1256f4('0x595')](_0x1256f4('0x863'))},_0x382b32[_0x1256f4('0x1413')]['flow']['upload']();}function _0xc26f69(_0xdb0b5f){var _0x47358a=_0x17c71c;angular[_0x47358a('0x1a52')](_0x382b32['agent']['images'],function(_0x561346){var _0x2b872a=_0x47358a;if(_0x561346['id']===_0xdb0b5f[_0x2b872a('0x25f6')]){var _0xcd20da=new FileReader();_0xcd20da['readAsDataURL'](_0x561346[_0x2b872a('0x18a9')]['file']),_0xcd20da[_0x2b872a('0x1efd')]=function(_0x315d28){var _0x4f02b3=_0x2b872a;_0x561346['url']=_0x315d28['target'][_0x4f02b3('0x8c7')];},_0x561346['type']=_0x2b872a('0x1318');}});}}const _0x4532aa=_0x4394c0;_0x536b87[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$mdDialog',_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x2402'),'setting','Auth'];function _0x536b87(_0x3bbc23,_0x55c55e,_0x22824d,_0x2d8e59,_0x2c2a13,_0x3c927e,_0x7b5034){var _0x4feea9=_0x3877e3,_0x45b634=this;_0x45b634[_0x4feea9('0x123f')]=_0x7b5034[_0x4feea9('0x15ed')](),_0x45b634[_0x4feea9('0x1a69')]=[],_0x45b634[_0x4feea9('0x21e')]=_0x3c927e,_0x45b634[_0x4feea9('0x1432')]=_0x45b634[_0x4feea9('0x21e')][_0x4feea9('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x45b634[_0x4feea9('0x2402')]=_0x2c2a13,_0x45b634[_0x4feea9('0xdd5')]='',_0x45b634['oldPassword']='',_0x45b634['savePassword']=_0x1c294,_0x45b634[_0x4feea9('0x167')]=_0x3d9165,_0x3bbc23[_0x4feea9('0x10e8')]('vm.password',function(_0x452eb0){var _0x31985a=_0x4feea9;!_0x86640f()[_0x31985a('0x1c7')](_0x45b634[_0x31985a('0x1a34')])&&(_0x452eb0===_0x45b634['oldPassword']?_0x3bbc23[_0x31985a('0x882')]['password'][_0x31985a('0xa37')](_0x31985a('0x14d8'),![]):_0x3bbc23[_0x31985a('0x882')][_0x31985a('0xdd5')][_0x31985a('0xa37')](_0x31985a('0x14d8'),!![]));});function _0x1c294(){var _0x42217d=_0x4feea9;_0x45b634['errors']=[];var _0x2792d3={'id':_0x45b634[_0x42217d('0x2402')]['id'],'newPassword':_0x45b634[_0x42217d('0xdd5')]};_0x45b634[_0x42217d('0x123f')]['id']==_0x45b634[_0x42217d('0x2402')]['id']&&(_0x2792d3[_0x42217d('0x1a34')]=_0x45b634['oldPassword']),_0x2d8e59[_0x42217d('0x1775')][_0x42217d('0xbb4')](_0x2792d3)[_0x42217d('0x1376')][_0x42217d('0x21ad')](function(){var _0x5e74dc=_0x42217d;_0x22824d['success']({'title':_0x5e74dc('0xec0')}),_0x3d9165();})[_0x42217d('0x1c1d')](function(_0x1f10af){var _0x3c0628=_0x42217d;_0x22824d[_0x3c0628('0x2092')]({'title':_0x1f10af[_0x3c0628('0x209')]?'API:'+_0x1f10af[_0x3c0628('0x209')]+_0x3c0628('0xa99')+_0x1f10af['statusText']:_0x3c0628('0x19d4'),'msg':_0x1f10af['data']?JSON[_0x3c0628('0x25e')](_0x1f10af[_0x3c0628('0x11c2')][_0x3c0628('0x1224')]):_0x1f10af['toString']()}),_0x45b634[_0x3c0628('0x1a69')]=_0x1f10af['data']['errors']||[{'message':_0x1f10af[_0x3c0628('0x174f')](),'type':'api.agent.changePassword'}];});}function _0x3d9165(){_0x55c55e['hide']();}}const _0xb82fcc=_0x536b87;_0x3ade54[_0x3877e3('0x1a81')]=[_0x3877e3('0x243f'),'$mdDialog',_0x3877e3('0xccd'),_0x3877e3('0x22b5'),_0x3877e3('0x1908')];function _0x3ade54(_0x4e36ab,_0x5ef802,_0x1a121f,_0x1c4293,_0x463689){var _0x1e6b45=_0x3877e3,_0x3794d0=this;_0x3794d0[_0x1e6b45('0x2402')]={},_0x3794d0[_0x1e6b45('0xa9c')]=_0x1c4293[_0x1e6b45('0xca3')](),_0x3794d0[_0x1e6b45('0x5ed')],_0x3794d0[_0x1e6b45('0x1d75')]=_0xef7b7a,_0x3794d0['onChange']=_0x4d0d8e;function _0xef7b7a(_0x5bc1ed,_0x5ac242){var _0x48930d=_0x1e6b45;_0x3794d0[_0x48930d('0x2402')]=_0x5bc1ed,_0x3794d0[_0x48930d('0x5ed')]=typeof _0x5ac242!=='undefined'?_0x5ac242:{'readOnly':!![],'canEdit':![],'canDelete':![]};}function _0x4d0d8e(_0x1776d,_0x55a6bb){var _0x5bba50=_0x1e6b45,_0x2f6bf0=_0x55a6bb||_0x1776d;if(_0x2f6bf0[_0x5bba50('0x2296')]){if(_0x55a6bb)_0x55a6bb['enabled']=!![],_0x3794d0['agent'][_0x5bba50('0x25b5')][_0x5bba50('0x206c')](_0x55a6bb['id']);else for(var _0x44ffcd=0x0;_0x44ffcd<_0x1776d[_0x5bba50('0xc9')][_0x5bba50('0x577')];_0x44ffcd++){_0x1776d['children'][_0x44ffcd][_0x5bba50('0x2296')]=!![],_0x3794d0['agent'][_0x5bba50('0x25b5')][_0x5bba50('0x206c')](_0x1776d['children'][_0x44ffcd]['id']);}_0x1776d[_0x5bba50('0x2296')]=!![],_0x3794d0[_0x5bba50('0x2402')]['permissions']['push'](_0x1776d['id']);}else{if(_0x55a6bb)_0x55a6bb[_0x5bba50('0x2296')]=![],_0x86640f()[_0x5bba50('0x16a2')](_0x3794d0[_0x5bba50('0x2402')][_0x5bba50('0x25b5')],function(_0x4e7b05){return _0x55a6bb['id']===_0x4e7b05;}),_0x86640f()[_0x5bba50('0x1503')](_0x1776d[_0x5bba50('0xc9')],{'enabled':![]})[_0x5bba50('0x577')]===_0x1776d['children']['length']&&(_0x1776d['enabled']=![],_0x86640f()[_0x5bba50('0x16a2')](_0x3794d0['agent']['permissions'],function(_0x24d702){return _0x1776d['id']===_0x24d702;}));else{_0x1776d[_0x5bba50('0x2296')]=![],_0x86640f()[_0x5bba50('0x16a2')](_0x3794d0[_0x5bba50('0x2402')]['permissions'],function(_0x54d78f){return _0x1776d['id']===_0x54d78f;});var _0x212c6c=function _0x419709(_0x3fa636){var _0x414419=_0x5bba50;_0x1776d['children'][_0x3fa636]['enabled']=![],_0x86640f()[_0x414419('0x16a2')](_0x3794d0['agent'][_0x414419('0x25b5')],function(_0x114fdd){var _0x4f37bb=_0x414419;return _0x1776d[_0x4f37bb('0xc9')][_0x3fa636]['id']===_0x114fdd;});};for(var _0x55c4de=0x0;_0x55c4de<_0x1776d['children'][_0x5bba50('0x577')];_0x55c4de++){_0x212c6c(_0x55c4de);}}}return _0x1a121f[_0x5bba50('0x1775')]['update']({'id':_0x3794d0['agent']['id'],'permissions':_0x86640f()[_0x5bba50('0x2691')](_0x3794d0[_0x5bba50('0x2402')]['permissions'])})[_0x5bba50('0x1376')][_0x5bba50('0x21ad')](function(){var _0x42330e=_0x5bba50;_0x463689[_0x42330e('0xdb1')]({'title':_0x42330e('0x189f'),'msg':_0x3794d0[_0x42330e('0x2402')][_0x42330e('0x19fe')]?_0x3794d0['agent'][_0x42330e('0x19fe')]+_0x42330e('0xa8d'):''});})[_0x5bba50('0x1c1d')](function(_0x27f409){var _0x34403b=_0x5bba50;console[_0x34403b('0x2092')](_0x27f409);});}}const _0x6ccf7e=_0x3ade54;_0x52393d['$inject']=['$mdDialog','$q',_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x2402'),_0x3877e3('0x27b5'),'direction',_0x3877e3('0x13c1'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x52393d(_0xa027d5,_0x575953,_0x462208,_0x1e9567,_0x27d75d,_0x43886f,_0x55c30f,_0x539cda,_0x58e873,_0x256a5a){var _0x1bc52e=_0x3877e3,_0x5f33b5=this;_0x5f33b5[_0x1bc52e('0x123f')]=_0x58e873[_0x1bc52e('0x15ed')](),_0x5f33b5[_0x1bc52e('0x2402')]=_0x27d75d,_0x5f33b5[_0x1bc52e('0x5ed')]=_0x256a5a,_0x5f33b5['penalty']=0x0,_0x5f33b5[_0x1bc52e('0x27b5')]=_0x43886f,_0x5f33b5[_0x1bc52e('0xfab')]=_0x55c30f,_0x5f33b5['apiName']=_0x5f33b5[_0x1bc52e('0x27b5')]+_0x1bc52e('0x1da'),_0x5f33b5[_0x1bc52e('0x4b4')]=_0x539cda[_0x1bc52e('0x183e')](_0x1bc52e('0x163')+_0x5f33b5[_0x1bc52e('0x27b5')]['toUpperCase']()+'_'+_0x5f33b5[_0x1bc52e('0xfab')]['toUpperCase']()),_0x5f33b5[_0x1bc52e('0x1b9a')]=[],_0x5f33b5[_0x1bc52e('0x1e09')]=[],_0x5f33b5['selectedItems']=[],_0x5f33b5['startingAllowedItems']=[],_0x5f33b5['startingSelectedItems']=[],_0x5f33b5[_0x1bc52e('0x1bb9')]=![],_0x5f33b5[_0x1bc52e('0x909')]={'readOnly':!_0x5f33b5[_0x1bc52e('0x5ed')]['canEdit'],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x1bc52e('0x19fe'),'line1':_0x1bc52e('0x19fe'),'line2':_0x1bc52e('0x7fa'),'line3':_0x5f33b5[_0x1bc52e('0x27b5')]===_0x1bc52e('0x8ed')?_0x1bc52e('0x1195'):'','labelAll':_0x539cda['instant'](_0x1bc52e('0x774')+_0x5f33b5['channel'][_0x1bc52e('0x2e8')]()+'_'+_0x5f33b5[_0x1bc52e('0xfab')][_0x1bc52e('0x2e8')]()),'labelSelected':_0x539cda['instant'](_0x1bc52e('0x245d')+_0x5f33b5[_0x1bc52e('0x27b5')][_0x1bc52e('0x2e8')]()+'_'+_0x5f33b5['direction']['toUpperCase']()),'transferCallback':function _0x440bb4(_0x1fab10,_0x30d080){var _0x43791e=_0x1bc52e;_0x30d080?_0x1fab10['forEach'](function(_0x44efa7){var _0x2431e6=a0_0x2e7f;_0x44efa7[_0x2431e6('0x1195')]=undefined;}):_0x1fab10[_0x43791e('0x1a52')](function(_0x548c77){var _0x413556=_0x43791e;_0x548c77[_0x413556('0x1195')]=_0x413556('0x5c2')+_0x5f33b5[_0x413556('0x1195')];});var _0x2a77db=_0x86640f()[_0x43791e('0xb02')](_0x5f33b5[_0x43791e('0x2584')],_0x5f33b5[_0x43791e('0x2629')],function(_0x33c77a,_0x37d694){var _0x4bb2ed=_0x43791e;return _0x33c77a['id']===_0x37d694['id']&&_0x33c77a[_0x4bb2ed('0x1195')]===_0x37d694[_0x4bb2ed('0x1195')];});_0x5f33b5[_0x43791e('0x1bb9')]=_0x86640f()[_0x43791e('0x23aa')](_0x2a77db)?![]:!![];}},_0x5f33b5['onInit']=_0x4aefb4,_0x5f33b5['saveQueues']=_0x492656,_0x5f33b5[_0x1bc52e('0x167')]=_0x599411;function _0x4aefb4(){var _0x38c10f=_0x1bc52e;return _0x58e873[_0x38c10f('0x21de')](_0x38c10f('0x1bd8'))?_0x3bb787()[_0x38c10f('0x1c1d')](function(_0x3ba652){var _0x2dac7b=_0x38c10f;_0x462208[_0x2dac7b('0x2092')]({'title':_0x3ba652[_0x2dac7b('0x209')]?_0x2dac7b('0x22d')+_0x3ba652[_0x2dac7b('0x209')]+'\x20-\x20'+_0x3ba652['statusText']:_0x2dac7b('0x1612'),'msg':_0x3ba652[_0x2dac7b('0x209')]?JSON[_0x2dac7b('0x25e')](_0x3ba652[_0x2dac7b('0x11c2')]):_0x3ba652['toString']()});}):_0x489135()[_0x38c10f('0x21ad')](function(_0x4fdd6a){var _0x475440=_0x38c10f;return _0x5f33b5[_0x475440('0x26ad')]=_0x4fdd6a,_0x3bb787();})['catch'](function(_0x583681){var _0x27b7cb=_0x38c10f;_0x462208['error']({'title':_0x583681['status']?_0x27b7cb('0x22d')+_0x583681[_0x27b7cb('0x209')]+_0x27b7cb('0xa99')+_0x583681['statusText']:'SYSTEM:GET_QUEUES','msg':_0x583681['status']?JSON['stringify'](_0x583681[_0x27b7cb('0x11c2')]):_0x583681[_0x27b7cb('0x174f')]()});});}function _0x489135(){return _0x575953(function(_0x8761c2,_0x4bd87f){var _0x4ee2e4=a0_0x2e7f,_0x226687;switch(_0x5f33b5['channel']){case _0x4ee2e4('0x8ed'):switch(_0x5f33b5['direction']){case _0x4ee2e4('0x923'):_0x226687='VoiceQueues';break;case _0x4ee2e4('0x2300'):_0x226687=_0x4ee2e4('0x1c8d');break;}break;case _0x4ee2e4('0x1f65'):_0x226687=_0x4ee2e4('0xf82');break;case _0x4ee2e4('0x1c8b'):_0x226687=_0x4ee2e4('0x451');break;case'sms':_0x226687=_0x4ee2e4('0x280a');break;case'openchannel':_0x226687=_0x4ee2e4('0xb6c');break;case _0x4ee2e4('0x93f'):_0x226687=_0x4ee2e4('0x20f7');break;}_0x1e9567[_0x4ee2e4('0xab4')]['get']({'userProfileId':_0x5f33b5[_0x4ee2e4('0x123f')]['userProfileId'],'name':_0x226687})['$promise'][_0x4ee2e4('0x21ad')](function(_0x487e2c){var _0x389d3e=_0x4ee2e4,_0xd258f9=_0x487e2c&&_0x487e2c[_0x389d3e('0x1b33')]?_0x487e2c[_0x389d3e('0x1b33')][0x0]:null;_0x8761c2(_0xd258f9);})['catch'](function(_0x3b823a){_0x4bd87f(_0x3b823a);});});}function _0x3bb787(){return _0x575953(function(_0x101643,_0xaf3007){var _0x954a01=a0_0x2e7f;return _0x5c3526()['then'](function(_0x3e8ab5){var _0x4a5c4f=a0_0x2e7f;return _0x5f33b5[_0x4a5c4f('0x1b9a')]=_0x3e8ab5[_0x4a5c4f('0x1b33')]?_0x3e8ab5[_0x4a5c4f('0x1b33')]:[],_0x58e873[_0x4a5c4f('0x21de')](_0x4a5c4f('0x1bd8'))?_0x3e8ab5:_0x5f33b5[_0x4a5c4f('0x26ad')]?_0x5f33b5[_0x4a5c4f('0x26ad')]['autoAssociation']?_0x3e8ab5:_0x58057f():null;})['then'](function(_0x12fd58){var _0xc1a65e=a0_0x2e7f,_0x5c18fb=_0x12fd58&&_0x12fd58[_0xc1a65e('0x1b33')]?_0x12fd58[_0xc1a65e('0x1b33')]:[];return _0x5f33b5[_0xc1a65e('0x1e09')]=_0x86640f()['map'](_0x5c18fb,function(_0x593cc6){var _0x3c14e7=_0xc1a65e;return _0x86640f()['find'](_0x5f33b5[_0x3c14e7('0x1b9a')],{'id':_0x58e873[_0x3c14e7('0x21de')](_0x3c14e7('0x1bd8'))||_0x5f33b5[_0x3c14e7('0x26ad')]['autoAssociation']?_0x593cc6['id']:_0x593cc6['resourceId']});}),_0x5f33b5[_0xc1a65e('0x91b')]=angular[_0xc1a65e('0xd75')](_0x5f33b5[_0xc1a65e('0x1e09')]),_0x5f33b5['items'][_0xc1a65e('0x1a52')](function(_0x1270e1){var _0x47a504=_0xc1a65e,_0x5f060d=_0x86640f()[_0x47a504('0x1d2e')](_0x5f33b5[_0x47a504('0x1e09')],{'id':_0x1270e1['id']});_0x58e873[_0x47a504('0x21de')]('admin')?_0x1270e1[_0x47a504('0x118b')]=!![]:_0x1270e1[_0x47a504('0x118b')]=typeof _0x5f060d!=='undefined'?!![]:![];}),_0x1bb8b5();})[_0x954a01('0x21ad')](function(_0x197185){var _0x2eec06=_0x954a01,_0x105a13=_0x197185&&_0x197185[_0x2eec06('0x1b33')]?_0x197185[_0x2eec06('0x1b33')]:[];_0x5f33b5[_0x2eec06('0x2629')]=_0x86640f()['map'](_0x105a13,function(_0x1af86b){var _0x4902d3=_0x2eec06,_0x386a3d=_0x86640f()[_0x4902d3('0x1d2e')](_0x5f33b5[_0x4902d3('0x1b9a')],{'id':_0x1af86b['id']});return _0x5f33b5['channel']===_0x4902d3('0x8ed')&&(_0x386a3d[_0x4902d3('0x1195')]=typeof _0x386a3d!==_0x4902d3('0xddc')&&typeof _0x1af86b['UserVoiceQueue']!==_0x4902d3('0xddc')?_0x4902d3('0x5c2')+_0x1af86b[_0x4902d3('0x1614')]['penalty']:_0x4902d3('0x5c2')+0x0),_0x386a3d;}),_0x5f33b5[_0x2eec06('0x2584')]=angular[_0x2eec06('0xd75')](_0x5f33b5[_0x2eec06('0x2629')]),_0x5f33b5[_0x2eec06('0x909')][_0x2eec06('0x2629')]=_0x5f33b5[_0x2eec06('0x2629')],_0x5f33b5['dualMultiselectOptions']['items']=_0x86640f()['differenceBy'](_0x5f33b5[_0x2eec06('0x1e09')],_0x5f33b5[_0x2eec06('0x909')][_0x2eec06('0x2629')],'id'),_0x101643();})[_0x954a01('0x1c1d')](function(_0x4c87c1){_0xaf3007(_0x4c87c1);});});}function _0x58057f(){return _0x575953(function(_0x31e0aa,_0x2b75dd){var _0x1a2a6c=a0_0x2e7f;return _0x1e9567[_0x1a2a6c('0x185e')][_0x1a2a6c('0x595')]({'sectionId':_0x5f33b5['section']['id'],'nolimit':!![]})[_0x1a2a6c('0x1376')][_0x1a2a6c('0x21ad')](function(_0x226434){_0x31e0aa(_0x226434);})[_0x1a2a6c('0x1c1d')](function(_0x2c6fed){_0x2b75dd(_0x2c6fed);});});}function _0x1bb8b5(){return _0x575953(function(_0x5e6de3,_0x298d95){var _0x1e5bb8=a0_0x2e7f;return _0x1e9567['user'][_0x1e5bb8('0x71c')]({'id':_0x5f33b5[_0x1e5bb8('0x2402')]['id'],'fields':'id,name,strategy,type,penalty','nolimit':!![],'type':_0x5f33b5[_0x1e5bb8('0xfab')],'channel':_0x5f33b5['channel']})[_0x1e5bb8('0x1376')][_0x1e5bb8('0x21ad')](function(_0x38537a){_0x5e6de3(_0x38537a);})[_0x1e5bb8('0x1c1d')](function(_0x40234c){_0x298d95(_0x40234c);});});}function _0x5c3526(){return _0x575953(function(_0x248f03,_0x2b5c86){var _0xef2e87=a0_0x2e7f;return _0x1e9567[_0x5f33b5[_0xef2e87('0xba3')]]['get']({'fields':_0xef2e87('0x19d'),'channel':_0x5f33b5[_0xef2e87('0x27b5')]===_0xef2e87('0x207a')?'voice':_0x5f33b5[_0xef2e87('0x27b5')],'type':_0x5f33b5[_0xef2e87('0xfab')],'nolimit':!![]})[_0xef2e87('0x1376')][_0xef2e87('0x21ad')](function(_0xd090b4){_0x248f03(_0xd090b4);})['catch'](function(_0x1188b5){_0x2b5c86(_0x1188b5);});});}function _0xd13251(_0x5e8867){return _0x575953(function(_0x89a076,_0x3537bc){var _0x3dcc12=a0_0x2e7f;if(_0x86640f()[_0x3dcc12('0x23aa')](_0x5e8867))_0x89a076();else{if(_0x5f33b5[_0x3dcc12('0x27b5')]===_0x3dcc12('0x8ed')){var _0x448d91=[],_0x470fc8=_0x86640f()[_0x3dcc12('0x2241')](_0x5e8867,_0x3dcc12('0x1195'));for(var _0x488206=0x0;_0x488206':'',_0x4d775b;}),_0x2343bf[_0x2ae657('0x2584')]=angular['copy'](_0x2343bf[_0x2ae657('0x2629')]),_0x2343bf['dualMultiselectOptions'][_0x2ae657('0x2629')]=_0x2343bf['selectedItems'],_0x2343bf[_0x2ae657('0x909')][_0x2ae657('0x1b9a')]=_0x86640f()[_0x2ae657('0x1eab')](_0x2343bf[_0x2ae657('0x1e09')],_0x2343bf['dualMultiselectOptions'][_0x2ae657('0x2629')],'id'),_0x3edc0e();})['catch'](function(_0x109339){_0x2c747d(_0x109339);});});}function _0x4ab51e(){return _0x4cab59(function(_0x1e69bb,_0x3f13c6){var _0x1cd3b1=a0_0x2e7f;return _0x1f3014[_0x1cd3b1('0x185e')][_0x1cd3b1('0x595')]({'sectionId':_0x2343bf[_0x1cd3b1('0x26ad')]['id'],'nolimit':!![]})[_0x1cd3b1('0x1376')][_0x1cd3b1('0x21ad')](function(_0x326025){_0x1e69bb(_0x326025);})['catch'](function(_0x4ffdbf){_0x3f13c6(_0x4ffdbf);});});}function _0x298519(){return _0x4cab59(function(_0x5b897c,_0x3a4c18){var _0x572fb6=a0_0x2e7f;return _0x1f3014[_0x572fb6('0x1a9c')][_0x572fb6('0x13ad')]({'id':_0x2343bf['team']['id'],'fields':_0x572fb6('0x1eea'),'nolimit':!![],'role':_0x572fb6('0x2402')})[_0x572fb6('0x1376')][_0x572fb6('0x21ad')](function(_0x3f8d65){_0x5b897c(_0x3f8d65);})[_0x572fb6('0x1c1d')](function(_0x5725a7){_0x3a4c18(_0x5725a7);});});}function _0x43f6a1(){return _0x4cab59(function(_0x1025df,_0xf1cc47){var _0x3b774d=a0_0x2e7f;return _0x1f3014[_0x3b774d('0x1775')][_0x3b774d('0x595')]({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x3b774d('0x2402')})[_0x3b774d('0x1376')][_0x3b774d('0x21ad')](function(_0x3f4378){_0x1025df(_0x3f4378);})[_0x3b774d('0x1c1d')](function(_0x186d3f){_0xf1cc47(_0x186d3f);});});}function _0x25c589(_0xadd10c){return _0x4cab59(function(_0x30384f,_0x1afcc5){var _0x5e6e24=a0_0x2e7f;_0x86640f()[_0x5e6e24('0x23aa')](_0xadd10c)?_0x30384f():_0x1f3014[_0x5e6e24('0x1a9c')]['addAgents']({'id':_0x2343bf[_0x5e6e24('0x1a9c')]['id'],'ids':_0x86640f()[_0x5e6e24('0x26c3')](_0xadd10c,'id')})['$promise']['then'](function(){_0x30384f();})[_0x5e6e24('0x1c1d')](function(_0x4fac79){_0x1afcc5(_0x4fac79);});});}function _0x2c10d7(_0x561c34){return _0x4cab59(function(_0x56c979,_0x10b397){var _0x4e1a0f=a0_0x2e7f;_0x86640f()[_0x4e1a0f('0x23aa')](_0x561c34)?_0x56c979():_0x1f3014[_0x4e1a0f('0x1a9c')][_0x4e1a0f('0x59e')]({'id':_0x2343bf['team']['id'],'ids':_0x86640f()['map'](_0x561c34,'id')})[_0x4e1a0f('0x1376')][_0x4e1a0f('0x21ad')](function(){_0x56c979();})[_0x4e1a0f('0x1c1d')](function(_0x40b6a5){_0x10b397(_0x40b6a5);});});}function _0x59e217(){var _0x3fe05b=_0x44f343,_0x1a14e5=_0x86640f()['differenceBy'](_0x2343bf[_0x3fe05b('0x2584')],_0x2343bf[_0x3fe05b('0x2629')],'id'),_0x4281f8=_0x86640f()[_0x3fe05b('0x1eab')](_0x2343bf[_0x3fe05b('0x2629')],_0x2343bf[_0x3fe05b('0x2584')],'id');return _0x2c10d7(_0x1a14e5)[_0x3fe05b('0x21ad')](function(){return _0x25c589(_0x4281f8);})[_0x3fe05b('0x21ad')](function(){var _0x1964b0=_0x3fe05b;_0x2343bf['pendingChanges']=![],_0x2343bf[_0x1964b0('0x91b')]=angular[_0x1964b0('0xd75')](_0x2343bf[_0x1964b0('0x1e09')]),_0x2343bf[_0x1964b0('0x2584')]=angular[_0x1964b0('0xd75')](_0x2343bf[_0x1964b0('0x2629')]),_0x437d2c[_0x1964b0('0xdb1')]({'title':_0x1964b0('0x2804'),'msg':_0x1964b0('0x2239')});})[_0x3fe05b('0x1c1d')](function(_0x43ae3a){var _0x33ab23=_0x3fe05b;_0x437d2c[_0x33ab23('0x2092')]({'title':_0x43ae3a[_0x33ab23('0x209')]?'API:'+_0x43ae3a['status']+_0x33ab23('0xa99')+_0x43ae3a['statusText']:_0x33ab23('0x1dd7'),'msg':_0x43ae3a[_0x33ab23('0x209')]?JSON[_0x33ab23('0x25e')](_0x43ae3a[_0x33ab23('0x11c2')]):_0x43ae3a['toString']()});});}function _0x1d55e9(){var _0x19bf2d=_0x44f343;_0xe14072[_0x19bf2d('0x1c24')]();}}const _0x1415b0=_0x4f4da2,_0x5f303e=_0x398308['p']+_0x3877e3('0x1ddc'),_0x340d1e=_0x398308['p']+_0x3877e3('0x1973');_0xf3fca2['$inject']=['$scope',_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x13c1'),'teams',_0x3877e3('0x758'),_0x3877e3('0xab4'),'api','msUtils',_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0xf3fca2(_0x4f7d62,_0xe4a54c,_0x405c84,_0x748895,_0x4d61ac,_0x529fa3,_0x3db7a2,_0x224201,_0x322dc6,_0x18ac8a,_0x4c3eac,_0x54a6d1,_0x4ce731,_0x324050,_0x4cbd49,_0x10ef64,_0x3d4590){var _0x39540e=_0x3877e3,_0x81d18e=this;_0x81d18e['license']=_0x10ef64,_0x81d18e[_0x39540e('0x21e')]=_0x3d4590,_0x81d18e['currentUser']=_0x4cbd49[_0x39540e('0x15ed')](),_0x81d18e[_0x39540e('0x7a5')]=_0x322dc6||{'count':0x0,'rows':[]},_0x81d18e[_0x39540e('0x758')]=_0x18ac8a,_0x81d18e[_0x39540e('0xab4')]=_0x4c3eac&&_0x4c3eac[_0x39540e('0x205f')]==0x1?_0x4c3eac[_0x39540e('0x1b33')][0x0]:null,_0x81d18e[_0x39540e('0x5ed')]=_0x4cbd49['parseCrudPermissions'](_0x81d18e[_0x39540e('0xab4')]?_0x81d18e['userProfileSection'][_0x39540e('0x5ed')]:null),_0x81d18e['table']=_0x39540e('0x7a5'),_0x81d18e[_0x39540e('0x11dc')]='',_0x81d18e['listOrderAsc']=null,_0x81d18e[_0x39540e('0x1de7')]=[],_0x81d18e[_0x39540e('0x77')]={'fields':'createdAt,updatedAt,id,name,description','sort':_0x39540e('0x33'),'limit':0xa,'page':0x1},_0x81d18e[_0x39540e('0x1a97')]=_0x126184,_0x81d18e[_0x39540e('0x1297')]=_0x41ae00,_0x81d18e[_0x39540e('0x2593')]=_0x508fc9,_0x81d18e['success']=_0x51a98c,_0x81d18e[_0x39540e('0x25df')]=_0x3665fd,_0x81d18e[_0x39540e('0x247a')]=_0x506cca,_0x81d18e[_0x39540e('0xce2')]=_0x990f30,_0x81d18e['exportSelectedTeams']=_0x16690f,_0x81d18e[_0x39540e('0xdb7')]=_0x6f824c,_0x81d18e[_0x39540e('0x194c')]=_0x1ef0e6,_0x81d18e[_0x39540e('0x1ce4')]=_0x31b180;function _0x126184(_0x351f5a,_0x4470f5){var _0x4efb2d=_0x39540e;_0x4d61ac[_0x4efb2d('0x853')]({'controller':_0x4efb2d('0x9d4'),'controllerAs':'vm','templateUrl':_0x5f303e,'parent':angular['element'](_0x529fa3[_0x4efb2d('0x2452')]),'targetEvent':_0x4470f5,'clickOutsideToClose':!![],'locals':{'team':_0x351f5a,'teams':_0x81d18e[_0x4efb2d('0x7a5')][_0x4efb2d('0x1b33')],'license':_0x81d18e[_0x4efb2d('0x2ff')],'setting':null,'crudPermissions':_0x81d18e[_0x4efb2d('0x5ed')]}});}function _0x41ae00(_0x2f90f1,_0x395d64){var _0x46989e=_0x39540e;_0x4d61ac[_0x46989e('0x853')]({'controller':'TeamagentaddController','controllerAs':'vm','templateUrl':_0x340d1e,'parent':angular[_0x46989e('0x1676')](_0x529fa3['body']),'targetEvent':_0x395d64,'clickOutsideToClose':!![],'locals':{'team':_0x2f90f1,'teams':_0x81d18e[_0x46989e('0x7a5')]?_0x81d18e['teams'][_0x46989e('0x1b33')]:[],'crudPermissions':_0x81d18e[_0x46989e('0x5ed')],'realtime':![]}});}function _0x508fc9(_0x2ec4cf,_0xb5f862){var _0x43534d=_0x39540e,_0x85387a=_0x4d61ac[_0x43534d('0xa33')]()[_0x43534d('0x4b4')](_0x43534d('0x25b6')+_0x86640f()[_0x43534d('0x2159')](_0x43534d('0x1a9c'))+'?')[_0x43534d('0x276b')](''+(_0x2ec4cf['name']||_0x43534d('0x1a9c'))+_0x43534d('0x2135')+_0x43534d('0x25e0'))[_0x43534d('0x7a7')]('delete\x20team')[_0x43534d('0x1e6d')](_0xb5f862)['ok']('OK')['cancel']('CANCEL');_0x4d61ac[_0x43534d('0x853')](_0x85387a)[_0x43534d('0x21ad')](function(){_0x990f30(_0x2ec4cf);},function(){var _0x7bb257=_0x43534d;console[_0x7bb257('0x6fb')](_0x7bb257('0x284b'));});}var _0x476c62=!![],_0x4ec789=0x1;_0x4f7d62['$watch'](_0x39540e('0x1948'),function(_0x392f6e,_0x1117be){var _0x515a97=_0x39540e;_0x476c62?_0x3db7a2(function(){_0x476c62=![];}):(!_0x1117be&&(_0x4ec789=_0x81d18e[_0x515a97('0x77')]['page']),_0x392f6e!==_0x1117be&&(_0x81d18e[_0x515a97('0x77')][_0x515a97('0x2376')]=0x1),!_0x392f6e&&(_0x81d18e['query'][_0x515a97('0x2376')]=_0x4ec789),_0x81d18e[_0x515a97('0x25df')]());});function _0x51a98c(_0x58ca67){_0x81d18e['teams']=_0x58ca67||{'count':0x0,'rows':[]};}function _0x3665fd(){var _0x23865d=_0x39540e;_0x81d18e[_0x23865d('0x77')][_0x23865d('0x15a5')]=(_0x81d18e['query'][_0x23865d('0x2376')]-0x1)*_0x81d18e[_0x23865d('0x77')][_0x23865d('0x1f4a')],_0x4cbd49[_0x23865d('0x21de')](_0x23865d('0x1bd8'))?_0x81d18e['promise']=_0x54a6d1[_0x23865d('0x1a9c')][_0x23865d('0x595')](_0x81d18e[_0x23865d('0x77')],_0x51a98c)[_0x23865d('0x1376')]:(_0x81d18e[_0x23865d('0x77')]['id']=_0x81d18e[_0x23865d('0x758')]['id'],_0x81d18e[_0x23865d('0x77')][_0x23865d('0x26ad')]=_0x23865d('0xa27'),_0x81d18e[_0x23865d('0x71b')]=_0x54a6d1['userProfile']['getResources'](_0x81d18e[_0x23865d('0x77')],_0x51a98c)['$promise']);}function _0x506cca(_0x4244ac,_0x2415f1){var _0x873b69=_0x39540e;_0x4d61ac['show']({'controller':'CreateOrEditTeamDialogController','controllerAs':'vm','templateUrl':_0x5f303e,'parent':angular[_0x873b69('0x1676')](_0x529fa3[_0x873b69('0x2452')]),'targetEvent':_0x4244ac,'clickOutsideToClose':!![],'locals':{'team':_0x2415f1,'teams':_0x81d18e[_0x873b69('0x7a5')][_0x873b69('0x1b33')],'license':_0x81d18e[_0x873b69('0x2ff')],'setting':_0x81d18e[_0x873b69('0x21e')],'crudPermissions':_0x81d18e[_0x873b69('0x5ed')]}});}function _0x990f30(_0x9981d9){var _0x3face6=_0x39540e;_0x54a6d1[_0x3face6('0x1a9c')][_0x3face6('0x1164')]({'id':_0x9981d9['id']})['$promise'][_0x3face6('0x21ad')](function(){var _0x500b5d=_0x3face6;_0x86640f()['remove'](_0x81d18e[_0x500b5d('0x7a5')][_0x500b5d('0x1b33')],{'id':_0x9981d9['id']}),_0x81d18e[_0x500b5d('0x7a5')][_0x500b5d('0x205f')]-=0x1,!_0x81d18e[_0x500b5d('0x7a5')][_0x500b5d('0x1b33')]['length']&&_0x81d18e['getTeams'](),_0x324050['success']({'title':_0x86640f()[_0x500b5d('0x2159')](_0x500b5d('0x22b2'))+'\x20deleted!','msg':_0x9981d9['name']?_0x9981d9[_0x500b5d('0x19fe')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x9ae63){var _0x431179=_0x3face6;if(_0x9ae63[_0x431179('0x11c2')]&&_0x9ae63[_0x431179('0x11c2')]['errors']&&_0x9ae63[_0x431179('0x11c2')]['errors'][_0x431179('0x577')]){_0x81d18e['errors']=_0x9ae63['data']['errors']||[{'message':_0x9ae63[_0x431179('0x174f')](),'type':_0x431179('0x8da')}];for(var _0x33d207=0x0;_0x33d207<_0x9ae63[_0x431179('0x11c2')][_0x431179('0x1a69')][_0x431179('0x577')];_0x33d207++){_0x324050[_0x431179('0x2092')]({'title':_0x9ae63[_0x431179('0x11c2')][_0x431179('0x1a69')][_0x33d207][_0x431179('0x7fa')],'msg':_0x9ae63[_0x431179('0x11c2')][_0x431179('0x1a69')][_0x33d207][_0x431179('0x1224')]});}}else _0x324050[_0x431179('0x2092')]({'title':_0x9ae63[_0x431179('0x209')]?_0x431179('0x22d')+_0x9ae63[_0x431179('0x209')]+_0x431179('0xa99')+_0x9ae63['statusText']:_0x431179('0x8da'),'msg':_0x9ae63[_0x431179('0x11c2')]?JSON['stringify'](_0x9ae63[_0x431179('0x11c2')][_0x431179('0x1224')]):_0x9ae63['message']||_0x9ae63[_0x431179('0x174f')]()});});}function _0x16690f(){var _0x29683a=_0x39540e,_0x493fd5=angular[_0x29683a('0xd75')](_0x81d18e[_0x29683a('0x1de7')]);return _0x81d18e[_0x29683a('0x1de7')]=[],_0x493fd5;}function _0x6f824c(_0x3a4da9){var _0x7d36fb=_0x39540e,_0x48acdb=_0x4d61ac[_0x7d36fb('0xa33')]()[_0x7d36fb('0x4b4')](_0x7d36fb('0x14b1'))[_0x7d36fb('0x276b')](''+_0x81d18e[_0x7d36fb('0x1de7')][_0x7d36fb('0x577')]+'\x20selected'+_0x7d36fb('0x25e0'))[_0x7d36fb('0x7a7')](_0x7d36fb('0x2632'))[_0x7d36fb('0x1e6d')](_0x3a4da9)['ok']('OK')[_0x7d36fb('0x3b5')]('CANCEL');_0x4d61ac['show'](_0x48acdb)[_0x7d36fb('0x21ad')](function(){var _0x44783f=_0x7d36fb;_0x81d18e['selectedTeams']['forEach'](function(_0x1b8e82){_0x990f30(_0x1b8e82);}),_0x81d18e[_0x44783f('0x1de7')]=[];});}function _0x1ef0e6(){_0x81d18e['selectedTeams']=[];}function _0x31b180(){var _0xe5483b=_0x39540e;_0x81d18e[_0xe5483b('0x1de7')]=_0x81d18e[_0xe5483b('0x7a5')][_0xe5483b('0x1b33')];}}const _0x3938fc=_0xf3fca2;_0x44fdb3['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),'telephones',_0x3877e3('0x13f4'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'license',_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x44fdb3(_0x555ac6,_0x1bb224,_0xcfe443,_0x4e12b0,_0x1d577d,_0x3995f0,_0x21f779,_0x361c53,_0xf3b90a,_0x2bf84a,_0xcf112f,_0x4c137b,_0x21a534,_0x31b04d){var _0x3dd4db=_0x3877e3,_0x416396=this;_0x416396[_0x3dd4db('0x123f')]=_0xcf112f[_0x3dd4db('0x15ed')](),_0x416396[_0x3dd4db('0x1a69')]=[],_0x416396[_0x3dd4db('0x21e')]=_0x21a534,_0x416396['license']=_0x4c137b,_0x416396[_0x3dd4db('0x5ed')]=_0x31b04d,_0x416396[_0x3dd4db('0x126a')]={},_0x416396[_0x3dd4db('0x1432')]=_0x416396[_0x3dd4db('0x21e')]&&_0x416396['setting'][_0x3dd4db('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x416396[_0x3dd4db('0x4b4')]=_0x3dd4db('0x3a'),_0x416396['telephone']=angular[_0x3dd4db('0xd75')](_0xf3b90a),_0x416396['telephones']=_0x361c53,_0x416396['newTelephone']=![];!_0x416396[_0x3dd4db('0x13f4')]&&(_0x416396[_0x3dd4db('0x13f4')]={'role':_0x3dd4db('0x13f4'),'autointernal':!![],'context':_0x3dd4db('0x1961')},_0x416396[_0x3dd4db('0x4b4')]=_0x3dd4db('0x234b'),_0x416396['newTelephone']=!![]);_0x416396[_0x3dd4db('0x9bc')]=_0x3b0007,_0x416396['saveTelephone']=_0xb6eac1,_0x416396[_0x3dd4db('0x142f')]=_0xe9dbeb,_0x416396[_0x3dd4db('0x279')]=_0x5aabf0,_0x416396[_0x3dd4db('0x167')]=_0x3d6597;function _0x3b0007(){var _0x508e57=_0x3dd4db;_0x416396[_0x508e57('0x1a69')]=[],_0x2bf84a[_0x508e57('0x1775')][_0x508e57('0x186f')](_0x416396[_0x508e57('0x13f4')])[_0x508e57('0x1376')][_0x508e57('0x21ad')](function(_0x2304be){var _0x3ad2e7=_0x508e57;_0x416396[_0x3ad2e7('0x2197')][_0x3ad2e7('0xd0c')](_0x2304be['toJSON']()),_0x21f779[_0x3ad2e7('0xdb1')]({'title':_0x3ad2e7('0x2074'),'msg':_0x416396[_0x3ad2e7('0x13f4')][_0x3ad2e7('0x19fe')]?_0x416396[_0x3ad2e7('0x13f4')][_0x3ad2e7('0x19fe')]+_0x3ad2e7('0x1694'):''}),_0x3d6597(_0x2304be);})[_0x508e57('0x1c1d')](function(_0x2022a7){var _0x46a38d=_0x508e57;if(_0x2022a7['data']&&_0x2022a7[_0x46a38d('0x11c2')][_0x46a38d('0x1a69')]&&_0x2022a7['data'][_0x46a38d('0x1a69')][_0x46a38d('0x577')]){_0x416396[_0x46a38d('0x1a69')]=_0x2022a7[_0x46a38d('0x11c2')]['errors']||[{'message':_0x2022a7[_0x46a38d('0x174f')](),'type':_0x46a38d('0xb90')}];for(var _0x3df911=0x0;_0x3df911<_0x2022a7[_0x46a38d('0x11c2')]['errors'][_0x46a38d('0x577')];_0x3df911+=0x1){_0x21f779[_0x46a38d('0x2092')]({'title':_0x2022a7['data']['errors'][_0x3df911][_0x46a38d('0x7fa')],'msg':_0x2022a7[_0x46a38d('0x11c2')][_0x46a38d('0x1a69')][_0x3df911][_0x46a38d('0x1224')]});}}else _0x21f779[_0x46a38d('0x2092')]({'title':_0x2022a7['status']?_0x46a38d('0x22d')+_0x2022a7['status']+_0x46a38d('0xa99')+_0x2022a7[_0x46a38d('0x1808')]:_0x46a38d('0xb90'),'msg':_0x2022a7['data']?JSON['stringify'](_0x2022a7[_0x46a38d('0x11c2')][_0x46a38d('0x1224')]):_0x2022a7[_0x46a38d('0x174f')]()});});}function _0xb6eac1(){var _0x271c81=_0x3dd4db;_0x416396[_0x271c81('0x1a69')]=[],_0x2bf84a[_0x271c81('0x1775')][_0x271c81('0x5ef')]({'id':_0x416396[_0x271c81('0x13f4')]['id']},_0x416396[_0x271c81('0x13f4')])[_0x271c81('0x1376')][_0x271c81('0x21ad')](function(_0x17d773){var _0x32f07d=_0x271c81,_0x234588=_0x86640f()['find'](_0x416396['telephones'],{'id':_0x17d773['id']});_0x234588&&_0x86640f()[_0x32f07d('0xd0e')](_0x234588,_0x86640f()[_0x32f07d('0xc50')](_0x17d773[_0x32f07d('0x3bc')](),_0x86640f()['keys'](_0x234588))),_0x21f779[_0x32f07d('0xdb1')]({'title':'Telephone\x20properly\x20saved!','msg':_0x416396['telephone']['name']?_0x416396[_0x32f07d('0x13f4')][_0x32f07d('0x19fe')]+_0x32f07d('0x2249'):''}),_0x3d6597(_0x17d773);})[_0x271c81('0x1c1d')](function(_0x53ac06){var _0x55616b=_0x271c81;if(_0x53ac06[_0x55616b('0x11c2')]&&_0x53ac06[_0x55616b('0x11c2')][_0x55616b('0x1a69')]&&_0x53ac06[_0x55616b('0x11c2')]['errors'][_0x55616b('0x577')]){_0x416396[_0x55616b('0x1a69')]=_0x53ac06['data']['errors']||[{'message':_0x53ac06['toString'](),'type':_0x55616b('0x14b6')}];for(var _0x2363a1=0x0;_0x2363a1<_0x53ac06[_0x55616b('0x11c2')][_0x55616b('0x1a69')]['length'];_0x2363a1++){_0x21f779[_0x55616b('0x2092')]({'title':_0x53ac06[_0x55616b('0x11c2')][_0x55616b('0x1a69')][_0x2363a1][_0x55616b('0x7fa')],'msg':_0x53ac06['data'][_0x55616b('0x1a69')][_0x2363a1][_0x55616b('0x1224')]});}}else _0x21f779[_0x55616b('0x2092')]({'title':_0x53ac06[_0x55616b('0x209')]?'API:'+_0x53ac06[_0x55616b('0x209')]+_0x55616b('0xa99')+_0x53ac06['statusText']:_0x55616b('0x14b6'),'msg':_0x53ac06[_0x55616b('0x11c2')]?JSON['stringify'](_0x53ac06[_0x55616b('0x11c2')][_0x55616b('0x1224')]):_0x53ac06[_0x55616b('0x174f')]()});});}function _0xe9dbeb(_0x49d25a){var _0x4909da=_0x3dd4db;_0x416396[_0x4909da('0x1a69')]=[];var _0x4394dc=_0x4e12b0[_0x4909da('0xa33')]()[_0x4909da('0x4b4')]('Are\x20you\x20sure?')[_0x4909da('0x13fb')](_0x4909da('0x17a'))[_0x4909da('0x7a7')](_0x4909da('0x22b0'))['ok'](_0x4909da('0xbfd'))[_0x4909da('0x3b5')](_0x4909da('0x1f40'))['targetEvent'](_0x49d25a);_0x4e12b0['show'](_0x4394dc)[_0x4909da('0x21ad')](function(){var _0x3a5f4c=_0x4909da;_0x2bf84a['user'][_0x3a5f4c('0x1164')]({'id':_0x416396[_0x3a5f4c('0x13f4')]['id']})[_0x3a5f4c('0x1376')][_0x3a5f4c('0x21ad')](function(){var _0x32861f=_0x3a5f4c;_0x86640f()[_0x32861f('0x16a2')](_0x416396[_0x32861f('0x2197')],{'id':_0x416396[_0x32861f('0x13f4')]['id']}),_0x21f779[_0x32861f('0xdb1')]({'title':_0x32861f('0x19ea'),'msg':(_0x416396[_0x32861f('0x13f4')]['name']||_0x32861f('0x13f4'))+_0x32861f('0xb4a')}),_0x3d6597(_0x416396[_0x32861f('0x13f4')]);})[_0x3a5f4c('0x1c1d')](function(_0x3a1a59){var _0x434cd1=_0x3a5f4c;if(_0x3a1a59[_0x434cd1('0x11c2')]&&_0x3a1a59['data'][_0x434cd1('0x1a69')]&&_0x3a1a59['data']['errors'][_0x434cd1('0x577')]){_0x416396[_0x434cd1('0x1a69')]=_0x3a1a59[_0x434cd1('0x11c2')][_0x434cd1('0x1a69')]||[{'message':_0x3a1a59[_0x434cd1('0x174f')](),'type':_0x434cd1('0x213b')}];for(var _0x4d85da=0x0;_0x4d85da<_0x3a1a59['data'][_0x434cd1('0x1a69')][_0x434cd1('0x577')];_0x4d85da++){_0x21f779[_0x434cd1('0x2092')]({'title':_0x3a1a59[_0x434cd1('0x11c2')][_0x434cd1('0x1a69')][_0x4d85da][_0x434cd1('0x7fa')],'msg':_0x3a1a59[_0x434cd1('0x11c2')][_0x434cd1('0x1a69')][_0x4d85da][_0x434cd1('0x1224')]});}}else _0x21f779[_0x434cd1('0x2092')]({'title':_0x3a1a59['status']?'API:'+_0x3a1a59[_0x434cd1('0x209')]+'\x20-\x20'+_0x3a1a59[_0x434cd1('0x1808')]:'api.user.delete','msg':_0x3a1a59['data']?JSON[_0x434cd1('0x25e')](_0x3a1a59[_0x434cd1('0x11c2')][_0x434cd1('0x1224')]):_0x3a1a59[_0x434cd1('0x1224')]||_0x3a1a59[_0x434cd1('0x174f')]()});});},function(){});}function _0x5aabf0(_0x53953b){return _0x53953b===null?undefined:new Date(_0x53953b);}function _0x3d6597(_0x2cbf66){var _0x5b6a49=_0x3dd4db;_0x4e12b0[_0x5b6a49('0x1c24')](_0x2cbf66);}}const _0x349f58=_0x44fdb3;_0x45f151[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x1850'),_0x3877e3('0x1908'),_0x3877e3('0xccd'),'telephone',_0x3877e3('0x21e'),'Auth'];function _0x45f151(_0x34c70e,_0xbbc6c0,_0x41bbc0,_0xdab01c,_0x4f9e05,_0x460bb2,_0xda72bb){var _0x527b62=_0x3877e3,_0x5e41af=this;_0x5e41af[_0x527b62('0x123f')]=_0xda72bb[_0x527b62('0x15ed')](),_0x5e41af[_0x527b62('0x1a69')]=[],_0x5e41af[_0x527b62('0x21e')]=_0x460bb2,_0x5e41af[_0x527b62('0x1432')]=_0x5e41af['setting'][_0x527b62('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5e41af[_0x527b62('0x13f4')]=_0x4f9e05,_0x5e41af[_0x527b62('0xdd5')]='',_0x5e41af[_0x527b62('0x1a34')]='',_0x5e41af[_0x527b62('0x1f59')]=_0xa810c,_0x5e41af[_0x527b62('0x167')]=_0x49740a,_0x34c70e['$watch']('vm.password',function(_0xa2bc74){var _0xc5c06d=_0x527b62;!_0x86640f()[_0xc5c06d('0x1c7')](_0x5e41af['oldPassword'])&&(_0xa2bc74===_0x5e41af[_0xc5c06d('0x1a34')]?_0x34c70e[_0xc5c06d('0x1518')]['password'][_0xc5c06d('0xa37')](_0xc5c06d('0x14d8'),![]):_0x34c70e[_0xc5c06d('0x1518')][_0xc5c06d('0xdd5')]['$setValidity']('oldPasswordMatch',!![]));});function _0xa810c(){var _0x186cb4=_0x527b62;_0x5e41af[_0x186cb4('0x1a69')]=[];var _0x13a209={'id':_0x5e41af[_0x186cb4('0x13f4')]['id'],'newPassword':_0x5e41af[_0x186cb4('0xdd5')]};_0x5e41af[_0x186cb4('0x123f')]['id']==_0x5e41af[_0x186cb4('0x13f4')]['id']&&(_0x13a209[_0x186cb4('0x1a34')]=_0x5e41af[_0x186cb4('0x1a34')]),_0xdab01c[_0x186cb4('0x1775')][_0x186cb4('0xbb4')](_0x13a209)[_0x186cb4('0x1376')][_0x186cb4('0x21ad')](function(){var _0x474214=_0x186cb4;_0x41bbc0[_0x474214('0xdb1')]({'title':_0x474214('0xaac')}),_0x49740a();})[_0x186cb4('0x1c1d')](function(_0x3eecdf){var _0x4e4fb6=_0x186cb4;_0x41bbc0[_0x4e4fb6('0x2092')]({'title':_0x3eecdf[_0x4e4fb6('0x209')]?_0x4e4fb6('0x22d')+_0x3eecdf['status']+_0x4e4fb6('0xa99')+_0x3eecdf[_0x4e4fb6('0x1808')]:_0x4e4fb6('0x17c7'),'msg':_0x3eecdf[_0x4e4fb6('0x11c2')]?JSON[_0x4e4fb6('0x25e')](_0x3eecdf[_0x4e4fb6('0x11c2')][_0x4e4fb6('0x1224')]):_0x3eecdf[_0x4e4fb6('0x174f')]()}),_0x5e41af[_0x4e4fb6('0x1a69')]=_0x3eecdf['data']['errors']||[{'message':_0x3eecdf[_0x4e4fb6('0x174f')](),'type':_0x4e4fb6('0x1eb5')}];});}function _0x49740a(){var _0x3ce074=_0x527b62;_0xbbc6c0[_0x3ce074('0x1c24')]();}}const _0x307dda=_0x45f151,_0x7b7271=_0x398308['p']+'src/js/modules/main/apps/staff/views/telephones/edit/changepassword/changepassword.html/changepassword-[chunkhash].html';_0x517b42['$inject']=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),'$mdDialog','$document',_0x3877e3('0x13c1'),'license',_0x3877e3('0x21e'),'api','toasty','Auth',_0x3877e3('0x13f4'),_0x3877e3('0xab4')];function _0x517b42(_0x21d8cd,_0x7ba98c,_0x30c0ec,_0x52b340,_0x1267e6,_0x1ccd2c,_0x1b3a86,_0x44e24f,_0x2f3ea4,_0x41be98,_0x11ccfd,_0x4ccdb3){var _0x4c183d=_0x3877e3,_0xe32e01=this;_0xe32e01[_0x4c183d('0x123f')]=_0x41be98[_0x4c183d('0x15ed')](),_0xe32e01[_0x4c183d('0x2ff')]=_0x1ccd2c,_0xe32e01[_0x4c183d('0x21e')]=_0x1b3a86,_0xe32e01[_0x4c183d('0x1432')]=_0xe32e01[_0x4c183d('0x21e')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xe32e01['location']=_0x7ba98c[_0x4c183d('0x1162')]()+_0x4c183d('0x22a9')+_0x7ba98c[_0x4c183d('0x1c01')](),_0xe32e01[_0x4c183d('0x13f4')]=_0x11ccfd||_0x21d8cd[_0x4c183d('0x171b')][_0x4c183d('0x13f4')]||{},_0xe32e01[_0x4c183d('0xab4')]=_0x4ccdb3&&_0x4ccdb3[_0x4c183d('0x205f')]==0x1?_0x4ccdb3[_0x4c183d('0x1b33')][0x0]:null,_0xe32e01[_0x4c183d('0x5ed')]=_0x41be98['parseCrudPermissions'](_0xe32e01[_0x4c183d('0xab4')]?_0xe32e01[_0x4c183d('0xab4')][_0x4c183d('0x5ed')]:null),_0xe32e01['hasModulePermissions']={},_0xe32e01[_0x4c183d('0x302')]=_0x21d8cd[_0x4c183d('0x171b')][_0x4c183d('0x12e1')]||0x0,_0xe32e01['changepassworddialog']=_0x338711,_0xe32e01[_0x4c183d('0x95b')]=_0x2f3ea4[_0x4c183d('0x231c')],_0xe32e01[_0x4c183d('0x2755')]=_0x4ea955,_0xe32e01[_0x4c183d('0x70b')]=_0x117d8e,_0x41be98['hasRole'](_0x4c183d('0x1bd8'))?_0x44e24f[_0x4c183d('0x608')]['get']({'fields':'id,name','sort':_0x4c183d('0x19fe')})['$promise']['then'](function(_0x11e13b){var _0x4db9aa=_0x4c183d;_0xe32e01['contexts']=_0x11e13b[_0x4db9aa('0x1b33')]||[];})['catch'](function(_0x45f1da){var _0x56e872=_0x4c183d;_0x2f3ea4[_0x56e872('0x2092')]({'title':_0x45f1da[_0x56e872('0x209')]?_0x56e872('0x22d')+_0x45f1da[_0x56e872('0x209')]+_0x56e872('0xa99')+_0x45f1da[_0x56e872('0x1808')]:_0x56e872('0x11b1'),'msg':_0x45f1da[_0x56e872('0x11c2')]?JSON[_0x56e872('0x25e')](_0x45f1da['data']):_0x45f1da['toString']()});}):_0x44e24f['voiceContext'][_0x4c183d('0x595')]({'fields':_0x4c183d('0x1aa8'),'sort':'name'})[_0x4c183d('0x1376')][_0x4c183d('0x21ad')](function(_0x47ade5){var _0x4ffb0f=_0x4c183d;_0xe32e01[_0x4ffb0f('0x1089')]=_0x47ade5[_0x4ffb0f('0x1b33')]||[];})[_0x4c183d('0x21ad')](function(){var _0x5f429f=_0x4c183d;return _0x44e24f[_0x5f429f('0xab4')]['get']({'userProfileId':_0xe32e01[_0x5f429f('0x123f')][_0x5f429f('0x1618')],'sectionId':0x195})[_0x5f429f('0x1376')];})[_0x4c183d('0x21ad')](function(_0x8fbe0a){var _0xda0ccc=_0x4c183d,_0xbb6073=_0x8fbe0a&&_0x8fbe0a['rows']?_0x8fbe0a['rows'][0x0]:null;if(!_0xbb6073)return _0x44e24f['voiceContext'][_0xda0ccc('0x595')]({'fields':_0xda0ccc('0x1aa8'),'sort':_0xda0ccc('0x19fe'),'defaultEntry':0x1})[_0xda0ccc('0x1376')]['then'](function(_0x56b864){var _0x2a5858=_0xda0ccc;_0xe32e01['contexts']=_0x56b864[_0x2a5858('0x1b33')]||[];});else{if(!_0xbb6073[_0xda0ccc('0x80c')])return _0x44e24f[_0xda0ccc('0x185e')][_0xda0ccc('0x595')]({'sectionId':_0xbb6073['id']})['$promise'][_0xda0ccc('0x21ad')](function(_0x50e07f){var _0x59c297=_0xda0ccc,_0x595113=_0x86640f()[_0x59c297('0x26c3')](_0x50e07f[_0x59c297('0x1b33')],function(_0x74cc1f){var _0xa00cb4=_0x59c297;return _0x86640f()[_0xa00cb4('0x1d2e')](_0xe32e01[_0xa00cb4('0x1089')],{'id':_0x74cc1f[_0xa00cb4('0x675')]});}),_0x2fd093=null;_0xe32e01[_0x59c297('0x13f4')]&&(_0x2fd093=_0x86640f()[_0x59c297('0x1d2e')](_0xe32e01[_0x59c297('0x1089')],{'name':_0xe32e01[_0x59c297('0x13f4')]['context']}));if(_0x2fd093&&!_0x86640f()['some'](_0x595113,['id',_0x2fd093['id']])){var _0x4b03b8=_0x86640f()['find'](_0xe32e01[_0x59c297('0x1089')],{'id':_0x2fd093['id']});_0x4b03b8[_0x59c297('0xba')]=![],_0x595113['push'](_0x4b03b8);}_0xe32e01['contexts']=_0x595113;});}})[_0x4c183d('0x1c1d')](function(_0x35d28b){var _0x4df0a0=_0x4c183d;_0x2f3ea4[_0x4df0a0('0x2092')]({'title':_0x35d28b['status']?_0x4df0a0('0x22d')+_0x35d28b[_0x4df0a0('0x209')]+_0x4df0a0('0xa99')+_0x35d28b[_0x4df0a0('0x1808')]:_0x4df0a0('0x1463'),'msg':_0x35d28b[_0x4df0a0('0x11c2')]?JSON[_0x4df0a0('0x25e')](_0x35d28b[_0x4df0a0('0x11c2')]):_0x35d28b[_0x4df0a0('0x174f')]()});});function _0x338711(_0x5e378f,_0x284f38){var _0x223ff0=_0x4c183d;_0x30c0ec['show']({'controller':_0x223ff0('0x27ac'),'controllerAs':'vm','templateUrl':_0x7b7271,'parent':angular['element'](_0x52b340['body']),'targetEvent':_0x284f38,'clickOutsideToClose':!![],'locals':{'telephone':_0x5e378f,'setting':_0x1b3a86,'telephones':_0xe32e01['telephones']?_0xe32e01[_0x223ff0('0x2197')][_0x223ff0('0x1b33')]:[],'crudPermissions':_0xe32e01[_0x223ff0('0x5ed')]}});}function _0x4ea955(){var _0xddde65=_0x4c183d;_0x21d8cd['go'](_0xddde65('0x6dc'),{},{'reload':_0xddde65('0x6dc')});}function _0x117d8e(){var _0x77f1dc=_0x4c183d;_0x44e24f[_0x77f1dc('0x1775')]['update']({'id':_0xe32e01['telephone']['id']},_0xe32e01[_0x77f1dc('0x13f4')])[_0x77f1dc('0x1376')][_0x77f1dc('0x21ad')](function(){var _0x2fa52a=_0x77f1dc;_0x2f3ea4[_0x2fa52a('0xdb1')]({'title':_0x2fa52a('0x1574'),'msg':_0xe32e01['telephone'][_0x2fa52a('0x19fe')]?_0xe32e01['telephone'][_0x2fa52a('0x19fe')]+_0x2fa52a('0xa8d'):''});})['catch'](function(_0x8ad2bc){var _0x275539=_0x77f1dc;_0x2f3ea4[_0x275539('0x2092')]({'title':_0x8ad2bc[_0x275539('0x209')]?_0x275539('0x22d')+_0x8ad2bc[_0x275539('0x209')]+_0x275539('0xa99')+_0x8ad2bc[_0x275539('0x1808')]:_0x275539('0x42b'),'msg':_0x8ad2bc['data']?JSON[_0x275539('0x25e')](_0x8ad2bc[_0x275539('0x11c2')]):_0x8ad2bc[_0x275539('0x174f')]()});});}}const _0x5e1bb5=_0x517b42,_0x54f9fe=_0x398308['p']+_0x3877e3('0xe5c');_0x4f545b[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),'$mdSidenav',_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x13c1'),'telephones',_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting'];function _0x4f545b(_0x36f9b7,_0xcf6cf2,_0x1cafe8,_0x5a86da,_0xefc338,_0x1ee0f1,_0x3d345e,_0x15a62b,_0x51ddc0,_0x12d237,_0x502559,_0x4a6acb,_0x317d0a,_0x1e749c,_0x2db6b2,_0x36784b,_0x463d87){var _0x709e46=_0x3877e3,_0x3128af=this;_0x3128af[_0x709e46('0x2ff')]=_0x36784b,_0x3128af[_0x709e46('0x21e')]=_0x463d87,_0x3128af['currentUser']=_0x2db6b2[_0x709e46('0x15ed')](),_0x3128af['telephones']=_0x51ddc0||{'count':0x0,'rows':[]},_0x3128af['userProfile']=_0x12d237,_0x3128af['userProfileSection']=_0x502559&&_0x502559[_0x709e46('0x205f')]==0x1?_0x502559['rows'][0x0]:null,_0x3128af[_0x709e46('0x5ed')]=_0x2db6b2[_0x709e46('0x1778')](_0x3128af['userProfileSection']?_0x3128af[_0x709e46('0xab4')][_0x709e46('0x5ed')]:null),_0x3128af[_0x709e46('0x1897')]=_0x709e46('0x2197'),_0x3128af[_0x709e46('0x11dc')]='',_0x3128af[_0x709e46('0x18cf')]=null,_0x3128af[_0x709e46('0x2442')]=[],_0x3128af[_0x709e46('0x77')]={'fields':_0x709e46('0x1eb0'),'role':'telephone','sort':_0x709e46('0x33'),'limit':0xa,'page':0x1},_0x3128af[_0x709e46('0xd9d')]=_0x86640f()['keyBy']([{'option':_0x709e46('0x17a1'),'value':'\x27udp\x27'},{'option':_0x709e46('0xbcc'),'value':_0x709e46('0xe8c')},{'option':'ws','value':_0x709e46('0xaf8')},{'option':_0x709e46('0x1740'),'value':_0x709e46('0xef9')},{'option':'tls','value':_0x709e46('0x20e3')}],function(_0x265792){var _0x916d5a=_0x709e46;return _0x86640f()[_0x916d5a('0x16e4')](_0x265792[_0x916d5a('0x2228')],new RegExp('\x27','g'),'');}),_0x3128af[_0x709e46('0x1853')]=_0x86640f()[_0x709e46('0xcde')]([{'option':_0x709e46('0x2066'),'value':_0x709e46('0x6e6')},{'option':_0x709e46('0xc30'),'value':_0x709e46('0xa')},{'option':_0x709e46('0x14be'),'value':_0x709e46('0x53f')},{'option':'no','value':'\x27no\x27'},{'option':_0x709e46('0x4ba'),'value':_0x709e46('0xc29')},{'option':_0x709e46('0x25ee'),'value':'\x27route\x27'}],function(_0x472ecd){var _0x1892a2=_0x709e46;return _0x86640f()[_0x1892a2('0x16e4')](_0x472ecd['value'],new RegExp('\x27','g'),'');}),_0x3128af[_0x709e46('0x26d9')]=_0x86640f()[_0x709e46('0xcde')]([{'option':_0x709e46('0x38c'),'value':'\x27ulaw\x27'},{'option':'alaw','value':_0x709e46('0x993')},{'option':_0x709e46('0xb95'),'value':_0x709e46('0x1e90')},{'option':_0x709e46('0xdd8'),'value':_0x709e46('0x1f15')},{'option':_0x709e46('0x1aa5'),'value':'\x27g729\x27'},{'option':_0x709e46('0x21e3'),'value':'\x27opus\x27'},{'option':'h264','value':_0x709e46('0x76f')}],function(_0x1fb886){var _0xff2e2c=_0x709e46;return _0x86640f()[_0xff2e2c('0x16e4')](_0x1fb886['value'],new RegExp('\x27','g'),'');}),_0x3128af[_0x709e46('0x13cd')]=_0x86640f()[_0x709e46('0xcde')]([{'option':_0x709e46('0x1fc6'),'value':_0x709e46('0x53f')},{'option':'No','value':_0x709e46('0x1223')},{'option':'Always','value':'\x27always\x27'}],function(_0x228a7c){var _0x4210fb=_0x709e46;return _0x86640f()[_0x4210fb('0x16e4')](_0x228a7c[_0x4210fb('0x2228')],new RegExp('\x27','g'),'');}),_0x3128af[_0x709e46('0x16a7')]=_0x86640f()[_0x709e46('0xcde')]([{'option':_0x709e46('0x14be'),'value':'\x27yes\x27'},{'option':'no','value':'\x27no\x27'}],function(_0x299f91){return _0x86640f()['replace'](_0x299f91['value'],new RegExp('\x27','g'),'');}),_0x3128af[_0x709e46('0x1c88')]=_0x5d24a0,_0x3128af[_0x709e46('0x2593')]=_0x4193e7,_0x3128af[_0x709e46('0xdb1')]=_0x981908,_0x3128af[_0x709e46('0x2338')]=_0x32e2e1,_0x3128af[_0x709e46('0x278b')]=_0x2af26b,_0x3128af[_0x709e46('0x142f')]=_0x2e8a7a,_0x3128af[_0x709e46('0x115')]=_0x3bf1e6,_0x3128af[_0x709e46('0x2783')]=_0x5f0ff6,_0x3128af[_0x709e46('0x1244')]=_0x4169ae,_0x3128af[_0x709e46('0x903')]=_0xd32df5;function _0x5d24a0(_0x494ac5){var _0x1fd98c=_0x709e46;_0x1cafe8['go'](_0x1fd98c('0x159d'),{'id':_0x494ac5['id'],'telephone':_0x494ac5,'crudPermissions':_0x3128af[_0x1fd98c('0x5ed')]});}function _0x4193e7(_0x7a9e1b,_0x2548be){var _0x323715=_0x709e46,_0x362c70=_0xefc338[_0x323715('0xa33')]()['title'](_0x323715('0x25b6')+_0x86640f()['startCase'](_0x323715('0x13f4'))+'?')[_0x323715('0x276b')](_0x323715('0x622')+(_0x7a9e1b[_0x323715('0x19fe')]||'telephone')+_0x323715('0x2135')+'\x20will\x20be\x20deleted.')[_0x323715('0x7a7')]('delete\x20telephone')['targetEvent'](_0x2548be)['ok']('OK')[_0x323715('0x3b5')](_0x323715('0x284b'));_0xefc338[_0x323715('0x853')](_0x362c70)[_0x323715('0x21ad')](function(){_0x2e8a7a(_0x7a9e1b);},function(){var _0x56a1e2=_0x323715;console[_0x56a1e2('0x6fb')](_0x56a1e2('0x284b'));});}var _0x1aec75=!![],_0x2fb6fd=0x1;_0x36f9b7['$watch']('vm.query.filter',function(_0x17efc3,_0x280db4){var _0x1c362c=_0x709e46;_0x1aec75?_0x3d345e(function(){_0x1aec75=![];}):(!_0x280db4&&(_0x2fb6fd=_0x3128af['query'][_0x1c362c('0x2376')]),_0x17efc3!==_0x280db4&&(_0x3128af[_0x1c362c('0x77')][_0x1c362c('0x2376')]=0x1),!_0x17efc3&&(_0x3128af[_0x1c362c('0x77')][_0x1c362c('0x2376')]=_0x2fb6fd),_0x3128af[_0x1c362c('0x2338')]());});function _0x981908(_0x5c10b8){var _0x147a07=_0x709e46;_0x3128af[_0x147a07('0x2197')]=_0x5c10b8||{'count':0x0,'rows':[]};}function _0x32e2e1(){var _0x59d5f0=_0x709e46;_0x3128af[_0x59d5f0('0x77')][_0x59d5f0('0x15a5')]=(_0x3128af['query']['page']-0x1)*_0x3128af['query']['limit'],_0x2db6b2[_0x59d5f0('0x21de')](_0x59d5f0('0x1bd8'))?_0x3128af['promise']=_0x4a6acb['user'][_0x59d5f0('0x595')](_0x3128af[_0x59d5f0('0x77')],_0x981908)[_0x59d5f0('0x1376')]:(_0x3128af[_0x59d5f0('0x77')]['id']=_0x3128af['userProfile']['id'],_0x3128af['query']['section']=_0x59d5f0('0x1955'),_0x3128af[_0x59d5f0('0x71b')]=_0x4a6acb['userProfile'][_0x59d5f0('0x321')](_0x3128af['query'],_0x981908)[_0x59d5f0('0x1376')]);}function _0x2af26b(_0x4c4c56,_0x31521b){var _0x2213ff=_0x709e46;_0xefc338[_0x2213ff('0x853')]({'controller':'CreateOrEditTelephoneDialogController','controllerAs':'vm','templateUrl':_0x54f9fe,'parent':angular['element'](_0x1ee0f1[_0x2213ff('0x2452')]),'targetEvent':_0x4c4c56,'clickOutsideToClose':!![],'locals':{'telephone':_0x31521b,'telephones':_0x3128af[_0x2213ff('0x2197')][_0x2213ff('0x1b33')],'license':_0x3128af[_0x2213ff('0x2ff')],'setting':_0x3128af[_0x2213ff('0x21e')],'crudPermissions':_0x3128af[_0x2213ff('0x5ed')]}});}function _0x2e8a7a(_0x1ca3da){var _0x430053=_0x709e46;_0x4a6acb['user'][_0x430053('0x1164')]({'id':_0x1ca3da['id']})['$promise'][_0x430053('0x21ad')](function(){var _0x563e02=_0x430053;_0x86640f()['remove'](_0x3128af['telephones'][_0x563e02('0x1b33')],{'id':_0x1ca3da['id']}),_0x3128af['telephones'][_0x563e02('0x205f')]-=0x1,!_0x3128af[_0x563e02('0x2197')]['rows'][_0x563e02('0x577')]&&_0x3128af['getTelephones'](),_0x1e749c[_0x563e02('0xdb1')]({'title':_0x86640f()[_0x563e02('0x2159')](_0x563e02('0x26fe'))+_0x563e02('0xe64'),'msg':_0x1ca3da[_0x563e02('0x19fe')]?_0x1ca3da['name']+'\x20has\x20been\x20deleted!':''});})[_0x430053('0x1c1d')](function(_0x225a8e){var _0x20f1b7=_0x430053;if(_0x225a8e[_0x20f1b7('0x11c2')]&&_0x225a8e[_0x20f1b7('0x11c2')][_0x20f1b7('0x1a69')]&&_0x225a8e[_0x20f1b7('0x11c2')][_0x20f1b7('0x1a69')][_0x20f1b7('0x577')]){_0x3128af['errors']=_0x225a8e[_0x20f1b7('0x11c2')][_0x20f1b7('0x1a69')]||[{'message':_0x225a8e[_0x20f1b7('0x174f')](),'type':'SYSTEM:DELETEuser'}];for(var _0x6ca6ab=0x0;_0x6ca6ab<_0x225a8e[_0x20f1b7('0x11c2')][_0x20f1b7('0x1a69')]['length'];_0x6ca6ab++){_0x1e749c[_0x20f1b7('0x2092')]({'title':_0x225a8e[_0x20f1b7('0x11c2')][_0x20f1b7('0x1a69')][_0x6ca6ab][_0x20f1b7('0x7fa')],'msg':_0x225a8e['data'][_0x20f1b7('0x1a69')][_0x6ca6ab][_0x20f1b7('0x1224')]});}}else _0x1e749c[_0x20f1b7('0x2092')]({'title':_0x225a8e[_0x20f1b7('0x209')]?_0x20f1b7('0x22d')+_0x225a8e['status']+'\x20-\x20'+_0x225a8e[_0x20f1b7('0x1808')]:_0x20f1b7('0x1173'),'msg':_0x225a8e['data']?JSON[_0x20f1b7('0x25e')](_0x225a8e['data'][_0x20f1b7('0x1224')]):_0x225a8e['message']||_0x225a8e[_0x20f1b7('0x174f')]()});});}function _0x3bf1e6(){var _0x59b1cf=_0x709e46,_0x48a180=angular['copy'](_0x3128af[_0x59b1cf('0x2442')]);return _0x3128af[_0x59b1cf('0x2442')]=[],_0x48a180;}function _0x5f0ff6(_0x3e9f0d){var _0x48c705=_0x709e46,_0x32bc1b=_0xefc338[_0x48c705('0xa33')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20telephones?')[_0x48c705('0x276b')](''+_0x3128af[_0x48c705('0x2442')][_0x48c705('0x577')]+_0x48c705('0xd74')+_0x48c705('0x25e0'))[_0x48c705('0x7a7')](_0x48c705('0x672'))[_0x48c705('0x1e6d')](_0x3e9f0d)['ok']('OK')[_0x48c705('0x3b5')]('CANCEL');_0xefc338['show'](_0x32bc1b)[_0x48c705('0x21ad')](function(){var _0x105028=_0x48c705;_0x3128af[_0x105028('0x2442')][_0x105028('0x1a52')](function(_0x179a28){_0x2e8a7a(_0x179a28);}),_0x3128af[_0x105028('0x2442')]=[];});}function _0x4169ae(){var _0x580bec=_0x709e46;_0x3128af[_0x580bec('0x2442')]=[];}function _0xd32df5(){var _0x3e3f1a=_0x709e46;_0x3128af[_0x3e3f1a('0x2442')]=_0x3128af[_0x3e3f1a('0x2197')][_0x3e3f1a('0x1b33')];}}const _0x15342c=_0x4f545b;_0x167eb7[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),'toasty',_0x3877e3('0x10b7'),_0x3877e3('0x758'),'api',_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x167eb7(_0x2e251b,_0x5b3a73,_0x3e638e,_0x410fe0,_0x4dccbb,_0xedf792,_0x2f791e,_0x501469,_0x340de8,_0x51e639,_0x4ef685,_0x5b01c9,_0x4ac81e,_0x4ef99a){var _0x1bb530=_0x3877e3,_0x5e7463=this;_0x5e7463[_0x1bb530('0x123f')]=_0x4ef685[_0x1bb530('0x15ed')](),_0x5e7463[_0x1bb530('0x1a69')]=[],_0x5e7463[_0x1bb530('0x21e')]=_0x4ac81e,_0x5e7463[_0x1bb530('0x2ff')]=_0x5b01c9,_0x5e7463['crudPermissions']=_0x4ef99a,_0x5e7463['hasModulePermissions']={},_0x5e7463[_0x1bb530('0x1432')]=_0x5e7463[_0x1bb530('0x21e')]&&_0x5e7463[_0x1bb530('0x21e')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5e7463[_0x1bb530('0x4b4')]=_0x1bb530('0x15a8'),_0x5e7463[_0x1bb530('0x758')]=angular['copy'](_0x340de8),_0x5e7463[_0x1bb530('0x10b7')]=_0x501469,_0x5e7463[_0x1bb530('0xd66')]=![];!_0x5e7463['userProfile']&&(_0x5e7463[_0x1bb530('0x758')]={'crudPermissions':['r']},_0x5e7463[_0x1bb530('0x4b4')]=_0x1bb530('0x15c9'),_0x5e7463[_0x1bb530('0xd66')]=!![]);_0x5e7463['addNewUserProfile']=_0xb6c5e5,_0x5e7463[_0x1bb530('0x114b')]=_0x4d8c5b,_0x5e7463[_0x1bb530('0x72b')]=_0x2d5f53,_0x5e7463[_0x1bb530('0x279')]=_0x36dafc,_0x5e7463[_0x1bb530('0x167')]=_0xc838c2;function _0xb6c5e5(){var _0x433cdc=_0x1bb530;_0x5e7463[_0x433cdc('0x1a69')]=[],_0x51e639[_0x433cdc('0x758')][_0x433cdc('0x186f')](_0x5e7463[_0x433cdc('0x758')])[_0x433cdc('0x1376')][_0x433cdc('0x21ad')](function(_0x51f26e){var _0x4d02b2=_0x433cdc;_0x5f49f7(_0x51f26e),_0x5e7463[_0x4d02b2('0x10b7')][_0x4d02b2('0xd0c')](_0x51f26e[_0x4d02b2('0x3bc')]()),_0x2f791e['success']({'title':'UserProfile\x20properly\x20created','msg':_0x5e7463[_0x4d02b2('0x758')][_0x4d02b2('0x19fe')]?_0x5e7463['userProfile']['name']+_0x4d02b2('0x1694'):''}),_0xc838c2(_0x51f26e);})[_0x433cdc('0x1c1d')](function(_0x539c1d){var _0x10a3e4=_0x433cdc;if(_0x539c1d[_0x10a3e4('0x11c2')]&&_0x539c1d[_0x10a3e4('0x11c2')][_0x10a3e4('0x1a69')]&&_0x539c1d['data'][_0x10a3e4('0x1a69')][_0x10a3e4('0x577')]){_0x5e7463['errors']=_0x539c1d[_0x10a3e4('0x11c2')]['errors']||[{'message':_0x539c1d['toString'](),'type':_0x10a3e4('0x1e0d')}];for(var _0x7dd828=0x0;_0x7dd828<_0x539c1d[_0x10a3e4('0x11c2')][_0x10a3e4('0x1a69')][_0x10a3e4('0x577')];_0x7dd828+=0x1){_0x2f791e[_0x10a3e4('0x2092')]({'title':_0x539c1d[_0x10a3e4('0x11c2')]['errors'][_0x7dd828][_0x10a3e4('0x7fa')],'msg':_0x539c1d[_0x10a3e4('0x11c2')][_0x10a3e4('0x1a69')][_0x7dd828][_0x10a3e4('0x1224')]});}}else _0x2f791e[_0x10a3e4('0x2092')]({'title':_0x539c1d[_0x10a3e4('0x209')]?_0x10a3e4('0x22d')+_0x539c1d[_0x10a3e4('0x209')]+_0x10a3e4('0xa99')+_0x539c1d[_0x10a3e4('0x1808')]:_0x10a3e4('0x1e0d'),'msg':_0x539c1d[_0x10a3e4('0x11c2')]?JSON[_0x10a3e4('0x25e')](_0x539c1d['data'][_0x10a3e4('0x1224')]):_0x539c1d[_0x10a3e4('0x174f')]()});});}function _0x4d8c5b(){var _0x1db842=_0x1bb530;_0x5e7463[_0x1db842('0x1a69')]=[],_0x51e639[_0x1db842('0x758')][_0x1db842('0x5ef')]({'id':_0x5e7463[_0x1db842('0x758')]['id']},_0x5e7463[_0x1db842('0x758')])[_0x1db842('0x1376')]['then'](function(_0x4ce748){var _0x24d62b=_0x1db842,_0x5779be=_0x86640f()[_0x24d62b('0x1d2e')](_0x5e7463[_0x24d62b('0x10b7')],{'id':_0x4ce748['id']});_0x5779be&&_0x86640f()[_0x24d62b('0xd0e')](_0x5779be,_0x86640f()['pick'](_0x4ce748['toJSON'](),_0x86640f()['keys'](_0x5779be))),_0x2f791e[_0x24d62b('0xdb1')]({'title':_0x24d62b('0x1c3b'),'msg':_0x5e7463[_0x24d62b('0x758')][_0x24d62b('0x19fe')]?_0x5e7463[_0x24d62b('0x758')][_0x24d62b('0x19fe')]+_0x24d62b('0x2249'):''}),_0xc838c2(_0x4ce748);})[_0x1db842('0x1c1d')](function(_0x5056b8){var _0x577cd9=_0x1db842;if(_0x5056b8['data']&&_0x5056b8[_0x577cd9('0x11c2')][_0x577cd9('0x1a69')]&&_0x5056b8[_0x577cd9('0x11c2')]['errors'][_0x577cd9('0x577')]){_0x5e7463[_0x577cd9('0x1a69')]=_0x5056b8[_0x577cd9('0x11c2')][_0x577cd9('0x1a69')]||[{'message':_0x5056b8[_0x577cd9('0x174f')](),'type':_0x577cd9('0xcb0')}];for(var _0x371dcd=0x0;_0x371dcd<_0x5056b8[_0x577cd9('0x11c2')][_0x577cd9('0x1a69')][_0x577cd9('0x577')];_0x371dcd++){_0x2f791e[_0x577cd9('0x2092')]({'title':_0x5056b8[_0x577cd9('0x11c2')][_0x577cd9('0x1a69')][_0x371dcd][_0x577cd9('0x7fa')],'msg':_0x5056b8[_0x577cd9('0x11c2')][_0x577cd9('0x1a69')][_0x371dcd][_0x577cd9('0x1224')]});}}else _0x2f791e['error']({'title':_0x5056b8[_0x577cd9('0x209')]?_0x577cd9('0x22d')+_0x5056b8[_0x577cd9('0x209')]+'\x20-\x20'+_0x5056b8['statusText']:_0x577cd9('0xcb0'),'msg':_0x5056b8['data']?JSON[_0x577cd9('0x25e')](_0x5056b8[_0x577cd9('0x11c2')][_0x577cd9('0x1224')]):_0x5056b8[_0x577cd9('0x174f')]()});});}function _0x2d5f53(_0x33a7ec){var _0x5915a6=_0x1bb530;_0x5e7463[_0x5915a6('0x1a69')]=[];var _0x4a7430=_0x410fe0[_0x5915a6('0xa33')]()[_0x5915a6('0x4b4')](_0x5915a6('0x196b'))[_0x5915a6('0x13fb')](_0x5915a6('0x1962'))[_0x5915a6('0x7a7')](_0x5915a6('0xa24'))['ok'](_0x5915a6('0xbfd'))['cancel'](_0x5915a6('0x1f40'))[_0x5915a6('0x1e6d')](_0x33a7ec);_0x410fe0['show'](_0x4a7430)[_0x5915a6('0x21ad')](function(){var _0x1157ef=_0x5915a6;_0x51e639['userProfile']['delete']({'id':_0x5e7463[_0x1157ef('0x758')]['id']})[_0x1157ef('0x1376')][_0x1157ef('0x21ad')](function(){var _0xd4d17f=_0x1157ef;_0x86640f()[_0xd4d17f('0x16a2')](_0x5e7463['userProfiles'],{'id':_0x5e7463[_0xd4d17f('0x758')]['id']}),_0x2f791e[_0xd4d17f('0xdb1')]({'title':_0xd4d17f('0x1431'),'msg':(_0x5e7463[_0xd4d17f('0x758')][_0xd4d17f('0x19fe')]||_0xd4d17f('0x758'))+_0xd4d17f('0xb4a')}),_0xc838c2(_0x5e7463[_0xd4d17f('0x758')]);})['catch'](function(_0x57649f){var _0x5cd5dc=_0x1157ef;if(_0x57649f[_0x5cd5dc('0x11c2')]&&_0x57649f[_0x5cd5dc('0x11c2')][_0x5cd5dc('0x1a69')]&&_0x57649f['data'][_0x5cd5dc('0x1a69')][_0x5cd5dc('0x577')]){_0x5e7463['errors']=_0x57649f['data']['errors']||[{'message':_0x57649f[_0x5cd5dc('0x174f')](),'type':'api.userProfile.delete'}];for(var _0x1e7681=0x0;_0x1e7681<_0x57649f[_0x5cd5dc('0x11c2')]['errors'][_0x5cd5dc('0x577')];_0x1e7681++){_0x2f791e[_0x5cd5dc('0x2092')]({'title':_0x57649f['data'][_0x5cd5dc('0x1a69')][_0x1e7681][_0x5cd5dc('0x7fa')],'msg':_0x57649f[_0x5cd5dc('0x11c2')][_0x5cd5dc('0x1a69')][_0x1e7681][_0x5cd5dc('0x1224')]});}}else _0x2f791e[_0x5cd5dc('0x2092')]({'title':_0x57649f[_0x5cd5dc('0x209')]?_0x5cd5dc('0x22d')+_0x57649f[_0x5cd5dc('0x209')]+_0x5cd5dc('0xa99')+_0x57649f[_0x5cd5dc('0x1808')]:_0x5cd5dc('0x4e2'),'msg':_0x57649f[_0x5cd5dc('0x11c2')]?JSON[_0x5cd5dc('0x25e')](_0x57649f[_0x5cd5dc('0x11c2')]['message']):_0x57649f[_0x5cd5dc('0x1224')]||_0x57649f[_0x5cd5dc('0x174f')]()});});},function(){});}function _0x5f49f7(_0xf86b4f){var _0x2e9d22=_0x1bb530,_0x555ec6=[];_0xf86b4f['crudPermissions'][_0x2e9d22('0x1a52')](function(_0xd9e7dd){var _0x21ab87=_0x2e9d22,_0x2a5083;switch(_0xd9e7dd){case'r':_0x2a5083=_0x21ab87('0xb76');break;case'e':_0x2a5083=_0x21ab87('0xf2');break;case'd':_0x2a5083=_0x21ab87('0x1e78');break;}_0x555ec6[_0x21ab87('0x206c')](_0xedf792['instant'](_0x21ab87('0x1914')+_0x2a5083));}),_0xf86b4f[_0x2e9d22('0x2109')]=_0x555ec6[_0x2e9d22('0x136')](',\x20');}function _0x36dafc(_0x14713c){return _0x14713c===null?undefined:new Date(_0x14713c);}function _0xc838c2(_0x3d532c){var _0xe97693=_0x1bb530;_0x410fe0[_0xe97693('0x1c24')](_0x3d532c);}}const _0x3c0356=_0x167eb7;_0x3be5d4[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),_0x3877e3('0xa9f'),_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x758'),_0x3877e3('0x10b7'),_0x3877e3('0x13c1')];function _0x3be5d4(_0x4b720b,_0x474c42,_0x31de24,_0x376516,_0x241791,_0x2fe498,_0x478b58){var _0x59db53=_0x3877e3,_0x1b9e8c=this;_0x1b9e8c[_0x59db53('0xd66')]=!![],_0x1b9e8c[_0x59db53('0x758')]=angular[_0x59db53('0xd75')](_0x241791),_0x1b9e8c[_0x59db53('0x10b7')]=_0x2fe498,_0x1b9e8c[_0x59db53('0x4b4')]=_0x478b58[_0x59db53('0x183e')](_0x59db53('0x1bd3'));_0x241791&&_0x241791[_0x59db53('0x19fe')]&&(_0x1b9e8c[_0x59db53('0x4b4')]+=':\x20'+_0x241791['name']);_0x1b9e8c['cloneUserProfile']=_0x59d335,_0x1b9e8c['closeDialog']=_0x5cd2b6;function _0x59d335(){var _0x5dfa88=_0x59db53;return _0x376516['userProfile']['clone']({'id':_0x241791['id']},_0x1b9e8c[_0x5dfa88('0x758')])['$promise'][_0x5dfa88('0x21ad')](function(_0x29b648){var _0x2e6852=_0x5dfa88;_0x396089(_0x29b648),_0x1b9e8c[_0x2e6852('0x10b7')]['unshift'](_0x29b648[_0x2e6852('0x3bc')]()),_0x31de24[_0x2e6852('0xdb1')]({'title':_0x2e6852('0x796'),'msg':_0x1b9e8c[_0x2e6852('0x758')][_0x2e6852('0x19fe')]?_0x1b9e8c[_0x2e6852('0x758')][_0x2e6852('0x19fe')]+'\x20has\x20been\x20cloned!':''}),_0x474c42['go']('app.staff.userProfiles.edit',{'id':_0x29b648['id']}),_0x5cd2b6(_0x29b648);})['catch'](function(_0x5c0208){var _0x178b1c=_0x5dfa88;if(_0x5c0208[_0x178b1c('0x11c2')]&&_0x5c0208[_0x178b1c('0x11c2')][_0x178b1c('0x1a69')]&&_0x5c0208[_0x178b1c('0x11c2')][_0x178b1c('0x1a69')][_0x178b1c('0x577')]){_0x1b9e8c[_0x178b1c('0x1a69')]=_0x5c0208[_0x178b1c('0x11c2')]['errors']||[{'message':_0x5c0208[_0x178b1c('0x174f')](),'type':_0x178b1c('0x2e5')}];for(var _0xc04062=0x0;_0xc04062<_0x5c0208['data']['errors']['length'];_0xc04062+=0x1){_0x31de24[_0x178b1c('0x2092')]({'title':_0x5c0208[_0x178b1c('0x11c2')][_0x178b1c('0x1a69')][_0xc04062][_0x178b1c('0x7fa')],'msg':_0x5c0208[_0x178b1c('0x11c2')][_0x178b1c('0x1a69')][_0xc04062][_0x178b1c('0x1224')]});}}else _0x31de24[_0x178b1c('0x2092')]({'title':_0x5c0208[_0x178b1c('0x209')]?'API:'+_0x5c0208[_0x178b1c('0x209')]+_0x178b1c('0xa99')+_0x5c0208[_0x178b1c('0x1808')]:'api.userProfile.clone','msg':_0x5c0208[_0x178b1c('0x11c2')]?JSON[_0x178b1c('0x25e')](_0x5c0208[_0x178b1c('0x11c2')][_0x178b1c('0x1224')]):_0x5c0208['toString']()});});}function _0x396089(_0x55494d){var _0x56b65c=_0x59db53,_0x4b52b7=[];_0x55494d[_0x56b65c('0x5ed')][_0x56b65c('0x1a52')](function(_0x1e169d){var _0x2f4a02=_0x56b65c,_0x399d9d;switch(_0x1e169d){case'r':_0x399d9d=_0x2f4a02('0xb76');break;case'e':_0x399d9d='EDIT_PERMISSION';break;case'd':_0x399d9d='DELETE_PERMISSION';break;}_0x4b52b7[_0x2f4a02('0x206c')](_0x478b58[_0x2f4a02('0x183e')](_0x2f4a02('0x1914')+_0x399d9d));}),_0x55494d[_0x56b65c('0x2109')]=_0x4b52b7[_0x56b65c('0x136')](',\x20');}function _0x5cd2b6(_0x2d78d7){var _0xd1a944=_0x59db53;_0x4b720b[_0xd1a944('0x1c24')](_0x2d78d7);}}const _0x3d4af0=_0x3be5d4,_0x1042b6=_0x398308['p']+_0x3877e3('0x27ef');_0x33a115[_0x3877e3('0x1a81')]=['$document',_0x3877e3('0x1850'),'$translate','$q','api',_0x3877e3('0x48e'),'Auth',_0x3877e3('0x1908')];function _0x33a115(_0x3a704e,_0x211e88,_0x2b2c31,_0x58444b,_0x666ce9,_0x5192d4,_0xfcfdc1,_0x28c9ab){var _0x2d81cb=_0x3877e3,_0x5bf509=this;_0x5bf509[_0x2d81cb('0x758')]={},_0x5bf509['license']={},_0x5bf509['navigation']=_0x5192d4[_0x2d81cb('0xca3')](),_0x5bf509[_0x2d81cb('0x6b8')]=_0x5bf509['navigation'][0x0]['children'],_0x5bf509['statusList']=[{'id':0x0,'name':_0x2d81cb('0x25cd'),'color':_0x2d81cb('0x1372'),'info':_0x2d81cb('0x26ea'),'tag':_0x2d81cb('0xa1a')},{'id':0x1,'name':_0x2d81cb('0x21ea'),'color':_0x2d81cb('0xba9'),'info':_0x2d81cb('0x387'),'tag':_0x2d81cb('0x6bb')},{'id':0x2,'name':_0x2d81cb('0x1870'),'color':'grey-A400-bg','info':'No\x20resources\x20enabled','tag':'disabled'},{'id':0x3,'name':_0x2d81cb('0x1bc7'),'color':'red-A700-bg','info':_0x2d81cb('0xb8d'),'tag':_0x2d81cb('0x139')},{'id':0x4,'name':_0x2d81cb('0xf57'),'color':_0x2d81cb('0x517'),'info':_0x2d81cb('0xe5a'),'tag':_0x2d81cb('0x1a4f')}],_0x5bf509[_0x2d81cb('0x43')]=[{'title':_0x2d81cb('0x1bd4'),'translate':_0x2d81cb('0x5b'),'id':0x64}],_0x5bf509[_0x2d81cb('0x1d75')]=_0x2718af,_0x5bf509['onChangeEnableAllResources']=_0x173503,_0x5bf509[_0x2d81cb('0x1cd1')]=_0x2e2f2b,_0x5bf509['checkSectionResources']=_0xe822d3;function _0x2718af(_0x318ca5,_0x711f34){var _0xc5604a=_0x2d81cb;_0x5bf509[_0xc5604a('0x758')]=_0x318ca5,_0x5bf509[_0xc5604a('0x2ff')]=_0x711f34;}function _0x173503(_0x483ca0){var _0xcfaa5e=_0x2d81cb,_0x30b09b=typeof _0x483ca0[_0xcfaa5e('0x25b5')]!==_0xcfaa5e('0xddc')&&!_0x483ca0['permissions'][_0xcfaa5e('0x773')]?!![]:![],_0x5e0e81=_0x483ca0[_0xcfaa5e('0x4b4')]==='Marketplace'?_0xcfaa5e('0x1818'):_0x483ca0[_0xcfaa5e('0x4b4')];if(_0x483ca0[_0xcfaa5e('0x209')][_0xcfaa5e('0x19fe')]!==_0xcfaa5e('0x25cd')){var _0x45c568=[];if(!_0x30b09b){var _0x139505=_0x211e88[_0xcfaa5e('0xa33')]({'skipHide':!![]})[_0xcfaa5e('0x4b4')](_0xcfaa5e('0xb38'))[_0xcfaa5e('0x226d')](_0x2b2c31['instant'](_0xcfaa5e('0xc1f'),{'sectionName':_0x2b2c31[_0xcfaa5e('0x183e')](_0x483ca0['translate'])}))[_0xcfaa5e('0x7a7')](_0xcfaa5e('0xb38'))['ok'](_0x2b2c31[_0xcfaa5e('0x183e')](_0xcfaa5e('0x1cf5')))[_0xcfaa5e('0x3b5')](_0x2b2c31[_0xcfaa5e('0x183e')](_0xcfaa5e('0x194e')));_0x211e88[_0xcfaa5e('0x853')](_0x139505)[_0xcfaa5e('0x21ad')](function(){var _0x19b46e=_0xcfaa5e;switch(_0x5e0e81){case _0x19b46e('0x1bd4'):_0x86640f()[_0x19b46e('0x26c3')](_0x5bf509['dashboardSections'],function(_0x136ccf){var _0x2aca28=_0x19b46e;_0x45c568[_0x2aca28('0x206c')]({'category':_0x5e0e81,'sectionId':_0x136ccf['id'],'name':_0x136ccf[_0x2aca28('0x4b4')],'enabled':!![],'autoAssociation':!![],'crudPermissions':_0x86640f()[_0x2aca28('0x26c3')](_0x5bf509['userProfile'][_0x2aca28('0x5ed')])[_0x2aca28('0x136')]('')});});break;default:_0x86640f()[_0x19b46e('0x26c3')](_0x483ca0[_0x19b46e('0xc9')],function(_0x3164b8){var _0x577c0c=_0x19b46e,_0x3705e5=typeof _0x3164b8[_0x577c0c('0x25b5')]!=_0x577c0c('0xddc')&&_0x3164b8['permissions']['hidden']?!![]:![];if(!_0x3705e5){var _0x2b1613=_0x3164b8[_0x577c0c('0x4b4')];switch(_0x5e0e81){case'CallySquare':_0x2b1613=_0x2b1613===_0x577c0c('0x3d9')?'SquareProjects':_0x2b1613;break;}_0x45c568[_0x577c0c('0x206c')]({'category':_0x5e0e81,'sectionId':_0x3164b8['id'],'name':_0x2b1613,'enabled':!![],'autoAssociation':!![],'crudPermissions':_0x86640f()[_0x577c0c('0x26c3')](_0x5bf509[_0x577c0c('0x758')][_0x577c0c('0x5ed')])['join']('')});}});break;}return _0x666ce9[_0x19b46e('0x758')]['addSections']({'id':_0x5bf509[_0x19b46e('0x758')]['id']},_0x45c568)['$promise'][_0x19b46e('0x21ad')](function(){var _0x67ab86=_0x19b46e;_0x483ca0[_0x67ab86('0x209')]=_0x477f53(_0x483ca0,_0x67ab86('0xa1a')),_0x28c9ab[_0x67ab86('0xdb1')]({'title':_0x2b2c31[_0x67ab86('0x183e')]('STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_TITLE',{'sectionName':_0x2b2c31[_0x67ab86('0x183e')](_0x483ca0['translate']),'userProfileName':_0x5bf509[_0x67ab86('0x758')][_0x67ab86('0x19fe')]}),'msg':_0x2b2c31[_0x67ab86('0x183e')](_0x67ab86('0x2754'),{'sectionName':_0x2b2c31[_0x67ab86('0x183e')](_0x483ca0[_0x67ab86('0x11db')]),'userProfileName':_0x5bf509[_0x67ab86('0x758')][_0x67ab86('0x19fe')]})});});})[_0xcfaa5e('0x1c1d')](function(_0x51c9fb){var _0x4f962e=_0xcfaa5e;_0x51c9fb?_0x28c9ab[_0x4f962e('0x2092')]({'title':_0x51c9fb[_0x4f962e('0x209')]?_0x4f962e('0x22d')+_0x51c9fb[_0x4f962e('0x209')]+_0x4f962e('0xa99')+_0x51c9fb['statusText']:_0x4f962e('0x315'),'msg':_0x51c9fb[_0x4f962e('0x209')]?JSON[_0x4f962e('0x25e')](_0x51c9fb['data']):_0x51c9fb[_0x4f962e('0x174f')]()}):_0x483ca0['status']=_0x477f53(_0x483ca0,_0x483ca0[_0x4f962e('0x209')][_0x4f962e('0x907')]);});}else return _0x45c568[_0xcfaa5e('0x206c')]({'category':_0x5e0e81,'sectionId':_0x483ca0['id'],'name':_0x5e0e81,'enabled':!![],'crudPermissions':_0xcfaa5e('0x1b84')}),_0x666ce9[_0xcfaa5e('0x758')][_0xcfaa5e('0xa8b')]({'id':_0x5bf509[_0xcfaa5e('0x758')]['id']},_0x45c568)['$promise']['then'](function(){var _0x327592=_0xcfaa5e;_0x483ca0['status']=_0x477f53(_0x483ca0,_0x327592('0xa1a')),_0x28c9ab[_0x327592('0xdb1')]({'title':_0x2b2c31['instant']('STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_TITLE',{'sectionName':_0x2b2c31[_0x327592('0x183e')](_0x483ca0['translate']),'userProfileName':_0x5bf509['userProfile'][_0x327592('0x19fe')]}),'msg':_0x2b2c31[_0x327592('0x183e')]('STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_MESSAGE_NO_RESOURCES',{'sectionName':_0x2b2c31['instant'](_0x483ca0[_0x327592('0x11db')]),'userProfileName':_0x5bf509[_0x327592('0x758')][_0x327592('0x19fe')]})});})['catch'](function(_0x2defb7){var _0x2e777c=_0xcfaa5e;_0x28c9ab[_0x2e777c('0x2092')]({'title':_0x2defb7[_0x2e777c('0x209')]?_0x2e777c('0x22d')+_0x2defb7[_0x2e777c('0x209')]+_0x2e777c('0xa99')+_0x2defb7['statusText']:'SYSTEM:USERPROFILE.ADDSECTIONS','msg':_0x2defb7[_0x2e777c('0x209')]?JSON[_0x2e777c('0x25e')](_0x2defb7[_0x2e777c('0x11c2')]):_0x2defb7['toString']()});});}else{if(_0x483ca0[_0xcfaa5e('0x209')][_0xcfaa5e('0x19fe')]===_0xcfaa5e('0x25cd')){_0x483ca0[_0xcfaa5e('0x209')]=_0x477f53(_0x483ca0,_0xcfaa5e('0x30'));var _0x2c5eb4=[];switch(_0x5e0e81){case _0xcfaa5e('0x1c68'):case _0xcfaa5e('0x43e'):_0x2c5eb4=[_0x483ca0['id']];break;case _0xcfaa5e('0x1bd4'):_0x2c5eb4=_0x86640f()[_0xcfaa5e('0x26c3')](_0x5bf509[_0xcfaa5e('0x43')],function(_0x17ab0d){return _0x17ab0d['id'];});break;default:_0x2c5eb4=_0x86640f()[_0xcfaa5e('0x26c3')](_0x483ca0[_0xcfaa5e('0xc9')],function(_0x37114c){return _0x37114c['id'];});break;}return _0x666ce9[_0xcfaa5e('0x758')][_0xcfaa5e('0x26b3')]({'id':_0x5bf509['userProfile']['id'],'ids':_0x2c5eb4})[_0xcfaa5e('0x1376')]['then'](function(){var _0x5491c5=_0xcfaa5e;_0x28c9ab[_0x5491c5('0xdb1')]({'title':_0x2b2c31[_0x5491c5('0x183e')](_0x5491c5('0x2564'),{'sectionName':_0x2b2c31[_0x5491c5('0x183e')](_0x483ca0[_0x5491c5('0x11db')]),'userProfileName':_0x5bf509[_0x5491c5('0x758')]['name']}),'msg':_0x2b2c31[_0x5491c5('0x183e')](_0x5491c5('0x1d47'),{'sectionName':_0x2b2c31[_0x5491c5('0x183e')](_0x483ca0[_0x5491c5('0x11db')]),'userProfileName':_0x5bf509[_0x5491c5('0x758')][_0x5491c5('0x19fe')]})});})[_0xcfaa5e('0x1c1d')](function(_0x342156){var _0x19721d=_0xcfaa5e;_0x28c9ab[_0x19721d('0x2092')]({'title':_0x342156[_0x19721d('0x209')]?_0x19721d('0x22d')+_0x342156['status']+_0x19721d('0xa99')+_0x342156[_0x19721d('0x1808')]:_0x19721d('0x105b'),'msg':_0x342156[_0x19721d('0x209')]?JSON[_0x19721d('0x25e')](_0x342156['data']):_0x342156[_0x19721d('0x174f')]()});});}}}function _0x2e2f2b(_0x3ad737,_0x43b679){var _0x2cca1d=_0x2d81cb,_0x5a8ca5=_0x211e88[_0x2cca1d('0x853')]({'controller':_0x2cca1d('0x71f'),'controllerAs':'vm','templateUrl':_0x1042b6,'parent':angular['element'](_0x3a704e[_0x2cca1d('0x2452')]),'targetEvent':_0x43b679,'clickOutsideToClose':![],'locals':{'userProfile':_0x5bf509['userProfile'],'userProfiles':[],'section':_0x3ad737}});_0x5a8ca5[_0x2cca1d('0x21ad')](function(){_0xe822d3(_0x3ad737);});}function _0x477f53(_0x4d1297,_0x236e50){var _0x5ec132=_0x2d81cb;_0x4d1297[_0x5ec132('0x112c')]=_0x56cea2(_0x236e50);switch(_0x236e50){case'full':return _0x86640f()['find'](_0x5bf509[_0x5ec132('0x2025')],[_0x5ec132('0x907'),_0x5ec132('0xa1a')]);case _0x5ec132('0x6bb'):return _0x86640f()[_0x5ec132('0x1d2e')](_0x5bf509[_0x5ec132('0x2025')],[_0x5ec132('0x907'),_0x5ec132('0x6bb')]);case _0x5ec132('0x30'):return _0x86640f()[_0x5ec132('0x1d2e')](_0x5bf509[_0x5ec132('0x2025')],[_0x5ec132('0x907'),_0x5ec132('0x30')]);case'unlicensed':return _0x86640f()[_0x5ec132('0x1d2e')](_0x5bf509['statusList'],[_0x5ec132('0x907'),_0x5ec132('0x139')]);case'unknown':return _0x86640f()[_0x5ec132('0x1d2e')](_0x5bf509['statusList'],['tag',_0x5ec132('0x1a4f')]);default:return _0x86640f()[_0x5ec132('0x1d2e')](_0x5bf509[_0x5ec132('0x2025')],[_0x5ec132('0x907'),_0x5ec132('0x1a4f')]);}}function _0x18587a(_0x37e452){return _0x58444b(function(_0x8b0cf4,_0x504c93){var _0x562928=a0_0x2e7f,_0x367a22=typeof _0x37e452[_0x562928('0x27b5')]!==_0x562928('0xddc')&&_0x86640f()[_0x562928('0xb34')](_0x37e452[_0x562928('0x25ee')],_0x562928('0x1da'));_0x367a22?_0x32987b(_0x37e452)[_0x562928('0x21ad')](function(_0x136f34){_0x8b0cf4(_0x136f34);})['catch'](function(_0x44a4c2){_0x504c93(_0x44a4c2);}):_0x381b15(_0x37e452)[_0x562928('0x21ad')](function(_0x2a4eda){_0x8b0cf4(_0x2a4eda);})[_0x562928('0x1c1d')](function(_0xd29ed4){_0x504c93(_0xd29ed4);});});}function _0x32987b(_0x3ed9f8){return _0x58444b(function(_0x508a92,_0x27c514){var _0xec1f44=a0_0x2e7f,_0x5d24c1=typeof _0x3ed9f8[_0xec1f44('0x27b5')]!=='undefined'&&_0x3ed9f8['channel']===_0xec1f44('0x207a')?_0xec1f44('0x2300'):_0xec1f44('0x923');return _0x666ce9[_0x3ed9f8[_0xec1f44('0x25ee')]][_0xec1f44('0x595')]({'fields':'id,name,strategy,type','channel':_0x3ed9f8['channel']===_0xec1f44('0x207a')?'voice':_0x3ed9f8[_0xec1f44('0x27b5')],'type':_0x5d24c1,'nolimit':!![]})[_0xec1f44('0x1376')][_0xec1f44('0x21ad')](function(_0x3f5604){_0x508a92(_0x3f5604);})['catch'](function(_0x263490){_0x27c514(_0x263490);});});}function _0x381b15(_0x58de1d){return _0x58444b(function(_0x494215,_0x3a886d){var _0x513db2=a0_0x2e7f,_0x5dd6b6,_0x4d937b,_0x521091=![],_0xcfdbc5=![];switch(_0x58de1d['route']){case _0x513db2('0x1b0c'):switch(_0x58de1d[_0x513db2('0x4b4')]){case _0x513db2('0x1f22'):_0x5dd6b6=_0x513db2('0x923');break;case'OutboundRoutes':_0x5dd6b6=_0x513db2('0x2300');break;case _0x513db2('0x1b43'):_0x5dd6b6=_0x513db2('0x201f');break;}break;case'interval':_0x521091=!![];break;case _0x513db2('0x22c8'):_0xcfdbc5=!![];break;case'user':switch(_0x58de1d['title']){case _0x513db2('0xfed'):_0x4d937b=_0x513db2('0x2402');break;case _0x513db2('0x1955'):_0x4d937b='telephone';break;case _0x513db2('0x6cc'):_0x4d937b=_0x513db2('0x1775');break;}break;}if(_0x58de1d[_0x513db2('0x4b4')]===_0x513db2('0xdef')){if(_0x58de1d[_0x513db2('0x24af')])switch(_0x58de1d[_0x513db2('0x24af')]){case _0x513db2('0x1e6e'):_0x58de1d[_0x513db2('0x25ee')]=_0x513db2('0xc42');break;case _0x513db2('0xf50'):_0x58de1d[_0x513db2('0x25ee')]=_0x513db2('0x2041');break;}else return _0x666ce9['analyticDefaultReport'][_0x513db2('0x595')]({'nolimit':!![]})[_0x513db2('0x1376')][_0x513db2('0x21ad')](function(_0x2386fa){var _0x1c59d4=_0x513db2;_0x666ce9[_0x1c59d4('0x2041')][_0x1c59d4('0x595')]({'nolimit':!![]})[_0x1c59d4('0x1376')]['then'](function(_0xc178ff){var _0x9d90d7=_0x1c59d4,_0x483c47=_0x86640f()[_0x9d90d7('0x211e')](_0x2386fa['rows'],_0xc178ff[_0x9d90d7('0x1b33')]);_0x494215({'count':_0x483c47[_0x9d90d7('0x577')],'rows':_0x483c47[_0x9d90d7('0x1b33')]});});})['catch'](function(_0x2b2c7d){_0x3a886d(_0x2b2c7d);});}return _0x666ce9[_0x58de1d[_0x513db2('0x25ee')]][_0x513db2('0x595')]({'role':_0x4d937b?_0x4d937b:undefined,'type':_0x5dd6b6?_0x5dd6b6:undefined,'VoiceExtensionId':_0x5dd6b6?_0x513db2('0x27a'):undefined,'IntervalId':_0x521091?_0x513db2('0x27a'):undefined,'MailAccountId':_0xcfdbc5?_0x513db2('0x27a'):undefined,'FaxAccountId':_0xcfdbc5?_0x513db2('0x27a'):undefined,'SmsAccountId':_0xcfdbc5?_0x513db2('0x27a'):undefined,'OpenchannelAccountId':_0xcfdbc5?_0x513db2('0x27a'):undefined,'ChatWebsiteId':_0xcfdbc5?_0x513db2('0x27a'):undefined,'WhatsappAccountId':_0xcfdbc5?_0x513db2('0x27a'):undefined,'ListId':_0xcfdbc5?_0x513db2('0x27a'):undefined,'nolimit':!![]})['$promise']['then'](function(_0x2de8be){_0x494215(_0x2de8be);})['catch'](function(_0x289900){_0x3a886d(_0x289900);});});}function _0x28f006(_0x10c237,_0x2982f7){return _0x58444b(function(_0x43c59b,_0x50ccb1){var _0x565871=a0_0x2e7f;_0x666ce9[_0x565871('0x185e')][_0x565871('0x595')]({'sectionId':_0x2982f7})[_0x565871('0x1376')][_0x565871('0x21ad')](function(_0x292947){var _0x525e9e=_0x565871;return _0x18587a(_0x10c237)[_0x525e9e('0x21ad')](function(_0x506d62){var _0x5415de=_0x525e9e;return _0x86640f()[_0x5415de('0x1eab')](_0x292947[_0x5415de('0x1b33')],_0x506d62[_0x5415de('0x1b33')],'id');});})[_0x565871('0x21ad')](function(_0x35cffc){var _0x2c309b=_0x565871;_0x86640f()[_0x2c309b('0x23aa')](_0x35cffc)?_0x43c59b():_0x50ccb1();})[_0x565871('0x1c1d')](function(_0x2c293d){_0x50ccb1(_0x2c293d);});});}function _0x24b085(_0x15bf88,_0x5a6118,_0x739cf2){var _0x9bc4dd=_0x2d81cb,_0x1e5835=_0x15bf88&&_0x15bf88[_0x9bc4dd('0x577')]>0x0?_0x15bf88[0x0]:null;if(!_0x1e5835)return _0x739cf2;var _0x3f1885=_0x86640f()[_0x9bc4dd('0x1d2e')](_0x5a6118,['sectionId',_0x1e5835['id']]);if(_0x3f1885)return _0x5a6118=_0x86640f()[_0x9bc4dd('0x16a2')](_0x5a6118,[_0x9bc4dd('0x1cd2'),_0x1e5835['id']]),_0x28f006(_0x1e5835,_0x3f1885['id'])[_0x9bc4dd('0x21ad')](function(){var _0x20002b=_0x9bc4dd;return _0x739cf2='full',_0x24b085(_0x15bf88[_0x20002b('0xfb6')](),_0x5a6118,_0x739cf2);})[_0x9bc4dd('0x1c1d')](function(_0x21905c){var _0x1ab050=_0x9bc4dd;return _0x58444b[_0x1ab050('0x37a')](_0x21905c);});}function _0xe822d3(_0xa4f543){var _0x208a3d=_0x2d81cb,_0x3c3760=_0xa4f543[_0x208a3d('0x4b4')]===_0x208a3d('0x22b4')?_0x208a3d('0x1818'):_0xa4f543[_0x208a3d('0x4b4')];if(!_0x5bf509['license']){_0xa4f543['status']=_0x477f53(_0xa4f543,_0x208a3d('0x1a4f'));return;}typeof _0xa4f543[_0x208a3d('0x25b5')]!==_0x208a3d('0xddc')&&!_0xa4f543[_0x208a3d('0x25b5')][_0x208a3d('0x773')]?_0x666ce9[_0x208a3d('0xab4')][_0x208a3d('0x595')]({'userProfileId':_0x5bf509[_0x208a3d('0x758')]['id'],'sectionId':_0xa4f543['id']})['$promise'][_0x208a3d('0x21ad')](function(_0x88d107){var _0x338ee4=_0x208a3d,_0x273dde=_0x88d107&&_0x88d107[_0x338ee4('0x1b33')][_0x338ee4('0x577')]===0x1?_0x88d107[_0x338ee4('0x1b33')][0x0]:null,_0x5cc8dd=_0x273dde?_0x338ee4('0xa1a'):'disabled';_0xa4f543['status']=_0x477f53(_0xa4f543,_0x5cc8dd);}):typeof _0xa4f543[_0x208a3d('0x2ff')]!==_0x208a3d('0xddc')&&!_0x5bf509[_0x208a3d('0x2ff')][_0xa4f543['license']]?_0xa4f543['status']=_0x477f53(_0xa4f543,_0x208a3d('0x139')):_0x666ce9[_0x208a3d('0xab4')][_0x208a3d('0x595')]({'userProfileId':_0x5bf509['userProfile']['id'],'category':_0x3c3760})[_0x208a3d('0x1376')][_0x208a3d('0x21ad')](function(_0xe0e68c){var _0x868f4f=_0x208a3d,_0x4178de=_0xe0e68c&&_0xe0e68c[_0x868f4f('0x1b33')]&&_0xe0e68c[_0x868f4f('0x1b33')][_0x868f4f('0x577')]>0x0?_0xe0e68c[_0x868f4f('0x1b33')]:[];if(_0xa4f543['title']==='Dashboards')return _0x86640f()[_0x868f4f('0x23aa')](_0x4178de)?_0x868f4f('0x30'):_0x4178de[0x0][_0x868f4f('0x80c')]?_0x868f4f('0xa1a'):_0x666ce9[_0x868f4f('0x185e')][_0x868f4f('0x595')]({'sectionId':_0x4178de[0x0]['id'],'resourceId':0x65})['$promise'][_0x868f4f('0x21ad')](function(_0x534d92){var _0x297fc0=_0x868f4f,_0x5543f5=_0x534d92&&_0x534d92[_0x297fc0('0x1b33')]?_0x534d92[_0x297fc0('0x1b33')][0x0]:null;return _0x5543f5?_0x297fc0('0xa1a'):_0x297fc0('0x6bb');});else{var _0x5b2b40=_0x86640f()['filter'](_0xa4f543['children'],function(_0x9fd9fa){var _0x228ad1=_0x868f4f;return typeof _0x9fd9fa[_0x228ad1('0x25b5')]!==_0x228ad1('0xddc')&&_0x9fd9fa[_0x228ad1('0x25b5')][_0x228ad1('0x22d6')]?undefined:_0x9fd9fa;});if(_0x4178de[_0x868f4f('0x577')]===_0x5b2b40[_0x868f4f('0x577')]){if(_0x86640f()[_0x868f4f('0xc74')](_0x4178de,['autoAssociation',!![]]))return'full';else{var _0xee6a25=_0x86640f()['filter'](_0x5b2b40,function(_0x561130){var _0x55e203=_0x868f4f;return typeof _0x561130['permissions']!==_0x55e203('0xddc')&&!_0x561130[_0x55e203('0x25b5')][_0x55e203('0x773')]?undefined:_0x561130;});return _0x24b085(_0xee6a25,_0x4178de,_0x868f4f('0x6bb'));}}else return _0x4178de[_0x868f4f('0x577')]===0x0?_0x868f4f('0x30'):_0x868f4f('0x6bb');}})[_0x208a3d('0x21ad')](function(_0x2865b6){var _0x219896=_0x208a3d;_0xa4f543[_0x219896('0x209')]=_0x477f53(_0xa4f543,_0x2865b6);})[_0x208a3d('0x1c1d')](function(_0xe2804f){var _0x2c5514=_0x208a3d,_0x2fa1f6=_0xe2804f?_0x2c5514('0x1a4f'):_0x2c5514('0x6bb');_0xa4f543[_0x2c5514('0x209')]=_0x477f53(_0xa4f543,_0x2fa1f6),_0xe2804f&&_0x28c9ab['error']({'title':_0xe2804f[_0x2c5514('0x209')]?_0x2c5514('0x22d')+_0xe2804f['status']+'\x20-\x20'+_0xe2804f[_0x2c5514('0x1808')]:_0x2c5514('0x1e47')+_0x3c3760[_0x2c5514('0x2e8')]()+')','msg':_0xe2804f[_0x2c5514('0x209')]?JSON[_0x2c5514('0x25e')](_0xe2804f[_0x2c5514('0x11c2')]):_0xe2804f['toString']()});});}function _0x56cea2(_0x3a85de){var _0xe5ff67=_0x2d81cb;return _0x3a85de===_0xe5ff67('0xa1a')?!![]:![];}}const _0xaaedae=_0x33a115;_0x1d9293[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0xccd'),'userProfile',_0x3877e3('0x10b7'),'$translate','Auth','section'];function _0x1d9293(_0x4194be,_0x205880,_0x691ba3,_0x34cfc0,_0x451078,_0x180027,_0x3951fb,_0x11b949,_0x1afcfb,_0x18ed45){var _0x3e62fd=_0x3877e3,_0x43392e=this;_0x43392e['userProfile']=_0x180027,_0x43392e['penalty']=0x0,_0x43392e[_0x3e62fd('0x26ad')]=angular[_0x3e62fd('0xd75')](_0x18ed45),_0x43392e[_0x3e62fd('0x4b4')]=_0x11b949[_0x3e62fd('0x183e')](_0x3e62fd('0x7bd'),{'sectionName':_0x11b949[_0x3e62fd('0x183e')](_0x43392e[_0x3e62fd('0x26ad')]['translate'])}),_0x43392e[_0x3e62fd('0x1b9a')]=[],_0x43392e[_0x3e62fd('0x2629')]=[],_0x43392e[_0x3e62fd('0x2107')]=_0x86640f()[_0x3e62fd('0x1503')](_0x43392e['section'][_0x3e62fd('0xc9')],function(_0x10d52b){var _0x41ed40=_0x3e62fd;return typeof _0x10d52b[_0x41ed40('0x25b5')]!=_0x41ed40('0xddc')&&_0x10d52b[_0x41ed40('0x25b5')][_0x41ed40('0x22d6')]?undefined:_0x10d52b;}),_0x43392e[_0x3e62fd('0x43')]=[{'title':_0x3e62fd('0x1bd4'),'translate':_0x3e62fd('0x5b'),'id':0x64}],_0x43392e[_0x3e62fd('0x1a42')]=[];_0x43392e[_0x3e62fd('0x26ad')][_0x3e62fd('0x4b4')]===_0x3e62fd('0x1bd4')&&(_0x43392e[_0x3e62fd('0x1a42')]=_0x43392e['subsections'],_0x43392e[_0x3e62fd('0x2107')]=_0x43392e[_0x3e62fd('0x43')]);_0x43392e[_0x3e62fd('0x2152')]=null,_0x43392e[_0x3e62fd('0x469')]=null,_0x43392e['allReportsSelected']=[],_0x43392e[_0x3e62fd('0x167')]=_0x423304,_0x43392e[_0x3e62fd('0x2182')]=_0x2ca34a,_0x43392e[_0x3e62fd('0x15a2')]=_0x44dd97,_0x43392e[_0x3e62fd('0x17e')]=_0x2ccf7a,_0x43392e['onChangeReportType']=_0x5d81d1,_0x43392e[_0x3e62fd('0x1e8c')]=_0x1e1579,_0x43392e[_0x3e62fd('0xc1')]=_0xc74f4,_0x43392e[_0x3e62fd('0x909')]={'readOnly':![],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x3e62fd('0x19fe'),'line1':_0x3e62fd('0x19fe'),'line2':'','line3':'','line4':_0x3e62fd('0xcf0'),'labelAll':_0x11b949[_0x3e62fd('0x183e')]('STAFF.PERMISSIONS_ALL_RESOURCES'),'labelSelected':_0x11b949[_0x3e62fd('0x183e')](_0x3e62fd('0x17d2')),'labelSearch':_0x11b949[_0x3e62fd('0x183e')]('STAFF.PERMISSIONS_PLACEHOLDER_SEARCH'),'transferCallback':function _0x41e4f6(_0x4be3f1,_0x277b26){var _0x54f110=_0x3e62fd;_0x264d85(!![]),_0x277b26?(_0x43392e[_0x54f110('0x2152')][_0x54f110('0x2629')]=_0x86640f()['pullAllBy'](_0x43392e[_0x54f110('0x2152')][_0x54f110('0x2629')],_0x4be3f1,'id'),_0x43392e[_0x54f110('0x2152')][_0x54f110('0x80c')]=![]):_0x43392e[_0x54f110('0x2152')]['selectedItems']=_0x86640f()['unionBy'](_0x43392e[_0x54f110('0x2152')][_0x54f110('0x2629')],_0x4be3f1,'id'),_0x43392e['selectedSection'][_0x54f110('0x4b4')]===_0x54f110('0xdef')&&_0x2561bd();}};function _0x2f7c95(){return _0x691ba3(function(_0x4e6bcc,_0x29360d){var _0x1783fa=a0_0x2e7f,_0x86a928=typeof _0x43392e[_0x1783fa('0x2152')][_0x1783fa('0x27b5')]!==_0x1783fa('0xddc')&&_0x43392e[_0x1783fa('0x2152')][_0x1783fa('0x27b5')]===_0x1783fa('0x207a')?_0x1783fa('0x2300'):_0x1783fa('0x923');return _0x451078[_0x43392e[_0x1783fa('0x2152')]['route']]['get']({'fields':'id,name,strategy,type','channel':_0x43392e[_0x1783fa('0x2152')]['channel']==='bull'?_0x1783fa('0x8ed'):_0x43392e['selectedSection'][_0x1783fa('0x27b5')],'type':_0x86a928,'nolimit':!![]})[_0x1783fa('0x1376')]['then'](function(_0x31c059){_0x4e6bcc(_0x31c059);})[_0x1783fa('0x1c1d')](function(_0x4c3c18){_0x29360d(_0x4c3c18);});});}function _0x589808(){return _0x691ba3(function(_0x3a2d33,_0x909930){var _0x3f7567=a0_0x2e7f,_0x5982fb,_0x3cf7c5,_0x584e6c=![],_0x58590c=![];if(_0x43392e[_0x3f7567('0x2152')][_0x3f7567('0x25ee')]===_0x3f7567('0x1b0c'))switch(_0x43392e[_0x3f7567('0x2152')][_0x3f7567('0x4b4')]){case _0x3f7567('0x1f22'):_0x5982fb=_0x3f7567('0x923');break;case _0x3f7567('0x1d5'):_0x5982fb=_0x3f7567('0x2300');break;case _0x3f7567('0x1b43'):_0x5982fb='internal';break;}if(_0x43392e[_0x3f7567('0x2152')][_0x3f7567('0x25ee')]===_0x3f7567('0x1775'))switch(_0x43392e[_0x3f7567('0x2152')][_0x3f7567('0x4b4')]){case _0x3f7567('0xfed'):_0x3cf7c5='agent';break;case _0x3f7567('0x1955'):_0x3cf7c5=_0x3f7567('0x13f4');break;case'Users':_0x3cf7c5='user';break;}_0x43392e[_0x3f7567('0x2152')][_0x3f7567('0x25ee')]===_0x3f7567('0xa07')&&(_0x584e6c=!![]);_0x43392e[_0x3f7567('0x2152')]['route']===_0x3f7567('0x22c8')&&(_0x58590c=!![]);_0x43392e[_0x3f7567('0x2152')]['title']==='Reports'&&(_0x43392e[_0x3f7567('0x2152')][_0x3f7567('0x25ee')]=_0x43392e['selectedSection'][_0x3f7567('0x24af')]===_0x3f7567('0x1e6e')?_0x3f7567('0xc42'):'analyticCustomReport');if(_0x43392e[_0x3f7567('0x2152')][_0x3f7567('0x4b4')]==='Dashboards')_0x3a2d33({'count':0x1,'rows':[{'id':0x65,'name':_0x11b949[_0x3f7567('0x183e')](_0x3f7567('0xb66'))}]});else return _0x451078[_0x43392e[_0x3f7567('0x2152')][_0x3f7567('0x25ee')]][_0x3f7567('0x595')]({'role':_0x3cf7c5?_0x3cf7c5:undefined,'type':_0x5982fb?_0x5982fb:undefined,'VoiceExtensionId':_0x5982fb?_0x3f7567('0x27a'):undefined,'IntervalId':_0x584e6c?_0x3f7567('0x27a'):undefined,'MailAccountId':_0x58590c?_0x3f7567('0x27a'):undefined,'FaxAccountId':_0x58590c?'null':undefined,'SmsAccountId':_0x58590c?_0x3f7567('0x27a'):undefined,'OpenchannelAccountId':_0x58590c?_0x3f7567('0x27a'):undefined,'ChatWebsiteId':_0x58590c?_0x3f7567('0x27a'):undefined,'WhatsappAccountId':_0x58590c?'null':undefined,'ListId':_0x58590c?'null':undefined,'nolimit':!![]})['$promise'][_0x3f7567('0x21ad')](function(_0x459d3c){_0x3a2d33(_0x459d3c);})[_0x3f7567('0x1c1d')](function(_0x49e0f1){_0x909930(_0x49e0f1);});});}function _0xc041db(){var _0x5a9776=_0x3e62fd,_0x3cd799=typeof _0x43392e['selectedSection']['pending']!='undefined'?_0x43392e[_0x5a9776('0x2152')][_0x5a9776('0x259')]:![];return _0x691ba3(function(_0x51159d,_0x26e5be){var _0x3c8bf0=_0x5a9776;_0x451078[_0x3c8bf0('0xab4')][_0x3c8bf0('0x595')]({'userProfileId':_0x43392e[_0x3c8bf0('0x758')]['id'],'sectionId':_0x43392e[_0x3c8bf0('0x2152')]['id']})[_0x3c8bf0('0x1376')][_0x3c8bf0('0x21ad')](function(_0x117d2c){var _0x55f2a7=_0x3c8bf0,_0x342b2d=_0x117d2c&&_0x117d2c[_0x55f2a7('0x1b33')]?_0x117d2c[_0x55f2a7('0x1b33')][0x0]:null;!_0x3cd799&&(_0x43392e[_0x55f2a7('0x2152')][_0x55f2a7('0x2296')]=_0x342b2d?!!_0x342b2d['enabled']:![],_0x43392e['selectedSection'][_0x55f2a7('0x80c')]=_0x342b2d?!!_0x342b2d[_0x55f2a7('0x80c')]:![],_0x43392e['selectedSection'][_0x55f2a7('0x5ed')]=_0x342b2d?_0x593b6a(_0x342b2d[_0x55f2a7('0x5ed')]):_0x593b6a(_0x43392e[_0x55f2a7('0x758')][_0x55f2a7('0x5ed')])),_0x51159d(_0x342b2d);})[_0x3c8bf0('0x1c1d')](function(_0x46a09e){_0x26e5be(_0x46a09e);});});}function _0x50c5f5(){return _0x691ba3(function(_0x2debb2,_0x489de2){var _0x230c63=a0_0x2e7f;!_0x43392e[_0x230c63('0x469')]?_0x2debb2(null):_0x451078[_0x230c63('0x185e')][_0x230c63('0x595')]({'sectionId':_0x43392e[_0x230c63('0x469')]['id'],'nolimit':!![]})[_0x230c63('0x1376')][_0x230c63('0x21ad')](function(_0x11d0ab){_0x2debb2(_0x11d0ab);})[_0x230c63('0x1c1d')](function(_0x5c5d95){_0x489de2(_0x5c5d95);});});}function _0x2693f3(){return _0x691ba3(function(_0x3180e0,_0x31b341){var _0x43023c=a0_0x2e7f,_0x460c27=typeof _0x43392e[_0x43023c('0x2152')][_0x43023c('0x27b5')]!==_0x43023c('0xddc')&&_0x86640f()[_0x43023c('0xb34')](_0x43392e[_0x43023c('0x2152')]['route'],_0x43023c('0x1da'));_0x460c27?_0x2f7c95()[_0x43023c('0x21ad')](function(_0x1d454a){_0x3180e0(_0x1d454a);})[_0x43023c('0x1c1d')](function(_0x29752b){_0x31b341(_0x29752b);}):_0x589808()[_0x43023c('0x21ad')](function(_0x48b27d){_0x3180e0(_0x48b27d);})[_0x43023c('0x1c1d')](function(_0x3b9230){_0x31b341(_0x3b9230);});});}function _0x204703(){var _0x194f7e=_0x3e62fd,_0x301e0b=typeof _0x43392e['selectedSection'][_0x194f7e('0x259')]!=_0x194f7e('0xddc')?_0x43392e[_0x194f7e('0x2152')][_0x194f7e('0x259')]:![],_0x462293=[];return _0x50c5f5()[_0x194f7e('0x21ad')](function(_0x2c18a2){var _0x5d5fcc=_0x194f7e;return _0x462293=_0x2c18a2&&_0x2c18a2['rows']?_0x2c18a2[_0x5d5fcc('0x1b33')]:[],_0x43392e[_0x5d5fcc('0x2152')][_0x5d5fcc('0x4b4')]===_0x5d5fcc('0xdef')&&(_0x43392e[_0x5d5fcc('0x236d')]=!_0x43392e[_0x5d5fcc('0x236d')]?_0x462293:_0x43392e[_0x5d5fcc('0x236d')],_0x462293=_0x1988be(_0x43392e[_0x5d5fcc('0x236d')])),typeof _0x43392e[_0x5d5fcc('0x2152')]['permissions']!==_0x5d5fcc('0xddc')&&!_0x43392e['selectedSection']['permissions'][_0x5d5fcc('0x773')]?{'rows':[]}:_0x2693f3();})['then'](function(_0x990919){var _0x55932b=_0x194f7e;_0x43392e[_0x55932b('0x1b9a')]=_0x990919[_0x55932b('0x1b33')]?_0x86640f()['map'](_0x990919['rows'],function(_0xc20df6){var _0x1bb9b4=_0x55932b;return _0x43392e[_0x1bb9b4('0x2152')][_0x1bb9b4('0x4b4')]===_0x1bb9b4('0xdef')&&(_0xc20df6[_0x1bb9b4('0xcf0')]=_0x507658(_0xc20df6[_0x1bb9b4('0x12e2')])[_0x1bb9b4('0x16e4')]('\x20','_')),_0xc20df6[_0x1bb9b4('0x118b')]=!![],_0xc20df6;}):[];!_0x301e0b&&(_0x43392e['selectedSection'][_0x55932b('0x2629')]=_0x86640f()['map'](_0x462293,function(_0x164534){var _0x35b632=_0x55932b;return _0x86640f()['find'](_0x43392e[_0x35b632('0x1b9a')],{'id':_0x164534['resourceId']});}));var _0x4c9bfd=_0x86640f()['differenceBy'](_0x43392e[_0x55932b('0x2152')]['selectedItems'],_0x43392e[_0x55932b('0x1b9a')],'id');!_0x86640f()[_0x55932b('0x23aa')](_0x4c9bfd)&&(_0x43392e[_0x55932b('0x2152')][_0x55932b('0x2629')]=_0x86640f()['pullAllBy'](_0x43392e[_0x55932b('0x2152')][_0x55932b('0x2629')],_0x4c9bfd,'id'));var _0x28b493;switch(_0x43392e['selectedSection'][_0x55932b('0x4b4')]){case _0x55932b('0xe4d'):_0x43392e[_0x55932b('0x2152')][_0x55932b('0x2629')]=_0x86640f()['filter'](_0x43392e['items'],function(_0x4b84e0){var _0x1a25b1=_0x55932b;if(_0x4b84e0[_0x1a25b1('0x16eb')])return _0x4b84e0['isValid']=![],_0x4b84e0;else{var _0xe1d581=_0x86640f()[_0x1a25b1('0x1d2e')](_0x462293,{'resourceId':_0x4b84e0['id']});if(typeof _0xe1d581!==_0x1a25b1('0xddc'))return _0x4b84e0[_0x1a25b1('0x118b')]=!![],_0x4b84e0;}});break;case _0x55932b('0xfeb'):_0x43392e['selectedSection']['selectedItems']=_0x86640f()[_0x55932b('0x1503')](_0x43392e[_0x55932b('0x1b9a')],function(_0x2357b6){var _0x4de8c0=_0x55932b;if(_0x2357b6[_0x4de8c0('0x16eb')])return _0x2357b6[_0x4de8c0('0x118b')]=![],_0x2357b6;else{var _0x154f65=_0x86640f()[_0x4de8c0('0x1d2e')](_0x462293,{'resourceId':_0x2357b6['id']});if(typeof _0x154f65!==_0x4de8c0('0xddc'))return _0x2357b6[_0x4de8c0('0x118b')]=!![],_0x2357b6;}});break;case _0x55932b('0xdef'):_0x28b493=_0x41d015(_0x43392e[_0x55932b('0x2155')]),_0x43392e['selectedSection']['selectedItems']=_0x5a1a0c(_0x43392e['selectedSection'][_0x55932b('0x2629')]),_0x43392e[_0x55932b('0x2152')][_0x55932b('0x2629')]=_0x86640f()['unionBy'](_0x43392e['selectedSection'][_0x55932b('0x2629')],_0x28b493,'id');break;}_0x43392e['dualMultiselectOptions']['selectedItems']=_0x43392e['selectedSection'][_0x55932b('0x2629')],_0x43392e['dualMultiselectOptions'][_0x55932b('0x1b9a')]=_0x86640f()[_0x55932b('0x1eab')](_0x43392e[_0x55932b('0x1b9a')],_0x43392e[_0x55932b('0x909')][_0x55932b('0x2629')],'id');})[_0x194f7e('0x1c1d')](function(_0x12bdb9){var _0x364712=_0x194f7e;_0x34cfc0[_0x364712('0x2092')]({'title':_0x12bdb9['status']?'API:'+_0x12bdb9['status']+_0x364712('0xa99')+_0x12bdb9[_0x364712('0x1808')]:_0x364712('0x2815')+_0x43392e[_0x364712('0x2152')]['title'][_0x364712('0x2e8')](),'msg':_0x12bdb9[_0x364712('0x209')]?JSON[_0x364712('0x25e')](_0x12bdb9[_0x364712('0x11c2')]):_0x12bdb9[_0x364712('0x174f')]()});});}function _0x2ca34a(){var _0x55c5ff=_0x3e62fd;return _0xc041db()[_0x55c5ff('0x21ad')](function(_0xc179b4){var _0x248320=_0x55c5ff;_0x43392e['loadedSection']=_0xc179b4;if(_0x43392e['selectedSection'][_0x248320('0x4b4')]==='Reports')return _0x40f475()[_0x248320('0x21ad')](function(){var _0x3acebd=_0x248320;if(!_0x43392e[_0x3acebd('0x2152')][_0x3acebd('0x24af')])return _0x50c5f5()[_0x3acebd('0x21ad')](function(_0x1a916f){var _0x529630=_0x3acebd;_0x43392e[_0x529630('0x2155')]=_0x1a916f?_0x86640f()['map'](_0x1a916f['rows'],function(_0x2b1545){var _0x5fb4cc=_0x529630;return{'id':_0x2b1545[_0x5fb4cc('0x675')],'name':_0x2b1545[_0x5fb4cc('0x19fe')],'type':_0x2b1545[_0x5fb4cc('0x7fa')]};}):[];});})['catch'](function(_0xc07acd){var _0x17557c=_0x248320;_0x34cfc0[_0x17557c('0x2092')]({'title':_0xc07acd[_0x17557c('0x209')]?_0x17557c('0x22d')+_0xc07acd['status']+_0x17557c('0xa99')+_0xc07acd[_0x17557c('0x1808')]:_0x17557c('0x157e'),'msg':_0xc07acd[_0x17557c('0x11c2')]?JSON[_0x17557c('0x25e')](_0xc07acd[_0x17557c('0x11c2')]):_0xc07acd[_0x17557c('0x174f')]()});});else _0x204703();})[_0x55c5ff('0x1c1d')](function(_0x447e35){var _0x405070=_0x55c5ff;_0x34cfc0[_0x405070('0x2092')]({'title':_0x447e35[_0x405070('0x209')]?_0x405070('0x22d')+_0x447e35['status']+'\x20-\x20'+_0x447e35['statusText']:_0x405070('0x2815')+_0x43392e[_0x405070('0x2152')][_0x405070('0x4b4')][_0x405070('0x2e8')](),'msg':_0x447e35[_0x405070('0x209')]?JSON[_0x405070('0x25e')](_0x447e35['data']):_0x447e35['toString']()});});}function _0x593b6a(_0xfa08c){var _0x1ce87f=_0x3e62fd;return _0xfa08c&&(_0x43392e[_0x1ce87f('0x2152')]['allowEdit']=_0x86640f()['includes'](_0xfa08c,'e')?!![]:![],_0x43392e['selectedSection'][_0x1ce87f('0xdfa')]=_0x86640f()['includes'](_0xfa08c,'d')?!![]:![]),_0x2645cc();}function _0x2645cc(){var _0x56d416=_0x3e62fd,_0x31117e=['r'];if(_0x43392e[_0x56d416('0x2152')]['allowEdit'])_0x31117e['push']('e');else{var _0x434bb2=_0x86640f()[_0x56d416('0x2004')](_0x31117e,['e']);_0x434bb2>0x0&&_0x43392e[_0x56d416('0x2152')][_0x56d416('0x5ed')][_0x56d416('0x16e4')]('e','');}if(_0x43392e[_0x56d416('0x2152')]['allowDelete'])_0x31117e[_0x56d416('0x206c')]('d');else{var _0x1a1314=_0x86640f()[_0x56d416('0x2004')](_0x31117e,['d']);_0x1a1314>0x0&&_0x43392e[_0x56d416('0x2152')][_0x56d416('0x5ed')][_0x56d416('0x16e4')]('d','');}return _0x31117e;}function _0x44dd97(){var _0x568070=_0x3e62fd;_0x43392e[_0x568070('0x2152')][_0x568070('0x2296')]=!_0x43392e[_0x568070('0x2152')]['enabled'],_0x264d85(!![]);}function _0x2ccf7a(){var _0x366c0b=_0x3e62fd;if(!_0x43392e[_0x366c0b('0x2152')][_0x366c0b('0x80c')]){var _0x5eb7f8=[];for(var _0x506861=0x0;_0x506861<_0x43392e[_0x366c0b('0x909')]['items'][_0x366c0b('0x577')];_0x506861++){_0x5eb7f8[_0x366c0b('0x206c')](_0x43392e[_0x366c0b('0x909')][_0x366c0b('0x1b9a')][_0x506861]),_0x43392e['dualMultiselectOptions'][_0x366c0b('0x2629')][_0x366c0b('0x206c')](_0x43392e['dualMultiselectOptions'][_0x366c0b('0x1b9a')][_0x506861]);}_0x43392e[_0x366c0b('0x909')][_0x366c0b('0x1b9a')]=[],_0x43392e[_0x366c0b('0x909')][_0x366c0b('0x1ffe')](_0x5eb7f8,![]);}_0x264d85(!![]);}function _0x5d81d1(){var _0x199355=_0x3e62fd;_0x43392e['treeStructure']=_0x169ef1(),_0x43392e[_0x199355('0x2152')][_0x199355('0x2629')]&&(_0x43392e[_0x199355('0x2155')]=_0x5a1a0c(_0x43392e['allReportsSelected']),_0x2561bd()),_0x204703();}function _0x1e1579(_0x11c3df){var _0x16fb7e=_0x3e62fd;if(_0x11c3df===_0x16fb7e('0x1e96'))_0x43392e['selectedSection'][_0x16fb7e('0x280f')]=!_0x43392e[_0x16fb7e('0x2152')][_0x16fb7e('0x280f')];else _0x11c3df==='delete'&&(_0x43392e[_0x16fb7e('0x2152')][_0x16fb7e('0xdfa')]=!_0x43392e[_0x16fb7e('0x2152')][_0x16fb7e('0xdfa')]);_0x43392e['selectedSection'][_0x16fb7e('0x5ed')]=_0x593b6a(),_0x264d85(!![]);}function _0xc74f4(){var _0x17e7a1=_0x3e62fd,_0x29f2d8=_0x43392e['section']['title']===_0x17e7a1('0x22b4')?_0x17e7a1('0x1818'):_0x43392e['section']['title'],_0x344288=_0x86640f()(_0x43392e[_0x17e7a1('0x2107')])[_0x17e7a1('0x1503')]({'pending':!![]})['map'](function(_0x2e22dc){var _0x22332a=_0x17e7a1,_0x94578a=_0x29f2d8===_0x22332a('0x2cc')&&_0x2e22dc[_0x22332a('0x4b4')]===_0x22332a('0x3d9')?_0x22332a('0x2722'):_0x2e22dc[_0x22332a('0x4b4')],_0x593170=_0x94578a==='Reports'?_0x43392e[_0x22332a('0x2155')]:_0x2e22dc['selectedItems'];return _0x29f2d8===_0x22332a('0x1417')&&(_0x2e22dc[_0x22332a('0x80c')]=!![]),{'category':_0x29f2d8,'sectionId':_0x2e22dc['id'],'name':_0x94578a,'enabled':_0x2e22dc[_0x22332a('0x2296')],'autoAssociation':_0x2e22dc['autoAssociation'],'crudPermissions':_0x86640f()['map'](_0x2e22dc[_0x22332a('0x5ed')])[_0x22332a('0x136')](''),'Resources':_0x86640f()['map'](_0x593170,function(_0x631134){var _0x552f28=_0x22332a;return{'name':_0x631134[_0x552f28('0x19fe')],'resourceId':_0x631134['id'],'type':_0x5dfb52(_0x94578a,_0x631134)};})};})[_0x17e7a1('0x2228')]();return _0x451078[_0x17e7a1('0x758')][_0x17e7a1('0xa8b')]({'id':_0x43392e[_0x17e7a1('0x758')]['id']},_0x344288)[_0x17e7a1('0x1376')][_0x17e7a1('0x21ad')](function(){var _0x5e0a6f=_0x17e7a1;_0x43392e[_0x5e0a6f('0x2107')][_0x5e0a6f('0x1a52')](function(_0x5e551a){_0x5e551a['pending']=undefined;}),_0x43392e[_0x5e0a6f('0x236d')]=null,_0x15357f(),_0x43392e['selectedSection']['title']===_0x5e0a6f('0xdef')&&!_0x43392e['selectedSection']['reportType']&&_0x4194be[_0x5e0a6f('0x838')][_0x5e0a6f('0xfe8')](),_0x34cfc0[_0x5e0a6f('0xdb1')]({'title':_0x11b949[_0x5e0a6f('0x183e')](_0x5e0a6f('0x205c'),{'sectionName':_0x11b949[_0x5e0a6f('0x183e')](_0x29f2d8[_0x5e0a6f('0x11db')])}),'msg':_0x11b949[_0x5e0a6f('0x183e')](_0x5e0a6f('0x662'))});})[_0x17e7a1('0x21ad')](function(){var _0x3188ea=_0x17e7a1;return _0xc041db()[_0x3188ea('0x21ad')](function(_0x1d47d5){var _0x3e072a=_0x3188ea;_0x43392e[_0x3e072a('0x469')]=_0x1d47d5;});})[_0x17e7a1('0x1c1d')](function(_0x4baebe){var _0x1556aa=_0x17e7a1;_0x34cfc0['error']({'title':_0x4baebe[_0x1556aa('0x209')]?_0x1556aa('0x22d')+_0x4baebe[_0x1556aa('0x209')]+_0x1556aa('0xa99')+_0x4baebe[_0x1556aa('0x1808')]:_0x1556aa('0x315'),'msg':_0x4baebe['status']?JSON[_0x1556aa('0x25e')](_0x4baebe['data']):_0x4baebe['toString']()});});}function _0x264d85(_0x316d79){var _0xb68ea4=_0x3e62fd,_0x5d5e23=_0x86640f()['findIndex'](_0x43392e[_0xb68ea4('0x2107')],function(_0xf3e5c8){var _0x42ed14=_0xb68ea4;return _0xf3e5c8['id']==_0x43392e[_0x42ed14('0x2152')]['id'];});_0x43392e[_0xb68ea4('0x2107')][_0x5d5e23]['pending']=_0x316d79,_0x15357f();}function _0x15357f(){var _0x4a975d=_0x3e62fd;return _0x43392e[_0x4a975d('0x1bb9')]=_0x86640f()[_0x4a975d('0x2664')](_0x43392e['subsections'],[_0x4a975d('0x259'),!![]]);}function _0x169ef1(){var _0x3ea431=_0x3e62fd,_0xb6a58f={};return _0x43392e[_0x3ea431('0x2152')][_0x3ea431('0x24af')]===_0x3ea431('0x1e6e')?_0xb6a58f=_0x43392e['treeReports'][0x0]?angular[_0x3ea431('0xcf1')](_0x43392e[_0x3ea431('0x1ab1')][0x0]['tree']):[]:_0xb6a58f=_0x43392e[_0x3ea431('0x1ab1')][0x1]?angular[_0x3ea431('0xcf1')](_0x43392e[_0x3ea431('0x1ab1')][0x1][_0x3ea431('0x1394')]):[],_0xb6a58f;}function _0x40f475(){return _0x691ba3(function(_0x35fec4,_0x1f0ebb){var _0x59a5f9=a0_0x2e7f;_0x451078['analyticTreeReport'][_0x59a5f9('0x595')]({})[_0x59a5f9('0x1376')][_0x59a5f9('0x21ad')](function(_0x2c6b57){var _0x3083d0=_0x59a5f9;_0x43392e[_0x3083d0('0x1ab1')]=_0x2c6b57[_0x3083d0('0x1b33')]||[],_0x35fec4(_0x43392e[_0x3083d0('0x1ab1')]);})[_0x59a5f9('0x1c1d')](function(_0x5f1cc8){_0x1f0ebb(_0x5f1cc8);});});}function _0x507658(_0x47fdd4){var _0x3a18cd=_0x3e62fd,_0x51fd2b=_0x43392e[_0x3a18cd('0x2409')][0x0]['text'];return _0x51fd2b=_0x478891(_0x51fd2b,_0x47fdd4,_0x43392e[_0x3a18cd('0x2409')][0x0]),_0x51fd2b;}function _0x478891(_0x19fb8d,_0x11c4a3,_0x178acf){var _0x30ce3f=_0x3e62fd;if(_0x178acf&&!_0x86640f()[_0x30ce3f('0x23aa')](_0x178acf[_0x30ce3f('0xc9')]))_0x178acf=_0x86640f()[_0x30ce3f('0x1d2e')](_0x178acf[_0x30ce3f('0xc9')],function(_0x38e53a){var _0x1598f3=_0x30ce3f;return _0x86640f()[_0x1598f3('0xb34')](_0x11c4a3,_0x38e53a['id'])?_0x38e53a:undefined;}),_0x19fb8d+=_0x178acf?'/'+_0x178acf[_0x30ce3f('0xc1e')]:'';else return _0x19fb8d;return _0x478891(_0x19fb8d,_0x11c4a3,_0x178acf);}function _0x1988be(_0x404c2e){var _0x5f0a8c=_0x3e62fd;return _0x86640f()[_0x5f0a8c('0x1503')](_0x404c2e,{'type':_0x43392e['selectedSection']['reportType']===_0x5f0a8c('0x1e6e')?_0x5f0a8c('0x1505'):_0x5f0a8c('0x1a1e')});}function _0x41d015(_0x5567f7){var _0x27b736=_0x3e62fd;return _0x86640f()[_0x27b736('0x1503')](_0x5567f7,function(_0x3d887d){var _0x11ec50=_0x27b736;return _0x86640f()[_0x11ec50('0x2837')](_0x3d887d[_0x11ec50('0x12e2')],_0x43392e[_0x11ec50('0x2152')][_0x11ec50('0x24af')]==='default'?_0x11ec50('0x268c'):_0x11ec50('0xf50'));});}function _0x5a1a0c(_0x2f929a){var _0x1331a5=_0x3e62fd;return _0x86640f()[_0x1331a5('0x16a2')](_0x2f929a,function(_0x4777dc){var _0x4e7ae1=_0x1331a5;return _0x86640f()[_0x4e7ae1('0x2837')](_0x4777dc[_0x4e7ae1('0x12e2')],_0x43392e[_0x4e7ae1('0x2152')][_0x4e7ae1('0x24af')]===_0x4e7ae1('0x1e6e')?_0x4e7ae1('0x268c'):_0x4e7ae1('0xf50'));});}function _0x2561bd(){var _0x57a720=_0x3e62fd;_0x86640f()[_0x57a720('0x23aa')](_0x43392e[_0x57a720('0x2152')][_0x57a720('0x2629')])?_0x43392e[_0x57a720('0x2155')]=_0x86640f()[_0x57a720('0x16a2')](_0x43392e['allReportsSelected'],function(_0x455ed0){var _0x5bd837=_0x57a720;return _0x455ed0['type']===(_0x43392e[_0x5bd837('0x2152')]['reportType']===_0x5bd837('0x1e6e')?_0x5bd837('0x1a1e'):_0x5bd837('0x1505'));}):_0x43392e[_0x57a720('0x2152')][_0x57a720('0x2629')]['forEach'](function(_0x5194dd){var _0xe8acd5=_0x57a720,_0x427108=_0x86640f()[_0xe8acd5('0x2664')](_0x43392e['allReportsSelected'],{'id':_0x5194dd['id'],'parent':_0x5194dd[_0xe8acd5('0x12e2')]});!_0x427108&&_0x43392e[_0xe8acd5('0x2155')][_0xe8acd5('0x206c')](_0x5194dd);});}function _0x5dfb52(_0xfa6dae,_0x187099){var _0x3a3f09=_0x3e62fd;if(_0xfa6dae==='Reports'){if(_0x187099['parent']){var _0x13f16b=_0x86640f()[_0x3a3f09('0x2837')](_0x187099[_0x3a3f09('0x12e2')],'motion')?_0x3a3f09('0x15d3'):_0x3a3f09('0x27b9');return _0x13f16b+_0xfa6dae;}else return _0x187099[_0x3a3f09('0x7fa')];}return _0xfa6dae;}function _0x423304(_0x20faf5){var _0x56e419=_0x3e62fd;if(_0x43392e['pendingChanges']){var _0x257ea7=_0x205880['confirm']({'skipHide':!![]})[_0x56e419('0x4b4')](_0x56e419('0xb38'))[_0x56e419('0x226d')](_0x11b949[_0x56e419('0x183e')]('STAFF.PERMISSIONS_WARNING_CLOSE'))['ariaLabel'](_0x56e419('0xb38'))['targetEvent'](_0x20faf5)['ok'](_0x11b949[_0x56e419('0x183e')](_0x56e419('0x1374')))[_0x56e419('0x3b5')](_0x11b949[_0x56e419('0x183e')](_0x56e419('0x194e')));_0x205880['show'](_0x257ea7)[_0x56e419('0x21ad')](function(){var _0x5d52b3=_0x56e419;_0x205880[_0x5d52b3('0x1c24')]();});}else _0x205880[_0x56e419('0x1c24')]();}}const _0x362a4f=_0x1d9293,_0x2093ee=_0x398308['p']+_0x3877e3('0x50a');_0x5d5600[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x13c1'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),'api',_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x758'),_0x3877e3('0xab4')];function _0x5d5600(_0x3d4b6e,_0x26eb82,_0x2ca40a,_0x4fbf8e,_0x48935e,_0x31e50c,_0x244260,_0x14354e,_0x79bc26,_0x513cc5,_0xabd30b,_0x19807a){var _0x274955=_0x3877e3,_0x3a583f=this;_0x3a583f['currentUser']=_0x513cc5['getCurrentUser'](),_0x3a583f[_0x274955('0x2ff')]=_0x31e50c,_0x3a583f[_0x274955('0x21e')]=_0x244260,_0x3a583f[_0x274955('0x1432')]=_0x3a583f[_0x274955('0x21e')][_0x274955('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3a583f[_0x274955('0x626')]=_0x26eb82[_0x274955('0x1162')]()+_0x274955('0x22a9')+_0x26eb82['host'](),_0x3a583f[_0x274955('0x758')]=_0xabd30b||_0x3d4b6e[_0x274955('0x171b')][_0x274955('0x758')]||{},_0x3a583f[_0x274955('0xab4')]=_0x19807a&&_0x19807a[_0x274955('0x205f')]==0x1?_0x19807a[_0x274955('0x1b33')][0x0]:null,_0x3a583f[_0x274955('0x5ed')]=_0x513cc5[_0x274955('0x1778')](_0x3a583f[_0x274955('0xab4')]?_0x3a583f['userProfileSection'][_0x274955('0x5ed')]:null),_0x3a583f[_0x274955('0x126a')]={},_0x3a583f[_0x274955('0x302')]=_0x3d4b6e['params'][_0x274955('0x12e1')]||0x0,_0x3a583f[_0x274955('0x1d0f')]=_0xbb5796,_0x3a583f[_0x274955('0x1b5c')]=_0xffb594,_0x3a583f[_0x274955('0x95b')]=_0x79bc26['info'],_0x3a583f[_0x274955('0x13b2')]=_0x34c26d,_0x3a583f['saveUserProfile']=_0x34eeed;function _0xbb5796(_0x2ccba3,_0x233d80){var _0x10f399=_0x274955;_0x2ca40a[_0x10f399('0x853')]({'controller':'UserProfilepermissionsmanageController','controllerAs':'vm','templateUrl':_0x1042b6,'parent':angular[_0x10f399('0x1676')](_0x4fbf8e[_0x10f399('0x2452')]),'targetEvent':_0x233d80,'clickOutsideToClose':!![],'locals':{'userProfile':_0x2ccba3,'userProfiles':_0x3a583f[_0x10f399('0x10b7')]?_0x3a583f[_0x10f399('0x10b7')]['rows']:[],'crudPermissions':_0x3a583f[_0x10f399('0x5ed')]}});}function _0xffb594(_0x112fb5,_0x8369b3){var _0x34f32b=_0x274955;_0x2ca40a['show']({'controller':_0x34f32b('0x15a1'),'controllerAs':'vm','templateUrl':_0x2093ee,'parent':angular[_0x34f32b('0x1676')](_0x4fbf8e[_0x34f32b('0x2452')]),'targetEvent':_0x8369b3,'clickOutsideToClose':!![],'locals':{'userProfile':_0x112fb5,'userProfiles':_0x3a583f[_0x34f32b('0x10b7')]?_0x3a583f['userProfiles'][_0x34f32b('0x1b33')]:[],'crudPermissions':_0x3a583f[_0x34f32b('0x5ed')]}});}function _0x34c26d(){var _0x5f365a=_0x274955;_0x3d4b6e['go'](_0x5f365a('0xaa6'),{},{'reload':_0x5f365a('0xaa6')});}function _0x34eeed(){var _0x2bbc03=_0x274955;_0x14354e[_0x2bbc03('0x758')][_0x2bbc03('0x5ef')]({'id':_0x3a583f['userProfile']['id']},_0x3a583f[_0x2bbc03('0x758')])[_0x2bbc03('0x1376')][_0x2bbc03('0x21ad')](function(){var _0x20aec3=_0x2bbc03;_0x79bc26[_0x20aec3('0xdb1')]({'title':_0x20aec3('0x156d'),'msg':_0x3a583f[_0x20aec3('0x758')][_0x20aec3('0x19fe')]?_0x3a583f[_0x20aec3('0x758')][_0x20aec3('0x19fe')]+'\x20has\x20been\x20updated!':''});})[_0x2bbc03('0x1c1d')](function(_0x4cfc6f){var _0x43aa62=_0x2bbc03;_0x79bc26['error']({'title':_0x4cfc6f[_0x43aa62('0x209')]?_0x43aa62('0x22d')+_0x4cfc6f[_0x43aa62('0x209')]+_0x43aa62('0xa99')+_0x4cfc6f['statusText']:_0x43aa62('0xc4c'),'msg':_0x4cfc6f[_0x43aa62('0x11c2')]?JSON['stringify'](_0x4cfc6f[_0x43aa62('0x11c2')]):_0x4cfc6f[_0x43aa62('0x174f')]()});});}}const _0x3ff90=_0x5d5600,_0x55c299=_0x398308['p']+_0x3877e3('0x14eb');_0x363e42[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),'$state',_0x3877e3('0x2828'),'$mdDialog','$document','$timeout',_0x3877e3('0x13c1'),_0x3877e3('0x10b7'),_0x3877e3('0x758'),_0x3877e3('0xab4'),'api',_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),'license',_0x3877e3('0x21e')];function _0x363e42(_0x24b53f,_0x4555bf,_0x13c3ee,_0x424205,_0x11aa28,_0x3a2846,_0x3e98c9,_0x2fe351,_0x37bacb,_0x4b70e0,_0x97c795,_0x49f09e,_0x53f6c8,_0x278e32,_0x54e20a,_0xe732af,_0x128eed){var _0x4b884c=_0x3877e3,_0x3c76b7=this;_0x3c76b7[_0x4b884c('0x2ff')]=_0xe732af,_0x3c76b7[_0x4b884c('0x21e')]=_0x128eed,_0x3c76b7[_0x4b884c('0x123f')]=_0x54e20a[_0x4b884c('0x15ed')](),_0x3c76b7[_0x4b884c('0x10b7')]=_0x37bacb||{'count':0x0,'rows':[]},_0x3c76b7['userProfile']=_0x4b70e0,_0x3c76b7[_0x4b884c('0xab4')]=_0x97c795&&_0x97c795['count']==0x1?_0x97c795[_0x4b884c('0x1b33')][0x0]:null,_0x3c76b7[_0x4b884c('0x5ed')]=_0x54e20a[_0x4b884c('0x1778')](_0x3c76b7[_0x4b884c('0xab4')]?_0x3c76b7[_0x4b884c('0xab4')]['crudPermissions']:null),_0x3c76b7[_0x4b884c('0x1897')]=_0x4b884c('0x10b7'),_0x3c76b7[_0x4b884c('0x11dc')]='',_0x3c76b7[_0x4b884c('0x18cf')]=null,_0x3c76b7[_0x4b884c('0x231f')]=[],_0x3c76b7[_0x4b884c('0x77')]={'fields':_0x4b884c('0x21c3'),'sort':_0x4b884c('0x33'),'limit':0xa,'page':0x1},_0x3c76b7[_0x4b884c('0x4e4')]=_0x86640f()['keyBy']([{'option':_0x4b884c('0x973'),'value':_0x4b884c('0x6e7'),'disabled':!![]},{'option':_0x4b884c('0x18d'),'value':_0x4b884c('0x1f9f')},{'option':'Delete_permission','value':_0x4b884c('0x2b8')}],function(_0x47e58d){var _0x5c8404=_0x4b884c;return _0x86640f()['replace'](_0x47e58d[_0x5c8404('0x2228')],new RegExp('\x27','g'),'');});_0x3c76b7['userProfiles']&&_0x3c76b7[_0x4b884c('0x10b7')][_0x4b884c('0x205f')]>0x0&&_0x3c76b7['userProfiles'][_0x4b884c('0x1b33')][_0x4b884c('0x1a52')](function(_0xefa291){var _0xbb5ed2=_0x4b884c,_0xa6e47=[];_0xefa291[_0xbb5ed2('0x5ed')][_0xbb5ed2('0x1a52')](function(_0x464baa){var _0x3f73a8=_0xbb5ed2;_0xa6e47[_0x3f73a8('0x206c')](_0x3c76b7[_0x3f73a8('0x4e4')][_0x464baa][_0x3f73a8('0xf8a')]);});var _0x4cfed2=[];_0xa6e47['forEach'](function(_0xa45c53){var _0x54979e=_0xbb5ed2;_0x4cfed2[_0x54979e('0x206c')](_0x2fe351[_0x54979e('0x183e')](_0x54979e('0x1914')+_0xa45c53['toUpperCase']()));}),_0xefa291[_0xbb5ed2('0x2109')]=_0x4cfed2['join'](',\x20');});_0x3c76b7[_0x4b884c('0x1c88')]=_0xf16dd3,_0x3c76b7['clonedialog']=_0x46e7a3,_0x3c76b7['deleteconfirm']=_0x4ca1e4,_0x3c76b7[_0x4b884c('0xdb1')]=_0x447f5b,_0x3c76b7[_0x4b884c('0x18a0')]=_0x5a28e0,_0x3c76b7[_0x4b884c('0xccc')]=_0x3c80b3,_0x3c76b7[_0x4b884c('0x72b')]=_0x22193a,_0x3c76b7[_0x4b884c('0x1348')]=_0x25ff6c,_0x3c76b7[_0x4b884c('0x16ed')]=_0x246c58,_0x3c76b7[_0x4b884c('0xc49')]=_0x573ed8,_0x3c76b7[_0x4b884c('0xd87')]=_0x524d85;function _0xf16dd3(_0xbcc56c){var _0xc650a1=_0x4b884c;_0x13c3ee['go'](_0xc650a1('0x1975'),{'id':_0xbcc56c['id'],'userProfile':_0xbcc56c,'crudPermissions':_0x3c76b7[_0xc650a1('0x5ed')]});}function _0x46e7a3(_0x12b3d2,_0x1688a8){var _0x45b225=_0x4b884c;_0x11aa28[_0x45b225('0x853')]({'controller':_0x45b225('0x15a1'),'controllerAs':'vm','templateUrl':_0x2093ee,'parent':angular[_0x45b225('0x1676')](_0x3a2846[_0x45b225('0x2452')]),'targetEvent':_0x1688a8,'clickOutsideToClose':!![],'locals':{'userProfile':_0x12b3d2,'userProfiles':_0x3c76b7['userProfiles']?_0x3c76b7[_0x45b225('0x10b7')]['rows']:[],'crudPermissions':_0x3c76b7['crudPermissions']}});}function _0x4ca1e4(_0x25ca7c,_0x359380){var _0x411a60=_0x4b884c,_0x166690=_0x11aa28['confirm']()[_0x411a60('0x4b4')](_0x411a60('0x25b6')+_0x86640f()[_0x411a60('0x2159')](_0x411a60('0x758'))+'?')[_0x411a60('0x276b')](_0x411a60('0x622')+(_0x25ca7c[_0x411a60('0x19fe')]||_0x411a60('0x758'))+_0x411a60('0x2135')+_0x411a60('0x25e0'))[_0x411a60('0x7a7')]('delete\x20userProfile')[_0x411a60('0x1e6d')](_0x359380)['ok']('OK')[_0x411a60('0x3b5')](_0x411a60('0x284b'));_0x11aa28[_0x411a60('0x853')](_0x166690)['then'](function(){_0x22193a(_0x25ca7c);},function(){var _0x4981e6=_0x411a60;console[_0x4981e6('0x6fb')]('CANCEL');});}var _0x466f44=!![],_0x51f6e7=0x1;_0x24b53f[_0x4b884c('0x10e8')](_0x4b884c('0x1948'),function(_0x5aeb27,_0x290bfd){var _0x42ba19=_0x4b884c;_0x466f44?_0x3e98c9(function(){_0x466f44=![];}):(!_0x290bfd&&(_0x51f6e7=_0x3c76b7[_0x42ba19('0x77')]['page']),_0x5aeb27!==_0x290bfd&&(_0x3c76b7[_0x42ba19('0x77')][_0x42ba19('0x2376')]=0x1),!_0x5aeb27&&(_0x3c76b7['query'][_0x42ba19('0x2376')]=_0x51f6e7),_0x3c76b7[_0x42ba19('0x18a0')]());});function _0x447f5b(_0x189806){var _0x3df4e7=_0x4b884c;_0x3c76b7[_0x3df4e7('0x10b7')]=_0x189806||{'count':0x0,'rows':[]};}function _0x5a28e0(){var _0x3185e4=_0x4b884c;_0x3c76b7[_0x3185e4('0x77')][_0x3185e4('0x15a5')]=(_0x3c76b7[_0x3185e4('0x77')][_0x3185e4('0x2376')]-0x1)*_0x3c76b7[_0x3185e4('0x77')]['limit'],_0x54e20a[_0x3185e4('0x21de')](_0x3185e4('0x1bd8'))?_0x3c76b7[_0x3185e4('0x71b')]=_0x49f09e[_0x3185e4('0x758')][_0x3185e4('0x595')](_0x3c76b7['query'],_0x447f5b)[_0x3185e4('0x1376')]:(_0x3c76b7[_0x3185e4('0x77')]['id']=_0x3c76b7[_0x3185e4('0x758')]['id'],_0x3c76b7[_0x3185e4('0x77')]['section']='UserProfiles',_0x3c76b7[_0x3185e4('0x71b')]=_0x49f09e[_0x3185e4('0x758')][_0x3185e4('0x321')](_0x3c76b7[_0x3185e4('0x77')],_0x447f5b)['$promise']);}function _0x3c80b3(_0xf4bf95,_0x510452){var _0x35762e=_0x4b884c;_0x11aa28['show']({'controller':'CreateOrEditUserProfileDialogController','controllerAs':'vm','templateUrl':_0x55c299,'parent':angular[_0x35762e('0x1676')](_0x3a2846[_0x35762e('0x2452')]),'targetEvent':_0xf4bf95,'clickOutsideToClose':!![],'locals':{'userProfile':_0x510452,'userProfiles':_0x3c76b7['userProfiles'][_0x35762e('0x1b33')],'license':_0x3c76b7['license'],'setting':_0x3c76b7[_0x35762e('0x21e')],'crudPermissions':_0x3c76b7[_0x35762e('0x5ed')]}});}function _0x22193a(_0x526cce){var _0x54ba1b=_0x4b884c;_0x49f09e['userProfile'][_0x54ba1b('0x1164')]({'id':_0x526cce['id']})[_0x54ba1b('0x1376')][_0x54ba1b('0x21ad')](function(){var _0x4ebd82=_0x54ba1b;_0x86640f()[_0x4ebd82('0x16a2')](_0x3c76b7['userProfiles'][_0x4ebd82('0x1b33')],{'id':_0x526cce['id']}),_0x3c76b7[_0x4ebd82('0x10b7')]['count']-=0x1,!_0x3c76b7['userProfiles'][_0x4ebd82('0x1b33')][_0x4ebd82('0x577')]&&_0x3c76b7[_0x4ebd82('0x18a0')](),_0x278e32[_0x4ebd82('0xdb1')]({'title':_0x86640f()[_0x4ebd82('0x2159')](_0x4ebd82('0x26a5'))+'\x20deleted!','msg':_0x526cce[_0x4ebd82('0x19fe')]?_0x526cce[_0x4ebd82('0x19fe')]+_0x4ebd82('0xb4a'):''});})[_0x54ba1b('0x1c1d')](function(_0x4fc0d9){var _0x5a724d=_0x54ba1b;if(_0x4fc0d9['data']&&_0x4fc0d9[_0x5a724d('0x11c2')]['errors']&&_0x4fc0d9['data']['errors']['length']){_0x3c76b7['errors']=_0x4fc0d9[_0x5a724d('0x11c2')][_0x5a724d('0x1a69')]||[{'message':_0x4fc0d9[_0x5a724d('0x174f')](),'type':_0x5a724d('0xe29')}];for(var _0xac9255=0x0;_0xac9255<_0x4fc0d9[_0x5a724d('0x11c2')][_0x5a724d('0x1a69')][_0x5a724d('0x577')];_0xac9255++){_0x278e32[_0x5a724d('0x2092')]({'title':_0x4fc0d9['data'][_0x5a724d('0x1a69')][_0xac9255][_0x5a724d('0x7fa')],'msg':_0x4fc0d9['data'][_0x5a724d('0x1a69')][_0xac9255][_0x5a724d('0x1224')]});}}else _0x278e32['error']({'title':_0x4fc0d9[_0x5a724d('0x209')]?_0x5a724d('0x22d')+_0x4fc0d9[_0x5a724d('0x209')]+_0x5a724d('0xa99')+_0x4fc0d9[_0x5a724d('0x1808')]:_0x5a724d('0xe29'),'msg':_0x4fc0d9[_0x5a724d('0x11c2')]?JSON[_0x5a724d('0x25e')](_0x4fc0d9[_0x5a724d('0x11c2')][_0x5a724d('0x1224')]):_0x4fc0d9[_0x5a724d('0x1224')]||_0x4fc0d9[_0x5a724d('0x174f')]()});});}function _0x25ff6c(){var _0x2e6145=_0x4b884c,_0x1f5f8d=angular['copy'](_0x3c76b7[_0x2e6145('0x231f')]);return _0x3c76b7['selectedUserProfiles']=[],_0x1f5f8d;}function _0x246c58(_0x1cc516){var _0x5266bb=_0x4b884c,_0x15630c=_0x11aa28['confirm']()[_0x5266bb('0x4b4')](_0x5266bb('0x230a'))[_0x5266bb('0x276b')](_0x5266bb('0x622')+_0x3c76b7[_0x5266bb('0x231f')][_0x5266bb('0x577')]+_0x5266bb('0xd74')+_0x5266bb('0x25e0'))[_0x5266bb('0x7a7')](_0x5266bb('0x14f2'))['targetEvent'](_0x1cc516)['ok']('OK')[_0x5266bb('0x3b5')](_0x5266bb('0x284b'));_0x11aa28[_0x5266bb('0x853')](_0x15630c)[_0x5266bb('0x21ad')](function(){var _0x4f2a6a=_0x5266bb;_0x3c76b7[_0x4f2a6a('0x231f')][_0x4f2a6a('0x1a52')](function(_0x194f78){_0x22193a(_0x194f78);}),_0x3c76b7[_0x4f2a6a('0x231f')]=[];});}function _0x573ed8(){var _0x3d76da=_0x4b884c;_0x3c76b7[_0x3d76da('0x231f')]=[];}function _0x524d85(){var _0x163503=_0x4b884c;_0x3c76b7[_0x163503('0x231f')]=_0x3c76b7[_0x163503('0x10b7')][_0x163503('0x1b33')];}}const _0x487ba7=_0x363e42;_0x14d5be[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q','$translate',_0x3877e3('0x1908'),'users',_0x3877e3('0x1775'),'api','Auth',_0x3877e3('0x2ff'),'setting',_0x3877e3('0x5ed')];function _0x14d5be(_0xd526fc,_0x43656c,_0x939567,_0x8ed2f4,_0x318621,_0x287b1d,_0x2d4623,_0x3a0923,_0x81aa24,_0xda3eb8,_0x49525c,_0x171011,_0x5b7338,_0x7c3c56){var _0x1d3f17=_0x3877e3,_0x25ae16=this;_0x25ae16[_0x1d3f17('0x123f')]=_0x49525c['getCurrentUser'](),_0x25ae16['errors']=[],_0x25ae16[_0x1d3f17('0x21e')]=_0x5b7338,_0x25ae16[_0x1d3f17('0x2ff')]=_0x171011,_0x25ae16[_0x1d3f17('0x5ed')]=_0x7c3c56,_0x25ae16[_0x1d3f17('0x126a')]={},_0x25ae16[_0x1d3f17('0x1432')]=_0x25ae16[_0x1d3f17('0x21e')]&&_0x25ae16[_0x1d3f17('0x21e')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x25ae16[_0x1d3f17('0x4b4')]=_0x1d3f17('0x4c2'),_0x25ae16[_0x1d3f17('0x1775')]=angular[_0x1d3f17('0xd75')](_0x81aa24),_0x25ae16[_0x1d3f17('0x188e')]=_0x3a0923,_0x25ae16[_0x1d3f17('0x70a')]=![];!_0x25ae16[_0x1d3f17('0x1775')]&&(_0x25ae16[_0x1d3f17('0x1775')]={'role':'user','autointernal':!![],'context':_0x1d3f17('0x1961')},_0x25ae16[_0x1d3f17('0x4b4')]=_0x1d3f17('0x17cc'),_0x25ae16[_0x1d3f17('0x70a')]=!![]);_0x25ae16[_0x1d3f17('0x329')]=_0x5dbf87,_0x25ae16[_0x1d3f17('0xd7c')]=_0x415154,_0x25ae16['deleteUser']=_0x59c4ae,_0x25ae16['getDateFromString']=_0x4181ee,_0x25ae16[_0x1d3f17('0x167')]=_0x4571ff,_0xda3eb8[_0x1d3f17('0x758')][_0x1d3f17('0x595')]({'fields':_0x1d3f17('0x1aa8'),'sort':'name'})[_0x1d3f17('0x1376')][_0x1d3f17('0x21ad')](function(_0x1e3f29){var _0x39356a=_0x1d3f17;_0x25ae16[_0x39356a('0x10b7')]=_0x1e3f29['rows']||[];})[_0x1d3f17('0x1c1d')](function(_0x309940){var _0x328047=_0x1d3f17;_0x2d4623[_0x328047('0x2092')]({'title':_0x309940['status']?_0x328047('0x22d')+_0x309940[_0x328047('0x209')]+_0x328047('0xa99')+_0x309940['statusText']:_0x328047('0x225c'),'msg':_0x309940['data']?JSON[_0x328047('0x25e')](_0x309940['data']):_0x309940['toString']()});});function _0x5dbf87(){var _0x2719a2=_0x1d3f17;_0x25ae16[_0x2719a2('0x1a69')]=[],_0xda3eb8[_0x2719a2('0x1775')][_0x2719a2('0x186f')](_0x25ae16['user'])['$promise'][_0x2719a2('0x21ad')](function(_0x1a8e1a){var _0x4929ba=_0x2719a2;_0x25ae16[_0x4929ba('0x188e')][_0x4929ba('0xd0c')](_0x1a8e1a[_0x4929ba('0x3bc')]()),_0x2d4623[_0x4929ba('0xdb1')]({'title':_0x4929ba('0x1d03'),'msg':_0x25ae16[_0x4929ba('0x1775')][_0x4929ba('0x19fe')]?_0x25ae16[_0x4929ba('0x1775')]['name']+_0x4929ba('0x1694'):''}),_0x4571ff(_0x1a8e1a);})[_0x2719a2('0x1c1d')](function(_0x599519){var _0x4b8d4f=_0x2719a2;if(_0x599519[_0x4b8d4f('0x11c2')]&&_0x599519[_0x4b8d4f('0x11c2')][_0x4b8d4f('0x1a69')]&&_0x599519[_0x4b8d4f('0x11c2')][_0x4b8d4f('0x1a69')][_0x4b8d4f('0x577')]){_0x25ae16[_0x4b8d4f('0x1a69')]=_0x599519['data'][_0x4b8d4f('0x1a69')]||[{'message':_0x599519['toString'](),'type':_0x4b8d4f('0xb90')}];for(var _0x3463cb=0x0;_0x3463cb<_0x599519[_0x4b8d4f('0x11c2')]['errors'][_0x4b8d4f('0x577')];_0x3463cb+=0x1){_0x2d4623[_0x4b8d4f('0x2092')]({'title':_0x599519[_0x4b8d4f('0x11c2')][_0x4b8d4f('0x1a69')][_0x3463cb][_0x4b8d4f('0x7fa')],'msg':_0x599519[_0x4b8d4f('0x11c2')][_0x4b8d4f('0x1a69')][_0x3463cb][_0x4b8d4f('0x1224')]});}}else _0x2d4623[_0x4b8d4f('0x2092')]({'title':_0x599519[_0x4b8d4f('0x209')]?_0x4b8d4f('0x22d')+_0x599519[_0x4b8d4f('0x209')]+'\x20-\x20'+_0x599519[_0x4b8d4f('0x1808')]:_0x4b8d4f('0xb90'),'msg':_0x599519[_0x4b8d4f('0x11c2')]?JSON[_0x4b8d4f('0x25e')](_0x599519[_0x4b8d4f('0x11c2')][_0x4b8d4f('0x1224')]):_0x599519[_0x4b8d4f('0x174f')]()});});}function _0x415154(){var _0x3f3740=_0x1d3f17;_0x25ae16[_0x3f3740('0x1a69')]=[],_0xda3eb8[_0x3f3740('0x1775')][_0x3f3740('0x5ef')]({'id':_0x25ae16[_0x3f3740('0x1775')]['id']},_0x25ae16[_0x3f3740('0x1775')])[_0x3f3740('0x1376')][_0x3f3740('0x21ad')](function(_0x54b200){var _0x17182c=_0x3f3740,_0x662e9e=_0x86640f()[_0x17182c('0x1d2e')](_0x25ae16[_0x17182c('0x188e')],{'id':_0x54b200['id']});_0x662e9e&&_0x86640f()[_0x17182c('0xd0e')](_0x662e9e,_0x86640f()[_0x17182c('0xc50')](_0x54b200[_0x17182c('0x3bc')](),_0x86640f()[_0x17182c('0x223b')](_0x662e9e))),_0x2d4623[_0x17182c('0xdb1')]({'title':_0x17182c('0xbaa'),'msg':_0x25ae16[_0x17182c('0x1775')]['name']?_0x25ae16[_0x17182c('0x1775')][_0x17182c('0x19fe')]+_0x17182c('0x2249'):''}),_0x4571ff(_0x54b200);})[_0x3f3740('0x1c1d')](function(_0x3972e4){var _0x45faad=_0x3f3740;if(_0x3972e4[_0x45faad('0x11c2')]&&_0x3972e4[_0x45faad('0x11c2')]['errors']&&_0x3972e4[_0x45faad('0x11c2')][_0x45faad('0x1a69')][_0x45faad('0x577')]){_0x25ae16['errors']=_0x3972e4[_0x45faad('0x11c2')]['errors']||[{'message':_0x3972e4[_0x45faad('0x174f')](),'type':_0x45faad('0x14b6')}];for(var _0xbc0712=0x0;_0xbc0712<_0x3972e4[_0x45faad('0x11c2')]['errors'][_0x45faad('0x577')];_0xbc0712++){_0x2d4623[_0x45faad('0x2092')]({'title':_0x3972e4[_0x45faad('0x11c2')][_0x45faad('0x1a69')][_0xbc0712][_0x45faad('0x7fa')],'msg':_0x3972e4[_0x45faad('0x11c2')][_0x45faad('0x1a69')][_0xbc0712][_0x45faad('0x1224')]});}}else _0x2d4623[_0x45faad('0x2092')]({'title':_0x3972e4['status']?_0x45faad('0x22d')+_0x3972e4['status']+'\x20-\x20'+_0x3972e4[_0x45faad('0x1808')]:_0x45faad('0x14b6'),'msg':_0x3972e4['data']?JSON[_0x45faad('0x25e')](_0x3972e4[_0x45faad('0x11c2')][_0x45faad('0x1224')]):_0x3972e4['toString']()});});}function _0x59c4ae(_0x839687){var _0x25dc40=_0x1d3f17,_0x35cd14=_0x49525c[_0x25dc40('0x15ed')]();if(_0x35cd14['id']===_0x25ae16[_0x25dc40('0x1775')]['id'])return _0x2d4623[_0x25dc40('0x2092')]({'title':_0x25dc40('0xd1f'),'msg':_0x25dc40('0x77f')});_0x25ae16[_0x25dc40('0x1a69')]=[];var _0x40f531=_0x8ed2f4[_0x25dc40('0xa33')]()['title'](_0x25dc40('0x196b'))['content'](_0x25dc40('0x1589'))[_0x25dc40('0x7a7')]('Delete\x20User')['ok'](_0x25dc40('0xbfd'))[_0x25dc40('0x3b5')](_0x25dc40('0x1f40'))[_0x25dc40('0x1e6d')](_0x839687);_0x8ed2f4[_0x25dc40('0x853')](_0x40f531)[_0x25dc40('0x21ad')](function(){var _0x232e0c=_0x25dc40;_0xda3eb8[_0x232e0c('0x1775')][_0x232e0c('0x1164')]({'id':_0x25ae16[_0x232e0c('0x1775')]['id']})['$promise']['then'](function(){var _0x2f0c0b=_0x232e0c;_0x86640f()[_0x2f0c0b('0x16a2')](_0x25ae16[_0x2f0c0b('0x188e')],{'id':_0x25ae16[_0x2f0c0b('0x1775')]['id']}),_0x2d4623['success']({'title':'User\x20properly\x20deleted!','msg':(_0x25ae16['user'][_0x2f0c0b('0x19fe')]||_0x2f0c0b('0x1775'))+_0x2f0c0b('0xb4a')}),_0x4571ff(_0x25ae16[_0x2f0c0b('0x1775')]);})['catch'](function(_0x5e9205){var _0x2ffcb2=_0x232e0c;if(_0x5e9205[_0x2ffcb2('0x11c2')]&&_0x5e9205['data'][_0x2ffcb2('0x1a69')]&&_0x5e9205[_0x2ffcb2('0x11c2')][_0x2ffcb2('0x1a69')][_0x2ffcb2('0x577')]){_0x25ae16[_0x2ffcb2('0x1a69')]=_0x5e9205['data'][_0x2ffcb2('0x1a69')]||[{'message':_0x5e9205[_0x2ffcb2('0x174f')](),'type':'api.user.delete'}];for(var _0x345446=0x0;_0x345446<_0x5e9205['data'][_0x2ffcb2('0x1a69')][_0x2ffcb2('0x577')];_0x345446++){_0x2d4623[_0x2ffcb2('0x2092')]({'title':_0x5e9205['data']['errors'][_0x345446][_0x2ffcb2('0x7fa')],'msg':_0x5e9205[_0x2ffcb2('0x11c2')][_0x2ffcb2('0x1a69')][_0x345446][_0x2ffcb2('0x1224')]});}}else _0x2d4623[_0x2ffcb2('0x2092')]({'title':_0x5e9205['status']?_0x2ffcb2('0x22d')+_0x5e9205[_0x2ffcb2('0x209')]+_0x2ffcb2('0xa99')+_0x5e9205[_0x2ffcb2('0x1808')]:'api.user.delete','msg':_0x5e9205['data']?JSON[_0x2ffcb2('0x25e')](_0x5e9205['data'][_0x2ffcb2('0x1224')]):_0x5e9205[_0x2ffcb2('0x1224')]||_0x5e9205[_0x2ffcb2('0x174f')]()});});},function(){});}function _0x4181ee(_0x272ddf){return _0x272ddf===null?undefined:new Date(_0x272ddf);}function _0x4571ff(_0x5f3a5e){_0x8ed2f4['hide'](_0x5f3a5e);}}const _0x178734=_0x14d5be;_0x4187c0['$inject']=[_0x3877e3('0x1850'),_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x1775'),'Auth'];function _0x4187c0(_0x217db7,_0xa16cea,_0x5b4e2f,_0x5af575,_0xecf99b){var _0x3459ff=_0x3877e3,_0x5774db=this;_0x5774db[_0x3459ff('0x123f')]=_0xecf99b[_0x3459ff('0x15ed')](),_0x5774db[_0x3459ff('0x1a69')]=[],_0x5774db[_0x3459ff('0x1775')]=_0x5af575,_0x5774db['generateApiKey']=_0x69ac5c,_0x5774db[_0x3459ff('0x1d27')]=_0x3e79fd,_0x5774db[_0x3459ff('0x167')]=_0x4e9a2d;function _0x69ac5c(){var _0x28d59c=_0x3459ff;_0x5774db[_0x28d59c('0x1a69')]=[],_0x5b4e2f['user']['createApiKey']({'id':_0x5774db[_0x28d59c('0x1775')]['id']})['$promise'][_0x28d59c('0x21ad')](function(_0x3fcdf8){var _0x18f694=_0x28d59c;_0x5774db['user'][_0x18f694('0x9a')]=_0x3fcdf8[_0x18f694('0x6ab')]||'N/A',_0xa16cea[_0x18f694('0xdb1')]({'title':_0x18f694('0x1c52')}),_0x4e9a2d();})[_0x28d59c('0x1c1d')](function(_0x46a5a4){var _0x343821=_0x28d59c;_0xa16cea[_0x343821('0x2092')]({'title':_0x46a5a4[_0x343821('0x209')]?'API:'+_0x46a5a4[_0x343821('0x209')]+'\x20-\x20'+_0x46a5a4[_0x343821('0x1808')]:_0x343821('0x1997'),'msg':_0x46a5a4[_0x343821('0x11c2')]?JSON['stringify'](_0x46a5a4[_0x343821('0x11c2')][_0x343821('0x1224')]):_0x46a5a4[_0x343821('0x174f')]()}),_0x5774db['errors']=_0x46a5a4['data']['errors']||[{'message':_0x46a5a4[_0x343821('0x174f')](),'type':_0x343821('0x1997')}];});}function _0x3e79fd(){var _0xf94b67=_0x3459ff;_0x5774db['errors']=[],_0x5b4e2f['user'][_0xf94b67('0x1d27')]({'id':_0x5774db['user']['id']})[_0xf94b67('0x1376')][_0xf94b67('0x21ad')](function(){var _0x33e320=_0xf94b67;_0x5774db['user']['apiKey']=_0x33e320('0x710'),_0xa16cea[_0x33e320('0xdb1')]({'title':_0x33e320('0x1b80')}),_0x4e9a2d();})[_0xf94b67('0x1c1d')](function(_0x5f08e5){var _0x350223=_0xf94b67;_0xa16cea[_0x350223('0x2092')]({'title':_0x5f08e5[_0x350223('0x209')]?'API:'+_0x5f08e5[_0x350223('0x209')]+_0x350223('0xa99')+_0x5f08e5[_0x350223('0x1808')]:_0x350223('0x237e'),'msg':_0x5f08e5['data']?JSON[_0x350223('0x25e')](_0x5f08e5[_0x350223('0x11c2')][_0x350223('0x1224')]):_0x5f08e5['toString']()}),_0x5774db[_0x350223('0x1a69')]=_0x5f08e5[_0x350223('0x11c2')][_0x350223('0x1a69')]||[{'message':_0x5f08e5['toString'](),'type':'api.user.removeApiKey'}];});}function _0x4e9a2d(){var _0x620abd=_0x3459ff;_0x217db7[_0x620abd('0x1c24')]();}}const _0x4aba52=_0x4187c0;_0x1a6a58[_0x3877e3('0x1a81')]=[_0x3877e3('0x26'),_0x3877e3('0x1908')];function _0x1a6a58(_0x475e01,_0x51c7b9){var _0x2a656c=_0x3877e3,_0x2c0e14=this,_0x1d6097=0x8,_0x299897=_0x1d6097*0x400*0x400;_0x2c0e14[_0x2a656c('0x1775')]={},_0x2c0e14[_0x2a656c('0x5ed')],_0x2c0e14[_0x2a656c('0x467')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x299897,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x2c0e14[_0x2a656c('0x1413')]={'flow':{}},_0x2c0e14[_0x2a656c('0x8c3')]=![],_0x2c0e14[_0x2a656c('0x20d9')]=_0x2582e4,_0x2c0e14[_0x2a656c('0x12d0')]=_0x3b6f84,_0x2c0e14[_0x2a656c('0x27eb')]=_0x9f02b8,_0x2c0e14[_0x2a656c('0x1d75')]=_0x3f6397;function _0x3f6397(_0x125556,_0x202166){var _0x13e61e=_0x2a656c;_0x2c0e14[_0x13e61e('0x1775')]=angular['copy'](_0x125556),_0x2c0e14[_0x13e61e('0x5ed')]=typeof _0x202166!==_0x13e61e('0xddc')?_0x202166:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2c0e14[_0x13e61e('0x467')]['target']=_0x13e61e('0x1b19')+_0x2c0e14[_0x13e61e('0x1775')]['id']+_0x13e61e('0x80d'),_0x2c0e14[_0x13e61e('0x1775')][_0x13e61e('0x851')]=[];}function _0x2582e4(_0x2b5798){var _0x37bf5c=_0x2a656c,_0x140547=[_0x37bf5c('0x14f5'),_0x37bf5c('0x13d2')];if(!_0x86640f()[_0x37bf5c('0xb34')](_0x140547,_0x2b5798[_0x37bf5c('0x9bb')]()))return _0x51c7b9[_0x37bf5c('0x2092')]({'title':'Invalid\x20extension:\x20'+_0x2b5798['getExtension'](),'msg':_0x37bf5c('0x156b')+_0x140547['join']()}),![];if(_0x2b5798[_0x37bf5c('0x337')]>_0x299897)return _0x51c7b9[_0x37bf5c('0x2092')]({'title':_0x37bf5c('0x8d1'),'msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x1d6097+'MB'}),![];var _0x404f86={'id':_0x2b5798[_0x37bf5c('0x25f6')],'file':_0x2b5798,'type':'uploading'};return _0x2c0e14['user']['images']['unshift'](_0x404f86),!![];}function _0x3b6f84(){var _0x25eec3=_0x2a656c;_0x2c0e14['ngFlow'][_0x25eec3('0x1d76')]['opts'][_0x25eec3('0x4d8')]={'X-Requested-With':_0x25eec3('0x24ca'),'Authorization':'Bearer\x20'+_0x475e01[_0x25eec3('0x595')](_0x25eec3('0x863'))},_0x2c0e14[_0x25eec3('0x1413')][_0x25eec3('0x1d76')]['upload']();}function _0x9f02b8(_0x462a31){var _0x39da7e=_0x2a656c;angular[_0x39da7e('0x1a52')](_0x2c0e14[_0x39da7e('0x1775')]['images'],function(_0x4396ee){var _0x258702=_0x39da7e;if(_0x4396ee['id']===_0x462a31['uniqueIdentifier']){var _0x30d9be=new FileReader();_0x30d9be['readAsDataURL'](_0x4396ee['file'][_0x258702('0x18a9')]),_0x30d9be[_0x258702('0x1efd')]=function(_0xd1c926){var _0x52a559=_0x258702;_0x4396ee[_0x52a559('0x770')]=_0xd1c926[_0x52a559('0x14a5')][_0x52a559('0x8c7')];},_0x4396ee[_0x258702('0x7fa')]=_0x258702('0x1318');}});}}const _0x453b7c=_0x1a6a58;_0x69107c[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0x1850'),_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x1775'),_0x3877e3('0x21e'),_0x3877e3('0x15bc')];function _0x69107c(_0x20162d,_0x35575d,_0x58dc12,_0x5e3a1e,_0x3b6d82,_0x5638d4,_0x457fc1){var _0x4f75f0=_0x3877e3,_0x5312af=this;_0x5312af['currentUser']=_0x457fc1['getCurrentUser'](),_0x5312af[_0x4f75f0('0x1a69')]=[],_0x5312af['setting']=_0x5638d4,_0x5312af[_0x4f75f0('0x1432')]=_0x5312af['setting'][_0x4f75f0('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5312af[_0x4f75f0('0x1775')]=_0x3b6d82,_0x5312af[_0x4f75f0('0xdd5')]='',_0x5312af['oldPassword']='',_0x5312af[_0x4f75f0('0x1f59')]=_0x30088f,_0x5312af[_0x4f75f0('0x167')]=_0x4254d9,_0x20162d[_0x4f75f0('0x10e8')](_0x4f75f0('0xa22'),function(_0x1f5479){var _0x16c174=_0x4f75f0;!_0x86640f()[_0x16c174('0x1c7')](_0x5312af[_0x16c174('0x1a34')])&&(_0x1f5479===_0x5312af[_0x16c174('0x1a34')]?_0x20162d['userForm']['password'][_0x16c174('0xa37')](_0x16c174('0x14d8'),![]):_0x20162d[_0x16c174('0x1b86')][_0x16c174('0xdd5')][_0x16c174('0xa37')](_0x16c174('0x14d8'),!![]));});function _0x30088f(){var _0xc66586=_0x4f75f0;_0x5312af[_0xc66586('0x1a69')]=[];var _0x45f10f={'id':_0x5312af[_0xc66586('0x1775')]['id'],'newPassword':_0x5312af[_0xc66586('0xdd5')]};_0x5312af[_0xc66586('0x123f')]['id']==_0x5312af[_0xc66586('0x1775')]['id']&&(_0x45f10f[_0xc66586('0x1a34')]=_0x5312af['oldPassword']),_0x5e3a1e[_0xc66586('0x1775')][_0xc66586('0xbb4')](_0x45f10f)[_0xc66586('0x1376')]['then'](function(){var _0x38850d=_0xc66586;_0x58dc12[_0x38850d('0xdb1')]({'title':_0x38850d('0x806')}),_0x4254d9();})[_0xc66586('0x1c1d')](function(_0x272ae1){var _0xaa017a=_0xc66586;_0x58dc12[_0xaa017a('0x2092')]({'title':_0x272ae1[_0xaa017a('0x209')]?_0xaa017a('0x22d')+_0x272ae1[_0xaa017a('0x209')]+'\x20-\x20'+_0x272ae1['statusText']:_0xaa017a('0xb90'),'msg':_0x272ae1['data']?JSON[_0xaa017a('0x25e')](_0x272ae1[_0xaa017a('0x11c2')][_0xaa017a('0x1224')]):_0x272ae1['toString']()}),_0x5312af['errors']=_0x272ae1['data'][_0xaa017a('0x1a69')]||[{'message':_0x272ae1[_0xaa017a('0x174f')](),'type':'api.user.changePassword'}];});}function _0x4254d9(){var _0x3b2388=_0x4f75f0;_0x35575d[_0x3b2388('0x1c24')]();}}const _0x3995ac=_0x69107c,_0x1e8c72=_0x398308['p']+_0x3877e3('0x24d2'),_0x4359d4=_0x398308['p']+'src/js/modules/main/apps/staff/views/users/edit/changepassword/changepassword.html/changepassword-[chunkhash].html';_0x57de80[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),'$location',_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x13c1'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),'api',_0x3877e3('0x1908'),_0x3877e3('0x15bc'),'user',_0x3877e3('0xab4')];function _0x57de80(_0x46de13,_0xaa82cf,_0x57461d,_0x36cde3,_0x11341b,_0x38470b,_0x392917,_0x1b1869,_0x2ef8ce,_0x5314ea,_0x3a5083,_0x5e590f){var _0x1125fb=_0x3877e3,_0x191aab=this;_0x191aab[_0x1125fb('0x123f')]=_0x5314ea[_0x1125fb('0x15ed')](),_0x191aab[_0x1125fb('0x2ff')]=_0x38470b,_0x191aab[_0x1125fb('0x21e')]=_0x392917,_0x191aab[_0x1125fb('0x1432')]=_0x191aab['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x191aab[_0x1125fb('0x626')]=_0xaa82cf[_0x1125fb('0x1162')]()+_0x1125fb('0x22a9')+_0xaa82cf['host'](),_0x191aab[_0x1125fb('0x1775')]=_0x3a5083||_0x46de13['params'][_0x1125fb('0x1775')]||{},_0x191aab[_0x1125fb('0xab4')]=_0x5e590f&&_0x5e590f[_0x1125fb('0x205f')]==0x1?_0x5e590f[_0x1125fb('0x1b33')][0x0]:null,_0x191aab['crudPermissions']=_0x5314ea[_0x1125fb('0x1778')](_0x191aab[_0x1125fb('0xab4')]?_0x191aab[_0x1125fb('0xab4')][_0x1125fb('0x5ed')]:null),_0x191aab[_0x1125fb('0x126a')]={},_0x191aab[_0x1125fb('0x302')]=_0x46de13['params'][_0x1125fb('0x12e1')]||0x0,_0x191aab['apikeymanagerdialog']=_0x17540e,_0x191aab[_0x1125fb('0x88d')]=_0x23e290,_0x191aab[_0x1125fb('0x95b')]=_0x2ef8ce[_0x1125fb('0x231c')],_0x191aab[_0x1125fb('0x6a')]=_0x3d4e50,_0x191aab[_0x1125fb('0xd7c')]=_0x2fb04a,_0x1b1869[_0x1125fb('0x608')][_0x1125fb('0x595')]({'fields':'id,name','sort':_0x1125fb('0x19fe')})[_0x1125fb('0x1376')][_0x1125fb('0x21ad')](function(_0x2841da){var _0x5ade4a=_0x1125fb;_0x191aab['contexts']=_0x2841da[_0x5ade4a('0x1b33')]||[];})['catch'](function(_0x522e07){var _0x62562b=_0x1125fb;_0x2ef8ce[_0x62562b('0x2092')]({'title':_0x522e07[_0x62562b('0x209')]?'API:'+_0x522e07[_0x62562b('0x209')]+'\x20-\x20'+_0x522e07[_0x62562b('0x1808')]:'SYSTEM:GET_CONTEXTS','msg':_0x522e07['data']?JSON['stringify'](_0x522e07[_0x62562b('0x11c2')]):_0x522e07[_0x62562b('0x174f')]()});}),_0x1b1869[_0x1125fb('0x758')][_0x1125fb('0x595')]({'fields':'id,name','sort':'name'})[_0x1125fb('0x1376')]['then'](function(_0x43ef2f){var _0x916cad=_0x1125fb;_0x191aab[_0x916cad('0x10b7')]=_0x43ef2f['rows']||[];})[_0x1125fb('0x1c1d')](function(_0x3a03d4){var _0x34dd14=_0x1125fb;_0x2ef8ce[_0x34dd14('0x2092')]({'title':_0x3a03d4[_0x34dd14('0x209')]?_0x34dd14('0x22d')+_0x3a03d4[_0x34dd14('0x209')]+_0x34dd14('0xa99')+_0x3a03d4[_0x34dd14('0x1808')]:_0x34dd14('0x225c'),'msg':_0x3a03d4[_0x34dd14('0x11c2')]?JSON[_0x34dd14('0x25e')](_0x3a03d4['data']):_0x3a03d4[_0x34dd14('0x174f')]()});}),_0x1b1869[_0x1125fb('0x1775')]['getApiKey']({'id':_0x191aab[_0x1125fb('0x1775')]['id']})[_0x1125fb('0x1376')][_0x1125fb('0x21ad')](function(_0x3aad7d){var _0x3241ed=_0x1125fb;_0x191aab[_0x3241ed('0x1775')][_0x3241ed('0x9a')]=_0x3aad7d[_0x3241ed('0x6ab')]?_0x3aad7d[_0x3241ed('0x6ab')]:_0x3241ed('0x710');})[_0x1125fb('0x1c1d')](function(_0x2c0d0b){var _0x19922f=_0x1125fb;_0x2ef8ce[_0x19922f('0x2092')]({'title':_0x2c0d0b['status']?'API:'+_0x2c0d0b[_0x19922f('0x209')]+_0x19922f('0xa99')+_0x2c0d0b[_0x19922f('0x1808')]:_0x19922f('0x20cd'),'msg':_0x2c0d0b[_0x19922f('0x11c2')]?JSON[_0x19922f('0x25e')](_0x2c0d0b[_0x19922f('0x11c2')]):_0x2c0d0b[_0x19922f('0x174f')]()});});function _0x17540e(_0x8a1e52,_0x4d1440){var _0x4ce0e2=_0x1125fb;_0x57461d[_0x4ce0e2('0x853')]({'controller':_0x4ce0e2('0x21d0'),'controllerAs':'vm','templateUrl':_0x1e8c72,'parent':angular[_0x4ce0e2('0x1676')](_0x36cde3['body']),'targetEvent':_0x4d1440,'clickOutsideToClose':!![],'locals':{'user':_0x8a1e52,'users':_0x191aab[_0x4ce0e2('0x188e')]?_0x191aab['users']['rows']:[],'crudPermissions':_0x191aab[_0x4ce0e2('0x5ed')]}});}function _0x23e290(_0x2b8563,_0x41c311){var _0x3b1728=_0x1125fb;_0x57461d[_0x3b1728('0x853')]({'controller':_0x3b1728('0x27'),'controllerAs':'vm','templateUrl':_0x4359d4,'parent':angular['element'](_0x36cde3[_0x3b1728('0x2452')]),'targetEvent':_0x41c311,'clickOutsideToClose':!![],'locals':{'user':_0x2b8563,'setting':_0x392917,'users':_0x191aab[_0x3b1728('0x188e')]?_0x191aab[_0x3b1728('0x188e')][_0x3b1728('0x1b33')]:[],'crudPermissions':_0x191aab[_0x3b1728('0x5ed')]}});}function _0x3d4e50(){var _0x543a39=_0x1125fb;_0x46de13['go'](_0x543a39('0x26ae'),{},{'reload':'app.staff.users'});}function _0x2fb04a(){var _0x1d6a9c=_0x1125fb;_0x191aab[_0x1d6a9c('0x1775')]=_0x86640f()['omit'](_0x191aab['user'],_0x1d6a9c('0x2154')),_0x1b1869['user'][_0x1d6a9c('0x5ef')]({'id':_0x191aab[_0x1d6a9c('0x1775')]['id']},_0x191aab['user'])['$promise'][_0x1d6a9c('0x21ad')](function(){var _0x37c16d=_0x1d6a9c;_0x2ef8ce[_0x37c16d('0xdb1')]({'title':_0x37c16d('0xfb7'),'msg':_0x191aab[_0x37c16d('0x1775')][_0x37c16d('0x19fe')]?_0x191aab[_0x37c16d('0x1775')][_0x37c16d('0x19fe')]+'\x20has\x20been\x20updated!':''});})[_0x1d6a9c('0x1c1d')](function(_0x5d20dd){var _0x2ab832=_0x1d6a9c;_0x2ef8ce[_0x2ab832('0x2092')]({'title':_0x5d20dd['status']?_0x2ab832('0x22d')+_0x5d20dd[_0x2ab832('0x209')]+_0x2ab832('0xa99')+_0x5d20dd[_0x2ab832('0x1808')]:_0x2ab832('0x42b'),'msg':_0x5d20dd['data']?JSON[_0x2ab832('0x25e')](_0x5d20dd[_0x2ab832('0x11c2')]):_0x5d20dd[_0x2ab832('0x174f')]()});});}}const _0x221647=_0x57de80,_0x4ac067=_0x398308['p']+_0x3877e3('0x27d');_0x28efd0['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),'$state',_0x3877e3('0x2828'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x2313'),'$translate',_0x3877e3('0x188e'),_0x3877e3('0x758'),_0x3877e3('0xab4'),'api',_0x3877e3('0x12d9'),'toasty',_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x28efd0(_0x59b38f,_0x17d536,_0x6d562,_0x28c010,_0x2af811,_0x1340c3,_0x156f02,_0x5ac3f3,_0x4f2f1b,_0x5573c8,_0x60b645,_0x385669,_0x53e6f2,_0x4b5be1,_0x18b51d,_0x54cae1,_0x2aab30){var _0x519e35=_0x3877e3,_0x15b082=this;_0x15b082['license']=_0x54cae1,_0x15b082[_0x519e35('0x21e')]=_0x2aab30,_0x15b082[_0x519e35('0x123f')]=_0x18b51d[_0x519e35('0x15ed')](),_0x15b082['users']=_0x4f2f1b||{'count':0x0,'rows':[]},_0x15b082['userProfile']=_0x5573c8,_0x15b082[_0x519e35('0xab4')]=_0x60b645&&_0x60b645[_0x519e35('0x205f')]==0x1?_0x60b645[_0x519e35('0x1b33')][0x0]:null,_0x15b082[_0x519e35('0x5ed')]=_0x18b51d[_0x519e35('0x1778')](_0x15b082['userProfileSection']?_0x15b082[_0x519e35('0xab4')]['crudPermissions']:null),_0x15b082[_0x519e35('0x1897')]='users',_0x15b082[_0x519e35('0x11dc')]='',_0x15b082[_0x519e35('0x18cf')]=null,_0x15b082[_0x519e35('0x1af7')]=[],_0x15b082['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':_0x519e35('0xfd4'),'sort':_0x519e35('0x33'),'limit':0xa,'page':0x1},_0x15b082[_0x519e35('0x220b')]=_0x86640f()[_0x519e35('0xcde')]([{'option':_0x519e35('0x1c70'),'value':_0x519e35('0x18')},{'option':_0x519e35('0x6e4'),'value':'\x27user\x27'}],function(_0x3b74aa){var _0x40ee46=_0x519e35;return _0x86640f()[_0x40ee46('0x16e4')](_0x3b74aa[_0x40ee46('0x2228')],new RegExp('\x27','g'),'');}),_0x15b082[_0x519e35('0xd9d')]=_0x86640f()[_0x519e35('0xcde')]([{'option':_0x519e35('0x17a1'),'value':_0x519e35('0x1039')},{'option':'tcp','value':_0x519e35('0xe8c')},{'option':'ws','value':'\x27ws\x27'},{'option':'wss','value':_0x519e35('0xef9')},{'option':'tls','value':_0x519e35('0x20e3')}],function(_0x533761){var _0x356504=_0x519e35;return _0x86640f()['replace'](_0x533761[_0x356504('0x2228')],new RegExp('\x27','g'),'');}),_0x15b082['arraynat']=_0x86640f()[_0x519e35('0xcde')]([{'option':'force_rport','value':'\x27force_rport\x27'},{'option':'comedia','value':_0x519e35('0xa')},{'option':_0x519e35('0x14be'),'value':_0x519e35('0x53f')},{'option':'no','value':_0x519e35('0x1223')},{'option':_0x519e35('0x4ba'),'value':_0x519e35('0xc29')},{'option':_0x519e35('0x25ee'),'value':'\x27route\x27'}],function(_0x506ee9){var _0x3e3ece=_0x519e35;return _0x86640f()[_0x3e3ece('0x16e4')](_0x506ee9['value'],new RegExp('\x27','g'),'');}),_0x15b082['arrayallow']=_0x86640f()[_0x519e35('0xcde')]([{'option':_0x519e35('0x38c'),'value':_0x519e35('0x1ff9')},{'option':'alaw','value':_0x519e35('0x993')},{'option':'gsm','value':_0x519e35('0x1e90')},{'option':_0x519e35('0xdd8'),'value':_0x519e35('0x1f15')},{'option':_0x519e35('0x1aa5'),'value':_0x519e35('0x1cae')},{'option':_0x519e35('0x21e3'),'value':_0x519e35('0x81f')},{'option':_0x519e35('0x1c0d'),'value':_0x519e35('0x76f')}],function(_0x2ed3b5){var _0x331952=_0x519e35;return _0x86640f()[_0x331952('0x16e4')](_0x2ed3b5[_0x331952('0x2228')],new RegExp('\x27','g'),'');}),_0x15b082[_0x519e35('0x13cd')]=_0x86640f()[_0x519e35('0xcde')]([{'option':_0x519e35('0x1fc6'),'value':'\x27yes\x27'},{'option':'No','value':_0x519e35('0x1223')},{'option':_0x519e35('0x342'),'value':_0x519e35('0x1f6c')}],function(_0x7bb7b9){var _0x1bf865=_0x519e35;return _0x86640f()[_0x1bf865('0x16e4')](_0x7bb7b9['value'],new RegExp('\x27','g'),'');}),_0x15b082['editstate']=_0x5682b6,_0x15b082[_0x519e35('0x2593')]=_0x4b8d09,_0x15b082[_0x519e35('0xdb1')]=_0x131937,_0x15b082[_0x519e35('0x3b7')]=_0x154ef5,_0x15b082[_0x519e35('0x21da')]=_0x299450,_0x15b082[_0x519e35('0x1ace')]=_0x3dfc76,_0x15b082[_0x519e35('0xba0')]=_0x4b0606,_0x15b082[_0x519e35('0x1d5e')]=_0x358616,_0x15b082['deselectUsers']=_0x1c9683,_0x15b082[_0x519e35('0x1b07')]=_0x3abc2b,_0x385669[_0x519e35('0x758')][_0x519e35('0x595')]({'fields':_0x519e35('0x1aa8'),'sort':_0x519e35('0x19fe')})[_0x519e35('0x1376')][_0x519e35('0x21ad')](function(_0x182acc){_0x15b082['userProfiles']=_0x182acc['rows']||[];})['catch'](function(_0x572ffa){var _0x162567=_0x519e35;_0x4b5be1[_0x162567('0x2092')]({'title':_0x572ffa[_0x162567('0x209')]?_0x162567('0x22d')+_0x572ffa[_0x162567('0x209')]+_0x162567('0xa99')+_0x572ffa[_0x162567('0x1808')]:'SYSTEM:GET_USERPROFILES','msg':_0x572ffa[_0x162567('0x11c2')]?JSON[_0x162567('0x25e')](_0x572ffa['data']):_0x572ffa[_0x162567('0x174f')]()});});function _0x5682b6(_0x382bf4){var _0x36476d=_0x519e35;_0x6d562['go']('app.staff.users.edit',{'id':_0x382bf4['id'],'user':_0x382bf4,'crudPermissions':_0x15b082[_0x36476d('0x5ed')]});}function _0x4b8d09(_0x284753,_0x2a59f6){var _0x11c7d4=_0x519e35,_0x3324dc=_0x2af811[_0x11c7d4('0xa33')]()[_0x11c7d4('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x86640f()[_0x11c7d4('0x2159')](_0x11c7d4('0x1775'))+'?')[_0x11c7d4('0x276b')](''+(_0x284753[_0x11c7d4('0x19fe')]||_0x11c7d4('0x1775'))+_0x11c7d4('0x2135')+_0x11c7d4('0x25e0'))[_0x11c7d4('0x7a7')](_0x11c7d4('0x215c'))['targetEvent'](_0x2a59f6)['ok']('OK')[_0x11c7d4('0x3b5')](_0x11c7d4('0x284b'));_0x2af811[_0x11c7d4('0x853')](_0x3324dc)[_0x11c7d4('0x21ad')](function(){_0x3dfc76(_0x284753);},function(){var _0x8b353=_0x11c7d4;console['log'](_0x8b353('0x284b'));});}var _0x1c9c59=!![],_0xac1049=0x1;_0x59b38f[_0x519e35('0x10e8')](_0x519e35('0x1948'),function(_0x30d48f,_0x174568){var _0x64489c=_0x519e35;_0x1c9c59?_0x156f02(function(){_0x1c9c59=![];}):(!_0x174568&&(_0xac1049=_0x15b082[_0x64489c('0x77')][_0x64489c('0x2376')]),_0x30d48f!==_0x174568&&(_0x15b082[_0x64489c('0x77')]['page']=0x1),!_0x30d48f&&(_0x15b082['query'][_0x64489c('0x2376')]=_0xac1049),_0x15b082[_0x64489c('0x3b7')]());});function _0x131937(_0x2b2648){var _0x4065b5=_0x519e35;_0x15b082[_0x4065b5('0x188e')]=_0x2b2648||{'count':0x0,'rows':[]};}function _0x154ef5(){var _0x17f2a5=_0x519e35;_0x15b082['query'][_0x17f2a5('0x15a5')]=(_0x15b082['query'][_0x17f2a5('0x2376')]-0x1)*_0x15b082[_0x17f2a5('0x77')][_0x17f2a5('0x1f4a')],_0x18b51d[_0x17f2a5('0x21de')](_0x17f2a5('0x1bd8'))?_0x15b082[_0x17f2a5('0x71b')]=_0x385669[_0x17f2a5('0x1775')][_0x17f2a5('0x595')](_0x15b082[_0x17f2a5('0x77')],_0x131937)[_0x17f2a5('0x1376')]:(_0x15b082[_0x17f2a5('0x77')]['id']=_0x15b082[_0x17f2a5('0x758')]['id'],_0x15b082['query'][_0x17f2a5('0x26ad')]=_0x17f2a5('0x6cc'),_0x15b082[_0x17f2a5('0x71b')]=_0x385669[_0x17f2a5('0x758')]['getResources'](_0x15b082['query'],_0x131937)[_0x17f2a5('0x1376')]);}function _0x299450(_0x599d70,_0x733f4b){var _0x2778ee=_0x519e35;_0x2af811['show']({'controller':'CreateOrEditUserDialogController','controllerAs':'vm','templateUrl':_0x4ac067,'parent':angular[_0x2778ee('0x1676')](_0x1340c3[_0x2778ee('0x2452')]),'targetEvent':_0x599d70,'clickOutsideToClose':!![],'locals':{'user':_0x733f4b,'users':_0x15b082['users'][_0x2778ee('0x1b33')],'license':_0x15b082[_0x2778ee('0x2ff')],'setting':_0x15b082[_0x2778ee('0x21e')],'crudPermissions':_0x15b082['crudPermissions']}});}function _0x3dfc76(_0xc277bb){var _0xace497=_0x519e35;_0x385669['user'][_0xace497('0x1164')]({'id':_0xc277bb['id']})[_0xace497('0x1376')][_0xace497('0x21ad')](function(){var _0x41f668=_0xace497;_0x86640f()[_0x41f668('0x16a2')](_0x15b082['users'][_0x41f668('0x1b33')],{'id':_0xc277bb['id']}),_0x15b082['users'][_0x41f668('0x205f')]-=0x1,!_0x15b082['users']['rows'][_0x41f668('0x577')]&&_0x15b082[_0x41f668('0x3b7')](),_0x4b5be1[_0x41f668('0xdb1')]({'title':_0x86640f()[_0x41f668('0x2159')](_0x41f668('0x6e4'))+_0x41f668('0xe64'),'msg':_0xc277bb['name']?_0xc277bb['name']+_0x41f668('0xb4a'):''});})[_0xace497('0x1c1d')](function(_0x5b629c){var _0x346b45=_0xace497;if(_0x5b629c[_0x346b45('0x11c2')]&&_0x5b629c[_0x346b45('0x11c2')][_0x346b45('0x1a69')]&&_0x5b629c[_0x346b45('0x11c2')][_0x346b45('0x1a69')][_0x346b45('0x577')]){_0x15b082[_0x346b45('0x1a69')]=_0x5b629c[_0x346b45('0x11c2')][_0x346b45('0x1a69')]||[{'message':_0x5b629c[_0x346b45('0x174f')](),'type':_0x346b45('0x1173')}];for(var _0x1965de=0x0;_0x1965de<_0x5b629c[_0x346b45('0x11c2')]['errors'][_0x346b45('0x577')];_0x1965de++){_0x4b5be1[_0x346b45('0x2092')]({'title':_0x5b629c[_0x346b45('0x11c2')]['errors'][_0x1965de][_0x346b45('0x7fa')],'msg':_0x5b629c['data'][_0x346b45('0x1a69')][_0x1965de][_0x346b45('0x1224')]});}}else _0x4b5be1['error']({'title':_0x5b629c['status']?'API:'+_0x5b629c[_0x346b45('0x209')]+_0x346b45('0xa99')+_0x5b629c['statusText']:_0x346b45('0x1173'),'msg':_0x5b629c[_0x346b45('0x11c2')]?JSON[_0x346b45('0x25e')](_0x5b629c[_0x346b45('0x11c2')][_0x346b45('0x1224')]):_0x5b629c[_0x346b45('0x1224')]||_0x5b629c[_0x346b45('0x174f')]()});});}function _0x4b0606(){var _0x428b22=_0x519e35,_0xab2ad9=angular[_0x428b22('0xd75')](_0x15b082['selectedUsers']);return _0x15b082[_0x428b22('0x1af7')]=[],_0xab2ad9;}function _0x358616(_0x60f6f){var _0x5ad66c=_0x519e35,_0xd22573=_0x2af811[_0x5ad66c('0xa33')]()[_0x5ad66c('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20users?')[_0x5ad66c('0x276b')](_0x5ad66c('0x622')+_0x15b082[_0x5ad66c('0x1af7')][_0x5ad66c('0x577')]+_0x5ad66c('0xd74')+_0x5ad66c('0x25e0'))['ariaLabel']('delete\x20Users')[_0x5ad66c('0x1e6d')](_0x60f6f)['ok']('OK')[_0x5ad66c('0x3b5')](_0x5ad66c('0x284b'));_0x2af811[_0x5ad66c('0x853')](_0xd22573)[_0x5ad66c('0x21ad')](function(){var _0x204863=_0x5ad66c;_0x15b082['selectedUsers'][_0x204863('0x1a52')](function(_0x4627dd){_0x3dfc76(_0x4627dd);}),_0x15b082[_0x204863('0x1af7')]=[];});}function _0x1c9683(){var _0x2851ca=_0x519e35;_0x15b082[_0x2851ca('0x1af7')]=[];}function _0x3abc2b(){var _0x4366f3=_0x519e35;_0x15b082[_0x4366f3('0x1af7')]=_0x15b082['users'][_0x4366f3('0x1b33')];}}const _0x4665c2=_0x28efd0,_0x4c4478=_0x398308['p']+_0x3877e3('0x1e69'),_0x4bc168=_0x398308['p']+_0x3877e3('0x1f1b'),_0x196d29=_0x398308['p']+_0x3877e3('0x1bfe'),_0x387ade=_0x398308['p']+'src/js/modules/main/apps/staff/views/agents/edit/view.html/view-[chunkhash].html',_0x258b9b=_0x398308['p']+_0x3877e3('0x1e7c'),_0x15b9ff=_0x398308['p']+_0x3877e3('0x1dcb'),_0x46e18a=_0x398308['p']+'src/js/modules/main/apps/staff/views/teams/teams.html/teams-[chunkhash].html',_0x29e112=_0x398308['p']+_0x3877e3('0x1502'),_0x24061a=_0x398308['p']+_0x3877e3('0x24d0');_0x206231['$inject']=[_0x3877e3('0xd2c'),_0x3877e3('0x972')];function _0x206231(_0x241755,_0x8ac62a){var _0x5f4639=_0x3877e3;_0x241755[_0x5f4639('0x27e')]('app.staff',{'abstract':!![],'url':_0x5f4639('0x23f')})[_0x5f4639('0x27e')](_0x5f4639('0x26ae'),{'url':_0x5f4639('0x495'),'views':{'content@app':{'templateUrl':_0x4c4478,'controller':_0x5f4639('0x463')}},'resolve':{'users':[_0x5f4639('0x354'),function _0x216473(_0x164dc0){var _0x1e7fda=_0x5f4639;return _0x164dc0[_0x1e7fda('0x8ac')]('user@get',{'fields':_0x1e7fda('0x4e7'),'role':_0x1e7fda('0xfd4'),'sort':_0x1e7fda('0x33'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5f4639('0x354'),_0x5f4639('0x15bc'),function _0x3d19fb(_0xba7aa4,_0x40bd5d){var _0x2417ba=_0x5f4639;return _0x40bd5d[_0x2417ba('0x21de')](_0x2417ba('0x1bd8'))?null:_0xba7aa4[_0x2417ba('0x8ac')](_0x2417ba('0x1e1d'),{'fields':_0x2417ba('0x1a00'),'id':_0x40bd5d['getCurrentUser']()[_0x2417ba('0x1618')]});}],'userProfileSection':[_0x5f4639('0x354'),_0x5f4639('0x15bc'),function _0x5a95c5(_0x4bdc4e,_0x3fcb36){var _0x2a0b9e=_0x5f4639;return _0x3fcb36['hasRole'](_0x2a0b9e('0x1bd8'))?null:_0x4bdc4e[_0x2a0b9e('0x8ac')]('userProfileSection@get',{'fields':_0x2a0b9e('0x1852'),'userProfileId':_0x3fcb36['getCurrentUser']()[_0x2a0b9e('0x1618')],'sectionId':0xc9});}]},'authenticate':!![],'permissionId':0xc9,'bodyClass':_0x5f4639('0x16c')})[_0x5f4639('0x27e')]('app.staff.users.edit',{'url':_0x5f4639('0x17f5'),'params':{'user':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4bc168,'controller':_0x5f4639('0xb85')}},'resolve':{'user':[_0x5f4639('0x354'),_0x5f4639('0x114e'),function _0x3e28af(_0x17a80f,_0x3c5fec){var _0x412096=_0x5f4639;return _0x17a80f[_0x412096('0x8ac')](_0x412096('0x1913'),{'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':_0x3c5fec['id']});}],'userProfileSection':['apiResolver','Auth',function _0x3515a1(_0x488936,_0x1ae33b){var _0x203c81=_0x5f4639;return _0x488936[_0x203c81('0x8ac')]('userProfileSection@get',{'fields':_0x203c81('0x1852'),'userProfileId':_0x1ae33b[_0x203c81('0x15ed')]()[_0x203c81('0x1618')],'sectionId':0xc9});}]},'authenticate':!![],'permissionId':0xc9,'bodyClass':_0x5f4639('0x16c')})[_0x5f4639('0x27e')]('app.staff.agents',{'url':_0x5f4639('0x69c'),'views':{'content@app':{'templateUrl':_0x196d29,'controller':'AgentsController\x20as\x20vm'}},'resolve':{'agents':[_0x5f4639('0x354'),_0x5f4639('0x15bc'),function _0x234684(_0x298f00,_0x42d02d){var _0x1a5934=_0x5f4639;return _0x42d02d[_0x1a5934('0x21de')](_0x1a5934('0x1bd8'))?_0x298f00[_0x1a5934('0x8ac')]('user@get',{'fields':_0x1a5934('0x747'),'role':_0x1a5934('0x2402'),'sort':_0x1a5934('0x33'),'limit':0xa,'offset':0x0}):_0x298f00[_0x1a5934('0x8ac')](_0x1a5934('0x52f'),{'id':_0x42d02d[_0x1a5934('0x15ed')]()[_0x1a5934('0x1618')],'section':_0x1a5934('0xfed'),'fields':'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','role':_0x1a5934('0x2402'),'sort':_0x1a5934('0x33'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5f4639('0x354'),_0x5f4639('0x15bc'),function _0x4b1d99(_0x2a7947,_0x60aa3d){var _0x160270=_0x5f4639;return _0x60aa3d[_0x160270('0x21de')](_0x160270('0x1bd8'))?null:_0x2a7947[_0x160270('0x8ac')](_0x160270('0x1e1d'),{'fields':_0x160270('0x1a00'),'id':_0x60aa3d[_0x160270('0x15ed')]()[_0x160270('0x1618')]});}],'userProfileSection':[_0x5f4639('0x354'),_0x5f4639('0x15bc'),function _0x3bf38c(_0xfd233c,_0x173294){var _0x3d9e4c=_0x5f4639;return _0x173294[_0x3d9e4c('0x21de')](_0x3d9e4c('0x1bd8'))?null:_0xfd233c[_0x3d9e4c('0x8ac')](_0x3d9e4c('0x222f'),{'fields':_0x3d9e4c('0x1852'),'userProfileId':_0x173294[_0x3d9e4c('0x15ed')]()['userProfileId'],'sectionId':0xca});}]},'authenticate':!![],'permissionId':0xca,'bodyClass':'staff'})[_0x5f4639('0x27e')](_0x5f4639('0x123d'),{'url':_0x5f4639('0x17f5'),'params':{'agent':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x387ade,'controller':_0x5f4639('0x56')}},'resolve':{'agent':[_0x5f4639('0x354'),_0x5f4639('0x114e'),function _0x174562(_0x5688cd,_0xbc97c4){var _0x17fb39=_0x5f4639;return _0x5688cd[_0x17fb39('0x8ac')](_0x17fb39('0x1913'),{'fields':_0x17fb39('0x747'),'id':_0xbc97c4['id']});}],'userProfileSection':['apiResolver','Auth',function _0x1f7792(_0x2e87dc,_0x25679f){var _0x25f368=_0x5f4639;return _0x2e87dc[_0x25f368('0x8ac')]('userProfileSection@get',{'fields':_0x25f368('0x1852'),'userProfileId':_0x25679f[_0x25f368('0x15ed')]()['userProfileId'],'sectionId':0xca});}]},'authenticate':!![],'permissionId':0xca,'bodyClass':_0x5f4639('0x16c')})['state'](_0x5f4639('0x6dc'),{'url':'/telephones','views':{'content@app':{'templateUrl':_0x258b9b,'controller':_0x5f4639('0xed9')}},'resolve':{'telephones':[_0x5f4639('0x354'),'Auth',function _0x4a259b(_0x787f81,_0x497a93){var _0x259693=_0x5f4639;return _0x497a93[_0x259693('0x21de')](_0x259693('0x1bd8'))?_0x787f81[_0x259693('0x8ac')](_0x259693('0x1913'),{'fields':_0x259693('0x1eb0'),'role':_0x259693('0x13f4'),'sort':_0x259693('0x33'),'limit':0xa,'offset':0x0}):_0x787f81['resolve'](_0x259693('0x52f'),{'id':_0x497a93[_0x259693('0x15ed')]()[_0x259693('0x1618')],'section':_0x259693('0x1955'),'fields':_0x259693('0x1eb0'),'role':'telephone','sort':_0x259693('0x33'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5f4639('0x354'),_0x5f4639('0x15bc'),function _0x47ce67(_0x2f3f82,_0x26b5d7){var _0x3b310e=_0x5f4639;return _0x26b5d7['hasRole']('admin')?null:_0x2f3f82[_0x3b310e('0x8ac')]('userProfile@get',{'fields':_0x3b310e('0x1a00'),'id':_0x26b5d7[_0x3b310e('0x15ed')]()[_0x3b310e('0x1618')]});}],'userProfileSection':['apiResolver',_0x5f4639('0x15bc'),function _0x2a4f37(_0x12ab93,_0x53e355){var _0x1f01d7=_0x5f4639;return _0x53e355[_0x1f01d7('0x21de')](_0x1f01d7('0x1bd8'))?null:_0x12ab93[_0x1f01d7('0x8ac')](_0x1f01d7('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x53e355[_0x1f01d7('0x15ed')]()[_0x1f01d7('0x1618')],'sectionId':0xcb});}]},'authenticate':!![],'permissionId':0xcb,'bodyClass':'staff'})[_0x5f4639('0x27e')](_0x5f4639('0x159d'),{'url':_0x5f4639('0x17f5'),'params':{'telephone':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x15b9ff,'controller':'TelephoneController\x20as\x20vm'}},'resolve':{'telephone':[_0x5f4639('0x354'),_0x5f4639('0x114e'),function _0x23e3f8(_0x542f1c,_0x591ab5){var _0x38d4f7=_0x5f4639;return _0x542f1c['resolve'](_0x38d4f7('0x1913'),{'fields':'createdAt,updatedAt,id,role,fullname,name,email,password,description,autointernal,internal,voicemail,transport,nat,allow,callerid,context,callgroup,pickupgroup,videosupport,encryption,phone,mobile','id':_0x591ab5['id']});}],'userProfileSection':[_0x5f4639('0x354'),_0x5f4639('0x15bc'),function _0x5b6d1b(_0x34d213,_0x2d066b){var _0xa9ddb8=_0x5f4639;return _0x34d213[_0xa9ddb8('0x8ac')](_0xa9ddb8('0x222f'),{'fields':_0xa9ddb8('0x1852'),'userProfileId':_0x2d066b[_0xa9ddb8('0x15ed')]()[_0xa9ddb8('0x1618')],'sectionId':0xcb});}]},'authenticate':!![],'permissionId':0xcb,'bodyClass':_0x5f4639('0x16c')})[_0x5f4639('0x27e')](_0x5f4639('0x2492'),{'url':_0x5f4639('0x11b3'),'views':{'content@app':{'templateUrl':_0x46e18a,'controller':_0x5f4639('0x193')}},'resolve':{'teams':[_0x5f4639('0x354'),_0x5f4639('0x15bc'),function _0x51d593(_0x1e2e28,_0x4a850b){var _0x5604aa=_0x5f4639;return _0x4a850b[_0x5604aa('0x21de')]('admin')?_0x1e2e28[_0x5604aa('0x8ac')](_0x5604aa('0x27a2'),{'fields':_0x5604aa('0x145a'),'sort':_0x5604aa('0x33'),'limit':0xa,'offset':0x0}):_0x1e2e28['resolve'](_0x5604aa('0x52f'),{'id':_0x4a850b[_0x5604aa('0x15ed')]()[_0x5604aa('0x1618')],'section':_0x5604aa('0xa27'),'fields':_0x5604aa('0x145a'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x5f4639('0x15bc'),function _0x105685(_0x2086b9,_0x2a7867){var _0x38e021=_0x5f4639;return _0x2a7867[_0x38e021('0x21de')]('admin')?null:_0x2086b9[_0x38e021('0x8ac')](_0x38e021('0x1e1d'),{'fields':_0x38e021('0x1a00'),'id':_0x2a7867[_0x38e021('0x15ed')]()[_0x38e021('0x1618')]});}],'userProfileSection':[_0x5f4639('0x354'),_0x5f4639('0x15bc'),function _0x380c42(_0x2dff9e,_0x195669){var _0x3772a3=_0x5f4639;return _0x195669['hasRole']('admin')?null:_0x2dff9e[_0x3772a3('0x8ac')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x195669['getCurrentUser']()['userProfileId'],'sectionId':0xcc});}]},'authenticate':!![],'permissionId':0xcc,'bodyClass':_0x5f4639('0x16c')})[_0x5f4639('0x27e')](_0x5f4639('0xaa6'),{'url':_0x5f4639('0x24d8'),'views':{'content@app':{'templateUrl':_0x29e112,'controller':_0x5f4639('0x2698')}},'resolve':{'userProfiles':['apiResolver',function _0x2bee5a(_0x1e744f){var _0x11b262=_0x5f4639;return _0x1e744f['resolve'](_0x11b262('0x1e1d'),{'fields':'createdAt,updatedAt,id,name,description,crudPermissions','sort':_0x11b262('0x33'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x5f4639('0x15bc'),function _0x499fd3(_0x43daf6,_0x4d088f){var _0x35ccf7=_0x5f4639;return _0x4d088f['hasRole'](_0x35ccf7('0x1bd8'))?null:_0x43daf6[_0x35ccf7('0x8ac')](_0x35ccf7('0x1e1d'),{'fields':_0x35ccf7('0x1a00'),'id':_0x4d088f[_0x35ccf7('0x15ed')]()[_0x35ccf7('0x1618')]});}],'userProfileSection':[_0x5f4639('0x354'),'Auth',function _0x2e3114(_0x4ba299,_0x188bc8){var _0x1075c1=_0x5f4639;return _0x188bc8[_0x1075c1('0x21de')]('admin')?null:_0x4ba299[_0x1075c1('0x8ac')](_0x1075c1('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x188bc8['getCurrentUser']()[_0x1075c1('0x1618')],'sectionId':0xcd});}]},'authenticate':!![],'permissionId':0xcd,'bodyClass':_0x5f4639('0x16c')})['state'](_0x5f4639('0x1975'),{'url':'/:id?tab','params':{'userProfile':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x24061a,'controller':'UserProfileController\x20as\x20vm'}},'resolve':{'userProfile':['apiResolver',_0x5f4639('0x114e'),function _0xcfab95(_0x3e2f2e,_0x4e462a){var _0x1affff=_0x5f4639;return _0x3e2f2e[_0x1affff('0x8ac')](_0x1affff('0x1e1d'),{'fields':_0x1affff('0x21c3'),'id':_0x4e462a['id']});}],'userProfileSection':[_0x5f4639('0x354'),_0x5f4639('0x15bc'),function _0x2ce62e(_0x3d8dbd,_0x4ec208){var _0x1e4afa=_0x5f4639;return _0x3d8dbd['resolve']('userProfileSection@get',{'fields':_0x1e4afa('0x1852'),'userProfileId':_0x4ec208[_0x1e4afa('0x15ed')]()[_0x1e4afa('0x1618')],'sectionId':0xcd});}]},'authenticate':!![],'permissionId':0xcd,'bodyClass':_0x5f4639('0x16c')}),_0x8ac62a[_0x5f4639('0x20ab')](_0x5f4639('0x260'));}angular[_0x3877e3('0x20d5')](_0x3877e3('0x49'),[_0x3877e3('0x240c'),_0x3877e3('0x1b0'),_0x3877e3('0xca'),_0x3877e3('0x1d76'),_0x3877e3('0x2437'),'ckeditor','ng-sortable',_0x3877e3('0x264a'),'ngAnimate',_0x3877e3('0x335'),_0x3877e3('0xc90'),'mwFormViewer',_0x3877e3('0xe2f'),_0x3877e3('0x10c'),'angular-cron-jobs','ngEmbed',_0x3877e3('0x25a2'),'material.components.expansionPanels',_0x3877e3('0x9e0'),'angular.filter'])['config'](_0x206231)[_0x3877e3('0x1d5a')]('AgentsController',_0x12458a)[_0x3877e3('0x1d5a')](_0x3877e3('0x1d41'),_0x12e213)[_0x3877e3('0x1d5a')]('Agentchange_avatarController',_0x4532aa)[_0x3877e3('0x1d5a')](_0x3877e3('0x1776'),_0xb82fcc)[_0x3877e3('0x1d5a')](_0x3877e3('0x27f3'),_0x6ccf7e)[_0x3877e3('0x1d5a')]('AgentqueueaddController',_0x2bec14)['controller'](_0x3877e3('0x254e'),_0x1bf9fb)[_0x3877e3('0x1d5a')](_0x3877e3('0x297'),_0x471c63)[_0x3877e3('0x1d5a')]('CreateOrEditTeamDialogController',_0x3179f0)['controller'](_0x3877e3('0xf9d'),_0x1415b0)[_0x3877e3('0x1d5a')](_0x3877e3('0x906'),_0x3938fc)[_0x3877e3('0x1d5a')](_0x3877e3('0x1653'),_0x349f58)['controller']('TelephonechangepasswordController',_0x307dda)[_0x3877e3('0x1d5a')](_0x3877e3('0x23db'),_0x5e1bb5)['controller'](_0x3877e3('0x2554'),_0x15342c)[_0x3877e3('0x1d5a')](_0x3877e3('0x1b44'),_0x3c0356)['controller'](_0x3877e3('0x15a1'),_0x3d4af0)['controller'](_0x3877e3('0xf79'),_0xaaedae)[_0x3877e3('0x1d5a')]('UserProfilepermissionsmanageController',_0x362a4f)[_0x3877e3('0x1d5a')]('UserProfileController',_0x3ff90)[_0x3877e3('0x1d5a')](_0x3877e3('0x2319'),_0x487ba7)[_0x3877e3('0x1d5a')](_0x3877e3('0x15c7'),_0x178734)[_0x3877e3('0x1d5a')](_0x3877e3('0x21d0'),_0x4aba52)['controller']('Userchange_avatarController',_0x453b7c)['controller'](_0x3877e3('0x27'),_0x3995ac)['controller'](_0x3877e3('0x20f6'),_0x221647)[_0x3877e3('0x1d5a')](_0x3877e3('0x2550'),_0x4665c2);const _0x37bd52=_0x398308['p']+'src/js/modules/main/apps/contactmanager/views/contacts/import/import.html/import-[chunkhash].html',_0x4058f7=_0x398308['p']+_0x3877e3('0xb53');_0x46e2b7[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$document',_0x3877e3('0x2313'),_0x3877e3('0xa9f'),_0x3877e3('0x114e'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x2814'),_0x3877e3('0x1972'),_0x3877e3('0x249'),_0x3877e3('0x1dee'),_0x3877e3('0xf8c'),_0x3877e3('0x1889'),'toasty',_0x3877e3('0x15bc'),_0x3877e3('0x2ff')];function _0x46e2b7(_0x183703,_0x4ee81d,_0x48b6f2,_0x499b03,_0x187005,_0x3b5a7b,_0x393a36,_0x5da3a8,_0x48605a,_0x55f153,_0x11a459,_0x366a2d,_0x10cf25,_0x48bd5d,_0xe9eaa2,_0x19be50,_0x5aa94b,_0x3f1665,_0x5ef42c){var _0xa4c7ad=_0x3877e3,_0x57774d=this;_0x57774d[_0xa4c7ad('0x123f')]=_0x3f1665[_0xa4c7ad('0x15ed')](),_0x57774d[_0xa4c7ad('0x2ff')]=_0x5ef42c,_0x57774d[_0xa4c7ad('0x758')]=_0x5da3a8,_0x57774d[_0xa4c7ad('0xab4')]=_0x48605a&&_0x48605a[_0xa4c7ad('0x205f')]==0x1?_0x48605a['rows'][0x0]:null,_0x57774d[_0xa4c7ad('0x5ed')]=_0x3f1665['parseCrudPermissions'](_0x57774d[_0xa4c7ad('0xab4')]?_0x57774d[_0xa4c7ad('0xab4')][_0xa4c7ad('0x5ed')]:null);var _0x501c09=0x3c,_0x2e289a=_0x501c09*0x400*0x400;_0x57774d['ngFlowOptions']={'target':_0xa4c7ad('0x2830'),'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x2e289a,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x57774d[_0xa4c7ad('0x2814')]=_0x11a459||{'count':0x0,'rows':[]},_0x57774d[_0xa4c7ad('0x26a0')]={'hidden':![],'hover':![],'isOpen':![]},_0x57774d[_0xa4c7ad('0x1897')]=_0xa4c7ad('0x1eef'),_0x57774d[_0xa4c7ad('0x13ab')]=[],_0x57774d[_0xa4c7ad('0x1972')]=_0x366a2d||{'rows':[],'count':0x0},_0x57774d[_0xa4c7ad('0x1dee')]=_0x48bd5d||{'rows':[],'count':0x0},_0x57774d[_0xa4c7ad('0x1889')]=_0x19be50||{'rows':[],'count':0x0},_0x57774d['listsMap']=_0x10cf25,_0x57774d[_0xa4c7ad('0xf8c')]=_0xe9eaa2,_0x57774d[_0xa4c7ad('0xb86')]=[],_0x57774d[_0xa4c7ad('0x1a6a')]=null,_0x57774d['selectedCompany']=null,_0x57774d[_0xa4c7ad('0x77')]=_0x86640f()[_0xa4c7ad('0xd0e')]({'includeAll':!![],'sort':_0xa4c7ad('0x33'),'limit':0xa,'offset':0x0,'page':0x1},_0x187005),_0x57774d[_0xa4c7ad('0x1a97')]=_0x234544,_0x57774d['deleteconfirm']=_0x3a1440,_0x57774d[_0xa4c7ad('0xdb1')]=_0xf2eff4,_0x57774d[_0xa4c7ad('0x1a4b')]=_0x59663c,_0x57774d[_0xa4c7ad('0x5fc')]=_0x3f4277,_0x57774d['mergeContact']=_0x31f4f1,_0x57774d['duplicateContact']=_0x480f00,_0x57774d[_0xa4c7ad('0xbde')]=_0x5a626a,_0x57774d[_0xa4c7ad('0x246e')]=_0x5ee5e0,_0x57774d['exportSelectedContacts']=_0x4b668e,_0x57774d[_0xa4c7ad('0x20f1')]=_0x251383,_0x57774d[_0xa4c7ad('0x963')]=_0x3e78db,_0x57774d[_0xa4c7ad('0x21d4')]=_0x299fdf,_0x57774d['createTag']=_0x1da3e2,_0x57774d[_0xa4c7ad('0x1af6')]=_0x237358,_0x57774d[_0xa4c7ad('0x12a3')]=_0xd2cf1,_0x57774d[_0xa4c7ad('0x1206')]=_0x59bee9,_0x57774d[_0xa4c7ad('0xc35')]=_0xa539cf,_0x57774d[_0xa4c7ad('0x20d9')]=_0x3682ad;_0x499b03[_0xa4c7ad('0x171b')][_0xa4c7ad('0x815')]&&(_0x57774d[_0xa4c7ad('0x1a6a')]=_0x499b03[_0xa4c7ad('0x171b')]['ListId']);_0x499b03['params'][_0xa4c7ad('0x20f8')]&&(_0x57774d[_0xa4c7ad('0x13f8')]=_0x499b03['params'][_0xa4c7ad('0x20f8')]);_0x183703[_0xa4c7ad('0x10e8')](_0xa4c7ad('0xf17'),function(_0x2e4b65){var _0x3d968a=_0xa4c7ad;_0x2e4b65?_0x48b6f2(function(){var _0x5a1928=a0_0x2e7f;_0x183703['tooltipVisible']=_0x57774d[_0x5a1928('0x26a0')]['isOpen'];},0x258):_0x183703[_0x3d968a('0x4ad')]=_0x57774d[_0x3d968a('0x26a0')][_0x3d968a('0x1f8')];});function _0x3f4277(){var _0x3bf787=_0xa4c7ad;if(!_0x3f1665[_0x3bf787('0x21de')](_0x3bf787('0x1bd8'))){var _0x2914aa=_0x86640f()(_0x57774d[_0x3bf787('0x2814')]['rows'])[_0x3bf787('0x26c3')](function(_0x51eb00){var _0x2e7725=_0x3bf787;return{'id':_0x51eb00[_0x2e7725('0x20f8')]};})[_0x3bf787('0x597')]('id')['filter'](function(_0x1bd7b4){return _0x1bd7b4['id']&&_0x1bd7b4['id']>0x0;})[_0x3bf787('0x1e57')](_0x57774d[_0x3bf787('0x1dee')][_0x3bf787('0x1b33')],'id')[_0x3bf787('0x2228')]();if(!_0x86640f()[_0x3bf787('0x23aa')](_0x2914aa)){var _0x5ac74c=[];_0x2914aa[_0x3bf787('0x1a52')](function(_0x1f22e9){var _0x29d982=_0x3bf787;_0x5ac74c[_0x29d982('0x206c')](_0x55f153['cmCompany']['get']({'id':_0x1f22e9['id'],'fields':'id,name'})[_0x29d982('0x1376')]);}),_0x393a36[_0x3bf787('0x1ba7')](_0x5ac74c)[_0x3bf787('0x21ad')](function(_0x2e2c56){var _0x191689=_0x3bf787;_0x2e2c56[_0x191689('0x1a52')](function(_0x5b1ea9){var _0x3476bd=_0x191689,_0x27ab84=_0x5b1ea9[_0x3476bd('0x3bc')]();_0x27ab84['canSelect']=![],_0x57774d[_0x3476bd('0x1dee')][_0x3476bd('0x1b33')][_0x3476bd('0x206c')](_0x27ab84);var _0x586c80={};_0x586c80[_0x27ab84['id']]=_0x27ab84[_0x3476bd('0x19fe')],_0x57774d['companiesMap']=_0x86640f()[_0x3476bd('0x9d6')](_0x57774d[_0x3476bd('0xf8c')],_0x586c80);});})['catch'](function(_0x428cf5){var _0x368182=_0x3bf787;_0x5aa94b['error']({'title':_0x428cf5[_0x368182('0x209')]?'API:'+_0x428cf5[_0x368182('0x209')]+_0x368182('0xa99')+_0x428cf5[_0x368182('0x1808')]:_0x368182('0x113a'),'msg':_0x428cf5['data']?JSON[_0x368182('0x25e')](_0x428cf5[_0x368182('0x11c2')][_0x368182('0x1224')]):_0x428cf5[_0x368182('0x174f')]()});});}}}function _0x237358(_0xc2376){var _0x19fe5f=_0xa4c7ad,_0x4430e0=_0x3b5a7b[_0x19fe5f('0xee8')]()[_0x19fe5f('0x4b4')](_0x19fe5f('0xc20'))[_0x19fe5f('0x5a2')](_0x19fe5f('0x134d'))[_0x19fe5f('0x7a7')]('List\x20name')[_0x19fe5f('0x1e6d')](_0xc2376)['ok']('Ok')[_0x19fe5f('0x3b5')](_0x19fe5f('0x1f40'));return _0x3b5a7b[_0x19fe5f('0x853')](_0x4430e0)['then'](function(_0x2dce5e){var _0x2b2615=_0x19fe5f;if(_0x2dce5e)return _0x55f153['cmList']['save']({'name':_0x2dce5e});else _0x5aa94b[_0x2b2615('0x2092')]({'title':_0x2b2615('0x18e'),'msg':'Invalid\x20list\x20name.'});})['then'](function(_0x2bfab9){var _0x13bd66=_0x19fe5f;_0x2bfab9&&(_0x57774d[_0x13bd66('0x1972')][_0x13bd66('0x1b33')][_0x13bd66('0x206c')](_0x2bfab9),_0x5aa94b['success']({'title':'List\x20properly\x20created!','msg':_0x2bfab9['name']?_0x2bfab9[_0x13bd66('0x19fe')]+_0x13bd66('0x1694'):''}));});}function _0xa539cf(){var _0x5b4fbe=_0xa4c7ad;return _0x3f1665[_0x5b4fbe('0xc35')](0x12f)||_0x3f1665[_0x5b4fbe('0x21de')](_0x5b4fbe('0x1bd8'));}function _0xd2cf1(_0x1e11a3){var _0x3f0234=_0xa4c7ad,_0x2d8eef=_0x3b5a7b['prompt']()[_0x3f0234('0x4b4')](_0x3f0234('0x2043'))[_0x3f0234('0x5a2')](_0x3f0234('0x24a3'))[_0x3f0234('0x7a7')](_0x3f0234('0x24a3'))['targetEvent'](_0x1e11a3)['ok']('Ok')[_0x3f0234('0x3b5')](_0x3f0234('0x1f40'));return _0x3b5a7b['show'](_0x2d8eef)[_0x3f0234('0x21ad')](function(_0x578bcc){var _0x23cd75=_0x3f0234;if(_0x578bcc)return _0x55f153['cmCompany'][_0x23cd75('0x186f')]({'name':_0x578bcc});else _0x5aa94b[_0x23cd75('0x2092')]({'title':'Error\x20creating\x20company!','msg':_0x23cd75('0x182d')});})['then'](function(_0x42f381){var _0x5186ac=_0x3f0234;_0x42f381&&(_0x57774d[_0x5186ac('0x1dee')][_0x5186ac('0x1b33')]['push'](_0x42f381),_0x5aa94b[_0x5186ac('0xdb1')]({'title':_0x5186ac('0x1f97'),'msg':_0x42f381['name']?_0x42f381[_0x5186ac('0x19fe')]+'\x20has\x20been\x20created!':''}));});}function _0x1da3e2(_0x40d571){var _0x2a90c8=_0xa4c7ad,_0x581fd0=_0x3b5a7b[_0x2a90c8('0xee8')]()[_0x2a90c8('0x4b4')](_0x2a90c8('0x264b'))['placeholder']('Tag\x20name')[_0x2a90c8('0x7a7')](_0x2a90c8('0x889'))['targetEvent'](_0x40d571)['ok']('Ok')['cancel'](_0x2a90c8('0x1f40'));return _0x3b5a7b['show'](_0x581fd0)['then'](function(_0x5414c6){var _0x5ab4e2=_0x2a90c8;if(_0x5414c6)return _0x55f153[_0x5ab4e2('0x907')][_0x5ab4e2('0x186f')]({'name':_0x5414c6});else _0x5aa94b[_0x5ab4e2('0x2092')]({'title':_0x5ab4e2('0xc1d'),'msg':_0x5ab4e2('0x852')});})[_0x2a90c8('0x21ad')](function(_0x1ae23a){var _0x4156a3=_0x2a90c8;_0x1ae23a&&(_0x57774d[_0x4156a3('0x1889')]['rows'][_0x4156a3('0x206c')](_0x1ae23a),_0x5aa94b[_0x4156a3('0xdb1')]({'title':_0x4156a3('0x176d'),'msg':_0x1ae23a['tag']?_0x1ae23a[_0x4156a3('0x19fe')]+'\x20has\x20been\x20created!':''}));});}function _0x59bee9(_0x2b2556,_0x4a10dc){var _0xf626f=_0xa4c7ad,_0x5f0e22=JSON[_0xf626f('0x399')](_0x4a10dc);_0x3b5a7b['show']({'controller':'ImportContactsDialogController','controllerAs':'vm','templateUrl':_0x37bd52,'parent':angular[_0xf626f('0x1676')](_0x4ee81d[_0xf626f('0x2452')]),'clickOutsideToClose':![],'locals':{'lists':_0x366a2d,'companies':_0x48bd5d,'file':_0x5f0e22['file'],'fields':_0x5f0e22[_0xf626f('0x181e')],'license':_0x57774d[_0xf626f('0x2ff')]}})[_0xf626f('0x21ad')](function(){_0x57774d['getContacts']();})[_0xf626f('0x1c1d')](function(){console['error']();});}function _0x234544(_0x3c9c68){var _0x221404=_0xa4c7ad;_0x499b03['go'](_0x221404('0x212f'),{'id':_0x3c9c68['id'],'crudPermissions':_0x57774d[_0x221404('0x5ed')]});}function _0x3a1440(_0x2dbe56,_0x1c17a5){var _0x32c2e0=_0xa4c7ad,_0x5a2413=_0x3b5a7b[_0x32c2e0('0xa33')]()[_0x32c2e0('0x4b4')](_0x32c2e0('0x14b0'))[_0x32c2e0('0x276b')](_0x32c2e0('0x622')+(_0x2dbe56[_0x32c2e0('0x992')]||_0x2dbe56[_0x32c2e0('0x2822')]||_0x2dbe56['phone']||'Contact')+_0x32c2e0('0x2135')+_0x32c2e0('0x25e0'))[_0x32c2e0('0x7a7')](_0x32c2e0('0x1669'))['targetEvent'](_0x1c17a5)['ok']('OK')[_0x32c2e0('0x3b5')](_0x32c2e0('0x284b'));_0x3b5a7b[_0x32c2e0('0x853')](_0x5a2413)[_0x32c2e0('0x21ad')](function(){_0x5ee5e0(_0x2dbe56);});}function _0x3682ad(_0x2f15a1){var _0x3d4b2c=_0xa4c7ad,_0x215acb=[_0x3d4b2c('0x1441')];if(!_0x86640f()[_0x3d4b2c('0xb34')](_0x215acb,_0x2f15a1[_0x3d4b2c('0x9bb')]()))return _0x5aa94b[_0x3d4b2c('0x2092')]({'title':_0x3d4b2c('0x397')+_0x2f15a1[_0x3d4b2c('0x9bb')](),'msg':'Supported\x20extension:\x20'+_0x215acb['join']()}),![];if(_0x2f15a1[_0x3d4b2c('0x337')]>_0x2e289a)return _0x5aa94b[_0x3d4b2c('0x2092')]({'title':_0x3d4b2c('0x8d1'),'msg':_0x3d4b2c('0xc3a')+_0x501c09+'MB'}),![];return!![];}var _0x2bf478=!![],_0x3b229e=0x1;_0x183703[_0xa4c7ad('0x10e8')]('vm.query.filter',function(_0x3fc89d,_0x30547b){var _0x26605c=_0xa4c7ad;_0x2bf478?_0x48b6f2(function(){_0x2bf478=![];}):(!_0x30547b&&(_0x3b229e=_0x57774d[_0x26605c('0x77')][_0x26605c('0x2376')]),_0x3fc89d!==_0x30547b&&(_0x57774d[_0x26605c('0x77')][_0x26605c('0x2376')]=0x1),!_0x3fc89d&&(_0x57774d['query'][_0x26605c('0x2376')]=_0x3b229e),_0x57774d[_0x26605c('0x1a4b')]());},!![]),_0x183703[_0xa4c7ad('0x10e8')](_0xa4c7ad('0x543'),function(_0x75adfd,_0x6674bf){var _0x27c85e=_0xa4c7ad;_0x75adfd!==_0x6674bf&&(_0x57774d['query'][_0x27c85e('0x815')]=_0x57774d['selectedList']||undefined,_0x57774d[_0x27c85e('0x1a4b')]());}),_0x183703[_0xa4c7ad('0x10e8')](_0xa4c7ad('0x18e3'),function(_0x1ac0f0,_0x1a56fe){var _0x3baab5=_0xa4c7ad;_0x1ac0f0!==_0x1a56fe&&(_0x57774d['query']['CompanyId']=_0x57774d[_0x3baab5('0x13f8')]||undefined,_0x57774d[_0x3baab5('0x1a4b')]());}),_0x183703[_0xa4c7ad('0x10e8')]('vm.selectedTags',function(_0x3d8ab9,_0x59ad63){var _0x5b2d02=_0xa4c7ad;(_0x3d8ab9[_0x5b2d02('0x577')]||_0x59ad63[_0x5b2d02('0x577')])&&_0x57774d[_0x5b2d02('0x1a4b')]();});function _0xf2eff4(_0xe676bd){_0x57774d['contacts']=_0xe676bd||{'count':0x0,'rows':[]};}function _0x59663c(){var _0x438a2f=_0xa4c7ad;_0x57774d[_0x438a2f('0x77')][_0x438a2f('0x15a5')]=(_0x57774d[_0x438a2f('0x77')][_0x438a2f('0x2376')]-0x1)*_0x57774d[_0x438a2f('0x77')]['limit'],_0x3f1665[_0x438a2f('0x21de')](_0x438a2f('0x1bd8'))?_0x57774d[_0x438a2f('0x71b')]=_0x55f153[_0x438a2f('0x25dc')]['get'](_0x57774d[_0x438a2f('0x77')],_0xf2eff4)[_0x438a2f('0x1376')]:(_0x57774d['query']['id']=_0x57774d[_0x438a2f('0x758')]['id'],_0x57774d[_0x438a2f('0x77')]['ListId']=!_0x57774d[_0x438a2f('0x77')][_0x438a2f('0x815')]?_0x86640f()['map'](_0x57774d[_0x438a2f('0x1972')][_0x438a2f('0x1b33')],'id'):_0x57774d[_0x438a2f('0x77')][_0x438a2f('0x815')],_0x57774d['query']['CompanyId']=!_0x57774d[_0x438a2f('0x77')][_0x438a2f('0x20f8')]?_0x86640f()(_0x57774d[_0x438a2f('0x1dee')][_0x438a2f('0x1b33')])[_0x438a2f('0x1503')]({'canSelect':undefined})[_0x438a2f('0x26c3')]('id')['value']():_0x57774d[_0x438a2f('0x77')][_0x438a2f('0x20f8')],_0x57774d[_0x438a2f('0x77')][_0x438a2f('0x26ad')]=_0x438a2f('0x780'),_0x57774d[_0x438a2f('0x71b')]=_0x55f153['userProfile'][_0x438a2f('0x321')](_0x57774d[_0x438a2f('0x77')],_0xf2eff4)[_0x438a2f('0x1376')]);}function _0x5a626a(_0x3d1b54,_0x39c94e){var _0x22fa6d=_0xa4c7ad;_0x39c94e&&_0x39c94e[_0x22fa6d('0x20bc')]&&(_0x39c94e[_0x22fa6d('0x20bc')]=new Date(_0x39c94e['dateOfBirth'])),_0x3b5a7b[_0x22fa6d('0x853')]({'controller':_0x22fa6d('0x7de'),'controllerAs':'vm','templateUrl':_0x4058f7,'parent':angular[_0x22fa6d('0x1676')](_0x4ee81d[_0x22fa6d('0x2452')]),'targetEvent':_0x3d1b54,'clickOutsideToClose':!![],'locals':{'ListId':_0x57774d[_0x22fa6d('0x77')]['ListId']||_0x499b03[_0x22fa6d('0x171b')][_0x22fa6d('0x815')],'CompanyId':_0x57774d[_0x22fa6d('0x77')]['CompanyId']||_0x499b03['params'][_0x22fa6d('0x20f8')],'contact':_0x39c94e,'contacts':_0x57774d[_0x22fa6d('0x2814')][_0x22fa6d('0x1b33')],'companies':_0x57774d['companies'],'lists':_0x57774d['lists'],'setting':null,'crudPermissions':_0x57774d['crudPermissions']}});}function _0x480f00(_0x15b419,_0x4d5519){var _0x3605c2=_0xa4c7ad;_0x3b5a7b['show']({'controller':'DuplicateContactDialogController','controllerAs':'vm','templateUrl':_0x5e562c,'parent':angular[_0x3605c2('0x1676')](_0x4ee81d[_0x3605c2('0x2452')]),'targetEvent':_0x15b419,'clickOutsideToClose':!![],'resolve':{'contact':[_0x3605c2('0x354'),function _0x24737d(_0x4d084e){var _0x211ab0=_0x3605c2;return _0x4d084e[_0x211ab0('0x8ac')](_0x211ab0('0x259d'),{'id':_0x4d5519['id']});}],'lists':[_0x3605c2('0x354'),_0x3605c2('0x15bc'),function _0x5b04f3(_0x24ec87,_0x450fdb){var _0x4ec003=_0x3605c2;return _0x450fdb[_0x4ec003('0x21de')](_0x4ec003('0x1bd8'))?_0x24ec87[_0x4ec003('0x8ac')](_0x4ec003('0x265c'),{'fields':_0x4ec003('0x1aa8'),'nolimit':!![]}):_0x24ec87['resolve'](_0x4ec003('0x52f'),{'id':_0x450fdb[_0x4ec003('0x15ed')]()[_0x4ec003('0x1618')],'section':_0x4ec003('0xd8d'),'fields':'id,name','nolimit':!![]});}]},'locals':{'contacts':_0x57774d[_0x3605c2('0x2814')][_0x3605c2('0x1b33')]}});}function _0x31f4f1(_0x2704d3,_0x23cfc4){var _0x5934f9=_0xa4c7ad;_0x3b5a7b[_0x5934f9('0x853')]({'controller':_0x5934f9('0x261d'),'controllerAs':'vm','templateUrl':_0x330672,'parent':angular[_0x5934f9('0x1676')](_0x4ee81d[_0x5934f9('0x2452')]),'targetEvent':_0x2704d3,'clickOutsideToClose':!![],'resolve':{'contact':['apiResolver',function _0x27ddee(_0x3d6d3a){var _0x5f0444=_0x5934f9;return _0x3d6d3a[_0x5f0444('0x8ac')](_0x5f0444('0x259d'),{'id':_0x23cfc4['id']});}],'lists':['apiResolver',_0x5934f9('0x15bc'),function _0x37cac2(_0x172e5c,_0x4f76c9){var _0x5a9ed4=_0x5934f9;return _0x4f76c9[_0x5a9ed4('0x21de')]('admin')?_0x172e5c[_0x5a9ed4('0x8ac')]('cmList@get',{'fields':'id,name','nolimit':!![]}):_0x172e5c[_0x5a9ed4('0x8ac')](_0x5a9ed4('0x52f'),{'id':_0x4f76c9[_0x5a9ed4('0x15ed')]()[_0x5a9ed4('0x1618')],'section':_0x5a9ed4('0xd8d'),'fields':'id,name','nolimit':!![]});}]},'locals':{'contacts':_0x57774d[_0x5934f9('0x2814')][_0x5934f9('0x1b33')]}});}function _0x5ee5e0(_0x28f3d8){var _0xa2c520=_0xa4c7ad;_0x55f153['cmContact'][_0xa2c520('0x1164')]({'id':_0x28f3d8['id']})[_0xa2c520('0x1376')][_0xa2c520('0x21ad')](function(){var _0xefda01=_0xa2c520;_0x86640f()[_0xefda01('0x16a2')](_0x57774d[_0xefda01('0x2814')]['rows'],{'id':_0x28f3d8['id']}),_0x57774d[_0xefda01('0x2814')]['count']-=0x1,!_0x57774d[_0xefda01('0x2814')]['rows'][_0xefda01('0x577')]&&_0x57774d[_0xefda01('0x1a4b')](),_0x5aa94b[_0xefda01('0xdb1')]({'title':_0xefda01('0x43c'),'msg':_0x28f3d8[_0xefda01('0x19fe')]?_0x28f3d8[_0xefda01('0x19fe')]+_0xefda01('0xb4a'):''});})[_0xa2c520('0x1c1d')](function(_0x44ce19){var _0x2d0142=_0xa2c520;if(_0x44ce19[_0x2d0142('0x11c2')]&&_0x44ce19[_0x2d0142('0x11c2')][_0x2d0142('0x1a69')]&&_0x44ce19[_0x2d0142('0x11c2')][_0x2d0142('0x1a69')][_0x2d0142('0x577')]){_0x57774d[_0x2d0142('0x1a69')]=_0x44ce19[_0x2d0142('0x11c2')][_0x2d0142('0x1a69')]||[{'message':_0x44ce19[_0x2d0142('0x174f')](),'type':_0x2d0142('0x1326')}];for(var _0x50b802=0x0;_0x50b802<_0x44ce19['data'][_0x2d0142('0x1a69')][_0x2d0142('0x577')];_0x50b802++){_0x5aa94b[_0x2d0142('0x2092')]({'title':_0x44ce19[_0x2d0142('0x11c2')][_0x2d0142('0x1a69')][_0x50b802]['type'],'msg':_0x44ce19[_0x2d0142('0x11c2')][_0x2d0142('0x1a69')][_0x50b802][_0x2d0142('0x1224')]});}}else _0x5aa94b['error']({'title':_0x44ce19[_0x2d0142('0x209')]?_0x2d0142('0x22d')+_0x44ce19['status']+_0x2d0142('0xa99')+_0x44ce19[_0x2d0142('0x1808')]:_0x2d0142('0x1326'),'msg':_0x44ce19[_0x2d0142('0x11c2')]?JSON[_0x2d0142('0x25e')](_0x44ce19[_0x2d0142('0x11c2')]['message']):_0x44ce19['message']||_0x44ce19['toString']()});});}function _0x4b668e(){var _0x158cc1=_0xa4c7ad,_0x154e81=angular[_0x158cc1('0xd75')](_0x57774d[_0x158cc1('0x13ab')]);return _0x57774d[_0x158cc1('0x13ab')]=[],_0x154e81;}function _0x251383(_0x141fa4){var _0x1100df=_0xa4c7ad,_0x23611c=_0x3b5a7b[_0x1100df('0xa33')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20contacts?')[_0x1100df('0x276b')](_0x1100df('0x622')+_0x57774d['selectedContacts']['length']+_0x1100df('0xd74')+_0x1100df('0x25e0'))[_0x1100df('0x7a7')]('delete\x20Contacts')[_0x1100df('0x1e6d')](_0x141fa4)['ok']('OK')[_0x1100df('0x3b5')](_0x1100df('0x284b'));_0x3b5a7b[_0x1100df('0x853')](_0x23611c)[_0x1100df('0x21ad')](function(){var _0x5b380b=_0x1100df;_0x57774d['selectedContacts'][_0x5b380b('0x1a52')](function(_0x124a6b){_0x5ee5e0(_0x124a6b);}),_0x57774d[_0x5b380b('0x13ab')]=[];});}function _0x3e78db(){var _0x4b99f1=_0xa4c7ad;_0x57774d[_0x4b99f1('0x13ab')]=[];}function _0x299fdf(){var _0xc2123c=_0xa4c7ad;_0x57774d[_0xc2123c('0x13ab')]=_0x57774d[_0xc2123c('0x2814')][_0xc2123c('0x1b33')];}}const _0x27337b=_0x46e2b7;_0x4c9538['$inject']=[_0x3877e3('0x1850'),_0x3877e3('0x1908'),'contacts',_0x3877e3('0x1972'),_0x3877e3('0x1dee'),_0x3877e3('0x150c'),_0x3877e3('0x815'),'CompanyId',_0x3877e3('0xccd'),'crudPermissions'];function _0x4c9538(_0x399277,_0x5b6ecf,_0x50f8c2,_0x5ac00a,_0x4a5953,_0x506cd8,_0x14dcd9,_0x45ff94,_0x798568,_0x1325e7){var _0xe62e7c=_0x3877e3,_0x6e88e2=this;_0x6e88e2[_0xe62e7c('0x1a69')]=[],_0x6e88e2[_0xe62e7c('0x4b4')]=_0xe62e7c('0x333'),_0x6e88e2[_0xe62e7c('0x5ed')]=_0x1325e7,_0x6e88e2['contact']=angular[_0xe62e7c('0xd75')](_0x506cd8),_0x6e88e2[_0xe62e7c('0x2814')]=_0x50f8c2||{'rows':[],'count':0x0},_0x6e88e2[_0xe62e7c('0x1972')]=_0x5ac00a||{'rows':[],'count':0x0},_0x6e88e2[_0xe62e7c('0x1dee')]=_0x4a5953||{'rows':[],'count':0x0},_0x6e88e2[_0xe62e7c('0xbbd')]={'rows':[],'count':0x0},_0x6e88e2[_0xe62e7c('0xf36')]=![];!_0x6e88e2[_0xe62e7c('0x150c')]?(_0x6e88e2[_0xe62e7c('0x150c')]={'ListId':_0x14dcd9?parseInt(_0x14dcd9,0xa):undefined,'CompanyId':_0x45ff94?parseInt(_0x45ff94,0xa):undefined},_0x6e88e2['title']='CONTACTMANAGER.NEW_CONTACT',_0x6e88e2['newContact']=!![]):(delete _0x6e88e2[_0xe62e7c('0x150c')][_0xe62e7c('0x9cf')],_0x6e88e2[_0xe62e7c('0x815')]=_0x6e88e2[_0xe62e7c('0x150c')][_0xe62e7c('0x815')]||undefined);_0x6e88e2[_0xe62e7c('0x109a')]=_0x480d5f,_0x6e88e2[_0xe62e7c('0x145f')]=_0x406f8a,_0x6e88e2[_0xe62e7c('0x246e')]=_0x299c45,_0x6e88e2[_0xe62e7c('0x167')]=_0x1785a5,_0x6e88e2['getCustomFields']=_0xdd415f,_0x6e88e2[_0xe62e7c('0x279')]=_0x1c1333;function _0x480d5f(){var _0x485770=_0xe62e7c;_0x6e88e2[_0x485770('0x1a69')]=[],_0x798568[_0x485770('0x25dc')][_0x485770('0x186f')](_0x6e88e2['contact'])['$promise'][_0x485770('0x21ad')](function(_0x2ce74e){var _0x178570=_0x485770;_0x6e88e2['contacts']['unshift'](_0x2ce74e),_0x5b6ecf[_0x178570('0xdb1')]({'title':_0x178570('0x222d'),'msg':_0x6e88e2[_0x178570('0x150c')][_0x178570('0x19fe')]?_0x6e88e2[_0x178570('0x150c')][_0x178570('0x19fe')]+_0x178570('0x1694'):''}),_0x1785a5();})[_0x485770('0x1c1d')](function(_0x5174c1){var _0x34147e=_0x485770;if(_0x5174c1['data']&&_0x5174c1['data'][_0x34147e('0x1a69')]&&_0x5174c1[_0x34147e('0x11c2')][_0x34147e('0x1a69')][_0x34147e('0x577')]){_0x6e88e2[_0x34147e('0x1a69')]=_0x5174c1[_0x34147e('0x11c2')][_0x34147e('0x1a69')]||[{'message':_0x5174c1[_0x34147e('0x174f')](),'type':_0x34147e('0xb90')}];for(var _0x32abab=0x0;_0x32abab<_0x5174c1[_0x34147e('0x11c2')][_0x34147e('0x1a69')][_0x34147e('0x577')];_0x32abab++){_0x5b6ecf['error']({'title':_0x5174c1[_0x34147e('0x11c2')][_0x34147e('0x1a69')][_0x32abab]['type'],'msg':_0x5174c1['data'][_0x34147e('0x1a69')][_0x32abab][_0x34147e('0x1224')]});}}else _0x5b6ecf[_0x34147e('0x2092')]({'title':_0x5174c1[_0x34147e('0x209')]?_0x34147e('0x22d')+_0x5174c1[_0x34147e('0x209')]+_0x34147e('0xa99')+_0x5174c1[_0x34147e('0x1808')]:_0x34147e('0x14bd'),'msg':_0x5174c1[_0x34147e('0x11c2')]?JSON[_0x34147e('0x25e')](_0x5174c1['data'][_0x34147e('0x1224')]):_0x5174c1['toString']()});});}function _0x406f8a(){var _0x32d2b8=_0xe62e7c;_0x6e88e2[_0x32d2b8('0x1a69')]=[],_0x798568[_0x32d2b8('0x25dc')]['update']({'id':_0x6e88e2[_0x32d2b8('0x150c')]['id']},_0x6e88e2['contact'])[_0x32d2b8('0x1376')][_0x32d2b8('0x21ad')](function(_0x1a1a27){var _0x337bf2=_0x32d2b8,_0x5db4dc=_0x86640f()['find'](_0x6e88e2[_0x337bf2('0x2814')],{'id':_0x1a1a27['id']});_0x5db4dc&&_0x86640f()[_0x337bf2('0xd0e')](_0x5db4dc,_0x1a1a27),_0x5b6ecf[_0x337bf2('0xdb1')]({'title':_0x337bf2('0x73d'),'msg':_0x6e88e2[_0x337bf2('0x150c')][_0x337bf2('0x19fe')]?_0x6e88e2[_0x337bf2('0x150c')][_0x337bf2('0x19fe')]+'\x20has\x20been\x20saved!':''}),_0x1785a5();})[_0x32d2b8('0x1c1d')](function(_0x3ef8f6){var _0x219882=_0x32d2b8;if(_0x3ef8f6[_0x219882('0x11c2')]&&_0x3ef8f6['data'][_0x219882('0x1a69')]&&_0x3ef8f6['data']['errors'][_0x219882('0x577')]){_0x6e88e2[_0x219882('0x1a69')]=_0x3ef8f6[_0x219882('0x11c2')][_0x219882('0x1a69')]||[{'message':_0x3ef8f6[_0x219882('0x174f')](),'type':_0x219882('0x2076')}];for(var _0x1fd2e6=0x0;_0x1fd2e6<_0x3ef8f6[_0x219882('0x11c2')][_0x219882('0x1a69')][_0x219882('0x577')];_0x1fd2e6++){_0x5b6ecf['error']({'title':_0x3ef8f6['data']['errors'][_0x1fd2e6][_0x219882('0x7fa')],'msg':_0x3ef8f6[_0x219882('0x11c2')][_0x219882('0x1a69')][_0x1fd2e6][_0x219882('0x1224')]});}}else _0x5b6ecf['error']({'title':_0x3ef8f6['status']?_0x219882('0x22d')+_0x3ef8f6[_0x219882('0x209')]+_0x219882('0xa99')+_0x3ef8f6[_0x219882('0x1808')]:_0x219882('0x2076'),'msg':_0x3ef8f6[_0x219882('0x11c2')]?JSON[_0x219882('0x25e')](_0x3ef8f6[_0x219882('0x11c2')][_0x219882('0x1224')]):_0x3ef8f6[_0x219882('0x174f')]()});});}function _0xdd415f(_0x53225e){var _0x345324=_0xe62e7c;if(_0x53225e)return _0x798568[_0x345324('0x11e0')]['getCustomFields']({'id':_0x53225e})['$promise'][_0x345324('0x21ad')](function(_0x434709){var _0x54c157=_0x345324;if(_0x434709){_0x6e88e2[_0x54c157('0xbbd')]=_0x434709;var _0x3b59c8=_0x86640f()['map'](_0x6e88e2[_0x54c157('0xbbd')][_0x54c157('0x1b33')],function(_0xb78569){var _0x75bb9=_0x54c157;return _0x75bb9('0x714')+_0xb78569['id'];});_0x798568[_0x54c157('0x25dc')][_0x54c157('0x595')]({'id':_0x6e88e2['contact']['id'],'attributes':_0x3b59c8,'raw':!![]})[_0x54c157('0x1376')][_0x54c157('0x21ad')](function(_0x495000){var _0x45b8d5=_0x54c157;_0x6e88e2[_0x45b8d5('0x150c')]=_0x86640f()[_0x45b8d5('0xd0e')](_0x6e88e2['contact'],_0x495000);});}})[_0x345324('0x1c1d')](function(_0x215020){var _0x17d858=_0x345324;console[_0x17d858('0x2092')](_0x215020);});else _0x6e88e2[_0x345324('0xbbd')]={'rows':[],'count':0x0};}function _0x299c45(_0x57ef69){var _0x46661f=_0xe62e7c;_0x6e88e2[_0x46661f('0x1a69')]=[];var _0x1b3daa=_0x399277[_0x46661f('0xa33')]()[_0x46661f('0x4b4')]('Are\x20you\x20sure?')[_0x46661f('0x13fb')](_0x46661f('0x374'))[_0x46661f('0x7a7')]('Delete\x20Contact')['ok'](_0x46661f('0xbfd'))[_0x46661f('0x3b5')](_0x46661f('0x1f40'))[_0x46661f('0x1e6d')](_0x57ef69);_0x399277['show'](_0x1b3daa)[_0x46661f('0x21ad')](function(){var _0x1ed5e9=_0x46661f;_0x798568[_0x1ed5e9('0x25dc')][_0x1ed5e9('0x1164')]({'id':_0x6e88e2[_0x1ed5e9('0x150c')]['id']})[_0x1ed5e9('0x1376')][_0x1ed5e9('0x21ad')](function(){var _0x566f33=_0x1ed5e9;_0x86640f()['remove'](_0x6e88e2[_0x566f33('0x2814')],{'id':_0x6e88e2['contact']['id']}),_0x5b6ecf[_0x566f33('0xdb1')]({'title':'Contact\x20properly\x20deleted!','msg':_0x6e88e2[_0x566f33('0x150c')]['name']?_0x6e88e2[_0x566f33('0x150c')][_0x566f33('0x19fe')]+'\x20has\x20been\x20deleted!':''}),_0x1785a5();})['catch'](function(_0x2f77dd){var _0x18a066=_0x1ed5e9;console['error'](_0x2f77dd),_0x6e88e2[_0x18a066('0x1a69')]=_0x2f77dd['data'][_0x18a066('0x1a69')]||[{'message':_0x2f77dd[_0x18a066('0x174f')](),'type':'api.contact.delete'}];});},function(){});}function _0x1c1333(_0x2e8017){return _0x2e8017===null?undefined:new Date(_0x2e8017);}function _0x1785a5(){var _0x3258d2=_0xe62e7c;_0x399277[_0x3258d2('0x1c24')]();}}const _0x38d379=_0x4c9538;_0x426329[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'toasty',_0x3877e3('0x150c'),'contacts','lists','api'];function _0x426329(_0x10f42d,_0x5d37ef,_0x3768ca,_0x2fa1e2,_0x2ad9ec,_0x1547ae){var _0x3add1c=_0x3877e3,_0x55c470=this;_0x55c470[_0x3add1c('0x1a69')]=[],_0x55c470[_0x3add1c('0x4b4')]=_0x3add1c('0x14e9'),_0x55c470['contact']=angular[_0x3add1c('0xd75')](_0x3768ca),_0x55c470['lists']=_0x2ad9ec||{'rows':[],'count':0x0},_0x55c470[_0x3add1c('0x109a')]=_0x348fc4,_0x55c470[_0x3add1c('0x167')]=_0x18598b;function _0x348fc4(){var _0x2efbd8=_0x3add1c;_0x55c470['errors']=[],delete _0x55c470[_0x2efbd8('0x150c')]['id'],_0x55c470[_0x2efbd8('0x150c')][_0x2efbd8('0x1889')]&&!_0x55c470[_0x2efbd8('0x150c')][_0x2efbd8('0x1889')][_0x2efbd8('0x577')]&&delete _0x55c470[_0x2efbd8('0x150c')]['tags'],_0x1547ae[_0x2efbd8('0x25dc')][_0x2efbd8('0x186f')](_0x55c470['contact'])[_0x2efbd8('0x1376')]['then'](function(_0x5218cf){var _0x5a1a26=_0x2efbd8;_0x2fa1e2[_0x5a1a26('0xd0c')](_0x5218cf),_0x5d37ef[_0x5a1a26('0xdb1')]({'title':_0x5a1a26('0x222d'),'msg':_0x55c470[_0x5a1a26('0x150c')][_0x5a1a26('0x19fe')]?_0x55c470[_0x5a1a26('0x150c')][_0x5a1a26('0x19fe')]+_0x5a1a26('0x1694'):''}),_0x18598b();})[_0x2efbd8('0x1c1d')](function(_0x29aa70){var _0x2b28a6=_0x2efbd8;console[_0x2b28a6('0x2092')](_0x29aa70),_0x55c470['errors']=_0x29aa70[_0x2b28a6('0x11c2')]['errors']||[{'message':_0x29aa70['toString'](),'type':_0x2b28a6('0x1163')}];});}function _0x18598b(){var _0x3122f2=_0x3add1c;_0x10f42d[_0x3122f2('0x1c24')]();}}const _0x1707c6=_0x426329;_0x397c7c[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),_0x3877e3('0x1908'),_0x3877e3('0x14b5'),_0x3877e3('0x155d'),_0x3877e3('0xccd'),_0x3877e3('0x5ed')];function _0x397c7c(_0x52f18d,_0x45d2bd,_0x5c0aee,_0x5ca5b4,_0x47d89f,_0x452b05,_0x56a219,_0x452235,_0x2e7e59){var _0x59d9e6=_0x3877e3,_0x1a7b3e=this;_0x1a7b3e[_0x59d9e6('0x1a69')]=[],_0x1a7b3e['title']=_0x59d9e6('0x22db'),_0x1a7b3e['hopper']=angular[_0x59d9e6('0xd75')](_0x56a219),_0x1a7b3e[_0x59d9e6('0x14b5')]=_0x452b05,_0x1a7b3e[_0x59d9e6('0x174c')]=![],_0x1a7b3e[_0x59d9e6('0x5ed')]=_0x2e7e59;!_0x1a7b3e[_0x59d9e6('0x155d')]&&(_0x1a7b3e[_0x59d9e6('0x155d')]={},_0x1a7b3e[_0x59d9e6('0x4b4')]=_0x59d9e6('0xa06'),_0x1a7b3e['newHopper']=!![]);_0x1a7b3e[_0x59d9e6('0x173d')]=_0x4dfeef,_0x1a7b3e['getDateFromString']=_0x5893e0,_0x1a7b3e['closeDialog']=_0x5f504d;function _0x4dfeef(){var _0x2c6770=_0x59d9e6;_0x1a7b3e[_0x2c6770('0x1a69')]=[],_0x452235['cmHopper'][_0x2c6770('0x5ef')]({'id':_0x1a7b3e[_0x2c6770('0x155d')]['id']},_0x1a7b3e['hopper'])[_0x2c6770('0x1376')]['then'](function(_0x29d907){var _0x4848e5=_0x2c6770,_0x2c0569=_0x86640f()['find'](_0x1a7b3e[_0x4848e5('0x14b5')],{'id':_0x29d907['id']});_0x2c0569&&_0x86640f()[_0x4848e5('0xd0e')](_0x2c0569,_0x29d907),_0x47d89f[_0x4848e5('0xdb1')]({'title':_0x4848e5('0x1f05'),'msg':_0x1a7b3e[_0x4848e5('0x155d')]['name']?_0x1a7b3e[_0x4848e5('0x155d')][_0x4848e5('0x19fe')]+'\x20has\x20been\x20saved!':''}),_0x5f504d(_0x29d907);})[_0x2c6770('0x1c1d')](function(_0x488797){var _0x19203f=_0x2c6770;console[_0x19203f('0x2092')](_0x488797),_0x1a7b3e[_0x19203f('0x1a69')]=_0x488797[_0x19203f('0x11c2')][_0x19203f('0x1a69')]||[{'message':_0x488797[_0x19203f('0x174f')](),'type':'api.cmHopper.update'}];});}function _0x5893e0(_0x3e0dc1){return _0x3e0dc1===null?undefined:new Date(_0x3e0dc1);}function _0x5f504d(_0x3653ec){var _0xfcb83a=_0x59d9e6;_0x5ca5b4[_0xfcb83a('0x1c24')](_0x3653ec);}}const _0x227dc4=_0x397c7c,_0x5b5704=_0x398308['p']+'src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/hoppers/dialog.html/dialog-[chunkhash].html';_0xaf8bf7['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0x2313'),_0x3877e3('0xa9f'),_0x3877e3('0x243f'),_0x3877e3('0x1850'),_0x3877e3('0x13c1'),'toasty',_0x3877e3('0xccd'),_0x3877e3('0x150c'),_0x3877e3('0x14b5'),'finals',_0x3877e3('0x23a8'),_0x3877e3('0x2814'),_0x3877e3('0x1dee'),_0x3877e3('0x1972'),_0x3877e3('0xbbd'),_0x3877e3('0x1889'),_0x3877e3('0x1f18'),'license',_0x3877e3('0x15bc'),_0x3877e3('0xab4')];function _0xaf8bf7(_0x26099f,_0x34b61c,_0xc338bd,_0x425bd0,_0x516f05,_0x3af313,_0x1845a6,_0xf25fce,_0x172562,_0x3264af,_0x5e5989,_0x594d6e,_0x5081f8,_0x4a39fc,_0x2f6756,_0x163fbb,_0x2fdf63,_0x14ba4a,_0x406acc,_0x2fe762,_0x104442){var _0x11b64d=_0x3877e3,_0xdeb1fa=this;_0xdeb1fa[_0x11b64d('0x123f')]=_0x2fe762[_0x11b64d('0x15ed')](),_0xdeb1fa[_0x11b64d('0x2ff')]=_0x406acc,_0xdeb1fa[_0x11b64d('0xd1b')]=[],_0xdeb1fa[_0x11b64d('0x150c')]=_0x172562||{},_0xdeb1fa[_0x11b64d('0x14b5')]=_0x3264af||{'rows':[],'count':0x0},_0xdeb1fa[_0x11b64d('0x128a')]=_0x5e5989||{'rows':[],'count':0x0},_0xdeb1fa['histories']=_0x594d6e||{'rows':[],'count':0x0},_0xdeb1fa[_0x11b64d('0x1dee')]=_0x4a39fc||{'rows':[],'count':0x0},_0xdeb1fa[_0x11b64d('0x1972')]=_0x2f6756||{'rows':[],'count':0x0},_0xdeb1fa['customFields']=_0x163fbb||{'rows':[],'count':0x0},_0xdeb1fa[_0x11b64d('0x1889')]=_0x2fdf63||{'rows':[],'count':0x0},_0xdeb1fa[_0x11b64d('0x1f18')]=_0x14ba4a||{'rows':[],'count':0x0},_0xdeb1fa[_0x11b64d('0x2a8')]={'scrollEl':'#interaction-content'},_0xdeb1fa['firstDayMonth']=new Date(_0x1088bc()()[_0x11b64d('0x1982')](_0x11b64d('0xb64'))[_0x11b64d('0xafa')](0x1,'seconds')[_0x11b64d('0x215e')](0x0,!![])[_0x11b64d('0x153')]()),_0xdeb1fa[_0x11b64d('0x21b2')]=new Date(_0x1088bc()()[_0x11b64d('0x117b')](_0x11b64d('0xb64'))['subtract'](0x1,_0x11b64d('0x1837'))[_0x11b64d('0x215e')](0x0,!![])[_0x11b64d('0x153')]()),_0xdeb1fa[_0x11b64d('0xab4')]=_0x104442&&_0x104442[_0x11b64d('0x205f')]==0x1?_0x104442[_0x11b64d('0x1b33')][0x0]:null,_0xdeb1fa[_0x11b64d('0x5ed')]=_0x2fe762[_0x11b64d('0x1778')](_0xdeb1fa[_0x11b64d('0xab4')]?_0xdeb1fa['userProfileSection']['crudPermissions']:null),_0xdeb1fa[_0x11b64d('0xcdf')]=_0x86640f()[_0x11b64d('0xcde')]([{'option':_0x11b64d('0xfbf'),'value':'\x274\x27'},{'option':_0x11b64d('0x26b9'),'value':'\x273\x27'},{'option':'Medium','value':'\x272\x27'},{'option':_0x11b64d('0x1cbc'),'value':_0x11b64d('0x1bf7')},{'option':'Lowest','value':'\x270\x27'}],function(_0x2890b5){var _0x140e6b=_0x11b64d;return _0x86640f()[_0x140e6b('0x16e4')](_0x2890b5['value'],new RegExp('\x27','g'),'');}),_0xdeb1fa[_0x11b64d('0x12c')]={'fields':_0x11b64d('0x1647'),'sort':_0x11b64d('0x33'),'limit':0xa,'page':0x1},_0xdeb1fa[_0x11b64d('0xcc')]={'fields':'id,uniqueid,calleridnum,statedesc,starttime,disposition','sort':_0x11b64d('0x51d'),'limit':0xa,'page':0x1},_0xdeb1fa[_0x11b64d('0x1339')]={'fields':'id,uniqueid,calleridnum,statedesc,scheduledat,starttime,endtime','sort':_0x11b64d('0x51d'),'limit':0xa,'page':0x1},_0xdeb1fa[_0x11b64d('0xb9e')]={'fields':_0x11b64d('0x1b5'),'sort':_0x11b64d('0x1655'),'limit':0xa,'page':0x1},_0xdeb1fa['selectedTab']=_0xc338bd[_0x11b64d('0x171b')]['tab']||0x0,_0xdeb1fa[_0x11b64d('0x1081')]=_0x1675af,_0xdeb1fa[_0x11b64d('0x1dca')]=_0x40e81d,_0xdeb1fa[_0x11b64d('0x13a6')]=_0x2dd4a7,_0xdeb1fa[_0x11b64d('0x145f')]=_0x2d8e3d,_0xdeb1fa['editCompany']=_0xfa86a1,_0xdeb1fa[_0x11b64d('0x1421')]=_0x228213,_0xdeb1fa[_0x11b64d('0x1d63')]=_0x3cfaf8,_0xdeb1fa[_0x11b64d('0x279')]=_0x37b423,_0xdeb1fa[_0x11b64d('0x252b')]=_0x3ef092,_0xdeb1fa[_0x11b64d('0xff9')]=_0x6008f4,_0xdeb1fa[_0x11b64d('0xec9')]=_0xf2dde1,_0xdeb1fa[_0x11b64d('0x1628')]=_0x3ff895,_0xdeb1fa[_0x11b64d('0x2593')]=_0x59f8bf,_0xdeb1fa[_0x11b64d('0x1a82')]=_0x593400,_0xdeb1fa[_0x11b64d('0xe46')]=_0x3e19f0,_0xdeb1fa[_0x11b64d('0x1e6f')]=_0x53603a;var _0xe678ad=!![],_0x58d0c3=0x1;_0x26099f['$watch']('vm.queryHopper.filter',function(_0x5bd9ec,_0x1b85d6){var _0x272750=_0x11b64d;_0xe678ad?_0x34b61c(function(){_0xe678ad=![];}):(!_0x1b85d6&&(_0x58d0c3=_0xdeb1fa[_0x272750('0x12c')]['page']),_0x5bd9ec!==_0x1b85d6&&(_0xdeb1fa[_0x272750('0x12c')][_0x272750('0x2376')]=0x1),!_0x5bd9ec&&(_0xdeb1fa[_0x272750('0x12c')]['page']=_0x58d0c3),_0xdeb1fa['getHoppers']());}),_0x26099f[_0x11b64d('0x10e8')](_0x11b64d('0x1f4b'),function(_0x767fd3,_0x21d798){var _0x5c2f8b=_0x11b64d;_0xe678ad?_0x34b61c(function(){_0xe678ad=![];}):(!_0x21d798&&(_0x58d0c3=_0xdeb1fa[_0x5c2f8b('0xcc')][_0x5c2f8b('0x2376')]),_0x767fd3!==_0x21d798&&(_0xdeb1fa[_0x5c2f8b('0xcc')]['page']=0x1),!_0x767fd3&&(_0xdeb1fa[_0x5c2f8b('0xcc')][_0x5c2f8b('0x2376')]=_0x58d0c3),_0xdeb1fa[_0x5c2f8b('0xff9')]());}),_0x26099f[_0x11b64d('0x10e8')](_0x11b64d('0x14ed'),function(_0x3c7c63,_0x42e2ec){var _0x441f0d=_0x11b64d;_0xe678ad?_0x34b61c(function(){_0xe678ad=![];}):(!_0x42e2ec&&(_0x58d0c3=_0xdeb1fa[_0x441f0d('0x1339')][_0x441f0d('0x2376')]),_0x3c7c63!==_0x42e2ec&&(_0xdeb1fa[_0x441f0d('0x1339')][_0x441f0d('0x2376')]=0x1),!_0x3c7c63&&(_0xdeb1fa[_0x441f0d('0x1339')][_0x441f0d('0x2376')]=_0x58d0c3),_0xdeb1fa[_0x441f0d('0xec9')]());});function _0x33946f(_0x5e5e42){var _0x2fd806=_0x11b64d;switch(_0x5e5e42){case _0x2fd806('0x1f65'):return _0x2fd806('0x11aa');case _0x2fd806('0x1c8b'):return _0x2fd806('0x1d66');case _0x2fd806('0x3d0'):return _0x2fd806('0x272d');case _0x2fd806('0xac9'):return _0x2fd806('0xaa0');case'fax':return'blue-grey-A200';case _0x2fd806('0x1ad4'):return _0x2fd806('0x529');default:return _0x2fd806('0xfb1');}}function _0x53603a(_0x2ec54f){var _0x4b5cfc=_0x11b64d,_0x18868c='';if(_0x2ec54f[_0x4b5cfc('0x1de9')])_0x18868c=_0x4b5cfc('0x93f');else{if(_0x2ec54f[_0x4b5cfc('0xc92')])_0x18868c=_0x4b5cfc('0xac9');else{if(_0x2ec54f[_0x4b5cfc('0x822')])_0x18868c=_0x4b5cfc('0x3d0');else{if(_0x2ec54f[_0x4b5cfc('0x723')])_0x18868c=_0x4b5cfc('0x1c8b');else{if(_0x2ec54f[_0x4b5cfc('0x15f9')])_0x18868c=_0x4b5cfc('0x1f65');else _0x2ec54f[_0x4b5cfc('0x31a')]&&(_0x18868c=_0x4b5cfc('0x8ed'));}}}}return _0x33946f(_0x18868c);}function _0x5495bb(_0x9ae7f){return function(_0x3a0a54){_0xdeb1fa[_0x9ae7f]=_0x3a0a54||{'count':0x0,'rows':[]};};}function _0x1675af(){var _0x1b028f=_0x11b64d;return!_0x2fe762[_0x1b028f('0x21de')](_0x1b028f('0x1bd8'))&&(_0x5c01ed(),_0x490f50()),_0xf25fce['user'][_0x1b028f('0x595')]({'fields':_0x1b028f('0x26e5'),'nolimit':!![]})['$promise'][_0x1b028f('0x21ad')](function(_0x5e2bdb){var _0x4ac01f=_0x1b028f;_0xdeb1fa[_0x4ac01f('0x188e')]=_0x5e2bdb||{'count':0x0,'rows':[]},_0xdeb1fa[_0x4ac01f('0x214d')]=_0x86640f()[_0x4ac01f('0x9e7')](_0x86640f()[_0x4ac01f('0xcde')](_0xdeb1fa[_0x4ac01f('0x188e')]['rows'],'id'),_0x4ac01f('0x20f5')),_0xdeb1fa[_0x4ac01f('0x557')]=_0x86640f()['map'](_0xdeb1fa[_0x4ac01f('0x150c')][_0x4ac01f('0x557')],'id');})[_0x1b028f('0x21ad')](_0x19a319(_0x172562));}function _0x5c01ed(){var _0xf9e24a=_0x11b64d,_0x468f72=_0x86640f()[_0xf9e24a('0x2664')](_0xdeb1fa[_0xf9e24a('0x1dee')][_0xf9e24a('0x1b33')],{'id':_0xdeb1fa['contact']['CompanyId']});if(!_0x468f72)return _0xf25fce[_0xf9e24a('0x2725')][_0xf9e24a('0x595')]({'id':_0xdeb1fa[_0xf9e24a('0x150c')][_0xf9e24a('0x20f8')],'fields':'id,name'})[_0xf9e24a('0x1376')][_0xf9e24a('0x21ad')](function(_0x472962){var _0x19910b=_0xf9e24a,_0x1b0a75=_0x472962['toJSON']();_0x1b0a75[_0x19910b('0xba')]=![],_0xdeb1fa['companies']['rows'][_0x19910b('0x206c')](_0x1b0a75);})[_0xf9e24a('0x1c1d')](function(_0x460f8a){var _0x2e97e6=_0xf9e24a;_0x1845a6[_0x2e97e6('0x2092')]({'title':_0x460f8a[_0x2e97e6('0x209')]?_0x2e97e6('0x22d')+_0x460f8a[_0x2e97e6('0x209')]+'\x20-\x20'+_0x460f8a[_0x2e97e6('0x1808')]:'GET_COMPANY','msg':_0x460f8a[_0x2e97e6('0x11c2')]?JSON[_0x2e97e6('0x25e')](_0x460f8a[_0x2e97e6('0x11c2')][_0x2e97e6('0x1224')]):_0x460f8a[_0x2e97e6('0x174f')]()});});}function _0x490f50(){var _0x29ab0d=_0x11b64d,_0x364cbc=_0x86640f()[_0x29ab0d('0x26c3')](_0xdeb1fa[_0x29ab0d('0x150c')][_0x29ab0d('0x557')],function(_0x3e3839){var _0x3363b0=_0x29ab0d;return{'id':_0x3e3839['id'],'name':_0x3e3839[_0x3363b0('0x19fe')]};});if(!_0x86640f()[_0x29ab0d('0x23aa')](_0x364cbc))for(var _0x2e0c18=0x0;_0x2e0c18<_0x364cbc['length'];_0x2e0c18++){!_0x86640f()[_0x29ab0d('0x2664')](_0xdeb1fa['tags'][_0x29ab0d('0x1b33')],{'id':_0x364cbc['id']})&&(_0x364cbc[_0x2e0c18][_0x29ab0d('0xba')]=![],_0xdeb1fa[_0x29ab0d('0x1889')][_0x29ab0d('0x1b33')][_0x29ab0d('0x206c')](_0x364cbc[_0x2e0c18]));}}function _0x3b4484(_0x556822){var _0x77ca5c=_0x11b64d;if(!_0x556822[_0x77ca5c('0x22c8')])return'('+_0x3af313[_0x77ca5c('0x183e')](_0x77ca5c('0x1d56'))+')';var _0x54ae32=_0x86640f()[_0x77ca5c('0x596')]([_0x556822['disposition'],_0x556822[_0x77ca5c('0x2764')],_0x556822[_0x77ca5c('0x125')]]);return'('+_0x54ae32[_0x77ca5c('0x136')](_0x77ca5c('0xa99'))+')';}function _0x19472c(_0x54df02){var _0x1f1069=_0x11b64d;_0x54df02&&_0x54df02['count']&&_0x54df02[_0x1f1069('0x1b33')][_0x1f1069('0x577')]&&(_0xdeb1fa['journey']=_0x86640f()['concat'](_0xdeb1fa[_0x1f1069('0xd1b')],_0x54df02[_0x1f1069('0x1b33')]),_0xdeb1fa[_0x1f1069('0xd1b')]['forEach'](function(_0x4e8f7e){var _0x2ade40=_0x1f1069;_0x4e8f7e[_0x2ade40('0x2413')]=_0x3b4484(_0x4e8f7e);}));}function _0x19a319(_0x20da44){var _0x47f3a2=_0x11b64d,_0x134d2c=['mail',_0x47f3a2('0x1f65'),_0x47f3a2('0x3d0'),_0x47f3a2('0xac9'),_0x47f3a2('0x93f')];if(_0x20da44&&_0x20da44['id']){for(var _0x384cad=0x0;_0x384cad<_0x134d2c[_0x47f3a2('0x577')];_0x384cad++){_0xf25fce[_0x134d2c[_0x384cad]+_0x47f3a2('0xec3')][_0x47f3a2('0x595')]({'ContactId':_0x20da44['id'],'includeAll':!![]})[_0x47f3a2('0x1376')][_0x47f3a2('0x21ad')](_0x19472c);}_0xf25fce['voiceCallReport']['get']({'ContactId':_0x20da44['id'],'includeAll':!![]})['$promise'][_0x47f3a2('0x21ad')](_0x19472c)[_0x47f3a2('0x1c1d')](function(_0xb01a3c){var _0x5bfa40=_0x47f3a2;console[_0x5bfa40('0x2092')](_0xb01a3c);});}}function _0x593400(_0x52b0b5,_0x4e46c1){var _0x2b2d36=_0x11b64d;_0x516f05[_0x2b2d36('0x853')]({'controller':'CreateOrEditHopperVoiceQueueIdDialogController','controllerAs':'vm','templateUrl':_0x5e1b26,'parent':angular[_0x2b2d36('0x1676')](_0x425bd0[_0x2b2d36('0x2452')]),'targetEvent':_0x52b0b5,'clickOutsideToClose':!![],'locals':{'hopper':_0x4e46c1,'hoppers':_0xdeb1fa[_0x2b2d36('0x14b5')][_0x2b2d36('0x1b33')],'license':null,'setting':null,'crudPermissions':_0xdeb1fa['crudPermissions']}});}function _0x3e19f0(_0x21ead0,_0x47bf3a){var _0x447b8e=_0x11b64d;_0x516f05[_0x447b8e('0x853')]({'controller':'CreateOrEditHopperCampaignIdDialogController','controllerAs':'vm','templateUrl':_0x5b5704,'parent':angular[_0x447b8e('0x1676')](_0x425bd0['body']),'targetEvent':_0x21ead0,'clickOutsideToClose':!![],'locals':{'hopper':_0x47bf3a,'hoppers':_0xdeb1fa[_0x447b8e('0x14b5')][_0x447b8e('0x1b33')],'license':null,'setting':null,'crudPermissions':_0xdeb1fa[_0x447b8e('0x5ed')]}});}function _0x59f8bf(_0x5428d6,_0x2ce44c){var _0x4eccd7=_0x11b64d,_0x38bb8f=_0x516f05[_0x4eccd7('0xa33')]()[_0x4eccd7('0x4b4')](_0x4eccd7('0xe43'))['htmlContent'](_0x4eccd7('0x622')+(_0x5428d6['phone']||_0x4eccd7('0x155d'))+''+'\x20will\x20be\x20deleted.')[_0x4eccd7('0x7a7')]('delete\x20hopper')[_0x4eccd7('0x1e6d')](_0x2ce44c)['ok']('OK')[_0x4eccd7('0x3b5')](_0x4eccd7('0x284b'));_0x516f05['show'](_0x38bb8f)['then'](function(){_0x44a33e(_0x5428d6);},function(){var _0x2acdea=_0x4eccd7;console[_0x2acdea('0x6fb')](_0x2acdea('0x284b'));});}function _0x44a33e(_0x59ba9e){var _0x10ff1c=_0x11b64d;return _0xf25fce[_0x10ff1c('0x1b37')][_0x10ff1c('0x1164')]({'id':_0x59ba9e['id']})[_0x10ff1c('0x1376')][_0x10ff1c('0x21ad')](function(){var _0x90f61d=_0x10ff1c;_0x86640f()['remove'](_0xdeb1fa['hoppers'][_0x90f61d('0x1b33')],{'id':_0x59ba9e['id']}),_0xdeb1fa[_0x90f61d('0x14b5')][_0x90f61d('0x205f')]--,!_0xdeb1fa['hoppers'][_0x90f61d('0x1b33')][_0x90f61d('0x577')]&&_0xdeb1fa[_0x90f61d('0x252b')](),_0x1845a6[_0x90f61d('0xdb1')]({'title':_0x90f61d('0x1fb4'),'msg':_0x59ba9e[_0x90f61d('0x159e')]?_0x59ba9e[_0x90f61d('0x159e')]+_0x90f61d('0xb4a'):''});})['catch'](function(_0xd5c27e){var _0x1ee4e8=_0x10ff1c;_0x1845a6[_0x1ee4e8('0x2092')]({'title':_0xd5c27e[_0x1ee4e8('0x209')]?_0x1ee4e8('0x22d')+_0xd5c27e['status']+'\x20-\x20'+_0xd5c27e[_0x1ee4e8('0x1808')]:_0x1ee4e8('0x208a'),'msg':_0xd5c27e[_0x1ee4e8('0x11c2')]?JSON[_0x1ee4e8('0x25e')](_0xd5c27e[_0x1ee4e8('0x11c2')]):_0xd5c27e[_0x1ee4e8('0x174f')]()});});}function _0x3ef092(){var _0x470c42=_0x11b64d;_0xdeb1fa[_0x470c42('0x12c')][_0x470c42('0x15a5')]=(_0xdeb1fa[_0x470c42('0x12c')][_0x470c42('0x2376')]-0x1)*_0xdeb1fa[_0x470c42('0x12c')][_0x470c42('0x1f4a')],_0xdeb1fa[_0x470c42('0x12c')]['id']=_0xdeb1fa[_0x470c42('0x150c')]['id'],_0xdeb1fa[_0x470c42('0x71b')]=_0xf25fce[_0x470c42('0x25dc')]['getHoppers'](_0xdeb1fa[_0x470c42('0x12c')],_0x5495bb(_0x470c42('0x14b5')))['$promise'];}function _0x6008f4(){var _0x522ad8=_0x11b64d;_0xdeb1fa[_0x522ad8('0xcc')][_0x522ad8('0x15a5')]=(_0xdeb1fa[_0x522ad8('0xcc')][_0x522ad8('0x2376')]-0x1)*_0xdeb1fa['queryFinal'][_0x522ad8('0x1f4a')],_0xdeb1fa['queryFinal']['id']=_0xdeb1fa['contact']['id'],_0xdeb1fa[_0x522ad8('0x71b')]=_0xf25fce[_0x522ad8('0x25dc')][_0x522ad8('0x180c')](_0xdeb1fa['queryFinal'],_0x5495bb(_0x522ad8('0x128a')))[_0x522ad8('0x1376')];}function _0xf2dde1(){var _0x4a39e5=_0x11b64d;_0xdeb1fa[_0x4a39e5('0x1339')][_0x4a39e5('0x15a5')]=(_0xdeb1fa[_0x4a39e5('0x1339')]['page']-0x1)*_0xdeb1fa['queryHistory'][_0x4a39e5('0x1f4a')],_0xdeb1fa['queryHistory']['id']=_0xdeb1fa[_0x4a39e5('0x150c')]['id'],_0xdeb1fa['promise']=_0xf25fce[_0x4a39e5('0x25dc')]['getHopperHistories'](_0xdeb1fa[_0x4a39e5('0x1339')],_0x5495bb('histories'))[_0x4a39e5('0x1376')];}function _0x3ff895(){var _0x395b59=_0x11b64d;_0xdeb1fa['queryJscriptySession'][_0x395b59('0x15a5')]=(_0xdeb1fa[_0x395b59('0xb9e')][_0x395b59('0x2376')]-0x1)*_0xdeb1fa['queryJscriptySession'][_0x395b59('0x1f4a')],_0xdeb1fa[_0x395b59('0xb9e')]['id']=_0xdeb1fa[_0x395b59('0x150c')]['id'],_0xdeb1fa['promise']=_0xf25fce[_0x395b59('0x25dc')]['getJscriptySessions'](_0xdeb1fa[_0x395b59('0xb9e')],_0x5495bb(_0x395b59('0x1f18')))[_0x395b59('0x1376')];}function _0x228213(_0x4b4ed1){var _0x43dec8=_0x11b64d;if(_0xdeb1fa[_0x43dec8('0x150c')][_0x43dec8('0x815')]){var _0x1f8040=_0x516f05[_0x43dec8('0xa33')]()[_0x43dec8('0x4b4')]('You\x20are\x20selecting\x20the\x20list\x20number:\x20'+_0xdeb1fa[_0x43dec8('0x150c')][_0x43dec8('0x815')])['textContent'](_0x43dec8('0x2524')+_0xdeb1fa['contact'][_0x43dec8('0x992')]||0x0||0x0)[_0x43dec8('0x1e6d')](_0x4b4ed1)['ok']('Ok')[_0x43dec8('0x3b5')]('Cancel');return _0x516f05[_0x43dec8('0x853')](_0x1f8040)[_0x43dec8('0x21ad')](_0xdeb1fa[_0x43dec8('0x1d63')])[_0x43dec8('0x1c1d')](function(){var _0x4d39e7=_0x43dec8;_0xdeb1fa[_0x4d39e7('0x150c')][_0x4d39e7('0x815')]=null;});}}function _0x3cfaf8(){var _0x54cc34=_0x11b64d;return _0xf25fce[_0x54cc34('0x11e0')][_0x54cc34('0xb2d')]({'id':_0xdeb1fa[_0x54cc34('0x150c')][_0x54cc34('0x815')]})[_0x54cc34('0x1376')][_0x54cc34('0x21ad')](function(_0x45df3e){_0xdeb1fa['customFields']=_0x45df3e||{'rows':[],'count':0x0};})['catch'](function(_0x2d0bb8){console['error'](_0x2d0bb8);});}function _0xeed302(){var _0xa75f24=_0x11b64d;return _0xf25fce[_0xa75f24('0xab4')][_0xa75f24('0x595')]({'userProfileId':_0xdeb1fa[_0xa75f24('0x123f')][_0xa75f24('0x1618')],'sectionId':0x12e})[_0xa75f24('0x1376')][_0xa75f24('0x21ad')](function(_0x4725bf){var _0x26bb23=_0xa75f24,_0x368b86=_0x4725bf[_0x26bb23('0x1b33')]?_0x4725bf['rows'][0x0]:null;return _0x2fe762[_0x26bb23('0x1778')](_0x368b86?_0x368b86[_0x26bb23('0x5ed')]:null);})['catch'](function(_0x5d3a52){var _0x53d951=_0xa75f24;_0x1845a6[_0x53d951('0x2092')]({'title':_0x5d3a52[_0x53d951('0x209')]?_0x53d951('0x22d')+_0x5d3a52['status']+_0x53d951('0xa99')+_0x5d3a52['statusText']:_0x53d951('0x1e36'),'msg':_0x5d3a52[_0x53d951('0x11c2')]?JSON[_0x53d951('0x25e')](_0x5d3a52[_0x53d951('0x11c2')]):_0x5d3a52[_0x53d951('0x174f')]()});});}function _0xfa86a1(_0x1cf560,_0x3211c6){var _0x229fcd=_0x11b64d,_0x450dbc=_0x86640f()[_0x229fcd('0x1d2e')](_0xdeb1fa[_0x229fcd('0x1dee')][_0x229fcd('0x1b33')],{'id':_0x3211c6});_0x516f05[_0x229fcd('0x853')]({'controller':'CreateOrEditCompanyDialogController','controllerAs':'vm','templateUrl':_0x4058f7,'parent':angular[_0x229fcd('0x1676')](_0x425bd0[_0x229fcd('0x2452')]),'targetEvent':_0x1cf560,'clickOutsideToClose':!![],'locals':{'companies':[],'license':null,'setting':null,'crudPermissions':_0x450dbc[_0x229fcd('0xba')]===![]?{'readOnly':!![],'canEdit':![],'canDelete':![]}:_0xeed302()},'resolve':{'company':[_0x229fcd('0x354'),function _0x532632(_0x128d2f){var _0x1a9702=_0x229fcd;return _0x128d2f[_0x1a9702('0x8ac')](_0x1a9702('0x1bfd'),{'id':_0x3211c6});}]}});}function _0x2dd4a7(_0x39afeb){var _0x2e0308=_0x11b64d;_0x516f05['show']({'controller':_0x2e0308('0x18e5'),'controllerAs':'vm','templateUrl':_0x5e562c,'parent':angular[_0x2e0308('0x1676')](_0x425bd0[_0x2e0308('0x2452')]),'targetEvent':_0x39afeb,'clickOutsideToClose':!![],'resolve':{'lists':[_0x2e0308('0x354'),'Auth',function _0x504828(_0xa1533e,_0x17bdcf){var _0x5ac6a7=_0x2e0308;return _0x17bdcf[_0x5ac6a7('0x21de')](_0x5ac6a7('0x1bd8'))?_0xa1533e[_0x5ac6a7('0x8ac')]('cmList@get',{'fields':_0x5ac6a7('0x1aa8')}):_0xa1533e['resolve'](_0x5ac6a7('0x52f'),{'id':_0xdeb1fa[_0x5ac6a7('0x123f')]['userProfileId'],'section':_0x5ac6a7('0xd8d'),'fields':'id,name'});}]},'locals':{'contacts':_0x5081f8[_0x2e0308('0x1b33')],'contact':_0x172562}});}function _0x2d8e3d(){var _0x8d4c56=_0x11b64d;_0xf25fce['cmContact'][_0x8d4c56('0x5ef')]({'id':_0xdeb1fa['contact']['id']},_0xdeb1fa['contact'])[_0x8d4c56('0x1376')][_0x8d4c56('0x21ad')](function(){var _0x49efab=_0x8d4c56;_0x1845a6[_0x49efab('0xdb1')]({'title':_0x49efab('0x1f98'),'msg':_0xdeb1fa[_0x49efab('0x150c')]['name']?_0xdeb1fa[_0x49efab('0x150c')][_0x49efab('0x19fe')]+_0x49efab('0xa8d'):''});})[_0x8d4c56('0x21ad')](function(){var _0xf31584=_0x8d4c56;return _0xf25fce[_0xf31584('0x25dc')][_0xf31584('0x87a')]({'id':_0xdeb1fa[_0xf31584('0x150c')]['id'],'ids':_0xdeb1fa['Tags']})['$promise'];})[_0x8d4c56('0x1c1d')](function(_0x299ab2){var _0x502ae7=_0x8d4c56;_0x1845a6[_0x502ae7('0x2092')]({'title':_0x299ab2[_0x502ae7('0x209')]?_0x502ae7('0x22d')+_0x299ab2[_0x502ae7('0x209')]+'\x20-\x20'+_0x299ab2[_0x502ae7('0x1808')]:_0x502ae7('0x16e7'),'msg':_0x299ab2[_0x502ae7('0x11c2')]?JSON[_0x502ae7('0x25e')](_0x299ab2[_0x502ae7('0x11c2')]):_0x299ab2['toString']()});});}function _0x37b423(_0x2edb21){return _0x2edb21===null?undefined:new Date(_0x2edb21);}function _0x40e81d(){var _0x1c915a=_0x11b64d;_0xc338bd['go'](_0x1c915a('0xc19'),{},{'reload':!![],'notify':!![]});}}const _0x5aad71=_0xaf8bf7;_0x543570['$inject']=['$cookies','$mdDialog','$interval','$q',_0x3877e3('0x2313'),_0x3877e3('0x1972'),_0x3877e3('0x1dee'),'toasty',_0x3877e3('0xccd'),_0x3877e3('0x25d8'),_0x3877e3('0x95a'),_0x3877e3('0x18a9'),_0x3877e3('0x181e'),'license'];function _0x543570(_0xe7b1df,_0x3a3281,_0x36b332,_0x3f9b37,_0x2b8ff7,_0x8fa4f9,_0xd75347,_0x4f9019,_0x35fd69,_0x31bbae,_0x183122,_0x1d48fd,_0x818f69,_0x4c377b){var _0x4a1a5e=_0x3877e3,_0x35374c=this;_0x35374c[_0x4a1a5e('0xf42')]=![],_0x35374c[_0x4a1a5e('0xefb')]=!![],_0x35374c[_0x4a1a5e('0x2ff')]=_0x4c377b,_0x35374c[_0x4a1a5e('0x2780')]=0x0,_0x35374c[_0x4a1a5e('0x8c7')]={'finish':![],'rows':0x0,'affectedRows':0x0,'failedRows':0x0,'duplicatedRows':0x0,'errors':[]},_0x35374c[_0x4a1a5e('0x1c89')]=[{'key':_0x4a1a5e('0x992'),'required':!![]},{'key':_0x4a1a5e('0x6d'),'required':![]},{'key':_0x4a1a5e('0x159e'),'required':!![]},{'key':'mobile','required':![]},{'key':_0x4a1a5e('0x2822'),'required':![]},{'key':_0x4a1a5e('0x20bc'),'required':![]},{'key':_0x4a1a5e('0xc0e'),'required':![]},{'key':_0x4a1a5e('0xacd'),'required':![]},{'key':_0x4a1a5e('0x263c'),'required':![]},{'key':_0x4a1a5e('0x2227'),'required':![]},{'key':_0x4a1a5e('0x93f'),'required':![]}],_0x35374c['motionBullFields']=[{'key':_0x4a1a5e('0x1dc6'),'required':![]},{'key':_0x4a1a5e('0x141a'),'required':![]},{'key':_0x4a1a5e('0xbe5'),'required':![]}],_0x35374c[_0x4a1a5e('0x22a4')]={},_0x35374c[_0x4a1a5e('0x1cf0')]=[],_0x35374c['lists']=_0x8fa4f9||{'rows':[],'count':0x0},_0x35374c[_0x4a1a5e('0x1dee')]=_0xd75347||{'rows':[],'count':0x0},_0x35374c[_0x4a1a5e('0xbbd')]={'rows':[],'count':0x0},_0x35374c['fields']=_0x818f69||[],_0x35374c[_0x4a1a5e('0x167')]=_0x140e61,_0x35374c[_0x4a1a5e('0x10ba')]=_0x6f5fdf,_0x35374c['uploadCsv']=_0x1d719b,_0x35374c[_0x4a1a5e('0x2812')]=_0x1a460f,_0x35374c[_0x4a1a5e('0x1d1e')]=_0x2a7630,_0x35374c[_0x4a1a5e('0x25cb')]=_0x322ba7;var _0x2e3362=_0x1088bc()()[_0x4a1a5e('0x1514')]();_0x31bbae['on'](_0x4a1a5e('0x1a01')+_0x2e3362,_0x2bcb5a);function _0x6f5fdf(){var _0x264bfd=_0x4a1a5e;return _0x35fd69[_0x264bfd('0x11e0')]['getCustomFields']({'id':_0x35374c[_0x264bfd('0x815')]})[_0x264bfd('0x1376')][_0x264bfd('0x21ad')](function(_0xa498e7){_0x35374c['customFields']=_0xa498e7;})[_0x264bfd('0x1c1d')](function(_0x5cdab5){var _0x344a5a=_0x264bfd;console[_0x344a5a('0x2092')](_0x5cdab5);});}function _0x1d719b(){var _0x22cf3c=_0x4a1a5e;_0x35374c[_0x22cf3c('0xf42')]=_0x1088bc()(),_0x35fd69[_0x22cf3c('0x25dc')][_0x22cf3c('0xee')]({'id':_0x1d48fd[_0x22cf3c('0x25a4')],'binding':_0x35374c[_0x22cf3c('0x22a4')],'ListId':_0x35374c['ListId'],'CompanyId':_0x35374c['CompanyId'],'duplicates':_0x35374c['duplicates'],'socket_timestamp':_0x2e3362})[_0x22cf3c('0x1376')][_0x22cf3c('0x21ad')](function(_0x1bf72d){var _0x30a5e7=_0x22cf3c;_0x35374c['stopping']=![],_0x1bf72d&&_0x1bf72d['pid']&&(_0x35374c[_0x30a5e7('0x2780')]=_0x1bf72d[_0x30a5e7('0x2780')]);})[_0x22cf3c('0x1c1d')](function(){var _0x43a831=_0x22cf3c;_0x35374c[_0x43a831('0xf42')]=![],_0x4f9019[_0x43a831('0x2092')]({'title':_0x43a831('0x1b21'),'msg':'Please\x20retry\x20with\x20a\x20new\x20file'});});}function _0x2bcb5a(_0x3d2f4d){_0x2b8ff7(function(){var _0x479c9=a0_0x2e7f;_0x35374c[_0x479c9('0x8c7')]['rows']=_0x3d2f4d['rows'];if(_0x3d2f4d['errors'])for(var _0x505237=0x0;_0x505237<_0x3d2f4d['errors'][_0x479c9('0x577')];_0x505237++){_0x35374c[_0x479c9('0x8c7')]['errors'][_0x479c9('0x206c')](_0x3d2f4d[_0x479c9('0x1a69')][_0x505237]);}if(_0x3d2f4d[_0x479c9('0x1b41')]){_0x35374c['result']['finish']=!![],_0x35374c[_0x479c9('0x8c7')][_0x479c9('0x120a')]=_0x3d2f4d[_0x479c9('0x120a')],_0x35374c[_0x479c9('0x8c7')][_0x479c9('0xfb2')]=_0x35374c[_0x479c9('0x8c7')]['errors']['length'];var _0x31552a=_0x35374c['result'][_0x479c9('0x1b33')]-_0x35374c[_0x479c9('0x8c7')][_0x479c9('0x120a')]-_0x35374c[_0x479c9('0x8c7')]['errors'][_0x479c9('0x577')];_0x31552a&&_0x31552a>0x0&&(_0x35374c[_0x479c9('0x1135')][_0x479c9('0x577')]?_0x35374c[_0x479c9('0x8c7')][_0x479c9('0x2210')]=_0x31552a:_0x35374c[_0x479c9('0x8c7')][_0x479c9('0xfb2')]+=_0x31552a),_0x35374c['result']['elapsed']=_0x1088bc()()[_0x479c9('0x2503')](_0x35374c['processing'],'seconds');}});}function _0x1a460f(){var _0x23e362=_0x4a1a5e,_0x58677b=_0x818f69;return _0x58677b[_0x23e362('0x206c')]('contact_import_error'),_0x58677b;}function _0x2a7630(){var _0x100127=_0x4a1a5e,_0x2593cb=[];for(var _0x4adbbe=0x0;_0x4adbbe<_0x35374c['result'][_0x100127('0x1a69')][_0x100127('0x577')];_0x4adbbe+=0x1){var _0x163487=_0x35374c['result'][_0x100127('0x1a69')][_0x4adbbe][_0x100127('0x14c0')];_0x163487[_0x100127('0xe2b')]=_0x35374c[_0x100127('0x8c7')][_0x100127('0x1a69')][_0x4adbbe][_0x100127('0x1224')],_0x2593cb[_0x100127('0x206c')](_0x163487);}return _0x2593cb;}function _0x322ba7(){var _0x23c89d=_0x4a1a5e;_0x35374c['stopping']=!![];if(_0x35374c['pid'])return _0x35fd69['system']['killProcess']({'pid':_0x35374c['pid']})['$promise'][_0x23c89d('0x21ad')](function(){var _0x4c3e00=_0x23c89d;_0x4f9019['success']({'title':_0x4c3e00('0x25aa'),'msg':_0x4c3e00('0x71')});})[_0x23c89d('0x1c1d')](function(){var _0x214e12=_0x23c89d;_0x4f9019[_0x214e12('0x2092')]({'title':_0x214e12('0x1529'),'msg':_0x214e12('0x28e')});});}_0x183122['$on'](_0x4a1a5e('0x1210'),function(){var _0x1e2408=_0x4a1a5e;_0x31bbae[_0x1e2408('0x16cc')](_0x1e2408('0x1a01')+_0x2e3362);});function _0x140e61(){var _0x1aee1f=_0x4a1a5e;_0x31bbae[_0x1aee1f('0x16cc')]('contact:import:'+_0x2e3362),_0x3a3281['hide']();}}const _0x34721d=_0x543570;_0xbbd5a0[_0x3877e3('0x1a81')]=['$mdDialog','$scope',_0x3877e3('0x1908'),_0x3877e3('0x150c'),_0x3877e3('0x2814'),_0x3877e3('0x1972'),_0x3877e3('0xccd')];function _0xbbd5a0(_0x274c07,_0x103558,_0x4bdd0c,_0x7b4b70,_0x40cc7c,_0x3f0a3e,_0x2b81f9){var _0x52ad79=_0x3877e3,_0x12e3c2=this;_0x12e3c2[_0x52ad79('0x1a69')]=[],_0x12e3c2['title']='CONTACTMANAGER.MERGE_CONTACT',_0x12e3c2[_0x52ad79('0x150c')]=angular[_0x52ad79('0xd75')](_0x7b4b70),_0x12e3c2['lists']=_0x3f0a3e||[],_0x12e3c2['change']=function(){var _0x265b80=_0x52ad79;_0x12e3c2[_0x265b80('0x17b')]?_0x2b81f9[_0x265b80('0x25dc')]['get']({'fields':_0x265b80('0x13c7'),'filter':_0x12e3c2[_0x265b80('0x17b')],'ListId':_0x7b4b70['ListId']})['$promise'][_0x265b80('0x21ad')](function(_0x1ac0a6){var _0x59e0d1=_0x265b80;_0x12e3c2[_0x59e0d1('0x2814')]=_0x1ac0a6['rows'];})[_0x265b80('0x1c1d')](function(_0x5bcbb3){console['error'](_0x5bcbb3);}):_0x12e3c2['contacts']=[];},_0x12e3c2[_0x52ad79('0x1f2e')]=_0x38981e,_0x12e3c2['closeDialog']=_0x5d8155;function _0x38981e(_0x17e96a,_0x66da69,_0x1f77e0){var _0x7146b2=_0x52ad79,_0x54f2af=_0x274c07[_0x7146b2('0xa33')]({'skipHide':!![]})[_0x7146b2('0x4b4')]('Would\x20you\x20like\x20to\x20merge\x20your\x20contacs?')['textContent'](_0x7146b2('0x1eee')+_0x1f77e0['id']+_0x7146b2('0x127f')+_0x66da69['id']+'.')[_0x7146b2('0x1e6d')](_0x17e96a)['ok']('Ok')[_0x7146b2('0x3b5')](_0x7146b2('0x1f40'));_0x274c07[_0x7146b2('0x853')](_0x54f2af)[_0x7146b2('0x21ad')](function(){var _0x42a70e=_0x7146b2;return _0x2b81f9[_0x42a70e('0x25dc')][_0x42a70e('0xd0e')]({'to':_0x1f77e0['id'],'from':_0x66da69['id']})['$promise'];})[_0x7146b2('0x21ad')](function(_0x5ae434){var _0x2ca261=_0x7146b2;_0x274c07[_0x2ca261('0x1c24')]({'new':_0x5ae434,'to':_0x1f77e0,'from':_0x66da69}),_0x86640f()[_0x2ca261('0x16a2')](_0x40cc7c,{'id':_0x1f77e0['id']}),_0x86640f()[_0x2ca261('0x16a2')](_0x40cc7c,{'id':_0x66da69['id']}),_0x40cc7c[_0x2ca261('0xd0c')](_0x5ae434);})[_0x7146b2('0x21ad')](function(){var _0x399476=_0x7146b2;_0x4bdd0c['success']({'title':_0x399476('0x262c')});})[_0x7146b2('0x1c1d')](function(_0x3c5406){var _0x54ae89=_0x7146b2;_0x3c5406&&_0x3c5406[_0x54ae89('0x209')]&&_0x4bdd0c[_0x54ae89('0x2092')]({'title':_0x3c5406['status']?_0x54ae89('0x22d')+_0x3c5406[_0x54ae89('0x209')]+_0x54ae89('0xa99')+_0x3c5406[_0x54ae89('0x1808')]:'SYSTEM:MERGE_CONTACT','msg':_0x3c5406['data']?JSON[_0x54ae89('0x25e')](_0x3c5406[_0x54ae89('0x11c2')]):_0x3c5406[_0x54ae89('0x174f')]()});});}function _0x5d8155(){var _0x413f4e=_0x52ad79;_0x274c07[_0x413f4e('0x1c24')]();}}const _0x550817=_0xbbd5a0,_0x5d6820=_0x398308['p']+_0x3877e3('0x4d9'),_0x2032a5=_0x398308['p']+_0x3877e3('0x218a');_0x11e5ef[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c')];function _0x11e5ef(_0x1758d0){var _0x11d51c=_0x3877e3;_0x1758d0[_0x11d51c('0x27e')](_0x11d51c('0xc19'),{'url':_0x11d51c('0x2364'),'views':{'content@app':{'templateUrl':_0x5d6820,'controller':_0x11d51c('0x119f')}},'resolve':{'contacts':[_0x11d51c('0x354'),_0x11d51c('0x15bc'),'$stateParams',function _0x29e787(_0x16240f,_0x200eba,_0x2e4f9e){var _0x2871eb=_0x11d51c;return _0x200eba[_0x2871eb('0x21de')]('admin')?_0x16240f['resolve']('cmContact@get',_0x86640f()['merge']({'includeAll':!![],'sort':'-updatedAt','limit':0xa,'offset':0x0},_0x2e4f9e)):_0x16240f[_0x2871eb('0x8ac')](_0x2871eb('0x52f'),_0x86640f()['merge']({'id':_0x200eba['getCurrentUser']()['userProfileId'],'section':_0x2871eb('0x780'),'includeAll':!![],'sort':_0x2871eb('0x33'),'limit':0xa,'offset':0x0},_0x2e4f9e));}],'lists':['apiResolver',_0x11d51c('0x15bc'),function _0xe2a39(_0x15d289,_0xc0d749){var _0x56723e=_0x11d51c;return _0xc0d749[_0x56723e('0x21de')](_0x56723e('0x1bd8'))?_0x15d289[_0x56723e('0x8ac')]('cmList@get',{'fields':_0x56723e('0x1aa8'),'sort':'name','nolimit':!![]}):_0x15d289[_0x56723e('0x8ac')](_0x56723e('0x52f'),{'id':_0xc0d749['getCurrentUser']()[_0x56723e('0x1618')],'section':'Lists','fields':'id,name','sort':_0x56723e('0x33'),'nolimit':!![]});}],'listsMap':[_0x11d51c('0x1972'),function _0x545fb1(_0x4a2a54){var _0x3e8d21=_0x11d51c,_0x4b7cd8={};for(var _0x50ddcd=0x0;_0x50ddcd<_0x4a2a54[_0x3e8d21('0x1b33')][_0x3e8d21('0x577')];_0x50ddcd++){_0x4b7cd8[_0x4a2a54[_0x3e8d21('0x1b33')][_0x50ddcd]['id']]=_0x4a2a54[_0x3e8d21('0x1b33')][_0x50ddcd][_0x3e8d21('0x19fe')];}return _0x4b7cd8;}],'companies':[_0x11d51c('0x354'),_0x11d51c('0x15bc'),function _0x1ec772(_0x24550f,_0x25ab11){var _0x4ce2b5=_0x11d51c;return _0x25ab11[_0x4ce2b5('0x21de')](_0x4ce2b5('0x1bd8'))?_0x24550f[_0x4ce2b5('0x8ac')](_0x4ce2b5('0x1bfd'),{'fields':_0x4ce2b5('0x1aa8'),'sort':_0x4ce2b5('0x19fe'),'nolimit':!![]}):_0x24550f[_0x4ce2b5('0x8ac')]('userProfile@getResources',{'id':_0x25ab11[_0x4ce2b5('0x15ed')]()[_0x4ce2b5('0x1618')],'section':_0x4ce2b5('0x1d4d'),'fields':_0x4ce2b5('0x1aa8'),'sort':_0x4ce2b5('0x19fe'),'nolimit':!![]});}],'companiesMap':[_0x11d51c('0x1dee'),function _0x4bcf97(_0x12dd13){var _0x242670=_0x11d51c,_0x468b04={};for(var _0x2ffcd1=0x0;_0x2ffcd1<_0x12dd13[_0x242670('0x1b33')]['length'];_0x2ffcd1++){_0x468b04[_0x12dd13[_0x242670('0x1b33')][_0x2ffcd1]['id']]=_0x12dd13['rows'][_0x2ffcd1][_0x242670('0x19fe')];}return _0x468b04;}],'tags':['apiResolver',_0x11d51c('0x15bc'),function _0xf0270c(_0x152b50,_0x23ee97){var _0x28cf71=_0x11d51c;return _0x23ee97[_0x28cf71('0x21de')](_0x28cf71('0x1bd8'))?_0x152b50[_0x28cf71('0x8ac')]('tag@get',{'fields':_0x28cf71('0x1aa8'),'sort':_0x28cf71('0x19fe'),'nolimit':!![]}):_0x152b50['resolve'](_0x28cf71('0x52f'),{'id':_0x23ee97[_0x28cf71('0x15ed')]()[_0x28cf71('0x1618')],'section':_0x28cf71('0x557'),'fields':_0x28cf71('0x1aa8'),'sort':_0x28cf71('0x19fe'),'nolimit':!![]});}],'userProfile':[_0x11d51c('0x354'),'Auth',function _0x1c33ff(_0x445b17,_0x4c5a6b){var _0x2bba41=_0x11d51c;return _0x445b17[_0x2bba41('0x8ac')]('userProfile@get',{'fields':_0x2bba41('0x1a00'),'id':_0x4c5a6b[_0x2bba41('0x15ed')]()[_0x2bba41('0x1618')]});}],'userProfileSection':['apiResolver',_0x11d51c('0x15bc'),function _0x3455d8(_0x5aade7,_0x2537ca){var _0x34f215=_0x11d51c;return _0x5aade7[_0x34f215('0x8ac')](_0x34f215('0x222f'),{'fields':_0x34f215('0x1852'),'userProfileId':_0x2537ca[_0x34f215('0x15ed')]()[_0x34f215('0x1618')],'sectionId':0x12f});}]},'authenticate':!![],'permissionId':0x12f,'bodyClass':_0x11d51c('0x1461')})[_0x11d51c('0x27e')](_0x11d51c('0x212f'),{'url':'/:id?tab','params':{'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2032a5,'controller':'ContactController\x20as\x20vm'}},'resolve':{'contact':[_0x11d51c('0x354'),_0x11d51c('0x114e'),function _0x5ed8e4(_0x287356,_0xffcb1b){var _0x3a130f=_0x11d51c;return _0x287356[_0x3a130f('0x8ac')](_0x3a130f('0x259d'),{'id':_0xffcb1b['id']})['then'](function(_0x4a9b9c){var _0x1c002f=_0x3a130f;return _0x4a9b9c[_0x1c002f('0x20bc')]&&(_0x4a9b9c['dateOfBirth']=new Date(_0x4a9b9c['dateOfBirth'])),_0x4a9b9c;})['catch'](function(_0x5e550c){console['error'](_0x5e550c);});}],'hoppers':[_0x11d51c('0x354'),_0x11d51c('0x114e'),function _0x12b480(_0x19509f,_0x11fd82){var _0x311f5f=_0x11d51c;return _0x19509f[_0x311f5f('0x8ac')](_0x311f5f('0x22dd'),{'id':_0x11fd82['id'],'fields':_0x311f5f('0x1647'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'finals':[_0x11d51c('0x354'),_0x11d51c('0x114e'),function _0x3a55ec(_0xed3cd5,_0x3e72fc){var _0x152068=_0x11d51c;return _0xed3cd5[_0x152068('0x8ac')]('cmContact@getHopperFinals',{'id':_0x3e72fc['id'],'fields':_0x152068('0x259a'),'sort':_0x152068('0x33'),'limit':0xa,'offset':0x0});}],'histories':['apiResolver',_0x11d51c('0x114e'),function _0x384026(_0x548318,_0x4277f1){var _0x5e5409=_0x11d51c;return _0x548318[_0x5e5409('0x8ac')]('cmContact@getHopperHistories',{'id':_0x4277f1['id'],'fields':_0x5e5409('0x1053'),'sort':_0x5e5409('0x33'),'limit':0xa,'offset':0x0});}],'jscriptySessions':['apiResolver',_0x11d51c('0x114e'),function _0x146704(_0x3e3a1d,_0x400669){var _0x526a44=_0x11d51c;return _0x3e3a1d['resolve'](_0x526a44('0x3cc'),{'id':_0x400669['id'],'fields':_0x526a44('0x1b5'),'sort':_0x526a44('0x1655'),'limit':0xa,'offset':0x0});}],'companies':['apiResolver',_0x11d51c('0x15bc'),function _0x1363b9(_0x495593,_0x3b6bdf){var _0xadf4d0=_0x11d51c;return _0x3b6bdf[_0xadf4d0('0x21de')](_0xadf4d0('0x1bd8'))?_0x495593[_0xadf4d0('0x8ac')](_0xadf4d0('0x1bfd')):_0x495593[_0xadf4d0('0x8ac')](_0xadf4d0('0x52f'),{'id':_0x3b6bdf[_0xadf4d0('0x15ed')]()[_0xadf4d0('0x1618')],'section':_0xadf4d0('0x1d4d')});}],'lists':['apiResolver','Auth',function _0xd6800b(_0x277386,_0x5beebb){var _0x1f4d07=_0x11d51c;return _0x5beebb[_0x1f4d07('0x21de')](_0x1f4d07('0x1bd8'))?_0x277386[_0x1f4d07('0x8ac')](_0x1f4d07('0x265c'),{'fields':_0x1f4d07('0x1aa8'),'sort':_0x1f4d07('0x33'),'nolimit':!![]}):_0x277386['resolve'](_0x1f4d07('0x52f'),{'id':_0x5beebb['getCurrentUser']()[_0x1f4d07('0x1618')],'section':_0x1f4d07('0xd8d'),'fields':_0x1f4d07('0x1aa8'),'sort':_0x1f4d07('0x33'),'nolimit':!![]});}],'customFields':[_0x11d51c('0x354'),_0x11d51c('0x150c'),function _0x327e66(_0x27a00a,_0x2a23bc){var _0x5d4b5c=_0x11d51c;return _0x2a23bc[_0x5d4b5c('0x815')]?_0x27a00a['resolve']('cmList@getCustomFields',{'id':_0x2a23bc[_0x5d4b5c('0x815')]}):null;}],'tags':[_0x11d51c('0x354'),'Auth',function _0x563e15(_0x3258dc,_0x1002d4){var _0x50d1d6=_0x11d51c;return _0x1002d4['hasRole']('admin')?_0x3258dc[_0x50d1d6('0x8ac')](_0x50d1d6('0x995')):_0x3258dc[_0x50d1d6('0x8ac')](_0x50d1d6('0x52f'),{'id':_0x1002d4['getCurrentUser']()['userProfileId'],'section':_0x50d1d6('0x557')});}],'userProfileSection':['apiResolver',_0x11d51c('0x15bc'),function _0x142bb5(_0x19a61c,_0x214b71){var _0x4f3d5e=_0x11d51c;return _0x19a61c[_0x4f3d5e('0x8ac')]('userProfileSection@get',{'fields':_0x4f3d5e('0x1852'),'userProfileId':_0x214b71[_0x4f3d5e('0x15ed')]()['userProfileId'],'sectionId':0x12f});}]},'authenticate':!![],'permissionId':0x12f,'bodyClass':'contactmanager'});}angular['module'](_0x3877e3('0xc19'),[])[_0x3877e3('0x13')](_0x11e5ef)[_0x3877e3('0x1d5a')](_0x3877e3('0x282c'),_0x27337b)[_0x3877e3('0x1d5a')]('CreateOrEditContactDialogController',_0x38d379)['controller']('DuplicateContactDialogController',_0x1707c6)[_0x3877e3('0x1d5a')](_0x3877e3('0x2775'),_0x227dc4)[_0x3877e3('0x1d5a')](_0x3877e3('0x1e54'),_0x5aad71)[_0x3877e3('0x1d5a')](_0x3877e3('0x9df'),_0x34721d)[_0x3877e3('0x1d5a')](_0x3877e3('0x261d'),_0x550817);const _0x463649=_0x398308['p']+_0x3877e3('0xa01');_0x4959a8[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),'$timeout','$translate',_0x3877e3('0x1dee'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),'license',_0x3877e3('0x21e')];function _0x4959a8(_0xdd09d3,_0x5ad11e,_0x47567c,_0x4cc4c0,_0x1c5176,_0x5517c1,_0x30cd23,_0x18b9a9,_0x3d6f97,_0x109cd6,_0x159d32,_0x56795d,_0x2dbd9b,_0x41fcb2,_0x4b0326,_0x8f1b01,_0x30b33d){var _0x2224ca=_0x3877e3,_0x5f2212=this;_0x5f2212[_0x2224ca('0x2ff')]=_0x8f1b01,_0x5f2212[_0x2224ca('0x21e')]=_0x30b33d,_0x5f2212[_0x2224ca('0x123f')]=_0x4b0326[_0x2224ca('0x15ed')](),_0x5f2212[_0x2224ca('0x1dee')]=_0x3d6f97||{'count':0x0,'rows':[]},_0x5f2212[_0x2224ca('0x758')]=_0x109cd6,_0x5f2212['userProfileSection']=_0x159d32&&_0x159d32[_0x2224ca('0x205f')]==0x1?_0x159d32[_0x2224ca('0x1b33')][0x0]:null,_0x5f2212[_0x2224ca('0x5ed')]=_0x4b0326[_0x2224ca('0x1778')](_0x5f2212[_0x2224ca('0xab4')]?_0x5f2212[_0x2224ca('0xab4')][_0x2224ca('0x5ed')]:null),_0x5f2212[_0x2224ca('0x1897')]='companies',_0x5f2212['listOrder']='',_0x5f2212['listOrderAsc']=null,_0x5f2212[_0x2224ca('0x155e')]=[],_0x5f2212[_0x2224ca('0x77')]={'fields':_0x2224ca('0x61a'),'sort':_0x2224ca('0x33'),'limit':0xa,'page':0x1},_0x5f2212[_0x2224ca('0x1c88')]=_0x54164b,_0x5f2212['gotocontactsgoto']=_0x113311,_0x5f2212[_0x2224ca('0x2593')]=_0x14a88b,_0x5f2212[_0x2224ca('0xdb1')]=_0x3631dd,_0x5f2212[_0x2224ca('0x25c6')]=_0x5994b0,_0x5f2212[_0x2224ca('0xa9e')]=_0x1c918f,_0x5f2212[_0x2224ca('0x3eb')]=_0x410582,_0x5f2212['exportSelectedCompanies']=_0x67e7fc,_0x5f2212[_0x2224ca('0x346')]=_0x1a99f1,_0x5f2212[_0x2224ca('0x207e')]=_0x40bd13,_0x5f2212[_0x2224ca('0xa54')]=_0x5cfd52;function _0x54164b(_0x2d5560){var _0x51931c=_0x2224ca;_0x47567c['go'](_0x51931c('0x271b'),{'id':_0x2d5560['id'],'company':_0x2d5560,'crudPermissions':_0x5f2212['crudPermissions']});}function _0x113311(_0x1d35be){var _0x5e3be0=_0x2224ca;if(_0x4b0326[_0x5e3be0('0x21de')]('admin'))_0x47567c['go']('app.contactmanager.contacts',{'CompanyId':_0x1d35be['id']});else return _0x56795d['userProfileSection']['get']({'userProfileId':_0x4b0326[_0x5e3be0('0x15ed')]()[_0x5e3be0('0x1618')],'sectionId':0x12f})['$promise'][_0x5e3be0('0x21ad')](function(_0x32af81){var _0x170a65=_0x5e3be0,_0x4826dc=_0x32af81&&_0x32af81[_0x170a65('0x1b33')]?_0x32af81[_0x170a65('0x1b33')][0x0]:null;_0x4826dc&&_0x4826dc[_0x170a65('0x2296')]?_0x47567c['go'](_0x170a65('0xc19'),{'CompanyId':_0x1d35be['id']}):_0x41fcb2[_0x170a65('0x231c')]({'title':_0x18b9a9[_0x170a65('0x183e')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x18b9a9[_0x170a65('0x183e')](_0x170a65('0x764'))});})[_0x5e3be0('0x1c1d')](function(_0x350238){var _0x318c0e=_0x5e3be0;_0x41fcb2['error']({'title':_0x350238['status']?_0x318c0e('0x22d')+_0x350238['status']+_0x318c0e('0xa99')+_0x350238['statusText']:'USERPROFILE:GET_SECTION','msg':_0x350238['status']?JSON[_0x318c0e('0x25e')](_0x350238['data']):_0x350238[_0x318c0e('0x174f')]()});});}function _0x14a88b(_0x52f2c8,_0x4004aa){var _0x46ff57=_0x2224ca,_0x4cccc1=_0x1c5176[_0x46ff57('0xa33')]()[_0x46ff57('0x4b4')](_0x46ff57('0x25b6')+_0x86640f()[_0x46ff57('0x2159')](_0x46ff57('0x779'))+'?')[_0x46ff57('0x276b')](''+(_0x52f2c8[_0x46ff57('0x19fe')]||_0x46ff57('0x779'))+_0x46ff57('0x2135')+_0x46ff57('0x25e0'))[_0x46ff57('0x7a7')](_0x46ff57('0x4a9'))[_0x46ff57('0x1e6d')](_0x4004aa)['ok']('OK')['cancel']('CANCEL');_0x1c5176['show'](_0x4cccc1)['then'](function(){_0x410582(_0x52f2c8);},function(){console['log']('CANCEL');});}var _0x16b906=!![],_0x272f31=0x1;_0xdd09d3[_0x2224ca('0x10e8')](_0x2224ca('0x1948'),function(_0x15979d,_0x194d51){var _0x1de0c1=_0x2224ca;_0x16b906?_0x30cd23(function(){_0x16b906=![];}):(!_0x194d51&&(_0x272f31=_0x5f2212['query'][_0x1de0c1('0x2376')]),_0x15979d!==_0x194d51&&(_0x5f2212[_0x1de0c1('0x77')][_0x1de0c1('0x2376')]=0x1),!_0x15979d&&(_0x5f2212[_0x1de0c1('0x77')][_0x1de0c1('0x2376')]=_0x272f31),_0x5f2212['getCompanies']());});function _0x3631dd(_0x2aa11a){_0x5f2212['companies']=_0x2aa11a||{'count':0x0,'rows':[]};}function _0x5994b0(){var _0x472e70=_0x2224ca;_0x5f2212[_0x472e70('0x77')]['offset']=(_0x5f2212['query'][_0x472e70('0x2376')]-0x1)*_0x5f2212[_0x472e70('0x77')][_0x472e70('0x1f4a')],_0x4b0326[_0x472e70('0x21de')](_0x472e70('0x1bd8'))?_0x5f2212[_0x472e70('0x71b')]=_0x56795d[_0x472e70('0x2725')][_0x472e70('0x595')](_0x5f2212[_0x472e70('0x77')],_0x3631dd)[_0x472e70('0x1376')]:(_0x5f2212[_0x472e70('0x77')]['id']=_0x5f2212[_0x472e70('0x758')]['id'],_0x5f2212[_0x472e70('0x77')][_0x472e70('0x26ad')]='Companies',_0x5f2212[_0x472e70('0x71b')]=_0x56795d[_0x472e70('0x758')][_0x472e70('0x321')](_0x5f2212[_0x472e70('0x77')],_0x3631dd)[_0x472e70('0x1376')]);}function _0x1c918f(_0x347d89,_0x8c222){var _0x889552=_0x2224ca;_0x1c5176['show']({'controller':_0x889552('0x2721'),'controllerAs':'vm','templateUrl':_0x463649,'parent':angular[_0x889552('0x1676')](_0x5517c1[_0x889552('0x2452')]),'targetEvent':_0x347d89,'clickOutsideToClose':!![],'locals':{'company':_0x8c222,'companies':_0x5f2212[_0x889552('0x1dee')][_0x889552('0x1b33')],'license':_0x5f2212[_0x889552('0x2ff')],'setting':_0x5f2212[_0x889552('0x21e')],'crudPermissions':_0x5f2212[_0x889552('0x5ed')]}});}function _0x410582(_0x5c8693){var _0x58899a=_0x2224ca;_0x56795d['cmCompany'][_0x58899a('0x1164')]({'id':_0x5c8693['id']})['$promise']['then'](function(){var _0x300894=_0x58899a;_0x86640f()[_0x300894('0x16a2')](_0x5f2212[_0x300894('0x1dee')][_0x300894('0x1b33')],{'id':_0x5c8693['id']}),_0x5f2212[_0x300894('0x1dee')][_0x300894('0x205f')]-=0x1,!_0x5f2212[_0x300894('0x1dee')][_0x300894('0x1b33')][_0x300894('0x577')]&&_0x5f2212[_0x300894('0x25c6')](),_0x41fcb2['success']({'title':_0x86640f()[_0x300894('0x2159')](_0x300894('0x214f'))+'\x20deleted!','msg':_0x5c8693[_0x300894('0x19fe')]?_0x5c8693[_0x300894('0x19fe')]+_0x300894('0xb4a'):''});})[_0x58899a('0x1c1d')](function(_0x12ac91){var _0x2a9da2=_0x58899a;if(_0x12ac91[_0x2a9da2('0x11c2')]&&_0x12ac91['data'][_0x2a9da2('0x1a69')]&&_0x12ac91['data'][_0x2a9da2('0x1a69')][_0x2a9da2('0x577')]){_0x5f2212['errors']=_0x12ac91[_0x2a9da2('0x11c2')][_0x2a9da2('0x1a69')]||[{'message':_0x12ac91['toString'](),'type':'SYSTEM:DELETEcmCompany'}];for(var _0x4a6af2=0x0;_0x4a6af2<_0x12ac91[_0x2a9da2('0x11c2')][_0x2a9da2('0x1a69')][_0x2a9da2('0x577')];_0x4a6af2++){_0x41fcb2[_0x2a9da2('0x2092')]({'title':_0x12ac91['data'][_0x2a9da2('0x1a69')][_0x4a6af2][_0x2a9da2('0x7fa')],'msg':_0x12ac91[_0x2a9da2('0x11c2')][_0x2a9da2('0x1a69')][_0x4a6af2][_0x2a9da2('0x1224')]});}}else _0x41fcb2['error']({'title':_0x12ac91[_0x2a9da2('0x209')]?_0x2a9da2('0x22d')+_0x12ac91['status']+_0x2a9da2('0xa99')+_0x12ac91[_0x2a9da2('0x1808')]:'SYSTEM:DELETEcmCompany','msg':_0x12ac91[_0x2a9da2('0x11c2')]?JSON[_0x2a9da2('0x25e')](_0x12ac91[_0x2a9da2('0x11c2')][_0x2a9da2('0x1224')]):_0x12ac91['message']||_0x12ac91[_0x2a9da2('0x174f')]()});});}function _0x67e7fc(){var _0x16f65c=_0x2224ca,_0x18d564=angular[_0x16f65c('0xd75')](_0x5f2212[_0x16f65c('0x155e')]);return _0x5f2212['selectedCompanies']=[],_0x18d564;}function _0x1a99f1(_0x4ccf4a){var _0x144b08=_0x2224ca,_0x224182=_0x1c5176['confirm']()[_0x144b08('0x4b4')](_0x144b08('0x211b'))[_0x144b08('0x276b')](_0x144b08('0x622')+_0x5f2212['selectedCompanies']['length']+_0x144b08('0xd74')+_0x144b08('0x25e0'))[_0x144b08('0x7a7')]('delete\x20Companys')[_0x144b08('0x1e6d')](_0x4ccf4a)['ok']('OK')[_0x144b08('0x3b5')](_0x144b08('0x284b'));_0x1c5176[_0x144b08('0x853')](_0x224182)[_0x144b08('0x21ad')](function(){var _0x47be7e=_0x144b08;_0x5f2212[_0x47be7e('0x155e')][_0x47be7e('0x1a52')](function(_0x3b16cf){_0x410582(_0x3b16cf);}),_0x5f2212[_0x47be7e('0x155e')]=[];});}function _0x40bd13(){var _0x176637=_0x2224ca;_0x5f2212[_0x176637('0x155e')]=[];}function _0x5cfd52(){var _0x1aadc3=_0x2224ca;_0x5f2212['selectedCompanies']=_0x5f2212[_0x1aadc3('0x1dee')][_0x1aadc3('0x1b33')];}}const _0x5aa68b=_0x4959a8;_0x47aea1[_0x3877e3('0x1a81')]=['$scope','$state',_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x1dee'),'company',_0x3877e3('0xccd'),'Auth','license',_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x47aea1(_0x3f7694,_0x20a3a7,_0x4cf0a8,_0x531caf,_0x1d9149,_0x5c9b0a,_0x313134,_0x4a66e5,_0x3f252c,_0x4b9e7e,_0x1db88b,_0x2287db,_0x250ef,_0x3f55ca){var _0x13e49=_0x3877e3,_0x2f954f=this;_0x2f954f['currentUser']=_0x1db88b['getCurrentUser'](),_0x2f954f['errors']=[],_0x2f954f['setting']=_0x250ef,_0x2f954f[_0x13e49('0x2ff')]=_0x2287db,_0x2f954f[_0x13e49('0x5ed')]=_0x3f55ca,_0x2f954f[_0x13e49('0x126a')]={},_0x2f954f[_0x13e49('0x1432')]=_0x2f954f[_0x13e49('0x21e')]&&_0x2f954f[_0x13e49('0x21e')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2f954f[_0x13e49('0x4b4')]='CONTACTMANAGER.EDIT_COMPANY',_0x2f954f[_0x13e49('0x779')]=angular[_0x13e49('0xd75')](_0x3f252c),_0x2f954f[_0x13e49('0x1dee')]=_0x4a66e5,_0x2f954f[_0x13e49('0x1ba6')]=![];!_0x2f954f[_0x13e49('0x779')]&&(_0x2f954f[_0x13e49('0x779')]={},_0x2f954f[_0x13e49('0x4b4')]=_0x13e49('0x25c5'),_0x2f954f[_0x13e49('0x1ba6')]=!![]);_0x2f954f[_0x13e49('0x1142')]=_0x509d5d,_0x2f954f[_0x13e49('0x206')]=_0x478baf,_0x2f954f['deleteCompany']=_0x112e96,_0x2f954f[_0x13e49('0x279')]=_0x5a414f,_0x2f954f[_0x13e49('0x167')]=_0x174c64;function _0x509d5d(){var _0x237014=_0x13e49;_0x2f954f['errors']=[],_0x4b9e7e[_0x237014('0x2725')]['save'](_0x2f954f[_0x237014('0x779')])[_0x237014('0x1376')][_0x237014('0x21ad')](function(_0x222add){var _0x121285=_0x237014;_0x2f954f[_0x121285('0x1dee')][_0x121285('0xd0c')](_0x222add[_0x121285('0x3bc')]()),_0x313134[_0x121285('0xdb1')]({'title':_0x121285('0x135f'),'msg':_0x2f954f[_0x121285('0x779')]['name']?_0x2f954f['company'][_0x121285('0x19fe')]+_0x121285('0x1694'):''}),_0x174c64(_0x222add);})[_0x237014('0x1c1d')](function(_0x53fa97){var _0x4b7c50=_0x237014;if(_0x53fa97[_0x4b7c50('0x11c2')]&&_0x53fa97[_0x4b7c50('0x11c2')]['errors']&&_0x53fa97[_0x4b7c50('0x11c2')][_0x4b7c50('0x1a69')]['length']){_0x2f954f['errors']=_0x53fa97[_0x4b7c50('0x11c2')][_0x4b7c50('0x1a69')]||[{'message':_0x53fa97[_0x4b7c50('0x174f')](),'type':_0x4b7c50('0x155')}];for(var _0x949101=0x0;_0x949101<_0x53fa97[_0x4b7c50('0x11c2')][_0x4b7c50('0x1a69')]['length'];_0x949101+=0x1){_0x313134['error']({'title':_0x53fa97[_0x4b7c50('0x11c2')][_0x4b7c50('0x1a69')][_0x949101][_0x4b7c50('0x7fa')],'msg':_0x53fa97[_0x4b7c50('0x11c2')]['errors'][_0x949101][_0x4b7c50('0x1224')]});}}else _0x313134['error']({'title':_0x53fa97['status']?_0x4b7c50('0x22d')+_0x53fa97['status']+'\x20-\x20'+_0x53fa97[_0x4b7c50('0x1808')]:'api.cmCompany.save','msg':_0x53fa97[_0x4b7c50('0x11c2')]?JSON[_0x4b7c50('0x25e')](_0x53fa97['data'][_0x4b7c50('0x1224')]):_0x53fa97[_0x4b7c50('0x174f')]()});});}function _0x478baf(){var _0x1b6419=_0x13e49;_0x2f954f['errors']=[],_0x4b9e7e[_0x1b6419('0x2725')][_0x1b6419('0x5ef')]({'id':_0x2f954f[_0x1b6419('0x779')]['id']},_0x2f954f[_0x1b6419('0x779')])[_0x1b6419('0x1376')]['then'](function(_0x1646b8){var _0x3afe8e=_0x1b6419,_0x17505b=_0x86640f()[_0x3afe8e('0x1d2e')](_0x2f954f['companies'],{'id':_0x1646b8['id']});_0x17505b&&_0x86640f()['merge'](_0x17505b,_0x86640f()[_0x3afe8e('0xc50')](_0x1646b8[_0x3afe8e('0x3bc')](),_0x86640f()[_0x3afe8e('0x223b')](_0x17505b))),_0x313134['success']({'title':'Company\x20properly\x20saved!','msg':_0x2f954f[_0x3afe8e('0x779')][_0x3afe8e('0x19fe')]?_0x2f954f[_0x3afe8e('0x779')][_0x3afe8e('0x19fe')]+_0x3afe8e('0x2249'):''}),_0x174c64(_0x1646b8);})[_0x1b6419('0x1c1d')](function(_0x3673d9){var _0x18496b=_0x1b6419;if(_0x3673d9[_0x18496b('0x11c2')]&&_0x3673d9[_0x18496b('0x11c2')][_0x18496b('0x1a69')]&&_0x3673d9['data'][_0x18496b('0x1a69')][_0x18496b('0x577')]){_0x2f954f[_0x18496b('0x1a69')]=_0x3673d9[_0x18496b('0x11c2')]['errors']||[{'message':_0x3673d9['toString'](),'type':_0x18496b('0x22d2')}];for(var _0x1a4dc0=0x0;_0x1a4dc0<_0x3673d9['data'][_0x18496b('0x1a69')]['length'];_0x1a4dc0++){_0x313134[_0x18496b('0x2092')]({'title':_0x3673d9['data'][_0x18496b('0x1a69')][_0x1a4dc0][_0x18496b('0x7fa')],'msg':_0x3673d9[_0x18496b('0x11c2')][_0x18496b('0x1a69')][_0x1a4dc0][_0x18496b('0x1224')]});}}else _0x313134[_0x18496b('0x2092')]({'title':_0x3673d9[_0x18496b('0x209')]?_0x18496b('0x22d')+_0x3673d9[_0x18496b('0x209')]+_0x18496b('0xa99')+_0x3673d9[_0x18496b('0x1808')]:'api.cmCompany.update','msg':_0x3673d9[_0x18496b('0x11c2')]?JSON[_0x18496b('0x25e')](_0x3673d9[_0x18496b('0x11c2')][_0x18496b('0x1224')]):_0x3673d9[_0x18496b('0x174f')]()});});}function _0x112e96(_0x4c4204){var _0x10c170=_0x13e49;_0x2f954f[_0x10c170('0x1a69')]=[];var _0x18d71f=_0x531caf[_0x10c170('0xa33')]()[_0x10c170('0x4b4')](_0x10c170('0x196b'))[_0x10c170('0x13fb')]('The\x20company\x20will\x20be\x20deleted.')[_0x10c170('0x7a7')](_0x10c170('0x80f'))['ok'](_0x10c170('0xbfd'))[_0x10c170('0x3b5')](_0x10c170('0x1f40'))[_0x10c170('0x1e6d')](_0x4c4204);_0x531caf[_0x10c170('0x853')](_0x18d71f)['then'](function(){var _0x180c12=_0x10c170;_0x4b9e7e['cmCompany'][_0x180c12('0x1164')]({'id':_0x2f954f['company']['id']})[_0x180c12('0x1376')][_0x180c12('0x21ad')](function(){var _0x3743a5=_0x180c12;_0x86640f()[_0x3743a5('0x16a2')](_0x2f954f['companies'],{'id':_0x2f954f['company']['id']}),_0x313134[_0x3743a5('0xdb1')]({'title':_0x3743a5('0x1055'),'msg':(_0x2f954f[_0x3743a5('0x779')]['name']||_0x3743a5('0x779'))+'\x20has\x20been\x20deleted!'}),_0x174c64(_0x2f954f['company']);})[_0x180c12('0x1c1d')](function(_0x2d4718){var _0x1081eb=_0x180c12;if(_0x2d4718[_0x1081eb('0x11c2')]&&_0x2d4718[_0x1081eb('0x11c2')][_0x1081eb('0x1a69')]&&_0x2d4718[_0x1081eb('0x11c2')][_0x1081eb('0x1a69')]['length']){_0x2f954f['errors']=_0x2d4718[_0x1081eb('0x11c2')][_0x1081eb('0x1a69')]||[{'message':_0x2d4718['toString'](),'type':_0x1081eb('0x170f')}];for(var _0x584f78=0x0;_0x584f78<_0x2d4718[_0x1081eb('0x11c2')][_0x1081eb('0x1a69')][_0x1081eb('0x577')];_0x584f78++){_0x313134[_0x1081eb('0x2092')]({'title':_0x2d4718[_0x1081eb('0x11c2')][_0x1081eb('0x1a69')][_0x584f78][_0x1081eb('0x7fa')],'msg':_0x2d4718[_0x1081eb('0x11c2')][_0x1081eb('0x1a69')][_0x584f78]['message']});}}else _0x313134['error']({'title':_0x2d4718[_0x1081eb('0x209')]?_0x1081eb('0x22d')+_0x2d4718[_0x1081eb('0x209')]+_0x1081eb('0xa99')+_0x2d4718[_0x1081eb('0x1808')]:_0x1081eb('0x170f'),'msg':_0x2d4718[_0x1081eb('0x11c2')]?JSON[_0x1081eb('0x25e')](_0x2d4718[_0x1081eb('0x11c2')][_0x1081eb('0x1224')]):_0x2d4718[_0x1081eb('0x1224')]||_0x2d4718[_0x1081eb('0x174f')]()});});},function(){});}function _0x5a414f(_0x19e287){return _0x19e287===null?undefined:new Date(_0x19e287);}function _0x174c64(_0x5818fe){var _0x4a88bb=_0x13e49;_0x531caf[_0x4a88bb('0x1c24')](_0x5818fe);}}const _0x2ba778=_0x47aea1;_0x5a24c7[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),'$mdDialog','$document',_0x3877e3('0x13c1'),'license','setting','api',_0x3877e3('0x1908'),_0x3877e3('0x15bc'),'company',_0x3877e3('0xab4')];function _0x5a24c7(_0x25da28,_0x5f47a6,_0x532aec,_0x11c4d8,_0x3170fc,_0x2b9cfa,_0x36b59c,_0xd2bb62,_0x362b8f,_0x4f3f61,_0x22306e,_0x4f14c9){var _0x53f2b1=_0x3877e3,_0x50f493=this;_0x50f493['currentUser']=_0x4f3f61['getCurrentUser'](),_0x50f493[_0x53f2b1('0x2ff')]=_0x2b9cfa,_0x50f493[_0x53f2b1('0x21e')]=_0x36b59c,_0x50f493[_0x53f2b1('0x1432')]=_0x50f493['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x50f493[_0x53f2b1('0x626')]=_0x5f47a6[_0x53f2b1('0x1162')]()+_0x53f2b1('0x22a9')+_0x5f47a6['host'](),_0x50f493[_0x53f2b1('0x779')]=_0x22306e||_0x25da28[_0x53f2b1('0x171b')]['company']||{},_0x50f493[_0x53f2b1('0xab4')]=_0x4f14c9&&_0x4f14c9['count']==0x1?_0x4f14c9[_0x53f2b1('0x1b33')][0x0]:null,_0x50f493['crudPermissions']=_0x4f3f61[_0x53f2b1('0x1778')](_0x50f493[_0x53f2b1('0xab4')]?_0x50f493[_0x53f2b1('0xab4')]['crudPermissions']:null),_0x50f493[_0x53f2b1('0x126a')]={},_0x50f493['selectedTab']=_0x25da28[_0x53f2b1('0x171b')][_0x53f2b1('0x12e1')]||0x0,_0x50f493['gotogoto']=_0x3f1205,_0x50f493['alert']=_0x362b8f[_0x53f2b1('0x231c')],_0x50f493['gotoCompanies']=_0x54a9b0,_0x50f493[_0x53f2b1('0x206')]=_0x493cac;function _0x3f1205(_0x5ba88d){var _0xffd5c2=_0x53f2b1;if(_0x4f3f61[_0xffd5c2('0x21de')](_0xffd5c2('0x1bd8')))_0x25da28['go'](_0xffd5c2('0xc19'),{'CompanyId':_0x5ba88d['id']});else return _0xd2bb62[_0xffd5c2('0xab4')][_0xffd5c2('0x595')]({'userProfileId':_0x4f3f61[_0xffd5c2('0x15ed')]()[_0xffd5c2('0x1618')],'sectionId':0x12f})['$promise'][_0xffd5c2('0x21ad')](function(_0x2cf835){var _0x594957=_0xffd5c2,_0x44fa01=_0x2cf835&&_0x2cf835['rows']?_0x2cf835[_0x594957('0x1b33')][0x0]:null;_0x44fa01&&_0x44fa01[_0x594957('0x2296')]?_0x25da28['go'](_0x594957('0xc19'),{'CompanyId':_0x5ba88d['id']}):_0x362b8f['info']({'title':_0x3170fc[_0x594957('0x183e')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x3170fc[_0x594957('0x183e')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0xffd5c2('0x1c1d')](function(_0x1ce8a7){var _0x3e4650=_0xffd5c2;_0x362b8f[_0x3e4650('0x2092')]({'title':_0x1ce8a7[_0x3e4650('0x209')]?_0x3e4650('0x22d')+_0x1ce8a7['status']+_0x3e4650('0xa99')+_0x1ce8a7['statusText']:_0x3e4650('0xb8'),'msg':_0x1ce8a7[_0x3e4650('0x209')]?JSON[_0x3e4650('0x25e')](_0x1ce8a7[_0x3e4650('0x11c2')]):_0x1ce8a7[_0x3e4650('0x174f')]()});});}function _0x54a9b0(){var _0x117964=_0x53f2b1;_0x25da28['go'](_0x117964('0x1c9e'),{},{'reload':_0x117964('0x1c9e')});}function _0x493cac(){var _0x3bf4fc=_0x53f2b1;_0xd2bb62[_0x3bf4fc('0x2725')][_0x3bf4fc('0x5ef')]({'id':_0x50f493[_0x3bf4fc('0x779')]['id']},_0x50f493[_0x3bf4fc('0x779')])['$promise']['then'](function(){var _0x3f9d10=_0x3bf4fc;_0x362b8f['success']({'title':_0x3f9d10('0x563'),'msg':_0x50f493[_0x3f9d10('0x779')][_0x3f9d10('0x19fe')]?_0x50f493[_0x3f9d10('0x779')]['name']+'\x20has\x20been\x20updated!':''});})[_0x3bf4fc('0x1c1d')](function(_0x3f2496){var _0x4d71f1=_0x3bf4fc;_0x362b8f[_0x4d71f1('0x2092')]({'title':_0x3f2496[_0x4d71f1('0x209')]?_0x4d71f1('0x22d')+_0x3f2496[_0x4d71f1('0x209')]+'\x20-\x20'+_0x3f2496['statusText']:_0x4d71f1('0x21ff'),'msg':_0x3f2496['data']?JSON['stringify'](_0x3f2496['data']):_0x3f2496['toString']()});});}}const _0x577972=_0x5a24c7;_0x2097b5[_0x3877e3('0x1a81')]=['$scope','$state',_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),'toasty','globalCustomFields',_0x3877e3('0x4bd'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting',_0x3877e3('0x5ed')];function _0x2097b5(_0x535b5b,_0x5308cc,_0x3a3972,_0x50ab7e,_0x34f880,_0x21b1da,_0x4f0fa6,_0x598b36,_0x445265,_0x3873ba,_0x3c17f9,_0x4eb5a6,_0x55ab58,_0xb62052){var _0x1eb0a3=_0x3877e3,_0x4a84c8=this;_0x4a84c8[_0x1eb0a3('0x123f')]=_0x3c17f9[_0x1eb0a3('0x15ed')](),_0x4a84c8['errors']=[],_0x4a84c8[_0x1eb0a3('0x21e')]=_0x55ab58,_0x4a84c8[_0x1eb0a3('0x2ff')]=_0x4eb5a6,_0x4a84c8[_0x1eb0a3('0x5ed')]=_0xb62052,_0x4a84c8[_0x1eb0a3('0x126a')]={},_0x4a84c8[_0x1eb0a3('0x1432')]=_0x4a84c8[_0x1eb0a3('0x21e')]&&_0x4a84c8['setting'][_0x1eb0a3('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4a84c8[_0x1eb0a3('0x4b4')]=_0x1eb0a3('0x2447'),_0x4a84c8[_0x1eb0a3('0x1e7b')]={'animation':0x320,'sort':!![],'onSort':function _0x3be7b3(){var _0x2b0bef=_0x1eb0a3;_0x535b5b[_0x2b0bef('0x53c')][_0x2b0bef('0x2190')]=![];}},_0x4a84c8[_0x1eb0a3('0x4bd')]=_0x445265,_0x4a84c8[_0x1eb0a3('0x6b6')]=_0x598b36,_0x4a84c8[_0x1eb0a3('0x7a1')]=![];!_0x4a84c8['globalCustomField']&&(_0x4a84c8[_0x1eb0a3('0x4bd')]={'type':_0x1eb0a3('0xc1e'),'actionType':_0x1eb0a3('0x8ed')},_0x4a84c8[_0x1eb0a3('0x4b4')]='CONTACTMANAGER.NEW_GLOBALCUSTOMFIELD',_0x4a84c8['newGlobalCustomField']=!![]);_0x535b5b[_0x1eb0a3('0x10e8')](_0x1eb0a3('0xf00'),function(_0xdb6f1e,_0x402241){var _0x3dfc62=_0x1eb0a3;if(_0xdb6f1e!==_0x402241)switch(_0xdb6f1e){case _0x3dfc62('0xc1e'):_0x4a84c8[_0x3dfc62('0x4bd')]['values']='';break;case _0x3dfc62('0x2844'):_0x4a84c8[_0x3dfc62('0x4bd')]['values']=[];break;default:}}),_0x4a84c8[_0x1eb0a3('0x153f')]=_0x30676e,_0x4a84c8[_0x1eb0a3('0x31f')]=_0x4d1ac5,_0x4a84c8[_0x1eb0a3('0x8dd')]=_0x2c3f95,_0x4a84c8[_0x1eb0a3('0x279')]=_0x55132b,_0x4a84c8[_0x1eb0a3('0x62')]=_0x1aed6b,_0x4a84c8[_0x1eb0a3('0x27e0')]=_0x1246de,_0x4a84c8[_0x1eb0a3('0x1e7e')]=_0x156a00,_0x4a84c8[_0x1eb0a3('0x167')]=_0x255bc4;function _0x1aed6b(_0x10e301){var _0x4ef47d=_0x1eb0a3;_0x10e301[_0x4ef47d('0x206c')]({'value':_0x4ef47d('0x1eb8')}),_0x535b5b['globalCustomFieldForm'][_0x4ef47d('0x2190')]=![];}function _0x1246de(_0x45b042,_0x4a485b){var _0x32286a=_0x1eb0a3;_0x45b042['splice'](_0x4a485b,0x1),_0x535b5b[_0x32286a('0x53c')][_0x32286a('0x2190')]=![];}function _0x156a00(_0x44fc2f){var _0x55a729=_0x1eb0a3,_0x356e49=_0x44fc2f[_0x55a729('0x577')];for(var _0x282b8f=0x0;_0x282b8f<_0x356e49;_0x282b8f++){_0x44fc2f[_0x55a729('0xafe')](0x0,0x1);}_0x535b5b[_0x55a729('0x53c')][_0x55a729('0x2190')]=![];}function _0x30676e(){var _0x5a75fb=_0x1eb0a3;_0x4a84c8['errors']=[],_0x3873ba[_0x5a75fb('0x1851')][_0x5a75fb('0x186f')](_0x4a84c8[_0x5a75fb('0x4bd')])[_0x5a75fb('0x1376')][_0x5a75fb('0x21ad')](function(_0x39f0c8){var _0x2de18d=_0x5a75fb;_0x4a84c8[_0x2de18d('0x6b6')][_0x2de18d('0xd0c')](_0x39f0c8[_0x2de18d('0x3bc')]()),_0x4f0fa6[_0x2de18d('0xdb1')]({'title':_0x2de18d('0x1ded'),'msg':_0x4a84c8[_0x2de18d('0x4bd')][_0x2de18d('0x19fe')]?_0x4a84c8[_0x2de18d('0x4bd')]['name']+_0x2de18d('0x1694'):''}),_0x255bc4(_0x39f0c8);})[_0x5a75fb('0x1c1d')](function(_0x211a83){var _0xc2c708=_0x5a75fb;if(_0x211a83[_0xc2c708('0x11c2')]&&_0x211a83['data'][_0xc2c708('0x1a69')]&&_0x211a83[_0xc2c708('0x11c2')][_0xc2c708('0x1a69')][_0xc2c708('0x577')]){_0x4a84c8[_0xc2c708('0x1a69')]=_0x211a83[_0xc2c708('0x11c2')][_0xc2c708('0x1a69')]||[{'message':_0x211a83[_0xc2c708('0x174f')](),'type':_0xc2c708('0x246b')}];for(var _0x47d807=0x0;_0x47d807<_0x211a83['data'][_0xc2c708('0x1a69')][_0xc2c708('0x577')];_0x47d807+=0x1){_0x4f0fa6[_0xc2c708('0x2092')]({'title':_0x211a83[_0xc2c708('0x11c2')][_0xc2c708('0x1a69')][_0x47d807][_0xc2c708('0x7fa')],'msg':_0x211a83[_0xc2c708('0x11c2')][_0xc2c708('0x1a69')][_0x47d807]['message']});}}else _0x4f0fa6[_0xc2c708('0x2092')]({'title':_0x211a83[_0xc2c708('0x209')]?_0xc2c708('0x22d')+_0x211a83[_0xc2c708('0x209')]+'\x20-\x20'+_0x211a83[_0xc2c708('0x1808')]:_0xc2c708('0x246b'),'msg':_0x211a83[_0xc2c708('0x11c2')]?JSON[_0xc2c708('0x25e')](_0x211a83['data'][_0xc2c708('0x1224')]):_0x211a83[_0xc2c708('0x174f')]()});});}function _0x4d1ac5(){var _0x3a6c59=_0x1eb0a3;_0x4a84c8[_0x3a6c59('0x1a69')]=[],_0x3873ba[_0x3a6c59('0x1851')][_0x3a6c59('0x5ef')]({'id':_0x4a84c8['globalCustomField']['id']},_0x4a84c8[_0x3a6c59('0x4bd')])[_0x3a6c59('0x1376')]['then'](function(_0x4d2ad0){var _0x47bbf9=_0x3a6c59,_0x491896=_0x86640f()[_0x47bbf9('0x1d2e')](_0x4a84c8['globalCustomFields'],{'id':_0x4d2ad0['id']});_0x491896&&_0x86640f()[_0x47bbf9('0xd0e')](_0x491896,_0x86640f()[_0x47bbf9('0xc50')](_0x4d2ad0['toJSON'](),_0x86640f()[_0x47bbf9('0x223b')](_0x491896))),_0x4f0fa6['success']({'title':_0x47bbf9('0x1129'),'msg':_0x4a84c8['globalCustomField']['name']?_0x4a84c8[_0x47bbf9('0x4bd')][_0x47bbf9('0x19fe')]+_0x47bbf9('0x2249'):''}),_0x255bc4(_0x4d2ad0);})[_0x3a6c59('0x1c1d')](function(_0x19ea01){var _0x58520c=_0x3a6c59;if(_0x19ea01[_0x58520c('0x11c2')]&&_0x19ea01[_0x58520c('0x11c2')]['errors']&&_0x19ea01[_0x58520c('0x11c2')][_0x58520c('0x1a69')][_0x58520c('0x577')]){_0x4a84c8[_0x58520c('0x1a69')]=_0x19ea01[_0x58520c('0x11c2')][_0x58520c('0x1a69')]||[{'message':_0x19ea01[_0x58520c('0x174f')](),'type':_0x58520c('0x1216')}];for(var _0x113e7d=0x0;_0x113e7d<_0x19ea01['data'][_0x58520c('0x1a69')]['length'];_0x113e7d++){_0x4f0fa6[_0x58520c('0x2092')]({'title':_0x19ea01['data'][_0x58520c('0x1a69')][_0x113e7d][_0x58520c('0x7fa')],'msg':_0x19ea01[_0x58520c('0x11c2')][_0x58520c('0x1a69')][_0x113e7d]['message']});}}else _0x4f0fa6[_0x58520c('0x2092')]({'title':_0x19ea01['status']?_0x58520c('0x22d')+_0x19ea01[_0x58520c('0x209')]+_0x58520c('0xa99')+_0x19ea01[_0x58520c('0x1808')]:_0x58520c('0x1216'),'msg':_0x19ea01['data']?JSON[_0x58520c('0x25e')](_0x19ea01[_0x58520c('0x11c2')][_0x58520c('0x1224')]):_0x19ea01[_0x58520c('0x174f')]()});});}function _0x2c3f95(_0x5659c3){var _0x1732f8=_0x1eb0a3;_0x4a84c8[_0x1732f8('0x1a69')]=[];var _0x2fdb6a=_0x50ab7e[_0x1732f8('0xa33')]()[_0x1732f8('0x4b4')](_0x1732f8('0x196b'))[_0x1732f8('0x13fb')]('The\x20globalCustomField\x20will\x20be\x20deleted.')[_0x1732f8('0x7a7')](_0x1732f8('0x18b2'))['ok'](_0x1732f8('0xbfd'))['cancel'](_0x1732f8('0x1f40'))[_0x1732f8('0x1e6d')](_0x5659c3);_0x50ab7e[_0x1732f8('0x853')](_0x2fdb6a)[_0x1732f8('0x21ad')](function(){var _0x1aa971=_0x1732f8;_0x3873ba[_0x1aa971('0x1851')][_0x1aa971('0x1164')]({'id':_0x4a84c8[_0x1aa971('0x4bd')]['id']})[_0x1aa971('0x1376')][_0x1aa971('0x21ad')](function(){var _0x34b88e=_0x1aa971;_0x86640f()[_0x34b88e('0x16a2')](_0x4a84c8[_0x34b88e('0x6b6')],{'id':_0x4a84c8[_0x34b88e('0x4bd')]['id']}),_0x4f0fa6[_0x34b88e('0xdb1')]({'title':'GlobalCustomField\x20properly\x20deleted!','msg':(_0x4a84c8[_0x34b88e('0x4bd')]['name']||_0x34b88e('0x4bd'))+_0x34b88e('0xb4a')}),_0x255bc4(_0x4a84c8[_0x34b88e('0x4bd')]);})[_0x1aa971('0x1c1d')](function(_0x4009cb){var _0x49644c=_0x1aa971;if(_0x4009cb[_0x49644c('0x11c2')]&&_0x4009cb[_0x49644c('0x11c2')][_0x49644c('0x1a69')]&&_0x4009cb[_0x49644c('0x11c2')][_0x49644c('0x1a69')]['length']){_0x4a84c8[_0x49644c('0x1a69')]=_0x4009cb[_0x49644c('0x11c2')][_0x49644c('0x1a69')]||[{'message':_0x4009cb[_0x49644c('0x174f')](),'type':_0x49644c('0x22e3')}];for(var _0x1d0c17=0x0;_0x1d0c17<_0x4009cb[_0x49644c('0x11c2')][_0x49644c('0x1a69')][_0x49644c('0x577')];_0x1d0c17++){_0x4f0fa6[_0x49644c('0x2092')]({'title':_0x4009cb[_0x49644c('0x11c2')]['errors'][_0x1d0c17]['type'],'msg':_0x4009cb[_0x49644c('0x11c2')][_0x49644c('0x1a69')][_0x1d0c17]['message']});}}else _0x4f0fa6['error']({'title':_0x4009cb[_0x49644c('0x209')]?_0x49644c('0x22d')+_0x4009cb[_0x49644c('0x209')]+_0x49644c('0xa99')+_0x4009cb[_0x49644c('0x1808')]:_0x49644c('0x22e3'),'msg':_0x4009cb[_0x49644c('0x11c2')]?JSON[_0x49644c('0x25e')](_0x4009cb[_0x49644c('0x11c2')]['message']):_0x4009cb[_0x49644c('0x1224')]||_0x4009cb[_0x49644c('0x174f')]()});});},function(){});}function _0x55132b(_0x43d72a){return _0x43d72a===null?undefined:new Date(_0x43d72a);}function _0x255bc4(_0x5e755e){var _0x1c54f7=_0x1eb0a3;_0x50ab7e[_0x1c54f7('0x1c24')](_0x5e755e);}}const _0x15c5d2=_0x2097b5,_0x40960e=_0x398308['p']+_0x3877e3('0x2605');_0x1af2d8[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),'$translate',_0x3877e3('0x6b6'),_0x3877e3('0x758'),'userProfileSection',_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x1af2d8(_0x2a6fd6,_0x579df3,_0x423f31,_0x115969,_0x40aa7f,_0x218bdc,_0x54188e,_0x4fae45,_0xcb8c3a,_0x460d9c,_0x3f8481,_0x21c9c1,_0x500090,_0x39c1df,_0x364ec2,_0x3c7254,_0x295947){var _0x5be16e=_0x3877e3,_0x583308=this;_0x583308[_0x5be16e('0x2ff')]=_0x3c7254,_0x583308[_0x5be16e('0x21e')]=_0x295947,_0x583308[_0x5be16e('0x123f')]=_0x364ec2['getCurrentUser'](),_0x583308[_0x5be16e('0x6b6')]=_0xcb8c3a||{'count':0x0,'rows':[]},_0x583308['userProfile']=_0x460d9c,_0x583308['userProfileSection']=_0x3f8481&&_0x3f8481[_0x5be16e('0x205f')]==0x1?_0x3f8481[_0x5be16e('0x1b33')][0x0]:null,_0x583308[_0x5be16e('0x5ed')]=_0x364ec2[_0x5be16e('0x1778')](_0x583308[_0x5be16e('0xab4')]?_0x583308['userProfileSection'][_0x5be16e('0x5ed')]:null),_0x583308['table']='globalCustomFields',_0x583308['listOrder']='',_0x583308[_0x5be16e('0x18cf')]=null,_0x583308['selectedGlobalCustomFields']=[],_0x583308['query']={'fields':_0x5be16e('0x17d8'),'sort':_0x5be16e('0x33'),'ListId':'null','limit':0xa,'page':0x1},_0x583308[_0x5be16e('0x179c')]=_0x86640f()[_0x5be16e('0xcde')]([{'option':'Text','value':'\x27text\x27'},{'option':_0x5be16e('0x51f'),'value':_0x5be16e('0x22f9')},{'option':_0x5be16e('0x11d7'),'value':_0x5be16e('0x273e')},{'option':_0x5be16e('0x231a'),'value':_0x5be16e('0x1197')},{'option':_0x5be16e('0xb46'),'value':_0x5be16e('0x1d5d')}],function(_0x353059){var _0x44f8f4=_0x5be16e;return _0x86640f()['replace'](_0x353059[_0x44f8f4('0x2228')],new RegExp('\x27','g'),'');}),_0x583308['arrayactionType']=_0x86640f()[_0x5be16e('0xcde')]([{'option':_0x5be16e('0x1d8e'),'value':_0x5be16e('0x7bb')}],function(_0x2b1bef){var _0x43b602=_0x5be16e;return _0x86640f()['replace'](_0x2b1bef[_0x43b602('0x2228')],new RegExp('\x27','g'),'');}),_0x583308[_0x5be16e('0x1a97')]=_0x24fa01,_0x583308['deleteconfirm']=_0x13d615,_0x583308[_0x5be16e('0xdb1')]=_0x50c3c7,_0x583308[_0x5be16e('0x15c8')]=_0x4f95fa,_0x583308['createOrEditGlobalCustomField']=_0x393167,_0x583308[_0x5be16e('0x8dd')]=_0x42ace1,_0x583308['exportSelectedGlobalCustomFields']=_0x8ce81d,_0x583308[_0x5be16e('0x16f6')]=_0x3de387,_0x583308[_0x5be16e('0x1b61')]=_0x54db5f,_0x583308['selectAllGlobalCustomFields']=_0x57ffff;function _0x24fa01(_0x5d8756,_0x3c16de){var _0x3b59e5=_0x5be16e;_0x40aa7f[_0x3b59e5('0x853')]({'controller':'CreateOrEditGlobalCustomFieldDialogController','controllerAs':'vm','templateUrl':_0x40960e,'parent':angular[_0x3b59e5('0x1676')](_0x218bdc[_0x3b59e5('0x2452')]),'targetEvent':_0x3c16de,'clickOutsideToClose':!![],'locals':{'globalCustomField':_0x5d8756,'globalCustomFields':_0x583308[_0x3b59e5('0x6b6')][_0x3b59e5('0x1b33')],'license':_0x583308[_0x3b59e5('0x2ff')],'setting':null,'crudPermissions':_0x583308['crudPermissions']}});}function _0x13d615(_0x13d13e,_0x302068){var _0x14055a=_0x5be16e,_0x25a124=_0x40aa7f[_0x14055a('0xa33')]()[_0x14055a('0x4b4')](_0x14055a('0x25b6')+_0x86640f()[_0x14055a('0x2159')]('globalCustomField')+'?')[_0x14055a('0x276b')](''+(_0x13d13e[_0x14055a('0x19fe')]||_0x14055a('0x4bd'))+_0x14055a('0x2135')+_0x14055a('0x25e0'))['ariaLabel'](_0x14055a('0x167c'))[_0x14055a('0x1e6d')](_0x302068)['ok']('OK')[_0x14055a('0x3b5')](_0x14055a('0x284b'));_0x40aa7f[_0x14055a('0x853')](_0x25a124)['then'](function(){_0x42ace1(_0x13d13e);},function(){var _0x8dbabe=_0x14055a;console[_0x8dbabe('0x6fb')](_0x8dbabe('0x284b'));});}var _0xa1ba99=!![],_0x1791d6=0x1;_0x2a6fd6[_0x5be16e('0x10e8')]('vm.query.filter',function(_0x417bc1,_0x2d7766){var _0x19864f=_0x5be16e;_0xa1ba99?_0x54188e(function(){_0xa1ba99=![];}):(!_0x2d7766&&(_0x1791d6=_0x583308[_0x19864f('0x77')][_0x19864f('0x2376')]),_0x417bc1!==_0x2d7766&&(_0x583308[_0x19864f('0x77')][_0x19864f('0x2376')]=0x1),!_0x417bc1&&(_0x583308[_0x19864f('0x77')][_0x19864f('0x2376')]=_0x1791d6),_0x583308[_0x19864f('0x15c8')]());});function _0x50c3c7(_0x3b598f){var _0x55cee7=_0x5be16e;_0x583308[_0x55cee7('0x6b6')]=_0x3b598f||{'count':0x0,'rows':[]};}function _0x4f95fa(){var _0x1e2100=_0x5be16e;_0x583308['query']['offset']=(_0x583308['query'][_0x1e2100('0x2376')]-0x1)*_0x583308[_0x1e2100('0x77')][_0x1e2100('0x1f4a')],_0x364ec2[_0x1e2100('0x21de')](_0x1e2100('0x1bd8'))?_0x583308['promise']=_0x21c9c1['cmCustomField'][_0x1e2100('0x595')](_0x583308[_0x1e2100('0x77')],_0x50c3c7)[_0x1e2100('0x1376')]:(_0x583308[_0x1e2100('0x77')]['id']=_0x583308[_0x1e2100('0x758')]['id'],_0x583308['query']['section']='GlobalCustomFields',_0x583308[_0x1e2100('0x71b')]=_0x21c9c1[_0x1e2100('0x758')]['getResources'](_0x583308[_0x1e2100('0x77')],_0x50c3c7)[_0x1e2100('0x1376')]);}function _0x393167(_0x53e05e,_0x1a0998){var _0x43e42f=_0x5be16e;_0x40aa7f['show']({'controller':_0x43e42f('0xa23'),'controllerAs':'vm','templateUrl':_0x40960e,'parent':angular['element'](_0x218bdc[_0x43e42f('0x2452')]),'targetEvent':_0x53e05e,'clickOutsideToClose':!![],'locals':{'globalCustomField':_0x1a0998,'globalCustomFields':_0x583308[_0x43e42f('0x6b6')][_0x43e42f('0x1b33')],'license':_0x583308[_0x43e42f('0x2ff')],'setting':_0x583308[_0x43e42f('0x21e')],'crudPermissions':_0x583308[_0x43e42f('0x5ed')]}});}function _0x42ace1(_0x3a6b81){var _0x30ed91=_0x5be16e;_0x21c9c1[_0x30ed91('0x1851')][_0x30ed91('0x1164')]({'id':_0x3a6b81['id']})['$promise']['then'](function(){var _0x24818b=_0x30ed91;_0x86640f()[_0x24818b('0x16a2')](_0x583308[_0x24818b('0x6b6')][_0x24818b('0x1b33')],{'id':_0x3a6b81['id']}),_0x583308[_0x24818b('0x6b6')][_0x24818b('0x205f')]-=0x1,!_0x583308['globalCustomFields'][_0x24818b('0x1b33')]['length']&&_0x583308[_0x24818b('0x15c8')](),_0x39c1df[_0x24818b('0xdb1')]({'title':_0x86640f()[_0x24818b('0x2159')]('GlobalCustomField')+_0x24818b('0xe64'),'msg':_0x3a6b81[_0x24818b('0x19fe')]?_0x3a6b81['name']+_0x24818b('0xb4a'):''});})['catch'](function(_0x57bcd2){var _0x7d21b2=_0x30ed91;if(_0x57bcd2[_0x7d21b2('0x11c2')]&&_0x57bcd2[_0x7d21b2('0x11c2')][_0x7d21b2('0x1a69')]&&_0x57bcd2['data'][_0x7d21b2('0x1a69')][_0x7d21b2('0x577')]){_0x583308['errors']=_0x57bcd2[_0x7d21b2('0x11c2')][_0x7d21b2('0x1a69')]||[{'message':_0x57bcd2['toString'](),'type':_0x7d21b2('0xd2d')}];for(var _0x2db1cb=0x0;_0x2db1cb<_0x57bcd2[_0x7d21b2('0x11c2')][_0x7d21b2('0x1a69')][_0x7d21b2('0x577')];_0x2db1cb++){_0x39c1df[_0x7d21b2('0x2092')]({'title':_0x57bcd2[_0x7d21b2('0x11c2')][_0x7d21b2('0x1a69')][_0x2db1cb][_0x7d21b2('0x7fa')],'msg':_0x57bcd2[_0x7d21b2('0x11c2')][_0x7d21b2('0x1a69')][_0x2db1cb][_0x7d21b2('0x1224')]});}}else _0x39c1df['error']({'title':_0x57bcd2['status']?_0x7d21b2('0x22d')+_0x57bcd2[_0x7d21b2('0x209')]+'\x20-\x20'+_0x57bcd2['statusText']:'SYSTEM:DELETEcmCustomField','msg':_0x57bcd2[_0x7d21b2('0x11c2')]?JSON[_0x7d21b2('0x25e')](_0x57bcd2[_0x7d21b2('0x11c2')][_0x7d21b2('0x1224')]):_0x57bcd2[_0x7d21b2('0x1224')]||_0x57bcd2[_0x7d21b2('0x174f')]()});});}function _0x8ce81d(){var _0x108301=_0x5be16e,_0x43dfd8=angular['copy'](_0x583308[_0x108301('0x292')]);return _0x583308[_0x108301('0x292')]=[],_0x43dfd8;}function _0x3de387(_0x516b86){var _0x3d4001=_0x5be16e,_0x39b2fd=_0x40aa7f[_0x3d4001('0xa33')]()[_0x3d4001('0x4b4')](_0x3d4001('0x1bde'))[_0x3d4001('0x276b')](''+_0x583308[_0x3d4001('0x292')][_0x3d4001('0x577')]+_0x3d4001('0xd74')+'\x20will\x20be\x20deleted.')[_0x3d4001('0x7a7')]('delete\x20GlobalCustomFields')[_0x3d4001('0x1e6d')](_0x516b86)['ok']('OK')[_0x3d4001('0x3b5')]('CANCEL');_0x40aa7f[_0x3d4001('0x853')](_0x39b2fd)['then'](function(){var _0x343008=_0x3d4001;_0x583308[_0x343008('0x292')][_0x343008('0x1a52')](function(_0x58397a){_0x42ace1(_0x58397a);}),_0x583308[_0x343008('0x292')]=[];});}function _0x54db5f(){var _0xdb5edd=_0x5be16e;_0x583308[_0xdb5edd('0x292')]=[];}function _0x57ffff(){var _0x234b64=_0x5be16e;_0x583308['selectedGlobalCustomFields']=_0x583308[_0x234b64('0x6b6')][_0x234b64('0x1b33')];}}const _0x45f66c=_0x1af2d8;_0x42c734[_0x3877e3('0x1a81')]=['$scope','$state',_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x1972'),_0x3877e3('0x17fe'),'api','Auth',_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x42c734(_0x99ebef,_0x278a95,_0x54925a,_0x15d780,_0x39bf08,_0x535e26,_0xc0450e,_0x3ccf50,_0x3aab7d,_0xfea798,_0x358848,_0x3cee5d,_0x1802cf,_0x4576a8){var _0x1d4a27=_0x3877e3,_0x2424d7=this;_0x2424d7[_0x1d4a27('0x123f')]=_0x358848['getCurrentUser'](),_0x2424d7['errors']=[],_0x2424d7[_0x1d4a27('0x21e')]=_0x1802cf,_0x2424d7[_0x1d4a27('0x2ff')]=_0x3cee5d,_0x2424d7[_0x1d4a27('0x5ed')]=_0x4576a8,_0x2424d7[_0x1d4a27('0x126a')]={},_0x2424d7[_0x1d4a27('0x1432')]=_0x2424d7[_0x1d4a27('0x21e')]&&_0x2424d7['setting'][_0x1d4a27('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2424d7['title']=_0x1d4a27('0x1266'),_0x2424d7[_0x1d4a27('0x17fe')]=angular[_0x1d4a27('0xd75')](_0x3aab7d),_0x2424d7[_0x1d4a27('0x1972')]=_0x3ccf50,_0x2424d7[_0x1d4a27('0x19b5')]=![];!_0x2424d7['list']&&(_0x2424d7[_0x1d4a27('0x17fe')]={},_0x2424d7[_0x1d4a27('0x4b4')]=_0x1d4a27('0x1c04'),_0x2424d7['newList']=!![]);_0x2424d7[_0x1d4a27('0x2005')]=_0xf42c7d,_0x2424d7['saveList']=_0x2f9566,_0x2424d7['deleteList']=_0x5d49f3,_0x2424d7[_0x1d4a27('0x279')]=_0x3a8f98,_0x2424d7[_0x1d4a27('0x167')]=_0x549ce3;function _0xf42c7d(){var _0x12c2e7=_0x1d4a27;_0x2424d7[_0x12c2e7('0x1a69')]=[],_0xfea798[_0x12c2e7('0x11e0')][_0x12c2e7('0x186f')](_0x2424d7[_0x12c2e7('0x17fe')])[_0x12c2e7('0x1376')][_0x12c2e7('0x21ad')](function(_0x18252e){var _0x117c7c=_0x12c2e7;_0x2424d7[_0x117c7c('0x1972')][_0x117c7c('0xd0c')](_0x18252e[_0x117c7c('0x3bc')]()),_0xc0450e[_0x117c7c('0xdb1')]({'title':_0x117c7c('0x1153'),'msg':_0x2424d7[_0x117c7c('0x17fe')][_0x117c7c('0x19fe')]?_0x2424d7[_0x117c7c('0x17fe')][_0x117c7c('0x19fe')]+_0x117c7c('0x1694'):''}),_0x549ce3(_0x18252e);})['catch'](function(_0x50dc3d){var _0x2bc300=_0x12c2e7;if(_0x50dc3d[_0x2bc300('0x11c2')]&&_0x50dc3d[_0x2bc300('0x11c2')]['errors']&&_0x50dc3d[_0x2bc300('0x11c2')]['errors'][_0x2bc300('0x577')]){_0x2424d7['errors']=_0x50dc3d[_0x2bc300('0x11c2')][_0x2bc300('0x1a69')]||[{'message':_0x50dc3d[_0x2bc300('0x174f')](),'type':_0x2bc300('0x4b0')}];for(var _0x3dc8ba=0x0;_0x3dc8ba<_0x50dc3d[_0x2bc300('0x11c2')][_0x2bc300('0x1a69')][_0x2bc300('0x577')];_0x3dc8ba+=0x1){_0xc0450e['error']({'title':_0x50dc3d[_0x2bc300('0x11c2')][_0x2bc300('0x1a69')][_0x3dc8ba][_0x2bc300('0x7fa')],'msg':_0x50dc3d['data'][_0x2bc300('0x1a69')][_0x3dc8ba]['message']});}}else _0xc0450e[_0x2bc300('0x2092')]({'title':_0x50dc3d['status']?_0x2bc300('0x22d')+_0x50dc3d[_0x2bc300('0x209')]+'\x20-\x20'+_0x50dc3d['statusText']:_0x2bc300('0x4b0'),'msg':_0x50dc3d[_0x2bc300('0x11c2')]?JSON[_0x2bc300('0x25e')](_0x50dc3d[_0x2bc300('0x11c2')][_0x2bc300('0x1224')]):_0x50dc3d[_0x2bc300('0x174f')]()});});}function _0x2f9566(){var _0x3658ec=_0x1d4a27;_0x2424d7[_0x3658ec('0x1a69')]=[],_0xfea798[_0x3658ec('0x11e0')][_0x3658ec('0x5ef')]({'id':_0x2424d7[_0x3658ec('0x17fe')]['id']},_0x2424d7[_0x3658ec('0x17fe')])['$promise'][_0x3658ec('0x21ad')](function(_0xad5bce){var _0x51153e=_0x3658ec,_0x1e57e0=_0x86640f()[_0x51153e('0x1d2e')](_0x2424d7['lists'],{'id':_0xad5bce['id']});_0x1e57e0&&_0x86640f()['merge'](_0x1e57e0,_0x86640f()[_0x51153e('0xc50')](_0xad5bce[_0x51153e('0x3bc')](),_0x86640f()[_0x51153e('0x223b')](_0x1e57e0))),_0xc0450e[_0x51153e('0xdb1')]({'title':_0x51153e('0x1e60'),'msg':_0x2424d7[_0x51153e('0x17fe')][_0x51153e('0x19fe')]?_0x2424d7['list'][_0x51153e('0x19fe')]+_0x51153e('0x2249'):''}),_0x549ce3(_0xad5bce);})['catch'](function(_0x2af6a3){var _0x65f9bd=_0x3658ec;if(_0x2af6a3['data']&&_0x2af6a3[_0x65f9bd('0x11c2')]['errors']&&_0x2af6a3[_0x65f9bd('0x11c2')][_0x65f9bd('0x1a69')][_0x65f9bd('0x577')]){_0x2424d7[_0x65f9bd('0x1a69')]=_0x2af6a3['data']['errors']||[{'message':_0x2af6a3[_0x65f9bd('0x174f')](),'type':_0x65f9bd('0xf70')}];for(var _0x3a10f1=0x0;_0x3a10f1<_0x2af6a3[_0x65f9bd('0x11c2')][_0x65f9bd('0x1a69')][_0x65f9bd('0x577')];_0x3a10f1++){_0xc0450e['error']({'title':_0x2af6a3[_0x65f9bd('0x11c2')][_0x65f9bd('0x1a69')][_0x3a10f1]['type'],'msg':_0x2af6a3[_0x65f9bd('0x11c2')][_0x65f9bd('0x1a69')][_0x3a10f1][_0x65f9bd('0x1224')]});}}else _0xc0450e[_0x65f9bd('0x2092')]({'title':_0x2af6a3[_0x65f9bd('0x209')]?_0x65f9bd('0x22d')+_0x2af6a3['status']+_0x65f9bd('0xa99')+_0x2af6a3[_0x65f9bd('0x1808')]:_0x65f9bd('0xf70'),'msg':_0x2af6a3[_0x65f9bd('0x11c2')]?JSON[_0x65f9bd('0x25e')](_0x2af6a3[_0x65f9bd('0x11c2')][_0x65f9bd('0x1224')]):_0x2af6a3[_0x65f9bd('0x174f')]()});});}function _0x5d49f3(_0x2dd160){var _0x10b246=_0x1d4a27;_0x2424d7['errors']=[];var _0x212caa=_0x15d780['confirm']()[_0x10b246('0x4b4')](_0x10b246('0x196b'))[_0x10b246('0x13fb')](_0x10b246('0x2647'))[_0x10b246('0x7a7')](_0x10b246('0x1b42'))['ok'](_0x10b246('0xbfd'))[_0x10b246('0x3b5')]('Cancel')[_0x10b246('0x1e6d')](_0x2dd160);_0x15d780[_0x10b246('0x853')](_0x212caa)[_0x10b246('0x21ad')](function(){var _0x21d06a=_0x10b246;_0xfea798[_0x21d06a('0x11e0')][_0x21d06a('0x1164')]({'id':_0x2424d7[_0x21d06a('0x17fe')]['id']})[_0x21d06a('0x1376')][_0x21d06a('0x21ad')](function(){var _0x4986bd=_0x21d06a;_0x86640f()[_0x4986bd('0x16a2')](_0x2424d7[_0x4986bd('0x1972')],{'id':_0x2424d7['list']['id']}),_0xc0450e[_0x4986bd('0xdb1')]({'title':_0x4986bd('0xd9e'),'msg':(_0x2424d7[_0x4986bd('0x17fe')][_0x4986bd('0x19fe')]||_0x4986bd('0x17fe'))+_0x4986bd('0xb4a')}),_0x549ce3(_0x2424d7[_0x4986bd('0x17fe')]);})['catch'](function(_0x1cba0a){var _0x3d322f=_0x21d06a;if(_0x1cba0a[_0x3d322f('0x11c2')]&&_0x1cba0a[_0x3d322f('0x11c2')]['errors']&&_0x1cba0a[_0x3d322f('0x11c2')]['errors'][_0x3d322f('0x577')]){_0x2424d7[_0x3d322f('0x1a69')]=_0x1cba0a['data']['errors']||[{'message':_0x1cba0a['toString'](),'type':_0x3d322f('0x1255')}];for(var _0x59fd6a=0x0;_0x59fd6a<_0x1cba0a[_0x3d322f('0x11c2')][_0x3d322f('0x1a69')][_0x3d322f('0x577')];_0x59fd6a++){_0xc0450e[_0x3d322f('0x2092')]({'title':_0x1cba0a[_0x3d322f('0x11c2')][_0x3d322f('0x1a69')][_0x59fd6a][_0x3d322f('0x7fa')],'msg':_0x1cba0a[_0x3d322f('0x11c2')][_0x3d322f('0x1a69')][_0x59fd6a][_0x3d322f('0x1224')]});}}else _0xc0450e[_0x3d322f('0x2092')]({'title':_0x1cba0a[_0x3d322f('0x209')]?_0x3d322f('0x22d')+_0x1cba0a[_0x3d322f('0x209')]+_0x3d322f('0xa99')+_0x1cba0a['statusText']:_0x3d322f('0x1255'),'msg':_0x1cba0a['data']?JSON[_0x3d322f('0x25e')](_0x1cba0a[_0x3d322f('0x11c2')][_0x3d322f('0x1224')]):_0x1cba0a['message']||_0x1cba0a[_0x3d322f('0x174f')]()});});},function(){});}function _0x3a8f98(_0xb3d839){return _0xb3d839===null?undefined:new Date(_0xb3d839);}function _0x549ce3(_0x349c71){var _0x1cbbe9=_0x1d4a27;_0x15d780[_0x1cbbe9('0x1c24')](_0x349c71);}}const _0x56aa52=_0x42c734;_0x59f484['$inject']=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x17fe'),'lists','realtime',_0x3877e3('0x13c1'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x59f484(_0x5c3941,_0x49a7e2,_0x4750f7,_0xa745e3,_0x133433,_0x5c2695,_0x59e1de,_0x4673d2,_0x485051,_0x33ef92){var _0x86e3f3=_0x3877e3,_0x5b6ffd=this;_0x5b6ffd[_0x86e3f3('0x123f')]=_0x485051[_0x86e3f3('0x15ed')](),_0x5b6ffd[_0x86e3f3('0x17fe')]=_0x133433,_0x5b6ffd[_0x86e3f3('0x5ed')]=_0x33ef92,_0x5b6ffd[_0x86e3f3('0x116a')]=_0x59e1de,_0x5b6ffd['items']=[],_0x5b6ffd[_0x86e3f3('0x1e09')]=[],_0x5b6ffd[_0x86e3f3('0x2629')]=[],_0x5b6ffd[_0x86e3f3('0x91b')]=[],_0x5b6ffd[_0x86e3f3('0x2584')]=[],_0x5b6ffd[_0x86e3f3('0x1bb9')]=![],_0x5b6ffd['onInit']=_0x5a6849,_0x5b6ffd[_0x86e3f3('0x265b')]=_0x12edb5,_0x5b6ffd[_0x86e3f3('0x167')]=_0x2759d4,_0x5b6ffd['dualMultiselectOptions']={'readOnly':!_0x5b6ffd[_0x86e3f3('0x5ed')][_0x86e3f3('0x6e2')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x86e3f3('0x20f5'),'line2':[_0x86e3f3('0x19fe'),_0x86e3f3('0x201f')],'line3':'','labelAll':_0x4673d2[_0x86e3f3('0x183e')]('CONTACTMANAGER.ALL_AGENTS'),'labelSelected':_0x4673d2[_0x86e3f3('0x183e')]('CONTACTMANAGER.SELECTED_AGENTS'),'transferCallback':function _0x231594(){var _0x4d433c=_0x86e3f3,_0x2cd090=_0x86640f()['xorBy'](_0x5b6ffd[_0x4d433c('0x2584')],_0x5b6ffd[_0x4d433c('0x2629')],'id');_0x5b6ffd[_0x4d433c('0x1bb9')]=_0x86640f()[_0x4d433c('0x23aa')](_0x2cd090)?![]:!![];}};function _0x5a6849(){var _0x5e19e7=_0x86e3f3;return _0x485051[_0x5e19e7('0x21de')](_0x5e19e7('0x1bd8'))?_0x10efa3()[_0x5e19e7('0x1c1d')](function(_0x4f5752){var _0x405984=_0x5e19e7;_0x4750f7[_0x405984('0x2092')]({'title':_0x4f5752[_0x405984('0x209')]?_0x405984('0x22d')+_0x4f5752[_0x405984('0x209')]+_0x405984('0xa99')+_0x4f5752[_0x405984('0x1808')]:_0x405984('0x1381'),'msg':_0x4f5752[_0x405984('0x209')]?JSON[_0x405984('0x25e')](_0x4f5752[_0x405984('0x11c2')]):_0x4f5752['toString']()});}):_0x1335ee()[_0x5e19e7('0x21ad')](function(_0x37f5da){var _0x2f35e6=_0x5e19e7;return _0x5b6ffd[_0x2f35e6('0x26ad')]=_0x37f5da,_0x10efa3();})[_0x5e19e7('0x1c1d')](function(_0x2e5888){var _0x2b1898=_0x5e19e7;_0x4750f7[_0x2b1898('0x2092')]({'title':_0x2e5888[_0x2b1898('0x209')]?_0x2b1898('0x22d')+_0x2e5888[_0x2b1898('0x209')]+_0x2b1898('0xa99')+_0x2e5888[_0x2b1898('0x1808')]:_0x2b1898('0x1381'),'msg':_0x2e5888[_0x2b1898('0x209')]?JSON[_0x2b1898('0x25e')](_0x2e5888[_0x2b1898('0x11c2')]):_0x2e5888[_0x2b1898('0x174f')]()});});}function _0x1335ee(){return _0x49a7e2(function(_0x1816da,_0x358f8d){var _0x1b37c9=a0_0x2e7f;_0xa745e3[_0x1b37c9('0xab4')][_0x1b37c9('0x595')]({'userProfileId':_0x5b6ffd[_0x1b37c9('0x123f')][_0x1b37c9('0x1618')],'name':_0x1b37c9('0xfed')})[_0x1b37c9('0x1376')][_0x1b37c9('0x21ad')](function(_0x10bd97){var _0x1bf0c4=_0x1b37c9,_0x3bdf9f=_0x10bd97&&_0x10bd97[_0x1bf0c4('0x1b33')]?_0x10bd97[_0x1bf0c4('0x1b33')][0x0]:null;_0x1816da(_0x3bdf9f);})[_0x1b37c9('0x1c1d')](function(_0x1dcdaa){_0x358f8d(_0x1dcdaa);});});}function _0x10efa3(){return _0x49a7e2(function(_0x2b48f2,_0x1be28a){var _0x26f056=a0_0x2e7f;return _0x31d947()[_0x26f056('0x21ad')](function(_0x444120){var _0x2e48f9=_0x26f056;return _0x5b6ffd[_0x2e48f9('0x1b9a')]=_0x444120['rows']?_0x444120[_0x2e48f9('0x1b33')]:[],_0x485051[_0x2e48f9('0x21de')]('admin')?_0x444120:_0x5b6ffd[_0x2e48f9('0x26ad')]?_0x5b6ffd[_0x2e48f9('0x26ad')]['autoAssociation']?_0x444120:_0x12f775():null;})[_0x26f056('0x21ad')](function(_0x26ae0e){var _0x23e0e4=_0x26f056,_0xf98c6=_0x26ae0e&&_0x26ae0e['rows']?_0x26ae0e[_0x23e0e4('0x1b33')]:[];return _0x5b6ffd[_0x23e0e4('0x1e09')]=_0x86640f()[_0x23e0e4('0x26c3')](_0xf98c6,function(_0x345ccd){var _0xc83974=_0x23e0e4;return _0x86640f()[_0xc83974('0x1d2e')](_0x5b6ffd['items'],{'id':_0x485051['hasRole']('admin')||_0x5b6ffd['section'][_0xc83974('0x80c')]?_0x345ccd['id']:_0x345ccd['resourceId']});}),_0x5b6ffd['startingAllowedItems']=angular[_0x23e0e4('0xd75')](_0x5b6ffd['allowedItems']),_0x5b6ffd[_0x23e0e4('0x1b9a')][_0x23e0e4('0x1a52')](function(_0x57cabf){var _0x562ad4=_0x23e0e4,_0x5a9fe4=_0x86640f()[_0x562ad4('0x1d2e')](_0x5b6ffd[_0x562ad4('0x1e09')],{'id':_0x57cabf['id']});_0x485051[_0x562ad4('0x21de')](_0x562ad4('0x1bd8'))?_0x57cabf[_0x562ad4('0x118b')]=!![]:_0x57cabf[_0x562ad4('0x118b')]=typeof _0x5a9fe4!==_0x562ad4('0xddc')?!![]:![];}),_0x36419b();})[_0x26f056('0x21ad')](function(_0x5874fb){var _0x175747=_0x26f056,_0xcf8e1b=_0x5874fb&&_0x5874fb[_0x175747('0x1b33')]?_0x5874fb['rows']:[];_0x5b6ffd['selectedItems']=_0x86640f()[_0x175747('0x26c3')](_0xcf8e1b,function(_0x4826ef){var _0x43822f=_0x175747,_0x3b9d29=_0x86640f()[_0x43822f('0x1d2e')](_0x5b6ffd[_0x43822f('0x1b9a')],{'id':_0x4826ef['id']});return _0x3b9d29[_0x43822f('0x1195')]=_0x4826ef[_0x43822f('0x1b2')]?_0x43822f('0x5c2')+_0x4826ef[_0x43822f('0x1b2')][_0x43822f('0x1195')]:'',_0x3b9d29[_0x43822f('0x201f')]=typeof _0x4826ef[_0x43822f('0x201f')]!==_0x43822f('0xddc')?'<'+_0x4826ef[_0x43822f('0x201f')]+'>':'',_0x3b9d29;}),_0x5b6ffd[_0x175747('0x2584')]=angular[_0x175747('0xd75')](_0x5b6ffd['selectedItems']),_0x5b6ffd[_0x175747('0x909')][_0x175747('0x2629')]=_0x5b6ffd[_0x175747('0x2629')],_0x5b6ffd[_0x175747('0x909')][_0x175747('0x1b9a')]=_0x86640f()[_0x175747('0x1eab')](_0x5b6ffd[_0x175747('0x1e09')],_0x5b6ffd[_0x175747('0x909')][_0x175747('0x2629')],'id'),_0x2b48f2();})[_0x26f056('0x1c1d')](function(_0xe68c07){_0x1be28a(_0xe68c07);});});}function _0x12f775(){return _0x49a7e2(function(_0x27c9f8,_0x29eff0){var _0x3a51a0=a0_0x2e7f;return _0xa745e3['userProfileResource'][_0x3a51a0('0x595')]({'sectionId':_0x5b6ffd['section']['id'],'nolimit':!![]})[_0x3a51a0('0x1376')][_0x3a51a0('0x21ad')](function(_0x2072e7){_0x27c9f8(_0x2072e7);})[_0x3a51a0('0x1c1d')](function(_0x16671b){_0x29eff0(_0x16671b);});});}function _0x36419b(){return _0x49a7e2(function(_0x1a5243,_0x262f28){var _0x43144a=a0_0x2e7f;return _0xa745e3[_0x43144a('0x11e0')][_0x43144a('0x13ad')]({'id':_0x5b6ffd['list']['id'],'fields':_0x43144a('0x1eea'),'nolimit':!![],'role':_0x43144a('0x2402')})[_0x43144a('0x1376')][_0x43144a('0x21ad')](function(_0x27d6d9){_0x1a5243(_0x27d6d9);})[_0x43144a('0x1c1d')](function(_0x57b5a1){_0x262f28(_0x57b5a1);});});}function _0x31d947(){return _0x49a7e2(function(_0x554de7,_0x5a5a7f){var _0x433137=a0_0x2e7f;return _0xa745e3[_0x433137('0x1775')][_0x433137('0x595')]({'fields':_0x433137('0x1eea'),'nolimit':!![],'role':'agent'})[_0x433137('0x1376')][_0x433137('0x21ad')](function(_0x5d80a2){_0x554de7(_0x5d80a2);})['catch'](function(_0x430892){_0x5a5a7f(_0x430892);});});}function _0x224107(_0x286c46){return _0x49a7e2(function(_0x4ce5ac,_0x22c967){var _0x2758aa=a0_0x2e7f;_0x86640f()[_0x2758aa('0x23aa')](_0x286c46)?_0x4ce5ac():_0xa745e3[_0x2758aa('0x11e0')][_0x2758aa('0x1116')]({'id':_0x5b6ffd[_0x2758aa('0x17fe')]['id'],'ids':_0x86640f()[_0x2758aa('0x26c3')](_0x286c46,'id')})[_0x2758aa('0x1376')]['then'](function(){_0x4ce5ac();})[_0x2758aa('0x1c1d')](function(_0x4a8dcf){_0x22c967(_0x4a8dcf);});});}function _0x46e9b2(_0x2f1386){return _0x49a7e2(function(_0x35d091,_0x4f7e71){var _0x52c90c=a0_0x2e7f;_0x86640f()[_0x52c90c('0x23aa')](_0x2f1386)?_0x35d091():_0xa745e3[_0x52c90c('0x11e0')][_0x52c90c('0x59e')]({'id':_0x5b6ffd[_0x52c90c('0x17fe')]['id'],'ids':_0x86640f()[_0x52c90c('0x26c3')](_0x2f1386,'id')})[_0x52c90c('0x1376')][_0x52c90c('0x21ad')](function(){_0x35d091();})[_0x52c90c('0x1c1d')](function(_0x732013){_0x4f7e71(_0x732013);});});}function _0x12edb5(){var _0x167e9e=_0x86e3f3,_0x3734bb=_0x86640f()[_0x167e9e('0x1eab')](_0x5b6ffd['startingSelectedItems'],_0x5b6ffd[_0x167e9e('0x2629')],'id'),_0xe97272=_0x86640f()[_0x167e9e('0x1eab')](_0x5b6ffd['selectedItems'],_0x5b6ffd[_0x167e9e('0x2584')],'id');return _0x46e9b2(_0x3734bb)[_0x167e9e('0x21ad')](function(){return _0x224107(_0xe97272);})[_0x167e9e('0x21ad')](function(){var _0x16d64a=_0x167e9e;_0x5b6ffd[_0x16d64a('0x1bb9')]=![],_0x5b6ffd[_0x16d64a('0x91b')]=angular['copy'](_0x5b6ffd['allowedItems']),_0x5b6ffd['startingSelectedItems']=angular[_0x16d64a('0xd75')](_0x5b6ffd[_0x16d64a('0x2629')]),_0x4750f7[_0x16d64a('0xdb1')]({'title':_0x16d64a('0x2804'),'msg':_0x16d64a('0x2239')});})['catch'](function(_0x5375c4){var _0x434fe7=_0x167e9e;_0x4750f7['error']({'title':_0x5375c4[_0x434fe7('0x209')]?'API:'+_0x5375c4[_0x434fe7('0x209')]+_0x434fe7('0xa99')+_0x5375c4[_0x434fe7('0x1808')]:_0x434fe7('0x1dd7'),'msg':_0x5375c4[_0x434fe7('0x209')]?JSON['stringify'](_0x5375c4[_0x434fe7('0x11c2')]):_0x5375c4['toString']()});});}function _0x2759d4(){var _0x52e4f0=_0x86e3f3;_0x5c3941[_0x52e4f0('0x1c24')]();}}const _0x3f49d1=_0x59f484,_0x176101=_0x398308['p']+'src/js/modules/main/apps/contactmanager/views/lists/edit/customFields/dialog.html/dialog-[chunkhash].html';_0x16fc6c[_0x3877e3('0x1a81')]=[_0x3877e3('0x26'),_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$q','$translate',_0x3877e3('0x2313'),'$mdDialog',_0x3877e3('0x243f'),'toasty',_0x3877e3('0xccd'),'Auth'];function _0x16fc6c(_0x46e0be,_0x5823ea,_0x56b8be,_0x10f196,_0x492b79,_0x11721c,_0x5b6b67,_0x52909c,_0x221569,_0xdcb093,_0x4b31d5){var _0x4d9204=_0x3877e3,_0x3fc80b=this;_0x3fc80b[_0x4d9204('0x123f')]=_0x4b31d5[_0x4d9204('0x15ed')](),_0x3fc80b[_0x4d9204('0x17fe')]={},_0x3fc80b[_0x4d9204('0x1324')]={'count':0x0,'rows':[]},_0x3fc80b[_0x4d9204('0x16ff')]=[],_0x3fc80b['crudPermissions'],_0x3fc80b[_0x4d9204('0x77')]={'fields':_0x4d9204('0x17d8'),'limit':0xa,'page':0x1},_0x3fc80b[_0x4d9204('0x179c')]=_0x86640f()[_0x4d9204('0xcde')]([{'option':_0x4d9204('0x1d81'),'value':_0x4d9204('0x159a')},{'option':_0x4d9204('0x51f'),'value':_0x4d9204('0x22f9')},{'option':'Number','value':_0x4d9204('0x273e')},{'option':_0x4d9204('0x231a'),'value':_0x4d9204('0x1197')},{'option':_0x4d9204('0xb46'),'value':_0x4d9204('0x1d5d')}],function(_0x49d191){return _0x86640f()['replace'](_0x49d191['value'],new RegExp('\x27','g'),'');}),_0x3fc80b[_0x4d9204('0x4c7')]=_0x86640f()[_0x4d9204('0xcde')]([{'option':'Voice','value':_0x4d9204('0x7bb')}],function(_0x5def5f){var _0x15591d=_0x4d9204;return _0x86640f()[_0x15591d('0x16e4')](_0x5def5f[_0x15591d('0x2228')],new RegExp('\x27','g'),'');}),_0x3fc80b[_0x4d9204('0x1d75')]=_0x43f2f8,_0x3fc80b[_0x4d9204('0x15dc')]=_0x5aef9b,_0x3fc80b[_0x4d9204('0xdb1')]=_0x2af35b,_0x3fc80b[_0x4d9204('0x4ce')]=_0x581a87,_0x3fc80b[_0x4d9204('0x26ee')]=_0x5e7591,_0x3fc80b['exportSelectedListCustomFields']=_0x38b771,_0x3fc80b[_0x4d9204('0xcf9')]=_0x4643bb,_0x3fc80b['deleteSelectedListCustomFields']=_0x3d0430;function _0x43f2f8(_0x5eab50,_0x1b9746){var _0xbfd9cd=_0x4d9204;_0x3fc80b[_0xbfd9cd('0x17fe')]=_0x5eab50,_0x3fc80b['crudPermissions']=typeof _0x1b9746!==_0xbfd9cd('0xddc')?_0x1b9746:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3fc80b[_0xbfd9cd('0x77')][_0xbfd9cd('0x815')]=_0x3fc80b[_0xbfd9cd('0x17fe')]['id'],_0x3fc80b[_0xbfd9cd('0x77')]['id']=_0x3fc80b[_0xbfd9cd('0x17fe')]['id'],_0x581a87();}function _0x5aef9b(_0x58d052,_0x504393){var _0xd76e6f=_0x4d9204,_0x204730=_0x5b6b67[_0xd76e6f('0xa33')]()[_0xd76e6f('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20customField?')[_0xd76e6f('0x276b')](_0xd76e6f('0x622')+(_0x58d052[_0xd76e6f('0x19fe')]||_0x58d052['id']&&_0x86640f()[_0xd76e6f('0x22e')]('customField\x20#')+_0x58d052['id']||_0xd76e6f('0x1fa7'))+_0xd76e6f('0x2135')+_0xd76e6f('0x25e0'))[_0xd76e6f('0x7a7')](_0xd76e6f('0x264c'))[_0xd76e6f('0x1e6d')](_0x504393)['ok']('OK')[_0xd76e6f('0x3b5')]('CANCEL');_0x5b6b67[_0xd76e6f('0x853')](_0x204730)[_0xd76e6f('0x21ad')](function(){_0x4643bb(_0x58d052);},function(){var _0x258ebd=_0xd76e6f;console['log'](_0x258ebd('0x284b'));});}function _0x2af35b(_0x3bc606){var _0x30e0d3=_0x4d9204;_0x3fc80b[_0x30e0d3('0x1324')]=_0x3bc606||{'count':0x0,'rows':[]};}function _0x581a87(){var _0x8ada22=_0x4d9204;_0x3fc80b['query']['offset']=(_0x3fc80b[_0x8ada22('0x77')][_0x8ada22('0x2376')]-0x1)*_0x3fc80b['query'][_0x8ada22('0x1f4a')],_0x3fc80b[_0x8ada22('0x71b')]=_0xdcb093[_0x8ada22('0x11e0')]['getCustomFields'](_0x3fc80b[_0x8ada22('0x77')],_0x2af35b)[_0x8ada22('0x1376')];}function _0x5e7591(_0x1618b8,_0x511f02){var _0x3a518c=_0x4d9204;_0x5b6b67['show']({'controller':_0x3a518c('0xce9'),'controllerAs':'vm','templateUrl':_0x176101,'parent':angular[_0x3a518c('0x1676')](_0x52909c[_0x3a518c('0x2452')]),'targetEvent':_0x1618b8,'clickOutsideToClose':!![],'locals':{'list':_0x3fc80b[_0x3a518c('0x17fe')],'customField':_0x511f02,'customFields':_0x3fc80b[_0x3a518c('0x1324')][_0x3a518c('0x1b33')],'license':null,'setting':null,'crudPermissions':_0x3fc80b[_0x3a518c('0x5ed')]}});}function _0x4643bb(_0x57d4a1){var _0x44d890=_0x4d9204;_0xdcb093[_0x44d890('0x1851')][_0x44d890('0x1164')]({'id':_0x57d4a1['id']})['$promise'][_0x44d890('0x21ad')](function(){var _0xf77996=_0x44d890;_0x86640f()[_0xf77996('0x16a2')](_0x3fc80b[_0xf77996('0x1324')]['rows'],{'id':_0x57d4a1['id']}),_0x3fc80b[_0xf77996('0x1324')][_0xf77996('0x205f')]-=0x1,!_0x3fc80b[_0xf77996('0x1324')][_0xf77996('0x1b33')][_0xf77996('0x577')]&&_0x581a87(),_0x221569['success']({'title':_0xf77996('0x25f9'),'msg':_0x57d4a1[_0xf77996('0x19fe')]?_0x57d4a1['name']+_0xf77996('0xb4a'):''});})[_0x44d890('0x1c1d')](function(_0xfb9803){var _0x45256d=_0x44d890;if(_0xfb9803['data']&&_0xfb9803[_0x45256d('0x11c2')]['errors']&&_0xfb9803[_0x45256d('0x11c2')][_0x45256d('0x1a69')][_0x45256d('0x577')]){_0x3fc80b[_0x45256d('0x1a69')]=_0xfb9803['data'][_0x45256d('0x1a69')]||[{'message':_0xfb9803[_0x45256d('0x174f')](),'type':_0x45256d('0x208b')}];for(var _0x39a212=0x0;_0x39a212<_0xfb9803[_0x45256d('0x11c2')][_0x45256d('0x1a69')]['length'];_0x39a212++){_0x221569['error']({'title':_0xfb9803['data'][_0x45256d('0x1a69')][_0x39a212][_0x45256d('0x7fa')],'msg':_0xfb9803[_0x45256d('0x11c2')][_0x45256d('0x1a69')][_0x39a212]['message']});}}else _0x221569[_0x45256d('0x2092')]({'title':_0xfb9803[_0x45256d('0x209')]?_0x45256d('0x22d')+_0xfb9803[_0x45256d('0x209')]+_0x45256d('0xa99')+_0xfb9803[_0x45256d('0x1808')]:_0x45256d('0x208b'),'msg':_0xfb9803[_0x45256d('0x11c2')]?JSON[_0x45256d('0x25e')](_0xfb9803['data'][_0x45256d('0x1224')]):_0xfb9803[_0x45256d('0x1224')]||_0xfb9803[_0x45256d('0x174f')]()});});}function _0x38b771(){var _0x4acd65=_0x4d9204,_0x189de3=angular[_0x4acd65('0xd75')](_0x3fc80b['selectedListCustomFields']);return _0x3fc80b['selectedListCustomFields']=[],_0x189de3;}function _0x3d0430(_0x3db9a3){var _0x342e4b=_0x4d9204,_0x294f4c=_0x5b6b67[_0x342e4b('0xa33')]()['title'](_0x342e4b('0x1925'))[_0x342e4b('0x276b')](_0x342e4b('0x622')+_0x3fc80b['selectedListCustomFields'][_0x342e4b('0x577')]+_0x342e4b('0xd74')+_0x342e4b('0x25e0'))[_0x342e4b('0x7a7')](_0x342e4b('0x426'))[_0x342e4b('0x1e6d')](_0x3db9a3)['ok']('OK')['cancel']('CANCEL');_0x5b6b67['show'](_0x294f4c)[_0x342e4b('0x21ad')](function(){var _0x64508f=_0x342e4b;_0x3fc80b[_0x64508f('0x16ff')]['forEach'](function(_0x571b57){_0x4643bb(_0x571b57);}),_0x3fc80b['selectedListCustomFields']=[];});}var _0x61766b=!![],_0x5e4456=0x1;_0x5823ea['$watch'](_0x4d9204('0x10ff'),function(_0x541283,_0xc8775d){var _0x373aeb=_0x4d9204;_0x61766b?_0x11721c(function(){_0x61766b=![];}):(!_0xc8775d&&(_0x5e4456=_0x3fc80b[_0x373aeb('0x77')][_0x373aeb('0x2376')]),_0x541283!==_0xc8775d&&(_0x3fc80b[_0x373aeb('0x77')][_0x373aeb('0x2376')]=0x1),!_0x541283&&(_0x3fc80b[_0x373aeb('0x77')][_0x373aeb('0x2376')]=_0x5e4456),_0x581a87());});}const _0xd4f428=_0x16fc6c;_0x299d5a['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0xbbd'),_0x3877e3('0x1fa7'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x299d5a(_0xa852fb,_0x3317a0,_0x2e7a3e,_0x329bba,_0x446849,_0x5d7d20,_0x535a54,_0x13ec12,_0x171b54,_0x5a87c3,_0x3e9c55,_0xa15b65,_0x4eb8ca,_0x2ddfd9){var _0x52ec35=_0x3877e3,_0x51f953=this;_0x51f953[_0x52ec35('0x123f')]=_0x3e9c55['getCurrentUser'](),_0x51f953[_0x52ec35('0x1a69')]=[],_0x51f953[_0x52ec35('0x21e')]=_0x4eb8ca,_0x51f953['license']=_0xa15b65,_0x51f953['crudPermissions']=_0x2ddfd9,_0x51f953[_0x52ec35('0x126a')]={},_0x51f953[_0x52ec35('0x1432')]=_0x51f953[_0x52ec35('0x21e')]&&_0x51f953[_0x52ec35('0x21e')][_0x52ec35('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x51f953['title']=_0x52ec35('0x7d5'),_0x51f953[_0x52ec35('0x1e7b')]={'animation':0x320,'sort':!![],'onSort':function _0x1354a8(){var _0x48602c=_0x52ec35;_0xa852fb['customFieldForm'][_0x48602c('0x2190')]=![];}},_0x51f953[_0x52ec35('0x1fa7')]=_0x171b54,_0x51f953[_0x52ec35('0xbbd')]=_0x13ec12,_0x51f953[_0x52ec35('0x222')]=![];!_0x51f953[_0x52ec35('0x1fa7')]&&(_0x51f953[_0x52ec35('0x1fa7')]={'type':_0x52ec35('0xc1e'),'actionType':_0x52ec35('0x8ed')},_0x51f953['title']='CONTACTMANAGER.NEW_CUSTOMFIELD',_0x51f953[_0x52ec35('0x222')]=!![]);_0x3317a0['params']['id']&&(_0x51f953['customField'][_0x52ec35('0x815')]=_0x3317a0[_0x52ec35('0x171b')]['id']);_0xa852fb[_0x52ec35('0x10e8')](_0x52ec35('0x515'),function(_0x478fc8,_0x4ba79d){var _0x920795=_0x52ec35;if(_0x478fc8!==_0x4ba79d)switch(_0x478fc8){case _0x920795('0xc1e'):_0x51f953['customField'][_0x920795('0x1843')]='';break;case _0x920795('0x2844'):_0x51f953[_0x920795('0x1fa7')][_0x920795('0x1843')]=[];break;default:}}),_0x51f953[_0x52ec35('0x2103')]=_0x4ffdae,_0x51f953[_0x52ec35('0x246')]=_0x4528f4,_0x51f953['deleteCustomField']=_0x2a2781,_0x51f953[_0x52ec35('0x279')]=_0x7b112c,_0x51f953[_0x52ec35('0x62')]=_0x25be02,_0x51f953[_0x52ec35('0x27e0')]=_0x37590f,_0x51f953[_0x52ec35('0x1e7e')]=_0x4eba4d,_0x51f953[_0x52ec35('0x167')]=_0x3a542a;function _0x25be02(_0x3e0bd8){var _0x1225c2=_0x52ec35;_0x3e0bd8[_0x1225c2('0x206c')]({'value':'New\x20Item'}),_0xa852fb['customFieldForm'][_0x1225c2('0x2190')]=![];}function _0x37590f(_0x551def,_0x5331cb){var _0x38a486=_0x52ec35;_0x551def[_0x38a486('0xafe')](_0x5331cb,0x1),_0xa852fb[_0x38a486('0x8f9')][_0x38a486('0x2190')]=![];}function _0x4eba4d(_0x476ed3){var _0x49e7e0=_0x52ec35,_0x241230=_0x476ed3['length'];for(var _0x3f2829=0x0;_0x3f2829<_0x241230;_0x3f2829++){_0x476ed3['splice'](0x0,0x1);}_0xa852fb[_0x49e7e0('0x8f9')][_0x49e7e0('0x2190')]=![];}function _0x4ffdae(){var _0x39326c=_0x52ec35;_0x51f953[_0x39326c('0x1a69')]=[],_0x5a87c3[_0x39326c('0x11e0')][_0x39326c('0x22da')]({'id':_0x3317a0[_0x39326c('0x171b')]['id']},_0x51f953['customField'])[_0x39326c('0x1376')]['then'](function(_0x229146){var _0x40baef=_0x39326c;_0x51f953[_0x40baef('0xbbd')][_0x40baef('0xd0c')](_0x229146[_0x40baef('0x3bc')]()),_0x535a54[_0x40baef('0xdb1')]({'title':'CustomField\x20properly\x20created','msg':_0x51f953['customField'][_0x40baef('0x19fe')]?_0x51f953[_0x40baef('0x1fa7')][_0x40baef('0x19fe')]+_0x40baef('0x1694'):''}),_0x3a542a(_0x229146);})[_0x39326c('0x1c1d')](function(_0x3e7bf1){var _0x1aba86=_0x39326c;if(_0x3e7bf1['data']&&_0x3e7bf1[_0x1aba86('0x11c2')][_0x1aba86('0x1a69')]&&_0x3e7bf1[_0x1aba86('0x11c2')][_0x1aba86('0x1a69')][_0x1aba86('0x577')]){_0x51f953[_0x1aba86('0x1a69')]=_0x3e7bf1[_0x1aba86('0x11c2')][_0x1aba86('0x1a69')]||[{'message':_0x3e7bf1[_0x1aba86('0x174f')](),'type':_0x1aba86('0x246b')}];for(var _0x294cb8=0x0;_0x294cb8<_0x3e7bf1[_0x1aba86('0x11c2')][_0x1aba86('0x1a69')]['length'];_0x294cb8+=0x1){_0x535a54[_0x1aba86('0x2092')]({'title':_0x3e7bf1[_0x1aba86('0x11c2')][_0x1aba86('0x1a69')][_0x294cb8]['type'],'msg':_0x3e7bf1['data'][_0x1aba86('0x1a69')][_0x294cb8][_0x1aba86('0x1224')]});}}else _0x535a54[_0x1aba86('0x2092')]({'title':_0x3e7bf1[_0x1aba86('0x209')]?_0x1aba86('0x22d')+_0x3e7bf1[_0x1aba86('0x209')]+_0x1aba86('0xa99')+_0x3e7bf1[_0x1aba86('0x1808')]:_0x1aba86('0x246b'),'msg':_0x3e7bf1[_0x1aba86('0x11c2')]?JSON[_0x1aba86('0x25e')](_0x3e7bf1['data'][_0x1aba86('0x1224')]):_0x3e7bf1['toString']()});});}function _0x4528f4(){var _0x3527e5=_0x52ec35;_0x51f953['errors']=[],_0x5a87c3['cmCustomField']['update']({'id':_0x51f953['customField']['id']},_0x51f953[_0x3527e5('0x1fa7')])[_0x3527e5('0x1376')][_0x3527e5('0x21ad')](function(_0x19e218){var _0x363929=_0x3527e5,_0x1192d6=_0x86640f()[_0x363929('0x1d2e')](_0x51f953[_0x363929('0xbbd')],{'id':_0x19e218['id']});_0x1192d6&&_0x86640f()[_0x363929('0xd0e')](_0x1192d6,_0x86640f()[_0x363929('0xc50')](_0x19e218[_0x363929('0x3bc')](),_0x86640f()[_0x363929('0x223b')](_0x1192d6))),_0x535a54[_0x363929('0xdb1')]({'title':_0x363929('0x27f7'),'msg':_0x51f953[_0x363929('0x1fa7')][_0x363929('0x19fe')]?_0x51f953['customField'][_0x363929('0x19fe')]+'\x20has\x20been\x20saved!':''}),_0x3a542a(_0x19e218);})['catch'](function(_0x3314f9){var _0x6c0be9=_0x3527e5;if(_0x3314f9[_0x6c0be9('0x11c2')]&&_0x3314f9[_0x6c0be9('0x11c2')][_0x6c0be9('0x1a69')]&&_0x3314f9['data'][_0x6c0be9('0x1a69')]['length']){_0x51f953[_0x6c0be9('0x1a69')]=_0x3314f9[_0x6c0be9('0x11c2')][_0x6c0be9('0x1a69')]||[{'message':_0x3314f9[_0x6c0be9('0x174f')](),'type':'api.cmCustomField.update'}];for(var _0x8f1b2b=0x0;_0x8f1b2b<_0x3314f9[_0x6c0be9('0x11c2')]['errors'][_0x6c0be9('0x577')];_0x8f1b2b++){_0x535a54['error']({'title':_0x3314f9[_0x6c0be9('0x11c2')][_0x6c0be9('0x1a69')][_0x8f1b2b]['type'],'msg':_0x3314f9['data'][_0x6c0be9('0x1a69')][_0x8f1b2b]['message']});}}else _0x535a54['error']({'title':_0x3314f9[_0x6c0be9('0x209')]?_0x6c0be9('0x22d')+_0x3314f9['status']+'\x20-\x20'+_0x3314f9[_0x6c0be9('0x1808')]:_0x6c0be9('0x1216'),'msg':_0x3314f9[_0x6c0be9('0x11c2')]?JSON['stringify'](_0x3314f9['data'][_0x6c0be9('0x1224')]):_0x3314f9[_0x6c0be9('0x174f')]()});});}function _0x2a2781(_0x49ec87){var _0x5146f4=_0x52ec35;_0x51f953[_0x5146f4('0x1a69')]=[];var _0x5e57a1=_0x329bba[_0x5146f4('0xa33')]()[_0x5146f4('0x4b4')](_0x5146f4('0x196b'))[_0x5146f4('0x13fb')](_0x5146f4('0x24d'))['ariaLabel'](_0x5146f4('0xb5c'))['ok'](_0x5146f4('0xbfd'))[_0x5146f4('0x3b5')]('Cancel')['targetEvent'](_0x49ec87);_0x329bba[_0x5146f4('0x853')](_0x5e57a1)[_0x5146f4('0x21ad')](function(){var _0x31163b=_0x5146f4;_0x5a87c3[_0x31163b('0x1851')][_0x31163b('0x1164')]({'id':_0x51f953[_0x31163b('0x1fa7')]['id']})[_0x31163b('0x1376')]['then'](function(){var _0x3132f5=_0x31163b;_0x86640f()[_0x3132f5('0x16a2')](_0x51f953[_0x3132f5('0xbbd')],{'id':_0x51f953['customField']['id']}),_0x535a54[_0x3132f5('0xdb1')]({'title':_0x3132f5('0x104f'),'msg':(_0x51f953[_0x3132f5('0x1fa7')]['name']||_0x3132f5('0x1fa7'))+_0x3132f5('0xb4a')}),_0x3a542a(_0x51f953[_0x3132f5('0x1fa7')]);})[_0x31163b('0x1c1d')](function(_0x18cbca){var _0x4f608c=_0x31163b;if(_0x18cbca[_0x4f608c('0x11c2')]&&_0x18cbca[_0x4f608c('0x11c2')][_0x4f608c('0x1a69')]&&_0x18cbca['data']['errors'][_0x4f608c('0x577')]){_0x51f953[_0x4f608c('0x1a69')]=_0x18cbca['data']['errors']||[{'message':_0x18cbca['toString'](),'type':_0x4f608c('0x22e3')}];for(var _0xcf87f2=0x0;_0xcf87f2<_0x18cbca[_0x4f608c('0x11c2')][_0x4f608c('0x1a69')][_0x4f608c('0x577')];_0xcf87f2++){_0x535a54['error']({'title':_0x18cbca['data'][_0x4f608c('0x1a69')][_0xcf87f2][_0x4f608c('0x7fa')],'msg':_0x18cbca[_0x4f608c('0x11c2')][_0x4f608c('0x1a69')][_0xcf87f2][_0x4f608c('0x1224')]});}}else _0x535a54['error']({'title':_0x18cbca[_0x4f608c('0x209')]?'API:'+_0x18cbca[_0x4f608c('0x209')]+_0x4f608c('0xa99')+_0x18cbca[_0x4f608c('0x1808')]:_0x4f608c('0x22e3'),'msg':_0x18cbca[_0x4f608c('0x11c2')]?JSON['stringify'](_0x18cbca[_0x4f608c('0x11c2')]['message']):_0x18cbca[_0x4f608c('0x1224')]||_0x18cbca[_0x4f608c('0x174f')]()});});},function(){});}function _0x7b112c(_0x58442f){return _0x58442f===null?undefined:new Date(_0x58442f);}function _0x3a542a(_0x59bd48){var _0x3c845c=_0x52ec35;_0x329bba[_0x3c845c('0x1c24')](_0x59bd48);}}const _0x16b762=_0x299d5a,_0x5e7ddb=_0x398308['p']+_0x3877e3('0xfdf');_0x26eb6a[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x13c1'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x17fe'),_0x3877e3('0xab4')];function _0x26eb6a(_0x8cd1fc,_0x49214f,_0x2a0509,_0x23a1be,_0x295688,_0x4fcb5a,_0x4dc0ff,_0x4e86a4,_0x1b8cb9,_0x30dbb9,_0x6f6069,_0x316eba){var _0x540c06=_0x3877e3,_0x3ea110=this;_0x3ea110[_0x540c06('0x123f')]=_0x30dbb9[_0x540c06('0x15ed')](),_0x3ea110[_0x540c06('0x2ff')]=_0x4fcb5a,_0x3ea110[_0x540c06('0x21e')]=_0x4dc0ff,_0x3ea110[_0x540c06('0x1432')]=_0x3ea110[_0x540c06('0x21e')][_0x540c06('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3ea110[_0x540c06('0x626')]=_0x49214f[_0x540c06('0x1162')]()+_0x540c06('0x22a9')+_0x49214f[_0x540c06('0x1c01')](),_0x3ea110[_0x540c06('0x17fe')]=_0x6f6069||_0x8cd1fc[_0x540c06('0x171b')]['list']||{},_0x3ea110[_0x540c06('0xab4')]=_0x316eba&&_0x316eba[_0x540c06('0x205f')]==0x1?_0x316eba[_0x540c06('0x1b33')][0x0]:null,_0x3ea110[_0x540c06('0x5ed')]=_0x30dbb9[_0x540c06('0x1778')](_0x3ea110[_0x540c06('0xab4')]?_0x3ea110[_0x540c06('0xab4')]['crudPermissions']:null),_0x3ea110[_0x540c06('0x126a')]={},_0x3ea110['selectedTab']=_0x8cd1fc[_0x540c06('0x171b')][_0x540c06('0x12e1')]||0x0,_0x3ea110[_0x540c06('0x177f')]=_0x487255,_0x3ea110['agentadddialog']=_0x246b14,_0x3ea110[_0x540c06('0x95b')]=_0x1b8cb9[_0x540c06('0x231c')],_0x3ea110['gotoLists']=_0x2c6c51,_0x3ea110[_0x540c06('0x10ef')]=_0x518977;function _0x487255(_0x805fa3){var _0xceac76=_0x540c06;if(_0x30dbb9[_0xceac76('0x21de')](_0xceac76('0x1bd8')))_0x8cd1fc['go'](_0xceac76('0xc19'),{'ListId':_0x805fa3['id']});else return _0x4e86a4[_0xceac76('0xab4')]['get']({'userProfileId':_0x30dbb9[_0xceac76('0x15ed')]()[_0xceac76('0x1618')],'sectionId':0x12f})['$promise']['then'](function(_0x5b166c){var _0x2a47ed=_0xceac76,_0xbba80d=_0x5b166c&&_0x5b166c[_0x2a47ed('0x1b33')]?_0x5b166c['rows'][0x0]:null;_0xbba80d&&_0xbba80d[_0x2a47ed('0x2296')]?_0x8cd1fc['go'](_0x2a47ed('0xc19'),{'ListId':_0x805fa3['id']}):_0x1b8cb9['info']({'title':_0x295688['instant'](_0x2a47ed('0x1adb')),'msg':_0x295688[_0x2a47ed('0x183e')](_0x2a47ed('0x764'))});})[_0xceac76('0x1c1d')](function(_0x2400ff){var _0x3cf9f5=_0xceac76;_0x1b8cb9[_0x3cf9f5('0x2092')]({'title':_0x2400ff[_0x3cf9f5('0x209')]?'API:'+_0x2400ff[_0x3cf9f5('0x209')]+_0x3cf9f5('0xa99')+_0x2400ff[_0x3cf9f5('0x1808')]:_0x3cf9f5('0xb8'),'msg':_0x2400ff[_0x3cf9f5('0x209')]?JSON['stringify'](_0x2400ff[_0x3cf9f5('0x11c2')]):_0x2400ff['toString']()});});}function _0x246b14(_0x6364d3,_0x2cc8de){var _0x107cab=_0x540c06;_0x2a0509[_0x107cab('0x853')]({'controller':_0x107cab('0x12a1'),'controllerAs':'vm','templateUrl':_0x5e7ddb,'parent':angular[_0x107cab('0x1676')](_0x23a1be[_0x107cab('0x2452')]),'targetEvent':_0x2cc8de,'clickOutsideToClose':!![],'locals':{'list':_0x6364d3,'lists':_0x3ea110['lists']?_0x3ea110[_0x107cab('0x1972')][_0x107cab('0x1b33')]:[],'crudPermissions':_0x3ea110[_0x107cab('0x5ed')],'realtime':![]}});}function _0x2c6c51(){_0x8cd1fc['go']('app.contactmanager.lists',{},{'reload':'app.contactmanager.lists'});}function _0x518977(){var _0x15da04=_0x540c06;_0x4e86a4[_0x15da04('0x11e0')][_0x15da04('0x5ef')]({'id':_0x3ea110[_0x15da04('0x17fe')]['id']},_0x3ea110['list'])['$promise'][_0x15da04('0x21ad')](function(){var _0x5ba668=_0x15da04;_0x1b8cb9[_0x5ba668('0xdb1')]({'title':'List\x20updated!','msg':_0x3ea110[_0x5ba668('0x17fe')][_0x5ba668('0x19fe')]?_0x3ea110[_0x5ba668('0x17fe')][_0x5ba668('0x19fe')]+_0x5ba668('0xa8d'):''});})[_0x15da04('0x1c1d')](function(_0x55a746){var _0x5d6f4a=_0x15da04;_0x1b8cb9['error']({'title':_0x55a746[_0x5d6f4a('0x209')]?_0x5d6f4a('0x22d')+_0x55a746['status']+_0x5d6f4a('0xa99')+_0x55a746[_0x5d6f4a('0x1808')]:'SYSTEM:GETcmList','msg':_0x55a746[_0x5d6f4a('0x11c2')]?JSON[_0x5d6f4a('0x25e')](_0x55a746[_0x5d6f4a('0x11c2')]):_0x55a746[_0x5d6f4a('0x174f')]()});});}}const _0x5b289e=_0x26eb6a,_0x3e2462=_0x398308['p']+_0x3877e3('0x218d');_0x11c36b[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),'$mdSidenav',_0x3877e3('0x1850'),'$document',_0x3877e3('0x2313'),_0x3877e3('0x13c1'),_0x3877e3('0xccd'),'toasty',_0x3877e3('0x15bc')];function _0x11c36b(_0x259c04,_0x43bb2a,_0x59f68b,_0x264a98,_0x38fbb1,_0x2b8a1c,_0x385774,_0x3afb6c,_0x48c16a,_0x1d9d3f,_0x519490){var _0x4d09af=_0x3877e3,_0x39a120=this;_0x39a120[_0x4d09af('0x123f')]=_0x519490[_0x4d09af('0x15ed')](),_0x39a120[_0x4d09af('0x10d0')]={'count':0x0,'rows':[]},_0x39a120[_0x4d09af('0xa9')]=[],_0x39a120[_0x4d09af('0x5ed')],_0x39a120[_0x4d09af('0x2525')]={'first':_0x4d09af('0xd08'),'second':'2nd','third':_0x4d09af('0x176b')},_0x39a120[_0x4d09af('0x77')]={'fields':_0x4d09af('0x277'),'sort':_0x4d09af('0x33'),'limit':0xa,'page':0x1},_0x39a120['init']=_0x55891c,_0x39a120[_0x4d09af('0x15dc')]=_0x482a4a,_0x39a120['success']=_0x712a63,_0x39a120['getDispositions']=_0x20247c,_0x39a120['createOrEditDisposition']=_0x262e75,_0x39a120[_0x4d09af('0x132f')]=_0x25496f,_0x39a120['exportSelectedDispositions']=_0x2e9dec,_0x39a120[_0x4d09af('0x250')]=_0x29c884,_0x39a120[_0x4d09af('0x2061')]=_0x5db32,_0x39a120['selectAllDispositions']=_0x13b61b;function _0x55891c(_0x480516,_0x49906e){var _0x409b7b=_0x4d09af;_0x39a120[_0x409b7b('0x17fe')]=_0x480516||{},_0x39a120[_0x409b7b('0x5ed')]=typeof _0x49906e!==_0x409b7b('0xddc')?_0x49906e:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x39a120[_0x409b7b('0x77')][_0x409b7b('0x815')]=_0x39a120[_0x409b7b('0x17fe')]['id'],_0x39a120['query']['id']=_0x39a120[_0x409b7b('0x17fe')]['id'],_0x20247c();}function _0x262e75(_0x1b0dbc,_0x57f763){var _0x191b03=_0x4d09af;_0x38fbb1[_0x191b03('0x853')]({'controller':_0x191b03('0xdd9'),'controllerAs':'vm','templateUrl':_0x3e2462,'parent':angular[_0x191b03('0x1676')](_0x2b8a1c['body']),'targetEvent':_0x1b0dbc,'clickOutsideToClose':!![],'locals':{'disposition':_0x57f763,'dispositions':_0x39a120['dispositions']['rows'],'model':{'id':_0x39a120['list']['id'],'field':_0x191b03('0x815')},'license':null,'setting':null,'crudPermissions':_0x39a120[_0x191b03('0x5ed')]}})[_0x191b03('0x21ad')](function(_0x1aa7a5){if(_0x1aa7a5)_0x20247c();});}function _0x482a4a(_0x2b26d5,_0x28f627){var _0xbe5fd5=_0x4d09af,_0x431f95=_0x86640f()[_0xbe5fd5('0x2664')](_0x39a120[_0xbe5fd5('0x10d0')]['rows'],[_0xbe5fd5('0x198f'),_0x2b26d5['id']]),_0x3c6a4f=_0x38fbb1[_0xbe5fd5('0xa33')]()['title'](_0x3afb6c['instant'](_0xbe5fd5('0x17b4')))[_0xbe5fd5('0x13fb')](_0x3afb6c[_0xbe5fd5('0x183e')](_0xbe5fd5('0x18ec')+(_0x431f95?_0xbe5fd5('0x636'):_0xbe5fd5('0x1019')),{'name':_0x2b26d5['name']}))['ariaLabel'](_0xbe5fd5('0x2448'))[_0xbe5fd5('0x1e6d')](_0x28f627)['ok']('OK')[_0xbe5fd5('0x3b5')](_0x3afb6c[_0xbe5fd5('0x183e')]('TOOLS.CANCEL'));_0x38fbb1[_0xbe5fd5('0x853')](_0x3c6a4f)[_0xbe5fd5('0x21ad')](function(){_0x25496f(_0x2b26d5);});}function _0x712a63(_0x23c5ce){_0x39a120['dispositions']=_0x23c5ce||{'count':0x0,'rows':[]};}function _0x20247c(){var _0x58298a=_0x4d09af;_0x39a120[_0x58298a('0x77')][_0x58298a('0x15a5')]=(_0x39a120['query']['page']-0x1)*_0x39a120[_0x58298a('0x77')]['limit'],_0x39a120[_0x58298a('0x71b')]=_0x48c16a[_0x58298a('0x11e0')]['getDispositions'](_0x39a120[_0x58298a('0x77')],_0x712a63)[_0x58298a('0x1376')];}function _0x25496f(_0x4e2918){var _0xc6cddb=_0x4d09af;_0x48c16a['disposition']['delete']({'id':_0x4e2918['id']})[_0xc6cddb('0x1376')][_0xc6cddb('0x21ad')](function(){var _0x2d3206=_0xc6cddb;_0x20247c(),_0x1d9d3f[_0x2d3206('0xdb1')]({'title':_0x3afb6c[_0x2d3206('0x183e')](_0x2d3206('0x42a'))});})[_0xc6cddb('0x1c1d')](function(_0x4d10f0){var _0x251d33=_0xc6cddb;if(_0x4d10f0[_0x251d33('0x11c2')]&&_0x4d10f0[_0x251d33('0x11c2')][_0x251d33('0x1a69')]&&_0x4d10f0[_0x251d33('0x11c2')][_0x251d33('0x1a69')][_0x251d33('0x577')]){_0x39a120[_0x251d33('0x1a69')]=_0x4d10f0[_0x251d33('0x11c2')][_0x251d33('0x1a69')]||[{'message':_0x4d10f0[_0x251d33('0x174f')](),'type':_0x251d33('0x10d3')}];for(var _0x12ccbe=0x0;_0x12ccbe<_0x4d10f0[_0x251d33('0x11c2')]['errors'][_0x251d33('0x577')];_0x12ccbe++){_0x1d9d3f[_0x251d33('0x2092')]({'title':_0x4d10f0[_0x251d33('0x11c2')][_0x251d33('0x1a69')][_0x12ccbe][_0x251d33('0x7fa')],'msg':_0x4d10f0[_0x251d33('0x11c2')][_0x251d33('0x1a69')][_0x12ccbe][_0x251d33('0x1224')]});}}else _0x1d9d3f[_0x251d33('0x2092')]({'title':_0x4d10f0['status']?'API:'+_0x4d10f0[_0x251d33('0x209')]+_0x251d33('0xa99')+_0x4d10f0[_0x251d33('0x1808')]:'SYSTEM:DELETEdisposition','msg':_0x4d10f0['data']?JSON[_0x251d33('0x25e')](_0x4d10f0[_0x251d33('0x11c2')][_0x251d33('0x1224')]):_0x4d10f0['message']||_0x4d10f0[_0x251d33('0x174f')]()});});}function _0x2e9dec(){var _0x4f5295=_0x4d09af,_0xaa31d4=angular['copy'](_0x39a120[_0x4f5295('0xa9')]);return _0x39a120['selectedDispositions']=[],_0xaa31d4;}function _0x29c884(_0x2ad84f){var _0x2825d7=_0x4d09af,_0x5c9dad=_0x38fbb1[_0x2825d7('0xa33')]()[_0x2825d7('0x4b4')](_0x3afb6c[_0x2825d7('0x183e')]('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE'))[_0x2825d7('0x13fb')](_0x3afb6c[_0x2825d7('0x183e')](_0x2825d7('0x212d'),{'total':_0x39a120['selectedDispositions'][_0x2825d7('0x577')]}))[_0x2825d7('0x7a7')](_0x2825d7('0xad9'))[_0x2825d7('0x1e6d')](_0x2ad84f)['ok']('OK')[_0x2825d7('0x3b5')](_0x3afb6c[_0x2825d7('0x183e')](_0x2825d7('0x20ea')));_0x38fbb1[_0x2825d7('0x853')](_0x5c9dad)[_0x2825d7('0x21ad')](function(){var _0x1f040d=_0x2825d7;_0x39a120['selectedDispositions'][_0x1f040d('0x1a52')](function(_0x52f022){_0x25496f(_0x52f022);}),_0x39a120[_0x1f040d('0xa9')]=[];});}function _0x5db32(){var _0x2ca89c=_0x4d09af;_0x39a120[_0x2ca89c('0xa9')]=[];}function _0x13b61b(){var _0x523d8d=_0x4d09af;_0x39a120[_0x523d8d('0xa9')]=_0x39a120[_0x523d8d('0x10d0')]['rows'];}var _0xde375e=!![],_0x56f3d4=0x1;_0x259c04[_0x4d09af('0x10e8')](_0x4d09af('0x10ff'),function(_0x7d97cf,_0xa98d4d){var _0x37a67e=_0x4d09af;_0xde375e?_0x385774(function(){_0xde375e=![];}):(!_0xa98d4d&&(_0x56f3d4=_0x39a120[_0x37a67e('0x77')]['page']),_0x7d97cf!==_0xa98d4d&&(_0x39a120[_0x37a67e('0x77')]['page']=0x1),!_0x7d97cf&&(_0x39a120['query']['page']=_0x56f3d4),_0x20247c());});}const _0x2d76f5=_0x11c36b,_0x5dff32=_0x398308['p']+_0x3877e3('0x2f6');_0x3bc8cb['$inject']=['$scope','$window',_0x3877e3('0xa9f'),'$mdSidenav',_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),'$translate',_0x3877e3('0x1972'),'userProfile',_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),'toasty',_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x3bc8cb(_0x253e7f,_0x1862e9,_0x54a667,_0x342d3c,_0x5ef5da,_0x33d287,_0x93eb55,_0x337d86,_0x515830,_0x394b43,_0x2e543c,_0x31c3a8,_0x291609,_0x1e55ef,_0x3a7d8f,_0x48bf32,_0xe77e94){var _0x4de168=_0x3877e3,_0x1853bd=this;_0x1853bd['license']=_0x48bf32,_0x1853bd[_0x4de168('0x21e')]=_0xe77e94,_0x1853bd['currentUser']=_0x3a7d8f[_0x4de168('0x15ed')](),_0x1853bd[_0x4de168('0x1972')]=_0x515830||{'count':0x0,'rows':[]},_0x1853bd[_0x4de168('0x758')]=_0x394b43,_0x1853bd['userProfileSection']=_0x2e543c&&_0x2e543c[_0x4de168('0x205f')]==0x1?_0x2e543c['rows'][0x0]:null,_0x1853bd['crudPermissions']=_0x3a7d8f[_0x4de168('0x1778')](_0x1853bd[_0x4de168('0xab4')]?_0x1853bd[_0x4de168('0xab4')][_0x4de168('0x5ed')]:null),_0x1853bd[_0x4de168('0x1897')]=_0x4de168('0x1972'),_0x1853bd[_0x4de168('0x11dc')]='',_0x1853bd[_0x4de168('0x18cf')]=null,_0x1853bd[_0x4de168('0x228f')]=[],_0x1853bd[_0x4de168('0x77')]={'fields':_0x4de168('0x34d'),'sort':_0x4de168('0x33'),'limit':0xa,'page':0x1},_0x1853bd[_0x4de168('0x1c88')]=_0xfe21b4,_0x1853bd[_0x4de168('0x19ed')]=_0x4e1de1,_0x1853bd['exportcsvcontactsexport']=_0xc3a89a,_0x1853bd[_0x4de168('0x1297')]=_0x40855f,_0x1853bd[_0x4de168('0x2593')]=_0x4da6f5,_0x1853bd[_0x4de168('0xdb1')]=_0x454c72,_0x1853bd['getLists']=_0x1f4800,_0x1853bd[_0x4de168('0x180d')]=_0x35f61f,_0x1853bd['deleteList']=_0x2cb270,_0x1853bd[_0x4de168('0x1189')]=_0x574732,_0x1853bd['deleteSelectedLists']=_0xe2b34c,_0x1853bd['deselectLists']=_0x2708ae,_0x1853bd[_0x4de168('0x223')]=_0x4c617c;function _0xfe21b4(_0x202973){var _0xcf3cdc=_0x4de168;_0x54a667['go'](_0xcf3cdc('0x19a8'),{'id':_0x202973['id'],'list':_0x202973,'crudPermissions':_0x1853bd[_0xcf3cdc('0x5ed')]});}function _0x4e1de1(_0x321913){var _0x5abdd3=_0x4de168;if(_0x3a7d8f[_0x5abdd3('0x21de')](_0x5abdd3('0x1bd8')))_0x54a667['go'](_0x5abdd3('0xc19'),{'ListId':_0x321913['id']});else return _0x31c3a8[_0x5abdd3('0xab4')]['get']({'userProfileId':_0x3a7d8f[_0x5abdd3('0x15ed')]()['userProfileId'],'sectionId':0x12f})[_0x5abdd3('0x1376')]['then'](function(_0x1b7539){var _0x4c8a71=_0x5abdd3,_0x470272=_0x1b7539&&_0x1b7539[_0x4c8a71('0x1b33')]?_0x1b7539[_0x4c8a71('0x1b33')][0x0]:null;_0x470272&&_0x470272[_0x4c8a71('0x2296')]?_0x54a667['go'](_0x4c8a71('0xc19'),{'ListId':_0x321913['id']}):_0x1e55ef['info']({'title':_0x337d86['instant'](_0x4c8a71('0x1adb')),'msg':_0x337d86[_0x4c8a71('0x183e')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x5abdd3('0x1c1d')](function(_0x353ea6){var _0x3ceace=_0x5abdd3;_0x1e55ef[_0x3ceace('0x2092')]({'title':_0x353ea6[_0x3ceace('0x209')]?_0x3ceace('0x22d')+_0x353ea6[_0x3ceace('0x209')]+_0x3ceace('0xa99')+_0x353ea6[_0x3ceace('0x1808')]:_0x3ceace('0xb8'),'msg':_0x353ea6[_0x3ceace('0x209')]?JSON[_0x3ceace('0x25e')](_0x353ea6[_0x3ceace('0x11c2')]):_0x353ea6['toString']()});});}function _0xc3a89a(_0x358abb){var _0x4dcddf=_0x4de168;return _0x31c3a8[_0x4dcddf('0x11e0')]['getContactsCsv']({'id':_0x358abb['id'],'nolimit':!![]})[_0x4dcddf('0x1376')]['then'](function(_0x300db0){var _0x2eaf80=_0x4dcddf;if(typeof _0x300db0[_0x2eaf80('0x577')]!==_0x2eaf80('0xddc')){var _0x2b2783=[_0x300db0[_0x2eaf80('0x3da')]],_0x20c808=new Blob(_0x2b2783,{'type':_0x300db0['type']}),_0x5e5009=window[_0x2eaf80('0x27c3')]['createElement']('a');_0x5e5009[_0x2eaf80('0x127a')]('href',URL[_0x2eaf80('0x167b')](_0x20c808)),_0x5e5009[_0x2eaf80('0x127a')](_0x2eaf80('0xb0'),'exportContacts_'+_0x358abb['id']+'.csv'),_0x5e5009[_0x2eaf80('0x997')]();}else _0x1e55ef[_0x2eaf80('0x231c')]({'title':_0x2eaf80('0x52e'),'msg':_0x2eaf80('0x1baf')});})[_0x4dcddf('0x1c1d')](function(_0x245aa1){var _0x3d97b8=_0x4dcddf;_0x1e55ef[_0x3d97b8('0x2092')]({'title':_0x245aa1[_0x3d97b8('0x209')]?'API:'+_0x245aa1['status']+_0x3d97b8('0xa99')+_0x245aa1[_0x3d97b8('0x1808')]:'SYSTEM:GETcmList','msg':_0x245aa1['data']?JSON[_0x3d97b8('0x25e')](_0x245aa1[_0x3d97b8('0x11c2')]):_0x245aa1[_0x3d97b8('0x174f')]()});});}function _0x40855f(_0x30aff5,_0x767267){var _0x357db8=_0x4de168;_0x5ef5da[_0x357db8('0x853')]({'controller':_0x357db8('0x12a1'),'controllerAs':'vm','templateUrl':_0x5e7ddb,'parent':angular['element'](_0x33d287['body']),'targetEvent':_0x767267,'clickOutsideToClose':!![],'locals':{'list':_0x30aff5,'lists':_0x1853bd[_0x357db8('0x1972')]?_0x1853bd[_0x357db8('0x1972')][_0x357db8('0x1b33')]:[],'crudPermissions':_0x1853bd[_0x357db8('0x5ed')],'realtime':![]}});}function _0x4da6f5(_0x43d9c3,_0x3d9c78){var _0x5dc73e=_0x4de168,_0x458381=_0x5ef5da[_0x5dc73e('0xa33')]()[_0x5dc73e('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x86640f()[_0x5dc73e('0x2159')](_0x5dc73e('0x17fe'))+'?')[_0x5dc73e('0x276b')](''+(_0x43d9c3[_0x5dc73e('0x19fe')]||'list')+''+_0x5dc73e('0x25e0'))[_0x5dc73e('0x7a7')](_0x5dc73e('0x1084'))[_0x5dc73e('0x1e6d')](_0x3d9c78)['ok']('OK')[_0x5dc73e('0x3b5')](_0x5dc73e('0x284b'));_0x5ef5da[_0x5dc73e('0x853')](_0x458381)['then'](function(){_0x2cb270(_0x43d9c3);},function(){var _0x386296=_0x5dc73e;console[_0x386296('0x6fb')]('CANCEL');});}var _0x381617=!![],_0x2ad99b=0x1;_0x253e7f[_0x4de168('0x10e8')](_0x4de168('0x1948'),function(_0x1d2183,_0x38d45f){var _0x2dd90d=_0x4de168;_0x381617?_0x93eb55(function(){_0x381617=![];}):(!_0x38d45f&&(_0x2ad99b=_0x1853bd[_0x2dd90d('0x77')]['page']),_0x1d2183!==_0x38d45f&&(_0x1853bd[_0x2dd90d('0x77')]['page']=0x1),!_0x1d2183&&(_0x1853bd[_0x2dd90d('0x77')]['page']=_0x2ad99b),_0x1853bd['getLists']());});function _0x454c72(_0xa3b7fa){_0x1853bd['lists']=_0xa3b7fa||{'count':0x0,'rows':[]};}function _0x1f4800(){var _0x451abb=_0x4de168;_0x1853bd[_0x451abb('0x77')]['offset']=(_0x1853bd['query'][_0x451abb('0x2376')]-0x1)*_0x1853bd[_0x451abb('0x77')]['limit'],_0x3a7d8f[_0x451abb('0x21de')]('admin')?_0x1853bd['promise']=_0x31c3a8[_0x451abb('0x11e0')][_0x451abb('0x595')](_0x1853bd[_0x451abb('0x77')],_0x454c72)[_0x451abb('0x1376')]:(_0x1853bd[_0x451abb('0x77')]['id']=_0x1853bd['userProfile']['id'],_0x1853bd[_0x451abb('0x77')][_0x451abb('0x26ad')]=_0x451abb('0xd8d'),_0x1853bd['promise']=_0x31c3a8[_0x451abb('0x758')][_0x451abb('0x321')](_0x1853bd['query'],_0x454c72)['$promise']);}function _0x35f61f(_0x1af0e9,_0x580228){var _0x481bcb=_0x4de168;_0x5ef5da[_0x481bcb('0x853')]({'controller':_0x481bcb('0x1a4'),'controllerAs':'vm','templateUrl':_0x5dff32,'parent':angular[_0x481bcb('0x1676')](_0x33d287[_0x481bcb('0x2452')]),'targetEvent':_0x1af0e9,'clickOutsideToClose':!![],'locals':{'list':_0x580228,'lists':_0x1853bd[_0x481bcb('0x1972')][_0x481bcb('0x1b33')],'license':_0x1853bd[_0x481bcb('0x2ff')],'setting':_0x1853bd[_0x481bcb('0x21e')],'crudPermissions':_0x1853bd['crudPermissions']}});}function _0x2cb270(_0x50cd5e){var _0x25d81b=_0x4de168;_0x31c3a8[_0x25d81b('0x11e0')][_0x25d81b('0x1164')]({'id':_0x50cd5e['id']})[_0x25d81b('0x1376')][_0x25d81b('0x21ad')](function(){var _0x21892b=_0x25d81b;_0x86640f()[_0x21892b('0x16a2')](_0x1853bd[_0x21892b('0x1972')][_0x21892b('0x1b33')],{'id':_0x50cd5e['id']}),_0x1853bd[_0x21892b('0x1972')][_0x21892b('0x205f')]-=0x1,!_0x1853bd['lists'][_0x21892b('0x1b33')]['length']&&_0x1853bd[_0x21892b('0x130')](),_0x1e55ef[_0x21892b('0xdb1')]({'title':_0x86640f()[_0x21892b('0x2159')](_0x21892b('0x9cf'))+_0x21892b('0xe64'),'msg':_0x50cd5e[_0x21892b('0x19fe')]?_0x50cd5e[_0x21892b('0x19fe')]+_0x21892b('0xb4a'):''});})[_0x25d81b('0x1c1d')](function(_0x177b9d){var _0x5a5d07=_0x25d81b;if(_0x177b9d['data']&&_0x177b9d[_0x5a5d07('0x11c2')][_0x5a5d07('0x1a69')]&&_0x177b9d['data'][_0x5a5d07('0x1a69')][_0x5a5d07('0x577')]){_0x1853bd[_0x5a5d07('0x1a69')]=_0x177b9d[_0x5a5d07('0x11c2')]['errors']||[{'message':_0x177b9d['toString'](),'type':_0x5a5d07('0x1577')}];for(var _0x4eb779=0x0;_0x4eb779<_0x177b9d[_0x5a5d07('0x11c2')]['errors']['length'];_0x4eb779++){_0x1e55ef['error']({'title':_0x177b9d[_0x5a5d07('0x11c2')][_0x5a5d07('0x1a69')][_0x4eb779][_0x5a5d07('0x7fa')],'msg':_0x177b9d[_0x5a5d07('0x11c2')]['errors'][_0x4eb779][_0x5a5d07('0x1224')]});}}else _0x1e55ef['error']({'title':_0x177b9d[_0x5a5d07('0x209')]?_0x5a5d07('0x22d')+_0x177b9d[_0x5a5d07('0x209')]+_0x5a5d07('0xa99')+_0x177b9d['statusText']:_0x5a5d07('0x1577'),'msg':_0x177b9d[_0x5a5d07('0x11c2')]?JSON[_0x5a5d07('0x25e')](_0x177b9d[_0x5a5d07('0x11c2')][_0x5a5d07('0x1224')]):_0x177b9d[_0x5a5d07('0x1224')]||_0x177b9d[_0x5a5d07('0x174f')]()});});}function _0x574732(){var _0x11567c=_0x4de168,_0x50c2ca=angular['copy'](_0x1853bd[_0x11567c('0x228f')]);return _0x1853bd[_0x11567c('0x228f')]=[],_0x50c2ca;}function _0xe2b34c(_0x1a93ef){var _0x4e2c06=_0x4de168,_0x3ca57b=_0x5ef5da[_0x4e2c06('0xa33')]()[_0x4e2c06('0x4b4')](_0x4e2c06('0x1e38'))[_0x4e2c06('0x276b')](''+_0x1853bd['selectedLists'][_0x4e2c06('0x577')]+_0x4e2c06('0xd74')+_0x4e2c06('0x25e0'))[_0x4e2c06('0x7a7')]('delete\x20Lists')[_0x4e2c06('0x1e6d')](_0x1a93ef)['ok']('OK')[_0x4e2c06('0x3b5')](_0x4e2c06('0x284b'));_0x5ef5da[_0x4e2c06('0x853')](_0x3ca57b)[_0x4e2c06('0x21ad')](function(){var _0x91c3d2=_0x4e2c06;_0x1853bd[_0x91c3d2('0x228f')]['forEach'](function(_0x5412ed){_0x2cb270(_0x5412ed);}),_0x1853bd[_0x91c3d2('0x228f')]=[];});}function _0x2708ae(){var _0x3baa09=_0x4de168;_0x1853bd[_0x3baa09('0x228f')]=[];}function _0x4c617c(){var _0x1ba00c=_0x4de168;_0x1853bd[_0x1ba00c('0x228f')]=_0x1853bd[_0x1ba00c('0x1972')][_0x1ba00c('0x1b33')];}}const _0x1430a8=_0x3bc8cb,_0x36fe52=_0x398308['p']+'src/js/modules/main/apps/contactmanager/views/lists/lists.html/lists-[chunkhash].html',_0x4525f1=_0x398308['p']+_0x3877e3('0x1d8b'),_0x38e169=_0x398308['p']+'src/js/modules/main/apps/contactmanager/views/companies/companies.html/companies-[chunkhash].html',_0x275a91=_0x398308['p']+_0x3877e3('0x26ef'),_0x1d35d2=_0x398308['p']+'src/js/modules/main/apps/contactmanager/views/globalCustomFields/globalCustomFields.html/globalCustomFields-[chunkhash].html';_0x2123e0[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c'),'$translatePartialLoaderProvider'];function _0x2123e0(_0x54b423,_0x5d4bcf){var _0x16809e=_0x3877e3;_0x54b423[_0x16809e('0x27e')](_0x16809e('0xf0f'),{'abstract':!![],'url':'/contactmanager'})['state'](_0x16809e('0x218e'),{'url':_0x16809e('0x1b48'),'views':{'content@app':{'templateUrl':_0x36fe52,'controller':'ListsController\x20as\x20vm'}},'resolve':{'lists':[_0x16809e('0x354'),_0x16809e('0x15bc'),function _0x1f8d60(_0x568236,_0x574607){var _0x5cd7d8=_0x16809e;return _0x574607[_0x5cd7d8('0x21de')](_0x5cd7d8('0x1bd8'))?_0x568236['resolve'](_0x5cd7d8('0x265c'),{'fields':_0x5cd7d8('0x34d'),'sort':_0x5cd7d8('0x33'),'limit':0xa,'offset':0x0}):_0x568236[_0x5cd7d8('0x8ac')](_0x5cd7d8('0x52f'),{'id':_0x574607['getCurrentUser']()[_0x5cd7d8('0x1618')],'section':_0x5cd7d8('0xd8d'),'fields':_0x5cd7d8('0x34d'),'sort':_0x5cd7d8('0x33'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x16809e('0x354'),_0x16809e('0x15bc'),function _0x329f3e(_0x993738,_0x2b4ff7){var _0x1f22dd=_0x16809e;return _0x2b4ff7[_0x1f22dd('0x21de')](_0x1f22dd('0x1bd8'))?null:_0x993738[_0x1f22dd('0x8ac')](_0x1f22dd('0x1e1d'),{'fields':'id,name,crudPermissions','id':_0x2b4ff7[_0x1f22dd('0x15ed')]()['userProfileId']});}],'userProfileSection':[_0x16809e('0x354'),_0x16809e('0x15bc'),function _0x148b1a(_0x33734e,_0x38b36b){var _0x2b41eb=_0x16809e;return _0x38b36b[_0x2b41eb('0x21de')](_0x2b41eb('0x1bd8'))?null:_0x33734e[_0x2b41eb('0x8ac')](_0x2b41eb('0x222f'),{'fields':_0x2b41eb('0x1852'),'userProfileId':_0x38b36b[_0x2b41eb('0x15ed')]()[_0x2b41eb('0x1618')],'sectionId':0x12d});}]},'authenticate':!![],'permissionId':0x12d,'bodyClass':_0x16809e('0x1461')})[_0x16809e('0x27e')]('app.contactmanager.lists.edit',{'url':_0x16809e('0x17f5'),'params':{'list':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4525f1,'controller':_0x16809e('0x560')}},'resolve':{'list':[_0x16809e('0x354'),_0x16809e('0x114e'),function _0x25abcc(_0x1de777,_0x1e7196){var _0x287c34=_0x16809e;return _0x1de777['resolve'](_0x287c34('0x265c'),{'fields':_0x287c34('0x34d'),'id':_0x1e7196['id']});}],'userProfileSection':[_0x16809e('0x354'),'Auth',function _0x54cdf6(_0x47aa57,_0x44ae73){var _0x1a9397=_0x16809e;return _0x47aa57[_0x1a9397('0x8ac')]('userProfileSection@get',{'fields':_0x1a9397('0x1852'),'userProfileId':_0x44ae73['getCurrentUser']()[_0x1a9397('0x1618')],'sectionId':0x12d});}]},'authenticate':!![],'permissionId':0x12d,'bodyClass':_0x16809e('0x1461')})[_0x16809e('0x27e')](_0x16809e('0x1c9e'),{'url':_0x16809e('0xbe0'),'views':{'content@app':{'templateUrl':_0x38e169,'controller':_0x16809e('0xee0')}},'resolve':{'companies':['apiResolver','Auth',function _0x138dc2(_0x10887e,_0x539443){var _0x2d8f92=_0x16809e;return _0x539443['hasRole'](_0x2d8f92('0x1bd8'))?_0x10887e['resolve']('cmCompany@get',{'fields':_0x2d8f92('0x61a'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x10887e[_0x2d8f92('0x8ac')](_0x2d8f92('0x52f'),{'id':_0x539443['getCurrentUser']()['userProfileId'],'section':'Companies','fields':_0x2d8f92('0x61a'),'sort':_0x2d8f92('0x33'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function _0x4c62bb(_0x2dd332,_0x4ac858){var _0x1c7857=_0x16809e;return _0x4ac858[_0x1c7857('0x21de')]('admin')?null:_0x2dd332[_0x1c7857('0x8ac')](_0x1c7857('0x1e1d'),{'fields':_0x1c7857('0x1a00'),'id':_0x4ac858[_0x1c7857('0x15ed')]()[_0x1c7857('0x1618')]});}],'userProfileSection':[_0x16809e('0x354'),_0x16809e('0x15bc'),function _0x29337c(_0x5ae8ed,_0xceba90){var _0x2a96eb=_0x16809e;return _0xceba90[_0x2a96eb('0x21de')](_0x2a96eb('0x1bd8'))?null:_0x5ae8ed['resolve'](_0x2a96eb('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xceba90[_0x2a96eb('0x15ed')]()[_0x2a96eb('0x1618')],'sectionId':0x12e});}]},'authenticate':!![],'permissionId':0x12e,'bodyClass':_0x16809e('0x1461')})[_0x16809e('0x27e')](_0x16809e('0x271b'),{'url':'/:id?tab','params':{'company':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x275a91,'controller':_0x16809e('0xc98')}},'resolve':{'company':[_0x16809e('0x354'),_0x16809e('0x114e'),function _0x5c5921(_0x33ef6f,_0x2dce31){var _0x3b5ebc=_0x16809e;return _0x33ef6f[_0x3b5ebc('0x8ac')](_0x3b5ebc('0x1bfd'),{'fields':'createdAt,updatedAt,id,name,phone,vat,fax,companyId,type,website,emailDomain,email,description,sStreet,sPostalCode,sCity,sCountry,street,postalCode,city,country','id':_0x2dce31['id']});}],'userProfileSection':[_0x16809e('0x354'),_0x16809e('0x15bc'),function _0x4700bf(_0x10ee08,_0x123e0c){var _0x628484=_0x16809e;return _0x10ee08[_0x628484('0x8ac')]('userProfileSection@get',{'fields':_0x628484('0x1852'),'userProfileId':_0x123e0c[_0x628484('0x15ed')]()[_0x628484('0x1618')],'sectionId':0x12e});}]},'authenticate':!![],'permissionId':0x12e,'bodyClass':_0x16809e('0x1461')})[_0x16809e('0x27e')](_0x16809e('0x1a27'),{'url':'/globalCustomFields','views':{'content@app':{'templateUrl':_0x1d35d2,'controller':_0x16809e('0x26ab')}},'resolve':{'globalCustomFields':[_0x16809e('0x354'),function _0x43e5b4(_0x116d53){var _0x3480ff=_0x16809e;return _0x116d53[_0x3480ff('0x8ac')](_0x3480ff('0x44f'),{'fields':'createdAt,updatedAt,id,alias,type,values,required,clickToAction,actionType','sort':_0x3480ff('0x33'),'ListId':_0x3480ff('0x27a'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x16809e('0x354'),_0x16809e('0x15bc'),function _0x1572f0(_0x4d8a53,_0x55097f){var _0x7e9a60=_0x16809e;return _0x55097f['hasRole'](_0x7e9a60('0x1bd8'))?null:_0x4d8a53[_0x7e9a60('0x8ac')](_0x7e9a60('0x1e1d'),{'fields':_0x7e9a60('0x1a00'),'id':_0x55097f[_0x7e9a60('0x15ed')]()['userProfileId']});}],'userProfileSection':[_0x16809e('0x354'),_0x16809e('0x15bc'),function _0x4274f4(_0x31a210,_0x2557db){var _0x4790ab=_0x16809e;return _0x2557db[_0x4790ab('0x21de')](_0x4790ab('0x1bd8'))?null:_0x31a210[_0x4790ab('0x8ac')]('userProfileSection@get',{'fields':_0x4790ab('0x1852'),'userProfileId':_0x2557db[_0x4790ab('0x15ed')]()[_0x4790ab('0x1618')],'sectionId':0x130});}]},'authenticate':!![],'permissionId':0x130,'bodyClass':_0x16809e('0x1461')}),_0x5d4bcf['addPart']('app/main/apps/contactmanager');}angular[_0x3877e3('0x20d5')](_0x3877e3('0xf0f'),[_0x3877e3('0x240c'),'ngPassword',_0x3877e3('0xca'),_0x3877e3('0x1d76'),'mdColorPicker','ckeditor',_0x3877e3('0x1182'),_0x3877e3('0x264a'),_0x3877e3('0x19'),_0x3877e3('0x335'),'mwFormBuilder',_0x3877e3('0x56d'),_0x3877e3('0xe2f'),_0x3877e3('0x10c'),'angular-cron-jobs',_0x3877e3('0xe39'),_0x3877e3('0x25a2'),'material.components.expansionPanels',_0x3877e3('0x9e0'),'angular.filter',_0x3877e3('0xc19')])[_0x3877e3('0x13')](_0x2123e0)[_0x3877e3('0x1d5a')](_0x3877e3('0x7ac'),_0x5aa68b)[_0x3877e3('0x1d5a')](_0x3877e3('0x2721'),_0x2ba778)[_0x3877e3('0x1d5a')](_0x3877e3('0x16ba'),_0x577972)[_0x3877e3('0x1d5a')](_0x3877e3('0xa23'),_0x15c5d2)[_0x3877e3('0x1d5a')](_0x3877e3('0x4d4'),_0x45f66c)[_0x3877e3('0x1d5a')](_0x3877e3('0x1a4'),_0x56aa52)[_0x3877e3('0x1d5a')](_0x3877e3('0x12a1'),_0x3f49d1)[_0x3877e3('0x1d5a')](_0x3877e3('0xb26'),_0xd4f428)['controller'](_0x3877e3('0xce9'),_0x16b762)[_0x3877e3('0x1d5a')]('ListController',_0x5b289e)['controller'](_0x3877e3('0x1f21'),_0x2d76f5)[_0x3877e3('0x1d5a')](_0x3877e3('0x2666'),_0x1430a8),_0x7a9021[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$timeout',_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x24e1'),'$translate',_0x3877e3('0xccd'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0x15bc'),'socket',_0x3877e3('0x1908'),_0x3877e3('0xcb5'),_0x3877e3('0x10d0')];function _0x7a9021(_0xcd1157,_0x28a839,_0x2d06d8,_0x1d5734,_0x19379b,_0x285d32,_0x2a5845,_0x15dc28,_0x518b09,_0x1076ac,_0x57c0be,_0x26640e,_0x52c3b6,_0x563409){var _0x55cbbc=_0x3877e3,_0x1c4883=this;_0x1c4883[_0x55cbbc('0x123f')]=_0x1076ac[_0x55cbbc('0x15ed')](),_0x1c4883[_0x55cbbc('0xcb5')]=_0x52c3b6?_0x52c3b6:[],_0x1c4883['dispositions']=_0x563409,_0x1c4883[_0x55cbbc('0x156e')]={'count':0x0,'rows':[]},_0x1c4883[_0x55cbbc('0x246f')]=![],_0x1c4883[_0x55cbbc('0x14f')]=!![],_0x1c4883[_0x55cbbc('0x758')]=_0x15dc28,_0x1c4883[_0x55cbbc('0xab4')]=_0x518b09&&_0x518b09[_0x55cbbc('0x205f')]==0x1?_0x518b09[_0x55cbbc('0x1b33')][0x0]:null,_0x1c4883[_0x55cbbc('0x5ed')]=_0x1076ac[_0x55cbbc('0x1778')](_0x1c4883[_0x55cbbc('0xab4')]?_0x1c4883[_0x55cbbc('0xab4')][_0x55cbbc('0x5ed')]:null),_0x1c4883[_0x55cbbc('0x77')]={'fields':_0x55cbbc('0x7dc'),'type':_0x55cbbc('0x923'),'queuecallerexitreason':_0x55cbbc('0x330')+','+_0x55cbbc('0x20ee'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x1c4883['getAbandonedCalls']=_0x265645,_0x1c4883['refreshAbandonedCalls']=_0x5df508,_0x1c4883[_0x55cbbc('0xf45')]=_0x46b145,_0x1c4883[_0x55cbbc('0x1ab7')]=_0x42b82e,_0x1c4883[_0x55cbbc('0x6a8')]=_0x1190e2,_0x1c4883[_0x55cbbc('0x2202')]=_0x558613,_0x57c0be['onWithoutApply'](_0x55cbbc('0x1bf5'),_0x1c4883[_0x55cbbc('0x6a8')]),_0x57c0be['on']('voiceQueueReport:update',_0x1c4883[_0x55cbbc('0x2202')]),_0x4cb048();function _0x4cb048(){var _0x145f54=_0x55cbbc,_0x297362=_0x19379b['localStorage']['getItem'](_0x145f54('0xac8')+_0x1c4883[_0x145f54('0x123f')]['id']);if(_0x297362)_0x297362=JSON[_0x145f54('0x399')](_0x297362),_0x297362&&_0x297362[_0x145f54('0x77')]&&(_0x1c4883[_0x145f54('0x77')]=_0x86640f()['merge'](_0x297362[_0x145f54('0x77')],_0x86640f()[_0x145f54('0x27b1')](_0x1c4883[_0x145f54('0x77')],['sort',_0x145f54('0x1f4a'),_0x145f54('0x2376')])),_0x1c4883[_0x145f54('0x77')]=_0x86640f()[_0x145f54('0x27b1')](_0x1c4883[_0x145f54('0x77')],'filter'));else{var _0x21338f={'$gte':_0x1088bc()()[_0x145f54('0x1982')]('month')[_0x145f54('0x215e')](0x0,!![])['format'](),'$lte':_0x1088bc()()[_0x145f54('0x117b')]('month')[_0x145f54('0x215e')](0x0,!![])[_0x145f54('0x153')]()};_0x1c4883['query'][_0x145f54('0x23ae')]=_0x21338f;}_0x1076ac[_0x145f54('0x21de')](_0x145f54('0x1bd8'))?_0x2a5845['user'][_0x145f54('0x71c')]({'id':_0x1076ac['getCurrentUser']()['id'],'fields':'id,name','channel':_0x145f54('0x8ed'),'type':_0x145f54('0x923'),'nolimit':!![]})['$promise']['then'](function(_0x6ed9c8){var _0x22abcf=_0x145f54;_0x1c4883[_0x22abcf('0xb7a')]=_0x6ed9c8||{'count':0x0,'rows':[]},_0x1c4883[_0x22abcf('0x6d3')]=_0x86640f()[_0x22abcf('0x9e7')](_0x86640f()[_0x22abcf('0xcde')](_0x1c4883[_0x22abcf('0xb7a')]['rows'],_0x22abcf('0x19fe')),_0x22abcf('0x19fe'));})[_0x145f54('0x1c1d')](function(_0x4dee6b){var _0x20127b=_0x145f54;console[_0x20127b('0x2092')](_0x4dee6b);})[_0x145f54('0x13e')](function(){var _0x5008fb=_0x145f54;_0x1c4883[_0x5008fb('0x2255')]=_0x43cce9(),_0x1c4883[_0x5008fb('0x2796')]();}):_0x2a5845[_0x145f54('0x758')]['getResources']({'id':_0x1c4883[_0x145f54('0x123f')][_0x145f54('0x1618')],'section':'VoiceQueues','channel':_0x145f54('0x8ed'),'type':_0x145f54('0x923'),'sort':_0x145f54('0x33'),'nolimit':!![]})[_0x145f54('0x1376')][_0x145f54('0x21ad')](function(_0x28b6c2){var _0x4711db=_0x145f54;_0x1c4883['queues']=_0x28b6c2||{'count':0x0,'rows':[]},_0x1c4883[_0x4711db('0x6d3')]=_0x86640f()[_0x4711db('0x9e7')](_0x86640f()[_0x4711db('0xcde')](_0x1c4883[_0x4711db('0xb7a')][_0x4711db('0x1b33')],'name'),_0x4711db('0x19fe'));})['catch'](function(_0x5ae368){console['error'](_0x5ae368);})[_0x145f54('0x13e')](function(){var _0x4122f8=_0x145f54;_0x1c4883[_0x4122f8('0x2255')]=_0x43cce9(),_0x1c4883[_0x4122f8('0x2796')]();});}function _0x43cce9(){var _0x72b74b=_0x55cbbc;return[{'name':_0x72b74b('0x18a1'),'key':'createdAt','type':_0x72b74b('0x2457'),'label':_0x72b74b('0x1d04')},{'name':_0x72b74b('0x1a44'),'key':_0x72b74b('0xacf'),'type':_0x72b74b('0x2844'),'label':_0x72b74b('0x115d'),'options':_0x1c4883['agents'][_0x72b74b('0x1b33')],'customOptions':[{'value':_0x72b74b('0x1015'),'translate':_0x72b74b('0x1932')},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':'Campaign','key':_0x72b74b('0xbdd'),'type':_0x72b74b('0x91f'),'label':_0x72b74b('0x249b'),'options':_0x1c4883['queues'][_0x72b74b('0x1b33')]}];}function _0x265645(){var _0x3735eb=_0x55cbbc;_0x1c4883[_0x3735eb('0x14f')]=![],_0x1c4883[_0x3735eb('0xb7a')][_0x3735eb('0x205f')]>0x0?(_0x1c4883[_0x3735eb('0x77')][_0x3735eb('0xbdd')]=_0x1c4883[_0x3735eb('0xb7a')][_0x3735eb('0x205f')]===0x1?_0x1c4883[_0x3735eb('0xb7a')]['rows'][0x0]['name']:_0x1c4883['query']['queue'],_0x1c4883['query'][_0x3735eb('0x15a5')]=(_0x1c4883[_0x3735eb('0x77')][_0x3735eb('0x2376')]-0x1)*_0x1c4883[_0x3735eb('0x77')][_0x3735eb('0x1f4a')],_0x19379b['localStorage']['setItem']('motion2.realtime.abandoned.voice.abandonedCalls:'+_0x1c4883[_0x3735eb('0x123f')]['id'],JSON[_0x3735eb('0x25e')]({'query':_0x86640f()[_0x3735eb('0x27b1')](_0x1c4883[_0x3735eb('0x77')],_0x3735eb('0xbdd'))})),_0x1c4883['promise']=_0x2a5845[_0x3735eb('0x1ac1')][_0x3735eb('0x2568')](_0x1c4883['query'],_0x30e3bf)['$promise']):_0x30e3bf(null);}function _0x30e3bf(_0x4a1d5e){var _0x40eb41=_0x55cbbc;_0x1c4883[_0x40eb41('0x156e')]=_0x4a1d5e||{'count':0x0,'rows':[]},_0x1c4883[_0x40eb41('0x14f')]=!![];}function _0x5df508(){var _0x4ce085=_0x55cbbc;_0x1c4883[_0x4ce085('0x246f')]=![],_0x1c4883[_0x4ce085('0x2796')]();}function _0x1190e2(_0x4a77d4){var _0x49916d=_0x55cbbc,_0xa79e6f='inbound';_0x4a77d4&&_0x1c4883[_0x49916d('0x6d3')]&&_0x1c4883[_0x49916d('0x77')][_0x49916d('0x7fa')]===_0xa79e6f&&_0x1c4883['queuesMap'][_0x4a77d4['queue']]&&(_0x1c4883[_0x49916d('0x246f')]=!![]);}function _0x558613(_0x4b2c62){var _0x52a8ba=_0x55cbbc;if(_0x4b2c62){var _0x23c872=_0x86640f()['findIndex'](_0x1c4883[_0x52a8ba('0x156e')]['rows'],['id',_0x4b2c62['id']]);_0x23c872>=0x0&&_0x86640f()[_0x52a8ba('0xd0e')](_0x1c4883[_0x52a8ba('0x156e')][_0x52a8ba('0x1b33')][_0x23c872],_0x4b2c62);}}function _0x46b145(_0xb87b20,_0x383810){var _0x21edc5=_0x55cbbc;_0xb87b20&&_0x2a5845['voiceQueueReport'][_0x21edc5('0x5ef')]({'id':_0xb87b20['id'],'lastAssignedTo':_0x383810?_0x383810[_0x21edc5('0x19fe')]:null,'assigned':_0x383810?!![]:![]})[_0x21edc5('0x1376')]['catch'](function(_0x3e5c61){var _0x2c663d=_0x21edc5;console[_0x2c663d('0x6fb')](_0x3e5c61);});}function _0x42b82e(_0x20213d){var _0x336e6d=_0x55cbbc;_0x2d06d8[_0x336e6d('0x853')]({'controller':'DisposeAbandonedCallDialogController','controllerAs':'vm','templateUrl':'app/main/apps/dashboards/views/general/agent/home/abandoned/dispose/dialog.html','parent':angular[_0x336e6d('0x1676')](_0x1d5734[_0x336e6d('0x2452')]),'targetEvent':_0x20213d,'resolve':{'globalDispositions':[_0x336e6d('0x354'),function _0x55cf18(_0x1e34ca){var _0x6a938c=_0x336e6d;return _0x1e34ca[_0x6a938c('0x8ac')](_0x6a938c('0x13a3'),{'MailAccountId':'null','FaxAccountId':_0x6a938c('0x27a'),'SmsAccountId':_0x6a938c('0x27a'),'WhatsappAccountId':'null','OpenchannelAccountId':_0x6a938c('0x27a'),'ChatWebsiteId':'null','ListId':_0x6a938c('0x27a')});}]},'locals':{'dispositions':_0x1c4883[_0x336e6d('0x10d0')],'call':_0x20213d}})[_0x336e6d('0x21ad')](function(_0x238f16){var _0x3aa046=_0x336e6d;if(_0x238f16){var _0x997748={'id':_0x20213d['id'],'disposition':_0x238f16[_0x3aa046('0xedf')]||null,'secondDisposition':_0x238f16['secondLevel']||null,'thirdDisposition':_0x238f16[_0x3aa046('0x2115')]||null};_0x2a5845['voiceQueueReport']['update'](_0x997748)[_0x3aa046('0x1376')][_0x3aa046('0x1c1d')](function(_0x2a9e0e){var _0x291f27=_0x3aa046;console[_0x291f27('0x6fb')](_0x2a9e0e);});}});}var _0x29be75=!![],_0x429885=0x1;_0xcd1157[_0x55cbbc('0x10e8')](_0x55cbbc('0x1948'),function(_0x8889f2,_0x26d2b9){var _0xea08d1=_0x55cbbc;_0x29be75?_0x28a839(function(){_0x29be75=![];}):(!_0x26d2b9&&(_0x429885=_0x1c4883['query'][_0xea08d1('0x2376')]),_0x8889f2!==_0x26d2b9&&(_0x1c4883[_0xea08d1('0x77')][_0xea08d1('0x2376')]=0x1),!_0x8889f2&&(_0x1c4883[_0xea08d1('0x77')][_0xea08d1('0x2376')]=_0x429885),_0x1c4883['getAbandonedCalls']());}),_0xcd1157[_0x55cbbc('0x1723')]('$destroy',function(){var _0x14787c=_0x55cbbc;_0x57c0be['removeAllListeners']('voiceQueueReport:save'),_0x57c0be['removeAllListeners'](_0x14787c('0x1a3a'));});}const _0x29fcc1=_0x7a9021;_0x26813f[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$q',_0x3877e3('0x2313'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x143b'),_0x3877e3('0x1fc7'),'agents',_0x3877e3('0x165c'),'api',_0x3877e3('0x25d8'),_0x3877e3('0x1908'),_0x3877e3('0x2703'),'userProfile','userProfileSection',_0x3877e3('0x15bc'),'license',_0x3877e3('0x1e8d')];function _0x26813f(_0x113926,_0x30f1c3,_0x3c703b,_0x4285a7,_0x2d3806,_0x5043b1,_0x4591df,_0x3eb7f5,_0x363de3,_0x394697,_0x505c6a,_0x876313,_0x21759a,_0x414f8e,_0x471fae,_0x44b824,_0xb261f6,_0x77a94d){var _0x5d7e83=_0x3877e3,_0x396482=this,_0x3b2a1e=['userpic',_0x5d7e83('0x1ecb'),_0x5d7e83('0x190e'),_0x5d7e83('0x1a2c'),_0x5d7e83('0x1f37'),_0x5d7e83('0x1a2c'),'internal','address',_0x5d7e83('0x1785'),_0x5d7e83('0x2022'),_0x5d7e83('0x1396'),_0x5d7e83('0x2826'),'whatsappPause',_0x5d7e83('0x23f5'),_0x5d7e83('0x1025'),_0x5d7e83('0x1887'),_0x5d7e83('0x9db'),_0x5d7e83('0x10e4'),_0x5d7e83('0xac0'),_0x5d7e83('0x1570'),_0x5d7e83('0xa28'),_0x5d7e83('0x18a6'),_0x5d7e83('0x1ce9'),'mailCurrentCapacity',_0x5d7e83('0x8db'),'whatsappCurrentCapacity',_0x5d7e83('0x1317'),_0x5d7e83('0x1cf9'),'openchannelStatus',_0x5d7e83('0x1d70'),'smsStatus',_0x5d7e83('0x1b28'),'faxStatus','voiceStatus',_0x5d7e83('0x1ffc'),'openchannelStatusTime',_0x5d7e83('0xf73'),_0x5d7e83('0x1a1'),_0x5d7e83('0x18fb'),_0x5d7e83('0x27b6'),'voiceStatusTime',_0x5d7e83('0xbdd'),'destconnectedlinenum',_0x5d7e83('0x17f4'),_0x5d7e83('0x1d44'),'phoneBarEnableAutomaticScreenRecording'],_0x52a051=['chatPause',_0x5d7e83('0x2022'),_0x5d7e83('0x1396'),_0x5d7e83('0x2826'),_0x5d7e83('0x14bf'),_0x5d7e83('0x23f5'),_0x5d7e83('0x1025'),_0x5d7e83('0x1ecb')];_0x396482['currentUser']=_0x44b824['getCurrentUser'](),_0x396482[_0x5d7e83('0x16b3')]=['ringing',_0x5d7e83('0x1d37'),'busy',_0x5d7e83('0x22b1'),'not_inuse'],_0x396482[_0x5d7e83('0x1fc7')]=_0x4591df||{'count':0x0,'rows':[]},_0x396482[_0x5d7e83('0x2ff')]=_0xb261f6,_0x396482[_0x5d7e83('0x758')]=_0x414f8e,_0x396482[_0x5d7e83('0xab4')]=_0x471fae&&_0x471fae['count']==0x1?_0x471fae['rows'][0x0]:null,_0x396482[_0x5d7e83('0x5ed')]=_0x44b824['parseCrudPermissions'](_0x396482[_0x5d7e83('0xab4')]?_0x396482[_0x5d7e83('0xab4')][_0x5d7e83('0x5ed')]:null),_0x396482[_0x5d7e83('0xcb5')]=_0x3eb7f5?_0x86640f()[_0x5d7e83('0xcde')](_0x3eb7f5[_0x5d7e83('0x1b33')]?_0x3eb7f5[_0x5d7e83('0x1b33')]:[],'id'):{},_0x396482['rpcAgents']=_0x363de3?_0x86640f()[_0x5d7e83('0xcde')](_0x363de3[_0x5d7e83('0x1b33')]?_0x363de3[_0x5d7e83('0x1b33')]:[],'id'):{},_0x396482['paginatedAgents']={},_0x396482[_0x5d7e83('0x20ad')]=![],_0x396482[_0x5d7e83('0x2752')]=[],_0x396482[_0x5d7e83('0x24ee')]={};for(var _0x28dc19 in _0x396482[_0x5d7e83('0xcb5')]){typeof _0x396482[_0x5d7e83('0xcb5')][_0x28dc19]!==_0x5d7e83('0xddc')&&(_0x396482[_0x5d7e83('0xcb5')][_0x28dc19][_0x5d7e83('0x1d75')]=!![]);}_0x396482[_0x5d7e83('0x77')]={'limit':0xa,'page':0x1,'order':_0x5d7e83('0x20f5'),'globalStatusFilter':'','pauseTypeFilter':''},_0x396482[_0x5d7e83('0xda3')]=_0x591fed,_0x396482[_0x5d7e83('0x9e9')]=_0x52eb0c,_0x396482[_0x5d7e83('0x1e26')]=_0x202a57,_0x396482[_0x5d7e83('0x17d')]=_0x4941dd,_0x396482[_0x5d7e83('0xa45')]=_0x55d072,_0x396482[_0x5d7e83('0x106')]=_0xd2c68f,_0x396482['getAgentGlobalStatus']=_0x694675,_0x396482[_0x5d7e83('0xca6')]=_0x57627f,_0x396482[_0x5d7e83('0x1044')]=_0x163678,_0x396482[_0x5d7e83('0x1ad7')]=_0x3dd9fd,_0x396482[_0x5d7e83('0x1b74')]=_0x389453,_0x396482[_0x5d7e83('0x27d7')]=_0x29d01f,_0x396482[_0x5d7e83('0x1081')]=_0x2a144c,_0x396482['onConnect']=_0x3c3cd5,_0x396482['onComplete']=_0x898a61,_0x396482['screenRecording']=_0x4ba9d3,_0x505c6a['on'](_0x5d7e83('0x62b'),_0x396482['onSave']),_0x505c6a['on']('user:update',_0x396482['onUpdate']),_0x505c6a['on']('user:agentconnect',_0x396482[_0x5d7e83('0x7e0')]),_0x505c6a['on'](_0x5d7e83('0x1131'),_0x396482[_0x5d7e83('0xebf')]),_0x2a144c();var _0x3a5fe4=_0x77a94d(function(){var _0x1e25fd=_0x5d7e83;_0x396482[_0x1e25fd('0x20ad')]&&(_0x396482[_0x1e25fd('0x20ad')]=![],_0x2a144c());},0x3e7);function _0x2a144c(){var _0x49dc9d=_0x5d7e83;_0x396482[_0x49dc9d('0x20ad')]=![];var _0x31a158=_0x30f1c3['defer']();_0x396482['promise']=_0x31a158[_0x49dc9d('0x71b')],_0x396482[_0x49dc9d('0x1782')]=[],_0x396482[_0x49dc9d('0x2752')]=[],_0x86640f()[_0x49dc9d('0xd54')](_0x396482[_0x49dc9d('0xcb5')],function(_0x51c051,_0x2246f3){var _0x39938f=_0x49dc9d;_0x396482['rpcAgents'][_0x2246f3]&&_0x86640f()[_0x39938f('0xd0e')](_0x51c051,_0x86640f()['pick'](_0x86640f()['omit'](_0x396482[_0x39938f('0x165c')][_0x2246f3],_0x52a051),_0x3b2a1e)),_0x694675(_0x51c051),_0x51c051['online']?(_0x396482['filteredAgents'][_0x39938f('0x206c')](_0x51c051),_0x396482['agentInternal'][_0x51c051[_0x39938f('0x201f')]]=_0x2246f3):_0x51c051[_0x39938f('0x1ea5')]=_0x86640f()[_0x39938f('0x1662')](_0x1088bc()()[_0x39938f('0x153')]('x'));});_0x396482[_0x49dc9d('0x77')][_0x49dc9d('0xcfb')]&&_0x86640f()[_0x49dc9d('0x16a2')](_0x396482[_0x49dc9d('0x1782')],function(_0x202225){var _0x5774ff=_0x49dc9d;return _0x202225[_0x5774ff('0x100f')]!==_0x396482['query'][_0x5774ff('0xcfb')];});_0x396482[_0x49dc9d('0x77')][_0x49dc9d('0x1024')]&&_0x86640f()[_0x49dc9d('0x16a2')](_0x396482[_0x49dc9d('0x1782')],function(_0x42f1bd){var _0x5b2e27=_0x49dc9d;return _0x42f1bd['pauseType']!==_0x396482[_0x5b2e27('0x77')]['pauseTypeFilter'];});_0x396482[_0x49dc9d('0x77')][_0x49dc9d('0x1503')]&&_0x86640f()[_0x49dc9d('0x16a2')](_0x396482[_0x49dc9d('0x1782')],function(_0x219b06){var _0x430121=_0x49dc9d;return _0x219b06['fullname'][_0x430121('0xac2')]()[_0x430121('0x2004')](_0x396482[_0x430121('0x77')][_0x430121('0x1503')][_0x430121('0xac2')]())<0x0;});_0x396482[_0x49dc9d('0x1782')]=_0x47dedc(_0x396482[_0x49dc9d('0x1782')]);var _0x3d4491=(_0x396482[_0x49dc9d('0x77')][_0x49dc9d('0x2376')]-0x1)*_0x396482[_0x49dc9d('0x77')]['limit'];_0x396482[_0x49dc9d('0x261a')]=_0x86640f()[_0x49dc9d('0x2189')](_0x396482['filteredAgents'],_0x3d4491)[_0x49dc9d('0xb3d')](0x0,_0x396482[_0x49dc9d('0x77')][_0x49dc9d('0x1f4a')]);for(var _0x2813b2=0x0;_0x2813b2<_0x396482[_0x49dc9d('0x261a')][_0x49dc9d('0x577')];_0x2813b2+=0x1){_0x396482[_0x49dc9d('0x2752')]['push'](_0x396482[_0x49dc9d('0x261a')][_0x2813b2]['id']);}_0x31a158[_0x49dc9d('0x8ac')](),_0x396482[_0x49dc9d('0x20ad')]=!![];}function _0x389453(_0x4a65e4){var _0x5fbc66=_0x5d7e83;_0x396482['agents'][_0x4a65e4['id']]&&(_0x86640f()[_0x5fbc66('0xd0e')](_0x396482['agents'][_0x4a65e4['id']],_0x86640f()[_0x5fbc66('0xc50')](_0x86640f()[_0x5fbc66('0x27b1')](_0x4a65e4,_0x52a051),_0x3b2a1e)),_0x86640f()['merge'](_0x396482[_0x5fbc66('0x165c')][_0x4a65e4['id']],_0x86640f()['pick'](_0x86640f()['omit'](_0x4a65e4,_0x52a051),_0x3b2a1e)),_0x694675(_0x396482['agents'][_0x4a65e4['id']]));}function _0x29d01f(_0x160cec){var _0x304767=_0x5d7e83;_0x396482[_0x304767('0xcb5')][_0x160cec['id']]&&(_0x86640f()['merge'](_0x396482[_0x304767('0xcb5')][_0x160cec['id']],_0x86640f()['pick'](_0x160cec,_0x3b2a1e)),_0x86640f()[_0x304767('0xd0e')](_0x396482[_0x304767('0x165c')][_0x160cec['id']],_0x86640f()['pick'](_0x160cec,_0x3b2a1e)),_0x160cec['lastPauseAt']&&(_0x396482['agents'][_0x160cec['id']][_0x304767('0x1ea5')]=_0x160cec[_0x304767('0x1a2c')],_0x396482['rpcAgents'][_0x160cec['id']][_0x304767('0x1ea5')]=_0x160cec[_0x304767('0x1a2c')]),_0x694675(_0x396482['agents'][_0x160cec['id']]));}function _0x3c3cd5(_0x69b3c8){var _0x1059ec=_0x5d7e83;_0x396482[_0x1059ec('0xcb5')][_0x396482[_0x1059ec('0x24ee')][_0x69b3c8[_0x1059ec('0xe4e')]]]&&(_0x86640f()[_0x1059ec('0xd0e')](_0x396482[_0x1059ec('0xcb5')][_0x396482[_0x1059ec('0x24ee')][_0x69b3c8[_0x1059ec('0xe4e')]]],_0x86640f()['pick'](_0x69b3c8,['queue',_0x1059ec('0xa70')])),_0x86640f()[_0x1059ec('0xd0e')](_0x396482[_0x1059ec('0x165c')][_0x396482[_0x1059ec('0x24ee')][_0x69b3c8[_0x1059ec('0xe4e')]]],_0x86640f()[_0x1059ec('0xc50')](_0x69b3c8,[_0x1059ec('0xbdd'),_0x1059ec('0xa70')])));}function _0x898a61(_0xb127e6){var _0x1174d4=_0x5d7e83;_0x396482[_0x1174d4('0xcb5')][_0x396482[_0x1174d4('0x24ee')][_0xb127e6[_0x1174d4('0xe4e')]]]&&(_0x396482['agents'][_0x396482['agentInternal'][_0xb127e6[_0x1174d4('0xe4e')]]]=_0x86640f()[_0x1174d4('0x27b1')](_0x396482['agents'][_0x396482[_0x1174d4('0x24ee')][_0xb127e6[_0x1174d4('0xe4e')]]],[_0x1174d4('0xbdd'),_0x1174d4('0xa70')]),_0x396482['rpcAgents'][_0x396482[_0x1174d4('0x24ee')][_0xb127e6[_0x1174d4('0xe4e')]]]=_0x86640f()['omit'](_0x396482[_0x1174d4('0x165c')][_0x396482[_0x1174d4('0x24ee')][_0xb127e6[_0x1174d4('0xe4e')]]],[_0x1174d4('0xbdd'),_0x1174d4('0xa70')]));}function _0x591fed(_0x50326b){var _0x4867ab=_0x5d7e83;return _0x394697[_0x4867ab('0x1775')][_0x4867ab('0xda3')]({'id':_0x50326b['id'],'device':'realtime','agent_id':_0x50326b['id'],'agent_name':_0x50326b[_0x4867ab('0x19fe')]})['$promise'][_0x4867ab('0x21ad')](function(){var _0x4d457c=_0x4867ab;_0x876313[_0x4d457c('0xdb1')]({'title':_0x4d457c('0x4b2'),'msg':_0x50326b[_0x4d457c('0x20f5')]+_0x4d457c('0x1f57')}),_0x396482[_0x4d457c('0xcb5')][_0x50326b['id']]&&(_0x396482[_0x4d457c('0xcb5')][_0x50326b['id']]['online']=![]),_0x396482['rpcAgents'][_0x50326b['id']]&&(_0x396482[_0x4d457c('0x165c')][_0x50326b['id']]['online']=![]),_0x2a144c();})['catch'](function(_0x430036){var _0x1cf5ee=_0x4867ab;_0x876313[_0x1cf5ee('0x2092')]({'title':_0x430036['status']?'API:'+_0x430036['status']+_0x1cf5ee('0xa99')+_0x430036[_0x1cf5ee('0x1808')]:_0x1cf5ee('0x1df9'),'msg':_0x430036['data']?JSON[_0x1cf5ee('0x25e')](_0x430036[_0x1cf5ee('0x11c2')]['message']):_0x430036[_0x1cf5ee('0x174f')]()});});}function _0x202a57(_0x4eae48,_0x177da7){var _0x2aec11=_0x5d7e83;return _0x394697[_0x2aec11('0x1775')][_0x2aec11('0x1e26')]({'id':_0x4eae48['id'],'type':_0x177da7})[_0x2aec11('0x1376')][_0x2aec11('0x21ad')](function(_0x1b6d0b){var _0xe0a28=_0x2aec11;_0x396482[_0xe0a28('0xcb5')][_0x4eae48['id']]&&_0x86640f()['merge'](_0x396482[_0xe0a28('0xcb5')][_0x4eae48['id']],_0x86640f()[_0xe0a28('0xc50')](_0x1b6d0b,_0x3b2a1e)),_0x396482[_0xe0a28('0x165c')][_0x4eae48['id']]&&_0x86640f()[_0xe0a28('0xd0e')](_0x396482[_0xe0a28('0x165c')][_0x4eae48['id']],_0x86640f()['pick'](_0x1b6d0b,_0x3b2a1e)),_0x694675(_0x396482[_0xe0a28('0xcb5')][_0x4eae48['id']]);})[_0x2aec11('0x1c1d')](function(_0x1cbf36){var _0x7d07b2=_0x2aec11;_0x876313[_0x7d07b2('0x2092')]({'title':_0x1cbf36[_0x7d07b2('0x209')]?_0x7d07b2('0x22d')+_0x1cbf36[_0x7d07b2('0x209')]+_0x7d07b2('0xa99')+_0x1cbf36['statusText']:'api.staff.save','msg':_0x1cbf36[_0x7d07b2('0x11c2')]?JSON['stringify'](_0x1cbf36[_0x7d07b2('0x11c2')][_0x7d07b2('0x1224')]):_0x1cbf36[_0x7d07b2('0x174f')]()});});}function _0x4941dd(_0x6f7246){var _0x125e17=_0x5d7e83;return _0x394697[_0x125e17('0x1775')][_0x125e17('0xa8e')]({'id':_0x6f7246['id']})[_0x125e17('0x1376')][_0x125e17('0x21ad')](function(_0x56dddc){var _0x500645=_0x125e17;_0x396482['agents'][_0x6f7246['id']]&&_0x86640f()[_0x500645('0xd0e')](_0x396482[_0x500645('0xcb5')][_0x6f7246['id']],_0x86640f()[_0x500645('0xc50')](_0x56dddc,_0x3b2a1e)),_0x396482['rpcAgents'][_0x6f7246['id']]&&_0x86640f()[_0x500645('0xd0e')](_0x396482[_0x500645('0x165c')][_0x6f7246['id']],_0x86640f()[_0x500645('0xc50')](_0x56dddc,_0x3b2a1e)),_0x694675(_0x396482[_0x500645('0xcb5')][_0x6f7246['id']]);})[_0x125e17('0x1c1d')](function(_0x593bcc){var _0x525ac5=_0x125e17;_0x876313['error']({'title':_0x593bcc[_0x525ac5('0x209')]?'API:'+_0x593bcc[_0x525ac5('0x209')]+_0x525ac5('0xa99')+_0x593bcc[_0x525ac5('0x1808')]:_0x525ac5('0x1df9'),'msg':_0x593bcc[_0x525ac5('0x11c2')]?JSON[_0x525ac5('0x25e')](_0x593bcc['data']['message']):_0x593bcc[_0x525ac5('0x174f')]()});});}function _0x55d072(_0x3117a5){var _0x5ada7a=_0x5d7e83;_0x4285a7[_0x5ada7a('0x853')](_0x4285a7[_0x5ada7a('0x95b')]()[_0x5ada7a('0x1226')](!![])[_0x5ada7a('0x4b4')]('Legend')[_0x5ada7a('0x276b')](_0x5ada7a('0xfcf'))['ok']('Ok')[_0x5ada7a('0x1e6d')](_0x3117a5));}function _0x52eb0c(_0x4819b9,_0x3640ed){var _0x3d1d09=_0x5d7e83;_0x4285a7['show']({'controller':_0x3d1d09('0x213f'),'controllerAs':'vm','templateUrl':_0x287ed6,'parent':angular['element'](_0x2d3806[_0x3d1d09('0x2452')]),'targetEvent':_0x3640ed,'clickOutsideToClose':!![],'locals':{'agent':_0x4819b9,'agents':[],'channel':'voice','direction':'inbound','crudPermissions':_0x396482[_0x3d1d09('0x5ed')]}});}function _0x57627f(_0x13a49c){var _0x53d6f9=_0x5d7e83;return _0x13a49c===_0x53d6f9('0x1e26')||_0x13a49c==='*pause';}function _0x163678(_0x5623d0){var _0x25e2aa=_0x5d7e83;return _0x5623d0===_0x25e2aa('0x1e26');}function _0x3dd9fd(_0x1cd232){var _0xe6c5d=_0x5d7e83;return _0x1cd232===_0xe6c5d('0x1a4e');}function _0x98da2(_0xa703c3){var _0x5d1f72=_0x5d7e83;return _0xa703c3===_0x5d1f72('0x219')||_0xa703c3===_0x5d1f72('0x1a4f')||_0xa703c3===_0x5d1f72('0x22fd')||_0xa703c3==='ringing'||_0x86640f()[_0x5d1f72('0x1c7')](_0xa703c3);}function _0xd2c68f(_0xbca62a,_0x5b3cf8){var _0x2cf489=_0x5d7e83;if(_0x5b3cf8===_0x2cf489('0x8ed')){if(_0xbca62a[_0x5b3cf8+_0x2cf489('0x843')]!=='idle')return _0xbca62a[_0x5b3cf8+'Status'];if(_0xbca62a[_0x5b3cf8+_0x2cf489('0xc77')])return _0xbca62a[_0x5b3cf8+'Status']=_0x2cf489('0x1e26'),_0x2cf489('0x1e26');return _0x2cf489('0x219');}else{if(_0xbca62a[_0x5b3cf8+_0x2cf489('0xc77')])return _0xbca62a[_0x5b3cf8+_0x2cf489('0x843')]='pause',_0x2cf489('0x1e26');return _0xbca62a[_0x5b3cf8+_0x2cf489('0x843')];}}function _0x694675(_0x10e71a){var _0x160a80=_0x5d7e83,_0x4db09a=_0x160a80('0x1a4f');if(_0x86640f()[_0x160a80('0xc74')]([_0xd2c68f(_0x10e71a,_0x160a80('0x8ed')),_0xd2c68f(_0x10e71a,_0x160a80('0x1f65')),_0xd2c68f(_0x10e71a,_0x160a80('0x1c8b')),_0xd2c68f(_0x10e71a,_0x160a80('0xac9')),_0xd2c68f(_0x10e71a,_0x160a80('0x3d0')),_0xd2c68f(_0x10e71a,_0x160a80('0x1ad4')),_0xd2c68f(_0x10e71a,_0x160a80('0x93f'))],_0x57627f))_0x4db09a=_0x160a80('0x1e26');else{if(_0x86640f()[_0x160a80('0x2664')]([_0xd2c68f(_0x10e71a,_0x160a80('0x8ed')),_0xd2c68f(_0x10e71a,_0x160a80('0x1f65')),_0xd2c68f(_0x10e71a,_0x160a80('0x1c8b')),_0xd2c68f(_0x10e71a,_0x160a80('0xac9')),_0xd2c68f(_0x10e71a,_0x160a80('0x3d0')),_0xd2c68f(_0x10e71a,_0x160a80('0x1ad4')),_0xd2c68f(_0x10e71a,_0x160a80('0x93f'))],_0x57627f))_0x4db09a=_0x160a80('0x1a4e');else _0x86640f()['every']([_0xd2c68f(_0x10e71a,'voice'),_0xd2c68f(_0x10e71a,_0x160a80('0x1f65')),_0xd2c68f(_0x10e71a,'mail'),_0xd2c68f(_0x10e71a,_0x160a80('0xac9')),_0xd2c68f(_0x10e71a,'sms'),_0xd2c68f(_0x10e71a,_0x160a80('0x1ad4')),_0xd2c68f(_0x10e71a,_0x160a80('0x93f'))],_0x98da2)?_0x4db09a=_0x160a80('0x219'):_0x4db09a=_0x160a80('0x860');}_0x10e71a[_0x160a80('0x100f')]!==_0x4db09a&&(_0x10e71a[_0x160a80('0x100f')]=_0x4db09a,_0x10e71a[_0x160a80('0x1d75')]?(_0x10e71a[_0x160a80('0x1d75')]=![],_0x10e71a[_0x160a80('0x1ea5')]=_0x57627f(_0x4db09a)?_0x86640f()[_0x160a80('0x1662')](_0x1088bc()(_0x10e71a[_0x160a80('0x1a2c')])['format']('x')):_0x86640f()[_0x160a80('0x1847')]([_0x10e71a[_0x160a80('0xc0')],_0x10e71a[_0x160a80('0x1ffc')],_0x10e71a[_0x160a80('0xf73')],_0x10e71a['smsStatusTime'],_0x10e71a[_0x160a80('0x18fb')],_0x10e71a[_0x160a80('0x116')],_0x10e71a[_0x160a80('0x27b6')]])):_0x10e71a[_0x160a80('0x1ea5')]=_0x86640f()[_0x160a80('0x1662')](_0x1088bc()()[_0x160a80('0x153')]('x')));}function _0x47dedc(_0x483c1d){var _0x28277c=_0x5d7e83,_0x2e2237=_0x86640f()['startsWith'](_0x396482[_0x28277c('0x77')][_0x28277c('0x2752')],'-')?_0x28277c('0x340'):_0x28277c('0x15d6');return _0x86640f()[_0x28277c('0x11df')](_0x483c1d,[_0x396482[_0x28277c('0x77')][_0x28277c('0x2752')][_0x28277c('0x16e4')]('-','')],[_0x2e2237]);}function _0x1e4f6c(){_0x3a5fe4&&(_0x77a94d['cancel'](_0x3a5fe4),_0x3a5fe4=null);}function _0x4ba9d3(_0x24a202,_0x5948cd){var _0x2ad867=_0x5d7e83;return _0x394697['user'][_0x2ad867('0x5ef')]({'id':_0x24a202['id']},{'screenrecording':_0x5948cd})[_0x2ad867('0x1376')][_0x2ad867('0x1c1d')](function(_0x4ed917){var _0x31ed7e=_0x2ad867;_0x876313['error']({'title':_0x4ed917[_0x31ed7e('0x209')]?_0x31ed7e('0x22d')+_0x4ed917['status']+'\x20-\x20'+_0x4ed917[_0x31ed7e('0x1808')]:_0x31ed7e('0x14b6'),'msg':_0x4ed917['data']?JSON['stringify'](_0x4ed917[_0x31ed7e('0x11c2')][_0x31ed7e('0x1224')]):_0x4ed917[_0x31ed7e('0x174f')]()});});}_0x113926[_0x5d7e83('0x1723')](_0x5d7e83('0x1210'),function(){var _0xa1db40=_0x5d7e83;_0x505c6a[_0xa1db40('0x16cc')](_0xa1db40('0x62b')),_0x505c6a[_0xa1db40('0x16cc')](_0xa1db40('0x21f4')),_0x505c6a['removeAllListeners'](_0xa1db40('0x19a7')),_0x505c6a[_0xa1db40('0x16cc')](_0xa1db40('0x1131')),_0x1e4f6c();});}const _0x5ac78f=_0x26813f;_0x173665[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x2313'),'api','socket','rpcCalls',_0x3877e3('0x2703')];function _0x173665(_0x175cd1,_0x520697,_0xae2961,_0x370603,_0x133542,_0x4da8ed){var _0x42ad04=_0x3877e3,_0x546ab5=this;_0x546ab5[_0x42ad04('0xd5b')]=_0x133542||{'rows':[],'count':0x0},_0x546ab5['query']={'limit':0xa,'page':0x1},_0x546ab5[_0x42ad04('0x1634')]=_0x4da8ed['channelStatusOut'],_0x370603['on']('voice_outbound_channel:save',_0x546ab5[_0x42ad04('0x1b74')]),_0x370603['on'](_0x42ad04('0x569'),_0x546ab5['onRemove']);function _0x3ccb29(_0xe6caf9){var _0x59a892=_0x42ad04,_0x36a708=_0x86640f()[_0x59a892('0x1d2e')](_0x546ab5[_0x59a892('0xd5b')][_0x59a892('0x1b33')],{'channel':_0xe6caf9[_0x59a892('0x27b5')]});_0xe6caf9[_0x59a892('0x4d')]=_0xe6caf9[_0x59a892('0x10e')]?'up':'ring';if(_0x36a708)_0x86640f()[_0x59a892('0xd0e')](_0x36a708,_0xe6caf9);else _0xe6caf9['channel']&&_0x546ab5[_0x59a892('0xd5b')][_0x59a892('0x1b33')][_0x59a892('0x206c')](_0xe6caf9);}function _0x2f04da(_0x3c29d6){var _0x48fb9c=_0x42ad04,_0x31a747=_0x86640f()[_0x48fb9c('0x127')](_0x546ab5['calls'][_0x48fb9c('0x1b33')],{'channel':_0x3c29d6[_0x48fb9c('0x27b5')]});_0x31a747>=0x0&&(_0x546ab5[_0x48fb9c('0xd5b')]['rows'][_0x31a747][_0x48fb9c('0x209')]='hangup'),_0x520697(function(){var _0x29a8cd=_0x48fb9c;_0x546ab5[_0x29a8cd('0xd5b')]['rows'][_0x29a8cd('0xafe')](_0x31a747,0x1);},0x1388);}_0x175cd1[_0x42ad04('0x1723')](_0x42ad04('0x1210'),function(){var _0x1f7e36=_0x42ad04;_0x370603[_0x1f7e36('0x16cc')]('voice_outbound_channel:save'),_0x370603[_0x1f7e36('0x16cc')]('voice_outbound_channel:remove');}),_0x546ab5[_0x42ad04('0x1b74')]=_0x3ccb29,_0x546ab5[_0x42ad04('0x2345')]=_0x2f04da;}const _0x228d15=_0x173665;_0x41d7b8['$inject']=[_0x3877e3('0x95a'),'$timeout',_0x3877e3('0x1850'),_0x3877e3('0xcb5'),_0x3877e3('0xb7a'),'rpcVoiceQueuesChannels',_0x3877e3('0xccd'),'socket',_0x3877e3('0x2703'),_0x3877e3('0x1908'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0x15bc')];function _0x41d7b8(_0x2158d4,_0xe9c302,_0x8228e0,_0x39b4a2,_0x18a4ca,_0x2fe558,_0x14ad91,_0x32a8b0,_0x25be1f,_0x54b1b9,_0x29afbd,_0x521ef4,_0x52285e){var _0x51c5f7=_0x3877e3,_0x3ac1a1=this;_0x3ac1a1['currentUser']=_0x52285e['getCurrentUser'](),_0x3ac1a1[_0x51c5f7('0xcb5')]=_0x39b4a2||{'count':0x0,'rows':[]},_0x3ac1a1[_0x51c5f7('0xb7a')]=_0x18a4ca?_0x86640f()[_0x51c5f7('0xcde')](_0x18a4ca[_0x51c5f7('0x1b33')]?_0x18a4ca[_0x51c5f7('0x1b33')]:[],_0x51c5f7('0x19fe')):{},_0x3ac1a1[_0x51c5f7('0x15ef')]=_0x2fe558?_0x86640f()[_0x51c5f7('0xcde')](_0x2fe558['rows']?_0x86640f()[_0x51c5f7('0x1503')](_0x2fe558[_0x51c5f7('0x1b33')],{'type':'inbound'}):[],'uniqueid'):{},_0x3ac1a1[_0x51c5f7('0x3e3')]={},_0x3ac1a1[_0x51c5f7('0x758')]=_0x29afbd,_0x3ac1a1[_0x51c5f7('0xab4')]=_0x521ef4&&_0x521ef4['count']==0x1?_0x521ef4[_0x51c5f7('0x1b33')][0x0]:null,_0x3ac1a1['crudPermissions']=_0x52285e[_0x51c5f7('0x1778')](_0x3ac1a1['userProfileSection']?_0x3ac1a1[_0x51c5f7('0xab4')][_0x51c5f7('0x5ed')]:null),_0x3ac1a1[_0x51c5f7('0x192a')]={'limit':0xa,'page':0x1},_0x3ac1a1[_0x51c5f7('0xd4e')]=_0xe8023e,_0x3ac1a1[_0x51c5f7('0x14b')]=_0x2ecea9,_0x3ac1a1[_0x51c5f7('0x1b74')]=_0x58e13e,_0x3ac1a1[_0x51c5f7('0x2345')]=_0x4b4e46,_0x3ac1a1[_0x51c5f7('0xf7d')]=_0x500835,_0x3ac1a1[_0x51c5f7('0x23d3')]=_0x56c4e2,_0x3ac1a1[_0x51c5f7('0x1c57')]=_0x166b4d,_0x32a8b0['on']('voice_queue_channel:save',_0x3ac1a1[_0x51c5f7('0x1b74')]),_0x32a8b0['on'](_0x51c5f7('0x1686'),_0x3ac1a1[_0x51c5f7('0x2345')]);function _0xe8023e(_0x5e41d5){var _0x57b3fd=_0x51c5f7;return _0x86640f()[_0x57b3fd('0x337')](_0x5e41d5);}function _0x2ecea9(){var _0x3f6c21=_0x51c5f7;_0x86640f()['forIn'](_0x3ac1a1[_0x3f6c21('0x15ef')],function(_0x547ce6,_0x2034b9){var _0x196c72=_0x3f6c21;_0x86640f()['find'](_0x3ac1a1[_0x196c72('0xb7a')],{'name':_0x547ce6['name']})&&(_0x3ac1a1[_0x196c72('0x3e3')][_0x2034b9]=_0x547ce6);});}function _0x58e13e(_0x1c9595){var _0x2dfe5a=_0x51c5f7;_0x1c9595[_0x2dfe5a('0x7fa')]==='inbound'&&(_0x86640f()['find'](_0x3ac1a1[_0x2dfe5a('0xb7a')],{'name':_0x1c9595[_0x2dfe5a('0x19fe')]})&&(_0x3ac1a1[_0x2dfe5a('0x3e3')][_0x1c9595[_0x2dfe5a('0x968')]]=_0x1c9595));}function _0x4b4e46(_0x4fb66e){var _0x2d8bc8=_0x51c5f7;_0x3ac1a1[_0x2d8bc8('0x3e3')][_0x4fb66e['uniqueid']]&&delete _0x3ac1a1[_0x2d8bc8('0x3e3')][_0x4fb66e[_0x2d8bc8('0x968')]];}function _0x500835(_0xe6e5cf){var _0x58d5d3=_0x51c5f7;return _0x14ad91[_0x58d5d3('0x9ac')][_0x58d5d3('0x3')]({'uniqueid':_0xe6e5cf})[_0x58d5d3('0x1376')]['then'](function(_0x145bc9){var _0x18e93b=_0x58d5d3;_0x54b1b9['success']({'title':_0x18e93b('0x1f11')+_0xe6e5cf+_0x18e93b('0x355'),'msg':_0x145bc9[_0x18e93b('0x1224')]||''});})[_0x58d5d3('0x1c1d')](function(_0x972d48){var _0x298e9=_0x58d5d3;_0x54b1b9[_0x298e9('0x2092')]({'title':_0x972d48['status']+'\x20-\x20'+_0x972d48['statusText'],'msg':JSON['stringify'](_0x972d48[_0x298e9('0x11c2')])||_0x972d48['message'][_0x298e9('0x136')]('\x20')});});}function _0x56c4e2(_0x13031d,_0xfaa615,_0x230e39){var _0x143a32=_0x51c5f7;return _0x14ad91[_0x143a32('0x9ac')][_0x143a32('0x22e1')]({'uniqueid':_0x13031d,'exten':_0xfaa615,'context':_0x230e39})[_0x143a32('0x1376')][_0x143a32('0x21ad')](function(_0x414915){var _0xeafb72=_0x143a32;_0x54b1b9[_0xeafb72('0xdb1')]({'title':_0xeafb72('0x1f11')+_0x13031d+'\x20properly\x20redirect!','msg':_0x414915[_0xeafb72('0x1224')]||''});})['catch'](function(_0x353bff){var _0x28b347=_0x143a32;_0x54b1b9['error']({'title':_0x353bff[_0x28b347('0x209')]+_0x28b347('0xa99')+_0x353bff[_0x28b347('0x1808')],'msg':JSON[_0x28b347('0x25e')](_0x353bff[_0x28b347('0x11c2')])||_0x353bff[_0x28b347('0x1224')][_0x28b347('0x136')]('\x20')});});}function _0x166b4d(_0x271bf5,_0x3697c9){var _0x2b70eb=_0x51c5f7,_0x1bae39=_0x8228e0[_0x2b70eb('0xee8')]()['title'](_0x2b70eb('0x1ce0'))[_0x2b70eb('0x5a2')](_0x2b70eb('0x11d7'))[_0x2b70eb('0x1e6d')](_0x271bf5)['ok']('Ok')[_0x2b70eb('0x3b5')](_0x2b70eb('0x1f40'));return _0x8228e0['show'](_0x1bae39)[_0x2b70eb('0x21ad')](function(_0x1ad814){var _0x39aae4=_0x2b70eb;return _0x14ad91['rpc'][_0x39aae4('0x22e1')]({'uniqueid':_0x3697c9,'exten':_0x1ad814})[_0x39aae4('0x1376')];})[_0x2b70eb('0x21ad')](function(_0x25b119){var _0x37b1a=_0x2b70eb;_0x54b1b9['success']({'title':_0x37b1a('0x1f11')+_0x3697c9+_0x37b1a('0x143'),'msg':_0x25b119['message']||''});})[_0x2b70eb('0x1c1d')](function(_0x53415c){var _0x50776f=_0x2b70eb;_0x54b1b9[_0x50776f('0x2092')]({'title':_0x53415c[_0x50776f('0x209')]+_0x50776f('0xa99')+_0x53415c[_0x50776f('0x1808')],'msg':JSON[_0x50776f('0x25e')](_0x53415c[_0x50776f('0x11c2')])||_0x53415c[_0x50776f('0x1224')][_0x50776f('0x136')]('\x20')});});}_0x2158d4['$on'](_0x51c5f7('0x1210'),function(){var _0x18136e=_0x51c5f7;_0x32a8b0[_0x18136e('0x16cc')](_0x18136e('0x17b3')),_0x32a8b0['removeAllListeners'](_0x18136e('0x1686'));});}const _0x2be4a1=_0x41d7b8;_0x17504a[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x2313'),_0x3877e3('0x1e8d'),'queues',_0x3877e3('0x245'),_0x3877e3('0xccd'),'socket',_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0x15bc')];function _0x17504a(_0x37be0a,_0x2fc362,_0x568bdb,_0x3f0510,_0x501b81,_0x5a727e,_0x52e6af,_0x521fc3,_0x1fbe85,_0x56da11){var _0x16dddc=_0x3877e3,_0x314f76=this,_0x36286b=[_0x16dddc('0x16f0'),_0x16dddc('0x24c7'),_0x16dddc('0x1f7e'),'abandoned',_0x16dddc('0x1ece'),_0x16dddc('0x486'),_0x16dddc('0x27f1')];_0x314f76[_0x16dddc('0x205f')]=_0x3f0510[_0x16dddc('0x205f')],_0x314f76[_0x16dddc('0xb7a')]=_0x3f0510?_0x86640f()['keyBy'](_0x3f0510[_0x16dddc('0x1b33')]?_0x3f0510[_0x16dddc('0x1b33')]:[],'id'):{},_0x314f76['rpcQueues']=_0x501b81?_0x86640f()[_0x16dddc('0xcde')](_0x501b81[_0x16dddc('0x1b33')]?_0x501b81[_0x16dddc('0x1b33')]:[],'id'):{},_0x314f76[_0x16dddc('0x758')]=_0x521fc3,_0x314f76['userProfileSection']=_0x1fbe85&&_0x1fbe85[_0x16dddc('0x205f')]==0x1?_0x1fbe85[_0x16dddc('0x1b33')][0x0]:null,_0x314f76[_0x16dddc('0x5ed')]=_0x56da11['parseCrudPermissions'](_0x314f76[_0x16dddc('0xab4')]?_0x314f76[_0x16dddc('0xab4')]['crudPermissions']:null);_0x56da11[_0x16dddc('0x21de')](_0x16dddc('0x1bd8'))?_0x314f76['query']={'type':'inbound','fields':'id,name','sort':_0x16dddc('0x33'),'limit':0xa,'page':0x1}:_0x314f76['query']={'id':_0x56da11['getCurrentUser']()['id'],'channel':'voice','type':_0x16dddc('0x923'),'fields':_0x16dddc('0x1aa8'),'sort':_0x16dddc('0x33'),'limit':0xa,'page':0x1};_0x314f76[_0x16dddc('0xdb1')]=_0x532a11,_0x314f76[_0x16dddc('0x71c')]=_0x1b5a81,_0x314f76['onSave']=_0x2ae81e,_0x314f76[_0x16dddc('0x14b')]=_0x2ef7da,_0x52e6af[_0x16dddc('0x1487')]('voice_queue:save',_0x314f76['onSave']),_0x314f76[_0x16dddc('0xa07')]=_0x568bdb(function(){},0x3e7);function _0x2ef7da(){var _0xf058e6=_0x16dddc;_0x86640f()[_0xf058e6('0xd54')](_0x314f76[_0xf058e6('0xb7a')],function(_0x411e71,_0x3f55de){var _0x35fcb5=_0xf058e6;_0x314f76[_0x35fcb5('0x245')][_0x3f55de]&&_0x86640f()[_0x35fcb5('0xd0e')](_0x411e71,_0x86640f()[_0x35fcb5('0xc50')](_0x314f76['rpcQueues'][_0x3f55de],_0x36286b));});}function _0x2ae81e(_0x44da84){var _0x37024a=_0x16dddc;_0x314f76[_0x37024a('0xb7a')][_0x44da84['id']]&&_0x86640f()[_0x37024a('0xd0e')](_0x314f76[_0x37024a('0xb7a')][_0x44da84['id']],_0x86640f()[_0x37024a('0xc50')](_0x44da84,_0x36286b));}var _0x5d08de=!![],_0x31518e=0x1;_0x37be0a[_0x16dddc('0x10e8')](_0x16dddc('0x1948'),function(_0x2d7973,_0x287207){var _0xffa99=_0x16dddc;_0x5d08de?_0x2fc362(function(){_0x5d08de=![];}):(!_0x287207&&(_0x31518e=_0x314f76['query'][_0xffa99('0x2376')]),_0x2d7973!==_0x287207&&(_0x314f76[_0xffa99('0x77')][_0xffa99('0x2376')]=0x1),!_0x2d7973&&(_0x314f76['query']['page']=_0x31518e),_0x314f76[_0xffa99('0x71c')]());});function _0x532a11(_0x349110){var _0x4165ba=_0x16dddc;_0x314f76[_0x4165ba('0x205f')]=_0x349110[_0x4165ba('0x205f')],_0x314f76['queues']=_0x349110?_0x86640f()[_0x4165ba('0xcde')](_0x349110[_0x4165ba('0x1b33')]?_0x349110[_0x4165ba('0x1b33')]:[],'id'):{},_0x2ef7da();}function _0x1b5a81(){var _0x5c83d1=_0x16dddc;_0x314f76['query'][_0x5c83d1('0x15a5')]=(_0x314f76[_0x5c83d1('0x77')][_0x5c83d1('0x2376')]-0x1)*_0x314f76[_0x5c83d1('0x77')][_0x5c83d1('0x1f4a')],_0x56da11[_0x5c83d1('0x21de')]('admin')?_0x314f76[_0x5c83d1('0x71b')]=_0x5a727e[_0x5c83d1('0xb97')][_0x5c83d1('0x595')](_0x314f76[_0x5c83d1('0x77')],_0x532a11)['$promise']:(_0x314f76[_0x5c83d1('0x77')]['id']=_0x314f76['userProfile']['id'],_0x314f76[_0x5c83d1('0x77')]['section']=_0x5c83d1('0x1c14'),_0x314f76[_0x5c83d1('0x71b')]=_0x5a727e[_0x5c83d1('0x758')]['getResources'](_0x314f76[_0x5c83d1('0x77')],_0x532a11)['$promise']);}_0x37be0a['$on'](_0x16dddc('0x1210'),function(){var _0x5e82ec=_0x16dddc;_0x52e6af[_0x5e82ec('0x16cc')](_0x5e82ec('0x83e')),_0x314f76[_0x5e82ec('0xa07')]&&_0x568bdb['cancel'](_0x314f76[_0x5e82ec('0xa07')]);});}const _0x5212d4=_0x17504a,_0x2c2d91=_0x398308['p']+_0x3877e3('0x18b6'),_0x10a3e1=_0x398308['p']+_0x3877e3('0x2379');_0x172db8[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0x2313'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x243f'),_0x3877e3('0x1e8d'),_0x3877e3('0xb7a'),_0x3877e3('0x245'),_0x3877e3('0xccd'),_0x3877e3('0x25d8'),_0x3877e3('0x1908'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0x15bc')];function _0x172db8(_0x1410e0,_0x408613,_0x48bccb,_0x59d87d,_0x15380c,_0x37792d,_0x5626b4,_0x5396d1,_0x336ff4,_0x5949a6,_0xdce6fa,_0x101784,_0x35f8e9,_0x2f3376){var _0x4aa2b7=_0x3877e3,_0x1449fd=this,_0x1f1500=['loggedIn',_0x4aa2b7('0x21ef'),'waiting',_0x4aa2b7('0x4f6'),_0x4aa2b7('0xc37'),_0x4aa2b7('0x108'),'message',_0x4aa2b7('0x13dc'),_0x4aa2b7('0x1c4b'),'Trunk',_0x4aa2b7('0x250c')];_0x1449fd[_0x4aa2b7('0x123f')]=_0x2f3376[_0x4aa2b7('0x15ed')](),_0x1449fd[_0x4aa2b7('0x205f')]=_0x5626b4[_0x4aa2b7('0x205f')]?_0x5626b4[_0x4aa2b7('0x205f')]:0x0,_0x1449fd[_0x4aa2b7('0xb7a')]=_0x5626b4?_0x86640f()[_0x4aa2b7('0xcde')](_0x5626b4['rows']?_0x5626b4[_0x4aa2b7('0x1b33')]:[],'id'):{},_0x1449fd[_0x4aa2b7('0x245')]=_0x5396d1?_0x86640f()[_0x4aa2b7('0xcde')](_0x5396d1[_0x4aa2b7('0x1b33')]?_0x5396d1[_0x4aa2b7('0x1b33')]:[],'id'):{},_0x1449fd[_0x4aa2b7('0x758')]=_0x101784,_0x1449fd['userProfileSection']=_0x35f8e9&&_0x35f8e9['count']==0x1?_0x35f8e9['rows'][0x0]:null,_0x1449fd[_0x4aa2b7('0x5ed')]=_0x2f3376['parseCrudPermissions'](_0x1449fd[_0x4aa2b7('0xab4')]?_0x1449fd['userProfileSection'][_0x4aa2b7('0x5ed')]:null);_0x2f3376['hasRole'](_0x4aa2b7('0x1bd8'))?_0x1449fd['query']={'type':_0x4aa2b7('0x923'),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0x1449fd[_0x4aa2b7('0x77')]={'id':_0x1449fd[_0x4aa2b7('0x123f')]['id'],'channel':'voice','type':'inbound','sort':'-updatedAt','limit':0xa,'page':0x1};_0x1449fd[_0x4aa2b7('0xdb1')]=_0x15f0b8,_0x1449fd[_0x4aa2b7('0x71c')]=_0x4b65df,_0x1449fd['createOrEditVoiceQueue']=_0x9a2ecc,_0x1449fd[_0x4aa2b7('0x40b')]=_0x371e67,_0x1449fd['updateQueue']=_0x358362,_0x1449fd[_0x4aa2b7('0x1b74')]=_0x37ceba,_0x1449fd[_0x4aa2b7('0x22bf')]=_0x4f39fd,_0x1449fd[_0x4aa2b7('0xf80')]=_0x29752a,_0x1449fd['onLogout']=_0x357ee5,_0x1449fd['$onInit']=_0x4eb2fb,_0x1449fd[_0x4aa2b7('0x2752')]=[],_0x86640f()['forIn'](_0x1449fd[_0x4aa2b7('0xb7a')],function(_0x4ec59c){var _0x19fe2e=_0x4aa2b7;_0x1449fd[_0x19fe2e('0x2752')][_0x19fe2e('0x206c')](_0x4ec59c['id']);}),_0x5949a6[_0x4aa2b7('0x1487')](_0x4aa2b7('0x83e'),_0x1449fd['onSave']),_0x1449fd[_0x4aa2b7('0xa07')]=_0x37792d(function(){},0x3e7),_0x5949a6['on'](_0x4aa2b7('0x21f4'),_0x1449fd[_0x4aa2b7('0x22bf')]),_0x5949a6['on']('userVoiceQueue:remove',_0x1449fd[_0x4aa2b7('0x27a5')]),_0x5949a6['on']('userVoiceQueue:save',_0x1449fd[_0x4aa2b7('0xf80')]);function _0x4eb2fb(){var _0x45422b=_0x4aa2b7,_0x5a8f04=[];return _0x86640f()[_0x45422b('0xd54')](_0x1449fd['queues'],function(_0x10a701,_0x14023f){var _0x29c7ee=_0x45422b;_0x10a701[_0x29c7ee('0x250c')]=0x0,_0x10a701[_0x29c7ee('0x29')]=0x0,_0x1449fd['queues'][_0x14023f][_0x29c7ee('0xcb5')]={},_0x5a8f04[_0x29c7ee('0x206c')](_0x336ff4[_0x29c7ee('0xb97')]['getMembers']({'id':_0x14023f})['$promise']),_0x1449fd[_0x29c7ee('0x245')][_0x14023f]&&_0x86640f()[_0x29c7ee('0xd0e')](_0x10a701,_0x86640f()[_0x29c7ee('0xc50')](_0x1449fd[_0x29c7ee('0x245')][_0x14023f],_0x1f1500));}),_0x59d87d['all'](_0x5a8f04)[_0x45422b('0x21ad')](function(_0x2ad98b){var _0xfb249b=_0x45422b;for(var _0xc0f724=0x0;_0xc0f724<_0x2ad98b[_0xfb249b('0x577')];_0xc0f724+=0x1){for(var _0xe9c119=0x0;_0xe9c119<_0x2ad98b[_0xc0f724]['rows']['length'];_0xe9c119++){_0x2ad98b[_0xc0f724][_0xfb249b('0x1b33')][_0xe9c119][_0xfb249b('0x250c')]&&_0x1449fd['queues'][_0x2ad98b[_0xc0f724][_0xfb249b('0x1b33')][_0xe9c119][_0xfb249b('0xe90')]][_0xfb249b('0x250c')]++,_0x1449fd[_0xfb249b('0xb7a')][_0x2ad98b[_0xc0f724][_0xfb249b('0x1b33')][_0xe9c119][_0xfb249b('0xe90')]][_0xfb249b('0x29')]++,_0x1449fd[_0xfb249b('0xb7a')][_0x2ad98b[_0xc0f724][_0xfb249b('0x1b33')][_0xe9c119][_0xfb249b('0xe90')]][_0xfb249b('0xcb5')][_0x2ad98b[_0xc0f724][_0xfb249b('0x1b33')][_0xe9c119][_0xfb249b('0x1dc6')]]=_0x2ad98b[_0xc0f724][_0xfb249b('0x1b33')][_0xe9c119][_0xfb249b('0xe90')];}}})[_0x45422b('0x1c1d')](function(_0x253f57){var _0x4d9a33=_0x45422b;console[_0x4d9a33('0x2092')](_0x253f57);});}function _0x37ceba(_0x4aed5d){var _0x2e43a7=_0x4aa2b7;_0x1449fd['queues'][_0x4aed5d['id']]&&_0x86640f()[_0x2e43a7('0xd0e')](_0x1449fd[_0x2e43a7('0xb7a')][_0x4aed5d['id']],_0x86640f()[_0x2e43a7('0xc50')](_0x4aed5d,_0x1f1500));}function _0x4f39fd(_0x51be4c){var _0xef92b=_0x4aa2b7;console[_0xef92b('0x6fb')](_0xef92b('0x22bf'),_0x51be4c);if(_0x51be4c[_0xef92b('0x1025')])_0x86640f()[_0xef92b('0xd54')](_0x1449fd[_0xef92b('0xb7a')],function(_0x4d243f){var _0x498429=_0xef92b;_0x4d243f[_0x498429('0xcb5')][_0x51be4c['id']]&&(_0x4d243f[_0x498429('0x250c')]+=0x1,console[_0x498429('0x6fb')](_0x498429('0x1e26')));});else!_0x51be4c[_0xef92b('0x1025')]&&_0x86640f()[_0xef92b('0xd54')](_0x1449fd[_0xef92b('0xb7a')],function(_0x2c3fe7){var _0x422006=_0xef92b;_0x2c3fe7[_0x422006('0xcb5')][_0x51be4c['id']]&&(_0x2c3fe7[_0x422006('0x250c')]>0x0&&(_0x2c3fe7[_0x422006('0x250c')]-=0x1,console[_0x422006('0x6fb')]('unpause')));});}function _0x29752a(_0x2ad213){var _0x503bf9=_0x4aa2b7;console['log']('onLogged',_0x2ad213),_0x1449fd[_0x503bf9('0xb7a')][_0x2ad213['VoiceQueueId']]&&(_0x1449fd[_0x503bf9('0xb7a')][_0x2ad213[_0x503bf9('0xe90')]][_0x503bf9('0x29')]+=0x1,_0x1449fd[_0x503bf9('0xb7a')][_0x2ad213[_0x503bf9('0xe90')]][_0x503bf9('0xcb5')][_0x2ad213[_0x503bf9('0x1dc6')]]=_0x2ad213[_0x503bf9('0xe90')]);}function _0x357ee5(_0xc1866){var _0x42e3b7=_0x4aa2b7;console[_0x42e3b7('0x6fb')]('onLogout',_0xc1866),_0x1449fd[_0x42e3b7('0xb7a')][_0xc1866[_0x42e3b7('0xe90')]]&&_0x1449fd[_0x42e3b7('0xb7a')][_0xc1866['VoiceQueueId']][_0x42e3b7('0x29')]>0x0&&(_0x1449fd['queues'][_0xc1866[_0x42e3b7('0xe90')]]['loggedInDb']-=0x1,delete _0x1449fd[_0x42e3b7('0xb7a')][_0xc1866[_0x42e3b7('0xe90')]][_0x42e3b7('0xcb5')][_0xc1866[_0x42e3b7('0x1dc6')]]);}var _0x5f293a=!![],_0x49b115=0x1;_0x1410e0[_0x4aa2b7('0x10e8')](_0x4aa2b7('0x1948'),function(_0x5598f7,_0x9d9f9d){var _0x706256=_0x4aa2b7;_0x5f293a?_0x408613(function(){_0x5f293a=![];}):(!_0x9d9f9d&&(_0x49b115=_0x1449fd[_0x706256('0x77')][_0x706256('0x2376')]),_0x5598f7!==_0x9d9f9d&&(_0x1449fd['query']['page']=0x1),!_0x5598f7&&(_0x1449fd[_0x706256('0x77')]['page']=_0x49b115),_0x1449fd[_0x706256('0x71c')]());});function _0x15f0b8(_0x3884cd){var _0x90cddd=_0x4aa2b7;_0x1449fd['count']=_0x3884cd[_0x90cddd('0x205f')],_0x1449fd[_0x90cddd('0xb7a')]=_0x3884cd?_0x86640f()[_0x90cddd('0xcde')](_0x3884cd[_0x90cddd('0x1b33')]?_0x3884cd['rows']:[],'id'):{};if(_0x3884cd[_0x90cddd('0x1b33')]){_0x1449fd[_0x90cddd('0x2752')]=[];for(var _0x383576=0x0;_0x383576<_0x3884cd[_0x90cddd('0x1b33')][_0x90cddd('0x577')];_0x383576++){_0x1449fd[_0x90cddd('0x2752')][_0x90cddd('0x206c')](_0x3884cd[_0x90cddd('0x1b33')][_0x383576]['id']);}}_0x4eb2fb();}function _0x4b65df(){var _0x463ca2=_0x4aa2b7;_0x1449fd[_0x463ca2('0x77')]['offset']=(_0x1449fd[_0x463ca2('0x77')][_0x463ca2('0x2376')]-0x1)*_0x1449fd[_0x463ca2('0x77')][_0x463ca2('0x1f4a')],_0x2f3376[_0x463ca2('0x21de')]('admin')?_0x1449fd[_0x463ca2('0x71b')]=_0x336ff4['voiceQueue']['get'](_0x1449fd['query'],_0x15f0b8)['$promise']:(_0x1449fd[_0x463ca2('0x77')]['id']=_0x1449fd[_0x463ca2('0x758')]['id'],_0x1449fd['query'][_0x463ca2('0x26ad')]=_0x463ca2('0x1c14'),_0x1449fd[_0x463ca2('0x71b')]=_0x336ff4[_0x463ca2('0x758')]['getResources'](_0x1449fd[_0x463ca2('0x77')],_0x15f0b8)[_0x463ca2('0x1376')]);}function _0x9a2ecc(_0xcd10b8,_0x3aa3a1){var _0x2d205d=_0x4aa2b7;_0x48bccb[_0x2d205d('0x853')]({'controller':'CreateOrEditVoiceQueueDialogController','controllerAs':'vm','templateUrl':_0x2c2d91,'parent':angular[_0x2d205d('0x1676')](_0x15380c[_0x2d205d('0x2452')]),'targetEvent':_0xcd10b8,'clickOutsideToClose':!![],'locals':{'voiceQueue':_0x3aa3a1,'voiceQueues':_0x86640f()[_0x2d205d('0x1843')](_0x1449fd['queues']),'license':null,'setting':null,'crudPermissions':_0x1449fd[_0x2d205d('0x5ed')]}});}function _0x371e67(_0x3b9d0f,_0x386b02){var _0x13d964=_0x4aa2b7;_0x48bccb[_0x13d964('0x853')]({'controller':_0x13d964('0x306'),'controllerAs':'vm','templateUrl':_0x10a3e1,'parent':angular[_0x13d964('0x1676')](_0x15380c[_0x13d964('0x2452')]),'targetEvent':_0x3b9d0f,'clickOutsideToClose':!![],'locals':{'voiceQueue':_0x386b02,'voiceQueues':_0x1449fd['queues']?_0x1449fd[_0x13d964('0xb7a')][_0x13d964('0x1b33')]:[],'realtime':!![],'crudPermissions':_0x1449fd[_0x13d964('0x5ed')]}});}function _0x358362(_0xbb65cd){var _0x141f09=_0x4aa2b7;return _0x336ff4[_0x141f09('0xb97')][_0x141f09('0x5ef')](_0xbb65cd)['$promise']['then'](function(){var _0x2f6373=_0x141f09;_0xdce6fa[_0x2f6373('0xdb1')]({'title':_0x2f6373('0x12f9'),'msg':_0xbb65cd[_0x2f6373('0x19fe')]?_0xbb65cd[_0x2f6373('0x19fe')]+_0x2f6373('0xa8d'):''});})[_0x141f09('0x1c1d')](function(_0x2463e2){var _0x74a2b3=_0x141f09;_0xdce6fa[_0x74a2b3('0x2092')]({'title':_0x74a2b3('0xa52'),'msg':_0x2463e2[_0x74a2b3('0x1224')]});});}_0x1410e0[_0x4aa2b7('0x1723')]('$destroy',function(){var _0x1ca418=_0x4aa2b7;_0x5949a6[_0x1ca418('0x16cc')](_0x1ca418('0x83e')),_0x1449fd['interval']&&_0x37792d[_0x1ca418('0x3b5')](_0x1449fd['interval']),_0x5949a6[_0x1ca418('0x16cc')](_0x1ca418('0x21f4')),_0x5949a6['removeAllListeners'](_0x1ca418('0x3b0')),_0x5949a6[_0x1ca418('0x16cc')](_0x1ca418('0x1595'));});}const _0xcaeff7=_0x172db8;function _0x310d05(){var _0x5def2a=_0x3877e3;return{'status':{'registered':'green-300-fg\x20icon-checkbox-marked-circle','unregistered':_0x5def2a('0xf93'),'lagged':_0x5def2a('0xf93'),'reachable':'green-300-fg\x20icon-checkbox-marked-circle','unreachable':_0x5def2a('0xf93'),'unknown':_0x5def2a('0x24e9')},'state':{'unknown':_0x5def2a('0x6b3'),'not_inuse':_0x5def2a('0x2468'),'inuse':_0x5def2a('0x270d'),'busy':_0x5def2a('0x20c'),'invalid':_0x5def2a('0x6b3'),'unavailable':_0x5def2a('0x6b3'),'ringing':_0x5def2a('0x540'),'ringinuse':_0x5def2a('0x540'),'onhold':_0x5def2a('0x273a')},'channelStatus':{'ring':_0x5def2a('0x540'),'up':_0x5def2a('0x1dcd'),'hangup':_0x5def2a('0xe0f')},'channelStatusOut':{'ring':'blue-300-fg\x20icon-phone-outgoing','up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x5def2a('0xe0f')}};}const _0x5de71f=_0x310d05;_0x87fa99['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x25d8')];function _0x87fa99(_0x151861,_0xed6826,_0x128f94){var _0x4b3435=_0x3877e3,_0x35f1e7=this;_0x128f94[_0x4b3435('0x8d8')](),_0x128f94[_0x4b3435('0x663')](),_0x35f1e7[_0x4b3435('0x302')]=0x0;switch(_0xed6826[_0x4b3435('0x1ccb')][_0x4b3435('0x19fe')]){case _0x4b3435('0x80a'):_0x35f1e7[_0x4b3435('0x302')]=0x0;break;case _0x4b3435('0x185d'):_0x35f1e7[_0x4b3435('0x302')]=0x1;break;case _0x4b3435('0x19ab'):_0x35f1e7[_0x4b3435('0x302')]=0x2;break;case _0x4b3435('0x1e16'):_0x35f1e7['selectedTab']=0x3;break;case _0x4b3435('0xe07'):_0x35f1e7[_0x4b3435('0x302')]=0x4;break;case _0x4b3435('0x128e'):_0x35f1e7[_0x4b3435('0x302')]=0x5;break;case _0x4b3435('0x7f'):_0x35f1e7['selectedTab']=0x6;break;case _0x4b3435('0x12e9'):_0x35f1e7['selectedTab']=0x7;break;default:_0x35f1e7[_0x4b3435('0x302')]=0x0,_0xed6826['go'](_0x4b3435('0x80a'));}_0x151861['$watch'](_0x4b3435('0xc2'),function(_0x3e09d7,_0x1aabe4){var _0x5840f8=_0x4b3435;if(_0x3e09d7!==_0x1aabe4)switch(_0x3e09d7){case 0x0:_0xed6826['go'](_0x5840f8('0x80a'));break;case 0x1:_0xed6826['go'](_0x5840f8('0x185d'));break;case 0x2:_0xed6826['go'](_0x5840f8('0x19ab'));break;case 0x3:_0xed6826['go'](_0x5840f8('0x1e16'));break;case 0x4:_0xed6826['go']('app.voice.realtime.queue_calls');break;case 0x5:_0xed6826['go']('app.voice.realtime.abandonedcalls');break;case 0x6:_0xed6826['go'](_0x5840f8('0x7f'));break;case 0x7:_0xed6826['go']('app.voice.realtime.outbound_calls');break;default:_0xed6826['go']('app.voice.realtime.agents');}});}const _0x24a881=_0x87fa99;_0x54c28d[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x2197'),_0x3877e3('0x1ed8'),_0x3877e3('0xccd'),_0x3877e3('0x25d8'),'helperClasses',_0x3877e3('0x758'),_0x3877e3('0xab4'),'Auth'];function _0x54c28d(_0xbed42,_0x399a42,_0x157700,_0x9964fb,_0x5f15a3,_0xd4b141,_0x1678aa,_0x4f67e9,_0x26aee1,_0x415bb9,_0x5246f8){var _0x30d8d9=_0x3877e3,_0x38db69=this,_0x1d7860=[_0x30d8d9('0x20f5'),_0x30d8d9('0x201f'),_0x30d8d9('0x27e'),_0x30d8d9('0x209')];_0x38db69['count']=_0x9964fb[_0x30d8d9('0x205f')],_0x38db69[_0x30d8d9('0x1b01')]=[_0x30d8d9('0x20f5'),'internal',_0x30d8d9('0x27e'),_0x30d8d9('0x209'),_0x30d8d9('0x1ba3')],_0x38db69[_0x30d8d9('0x2197')]=_0x9964fb?_0x86640f()[_0x30d8d9('0xcde')](_0x9964fb[_0x30d8d9('0x1b33')]?_0x9964fb['rows']:[],'id'):{},_0x38db69['rpcTelephones']=_0x5f15a3?_0x86640f()[_0x30d8d9('0xcde')](_0x5f15a3[_0x30d8d9('0x1b33')]?_0x5f15a3[_0x30d8d9('0x1b33')]:[],'id'):{},_0x38db69[_0x30d8d9('0x758')]=_0x26aee1,_0x38db69[_0x30d8d9('0xab4')]=_0x415bb9&&_0x415bb9['count']==0x1?_0x415bb9[_0x30d8d9('0x1b33')][0x0]:null,_0x38db69[_0x30d8d9('0x5ed')]=_0x5246f8[_0x30d8d9('0x1778')](_0x38db69[_0x30d8d9('0xab4')]?_0x38db69[_0x30d8d9('0xab4')][_0x30d8d9('0x5ed')]:null),_0x38db69['query']={'fields':'id,fullname,internal','role':'telephone','sort':_0x30d8d9('0x33'),'limit':0xa,'page':0x1},_0x38db69['statusClass']=_0x4f67e9[_0x30d8d9('0x209')],_0x38db69[_0x30d8d9('0x2302')]=_0x4f67e9['state'],_0x38db69[_0x30d8d9('0xdb1')]=_0x17651a,_0x38db69[_0x30d8d9('0x14b')]=_0x1c837a,_0x38db69['showInfo']=_0x2d9b29,_0x38db69['getTelephones']=_0x46f7cf,_0x38db69['onSave']=_0x9dcdfe,_0x1678aa['on']('telephone:save',_0x38db69[_0x30d8d9('0x1b74')]);function _0x1c837a(){var _0x131c64=_0x30d8d9;_0x86640f()['forIn'](_0x38db69[_0x131c64('0x2197')],function(_0x5208da,_0xa28125){var _0x29a039=_0x131c64;_0x38db69[_0x29a039('0x1ed8')][_0xa28125]&&_0x86640f()[_0x29a039('0xd0e')](_0x5208da,_0x86640f()[_0x29a039('0xc50')](_0x38db69[_0x29a039('0x1ed8')][_0xa28125],_0x1d7860));});}function _0x2d9b29(_0x38f227){var _0x135a21=_0x30d8d9;_0x157700[_0x135a21('0x853')](_0x157700[_0x135a21('0x95b')]()[_0x135a21('0x1226')](!![])[_0x135a21('0x4b4')](_0x135a21('0xcc0'))[_0x135a21('0x276b')](_0x135a21('0xfcf'))['ok']('Ok')[_0x135a21('0x1e6d')](_0x38f227));}function _0x9dcdfe(_0x47ebe9){var _0x5ccd27=_0x30d8d9;_0x38db69[_0x5ccd27('0x2197')][_0x47ebe9['id']]&&_0x86640f()[_0x5ccd27('0xd0e')](_0x38db69[_0x5ccd27('0x2197')][_0x47ebe9['id']],_0x86640f()[_0x5ccd27('0xc50')](_0x47ebe9,_0x1d7860));}var _0x2da6c4=!![],_0x1229b9=0x1;_0xbed42[_0x30d8d9('0x10e8')](_0x30d8d9('0x1948'),function(_0x5e32a4,_0x479634){var _0x3fd22d=_0x30d8d9;_0x2da6c4?_0x399a42(function(){_0x2da6c4=![];}):(!_0x479634&&(_0x1229b9=_0x38db69[_0x3fd22d('0x77')][_0x3fd22d('0x2376')]),_0x5e32a4!==_0x479634&&(_0x38db69[_0x3fd22d('0x77')]['page']=0x1),!_0x5e32a4&&(_0x38db69['query']['page']=_0x1229b9),_0x38db69[_0x3fd22d('0x2338')]());});function _0x17651a(_0x435ece){var _0xfcbb76=_0x30d8d9;_0x38db69[_0xfcbb76('0x2197')]=_0x435ece?_0x86640f()['keyBy'](_0x435ece['rows']?_0x435ece[_0xfcbb76('0x1b33')]:[],'id'):{},_0x1c837a();}function _0x46f7cf(){var _0xf803a2=_0x30d8d9;_0x38db69[_0xf803a2('0x77')][_0xf803a2('0x15a5')]=(_0x38db69[_0xf803a2('0x77')][_0xf803a2('0x2376')]-0x1)*_0x38db69['query'][_0xf803a2('0x1f4a')],_0x5246f8[_0xf803a2('0x21de')]('admin')?_0x38db69['promise']=_0xd4b141['user']['get'](_0x38db69[_0xf803a2('0x77')],_0x17651a)[_0xf803a2('0x1376')]:(_0x38db69[_0xf803a2('0x77')]['id']=_0x38db69[_0xf803a2('0x758')]['id'],_0x38db69[_0xf803a2('0x77')]['section']=_0xf803a2('0x1955'),_0x38db69['promise']=_0xd4b141[_0xf803a2('0x758')][_0xf803a2('0x321')](_0x38db69[_0xf803a2('0x77')],_0x17651a)[_0xf803a2('0x1376')]);}_0xbed42[_0x30d8d9('0x1723')](_0x30d8d9('0x1210'),function(){var _0x46a4dd=_0x30d8d9;_0x1678aa['removeAllListeners'](_0x46a4dd('0x12ed'));});}const _0x164e1d=_0x54c28d;_0x2cc0a6[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x1593'),_0x3877e3('0xc8c'),_0x3877e3('0xccd'),_0x3877e3('0x25d8'),'helperClasses',_0x3877e3('0xa9f'),_0x3877e3('0x758'),'userProfileSection','Auth'];function _0x2cc0a6(_0x45f6be,_0x32ae39,_0x196b3b,_0x5e0815,_0x5107a3,_0x559f6e,_0x3b93c7,_0x33f4e3,_0x501bda,_0x50779a,_0x2377f5,_0x59601d){var _0x3ea54a=_0x3877e3,_0x62ddce=this,_0xd03b4e=[_0x3ea54a('0x209'),_0x3ea54a('0x1e53'),_0x3ea54a('0x87d'),_0x3ea54a('0x1c01'),'port','internal','state','status'];_0x62ddce[_0x3ea54a('0x123f')]=_0x59601d[_0x3ea54a('0x15ed')](),_0x62ddce['count']=_0x5e0815['count'],_0x62ddce[_0x3ea54a('0x1593')]=_0x5e0815?_0x5e0815[_0x3ea54a('0x1b33')]:[],_0x62ddce[_0x3ea54a('0xc8c')]=_0x5107a3?_0x5107a3[_0x3ea54a('0x1b33')]?_0x5107a3[_0x3ea54a('0x1b33')]:[]:[],_0x62ddce['query']={'fields':_0x3ea54a('0x1aa8'),'active':!![],'sort':_0x3ea54a('0x33'),'limit':0xa,'page':0x1},_0x62ddce[_0x3ea54a('0x705')]=_0x33f4e3[_0x3ea54a('0x209')],_0x62ddce['stateClass']=_0x33f4e3[_0x3ea54a('0x27e')],_0x62ddce[_0x3ea54a('0x758')]=_0x50779a,_0x62ddce[_0x3ea54a('0xab4')]=_0x2377f5&&_0x2377f5[_0x3ea54a('0x205f')]==0x1?_0x2377f5['rows'][0x0]:null,_0x62ddce['crudPermissions']=_0x59601d['parseCrudPermissions'](_0x62ddce[_0x3ea54a('0xab4')]?_0x62ddce['userProfileSection'][_0x3ea54a('0x5ed')]:null),_0x62ddce[_0x3ea54a('0xdb1')]=_0x37317a,_0x62ddce[_0x3ea54a('0x14b')]=_0x5573d5,_0x62ddce['showInfo']=_0x9d538b,_0x62ddce[_0x3ea54a('0x1c50')]=_0x328e62,_0x62ddce[_0x3ea54a('0x6aa')]=_0x5f23e3,_0x62ddce['onSave']=_0x5c586e,_0x3b93c7['on']('trunk:save',_0x62ddce[_0x3ea54a('0x1b74')]);function _0x5573d5(){var _0x5a3f7f=_0x3ea54a,_0x3c56fa;for(var _0x3f404c=0x0;_0x3f404c<_0x62ddce['trunks'][_0x5a3f7f('0x577')];_0x3f404c+=0x1){_0x3c56fa=_0x86640f()[_0x5a3f7f('0x127')](_0x62ddce['rpcTrunks'],['id',_0x62ddce['trunks'][_0x3f404c]['id']]),_0x3c56fa>=0x0&&_0x86640f()['merge'](_0x62ddce[_0x5a3f7f('0x1593')][_0x3f404c],_0x86640f()['pick'](_0x62ddce[_0x5a3f7f('0xc8c')][_0x3c56fa],_0xd03b4e));}}function _0x9d538b(_0x463710){var _0x420958=_0x3ea54a;_0x196b3b['show'](_0x196b3b['alert']()['clickOutsideToClose'](!![])[_0x420958('0x4b4')]('Legend')['htmlContent']('
TODO\x20legend\x20status\x20+\x20state
')['ok']('Ok')[_0x420958('0x1e6d')](_0x463710));}function _0x3995bd(_0x56b5c6,_0x44838b,_0x1387c6){var _0x19a18c=_0x3ea54a;_0x44838b>=0x0&&_0x86640f()[_0x19a18c('0xd0e')](_0x56b5c6[_0x44838b],_0x86640f()['pick'](_0x1387c6,_0xd03b4e));}function _0x5c586e(_0x5c1169){var _0x5aa583=_0x3ea54a,_0x8395ae=_0x86640f()[_0x5aa583('0x127')](_0x62ddce[_0x5aa583('0x1593')],['id',_0x5c1169['id']]),_0xfd656e=_0x86640f()['findIndex'](_0x62ddce[_0x5aa583('0xc8c')],['id',_0x5c1169['id']]);_0x3995bd(_0x62ddce['trunks'],_0x8395ae,_0x5c1169),_0x3995bd(_0x62ddce[_0x5aa583('0xc8c')],_0xfd656e,_0x5c1169);}var _0x5553ba=!![],_0x234a60=0x1;_0x45f6be['$watch'](_0x3ea54a('0x1948'),function(_0x2439d8,_0x5684a9){var _0x362ba8=_0x3ea54a;_0x5553ba?_0x32ae39(function(){_0x5553ba=![];}):(!_0x5684a9&&(_0x234a60=_0x62ddce[_0x362ba8('0x77')][_0x362ba8('0x2376')]),_0x2439d8!==_0x5684a9&&(_0x62ddce[_0x362ba8('0x77')][_0x362ba8('0x2376')]=0x1),!_0x2439d8&&(_0x62ddce[_0x362ba8('0x77')]['page']=_0x234a60),_0x62ddce['getTrunks']());});function _0x37317a(_0x29ed1f){var _0x38fc1b=_0x3ea54a;_0x62ddce[_0x38fc1b('0x205f')]=_0x29ed1f[_0x38fc1b('0x205f')],_0x62ddce[_0x38fc1b('0x1593')]=_0x29ed1f?_0x29ed1f['rows']?_0x29ed1f[_0x38fc1b('0x1b33')]:[]:[],_0x5573d5();}function _0x328e62(){var _0x3e2aa3=_0x3ea54a;_0x62ddce['query'][_0x3e2aa3('0x15a5')]=(_0x62ddce[_0x3e2aa3('0x77')]['page']-0x1)*_0x62ddce[_0x3e2aa3('0x77')][_0x3e2aa3('0x1f4a')],_0x59601d[_0x3e2aa3('0x21de')]('admin')?_0x62ddce[_0x3e2aa3('0x71b')]=_0x559f6e[_0x3e2aa3('0x1280')][_0x3e2aa3('0x595')](_0x62ddce['query'],_0x37317a)[_0x3e2aa3('0x1376')]:(_0x62ddce[_0x3e2aa3('0x77')]['id']=_0x62ddce['userProfile']['id'],_0x62ddce['query'][_0x3e2aa3('0x26ad')]=_0x3e2aa3('0x616'),_0x62ddce[_0x3e2aa3('0x71b')]=_0x559f6e[_0x3e2aa3('0x758')][_0x3e2aa3('0x321')](_0x62ddce[_0x3e2aa3('0x77')],_0x37317a)[_0x3e2aa3('0x1376')]);}_0x45f6be[_0x3ea54a('0x1723')]('$destroy',function(){var _0x28a9bc=_0x3ea54a;_0x3b93c7['removeAllListeners'](_0x28a9bc('0x1bc1'));});function _0x5f23e3(_0x1bdf6f,_0x5eee11){var _0x4d86b5=_0x3ea54a;_0x501bda['go'](_0x4d86b5('0xe06'),{'id':_0x5eee11['id']});}}const _0x571212=_0x2cc0a6,_0x3b5087=_0x398308['p']+_0x3877e3('0x130a'),_0x23a4a9=_0x398308['p']+_0x3877e3('0x11ef'),_0x11f317=_0x398308['p']+_0x3877e3('0xb1d'),_0x448648=_0x398308['p']+'src/js/modules/main/apps/voice/views/realtime/trunks/view.html/view-[chunkhash].html',_0x54c42b=_0x398308['p']+'src/js/modules/main/apps/voice/views/realtime/queues/view.html/view-[chunkhash].html',_0x5e12b1=_0x398308['p']+_0x3877e3('0x19a1'),_0xe8205f=_0x398308['p']+_0x3877e3('0x225e'),_0x3e53ff=_0x398308['p']+'src/js/modules/main/apps/voice/views/realtime/queue_params/view.html/view-[chunkhash].html',_0x338aa8=_0x398308['p']+_0x3877e3('0x162');_0x3635ff['$inject']=[_0x3877e3('0xd2c')];function _0x3635ff(_0x34abd2){var _0x2db5e7=_0x3877e3;_0x34abd2['state'](_0x2db5e7('0x16c2'),{'url':_0x2db5e7('0x1b34'),'views':{'content@app':{'templateUrl':_0x3b5087,'controller':_0x2db5e7('0x2617')}},'resolve':{'userProfile':['apiResolver','Auth',function _0x4d9c13(_0x49d20c,_0x588fe6){var _0x58a8cf=_0x2db5e7;return _0x588fe6[_0x58a8cf('0x21de')](_0x58a8cf('0x1bd8'))?null:_0x49d20c[_0x58a8cf('0x8ac')](_0x58a8cf('0x1e1d'),{'fields':'id,name,crudPermissions','id':_0x588fe6[_0x58a8cf('0x15ed')]()[_0x58a8cf('0x1618')]});}],'userProfileSection':[_0x2db5e7('0x354'),_0x2db5e7('0x15bc'),function _0x587c91(_0x554bc1,_0x304f3c){var _0x228bf6=_0x2db5e7;return _0x304f3c[_0x228bf6('0x21de')](_0x228bf6('0x1bd8'))?null:_0x554bc1[_0x228bf6('0x8ac')](_0x228bf6('0x222f'),{'fields':_0x228bf6('0x1852'),'userProfileId':_0x304f3c[_0x228bf6('0x15ed')]()[_0x228bf6('0x1618')],'sectionId':0x19b});}]},'authenticate':!![],'permissionId':0x19b})[_0x2db5e7('0x27e')](_0x2db5e7('0x80a'),{'url':'/agents','controller':_0x2db5e7('0x253d'),'templateUrl':_0x23a4a9,'resolve':{'pauses':[_0x2db5e7('0x354'),function _0x4708c2(_0x59b4f9){var _0x1e8d33=_0x2db5e7;return _0x59b4f9[_0x1e8d33('0x8ac')](_0x1e8d33('0x12e0'),{'nolimit':!![]});}],'agents':[_0x2db5e7('0x354'),_0x2db5e7('0x15bc'),function _0x28562d(_0x3f0186,_0x293190){var _0x275130=_0x2db5e7;return _0x293190[_0x275130('0x21de')](_0x275130('0x1bd8'))?_0x3f0186[_0x275130('0x8ac')](_0x275130('0x1913'),{'fields':_0x275130('0x856'),'role':_0x275130('0x2402'),'sort':_0x275130('0x20f5'),'nolimit':!![]}):_0x3f0186[_0x275130('0x8ac')](_0x275130('0x52f'),{'id':_0x293190['getCurrentUser']()['userProfileId'],'section':_0x275130('0xfed'),'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':_0x275130('0x20f5'),'nolimit':!![]});}],'userProfile':[_0x2db5e7('0x354'),_0x2db5e7('0x15bc'),function _0x4750d2(_0x21b782,_0x3a049b){var _0x5e8d06=_0x2db5e7;return _0x3a049b['hasRole'](_0x5e8d06('0x1bd8'))?null:_0x21b782[_0x5e8d06('0x8ac')](_0x5e8d06('0x1e1d'),{'fields':_0x5e8d06('0x1a00'),'id':_0x3a049b[_0x5e8d06('0x15ed')]()[_0x5e8d06('0x1618')]});}],'userProfileSection':[_0x2db5e7('0x354'),_0x2db5e7('0x15bc'),function _0x23f8bf(_0x1eb908,_0xa17a23){var _0xb6f79e=_0x2db5e7;return _0xa17a23[_0xb6f79e('0x21de')](_0xb6f79e('0x1bd8'))?null:_0x1eb908[_0xb6f79e('0x8ac')]('userProfileSection@get',{'fields':_0xb6f79e('0x1852'),'userProfileId':_0xa17a23['getCurrentUser']()[_0xb6f79e('0x1618')],'sectionId':0xca});}],'rpcAgents':[_0x2db5e7('0x354'),function _0x5a9074(_0x2d6d59){var _0x566ff8=_0x2db5e7;return _0x2d6d59[_0x566ff8('0x8ac')](_0x566ff8('0x2685'));}]},'authenticate':!![],'permissionId':0x19b})['state'](_0x2db5e7('0x185d'),{'url':_0x2db5e7('0x924'),'controller':_0x2db5e7('0x54c'),'templateUrl':_0x11f317,'resolve':{'telephones':[_0x2db5e7('0x354'),_0x2db5e7('0x15bc'),function _0x33fc36(_0x3b7f42,_0x2a7cb2){var _0x374bbd=_0x2db5e7;return _0x2a7cb2[_0x374bbd('0x21de')](_0x374bbd('0x1bd8'))?_0x3b7f42[_0x374bbd('0x8ac')]('user@get',{'fields':_0x374bbd('0x814'),'role':_0x374bbd('0x13f4'),'sort':_0x374bbd('0x33'),'limit':0xa,'offset':0x0}):_0x3b7f42[_0x374bbd('0x8ac')]('userProfile@getResources',{'id':_0x2a7cb2[_0x374bbd('0x15ed')]()[_0x374bbd('0x1618')],'section':_0x374bbd('0x1955'),'fields':_0x374bbd('0x814'),'role':_0x374bbd('0x13f4'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x2db5e7('0x354'),'Auth',function _0xffb543(_0x214710,_0x5ddf33){var _0xfa57c6=_0x2db5e7;return _0x5ddf33['hasRole'](_0xfa57c6('0x1bd8'))?null:_0x214710[_0xfa57c6('0x8ac')](_0xfa57c6('0x1e1d'),{'fields':_0xfa57c6('0x1a00'),'id':_0x5ddf33['getCurrentUser']()[_0xfa57c6('0x1618')]});}],'userProfileSection':[_0x2db5e7('0x354'),_0x2db5e7('0x15bc'),function _0x1f879d(_0x5f4230,_0x2082f6){var _0x4894a9=_0x2db5e7;return _0x2082f6['hasRole']('admin')?null:_0x5f4230[_0x4894a9('0x8ac')](_0x4894a9('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2082f6['getCurrentUser']()[_0x4894a9('0x1618')],'sectionId':0xcb});}],'rpcTelephones':[_0x2db5e7('0x354'),function _0x538c57(_0x3ad031){var _0x132d3a=_0x2db5e7;return _0x3ad031[_0x132d3a('0x8ac')](_0x132d3a('0xf86'));}]},'authenticate':!![],'permissionId':0x19b})[_0x2db5e7('0x27e')]('app.voice.realtime.trunks',{'url':_0x2db5e7('0x1acd'),'controller':_0x2db5e7('0x559'),'templateUrl':_0x448648,'resolve':{'trunks':[_0x2db5e7('0x354'),_0x2db5e7('0x15bc'),function _0x3b1523(_0x137d77,_0x10ef7a){var _0x2ca976=_0x2db5e7;return _0x10ef7a[_0x2ca976('0x21de')](_0x2ca976('0x1bd8'))?_0x137d77[_0x2ca976('0x8ac')](_0x2ca976('0xfe0'),{'fields':'id,name','active':!![],'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x137d77[_0x2ca976('0x8ac')](_0x2ca976('0x52f'),{'id':_0x10ef7a[_0x2ca976('0x15ed')]()['userProfileId'],'section':_0x2ca976('0x616'),'fields':_0x2ca976('0x1aa8'),'active':!![],'sort':_0x2ca976('0x33'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2db5e7('0x354'),_0x2db5e7('0x15bc'),function _0x4960cb(_0x175abc,_0x10bbef){var _0x207918=_0x2db5e7;return _0x10bbef[_0x207918('0x21de')](_0x207918('0x1bd8'))?null:_0x175abc[_0x207918('0x8ac')](_0x207918('0x1e1d'),{'fields':_0x207918('0x1a00'),'id':_0x10bbef[_0x207918('0x15ed')]()[_0x207918('0x1618')]});}],'userProfileSection':['apiResolver','Auth',function _0x113f4f(_0xa97803,_0x354299){var _0x2cd4e2=_0x2db5e7;return _0x354299[_0x2cd4e2('0x21de')](_0x2cd4e2('0x1bd8'))?null:_0xa97803[_0x2cd4e2('0x8ac')](_0x2cd4e2('0x222f'),{'fields':_0x2cd4e2('0x1852'),'userProfileId':_0x354299[_0x2cd4e2('0x15ed')]()[_0x2cd4e2('0x1618')],'sectionId':0x3f3});}],'rpcTrunks':[_0x2db5e7('0x354'),function _0x3171a1(_0xafac38){var _0xeaf804=_0x2db5e7;return _0xafac38[_0xeaf804('0x8ac')](_0xeaf804('0x14ce'));}]},'authenticate':!![],'permissionId':0x19b})[_0x2db5e7('0x27e')](_0x2db5e7('0x1e16'),{'url':_0x2db5e7('0x13e2'),'controller':_0x2db5e7('0x164b'),'templateUrl':_0x54c42b,'resolve':{'queues':['apiResolver',_0x2db5e7('0x15bc'),function _0x34508d(_0x345a05,_0x241247){var _0x5e04e8=_0x2db5e7;return _0x241247[_0x5e04e8('0x21de')](_0x5e04e8('0x1bd8'))?_0x345a05[_0x5e04e8('0x8ac')](_0x5e04e8('0x10bb'),{'type':_0x5e04e8('0x923'),'sort':_0x5e04e8('0x33'),'limit':0xa,'offset':0x0}):_0x345a05[_0x5e04e8('0x8ac')](_0x5e04e8('0x52f'),{'id':_0x241247[_0x5e04e8('0x15ed')]()[_0x5e04e8('0x1618')],'section':_0x5e04e8('0x1c14'),'channel':'voice','type':_0x5e04e8('0x923'),'sort':_0x5e04e8('0x33'),'limit':0xa,'page':0x1});}],'userProfile':[_0x2db5e7('0x354'),_0x2db5e7('0x15bc'),function _0x3483a0(_0x122ec5,_0x27af48){var _0x4e1180=_0x2db5e7;return _0x27af48['hasRole'](_0x4e1180('0x1bd8'))?null:_0x122ec5['resolve']('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x27af48[_0x4e1180('0x15ed')]()[_0x4e1180('0x1618')]});}],'userProfileSection':[_0x2db5e7('0x354'),_0x2db5e7('0x15bc'),function _0x955b53(_0x1da1c0,_0x5a761e){var _0x39950e=_0x2db5e7;return _0x5a761e['hasRole'](_0x39950e('0x1bd8'))?null:_0x1da1c0['resolve'](_0x39950e('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5a761e['getCurrentUser']()['userProfileId'],'sectionId':0x191});}],'rpcQueues':['apiResolver',function _0x1dda88(_0x2a50aa){var _0x395fd4=_0x2db5e7;return _0x2a50aa[_0x395fd4('0x8ac')]('rpc@getVoiceQueues');}]},'authenticate':!![],'permissionId':0x19b})['state'](_0x2db5e7('0xe07'),{'url':_0x2db5e7('0x1ef'),'controller':_0x2db5e7('0x23a9'),'templateUrl':_0x5e12b1,'resolve':{'agents':['apiResolver',_0x2db5e7('0x15bc'),function _0x44a1f8(_0x2473a5,_0x15e8d1){var _0x5f4211=_0x2db5e7;return _0x15e8d1[_0x5f4211('0x21de')](_0x5f4211('0x1bd8'))?_0x2473a5['resolve'](_0x5f4211('0x1913'),{'fields':_0x5f4211('0x15a6'),'role':_0x5f4211('0x2402'),'nolimit':!![]}):_0x2473a5['resolve'](_0x5f4211('0x52f'),{'id':_0x15e8d1[_0x5f4211('0x15ed')]()[_0x5f4211('0x1618')],'section':_0x5f4211('0xfed'),'fields':_0x5f4211('0x15a6'),'role':_0x5f4211('0x2402'),'nolimit':!![]});}],'queues':[_0x2db5e7('0x354'),_0x2db5e7('0x15bc'),function _0x1a593f(_0x249fa2,_0x54e09a){var _0x13117e=_0x2db5e7;return _0x54e09a[_0x13117e('0x21de')](_0x13117e('0x1bd8'))?_0x249fa2[_0x13117e('0x8ac')](_0x13117e('0x10bb'),{'type':_0x13117e('0x923'),'sort':_0x13117e('0x33'),'nolimit':!![]}):_0x249fa2['resolve']('userProfile@getResources',{'id':_0x54e09a['getCurrentUser']()[_0x13117e('0x1618')],'section':_0x13117e('0x1c14'),'channel':_0x13117e('0x8ed'),'type':'inbound','sort':'-updatedAt','nolimit':!![]});}],'userProfile':[_0x2db5e7('0x354'),'Auth',function _0x18cfa1(_0x5521e0,_0x6b8e2e){var _0x3c90ee=_0x2db5e7;return _0x6b8e2e['hasRole'](_0x3c90ee('0x1bd8'))?null:_0x5521e0['resolve'](_0x3c90ee('0x1e1d'),{'fields':_0x3c90ee('0x1a00'),'id':_0x6b8e2e[_0x3c90ee('0x15ed')]()[_0x3c90ee('0x1618')]});}],'userProfileSection':[_0x2db5e7('0x354'),_0x2db5e7('0x15bc'),function _0x36f2bd(_0x522259,_0x181511){var _0x3c1869=_0x2db5e7;return _0x181511[_0x3c1869('0x21de')]('admin')?null:_0x522259['resolve'](_0x3c1869('0x222f'),{'fields':_0x3c1869('0x1852'),'userProfileId':_0x181511[_0x3c1869('0x15ed')]()['userProfileId'],'sectionId':0x191});}],'rpcVoiceQueuesChannels':['apiResolver',function _0x727ce6(_0x5d937e){var _0x36ad84=_0x2db5e7;return _0x5d937e[_0x36ad84('0x8ac')](_0x36ad84('0x1e35'));}]},'authenticate':!![],'permissionId':0x19b})[_0x2db5e7('0x27e')](_0x2db5e7('0x128e'),{'url':_0x2db5e7('0x222a'),'controller':_0x2db5e7('0x1500'),'templateUrl':_0xe8205f,'resolve':{'agents':[_0x2db5e7('0x354'),_0x2db5e7('0x15bc'),function _0x26b2a1(_0x52bdeb,_0x3571e7){var _0x53391a=_0x2db5e7;return _0x3571e7[_0x53391a('0x21de')](_0x53391a('0x1bd8'))?_0x52bdeb['resolve'](_0x53391a('0x1913'),{'fields':_0x53391a('0x15a6'),'role':_0x53391a('0x2402'),'nolimit':!![]}):_0x52bdeb['resolve'](_0x53391a('0x52f'),{'id':_0x3571e7['getCurrentUser']()[_0x53391a('0x1618')],'section':'Agents','fields':_0x53391a('0x15a6'),'role':'agent','nolimit':!![]});}],'queues':[_0x2db5e7('0x354'),'Auth',function _0x115fbc(_0x2b8ad5,_0x16dc1b){var _0x4d737b=_0x2db5e7;return _0x16dc1b[_0x4d737b('0x21de')](_0x4d737b('0x1bd8'))?_0x2b8ad5['resolve'](_0x4d737b('0x10bb'),{'type':_0x4d737b('0x923'),'sort':'-updatedAt','nolimit':!![]}):_0x2b8ad5[_0x4d737b('0x8ac')](_0x4d737b('0x52f'),{'id':_0x16dc1b[_0x4d737b('0x15ed')]()[_0x4d737b('0x1618')],'section':_0x4d737b('0x1c14'),'channel':_0x4d737b('0x8ed'),'type':_0x4d737b('0x923'),'sort':'-updatedAt','nolimit':!![]});}],'dispositions':[_0x2db5e7('0x354'),_0x2db5e7('0x15bc'),function _0x46bdda(_0xf102ac,_0x15c95d){var _0xb94811=_0x2db5e7;return _0x15c95d[_0xb94811('0x21de')]('admin')?_0xf102ac[_0xb94811('0x8ac')]('disposition@get',{'fields':_0xb94811('0x521'),'sort':_0xb94811('0x33'),'MailAccountId':'null','FaxAccountId':_0xb94811('0x27a'),'SmsAccountId':_0xb94811('0x27a'),'WhatsappAccountId':'null','OpenchannelAccountId':_0xb94811('0x27a'),'ChatWebsiteId':'null','ListId':_0xb94811('0x27a'),'nolimit':!![]}):_0xf102ac['resolve'](_0xb94811('0x52f'),{'id':_0x15c95d[_0xb94811('0x15ed')]()['userProfileId'],'section':'Dispositions','fields':_0xb94811('0x793'),'sort':'-updatedAt','MailAccountId':_0xb94811('0x27a'),'FaxAccountId':_0xb94811('0x27a'),'SmsAccountId':_0xb94811('0x27a'),'WhatsappAccountId':_0xb94811('0x27a'),'OpenchannelAccountId':'null','ChatWebsiteId':_0xb94811('0x27a'),'ListId':_0xb94811('0x27a'),'nolimit':!![]});}],'userProfile':[_0x2db5e7('0x354'),_0x2db5e7('0x15bc'),function _0x331105(_0x445935,_0x28316a){var _0x33c1b8=_0x2db5e7;return _0x28316a[_0x33c1b8('0x21de')](_0x33c1b8('0x1bd8'))?null:_0x445935[_0x33c1b8('0x8ac')](_0x33c1b8('0x1e1d'),{'fields':'id,name,crudPermissions','id':_0x28316a['getCurrentUser']()[_0x33c1b8('0x1618')]});}],'userProfileSection':[_0x2db5e7('0x354'),_0x2db5e7('0x15bc'),function _0x348e6e(_0x49eaa1,_0x24bd27){var _0x870240=_0x2db5e7;return _0x24bd27[_0x870240('0x21de')](_0x870240('0x1bd8'))?null:_0x49eaa1['resolve'](_0x870240('0x222f'),{'fields':_0x870240('0x1852'),'userProfileId':_0x24bd27[_0x870240('0x15ed')]()[_0x870240('0x1618')],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x19b})['state'](_0x2db5e7('0x7f'),{'url':_0x2db5e7('0x1db1'),'controller':_0x2db5e7('0x95f'),'templateUrl':_0x3e53ff,'resolve':{'queues':['apiResolver',_0x2db5e7('0x15bc'),function _0x45c1ee(_0x28735d,_0x2925dd){var _0x122801=_0x2db5e7;return _0x2925dd[_0x122801('0x21de')](_0x122801('0x1bd8'))?_0x28735d['resolve'](_0x122801('0x10bb'),{'type':_0x122801('0x923'),'fields':_0x122801('0x1aa8'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x28735d['resolve']('userProfile@getResources',{'id':_0x2925dd[_0x122801('0x15ed')]()[_0x122801('0x1618')],'section':_0x122801('0x1c14'),'channel':_0x122801('0x8ed'),'type':'inbound','sort':_0x122801('0x33'),'nolimit':!![]});}],'userProfile':[_0x2db5e7('0x354'),_0x2db5e7('0x15bc'),function _0x20a058(_0x5ba3fe,_0x58e503){var _0x23b24a=_0x2db5e7;return _0x58e503[_0x23b24a('0x21de')](_0x23b24a('0x1bd8'))?null:_0x5ba3fe['resolve'](_0x23b24a('0x1e1d'),{'fields':'id,name,crudPermissions','id':_0x58e503[_0x23b24a('0x15ed')]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x2db5e7('0x15bc'),function _0x5f1363(_0x4ff88a,_0xc3937f){var _0x4d463b=_0x2db5e7;return _0xc3937f[_0x4d463b('0x21de')]('admin')?null:_0x4ff88a[_0x4d463b('0x8ac')](_0x4d463b('0x222f'),{'fields':_0x4d463b('0x1852'),'userProfileId':_0xc3937f[_0x4d463b('0x15ed')]()[_0x4d463b('0x1618')],'sectionId':0x191});}],'rpcQueues':[_0x2db5e7('0x354'),function _0x44678d(_0x3e5842){var _0x171a76=_0x2db5e7;return _0x3e5842[_0x171a76('0x8ac')]('rpc@getVoiceQueues');}]},'authenticate':!![],'permissionId':0x19b})[_0x2db5e7('0x27e')](_0x2db5e7('0x12e9'),{'url':_0x2db5e7('0x2831'),'controller':'OutboundCallsVoiceRealtimeController\x20as\x20vm','templateUrl':_0x338aa8,'resolve':{'rpcCalls':[_0x2db5e7('0x354'),function _0x125d26(_0x2dde85){var _0x350c80=_0x2db5e7;return _0x2dde85['resolve'](_0x350c80('0x262a'));}]},'authenticate':!![],'permissionId':0x19b});}angular['module']('app.voice.realtime',[])[_0x3877e3('0x13')](_0x3635ff)[_0x3877e3('0x1d5a')](_0x3877e3('0x1ee9'),_0x29fcc1)[_0x3877e3('0x1d5a')](_0x3877e3('0x3e0'),_0x5ac78f)[_0x3877e3('0x1d5a')](_0x3877e3('0x265a'),_0x228d15)[_0x3877e3('0x1d5a')]('QueueCallsVoiceRealtimeController',_0x2be4a1)[_0x3877e3('0x1d5a')](_0x3877e3('0x186a'),_0x5212d4)['controller'](_0x3877e3('0x5da'),_0xcaeff7)[_0x3877e3('0x1551')](_0x3877e3('0x2703'),_0x5de71f)[_0x3877e3('0x1d5a')](_0x3877e3('0x20b7'),_0x24a881)[_0x3877e3('0x1d5a')](_0x3877e3('0x1d3a'),_0x164e1d)[_0x3877e3('0x1d5a')](_0x3877e3('0x8bb'),_0x571212);const _0x55f513=_0x398308['p']+'src/js/modules/main/apps/voice/views/chanSpies/create/dialog.html/dialog-[chunkhash].html';_0x6b402b['$inject']=[_0x3877e3('0x95a'),'$window','$state',_0x3877e3('0x2828'),_0x3877e3('0x1850'),'$document',_0x3877e3('0x2313'),_0x3877e3('0x13c1'),_0x3877e3('0x309'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),'toasty',_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x6b402b(_0x575990,_0xd6529d,_0x274fd0,_0x21b25c,_0x2be2c4,_0x3bb421,_0x5ac20f,_0x48a1d3,_0x35271a,_0x38ff52,_0x526526,_0x10816c,_0x3764cb,_0x7d22c6,_0x26c6cb,_0x5a3dc3,_0x39af1a){var _0xa448ca=_0x3877e3,_0x1085dc=this;_0x1085dc[_0xa448ca('0x2ff')]=_0x5a3dc3,_0x1085dc[_0xa448ca('0x21e')]=_0x39af1a,_0x1085dc[_0xa448ca('0x123f')]=_0x26c6cb[_0xa448ca('0x15ed')](),_0x1085dc[_0xa448ca('0x309')]=_0x35271a||{'count':0x0,'rows':[]},_0x1085dc[_0xa448ca('0x758')]=_0x38ff52,_0x1085dc[_0xa448ca('0xab4')]=_0x526526&&_0x526526[_0xa448ca('0x205f')]==0x1?_0x526526['rows'][0x0]:null,_0x1085dc[_0xa448ca('0x5ed')]=_0x26c6cb['parseCrudPermissions'](_0x1085dc[_0xa448ca('0xab4')]?_0x1085dc[_0xa448ca('0xab4')][_0xa448ca('0x5ed')]:null),_0x1085dc[_0xa448ca('0x1897')]=_0xa448ca('0x309'),_0x1085dc[_0xa448ca('0x11dc')]='',_0x1085dc['listOrderAsc']=null,_0x1085dc[_0xa448ca('0x117f')]=[],_0x1085dc['query']={'fields':_0xa448ca('0x164'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x1085dc[_0xa448ca('0x5e3')]=_0x86640f()['keyBy']([{'option':_0xa448ca('0xcbc'),'value':_0xa448ca('0x6f2')},{'option':_0xa448ca('0x1e98'),'value':_0xa448ca('0x132e')},{'option':_0xa448ca('0x613'),'value':_0xa448ca('0x658')},{'option':_0xa448ca('0x12bc'),'value':_0xa448ca('0x214e')},{'option':'q:\x20Don\x27t\x20play\x20a\x20beep\x20when\x20beginning\x20to\x20spy\x20on\x20a\x20channel,\x20or\x20speak\x20the\x20selected\x20channel\x20name.','value':_0xa448ca('0x1a5e')},{'option':_0xa448ca('0x153b'),'value':_0xa448ca('0x123e')},{'option':'S:\x20Stop\x20when\x20no\x20more\x20channels\x20are\x20left\x20to\x20spy\x20on.','value':_0xa448ca('0xbf6')},{'option':'w:\x20Enable\x20whisper\x20mode,\x20so\x20the\x20spying\x20channel\x20can\x20talk\x20to\x20the\x20spied-on\x20channel.','value':_0xa448ca('0x5ea')},{'option':_0xa448ca('0x2648'),'value':_0xa448ca('0x4e0')}],function(_0x2290ff){var _0x3cb11f=_0xa448ca;return _0x86640f()['replace'](_0x2290ff[_0x3cb11f('0x2228')],new RegExp('\x27','g'),'');}),_0x1085dc[_0xa448ca('0x1dd4')]=_0x86640f()['keyBy']([{'option':_0xa448ca('0x1292'),'value':_0xa448ca('0x5e9')},{'option':_0xa448ca('0xb95'),'value':_0xa448ca('0x1e90')},{'option':_0xa448ca('0x17a9'),'value':'\x27WAV\x27'}],function(_0x96d3fd){var _0x225795=_0xa448ca;return _0x86640f()[_0x225795('0x16e4')](_0x96d3fd[_0x225795('0x2228')],new RegExp('\x27','g'),'');}),_0x1085dc['editdialog']=_0xc4ed1,_0x1085dc['deleteconfirm']=_0x594bde,_0x1085dc[_0xa448ca('0xdb1')]=_0x17eeef,_0x1085dc[_0xa448ca('0x1d85')]=_0x50caf2,_0x1085dc['createOrEditchanSpy']=_0x1b1615,_0x1085dc[_0xa448ca('0x133b')]=_0x411eea,_0x1085dc[_0xa448ca('0x1474')]=_0x119e3b,_0x1085dc[_0xa448ca('0x5f8')]=_0x700622,_0x1085dc[_0xa448ca('0x190')]=_0x2c1a46,_0x1085dc['selectAllChanSpies']=_0x1e793a;function _0xc4ed1(_0x20ee41,_0x3dd152){var _0x7ab58a=_0xa448ca;_0x2be2c4[_0x7ab58a('0x853')]({'controller':'CreateOrEditchanSpyDialogController','controllerAs':'vm','templateUrl':_0x55f513,'parent':angular[_0x7ab58a('0x1676')](_0x3bb421[_0x7ab58a('0x2452')]),'targetEvent':_0x3dd152,'clickOutsideToClose':!![],'locals':{'chanSpy':_0x20ee41,'chanSpies':_0x1085dc[_0x7ab58a('0x309')][_0x7ab58a('0x1b33')],'license':_0x1085dc['license'],'setting':null,'crudPermissions':_0x1085dc[_0x7ab58a('0x5ed')]}});}function _0x594bde(_0x2b5af3,_0x2966b9){var _0x291146=_0xa448ca,_0x1aedb7=_0x2be2c4['confirm']()[_0x291146('0x4b4')](_0x291146('0x25b6')+_0x86640f()[_0x291146('0x2159')]('chanSpy')+'?')['htmlContent'](''+(_0x2b5af3[_0x291146('0x19fe')]||_0x291146('0x1dd'))+_0x291146('0x2135')+_0x291146('0x25e0'))[_0x291146('0x7a7')](_0x291146('0xc47'))[_0x291146('0x1e6d')](_0x2966b9)['ok']('OK')[_0x291146('0x3b5')]('CANCEL');_0x2be2c4[_0x291146('0x853')](_0x1aedb7)[_0x291146('0x21ad')](function(){_0x411eea(_0x2b5af3);},function(){var _0x436858=_0x291146;console[_0x436858('0x6fb')](_0x436858('0x284b'));});}var _0x34d7dc=!![],_0x10da12=0x1;_0x575990[_0xa448ca('0x10e8')](_0xa448ca('0x1948'),function(_0x399b9e,_0x2bf667){var _0x457492=_0xa448ca;_0x34d7dc?_0x5ac20f(function(){_0x34d7dc=![];}):(!_0x2bf667&&(_0x10da12=_0x1085dc[_0x457492('0x77')][_0x457492('0x2376')]),_0x399b9e!==_0x2bf667&&(_0x1085dc['query'][_0x457492('0x2376')]=0x1),!_0x399b9e&&(_0x1085dc[_0x457492('0x77')]['page']=_0x10da12),_0x1085dc[_0x457492('0x1d85')]());});function _0x17eeef(_0xe031c3){var _0x1dd28b=_0xa448ca;_0x1085dc[_0x1dd28b('0x309')]=_0xe031c3||{'count':0x0,'rows':[]};}function _0x50caf2(){var _0x3a32b5=_0xa448ca;_0x1085dc[_0x3a32b5('0x77')]['offset']=(_0x1085dc[_0x3a32b5('0x77')][_0x3a32b5('0x2376')]-0x1)*_0x1085dc[_0x3a32b5('0x77')][_0x3a32b5('0x1f4a')],_0x26c6cb[_0x3a32b5('0x21de')](_0x3a32b5('0x1bd8'))?_0x1085dc[_0x3a32b5('0x71b')]=_0x10816c['voiceChanSpy'][_0x3a32b5('0x595')](_0x1085dc[_0x3a32b5('0x77')],_0x17eeef)[_0x3a32b5('0x1376')]:(_0x1085dc[_0x3a32b5('0x77')]['id']=_0x1085dc['userProfile']['id'],_0x1085dc['query']['section']='ChanSpies',_0x1085dc[_0x3a32b5('0x71b')]=_0x10816c[_0x3a32b5('0x758')][_0x3a32b5('0x321')](_0x1085dc[_0x3a32b5('0x77')],_0x17eeef)['$promise']);}function _0x1b1615(_0xf14bdf,_0x21411d){var _0x429961=_0xa448ca;_0x2be2c4[_0x429961('0x853')]({'controller':_0x429961('0xc7f'),'controllerAs':'vm','templateUrl':_0x55f513,'parent':angular['element'](_0x3bb421['body']),'targetEvent':_0xf14bdf,'clickOutsideToClose':!![],'locals':{'chanSpy':_0x21411d,'chanSpies':_0x1085dc[_0x429961('0x309')]['rows'],'license':_0x1085dc[_0x429961('0x2ff')],'setting':_0x1085dc[_0x429961('0x21e')],'crudPermissions':_0x1085dc[_0x429961('0x5ed')]}});}function _0x411eea(_0x416b34){var _0x52add3=_0xa448ca;_0x10816c[_0x52add3('0x52a')]['delete']({'id':_0x416b34['id']})[_0x52add3('0x1376')][_0x52add3('0x21ad')](function(){var _0x5d7112=_0x52add3;_0x86640f()[_0x5d7112('0x16a2')](_0x1085dc['chanSpies'][_0x5d7112('0x1b33')],{'id':_0x416b34['id']}),_0x1085dc[_0x5d7112('0x309')]['count']-=0x1,!_0x1085dc[_0x5d7112('0x309')][_0x5d7112('0x1b33')]['length']&&_0x1085dc[_0x5d7112('0x1d85')](),_0x7d22c6[_0x5d7112('0xdb1')]({'title':_0x86640f()[_0x5d7112('0x2159')]('chanSpy')+_0x5d7112('0xe64'),'msg':_0x416b34[_0x5d7112('0x19fe')]?_0x416b34[_0x5d7112('0x19fe')]+_0x5d7112('0xb4a'):''});})['catch'](function(_0x407267){var _0x2daffa=_0x52add3;if(_0x407267[_0x2daffa('0x11c2')]&&_0x407267['data']['errors']&&_0x407267['data'][_0x2daffa('0x1a69')][_0x2daffa('0x577')]){_0x1085dc[_0x2daffa('0x1a69')]=_0x407267[_0x2daffa('0x11c2')][_0x2daffa('0x1a69')]||[{'message':_0x407267[_0x2daffa('0x174f')](),'type':_0x2daffa('0xcf4')}];for(var _0x1f5ade=0x0;_0x1f5ade<_0x407267['data'][_0x2daffa('0x1a69')][_0x2daffa('0x577')];_0x1f5ade++){_0x7d22c6['error']({'title':_0x407267[_0x2daffa('0x11c2')][_0x2daffa('0x1a69')][_0x1f5ade]['type'],'msg':_0x407267[_0x2daffa('0x11c2')]['errors'][_0x1f5ade][_0x2daffa('0x1224')]});}}else _0x7d22c6[_0x2daffa('0x2092')]({'title':_0x407267['status']?'API:'+_0x407267[_0x2daffa('0x209')]+_0x2daffa('0xa99')+_0x407267['statusText']:_0x2daffa('0xcf4'),'msg':_0x407267[_0x2daffa('0x11c2')]?JSON[_0x2daffa('0x25e')](_0x407267[_0x2daffa('0x11c2')][_0x2daffa('0x1224')]):_0x407267['message']||_0x407267[_0x2daffa('0x174f')]()});});}function _0x119e3b(){var _0x4691e2=_0xa448ca,_0x2a4716=angular[_0x4691e2('0xd75')](_0x1085dc[_0x4691e2('0x117f')]);return _0x1085dc[_0x4691e2('0x117f')]=[],_0x2a4716;}function _0x700622(_0x599953){var _0x50985d=_0xa448ca,_0x423b4a=_0x2be2c4[_0x50985d('0xa33')]()[_0x50985d('0x4b4')](_0x50985d('0x270a'))[_0x50985d('0x276b')](_0x50985d('0x622')+_0x1085dc[_0x50985d('0x117f')]['length']+_0x50985d('0xd74')+_0x50985d('0x25e0'))['ariaLabel'](_0x50985d('0x1364'))['targetEvent'](_0x599953)['ok']('OK')['cancel']('CANCEL');_0x2be2c4['show'](_0x423b4a)[_0x50985d('0x21ad')](function(){var _0x130afd=_0x50985d;_0x1085dc[_0x130afd('0x117f')][_0x130afd('0x1a52')](function(_0x5e2946){_0x411eea(_0x5e2946);}),_0x1085dc['selectedChanSpies']=[];});}function _0x2c1a46(){var _0x84d97f=_0xa448ca;_0x1085dc[_0x84d97f('0x117f')]=[];}function _0x1e793a(){var _0x1a4627=_0xa448ca;_0x1085dc[_0x1a4627('0x117f')]=_0x1085dc[_0x1a4627('0x309')][_0x1a4627('0x1b33')];}}const _0x48fd63=_0x6b402b;_0x40c7fd[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$state',_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),'chanSpies',_0x3877e3('0x1dd'),'api',_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),'crudPermissions'];function _0x40c7fd(_0x10ac32,_0x2ddc6a,_0x236f81,_0x30d044,_0x2162e8,_0x2f56d5,_0xe8edb,_0x307ee7,_0x58d8df,_0xd7cfa2,_0x418a4d,_0x2e1eb5,_0x4cdd3e,_0x2a3964){var _0x57d2f8=_0x3877e3,_0x531a53=this;_0x531a53[_0x57d2f8('0x123f')]=_0x418a4d['getCurrentUser'](),_0x531a53['errors']=[],_0x531a53[_0x57d2f8('0x21e')]=_0x4cdd3e,_0x531a53[_0x57d2f8('0x2ff')]=_0x2e1eb5,_0x531a53[_0x57d2f8('0x5ed')]=_0x2a3964,_0x531a53[_0x57d2f8('0x126a')]={},_0x531a53[_0x57d2f8('0x1432')]=_0x531a53[_0x57d2f8('0x21e')]&&_0x531a53[_0x57d2f8('0x21e')][_0x57d2f8('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x531a53['title']='VOICE.EDIT_CHANSPY',_0x531a53[_0x57d2f8('0x1dd')]=angular[_0x57d2f8('0xd75')](_0x58d8df),_0x531a53[_0x57d2f8('0x309')]=_0x307ee7,_0x531a53[_0x57d2f8('0x2861')]=![];!_0x531a53[_0x57d2f8('0x1dd')]&&(_0x531a53[_0x57d2f8('0x1dd')]={'recordingFormat':'wav'},_0x531a53[_0x57d2f8('0x4b4')]='VOICE.NEW_CHANSPY',_0x531a53[_0x57d2f8('0x2861')]=!![]);_0x531a53[_0x57d2f8('0x119d')]=_0xa4c36c,_0x531a53[_0x57d2f8('0x12f8')]=_0x4f01fa,_0x531a53['deletechanSpy']=_0x345f7f,_0x531a53[_0x57d2f8('0x279')]=_0xb0ef57,_0x531a53[_0x57d2f8('0x167')]=_0x18b18a;function _0xa4c36c(){var _0x3dc533=_0x57d2f8;_0x531a53[_0x3dc533('0x1a69')]=[],_0xd7cfa2[_0x3dc533('0x52a')][_0x3dc533('0x186f')](_0x531a53[_0x3dc533('0x1dd')])[_0x3dc533('0x1376')][_0x3dc533('0x21ad')](function(_0x5928c6){var _0x359bd5=_0x3dc533;_0x531a53[_0x359bd5('0x309')]['unshift'](_0x5928c6['toJSON']()),_0xe8edb[_0x359bd5('0xdb1')]({'title':_0x359bd5('0x1aea'),'msg':_0x531a53['chanSpy'][_0x359bd5('0x19fe')]?_0x531a53['chanSpy'][_0x359bd5('0x19fe')]+_0x359bd5('0x1694'):''}),_0x18b18a(_0x5928c6);})[_0x3dc533('0x1c1d')](function(_0x18255f){var _0x54282a=_0x3dc533;if(_0x18255f[_0x54282a('0x11c2')]&&_0x18255f[_0x54282a('0x11c2')]['errors']&&_0x18255f['data'][_0x54282a('0x1a69')][_0x54282a('0x577')]){_0x531a53[_0x54282a('0x1a69')]=_0x18255f[_0x54282a('0x11c2')][_0x54282a('0x1a69')]||[{'message':_0x18255f[_0x54282a('0x174f')](),'type':_0x54282a('0x4fd')}];for(var _0x49b38b=0x0;_0x49b38b<_0x18255f[_0x54282a('0x11c2')][_0x54282a('0x1a69')][_0x54282a('0x577')];_0x49b38b+=0x1){_0xe8edb[_0x54282a('0x2092')]({'title':_0x18255f['data'][_0x54282a('0x1a69')][_0x49b38b][_0x54282a('0x7fa')],'msg':_0x18255f[_0x54282a('0x11c2')]['errors'][_0x49b38b][_0x54282a('0x1224')]});}}else _0xe8edb[_0x54282a('0x2092')]({'title':_0x18255f['status']?_0x54282a('0x22d')+_0x18255f[_0x54282a('0x209')]+_0x54282a('0xa99')+_0x18255f[_0x54282a('0x1808')]:'api.voiceChanSpy.save','msg':_0x18255f[_0x54282a('0x11c2')]?JSON['stringify'](_0x18255f[_0x54282a('0x11c2')][_0x54282a('0x1224')]):_0x18255f[_0x54282a('0x174f')]()});});}function _0x4f01fa(){var _0x13eb6a=_0x57d2f8;_0x531a53[_0x13eb6a('0x1a69')]=[],_0xd7cfa2[_0x13eb6a('0x52a')]['update']({'id':_0x531a53[_0x13eb6a('0x1dd')]['id']},_0x531a53[_0x13eb6a('0x1dd')])['$promise'][_0x13eb6a('0x21ad')](function(_0x5e60fc){var _0x4f3dc1=_0x13eb6a,_0x3e8d32=_0x86640f()[_0x4f3dc1('0x1d2e')](_0x531a53[_0x4f3dc1('0x309')],{'id':_0x5e60fc['id']});_0x3e8d32&&_0x86640f()[_0x4f3dc1('0xd0e')](_0x3e8d32,_0x86640f()[_0x4f3dc1('0xc50')](_0x5e60fc['toJSON'](),_0x86640f()[_0x4f3dc1('0x223b')](_0x3e8d32))),_0xe8edb[_0x4f3dc1('0xdb1')]({'title':'chanSpy\x20properly\x20saved!','msg':_0x531a53[_0x4f3dc1('0x1dd')]['name']?_0x531a53[_0x4f3dc1('0x1dd')][_0x4f3dc1('0x19fe')]+'\x20has\x20been\x20saved!':''}),_0x18b18a(_0x5e60fc);})[_0x13eb6a('0x1c1d')](function(_0x3244f5){var _0x536d1a=_0x13eb6a;if(_0x3244f5[_0x536d1a('0x11c2')]&&_0x3244f5['data'][_0x536d1a('0x1a69')]&&_0x3244f5['data'][_0x536d1a('0x1a69')][_0x536d1a('0x577')]){_0x531a53[_0x536d1a('0x1a69')]=_0x3244f5[_0x536d1a('0x11c2')][_0x536d1a('0x1a69')]||[{'message':_0x3244f5[_0x536d1a('0x174f')](),'type':_0x536d1a('0x2680')}];for(var _0x19a018=0x0;_0x19a018<_0x3244f5['data'][_0x536d1a('0x1a69')][_0x536d1a('0x577')];_0x19a018++){_0xe8edb[_0x536d1a('0x2092')]({'title':_0x3244f5[_0x536d1a('0x11c2')][_0x536d1a('0x1a69')][_0x19a018][_0x536d1a('0x7fa')],'msg':_0x3244f5[_0x536d1a('0x11c2')][_0x536d1a('0x1a69')][_0x19a018][_0x536d1a('0x1224')]});}}else _0xe8edb[_0x536d1a('0x2092')]({'title':_0x3244f5[_0x536d1a('0x209')]?_0x536d1a('0x22d')+_0x3244f5[_0x536d1a('0x209')]+_0x536d1a('0xa99')+_0x3244f5[_0x536d1a('0x1808')]:_0x536d1a('0x2680'),'msg':_0x3244f5[_0x536d1a('0x11c2')]?JSON[_0x536d1a('0x25e')](_0x3244f5['data'][_0x536d1a('0x1224')]):_0x3244f5[_0x536d1a('0x174f')]()});});}function _0x345f7f(_0x4d3188){var _0x173ba4=_0x57d2f8;_0x531a53[_0x173ba4('0x1a69')]=[];var _0x415dc0=_0x30d044[_0x173ba4('0xa33')]()[_0x173ba4('0x4b4')](_0x173ba4('0x196b'))[_0x173ba4('0x13fb')](_0x173ba4('0x82a'))[_0x173ba4('0x7a7')](_0x173ba4('0xf87'))['ok'](_0x173ba4('0xbfd'))[_0x173ba4('0x3b5')](_0x173ba4('0x1f40'))[_0x173ba4('0x1e6d')](_0x4d3188);_0x30d044[_0x173ba4('0x853')](_0x415dc0)[_0x173ba4('0x21ad')](function(){var _0x569e42=_0x173ba4;_0xd7cfa2['voiceChanSpy'][_0x569e42('0x1164')]({'id':_0x531a53['chanSpy']['id']})[_0x569e42('0x1376')][_0x569e42('0x21ad')](function(){var _0x3a5fce=_0x569e42;_0x86640f()[_0x3a5fce('0x16a2')](_0x531a53['chanSpies'],{'id':_0x531a53['chanSpy']['id']}),_0xe8edb[_0x3a5fce('0xdb1')]({'title':_0x3a5fce('0x7ad'),'msg':(_0x531a53['chanSpy'][_0x3a5fce('0x19fe')]||'chanSpy')+'\x20has\x20been\x20deleted!'}),_0x18b18a(_0x531a53['chanSpy']);})['catch'](function(_0x45bdc2){var _0x218e96=_0x569e42;if(_0x45bdc2[_0x218e96('0x11c2')]&&_0x45bdc2[_0x218e96('0x11c2')][_0x218e96('0x1a69')]&&_0x45bdc2[_0x218e96('0x11c2')]['errors'][_0x218e96('0x577')]){_0x531a53['errors']=_0x45bdc2[_0x218e96('0x11c2')]['errors']||[{'message':_0x45bdc2[_0x218e96('0x174f')](),'type':_0x218e96('0xcfe')}];for(var _0x554e2c=0x0;_0x554e2c<_0x45bdc2[_0x218e96('0x11c2')][_0x218e96('0x1a69')][_0x218e96('0x577')];_0x554e2c++){_0xe8edb[_0x218e96('0x2092')]({'title':_0x45bdc2[_0x218e96('0x11c2')][_0x218e96('0x1a69')][_0x554e2c][_0x218e96('0x7fa')],'msg':_0x45bdc2[_0x218e96('0x11c2')][_0x218e96('0x1a69')][_0x554e2c][_0x218e96('0x1224')]});}}else _0xe8edb['error']({'title':_0x45bdc2[_0x218e96('0x209')]?_0x218e96('0x22d')+_0x45bdc2[_0x218e96('0x209')]+'\x20-\x20'+_0x45bdc2[_0x218e96('0x1808')]:_0x218e96('0xcfe'),'msg':_0x45bdc2[_0x218e96('0x11c2')]?JSON[_0x218e96('0x25e')](_0x45bdc2[_0x218e96('0x11c2')]['message']):_0x45bdc2[_0x218e96('0x1224')]||_0x45bdc2[_0x218e96('0x174f')]()});});},function(){});}function _0xb0ef57(_0x4db6d9){return _0x4db6d9===null?undefined:new Date(_0x4db6d9);}function _0x18b18a(_0x15d643){var _0x56ccce=_0x57d2f8;_0x30d044[_0x56ccce('0x1c24')](_0x15d643);}}const _0x1eac39=_0x40c7fd,_0x1af08d=_0x398308['p']+'src/js/modules/main/apps/voice/views/contexts/create/dialog.html/dialog-[chunkhash].html';_0x5561b7['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),_0x3877e3('0x1850'),'$document',_0x3877e3('0x2313'),_0x3877e3('0x13c1'),_0x3877e3('0x1089'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x5561b7(_0x3617e8,_0x20ed06,_0x40b7e2,_0x3ee508,_0x2de182,_0x46625d,_0x35cfd0,_0x8293de,_0x1eeb86,_0x5ba363,_0x4b5334,_0x1e9185,_0x59515b,_0x20abce,_0x408e48,_0x19b96b,_0x55e86b){var _0x14b6a0=_0x3877e3,_0x4515c9=this;_0x4515c9[_0x14b6a0('0x2ff')]=_0x19b96b,_0x4515c9[_0x14b6a0('0x21e')]=_0x55e86b,_0x4515c9['currentUser']=_0x408e48['getCurrentUser'](),_0x4515c9['contexts']=_0x1eeb86||{'count':0x0,'rows':[]},_0x4515c9['userProfile']=_0x5ba363,_0x4515c9[_0x14b6a0('0xab4')]=_0x4b5334&&_0x4b5334[_0x14b6a0('0x205f')]==0x1?_0x4b5334[_0x14b6a0('0x1b33')][0x0]:null,_0x4515c9[_0x14b6a0('0x5ed')]=_0x408e48[_0x14b6a0('0x1778')](_0x4515c9[_0x14b6a0('0xab4')]?_0x4515c9[_0x14b6a0('0xab4')][_0x14b6a0('0x5ed')]:null),_0x4515c9['table']=_0x14b6a0('0x1089'),_0x4515c9[_0x14b6a0('0x11dc')]='',_0x4515c9['listOrderAsc']=null,_0x4515c9['selectedContexts']=[],_0x4515c9[_0x14b6a0('0x77')]={'fields':_0x14b6a0('0x145a'),'sort':_0x14b6a0('0x33'),'defaultEntry':_0x14b6a0('0x7a9'),'limit':0xa,'page':0x1},_0x4515c9[_0x14b6a0('0x1a97')]=_0x2de1c0,_0x4515c9['deleteconfirm']=_0x20738d,_0x4515c9['success']=_0x1f9db1,_0x4515c9['getContexts']=_0x2228a5,_0x4515c9[_0x14b6a0('0xaf7')]=_0x5195e0,_0x4515c9['deleteContext']=_0x1d8773,_0x4515c9[_0x14b6a0('0x1606')]=_0xdc6cc4,_0x4515c9[_0x14b6a0('0xbc5')]=_0x3ffd91,_0x4515c9[_0x14b6a0('0x1c27')]=_0x7103a7,_0x4515c9[_0x14b6a0('0xcf8')]=_0x4bfaf9;function _0x2de1c0(_0x2899f3,_0x8e7b8d){var _0x58fa9a=_0x14b6a0;_0x2de182[_0x58fa9a('0x853')]({'controller':_0x58fa9a('0x144c'),'controllerAs':'vm','templateUrl':_0x1af08d,'parent':angular[_0x58fa9a('0x1676')](_0x46625d[_0x58fa9a('0x2452')]),'targetEvent':_0x8e7b8d,'clickOutsideToClose':!![],'locals':{'context':_0x2899f3,'contexts':_0x4515c9['contexts'][_0x58fa9a('0x1b33')],'license':_0x4515c9[_0x58fa9a('0x2ff')],'setting':null,'crudPermissions':_0x4515c9['crudPermissions']}});}function _0x20738d(_0x3fe5fd,_0x22a80c){var _0x1b15af=_0x14b6a0,_0x414e70=_0x2de182[_0x1b15af('0xa33')]()['title'](_0x1b15af('0x25b6')+_0x86640f()['startCase'](_0x1b15af('0x244c'))+'?')['htmlContent'](''+(_0x3fe5fd[_0x1b15af('0x19fe')]||_0x1b15af('0x244c'))+_0x1b15af('0x2135')+'\x20will\x20be\x20deleted.')[_0x1b15af('0x7a7')]('delete\x20context')['targetEvent'](_0x22a80c)['ok']('OK')['cancel'](_0x1b15af('0x284b'));_0x2de182[_0x1b15af('0x853')](_0x414e70)[_0x1b15af('0x21ad')](function(){_0x1d8773(_0x3fe5fd);},function(){var _0x51eed4=_0x1b15af;console[_0x51eed4('0x6fb')]('CANCEL');});}var _0x313c45=!![],_0x3093bb=0x1;_0x3617e8[_0x14b6a0('0x10e8')](_0x14b6a0('0x1948'),function(_0x4e215b,_0x5a5a35){var _0x3ba6c0=_0x14b6a0;_0x313c45?_0x35cfd0(function(){_0x313c45=![];}):(!_0x5a5a35&&(_0x3093bb=_0x4515c9[_0x3ba6c0('0x77')][_0x3ba6c0('0x2376')]),_0x4e215b!==_0x5a5a35&&(_0x4515c9[_0x3ba6c0('0x77')][_0x3ba6c0('0x2376')]=0x1),!_0x4e215b&&(_0x4515c9[_0x3ba6c0('0x77')]['page']=_0x3093bb),_0x4515c9[_0x3ba6c0('0x162c')]());});function _0x1f9db1(_0x21322a){var _0x1ad162=_0x14b6a0;_0x4515c9[_0x1ad162('0x1089')]=_0x21322a||{'count':0x0,'rows':[]};}function _0x2228a5(){var _0x4745bb=_0x14b6a0;_0x4515c9[_0x4745bb('0x77')][_0x4745bb('0x15a5')]=(_0x4515c9[_0x4745bb('0x77')][_0x4745bb('0x2376')]-0x1)*_0x4515c9[_0x4745bb('0x77')]['limit'],_0x408e48[_0x4745bb('0x21de')](_0x4745bb('0x1bd8'))?_0x4515c9[_0x4745bb('0x71b')]=_0x1e9185[_0x4745bb('0x608')][_0x4745bb('0x595')](_0x4515c9['query'],_0x1f9db1)[_0x4745bb('0x1376')]:(_0x4515c9[_0x4745bb('0x77')]['id']=_0x4515c9[_0x4745bb('0x758')]['id'],_0x4515c9[_0x4745bb('0x77')][_0x4745bb('0x26ad')]=_0x4745bb('0xe4d'),_0x4515c9['promise']=_0x1e9185['userProfile'][_0x4745bb('0x321')](_0x4515c9[_0x4745bb('0x77')],_0x1f9db1)['$promise']);}function _0x5195e0(_0x149d6e,_0x31e81c){var _0x5c7f79=_0x14b6a0;_0x2de182[_0x5c7f79('0x853')]({'controller':_0x5c7f79('0x144c'),'controllerAs':'vm','templateUrl':_0x1af08d,'parent':angular[_0x5c7f79('0x1676')](_0x46625d[_0x5c7f79('0x2452')]),'targetEvent':_0x149d6e,'clickOutsideToClose':!![],'locals':{'context':_0x31e81c,'contexts':_0x4515c9[_0x5c7f79('0x1089')]['rows'],'license':_0x4515c9[_0x5c7f79('0x2ff')],'setting':_0x4515c9[_0x5c7f79('0x21e')],'crudPermissions':_0x4515c9['crudPermissions']}});}function _0x1d8773(_0x227c67){var _0x1904e6=_0x14b6a0;_0x1e9185[_0x1904e6('0x608')]['delete']({'id':_0x227c67['id']})[_0x1904e6('0x1376')][_0x1904e6('0x21ad')](function(){var _0x29d4df=_0x1904e6;_0x86640f()[_0x29d4df('0x16a2')](_0x4515c9[_0x29d4df('0x1089')][_0x29d4df('0x1b33')],{'id':_0x227c67['id']}),_0x4515c9[_0x29d4df('0x1089')][_0x29d4df('0x205f')]-=0x1,!_0x4515c9[_0x29d4df('0x1089')]['rows'][_0x29d4df('0x577')]&&_0x4515c9['getContexts'](),_0x20abce[_0x29d4df('0xdb1')]({'title':_0x86640f()[_0x29d4df('0x2159')](_0x29d4df('0x2354'))+'\x20deleted!','msg':_0x227c67[_0x29d4df('0x19fe')]?_0x227c67['name']+_0x29d4df('0xb4a'):''});})[_0x1904e6('0x1c1d')](function(_0x522c60){var _0x497825=_0x1904e6;if(_0x522c60['data']&&_0x522c60[_0x497825('0x11c2')]['errors']&&_0x522c60['data']['errors'][_0x497825('0x577')]){_0x4515c9[_0x497825('0x1a69')]=_0x522c60[_0x497825('0x11c2')][_0x497825('0x1a69')]||[{'message':_0x522c60[_0x497825('0x174f')](),'type':_0x497825('0x1668')}];for(var _0x380b35=0x0;_0x380b35<_0x522c60[_0x497825('0x11c2')][_0x497825('0x1a69')][_0x497825('0x577')];_0x380b35++){_0x20abce[_0x497825('0x2092')]({'title':_0x522c60['data'][_0x497825('0x1a69')][_0x380b35]['type'],'msg':_0x522c60[_0x497825('0x11c2')][_0x497825('0x1a69')][_0x380b35][_0x497825('0x1224')]});}}else _0x20abce['error']({'title':_0x522c60['status']?'API:'+_0x522c60[_0x497825('0x209')]+'\x20-\x20'+_0x522c60[_0x497825('0x1808')]:_0x497825('0x1668'),'msg':_0x522c60['data']?JSON[_0x497825('0x25e')](_0x522c60[_0x497825('0x11c2')][_0x497825('0x1224')]):_0x522c60[_0x497825('0x1224')]||_0x522c60[_0x497825('0x174f')]()});});}function _0xdc6cc4(){var _0x4a8a7d=_0x14b6a0,_0x4785d2=angular['copy'](_0x4515c9[_0x4a8a7d('0x15d0')]);return _0x4515c9[_0x4a8a7d('0x15d0')]=[],_0x4785d2;}function _0x3ffd91(_0x19150d){var _0x49c1ab=_0x14b6a0,_0x48bacf=_0x2de182['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20contexts?')['htmlContent'](_0x49c1ab('0x622')+_0x4515c9[_0x49c1ab('0x15d0')][_0x49c1ab('0x577')]+_0x49c1ab('0xd74')+_0x49c1ab('0x25e0'))[_0x49c1ab('0x7a7')](_0x49c1ab('0x7b3'))[_0x49c1ab('0x1e6d')](_0x19150d)['ok']('OK')['cancel'](_0x49c1ab('0x284b'));_0x2de182[_0x49c1ab('0x853')](_0x48bacf)[_0x49c1ab('0x21ad')](function(){var _0x291c18=_0x49c1ab;_0x4515c9[_0x291c18('0x15d0')]['forEach'](function(_0x1d0980){_0x1d8773(_0x1d0980);}),_0x4515c9['selectedContexts']=[];});}function _0x7103a7(){_0x4515c9['selectedContexts']=[];}function _0x4bfaf9(){var _0x21c1b9=_0x14b6a0;_0x4515c9['selectedContexts']=_0x4515c9[_0x21c1b9('0x1089')][_0x21c1b9('0x1b33')];}}const _0x52a776=_0x5561b7;_0x2f1d1c['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$location','$mdDialog','$q','$translate',_0x3877e3('0x1908'),_0x3877e3('0x1089'),_0x3877e3('0x244c'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x2f1d1c(_0x2b665a,_0x2ad246,_0x45f734,_0x311321,_0x10d71f,_0x2d907d,_0x3e4e57,_0x56b546,_0x50d427,_0x31798b,_0x1b5e1f,_0x2b34b6,_0x2287dd,_0x564b6b){var _0x947d75=_0x3877e3,_0x112f59=this;_0x112f59['currentUser']=_0x1b5e1f['getCurrentUser'](),_0x112f59['errors']=[],_0x112f59[_0x947d75('0x21e')]=_0x2287dd,_0x112f59[_0x947d75('0x2ff')]=_0x2b34b6,_0x112f59[_0x947d75('0x5ed')]=_0x564b6b,_0x112f59[_0x947d75('0x126a')]={},_0x112f59['passwordPattern']=_0x112f59[_0x947d75('0x21e')]&&_0x112f59['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x112f59[_0x947d75('0x4b4')]='VOICE.EDIT_CONTEXT',_0x112f59[_0x947d75('0x244c')]=angular[_0x947d75('0xd75')](_0x50d427),_0x112f59['contexts']=_0x56b546,_0x112f59[_0x947d75('0x1764')]=![];!_0x112f59['context']&&(_0x112f59[_0x947d75('0x244c')]={},_0x112f59[_0x947d75('0x4b4')]='VOICE.NEW_CONTEXT',_0x112f59[_0x947d75('0x1764')]=!![]);_0x112f59[_0x947d75('0x2008')]=_0x8ea5a7,_0x112f59[_0x947d75('0x116c')]=_0x2e5bdc,_0x112f59['deleteContext']=_0x5106d0,_0x112f59[_0x947d75('0x279')]=_0x429de3,_0x112f59[_0x947d75('0x167')]=_0x2727a9;function _0x8ea5a7(){var _0x44d5d0=_0x947d75;_0x112f59['errors']=[],_0x31798b[_0x44d5d0('0x608')][_0x44d5d0('0x186f')](_0x112f59[_0x44d5d0('0x244c')])[_0x44d5d0('0x1376')][_0x44d5d0('0x21ad')](function(_0x1af72e){var _0x1cfeed=_0x44d5d0;_0x112f59[_0x1cfeed('0x1089')]['unshift'](_0x1af72e[_0x1cfeed('0x3bc')]()),_0x3e4e57[_0x1cfeed('0xdb1')]({'title':_0x1cfeed('0xab2'),'msg':_0x112f59[_0x1cfeed('0x244c')][_0x1cfeed('0x19fe')]?_0x112f59['context'][_0x1cfeed('0x19fe')]+'\x20has\x20been\x20created!':''}),_0x2727a9(_0x1af72e);})[_0x44d5d0('0x1c1d')](function(_0xd8ced8){var _0x4c4f6c=_0x44d5d0;if(_0xd8ced8[_0x4c4f6c('0x11c2')]&&_0xd8ced8[_0x4c4f6c('0x11c2')][_0x4c4f6c('0x1a69')]&&_0xd8ced8[_0x4c4f6c('0x11c2')][_0x4c4f6c('0x1a69')][_0x4c4f6c('0x577')]){_0x112f59[_0x4c4f6c('0x1a69')]=_0xd8ced8[_0x4c4f6c('0x11c2')]['errors']||[{'message':_0xd8ced8[_0x4c4f6c('0x174f')](),'type':'api.voiceContext.save'}];for(var _0x15fd9e=0x0;_0x15fd9e<_0xd8ced8[_0x4c4f6c('0x11c2')][_0x4c4f6c('0x1a69')][_0x4c4f6c('0x577')];_0x15fd9e+=0x1){_0x3e4e57[_0x4c4f6c('0x2092')]({'title':_0xd8ced8[_0x4c4f6c('0x11c2')][_0x4c4f6c('0x1a69')][_0x15fd9e][_0x4c4f6c('0x7fa')],'msg':_0xd8ced8[_0x4c4f6c('0x11c2')][_0x4c4f6c('0x1a69')][_0x15fd9e][_0x4c4f6c('0x1224')]});}}else _0x3e4e57[_0x4c4f6c('0x2092')]({'title':_0xd8ced8[_0x4c4f6c('0x209')]?_0x4c4f6c('0x22d')+_0xd8ced8[_0x4c4f6c('0x209')]+_0x4c4f6c('0xa99')+_0xd8ced8['statusText']:_0x4c4f6c('0x1aaa'),'msg':_0xd8ced8[_0x4c4f6c('0x11c2')]?JSON['stringify'](_0xd8ced8[_0x4c4f6c('0x11c2')][_0x4c4f6c('0x1224')]):_0xd8ced8[_0x4c4f6c('0x174f')]()});});}function _0x2e5bdc(){var _0x126371=_0x947d75;_0x112f59[_0x126371('0x1a69')]=[],_0x31798b[_0x126371('0x608')][_0x126371('0x5ef')]({'id':_0x112f59['context']['id']},_0x112f59[_0x126371('0x244c')])[_0x126371('0x1376')][_0x126371('0x21ad')](function(_0x3cd45a){var _0x465bd8=_0x126371,_0x3f8eb6=_0x86640f()[_0x465bd8('0x1d2e')](_0x112f59[_0x465bd8('0x1089')],{'id':_0x3cd45a['id']});_0x3f8eb6&&_0x86640f()[_0x465bd8('0xd0e')](_0x3f8eb6,_0x86640f()[_0x465bd8('0xc50')](_0x3cd45a[_0x465bd8('0x3bc')](),_0x86640f()[_0x465bd8('0x223b')](_0x3f8eb6))),_0x3e4e57[_0x465bd8('0xdb1')]({'title':_0x465bd8('0x110b'),'msg':_0x112f59['context'][_0x465bd8('0x19fe')]?_0x112f59[_0x465bd8('0x244c')][_0x465bd8('0x19fe')]+'\x20has\x20been\x20saved!':''}),_0x2727a9(_0x3cd45a);})[_0x126371('0x1c1d')](function(_0x119428){var _0xb84ae8=_0x126371;if(_0x119428[_0xb84ae8('0x11c2')]&&_0x119428[_0xb84ae8('0x11c2')][_0xb84ae8('0x1a69')]&&_0x119428[_0xb84ae8('0x11c2')]['errors']['length']){_0x112f59[_0xb84ae8('0x1a69')]=_0x119428[_0xb84ae8('0x11c2')]['errors']||[{'message':_0x119428[_0xb84ae8('0x174f')](),'type':_0xb84ae8('0x2762')}];for(var _0x29742a=0x0;_0x29742a<_0x119428[_0xb84ae8('0x11c2')][_0xb84ae8('0x1a69')]['length'];_0x29742a++){_0x3e4e57[_0xb84ae8('0x2092')]({'title':_0x119428[_0xb84ae8('0x11c2')][_0xb84ae8('0x1a69')][_0x29742a][_0xb84ae8('0x7fa')],'msg':_0x119428[_0xb84ae8('0x11c2')]['errors'][_0x29742a][_0xb84ae8('0x1224')]});}}else _0x3e4e57['error']({'title':_0x119428[_0xb84ae8('0x209')]?_0xb84ae8('0x22d')+_0x119428['status']+_0xb84ae8('0xa99')+_0x119428[_0xb84ae8('0x1808')]:_0xb84ae8('0x2762'),'msg':_0x119428[_0xb84ae8('0x11c2')]?JSON['stringify'](_0x119428[_0xb84ae8('0x11c2')]['message']):_0x119428[_0xb84ae8('0x174f')]()});});}function _0x5106d0(_0x5a18c3){var _0x5c723b=_0x947d75;_0x112f59[_0x5c723b('0x1a69')]=[];var _0x44eb77=_0x311321[_0x5c723b('0xa33')]()[_0x5c723b('0x4b4')](_0x5c723b('0x196b'))[_0x5c723b('0x13fb')](_0x5c723b('0x682'))[_0x5c723b('0x7a7')](_0x5c723b('0x1afb'))['ok'](_0x5c723b('0xbfd'))[_0x5c723b('0x3b5')](_0x5c723b('0x1f40'))[_0x5c723b('0x1e6d')](_0x5a18c3);_0x311321[_0x5c723b('0x853')](_0x44eb77)[_0x5c723b('0x21ad')](function(){var _0x316486=_0x5c723b;_0x31798b[_0x316486('0x608')]['delete']({'id':_0x112f59[_0x316486('0x244c')]['id']})[_0x316486('0x1376')]['then'](function(){var _0x10ff01=_0x316486;_0x86640f()[_0x10ff01('0x16a2')](_0x112f59[_0x10ff01('0x1089')],{'id':_0x112f59['context']['id']}),_0x3e4e57[_0x10ff01('0xdb1')]({'title':'Context\x20properly\x20deleted!','msg':(_0x112f59['context'][_0x10ff01('0x19fe')]||'context')+_0x10ff01('0xb4a')}),_0x2727a9(_0x112f59[_0x10ff01('0x244c')]);})[_0x316486('0x1c1d')](function(_0x2696c3){var _0xa327cb=_0x316486;if(_0x2696c3[_0xa327cb('0x11c2')]&&_0x2696c3[_0xa327cb('0x11c2')][_0xa327cb('0x1a69')]&&_0x2696c3[_0xa327cb('0x11c2')][_0xa327cb('0x1a69')][_0xa327cb('0x577')]){_0x112f59[_0xa327cb('0x1a69')]=_0x2696c3['data'][_0xa327cb('0x1a69')]||[{'message':_0x2696c3[_0xa327cb('0x174f')](),'type':_0xa327cb('0xabf')}];for(var _0x1063e6=0x0;_0x1063e6<_0x2696c3[_0xa327cb('0x11c2')][_0xa327cb('0x1a69')][_0xa327cb('0x577')];_0x1063e6++){_0x3e4e57[_0xa327cb('0x2092')]({'title':_0x2696c3[_0xa327cb('0x11c2')][_0xa327cb('0x1a69')][_0x1063e6][_0xa327cb('0x7fa')],'msg':_0x2696c3[_0xa327cb('0x11c2')][_0xa327cb('0x1a69')][_0x1063e6][_0xa327cb('0x1224')]});}}else _0x3e4e57[_0xa327cb('0x2092')]({'title':_0x2696c3[_0xa327cb('0x209')]?_0xa327cb('0x22d')+_0x2696c3[_0xa327cb('0x209')]+'\x20-\x20'+_0x2696c3[_0xa327cb('0x1808')]:_0xa327cb('0xabf'),'msg':_0x2696c3[_0xa327cb('0x11c2')]?JSON['stringify'](_0x2696c3['data'][_0xa327cb('0x1224')]):_0x2696c3['message']||_0x2696c3[_0xa327cb('0x174f')]()});});},function(){});}function _0x429de3(_0x46a659){return _0x46a659===null?undefined:new Date(_0x46a659);}function _0x2727a9(_0x521780){var _0x429ab8=_0x947d75;_0x311321[_0x429ab8('0x1c24')](_0x521780);}}const _0x3e9259=_0x2f1d1c;_0x97a189[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x16a4'),_0x3877e3('0x152f'),_0x3877e3('0xccd'),'Auth',_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x97a189(_0x55bb4c,_0x53c887,_0x5ae2a,_0x2cc36b,_0x4b5d5b,_0x1a8ebd,_0x32941b,_0x1fd5e3,_0x1a1ddb,_0x448eb3,_0x1b37bd,_0x304b48,_0x25488d,_0x150117){var _0x41b252=_0x3877e3,_0x1457dc=this;_0x1457dc[_0x41b252('0x123f')]=_0x1b37bd[_0x41b252('0x15ed')](),_0x1457dc[_0x41b252('0x1a69')]=[],_0x1457dc['setting']=_0x25488d,_0x1457dc['license']=_0x304b48,_0x1457dc[_0x41b252('0x5ed')]=_0x150117,_0x1457dc[_0x41b252('0x126a')]={},_0x1457dc[_0x41b252('0x1432')]=_0x1457dc[_0x41b252('0x21e')]&&_0x1457dc[_0x41b252('0x21e')][_0x41b252('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1457dc[_0x41b252('0x4b4')]=_0x41b252('0x126e'),_0x1457dc[_0x41b252('0x152f')]=angular[_0x41b252('0xd75')](_0x1a1ddb),_0x1457dc[_0x41b252('0x16a4')]=_0x1fd5e3,_0x1457dc[_0x41b252('0x281b')]=![];!_0x1457dc[_0x41b252('0x152f')]&&(_0x1457dc[_0x41b252('0x152f')]={'appdata':_0x41b252('0x12d1'),'type':_0x41b252('0x923'),'context':'from-voip-provider'},_0x1457dc['title']='VOICE.NEW_INBOUNDROUTE',_0x1457dc[_0x41b252('0x281b')]=!![]);_0x1457dc[_0x41b252('0x1ee0')]=_0x3952a8,_0x1457dc['saveInboundRoute']=_0x49ea65,_0x1457dc[_0x41b252('0x917')]=_0xef4a3f,_0x1457dc[_0x41b252('0x279')]=_0x18923e,_0x1457dc[_0x41b252('0x167')]=_0xfe4e63,_0x1b37bd['hasRole'](_0x41b252('0x1bd8'))?_0x448eb3[_0x41b252('0x608')][_0x41b252('0x595')]({'fields':_0x41b252('0x1aa8'),'sort':_0x41b252('0x19fe'),'nolimit':_0x41b252('0x19bd')})[_0x41b252('0x1376')][_0x41b252('0x21ad')](function(_0x14401f){var _0x3172df=_0x41b252;_0x1457dc[_0x3172df('0x1089')]=_0x14401f['rows']||[];})[_0x41b252('0x1c1d')](function(_0x380bac){var _0x588207=_0x41b252;_0x32941b[_0x588207('0x2092')]({'title':_0x380bac[_0x588207('0x209')]?_0x588207('0x22d')+_0x380bac['status']+_0x588207('0xa99')+_0x380bac[_0x588207('0x1808')]:_0x588207('0x11b1'),'msg':_0x380bac['data']?JSON[_0x588207('0x25e')](_0x380bac[_0x588207('0x11c2')]):_0x380bac[_0x588207('0x174f')]()});}):_0x448eb3['voiceContext'][_0x41b252('0x595')]({'fields':_0x41b252('0x1aa8'),'sort':'name','nolimit':_0x41b252('0x19bd')})[_0x41b252('0x1376')]['then'](function(_0x54cef6){var _0x4be455=_0x41b252;_0x1457dc[_0x4be455('0x1089')]=_0x54cef6[_0x4be455('0x1b33')]||[];})['then'](function(){var _0x2721b1=_0x41b252;return _0x448eb3['userProfileSection'][_0x2721b1('0x595')]({'userProfileId':_0x1457dc[_0x2721b1('0x123f')][_0x2721b1('0x1618')],'sectionId':0x195})[_0x2721b1('0x1376')];})[_0x41b252('0x21ad')](function(_0x41cba2){var _0x4cf9e8=_0x41b252,_0xb49fec=_0x41cba2&&_0x41cba2[_0x4cf9e8('0x1b33')]?_0x41cba2['rows'][0x0]:null;if(!_0xb49fec)return _0x448eb3[_0x4cf9e8('0x608')][_0x4cf9e8('0x595')]({'fields':_0x4cf9e8('0x1aa8'),'sort':_0x4cf9e8('0x19fe'),'nolimit':_0x4cf9e8('0x19bd'),'defaultEntry':0x1})[_0x4cf9e8('0x1376')][_0x4cf9e8('0x21ad')](function(_0x24664b){_0x1457dc['contexts']=_0x24664b['rows']||[];});else{if(!_0xb49fec[_0x4cf9e8('0x80c')])return _0x448eb3[_0x4cf9e8('0x185e')]['get']({'sectionId':_0xb49fec['id']})[_0x4cf9e8('0x1376')][_0x4cf9e8('0x21ad')](function(_0x4b1612){var _0x2965f3=_0x4cf9e8,_0x2b3f1c=_0x86640f()[_0x2965f3('0x26c3')](_0x4b1612[_0x2965f3('0x1b33')],function(_0xc6fc81){var _0x3a5248=_0x2965f3;return _0x86640f()[_0x3a5248('0x1d2e')](_0x1457dc[_0x3a5248('0x1089')],{'id':_0xc6fc81[_0x3a5248('0x675')]});}),_0x19cda0=null;_0x1457dc['inboundroute']&&(_0x19cda0=_0x86640f()[_0x2965f3('0x1d2e')](_0x1457dc['contexts'],{'name':_0x1457dc[_0x2965f3('0x152f')]['context']}));if(_0x19cda0&&!_0x86640f()[_0x2965f3('0x2664')](_0x2b3f1c,['id',_0x19cda0['id']])){var _0x3344ab=_0x86640f()['find'](_0x1457dc[_0x2965f3('0x1089')],{'id':_0x19cda0['id']});_0x3344ab[_0x2965f3('0xba')]=![],_0x2b3f1c[_0x2965f3('0x206c')](_0x3344ab);}_0x1457dc[_0x2965f3('0x1089')]=_0x2b3f1c;});}})['catch'](function(_0x57006b){var _0x792d97=_0x41b252;_0x32941b[_0x792d97('0x2092')]({'title':_0x57006b[_0x792d97('0x209')]?_0x792d97('0x22d')+_0x57006b[_0x792d97('0x209')]+'\x20-\x20'+_0x57006b[_0x792d97('0x1808')]:_0x792d97('0x1463'),'msg':_0x57006b['data']?JSON[_0x792d97('0x25e')](_0x57006b['data']):_0x57006b[_0x792d97('0x174f')]()});});function _0x3952a8(){var _0xb638d=_0x41b252;_0x1457dc['errors']=[],_0x448eb3['voiceExtension'][_0xb638d('0x186f')](_0x1457dc[_0xb638d('0x152f')])[_0xb638d('0x1376')]['then'](function(_0x317862){var _0x2fe3ed=_0xb638d;_0x1457dc[_0x2fe3ed('0x16a4')][_0x2fe3ed('0xd0c')](_0x317862[_0x2fe3ed('0x3bc')]()),_0x32941b['success']({'title':_0x2fe3ed('0x400'),'msg':_0x1457dc[_0x2fe3ed('0x152f')][_0x2fe3ed('0x19fe')]?_0x1457dc['inboundroute']['name']+_0x2fe3ed('0x1694'):''}),_0xfe4e63(_0x317862);})[_0xb638d('0x1c1d')](function(_0x4e99f8){var _0x4694c6=_0xb638d;if(_0x4e99f8[_0x4694c6('0x11c2')]&&_0x4e99f8[_0x4694c6('0x11c2')][_0x4694c6('0x1a69')]&&_0x4e99f8[_0x4694c6('0x11c2')][_0x4694c6('0x1a69')][_0x4694c6('0x577')]){_0x1457dc[_0x4694c6('0x1a69')]=_0x4e99f8[_0x4694c6('0x11c2')][_0x4694c6('0x1a69')]||[{'message':_0x4e99f8['toString'](),'type':_0x4694c6('0x873')}];for(var _0x405081=0x0;_0x405081<_0x4e99f8[_0x4694c6('0x11c2')][_0x4694c6('0x1a69')][_0x4694c6('0x577')];_0x405081+=0x1){_0x32941b['error']({'title':_0x4e99f8[_0x4694c6('0x11c2')][_0x4694c6('0x1a69')][_0x405081][_0x4694c6('0x7fa')],'msg':_0x4e99f8[_0x4694c6('0x11c2')]['errors'][_0x405081][_0x4694c6('0x1224')]});}}else _0x32941b[_0x4694c6('0x2092')]({'title':_0x4e99f8[_0x4694c6('0x209')]?'API:'+_0x4e99f8[_0x4694c6('0x209')]+'\x20-\x20'+_0x4e99f8['statusText']:_0x4694c6('0x873'),'msg':_0x4e99f8[_0x4694c6('0x11c2')]?JSON[_0x4694c6('0x25e')](_0x4e99f8['data'][_0x4694c6('0x1224')]):_0x4e99f8[_0x4694c6('0x174f')]()});});}function _0x49ea65(){var _0x365b2d=_0x41b252;_0x1457dc[_0x365b2d('0x1a69')]=[],_0x448eb3[_0x365b2d('0x1b0c')]['update']({'id':_0x1457dc[_0x365b2d('0x152f')]['id']},_0x1457dc[_0x365b2d('0x152f')])['$promise'][_0x365b2d('0x21ad')](function(_0xd5356e){var _0x5617b4=_0x365b2d,_0x244648=_0x86640f()[_0x5617b4('0x1d2e')](_0x1457dc[_0x5617b4('0x16a4')],{'id':_0xd5356e['id']});_0x244648&&_0x86640f()[_0x5617b4('0xd0e')](_0x244648,_0x86640f()[_0x5617b4('0xc50')](_0xd5356e[_0x5617b4('0x3bc')](),_0x86640f()[_0x5617b4('0x223b')](_0x244648))),_0x32941b['success']({'title':_0x5617b4('0x4c3'),'msg':_0x1457dc[_0x5617b4('0x152f')][_0x5617b4('0x19fe')]?_0x1457dc[_0x5617b4('0x152f')][_0x5617b4('0x19fe')]+_0x5617b4('0x2249'):''}),_0xfe4e63(_0xd5356e);})[_0x365b2d('0x1c1d')](function(_0x2e54dc){var _0x259e7a=_0x365b2d;if(_0x2e54dc['data']&&_0x2e54dc['data'][_0x259e7a('0x1a69')]&&_0x2e54dc[_0x259e7a('0x11c2')][_0x259e7a('0x1a69')][_0x259e7a('0x577')]){_0x1457dc['errors']=_0x2e54dc[_0x259e7a('0x11c2')][_0x259e7a('0x1a69')]||[{'message':_0x2e54dc[_0x259e7a('0x174f')](),'type':_0x259e7a('0x20f0')}];for(var _0x29bfd4=0x0;_0x29bfd4<_0x2e54dc[_0x259e7a('0x11c2')][_0x259e7a('0x1a69')][_0x259e7a('0x577')];_0x29bfd4++){_0x32941b[_0x259e7a('0x2092')]({'title':_0x2e54dc[_0x259e7a('0x11c2')][_0x259e7a('0x1a69')][_0x29bfd4][_0x259e7a('0x7fa')],'msg':_0x2e54dc[_0x259e7a('0x11c2')][_0x259e7a('0x1a69')][_0x29bfd4][_0x259e7a('0x1224')]});}}else _0x32941b[_0x259e7a('0x2092')]({'title':_0x2e54dc[_0x259e7a('0x209')]?_0x259e7a('0x22d')+_0x2e54dc[_0x259e7a('0x209')]+_0x259e7a('0xa99')+_0x2e54dc['statusText']:_0x259e7a('0x20f0'),'msg':_0x2e54dc['data']?JSON[_0x259e7a('0x25e')](_0x2e54dc[_0x259e7a('0x11c2')]['message']):_0x2e54dc[_0x259e7a('0x174f')]()});});}function _0xef4a3f(_0x351bf6){var _0x565727=_0x41b252;_0x1457dc[_0x565727('0x1a69')]=[];var _0x43df54=_0x2cc36b[_0x565727('0xa33')]()[_0x565727('0x4b4')](_0x565727('0x196b'))['content']('The\x20inboundroute\x20will\x20be\x20deleted.')['ariaLabel'](_0x565727('0x16d1'))['ok']('Delete')[_0x565727('0x3b5')](_0x565727('0x1f40'))[_0x565727('0x1e6d')](_0x351bf6);_0x2cc36b[_0x565727('0x853')](_0x43df54)[_0x565727('0x21ad')](function(){var _0x383db1=_0x565727;_0x448eb3['voiceExtension']['delete']({'id':_0x1457dc[_0x383db1('0x152f')]['id']})['$promise'][_0x383db1('0x21ad')](function(){var _0x3536e2=_0x383db1;_0x86640f()[_0x3536e2('0x16a2')](_0x1457dc[_0x3536e2('0x16a4')],{'id':_0x1457dc[_0x3536e2('0x152f')]['id']}),_0x32941b[_0x3536e2('0xdb1')]({'title':_0x3536e2('0x2539'),'msg':(_0x1457dc[_0x3536e2('0x152f')][_0x3536e2('0x19fe')]||'inboundroute')+'\x20has\x20been\x20deleted!'}),_0xfe4e63(_0x1457dc[_0x3536e2('0x152f')]);})['catch'](function(_0x1746b7){var _0x2b2a5a=_0x383db1;if(_0x1746b7[_0x2b2a5a('0x11c2')]&&_0x1746b7[_0x2b2a5a('0x11c2')][_0x2b2a5a('0x1a69')]&&_0x1746b7[_0x2b2a5a('0x11c2')][_0x2b2a5a('0x1a69')][_0x2b2a5a('0x577')]){_0x1457dc[_0x2b2a5a('0x1a69')]=_0x1746b7[_0x2b2a5a('0x11c2')][_0x2b2a5a('0x1a69')]||[{'message':_0x1746b7[_0x2b2a5a('0x174f')](),'type':'api.voiceExtension.delete'}];for(var _0x15c670=0x0;_0x15c670<_0x1746b7[_0x2b2a5a('0x11c2')][_0x2b2a5a('0x1a69')][_0x2b2a5a('0x577')];_0x15c670++){_0x32941b[_0x2b2a5a('0x2092')]({'title':_0x1746b7[_0x2b2a5a('0x11c2')][_0x2b2a5a('0x1a69')][_0x15c670][_0x2b2a5a('0x7fa')],'msg':_0x1746b7[_0x2b2a5a('0x11c2')][_0x2b2a5a('0x1a69')][_0x15c670][_0x2b2a5a('0x1224')]});}}else _0x32941b[_0x2b2a5a('0x2092')]({'title':_0x1746b7[_0x2b2a5a('0x209')]?_0x2b2a5a('0x22d')+_0x1746b7[_0x2b2a5a('0x209')]+_0x2b2a5a('0xa99')+_0x1746b7[_0x2b2a5a('0x1808')]:'api.voiceExtension.delete','msg':_0x1746b7[_0x2b2a5a('0x11c2')]?JSON['stringify'](_0x1746b7[_0x2b2a5a('0x11c2')][_0x2b2a5a('0x1224')]):_0x1746b7[_0x2b2a5a('0x1224')]||_0x1746b7[_0x2b2a5a('0x174f')]()});});},function(){});}function _0x18923e(_0x534028){return _0x534028===null?undefined:new Date(_0x534028);}function _0xfe4e63(_0x53836d){var _0x558108=_0x41b252;_0x2cc36b[_0x558108('0x1c24')](_0x53836d);}}const _0x4d7e9c=_0x97a189,_0x8c31f2=_0x398308['p']+_0x3877e3('0x1f91'),_0x42e271=_0x398308['p']+_0x3877e3('0x640'),_0x25c07f=_0x398308['p']+_0x3877e3('0x16b7'),_0x27d1b7=_0x398308['p']+_0x3877e3('0x926'),_0xf259dc=_0x398308['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/goto/dialog.html/dialog-[chunkhash].html',_0x14266c=_0x398308['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/hangup/dialog.html/dialog-[chunkhash].html',_0x320a0b=_0x398308['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/internaldial/dialog.html/dialog-[chunkhash].html',_0x408767=_0x398308['p']+_0x3877e3('0x1213'),_0x52f9fc=_0x398308['p']+_0x3877e3('0x1c13'),_0x18763c=_0x398308['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/queue/dialog.html/dialog-[chunkhash].html',_0x1b77be=_0x398308['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/ringgroup/dialog.html/dialog-[chunkhash].html',_0x2d340e=_0x398308['p']+_0x3877e3('0x2c2'),_0x3befba=_0x398308['p']+_0x3877e3('0x265d');_0x4487a6[_0x3877e3('0x1a81')]=[_0x3877e3('0xccd'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x1908'),_0x3877e3('0x15bc')];var _0x29cc72={'agi':_0x8c31f2,'custom':_0x42e271,'dial':_0x25c07f,'externaldial':_0x27d1b7,'goto':_0xf259dc,'hangup':_0x14266c,'internaldial':_0x320a0b,'interval':_0x408767,'playback':_0x52f9fc,'queue':_0x18763c,'ringgroup':_0x1b77be,'set':_0x2d340e,'voicemail':_0x3befba};function _0x4487a6(_0x3b6dba,_0x4b5b8f,_0x3f2e7b,_0x5e2702,_0x1741b5){var _0x185c53=_0x3877e3,_0x6db41b=this;_0x6db41b['currentUser']=_0x1741b5[_0x185c53('0x15ed')](),_0x6db41b['inboundroute']={},_0x6db41b[_0x185c53('0x1e73')]={'count':0x0,'rows':[]},_0x6db41b[_0x185c53('0x8ef')]=[],_0x6db41b[_0x185c53('0x5ed')],_0x6db41b['query']={'sort':_0x185c53('0xbe5')},_0x6db41b[_0x185c53('0x69a')]=_0x86640f()[_0x185c53('0x37a')](_0x86640f()[_0x185c53('0x203e')]([{'app':'Interval','appType':_0x185c53('0xa07'),'types':[_0x185c53('0x869'),'custom',_0x185c53('0x17fe')],'fields':[],'isApp':![]},{'app':_0x185c53('0x1da'),'appType':_0x185c53('0xbdd'),'context':_0x185c53('0xb80'),'type':_0x185c53('0xb41'),'appdata':',xX,,,300,,,,,','icon':_0x185c53('0x1da4'),'options':'xX','interval':'*,*,*,*','answer':!![],'isApp':!![],'extraApi':[{'name':_0x185c53('0xc64'),'field':{'name':_0x185c53('0x2397'),'key':_0x185c53('0x275c'),'prefix':'/var/opt/motion2/server/files/sounds/converted/'},'route':_0x185c53('0x2397'),'filters':{'fields':_0x185c53('0x343'),'sort':_0x185c53('0x19fe'),'nolimit':!![]},'permissions':{'section':0x3ef}},{'name':_0x185c53('0xb7a'),'field':{'name':_0x185c53('0xbdd'),'key':_0x185c53('0x19fe')},'route':'voiceQueue','filters':{'type':_0x185c53('0x923'),'fields':'id,name,type','sort':_0x185c53('0x19fe'),'nolimit':!![]},'permissions':{'section':0x191}}],'fields':[{'title':'Queue','name':_0x185c53('0xbdd'),'type':'apiselect','values':_0x185c53('0xb7a'),'value':_0x185c53('0x126f'),'option':_0x185c53('0x126f'),'required':!![],'param':0x0},{'title':_0x185c53('0x107a'),'name':'options','type':'text','param':0x1},{'title':_0x185c53('0x274b'),'name':_0x185c53('0x2028'),'type':_0x185c53('0xc1e'),'param':0x2},{'title':_0x185c53('0x1e79'),'name':'sound','type':_0x185c53('0x15e9'),'values':_0x185c53('0xc64'),'value':_0x185c53('0x1d2b'),'option':_0x185c53('0x118e'),'defaultValues':[{'value':'\x27\x27','option':_0x185c53('0x2405')}],'param':0x3},{'title':_0x185c53('0x1149'),'name':_0x185c53('0x2133'),'type':_0x185c53('0xed8'),'min':0x0,'param':0x4},{'title':_0x185c53('0x2085'),'name':_0x185c53('0x2356'),'type':'text','param':0x5},{'title':_0x185c53('0x1063'),'name':'macro','type':_0x185c53('0xc1e'),'param':0x6},{'title':'GoSub','name':_0x185c53('0x1e22'),'type':_0x185c53('0xc1e'),'param':0x7},{'title':_0x185c53('0x2742'),'name':'rule','type':_0x185c53('0xc1e'),'param':0x8},{'title':'Position','name':_0x185c53('0x1c9f'),'type':_0x185c53('0xed8'),'min':0x0,'param':0x9},{'title':_0x185c53('0x19b7'),'name':'answer','type':_0x185c53('0x23a7'),'general':!![]}]},{'app':_0x185c53('0x1e9a'),'appType':_0x185c53('0x25be'),'context':_0x185c53('0xb80'),'type':_0x185c53('0xb41'),'icon':_0x185c53('0x1da4'),'interval':_0x185c53('0x1cc4'),'answer':!![],'isApp':!![],'extraApi':[{'name':'sounds','field':{'name':_0x185c53('0x2397'),'key':_0x185c53('0x275c'),'prefix':_0x185c53('0x428')},'route':_0x185c53('0x2397'),'filters':{'fields':_0x185c53('0x343'),'sort':_0x185c53('0x19fe'),'nolimit':!![]},'permissions':{'section':0x3ef}}],'fields':[{'title':_0x185c53('0xfc'),'name':'appdata','type':_0x185c53('0x15e9'),'values':_0x185c53('0xc64'),'value':_0x185c53('0x2744'),'option':_0x185c53('0x20a6'),'required':!![],'param':0x0},{'title':'Options','name':_0x185c53('0x26a0'),'type':_0x185c53('0xc1e'),'param':0x1},{'title':_0x185c53('0x19b7'),'name':_0x185c53('0x1446'),'type':_0x185c53('0x23a7'),'general':!![]}]},{'app':_0x185c53('0x269f'),'appType':_0x185c53('0x25a3'),'context':'from-voip-provider','type':'Inbound','icon':_0x185c53('0x1da4'),'interval':_0x185c53('0x1cc4'),'options':'xX','isApp':!![],'fields':[{'title':_0x185c53('0x323'),'name':_0x185c53('0x1ee1'),'type':_0x185c53('0xc1e'),'required':!![],'param':0x0},{'title':_0x185c53('0x1149'),'name':'timeout','type':_0x185c53('0xed8'),'min':0x0,'param':0x1},{'title':_0x185c53('0x107a'),'name':_0x185c53('0x26a0'),'type':_0x185c53('0xc1e'),'param':0x2},{'title':'Url','name':_0x185c53('0x770'),'type':_0x185c53('0xc1e'),'param':0x3}]},{'app':'Dial','appType':_0x185c53('0xbc9'),'context':_0x185c53('0xb80'),'type':_0x185c53('0xb41'),'icon':_0x185c53('0x1da4'),'interval':_0x185c53('0x1cc4'),'options':'xX','isApp':!![],'extraApi':[{'name':_0x185c53('0x188e'),'field':{'name':_0x185c53('0x1775'),'key':'name','prefix':_0x185c53('0x12d2')},'route':_0x185c53('0x1775'),'filters':{'fields':'id,name,role','sort':_0x185c53('0x19fe'),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x185c53('0x2402')},{'id':0xcb,'role':_0x185c53('0x13f4')}]}}],'fields':[{'title':'User','name':_0x185c53('0x1775'),'type':_0x185c53('0x15e9'),'values':'users','value':_0x185c53('0x16c4'),'option':_0x185c53('0x26cb'),'required':!![],'param':0x0},{'title':_0x185c53('0x1149'),'name':_0x185c53('0x2133'),'type':_0x185c53('0xed8'),'min':0x0,'param':0x1},{'title':'Options','name':_0x185c53('0x26a0'),'type':_0x185c53('0xc1e'),'param':0x2},{'title':_0x185c53('0x274b'),'name':_0x185c53('0x770'),'type':'text','param':0x3}]},{'app':_0x185c53('0x269f'),'appType':_0x185c53('0x1a6'),'context':'from-voip-provider','type':_0x185c53('0x923'),'icon':_0x185c53('0x1da4'),'interval':_0x185c53('0x1cc4'),'options':'xX','isApp':!![],'extraApi':[{'name':'trunks','field':{'name':'trunk','key':'name'},'route':_0x185c53('0x1280'),'filters':{'fields':_0x185c53('0x1aa8'),'sort':'name','nolimit':!![]},'permissions':{'section':0x3f3}}],'fields':[{'title':'Trunk','name':_0x185c53('0x1280'),'type':_0x185c53('0x15e9'),'values':'trunks','value':_0x185c53('0x282e'),'option':_0x185c53('0x282e'),'required':!![],'param':0x0},{'title':_0x185c53('0x2781'),'name':_0x185c53('0x159e'),'required':!![],'type':_0x185c53('0xc1e')},{'title':_0x185c53('0x1149'),'name':_0x185c53('0x2133'),'type':_0x185c53('0xed8'),'min':0x0,'param':0x1},{'title':'Options','name':'options','type':_0x185c53('0xc1e'),'param':0x2},{'title':_0x185c53('0x274b'),'name':'url','type':_0x185c53('0xc1e'),'param':0x3}]},{'app':_0x185c53('0x269f'),'appType':_0x185c53('0x19b6'),'context':_0x185c53('0xb80'),'type':'inbound','icon':_0x185c53('0x1da4'),'interval':'*,*,*,*','options':'xX','isApp':!![],'extraApi':[{'name':_0x185c53('0x188e'),'field':{'name':_0x185c53('0x160b'),'key':'name','prefix':'SIP/'},'route':_0x185c53('0x1775'),'filters':{'fields':_0x185c53('0x2813'),'sort':_0x185c53('0x19fe'),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x185c53('0x2402')},{'id':0xcb,'role':'telephone'}]}}],'fields':[{'title':'User','name':_0x185c53('0x160b'),'type':_0x185c53('0x15e9'),'multiple':!![],'values':_0x185c53('0x188e'),'value':'\x27SIP/{{multipleUsers.name}}\x27','option':_0x185c53('0xc2f'),'required':!![],'param':0x0},{'title':_0x185c53('0x1149'),'name':_0x185c53('0x2133'),'type':'number','min':0x0,'param':0x1},{'title':_0x185c53('0x107a'),'name':_0x185c53('0x26a0'),'type':'text','param':0x2},{'title':_0x185c53('0x274b'),'name':'url','type':'text','param':0x3}]},{'app':'AGI','alias':_0x185c53('0x2cc'),'appType':_0x185c53('0x2356'),'context':_0x185c53('0xb80'),'type':_0x185c53('0x923'),'icon':_0x185c53('0x1da4'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x185c53('0xc0f'),'field':{'name':_0x185c53('0xbf8'),'key':_0x185c53('0x19fe'),'prefix':_0x185c53('0x186d')},'route':'squareProject','filters':{'fields':_0x185c53('0x1aa8'),'sort':'name','nolimit':!![]},'permissions':{'section':0x44f}}],'fields':[{'title':_0x185c53('0x2294'),'name':_0x185c53('0xbf8'),'type':_0x185c53('0x15e9'),'values':_0x185c53('0xc0f'),'value':_0x185c53('0xd64'),'option':_0x185c53('0x22e2'),'required':!![],'param':0x0}]},{'app':'goto','appType':_0x185c53('0x1a5f'),'context':_0x185c53('0xb80'),'type':'Inbound','icon':_0x185c53('0x1da4'),'interval':_0x185c53('0x1cc4'),'isApp':!![],'extraApi':[{'name':_0x185c53('0x1089'),'field':{'name':_0x185c53('0x244c'),'key':_0x185c53('0x19fe')},'route':_0x185c53('0x608'),'filters':{'fields':'id,name','sort':_0x185c53('0x19fe'),'nolimit':!![]},'permissions':{'section':0x195}}],'fields':[{'title':'Context','name':_0x185c53('0x244c'),'type':_0x185c53('0x15e9'),'values':_0x185c53('0x1089'),'value':_0x185c53('0xfe2'),'option':_0x185c53('0xfe2'),'required':!![],'param':0x0},{'title':'Extension','name':_0x185c53('0x128d'),'type':_0x185c53('0xc1e'),'required':!![],'param':0x1},{'title':_0x185c53('0x168e'),'name':_0x185c53('0xbe5'),'type':_0x185c53('0xc1e'),'required':!![],'param':0x2}]},{'app':_0x185c53('0xf7d'),'appType':_0x185c53('0xf7d'),'context':_0x185c53('0xb80'),'type':_0x185c53('0xb41'),'icon':_0x185c53('0x1da4'),'interval':_0x185c53('0x1cc4'),'isApp':!![],'fields':[{'title':_0x185c53('0x113f'),'name':_0x185c53('0x23c2'),'type':'select','param':0x0,'values':[{'option':_0x185c53('0x6d9'),'value':_0x185c53('0x1bf7')},{'option':_0x185c53('0x1eb3'),'value':'\x2716\x27'},{'option':_0x185c53('0x664'),'value':_0x185c53('0x1f0f')},{'option':_0x185c53('0x77a'),'value':_0x185c53('0x1c39')},{'option':_0x185c53('0x269c'),'value':_0x185c53('0x177d')},{'option':'HANGUPCAUSE_22','value':_0x185c53('0x23af')},{'option':_0x185c53('0x18c'),'value':_0x185c53('0x9e4')},{'option':_0x185c53('0x37'),'value':_0x185c53('0x46b')},{'option':_0x185c53('0xf5c'),'value':_0x185c53('0x21b5')}],'translate':!![],'required':!![],'general':!![]}]},{'app':_0x185c53('0x1bae'),'appType':_0x185c53('0x1125'),'context':_0x185c53('0xb80'),'type':_0x185c53('0xb41'),'separator':'=','icon':'icon-apps','interval':'*,*,*,*','extraApi':[{'name':_0x185c53('0x142d'),'field':{'name':_0x185c53('0x19fe'),'key':_0x185c53('0x19fe')},'route':'variable','filters':{'fields':_0x185c53('0x1aa8'),'sort':_0x185c53('0x19fe'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'isApp':!![],'fields':[{'title':'Variable','name':_0x185c53('0x19fe'),'type':'apiselect','values':_0x185c53('0x142d'),'value':'name.name','option':_0x185c53('0x3a5'),'required':!![],'param':0x0},{'title':_0x185c53('0x17a0'),'name':_0x185c53('0x2228'),'type':_0x185c53('0xc1e'),'required':!![],'param':0x1}]},{'app':null,'appType':_0x185c53('0xf50'),'icon':_0x185c53('0x1da4'),'type':_0x185c53('0xb41'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x185c53('0x19f8'),'name':_0x185c53('0x1f94'),'type':_0x185c53('0xc1e'),'required':!![],'param':0x0},{'title':_0x185c53('0x2741'),'name':_0x185c53('0x23c2'),'type':_0x185c53('0xc1e'),'param':0x1}]},{'app':_0x185c53('0x158f'),'appType':_0x185c53('0xcbd'),'context':_0x185c53('0xb80'),'icon':_0x185c53('0x1da4'),'type':'Inbound','interval':_0x185c53('0x1cc4'),'isApp':!![],'extraApi':[{'name':_0x185c53('0x2285'),'field':{'name':'voiceMail','key':_0x185c53('0x263d'),'suffix':_0x185c53('0xfd9')},'route':_0x185c53('0x554'),'filters':{'fields':'id,mailbox','sort':'mailbox','nolimit':!![]},'permissions':{'section':0x196}}],'fields':[{'title':_0x185c53('0x1abe'),'name':_0x185c53('0x554'),'type':'apiselect','values':_0x185c53('0x2285'),'value':_0x185c53('0x1569'),'option':_0x185c53('0x101d'),'required':!![],'param':0x0},{'title':_0x185c53('0x107a'),'name':_0x185c53('0x26a0'),'type':'text','param':0x1}]}],[_0x185c53('0x1f94')]),{'isApp':![]}),_0x6db41b[_0x185c53('0x17fe')]={'group':{'name':_0x185c53('0xcd'),'pull':'clone'},'animation':0x64,'sort':![]},_0x6db41b['applications']={'group':{'name':'opt2','put':_0x185c53('0xcd')},'animation':0x64,'onAdd':function _0xed10de(_0x484ccd){var _0x2c2fff=_0x185c53;_0x531896(_0x484ccd,_0x484ccd[_0x2c2fff('0x5b8')]);},'onSort':function _0x49fe34(){_0x23f342();}},_0x6db41b[_0x185c53('0x1d75')]=_0x1fd5ef,_0x6db41b[_0x185c53('0x15dc')]=_0x25a13d,_0x6db41b[_0x185c53('0xb89')]=_0x29e820,_0x6db41b[_0x185c53('0x1d31')]=_0x531896,_0x6db41b['editInterval']=_0x11c9cd,_0x6db41b[_0x185c53('0x1a11')]=_0x3d2d89,_0x6db41b[_0x185c53('0x1f3')]=_0x290e69,_0x6db41b[_0x185c53('0x14aa')]=_0x23f342,_0x6db41b[_0x185c53('0x1ceb')]=_0x1f9d4a;function _0x1fd5ef(_0x4a62b5,_0x3fbedd){var _0x5109c3=_0x185c53;_0x6db41b['inboundroute']=_0x4a62b5,_0x6db41b['crudPermissions']=typeof _0x3fbedd!=='undefined'?_0x3fbedd:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x6db41b[_0x5109c3('0x21d8')][_0x5109c3('0x30')]=!_0x6db41b[_0x5109c3('0x5ed')][_0x5109c3('0x6e2')]?!![]:![],_0x6db41b['query'][_0x5109c3('0x772')]=_0x4a62b5['id'],_0x6db41b['query']['isApp']=!![],_0x6db41b[_0x5109c3('0x77')][_0x5109c3('0x1dc3')]=!![],_0x6db41b[_0x5109c3('0xb89')](),_0x6db41b[_0x5109c3('0x1ceb')]();}function _0x25a13d(_0x50abb0,_0x4ac2da,_0x5a8aaf){var _0x136671=_0x185c53,_0x5c4b08=_0x4b5b8f[_0x136671('0xa33')]()[_0x136671('0x4b4')](_0x136671('0x5b2'))[_0x136671('0x276b')](_0x136671('0x622')+_0x50abb0[_0x136671('0x1f94')]+_0x136671('0x2135')+'\x20will\x20be\x20deleted.')[_0x136671('0x7a7')](_0x136671('0x1b99'))[_0x136671('0x1e6d')](_0x5a8aaf)['ok']('OK')[_0x136671('0x3b5')]('CANCEL');_0x4b5b8f['show'](_0x5c4b08)[_0x136671('0x21ad')](function(){var _0x1248b7=_0x136671;_0x6db41b[_0x1248b7('0x1e73')]['rows']['splice'](_0x4ac2da,0x1),_0x23f342();},function(){var _0x37d399=_0x136671;console[_0x37d399('0x6fb')](_0x37d399('0x284b'));});}function _0x531896(_0x99c414,_0x47c826){var _0x43a9fa=_0x185c53;if(_0x6db41b['inboundrouteApps'][_0x43a9fa('0x1b33')][_0x43a9fa('0x577')]){var _0x383020=_0x6db41b[_0x43a9fa('0x1e73')][_0x43a9fa('0x1b33')][_0x47c826]?_0x6db41b[_0x43a9fa('0x1e73')]['rows'][_0x47c826]:_0x6db41b[_0x43a9fa('0x1e73')]['rows'][0x0],_0x5b8ead=(_0x383020['appType']||_0x383020[_0x43a9fa('0x1f94')])[_0x43a9fa('0xac2')]();_0x4b5b8f[_0x43a9fa('0x853')]({'controller':_0x43a9fa('0x27f6')[_0x43a9fa('0x1877')](_0x5b8ead,_0x43a9fa('0x19d9')),'controllerAs':'vm','templateUrl':_0x29cc72[_0x5b8ead],'parent':angular[_0x43a9fa('0x1676')](_0x3f2e7b['body']),'targetEvent':_0x99c414,'clickOutsideToClose':!![],'locals':{'inboundrouteApp':_0x383020,'inboundroute':_0x6db41b[_0x43a9fa('0x152f')],'crudPermissions':_0x6db41b['crudPermissions']}})[_0x43a9fa('0x21ad')](function(_0x40d5b1){var _0x529bdb=_0x43a9fa;_0x40d5b1&&(_0x40d5b1['id']?_0x6db41b[_0x529bdb('0x1e73')]['rows'][_0x47c826]=_0x40d5b1:_0x6db41b['inboundrouteApps'][_0x529bdb('0x1b33')]['splice'](_0x47c826,0x0,_0x40d5b1),_0x23f342());})[_0x43a9fa('0x1c1d')](function(_0x38f291){var _0x469954=_0x43a9fa;_0x38f291&&_0x5e2702[_0x469954('0x2092')]({'title':_0x38f291['status']?_0x469954('0x22d')+_0x38f291[_0x469954('0x209')]+_0x469954('0xa99')+_0x38f291['statusText']:_0x469954('0x20b3'),'msg':_0x38f291[_0x469954('0x11c2')]?JSON[_0x469954('0x25e')](_0x38f291[_0x469954('0x11c2')]):_0x38f291[_0x469954('0x174f')]()});});}}function _0x11c9cd(_0x2ad665,_0xd626e0){var _0x1c68df=_0x185c53;if(_0x6db41b[_0x1c68df('0x1e73')][_0x1c68df('0x1b33')][_0x1c68df('0x577')]){var _0x28eed0=_0x6db41b[_0x1c68df('0x1e73')][_0x1c68df('0x1b33')][_0xd626e0]?_0x6db41b[_0x1c68df('0x1e73')][_0x1c68df('0x1b33')][_0xd626e0]:_0x6db41b[_0x1c68df('0x1e73')][_0x1c68df('0x1b33')][0x0];_0x4b5b8f[_0x1c68df('0x853')]({'controller':_0x1c68df('0x1fb3'),'controllerAs':'vm','templateUrl':_0x408767,'parent':angular['element'](_0x3f2e7b['body']),'targetEvent':_0x2ad665,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x28eed0['interval'],'IntervalId':_0x28eed0[_0x1c68df('0x1ac8')],'application':!![]},'intervals':[],'crudPermissions':_0x6db41b[_0x1c68df('0x5ed')]}})[_0x1c68df('0x21ad')](function(_0x223b76){var _0x457658=_0x1c68df;_0x223b76&&(_0x28eed0['interval']=_0x223b76['interval']||'*,*,*,*',_0x28eed0['IntervalId']=_0x223b76[_0x457658('0x1ac8')]||null,_0x23f342());});}}function _0x23f342(){var _0x123209=_0x185c53,_0x35c484=[_0x123209('0xbdd'),'playback'],_0x3063d1=0x2,_0x5b064b=[];_0x5b064b[_0x123209('0x206c')]({'type':_0x123209('0x923'),'app':'Set','appdata':_0x123209('0x8a2'),'context':_0x6db41b[_0x123209('0x152f')][_0x123209('0x244c')],'exten':_0x6db41b[_0x123209('0x152f')][_0x123209('0x24b7')],'priority':_0x3063d1++,'VoiceExtensionId':_0x6db41b[_0x123209('0x152f')]['id']}),_0x5b064b[_0x123209('0x206c')]({'type':_0x123209('0x923'),'app':_0x123209('0x1bae'),'appdata':'XCALLY-MOTION-ANSWER=0','context':_0x6db41b[_0x123209('0x152f')][_0x123209('0x244c')],'exten':_0x6db41b[_0x123209('0x152f')][_0x123209('0x24b7')],'priority':_0x3063d1++,'VoiceExtensionId':_0x6db41b['inboundroute']['id']}),_0x5b064b['push']({'type':_0x123209('0x923'),'app':_0x123209('0x1bae'),'appdata':_0x123209('0x1254'),'context':_0x6db41b[_0x123209('0x152f')][_0x123209('0x244c')],'exten':_0x6db41b[_0x123209('0x152f')][_0x123209('0x24b7')],'priority':_0x3063d1++,'VoiceExtensionId':_0x6db41b[_0x123209('0x152f')]['id']}),_0x5b064b['push']({'type':'inbound','app':_0x123209('0x1bae'),'appdata':_0x123209('0x24b4'),'context':_0x6db41b[_0x123209('0x152f')][_0x123209('0x244c')],'exten':_0x6db41b['inboundroute'][_0x123209('0x24b7')],'priority':_0x3063d1++,'VoiceExtensionId':_0x6db41b['inboundroute']['id']});for(var _0x3c4ea6=0x0,_0x8dc9bd=0x0;_0x3c4ea6<_0x6db41b[_0x123209('0x1e73')][_0x123209('0x1b33')][_0x123209('0x577')];_0x3c4ea6++,_0x8dc9bd=0x0){var _0x141aa6=_0x6db41b[_0x123209('0x1e73')][_0x123209('0x1b33')][_0x3c4ea6],_0x1bc4f5=[],_0x2c94c7=[];_0x141aa6[_0x123209('0x2530')]=_0x141aa6[_0x123209('0xa07')]!==_0x123209('0x1cc4')?[_0x141aa6[_0x123209('0xa07')]]:_0x141aa6[_0x123209('0x1ac8')]?_0x86640f()['map'](_0x86640f()['filter'](_0x6db41b[_0x123209('0x2530')]['rows'],{'IntervalId':_0x141aa6[_0x123209('0x1ac8')]}),'interval'):[],_0x141aa6['context']=_0x6db41b[_0x123209('0x152f')][_0x123209('0x244c')],_0x141aa6['exten']=_0x6db41b[_0x123209('0x152f')][_0x123209('0x24b7')];_0x141aa6[_0x123209('0x7fa')]&&(_0x141aa6[_0x123209('0x7fa')]=_0x141aa6[_0x123209('0x7fa')][_0x123209('0xac2')]());typeof _0x141aa6[_0x123209('0x1446')]!==_0x123209('0xddc')&&(_0x35c484[_0x123209('0xb34')](_0x141aa6[_0x123209('0x1f94')][_0x123209('0xac2')]())&&_0x141aa6['appType']!=='custom'&&(_0x141aa6[_0x123209('0x1446')]?(_0x1bc4f5['push']({'type':_0x141aa6[_0x123209('0x7fa')][_0x123209('0xac2')](),'app':'ExecIf','appdata':_0x123209('0x2218'),'context':_0x6db41b[_0x123209('0x152f')][_0x123209('0x244c')],'exten':_0x6db41b['inboundroute']['exten'],'priority':_0x141aa6[_0x123209('0x2530')][_0x123209('0x577')]+_0x3063d1+_0x8dc9bd++,'VoiceExtensionId':_0x6db41b[_0x123209('0x152f')]['id']}),_0x1bc4f5[_0x123209('0x206c')]({'type':_0x141aa6['type'][_0x123209('0xac2')](),'app':'Set','appdata':_0x123209('0xe6c'),'context':_0x6db41b['inboundroute'][_0x123209('0x244c')],'exten':_0x6db41b['inboundroute'][_0x123209('0x24b7')],'priority':_0x141aa6[_0x123209('0x2530')][_0x123209('0x577')]+_0x3063d1+_0x8dc9bd++,'VoiceExtensionId':_0x6db41b[_0x123209('0x152f')]['id']})):(_0x1bc4f5[_0x123209('0x206c')]({'type':_0x141aa6[_0x123209('0x7fa')][_0x123209('0xac2')](),'app':'ExecIf','appdata':'$[${XCALLY-MOTION-PROGRESS}=0]?Progress','context':_0x6db41b[_0x123209('0x152f')][_0x123209('0x244c')],'exten':_0x6db41b[_0x123209('0x152f')][_0x123209('0x24b7')],'priority':_0x141aa6[_0x123209('0x2530')][_0x123209('0x577')]+_0x3063d1+_0x8dc9bd++,'VoiceExtensionId':_0x6db41b[_0x123209('0x152f')]['id']}),_0x1bc4f5[_0x123209('0x206c')]({'type':_0x141aa6[_0x123209('0x7fa')][_0x123209('0xac2')](),'app':_0x123209('0x1bae'),'appdata':_0x123209('0x20b1'),'context':_0x6db41b['inboundroute']['context'],'exten':_0x6db41b[_0x123209('0x152f')][_0x123209('0x24b7')],'priority':_0x141aa6[_0x123209('0x2530')][_0x123209('0x577')]+_0x3063d1+_0x8dc9bd++,'VoiceExtensionId':_0x6db41b[_0x123209('0x152f')]['id']}))));for(var _0xe58a24=0x0;_0xe58a24<_0x141aa6[_0x123209('0x2530')][_0x123209('0x577')];_0xe58a24++){var _0x1de020=_0x3063d1+_0x141aa6[_0x123209('0x2530')][_0x123209('0x577')],_0x15a970=_0xe58a24===_0x141aa6[_0x123209('0x2530')][_0x123209('0x577')]-0x1?_0x3063d1+_0x1bc4f5['length']+_0x2c94c7[_0x123209('0x577')]+0x2:_0x3063d1+_0xe58a24+0x1;_0x1bc4f5[_0x123209('0xafe')](_0xe58a24,0x0,{'type':_0x123209('0x923'),'app':_0x123209('0x25a'),'appdata':_0x141aa6['intervals'][_0xe58a24]+'?'+_0x6db41b[_0x123209('0x152f')][_0x123209('0x244c')]+_0x123209('0x1336')+_0x1de020+':'+_0x6db41b[_0x123209('0x152f')]['context']+_0x123209('0x1336')+_0x15a970,'exten':_0x6db41b[_0x123209('0x152f')]['exten'],'context':_0x6db41b[_0x123209('0x152f')][_0x123209('0x244c')],'priority':_0x3063d1+_0xe58a24,'VoiceExtensionId':_0x6db41b[_0x123209('0x152f')]['id']});}_0x141aa6[_0x123209('0xbe5')]=_0x1bc4f5['length']?_0x86640f()[_0x123209('0x25d5')](_0x1bc4f5)[_0x123209('0xbe5')]+0x1:_0x3063d1,_0x3063d1=(_0x2c94c7[_0x123209('0x577')]?_0x86640f()[_0x123209('0x25d5')](_0x2c94c7)[_0x123209('0xbe5')]:_0x141aa6['priority'])+0x1,_0x5b064b=_0x86640f()[_0x123209('0x1877')](_0x5b064b,_0x1bc4f5,[_0x141aa6],_0x2c94c7);}_0x5b064b[_0x123209('0x206c')]({'type':'inbound','app':'Hangup','exten':_0x6db41b[_0x123209('0x152f')][_0x123209('0x24b7')],'context':_0x6db41b['inboundroute'][_0x123209('0x244c')],'priority':_0x3063d1,'VoiceExtensionId':_0x6db41b[_0x123209('0x152f')]['id']}),_0x3b6dba[_0x123209('0x1b0c')][_0x123209('0x69f')]({'id':_0x6db41b[_0x123209('0x152f')]['id']},_0x86640f()[_0x123209('0x203e')](_0x5b064b,'priority'))[_0x123209('0x1376')]['then'](function(_0x4313be){var _0x4279cf=_0x123209;_0x6db41b[_0x4279cf('0x1e73')][_0x4279cf('0x1b33')]=_0x4313be[_0x4279cf('0x1b33')];})[_0x123209('0x1c1d')](function(_0x5d6df7){var _0x537d4c=_0x123209;console[_0x537d4c('0x2092')](_0x5d6df7);});}function _0x32a04a(_0x2635c3){_0x6db41b['inboundrouteApps']=_0x2635c3||{'count':0x0,'rows':[]};}function _0x1f9d4a(){var _0x339456=_0x185c53;return _0x3b6dba[_0x339456('0xa07')][_0x339456('0x595')]({'fields':'id,interval,IntervalId'})[_0x339456('0x1376')][_0x339456('0x21ad')](function(_0x32a83d){_0x6db41b['intervals']=_0x32a83d;})['catch'](function(_0x1dac35){var _0x39ca6d=_0x339456;console[_0x39ca6d('0x2092')](_0x1dac35);});}function _0x29e820(){var _0x1a672f=_0x185c53;_0x6db41b[_0x1a672f('0x71b')]=_0x3b6dba['voiceExtension'][_0x1a672f('0x595')](_0x6db41b['query'],_0x32a04a)['$promise'];}function _0x3d2d89(_0x5bab64){var _0x26bedc=_0x185c53;_0x86640f()[_0x26bedc('0x16a2')](_0x6db41b[_0x26bedc('0x1e73')]['rows'],{'id':_0x5bab64['id']}),_0x23f342(),_0x5e2702['success']({'title':_0x26bedc('0x1922'),'msg':_0x5bab64[_0x26bedc('0x1f94')]?_0x5bab64[_0x26bedc('0x1f94')]+_0x26bedc('0xb4a'):''});}function _0x290e69(_0x26ea37){var _0x5953b3=_0x185c53,_0x310581=_0x4b5b8f['confirm']()[_0x5953b3('0x4b4')](_0x5953b3('0x152a'))['htmlContent'](''+_0x6db41b['selectedInboundRouteApps']['length']+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x5953b3('0x7a7')](_0x5953b3('0x89d'))[_0x5953b3('0x1e6d')](_0x26ea37)['ok']('OK')[_0x5953b3('0x3b5')](_0x5953b3('0x284b'));_0x4b5b8f[_0x5953b3('0x853')](_0x310581)['then'](function(){var _0x225ecc=_0x5953b3;_0x6db41b[_0x225ecc('0x8ef')][_0x225ecc('0x1a52')](function(_0x22742a){var _0x5cc725=_0x225ecc;_0x86640f()[_0x5cc725('0x16a2')](_0x6db41b['inboundrouteApps'][_0x5cc725('0x1b33')],{'id':_0x22742a['id']});}),_0x6db41b[_0x225ecc('0x8ef')]=[],_0x23f342();});}}const _0x360ebe=_0x4487a6;_0x3b933a[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),'inboundrouteApp',_0x3877e3('0x152f'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x3b933a(_0x5cb947,_0x1358e5,_0x3bb2fb,_0x2dd0b8,_0x100d9d,_0xbb4819,_0x327ace,_0x488cb1){var _0x23afcd=_0x3877e3,_0x25191a=this;_0x25191a[_0x23afcd('0x123f')]=_0x327ace[_0x23afcd('0x15ed')](),_0x25191a[_0x23afcd('0x1a69')]=[],_0x25191a[_0x23afcd('0x4b4')]=_0x23afcd('0x1b79')+(_0x2dd0b8[_0x23afcd('0x522')]||_0x2dd0b8['app'])[_0x23afcd('0x2e8')](),_0x25191a[_0x23afcd('0x2356')]=angular['copy'](_0x2dd0b8),_0x25191a[_0x23afcd('0x5ed')]=_0x488cb1,_0x25191a[_0x23afcd('0x126a')]={};if(_0x25191a['agi'][_0x23afcd('0x23c2')])switch(_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0x522')]?_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0x522')][_0x23afcd('0xac2')]():_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0x1f94')][_0x23afcd('0xac2')]()){case'custom':break;case'dialogflow':{var _0x4f9558=_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0x23c2')][_0x23afcd('0x1af5')](',');_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0xddb')]=_0x4f9558[0x0],_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0x10f')]=_0x4f9558[0x1],_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0x1cce')]=_0x4f9558[_0x23afcd('0xb3d')](0x2,_0x4f9558['length'])['join'](',');}break;case _0x23afcd('0x1c22'):{var _0x247f58=_0x25191a[_0x23afcd('0x2356')]['appdata']['split'](',');_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0x21c6')]=_0x247f58[0x0],_0x25191a['agi']['secretaccesskey']=_0x247f58[0x1],_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0x20a3')]=_0x247f58[0x2],_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0x15fe')]=_0x247f58[0x3],_0x25191a['agi'][_0x23afcd('0x1cce')]=_0x247f58[_0x23afcd('0xb3d')](0x4,_0x247f58[_0x23afcd('0x577')])['join'](',');}break;case'autoreply':{var _0x269a1b=_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0x23c2')]['split'](',');_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0x13b6')]=isNaN(_0x269a1b[0x0])?_0x269a1b[0x0]:parseInt(_0x269a1b[0x0],0xa),_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0xc1e')]=_0x269a1b[_0x23afcd('0xb3d')](0x1,_0x269a1b[_0x23afcd('0x577')])[_0x23afcd('0x136')](',');}break;case _0x23afcd('0x1224'):_0x25191a[_0x23afcd('0x2356')]['text']=_0x25191a['agi'][_0x23afcd('0x23c2')];break;case _0x23afcd('0x1125'):_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0x19fe')]=_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0x23c2')]['split']('=')[0x0],_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0x2228')]=_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0x23c2')][_0x23afcd('0x1af5')]('=')[0x1];break;case _0x23afcd('0x2356'):_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0xbf8')]=_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0x23c2')];break;default:{var _0x48da99=_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0x23c2')][_0x23afcd('0x1af5')](',');_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0xbf8')]=_0x86640f()['isEmpty'](_0x48da99[0x0])?_0x48da99[0x0]:isNaN(_0x48da99[0x0])?_0x48da99[0x0]:parseInt(_0x48da99[0x0],0xa);}break;}else{}_0x25191a['agi']['type']&&_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0x7fa')][_0x23afcd('0xac2')]()===_0x23afcd('0x2300')&&_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0x522')]['toLowerCase']()===_0x23afcd('0x2363')&&(_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0x1995')]=_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0x159e')]?_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0x159e')][_0x23afcd('0x1af5')]('$')[0x0]:undefined,_0x25191a[_0x23afcd('0x2356')][_0x23afcd('0x26f7')]=_0x25191a[_0x23afcd('0x2356')]['callerID']?'CALLERID(all)='+_0x25191a['agi'][_0x23afcd('0x1f5a')]:undefined);_0x25191a[_0x23afcd('0x1c0e')]=_0x3e6ae3,_0x25191a['closeDialog']=_0x52bbb0,_0x327ace[_0x23afcd('0x21de')](_0x23afcd('0x1bd8'))?_0xbb4819[_0x23afcd('0x1a41')][_0x23afcd('0x595')]({'fields':'id,name','sort':_0x23afcd('0x19fe'),'nolimit':_0x23afcd('0x19bd')})[_0x23afcd('0x1376')][_0x23afcd('0x21ad')](function(_0x4fd989){var _0x70272f=_0x23afcd;_0x25191a[_0x70272f('0xc0f')]=_0x4fd989[_0x70272f('0x1b33')]||[];})[_0x23afcd('0x1c1d')](function(_0x516ada){var _0x5e403f=_0x23afcd;_0x3bb2fb['error']({'title':_0x516ada[_0x5e403f('0x209')]?'API:'+_0x516ada['status']+_0x5e403f('0xa99')+_0x516ada[_0x5e403f('0x1808')]:'SYSTEM:GET_PROJECTS','msg':_0x516ada[_0x5e403f('0x11c2')]?JSON[_0x5e403f('0x25e')](_0x516ada[_0x5e403f('0x11c2')]):_0x516ada[_0x5e403f('0x174f')]()});}):_0xbb4819[_0x23afcd('0x1a41')][_0x23afcd('0x595')]({'fields':_0x23afcd('0x1aa8'),'sort':'name','nolimit':_0x23afcd('0x19bd')})[_0x23afcd('0x1376')][_0x23afcd('0x21ad')](function(_0x515d93){var _0x57f421=_0x23afcd;_0x25191a[_0x57f421('0xc0f')]=_0x515d93[_0x57f421('0x1b33')]||[];})[_0x23afcd('0x21ad')](function(){var _0x1ded5c=_0x23afcd;return _0xbb4819[_0x1ded5c('0xab4')][_0x1ded5c('0x595')]({'userProfileId':_0x25191a[_0x1ded5c('0x123f')][_0x1ded5c('0x1618')],'sectionId':0x44f})[_0x1ded5c('0x1376')];})['then'](function(_0x6ab327){var _0x1430b2=_0x23afcd,_0x52f77c=_0x6ab327&&_0x6ab327[_0x1430b2('0x1b33')]?_0x6ab327[_0x1430b2('0x1b33')][0x0]:null;if(!_0x52f77c){var _0x133e34=[],_0xabeaba=null;_0x25191a[_0x1430b2('0x2356')]&&(_0xabeaba=_0x86640f()[_0x1430b2('0x1d2e')](_0x25191a[_0x1430b2('0xc0f')],{'name':_0x25191a[_0x1430b2('0x2356')]['project']}));for(var _0x50a672=0x0;_0x50a672<_0x25191a['projects'][_0x1430b2('0x577')];_0x50a672++){_0xabeaba&&_0x25191a[_0x1430b2('0xc0f')][_0x50a672]['id']===_0xabeaba['id']&&(_0x25191a[_0x1430b2('0xc0f')][_0x50a672][_0x1430b2('0xba')]=![],_0x133e34[_0x1430b2('0x206c')](_0x25191a[_0x1430b2('0xc0f')][_0x50a672]));}_0x25191a[_0x1430b2('0xc0f')]=_0x133e34;}else{if(!_0x52f77c[_0x1430b2('0x80c')])return _0xbb4819[_0x1430b2('0x185e')]['get']({'sectionId':_0x52f77c['id']})[_0x1430b2('0x1376')][_0x1430b2('0x21ad')](function(_0x2119cc){var _0x14ad55=_0x1430b2,_0x4d3f11=_0x86640f()[_0x14ad55('0x26c3')](_0x2119cc[_0x14ad55('0x1b33')],function(_0x3e4262){var _0x5a82a9=_0x14ad55;return _0x86640f()['find'](_0x25191a[_0x5a82a9('0xc0f')],{'id':_0x3e4262[_0x5a82a9('0x675')]});}),_0x40aab3=null;_0x25191a[_0x14ad55('0x2356')]&&(_0x40aab3=_0x86640f()['find'](_0x25191a[_0x14ad55('0xc0f')],{'name':_0x25191a[_0x14ad55('0x2356')]['project']}));if(_0x40aab3&&!_0x86640f()['some'](_0x4d3f11,['id',_0x40aab3['id']])){var _0x4669b5=_0x86640f()[_0x14ad55('0x1d2e')](_0x25191a[_0x14ad55('0xc0f')],{'id':_0x40aab3['id']});_0x4669b5[_0x14ad55('0xba')]=![],_0x4d3f11[_0x14ad55('0x206c')](_0x4669b5);}_0x25191a[_0x14ad55('0xc0f')]=_0x4d3f11;});}})[_0x23afcd('0x1c1d')](function(_0x211ff4){var _0x18ce81=_0x23afcd;_0x3bb2fb[_0x18ce81('0x2092')]({'title':_0x211ff4['status']?_0x18ce81('0x22d')+_0x211ff4[_0x18ce81('0x209')]+_0x18ce81('0xa99')+_0x211ff4['statusText']:_0x18ce81('0x1859'),'msg':_0x211ff4['data']?JSON[_0x18ce81('0x25e')](_0x211ff4[_0x18ce81('0x11c2')]):_0x211ff4['toString']()});});function _0x3e6ae3(){var _0x587e43=_0x23afcd;_0x25191a[_0x587e43('0x1a69')]=[];var _0x106b76=[];_0x25191a[_0x587e43('0x2356')][_0x587e43('0x7fa')]&&_0x25191a[_0x587e43('0x2356')]['type']['toLowerCase']()===_0x587e43('0x2300')&&_0x25191a['agi']['appType']===_0x587e43('0x4ea')&&(_0x25191a[_0x587e43('0x2356')]['phone']=_0x100d9d[_0x587e43('0x988')]?(_0x25191a[_0x587e43('0x2356')][_0x587e43('0x1995')]||'')+_0x587e43('0x349')+_0x100d9d[_0x587e43('0x988')]+'}':(_0x25191a[_0x587e43('0x2356')][_0x587e43('0x1995')]||'')+_0x587e43('0x2560'),_0x100d9d[_0x587e43('0xad1')]!=='none'?_0x25191a['agi'][_0x587e43('0x26a0')][_0x587e43('0x2004')](_0x587e43('0x478'))<0x0&&(_0x25191a['agi'][_0x587e43('0x26a0')]+=_0x587e43('0x478')):_0x25191a[_0x587e43('0x2356')]['options']=_0x25191a[_0x587e43('0x2356')][_0x587e43('0x26a0')][_0x587e43('0x16e4')]('U(xcally-mixmonitor-context)',''));if(_0x25191a[_0x587e43('0x2356')][_0x587e43('0x522')]&&_0x25191a['agi'][_0x587e43('0x522')]===_0x587e43('0xf50')){}else switch((_0x25191a[_0x587e43('0x2356')]['app']||_0x25191a['agi'][_0x587e43('0x522')])[_0x587e43('0xac2')]()){case _0x587e43('0x1125'):_0x25191a[_0x587e43('0x2356')][_0x587e43('0x23c2')]=_0x25191a[_0x587e43('0x2356')][_0x587e43('0x19fe')]+'='+_0x25191a[_0x587e43('0x2356')][_0x587e43('0x2228')];break;case _0x587e43('0xf50'):break;default:_0x106b76[0x0]=_0x25191a['agi'][_0x587e43('0xbf8')],_0x25191a[_0x587e43('0x2356')][_0x587e43('0x23c2')]=_0x106b76[_0x587e43('0x136')](',');}_0x52bbb0(_0x25191a[_0x587e43('0x2356')]);}function _0x52bbb0(_0x45f05a){var _0x34d1d4=_0x23afcd;_0x5cb947[_0x34d1d4('0x1c24')](_0x45f05a);}}const _0x28dd27=_0x3b933a;_0x3c5183['$inject']=[_0x3877e3('0x1850'),'$q','toasty',_0x3877e3('0x14e'),_0x3877e3('0x152f'),_0x3877e3('0xccd'),'Auth','crudPermissions'];function _0x3c5183(_0x2abf77,_0x65e1d7,_0x363a6d,_0x5bf136,_0x1efd29,_0x470912,_0x30324d,_0x7c5134){var _0x589c58=_0x3877e3,_0x48f84d=this;_0x48f84d['currentUser']=_0x30324d[_0x589c58('0x15ed')](),_0x48f84d['errors']=[],_0x48f84d[_0x589c58('0x4b4')]=_0x589c58('0x1b79')+(_0x5bf136[_0x589c58('0x522')]||_0x5bf136[_0x589c58('0x1f94')])['toUpperCase'](),_0x48f84d['custom']=angular[_0x589c58('0xd75')](_0x5bf136),_0x48f84d[_0x589c58('0x5ed')]=_0x7c5134,_0x48f84d[_0x589c58('0x126a')]={};if(_0x48f84d[_0x589c58('0xf50')][_0x589c58('0x23c2')])switch(_0x48f84d[_0x589c58('0xf50')][_0x589c58('0x522')]?_0x48f84d[_0x589c58('0xf50')][_0x589c58('0x522')]['toLowerCase']():_0x48f84d[_0x589c58('0xf50')][_0x589c58('0x1f94')][_0x589c58('0xac2')]()){case'custom':break;case'dialogflow':{var _0x5a938e=_0x48f84d['custom'][_0x589c58('0x23c2')]['split'](',');_0x48f84d['custom']['key']=_0x5a938e[0x0],_0x48f84d['custom'][_0x589c58('0x10f')]=_0x5a938e[0x1],_0x48f84d[_0x589c58('0xf50')]['welcomemessage']=_0x5a938e[_0x589c58('0xb3d')](0x2,_0x5a938e['length'])[_0x589c58('0x136')](',');}break;case _0x589c58('0x1c22'):{var _0x347fd0=_0x48f84d['custom'][_0x589c58('0x23c2')]['split'](',');_0x48f84d[_0x589c58('0xf50')][_0x589c58('0x21c6')]=_0x347fd0[0x0],_0x48f84d[_0x589c58('0xf50')][_0x589c58('0x797')]=_0x347fd0[0x1],_0x48f84d[_0x589c58('0xf50')][_0x589c58('0x20a3')]=_0x347fd0[0x2],_0x48f84d[_0x589c58('0xf50')][_0x589c58('0x15fe')]=_0x347fd0[0x3],_0x48f84d['custom'][_0x589c58('0x1cce')]=_0x347fd0[_0x589c58('0xb3d')](0x4,_0x347fd0[_0x589c58('0x577')])['join'](',');}break;case _0x589c58('0x1b98'):{var _0x37d60a=_0x48f84d[_0x589c58('0xf50')][_0x589c58('0x23c2')][_0x589c58('0x1af5')](',');_0x48f84d[_0x589c58('0xf50')][_0x589c58('0x13b6')]=isNaN(_0x37d60a[0x0])?_0x37d60a[0x0]:parseInt(_0x37d60a[0x0],0xa),_0x48f84d[_0x589c58('0xf50')][_0x589c58('0xc1e')]=_0x37d60a[_0x589c58('0xb3d')](0x1,_0x37d60a['length'])[_0x589c58('0x136')](',');}break;case _0x589c58('0x1224'):_0x48f84d['custom'][_0x589c58('0xc1e')]=_0x48f84d[_0x589c58('0xf50')][_0x589c58('0x23c2')];break;case _0x589c58('0x1125'):_0x48f84d[_0x589c58('0xf50')][_0x589c58('0x19fe')]=_0x48f84d[_0x589c58('0xf50')][_0x589c58('0x23c2')][_0x589c58('0x1af5')]('=')[0x0],_0x48f84d[_0x589c58('0xf50')]['value']=_0x48f84d[_0x589c58('0xf50')]['appdata'][_0x589c58('0x1af5')]('=')[0x1];break;case _0x589c58('0x2356'):_0x48f84d[_0x589c58('0xf50')][_0x589c58('0xbf8')]=_0x48f84d['custom']['appdata'];break;default:{var _0x365a53=_0x48f84d[_0x589c58('0xf50')][_0x589c58('0x23c2')][_0x589c58('0x1af5')](',');_0x48f84d[_0x589c58('0xf50')][_0x589c58('0x1f94')]=_0x86640f()[_0x589c58('0x23aa')](_0x365a53[0x0])?_0x365a53[0x0]:isNaN(_0x365a53[0x0])?_0x365a53[0x0]:parseInt(_0x365a53[0x0],0xa),_0x48f84d['custom'][_0x589c58('0x23c2')]=_0x86640f()[_0x589c58('0x23aa')](_0x365a53[0x1])?_0x365a53[0x1]:isNaN(_0x365a53[0x1])?_0x365a53[0x1]:parseInt(_0x365a53[0x1],0xa);}break;}else{}_0x48f84d['custom']['type']&&_0x48f84d[_0x589c58('0xf50')][_0x589c58('0x7fa')][_0x589c58('0xac2')]()===_0x589c58('0x2300')&&_0x48f84d['custom']['appType']['toLowerCase']()===_0x589c58('0x2363')&&(_0x48f84d[_0x589c58('0xf50')][_0x589c58('0x1995')]=_0x48f84d[_0x589c58('0xf50')][_0x589c58('0x159e')]?_0x48f84d['custom'][_0x589c58('0x159e')]['split']('$')[0x0]:undefined,_0x48f84d[_0x589c58('0xf50')]['callerId']=_0x48f84d['custom'][_0x589c58('0x1f5a')]?_0x589c58('0x587')+_0x48f84d[_0x589c58('0xf50')][_0x589c58('0x1f5a')]:undefined);_0x48f84d['saveInboundRouteApp']=_0x5e73ac,_0x48f84d['closeDialog']=_0x2d05b0;function _0x5e73ac(){var _0x5edcb3=_0x589c58;_0x48f84d[_0x5edcb3('0x1a69')]=[];var _0x345465=[];_0x48f84d['custom']['type']&&_0x48f84d['custom'][_0x5edcb3('0x7fa')]['toLowerCase']()===_0x5edcb3('0x2300')&&_0x48f84d[_0x5edcb3('0xf50')][_0x5edcb3('0x522')]===_0x5edcb3('0x4ea')&&(_0x48f84d[_0x5edcb3('0xf50')][_0x5edcb3('0x159e')]=_0x1efd29['cutdigits']?(_0x48f84d[_0x5edcb3('0xf50')][_0x5edcb3('0x1995')]||'')+'${EXTEN:'+_0x1efd29[_0x5edcb3('0x988')]+'}':(_0x48f84d[_0x5edcb3('0xf50')][_0x5edcb3('0x1995')]||'')+_0x5edcb3('0x2560'),_0x1efd29['recordingFormat']!==_0x5edcb3('0x983')?_0x48f84d[_0x5edcb3('0xf50')][_0x5edcb3('0x26a0')][_0x5edcb3('0x2004')](_0x5edcb3('0x478'))<0x0&&(_0x48f84d['custom'][_0x5edcb3('0x26a0')]+=_0x5edcb3('0x478')):_0x48f84d[_0x5edcb3('0xf50')][_0x5edcb3('0x26a0')]=_0x48f84d[_0x5edcb3('0xf50')][_0x5edcb3('0x26a0')]['replace'](_0x5edcb3('0x478'),''));if(_0x48f84d[_0x5edcb3('0xf50')][_0x5edcb3('0x522')]&&_0x48f84d[_0x5edcb3('0xf50')][_0x5edcb3('0x522')]===_0x5edcb3('0xf50')){}else switch((_0x48f84d[_0x5edcb3('0xf50')][_0x5edcb3('0x1f94')]||_0x48f84d[_0x5edcb3('0xf50')][_0x5edcb3('0x522')])[_0x5edcb3('0xac2')]()){case'set':_0x48f84d[_0x5edcb3('0xf50')]['appdata']=_0x48f84d[_0x5edcb3('0xf50')][_0x5edcb3('0x19fe')]+'='+_0x48f84d['custom']['value'];break;case _0x5edcb3('0xf50'):break;default:_0x345465[0x0]=_0x48f84d['custom'][_0x5edcb3('0x1f94')],_0x345465[0x1]=_0x48f84d[_0x5edcb3('0xf50')][_0x5edcb3('0x23c2')],_0x48f84d[_0x5edcb3('0xf50')][_0x5edcb3('0x23c2')]=_0x345465[_0x5edcb3('0x136')](',');}_0x2d05b0(_0x48f84d['custom']);}function _0x2d05b0(_0x2219bc){_0x2abf77['hide'](_0x2219bc);}}const _0xa493f5=_0x3c5183;_0xf777f6['$inject']=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),'inboundrouteApp',_0x3877e3('0x152f'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0xf777f6(_0xf87a7e,_0x5eb935,_0x5227ea,_0x197aed,_0x1d7df7,_0x337300,_0x454607,_0x4b283d){var _0xd7eefe=_0x3877e3,_0x4be1b3=this;_0x4be1b3[_0xd7eefe('0x123f')]=_0x454607[_0xd7eefe('0x15ed')](),_0x4be1b3[_0xd7eefe('0x1a69')]=[],_0x4be1b3['title']='VOICE.EDIT_'+(_0x197aed[_0xd7eefe('0x522')]||_0x197aed[_0xd7eefe('0x1f94')])[_0xd7eefe('0x2e8')](),_0x4be1b3[_0xd7eefe('0x25a3')]=angular[_0xd7eefe('0xd75')](_0x197aed),_0x4be1b3[_0xd7eefe('0x5ed')]=_0x4b283d,_0x4be1b3[_0xd7eefe('0x126a')]={};if(_0x4be1b3[_0xd7eefe('0x25a3')][_0xd7eefe('0x23c2')])switch(_0x4be1b3[_0xd7eefe('0x25a3')]['appType']?_0x4be1b3[_0xd7eefe('0x25a3')][_0xd7eefe('0x522')][_0xd7eefe('0xac2')]():_0x4be1b3['dial'][_0xd7eefe('0x1f94')][_0xd7eefe('0xac2')]()){case _0xd7eefe('0xf50'):break;case _0xd7eefe('0xc72'):{var _0x1f7c69=_0x4be1b3[_0xd7eefe('0x25a3')][_0xd7eefe('0x23c2')][_0xd7eefe('0x1af5')](',');_0x4be1b3[_0xd7eefe('0x25a3')][_0xd7eefe('0xddb')]=_0x1f7c69[0x0],_0x4be1b3[_0xd7eefe('0x25a3')]['language']=_0x1f7c69[0x1],_0x4be1b3[_0xd7eefe('0x25a3')][_0xd7eefe('0x1cce')]=_0x1f7c69[_0xd7eefe('0xb3d')](0x2,_0x1f7c69[_0xd7eefe('0x577')])[_0xd7eefe('0x136')](',');}break;case'amazonlex':{var _0x595200=_0x4be1b3[_0xd7eefe('0x25a3')][_0xd7eefe('0x23c2')][_0xd7eefe('0x1af5')](',');_0x4be1b3[_0xd7eefe('0x25a3')][_0xd7eefe('0x21c6')]=_0x595200[0x0],_0x4be1b3[_0xd7eefe('0x25a3')][_0xd7eefe('0x797')]=_0x595200[0x1],_0x4be1b3[_0xd7eefe('0x25a3')]['lexregion']=_0x595200[0x2],_0x4be1b3[_0xd7eefe('0x25a3')][_0xd7eefe('0x15fe')]=_0x595200[0x3],_0x4be1b3[_0xd7eefe('0x25a3')][_0xd7eefe('0x1cce')]=_0x595200['slice'](0x4,_0x595200[_0xd7eefe('0x577')])[_0xd7eefe('0x136')](',');}break;case _0xd7eefe('0x1b98'):{var _0x9484c0=_0x4be1b3[_0xd7eefe('0x25a3')][_0xd7eefe('0x23c2')]['split'](',');_0x4be1b3[_0xd7eefe('0x25a3')][_0xd7eefe('0x13b6')]=isNaN(_0x9484c0[0x0])?_0x9484c0[0x0]:parseInt(_0x9484c0[0x0],0xa),_0x4be1b3['dial'][_0xd7eefe('0xc1e')]=_0x9484c0[_0xd7eefe('0xb3d')](0x1,_0x9484c0[_0xd7eefe('0x577')])[_0xd7eefe('0x136')](',');}break;case _0xd7eefe('0x1224'):_0x4be1b3[_0xd7eefe('0x25a3')][_0xd7eefe('0xc1e')]=_0x4be1b3['dial']['appdata'];break;case _0xd7eefe('0x1125'):_0x4be1b3['dial'][_0xd7eefe('0x19fe')]=_0x4be1b3[_0xd7eefe('0x25a3')][_0xd7eefe('0x23c2')][_0xd7eefe('0x1af5')]('=')[0x0],_0x4be1b3[_0xd7eefe('0x25a3')]['value']=_0x4be1b3['dial'][_0xd7eefe('0x23c2')][_0xd7eefe('0x1af5')]('=')[0x1];break;case _0xd7eefe('0x2356'):_0x4be1b3[_0xd7eefe('0x25a3')][_0xd7eefe('0xbf8')]=_0x4be1b3['dial'][_0xd7eefe('0x23c2')];break;default:{var _0xa43cda=_0x4be1b3[_0xd7eefe('0x25a3')]['appdata'][_0xd7eefe('0x1af5')](',');_0x4be1b3[_0xd7eefe('0x25a3')]['tech']=_0x86640f()['isEmpty'](_0xa43cda[0x0])?_0xa43cda[0x0]:isNaN(_0xa43cda[0x0])?_0xa43cda[0x0]:parseInt(_0xa43cda[0x0],0xa),_0x4be1b3['dial'][_0xd7eefe('0x2133')]=_0x86640f()['isEmpty'](_0xa43cda[0x1])?_0xa43cda[0x1]:isNaN(_0xa43cda[0x1])?_0xa43cda[0x1]:parseInt(_0xa43cda[0x1],0xa),_0x4be1b3[_0xd7eefe('0x25a3')][_0xd7eefe('0x26a0')]=_0x86640f()[_0xd7eefe('0x23aa')](_0xa43cda[0x2])?_0xa43cda[0x2]:isNaN(_0xa43cda[0x2])?_0xa43cda[0x2]:parseInt(_0xa43cda[0x2],0xa),_0x4be1b3[_0xd7eefe('0x25a3')]['url']=_0x86640f()[_0xd7eefe('0x23aa')](_0xa43cda[0x3])?_0xa43cda[0x3]:isNaN(_0xa43cda[0x3])?_0xa43cda[0x3]:parseInt(_0xa43cda[0x3],0xa);}break;}else{}_0x4be1b3[_0xd7eefe('0x25a3')][_0xd7eefe('0x7fa')]&&_0x4be1b3[_0xd7eefe('0x25a3')][_0xd7eefe('0x7fa')][_0xd7eefe('0xac2')]()===_0xd7eefe('0x2300')&&_0x4be1b3[_0xd7eefe('0x25a3')][_0xd7eefe('0x522')][_0xd7eefe('0xac2')]()===_0xd7eefe('0x2363')&&(_0x4be1b3[_0xd7eefe('0x25a3')][_0xd7eefe('0x1995')]=_0x4be1b3[_0xd7eefe('0x25a3')][_0xd7eefe('0x159e')]?_0x4be1b3[_0xd7eefe('0x25a3')][_0xd7eefe('0x159e')][_0xd7eefe('0x1af5')]('$')[0x0]:undefined,_0x4be1b3['dial'][_0xd7eefe('0x26f7')]=_0x4be1b3[_0xd7eefe('0x25a3')][_0xd7eefe('0x1f5a')]?_0xd7eefe('0x587')+_0x4be1b3[_0xd7eefe('0x25a3')][_0xd7eefe('0x1f5a')]:undefined);_0x4be1b3[_0xd7eefe('0x1c0e')]=_0x393e71,_0x4be1b3[_0xd7eefe('0x167')]=_0x44c7ee;function _0x393e71(){var _0x1dde5c=_0xd7eefe;_0x4be1b3['errors']=[];var _0x3b3a9a=[];_0x4be1b3[_0x1dde5c('0x25a3')][_0x1dde5c('0x7fa')]&&_0x4be1b3[_0x1dde5c('0x25a3')]['type'][_0x1dde5c('0xac2')]()===_0x1dde5c('0x2300')&&_0x4be1b3['dial'][_0x1dde5c('0x522')]==='outboundDial'&&(_0x4be1b3['dial'][_0x1dde5c('0x159e')]=_0x1d7df7['cutdigits']?(_0x4be1b3[_0x1dde5c('0x25a3')][_0x1dde5c('0x1995')]||'')+_0x1dde5c('0x349')+_0x1d7df7[_0x1dde5c('0x988')]+'}':(_0x4be1b3[_0x1dde5c('0x25a3')][_0x1dde5c('0x1995')]||'')+_0x1dde5c('0x2560'),_0x1d7df7[_0x1dde5c('0xad1')]!=='none'?_0x4be1b3['dial']['options'][_0x1dde5c('0x2004')](_0x1dde5c('0x478'))<0x0&&(_0x4be1b3[_0x1dde5c('0x25a3')]['options']+=_0x1dde5c('0x478')):_0x4be1b3[_0x1dde5c('0x25a3')][_0x1dde5c('0x26a0')]=_0x4be1b3['dial'][_0x1dde5c('0x26a0')][_0x1dde5c('0x16e4')](_0x1dde5c('0x478'),''));if(_0x4be1b3[_0x1dde5c('0x25a3')]['appType']&&_0x4be1b3[_0x1dde5c('0x25a3')][_0x1dde5c('0x522')]===_0x1dde5c('0xf50')){}else switch((_0x4be1b3[_0x1dde5c('0x25a3')][_0x1dde5c('0x1f94')]||_0x4be1b3[_0x1dde5c('0x25a3')][_0x1dde5c('0x522')])[_0x1dde5c('0xac2')]()){case _0x1dde5c('0x1125'):_0x4be1b3['dial']['appdata']=_0x4be1b3[_0x1dde5c('0x25a3')][_0x1dde5c('0x19fe')]+'='+_0x4be1b3['dial']['value'];break;case'custom':break;default:_0x3b3a9a[0x0]=_0x4be1b3['dial'][_0x1dde5c('0x1ee1')],_0x3b3a9a[0x1]=_0x4be1b3[_0x1dde5c('0x25a3')][_0x1dde5c('0x2133')],_0x3b3a9a[0x2]=_0x4be1b3[_0x1dde5c('0x25a3')][_0x1dde5c('0x26a0')],_0x3b3a9a[0x3]=_0x4be1b3['dial'][_0x1dde5c('0x770')],_0x4be1b3['dial']['appdata']=_0x3b3a9a[_0x1dde5c('0x136')](',');}_0x44c7ee(_0x4be1b3['dial']);}function _0x44c7ee(_0x2c4433){var _0x1c3087=_0xd7eefe;_0xf87a7e[_0x1c3087('0x1c24')](_0x2c4433);}}const _0x26ee98=_0xf777f6;_0x21bb97[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q','toasty',_0x3877e3('0x14e'),_0x3877e3('0x152f'),'api',_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x21bb97(_0x448008,_0x173dce,_0x42a7c5,_0x131f09,_0x426f1b,_0x5735ab,_0x23aaf0,_0x1e9bb1){var _0xd6a898=_0x3877e3,_0x5f7d92=this;_0x5f7d92[_0xd6a898('0x123f')]=_0x23aaf0[_0xd6a898('0x15ed')](),_0x5f7d92[_0xd6a898('0x1a69')]=[],_0x5f7d92[_0xd6a898('0x4b4')]=_0xd6a898('0x1b79')+(_0x131f09['appType']||_0x131f09['app'])[_0xd6a898('0x2e8')](),_0x5f7d92[_0xd6a898('0x1ff6')]=angular[_0xd6a898('0xd75')](_0x131f09),_0x5f7d92[_0xd6a898('0x5ed')]=_0x1e9bb1,_0x5f7d92[_0xd6a898('0x126a')]={};if(_0x5f7d92[_0xd6a898('0x1ff6')][_0xd6a898('0x23c2')])switch(_0x5f7d92[_0xd6a898('0x1ff6')][_0xd6a898('0x522')]?_0x5f7d92[_0xd6a898('0x1ff6')][_0xd6a898('0x522')][_0xd6a898('0xac2')]():_0x5f7d92[_0xd6a898('0x1ff6')][_0xd6a898('0x1f94')][_0xd6a898('0xac2')]()){case _0xd6a898('0xf50'):break;case _0xd6a898('0xc72'):{var _0x395cde=_0x5f7d92[_0xd6a898('0x1ff6')]['appdata'][_0xd6a898('0x1af5')](',');_0x5f7d92[_0xd6a898('0x1ff6')][_0xd6a898('0xddb')]=_0x395cde[0x0],_0x5f7d92[_0xd6a898('0x1ff6')][_0xd6a898('0x10f')]=_0x395cde[0x1],_0x5f7d92[_0xd6a898('0x1ff6')][_0xd6a898('0x1cce')]=_0x395cde[_0xd6a898('0xb3d')](0x2,_0x395cde['length'])[_0xd6a898('0x136')](',');}break;case _0xd6a898('0x1c22'):{var _0x3f7d2a=_0x5f7d92[_0xd6a898('0x1ff6')][_0xd6a898('0x23c2')][_0xd6a898('0x1af5')](',');_0x5f7d92['externaldial'][_0xd6a898('0x21c6')]=_0x3f7d2a[0x0],_0x5f7d92[_0xd6a898('0x1ff6')]['secretaccesskey']=_0x3f7d2a[0x1],_0x5f7d92[_0xd6a898('0x1ff6')]['lexregion']=_0x3f7d2a[0x2],_0x5f7d92[_0xd6a898('0x1ff6')][_0xd6a898('0x15fe')]=_0x3f7d2a[0x3],_0x5f7d92['externaldial'][_0xd6a898('0x1cce')]=_0x3f7d2a[_0xd6a898('0xb3d')](0x4,_0x3f7d2a[_0xd6a898('0x577')])['join'](',');}break;case _0xd6a898('0x1b98'):{var _0x5dbbc=_0x5f7d92[_0xd6a898('0x1ff6')][_0xd6a898('0x23c2')][_0xd6a898('0x1af5')](',');_0x5f7d92[_0xd6a898('0x1ff6')][_0xd6a898('0x13b6')]=isNaN(_0x5dbbc[0x0])?_0x5dbbc[0x0]:parseInt(_0x5dbbc[0x0],0xa),_0x5f7d92[_0xd6a898('0x1ff6')]['text']=_0x5dbbc['slice'](0x1,_0x5dbbc[_0xd6a898('0x577')])['join'](',');}break;case _0xd6a898('0x1224'):_0x5f7d92[_0xd6a898('0x1ff6')]['text']=_0x5f7d92[_0xd6a898('0x1ff6')][_0xd6a898('0x23c2')];break;case _0xd6a898('0x1125'):_0x5f7d92['externaldial'][_0xd6a898('0x19fe')]=_0x5f7d92[_0xd6a898('0x1ff6')][_0xd6a898('0x23c2')][_0xd6a898('0x1af5')]('=')[0x0],_0x5f7d92[_0xd6a898('0x1ff6')][_0xd6a898('0x2228')]=_0x5f7d92[_0xd6a898('0x1ff6')]['appdata'][_0xd6a898('0x1af5')]('=')[0x1];break;case _0xd6a898('0x2356'):_0x5f7d92[_0xd6a898('0x1ff6')][_0xd6a898('0xbf8')]=_0x5f7d92['externaldial'][_0xd6a898('0x23c2')];break;default:{var _0x56f280=_0x5f7d92[_0xd6a898('0x1ff6')][_0xd6a898('0x23c2')][_0xd6a898('0x1af5')](',');_0x5f7d92[_0xd6a898('0x1ff6')]['trunk']=_0x56f280[0x0]['split']('/')[0x1],_0x5f7d92[_0xd6a898('0x1ff6')]['phone']=_0x56f280[0x0]['split']('/')[0x2],_0x5f7d92[_0xd6a898('0x1ff6')][_0xd6a898('0x2133')]=_0x86640f()[_0xd6a898('0x23aa')](_0x56f280[0x1])?_0x56f280[0x1]:isNaN(_0x56f280[0x1])?_0x56f280[0x1]:parseInt(_0x56f280[0x1],0xa),_0x5f7d92[_0xd6a898('0x1ff6')][_0xd6a898('0x26a0')]=_0x86640f()[_0xd6a898('0x23aa')](_0x56f280[0x2])?_0x56f280[0x2]:isNaN(_0x56f280[0x2])?_0x56f280[0x2]:parseInt(_0x56f280[0x2],0xa),_0x5f7d92[_0xd6a898('0x1ff6')][_0xd6a898('0x770')]=_0x86640f()[_0xd6a898('0x23aa')](_0x56f280[0x3])?_0x56f280[0x3]:isNaN(_0x56f280[0x3])?_0x56f280[0x3]:parseInt(_0x56f280[0x3],0xa);}break;}else{}_0x5f7d92[_0xd6a898('0x1ff6')][_0xd6a898('0x7fa')]&&_0x5f7d92['externaldial']['type'][_0xd6a898('0xac2')]()===_0xd6a898('0x2300')&&_0x5f7d92[_0xd6a898('0x1ff6')][_0xd6a898('0x522')][_0xd6a898('0xac2')]()===_0xd6a898('0x2363')&&(_0x5f7d92[_0xd6a898('0x1ff6')][_0xd6a898('0x1995')]=_0x5f7d92[_0xd6a898('0x1ff6')][_0xd6a898('0x159e')]?_0x5f7d92[_0xd6a898('0x1ff6')]['phone'][_0xd6a898('0x1af5')]('$')[0x0]:undefined,_0x5f7d92['externaldial'][_0xd6a898('0x26f7')]=_0x5f7d92[_0xd6a898('0x1ff6')][_0xd6a898('0x1f5a')]?'CALLERID(all)='+_0x5f7d92['externaldial']['callerID']:undefined);_0x5f7d92['saveInboundRouteApp']=_0x50ec72,_0x5f7d92[_0xd6a898('0x167')]=_0x4b97f4,_0x23aaf0[_0xd6a898('0x21de')](_0xd6a898('0x1bd8'))?_0x5735ab[_0xd6a898('0x1280')][_0xd6a898('0x595')]({'fields':_0xd6a898('0x1aa8'),'sort':_0xd6a898('0x19fe'),'nolimit':_0xd6a898('0x19bd')})[_0xd6a898('0x1376')][_0xd6a898('0x21ad')](function(_0x407a34){var _0x179bea=_0xd6a898;_0x5f7d92[_0x179bea('0x1593')]=_0x407a34[_0x179bea('0x1b33')]||[];})['catch'](function(_0x1751fe){var _0x52e49b=_0xd6a898;_0x42a7c5['error']({'title':_0x1751fe[_0x52e49b('0x209')]?_0x52e49b('0x22d')+_0x1751fe['status']+_0x52e49b('0xa99')+_0x1751fe['statusText']:'SYSTEM:GET_TRUNKS','msg':_0x1751fe[_0x52e49b('0x11c2')]?JSON[_0x52e49b('0x25e')](_0x1751fe['data']):_0x1751fe[_0x52e49b('0x174f')]()});}):_0x5735ab[_0xd6a898('0x1280')][_0xd6a898('0x595')]({'fields':_0xd6a898('0x1aa8'),'sort':_0xd6a898('0x19fe'),'nolimit':_0xd6a898('0x19bd')})[_0xd6a898('0x1376')][_0xd6a898('0x21ad')](function(_0x4a9418){var _0x56d311=_0xd6a898;_0x5f7d92['trunks']=_0x4a9418[_0x56d311('0x1b33')]||[];})[_0xd6a898('0x21ad')](function(){var _0x17cc49=_0xd6a898;return _0x5735ab[_0x17cc49('0xab4')][_0x17cc49('0x595')]({'userProfileId':_0x5f7d92[_0x17cc49('0x123f')][_0x17cc49('0x1618')],'sectionId':0x3f3})['$promise'];})[_0xd6a898('0x21ad')](function(_0xdf8120){var _0x52f3cf=_0xd6a898,_0x36563e=_0xdf8120&&_0xdf8120[_0x52f3cf('0x1b33')]?_0xdf8120[_0x52f3cf('0x1b33')][0x0]:null;if(!_0x36563e){var _0x4e8f22=[],_0x5561de=null;_0x5f7d92[_0x52f3cf('0x1ff6')]&&(_0x5561de=_0x86640f()['find'](_0x5f7d92[_0x52f3cf('0x1593')],{'name':_0x5f7d92[_0x52f3cf('0x1ff6')]['trunk']}));for(var _0x3f4c01=0x0;_0x3f4c01<_0x5f7d92[_0x52f3cf('0x1593')][_0x52f3cf('0x577')];_0x3f4c01++){_0x5561de&&_0x5f7d92[_0x52f3cf('0x1593')][_0x3f4c01]['id']===_0x5561de['id']&&(_0x5f7d92[_0x52f3cf('0x1593')][_0x3f4c01][_0x52f3cf('0xba')]=![],_0x4e8f22[_0x52f3cf('0x206c')](_0x5f7d92[_0x52f3cf('0x1593')][_0x3f4c01]));}_0x5f7d92[_0x52f3cf('0x1593')]=_0x4e8f22;}else{if(!_0x36563e[_0x52f3cf('0x80c')])return _0x5735ab['userProfileResource'][_0x52f3cf('0x595')]({'sectionId':_0x36563e['id']})[_0x52f3cf('0x1376')][_0x52f3cf('0x21ad')](function(_0x1c2581){var _0x1d1b93=_0x52f3cf,_0x2b3a6b=_0x86640f()[_0x1d1b93('0x26c3')](_0x1c2581[_0x1d1b93('0x1b33')],function(_0x1bb5f3){var _0x476214=_0x1d1b93;return _0x86640f()[_0x476214('0x1d2e')](_0x5f7d92[_0x476214('0x1593')],{'id':_0x1bb5f3[_0x476214('0x675')]});}),_0x1f9ec8=null;_0x5f7d92['externaldial']&&(_0x1f9ec8=_0x86640f()[_0x1d1b93('0x1d2e')](_0x5f7d92[_0x1d1b93('0x1593')],{'name':_0x5f7d92['externaldial'][_0x1d1b93('0x1280')]}));if(_0x1f9ec8&&!_0x86640f()[_0x1d1b93('0x2664')](_0x2b3a6b,['id',_0x1f9ec8['id']])){var _0x11ac1a=_0x86640f()[_0x1d1b93('0x1d2e')](_0x5f7d92[_0x1d1b93('0x1593')],{'id':_0x1f9ec8['id']});_0x11ac1a[_0x1d1b93('0xba')]=![],_0x2b3a6b['push'](_0x11ac1a);}_0x5f7d92[_0x1d1b93('0x1593')]=_0x2b3a6b;});}})[_0xd6a898('0x1c1d')](function(_0x260e05){var _0x374c36=_0xd6a898;_0x42a7c5[_0x374c36('0x2092')]({'title':_0x260e05[_0x374c36('0x209')]?_0x374c36('0x22d')+_0x260e05[_0x374c36('0x209')]+_0x374c36('0xa99')+_0x260e05[_0x374c36('0x1808')]:_0x374c36('0x3ab'),'msg':_0x260e05[_0x374c36('0x11c2')]?JSON[_0x374c36('0x25e')](_0x260e05[_0x374c36('0x11c2')]):_0x260e05['toString']()});});function _0x50ec72(){var _0x2738fd=_0xd6a898;_0x5f7d92['errors']=[];var _0xbc14f7=[];_0x5f7d92[_0x2738fd('0x1ff6')][_0x2738fd('0x7fa')]&&_0x5f7d92[_0x2738fd('0x1ff6')]['type']['toLowerCase']()===_0x2738fd('0x2300')&&_0x5f7d92[_0x2738fd('0x1ff6')][_0x2738fd('0x522')]==='outboundDial'&&(_0x5f7d92[_0x2738fd('0x1ff6')][_0x2738fd('0x159e')]=_0x426f1b[_0x2738fd('0x988')]?(_0x5f7d92['externaldial']['prefix']||'')+_0x2738fd('0x349')+_0x426f1b[_0x2738fd('0x988')]+'}':(_0x5f7d92[_0x2738fd('0x1ff6')][_0x2738fd('0x1995')]||'')+_0x2738fd('0x2560'),_0x426f1b[_0x2738fd('0xad1')]!==_0x2738fd('0x983')?_0x5f7d92[_0x2738fd('0x1ff6')]['options'][_0x2738fd('0x2004')](_0x2738fd('0x478'))<0x0&&(_0x5f7d92[_0x2738fd('0x1ff6')][_0x2738fd('0x26a0')]+=_0x2738fd('0x478')):_0x5f7d92['externaldial'][_0x2738fd('0x26a0')]=_0x5f7d92['externaldial']['options'][_0x2738fd('0x16e4')]('U(xcally-mixmonitor-context)',''));if(_0x5f7d92[_0x2738fd('0x1ff6')][_0x2738fd('0x522')]&&_0x5f7d92[_0x2738fd('0x1ff6')][_0x2738fd('0x522')]===_0x2738fd('0xf50')){}else switch((_0x5f7d92[_0x2738fd('0x1ff6')]['app']||_0x5f7d92[_0x2738fd('0x1ff6')][_0x2738fd('0x522')])[_0x2738fd('0xac2')]()){case'set':_0x5f7d92[_0x2738fd('0x1ff6')]['appdata']=_0x5f7d92[_0x2738fd('0x1ff6')][_0x2738fd('0x19fe')]+'='+_0x5f7d92[_0x2738fd('0x1ff6')][_0x2738fd('0x2228')];break;case _0x2738fd('0xf50'):break;default:_0xbc14f7[0x0]=[_0x2738fd('0x1d2'),_0x5f7d92[_0x2738fd('0x1ff6')]['trunk'],_0x5f7d92['externaldial']['phone']][_0x2738fd('0x136')]('/'),_0xbc14f7[0x1]=_0x5f7d92[_0x2738fd('0x1ff6')]['timeout'],_0xbc14f7[0x2]=_0x5f7d92['externaldial']['options'],_0xbc14f7[0x3]=_0x5f7d92[_0x2738fd('0x1ff6')][_0x2738fd('0x770')],_0x5f7d92[_0x2738fd('0x1ff6')][_0x2738fd('0x23c2')]=_0xbc14f7[_0x2738fd('0x136')](',');}_0x4b97f4(_0x5f7d92[_0x2738fd('0x1ff6')]);}function _0x4b97f4(_0x48d468){var _0x153fda=_0xd6a898;_0x448008[_0x153fda('0x1c24')](_0x48d468);}}const _0x555c23=_0x21bb97;_0x3c9dc6[_0x3877e3('0x1a81')]=['$mdDialog','$q',_0x3877e3('0x1908'),_0x3877e3('0x14e'),_0x3877e3('0x152f'),'api',_0x3877e3('0x15bc'),'crudPermissions'];function _0x3c9dc6(_0x2ec7b3,_0x3ee32e,_0x2da137,_0x145276,_0x34feb9,_0x3354d4,_0x5799e2,_0x53a289){var _0x2f306e=_0x3877e3,_0x418119=this;_0x418119['currentUser']=_0x5799e2[_0x2f306e('0x15ed')](),_0x418119['errors']=[],_0x418119[_0x2f306e('0x4b4')]=_0x2f306e('0x1b79')+(_0x145276[_0x2f306e('0x522')]||_0x145276[_0x2f306e('0x1f94')])[_0x2f306e('0x2e8')](),_0x418119['goto']=angular[_0x2f306e('0xd75')](_0x145276),_0x418119[_0x2f306e('0x5ed')]=_0x53a289,_0x418119[_0x2f306e('0x126a')]={};if(_0x418119['goto'][_0x2f306e('0x23c2')])switch(_0x418119[_0x2f306e('0x12ec')]['appType']?_0x418119['goto'][_0x2f306e('0x522')][_0x2f306e('0xac2')]():_0x418119[_0x2f306e('0x12ec')][_0x2f306e('0x1f94')][_0x2f306e('0xac2')]()){case _0x2f306e('0xf50'):break;case _0x2f306e('0xc72'):{var _0x98a1fe=_0x418119[_0x2f306e('0x12ec')][_0x2f306e('0x23c2')][_0x2f306e('0x1af5')](',');_0x418119[_0x2f306e('0x12ec')][_0x2f306e('0xddb')]=_0x98a1fe[0x0],_0x418119[_0x2f306e('0x12ec')]['language']=_0x98a1fe[0x1],_0x418119[_0x2f306e('0x12ec')][_0x2f306e('0x1cce')]=_0x98a1fe['slice'](0x2,_0x98a1fe['length'])[_0x2f306e('0x136')](',');}break;case _0x2f306e('0x1c22'):{var _0x5d69e7=_0x418119[_0x2f306e('0x12ec')][_0x2f306e('0x23c2')][_0x2f306e('0x1af5')](',');_0x418119[_0x2f306e('0x12ec')][_0x2f306e('0x21c6')]=_0x5d69e7[0x0],_0x418119[_0x2f306e('0x12ec')][_0x2f306e('0x797')]=_0x5d69e7[0x1],_0x418119[_0x2f306e('0x12ec')][_0x2f306e('0x20a3')]=_0x5d69e7[0x2],_0x418119[_0x2f306e('0x12ec')][_0x2f306e('0x15fe')]=_0x5d69e7[0x3],_0x418119[_0x2f306e('0x12ec')][_0x2f306e('0x1cce')]=_0x5d69e7[_0x2f306e('0xb3d')](0x4,_0x5d69e7[_0x2f306e('0x577')])['join'](',');}break;case _0x2f306e('0x1b98'):{var _0x391851=_0x418119[_0x2f306e('0x12ec')][_0x2f306e('0x23c2')][_0x2f306e('0x1af5')](',');_0x418119['goto'][_0x2f306e('0x13b6')]=isNaN(_0x391851[0x0])?_0x391851[0x0]:parseInt(_0x391851[0x0],0xa),_0x418119[_0x2f306e('0x12ec')]['text']=_0x391851[_0x2f306e('0xb3d')](0x1,_0x391851[_0x2f306e('0x577')])[_0x2f306e('0x136')](',');}break;case _0x2f306e('0x1224'):_0x418119['goto']['text']=_0x418119[_0x2f306e('0x12ec')]['appdata'];break;case _0x2f306e('0x1125'):_0x418119['goto'][_0x2f306e('0x19fe')]=_0x418119[_0x2f306e('0x12ec')][_0x2f306e('0x23c2')][_0x2f306e('0x1af5')]('=')[0x0],_0x418119['goto'][_0x2f306e('0x2228')]=_0x418119[_0x2f306e('0x12ec')]['appdata'][_0x2f306e('0x1af5')]('=')[0x1];break;case _0x2f306e('0x2356'):_0x418119['goto'][_0x2f306e('0xbf8')]=_0x418119[_0x2f306e('0x12ec')][_0x2f306e('0x23c2')];break;default:{var _0x45dc00=_0x418119['goto']['appdata'][_0x2f306e('0x1af5')](',');_0x418119[_0x2f306e('0x12ec')]['context']=_0x86640f()[_0x2f306e('0x23aa')](_0x45dc00[0x0])?_0x45dc00[0x0]:isNaN(_0x45dc00[0x0])?_0x45dc00[0x0]:parseInt(_0x45dc00[0x0],0xa),_0x418119['goto'][_0x2f306e('0x128d')]=_0x86640f()['isEmpty'](_0x45dc00[0x1])?_0x45dc00[0x1]:isNaN(_0x45dc00[0x1])?_0x45dc00[0x1]:parseInt(_0x45dc00[0x1],0xa),_0x418119[_0x2f306e('0x12ec')]['priority']=_0x86640f()['isEmpty'](_0x45dc00[0x2])?_0x45dc00[0x2]:isNaN(_0x45dc00[0x2])?_0x45dc00[0x2]:parseInt(_0x45dc00[0x2],0xa);}break;}else{}_0x418119[_0x2f306e('0x12ec')]['type']&&_0x418119[_0x2f306e('0x12ec')][_0x2f306e('0x7fa')]['toLowerCase']()===_0x2f306e('0x2300')&&_0x418119[_0x2f306e('0x12ec')][_0x2f306e('0x522')]['toLowerCase']()===_0x2f306e('0x2363')&&(_0x418119[_0x2f306e('0x12ec')][_0x2f306e('0x1995')]=_0x418119[_0x2f306e('0x12ec')][_0x2f306e('0x159e')]?_0x418119[_0x2f306e('0x12ec')][_0x2f306e('0x159e')][_0x2f306e('0x1af5')]('$')[0x0]:undefined,_0x418119[_0x2f306e('0x12ec')][_0x2f306e('0x26f7')]=_0x418119['goto'][_0x2f306e('0x1f5a')]?_0x2f306e('0x587')+_0x418119[_0x2f306e('0x12ec')][_0x2f306e('0x1f5a')]:undefined);_0x418119[_0x2f306e('0x1c0e')]=_0x1acdaf,_0x418119[_0x2f306e('0x167')]=_0x1120c0,_0x5799e2[_0x2f306e('0x21de')]('admin')?_0x3354d4[_0x2f306e('0x608')]['get']({'fields':_0x2f306e('0x1aa8'),'sort':_0x2f306e('0x19fe'),'nolimit':_0x2f306e('0x19bd')})['$promise'][_0x2f306e('0x21ad')](function(_0x2cfe61){var _0x58f5a7=_0x2f306e;_0x418119[_0x58f5a7('0x1089')]=_0x2cfe61[_0x58f5a7('0x1b33')]||[];})[_0x2f306e('0x1c1d')](function(_0x5c6cde){var _0x3dd948=_0x2f306e;_0x2da137[_0x3dd948('0x2092')]({'title':_0x5c6cde[_0x3dd948('0x209')]?_0x3dd948('0x22d')+_0x5c6cde[_0x3dd948('0x209')]+_0x3dd948('0xa99')+_0x5c6cde[_0x3dd948('0x1808')]:_0x3dd948('0x11b1'),'msg':_0x5c6cde[_0x3dd948('0x11c2')]?JSON[_0x3dd948('0x25e')](_0x5c6cde[_0x3dd948('0x11c2')]):_0x5c6cde['toString']()});}):_0x3354d4[_0x2f306e('0x608')][_0x2f306e('0x595')]({'fields':_0x2f306e('0x1aa8'),'sort':'name','nolimit':_0x2f306e('0x19bd')})[_0x2f306e('0x1376')][_0x2f306e('0x21ad')](function(_0x1b3fd3){var _0x2ef011=_0x2f306e;_0x418119[_0x2ef011('0x1089')]=_0x1b3fd3[_0x2ef011('0x1b33')]||[];})[_0x2f306e('0x21ad')](function(){var _0x2bcf8e=_0x2f306e;return _0x3354d4['userProfileSection'][_0x2bcf8e('0x595')]({'userProfileId':_0x418119['currentUser'][_0x2bcf8e('0x1618')],'sectionId':0x195})[_0x2bcf8e('0x1376')];})['then'](function(_0x4ecb82){var _0x562b94=_0x2f306e,_0x4b3906=_0x4ecb82&&_0x4ecb82[_0x562b94('0x1b33')]?_0x4ecb82['rows'][0x0]:null;if(!_0x4b3906)return _0x3354d4[_0x562b94('0x608')][_0x562b94('0x595')]({'fields':_0x562b94('0x1aa8'),'sort':_0x562b94('0x19fe'),'nolimit':'true','defaultEntry':0x1})['$promise'][_0x562b94('0x21ad')](function(_0x24670c){var _0x1b64b0=_0x562b94;_0x418119[_0x1b64b0('0x1089')]=_0x24670c[_0x1b64b0('0x1b33')]||[];});else{if(!_0x4b3906[_0x562b94('0x80c')])return _0x3354d4[_0x562b94('0x185e')][_0x562b94('0x595')]({'sectionId':_0x4b3906['id']})['$promise'][_0x562b94('0x21ad')](function(_0x12cdd0){var _0x533bc7=_0x562b94,_0x3b13e6=_0x86640f()[_0x533bc7('0x26c3')](_0x12cdd0['rows'],function(_0x273802){var _0x46e8cc=_0x533bc7;return _0x86640f()[_0x46e8cc('0x1d2e')](_0x418119[_0x46e8cc('0x1089')],{'id':_0x273802[_0x46e8cc('0x675')]});}),_0x3f1444=null;_0x418119[_0x533bc7('0x12ec')]&&(_0x3f1444=_0x86640f()[_0x533bc7('0x1d2e')](_0x418119[_0x533bc7('0x1089')],{'name':_0x418119['goto']['context']}));if(_0x3f1444&&!_0x86640f()['some'](_0x3b13e6,['id',_0x3f1444['id']])){var _0x269e39=_0x86640f()[_0x533bc7('0x1d2e')](_0x418119[_0x533bc7('0x1089')],{'id':_0x3f1444['id']});_0x269e39[_0x533bc7('0xba')]=![],_0x3b13e6[_0x533bc7('0x206c')](_0x269e39);}_0x418119[_0x533bc7('0x1089')]=_0x3b13e6;});}})[_0x2f306e('0x1c1d')](function(_0x4e3916){var _0x2895f1=_0x2f306e;_0x2da137['error']({'title':_0x4e3916[_0x2895f1('0x209')]?_0x2895f1('0x22d')+_0x4e3916[_0x2895f1('0x209')]+_0x2895f1('0xa99')+_0x4e3916[_0x2895f1('0x1808')]:'SYSTEM:GETcontexts','msg':_0x4e3916[_0x2895f1('0x11c2')]?JSON[_0x2895f1('0x25e')](_0x4e3916[_0x2895f1('0x11c2')]):_0x4e3916['toString']()});});function _0x1acdaf(){var _0x1b3b38=_0x2f306e;_0x418119[_0x1b3b38('0x1a69')]=[];var _0xdb1523=[];_0x418119[_0x1b3b38('0x12ec')]['type']&&_0x418119['goto'][_0x1b3b38('0x7fa')][_0x1b3b38('0xac2')]()===_0x1b3b38('0x2300')&&_0x418119[_0x1b3b38('0x12ec')][_0x1b3b38('0x522')]==='outboundDial'&&(_0x418119[_0x1b3b38('0x12ec')][_0x1b3b38('0x159e')]=_0x34feb9['cutdigits']?(_0x418119[_0x1b3b38('0x12ec')][_0x1b3b38('0x1995')]||'')+_0x1b3b38('0x349')+_0x34feb9[_0x1b3b38('0x988')]+'}':(_0x418119[_0x1b3b38('0x12ec')][_0x1b3b38('0x1995')]||'')+'${EXTEN}',_0x34feb9['recordingFormat']!=='none'?_0x418119[_0x1b3b38('0x12ec')][_0x1b3b38('0x26a0')][_0x1b3b38('0x2004')](_0x1b3b38('0x478'))<0x0&&(_0x418119[_0x1b3b38('0x12ec')][_0x1b3b38('0x26a0')]+=_0x1b3b38('0x478')):_0x418119[_0x1b3b38('0x12ec')][_0x1b3b38('0x26a0')]=_0x418119[_0x1b3b38('0x12ec')]['options'][_0x1b3b38('0x16e4')]('U(xcally-mixmonitor-context)',''));if(_0x418119[_0x1b3b38('0x12ec')][_0x1b3b38('0x522')]&&_0x418119['goto'][_0x1b3b38('0x522')]===_0x1b3b38('0xf50')){}else switch((_0x418119[_0x1b3b38('0x12ec')][_0x1b3b38('0x1f94')]||_0x418119['goto'][_0x1b3b38('0x522')])[_0x1b3b38('0xac2')]()){case _0x1b3b38('0x1125'):_0x418119[_0x1b3b38('0x12ec')][_0x1b3b38('0x23c2')]=_0x418119['goto']['name']+'='+_0x418119[_0x1b3b38('0x12ec')]['value'];break;case _0x1b3b38('0xf50'):break;default:_0xdb1523[0x0]=_0x418119[_0x1b3b38('0x12ec')][_0x1b3b38('0x244c')],_0xdb1523[0x1]=_0x418119[_0x1b3b38('0x12ec')][_0x1b3b38('0x128d')],_0xdb1523[0x2]=_0x418119[_0x1b3b38('0x12ec')][_0x1b3b38('0xbe5')],_0x418119[_0x1b3b38('0x12ec')][_0x1b3b38('0x23c2')]=_0xdb1523['join'](',');}_0x1120c0(_0x418119[_0x1b3b38('0x12ec')]);}function _0x1120c0(_0x102e48){_0x2ec7b3['hide'](_0x102e48);}}const _0xe882ad=_0x3c9dc6;_0x5b0de0[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x14e'),_0x3877e3('0x152f'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x5b0de0(_0x21fbd7,_0x2808a8,_0x113993,_0xaf7562,_0x542d0d,_0x504c65,_0x926ee4,_0xe991fe){var _0x2d8853=_0x3877e3,_0x51c186=this;_0x51c186['currentUser']=_0x926ee4['getCurrentUser'](),_0x51c186[_0x2d8853('0x1a69')]=[],_0x51c186[_0x2d8853('0x4b4')]=_0x2d8853('0x1b79')+(_0xaf7562['appType']||_0xaf7562[_0x2d8853('0x1f94')])[_0x2d8853('0x2e8')](),_0x51c186[_0x2d8853('0xf7d')]=angular[_0x2d8853('0xd75')](_0xaf7562),_0x51c186[_0x2d8853('0x5ed')]=_0xe991fe,_0x51c186[_0x2d8853('0x126a')]={};if(_0x51c186[_0x2d8853('0xf7d')]['appdata'])switch(_0x51c186[_0x2d8853('0xf7d')][_0x2d8853('0x522')]?_0x51c186[_0x2d8853('0xf7d')][_0x2d8853('0x522')][_0x2d8853('0xac2')]():_0x51c186[_0x2d8853('0xf7d')]['app']['toLowerCase']()){case _0x2d8853('0xf50'):break;case'dialogflow':{var _0x3241ad=_0x51c186['hangup'][_0x2d8853('0x23c2')][_0x2d8853('0x1af5')](',');_0x51c186[_0x2d8853('0xf7d')][_0x2d8853('0xddb')]=_0x3241ad[0x0],_0x51c186[_0x2d8853('0xf7d')][_0x2d8853('0x10f')]=_0x3241ad[0x1],_0x51c186[_0x2d8853('0xf7d')][_0x2d8853('0x1cce')]=_0x3241ad[_0x2d8853('0xb3d')](0x2,_0x3241ad[_0x2d8853('0x577')])[_0x2d8853('0x136')](',');}break;case _0x2d8853('0x1c22'):{var _0x3fde73=_0x51c186[_0x2d8853('0xf7d')][_0x2d8853('0x23c2')]['split'](',');_0x51c186[_0x2d8853('0xf7d')]['accesskeyid']=_0x3fde73[0x0],_0x51c186[_0x2d8853('0xf7d')][_0x2d8853('0x797')]=_0x3fde73[0x1],_0x51c186[_0x2d8853('0xf7d')][_0x2d8853('0x20a3')]=_0x3fde73[0x2],_0x51c186[_0x2d8853('0xf7d')][_0x2d8853('0x15fe')]=_0x3fde73[0x3],_0x51c186[_0x2d8853('0xf7d')][_0x2d8853('0x1cce')]=_0x3fde73[_0x2d8853('0xb3d')](0x4,_0x3fde73[_0x2d8853('0x577')])[_0x2d8853('0x136')](',');}break;case _0x2d8853('0x1b98'):{var _0x11aaa3=_0x51c186[_0x2d8853('0xf7d')][_0x2d8853('0x23c2')][_0x2d8853('0x1af5')](',');_0x51c186[_0x2d8853('0xf7d')][_0x2d8853('0x13b6')]=isNaN(_0x11aaa3[0x0])?_0x11aaa3[0x0]:parseInt(_0x11aaa3[0x0],0xa),_0x51c186[_0x2d8853('0xf7d')]['text']=_0x11aaa3[_0x2d8853('0xb3d')](0x1,_0x11aaa3[_0x2d8853('0x577')])[_0x2d8853('0x136')](',');}break;case'message':_0x51c186['hangup']['text']=_0x51c186['hangup']['appdata'];break;case _0x2d8853('0x1125'):_0x51c186['hangup']['name']=_0x51c186[_0x2d8853('0xf7d')]['appdata'][_0x2d8853('0x1af5')]('=')[0x0],_0x51c186['hangup']['value']=_0x51c186[_0x2d8853('0xf7d')]['appdata'][_0x2d8853('0x1af5')]('=')[0x1];break;case'agi':_0x51c186[_0x2d8853('0xf7d')][_0x2d8853('0xbf8')]=_0x51c186[_0x2d8853('0xf7d')][_0x2d8853('0x23c2')];break;default:{var _0x4824c8=_0x51c186['hangup'][_0x2d8853('0x23c2')][_0x2d8853('0x1af5')](',');_0x51c186[_0x2d8853('0xf7d')][_0x2d8853('0x23c2')]=_0x86640f()[_0x2d8853('0x23aa')](_0x4824c8[0x0])?_0x4824c8[0x0]:isNaN(_0x4824c8[0x0])?_0x4824c8[0x0]:parseInt(_0x4824c8[0x0],0xa);}break;}else{}_0x51c186[_0x2d8853('0xf7d')][_0x2d8853('0x7fa')]&&_0x51c186[_0x2d8853('0xf7d')][_0x2d8853('0x7fa')][_0x2d8853('0xac2')]()===_0x2d8853('0x2300')&&_0x51c186[_0x2d8853('0xf7d')][_0x2d8853('0x522')]['toLowerCase']()===_0x2d8853('0x2363')&&(_0x51c186['hangup'][_0x2d8853('0x1995')]=_0x51c186['hangup'][_0x2d8853('0x159e')]?_0x51c186[_0x2d8853('0xf7d')][_0x2d8853('0x159e')][_0x2d8853('0x1af5')]('$')[0x0]:undefined,_0x51c186[_0x2d8853('0xf7d')][_0x2d8853('0x26f7')]=_0x51c186[_0x2d8853('0xf7d')]['callerID']?_0x2d8853('0x587')+_0x51c186[_0x2d8853('0xf7d')][_0x2d8853('0x1f5a')]:undefined);_0x51c186[_0x2d8853('0x1c0e')]=_0x3231df,_0x51c186[_0x2d8853('0x167')]=_0x845ec5;function _0x3231df(){var _0x8d5b19=_0x2d8853;_0x51c186[_0x8d5b19('0x1a69')]=[];var _0x44c350=[];_0x51c186[_0x8d5b19('0xf7d')][_0x8d5b19('0x7fa')]&&_0x51c186[_0x8d5b19('0xf7d')]['type'][_0x8d5b19('0xac2')]()==='outbound'&&_0x51c186[_0x8d5b19('0xf7d')][_0x8d5b19('0x522')]===_0x8d5b19('0x4ea')&&(_0x51c186[_0x8d5b19('0xf7d')][_0x8d5b19('0x159e')]=_0x542d0d[_0x8d5b19('0x988')]?(_0x51c186[_0x8d5b19('0xf7d')][_0x8d5b19('0x1995')]||'')+'${EXTEN:'+_0x542d0d['cutdigits']+'}':(_0x51c186[_0x8d5b19('0xf7d')][_0x8d5b19('0x1995')]||'')+_0x8d5b19('0x2560'),_0x542d0d['recordingFormat']!=='none'?_0x51c186['hangup'][_0x8d5b19('0x26a0')][_0x8d5b19('0x2004')](_0x8d5b19('0x478'))<0x0&&(_0x51c186[_0x8d5b19('0xf7d')][_0x8d5b19('0x26a0')]+=_0x8d5b19('0x478')):_0x51c186['hangup'][_0x8d5b19('0x26a0')]=_0x51c186[_0x8d5b19('0xf7d')][_0x8d5b19('0x26a0')]['replace']('U(xcally-mixmonitor-context)',''));if(_0x51c186['hangup']['appType']&&_0x51c186[_0x8d5b19('0xf7d')][_0x8d5b19('0x522')]==='custom'){}else switch((_0x51c186['hangup'][_0x8d5b19('0x1f94')]||_0x51c186[_0x8d5b19('0xf7d')]['appType'])['toLowerCase']()){case _0x8d5b19('0x1125'):_0x51c186[_0x8d5b19('0xf7d')]['appdata']=_0x51c186[_0x8d5b19('0xf7d')]['name']+'='+_0x51c186[_0x8d5b19('0xf7d')][_0x8d5b19('0x2228')];break;case _0x8d5b19('0xf50'):break;default:_0x44c350[0x0]=_0x51c186[_0x8d5b19('0xf7d')][_0x8d5b19('0x23c2')],_0x51c186['hangup'][_0x8d5b19('0x23c2')]=_0x44c350['join'](',');}_0x845ec5(_0x51c186[_0x8d5b19('0xf7d')]);}function _0x845ec5(_0x1b66fc){var _0x4925e5=_0x2d8853;_0x21fbd7[_0x4925e5('0x1c24')](_0x1b66fc);}}const _0x55a6f8=_0x5b0de0;_0x3b31e1[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q','toasty',_0x3877e3('0x14e'),_0x3877e3('0x152f'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x3b31e1(_0x36fe60,_0x51b3af,_0x44da16,_0x3386da,_0x395782,_0x54699b,_0x22cc90,_0x4349ef){var _0xea8e15=_0x3877e3,_0x5ccd3d=this;_0x5ccd3d['currentUser']=_0x22cc90[_0xea8e15('0x15ed')](),_0x5ccd3d['errors']=[],_0x5ccd3d[_0xea8e15('0x4b4')]=_0xea8e15('0x1b79')+(_0x3386da['appType']||_0x3386da[_0xea8e15('0x1f94')])[_0xea8e15('0x2e8')](),_0x5ccd3d[_0xea8e15('0x1a3f')]=angular[_0xea8e15('0xd75')](_0x3386da),_0x5ccd3d['crudPermissions']=_0x4349ef,_0x5ccd3d[_0xea8e15('0x126a')]={};if(_0x5ccd3d['internaldial'][_0xea8e15('0x23c2')])switch(_0x5ccd3d[_0xea8e15('0x1a3f')][_0xea8e15('0x522')]?_0x5ccd3d['internaldial'][_0xea8e15('0x522')]['toLowerCase']():_0x5ccd3d['internaldial'][_0xea8e15('0x1f94')]['toLowerCase']()){case _0xea8e15('0xf50'):break;case _0xea8e15('0xc72'):{var _0x2dadc4=_0x5ccd3d[_0xea8e15('0x1a3f')][_0xea8e15('0x23c2')][_0xea8e15('0x1af5')](',');_0x5ccd3d[_0xea8e15('0x1a3f')]['key']=_0x2dadc4[0x0],_0x5ccd3d[_0xea8e15('0x1a3f')][_0xea8e15('0x10f')]=_0x2dadc4[0x1],_0x5ccd3d[_0xea8e15('0x1a3f')][_0xea8e15('0x1cce')]=_0x2dadc4[_0xea8e15('0xb3d')](0x2,_0x2dadc4[_0xea8e15('0x577')])[_0xea8e15('0x136')](',');}break;case'amazonlex':{var _0x2223f9=_0x5ccd3d['internaldial'][_0xea8e15('0x23c2')]['split'](',');_0x5ccd3d[_0xea8e15('0x1a3f')][_0xea8e15('0x21c6')]=_0x2223f9[0x0],_0x5ccd3d[_0xea8e15('0x1a3f')]['secretaccesskey']=_0x2223f9[0x1],_0x5ccd3d[_0xea8e15('0x1a3f')]['lexregion']=_0x2223f9[0x2],_0x5ccd3d[_0xea8e15('0x1a3f')][_0xea8e15('0x15fe')]=_0x2223f9[0x3],_0x5ccd3d['internaldial'][_0xea8e15('0x1cce')]=_0x2223f9['slice'](0x4,_0x2223f9[_0xea8e15('0x577')])[_0xea8e15('0x136')](',');}break;case _0xea8e15('0x1b98'):{var _0x1f1c5e=_0x5ccd3d[_0xea8e15('0x1a3f')]['appdata']['split'](',');_0x5ccd3d[_0xea8e15('0x1a3f')][_0xea8e15('0x13b6')]=isNaN(_0x1f1c5e[0x0])?_0x1f1c5e[0x0]:parseInt(_0x1f1c5e[0x0],0xa),_0x5ccd3d[_0xea8e15('0x1a3f')]['text']=_0x1f1c5e[_0xea8e15('0xb3d')](0x1,_0x1f1c5e[_0xea8e15('0x577')])['join'](',');}break;case _0xea8e15('0x1224'):_0x5ccd3d[_0xea8e15('0x1a3f')][_0xea8e15('0xc1e')]=_0x5ccd3d['internaldial'][_0xea8e15('0x23c2')];break;case _0xea8e15('0x1125'):_0x5ccd3d[_0xea8e15('0x1a3f')]['name']=_0x5ccd3d['internaldial']['appdata']['split']('=')[0x0],_0x5ccd3d[_0xea8e15('0x1a3f')]['value']=_0x5ccd3d['internaldial'][_0xea8e15('0x23c2')][_0xea8e15('0x1af5')]('=')[0x1];break;case _0xea8e15('0x2356'):_0x5ccd3d[_0xea8e15('0x1a3f')][_0xea8e15('0xbf8')]=_0x5ccd3d[_0xea8e15('0x1a3f')][_0xea8e15('0x23c2')];break;default:{var _0x289cd7=_0x5ccd3d[_0xea8e15('0x1a3f')]['appdata']['split'](',');_0x5ccd3d['internaldial'][_0xea8e15('0x1775')]=_0x86640f()[_0xea8e15('0x23aa')](_0x289cd7[0x0])?_0x289cd7[0x0]:isNaN(_0x289cd7[0x0])?_0x289cd7[0x0]:parseInt(_0x289cd7[0x0],0xa),_0x5ccd3d[_0xea8e15('0x1a3f')][_0xea8e15('0x2133')]=_0x86640f()['isEmpty'](_0x289cd7[0x1])?_0x289cd7[0x1]:isNaN(_0x289cd7[0x1])?_0x289cd7[0x1]:parseInt(_0x289cd7[0x1],0xa),_0x5ccd3d['internaldial']['options']=_0x86640f()[_0xea8e15('0x23aa')](_0x289cd7[0x2])?_0x289cd7[0x2]:isNaN(_0x289cd7[0x2])?_0x289cd7[0x2]:parseInt(_0x289cd7[0x2],0xa),_0x5ccd3d[_0xea8e15('0x1a3f')][_0xea8e15('0x770')]=_0x86640f()['isEmpty'](_0x289cd7[0x3])?_0x289cd7[0x3]:isNaN(_0x289cd7[0x3])?_0x289cd7[0x3]:parseInt(_0x289cd7[0x3],0xa);}break;}else{}_0x5ccd3d[_0xea8e15('0x1a3f')][_0xea8e15('0x7fa')]&&_0x5ccd3d[_0xea8e15('0x1a3f')]['type'][_0xea8e15('0xac2')]()===_0xea8e15('0x2300')&&_0x5ccd3d[_0xea8e15('0x1a3f')][_0xea8e15('0x522')]['toLowerCase']()==='outbounddial'&&(_0x5ccd3d[_0xea8e15('0x1a3f')]['prefix']=_0x5ccd3d[_0xea8e15('0x1a3f')][_0xea8e15('0x159e')]?_0x5ccd3d[_0xea8e15('0x1a3f')]['phone']['split']('$')[0x0]:undefined,_0x5ccd3d['internaldial'][_0xea8e15('0x26f7')]=_0x5ccd3d[_0xea8e15('0x1a3f')]['callerID']?_0xea8e15('0x587')+_0x5ccd3d[_0xea8e15('0x1a3f')][_0xea8e15('0x1f5a')]:undefined);_0x5ccd3d[_0xea8e15('0x1c0e')]=_0x424c71,_0x5ccd3d[_0xea8e15('0x167')]=_0x30a717;var _0x1d896b=[{'id':0xca,'role':'agent'},{'id':0xcb,'role':_0xea8e15('0x13f4')}],_0x3d6267=null;_0x22cc90[_0xea8e15('0x21de')](_0xea8e15('0x1bd8'))?_0x54699b['user'][_0xea8e15('0x595')]({'fields':_0xea8e15('0x2813'),'sort':_0xea8e15('0x19fe'),'nolimit':_0xea8e15('0x19bd')})[_0xea8e15('0x1376')][_0xea8e15('0x21ad')](function(_0x206f1c){var _0x425f80=_0xea8e15;_0x5ccd3d[_0x425f80('0x188e')]=_0x206f1c[_0x425f80('0x1b33')]||[];})[_0xea8e15('0x1c1d')](function(_0xaed41c){var _0x4a1b1a=_0xea8e15;_0x44da16['error']({'title':_0xaed41c['status']?_0x4a1b1a('0x22d')+_0xaed41c[_0x4a1b1a('0x209')]+_0x4a1b1a('0xa99')+_0xaed41c[_0x4a1b1a('0x1808')]:_0x4a1b1a('0x2158'),'msg':_0xaed41c[_0x4a1b1a('0x11c2')]?JSON[_0x4a1b1a('0x25e')](_0xaed41c[_0x4a1b1a('0x11c2')]):_0xaed41c[_0x4a1b1a('0x174f')]()});}):_0x54699b['user']['get']({'fields':_0xea8e15('0x2813'),'sort':_0xea8e15('0x19fe'),'nolimit':_0xea8e15('0x19bd')})[_0xea8e15('0x1376')][_0xea8e15('0x21ad')](function(_0x2a2e69){_0x3d6267=_0x2a2e69['rows']||[];})[_0xea8e15('0x21ad')](function(){var _0x4d1027=_0xea8e15,_0x31684f=[];for(var _0x2ab1e5=0x0;_0x2ab1e5<_0x1d896b[_0x4d1027('0x577')];_0x2ab1e5++){_0x31684f[_0x4d1027('0x206c')](_0x54699b[_0x4d1027('0xab4')][_0x4d1027('0x595')]({'userProfileId':_0x5ccd3d[_0x4d1027('0x123f')]['userProfileId'],'sectionId':_0x1d896b[_0x2ab1e5]['id']})[_0x4d1027('0x1376')]);}return _0x51b3af['all'](_0x31684f);})[_0xea8e15('0x21ad')](function(_0x2b9da4){var _0x410ef8=_0xea8e15,_0x46b5bb=_0x86640f()[_0x410ef8('0x26c3')](_0x2b9da4,function(_0x206726){var _0x378d39=_0x410ef8;return _0x206726&&_0x206726[_0x378d39('0x1b33')]?_0x206726['rows'][0x0]:null;}),_0x28c6a6=[],_0x3533c7=function _0x395427(_0x249774){var _0x27212e=_0x410ef8,_0x24f00e=_0x86640f()[_0x27212e('0x1d2e')](_0x46b5bb,[_0x27212e('0x1cd2'),_0x1d896b[_0x249774]['id']]);if(_0x24f00e){if(!_0x24f00e['autoAssociation'])_0x28c6a6[_0x27212e('0x206c')](_0x54699b['userProfileResource'][_0x27212e('0x595')]({'sectionId':_0x24f00e['id']})['$promise']);else{var _0x2ab56b=[];_0x3d6267['forEach'](function(_0x39a47f){var _0x568510=_0x27212e;_0x39a47f[_0x568510('0x25c8')]===_0x1d896b[_0x249774]['role']&&_0x2ab56b[_0x568510('0x206c')](_0x39a47f);}),_0x28c6a6[_0x27212e('0x206c')]({'rows':_0x2ab56b,'count':_0x2ab56b[_0x27212e('0x577')]});}}};for(var _0x3ba4cc=0x0;_0x3ba4cc<_0x1d896b['length'];_0x3ba4cc++){_0x3533c7(_0x3ba4cc);}return _0x51b3af['all'](_0x28c6a6);})[_0xea8e15('0x21ad')](function(_0x2a1dd2){var _0x458447=_0xea8e15,_0x12767a=[],_0x5e1157=null;_0x5ccd3d[_0x458447('0x1a3f')]&&(_0x5e1157=_0x86640f()[_0x458447('0x1d2e')](_0x3d6267,{'name':_0x5ccd3d[_0x458447('0x1a3f')][_0x458447('0x1775')]}));for(var _0xb84fd6=0x0;_0xb84fd6<_0x2a1dd2[_0x458447('0x577')];_0xb84fd6++){var _0x1146f7=_0x2a1dd2[_0xb84fd6][_0x458447('0x1b33')]||[];_0x1146f7['forEach'](function(_0x2e3fd8){var _0x373a01=_0x458447;_0x12767a[_0x373a01('0x206c')](_0x2e3fd8);});}_0x5e1157&&!_0x86640f()[_0x458447('0x2664')](_0x12767a,[_0x458447('0x675'),_0x5e1157['id']])&&_0x3d6267[_0x458447('0x1a52')](function(_0x148f08){var _0x2249dd=_0x458447;_0x148f08['id']===_0x5e1157['id']&&(_0x148f08[_0x2249dd('0xba')]=![],_0x12767a['push'](_0x148f08));}),_0x5ccd3d[_0x458447('0x188e')]=_0x12767a;})[_0xea8e15('0x1c1d')](function(_0x471c01){var _0x198af4=_0xea8e15;_0x44da16['error']({'title':_0x471c01[_0x198af4('0x209')]?'API:'+_0x471c01[_0x198af4('0x209')]+_0x198af4('0xa99')+_0x471c01['statusText']:_0x198af4('0x143e'),'msg':_0x471c01[_0x198af4('0x11c2')]?JSON[_0x198af4('0x25e')](_0x471c01['data']):_0x471c01[_0x198af4('0x174f')]()});});function _0x424c71(){var _0x3b7fa4=_0xea8e15;_0x5ccd3d[_0x3b7fa4('0x1a69')]=[];var _0x6d75f=[];_0x5ccd3d[_0x3b7fa4('0x1a3f')]['type']&&_0x5ccd3d['internaldial'][_0x3b7fa4('0x7fa')]['toLowerCase']()===_0x3b7fa4('0x2300')&&_0x5ccd3d[_0x3b7fa4('0x1a3f')][_0x3b7fa4('0x522')]===_0x3b7fa4('0x4ea')&&(_0x5ccd3d[_0x3b7fa4('0x1a3f')][_0x3b7fa4('0x159e')]=_0x395782['cutdigits']?(_0x5ccd3d[_0x3b7fa4('0x1a3f')][_0x3b7fa4('0x1995')]||'')+_0x3b7fa4('0x349')+_0x395782[_0x3b7fa4('0x988')]+'}':(_0x5ccd3d[_0x3b7fa4('0x1a3f')][_0x3b7fa4('0x1995')]||'')+_0x3b7fa4('0x2560'),_0x395782[_0x3b7fa4('0xad1')]!==_0x3b7fa4('0x983')?_0x5ccd3d['internaldial'][_0x3b7fa4('0x26a0')][_0x3b7fa4('0x2004')](_0x3b7fa4('0x478'))<0x0&&(_0x5ccd3d['internaldial'][_0x3b7fa4('0x26a0')]+=_0x3b7fa4('0x478')):_0x5ccd3d[_0x3b7fa4('0x1a3f')]['options']=_0x5ccd3d[_0x3b7fa4('0x1a3f')]['options']['replace'](_0x3b7fa4('0x478'),''));if(_0x5ccd3d[_0x3b7fa4('0x1a3f')][_0x3b7fa4('0x522')]&&_0x5ccd3d[_0x3b7fa4('0x1a3f')]['appType']===_0x3b7fa4('0xf50')){}else switch((_0x5ccd3d[_0x3b7fa4('0x1a3f')][_0x3b7fa4('0x1f94')]||_0x5ccd3d['internaldial'][_0x3b7fa4('0x522')])[_0x3b7fa4('0xac2')]()){case'set':_0x5ccd3d[_0x3b7fa4('0x1a3f')][_0x3b7fa4('0x23c2')]=_0x5ccd3d[_0x3b7fa4('0x1a3f')][_0x3b7fa4('0x19fe')]+'='+_0x5ccd3d[_0x3b7fa4('0x1a3f')][_0x3b7fa4('0x2228')];break;case'custom':break;default:_0x6d75f[0x0]=_0x5ccd3d[_0x3b7fa4('0x1a3f')]['user'],_0x6d75f[0x1]=_0x5ccd3d['internaldial'][_0x3b7fa4('0x2133')],_0x6d75f[0x2]=_0x5ccd3d[_0x3b7fa4('0x1a3f')][_0x3b7fa4('0x26a0')],_0x6d75f[0x3]=_0x5ccd3d['internaldial'][_0x3b7fa4('0x770')],_0x5ccd3d[_0x3b7fa4('0x1a3f')]['appdata']=_0x6d75f[_0x3b7fa4('0x136')](',');}_0x30a717(_0x5ccd3d[_0x3b7fa4('0x1a3f')]);}function _0x30a717(_0x1cda3a){var _0x2b26fa=_0xea8e15;_0x36fe60[_0x2b26fa('0x1c24')](_0x1cda3a);}}const _0x156011=_0x3b31e1;_0x26a92b[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x1850'),_0x3877e3('0x21be'),_0x3877e3('0x2086'),'interval',_0x3877e3('0x2530'),_0x3877e3('0x1908'),_0x3877e3('0xccd'),'Auth',_0x3877e3('0x5ed')];function _0x26a92b(_0x1efbff,_0x1f9a2b,_0x2571d7,_0x1b38fa,_0x3d9b0a,_0x1e0806,_0x3b24ce,_0x4d43a9,_0x44cc33,_0x5182a1){var _0x3530a4=_0x3877e3,_0x1215ec=this;_0x1215ec[_0x3530a4('0x123f')]=_0x44cc33['getCurrentUser'](),_0x1215ec[_0x3530a4('0x1a69')]=[],_0x1215ec[_0x3530a4('0x4b4')]=_0x3530a4('0x130e'),_0x1215ec[_0x3530a4('0xa07')]=angular[_0x3530a4('0xd75')](_0x3d9b0a),_0x1215ec[_0x3530a4('0x2530')]=_0x1e0806,_0x1215ec[_0x3530a4('0x1c3e')]=![],_0x1215ec['types']=[_0x3530a4('0x869'),_0x3530a4('0xf50'),_0x3530a4('0x17fe')],_0x1215ec[_0x3530a4('0x5ed')]=_0x5182a1,_0x1215ec[_0x3530a4('0x45e')]=_0x1b38fa['getDaysOfWeek'](),_0x1215ec[_0x3530a4('0x6fd')]=_0x1b38fa[_0x3530a4('0x439')](),_0x1215ec[_0x3530a4('0x1f1e')]=_0x1b38fa[_0x3530a4('0x1f1f')](),_0x1215ec['daysOfMonth']=_0x1b38fa[_0x3530a4('0x200e')]();if(!_0x1215ec[_0x3530a4('0xa07')])_0x1215ec['interval']={'interval':_0x3530a4('0x1cc4')},_0x1215ec[_0x3530a4('0x7fa')]=_0x3530a4('0x869'),_0x1215ec[_0x3530a4('0x4b4')]=_0x3530a4('0xe33'),_0x1215ec[_0x3530a4('0x1c3e')]=!![];else{if(_0x1215ec[_0x3530a4('0xa07')][_0x3530a4('0xa07')]!==_0x3530a4('0x1cc4')){_0x1215ec[_0x3530a4('0x7fa')]='custom';var _0x294f51=_0x1215ec['interval']['interval'][_0x3530a4('0x1af5')](','),_0x1a3b45=_0x294f51[0x0],_0x55d693=_0x294f51[0x1],_0x2191d2=_0x294f51[0x2],_0x127ca1=_0x294f51[0x3];if(_0x1a3b45!=='*'){var _0x1d6b73=_0x1a3b45[_0x3530a4('0x1af5')]('-')[0x0],_0x238590=_0x1a3b45['split']('-')[0x1],_0x297d3c;_0x297d3c=new Date(),_0x297d3c[_0x3530a4('0xb0f')](Number(_0x1d6b73['split'](':')[0x0])),_0x297d3c['setMinutes'](Number(_0x1d6b73[_0x3530a4('0x1af5')](':')[0x1])),_0x1215ec[_0x3530a4('0x3e8')]=_0x297d3c,_0x297d3c=new Date(),_0x297d3c[_0x3530a4('0xb0f')](Number(_0x238590[_0x3530a4('0x1af5')](':')[0x0])),_0x297d3c[_0x3530a4('0x119c')](Number(_0x238590['split'](':')[0x1])),_0x1215ec[_0x3530a4('0x1fbc')]=_0x297d3c;}_0x55d693!=='*'&&(_0x1215ec[_0x3530a4('0x21a5')]=_0x55d693[_0x3530a4('0x1af5')]('-')[0x0],_0x1215ec['dayOfWeekTo']=_0x55d693[_0x3530a4('0x1af5')]('-')[0x1]),_0x2191d2!=='*'&&(_0x1215ec[_0x3530a4('0x14ec')]=_0x2191d2[_0x3530a4('0x1af5')]('-')[0x0],_0x1215ec[_0x3530a4('0x3bf')]=_0x2191d2['split']('-')[0x1]),_0x127ca1!=='*'&&(_0x1215ec[_0x3530a4('0xded')]=_0x127ca1[_0x3530a4('0x1af5')]('-')[0x0],_0x1215ec['monthTo']=_0x127ca1[_0x3530a4('0x1af5')]('-')[0x1]);}else _0x1215ec[_0x3530a4('0x7fa')]=_0x3530a4('0x869');}_0x1efbff[_0x3530a4('0x171b')]['id']&&!_0x1215ec[_0x3530a4('0xa07')][_0x3530a4('0xd7f')]&&(_0x1215ec[_0x3530a4('0xa07')][_0x3530a4('0x1ac8')]=_0x1efbff['params']['id']);_0x1215ec[_0x3530a4('0xa07')][_0x3530a4('0x1ac8')]&&_0x1215ec[_0x3530a4('0xa07')][_0x3530a4('0xd7f')]&&(_0x1215ec[_0x3530a4('0x7fa')]=_0x3530a4('0x17fe'));_0x1215ec[_0x3530a4('0x2bb')]=_0x28f2e1,_0x1215ec[_0x3530a4('0xc2e')]=_0x41c6e1,_0x1215ec[_0x3530a4('0x167')]=_0x2d4bf6;_0x1215ec[_0x3530a4('0xa07')]['application']&&(_0x44cc33[_0x3530a4('0x21de')](_0x3530a4('0x1bd8'))?_0x4d43a9[_0x3530a4('0xa07')][_0x3530a4('0x595')]({'fields':'id,name,interval,IntervalId','IntervalId':_0x3530a4('0x27a'),'nolimit':!![]})[_0x3530a4('0x1376')][_0x3530a4('0x21ad')](function(_0xbea062){var _0x405622=_0x3530a4;_0x1215ec[_0x405622('0x2530')]=_0xbea062[_0x405622('0x1b33')]||[];})['catch'](function(_0x42f2c5){var _0x2edd38=_0x3530a4;_0x3b24ce[_0x2edd38('0x2092')]({'title':_0x42f2c5[_0x2edd38('0x209')]?'API:'+_0x42f2c5[_0x2edd38('0x209')]+_0x2edd38('0xa99')+_0x42f2c5[_0x2edd38('0x1808')]:'SYSTEM:GET_INTERVALS','msg':_0x42f2c5[_0x2edd38('0x11c2')]?JSON[_0x2edd38('0x25e')](_0x42f2c5[_0x2edd38('0x11c2')]):_0x42f2c5['toString']()});}):_0x4d43a9['interval'][_0x3530a4('0x595')]({'fields':'id,name,interval,IntervalId','IntervalId':_0x3530a4('0x27a'),'nolimit':!![]})[_0x3530a4('0x1376')][_0x3530a4('0x21ad')](function(_0x1983b0){var _0x2495e6=_0x3530a4;_0x1215ec[_0x2495e6('0x2530')]=_0x1983b0['rows']||[];})[_0x3530a4('0x21ad')](function(){var _0x2018bf=_0x3530a4;return _0x4d43a9[_0x2018bf('0xab4')][_0x2018bf('0x595')]({'userProfileId':_0x1215ec[_0x2018bf('0x123f')][_0x2018bf('0x1618')],'sectionId':0x3ec})[_0x2018bf('0x1376')];})[_0x3530a4('0x21ad')](function(_0x355626){var _0x2ac87e=_0x3530a4,_0x371aee=_0x355626&&_0x355626[_0x2ac87e('0x1b33')]?_0x355626[_0x2ac87e('0x1b33')][0x0]:null;if(!_0x371aee)_0x1215ec[_0x2ac87e('0x2530')]=[];else{if(!_0x371aee[_0x2ac87e('0x80c')])return _0x4d43a9[_0x2ac87e('0x185e')]['get']({'sectionId':_0x371aee['id']})[_0x2ac87e('0x1376')][_0x2ac87e('0x21ad')](function(_0x8f91ca){var _0x4c8ec5=_0x2ac87e,_0x284675=_0x8f91ca&&_0x8f91ca[_0x4c8ec5('0x1b33')]?_0x8f91ca[_0x4c8ec5('0x1b33')]:[],_0x386121=[],_0x4d32ba=null;_0x1215ec[_0x4c8ec5('0xa07')]&&(_0x4d32ba=_0x86640f()[_0x4c8ec5('0x1d2e')](_0x1215ec['intervals'],{'name':_0x1215ec[_0x4c8ec5('0xa07')]['IntervalId']})),_0x4d32ba&&!_0x86640f()[_0x4c8ec5('0x2664')](_0x284675,[_0x4c8ec5('0x675'),_0x4d32ba['id']])&&_0x1215ec[_0x4c8ec5('0x2530')]['forEach'](function(_0x8abd13){var _0x5ed001=_0x4c8ec5;_0x8abd13['id']===_0x4d32ba['id']&&(_0x8abd13[_0x5ed001('0xba')]=![],_0x386121['push'](_0x8abd13));}),_0x1215ec['intervals']=_0x386121;});}})[_0x3530a4('0x1c1d')](function(_0x418828){var _0x5d9a20=_0x3530a4;_0x3b24ce[_0x5d9a20('0x2092')]({'title':_0x418828[_0x5d9a20('0x209')]?_0x5d9a20('0x22d')+_0x418828[_0x5d9a20('0x209')]+_0x5d9a20('0xa99')+_0x418828[_0x5d9a20('0x1808')]:_0x5d9a20('0xdc5'),'msg':_0x418828[_0x5d9a20('0x11c2')]?JSON['stringify'](_0x418828['data']):_0x418828[_0x5d9a20('0x174f')]()});}));function _0xab0b36(){var _0x3e6ffd=_0x3530a4;switch(_0x1215ec[_0x3e6ffd('0x7fa')]){case _0x3e6ffd('0x869'):case _0x3e6ffd('0x17fe'):return'*,*,*,*';case _0x3e6ffd('0xf50'):{var _0x1541c5=[];if(_0x1215ec[_0x3e6ffd('0x3e8')]!=='*'&&_0x1215ec['timeRangeFrom']&&_0x1215ec['timeRangeTo']){var _0x5a717d=(_0x1215ec['timeRangeFrom'][_0x3e6ffd('0x10c1')]()<0xa?'0':'')+_0x1215ec['timeRangeFrom'][_0x3e6ffd('0x10c1')]()+':'+((_0x1215ec[_0x3e6ffd('0x3e8')][_0x3e6ffd('0x27ee')]()<0xa?'0':'')+_0x1215ec[_0x3e6ffd('0x3e8')][_0x3e6ffd('0x27ee')]()),_0x5a9b25=(_0x1215ec[_0x3e6ffd('0x1fbc')][_0x3e6ffd('0x10c1')]()<0xa?'0':'')+_0x1215ec[_0x3e6ffd('0x1fbc')][_0x3e6ffd('0x10c1')]()+':'+((_0x1215ec[_0x3e6ffd('0x1fbc')]['getMinutes']()<0xa?'0':'')+_0x1215ec[_0x3e6ffd('0x1fbc')][_0x3e6ffd('0x27ee')]());_0x1541c5[_0x3e6ffd('0x206c')](_0x5a717d+'-'+_0x5a9b25);}else _0x1541c5[_0x3e6ffd('0x206c')]('*');return _0x1215ec[_0x3e6ffd('0x21a5')]?_0x1215ec[_0x3e6ffd('0x1556')]?_0x1541c5['push'](_0x1215ec[_0x3e6ffd('0x21a5')]+'-'+_0x1215ec['dayOfWeekTo']):_0x1541c5[_0x3e6ffd('0x206c')](_0x1215ec['dayOfWeekFrom']):_0x1541c5[_0x3e6ffd('0x206c')]('*'),_0x1215ec[_0x3e6ffd('0x14ec')]?_0x1215ec[_0x3e6ffd('0x3bf')]?_0x1541c5[_0x3e6ffd('0x206c')](_0x1215ec[_0x3e6ffd('0x14ec')]+'-'+_0x1215ec[_0x3e6ffd('0x3bf')]):_0x1541c5[_0x3e6ffd('0x206c')](_0x1215ec[_0x3e6ffd('0x14ec')]):_0x1541c5[_0x3e6ffd('0x206c')]('*'),_0x1215ec['monthFrom']?_0x1215ec['monthTo']?_0x1541c5[_0x3e6ffd('0x206c')](_0x1215ec['monthFrom']+'-'+_0x1215ec['monthTo']):_0x1541c5[_0x3e6ffd('0x206c')](_0x1215ec[_0x3e6ffd('0xded')]):_0x1541c5[_0x3e6ffd('0x206c')]('*'),_0x1541c5[_0x3e6ffd('0x136')]();}}}function _0x28f2e1(){var _0x1143be=_0x3530a4;_0x1215ec[_0x1143be('0x1a69')]=[],_0x1215ec[_0x1143be('0xa07')][_0x1143be('0xa07')]=_0xab0b36(),_0x4d43a9[_0x1143be('0xa07')]['save'](_0x1215ec[_0x1143be('0xa07')])[_0x1143be('0x1376')][_0x1143be('0x21ad')](function(_0x483e92){var _0x1318b3=_0x1143be;_0x1215ec[_0x1318b3('0x2530')]['push'](_0x483e92),_0x3b24ce[_0x1318b3('0xdb1')]({'title':_0x1318b3('0x1ecc'),'msg':_0x1215ec[_0x1318b3('0xa07')][_0x1318b3('0x19fe')]?_0x1215ec[_0x1318b3('0xa07')][_0x1318b3('0x19fe')]+'\x20has\x20been\x20created!':''}),_0x2d4bf6();})[_0x1143be('0x1c1d')](function(_0x3b5ed6){var _0x2064f7=_0x1143be;console['error'](_0x3b5ed6),_0x1215ec[_0x2064f7('0x1a69')]=_0x3b5ed6['data']['errors']||[{'message':_0x3b5ed6[_0x2064f7('0x174f')](),'type':_0x2064f7('0x27de')}];});}function _0x41c6e1(){var _0x355c1b=_0x3530a4;_0x1215ec['errors']=[],_0x1215ec['interval'][_0x355c1b('0xa07')]=_0xab0b36(),_0x1215ec[_0x355c1b('0xa07')][_0x355c1b('0xd7f')]?(_0x1215ec[_0x355c1b('0x7fa')]!==_0x355c1b('0x17fe')&&(_0x1215ec[_0x355c1b('0xa07')][_0x355c1b('0x1ac8')]=null),_0x2d4bf6(_0x1215ec[_0x355c1b('0xa07')])):_0x4d43a9['interval'][_0x355c1b('0x5ef')]({'id':_0x1215ec[_0x355c1b('0xa07')]['id']},_0x1215ec[_0x355c1b('0xa07')])[_0x355c1b('0x1376')][_0x355c1b('0x21ad')](function(_0x372651){var _0x155128=_0x355c1b,_0x11c841=_0x86640f()[_0x155128('0x1d2e')](_0x1215ec['intervals'],{'id':_0x372651['id']});_0x11c841&&_0x86640f()[_0x155128('0xd0e')](_0x11c841,_0x372651),_0x3b24ce[_0x155128('0xdb1')]({'title':_0x155128('0x234'),'msg':_0x155128('0x285a')}),_0x2d4bf6();})[_0x355c1b('0x1c1d')](function(_0x323092){var _0x5674ee=_0x355c1b;console[_0x5674ee('0x2092')](_0x323092),_0x1215ec[_0x5674ee('0x1a69')]=_0x323092[_0x5674ee('0x11c2')][_0x5674ee('0x1a69')]||[{'message':_0x323092[_0x5674ee('0x174f')](),'type':'api.interval.update'}];});}function _0x2d4bf6(_0x2ccafd){var _0x47399c=_0x3530a4;_0x1f9a2b[_0x47399c('0x1c24')](_0x2ccafd);}}const _0x1c4f06=_0x26a92b;_0x8e7acd[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q','toasty',_0x3877e3('0x14e'),'inboundroute','api',_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x8e7acd(_0x49ab5d,_0x2cf1af,_0x1f355c,_0x4d2a25,_0x5eaa29,_0x121a4f,_0x2d7f92,_0x39e09c){var _0x58c41c=_0x3877e3,_0x4496b6=this;_0x4496b6[_0x58c41c('0x123f')]=_0x2d7f92['getCurrentUser'](),_0x4496b6[_0x58c41c('0x1a69')]=[],_0x4496b6[_0x58c41c('0x4b4')]='VOICE.EDIT_'+(_0x4d2a25['appType']||_0x4d2a25[_0x58c41c('0x1f94')])[_0x58c41c('0x2e8')](),_0x4496b6[_0x58c41c('0x25be')]=angular[_0x58c41c('0xd75')](_0x4d2a25),_0x4496b6[_0x58c41c('0x5ed')]=_0x39e09c,_0x4496b6['hasModulePermissions']={};if(_0x4496b6[_0x58c41c('0x25be')][_0x58c41c('0x23c2')])switch(_0x4496b6[_0x58c41c('0x25be')][_0x58c41c('0x522')]?_0x4496b6[_0x58c41c('0x25be')][_0x58c41c('0x522')]['toLowerCase']():_0x4496b6[_0x58c41c('0x25be')][_0x58c41c('0x1f94')]['toLowerCase']()){case'custom':break;case _0x58c41c('0xc72'):{var _0x2683bb=_0x4496b6['playback'][_0x58c41c('0x23c2')][_0x58c41c('0x1af5')](',');_0x4496b6[_0x58c41c('0x25be')][_0x58c41c('0xddb')]=_0x2683bb[0x0],_0x4496b6[_0x58c41c('0x25be')][_0x58c41c('0x10f')]=_0x2683bb[0x1],_0x4496b6[_0x58c41c('0x25be')][_0x58c41c('0x1cce')]=_0x2683bb[_0x58c41c('0xb3d')](0x2,_0x2683bb[_0x58c41c('0x577')])[_0x58c41c('0x136')](',');}break;case _0x58c41c('0x1c22'):{var _0x61d87e=_0x4496b6[_0x58c41c('0x25be')][_0x58c41c('0x23c2')][_0x58c41c('0x1af5')](',');_0x4496b6[_0x58c41c('0x25be')]['accesskeyid']=_0x61d87e[0x0],_0x4496b6['playback'][_0x58c41c('0x797')]=_0x61d87e[0x1],_0x4496b6[_0x58c41c('0x25be')][_0x58c41c('0x20a3')]=_0x61d87e[0x2],_0x4496b6[_0x58c41c('0x25be')][_0x58c41c('0x15fe')]=_0x61d87e[0x3],_0x4496b6[_0x58c41c('0x25be')]['welcomemessage']=_0x61d87e[_0x58c41c('0xb3d')](0x4,_0x61d87e[_0x58c41c('0x577')])[_0x58c41c('0x136')](',');}break;case _0x58c41c('0x1b98'):{var _0x58cc02=_0x4496b6[_0x58c41c('0x25be')][_0x58c41c('0x23c2')]['split'](',');_0x4496b6[_0x58c41c('0x25be')][_0x58c41c('0x13b6')]=isNaN(_0x58cc02[0x0])?_0x58cc02[0x0]:parseInt(_0x58cc02[0x0],0xa),_0x4496b6[_0x58c41c('0x25be')][_0x58c41c('0xc1e')]=_0x58cc02['slice'](0x1,_0x58cc02[_0x58c41c('0x577')])[_0x58c41c('0x136')](',');}break;case _0x58c41c('0x1224'):_0x4496b6[_0x58c41c('0x25be')][_0x58c41c('0xc1e')]=_0x4496b6[_0x58c41c('0x25be')][_0x58c41c('0x23c2')];break;case _0x58c41c('0x1125'):_0x4496b6[_0x58c41c('0x25be')]['name']=_0x4496b6[_0x58c41c('0x25be')]['appdata'][_0x58c41c('0x1af5')]('=')[0x0],_0x4496b6[_0x58c41c('0x25be')][_0x58c41c('0x2228')]=_0x4496b6['playback'][_0x58c41c('0x23c2')][_0x58c41c('0x1af5')]('=')[0x1];break;case _0x58c41c('0x2356'):_0x4496b6['playback']['project']=_0x4496b6[_0x58c41c('0x25be')]['appdata'];break;default:{var _0x505bb7=_0x4496b6[_0x58c41c('0x25be')][_0x58c41c('0x23c2')][_0x58c41c('0x1af5')](',');_0x4496b6['playback']['appdata']=_0x86640f()[_0x58c41c('0x23aa')](_0x505bb7[0x0])?_0x505bb7[0x0]:isNaN(_0x505bb7[0x0])?_0x505bb7[0x0]:parseInt(_0x505bb7[0x0],0xa),_0x4496b6['playback'][_0x58c41c('0x26a0')]=_0x86640f()['isEmpty'](_0x505bb7[0x1])?_0x505bb7[0x1]:isNaN(_0x505bb7[0x1])?_0x505bb7[0x1]:parseInt(_0x505bb7[0x1],0xa);}break;}else{}_0x4496b6[_0x58c41c('0x25be')]['type']&&_0x4496b6[_0x58c41c('0x25be')]['type'][_0x58c41c('0xac2')]()===_0x58c41c('0x2300')&&_0x4496b6['playback'][_0x58c41c('0x522')][_0x58c41c('0xac2')]()==='outbounddial'&&(_0x4496b6[_0x58c41c('0x25be')]['prefix']=_0x4496b6['playback'][_0x58c41c('0x159e')]?_0x4496b6['playback'][_0x58c41c('0x159e')][_0x58c41c('0x1af5')]('$')[0x0]:undefined,_0x4496b6[_0x58c41c('0x25be')][_0x58c41c('0x26f7')]=_0x4496b6[_0x58c41c('0x25be')][_0x58c41c('0x1f5a')]?_0x58c41c('0x587')+_0x4496b6['playback'][_0x58c41c('0x1f5a')]:undefined);_0x4496b6['saveInboundRouteApp']=_0x42abcf,_0x4496b6[_0x58c41c('0x167')]=_0xbb8d48,_0x2d7f92[_0x58c41c('0x21de')]('admin')?_0x121a4f['sound'][_0x58c41c('0x595')]({'fields':'id,name,save_name','sort':'name','nolimit':_0x58c41c('0x19bd')})[_0x58c41c('0x1376')][_0x58c41c('0x21ad')](function(_0x3eb240){var _0x350c83=_0x58c41c;_0x4496b6[_0x350c83('0xc64')]=_0x3eb240['rows']||[];})['catch'](function(_0x4193d9){var _0x5bbc73=_0x58c41c;_0x1f355c['error']({'title':_0x4193d9[_0x5bbc73('0x209')]?_0x5bbc73('0x22d')+_0x4193d9[_0x5bbc73('0x209')]+_0x5bbc73('0xa99')+_0x4193d9['statusText']:_0x5bbc73('0x2671'),'msg':_0x4193d9['data']?JSON[_0x5bbc73('0x25e')](_0x4193d9[_0x5bbc73('0x11c2')]):_0x4193d9['toString']()});}):_0x121a4f['sound'][_0x58c41c('0x595')]({'fields':'id,name,save_name','sort':'name','nolimit':_0x58c41c('0x19bd')})[_0x58c41c('0x1376')][_0x58c41c('0x21ad')](function(_0x1e0697){var _0x47cb37=_0x58c41c;_0x4496b6[_0x47cb37('0xc64')]=_0x1e0697[_0x47cb37('0x1b33')]||[];})[_0x58c41c('0x21ad')](function(){var _0x3be017=_0x58c41c;return _0x121a4f['userProfileSection']['get']({'userProfileId':_0x4496b6[_0x3be017('0x123f')]['userProfileId'],'sectionId':0x3ef})[_0x3be017('0x1376')];})['then'](function(_0x4c5de1){var _0x5e489d=_0x58c41c,_0x57b277=_0x4c5de1&&_0x4c5de1[_0x5e489d('0x1b33')]?_0x4c5de1[_0x5e489d('0x1b33')][0x0]:null;if(!_0x57b277){var _0xc6bea8=[],_0xd91395=null;_0x4496b6[_0x5e489d('0x25be')]&&(_0xd91395=_0x86640f()[_0x5e489d('0x1d2e')](_0x4496b6[_0x5e489d('0xc64')],{'save_name':_0x4496b6[_0x5e489d('0x25be')][_0x5e489d('0x2397')]}));for(var _0x4147fb=0x0;_0x4147fb<_0x4496b6['sounds'][_0x5e489d('0x577')];_0x4147fb++){_0xd91395&&_0x4496b6[_0x5e489d('0xc64')][_0x4147fb]['id']===_0xd91395['id']&&(_0x4496b6[_0x5e489d('0xc64')][_0x4147fb]['canSelect']=![],_0xc6bea8[_0x5e489d('0x206c')](_0x4496b6['sounds'][_0x4147fb]));}_0x4496b6['sounds']=_0xc6bea8;}else{if(!_0x57b277[_0x5e489d('0x80c')])return _0x121a4f[_0x5e489d('0x185e')]['get']({'sectionId':_0x57b277['id']})[_0x5e489d('0x1376')][_0x5e489d('0x21ad')](function(_0x43d159){var _0x2f0e2f=_0x5e489d,_0x27c392=_0x86640f()[_0x2f0e2f('0x26c3')](_0x43d159[_0x2f0e2f('0x1b33')],function(_0x217e71){var _0x51bfac=_0x2f0e2f;return _0x86640f()[_0x51bfac('0x1d2e')](_0x4496b6[_0x51bfac('0xc64')],{'id':_0x217e71[_0x51bfac('0x675')]});}),_0xc2555f=null;_0x4496b6[_0x2f0e2f('0x25be')]&&(_0xc2555f=_0x86640f()[_0x2f0e2f('0x1d2e')](_0x4496b6[_0x2f0e2f('0xc64')],{'save_name':_0x4496b6[_0x2f0e2f('0x25be')][_0x2f0e2f('0x2397')]}));if(_0xc2555f&&!_0x86640f()[_0x2f0e2f('0x2664')](_0x27c392,['id',_0xc2555f['id']])){var _0x404a9e=_0x86640f()[_0x2f0e2f('0x1d2e')](_0x4496b6['sounds'],{'id':_0xc2555f['id']});_0x404a9e[_0x2f0e2f('0xba')]=![],_0x27c392['push'](_0x404a9e);}_0x4496b6[_0x2f0e2f('0xc64')]=_0x27c392;});}})[_0x58c41c('0x1c1d')](function(_0x593840){var _0x3f0b22=_0x58c41c;_0x1f355c[_0x3f0b22('0x2092')]({'title':_0x593840[_0x3f0b22('0x209')]?_0x3f0b22('0x22d')+_0x593840[_0x3f0b22('0x209')]+_0x3f0b22('0xa99')+_0x593840['statusText']:_0x3f0b22('0x1caa'),'msg':_0x593840['data']?JSON['stringify'](_0x593840[_0x3f0b22('0x11c2')]):_0x593840[_0x3f0b22('0x174f')]()});});function _0x42abcf(){var _0x79b983=_0x58c41c;_0x4496b6[_0x79b983('0x1a69')]=[];var _0x2b883b=[];_0x4496b6[_0x79b983('0x25be')][_0x79b983('0x7fa')]&&_0x4496b6[_0x79b983('0x25be')][_0x79b983('0x7fa')][_0x79b983('0xac2')]()===_0x79b983('0x2300')&&_0x4496b6[_0x79b983('0x25be')][_0x79b983('0x522')]===_0x79b983('0x4ea')&&(_0x4496b6['playback'][_0x79b983('0x159e')]=_0x5eaa29[_0x79b983('0x988')]?(_0x4496b6[_0x79b983('0x25be')][_0x79b983('0x1995')]||'')+_0x79b983('0x349')+_0x5eaa29['cutdigits']+'}':(_0x4496b6[_0x79b983('0x25be')][_0x79b983('0x1995')]||'')+_0x79b983('0x2560'),_0x5eaa29[_0x79b983('0xad1')]!==_0x79b983('0x983')?_0x4496b6[_0x79b983('0x25be')][_0x79b983('0x26a0')][_0x79b983('0x2004')](_0x79b983('0x478'))<0x0&&(_0x4496b6['playback'][_0x79b983('0x26a0')]+='U(xcally-mixmonitor-context)'):_0x4496b6[_0x79b983('0x25be')][_0x79b983('0x26a0')]=_0x4496b6['playback']['options'][_0x79b983('0x16e4')](_0x79b983('0x478'),''));if(_0x4496b6[_0x79b983('0x25be')][_0x79b983('0x522')]&&_0x4496b6[_0x79b983('0x25be')][_0x79b983('0x522')]==='custom'){}else switch((_0x4496b6['playback'][_0x79b983('0x1f94')]||_0x4496b6[_0x79b983('0x25be')][_0x79b983('0x522')])[_0x79b983('0xac2')]()){case _0x79b983('0x1125'):_0x4496b6[_0x79b983('0x25be')][_0x79b983('0x23c2')]=_0x4496b6[_0x79b983('0x25be')]['name']+'='+_0x4496b6[_0x79b983('0x25be')]['value'];break;case'custom':break;default:_0x2b883b[0x0]=_0x4496b6[_0x79b983('0x25be')]['appdata'],_0x2b883b[0x1]=_0x4496b6['playback'][_0x79b983('0x26a0')],_0x4496b6[_0x79b983('0x25be')][_0x79b983('0x23c2')]=_0x2b883b[_0x79b983('0x136')](',');}_0xbb8d48(_0x4496b6[_0x79b983('0x25be')]);}function _0xbb8d48(_0x406f0c){var _0x32f1ac=_0x58c41c;_0x49ab5d[_0x32f1ac('0x1c24')](_0x406f0c);}}const _0x5ef4c6=_0x8e7acd;_0x32c105[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x14e'),_0x3877e3('0x152f'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x32c105(_0x5903a3,_0x513a1d,_0x245e7b,_0x54d894,_0x3033db,_0x4b6be8,_0xdfa74a,_0x3cf1f6){var _0x3a2848=_0x3877e3,_0x42d8fe=this;_0x42d8fe[_0x3a2848('0x123f')]=_0xdfa74a[_0x3a2848('0x15ed')](),_0x42d8fe[_0x3a2848('0x1a69')]=[],_0x42d8fe[_0x3a2848('0x4b4')]=_0x3a2848('0x1b79')+(_0x54d894[_0x3a2848('0x522')]||_0x54d894[_0x3a2848('0x1f94')])[_0x3a2848('0x2e8')](),_0x42d8fe['queue']=angular['copy'](_0x54d894),_0x42d8fe['crudPermissions']=_0x3cf1f6,_0x42d8fe['hasModulePermissions']={};if(_0x42d8fe['queue']['appdata'])switch(_0x42d8fe['queue'][_0x3a2848('0x522')]?_0x42d8fe[_0x3a2848('0xbdd')]['appType'][_0x3a2848('0xac2')]():_0x42d8fe[_0x3a2848('0xbdd')][_0x3a2848('0x1f94')][_0x3a2848('0xac2')]()){case _0x3a2848('0xf50'):break;case _0x3a2848('0xc72'):{var _0x101e91=_0x42d8fe[_0x3a2848('0xbdd')][_0x3a2848('0x23c2')][_0x3a2848('0x1af5')](',');_0x42d8fe[_0x3a2848('0xbdd')][_0x3a2848('0xddb')]=_0x101e91[0x0],_0x42d8fe[_0x3a2848('0xbdd')][_0x3a2848('0x10f')]=_0x101e91[0x1],_0x42d8fe[_0x3a2848('0xbdd')][_0x3a2848('0x1cce')]=_0x101e91[_0x3a2848('0xb3d')](0x2,_0x101e91['length'])[_0x3a2848('0x136')](',');}break;case _0x3a2848('0x1c22'):{var _0x278b27=_0x42d8fe[_0x3a2848('0xbdd')][_0x3a2848('0x23c2')]['split'](',');_0x42d8fe[_0x3a2848('0xbdd')]['accesskeyid']=_0x278b27[0x0],_0x42d8fe[_0x3a2848('0xbdd')][_0x3a2848('0x797')]=_0x278b27[0x1],_0x42d8fe[_0x3a2848('0xbdd')][_0x3a2848('0x20a3')]=_0x278b27[0x2],_0x42d8fe[_0x3a2848('0xbdd')][_0x3a2848('0x15fe')]=_0x278b27[0x3],_0x42d8fe[_0x3a2848('0xbdd')][_0x3a2848('0x1cce')]=_0x278b27[_0x3a2848('0xb3d')](0x4,_0x278b27['length'])['join'](',');}break;case _0x3a2848('0x1b98'):{var _0xfc260e=_0x42d8fe[_0x3a2848('0xbdd')]['appdata'][_0x3a2848('0x1af5')](',');_0x42d8fe['queue']['times']=isNaN(_0xfc260e[0x0])?_0xfc260e[0x0]:parseInt(_0xfc260e[0x0],0xa),_0x42d8fe['queue'][_0x3a2848('0xc1e')]=_0xfc260e['slice'](0x1,_0xfc260e[_0x3a2848('0x577')])[_0x3a2848('0x136')](',');}break;case _0x3a2848('0x1224'):_0x42d8fe['queue']['text']=_0x42d8fe[_0x3a2848('0xbdd')][_0x3a2848('0x23c2')];break;case _0x3a2848('0x1125'):_0x42d8fe[_0x3a2848('0xbdd')][_0x3a2848('0x19fe')]=_0x42d8fe[_0x3a2848('0xbdd')][_0x3a2848('0x23c2')]['split']('=')[0x0],_0x42d8fe['queue']['value']=_0x42d8fe['queue']['appdata'][_0x3a2848('0x1af5')]('=')[0x1];break;case _0x3a2848('0x2356'):_0x42d8fe['queue']['project']=_0x42d8fe['queue']['appdata'];break;default:{var _0x4fe19e=_0x42d8fe[_0x3a2848('0xbdd')][_0x3a2848('0x23c2')][_0x3a2848('0x1af5')](',');_0x42d8fe['queue'][_0x3a2848('0xbdd')]=_0x86640f()[_0x3a2848('0x23aa')](_0x4fe19e[0x0])?_0x4fe19e[0x0]:isNaN(_0x4fe19e[0x0])?_0x4fe19e[0x0]:parseInt(_0x4fe19e[0x0],0xa),_0x42d8fe['queue'][_0x3a2848('0x26a0')]=_0x86640f()[_0x3a2848('0x23aa')](_0x4fe19e[0x1])?_0x4fe19e[0x1]:isNaN(_0x4fe19e[0x1])?_0x4fe19e[0x1]:parseInt(_0x4fe19e[0x1],0xa),_0x42d8fe[_0x3a2848('0xbdd')]['URL']=_0x86640f()['isEmpty'](_0x4fe19e[0x2])?_0x4fe19e[0x2]:isNaN(_0x4fe19e[0x2])?_0x4fe19e[0x2]:parseInt(_0x4fe19e[0x2],0xa),_0x42d8fe[_0x3a2848('0xbdd')][_0x3a2848('0x2397')]=_0x86640f()[_0x3a2848('0x23aa')](_0x4fe19e[0x3])?_0x4fe19e[0x3]:isNaN(_0x4fe19e[0x3])?_0x4fe19e[0x3]:parseInt(_0x4fe19e[0x3],0xa),_0x42d8fe[_0x3a2848('0xbdd')]['timeout']=_0x86640f()[_0x3a2848('0x23aa')](_0x4fe19e[0x4])?_0x4fe19e[0x4]:isNaN(_0x4fe19e[0x4])?_0x4fe19e[0x4]:parseInt(_0x4fe19e[0x4],0xa),_0x42d8fe[_0x3a2848('0xbdd')][_0x3a2848('0x2356')]=_0x86640f()['isEmpty'](_0x4fe19e[0x5])?_0x4fe19e[0x5]:isNaN(_0x4fe19e[0x5])?_0x4fe19e[0x5]:parseInt(_0x4fe19e[0x5],0xa),_0x42d8fe[_0x3a2848('0xbdd')][_0x3a2848('0x1d46')]=_0x86640f()[_0x3a2848('0x23aa')](_0x4fe19e[0x6])?_0x4fe19e[0x6]:isNaN(_0x4fe19e[0x6])?_0x4fe19e[0x6]:parseInt(_0x4fe19e[0x6],0xa),_0x42d8fe[_0x3a2848('0xbdd')][_0x3a2848('0x1e22')]=_0x86640f()[_0x3a2848('0x23aa')](_0x4fe19e[0x7])?_0x4fe19e[0x7]:isNaN(_0x4fe19e[0x7])?_0x4fe19e[0x7]:parseInt(_0x4fe19e[0x7],0xa),_0x42d8fe['queue']['rule']=_0x86640f()[_0x3a2848('0x23aa')](_0x4fe19e[0x8])?_0x4fe19e[0x8]:isNaN(_0x4fe19e[0x8])?_0x4fe19e[0x8]:parseInt(_0x4fe19e[0x8],0xa),_0x42d8fe[_0x3a2848('0xbdd')][_0x3a2848('0x1c9f')]=_0x86640f()[_0x3a2848('0x23aa')](_0x4fe19e[0x9])?_0x4fe19e[0x9]:isNaN(_0x4fe19e[0x9])?_0x4fe19e[0x9]:parseInt(_0x4fe19e[0x9],0xa);}break;}else{}_0x42d8fe['queue']['type']&&_0x42d8fe[_0x3a2848('0xbdd')][_0x3a2848('0x7fa')][_0x3a2848('0xac2')]()===_0x3a2848('0x2300')&&_0x42d8fe[_0x3a2848('0xbdd')]['appType'][_0x3a2848('0xac2')]()===_0x3a2848('0x2363')&&(_0x42d8fe['queue']['prefix']=_0x42d8fe[_0x3a2848('0xbdd')][_0x3a2848('0x159e')]?_0x42d8fe[_0x3a2848('0xbdd')][_0x3a2848('0x159e')][_0x3a2848('0x1af5')]('$')[0x0]:undefined,_0x42d8fe[_0x3a2848('0xbdd')][_0x3a2848('0x26f7')]=_0x42d8fe[_0x3a2848('0xbdd')][_0x3a2848('0x1f5a')]?_0x3a2848('0x587')+_0x42d8fe[_0x3a2848('0xbdd')][_0x3a2848('0x1f5a')]:undefined);_0x42d8fe[_0x3a2848('0x1c0e')]=_0x2cc536,_0x42d8fe[_0x3a2848('0x167')]=_0x4aeec7,_0xdfa74a[_0x3a2848('0x21de')](_0x3a2848('0x1bd8'))?_0x4b6be8['sound'][_0x3a2848('0x595')]({'fields':'id,name,save_name','sort':_0x3a2848('0x19fe'),'nolimit':_0x3a2848('0x19bd')})['$promise'][_0x3a2848('0x21ad')](function(_0x7dd74e){var _0x102cfa=_0x3a2848;_0x42d8fe[_0x102cfa('0xc64')]=_0x7dd74e[_0x102cfa('0x1b33')]||[];})[_0x3a2848('0x1c1d')](function(_0x180504){var _0x318953=_0x3a2848;_0x245e7b[_0x318953('0x2092')]({'title':_0x180504[_0x318953('0x209')]?'API:'+_0x180504[_0x318953('0x209')]+_0x318953('0xa99')+_0x180504[_0x318953('0x1808')]:_0x318953('0x2671'),'msg':_0x180504['data']?JSON[_0x318953('0x25e')](_0x180504[_0x318953('0x11c2')]):_0x180504['toString']()});}):_0x4b6be8[_0x3a2848('0x2397')]['get']({'fields':'id,name,save_name','sort':_0x3a2848('0x19fe'),'nolimit':_0x3a2848('0x19bd')})[_0x3a2848('0x1376')][_0x3a2848('0x21ad')](function(_0x4fe653){var _0x5cbcaa=_0x3a2848;_0x42d8fe[_0x5cbcaa('0xc64')]=_0x4fe653[_0x5cbcaa('0x1b33')]||[];})[_0x3a2848('0x21ad')](function(){var _0x55d975=_0x3a2848;return _0x4b6be8[_0x55d975('0xab4')][_0x55d975('0x595')]({'userProfileId':_0x42d8fe['currentUser'][_0x55d975('0x1618')],'sectionId':0x3ef})[_0x55d975('0x1376')];})[_0x3a2848('0x21ad')](function(_0x27a1fc){var _0x18c9fd=_0x3a2848,_0x305695=_0x27a1fc&&_0x27a1fc['rows']?_0x27a1fc['rows'][0x0]:null;if(!_0x305695){var _0x2a7d92=[],_0x2e09d2=null;_0x42d8fe['queue']&&(_0x2e09d2=_0x86640f()[_0x18c9fd('0x1d2e')](_0x42d8fe[_0x18c9fd('0xc64')],{'save_name':_0x42d8fe[_0x18c9fd('0xbdd')][_0x18c9fd('0x2397')]}));for(var _0x387873=0x0;_0x387873<_0x42d8fe[_0x18c9fd('0xc64')][_0x18c9fd('0x577')];_0x387873++){_0x2e09d2&&_0x42d8fe[_0x18c9fd('0xc64')][_0x387873]['id']===_0x2e09d2['id']&&(_0x42d8fe[_0x18c9fd('0xc64')][_0x387873][_0x18c9fd('0xba')]=![],_0x2a7d92['push'](_0x42d8fe[_0x18c9fd('0xc64')][_0x387873]));}_0x42d8fe[_0x18c9fd('0xc64')]=_0x2a7d92;}else{if(!_0x305695[_0x18c9fd('0x80c')])return _0x4b6be8[_0x18c9fd('0x185e')]['get']({'sectionId':_0x305695['id']})[_0x18c9fd('0x1376')][_0x18c9fd('0x21ad')](function(_0x42e476){var _0x6f64ad=_0x18c9fd,_0x4262ad=_0x86640f()['map'](_0x42e476[_0x6f64ad('0x1b33')],function(_0x2418b8){var _0x113059=_0x6f64ad;return _0x86640f()['find'](_0x42d8fe[_0x113059('0xc64')],{'id':_0x2418b8[_0x113059('0x675')]});}),_0xb93afd=null;_0x42d8fe['queue']&&(_0xb93afd=_0x86640f()[_0x6f64ad('0x1d2e')](_0x42d8fe['sounds'],{'save_name':_0x42d8fe[_0x6f64ad('0xbdd')][_0x6f64ad('0x2397')]}));if(_0xb93afd&&!_0x86640f()[_0x6f64ad('0x2664')](_0x4262ad,['id',_0xb93afd['id']])){var _0x49b190=_0x86640f()[_0x6f64ad('0x1d2e')](_0x42d8fe[_0x6f64ad('0xc64')],{'id':_0xb93afd['id']});_0x49b190[_0x6f64ad('0xba')]=![],_0x4262ad[_0x6f64ad('0x206c')](_0x49b190);}_0x42d8fe[_0x6f64ad('0xc64')]=_0x4262ad;});}})[_0x3a2848('0x1c1d')](function(_0x5a8112){var _0x310b7a=_0x3a2848;_0x245e7b[_0x310b7a('0x2092')]({'title':_0x5a8112[_0x310b7a('0x209')]?_0x310b7a('0x22d')+_0x5a8112[_0x310b7a('0x209')]+_0x310b7a('0xa99')+_0x5a8112['statusText']:'SYSTEM:GETsounds','msg':_0x5a8112[_0x310b7a('0x11c2')]?JSON[_0x310b7a('0x25e')](_0x5a8112[_0x310b7a('0x11c2')]):_0x5a8112[_0x310b7a('0x174f')]()});}),_0xdfa74a[_0x3a2848('0x21de')](_0x3a2848('0x1bd8'))?_0x4b6be8[_0x3a2848('0xb97')][_0x3a2848('0x595')]({'type':_0x3a2848('0x923'),'fields':_0x3a2848('0xfa'),'sort':_0x3a2848('0x19fe'),'nolimit':_0x3a2848('0x19bd')})[_0x3a2848('0x1376')][_0x3a2848('0x21ad')](function(_0x4b8b8d){var _0x45cf07=_0x3a2848;_0x42d8fe[_0x45cf07('0xb7a')]=_0x4b8b8d[_0x45cf07('0x1b33')]||[];})[_0x3a2848('0x1c1d')](function(_0x346600){var _0x381da9=_0x3a2848;_0x245e7b[_0x381da9('0x2092')]({'title':_0x346600[_0x381da9('0x209')]?_0x381da9('0x22d')+_0x346600[_0x381da9('0x209')]+_0x381da9('0xa99')+_0x346600['statusText']:_0x381da9('0x1612'),'msg':_0x346600[_0x381da9('0x11c2')]?JSON[_0x381da9('0x25e')](_0x346600['data']):_0x346600[_0x381da9('0x174f')]()});}):_0x4b6be8[_0x3a2848('0xb97')][_0x3a2848('0x595')]({'type':'inbound','fields':_0x3a2848('0xfa'),'sort':'name','nolimit':_0x3a2848('0x19bd')})[_0x3a2848('0x1376')][_0x3a2848('0x21ad')](function(_0x5c6634){var _0x416896=_0x3a2848;_0x42d8fe['queues']=_0x5c6634[_0x416896('0x1b33')]||[];})['then'](function(){var _0x451e3e=_0x3a2848;return _0x4b6be8['userProfileSection'][_0x451e3e('0x595')]({'userProfileId':_0x42d8fe['currentUser'][_0x451e3e('0x1618')],'sectionId':0x191})[_0x451e3e('0x1376')];})[_0x3a2848('0x21ad')](function(_0xe8841a){var _0x5858f5=_0x3a2848,_0x25f54d=_0xe8841a&&_0xe8841a[_0x5858f5('0x1b33')]?_0xe8841a[_0x5858f5('0x1b33')][0x0]:null;if(!_0x25f54d){var _0xeb9547=[],_0x5d5d9d=null;_0x42d8fe[_0x5858f5('0xbdd')]&&(_0x5d5d9d=_0x86640f()[_0x5858f5('0x1d2e')](_0x42d8fe[_0x5858f5('0xb7a')],{'name':_0x42d8fe[_0x5858f5('0xbdd')][_0x5858f5('0xbdd')]}));for(var _0xea25f5=0x0;_0xea25f5<_0x42d8fe[_0x5858f5('0xb7a')][_0x5858f5('0x577')];_0xea25f5++){_0x5d5d9d&&_0x42d8fe[_0x5858f5('0xb7a')][_0xea25f5]['id']===_0x5d5d9d['id']&&(_0x42d8fe['queues'][_0xea25f5][_0x5858f5('0xba')]=![],_0xeb9547['push'](_0x42d8fe[_0x5858f5('0xb7a')][_0xea25f5]));}_0x42d8fe['queues']=_0xeb9547;}else{if(!_0x25f54d[_0x5858f5('0x80c')])return _0x4b6be8[_0x5858f5('0x185e')][_0x5858f5('0x595')]({'sectionId':_0x25f54d['id']})[_0x5858f5('0x1376')]['then'](function(_0x33571a){var _0x14b57b=_0x5858f5,_0x5b520e=_0x86640f()[_0x14b57b('0x26c3')](_0x33571a[_0x14b57b('0x1b33')],function(_0x4bbbdf){var _0x4db56e=_0x14b57b;return _0x86640f()[_0x4db56e('0x1d2e')](_0x42d8fe['queues'],{'id':_0x4bbbdf[_0x4db56e('0x675')]});}),_0x6393bf=null;_0x42d8fe[_0x14b57b('0xbdd')]&&(_0x6393bf=_0x86640f()['find'](_0x42d8fe[_0x14b57b('0xb7a')],{'name':_0x42d8fe[_0x14b57b('0xbdd')][_0x14b57b('0xbdd')]}));if(_0x6393bf&&!_0x86640f()['some'](_0x5b520e,['id',_0x6393bf['id']])){var _0x568124=_0x86640f()['find'](_0x42d8fe[_0x14b57b('0xb7a')],{'id':_0x6393bf['id']});_0x568124['canSelect']=![],_0x5b520e[_0x14b57b('0x206c')](_0x568124);}_0x42d8fe['queues']=_0x5b520e;});}})[_0x3a2848('0x1c1d')](function(_0x285552){var _0x19590d=_0x3a2848;_0x245e7b[_0x19590d('0x2092')]({'title':_0x285552[_0x19590d('0x209')]?'API:'+_0x285552['status']+_0x19590d('0xa99')+_0x285552[_0x19590d('0x1808')]:_0x19590d('0x1b46'),'msg':_0x285552[_0x19590d('0x11c2')]?JSON['stringify'](_0x285552['data']):_0x285552[_0x19590d('0x174f')]()});});function _0x2cc536(){var _0x407da3=_0x3a2848;_0x42d8fe['errors']=[];var _0x31a417=[];_0x42d8fe[_0x407da3('0xbdd')][_0x407da3('0x7fa')]&&_0x42d8fe[_0x407da3('0xbdd')][_0x407da3('0x7fa')][_0x407da3('0xac2')]()===_0x407da3('0x2300')&&_0x42d8fe[_0x407da3('0xbdd')][_0x407da3('0x522')]===_0x407da3('0x4ea')&&(_0x42d8fe[_0x407da3('0xbdd')][_0x407da3('0x159e')]=_0x3033db['cutdigits']?(_0x42d8fe['queue'][_0x407da3('0x1995')]||'')+'${EXTEN:'+_0x3033db[_0x407da3('0x988')]+'}':(_0x42d8fe[_0x407da3('0xbdd')]['prefix']||'')+_0x407da3('0x2560'),_0x3033db['recordingFormat']!==_0x407da3('0x983')?_0x42d8fe[_0x407da3('0xbdd')][_0x407da3('0x26a0')]['indexOf'](_0x407da3('0x478'))<0x0&&(_0x42d8fe[_0x407da3('0xbdd')]['options']+=_0x407da3('0x478')):_0x42d8fe[_0x407da3('0xbdd')][_0x407da3('0x26a0')]=_0x42d8fe[_0x407da3('0xbdd')][_0x407da3('0x26a0')][_0x407da3('0x16e4')](_0x407da3('0x478'),''));if(_0x42d8fe['queue']['appType']&&_0x42d8fe['queue'][_0x407da3('0x522')]===_0x407da3('0xf50')){}else switch((_0x42d8fe['queue']['app']||_0x42d8fe['queue']['appType'])[_0x407da3('0xac2')]()){case _0x407da3('0x1125'):_0x42d8fe[_0x407da3('0xbdd')]['appdata']=_0x42d8fe[_0x407da3('0xbdd')][_0x407da3('0x19fe')]+'='+_0x42d8fe[_0x407da3('0xbdd')]['value'];break;case _0x407da3('0xf50'):break;default:_0x31a417[0x0]=_0x42d8fe[_0x407da3('0xbdd')][_0x407da3('0xbdd')],_0x31a417[0x1]=_0x42d8fe[_0x407da3('0xbdd')]['options'],_0x31a417[0x2]=_0x42d8fe[_0x407da3('0xbdd')][_0x407da3('0x2028')],_0x31a417[0x3]=_0x42d8fe[_0x407da3('0xbdd')][_0x407da3('0x2397')],_0x31a417[0x4]=_0x42d8fe[_0x407da3('0xbdd')][_0x407da3('0x2133')],_0x31a417[0x5]=_0x42d8fe['queue'][_0x407da3('0x2356')],_0x31a417[0x6]=_0x42d8fe['queue']['macro'],_0x31a417[0x7]=_0x42d8fe[_0x407da3('0xbdd')]['gosub'],_0x31a417[0x8]=_0x42d8fe[_0x407da3('0xbdd')][_0x407da3('0x609')],_0x31a417[0x9]=_0x42d8fe[_0x407da3('0xbdd')][_0x407da3('0x1c9f')],_0x42d8fe[_0x407da3('0xbdd')][_0x407da3('0x23c2')]=_0x31a417['join'](',');}_0x4aeec7(_0x42d8fe[_0x407da3('0xbdd')]);}function _0x4aeec7(_0x18312c){_0x5903a3['hide'](_0x18312c);}}const _0x165df3=_0x32c105;_0x1e6426['$inject']=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),'inboundrouteApp',_0x3877e3('0x152f'),'api',_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x1e6426(_0x29bceb,_0xfae64c,_0x24eb93,_0x5ce57d,_0x12d4d9,_0x304261,_0x288391,_0x13e168){var _0x481a9d=_0x3877e3,_0x57eadd=this;_0x57eadd[_0x481a9d('0x123f')]=_0x288391[_0x481a9d('0x15ed')](),_0x57eadd[_0x481a9d('0x1a69')]=[],_0x57eadd[_0x481a9d('0x4b4')]=_0x481a9d('0x1b79')+(_0x5ce57d[_0x481a9d('0x522')]||_0x5ce57d[_0x481a9d('0x1f94')])[_0x481a9d('0x2e8')](),_0x57eadd['ringgroup']=angular['copy'](_0x5ce57d),_0x57eadd['crudPermissions']=_0x13e168,_0x57eadd[_0x481a9d('0x126a')]={};if(_0x57eadd[_0x481a9d('0x1fa6')][_0x481a9d('0x23c2')])switch(_0x57eadd[_0x481a9d('0x1fa6')][_0x481a9d('0x522')]?_0x57eadd[_0x481a9d('0x1fa6')][_0x481a9d('0x522')][_0x481a9d('0xac2')]():_0x57eadd[_0x481a9d('0x1fa6')][_0x481a9d('0x1f94')]['toLowerCase']()){case _0x481a9d('0xf50'):break;case'dialogflow':{var _0x1e3bbc=_0x57eadd[_0x481a9d('0x1fa6')][_0x481a9d('0x23c2')]['split'](',');_0x57eadd[_0x481a9d('0x1fa6')][_0x481a9d('0xddb')]=_0x1e3bbc[0x0],_0x57eadd['ringgroup']['language']=_0x1e3bbc[0x1],_0x57eadd[_0x481a9d('0x1fa6')]['welcomemessage']=_0x1e3bbc['slice'](0x2,_0x1e3bbc[_0x481a9d('0x577')])[_0x481a9d('0x136')](',');}break;case'amazonlex':{var _0x373b48=_0x57eadd[_0x481a9d('0x1fa6')][_0x481a9d('0x23c2')][_0x481a9d('0x1af5')](',');_0x57eadd['ringgroup'][_0x481a9d('0x21c6')]=_0x373b48[0x0],_0x57eadd[_0x481a9d('0x1fa6')]['secretaccesskey']=_0x373b48[0x1],_0x57eadd[_0x481a9d('0x1fa6')][_0x481a9d('0x20a3')]=_0x373b48[0x2],_0x57eadd[_0x481a9d('0x1fa6')][_0x481a9d('0x15fe')]=_0x373b48[0x3],_0x57eadd[_0x481a9d('0x1fa6')][_0x481a9d('0x1cce')]=_0x373b48[_0x481a9d('0xb3d')](0x4,_0x373b48[_0x481a9d('0x577')])[_0x481a9d('0x136')](',');}break;case _0x481a9d('0x1b98'):{var _0x37158e=_0x57eadd['ringgroup'][_0x481a9d('0x23c2')][_0x481a9d('0x1af5')](',');_0x57eadd[_0x481a9d('0x1fa6')][_0x481a9d('0x13b6')]=isNaN(_0x37158e[0x0])?_0x37158e[0x0]:parseInt(_0x37158e[0x0],0xa),_0x57eadd[_0x481a9d('0x1fa6')]['text']=_0x37158e[_0x481a9d('0xb3d')](0x1,_0x37158e[_0x481a9d('0x577')])['join'](',');}break;case _0x481a9d('0x1224'):_0x57eadd[_0x481a9d('0x1fa6')][_0x481a9d('0xc1e')]=_0x57eadd['ringgroup'][_0x481a9d('0x23c2')];break;case _0x481a9d('0x1125'):_0x57eadd[_0x481a9d('0x1fa6')][_0x481a9d('0x19fe')]=_0x57eadd['ringgroup'][_0x481a9d('0x23c2')][_0x481a9d('0x1af5')]('=')[0x0],_0x57eadd[_0x481a9d('0x1fa6')]['value']=_0x57eadd['ringgroup']['appdata'][_0x481a9d('0x1af5')]('=')[0x1];break;case _0x481a9d('0x2356'):_0x57eadd['ringgroup'][_0x481a9d('0xbf8')]=_0x57eadd[_0x481a9d('0x1fa6')][_0x481a9d('0x23c2')];break;default:{var _0x1724a8=_0x57eadd[_0x481a9d('0x1fa6')][_0x481a9d('0x23c2')][_0x481a9d('0x1af5')](',');_0x57eadd[_0x481a9d('0x1fa6')]['multipleUsers']=_0x1724a8[0x0]['split']('&'),_0x57eadd[_0x481a9d('0x1fa6')][_0x481a9d('0x2133')]=_0x86640f()[_0x481a9d('0x23aa')](_0x1724a8[0x1])?_0x1724a8[0x1]:isNaN(_0x1724a8[0x1])?_0x1724a8[0x1]:parseInt(_0x1724a8[0x1],0xa),_0x57eadd[_0x481a9d('0x1fa6')][_0x481a9d('0x26a0')]=_0x86640f()[_0x481a9d('0x23aa')](_0x1724a8[0x2])?_0x1724a8[0x2]:isNaN(_0x1724a8[0x2])?_0x1724a8[0x2]:parseInt(_0x1724a8[0x2],0xa),_0x57eadd['ringgroup'][_0x481a9d('0x770')]=_0x86640f()[_0x481a9d('0x23aa')](_0x1724a8[0x3])?_0x1724a8[0x3]:isNaN(_0x1724a8[0x3])?_0x1724a8[0x3]:parseInt(_0x1724a8[0x3],0xa);}break;}else{}_0x57eadd[_0x481a9d('0x1fa6')][_0x481a9d('0x7fa')]&&_0x57eadd['ringgroup'][_0x481a9d('0x7fa')][_0x481a9d('0xac2')]()===_0x481a9d('0x2300')&&_0x57eadd[_0x481a9d('0x1fa6')][_0x481a9d('0x522')]['toLowerCase']()==='outbounddial'&&(_0x57eadd[_0x481a9d('0x1fa6')][_0x481a9d('0x1995')]=_0x57eadd[_0x481a9d('0x1fa6')]['phone']?_0x57eadd['ringgroup'][_0x481a9d('0x159e')][_0x481a9d('0x1af5')]('$')[0x0]:undefined,_0x57eadd[_0x481a9d('0x1fa6')]['callerId']=_0x57eadd[_0x481a9d('0x1fa6')]['callerID']?'CALLERID(all)='+_0x57eadd[_0x481a9d('0x1fa6')][_0x481a9d('0x1f5a')]:undefined);_0x57eadd[_0x481a9d('0x1c0e')]=_0x3112e4,_0x57eadd['closeDialog']=_0x4c8007;var _0x30579c=[{'id':0xca,'role':_0x481a9d('0x2402')},{'id':0xcb,'role':_0x481a9d('0x13f4')}],_0x446684=null;_0x288391[_0x481a9d('0x21de')]('admin')?_0x304261[_0x481a9d('0x1775')][_0x481a9d('0x595')]({'fields':_0x481a9d('0x2813'),'sort':'name','nolimit':_0x481a9d('0x19bd')})[_0x481a9d('0x1376')][_0x481a9d('0x21ad')](function(_0x4336f8){var _0x4ad826=_0x481a9d;_0x57eadd[_0x4ad826('0x188e')]=_0x4336f8[_0x4ad826('0x1b33')]||[];})['catch'](function(_0x89384f){var _0x449b58=_0x481a9d;_0x24eb93['error']({'title':_0x89384f[_0x449b58('0x209')]?_0x449b58('0x22d')+_0x89384f['status']+_0x449b58('0xa99')+_0x89384f[_0x449b58('0x1808')]:'SYSTEM:GET_USERS','msg':_0x89384f[_0x449b58('0x11c2')]?JSON['stringify'](_0x89384f['data']):_0x89384f['toString']()});}):_0x304261[_0x481a9d('0x1775')][_0x481a9d('0x595')]({'fields':_0x481a9d('0x2813'),'sort':_0x481a9d('0x19fe'),'nolimit':_0x481a9d('0x19bd')})[_0x481a9d('0x1376')][_0x481a9d('0x21ad')](function(_0xd9bb2b){var _0x2f1a20=_0x481a9d;_0x446684=_0xd9bb2b[_0x2f1a20('0x1b33')]||[];})[_0x481a9d('0x21ad')](function(){var _0x4816af=_0x481a9d,_0x4bdba5=[];for(var _0x363a4d=0x0;_0x363a4d<_0x30579c[_0x4816af('0x577')];_0x363a4d++){_0x4bdba5[_0x4816af('0x206c')](_0x304261[_0x4816af('0xab4')][_0x4816af('0x595')]({'userProfileId':_0x57eadd[_0x4816af('0x123f')][_0x4816af('0x1618')],'sectionId':_0x30579c[_0x363a4d]['id']})[_0x4816af('0x1376')]);}return _0xfae64c['all'](_0x4bdba5);})[_0x481a9d('0x21ad')](function(_0x21325a){var _0x607172=_0x481a9d,_0x15734f=_0x86640f()[_0x607172('0x26c3')](_0x21325a,function(_0x43cf75){var _0x23276e=_0x607172;return _0x43cf75&&_0x43cf75[_0x23276e('0x1b33')]?_0x43cf75[_0x23276e('0x1b33')][0x0]:null;}),_0x1c411b=[],_0x51496a=function _0x45995e(_0xdcc6c1){var _0x48c8cd=_0x607172,_0x1c3c8=_0x86640f()[_0x48c8cd('0x1d2e')](_0x15734f,[_0x48c8cd('0x1cd2'),_0x30579c[_0xdcc6c1]['id']]);if(_0x1c3c8){if(!_0x1c3c8['autoAssociation'])_0x1c411b[_0x48c8cd('0x206c')](_0x304261[_0x48c8cd('0x185e')]['get']({'sectionId':_0x1c3c8['id']})[_0x48c8cd('0x1376')]);else{var _0x39d97f=[];_0x446684[_0x48c8cd('0x1a52')](function(_0x30dd4b){var _0x244915=_0x48c8cd;_0x30dd4b[_0x244915('0x25c8')]===_0x30579c[_0xdcc6c1][_0x244915('0x25c8')]&&_0x39d97f['push'](_0x30dd4b);}),_0x1c411b[_0x48c8cd('0x206c')]({'rows':_0x39d97f,'count':_0x39d97f['length']});}}};for(var _0x17067d=0x0;_0x17067d<_0x30579c['length'];_0x17067d++){_0x51496a(_0x17067d);}return _0xfae64c[_0x607172('0x1ba7')](_0x1c411b);})[_0x481a9d('0x21ad')](function(_0x2439f5){var _0x32bd60=_0x481a9d,_0x37cb16=[],_0x8afb73=null;_0x57eadd['ringgroup']&&(_0x8afb73=_0x86640f()['find'](_0x446684,{'name':_0x57eadd[_0x32bd60('0x1fa6')][_0x32bd60('0x160b')]}));for(var _0x471707=0x0;_0x471707<_0x2439f5[_0x32bd60('0x577')];_0x471707++){var _0x36863e=_0x2439f5[_0x471707][_0x32bd60('0x1b33')]||[];_0x36863e[_0x32bd60('0x1a52')](function(_0x261b5f){var _0x3157aa=_0x32bd60;_0x37cb16[_0x3157aa('0x206c')](_0x261b5f);});}_0x8afb73&&!_0x86640f()[_0x32bd60('0x2664')](_0x37cb16,[_0x32bd60('0x675'),_0x8afb73['id']])&&_0x446684[_0x32bd60('0x1a52')](function(_0xb49ad9){var _0x132219=_0x32bd60;_0xb49ad9['id']===_0x8afb73['id']&&(_0xb49ad9['canSelect']=![],_0x37cb16[_0x132219('0x206c')](_0xb49ad9));}),_0x57eadd[_0x32bd60('0x188e')]=_0x37cb16;})['catch'](function(_0x486d25){var _0x178962=_0x481a9d;_0x24eb93[_0x178962('0x2092')]({'title':_0x486d25[_0x178962('0x209')]?_0x178962('0x22d')+_0x486d25[_0x178962('0x209')]+_0x178962('0xa99')+_0x486d25[_0x178962('0x1808')]:_0x178962('0x143e'),'msg':_0x486d25[_0x178962('0x11c2')]?JSON[_0x178962('0x25e')](_0x486d25[_0x178962('0x11c2')]):_0x486d25[_0x178962('0x174f')]()});});function _0x3112e4(){var _0x226555=_0x481a9d;_0x57eadd[_0x226555('0x1a69')]=[];var _0x429dc2=[];_0x57eadd[_0x226555('0x1fa6')][_0x226555('0x7fa')]&&_0x57eadd['ringgroup']['type']['toLowerCase']()==='outbound'&&_0x57eadd[_0x226555('0x1fa6')]['appType']===_0x226555('0x4ea')&&(_0x57eadd['ringgroup']['phone']=_0x12d4d9[_0x226555('0x988')]?(_0x57eadd[_0x226555('0x1fa6')][_0x226555('0x1995')]||'')+'${EXTEN:'+_0x12d4d9['cutdigits']+'}':(_0x57eadd[_0x226555('0x1fa6')][_0x226555('0x1995')]||'')+_0x226555('0x2560'),_0x12d4d9[_0x226555('0xad1')]!==_0x226555('0x983')?_0x57eadd[_0x226555('0x1fa6')][_0x226555('0x26a0')]['indexOf'](_0x226555('0x478'))<0x0&&(_0x57eadd[_0x226555('0x1fa6')][_0x226555('0x26a0')]+=_0x226555('0x478')):_0x57eadd['ringgroup'][_0x226555('0x26a0')]=_0x57eadd['ringgroup'][_0x226555('0x26a0')][_0x226555('0x16e4')](_0x226555('0x478'),''));if(_0x57eadd[_0x226555('0x1fa6')]['appType']&&_0x57eadd[_0x226555('0x1fa6')][_0x226555('0x522')]===_0x226555('0xf50')){}else switch((_0x57eadd[_0x226555('0x1fa6')][_0x226555('0x1f94')]||_0x57eadd[_0x226555('0x1fa6')]['appType'])['toLowerCase']()){case _0x226555('0x1125'):_0x57eadd['ringgroup'][_0x226555('0x23c2')]=_0x57eadd[_0x226555('0x1fa6')]['name']+'='+_0x57eadd[_0x226555('0x1fa6')][_0x226555('0x2228')];break;case'custom':break;default:_0x429dc2[0x0]=_0x57eadd[_0x226555('0x1fa6')][_0x226555('0x160b')]['join']('&'),_0x429dc2[0x1]=_0x57eadd[_0x226555('0x1fa6')]['timeout'],_0x429dc2[0x2]=_0x57eadd[_0x226555('0x1fa6')][_0x226555('0x26a0')],_0x429dc2[0x3]=_0x57eadd[_0x226555('0x1fa6')]['url'],_0x57eadd['ringgroup'][_0x226555('0x23c2')]=_0x429dc2[_0x226555('0x136')](',');}_0x4c8007(_0x57eadd[_0x226555('0x1fa6')]);}function _0x4c8007(_0x35b232){var _0x135948=_0x481a9d;_0x29bceb[_0x135948('0x1c24')](_0x35b232);}}const _0x4a99e0=_0x1e6426;_0x179304[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q','toasty',_0x3877e3('0x14e'),'inboundroute',_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x179304(_0x483311,_0xf52643,_0x9528bc,_0x63d47a,_0x216398,_0x17d96c,_0x588ebd,_0x2ae114){var _0x5be790=_0x3877e3,_0x599733=this;_0x599733['currentUser']=_0x588ebd[_0x5be790('0x15ed')](),_0x599733[_0x5be790('0x1a69')]=[],_0x599733[_0x5be790('0x4b4')]=_0x5be790('0x1b79')+(_0x63d47a[_0x5be790('0x522')]||_0x63d47a[_0x5be790('0x1f94')])[_0x5be790('0x2e8')](),_0x599733['set']=angular[_0x5be790('0xd75')](_0x63d47a),_0x599733[_0x5be790('0x5ed')]=_0x2ae114,_0x599733['hasModulePermissions']={};if(_0x599733[_0x5be790('0x1125')][_0x5be790('0x23c2')])switch(_0x599733['set'][_0x5be790('0x522')]?_0x599733['set'][_0x5be790('0x522')][_0x5be790('0xac2')]():_0x599733[_0x5be790('0x1125')]['app']['toLowerCase']()){case _0x5be790('0xf50'):break;case _0x5be790('0xc72'):{var _0x578907=_0x599733['set'][_0x5be790('0x23c2')][_0x5be790('0x1af5')](',');_0x599733[_0x5be790('0x1125')][_0x5be790('0xddb')]=_0x578907[0x0],_0x599733['set']['language']=_0x578907[0x1],_0x599733['set'][_0x5be790('0x1cce')]=_0x578907[_0x5be790('0xb3d')](0x2,_0x578907['length'])[_0x5be790('0x136')](',');}break;case _0x5be790('0x1c22'):{var _0x15217c=_0x599733[_0x5be790('0x1125')][_0x5be790('0x23c2')]['split'](',');_0x599733[_0x5be790('0x1125')][_0x5be790('0x21c6')]=_0x15217c[0x0],_0x599733[_0x5be790('0x1125')]['secretaccesskey']=_0x15217c[0x1],_0x599733[_0x5be790('0x1125')]['lexregion']=_0x15217c[0x2],_0x599733[_0x5be790('0x1125')][_0x5be790('0x15fe')]=_0x15217c[0x3],_0x599733['set'][_0x5be790('0x1cce')]=_0x15217c['slice'](0x4,_0x15217c[_0x5be790('0x577')])['join'](',');}break;case _0x5be790('0x1b98'):{var _0x56bea2=_0x599733[_0x5be790('0x1125')][_0x5be790('0x23c2')]['split'](',');_0x599733[_0x5be790('0x1125')][_0x5be790('0x13b6')]=isNaN(_0x56bea2[0x0])?_0x56bea2[0x0]:parseInt(_0x56bea2[0x0],0xa),_0x599733[_0x5be790('0x1125')][_0x5be790('0xc1e')]=_0x56bea2[_0x5be790('0xb3d')](0x1,_0x56bea2[_0x5be790('0x577')])[_0x5be790('0x136')](',');}break;case _0x5be790('0x1224'):_0x599733[_0x5be790('0x1125')]['text']=_0x599733[_0x5be790('0x1125')][_0x5be790('0x23c2')];break;case _0x5be790('0x1125'):_0x599733[_0x5be790('0x1125')][_0x5be790('0x19fe')]=_0x599733[_0x5be790('0x1125')][_0x5be790('0x23c2')][_0x5be790('0x1af5')]('=')[0x0],_0x599733[_0x5be790('0x1125')]['value']=_0x599733[_0x5be790('0x1125')][_0x5be790('0x23c2')]['split']('=')[0x1];break;case'agi':_0x599733[_0x5be790('0x1125')][_0x5be790('0xbf8')]=_0x599733[_0x5be790('0x1125')]['appdata'];break;default:{var _0x5a2e35=_0x599733[_0x5be790('0x1125')][_0x5be790('0x23c2')][_0x5be790('0x1af5')]('=');_0x599733[_0x5be790('0x1125')]['name']=_0x86640f()[_0x5be790('0x23aa')](_0x5a2e35[0x0])?_0x5a2e35[0x0]:isNaN(_0x5a2e35[0x0])?_0x5a2e35[0x0]:parseInt(_0x5a2e35[0x0],0xa),_0x599733['set'][_0x5be790('0x2228')]=_0x86640f()[_0x5be790('0x23aa')](_0x5a2e35[0x1])?_0x5a2e35[0x1]:isNaN(_0x5a2e35[0x1])?_0x5a2e35[0x1]:parseInt(_0x5a2e35[0x1],0xa);}break;}else{}_0x599733[_0x5be790('0x1125')][_0x5be790('0x7fa')]&&_0x599733['set']['type'][_0x5be790('0xac2')]()===_0x5be790('0x2300')&&_0x599733[_0x5be790('0x1125')][_0x5be790('0x522')]['toLowerCase']()===_0x5be790('0x2363')&&(_0x599733['set']['prefix']=_0x599733['set'][_0x5be790('0x159e')]?_0x599733[_0x5be790('0x1125')][_0x5be790('0x159e')][_0x5be790('0x1af5')]('$')[0x0]:undefined,_0x599733[_0x5be790('0x1125')][_0x5be790('0x26f7')]=_0x599733['set'][_0x5be790('0x1f5a')]?_0x5be790('0x587')+_0x599733['set'][_0x5be790('0x1f5a')]:undefined);_0x599733[_0x5be790('0x1c0e')]=_0x57b12a,_0x599733[_0x5be790('0x167')]=_0x3331eb,_0x588ebd['hasRole'](_0x5be790('0x1bd8'))?_0x17d96c[_0x5be790('0x25bb')][_0x5be790('0x595')]({'fields':_0x5be790('0x1aa8'),'sort':'name','nolimit':'true'})['$promise'][_0x5be790('0x21ad')](function(_0x43745e){var _0x52ff35=_0x5be790;_0x599733[_0x52ff35('0x142d')]=_0x43745e[_0x52ff35('0x1b33')]||[];})['catch'](function(_0x594fa4){var _0x4c53ec=_0x5be790;_0x9528bc['error']({'title':_0x594fa4[_0x4c53ec('0x209')]?'API:'+_0x594fa4[_0x4c53ec('0x209')]+'\x20-\x20'+_0x594fa4[_0x4c53ec('0x1808')]:_0x4c53ec('0xc0c'),'msg':_0x594fa4[_0x4c53ec('0x11c2')]?JSON[_0x4c53ec('0x25e')](_0x594fa4[_0x4c53ec('0x11c2')]):_0x594fa4[_0x4c53ec('0x174f')]()});}):_0x17d96c[_0x5be790('0x25bb')][_0x5be790('0x595')]({'fields':_0x5be790('0x1aa8'),'sort':_0x5be790('0x19fe'),'nolimit':_0x5be790('0x19bd')})[_0x5be790('0x1376')][_0x5be790('0x21ad')](function(_0x3af926){var _0x3cfcfc=_0x5be790;_0x599733[_0x3cfcfc('0x142d')]=_0x3af926[_0x3cfcfc('0x1b33')]||[];})[_0x5be790('0x21ad')](function(){var _0x1068f0=_0x5be790;return _0x17d96c[_0x1068f0('0xab4')][_0x1068f0('0x595')]({'userProfileId':_0x599733[_0x1068f0('0x123f')][_0x1068f0('0x1618')],'sectionId':0x3f4})[_0x1068f0('0x1376')];})[_0x5be790('0x21ad')](function(_0x193131){var _0x2e9d77=_0x5be790,_0x28ddc9=_0x193131&&_0x193131[_0x2e9d77('0x1b33')]?_0x193131[_0x2e9d77('0x1b33')][0x0]:null;if(!_0x28ddc9){var _0x44b945=[],_0x26fb8b=null;_0x599733[_0x2e9d77('0x1125')]&&(_0x26fb8b=_0x86640f()[_0x2e9d77('0x1d2e')](_0x599733[_0x2e9d77('0x142d')],{'name':_0x599733[_0x2e9d77('0x1125')][_0x2e9d77('0x19fe')]}));for(var _0x5022eb=0x0;_0x5022eb<_0x599733[_0x2e9d77('0x142d')][_0x2e9d77('0x577')];_0x5022eb++){_0x26fb8b&&_0x599733[_0x2e9d77('0x142d')][_0x5022eb]['id']===_0x26fb8b['id']&&(_0x599733['variables'][_0x5022eb]['canSelect']=![],_0x44b945[_0x2e9d77('0x206c')](_0x599733[_0x2e9d77('0x142d')][_0x5022eb]));}_0x599733['variables']=_0x44b945;}else{if(!_0x28ddc9[_0x2e9d77('0x80c')])return _0x17d96c[_0x2e9d77('0x185e')][_0x2e9d77('0x595')]({'sectionId':_0x28ddc9['id']})[_0x2e9d77('0x1376')][_0x2e9d77('0x21ad')](function(_0x303172){var _0x26482e=_0x2e9d77,_0x39d5df=_0x86640f()['map'](_0x303172['rows'],function(_0x3056d5){var _0x3b80fd=a0_0x2e7f;return _0x86640f()[_0x3b80fd('0x1d2e')](_0x599733[_0x3b80fd('0x142d')],{'id':_0x3056d5[_0x3b80fd('0x675')]});}),_0xda24e0=null;_0x599733[_0x26482e('0x1125')]&&(_0xda24e0=_0x86640f()[_0x26482e('0x1d2e')](_0x599733[_0x26482e('0x142d')],{'name':_0x599733[_0x26482e('0x1125')][_0x26482e('0x19fe')]}));if(_0xda24e0&&!_0x86640f()[_0x26482e('0x2664')](_0x39d5df,['id',_0xda24e0['id']])){var _0x1abc65=_0x86640f()['find'](_0x599733['variables'],{'id':_0xda24e0['id']});_0x1abc65[_0x26482e('0xba')]=![],_0x39d5df[_0x26482e('0x206c')](_0x1abc65);}_0x599733[_0x26482e('0x142d')]=_0x39d5df;});}})[_0x5be790('0x1c1d')](function(_0x2f444c){var _0x2a798b=_0x5be790;_0x9528bc['error']({'title':_0x2f444c['status']?_0x2a798b('0x22d')+_0x2f444c[_0x2a798b('0x209')]+'\x20-\x20'+_0x2f444c[_0x2a798b('0x1808')]:_0x2a798b('0x1a26'),'msg':_0x2f444c[_0x2a798b('0x11c2')]?JSON['stringify'](_0x2f444c['data']):_0x2f444c[_0x2a798b('0x174f')]()});});function _0x57b12a(){var _0x3fd254=_0x5be790;_0x599733['errors']=[];var _0x5c0c13=[];_0x599733[_0x3fd254('0x1125')][_0x3fd254('0x7fa')]&&_0x599733[_0x3fd254('0x1125')]['type']['toLowerCase']()==='outbound'&&_0x599733[_0x3fd254('0x1125')][_0x3fd254('0x522')]===_0x3fd254('0x4ea')&&(_0x599733['set']['phone']=_0x216398[_0x3fd254('0x988')]?(_0x599733[_0x3fd254('0x1125')][_0x3fd254('0x1995')]||'')+_0x3fd254('0x349')+_0x216398[_0x3fd254('0x988')]+'}':(_0x599733[_0x3fd254('0x1125')]['prefix']||'')+_0x3fd254('0x2560'),_0x216398[_0x3fd254('0xad1')]!=='none'?_0x599733[_0x3fd254('0x1125')][_0x3fd254('0x26a0')][_0x3fd254('0x2004')](_0x3fd254('0x478'))<0x0&&(_0x599733[_0x3fd254('0x1125')][_0x3fd254('0x26a0')]+=_0x3fd254('0x478')):_0x599733[_0x3fd254('0x1125')]['options']=_0x599733[_0x3fd254('0x1125')][_0x3fd254('0x26a0')][_0x3fd254('0x16e4')](_0x3fd254('0x478'),''));if(_0x599733[_0x3fd254('0x1125')][_0x3fd254('0x522')]&&_0x599733[_0x3fd254('0x1125')][_0x3fd254('0x522')]===_0x3fd254('0xf50')){}else switch((_0x599733[_0x3fd254('0x1125')]['app']||_0x599733[_0x3fd254('0x1125')][_0x3fd254('0x522')])[_0x3fd254('0xac2')]()){case'set':_0x599733['set'][_0x3fd254('0x23c2')]=_0x599733[_0x3fd254('0x1125')][_0x3fd254('0x19fe')]+'='+_0x599733[_0x3fd254('0x1125')][_0x3fd254('0x2228')];break;case _0x3fd254('0xf50'):break;default:_0x5c0c13[0x0]=_0x599733[_0x3fd254('0x1125')][_0x3fd254('0x19fe')],_0x5c0c13[0x1]=_0x599733[_0x3fd254('0x1125')]['value'],_0x599733[_0x3fd254('0x1125')][_0x3fd254('0x23c2')]=_0x5c0c13[_0x3fd254('0x136')]('=');}_0x3331eb(_0x599733['set']);}function _0x3331eb(_0x4bfc54){var _0x35b3ee=_0x5be790;_0x483311[_0x35b3ee('0x1c24')](_0x4bfc54);}}const _0x2b0ebf=_0x179304;_0x2b7a8c['$inject']=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x14e'),_0x3877e3('0x152f'),_0x3877e3('0xccd'),'Auth',_0x3877e3('0x5ed')];function _0x2b7a8c(_0x493b0c,_0x5f4e16,_0x50ec19,_0x571dfd,_0x22ae00,_0x2e717d,_0x49391c,_0x2b3e08){var _0x5223e6=_0x3877e3,_0x38a56a=this;_0x38a56a['currentUser']=_0x49391c[_0x5223e6('0x15ed')](),_0x38a56a['errors']=[],_0x38a56a['title']=_0x5223e6('0x1b79')+(_0x571dfd[_0x5223e6('0x522')]||_0x571dfd[_0x5223e6('0x1f94')])[_0x5223e6('0x2e8')](),_0x38a56a[_0x5223e6('0xcbd')]=angular[_0x5223e6('0xd75')](_0x571dfd),_0x38a56a[_0x5223e6('0x5ed')]=_0x2b3e08,_0x38a56a[_0x5223e6('0x126a')]={};if(_0x38a56a[_0x5223e6('0xcbd')][_0x5223e6('0x23c2')])switch(_0x38a56a[_0x5223e6('0xcbd')]['appType']?_0x38a56a[_0x5223e6('0xcbd')][_0x5223e6('0x522')][_0x5223e6('0xac2')]():_0x38a56a[_0x5223e6('0xcbd')][_0x5223e6('0x1f94')]['toLowerCase']()){case _0x5223e6('0xf50'):break;case _0x5223e6('0xc72'):{var _0x2c45e4=_0x38a56a[_0x5223e6('0xcbd')][_0x5223e6('0x23c2')][_0x5223e6('0x1af5')](',');_0x38a56a['voicemail'][_0x5223e6('0xddb')]=_0x2c45e4[0x0],_0x38a56a[_0x5223e6('0xcbd')][_0x5223e6('0x10f')]=_0x2c45e4[0x1],_0x38a56a[_0x5223e6('0xcbd')]['welcomemessage']=_0x2c45e4['slice'](0x2,_0x2c45e4[_0x5223e6('0x577')])[_0x5223e6('0x136')](',');}break;case _0x5223e6('0x1c22'):{var _0x37a26a=_0x38a56a[_0x5223e6('0xcbd')][_0x5223e6('0x23c2')][_0x5223e6('0x1af5')](',');_0x38a56a[_0x5223e6('0xcbd')][_0x5223e6('0x21c6')]=_0x37a26a[0x0],_0x38a56a[_0x5223e6('0xcbd')][_0x5223e6('0x797')]=_0x37a26a[0x1],_0x38a56a['voicemail']['lexregion']=_0x37a26a[0x2],_0x38a56a['voicemail'][_0x5223e6('0x15fe')]=_0x37a26a[0x3],_0x38a56a[_0x5223e6('0xcbd')][_0x5223e6('0x1cce')]=_0x37a26a['slice'](0x4,_0x37a26a[_0x5223e6('0x577')])[_0x5223e6('0x136')](',');}break;case _0x5223e6('0x1b98'):{var _0x3e3681=_0x38a56a[_0x5223e6('0xcbd')]['appdata'][_0x5223e6('0x1af5')](',');_0x38a56a[_0x5223e6('0xcbd')]['times']=isNaN(_0x3e3681[0x0])?_0x3e3681[0x0]:parseInt(_0x3e3681[0x0],0xa),_0x38a56a[_0x5223e6('0xcbd')][_0x5223e6('0xc1e')]=_0x3e3681[_0x5223e6('0xb3d')](0x1,_0x3e3681[_0x5223e6('0x577')])[_0x5223e6('0x136')](',');}break;case _0x5223e6('0x1224'):_0x38a56a[_0x5223e6('0xcbd')][_0x5223e6('0xc1e')]=_0x38a56a[_0x5223e6('0xcbd')][_0x5223e6('0x23c2')];break;case _0x5223e6('0x1125'):_0x38a56a[_0x5223e6('0xcbd')][_0x5223e6('0x19fe')]=_0x38a56a[_0x5223e6('0xcbd')][_0x5223e6('0x23c2')][_0x5223e6('0x1af5')]('=')[0x0],_0x38a56a['voicemail'][_0x5223e6('0x2228')]=_0x38a56a[_0x5223e6('0xcbd')][_0x5223e6('0x23c2')]['split']('=')[0x1];break;case'agi':_0x38a56a[_0x5223e6('0xcbd')][_0x5223e6('0xbf8')]=_0x38a56a[_0x5223e6('0xcbd')][_0x5223e6('0x23c2')];break;default:{var _0x5a7c97=_0x38a56a[_0x5223e6('0xcbd')][_0x5223e6('0x23c2')][_0x5223e6('0x1af5')](',');_0x38a56a[_0x5223e6('0xcbd')][_0x5223e6('0x554')]=_0x86640f()[_0x5223e6('0x23aa')](_0x5a7c97[0x0])?_0x5a7c97[0x0]:isNaN(_0x5a7c97[0x0])?_0x5a7c97[0x0]:parseInt(_0x5a7c97[0x0],0xa),_0x38a56a[_0x5223e6('0xcbd')][_0x5223e6('0x26a0')]=_0x86640f()[_0x5223e6('0x23aa')](_0x5a7c97[0x1])?_0x5a7c97[0x1]:isNaN(_0x5a7c97[0x1])?_0x5a7c97[0x1]:parseInt(_0x5a7c97[0x1],0xa);}break;}else{}_0x38a56a[_0x5223e6('0xcbd')]['type']&&_0x38a56a[_0x5223e6('0xcbd')][_0x5223e6('0x7fa')][_0x5223e6('0xac2')]()===_0x5223e6('0x2300')&&_0x38a56a[_0x5223e6('0xcbd')][_0x5223e6('0x522')][_0x5223e6('0xac2')]()==='outbounddial'&&(_0x38a56a[_0x5223e6('0xcbd')][_0x5223e6('0x1995')]=_0x38a56a[_0x5223e6('0xcbd')]['phone']?_0x38a56a[_0x5223e6('0xcbd')][_0x5223e6('0x159e')][_0x5223e6('0x1af5')]('$')[0x0]:undefined,_0x38a56a[_0x5223e6('0xcbd')][_0x5223e6('0x26f7')]=_0x38a56a['voicemail'][_0x5223e6('0x1f5a')]?_0x5223e6('0x587')+_0x38a56a['voicemail'][_0x5223e6('0x1f5a')]:undefined);_0x38a56a[_0x5223e6('0x1c0e')]=_0x223852,_0x38a56a[_0x5223e6('0x167')]=_0x98e02f,_0x49391c[_0x5223e6('0x21de')](_0x5223e6('0x1bd8'))?_0x2e717d[_0x5223e6('0x554')][_0x5223e6('0x595')]({'fields':_0x5223e6('0x2194'),'sort':_0x5223e6('0x263d'),'nolimit':_0x5223e6('0x19bd')})[_0x5223e6('0x1376')][_0x5223e6('0x21ad')](function(_0x3b51c9){var _0x17b0ba=_0x5223e6;_0x38a56a[_0x17b0ba('0x2285')]=_0x3b51c9[_0x17b0ba('0x1b33')]||[];})[_0x5223e6('0x1c1d')](function(_0x5a0a6f){var _0x475385=_0x5223e6;_0x50ec19[_0x475385('0x2092')]({'title':_0x5a0a6f[_0x475385('0x209')]?'API:'+_0x5a0a6f['status']+_0x475385('0xa99')+_0x5a0a6f[_0x475385('0x1808')]:_0x475385('0xb65'),'msg':_0x5a0a6f[_0x475385('0x11c2')]?JSON['stringify'](_0x5a0a6f['data']):_0x5a0a6f[_0x475385('0x174f')]()});}):_0x2e717d[_0x5223e6('0x554')][_0x5223e6('0x595')]({'fields':_0x5223e6('0x2194'),'sort':'mailbox','nolimit':_0x5223e6('0x19bd')})[_0x5223e6('0x1376')][_0x5223e6('0x21ad')](function(_0x37bf93){var _0x34a934=_0x5223e6;_0x38a56a[_0x34a934('0x2285')]=_0x37bf93[_0x34a934('0x1b33')]||[];})[_0x5223e6('0x21ad')](function(){var _0x1af7eb=_0x5223e6;return _0x2e717d[_0x1af7eb('0xab4')]['get']({'userProfileId':_0x38a56a[_0x1af7eb('0x123f')][_0x1af7eb('0x1618')],'sectionId':0x196})[_0x1af7eb('0x1376')];})['then'](function(_0x5f329b){var _0x48d908=_0x5223e6,_0x542bd8=_0x5f329b&&_0x5f329b[_0x48d908('0x1b33')]?_0x5f329b[_0x48d908('0x1b33')][0x0]:null;if(!_0x542bd8){var _0x179d14=[],_0x4f7419=null;_0x38a56a[_0x48d908('0xcbd')]&&(_0x4f7419=_0x86640f()[_0x48d908('0x1d2e')](_0x38a56a[_0x48d908('0x2285')],{'mailbox':_0x38a56a[_0x48d908('0xcbd')][_0x48d908('0x554')]}));for(var _0xd5ad2e=0x0;_0xd5ad2e<_0x38a56a['voiceMails'][_0x48d908('0x577')];_0xd5ad2e++){_0x4f7419&&_0x38a56a[_0x48d908('0x2285')][_0xd5ad2e]['id']===_0x4f7419['id']&&(_0x38a56a['voiceMails'][_0xd5ad2e]['canSelect']=![],_0x179d14[_0x48d908('0x206c')](_0x38a56a[_0x48d908('0x2285')][_0xd5ad2e]));}_0x38a56a['voiceMails']=_0x179d14;}else{if(!_0x542bd8['autoAssociation'])return _0x2e717d[_0x48d908('0x185e')][_0x48d908('0x595')]({'sectionId':_0x542bd8['id']})[_0x48d908('0x1376')]['then'](function(_0x1aa5dd){var _0x5a6dfc=_0x48d908,_0x20630b=_0x86640f()[_0x5a6dfc('0x26c3')](_0x1aa5dd['rows'],function(_0x2af848){var _0x1526ac=_0x5a6dfc;return _0x86640f()[_0x1526ac('0x1d2e')](_0x38a56a[_0x1526ac('0x2285')],{'id':_0x2af848['resourceId']});}),_0x52b424=null;_0x38a56a['voicemail']&&(_0x52b424=_0x86640f()[_0x5a6dfc('0x1d2e')](_0x38a56a['voiceMails'],{'mailbox':_0x38a56a[_0x5a6dfc('0xcbd')]['voiceMail']}));if(_0x52b424&&!_0x86640f()['some'](_0x20630b,['id',_0x52b424['id']])){var _0x1b53ce=_0x86640f()['find'](_0x38a56a[_0x5a6dfc('0x2285')],{'id':_0x52b424['id']});_0x1b53ce[_0x5a6dfc('0xba')]=![],_0x20630b[_0x5a6dfc('0x206c')](_0x1b53ce);}_0x38a56a[_0x5a6dfc('0x2285')]=_0x20630b;});}})[_0x5223e6('0x1c1d')](function(_0x32dc33){var _0x589aa6=_0x5223e6;_0x50ec19[_0x589aa6('0x2092')]({'title':_0x32dc33['status']?_0x589aa6('0x22d')+_0x32dc33[_0x589aa6('0x209')]+'\x20-\x20'+_0x32dc33[_0x589aa6('0x1808')]:_0x589aa6('0x1bb5'),'msg':_0x32dc33[_0x589aa6('0x11c2')]?JSON[_0x589aa6('0x25e')](_0x32dc33[_0x589aa6('0x11c2')]):_0x32dc33['toString']()});});function _0x223852(){var _0x21b1be=_0x5223e6;_0x38a56a['errors']=[];var _0xbf3d90=[];_0x38a56a[_0x21b1be('0xcbd')][_0x21b1be('0x7fa')]&&_0x38a56a[_0x21b1be('0xcbd')][_0x21b1be('0x7fa')][_0x21b1be('0xac2')]()===_0x21b1be('0x2300')&&_0x38a56a[_0x21b1be('0xcbd')][_0x21b1be('0x522')]===_0x21b1be('0x4ea')&&(_0x38a56a['voicemail'][_0x21b1be('0x159e')]=_0x22ae00[_0x21b1be('0x988')]?(_0x38a56a[_0x21b1be('0xcbd')][_0x21b1be('0x1995')]||'')+_0x21b1be('0x349')+_0x22ae00[_0x21b1be('0x988')]+'}':(_0x38a56a[_0x21b1be('0xcbd')][_0x21b1be('0x1995')]||'')+'${EXTEN}',_0x22ae00[_0x21b1be('0xad1')]!==_0x21b1be('0x983')?_0x38a56a[_0x21b1be('0xcbd')]['options'][_0x21b1be('0x2004')](_0x21b1be('0x478'))<0x0&&(_0x38a56a['voicemail'][_0x21b1be('0x26a0')]+=_0x21b1be('0x478')):_0x38a56a[_0x21b1be('0xcbd')][_0x21b1be('0x26a0')]=_0x38a56a[_0x21b1be('0xcbd')][_0x21b1be('0x26a0')][_0x21b1be('0x16e4')](_0x21b1be('0x478'),''));if(_0x38a56a[_0x21b1be('0xcbd')]['appType']&&_0x38a56a['voicemail'][_0x21b1be('0x522')]===_0x21b1be('0xf50')){}else switch((_0x38a56a[_0x21b1be('0xcbd')][_0x21b1be('0x1f94')]||_0x38a56a[_0x21b1be('0xcbd')]['appType'])[_0x21b1be('0xac2')]()){case _0x21b1be('0x1125'):_0x38a56a[_0x21b1be('0xcbd')][_0x21b1be('0x23c2')]=_0x38a56a[_0x21b1be('0xcbd')][_0x21b1be('0x19fe')]+'='+_0x38a56a[_0x21b1be('0xcbd')][_0x21b1be('0x2228')];break;case _0x21b1be('0xf50'):break;default:_0xbf3d90[0x0]=_0x38a56a[_0x21b1be('0xcbd')]['voiceMail'],_0xbf3d90[0x1]=_0x38a56a['voicemail'][_0x21b1be('0x26a0')],_0x38a56a['voicemail'][_0x21b1be('0x23c2')]=_0xbf3d90[_0x21b1be('0x136')](',');}_0x98e02f(_0x38a56a[_0x21b1be('0xcbd')]);}function _0x98e02f(_0x1213ed){_0x493b0c['hide'](_0x1213ed);}}const _0x4b84a3=_0x2b7a8c;_0x1c9c1b[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$document',_0x3877e3('0x13c1'),'license',_0x3877e3('0x21e'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),'Auth',_0x3877e3('0x152f'),_0x3877e3('0xab4')];function _0x1c9c1b(_0xa51a8e,_0x308910,_0x5de58c,_0x4db01c,_0x57c19e,_0x1eb642,_0x33cb5a,_0xb23d59,_0x258a3a,_0x20955f,_0x4a66d2,_0x8fc3cf){var _0x1eef47=_0x3877e3,_0x32970d=this;_0x32970d[_0x1eef47('0x123f')]=_0x20955f['getCurrentUser'](),_0x32970d['license']=_0x1eb642,_0x32970d[_0x1eef47('0x21e')]=_0x33cb5a,_0x32970d[_0x1eef47('0x1432')]=_0x32970d[_0x1eef47('0x21e')][_0x1eef47('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x32970d['location']=_0x308910[_0x1eef47('0x1162')]()+_0x1eef47('0x22a9')+_0x308910[_0x1eef47('0x1c01')](),_0x32970d[_0x1eef47('0x152f')]=_0x4a66d2||_0xa51a8e[_0x1eef47('0x171b')][_0x1eef47('0x152f')]||{},_0x32970d[_0x1eef47('0xab4')]=_0x8fc3cf&&_0x8fc3cf[_0x1eef47('0x205f')]==0x1?_0x8fc3cf[_0x1eef47('0x1b33')][0x0]:null,_0x32970d[_0x1eef47('0x5ed')]=_0x20955f[_0x1eef47('0x1778')](_0x32970d[_0x1eef47('0xab4')]?_0x32970d[_0x1eef47('0xab4')]['crudPermissions']:null),_0x32970d[_0x1eef47('0x126a')]={},_0x32970d['selectedTab']=_0xa51a8e[_0x1eef47('0x171b')]['tab']||0x0,_0x32970d[_0x1eef47('0x95b')]=_0x258a3a[_0x1eef47('0x231c')],_0x32970d[_0x1eef47('0x2198')]=_0xbfd7,_0x32970d[_0x1eef47('0x1bfb')]=_0x2f4a64,_0x20955f[_0x1eef47('0x21de')]('admin')?_0xb23d59[_0x1eef47('0x608')][_0x1eef47('0x595')]({'fields':_0x1eef47('0x1aa8'),'sort':_0x1eef47('0x19fe'),'nolimit':_0x1eef47('0x19bd')})[_0x1eef47('0x1376')]['then'](function(_0xbfa9f1){var _0x1d004c=_0x1eef47;_0x32970d['contexts']=_0xbfa9f1[_0x1d004c('0x1b33')]||[];})[_0x1eef47('0x1c1d')](function(_0x4b4b17){var _0x2ec2cd=_0x1eef47;_0x258a3a[_0x2ec2cd('0x2092')]({'title':_0x4b4b17[_0x2ec2cd('0x209')]?_0x2ec2cd('0x22d')+_0x4b4b17[_0x2ec2cd('0x209')]+_0x2ec2cd('0xa99')+_0x4b4b17[_0x2ec2cd('0x1808')]:_0x2ec2cd('0x11b1'),'msg':_0x4b4b17[_0x2ec2cd('0x11c2')]?JSON[_0x2ec2cd('0x25e')](_0x4b4b17['data']):_0x4b4b17[_0x2ec2cd('0x174f')]()});}):_0xb23d59[_0x1eef47('0x608')]['get']({'fields':_0x1eef47('0x1aa8'),'sort':_0x1eef47('0x19fe'),'nolimit':_0x1eef47('0x19bd')})[_0x1eef47('0x1376')][_0x1eef47('0x21ad')](function(_0x3170bd){var _0xde8ca1=_0x1eef47;_0x32970d[_0xde8ca1('0x1089')]=_0x3170bd[_0xde8ca1('0x1b33')]||[];})[_0x1eef47('0x21ad')](function(){var _0x5dd2cd=_0x1eef47;return _0xb23d59[_0x5dd2cd('0xab4')][_0x5dd2cd('0x595')]({'userProfileId':_0x32970d[_0x5dd2cd('0x123f')][_0x5dd2cd('0x1618')],'sectionId':0x195})['$promise'];})['then'](function(_0x4b8412){var _0x5b66af=_0x1eef47,_0x15041d=_0x4b8412&&_0x4b8412[_0x5b66af('0x1b33')]?_0x4b8412[_0x5b66af('0x1b33')][0x0]:null;if(!_0x15041d)return _0xb23d59[_0x5b66af('0x608')][_0x5b66af('0x595')]({'fields':_0x5b66af('0x1aa8'),'sort':_0x5b66af('0x19fe'),'nolimit':'true','defaultEntry':0x1})['$promise']['then'](function(_0xab5cc){var _0x2477bc=_0x5b66af;_0x32970d['contexts']=_0xab5cc[_0x2477bc('0x1b33')]||[];});else{if(!_0x15041d[_0x5b66af('0x80c')])return _0xb23d59[_0x5b66af('0x185e')][_0x5b66af('0x595')]({'sectionId':_0x15041d['id']})[_0x5b66af('0x1376')][_0x5b66af('0x21ad')](function(_0x24afd8){var _0x22797c=_0x5b66af,_0x1bda7f=_0x86640f()[_0x22797c('0x26c3')](_0x24afd8[_0x22797c('0x1b33')],function(_0x42f319){var _0x3f9ce0=_0x22797c;return _0x86640f()[_0x3f9ce0('0x1d2e')](_0x32970d[_0x3f9ce0('0x1089')],{'id':_0x42f319[_0x3f9ce0('0x675')]});}),_0x25e330=null;_0x32970d[_0x22797c('0x152f')]&&(_0x25e330=_0x86640f()[_0x22797c('0x1d2e')](_0x32970d[_0x22797c('0x1089')],{'name':_0x32970d[_0x22797c('0x152f')][_0x22797c('0x244c')]}));if(_0x25e330&&!_0x86640f()['some'](_0x1bda7f,['id',_0x25e330['id']])){var _0x5833d7=_0x86640f()['find'](_0x32970d[_0x22797c('0x1089')],{'id':_0x25e330['id']});_0x5833d7[_0x22797c('0xba')]=![],_0x1bda7f[_0x22797c('0x206c')](_0x5833d7);}_0x32970d[_0x22797c('0x1089')]=_0x1bda7f;});}})[_0x1eef47('0x1c1d')](function(_0x53be50){var _0x808407=_0x1eef47;_0x258a3a[_0x808407('0x2092')]({'title':_0x53be50[_0x808407('0x209')]?_0x808407('0x22d')+_0x53be50['status']+_0x808407('0xa99')+_0x53be50[_0x808407('0x1808')]:'SYSTEM:GETcontexts','msg':_0x53be50[_0x808407('0x11c2')]?JSON[_0x808407('0x25e')](_0x53be50[_0x808407('0x11c2')]):_0x53be50['toString']()});});function _0xbfd7(){var _0x5efe32=_0x1eef47;_0xa51a8e['go'](_0x5efe32('0x2485'),{},{'reload':_0x5efe32('0x2485')});}function _0x2f4a64(){var _0x5eb307=_0x1eef47;_0xb23d59[_0x5eb307('0x1b0c')]['update']({'id':_0x32970d[_0x5eb307('0x152f')]['id']},_0x32970d[_0x5eb307('0x152f')])[_0x5eb307('0x1376')][_0x5eb307('0x21ad')](function(){var _0x377805=_0x5eb307;_0x258a3a[_0x377805('0xdb1')]({'title':'InboundRoute\x20updated!','msg':_0x32970d['inboundroute'][_0x377805('0x19fe')]?_0x32970d['inboundroute'][_0x377805('0x19fe')]+_0x377805('0xa8d'):''});})[_0x5eb307('0x1c1d')](function(_0x3ad16c){var _0x4d2c56=_0x5eb307;_0x258a3a[_0x4d2c56('0x2092')]({'title':_0x3ad16c['status']?'API:'+_0x3ad16c[_0x4d2c56('0x209')]+_0x4d2c56('0xa99')+_0x3ad16c[_0x4d2c56('0x1808')]:_0x4d2c56('0x681'),'msg':_0x3ad16c[_0x4d2c56('0x11c2')]?JSON['stringify'](_0x3ad16c['data']):_0x3ad16c['toString']()});});}}const _0x11edcc=_0x1c9c1b,_0x4b8ee6=_0x398308['p']+'src/js/modules/main/apps/voice/views/inboundroutes/create/dialog.html/dialog-[chunkhash].html';_0x11165b['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),'$timeout','$translate',_0x3877e3('0x16a4'),'userProfile',_0x3877e3('0xab4'),_0x3877e3('0xccd'),'msUtils',_0x3877e3('0x1908'),_0x3877e3('0x15bc'),'license',_0x3877e3('0x21e')];function _0x11165b(_0x27eb7b,_0x52a08a,_0x4e805d,_0x30ad3d,_0x28f2b8,_0x4d8ca6,_0x18d5e7,_0x4d934e,_0x159bb1,_0x2fcd57,_0x3bb81b,_0xf5de20,_0x3a18da,_0x2c9ec5,_0xa4deed,_0x5b90d5,_0x30f285){var _0x5e4942=_0x3877e3,_0x31eb4b=this;_0x31eb4b[_0x5e4942('0x2ff')]=_0x5b90d5,_0x31eb4b[_0x5e4942('0x21e')]=_0x30f285,_0x31eb4b['currentUser']=_0xa4deed[_0x5e4942('0x15ed')](),_0x31eb4b['inboundroutes']=_0x159bb1||{'count':0x0,'rows':[]},_0x31eb4b[_0x5e4942('0x758')]=_0x2fcd57,_0x31eb4b[_0x5e4942('0xab4')]=_0x3bb81b&&_0x3bb81b[_0x5e4942('0x205f')]==0x1?_0x3bb81b[_0x5e4942('0x1b33')][0x0]:null,_0x31eb4b[_0x5e4942('0x5ed')]=_0xa4deed[_0x5e4942('0x1778')](_0x31eb4b[_0x5e4942('0xab4')]?_0x31eb4b[_0x5e4942('0xab4')]['crudPermissions']:null),_0x31eb4b[_0x5e4942('0x1897')]=_0x5e4942('0x16a4'),_0x31eb4b['listOrder']='',_0x31eb4b['listOrderAsc']=null,_0x31eb4b[_0x5e4942('0x1dbf')]=[],_0x31eb4b[_0x5e4942('0x77')]={'fields':_0x5e4942('0x2049'),'type':'inbound','sort':'-updatedAt','VoiceExtensionId':_0x5e4942('0x27a'),'limit':0xa,'page':0x1},_0x31eb4b[_0x5e4942('0x1c88')]=_0x19f4de,_0x31eb4b[_0x5e4942('0x2593')]=_0x22aacc,_0x31eb4b[_0x5e4942('0xdb1')]=_0x56a20e,_0x31eb4b['getInboundRoutes']=_0x4edf3b,_0x31eb4b['createOrEditInboundRoute']=_0x485b06,_0x31eb4b['deleteInboundRoute']=_0x333480,_0x31eb4b['exportSelectedInboundRoutes']=_0x451914,_0x31eb4b[_0x5e4942('0x18dc')]=_0x249c20,_0x31eb4b[_0x5e4942('0x1d18')]=_0x34ec72,_0x31eb4b['selectAllInboundRoutes']=_0x170564,_0xa4deed['hasRole'](_0x5e4942('0x1bd8'))?_0xf5de20['voiceContext'][_0x5e4942('0x595')]({'fields':'id,name','sort':_0x5e4942('0x19fe'),'nolimit':_0x5e4942('0x19bd')})[_0x5e4942('0x1376')][_0x5e4942('0x21ad')](function(_0x517044){var _0x2230c4=_0x5e4942;_0x31eb4b[_0x2230c4('0x1089')]=_0x517044[_0x2230c4('0x1b33')]||[];})['catch'](function(_0xd8452b){var _0x6ca0fb=_0x5e4942;_0x2c9ec5[_0x6ca0fb('0x2092')]({'title':_0xd8452b[_0x6ca0fb('0x209')]?'API:'+_0xd8452b[_0x6ca0fb('0x209')]+'\x20-\x20'+_0xd8452b['statusText']:'SYSTEM:GET_CONTEXTS','msg':_0xd8452b[_0x6ca0fb('0x11c2')]?JSON[_0x6ca0fb('0x25e')](_0xd8452b[_0x6ca0fb('0x11c2')]):_0xd8452b[_0x6ca0fb('0x174f')]()});}):_0xf5de20[_0x5e4942('0x608')]['get']({'fields':_0x5e4942('0x1aa8'),'sort':'name','nolimit':_0x5e4942('0x19bd')})['$promise'][_0x5e4942('0x21ad')](function(_0x4bbc96){var _0x57828b=_0x5e4942;_0x31eb4b['contexts']=_0x4bbc96[_0x57828b('0x1b33')]||[];})[_0x5e4942('0x21ad')](function(){var _0x527021=_0x5e4942;return _0xf5de20[_0x527021('0xab4')][_0x527021('0x595')]({'userProfileId':_0x31eb4b[_0x527021('0x123f')]['userProfileId'],'sectionId':0x195})['$promise'];})['then'](function(_0x4bb1e7){var _0x52136c=_0x5e4942,_0x2d2404=_0x4bb1e7&&_0x4bb1e7['rows']?_0x4bb1e7['rows'][0x0]:null;if(!_0x2d2404)return _0xf5de20[_0x52136c('0x608')][_0x52136c('0x595')]({'fields':_0x52136c('0x1aa8'),'sort':'name','nolimit':_0x52136c('0x19bd'),'defaultEntry':0x1})[_0x52136c('0x1376')][_0x52136c('0x21ad')](function(_0x2c7fd9){_0x31eb4b['contexts']=_0x2c7fd9['rows']||[];});else{if(!_0x2d2404[_0x52136c('0x80c')])return _0xf5de20[_0x52136c('0x185e')]['get']({'sectionId':_0x2d2404['id']})['$promise'][_0x52136c('0x21ad')](function(_0x1e779e){var _0x6bf1d0=_0x52136c,_0x5d5f33=_0x86640f()['map'](_0x1e779e[_0x6bf1d0('0x1b33')],function(_0x23edf4){var _0x230d32=_0x6bf1d0;return _0x86640f()[_0x230d32('0x1d2e')](_0x31eb4b[_0x230d32('0x1089')],{'id':_0x23edf4[_0x230d32('0x675')]});}),_0x483283=null;_0x31eb4b[_0x6bf1d0('0x152f')]&&(_0x483283=_0x86640f()['find'](_0x31eb4b[_0x6bf1d0('0x1089')],{'name':_0x31eb4b['inboundroute']['context']}));if(_0x483283&&!_0x86640f()['some'](_0x5d5f33,['id',_0x483283['id']])){var _0x4806ba=_0x86640f()[_0x6bf1d0('0x1d2e')](_0x31eb4b[_0x6bf1d0('0x1089')],{'id':_0x483283['id']});_0x4806ba[_0x6bf1d0('0xba')]=![],_0x5d5f33['push'](_0x4806ba);}_0x31eb4b[_0x6bf1d0('0x1089')]=_0x5d5f33;});}})['catch'](function(_0x385d85){var _0x56d5f9=_0x5e4942;_0x2c9ec5[_0x56d5f9('0x2092')]({'title':_0x385d85[_0x56d5f9('0x209')]?_0x56d5f9('0x22d')+_0x385d85[_0x56d5f9('0x209')]+_0x56d5f9('0xa99')+_0x385d85[_0x56d5f9('0x1808')]:_0x56d5f9('0x1463'),'msg':_0x385d85[_0x56d5f9('0x11c2')]?JSON['stringify'](_0x385d85[_0x56d5f9('0x11c2')]):_0x385d85['toString']()});});function _0x19f4de(_0xf8d6a0){var _0x2ff0c7=_0x5e4942;_0x4e805d['go'](_0x2ff0c7('0x141b'),{'id':_0xf8d6a0['id'],'inboundroute':_0xf8d6a0,'crudPermissions':_0x31eb4b['crudPermissions']});}function _0x22aacc(_0x2551d1,_0x181e9c){var _0x15bb65=_0x5e4942,_0x154dba=_0x28f2b8[_0x15bb65('0xa33')]()[_0x15bb65('0x4b4')](_0x15bb65('0x25b6')+_0x86640f()[_0x15bb65('0x2159')](_0x15bb65('0x152f'))+'?')[_0x15bb65('0x276b')](_0x15bb65('0x622')+(_0x2551d1[_0x15bb65('0x19fe')]||'inboundroute')+_0x15bb65('0x2135')+_0x15bb65('0x25e0'))[_0x15bb65('0x7a7')]('delete\x20inboundroute')[_0x15bb65('0x1e6d')](_0x181e9c)['ok']('OK')[_0x15bb65('0x3b5')](_0x15bb65('0x284b'));_0x28f2b8['show'](_0x154dba)['then'](function(){_0x333480(_0x2551d1);},function(){var _0xfba06a=_0x15bb65;console[_0xfba06a('0x6fb')](_0xfba06a('0x284b'));});}var _0x5dd9ee=!![],_0x48af78=0x1;_0x27eb7b['$watch']('vm.query.filter',function(_0x36bbcb,_0x26b53b){var _0x30add7=_0x5e4942;_0x5dd9ee?_0x18d5e7(function(){_0x5dd9ee=![];}):(!_0x26b53b&&(_0x48af78=_0x31eb4b[_0x30add7('0x77')]['page']),_0x36bbcb!==_0x26b53b&&(_0x31eb4b[_0x30add7('0x77')]['page']=0x1),!_0x36bbcb&&(_0x31eb4b[_0x30add7('0x77')][_0x30add7('0x2376')]=_0x48af78),_0x31eb4b[_0x30add7('0x2681')]());});function _0x56a20e(_0x478d22){var _0x45546e=_0x5e4942;_0x31eb4b[_0x45546e('0x16a4')]=_0x478d22||{'count':0x0,'rows':[]};}function _0x4edf3b(){var _0x469900=_0x5e4942;_0x31eb4b[_0x469900('0x77')][_0x469900('0x15a5')]=(_0x31eb4b[_0x469900('0x77')][_0x469900('0x2376')]-0x1)*_0x31eb4b['query'][_0x469900('0x1f4a')],_0xa4deed[_0x469900('0x21de')](_0x469900('0x1bd8'))?_0x31eb4b[_0x469900('0x71b')]=_0xf5de20[_0x469900('0x1b0c')][_0x469900('0x595')](_0x31eb4b['query'],_0x56a20e)[_0x469900('0x1376')]:(_0x31eb4b[_0x469900('0x77')]['id']=_0x31eb4b[_0x469900('0x758')]['id'],_0x31eb4b[_0x469900('0x77')]['section']=_0x469900('0x1f22'),_0x31eb4b[_0x469900('0x71b')]=_0xf5de20[_0x469900('0x758')][_0x469900('0x321')](_0x31eb4b[_0x469900('0x77')],_0x56a20e)[_0x469900('0x1376')]);}function _0x485b06(_0x4ea0e1,_0x511ffd){var _0x4e3770=_0x5e4942;_0x28f2b8[_0x4e3770('0x853')]({'controller':_0x4e3770('0x1305'),'controllerAs':'vm','templateUrl':_0x4b8ee6,'parent':angular['element'](_0x4d8ca6[_0x4e3770('0x2452')]),'targetEvent':_0x4ea0e1,'clickOutsideToClose':!![],'locals':{'inboundroute':_0x511ffd,'inboundroutes':_0x31eb4b['inboundroutes'][_0x4e3770('0x1b33')],'license':_0x31eb4b[_0x4e3770('0x2ff')],'setting':_0x31eb4b[_0x4e3770('0x21e')],'crudPermissions':_0x31eb4b['crudPermissions']}});}function _0x333480(_0x382d4b){var _0x216564=_0x5e4942;_0xf5de20['voiceExtension']['delete']({'id':_0x382d4b['id']})[_0x216564('0x1376')][_0x216564('0x21ad')](function(){var _0x4511c8=_0x216564;_0x86640f()[_0x4511c8('0x16a2')](_0x31eb4b['inboundroutes'][_0x4511c8('0x1b33')],{'id':_0x382d4b['id']}),_0x31eb4b[_0x4511c8('0x16a4')][_0x4511c8('0x205f')]-=0x1,!_0x31eb4b[_0x4511c8('0x16a4')][_0x4511c8('0x1b33')]['length']&&_0x31eb4b[_0x4511c8('0x2681')](),_0x2c9ec5[_0x4511c8('0xdb1')]({'title':_0x86640f()[_0x4511c8('0x2159')]('InboundRoute')+_0x4511c8('0xe64'),'msg':_0x382d4b[_0x4511c8('0x19fe')]?_0x382d4b[_0x4511c8('0x19fe')]+_0x4511c8('0xb4a'):''});})[_0x216564('0x1c1d')](function(_0x438a0d){var _0x5b430b=_0x216564;if(_0x438a0d[_0x5b430b('0x11c2')]&&_0x438a0d['data'][_0x5b430b('0x1a69')]&&_0x438a0d[_0x5b430b('0x11c2')]['errors'][_0x5b430b('0x577')]){_0x31eb4b['errors']=_0x438a0d[_0x5b430b('0x11c2')][_0x5b430b('0x1a69')]||[{'message':_0x438a0d[_0x5b430b('0x174f')](),'type':_0x5b430b('0x2467')}];for(var _0x4409c4=0x0;_0x4409c4<_0x438a0d['data'][_0x5b430b('0x1a69')]['length'];_0x4409c4++){_0x2c9ec5[_0x5b430b('0x2092')]({'title':_0x438a0d[_0x5b430b('0x11c2')][_0x5b430b('0x1a69')][_0x4409c4][_0x5b430b('0x7fa')],'msg':_0x438a0d[_0x5b430b('0x11c2')][_0x5b430b('0x1a69')][_0x4409c4]['message']});}}else _0x2c9ec5[_0x5b430b('0x2092')]({'title':_0x438a0d['status']?_0x5b430b('0x22d')+_0x438a0d['status']+'\x20-\x20'+_0x438a0d[_0x5b430b('0x1808')]:'SYSTEM:DELETEvoiceExtension','msg':_0x438a0d['data']?JSON[_0x5b430b('0x25e')](_0x438a0d[_0x5b430b('0x11c2')][_0x5b430b('0x1224')]):_0x438a0d[_0x5b430b('0x1224')]||_0x438a0d[_0x5b430b('0x174f')]()});});}function _0x451914(){var _0x11e815=_0x5e4942,_0x125326=angular[_0x11e815('0xd75')](_0x31eb4b[_0x11e815('0x1dbf')]);return _0x31eb4b[_0x11e815('0x1dbf')]=[],_0x125326;}function _0x249c20(_0x4029ef){var _0x1fb551=_0x5e4942,_0x1f07f1=_0x28f2b8[_0x1fb551('0xa33')]()[_0x1fb551('0x4b4')](_0x1fb551('0x4dd'))[_0x1fb551('0x276b')](''+_0x31eb4b[_0x1fb551('0x1dbf')][_0x1fb551('0x577')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x1fb551('0x7a7')]('delete\x20InboundRoutes')[_0x1fb551('0x1e6d')](_0x4029ef)['ok']('OK')[_0x1fb551('0x3b5')](_0x1fb551('0x284b'));_0x28f2b8[_0x1fb551('0x853')](_0x1f07f1)[_0x1fb551('0x21ad')](function(){var _0x14b754=_0x1fb551;_0x31eb4b['selectedInboundRoutes'][_0x14b754('0x1a52')](function(_0x4eb899){_0x333480(_0x4eb899);}),_0x31eb4b[_0x14b754('0x1dbf')]=[];});}function _0x34ec72(){var _0x3b6cbf=_0x5e4942;_0x31eb4b[_0x3b6cbf('0x1dbf')]=[];}function _0x170564(){var _0x12021b=_0x5e4942;_0x31eb4b[_0x12021b('0x1dbf')]=_0x31eb4b['inboundroutes'][_0x12021b('0x1b33')];}}const _0x5310b3=_0x11165b;_0x24b441['$inject']=[_0x3877e3('0x95a'),'$state',_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q','$translate',_0x3877e3('0x1908'),_0x3877e3('0x474'),_0x3877e3('0x26e3'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),'crudPermissions'];function _0x24b441(_0x2af069,_0x1e5a0d,_0x41009f,_0x18d647,_0x304be6,_0x2f38d9,_0x1b7b34,_0x545609,_0x143e79,_0x22c7d0,_0x53dc42,_0x518ba3,_0x2dda07,_0x3c03ab){var _0x2f358e=_0x3877e3,_0x11c40c=this;_0x11c40c[_0x2f358e('0x123f')]=_0x53dc42[_0x2f358e('0x15ed')](),_0x11c40c['errors']=[],_0x11c40c['setting']=_0x2dda07,_0x11c40c[_0x2f358e('0x2ff')]=_0x518ba3,_0x11c40c[_0x2f358e('0x5ed')]=_0x3c03ab,_0x11c40c['hasModulePermissions']={},_0x11c40c[_0x2f358e('0x1432')]=_0x11c40c['setting']&&_0x11c40c[_0x2f358e('0x21e')][_0x2f358e('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x11c40c[_0x2f358e('0x4b4')]='VOICE.EDIT_INTERNALROUTE',_0x11c40c[_0x2f358e('0x26e3')]=angular[_0x2f358e('0xd75')](_0x143e79),_0x11c40c[_0x2f358e('0x474')]=_0x545609,_0x11c40c['newInternalRoute']=![];!_0x11c40c[_0x2f358e('0x26e3')]&&(_0x11c40c[_0x2f358e('0x26e3')]={'appdata':_0x2f358e('0x18ae'),'type':'internal','context':_0x2f358e('0x1961')},_0x11c40c[_0x2f358e('0x4b4')]=_0x2f358e('0x1ea'),_0x11c40c[_0x2f358e('0x2512')]=!![]);_0x11c40c[_0x2f358e('0x1b1e')]=_0x3bdd7b,_0x11c40c[_0x2f358e('0x165')]=_0x1c9eaa,_0x11c40c[_0x2f358e('0xb2a')]=_0x5d7d7e,_0x11c40c[_0x2f358e('0x279')]=_0x472bdd,_0x11c40c[_0x2f358e('0x167')]=_0x539fea,_0x53dc42[_0x2f358e('0x21de')]('admin')?_0x22c7d0[_0x2f358e('0x608')][_0x2f358e('0x595')]({'fields':'id,name','sort':_0x2f358e('0x19fe'),'nolimit':_0x2f358e('0x19bd')})[_0x2f358e('0x1376')][_0x2f358e('0x21ad')](function(_0x327ac6){var _0x26da9c=_0x2f358e;_0x11c40c[_0x26da9c('0x1089')]=_0x327ac6[_0x26da9c('0x1b33')]||[];})[_0x2f358e('0x1c1d')](function(_0x4f0620){var _0x354780=_0x2f358e;_0x1b7b34['error']({'title':_0x4f0620[_0x354780('0x209')]?_0x354780('0x22d')+_0x4f0620['status']+_0x354780('0xa99')+_0x4f0620[_0x354780('0x1808')]:_0x354780('0x11b1'),'msg':_0x4f0620[_0x354780('0x11c2')]?JSON[_0x354780('0x25e')](_0x4f0620[_0x354780('0x11c2')]):_0x4f0620['toString']()});}):_0x22c7d0[_0x2f358e('0x608')]['get']({'fields':_0x2f358e('0x1aa8'),'sort':_0x2f358e('0x19fe'),'nolimit':'true'})['$promise'][_0x2f358e('0x21ad')](function(_0x9e2e5c){var _0x8ed39b=_0x2f358e;_0x11c40c[_0x8ed39b('0x1089')]=_0x9e2e5c['rows']||[];})[_0x2f358e('0x21ad')](function(){var _0x503806=_0x2f358e;return _0x22c7d0[_0x503806('0xab4')][_0x503806('0x595')]({'userProfileId':_0x11c40c[_0x503806('0x123f')][_0x503806('0x1618')],'sectionId':0x195})['$promise'];})['then'](function(_0xbe364b){var _0x2712de=_0x2f358e,_0x5b630c=_0xbe364b&&_0xbe364b[_0x2712de('0x1b33')]?_0xbe364b[_0x2712de('0x1b33')][0x0]:null;if(!_0x5b630c)return _0x22c7d0['voiceContext'][_0x2712de('0x595')]({'fields':_0x2712de('0x1aa8'),'sort':_0x2712de('0x19fe'),'nolimit':_0x2712de('0x19bd'),'defaultEntry':0x1})['$promise']['then'](function(_0x8fc6f8){var _0x2eaba3=_0x2712de;_0x11c40c['contexts']=_0x8fc6f8[_0x2eaba3('0x1b33')]||[];});else{if(!_0x5b630c[_0x2712de('0x80c')])return _0x22c7d0[_0x2712de('0x185e')][_0x2712de('0x595')]({'sectionId':_0x5b630c['id']})[_0x2712de('0x1376')][_0x2712de('0x21ad')](function(_0x5ed2b3){var _0x27887c=_0x2712de,_0x38dfdf=_0x86640f()[_0x27887c('0x26c3')](_0x5ed2b3[_0x27887c('0x1b33')],function(_0x56ed92){var _0x223132=_0x27887c;return _0x86640f()[_0x223132('0x1d2e')](_0x11c40c[_0x223132('0x1089')],{'id':_0x56ed92[_0x223132('0x675')]});}),_0xfbf4a1=null;_0x11c40c[_0x27887c('0x26e3')]&&(_0xfbf4a1=_0x86640f()['find'](_0x11c40c[_0x27887c('0x1089')],{'name':_0x11c40c[_0x27887c('0x26e3')][_0x27887c('0x244c')]}));if(_0xfbf4a1&&!_0x86640f()[_0x27887c('0x2664')](_0x38dfdf,['id',_0xfbf4a1['id']])){var _0x45504c=_0x86640f()[_0x27887c('0x1d2e')](_0x11c40c['contexts'],{'id':_0xfbf4a1['id']});_0x45504c[_0x27887c('0xba')]=![],_0x38dfdf[_0x27887c('0x206c')](_0x45504c);}_0x11c40c[_0x27887c('0x1089')]=_0x38dfdf;});}})[_0x2f358e('0x1c1d')](function(_0x1cd891){var _0x564477=_0x2f358e;_0x1b7b34['error']({'title':_0x1cd891[_0x564477('0x209')]?_0x564477('0x22d')+_0x1cd891[_0x564477('0x209')]+_0x564477('0xa99')+_0x1cd891[_0x564477('0x1808')]:_0x564477('0x1463'),'msg':_0x1cd891['data']?JSON['stringify'](_0x1cd891['data']):_0x1cd891[_0x564477('0x174f')]()});});function _0x3bdd7b(){var _0x6dc050=_0x2f358e;_0x11c40c[_0x6dc050('0x1a69')]=[],_0x22c7d0[_0x6dc050('0x1b0c')][_0x6dc050('0x186f')](_0x11c40c[_0x6dc050('0x26e3')])[_0x6dc050('0x1376')][_0x6dc050('0x21ad')](function(_0x95eef5){var _0x3d05fa=_0x6dc050;_0x11c40c[_0x3d05fa('0x474')][_0x3d05fa('0xd0c')](_0x95eef5[_0x3d05fa('0x3bc')]()),_0x1b7b34[_0x3d05fa('0xdb1')]({'title':_0x3d05fa('0x68b'),'msg':_0x11c40c[_0x3d05fa('0x26e3')][_0x3d05fa('0x19fe')]?_0x11c40c['internalroute'][_0x3d05fa('0x19fe')]+_0x3d05fa('0x1694'):''}),_0x539fea(_0x95eef5);})[_0x6dc050('0x1c1d')](function(_0x1bf169){var _0x1356d6=_0x6dc050;if(_0x1bf169[_0x1356d6('0x11c2')]&&_0x1bf169['data']['errors']&&_0x1bf169['data']['errors'][_0x1356d6('0x577')]){_0x11c40c[_0x1356d6('0x1a69')]=_0x1bf169[_0x1356d6('0x11c2')][_0x1356d6('0x1a69')]||[{'message':_0x1bf169['toString'](),'type':_0x1356d6('0x873')}];for(var _0x55c385=0x0;_0x55c385<_0x1bf169[_0x1356d6('0x11c2')]['errors'][_0x1356d6('0x577')];_0x55c385+=0x1){_0x1b7b34['error']({'title':_0x1bf169[_0x1356d6('0x11c2')][_0x1356d6('0x1a69')][_0x55c385]['type'],'msg':_0x1bf169[_0x1356d6('0x11c2')][_0x1356d6('0x1a69')][_0x55c385][_0x1356d6('0x1224')]});}}else _0x1b7b34[_0x1356d6('0x2092')]({'title':_0x1bf169['status']?'API:'+_0x1bf169[_0x1356d6('0x209')]+_0x1356d6('0xa99')+_0x1bf169[_0x1356d6('0x1808')]:_0x1356d6('0x873'),'msg':_0x1bf169['data']?JSON[_0x1356d6('0x25e')](_0x1bf169[_0x1356d6('0x11c2')][_0x1356d6('0x1224')]):_0x1bf169[_0x1356d6('0x174f')]()});});}function _0x1c9eaa(){var _0x237b98=_0x2f358e;_0x11c40c[_0x237b98('0x1a69')]=[],_0x22c7d0[_0x237b98('0x1b0c')][_0x237b98('0x5ef')]({'id':_0x11c40c[_0x237b98('0x26e3')]['id']},_0x11c40c[_0x237b98('0x26e3')])[_0x237b98('0x1376')][_0x237b98('0x21ad')](function(_0x4cead6){var _0xb2ccf3=_0x237b98,_0x511daf=_0x86640f()[_0xb2ccf3('0x1d2e')](_0x11c40c[_0xb2ccf3('0x474')],{'id':_0x4cead6['id']});_0x511daf&&_0x86640f()[_0xb2ccf3('0xd0e')](_0x511daf,_0x86640f()[_0xb2ccf3('0xc50')](_0x4cead6[_0xb2ccf3('0x3bc')](),_0x86640f()['keys'](_0x511daf))),_0x1b7b34[_0xb2ccf3('0xdb1')]({'title':_0xb2ccf3('0x1022'),'msg':_0x11c40c[_0xb2ccf3('0x26e3')][_0xb2ccf3('0x19fe')]?_0x11c40c[_0xb2ccf3('0x26e3')][_0xb2ccf3('0x19fe')]+_0xb2ccf3('0x2249'):''}),_0x539fea(_0x4cead6);})[_0x237b98('0x1c1d')](function(_0xfd2bf0){var _0x573b91=_0x237b98;if(_0xfd2bf0['data']&&_0xfd2bf0[_0x573b91('0x11c2')][_0x573b91('0x1a69')]&&_0xfd2bf0['data']['errors'][_0x573b91('0x577')]){_0x11c40c[_0x573b91('0x1a69')]=_0xfd2bf0[_0x573b91('0x11c2')][_0x573b91('0x1a69')]||[{'message':_0xfd2bf0[_0x573b91('0x174f')](),'type':'api.voiceExtension.update'}];for(var _0x127c07=0x0;_0x127c07<_0xfd2bf0['data'][_0x573b91('0x1a69')][_0x573b91('0x577')];_0x127c07++){_0x1b7b34[_0x573b91('0x2092')]({'title':_0xfd2bf0['data'][_0x573b91('0x1a69')][_0x127c07][_0x573b91('0x7fa')],'msg':_0xfd2bf0[_0x573b91('0x11c2')][_0x573b91('0x1a69')][_0x127c07][_0x573b91('0x1224')]});}}else _0x1b7b34[_0x573b91('0x2092')]({'title':_0xfd2bf0[_0x573b91('0x209')]?_0x573b91('0x22d')+_0xfd2bf0[_0x573b91('0x209')]+_0x573b91('0xa99')+_0xfd2bf0[_0x573b91('0x1808')]:_0x573b91('0x20f0'),'msg':_0xfd2bf0[_0x573b91('0x11c2')]?JSON[_0x573b91('0x25e')](_0xfd2bf0[_0x573b91('0x11c2')]['message']):_0xfd2bf0[_0x573b91('0x174f')]()});});}function _0x5d7d7e(_0x1b38cc){var _0x479816=_0x2f358e;_0x11c40c['errors']=[];var _0x22a6b6=_0x18d647[_0x479816('0xa33')]()[_0x479816('0x4b4')](_0x479816('0x196b'))[_0x479816('0x13fb')]('The\x20internalroute\x20will\x20be\x20deleted.')[_0x479816('0x7a7')](_0x479816('0x1045'))['ok'](_0x479816('0xbfd'))[_0x479816('0x3b5')]('Cancel')[_0x479816('0x1e6d')](_0x1b38cc);_0x18d647[_0x479816('0x853')](_0x22a6b6)[_0x479816('0x21ad')](function(){var _0x462c6e=_0x479816;_0x22c7d0[_0x462c6e('0x1b0c')][_0x462c6e('0x1164')]({'id':_0x11c40c['internalroute']['id']})[_0x462c6e('0x1376')][_0x462c6e('0x21ad')](function(){var _0x3f30fa=_0x462c6e;_0x86640f()[_0x3f30fa('0x16a2')](_0x11c40c['internalroutes'],{'id':_0x11c40c[_0x3f30fa('0x26e3')]['id']}),_0x1b7b34[_0x3f30fa('0xdb1')]({'title':_0x3f30fa('0xf83'),'msg':(_0x11c40c[_0x3f30fa('0x26e3')][_0x3f30fa('0x19fe')]||_0x3f30fa('0x26e3'))+'\x20has\x20been\x20deleted!'}),_0x539fea(_0x11c40c[_0x3f30fa('0x26e3')]);})[_0x462c6e('0x1c1d')](function(_0x35f31c){var _0x143e57=_0x462c6e;if(_0x35f31c['data']&&_0x35f31c['data']['errors']&&_0x35f31c[_0x143e57('0x11c2')][_0x143e57('0x1a69')]['length']){_0x11c40c['errors']=_0x35f31c[_0x143e57('0x11c2')][_0x143e57('0x1a69')]||[{'message':_0x35f31c[_0x143e57('0x174f')](),'type':_0x143e57('0x100a')}];for(var _0x35e45f=0x0;_0x35e45f<_0x35f31c[_0x143e57('0x11c2')]['errors']['length'];_0x35e45f++){_0x1b7b34['error']({'title':_0x35f31c[_0x143e57('0x11c2')][_0x143e57('0x1a69')][_0x35e45f][_0x143e57('0x7fa')],'msg':_0x35f31c[_0x143e57('0x11c2')][_0x143e57('0x1a69')][_0x35e45f][_0x143e57('0x1224')]});}}else _0x1b7b34[_0x143e57('0x2092')]({'title':_0x35f31c[_0x143e57('0x209')]?_0x143e57('0x22d')+_0x35f31c[_0x143e57('0x209')]+_0x143e57('0xa99')+_0x35f31c[_0x143e57('0x1808')]:_0x143e57('0x100a'),'msg':_0x35f31c['data']?JSON[_0x143e57('0x25e')](_0x35f31c[_0x143e57('0x11c2')][_0x143e57('0x1224')]):_0x35f31c[_0x143e57('0x1224')]||_0x35f31c[_0x143e57('0x174f')]()});});},function(){});}function _0x472bdd(_0x59aab6){return _0x59aab6===null?undefined:new Date(_0x59aab6);}function _0x539fea(_0x5662a5){var _0x55febe=_0x2f358e;_0x18d647[_0x55febe('0x1c24')](_0x5662a5);}}const _0x214bb3=_0x24b441,_0x226fe3=_0x398308['p']+_0x3877e3('0x1122'),_0x292acf=_0x398308['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/custom/dialog.html/dialog-[chunkhash].html',_0x19225e=_0x398308['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/dial/dialog.html/dialog-[chunkhash].html',_0x3ebefd=_0x398308['p']+_0x3877e3('0x1a7f'),_0x2b4fe4=_0x398308['p']+_0x3877e3('0x19a5'),_0x779bd3=_0x398308['p']+_0x3877e3('0x1591'),_0x2eff81=_0x398308['p']+_0x3877e3('0x235e'),_0x4caf23=_0x398308['p']+_0x3877e3('0xe6'),_0x4ba9e6=_0x398308['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/playback/dialog.html/dialog-[chunkhash].html',_0xe45e03=_0x398308['p']+_0x3877e3('0x2521'),_0x7567a9=_0x398308['p']+_0x3877e3('0x247d'),_0x17d812=_0x398308['p']+_0x3877e3('0x10e0'),_0x775a6a=_0x398308['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/voicemail/dialog.html/dialog-[chunkhash].html';_0x3f6a6f[_0x3877e3('0x1a81')]=[_0x3877e3('0xccd'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x1908'),'Auth'];var _0x52cf16={'agi':_0x226fe3,'custom':_0x292acf,'dial':_0x19225e,'externaldial':_0x3ebefd,'goto':_0x2b4fe4,'hangup':_0x779bd3,'internaldial':_0x2eff81,'interval':_0x4caf23,'playback':_0x4ba9e6,'queue':_0xe45e03,'ringgroup':_0x7567a9,'set':_0x17d812,'voicemail':_0x775a6a};function _0x3f6a6f(_0x47c57c,_0x5e9c68,_0x32e161,_0x177925,_0x3fca28){var _0x1e6220=_0x3877e3,_0x424e75=this;_0x424e75[_0x1e6220('0x123f')]=_0x3fca28[_0x1e6220('0x15ed')](),_0x424e75[_0x1e6220('0x26e3')]={},_0x424e75[_0x1e6220('0x2257')]={'count':0x0,'rows':[]},_0x424e75[_0x1e6220('0x1949')]=[],_0x424e75[_0x1e6220('0x5ed')],_0x424e75[_0x1e6220('0x77')]={'sort':'priority'},_0x424e75['apps']=_0x86640f()[_0x1e6220('0x37a')](_0x86640f()[_0x1e6220('0x203e')]([{'app':_0x1e6220('0x1809'),'appType':_0x1e6220('0xa07'),'type':_0x1e6220('0x9da'),'types':[_0x1e6220('0x869'),'custom',_0x1e6220('0x17fe')],'fields':[],'isApp':![]},{'app':'Queue','appType':_0x1e6220('0xbdd'),'context':_0x1e6220('0x1961'),'type':_0x1e6220('0x9da'),'options':'xX','appdata':_0x1e6220('0x1e3e'),'icon':_0x1e6220('0x1da4'),'interval':_0x1e6220('0x1cc4'),'answer':!![],'isApp':!![],'extraApi':[{'name':_0x1e6220('0xc64'),'field':{'name':'sound','key':_0x1e6220('0x275c'),'prefix':_0x1e6220('0x428')},'route':_0x1e6220('0x2397'),'filters':{'fields':_0x1e6220('0x343'),'sort':'name','nolimit':!![]},'permissions':{'section':0x3ef}},{'name':'queues','field':{'name':'queue','key':_0x1e6220('0x19fe')},'route':'voiceQueue','filters':{'type':_0x1e6220('0x923'),'fields':'id,name,type','sort':'name','nolimit':!![]},'permissions':{'section':0x191}}],'fields':[{'title':_0x1e6220('0x1da'),'name':'queue','type':'apiselect','values':_0x1e6220('0xb7a'),'value':_0x1e6220('0x126f'),'option':'queue.name','required':!![],'param':0x0},{'title':_0x1e6220('0x107a'),'name':_0x1e6220('0x26a0'),'type':_0x1e6220('0xc1e'),'param':0x1},{'title':_0x1e6220('0x274b'),'name':'URL','type':_0x1e6220('0xc1e'),'param':0x2},{'title':'Announce_Overrides','name':_0x1e6220('0x2397'),'type':_0x1e6220('0x15e9'),'values':_0x1e6220('0xc64'),'value':_0x1e6220('0x1d2b'),'option':_0x1e6220('0x118e'),'defaultValues':[{'value':'\x27\x27','option':'None'}],'param':0x3},{'title':_0x1e6220('0x1149'),'name':'timeout','type':_0x1e6220('0xed8'),'min':0x0,'param':0x4},{'title':_0x1e6220('0x2085'),'name':_0x1e6220('0x2356'),'type':'text','param':0x5},{'title':'Macro','name':'macro','type':_0x1e6220('0xc1e'),'param':0x6},{'title':_0x1e6220('0x16e1'),'name':_0x1e6220('0x1e22'),'type':_0x1e6220('0xc1e'),'param':0x7},{'title':'Rule','name':_0x1e6220('0x609'),'type':_0x1e6220('0xc1e'),'param':0x8},{'title':_0x1e6220('0x111'),'name':_0x1e6220('0x1c9f'),'type':_0x1e6220('0xed8'),'min':0x0,'param':0x9},{'title':_0x1e6220('0x19b7'),'name':_0x1e6220('0x1446'),'type':_0x1e6220('0x23a7'),'general':!![]}]},{'app':'Playback','appType':_0x1e6220('0x25be'),'context':_0x1e6220('0x1961'),'type':_0x1e6220('0x9da'),'icon':'icon-apps','interval':_0x1e6220('0x1cc4'),'answer':!![],'isApp':!![],'extraApi':[{'name':_0x1e6220('0xc64'),'field':{'name':_0x1e6220('0x23c2'),'key':_0x1e6220('0x275c'),'prefix':'/var/opt/motion2/server/files/sounds/converted/'},'route':_0x1e6220('0x2397'),'filters':{'fields':_0x1e6220('0x343'),'sort':_0x1e6220('0x19fe'),'nolimit':!![]},'permissions':{'section':0x3ef}}],'fields':[{'title':_0x1e6220('0xfc'),'name':_0x1e6220('0x23c2'),'type':_0x1e6220('0x15e9'),'values':_0x1e6220('0xc64'),'value':'\x27/var/opt/motion2/server/files/sounds/converted/{{appdata.save_name}}\x27','option':_0x1e6220('0x20a6'),'required':!![],'param':0x0},{'title':_0x1e6220('0x107a'),'name':_0x1e6220('0x26a0'),'type':_0x1e6220('0xc1e'),'param':0x1},{'title':_0x1e6220('0x19b7'),'name':_0x1e6220('0x1446'),'type':_0x1e6220('0x23a7'),'general':!![]}]},{'app':_0x1e6220('0x269f'),'appType':'dial','context':'from-sip','type':_0x1e6220('0x9da'),'icon':_0x1e6220('0x1da4'),'options':'xX','interval':_0x1e6220('0x1cc4'),'isApp':!![],'fields':[{'title':_0x1e6220('0x323'),'name':_0x1e6220('0x1ee1'),'type':'text','required':!![],'param':0x0},{'title':_0x1e6220('0x1149'),'name':_0x1e6220('0x2133'),'type':_0x1e6220('0xed8'),'min':0x0,'param':0x1},{'title':'Options','name':'options','type':'text','param':0x2},{'title':_0x1e6220('0x274b'),'name':_0x1e6220('0x770'),'type':_0x1e6220('0xc1e'),'param':0x3}]},{'app':_0x1e6220('0x269f'),'appType':_0x1e6220('0xbc9'),'context':_0x1e6220('0x1961'),'type':_0x1e6220('0x9da'),'icon':_0x1e6220('0x1da4'),'options':'xX','interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':'users','field':{'name':_0x1e6220('0x1775'),'key':'name','prefix':_0x1e6220('0x12d2')},'route':_0x1e6220('0x1775'),'filters':{'fields':'id,name,role','sort':_0x1e6220('0x19fe'),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x1e6220('0x2402')},{'id':0xcb,'role':'telephone'}]}}],'fields':[{'title':_0x1e6220('0x6e4'),'name':_0x1e6220('0x1775'),'type':_0x1e6220('0x15e9'),'values':_0x1e6220('0x188e'),'value':_0x1e6220('0x16c4'),'option':_0x1e6220('0x26cb'),'required':!![],'param':0x0},{'title':_0x1e6220('0x1149'),'name':'timeout','type':_0x1e6220('0xed8'),'min':0x0,'param':0x1},{'title':_0x1e6220('0x107a'),'name':_0x1e6220('0x26a0'),'type':_0x1e6220('0xc1e'),'param':0x2},{'title':_0x1e6220('0x274b'),'name':_0x1e6220('0x770'),'type':_0x1e6220('0xc1e'),'param':0x3}]},{'app':_0x1e6220('0x269f'),'appType':_0x1e6220('0x1a6'),'context':'from-sip','type':_0x1e6220('0x9da'),'icon':_0x1e6220('0x1da4'),'interval':_0x1e6220('0x1cc4'),'options':'xX','isApp':!![],'extraApi':[{'name':_0x1e6220('0x1593'),'field':{'name':_0x1e6220('0x1280'),'key':_0x1e6220('0x19fe')},'route':_0x1e6220('0x1280'),'filters':{'fields':_0x1e6220('0x1aa8'),'sort':_0x1e6220('0x19fe'),'nolimit':!![]},'permissions':{'section':0x3f3}}],'fields':[{'title':'Trunk','name':_0x1e6220('0x1280'),'type':_0x1e6220('0x15e9'),'values':'trunks','value':_0x1e6220('0x282e'),'option':_0x1e6220('0x282e'),'required':!![],'param':0x0},{'title':_0x1e6220('0x2781'),'name':'phone','type':_0x1e6220('0xc1e')},{'title':_0x1e6220('0x1149'),'name':_0x1e6220('0x2133'),'type':_0x1e6220('0xed8'),'min':0x0,'param':0x1},{'title':'Options','name':'options','type':_0x1e6220('0xc1e'),'param':0x2},{'title':_0x1e6220('0x274b'),'name':_0x1e6220('0x770'),'type':'text','param':0x3}]},{'app':'Dial','appType':_0x1e6220('0x19b6'),'context':_0x1e6220('0x1961'),'type':_0x1e6220('0x9da'),'icon':_0x1e6220('0x1da4'),'interval':_0x1e6220('0x1cc4'),'options':'xX','isApp':!![],'extraApi':[{'name':_0x1e6220('0x188e'),'field':{'name':_0x1e6220('0x160b'),'key':_0x1e6220('0x19fe'),'prefix':_0x1e6220('0x12d2')},'route':_0x1e6220('0x1775'),'filters':{'fields':_0x1e6220('0x2813'),'sort':'name','nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x1e6220('0x2402')},{'id':0xcb,'role':_0x1e6220('0x13f4')}]}}],'fields':[{'title':'User','name':_0x1e6220('0x160b'),'type':'apiselect','multiple':!![],'values':_0x1e6220('0x188e'),'value':_0x1e6220('0x1f70'),'option':_0x1e6220('0xc2f'),'required':!![],'param':0x0},{'title':_0x1e6220('0x1149'),'name':_0x1e6220('0x2133'),'type':_0x1e6220('0xed8'),'min':0x0,'param':0x1},{'title':_0x1e6220('0x107a'),'name':_0x1e6220('0x26a0'),'type':_0x1e6220('0xc1e'),'param':0x2},{'title':_0x1e6220('0x274b'),'name':'url','type':'text','param':0x3}]},{'app':_0x1e6220('0x22c1'),'alias':_0x1e6220('0x2cc'),'appType':_0x1e6220('0x2356'),'context':'from-sip','type':'Internal','icon':_0x1e6220('0x1da4'),'interval':_0x1e6220('0x1cc4'),'isApp':!![],'extraApi':[{'name':_0x1e6220('0xc0f'),'field':{'name':_0x1e6220('0xbf8'),'key':_0x1e6220('0x19fe'),'prefix':_0x1e6220('0x186d')},'route':_0x1e6220('0x1a41'),'filters':{'fields':_0x1e6220('0x1aa8'),'sort':_0x1e6220('0x19fe'),'nolimit':!![]},'permissions':{'section':0x44f}}],'fields':[{'title':_0x1e6220('0x2294'),'name':'project','type':'apiselect','values':_0x1e6220('0xc0f'),'value':_0x1e6220('0xd64'),'option':_0x1e6220('0x22e2'),'required':!![],'param':0x0}]},{'app':_0x1e6220('0x12ec'),'appType':_0x1e6220('0x1a5f'),'context':_0x1e6220('0x1961'),'type':_0x1e6220('0x9da'),'icon':_0x1e6220('0x1da4'),'interval':_0x1e6220('0x1cc4'),'isApp':!![],'extraApi':[{'name':_0x1e6220('0x1089'),'field':{'name':_0x1e6220('0x244c'),'key':'name'},'route':_0x1e6220('0x608'),'filters':{'fields':_0x1e6220('0x1aa8'),'sort':_0x1e6220('0x19fe'),'nolimit':!![]},'permissions':{'section':0x195}}],'fields':[{'title':_0x1e6220('0x2354'),'name':_0x1e6220('0x244c'),'type':_0x1e6220('0x15e9'),'values':_0x1e6220('0x1089'),'value':_0x1e6220('0xfe2'),'option':'context.name','required':!![],'param':0x0},{'title':_0x1e6220('0x1c2b'),'name':_0x1e6220('0x128d'),'type':_0x1e6220('0xc1e'),'required':!![],'param':0x1},{'title':_0x1e6220('0x168e'),'name':_0x1e6220('0xbe5'),'type':_0x1e6220('0xc1e'),'required':!![],'param':0x2}]},{'app':_0x1e6220('0xf7d'),'appType':_0x1e6220('0xf7d'),'context':_0x1e6220('0x1961'),'type':'Internal','icon':_0x1e6220('0x1da4'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x1e6220('0x113f'),'name':_0x1e6220('0x23c2'),'type':_0x1e6220('0x2844'),'param':0x0,'values':[{'option':_0x1e6220('0x6d9'),'value':_0x1e6220('0x1bf7')},{'option':_0x1e6220('0x1eb3'),'value':_0x1e6220('0x176c')},{'option':_0x1e6220('0x664'),'value':_0x1e6220('0x1f0f')},{'option':_0x1e6220('0x77a'),'value':'\x2718\x27'},{'option':_0x1e6220('0x269c'),'value':_0x1e6220('0x177d')},{'option':_0x1e6220('0x201e'),'value':'\x2722\x27'},{'option':'HANGUPCAUSE_27','value':_0x1e6220('0x9e4')},{'option':'HANGUPCAUSE_38','value':_0x1e6220('0x46b')},{'option':_0x1e6220('0xf5c'),'value':_0x1e6220('0x21b5')}],'translate':!![],'required':!![],'general':!![]}]},{'app':_0x1e6220('0x1bae'),'appType':'set','context':_0x1e6220('0x1961'),'type':_0x1e6220('0x9da'),'separator':'=','icon':_0x1e6220('0x1da4'),'interval':_0x1e6220('0x1cc4'),'extraApi':[{'name':_0x1e6220('0x142d'),'field':{'name':_0x1e6220('0x19fe'),'key':_0x1e6220('0x19fe')},'route':_0x1e6220('0x25bb'),'filters':{'fields':_0x1e6220('0x1aa8'),'sort':_0x1e6220('0x19fe'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'isApp':!![],'fields':[{'title':_0x1e6220('0x2200'),'name':_0x1e6220('0x19fe'),'type':'apiselect','values':_0x1e6220('0x142d'),'value':_0x1e6220('0x3a5'),'option':_0x1e6220('0x3a5'),'required':!![],'param':0x0},{'title':_0x1e6220('0x17a0'),'name':_0x1e6220('0x2228'),'type':'text','required':!![],'param':0x1}]},{'app':null,'appType':'custom','icon':'icon-apps','type':_0x1e6220('0x9da'),'interval':_0x1e6220('0x1cc4'),'isApp':!![],'fields':[{'title':_0x1e6220('0x19f8'),'name':'app','type':'text','required':!![],'param':0x0},{'title':_0x1e6220('0x2741'),'name':'appdata','type':_0x1e6220('0xc1e'),'param':0x1}]},{'app':'Voicemail','appType':_0x1e6220('0xcbd'),'context':_0x1e6220('0x1961'),'icon':_0x1e6220('0x1da4'),'type':_0x1e6220('0x9da'),'interval':_0x1e6220('0x1cc4'),'isApp':!![],'extraApi':[{'name':'voiceMails','field':{'name':_0x1e6220('0x554'),'key':'mailbox','suffix':_0x1e6220('0xfd9')},'route':'voiceMail','filters':{'fields':_0x1e6220('0x2194'),'sort':_0x1e6220('0x263d'),'nolimit':!![]},'permissions':{'section':0x196}}],'fields':[{'title':_0x1e6220('0x1abe'),'name':_0x1e6220('0x554'),'type':'apiselect','values':'voiceMails','value':_0x1e6220('0x1569'),'option':_0x1e6220('0x101d'),'required':!![],'param':0x0},{'title':_0x1e6220('0x107a'),'name':'options','type':_0x1e6220('0xc1e'),'param':0x1}]}],['app']),{'isApp':![]}),_0x424e75[_0x1e6220('0x17fe')]={'group':{'name':_0x1e6220('0xcd'),'pull':'clone'},'animation':0x64,'sort':![]},_0x424e75[_0x1e6220('0x21d8')]={'group':{'name':_0x1e6220('0x1627'),'put':'opt1'},'animation':0x64,'onAdd':function _0x4d57e7(_0x33549a){var _0x2977ed=_0x1e6220;_0x57659a(_0x33549a,_0x33549a[_0x2977ed('0x5b8')]);},'onSort':function _0x11d6b6(){_0x3d0bf7();}},_0x424e75[_0x1e6220('0x1d75')]=_0x41bf94,_0x424e75[_0x1e6220('0x15dc')]=_0x549946,_0x424e75[_0x1e6220('0x1825')]=_0x313973,_0x424e75['editInternalRouteApp']=_0x57659a,_0x424e75[_0x1e6220('0xb14')]=_0x535056,_0x424e75[_0x1e6220('0x10cd')]=_0x2f9da3,_0x424e75['deleteSelectedInternalRouteApps']=_0x17b1ae,_0x424e75['rewriteRouting']=_0x3d0bf7,_0x424e75[_0x1e6220('0x1ceb')]=_0x2b1bee;function _0x41bf94(_0x44b385,_0x1c4560){var _0x282d83=_0x1e6220;_0x424e75[_0x282d83('0x26e3')]=_0x44b385,_0x424e75[_0x282d83('0x5ed')]=typeof _0x1c4560!==_0x282d83('0xddc')?_0x1c4560:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x424e75[_0x282d83('0x21d8')]['disabled']=!_0x424e75[_0x282d83('0x5ed')]['canEdit']?!![]:![],_0x424e75[_0x282d83('0x77')][_0x282d83('0x772')]=_0x44b385['id'],_0x424e75[_0x282d83('0x77')][_0x282d83('0x9f2')]=!![],_0x424e75[_0x282d83('0x77')][_0x282d83('0x1dc3')]=!![],_0x424e75[_0x282d83('0x1825')](),_0x424e75[_0x282d83('0x1ceb')]();}function _0x549946(_0x15ae4a,_0x253836,_0x27f7d5){var _0x269415=_0x1e6220,_0xb9fd87=_0x5e9c68['confirm']()[_0x269415('0x4b4')](_0x269415('0x5b2'))[_0x269415('0x276b')](_0x269415('0x622')+_0x15ae4a[_0x269415('0x1f94')]+_0x269415('0x2135')+_0x269415('0x25e0'))[_0x269415('0x7a7')](_0x269415('0x1b99'))['targetEvent'](_0x27f7d5)['ok']('OK')['cancel'](_0x269415('0x284b'));_0x5e9c68[_0x269415('0x853')](_0xb9fd87)['then'](function(){var _0x274cdc=_0x269415;_0x424e75[_0x274cdc('0x2257')][_0x274cdc('0x1b33')][_0x274cdc('0xafe')](_0x253836,0x1),_0x3d0bf7();},function(){var _0xdf6acc=_0x269415;console[_0xdf6acc('0x6fb')](_0xdf6acc('0x284b'));});}function _0x57659a(_0x2d95a9,_0x2d134d){var _0x4a0472=_0x1e6220;if(_0x424e75['internalrouteApps'][_0x4a0472('0x1b33')][_0x4a0472('0x577')]){var _0x389f13=_0x424e75[_0x4a0472('0x2257')][_0x4a0472('0x1b33')][_0x2d134d]?_0x424e75[_0x4a0472('0x2257')]['rows'][_0x2d134d]:_0x424e75[_0x4a0472('0x2257')]['rows'][0x0],_0xce5a82=(_0x389f13[_0x4a0472('0x522')]||_0x389f13[_0x4a0472('0x1f94')])[_0x4a0472('0xac2')]();_0x5e9c68[_0x4a0472('0x853')]({'controller':_0x4a0472('0x8a3')[_0x4a0472('0x1877')](_0xce5a82,_0x4a0472('0x19d9')),'controllerAs':'vm','templateUrl':_0x52cf16[_0xce5a82],'parent':angular[_0x4a0472('0x1676')](_0x32e161[_0x4a0472('0x2452')]),'targetEvent':_0x2d95a9,'clickOutsideToClose':!![],'locals':{'internalrouteApp':_0x389f13,'internalroute':_0x424e75[_0x4a0472('0x26e3')],'crudPermissions':_0x424e75[_0x4a0472('0x5ed')]}})['then'](function(_0x19b531){var _0x14ae67=_0x4a0472;_0x19b531&&(_0x19b531['id']?_0x424e75[_0x14ae67('0x2257')]['rows'][_0x2d134d]=_0x19b531:_0x424e75[_0x14ae67('0x2257')]['rows'][_0x14ae67('0xafe')](_0x2d134d,0x0,_0x19b531),_0x3d0bf7());})[_0x4a0472('0x1c1d')](function(_0x5486b1){var _0x1c1931=_0x4a0472;_0x5486b1&&_0x177925[_0x1c1931('0x2092')]({'title':_0x5486b1[_0x1c1931('0x209')]?_0x1c1931('0x22d')+_0x5486b1[_0x1c1931('0x209')]+_0x1c1931('0xa99')+_0x5486b1[_0x1c1931('0x1808')]:_0x1c1931('0x20b3'),'msg':_0x5486b1[_0x1c1931('0x11c2')]?JSON[_0x1c1931('0x25e')](_0x5486b1[_0x1c1931('0x11c2')]):_0x5486b1['toString']()});});}}function _0x535056(_0x2be7ad,_0x3ebcd3){var _0x4d3e90=_0x1e6220;if(_0x424e75[_0x4d3e90('0x2257')]['rows'][_0x4d3e90('0x577')]){var _0x1f0977=_0x424e75[_0x4d3e90('0x2257')][_0x4d3e90('0x1b33')][_0x3ebcd3]?_0x424e75[_0x4d3e90('0x2257')][_0x4d3e90('0x1b33')][_0x3ebcd3]:_0x424e75[_0x4d3e90('0x2257')]['rows'][0x0];_0x5e9c68['show']({'controller':_0x4d3e90('0x23dc'),'controllerAs':'vm','templateUrl':_0x4caf23,'parent':angular[_0x4d3e90('0x1676')](_0x32e161[_0x4d3e90('0x2452')]),'targetEvent':_0x2be7ad,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x1f0977['interval'],'IntervalId':_0x1f0977[_0x4d3e90('0x1ac8')],'application':!![]},'intervals':[],'crudPermissions':_0x424e75[_0x4d3e90('0x5ed')]}})[_0x4d3e90('0x21ad')](function(_0x416447){var _0x828480=_0x4d3e90;_0x416447&&(_0x1f0977[_0x828480('0xa07')]=_0x416447[_0x828480('0xa07')]||_0x828480('0x1cc4'),_0x1f0977[_0x828480('0x1ac8')]=_0x416447[_0x828480('0x1ac8')]||null,_0x3d0bf7());});}}function _0x3d0bf7(){var _0x33e007=_0x1e6220,_0x29b2ce=[_0x33e007('0xbdd'),_0x33e007('0x25be')],_0x27fc62=0x2,_0xcfc927=[];_0xcfc927[_0x33e007('0x206c')]({'type':'internal','app':'Set','appdata':_0x33e007('0x14d1'),'context':_0x424e75[_0x33e007('0x26e3')][_0x33e007('0x244c')],'exten':_0x424e75['internalroute'][_0x33e007('0x24b7')],'priority':_0x27fc62++,'VoiceExtensionId':_0x424e75[_0x33e007('0x26e3')]['id']}),_0xcfc927[_0x33e007('0x206c')]({'type':'internal','app':'Set','appdata':_0x33e007('0x1ff4'),'context':_0x424e75[_0x33e007('0x26e3')][_0x33e007('0x244c')],'exten':_0x424e75[_0x33e007('0x26e3')][_0x33e007('0x24b7')],'priority':_0x27fc62++,'VoiceExtensionId':_0x424e75[_0x33e007('0x26e3')]['id']}),_0xcfc927['push']({'type':_0x33e007('0x201f'),'app':'Set','appdata':_0x33e007('0x1254'),'context':_0x424e75[_0x33e007('0x26e3')][_0x33e007('0x244c')],'exten':_0x424e75['internalroute'][_0x33e007('0x24b7')],'priority':_0x27fc62++,'VoiceExtensionId':_0x424e75['internalroute']['id']}),_0xcfc927[_0x33e007('0x206c')]({'type':_0x33e007('0x201f'),'app':_0x33e007('0x1bae'),'appdata':_0x33e007('0x24b4'),'context':_0x424e75['internalroute'][_0x33e007('0x244c')],'exten':_0x424e75[_0x33e007('0x26e3')][_0x33e007('0x24b7')],'priority':_0x27fc62++,'VoiceExtensionId':_0x424e75['internalroute']['id']});for(var _0x268137=0x0,_0x120dc2=0x0;_0x268137<_0x424e75[_0x33e007('0x2257')][_0x33e007('0x1b33')][_0x33e007('0x577')];_0x268137++,_0x120dc2=0x0){var _0x3cff5d=_0x424e75[_0x33e007('0x2257')][_0x33e007('0x1b33')][_0x268137],_0x153bfe=[],_0x2f5199=[];_0x3cff5d[_0x33e007('0x2530')]=_0x3cff5d[_0x33e007('0xa07')]!==_0x33e007('0x1cc4')?[_0x3cff5d[_0x33e007('0xa07')]]:_0x3cff5d[_0x33e007('0x1ac8')]?_0x86640f()[_0x33e007('0x26c3')](_0x86640f()['filter'](_0x424e75[_0x33e007('0x2530')][_0x33e007('0x1b33')],{'IntervalId':_0x3cff5d[_0x33e007('0x1ac8')]}),_0x33e007('0xa07')):[],_0x3cff5d[_0x33e007('0x244c')]=_0x424e75[_0x33e007('0x26e3')][_0x33e007('0x244c')],_0x3cff5d[_0x33e007('0x24b7')]=_0x424e75['internalroute'][_0x33e007('0x24b7')];_0x3cff5d[_0x33e007('0x7fa')]&&(_0x3cff5d['type']=_0x3cff5d['type'][_0x33e007('0xac2')]());typeof _0x3cff5d[_0x33e007('0x1446')]!==_0x33e007('0xddc')&&(_0x29b2ce[_0x33e007('0xb34')](_0x3cff5d[_0x33e007('0x1f94')][_0x33e007('0xac2')]())&&_0x3cff5d[_0x33e007('0x522')]!==_0x33e007('0xf50')&&(_0x3cff5d[_0x33e007('0x1446')]?(_0x153bfe[_0x33e007('0x206c')]({'type':_0x3cff5d[_0x33e007('0x7fa')]['toLowerCase'](),'app':_0x33e007('0x23e8'),'appdata':_0x33e007('0x2218'),'context':_0x424e75[_0x33e007('0x26e3')][_0x33e007('0x244c')],'exten':_0x424e75[_0x33e007('0x26e3')][_0x33e007('0x24b7')],'priority':_0x3cff5d[_0x33e007('0x2530')][_0x33e007('0x577')]+_0x27fc62+_0x120dc2++,'VoiceExtensionId':_0x424e75[_0x33e007('0x26e3')]['id']}),_0x153bfe[_0x33e007('0x206c')]({'type':_0x3cff5d[_0x33e007('0x7fa')][_0x33e007('0xac2')](),'app':_0x33e007('0x1bae'),'appdata':_0x33e007('0xe6c'),'context':_0x424e75[_0x33e007('0x26e3')][_0x33e007('0x244c')],'exten':_0x424e75['internalroute'][_0x33e007('0x24b7')],'priority':_0x3cff5d[_0x33e007('0x2530')][_0x33e007('0x577')]+_0x27fc62+_0x120dc2++,'VoiceExtensionId':_0x424e75[_0x33e007('0x26e3')]['id']})):(_0x153bfe[_0x33e007('0x206c')]({'type':_0x3cff5d['type'][_0x33e007('0xac2')](),'app':_0x33e007('0x23e8'),'appdata':_0x33e007('0x5a9'),'context':_0x424e75[_0x33e007('0x26e3')][_0x33e007('0x244c')],'exten':_0x424e75[_0x33e007('0x26e3')][_0x33e007('0x24b7')],'priority':_0x3cff5d[_0x33e007('0x2530')][_0x33e007('0x577')]+_0x27fc62+_0x120dc2++,'VoiceExtensionId':_0x424e75[_0x33e007('0x26e3')]['id']}),_0x153bfe[_0x33e007('0x206c')]({'type':_0x3cff5d['type'][_0x33e007('0xac2')](),'app':_0x33e007('0x1bae'),'appdata':_0x33e007('0x20b1'),'context':_0x424e75[_0x33e007('0x26e3')][_0x33e007('0x244c')],'exten':_0x424e75[_0x33e007('0x26e3')][_0x33e007('0x24b7')],'priority':_0x3cff5d[_0x33e007('0x2530')][_0x33e007('0x577')]+_0x27fc62+_0x120dc2++,'VoiceExtensionId':_0x424e75[_0x33e007('0x26e3')]['id']}))));for(var _0x53bf96=0x0;_0x53bf96<_0x3cff5d[_0x33e007('0x2530')][_0x33e007('0x577')];_0x53bf96++){var _0x6908a5=_0x27fc62+_0x3cff5d[_0x33e007('0x2530')]['length'],_0x5578b2=_0x53bf96===_0x3cff5d[_0x33e007('0x2530')][_0x33e007('0x577')]-0x1?_0x27fc62+_0x153bfe[_0x33e007('0x577')]+_0x2f5199[_0x33e007('0x577')]+0x2:_0x27fc62+_0x53bf96+0x1;_0x153bfe[_0x33e007('0xafe')](_0x53bf96,0x0,{'type':_0x33e007('0x201f'),'app':'GotoIfTime','appdata':_0x3cff5d[_0x33e007('0x2530')][_0x53bf96]+'?'+_0x424e75['internalroute'][_0x33e007('0x244c')]+_0x33e007('0x1336')+_0x6908a5+':'+_0x424e75[_0x33e007('0x26e3')]['context']+_0x33e007('0x1336')+_0x5578b2,'exten':_0x424e75[_0x33e007('0x26e3')][_0x33e007('0x24b7')],'context':_0x424e75[_0x33e007('0x26e3')][_0x33e007('0x244c')],'priority':_0x27fc62+_0x53bf96,'VoiceExtensionId':_0x424e75['internalroute']['id']});}_0x3cff5d['priority']=_0x153bfe[_0x33e007('0x577')]?_0x86640f()['last'](_0x153bfe)[_0x33e007('0xbe5')]+0x1:_0x27fc62,_0x27fc62=(_0x2f5199[_0x33e007('0x577')]?_0x86640f()[_0x33e007('0x25d5')](_0x2f5199)[_0x33e007('0xbe5')]:_0x3cff5d[_0x33e007('0xbe5')])+0x1,_0xcfc927=_0x86640f()[_0x33e007('0x1877')](_0xcfc927,_0x153bfe,[_0x3cff5d],_0x2f5199);}_0xcfc927[_0x33e007('0x206c')]({'type':_0x33e007('0x201f'),'app':_0x33e007('0x224'),'exten':_0x424e75['internalroute'][_0x33e007('0x24b7')],'context':_0x424e75[_0x33e007('0x26e3')][_0x33e007('0x244c')],'priority':_0x27fc62,'VoiceExtensionId':_0x424e75[_0x33e007('0x26e3')]['id']}),_0x47c57c[_0x33e007('0x1b0c')]['addApplications']({'id':_0x424e75[_0x33e007('0x26e3')]['id']},_0x86640f()[_0x33e007('0x203e')](_0xcfc927,_0x33e007('0xbe5')))[_0x33e007('0x1376')][_0x33e007('0x21ad')](function(_0x386da5){var _0x15a0b1=_0x33e007;_0x424e75[_0x15a0b1('0x2257')][_0x15a0b1('0x1b33')]=_0x386da5['rows'];})['catch'](function(_0xa509e4){var _0x1c5bb2=_0x33e007;console[_0x1c5bb2('0x2092')](_0xa509e4);});}function _0x6b788b(_0x50907f){var _0x24ac8d=_0x1e6220;_0x424e75[_0x24ac8d('0x2257')]=_0x50907f||{'count':0x0,'rows':[]};}function _0x2b1bee(){var _0x33313d=_0x1e6220;return _0x47c57c[_0x33313d('0xa07')][_0x33313d('0x595')]({'fields':_0x33313d('0x7b5')})[_0x33313d('0x1376')][_0x33313d('0x21ad')](function(_0x4c91ec){var _0x38cf8e=_0x33313d;_0x424e75[_0x38cf8e('0x2530')]=_0x4c91ec;})['catch'](function(_0x6611cc){var _0x243a9e=_0x33313d;console[_0x243a9e('0x2092')](_0x6611cc);});}function _0x313973(){var _0x3e686b=_0x1e6220;_0x424e75[_0x3e686b('0x71b')]=_0x47c57c[_0x3e686b('0x1b0c')][_0x3e686b('0x595')](_0x424e75[_0x3e686b('0x77')],_0x6b788b)[_0x3e686b('0x1376')];}function _0x2f9da3(_0x3a61fc){var _0x4ada19=_0x1e6220;_0x86640f()[_0x4ada19('0x16a2')](_0x424e75[_0x4ada19('0x2257')]['rows'],{'id':_0x3a61fc['id']}),_0x3d0bf7(),_0x177925[_0x4ada19('0xdb1')]({'title':_0x4ada19('0x1922'),'msg':_0x3a61fc[_0x4ada19('0x1f94')]?_0x3a61fc[_0x4ada19('0x1f94')]+_0x4ada19('0xb4a'):''});}function _0x17b1ae(_0x5b18b8){var _0x381fbc=_0x1e6220,_0xd7df21=_0x5e9c68[_0x381fbc('0xa33')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?')[_0x381fbc('0x276b')](_0x381fbc('0x622')+_0x424e75[_0x381fbc('0x1949')][_0x381fbc('0x577')]+'\x20selected'+_0x381fbc('0x25e0'))[_0x381fbc('0x7a7')]('delete\x20applications')['targetEvent'](_0x5b18b8)['ok']('OK')[_0x381fbc('0x3b5')](_0x381fbc('0x284b'));_0x5e9c68[_0x381fbc('0x853')](_0xd7df21)[_0x381fbc('0x21ad')](function(){var _0xcea6e0=_0x381fbc;_0x424e75[_0xcea6e0('0x1949')][_0xcea6e0('0x1a52')](function(_0x5d69a7){var _0x1a3c50=_0xcea6e0;_0x86640f()[_0x1a3c50('0x16a2')](_0x424e75[_0x1a3c50('0x2257')][_0x1a3c50('0x1b33')],{'id':_0x5d69a7['id']});}),_0x424e75[_0xcea6e0('0x1949')]=[],_0x3d0bf7();});}}const _0x43e4a4=_0x3f6a6f;_0x33d142['$inject']=['$mdDialog','$q',_0x3877e3('0x1908'),'internalrouteApp',_0x3877e3('0x26e3'),'api','Auth',_0x3877e3('0x5ed')];function _0x33d142(_0x832287,_0x404ff3,_0x76122e,_0x2e609a,_0x192c64,_0x507b1c,_0x21172d,_0x197c19){var _0x47367b=_0x3877e3,_0x3b9502=this;_0x3b9502[_0x47367b('0x123f')]=_0x21172d['getCurrentUser'](),_0x3b9502[_0x47367b('0x1a69')]=[],_0x3b9502[_0x47367b('0x4b4')]=_0x47367b('0x1b79')+(_0x2e609a[_0x47367b('0x522')]||_0x2e609a[_0x47367b('0x1f94')])[_0x47367b('0x2e8')](),_0x3b9502[_0x47367b('0x2356')]=angular[_0x47367b('0xd75')](_0x2e609a),_0x3b9502['crudPermissions']=_0x197c19,_0x3b9502[_0x47367b('0x126a')]={};if(_0x3b9502['agi']['appdata'])switch(_0x3b9502[_0x47367b('0x2356')][_0x47367b('0x522')]?_0x3b9502[_0x47367b('0x2356')][_0x47367b('0x522')]['toLowerCase']():_0x3b9502['agi'][_0x47367b('0x1f94')][_0x47367b('0xac2')]()){case _0x47367b('0xf50'):break;case _0x47367b('0xc72'):{var _0x5ab09d=_0x3b9502['agi'][_0x47367b('0x23c2')][_0x47367b('0x1af5')](',');_0x3b9502['agi']['key']=_0x5ab09d[0x0],_0x3b9502[_0x47367b('0x2356')]['language']=_0x5ab09d[0x1],_0x3b9502[_0x47367b('0x2356')][_0x47367b('0x1cce')]=_0x5ab09d[_0x47367b('0xb3d')](0x2,_0x5ab09d[_0x47367b('0x577')])[_0x47367b('0x136')](',');}break;case _0x47367b('0x1c22'):{var _0x205456=_0x3b9502[_0x47367b('0x2356')][_0x47367b('0x23c2')][_0x47367b('0x1af5')](',');_0x3b9502[_0x47367b('0x2356')][_0x47367b('0x21c6')]=_0x205456[0x0],_0x3b9502[_0x47367b('0x2356')][_0x47367b('0x797')]=_0x205456[0x1],_0x3b9502[_0x47367b('0x2356')][_0x47367b('0x20a3')]=_0x205456[0x2],_0x3b9502['agi']['botname']=_0x205456[0x3],_0x3b9502[_0x47367b('0x2356')]['welcomemessage']=_0x205456[_0x47367b('0xb3d')](0x4,_0x205456[_0x47367b('0x577')])['join'](',');}break;case _0x47367b('0x1b98'):{var _0x503890=_0x3b9502['agi'][_0x47367b('0x23c2')][_0x47367b('0x1af5')](',');_0x3b9502[_0x47367b('0x2356')]['times']=isNaN(_0x503890[0x0])?_0x503890[0x0]:parseInt(_0x503890[0x0],0xa),_0x3b9502[_0x47367b('0x2356')]['text']=_0x503890['slice'](0x1,_0x503890[_0x47367b('0x577')])['join'](',');}break;case _0x47367b('0x1224'):_0x3b9502[_0x47367b('0x2356')]['text']=_0x3b9502[_0x47367b('0x2356')][_0x47367b('0x23c2')];break;case'set':_0x3b9502['agi'][_0x47367b('0x19fe')]=_0x3b9502[_0x47367b('0x2356')]['appdata'][_0x47367b('0x1af5')]('=')[0x0],_0x3b9502[_0x47367b('0x2356')][_0x47367b('0x2228')]=_0x3b9502[_0x47367b('0x2356')]['appdata'][_0x47367b('0x1af5')]('=')[0x1];break;case'agi':_0x3b9502[_0x47367b('0x2356')][_0x47367b('0xbf8')]=_0x3b9502[_0x47367b('0x2356')][_0x47367b('0x23c2')];break;default:{var _0x40d8aa=_0x3b9502[_0x47367b('0x2356')]['appdata']['split'](',');_0x3b9502[_0x47367b('0x2356')][_0x47367b('0xbf8')]=_0x86640f()[_0x47367b('0x23aa')](_0x40d8aa[0x0])?_0x40d8aa[0x0]:isNaN(_0x40d8aa[0x0])?_0x40d8aa[0x0]:parseInt(_0x40d8aa[0x0],0xa);}break;}else{}_0x3b9502[_0x47367b('0x2356')]['type']&&_0x3b9502[_0x47367b('0x2356')][_0x47367b('0x7fa')][_0x47367b('0xac2')]()==='outbound'&&_0x3b9502['agi'][_0x47367b('0x522')][_0x47367b('0xac2')]()===_0x47367b('0x2363')&&(_0x3b9502[_0x47367b('0x2356')][_0x47367b('0x1995')]=_0x3b9502[_0x47367b('0x2356')][_0x47367b('0x159e')]?_0x3b9502[_0x47367b('0x2356')]['phone']['split']('$')[0x0]:undefined,_0x3b9502[_0x47367b('0x2356')]['callerId']=_0x3b9502[_0x47367b('0x2356')][_0x47367b('0x1f5a')]?_0x47367b('0x587')+_0x3b9502[_0x47367b('0x2356')]['callerID']:undefined);_0x3b9502[_0x47367b('0x1057')]=_0x5762e2,_0x3b9502[_0x47367b('0x167')]=_0x8f563f,_0x21172d[_0x47367b('0x21de')](_0x47367b('0x1bd8'))?_0x507b1c[_0x47367b('0x1a41')][_0x47367b('0x595')]({'fields':_0x47367b('0x1aa8'),'sort':_0x47367b('0x19fe'),'nolimit':_0x47367b('0x19bd')})[_0x47367b('0x1376')][_0x47367b('0x21ad')](function(_0xe6ee00){var _0x27ef22=_0x47367b;_0x3b9502[_0x27ef22('0xc0f')]=_0xe6ee00[_0x27ef22('0x1b33')]||[];})[_0x47367b('0x1c1d')](function(_0x23584b){var _0x34cdb5=_0x47367b;_0x76122e[_0x34cdb5('0x2092')]({'title':_0x23584b[_0x34cdb5('0x209')]?'API:'+_0x23584b[_0x34cdb5('0x209')]+'\x20-\x20'+_0x23584b[_0x34cdb5('0x1808')]:_0x34cdb5('0xca2'),'msg':_0x23584b[_0x34cdb5('0x11c2')]?JSON[_0x34cdb5('0x25e')](_0x23584b[_0x34cdb5('0x11c2')]):_0x23584b[_0x34cdb5('0x174f')]()});}):_0x507b1c[_0x47367b('0x1a41')][_0x47367b('0x595')]({'fields':_0x47367b('0x1aa8'),'sort':_0x47367b('0x19fe'),'nolimit':_0x47367b('0x19bd')})[_0x47367b('0x1376')][_0x47367b('0x21ad')](function(_0x545f05){var _0x78d1af=_0x47367b;_0x3b9502[_0x78d1af('0xc0f')]=_0x545f05[_0x78d1af('0x1b33')]||[];})['then'](function(){var _0x261107=_0x47367b;return _0x507b1c[_0x261107('0xab4')][_0x261107('0x595')]({'userProfileId':_0x3b9502[_0x261107('0x123f')][_0x261107('0x1618')],'sectionId':0x44f})['$promise'];})['then'](function(_0x723a81){var _0x142e3e=_0x47367b,_0x1c0440=_0x723a81&&_0x723a81['rows']?_0x723a81[_0x142e3e('0x1b33')][0x0]:null;if(!_0x1c0440){var _0x1f5ccc=[],_0x5d16a1=null;_0x3b9502['agi']&&(_0x5d16a1=_0x86640f()['find'](_0x3b9502[_0x142e3e('0xc0f')],{'name':_0x3b9502[_0x142e3e('0x2356')][_0x142e3e('0xbf8')]}));for(var _0x3f09e8=0x0;_0x3f09e8<_0x3b9502[_0x142e3e('0xc0f')]['length'];_0x3f09e8++){_0x5d16a1&&_0x3b9502[_0x142e3e('0xc0f')][_0x3f09e8]['id']===_0x5d16a1['id']&&(_0x3b9502['projects'][_0x3f09e8][_0x142e3e('0xba')]=![],_0x1f5ccc[_0x142e3e('0x206c')](_0x3b9502[_0x142e3e('0xc0f')][_0x3f09e8]));}_0x3b9502[_0x142e3e('0xc0f')]=_0x1f5ccc;}else{if(!_0x1c0440[_0x142e3e('0x80c')])return _0x507b1c['userProfileResource'][_0x142e3e('0x595')]({'sectionId':_0x1c0440['id']})[_0x142e3e('0x1376')][_0x142e3e('0x21ad')](function(_0x8ebe46){var _0x44f1c6=_0x142e3e,_0x213a15=_0x86640f()[_0x44f1c6('0x26c3')](_0x8ebe46[_0x44f1c6('0x1b33')],function(_0x4d8489){var _0x1a8bc5=_0x44f1c6;return _0x86640f()['find'](_0x3b9502[_0x1a8bc5('0xc0f')],{'id':_0x4d8489[_0x1a8bc5('0x675')]});}),_0x2f1f6e=null;_0x3b9502[_0x44f1c6('0x2356')]&&(_0x2f1f6e=_0x86640f()[_0x44f1c6('0x1d2e')](_0x3b9502[_0x44f1c6('0xc0f')],{'name':_0x3b9502['agi']['project']}));if(_0x2f1f6e&&!_0x86640f()[_0x44f1c6('0x2664')](_0x213a15,['id',_0x2f1f6e['id']])){var _0x16688c=_0x86640f()['find'](_0x3b9502[_0x44f1c6('0xc0f')],{'id':_0x2f1f6e['id']});_0x16688c[_0x44f1c6('0xba')]=![],_0x213a15[_0x44f1c6('0x206c')](_0x16688c);}_0x3b9502['projects']=_0x213a15;});}})[_0x47367b('0x1c1d')](function(_0x57cadf){var _0x4c24b6=_0x47367b;_0x76122e['error']({'title':_0x57cadf['status']?_0x4c24b6('0x22d')+_0x57cadf['status']+_0x4c24b6('0xa99')+_0x57cadf['statusText']:_0x4c24b6('0x1859'),'msg':_0x57cadf[_0x4c24b6('0x11c2')]?JSON[_0x4c24b6('0x25e')](_0x57cadf['data']):_0x57cadf['toString']()});});function _0x5762e2(){var _0x425aaa=_0x47367b;_0x3b9502[_0x425aaa('0x1a69')]=[];var _0x9f3574=[];_0x3b9502[_0x425aaa('0x2356')]['type']&&_0x3b9502[_0x425aaa('0x2356')][_0x425aaa('0x7fa')][_0x425aaa('0xac2')]()===_0x425aaa('0x2300')&&_0x3b9502['agi'][_0x425aaa('0x522')]===_0x425aaa('0x4ea')&&(_0x3b9502[_0x425aaa('0x2356')][_0x425aaa('0x159e')]=_0x192c64[_0x425aaa('0x988')]?(_0x3b9502[_0x425aaa('0x2356')][_0x425aaa('0x1995')]||'')+_0x425aaa('0x349')+_0x192c64['cutdigits']+'}':(_0x3b9502['agi']['prefix']||'')+_0x425aaa('0x2560'),_0x192c64[_0x425aaa('0xad1')]!==_0x425aaa('0x983')?_0x3b9502[_0x425aaa('0x2356')][_0x425aaa('0x26a0')][_0x425aaa('0x2004')](_0x425aaa('0x478'))<0x0&&(_0x3b9502[_0x425aaa('0x2356')][_0x425aaa('0x26a0')]+=_0x425aaa('0x478')):_0x3b9502[_0x425aaa('0x2356')][_0x425aaa('0x26a0')]=_0x3b9502[_0x425aaa('0x2356')][_0x425aaa('0x26a0')]['replace'](_0x425aaa('0x478'),''));if(_0x3b9502[_0x425aaa('0x2356')][_0x425aaa('0x522')]&&_0x3b9502[_0x425aaa('0x2356')][_0x425aaa('0x522')]===_0x425aaa('0xf50')){}else switch((_0x3b9502[_0x425aaa('0x2356')]['app']||_0x3b9502[_0x425aaa('0x2356')][_0x425aaa('0x522')])[_0x425aaa('0xac2')]()){case _0x425aaa('0x1125'):_0x3b9502['agi'][_0x425aaa('0x23c2')]=_0x3b9502['agi'][_0x425aaa('0x19fe')]+'='+_0x3b9502['agi'][_0x425aaa('0x2228')];break;case _0x425aaa('0xf50'):break;default:_0x9f3574[0x0]=_0x3b9502[_0x425aaa('0x2356')][_0x425aaa('0xbf8')],_0x3b9502['agi'][_0x425aaa('0x23c2')]=_0x9f3574['join'](',');}_0x8f563f(_0x3b9502['agi']);}function _0x8f563f(_0x4b3aee){var _0x3dde58=_0x47367b;_0x832287[_0x3dde58('0x1c24')](_0x4b3aee);}}const _0x2b5322=_0x33d142;_0xbb39f9['$inject']=[_0x3877e3('0x1850'),'$q','toasty',_0x3877e3('0x97d'),_0x3877e3('0x26e3'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0xbb39f9(_0x43f01b,_0x16142d,_0x4da35b,_0x12caf9,_0x4337e4,_0x218142,_0x5a96be,_0x34fde4){var _0xbdf834=_0x3877e3,_0x2625df=this;_0x2625df[_0xbdf834('0x123f')]=_0x5a96be['getCurrentUser'](),_0x2625df[_0xbdf834('0x1a69')]=[],_0x2625df['title']=_0xbdf834('0x1b79')+(_0x12caf9[_0xbdf834('0x522')]||_0x12caf9['app'])[_0xbdf834('0x2e8')](),_0x2625df['custom']=angular['copy'](_0x12caf9),_0x2625df[_0xbdf834('0x5ed')]=_0x34fde4,_0x2625df[_0xbdf834('0x126a')]={};if(_0x2625df[_0xbdf834('0xf50')][_0xbdf834('0x23c2')])switch(_0x2625df[_0xbdf834('0xf50')][_0xbdf834('0x522')]?_0x2625df[_0xbdf834('0xf50')]['appType'][_0xbdf834('0xac2')]():_0x2625df['custom'][_0xbdf834('0x1f94')][_0xbdf834('0xac2')]()){case'custom':break;case'dialogflow':{var _0x4b52d2=_0x2625df['custom'][_0xbdf834('0x23c2')][_0xbdf834('0x1af5')](',');_0x2625df[_0xbdf834('0xf50')]['key']=_0x4b52d2[0x0],_0x2625df['custom'][_0xbdf834('0x10f')]=_0x4b52d2[0x1],_0x2625df[_0xbdf834('0xf50')]['welcomemessage']=_0x4b52d2[_0xbdf834('0xb3d')](0x2,_0x4b52d2[_0xbdf834('0x577')])[_0xbdf834('0x136')](',');}break;case _0xbdf834('0x1c22'):{var _0x42efc0=_0x2625df[_0xbdf834('0xf50')][_0xbdf834('0x23c2')][_0xbdf834('0x1af5')](',');_0x2625df[_0xbdf834('0xf50')]['accesskeyid']=_0x42efc0[0x0],_0x2625df[_0xbdf834('0xf50')][_0xbdf834('0x797')]=_0x42efc0[0x1],_0x2625df['custom'][_0xbdf834('0x20a3')]=_0x42efc0[0x2],_0x2625df[_0xbdf834('0xf50')][_0xbdf834('0x15fe')]=_0x42efc0[0x3],_0x2625df[_0xbdf834('0xf50')]['welcomemessage']=_0x42efc0[_0xbdf834('0xb3d')](0x4,_0x42efc0[_0xbdf834('0x577')])[_0xbdf834('0x136')](',');}break;case _0xbdf834('0x1b98'):{var _0x343f=_0x2625df['custom'][_0xbdf834('0x23c2')][_0xbdf834('0x1af5')](',');_0x2625df[_0xbdf834('0xf50')][_0xbdf834('0x13b6')]=isNaN(_0x343f[0x0])?_0x343f[0x0]:parseInt(_0x343f[0x0],0xa),_0x2625df[_0xbdf834('0xf50')]['text']=_0x343f[_0xbdf834('0xb3d')](0x1,_0x343f['length'])[_0xbdf834('0x136')](',');}break;case _0xbdf834('0x1224'):_0x2625df[_0xbdf834('0xf50')][_0xbdf834('0xc1e')]=_0x2625df[_0xbdf834('0xf50')][_0xbdf834('0x23c2')];break;case _0xbdf834('0x1125'):_0x2625df['custom']['name']=_0x2625df['custom'][_0xbdf834('0x23c2')][_0xbdf834('0x1af5')]('=')[0x0],_0x2625df[_0xbdf834('0xf50')][_0xbdf834('0x2228')]=_0x2625df['custom'][_0xbdf834('0x23c2')][_0xbdf834('0x1af5')]('=')[0x1];break;case _0xbdf834('0x2356'):_0x2625df[_0xbdf834('0xf50')][_0xbdf834('0xbf8')]=_0x2625df[_0xbdf834('0xf50')][_0xbdf834('0x23c2')];break;default:{var _0x325f9f=_0x2625df[_0xbdf834('0xf50')][_0xbdf834('0x23c2')][_0xbdf834('0x1af5')](',');_0x2625df[_0xbdf834('0xf50')]['app']=_0x86640f()[_0xbdf834('0x23aa')](_0x325f9f[0x0])?_0x325f9f[0x0]:isNaN(_0x325f9f[0x0])?_0x325f9f[0x0]:parseInt(_0x325f9f[0x0],0xa),_0x2625df['custom'][_0xbdf834('0x23c2')]=_0x86640f()[_0xbdf834('0x23aa')](_0x325f9f[0x1])?_0x325f9f[0x1]:isNaN(_0x325f9f[0x1])?_0x325f9f[0x1]:parseInt(_0x325f9f[0x1],0xa);}break;}else{}_0x2625df['custom'][_0xbdf834('0x7fa')]&&_0x2625df[_0xbdf834('0xf50')][_0xbdf834('0x7fa')][_0xbdf834('0xac2')]()===_0xbdf834('0x2300')&&_0x2625df[_0xbdf834('0xf50')][_0xbdf834('0x522')][_0xbdf834('0xac2')]()===_0xbdf834('0x2363')&&(_0x2625df['custom'][_0xbdf834('0x1995')]=_0x2625df[_0xbdf834('0xf50')][_0xbdf834('0x159e')]?_0x2625df[_0xbdf834('0xf50')][_0xbdf834('0x159e')][_0xbdf834('0x1af5')]('$')[0x0]:undefined,_0x2625df['custom'][_0xbdf834('0x26f7')]=_0x2625df[_0xbdf834('0xf50')][_0xbdf834('0x1f5a')]?'CALLERID(all)='+_0x2625df[_0xbdf834('0xf50')][_0xbdf834('0x1f5a')]:undefined);_0x2625df['saveInternalRouteApp']=_0x464662,_0x2625df[_0xbdf834('0x167')]=_0x5a461f;function _0x464662(){var _0x21d206=_0xbdf834;_0x2625df[_0x21d206('0x1a69')]=[];var _0x5daa44=[];_0x2625df['custom'][_0x21d206('0x7fa')]&&_0x2625df['custom']['type'][_0x21d206('0xac2')]()===_0x21d206('0x2300')&&_0x2625df[_0x21d206('0xf50')][_0x21d206('0x522')]===_0x21d206('0x4ea')&&(_0x2625df[_0x21d206('0xf50')][_0x21d206('0x159e')]=_0x4337e4[_0x21d206('0x988')]?(_0x2625df[_0x21d206('0xf50')][_0x21d206('0x1995')]||'')+_0x21d206('0x349')+_0x4337e4[_0x21d206('0x988')]+'}':(_0x2625df[_0x21d206('0xf50')]['prefix']||'')+_0x21d206('0x2560'),_0x4337e4[_0x21d206('0xad1')]!==_0x21d206('0x983')?_0x2625df[_0x21d206('0xf50')][_0x21d206('0x26a0')][_0x21d206('0x2004')](_0x21d206('0x478'))<0x0&&(_0x2625df[_0x21d206('0xf50')][_0x21d206('0x26a0')]+=_0x21d206('0x478')):_0x2625df['custom'][_0x21d206('0x26a0')]=_0x2625df[_0x21d206('0xf50')]['options'][_0x21d206('0x16e4')](_0x21d206('0x478'),''));if(_0x2625df[_0x21d206('0xf50')]['appType']&&_0x2625df['custom'][_0x21d206('0x522')]===_0x21d206('0xf50')){}else switch((_0x2625df['custom'][_0x21d206('0x1f94')]||_0x2625df[_0x21d206('0xf50')]['appType'])[_0x21d206('0xac2')]()){case _0x21d206('0x1125'):_0x2625df['custom'][_0x21d206('0x23c2')]=_0x2625df[_0x21d206('0xf50')][_0x21d206('0x19fe')]+'='+_0x2625df['custom'][_0x21d206('0x2228')];break;case _0x21d206('0xf50'):break;default:_0x5daa44[0x0]=_0x2625df[_0x21d206('0xf50')][_0x21d206('0x1f94')],_0x5daa44[0x1]=_0x2625df[_0x21d206('0xf50')]['appdata'],_0x2625df['custom']['appdata']=_0x5daa44[_0x21d206('0x136')](',');}_0x5a461f(_0x2625df['custom']);}function _0x5a461f(_0x3d4c16){var _0x107b4b=_0xbdf834;_0x43f01b[_0x107b4b('0x1c24')](_0x3d4c16);}}const _0x3255dc=_0xbb39f9;_0x1c5b7b[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x97d'),_0x3877e3('0x26e3'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x1c5b7b(_0x13c055,_0x1473c8,_0x3fb2e0,_0x70dd41,_0x275bce,_0x4176e0,_0x292b55,_0x382918){var _0xcb1fee=_0x3877e3,_0x7aaa1e=this;_0x7aaa1e['currentUser']=_0x292b55[_0xcb1fee('0x15ed')](),_0x7aaa1e[_0xcb1fee('0x1a69')]=[],_0x7aaa1e['title']='VOICE.EDIT_'+(_0x70dd41[_0xcb1fee('0x522')]||_0x70dd41[_0xcb1fee('0x1f94')])[_0xcb1fee('0x2e8')](),_0x7aaa1e[_0xcb1fee('0x25a3')]=angular[_0xcb1fee('0xd75')](_0x70dd41),_0x7aaa1e[_0xcb1fee('0x5ed')]=_0x382918,_0x7aaa1e['hasModulePermissions']={};if(_0x7aaa1e[_0xcb1fee('0x25a3')][_0xcb1fee('0x23c2')])switch(_0x7aaa1e['dial']['appType']?_0x7aaa1e[_0xcb1fee('0x25a3')][_0xcb1fee('0x522')][_0xcb1fee('0xac2')]():_0x7aaa1e[_0xcb1fee('0x25a3')][_0xcb1fee('0x1f94')][_0xcb1fee('0xac2')]()){case'custom':break;case _0xcb1fee('0xc72'):{var _0x16d0e8=_0x7aaa1e[_0xcb1fee('0x25a3')]['appdata']['split'](',');_0x7aaa1e[_0xcb1fee('0x25a3')][_0xcb1fee('0xddb')]=_0x16d0e8[0x0],_0x7aaa1e['dial'][_0xcb1fee('0x10f')]=_0x16d0e8[0x1],_0x7aaa1e['dial']['welcomemessage']=_0x16d0e8[_0xcb1fee('0xb3d')](0x2,_0x16d0e8[_0xcb1fee('0x577')])[_0xcb1fee('0x136')](',');}break;case _0xcb1fee('0x1c22'):{var _0x45d4ba=_0x7aaa1e['dial'][_0xcb1fee('0x23c2')][_0xcb1fee('0x1af5')](',');_0x7aaa1e[_0xcb1fee('0x25a3')][_0xcb1fee('0x21c6')]=_0x45d4ba[0x0],_0x7aaa1e[_0xcb1fee('0x25a3')]['secretaccesskey']=_0x45d4ba[0x1],_0x7aaa1e[_0xcb1fee('0x25a3')][_0xcb1fee('0x20a3')]=_0x45d4ba[0x2],_0x7aaa1e['dial']['botname']=_0x45d4ba[0x3],_0x7aaa1e[_0xcb1fee('0x25a3')]['welcomemessage']=_0x45d4ba[_0xcb1fee('0xb3d')](0x4,_0x45d4ba[_0xcb1fee('0x577')])['join'](',');}break;case _0xcb1fee('0x1b98'):{var _0x162b8d=_0x7aaa1e[_0xcb1fee('0x25a3')][_0xcb1fee('0x23c2')][_0xcb1fee('0x1af5')](',');_0x7aaa1e[_0xcb1fee('0x25a3')][_0xcb1fee('0x13b6')]=isNaN(_0x162b8d[0x0])?_0x162b8d[0x0]:parseInt(_0x162b8d[0x0],0xa),_0x7aaa1e[_0xcb1fee('0x25a3')][_0xcb1fee('0xc1e')]=_0x162b8d[_0xcb1fee('0xb3d')](0x1,_0x162b8d[_0xcb1fee('0x577')])['join'](',');}break;case _0xcb1fee('0x1224'):_0x7aaa1e[_0xcb1fee('0x25a3')][_0xcb1fee('0xc1e')]=_0x7aaa1e[_0xcb1fee('0x25a3')][_0xcb1fee('0x23c2')];break;case _0xcb1fee('0x1125'):_0x7aaa1e[_0xcb1fee('0x25a3')][_0xcb1fee('0x19fe')]=_0x7aaa1e[_0xcb1fee('0x25a3')]['appdata'][_0xcb1fee('0x1af5')]('=')[0x0],_0x7aaa1e[_0xcb1fee('0x25a3')][_0xcb1fee('0x2228')]=_0x7aaa1e[_0xcb1fee('0x25a3')][_0xcb1fee('0x23c2')][_0xcb1fee('0x1af5')]('=')[0x1];break;case'agi':_0x7aaa1e['dial'][_0xcb1fee('0xbf8')]=_0x7aaa1e[_0xcb1fee('0x25a3')][_0xcb1fee('0x23c2')];break;default:{var _0x901467=_0x7aaa1e[_0xcb1fee('0x25a3')][_0xcb1fee('0x23c2')][_0xcb1fee('0x1af5')](',');_0x7aaa1e[_0xcb1fee('0x25a3')][_0xcb1fee('0x1ee1')]=_0x86640f()[_0xcb1fee('0x23aa')](_0x901467[0x0])?_0x901467[0x0]:isNaN(_0x901467[0x0])?_0x901467[0x0]:parseInt(_0x901467[0x0],0xa),_0x7aaa1e[_0xcb1fee('0x25a3')][_0xcb1fee('0x2133')]=_0x86640f()['isEmpty'](_0x901467[0x1])?_0x901467[0x1]:isNaN(_0x901467[0x1])?_0x901467[0x1]:parseInt(_0x901467[0x1],0xa),_0x7aaa1e[_0xcb1fee('0x25a3')][_0xcb1fee('0x26a0')]=_0x86640f()[_0xcb1fee('0x23aa')](_0x901467[0x2])?_0x901467[0x2]:isNaN(_0x901467[0x2])?_0x901467[0x2]:parseInt(_0x901467[0x2],0xa),_0x7aaa1e['dial'][_0xcb1fee('0x770')]=_0x86640f()[_0xcb1fee('0x23aa')](_0x901467[0x3])?_0x901467[0x3]:isNaN(_0x901467[0x3])?_0x901467[0x3]:parseInt(_0x901467[0x3],0xa);}break;}else{}_0x7aaa1e['dial']['type']&&_0x7aaa1e['dial'][_0xcb1fee('0x7fa')][_0xcb1fee('0xac2')]()===_0xcb1fee('0x2300')&&_0x7aaa1e[_0xcb1fee('0x25a3')][_0xcb1fee('0x522')][_0xcb1fee('0xac2')]()==='outbounddial'&&(_0x7aaa1e[_0xcb1fee('0x25a3')]['prefix']=_0x7aaa1e['dial'][_0xcb1fee('0x159e')]?_0x7aaa1e[_0xcb1fee('0x25a3')][_0xcb1fee('0x159e')][_0xcb1fee('0x1af5')]('$')[0x0]:undefined,_0x7aaa1e[_0xcb1fee('0x25a3')][_0xcb1fee('0x26f7')]=_0x7aaa1e['dial']['callerID']?_0xcb1fee('0x587')+_0x7aaa1e[_0xcb1fee('0x25a3')][_0xcb1fee('0x1f5a')]:undefined);_0x7aaa1e[_0xcb1fee('0x1057')]=_0x5792e7,_0x7aaa1e[_0xcb1fee('0x167')]=_0x57f5f2;function _0x5792e7(){var _0x343e16=_0xcb1fee;_0x7aaa1e[_0x343e16('0x1a69')]=[];var _0x186641=[];_0x7aaa1e[_0x343e16('0x25a3')]['type']&&_0x7aaa1e[_0x343e16('0x25a3')][_0x343e16('0x7fa')][_0x343e16('0xac2')]()===_0x343e16('0x2300')&&_0x7aaa1e[_0x343e16('0x25a3')][_0x343e16('0x522')]===_0x343e16('0x4ea')&&(_0x7aaa1e[_0x343e16('0x25a3')][_0x343e16('0x159e')]=_0x275bce[_0x343e16('0x988')]?(_0x7aaa1e[_0x343e16('0x25a3')][_0x343e16('0x1995')]||'')+_0x343e16('0x349')+_0x275bce['cutdigits']+'}':(_0x7aaa1e[_0x343e16('0x25a3')][_0x343e16('0x1995')]||'')+_0x343e16('0x2560'),_0x275bce[_0x343e16('0xad1')]!==_0x343e16('0x983')?_0x7aaa1e[_0x343e16('0x25a3')][_0x343e16('0x26a0')][_0x343e16('0x2004')](_0x343e16('0x478'))<0x0&&(_0x7aaa1e[_0x343e16('0x25a3')][_0x343e16('0x26a0')]+='U(xcally-mixmonitor-context)'):_0x7aaa1e[_0x343e16('0x25a3')][_0x343e16('0x26a0')]=_0x7aaa1e[_0x343e16('0x25a3')]['options'][_0x343e16('0x16e4')](_0x343e16('0x478'),''));if(_0x7aaa1e[_0x343e16('0x25a3')][_0x343e16('0x522')]&&_0x7aaa1e[_0x343e16('0x25a3')][_0x343e16('0x522')]===_0x343e16('0xf50')){}else switch((_0x7aaa1e[_0x343e16('0x25a3')]['app']||_0x7aaa1e[_0x343e16('0x25a3')][_0x343e16('0x522')])[_0x343e16('0xac2')]()){case _0x343e16('0x1125'):_0x7aaa1e['dial']['appdata']=_0x7aaa1e[_0x343e16('0x25a3')][_0x343e16('0x19fe')]+'='+_0x7aaa1e[_0x343e16('0x25a3')][_0x343e16('0x2228')];break;case _0x343e16('0xf50'):break;default:_0x186641[0x0]=_0x7aaa1e[_0x343e16('0x25a3')][_0x343e16('0x1ee1')],_0x186641[0x1]=_0x7aaa1e['dial']['timeout'],_0x186641[0x2]=_0x7aaa1e[_0x343e16('0x25a3')][_0x343e16('0x26a0')],_0x186641[0x3]=_0x7aaa1e['dial']['url'],_0x7aaa1e[_0x343e16('0x25a3')]['appdata']=_0x186641[_0x343e16('0x136')](',');}_0x57f5f2(_0x7aaa1e[_0x343e16('0x25a3')]);}function _0x57f5f2(_0x2ecb25){var _0x151040=_0xcb1fee;_0x13c055[_0x151040('0x1c24')](_0x2ecb25);}}const _0x57ad9a=_0x1c5b7b;_0x2fbd16[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),'internalrouteApp','internalroute','api',_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x2fbd16(_0x2f7f90,_0x30af9b,_0x23fb2e,_0x257d94,_0x435df0,_0x58f15d,_0x5145f4,_0x1a25c2){var _0x5c9f24=_0x3877e3,_0x4740d8=this;_0x4740d8[_0x5c9f24('0x123f')]=_0x5145f4[_0x5c9f24('0x15ed')](),_0x4740d8[_0x5c9f24('0x1a69')]=[],_0x4740d8[_0x5c9f24('0x4b4')]=_0x5c9f24('0x1b79')+(_0x257d94[_0x5c9f24('0x522')]||_0x257d94[_0x5c9f24('0x1f94')])[_0x5c9f24('0x2e8')](),_0x4740d8[_0x5c9f24('0x1ff6')]=angular[_0x5c9f24('0xd75')](_0x257d94),_0x4740d8[_0x5c9f24('0x5ed')]=_0x1a25c2,_0x4740d8['hasModulePermissions']={};if(_0x4740d8['externaldial'][_0x5c9f24('0x23c2')])switch(_0x4740d8[_0x5c9f24('0x1ff6')]['appType']?_0x4740d8[_0x5c9f24('0x1ff6')][_0x5c9f24('0x522')][_0x5c9f24('0xac2')]():_0x4740d8[_0x5c9f24('0x1ff6')][_0x5c9f24('0x1f94')][_0x5c9f24('0xac2')]()){case'custom':break;case'dialogflow':{var _0x43b2e8=_0x4740d8[_0x5c9f24('0x1ff6')][_0x5c9f24('0x23c2')][_0x5c9f24('0x1af5')](',');_0x4740d8[_0x5c9f24('0x1ff6')]['key']=_0x43b2e8[0x0],_0x4740d8[_0x5c9f24('0x1ff6')]['language']=_0x43b2e8[0x1],_0x4740d8['externaldial'][_0x5c9f24('0x1cce')]=_0x43b2e8[_0x5c9f24('0xb3d')](0x2,_0x43b2e8[_0x5c9f24('0x577')])['join'](',');}break;case _0x5c9f24('0x1c22'):{var _0x5e1a8a=_0x4740d8['externaldial']['appdata'][_0x5c9f24('0x1af5')](',');_0x4740d8[_0x5c9f24('0x1ff6')][_0x5c9f24('0x21c6')]=_0x5e1a8a[0x0],_0x4740d8[_0x5c9f24('0x1ff6')]['secretaccesskey']=_0x5e1a8a[0x1],_0x4740d8[_0x5c9f24('0x1ff6')][_0x5c9f24('0x20a3')]=_0x5e1a8a[0x2],_0x4740d8[_0x5c9f24('0x1ff6')][_0x5c9f24('0x15fe')]=_0x5e1a8a[0x3],_0x4740d8[_0x5c9f24('0x1ff6')][_0x5c9f24('0x1cce')]=_0x5e1a8a['slice'](0x4,_0x5e1a8a['length'])[_0x5c9f24('0x136')](',');}break;case _0x5c9f24('0x1b98'):{var _0xf66bc2=_0x4740d8[_0x5c9f24('0x1ff6')][_0x5c9f24('0x23c2')]['split'](',');_0x4740d8['externaldial'][_0x5c9f24('0x13b6')]=isNaN(_0xf66bc2[0x0])?_0xf66bc2[0x0]:parseInt(_0xf66bc2[0x0],0xa),_0x4740d8[_0x5c9f24('0x1ff6')][_0x5c9f24('0xc1e')]=_0xf66bc2[_0x5c9f24('0xb3d')](0x1,_0xf66bc2[_0x5c9f24('0x577')])[_0x5c9f24('0x136')](',');}break;case _0x5c9f24('0x1224'):_0x4740d8[_0x5c9f24('0x1ff6')]['text']=_0x4740d8[_0x5c9f24('0x1ff6')][_0x5c9f24('0x23c2')];break;case _0x5c9f24('0x1125'):_0x4740d8[_0x5c9f24('0x1ff6')][_0x5c9f24('0x19fe')]=_0x4740d8[_0x5c9f24('0x1ff6')][_0x5c9f24('0x23c2')][_0x5c9f24('0x1af5')]('=')[0x0],_0x4740d8['externaldial'][_0x5c9f24('0x2228')]=_0x4740d8[_0x5c9f24('0x1ff6')][_0x5c9f24('0x23c2')][_0x5c9f24('0x1af5')]('=')[0x1];break;case _0x5c9f24('0x2356'):_0x4740d8['externaldial'][_0x5c9f24('0xbf8')]=_0x4740d8[_0x5c9f24('0x1ff6')][_0x5c9f24('0x23c2')];break;default:{var _0x34fc15=_0x4740d8[_0x5c9f24('0x1ff6')][_0x5c9f24('0x23c2')][_0x5c9f24('0x1af5')](',');_0x4740d8[_0x5c9f24('0x1ff6')]['trunk']=_0x34fc15[0x0][_0x5c9f24('0x1af5')]('/')[0x1],_0x4740d8[_0x5c9f24('0x1ff6')][_0x5c9f24('0x159e')]=_0x34fc15[0x0]['split']('/')[0x2],_0x4740d8[_0x5c9f24('0x1ff6')][_0x5c9f24('0x2133')]=_0x86640f()[_0x5c9f24('0x23aa')](_0x34fc15[0x1])?_0x34fc15[0x1]:isNaN(_0x34fc15[0x1])?_0x34fc15[0x1]:parseInt(_0x34fc15[0x1],0xa),_0x4740d8[_0x5c9f24('0x1ff6')]['options']=_0x86640f()[_0x5c9f24('0x23aa')](_0x34fc15[0x2])?_0x34fc15[0x2]:isNaN(_0x34fc15[0x2])?_0x34fc15[0x2]:parseInt(_0x34fc15[0x2],0xa),_0x4740d8[_0x5c9f24('0x1ff6')][_0x5c9f24('0x770')]=_0x86640f()[_0x5c9f24('0x23aa')](_0x34fc15[0x3])?_0x34fc15[0x3]:isNaN(_0x34fc15[0x3])?_0x34fc15[0x3]:parseInt(_0x34fc15[0x3],0xa);}break;}else{}_0x4740d8['externaldial'][_0x5c9f24('0x7fa')]&&_0x4740d8['externaldial']['type'][_0x5c9f24('0xac2')]()===_0x5c9f24('0x2300')&&_0x4740d8['externaldial'][_0x5c9f24('0x522')][_0x5c9f24('0xac2')]()===_0x5c9f24('0x2363')&&(_0x4740d8['externaldial'][_0x5c9f24('0x1995')]=_0x4740d8[_0x5c9f24('0x1ff6')]['phone']?_0x4740d8[_0x5c9f24('0x1ff6')][_0x5c9f24('0x159e')][_0x5c9f24('0x1af5')]('$')[0x0]:undefined,_0x4740d8['externaldial']['callerId']=_0x4740d8[_0x5c9f24('0x1ff6')][_0x5c9f24('0x1f5a')]?_0x5c9f24('0x587')+_0x4740d8[_0x5c9f24('0x1ff6')][_0x5c9f24('0x1f5a')]:undefined);_0x4740d8[_0x5c9f24('0x1057')]=_0x312694,_0x4740d8[_0x5c9f24('0x167')]=_0x560b9b,_0x5145f4[_0x5c9f24('0x21de')](_0x5c9f24('0x1bd8'))?_0x58f15d[_0x5c9f24('0x1280')]['get']({'fields':_0x5c9f24('0x1aa8'),'sort':'name','nolimit':_0x5c9f24('0x19bd')})['$promise'][_0x5c9f24('0x21ad')](function(_0x4fcf8c){var _0x4950dd=_0x5c9f24;_0x4740d8[_0x4950dd('0x1593')]=_0x4fcf8c['rows']||[];})[_0x5c9f24('0x1c1d')](function(_0x264071){var _0x2f5e50=_0x5c9f24;_0x23fb2e[_0x2f5e50('0x2092')]({'title':_0x264071[_0x2f5e50('0x209')]?_0x2f5e50('0x22d')+_0x264071[_0x2f5e50('0x209')]+_0x2f5e50('0xa99')+_0x264071[_0x2f5e50('0x1808')]:'SYSTEM:GET_TRUNKS','msg':_0x264071[_0x2f5e50('0x11c2')]?JSON['stringify'](_0x264071[_0x2f5e50('0x11c2')]):_0x264071['toString']()});}):_0x58f15d[_0x5c9f24('0x1280')][_0x5c9f24('0x595')]({'fields':'id,name','sort':_0x5c9f24('0x19fe'),'nolimit':_0x5c9f24('0x19bd')})['$promise']['then'](function(_0x7a063a){var _0x132f37=_0x5c9f24;_0x4740d8[_0x132f37('0x1593')]=_0x7a063a[_0x132f37('0x1b33')]||[];})['then'](function(){var _0x5f56a0=_0x5c9f24;return _0x58f15d[_0x5f56a0('0xab4')][_0x5f56a0('0x595')]({'userProfileId':_0x4740d8['currentUser'][_0x5f56a0('0x1618')],'sectionId':0x3f3})[_0x5f56a0('0x1376')];})[_0x5c9f24('0x21ad')](function(_0x5adf8a){var _0x552480=_0x5c9f24,_0x54dfe2=_0x5adf8a&&_0x5adf8a[_0x552480('0x1b33')]?_0x5adf8a[_0x552480('0x1b33')][0x0]:null;if(!_0x54dfe2){var _0x2bab97=[],_0x2d24c8=null;_0x4740d8['externaldial']&&(_0x2d24c8=_0x86640f()['find'](_0x4740d8[_0x552480('0x1593')],{'name':_0x4740d8['externaldial'][_0x552480('0x1280')]}));for(var _0x337158=0x0;_0x337158<_0x4740d8[_0x552480('0x1593')][_0x552480('0x577')];_0x337158++){_0x2d24c8&&_0x4740d8[_0x552480('0x1593')][_0x337158]['id']===_0x2d24c8['id']&&(_0x4740d8[_0x552480('0x1593')][_0x337158][_0x552480('0xba')]=![],_0x2bab97[_0x552480('0x206c')](_0x4740d8[_0x552480('0x1593')][_0x337158]));}_0x4740d8['trunks']=_0x2bab97;}else{if(!_0x54dfe2[_0x552480('0x80c')])return _0x58f15d['userProfileResource']['get']({'sectionId':_0x54dfe2['id']})[_0x552480('0x1376')][_0x552480('0x21ad')](function(_0x526c1e){var _0x29da19=_0x552480,_0x30dabc=_0x86640f()[_0x29da19('0x26c3')](_0x526c1e['rows'],function(_0x582e6c){var _0x3fed2a=_0x29da19;return _0x86640f()[_0x3fed2a('0x1d2e')](_0x4740d8[_0x3fed2a('0x1593')],{'id':_0x582e6c[_0x3fed2a('0x675')]});}),_0x51ec8e=null;_0x4740d8['externaldial']&&(_0x51ec8e=_0x86640f()['find'](_0x4740d8[_0x29da19('0x1593')],{'name':_0x4740d8[_0x29da19('0x1ff6')][_0x29da19('0x1280')]}));if(_0x51ec8e&&!_0x86640f()[_0x29da19('0x2664')](_0x30dabc,['id',_0x51ec8e['id']])){var _0x47c27f=_0x86640f()[_0x29da19('0x1d2e')](_0x4740d8[_0x29da19('0x1593')],{'id':_0x51ec8e['id']});_0x47c27f[_0x29da19('0xba')]=![],_0x30dabc['push'](_0x47c27f);}_0x4740d8[_0x29da19('0x1593')]=_0x30dabc;});}})[_0x5c9f24('0x1c1d')](function(_0x547445){var _0x413ee2=_0x5c9f24;_0x23fb2e[_0x413ee2('0x2092')]({'title':_0x547445[_0x413ee2('0x209')]?_0x413ee2('0x22d')+_0x547445['status']+'\x20-\x20'+_0x547445[_0x413ee2('0x1808')]:'SYSTEM:GETtrunks','msg':_0x547445[_0x413ee2('0x11c2')]?JSON[_0x413ee2('0x25e')](_0x547445[_0x413ee2('0x11c2')]):_0x547445[_0x413ee2('0x174f')]()});});function _0x312694(){var _0x198629=_0x5c9f24;_0x4740d8[_0x198629('0x1a69')]=[];var _0x4f4c31=[];_0x4740d8['externaldial'][_0x198629('0x7fa')]&&_0x4740d8[_0x198629('0x1ff6')][_0x198629('0x7fa')][_0x198629('0xac2')]()===_0x198629('0x2300')&&_0x4740d8[_0x198629('0x1ff6')]['appType']===_0x198629('0x4ea')&&(_0x4740d8[_0x198629('0x1ff6')][_0x198629('0x159e')]=_0x435df0[_0x198629('0x988')]?(_0x4740d8[_0x198629('0x1ff6')][_0x198629('0x1995')]||'')+_0x198629('0x349')+_0x435df0[_0x198629('0x988')]+'}':(_0x4740d8[_0x198629('0x1ff6')][_0x198629('0x1995')]||'')+'${EXTEN}',_0x435df0[_0x198629('0xad1')]!==_0x198629('0x983')?_0x4740d8[_0x198629('0x1ff6')]['options'][_0x198629('0x2004')](_0x198629('0x478'))<0x0&&(_0x4740d8['externaldial'][_0x198629('0x26a0')]+=_0x198629('0x478')):_0x4740d8['externaldial'][_0x198629('0x26a0')]=_0x4740d8[_0x198629('0x1ff6')]['options']['replace'](_0x198629('0x478'),''));if(_0x4740d8[_0x198629('0x1ff6')][_0x198629('0x522')]&&_0x4740d8['externaldial']['appType']==='custom'){}else switch((_0x4740d8[_0x198629('0x1ff6')][_0x198629('0x1f94')]||_0x4740d8['externaldial'][_0x198629('0x522')])[_0x198629('0xac2')]()){case _0x198629('0x1125'):_0x4740d8[_0x198629('0x1ff6')][_0x198629('0x23c2')]=_0x4740d8['externaldial'][_0x198629('0x19fe')]+'='+_0x4740d8['externaldial'][_0x198629('0x2228')];break;case _0x198629('0xf50'):break;default:_0x4f4c31[0x0]=[_0x198629('0x1d2'),_0x4740d8[_0x198629('0x1ff6')][_0x198629('0x1280')],_0x4740d8[_0x198629('0x1ff6')][_0x198629('0x159e')]][_0x198629('0x136')]('/'),_0x4f4c31[0x1]=_0x4740d8['externaldial'][_0x198629('0x2133')],_0x4f4c31[0x2]=_0x4740d8[_0x198629('0x1ff6')][_0x198629('0x26a0')],_0x4f4c31[0x3]=_0x4740d8[_0x198629('0x1ff6')]['url'],_0x4740d8[_0x198629('0x1ff6')][_0x198629('0x23c2')]=_0x4f4c31[_0x198629('0x136')](',');}_0x560b9b(_0x4740d8[_0x198629('0x1ff6')]);}function _0x560b9b(_0x55f06e){_0x2f7f90['hide'](_0x55f06e);}}const _0x4192f6=_0x2fbd16;_0x1bf58d[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x97d'),_0x3877e3('0x26e3'),'api',_0x3877e3('0x15bc'),'crudPermissions'];function _0x1bf58d(_0x79912b,_0x33d1c0,_0xc8d639,_0x20234c,_0x3af6e6,_0x9fcb92,_0xe21c83,_0x43259b){var _0x4f51aa=_0x3877e3,_0x90abe3=this;_0x90abe3[_0x4f51aa('0x123f')]=_0xe21c83[_0x4f51aa('0x15ed')](),_0x90abe3['errors']=[],_0x90abe3[_0x4f51aa('0x4b4')]=_0x4f51aa('0x1b79')+(_0x20234c[_0x4f51aa('0x522')]||_0x20234c[_0x4f51aa('0x1f94')])[_0x4f51aa('0x2e8')](),_0x90abe3[_0x4f51aa('0x12ec')]=angular[_0x4f51aa('0xd75')](_0x20234c),_0x90abe3[_0x4f51aa('0x5ed')]=_0x43259b,_0x90abe3[_0x4f51aa('0x126a')]={};if(_0x90abe3['goto'][_0x4f51aa('0x23c2')])switch(_0x90abe3[_0x4f51aa('0x12ec')][_0x4f51aa('0x522')]?_0x90abe3['goto'][_0x4f51aa('0x522')][_0x4f51aa('0xac2')]():_0x90abe3[_0x4f51aa('0x12ec')]['app'][_0x4f51aa('0xac2')]()){case _0x4f51aa('0xf50'):break;case _0x4f51aa('0xc72'):{var _0x4b2895=_0x90abe3[_0x4f51aa('0x12ec')][_0x4f51aa('0x23c2')][_0x4f51aa('0x1af5')](',');_0x90abe3['goto']['key']=_0x4b2895[0x0],_0x90abe3[_0x4f51aa('0x12ec')][_0x4f51aa('0x10f')]=_0x4b2895[0x1],_0x90abe3['goto']['welcomemessage']=_0x4b2895[_0x4f51aa('0xb3d')](0x2,_0x4b2895['length'])[_0x4f51aa('0x136')](',');}break;case _0x4f51aa('0x1c22'):{var _0x224fa6=_0x90abe3[_0x4f51aa('0x12ec')][_0x4f51aa('0x23c2')][_0x4f51aa('0x1af5')](',');_0x90abe3[_0x4f51aa('0x12ec')][_0x4f51aa('0x21c6')]=_0x224fa6[0x0],_0x90abe3[_0x4f51aa('0x12ec')][_0x4f51aa('0x797')]=_0x224fa6[0x1],_0x90abe3[_0x4f51aa('0x12ec')][_0x4f51aa('0x20a3')]=_0x224fa6[0x2],_0x90abe3['goto']['botname']=_0x224fa6[0x3],_0x90abe3[_0x4f51aa('0x12ec')][_0x4f51aa('0x1cce')]=_0x224fa6[_0x4f51aa('0xb3d')](0x4,_0x224fa6['length'])['join'](',');}break;case _0x4f51aa('0x1b98'):{var _0x154a22=_0x90abe3['goto']['appdata'][_0x4f51aa('0x1af5')](',');_0x90abe3[_0x4f51aa('0x12ec')][_0x4f51aa('0x13b6')]=isNaN(_0x154a22[0x0])?_0x154a22[0x0]:parseInt(_0x154a22[0x0],0xa),_0x90abe3[_0x4f51aa('0x12ec')]['text']=_0x154a22['slice'](0x1,_0x154a22[_0x4f51aa('0x577')])[_0x4f51aa('0x136')](',');}break;case _0x4f51aa('0x1224'):_0x90abe3[_0x4f51aa('0x12ec')][_0x4f51aa('0xc1e')]=_0x90abe3[_0x4f51aa('0x12ec')][_0x4f51aa('0x23c2')];break;case _0x4f51aa('0x1125'):_0x90abe3[_0x4f51aa('0x12ec')][_0x4f51aa('0x19fe')]=_0x90abe3[_0x4f51aa('0x12ec')][_0x4f51aa('0x23c2')][_0x4f51aa('0x1af5')]('=')[0x0],_0x90abe3['goto'][_0x4f51aa('0x2228')]=_0x90abe3[_0x4f51aa('0x12ec')][_0x4f51aa('0x23c2')]['split']('=')[0x1];break;case _0x4f51aa('0x2356'):_0x90abe3[_0x4f51aa('0x12ec')][_0x4f51aa('0xbf8')]=_0x90abe3[_0x4f51aa('0x12ec')][_0x4f51aa('0x23c2')];break;default:{var _0x1b564f=_0x90abe3['goto'][_0x4f51aa('0x23c2')]['split'](',');_0x90abe3['goto'][_0x4f51aa('0x244c')]=_0x86640f()['isEmpty'](_0x1b564f[0x0])?_0x1b564f[0x0]:isNaN(_0x1b564f[0x0])?_0x1b564f[0x0]:parseInt(_0x1b564f[0x0],0xa),_0x90abe3[_0x4f51aa('0x12ec')]['extension']=_0x86640f()[_0x4f51aa('0x23aa')](_0x1b564f[0x1])?_0x1b564f[0x1]:isNaN(_0x1b564f[0x1])?_0x1b564f[0x1]:parseInt(_0x1b564f[0x1],0xa),_0x90abe3[_0x4f51aa('0x12ec')][_0x4f51aa('0xbe5')]=_0x86640f()[_0x4f51aa('0x23aa')](_0x1b564f[0x2])?_0x1b564f[0x2]:isNaN(_0x1b564f[0x2])?_0x1b564f[0x2]:parseInt(_0x1b564f[0x2],0xa);}break;}else{}_0x90abe3[_0x4f51aa('0x12ec')]['type']&&_0x90abe3[_0x4f51aa('0x12ec')][_0x4f51aa('0x7fa')][_0x4f51aa('0xac2')]()==='outbound'&&_0x90abe3['goto'][_0x4f51aa('0x522')][_0x4f51aa('0xac2')]()===_0x4f51aa('0x2363')&&(_0x90abe3[_0x4f51aa('0x12ec')][_0x4f51aa('0x1995')]=_0x90abe3['goto'][_0x4f51aa('0x159e')]?_0x90abe3[_0x4f51aa('0x12ec')][_0x4f51aa('0x159e')]['split']('$')[0x0]:undefined,_0x90abe3['goto'][_0x4f51aa('0x26f7')]=_0x90abe3[_0x4f51aa('0x12ec')][_0x4f51aa('0x1f5a')]?_0x4f51aa('0x587')+_0x90abe3[_0x4f51aa('0x12ec')]['callerID']:undefined);_0x90abe3[_0x4f51aa('0x1057')]=_0x36018e,_0x90abe3['closeDialog']=_0x5d93ea,_0xe21c83[_0x4f51aa('0x21de')]('admin')?_0x9fcb92[_0x4f51aa('0x608')][_0x4f51aa('0x595')]({'fields':_0x4f51aa('0x1aa8'),'sort':'name','nolimit':_0x4f51aa('0x19bd')})[_0x4f51aa('0x1376')][_0x4f51aa('0x21ad')](function(_0x195933){var _0x4f2b34=_0x4f51aa;_0x90abe3[_0x4f2b34('0x1089')]=_0x195933[_0x4f2b34('0x1b33')]||[];})[_0x4f51aa('0x1c1d')](function(_0x224382){var _0x177aca=_0x4f51aa;_0xc8d639[_0x177aca('0x2092')]({'title':_0x224382[_0x177aca('0x209')]?_0x177aca('0x22d')+_0x224382[_0x177aca('0x209')]+_0x177aca('0xa99')+_0x224382[_0x177aca('0x1808')]:_0x177aca('0x11b1'),'msg':_0x224382[_0x177aca('0x11c2')]?JSON['stringify'](_0x224382[_0x177aca('0x11c2')]):_0x224382[_0x177aca('0x174f')]()});}):_0x9fcb92['voiceContext'][_0x4f51aa('0x595')]({'fields':_0x4f51aa('0x1aa8'),'sort':_0x4f51aa('0x19fe'),'nolimit':'true'})[_0x4f51aa('0x1376')][_0x4f51aa('0x21ad')](function(_0x3e8089){var _0x4cd1ba=_0x4f51aa;_0x90abe3['contexts']=_0x3e8089[_0x4cd1ba('0x1b33')]||[];})['then'](function(){var _0x1f8860=_0x4f51aa;return _0x9fcb92[_0x1f8860('0xab4')][_0x1f8860('0x595')]({'userProfileId':_0x90abe3[_0x1f8860('0x123f')][_0x1f8860('0x1618')],'sectionId':0x195})[_0x1f8860('0x1376')];})['then'](function(_0x542743){var _0x5f108e=_0x4f51aa,_0x3569f9=_0x542743&&_0x542743[_0x5f108e('0x1b33')]?_0x542743['rows'][0x0]:null;if(!_0x3569f9)return _0x9fcb92[_0x5f108e('0x608')][_0x5f108e('0x595')]({'fields':_0x5f108e('0x1aa8'),'sort':'name','nolimit':'true','defaultEntry':0x1})[_0x5f108e('0x1376')]['then'](function(_0x59f12c){var _0x231f25=_0x5f108e;_0x90abe3[_0x231f25('0x1089')]=_0x59f12c[_0x231f25('0x1b33')]||[];});else{if(!_0x3569f9[_0x5f108e('0x80c')])return _0x9fcb92['userProfileResource'][_0x5f108e('0x595')]({'sectionId':_0x3569f9['id']})[_0x5f108e('0x1376')][_0x5f108e('0x21ad')](function(_0x2b1f8f){var _0x57c7b9=_0x5f108e,_0xf5620f=_0x86640f()[_0x57c7b9('0x26c3')](_0x2b1f8f[_0x57c7b9('0x1b33')],function(_0x2d12a1){var _0x110bb9=_0x57c7b9;return _0x86640f()[_0x110bb9('0x1d2e')](_0x90abe3[_0x110bb9('0x1089')],{'id':_0x2d12a1[_0x110bb9('0x675')]});}),_0x1d4061=null;_0x90abe3[_0x57c7b9('0x12ec')]&&(_0x1d4061=_0x86640f()[_0x57c7b9('0x1d2e')](_0x90abe3['contexts'],{'name':_0x90abe3[_0x57c7b9('0x12ec')][_0x57c7b9('0x244c')]}));if(_0x1d4061&&!_0x86640f()[_0x57c7b9('0x2664')](_0xf5620f,['id',_0x1d4061['id']])){var _0xb86c15=_0x86640f()[_0x57c7b9('0x1d2e')](_0x90abe3[_0x57c7b9('0x1089')],{'id':_0x1d4061['id']});_0xb86c15[_0x57c7b9('0xba')]=![],_0xf5620f['push'](_0xb86c15);}_0x90abe3[_0x57c7b9('0x1089')]=_0xf5620f;});}})[_0x4f51aa('0x1c1d')](function(_0x47409d){var _0x305216=_0x4f51aa;_0xc8d639[_0x305216('0x2092')]({'title':_0x47409d['status']?_0x305216('0x22d')+_0x47409d[_0x305216('0x209')]+_0x305216('0xa99')+_0x47409d[_0x305216('0x1808')]:_0x305216('0x1463'),'msg':_0x47409d[_0x305216('0x11c2')]?JSON[_0x305216('0x25e')](_0x47409d[_0x305216('0x11c2')]):_0x47409d['toString']()});});function _0x36018e(){var _0x2edd0d=_0x4f51aa;_0x90abe3['errors']=[];var _0x59af18=[];_0x90abe3[_0x2edd0d('0x12ec')]['type']&&_0x90abe3['goto'][_0x2edd0d('0x7fa')][_0x2edd0d('0xac2')]()===_0x2edd0d('0x2300')&&_0x90abe3['goto']['appType']==='outboundDial'&&(_0x90abe3[_0x2edd0d('0x12ec')]['phone']=_0x3af6e6[_0x2edd0d('0x988')]?(_0x90abe3[_0x2edd0d('0x12ec')][_0x2edd0d('0x1995')]||'')+'${EXTEN:'+_0x3af6e6[_0x2edd0d('0x988')]+'}':(_0x90abe3[_0x2edd0d('0x12ec')][_0x2edd0d('0x1995')]||'')+'${EXTEN}',_0x3af6e6[_0x2edd0d('0xad1')]!==_0x2edd0d('0x983')?_0x90abe3[_0x2edd0d('0x12ec')][_0x2edd0d('0x26a0')][_0x2edd0d('0x2004')](_0x2edd0d('0x478'))<0x0&&(_0x90abe3[_0x2edd0d('0x12ec')]['options']+=_0x2edd0d('0x478')):_0x90abe3[_0x2edd0d('0x12ec')]['options']=_0x90abe3[_0x2edd0d('0x12ec')][_0x2edd0d('0x26a0')][_0x2edd0d('0x16e4')]('U(xcally-mixmonitor-context)',''));if(_0x90abe3[_0x2edd0d('0x12ec')][_0x2edd0d('0x522')]&&_0x90abe3[_0x2edd0d('0x12ec')][_0x2edd0d('0x522')]===_0x2edd0d('0xf50')){}else switch((_0x90abe3[_0x2edd0d('0x12ec')][_0x2edd0d('0x1f94')]||_0x90abe3[_0x2edd0d('0x12ec')][_0x2edd0d('0x522')])['toLowerCase']()){case _0x2edd0d('0x1125'):_0x90abe3['goto'][_0x2edd0d('0x23c2')]=_0x90abe3[_0x2edd0d('0x12ec')]['name']+'='+_0x90abe3[_0x2edd0d('0x12ec')][_0x2edd0d('0x2228')];break;case _0x2edd0d('0xf50'):break;default:_0x59af18[0x0]=_0x90abe3['goto'][_0x2edd0d('0x244c')],_0x59af18[0x1]=_0x90abe3['goto'][_0x2edd0d('0x128d')],_0x59af18[0x2]=_0x90abe3[_0x2edd0d('0x12ec')][_0x2edd0d('0xbe5')],_0x90abe3[_0x2edd0d('0x12ec')][_0x2edd0d('0x23c2')]=_0x59af18[_0x2edd0d('0x136')](',');}_0x5d93ea(_0x90abe3[_0x2edd0d('0x12ec')]);}function _0x5d93ea(_0x50cbcc){var _0x4b1cd8=_0x4f51aa;_0x79912b[_0x4b1cd8('0x1c24')](_0x50cbcc);}}const _0x2fbeae=_0x1bf58d;_0x162872[_0x3877e3('0x1a81')]=['$mdDialog','$q','toasty',_0x3877e3('0x97d'),_0x3877e3('0x26e3'),'api',_0x3877e3('0x15bc'),'crudPermissions'];function _0x162872(_0x30c0c0,_0x26b875,_0x505a05,_0x2b786f,_0x135428,_0x93e0d3,_0x93c5e1,_0x2366f6){var _0x1aa480=_0x3877e3,_0x40fa8d=this;_0x40fa8d['currentUser']=_0x93c5e1['getCurrentUser'](),_0x40fa8d[_0x1aa480('0x1a69')]=[],_0x40fa8d[_0x1aa480('0x4b4')]=_0x1aa480('0x1b79')+(_0x2b786f[_0x1aa480('0x522')]||_0x2b786f[_0x1aa480('0x1f94')])[_0x1aa480('0x2e8')](),_0x40fa8d[_0x1aa480('0xf7d')]=angular[_0x1aa480('0xd75')](_0x2b786f),_0x40fa8d['crudPermissions']=_0x2366f6,_0x40fa8d[_0x1aa480('0x126a')]={};if(_0x40fa8d[_0x1aa480('0xf7d')][_0x1aa480('0x23c2')])switch(_0x40fa8d['hangup'][_0x1aa480('0x522')]?_0x40fa8d[_0x1aa480('0xf7d')]['appType'][_0x1aa480('0xac2')]():_0x40fa8d['hangup'][_0x1aa480('0x1f94')][_0x1aa480('0xac2')]()){case _0x1aa480('0xf50'):break;case'dialogflow':{var _0x3ee813=_0x40fa8d[_0x1aa480('0xf7d')][_0x1aa480('0x23c2')][_0x1aa480('0x1af5')](',');_0x40fa8d[_0x1aa480('0xf7d')][_0x1aa480('0xddb')]=_0x3ee813[0x0],_0x40fa8d[_0x1aa480('0xf7d')][_0x1aa480('0x10f')]=_0x3ee813[0x1],_0x40fa8d[_0x1aa480('0xf7d')]['welcomemessage']=_0x3ee813[_0x1aa480('0xb3d')](0x2,_0x3ee813[_0x1aa480('0x577')])[_0x1aa480('0x136')](',');}break;case _0x1aa480('0x1c22'):{var _0x524685=_0x40fa8d[_0x1aa480('0xf7d')][_0x1aa480('0x23c2')][_0x1aa480('0x1af5')](',');_0x40fa8d[_0x1aa480('0xf7d')][_0x1aa480('0x21c6')]=_0x524685[0x0],_0x40fa8d['hangup'][_0x1aa480('0x797')]=_0x524685[0x1],_0x40fa8d['hangup'][_0x1aa480('0x20a3')]=_0x524685[0x2],_0x40fa8d['hangup']['botname']=_0x524685[0x3],_0x40fa8d[_0x1aa480('0xf7d')][_0x1aa480('0x1cce')]=_0x524685[_0x1aa480('0xb3d')](0x4,_0x524685[_0x1aa480('0x577')])[_0x1aa480('0x136')](',');}break;case _0x1aa480('0x1b98'):{var _0x2dd021=_0x40fa8d[_0x1aa480('0xf7d')][_0x1aa480('0x23c2')][_0x1aa480('0x1af5')](',');_0x40fa8d[_0x1aa480('0xf7d')][_0x1aa480('0x13b6')]=isNaN(_0x2dd021[0x0])?_0x2dd021[0x0]:parseInt(_0x2dd021[0x0],0xa),_0x40fa8d['hangup'][_0x1aa480('0xc1e')]=_0x2dd021[_0x1aa480('0xb3d')](0x1,_0x2dd021[_0x1aa480('0x577')])[_0x1aa480('0x136')](',');}break;case'message':_0x40fa8d[_0x1aa480('0xf7d')][_0x1aa480('0xc1e')]=_0x40fa8d['hangup'][_0x1aa480('0x23c2')];break;case'set':_0x40fa8d[_0x1aa480('0xf7d')]['name']=_0x40fa8d[_0x1aa480('0xf7d')]['appdata'][_0x1aa480('0x1af5')]('=')[0x0],_0x40fa8d['hangup'][_0x1aa480('0x2228')]=_0x40fa8d[_0x1aa480('0xf7d')]['appdata']['split']('=')[0x1];break;case _0x1aa480('0x2356'):_0x40fa8d[_0x1aa480('0xf7d')]['project']=_0x40fa8d[_0x1aa480('0xf7d')][_0x1aa480('0x23c2')];break;default:{var _0x412055=_0x40fa8d['hangup'][_0x1aa480('0x23c2')][_0x1aa480('0x1af5')](',');_0x40fa8d['hangup'][_0x1aa480('0x23c2')]=_0x86640f()[_0x1aa480('0x23aa')](_0x412055[0x0])?_0x412055[0x0]:isNaN(_0x412055[0x0])?_0x412055[0x0]:parseInt(_0x412055[0x0],0xa);}break;}else{}_0x40fa8d[_0x1aa480('0xf7d')][_0x1aa480('0x7fa')]&&_0x40fa8d[_0x1aa480('0xf7d')][_0x1aa480('0x7fa')][_0x1aa480('0xac2')]()===_0x1aa480('0x2300')&&_0x40fa8d[_0x1aa480('0xf7d')][_0x1aa480('0x522')][_0x1aa480('0xac2')]()===_0x1aa480('0x2363')&&(_0x40fa8d[_0x1aa480('0xf7d')][_0x1aa480('0x1995')]=_0x40fa8d[_0x1aa480('0xf7d')][_0x1aa480('0x159e')]?_0x40fa8d['hangup'][_0x1aa480('0x159e')][_0x1aa480('0x1af5')]('$')[0x0]:undefined,_0x40fa8d[_0x1aa480('0xf7d')][_0x1aa480('0x26f7')]=_0x40fa8d['hangup'][_0x1aa480('0x1f5a')]?_0x1aa480('0x587')+_0x40fa8d[_0x1aa480('0xf7d')]['callerID']:undefined);_0x40fa8d[_0x1aa480('0x1057')]=_0x23dc7b,_0x40fa8d['closeDialog']=_0x19058a;function _0x23dc7b(){var _0x9760e4=_0x1aa480;_0x40fa8d[_0x9760e4('0x1a69')]=[];var _0x27b7c2=[];_0x40fa8d[_0x9760e4('0xf7d')][_0x9760e4('0x7fa')]&&_0x40fa8d[_0x9760e4('0xf7d')][_0x9760e4('0x7fa')][_0x9760e4('0xac2')]()===_0x9760e4('0x2300')&&_0x40fa8d[_0x9760e4('0xf7d')][_0x9760e4('0x522')]==='outboundDial'&&(_0x40fa8d[_0x9760e4('0xf7d')][_0x9760e4('0x159e')]=_0x135428[_0x9760e4('0x988')]?(_0x40fa8d['hangup'][_0x9760e4('0x1995')]||'')+'${EXTEN:'+_0x135428[_0x9760e4('0x988')]+'}':(_0x40fa8d['hangup'][_0x9760e4('0x1995')]||'')+_0x9760e4('0x2560'),_0x135428[_0x9760e4('0xad1')]!=='none'?_0x40fa8d[_0x9760e4('0xf7d')][_0x9760e4('0x26a0')][_0x9760e4('0x2004')](_0x9760e4('0x478'))<0x0&&(_0x40fa8d[_0x9760e4('0xf7d')][_0x9760e4('0x26a0')]+=_0x9760e4('0x478')):_0x40fa8d['hangup'][_0x9760e4('0x26a0')]=_0x40fa8d[_0x9760e4('0xf7d')]['options']['replace'](_0x9760e4('0x478'),''));if(_0x40fa8d[_0x9760e4('0xf7d')][_0x9760e4('0x522')]&&_0x40fa8d['hangup'][_0x9760e4('0x522')]===_0x9760e4('0xf50')){}else switch((_0x40fa8d[_0x9760e4('0xf7d')]['app']||_0x40fa8d[_0x9760e4('0xf7d')][_0x9760e4('0x522')])[_0x9760e4('0xac2')]()){case _0x9760e4('0x1125'):_0x40fa8d[_0x9760e4('0xf7d')]['appdata']=_0x40fa8d[_0x9760e4('0xf7d')][_0x9760e4('0x19fe')]+'='+_0x40fa8d[_0x9760e4('0xf7d')]['value'];break;case'custom':break;default:_0x27b7c2[0x0]=_0x40fa8d[_0x9760e4('0xf7d')][_0x9760e4('0x23c2')],_0x40fa8d[_0x9760e4('0xf7d')]['appdata']=_0x27b7c2[_0x9760e4('0x136')](',');}_0x19058a(_0x40fa8d['hangup']);}function _0x19058a(_0x347b98){var _0x5886f8=_0x1aa480;_0x30c0c0[_0x5886f8('0x1c24')](_0x347b98);}}const _0x1bd345=_0x162872;_0x4a2793[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q','toasty','internalrouteApp',_0x3877e3('0x26e3'),'api',_0x3877e3('0x15bc'),'crudPermissions'];function _0x4a2793(_0x1f08c8,_0xa988c8,_0x21bc42,_0x1e30ca,_0x46281f,_0x47398a,_0x5cd1b4,_0x9f066b){var _0x38bbab=_0x3877e3,_0x2eb54b=this;_0x2eb54b[_0x38bbab('0x123f')]=_0x5cd1b4[_0x38bbab('0x15ed')](),_0x2eb54b[_0x38bbab('0x1a69')]=[],_0x2eb54b[_0x38bbab('0x4b4')]=_0x38bbab('0x1b79')+(_0x1e30ca[_0x38bbab('0x522')]||_0x1e30ca[_0x38bbab('0x1f94')])[_0x38bbab('0x2e8')](),_0x2eb54b[_0x38bbab('0x1a3f')]=angular[_0x38bbab('0xd75')](_0x1e30ca),_0x2eb54b[_0x38bbab('0x5ed')]=_0x9f066b,_0x2eb54b[_0x38bbab('0x126a')]={};if(_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0x23c2')])switch(_0x2eb54b['internaldial']['appType']?_0x2eb54b[_0x38bbab('0x1a3f')]['appType'][_0x38bbab('0xac2')]():_0x2eb54b[_0x38bbab('0x1a3f')]['app'][_0x38bbab('0xac2')]()){case'custom':break;case _0x38bbab('0xc72'):{var _0x2a18fb=_0x2eb54b['internaldial'][_0x38bbab('0x23c2')]['split'](',');_0x2eb54b['internaldial'][_0x38bbab('0xddb')]=_0x2a18fb[0x0],_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0x10f')]=_0x2a18fb[0x1],_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0x1cce')]=_0x2a18fb[_0x38bbab('0xb3d')](0x2,_0x2a18fb['length'])[_0x38bbab('0x136')](',');}break;case _0x38bbab('0x1c22'):{var _0x3cbdfc=_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0x23c2')][_0x38bbab('0x1af5')](',');_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0x21c6')]=_0x3cbdfc[0x0],_0x2eb54b['internaldial']['secretaccesskey']=_0x3cbdfc[0x1],_0x2eb54b[_0x38bbab('0x1a3f')]['lexregion']=_0x3cbdfc[0x2],_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0x15fe')]=_0x3cbdfc[0x3],_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0x1cce')]=_0x3cbdfc[_0x38bbab('0xb3d')](0x4,_0x3cbdfc[_0x38bbab('0x577')])['join'](',');}break;case _0x38bbab('0x1b98'):{var _0x420d2a=_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0x23c2')]['split'](',');_0x2eb54b['internaldial'][_0x38bbab('0x13b6')]=isNaN(_0x420d2a[0x0])?_0x420d2a[0x0]:parseInt(_0x420d2a[0x0],0xa),_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0xc1e')]=_0x420d2a['slice'](0x1,_0x420d2a['length'])[_0x38bbab('0x136')](',');}break;case _0x38bbab('0x1224'):_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0xc1e')]=_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0x23c2')];break;case _0x38bbab('0x1125'):_0x2eb54b[_0x38bbab('0x1a3f')]['name']=_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0x23c2')][_0x38bbab('0x1af5')]('=')[0x0],_0x2eb54b['internaldial'][_0x38bbab('0x2228')]=_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0x23c2')][_0x38bbab('0x1af5')]('=')[0x1];break;case _0x38bbab('0x2356'):_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0xbf8')]=_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0x23c2')];break;default:{var _0x79a934=_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0x23c2')][_0x38bbab('0x1af5')](',');_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0x1775')]=_0x86640f()[_0x38bbab('0x23aa')](_0x79a934[0x0])?_0x79a934[0x0]:isNaN(_0x79a934[0x0])?_0x79a934[0x0]:parseInt(_0x79a934[0x0],0xa),_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0x2133')]=_0x86640f()[_0x38bbab('0x23aa')](_0x79a934[0x1])?_0x79a934[0x1]:isNaN(_0x79a934[0x1])?_0x79a934[0x1]:parseInt(_0x79a934[0x1],0xa),_0x2eb54b['internaldial']['options']=_0x86640f()[_0x38bbab('0x23aa')](_0x79a934[0x2])?_0x79a934[0x2]:isNaN(_0x79a934[0x2])?_0x79a934[0x2]:parseInt(_0x79a934[0x2],0xa),_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0x770')]=_0x86640f()['isEmpty'](_0x79a934[0x3])?_0x79a934[0x3]:isNaN(_0x79a934[0x3])?_0x79a934[0x3]:parseInt(_0x79a934[0x3],0xa);}break;}else{}_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0x7fa')]&&_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0x7fa')][_0x38bbab('0xac2')]()===_0x38bbab('0x2300')&&_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0x522')]['toLowerCase']()===_0x38bbab('0x2363')&&(_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0x1995')]=_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0x159e')]?_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0x159e')]['split']('$')[0x0]:undefined,_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0x26f7')]=_0x2eb54b[_0x38bbab('0x1a3f')][_0x38bbab('0x1f5a')]?_0x38bbab('0x587')+_0x2eb54b['internaldial'][_0x38bbab('0x1f5a')]:undefined);_0x2eb54b[_0x38bbab('0x1057')]=_0x425bd8,_0x2eb54b[_0x38bbab('0x167')]=_0x27e5db;var _0xd68d1e=[{'id':0xca,'role':'agent'},{'id':0xcb,'role':_0x38bbab('0x13f4')}],_0x448224=null;_0x5cd1b4[_0x38bbab('0x21de')](_0x38bbab('0x1bd8'))?_0x47398a[_0x38bbab('0x1775')]['get']({'fields':'id,name,role','sort':'name','nolimit':_0x38bbab('0x19bd')})[_0x38bbab('0x1376')][_0x38bbab('0x21ad')](function(_0x54b400){var _0x1c199f=_0x38bbab;_0x2eb54b[_0x1c199f('0x188e')]=_0x54b400['rows']||[];})[_0x38bbab('0x1c1d')](function(_0x17241c){var _0x169e08=_0x38bbab;_0x21bc42[_0x169e08('0x2092')]({'title':_0x17241c[_0x169e08('0x209')]?_0x169e08('0x22d')+_0x17241c[_0x169e08('0x209')]+_0x169e08('0xa99')+_0x17241c[_0x169e08('0x1808')]:_0x169e08('0x2158'),'msg':_0x17241c[_0x169e08('0x11c2')]?JSON[_0x169e08('0x25e')](_0x17241c[_0x169e08('0x11c2')]):_0x17241c[_0x169e08('0x174f')]()});}):_0x47398a[_0x38bbab('0x1775')][_0x38bbab('0x595')]({'fields':_0x38bbab('0x2813'),'sort':_0x38bbab('0x19fe'),'nolimit':'true'})[_0x38bbab('0x1376')]['then'](function(_0x12ae81){var _0x58b400=_0x38bbab;_0x448224=_0x12ae81[_0x58b400('0x1b33')]||[];})[_0x38bbab('0x21ad')](function(){var _0x2138c3=_0x38bbab,_0x2db3f1=[];for(var _0x5801a7=0x0;_0x5801a7<_0xd68d1e[_0x2138c3('0x577')];_0x5801a7++){_0x2db3f1[_0x2138c3('0x206c')](_0x47398a[_0x2138c3('0xab4')][_0x2138c3('0x595')]({'userProfileId':_0x2eb54b[_0x2138c3('0x123f')][_0x2138c3('0x1618')],'sectionId':_0xd68d1e[_0x5801a7]['id']})[_0x2138c3('0x1376')]);}return _0xa988c8[_0x2138c3('0x1ba7')](_0x2db3f1);})['then'](function(_0x5a5c5e){var _0x2d8814=_0x38bbab,_0x13eb67=_0x86640f()['map'](_0x5a5c5e,function(_0xe3cb9c){var _0xb63d38=a0_0x2e7f;return _0xe3cb9c&&_0xe3cb9c[_0xb63d38('0x1b33')]?_0xe3cb9c[_0xb63d38('0x1b33')][0x0]:null;}),_0x2cb89e=[],_0x3d088f=function _0x39c54d(_0x2bd533){var _0x466ee8=a0_0x2e7f,_0x77f900=_0x86640f()[_0x466ee8('0x1d2e')](_0x13eb67,[_0x466ee8('0x1cd2'),_0xd68d1e[_0x2bd533]['id']]);if(_0x77f900){if(!_0x77f900['autoAssociation'])_0x2cb89e[_0x466ee8('0x206c')](_0x47398a[_0x466ee8('0x185e')][_0x466ee8('0x595')]({'sectionId':_0x77f900['id']})['$promise']);else{var _0x46e5f9=[];_0x448224[_0x466ee8('0x1a52')](function(_0x47396b){var _0x354730=_0x466ee8;_0x47396b['role']===_0xd68d1e[_0x2bd533]['role']&&_0x46e5f9[_0x354730('0x206c')](_0x47396b);}),_0x2cb89e['push']({'rows':_0x46e5f9,'count':_0x46e5f9['length']});}}};for(var _0x5b08b0=0x0;_0x5b08b0<_0xd68d1e[_0x2d8814('0x577')];_0x5b08b0++){_0x3d088f(_0x5b08b0);}return _0xa988c8[_0x2d8814('0x1ba7')](_0x2cb89e);})[_0x38bbab('0x21ad')](function(_0x20715d){var _0x76f660=_0x38bbab,_0x4a4ff4=[],_0x2f1796=null;_0x2eb54b[_0x76f660('0x1a3f')]&&(_0x2f1796=_0x86640f()['find'](_0x448224,{'name':_0x2eb54b[_0x76f660('0x1a3f')][_0x76f660('0x1775')]}));for(var _0x515568=0x0;_0x515568<_0x20715d[_0x76f660('0x577')];_0x515568++){var _0x17ee84=_0x20715d[_0x515568][_0x76f660('0x1b33')]||[];_0x17ee84[_0x76f660('0x1a52')](function(_0x3b9bcb){var _0x57da8c=_0x76f660;_0x4a4ff4[_0x57da8c('0x206c')](_0x3b9bcb);});}_0x2f1796&&!_0x86640f()['some'](_0x4a4ff4,[_0x76f660('0x675'),_0x2f1796['id']])&&_0x448224['forEach'](function(_0x5c833e){var _0x431e08=_0x76f660;_0x5c833e['id']===_0x2f1796['id']&&(_0x5c833e['canSelect']=![],_0x4a4ff4[_0x431e08('0x206c')](_0x5c833e));}),_0x2eb54b[_0x76f660('0x188e')]=_0x4a4ff4;})['catch'](function(_0x1ead79){var _0x52637d=_0x38bbab;_0x21bc42[_0x52637d('0x2092')]({'title':_0x1ead79[_0x52637d('0x209')]?'API:'+_0x1ead79[_0x52637d('0x209')]+_0x52637d('0xa99')+_0x1ead79['statusText']:_0x52637d('0x143e'),'msg':_0x1ead79[_0x52637d('0x11c2')]?JSON[_0x52637d('0x25e')](_0x1ead79['data']):_0x1ead79[_0x52637d('0x174f')]()});});function _0x425bd8(){var _0x1dd306=_0x38bbab;_0x2eb54b[_0x1dd306('0x1a69')]=[];var _0x441c44=[];_0x2eb54b[_0x1dd306('0x1a3f')][_0x1dd306('0x7fa')]&&_0x2eb54b['internaldial'][_0x1dd306('0x7fa')][_0x1dd306('0xac2')]()===_0x1dd306('0x2300')&&_0x2eb54b['internaldial']['appType']===_0x1dd306('0x4ea')&&(_0x2eb54b[_0x1dd306('0x1a3f')][_0x1dd306('0x159e')]=_0x46281f['cutdigits']?(_0x2eb54b[_0x1dd306('0x1a3f')]['prefix']||'')+'${EXTEN:'+_0x46281f[_0x1dd306('0x988')]+'}':(_0x2eb54b[_0x1dd306('0x1a3f')][_0x1dd306('0x1995')]||'')+'${EXTEN}',_0x46281f[_0x1dd306('0xad1')]!==_0x1dd306('0x983')?_0x2eb54b['internaldial'][_0x1dd306('0x26a0')][_0x1dd306('0x2004')]('U(xcally-mixmonitor-context)')<0x0&&(_0x2eb54b['internaldial'][_0x1dd306('0x26a0')]+=_0x1dd306('0x478')):_0x2eb54b[_0x1dd306('0x1a3f')][_0x1dd306('0x26a0')]=_0x2eb54b[_0x1dd306('0x1a3f')][_0x1dd306('0x26a0')]['replace']('U(xcally-mixmonitor-context)',''));if(_0x2eb54b['internaldial'][_0x1dd306('0x522')]&&_0x2eb54b[_0x1dd306('0x1a3f')][_0x1dd306('0x522')]===_0x1dd306('0xf50')){}else switch((_0x2eb54b[_0x1dd306('0x1a3f')][_0x1dd306('0x1f94')]||_0x2eb54b[_0x1dd306('0x1a3f')][_0x1dd306('0x522')])[_0x1dd306('0xac2')]()){case _0x1dd306('0x1125'):_0x2eb54b[_0x1dd306('0x1a3f')]['appdata']=_0x2eb54b[_0x1dd306('0x1a3f')][_0x1dd306('0x19fe')]+'='+_0x2eb54b[_0x1dd306('0x1a3f')][_0x1dd306('0x2228')];break;case _0x1dd306('0xf50'):break;default:_0x441c44[0x0]=_0x2eb54b[_0x1dd306('0x1a3f')]['user'],_0x441c44[0x1]=_0x2eb54b[_0x1dd306('0x1a3f')][_0x1dd306('0x2133')],_0x441c44[0x2]=_0x2eb54b[_0x1dd306('0x1a3f')][_0x1dd306('0x26a0')],_0x441c44[0x3]=_0x2eb54b[_0x1dd306('0x1a3f')][_0x1dd306('0x770')],_0x2eb54b[_0x1dd306('0x1a3f')][_0x1dd306('0x23c2')]=_0x441c44[_0x1dd306('0x136')](',');}_0x27e5db(_0x2eb54b['internaldial']);}function _0x27e5db(_0x218f88){var _0x446340=_0x38bbab;_0x1f08c8[_0x446340('0x1c24')](_0x218f88);}}const _0x1d1a97=_0x4a2793;_0x4892d2['$inject']=[_0x3877e3('0xa9f'),'$mdDialog','$mdToast','IndexFactory',_0x3877e3('0xa07'),_0x3877e3('0x2530'),_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x4892d2(_0xda4d93,_0x24e72c,_0x549fe4,_0x36813d,_0x47a93b,_0x5bb26e,_0x5271d9,_0x29bb70,_0xd68b82,_0x24bee8){var _0x3bfd82=_0x3877e3,_0x5b8b35=this;_0x5b8b35[_0x3bfd82('0x123f')]=_0xd68b82[_0x3bfd82('0x15ed')](),_0x5b8b35['errors']=[],_0x5b8b35[_0x3bfd82('0x4b4')]=_0x3bfd82('0x130e'),_0x5b8b35['interval']=angular[_0x3bfd82('0xd75')](_0x47a93b),_0x5b8b35[_0x3bfd82('0x2530')]=_0x5bb26e,_0x5b8b35[_0x3bfd82('0x1c3e')]=![],_0x5b8b35[_0x3bfd82('0x4ca')]=[_0x3bfd82('0x869'),'custom','list'],_0x5b8b35['crudPermissions']=_0x24bee8,_0x5b8b35[_0x3bfd82('0x45e')]=_0x36813d['getDaysOfWeek'](),_0x5b8b35[_0x3bfd82('0x6fd')]=_0x36813d[_0x3bfd82('0x439')](),_0x5b8b35[_0x3bfd82('0x1f1e')]=_0x36813d[_0x3bfd82('0x1f1f')](),_0x5b8b35[_0x3bfd82('0x443')]=_0x36813d[_0x3bfd82('0x200e')]();if(!_0x5b8b35[_0x3bfd82('0xa07')])_0x5b8b35[_0x3bfd82('0xa07')]={'interval':_0x3bfd82('0x1cc4')},_0x5b8b35[_0x3bfd82('0x7fa')]=_0x3bfd82('0x869'),_0x5b8b35['title']=_0x3bfd82('0xe33'),_0x5b8b35['newInterval']=!![];else{if(_0x5b8b35['interval'][_0x3bfd82('0xa07')]!=='*,*,*,*'){_0x5b8b35[_0x3bfd82('0x7fa')]='custom';var _0x284f57=_0x5b8b35[_0x3bfd82('0xa07')][_0x3bfd82('0xa07')][_0x3bfd82('0x1af5')](','),_0x40ddc7=_0x284f57[0x0],_0x430530=_0x284f57[0x1],_0x570555=_0x284f57[0x2],_0x3b561e=_0x284f57[0x3];if(_0x40ddc7!=='*'){var _0x23e680=_0x40ddc7[_0x3bfd82('0x1af5')]('-')[0x0],_0x4fda93=_0x40ddc7['split']('-')[0x1],_0x301300;_0x301300=new Date(),_0x301300['setHours'](Number(_0x23e680[_0x3bfd82('0x1af5')](':')[0x0])),_0x301300[_0x3bfd82('0x119c')](Number(_0x23e680[_0x3bfd82('0x1af5')](':')[0x1])),_0x5b8b35[_0x3bfd82('0x3e8')]=_0x301300,_0x301300=new Date(),_0x301300['setHours'](Number(_0x4fda93[_0x3bfd82('0x1af5')](':')[0x0])),_0x301300[_0x3bfd82('0x119c')](Number(_0x4fda93[_0x3bfd82('0x1af5')](':')[0x1])),_0x5b8b35['timeRangeTo']=_0x301300;}_0x430530!=='*'&&(_0x5b8b35[_0x3bfd82('0x21a5')]=_0x430530['split']('-')[0x0],_0x5b8b35['dayOfWeekTo']=_0x430530[_0x3bfd82('0x1af5')]('-')[0x1]),_0x570555!=='*'&&(_0x5b8b35['monthDayFrom']=_0x570555[_0x3bfd82('0x1af5')]('-')[0x0],_0x5b8b35[_0x3bfd82('0x3bf')]=_0x570555[_0x3bfd82('0x1af5')]('-')[0x1]),_0x3b561e!=='*'&&(_0x5b8b35[_0x3bfd82('0xded')]=_0x3b561e[_0x3bfd82('0x1af5')]('-')[0x0],_0x5b8b35[_0x3bfd82('0x2633')]=_0x3b561e[_0x3bfd82('0x1af5')]('-')[0x1]);}else _0x5b8b35[_0x3bfd82('0x7fa')]='always';}_0xda4d93[_0x3bfd82('0x171b')]['id']&&!_0x5b8b35[_0x3bfd82('0xa07')][_0x3bfd82('0xd7f')]&&(_0x5b8b35[_0x3bfd82('0xa07')][_0x3bfd82('0x1ac8')]=_0xda4d93[_0x3bfd82('0x171b')]['id']);_0x5b8b35[_0x3bfd82('0xa07')][_0x3bfd82('0x1ac8')]&&_0x5b8b35['interval'][_0x3bfd82('0xd7f')]&&(_0x5b8b35[_0x3bfd82('0x7fa')]='list');_0x5b8b35['addNewInterval']=_0x5cdf87,_0x5b8b35[_0x3bfd82('0xc2e')]=_0x1b1ec4,_0x5b8b35[_0x3bfd82('0x167')]=_0x3dcbb6;_0x5b8b35[_0x3bfd82('0xa07')]['application']&&(_0xd68b82[_0x3bfd82('0x21de')](_0x3bfd82('0x1bd8'))?_0x29bb70[_0x3bfd82('0xa07')]['get']({'fields':_0x3bfd82('0xaaf'),'IntervalId':_0x3bfd82('0x27a'),'nolimit':!![]})['$promise'][_0x3bfd82('0x21ad')](function(_0x42a17b){var _0xe93030=_0x3bfd82;_0x5b8b35[_0xe93030('0x2530')]=_0x42a17b['rows']||[];})[_0x3bfd82('0x1c1d')](function(_0x13e279){var _0x15f9df=_0x3bfd82;_0x5271d9[_0x15f9df('0x2092')]({'title':_0x13e279[_0x15f9df('0x209')]?_0x15f9df('0x22d')+_0x13e279[_0x15f9df('0x209')]+_0x15f9df('0xa99')+_0x13e279[_0x15f9df('0x1808')]:'SYSTEM:GET_INTERVALS','msg':_0x13e279[_0x15f9df('0x11c2')]?JSON[_0x15f9df('0x25e')](_0x13e279[_0x15f9df('0x11c2')]):_0x13e279[_0x15f9df('0x174f')]()});}):_0x29bb70['interval']['get']({'fields':'id,name,interval,IntervalId','IntervalId':_0x3bfd82('0x27a'),'nolimit':!![]})[_0x3bfd82('0x1376')][_0x3bfd82('0x21ad')](function(_0x4cbb73){var _0x5dd6f3=_0x3bfd82;_0x5b8b35['intervals']=_0x4cbb73[_0x5dd6f3('0x1b33')]||[];})[_0x3bfd82('0x21ad')](function(){var _0x296803=_0x3bfd82;return _0x29bb70[_0x296803('0xab4')][_0x296803('0x595')]({'userProfileId':_0x5b8b35[_0x296803('0x123f')]['userProfileId'],'sectionId':0x3ec})[_0x296803('0x1376')];})['then'](function(_0x323f9e){var _0x50e6c2=_0x3bfd82,_0x4528b0=_0x323f9e&&_0x323f9e[_0x50e6c2('0x1b33')]?_0x323f9e['rows'][0x0]:null;if(!_0x4528b0)_0x5b8b35[_0x50e6c2('0x2530')]=[];else{if(!_0x4528b0[_0x50e6c2('0x80c')])return _0x29bb70[_0x50e6c2('0x185e')]['get']({'sectionId':_0x4528b0['id']})[_0x50e6c2('0x1376')][_0x50e6c2('0x21ad')](function(_0x14de93){var _0xcd6701=_0x50e6c2,_0x34fc27=_0x14de93&&_0x14de93[_0xcd6701('0x1b33')]?_0x14de93['rows']:[],_0x12f660=[],_0x44845f=null;_0x5b8b35[_0xcd6701('0xa07')]&&(_0x44845f=_0x86640f()['find'](_0x5b8b35[_0xcd6701('0x2530')],{'name':_0x5b8b35['interval'][_0xcd6701('0x1ac8')]})),_0x44845f&&!_0x86640f()['some'](_0x34fc27,[_0xcd6701('0x675'),_0x44845f['id']])&&_0x5b8b35[_0xcd6701('0x2530')]['forEach'](function(_0x527f78){var _0x1ade24=_0xcd6701;_0x527f78['id']===_0x44845f['id']&&(_0x527f78[_0x1ade24('0xba')]=![],_0x12f660[_0x1ade24('0x206c')](_0x527f78));}),_0x5b8b35[_0xcd6701('0x2530')]=_0x12f660;});}})[_0x3bfd82('0x1c1d')](function(_0x3e746c){var _0x2a5c28=_0x3bfd82;_0x5271d9[_0x2a5c28('0x2092')]({'title':_0x3e746c[_0x2a5c28('0x209')]?_0x2a5c28('0x22d')+_0x3e746c[_0x2a5c28('0x209')]+_0x2a5c28('0xa99')+_0x3e746c[_0x2a5c28('0x1808')]:_0x2a5c28('0xdc5'),'msg':_0x3e746c[_0x2a5c28('0x11c2')]?JSON[_0x2a5c28('0x25e')](_0x3e746c[_0x2a5c28('0x11c2')]):_0x3e746c[_0x2a5c28('0x174f')]()});}));function _0x17e70e(){var _0x59c0e6=_0x3bfd82;switch(_0x5b8b35[_0x59c0e6('0x7fa')]){case _0x59c0e6('0x869'):case _0x59c0e6('0x17fe'):return _0x59c0e6('0x1cc4');case'custom':{var _0x31dc0=[];if(_0x5b8b35[_0x59c0e6('0x3e8')]!=='*'&&_0x5b8b35['timeRangeFrom']&&_0x5b8b35['timeRangeTo']){var _0x352e9c=(_0x5b8b35[_0x59c0e6('0x3e8')][_0x59c0e6('0x10c1')]()<0xa?'0':'')+_0x5b8b35[_0x59c0e6('0x3e8')][_0x59c0e6('0x10c1')]()+':'+((_0x5b8b35[_0x59c0e6('0x3e8')][_0x59c0e6('0x27ee')]()<0xa?'0':'')+_0x5b8b35['timeRangeFrom'][_0x59c0e6('0x27ee')]()),_0x1cca4c=(_0x5b8b35[_0x59c0e6('0x1fbc')]['getHours']()<0xa?'0':'')+_0x5b8b35[_0x59c0e6('0x1fbc')]['getHours']()+':'+((_0x5b8b35[_0x59c0e6('0x1fbc')][_0x59c0e6('0x27ee')]()<0xa?'0':'')+_0x5b8b35[_0x59c0e6('0x1fbc')][_0x59c0e6('0x27ee')]());_0x31dc0[_0x59c0e6('0x206c')](_0x352e9c+'-'+_0x1cca4c);}else _0x31dc0[_0x59c0e6('0x206c')]('*');return _0x5b8b35[_0x59c0e6('0x21a5')]?_0x5b8b35['dayOfWeekTo']?_0x31dc0[_0x59c0e6('0x206c')](_0x5b8b35[_0x59c0e6('0x21a5')]+'-'+_0x5b8b35[_0x59c0e6('0x1556')]):_0x31dc0[_0x59c0e6('0x206c')](_0x5b8b35[_0x59c0e6('0x21a5')]):_0x31dc0[_0x59c0e6('0x206c')]('*'),_0x5b8b35[_0x59c0e6('0x14ec')]?_0x5b8b35['monthDayTo']?_0x31dc0['push'](_0x5b8b35[_0x59c0e6('0x14ec')]+'-'+_0x5b8b35[_0x59c0e6('0x3bf')]):_0x31dc0[_0x59c0e6('0x206c')](_0x5b8b35[_0x59c0e6('0x14ec')]):_0x31dc0[_0x59c0e6('0x206c')]('*'),_0x5b8b35[_0x59c0e6('0xded')]?_0x5b8b35[_0x59c0e6('0x2633')]?_0x31dc0['push'](_0x5b8b35[_0x59c0e6('0xded')]+'-'+_0x5b8b35['monthTo']):_0x31dc0[_0x59c0e6('0x206c')](_0x5b8b35[_0x59c0e6('0xded')]):_0x31dc0[_0x59c0e6('0x206c')]('*'),_0x31dc0[_0x59c0e6('0x136')]();}}}function _0x5cdf87(){var _0x3607c4=_0x3bfd82;_0x5b8b35[_0x3607c4('0x1a69')]=[],_0x5b8b35[_0x3607c4('0xa07')]['interval']=_0x17e70e(),_0x29bb70[_0x3607c4('0xa07')]['save'](_0x5b8b35['interval'])[_0x3607c4('0x1376')][_0x3607c4('0x21ad')](function(_0xd6095d){var _0xb1a78c=_0x3607c4;_0x5b8b35[_0xb1a78c('0x2530')][_0xb1a78c('0x206c')](_0xd6095d),_0x5271d9[_0xb1a78c('0xdb1')]({'title':'Interval\x20properly\x20created','msg':_0x5b8b35[_0xb1a78c('0xa07')]['name']?_0x5b8b35[_0xb1a78c('0xa07')][_0xb1a78c('0x19fe')]+'\x20has\x20been\x20created!':''}),_0x3dcbb6();})[_0x3607c4('0x1c1d')](function(_0x1ae6f9){var _0x352618=_0x3607c4;console[_0x352618('0x2092')](_0x1ae6f9),_0x5b8b35['errors']=_0x1ae6f9['data']['errors']||[{'message':_0x1ae6f9[_0x352618('0x174f')](),'type':_0x352618('0x27de')}];});}function _0x1b1ec4(){var _0x10632c=_0x3bfd82;_0x5b8b35[_0x10632c('0x1a69')]=[],_0x5b8b35[_0x10632c('0xa07')][_0x10632c('0xa07')]=_0x17e70e(),_0x5b8b35[_0x10632c('0xa07')][_0x10632c('0xd7f')]?(_0x5b8b35[_0x10632c('0x7fa')]!=='list'&&(_0x5b8b35[_0x10632c('0xa07')]['IntervalId']=null),_0x3dcbb6(_0x5b8b35['interval'])):_0x29bb70[_0x10632c('0xa07')][_0x10632c('0x5ef')]({'id':_0x5b8b35[_0x10632c('0xa07')]['id']},_0x5b8b35[_0x10632c('0xa07')])[_0x10632c('0x1376')][_0x10632c('0x21ad')](function(_0x1dbe89){var _0x3e074b=_0x10632c,_0x276317=_0x86640f()[_0x3e074b('0x1d2e')](_0x5b8b35[_0x3e074b('0x2530')],{'id':_0x1dbe89['id']});_0x276317&&_0x86640f()[_0x3e074b('0xd0e')](_0x276317,_0x1dbe89),_0x5271d9['success']({'title':'Interval\x20properly\x20saved!','msg':_0x3e074b('0x285a')}),_0x3dcbb6();})[_0x10632c('0x1c1d')](function(_0x57ebed){var _0x4ab929=_0x10632c;console[_0x4ab929('0x2092')](_0x57ebed),_0x5b8b35[_0x4ab929('0x1a69')]=_0x57ebed['data'][_0x4ab929('0x1a69')]||[{'message':_0x57ebed['toString'](),'type':_0x4ab929('0x13fa')}];});}function _0x3dcbb6(_0x238c0b){var _0x338147=_0x3bfd82;_0x24e72c[_0x338147('0x1c24')](_0x238c0b);}}const _0x1e3d8e=_0x4892d2;_0x3bf8ea['$inject']=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x97d'),_0x3877e3('0x26e3'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'crudPermissions'];function _0x3bf8ea(_0x185ff8,_0x3e257f,_0x3868f7,_0x67aaf5,_0x160dcc,_0x1a1e70,_0x32a809,_0x6fbc9){var _0x11c644=_0x3877e3,_0x52e559=this;_0x52e559[_0x11c644('0x123f')]=_0x32a809[_0x11c644('0x15ed')](),_0x52e559[_0x11c644('0x1a69')]=[],_0x52e559[_0x11c644('0x4b4')]='VOICE.EDIT_'+(_0x67aaf5[_0x11c644('0x522')]||_0x67aaf5['app'])[_0x11c644('0x2e8')](),_0x52e559[_0x11c644('0x25be')]=angular[_0x11c644('0xd75')](_0x67aaf5),_0x52e559[_0x11c644('0x5ed')]=_0x6fbc9,_0x52e559[_0x11c644('0x126a')]={};if(_0x52e559[_0x11c644('0x25be')][_0x11c644('0x23c2')])switch(_0x52e559[_0x11c644('0x25be')][_0x11c644('0x522')]?_0x52e559[_0x11c644('0x25be')][_0x11c644('0x522')]['toLowerCase']():_0x52e559[_0x11c644('0x25be')][_0x11c644('0x1f94')]['toLowerCase']()){case _0x11c644('0xf50'):break;case _0x11c644('0xc72'):{var _0x452b53=_0x52e559[_0x11c644('0x25be')][_0x11c644('0x23c2')][_0x11c644('0x1af5')](',');_0x52e559['playback'][_0x11c644('0xddb')]=_0x452b53[0x0],_0x52e559[_0x11c644('0x25be')][_0x11c644('0x10f')]=_0x452b53[0x1],_0x52e559[_0x11c644('0x25be')]['welcomemessage']=_0x452b53[_0x11c644('0xb3d')](0x2,_0x452b53[_0x11c644('0x577')])[_0x11c644('0x136')](',');}break;case _0x11c644('0x1c22'):{var _0x31ddae=_0x52e559[_0x11c644('0x25be')][_0x11c644('0x23c2')]['split'](',');_0x52e559['playback']['accesskeyid']=_0x31ddae[0x0],_0x52e559[_0x11c644('0x25be')][_0x11c644('0x797')]=_0x31ddae[0x1],_0x52e559['playback'][_0x11c644('0x20a3')]=_0x31ddae[0x2],_0x52e559['playback'][_0x11c644('0x15fe')]=_0x31ddae[0x3],_0x52e559[_0x11c644('0x25be')][_0x11c644('0x1cce')]=_0x31ddae[_0x11c644('0xb3d')](0x4,_0x31ddae[_0x11c644('0x577')])[_0x11c644('0x136')](',');}break;case _0x11c644('0x1b98'):{var _0x5c53a0=_0x52e559[_0x11c644('0x25be')][_0x11c644('0x23c2')][_0x11c644('0x1af5')](',');_0x52e559[_0x11c644('0x25be')][_0x11c644('0x13b6')]=isNaN(_0x5c53a0[0x0])?_0x5c53a0[0x0]:parseInt(_0x5c53a0[0x0],0xa),_0x52e559['playback'][_0x11c644('0xc1e')]=_0x5c53a0[_0x11c644('0xb3d')](0x1,_0x5c53a0[_0x11c644('0x577')])[_0x11c644('0x136')](',');}break;case _0x11c644('0x1224'):_0x52e559[_0x11c644('0x25be')][_0x11c644('0xc1e')]=_0x52e559['playback'][_0x11c644('0x23c2')];break;case _0x11c644('0x1125'):_0x52e559[_0x11c644('0x25be')][_0x11c644('0x19fe')]=_0x52e559['playback']['appdata']['split']('=')[0x0],_0x52e559[_0x11c644('0x25be')][_0x11c644('0x2228')]=_0x52e559[_0x11c644('0x25be')][_0x11c644('0x23c2')][_0x11c644('0x1af5')]('=')[0x1];break;case'agi':_0x52e559[_0x11c644('0x25be')][_0x11c644('0xbf8')]=_0x52e559[_0x11c644('0x25be')]['appdata'];break;default:{var _0x19b7b5=_0x52e559['playback']['appdata'][_0x11c644('0x1af5')](',');_0x52e559[_0x11c644('0x25be')][_0x11c644('0x23c2')]=_0x86640f()[_0x11c644('0x23aa')](_0x19b7b5[0x0])?_0x19b7b5[0x0]:isNaN(_0x19b7b5[0x0])?_0x19b7b5[0x0]:parseInt(_0x19b7b5[0x0],0xa),_0x52e559['playback'][_0x11c644('0x26a0')]=_0x86640f()[_0x11c644('0x23aa')](_0x19b7b5[0x1])?_0x19b7b5[0x1]:isNaN(_0x19b7b5[0x1])?_0x19b7b5[0x1]:parseInt(_0x19b7b5[0x1],0xa);}break;}else{}_0x52e559[_0x11c644('0x25be')][_0x11c644('0x7fa')]&&_0x52e559['playback'][_0x11c644('0x7fa')]['toLowerCase']()===_0x11c644('0x2300')&&_0x52e559[_0x11c644('0x25be')]['appType']['toLowerCase']()===_0x11c644('0x2363')&&(_0x52e559[_0x11c644('0x25be')][_0x11c644('0x1995')]=_0x52e559['playback']['phone']?_0x52e559[_0x11c644('0x25be')][_0x11c644('0x159e')][_0x11c644('0x1af5')]('$')[0x0]:undefined,_0x52e559[_0x11c644('0x25be')]['callerId']=_0x52e559[_0x11c644('0x25be')][_0x11c644('0x1f5a')]?_0x11c644('0x587')+_0x52e559['playback'][_0x11c644('0x1f5a')]:undefined);_0x52e559[_0x11c644('0x1057')]=_0x3ab813,_0x52e559[_0x11c644('0x167')]=_0x47642d,_0x32a809['hasRole'](_0x11c644('0x1bd8'))?_0x1a1e70[_0x11c644('0x2397')]['get']({'fields':_0x11c644('0x343'),'sort':_0x11c644('0x19fe'),'nolimit':_0x11c644('0x19bd')})[_0x11c644('0x1376')][_0x11c644('0x21ad')](function(_0x5298d9){var _0x58a271=_0x11c644;_0x52e559[_0x58a271('0xc64')]=_0x5298d9[_0x58a271('0x1b33')]||[];})[_0x11c644('0x1c1d')](function(_0x227605){var _0x34841c=_0x11c644;_0x3868f7[_0x34841c('0x2092')]({'title':_0x227605[_0x34841c('0x209')]?_0x34841c('0x22d')+_0x227605[_0x34841c('0x209')]+_0x34841c('0xa99')+_0x227605[_0x34841c('0x1808')]:_0x34841c('0x2671'),'msg':_0x227605[_0x34841c('0x11c2')]?JSON[_0x34841c('0x25e')](_0x227605[_0x34841c('0x11c2')]):_0x227605[_0x34841c('0x174f')]()});}):_0x1a1e70['sound'][_0x11c644('0x595')]({'fields':_0x11c644('0x343'),'sort':'name','nolimit':'true'})[_0x11c644('0x1376')]['then'](function(_0x345a3c){var _0x11bace=_0x11c644;_0x52e559['sounds']=_0x345a3c[_0x11bace('0x1b33')]||[];})[_0x11c644('0x21ad')](function(){var _0x577847=_0x11c644;return _0x1a1e70[_0x577847('0xab4')][_0x577847('0x595')]({'userProfileId':_0x52e559['currentUser']['userProfileId'],'sectionId':0x3ef})[_0x577847('0x1376')];})[_0x11c644('0x21ad')](function(_0x4c4408){var _0x3e3af1=_0x11c644,_0xe20057=_0x4c4408&&_0x4c4408[_0x3e3af1('0x1b33')]?_0x4c4408[_0x3e3af1('0x1b33')][0x0]:null;if(!_0xe20057){var _0x3937ab=[],_0x1193ef=null;_0x52e559[_0x3e3af1('0x25be')]&&(_0x1193ef=_0x86640f()[_0x3e3af1('0x1d2e')](_0x52e559[_0x3e3af1('0xc64')],{'save_name':_0x52e559[_0x3e3af1('0x25be')][_0x3e3af1('0x23c2')]}));for(var _0x46c592=0x0;_0x46c592<_0x52e559[_0x3e3af1('0xc64')][_0x3e3af1('0x577')];_0x46c592++){_0x1193ef&&_0x52e559[_0x3e3af1('0xc64')][_0x46c592]['id']===_0x1193ef['id']&&(_0x52e559[_0x3e3af1('0xc64')][_0x46c592][_0x3e3af1('0xba')]=![],_0x3937ab[_0x3e3af1('0x206c')](_0x52e559[_0x3e3af1('0xc64')][_0x46c592]));}_0x52e559[_0x3e3af1('0xc64')]=_0x3937ab;}else{if(!_0xe20057[_0x3e3af1('0x80c')])return _0x1a1e70[_0x3e3af1('0x185e')][_0x3e3af1('0x595')]({'sectionId':_0xe20057['id']})[_0x3e3af1('0x1376')][_0x3e3af1('0x21ad')](function(_0x5f27e3){var _0x3f6e05=_0x3e3af1,_0x2eed05=_0x86640f()['map'](_0x5f27e3[_0x3f6e05('0x1b33')],function(_0x5d69d3){var _0x40ef1e=_0x3f6e05;return _0x86640f()[_0x40ef1e('0x1d2e')](_0x52e559[_0x40ef1e('0xc64')],{'id':_0x5d69d3[_0x40ef1e('0x675')]});}),_0x224b67=null;_0x52e559[_0x3f6e05('0x25be')]&&(_0x224b67=_0x86640f()[_0x3f6e05('0x1d2e')](_0x52e559['sounds'],{'save_name':_0x52e559[_0x3f6e05('0x25be')][_0x3f6e05('0x23c2')]}));if(_0x224b67&&!_0x86640f()[_0x3f6e05('0x2664')](_0x2eed05,['id',_0x224b67['id']])){var _0x2effa0=_0x86640f()[_0x3f6e05('0x1d2e')](_0x52e559['sounds'],{'id':_0x224b67['id']});_0x2effa0[_0x3f6e05('0xba')]=![],_0x2eed05[_0x3f6e05('0x206c')](_0x2effa0);}_0x52e559[_0x3f6e05('0xc64')]=_0x2eed05;});}})[_0x11c644('0x1c1d')](function(_0x526913){var _0x4be89a=_0x11c644;_0x3868f7[_0x4be89a('0x2092')]({'title':_0x526913[_0x4be89a('0x209')]?_0x4be89a('0x22d')+_0x526913[_0x4be89a('0x209')]+_0x4be89a('0xa99')+_0x526913[_0x4be89a('0x1808')]:'SYSTEM:GETsounds','msg':_0x526913[_0x4be89a('0x11c2')]?JSON[_0x4be89a('0x25e')](_0x526913[_0x4be89a('0x11c2')]):_0x526913['toString']()});});function _0x3ab813(){var _0x589844=_0x11c644;_0x52e559['errors']=[];var _0x237d71=[];_0x52e559['playback'][_0x589844('0x7fa')]&&_0x52e559[_0x589844('0x25be')][_0x589844('0x7fa')][_0x589844('0xac2')]()===_0x589844('0x2300')&&_0x52e559[_0x589844('0x25be')]['appType']===_0x589844('0x4ea')&&(_0x52e559[_0x589844('0x25be')][_0x589844('0x159e')]=_0x160dcc[_0x589844('0x988')]?(_0x52e559['playback'][_0x589844('0x1995')]||'')+_0x589844('0x349')+_0x160dcc[_0x589844('0x988')]+'}':(_0x52e559[_0x589844('0x25be')][_0x589844('0x1995')]||'')+_0x589844('0x2560'),_0x160dcc[_0x589844('0xad1')]!==_0x589844('0x983')?_0x52e559[_0x589844('0x25be')][_0x589844('0x26a0')][_0x589844('0x2004')](_0x589844('0x478'))<0x0&&(_0x52e559[_0x589844('0x25be')]['options']+='U(xcally-mixmonitor-context)'):_0x52e559[_0x589844('0x25be')][_0x589844('0x26a0')]=_0x52e559[_0x589844('0x25be')][_0x589844('0x26a0')][_0x589844('0x16e4')](_0x589844('0x478'),''));if(_0x52e559[_0x589844('0x25be')][_0x589844('0x522')]&&_0x52e559[_0x589844('0x25be')][_0x589844('0x522')]===_0x589844('0xf50')){}else switch((_0x52e559[_0x589844('0x25be')][_0x589844('0x1f94')]||_0x52e559['playback'][_0x589844('0x522')])[_0x589844('0xac2')]()){case _0x589844('0x1125'):_0x52e559['playback']['appdata']=_0x52e559['playback'][_0x589844('0x19fe')]+'='+_0x52e559[_0x589844('0x25be')][_0x589844('0x2228')];break;case'custom':break;default:_0x237d71[0x0]=_0x52e559['playback'][_0x589844('0x23c2')],_0x237d71[0x1]=_0x52e559['playback'][_0x589844('0x26a0')],_0x52e559[_0x589844('0x25be')]['appdata']=_0x237d71['join'](',');}_0x47642d(_0x52e559[_0x589844('0x25be')]);}function _0x47642d(_0x1f58bd){var _0x3e3b35=_0x11c644;_0x185ff8[_0x3e3b35('0x1c24')](_0x1f58bd);}}const _0xfee8a8=_0x3bf8ea;_0x533a30['$inject']=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x97d'),'internalroute',_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'crudPermissions'];function _0x533a30(_0x3f8ac9,_0x4e7c33,_0x74b258,_0x4bfc9a,_0x3996a0,_0x5a18f3,_0x174c80,_0x549300){var _0x542ad8=_0x3877e3,_0x4fbb42=this;_0x4fbb42[_0x542ad8('0x123f')]=_0x174c80[_0x542ad8('0x15ed')](),_0x4fbb42[_0x542ad8('0x1a69')]=[],_0x4fbb42[_0x542ad8('0x4b4')]='VOICE.EDIT_'+(_0x4bfc9a[_0x542ad8('0x522')]||_0x4bfc9a[_0x542ad8('0x1f94')])[_0x542ad8('0x2e8')](),_0x4fbb42[_0x542ad8('0xbdd')]=angular['copy'](_0x4bfc9a),_0x4fbb42[_0x542ad8('0x5ed')]=_0x549300,_0x4fbb42[_0x542ad8('0x126a')]={};if(_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0x23c2')])switch(_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0x522')]?_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0x522')]['toLowerCase']():_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0x1f94')][_0x542ad8('0xac2')]()){case _0x542ad8('0xf50'):break;case _0x542ad8('0xc72'):{var _0x120a23=_0x4fbb42[_0x542ad8('0xbdd')]['appdata'][_0x542ad8('0x1af5')](',');_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0xddb')]=_0x120a23[0x0],_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0x10f')]=_0x120a23[0x1],_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0x1cce')]=_0x120a23['slice'](0x2,_0x120a23['length'])['join'](',');}break;case _0x542ad8('0x1c22'):{var _0x229a7e=_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0x23c2')]['split'](',');_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0x21c6')]=_0x229a7e[0x0],_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0x797')]=_0x229a7e[0x1],_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0x20a3')]=_0x229a7e[0x2],_0x4fbb42['queue']['botname']=_0x229a7e[0x3],_0x4fbb42[_0x542ad8('0xbdd')]['welcomemessage']=_0x229a7e[_0x542ad8('0xb3d')](0x4,_0x229a7e['length'])[_0x542ad8('0x136')](',');}break;case _0x542ad8('0x1b98'):{var _0x4cf7d9=_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0x23c2')][_0x542ad8('0x1af5')](',');_0x4fbb42[_0x542ad8('0xbdd')]['times']=isNaN(_0x4cf7d9[0x0])?_0x4cf7d9[0x0]:parseInt(_0x4cf7d9[0x0],0xa),_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0xc1e')]=_0x4cf7d9[_0x542ad8('0xb3d')](0x1,_0x4cf7d9[_0x542ad8('0x577')])[_0x542ad8('0x136')](',');}break;case _0x542ad8('0x1224'):_0x4fbb42['queue'][_0x542ad8('0xc1e')]=_0x4fbb42['queue'][_0x542ad8('0x23c2')];break;case _0x542ad8('0x1125'):_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0x19fe')]=_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0x23c2')][_0x542ad8('0x1af5')]('=')[0x0],_0x4fbb42[_0x542ad8('0xbdd')]['value']=_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0x23c2')][_0x542ad8('0x1af5')]('=')[0x1];break;case _0x542ad8('0x2356'):_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0xbf8')]=_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0x23c2')];break;default:{var _0x2b63d9=_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0x23c2')][_0x542ad8('0x1af5')](',');_0x4fbb42['queue'][_0x542ad8('0xbdd')]=_0x86640f()[_0x542ad8('0x23aa')](_0x2b63d9[0x0])?_0x2b63d9[0x0]:isNaN(_0x2b63d9[0x0])?_0x2b63d9[0x0]:parseInt(_0x2b63d9[0x0],0xa),_0x4fbb42[_0x542ad8('0xbdd')]['options']=_0x86640f()[_0x542ad8('0x23aa')](_0x2b63d9[0x1])?_0x2b63d9[0x1]:isNaN(_0x2b63d9[0x1])?_0x2b63d9[0x1]:parseInt(_0x2b63d9[0x1],0xa),_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0x2028')]=_0x86640f()[_0x542ad8('0x23aa')](_0x2b63d9[0x2])?_0x2b63d9[0x2]:isNaN(_0x2b63d9[0x2])?_0x2b63d9[0x2]:parseInt(_0x2b63d9[0x2],0xa),_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0x2397')]=_0x86640f()[_0x542ad8('0x23aa')](_0x2b63d9[0x3])?_0x2b63d9[0x3]:isNaN(_0x2b63d9[0x3])?_0x2b63d9[0x3]:parseInt(_0x2b63d9[0x3],0xa),_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0x2133')]=_0x86640f()[_0x542ad8('0x23aa')](_0x2b63d9[0x4])?_0x2b63d9[0x4]:isNaN(_0x2b63d9[0x4])?_0x2b63d9[0x4]:parseInt(_0x2b63d9[0x4],0xa),_0x4fbb42['queue'][_0x542ad8('0x2356')]=_0x86640f()[_0x542ad8('0x23aa')](_0x2b63d9[0x5])?_0x2b63d9[0x5]:isNaN(_0x2b63d9[0x5])?_0x2b63d9[0x5]:parseInt(_0x2b63d9[0x5],0xa),_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0x1d46')]=_0x86640f()[_0x542ad8('0x23aa')](_0x2b63d9[0x6])?_0x2b63d9[0x6]:isNaN(_0x2b63d9[0x6])?_0x2b63d9[0x6]:parseInt(_0x2b63d9[0x6],0xa),_0x4fbb42[_0x542ad8('0xbdd')]['gosub']=_0x86640f()['isEmpty'](_0x2b63d9[0x7])?_0x2b63d9[0x7]:isNaN(_0x2b63d9[0x7])?_0x2b63d9[0x7]:parseInt(_0x2b63d9[0x7],0xa),_0x4fbb42['queue']['rule']=_0x86640f()['isEmpty'](_0x2b63d9[0x8])?_0x2b63d9[0x8]:isNaN(_0x2b63d9[0x8])?_0x2b63d9[0x8]:parseInt(_0x2b63d9[0x8],0xa),_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0x1c9f')]=_0x86640f()[_0x542ad8('0x23aa')](_0x2b63d9[0x9])?_0x2b63d9[0x9]:isNaN(_0x2b63d9[0x9])?_0x2b63d9[0x9]:parseInt(_0x2b63d9[0x9],0xa);}break;}else{}_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0x7fa')]&&_0x4fbb42['queue'][_0x542ad8('0x7fa')][_0x542ad8('0xac2')]()===_0x542ad8('0x2300')&&_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0x522')][_0x542ad8('0xac2')]()==='outbounddial'&&(_0x4fbb42[_0x542ad8('0xbdd')]['prefix']=_0x4fbb42['queue'][_0x542ad8('0x159e')]?_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0x159e')]['split']('$')[0x0]:undefined,_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0x26f7')]=_0x4fbb42['queue'][_0x542ad8('0x1f5a')]?_0x542ad8('0x587')+_0x4fbb42[_0x542ad8('0xbdd')][_0x542ad8('0x1f5a')]:undefined);_0x4fbb42[_0x542ad8('0x1057')]=_0x3cd315,_0x4fbb42[_0x542ad8('0x167')]=_0x4be32c,_0x174c80[_0x542ad8('0x21de')](_0x542ad8('0x1bd8'))?_0x5a18f3['sound'][_0x542ad8('0x595')]({'fields':_0x542ad8('0x343'),'sort':_0x542ad8('0x19fe'),'nolimit':_0x542ad8('0x19bd')})[_0x542ad8('0x1376')][_0x542ad8('0x21ad')](function(_0x42772d){var _0x5295df=_0x542ad8;_0x4fbb42[_0x5295df('0xc64')]=_0x42772d[_0x5295df('0x1b33')]||[];})[_0x542ad8('0x1c1d')](function(_0x4a6041){var _0x12c93d=_0x542ad8;_0x74b258[_0x12c93d('0x2092')]({'title':_0x4a6041[_0x12c93d('0x209')]?_0x12c93d('0x22d')+_0x4a6041['status']+_0x12c93d('0xa99')+_0x4a6041[_0x12c93d('0x1808')]:'SYSTEM:GET_SOUNDS','msg':_0x4a6041[_0x12c93d('0x11c2')]?JSON[_0x12c93d('0x25e')](_0x4a6041['data']):_0x4a6041[_0x12c93d('0x174f')]()});}):_0x5a18f3[_0x542ad8('0x2397')][_0x542ad8('0x595')]({'fields':_0x542ad8('0x343'),'sort':_0x542ad8('0x19fe'),'nolimit':_0x542ad8('0x19bd')})[_0x542ad8('0x1376')][_0x542ad8('0x21ad')](function(_0x39c50b){var _0x3c13eb=_0x542ad8;_0x4fbb42[_0x3c13eb('0xc64')]=_0x39c50b[_0x3c13eb('0x1b33')]||[];})['then'](function(){var _0x5553f8=_0x542ad8;return _0x5a18f3[_0x5553f8('0xab4')][_0x5553f8('0x595')]({'userProfileId':_0x4fbb42[_0x5553f8('0x123f')][_0x5553f8('0x1618')],'sectionId':0x3ef})['$promise'];})[_0x542ad8('0x21ad')](function(_0x4a7f5f){var _0x262daa=_0x542ad8,_0x19f887=_0x4a7f5f&&_0x4a7f5f[_0x262daa('0x1b33')]?_0x4a7f5f['rows'][0x0]:null;if(!_0x19f887){var _0x3202d2=[],_0x345176=null;_0x4fbb42[_0x262daa('0xbdd')]&&(_0x345176=_0x86640f()[_0x262daa('0x1d2e')](_0x4fbb42[_0x262daa('0xc64')],{'save_name':_0x4fbb42[_0x262daa('0xbdd')]['sound']}));for(var _0x4e3fc5=0x0;_0x4e3fc5<_0x4fbb42[_0x262daa('0xc64')][_0x262daa('0x577')];_0x4e3fc5++){_0x345176&&_0x4fbb42[_0x262daa('0xc64')][_0x4e3fc5]['id']===_0x345176['id']&&(_0x4fbb42['sounds'][_0x4e3fc5]['canSelect']=![],_0x3202d2['push'](_0x4fbb42[_0x262daa('0xc64')][_0x4e3fc5]));}_0x4fbb42[_0x262daa('0xc64')]=_0x3202d2;}else{if(!_0x19f887[_0x262daa('0x80c')])return _0x5a18f3[_0x262daa('0x185e')][_0x262daa('0x595')]({'sectionId':_0x19f887['id']})[_0x262daa('0x1376')]['then'](function(_0x1a56dd){var _0x375e34=_0x262daa,_0xb10976=_0x86640f()[_0x375e34('0x26c3')](_0x1a56dd['rows'],function(_0x1350ec){var _0x186ba1=_0x375e34;return _0x86640f()[_0x186ba1('0x1d2e')](_0x4fbb42[_0x186ba1('0xc64')],{'id':_0x1350ec[_0x186ba1('0x675')]});}),_0x1afcea=null;_0x4fbb42[_0x375e34('0xbdd')]&&(_0x1afcea=_0x86640f()[_0x375e34('0x1d2e')](_0x4fbb42[_0x375e34('0xc64')],{'save_name':_0x4fbb42[_0x375e34('0xbdd')][_0x375e34('0x2397')]}));if(_0x1afcea&&!_0x86640f()[_0x375e34('0x2664')](_0xb10976,['id',_0x1afcea['id']])){var _0x5118d5=_0x86640f()[_0x375e34('0x1d2e')](_0x4fbb42[_0x375e34('0xc64')],{'id':_0x1afcea['id']});_0x5118d5['canSelect']=![],_0xb10976['push'](_0x5118d5);}_0x4fbb42[_0x375e34('0xc64')]=_0xb10976;});}})[_0x542ad8('0x1c1d')](function(_0x56c57c){var _0x402f24=_0x542ad8;_0x74b258[_0x402f24('0x2092')]({'title':_0x56c57c[_0x402f24('0x209')]?_0x402f24('0x22d')+_0x56c57c[_0x402f24('0x209')]+'\x20-\x20'+_0x56c57c['statusText']:_0x402f24('0x1caa'),'msg':_0x56c57c[_0x402f24('0x11c2')]?JSON[_0x402f24('0x25e')](_0x56c57c[_0x402f24('0x11c2')]):_0x56c57c[_0x402f24('0x174f')]()});}),_0x174c80[_0x542ad8('0x21de')](_0x542ad8('0x1bd8'))?_0x5a18f3[_0x542ad8('0xb97')][_0x542ad8('0x595')]({'type':_0x542ad8('0x923'),'fields':_0x542ad8('0xfa'),'sort':'name','nolimit':_0x542ad8('0x19bd')})[_0x542ad8('0x1376')][_0x542ad8('0x21ad')](function(_0x3dbb29){var _0x4cac4a=_0x542ad8;_0x4fbb42[_0x4cac4a('0xb7a')]=_0x3dbb29['rows']||[];})[_0x542ad8('0x1c1d')](function(_0x8ae369){var _0x1c0d2d=_0x542ad8;_0x74b258[_0x1c0d2d('0x2092')]({'title':_0x8ae369['status']?_0x1c0d2d('0x22d')+_0x8ae369['status']+_0x1c0d2d('0xa99')+_0x8ae369['statusText']:_0x1c0d2d('0x1612'),'msg':_0x8ae369['data']?JSON[_0x1c0d2d('0x25e')](_0x8ae369[_0x1c0d2d('0x11c2')]):_0x8ae369[_0x1c0d2d('0x174f')]()});}):_0x5a18f3[_0x542ad8('0xb97')][_0x542ad8('0x595')]({'type':'inbound','fields':_0x542ad8('0xfa'),'sort':_0x542ad8('0x19fe'),'nolimit':_0x542ad8('0x19bd')})[_0x542ad8('0x1376')][_0x542ad8('0x21ad')](function(_0x5bfc81){var _0x58e7b2=_0x542ad8;_0x4fbb42[_0x58e7b2('0xb7a')]=_0x5bfc81[_0x58e7b2('0x1b33')]||[];})['then'](function(){var _0x1b0e7d=_0x542ad8;return _0x5a18f3[_0x1b0e7d('0xab4')]['get']({'userProfileId':_0x4fbb42[_0x1b0e7d('0x123f')]['userProfileId'],'sectionId':0x191})[_0x1b0e7d('0x1376')];})[_0x542ad8('0x21ad')](function(_0x4b857d){var _0x3ced3b=_0x542ad8,_0x344e95=_0x4b857d&&_0x4b857d[_0x3ced3b('0x1b33')]?_0x4b857d[_0x3ced3b('0x1b33')][0x0]:null;if(!_0x344e95){var _0x37d6a1=[],_0x156d2c=null;_0x4fbb42[_0x3ced3b('0xbdd')]&&(_0x156d2c=_0x86640f()[_0x3ced3b('0x1d2e')](_0x4fbb42['queues'],{'name':_0x4fbb42[_0x3ced3b('0xbdd')]['queue']}));for(var _0x167d2d=0x0;_0x167d2d<_0x4fbb42[_0x3ced3b('0xb7a')][_0x3ced3b('0x577')];_0x167d2d++){_0x156d2c&&_0x4fbb42[_0x3ced3b('0xb7a')][_0x167d2d]['id']===_0x156d2c['id']&&(_0x4fbb42[_0x3ced3b('0xb7a')][_0x167d2d][_0x3ced3b('0xba')]=![],_0x37d6a1[_0x3ced3b('0x206c')](_0x4fbb42['queues'][_0x167d2d]));}_0x4fbb42[_0x3ced3b('0xb7a')]=_0x37d6a1;}else{if(!_0x344e95['autoAssociation'])return _0x5a18f3['userProfileResource']['get']({'sectionId':_0x344e95['id']})[_0x3ced3b('0x1376')][_0x3ced3b('0x21ad')](function(_0x1c0a38){var _0x318db5=_0x3ced3b,_0x43347a=_0x86640f()[_0x318db5('0x26c3')](_0x1c0a38[_0x318db5('0x1b33')],function(_0x99f2da){var _0xc5a3c3=_0x318db5;return _0x86640f()['find'](_0x4fbb42[_0xc5a3c3('0xb7a')],{'id':_0x99f2da[_0xc5a3c3('0x675')]});}),_0x2360b0=null;_0x4fbb42[_0x318db5('0xbdd')]&&(_0x2360b0=_0x86640f()['find'](_0x4fbb42[_0x318db5('0xb7a')],{'name':_0x4fbb42[_0x318db5('0xbdd')]['queue']}));if(_0x2360b0&&!_0x86640f()[_0x318db5('0x2664')](_0x43347a,['id',_0x2360b0['id']])){var _0x2578bd=_0x86640f()[_0x318db5('0x1d2e')](_0x4fbb42[_0x318db5('0xb7a')],{'id':_0x2360b0['id']});_0x2578bd[_0x318db5('0xba')]=![],_0x43347a[_0x318db5('0x206c')](_0x2578bd);}_0x4fbb42[_0x318db5('0xb7a')]=_0x43347a;});}})[_0x542ad8('0x1c1d')](function(_0x1ce674){var _0x33b7f5=_0x542ad8;_0x74b258['error']({'title':_0x1ce674[_0x33b7f5('0x209')]?_0x33b7f5('0x22d')+_0x1ce674[_0x33b7f5('0x209')]+_0x33b7f5('0xa99')+_0x1ce674[_0x33b7f5('0x1808')]:_0x33b7f5('0x1b46'),'msg':_0x1ce674[_0x33b7f5('0x11c2')]?JSON[_0x33b7f5('0x25e')](_0x1ce674[_0x33b7f5('0x11c2')]):_0x1ce674[_0x33b7f5('0x174f')]()});});function _0x3cd315(){var _0x38ab27=_0x542ad8;_0x4fbb42[_0x38ab27('0x1a69')]=[];var _0x554384=[];_0x4fbb42[_0x38ab27('0xbdd')][_0x38ab27('0x7fa')]&&_0x4fbb42[_0x38ab27('0xbdd')][_0x38ab27('0x7fa')][_0x38ab27('0xac2')]()===_0x38ab27('0x2300')&&_0x4fbb42[_0x38ab27('0xbdd')][_0x38ab27('0x522')]===_0x38ab27('0x4ea')&&(_0x4fbb42[_0x38ab27('0xbdd')]['phone']=_0x3996a0[_0x38ab27('0x988')]?(_0x4fbb42[_0x38ab27('0xbdd')]['prefix']||'')+_0x38ab27('0x349')+_0x3996a0[_0x38ab27('0x988')]+'}':(_0x4fbb42['queue'][_0x38ab27('0x1995')]||'')+'${EXTEN}',_0x3996a0[_0x38ab27('0xad1')]!==_0x38ab27('0x983')?_0x4fbb42['queue'][_0x38ab27('0x26a0')][_0x38ab27('0x2004')]('U(xcally-mixmonitor-context)')<0x0&&(_0x4fbb42['queue']['options']+=_0x38ab27('0x478')):_0x4fbb42[_0x38ab27('0xbdd')][_0x38ab27('0x26a0')]=_0x4fbb42[_0x38ab27('0xbdd')][_0x38ab27('0x26a0')]['replace'](_0x38ab27('0x478'),''));if(_0x4fbb42[_0x38ab27('0xbdd')][_0x38ab27('0x522')]&&_0x4fbb42[_0x38ab27('0xbdd')][_0x38ab27('0x522')]===_0x38ab27('0xf50')){}else switch((_0x4fbb42[_0x38ab27('0xbdd')][_0x38ab27('0x1f94')]||_0x4fbb42[_0x38ab27('0xbdd')][_0x38ab27('0x522')])[_0x38ab27('0xac2')]()){case'set':_0x4fbb42['queue'][_0x38ab27('0x23c2')]=_0x4fbb42['queue'][_0x38ab27('0x19fe')]+'='+_0x4fbb42[_0x38ab27('0xbdd')][_0x38ab27('0x2228')];break;case'custom':break;default:_0x554384[0x0]=_0x4fbb42[_0x38ab27('0xbdd')][_0x38ab27('0xbdd')],_0x554384[0x1]=_0x4fbb42[_0x38ab27('0xbdd')][_0x38ab27('0x26a0')],_0x554384[0x2]=_0x4fbb42[_0x38ab27('0xbdd')][_0x38ab27('0x2028')],_0x554384[0x3]=_0x4fbb42['queue'][_0x38ab27('0x2397')],_0x554384[0x4]=_0x4fbb42[_0x38ab27('0xbdd')]['timeout'],_0x554384[0x5]=_0x4fbb42[_0x38ab27('0xbdd')][_0x38ab27('0x2356')],_0x554384[0x6]=_0x4fbb42[_0x38ab27('0xbdd')][_0x38ab27('0x1d46')],_0x554384[0x7]=_0x4fbb42[_0x38ab27('0xbdd')][_0x38ab27('0x1e22')],_0x554384[0x8]=_0x4fbb42[_0x38ab27('0xbdd')]['rule'],_0x554384[0x9]=_0x4fbb42[_0x38ab27('0xbdd')][_0x38ab27('0x1c9f')],_0x4fbb42[_0x38ab27('0xbdd')][_0x38ab27('0x23c2')]=_0x554384[_0x38ab27('0x136')](',');}_0x4be32c(_0x4fbb42[_0x38ab27('0xbdd')]);}function _0x4be32c(_0x41da9a){var _0x7a552c=_0x542ad8;_0x3f8ac9[_0x7a552c('0x1c24')](_0x41da9a);}}const _0x4d98e7=_0x533a30;_0x2d3a90[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q','toasty',_0x3877e3('0x97d'),'internalroute',_0x3877e3('0xccd'),'Auth',_0x3877e3('0x5ed')];function _0x2d3a90(_0x334a7c,_0x5ca436,_0x1a0831,_0x2085e1,_0x435c27,_0x263b57,_0xb9bcca,_0x1ac0e0){var _0x40dbf2=_0x3877e3,_0x37ffa5=this;_0x37ffa5['currentUser']=_0xb9bcca[_0x40dbf2('0x15ed')](),_0x37ffa5[_0x40dbf2('0x1a69')]=[],_0x37ffa5[_0x40dbf2('0x4b4')]=_0x40dbf2('0x1b79')+(_0x2085e1[_0x40dbf2('0x522')]||_0x2085e1['app'])[_0x40dbf2('0x2e8')](),_0x37ffa5['ringgroup']=angular['copy'](_0x2085e1),_0x37ffa5['crudPermissions']=_0x1ac0e0,_0x37ffa5[_0x40dbf2('0x126a')]={};if(_0x37ffa5[_0x40dbf2('0x1fa6')][_0x40dbf2('0x23c2')])switch(_0x37ffa5['ringgroup'][_0x40dbf2('0x522')]?_0x37ffa5[_0x40dbf2('0x1fa6')][_0x40dbf2('0x522')][_0x40dbf2('0xac2')]():_0x37ffa5[_0x40dbf2('0x1fa6')][_0x40dbf2('0x1f94')][_0x40dbf2('0xac2')]()){case'custom':break;case _0x40dbf2('0xc72'):{var _0x564f19=_0x37ffa5[_0x40dbf2('0x1fa6')]['appdata']['split'](',');_0x37ffa5['ringgroup'][_0x40dbf2('0xddb')]=_0x564f19[0x0],_0x37ffa5[_0x40dbf2('0x1fa6')][_0x40dbf2('0x10f')]=_0x564f19[0x1],_0x37ffa5[_0x40dbf2('0x1fa6')][_0x40dbf2('0x1cce')]=_0x564f19[_0x40dbf2('0xb3d')](0x2,_0x564f19[_0x40dbf2('0x577')])['join'](',');}break;case _0x40dbf2('0x1c22'):{var _0x33867c=_0x37ffa5['ringgroup'][_0x40dbf2('0x23c2')][_0x40dbf2('0x1af5')](',');_0x37ffa5[_0x40dbf2('0x1fa6')][_0x40dbf2('0x21c6')]=_0x33867c[0x0],_0x37ffa5[_0x40dbf2('0x1fa6')]['secretaccesskey']=_0x33867c[0x1],_0x37ffa5[_0x40dbf2('0x1fa6')][_0x40dbf2('0x20a3')]=_0x33867c[0x2],_0x37ffa5[_0x40dbf2('0x1fa6')][_0x40dbf2('0x15fe')]=_0x33867c[0x3],_0x37ffa5['ringgroup'][_0x40dbf2('0x1cce')]=_0x33867c['slice'](0x4,_0x33867c['length'])[_0x40dbf2('0x136')](',');}break;case'autoreply':{var _0x367c85=_0x37ffa5[_0x40dbf2('0x1fa6')][_0x40dbf2('0x23c2')][_0x40dbf2('0x1af5')](',');_0x37ffa5[_0x40dbf2('0x1fa6')][_0x40dbf2('0x13b6')]=isNaN(_0x367c85[0x0])?_0x367c85[0x0]:parseInt(_0x367c85[0x0],0xa),_0x37ffa5[_0x40dbf2('0x1fa6')]['text']=_0x367c85['slice'](0x1,_0x367c85[_0x40dbf2('0x577')])['join'](',');}break;case _0x40dbf2('0x1224'):_0x37ffa5['ringgroup'][_0x40dbf2('0xc1e')]=_0x37ffa5[_0x40dbf2('0x1fa6')][_0x40dbf2('0x23c2')];break;case _0x40dbf2('0x1125'):_0x37ffa5[_0x40dbf2('0x1fa6')][_0x40dbf2('0x19fe')]=_0x37ffa5['ringgroup'][_0x40dbf2('0x23c2')]['split']('=')[0x0],_0x37ffa5[_0x40dbf2('0x1fa6')][_0x40dbf2('0x2228')]=_0x37ffa5[_0x40dbf2('0x1fa6')][_0x40dbf2('0x23c2')][_0x40dbf2('0x1af5')]('=')[0x1];break;case'agi':_0x37ffa5[_0x40dbf2('0x1fa6')][_0x40dbf2('0xbf8')]=_0x37ffa5[_0x40dbf2('0x1fa6')][_0x40dbf2('0x23c2')];break;default:{var _0x3b82ac=_0x37ffa5[_0x40dbf2('0x1fa6')][_0x40dbf2('0x23c2')][_0x40dbf2('0x1af5')](',');_0x37ffa5[_0x40dbf2('0x1fa6')][_0x40dbf2('0x160b')]=_0x3b82ac[0x0]['split']('&'),_0x37ffa5[_0x40dbf2('0x1fa6')]['timeout']=_0x86640f()['isEmpty'](_0x3b82ac[0x1])?_0x3b82ac[0x1]:isNaN(_0x3b82ac[0x1])?_0x3b82ac[0x1]:parseInt(_0x3b82ac[0x1],0xa),_0x37ffa5[_0x40dbf2('0x1fa6')][_0x40dbf2('0x26a0')]=_0x86640f()[_0x40dbf2('0x23aa')](_0x3b82ac[0x2])?_0x3b82ac[0x2]:isNaN(_0x3b82ac[0x2])?_0x3b82ac[0x2]:parseInt(_0x3b82ac[0x2],0xa),_0x37ffa5[_0x40dbf2('0x1fa6')][_0x40dbf2('0x770')]=_0x86640f()[_0x40dbf2('0x23aa')](_0x3b82ac[0x3])?_0x3b82ac[0x3]:isNaN(_0x3b82ac[0x3])?_0x3b82ac[0x3]:parseInt(_0x3b82ac[0x3],0xa);}break;}else{}_0x37ffa5[_0x40dbf2('0x1fa6')]['type']&&_0x37ffa5[_0x40dbf2('0x1fa6')][_0x40dbf2('0x7fa')][_0x40dbf2('0xac2')]()===_0x40dbf2('0x2300')&&_0x37ffa5[_0x40dbf2('0x1fa6')][_0x40dbf2('0x522')]['toLowerCase']()===_0x40dbf2('0x2363')&&(_0x37ffa5['ringgroup'][_0x40dbf2('0x1995')]=_0x37ffa5['ringgroup'][_0x40dbf2('0x159e')]?_0x37ffa5[_0x40dbf2('0x1fa6')]['phone'][_0x40dbf2('0x1af5')]('$')[0x0]:undefined,_0x37ffa5[_0x40dbf2('0x1fa6')][_0x40dbf2('0x26f7')]=_0x37ffa5[_0x40dbf2('0x1fa6')][_0x40dbf2('0x1f5a')]?_0x40dbf2('0x587')+_0x37ffa5['ringgroup'][_0x40dbf2('0x1f5a')]:undefined);_0x37ffa5['saveInternalRouteApp']=_0x3718b5,_0x37ffa5[_0x40dbf2('0x167')]=_0x200741;var _0x4a94ba=[{'id':0xca,'role':_0x40dbf2('0x2402')},{'id':0xcb,'role':_0x40dbf2('0x13f4')}],_0x39d043=null;_0xb9bcca[_0x40dbf2('0x21de')](_0x40dbf2('0x1bd8'))?_0x263b57['user'][_0x40dbf2('0x595')]({'fields':_0x40dbf2('0x2813'),'sort':'name','nolimit':_0x40dbf2('0x19bd')})[_0x40dbf2('0x1376')][_0x40dbf2('0x21ad')](function(_0x1e3560){var _0x2fa4ff=_0x40dbf2;_0x37ffa5[_0x2fa4ff('0x188e')]=_0x1e3560[_0x2fa4ff('0x1b33')]||[];})[_0x40dbf2('0x1c1d')](function(_0x144830){var _0x10298e=_0x40dbf2;_0x1a0831[_0x10298e('0x2092')]({'title':_0x144830[_0x10298e('0x209')]?'API:'+_0x144830['status']+'\x20-\x20'+_0x144830[_0x10298e('0x1808')]:_0x10298e('0x2158'),'msg':_0x144830['data']?JSON['stringify'](_0x144830[_0x10298e('0x11c2')]):_0x144830[_0x10298e('0x174f')]()});}):_0x263b57[_0x40dbf2('0x1775')][_0x40dbf2('0x595')]({'fields':_0x40dbf2('0x2813'),'sort':'name','nolimit':_0x40dbf2('0x19bd')})[_0x40dbf2('0x1376')]['then'](function(_0x1bf638){var _0x2bcb15=_0x40dbf2;_0x39d043=_0x1bf638[_0x2bcb15('0x1b33')]||[];})[_0x40dbf2('0x21ad')](function(){var _0x1983cf=_0x40dbf2,_0x36f271=[];for(var _0x56abbf=0x0;_0x56abbf<_0x4a94ba[_0x1983cf('0x577')];_0x56abbf++){_0x36f271[_0x1983cf('0x206c')](_0x263b57['userProfileSection']['get']({'userProfileId':_0x37ffa5[_0x1983cf('0x123f')][_0x1983cf('0x1618')],'sectionId':_0x4a94ba[_0x56abbf]['id']})[_0x1983cf('0x1376')]);}return _0x5ca436[_0x1983cf('0x1ba7')](_0x36f271);})['then'](function(_0x587a8d){var _0x2b05d5=_0x40dbf2,_0x47240e=_0x86640f()[_0x2b05d5('0x26c3')](_0x587a8d,function(_0x82db2e){var _0xbda619=_0x2b05d5;return _0x82db2e&&_0x82db2e[_0xbda619('0x1b33')]?_0x82db2e[_0xbda619('0x1b33')][0x0]:null;}),_0x14c59c=[],_0x46c27f=function _0x48d65f(_0x58666d){var _0x6ec690=_0x2b05d5,_0x422b24=_0x86640f()['find'](_0x47240e,[_0x6ec690('0x1cd2'),_0x4a94ba[_0x58666d]['id']]);if(_0x422b24){if(!_0x422b24[_0x6ec690('0x80c')])_0x14c59c['push'](_0x263b57['userProfileResource'][_0x6ec690('0x595')]({'sectionId':_0x422b24['id']})[_0x6ec690('0x1376')]);else{var _0x2dfcd5=[];_0x39d043[_0x6ec690('0x1a52')](function(_0x4c07aa){var _0x440a3a=_0x6ec690;_0x4c07aa[_0x440a3a('0x25c8')]===_0x4a94ba[_0x58666d][_0x440a3a('0x25c8')]&&_0x2dfcd5[_0x440a3a('0x206c')](_0x4c07aa);}),_0x14c59c[_0x6ec690('0x206c')]({'rows':_0x2dfcd5,'count':_0x2dfcd5[_0x6ec690('0x577')]});}}};for(var _0x22edb2=0x0;_0x22edb2<_0x4a94ba[_0x2b05d5('0x577')];_0x22edb2++){_0x46c27f(_0x22edb2);}return _0x5ca436[_0x2b05d5('0x1ba7')](_0x14c59c);})['then'](function(_0x9dc861){var _0x51567a=_0x40dbf2,_0x44c9ff=[],_0x4c8dd7=null;_0x37ffa5['ringgroup']&&(_0x4c8dd7=_0x86640f()['find'](_0x39d043,{'name':_0x37ffa5[_0x51567a('0x1fa6')]['multipleUsers']}));for(var _0x2a0227=0x0;_0x2a0227<_0x9dc861['length'];_0x2a0227++){var _0x15411c=_0x9dc861[_0x2a0227][_0x51567a('0x1b33')]||[];_0x15411c['forEach'](function(_0x376c94){var _0x1d726e=_0x51567a;_0x44c9ff[_0x1d726e('0x206c')](_0x376c94);});}_0x4c8dd7&&!_0x86640f()[_0x51567a('0x2664')](_0x44c9ff,[_0x51567a('0x675'),_0x4c8dd7['id']])&&_0x39d043[_0x51567a('0x1a52')](function(_0x1bedca){var _0x57462a=_0x51567a;_0x1bedca['id']===_0x4c8dd7['id']&&(_0x1bedca[_0x57462a('0xba')]=![],_0x44c9ff[_0x57462a('0x206c')](_0x1bedca));}),_0x37ffa5['users']=_0x44c9ff;})[_0x40dbf2('0x1c1d')](function(_0xdfc20e){var _0x1e4d5e=_0x40dbf2;_0x1a0831[_0x1e4d5e('0x2092')]({'title':_0xdfc20e[_0x1e4d5e('0x209')]?_0x1e4d5e('0x22d')+_0xdfc20e[_0x1e4d5e('0x209')]+_0x1e4d5e('0xa99')+_0xdfc20e['statusText']:'SYSTEM:GETusers','msg':_0xdfc20e['data']?JSON[_0x1e4d5e('0x25e')](_0xdfc20e[_0x1e4d5e('0x11c2')]):_0xdfc20e['toString']()});});function _0x3718b5(){var _0x44240c=_0x40dbf2;_0x37ffa5['errors']=[];var _0x46c69a=[];_0x37ffa5['ringgroup'][_0x44240c('0x7fa')]&&_0x37ffa5[_0x44240c('0x1fa6')]['type']['toLowerCase']()===_0x44240c('0x2300')&&_0x37ffa5['ringgroup'][_0x44240c('0x522')]===_0x44240c('0x4ea')&&(_0x37ffa5[_0x44240c('0x1fa6')][_0x44240c('0x159e')]=_0x435c27['cutdigits']?(_0x37ffa5['ringgroup']['prefix']||'')+_0x44240c('0x349')+_0x435c27[_0x44240c('0x988')]+'}':(_0x37ffa5['ringgroup'][_0x44240c('0x1995')]||'')+_0x44240c('0x2560'),_0x435c27['recordingFormat']!==_0x44240c('0x983')?_0x37ffa5['ringgroup']['options'][_0x44240c('0x2004')](_0x44240c('0x478'))<0x0&&(_0x37ffa5['ringgroup'][_0x44240c('0x26a0')]+=_0x44240c('0x478')):_0x37ffa5[_0x44240c('0x1fa6')][_0x44240c('0x26a0')]=_0x37ffa5['ringgroup']['options'][_0x44240c('0x16e4')](_0x44240c('0x478'),''));if(_0x37ffa5[_0x44240c('0x1fa6')][_0x44240c('0x522')]&&_0x37ffa5[_0x44240c('0x1fa6')]['appType']===_0x44240c('0xf50')){}else switch((_0x37ffa5[_0x44240c('0x1fa6')][_0x44240c('0x1f94')]||_0x37ffa5[_0x44240c('0x1fa6')]['appType'])[_0x44240c('0xac2')]()){case _0x44240c('0x1125'):_0x37ffa5[_0x44240c('0x1fa6')][_0x44240c('0x23c2')]=_0x37ffa5[_0x44240c('0x1fa6')][_0x44240c('0x19fe')]+'='+_0x37ffa5[_0x44240c('0x1fa6')][_0x44240c('0x2228')];break;case _0x44240c('0xf50'):break;default:_0x46c69a[0x0]=_0x37ffa5['ringgroup']['multipleUsers']['join']('&'),_0x46c69a[0x1]=_0x37ffa5[_0x44240c('0x1fa6')][_0x44240c('0x2133')],_0x46c69a[0x2]=_0x37ffa5[_0x44240c('0x1fa6')][_0x44240c('0x26a0')],_0x46c69a[0x3]=_0x37ffa5[_0x44240c('0x1fa6')]['url'],_0x37ffa5['ringgroup'][_0x44240c('0x23c2')]=_0x46c69a[_0x44240c('0x136')](',');}_0x200741(_0x37ffa5[_0x44240c('0x1fa6')]);}function _0x200741(_0x45effd){_0x334a7c['hide'](_0x45effd);}}const _0x3a967f=_0x2d3a90;_0x1187fc[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x97d'),'internalroute','api',_0x3877e3('0x15bc'),'crudPermissions'];function _0x1187fc(_0x5bf53f,_0x3cc47a,_0x57a6ac,_0x58f75e,_0x1f5fd2,_0x3c1227,_0x2aaec7,_0x428d22){var _0x3dbe99=_0x3877e3,_0x2ed1ce=this;_0x2ed1ce['currentUser']=_0x2aaec7[_0x3dbe99('0x15ed')](),_0x2ed1ce['errors']=[],_0x2ed1ce['title']=_0x3dbe99('0x1b79')+(_0x58f75e[_0x3dbe99('0x522')]||_0x58f75e['app'])['toUpperCase'](),_0x2ed1ce[_0x3dbe99('0x1125')]=angular[_0x3dbe99('0xd75')](_0x58f75e),_0x2ed1ce[_0x3dbe99('0x5ed')]=_0x428d22,_0x2ed1ce[_0x3dbe99('0x126a')]={};if(_0x2ed1ce['set']['appdata'])switch(_0x2ed1ce[_0x3dbe99('0x1125')]['appType']?_0x2ed1ce['set'][_0x3dbe99('0x522')][_0x3dbe99('0xac2')]():_0x2ed1ce[_0x3dbe99('0x1125')]['app'][_0x3dbe99('0xac2')]()){case _0x3dbe99('0xf50'):break;case'dialogflow':{var _0x2cc04e=_0x2ed1ce[_0x3dbe99('0x1125')]['appdata'][_0x3dbe99('0x1af5')](',');_0x2ed1ce[_0x3dbe99('0x1125')][_0x3dbe99('0xddb')]=_0x2cc04e[0x0],_0x2ed1ce[_0x3dbe99('0x1125')]['language']=_0x2cc04e[0x1],_0x2ed1ce[_0x3dbe99('0x1125')][_0x3dbe99('0x1cce')]=_0x2cc04e[_0x3dbe99('0xb3d')](0x2,_0x2cc04e[_0x3dbe99('0x577')])[_0x3dbe99('0x136')](',');}break;case _0x3dbe99('0x1c22'):{var _0x442cfe=_0x2ed1ce[_0x3dbe99('0x1125')]['appdata'][_0x3dbe99('0x1af5')](',');_0x2ed1ce[_0x3dbe99('0x1125')][_0x3dbe99('0x21c6')]=_0x442cfe[0x0],_0x2ed1ce[_0x3dbe99('0x1125')]['secretaccesskey']=_0x442cfe[0x1],_0x2ed1ce[_0x3dbe99('0x1125')][_0x3dbe99('0x20a3')]=_0x442cfe[0x2],_0x2ed1ce[_0x3dbe99('0x1125')][_0x3dbe99('0x15fe')]=_0x442cfe[0x3],_0x2ed1ce['set'][_0x3dbe99('0x1cce')]=_0x442cfe[_0x3dbe99('0xb3d')](0x4,_0x442cfe['length'])[_0x3dbe99('0x136')](',');}break;case _0x3dbe99('0x1b98'):{var _0x2a4249=_0x2ed1ce[_0x3dbe99('0x1125')][_0x3dbe99('0x23c2')][_0x3dbe99('0x1af5')](',');_0x2ed1ce['set'][_0x3dbe99('0x13b6')]=isNaN(_0x2a4249[0x0])?_0x2a4249[0x0]:parseInt(_0x2a4249[0x0],0xa),_0x2ed1ce[_0x3dbe99('0x1125')][_0x3dbe99('0xc1e')]=_0x2a4249['slice'](0x1,_0x2a4249[_0x3dbe99('0x577')])[_0x3dbe99('0x136')](',');}break;case _0x3dbe99('0x1224'):_0x2ed1ce[_0x3dbe99('0x1125')]['text']=_0x2ed1ce[_0x3dbe99('0x1125')]['appdata'];break;case _0x3dbe99('0x1125'):_0x2ed1ce[_0x3dbe99('0x1125')][_0x3dbe99('0x19fe')]=_0x2ed1ce['set']['appdata'][_0x3dbe99('0x1af5')]('=')[0x0],_0x2ed1ce['set']['value']=_0x2ed1ce[_0x3dbe99('0x1125')][_0x3dbe99('0x23c2')][_0x3dbe99('0x1af5')]('=')[0x1];break;case'agi':_0x2ed1ce[_0x3dbe99('0x1125')]['project']=_0x2ed1ce[_0x3dbe99('0x1125')]['appdata'];break;default:{var _0x59f7dd=_0x2ed1ce['set'][_0x3dbe99('0x23c2')][_0x3dbe99('0x1af5')]('=');_0x2ed1ce[_0x3dbe99('0x1125')][_0x3dbe99('0x19fe')]=_0x86640f()['isEmpty'](_0x59f7dd[0x0])?_0x59f7dd[0x0]:isNaN(_0x59f7dd[0x0])?_0x59f7dd[0x0]:parseInt(_0x59f7dd[0x0],0xa),_0x2ed1ce[_0x3dbe99('0x1125')]['value']=_0x86640f()['isEmpty'](_0x59f7dd[0x1])?_0x59f7dd[0x1]:isNaN(_0x59f7dd[0x1])?_0x59f7dd[0x1]:parseInt(_0x59f7dd[0x1],0xa);}break;}else{}_0x2ed1ce[_0x3dbe99('0x1125')][_0x3dbe99('0x7fa')]&&_0x2ed1ce[_0x3dbe99('0x1125')][_0x3dbe99('0x7fa')][_0x3dbe99('0xac2')]()===_0x3dbe99('0x2300')&&_0x2ed1ce[_0x3dbe99('0x1125')][_0x3dbe99('0x522')]['toLowerCase']()===_0x3dbe99('0x2363')&&(_0x2ed1ce[_0x3dbe99('0x1125')][_0x3dbe99('0x1995')]=_0x2ed1ce[_0x3dbe99('0x1125')][_0x3dbe99('0x159e')]?_0x2ed1ce[_0x3dbe99('0x1125')][_0x3dbe99('0x159e')][_0x3dbe99('0x1af5')]('$')[0x0]:undefined,_0x2ed1ce[_0x3dbe99('0x1125')][_0x3dbe99('0x26f7')]=_0x2ed1ce[_0x3dbe99('0x1125')][_0x3dbe99('0x1f5a')]?_0x3dbe99('0x587')+_0x2ed1ce[_0x3dbe99('0x1125')][_0x3dbe99('0x1f5a')]:undefined);_0x2ed1ce[_0x3dbe99('0x1057')]=_0x25682c,_0x2ed1ce[_0x3dbe99('0x167')]=_0x1437e6,_0x2aaec7['hasRole']('admin')?_0x3c1227[_0x3dbe99('0x25bb')][_0x3dbe99('0x595')]({'fields':_0x3dbe99('0x1aa8'),'sort':_0x3dbe99('0x19fe'),'nolimit':_0x3dbe99('0x19bd')})[_0x3dbe99('0x1376')][_0x3dbe99('0x21ad')](function(_0x3d8b30){var _0x3ad9f4=_0x3dbe99;_0x2ed1ce[_0x3ad9f4('0x142d')]=_0x3d8b30[_0x3ad9f4('0x1b33')]||[];})[_0x3dbe99('0x1c1d')](function(_0x201bb4){var _0x26620b=_0x3dbe99;_0x57a6ac[_0x26620b('0x2092')]({'title':_0x201bb4[_0x26620b('0x209')]?_0x26620b('0x22d')+_0x201bb4[_0x26620b('0x209')]+_0x26620b('0xa99')+_0x201bb4[_0x26620b('0x1808')]:_0x26620b('0xc0c'),'msg':_0x201bb4[_0x26620b('0x11c2')]?JSON[_0x26620b('0x25e')](_0x201bb4[_0x26620b('0x11c2')]):_0x201bb4[_0x26620b('0x174f')]()});}):_0x3c1227[_0x3dbe99('0x25bb')]['get']({'fields':_0x3dbe99('0x1aa8'),'sort':_0x3dbe99('0x19fe'),'nolimit':'true'})[_0x3dbe99('0x1376')][_0x3dbe99('0x21ad')](function(_0x337388){var _0x4a5c86=_0x3dbe99;_0x2ed1ce[_0x4a5c86('0x142d')]=_0x337388[_0x4a5c86('0x1b33')]||[];})[_0x3dbe99('0x21ad')](function(){var _0x5178b8=_0x3dbe99;return _0x3c1227[_0x5178b8('0xab4')]['get']({'userProfileId':_0x2ed1ce[_0x5178b8('0x123f')][_0x5178b8('0x1618')],'sectionId':0x3f4})['$promise'];})[_0x3dbe99('0x21ad')](function(_0x31b4dc){var _0x5bf67a=_0x3dbe99,_0x75a907=_0x31b4dc&&_0x31b4dc[_0x5bf67a('0x1b33')]?_0x31b4dc[_0x5bf67a('0x1b33')][0x0]:null;if(!_0x75a907){var _0x2c1b2d=[],_0x4b53a1=null;_0x2ed1ce['set']&&(_0x4b53a1=_0x86640f()['find'](_0x2ed1ce[_0x5bf67a('0x142d')],{'name':_0x2ed1ce[_0x5bf67a('0x1125')][_0x5bf67a('0x19fe')]}));for(var _0x411707=0x0;_0x411707<_0x2ed1ce[_0x5bf67a('0x142d')][_0x5bf67a('0x577')];_0x411707++){_0x4b53a1&&_0x2ed1ce['variables'][_0x411707]['id']===_0x4b53a1['id']&&(_0x2ed1ce[_0x5bf67a('0x142d')][_0x411707][_0x5bf67a('0xba')]=![],_0x2c1b2d[_0x5bf67a('0x206c')](_0x2ed1ce[_0x5bf67a('0x142d')][_0x411707]));}_0x2ed1ce[_0x5bf67a('0x142d')]=_0x2c1b2d;}else{if(!_0x75a907['autoAssociation'])return _0x3c1227[_0x5bf67a('0x185e')][_0x5bf67a('0x595')]({'sectionId':_0x75a907['id']})['$promise'][_0x5bf67a('0x21ad')](function(_0xbdd082){var _0xaafb95=_0x5bf67a,_0x1c4298=_0x86640f()[_0xaafb95('0x26c3')](_0xbdd082[_0xaafb95('0x1b33')],function(_0x265fb9){var _0x2523e2=_0xaafb95;return _0x86640f()[_0x2523e2('0x1d2e')](_0x2ed1ce['variables'],{'id':_0x265fb9[_0x2523e2('0x675')]});}),_0x4fd474=null;_0x2ed1ce['set']&&(_0x4fd474=_0x86640f()[_0xaafb95('0x1d2e')](_0x2ed1ce['variables'],{'name':_0x2ed1ce[_0xaafb95('0x1125')][_0xaafb95('0x19fe')]}));if(_0x4fd474&&!_0x86640f()['some'](_0x1c4298,['id',_0x4fd474['id']])){var _0x32762b=_0x86640f()[_0xaafb95('0x1d2e')](_0x2ed1ce[_0xaafb95('0x142d')],{'id':_0x4fd474['id']});_0x32762b[_0xaafb95('0xba')]=![],_0x1c4298[_0xaafb95('0x206c')](_0x32762b);}_0x2ed1ce[_0xaafb95('0x142d')]=_0x1c4298;});}})[_0x3dbe99('0x1c1d')](function(_0x4d2084){var _0x40434d=_0x3dbe99;_0x57a6ac['error']({'title':_0x4d2084[_0x40434d('0x209')]?'API:'+_0x4d2084[_0x40434d('0x209')]+'\x20-\x20'+_0x4d2084['statusText']:'SYSTEM:GETvariables','msg':_0x4d2084[_0x40434d('0x11c2')]?JSON[_0x40434d('0x25e')](_0x4d2084[_0x40434d('0x11c2')]):_0x4d2084['toString']()});});function _0x25682c(){var _0x194ef2=_0x3dbe99;_0x2ed1ce[_0x194ef2('0x1a69')]=[];var _0x28c993=[];_0x2ed1ce[_0x194ef2('0x1125')][_0x194ef2('0x7fa')]&&_0x2ed1ce[_0x194ef2('0x1125')][_0x194ef2('0x7fa')][_0x194ef2('0xac2')]()===_0x194ef2('0x2300')&&_0x2ed1ce[_0x194ef2('0x1125')]['appType']===_0x194ef2('0x4ea')&&(_0x2ed1ce['set'][_0x194ef2('0x159e')]=_0x1f5fd2[_0x194ef2('0x988')]?(_0x2ed1ce[_0x194ef2('0x1125')]['prefix']||'')+_0x194ef2('0x349')+_0x1f5fd2['cutdigits']+'}':(_0x2ed1ce[_0x194ef2('0x1125')]['prefix']||'')+_0x194ef2('0x2560'),_0x1f5fd2[_0x194ef2('0xad1')]!==_0x194ef2('0x983')?_0x2ed1ce[_0x194ef2('0x1125')][_0x194ef2('0x26a0')][_0x194ef2('0x2004')](_0x194ef2('0x478'))<0x0&&(_0x2ed1ce[_0x194ef2('0x1125')][_0x194ef2('0x26a0')]+=_0x194ef2('0x478')):_0x2ed1ce[_0x194ef2('0x1125')][_0x194ef2('0x26a0')]=_0x2ed1ce[_0x194ef2('0x1125')][_0x194ef2('0x26a0')][_0x194ef2('0x16e4')]('U(xcally-mixmonitor-context)',''));if(_0x2ed1ce[_0x194ef2('0x1125')][_0x194ef2('0x522')]&&_0x2ed1ce[_0x194ef2('0x1125')][_0x194ef2('0x522')]===_0x194ef2('0xf50')){}else switch((_0x2ed1ce[_0x194ef2('0x1125')][_0x194ef2('0x1f94')]||_0x2ed1ce[_0x194ef2('0x1125')][_0x194ef2('0x522')])['toLowerCase']()){case'set':_0x2ed1ce[_0x194ef2('0x1125')][_0x194ef2('0x23c2')]=_0x2ed1ce['set'][_0x194ef2('0x19fe')]+'='+_0x2ed1ce[_0x194ef2('0x1125')]['value'];break;case _0x194ef2('0xf50'):break;default:_0x28c993[0x0]=_0x2ed1ce['set'][_0x194ef2('0x19fe')],_0x28c993[0x1]=_0x2ed1ce[_0x194ef2('0x1125')][_0x194ef2('0x2228')],_0x2ed1ce[_0x194ef2('0x1125')][_0x194ef2('0x23c2')]=_0x28c993[_0x194ef2('0x136')]('=');}_0x1437e6(_0x2ed1ce['set']);}function _0x1437e6(_0x3a270a){var _0x15cfe1=_0x3dbe99;_0x5bf53f[_0x15cfe1('0x1c24')](_0x3a270a);}}const _0xbe20f4=_0x1187fc;_0x1b3096[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x97d'),_0x3877e3('0x26e3'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x1b3096(_0x1bb26d,_0x146a72,_0x2b9beb,_0x531da3,_0x4ede6c,_0x1f179b,_0x482d18,_0x19b7f7){var _0xd207c2=_0x3877e3,_0x673d81=this;_0x673d81['currentUser']=_0x482d18['getCurrentUser'](),_0x673d81['errors']=[],_0x673d81[_0xd207c2('0x4b4')]=_0xd207c2('0x1b79')+(_0x531da3[_0xd207c2('0x522')]||_0x531da3[_0xd207c2('0x1f94')])['toUpperCase'](),_0x673d81[_0xd207c2('0xcbd')]=angular[_0xd207c2('0xd75')](_0x531da3),_0x673d81[_0xd207c2('0x5ed')]=_0x19b7f7,_0x673d81[_0xd207c2('0x126a')]={};if(_0x673d81[_0xd207c2('0xcbd')][_0xd207c2('0x23c2')])switch(_0x673d81[_0xd207c2('0xcbd')][_0xd207c2('0x522')]?_0x673d81['voicemail']['appType'][_0xd207c2('0xac2')]():_0x673d81['voicemail'][_0xd207c2('0x1f94')]['toLowerCase']()){case'custom':break;case'dialogflow':{var _0x27a236=_0x673d81[_0xd207c2('0xcbd')][_0xd207c2('0x23c2')][_0xd207c2('0x1af5')](',');_0x673d81[_0xd207c2('0xcbd')][_0xd207c2('0xddb')]=_0x27a236[0x0],_0x673d81[_0xd207c2('0xcbd')][_0xd207c2('0x10f')]=_0x27a236[0x1],_0x673d81['voicemail'][_0xd207c2('0x1cce')]=_0x27a236[_0xd207c2('0xb3d')](0x2,_0x27a236[_0xd207c2('0x577')])[_0xd207c2('0x136')](',');}break;case _0xd207c2('0x1c22'):{var _0x5c9a26=_0x673d81[_0xd207c2('0xcbd')]['appdata'][_0xd207c2('0x1af5')](',');_0x673d81[_0xd207c2('0xcbd')][_0xd207c2('0x21c6')]=_0x5c9a26[0x0],_0x673d81[_0xd207c2('0xcbd')]['secretaccesskey']=_0x5c9a26[0x1],_0x673d81['voicemail'][_0xd207c2('0x20a3')]=_0x5c9a26[0x2],_0x673d81[_0xd207c2('0xcbd')][_0xd207c2('0x15fe')]=_0x5c9a26[0x3],_0x673d81[_0xd207c2('0xcbd')]['welcomemessage']=_0x5c9a26[_0xd207c2('0xb3d')](0x4,_0x5c9a26['length'])[_0xd207c2('0x136')](',');}break;case _0xd207c2('0x1b98'):{var _0x5afd73=_0x673d81[_0xd207c2('0xcbd')][_0xd207c2('0x23c2')]['split'](',');_0x673d81[_0xd207c2('0xcbd')][_0xd207c2('0x13b6')]=isNaN(_0x5afd73[0x0])?_0x5afd73[0x0]:parseInt(_0x5afd73[0x0],0xa),_0x673d81['voicemail'][_0xd207c2('0xc1e')]=_0x5afd73[_0xd207c2('0xb3d')](0x1,_0x5afd73['length'])['join'](',');}break;case _0xd207c2('0x1224'):_0x673d81[_0xd207c2('0xcbd')][_0xd207c2('0xc1e')]=_0x673d81[_0xd207c2('0xcbd')][_0xd207c2('0x23c2')];break;case'set':_0x673d81[_0xd207c2('0xcbd')]['name']=_0x673d81[_0xd207c2('0xcbd')]['appdata'][_0xd207c2('0x1af5')]('=')[0x0],_0x673d81['voicemail'][_0xd207c2('0x2228')]=_0x673d81['voicemail'][_0xd207c2('0x23c2')][_0xd207c2('0x1af5')]('=')[0x1];break;case'agi':_0x673d81[_0xd207c2('0xcbd')][_0xd207c2('0xbf8')]=_0x673d81['voicemail'][_0xd207c2('0x23c2')];break;default:{var _0x3eef66=_0x673d81[_0xd207c2('0xcbd')][_0xd207c2('0x23c2')][_0xd207c2('0x1af5')](',');_0x673d81[_0xd207c2('0xcbd')][_0xd207c2('0x554')]=_0x86640f()[_0xd207c2('0x23aa')](_0x3eef66[0x0])?_0x3eef66[0x0]:isNaN(_0x3eef66[0x0])?_0x3eef66[0x0]:parseInt(_0x3eef66[0x0],0xa),_0x673d81['voicemail'][_0xd207c2('0x26a0')]=_0x86640f()['isEmpty'](_0x3eef66[0x1])?_0x3eef66[0x1]:isNaN(_0x3eef66[0x1])?_0x3eef66[0x1]:parseInt(_0x3eef66[0x1],0xa);}break;}else{}_0x673d81[_0xd207c2('0xcbd')][_0xd207c2('0x7fa')]&&_0x673d81[_0xd207c2('0xcbd')]['type'][_0xd207c2('0xac2')]()===_0xd207c2('0x2300')&&_0x673d81[_0xd207c2('0xcbd')]['appType'][_0xd207c2('0xac2')]()===_0xd207c2('0x2363')&&(_0x673d81['voicemail'][_0xd207c2('0x1995')]=_0x673d81[_0xd207c2('0xcbd')][_0xd207c2('0x159e')]?_0x673d81['voicemail'][_0xd207c2('0x159e')]['split']('$')[0x0]:undefined,_0x673d81[_0xd207c2('0xcbd')][_0xd207c2('0x26f7')]=_0x673d81[_0xd207c2('0xcbd')][_0xd207c2('0x1f5a')]?_0xd207c2('0x587')+_0x673d81[_0xd207c2('0xcbd')][_0xd207c2('0x1f5a')]:undefined);_0x673d81[_0xd207c2('0x1057')]=_0x4645c1,_0x673d81[_0xd207c2('0x167')]=_0x1a8083,_0x482d18[_0xd207c2('0x21de')](_0xd207c2('0x1bd8'))?_0x1f179b[_0xd207c2('0x554')][_0xd207c2('0x595')]({'fields':_0xd207c2('0x2194'),'sort':_0xd207c2('0x263d'),'nolimit':'true'})['$promise'][_0xd207c2('0x21ad')](function(_0x40e9a2){var _0x599d54=_0xd207c2;_0x673d81[_0x599d54('0x2285')]=_0x40e9a2[_0x599d54('0x1b33')]||[];})[_0xd207c2('0x1c1d')](function(_0x4a0937){var _0x5afc48=_0xd207c2;_0x2b9beb['error']({'title':_0x4a0937[_0x5afc48('0x209')]?_0x5afc48('0x22d')+_0x4a0937[_0x5afc48('0x209')]+_0x5afc48('0xa99')+_0x4a0937['statusText']:_0x5afc48('0xb65'),'msg':_0x4a0937[_0x5afc48('0x11c2')]?JSON[_0x5afc48('0x25e')](_0x4a0937[_0x5afc48('0x11c2')]):_0x4a0937['toString']()});}):_0x1f179b['voiceMail']['get']({'fields':'id,mailbox','sort':_0xd207c2('0x263d'),'nolimit':_0xd207c2('0x19bd')})['$promise']['then'](function(_0x3bbf08){var _0xb0bd31=_0xd207c2;_0x673d81[_0xb0bd31('0x2285')]=_0x3bbf08[_0xb0bd31('0x1b33')]||[];})['then'](function(){var _0x11dbb0=_0xd207c2;return _0x1f179b['userProfileSection'][_0x11dbb0('0x595')]({'userProfileId':_0x673d81[_0x11dbb0('0x123f')][_0x11dbb0('0x1618')],'sectionId':0x196})['$promise'];})['then'](function(_0x44013b){var _0x53cf2d=_0xd207c2,_0x115746=_0x44013b&&_0x44013b[_0x53cf2d('0x1b33')]?_0x44013b[_0x53cf2d('0x1b33')][0x0]:null;if(!_0x115746){var _0x2a10b7=[],_0x131f14=null;_0x673d81[_0x53cf2d('0xcbd')]&&(_0x131f14=_0x86640f()[_0x53cf2d('0x1d2e')](_0x673d81[_0x53cf2d('0x2285')],{'mailbox':_0x673d81[_0x53cf2d('0xcbd')]['voiceMail']}));for(var _0xf40275=0x0;_0xf40275<_0x673d81[_0x53cf2d('0x2285')]['length'];_0xf40275++){_0x131f14&&_0x673d81[_0x53cf2d('0x2285')][_0xf40275]['id']===_0x131f14['id']&&(_0x673d81[_0x53cf2d('0x2285')][_0xf40275]['canSelect']=![],_0x2a10b7[_0x53cf2d('0x206c')](_0x673d81[_0x53cf2d('0x2285')][_0xf40275]));}_0x673d81[_0x53cf2d('0x2285')]=_0x2a10b7;}else{if(!_0x115746[_0x53cf2d('0x80c')])return _0x1f179b[_0x53cf2d('0x185e')][_0x53cf2d('0x595')]({'sectionId':_0x115746['id']})[_0x53cf2d('0x1376')][_0x53cf2d('0x21ad')](function(_0x51fcf0){var _0x3cce0f=_0x53cf2d,_0x70fea1=_0x86640f()['map'](_0x51fcf0[_0x3cce0f('0x1b33')],function(_0x1b956e){var _0x465836=_0x3cce0f;return _0x86640f()[_0x465836('0x1d2e')](_0x673d81[_0x465836('0x2285')],{'id':_0x1b956e[_0x465836('0x675')]});}),_0x3060c0=null;_0x673d81[_0x3cce0f('0xcbd')]&&(_0x3060c0=_0x86640f()[_0x3cce0f('0x1d2e')](_0x673d81[_0x3cce0f('0x2285')],{'mailbox':_0x673d81[_0x3cce0f('0xcbd')][_0x3cce0f('0x554')]}));if(_0x3060c0&&!_0x86640f()['some'](_0x70fea1,['id',_0x3060c0['id']])){var _0x84c3dc=_0x86640f()['find'](_0x673d81['voiceMails'],{'id':_0x3060c0['id']});_0x84c3dc['canSelect']=![],_0x70fea1[_0x3cce0f('0x206c')](_0x84c3dc);}_0x673d81[_0x3cce0f('0x2285')]=_0x70fea1;});}})[_0xd207c2('0x1c1d')](function(_0x40b545){var _0x31a80f=_0xd207c2;_0x2b9beb['error']({'title':_0x40b545['status']?_0x31a80f('0x22d')+_0x40b545[_0x31a80f('0x209')]+_0x31a80f('0xa99')+_0x40b545[_0x31a80f('0x1808')]:_0x31a80f('0x1bb5'),'msg':_0x40b545['data']?JSON[_0x31a80f('0x25e')](_0x40b545[_0x31a80f('0x11c2')]):_0x40b545[_0x31a80f('0x174f')]()});});function _0x4645c1(){var _0x15da82=_0xd207c2;_0x673d81['errors']=[];var _0x5e0f5a=[];_0x673d81['voicemail'][_0x15da82('0x7fa')]&&_0x673d81['voicemail'][_0x15da82('0x7fa')][_0x15da82('0xac2')]()===_0x15da82('0x2300')&&_0x673d81[_0x15da82('0xcbd')][_0x15da82('0x522')]===_0x15da82('0x4ea')&&(_0x673d81[_0x15da82('0xcbd')][_0x15da82('0x159e')]=_0x4ede6c[_0x15da82('0x988')]?(_0x673d81['voicemail'][_0x15da82('0x1995')]||'')+_0x15da82('0x349')+_0x4ede6c['cutdigits']+'}':(_0x673d81[_0x15da82('0xcbd')][_0x15da82('0x1995')]||'')+'${EXTEN}',_0x4ede6c[_0x15da82('0xad1')]!==_0x15da82('0x983')?_0x673d81['voicemail'][_0x15da82('0x26a0')]['indexOf'](_0x15da82('0x478'))<0x0&&(_0x673d81[_0x15da82('0xcbd')][_0x15da82('0x26a0')]+='U(xcally-mixmonitor-context)'):_0x673d81[_0x15da82('0xcbd')][_0x15da82('0x26a0')]=_0x673d81[_0x15da82('0xcbd')][_0x15da82('0x26a0')][_0x15da82('0x16e4')](_0x15da82('0x478'),''));if(_0x673d81['voicemail'][_0x15da82('0x522')]&&_0x673d81['voicemail'][_0x15da82('0x522')]===_0x15da82('0xf50')){}else switch((_0x673d81[_0x15da82('0xcbd')][_0x15da82('0x1f94')]||_0x673d81[_0x15da82('0xcbd')]['appType'])[_0x15da82('0xac2')]()){case _0x15da82('0x1125'):_0x673d81[_0x15da82('0xcbd')][_0x15da82('0x23c2')]=_0x673d81[_0x15da82('0xcbd')][_0x15da82('0x19fe')]+'='+_0x673d81[_0x15da82('0xcbd')][_0x15da82('0x2228')];break;case _0x15da82('0xf50'):break;default:_0x5e0f5a[0x0]=_0x673d81[_0x15da82('0xcbd')][_0x15da82('0x554')],_0x5e0f5a[0x1]=_0x673d81[_0x15da82('0xcbd')]['options'],_0x673d81['voicemail']['appdata']=_0x5e0f5a[_0x15da82('0x136')](',');}_0x1a8083(_0x673d81[_0x15da82('0xcbd')]);}function _0x1a8083(_0x1880a6){_0x1bb26d['hide'](_0x1880a6);}}const _0x399a74=_0x1b3096;_0xfab775[_0x3877e3('0x1a81')]=['$state',_0x3877e3('0x14c7'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x13c1'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0xccd'),'toasty',_0x3877e3('0x15bc'),'internalroute',_0x3877e3('0xab4')];function _0xfab775(_0x9f331a,_0x2f4595,_0x45ba86,_0x172ceb,_0x57463b,_0x5e4f93,_0x4fc348,_0x19c8ff,_0x5d8391,_0x2065da,_0x25a42b,_0x4cf0c3){var _0x3efc98=_0x3877e3,_0x33592b=this;_0x33592b[_0x3efc98('0x123f')]=_0x2065da[_0x3efc98('0x15ed')](),_0x33592b[_0x3efc98('0x2ff')]=_0x5e4f93,_0x33592b[_0x3efc98('0x21e')]=_0x4fc348,_0x33592b[_0x3efc98('0x1432')]=_0x33592b[_0x3efc98('0x21e')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x33592b[_0x3efc98('0x626')]=_0x2f4595[_0x3efc98('0x1162')]()+'://'+_0x2f4595['host'](),_0x33592b[_0x3efc98('0x26e3')]=_0x25a42b||_0x9f331a[_0x3efc98('0x171b')][_0x3efc98('0x26e3')]||{},_0x33592b[_0x3efc98('0xab4')]=_0x4cf0c3&&_0x4cf0c3[_0x3efc98('0x205f')]==0x1?_0x4cf0c3[_0x3efc98('0x1b33')][0x0]:null,_0x33592b[_0x3efc98('0x5ed')]=_0x2065da[_0x3efc98('0x1778')](_0x33592b[_0x3efc98('0xab4')]?_0x33592b['userProfileSection']['crudPermissions']:null),_0x33592b['hasModulePermissions']={},_0x33592b[_0x3efc98('0x302')]=_0x9f331a['params'][_0x3efc98('0x12e1')]||0x0,_0x33592b[_0x3efc98('0x95b')]=_0x5d8391[_0x3efc98('0x231c')],_0x33592b[_0x3efc98('0x1fca')]=_0x3757d0,_0x33592b[_0x3efc98('0x165')]=_0x3a10a6,_0x2065da['hasRole'](_0x3efc98('0x1bd8'))?_0x19c8ff[_0x3efc98('0x608')][_0x3efc98('0x595')]({'fields':_0x3efc98('0x1aa8'),'sort':_0x3efc98('0x19fe'),'nolimit':_0x3efc98('0x19bd')})[_0x3efc98('0x1376')]['then'](function(_0x683e50){var _0x156ac4=_0x3efc98;_0x33592b['contexts']=_0x683e50[_0x156ac4('0x1b33')]||[];})[_0x3efc98('0x1c1d')](function(_0x4d1c18){var _0xe80d78=_0x3efc98;_0x5d8391[_0xe80d78('0x2092')]({'title':_0x4d1c18[_0xe80d78('0x209')]?'API:'+_0x4d1c18[_0xe80d78('0x209')]+_0xe80d78('0xa99')+_0x4d1c18[_0xe80d78('0x1808')]:_0xe80d78('0x11b1'),'msg':_0x4d1c18['data']?JSON['stringify'](_0x4d1c18['data']):_0x4d1c18[_0xe80d78('0x174f')]()});}):_0x19c8ff[_0x3efc98('0x608')][_0x3efc98('0x595')]({'fields':_0x3efc98('0x1aa8'),'sort':_0x3efc98('0x19fe'),'nolimit':_0x3efc98('0x19bd')})[_0x3efc98('0x1376')][_0x3efc98('0x21ad')](function(_0x444057){var _0x583880=_0x3efc98;_0x33592b[_0x583880('0x1089')]=_0x444057[_0x583880('0x1b33')]||[];})[_0x3efc98('0x21ad')](function(){var _0x187cbd=_0x3efc98;return _0x19c8ff[_0x187cbd('0xab4')]['get']({'userProfileId':_0x33592b['currentUser'][_0x187cbd('0x1618')],'sectionId':0x195})['$promise'];})[_0x3efc98('0x21ad')](function(_0x19e66f){var _0x3fe577=_0x3efc98,_0x10cf22=_0x19e66f&&_0x19e66f[_0x3fe577('0x1b33')]?_0x19e66f[_0x3fe577('0x1b33')][0x0]:null;if(!_0x10cf22)return _0x19c8ff[_0x3fe577('0x608')][_0x3fe577('0x595')]({'fields':_0x3fe577('0x1aa8'),'sort':_0x3fe577('0x19fe'),'nolimit':'true','defaultEntry':0x1})['$promise'][_0x3fe577('0x21ad')](function(_0x88fb09){var _0x16528a=_0x3fe577;_0x33592b['contexts']=_0x88fb09[_0x16528a('0x1b33')]||[];});else{if(!_0x10cf22[_0x3fe577('0x80c')])return _0x19c8ff['userProfileResource'][_0x3fe577('0x595')]({'sectionId':_0x10cf22['id']})['$promise'][_0x3fe577('0x21ad')](function(_0x23eeee){var _0x19e20a=_0x3fe577,_0x399a38=_0x86640f()['map'](_0x23eeee['rows'],function(_0x1dff41){var _0x50c560=a0_0x2e7f;return _0x86640f()[_0x50c560('0x1d2e')](_0x33592b[_0x50c560('0x1089')],{'id':_0x1dff41[_0x50c560('0x675')]});}),_0x1be89b=null;_0x33592b[_0x19e20a('0x26e3')]&&(_0x1be89b=_0x86640f()[_0x19e20a('0x1d2e')](_0x33592b[_0x19e20a('0x1089')],{'name':_0x33592b[_0x19e20a('0x26e3')]['context']}));if(_0x1be89b&&!_0x86640f()[_0x19e20a('0x2664')](_0x399a38,['id',_0x1be89b['id']])){var _0x59889e=_0x86640f()[_0x19e20a('0x1d2e')](_0x33592b['contexts'],{'id':_0x1be89b['id']});_0x59889e[_0x19e20a('0xba')]=![],_0x399a38['push'](_0x59889e);}_0x33592b[_0x19e20a('0x1089')]=_0x399a38;});}})[_0x3efc98('0x1c1d')](function(_0x7a544){var _0x4d6b0c=_0x3efc98;_0x5d8391[_0x4d6b0c('0x2092')]({'title':_0x7a544[_0x4d6b0c('0x209')]?_0x4d6b0c('0x22d')+_0x7a544['status']+'\x20-\x20'+_0x7a544['statusText']:_0x4d6b0c('0x1463'),'msg':_0x7a544[_0x4d6b0c('0x11c2')]?JSON['stringify'](_0x7a544[_0x4d6b0c('0x11c2')]):_0x7a544[_0x4d6b0c('0x174f')]()});});function _0x3757d0(){_0x9f331a['go']('app.voice.internalroutes',{},{'reload':'app.voice.internalroutes'});}function _0x3a10a6(){var _0x4f8608=_0x3efc98;_0x19c8ff[_0x4f8608('0x1b0c')]['update']({'id':_0x33592b[_0x4f8608('0x26e3')]['id']},_0x33592b[_0x4f8608('0x26e3')])[_0x4f8608('0x1376')]['then'](function(){var _0x4e17c8=_0x4f8608;_0x5d8391['success']({'title':_0x4e17c8('0x19f5'),'msg':_0x33592b[_0x4e17c8('0x26e3')]['name']?_0x33592b[_0x4e17c8('0x26e3')]['name']+_0x4e17c8('0xa8d'):''});})['catch'](function(_0x34b2b0){var _0x180b52=_0x4f8608;_0x5d8391['error']({'title':_0x34b2b0[_0x180b52('0x209')]?_0x180b52('0x22d')+_0x34b2b0['status']+_0x180b52('0xa99')+_0x34b2b0[_0x180b52('0x1808')]:_0x180b52('0x681'),'msg':_0x34b2b0[_0x180b52('0x11c2')]?JSON[_0x180b52('0x25e')](_0x34b2b0['data']):_0x34b2b0[_0x180b52('0x174f')]()});});}}const _0x451005=_0xfab775,_0x3261ea=_0x398308['p']+'src/js/modules/main/apps/voice/views/internalroutes/create/dialog.html/dialog-[chunkhash].html';_0xdebc69['$inject']=['$scope',_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),'$mdSidenav',_0x3877e3('0x1850'),'$document',_0x3877e3('0x2313'),'$translate',_0x3877e3('0x474'),_0x3877e3('0x758'),'userProfileSection',_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0xdebc69(_0x48aa25,_0x231a4e,_0x22599c,_0x2461fe,_0x5e9b75,_0x31232b,_0x4e6e72,_0x2429dc,_0x4b44a2,_0x48d9ae,_0x4f229a,_0x42b090,_0x356818,_0x483333,_0x3ed96a,_0x10a647,_0x104eba){var _0x556344=_0x3877e3,_0x38931d=this;_0x38931d[_0x556344('0x2ff')]=_0x10a647,_0x38931d['setting']=_0x104eba,_0x38931d[_0x556344('0x123f')]=_0x3ed96a[_0x556344('0x15ed')](),_0x38931d['internalroutes']=_0x4b44a2||{'count':0x0,'rows':[]},_0x38931d['userProfile']=_0x48d9ae,_0x38931d['userProfileSection']=_0x4f229a&&_0x4f229a['count']==0x1?_0x4f229a[_0x556344('0x1b33')][0x0]:null,_0x38931d[_0x556344('0x5ed')]=_0x3ed96a[_0x556344('0x1778')](_0x38931d[_0x556344('0xab4')]?_0x38931d[_0x556344('0xab4')][_0x556344('0x5ed')]:null),_0x38931d[_0x556344('0x1897')]=_0x556344('0x474'),_0x38931d[_0x556344('0x11dc')]='',_0x38931d[_0x556344('0x18cf')]=null,_0x38931d['selectedInternalRoutes']=[],_0x38931d[_0x556344('0x77')]={'fields':_0x556344('0x2049'),'type':_0x556344('0x201f'),'sort':_0x556344('0x33'),'VoiceExtensionId':_0x556344('0x27a'),'limit':0xa,'page':0x1},_0x38931d[_0x556344('0x1c88')]=_0x4c326d,_0x38931d[_0x556344('0x2593')]=_0x504165,_0x38931d[_0x556344('0xdb1')]=_0x3d21bb,_0x38931d[_0x556344('0x1626')]=_0x16cb89,_0x38931d[_0x556344('0x75c')]=_0xc5770b,_0x38931d['deleteInternalRoute']=_0x8803f4,_0x38931d[_0x556344('0x1c6')]=_0x1a36af,_0x38931d['deleteSelectedInternalRoutes']=_0x2d5779,_0x38931d[_0x556344('0x8cf')]=_0x1db115,_0x38931d['selectAllInternalRoutes']=_0x40e876,_0x3ed96a[_0x556344('0x21de')](_0x556344('0x1bd8'))?_0x42b090['voiceContext'][_0x556344('0x595')]({'fields':'id,name','sort':_0x556344('0x19fe'),'nolimit':_0x556344('0x19bd')})[_0x556344('0x1376')][_0x556344('0x21ad')](function(_0x4c33d3){var _0x339d53=_0x556344;_0x38931d[_0x339d53('0x1089')]=_0x4c33d3[_0x339d53('0x1b33')]||[];})['catch'](function(_0x19e4d9){var _0x194e63=_0x556344;_0x483333[_0x194e63('0x2092')]({'title':_0x19e4d9[_0x194e63('0x209')]?_0x194e63('0x22d')+_0x19e4d9['status']+_0x194e63('0xa99')+_0x19e4d9[_0x194e63('0x1808')]:'SYSTEM:GET_CONTEXTS','msg':_0x19e4d9[_0x194e63('0x11c2')]?JSON[_0x194e63('0x25e')](_0x19e4d9[_0x194e63('0x11c2')]):_0x19e4d9[_0x194e63('0x174f')]()});}):_0x42b090[_0x556344('0x608')][_0x556344('0x595')]({'fields':_0x556344('0x1aa8'),'sort':'name','nolimit':'true'})[_0x556344('0x1376')]['then'](function(_0x46cab4){var _0x458ad1=_0x556344;_0x38931d[_0x458ad1('0x1089')]=_0x46cab4[_0x458ad1('0x1b33')]||[];})[_0x556344('0x21ad')](function(){var _0x231fa9=_0x556344;return _0x42b090[_0x231fa9('0xab4')][_0x231fa9('0x595')]({'userProfileId':_0x38931d[_0x231fa9('0x123f')][_0x231fa9('0x1618')],'sectionId':0x195})[_0x231fa9('0x1376')];})['then'](function(_0x35c72b){var _0x55d794=_0x556344,_0x1c3e14=_0x35c72b&&_0x35c72b['rows']?_0x35c72b[_0x55d794('0x1b33')][0x0]:null;if(!_0x1c3e14)return _0x42b090['voiceContext'][_0x55d794('0x595')]({'fields':_0x55d794('0x1aa8'),'sort':'name','nolimit':_0x55d794('0x19bd'),'defaultEntry':0x1})[_0x55d794('0x1376')][_0x55d794('0x21ad')](function(_0x33ffa6){var _0x1cba5d=_0x55d794;_0x38931d[_0x1cba5d('0x1089')]=_0x33ffa6[_0x1cba5d('0x1b33')]||[];});else{if(!_0x1c3e14[_0x55d794('0x80c')])return _0x42b090[_0x55d794('0x185e')][_0x55d794('0x595')]({'sectionId':_0x1c3e14['id']})[_0x55d794('0x1376')][_0x55d794('0x21ad')](function(_0x1e8944){var _0x25b6ec=_0x55d794,_0x33d83c=_0x86640f()[_0x25b6ec('0x26c3')](_0x1e8944[_0x25b6ec('0x1b33')],function(_0x1f8a60){var _0x52606a=_0x25b6ec;return _0x86640f()[_0x52606a('0x1d2e')](_0x38931d['contexts'],{'id':_0x1f8a60[_0x52606a('0x675')]});}),_0x2cebd9=null;_0x38931d[_0x25b6ec('0x26e3')]&&(_0x2cebd9=_0x86640f()[_0x25b6ec('0x1d2e')](_0x38931d[_0x25b6ec('0x1089')],{'name':_0x38931d[_0x25b6ec('0x26e3')][_0x25b6ec('0x244c')]}));if(_0x2cebd9&&!_0x86640f()[_0x25b6ec('0x2664')](_0x33d83c,['id',_0x2cebd9['id']])){var _0x1fa87f=_0x86640f()[_0x25b6ec('0x1d2e')](_0x38931d['contexts'],{'id':_0x2cebd9['id']});_0x1fa87f[_0x25b6ec('0xba')]=![],_0x33d83c[_0x25b6ec('0x206c')](_0x1fa87f);}_0x38931d[_0x25b6ec('0x1089')]=_0x33d83c;});}})[_0x556344('0x1c1d')](function(_0x4eaec2){var _0x12d3e8=_0x556344;_0x483333[_0x12d3e8('0x2092')]({'title':_0x4eaec2[_0x12d3e8('0x209')]?_0x12d3e8('0x22d')+_0x4eaec2[_0x12d3e8('0x209')]+'\x20-\x20'+_0x4eaec2[_0x12d3e8('0x1808')]:_0x12d3e8('0x1463'),'msg':_0x4eaec2['data']?JSON[_0x12d3e8('0x25e')](_0x4eaec2['data']):_0x4eaec2[_0x12d3e8('0x174f')]()});});function _0x4c326d(_0x261cce){var _0x1e71cd=_0x556344;_0x22599c['go'](_0x1e71cd('0x16fd'),{'id':_0x261cce['id'],'internalroute':_0x261cce,'crudPermissions':_0x38931d[_0x1e71cd('0x5ed')]});}function _0x504165(_0x4ce965,_0x1aacbf){var _0x4b5750=_0x556344,_0x3ec419=_0x5e9b75[_0x4b5750('0xa33')]()[_0x4b5750('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x86640f()[_0x4b5750('0x2159')]('internalroute')+'?')[_0x4b5750('0x276b')](_0x4b5750('0x622')+(_0x4ce965[_0x4b5750('0x19fe')]||_0x4b5750('0x26e3'))+_0x4b5750('0x2135')+_0x4b5750('0x25e0'))[_0x4b5750('0x7a7')](_0x4b5750('0xf5d'))['targetEvent'](_0x1aacbf)['ok']('OK')[_0x4b5750('0x3b5')](_0x4b5750('0x284b'));_0x5e9b75[_0x4b5750('0x853')](_0x3ec419)[_0x4b5750('0x21ad')](function(){_0x8803f4(_0x4ce965);},function(){var _0x418ba4=_0x4b5750;console[_0x418ba4('0x6fb')](_0x418ba4('0x284b'));});}var _0x55bcf5=!![],_0x33576a=0x1;_0x48aa25['$watch']('vm.query.filter',function(_0x1326a6,_0x357200){var _0x962994=_0x556344;_0x55bcf5?_0x4e6e72(function(){_0x55bcf5=![];}):(!_0x357200&&(_0x33576a=_0x38931d[_0x962994('0x77')][_0x962994('0x2376')]),_0x1326a6!==_0x357200&&(_0x38931d[_0x962994('0x77')][_0x962994('0x2376')]=0x1),!_0x1326a6&&(_0x38931d[_0x962994('0x77')]['page']=_0x33576a),_0x38931d[_0x962994('0x1626')]());});function _0x3d21bb(_0x4bcb93){_0x38931d['internalroutes']=_0x4bcb93||{'count':0x0,'rows':[]};}function _0x16cb89(){var _0x3bb4ce=_0x556344;_0x38931d['query'][_0x3bb4ce('0x15a5')]=(_0x38931d[_0x3bb4ce('0x77')][_0x3bb4ce('0x2376')]-0x1)*_0x38931d['query']['limit'],_0x3ed96a[_0x3bb4ce('0x21de')]('admin')?_0x38931d['promise']=_0x42b090['voiceExtension'][_0x3bb4ce('0x595')](_0x38931d['query'],_0x3d21bb)['$promise']:(_0x38931d[_0x3bb4ce('0x77')]['id']=_0x38931d[_0x3bb4ce('0x758')]['id'],_0x38931d['query'][_0x3bb4ce('0x26ad')]='InternalRoutes',_0x38931d['promise']=_0x42b090[_0x3bb4ce('0x758')][_0x3bb4ce('0x321')](_0x38931d['query'],_0x3d21bb)[_0x3bb4ce('0x1376')]);}function _0xc5770b(_0x1a8f2c,_0x58436f){var _0x38a4e1=_0x556344;_0x5e9b75[_0x38a4e1('0x853')]({'controller':_0x38a4e1('0xa7d'),'controllerAs':'vm','templateUrl':_0x3261ea,'parent':angular[_0x38a4e1('0x1676')](_0x31232b['body']),'targetEvent':_0x1a8f2c,'clickOutsideToClose':!![],'locals':{'internalroute':_0x58436f,'internalroutes':_0x38931d[_0x38a4e1('0x474')]['rows'],'license':_0x38931d[_0x38a4e1('0x2ff')],'setting':_0x38931d['setting'],'crudPermissions':_0x38931d['crudPermissions']}});}function _0x8803f4(_0x3f2303){var _0x261220=_0x556344;_0x42b090[_0x261220('0x1b0c')][_0x261220('0x1164')]({'id':_0x3f2303['id']})[_0x261220('0x1376')][_0x261220('0x21ad')](function(){var _0x267151=_0x261220;_0x86640f()[_0x267151('0x16a2')](_0x38931d[_0x267151('0x474')][_0x267151('0x1b33')],{'id':_0x3f2303['id']}),_0x38931d[_0x267151('0x474')][_0x267151('0x205f')]-=0x1,!_0x38931d['internalroutes'][_0x267151('0x1b33')]['length']&&_0x38931d[_0x267151('0x1626')](),_0x483333['success']({'title':_0x86640f()[_0x267151('0x2159')](_0x267151('0x19cb'))+_0x267151('0xe64'),'msg':_0x3f2303[_0x267151('0x19fe')]?_0x3f2303[_0x267151('0x19fe')]+'\x20has\x20been\x20deleted!':''});})[_0x261220('0x1c1d')](function(_0x96312e){var _0x22af0f=_0x261220;if(_0x96312e[_0x22af0f('0x11c2')]&&_0x96312e[_0x22af0f('0x11c2')][_0x22af0f('0x1a69')]&&_0x96312e[_0x22af0f('0x11c2')]['errors'][_0x22af0f('0x577')]){_0x38931d['errors']=_0x96312e[_0x22af0f('0x11c2')][_0x22af0f('0x1a69')]||[{'message':_0x96312e['toString'](),'type':_0x22af0f('0x2467')}];for(var _0x1736eb=0x0;_0x1736eb<_0x96312e[_0x22af0f('0x11c2')][_0x22af0f('0x1a69')]['length'];_0x1736eb++){_0x483333[_0x22af0f('0x2092')]({'title':_0x96312e[_0x22af0f('0x11c2')][_0x22af0f('0x1a69')][_0x1736eb][_0x22af0f('0x7fa')],'msg':_0x96312e[_0x22af0f('0x11c2')][_0x22af0f('0x1a69')][_0x1736eb][_0x22af0f('0x1224')]});}}else _0x483333[_0x22af0f('0x2092')]({'title':_0x96312e[_0x22af0f('0x209')]?'API:'+_0x96312e[_0x22af0f('0x209')]+_0x22af0f('0xa99')+_0x96312e['statusText']:_0x22af0f('0x2467'),'msg':_0x96312e[_0x22af0f('0x11c2')]?JSON['stringify'](_0x96312e['data'][_0x22af0f('0x1224')]):_0x96312e[_0x22af0f('0x1224')]||_0x96312e[_0x22af0f('0x174f')]()});});}function _0x1a36af(){var _0x5a11fb=_0x556344,_0x278688=angular[_0x5a11fb('0xd75')](_0x38931d[_0x5a11fb('0x1a36')]);return _0x38931d['selectedInternalRoutes']=[],_0x278688;}function _0x2d5779(_0x209263){var _0x4fb2e3=_0x556344,_0x182ab6=_0x5e9b75['confirm']()[_0x4fb2e3('0x4b4')](_0x4fb2e3('0x15e0'))[_0x4fb2e3('0x276b')](_0x4fb2e3('0x622')+_0x38931d['selectedInternalRoutes'][_0x4fb2e3('0x577')]+'\x20selected'+_0x4fb2e3('0x25e0'))[_0x4fb2e3('0x7a7')](_0x4fb2e3('0x10fc'))[_0x4fb2e3('0x1e6d')](_0x209263)['ok']('OK')[_0x4fb2e3('0x3b5')](_0x4fb2e3('0x284b'));_0x5e9b75[_0x4fb2e3('0x853')](_0x182ab6)['then'](function(){var _0x1c8e89=_0x4fb2e3;_0x38931d[_0x1c8e89('0x1a36')][_0x1c8e89('0x1a52')](function(_0x49813f){_0x8803f4(_0x49813f);}),_0x38931d['selectedInternalRoutes']=[];});}function _0x1db115(){var _0x28693e=_0x556344;_0x38931d[_0x28693e('0x1a36')]=[];}function _0x40e876(){var _0x7e41f6=_0x556344;_0x38931d['selectedInternalRoutes']=_0x38931d[_0x7e41f6('0x474')]['rows'];}}const _0x4f9105=_0xdebc69;_0xf6c479[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$location',_0x3877e3('0x1850'),'$q','$translate',_0x3877e3('0x1908'),_0x3877e3('0x1d07'),_0x3877e3('0x2165'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting',_0x3877e3('0x5ed')];function _0xf6c479(_0x4c38ce,_0x301216,_0x250511,_0x5490da,_0x20fd25,_0x2fff1,_0x41c0c6,_0x24c75b,_0xadd714,_0x733b4b,_0x36d394,_0x5c3c34,_0x12f210,_0x1035ed){var _0x2c6216=_0x3877e3,_0x437a25=this;_0x437a25[_0x2c6216('0x123f')]=_0x36d394[_0x2c6216('0x15ed')](),_0x437a25['errors']=[],_0x437a25[_0x2c6216('0x21e')]=_0x12f210,_0x437a25[_0x2c6216('0x2ff')]=_0x5c3c34,_0x437a25[_0x2c6216('0x5ed')]=_0x1035ed,_0x437a25[_0x2c6216('0x126a')]={},_0x437a25[_0x2c6216('0x1432')]=_0x437a25[_0x2c6216('0x21e')]&&_0x437a25[_0x2c6216('0x21e')][_0x2c6216('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x437a25['title']='VOICE.EDIT_MUSICONHOLD',_0x437a25[_0x2c6216('0x2165')]=angular[_0x2c6216('0xd75')](_0xadd714),_0x437a25[_0x2c6216('0x1d07')]=_0x24c75b,_0x437a25['newMusicOnHold']=![];!_0x437a25[_0x2c6216('0x2165')]&&(_0x437a25['musiconhold']={'mode':'files'},_0x437a25[_0x2c6216('0x4b4')]=_0x2c6216('0x2449'),_0x437a25['newMusicOnHold']=!![]);_0x437a25[_0x2c6216('0xa0b')]=_0x4f3776,_0x437a25[_0x2c6216('0x2756')]=_0x5ec259,_0x437a25['deleteMusicOnHold']=_0x3e8aeb,_0x437a25[_0x2c6216('0x279')]=_0xdaf3b,_0x437a25[_0x2c6216('0x167')]=_0xafc959;function _0x4f3776(){var _0x22fc4b=_0x2c6216;_0x437a25[_0x22fc4b('0x1a69')]=[],_0x733b4b[_0x22fc4b('0x1bd9')][_0x22fc4b('0x186f')](_0x437a25[_0x22fc4b('0x2165')])['$promise'][_0x22fc4b('0x21ad')](function(_0x34c278){var _0x44b604=_0x22fc4b;_0x437a25['musiconholds'][_0x44b604('0xd0c')](_0x34c278[_0x44b604('0x3bc')]()),_0x41c0c6[_0x44b604('0xdb1')]({'title':_0x44b604('0xa1c'),'msg':_0x437a25[_0x44b604('0x2165')][_0x44b604('0x19fe')]?_0x437a25[_0x44b604('0x2165')][_0x44b604('0x19fe')]+_0x44b604('0x1694'):''}),_0xafc959(_0x34c278);})[_0x22fc4b('0x1c1d')](function(_0x568189){var _0x4c989f=_0x22fc4b;if(_0x568189[_0x4c989f('0x11c2')]&&_0x568189[_0x4c989f('0x11c2')][_0x4c989f('0x1a69')]&&_0x568189[_0x4c989f('0x11c2')]['errors'][_0x4c989f('0x577')]){_0x437a25['errors']=_0x568189[_0x4c989f('0x11c2')][_0x4c989f('0x1a69')]||[{'message':_0x568189['toString'](),'type':_0x4c989f('0x4a7')}];for(var _0x1a434a=0x0;_0x1a434a<_0x568189[_0x4c989f('0x11c2')]['errors'][_0x4c989f('0x577')];_0x1a434a+=0x1){_0x41c0c6[_0x4c989f('0x2092')]({'title':_0x568189[_0x4c989f('0x11c2')]['errors'][_0x1a434a][_0x4c989f('0x7fa')],'msg':_0x568189['data'][_0x4c989f('0x1a69')][_0x1a434a][_0x4c989f('0x1224')]});}}else _0x41c0c6[_0x4c989f('0x2092')]({'title':_0x568189[_0x4c989f('0x209')]?_0x4c989f('0x22d')+_0x568189[_0x4c989f('0x209')]+_0x4c989f('0xa99')+_0x568189[_0x4c989f('0x1808')]:'api.voiceMusicOnHold.save','msg':_0x568189['data']?JSON[_0x4c989f('0x25e')](_0x568189[_0x4c989f('0x11c2')][_0x4c989f('0x1224')]):_0x568189[_0x4c989f('0x174f')]()});});}function _0x5ec259(){var _0x2a8ba9=_0x2c6216;_0x437a25[_0x2a8ba9('0x1a69')]=[],_0x733b4b[_0x2a8ba9('0x1bd9')][_0x2a8ba9('0x5ef')]({'id':_0x437a25[_0x2a8ba9('0x2165')]['id']},_0x437a25[_0x2a8ba9('0x2165')])['$promise'][_0x2a8ba9('0x21ad')](function(_0x5a0183){var _0x31ea0f=_0x2a8ba9,_0xd3ecc0=_0x86640f()[_0x31ea0f('0x1d2e')](_0x437a25[_0x31ea0f('0x1d07')],{'id':_0x5a0183['id']});_0xd3ecc0&&_0x86640f()[_0x31ea0f('0xd0e')](_0xd3ecc0,_0x86640f()[_0x31ea0f('0xc50')](_0x5a0183[_0x31ea0f('0x3bc')](),_0x86640f()[_0x31ea0f('0x223b')](_0xd3ecc0))),_0x41c0c6[_0x31ea0f('0xdb1')]({'title':'MusicOnHold\x20properly\x20saved!','msg':_0x437a25[_0x31ea0f('0x2165')]['name']?_0x437a25['musiconhold'][_0x31ea0f('0x19fe')]+'\x20has\x20been\x20saved!':''}),_0xafc959(_0x5a0183);})['catch'](function(_0x25ef53){var _0x428d2a=_0x2a8ba9;if(_0x25ef53[_0x428d2a('0x11c2')]&&_0x25ef53[_0x428d2a('0x11c2')][_0x428d2a('0x1a69')]&&_0x25ef53['data']['errors'][_0x428d2a('0x577')]){_0x437a25[_0x428d2a('0x1a69')]=_0x25ef53[_0x428d2a('0x11c2')]['errors']||[{'message':_0x25ef53[_0x428d2a('0x174f')](),'type':_0x428d2a('0x27c1')}];for(var _0x2396bc=0x0;_0x2396bc<_0x25ef53[_0x428d2a('0x11c2')]['errors'][_0x428d2a('0x577')];_0x2396bc++){_0x41c0c6[_0x428d2a('0x2092')]({'title':_0x25ef53[_0x428d2a('0x11c2')][_0x428d2a('0x1a69')][_0x2396bc][_0x428d2a('0x7fa')],'msg':_0x25ef53['data'][_0x428d2a('0x1a69')][_0x2396bc][_0x428d2a('0x1224')]});}}else _0x41c0c6[_0x428d2a('0x2092')]({'title':_0x25ef53[_0x428d2a('0x209')]?_0x428d2a('0x22d')+_0x25ef53['status']+_0x428d2a('0xa99')+_0x25ef53[_0x428d2a('0x1808')]:_0x428d2a('0x27c1'),'msg':_0x25ef53[_0x428d2a('0x11c2')]?JSON['stringify'](_0x25ef53[_0x428d2a('0x11c2')][_0x428d2a('0x1224')]):_0x25ef53[_0x428d2a('0x174f')]()});});}function _0x3e8aeb(_0x1ed732){var _0x1b4fc1=_0x2c6216;_0x437a25[_0x1b4fc1('0x1a69')]=[];var _0x53f6a9=_0x5490da['confirm']()['title'](_0x1b4fc1('0x196b'))['content'](_0x1b4fc1('0x789'))[_0x1b4fc1('0x7a7')](_0x1b4fc1('0x1090'))['ok'](_0x1b4fc1('0xbfd'))['cancel'](_0x1b4fc1('0x1f40'))[_0x1b4fc1('0x1e6d')](_0x1ed732);_0x5490da[_0x1b4fc1('0x853')](_0x53f6a9)['then'](function(){var _0x19d17c=_0x1b4fc1;_0x733b4b[_0x19d17c('0x1bd9')][_0x19d17c('0x1164')]({'id':_0x437a25[_0x19d17c('0x2165')]['id']})[_0x19d17c('0x1376')][_0x19d17c('0x21ad')](function(){var _0x32c762=_0x19d17c;_0x86640f()['remove'](_0x437a25[_0x32c762('0x1d07')],{'id':_0x437a25['musiconhold']['id']}),_0x41c0c6[_0x32c762('0xdb1')]({'title':'MusicOnHold\x20properly\x20deleted!','msg':(_0x437a25['musiconhold']['name']||'musiconhold')+'\x20has\x20been\x20deleted!'}),_0xafc959(_0x437a25[_0x32c762('0x2165')]);})[_0x19d17c('0x1c1d')](function(_0x59387a){var _0x1f9a8d=_0x19d17c;if(_0x59387a[_0x1f9a8d('0x11c2')]&&_0x59387a[_0x1f9a8d('0x11c2')][_0x1f9a8d('0x1a69')]&&_0x59387a['data']['errors']['length']){_0x437a25[_0x1f9a8d('0x1a69')]=_0x59387a['data'][_0x1f9a8d('0x1a69')]||[{'message':_0x59387a['toString'](),'type':_0x1f9a8d('0xe01')}];for(var _0x575a00=0x0;_0x575a00<_0x59387a[_0x1f9a8d('0x11c2')]['errors'][_0x1f9a8d('0x577')];_0x575a00++){_0x41c0c6[_0x1f9a8d('0x2092')]({'title':_0x59387a[_0x1f9a8d('0x11c2')][_0x1f9a8d('0x1a69')][_0x575a00][_0x1f9a8d('0x7fa')],'msg':_0x59387a[_0x1f9a8d('0x11c2')][_0x1f9a8d('0x1a69')][_0x575a00][_0x1f9a8d('0x1224')]});}}else _0x41c0c6[_0x1f9a8d('0x2092')]({'title':_0x59387a[_0x1f9a8d('0x209')]?'API:'+_0x59387a[_0x1f9a8d('0x209')]+_0x1f9a8d('0xa99')+_0x59387a[_0x1f9a8d('0x1808')]:'api.voiceMusicOnHold.delete','msg':_0x59387a[_0x1f9a8d('0x11c2')]?JSON[_0x1f9a8d('0x25e')](_0x59387a[_0x1f9a8d('0x11c2')][_0x1f9a8d('0x1224')]):_0x59387a['message']||_0x59387a[_0x1f9a8d('0x174f')]()});});},function(){});}function _0xdaf3b(_0x2f3c6c){return _0x2f3c6c===null?undefined:new Date(_0x2f3c6c);}function _0xafc959(_0x135b9d){_0x5490da['hide'](_0x135b9d);}}const _0x1a2e2e=_0xf6c479,_0x57b643=_0x398308['p']+'src/js/modules/main/apps/voice/views/musiconholds/edit/mohSounds/dialog.html/dialog-[chunkhash].html';_0x359953[_0x3877e3('0x1a81')]=['$cookies',_0x3877e3('0x95a'),'$state','$q',_0x3877e3('0x13c1'),_0x3877e3('0x2313'),'$mdDialog',_0x3877e3('0x243f'),'toasty',_0x3877e3('0xccd'),_0x3877e3('0x15bc')];function _0x359953(_0x62442d,_0x1a0f64,_0x13660d,_0x466d04,_0x174a50,_0x4b05af,_0x221235,_0x3f8428,_0x4f94f4,_0x2349c0,_0x27b3b2){var _0x50b8aa=_0x3877e3,_0x30660a=this;_0x30660a[_0x50b8aa('0x123f')]=_0x27b3b2[_0x50b8aa('0x15ed')](),_0x30660a['musiconhold']={},_0x30660a[_0x50b8aa('0xe59')]={'count':0x0,'rows':[]},_0x30660a[_0x50b8aa('0x13cb')]=[],_0x30660a[_0x50b8aa('0x5ed')],_0x30660a['query']={'fields':_0x50b8aa('0x12f5'),'limit':0xa,'page':0x1},_0x30660a[_0x50b8aa('0x1d75')]=_0x2ae946,_0x30660a['deleteConfirm']=_0x457ef9,_0x30660a[_0x50b8aa('0x2276')]=_0x2bfdad,_0x30660a[_0x50b8aa('0xdb1')]=_0x108db0,_0x30660a[_0x50b8aa('0x261')]=_0x58157b,_0x30660a[_0x50b8aa('0x2016')]=_0x40ab48,_0x30660a[_0x50b8aa('0x185b')]=_0xca5d98,_0x30660a['deleteMusicOnHoldMohSound']=_0x4c74b9,_0x30660a[_0x50b8aa('0x71e')]=_0x53fabd,_0x27b3b2[_0x50b8aa('0x21de')]('admin')?_0x2349c0['sound'][_0x50b8aa('0x595')]({'fields':'id,name','sort':_0x50b8aa('0x19fe')})[_0x50b8aa('0x1376')][_0x50b8aa('0x21ad')](function(_0x33a904){var _0x242b61=_0x50b8aa;_0x30660a['sounds']=_0x33a904[_0x242b61('0x1b33')]||[];})[_0x50b8aa('0x1c1d')](function(_0x3c9f92){var _0x1299e7=_0x50b8aa;_0x4f94f4[_0x1299e7('0x2092')]({'title':_0x3c9f92[_0x1299e7('0x209')]?_0x1299e7('0x22d')+_0x3c9f92['status']+_0x1299e7('0xa99')+_0x3c9f92[_0x1299e7('0x1808')]:_0x1299e7('0x2671'),'msg':_0x3c9f92['data']?JSON[_0x1299e7('0x25e')](_0x3c9f92[_0x1299e7('0x11c2')]):_0x3c9f92[_0x1299e7('0x174f')]()});}):_0x2349c0[_0x50b8aa('0x2397')][_0x50b8aa('0x595')]({'fields':_0x50b8aa('0x1aa8'),'sort':_0x50b8aa('0x19fe')})[_0x50b8aa('0x1376')][_0x50b8aa('0x21ad')](function(_0x4d5f2e){var _0x45a5f7=_0x50b8aa;_0x30660a[_0x45a5f7('0xc64')]=_0x4d5f2e[_0x45a5f7('0x1b33')]||[];})[_0x50b8aa('0x21ad')](function(){var _0x2fc64a=_0x50b8aa;return _0x2349c0[_0x2fc64a('0xab4')]['get']({'userProfileId':_0x30660a[_0x2fc64a('0x123f')][_0x2fc64a('0x1618')],'sectionId':0x3ef})[_0x2fc64a('0x1376')];})[_0x50b8aa('0x21ad')](function(_0x51012c){var _0x24a340=_0x50b8aa,_0x75cb20=_0x51012c&&_0x51012c['rows']?_0x51012c[_0x24a340('0x1b33')][0x0]:null;if(!_0x75cb20){var _0x5613c5=[],_0x1c49af=null;_0x30660a[_0x24a340('0x2165')]&&(_0x1c49af=_0x86640f()[_0x24a340('0x1d2e')](_0x30660a['sounds'],{'id':Number(_0x30660a[_0x24a340('0x2165')]['id'])}));for(var _0xe44cc0=0x0;_0xe44cc0<_0x30660a[_0x24a340('0xc64')][_0x24a340('0x577')];_0xe44cc0++){_0x1c49af&&_0x30660a[_0x24a340('0xc64')][_0xe44cc0]['id']===_0x1c49af['id']&&(_0x30660a[_0x24a340('0xc64')][_0xe44cc0]['canSelect']=![],_0x5613c5[_0x24a340('0x206c')](_0x30660a[_0x24a340('0xc64')][_0xe44cc0]));}_0x30660a[_0x24a340('0xc64')]=_0x5613c5;}else{if(!_0x75cb20[_0x24a340('0x80c')])return _0x2349c0['userProfileResource'][_0x24a340('0x595')]({'sectionId':_0x75cb20['id']})[_0x24a340('0x1376')][_0x24a340('0x21ad')](function(_0x26ed37){var _0x5758cb=_0x24a340,_0x4bd27f=_0x86640f()[_0x5758cb('0x26c3')](_0x26ed37['rows'],function(_0x31b616){var _0x5af410=_0x5758cb;return _0x86640f()[_0x5af410('0x1d2e')](_0x30660a[_0x5af410('0xc64')],{'id':_0x31b616['resourceId']});}),_0x37b017=null;_0x30660a[_0x5758cb('0x2165')]&&(_0x37b017=_0x86640f()[_0x5758cb('0x1d2e')](_0x30660a[_0x5758cb('0xc64')],{'id':Number(_0x30660a[_0x5758cb('0x2165')]['id'])}));if(_0x37b017&&!_0x86640f()[_0x5758cb('0x2664')](_0x4bd27f,['id',_0x37b017['id']])){var _0x52a544=_0x86640f()[_0x5758cb('0x1d2e')](_0x30660a[_0x5758cb('0xc64')],{'id':_0x37b017['id']});_0x52a544[_0x5758cb('0xba')]=![],_0x4bd27f[_0x5758cb('0x206c')](_0x52a544);}_0x30660a[_0x5758cb('0xc64')]=_0x4bd27f;});}})[_0x50b8aa('0x1c1d')](function(_0x102d62){var _0x251d4d=_0x50b8aa;_0x4f94f4[_0x251d4d('0x2092')]({'title':_0x102d62[_0x251d4d('0x209')]?_0x251d4d('0x22d')+_0x102d62[_0x251d4d('0x209')]+_0x251d4d('0xa99')+_0x102d62[_0x251d4d('0x1808')]:_0x251d4d('0x1caa'),'msg':_0x102d62[_0x251d4d('0x11c2')]?JSON[_0x251d4d('0x25e')](_0x102d62[_0x251d4d('0x11c2')]):_0x102d62[_0x251d4d('0x174f')]()});});function _0x2ae946(_0x54c6a2,_0x3c8593){var _0x831441=_0x50b8aa;_0x30660a[_0x831441('0x2165')]=_0x54c6a2,_0x30660a[_0x831441('0x5ed')]=typeof _0x3c8593!==_0x831441('0xddc')?_0x3c8593:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x30660a['query'][_0x831441('0x1523')]=_0x30660a[_0x831441('0x2165')]['id'],_0x30660a[_0x831441('0x77')]['id']=_0x30660a[_0x831441('0x2165')]['id'],_0x58157b();}function _0x2bfdad(_0x2fc0e6,_0x1050a3,_0xa0396){var _0x38d4d6=_0x50b8aa;return _0x2349c0[_0x38d4d6('0x2397')][_0x38d4d6('0xb0')]({'id':_0x2fc0e6['id'],'exists':!![],'attachments':_0xa0396})['$promise'][_0x38d4d6('0x21ad')](function(_0x148741){var _0x415791=_0x38d4d6,_0x4ef3af=[_0x148741[_0x415791('0x3da')]],_0xf57602='mohSound'+_0x2fc0e6['id'],_0x17e884=new Blob(_0x4ef3af,{'type':_0x148741[_0x415791('0x7fa')]});_0xf57602=_0x2fc0e6[_0x415791('0x258b')]?_0x2fc0e6['save_name']+'.'+_0x2fc0e6['converted_format']:_0x2fc0e6[_0x415791('0x275c')];var _0xa26d09=window[_0x415791('0x27c3')][_0x415791('0x162e')]('a');_0xa26d09['setAttribute'](_0x415791('0x69e'),URL[_0x415791('0x167b')](_0x17e884)),_0xa26d09[_0x415791('0x127a')]('download',_0xf57602),document['body'][_0x415791('0x14d0')](_0xa26d09),_0xa26d09[_0x415791('0x997')]();})['catch'](function(_0x1850e4){var _0xecd0c6=_0x38d4d6;if(_0x1850e4['data']&&_0x1850e4[_0xecd0c6('0x11c2')][_0xecd0c6('0x1a69')]&&_0x1850e4[_0xecd0c6('0x11c2')][_0xecd0c6('0x1a69')][_0xecd0c6('0x577')])for(var _0x4d79e2=0x0;_0x4d79e2<_0x1850e4['data'][_0xecd0c6('0x1a69')][_0xecd0c6('0x577')];_0x4d79e2+=0x1){_0x4f94f4['error']({'title':_0x1850e4['data']['errors'][_0x4d79e2][_0xecd0c6('0x7fa')],'msg':_0x1850e4[_0xecd0c6('0x11c2')]['errors'][_0x4d79e2][_0xecd0c6('0x1224')]});}else _0x4f94f4[_0xecd0c6('0x2092')]({'title':_0x1850e4[_0xecd0c6('0x209')]?_0xecd0c6('0x22d')+_0x1850e4['status']+_0xecd0c6('0xa99')+_0x1850e4[_0xecd0c6('0x1808')]:_0xecd0c6('0x4a7'),'msg':_0x1850e4[_0xecd0c6('0x11c2')]?JSON[_0xecd0c6('0x25e')](_0x1850e4[_0xecd0c6('0x11c2')]['message']):_0x1850e4[_0xecd0c6('0x174f')]()});});}function _0x457ef9(_0x10b179,_0x44d36d){var _0x243de1=_0x50b8aa,_0x29b0a8=_0x221235[_0x243de1('0xa33')]()['title'](_0x243de1('0x20da'))[_0x243de1('0x276b')](_0x243de1('0x622')+(_0x10b179[_0x243de1('0x19fe')]||_0x10b179['id']&&_0x86640f()[_0x243de1('0x22e')](_0x243de1('0x21f6'))+_0x10b179['id']||_0x243de1('0x121b'))+'
'+_0x243de1('0x25e0'))['ariaLabel'](_0x243de1('0x21cf'))['targetEvent'](_0x44d36d)['ok']('OK')[_0x243de1('0x3b5')](_0x243de1('0x284b'));_0x221235['show'](_0x29b0a8)[_0x243de1('0x21ad')](function(){_0x4c74b9(_0x10b179);},function(){var _0x1e16b8=_0x243de1;console[_0x1e16b8('0x6fb')]('CANCEL');});}function _0x108db0(_0x15b06f){var _0x20b043=_0x50b8aa;_0x30660a[_0x20b043('0xe59')]=_0x15b06f||{'count':0x0,'rows':[]};}function _0x58157b(){var _0x1ded47=_0x50b8aa;_0x30660a['query'][_0x1ded47('0x15a5')]=(_0x30660a['query'][_0x1ded47('0x2376')]-0x1)*_0x30660a[_0x1ded47('0x77')][_0x1ded47('0x1f4a')],_0x30660a[_0x1ded47('0x71b')]=_0x2349c0['voiceMusicOnHold'][_0x1ded47('0x243e')](_0x30660a[_0x1ded47('0x77')],_0x108db0)[_0x1ded47('0x1376')];}function _0x40ab48(_0x33e0a8,_0x2b110c){var _0x26cb9f=_0x50b8aa;_0x221235[_0x26cb9f('0x853')]({'controller':_0x26cb9f('0x1436'),'controllerAs':'vm','templateUrl':_0x57b643,'parent':angular[_0x26cb9f('0x1676')](_0x3f8428[_0x26cb9f('0x2452')]),'targetEvent':_0x33e0a8,'clickOutsideToClose':!![],'locals':{'musiconhold':_0x30660a[_0x26cb9f('0x2165')],'mohSound':_0x2b110c,'mohSounds':_0x30660a['musiconholdMohSounds'][_0x26cb9f('0x1b33')],'license':null,'setting':null,'crudPermissions':_0x30660a[_0x26cb9f('0x5ed')]}});}function _0x4c74b9(_0x40f036){var _0x3c7752=_0x50b8aa;_0x2349c0[_0x3c7752('0x1bd9')][_0x3c7752('0x111e')]({'id':_0x13660d[_0x3c7752('0x171b')]['id'],'id2':_0x40f036['id']})['$promise'][_0x3c7752('0x21ad')](function(){var _0x33e7a6=_0x3c7752;_0x86640f()[_0x33e7a6('0x16a2')](_0x30660a[_0x33e7a6('0xe59')][_0x33e7a6('0x1b33')],{'id':_0x40f036['id']}),_0x30660a[_0x33e7a6('0xe59')][_0x33e7a6('0x205f')]-=0x1,!_0x30660a[_0x33e7a6('0xe59')]['rows'][_0x33e7a6('0x577')]&&_0x58157b(),_0x4f94f4['success']({'title':_0x33e7a6('0x58f'),'msg':_0x40f036[_0x33e7a6('0x19fe')]?_0x40f036['name']+_0x33e7a6('0xb4a'):''});})[_0x3c7752('0x1c1d')](function(_0x7106ea){var _0x398f79=_0x3c7752;if(_0x7106ea[_0x398f79('0x11c2')]&&_0x7106ea['data'][_0x398f79('0x1a69')]&&_0x7106ea[_0x398f79('0x11c2')]['errors']['length']){_0x30660a[_0x398f79('0x1a69')]=_0x7106ea[_0x398f79('0x11c2')][_0x398f79('0x1a69')]||[{'message':_0x7106ea['toString'](),'type':_0x398f79('0x1ede')}];for(var _0x38efda=0x0;_0x38efda<_0x7106ea[_0x398f79('0x11c2')]['errors']['length'];_0x38efda++){_0x4f94f4[_0x398f79('0x2092')]({'title':_0x7106ea['data'][_0x398f79('0x1a69')][_0x38efda][_0x398f79('0x7fa')],'msg':_0x7106ea[_0x398f79('0x11c2')][_0x398f79('0x1a69')][_0x38efda][_0x398f79('0x1224')]});}}else _0x4f94f4['error']({'title':_0x7106ea[_0x398f79('0x209')]?_0x398f79('0x22d')+_0x7106ea[_0x398f79('0x209')]+_0x398f79('0xa99')+_0x7106ea[_0x398f79('0x1808')]:_0x398f79('0x1ede'),'msg':_0x7106ea[_0x398f79('0x11c2')]?JSON['stringify'](_0x7106ea['data'][_0x398f79('0x1224')]):_0x7106ea[_0x398f79('0x1224')]||_0x7106ea[_0x398f79('0x174f')]()});});}function _0xca5d98(){var _0x5bbd60=angular['copy'](_0x30660a['selectedMusicOnHoldMohSounds']);return _0x30660a['selectedMusicOnHoldMohSounds']=[],_0x5bbd60;}function _0x53fabd(_0xca1381){var _0x33b989=_0x50b8aa,_0x4b7e62=_0x221235[_0x33b989('0xa33')]()[_0x33b989('0x4b4')](_0x33b989('0x4d2'))[_0x33b989('0x276b')](_0x33b989('0x622')+_0x30660a[_0x33b989('0x13cb')][_0x33b989('0x577')]+'\x20selected
'+_0x33b989('0x25e0'))[_0x33b989('0x7a7')](_0x33b989('0x1bcb'))[_0x33b989('0x1e6d')](_0xca1381)['ok']('OK')[_0x33b989('0x3b5')](_0x33b989('0x284b'));_0x221235['show'](_0x4b7e62)[_0x33b989('0x21ad')](function(){var _0x2b6772=_0x33b989;_0x30660a['selectedMusicOnHoldMohSounds'][_0x2b6772('0x1a52')](function(_0x2edd31){_0x4c74b9(_0x2edd31);}),_0x30660a['selectedMusicOnHoldMohSounds']=[];});}var _0x5f07ab=!![],_0x4d946e=0x1;_0x1a0f64['$watch']('vm_dc.query.filter',function(_0x19c990,_0x208ac2){var _0x4c28d8=_0x50b8aa;_0x5f07ab?_0x4b05af(function(){_0x5f07ab=![];}):(!_0x208ac2&&(_0x4d946e=_0x30660a[_0x4c28d8('0x77')][_0x4c28d8('0x2376')]),_0x19c990!==_0x208ac2&&(_0x30660a['query']['page']=0x1),!_0x19c990&&(_0x30660a[_0x4c28d8('0x77')][_0x4c28d8('0x2376')]=_0x4d946e),_0x58157b());});}const _0x43aa70=_0x359953;_0x5a9a05['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x2077'),_0x3877e3('0x121b'),_0x3877e3('0xccd'),'Auth','license',_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x5a9a05(_0xef4813,_0x3d503e,_0x4f5b92,_0x22b542,_0x202849,_0x3497e9,_0x4c58fb,_0x36ab52,_0x408c18,_0x780f15,_0x4e95af,_0x32e0c7,_0x65acf0,_0x2b2ee5){var _0x3507a0=_0x3877e3,_0x1c24e0=this;_0x1c24e0[_0x3507a0('0x123f')]=_0x4e95af[_0x3507a0('0x15ed')](),_0x1c24e0[_0x3507a0('0x1a69')]=[],_0x1c24e0[_0x3507a0('0x21e')]=_0x65acf0,_0x1c24e0[_0x3507a0('0x2ff')]=_0x32e0c7,_0x1c24e0[_0x3507a0('0x5ed')]=_0x2b2ee5,_0x1c24e0[_0x3507a0('0x126a')]={},_0x1c24e0[_0x3507a0('0x1432')]=_0x1c24e0[_0x3507a0('0x21e')]&&_0x1c24e0[_0x3507a0('0x21e')][_0x3507a0('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1c24e0[_0x3507a0('0x4b4')]='VOICE.EDIT_MOHSOUND',_0x1c24e0[_0x3507a0('0x121b')]=angular[_0x3507a0('0xd75')](_0x408c18),_0x1c24e0[_0x3507a0('0x2077')]=_0x36ab52,_0x1c24e0[_0x3507a0('0x10b4')]=![];!_0x1c24e0[_0x3507a0('0x121b')]&&(_0x1c24e0[_0x3507a0('0x121b')]={},_0x1c24e0[_0x3507a0('0x4b4')]='VOICE.NEW_MOHSOUND',_0x1c24e0['newMohSound']=!![]);_0x3d503e[_0x3507a0('0x171b')]['id']&&(_0x1c24e0[_0x3507a0('0x121b')]['VoiceMusicOnHoldId']=_0x3d503e[_0x3507a0('0x171b')]['id']);_0x1c24e0[_0x3507a0('0x27cd')]=_0x5d7282,_0x1c24e0['saveMohSound']=_0x5f1379,_0x1c24e0[_0x3507a0('0xdd4')]=_0x2afa1b,_0x1c24e0[_0x3507a0('0x279')]=_0x42123a,_0x1c24e0['closeDialog']=_0x58f80a,_0x4e95af[_0x3507a0('0x21de')](_0x3507a0('0x1bd8'))?_0x780f15['sound'][_0x3507a0('0x595')]({'fields':_0x3507a0('0x1aa8'),'sort':'name'})['$promise'][_0x3507a0('0x21ad')](function(_0x5d3abd){var _0x4556ef=_0x3507a0;_0x1c24e0['sounds']=_0x5d3abd[_0x4556ef('0x1b33')]||[];})[_0x3507a0('0x1c1d')](function(_0x597b24){var _0x26f60d=_0x3507a0;_0x4c58fb[_0x26f60d('0x2092')]({'title':_0x597b24[_0x26f60d('0x209')]?_0x26f60d('0x22d')+_0x597b24[_0x26f60d('0x209')]+_0x26f60d('0xa99')+_0x597b24['statusText']:_0x26f60d('0x2671'),'msg':_0x597b24[_0x26f60d('0x11c2')]?JSON[_0x26f60d('0x25e')](_0x597b24[_0x26f60d('0x11c2')]):_0x597b24['toString']()});}):_0x780f15[_0x3507a0('0x2397')]['get']({'fields':_0x3507a0('0x1aa8'),'sort':_0x3507a0('0x19fe')})[_0x3507a0('0x1376')]['then'](function(_0x1629ce){var _0x5a93e7=_0x3507a0;_0x1c24e0['sounds']=_0x1629ce[_0x5a93e7('0x1b33')]||[];})[_0x3507a0('0x21ad')](function(){var _0x2dd974=_0x3507a0;return _0x780f15[_0x2dd974('0xab4')][_0x2dd974('0x595')]({'userProfileId':_0x1c24e0[_0x2dd974('0x123f')][_0x2dd974('0x1618')],'sectionId':0x3ef})[_0x2dd974('0x1376')];})[_0x3507a0('0x21ad')](function(_0x3033d4){var _0x478b19=_0x3507a0,_0x239c79=_0x3033d4&&_0x3033d4[_0x478b19('0x1b33')]?_0x3033d4[_0x478b19('0x1b33')][0x0]:null;if(!_0x239c79){var _0x448cfc=[],_0x523727=null;_0x1c24e0[_0x478b19('0x121b')]&&(_0x523727=_0x86640f()['find'](_0x1c24e0[_0x478b19('0xc64')],{'id':Number(_0x1c24e0[_0x478b19('0x121b')]['id'])}));for(var _0x3c389e=0x0;_0x3c389e<_0x1c24e0[_0x478b19('0xc64')][_0x478b19('0x577')];_0x3c389e++){_0x523727&&_0x1c24e0[_0x478b19('0xc64')][_0x3c389e]['id']===_0x523727['id']&&(_0x1c24e0['sounds'][_0x3c389e][_0x478b19('0xba')]=![],_0x448cfc[_0x478b19('0x206c')](_0x1c24e0[_0x478b19('0xc64')][_0x3c389e]));}_0x1c24e0[_0x478b19('0xc64')]=_0x448cfc;}else{if(!_0x239c79['autoAssociation'])return _0x780f15[_0x478b19('0x185e')][_0x478b19('0x595')]({'sectionId':_0x239c79['id']})[_0x478b19('0x1376')][_0x478b19('0x21ad')](function(_0x343f62){var _0x10387f=_0x478b19,_0x172b1a=_0x86640f()['map'](_0x343f62[_0x10387f('0x1b33')],function(_0x185954){var _0xe299b8=_0x10387f;return _0x86640f()[_0xe299b8('0x1d2e')](_0x1c24e0[_0xe299b8('0xc64')],{'id':_0x185954[_0xe299b8('0x675')]});}),_0x37a4c8=null;_0x1c24e0[_0x10387f('0x121b')]&&(_0x37a4c8=_0x86640f()[_0x10387f('0x1d2e')](_0x1c24e0[_0x10387f('0xc64')],{'id':Number(_0x1c24e0['mohSound']['id'])}));if(_0x37a4c8&&!_0x86640f()['some'](_0x172b1a,['id',_0x37a4c8['id']])){var _0x2f8373=_0x86640f()[_0x10387f('0x1d2e')](_0x1c24e0[_0x10387f('0xc64')],{'id':_0x37a4c8['id']});_0x2f8373[_0x10387f('0xba')]=![],_0x172b1a[_0x10387f('0x206c')](_0x2f8373);}_0x1c24e0['sounds']=_0x172b1a;});}})[_0x3507a0('0x1c1d')](function(_0xe493e9){var _0x27daaf=_0x3507a0;_0x4c58fb[_0x27daaf('0x2092')]({'title':_0xe493e9[_0x27daaf('0x209')]?_0x27daaf('0x22d')+_0xe493e9[_0x27daaf('0x209')]+'\x20-\x20'+_0xe493e9[_0x27daaf('0x1808')]:_0x27daaf('0x1caa'),'msg':_0xe493e9[_0x27daaf('0x11c2')]?JSON[_0x27daaf('0x25e')](_0xe493e9[_0x27daaf('0x11c2')]):_0xe493e9['toString']()});});function _0x5d7282(){var _0x394267=_0x3507a0;_0x1c24e0[_0x394267('0x1a69')]=[],_0x780f15['voiceMusicOnHold']['addSound']({'id':_0x3d503e['params']['id']},_0x1c24e0[_0x394267('0x121b')])[_0x394267('0x1376')][_0x394267('0x21ad')](function(_0x539f53){var _0x5b077b=_0x394267;_0x1c24e0[_0x5b077b('0x2077')][_0x5b077b('0xd0c')](_0x539f53[_0x5b077b('0x3bc')]()),_0x4c58fb['success']({'title':_0x5b077b('0x5d2'),'msg':_0x1c24e0[_0x5b077b('0x121b')][_0x5b077b('0x19fe')]?_0x1c24e0[_0x5b077b('0x121b')][_0x5b077b('0x19fe')]+_0x5b077b('0x1694'):''}),_0x58f80a(_0x539f53);})['catch'](function(_0x1beb9c){var _0x5e9f9f=_0x394267;if(_0x1beb9c[_0x5e9f9f('0x11c2')]&&_0x1beb9c['data'][_0x5e9f9f('0x1a69')]&&_0x1beb9c[_0x5e9f9f('0x11c2')][_0x5e9f9f('0x1a69')][_0x5e9f9f('0x577')]){_0x1c24e0[_0x5e9f9f('0x1a69')]=_0x1beb9c[_0x5e9f9f('0x11c2')][_0x5e9f9f('0x1a69')]||[{'message':_0x1beb9c[_0x5e9f9f('0x174f')](),'type':'api.voiceMusicOnHold.save'}];for(var _0x3c8dc0=0x0;_0x3c8dc0<_0x1beb9c[_0x5e9f9f('0x11c2')][_0x5e9f9f('0x1a69')][_0x5e9f9f('0x577')];_0x3c8dc0+=0x1){_0x4c58fb['error']({'title':_0x1beb9c['data'][_0x5e9f9f('0x1a69')][_0x3c8dc0][_0x5e9f9f('0x7fa')],'msg':_0x1beb9c[_0x5e9f9f('0x11c2')]['errors'][_0x3c8dc0][_0x5e9f9f('0x1224')]});}}else _0x4c58fb[_0x5e9f9f('0x2092')]({'title':_0x1beb9c['status']?_0x5e9f9f('0x22d')+_0x1beb9c[_0x5e9f9f('0x209')]+'\x20-\x20'+_0x1beb9c[_0x5e9f9f('0x1808')]:'api.voiceMusicOnHold.save','msg':_0x1beb9c[_0x5e9f9f('0x11c2')]?JSON['stringify'](_0x1beb9c[_0x5e9f9f('0x11c2')]['message']):_0x1beb9c[_0x5e9f9f('0x174f')]()});});}function _0x5f1379(){var _0x9e41e0=_0x3507a0;_0x1c24e0[_0x9e41e0('0x1a69')]=[],_0x780f15[_0x9e41e0('0x1bd9')][_0x9e41e0('0x5ef')]({'id':_0x1c24e0[_0x9e41e0('0x121b')]['id']},_0x1c24e0[_0x9e41e0('0x121b')])['$promise'][_0x9e41e0('0x21ad')](function(_0xf7332e){var _0x2eced0=_0x9e41e0,_0x5a8fd3=_0x86640f()[_0x2eced0('0x1d2e')](_0x1c24e0[_0x2eced0('0x2077')],{'id':_0xf7332e['id']});_0x5a8fd3&&_0x86640f()[_0x2eced0('0xd0e')](_0x5a8fd3,_0x86640f()[_0x2eced0('0xc50')](_0xf7332e[_0x2eced0('0x3bc')](),_0x86640f()['keys'](_0x5a8fd3))),_0x4c58fb[_0x2eced0('0xdb1')]({'title':_0x2eced0('0x3aa'),'msg':_0x1c24e0[_0x2eced0('0x121b')]['name']?_0x1c24e0[_0x2eced0('0x121b')][_0x2eced0('0x19fe')]+_0x2eced0('0x2249'):''}),_0x58f80a(_0xf7332e);})[_0x9e41e0('0x1c1d')](function(_0x1afa95){var _0x37174b=_0x9e41e0;if(_0x1afa95['data']&&_0x1afa95[_0x37174b('0x11c2')][_0x37174b('0x1a69')]&&_0x1afa95[_0x37174b('0x11c2')][_0x37174b('0x1a69')][_0x37174b('0x577')]){_0x1c24e0[_0x37174b('0x1a69')]=_0x1afa95[_0x37174b('0x11c2')]['errors']||[{'message':_0x1afa95['toString'](),'type':_0x37174b('0x27c1')}];for(var _0x33ffb2=0x0;_0x33ffb2<_0x1afa95['data'][_0x37174b('0x1a69')][_0x37174b('0x577')];_0x33ffb2++){_0x4c58fb[_0x37174b('0x2092')]({'title':_0x1afa95[_0x37174b('0x11c2')][_0x37174b('0x1a69')][_0x33ffb2][_0x37174b('0x7fa')],'msg':_0x1afa95['data'][_0x37174b('0x1a69')][_0x33ffb2][_0x37174b('0x1224')]});}}else _0x4c58fb[_0x37174b('0x2092')]({'title':_0x1afa95[_0x37174b('0x209')]?'API:'+_0x1afa95[_0x37174b('0x209')]+_0x37174b('0xa99')+_0x1afa95[_0x37174b('0x1808')]:'api.voiceMusicOnHold.update','msg':_0x1afa95['data']?JSON[_0x37174b('0x25e')](_0x1afa95[_0x37174b('0x11c2')][_0x37174b('0x1224')]):_0x1afa95[_0x37174b('0x174f')]()});});}function _0x2afa1b(_0x537f55){var _0x37dd3c=_0x3507a0;_0x1c24e0['errors']=[];var _0x4e4450=_0x22b542['confirm']()[_0x37dd3c('0x4b4')](_0x37dd3c('0x196b'))['content'](_0x37dd3c('0x1994'))[_0x37dd3c('0x7a7')](_0x37dd3c('0x1b75'))['ok']('Delete')[_0x37dd3c('0x3b5')]('Cancel')[_0x37dd3c('0x1e6d')](_0x537f55);_0x22b542[_0x37dd3c('0x853')](_0x4e4450)[_0x37dd3c('0x21ad')](function(){var _0x45daf6=_0x37dd3c;_0x780f15[_0x45daf6('0x1bd9')][_0x45daf6('0x1164')]({'id':_0x1c24e0[_0x45daf6('0x121b')]['id']})[_0x45daf6('0x1376')]['then'](function(){var _0x29f584=_0x45daf6;_0x86640f()[_0x29f584('0x16a2')](_0x1c24e0['mohSounds'],{'id':_0x1c24e0[_0x29f584('0x121b')]['id']}),_0x4c58fb[_0x29f584('0xdb1')]({'title':'MohSound\x20properly\x20deleted!','msg':(_0x1c24e0[_0x29f584('0x121b')]['name']||_0x29f584('0x121b'))+_0x29f584('0xb4a')}),_0x58f80a(_0x1c24e0['mohSound']);})[_0x45daf6('0x1c1d')](function(_0x1090d7){var _0x413024=_0x45daf6;if(_0x1090d7[_0x413024('0x11c2')]&&_0x1090d7[_0x413024('0x11c2')][_0x413024('0x1a69')]&&_0x1090d7['data']['errors']['length']){_0x1c24e0['errors']=_0x1090d7[_0x413024('0x11c2')][_0x413024('0x1a69')]||[{'message':_0x1090d7[_0x413024('0x174f')](),'type':_0x413024('0xe01')}];for(var _0x2b31c3=0x0;_0x2b31c3<_0x1090d7[_0x413024('0x11c2')][_0x413024('0x1a69')][_0x413024('0x577')];_0x2b31c3++){_0x4c58fb[_0x413024('0x2092')]({'title':_0x1090d7[_0x413024('0x11c2')]['errors'][_0x2b31c3][_0x413024('0x7fa')],'msg':_0x1090d7['data']['errors'][_0x2b31c3][_0x413024('0x1224')]});}}else _0x4c58fb[_0x413024('0x2092')]({'title':_0x1090d7[_0x413024('0x209')]?_0x413024('0x22d')+_0x1090d7[_0x413024('0x209')]+_0x413024('0xa99')+_0x1090d7[_0x413024('0x1808')]:_0x413024('0xe01'),'msg':_0x1090d7['data']?JSON[_0x413024('0x25e')](_0x1090d7['data']['message']):_0x1090d7[_0x413024('0x1224')]||_0x1090d7['toString']()});});},function(){});}function _0x42123a(_0x4f6236){return _0x4f6236===null?undefined:new Date(_0x4f6236);}function _0x58f80a(_0x270947){_0x22b542['hide'](_0x270947);}}const _0x4d5ef8=_0x5a9a05;_0x552bae[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$document','$translate',_0x3877e3('0x2ff'),_0x3877e3('0x21e'),'api',_0x3877e3('0x1908'),'Auth',_0x3877e3('0x2165'),_0x3877e3('0xab4')];function _0x552bae(_0x5b0c84,_0x2125e7,_0x3ccc2d,_0x2cc998,_0x109bf2,_0x8b21e5,_0x55917f,_0x11bf04,_0x413d01,_0x4191b6,_0xd679e3,_0x4587bf){var _0x599a07=_0x3877e3,_0x42aaeb=this;_0x42aaeb[_0x599a07('0x123f')]=_0x4191b6[_0x599a07('0x15ed')](),_0x42aaeb[_0x599a07('0x2ff')]=_0x8b21e5,_0x42aaeb[_0x599a07('0x21e')]=_0x55917f,_0x42aaeb[_0x599a07('0x1432')]=_0x42aaeb[_0x599a07('0x21e')][_0x599a07('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x42aaeb[_0x599a07('0x626')]=_0x2125e7['protocol']()+_0x599a07('0x22a9')+_0x2125e7[_0x599a07('0x1c01')](),_0x42aaeb[_0x599a07('0x2165')]=_0xd679e3||_0x5b0c84[_0x599a07('0x171b')]['musiconhold']||{},_0x42aaeb['userProfileSection']=_0x4587bf&&_0x4587bf['count']==0x1?_0x4587bf[_0x599a07('0x1b33')][0x0]:null,_0x42aaeb[_0x599a07('0x5ed')]=_0x4191b6[_0x599a07('0x1778')](_0x42aaeb[_0x599a07('0xab4')]?_0x42aaeb[_0x599a07('0xab4')][_0x599a07('0x5ed')]:null),_0x42aaeb[_0x599a07('0x126a')]={},_0x42aaeb[_0x599a07('0x302')]=_0x5b0c84[_0x599a07('0x171b')][_0x599a07('0x12e1')]||0x0,_0x42aaeb[_0x599a07('0x95b')]=_0x413d01['info'],_0x42aaeb['gotoMusicOnHolds']=_0x19b15a,_0x42aaeb[_0x599a07('0x2756')]=_0x31d266;function _0x19b15a(){var _0x45b058=_0x599a07;_0x5b0c84['go'](_0x45b058('0x202f'),{},{'reload':_0x45b058('0x202f')});}function _0x31d266(){var _0x3a86df=_0x599a07;_0x11bf04['voiceMusicOnHold']['update']({'id':_0x42aaeb['musiconhold']['id']},_0x42aaeb[_0x3a86df('0x2165')])[_0x3a86df('0x1376')]['then'](function(){var _0xf316af=_0x3a86df;_0x413d01['success']({'title':_0xf316af('0x857'),'msg':_0x42aaeb[_0xf316af('0x2165')][_0xf316af('0x19fe')]?_0x42aaeb[_0xf316af('0x2165')][_0xf316af('0x19fe')]+_0xf316af('0xa8d'):''});})[_0x3a86df('0x1c1d')](function(_0x4dd51c){var _0x1dc3f2=_0x3a86df;_0x413d01[_0x1dc3f2('0x2092')]({'title':_0x4dd51c[_0x1dc3f2('0x209')]?_0x1dc3f2('0x22d')+_0x4dd51c[_0x1dc3f2('0x209')]+_0x1dc3f2('0xa99')+_0x4dd51c[_0x1dc3f2('0x1808')]:_0x1dc3f2('0x1ede'),'msg':_0x4dd51c[_0x1dc3f2('0x11c2')]?JSON[_0x1dc3f2('0x25e')](_0x4dd51c[_0x1dc3f2('0x11c2')]):_0x4dd51c[_0x1dc3f2('0x174f')]()});});}}const _0x222624=_0x552bae,_0x1a231d=_0x398308['p']+'src/js/modules/main/apps/voice/views/musiconholds/create/dialog.html/dialog-[chunkhash].html';_0x5a4680[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),'$mdDialog','$document',_0x3877e3('0x2313'),_0x3877e3('0x13c1'),'musiconholds','userProfile',_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting'];function _0x5a4680(_0x101c0a,_0x3b7f14,_0x1e5b1a,_0x49069a,_0x27338a,_0x254ae1,_0x2b8363,_0x2de8ab,_0x3834ec,_0x5d1740,_0x256f90,_0x428663,_0x105df1,_0x3a9161,_0x2fbe70,_0x5d08d8,_0x35ba93){var _0x4df912=_0x3877e3,_0xe65c00=this;_0xe65c00[_0x4df912('0x2ff')]=_0x5d08d8,_0xe65c00['setting']=_0x35ba93,_0xe65c00['currentUser']=_0x2fbe70[_0x4df912('0x15ed')](),_0xe65c00[_0x4df912('0x1d07')]=_0x3834ec||{'count':0x0,'rows':[]},_0xe65c00[_0x4df912('0x758')]=_0x5d1740,_0xe65c00[_0x4df912('0xab4')]=_0x256f90&&_0x256f90[_0x4df912('0x205f')]==0x1?_0x256f90[_0x4df912('0x1b33')][0x0]:null,_0xe65c00[_0x4df912('0x5ed')]=_0x2fbe70['parseCrudPermissions'](_0xe65c00[_0x4df912('0xab4')]?_0xe65c00['userProfileSection'][_0x4df912('0x5ed')]:null),_0xe65c00[_0x4df912('0x1897')]='musiconholds',_0xe65c00[_0x4df912('0x11dc')]='',_0xe65c00[_0x4df912('0x18cf')]=null,_0xe65c00['selectedMusicOnHolds']=[],_0xe65c00[_0x4df912('0x77')]={'fields':'createdAt,updatedAt,id,name,mode,directory,application,format,sort','defaultEntry':_0x4df912('0x7a9'),'limit':0xa,'page':0x1},_0xe65c00[_0x4df912('0x161b')]=_0x86640f()['keyBy']([{'option':_0x4df912('0x1dc4'),'value':_0x4df912('0x18da')},{'option':_0x4df912('0x27b9'),'value':_0x4df912('0xa82')}],function(_0x5131ab){var _0x53fd58=_0x4df912;return _0x86640f()['replace'](_0x5131ab[_0x53fd58('0x2228')],new RegExp('\x27','g'),'');}),_0xe65c00[_0x4df912('0x277e')]=_0x86640f()[_0x4df912('0xcde')]([{'option':_0x4df912('0x4d5'),'value':'\x27random\x27'},{'option':_0x4df912('0x23ee'),'value':'\x27alpha\x27'}],function(_0x321693){return _0x86640f()['replace'](_0x321693['value'],new RegExp('\x27','g'),'');}),_0xe65c00[_0x4df912('0x1c88')]=_0x5f496f,_0xe65c00[_0x4df912('0x2593')]=_0x1433e,_0xe65c00[_0x4df912('0xdb1')]=_0x28641f,_0xe65c00[_0x4df912('0xf90')]=_0x7c0167,_0xe65c00[_0x4df912('0x1601')]=_0x53748c,_0xe65c00[_0x4df912('0x23e2')]=_0x1f7270,_0xe65c00[_0x4df912('0x4b6')]=_0x4893dd,_0xe65c00[_0x4df912('0x1a28')]=_0x1528d7,_0xe65c00['deselectMusicOnHolds']=_0x90ff57,_0xe65c00['selectAllMusicOnHolds']=_0x2229f0;function _0x5f496f(_0x203fbc){var _0x55ffc0=_0x4df912;_0x1e5b1a['go'](_0x55ffc0('0x787'),{'id':_0x203fbc['id'],'musiconhold':_0x203fbc,'crudPermissions':_0xe65c00['crudPermissions']});}function _0x1433e(_0x34b7f4,_0x26f19a){var _0x27e9ee=_0x4df912,_0x4b0735=_0x27338a['confirm']()[_0x27e9ee('0x4b4')](_0x27e9ee('0x25b6')+_0x86640f()[_0x27e9ee('0x2159')](_0x27e9ee('0x2165'))+'?')[_0x27e9ee('0x276b')](_0x27e9ee('0x622')+(_0x34b7f4[_0x27e9ee('0x19fe')]||_0x27e9ee('0x2165'))+_0x27e9ee('0x2135')+_0x27e9ee('0x25e0'))[_0x27e9ee('0x7a7')]('delete\x20musiconhold')[_0x27e9ee('0x1e6d')](_0x26f19a)['ok']('OK')['cancel'](_0x27e9ee('0x284b'));_0x27338a[_0x27e9ee('0x853')](_0x4b0735)[_0x27e9ee('0x21ad')](function(){_0x1f7270(_0x34b7f4);},function(){var _0x3d3c61=_0x27e9ee;console[_0x3d3c61('0x6fb')]('CANCEL');});}var _0x317e2b=!![],_0x4dc150=0x1;_0x101c0a['$watch'](_0x4df912('0x1948'),function(_0x2fa057,_0x3e8c87){var _0x3d15ad=_0x4df912;_0x317e2b?_0x2b8363(function(){_0x317e2b=![];}):(!_0x3e8c87&&(_0x4dc150=_0xe65c00['query'][_0x3d15ad('0x2376')]),_0x2fa057!==_0x3e8c87&&(_0xe65c00['query']['page']=0x1),!_0x2fa057&&(_0xe65c00[_0x3d15ad('0x77')][_0x3d15ad('0x2376')]=_0x4dc150),_0xe65c00[_0x3d15ad('0xf90')]());});function _0x28641f(_0xefa6cb){var _0xa3a1a2=_0x4df912;_0xe65c00[_0xa3a1a2('0x1d07')]=_0xefa6cb||{'count':0x0,'rows':[]};}function _0x7c0167(){var _0x32e381=_0x4df912;_0xe65c00['query'][_0x32e381('0x15a5')]=(_0xe65c00[_0x32e381('0x77')][_0x32e381('0x2376')]-0x1)*_0xe65c00[_0x32e381('0x77')][_0x32e381('0x1f4a')],_0x2fbe70[_0x32e381('0x21de')]('admin')?_0xe65c00[_0x32e381('0x71b')]=_0x428663[_0x32e381('0x1bd9')][_0x32e381('0x595')](_0xe65c00['query'],_0x28641f)[_0x32e381('0x1376')]:(_0xe65c00[_0x32e381('0x77')]['id']=_0xe65c00[_0x32e381('0x758')]['id'],_0xe65c00[_0x32e381('0x77')][_0x32e381('0x26ad')]='MusicOnHolds',_0xe65c00['promise']=_0x428663[_0x32e381('0x758')]['getResources'](_0xe65c00[_0x32e381('0x77')],_0x28641f)['$promise']);}function _0x53748c(_0x3615ee,_0x1df000){var _0xca340b=_0x4df912;_0x27338a[_0xca340b('0x853')]({'controller':_0xca340b('0x1d6f'),'controllerAs':'vm','templateUrl':_0x1a231d,'parent':angular[_0xca340b('0x1676')](_0x254ae1[_0xca340b('0x2452')]),'targetEvent':_0x3615ee,'clickOutsideToClose':!![],'locals':{'musiconhold':_0x1df000,'musiconholds':_0xe65c00[_0xca340b('0x1d07')][_0xca340b('0x1b33')],'license':_0xe65c00['license'],'setting':_0xe65c00[_0xca340b('0x21e')],'crudPermissions':_0xe65c00[_0xca340b('0x5ed')]}});}function _0x1f7270(_0x32b702){var _0x52ba42=_0x4df912;_0x428663[_0x52ba42('0x1bd9')][_0x52ba42('0x1164')]({'id':_0x32b702['id']})[_0x52ba42('0x1376')][_0x52ba42('0x21ad')](function(){var _0x568a60=_0x52ba42;_0x86640f()[_0x568a60('0x16a2')](_0xe65c00[_0x568a60('0x1d07')][_0x568a60('0x1b33')],{'id':_0x32b702['id']}),_0xe65c00[_0x568a60('0x1d07')][_0x568a60('0x205f')]-=0x1,!_0xe65c00[_0x568a60('0x1d07')][_0x568a60('0x1b33')][_0x568a60('0x577')]&&_0xe65c00['getMusicOnHolds'](),_0x3a9161[_0x568a60('0xdb1')]({'title':_0x86640f()['startCase'](_0x568a60('0x179b'))+_0x568a60('0xe64'),'msg':_0x32b702[_0x568a60('0x19fe')]?_0x32b702[_0x568a60('0x19fe')]+_0x568a60('0xb4a'):''});})[_0x52ba42('0x1c1d')](function(_0x377087){var _0x46b3e8=_0x52ba42;if(_0x377087['data']&&_0x377087['data'][_0x46b3e8('0x1a69')]&&_0x377087[_0x46b3e8('0x11c2')]['errors'][_0x46b3e8('0x577')]){_0xe65c00[_0x46b3e8('0x1a69')]=_0x377087[_0x46b3e8('0x11c2')]['errors']||[{'message':_0x377087[_0x46b3e8('0x174f')](),'type':_0x46b3e8('0x1a55')}];for(var _0x2c1e26=0x0;_0x2c1e26<_0x377087[_0x46b3e8('0x11c2')][_0x46b3e8('0x1a69')][_0x46b3e8('0x577')];_0x2c1e26++){_0x3a9161[_0x46b3e8('0x2092')]({'title':_0x377087[_0x46b3e8('0x11c2')][_0x46b3e8('0x1a69')][_0x2c1e26][_0x46b3e8('0x7fa')],'msg':_0x377087[_0x46b3e8('0x11c2')]['errors'][_0x2c1e26][_0x46b3e8('0x1224')]});}}else _0x3a9161['error']({'title':_0x377087[_0x46b3e8('0x209')]?_0x46b3e8('0x22d')+_0x377087['status']+'\x20-\x20'+_0x377087[_0x46b3e8('0x1808')]:_0x46b3e8('0x1a55'),'msg':_0x377087[_0x46b3e8('0x11c2')]?JSON[_0x46b3e8('0x25e')](_0x377087[_0x46b3e8('0x11c2')]['message']):_0x377087[_0x46b3e8('0x1224')]||_0x377087[_0x46b3e8('0x174f')]()});});}function _0x4893dd(){var _0x2843cc=_0x4df912,_0x1af7d6=angular[_0x2843cc('0xd75')](_0xe65c00[_0x2843cc('0x2695')]);return _0xe65c00[_0x2843cc('0x2695')]=[],_0x1af7d6;}function _0x1528d7(_0x18a2ef){var _0x373f82=_0x4df912,_0x4218a0=_0x27338a['confirm']()[_0x373f82('0x4b4')](_0x373f82('0x13d9'))[_0x373f82('0x276b')](_0x373f82('0x622')+_0xe65c00[_0x373f82('0x2695')]['length']+_0x373f82('0xd74')+_0x373f82('0x25e0'))[_0x373f82('0x7a7')](_0x373f82('0x1a13'))[_0x373f82('0x1e6d')](_0x18a2ef)['ok']('OK')[_0x373f82('0x3b5')](_0x373f82('0x284b'));_0x27338a[_0x373f82('0x853')](_0x4218a0)[_0x373f82('0x21ad')](function(){var _0x1c5984=_0x373f82;_0xe65c00[_0x1c5984('0x2695')]['forEach'](function(_0x31d67e){_0x1f7270(_0x31d67e);}),_0xe65c00[_0x1c5984('0x2695')]=[];});}function _0x90ff57(){_0xe65c00['selectedMusicOnHolds']=[];}function _0x2229f0(){var _0x227cce=_0x4df912;_0xe65c00[_0x227cce('0x2695')]=_0xe65c00[_0x227cce('0x1d07')]['rows'];}}const _0x35d47f=_0x5a4680;_0x1ce0b3[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),'$mdDialog','$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),'outboundroutes',_0x3877e3('0x35b'),'api',_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x1ce0b3(_0x32aa45,_0x599b41,_0x430300,_0x393746,_0x54999b,_0x55ff9d,_0xfe9bbf,_0x5c0751,_0x1dc5d9,_0xad6ba0,_0x4e9427,_0x510935,_0x2283bf,_0x3628aa){var _0x485b8f=_0x3877e3,_0x5395ea=this;_0x5395ea[_0x485b8f('0x123f')]=_0x4e9427[_0x485b8f('0x15ed')](),_0x5395ea[_0x485b8f('0x1a69')]=[],_0x5395ea[_0x485b8f('0x21e')]=_0x2283bf,_0x5395ea[_0x485b8f('0x2ff')]=_0x510935,_0x5395ea[_0x485b8f('0x5ed')]=_0x3628aa,_0x5395ea[_0x485b8f('0x126a')]={},_0x5395ea['passwordPattern']=_0x5395ea[_0x485b8f('0x21e')]&&_0x5395ea[_0x485b8f('0x21e')][_0x485b8f('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5395ea[_0x485b8f('0x4b4')]=_0x485b8f('0x1b2d'),_0x5395ea['outboundroute']=angular[_0x485b8f('0xd75')](_0x1dc5d9),_0x5395ea[_0x485b8f('0x1042')]=_0x5c0751,_0x5395ea[_0x485b8f('0x150a')]=![],_0x5395ea['outboundrouteApps']={'count':0x0,'rows':[]},_0x5395ea[_0x485b8f('0x69a')]=_0x86640f()[_0x485b8f('0x37a')](_0x86640f()[_0x485b8f('0x203e')]([{'app':_0x485b8f('0x1809'),'appType':_0x485b8f('0xa07'),'type':_0x485b8f('0xc8a'),'types':[_0x485b8f('0x869'),_0x485b8f('0xf50'),'list'],'fields':[],'isApp':![]},{'app':_0x485b8f('0x269f'),'appType':'outboundDial','context':'from-sip','type':'Outbound','icon':'icon-apps','interval':_0x485b8f('0x1cc4'),'options':'xX','isApp':!![],'extraApi':[{'name':_0x485b8f('0x1593'),'route':_0x485b8f('0x1280'),'filters':{'fields':_0x485b8f('0x19fe'),'sort':_0x485b8f('0x19fe')}},{'name':_0x485b8f('0x1889'),'route':_0x485b8f('0x907'),'filters':{'fields':_0x485b8f('0x19fe'),'sort':_0x485b8f('0x19fe'),'nolimit':!![]}}],'fields':[{'title':_0x485b8f('0x1e2e'),'name':_0x485b8f('0x1280'),'type':_0x485b8f('0x15e9'),'values':_0x485b8f('0x1593'),'value':_0x485b8f('0x282e'),'option':_0x485b8f('0x282e'),'required':!![],'param':0x0},{'title':_0x485b8f('0x232'),'name':_0x485b8f('0x1f5a'),'type':_0x485b8f('0xc1e'),'ngPattern':_0x485b8f('0x458'),'help':!![]},{'title':'Prefix','name':'prefix','type':_0x485b8f('0xc1e')},{'title':_0x485b8f('0x557'),'name':'tag','type':_0x485b8f('0x15e9'),'values':_0x485b8f('0x1889'),'value':_0x485b8f('0x1706'),'option':_0x485b8f('0x1706'),'defaultValues':[{'value':_0x485b8f('0x2665'),'option':_0x485b8f('0x2405')}]},{'title':_0x485b8f('0x1149'),'name':_0x485b8f('0x2133'),'type':_0x485b8f('0xed8'),'min':0x0,'param':0x1},{'title':_0x485b8f('0x107a'),'name':_0x485b8f('0x26a0'),'type':'text','param':0x2},{'title':_0x485b8f('0x274b'),'name':_0x485b8f('0x770'),'type':_0x485b8f('0xc1e'),'param':0x3}]},{'app':null,'type':_0x485b8f('0xc8a'),'appType':_0x485b8f('0xf50'),'icon':_0x485b8f('0x1da4'),'interval':_0x485b8f('0x1cc4'),'isApp':!![],'fields':[{'title':_0x485b8f('0x19f8'),'name':_0x485b8f('0x1f94'),'type':_0x485b8f('0xc1e'),'required':!![],'param':0x0},{'title':_0x485b8f('0x2741'),'name':_0x485b8f('0x23c2'),'type':'text','param':0x1}]}],[_0x485b8f('0x1f94')]),{'isApp':![]});!_0x5395ea[_0x485b8f('0x35b')]&&(_0x5395ea['outboundroute']={'appdata':_0x485b8f('0x1697'),'type':'outbound','context':_0x485b8f('0x1961'),'recordingFormat':_0x485b8f('0x983')},_0x5395ea[_0x485b8f('0x4b4')]=_0x485b8f('0x1b36'),_0x5395ea[_0x485b8f('0x150a')]=!![]);_0x5395ea[_0x485b8f('0xfc7')]=_0x34305e,_0x5395ea[_0x485b8f('0x209b')]=_0xd794c1,_0x5395ea[_0x485b8f('0x1d9f')]=_0x979103,_0x5395ea['getDateFromString']=_0x6de7ba,_0x5395ea[_0x485b8f('0x14aa')]=_0x133a9f,_0x5395ea[_0x485b8f('0x167')]=_0x34b635,_0x4e9427[_0x485b8f('0x21de')](_0x485b8f('0x1bd8'))?_0xad6ba0['voiceContext'][_0x485b8f('0x595')]({'fields':_0x485b8f('0x1aa8'),'sort':_0x485b8f('0x19fe'),'nolimit':_0x485b8f('0x19bd')})[_0x485b8f('0x1376')][_0x485b8f('0x21ad')](function(_0x421cbe){var _0x5e53ea=_0x485b8f;_0x5395ea['contexts']=_0x421cbe[_0x5e53ea('0x1b33')]||[];})[_0x485b8f('0x1c1d')](function(_0xf273ca){var _0x2e7ae7=_0x485b8f;_0xfe9bbf[_0x2e7ae7('0x2092')]({'title':_0xf273ca[_0x2e7ae7('0x209')]?_0x2e7ae7('0x22d')+_0xf273ca[_0x2e7ae7('0x209')]+_0x2e7ae7('0xa99')+_0xf273ca['statusText']:_0x2e7ae7('0x11b1'),'msg':_0xf273ca['data']?JSON[_0x2e7ae7('0x25e')](_0xf273ca['data']):_0xf273ca[_0x2e7ae7('0x174f')]()});}):_0xad6ba0[_0x485b8f('0x608')][_0x485b8f('0x595')]({'fields':_0x485b8f('0x1aa8'),'sort':_0x485b8f('0x19fe'),'nolimit':_0x485b8f('0x19bd')})[_0x485b8f('0x1376')][_0x485b8f('0x21ad')](function(_0x25117a){var _0x2928de=_0x485b8f;_0x5395ea[_0x2928de('0x1089')]=_0x25117a['rows']||[];})['then'](function(){var _0x1c35a4=_0x485b8f;return _0xad6ba0[_0x1c35a4('0xab4')][_0x1c35a4('0x595')]({'userProfileId':_0x5395ea[_0x1c35a4('0x123f')]['userProfileId'],'sectionId':0x195})[_0x1c35a4('0x1376')];})['then'](function(_0x1ca1fb){var _0x154b8f=_0x485b8f,_0x47e0f1=_0x1ca1fb&&_0x1ca1fb['rows']?_0x1ca1fb['rows'][0x0]:null;if(!_0x47e0f1)return _0xad6ba0[_0x154b8f('0x608')][_0x154b8f('0x595')]({'fields':_0x154b8f('0x1aa8'),'sort':_0x154b8f('0x19fe'),'nolimit':_0x154b8f('0x19bd'),'defaultEntry':0x1})[_0x154b8f('0x1376')][_0x154b8f('0x21ad')](function(_0x5537e0){var _0x35a327=_0x154b8f;_0x5395ea[_0x35a327('0x1089')]=_0x5537e0[_0x35a327('0x1b33')]||[];});else{if(!_0x47e0f1[_0x154b8f('0x80c')])return _0xad6ba0[_0x154b8f('0x185e')][_0x154b8f('0x595')]({'sectionId':_0x47e0f1['id']})['$promise']['then'](function(_0x2a42c8){var _0x4f3912=_0x154b8f,_0x4dd580=_0x86640f()['map'](_0x2a42c8[_0x4f3912('0x1b33')],function(_0x50e984){var _0x2f7e12=_0x4f3912;return _0x86640f()[_0x2f7e12('0x1d2e')](_0x5395ea[_0x2f7e12('0x1089')],{'id':_0x50e984['resourceId']});}),_0x3d3d40=null;_0x5395ea['outboundroute']&&(_0x3d3d40=_0x86640f()[_0x4f3912('0x1d2e')](_0x5395ea[_0x4f3912('0x1089')],{'name':_0x5395ea[_0x4f3912('0x35b')][_0x4f3912('0x244c')]}));if(_0x3d3d40&&!_0x86640f()['some'](_0x4dd580,['id',_0x3d3d40['id']])){var _0x2d0d00=_0x86640f()[_0x4f3912('0x1d2e')](_0x5395ea['contexts'],{'id':_0x3d3d40['id']});_0x2d0d00[_0x4f3912('0xba')]=![],_0x4dd580['push'](_0x2d0d00);}_0x5395ea[_0x4f3912('0x1089')]=_0x4dd580;});}})[_0x485b8f('0x1c1d')](function(_0x4f211d){var _0xac3d1=_0x485b8f;_0xfe9bbf[_0xac3d1('0x2092')]({'title':_0x4f211d['status']?_0xac3d1('0x22d')+_0x4f211d[_0xac3d1('0x209')]+'\x20-\x20'+_0x4f211d[_0xac3d1('0x1808')]:_0xac3d1('0x1463'),'msg':_0x4f211d[_0xac3d1('0x11c2')]?JSON[_0xac3d1('0x25e')](_0x4f211d['data']):_0x4f211d['toString']()});});function _0x34305e(){var _0x1356d7=_0x485b8f;_0x5395ea[_0x1356d7('0x1a69')]=[],_0xad6ba0[_0x1356d7('0x1b0c')][_0x1356d7('0x186f')](_0x5395ea[_0x1356d7('0x35b')])[_0x1356d7('0x1376')]['then'](function(_0x4e2487){var _0x28289f=_0x1356d7;_0x5395ea[_0x28289f('0x1042')][_0x28289f('0xd0c')](_0x4e2487['toJSON']()),_0xfe9bbf['success']({'title':_0x28289f('0x2761'),'msg':_0x5395ea[_0x28289f('0x35b')][_0x28289f('0x19fe')]?_0x5395ea[_0x28289f('0x35b')][_0x28289f('0x19fe')]+_0x28289f('0x1694'):''}),_0x34b635(_0x4e2487);})[_0x1356d7('0x1c1d')](function(_0x2267ce){var _0x4bde55=_0x1356d7;if(_0x2267ce[_0x4bde55('0x11c2')]&&_0x2267ce[_0x4bde55('0x11c2')][_0x4bde55('0x1a69')]&&_0x2267ce[_0x4bde55('0x11c2')]['errors'][_0x4bde55('0x577')]){_0x5395ea[_0x4bde55('0x1a69')]=_0x2267ce[_0x4bde55('0x11c2')][_0x4bde55('0x1a69')]||[{'message':_0x2267ce[_0x4bde55('0x174f')](),'type':_0x4bde55('0x873')}];for(var _0x43c576=0x0;_0x43c576<_0x2267ce['data'][_0x4bde55('0x1a69')][_0x4bde55('0x577')];_0x43c576+=0x1){_0xfe9bbf['error']({'title':_0x2267ce['data'][_0x4bde55('0x1a69')][_0x43c576][_0x4bde55('0x7fa')],'msg':_0x2267ce[_0x4bde55('0x11c2')]['errors'][_0x43c576]['message']});}}else _0xfe9bbf[_0x4bde55('0x2092')]({'title':_0x2267ce['status']?_0x4bde55('0x22d')+_0x2267ce[_0x4bde55('0x209')]+_0x4bde55('0xa99')+_0x2267ce[_0x4bde55('0x1808')]:_0x4bde55('0x873'),'msg':_0x2267ce['data']?JSON[_0x4bde55('0x25e')](_0x2267ce[_0x4bde55('0x11c2')][_0x4bde55('0x1224')]):_0x2267ce[_0x4bde55('0x174f')]()});});}function _0xd794c1(){var _0x20faf3=_0x485b8f;_0x5395ea[_0x20faf3('0x1a69')]=[],_0xad6ba0[_0x20faf3('0x1b0c')]['update']({'id':_0x5395ea[_0x20faf3('0x35b')]['id']},_0x5395ea['outboundroute'])['$promise'][_0x20faf3('0x21ad')](function(_0x2741a1){var _0x3b9cf1=_0x20faf3,_0x18516d=_0x86640f()[_0x3b9cf1('0x1d2e')](_0x5395ea['outboundroutes'],{'id':_0x2741a1['id']});_0x18516d&&(_0x86640f()[_0x3b9cf1('0xd0e')](_0x18516d,_0x86640f()[_0x3b9cf1('0xc50')](_0x2741a1[_0x3b9cf1('0x3bc')](),_0x86640f()['keys'](_0x18516d))),_0xad6ba0['voiceExtension'][_0x3b9cf1('0x595')]({'sort':_0x3b9cf1('0xbe5'),'VoiceExtensionId':_0x18516d['id'],'isApp':!![],'nolimit':!![]})[_0x3b9cf1('0x1376')]['then'](function(_0x5152f3){var _0x10da89=_0x3b9cf1;_0x5395ea[_0x10da89('0x1d60')]=_0x5152f3,_0x133a9f();})),_0xfe9bbf[_0x3b9cf1('0xdb1')]({'title':_0x3b9cf1('0x2b5'),'msg':_0x5395ea[_0x3b9cf1('0x35b')][_0x3b9cf1('0x19fe')]?_0x5395ea[_0x3b9cf1('0x35b')][_0x3b9cf1('0x19fe')]+_0x3b9cf1('0x2249'):''}),_0x34b635(_0x2741a1);})[_0x20faf3('0x1c1d')](function(_0x4088e5){var _0x35d5e6=_0x20faf3;if(_0x4088e5['data']&&_0x4088e5['data'][_0x35d5e6('0x1a69')]&&_0x4088e5[_0x35d5e6('0x11c2')]['errors'][_0x35d5e6('0x577')]){_0x5395ea[_0x35d5e6('0x1a69')]=_0x4088e5[_0x35d5e6('0x11c2')]['errors']||[{'message':_0x4088e5[_0x35d5e6('0x174f')](),'type':_0x35d5e6('0x20f0')}];for(var _0x598def=0x0;_0x598def<_0x4088e5[_0x35d5e6('0x11c2')][_0x35d5e6('0x1a69')]['length'];_0x598def++){_0xfe9bbf[_0x35d5e6('0x2092')]({'title':_0x4088e5[_0x35d5e6('0x11c2')]['errors'][_0x598def]['type'],'msg':_0x4088e5['data'][_0x35d5e6('0x1a69')][_0x598def][_0x35d5e6('0x1224')]});}}else _0xfe9bbf['error']({'title':_0x4088e5[_0x35d5e6('0x209')]?_0x35d5e6('0x22d')+_0x4088e5['status']+_0x35d5e6('0xa99')+_0x4088e5['statusText']:_0x35d5e6('0x20f0'),'msg':_0x4088e5[_0x35d5e6('0x11c2')]?JSON[_0x35d5e6('0x25e')](_0x4088e5[_0x35d5e6('0x11c2')]['message']):_0x4088e5[_0x35d5e6('0x174f')]()});});}function _0x979103(_0x36f186){var _0x3c7251=_0x485b8f;_0xad6ba0['voicePrefix']['get']({'VoiceExtensionId':_0x1dc5d9['id']})['$promise'][_0x3c7251('0x21ad')](function(_0x4343e4){var _0x33bb2e=_0x3c7251;if(_0x4343e4&&_0x4343e4['rows']&&_0x4343e4[_0x33bb2e('0x1b33')]['length']>0x0)return _0xfe9bbf[_0x33bb2e('0x2092')]({'title':_0x33bb2e('0xaf6'),'msg':_0x33bb2e('0x93a')});else{_0x5395ea[_0x33bb2e('0x1a69')]=[];var _0x31f7fe=_0x393746[_0x33bb2e('0xa33')]()[_0x33bb2e('0x4b4')](_0x33bb2e('0x196b'))['content'](_0x33bb2e('0x27d0'))[_0x33bb2e('0x7a7')](_0x33bb2e('0x18a2'))['ok'](_0x33bb2e('0xbfd'))[_0x33bb2e('0x3b5')]('Cancel')['targetEvent'](_0x36f186);_0x393746['show'](_0x31f7fe)[_0x33bb2e('0x21ad')](function(){var _0x5d8ed5=_0x33bb2e;_0xad6ba0[_0x5d8ed5('0x1b0c')][_0x5d8ed5('0x1164')]({'id':_0x5395ea[_0x5d8ed5('0x35b')]['id']})[_0x5d8ed5('0x1376')]['then'](function(){var _0x288158=_0x5d8ed5;_0x86640f()['remove'](_0x5395ea['outboundroutes'],{'id':_0x5395ea[_0x288158('0x35b')]['id']}),_0xfe9bbf[_0x288158('0xdb1')]({'title':_0x288158('0xc5b'),'msg':(_0x5395ea[_0x288158('0x35b')][_0x288158('0x19fe')]||'outboundroute')+_0x288158('0xb4a')}),_0x34b635(_0x5395ea[_0x288158('0x35b')]);})[_0x5d8ed5('0x1c1d')](function(_0x7440b0){var _0x36455c=_0x5d8ed5;if(_0x7440b0['data']&&_0x7440b0[_0x36455c('0x11c2')]['errors']&&_0x7440b0[_0x36455c('0x11c2')][_0x36455c('0x1a69')][_0x36455c('0x577')]){_0x5395ea[_0x36455c('0x1a69')]=_0x7440b0[_0x36455c('0x11c2')][_0x36455c('0x1a69')]||[{'message':_0x7440b0[_0x36455c('0x174f')](),'type':_0x36455c('0x100a')}];for(var _0x362f45=0x0;_0x362f45<_0x7440b0[_0x36455c('0x11c2')]['errors'][_0x36455c('0x577')];_0x362f45++){_0xfe9bbf['error']({'title':_0x7440b0[_0x36455c('0x11c2')]['errors'][_0x362f45][_0x36455c('0x7fa')],'msg':_0x7440b0[_0x36455c('0x11c2')][_0x36455c('0x1a69')][_0x362f45][_0x36455c('0x1224')]});}}else _0xfe9bbf[_0x36455c('0x2092')]({'title':_0x7440b0['status']?_0x36455c('0x22d')+_0x7440b0['status']+_0x36455c('0xa99')+_0x7440b0[_0x36455c('0x1808')]:_0x36455c('0x100a'),'msg':_0x7440b0[_0x36455c('0x11c2')]?JSON[_0x36455c('0x25e')](_0x7440b0['data'][_0x36455c('0x1224')]):_0x7440b0[_0x36455c('0x1224')]||_0x7440b0['toString']()});});},function(){});}});}function _0x133a9f(){var _0x395ec7=_0x485b8f,_0x3abcd9=0x2,_0x34336f=[];_0x34336f[_0x395ec7('0x206c')]({'type':'outbound','app':_0x395ec7('0x1bae'),'appdata':_0x395ec7('0xe69'),'context':_0x5395ea[_0x395ec7('0x35b')]['context'],'exten':_0x5395ea[_0x395ec7('0x35b')][_0x395ec7('0x24b7')],'priority':_0x3abcd9++,'VoiceExtensionId':_0x5395ea[_0x395ec7('0x35b')]['id']}),_0x34336f['push']({'type':_0x395ec7('0x2300'),'app':_0x395ec7('0x1bae'),'appdata':_0x395ec7('0x10b8')+(_0x5395ea[_0x395ec7('0x35b')][_0x395ec7('0x988')]?_0x395ec7('0x349')+_0x5395ea['outboundroute'][_0x395ec7('0x988')]+'}':_0x395ec7('0x2560')),'context':_0x5395ea[_0x395ec7('0x35b')]['context'],'exten':_0x5395ea[_0x395ec7('0x35b')]['exten'],'priority':_0x3abcd9++,'VoiceExtensionId':_0x5395ea[_0x395ec7('0x35b')]['id']}),_0x34336f[_0x395ec7('0x206c')]({'type':_0x395ec7('0x2300'),'app':_0x395ec7('0x1bae'),'appdata':_0x395ec7('0x1ff4'),'context':_0x5395ea['outboundroute'][_0x395ec7('0x244c')],'exten':_0x5395ea[_0x395ec7('0x35b')][_0x395ec7('0x24b7')],'priority':_0x3abcd9++,'VoiceExtensionId':_0x5395ea[_0x395ec7('0x35b')]['id']}),_0x34336f[_0x395ec7('0x206c')]({'type':_0x395ec7('0x2300'),'app':'Set','appdata':_0x395ec7('0x1254'),'context':_0x5395ea['outboundroute'][_0x395ec7('0x244c')],'exten':_0x5395ea[_0x395ec7('0x35b')][_0x395ec7('0x24b7')],'priority':_0x3abcd9++,'VoiceExtensionId':_0x5395ea['outboundroute']['id']}),_0x34336f[_0x395ec7('0x206c')]({'type':_0x395ec7('0x2300'),'app':_0x395ec7('0x1bae'),'appdata':_0x395ec7('0x24b4'),'context':_0x5395ea['outboundroute'][_0x395ec7('0x244c')],'exten':_0x5395ea[_0x395ec7('0x35b')][_0x395ec7('0x24b7')],'priority':_0x3abcd9++,'VoiceExtensionId':_0x5395ea[_0x395ec7('0x35b')]['id']}),_0x34336f[_0x395ec7('0x206c')]({'type':_0x395ec7('0x2300'),'app':_0x395ec7('0x1bae'),'appdata':'outboundrouteid='+_0x5395ea['outboundroute']['id'],'context':_0x5395ea[_0x395ec7('0x35b')][_0x395ec7('0x244c')],'exten':_0x5395ea[_0x395ec7('0x35b')]['exten'],'priority':_0x3abcd9++,'VoiceExtensionId':_0x5395ea[_0x395ec7('0x35b')]['id']});typeof _0x5395ea[_0x395ec7('0x35b')][_0x395ec7('0xad1')]!==_0x395ec7('0xddc')&&_0x5395ea[_0x395ec7('0x35b')]['recordingFormat']!==_0x395ec7('0x983')&&(_0x34336f[_0x395ec7('0x206c')]({'type':_0x395ec7('0x2300'),'app':_0x395ec7('0x1bae'),'appdata':_0x395ec7('0x1de6'),'context':_0x5395ea[_0x395ec7('0x35b')][_0x395ec7('0x244c')],'exten':_0x5395ea[_0x395ec7('0x35b')]['exten'],'priority':_0x3abcd9++,'VoiceExtensionId':_0x5395ea['outboundroute']['id']}),_0x34336f[_0x395ec7('0x206c')]({'type':_0x395ec7('0x2300'),'app':_0x395ec7('0x1bae'),'appdata':'_XCALLY_MIXMONITOR_FORMAT='+_0x5395ea['outboundroute'][_0x395ec7('0xad1')]||0x0,'context':_0x5395ea[_0x395ec7('0x35b')]['context'],'exten':_0x5395ea[_0x395ec7('0x35b')]['exten'],'priority':_0x3abcd9++,'VoiceExtensionId':_0x5395ea[_0x395ec7('0x35b')]['id']}));for(var _0x2585ca=0x0,_0x443aae=0x0;_0x2585ca<_0x5395ea[_0x395ec7('0x1d60')][_0x395ec7('0x1b33')][_0x395ec7('0x577')];_0x2585ca++,_0x443aae=0x0){var _0x3cdf7b=_0x5395ea[_0x395ec7('0x1d60')][_0x395ec7('0x1b33')][_0x2585ca],_0x351ff3=[],_0x4b53df=[];_0x3cdf7b['intervals']=_0x3cdf7b[_0x395ec7('0xa07')]!==_0x395ec7('0x1cc4')?[_0x3cdf7b[_0x395ec7('0xa07')]]:_0x3cdf7b[_0x395ec7('0x1ac8')]?_0x86640f()[_0x395ec7('0x26c3')](_0x86640f()[_0x395ec7('0x1503')](_0x5395ea[_0x395ec7('0x2530')][_0x395ec7('0x1b33')],{'IntervalId':_0x3cdf7b[_0x395ec7('0x1ac8')]}),_0x395ec7('0xa07')):[],_0x3cdf7b[_0x395ec7('0x244c')]=_0x5395ea[_0x395ec7('0x35b')][_0x395ec7('0x244c')],_0x3cdf7b['exten']=_0x5395ea[_0x395ec7('0x35b')]['exten'];_0x3cdf7b[_0x395ec7('0x7fa')]&&(_0x3cdf7b['type']=_0x3cdf7b[_0x395ec7('0x7fa')][_0x395ec7('0xac2')]());typeof _0x3cdf7b[_0x395ec7('0x907')]!==_0x395ec7('0xddc')&&(_0x3cdf7b[_0x395ec7('0x907')]&&_0x3cdf7b[_0x395ec7('0x907')]!=='--'&&_0x351ff3[_0x395ec7('0x206c')]({'type':_0x3cdf7b['type'][_0x395ec7('0xac2')](),'app':_0x395ec7('0x1bae'),'appdata':_0x395ec7('0x11c7')+_0x3cdf7b[_0x395ec7('0x907')],'context':_0x5395ea[_0x395ec7('0x35b')][_0x395ec7('0x244c')],'exten':_0x5395ea[_0x395ec7('0x35b')][_0x395ec7('0x24b7')],'priority':_0x3cdf7b[_0x395ec7('0x2530')][_0x395ec7('0x577')]+_0x3abcd9+_0x443aae++,'VoiceExtensionId':_0x5395ea['outboundroute']['id']}));_0x3cdf7b[_0x395ec7('0x1f5a')]?_0x351ff3[_0x395ec7('0x206c')]({'type':_0x3cdf7b[_0x395ec7('0x7fa')][_0x395ec7('0xac2')](),'app':'ExecIf','appdata':_0x395ec7('0x1a08')+_0x3cdf7b[_0x395ec7('0x1f5a')]+')','context':_0x5395ea['outboundroute'][_0x395ec7('0x244c')],'exten':_0x5395ea['outboundroute'][_0x395ec7('0x24b7')],'priority':_0x3cdf7b[_0x395ec7('0x2530')][_0x395ec7('0x577')]+_0x3abcd9+_0x443aae++,'VoiceExtensionId':_0x5395ea[_0x395ec7('0x35b')]['id']}):_0x351ff3[_0x395ec7('0x206c')]({'type':_0x3cdf7b[_0x395ec7('0x7fa')][_0x395ec7('0xac2')](),'app':_0x395ec7('0x23e8'),'appdata':_0x395ec7('0xcca'),'context':_0x5395ea[_0x395ec7('0x35b')][_0x395ec7('0x244c')],'exten':_0x5395ea[_0x395ec7('0x35b')][_0x395ec7('0x24b7')],'priority':_0x3cdf7b[_0x395ec7('0x2530')][_0x395ec7('0x577')]+_0x3abcd9+_0x443aae++,'VoiceExtensionId':_0x5395ea[_0x395ec7('0x35b')]['id']});for(var _0x5b16a4=0x0;_0x5b16a4<_0x3cdf7b[_0x395ec7('0x2530')][_0x395ec7('0x577')];_0x5b16a4++){var _0x36befa=_0x3abcd9+_0x3cdf7b[_0x395ec7('0x2530')][_0x395ec7('0x577')],_0x1ac2e9=_0x5b16a4===_0x3cdf7b[_0x395ec7('0x2530')][_0x395ec7('0x577')]-0x1?_0x3abcd9+_0x351ff3[_0x395ec7('0x577')]+_0x4b53df[_0x395ec7('0x577')]+0x2:_0x3abcd9+_0x5b16a4+0x1;_0x351ff3['splice'](_0x5b16a4,0x0,{'type':_0x395ec7('0x2300'),'app':_0x395ec7('0x25a'),'appdata':_0x3cdf7b[_0x395ec7('0x2530')][_0x5b16a4]+'?'+_0x5395ea[_0x395ec7('0x35b')][_0x395ec7('0x244c')]+_0x395ec7('0x1336')+_0x36befa+':'+_0x5395ea['outboundroute']['context']+',${EXTEN},'+_0x1ac2e9,'exten':_0x5395ea[_0x395ec7('0x35b')][_0x395ec7('0x24b7')],'context':_0x5395ea['outboundroute'][_0x395ec7('0x244c')],'priority':_0x3abcd9+_0x5b16a4,'VoiceExtensionId':_0x5395ea[_0x395ec7('0x35b')]['id']});}if(_0x3cdf7b[_0x395ec7('0x522')]==='outboundDial'){var _0x24289f=_0x86640f()[_0x395ec7('0x1d2e')](_0x5395ea[_0x395ec7('0x69a')],{'appType':_0x395ec7('0x4ea')});if(_0x24289f&&_0x24289f[_0x395ec7('0x181e')]){var _0xaff71={},_0x54825f=_0x3cdf7b['appdata'][_0x395ec7('0x1af5')](','),_0x480960=[];for(var _0x44dbd6=0x0,_0x2a8c1f=_0x24289f['fields']['length'];_0x44dbd6<_0x2a8c1f;_0x44dbd6++){if(typeof _0x24289f['fields'][_0x44dbd6][_0x395ec7('0x249f')]!==_0x395ec7('0xddc'))switch(_0x24289f['fields'][_0x44dbd6]['name']){case'trunk':_0xaff71[_0x395ec7('0x1280')]=_0x54825f[_0x24289f[_0x395ec7('0x181e')][_0x44dbd6][_0x395ec7('0x249f')]][_0x395ec7('0x1af5')]('/')[0x1],_0xaff71[_0x395ec7('0x159e')]=_0x54825f[_0x24289f[_0x395ec7('0x181e')][_0x44dbd6]['param']][_0x395ec7('0x1af5')]('/')[0x2],_0xaff71['prefix']=_0xaff71[_0x395ec7('0x159e')]?_0xaff71[_0x395ec7('0x159e')]['split']('$')[0x0]:undefined,_0xaff71[_0x395ec7('0x159e')]=_0x5395ea[_0x395ec7('0x35b')][_0x395ec7('0x988')]?(_0xaff71[_0x395ec7('0x1995')]||'')+_0x395ec7('0x349')+_0x5395ea['outboundroute'][_0x395ec7('0x988')]+'}':(_0xaff71[_0x395ec7('0x1995')]||'')+'${EXTEN}',_0x480960[_0x24289f['fields'][_0x44dbd6][_0x395ec7('0x249f')]]=[_0x395ec7('0x1d2'),_0xaff71[_0x395ec7('0x1280')],_0xaff71['phone']][_0x395ec7('0x136')]('/');break;case _0x395ec7('0x26a0'):_0xaff71[_0x395ec7('0x26a0')]=_0x54825f[_0x24289f[_0x395ec7('0x181e')][_0x44dbd6][_0x395ec7('0x249f')]];_0x5395ea[_0x395ec7('0x35b')][_0x395ec7('0xad1')]!==_0x395ec7('0x983')?_0xaff71[_0x395ec7('0x26a0')][_0x395ec7('0x2004')]('U(xcally-mixmonitor-context)')<0x0&&(_0xaff71[_0x395ec7('0x26a0')]+='U(xcally-mixmonitor-context)'):_0xaff71['options']=_0xaff71[_0x395ec7('0x26a0')][_0x395ec7('0x16e4')](_0x395ec7('0x478'),'');_0x480960[_0x24289f['fields'][_0x44dbd6][_0x395ec7('0x249f')]]=_0xaff71[_0x395ec7('0x26a0')];break;default:_0x480960[_0x24289f['fields'][_0x44dbd6][_0x395ec7('0x249f')]]=_0x54825f[_0x24289f[_0x395ec7('0x181e')][_0x44dbd6][_0x395ec7('0x249f')]];}}_0x3cdf7b[_0x395ec7('0x23c2')]=_0x480960[_0x395ec7('0x136')](',');}}_0x3cdf7b['priority']=_0x351ff3[_0x395ec7('0x577')]?_0x86640f()[_0x395ec7('0x25d5')](_0x351ff3)[_0x395ec7('0xbe5')]+0x1:_0x3abcd9,_0x3abcd9=(_0x4b53df[_0x395ec7('0x577')]?_0x86640f()[_0x395ec7('0x25d5')](_0x4b53df)[_0x395ec7('0xbe5')]:_0x3cdf7b[_0x395ec7('0xbe5')])+0x1,_0x34336f=_0x86640f()[_0x395ec7('0x1877')](_0x34336f,_0x351ff3,[_0x3cdf7b],_0x4b53df);}_0x34336f['push']({'type':'outbound','app':_0x395ec7('0x224'),'exten':_0x5395ea[_0x395ec7('0x35b')]['exten'],'context':_0x5395ea['outboundroute'][_0x395ec7('0x244c')],'priority':_0x3abcd9,'VoiceExtensionId':_0x5395ea[_0x395ec7('0x35b')]['id']}),_0xad6ba0['voiceExtension'][_0x395ec7('0x69f')]({'id':_0x5395ea[_0x395ec7('0x35b')]['id']},_0x86640f()[_0x395ec7('0x203e')](_0x34336f,_0x395ec7('0xbe5')))[_0x395ec7('0x1376')][_0x395ec7('0x21ad')](function(_0x1640d3){var _0x2b92f1=_0x395ec7;_0x5395ea[_0x2b92f1('0x1d60')][_0x2b92f1('0x1b33')]=_0x1640d3[_0x2b92f1('0x1b33')];})[_0x395ec7('0x1c1d')](function(_0x46375f){var _0xca3fd5=_0x395ec7;console[_0xca3fd5('0x2092')](_0x46375f);});}function _0x6de7ba(_0x14883c){return _0x14883c===null?undefined:new Date(_0x14883c);}function _0x34b635(_0x1cca0){_0x393746['hide'](_0x1cca0);}}const _0xc435db=_0x1ce0b3,_0x2dab18=_0x398308['p']+_0x3877e3('0x1ff7'),_0x4513f9=_0x398308['p']+_0x3877e3('0xfaf'),_0x5275a7=_0x398308['p']+'src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/outbounddial/dialog.html/dialog-[chunkhash].html';_0x411eba[_0x3877e3('0x1a81')]=[_0x3877e3('0xccd'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),'toasty',_0x3877e3('0x25d8'),_0x3877e3('0x95a'),'Auth'];var _0x33dcbf={'custom':_0x2dab18,'interval':_0x4513f9,'outbounddial':_0x5275a7};function _0x411eba(_0x3dbaf1,_0x7c90f8,_0x26bffb,_0x325ccd,_0x2d71bb,_0x39755f,_0x2073ca){var _0x1c9c26=_0x3877e3,_0x506e3a=this;_0x506e3a[_0x1c9c26('0x123f')]=_0x2073ca['getCurrentUser'](),_0x506e3a[_0x1c9c26('0x35b')]={},_0x506e3a[_0x1c9c26('0x1d60')]={'count':0x0,'rows':[]},_0x506e3a[_0x1c9c26('0xc99')]=[],_0x506e3a[_0x1c9c26('0x5ed')],_0x506e3a[_0x1c9c26('0x77')]={'sort':_0x1c9c26('0xbe5')},_0x506e3a[_0x1c9c26('0x69a')]=_0x86640f()[_0x1c9c26('0x37a')](_0x86640f()[_0x1c9c26('0x203e')]([{'app':'Interval','appType':'interval','type':_0x1c9c26('0xc8a'),'types':[_0x1c9c26('0x869'),_0x1c9c26('0xf50'),_0x1c9c26('0x17fe')],'fields':[],'isApp':![]},{'app':_0x1c9c26('0x269f'),'appType':_0x1c9c26('0x4ea'),'context':'from-sip','type':_0x1c9c26('0xc8a'),'icon':'icon-apps','interval':'*,*,*,*','options':'xX','isApp':!![],'extraApi':[{'name':_0x1c9c26('0x1593'),'field':{'name':_0x1c9c26('0x1280'),'key':'name'},'route':_0x1c9c26('0x1280'),'filters':{'fields':_0x1c9c26('0x1aa8'),'sort':_0x1c9c26('0x19fe'),'nolimit':!![]},'permissions':{'section':0x3f3}},{'name':_0x1c9c26('0x1889'),'field':{'name':_0x1c9c26('0x907'),'key':_0x1c9c26('0x19fe')},'route':'tag','filters':{'fields':_0x1c9c26('0x1aa8'),'sort':_0x1c9c26('0x19fe'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x1c9c26('0x1e2e'),'name':'trunk','type':_0x1c9c26('0x15e9'),'values':_0x1c9c26('0x1593'),'value':_0x1c9c26('0x282e'),'option':_0x1c9c26('0x282e'),'required':!![],'param':0x0},{'title':'Caller_ID','name':_0x1c9c26('0x1f5a'),'type':'text','help':!![]},{'title':_0x1c9c26('0x12ac'),'name':'prefix','type':_0x1c9c26('0xc1e')},{'title':'Tags','name':_0x1c9c26('0x907'),'type':_0x1c9c26('0x15e9'),'values':_0x1c9c26('0x1889'),'value':_0x1c9c26('0x1706'),'option':'tag.name','defaultValues':[{'value':_0x1c9c26('0x2665'),'option':_0x1c9c26('0x2405')}]},{'title':_0x1c9c26('0x1149'),'name':'timeout','type':_0x1c9c26('0xed8'),'min':0x0,'param':0x1},{'title':_0x1c9c26('0x107a'),'name':'options','type':_0x1c9c26('0xc1e'),'param':0x2},{'title':_0x1c9c26('0x274b'),'name':_0x1c9c26('0x770'),'type':_0x1c9c26('0xc1e'),'param':0x3}]},{'app':null,'type':_0x1c9c26('0xc8a'),'appType':_0x1c9c26('0xf50'),'icon':'icon-apps','interval':_0x1c9c26('0x1cc4'),'isApp':!![],'fields':[{'title':_0x1c9c26('0x19f8'),'name':_0x1c9c26('0x1f94'),'type':_0x1c9c26('0xc1e'),'required':!![],'param':0x0},{'title':'Arguments','name':_0x1c9c26('0x23c2'),'type':_0x1c9c26('0xc1e'),'param':0x1}]}],[_0x1c9c26('0x1f94')]),{'isApp':![]}),_0x506e3a[_0x1c9c26('0x17fe')]={'group':{'name':'opt1','pull':_0x1c9c26('0x1af0')},'animation':0x64,'sort':![]},_0x506e3a[_0x1c9c26('0x21d8')]={'group':{'name':_0x1c9c26('0x1627'),'put':'opt1'},'animation':0x64,'onAdd':function _0x1ac947(_0x138ea3){var _0x272666=_0x1c9c26;_0x54197f(_0x138ea3,_0x138ea3[_0x272666('0x5b8')]);},'onSort':function _0x481be1(){_0x273c67();}},_0x506e3a[_0x1c9c26('0x1d75')]=_0x2ca015,_0x506e3a['deleteConfirm']=_0x2067f8,_0x506e3a[_0x1c9c26('0xb3b')]=_0x51351d,_0x506e3a[_0x1c9c26('0x12b7')]=_0x54197f,_0x506e3a[_0x1c9c26('0xb14')]=_0x46ec7a,_0x506e3a[_0x1c9c26('0xb5f')]=_0x18923d,_0x506e3a[_0x1c9c26('0x4eb')]=_0xb89089,_0x506e3a['rewriteRouting']=_0x273c67,_0x506e3a[_0x1c9c26('0x1ceb')]=_0x2ea771,_0x506e3a[_0x1c9c26('0x1dac')]=_0x31d980;function _0x2ca015(_0x796e64,_0x27aee9){var _0x2f0cc4=_0x1c9c26;_0x506e3a[_0x2f0cc4('0x35b')]=_0x796e64,_0x506e3a[_0x2f0cc4('0x5ed')]=typeof _0x27aee9!==_0x2f0cc4('0xddc')?_0x27aee9:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x506e3a[_0x2f0cc4('0x21d8')][_0x2f0cc4('0x30')]=!_0x506e3a['crudPermissions'][_0x2f0cc4('0x6e2')]?!![]:![],_0x2d71bb['on'](_0x2f0cc4('0x1208'),_0x506e3a['onVoiceExtensionUpdate']),_0x506e3a['query']['VoiceExtensionId']=_0x796e64['id'],_0x506e3a[_0x2f0cc4('0x77')][_0x2f0cc4('0x9f2')]=!![],_0x506e3a[_0x2f0cc4('0x77')][_0x2f0cc4('0x1dc3')]=!![],_0x506e3a['getOutboundRouteApps'](),_0x506e3a[_0x2f0cc4('0x1ceb')]();}function _0x31d980(_0x5161ea){var _0x46b948=_0x1c9c26;_0x5161ea[_0x46b948('0x772')]===_0x506e3a[_0x46b948('0x35b')]['id']&&_0x273c67(!![]);}function _0x2067f8(_0x49a1f6,_0x21e30c,_0x12e3dd){var _0x2b01c2=_0x1c9c26,_0x290e94=_0x7c90f8[_0x2b01c2('0xa33')]()[_0x2b01c2('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')[_0x2b01c2('0x276b')](_0x2b01c2('0x622')+_0x49a1f6[_0x2b01c2('0x1f94')]+_0x2b01c2('0x2135')+'\x20will\x20be\x20deleted.')[_0x2b01c2('0x7a7')](_0x2b01c2('0x1b99'))[_0x2b01c2('0x1e6d')](_0x12e3dd)['ok']('OK')['cancel'](_0x2b01c2('0x284b'));_0x7c90f8[_0x2b01c2('0x853')](_0x290e94)[_0x2b01c2('0x21ad')](function(){var _0x42dc7c=_0x2b01c2;_0x506e3a['outboundrouteApps']['rows'][_0x42dc7c('0xafe')](_0x21e30c,0x1),_0x273c67();},function(){var _0x44f935=_0x2b01c2;console['log'](_0x44f935('0x284b'));});}function _0x54197f(_0x323e7c,_0xf255d){var _0x53262c=_0x1c9c26;if(_0x506e3a[_0x53262c('0x1d60')][_0x53262c('0x1b33')]['length']){var _0x547eff=_0x506e3a['outboundrouteApps']['rows'][_0xf255d]?_0x506e3a[_0x53262c('0x1d60')][_0x53262c('0x1b33')][_0xf255d]:_0x506e3a[_0x53262c('0x1d60')][_0x53262c('0x1b33')][0x0],_0x3785cc=(_0x547eff[_0x53262c('0x522')]||_0x547eff['app'])[_0x53262c('0xac2')]();_0x7c90f8[_0x53262c('0x853')]({'controller':_0x53262c('0x1789')[_0x53262c('0x1877')](_0x3785cc,_0x53262c('0x19d9')),'controllerAs':'vm','templateUrl':_0x33dcbf[_0x3785cc],'parent':angular[_0x53262c('0x1676')](_0x26bffb[_0x53262c('0x2452')]),'targetEvent':_0x323e7c,'clickOutsideToClose':!![],'locals':{'outboundrouteApp':_0x547eff,'outboundroute':_0x506e3a[_0x53262c('0x35b')],'crudPermissions':_0x506e3a[_0x53262c('0x5ed')]}})['then'](function(_0x4299ec){var _0x5406c1=_0x53262c;_0x4299ec&&(_0x4299ec['id']?_0x506e3a[_0x5406c1('0x1d60')][_0x5406c1('0x1b33')][_0xf255d]=_0x4299ec:_0x506e3a['outboundrouteApps'][_0x5406c1('0x1b33')][_0x5406c1('0xafe')](_0xf255d,0x0,_0x4299ec),_0x273c67());})[_0x53262c('0x1c1d')](function(_0x21946e){var _0x2ea700=_0x53262c;_0x21946e&&_0x325ccd[_0x2ea700('0x2092')]({'title':_0x21946e[_0x2ea700('0x209')]?_0x2ea700('0x22d')+_0x21946e[_0x2ea700('0x209')]+_0x2ea700('0xa99')+_0x21946e['statusText']:_0x2ea700('0x20b3'),'msg':_0x21946e['data']?JSON['stringify'](_0x21946e['data']):_0x21946e[_0x2ea700('0x174f')]()});});}}function _0x46ec7a(_0x264bc6,_0x13c4b9){var _0x110c4b=_0x1c9c26;if(_0x506e3a[_0x110c4b('0x1d60')]['rows'][_0x110c4b('0x577')]){var _0x709e3e=_0x506e3a['outboundrouteApps'][_0x110c4b('0x1b33')][_0x13c4b9]?_0x506e3a[_0x110c4b('0x1d60')][_0x110c4b('0x1b33')][_0x13c4b9]:_0x506e3a[_0x110c4b('0x1d60')][_0x110c4b('0x1b33')][0x0];_0x7c90f8[_0x110c4b('0x853')]({'controller':_0x110c4b('0x382'),'controllerAs':'vm','templateUrl':_0x4513f9,'parent':angular[_0x110c4b('0x1676')](_0x26bffb[_0x110c4b('0x2452')]),'targetEvent':_0x264bc6,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x709e3e['interval'],'IntervalId':_0x709e3e[_0x110c4b('0x1ac8')],'application':!![]},'intervals':[],'crudPermissions':_0x506e3a[_0x110c4b('0x5ed')]}})[_0x110c4b('0x21ad')](function(_0x3d2475){var _0xd59c87=_0x110c4b;_0x3d2475&&(_0x709e3e['interval']=_0x3d2475[_0xd59c87('0xa07')]||'*,*,*,*',_0x709e3e[_0xd59c87('0x1ac8')]=_0x3d2475[_0xd59c87('0x1ac8')]||null,_0x273c67());});}}function _0x273c67(_0x34c5cb){var _0x6bf537=_0x1c9c26,_0x7a12e2=0x2,_0x594df6=[];_0x594df6[_0x6bf537('0x206c')]({'type':_0x6bf537('0x2300'),'app':_0x6bf537('0x1bae'),'appdata':_0x6bf537('0xe69'),'context':_0x506e3a[_0x6bf537('0x35b')][_0x6bf537('0x244c')],'exten':_0x506e3a[_0x6bf537('0x35b')][_0x6bf537('0x24b7')],'priority':_0x7a12e2++,'VoiceExtensionId':_0x506e3a[_0x6bf537('0x35b')]['id']}),_0x594df6[_0x6bf537('0x206c')]({'type':'outbound','app':_0x6bf537('0x1bae'),'appdata':'CDR(destination)='+(_0x506e3a['outboundroute']['cutdigits']?_0x6bf537('0x349')+_0x506e3a[_0x6bf537('0x35b')]['cutdigits']+'}':_0x6bf537('0x2560')),'context':_0x506e3a[_0x6bf537('0x35b')]['context'],'exten':_0x506e3a[_0x6bf537('0x35b')]['exten'],'priority':_0x7a12e2++,'VoiceExtensionId':_0x506e3a[_0x6bf537('0x35b')]['id']}),_0x594df6['push']({'type':_0x6bf537('0x2300'),'app':'Set','appdata':_0x6bf537('0x1445')+_0x506e3a[_0x6bf537('0x35b')]['id'],'context':_0x506e3a[_0x6bf537('0x35b')]['context'],'exten':_0x506e3a[_0x6bf537('0x35b')][_0x6bf537('0x24b7')],'priority':_0x7a12e2++,'VoiceExtensionId':_0x506e3a['outboundroute']['id']});var _0xca30dc=_0x7a12e2++;_0x594df6[_0x6bf537('0x206c')]({'type':_0x6bf537('0x2300'),'app':_0x6bf537('0x23e8'),'appdata':_0x6bf537('0xda9')+(_0xca30dc+0x2)+'):Goto('+(_0xca30dc+0x1)+')','context':_0x506e3a['outboundroute'][_0x6bf537('0x244c')],'exten':_0x506e3a[_0x6bf537('0x35b')][_0x6bf537('0x24b7')],'priority':_0xca30dc,'VoiceExtensionId':_0x506e3a[_0x6bf537('0x35b')]['id']}),_0x594df6['push']({'type':'outbound','app':_0x6bf537('0x1bae'),'appdata':_0x506e3a[_0x6bf537('0x35b')][_0x6bf537('0x988')]?'CDR(prefix)=${EXTEN:0:'+_0x506e3a[_0x6bf537('0x35b')][_0x6bf537('0x988')]+'}':_0x6bf537('0x1a1a'),'context':_0x506e3a[_0x6bf537('0x35b')][_0x6bf537('0x244c')],'exten':_0x506e3a[_0x6bf537('0x35b')][_0x6bf537('0x24b7')],'priority':_0x7a12e2++,'VoiceExtensionId':_0x506e3a[_0x6bf537('0x35b')]['id']}),_0x594df6['push']({'type':_0x6bf537('0x2300'),'app':_0x6bf537('0x1bae'),'appdata':_0x6bf537('0x1ff4'),'context':_0x506e3a['outboundroute']['context'],'exten':_0x506e3a['outboundroute'][_0x6bf537('0x24b7')],'priority':_0x7a12e2++,'VoiceExtensionId':_0x506e3a[_0x6bf537('0x35b')]['id']}),_0x594df6[_0x6bf537('0x206c')]({'type':'outbound','app':'Set','appdata':_0x6bf537('0x1254'),'context':_0x506e3a[_0x6bf537('0x35b')]['context'],'exten':_0x506e3a[_0x6bf537('0x35b')][_0x6bf537('0x24b7')],'priority':_0x7a12e2++,'VoiceExtensionId':_0x506e3a[_0x6bf537('0x35b')]['id']}),_0x594df6[_0x6bf537('0x206c')]({'type':'outbound','app':'Set','appdata':_0x6bf537('0x24b4'),'context':_0x506e3a['outboundroute'][_0x6bf537('0x244c')],'exten':_0x506e3a[_0x6bf537('0x35b')][_0x6bf537('0x24b7')],'priority':_0x7a12e2++,'VoiceExtensionId':_0x506e3a[_0x6bf537('0x35b')]['id']}),_0x594df6['push']({'type':_0x6bf537('0x2300'),'app':_0x6bf537('0x1bae'),'appdata':_0x6bf537('0x1e42')+_0x506e3a[_0x6bf537('0x35b')]['id'],'context':_0x506e3a['outboundroute'][_0x6bf537('0x244c')],'exten':_0x506e3a[_0x6bf537('0x35b')][_0x6bf537('0x24b7')],'priority':_0x7a12e2++,'VoiceExtensionId':_0x506e3a[_0x6bf537('0x35b')]['id']});typeof _0x506e3a[_0x6bf537('0x35b')][_0x6bf537('0xad1')]===_0x6bf537('0xddc')&&_0x506e3a['outboundroute'][_0x6bf537('0xad1')]!=='none'&&(_0x594df6['push']({'type':_0x6bf537('0x2300'),'app':_0x6bf537('0x1bae'),'appdata':_0x6bf537('0x1de6'),'context':_0x506e3a[_0x6bf537('0x35b')][_0x6bf537('0x244c')],'exten':_0x506e3a[_0x6bf537('0x35b')][_0x6bf537('0x24b7')],'priority':_0x7a12e2++,'VoiceExtensionId':_0x506e3a[_0x6bf537('0x35b')]['id']}),_0x594df6[_0x6bf537('0x206c')]({'type':_0x6bf537('0x2300'),'app':_0x6bf537('0x1bae'),'appdata':_0x6bf537('0x22f6')+_0x506e3a['outboundroute'][_0x6bf537('0xad1')]||0x0,'context':_0x506e3a[_0x6bf537('0x35b')][_0x6bf537('0x244c')],'exten':_0x506e3a['outboundroute']['exten'],'priority':_0x7a12e2++,'VoiceExtensionId':_0x506e3a[_0x6bf537('0x35b')]['id']}));for(var _0x3f9564=0x0,_0xb98bc6=0x0;_0x3f9564<_0x506e3a[_0x6bf537('0x1d60')][_0x6bf537('0x1b33')][_0x6bf537('0x577')];_0x3f9564++,_0xb98bc6=0x0){var _0x1bd266=_0x506e3a['outboundrouteApps'][_0x6bf537('0x1b33')][_0x3f9564],_0x31d63b=[],_0x2ce1ae=[];_0x1bd266[_0x6bf537('0x2530')]=_0x1bd266['interval']!==_0x6bf537('0x1cc4')?[_0x1bd266[_0x6bf537('0xa07')]]:_0x1bd266[_0x6bf537('0x1ac8')]?_0x86640f()[_0x6bf537('0x26c3')](_0x86640f()['filter'](_0x506e3a['intervals'][_0x6bf537('0x1b33')],{'IntervalId':_0x1bd266[_0x6bf537('0x1ac8')]}),_0x6bf537('0xa07')):[],_0x1bd266[_0x6bf537('0x244c')]=_0x506e3a['outboundroute'][_0x6bf537('0x244c')],_0x1bd266[_0x6bf537('0x24b7')]=_0x506e3a[_0x6bf537('0x35b')][_0x6bf537('0x24b7')];_0x1bd266[_0x6bf537('0x7fa')]&&(_0x1bd266[_0x6bf537('0x7fa')]=_0x1bd266['type']['toLowerCase']());typeof _0x1bd266[_0x6bf537('0x907')]!==_0x6bf537('0xddc')&&(_0x1bd266[_0x6bf537('0x907')]&&_0x1bd266[_0x6bf537('0x907')]!=='--'&&_0x31d63b[_0x6bf537('0x206c')]({'type':_0x1bd266[_0x6bf537('0x7fa')][_0x6bf537('0xac2')](),'app':_0x6bf537('0x1bae'),'appdata':'CDR(tag)='+_0x1bd266[_0x6bf537('0x907')],'context':_0x506e3a[_0x6bf537('0x35b')][_0x6bf537('0x244c')],'exten':_0x506e3a[_0x6bf537('0x35b')]['exten'],'priority':_0x1bd266[_0x6bf537('0x2530')]['length']+_0x7a12e2+_0xb98bc6++,'VoiceExtensionId':_0x506e3a[_0x6bf537('0x35b')]['id']}));_0x1bd266[_0x6bf537('0x1f5a')]?_0x31d63b[_0x6bf537('0x206c')]({'type':_0x1bd266[_0x6bf537('0x7fa')][_0x6bf537('0xac2')](),'app':'ExecIf','appdata':_0x6bf537('0x1a08')+_0x1bd266[_0x6bf537('0x1f5a')]+')','context':_0x506e3a[_0x6bf537('0x35b')]['context'],'exten':_0x506e3a[_0x6bf537('0x35b')][_0x6bf537('0x24b7')],'priority':_0x1bd266[_0x6bf537('0x2530')][_0x6bf537('0x577')]+_0x7a12e2+_0xb98bc6++,'VoiceExtensionId':_0x506e3a[_0x6bf537('0x35b')]['id']}):_0x31d63b[_0x6bf537('0x206c')]({'type':_0x1bd266[_0x6bf537('0x7fa')]['toLowerCase'](),'app':_0x6bf537('0x23e8'),'appdata':_0x6bf537('0xcca'),'context':_0x506e3a[_0x6bf537('0x35b')][_0x6bf537('0x244c')],'exten':_0x506e3a[_0x6bf537('0x35b')][_0x6bf537('0x24b7')],'priority':_0x1bd266['intervals'][_0x6bf537('0x577')]+_0x7a12e2+_0xb98bc6++,'VoiceExtensionId':_0x506e3a['outboundroute']['id']});for(var _0x3955d7=0x0;_0x3955d7<_0x1bd266[_0x6bf537('0x2530')]['length'];_0x3955d7++){var _0x4551a8=_0x7a12e2+_0x1bd266[_0x6bf537('0x2530')]['length'],_0x21ad61=_0x3955d7===_0x1bd266['intervals'][_0x6bf537('0x577')]-0x1?_0x7a12e2+_0x31d63b[_0x6bf537('0x577')]+_0x2ce1ae[_0x6bf537('0x577')]+0x2:_0x7a12e2+_0x3955d7+0x1;_0x31d63b['splice'](_0x3955d7,0x0,{'type':_0x6bf537('0x2300'),'app':_0x6bf537('0x25a'),'appdata':_0x1bd266[_0x6bf537('0x2530')][_0x3955d7]+'?'+_0x506e3a['outboundroute'][_0x6bf537('0x244c')]+_0x6bf537('0x1336')+_0x4551a8+':'+_0x506e3a['outboundroute'][_0x6bf537('0x244c')]+',${EXTEN},'+_0x21ad61,'exten':_0x506e3a[_0x6bf537('0x35b')]['exten'],'context':_0x506e3a['outboundroute'][_0x6bf537('0x244c')],'priority':_0x7a12e2+_0x3955d7,'VoiceExtensionId':_0x506e3a['outboundroute']['id']});}if(_0x34c5cb&&_0x1bd266[_0x6bf537('0x522')]===_0x6bf537('0x4ea')){var _0x381133=_0x86640f()['find'](_0x506e3a[_0x6bf537('0x69a')],{'appType':'outboundDial'});if(_0x381133&&_0x381133[_0x6bf537('0x181e')]){var _0x27c2dd={},_0x2e0586=_0x1bd266[_0x6bf537('0x23c2')][_0x6bf537('0x1af5')](','),_0xd2d96b=[];for(var _0x1e774a=0x0,_0x3835ee=_0x381133[_0x6bf537('0x181e')][_0x6bf537('0x577')];_0x1e774a<_0x3835ee;_0x1e774a++){if(typeof _0x381133['fields'][_0x1e774a][_0x6bf537('0x249f')]!==_0x6bf537('0xddc'))switch(_0x381133[_0x6bf537('0x181e')][_0x1e774a][_0x6bf537('0x19fe')]){case _0x6bf537('0x1280'):_0x27c2dd['trunk']=_0x2e0586[_0x381133[_0x6bf537('0x181e')][_0x1e774a][_0x6bf537('0x249f')]][_0x6bf537('0x1af5')]('/')[0x1],_0x27c2dd[_0x6bf537('0x159e')]=_0x2e0586[_0x381133['fields'][_0x1e774a][_0x6bf537('0x249f')]][_0x6bf537('0x1af5')]('/')[0x2],_0x27c2dd['prefix']=_0x27c2dd['phone']?_0x27c2dd['phone'][_0x6bf537('0x1af5')]('$')[0x0]:undefined,_0x27c2dd[_0x6bf537('0x159e')]=_0x506e3a[_0x6bf537('0x35b')][_0x6bf537('0x988')]?(_0x27c2dd[_0x6bf537('0x1995')]||'')+_0x6bf537('0x349')+_0x506e3a[_0x6bf537('0x35b')][_0x6bf537('0x988')]+'}':(_0x27c2dd[_0x6bf537('0x1995')]||'')+_0x6bf537('0x2560'),_0xd2d96b[_0x381133[_0x6bf537('0x181e')][_0x1e774a][_0x6bf537('0x249f')]]=[_0x6bf537('0x1d2'),_0x27c2dd[_0x6bf537('0x1280')],_0x27c2dd[_0x6bf537('0x159e')]][_0x6bf537('0x136')]('/');break;case'options':_0x27c2dd['options']=_0x2e0586[_0x381133[_0x6bf537('0x181e')][_0x1e774a][_0x6bf537('0x249f')]];_0x506e3a[_0x6bf537('0x35b')]['recordingFormat']!=='none'?_0x27c2dd[_0x6bf537('0x26a0')][_0x6bf537('0x2004')](_0x6bf537('0x478'))<0x0&&(_0x27c2dd[_0x6bf537('0x26a0')]+=_0x6bf537('0x478')):_0x27c2dd[_0x6bf537('0x26a0')]=_0x27c2dd['options'][_0x6bf537('0x16e4')](_0x6bf537('0x478'),'');_0xd2d96b[_0x381133['fields'][_0x1e774a]['param']]=_0x27c2dd[_0x6bf537('0x26a0')];break;default:_0xd2d96b[_0x381133[_0x6bf537('0x181e')][_0x1e774a]['param']]=_0x2e0586[_0x381133[_0x6bf537('0x181e')][_0x1e774a][_0x6bf537('0x249f')]];}}_0x1bd266[_0x6bf537('0x23c2')]=_0xd2d96b[_0x6bf537('0x136')](',');}}_0x1bd266[_0x6bf537('0xbe5')]=_0x31d63b[_0x6bf537('0x577')]?_0x86640f()[_0x6bf537('0x25d5')](_0x31d63b)[_0x6bf537('0xbe5')]+0x1:_0x7a12e2,_0x7a12e2=(_0x2ce1ae['length']?_0x86640f()['last'](_0x2ce1ae)['priority']:_0x1bd266[_0x6bf537('0xbe5')])+0x1,_0x594df6=_0x86640f()[_0x6bf537('0x1877')](_0x594df6,_0x31d63b,[_0x1bd266],_0x2ce1ae);}_0x594df6['push']({'type':_0x6bf537('0x2300'),'app':_0x6bf537('0x224'),'exten':_0x506e3a['outboundroute'][_0x6bf537('0x24b7')],'context':_0x506e3a['outboundroute'][_0x6bf537('0x244c')],'priority':_0x7a12e2,'VoiceExtensionId':_0x506e3a[_0x6bf537('0x35b')]['id']}),_0x3dbaf1['voiceExtension'][_0x6bf537('0x69f')]({'id':_0x506e3a[_0x6bf537('0x35b')]['id']},_0x86640f()[_0x6bf537('0x203e')](_0x594df6,'priority'))['$promise'][_0x6bf537('0x21ad')](function(_0x264ee7){var _0x40d439=_0x6bf537;_0x506e3a['outboundrouteApps'][_0x40d439('0x1b33')]=_0x264ee7['rows'];})[_0x6bf537('0x1c1d')](function(_0x4d034f){var _0x4a3812=_0x6bf537;console[_0x4a3812('0x2092')](_0x4d034f);});}function _0x22796d(_0x31c129){_0x506e3a['outboundrouteApps']=_0x31c129||{'count':0x0,'rows':[]};}function _0x2ea771(){var _0x57431c=_0x1c9c26;return _0x3dbaf1[_0x57431c('0xa07')][_0x57431c('0x595')]({'fields':'id,interval,IntervalId'})[_0x57431c('0x1376')][_0x57431c('0x21ad')](function(_0x251c97){var _0x34783f=_0x57431c;_0x506e3a[_0x34783f('0x2530')]=_0x251c97;})[_0x57431c('0x1c1d')](function(_0x548158){console['error'](_0x548158);});}function _0x51351d(){var _0x359ff5=_0x1c9c26;_0x506e3a[_0x359ff5('0x71b')]=_0x3dbaf1[_0x359ff5('0x1b0c')]['get'](_0x506e3a[_0x359ff5('0x77')],_0x22796d)[_0x359ff5('0x1376')];}function _0x18923d(_0x281b07){var _0x3f1601=_0x1c9c26;_0x86640f()[_0x3f1601('0x16a2')](_0x506e3a[_0x3f1601('0x1d60')][_0x3f1601('0x1b33')],{'id':_0x281b07['id']}),_0x273c67(),_0x325ccd[_0x3f1601('0xdb1')]({'title':_0x3f1601('0x1922'),'msg':_0x281b07['app']?_0x281b07[_0x3f1601('0x1f94')]+_0x3f1601('0xb4a'):''});}function _0xb89089(_0x2bba9a){var _0x5ba954=_0x1c9c26,_0x3b5892=_0x7c90f8[_0x5ba954('0xa33')]()[_0x5ba954('0x4b4')](_0x5ba954('0x152a'))['htmlContent'](_0x5ba954('0x622')+_0x506e3a['selectedOutboundRouteApps'][_0x5ba954('0x577')]+_0x5ba954('0xd74')+_0x5ba954('0x25e0'))[_0x5ba954('0x7a7')](_0x5ba954('0x89d'))['targetEvent'](_0x2bba9a)['ok']('OK')['cancel'](_0x5ba954('0x284b'));_0x7c90f8['show'](_0x3b5892)['then'](function(){var _0x2bbba5=_0x5ba954;_0x506e3a[_0x2bbba5('0xc99')][_0x2bbba5('0x1a52')](function(_0x19cfac){var _0x6347f7=_0x2bbba5;_0x86640f()[_0x6347f7('0x16a2')](_0x506e3a[_0x6347f7('0x1d60')][_0x6347f7('0x1b33')],{'id':_0x19cfac['id']});}),_0x506e3a['selectedOutboundRouteApps']=[],_0x273c67();});}_0x39755f[_0x1c9c26('0x1723')]('$destroy',function(){var _0x2cd7ed=_0x1c9c26;_0x2d71bb[_0x2cd7ed('0x16cc')]('voiceExtension:update');});}const _0x7bd514=_0x411eba;_0x41c646[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),'outboundrouteApp',_0x3877e3('0x35b'),_0x3877e3('0xccd'),'Auth',_0x3877e3('0x5ed')];function _0x41c646(_0x45f095,_0x1494b5,_0xfb6bb9,_0x292a5d,_0x541e7b,_0x2d08e7,_0x51b1a2,_0x55d7e0){var _0x572261=_0x3877e3,_0x7b00ee=this;_0x7b00ee[_0x572261('0x123f')]=_0x51b1a2[_0x572261('0x15ed')](),_0x7b00ee[_0x572261('0x1a69')]=[],_0x7b00ee['title']=_0x572261('0x1b79')+(_0x292a5d['appType']||_0x292a5d[_0x572261('0x1f94')])[_0x572261('0x2e8')](),_0x7b00ee['custom']=angular[_0x572261('0xd75')](_0x292a5d),_0x7b00ee[_0x572261('0x5ed')]=_0x55d7e0,_0x7b00ee[_0x572261('0x126a')]={};if(_0x7b00ee['custom'][_0x572261('0x23c2')])switch(_0x7b00ee['custom'][_0x572261('0x522')]?_0x7b00ee[_0x572261('0xf50')][_0x572261('0x522')]['toLowerCase']():_0x7b00ee[_0x572261('0xf50')]['app'][_0x572261('0xac2')]()){case _0x572261('0xf50'):break;case _0x572261('0xc72'):{var _0x6aea88=_0x7b00ee[_0x572261('0xf50')][_0x572261('0x23c2')]['split'](',');_0x7b00ee[_0x572261('0xf50')]['key']=_0x6aea88[0x0],_0x7b00ee[_0x572261('0xf50')][_0x572261('0x10f')]=_0x6aea88[0x1],_0x7b00ee['custom'][_0x572261('0x1cce')]=_0x6aea88[_0x572261('0xb3d')](0x2,_0x6aea88['length'])[_0x572261('0x136')](',');}break;case _0x572261('0x1c22'):{var _0xd13260=_0x7b00ee['custom'][_0x572261('0x23c2')]['split'](',');_0x7b00ee[_0x572261('0xf50')][_0x572261('0x21c6')]=_0xd13260[0x0],_0x7b00ee[_0x572261('0xf50')]['secretaccesskey']=_0xd13260[0x1],_0x7b00ee[_0x572261('0xf50')][_0x572261('0x20a3')]=_0xd13260[0x2],_0x7b00ee['custom'][_0x572261('0x15fe')]=_0xd13260[0x3],_0x7b00ee['custom'][_0x572261('0x1cce')]=_0xd13260[_0x572261('0xb3d')](0x4,_0xd13260['length'])['join'](',');}break;case _0x572261('0x1b98'):{var _0x1be03=_0x7b00ee[_0x572261('0xf50')]['appdata']['split'](',');_0x7b00ee[_0x572261('0xf50')]['times']=isNaN(_0x1be03[0x0])?_0x1be03[0x0]:parseInt(_0x1be03[0x0],0xa),_0x7b00ee[_0x572261('0xf50')][_0x572261('0xc1e')]=_0x1be03['slice'](0x1,_0x1be03[_0x572261('0x577')])['join'](',');}break;case _0x572261('0x1224'):_0x7b00ee[_0x572261('0xf50')]['text']=_0x7b00ee[_0x572261('0xf50')][_0x572261('0x23c2')];break;case _0x572261('0x1125'):_0x7b00ee['custom']['name']=_0x7b00ee[_0x572261('0xf50')][_0x572261('0x23c2')][_0x572261('0x1af5')]('=')[0x0],_0x7b00ee[_0x572261('0xf50')][_0x572261('0x2228')]=_0x7b00ee[_0x572261('0xf50')][_0x572261('0x23c2')][_0x572261('0x1af5')]('=')[0x1];break;case _0x572261('0x2356'):_0x7b00ee['custom'][_0x572261('0xbf8')]=_0x7b00ee[_0x572261('0xf50')][_0x572261('0x23c2')];break;default:{var _0x558649=_0x7b00ee['custom'][_0x572261('0x23c2')][_0x572261('0x1af5')](',');_0x7b00ee[_0x572261('0xf50')][_0x572261('0x1f94')]=_0x86640f()[_0x572261('0x23aa')](_0x558649[0x0])?_0x558649[0x0]:isNaN(_0x558649[0x0])?_0x558649[0x0]:parseInt(_0x558649[0x0],0xa),_0x7b00ee[_0x572261('0xf50')][_0x572261('0x23c2')]=_0x86640f()[_0x572261('0x23aa')](_0x558649[0x1])?_0x558649[0x1]:isNaN(_0x558649[0x1])?_0x558649[0x1]:parseInt(_0x558649[0x1],0xa);}break;}else{}_0x7b00ee[_0x572261('0xf50')][_0x572261('0x7fa')]&&_0x7b00ee[_0x572261('0xf50')][_0x572261('0x7fa')][_0x572261('0xac2')]()==='outbound'&&_0x7b00ee[_0x572261('0xf50')]['appType'][_0x572261('0xac2')]()===_0x572261('0x2363')&&(_0x7b00ee[_0x572261('0xf50')][_0x572261('0x1995')]=_0x7b00ee[_0x572261('0xf50')][_0x572261('0x159e')]?_0x7b00ee[_0x572261('0xf50')]['phone'][_0x572261('0x1af5')]('$')[0x0]:undefined,_0x7b00ee[_0x572261('0xf50')][_0x572261('0x26f7')]=_0x7b00ee[_0x572261('0xf50')][_0x572261('0x1f5a')]?_0x572261('0x587')+_0x7b00ee['custom'][_0x572261('0x1f5a')]:undefined);_0x7b00ee['saveOutboundRouteApp']=_0x18dbcb,_0x7b00ee[_0x572261('0x167')]=_0x5b3daa;function _0x18dbcb(){var _0x39c9eb=_0x572261;_0x7b00ee[_0x39c9eb('0x1a69')]=[];var _0x1a8113=[];_0x7b00ee[_0x39c9eb('0xf50')][_0x39c9eb('0x7fa')]&&_0x7b00ee[_0x39c9eb('0xf50')][_0x39c9eb('0x7fa')][_0x39c9eb('0xac2')]()===_0x39c9eb('0x2300')&&_0x7b00ee[_0x39c9eb('0xf50')]['appType']===_0x39c9eb('0x4ea')&&(_0x7b00ee[_0x39c9eb('0xf50')][_0x39c9eb('0x159e')]=_0x541e7b[_0x39c9eb('0x988')]?(_0x7b00ee[_0x39c9eb('0xf50')][_0x39c9eb('0x1995')]||'')+'${EXTEN:'+_0x541e7b[_0x39c9eb('0x988')]+'}':(_0x7b00ee[_0x39c9eb('0xf50')][_0x39c9eb('0x1995')]||'')+_0x39c9eb('0x2560'),_0x541e7b[_0x39c9eb('0xad1')]!=='none'?_0x7b00ee[_0x39c9eb('0xf50')]['options'][_0x39c9eb('0x2004')](_0x39c9eb('0x478'))<0x0&&(_0x7b00ee[_0x39c9eb('0xf50')][_0x39c9eb('0x26a0')]+=_0x39c9eb('0x478')):_0x7b00ee['custom'][_0x39c9eb('0x26a0')]=_0x7b00ee[_0x39c9eb('0xf50')][_0x39c9eb('0x26a0')][_0x39c9eb('0x16e4')](_0x39c9eb('0x478'),''));if(_0x7b00ee[_0x39c9eb('0xf50')]['appType']&&_0x7b00ee[_0x39c9eb('0xf50')][_0x39c9eb('0x522')]===_0x39c9eb('0xf50')){}else switch((_0x7b00ee[_0x39c9eb('0xf50')][_0x39c9eb('0x1f94')]||_0x7b00ee[_0x39c9eb('0xf50')]['appType'])['toLowerCase']()){case _0x39c9eb('0x1125'):_0x7b00ee[_0x39c9eb('0xf50')][_0x39c9eb('0x23c2')]=_0x7b00ee[_0x39c9eb('0xf50')][_0x39c9eb('0x19fe')]+'='+_0x7b00ee['custom'][_0x39c9eb('0x2228')];break;case _0x39c9eb('0xf50'):break;default:_0x1a8113[0x0]=_0x7b00ee[_0x39c9eb('0xf50')][_0x39c9eb('0x1f94')],_0x1a8113[0x1]=_0x7b00ee['custom'][_0x39c9eb('0x23c2')],_0x7b00ee['custom']['appdata']=_0x1a8113['join'](',');}_0x5b3daa(_0x7b00ee[_0x39c9eb('0xf50')]);}function _0x5b3daa(_0x10cfd0){_0x45f095['hide'](_0x10cfd0);}}const _0x2d8e7b=_0x41c646;_0x2e34b3[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x1850'),_0x3877e3('0x21be'),'IndexFactory',_0x3877e3('0xa07'),_0x3877e3('0x2530'),_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'crudPermissions'];function _0x2e34b3(_0x7482b5,_0x50f68a,_0x434e79,_0x5aa035,_0x389af4,_0x3c5f7e,_0x120371,_0xb6ddda,_0x324a18,_0x4613cc){var _0x270949=_0x3877e3,_0x45da0a=this;_0x45da0a[_0x270949('0x123f')]=_0x324a18['getCurrentUser'](),_0x45da0a['errors']=[],_0x45da0a['title']=_0x270949('0x130e'),_0x45da0a['interval']=angular['copy'](_0x389af4),_0x45da0a['intervals']=_0x3c5f7e,_0x45da0a['newInterval']=![],_0x45da0a[_0x270949('0x4ca')]=[_0x270949('0x869'),'custom','list'],_0x45da0a[_0x270949('0x5ed')]=_0x4613cc,_0x45da0a[_0x270949('0x45e')]=_0x5aa035[_0x270949('0x1d74')](),_0x45da0a[_0x270949('0x6fd')]=_0x5aa035[_0x270949('0x439')](),_0x45da0a[_0x270949('0x1f1e')]=_0x5aa035['getMonthName'](),_0x45da0a[_0x270949('0x443')]=_0x5aa035[_0x270949('0x200e')]();if(!_0x45da0a[_0x270949('0xa07')])_0x45da0a['interval']={'interval':_0x270949('0x1cc4')},_0x45da0a[_0x270949('0x7fa')]=_0x270949('0x869'),_0x45da0a[_0x270949('0x4b4')]=_0x270949('0xe33'),_0x45da0a['newInterval']=!![];else{if(_0x45da0a[_0x270949('0xa07')][_0x270949('0xa07')]!==_0x270949('0x1cc4')){_0x45da0a[_0x270949('0x7fa')]=_0x270949('0xf50');var _0x5392b0=_0x45da0a[_0x270949('0xa07')][_0x270949('0xa07')][_0x270949('0x1af5')](','),_0x27d287=_0x5392b0[0x0],_0x1efab5=_0x5392b0[0x1],_0x1c6e71=_0x5392b0[0x2],_0x216737=_0x5392b0[0x3];if(_0x27d287!=='*'){var _0x1c8f1a=_0x27d287[_0x270949('0x1af5')]('-')[0x0],_0x5d1118=_0x27d287[_0x270949('0x1af5')]('-')[0x1],_0x4b33c3;_0x4b33c3=new Date(),_0x4b33c3['setHours'](Number(_0x1c8f1a[_0x270949('0x1af5')](':')[0x0])),_0x4b33c3[_0x270949('0x119c')](Number(_0x1c8f1a['split'](':')[0x1])),_0x45da0a[_0x270949('0x3e8')]=_0x4b33c3,_0x4b33c3=new Date(),_0x4b33c3[_0x270949('0xb0f')](Number(_0x5d1118[_0x270949('0x1af5')](':')[0x0])),_0x4b33c3[_0x270949('0x119c')](Number(_0x5d1118[_0x270949('0x1af5')](':')[0x1])),_0x45da0a['timeRangeTo']=_0x4b33c3;}_0x1efab5!=='*'&&(_0x45da0a[_0x270949('0x21a5')]=_0x1efab5[_0x270949('0x1af5')]('-')[0x0],_0x45da0a[_0x270949('0x1556')]=_0x1efab5['split']('-')[0x1]),_0x1c6e71!=='*'&&(_0x45da0a[_0x270949('0x14ec')]=_0x1c6e71['split']('-')[0x0],_0x45da0a[_0x270949('0x3bf')]=_0x1c6e71['split']('-')[0x1]),_0x216737!=='*'&&(_0x45da0a[_0x270949('0xded')]=_0x216737[_0x270949('0x1af5')]('-')[0x0],_0x45da0a[_0x270949('0x2633')]=_0x216737[_0x270949('0x1af5')]('-')[0x1]);}else _0x45da0a[_0x270949('0x7fa')]=_0x270949('0x869');}_0x7482b5[_0x270949('0x171b')]['id']&&!_0x45da0a[_0x270949('0xa07')][_0x270949('0xd7f')]&&(_0x45da0a[_0x270949('0xa07')][_0x270949('0x1ac8')]=_0x7482b5['params']['id']);_0x45da0a[_0x270949('0xa07')][_0x270949('0x1ac8')]&&_0x45da0a[_0x270949('0xa07')][_0x270949('0xd7f')]&&(_0x45da0a['type']='list');_0x45da0a['addNewInterval']=_0x23c479,_0x45da0a['saveInterval']=_0x2bbeaa,_0x45da0a['closeDialog']=_0x1ea3c6;_0x45da0a[_0x270949('0xa07')][_0x270949('0xd7f')]&&(_0x324a18['hasRole']('admin')?_0xb6ddda[_0x270949('0xa07')][_0x270949('0x595')]({'fields':_0x270949('0xaaf'),'IntervalId':_0x270949('0x27a'),'nolimit':!![]})[_0x270949('0x1376')][_0x270949('0x21ad')](function(_0x1f757e){var _0x2931eb=_0x270949;_0x45da0a['intervals']=_0x1f757e[_0x2931eb('0x1b33')]||[];})[_0x270949('0x1c1d')](function(_0x4bc31){var _0x4a74d2=_0x270949;_0x120371[_0x4a74d2('0x2092')]({'title':_0x4bc31[_0x4a74d2('0x209')]?_0x4a74d2('0x22d')+_0x4bc31[_0x4a74d2('0x209')]+_0x4a74d2('0xa99')+_0x4bc31[_0x4a74d2('0x1808')]:_0x4a74d2('0xdc5'),'msg':_0x4bc31[_0x4a74d2('0x11c2')]?JSON[_0x4a74d2('0x25e')](_0x4bc31[_0x4a74d2('0x11c2')]):_0x4bc31[_0x4a74d2('0x174f')]()});}):_0xb6ddda[_0x270949('0xa07')][_0x270949('0x595')]({'fields':_0x270949('0xaaf'),'IntervalId':_0x270949('0x27a'),'nolimit':!![]})[_0x270949('0x1376')][_0x270949('0x21ad')](function(_0x5eb5c4){var _0x267e60=_0x270949;_0x45da0a[_0x267e60('0x2530')]=_0x5eb5c4[_0x267e60('0x1b33')]||[];})[_0x270949('0x21ad')](function(){var _0x4b83e1=_0x270949;return _0xb6ddda[_0x4b83e1('0xab4')][_0x4b83e1('0x595')]({'userProfileId':_0x45da0a[_0x4b83e1('0x123f')][_0x4b83e1('0x1618')],'sectionId':0x3ec})[_0x4b83e1('0x1376')];})[_0x270949('0x21ad')](function(_0x33e14e){var _0x4b542c=_0x270949,_0x4e270c=_0x33e14e&&_0x33e14e[_0x4b542c('0x1b33')]?_0x33e14e[_0x4b542c('0x1b33')][0x0]:null;if(!_0x4e270c)_0x45da0a[_0x4b542c('0x2530')]=[];else{if(!_0x4e270c[_0x4b542c('0x80c')])return _0xb6ddda[_0x4b542c('0x185e')][_0x4b542c('0x595')]({'sectionId':_0x4e270c['id']})[_0x4b542c('0x1376')][_0x4b542c('0x21ad')](function(_0x1b3c3a){var _0xb95c50=_0x4b542c,_0x2d94ec=_0x1b3c3a&&_0x1b3c3a['rows']?_0x1b3c3a[_0xb95c50('0x1b33')]:[],_0x1d844b=[],_0x1965c5=null;_0x45da0a[_0xb95c50('0xa07')]&&(_0x1965c5=_0x86640f()[_0xb95c50('0x1d2e')](_0x45da0a[_0xb95c50('0x2530')],{'name':_0x45da0a[_0xb95c50('0xa07')][_0xb95c50('0x1ac8')]})),_0x1965c5&&!_0x86640f()[_0xb95c50('0x2664')](_0x2d94ec,[_0xb95c50('0x675'),_0x1965c5['id']])&&_0x45da0a[_0xb95c50('0x2530')][_0xb95c50('0x1a52')](function(_0x172e46){var _0x14a932=_0xb95c50;_0x172e46['id']===_0x1965c5['id']&&(_0x172e46[_0x14a932('0xba')]=![],_0x1d844b['push'](_0x172e46));}),_0x45da0a[_0xb95c50('0x2530')]=_0x1d844b;});}})[_0x270949('0x1c1d')](function(_0xb63049){var _0x259114=_0x270949;_0x120371[_0x259114('0x2092')]({'title':_0xb63049['status']?_0x259114('0x22d')+_0xb63049['status']+_0x259114('0xa99')+_0xb63049['statusText']:_0x259114('0xdc5'),'msg':_0xb63049[_0x259114('0x11c2')]?JSON['stringify'](_0xb63049['data']):_0xb63049[_0x259114('0x174f')]()});}));function _0x36401e(){var _0x35c3a0=_0x270949;switch(_0x45da0a['type']){case _0x35c3a0('0x869'):case _0x35c3a0('0x17fe'):return _0x35c3a0('0x1cc4');case _0x35c3a0('0xf50'):{var _0x4fe7ff=[];if(_0x45da0a[_0x35c3a0('0x3e8')]!=='*'&&_0x45da0a[_0x35c3a0('0x3e8')]&&_0x45da0a['timeRangeTo']){var _0x349b47=(_0x45da0a[_0x35c3a0('0x3e8')][_0x35c3a0('0x10c1')]()<0xa?'0':'')+_0x45da0a[_0x35c3a0('0x3e8')][_0x35c3a0('0x10c1')]()+':'+((_0x45da0a[_0x35c3a0('0x3e8')][_0x35c3a0('0x27ee')]()<0xa?'0':'')+_0x45da0a[_0x35c3a0('0x3e8')][_0x35c3a0('0x27ee')]()),_0x284a8b=(_0x45da0a['timeRangeTo'][_0x35c3a0('0x10c1')]()<0xa?'0':'')+_0x45da0a[_0x35c3a0('0x1fbc')][_0x35c3a0('0x10c1')]()+':'+((_0x45da0a[_0x35c3a0('0x1fbc')][_0x35c3a0('0x27ee')]()<0xa?'0':'')+_0x45da0a[_0x35c3a0('0x1fbc')][_0x35c3a0('0x27ee')]());_0x4fe7ff[_0x35c3a0('0x206c')](_0x349b47+'-'+_0x284a8b);}else _0x4fe7ff[_0x35c3a0('0x206c')]('*');return _0x45da0a[_0x35c3a0('0x21a5')]?_0x45da0a[_0x35c3a0('0x1556')]?_0x4fe7ff[_0x35c3a0('0x206c')](_0x45da0a[_0x35c3a0('0x21a5')]+'-'+_0x45da0a[_0x35c3a0('0x1556')]):_0x4fe7ff[_0x35c3a0('0x206c')](_0x45da0a[_0x35c3a0('0x21a5')]):_0x4fe7ff['push']('*'),_0x45da0a[_0x35c3a0('0x14ec')]?_0x45da0a['monthDayTo']?_0x4fe7ff[_0x35c3a0('0x206c')](_0x45da0a[_0x35c3a0('0x14ec')]+'-'+_0x45da0a['monthDayTo']):_0x4fe7ff[_0x35c3a0('0x206c')](_0x45da0a[_0x35c3a0('0x14ec')]):_0x4fe7ff[_0x35c3a0('0x206c')]('*'),_0x45da0a[_0x35c3a0('0xded')]?_0x45da0a[_0x35c3a0('0x2633')]?_0x4fe7ff[_0x35c3a0('0x206c')](_0x45da0a[_0x35c3a0('0xded')]+'-'+_0x45da0a[_0x35c3a0('0x2633')]):_0x4fe7ff['push'](_0x45da0a[_0x35c3a0('0xded')]):_0x4fe7ff[_0x35c3a0('0x206c')]('*'),_0x4fe7ff[_0x35c3a0('0x136')]();}}}function _0x23c479(){var _0x2553f8=_0x270949;_0x45da0a['errors']=[],_0x45da0a['interval'][_0x2553f8('0xa07')]=_0x36401e(),_0xb6ddda[_0x2553f8('0xa07')][_0x2553f8('0x186f')](_0x45da0a[_0x2553f8('0xa07')])[_0x2553f8('0x1376')][_0x2553f8('0x21ad')](function(_0x32e265){var _0x5b0354=_0x2553f8;_0x45da0a['intervals'][_0x5b0354('0x206c')](_0x32e265),_0x120371['success']({'title':_0x5b0354('0x1ecc'),'msg':_0x45da0a[_0x5b0354('0xa07')]['name']?_0x45da0a[_0x5b0354('0xa07')][_0x5b0354('0x19fe')]+_0x5b0354('0x1694'):''}),_0x1ea3c6();})[_0x2553f8('0x1c1d')](function(_0x86c8b9){var _0x4e2f0b=_0x2553f8;console['error'](_0x86c8b9),_0x45da0a[_0x4e2f0b('0x1a69')]=_0x86c8b9['data'][_0x4e2f0b('0x1a69')]||[{'message':_0x86c8b9[_0x4e2f0b('0x174f')](),'type':_0x4e2f0b('0x27de')}];});}function _0x2bbeaa(){var _0x104706=_0x270949;_0x45da0a['errors']=[],_0x45da0a[_0x104706('0xa07')][_0x104706('0xa07')]=_0x36401e(),_0x45da0a[_0x104706('0xa07')][_0x104706('0xd7f')]?(_0x45da0a['type']!==_0x104706('0x17fe')&&(_0x45da0a[_0x104706('0xa07')][_0x104706('0x1ac8')]=null),_0x1ea3c6(_0x45da0a[_0x104706('0xa07')])):_0xb6ddda['interval'][_0x104706('0x5ef')]({'id':_0x45da0a['interval']['id']},_0x45da0a['interval'])[_0x104706('0x1376')]['then'](function(_0xef0ef4){var _0x538860=_0x104706,_0x3d9ac0=_0x86640f()[_0x538860('0x1d2e')](_0x45da0a[_0x538860('0x2530')],{'id':_0xef0ef4['id']});_0x3d9ac0&&_0x86640f()['merge'](_0x3d9ac0,_0xef0ef4),_0x120371[_0x538860('0xdb1')]({'title':_0x538860('0x234'),'msg':_0x538860('0x285a')}),_0x1ea3c6();})['catch'](function(_0x337e63){var _0x4123e1=_0x104706;console[_0x4123e1('0x2092')](_0x337e63),_0x45da0a['errors']=_0x337e63[_0x4123e1('0x11c2')][_0x4123e1('0x1a69')]||[{'message':_0x337e63['toString'](),'type':'api.interval.update'}];});}function _0x1ea3c6(_0x356cdb){var _0x194f11=_0x270949;_0x50f68a[_0x194f11('0x1c24')](_0x356cdb);}}const _0x3d0263=_0x2e34b3;_0x65692[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q','toasty',_0x3877e3('0x240a'),_0x3877e3('0x35b'),'api','Auth',_0x3877e3('0x5ed')];function _0x65692(_0x53fc40,_0x11e28f,_0xced57a,_0x3503aa,_0x288136,_0x24d698,_0x5ef3eb,_0x1ce183){var _0x8e2101=_0x3877e3,_0x360bfe=this;_0x360bfe[_0x8e2101('0x123f')]=_0x5ef3eb[_0x8e2101('0x15ed')](),_0x360bfe['errors']=[],_0x360bfe[_0x8e2101('0x4b4')]=_0x8e2101('0x1b79')+(_0x3503aa[_0x8e2101('0x522')]||_0x3503aa['app'])['toUpperCase'](),_0x360bfe[_0x8e2101('0x2363')]=angular['copy'](_0x3503aa),_0x360bfe[_0x8e2101('0x5ed')]=_0x1ce183,_0x360bfe[_0x8e2101('0x126a')]={};if(_0x360bfe[_0x8e2101('0x2363')][_0x8e2101('0x23c2')])switch(_0x360bfe[_0x8e2101('0x2363')][_0x8e2101('0x522')]?_0x360bfe[_0x8e2101('0x2363')][_0x8e2101('0x522')][_0x8e2101('0xac2')]():_0x360bfe['outbounddial'][_0x8e2101('0x1f94')]['toLowerCase']()){case'custom':break;case _0x8e2101('0xc72'):{var _0x135287=_0x360bfe[_0x8e2101('0x2363')][_0x8e2101('0x23c2')]['split'](',');_0x360bfe[_0x8e2101('0x2363')]['key']=_0x135287[0x0],_0x360bfe[_0x8e2101('0x2363')][_0x8e2101('0x10f')]=_0x135287[0x1],_0x360bfe['outbounddial'][_0x8e2101('0x1cce')]=_0x135287[_0x8e2101('0xb3d')](0x2,_0x135287[_0x8e2101('0x577')])[_0x8e2101('0x136')](',');}break;case _0x8e2101('0x1c22'):{var _0xea87ec=_0x360bfe[_0x8e2101('0x2363')][_0x8e2101('0x23c2')][_0x8e2101('0x1af5')](',');_0x360bfe[_0x8e2101('0x2363')][_0x8e2101('0x21c6')]=_0xea87ec[0x0],_0x360bfe[_0x8e2101('0x2363')][_0x8e2101('0x797')]=_0xea87ec[0x1],_0x360bfe[_0x8e2101('0x2363')][_0x8e2101('0x20a3')]=_0xea87ec[0x2],_0x360bfe['outbounddial'][_0x8e2101('0x15fe')]=_0xea87ec[0x3],_0x360bfe[_0x8e2101('0x2363')][_0x8e2101('0x1cce')]=_0xea87ec[_0x8e2101('0xb3d')](0x4,_0xea87ec[_0x8e2101('0x577')])['join'](',');}break;case'autoreply':{var _0x2cb762=_0x360bfe[_0x8e2101('0x2363')][_0x8e2101('0x23c2')][_0x8e2101('0x1af5')](',');_0x360bfe[_0x8e2101('0x2363')][_0x8e2101('0x13b6')]=isNaN(_0x2cb762[0x0])?_0x2cb762[0x0]:parseInt(_0x2cb762[0x0],0xa),_0x360bfe[_0x8e2101('0x2363')][_0x8e2101('0xc1e')]=_0x2cb762[_0x8e2101('0xb3d')](0x1,_0x2cb762[_0x8e2101('0x577')])[_0x8e2101('0x136')](',');}break;case _0x8e2101('0x1224'):_0x360bfe['outbounddial'][_0x8e2101('0xc1e')]=_0x360bfe[_0x8e2101('0x2363')]['appdata'];break;case'set':_0x360bfe[_0x8e2101('0x2363')]['name']=_0x360bfe[_0x8e2101('0x2363')]['appdata'][_0x8e2101('0x1af5')]('=')[0x0],_0x360bfe[_0x8e2101('0x2363')][_0x8e2101('0x2228')]=_0x360bfe[_0x8e2101('0x2363')][_0x8e2101('0x23c2')][_0x8e2101('0x1af5')]('=')[0x1];break;case'agi':_0x360bfe[_0x8e2101('0x2363')][_0x8e2101('0xbf8')]=_0x360bfe[_0x8e2101('0x2363')]['appdata'];break;default:{var _0x4d94c3=_0x360bfe['outbounddial'][_0x8e2101('0x23c2')]['split'](',');_0x360bfe[_0x8e2101('0x2363')][_0x8e2101('0x1280')]=_0x4d94c3[0x0]['split']('/')[0x1],_0x360bfe[_0x8e2101('0x2363')]['phone']=_0x4d94c3[0x0][_0x8e2101('0x1af5')]('/')[0x2],_0x360bfe['outbounddial'][_0x8e2101('0x2133')]=_0x86640f()[_0x8e2101('0x23aa')](_0x4d94c3[0x1])?_0x4d94c3[0x1]:isNaN(_0x4d94c3[0x1])?_0x4d94c3[0x1]:parseInt(_0x4d94c3[0x1],0xa),_0x360bfe[_0x8e2101('0x2363')][_0x8e2101('0x26a0')]=_0x86640f()[_0x8e2101('0x23aa')](_0x4d94c3[0x2])?_0x4d94c3[0x2]:isNaN(_0x4d94c3[0x2])?_0x4d94c3[0x2]:parseInt(_0x4d94c3[0x2],0xa),_0x360bfe[_0x8e2101('0x2363')][_0x8e2101('0x770')]=_0x86640f()[_0x8e2101('0x23aa')](_0x4d94c3[0x3])?_0x4d94c3[0x3]:isNaN(_0x4d94c3[0x3])?_0x4d94c3[0x3]:parseInt(_0x4d94c3[0x3],0xa);}break;}else{}_0x360bfe[_0x8e2101('0x2363')][_0x8e2101('0x7fa')]&&_0x360bfe[_0x8e2101('0x2363')]['type'][_0x8e2101('0xac2')]()===_0x8e2101('0x2300')&&_0x360bfe[_0x8e2101('0x2363')][_0x8e2101('0x522')][_0x8e2101('0xac2')]()==='outbounddial'&&(_0x360bfe[_0x8e2101('0x2363')][_0x8e2101('0x1995')]=_0x360bfe['outbounddial'][_0x8e2101('0x159e')]?_0x360bfe[_0x8e2101('0x2363')]['phone'][_0x8e2101('0x1af5')]('$')[0x0]:undefined,_0x360bfe['outbounddial'][_0x8e2101('0x26f7')]=_0x360bfe[_0x8e2101('0x2363')][_0x8e2101('0x1f5a')]?_0x8e2101('0x587')+_0x360bfe[_0x8e2101('0x2363')]['callerID']:undefined);_0x360bfe[_0x8e2101('0x165f')]=_0x1723c1,_0x360bfe[_0x8e2101('0x167')]=_0x751eae,_0x5ef3eb[_0x8e2101('0x21de')](_0x8e2101('0x1bd8'))?_0x24d698[_0x8e2101('0x1280')][_0x8e2101('0x595')]({'fields':_0x8e2101('0x1aa8'),'sort':_0x8e2101('0x19fe'),'nolimit':_0x8e2101('0x19bd')})[_0x8e2101('0x1376')]['then'](function(_0x42ac99){var _0x47d378=_0x8e2101;_0x360bfe[_0x47d378('0x1593')]=_0x42ac99['rows']||[];})[_0x8e2101('0x1c1d')](function(_0x331308){var _0x5b7322=_0x8e2101;_0xced57a[_0x5b7322('0x2092')]({'title':_0x331308[_0x5b7322('0x209')]?_0x5b7322('0x22d')+_0x331308[_0x5b7322('0x209')]+_0x5b7322('0xa99')+_0x331308[_0x5b7322('0x1808')]:'SYSTEM:GET_TRUNKS','msg':_0x331308['data']?JSON[_0x5b7322('0x25e')](_0x331308[_0x5b7322('0x11c2')]):_0x331308['toString']()});}):_0x24d698['trunk'][_0x8e2101('0x595')]({'fields':'id,name','sort':_0x8e2101('0x19fe'),'nolimit':_0x8e2101('0x19bd')})[_0x8e2101('0x1376')][_0x8e2101('0x21ad')](function(_0x293f29){var _0x533ab6=_0x8e2101;_0x360bfe[_0x533ab6('0x1593')]=_0x293f29[_0x533ab6('0x1b33')]||[];})[_0x8e2101('0x21ad')](function(){var _0x29c43e=_0x8e2101;return _0x24d698[_0x29c43e('0xab4')][_0x29c43e('0x595')]({'userProfileId':_0x360bfe[_0x29c43e('0x123f')][_0x29c43e('0x1618')],'sectionId':0x3f3})[_0x29c43e('0x1376')];})[_0x8e2101('0x21ad')](function(_0x5de16d){var _0x80f222=_0x8e2101,_0x200a73=_0x5de16d&&_0x5de16d[_0x80f222('0x1b33')]?_0x5de16d[_0x80f222('0x1b33')][0x0]:null;if(!_0x200a73){var _0x4902db=[],_0x5143bc=null;_0x360bfe['outbounddial']&&(_0x5143bc=_0x86640f()[_0x80f222('0x1d2e')](_0x360bfe[_0x80f222('0x1593')],{'name':_0x360bfe[_0x80f222('0x2363')][_0x80f222('0x1280')]}));for(var _0x3a9103=0x0;_0x3a9103<_0x360bfe[_0x80f222('0x1593')][_0x80f222('0x577')];_0x3a9103++){_0x5143bc&&_0x360bfe[_0x80f222('0x1593')][_0x3a9103]['id']===_0x5143bc['id']&&(_0x360bfe[_0x80f222('0x1593')][_0x3a9103]['canSelect']=![],_0x4902db[_0x80f222('0x206c')](_0x360bfe[_0x80f222('0x1593')][_0x3a9103]));}_0x360bfe[_0x80f222('0x1593')]=_0x4902db;}else{if(!_0x200a73[_0x80f222('0x80c')])return _0x24d698[_0x80f222('0x185e')][_0x80f222('0x595')]({'sectionId':_0x200a73['id']})[_0x80f222('0x1376')][_0x80f222('0x21ad')](function(_0x30300a){var _0x535dce=_0x80f222,_0x542b5a=_0x86640f()[_0x535dce('0x26c3')](_0x30300a[_0x535dce('0x1b33')],function(_0x1fc14b){var _0x50912c=_0x535dce;return _0x86640f()['find'](_0x360bfe[_0x50912c('0x1593')],{'id':_0x1fc14b[_0x50912c('0x675')]});}),_0x446689=null;_0x360bfe['outbounddial']&&(_0x446689=_0x86640f()[_0x535dce('0x1d2e')](_0x360bfe[_0x535dce('0x1593')],{'name':_0x360bfe[_0x535dce('0x2363')][_0x535dce('0x1280')]}));if(_0x446689&&!_0x86640f()[_0x535dce('0x2664')](_0x542b5a,['id',_0x446689['id']])){var _0x40ad18=_0x86640f()[_0x535dce('0x1d2e')](_0x360bfe[_0x535dce('0x1593')],{'id':_0x446689['id']});_0x40ad18[_0x535dce('0xba')]=![],_0x542b5a[_0x535dce('0x206c')](_0x40ad18);}_0x360bfe[_0x535dce('0x1593')]=_0x542b5a;});}})[_0x8e2101('0x1c1d')](function(_0x1a9d1){var _0x2adf12=_0x8e2101;_0xced57a[_0x2adf12('0x2092')]({'title':_0x1a9d1[_0x2adf12('0x209')]?_0x2adf12('0x22d')+_0x1a9d1[_0x2adf12('0x209')]+_0x2adf12('0xa99')+_0x1a9d1[_0x2adf12('0x1808')]:_0x2adf12('0x3ab'),'msg':_0x1a9d1[_0x2adf12('0x11c2')]?JSON[_0x2adf12('0x25e')](_0x1a9d1['data']):_0x1a9d1[_0x2adf12('0x174f')]()});}),_0x5ef3eb[_0x8e2101('0x21de')](_0x8e2101('0x1bd8'))?_0x24d698[_0x8e2101('0x907')]['get']({'fields':_0x8e2101('0x1aa8'),'sort':_0x8e2101('0x19fe'),'nolimit':_0x8e2101('0x19bd')})[_0x8e2101('0x1376')][_0x8e2101('0x21ad')](function(_0x4fea4f){var _0x576b48=_0x8e2101;_0x360bfe[_0x576b48('0x1889')]=_0x4fea4f[_0x576b48('0x1b33')]||[];})[_0x8e2101('0x1c1d')](function(_0xa8d778){var _0x2ccfd5=_0x8e2101;_0xced57a['error']({'title':_0xa8d778[_0x2ccfd5('0x209')]?_0x2ccfd5('0x22d')+_0xa8d778['status']+_0x2ccfd5('0xa99')+_0xa8d778[_0x2ccfd5('0x1808')]:_0x2ccfd5('0xcd4'),'msg':_0xa8d778[_0x2ccfd5('0x11c2')]?JSON['stringify'](_0xa8d778[_0x2ccfd5('0x11c2')]):_0xa8d778[_0x2ccfd5('0x174f')]()});}):_0x24d698[_0x8e2101('0x907')][_0x8e2101('0x595')]({'fields':'id,name','sort':'name','nolimit':_0x8e2101('0x19bd')})[_0x8e2101('0x1376')][_0x8e2101('0x21ad')](function(_0x3a592c){var _0x2e145f=_0x8e2101;_0x360bfe[_0x2e145f('0x1889')]=_0x3a592c['rows']||[];})[_0x8e2101('0x21ad')](function(){var _0x59028b=_0x8e2101;return _0x24d698[_0x59028b('0xab4')][_0x59028b('0x595')]({'userProfileId':_0x360bfe[_0x59028b('0x123f')][_0x59028b('0x1618')],'sectionId':0x3f0})['$promise'];})[_0x8e2101('0x21ad')](function(_0x3b01cf){var _0x12f0fe=_0x8e2101,_0x52bc7a=_0x3b01cf&&_0x3b01cf['rows']?_0x3b01cf['rows'][0x0]:null;if(!_0x52bc7a){var _0x1c2a77=[],_0x546d30=null;_0x360bfe[_0x12f0fe('0x2363')]&&(_0x546d30=_0x86640f()['find'](_0x360bfe['tags'],{'name':_0x360bfe[_0x12f0fe('0x2363')]['tag']}));for(var _0x570131=0x0;_0x570131<_0x360bfe[_0x12f0fe('0x1889')][_0x12f0fe('0x577')];_0x570131++){_0x546d30&&_0x360bfe['tags'][_0x570131]['id']===_0x546d30['id']&&(_0x360bfe['tags'][_0x570131][_0x12f0fe('0xba')]=![],_0x1c2a77[_0x12f0fe('0x206c')](_0x360bfe['tags'][_0x570131]));}_0x360bfe['tags']=_0x1c2a77;}else{if(!_0x52bc7a['autoAssociation'])return _0x24d698[_0x12f0fe('0x185e')][_0x12f0fe('0x595')]({'sectionId':_0x52bc7a['id']})[_0x12f0fe('0x1376')][_0x12f0fe('0x21ad')](function(_0x27fb07){var _0x55e129=_0x12f0fe,_0x47beb9=_0x86640f()['map'](_0x27fb07['rows'],function(_0x168f2f){var _0x2282c5=a0_0x2e7f;return _0x86640f()[_0x2282c5('0x1d2e')](_0x360bfe['tags'],{'id':_0x168f2f['resourceId']});}),_0x4e961b=null;_0x360bfe[_0x55e129('0x2363')]&&(_0x4e961b=_0x86640f()[_0x55e129('0x1d2e')](_0x360bfe[_0x55e129('0x1889')],{'name':_0x360bfe['outbounddial'][_0x55e129('0x907')]}));if(_0x4e961b&&!_0x86640f()[_0x55e129('0x2664')](_0x47beb9,['id',_0x4e961b['id']])){var _0x360e36=_0x86640f()[_0x55e129('0x1d2e')](_0x360bfe[_0x55e129('0x1889')],{'id':_0x4e961b['id']});_0x360e36[_0x55e129('0xba')]=![],_0x47beb9[_0x55e129('0x206c')](_0x360e36);}_0x360bfe[_0x55e129('0x1889')]=_0x47beb9;});}})[_0x8e2101('0x1c1d')](function(_0x160586){var _0x360b51=_0x8e2101;_0xced57a[_0x360b51('0x2092')]({'title':_0x160586[_0x360b51('0x209')]?_0x360b51('0x22d')+_0x160586[_0x360b51('0x209')]+_0x360b51('0xa99')+_0x160586[_0x360b51('0x1808')]:'SYSTEM:GETtags','msg':_0x160586[_0x360b51('0x11c2')]?JSON[_0x360b51('0x25e')](_0x160586[_0x360b51('0x11c2')]):_0x160586[_0x360b51('0x174f')]()});});function _0x1723c1(){var _0x34428a=_0x8e2101;_0x360bfe[_0x34428a('0x1a69')]=[];var _0x3a98fe=[];_0x360bfe[_0x34428a('0x2363')]['type']&&_0x360bfe['outbounddial'][_0x34428a('0x7fa')]['toLowerCase']()===_0x34428a('0x2300')&&_0x360bfe[_0x34428a('0x2363')][_0x34428a('0x522')]===_0x34428a('0x4ea')&&(_0x360bfe[_0x34428a('0x2363')][_0x34428a('0x159e')]=_0x288136[_0x34428a('0x988')]?(_0x360bfe[_0x34428a('0x2363')][_0x34428a('0x1995')]||'')+'${EXTEN:'+_0x288136[_0x34428a('0x988')]+'}':(_0x360bfe[_0x34428a('0x2363')][_0x34428a('0x1995')]||'')+_0x34428a('0x2560'),_0x288136[_0x34428a('0xad1')]!==_0x34428a('0x983')?_0x360bfe[_0x34428a('0x2363')][_0x34428a('0x26a0')][_0x34428a('0x2004')](_0x34428a('0x478'))<0x0&&(_0x360bfe[_0x34428a('0x2363')][_0x34428a('0x26a0')]+='U(xcally-mixmonitor-context)'):_0x360bfe[_0x34428a('0x2363')][_0x34428a('0x26a0')]=_0x360bfe[_0x34428a('0x2363')][_0x34428a('0x26a0')]['replace'](_0x34428a('0x478'),''));if(_0x360bfe['outbounddial']['appType']&&_0x360bfe[_0x34428a('0x2363')][_0x34428a('0x522')]==='custom'){}else switch((_0x360bfe[_0x34428a('0x2363')][_0x34428a('0x1f94')]||_0x360bfe[_0x34428a('0x2363')][_0x34428a('0x522')])[_0x34428a('0xac2')]()){case _0x34428a('0x1125'):_0x360bfe[_0x34428a('0x2363')][_0x34428a('0x23c2')]=_0x360bfe['outbounddial']['name']+'='+_0x360bfe[_0x34428a('0x2363')]['value'];break;case _0x34428a('0xf50'):break;default:_0x3a98fe[0x0]=['SIP',_0x360bfe[_0x34428a('0x2363')]['trunk'],_0x360bfe['outbounddial'][_0x34428a('0x159e')]][_0x34428a('0x136')]('/'),_0x3a98fe[0x1]=_0x360bfe[_0x34428a('0x2363')]['timeout'],_0x3a98fe[0x2]=_0x360bfe[_0x34428a('0x2363')][_0x34428a('0x26a0')],_0x3a98fe[0x3]=_0x360bfe[_0x34428a('0x2363')][_0x34428a('0x770')],_0x360bfe[_0x34428a('0x2363')]['appdata']=_0x3a98fe[_0x34428a('0x136')](',');}_0x751eae(_0x360bfe['outbounddial']);}function _0x751eae(_0x13cde0){var _0x3ac5d6=_0x8e2101;_0x53fc40[_0x3ac5d6('0x1c24')](_0x13cde0);}}const _0x58b168=_0x65692;_0x584d14['$inject']=['$state',_0x3877e3('0x14c7'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x13c1'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x35b'),'userProfileSection'];function _0x584d14(_0x5602a6,_0x2dda93,_0x318b0e,_0xaede36,_0xbe8559,_0x475cc9,_0x2231e7,_0x1b51d2,_0x4f28fc,_0x282bd7,_0x19ab96,_0x32c588){var _0x24f323=_0x3877e3,_0x12da6c=this;_0x12da6c[_0x24f323('0x123f')]=_0x282bd7[_0x24f323('0x15ed')](),_0x12da6c['license']=_0x475cc9,_0x12da6c[_0x24f323('0x21e')]=_0x2231e7,_0x12da6c[_0x24f323('0x1432')]=_0x12da6c[_0x24f323('0x21e')][_0x24f323('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x12da6c['location']=_0x2dda93[_0x24f323('0x1162')]()+_0x24f323('0x22a9')+_0x2dda93[_0x24f323('0x1c01')](),_0x12da6c[_0x24f323('0x35b')]=_0x19ab96||_0x5602a6['params'][_0x24f323('0x35b')]||{},_0x12da6c[_0x24f323('0xab4')]=_0x32c588&&_0x32c588[_0x24f323('0x205f')]==0x1?_0x32c588['rows'][0x0]:null,_0x12da6c['crudPermissions']=_0x282bd7[_0x24f323('0x1778')](_0x12da6c[_0x24f323('0xab4')]?_0x12da6c[_0x24f323('0xab4')][_0x24f323('0x5ed')]:null),_0x12da6c[_0x24f323('0x126a')]={},_0x12da6c[_0x24f323('0x302')]=_0x5602a6[_0x24f323('0x171b')][_0x24f323('0x12e1')]||0x0,_0x12da6c[_0x24f323('0x95b')]=_0x4f28fc[_0x24f323('0x231c')],_0x12da6c['gotoOutboundRoutes']=_0x2751a2,_0x12da6c['saveOutboundRoute']=_0x5f5099,_0x282bd7[_0x24f323('0x21de')]('admin')?_0x1b51d2[_0x24f323('0x608')]['get']({'fields':_0x24f323('0x1aa8'),'sort':_0x24f323('0x19fe'),'nolimit':_0x24f323('0x19bd')})[_0x24f323('0x1376')][_0x24f323('0x21ad')](function(_0xf9a321){var _0x974012=_0x24f323;_0x12da6c['contexts']=_0xf9a321[_0x974012('0x1b33')]||[];})[_0x24f323('0x1c1d')](function(_0x379f40){var _0x1b306a=_0x24f323;_0x4f28fc[_0x1b306a('0x2092')]({'title':_0x379f40[_0x1b306a('0x209')]?'API:'+_0x379f40['status']+_0x1b306a('0xa99')+_0x379f40[_0x1b306a('0x1808')]:_0x1b306a('0x11b1'),'msg':_0x379f40[_0x1b306a('0x11c2')]?JSON['stringify'](_0x379f40[_0x1b306a('0x11c2')]):_0x379f40[_0x1b306a('0x174f')]()});}):_0x1b51d2[_0x24f323('0x608')]['get']({'fields':_0x24f323('0x1aa8'),'sort':_0x24f323('0x19fe'),'nolimit':'true'})[_0x24f323('0x1376')][_0x24f323('0x21ad')](function(_0x5afc0c){var _0x506d34=_0x24f323;_0x12da6c['contexts']=_0x5afc0c[_0x506d34('0x1b33')]||[];})[_0x24f323('0x21ad')](function(){var _0x2edd30=_0x24f323;return _0x1b51d2['userProfileSection'][_0x2edd30('0x595')]({'userProfileId':_0x12da6c[_0x2edd30('0x123f')][_0x2edd30('0x1618')],'sectionId':0x195})[_0x2edd30('0x1376')];})[_0x24f323('0x21ad')](function(_0x239183){var _0x5c1463=_0x24f323,_0x486652=_0x239183&&_0x239183[_0x5c1463('0x1b33')]?_0x239183[_0x5c1463('0x1b33')][0x0]:null;if(!_0x486652)return _0x1b51d2[_0x5c1463('0x608')]['get']({'fields':_0x5c1463('0x1aa8'),'sort':'name','nolimit':_0x5c1463('0x19bd'),'defaultEntry':0x1})[_0x5c1463('0x1376')][_0x5c1463('0x21ad')](function(_0x227f46){var _0x4cf996=_0x5c1463;_0x12da6c[_0x4cf996('0x1089')]=_0x227f46[_0x4cf996('0x1b33')]||[];});else{if(!_0x486652[_0x5c1463('0x80c')])return _0x1b51d2['userProfileResource'][_0x5c1463('0x595')]({'sectionId':_0x486652['id']})[_0x5c1463('0x1376')][_0x5c1463('0x21ad')](function(_0x1a41ec){var _0x44f340=_0x5c1463,_0x1c0dcd=_0x86640f()[_0x44f340('0x26c3')](_0x1a41ec[_0x44f340('0x1b33')],function(_0x388010){var _0x3754f2=_0x44f340;return _0x86640f()[_0x3754f2('0x1d2e')](_0x12da6c[_0x3754f2('0x1089')],{'id':_0x388010[_0x3754f2('0x675')]});}),_0x3fe250=null;_0x12da6c[_0x44f340('0x35b')]&&(_0x3fe250=_0x86640f()[_0x44f340('0x1d2e')](_0x12da6c[_0x44f340('0x1089')],{'name':_0x12da6c[_0x44f340('0x35b')][_0x44f340('0x244c')]}));if(_0x3fe250&&!_0x86640f()[_0x44f340('0x2664')](_0x1c0dcd,['id',_0x3fe250['id']])){var _0x43b57f=_0x86640f()[_0x44f340('0x1d2e')](_0x12da6c[_0x44f340('0x1089')],{'id':_0x3fe250['id']});_0x43b57f[_0x44f340('0xba')]=![],_0x1c0dcd[_0x44f340('0x206c')](_0x43b57f);}_0x12da6c[_0x44f340('0x1089')]=_0x1c0dcd;});}})['catch'](function(_0x1d5b3f){var _0x226f6c=_0x24f323;_0x4f28fc[_0x226f6c('0x2092')]({'title':_0x1d5b3f['status']?_0x226f6c('0x22d')+_0x1d5b3f[_0x226f6c('0x209')]+_0x226f6c('0xa99')+_0x1d5b3f[_0x226f6c('0x1808')]:_0x226f6c('0x1463'),'msg':_0x1d5b3f[_0x226f6c('0x11c2')]?JSON['stringify'](_0x1d5b3f['data']):_0x1d5b3f[_0x226f6c('0x174f')]()});});function _0x2751a2(){var _0x41899f=_0x24f323;_0x5602a6['go']('app.voice.outboundroutes',{},{'reload':_0x41899f('0x268e')});}function _0x5f5099(){var _0xdd3689=_0x24f323;_0x1b51d2['voiceExtension']['update']({'id':_0x12da6c[_0xdd3689('0x35b')]['id']},_0x12da6c[_0xdd3689('0x35b')])[_0xdd3689('0x1376')][_0xdd3689('0x21ad')](function(){var _0x4b460f=_0xdd3689;_0x4f28fc[_0x4b460f('0xdb1')]({'title':'OutboundRoute\x20updated!','msg':_0x12da6c['outboundroute']['name']?_0x12da6c[_0x4b460f('0x35b')][_0x4b460f('0x19fe')]+_0x4b460f('0xa8d'):''});})[_0xdd3689('0x1c1d')](function(_0x1c9357){var _0x40f1ea=_0xdd3689;_0x4f28fc['error']({'title':_0x1c9357['status']?_0x40f1ea('0x22d')+_0x1c9357['status']+'\x20-\x20'+_0x1c9357[_0x40f1ea('0x1808')]:_0x40f1ea('0x681'),'msg':_0x1c9357['data']?JSON[_0x40f1ea('0x25e')](_0x1c9357[_0x40f1ea('0x11c2')]):_0x1c9357[_0x40f1ea('0x174f')]()});});}}const _0x466eac=_0x584d14,_0x59e59b=_0x398308['p']+_0x3877e3('0x28d');_0x14825d[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x13c1'),_0x3877e3('0x1042'),'userProfile',_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),'license',_0x3877e3('0x21e')];function _0x14825d(_0x38932d,_0x4af8b0,_0x1fef0e,_0x104b52,_0x35f235,_0x41ad9d,_0x1859d2,_0x37ac2f,_0xd8fe9d,_0x371f91,_0x401daf,_0x3558de,_0x158f9c,_0x20dce2,_0x4d711f,_0x432113,_0x37bdd3){var _0x1ddc6a=_0x3877e3,_0x38a42a=this;_0x38a42a[_0x1ddc6a('0x2ff')]=_0x432113,_0x38a42a[_0x1ddc6a('0x21e')]=_0x37bdd3,_0x38a42a[_0x1ddc6a('0x123f')]=_0x4d711f[_0x1ddc6a('0x15ed')](),_0x38a42a[_0x1ddc6a('0x1042')]=_0xd8fe9d||{'count':0x0,'rows':[]},_0x38a42a[_0x1ddc6a('0x758')]=_0x371f91,_0x38a42a[_0x1ddc6a('0xab4')]=_0x401daf&&_0x401daf[_0x1ddc6a('0x205f')]==0x1?_0x401daf[_0x1ddc6a('0x1b33')][0x0]:null,_0x38a42a['crudPermissions']=_0x4d711f[_0x1ddc6a('0x1778')](_0x38a42a[_0x1ddc6a('0xab4')]?_0x38a42a[_0x1ddc6a('0xab4')][_0x1ddc6a('0x5ed')]:null),_0x38a42a[_0x1ddc6a('0x1897')]=_0x1ddc6a('0x1042'),_0x38a42a[_0x1ddc6a('0x11dc')]='',_0x38a42a['listOrderAsc']=null,_0x38a42a[_0x1ddc6a('0x45f')]=[],_0x38a42a[_0x1ddc6a('0x77')]={'fields':_0x1ddc6a('0x1e29'),'type':_0x1ddc6a('0x2300'),'sort':_0x1ddc6a('0x33'),'VoiceExtensionId':_0x1ddc6a('0x27a'),'limit':0xa,'page':0x1},_0x38a42a[_0x1ddc6a('0x1dd4')]=_0x86640f()[_0x1ddc6a('0xcde')]([{'option':_0x1ddc6a('0x983'),'value':_0x1ddc6a('0x1499')},{'option':'wav','value':'\x27wav\x27'},{'option':_0x1ddc6a('0x17a9'),'value':_0x1ddc6a('0x241d')},{'option':_0x1ddc6a('0xb95'),'value':_0x1ddc6a('0x1e90')}],function(_0x55e8a1){var _0x209d3a=_0x1ddc6a;return _0x86640f()['replace'](_0x55e8a1[_0x209d3a('0x2228')],new RegExp('\x27','g'),'');}),_0x38a42a['editstate']=_0x168d19,_0x38a42a[_0x1ddc6a('0x2593')]=_0x454261,_0x38a42a[_0x1ddc6a('0xdb1')]=_0x381b16,_0x38a42a[_0x1ddc6a('0x11bf')]=_0x5901a9,_0x38a42a[_0x1ddc6a('0x2615')]=_0xfae6a,_0x38a42a[_0x1ddc6a('0x1d9f')]=_0x33eba5,_0x38a42a[_0x1ddc6a('0x15a0')]=_0x110ffc,_0x38a42a[_0x1ddc6a('0xc11')]=_0x8fcb2e,_0x38a42a[_0x1ddc6a('0x102c')]=_0x9bfb1c,_0x38a42a[_0x1ddc6a('0x1c3f')]=_0x252d93,_0x4d711f['hasRole'](_0x1ddc6a('0x1bd8'))?_0x3558de[_0x1ddc6a('0x608')][_0x1ddc6a('0x595')]({'fields':_0x1ddc6a('0x1aa8'),'sort':_0x1ddc6a('0x19fe'),'nolimit':'true'})[_0x1ddc6a('0x1376')][_0x1ddc6a('0x21ad')](function(_0x3f798f){var _0x475f94=_0x1ddc6a;_0x38a42a[_0x475f94('0x1089')]=_0x3f798f[_0x475f94('0x1b33')]||[];})[_0x1ddc6a('0x1c1d')](function(_0xce1a5b){var _0x6aaa74=_0x1ddc6a;_0x20dce2[_0x6aaa74('0x2092')]({'title':_0xce1a5b[_0x6aaa74('0x209')]?'API:'+_0xce1a5b[_0x6aaa74('0x209')]+_0x6aaa74('0xa99')+_0xce1a5b['statusText']:_0x6aaa74('0x11b1'),'msg':_0xce1a5b[_0x6aaa74('0x11c2')]?JSON[_0x6aaa74('0x25e')](_0xce1a5b[_0x6aaa74('0x11c2')]):_0xce1a5b['toString']()});}):_0x3558de['voiceContext']['get']({'fields':_0x1ddc6a('0x1aa8'),'sort':_0x1ddc6a('0x19fe'),'nolimit':_0x1ddc6a('0x19bd')})['$promise']['then'](function(_0x56977e){var _0x1d4105=_0x1ddc6a;_0x38a42a[_0x1d4105('0x1089')]=_0x56977e[_0x1d4105('0x1b33')]||[];})[_0x1ddc6a('0x21ad')](function(){var _0x405c9a=_0x1ddc6a;return _0x3558de[_0x405c9a('0xab4')]['get']({'userProfileId':_0x38a42a[_0x405c9a('0x123f')][_0x405c9a('0x1618')],'sectionId':0x195})['$promise'];})[_0x1ddc6a('0x21ad')](function(_0x51aab4){var _0x3153f0=_0x1ddc6a,_0x22f504=_0x51aab4&&_0x51aab4[_0x3153f0('0x1b33')]?_0x51aab4[_0x3153f0('0x1b33')][0x0]:null;if(!_0x22f504)return _0x3558de['voiceContext'][_0x3153f0('0x595')]({'fields':'id,name','sort':_0x3153f0('0x19fe'),'nolimit':_0x3153f0('0x19bd'),'defaultEntry':0x1})[_0x3153f0('0x1376')]['then'](function(_0x35a070){var _0x44ea89=_0x3153f0;_0x38a42a[_0x44ea89('0x1089')]=_0x35a070[_0x44ea89('0x1b33')]||[];});else{if(!_0x22f504[_0x3153f0('0x80c')])return _0x3558de[_0x3153f0('0x185e')][_0x3153f0('0x595')]({'sectionId':_0x22f504['id']})[_0x3153f0('0x1376')][_0x3153f0('0x21ad')](function(_0x40f36f){var _0x306197=_0x3153f0,_0x550236=_0x86640f()[_0x306197('0x26c3')](_0x40f36f['rows'],function(_0x126527){var _0x32b16c=_0x306197;return _0x86640f()[_0x32b16c('0x1d2e')](_0x38a42a[_0x32b16c('0x1089')],{'id':_0x126527['resourceId']});}),_0x2e94d6=null;_0x38a42a['outboundroute']&&(_0x2e94d6=_0x86640f()[_0x306197('0x1d2e')](_0x38a42a[_0x306197('0x1089')],{'name':_0x38a42a['outboundroute'][_0x306197('0x244c')]}));if(_0x2e94d6&&!_0x86640f()[_0x306197('0x2664')](_0x550236,['id',_0x2e94d6['id']])){var _0x152058=_0x86640f()[_0x306197('0x1d2e')](_0x38a42a[_0x306197('0x1089')],{'id':_0x2e94d6['id']});_0x152058['canSelect']=![],_0x550236[_0x306197('0x206c')](_0x152058);}_0x38a42a[_0x306197('0x1089')]=_0x550236;});}})[_0x1ddc6a('0x1c1d')](function(_0x1fc8ab){var _0x21a122=_0x1ddc6a;_0x20dce2[_0x21a122('0x2092')]({'title':_0x1fc8ab[_0x21a122('0x209')]?_0x21a122('0x22d')+_0x1fc8ab['status']+_0x21a122('0xa99')+_0x1fc8ab[_0x21a122('0x1808')]:_0x21a122('0x1463'),'msg':_0x1fc8ab['data']?JSON[_0x21a122('0x25e')](_0x1fc8ab[_0x21a122('0x11c2')]):_0x1fc8ab[_0x21a122('0x174f')]()});});function _0x168d19(_0x4620a3){var _0x5c3551=_0x1ddc6a;_0x1fef0e['go'](_0x5c3551('0x271'),{'id':_0x4620a3['id'],'outboundroute':_0x4620a3,'crudPermissions':_0x38a42a[_0x5c3551('0x5ed')]});}function _0x454261(_0x46027d,_0x4e6503){var _0x24131e=_0x1ddc6a,_0x16b026=_0x35f235[_0x24131e('0xa33')]()[_0x24131e('0x4b4')](_0x24131e('0x25b6')+_0x86640f()[_0x24131e('0x2159')](_0x24131e('0x35b'))+'?')[_0x24131e('0x276b')](_0x24131e('0x622')+(_0x46027d[_0x24131e('0x19fe')]||_0x24131e('0x35b'))+'
'+_0x24131e('0x25e0'))[_0x24131e('0x7a7')](_0x24131e('0xdfb'))['targetEvent'](_0x4e6503)['ok']('OK')[_0x24131e('0x3b5')](_0x24131e('0x284b'));_0x35f235[_0x24131e('0x853')](_0x16b026)[_0x24131e('0x21ad')](function(){_0x33eba5(_0x46027d);},function(){var _0x148b96=_0x24131e;console['log'](_0x148b96('0x284b'));});}var _0x59cca6=!![],_0x40c8d2=0x1;_0x38932d[_0x1ddc6a('0x10e8')](_0x1ddc6a('0x1948'),function(_0x7eef0f,_0x33c71c){var _0xde7c06=_0x1ddc6a;_0x59cca6?_0x1859d2(function(){_0x59cca6=![];}):(!_0x33c71c&&(_0x40c8d2=_0x38a42a[_0xde7c06('0x77')][_0xde7c06('0x2376')]),_0x7eef0f!==_0x33c71c&&(_0x38a42a['query'][_0xde7c06('0x2376')]=0x1),!_0x7eef0f&&(_0x38a42a['query'][_0xde7c06('0x2376')]=_0x40c8d2),_0x38a42a['getOutboundRoutes']());});function _0x381b16(_0xb736c0){_0x38a42a['outboundroutes']=_0xb736c0||{'count':0x0,'rows':[]};}function _0x5901a9(){var _0x2fa224=_0x1ddc6a;_0x38a42a[_0x2fa224('0x77')][_0x2fa224('0x15a5')]=(_0x38a42a[_0x2fa224('0x77')]['page']-0x1)*_0x38a42a[_0x2fa224('0x77')][_0x2fa224('0x1f4a')],_0x4d711f['hasRole'](_0x2fa224('0x1bd8'))?_0x38a42a[_0x2fa224('0x71b')]=_0x3558de[_0x2fa224('0x1b0c')]['get'](_0x38a42a[_0x2fa224('0x77')],_0x381b16)['$promise']:(_0x38a42a[_0x2fa224('0x77')]['id']=_0x38a42a[_0x2fa224('0x758')]['id'],_0x38a42a[_0x2fa224('0x77')][_0x2fa224('0x26ad')]=_0x2fa224('0x1d5'),_0x38a42a[_0x2fa224('0x71b')]=_0x3558de[_0x2fa224('0x758')][_0x2fa224('0x321')](_0x38a42a[_0x2fa224('0x77')],_0x381b16)[_0x2fa224('0x1376')]);}function _0xfae6a(_0xe8ea85,_0x5b5c27){var _0x46e1e4=_0x1ddc6a;_0x35f235[_0x46e1e4('0x853')]({'controller':_0x46e1e4('0x22cb'),'controllerAs':'vm','templateUrl':_0x59e59b,'parent':angular[_0x46e1e4('0x1676')](_0x41ad9d[_0x46e1e4('0x2452')]),'targetEvent':_0xe8ea85,'clickOutsideToClose':!![],'locals':{'outboundroute':_0x5b5c27,'outboundroutes':_0x38a42a['outboundroutes'][_0x46e1e4('0x1b33')],'license':_0x38a42a[_0x46e1e4('0x2ff')],'setting':_0x38a42a[_0x46e1e4('0x21e')],'crudPermissions':_0x38a42a['crudPermissions']}});}function _0x33eba5(_0x7334a){var _0x2da6a2=_0x1ddc6a;_0x3558de[_0x2da6a2('0x19b3')][_0x2da6a2('0x595')]({'VoiceExtensionId':_0x7334a['id']})['$promise'][_0x2da6a2('0x21ad')](function(_0x5a9b30){var _0x2d983d=_0x2da6a2;if(_0x5a9b30&&_0x5a9b30['rows']&&_0x5a9b30[_0x2d983d('0x1b33')][_0x2d983d('0x577')]>0x0)return _0x20dce2[_0x2d983d('0x2092')]({'title':_0x2d983d('0xaf6'),'msg':_0x2d983d('0x93a')});else _0x3558de[_0x2d983d('0x1b0c')][_0x2d983d('0x1164')]({'id':_0x7334a['id']})['$promise'][_0x2d983d('0x21ad')](function(){var _0x43268f=_0x2d983d;_0x86640f()['remove'](_0x38a42a[_0x43268f('0x1042')][_0x43268f('0x1b33')],{'id':_0x7334a['id']}),_0x38a42a[_0x43268f('0x1042')]['count']-=0x1,!_0x38a42a[_0x43268f('0x1042')][_0x43268f('0x1b33')][_0x43268f('0x577')]&&_0x38a42a['getOutboundRoutes'](),_0x20dce2['success']({'title':_0x86640f()[_0x43268f('0x2159')](_0x43268f('0x1539'))+_0x43268f('0xe64'),'msg':_0x7334a['name']?_0x7334a[_0x43268f('0x19fe')]+_0x43268f('0xb4a'):''});})[_0x2d983d('0x1c1d')](function(_0x59f49d){var _0x38a1c0=_0x2d983d;if(_0x59f49d[_0x38a1c0('0x11c2')]&&_0x59f49d[_0x38a1c0('0x11c2')][_0x38a1c0('0x1a69')]&&_0x59f49d[_0x38a1c0('0x11c2')][_0x38a1c0('0x1a69')][_0x38a1c0('0x577')]){_0x38a42a[_0x38a1c0('0x1a69')]=_0x59f49d[_0x38a1c0('0x11c2')][_0x38a1c0('0x1a69')]||[{'message':_0x59f49d[_0x38a1c0('0x174f')](),'type':'SYSTEM:DELETEvoiceExtension'}];for(var _0x2907dd=0x0;_0x2907dd<_0x59f49d['data'][_0x38a1c0('0x1a69')][_0x38a1c0('0x577')];_0x2907dd++){_0x20dce2['error']({'title':_0x59f49d[_0x38a1c0('0x11c2')][_0x38a1c0('0x1a69')][_0x2907dd][_0x38a1c0('0x7fa')],'msg':_0x59f49d['data'][_0x38a1c0('0x1a69')][_0x2907dd][_0x38a1c0('0x1224')]});}}else _0x20dce2[_0x38a1c0('0x2092')]({'title':_0x59f49d['status']?_0x38a1c0('0x22d')+_0x59f49d[_0x38a1c0('0x209')]+_0x38a1c0('0xa99')+_0x59f49d[_0x38a1c0('0x1808')]:_0x38a1c0('0x2467'),'msg':_0x59f49d['data']?JSON[_0x38a1c0('0x25e')](_0x59f49d['data'][_0x38a1c0('0x1224')]):_0x59f49d[_0x38a1c0('0x1224')]||_0x59f49d[_0x38a1c0('0x174f')]()});});});}function _0x110ffc(){var _0x3623d0=_0x1ddc6a,_0x5e6dab=angular[_0x3623d0('0xd75')](_0x38a42a[_0x3623d0('0x45f')]);return _0x38a42a[_0x3623d0('0x45f')]=[],_0x5e6dab;}function _0x8fcb2e(_0x3cf79f){var _0x108859=_0x1ddc6a,_0x2ad703=_0x35f235[_0x108859('0xa33')]()[_0x108859('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20outboundroutes?')[_0x108859('0x276b')](_0x108859('0x622')+_0x38a42a[_0x108859('0x45f')][_0x108859('0x577')]+_0x108859('0xd74')+_0x108859('0x25e0'))[_0x108859('0x7a7')](_0x108859('0x2fd'))[_0x108859('0x1e6d')](_0x3cf79f)['ok']('OK')[_0x108859('0x3b5')](_0x108859('0x284b'));_0x35f235[_0x108859('0x853')](_0x2ad703)[_0x108859('0x21ad')](function(){var _0x2b9202=_0x108859;_0x38a42a[_0x2b9202('0x45f')]['forEach'](function(_0x333040){_0x33eba5(_0x333040);}),_0x38a42a[_0x2b9202('0x45f')]=[];});}function _0x9bfb1c(){var _0x44ec1a=_0x1ddc6a;_0x38a42a[_0x44ec1a('0x45f')]=[];}function _0x252d93(){var _0xf996c8=_0x1ddc6a;_0x38a42a['selectedOutboundRoutes']=_0x38a42a[_0xf996c8('0x1042')][_0xf996c8('0x1b33')];}}const _0xab22af=_0x14825d;_0x11289a[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$location',_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x70c'),_0x3877e3('0xcbd'),_0x3877e3('0xccd'),'Auth',_0x3877e3('0x2ff'),_0x3877e3('0x21e'),'crudPermissions'];function _0x11289a(_0x168745,_0x11cc49,_0x49e43c,_0x42141a,_0x514548,_0x320fff,_0x34fe77,_0x5e81d1,_0x36ff10,_0x1dddd2,_0x533220,_0xd447b5,_0x6f1067,_0x562c89){var _0x4c07f3=_0x3877e3,_0xa71796=this;_0xa71796[_0x4c07f3('0x123f')]=_0x533220[_0x4c07f3('0x15ed')](),_0xa71796[_0x4c07f3('0x1a69')]=[],_0xa71796['setting']=_0x6f1067,_0xa71796['license']=_0xd447b5,_0xa71796[_0x4c07f3('0x5ed')]=_0x562c89,_0xa71796[_0x4c07f3('0x126a')]={},_0xa71796[_0x4c07f3('0x1432')]=_0xa71796['setting']&&_0xa71796[_0x4c07f3('0x21e')][_0x4c07f3('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xa71796[_0x4c07f3('0x4b4')]=_0x4c07f3('0x2835'),_0xa71796[_0x4c07f3('0xcbd')]=angular[_0x4c07f3('0xd75')](_0x36ff10),_0xa71796[_0x4c07f3('0x70c')]=_0x5e81d1,_0xa71796[_0x4c07f3('0x1ffb')]=![];!_0xa71796['voicemail']&&(_0xa71796['voicemail']={'attach':'no'},_0xa71796[_0x4c07f3('0x4b4')]=_0x4c07f3('0x1cf4'),_0xa71796[_0x4c07f3('0x1ffb')]=!![]);_0xa71796[_0x4c07f3('0x1e4c')]=_0x2a268c,_0xa71796[_0x4c07f3('0x76')]=_0x37b3ae,_0xa71796[_0x4c07f3('0x176a')]=_0xfe008e,_0xa71796[_0x4c07f3('0x279')]=_0x5c810f,_0xa71796[_0x4c07f3('0x167')]=_0x57a841;function _0x2a268c(){var _0x47c72d=_0x4c07f3;_0xa71796[_0x47c72d('0x1a69')]=[],_0x1dddd2[_0x47c72d('0x554')][_0x47c72d('0x186f')](_0xa71796['voicemail'])[_0x47c72d('0x1376')][_0x47c72d('0x21ad')](function(_0x4b274c){var _0x4c75fc=_0x47c72d;_0xa71796[_0x4c75fc('0x70c')][_0x4c75fc('0xd0c')](_0x4b274c[_0x4c75fc('0x3bc')]()),_0x34fe77[_0x4c75fc('0xdb1')]({'title':_0x4c75fc('0x1ed6'),'msg':_0xa71796[_0x4c75fc('0xcbd')]['name']?_0xa71796['voicemail'][_0x4c75fc('0x19fe')]+_0x4c75fc('0x1694'):''}),_0x57a841(_0x4b274c);})[_0x47c72d('0x1c1d')](function(_0x1816b1){var _0x5a1547=_0x47c72d;if(_0x1816b1[_0x5a1547('0x11c2')]&&_0x1816b1[_0x5a1547('0x11c2')][_0x5a1547('0x1a69')]&&_0x1816b1[_0x5a1547('0x11c2')][_0x5a1547('0x1a69')][_0x5a1547('0x577')]){_0xa71796[_0x5a1547('0x1a69')]=_0x1816b1[_0x5a1547('0x11c2')][_0x5a1547('0x1a69')]||[{'message':_0x1816b1[_0x5a1547('0x174f')](),'type':_0x5a1547('0x2444')}];for(var _0x5a03e4=0x0;_0x5a03e4<_0x1816b1[_0x5a1547('0x11c2')][_0x5a1547('0x1a69')][_0x5a1547('0x577')];_0x5a03e4+=0x1){_0x34fe77['error']({'title':_0x1816b1[_0x5a1547('0x11c2')]['errors'][_0x5a03e4]['type'],'msg':_0x1816b1[_0x5a1547('0x11c2')][_0x5a1547('0x1a69')][_0x5a03e4][_0x5a1547('0x1224')]});}}else _0x34fe77[_0x5a1547('0x2092')]({'title':_0x1816b1['status']?_0x5a1547('0x22d')+_0x1816b1[_0x5a1547('0x209')]+_0x5a1547('0xa99')+_0x1816b1[_0x5a1547('0x1808')]:_0x5a1547('0x2444'),'msg':_0x1816b1['data']?JSON[_0x5a1547('0x25e')](_0x1816b1[_0x5a1547('0x11c2')][_0x5a1547('0x1224')]):_0x1816b1['toString']()});});}function _0x37b3ae(){var _0x818b48=_0x4c07f3;_0xa71796['errors']=[],_0x1dddd2[_0x818b48('0x554')][_0x818b48('0x5ef')]({'id':_0xa71796['voicemail']['id']},_0xa71796[_0x818b48('0xcbd')])['$promise'][_0x818b48('0x21ad')](function(_0x1218b5){var _0x2b6ba3=_0x818b48,_0x6e4d33=_0x86640f()[_0x2b6ba3('0x1d2e')](_0xa71796[_0x2b6ba3('0x70c')],{'id':_0x1218b5['id']});_0x6e4d33&&_0x86640f()['merge'](_0x6e4d33,_0x86640f()[_0x2b6ba3('0xc50')](_0x1218b5[_0x2b6ba3('0x3bc')](),_0x86640f()[_0x2b6ba3('0x223b')](_0x6e4d33))),_0x34fe77['success']({'title':_0x2b6ba3('0x121e'),'msg':_0xa71796[_0x2b6ba3('0xcbd')][_0x2b6ba3('0x19fe')]?_0xa71796[_0x2b6ba3('0xcbd')][_0x2b6ba3('0x19fe')]+_0x2b6ba3('0x2249'):''}),_0x57a841(_0x1218b5);})[_0x818b48('0x1c1d')](function(_0x1e1590){var _0x21dbc6=_0x818b48;if(_0x1e1590['data']&&_0x1e1590[_0x21dbc6('0x11c2')][_0x21dbc6('0x1a69')]&&_0x1e1590['data'][_0x21dbc6('0x1a69')][_0x21dbc6('0x577')]){_0xa71796['errors']=_0x1e1590[_0x21dbc6('0x11c2')][_0x21dbc6('0x1a69')]||[{'message':_0x1e1590[_0x21dbc6('0x174f')](),'type':_0x21dbc6('0x285d')}];for(var _0x5ed1c7=0x0;_0x5ed1c7<_0x1e1590[_0x21dbc6('0x11c2')][_0x21dbc6('0x1a69')]['length'];_0x5ed1c7++){_0x34fe77[_0x21dbc6('0x2092')]({'title':_0x1e1590[_0x21dbc6('0x11c2')][_0x21dbc6('0x1a69')][_0x5ed1c7][_0x21dbc6('0x7fa')],'msg':_0x1e1590['data'][_0x21dbc6('0x1a69')][_0x5ed1c7]['message']});}}else _0x34fe77[_0x21dbc6('0x2092')]({'title':_0x1e1590[_0x21dbc6('0x209')]?_0x21dbc6('0x22d')+_0x1e1590[_0x21dbc6('0x209')]+_0x21dbc6('0xa99')+_0x1e1590[_0x21dbc6('0x1808')]:'api.voiceMail.update','msg':_0x1e1590[_0x21dbc6('0x11c2')]?JSON['stringify'](_0x1e1590[_0x21dbc6('0x11c2')]['message']):_0x1e1590['toString']()});});}function _0xfe008e(_0x209e6a){var _0xe5de9e=_0x4c07f3;_0xa71796[_0xe5de9e('0x1a69')]=[];var _0x5cd750=_0x42141a[_0xe5de9e('0xa33')]()[_0xe5de9e('0x4b4')](_0xe5de9e('0x196b'))['content']('The\x20voicemail\x20will\x20be\x20deleted.')[_0xe5de9e('0x7a7')]('Delete\x20Voicemail')['ok'](_0xe5de9e('0xbfd'))[_0xe5de9e('0x3b5')]('Cancel')[_0xe5de9e('0x1e6d')](_0x209e6a);_0x42141a['show'](_0x5cd750)['then'](function(){var _0x3e4cd4=_0xe5de9e;_0x1dddd2[_0x3e4cd4('0x554')]['delete']({'id':_0xa71796[_0x3e4cd4('0xcbd')]['id']})[_0x3e4cd4('0x1376')]['then'](function(){var _0x2dc0a4=_0x3e4cd4;_0x86640f()[_0x2dc0a4('0x16a2')](_0xa71796[_0x2dc0a4('0x70c')],{'id':_0xa71796[_0x2dc0a4('0xcbd')]['id']}),_0x34fe77[_0x2dc0a4('0xdb1')]({'title':'Voicemail\x20properly\x20deleted!','msg':(_0xa71796['voicemail'][_0x2dc0a4('0x19fe')]||_0x2dc0a4('0xcbd'))+_0x2dc0a4('0xb4a')}),_0x57a841(_0xa71796[_0x2dc0a4('0xcbd')]);})['catch'](function(_0x41b1f0){var _0x2a8632=_0x3e4cd4;if(_0x41b1f0['data']&&_0x41b1f0[_0x2a8632('0x11c2')][_0x2a8632('0x1a69')]&&_0x41b1f0['data'][_0x2a8632('0x1a69')][_0x2a8632('0x577')]){_0xa71796[_0x2a8632('0x1a69')]=_0x41b1f0['data'][_0x2a8632('0x1a69')]||[{'message':_0x41b1f0[_0x2a8632('0x174f')](),'type':_0x2a8632('0x2716')}];for(var _0x4f6164=0x0;_0x4f6164<_0x41b1f0[_0x2a8632('0x11c2')][_0x2a8632('0x1a69')][_0x2a8632('0x577')];_0x4f6164++){_0x34fe77[_0x2a8632('0x2092')]({'title':_0x41b1f0[_0x2a8632('0x11c2')][_0x2a8632('0x1a69')][_0x4f6164][_0x2a8632('0x7fa')],'msg':_0x41b1f0[_0x2a8632('0x11c2')]['errors'][_0x4f6164][_0x2a8632('0x1224')]});}}else _0x34fe77[_0x2a8632('0x2092')]({'title':_0x41b1f0[_0x2a8632('0x209')]?_0x2a8632('0x22d')+_0x41b1f0[_0x2a8632('0x209')]+_0x2a8632('0xa99')+_0x41b1f0[_0x2a8632('0x1808')]:_0x2a8632('0x2716'),'msg':_0x41b1f0[_0x2a8632('0x11c2')]?JSON[_0x2a8632('0x25e')](_0x41b1f0[_0x2a8632('0x11c2')]['message']):_0x41b1f0[_0x2a8632('0x1224')]||_0x41b1f0[_0x2a8632('0x174f')]()});});},function(){});}function _0x5c810f(_0x1bf699){return _0x1bf699===null?undefined:new Date(_0x1bf699);}function _0x57a841(_0x1ade0e){var _0x543ff0=_0x4c07f3;_0x42141a[_0x543ff0('0x1c24')](_0x1ade0e);}}const _0x44ddbf=_0x11289a;_0xc164a1[_0x3877e3('0x1a81')]=[_0x3877e3('0x26'),_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x1908'),_0x3877e3('0xccd'),'Auth'];function _0xc164a1(_0x29a52b,_0xeb3b49,_0x18b1a3,_0x1ac1de,_0x4c00c5,_0x12c22a,_0x4d4282,_0x3205f3,_0x17da7d,_0x5c9ab3,_0x197bca){var _0x4d56fe=_0x3877e3,_0x4e57d0=this;_0x4e57d0[_0x4d56fe('0x123f')]=_0x197bca['getCurrentUser'](),_0x4e57d0[_0x4d56fe('0xcbd')]={},_0x4e57d0['voicemailMessages']={'count':0x0,'rows':[]},_0x4e57d0[_0x4d56fe('0x1934')]=[],_0x4e57d0['crudPermissions'],_0x4e57d0[_0x4d56fe('0x77')]={'fields':_0x4d56fe('0x1ac0'),'sort':_0x4d56fe('0x135d'),'limit':0xa,'page':0x1},_0x4e57d0[_0x4d56fe('0x1d75')]=_0x20fc3e,_0x4e57d0['deleteConfirm']=_0x292c8f,_0x4e57d0[_0x4d56fe('0x2344')]=_0x1a2490,_0x4e57d0[_0x4d56fe('0xdb1')]=_0x2a5eaa,_0x4e57d0['getVoicemailMessages']=_0x59fe1f,_0x4e57d0[_0x4d56fe('0xdf0')]=_0x20af1a,_0x4e57d0['deleteVoicemailMessage']=_0x19cf61,_0x4e57d0[_0x4d56fe('0x1d57')]=_0x432478;function _0x20fc3e(_0x3efdcb,_0x3c3aa9){var _0x543c52=_0x4d56fe;_0x4e57d0[_0x543c52('0xcbd')]=_0x3efdcb,_0x4e57d0[_0x543c52('0x5ed')]=typeof _0x3c3aa9!=='undefined'?_0x3c3aa9:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4e57d0[_0x543c52('0x77')]['id']=_0x4e57d0[_0x543c52('0xcbd')]['id'],_0x59fe1f();}function _0x1a2490(_0x4ffc41,_0x6e022f,_0x14bb64){var _0x1124fb=_0x4d56fe;return _0x5c9ab3[_0x1124fb('0x1602')][_0x1124fb('0xb0')]({'id':_0x4ffc41['id'],'exists':!![],'attachments':_0x14bb64})['$promise']['then'](function(_0x889f23){var _0x181db3=_0x1124fb,_0x14cccb=[_0x889f23[_0x181db3('0x3da')]],_0x4bf65d=_0x181db3('0x1224')+_0x4ffc41['id'],_0x122e8a=new Blob(_0x14cccb,{'type':_0x889f23[_0x181db3('0x7fa')]});_0x4bf65d=_0x4ffc41['msg_id']+'.wav';var _0x3b6bc2=window['document'][_0x181db3('0x162e')]('a');_0x3b6bc2[_0x181db3('0x127a')](_0x181db3('0x69e'),URL[_0x181db3('0x167b')](_0x122e8a)),_0x3b6bc2[_0x181db3('0x127a')](_0x181db3('0xb0'),_0x4bf65d),document[_0x181db3('0x2452')][_0x181db3('0x14d0')](_0x3b6bc2),_0x3b6bc2[_0x181db3('0x997')]();})[_0x1124fb('0x1c1d')](function(_0xa5d829){var _0x30de41=_0x1124fb;if(_0xa5d829[_0x30de41('0x11c2')]&&_0xa5d829[_0x30de41('0x11c2')]['errors']&&_0xa5d829['data']['errors']['length'])for(var _0x26a4f5=0x0;_0x26a4f5<_0xa5d829['data'][_0x30de41('0x1a69')][_0x30de41('0x577')];_0x26a4f5+=0x1){_0x17da7d[_0x30de41('0x2092')]({'title':_0xa5d829['data'][_0x30de41('0x1a69')][_0x26a4f5][_0x30de41('0x7fa')],'msg':_0xa5d829['data'][_0x30de41('0x1a69')][_0x26a4f5]['message']});}else _0x17da7d[_0x30de41('0x2092')]({'title':_0xa5d829[_0x30de41('0x209')]?_0x30de41('0x22d')+_0xa5d829['status']+_0x30de41('0xa99')+_0xa5d829[_0x30de41('0x1808')]:_0x30de41('0x2444'),'msg':_0xa5d829['data']?JSON[_0x30de41('0x25e')](_0xa5d829[_0x30de41('0x11c2')][_0x30de41('0x1224')]):_0xa5d829[_0x30de41('0x174f')]()});});}function _0x292c8f(_0x2d0fd3,_0x477831){var _0x2b4dfe=_0x4d56fe,_0x4b035e=_0x4d4282[_0x2b4dfe('0xa33')]()[_0x2b4dfe('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20message?')[_0x2b4dfe('0x276b')](_0x2b4dfe('0x622')+(_0x2d0fd3['name']||_0x2d0fd3['id']&&_0x86640f()[_0x2b4dfe('0x22e')](_0x2b4dfe('0x1956'))+_0x2d0fd3['id']||_0x2b4dfe('0x1224'))+_0x2b4dfe('0x2135')+'\x20will\x20be\x20deleted.')[_0x2b4dfe('0x7a7')](_0x2b4dfe('0x1a96'))[_0x2b4dfe('0x1e6d')](_0x477831)['ok']('OK')[_0x2b4dfe('0x3b5')]('CANCEL');_0x4d4282[_0x2b4dfe('0x853')](_0x4b035e)['then'](function(){_0x19cf61(_0x2d0fd3);},function(){var _0x1b9525=_0x2b4dfe;console[_0x1b9525('0x6fb')](_0x1b9525('0x284b'));});}function _0x2a5eaa(_0x2fd99d){var _0x311e7b=_0x4d56fe;_0x4e57d0[_0x311e7b('0xe36')]=_0x2fd99d||{'count':0x0,'rows':[]};}function _0x59fe1f(){var _0x5da887=_0x4d56fe;_0x4e57d0[_0x5da887('0x77')][_0x5da887('0x15a5')]=(_0x4e57d0['query'][_0x5da887('0x2376')]-0x1)*_0x4e57d0[_0x5da887('0x77')][_0x5da887('0x1f4a')],_0x4e57d0[_0x5da887('0x71b')]=_0x5c9ab3['voiceMail'][_0x5da887('0x83')](_0x4e57d0['query'],_0x2a5eaa)['$promise'];}function _0x19cf61(_0x322311){var _0x2f1283=_0x4d56fe;_0x5c9ab3[_0x2f1283('0x1602')]['delete']({'id':_0x322311['id']})['$promise'][_0x2f1283('0x21ad')](function(){var _0x5c5190=_0x2f1283;_0x86640f()[_0x5c5190('0x16a2')](_0x4e57d0['voicemailMessages']['rows'],{'id':_0x322311['id']}),_0x4e57d0[_0x5c5190('0xe36')][_0x5c5190('0x205f')]-=0x1,!_0x4e57d0[_0x5c5190('0xe36')]['rows']['length']&&_0x59fe1f(),_0x17da7d[_0x5c5190('0xdb1')]({'title':'Message\x20deleted!','msg':_0x322311['name']?_0x322311[_0x5c5190('0x19fe')]+_0x5c5190('0xb4a'):''});})['catch'](function(_0x3ba07d){var _0x58859a=_0x2f1283;if(_0x3ba07d[_0x58859a('0x11c2')]&&_0x3ba07d[_0x58859a('0x11c2')][_0x58859a('0x1a69')]&&_0x3ba07d[_0x58859a('0x11c2')][_0x58859a('0x1a69')][_0x58859a('0x577')]){_0x4e57d0['errors']=_0x3ba07d[_0x58859a('0x11c2')][_0x58859a('0x1a69')]||[{'message':_0x3ba07d[_0x58859a('0x174f')](),'type':_0x58859a('0x5c0')}];for(var _0x3ed160=0x0;_0x3ed160<_0x3ba07d[_0x58859a('0x11c2')][_0x58859a('0x1a69')][_0x58859a('0x577')];_0x3ed160++){_0x17da7d['error']({'title':_0x3ba07d[_0x58859a('0x11c2')][_0x58859a('0x1a69')][_0x3ed160][_0x58859a('0x7fa')],'msg':_0x3ba07d[_0x58859a('0x11c2')][_0x58859a('0x1a69')][_0x3ed160][_0x58859a('0x1224')]});}}else _0x17da7d[_0x58859a('0x2092')]({'title':_0x3ba07d[_0x58859a('0x209')]?_0x58859a('0x22d')+_0x3ba07d[_0x58859a('0x209')]+'\x20-\x20'+_0x3ba07d['statusText']:_0x58859a('0x5c0'),'msg':_0x3ba07d[_0x58859a('0x11c2')]?JSON[_0x58859a('0x25e')](_0x3ba07d[_0x58859a('0x11c2')][_0x58859a('0x1224')]):_0x3ba07d[_0x58859a('0x1224')]||_0x3ba07d['toString']()});});}function _0x20af1a(){var _0x313f3e=_0x4d56fe,_0x3a2eaf=angular['copy'](_0x4e57d0[_0x313f3e('0x1934')]);return _0x4e57d0['selectedVoicemailMessages']=[],_0x3a2eaf;}function _0x432478(_0x218cc4){var _0x28814a=_0x4d56fe,_0x44cae8=_0x4d4282['confirm']()[_0x28814a('0x4b4')](_0x28814a('0x1866'))[_0x28814a('0x276b')](''+_0x4e57d0[_0x28814a('0x1934')][_0x28814a('0x577')]+_0x28814a('0xd74')+_0x28814a('0x25e0'))[_0x28814a('0x7a7')](_0x28814a('0x2555'))['targetEvent'](_0x218cc4)['ok']('OK')['cancel'](_0x28814a('0x284b'));_0x4d4282[_0x28814a('0x853')](_0x44cae8)[_0x28814a('0x21ad')](function(){var _0x39f6dc=_0x28814a;_0x4e57d0[_0x39f6dc('0x1934')][_0x39f6dc('0x1a52')](function(_0x1af1fa){_0x19cf61(_0x1af1fa);}),_0x4e57d0[_0x39f6dc('0x1934')]=[];});}var _0x2e5661=!![],_0x5d3ddc=0x1;_0xeb3b49[_0x4d56fe('0x10e8')]('vm_dc.query.filter',function(_0x4b4db5,_0x1423bd){var _0x3c8429=_0x4d56fe;_0x2e5661?_0x12c22a(function(){_0x2e5661=![];}):(!_0x1423bd&&(_0x5d3ddc=_0x4e57d0[_0x3c8429('0x77')][_0x3c8429('0x2376')]),_0x4b4db5!==_0x1423bd&&(_0x4e57d0[_0x3c8429('0x77')][_0x3c8429('0x2376')]=0x1),!_0x4b4db5&&(_0x4e57d0[_0x3c8429('0x77')]['page']=_0x5d3ddc),_0x59fe1f());});}const _0x5dcf49=_0xc164a1;_0x260e06[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$document',_0x3877e3('0x13c1'),'license',_0x3877e3('0x21e'),'api',_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0xcbd'),_0x3877e3('0xab4')];function _0x260e06(_0x5ef754,_0x624775,_0x40e5be,_0x7c698,_0x1d5609,_0xe044b7,_0x298ac7,_0x10338d,_0x5b7136,_0x40ae37,_0x5ca06c,_0x2eb89f){var _0x40df77=_0x3877e3,_0x309080=this;_0x309080[_0x40df77('0x123f')]=_0x40ae37[_0x40df77('0x15ed')](),_0x309080[_0x40df77('0x2ff')]=_0xe044b7,_0x309080[_0x40df77('0x21e')]=_0x298ac7,_0x309080[_0x40df77('0x1432')]=_0x309080['setting'][_0x40df77('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x309080[_0x40df77('0x626')]=_0x624775['protocol']()+_0x40df77('0x22a9')+_0x624775[_0x40df77('0x1c01')](),_0x309080[_0x40df77('0xcbd')]=_0x5ca06c||_0x5ef754['params'][_0x40df77('0xcbd')]||{},_0x309080[_0x40df77('0xab4')]=_0x2eb89f&&_0x2eb89f[_0x40df77('0x205f')]==0x1?_0x2eb89f['rows'][0x0]:null,_0x309080[_0x40df77('0x5ed')]=_0x40ae37[_0x40df77('0x1778')](_0x309080[_0x40df77('0xab4')]?_0x309080[_0x40df77('0xab4')]['crudPermissions']:null),_0x309080[_0x40df77('0x126a')]={},_0x309080[_0x40df77('0x302')]=_0x5ef754[_0x40df77('0x171b')][_0x40df77('0x12e1')]||0x0,_0x309080[_0x40df77('0x95b')]=_0x5b7136[_0x40df77('0x231c')],_0x309080['gotoVoicemails']=_0x4dcf7c,_0x309080[_0x40df77('0x76')]=_0x1a5446,_0x40ae37[_0x40df77('0x21de')]('admin')?_0x10338d['voiceContext'][_0x40df77('0x595')]({'fields':_0x40df77('0x1aa8'),'sort':_0x40df77('0x19fe')})[_0x40df77('0x1376')]['then'](function(_0x3205b0){var _0x4ba7fe=_0x40df77;_0x309080[_0x4ba7fe('0x1089')]=_0x3205b0['rows']||[];})[_0x40df77('0x1c1d')](function(_0x5b09cd){var _0x4d9ba0=_0x40df77;_0x5b7136[_0x4d9ba0('0x2092')]({'title':_0x5b09cd[_0x4d9ba0('0x209')]?_0x4d9ba0('0x22d')+_0x5b09cd['status']+_0x4d9ba0('0xa99')+_0x5b09cd[_0x4d9ba0('0x1808')]:_0x4d9ba0('0x11b1'),'msg':_0x5b09cd[_0x4d9ba0('0x11c2')]?JSON['stringify'](_0x5b09cd[_0x4d9ba0('0x11c2')]):_0x5b09cd[_0x4d9ba0('0x174f')]()});}):_0x10338d['voiceContext']['get']({'fields':_0x40df77('0x1aa8'),'sort':_0x40df77('0x19fe')})['$promise'][_0x40df77('0x21ad')](function(_0x23f073){var _0x5e6ab4=_0x40df77;_0x309080[_0x5e6ab4('0x1089')]=_0x23f073[_0x5e6ab4('0x1b33')]||[];})[_0x40df77('0x21ad')](function(){var _0x1b0c38=_0x40df77;return _0x10338d[_0x1b0c38('0xab4')]['get']({'userProfileId':_0x309080['currentUser'][_0x1b0c38('0x1618')],'sectionId':0x195})[_0x1b0c38('0x1376')];})[_0x40df77('0x21ad')](function(_0x26f52e){var _0x47f22b=_0x40df77,_0x5836b9=_0x26f52e&&_0x26f52e[_0x47f22b('0x1b33')]?_0x26f52e[_0x47f22b('0x1b33')][0x0]:null;if(!_0x5836b9)return _0x10338d[_0x47f22b('0x608')][_0x47f22b('0x595')]({'fields':_0x47f22b('0x1aa8'),'sort':_0x47f22b('0x19fe'),'defaultEntry':0x1})[_0x47f22b('0x1376')][_0x47f22b('0x21ad')](function(_0x19c3a7){var _0x5da9c4=_0x47f22b;_0x309080[_0x5da9c4('0x1089')]=_0x19c3a7['rows']||[];});else{if(!_0x5836b9[_0x47f22b('0x80c')])return _0x10338d[_0x47f22b('0x185e')][_0x47f22b('0x595')]({'sectionId':_0x5836b9['id']})[_0x47f22b('0x1376')][_0x47f22b('0x21ad')](function(_0x3c1790){var _0x1b567f=_0x47f22b,_0x5d5b0d=_0x86640f()[_0x1b567f('0x26c3')](_0x3c1790[_0x1b567f('0x1b33')],function(_0x368949){var _0x34b145=_0x1b567f;return _0x86640f()['find'](_0x309080[_0x34b145('0x1089')],{'id':_0x368949['resourceId']});}),_0x5e84ba=null;_0x309080['voicemail']&&(_0x5e84ba=_0x86640f()[_0x1b567f('0x1d2e')](_0x309080[_0x1b567f('0x1089')],{'name':_0x309080['voicemail']['context']}));if(_0x5e84ba&&!_0x86640f()[_0x1b567f('0x2664')](_0x5d5b0d,['id',_0x5e84ba['id']])){var _0x3029e9=_0x86640f()[_0x1b567f('0x1d2e')](_0x309080[_0x1b567f('0x1089')],{'id':_0x5e84ba['id']});_0x3029e9[_0x1b567f('0xba')]=![],_0x5d5b0d['push'](_0x3029e9);}_0x309080['contexts']=_0x5d5b0d;});}})[_0x40df77('0x1c1d')](function(_0x52b515){var _0x59aea5=_0x40df77;_0x5b7136[_0x59aea5('0x2092')]({'title':_0x52b515[_0x59aea5('0x209')]?_0x59aea5('0x22d')+_0x52b515[_0x59aea5('0x209')]+_0x59aea5('0xa99')+_0x52b515[_0x59aea5('0x1808')]:'SYSTEM:GETcontexts','msg':_0x52b515[_0x59aea5('0x11c2')]?JSON[_0x59aea5('0x25e')](_0x52b515['data']):_0x52b515[_0x59aea5('0x174f')]()});});function _0x4dcf7c(){var _0x334996=_0x40df77;_0x5ef754['go'](_0x334996('0x4fb'),{},{'reload':_0x334996('0x4fb')});}function _0x1a5446(){var _0x1b582a=_0x40df77;_0x10338d[_0x1b582a('0x554')][_0x1b582a('0x5ef')]({'id':_0x309080[_0x1b582a('0xcbd')]['id']},_0x309080[_0x1b582a('0xcbd')])[_0x1b582a('0x1376')][_0x1b582a('0x21ad')](function(){var _0x560304=_0x1b582a;_0x5b7136[_0x560304('0xdb1')]({'title':_0x560304('0x163c'),'msg':_0x309080[_0x560304('0xcbd')][_0x560304('0x19fe')]?_0x309080[_0x560304('0xcbd')][_0x560304('0x19fe')]+_0x560304('0xa8d'):''});})[_0x1b582a('0x1c1d')](function(_0xb3c554){var _0x331294=_0x1b582a;_0x5b7136[_0x331294('0x2092')]({'title':_0xb3c554[_0x331294('0x209')]?_0x331294('0x22d')+_0xb3c554[_0x331294('0x209')]+'\x20-\x20'+_0xb3c554[_0x331294('0x1808')]:'SYSTEM:GETvoiceMail','msg':_0xb3c554[_0x331294('0x11c2')]?JSON['stringify'](_0xb3c554[_0x331294('0x11c2')]):_0xb3c554[_0x331294('0x174f')]()});});}}const _0x6dc6d0=_0x260e06,_0x496a80=_0x398308['p']+'src/js/modules/main/apps/voice/views/voicemails/create/dialog.html/dialog-[chunkhash].html';_0x136be5[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x13c1'),_0x3877e3('0x70c'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1908'),'Auth','license',_0x3877e3('0x21e')];function _0x136be5(_0x440cea,_0x1b8241,_0x4c656d,_0x439de5,_0x52d1c4,_0x45a0ac,_0x52a04f,_0x310e20,_0x381862,_0x231434,_0x34afe0,_0x8b1bf2,_0x385e8a,_0x15d9b4,_0x223b0d,_0x5088f2,_0x421895){var _0x4d7909=_0x3877e3,_0x375766=this;_0x375766[_0x4d7909('0x2ff')]=_0x5088f2,_0x375766[_0x4d7909('0x21e')]=_0x421895,_0x375766['currentUser']=_0x223b0d[_0x4d7909('0x15ed')](),_0x375766['voicemails']=_0x381862||{'count':0x0,'rows':[]},_0x375766[_0x4d7909('0x758')]=_0x231434,_0x375766[_0x4d7909('0xab4')]=_0x34afe0&&_0x34afe0[_0x4d7909('0x205f')]==0x1?_0x34afe0[_0x4d7909('0x1b33')][0x0]:null,_0x375766[_0x4d7909('0x5ed')]=_0x223b0d[_0x4d7909('0x1778')](_0x375766[_0x4d7909('0xab4')]?_0x375766[_0x4d7909('0xab4')][_0x4d7909('0x5ed')]:null),_0x375766[_0x4d7909('0x1897')]='voicemails',_0x375766[_0x4d7909('0x11dc')]='',_0x375766[_0x4d7909('0x18cf')]=null,_0x375766['selectedVoicemails']=[],_0x375766['query']={'fields':_0x4d7909('0xd0'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x375766[_0x4d7909('0x1d4f')]=_0x86640f()[_0x4d7909('0xcde')]([{'option':_0x4d7909('0x1fc6'),'value':_0x4d7909('0x53f')},{'option':'No','value':'\x27no\x27'}],function(_0x417143){var _0x12ee74=_0x4d7909;return _0x86640f()['replace'](_0x417143[_0x12ee74('0x2228')],new RegExp('\x27','g'),'');}),_0x375766[_0x4d7909('0xea2')]=_0x86640f()[_0x4d7909('0xcde')]([{'option':_0x4d7909('0x1fc6'),'value':_0x4d7909('0x53f')},{'option':'No','value':_0x4d7909('0x1223')}],function(_0x1aec5d){var _0x2e5562=_0x4d7909;return _0x86640f()['replace'](_0x1aec5d[_0x2e5562('0x2228')],new RegExp('\x27','g'),'');}),_0x375766[_0x4d7909('0x2206')]=_0x86640f()[_0x4d7909('0xcde')]([{'option':_0x4d7909('0x1fc6'),'value':'\x27yes\x27'},{'option':'No','value':_0x4d7909('0x1223')}],function(_0x198a5c){var _0x2aed56=_0x4d7909;return _0x86640f()[_0x2aed56('0x16e4')](_0x198a5c[_0x2aed56('0x2228')],new RegExp('\x27','g'),'');}),_0x375766[_0x4d7909('0x1c88')]=_0x3fff6d,_0x375766[_0x4d7909('0x2593')]=_0x162490,_0x375766[_0x4d7909('0xdb1')]=_0x14720c,_0x375766[_0x4d7909('0x248')]=_0x4df4d9,_0x375766['createOrEditVoicemail']=_0x5c734a,_0x375766[_0x4d7909('0x176a')]=_0x4035d3,_0x375766[_0x4d7909('0x21e9')]=_0x131c5a,_0x375766['deleteSelectedVoicemails']=_0x3fd623,_0x375766['deselectVoicemails']=_0xdc046d,_0x375766['selectAllVoicemails']=_0x3ee51b;function _0x3fff6d(_0x3c626e){var _0x2e0cae=_0x4d7909;_0x4c656d['go'](_0x2e0cae('0x1279'),{'id':_0x3c626e['id'],'voicemail':_0x3c626e,'crudPermissions':_0x375766[_0x2e0cae('0x5ed')]});}function _0x162490(_0x328fd6,_0x21e5cf){var _0x2cfe74=_0x4d7909,_0x347994=_0x52d1c4['confirm']()[_0x2cfe74('0x4b4')](_0x2cfe74('0x25b6')+_0x86640f()[_0x2cfe74('0x2159')](_0x2cfe74('0xcbd'))+'?')[_0x2cfe74('0x276b')](_0x2cfe74('0x622')+(_0x328fd6[_0x2cfe74('0x19fe')]||_0x2cfe74('0xcbd'))+_0x2cfe74('0x2135')+_0x2cfe74('0x25e0'))['ariaLabel']('delete\x20voicemail')[_0x2cfe74('0x1e6d')](_0x21e5cf)['ok']('OK')[_0x2cfe74('0x3b5')](_0x2cfe74('0x284b'));_0x52d1c4[_0x2cfe74('0x853')](_0x347994)[_0x2cfe74('0x21ad')](function(){_0x4035d3(_0x328fd6);},function(){var _0x12c752=_0x2cfe74;console[_0x12c752('0x6fb')](_0x12c752('0x284b'));});}var _0x1af068=!![],_0x4cb3a0=0x1;_0x440cea[_0x4d7909('0x10e8')](_0x4d7909('0x1948'),function(_0x4e3f91,_0x53c2d0){var _0x401317=_0x4d7909;_0x1af068?_0x52a04f(function(){_0x1af068=![];}):(!_0x53c2d0&&(_0x4cb3a0=_0x375766[_0x401317('0x77')][_0x401317('0x2376')]),_0x4e3f91!==_0x53c2d0&&(_0x375766[_0x401317('0x77')]['page']=0x1),!_0x4e3f91&&(_0x375766['query'][_0x401317('0x2376')]=_0x4cb3a0),_0x375766[_0x401317('0x248')]());});function _0x14720c(_0xe147c3){_0x375766['voicemails']=_0xe147c3||{'count':0x0,'rows':[]};}function _0x4df4d9(){var _0x38341d=_0x4d7909;_0x375766['query'][_0x38341d('0x15a5')]=(_0x375766[_0x38341d('0x77')]['page']-0x1)*_0x375766['query'][_0x38341d('0x1f4a')],_0x223b0d['hasRole'](_0x38341d('0x1bd8'))?_0x375766['promise']=_0x8b1bf2[_0x38341d('0x554')][_0x38341d('0x595')](_0x375766['query'],_0x14720c)['$promise']:(_0x375766['query']['id']=_0x375766[_0x38341d('0x758')]['id'],_0x375766[_0x38341d('0x77')][_0x38341d('0x26ad')]=_0x38341d('0x1390'),_0x375766['promise']=_0x8b1bf2[_0x38341d('0x758')][_0x38341d('0x321')](_0x375766[_0x38341d('0x77')],_0x14720c)[_0x38341d('0x1376')]);}function _0x5c734a(_0x400515,_0x90cbbd){var _0x27f381=_0x4d7909;_0x52d1c4[_0x27f381('0x853')]({'controller':_0x27f381('0x103d'),'controllerAs':'vm','templateUrl':_0x496a80,'parent':angular[_0x27f381('0x1676')](_0x45a0ac['body']),'targetEvent':_0x400515,'clickOutsideToClose':!![],'locals':{'voicemail':_0x90cbbd,'voicemails':_0x375766[_0x27f381('0x70c')][_0x27f381('0x1b33')],'license':_0x375766[_0x27f381('0x2ff')],'setting':_0x375766['setting'],'crudPermissions':_0x375766[_0x27f381('0x5ed')]}});}function _0x4035d3(_0x5de01a){var _0x529e90=_0x4d7909;_0x8b1bf2[_0x529e90('0x554')][_0x529e90('0x1164')]({'id':_0x5de01a['id']})[_0x529e90('0x1376')][_0x529e90('0x21ad')](function(){var _0x62f19=_0x529e90;_0x86640f()[_0x62f19('0x16a2')](_0x375766['voicemails'][_0x62f19('0x1b33')],{'id':_0x5de01a['id']}),_0x375766[_0x62f19('0x70c')][_0x62f19('0x205f')]-=0x1,!_0x375766[_0x62f19('0x70c')][_0x62f19('0x1b33')]['length']&&_0x375766[_0x62f19('0x248')](),_0x15d9b4[_0x62f19('0xdb1')]({'title':_0x86640f()[_0x62f19('0x2159')](_0x62f19('0x158f'))+_0x62f19('0xe64'),'msg':_0x5de01a[_0x62f19('0x19fe')]?_0x5de01a[_0x62f19('0x19fe')]+_0x62f19('0xb4a'):''});})[_0x529e90('0x1c1d')](function(_0x1b4828){var _0x52a64f=_0x529e90;if(_0x1b4828[_0x52a64f('0x11c2')]&&_0x1b4828[_0x52a64f('0x11c2')][_0x52a64f('0x1a69')]&&_0x1b4828[_0x52a64f('0x11c2')][_0x52a64f('0x1a69')][_0x52a64f('0x577')]){_0x375766[_0x52a64f('0x1a69')]=_0x1b4828['data'][_0x52a64f('0x1a69')]||[{'message':_0x1b4828[_0x52a64f('0x174f')](),'type':_0x52a64f('0x1e65')}];for(var _0x34afae=0x0;_0x34afae<_0x1b4828[_0x52a64f('0x11c2')][_0x52a64f('0x1a69')][_0x52a64f('0x577')];_0x34afae++){_0x15d9b4[_0x52a64f('0x2092')]({'title':_0x1b4828[_0x52a64f('0x11c2')][_0x52a64f('0x1a69')][_0x34afae]['type'],'msg':_0x1b4828[_0x52a64f('0x11c2')][_0x52a64f('0x1a69')][_0x34afae][_0x52a64f('0x1224')]});}}else _0x15d9b4[_0x52a64f('0x2092')]({'title':_0x1b4828['status']?_0x52a64f('0x22d')+_0x1b4828['status']+_0x52a64f('0xa99')+_0x1b4828[_0x52a64f('0x1808')]:_0x52a64f('0x1e65'),'msg':_0x1b4828[_0x52a64f('0x11c2')]?JSON[_0x52a64f('0x25e')](_0x1b4828['data'][_0x52a64f('0x1224')]):_0x1b4828[_0x52a64f('0x1224')]||_0x1b4828[_0x52a64f('0x174f')]()});});}function _0x131c5a(){var _0x89fc2c=_0x4d7909,_0x4b3a50=angular[_0x89fc2c('0xd75')](_0x375766['selectedVoicemails']);return _0x375766[_0x89fc2c('0xc93')]=[],_0x4b3a50;}function _0x3fd623(_0x4411b8){var _0x2f7b80=_0x4d7909,_0x233096=_0x52d1c4[_0x2f7b80('0xa33')]()[_0x2f7b80('0x4b4')](_0x2f7b80('0x1395'))[_0x2f7b80('0x276b')](_0x2f7b80('0x622')+_0x375766[_0x2f7b80('0xc93')][_0x2f7b80('0x577')]+_0x2f7b80('0xd74')+_0x2f7b80('0x25e0'))['ariaLabel']('delete\x20Voicemails')[_0x2f7b80('0x1e6d')](_0x4411b8)['ok']('OK')['cancel'](_0x2f7b80('0x284b'));_0x52d1c4['show'](_0x233096)[_0x2f7b80('0x21ad')](function(){var _0x2daae7=_0x2f7b80;_0x375766[_0x2daae7('0xc93')][_0x2daae7('0x1a52')](function(_0x350707){_0x4035d3(_0x350707);}),_0x375766[_0x2daae7('0xc93')]=[];});}function _0xdc046d(){var _0x2937ed=_0x4d7909;_0x375766[_0x2937ed('0xc93')]=[];}function _0x3ee51b(){var _0x107cf1=_0x4d7909;_0x375766[_0x107cf1('0xc93')]=_0x375766[_0x107cf1('0x70c')][_0x107cf1('0x1b33')];}}const _0x2e8050=_0x136be5;_0x441838[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$state','$location',_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x279c'),_0x3877e3('0x19b3'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),'crudPermissions'];function _0x441838(_0x1c531b,_0x5845ba,_0x1da4d3,_0x24f626,_0x533ff3,_0x33ee27,_0x1ee275,_0x46bda9,_0x59ec55,_0x426f49,_0xa36ff8,_0x29515f,_0x1d655b,_0x5c2fbd){var _0x2dbd60=_0x3877e3,_0x186090=this;_0x186090[_0x2dbd60('0x123f')]=_0xa36ff8[_0x2dbd60('0x15ed')](),_0x186090['errors']=[],_0x186090[_0x2dbd60('0x21e')]=_0x1d655b,_0x186090[_0x2dbd60('0x2ff')]=_0x29515f,_0x186090['crudPermissions']=_0x5c2fbd,_0x186090[_0x2dbd60('0x126a')]={},_0x186090['passwordPattern']=_0x186090[_0x2dbd60('0x21e')]&&_0x186090[_0x2dbd60('0x21e')][_0x2dbd60('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x186090[_0x2dbd60('0x4b4')]=_0x2dbd60('0x7e8'),_0x186090['voicePrefix']=angular['copy'](_0x59ec55),_0x186090['voicePrefixes']=_0x46bda9,_0x186090[_0x2dbd60('0x131f')]=![];!_0x186090['voicePrefix']&&(_0x186090['voicePrefix']={},_0x186090[_0x2dbd60('0x4b4')]=_0x2dbd60('0x1424'),_0x186090[_0x2dbd60('0x131f')]=!![]);_0x186090[_0x2dbd60('0x1db6')]=_0x391a99,_0x186090[_0x2dbd60('0x18f0')]=_0x2c4ed9,_0x186090[_0x2dbd60('0x1a6c')]=_0x22b063,_0x186090[_0x2dbd60('0x279')]=_0x3b3c0a,_0x186090[_0x2dbd60('0x167')]=_0x226c69,_0xa36ff8[_0x2dbd60('0x21de')](_0x2dbd60('0x1bd8'))?_0x426f49['voiceExtension'][_0x2dbd60('0x595')]({'fields':_0x2dbd60('0x539'),'type':'outbound','VoiceExtensionId':_0x2dbd60('0x27a'),'nolimit':_0x2dbd60('0x19bd')})[_0x2dbd60('0x1376')][_0x2dbd60('0x21ad')](function(_0x504c46){var _0x5ba470=_0x2dbd60;_0x186090['outboundRoutes']=_0x504c46[_0x5ba470('0x1b33')]||[];})['catch'](function(_0x1d6e23){var _0x587c95=_0x2dbd60;_0x1ee275[_0x587c95('0x2092')]({'title':_0x1d6e23[_0x587c95('0x209')]?_0x587c95('0x22d')+_0x1d6e23[_0x587c95('0x209')]+'\x20-\x20'+_0x1d6e23[_0x587c95('0x1808')]:_0x587c95('0x2486'),'msg':_0x1d6e23[_0x587c95('0x11c2')]?JSON[_0x587c95('0x25e')](_0x1d6e23[_0x587c95('0x11c2')]):_0x1d6e23[_0x587c95('0x174f')]()});}):_0x426f49[_0x2dbd60('0x1b0c')][_0x2dbd60('0x595')]({'fields':_0x2dbd60('0x539'),'type':_0x2dbd60('0x2300'),'VoiceExtensionId':_0x2dbd60('0x27a'),'nolimit':_0x2dbd60('0x19bd')})['$promise'][_0x2dbd60('0x21ad')](function(_0x58abea){var _0x4ca594=_0x2dbd60;_0x186090[_0x4ca594('0x31')]=_0x58abea[_0x4ca594('0x1b33')]||[];})[_0x2dbd60('0x21ad')](function(){var _0x1dbb07=_0x2dbd60;return _0x426f49[_0x1dbb07('0xab4')][_0x1dbb07('0x595')]({'userProfileId':_0x186090[_0x1dbb07('0x123f')][_0x1dbb07('0x1618')],'sectionId':0x193})[_0x1dbb07('0x1376')];})[_0x2dbd60('0x21ad')](function(_0x14a077){var _0x3ee75f=_0x2dbd60,_0x5318e5=_0x14a077&&_0x14a077[_0x3ee75f('0x1b33')]?_0x14a077[_0x3ee75f('0x1b33')][0x0]:null;if(!_0x5318e5){var _0x440a25=[],_0x163c1f=null;_0x186090['voicePrefix']&&(_0x163c1f=_0x86640f()['find'](_0x186090[_0x3ee75f('0x31')],{'id':Number(_0x186090[_0x3ee75f('0x19b3')][_0x3ee75f('0x772')])}));for(var _0x35e6da=0x0;_0x35e6da<_0x186090[_0x3ee75f('0x31')][_0x3ee75f('0x577')];_0x35e6da++){_0x163c1f&&_0x186090[_0x3ee75f('0x31')][_0x35e6da]['id']===_0x163c1f['id']&&(_0x186090[_0x3ee75f('0x31')][_0x35e6da][_0x3ee75f('0xba')]=![],_0x440a25['push'](_0x186090[_0x3ee75f('0x31')][_0x35e6da]));}_0x186090[_0x3ee75f('0x31')]=_0x440a25;}else{if(!_0x5318e5[_0x3ee75f('0x80c')])return _0x426f49['userProfileResource'][_0x3ee75f('0x595')]({'sectionId':_0x5318e5['id']})[_0x3ee75f('0x1376')][_0x3ee75f('0x21ad')](function(_0x978ed1){var _0x21689e=_0x3ee75f,_0x1a0337=_0x86640f()[_0x21689e('0x26c3')](_0x978ed1['rows'],function(_0x1c9a92){var _0x1d4ee7=_0x21689e;return _0x86640f()[_0x1d4ee7('0x1d2e')](_0x186090[_0x1d4ee7('0x31')],{'id':_0x1c9a92['resourceId']});}),_0x261372=null;_0x186090[_0x21689e('0x19b3')]&&(_0x261372=_0x86640f()[_0x21689e('0x1d2e')](_0x186090['outboundRoutes'],{'id':Number(_0x186090[_0x21689e('0x19b3')][_0x21689e('0x772')])}));if(_0x261372&&!_0x86640f()[_0x21689e('0x2664')](_0x1a0337,['id',_0x261372['id']])){var _0x2f6089=_0x86640f()[_0x21689e('0x1d2e')](_0x186090[_0x21689e('0x31')],{'id':_0x261372['id']});_0x2f6089[_0x21689e('0xba')]=![],_0x1a0337['push'](_0x2f6089);}_0x186090['outboundRoutes']=_0x1a0337;});}})[_0x2dbd60('0x1c1d')](function(_0x202900){var _0xd41172=_0x2dbd60;_0x1ee275[_0xd41172('0x2092')]({'title':_0x202900[_0xd41172('0x209')]?_0xd41172('0x22d')+_0x202900[_0xd41172('0x209')]+_0xd41172('0xa99')+_0x202900['statusText']:_0xd41172('0x1f2a'),'msg':_0x202900[_0xd41172('0x11c2')]?JSON[_0xd41172('0x25e')](_0x202900[_0xd41172('0x11c2')]):_0x202900['toString']()});});function _0x391a99(){var _0x428462=_0x2dbd60;_0x186090[_0x428462('0x1a69')]=[],_0x426f49[_0x428462('0x19b3')]['save'](_0x186090[_0x428462('0x19b3')])[_0x428462('0x1376')][_0x428462('0x21ad')](function(_0x5e3d69){var _0x4a4d46=_0x428462;_0x186090[_0x4a4d46('0x279c')][_0x4a4d46('0xd0c')](_0x5e3d69['toJSON']()),_0x1ee275['success']({'title':_0x4a4d46('0x18bd'),'msg':_0x186090['voicePrefix'][_0x4a4d46('0x19fe')]?_0x186090[_0x4a4d46('0x19b3')]['name']+_0x4a4d46('0x1694'):''}),_0x226c69(_0x5e3d69);})['catch'](function(_0x9bfd45){var _0x233333=_0x428462;if(_0x9bfd45[_0x233333('0x11c2')]&&_0x9bfd45[_0x233333('0x11c2')][_0x233333('0x1a69')]&&_0x9bfd45['data'][_0x233333('0x1a69')][_0x233333('0x577')]){_0x186090[_0x233333('0x1a69')]=_0x9bfd45[_0x233333('0x11c2')][_0x233333('0x1a69')]||[{'message':_0x9bfd45['toString'](),'type':_0x233333('0xb0a')}];for(var _0x161b00=0x0;_0x161b00<_0x9bfd45[_0x233333('0x11c2')][_0x233333('0x1a69')][_0x233333('0x577')];_0x161b00+=0x1){_0x1ee275[_0x233333('0x2092')]({'title':_0x9bfd45[_0x233333('0x11c2')][_0x233333('0x1a69')][_0x161b00][_0x233333('0x7fa')],'msg':_0x9bfd45[_0x233333('0x11c2')][_0x233333('0x1a69')][_0x161b00]['message']});}}else _0x1ee275[_0x233333('0x2092')]({'title':_0x9bfd45[_0x233333('0x209')]?_0x233333('0x22d')+_0x9bfd45[_0x233333('0x209')]+'\x20-\x20'+_0x9bfd45[_0x233333('0x1808')]:_0x233333('0xb0a'),'msg':_0x9bfd45[_0x233333('0x11c2')]?JSON[_0x233333('0x25e')](_0x9bfd45[_0x233333('0x11c2')]['message']):_0x9bfd45[_0x233333('0x174f')]()});});}function _0x2c4ed9(){var _0x1f2a70=_0x2dbd60;_0x186090[_0x1f2a70('0x1a69')]=[],_0x426f49[_0x1f2a70('0x19b3')][_0x1f2a70('0x5ef')]({'id':_0x186090[_0x1f2a70('0x19b3')]['id']},_0x186090['voicePrefix'])[_0x1f2a70('0x1376')][_0x1f2a70('0x21ad')](function(_0x28e223){var _0x2a7c72=_0x1f2a70,_0x387e4c=_0x86640f()[_0x2a7c72('0x1d2e')](_0x186090[_0x2a7c72('0x279c')],{'id':_0x28e223['id']});_0x387e4c&&_0x86640f()[_0x2a7c72('0xd0e')](_0x387e4c,_0x86640f()[_0x2a7c72('0xc50')](_0x28e223[_0x2a7c72('0x3bc')](),_0x86640f()[_0x2a7c72('0x223b')](_0x387e4c))),_0x1ee275['success']({'title':_0x2a7c72('0x25e9'),'msg':_0x186090[_0x2a7c72('0x19b3')]['name']?_0x186090[_0x2a7c72('0x19b3')]['name']+_0x2a7c72('0x2249'):''}),_0x226c69(_0x28e223);})[_0x1f2a70('0x1c1d')](function(_0x128868){var _0x1bc32b=_0x1f2a70;if(_0x128868[_0x1bc32b('0x11c2')]&&_0x128868[_0x1bc32b('0x11c2')][_0x1bc32b('0x1a69')]&&_0x128868[_0x1bc32b('0x11c2')][_0x1bc32b('0x1a69')]['length']){_0x186090[_0x1bc32b('0x1a69')]=_0x128868[_0x1bc32b('0x11c2')][_0x1bc32b('0x1a69')]||[{'message':_0x128868['toString'](),'type':_0x1bc32b('0x1ae1')}];for(var _0x2b8760=0x0;_0x2b8760<_0x128868['data'][_0x1bc32b('0x1a69')]['length'];_0x2b8760++){_0x1ee275[_0x1bc32b('0x2092')]({'title':_0x128868[_0x1bc32b('0x11c2')][_0x1bc32b('0x1a69')][_0x2b8760]['type'],'msg':_0x128868[_0x1bc32b('0x11c2')]['errors'][_0x2b8760][_0x1bc32b('0x1224')]});}}else _0x1ee275[_0x1bc32b('0x2092')]({'title':_0x128868[_0x1bc32b('0x209')]?_0x1bc32b('0x22d')+_0x128868['status']+'\x20-\x20'+_0x128868[_0x1bc32b('0x1808')]:_0x1bc32b('0x1ae1'),'msg':_0x128868['data']?JSON['stringify'](_0x128868[_0x1bc32b('0x11c2')][_0x1bc32b('0x1224')]):_0x128868[_0x1bc32b('0x174f')]()});});}function _0x22b063(_0xa0a3bc){var _0x1a296c=_0x2dbd60;_0x186090[_0x1a296c('0x1a69')]=[];var _0x18caf5=_0x24f626['confirm']()[_0x1a296c('0x4b4')]('Are\x20you\x20sure?')[_0x1a296c('0x13fb')](_0x1a296c('0x142'))['ariaLabel'](_0x1a296c('0xa05'))['ok'](_0x1a296c('0xbfd'))[_0x1a296c('0x3b5')](_0x1a296c('0x1f40'))['targetEvent'](_0xa0a3bc);_0x24f626[_0x1a296c('0x853')](_0x18caf5)[_0x1a296c('0x21ad')](function(){var _0x48176b=_0x1a296c;_0x426f49[_0x48176b('0x19b3')][_0x48176b('0x1164')]({'id':_0x186090['voicePrefix']['id']})[_0x48176b('0x1376')][_0x48176b('0x21ad')](function(){var _0x19e005=_0x48176b;_0x86640f()[_0x19e005('0x16a2')](_0x186090[_0x19e005('0x279c')],{'id':_0x186090[_0x19e005('0x19b3')]['id']}),_0x1ee275[_0x19e005('0xdb1')]({'title':'voicePrefix\x20properly\x20deleted!','msg':(_0x186090[_0x19e005('0x19b3')][_0x19e005('0x19fe')]||_0x19e005('0x19b3'))+_0x19e005('0xb4a')}),_0x226c69(_0x186090[_0x19e005('0x19b3')]);})[_0x48176b('0x1c1d')](function(_0x5bf35b){var _0xcd606b=_0x48176b;if(_0x5bf35b['data']&&_0x5bf35b[_0xcd606b('0x11c2')][_0xcd606b('0x1a69')]&&_0x5bf35b[_0xcd606b('0x11c2')][_0xcd606b('0x1a69')]['length']){_0x186090[_0xcd606b('0x1a69')]=_0x5bf35b[_0xcd606b('0x11c2')]['errors']||[{'message':_0x5bf35b[_0xcd606b('0x174f')](),'type':'api.voicePrefix.delete'}];for(var _0x40a5ec=0x0;_0x40a5ec<_0x5bf35b[_0xcd606b('0x11c2')][_0xcd606b('0x1a69')][_0xcd606b('0x577')];_0x40a5ec++){_0x1ee275['error']({'title':_0x5bf35b[_0xcd606b('0x11c2')]['errors'][_0x40a5ec]['type'],'msg':_0x5bf35b[_0xcd606b('0x11c2')]['errors'][_0x40a5ec]['message']});}}else _0x1ee275[_0xcd606b('0x2092')]({'title':_0x5bf35b['status']?_0xcd606b('0x22d')+_0x5bf35b[_0xcd606b('0x209')]+'\x20-\x20'+_0x5bf35b[_0xcd606b('0x1808')]:_0xcd606b('0x1c5'),'msg':_0x5bf35b[_0xcd606b('0x11c2')]?JSON[_0xcd606b('0x25e')](_0x5bf35b[_0xcd606b('0x11c2')][_0xcd606b('0x1224')]):_0x5bf35b[_0xcd606b('0x1224')]||_0x5bf35b['toString']()});});},function(){});}function _0x3b3c0a(_0x238a30){return _0x238a30===null?undefined:new Date(_0x238a30);}function _0x226c69(_0x47d4ee){var _0x53c0a1=_0x2dbd60;_0x24f626[_0x53c0a1('0x1c24')](_0x47d4ee);}}const _0x28caca=_0x441838;_0x24e88b[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x19b3'),_0x3877e3('0x279c'),_0x3877e3('0x116a'),'$translate',_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x24e88b(_0x13188b,_0x284286,_0x2f2c68,_0x2d48a5,_0x2d9de3,_0xcd181b,_0x2e576d,_0x21fb4d,_0x2e8052,_0x3c3e67){var _0x432d97=_0x3877e3,_0xe7a684=this;_0xe7a684[_0x432d97('0x123f')]=_0x2e8052[_0x432d97('0x15ed')](),_0xe7a684[_0x432d97('0x19b3')]=_0x2d9de3,_0xe7a684['crudPermissions']=_0x3c3e67,_0xe7a684[_0x432d97('0x116a')]=_0x2e576d,_0xe7a684[_0x432d97('0x1b9a')]=[],_0xe7a684[_0x432d97('0x1e09')]=[],_0xe7a684[_0x432d97('0x2629')]=[],_0xe7a684['startingAllowedItems']=[],_0xe7a684[_0x432d97('0x2584')]=[],_0xe7a684['pendingChanges']=![],_0xe7a684[_0x432d97('0x1081')]=_0x1a54c3,_0xe7a684[_0x432d97('0x265b')]=_0x50e10d,_0xe7a684[_0x432d97('0x167')]=_0x17ae47,_0xe7a684[_0x432d97('0x909')]={'readOnly':!_0xe7a684[_0x432d97('0x5ed')]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x432d97('0x19fe'),'line1':_0x432d97('0x20f5'),'line2':['name',_0x432d97('0x201f')],'line3':'','labelAll':_0x21fb4d[_0x432d97('0x183e')](_0x432d97('0x112a')),'labelSelected':_0x21fb4d[_0x432d97('0x183e')]('VOICE.SELECTED_AGENTS'),'transferCallback':function _0xb76be0(){var _0x55d0b2=_0x432d97,_0x44765c=_0x86640f()[_0x55d0b2('0x1473')](_0xe7a684[_0x55d0b2('0x2584')],_0xe7a684[_0x55d0b2('0x2629')],'id');_0xe7a684[_0x55d0b2('0x1bb9')]=_0x86640f()[_0x55d0b2('0x23aa')](_0x44765c)?![]:!![];}};function _0x1a54c3(){var _0x187b6d=_0x432d97;return _0x2e8052['hasRole'](_0x187b6d('0x1bd8'))?_0x5d1946()[_0x187b6d('0x1c1d')](function(_0x2fffc3){var _0x3b8493=_0x187b6d;_0x2f2c68['error']({'title':_0x2fffc3[_0x3b8493('0x209')]?_0x3b8493('0x22d')+_0x2fffc3['status']+_0x3b8493('0xa99')+_0x2fffc3['statusText']:_0x3b8493('0x1381'),'msg':_0x2fffc3['status']?JSON['stringify'](_0x2fffc3['data']):_0x2fffc3[_0x3b8493('0x174f')]()});}):_0x390fd7()[_0x187b6d('0x21ad')](function(_0x40478d){return _0xe7a684['section']=_0x40478d,_0x5d1946();})['catch'](function(_0x4d2e6c){var _0x3e5d70=_0x187b6d;_0x2f2c68[_0x3e5d70('0x2092')]({'title':_0x4d2e6c[_0x3e5d70('0x209')]?_0x3e5d70('0x22d')+_0x4d2e6c['status']+_0x3e5d70('0xa99')+_0x4d2e6c[_0x3e5d70('0x1808')]:_0x3e5d70('0x1381'),'msg':_0x4d2e6c[_0x3e5d70('0x209')]?JSON[_0x3e5d70('0x25e')](_0x4d2e6c[_0x3e5d70('0x11c2')]):_0x4d2e6c[_0x3e5d70('0x174f')]()});});}function _0x390fd7(){return _0x284286(function(_0x3f31f7,_0x473c64){var _0x5289d9=a0_0x2e7f;_0x2d48a5[_0x5289d9('0xab4')][_0x5289d9('0x595')]({'userProfileId':_0xe7a684[_0x5289d9('0x123f')][_0x5289d9('0x1618')],'name':'Agents'})[_0x5289d9('0x1376')]['then'](function(_0x145a38){var _0x336d11=_0x5289d9,_0x2e9f6a=_0x145a38&&_0x145a38[_0x336d11('0x1b33')]?_0x145a38[_0x336d11('0x1b33')][0x0]:null;_0x3f31f7(_0x2e9f6a);})['catch'](function(_0x480f1a){_0x473c64(_0x480f1a);});});}function _0x5d1946(){return _0x284286(function(_0x3ef037,_0x35b0be){var _0x4990ca=a0_0x2e7f;return _0x40c155()[_0x4990ca('0x21ad')](function(_0x5a0c38){var _0x261dab=_0x4990ca;return _0xe7a684[_0x261dab('0x1b9a')]=_0x5a0c38[_0x261dab('0x1b33')]?_0x5a0c38['rows']:[],_0x2e8052[_0x261dab('0x21de')](_0x261dab('0x1bd8'))?_0x5a0c38:_0xe7a684['section']?_0xe7a684[_0x261dab('0x26ad')][_0x261dab('0x80c')]?_0x5a0c38:_0x46c5e4():null;})['then'](function(_0x3152ed){var _0x12e5d2=_0x4990ca,_0x505ebc=_0x3152ed&&_0x3152ed['rows']?_0x3152ed[_0x12e5d2('0x1b33')]:[];return _0xe7a684[_0x12e5d2('0x1e09')]=_0x86640f()[_0x12e5d2('0x26c3')](_0x505ebc,function(_0x296592){var _0x3f0ff9=_0x12e5d2;return _0x86640f()['find'](_0xe7a684[_0x3f0ff9('0x1b9a')],{'id':_0x2e8052['hasRole'](_0x3f0ff9('0x1bd8'))||_0xe7a684[_0x3f0ff9('0x26ad')]['autoAssociation']?_0x296592['id']:_0x296592['resourceId']});}),_0xe7a684[_0x12e5d2('0x91b')]=angular['copy'](_0xe7a684[_0x12e5d2('0x1e09')]),_0xe7a684['items'][_0x12e5d2('0x1a52')](function(_0x5405ed){var _0x3e4632=_0x12e5d2,_0x5adce0=_0x86640f()[_0x3e4632('0x1d2e')](_0xe7a684['allowedItems'],{'id':_0x5405ed['id']});_0x2e8052[_0x3e4632('0x21de')](_0x3e4632('0x1bd8'))?_0x5405ed[_0x3e4632('0x118b')]=!![]:_0x5405ed['isValid']=typeof _0x5adce0!==_0x3e4632('0xddc')?!![]:![];}),_0x57e30b();})[_0x4990ca('0x21ad')](function(_0x3e0332){var _0x5eba8b=_0x4990ca,_0x3876a2=_0x3e0332&&_0x3e0332[_0x5eba8b('0x1b33')]?_0x3e0332[_0x5eba8b('0x1b33')]:[];_0xe7a684[_0x5eba8b('0x2629')]=_0x86640f()[_0x5eba8b('0x26c3')](_0x3876a2,function(_0x2df2e2){var _0x226eb3=_0x5eba8b,_0x5d4a43=_0x86640f()[_0x226eb3('0x1d2e')](_0xe7a684['items'],{'id':_0x2df2e2['id']});return _0x5d4a43[_0x226eb3('0x1195')]=_0x2df2e2[_0x226eb3('0x1ade')]?_0x226eb3('0x5c2')+_0x2df2e2[_0x226eb3('0x1ade')][_0x226eb3('0x1195')]:'',_0x5d4a43[_0x226eb3('0x201f')]=typeof _0x2df2e2[_0x226eb3('0x201f')]!==_0x226eb3('0xddc')?'<'+_0x2df2e2[_0x226eb3('0x201f')]+'>':'',_0x5d4a43;}),_0xe7a684[_0x5eba8b('0x2584')]=angular[_0x5eba8b('0xd75')](_0xe7a684[_0x5eba8b('0x2629')]),_0xe7a684[_0x5eba8b('0x909')][_0x5eba8b('0x2629')]=_0xe7a684[_0x5eba8b('0x2629')],_0xe7a684[_0x5eba8b('0x909')][_0x5eba8b('0x1b9a')]=_0x86640f()[_0x5eba8b('0x1eab')](_0xe7a684[_0x5eba8b('0x1e09')],_0xe7a684[_0x5eba8b('0x909')]['selectedItems'],'id'),_0x3ef037();})[_0x4990ca('0x1c1d')](function(_0xcb25c6){_0x35b0be(_0xcb25c6);});});}function _0x46c5e4(){return _0x284286(function(_0x52d719,_0xafc40c){var _0x48865d=a0_0x2e7f;return _0x2d48a5[_0x48865d('0x185e')][_0x48865d('0x595')]({'sectionId':_0xe7a684[_0x48865d('0x26ad')]['id'],'nolimit':!![]})[_0x48865d('0x1376')][_0x48865d('0x21ad')](function(_0x176885){_0x52d719(_0x176885);})[_0x48865d('0x1c1d')](function(_0x24c733){_0xafc40c(_0x24c733);});});}function _0x57e30b(){return _0x284286(function(_0x49cf63,_0x12d32b){var _0x4e9c38=a0_0x2e7f;return _0x2d48a5[_0x4e9c38('0x19b3')][_0x4e9c38('0x13ad')]({'id':_0xe7a684[_0x4e9c38('0x19b3')]['id'],'fields':_0x4e9c38('0x1eea'),'nolimit':!![],'role':'agent'})[_0x4e9c38('0x1376')]['then'](function(_0x1e1491){_0x49cf63(_0x1e1491);})[_0x4e9c38('0x1c1d')](function(_0x59849c){_0x12d32b(_0x59849c);});});}function _0x40c155(){return _0x284286(function(_0x4b684b,_0x5f3785){var _0x30bcc4=a0_0x2e7f;return _0x2d48a5['user'][_0x30bcc4('0x595')]({'fields':_0x30bcc4('0x1eea'),'nolimit':!![],'role':_0x30bcc4('0x2402')})[_0x30bcc4('0x1376')][_0x30bcc4('0x21ad')](function(_0x3bd9f5){_0x4b684b(_0x3bd9f5);})[_0x30bcc4('0x1c1d')](function(_0x651487){_0x5f3785(_0x651487);});});}function _0x344703(_0x3c4737){return _0x284286(function(_0x115b76,_0x13afbb){var _0x260a19=a0_0x2e7f;_0x86640f()[_0x260a19('0x23aa')](_0x3c4737)?_0x115b76():_0x2d48a5[_0x260a19('0x19b3')][_0x260a19('0x1116')]({'id':_0xe7a684['voicePrefix']['id'],'ids':_0x86640f()[_0x260a19('0x26c3')](_0x3c4737,'id')})['$promise'][_0x260a19('0x21ad')](function(){_0x115b76();})[_0x260a19('0x1c1d')](function(_0x44a43b){_0x13afbb(_0x44a43b);});});}function _0x1975c8(_0x4fd4ac){return _0x284286(function(_0x42a6c6,_0x47d9c0){var _0x345d52=a0_0x2e7f;_0x86640f()[_0x345d52('0x23aa')](_0x4fd4ac)?_0x42a6c6():_0x2d48a5[_0x345d52('0x19b3')][_0x345d52('0x59e')]({'id':_0xe7a684[_0x345d52('0x19b3')]['id'],'ids':_0x86640f()[_0x345d52('0x26c3')](_0x4fd4ac,'id')})[_0x345d52('0x1376')][_0x345d52('0x21ad')](function(){_0x42a6c6();})[_0x345d52('0x1c1d')](function(_0x23b108){_0x47d9c0(_0x23b108);});});}function _0x50e10d(){var _0x4b2714=_0x432d97,_0x30c717=_0x86640f()['differenceBy'](_0xe7a684[_0x4b2714('0x2584')],_0xe7a684[_0x4b2714('0x2629')],'id'),_0x292835=_0x86640f()['differenceBy'](_0xe7a684[_0x4b2714('0x2629')],_0xe7a684[_0x4b2714('0x2584')],'id');return _0x1975c8(_0x30c717)[_0x4b2714('0x21ad')](function(){return _0x344703(_0x292835);})[_0x4b2714('0x21ad')](function(){var _0x1bfc7b=_0x4b2714;_0xe7a684[_0x1bfc7b('0x1bb9')]=![],_0xe7a684[_0x1bfc7b('0x91b')]=angular[_0x1bfc7b('0xd75')](_0xe7a684[_0x1bfc7b('0x1e09')]),_0xe7a684[_0x1bfc7b('0x2584')]=angular[_0x1bfc7b('0xd75')](_0xe7a684[_0x1bfc7b('0x2629')]),_0x2f2c68[_0x1bfc7b('0xdb1')]({'title':'SUCCESS','msg':_0x1bfc7b('0x2239')});})[_0x4b2714('0x1c1d')](function(_0x1aa3ad){var _0x3ad040=_0x4b2714;_0x2f2c68['error']({'title':_0x1aa3ad[_0x3ad040('0x209')]?_0x3ad040('0x22d')+_0x1aa3ad[_0x3ad040('0x209')]+_0x3ad040('0xa99')+_0x1aa3ad[_0x3ad040('0x1808')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x1aa3ad[_0x3ad040('0x209')]?JSON[_0x3ad040('0x25e')](_0x1aa3ad['data']):_0x1aa3ad['toString']()});});}function _0x17ae47(){var _0x310e03=_0x432d97;_0x13188b[_0x310e03('0x1c24')]();}}const _0x18ee12=_0x24e88b,_0x2bc01a=_0x398308['p']+_0x3877e3('0x51b'),_0x408bf6=_0x398308['p']+_0x3877e3('0x280d');_0x5b4eb0[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$window',_0x3877e3('0xa9f'),_0x3877e3('0x2828'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x13c1'),'voicePrefixes',_0x3877e3('0x758'),'userProfileSection',_0x3877e3('0xccd'),_0x3877e3('0x12d9'),'toasty','Auth',_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x5b4eb0(_0x3c9084,_0x3d3bc0,_0x4de392,_0x490e83,_0x296c40,_0x444904,_0x40efe1,_0x5c3080,_0x1483f2,_0x35beb3,_0xc02011,_0xd4739d,_0x1da897,_0x5dd236,_0x4dc93e,_0x2ea1f9,_0x3a98b0){var _0x37bec1=_0x3877e3,_0x37c4f7=this;_0x37c4f7[_0x37bec1('0x2ff')]=_0x2ea1f9,_0x37c4f7[_0x37bec1('0x21e')]=_0x3a98b0,_0x37c4f7[_0x37bec1('0x123f')]=_0x4dc93e[_0x37bec1('0x15ed')](),_0x37c4f7['voicePrefixes']=_0x1483f2||{'count':0x0,'rows':[]},_0x37c4f7[_0x37bec1('0x758')]=_0x35beb3,_0x37c4f7[_0x37bec1('0xab4')]=_0xc02011&&_0xc02011['count']==0x1?_0xc02011[_0x37bec1('0x1b33')][0x0]:null,_0x37c4f7[_0x37bec1('0x5ed')]=_0x4dc93e['parseCrudPermissions'](_0x37c4f7['userProfileSection']?_0x37c4f7[_0x37bec1('0xab4')]['crudPermissions']:null),_0x37c4f7[_0x37bec1('0x1897')]=_0x37bec1('0x279c'),_0x37c4f7[_0x37bec1('0x11dc')]='',_0x37c4f7[_0x37bec1('0x18cf')]=null,_0x37c4f7[_0x37bec1('0x14d2')]=[],_0x37c4f7['query']={'fields':'createdAt,updatedAt,id,name,VoiceExtensionId,callerIdAll,description','limit':0xa,'page':0x1},_0x37c4f7[_0x37bec1('0x1a97')]=_0x4412f4,_0x37c4f7[_0x37bec1('0x1297')]=_0x5ac4af,_0x37c4f7[_0x37bec1('0x2593')]=_0x12f045,_0x37c4f7['success']=_0x46ffc6,_0x37c4f7['getVoicePrefixes']=_0x4f5211,_0x37c4f7[_0x37bec1('0x1daf')]=_0x4a243f,_0x37c4f7['deletevoicePrefix']=_0x1829ad,_0x37c4f7[_0x37bec1('0x1e8f')]=_0x5dfc0a,_0x37c4f7[_0x37bec1('0x1c6d')]=_0x40c76c,_0x37c4f7[_0x37bec1('0x221e')]=_0x4dac04,_0x37c4f7[_0x37bec1('0x735')]=_0x175939,_0x4dc93e[_0x37bec1('0x21de')](_0x37bec1('0x1bd8'))?_0xd4739d[_0x37bec1('0x1b0c')][_0x37bec1('0x595')]({'fields':_0x37bec1('0x539'),'type':'outbound','VoiceExtensionId':_0x37bec1('0x27a'),'nolimit':'true'})[_0x37bec1('0x1376')][_0x37bec1('0x21ad')](function(_0xa87222){var _0x9fc9b1=_0x37bec1;_0x37c4f7[_0x9fc9b1('0x31')]=_0xa87222[_0x9fc9b1('0x1b33')]||[];})[_0x37bec1('0x1c1d')](function(_0x207a75){var _0x1451ea=_0x37bec1;_0x5dd236[_0x1451ea('0x2092')]({'title':_0x207a75[_0x1451ea('0x209')]?_0x1451ea('0x22d')+_0x207a75[_0x1451ea('0x209')]+'\x20-\x20'+_0x207a75['statusText']:_0x1451ea('0x2486'),'msg':_0x207a75[_0x1451ea('0x11c2')]?JSON[_0x1451ea('0x25e')](_0x207a75[_0x1451ea('0x11c2')]):_0x207a75[_0x1451ea('0x174f')]()});}):_0xd4739d[_0x37bec1('0x1b0c')]['get']({'fields':_0x37bec1('0x539'),'type':'outbound','VoiceExtensionId':_0x37bec1('0x27a'),'nolimit':_0x37bec1('0x19bd')})['$promise'][_0x37bec1('0x21ad')](function(_0x45261f){var _0x5c4b65=_0x37bec1;_0x37c4f7[_0x5c4b65('0x31')]=_0x45261f[_0x5c4b65('0x1b33')]||[];})[_0x37bec1('0x21ad')](function(){var _0xe298b0=_0x37bec1;return _0xd4739d[_0xe298b0('0xab4')]['get']({'userProfileId':_0x37c4f7[_0xe298b0('0x123f')][_0xe298b0('0x1618')],'sectionId':0x193})['$promise'];})[_0x37bec1('0x21ad')](function(_0x5e558f){var _0x31e3e6=_0x37bec1,_0x5e6ef7=_0x5e558f&&_0x5e558f[_0x31e3e6('0x1b33')]?_0x5e558f[_0x31e3e6('0x1b33')][0x0]:null;if(!_0x5e6ef7){var _0x49bd22=[],_0x3e61ce=null;_0x37c4f7[_0x31e3e6('0x19b3')]&&(_0x3e61ce=_0x86640f()[_0x31e3e6('0x1d2e')](_0x37c4f7[_0x31e3e6('0x31')],{'id':Number(_0x37c4f7[_0x31e3e6('0x19b3')]['VoiceExtensionId'])}));for(var _0x23d4ee=0x0;_0x23d4ee<_0x37c4f7[_0x31e3e6('0x31')][_0x31e3e6('0x577')];_0x23d4ee++){_0x3e61ce&&_0x37c4f7[_0x31e3e6('0x31')][_0x23d4ee]['id']===_0x3e61ce['id']&&(_0x37c4f7[_0x31e3e6('0x31')][_0x23d4ee][_0x31e3e6('0xba')]=![],_0x49bd22[_0x31e3e6('0x206c')](_0x37c4f7['outboundRoutes'][_0x23d4ee]));}_0x37c4f7[_0x31e3e6('0x31')]=_0x49bd22;}else{if(!_0x5e6ef7[_0x31e3e6('0x80c')])return _0xd4739d['userProfileResource'][_0x31e3e6('0x595')]({'sectionId':_0x5e6ef7['id']})['$promise'][_0x31e3e6('0x21ad')](function(_0x1b367c){var _0x32e881=_0x31e3e6,_0x3df63d=_0x86640f()[_0x32e881('0x26c3')](_0x1b367c[_0x32e881('0x1b33')],function(_0x39820e){var _0x482a51=_0x32e881;return _0x86640f()[_0x482a51('0x1d2e')](_0x37c4f7[_0x482a51('0x31')],{'id':_0x39820e[_0x482a51('0x675')]});}),_0x4e3853=null;_0x37c4f7['voicePrefix']&&(_0x4e3853=_0x86640f()[_0x32e881('0x1d2e')](_0x37c4f7[_0x32e881('0x31')],{'id':Number(_0x37c4f7[_0x32e881('0x19b3')][_0x32e881('0x772')])}));if(_0x4e3853&&!_0x86640f()[_0x32e881('0x2664')](_0x3df63d,['id',_0x4e3853['id']])){var _0x3ca7b6=_0x86640f()[_0x32e881('0x1d2e')](_0x37c4f7['outboundRoutes'],{'id':_0x4e3853['id']});_0x3ca7b6[_0x32e881('0xba')]=![],_0x3df63d[_0x32e881('0x206c')](_0x3ca7b6);}_0x37c4f7[_0x32e881('0x31')]=_0x3df63d;});}})[_0x37bec1('0x1c1d')](function(_0x4b3b3a){var _0x1611e3=_0x37bec1;_0x5dd236[_0x1611e3('0x2092')]({'title':_0x4b3b3a['status']?_0x1611e3('0x22d')+_0x4b3b3a['status']+_0x1611e3('0xa99')+_0x4b3b3a[_0x1611e3('0x1808')]:_0x1611e3('0x1f2a'),'msg':_0x4b3b3a['data']?JSON[_0x1611e3('0x25e')](_0x4b3b3a[_0x1611e3('0x11c2')]):_0x4b3b3a['toString']()});});function _0x4412f4(_0x1ee903,_0x1ade1e){var _0x33aefa=_0x37bec1;_0x296c40[_0x33aefa('0x853')]({'controller':_0x33aefa('0x2824'),'controllerAs':'vm','templateUrl':_0x2bc01a,'parent':angular[_0x33aefa('0x1676')](_0x444904[_0x33aefa('0x2452')]),'targetEvent':_0x1ade1e,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x1ee903,'voicePrefixes':_0x37c4f7['voicePrefixes'][_0x33aefa('0x1b33')],'license':_0x37c4f7[_0x33aefa('0x2ff')],'setting':null,'crudPermissions':_0x37c4f7[_0x33aefa('0x5ed')]}});}function _0x5ac4af(_0x38fd69,_0x463734){var _0x44ef70=_0x37bec1;_0x296c40[_0x44ef70('0x853')]({'controller':_0x44ef70('0x1833'),'controllerAs':'vm','templateUrl':_0x408bf6,'parent':angular[_0x44ef70('0x1676')](_0x444904['body']),'targetEvent':_0x463734,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x38fd69,'voicePrefixes':_0x37c4f7['voicePrefixes']?_0x37c4f7['voicePrefixes'][_0x44ef70('0x1b33')]:[],'crudPermissions':_0x37c4f7[_0x44ef70('0x5ed')],'realtime':![]}});}function _0x12f045(_0x19b9f5,_0x5846fb){var _0x4771ab=_0x37bec1,_0x4a10cc=_0x296c40[_0x4771ab('0xa33')]()[_0x4771ab('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x86640f()[_0x4771ab('0x2159')](_0x4771ab('0x19b3'))+'?')[_0x4771ab('0x276b')](_0x4771ab('0x622')+(_0x19b9f5[_0x4771ab('0x19fe')]||_0x4771ab('0x19b3'))+_0x4771ab('0x2135')+_0x4771ab('0x25e0'))['ariaLabel'](_0x4771ab('0x1b3b'))[_0x4771ab('0x1e6d')](_0x5846fb)['ok']('OK')[_0x4771ab('0x3b5')](_0x4771ab('0x284b'));_0x296c40[_0x4771ab('0x853')](_0x4a10cc)['then'](function(){_0x1829ad(_0x19b9f5);},function(){var _0x22bdca=_0x4771ab;console[_0x22bdca('0x6fb')](_0x22bdca('0x284b'));});}var _0x1db146=!![],_0x40cdc7=0x1;_0x3c9084['$watch'](_0x37bec1('0x1948'),function(_0x2643a2,_0x41634f){var _0x56a6ac=_0x37bec1;_0x1db146?_0x40efe1(function(){_0x1db146=![];}):(!_0x41634f&&(_0x40cdc7=_0x37c4f7['query'][_0x56a6ac('0x2376')]),_0x2643a2!==_0x41634f&&(_0x37c4f7[_0x56a6ac('0x77')]['page']=0x1),!_0x2643a2&&(_0x37c4f7[_0x56a6ac('0x77')][_0x56a6ac('0x2376')]=_0x40cdc7),_0x37c4f7[_0x56a6ac('0x137a')]());});function _0x46ffc6(_0x3a0a0f){var _0x438f7d=_0x37bec1;_0x37c4f7[_0x438f7d('0x279c')]=_0x3a0a0f||{'count':0x0,'rows':[]};}function _0x4f5211(){var _0x4efcd0=_0x37bec1;_0x37c4f7[_0x4efcd0('0x77')][_0x4efcd0('0x15a5')]=(_0x37c4f7[_0x4efcd0('0x77')][_0x4efcd0('0x2376')]-0x1)*_0x37c4f7['query'][_0x4efcd0('0x1f4a')],_0x4dc93e[_0x4efcd0('0x21de')]('admin')?_0x37c4f7[_0x4efcd0('0x71b')]=_0xd4739d[_0x4efcd0('0x19b3')][_0x4efcd0('0x595')](_0x37c4f7[_0x4efcd0('0x77')],_0x46ffc6)['$promise']:(_0x37c4f7[_0x4efcd0('0x77')]['id']=_0x37c4f7['userProfile']['id'],_0x37c4f7[_0x4efcd0('0x77')][_0x4efcd0('0x26ad')]=_0x4efcd0('0x19e0'),_0x37c4f7[_0x4efcd0('0x71b')]=_0xd4739d[_0x4efcd0('0x758')][_0x4efcd0('0x321')](_0x37c4f7[_0x4efcd0('0x77')],_0x46ffc6)[_0x4efcd0('0x1376')]);}function _0x4a243f(_0x1c7e69,_0x2a37dd){var _0x1e2fee=_0x37bec1;_0x296c40[_0x1e2fee('0x853')]({'controller':_0x1e2fee('0x2824'),'controllerAs':'vm','templateUrl':_0x2bc01a,'parent':angular[_0x1e2fee('0x1676')](_0x444904['body']),'targetEvent':_0x1c7e69,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x2a37dd,'voicePrefixes':_0x37c4f7['voicePrefixes'][_0x1e2fee('0x1b33')],'license':_0x37c4f7[_0x1e2fee('0x2ff')],'setting':_0x37c4f7[_0x1e2fee('0x21e')],'crudPermissions':_0x37c4f7[_0x1e2fee('0x5ed')]}});}function _0x1829ad(_0x316fb3){var _0x2da83f=_0x37bec1;_0xd4739d[_0x2da83f('0x19b3')][_0x2da83f('0x1164')]({'id':_0x316fb3['id']})[_0x2da83f('0x1376')]['then'](function(){var _0x1cbf7e=_0x2da83f;_0x86640f()[_0x1cbf7e('0x16a2')](_0x37c4f7[_0x1cbf7e('0x279c')][_0x1cbf7e('0x1b33')],{'id':_0x316fb3['id']}),_0x37c4f7[_0x1cbf7e('0x279c')]['count']-=0x1,!_0x37c4f7['voicePrefixes'][_0x1cbf7e('0x1b33')]['length']&&_0x37c4f7[_0x1cbf7e('0x137a')](),_0x5dd236[_0x1cbf7e('0xdb1')]({'title':_0x86640f()[_0x1cbf7e('0x2159')](_0x1cbf7e('0x19b3'))+_0x1cbf7e('0xe64'),'msg':_0x316fb3['name']?_0x316fb3[_0x1cbf7e('0x19fe')]+_0x1cbf7e('0xb4a'):''});})[_0x2da83f('0x1c1d')](function(_0xbf3b1e){var _0x11baea=_0x2da83f;if(_0xbf3b1e[_0x11baea('0x11c2')]&&_0xbf3b1e[_0x11baea('0x11c2')][_0x11baea('0x1a69')]&&_0xbf3b1e[_0x11baea('0x11c2')][_0x11baea('0x1a69')][_0x11baea('0x577')]){_0x37c4f7[_0x11baea('0x1a69')]=_0xbf3b1e[_0x11baea('0x11c2')][_0x11baea('0x1a69')]||[{'message':_0xbf3b1e[_0x11baea('0x174f')](),'type':_0x11baea('0xbc1')}];for(var _0x121883=0x0;_0x121883<_0xbf3b1e[_0x11baea('0x11c2')][_0x11baea('0x1a69')][_0x11baea('0x577')];_0x121883++){_0x5dd236['error']({'title':_0xbf3b1e['data'][_0x11baea('0x1a69')][_0x121883][_0x11baea('0x7fa')],'msg':_0xbf3b1e['data'][_0x11baea('0x1a69')][_0x121883][_0x11baea('0x1224')]});}}else _0x5dd236[_0x11baea('0x2092')]({'title':_0xbf3b1e[_0x11baea('0x209')]?'API:'+_0xbf3b1e['status']+'\x20-\x20'+_0xbf3b1e[_0x11baea('0x1808')]:_0x11baea('0xbc1'),'msg':_0xbf3b1e[_0x11baea('0x11c2')]?JSON[_0x11baea('0x25e')](_0xbf3b1e[_0x11baea('0x11c2')][_0x11baea('0x1224')]):_0xbf3b1e[_0x11baea('0x1224')]||_0xbf3b1e[_0x11baea('0x174f')]()});});}function _0x5dfc0a(){var _0x395f00=_0x37bec1,_0x59575b=angular[_0x395f00('0xd75')](_0x37c4f7[_0x395f00('0x14d2')]);return _0x37c4f7[_0x395f00('0x14d2')]=[],_0x59575b;}function _0x40c76c(_0x435f84){var _0x43a84b=_0x37bec1,_0x2aec64=_0x296c40[_0x43a84b('0xa33')]()[_0x43a84b('0x4b4')](_0x43a84b('0x4b3'))[_0x43a84b('0x276b')](_0x43a84b('0x622')+_0x37c4f7['selectedVoicePrefixes'][_0x43a84b('0x577')]+_0x43a84b('0xd74')+_0x43a84b('0x25e0'))[_0x43a84b('0x7a7')]('delete\x20voicePrefixs')[_0x43a84b('0x1e6d')](_0x435f84)['ok']('OK')[_0x43a84b('0x3b5')](_0x43a84b('0x284b'));_0x296c40[_0x43a84b('0x853')](_0x2aec64)[_0x43a84b('0x21ad')](function(){var _0xea6a4f=_0x43a84b;_0x37c4f7['selectedVoicePrefixes'][_0xea6a4f('0x1a52')](function(_0x390867){_0x1829ad(_0x390867);}),_0x37c4f7[_0xea6a4f('0x14d2')]=[];});}function _0x4dac04(){var _0x4b8460=_0x37bec1;_0x37c4f7[_0x4b8460('0x14d2')]=[];}function _0x175939(){var _0x24d1c8=_0x37bec1;_0x37c4f7['selectedVoicePrefixes']=_0x37c4f7[_0x24d1c8('0x279c')][_0x24d1c8('0x1b33')];}}const _0xc2f1ff=_0x5b4eb0;_0x20707b[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x2b6'),'voiceQueue','api',_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting',_0x3877e3('0x5ed')];function _0x20707b(_0x57a0b1,_0x1cad47,_0x1bfa6a,_0x48ca31,_0x5d9336,_0x2613ff,_0xc8da53,_0x189d17,_0x1fcd85,_0xf53525,_0x3e8881,_0x3a38f8,_0x2c4d67,_0x2cd292){var _0x3d92d6=_0x3877e3,_0xedf709=this;_0xedf709['currentUser']=_0x3e8881[_0x3d92d6('0x15ed')](),_0xedf709['errors']=[],_0xedf709['setting']=_0x2c4d67,_0xedf709['license']=_0x3a38f8,_0xedf709[_0x3d92d6('0x5ed')]=_0x2cd292,_0xedf709[_0x3d92d6('0x126a')]={},_0xedf709[_0x3d92d6('0x1432')]=_0xedf709['setting']&&_0xedf709[_0x3d92d6('0x21e')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xedf709['title']='VOICE.EDIT_VOICEQUEUE',_0xedf709[_0x3d92d6('0xb97')]=angular[_0x3d92d6('0xd75')](_0x1fcd85),_0xedf709[_0x3d92d6('0x2b6')]=_0x189d17,_0xedf709['newVoiceQueue']=![];!_0xedf709[_0x3d92d6('0xb97')]&&(_0xedf709['voiceQueue']={'type':_0x3d92d6('0x923'),'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'},_0xedf709[_0x3d92d6('0x4b4')]=_0x3d92d6('0x174b'),_0xedf709[_0x3d92d6('0x1a89')]=!![]);_0xedf709['addNewVoiceQueue']=_0x3d38ba,_0xedf709[_0x3d92d6('0xe76')]=_0x2fb6cb,_0xedf709[_0x3d92d6('0xdae')]=_0xcda080,_0xedf709['getDateFromString']=_0x137591,_0xedf709[_0x3d92d6('0x167')]=_0x4dc357;function _0x3d38ba(){var _0x8a55f9=_0x3d92d6;_0xedf709[_0x8a55f9('0x1a69')]=[],_0xf53525[_0x8a55f9('0xb97')][_0x8a55f9('0x186f')](_0xedf709[_0x8a55f9('0xb97')])[_0x8a55f9('0x1376')][_0x8a55f9('0x21ad')](function(_0x179f59){var _0x5a5b42=_0x8a55f9;_0xedf709[_0x5a5b42('0x2b6')]['unshift'](_0x179f59[_0x5a5b42('0x3bc')]()),_0xc8da53[_0x5a5b42('0xdb1')]({'title':_0x5a5b42('0xeef'),'msg':_0xedf709[_0x5a5b42('0xb97')][_0x5a5b42('0x19fe')]?_0xedf709[_0x5a5b42('0xb97')][_0x5a5b42('0x19fe')]+_0x5a5b42('0x1694'):''}),_0x4dc357(_0x179f59);})[_0x8a55f9('0x1c1d')](function(_0x56c6e4){var _0xb22842=_0x8a55f9;if(_0x56c6e4[_0xb22842('0x11c2')]&&_0x56c6e4[_0xb22842('0x11c2')][_0xb22842('0x1a69')]&&_0x56c6e4['data'][_0xb22842('0x1a69')]['length']){_0xedf709[_0xb22842('0x1a69')]=_0x56c6e4[_0xb22842('0x11c2')][_0xb22842('0x1a69')]||[{'message':_0x56c6e4['toString'](),'type':_0xb22842('0x2007')}];for(var _0x1728e1=0x0;_0x1728e1<_0x56c6e4[_0xb22842('0x11c2')][_0xb22842('0x1a69')][_0xb22842('0x577')];_0x1728e1+=0x1){_0xc8da53[_0xb22842('0x2092')]({'title':_0x56c6e4[_0xb22842('0x11c2')]['errors'][_0x1728e1][_0xb22842('0x7fa')],'msg':_0x56c6e4[_0xb22842('0x11c2')][_0xb22842('0x1a69')][_0x1728e1][_0xb22842('0x1224')]});}}else _0xc8da53[_0xb22842('0x2092')]({'title':_0x56c6e4[_0xb22842('0x209')]?_0xb22842('0x22d')+_0x56c6e4[_0xb22842('0x209')]+'\x20-\x20'+_0x56c6e4['statusText']:'api.voiceQueue.save','msg':_0x56c6e4[_0xb22842('0x11c2')]?JSON['stringify'](_0x56c6e4[_0xb22842('0x11c2')]['message']):_0x56c6e4['toString']()});});}function _0x2fb6cb(){var _0x53d79d=_0x3d92d6;_0xedf709[_0x53d79d('0x1a69')]=[],_0xf53525[_0x53d79d('0xb97')][_0x53d79d('0x5ef')]({'id':_0xedf709[_0x53d79d('0xb97')]['id']},_0xedf709[_0x53d79d('0xb97')])[_0x53d79d('0x1376')][_0x53d79d('0x21ad')](function(_0x3daeae){var _0xb94ad0=_0x53d79d,_0x177ec7=_0x86640f()[_0xb94ad0('0x1d2e')](_0xedf709[_0xb94ad0('0x2b6')],{'id':_0x3daeae['id']});_0x177ec7&&_0x86640f()['merge'](_0x177ec7,_0x86640f()[_0xb94ad0('0xc50')](_0x3daeae['toJSON'](),_0x86640f()['keys'](_0x177ec7))),_0xc8da53[_0xb94ad0('0xdb1')]({'title':_0xb94ad0('0x3ad'),'msg':_0xedf709[_0xb94ad0('0xb97')][_0xb94ad0('0x19fe')]?_0xedf709['voiceQueue']['name']+'\x20has\x20been\x20saved!':''}),_0x4dc357(_0x3daeae);})['catch'](function(_0x255974){var _0x559f3a=_0x53d79d;if(_0x255974[_0x559f3a('0x11c2')]&&_0x255974[_0x559f3a('0x11c2')][_0x559f3a('0x1a69')]&&_0x255974['data']['errors'][_0x559f3a('0x577')]){_0xedf709[_0x559f3a('0x1a69')]=_0x255974['data'][_0x559f3a('0x1a69')]||[{'message':_0x255974[_0x559f3a('0x174f')](),'type':_0x559f3a('0x2699')}];for(var _0x64cf30=0x0;_0x64cf30<_0x255974[_0x559f3a('0x11c2')][_0x559f3a('0x1a69')][_0x559f3a('0x577')];_0x64cf30++){_0xc8da53[_0x559f3a('0x2092')]({'title':_0x255974[_0x559f3a('0x11c2')][_0x559f3a('0x1a69')][_0x64cf30][_0x559f3a('0x7fa')],'msg':_0x255974[_0x559f3a('0x11c2')][_0x559f3a('0x1a69')][_0x64cf30][_0x559f3a('0x1224')]});}}else _0xc8da53[_0x559f3a('0x2092')]({'title':_0x255974[_0x559f3a('0x209')]?_0x559f3a('0x22d')+_0x255974[_0x559f3a('0x209')]+_0x559f3a('0xa99')+_0x255974[_0x559f3a('0x1808')]:_0x559f3a('0x2699'),'msg':_0x255974['data']?JSON['stringify'](_0x255974[_0x559f3a('0x11c2')][_0x559f3a('0x1224')]):_0x255974[_0x559f3a('0x174f')]()});});}function _0xcda080(_0x1de0c7){var _0x3fc1cd=_0x3d92d6;_0xedf709[_0x3fc1cd('0x1a69')]=[];var _0xd6a9ee=_0x48ca31[_0x3fc1cd('0xa33')]()[_0x3fc1cd('0x4b4')](_0x3fc1cd('0x196b'))[_0x3fc1cd('0x13fb')](_0x3fc1cd('0x134'))[_0x3fc1cd('0x7a7')](_0x3fc1cd('0x19c4'))['ok'](_0x3fc1cd('0xbfd'))[_0x3fc1cd('0x3b5')](_0x3fc1cd('0x1f40'))[_0x3fc1cd('0x1e6d')](_0x1de0c7);_0x48ca31[_0x3fc1cd('0x853')](_0xd6a9ee)[_0x3fc1cd('0x21ad')](function(){var _0x27ab44=_0x3fc1cd;_0xf53525[_0x27ab44('0xb97')][_0x27ab44('0x1164')]({'id':_0xedf709[_0x27ab44('0xb97')]['id']})[_0x27ab44('0x1376')]['then'](function(){var _0x518efe=_0x27ab44;_0x86640f()[_0x518efe('0x16a2')](_0xedf709[_0x518efe('0x2b6')],{'id':_0xedf709[_0x518efe('0xb97')]['id']}),_0xc8da53[_0x518efe('0xdb1')]({'title':_0x518efe('0x15d2'),'msg':(_0xedf709[_0x518efe('0xb97')][_0x518efe('0x19fe')]||_0x518efe('0xb97'))+'\x20has\x20been\x20deleted!'}),_0x4dc357(_0xedf709[_0x518efe('0xb97')]);})[_0x27ab44('0x1c1d')](function(_0x4074f8){var _0x569dbd=_0x27ab44;if(_0x4074f8[_0x569dbd('0x11c2')]&&_0x4074f8[_0x569dbd('0x11c2')][_0x569dbd('0x1a69')]&&_0x4074f8[_0x569dbd('0x11c2')]['errors'][_0x569dbd('0x577')]){_0xedf709['errors']=_0x4074f8[_0x569dbd('0x11c2')][_0x569dbd('0x1a69')]||[{'message':_0x4074f8[_0x569dbd('0x174f')](),'type':_0x569dbd('0x3c8')}];for(var _0x258be7=0x0;_0x258be7<_0x4074f8['data'][_0x569dbd('0x1a69')][_0x569dbd('0x577')];_0x258be7++){_0xc8da53[_0x569dbd('0x2092')]({'title':_0x4074f8[_0x569dbd('0x11c2')][_0x569dbd('0x1a69')][_0x258be7][_0x569dbd('0x7fa')],'msg':_0x4074f8[_0x569dbd('0x11c2')][_0x569dbd('0x1a69')][_0x258be7][_0x569dbd('0x1224')]});}}else _0xc8da53['error']({'title':_0x4074f8[_0x569dbd('0x209')]?_0x569dbd('0x22d')+_0x4074f8['status']+_0x569dbd('0xa99')+_0x4074f8[_0x569dbd('0x1808')]:_0x569dbd('0x3c8'),'msg':_0x4074f8[_0x569dbd('0x11c2')]?JSON[_0x569dbd('0x25e')](_0x4074f8[_0x569dbd('0x11c2')][_0x569dbd('0x1224')]):_0x4074f8[_0x569dbd('0x1224')]||_0x4074f8[_0x569dbd('0x174f')]()});});},function(){});}function _0x137591(_0x5b5326){return _0x5b5326===null?undefined:new Date(_0x5b5326);}function _0x4dc357(_0x31c7c7){var _0x35fe8b=_0x3d92d6;_0x48ca31[_0x35fe8b('0x1c24')](_0x31c7c7);}}const _0x1dae0c=_0x20707b;_0x169e8e[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q','toasty',_0x3877e3('0xccd'),'voiceQueue',_0x3877e3('0x2b6'),_0x3877e3('0x116a'),'$translate','Auth',_0x3877e3('0x5ed')];function _0x169e8e(_0x5f0464,_0x2bee71,_0x248e39,_0x1f6e73,_0x282279,_0x5bc54b,_0x3e21c4,_0x5f2772,_0x2191e4,_0x2d11ba){var _0x48007f=_0x3877e3,_0x11fe11=this;_0x11fe11[_0x48007f('0x123f')]=_0x2191e4[_0x48007f('0x15ed')](),_0x11fe11[_0x48007f('0xb97')]=_0x282279,_0x11fe11['crudPermissions']=_0x2d11ba,_0x11fe11[_0x48007f('0x1195')]=0x0,_0x11fe11[_0x48007f('0x116a')]=_0x3e21c4,_0x11fe11[_0x48007f('0x1b9a')]=[],_0x11fe11[_0x48007f('0x1e09')]=[],_0x11fe11['selectedItems']=[],_0x11fe11[_0x48007f('0x91b')]=[],_0x11fe11['startingSelectedItems']=[],_0x11fe11[_0x48007f('0x1bb9')]=![],_0x11fe11[_0x48007f('0x1081')]=_0x50023f,_0x11fe11[_0x48007f('0x265b')]=_0x31f25a,_0x11fe11[_0x48007f('0x167')]=_0x3c7377,_0x11fe11[_0x48007f('0x909')]={'readOnly':!_0x11fe11[_0x48007f('0x5ed')][_0x48007f('0x6e2')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x48007f('0x19fe'),'line1':_0x48007f('0x20f5'),'line2':[_0x48007f('0x19fe'),'internal'],'line3':_0x48007f('0x1195'),'labelAll':_0x5f2772[_0x48007f('0x183e')](_0x48007f('0x112a')),'labelSelected':_0x5f2772[_0x48007f('0x183e')](_0x48007f('0xfc2')),'transferCallback':function _0x161a00(_0x35df90,_0x49ab3e){var _0x2bf94b=_0x48007f;_0x49ab3e?_0x35df90[_0x2bf94b('0x1a52')](function(_0x515670){var _0x1af241=_0x2bf94b;_0x515670[_0x1af241('0x1195')]=undefined;}):_0x35df90[_0x2bf94b('0x1a52')](function(_0x1e6d3f){var _0x4e00d3=_0x2bf94b;_0x1e6d3f[_0x4e00d3('0x1195')]=_0x4e00d3('0x5c2')+_0x11fe11[_0x4e00d3('0x1195')];});var _0x82243b=_0x86640f()[_0x2bf94b('0xb02')](_0x11fe11[_0x2bf94b('0x2584')],_0x11fe11['selectedItems'],function(_0x3ff28c,_0x35bbb7){var _0x3f74f9=_0x2bf94b;return _0x3ff28c['id']===_0x35bbb7['id']&&_0x3ff28c[_0x3f74f9('0x1195')]===_0x35bbb7[_0x3f74f9('0x1195')];});_0x11fe11[_0x2bf94b('0x1bb9')]=_0x86640f()['isEmpty'](_0x82243b)?![]:!![];}};function _0x50023f(){var _0x4398f8=_0x48007f;return _0x2191e4[_0x4398f8('0x21de')](_0x4398f8('0x1bd8'))?_0x3fac6f()[_0x4398f8('0x1c1d')](function(_0x326de3){var _0x238ea1=_0x4398f8;_0x248e39[_0x238ea1('0x2092')]({'title':_0x326de3[_0x238ea1('0x209')]?_0x238ea1('0x22d')+_0x326de3['status']+_0x238ea1('0xa99')+_0x326de3[_0x238ea1('0x1808')]:_0x238ea1('0x1381'),'msg':_0x326de3[_0x238ea1('0x209')]?JSON['stringify'](_0x326de3['data']):_0x326de3['toString']()});}):_0x386c51()[_0x4398f8('0x21ad')](function(_0x34013e){var _0x4c44f5=_0x4398f8;return _0x11fe11[_0x4c44f5('0x26ad')]=_0x34013e,_0x3fac6f();})['catch'](function(_0x4e4a2c){var _0x39fe8d=_0x4398f8;_0x248e39[_0x39fe8d('0x2092')]({'title':_0x4e4a2c[_0x39fe8d('0x209')]?_0x39fe8d('0x22d')+_0x4e4a2c[_0x39fe8d('0x209')]+_0x39fe8d('0xa99')+_0x4e4a2c[_0x39fe8d('0x1808')]:_0x39fe8d('0x1381'),'msg':_0x4e4a2c[_0x39fe8d('0x209')]?JSON[_0x39fe8d('0x25e')](_0x4e4a2c[_0x39fe8d('0x11c2')]):_0x4e4a2c[_0x39fe8d('0x174f')]()});});}function _0x386c51(){return _0x2bee71(function(_0x5bd67c,_0x172015){var _0x449195=a0_0x2e7f;_0x1f6e73[_0x449195('0xab4')][_0x449195('0x595')]({'userProfileId':_0x11fe11[_0x449195('0x123f')][_0x449195('0x1618')],'name':'Agents'})[_0x449195('0x1376')][_0x449195('0x21ad')](function(_0x1be2c9){var _0x523abe=_0x449195,_0x3fac6b=_0x1be2c9&&_0x1be2c9['rows']?_0x1be2c9[_0x523abe('0x1b33')][0x0]:null;_0x5bd67c(_0x3fac6b);})[_0x449195('0x1c1d')](function(_0x528c2c){_0x172015(_0x528c2c);});});}function _0x3fac6f(){return _0x2bee71(function(_0x12f8f6,_0x483426){var _0x1043a2=a0_0x2e7f;return _0x20c1ab()[_0x1043a2('0x21ad')](function(_0x141bff){var _0x4de881=_0x1043a2;return _0x11fe11[_0x4de881('0x1b9a')]=_0x141bff[_0x4de881('0x1b33')]?_0x141bff[_0x4de881('0x1b33')]:[],_0x2191e4[_0x4de881('0x21de')](_0x4de881('0x1bd8'))?_0x141bff:_0x11fe11[_0x4de881('0x26ad')]?_0x11fe11[_0x4de881('0x26ad')][_0x4de881('0x80c')]?_0x141bff:_0x430165():null;})[_0x1043a2('0x21ad')](function(_0x9d0251){var _0x123b82=_0x1043a2,_0x525e23=_0x9d0251&&_0x9d0251['rows']?_0x9d0251[_0x123b82('0x1b33')]:[];return _0x11fe11['allowedItems']=_0x86640f()['map'](_0x525e23,function(_0x2a2a08){var _0xbd1eb6=_0x123b82;return _0x86640f()[_0xbd1eb6('0x1d2e')](_0x11fe11[_0xbd1eb6('0x1b9a')],{'id':_0x2191e4[_0xbd1eb6('0x21de')](_0xbd1eb6('0x1bd8'))||_0x11fe11[_0xbd1eb6('0x26ad')][_0xbd1eb6('0x80c')]?_0x2a2a08['id']:_0x2a2a08['resourceId']});}),_0x11fe11[_0x123b82('0x91b')]=angular[_0x123b82('0xd75')](_0x11fe11['allowedItems']),_0x11fe11['items'][_0x123b82('0x1a52')](function(_0x16d1ff){var _0x299d0b=_0x123b82,_0x5afd1b=_0x86640f()['find'](_0x11fe11[_0x299d0b('0x1e09')],{'id':_0x16d1ff['id']});_0x2191e4['hasRole'](_0x299d0b('0x1bd8'))?_0x16d1ff['isValid']=!![]:_0x16d1ff[_0x299d0b('0x118b')]=typeof _0x5afd1b!==_0x299d0b('0xddc')?!![]:![];}),_0xa67f3f();})['then'](function(_0x387ac0){var _0x1f8e4b=_0x1043a2,_0x2d5715=_0x387ac0&&_0x387ac0[_0x1f8e4b('0x1b33')]?_0x387ac0[_0x1f8e4b('0x1b33')]:[];_0x11fe11[_0x1f8e4b('0x2629')]=_0x86640f()['map'](_0x2d5715,function(_0x2543fd){var _0x33a7f4=_0x1f8e4b,_0x1ed132=_0x86640f()['find'](_0x11fe11[_0x33a7f4('0x1b9a')],{'id':_0x2543fd['id']});return _0x1ed132[_0x33a7f4('0x1195')]=_0x2543fd[_0x33a7f4('0x1614')]?_0x33a7f4('0x5c2')+_0x2543fd[_0x33a7f4('0x1614')][_0x33a7f4('0x1195')]:'',_0x1ed132['internal']=typeof _0x2543fd[_0x33a7f4('0x201f')]!=='undefined'?'<'+_0x2543fd[_0x33a7f4('0x201f')]+'>':'',_0x1ed132;}),_0x11fe11[_0x1f8e4b('0x2584')]=angular[_0x1f8e4b('0xd75')](_0x11fe11['selectedItems']),_0x11fe11['dualMultiselectOptions'][_0x1f8e4b('0x2629')]=_0x11fe11[_0x1f8e4b('0x2629')],_0x11fe11[_0x1f8e4b('0x909')][_0x1f8e4b('0x1b9a')]=_0x86640f()[_0x1f8e4b('0x1eab')](_0x11fe11[_0x1f8e4b('0x1e09')],_0x11fe11['dualMultiselectOptions'][_0x1f8e4b('0x2629')],'id'),_0x12f8f6();})[_0x1043a2('0x1c1d')](function(_0x306606){_0x483426(_0x306606);});});}function _0x430165(){return _0x2bee71(function(_0x5adf29,_0x5e644c){var _0x10ee24=a0_0x2e7f;return _0x1f6e73['userProfileResource']['get']({'sectionId':_0x11fe11[_0x10ee24('0x26ad')]['id'],'nolimit':!![]})['$promise']['then'](function(_0x10899c){_0x5adf29(_0x10899c);})[_0x10ee24('0x1c1d')](function(_0x10ac80){_0x5e644c(_0x10ac80);});});}function _0xa67f3f(){return _0x2bee71(function(_0x1e9f3e,_0x371aaa){var _0x130b9f=a0_0x2e7f;return _0x1f6e73[_0x130b9f('0xb97')][_0x130b9f('0x13ad')]({'id':_0x11fe11['voiceQueue']['id'],'fields':_0x130b9f('0x1eea'),'nolimit':!![],'role':_0x130b9f('0x2402')})['$promise'][_0x130b9f('0x21ad')](function(_0x2c4c33){_0x1e9f3e(_0x2c4c33);})[_0x130b9f('0x1c1d')](function(_0x1e167d){_0x371aaa(_0x1e167d);});});}function _0x20c1ab(){return _0x2bee71(function(_0x3d86e2,_0x50b076){var _0x18b4c3=a0_0x2e7f;return _0x1f6e73[_0x18b4c3('0x1775')][_0x18b4c3('0x595')]({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x18b4c3('0x2402')})['$promise'][_0x18b4c3('0x21ad')](function(_0x414e46){_0x3d86e2(_0x414e46);})[_0x18b4c3('0x1c1d')](function(_0x8c170d){_0x50b076(_0x8c170d);});});}function _0xad550a(_0x1666af){return _0x2bee71(function(_0x3e4768,_0x36a23c){var _0x3f633a=a0_0x2e7f;if(_0x86640f()['isEmpty'](_0x1666af))_0x3e4768();else{var _0x1356c1=[],_0x2ffb2f=_0x86640f()[_0x3f633a('0x2241')](_0x1666af,_0x3f633a('0x1195'));for(var _0x34c219=0x0;_0x34c219-0x1?_0x233731[_0x1cced6('0x166e')](_0x233731[_0x1cced6('0x4ff')]('/')+0x1):_0x233731[_0x1cced6('0x4ff')]('\x5c')>-0x1?_0x233731['substring'](_0x233731[_0x1cced6('0x4ff')]('\x5c')+0x1):_0x233731;return _0x44cb95=_0x44cb95['substring'](0x0,_0x44cb95[_0x1cced6('0x4ff')]('.')),_0x44cb95;}function _0x37e8cb(_0x51ee49){var _0x21289d=_0x46063e,_0x21869b=![],_0x2cecaa=!_0x86640f()['isNil'](_0x51ee49[_0x21289d('0x153')])?_0x51ee49['format']:_0x51ee49[_0x21289d('0x2228')][_0x21289d('0x166e')](_0x51ee49['value'][_0x21289d('0x4ff')]('.'));return _0x21869b=_0x2cecaa===_0x21289d('0x129a')?!![]:![],_0x5b4777[_0x21289d('0x9b8')][_0x21289d('0xb0')]({'id':_0x51ee49['id']})[_0x21289d('0x1376')][_0x21289d('0x21ad')](function(_0x33efa3){var _0x155f67=_0x21289d,_0x539c2c=[_0x33efa3[_0x155f67('0x3da')]],_0x77e956=_0x155f67('0xb0'),_0x1cf5ad=new Blob(_0x539c2c,{'type':_0x33efa3[_0x155f67('0x7fa')]});_0x77e956=_0x595758(_0x51ee49['value'])+_0x51ee49[_0x155f67('0x153')];var _0x1329ae=window[_0x155f67('0x27c3')][_0x155f67('0x162e')]('a');_0x1329ae[_0x155f67('0x127a')](_0x155f67('0x69e'),URL[_0x155f67('0x167b')](_0x1cf5ad)),_0x1329ae[_0x155f67('0x127a')](_0x155f67('0xb0'),_0x77e956),document['body'][_0x155f67('0x14d0')](_0x1329ae),_0x1329ae['click']();})[_0x21289d('0x1c1d')](function(_0x4ab123){var _0x387e2a=_0x21289d;if(_0x4ab123[_0x387e2a('0x11c2')]&&_0x4ab123['data'][_0x387e2a('0x1a69')]&&_0x4ab123[_0x387e2a('0x11c2')][_0x387e2a('0x1a69')][_0x387e2a('0x577')])for(var _0x4339b8=0x0;_0x4339b8<_0x4ab123[_0x387e2a('0x11c2')]['errors']['length'];_0x4339b8++){_0x31b127[_0x387e2a('0x2092')]({'title':_0x4ab123[_0x387e2a('0x11c2')][_0x387e2a('0x1a69')][_0x4339b8]['type'],'msg':_0x4ab123[_0x387e2a('0x11c2')]['errors'][_0x4339b8][_0x387e2a('0x1224')]});}else{if(String(_0x4ab123['status'])===_0x387e2a('0x1cc6')&&_0x21869b===![])_0x31b127[_0x387e2a('0x231c')]({'title':_0x532d82[_0x387e2a('0x183e')](_0x387e2a('0x16c9')),'msg':_0x532d82[_0x387e2a('0x183e')](_0x387e2a('0x1392'))});else String(_0x4ab123['status'])==='404'?_0x31b127[_0x387e2a('0x231c')]({'title':_0x532d82[_0x387e2a('0x183e')]('VOICE.CANT_DOWNLOAD_THIS_FILE'),'msg':_0x532d82['instant'](_0x387e2a('0x1f86'))}):_0x31b127['error']({'title':_0x4ab123['status']?_0x387e2a('0x22d')+_0x4ab123['status']+'\x20-\x20'+_0x4ab123[_0x387e2a('0x1808')]:'api.voiceRecording.save','msg':_0x4ab123[_0x387e2a('0x11c2')]?JSON[_0x387e2a('0x25e')](_0x4ab123[_0x387e2a('0x11c2')][_0x387e2a('0x1224')]):_0x4ab123[_0x387e2a('0x174f')]()});}});}function _0x2f2c87(_0x163efd,_0x2840a1){var _0x330755=_0x46063e,_0x190d0f=_0x294b90['confirm']()[_0x330755('0x4b4')](_0x330755('0x25b6')+_0x86640f()[_0x330755('0x2159')]('voiceRecording')+'?')[_0x330755('0x276b')](_0x330755('0x622')+(_0x163efd[_0x330755('0x19fe')]||_0x330755('0x9b8'))+_0x330755('0x2135')+_0x330755('0x25e0'))[_0x330755('0x7a7')](_0x330755('0x25a7'))['targetEvent'](_0x2840a1)['ok']('OK')[_0x330755('0x3b5')](_0x330755('0x284b'));_0x294b90[_0x330755('0x853')](_0x190d0f)['then'](function(){_0x447630(_0x163efd);},function(){var _0x28e391=_0x330755;console[_0x28e391('0x6fb')](_0x28e391('0x284b'));});}var _0x181258=!![],_0x20887a=0x1;_0x47494d[_0x46063e('0x10e8')](_0x46063e('0x1948'),function(_0x30b375,_0x24238f){var _0x170c1b=_0x46063e;_0x181258?_0x38d04b(function(){_0x181258=![];}):(!_0x24238f&&(_0x20887a=_0x533647[_0x170c1b('0x77')][_0x170c1b('0x2376')]),_0x30b375!==_0x24238f&&(_0x533647[_0x170c1b('0x77')][_0x170c1b('0x2376')]=0x1),!_0x30b375&&(_0x533647[_0x170c1b('0x77')][_0x170c1b('0x2376')]=_0x20887a),_0x533647[_0x170c1b('0x1814')]());});function _0x22d5aa(_0xade0ad){var _0x94c22c=_0x46063e;_0x533647[_0x94c22c('0x231b')]=_0xade0ad||{'count':0x0,'rows':[]};}function _0xecf1f9(){var _0x571314=_0x46063e;_0x533647[_0x571314('0x77')][_0x571314('0x15a5')]=(_0x533647['query'][_0x571314('0x2376')]-0x1)*_0x533647[_0x571314('0x77')][_0x571314('0x1f4a')],_0x4b23de[_0x571314('0x21de')](_0x571314('0x1bd8'))?_0x533647[_0x571314('0x71b')]=_0x5b4777[_0x571314('0x9b8')]['get'](_0x533647[_0x571314('0x77')],_0x22d5aa)[_0x571314('0x1376')]:(_0x533647[_0x571314('0x77')]['id']=_0x533647[_0x571314('0x758')]['id'],_0x533647[_0x571314('0x77')][_0x571314('0x26ad')]=_0x571314('0x132'),_0x533647[_0x571314('0x71b')]=_0x5b4777['userProfile'][_0x571314('0x321')](_0x533647[_0x571314('0x77')],_0x22d5aa)[_0x571314('0x1376')]);}function _0x552406(_0x1b5091,_0x3c3277){var _0x4c5f60=_0x46063e;_0x294b90[_0x4c5f60('0x853')]({'controller':_0x4c5f60('0xd4b'),'controllerAs':'vm','templateUrl':_0x5c35ff,'parent':angular[_0x4c5f60('0x1676')](_0x2d9a2a['body']),'targetEvent':_0x1b5091,'clickOutsideToClose':!![],'locals':{'voiceRecording':_0x3c3277,'voiceRecordings':_0x533647[_0x4c5f60('0x231b')][_0x4c5f60('0x1b33')],'license':_0x533647[_0x4c5f60('0x2ff')],'setting':_0x533647[_0x4c5f60('0x21e')],'crudPermissions':_0x533647['crudPermissions']}});}function _0x447630(_0x17460b){var _0x148f6c=_0x46063e;_0x5b4777['voiceRecording']['delete']({'id':_0x17460b['id']})[_0x148f6c('0x1376')][_0x148f6c('0x21ad')](function(){var _0x4ba2e6=_0x148f6c;_0x86640f()[_0x4ba2e6('0x16a2')](_0x533647[_0x4ba2e6('0x231b')][_0x4ba2e6('0x1b33')],{'id':_0x17460b['id']}),_0x533647[_0x4ba2e6('0x231b')]['count']-=0x1,!_0x533647[_0x4ba2e6('0x231b')]['rows']['length']&&_0x533647[_0x4ba2e6('0x1814')](),_0x31b127[_0x4ba2e6('0xdb1')]({'title':_0x86640f()[_0x4ba2e6('0x2159')](_0x4ba2e6('0x27fd'))+_0x4ba2e6('0xe64'),'msg':_0x17460b[_0x4ba2e6('0x19fe')]?_0x17460b[_0x4ba2e6('0x19fe')]+_0x4ba2e6('0xb4a'):''});})[_0x148f6c('0x1c1d')](function(_0x18233e){var _0x3c99e0=_0x148f6c;if(_0x18233e['data']&&_0x18233e[_0x3c99e0('0x11c2')][_0x3c99e0('0x1a69')]&&_0x18233e[_0x3c99e0('0x11c2')][_0x3c99e0('0x1a69')][_0x3c99e0('0x577')]){_0x533647['errors']=_0x18233e[_0x3c99e0('0x11c2')]['errors']||[{'message':_0x18233e['toString'](),'type':'SYSTEM:DELETEvoiceRecording'}];for(var _0x3c397c=0x0;_0x3c397c<_0x18233e[_0x3c99e0('0x11c2')][_0x3c99e0('0x1a69')][_0x3c99e0('0x577')];_0x3c397c++){_0x31b127[_0x3c99e0('0x2092')]({'title':_0x18233e[_0x3c99e0('0x11c2')][_0x3c99e0('0x1a69')][_0x3c397c][_0x3c99e0('0x7fa')],'msg':_0x18233e['data'][_0x3c99e0('0x1a69')][_0x3c397c][_0x3c99e0('0x1224')]});}}else _0x31b127[_0x3c99e0('0x2092')]({'title':_0x18233e['status']?_0x3c99e0('0x22d')+_0x18233e['status']+'\x20-\x20'+_0x18233e[_0x3c99e0('0x1808')]:_0x3c99e0('0x1636'),'msg':_0x18233e['data']?JSON[_0x3c99e0('0x25e')](_0x18233e['data'][_0x3c99e0('0x1224')]):_0x18233e['message']||_0x18233e[_0x3c99e0('0x174f')]()});});}function _0x4bd3e6(){var _0x1a6c24=_0x46063e,_0x29017b=angular[_0x1a6c24('0xd75')](_0x533647[_0x1a6c24('0x4a0')]);return _0x533647[_0x1a6c24('0x4a0')]=[],_0x29017b;}function _0xbf22b7(_0x4f2c2b){var _0x521e46=_0x46063e,_0x4ef412=_0x294b90[_0x521e46('0xa33')]()[_0x521e46('0x4b4')](_0x521e46('0x105'))[_0x521e46('0x276b')](_0x521e46('0x622')+_0x533647[_0x521e46('0x4a0')]['length']+_0x521e46('0xd74')+_0x521e46('0x25e0'))[_0x521e46('0x7a7')](_0x521e46('0x1e00'))['targetEvent'](_0x4f2c2b)['ok']('OK')[_0x521e46('0x3b5')](_0x521e46('0x284b'));_0x294b90['show'](_0x4ef412)[_0x521e46('0x21ad')](function(){var _0x7be387=_0x521e46;_0x533647[_0x7be387('0x4a0')][_0x7be387('0x1a52')](function(_0x49524a){_0x447630(_0x49524a);}),_0x533647['selectedVoiceRecordings']=[];});}function _0x418c82(){var _0x12a6bb=_0x46063e;_0x533647[_0x12a6bb('0x4a0')]=[];}function _0x65d487(){var _0x551c33=_0x46063e;_0x533647['selectedVoiceRecordings']=_0x533647[_0x551c33('0x231b')][_0x551c33('0x1b33')];}}const _0xebe529=_0x51c66c,_0x1a9779=_0x398308['p']+_0x3877e3('0x2829'),_0x440e2c=_0x398308['p']+_0x3877e3('0x1711'),_0x9aff6e=_0x398308['p']+_0x3877e3('0x27f2'),_0x284ad5=_0x398308['p']+_0x3877e3('0x2b2'),_0x32460b=_0x398308['p']+_0x3877e3('0x1993'),_0xdc1862=_0x398308['p']+_0x3877e3('0x49d'),_0x42eb73=_0x398308['p']+_0x3877e3('0x2009'),_0x3320d2=_0x398308['p']+_0x3877e3('0x2414'),_0x173805=_0x398308['p']+_0x3877e3('0x210c'),_0x5767b8=_0x398308['p']+_0x3877e3('0x1f3c'),_0x547b0c=_0x398308['p']+'src/js/modules/main/apps/voice/views/voicemails/edit/view.html/view-[chunkhash].html',_0x5480b4=_0x398308['p']+'src/js/modules/main/apps/voice/views/musiconholds/musiconholds.html/musiconholds-[chunkhash].html',_0x2a4538=_0x398308['p']+_0x3877e3('0x14f1'),_0x4f7590=_0x398308['p']+'src/js/modules/main/apps/voice/views/voiceRecordings/voiceRecordings.html/voiceRecordings-[chunkhash].html',_0x5a8323=_0x398308['p']+_0x3877e3('0x631'),_0x29a973=_0x398308['p']+_0x3877e3('0x1ebc'),_0x134e8c=_0x398308['p']+_0x3877e3('0x39f');_0x12dda1[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c'),_0x3877e3('0x972')];function _0x12dda1(_0xb5712a,_0x5be1d5){var _0x486fca=_0x3877e3;_0xb5712a[_0x486fca('0x27e')]('app.voice',{'abstract':!![],'url':_0x486fca('0x1b7b')})['state']('app.voice.voiceQueues',{'url':_0x486fca('0x303'),'views':{'content@app':{'templateUrl':_0x1a9779,'controller':_0x486fca('0x4')}},'resolve':{'voiceQueues':[_0x486fca('0x354'),'Auth',function _0x1cdce4(_0x8c602f,_0x52dfae){var _0x3be01a=_0x486fca;return _0x52dfae[_0x3be01a('0x21de')](_0x3be01a('0x1bd8'))?_0x8c602f['resolve']('voiceQueue@get',{'fields':_0x3be01a('0x2e0'),'type':_0x3be01a('0x923'),'sort':_0x3be01a('0x33'),'channel':_0x3be01a('0x8ed'),'limit':0xa,'offset':0x0}):_0x8c602f['resolve'](_0x3be01a('0x52f'),{'id':_0x52dfae['getCurrentUser']()[_0x3be01a('0x1618')],'section':_0x3be01a('0x1c14'),'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':_0x3be01a('0x923'),'sort':_0x3be01a('0x33'),'channel':_0x3be01a('0x8ed'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function _0x4a4eb2(_0x13cf82,_0x33557a){var _0x28cfbc=_0x486fca;return _0x33557a[_0x28cfbc('0x21de')](_0x28cfbc('0x1bd8'))?null:_0x13cf82[_0x28cfbc('0x8ac')]('userProfile@get',{'fields':_0x28cfbc('0x1a00'),'id':_0x33557a[_0x28cfbc('0x15ed')]()[_0x28cfbc('0x1618')]});}],'userProfileSection':[_0x486fca('0x354'),'Auth',function _0x2622fc(_0x5096c0,_0x4e3937){var _0x4985f6=_0x486fca;return _0x4e3937[_0x4985f6('0x21de')](_0x4985f6('0x1bd8'))?null:_0x5096c0[_0x4985f6('0x8ac')](_0x4985f6('0x222f'),{'fields':_0x4985f6('0x1852'),'userProfileId':_0x4e3937[_0x4985f6('0x15ed')]()[_0x4985f6('0x1618')],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x191,'bodyClass':_0x486fca('0x8ed')})[_0x486fca('0x27e')]('app.voice.voiceQueues.edit',{'url':'/:id?tab','params':{'voiceQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x440e2c,'controller':'VoiceQueueController\x20as\x20vm'}},'resolve':{'voiceQueue':['apiResolver','$stateParams',function _0x45b5ed(_0x4292f8,_0x398abc){var _0x5499bb=_0x486fca;return _0x4292f8['resolve'](_0x5499bb('0x10bb'),{'fields':_0x5499bb('0x2e0'),'id':_0x398abc['id']});}],'userProfileSection':[_0x486fca('0x354'),_0x486fca('0x15bc'),function _0x176d36(_0x5cdc8c,_0x4ea62e){var _0x1e247d=_0x486fca;return _0x5cdc8c['resolve']('userProfileSection@get',{'fields':_0x1e247d('0x1852'),'userProfileId':_0x4ea62e[_0x1e247d('0x15ed')]()[_0x1e247d('0x1618')],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x191,'bodyClass':_0x486fca('0x8ed')})[_0x486fca('0x27e')]('app.voice.inboundroutes',{'url':_0x486fca('0x234f'),'views':{'content@app':{'templateUrl':_0x9aff6e,'controller':_0x486fca('0x1d6e')}},'resolve':{'inboundroutes':[_0x486fca('0x354'),_0x486fca('0x15bc'),function _0x1ccf9d(_0x652638,_0x13eff0){var _0x1c030b=_0x486fca;return _0x13eff0['hasRole']('admin')?_0x652638['resolve'](_0x1c030b('0x742'),{'fields':_0x1c030b('0x2049'),'type':_0x1c030b('0x923'),'sort':_0x1c030b('0x33'),'VoiceExtensionId':'null','limit':0xa,'offset':0x0}):_0x652638[_0x1c030b('0x8ac')]('userProfile@getResources',{'id':_0x13eff0['getCurrentUser']()['userProfileId'],'section':_0x1c030b('0x1f22'),'fields':_0x1c030b('0x2049'),'type':_0x1c030b('0x923'),'sort':_0x1c030b('0x33'),'VoiceExtensionId':_0x1c030b('0x27a'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x486fca('0x354'),_0x486fca('0x15bc'),function _0x28ebd2(_0x571230,_0x145c59){var _0x343358=_0x486fca;return _0x145c59['hasRole']('admin')?null:_0x571230[_0x343358('0x8ac')](_0x343358('0x1e1d'),{'fields':_0x343358('0x1a00'),'id':_0x145c59['getCurrentUser']()[_0x343358('0x1618')]});}],'userProfileSection':[_0x486fca('0x354'),'Auth',function _0x42a9f4(_0x1edf1b,_0x411ecd){var _0x5ee448=_0x486fca;return _0x411ecd[_0x5ee448('0x21de')](_0x5ee448('0x1bd8'))?null:_0x1edf1b[_0x5ee448('0x8ac')](_0x5ee448('0x222f'),{'fields':_0x5ee448('0x1852'),'userProfileId':_0x411ecd[_0x5ee448('0x15ed')]()['userProfileId'],'sectionId':0x192});}]},'authenticate':!![],'permissionId':0x192,'bodyClass':'voice'})[_0x486fca('0x27e')](_0x486fca('0x141b'),{'url':_0x486fca('0x17f5'),'params':{'inboundroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x284ad5,'controller':'InboundRouteController\x20as\x20vm'}},'resolve':{'inboundroute':[_0x486fca('0x354'),_0x486fca('0x114e'),function _0xccf62b(_0x332aec,_0x5e147d){var _0x47b02e=_0x486fca;return _0x332aec[_0x47b02e('0x8ac')](_0x47b02e('0x742'),{'fields':_0x47b02e('0x2049'),'id':_0x5e147d['id']});}],'userProfileSection':[_0x486fca('0x354'),'Auth',function _0x12354b(_0x84d67,_0x55eafc){var _0x92f877=_0x486fca;return _0x84d67['resolve'](_0x92f877('0x222f'),{'fields':_0x92f877('0x1852'),'userProfileId':_0x55eafc[_0x92f877('0x15ed')]()[_0x92f877('0x1618')],'sectionId':0x192});}]},'authenticate':!![],'permissionId':0x192,'bodyClass':'voice'})[_0x486fca('0x27e')](_0x486fca('0x268e'),{'url':_0x486fca('0x2820'),'views':{'content@app':{'templateUrl':_0x32460b,'controller':'OutboundRoutesController\x20as\x20vm'}},'resolve':{'outboundroutes':[_0x486fca('0x354'),_0x486fca('0x15bc'),function _0x185ddc(_0x3100e7,_0x40b224){var _0x44a7ad=_0x486fca;return _0x40b224[_0x44a7ad('0x21de')](_0x44a7ad('0x1bd8'))?_0x3100e7[_0x44a7ad('0x8ac')](_0x44a7ad('0x742'),{'fields':_0x44a7ad('0x1e29'),'type':_0x44a7ad('0x2300'),'sort':_0x44a7ad('0x33'),'VoiceExtensionId':_0x44a7ad('0x27a'),'limit':0xa,'offset':0x0}):_0x3100e7[_0x44a7ad('0x8ac')]('userProfile@getResources',{'id':_0x40b224[_0x44a7ad('0x15ed')]()[_0x44a7ad('0x1618')],'section':_0x44a7ad('0x1d5'),'fields':_0x44a7ad('0x1e29'),'type':_0x44a7ad('0x2300'),'sort':_0x44a7ad('0x33'),'VoiceExtensionId':_0x44a7ad('0x27a'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x486fca('0x354'),'Auth',function _0x3ade66(_0x228d3f,_0x214bf4){var _0x5eceb8=_0x486fca;return _0x214bf4['hasRole'](_0x5eceb8('0x1bd8'))?null:_0x228d3f[_0x5eceb8('0x8ac')](_0x5eceb8('0x1e1d'),{'fields':_0x5eceb8('0x1a00'),'id':_0x214bf4[_0x5eceb8('0x15ed')]()[_0x5eceb8('0x1618')]});}],'userProfileSection':[_0x486fca('0x354'),'Auth',function _0x49d879(_0x49f531,_0x2db2bf){var _0x3a11e5=_0x486fca;return _0x2db2bf[_0x3a11e5('0x21de')](_0x3a11e5('0x1bd8'))?null:_0x49f531[_0x3a11e5('0x8ac')]('userProfileSection@get',{'fields':_0x3a11e5('0x1852'),'userProfileId':_0x2db2bf['getCurrentUser']()['userProfileId'],'sectionId':0x193});}]},'authenticate':!![],'permissionId':0x193,'bodyClass':_0x486fca('0x8ed')})[_0x486fca('0x27e')](_0x486fca('0x271'),{'url':_0x486fca('0x17f5'),'params':{'outboundroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xdc1862,'controller':_0x486fca('0x1f9c')}},'resolve':{'outboundroute':[_0x486fca('0x354'),_0x486fca('0x114e'),function _0x4e588b(_0x4b38ae,_0x29b8a1){var _0x291dee=_0x486fca;return _0x4b38ae[_0x291dee('0x8ac')]('voiceExtension@get',{'fields':'createdAt,updatedAt,id,appdata,type,exten,context,recordingFormat,cutdigits,description','id':_0x29b8a1['id']});}],'userProfileSection':[_0x486fca('0x354'),_0x486fca('0x15bc'),function _0x3c6960(_0x661fec,_0x3d0af7){var _0xaf6aec=_0x486fca;return _0x661fec[_0xaf6aec('0x8ac')]('userProfileSection@get',{'fields':_0xaf6aec('0x1852'),'userProfileId':_0x3d0af7[_0xaf6aec('0x15ed')]()[_0xaf6aec('0x1618')],'sectionId':0x193});}]},'authenticate':!![],'permissionId':0x193,'bodyClass':_0x486fca('0x8ed')})['state'](_0x486fca('0x1c7c'),{'url':'/internalroutes','views':{'content@app':{'templateUrl':_0x42eb73,'controller':'InternalRoutesController\x20as\x20vm'}},'resolve':{'internalroutes':[_0x486fca('0x354'),_0x486fca('0x15bc'),function _0x34f97f(_0x3daa24,_0x429c12){var _0xea84c0=_0x486fca;return _0x429c12[_0xea84c0('0x21de')](_0xea84c0('0x1bd8'))?_0x3daa24[_0xea84c0('0x8ac')]('voiceExtension@get',{'fields':_0xea84c0('0x2049'),'type':_0xea84c0('0x201f'),'sort':'-updatedAt','VoiceExtensionId':_0xea84c0('0x27a'),'limit':0xa,'offset':0x0}):_0x3daa24[_0xea84c0('0x8ac')]('userProfile@getResources',{'id':_0x429c12['getCurrentUser']()[_0xea84c0('0x1618')],'section':_0xea84c0('0x1b43'),'fields':'createdAt,updatedAt,id,appdata,type,exten,context,description','type':_0xea84c0('0x201f'),'sort':_0xea84c0('0x33'),'VoiceExtensionId':'null','limit':0xa,'offset':0x0});}],'userProfile':[_0x486fca('0x354'),_0x486fca('0x15bc'),function _0x36f791(_0x95d18e,_0x2aa6af){var _0x46605c=_0x486fca;return _0x2aa6af[_0x46605c('0x21de')](_0x46605c('0x1bd8'))?null:_0x95d18e[_0x46605c('0x8ac')]('userProfile@get',{'fields':_0x46605c('0x1a00'),'id':_0x2aa6af[_0x46605c('0x15ed')]()['userProfileId']});}],'userProfileSection':[_0x486fca('0x354'),'Auth',function _0x51793(_0x1c855a,_0x1ff32c){var _0x1ed10b=_0x486fca;return _0x1ff32c[_0x1ed10b('0x21de')](_0x1ed10b('0x1bd8'))?null:_0x1c855a[_0x1ed10b('0x8ac')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1ff32c[_0x1ed10b('0x15ed')]()[_0x1ed10b('0x1618')],'sectionId':0x194});}]},'authenticate':!![],'permissionId':0x194,'bodyClass':'voice'})[_0x486fca('0x27e')](_0x486fca('0x16fd'),{'url':_0x486fca('0x17f5'),'params':{'internalroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3320d2,'controller':'InternalRouteController\x20as\x20vm'}},'resolve':{'internalroute':[_0x486fca('0x354'),_0x486fca('0x114e'),function _0x5c28b1(_0x5055e5,_0xecfbf1){var _0x3c2736=_0x486fca;return _0x5055e5[_0x3c2736('0x8ac')](_0x3c2736('0x742'),{'fields':_0x3c2736('0x2049'),'id':_0xecfbf1['id']});}],'userProfileSection':['apiResolver',_0x486fca('0x15bc'),function _0x38e746(_0xc9637c,_0x57ae6e){var _0x4c6356=_0x486fca;return _0xc9637c['resolve'](_0x4c6356('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x57ae6e[_0x4c6356('0x15ed')]()[_0x4c6356('0x1618')],'sectionId':0x194});}]},'authenticate':!![],'permissionId':0x194,'bodyClass':_0x486fca('0x8ed')})[_0x486fca('0x27e')](_0x486fca('0x1d3c'),{'url':'/contexts','views':{'content@app':{'templateUrl':_0x173805,'controller':'ContextsController\x20as\x20vm'}},'resolve':{'contexts':[_0x486fca('0x354'),_0x486fca('0x15bc'),function _0x14b9b1(_0x1d0466,_0x1d1408){var _0x5167e6=_0x486fca;return _0x1d1408['hasRole'](_0x5167e6('0x1bd8'))?_0x1d0466['resolve'](_0x5167e6('0x497'),{'fields':_0x5167e6('0x145a'),'sort':'-updatedAt','defaultEntry':_0x5167e6('0x7a9'),'limit':0xa,'offset':0x0}):_0x1d0466['resolve'](_0x5167e6('0x52f'),{'id':_0x1d1408[_0x5167e6('0x15ed')]()[_0x5167e6('0x1618')],'section':_0x5167e6('0xe4d'),'fields':_0x5167e6('0x145a'),'sort':_0x5167e6('0x33'),'defaultEntry':_0x5167e6('0x7a9'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x486fca('0x354'),_0x486fca('0x15bc'),function _0x42a3f4(_0x1ec6a9,_0x4787f0){var _0x2cff8f=_0x486fca;return _0x4787f0[_0x2cff8f('0x21de')](_0x2cff8f('0x1bd8'))?null:_0x1ec6a9[_0x2cff8f('0x8ac')]('userProfile@get',{'fields':_0x2cff8f('0x1a00'),'id':_0x4787f0[_0x2cff8f('0x15ed')]()[_0x2cff8f('0x1618')]});}],'userProfileSection':[_0x486fca('0x354'),_0x486fca('0x15bc'),function _0x38d885(_0x305b78,_0xd8cd0f){var _0x30170c=_0x486fca;return _0xd8cd0f[_0x30170c('0x21de')]('admin')?null:_0x305b78[_0x30170c('0x8ac')](_0x30170c('0x222f'),{'fields':_0x30170c('0x1852'),'userProfileId':_0xd8cd0f[_0x30170c('0x15ed')]()['userProfileId'],'sectionId':0x195});}]},'authenticate':!![],'permissionId':0x195,'bodyClass':_0x486fca('0x8ed')})[_0x486fca('0x27e')]('app.voice.voicemails',{'url':_0x486fca('0x126d'),'views':{'content@app':{'templateUrl':_0x5767b8,'controller':'VoicemailsController\x20as\x20vm'}},'resolve':{'voicemails':['apiResolver',_0x486fca('0x15bc'),function _0xff4281(_0x54747f,_0x22f551){var _0x3ce6d0=_0x486fca;return _0x22f551[_0x3ce6d0('0x21de')](_0x3ce6d0('0x1bd8'))?_0x54747f[_0x3ce6d0('0x8ac')](_0x3ce6d0('0x1806'),{'fields':_0x3ce6d0('0xd0'),'sort':_0x3ce6d0('0x33'),'limit':0xa,'offset':0x0}):_0x54747f['resolve'](_0x3ce6d0('0x52f'),{'id':_0x22f551['getCurrentUser']()[_0x3ce6d0('0x1618')],'section':_0x3ce6d0('0x1390'),'fields':_0x3ce6d0('0xd0'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x486fca('0x354'),_0x486fca('0x15bc'),function _0x443f61(_0x33cc01,_0x3d800e){var _0x120347=_0x486fca;return _0x3d800e[_0x120347('0x21de')](_0x120347('0x1bd8'))?null:_0x33cc01[_0x120347('0x8ac')](_0x120347('0x1e1d'),{'fields':'id,name,crudPermissions','id':_0x3d800e[_0x120347('0x15ed')]()[_0x120347('0x1618')]});}],'userProfileSection':[_0x486fca('0x354'),_0x486fca('0x15bc'),function _0x49793d(_0x2ce0e6,_0x3f6ea){var _0x5b06b1=_0x486fca;return _0x3f6ea['hasRole'](_0x5b06b1('0x1bd8'))?null:_0x2ce0e6[_0x5b06b1('0x8ac')](_0x5b06b1('0x222f'),{'fields':_0x5b06b1('0x1852'),'userProfileId':_0x3f6ea[_0x5b06b1('0x15ed')]()['userProfileId'],'sectionId':0x196});}]},'authenticate':!![],'permissionId':0x196,'bodyClass':'voice'})[_0x486fca('0x27e')](_0x486fca('0x1279'),{'url':_0x486fca('0x17f5'),'params':{'voicemail':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x547b0c,'controller':_0x486fca('0x4a3')}},'resolve':{'voicemail':[_0x486fca('0x354'),_0x486fca('0x114e'),function _0x176d29(_0x51119a,_0x33525b){var _0x229a55=_0x486fca;return _0x51119a[_0x229a55('0x8ac')]('voiceMail@get',{'fields':_0x229a55('0xd0'),'id':_0x33525b['id']});}],'userProfileSection':[_0x486fca('0x354'),_0x486fca('0x15bc'),function _0x3353f3(_0x4ea8d9,_0x4d5035){var _0x4b41b9=_0x486fca;return _0x4ea8d9[_0x4b41b9('0x8ac')]('userProfileSection@get',{'fields':_0x4b41b9('0x1852'),'userProfileId':_0x4d5035['getCurrentUser']()[_0x4b41b9('0x1618')],'sectionId':0x196});}]},'authenticate':!![],'permissionId':0x196,'bodyClass':_0x486fca('0x8ed')})[_0x486fca('0x27e')]('app.voice.musiconholds',{'url':_0x486fca('0x23c6'),'views':{'content@app':{'templateUrl':_0x5480b4,'controller':_0x486fca('0x1ca4')}},'resolve':{'musiconholds':[_0x486fca('0x354'),_0x486fca('0x15bc'),function _0x2d4132(_0x1339dc,_0x56155c){var _0x52834e=_0x486fca;return _0x56155c[_0x52834e('0x21de')](_0x52834e('0x1bd8'))?_0x1339dc[_0x52834e('0x8ac')](_0x52834e('0x12a6'),{'fields':_0x52834e('0xfcd'),'defaultEntry':_0x52834e('0x7a9'),'limit':0xa,'offset':0x0}):_0x1339dc[_0x52834e('0x8ac')]('userProfile@getResources',{'id':_0x56155c[_0x52834e('0x15ed')]()['userProfileId'],'section':_0x52834e('0xfeb'),'fields':_0x52834e('0xfcd'),'defaultEntry':_0x52834e('0x7a9'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x486fca('0x15bc'),function _0x171d68(_0x5bdf31,_0x4759e7){var _0x506295=_0x486fca;return _0x4759e7[_0x506295('0x21de')](_0x506295('0x1bd8'))?null:_0x5bdf31[_0x506295('0x8ac')](_0x506295('0x1e1d'),{'fields':'id,name,crudPermissions','id':_0x4759e7['getCurrentUser']()[_0x506295('0x1618')]});}],'userProfileSection':['apiResolver',_0x486fca('0x15bc'),function _0x163ac5(_0x54f00a,_0x128087){var _0x2748e3=_0x486fca;return _0x128087['hasRole'](_0x2748e3('0x1bd8'))?null:_0x54f00a[_0x2748e3('0x8ac')](_0x2748e3('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x128087[_0x2748e3('0x15ed')]()[_0x2748e3('0x1618')],'sectionId':0x197});}]},'authenticate':!![],'permissionId':0x197,'bodyClass':_0x486fca('0x8ed')})['state'](_0x486fca('0x787'),{'url':_0x486fca('0x17f5'),'params':{'musiconhold':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2a4538,'controller':_0x486fca('0x471')}},'resolve':{'musiconhold':['apiResolver',_0x486fca('0x114e'),function _0x22d0e6(_0x406400,_0xa90859){var _0x55968e=_0x486fca;return _0x406400[_0x55968e('0x8ac')](_0x55968e('0x12a6'),{'fields':_0x55968e('0xfcd'),'id':_0xa90859['id']});}],'userProfileSection':[_0x486fca('0x354'),_0x486fca('0x15bc'),function _0x4c8fa0(_0x37318c,_0x16eef9){var _0x1ef792=_0x486fca;return _0x37318c[_0x1ef792('0x8ac')](_0x1ef792('0x222f'),{'fields':_0x1ef792('0x1852'),'userProfileId':_0x16eef9[_0x1ef792('0x15ed')]()[_0x1ef792('0x1618')],'sectionId':0x197});}]},'authenticate':!![],'permissionId':0x197,'bodyClass':_0x486fca('0x8ed')})[_0x486fca('0x27e')](_0x486fca('0x4fe'),{'url':_0x486fca('0x25b8'),'views':{'content@app':{'templateUrl':_0x4f7590,'controller':_0x486fca('0x313')}},'resolve':{'voiceRecordings':[_0x486fca('0x354'),_0x486fca('0x15bc'),'msUtils',function _0x5b4d5c(_0x31ec7e,_0x3baff8,_0x4db609){var _0x23240f=_0x486fca;return _0x3baff8[_0x23240f('0x21de')](_0x23240f('0x1bd8'))?_0x31ec7e['resolve']('voiceRecording@get',{'fields':_0x23240f('0x15ee'),'sort':'-updatedAt','createdAt':_0x4db609[_0x23240f('0xe1b')](),'limit':0xa,'offset':0x0}):_0x31ec7e[_0x23240f('0x8ac')](_0x23240f('0x52f'),{'id':_0x3baff8[_0x23240f('0x15ed')]()[_0x23240f('0x1618')],'section':'VoiceRecordings','fields':_0x23240f('0x15ee'),'sort':_0x23240f('0x33'),'createdAt':_0x4db609[_0x23240f('0xe1b')](),'limit':0xa,'offset':0x0});}],'userProfile':[_0x486fca('0x354'),_0x486fca('0x15bc'),function _0x5509b7(_0x51c969,_0x5623ab){var _0x29d540=_0x486fca;return _0x5623ab[_0x29d540('0x21de')](_0x29d540('0x1bd8'))?null:_0x51c969[_0x29d540('0x8ac')](_0x29d540('0x1e1d'),{'fields':'id,name,crudPermissions','id':_0x5623ab[_0x29d540('0x15ed')]()['userProfileId']});}],'userProfileSection':[_0x486fca('0x354'),'Auth',function _0x34d13b(_0x283c84,_0x3b136e){var _0xd19cfa=_0x486fca;return _0x3b136e[_0xd19cfa('0x21de')](_0xd19cfa('0x1bd8'))?null:_0x283c84[_0xd19cfa('0x8ac')](_0xd19cfa('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3b136e[_0xd19cfa('0x15ed')]()[_0xd19cfa('0x1618')],'sectionId':0x198});}]},'authenticate':!![],'permissionId':0x198,'bodyClass':_0x486fca('0x8ed')})[_0x486fca('0x27e')](_0x486fca('0x1c48'),{'url':_0x486fca('0x17f5'),'params':{'voiceRecording':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5a8323,'controller':_0x486fca('0x1112')}},'resolve':{'voiceRecording':[_0x486fca('0x354'),'$stateParams',function _0x7d03f5(_0xb4875f,_0x275c60){var _0xbc261e=_0x486fca;return _0xb4875f['resolve'](_0xbc261e('0x2482'),{'fields':_0xbc261e('0x15ee'),'id':_0x275c60['id']});}],'userProfileSection':['apiResolver',_0x486fca('0x15bc'),function _0x28a342(_0x311747,_0x2fb258){var _0x2ce095=_0x486fca;return _0x311747[_0x2ce095('0x8ac')](_0x2ce095('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2fb258[_0x2ce095('0x15ed')]()[_0x2ce095('0x1618')],'sectionId':0x198});}]},'authenticate':!![],'permissionId':0x198,'bodyClass':_0x486fca('0x8ed')})[_0x486fca('0x27e')](_0x486fca('0x20af'),{'url':_0x486fca('0xf0e'),'views':{'content@app':{'templateUrl':_0x29a973,'controller':_0x486fca('0xfa0')}},'resolve':{'chanSpies':[_0x486fca('0x354'),_0x486fca('0x15bc'),function _0x5bc605(_0x5e1b0f,_0x5428c1){var _0x232527=_0x486fca;return _0x5428c1[_0x232527('0x21de')](_0x232527('0x1bd8'))?_0x5e1b0f[_0x232527('0x8ac')]('voiceChanSpy@get',{'fields':_0x232527('0x164'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x5e1b0f[_0x232527('0x8ac')](_0x232527('0x52f'),{'id':_0x5428c1[_0x232527('0x15ed')]()['userProfileId'],'section':_0x232527('0x96f'),'fields':_0x232527('0x164'),'sort':_0x232527('0x33'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x486fca('0x354'),_0x486fca('0x15bc'),function _0x5792b5(_0x3f33a9,_0x2ad3dd){var _0x4bdc65=_0x486fca;return _0x2ad3dd['hasRole'](_0x4bdc65('0x1bd8'))?null:_0x3f33a9[_0x4bdc65('0x8ac')](_0x4bdc65('0x1e1d'),{'fields':_0x4bdc65('0x1a00'),'id':_0x2ad3dd['getCurrentUser']()[_0x4bdc65('0x1618')]});}],'userProfileSection':['apiResolver','Auth',function _0x4122ae(_0x285cca,_0xc824ec){var _0x3f01f1=_0x486fca;return _0xc824ec[_0x3f01f1('0x21de')](_0x3f01f1('0x1bd8'))?null:_0x285cca['resolve'](_0x3f01f1('0x222f'),{'fields':_0x3f01f1('0x1852'),'userProfileId':_0xc824ec[_0x3f01f1('0x15ed')]()[_0x3f01f1('0x1618')],'sectionId':0x199});}]},'authenticate':!![],'permissionId':0x199,'bodyClass':_0x486fca('0x8ed')})['state'](_0x486fca('0xe77'),{'url':_0x486fca('0x4ae'),'views':{'content@app':{'templateUrl':_0x134e8c,'controller':_0x486fca('0x457')}},'resolve':{'voicePrefixes':[_0x486fca('0x354'),_0x486fca('0x15bc'),function _0x10eae2(_0x3a156e,_0x3d5825){var _0x1fd12d=_0x486fca;return _0x3d5825[_0x1fd12d('0x21de')](_0x1fd12d('0x1bd8'))?_0x3a156e[_0x1fd12d('0x8ac')](_0x1fd12d('0x1a02'),{'fields':_0x1fd12d('0x158c'),'limit':0xa,'offset':0x0}):_0x3a156e[_0x1fd12d('0x8ac')](_0x1fd12d('0x52f'),{'id':_0x3d5825['getCurrentUser']()[_0x1fd12d('0x1618')],'section':'VoicePrefixes','fields':'createdAt,updatedAt,id,name,VoiceExtensionId,callerIdAll,description','limit':0xa,'offset':0x0});}],'userProfile':[_0x486fca('0x354'),_0x486fca('0x15bc'),function _0x304eda(_0x1099b0,_0x1afebc){var _0x186220=_0x486fca;return _0x1afebc[_0x186220('0x21de')](_0x186220('0x1bd8'))?null:_0x1099b0[_0x186220('0x8ac')](_0x186220('0x1e1d'),{'fields':_0x186220('0x1a00'),'id':_0x1afebc['getCurrentUser']()[_0x186220('0x1618')]});}],'userProfileSection':[_0x486fca('0x354'),_0x486fca('0x15bc'),function _0x1e72ab(_0x1859b5,_0x35f482){var _0xc2d990=_0x486fca;return _0x35f482['hasRole'](_0xc2d990('0x1bd8'))?null:_0x1859b5['resolve'](_0xc2d990('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x35f482[_0xc2d990('0x15ed')]()[_0xc2d990('0x1618')],'sectionId':0x19a});}]},'authenticate':!![],'permissionId':0x19a,'bodyClass':'voice'}),_0x5be1d5[_0x486fca('0x20ab')](_0x486fca('0xd22'));}angular[_0x3877e3('0x20d5')](_0x3877e3('0xf47'),[_0x3877e3('0x240c'),_0x3877e3('0x1b0'),_0x3877e3('0xca'),_0x3877e3('0x1d76'),_0x3877e3('0x2437'),_0x3877e3('0x25c7'),_0x3877e3('0x1182'),'ngAria',_0x3877e3('0x19'),_0x3877e3('0x335'),_0x3877e3('0xc90'),_0x3877e3('0x56d'),'mwFormUtils','ngclipboard','angular-cron-jobs',_0x3877e3('0xe39'),_0x3877e3('0x25a2'),'material.components.expansionPanels',_0x3877e3('0x9e0'),_0x3877e3('0x1c54'),_0x3877e3('0x16c2')])[_0x3877e3('0x13')](_0x12dda1)['controller'](_0x3877e3('0x15e'),_0x48fd63)['controller'](_0x3877e3('0xc7f'),_0x1eac39)[_0x3877e3('0x1d5a')]('ContextsController',_0x52a776)[_0x3877e3('0x1d5a')](_0x3877e3('0x144c'),_0x3e9259)[_0x3877e3('0x1d5a')](_0x3877e3('0x1305'),_0x4d7e9c)['controller'](_0x3877e3('0x25fd'),_0x360ebe)[_0x3877e3('0x1d5a')](_0x3877e3('0x21aa'),_0x28dd27)[_0x3877e3('0x1d5a')](_0x3877e3('0x23ac'),_0xa493f5)[_0x3877e3('0x1d5a')]('EditInboundAppdialDialogController',_0x26ee98)[_0x3877e3('0x1d5a')]('EditInboundAppexternaldialDialogController',_0x555c23)['controller'](_0x3877e3('0x15b1'),_0xe882ad)[_0x3877e3('0x1d5a')](_0x3877e3('0x1fa9'),_0x55a6f8)['controller'](_0x3877e3('0x2657'),_0x156011)[_0x3877e3('0x1d5a')](_0x3877e3('0x1fb3'),_0x1c4f06)['controller'](_0x3877e3('0x75'),_0x5ef4c6)[_0x3877e3('0x1d5a')](_0x3877e3('0x19b4'),_0x165df3)['controller'](_0x3877e3('0x22ae'),_0x4a99e0)[_0x3877e3('0x1d5a')](_0x3877e3('0x985'),_0x2b0ebf)['controller'](_0x3877e3('0xbae'),_0x4b84a3)[_0x3877e3('0x1d5a')]('InboundRouteController',_0x11edcc)[_0x3877e3('0x1d5a')]('InboundRoutesController',_0x5310b3)[_0x3877e3('0x1d5a')](_0x3877e3('0xa7d'),_0x214bb3)[_0x3877e3('0x1d5a')](_0x3877e3('0x1e2f'),_0x43e4a4)[_0x3877e3('0x1d5a')](_0x3877e3('0x227c'),_0x2b5322)[_0x3877e3('0x1d5a')](_0x3877e3('0xe1f'),_0x3255dc)[_0x3877e3('0x1d5a')]('EditInternalAppdialDialogController',_0x57ad9a)[_0x3877e3('0x1d5a')](_0x3877e3('0x2863'),_0x4192f6)[_0x3877e3('0x1d5a')](_0x3877e3('0x1800'),_0x2fbeae)[_0x3877e3('0x1d5a')](_0x3877e3('0x627'),_0x1bd345)[_0x3877e3('0x1d5a')](_0x3877e3('0x1fb'),_0x1d1a97)[_0x3877e3('0x1d5a')](_0x3877e3('0x23dc'),_0x1e3d8e)[_0x3877e3('0x1d5a')](_0x3877e3('0x19e3'),_0xfee8a8)[_0x3877e3('0x1d5a')](_0x3877e3('0x512'),_0x4d98e7)['controller'](_0x3877e3('0x1049'),_0x3a967f)[_0x3877e3('0x1d5a')](_0x3877e3('0xd0f'),_0xbe20f4)[_0x3877e3('0x1d5a')](_0x3877e3('0x1fbd'),_0x399a74)[_0x3877e3('0x1d5a')]('InternalRouteController',_0x451005)[_0x3877e3('0x1d5a')]('InternalRoutesController',_0x4f9105)[_0x3877e3('0x1d5a')]('CreateOrEditMusicOnHoldDialogController',_0x1a2e2e)[_0x3877e3('0x1d5a')](_0x3877e3('0x272'),_0x43aa70)[_0x3877e3('0x1d5a')](_0x3877e3('0x1436'),_0x4d5ef8)[_0x3877e3('0x1d5a')]('MusicOnHoldController',_0x222624)[_0x3877e3('0x1d5a')]('MusicOnHoldsController',_0x35d47f),angular[_0x3877e3('0x20d5')]('app.voice')[_0x3877e3('0x1d5a')](_0x3877e3('0x22cb'),_0xc435db)['controller']('OutboundRouteActionsController',_0x7bd514)[_0x3877e3('0x1d5a')]('EditoutboundAppcustomDialogController',_0x2d8e7b)[_0x3877e3('0x1d5a')](_0x3877e3('0x382'),_0x3d0263)[_0x3877e3('0x1d5a')](_0x3877e3('0x257c'),_0x58b168)[_0x3877e3('0x1d5a')](_0x3877e3('0x1a88'),_0x466eac)[_0x3877e3('0x1d5a')](_0x3877e3('0x686'),_0xab22af)['controller'](_0x3877e3('0x103d'),_0x44ddbf)['controller'](_0x3877e3('0x1470'),_0x5dcf49)[_0x3877e3('0x1d5a')](_0x3877e3('0x99b'),_0x6dc6d0)[_0x3877e3('0x1d5a')](_0x3877e3('0x1a94'),_0x2e8050)[_0x3877e3('0x1d5a')]('CreateOrEditvoicePrefixDialogController',_0x28caca)['controller']('voicePrefixagentaddController',_0x18ee12)[_0x3877e3('0x1d5a')](_0x3877e3('0x1916'),_0xc2f1ff)[_0x3877e3('0x1d5a')]('CreateOrEditVoiceQueueDialogController',_0x1dae0c)['controller'](_0x3877e3('0x306'),_0x3cf094)['controller']('VoiceQueueteamaddController',_0x1820f0)[_0x3877e3('0x1d5a')](_0x3877e3('0x1670'),_0x138e88)[_0x3877e3('0x1d5a')]('VoiceQueuesController',_0x37b30d)['controller'](_0x3877e3('0xd4b'),_0x35c7a2)[_0x3877e3('0x1d5a')](_0x3877e3('0x9b5'),_0x39beef)[_0x3877e3('0x1d5a')](_0x3877e3('0x24ed'),_0x21d21e)[_0x3877e3('0x1d5a')]('VoiceRecordingsController',_0xebe529);const _0x2b41ea=_0x398308['p']+'src/js/modules/main/apps/chat/views/chatQueues/chatQueues.html/chatQueues-[chunkhash].html',_0x435468=_0x398308['p']+_0x3877e3('0x1fbb'),_0x2de414=_0x398308['p']+'src/js/modules/main/apps/chat/views/chatWebsites/chatWebsites.html/chatWebsites-[chunkhash].html',_0x58cfe7=_0x398308['p']+_0x3877e3('0x7cd'),_0x10f7bb=_0x398308['p']+_0x3877e3('0x1f00'),_0x4d43b2=_0x398308['p']+'src/js/modules/main/apps/chat/views/realtime/agents/view.html/view-[chunkhash].html',_0x19d494=_0x398308['p']+_0x3877e3('0x204');_0x1744ec['$inject']=[_0x3877e3('0x95a'),'$q',_0x3877e3('0x2313'),'$mdDialog',_0x3877e3('0x243f'),'$filter',_0x3877e3('0x1fc7'),_0x3877e3('0xcb5'),_0x3877e3('0x165c'),_0x3877e3('0xccd'),_0x3877e3('0x25d8'),_0x3877e3('0x1908'),_0x3877e3('0x2703'),_0x3877e3('0x758'),_0x3877e3('0xab4'),'Auth','license',_0x3877e3('0x1e8d')];function _0x1744ec(_0x48eb60,_0x2af55c,_0x26ad16,_0x5d37d0,_0xfaf0a3,_0x528bcd,_0x48ff07,_0x50bef0,_0x542014,_0x160d0a,_0x59575f,_0x239a76,_0x1266f6,_0x2afdd9,_0x14fcc2,_0x2dc2d1,_0x4c1ec7,_0xc904e1){var _0x5dd13f=_0x3877e3,_0x48a3b6=this,_0xd92023=[_0x5dd13f('0x2154'),_0x5dd13f('0x1ecb'),_0x5dd13f('0x190e'),_0x5dd13f('0x1a2c'),_0x5dd13f('0x1f37'),_0x5dd13f('0x1a2c'),_0x5dd13f('0x201f'),'address',_0x5dd13f('0x1785'),_0x5dd13f('0x2022'),_0x5dd13f('0x1396'),_0x5dd13f('0x2826'),_0x5dd13f('0x14bf'),'faxPause',_0x5dd13f('0x1025'),'chatCapacity',_0x5dd13f('0x9db'),_0x5dd13f('0x10e4'),'smsCapacity',_0x5dd13f('0x1570'),'faxCapacity',_0x5dd13f('0x18a6'),_0x5dd13f('0x1ce9'),_0x5dd13f('0x4f9'),_0x5dd13f('0x8db'),_0x5dd13f('0xe1'),_0x5dd13f('0x1317'),_0x5dd13f('0x1cf9'),_0x5dd13f('0xf0'),_0x5dd13f('0x1d70'),'smsStatus',_0x5dd13f('0x1b28'),_0x5dd13f('0x282'),'voiceStatus',_0x5dd13f('0x1ffc'),_0x5dd13f('0x116'),_0x5dd13f('0xf73'),'smsStatusTime',_0x5dd13f('0x18fb'),_0x5dd13f('0x27b6'),'voiceStatusTime','queue',_0x5dd13f('0xa70'),_0x5dd13f('0x17f4'),_0x5dd13f('0x1d44'),_0x5dd13f('0x2422')],_0x3404a1=[_0x5dd13f('0x1785'),_0x5dd13f('0x2022'),_0x5dd13f('0x1396'),'smsPause','whatsappPause',_0x5dd13f('0x23f5'),'voicePause',_0x5dd13f('0x1ecb')];_0x48a3b6['currentUser']=_0x2dc2d1[_0x5dd13f('0x15ed')](),_0x48a3b6[_0x5dd13f('0x16b3')]=[_0x5dd13f('0x200c'),_0x5dd13f('0x1d37'),'busy',_0x5dd13f('0x22b1'),'not_inuse'],_0x48a3b6[_0x5dd13f('0x1fc7')]=_0x48ff07||{'count':0x0,'rows':[]},_0x48a3b6[_0x5dd13f('0x2ff')]=_0x4c1ec7,_0x48a3b6[_0x5dd13f('0x758')]=_0x2afdd9,_0x48a3b6[_0x5dd13f('0xab4')]=_0x14fcc2&&_0x14fcc2[_0x5dd13f('0x205f')]==0x1?_0x14fcc2['rows'][0x0]:null,_0x48a3b6[_0x5dd13f('0x5ed')]=_0x2dc2d1['parseCrudPermissions'](_0x48a3b6[_0x5dd13f('0xab4')]?_0x48a3b6[_0x5dd13f('0xab4')][_0x5dd13f('0x5ed')]:null),_0x48a3b6[_0x5dd13f('0xcb5')]=_0x50bef0?_0x86640f()[_0x5dd13f('0xcde')](_0x50bef0[_0x5dd13f('0x1b33')]?_0x50bef0[_0x5dd13f('0x1b33')]:[],'id'):{},_0x48a3b6['rpcAgents']=_0x542014?_0x86640f()['keyBy'](_0x542014[_0x5dd13f('0x1b33')]?_0x542014[_0x5dd13f('0x1b33')]:[],'id'):{},_0x48a3b6[_0x5dd13f('0x261a')]={},_0x48a3b6[_0x5dd13f('0x20ad')]=![],_0x48a3b6['order']=[],_0x48a3b6['agentInternal']={};for(var _0x219171 in _0x48a3b6[_0x5dd13f('0xcb5')]){typeof _0x48a3b6['agents'][_0x219171]!=='undefined'&&(_0x48a3b6[_0x5dd13f('0xcb5')][_0x219171][_0x5dd13f('0x1d75')]=!![]);}_0x48a3b6[_0x5dd13f('0x77')]={'limit':0xa,'page':0x1,'order':_0x5dd13f('0x20f5'),'globalStatusFilter':'','pauseTypeFilter':''},_0x48a3b6[_0x5dd13f('0xda3')]=_0x53029b,_0x48a3b6[_0x5dd13f('0x9e9')]=_0x27e78c,_0x48a3b6[_0x5dd13f('0x1e26')]=_0x523fd3,_0x48a3b6[_0x5dd13f('0x17d')]=_0x494548,_0x48a3b6[_0x5dd13f('0xa45')]=_0x989505,_0x48a3b6[_0x5dd13f('0x106')]=_0x23f252,_0x48a3b6[_0x5dd13f('0x694')]=_0x2cbe00,_0x48a3b6[_0x5dd13f('0xca6')]=_0x5e608e,_0x48a3b6['checkPause']=_0x4a40e3,_0x48a3b6[_0x5dd13f('0x1ad7')]=_0x22cf7a,_0x48a3b6[_0x5dd13f('0x1b74')]=_0x1c96cc,_0x48a3b6['onUpdate']=_0x3edfcc,_0x48a3b6['onInit']=_0x13fc23,_0x48a3b6[_0x5dd13f('0x7e0')]=_0x22c253,_0x48a3b6[_0x5dd13f('0xebf')]=_0x290f5c,_0x48a3b6['screenRecording']=_0x2cac90,_0x59575f['on'](_0x5dd13f('0x62b'),_0x48a3b6[_0x5dd13f('0x1b74')]),_0x59575f['on']('user:update',_0x48a3b6[_0x5dd13f('0x27d7')]),_0x59575f['on'](_0x5dd13f('0x19a7'),_0x48a3b6[_0x5dd13f('0x7e0')]),_0x59575f['on'](_0x5dd13f('0x1131'),_0x48a3b6[_0x5dd13f('0xebf')]),_0x13fc23();var _0x13423f=_0xc904e1(function(){var _0x13fa6b=_0x5dd13f;_0x48a3b6[_0x13fa6b('0x20ad')]&&(_0x48a3b6[_0x13fa6b('0x20ad')]=![],_0x13fc23());},0x3e7);function _0x13fc23(){var _0x27b8e3=_0x5dd13f;_0x48a3b6[_0x27b8e3('0x20ad')]=![];var _0xaf637e=_0x2af55c[_0x27b8e3('0xca9')]();_0x48a3b6[_0x27b8e3('0x71b')]=_0xaf637e[_0x27b8e3('0x71b')],_0x48a3b6[_0x27b8e3('0x1782')]=[],_0x48a3b6['order']=[],_0x86640f()['forIn'](_0x48a3b6['agents'],function(_0x333d31,_0x1f33f4){var _0x2cc7e5=_0x27b8e3;_0x48a3b6['rpcAgents'][_0x1f33f4]&&_0x86640f()[_0x2cc7e5('0xd0e')](_0x333d31,_0x86640f()['pick'](_0x86640f()[_0x2cc7e5('0x27b1')](_0x48a3b6[_0x2cc7e5('0x165c')][_0x1f33f4],_0x3404a1),_0xd92023)),_0x2cbe00(_0x333d31),_0x333d31[_0x2cc7e5('0x1ecb')]?(_0x48a3b6[_0x2cc7e5('0x1782')][_0x2cc7e5('0x206c')](_0x333d31),_0x48a3b6['agentInternal'][_0x333d31[_0x2cc7e5('0x201f')]]=_0x1f33f4):_0x333d31[_0x2cc7e5('0x1ea5')]=_0x86640f()[_0x2cc7e5('0x1662')](_0x1088bc()()['format']('x'));});_0x48a3b6[_0x27b8e3('0x77')][_0x27b8e3('0xcfb')]&&_0x86640f()[_0x27b8e3('0x16a2')](_0x48a3b6[_0x27b8e3('0x1782')],function(_0x15767f){var _0x5ee62f=_0x27b8e3;return _0x15767f['globalStatus']!==_0x48a3b6[_0x5ee62f('0x77')][_0x5ee62f('0xcfb')];});_0x48a3b6[_0x27b8e3('0x77')]['pauseTypeFilter']&&_0x86640f()[_0x27b8e3('0x16a2')](_0x48a3b6['filteredAgents'],function(_0x59bc4b){var _0x358bd6=_0x27b8e3;return _0x59bc4b[_0x358bd6('0x1f37')]!==_0x48a3b6[_0x358bd6('0x77')][_0x358bd6('0x1024')];});_0x48a3b6['query'][_0x27b8e3('0x1503')]&&_0x86640f()[_0x27b8e3('0x16a2')](_0x48a3b6[_0x27b8e3('0x1782')],function(_0x40f08d){var _0x298577=_0x27b8e3;return _0x40f08d[_0x298577('0x20f5')][_0x298577('0xac2')]()[_0x298577('0x2004')](_0x48a3b6[_0x298577('0x77')][_0x298577('0x1503')][_0x298577('0xac2')]())<0x0;});_0x48a3b6[_0x27b8e3('0x1782')]=_0xf67fee(_0x48a3b6['filteredAgents']);var _0x5b8286=(_0x48a3b6[_0x27b8e3('0x77')][_0x27b8e3('0x2376')]-0x1)*_0x48a3b6[_0x27b8e3('0x77')][_0x27b8e3('0x1f4a')];_0x48a3b6['paginatedAgents']=_0x86640f()['drop'](_0x48a3b6[_0x27b8e3('0x1782')],_0x5b8286)[_0x27b8e3('0xb3d')](0x0,_0x48a3b6[_0x27b8e3('0x77')][_0x27b8e3('0x1f4a')]);for(var _0x3201ea=0x0;_0x3201ea<_0x48a3b6[_0x27b8e3('0x261a')]['length'];_0x3201ea+=0x1){_0x48a3b6[_0x27b8e3('0x2752')][_0x27b8e3('0x206c')](_0x48a3b6['paginatedAgents'][_0x3201ea]['id']);}_0xaf637e[_0x27b8e3('0x8ac')](),_0x48a3b6[_0x27b8e3('0x20ad')]=!![];}function _0x1c96cc(_0x1f2e5e){var _0x5a9628=_0x5dd13f;_0x48a3b6[_0x5a9628('0xcb5')][_0x1f2e5e['id']]&&(_0x86640f()[_0x5a9628('0xd0e')](_0x48a3b6[_0x5a9628('0xcb5')][_0x1f2e5e['id']],_0x86640f()[_0x5a9628('0xc50')](_0x86640f()[_0x5a9628('0x27b1')](_0x1f2e5e,_0x3404a1),_0xd92023)),_0x86640f()['merge'](_0x48a3b6[_0x5a9628('0x165c')][_0x1f2e5e['id']],_0x86640f()['pick'](_0x86640f()[_0x5a9628('0x27b1')](_0x1f2e5e,_0x3404a1),_0xd92023)),_0x2cbe00(_0x48a3b6[_0x5a9628('0xcb5')][_0x1f2e5e['id']]));}function _0x3edfcc(_0x249820){var _0x3bc859=_0x5dd13f;_0x48a3b6[_0x3bc859('0xcb5')][_0x249820['id']]&&(_0x86640f()[_0x3bc859('0xd0e')](_0x48a3b6[_0x3bc859('0xcb5')][_0x249820['id']],_0x86640f()[_0x3bc859('0xc50')](_0x249820,_0xd92023)),_0x86640f()[_0x3bc859('0xd0e')](_0x48a3b6['rpcAgents'][_0x249820['id']],_0x86640f()[_0x3bc859('0xc50')](_0x249820,_0xd92023)),_0x249820[_0x3bc859('0x1a2c')]&&(_0x48a3b6[_0x3bc859('0xcb5')][_0x249820['id']][_0x3bc859('0x1ea5')]=_0x249820[_0x3bc859('0x1a2c')],_0x48a3b6['rpcAgents'][_0x249820['id']][_0x3bc859('0x1ea5')]=_0x249820[_0x3bc859('0x1a2c')]),_0x2cbe00(_0x48a3b6[_0x3bc859('0xcb5')][_0x249820['id']]));}function _0x22c253(_0x439258){var _0x3d1bd6=_0x5dd13f;_0x48a3b6['agents'][_0x48a3b6[_0x3d1bd6('0x24ee')][_0x439258[_0x3d1bd6('0xe4e')]]]&&(_0x86640f()[_0x3d1bd6('0xd0e')](_0x48a3b6[_0x3d1bd6('0xcb5')][_0x48a3b6['agentInternal'][_0x439258[_0x3d1bd6('0xe4e')]]],_0x86640f()[_0x3d1bd6('0xc50')](_0x439258,[_0x3d1bd6('0xbdd'),_0x3d1bd6('0xa70')])),_0x86640f()['merge'](_0x48a3b6[_0x3d1bd6('0x165c')][_0x48a3b6[_0x3d1bd6('0x24ee')][_0x439258[_0x3d1bd6('0xe4e')]]],_0x86640f()[_0x3d1bd6('0xc50')](_0x439258,[_0x3d1bd6('0xbdd'),'destconnectedlinenum'])));}function _0x290f5c(_0x240e90){var _0x365267=_0x5dd13f;_0x48a3b6['agents'][_0x48a3b6[_0x365267('0x24ee')][_0x240e90[_0x365267('0xe4e')]]]&&(_0x48a3b6[_0x365267('0xcb5')][_0x48a3b6[_0x365267('0x24ee')][_0x240e90['destaccountcode']]]=_0x86640f()[_0x365267('0x27b1')](_0x48a3b6['agents'][_0x48a3b6[_0x365267('0x24ee')][_0x240e90[_0x365267('0xe4e')]]],[_0x365267('0xbdd'),_0x365267('0xa70')]),_0x48a3b6[_0x365267('0x165c')][_0x48a3b6[_0x365267('0x24ee')][_0x240e90[_0x365267('0xe4e')]]]=_0x86640f()[_0x365267('0x27b1')](_0x48a3b6[_0x365267('0x165c')][_0x48a3b6[_0x365267('0x24ee')][_0x240e90[_0x365267('0xe4e')]]],[_0x365267('0xbdd'),_0x365267('0xa70')]));}function _0x53029b(_0x2037d2){var _0x15f358=_0x5dd13f;return _0x160d0a[_0x15f358('0x1775')][_0x15f358('0xda3')]({'id':_0x2037d2['id'],'device':_0x15f358('0x116a'),'agent_id':_0x2037d2['id'],'agent_name':_0x2037d2[_0x15f358('0x19fe')]})[_0x15f358('0x1376')][_0x15f358('0x21ad')](function(){var _0x34a306=_0x15f358;_0x239a76[_0x34a306('0xdb1')]({'title':'Agent\x20logout','msg':_0x2037d2[_0x34a306('0x20f5')]+_0x34a306('0x1f57')}),_0x48a3b6['agents'][_0x2037d2['id']]&&(_0x48a3b6[_0x34a306('0xcb5')][_0x2037d2['id']]['online']=![]),_0x48a3b6[_0x34a306('0x165c')][_0x2037d2['id']]&&(_0x48a3b6[_0x34a306('0x165c')][_0x2037d2['id']][_0x34a306('0x1ecb')]=![]),_0x13fc23();})[_0x15f358('0x1c1d')](function(_0x176f19){var _0x592f56=_0x15f358;_0x239a76[_0x592f56('0x2092')]({'title':_0x176f19[_0x592f56('0x209')]?_0x592f56('0x22d')+_0x176f19['status']+_0x592f56('0xa99')+_0x176f19[_0x592f56('0x1808')]:_0x592f56('0x1df9'),'msg':_0x176f19[_0x592f56('0x11c2')]?JSON[_0x592f56('0x25e')](_0x176f19[_0x592f56('0x11c2')][_0x592f56('0x1224')]):_0x176f19[_0x592f56('0x174f')]()});});}function _0x523fd3(_0x3f1d24,_0x4ad6e2){var _0x496c5d=_0x5dd13f;return _0x160d0a[_0x496c5d('0x1775')]['pause']({'id':_0x3f1d24['id'],'type':_0x4ad6e2})['$promise'][_0x496c5d('0x21ad')](function(_0x2a702b){var _0x33a6be=_0x496c5d;_0x48a3b6['agents'][_0x3f1d24['id']]&&_0x86640f()[_0x33a6be('0xd0e')](_0x48a3b6[_0x33a6be('0xcb5')][_0x3f1d24['id']],_0x86640f()[_0x33a6be('0xc50')](_0x2a702b,_0xd92023)),_0x48a3b6['rpcAgents'][_0x3f1d24['id']]&&_0x86640f()[_0x33a6be('0xd0e')](_0x48a3b6['rpcAgents'][_0x3f1d24['id']],_0x86640f()[_0x33a6be('0xc50')](_0x2a702b,_0xd92023)),_0x2cbe00(_0x48a3b6['agents'][_0x3f1d24['id']]);})[_0x496c5d('0x1c1d')](function(_0x2fd739){var _0x470b6d=_0x496c5d;_0x239a76[_0x470b6d('0x2092')]({'title':_0x2fd739[_0x470b6d('0x209')]?_0x470b6d('0x22d')+_0x2fd739[_0x470b6d('0x209')]+_0x470b6d('0xa99')+_0x2fd739[_0x470b6d('0x1808')]:_0x470b6d('0x1df9'),'msg':_0x2fd739[_0x470b6d('0x11c2')]?JSON['stringify'](_0x2fd739[_0x470b6d('0x11c2')][_0x470b6d('0x1224')]):_0x2fd739[_0x470b6d('0x174f')]()});});}function _0x494548(_0x466c35){var _0x1e1a0c=_0x5dd13f;return _0x160d0a[_0x1e1a0c('0x1775')][_0x1e1a0c('0xa8e')]({'id':_0x466c35['id']})['$promise'][_0x1e1a0c('0x21ad')](function(_0x5e289e){var _0x1ac21e=_0x1e1a0c;_0x48a3b6[_0x1ac21e('0xcb5')][_0x466c35['id']]&&_0x86640f()[_0x1ac21e('0xd0e')](_0x48a3b6[_0x1ac21e('0xcb5')][_0x466c35['id']],_0x86640f()[_0x1ac21e('0xc50')](_0x5e289e,_0xd92023)),_0x48a3b6['rpcAgents'][_0x466c35['id']]&&_0x86640f()[_0x1ac21e('0xd0e')](_0x48a3b6[_0x1ac21e('0x165c')][_0x466c35['id']],_0x86640f()[_0x1ac21e('0xc50')](_0x5e289e,_0xd92023)),_0x2cbe00(_0x48a3b6['agents'][_0x466c35['id']]);})['catch'](function(_0x508622){var _0x4a1783=_0x1e1a0c;_0x239a76['error']({'title':_0x508622[_0x4a1783('0x209')]?_0x4a1783('0x22d')+_0x508622[_0x4a1783('0x209')]+_0x4a1783('0xa99')+_0x508622[_0x4a1783('0x1808')]:_0x4a1783('0x1df9'),'msg':_0x508622[_0x4a1783('0x11c2')]?JSON[_0x4a1783('0x25e')](_0x508622['data']['message']):_0x508622[_0x4a1783('0x174f')]()});});}function _0x989505(_0x19784f){var _0x2528cb=_0x5dd13f;_0x5d37d0['show'](_0x5d37d0[_0x2528cb('0x95b')]()[_0x2528cb('0x1226')](!![])['title'](_0x2528cb('0xcc0'))[_0x2528cb('0x276b')](_0x2528cb('0xfcf'))['ok']('Ok')['targetEvent'](_0x19784f));}function _0x27e78c(_0x29d230,_0x535380){var _0x4762be=_0x5dd13f;_0x5d37d0[_0x4762be('0x853')]({'controller':_0x4762be('0x213f'),'controllerAs':'vm','templateUrl':_0x287ed6,'parent':angular[_0x4762be('0x1676')](_0xfaf0a3[_0x4762be('0x2452')]),'targetEvent':_0x535380,'clickOutsideToClose':!![],'locals':{'agent':_0x29d230,'agents':[],'channel':_0x4762be('0x1f65'),'direction':_0x4762be('0x923'),'crudPermissions':_0x48a3b6['crudPermissions']}});}function _0x5e608e(_0x3c4ff6){var _0x5c3573=_0x5dd13f;return _0x3c4ff6===_0x5c3573('0x1e26')||_0x3c4ff6==='*pause';}function _0x4a40e3(_0x316289){return _0x316289==='pause';}function _0x22cf7a(_0x1dbf06){var _0x1efcdb=_0x5dd13f;return _0x1dbf06===_0x1efcdb('0x1a4e');}function _0x3e53de(_0x1c184f){var _0x497de2=_0x5dd13f;return _0x1c184f===_0x497de2('0x219')||_0x1c184f===_0x497de2('0x1a4f')||_0x1c184f===_0x497de2('0x22fd')||_0x1c184f==='ringing'||_0x86640f()[_0x497de2('0x1c7')](_0x1c184f);}function _0x23f252(_0x657abd,_0x215523){var _0x185e85=_0x5dd13f;if(_0x215523==='voice'){if(_0x657abd[_0x215523+_0x185e85('0x843')]!==_0x185e85('0x219'))return _0x657abd[_0x215523+_0x185e85('0x843')];if(_0x657abd[_0x215523+'Pause'])return _0x657abd[_0x215523+_0x185e85('0x843')]='pause',_0x185e85('0x1e26');return _0x185e85('0x219');}else{if(_0x657abd[_0x215523+_0x185e85('0xc77')])return _0x657abd[_0x215523+_0x185e85('0x843')]=_0x185e85('0x1e26'),'pause';return _0x657abd[_0x215523+'Status'];}}function _0x2cbe00(_0x5826ac){var _0x2b7189=_0x5dd13f,_0x8f12e9=_0x2b7189('0x1a4f');if(_0x86640f()[_0x2b7189('0xc74')]([_0x23f252(_0x5826ac,_0x2b7189('0x8ed')),_0x23f252(_0x5826ac,_0x2b7189('0x1f65')),_0x23f252(_0x5826ac,'mail'),_0x23f252(_0x5826ac,'openchannel'),_0x23f252(_0x5826ac,_0x2b7189('0x3d0')),_0x23f252(_0x5826ac,'whatsapp'),_0x23f252(_0x5826ac,'fax')],_0x5e608e))_0x8f12e9=_0x2b7189('0x1e26');else{if(_0x86640f()[_0x2b7189('0x2664')]([_0x23f252(_0x5826ac,_0x2b7189('0x8ed')),_0x23f252(_0x5826ac,_0x2b7189('0x1f65')),_0x23f252(_0x5826ac,_0x2b7189('0x1c8b')),_0x23f252(_0x5826ac,_0x2b7189('0xac9')),_0x23f252(_0x5826ac,_0x2b7189('0x3d0')),_0x23f252(_0x5826ac,'whatsapp'),_0x23f252(_0x5826ac,_0x2b7189('0x93f'))],_0x5e608e))_0x8f12e9='*pause';else _0x86640f()['every']([_0x23f252(_0x5826ac,_0x2b7189('0x8ed')),_0x23f252(_0x5826ac,'chat'),_0x23f252(_0x5826ac,'mail'),_0x23f252(_0x5826ac,_0x2b7189('0xac9')),_0x23f252(_0x5826ac,_0x2b7189('0x3d0')),_0x23f252(_0x5826ac,_0x2b7189('0x1ad4')),_0x23f252(_0x5826ac,'fax')],_0x3e53de)?_0x8f12e9=_0x2b7189('0x219'):_0x8f12e9=_0x2b7189('0x860');}_0x5826ac[_0x2b7189('0x100f')]!==_0x8f12e9&&(_0x5826ac[_0x2b7189('0x100f')]=_0x8f12e9,_0x5826ac[_0x2b7189('0x1d75')]?(_0x5826ac[_0x2b7189('0x1d75')]=![],_0x5826ac[_0x2b7189('0x1ea5')]=_0x5e608e(_0x8f12e9)?_0x86640f()[_0x2b7189('0x1662')](_0x1088bc()(_0x5826ac['lastPauseAt'])[_0x2b7189('0x153')]('x')):_0x86640f()['max']([_0x5826ac[_0x2b7189('0xc0')],_0x5826ac['chatStatusTime'],_0x5826ac['mailStatusTime'],_0x5826ac['smsStatusTime'],_0x5826ac[_0x2b7189('0x18fb')],_0x5826ac[_0x2b7189('0x116')],_0x5826ac['faxStatusTime']])):_0x5826ac['globalStatusTime']=_0x86640f()[_0x2b7189('0x1662')](_0x1088bc()()[_0x2b7189('0x153')]('x')));}function _0xf67fee(_0x34442a){var _0x3e739c=_0x5dd13f,_0x19bf7b=_0x86640f()[_0x3e739c('0x2837')](_0x48a3b6[_0x3e739c('0x77')]['order'],'-')?_0x3e739c('0x340'):_0x3e739c('0x15d6');return _0x86640f()[_0x3e739c('0x11df')](_0x34442a,[_0x48a3b6[_0x3e739c('0x77')]['order'][_0x3e739c('0x16e4')]('-','')],[_0x19bf7b]);}function _0x1cac84(){var _0x1f518c=_0x5dd13f;_0x13423f&&(_0xc904e1[_0x1f518c('0x3b5')](_0x13423f),_0x13423f=null);}function _0x2cac90(_0x397305,_0x29496b){var _0x31fc5f=_0x5dd13f;return _0x160d0a[_0x31fc5f('0x1775')][_0x31fc5f('0x5ef')]({'id':_0x397305['id']},{'screenrecording':_0x29496b})[_0x31fc5f('0x1376')]['catch'](function(_0x34c75a){var _0xddaf9a=_0x31fc5f;_0x239a76[_0xddaf9a('0x2092')]({'title':_0x34c75a[_0xddaf9a('0x209')]?'API:'+_0x34c75a[_0xddaf9a('0x209')]+'\x20-\x20'+_0x34c75a['statusText']:_0xddaf9a('0x14b6'),'msg':_0x34c75a['data']?JSON[_0xddaf9a('0x25e')](_0x34c75a[_0xddaf9a('0x11c2')][_0xddaf9a('0x1224')]):_0x34c75a['toString']()});});}_0x48eb60['$on'](_0x5dd13f('0x1210'),function(){var _0x4b110d=_0x5dd13f;_0x59575f['removeAllListeners'](_0x4b110d('0x62b')),_0x59575f[_0x4b110d('0x16cc')](_0x4b110d('0x21f4')),_0x59575f['removeAllListeners'](_0x4b110d('0x19a7')),_0x59575f[_0x4b110d('0x16cc')](_0x4b110d('0x1131')),_0x1cac84();});}const _0x5dfd9d=_0x1744ec,_0x478621=_0x398308['p']+_0x3877e3('0xc02'),_0x1867e9=_0x398308['p']+_0x3877e3('0x10fb');_0x270b0['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0x2313'),'$mdDialog','$q',_0x3877e3('0x243f'),_0x3877e3('0x1e8d'),_0x3877e3('0xb7a'),_0x3877e3('0x245'),'api',_0x3877e3('0x25d8'),_0x3877e3('0x1908'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0x15bc')];function _0x270b0(_0x1d84a0,_0x4f8f84,_0x1a3b36,_0x57d499,_0x1772a0,_0x2b27ca,_0x18f8cb,_0x558b9f,_0xb6b585,_0x502ed7,_0x423509,_0x8f178e,_0x5c78a2,_0x261245){var _0xd063f4=_0x3877e3,_0x4ca38c=this,_0x5d78f4=[_0xd063f4('0x1efa'),_0xd063f4('0x21ef'),_0xd063f4('0x8b6'),_0xd063f4('0x4f6'),_0xd063f4('0xc37'),_0xd063f4('0x108'),_0xd063f4('0x1224'),_0xd063f4('0x13dc'),_0xd063f4('0x1c4b'),_0xd063f4('0x1e2e'),_0xd063f4('0x250c')];_0x4ca38c['currentUser']=_0x261245['getCurrentUser'](),_0x4ca38c[_0xd063f4('0x205f')]=_0x18f8cb['count']?_0x18f8cb[_0xd063f4('0x205f')]:0x0,_0x4ca38c[_0xd063f4('0xb7a')]=_0x18f8cb?_0x86640f()[_0xd063f4('0xcde')](_0x18f8cb[_0xd063f4('0x1b33')]?_0x18f8cb[_0xd063f4('0x1b33')]:[],'id'):{},_0x4ca38c[_0xd063f4('0x245')]=_0x558b9f?_0x86640f()[_0xd063f4('0xcde')](_0x558b9f[_0xd063f4('0x1b33')]?_0x558b9f[_0xd063f4('0x1b33')]:[],'id'):{},_0x4ca38c[_0xd063f4('0x758')]=_0x8f178e,_0x4ca38c[_0xd063f4('0xab4')]=_0x5c78a2&&_0x5c78a2['count']==0x1?_0x5c78a2[_0xd063f4('0x1b33')][0x0]:null,_0x4ca38c[_0xd063f4('0x5ed')]=_0x261245['parseCrudPermissions'](_0x4ca38c[_0xd063f4('0xab4')]?_0x4ca38c[_0xd063f4('0xab4')][_0xd063f4('0x5ed')]:null);_0x261245[_0xd063f4('0x21de')](_0xd063f4('0x1bd8'))?_0x4ca38c[_0xd063f4('0x77')]={'type':_0xd063f4('0x923'),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0x4ca38c[_0xd063f4('0x77')]={'id':_0x4ca38c[_0xd063f4('0x123f')]['id'],'channel':_0xd063f4('0x1f65'),'type':_0xd063f4('0x923'),'sort':_0xd063f4('0x33'),'limit':0xa,'page':0x1};_0x4ca38c[_0xd063f4('0xdb1')]=_0x24bc33,_0x4ca38c['getQueues']=_0x3fbba7,_0x4ca38c[_0xd063f4('0xad0')]=_0x4dc76a,_0x4ca38c[_0xd063f4('0x40b')]=_0x3c6bc6,_0x4ca38c[_0xd063f4('0x14c1')]=_0x20a47d,_0x4ca38c[_0xd063f4('0x1b74')]=_0x3d790a,_0x4ca38c[_0xd063f4('0x7c7')]=_0x1aeb6a,_0x4ca38c[_0xd063f4('0xc32')]=_0x196300,_0x4ca38c['onPause']=_0x7a3cd,_0x4ca38c[_0xd063f4('0xf80')]=_0x29650d,_0x4ca38c[_0xd063f4('0x27a5')]=_0xd650f7,_0x4ca38c[_0xd063f4('0x14b')]=_0x446b4d,_0x4ca38c[_0xd063f4('0x2752')]=[],_0x86640f()[_0xd063f4('0xd54')](_0x4ca38c['queues'],function(_0x3f0a39){_0x4ca38c['order']['push'](_0x3f0a39['id']);}),_0x502ed7['on'](_0xd063f4('0x63d'),_0x4ca38c[_0xd063f4('0x1b74')]),_0x502ed7['on'](_0xd063f4('0x6f'),_0x4ca38c[_0xd063f4('0x7c7')]),_0x502ed7['on']('userChatQueue:remove',_0x4ca38c[_0xd063f4('0xc32')]),_0x502ed7['on']('user:update',_0x4ca38c['onPause']),_0x502ed7['on'](_0xd063f4('0x3b0'),_0x4ca38c['onLogout']),_0x502ed7['on']('userVoiceQueue:save',_0x4ca38c[_0xd063f4('0xf80')]);function _0x446b4d(){var _0x16831b=_0xd063f4,_0x58cd2a=[];return _0x86640f()[_0x16831b('0xd54')](_0x4ca38c[_0x16831b('0xb7a')],function(_0xbbb8f1,_0x281c91){var _0x556223=_0x16831b;_0xbbb8f1[_0x556223('0x250c')]=0x0,_0xbbb8f1['loggedInDb']=0x0,_0x4ca38c['queues'][_0x281c91][_0x556223('0xcb5')]={},_0x58cd2a[_0x556223('0x206c')](_0xb6b585[_0x556223('0x6b5')][_0x556223('0xad6')]({'id':_0x281c91})[_0x556223('0x1376')]),_0x4ca38c['rpcQueues'][_0x281c91]&&_0x86640f()[_0x556223('0xd0e')](_0xbbb8f1,_0x86640f()[_0x556223('0xc50')](_0x4ca38c[_0x556223('0x245')][_0x281c91],_0x5d78f4));}),_0x57d499[_0x16831b('0x1ba7')](_0x58cd2a)[_0x16831b('0x21ad')](function(_0xa13879){var _0x2caff9=_0x16831b;for(var _0x2e4421=0x0;_0x2e4421<_0xa13879['length'];_0x2e4421+=0x1){for(var _0x238805=0x0;_0x238805<_0xa13879[_0x2e4421][_0x2caff9('0x1b33')]['length'];_0x238805++){_0xa13879[_0x2e4421][_0x2caff9('0x1b33')][_0x238805][_0x2caff9('0x250c')]&&_0x4ca38c[_0x2caff9('0xb7a')][_0xa13879[_0x2e4421]['rows'][_0x238805][_0x2caff9('0x1b7a')]][_0x2caff9('0x250c')]++,_0x4ca38c[_0x2caff9('0xb7a')][_0xa13879[_0x2e4421][_0x2caff9('0x1b33')][_0x238805][_0x2caff9('0x1b7a')]][_0x2caff9('0x29')]++,_0x4ca38c[_0x2caff9('0xb7a')][_0xa13879[_0x2e4421][_0x2caff9('0x1b33')][_0x238805][_0x2caff9('0x1b7a')]]['agents'][_0xa13879[_0x2e4421][_0x2caff9('0x1b33')][_0x238805][_0x2caff9('0x1dc6')]]=_0xa13879[_0x2e4421]['rows'][_0x238805][_0x2caff9('0x1b7a')];}}})[_0x16831b('0x1c1d')](function(_0x3132d1){var _0x27df3e=_0x16831b;console[_0x27df3e('0x2092')](_0x3132d1);});}function _0x3d790a(_0x4b2b1d){var _0x2af515=_0xd063f4;_0x4ca38c[_0x2af515('0xb7a')][_0x4b2b1d['id']]&&_0x86640f()[_0x2af515('0xd0e')](_0x4ca38c[_0x2af515('0xb7a')][_0x4b2b1d['id']],_0x86640f()[_0x2af515('0xc50')](_0x4b2b1d,_0x5d78f4));}function _0x1aeb6a(_0x5cb174){var _0x27a51b=_0xd063f4;_0x4ca38c[_0x27a51b('0xb7a')][_0x5cb174['ChatQueueId']]&&_0x4ca38c['queues'][_0x5cb174[_0x27a51b('0x1b7a')]]['loggedInDb']++;}function _0x196300(_0x2e14e8){var _0xdb3b57=_0xd063f4;_0x4ca38c['queues'][_0x2e14e8[_0xdb3b57('0x1b7a')]]&&_0x4ca38c[_0xdb3b57('0xb7a')][_0x2e14e8['ChatQueueId']]['loggedInDb']--;}function _0x7a3cd(_0x2059fb){var _0x14fa02=_0xd063f4;console[_0x14fa02('0x6fb')](_0x14fa02('0x22bf'),_0x2059fb);if(_0x2059fb[_0x14fa02('0x1025')])_0x86640f()[_0x14fa02('0xd54')](_0x4ca38c[_0x14fa02('0xb7a')],function(_0x1c62bd){var _0x1d9826=_0x14fa02;_0x1c62bd[_0x1d9826('0xcb5')][_0x2059fb['id']]&&(_0x1c62bd['paused']+=0x1,console[_0x1d9826('0x6fb')](_0x1d9826('0x1e26')));});else!_0x2059fb[_0x14fa02('0x1025')]&&_0x86640f()[_0x14fa02('0xd54')](_0x4ca38c[_0x14fa02('0xb7a')],function(_0x50b485){var _0x30840f=_0x14fa02;_0x50b485[_0x30840f('0xcb5')][_0x2059fb['id']]&&(_0x50b485[_0x30840f('0x250c')]>0x0&&(_0x50b485[_0x30840f('0x250c')]-=0x1,console[_0x30840f('0x6fb')]('unpause')));});}function _0x29650d(_0x509eb3){var _0x3c4288=_0xd063f4;console[_0x3c4288('0x6fb')](_0x3c4288('0x1b6a'),_0x509eb3),_0x4ca38c[_0x3c4288('0xb7a')][_0x509eb3[_0x3c4288('0x1b7a')]]&&(_0x4ca38c['queues'][_0x509eb3[_0x3c4288('0x1b7a')]]['loggedInDb']+=0x1,_0x4ca38c['queues'][_0x509eb3[_0x3c4288('0x1b7a')]][_0x3c4288('0xcb5')][_0x509eb3['UserId']]=_0x509eb3[_0x3c4288('0x1b7a')]);}function _0xd650f7(_0x192b13){var _0xf1857f=_0xd063f4;console[_0xf1857f('0x6fb')](_0xf1857f('0x27a5'),_0x192b13),_0x4ca38c[_0xf1857f('0xb7a')][_0x192b13['ChatQueueId']]&&_0x4ca38c[_0xf1857f('0xb7a')][_0x192b13[_0xf1857f('0x1b7a')]][_0xf1857f('0x29')]>0x0&&(_0x4ca38c[_0xf1857f('0xb7a')][_0x192b13[_0xf1857f('0x1b7a')]][_0xf1857f('0x29')]-=0x1,delete _0x4ca38c[_0xf1857f('0xb7a')][_0x192b13[_0xf1857f('0x1b7a')]]['agents'][_0x192b13[_0xf1857f('0x1dc6')]]);}var _0x372a32=!![],_0x160c88=0x1;_0x1d84a0[_0xd063f4('0x10e8')](_0xd063f4('0x1948'),function(_0x22fae6,_0x4fa5e5){var _0x21727a=_0xd063f4;_0x372a32?_0x4f8f84(function(){_0x372a32=![];}):(!_0x4fa5e5&&(_0x160c88=_0x4ca38c[_0x21727a('0x77')][_0x21727a('0x2376')]),_0x22fae6!==_0x4fa5e5&&(_0x4ca38c[_0x21727a('0x77')][_0x21727a('0x2376')]=0x1),!_0x22fae6&&(_0x4ca38c['query'][_0x21727a('0x2376')]=_0x160c88),_0x4ca38c[_0x21727a('0x71c')]());});function _0x24bc33(_0x56f02d){var _0x3c6a91=_0xd063f4;_0x4ca38c[_0x3c6a91('0x205f')]=_0x56f02d[_0x3c6a91('0x205f')],_0x4ca38c[_0x3c6a91('0xb7a')]=_0x56f02d?_0x86640f()[_0x3c6a91('0xcde')](_0x56f02d[_0x3c6a91('0x1b33')]?_0x56f02d['rows']:[],'id'):{};if(_0x56f02d[_0x3c6a91('0x1b33')]){_0x4ca38c[_0x3c6a91('0x2752')]=[];for(var _0x430d75=0x0;_0x430d75<_0x56f02d[_0x3c6a91('0x1b33')][_0x3c6a91('0x577')];_0x430d75++){_0x4ca38c[_0x3c6a91('0x2752')][_0x3c6a91('0x206c')](_0x56f02d[_0x3c6a91('0x1b33')][_0x430d75]['id']);}}_0x446b4d();}function _0x3fbba7(){var _0x99c845=_0xd063f4;_0x4ca38c[_0x99c845('0x77')]['offset']=(_0x4ca38c[_0x99c845('0x77')][_0x99c845('0x2376')]-0x1)*_0x4ca38c[_0x99c845('0x77')][_0x99c845('0x1f4a')],_0x261245['hasRole']('admin')?_0x4ca38c[_0x99c845('0x71b')]=_0xb6b585['chatQueue']['get'](_0x4ca38c['query'],_0x24bc33)[_0x99c845('0x1376')]:(_0x4ca38c[_0x99c845('0x77')]['id']=_0x4ca38c[_0x99c845('0x758')]['id'],_0x4ca38c[_0x99c845('0x77')][_0x99c845('0x26ad')]=_0x99c845('0xf82'),_0x4ca38c[_0x99c845('0x71b')]=_0xb6b585[_0x99c845('0x758')][_0x99c845('0x321')](_0x4ca38c[_0x99c845('0x77')],_0x24bc33)['$promise']);}function _0x4dc76a(_0x306249,_0x3786a5){var _0x18de38=_0xd063f4;_0x1a3b36[_0x18de38('0x853')]({'controller':'CreateOrEditChatQueueDialogController','controllerAs':'vm','templateUrl':_0x478621,'parent':angular['element'](_0x1772a0[_0x18de38('0x2452')]),'targetEvent':_0x306249,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x3786a5,'chatQueues':_0x86640f()[_0x18de38('0x1843')](_0x4ca38c[_0x18de38('0xb7a')]),'license':null,'setting':null,'crudPermissions':_0x4ca38c['crudPermissions']}});}function _0x3c6bc6(_0x11e496,_0x2fda26){var _0x311637=_0xd063f4;_0x1a3b36[_0x311637('0x853')]({'controller':_0x311637('0x139a'),'controllerAs':'vm','templateUrl':_0x1867e9,'parent':angular[_0x311637('0x1676')](_0x1772a0[_0x311637('0x2452')]),'targetEvent':_0x11e496,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x2fda26,'chatQueues':_0x4ca38c[_0x311637('0xb7a')]?_0x4ca38c['queues'][_0x311637('0x1b33')]:[],'realtime':![],'crudPermissions':_0x4ca38c[_0x311637('0x5ed')]}});}function _0x20a47d(_0x2a50ee){return _0xb6b585['chatQueue']['update'](_0x2a50ee)['$promise']['then'](function(){var _0x80ab86=a0_0x2e7f;_0x423509[_0x80ab86('0xdb1')]({'title':_0x80ab86('0x12f9'),'msg':_0x2a50ee['name']?_0x2a50ee['name']+_0x80ab86('0xa8d'):''});})['catch'](function(_0x25c2a1){var _0x456dc5=a0_0x2e7f;_0x423509[_0x456dc5('0x2092')]({'title':'Error\x20creating\x20queue!','msg':_0x25c2a1[_0x456dc5('0x1224')]});});}_0x1d84a0[_0xd063f4('0x1723')](_0xd063f4('0x1210'),function(){var _0x4daf7c=_0xd063f4;_0x502ed7[_0x4daf7c('0x16cc')](_0x4daf7c('0x63d')),_0x502ed7[_0x4daf7c('0x16cc')](_0x4daf7c('0x149e')),_0x502ed7[_0x4daf7c('0x16cc')](_0x4daf7c('0x6f')),_0x502ed7[_0x4daf7c('0x16cc')]('user:update'),_0x502ed7['removeAllListeners'](_0x4daf7c('0x3b0')),_0x502ed7['removeAllListeners']('userVoiceQueue:save');});}const _0x322ea1=_0x270b0;function _0x260224(){var _0x48ac42=_0x3877e3;return{'status':{'registered':_0x48ac42('0x23d9'),'unregistered':_0x48ac42('0xf93'),'lagged':_0x48ac42('0xf93'),'reachable':_0x48ac42('0x23d9'),'unreachable':'red-300-fg\x20icon-close-circle','unknown':'grey-fg\x20icon-minus-circle'},'state':{'unknown':_0x48ac42('0x6b3'),'not_inuse':_0x48ac42('0x2468'),'inuse':_0x48ac42('0x270d'),'busy':_0x48ac42('0x20c'),'invalid':_0x48ac42('0x6b3'),'unavailable':_0x48ac42('0x6b3'),'ringing':_0x48ac42('0x540'),'ringinuse':'blue-300-fg\x20icon-phone-incoming','onhold':'blue-300-fg\x20icon-phone-paused'},'channelStatus':{'ring':_0x48ac42('0x540'),'up':_0x48ac42('0x1dcd'),'hangup':'red-300-fg\x20icon-phone-hangup'},'channelStatusOut':{'ring':_0x48ac42('0x229b'),'up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x48ac42('0xe0f')}};}const _0x54d02d=_0x260224;_0x11817d[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0xa9f'),_0x3877e3('0x25d8')];function _0x11817d(_0x2c600f,_0x341d28,_0x27f0af){var _0x41b909=_0x3877e3,_0x57e00a=this;_0x27f0af[_0x41b909('0x8d8')](),_0x27f0af[_0x41b909('0x663')](),_0x57e00a[_0x41b909('0x302')]=0x0;switch(_0x341d28[_0x41b909('0x1ccb')][_0x41b909('0x19fe')]){case _0x41b909('0x48c'):_0x57e00a[_0x41b909('0x302')]=0x0;break;case _0x41b909('0x15f7'):_0x57e00a[_0x41b909('0x302')]=0x1;break;default:_0x57e00a[_0x41b909('0x302')]=0x0,_0x341d28['go']('app.chat.realtime.agents');}_0x2c600f[_0x41b909('0x10e8')](_0x41b909('0xc2'),function(_0x1af0bd,_0x227914){var _0x50c3aa=_0x41b909;if(_0x1af0bd!==_0x227914)switch(_0x1af0bd){case 0x0:_0x341d28['go']('app.chat.realtime.agents');break;case 0x1:_0x341d28['go']('app.chat.realtime.queues');break;default:_0x341d28['go'](_0x50c3aa('0x48c'));}});}const _0x3f091a=_0x11817d;_0x3ce77e[_0x3877e3('0x1a81')]=['$stateProvider'];function _0x3ce77e(_0x1c5b81){var _0x5da15e=_0x3877e3;_0x1c5b81['state'](_0x5da15e('0x1062'),{'url':_0x5da15e('0x1b34'),'views':{'content@app':{'templateUrl':_0x10f7bb,'controller':_0x5da15e('0x36e')}},'resolve':{'userProfile':[_0x5da15e('0x354'),'Auth',function _0x4b0914(_0xa2bf9b,_0x32bb9d){var _0x58a402=_0x5da15e;return _0x32bb9d[_0x58a402('0x21de')]('admin')?null:_0xa2bf9b[_0x58a402('0x8ac')]('userProfile@get',{'fields':_0x58a402('0x1a00'),'id':_0x32bb9d[_0x58a402('0x15ed')]()[_0x58a402('0x1618')]});}],'userProfileSection':[_0x5da15e('0x354'),'Auth',function _0x305cc9(_0x50bf1b,_0x55e76c){var _0x309452=_0x5da15e;return _0x55e76c[_0x309452('0x21de')](_0x309452('0x1bd8'))?null:_0x50bf1b['resolve']('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x55e76c[_0x309452('0x15ed')]()[_0x309452('0x1618')],'sectionId':0x1fe});}]},'authenticate':!![],'permissionId':0x1fe})[_0x5da15e('0x27e')]('app.chat.realtime.agents',{'url':_0x5da15e('0x69c'),'controller':_0x5da15e('0x133'),'templateUrl':_0x4d43b2,'resolve':{'pauses':[_0x5da15e('0x354'),function _0x37b9d2(_0x366118){var _0x35f488=_0x5da15e;return _0x366118['resolve'](_0x35f488('0x12e0'),{'nolimit':!![]});}],'agents':[_0x5da15e('0x354'),_0x5da15e('0x15bc'),function _0x3d7eab(_0x2b9159,_0x5dfb84){var _0x246c38=_0x5da15e;return _0x5dfb84[_0x246c38('0x21de')](_0x246c38('0x1bd8'))?_0x2b9159[_0x246c38('0x8ac')](_0x246c38('0x1913'),{'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':'fullname','nolimit':!![]}):_0x2b9159[_0x246c38('0x8ac')](_0x246c38('0x52f'),{'id':_0x5dfb84[_0x246c38('0x15ed')]()['userProfileId'],'section':_0x246c38('0xfed'),'fields':_0x246c38('0x856'),'role':_0x246c38('0x2402'),'sort':_0x246c38('0x20f5'),'nolimit':!![]});}],'userProfile':['apiResolver',_0x5da15e('0x15bc'),function _0x23bfed(_0x542d88,_0x1501e1){var _0x3bedf9=_0x5da15e;return _0x1501e1[_0x3bedf9('0x21de')](_0x3bedf9('0x1bd8'))?null:_0x542d88['resolve'](_0x3bedf9('0x1e1d'),{'fields':_0x3bedf9('0x1a00'),'id':_0x1501e1[_0x3bedf9('0x15ed')]()[_0x3bedf9('0x1618')]});}],'userProfileSection':[_0x5da15e('0x354'),_0x5da15e('0x15bc'),function _0x3fda2e(_0x2ba9b0,_0x41eb05){var _0x34bf19=_0x5da15e;return _0x41eb05[_0x34bf19('0x21de')]('admin')?null:_0x2ba9b0[_0x34bf19('0x8ac')](_0x34bf19('0x222f'),{'fields':_0x34bf19('0x1852'),'userProfileId':_0x41eb05['getCurrentUser']()['userProfileId'],'sectionId':0xca});}],'rpcAgents':[_0x5da15e('0x354'),function _0x5991f1(_0x3c271f){var _0x34214c=_0x5da15e;return _0x3c271f[_0x34214c('0x8ac')](_0x34214c('0x2685'));}]},'authenticate':!![],'permissionId':0x1fe})[_0x5da15e('0x27e')](_0x5da15e('0x15f7'),{'url':_0x5da15e('0x13e2'),'controller':_0x5da15e('0x2562'),'templateUrl':_0x19d494,'resolve':{'queues':[_0x5da15e('0x354'),_0x5da15e('0x15bc'),function _0x51e3b7(_0x49ee71,_0x3b2c74){var _0x4323d8=_0x5da15e;return _0x3b2c74[_0x4323d8('0x21de')]('admin')?_0x49ee71[_0x4323d8('0x8ac')](_0x4323d8('0x1946'),{'type':'inbound','sort':_0x4323d8('0x33'),'limit':0xa,'offset':0x0}):_0x49ee71[_0x4323d8('0x8ac')](_0x4323d8('0x52f'),{'id':_0x3b2c74[_0x4323d8('0x15ed')]()[_0x4323d8('0x1618')],'section':_0x4323d8('0xf82'),'channel':'chat','type':_0x4323d8('0x923'),'sort':_0x4323d8('0x33'),'limit':0xa,'page':0x1});}],'userProfile':[_0x5da15e('0x354'),_0x5da15e('0x15bc'),function _0x15049f(_0x18e7b6,_0x3a14ee){var _0x171da6=_0x5da15e;return _0x3a14ee[_0x171da6('0x21de')](_0x171da6('0x1bd8'))?null:_0x18e7b6[_0x171da6('0x8ac')](_0x171da6('0x1e1d'),{'fields':'id,name,crudPermissions','id':_0x3a14ee['getCurrentUser']()[_0x171da6('0x1618')]});}],'userProfileSection':[_0x5da15e('0x354'),'Auth',function _0x3ee9e5(_0x24f76f,_0x91342d){var _0x5b0a80=_0x5da15e;return _0x91342d[_0x5b0a80('0x21de')](_0x5b0a80('0x1bd8'))?null:_0x24f76f[_0x5b0a80('0x8ac')](_0x5b0a80('0x222f'),{'fields':_0x5b0a80('0x1852'),'userProfileId':_0x91342d['getCurrentUser']()[_0x5b0a80('0x1618')],'sectionId':0x1f5});}],'rpcQueues':[_0x5da15e('0x354'),function _0x28085c(_0x59ee63){return _0x59ee63['resolve']('rpc@getChatQueues');}]},'authenticate':!![],'permissionId':0x1fe});}angular[_0x3877e3('0x20d5')](_0x3877e3('0x1062'),[])['config'](_0x3ce77e)[_0x3877e3('0x1d5a')](_0x3877e3('0x160'),_0x5dfd9d)[_0x3877e3('0x1d5a')]('QueuesChatRealtimeController',_0x322ea1)[_0x3877e3('0x1551')](_0x3877e3('0x2703'),_0x54d02d)[_0x3877e3('0x1d5a')](_0x3877e3('0x358'),_0x3f091a);const _0x10d792=_0x398308['p']+_0x3877e3('0x81e');_0x4e17d4['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x13c1'),_0x3877e3('0x104a'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting'];function _0x4e17d4(_0x49e6af,_0x9f53e1,_0x3e5e26,_0x102d4f,_0x4dd148,_0xe1b4ff,_0x2f71cb,_0x571c68,_0x5715a2,_0x4a770d,_0x454bba,_0x23fdb9,_0x58f5df,_0x3c1703,_0x4e473b,_0x153b8c,_0x28a86e){var _0x457b4d=_0x3877e3,_0x1ea93d=this;_0x1ea93d[_0x457b4d('0x2ff')]=_0x153b8c,_0x1ea93d[_0x457b4d('0x21e')]=_0x28a86e,_0x1ea93d['currentUser']=_0x4e473b[_0x457b4d('0x15ed')](),_0x1ea93d[_0x457b4d('0x104a')]=_0x5715a2||{'count':0x0,'rows':[]},_0x1ea93d[_0x457b4d('0x758')]=_0x4a770d,_0x1ea93d[_0x457b4d('0xab4')]=_0x454bba&&_0x454bba[_0x457b4d('0x205f')]==0x1?_0x454bba['rows'][0x0]:null,_0x1ea93d[_0x457b4d('0x5ed')]=_0x4e473b['parseCrudPermissions'](_0x1ea93d[_0x457b4d('0xab4')]?_0x1ea93d[_0x457b4d('0xab4')][_0x457b4d('0x5ed')]:null),_0x1ea93d[_0x457b4d('0x1897')]=_0x457b4d('0x104a'),_0x1ea93d[_0x457b4d('0x11dc')]='',_0x1ea93d[_0x457b4d('0x18cf')]=null,_0x1ea93d[_0x457b4d('0x112b')]=[],_0x1ea93d['query']={'fields':_0x457b4d('0x87f'),'sort':_0x457b4d('0x33'),'channel':'chat','limit':0xa,'page':0x1},_0x1ea93d[_0x457b4d('0x556')]=_0x86640f()[_0x457b4d('0xcde')]([{'option':_0x457b4d('0x5a0'),'value':'\x27beepall\x27'},{'option':'RR\x20Memory','value':_0x457b4d('0xa6b')}],function(_0x57ee2f){var _0x1719c2=_0x457b4d;return _0x86640f()['replace'](_0x57ee2f[_0x1719c2('0x2228')],new RegExp('\x27','g'),'');}),_0x1ea93d[_0x457b4d('0x1c88')]=_0xa54eff,_0x1ea93d[_0x457b4d('0x1111')]=_0x2f175d,_0x1ea93d[_0x457b4d('0x1297')]=_0x40274f,_0x1ea93d['deleteconfirm']=_0x375015,_0x1ea93d['gotorealtimegoto']=_0x2b405a,_0x1ea93d['success']=_0x271404,_0x1ea93d[_0x457b4d('0x163a')]=_0x6f9448,_0x1ea93d[_0x457b4d('0xad0')]=_0x479968,_0x1ea93d[_0x457b4d('0x2222')]=_0x15f53c,_0x1ea93d[_0x457b4d('0xa57')]=_0x214a7c,_0x1ea93d[_0x457b4d('0x8f6')]=_0x37e0fb,_0x1ea93d[_0x457b4d('0x14fb')]=_0x1d1060,_0x1ea93d[_0x457b4d('0x3a3')]=_0x553391;function _0xa54eff(_0x3f6764){var _0x5c0c2c=_0x457b4d;_0x3e5e26['go'](_0x5c0c2c('0x19fd'),{'id':_0x3f6764['id'],'chatQueue':_0x3f6764,'crudPermissions':_0x1ea93d[_0x5c0c2c('0x5ed')]});}function _0x2f175d(_0x1393b0,_0x3c9d43){var _0x33f0bc=_0x457b4d;_0x4dd148[_0x33f0bc('0x853')]({'controller':_0x33f0bc('0x489'),'controllerAs':'vm','templateUrl':_0x10d792,'parent':angular[_0x33f0bc('0x1676')](_0xe1b4ff['body']),'targetEvent':_0x3c9d43,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x1393b0,'chatQueues':_0x1ea93d[_0x33f0bc('0x104a')]?_0x1ea93d[_0x33f0bc('0x104a')][_0x33f0bc('0x1b33')]:[],'crudPermissions':_0x1ea93d['crudPermissions']}});}function _0x40274f(_0x1841c8,_0x5270b6){var _0x25380e=_0x457b4d;_0x4dd148['show']({'controller':_0x25380e('0x139a'),'controllerAs':'vm','templateUrl':_0x1867e9,'parent':angular[_0x25380e('0x1676')](_0xe1b4ff[_0x25380e('0x2452')]),'targetEvent':_0x5270b6,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x1841c8,'chatQueues':_0x1ea93d[_0x25380e('0x104a')]?_0x1ea93d[_0x25380e('0x104a')][_0x25380e('0x1b33')]:[],'crudPermissions':_0x1ea93d['crudPermissions'],'realtime':![]}});}function _0x375015(_0x35d50a,_0x53569b){var _0x2cc313=_0x457b4d,_0x203933=_0x4dd148[_0x2cc313('0xa33')]()[_0x2cc313('0x4b4')](_0x2cc313('0x25b6')+_0x86640f()[_0x2cc313('0x2159')](_0x2cc313('0x6b5'))+'?')[_0x2cc313('0x276b')](_0x2cc313('0x622')+(_0x35d50a['name']||_0x2cc313('0x6b5'))+_0x2cc313('0x2135')+_0x2cc313('0x25e0'))[_0x2cc313('0x7a7')](_0x2cc313('0x1f07'))[_0x2cc313('0x1e6d')](_0x53569b)['ok']('OK')[_0x2cc313('0x3b5')]('CANCEL');_0x4dd148[_0x2cc313('0x853')](_0x203933)[_0x2cc313('0x21ad')](function(){_0x15f53c(_0x35d50a);},function(){var _0x54ce39=_0x2cc313;console['log'](_0x54ce39('0x284b'));});}function _0x2b405a(){var _0x5f139c=_0x457b4d;if(_0x4e473b[_0x5f139c('0x21de')](_0x5f139c('0x1bd8')))_0x3e5e26['go'](_0x5f139c('0x15f7'),{});else return _0x23fdb9[_0x5f139c('0xab4')][_0x5f139c('0x595')]({'userProfileId':_0x4e473b[_0x5f139c('0x15ed')]()['userProfileId'],'sectionId':0x1fe})[_0x5f139c('0x1376')][_0x5f139c('0x21ad')](function(_0x43da66){var _0x182264=_0x5f139c,_0x2804a3=_0x43da66&&_0x43da66[_0x182264('0x1b33')]?_0x43da66[_0x182264('0x1b33')][0x0]:null;_0x2804a3&&_0x2804a3[_0x182264('0x2296')]?_0x3e5e26['go'](_0x182264('0x15f7'),{}):_0x3c1703[_0x182264('0x231c')]({'title':_0x571c68['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x571c68[_0x182264('0x183e')](_0x182264('0x764'))});})[_0x5f139c('0x1c1d')](function(_0x3c0366){var _0x123959=_0x5f139c;_0x3c1703[_0x123959('0x2092')]({'title':_0x3c0366[_0x123959('0x209')]?_0x123959('0x22d')+_0x3c0366[_0x123959('0x209')]+'\x20-\x20'+_0x3c0366['statusText']:_0x123959('0xb8'),'msg':_0x3c0366[_0x123959('0x209')]?JSON[_0x123959('0x25e')](_0x3c0366[_0x123959('0x11c2')]):_0x3c0366[_0x123959('0x174f')]()});});}var _0x127853=!![],_0x3e4526=0x1;_0x49e6af['$watch']('vm.query.filter',function(_0x4c926e,_0x142ba4){var _0x2ef2ad=_0x457b4d;_0x127853?_0x2f71cb(function(){_0x127853=![];}):(!_0x142ba4&&(_0x3e4526=_0x1ea93d[_0x2ef2ad('0x77')][_0x2ef2ad('0x2376')]),_0x4c926e!==_0x142ba4&&(_0x1ea93d[_0x2ef2ad('0x77')]['page']=0x1),!_0x4c926e&&(_0x1ea93d[_0x2ef2ad('0x77')]['page']=_0x3e4526),_0x1ea93d['getChatQueues']());});function _0x271404(_0x10f47e){_0x1ea93d['chatQueues']=_0x10f47e||{'count':0x0,'rows':[]};}function _0x6f9448(){var _0x2971ce=_0x457b4d;_0x1ea93d[_0x2971ce('0x77')][_0x2971ce('0x15a5')]=(_0x1ea93d[_0x2971ce('0x77')][_0x2971ce('0x2376')]-0x1)*_0x1ea93d[_0x2971ce('0x77')][_0x2971ce('0x1f4a')],_0x4e473b[_0x2971ce('0x21de')](_0x2971ce('0x1bd8'))?_0x1ea93d[_0x2971ce('0x71b')]=_0x23fdb9['chatQueue'][_0x2971ce('0x595')](_0x1ea93d[_0x2971ce('0x77')],_0x271404)['$promise']:(_0x1ea93d[_0x2971ce('0x77')]['id']=_0x1ea93d[_0x2971ce('0x758')]['id'],_0x1ea93d[_0x2971ce('0x77')][_0x2971ce('0x26ad')]=_0x2971ce('0xf82'),_0x1ea93d[_0x2971ce('0x71b')]=_0x23fdb9[_0x2971ce('0x758')][_0x2971ce('0x321')](_0x1ea93d[_0x2971ce('0x77')],_0x271404)[_0x2971ce('0x1376')]);}function _0x479968(_0x514abc,_0xa5acbe){var _0x5c0fe6=_0x457b4d;_0x4dd148[_0x5c0fe6('0x853')]({'controller':'CreateOrEditChatQueueDialogController','controllerAs':'vm','templateUrl':_0x478621,'parent':angular['element'](_0xe1b4ff['body']),'targetEvent':_0x514abc,'clickOutsideToClose':!![],'locals':{'chatQueue':_0xa5acbe,'chatQueues':_0x1ea93d[_0x5c0fe6('0x104a')]['rows'],'license':_0x1ea93d['license'],'setting':_0x1ea93d['setting'],'crudPermissions':_0x1ea93d[_0x5c0fe6('0x5ed')]}});}function _0x15f53c(_0x3472be){var _0x47040f=_0x457b4d;_0x23fdb9[_0x47040f('0x6b5')]['delete']({'id':_0x3472be['id']})[_0x47040f('0x1376')][_0x47040f('0x21ad')](function(){var _0x4444e7=_0x47040f;_0x86640f()[_0x4444e7('0x16a2')](_0x1ea93d[_0x4444e7('0x104a')][_0x4444e7('0x1b33')],{'id':_0x3472be['id']}),_0x1ea93d['chatQueues'][_0x4444e7('0x205f')]-=0x1,!_0x1ea93d['chatQueues'][_0x4444e7('0x1b33')][_0x4444e7('0x577')]&&_0x1ea93d['getChatQueues'](),_0x3c1703['success']({'title':_0x86640f()['startCase'](_0x4444e7('0x1c94'))+_0x4444e7('0xe64'),'msg':_0x3472be[_0x4444e7('0x19fe')]?_0x3472be[_0x4444e7('0x19fe')]+_0x4444e7('0xb4a'):''});})[_0x47040f('0x1c1d')](function(_0x257b26){var _0x329f9e=_0x47040f;if(_0x257b26[_0x329f9e('0x11c2')]&&_0x257b26['data'][_0x329f9e('0x1a69')]&&_0x257b26[_0x329f9e('0x11c2')][_0x329f9e('0x1a69')][_0x329f9e('0x577')]){_0x1ea93d['errors']=_0x257b26[_0x329f9e('0x11c2')][_0x329f9e('0x1a69')]||[{'message':_0x257b26[_0x329f9e('0x174f')](),'type':'SYSTEM:DELETEchatQueue'}];for(var _0x325624=0x0;_0x325624<_0x257b26['data']['errors'][_0x329f9e('0x577')];_0x325624++){_0x3c1703[_0x329f9e('0x2092')]({'title':_0x257b26[_0x329f9e('0x11c2')][_0x329f9e('0x1a69')][_0x325624][_0x329f9e('0x7fa')],'msg':_0x257b26[_0x329f9e('0x11c2')][_0x329f9e('0x1a69')][_0x325624][_0x329f9e('0x1224')]});}}else _0x3c1703['error']({'title':_0x257b26[_0x329f9e('0x209')]?_0x329f9e('0x22d')+_0x257b26[_0x329f9e('0x209')]+_0x329f9e('0xa99')+_0x257b26['statusText']:_0x329f9e('0x82f'),'msg':_0x257b26['data']?JSON[_0x329f9e('0x25e')](_0x257b26[_0x329f9e('0x11c2')][_0x329f9e('0x1224')]):_0x257b26[_0x329f9e('0x1224')]||_0x257b26['toString']()});});}function _0x214a7c(){var _0x1dd60b=_0x457b4d,_0x2d693a=angular[_0x1dd60b('0xd75')](_0x1ea93d['selectedChatQueues']);return _0x1ea93d[_0x1dd60b('0x112b')]=[],_0x2d693a;}function _0x37e0fb(_0x2f7782){var _0x1df99f=_0x457b4d,_0x5611f4=_0x4dd148['confirm']()[_0x1df99f('0x4b4')](_0x1df99f('0x19f'))[_0x1df99f('0x276b')](_0x1df99f('0x622')+_0x1ea93d[_0x1df99f('0x112b')][_0x1df99f('0x577')]+_0x1df99f('0xd74')+_0x1df99f('0x25e0'))[_0x1df99f('0x7a7')]('delete\x20ChatQueues')['targetEvent'](_0x2f7782)['ok']('OK')[_0x1df99f('0x3b5')]('CANCEL');_0x4dd148[_0x1df99f('0x853')](_0x5611f4)['then'](function(){var _0x420214=_0x1df99f;_0x1ea93d['selectedChatQueues'][_0x420214('0x1a52')](function(_0x5f0c5e){_0x15f53c(_0x5f0c5e);}),_0x1ea93d[_0x420214('0x112b')]=[];});}function _0x1d1060(){var _0x466b96=_0x457b4d;_0x1ea93d[_0x466b96('0x112b')]=[];}function _0x553391(){var _0x2db176=_0x457b4d;_0x1ea93d[_0x2db176('0x112b')]=_0x1ea93d[_0x2db176('0x104a')][_0x2db176('0x1b33')];}}const _0x35d819=_0x4e17d4;_0x17825f['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$location',_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),'chatQueues',_0x3877e3('0x6b5'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),'crudPermissions'];function _0x17825f(_0x5afcfb,_0x282c69,_0x41b372,_0x1d11d8,_0xa28fd3,_0x3d14f9,_0x2c2d4f,_0x2fe794,_0x52906f,_0x30cf35,_0x47fcfe,_0x2c91cd,_0x2a2c99,_0xb85360){var _0x46c012=_0x3877e3,_0x45ea42=this;_0x45ea42[_0x46c012('0x123f')]=_0x47fcfe['getCurrentUser'](),_0x45ea42[_0x46c012('0x1a69')]=[],_0x45ea42[_0x46c012('0x21e')]=_0x2a2c99,_0x45ea42[_0x46c012('0x2ff')]=_0x2c91cd,_0x45ea42['crudPermissions']=_0xb85360,_0x45ea42[_0x46c012('0x126a')]={},_0x45ea42[_0x46c012('0x1432')]=_0x45ea42['setting']&&_0x45ea42[_0x46c012('0x21e')][_0x46c012('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x45ea42[_0x46c012('0x4b4')]=_0x46c012('0x1256'),_0x45ea42[_0x46c012('0x6b5')]=angular[_0x46c012('0xd75')](_0x52906f),_0x45ea42[_0x46c012('0x104a')]=_0x2fe794,_0x45ea42['newChatQueue']=![];!_0x45ea42['chatQueue']&&(_0x45ea42[_0x46c012('0x6b5')]={'strategy':_0x46c012('0x2106'),'timeout':0xa},_0x45ea42[_0x46c012('0x4b4')]=_0x46c012('0x83c'),_0x45ea42['newChatQueue']=!![]);_0x45ea42[_0x46c012('0x1b4')]=_0x5d4f4d,_0x45ea42['saveChatQueue']=_0xabd41a,_0x45ea42[_0x46c012('0x2222')]=_0x5b59f4,_0x45ea42[_0x46c012('0x279')]=_0x4b051a,_0x45ea42[_0x46c012('0x167')]=_0x3aa46f;function _0x5d4f4d(){var _0x42370a=_0x46c012;_0x45ea42[_0x42370a('0x1a69')]=[],_0x30cf35[_0x42370a('0x6b5')][_0x42370a('0x186f')](_0x45ea42[_0x42370a('0x6b5')])[_0x42370a('0x1376')][_0x42370a('0x21ad')](function(_0x3e75a8){var _0x409911=_0x42370a;_0x45ea42[_0x409911('0x104a')][_0x409911('0xd0c')](_0x3e75a8[_0x409911('0x3bc')]()),_0x2c2d4f[_0x409911('0xdb1')]({'title':_0x409911('0xdf2'),'msg':_0x45ea42[_0x409911('0x6b5')]['name']?_0x45ea42[_0x409911('0x6b5')]['name']+_0x409911('0x1694'):''}),_0x3aa46f(_0x3e75a8);})[_0x42370a('0x1c1d')](function(_0x14b157){var _0xd733c0=_0x42370a;if(_0x14b157[_0xd733c0('0x11c2')]&&_0x14b157['data'][_0xd733c0('0x1a69')]&&_0x14b157[_0xd733c0('0x11c2')][_0xd733c0('0x1a69')][_0xd733c0('0x577')]){_0x45ea42['errors']=_0x14b157[_0xd733c0('0x11c2')][_0xd733c0('0x1a69')]||[{'message':_0x14b157['toString'](),'type':_0xd733c0('0x7df')}];for(var _0x5194cd=0x0;_0x5194cd<_0x14b157[_0xd733c0('0x11c2')]['errors'][_0xd733c0('0x577')];_0x5194cd+=0x1){_0x2c2d4f[_0xd733c0('0x2092')]({'title':_0x14b157[_0xd733c0('0x11c2')]['errors'][_0x5194cd]['type'],'msg':_0x14b157[_0xd733c0('0x11c2')][_0xd733c0('0x1a69')][_0x5194cd][_0xd733c0('0x1224')]});}}else _0x2c2d4f['error']({'title':_0x14b157[_0xd733c0('0x209')]?_0xd733c0('0x22d')+_0x14b157['status']+_0xd733c0('0xa99')+_0x14b157[_0xd733c0('0x1808')]:_0xd733c0('0x7df'),'msg':_0x14b157[_0xd733c0('0x11c2')]?JSON[_0xd733c0('0x25e')](_0x14b157[_0xd733c0('0x11c2')][_0xd733c0('0x1224')]):_0x14b157[_0xd733c0('0x174f')]()});});}function _0xabd41a(){var _0x24fe75=_0x46c012;_0x45ea42[_0x24fe75('0x1a69')]=[],_0x30cf35[_0x24fe75('0x6b5')]['update']({'id':_0x45ea42[_0x24fe75('0x6b5')]['id']},_0x45ea42[_0x24fe75('0x6b5')])[_0x24fe75('0x1376')]['then'](function(_0x432498){var _0x1ca550=_0x24fe75,_0x53ea9c=_0x86640f()[_0x1ca550('0x1d2e')](_0x45ea42[_0x1ca550('0x104a')],{'id':_0x432498['id']});_0x53ea9c&&_0x86640f()[_0x1ca550('0xd0e')](_0x53ea9c,_0x86640f()[_0x1ca550('0xc50')](_0x432498[_0x1ca550('0x3bc')](),_0x86640f()[_0x1ca550('0x223b')](_0x53ea9c))),_0x2c2d4f[_0x1ca550('0xdb1')]({'title':'ChatQueue\x20properly\x20saved!','msg':_0x45ea42[_0x1ca550('0x6b5')][_0x1ca550('0x19fe')]?_0x45ea42[_0x1ca550('0x6b5')][_0x1ca550('0x19fe')]+_0x1ca550('0x2249'):''}),_0x3aa46f(_0x432498);})[_0x24fe75('0x1c1d')](function(_0x2fa8b3){var _0x18b68f=_0x24fe75;if(_0x2fa8b3[_0x18b68f('0x11c2')]&&_0x2fa8b3[_0x18b68f('0x11c2')][_0x18b68f('0x1a69')]&&_0x2fa8b3[_0x18b68f('0x11c2')]['errors'][_0x18b68f('0x577')]){_0x45ea42['errors']=_0x2fa8b3[_0x18b68f('0x11c2')]['errors']||[{'message':_0x2fa8b3[_0x18b68f('0x174f')](),'type':_0x18b68f('0x332')}];for(var _0x461040=0x0;_0x461040<_0x2fa8b3['data']['errors']['length'];_0x461040++){_0x2c2d4f['error']({'title':_0x2fa8b3[_0x18b68f('0x11c2')][_0x18b68f('0x1a69')][_0x461040][_0x18b68f('0x7fa')],'msg':_0x2fa8b3[_0x18b68f('0x11c2')][_0x18b68f('0x1a69')][_0x461040][_0x18b68f('0x1224')]});}}else _0x2c2d4f[_0x18b68f('0x2092')]({'title':_0x2fa8b3[_0x18b68f('0x209')]?'API:'+_0x2fa8b3[_0x18b68f('0x209')]+_0x18b68f('0xa99')+_0x2fa8b3[_0x18b68f('0x1808')]:'api.chatQueue.update','msg':_0x2fa8b3['data']?JSON[_0x18b68f('0x25e')](_0x2fa8b3[_0x18b68f('0x11c2')]['message']):_0x2fa8b3[_0x18b68f('0x174f')]()});});}function _0x5b59f4(_0x1e2738){var _0x4131cc=_0x46c012;_0x45ea42[_0x4131cc('0x1a69')]=[];var _0x500ea4=_0x1d11d8[_0x4131cc('0xa33')]()['title'](_0x4131cc('0x196b'))[_0x4131cc('0x13fb')](_0x4131cc('0x144e'))['ariaLabel'](_0x4131cc('0x23f4'))['ok'](_0x4131cc('0xbfd'))[_0x4131cc('0x3b5')](_0x4131cc('0x1f40'))[_0x4131cc('0x1e6d')](_0x1e2738);_0x1d11d8['show'](_0x500ea4)[_0x4131cc('0x21ad')](function(){var _0x51d900=_0x4131cc;_0x30cf35[_0x51d900('0x6b5')][_0x51d900('0x1164')]({'id':_0x45ea42[_0x51d900('0x6b5')]['id']})[_0x51d900('0x1376')]['then'](function(){var _0x4ff147=_0x51d900;_0x86640f()[_0x4ff147('0x16a2')](_0x45ea42['chatQueues'],{'id':_0x45ea42['chatQueue']['id']}),_0x2c2d4f['success']({'title':_0x4ff147('0x252f'),'msg':(_0x45ea42[_0x4ff147('0x6b5')][_0x4ff147('0x19fe')]||_0x4ff147('0x6b5'))+'\x20has\x20been\x20deleted!'}),_0x3aa46f(_0x45ea42['chatQueue']);})[_0x51d900('0x1c1d')](function(_0x2d2666){var _0x5afaeb=_0x51d900;if(_0x2d2666[_0x5afaeb('0x11c2')]&&_0x2d2666[_0x5afaeb('0x11c2')][_0x5afaeb('0x1a69')]&&_0x2d2666[_0x5afaeb('0x11c2')][_0x5afaeb('0x1a69')]['length']){_0x45ea42['errors']=_0x2d2666[_0x5afaeb('0x11c2')][_0x5afaeb('0x1a69')]||[{'message':_0x2d2666[_0x5afaeb('0x174f')](),'type':_0x5afaeb('0xfb4')}];for(var _0x1214c5=0x0;_0x1214c5<_0x2d2666['data'][_0x5afaeb('0x1a69')][_0x5afaeb('0x577')];_0x1214c5++){_0x2c2d4f['error']({'title':_0x2d2666['data'][_0x5afaeb('0x1a69')][_0x1214c5][_0x5afaeb('0x7fa')],'msg':_0x2d2666[_0x5afaeb('0x11c2')][_0x5afaeb('0x1a69')][_0x1214c5][_0x5afaeb('0x1224')]});}}else _0x2c2d4f[_0x5afaeb('0x2092')]({'title':_0x2d2666[_0x5afaeb('0x209')]?'API:'+_0x2d2666[_0x5afaeb('0x209')]+_0x5afaeb('0xa99')+_0x2d2666[_0x5afaeb('0x1808')]:_0x5afaeb('0xfb4'),'msg':_0x2d2666[_0x5afaeb('0x11c2')]?JSON[_0x5afaeb('0x25e')](_0x2d2666[_0x5afaeb('0x11c2')][_0x5afaeb('0x1224')]):_0x2d2666[_0x5afaeb('0x1224')]||_0x2d2666[_0x5afaeb('0x174f')]()});});},function(){});}function _0x4b051a(_0x46d767){return _0x46d767===null?undefined:new Date(_0x46d767);}function _0x3aa46f(_0x5398c7){_0x1d11d8['hide'](_0x5398c7);}}const _0x1fe76f=_0x17825f;_0x5533d3[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x6b5'),_0x3877e3('0x104a'),'realtime',_0x3877e3('0x13c1'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x5533d3(_0x1fb7ac,_0xd1609,_0x2d8b34,_0x24c327,_0x410b36,_0xd59a8e,_0x57a9e1,_0x8a3dcf,_0x9e33b3,_0x3321ca){var _0x392ad4=_0x3877e3,_0x2e06bd=this;_0x2e06bd[_0x392ad4('0x123f')]=_0x9e33b3[_0x392ad4('0x15ed')](),_0x2e06bd['chatQueue']=_0x410b36,_0x2e06bd[_0x392ad4('0x5ed')]=_0x3321ca,_0x2e06bd[_0x392ad4('0x116a')]=_0x57a9e1,_0x2e06bd[_0x392ad4('0x1b9a')]=[],_0x2e06bd[_0x392ad4('0x1e09')]=[],_0x2e06bd['selectedItems']=[],_0x2e06bd[_0x392ad4('0x91b')]=[],_0x2e06bd[_0x392ad4('0x2584')]=[],_0x2e06bd['pendingChanges']=![],_0x2e06bd[_0x392ad4('0x1081')]=_0x284236,_0x2e06bd['saveAgents']=_0x385412,_0x2e06bd[_0x392ad4('0x167')]=_0x54b34c,_0x2e06bd['dualMultiselectOptions']={'readOnly':!_0x2e06bd[_0x392ad4('0x5ed')][_0x392ad4('0x6e2')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x392ad4('0x20f5'),'line2':['name','internal'],'line3':'','labelAll':_0x8a3dcf[_0x392ad4('0x183e')](_0x392ad4('0x1d4c')),'labelSelected':_0x8a3dcf[_0x392ad4('0x183e')](_0x392ad4('0x380')),'transferCallback':function _0x2b3bdd(){var _0x124dba=_0x392ad4,_0x238a9c=_0x86640f()[_0x124dba('0x1473')](_0x2e06bd[_0x124dba('0x2584')],_0x2e06bd[_0x124dba('0x2629')],'id');_0x2e06bd[_0x124dba('0x1bb9')]=_0x86640f()[_0x124dba('0x23aa')](_0x238a9c)?![]:!![];}};function _0x284236(){var _0x10029c=_0x392ad4;return _0x9e33b3['hasRole'](_0x10029c('0x1bd8'))?_0x840f9f()[_0x10029c('0x1c1d')](function(_0x4901a4){var _0x2acc9b=_0x10029c;_0x2d8b34[_0x2acc9b('0x2092')]({'title':_0x4901a4[_0x2acc9b('0x209')]?_0x2acc9b('0x22d')+_0x4901a4['status']+'\x20-\x20'+_0x4901a4[_0x2acc9b('0x1808')]:_0x2acc9b('0x1381'),'msg':_0x4901a4['status']?JSON['stringify'](_0x4901a4[_0x2acc9b('0x11c2')]):_0x4901a4[_0x2acc9b('0x174f')]()});}):_0x413dec()[_0x10029c('0x21ad')](function(_0x2aef6b){var _0x321806=_0x10029c;return _0x2e06bd[_0x321806('0x26ad')]=_0x2aef6b,_0x840f9f();})[_0x10029c('0x1c1d')](function(_0x4bd628){var _0x56a4e8=_0x10029c;_0x2d8b34[_0x56a4e8('0x2092')]({'title':_0x4bd628[_0x56a4e8('0x209')]?_0x56a4e8('0x22d')+_0x4bd628[_0x56a4e8('0x209')]+'\x20-\x20'+_0x4bd628['statusText']:'SYSTEM:GET_AGENTS','msg':_0x4bd628[_0x56a4e8('0x209')]?JSON['stringify'](_0x4bd628['data']):_0x4bd628['toString']()});});}function _0x413dec(){return _0xd1609(function(_0x39367f,_0x515292){var _0x117bc8=a0_0x2e7f;_0x24c327['userProfileSection'][_0x117bc8('0x595')]({'userProfileId':_0x2e06bd['currentUser'][_0x117bc8('0x1618')],'name':_0x117bc8('0xfed')})[_0x117bc8('0x1376')][_0x117bc8('0x21ad')](function(_0x25dbfd){var _0x3b47b7=_0x117bc8,_0x4f468f=_0x25dbfd&&_0x25dbfd[_0x3b47b7('0x1b33')]?_0x25dbfd[_0x3b47b7('0x1b33')][0x0]:null;_0x39367f(_0x4f468f);})[_0x117bc8('0x1c1d')](function(_0x1972c1){_0x515292(_0x1972c1);});});}function _0x840f9f(){return _0xd1609(function(_0x4182f7,_0x16a854){var _0x353724=a0_0x2e7f;return _0x4a09ac()[_0x353724('0x21ad')](function(_0x435307){var _0x5b87fd=_0x353724;return _0x2e06bd[_0x5b87fd('0x1b9a')]=_0x435307[_0x5b87fd('0x1b33')]?_0x435307['rows']:[],_0x9e33b3['hasRole'](_0x5b87fd('0x1bd8'))?_0x435307:_0x2e06bd[_0x5b87fd('0x26ad')]?_0x2e06bd[_0x5b87fd('0x26ad')][_0x5b87fd('0x80c')]?_0x435307:_0x48c12a():null;})[_0x353724('0x21ad')](function(_0x5f37bb){var _0x508b36=_0x353724,_0x140e60=_0x5f37bb&&_0x5f37bb[_0x508b36('0x1b33')]?_0x5f37bb[_0x508b36('0x1b33')]:[];return _0x2e06bd[_0x508b36('0x1e09')]=_0x86640f()[_0x508b36('0x26c3')](_0x140e60,function(_0x44aa21){var _0x4a87c7=_0x508b36;return _0x86640f()[_0x4a87c7('0x1d2e')](_0x2e06bd[_0x4a87c7('0x1b9a')],{'id':_0x9e33b3[_0x4a87c7('0x21de')]('admin')||_0x2e06bd[_0x4a87c7('0x26ad')]['autoAssociation']?_0x44aa21['id']:_0x44aa21[_0x4a87c7('0x675')]});}),_0x2e06bd[_0x508b36('0x91b')]=angular['copy'](_0x2e06bd[_0x508b36('0x1e09')]),_0x2e06bd[_0x508b36('0x1b9a')][_0x508b36('0x1a52')](function(_0x494038){var _0x3aebd9=_0x508b36,_0xadc121=_0x86640f()[_0x3aebd9('0x1d2e')](_0x2e06bd[_0x3aebd9('0x1e09')],{'id':_0x494038['id']});_0x9e33b3[_0x3aebd9('0x21de')]('admin')?_0x494038[_0x3aebd9('0x118b')]=!![]:_0x494038[_0x3aebd9('0x118b')]=typeof _0xadc121!==_0x3aebd9('0xddc')?!![]:![];}),_0x40e8eb();})[_0x353724('0x21ad')](function(_0x242687){var _0x583190=_0x353724,_0x34ea44=_0x242687&&_0x242687['rows']?_0x242687['rows']:[];_0x2e06bd[_0x583190('0x2629')]=_0x86640f()[_0x583190('0x26c3')](_0x34ea44,function(_0x3e9fc6){var _0x46ca2b=_0x583190,_0x13e8d5=_0x86640f()[_0x46ca2b('0x1d2e')](_0x2e06bd[_0x46ca2b('0x1b9a')],{'id':_0x3e9fc6['id']});return _0x13e8d5[_0x46ca2b('0x1195')]=_0x3e9fc6[_0x46ca2b('0x23be')]?'penalty\x20'+_0x3e9fc6[_0x46ca2b('0x23be')]['penalty']:'',_0x13e8d5[_0x46ca2b('0x201f')]=typeof _0x3e9fc6[_0x46ca2b('0x201f')]!=='undefined'?'<'+_0x3e9fc6[_0x46ca2b('0x201f')]+'>':'',_0x13e8d5;}),_0x2e06bd[_0x583190('0x2584')]=angular[_0x583190('0xd75')](_0x2e06bd[_0x583190('0x2629')]),_0x2e06bd[_0x583190('0x909')][_0x583190('0x2629')]=_0x2e06bd[_0x583190('0x2629')],_0x2e06bd[_0x583190('0x909')][_0x583190('0x1b9a')]=_0x86640f()['differenceBy'](_0x2e06bd['allowedItems'],_0x2e06bd[_0x583190('0x909')][_0x583190('0x2629')],'id'),_0x4182f7();})[_0x353724('0x1c1d')](function(_0x95d4f2){_0x16a854(_0x95d4f2);});});}function _0x48c12a(){return _0xd1609(function(_0x3d3694,_0x3b3602){var _0x230a8e=a0_0x2e7f;return _0x24c327['userProfileResource'][_0x230a8e('0x595')]({'sectionId':_0x2e06bd[_0x230a8e('0x26ad')]['id'],'nolimit':!![]})[_0x230a8e('0x1376')][_0x230a8e('0x21ad')](function(_0x394536){_0x3d3694(_0x394536);})[_0x230a8e('0x1c1d')](function(_0x26fb94){_0x3b3602(_0x26fb94);});});}function _0x40e8eb(){return _0xd1609(function(_0x3ecaea,_0x46b0ae){var _0x256340=a0_0x2e7f;return _0x24c327['chatQueue'][_0x256340('0x13ad')]({'id':_0x2e06bd['chatQueue']['id'],'fields':_0x256340('0x1eea'),'nolimit':!![],'role':'agent'})[_0x256340('0x1376')][_0x256340('0x21ad')](function(_0x2065c3){_0x3ecaea(_0x2065c3);})[_0x256340('0x1c1d')](function(_0x4ea531){_0x46b0ae(_0x4ea531);});});}function _0x4a09ac(){return _0xd1609(function(_0x2e6bd8,_0x23dc85){var _0x1b9c45=a0_0x2e7f;return _0x24c327[_0x1b9c45('0x1775')][_0x1b9c45('0x595')]({'fields':_0x1b9c45('0x1eea'),'nolimit':!![],'role':'agent'})[_0x1b9c45('0x1376')][_0x1b9c45('0x21ad')](function(_0x26bd5c){_0x2e6bd8(_0x26bd5c);})[_0x1b9c45('0x1c1d')](function(_0x157bf9){_0x23dc85(_0x157bf9);});});}function _0x309d4e(_0xcc5652){return _0xd1609(function(_0x56125f,_0x5529f9){var _0x3aeea6=a0_0x2e7f;_0x86640f()[_0x3aeea6('0x23aa')](_0xcc5652)?_0x56125f():_0x24c327[_0x3aeea6('0x6b5')]['addAgents']({'id':_0x2e06bd['chatQueue']['id'],'ids':_0x86640f()[_0x3aeea6('0x26c3')](_0xcc5652,'id')})[_0x3aeea6('0x1376')]['then'](function(){_0x56125f();})[_0x3aeea6('0x1c1d')](function(_0x21a9d5){_0x5529f9(_0x21a9d5);});});}function _0x42d1b1(_0x1d0717){return _0xd1609(function(_0x274812,_0x5b104c){var _0x20f44c=a0_0x2e7f;_0x86640f()[_0x20f44c('0x23aa')](_0x1d0717)?_0x274812():_0x24c327[_0x20f44c('0x6b5')]['removeAgents']({'id':_0x2e06bd[_0x20f44c('0x6b5')]['id'],'ids':_0x86640f()[_0x20f44c('0x26c3')](_0x1d0717,'id')})[_0x20f44c('0x1376')][_0x20f44c('0x21ad')](function(){_0x274812();})[_0x20f44c('0x1c1d')](function(_0xc92e69){_0x5b104c(_0xc92e69);});});}function _0x385412(){var _0x2c2e02=_0x392ad4,_0x39290f=_0x86640f()[_0x2c2e02('0x1eab')](_0x2e06bd[_0x2c2e02('0x2584')],_0x2e06bd['selectedItems'],'id'),_0x1859dd=_0x86640f()[_0x2c2e02('0x1eab')](_0x2e06bd[_0x2c2e02('0x2629')],_0x2e06bd['startingSelectedItems'],'id');return _0x42d1b1(_0x39290f)[_0x2c2e02('0x21ad')](function(){return _0x309d4e(_0x1859dd);})[_0x2c2e02('0x21ad')](function(){var _0x55b0a1=_0x2c2e02;_0x2e06bd['pendingChanges']=![],_0x2e06bd[_0x55b0a1('0x91b')]=angular[_0x55b0a1('0xd75')](_0x2e06bd[_0x55b0a1('0x1e09')]),_0x2e06bd[_0x55b0a1('0x2584')]=angular[_0x55b0a1('0xd75')](_0x2e06bd[_0x55b0a1('0x2629')]),_0x2d8b34['success']({'title':_0x55b0a1('0x2804'),'msg':_0x55b0a1('0x2239')});})[_0x2c2e02('0x1c1d')](function(_0x456d89){var _0x3fb58a=_0x2c2e02;_0x2d8b34['error']({'title':_0x456d89['status']?'API:'+_0x456d89['status']+_0x3fb58a('0xa99')+_0x456d89['statusText']:_0x3fb58a('0x1dd7'),'msg':_0x456d89[_0x3fb58a('0x209')]?JSON[_0x3fb58a('0x25e')](_0x456d89[_0x3fb58a('0x11c2')]):_0x456d89[_0x3fb58a('0x174f')]()});});}function _0x54b34c(){var _0x29c003=_0x392ad4;_0x1fb7ac[_0x29c003('0x1c24')]();}}const _0x1e2da8=_0x5533d3;_0x51e44f[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x6b5'),_0x3877e3('0x13c1'),_0x3877e3('0x15bc'),'crudPermissions'];function _0x51e44f(_0x2fb511,_0x49447b,_0x2d23e1,_0x508bdf,_0x4893fc,_0x40d3da,_0xdb3ad0,_0x238fe8){var _0x22a2d1=_0x3877e3,_0x2c53d6=this;_0x2c53d6[_0x22a2d1('0x123f')]=_0xdb3ad0[_0x22a2d1('0x15ed')](),_0x2c53d6[_0x22a2d1('0x6b5')]=_0x4893fc,_0x2c53d6[_0x22a2d1('0x5ed')]=_0x238fe8,_0x2c53d6[_0x22a2d1('0x1b9a')]=[],_0x2c53d6['allowedItems']=[],_0x2c53d6[_0x22a2d1('0x2629')]=[],_0x2c53d6['startingAllowedItems']=[],_0x2c53d6[_0x22a2d1('0x2584')]=[],_0x2c53d6[_0x22a2d1('0x1bb9')]=![],_0x2c53d6[_0x22a2d1('0x909')]={'readOnly':!_0x2c53d6['crudPermissions'][_0x22a2d1('0x6e2')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x22a2d1('0x19fe'),'line1':_0x22a2d1('0x19fe'),'line2':'','line3':'','labelAll':_0x40d3da[_0x22a2d1('0x183e')](_0x22a2d1('0x444')),'labelSelected':_0x40d3da[_0x22a2d1('0x183e')]('CHAT.SELECTED_TEAMS'),'transferCallback':function _0x297482(){var _0x4f896f=_0x22a2d1,_0x4d2253=_0x86640f()['xorBy'](_0x2c53d6['startingSelectedItems'],_0x2c53d6['selectedItems'],'id');_0x2c53d6[_0x4f896f('0x1bb9')]=_0x86640f()[_0x4f896f('0x23aa')](_0x4d2253)?![]:!![];}},_0x2c53d6[_0x22a2d1('0x1081')]=_0x4e12e6,_0x2c53d6[_0x22a2d1('0x2359')]=_0x6e8069,_0x2c53d6[_0x22a2d1('0x167')]=_0x225828;function _0x4e12e6(){var _0x5e28ae=_0x22a2d1;return _0xdb3ad0[_0x5e28ae('0x21de')]('admin')?_0x195246()['catch'](function(_0xc3075c){var _0x2a4ca9=_0x5e28ae;_0x2d23e1[_0x2a4ca9('0x2092')]({'title':_0xc3075c[_0x2a4ca9('0x209')]?_0x2a4ca9('0x22d')+_0xc3075c[_0x2a4ca9('0x209')]+_0x2a4ca9('0xa99')+_0xc3075c['statusText']:_0x2a4ca9('0x2479'),'msg':_0xc3075c[_0x2a4ca9('0x209')]?JSON['stringify'](_0xc3075c[_0x2a4ca9('0x11c2')]):_0xc3075c[_0x2a4ca9('0x174f')]()});}):_0x559f95()[_0x5e28ae('0x21ad')](function(_0x3ff058){var _0x310ee7=_0x5e28ae;return _0x2c53d6[_0x310ee7('0x26ad')]=_0x3ff058,_0x195246();})[_0x5e28ae('0x1c1d')](function(_0x58b3ac){var _0x23322a=_0x5e28ae;_0x2d23e1[_0x23322a('0x2092')]({'title':_0x58b3ac['status']?_0x23322a('0x22d')+_0x58b3ac['status']+_0x23322a('0xa99')+_0x58b3ac['statusText']:'SYSTEM:GET_TEAMS','msg':_0x58b3ac['status']?JSON[_0x23322a('0x25e')](_0x58b3ac[_0x23322a('0x11c2')]):_0x58b3ac['toString']()});});}function _0x559f95(){return _0x49447b(function(_0x3dc67c,_0x157d9c){var _0x2c68d0=a0_0x2e7f;_0x508bdf['userProfileSection'][_0x2c68d0('0x595')]({'userProfileId':_0x2c53d6['currentUser']['userProfileId'],'name':'Teams'})[_0x2c68d0('0x1376')][_0x2c68d0('0x21ad')](function(_0x157aca){var _0x3cb7bb=_0x2c68d0,_0x29f365=_0x157aca&&_0x157aca[_0x3cb7bb('0x1b33')]?_0x157aca[_0x3cb7bb('0x1b33')][0x0]:null;_0x3dc67c(_0x29f365);})[_0x2c68d0('0x1c1d')](function(_0x47f8ef){_0x157d9c(_0x47f8ef);});});}function _0x195246(){return _0x49447b(function(_0x2e61ef,_0x2fc238){var _0x292142=a0_0x2e7f;return _0x1534de()[_0x292142('0x21ad')](function(_0x411dc3){var _0x28a88c=_0x292142;return _0x2c53d6[_0x28a88c('0x1b9a')]=_0x411dc3['rows']?_0x411dc3['rows']:[],_0xdb3ad0[_0x28a88c('0x21de')](_0x28a88c('0x1bd8'))?_0x411dc3:_0x2c53d6['section']?_0x2c53d6['section'][_0x28a88c('0x80c')]?_0x411dc3:_0x8a5cc8():null;})['then'](function(_0x3a3a5c){var _0x2fd519=_0x292142,_0xed2590=_0x3a3a5c&&_0x3a3a5c[_0x2fd519('0x1b33')]?_0x3a3a5c[_0x2fd519('0x1b33')]:[];return _0x2c53d6[_0x2fd519('0x1e09')]=_0x86640f()[_0x2fd519('0x26c3')](_0xed2590,function(_0x19e95d){var _0x46531d=_0x2fd519;return _0x86640f()[_0x46531d('0x1d2e')](_0x2c53d6[_0x46531d('0x1b9a')],{'id':_0xdb3ad0[_0x46531d('0x21de')](_0x46531d('0x1bd8'))||_0x2c53d6['section'][_0x46531d('0x80c')]?_0x19e95d['id']:_0x19e95d[_0x46531d('0x675')]});}),_0x2c53d6['items'][_0x2fd519('0x1a52')](function(_0x30ba3f){var _0x5b6107=_0x2fd519,_0x498e19=_0x86640f()[_0x5b6107('0x1d2e')](_0x2c53d6[_0x5b6107('0x1e09')],{'id':_0x30ba3f['id']});_0xdb3ad0[_0x5b6107('0x21de')]('admin')?_0x30ba3f['isValid']=!![]:_0x30ba3f[_0x5b6107('0x118b')]=typeof _0x498e19!=='undefined'?!![]:![];}),_0x356c23();})[_0x292142('0x21ad')](function(_0x3b6824){var _0x40f91b=_0x292142,_0x28af53=_0x3b6824&&_0x3b6824[_0x40f91b('0x1b33')]?_0x3b6824[_0x40f91b('0x1b33')]:[];_0x2c53d6[_0x40f91b('0x2629')]=_0x86640f()[_0x40f91b('0x26c3')](_0x28af53,function(_0x4bc18d){var _0x4bc1b5=_0x40f91b;return _0x86640f()[_0x4bc1b5('0x1d2e')](_0x2c53d6[_0x4bc1b5('0x1b9a')],{'id':_0x4bc18d['id']});}),_0x2c53d6[_0x40f91b('0x2584')]=angular['copy'](_0x2c53d6['selectedItems']),_0x2c53d6[_0x40f91b('0x909')][_0x40f91b('0x2629')]=_0x2c53d6['selectedItems'],_0x2c53d6[_0x40f91b('0x909')]['items']=_0x86640f()[_0x40f91b('0x1eab')](_0x2c53d6[_0x40f91b('0x1e09')],_0x2c53d6[_0x40f91b('0x909')][_0x40f91b('0x2629')],'id'),_0x2e61ef();})['catch'](function(_0x341611){_0x2fc238(_0x341611);});});}function _0x8a5cc8(){return _0x49447b(function(_0xcfabff,_0x33959a){var _0xfb26e2=a0_0x2e7f;return _0x508bdf[_0xfb26e2('0x185e')][_0xfb26e2('0x595')]({'sectionId':_0x2c53d6['section']['id'],'nolimit':!![]})['$promise'][_0xfb26e2('0x21ad')](function(_0xe1c180){_0xcfabff(_0xe1c180);})['catch'](function(_0x2d84f4){_0x33959a(_0x2d84f4);});});}function _0x356c23(){return _0x49447b(function(_0x170be7,_0x4d6685){var _0x4495ce=a0_0x2e7f;return _0x508bdf[_0x4495ce('0x6b5')][_0x4495ce('0x25df')]({'id':_0x2c53d6['chatQueue']['id'],'fields':_0x4495ce('0x1aa8'),'nolimit':!![]})[_0x4495ce('0x1376')][_0x4495ce('0x21ad')](function(_0x4bc4b2){_0x170be7(_0x4bc4b2);})[_0x4495ce('0x1c1d')](function(_0x3b8e8c){_0x4d6685(_0x3b8e8c);});});}function _0x1534de(){return _0x49447b(function(_0x17fd13,_0x107aba){var _0x47340c=a0_0x2e7f;return _0x508bdf['team'][_0x47340c('0x595')]({'fields':'id,name','nolimit':!![]})[_0x47340c('0x1376')][_0x47340c('0x21ad')](function(_0x3c75ec){_0x17fd13(_0x3c75ec);})[_0x47340c('0x1c1d')](function(_0x3987c8){_0x107aba(_0x3987c8);});});}function _0x216be3(_0x26fdb1){return _0x49447b(function(_0x4f7140,_0x56d00a){var _0x2849d4=a0_0x2e7f;_0x86640f()['isEmpty'](_0x26fdb1)?_0x4f7140():_0x508bdf[_0x2849d4('0x6b5')][_0x2849d4('0x36c')]({'id':_0x2c53d6[_0x2849d4('0x6b5')]['id'],'ids':_0x86640f()[_0x2849d4('0x26c3')](_0x26fdb1,'id')})[_0x2849d4('0x1376')][_0x2849d4('0x21ad')](function(){_0x4f7140();})['catch'](function(_0x21f607){_0x56d00a(_0x21f607);});});}function _0x3fe7b4(_0x132ef0){return _0x49447b(function(_0x5936ab,_0x385c4a){var _0x8e134a=a0_0x2e7f;_0x86640f()['isEmpty'](_0x132ef0)?_0x5936ab():_0x508bdf[_0x8e134a('0x6b5')][_0x8e134a('0xbc7')]({'id':_0x2c53d6[_0x8e134a('0x6b5')]['id'],'ids':_0x86640f()[_0x8e134a('0x26c3')](_0x132ef0,'id')})['$promise'][_0x8e134a('0x21ad')](function(){_0x5936ab();})[_0x8e134a('0x1c1d')](function(_0x26d38d){_0x385c4a(_0x26d38d);});});}function _0x6e8069(){var _0x4cf614=_0x22a2d1,_0x161311=_0x86640f()[_0x4cf614('0x1eab')](_0x2c53d6['startingSelectedItems'],_0x2c53d6[_0x4cf614('0x2629')],'id'),_0x4ee53b=_0x86640f()[_0x4cf614('0x1eab')](_0x2c53d6['selectedItems'],_0x2c53d6['startingSelectedItems'],'id');return _0x3fe7b4(_0x161311)[_0x4cf614('0x21ad')](function(){return _0x216be3(_0x4ee53b);})[_0x4cf614('0x21ad')](function(){var _0x3df0c8=_0x4cf614;_0x2c53d6[_0x3df0c8('0x1bb9')]=![],_0x2c53d6[_0x3df0c8('0x91b')]=angular[_0x3df0c8('0xd75')](_0x2c53d6[_0x3df0c8('0x1e09')]),_0x2c53d6['startingSelectedItems']=angular['copy'](_0x2c53d6[_0x3df0c8('0x2629')]),_0x2d23e1[_0x3df0c8('0xdb1')]({'title':'SUCCESS','msg':_0x3df0c8('0x4c8')});})[_0x4cf614('0x1c1d')](function(_0x16880e){var _0x2fcbfd=_0x4cf614;_0x2d23e1[_0x2fcbfd('0x2092')]({'title':_0x16880e[_0x2fcbfd('0x209')]?'API:'+_0x16880e[_0x2fcbfd('0x209')]+_0x2fcbfd('0xa99')+_0x16880e[_0x2fcbfd('0x1808')]:_0x2fcbfd('0x1dd7'),'msg':_0x16880e[_0x2fcbfd('0x209')]?JSON['stringify'](_0x16880e['data']):_0x16880e[_0x2fcbfd('0x174f')]()});});}function _0x225828(){var _0x3eccc4=_0x22a2d1;_0x2fb511[_0x3eccc4('0x1c24')]();}}const _0xb00bb3=_0x51e44f;_0x69ef11['$inject']=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x13c1'),_0x3877e3('0x2ff'),'setting',_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x6b5'),'userProfileSection'];function _0x69ef11(_0x1d1336,_0x2f2be,_0x4e2402,_0x72804b,_0x49997b,_0x346f12,_0x3eca7c,_0x11f4de,_0x179766,_0x461406,_0x5d797c,_0x3aa396){var _0x507562=_0x3877e3,_0x274ff0=this;_0x274ff0[_0x507562('0x123f')]=_0x461406['getCurrentUser'](),_0x274ff0[_0x507562('0x2ff')]=_0x346f12,_0x274ff0[_0x507562('0x21e')]=_0x3eca7c,_0x274ff0[_0x507562('0x1432')]=_0x274ff0[_0x507562('0x21e')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x274ff0['location']=_0x2f2be['protocol']()+_0x507562('0x22a9')+_0x2f2be['host'](),_0x274ff0['chatQueue']=_0x5d797c||_0x1d1336['params'][_0x507562('0x6b5')]||{},_0x274ff0['userProfileSection']=_0x3aa396&&_0x3aa396[_0x507562('0x205f')]==0x1?_0x3aa396[_0x507562('0x1b33')][0x0]:null,_0x274ff0['crudPermissions']=_0x461406[_0x507562('0x1778')](_0x274ff0[_0x507562('0xab4')]?_0x274ff0[_0x507562('0xab4')][_0x507562('0x5ed')]:null),_0x274ff0[_0x507562('0x126a')]={},_0x274ff0[_0x507562('0x302')]=_0x1d1336[_0x507562('0x171b')][_0x507562('0x12e1')]||0x0,_0x274ff0[_0x507562('0x1111')]=_0x241eb2,_0x274ff0[_0x507562('0x1297')]=_0x5e3fa1,_0x274ff0[_0x507562('0x95b')]=_0x179766[_0x507562('0x231c')],_0x274ff0[_0x507562('0xf12')]=_0x1b83c,_0x274ff0[_0x507562('0x505')]=_0x3359a0;function _0x241eb2(_0x3fec30,_0x1026cb){var _0x38d891=_0x507562;_0x4e2402[_0x38d891('0x853')]({'controller':_0x38d891('0x489'),'controllerAs':'vm','templateUrl':_0x10d792,'parent':angular['element'](_0x72804b[_0x38d891('0x2452')]),'targetEvent':_0x1026cb,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x3fec30,'chatQueues':_0x274ff0[_0x38d891('0x104a')]?_0x274ff0[_0x38d891('0x104a')][_0x38d891('0x1b33')]:[],'crudPermissions':_0x274ff0[_0x38d891('0x5ed')]}});}function _0x5e3fa1(_0x5f4559,_0x65eee3){var _0x599f1a=_0x507562;_0x4e2402[_0x599f1a('0x853')]({'controller':_0x599f1a('0x139a'),'controllerAs':'vm','templateUrl':_0x1867e9,'parent':angular[_0x599f1a('0x1676')](_0x72804b[_0x599f1a('0x2452')]),'targetEvent':_0x65eee3,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x5f4559,'chatQueues':_0x274ff0[_0x599f1a('0x104a')]?_0x274ff0[_0x599f1a('0x104a')][_0x599f1a('0x1b33')]:[],'crudPermissions':_0x274ff0[_0x599f1a('0x5ed')],'realtime':![]}});}function _0x1b83c(){var _0x5bfb2f=_0x507562;_0x1d1336['go'](_0x5bfb2f('0x11cb'),{},{'reload':_0x5bfb2f('0x11cb')});}function _0x3359a0(){var _0x56aac6=_0x507562;_0x11f4de[_0x56aac6('0x6b5')][_0x56aac6('0x5ef')]({'id':_0x274ff0[_0x56aac6('0x6b5')]['id']},_0x274ff0[_0x56aac6('0x6b5')])[_0x56aac6('0x1376')][_0x56aac6('0x21ad')](function(){var _0x146aa8=_0x56aac6;_0x179766[_0x146aa8('0xdb1')]({'title':'ChatQueue\x20updated!','msg':_0x274ff0[_0x146aa8('0x6b5')][_0x146aa8('0x19fe')]?_0x274ff0[_0x146aa8('0x6b5')]['name']+_0x146aa8('0xa8d'):''});})[_0x56aac6('0x1c1d')](function(_0x49556c){var _0x83e12d=_0x56aac6;_0x179766[_0x83e12d('0x2092')]({'title':_0x49556c['status']?_0x83e12d('0x22d')+_0x49556c['status']+_0x83e12d('0xa99')+_0x49556c['statusText']:_0x83e12d('0xb9'),'msg':_0x49556c[_0x83e12d('0x11c2')]?JSON[_0x83e12d('0x25e')](_0x49556c[_0x83e12d('0x11c2')]):_0x49556c['toString']()});});}}const _0x2fc32a=_0x69ef11,_0x54ba4c=_0x398308['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/agentadd/agentadd.html/agentadd-[chunkhash].html',_0x1788e0=_0x398308['p']+_0x3877e3('0x1354');_0x2b1e97[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x13c1'),_0x3877e3('0x2d9'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x2b1e97(_0x29ac5d,_0x452d51,_0xba73a2,_0x15c962,_0x131360,_0x1ef10e,_0x3ec7eb,_0x13c3a7,_0x12e7b5,_0x50727b,_0x593a3b,_0x17812b,_0x4cbeb5,_0x32e4b8,_0x20e7f5,_0x2ede63,_0xd9171e){var _0xde0f47=_0x3877e3,_0x5f559b=this;_0x5f559b[_0xde0f47('0x2ff')]=_0x2ede63,_0x5f559b[_0xde0f47('0x21e')]=_0xd9171e,_0x5f559b[_0xde0f47('0x123f')]=_0x20e7f5['getCurrentUser'](),_0x5f559b[_0xde0f47('0x2d9')]=_0x12e7b5||{'count':0x0,'rows':[]},_0x5f559b[_0xde0f47('0x758')]=_0x50727b,_0x5f559b[_0xde0f47('0xab4')]=_0x593a3b&&_0x593a3b['count']==0x1?_0x593a3b[_0xde0f47('0x1b33')][0x0]:null,_0x5f559b[_0xde0f47('0x5ed')]=_0x20e7f5[_0xde0f47('0x1778')](_0x5f559b[_0xde0f47('0xab4')]?_0x5f559b[_0xde0f47('0xab4')]['crudPermissions']:null),_0x5f559b['table']='chatWebsites',_0x5f559b['listOrder']='',_0x5f559b['listOrderAsc']=null,_0x5f559b[_0xde0f47('0x1ee3')]=[],_0x5f559b[_0xde0f47('0x77')]={'fields':_0xde0f47('0x7a3'),'sort':_0xde0f47('0x33'),'limit':0xa,'page':0x1},_0x5f559b[_0xde0f47('0x1351')]=_0x86640f()[_0xde0f47('0xcde')]([{'option':_0xde0f47('0x19fc'),'value':_0xde0f47('0x1cc0')},{'option':_0xde0f47('0x21f'),'value':_0xde0f47('0x1ef7')},{'option':'AgentFullname','value':_0xde0f47('0x1b51')}],function(_0x3a1ce5){var _0x4fcef5=_0xde0f47;return _0x86640f()[_0x4fcef5('0x16e4')](_0x3a1ce5[_0x4fcef5('0x2228')],new RegExp('\x27','g'),'');}),_0x5f559b[_0xde0f47('0x10e7')]=_0x86640f()[_0xde0f47('0xcde')]([{'option':_0xde0f47('0x183'),'value':_0xde0f47('0x27da')},{'option':_0xde0f47('0x1bd6'),'value':_0xde0f47('0xe09')}],function(_0x3654b5){var _0x56228c=_0xde0f47;return _0x86640f()[_0x56228c('0x16e4')](_0x3654b5[_0x56228c('0x2228')],new RegExp('\x27','g'),'');}),_0x5f559b['arrayalignment']=_0x86640f()[_0xde0f47('0xcde')]([{'option':_0xde0f47('0x219b'),'value':_0xde0f47('0x1fc1')},{'option':_0xde0f47('0x2575'),'value':_0xde0f47('0x267f')},{'option':_0xde0f47('0x1194'),'value':_0xde0f47('0x153c')}],function(_0x930124){var _0x5ebeca=_0xde0f47;return _0x86640f()[_0x5ebeca('0x16e4')](_0x930124[_0x5ebeca('0x2228')],new RegExp('\x27','g'),'');}),_0x5f559b[_0xde0f47('0x799')]=_0x86640f()['keyBy']([{'option':'alternate','value':_0xde0f47('0x20a1')},{'option':_0xde0f47('0x1eeb'),'value':_0xde0f47('0x1f06')}],function(_0x43b269){var _0x4dffe6=_0xde0f47;return _0x86640f()['replace'](_0x43b269[_0x4dffe6('0x2228')],new RegExp('\x27','g'),'');}),_0x5f559b[_0xde0f47('0x238d')]=_0x86640f()[_0xde0f47('0xcde')]([{'option':_0xde0f47('0xead'),'value':_0xde0f47('0x1ec4')},{'option':_0xde0f47('0xce4'),'value':_0xde0f47('0x1b54')}],function(_0x4ed09c){var _0x24d24e=_0xde0f47;return _0x86640f()[_0x24d24e('0x16e4')](_0x4ed09c[_0x24d24e('0x2228')],new RegExp('\x27','g'),'');}),_0x5f559b[_0xde0f47('0x1c88')]=_0x3ed8cb,_0x5f559b[_0xde0f47('0x40f')]=_0x10bb38,_0x5f559b[_0xde0f47('0x1bb7')]=_0x1220a5,_0x5f559b['agentadddialog']=_0x23180b,_0x5f559b[_0xde0f47('0x2593')]=_0x480d55,_0x5f559b[_0xde0f47('0xdb1')]=_0x2615c0,_0x5f559b['getChatWebsites']=_0x19bf40,_0x5f559b[_0xde0f47('0x2589')]=_0xd91429,_0x5f559b[_0xde0f47('0x2495')]=_0x855544,_0x5f559b[_0xde0f47('0x106b')]=_0x536a91,_0x5f559b[_0xde0f47('0x1a50')]=_0x457b71,_0x5f559b['deselectChatWebsites']=_0x5cadbb,_0x5f559b[_0xde0f47('0xd11')]=_0x1f7e41,_0x20e7f5[_0xde0f47('0x21de')](_0xde0f47('0x1bd8'))?_0x17812b[_0xde0f47('0x11e0')][_0xde0f47('0x595')]({'fields':_0xde0f47('0x1aa8'),'sort':_0xde0f47('0x19fe')})[_0xde0f47('0x1376')][_0xde0f47('0x21ad')](function(_0x21df28){var _0x457cfe=_0xde0f47;_0x5f559b[_0x457cfe('0x1972')]=_0x21df28[_0x457cfe('0x1b33')]||[];})['catch'](function(_0x3a1e93){var _0x88a41a=_0xde0f47;_0x32e4b8[_0x88a41a('0x2092')]({'title':_0x3a1e93['status']?_0x88a41a('0x22d')+_0x3a1e93['status']+_0x88a41a('0xa99')+_0x3a1e93[_0x88a41a('0x1808')]:_0x88a41a('0xf59'),'msg':_0x3a1e93[_0x88a41a('0x11c2')]?JSON[_0x88a41a('0x25e')](_0x3a1e93[_0x88a41a('0x11c2')]):_0x3a1e93['toString']()});}):_0x17812b[_0xde0f47('0x11e0')]['get']({'fields':'id,name','sort':_0xde0f47('0x19fe')})[_0xde0f47('0x1376')][_0xde0f47('0x21ad')](function(_0x3dd5f2){var _0x59d9c1=_0xde0f47;_0x5f559b[_0x59d9c1('0x1972')]=_0x3dd5f2[_0x59d9c1('0x1b33')]||[];})[_0xde0f47('0x21ad')](function(){var _0x5bcfe0=_0xde0f47;return _0x17812b[_0x5bcfe0('0xab4')]['get']({'userProfileId':_0x5f559b[_0x5bcfe0('0x123f')][_0x5bcfe0('0x1618')],'sectionId':0x12d})['$promise'];})[_0xde0f47('0x21ad')](function(_0x2a8b9b){var _0x58f2ab=_0xde0f47,_0x40f876=_0x2a8b9b&&_0x2a8b9b[_0x58f2ab('0x1b33')]?_0x2a8b9b[_0x58f2ab('0x1b33')][0x0]:null;if(!_0x40f876){var _0x47d6af=[],_0x22f7e1=null;_0x5f559b['chatWebsite']&&(_0x22f7e1=_0x86640f()[_0x58f2ab('0x1d2e')](_0x5f559b[_0x58f2ab('0x1972')],{'id':Number(_0x5f559b[_0x58f2ab('0xe3c')][_0x58f2ab('0x815')])}));for(var _0x23b78a=0x0;_0x23b78a<_0x5f559b[_0x58f2ab('0x1972')][_0x58f2ab('0x577')];_0x23b78a++){_0x22f7e1&&_0x5f559b[_0x58f2ab('0x1972')][_0x23b78a]['id']===_0x22f7e1['id']&&(_0x5f559b['lists'][_0x23b78a][_0x58f2ab('0xba')]=![],_0x47d6af[_0x58f2ab('0x206c')](_0x5f559b['lists'][_0x23b78a]));}_0x5f559b[_0x58f2ab('0x1972')]=_0x47d6af;}else{if(!_0x40f876['autoAssociation'])return _0x17812b['userProfileResource'][_0x58f2ab('0x595')]({'sectionId':_0x40f876['id']})[_0x58f2ab('0x1376')]['then'](function(_0x351a52){var _0x44d660=_0x58f2ab,_0x142b71=_0x86640f()['map'](_0x351a52[_0x44d660('0x1b33')],function(_0x3236ab){var _0x4119da=_0x44d660;return _0x86640f()[_0x4119da('0x1d2e')](_0x5f559b['lists'],{'id':_0x3236ab[_0x4119da('0x675')]});}),_0x28fe1d=null;_0x5f559b[_0x44d660('0xe3c')]&&(_0x28fe1d=_0x86640f()[_0x44d660('0x1d2e')](_0x5f559b[_0x44d660('0x1972')],{'id':Number(_0x5f559b[_0x44d660('0xe3c')][_0x44d660('0x815')])}));if(_0x28fe1d&&!_0x86640f()[_0x44d660('0x2664')](_0x142b71,['id',_0x28fe1d['id']])){var _0x100c99=_0x86640f()['find'](_0x5f559b['lists'],{'id':_0x28fe1d['id']});_0x100c99[_0x44d660('0xba')]=![],_0x142b71[_0x44d660('0x206c')](_0x100c99);}_0x5f559b['lists']=_0x142b71;});}})[_0xde0f47('0x1c1d')](function(_0x5a0e61){var _0x2816cb=_0xde0f47;_0x32e4b8[_0x2816cb('0x2092')]({'title':_0x5a0e61[_0x2816cb('0x209')]?'API:'+_0x5a0e61[_0x2816cb('0x209')]+_0x2816cb('0xa99')+_0x5a0e61[_0x2816cb('0x1808')]:_0x2816cb('0xa92'),'msg':_0x5a0e61[_0x2816cb('0x11c2')]?JSON[_0x2816cb('0x25e')](_0x5a0e61[_0x2816cb('0x11c2')]):_0x5a0e61[_0x2816cb('0x174f')]()});}),_0x20e7f5[_0xde0f47('0x21de')](_0xde0f47('0x1bd8'))?_0x17812b[_0xde0f47('0xa07')][_0xde0f47('0x595')]({'fields':_0xde0f47('0x1aa8'),'sort':_0xde0f47('0x19fe'),'IntervalId':_0xde0f47('0x27a')})[_0xde0f47('0x1376')][_0xde0f47('0x21ad')](function(_0x2c86b5){_0x5f559b['interval']=_0x2c86b5['rows']||[];})['catch'](function(_0x1a04c6){var _0x4a7627=_0xde0f47;_0x32e4b8[_0x4a7627('0x2092')]({'title':_0x1a04c6[_0x4a7627('0x209')]?'API:'+_0x1a04c6[_0x4a7627('0x209')]+_0x4a7627('0xa99')+_0x1a04c6[_0x4a7627('0x1808')]:_0x4a7627('0x1c18'),'msg':_0x1a04c6[_0x4a7627('0x11c2')]?JSON[_0x4a7627('0x25e')](_0x1a04c6[_0x4a7627('0x11c2')]):_0x1a04c6[_0x4a7627('0x174f')]()});}):_0x17812b[_0xde0f47('0xa07')]['get']({'fields':'id,name','sort':_0xde0f47('0x19fe'),'IntervalId':_0xde0f47('0x27a')})[_0xde0f47('0x1376')][_0xde0f47('0x21ad')](function(_0x169143){var _0x4cf60f=_0xde0f47;_0x5f559b[_0x4cf60f('0xa07')]=_0x169143[_0x4cf60f('0x1b33')]||[];})[_0xde0f47('0x21ad')](function(){var _0x1088d1=_0xde0f47;return _0x17812b['userProfileSection'][_0x1088d1('0x595')]({'userProfileId':_0x5f559b[_0x1088d1('0x123f')][_0x1088d1('0x1618')],'sectionId':0x3ec})[_0x1088d1('0x1376')];})[_0xde0f47('0x21ad')](function(_0x4bab66){var _0x47e86c=_0xde0f47,_0x51a614=_0x4bab66&&_0x4bab66['rows']?_0x4bab66['rows'][0x0]:null;if(!_0x51a614){var _0x2c8255=[],_0x1fd0d4=null;_0x5f559b[_0x47e86c('0xe3c')]&&(_0x1fd0d4=_0x86640f()[_0x47e86c('0x1d2e')](_0x5f559b[_0x47e86c('0xa07')],{'id':Number(_0x5f559b[_0x47e86c('0xe3c')][_0x47e86c('0x1ac8')])}));for(var _0x1ddd5f=0x0;_0x1ddd5f<_0x5f559b[_0x47e86c('0xa07')][_0x47e86c('0x577')];_0x1ddd5f++){_0x1fd0d4&&_0x5f559b['interval'][_0x1ddd5f]['id']===_0x1fd0d4['id']&&(_0x5f559b['interval'][_0x1ddd5f][_0x47e86c('0xba')]=![],_0x2c8255[_0x47e86c('0x206c')](_0x5f559b['interval'][_0x1ddd5f]));}_0x5f559b[_0x47e86c('0xa07')]=_0x2c8255;}else{if(!_0x51a614[_0x47e86c('0x80c')])return _0x17812b[_0x47e86c('0x185e')][_0x47e86c('0x595')]({'sectionId':_0x51a614['id']})[_0x47e86c('0x1376')][_0x47e86c('0x21ad')](function(_0xdf0767){var _0x5f052c=_0x47e86c,_0x30aae3=_0x86640f()[_0x5f052c('0x26c3')](_0xdf0767['rows'],function(_0xfdb3e3){var _0xbd8fd1=_0x5f052c;return _0x86640f()[_0xbd8fd1('0x1d2e')](_0x5f559b['interval'],{'id':_0xfdb3e3[_0xbd8fd1('0x675')]});}),_0x3eb4c9=null;_0x5f559b['chatWebsite']&&(_0x3eb4c9=_0x86640f()[_0x5f052c('0x1d2e')](_0x5f559b[_0x5f052c('0xa07')],{'id':Number(_0x5f559b[_0x5f052c('0xe3c')][_0x5f052c('0x1ac8')])}));if(_0x3eb4c9&&!_0x86640f()[_0x5f052c('0x2664')](_0x30aae3,['id',_0x3eb4c9['id']])){var _0x284aab=_0x86640f()[_0x5f052c('0x1d2e')](_0x5f559b[_0x5f052c('0xa07')],{'id':_0x3eb4c9['id']});_0x284aab['canSelect']=![],_0x30aae3[_0x5f052c('0x206c')](_0x284aab);}_0x5f559b[_0x5f052c('0xa07')]=_0x30aae3;});}})[_0xde0f47('0x1c1d')](function(_0xa67bfb){var _0x58290c=_0xde0f47;_0x32e4b8[_0x58290c('0x2092')]({'title':_0xa67bfb[_0x58290c('0x209')]?_0x58290c('0x22d')+_0xa67bfb[_0x58290c('0x209')]+_0x58290c('0xa99')+_0xa67bfb[_0x58290c('0x1808')]:'SYSTEM:GETinterval','msg':_0xa67bfb[_0x58290c('0x11c2')]?JSON[_0x58290c('0x25e')](_0xa67bfb[_0x58290c('0x11c2')]):_0xa67bfb[_0x58290c('0x174f')]()});});function _0x3ed8cb(_0x28aff5){var _0x50ddb6=_0xde0f47;_0xba73a2['go'](_0x50ddb6('0x6ba'),{'id':_0x28aff5['id'],'chatWebsite':_0x28aff5,'crudPermissions':_0x5f559b[_0x50ddb6('0x5ed')]});}function _0x10bb38(_0x265534){var _0x4f0da5=_0xde0f47;_0xba73a2['go'](_0x4f0da5('0x6ba'),{'id':_0x265534['id'],'tab':0xa});}function _0x1220a5(_0x3be687){var _0x1c4fc2=_0xde0f47;_0xba73a2['go'](_0x1c4fc2('0x6ba'),{'id':_0x3be687['id'],'tab':0xb});}function _0x23180b(_0x3a1c87,_0x14f214){var _0x417436=_0xde0f47;_0x131360['show']({'controller':_0x417436('0x1c90'),'controllerAs':'vm','templateUrl':_0x54ba4c,'parent':angular['element'](_0x1ef10e[_0x417436('0x2452')]),'targetEvent':_0x14f214,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x3a1c87,'chatWebsites':_0x5f559b[_0x417436('0x2d9')]?_0x5f559b[_0x417436('0x2d9')][_0x417436('0x1b33')]:[],'crudPermissions':_0x5f559b[_0x417436('0x5ed')],'realtime':![]}});}function _0x480d55(_0xfb6039,_0x4b9be6){var _0xf40d91=_0xde0f47,_0x40ea27=_0x131360[_0xf40d91('0xa33')]()[_0xf40d91('0x4b4')](_0xf40d91('0x25b6')+_0x86640f()[_0xf40d91('0x2159')](_0xf40d91('0xe3c'))+'?')[_0xf40d91('0x276b')](_0xf40d91('0x622')+(_0xfb6039[_0xf40d91('0x19fe')]||_0xf40d91('0xe3c'))+_0xf40d91('0x2135')+_0xf40d91('0x25e0'))[_0xf40d91('0x7a7')](_0xf40d91('0x2f1'))[_0xf40d91('0x1e6d')](_0x4b9be6)['ok']('OK')[_0xf40d91('0x3b5')](_0xf40d91('0x284b'));_0x131360[_0xf40d91('0x853')](_0x40ea27)['then'](function(){_0x855544(_0xfb6039);},function(){var _0x73690=_0xf40d91;console[_0x73690('0x6fb')](_0x73690('0x284b'));});}var _0x52befa=!![],_0x1c497e=0x1;_0x29ac5d[_0xde0f47('0x10e8')]('vm.query.filter',function(_0x508f67,_0x45177a){var _0x5b9c0c=_0xde0f47;_0x52befa?_0x3ec7eb(function(){_0x52befa=![];}):(!_0x45177a&&(_0x1c497e=_0x5f559b[_0x5b9c0c('0x77')][_0x5b9c0c('0x2376')]),_0x508f67!==_0x45177a&&(_0x5f559b[_0x5b9c0c('0x77')][_0x5b9c0c('0x2376')]=0x1),!_0x508f67&&(_0x5f559b[_0x5b9c0c('0x77')][_0x5b9c0c('0x2376')]=_0x1c497e),_0x5f559b[_0x5b9c0c('0x2675')]());});function _0x2615c0(_0x3ad7d3){var _0xcbd46f=_0xde0f47;_0x5f559b[_0xcbd46f('0x2d9')]=_0x3ad7d3||{'count':0x0,'rows':[]};}function _0x19bf40(){var _0x504509=_0xde0f47;_0x5f559b['query'][_0x504509('0x15a5')]=(_0x5f559b[_0x504509('0x77')][_0x504509('0x2376')]-0x1)*_0x5f559b[_0x504509('0x77')][_0x504509('0x1f4a')],_0x20e7f5[_0x504509('0x21de')]('admin')?_0x5f559b[_0x504509('0x71b')]=_0x17812b[_0x504509('0xe3c')]['get'](_0x5f559b[_0x504509('0x77')],_0x2615c0)['$promise']:(_0x5f559b['query']['id']=_0x5f559b[_0x504509('0x758')]['id'],_0x5f559b[_0x504509('0x77')]['section']=_0x504509('0x1b53'),_0x5f559b['promise']=_0x17812b['userProfile'][_0x504509('0x321')](_0x5f559b[_0x504509('0x77')],_0x2615c0)[_0x504509('0x1376')]);}function _0xd91429(_0x263868,_0x241b05){var _0x22284d=_0xde0f47;_0x131360['show']({'controller':_0x22284d('0x1035'),'controllerAs':'vm','templateUrl':_0x1788e0,'parent':angular[_0x22284d('0x1676')](_0x1ef10e[_0x22284d('0x2452')]),'targetEvent':_0x263868,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x241b05,'chatWebsites':_0x5f559b['chatWebsites']['rows'],'license':_0x5f559b[_0x22284d('0x2ff')],'setting':_0x5f559b[_0x22284d('0x21e')],'crudPermissions':_0x5f559b[_0x22284d('0x5ed')]}});}function _0x855544(_0xbb102){var _0x4c0002=_0xde0f47;_0x17812b[_0x4c0002('0xe3c')][_0x4c0002('0x1164')]({'id':_0xbb102['id']})[_0x4c0002('0x1376')][_0x4c0002('0x21ad')](function(){var _0x23196b=_0x4c0002;_0x86640f()['remove'](_0x5f559b[_0x23196b('0x2d9')][_0x23196b('0x1b33')],{'id':_0xbb102['id']}),_0x5f559b[_0x23196b('0x2d9')][_0x23196b('0x205f')]-=0x1,!_0x5f559b[_0x23196b('0x2d9')][_0x23196b('0x1b33')]['length']&&_0x5f559b[_0x23196b('0x2675')](),_0x32e4b8['success']({'title':_0x86640f()[_0x23196b('0x2159')](_0x23196b('0x27e9'))+'\x20deleted!','msg':_0xbb102[_0x23196b('0x19fe')]?_0xbb102[_0x23196b('0x19fe')]+_0x23196b('0xb4a'):''});})[_0x4c0002('0x1c1d')](function(_0x507965){var _0x3f72df=_0x4c0002;if(_0x507965[_0x3f72df('0x11c2')]&&_0x507965[_0x3f72df('0x11c2')][_0x3f72df('0x1a69')]&&_0x507965[_0x3f72df('0x11c2')][_0x3f72df('0x1a69')][_0x3f72df('0x577')]){_0x5f559b['errors']=_0x507965[_0x3f72df('0x11c2')]['errors']||[{'message':_0x507965[_0x3f72df('0x174f')](),'type':'SYSTEM:DELETEchatWebsite'}];for(var _0x53e3a1=0x0;_0x53e3a1<_0x507965[_0x3f72df('0x11c2')][_0x3f72df('0x1a69')][_0x3f72df('0x577')];_0x53e3a1++){_0x32e4b8[_0x3f72df('0x2092')]({'title':_0x507965[_0x3f72df('0x11c2')][_0x3f72df('0x1a69')][_0x53e3a1][_0x3f72df('0x7fa')],'msg':_0x507965[_0x3f72df('0x11c2')][_0x3f72df('0x1a69')][_0x53e3a1][_0x3f72df('0x1224')]});}}else _0x32e4b8['error']({'title':_0x507965[_0x3f72df('0x209')]?_0x3f72df('0x22d')+_0x507965['status']+'\x20-\x20'+_0x507965[_0x3f72df('0x1808')]:'SYSTEM:DELETEchatWebsite','msg':_0x507965[_0x3f72df('0x11c2')]?JSON[_0x3f72df('0x25e')](_0x507965[_0x3f72df('0x11c2')][_0x3f72df('0x1224')]):_0x507965[_0x3f72df('0x1224')]||_0x507965[_0x3f72df('0x174f')]()});});}function _0x536a91(){var _0x1ad6cd=_0xde0f47,_0x5e1e38=angular[_0x1ad6cd('0xd75')](_0x5f559b[_0x1ad6cd('0x1ee3')]);return _0x5f559b['selectedChatWebsites']=[],_0x5e1e38;}function _0x457b71(_0x8f8280){var _0x40239a=_0xde0f47,_0x30e563=_0x131360[_0x40239a('0xa33')]()[_0x40239a('0x4b4')](_0x40239a('0xdf4'))[_0x40239a('0x276b')](_0x40239a('0x622')+_0x5f559b['selectedChatWebsites']['length']+_0x40239a('0xd74')+_0x40239a('0x25e0'))['ariaLabel'](_0x40239a('0x26d7'))[_0x40239a('0x1e6d')](_0x8f8280)['ok']('OK')['cancel']('CANCEL');_0x131360[_0x40239a('0x853')](_0x30e563)[_0x40239a('0x21ad')](function(){var _0x25c36f=_0x40239a;_0x5f559b[_0x25c36f('0x1ee3')][_0x25c36f('0x1a52')](function(_0x34b728){_0x855544(_0x34b728);}),_0x5f559b[_0x25c36f('0x1ee3')]=[];});}function _0x5cadbb(){_0x5f559b['selectedChatWebsites']=[];}function _0x1f7e41(){var _0x112925=_0xde0f47;_0x5f559b['selectedChatWebsites']=_0x5f559b[_0x112925('0x2d9')]['rows'];}}const _0x1487e4=_0x2b1e97;_0x5826ad[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$location','$mdDialog','$q',_0x3877e3('0x13c1'),'toasty','chatWebsites',_0x3877e3('0xe3c'),_0x3877e3('0xccd'),'Auth',_0x3877e3('0x2ff'),_0x3877e3('0x21e'),'crudPermissions'];function _0x5826ad(_0x2f2715,_0x4e064c,_0x2eef6d,_0x139471,_0x246a9d,_0xb37188,_0x5ab42d,_0x43c8ab,_0x18eef5,_0x44096f,_0x289545,_0x5978d3,_0x1c28db,_0x7a53a6){var _0x47eeb2=_0x3877e3,_0x229460=this;_0x229460[_0x47eeb2('0x123f')]=_0x289545[_0x47eeb2('0x15ed')](),_0x229460[_0x47eeb2('0x1a69')]=[],_0x229460[_0x47eeb2('0x21e')]=_0x1c28db,_0x229460[_0x47eeb2('0x2ff')]=_0x5978d3,_0x229460[_0x47eeb2('0x5ed')]=_0x7a53a6,_0x229460['hasModulePermissions']={},_0x229460[_0x47eeb2('0x1432')]=_0x229460[_0x47eeb2('0x21e')]&&_0x229460[_0x47eeb2('0x21e')][_0x47eeb2('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x229460[_0x47eeb2('0x4b4')]=_0x47eeb2('0x20e0'),_0x229460[_0x47eeb2('0xe3c')]=angular[_0x47eeb2('0xd75')](_0x18eef5),_0x229460[_0x47eeb2('0x2d9')]=_0x43c8ab,_0x229460[_0x47eeb2('0x26e9')]=![];!_0x229460['chatWebsite']&&(_0x229460[_0x47eeb2('0xe3c')]={'remote':_0x2eef6d[_0x47eeb2('0x1162')]()+_0x47eeb2('0x22a9')+_0x2eef6d['host']()+(_0x2eef6d[_0x47eeb2('0x24fe')]()?':'+_0x2eef6d[_0x47eeb2('0x24fe')]():''),'header_shape':_0x47eeb2('0x2a5'),'alignment':_0x47eeb2('0x219b'),'verticalAlignment':0x1e,'messagesAlignment':'alternate','IntervalId':_0x47eeb2('0x27a'),'timezone':_0x47eeb2('0x27a'),'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x229460[_0x47eeb2('0x4b4')]=_0x47eeb2('0x25e6'),_0x229460[_0x47eeb2('0x26e9')]=!![]);_0x4e064c[_0x47eeb2('0x171b')]['id']&&(_0x229460[_0x47eeb2('0xe3c')][_0x47eeb2('0x15f9')]=_0x4e064c[_0x47eeb2('0x171b')]['id']);_0x229460[_0x47eeb2('0x1793')]=_0x3dcc44,_0x229460[_0x47eeb2('0x16bc')]=_0x54523f,_0x229460['deleteChatWebsite']=_0x54cf12,_0x229460[_0x47eeb2('0x279')]=_0x10a497,_0x229460[_0x47eeb2('0x167')]=_0x2fe3c4,_0x289545[_0x47eeb2('0x21de')](_0x47eeb2('0x1bd8'))?_0x44096f[_0x47eeb2('0x11e0')][_0x47eeb2('0x595')]({'fields':_0x47eeb2('0x1aa8'),'sort':'name'})['$promise'][_0x47eeb2('0x21ad')](function(_0x68c3e9){var _0x196edc=_0x47eeb2;_0x229460['lists']=_0x68c3e9[_0x196edc('0x1b33')]||[];})[_0x47eeb2('0x1c1d')](function(_0x34d5d4){var _0x172e1b=_0x47eeb2;_0x5ab42d[_0x172e1b('0x2092')]({'title':_0x34d5d4['status']?_0x172e1b('0x22d')+_0x34d5d4[_0x172e1b('0x209')]+_0x172e1b('0xa99')+_0x34d5d4[_0x172e1b('0x1808')]:_0x172e1b('0xf59'),'msg':_0x34d5d4[_0x172e1b('0x11c2')]?JSON['stringify'](_0x34d5d4[_0x172e1b('0x11c2')]):_0x34d5d4[_0x172e1b('0x174f')]()});}):_0x44096f[_0x47eeb2('0x11e0')][_0x47eeb2('0x595')]({'fields':_0x47eeb2('0x1aa8'),'sort':_0x47eeb2('0x19fe')})[_0x47eeb2('0x1376')]['then'](function(_0x5595f5){var _0x11aafb=_0x47eeb2;_0x229460[_0x11aafb('0x1972')]=_0x5595f5[_0x11aafb('0x1b33')]||[];})['then'](function(){var _0x73c582=_0x47eeb2;return _0x44096f[_0x73c582('0xab4')][_0x73c582('0x595')]({'userProfileId':_0x229460[_0x73c582('0x123f')][_0x73c582('0x1618')],'sectionId':0x12d})['$promise'];})['then'](function(_0x52de70){var _0x4bf573=_0x47eeb2,_0x342984=_0x52de70&&_0x52de70[_0x4bf573('0x1b33')]?_0x52de70[_0x4bf573('0x1b33')][0x0]:null;if(!_0x342984){var _0x435abe=[],_0x1d49b5=null;_0x229460[_0x4bf573('0xe3c')]&&(_0x1d49b5=_0x86640f()[_0x4bf573('0x1d2e')](_0x229460['lists'],{'id':Number(_0x229460['chatWebsite']['ListId'])}));for(var _0x33388a=0x0;_0x33388a<_0x229460['lists'][_0x4bf573('0x577')];_0x33388a++){_0x1d49b5&&_0x229460['lists'][_0x33388a]['id']===_0x1d49b5['id']&&(_0x229460[_0x4bf573('0x1972')][_0x33388a][_0x4bf573('0xba')]=![],_0x435abe['push'](_0x229460['lists'][_0x33388a]));}_0x229460[_0x4bf573('0x1972')]=_0x435abe;}else{if(!_0x342984[_0x4bf573('0x80c')])return _0x44096f[_0x4bf573('0x185e')]['get']({'sectionId':_0x342984['id']})['$promise'][_0x4bf573('0x21ad')](function(_0x347255){var _0x2c9cea=_0x4bf573,_0x326273=_0x86640f()[_0x2c9cea('0x26c3')](_0x347255[_0x2c9cea('0x1b33')],function(_0x248253){var _0x24a67d=_0x2c9cea;return _0x86640f()['find'](_0x229460['lists'],{'id':_0x248253[_0x24a67d('0x675')]});}),_0x3a91dd=null;_0x229460[_0x2c9cea('0xe3c')]&&(_0x3a91dd=_0x86640f()[_0x2c9cea('0x1d2e')](_0x229460[_0x2c9cea('0x1972')],{'id':Number(_0x229460[_0x2c9cea('0xe3c')][_0x2c9cea('0x815')])}));if(_0x3a91dd&&!_0x86640f()[_0x2c9cea('0x2664')](_0x326273,['id',_0x3a91dd['id']])){var _0x142661=_0x86640f()['find'](_0x229460['lists'],{'id':_0x3a91dd['id']});_0x142661[_0x2c9cea('0xba')]=![],_0x326273[_0x2c9cea('0x206c')](_0x142661);}_0x229460[_0x2c9cea('0x1972')]=_0x326273;});}})['catch'](function(_0x8f0749){var _0x408693=_0x47eeb2;_0x5ab42d['error']({'title':_0x8f0749[_0x408693('0x209')]?'API:'+_0x8f0749[_0x408693('0x209')]+_0x408693('0xa99')+_0x8f0749[_0x408693('0x1808')]:'SYSTEM:GETlists','msg':_0x8f0749[_0x408693('0x11c2')]?JSON[_0x408693('0x25e')](_0x8f0749[_0x408693('0x11c2')]):_0x8f0749[_0x408693('0x174f')]()});}),_0x289545[_0x47eeb2('0x21de')]('admin')?_0x44096f['interval'][_0x47eeb2('0x595')]({'fields':'id,name','sort':_0x47eeb2('0x19fe'),'IntervalId':_0x47eeb2('0x27a')})[_0x47eeb2('0x1376')][_0x47eeb2('0x21ad')](function(_0x6bc51a){var _0x55218a=_0x47eeb2;_0x229460[_0x55218a('0xa07')]=_0x6bc51a['rows']||[];})[_0x47eeb2('0x1c1d')](function(_0x236c26){var _0x24f47a=_0x47eeb2;_0x5ab42d[_0x24f47a('0x2092')]({'title':_0x236c26[_0x24f47a('0x209')]?'API:'+_0x236c26['status']+_0x24f47a('0xa99')+_0x236c26[_0x24f47a('0x1808')]:_0x24f47a('0x1c18'),'msg':_0x236c26[_0x24f47a('0x11c2')]?JSON['stringify'](_0x236c26[_0x24f47a('0x11c2')]):_0x236c26['toString']()});}):_0x44096f['interval'][_0x47eeb2('0x595')]({'fields':'id,name','sort':_0x47eeb2('0x19fe'),'IntervalId':_0x47eeb2('0x27a')})[_0x47eeb2('0x1376')]['then'](function(_0x4b69a8){var _0x3b2f70=_0x47eeb2;_0x229460[_0x3b2f70('0xa07')]=_0x4b69a8[_0x3b2f70('0x1b33')]||[];})['then'](function(){var _0x2c97c0=_0x47eeb2;return _0x44096f[_0x2c97c0('0xab4')]['get']({'userProfileId':_0x229460[_0x2c97c0('0x123f')]['userProfileId'],'sectionId':0x3ec})['$promise'];})[_0x47eeb2('0x21ad')](function(_0x872194){var _0x307f47=_0x47eeb2,_0x28f05a=_0x872194&&_0x872194[_0x307f47('0x1b33')]?_0x872194['rows'][0x0]:null;if(!_0x28f05a){var _0x38ee79=[],_0x20589d=null;_0x229460[_0x307f47('0xe3c')]&&(_0x20589d=_0x86640f()[_0x307f47('0x1d2e')](_0x229460[_0x307f47('0xa07')],{'id':Number(_0x229460[_0x307f47('0xe3c')]['IntervalId'])}));for(var _0x5d405b=0x0;_0x5d405b<_0x229460[_0x307f47('0xa07')][_0x307f47('0x577')];_0x5d405b++){_0x20589d&&_0x229460['interval'][_0x5d405b]['id']===_0x20589d['id']&&(_0x229460[_0x307f47('0xa07')][_0x5d405b][_0x307f47('0xba')]=![],_0x38ee79[_0x307f47('0x206c')](_0x229460[_0x307f47('0xa07')][_0x5d405b]));}_0x229460[_0x307f47('0xa07')]=_0x38ee79;}else{if(!_0x28f05a['autoAssociation'])return _0x44096f[_0x307f47('0x185e')][_0x307f47('0x595')]({'sectionId':_0x28f05a['id']})[_0x307f47('0x1376')][_0x307f47('0x21ad')](function(_0xe8fe13){var _0x244a2e=_0x307f47,_0xed5304=_0x86640f()[_0x244a2e('0x26c3')](_0xe8fe13['rows'],function(_0x26fba9){var _0x4b280b=_0x244a2e;return _0x86640f()[_0x4b280b('0x1d2e')](_0x229460[_0x4b280b('0xa07')],{'id':_0x26fba9['resourceId']});}),_0x100499=null;_0x229460[_0x244a2e('0xe3c')]&&(_0x100499=_0x86640f()[_0x244a2e('0x1d2e')](_0x229460[_0x244a2e('0xa07')],{'id':Number(_0x229460[_0x244a2e('0xe3c')][_0x244a2e('0x1ac8')])}));if(_0x100499&&!_0x86640f()['some'](_0xed5304,['id',_0x100499['id']])){var _0x55612e=_0x86640f()[_0x244a2e('0x1d2e')](_0x229460[_0x244a2e('0xa07')],{'id':_0x100499['id']});_0x55612e[_0x244a2e('0xba')]=![],_0xed5304[_0x244a2e('0x206c')](_0x55612e);}_0x229460[_0x244a2e('0xa07')]=_0xed5304;});}})[_0x47eeb2('0x1c1d')](function(_0x1c3d2a){var _0x32b384=_0x47eeb2;_0x5ab42d[_0x32b384('0x2092')]({'title':_0x1c3d2a[_0x32b384('0x209')]?_0x32b384('0x22d')+_0x1c3d2a[_0x32b384('0x209')]+_0x32b384('0xa99')+_0x1c3d2a[_0x32b384('0x1808')]:_0x32b384('0x259e'),'msg':_0x1c3d2a[_0x32b384('0x11c2')]?JSON[_0x32b384('0x25e')](_0x1c3d2a['data']):_0x1c3d2a[_0x32b384('0x174f')]()});});function _0x3dcc44(){var _0x58b92b=_0x47eeb2;_0x229460['errors']=[],_0x44096f[_0x58b92b('0xe3c')][_0x58b92b('0x186f')](_0x229460['chatWebsite'])[_0x58b92b('0x1376')]['then'](function(_0x2494ac){var _0x4b8da8=_0x58b92b;_0x229460['chatWebsites']['unshift'](_0x2494ac[_0x4b8da8('0x3bc')]()),_0x5ab42d[_0x4b8da8('0xdb1')]({'title':_0x4b8da8('0x1d98'),'msg':_0x229460['chatWebsite'][_0x4b8da8('0x19fe')]?_0x229460[_0x4b8da8('0xe3c')][_0x4b8da8('0x19fe')]+'\x20has\x20been\x20created!':''}),_0x2fe3c4(_0x2494ac);})['catch'](function(_0x37985d){var _0x1d1afb=_0x58b92b;if(_0x37985d[_0x1d1afb('0x11c2')]&&_0x37985d[_0x1d1afb('0x11c2')][_0x1d1afb('0x1a69')]&&_0x37985d['data'][_0x1d1afb('0x1a69')][_0x1d1afb('0x577')]){_0x229460['errors']=_0x37985d[_0x1d1afb('0x11c2')][_0x1d1afb('0x1a69')]||[{'message':_0x37985d['toString'](),'type':_0x1d1afb('0x193c')}];for(var _0x51648b=0x0;_0x51648b<_0x37985d['data'][_0x1d1afb('0x1a69')]['length'];_0x51648b+=0x1){_0x5ab42d[_0x1d1afb('0x2092')]({'title':_0x37985d[_0x1d1afb('0x11c2')]['errors'][_0x51648b][_0x1d1afb('0x7fa')],'msg':_0x37985d[_0x1d1afb('0x11c2')][_0x1d1afb('0x1a69')][_0x51648b]['message']});}}else _0x5ab42d['error']({'title':_0x37985d[_0x1d1afb('0x209')]?'API:'+_0x37985d[_0x1d1afb('0x209')]+_0x1d1afb('0xa99')+_0x37985d[_0x1d1afb('0x1808')]:'api.chatWebsite.save','msg':_0x37985d[_0x1d1afb('0x11c2')]?JSON[_0x1d1afb('0x25e')](_0x37985d[_0x1d1afb('0x11c2')]['message']):_0x37985d[_0x1d1afb('0x174f')]()});});}function _0x54523f(){var _0x28e2a1=_0x47eeb2;_0x229460[_0x28e2a1('0x1a69')]=[],_0x44096f['chatWebsite'][_0x28e2a1('0x5ef')]({'id':_0x229460[_0x28e2a1('0xe3c')]['id']},_0x229460['chatWebsite'])[_0x28e2a1('0x1376')][_0x28e2a1('0x21ad')](function(_0x29da63){var _0x3e9aa2=_0x28e2a1,_0x39b819=_0x86640f()[_0x3e9aa2('0x1d2e')](_0x229460[_0x3e9aa2('0x2d9')],{'id':_0x29da63['id']});_0x39b819&&_0x86640f()[_0x3e9aa2('0xd0e')](_0x39b819,_0x86640f()[_0x3e9aa2('0xc50')](_0x29da63[_0x3e9aa2('0x3bc')](),_0x86640f()['keys'](_0x39b819))),_0x5ab42d[_0x3e9aa2('0xdb1')]({'title':_0x3e9aa2('0x279d'),'msg':_0x229460['chatWebsite'][_0x3e9aa2('0x19fe')]?_0x229460['chatWebsite'][_0x3e9aa2('0x19fe')]+'\x20has\x20been\x20saved!':''}),_0x2fe3c4(_0x29da63);})[_0x28e2a1('0x1c1d')](function(_0x5218ff){var _0x5bbe46=_0x28e2a1;if(_0x5218ff[_0x5bbe46('0x11c2')]&&_0x5218ff[_0x5bbe46('0x11c2')]['errors']&&_0x5218ff['data']['errors'][_0x5bbe46('0x577')]){_0x229460[_0x5bbe46('0x1a69')]=_0x5218ff['data'][_0x5bbe46('0x1a69')]||[{'message':_0x5218ff[_0x5bbe46('0x174f')](),'type':_0x5bbe46('0x2418')}];for(var _0x2ef312=0x0;_0x2ef312<_0x5218ff[_0x5bbe46('0x11c2')][_0x5bbe46('0x1a69')]['length'];_0x2ef312++){_0x5ab42d[_0x5bbe46('0x2092')]({'title':_0x5218ff[_0x5bbe46('0x11c2')]['errors'][_0x2ef312][_0x5bbe46('0x7fa')],'msg':_0x5218ff[_0x5bbe46('0x11c2')][_0x5bbe46('0x1a69')][_0x2ef312][_0x5bbe46('0x1224')]});}}else _0x5ab42d['error']({'title':_0x5218ff['status']?'API:'+_0x5218ff['status']+_0x5bbe46('0xa99')+_0x5218ff[_0x5bbe46('0x1808')]:_0x5bbe46('0x2418'),'msg':_0x5218ff[_0x5bbe46('0x11c2')]?JSON['stringify'](_0x5218ff[_0x5bbe46('0x11c2')][_0x5bbe46('0x1224')]):_0x5218ff['toString']()});});}function _0x54cf12(_0x336348){var _0x1c383e=_0x47eeb2;_0x229460[_0x1c383e('0x1a69')]=[];var _0xd9c0b8=_0x139471[_0x1c383e('0xa33')]()['title']('Are\x20you\x20sure?')[_0x1c383e('0x13fb')](_0x1c383e('0x1eec'))[_0x1c383e('0x7a7')](_0x1c383e('0x1e68'))['ok']('Delete')[_0x1c383e('0x3b5')](_0x1c383e('0x1f40'))[_0x1c383e('0x1e6d')](_0x336348);_0x139471['show'](_0xd9c0b8)['then'](function(){var _0x4d25ca=_0x1c383e;_0x44096f[_0x4d25ca('0xe3c')]['delete']({'id':_0x229460['chatWebsite']['id']})[_0x4d25ca('0x1376')][_0x4d25ca('0x21ad')](function(){var _0x13acc8=_0x4d25ca;_0x86640f()[_0x13acc8('0x16a2')](_0x229460[_0x13acc8('0x2d9')],{'id':_0x229460[_0x13acc8('0xe3c')]['id']}),_0x5ab42d[_0x13acc8('0xdb1')]({'title':_0x13acc8('0x1281'),'msg':(_0x229460[_0x13acc8('0xe3c')][_0x13acc8('0x19fe')]||_0x13acc8('0xe3c'))+_0x13acc8('0xb4a')}),_0x2fe3c4(_0x229460['chatWebsite']);})[_0x4d25ca('0x1c1d')](function(_0x22a377){var _0x4b1f82=_0x4d25ca;if(_0x22a377[_0x4b1f82('0x11c2')]&&_0x22a377[_0x4b1f82('0x11c2')]['errors']&&_0x22a377['data']['errors'][_0x4b1f82('0x577')]){_0x229460['errors']=_0x22a377['data']['errors']||[{'message':_0x22a377['toString'](),'type':_0x4b1f82('0x1546')}];for(var _0x4beccc=0x0;_0x4beccc<_0x22a377[_0x4b1f82('0x11c2')][_0x4b1f82('0x1a69')][_0x4b1f82('0x577')];_0x4beccc++){_0x5ab42d['error']({'title':_0x22a377['data'][_0x4b1f82('0x1a69')][_0x4beccc]['type'],'msg':_0x22a377['data'][_0x4b1f82('0x1a69')][_0x4beccc]['message']});}}else _0x5ab42d[_0x4b1f82('0x2092')]({'title':_0x22a377[_0x4b1f82('0x209')]?_0x4b1f82('0x22d')+_0x22a377[_0x4b1f82('0x209')]+_0x4b1f82('0xa99')+_0x22a377[_0x4b1f82('0x1808')]:_0x4b1f82('0x1546'),'msg':_0x22a377[_0x4b1f82('0x11c2')]?JSON[_0x4b1f82('0x25e')](_0x22a377[_0x4b1f82('0x11c2')][_0x4b1f82('0x1224')]):_0x22a377[_0x4b1f82('0x1224')]||_0x22a377[_0x4b1f82('0x174f')]()});});},function(){});}function _0x10a497(_0x57f2c7){return _0x57f2c7===null?undefined:new Date(_0x57f2c7);}function _0x2fe3c4(_0x344222){var _0x4d50c3=_0x47eeb2;_0x139471[_0x4d50c3('0x1c24')](_0x344222);}}const _0x348d8e=_0x5826ad,_0x59f651=_0x398308['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/agent/dialog.html/dialog-[chunkhash].html',_0x367e4a=_0x398308['p']+_0x3877e3('0x1187'),_0x4ed6bf=_0x398308['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/autoreply/dialog.html/dialog-[chunkhash].html',_0x2e07d8=_0x398308['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/close/dialog.html/dialog-[chunkhash].html',_0xa887f1=_0x398308['p']+_0x3877e3('0x4cb'),_0x29902b=_0x398308['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/gotoif/dialog.html/dialog-[chunkhash].html',_0x3dd858=_0x398308['p']+_0x3877e3('0x680'),_0x46e34d=_0x398308['p']+_0x3877e3('0xf9a'),_0x341990=_0x398308['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/noop/dialog.html/dialog-[chunkhash].html',_0x286110=_0x398308['p']+_0x3877e3('0x7a8'),_0x21f96f=_0x398308['p']+_0x3877e3('0xf48'),_0x1cba19=_0x398308['p']+_0x3877e3('0x24f0');_0xd9e2e4[_0x3877e3('0x1a81')]=[_0x3877e3('0xccd'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),'toasty',_0x3877e3('0x15bc')];var _0x127e87={'agent':_0x59f651,'amazonlex':_0x367e4a,'autoreply':_0x4ed6bf,'close':_0x2e07d8,'dialogflow':_0xa887f1,'gotoif':_0x29902b,'gotop':_0x3dd858,'interval':_0x46e34d,'noop':_0x341990,'queue':_0x286110,'system':_0x21f96f,'tag':_0x1cba19};function _0xd9e2e4(_0x5d9be8,_0x174e9f,_0x2c3e0a,_0x14f416,_0x5535fe){var _0x195c3c=_0x3877e3,_0x27415f=this;_0x27415f[_0x195c3c('0x123f')]=_0x5535fe[_0x195c3c('0x15ed')](),_0x27415f[_0x195c3c('0xe3c')]={},_0x27415f[_0x195c3c('0x203b')]={'count':0x0,'rows':[]},_0x27415f[_0x195c3c('0x163f')]=[],_0x27415f[_0x195c3c('0x5ed')],_0x27415f[_0x195c3c('0x77')]={'sort':_0x195c3c('0xbe5')},_0x27415f[_0x195c3c('0x69a')]=_0x86640f()[_0x195c3c('0x37a')](_0x86640f()[_0x195c3c('0x203e')]([{'app':_0x195c3c('0x1809'),'appType':'interval','types':[_0x195c3c('0x869'),_0x195c3c('0xf50'),_0x195c3c('0x17fe')],'fields':[],'isApp':![]},{'app':_0x195c3c('0x2101'),'appType':_0x195c3c('0x2101'),'type':_0x195c3c('0x2101'),'icon':_0x195c3c('0x1da4'),'interval':'*,*,*,*','required':!![],'isApp':!![],'fields':[{'title':_0x195c3c('0x17a0'),'name':_0x195c3c('0x2228'),'type':_0x195c3c('0xc1e'),'param':0x0}]},{'app':'system','appType':_0x195c3c('0x12b1'),'type':_0x195c3c('0x12b1'),'icon':_0x195c3c('0x1da4'),'interval':_0x195c3c('0x1cc4'),'required':!![],'isApp':!![],'extraApi':[{'name':_0x195c3c('0x142d'),'field':{'name':_0x195c3c('0x25bb'),'key':_0x195c3c('0x19fe')},'route':'variable','filters':{'fields':_0x195c3c('0x1aa8'),'sort':'name','nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x195c3c('0x669'),'name':_0x195c3c('0xbf3'),'type':_0x195c3c('0xc1e'),'required':!![],'param':0x0},{'title':_0x195c3c('0x2200'),'name':_0x195c3c('0x25bb'),'type':'apiselect','values':'variables','value':_0x195c3c('0x1958'),'option':_0x195c3c('0x1958'),'defaultValues':[{'value':'\x27\x27','option':_0x195c3c('0x2405')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':'gotop','appType':_0x195c3c('0x23ef'),'type':_0x195c3c('0x12ec'),'icon':_0x195c3c('0x1da4'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x195c3c('0x168e'),'name':'priority','type':_0x195c3c('0xed8'),'required':!![],'min':0x0,'param':0x0}]},{'app':'gotoif','appType':_0x195c3c('0x262'),'type':_0x195c3c('0x262'),'icon':_0x195c3c('0x1da4'),'interval':_0x195c3c('0x1cc4'),'isApp':!![],'fields':[{'title':_0x195c3c('0x16d8'),'name':'condition','type':_0x195c3c('0xc1e'),'required':!![],'param':0x0},{'title':_0x195c3c('0x1a25'),'name':_0x195c3c('0x1a25'),'type':_0x195c3c('0xed8'),'min':0x1,'required':!![],'param':0x1},{'title':'falsepriority','name':_0x195c3c('0xe4c'),'type':'number','min':0x1,'required':!![],'param':0x2}]},{'app':_0x195c3c('0xbdd'),'appType':'queue','foreignKey':_0x195c3c('0x1b7a'),'type':_0x195c3c('0xbdd'),'icon':_0x195c3c('0x1da4'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x195c3c('0xb7a'),'field':{'name':'queue','key':'name'},'route':_0x195c3c('0x6b5'),'filters':{'fields':_0x195c3c('0xfa'),'sort':'name','nolimit':!![]},'permissions':{'section':0x1f5}}],'fields':[{'title':_0x195c3c('0x1da'),'name':_0x195c3c('0xbdd'),'type':'apiselect','values':_0x195c3c('0xb7a'),'value':'queue.name','option':_0x195c3c('0x126f'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':'Timeout','name':_0x195c3c('0x2133'),'type':_0x195c3c('0xed8'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0x195c3c('0x2402'),'appType':_0x195c3c('0x2402'),'type':'agent','foreignKey':_0x195c3c('0x1dc6'),'icon':_0x195c3c('0x1da4'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x195c3c('0xcb5'),'field':{'name':_0x195c3c('0x2402'),'key':_0x195c3c('0x19fe')},'route':_0x195c3c('0x1775'),'filters':{'fields':'id,name','role':_0x195c3c('0x2402'),'sort':_0x195c3c('0x19fe'),'nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':_0x195c3c('0x1a44'),'name':'agent','type':'apiselect','values':_0x195c3c('0xcb5'),'value':_0x195c3c('0x2797'),'option':_0x195c3c('0x2797'),'required':!![],'param':0x0},{'title':'Timeout','name':'timeout','type':_0x195c3c('0xed8'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':'close','appType':_0x195c3c('0x22f'),'type':_0x195c3c('0x22f'),'icon':_0x195c3c('0x1da4'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x195c3c('0x1d3d'),'name':_0x195c3c('0x22c8'),'type':_0x195c3c('0xc1e'),'required':!![],'param':0x0}]},{'app':'autoreply','appType':_0x195c3c('0x1b98'),'type':_0x195c3c('0x1b98'),'icon':'icon-apps','interval':_0x195c3c('0x1cc4'),'isApp':!![],'fields':[{'title':_0x195c3c('0x13b6'),'name':_0x195c3c('0x13b6'),'type':'select','defaultValue':'1','values':[{'option':_0x195c3c('0xafd'),'value':'1'},{'option':_0x195c3c('0x342'),'value':'0'}],'required':!![],'param':0x0},{'title':'Text','name':_0x195c3c('0xc1e'),'type':'textarea','required':!![],'param':0x1}]},{'app':_0x195c3c('0x907'),'appType':_0x195c3c('0x907'),'type':_0x195c3c('0x907'),'foreignKey':_0x195c3c('0x4ab'),'icon':_0x195c3c('0x1da4'),'interval':_0x195c3c('0x1cc4'),'isApp':!![],'extraApi':[{'name':_0x195c3c('0x1889'),'field':{'name':_0x195c3c('0x907'),'key':_0x195c3c('0x19fe')},'route':'tag','filters':{'fields':_0x195c3c('0x1aa8'),'sort':_0x195c3c('0x19fe'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x195c3c('0x295'),'name':_0x195c3c('0x907'),'type':_0x195c3c('0x15e9'),'values':_0x195c3c('0x1889'),'value':_0x195c3c('0x1706'),'option':_0x195c3c('0x1706'),'required':!![],'param':0x0}]},{'app':_0x195c3c('0xc72'),'appType':_0x195c3c('0xc72'),'type':_0x195c3c('0xc72'),'icon':_0x195c3c('0x1da4'),'interval':_0x195c3c('0x1cc4'),'isApp':!![],'fields':[{'title':_0x195c3c('0x1a6d'),'name':'key','type':_0x195c3c('0xc1e'),'required':!![],'param':0x0},{'title':_0x195c3c('0x10f'),'name':'language','type':_0x195c3c('0x2844'),'defaultValue':_0x195c3c('0x38d'),'values':[{'option':_0x195c3c('0xaa1'),'value':_0x195c3c('0x1119')},{'option':'English','value':_0x195c3c('0x38d')},{'option':_0x195c3c('0x2a'),'value':_0x195c3c('0x1e5f')},{'option':_0x195c3c('0xda4'),'value':_0x195c3c('0x1151')},{'option':_0x195c3c('0x249d'),'value':_0x195c3c('0x931')},{'option':'French','value':_0x195c3c('0x1407')},{'option':'Indonesian','value':_0x195c3c('0x85')},{'option':'Japanese','value':_0x195c3c('0x1405')},{'option':_0x195c3c('0xd06'),'value':'\x27ko\x27'},{'option':_0x195c3c('0x1513'),'value':_0x195c3c('0x14b9')},{'option':_0x195c3c('0x2748'),'value':_0x195c3c('0x1223')},{'option':'Portuguese\x20(European)','value':'\x27pt\x27'},{'option':_0x195c3c('0x132c'),'value':_0x195c3c('0x11ab')},{'option':'Russian','value':'\x27ru\x27'},{'option':'Swedish','value':_0x195c3c('0x1d3e')},{'option':_0x195c3c('0x140c'),'value':'\x27th\x27'},{'option':_0x195c3c('0x27e2'),'value':_0x195c3c('0x1077')},{'option':_0x195c3c('0x1aa4'),'value':_0x195c3c('0x22b3')},{'option':_0x195c3c('0x20f2'),'value':_0x195c3c('0x962')},{'option':_0x195c3c('0x15fb'),'value':_0x195c3c('0x22c9')}],'required':!![],'param':0x1},{'title':'welcomemessage','name':_0x195c3c('0x1cce'),'type':_0x195c3c('0x20f9'),'maxlength':0xff,'param':0x2,'help':!![]}]},{'app':_0x195c3c('0x1c22'),'appType':_0x195c3c('0x1c22'),'type':_0x195c3c('0x1c22'),'icon':_0x195c3c('0x1da4'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':'accesskeyid','name':'accesskeyid','type':_0x195c3c('0xc1e'),'required':!![],'param':0x0},{'title':_0x195c3c('0x797'),'name':_0x195c3c('0x797'),'type':'text','required':!![],'param':0x1},{'title':_0x195c3c('0x20a3'),'name':_0x195c3c('0x20a3'),'type':_0x195c3c('0x2844'),'defaultValue':_0x195c3c('0x20c7'),'values':[{'option':'US\x20East\x20(N.\x20Virginia)','value':_0x195c3c('0x20c7')},{'option':_0x195c3c('0x1b2a'),'value':_0x195c3c('0x2335')},{'option':_0x195c3c('0x1844'),'value':'\x27eu-west-1\x27'},{'option':_0x195c3c('0x4be'),'value':_0x195c3c('0x13f2')}],'required':!![],'param':0x2},{'title':_0x195c3c('0x15fe'),'name':_0x195c3c('0x15fe'),'type':_0x195c3c('0xc1e'),'required':!![],'param':0x3},{'title':_0x195c3c('0x1cce'),'name':'welcomemessage','type':_0x195c3c('0x20f9'),'maxlength':0xff,'param':0x4,'help':!![]}]}],[_0x195c3c('0x1f94')]),{'isApp':![]}),_0x27415f[_0x195c3c('0x17fe')]={'group':{'name':_0x195c3c('0xcd'),'pull':'clone'},'animation':0x64,'sort':![]},_0x27415f[_0x195c3c('0x21d8')]={'group':{'name':_0x195c3c('0x1627'),'put':_0x195c3c('0xcd')},'animation':0x64,'onAdd':function _0x3d6d3f(_0x2989f4){var _0x4fd947=_0x195c3c;_0x436e08(_0x2989f4,_0x2989f4[_0x4fd947('0x5b8')]);},'onSort':function _0x4f1193(){_0x3c693a();}},_0x27415f[_0x195c3c('0x1d75')]=_0x3c592d,_0x27415f[_0x195c3c('0x15dc')]=_0x6ef50c,_0x27415f[_0x195c3c('0x247e')]=_0x44566c,_0x27415f['editChatWebsiteApp']=_0x436e08,_0x27415f[_0x195c3c('0xb14')]=_0x40a0b9,_0x27415f[_0x195c3c('0xfba')]=_0x1a6524,_0x27415f[_0x195c3c('0x14d6')]=_0x3b042e,_0x27415f[_0x195c3c('0x14aa')]=_0x3c693a,_0x27415f[_0x195c3c('0x1ceb')]=_0x30a514;function _0x3c592d(_0x447277,_0x18e1ab){var _0x28f404=_0x195c3c;_0x27415f[_0x28f404('0xe3c')]=_0x447277,_0x27415f[_0x28f404('0x5ed')]=typeof _0x18e1ab!==_0x28f404('0xddc')?_0x18e1ab:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x27415f[_0x28f404('0x21d8')][_0x28f404('0x30')]=!_0x27415f[_0x28f404('0x5ed')][_0x28f404('0x6e2')]?!![]:![],_0x27415f[_0x28f404('0x77')]['id']=_0x447277['id'],_0x27415f[_0x28f404('0x77')]['isApp']=!![],_0x27415f[_0x28f404('0x77')][_0x28f404('0x1dc3')]=!![],_0x27415f[_0x28f404('0x247e')](),_0x27415f[_0x28f404('0x1ceb')]();}function _0x6ef50c(_0x4df693,_0x116fe4,_0x70a74d){var _0x1bd689=_0x195c3c,_0x56f582=_0x174e9f[_0x1bd689('0xa33')]()[_0x1bd689('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')[_0x1bd689('0x276b')](_0x1bd689('0x622')+_0x4df693[_0x1bd689('0x1f94')]+_0x1bd689('0x2135')+'\x20will\x20be\x20deleted.')[_0x1bd689('0x7a7')](_0x1bd689('0x1b99'))[_0x1bd689('0x1e6d')](_0x70a74d)['ok']('OK')[_0x1bd689('0x3b5')](_0x1bd689('0x284b'));_0x174e9f[_0x1bd689('0x853')](_0x56f582)['then'](function(){var _0x221ff5=_0x1bd689;_0x27415f[_0x221ff5('0x203b')][_0x221ff5('0x1b33')][_0x221ff5('0xafe')](_0x116fe4,0x1),_0x3c693a();},function(){var _0x1f81a3=_0x1bd689;console[_0x1f81a3('0x6fb')](_0x1f81a3('0x284b'));});}function _0x436e08(_0x31eb84,_0x2b70dc){var _0x52b327=_0x195c3c;if(_0x27415f[_0x52b327('0x203b')]['rows']['length']){var _0x3d7633=_0x27415f[_0x52b327('0x203b')]['rows'][_0x2b70dc]?_0x27415f[_0x52b327('0x203b')][_0x52b327('0x1b33')][_0x2b70dc]:_0x27415f[_0x52b327('0x203b')][_0x52b327('0x1b33')][0x0],_0x2a6750=(_0x3d7633[_0x52b327('0x522')]||_0x3d7633['app'])[_0x52b327('0xac2')]();_0x174e9f[_0x52b327('0x853')]({'controller':'EditChatWebsiteApp'[_0x52b327('0x1877')](_0x2a6750,_0x52b327('0x19d9')),'controllerAs':'vm','templateUrl':_0x127e87[_0x2a6750],'parent':angular[_0x52b327('0x1676')](_0x2c3e0a[_0x52b327('0x2452')]),'targetEvent':_0x31eb84,'clickOutsideToClose':!![],'locals':{'chatWebsiteApp':_0x3d7633,'chatWebsite':_0x27415f['chatWebsite'],'crudPermissions':_0x27415f[_0x52b327('0x5ed')]}})[_0x52b327('0x21ad')](function(_0x2a2920){var _0x2d279f=_0x52b327;_0x2a2920&&(_0x2a2920['id']?_0x27415f[_0x2d279f('0x203b')][_0x2d279f('0x1b33')][_0x2b70dc]=_0x2a2920:_0x27415f['chatWebsiteApps'][_0x2d279f('0x1b33')][_0x2d279f('0xafe')](_0x2b70dc,0x0,_0x2a2920),_0x3c693a());})[_0x52b327('0x1c1d')](function(_0x4fc173){var _0x3cdf17=_0x52b327;_0x4fc173&&_0x14f416['error']({'title':_0x4fc173['status']?_0x3cdf17('0x22d')+_0x4fc173[_0x3cdf17('0x209')]+_0x3cdf17('0xa99')+_0x4fc173[_0x3cdf17('0x1808')]:'SYSTEM:EDITMODALSHOW','msg':_0x4fc173[_0x3cdf17('0x11c2')]?JSON[_0x3cdf17('0x25e')](_0x4fc173['data']):_0x4fc173[_0x3cdf17('0x174f')]()});});}}function _0x40a0b9(_0x3bfc75,_0x1d965f){var _0xd9748e=_0x195c3c;if(_0x27415f[_0xd9748e('0x203b')][_0xd9748e('0x1b33')]['length']){var _0x3d7464=_0x27415f[_0xd9748e('0x203b')][_0xd9748e('0x1b33')][_0x1d965f]?_0x27415f[_0xd9748e('0x203b')]['rows'][_0x1d965f]:_0x27415f[_0xd9748e('0x203b')][_0xd9748e('0x1b33')][0x0];_0x174e9f[_0xd9748e('0x853')]({'controller':_0xd9748e('0x2834'),'controllerAs':'vm','templateUrl':_0x46e34d,'parent':angular[_0xd9748e('0x1676')](_0x2c3e0a[_0xd9748e('0x2452')]),'targetEvent':_0x3bfc75,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x3d7464[_0xd9748e('0xa07')],'IntervalId':_0x3d7464[_0xd9748e('0x1ac8')],'application':!![]},'intervals':[],'crudPermissions':_0x27415f[_0xd9748e('0x5ed')]}})[_0xd9748e('0x21ad')](function(_0x3ded82){var _0x58bffe=_0xd9748e;_0x3ded82&&(_0x3d7464[_0x58bffe('0xa07')]=_0x3ded82[_0x58bffe('0xa07')]||_0x58bffe('0x1cc4'),_0x3d7464['IntervalId']=_0x3ded82['IntervalId']||null,_0x3c693a());});}}function _0x3c693a(){var _0x5b582b=_0x195c3c,_0x3e17e4=0x1,_0x6b25cc=[];for(var _0x1968be=0x0;_0x1968be<_0x27415f['chatWebsiteApps']['rows'][_0x5b582b('0x577')];_0x1968be++){var _0x11d4b2=_0x27415f[_0x5b582b('0x203b')][_0x5b582b('0x1b33')][_0x1968be],_0x30ffc3=[],_0x5ba2bd=[];_0x11d4b2[_0x5b582b('0x2530')]=_0x11d4b2['interval']!==_0x5b582b('0x1cc4')?[_0x11d4b2[_0x5b582b('0xa07')]]:_0x11d4b2[_0x5b582b('0x1ac8')]?_0x86640f()[_0x5b582b('0x26c3')](_0x86640f()[_0x5b582b('0x1503')](_0x27415f[_0x5b582b('0x2530')]['rows'],{'IntervalId':_0x11d4b2['IntervalId']}),_0x5b582b('0xa07')):[],_0x11d4b2[_0x5b582b('0x244c')]=_0x27415f['chatWebsite'][_0x5b582b('0x244c')],_0x11d4b2[_0x5b582b('0x24b7')]=_0x27415f[_0x5b582b('0xe3c')]['exten'],_0x11d4b2['type']&&(_0x11d4b2[_0x5b582b('0x7fa')]=_0x11d4b2[_0x5b582b('0x7fa')]['toLowerCase']()),_0x11d4b2[_0x5b582b('0xbe5')]=_0x30ffc3[_0x5b582b('0x577')]?_0x86640f()[_0x5b582b('0x25d5')](_0x30ffc3)['priority']+0x1:_0x3e17e4,_0x3e17e4=(_0x5ba2bd[_0x5b582b('0x577')]?_0x86640f()[_0x5b582b('0x25d5')](_0x5ba2bd)[_0x5b582b('0xbe5')]:_0x11d4b2[_0x5b582b('0xbe5')])+0x1,_0x6b25cc=_0x86640f()[_0x5b582b('0x1877')](_0x6b25cc,_0x30ffc3,[_0x11d4b2],_0x5ba2bd);}_0x5d9be8['chatWebsite'][_0x5b582b('0x69f')]({'id':_0x27415f[_0x5b582b('0xe3c')]['id']},_0x86640f()[_0x5b582b('0x203e')](_0x6b25cc,'priority'))[_0x5b582b('0x1376')][_0x5b582b('0x21ad')](function(_0x374131){var _0x570db0=_0x5b582b;_0x27415f[_0x570db0('0x203b')][_0x570db0('0x1b33')]=_0x374131['rows'];})[_0x5b582b('0x1c1d')](function(_0x20f208){var _0x4a2994=_0x5b582b;console[_0x4a2994('0x2092')](_0x20f208);});}function _0x579035(_0x3b10b2){var _0xe807d9=_0x195c3c;_0x27415f[_0xe807d9('0x203b')]=_0x3b10b2||{'count':0x0,'rows':[]};}function _0x30a514(){var _0x202949=_0x195c3c;return _0x5d9be8[_0x202949('0xa07')][_0x202949('0x595')]({'fields':'id,interval,IntervalId'})[_0x202949('0x1376')][_0x202949('0x21ad')](function(_0xd513b1){var _0xacec98=_0x202949;_0x27415f[_0xacec98('0x2530')]=_0xd513b1;})[_0x202949('0x1c1d')](function(_0x4b6847){console['error'](_0x4b6847);});}function _0x44566c(){var _0xafbb12=_0x195c3c;_0x27415f['promise']=_0x5d9be8[_0xafbb12('0xe3c')][_0xafbb12('0x1290')](_0x27415f['query'],_0x579035)[_0xafbb12('0x1376')];}function _0x1a6524(_0x59e8a8){var _0x31f9e4=_0x195c3c;_0x86640f()[_0x31f9e4('0x16a2')](_0x27415f[_0x31f9e4('0x203b')]['rows'],{'id':_0x59e8a8['id']}),_0x3c693a(),_0x14f416['success']({'title':'App\x20deleted!','msg':_0x59e8a8[_0x31f9e4('0x1f94')]?_0x59e8a8[_0x31f9e4('0x1f94')]+_0x31f9e4('0xb4a'):''});}function _0x3b042e(_0x2260b7){var _0x12da1a=_0x195c3c,_0x4856c3=_0x174e9f[_0x12da1a('0xa33')]()[_0x12da1a('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?')['htmlContent'](''+_0x27415f[_0x12da1a('0x163f')][_0x12da1a('0x577')]+_0x12da1a('0xd74')+'\x20will\x20be\x20deleted.')[_0x12da1a('0x7a7')](_0x12da1a('0x89d'))[_0x12da1a('0x1e6d')](_0x2260b7)['ok']('OK')['cancel'](_0x12da1a('0x284b'));_0x174e9f['show'](_0x4856c3)['then'](function(){var _0x58d783=_0x12da1a;_0x27415f[_0x58d783('0x163f')][_0x58d783('0x1a52')](function(_0x509fb1){var _0x17dfb9=_0x58d783;_0x86640f()[_0x17dfb9('0x16a2')](_0x27415f['chatWebsiteApps'][_0x17dfb9('0x1b33')],{'id':_0x509fb1['id']});}),_0x27415f[_0x58d783('0x163f')]=[],_0x3c693a();});}}const _0x186b19=_0xd9e2e4;_0x2e5b74[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0xe3c'),'chatWebsites',_0x3877e3('0x116a'),_0x3877e3('0x13c1'),_0x3877e3('0x15bc'),'crudPermissions'];function _0x2e5b74(_0x437858,_0x50bbe1,_0x552c8e,_0xb489c4,_0x22c02e,_0x5c7d84,_0x445a0c,_0x378dcc,_0x196304,_0x18fb4a){var _0x295e98=_0x3877e3,_0x5ef481=this;_0x5ef481['currentUser']=_0x196304['getCurrentUser'](),_0x5ef481[_0x295e98('0xe3c')]=_0x22c02e,_0x5ef481[_0x295e98('0x5ed')]=_0x18fb4a,_0x5ef481[_0x295e98('0x116a')]=_0x445a0c,_0x5ef481[_0x295e98('0x1b9a')]=[],_0x5ef481['allowedItems']=[],_0x5ef481[_0x295e98('0x2629')]=[],_0x5ef481['startingAllowedItems']=[],_0x5ef481[_0x295e98('0x2584')]=[],_0x5ef481[_0x295e98('0x1bb9')]=![],_0x5ef481[_0x295e98('0x1081')]=_0x3a62d7,_0x5ef481['saveAgents']=_0x5c4f1d,_0x5ef481[_0x295e98('0x167')]=_0x3b1577,_0x5ef481[_0x295e98('0x909')]={'readOnly':!_0x5ef481[_0x295e98('0x5ed')][_0x295e98('0x6e2')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x295e98('0x19fe'),'line1':'fullname','line2':['name','internal'],'line3':'','labelAll':_0x378dcc[_0x295e98('0x183e')](_0x295e98('0x1d4c')),'labelSelected':_0x378dcc[_0x295e98('0x183e')]('CHAT.SELECTED_AGENTS'),'transferCallback':function _0x18c8f0(){var _0x6c7d02=_0x295e98,_0x2d07e9=_0x86640f()[_0x6c7d02('0x1473')](_0x5ef481[_0x6c7d02('0x2584')],_0x5ef481['selectedItems'],'id');_0x5ef481['pendingChanges']=_0x86640f()[_0x6c7d02('0x23aa')](_0x2d07e9)?![]:!![];}};function _0x3a62d7(){var _0x1f41d1=_0x295e98;return _0x196304['hasRole'](_0x1f41d1('0x1bd8'))?_0x2842cb()[_0x1f41d1('0x1c1d')](function(_0xda3179){var _0x52f938=_0x1f41d1;_0x552c8e[_0x52f938('0x2092')]({'title':_0xda3179[_0x52f938('0x209')]?_0x52f938('0x22d')+_0xda3179['status']+'\x20-\x20'+_0xda3179[_0x52f938('0x1808')]:_0x52f938('0x1381'),'msg':_0xda3179[_0x52f938('0x209')]?JSON['stringify'](_0xda3179[_0x52f938('0x11c2')]):_0xda3179[_0x52f938('0x174f')]()});}):_0x57b4fd()['then'](function(_0x46264c){var _0x39ad5c=_0x1f41d1;return _0x5ef481[_0x39ad5c('0x26ad')]=_0x46264c,_0x2842cb();})[_0x1f41d1('0x1c1d')](function(_0x4c4f06){var _0x5f3c82=_0x1f41d1;_0x552c8e[_0x5f3c82('0x2092')]({'title':_0x4c4f06['status']?_0x5f3c82('0x22d')+_0x4c4f06[_0x5f3c82('0x209')]+_0x5f3c82('0xa99')+_0x4c4f06[_0x5f3c82('0x1808')]:'SYSTEM:GET_AGENTS','msg':_0x4c4f06[_0x5f3c82('0x209')]?JSON[_0x5f3c82('0x25e')](_0x4c4f06['data']):_0x4c4f06[_0x5f3c82('0x174f')]()});});}function _0x57b4fd(){return _0x50bbe1(function(_0x35c3e1,_0x3681df){var _0x308e89=a0_0x2e7f;_0xb489c4[_0x308e89('0xab4')]['get']({'userProfileId':_0x5ef481['currentUser']['userProfileId'],'name':_0x308e89('0xfed')})[_0x308e89('0x1376')][_0x308e89('0x21ad')](function(_0x1499aa){var _0x1adc2a=_0x308e89,_0xb65e94=_0x1499aa&&_0x1499aa[_0x1adc2a('0x1b33')]?_0x1499aa['rows'][0x0]:null;_0x35c3e1(_0xb65e94);})[_0x308e89('0x1c1d')](function(_0x5621f1){_0x3681df(_0x5621f1);});});}function _0x2842cb(){return _0x50bbe1(function(_0x1487ef,_0x5e59fb){var _0x43fabd=a0_0x2e7f;return _0x5ecc53()[_0x43fabd('0x21ad')](function(_0x550d00){var _0x333936=_0x43fabd;return _0x5ef481[_0x333936('0x1b9a')]=_0x550d00['rows']?_0x550d00[_0x333936('0x1b33')]:[],_0x196304[_0x333936('0x21de')](_0x333936('0x1bd8'))?_0x550d00:_0x5ef481[_0x333936('0x26ad')]?_0x5ef481['section'][_0x333936('0x80c')]?_0x550d00:_0x1cbd0a():null;})[_0x43fabd('0x21ad')](function(_0x2a78f4){var _0xcc031b=_0x43fabd,_0x543fcd=_0x2a78f4&&_0x2a78f4['rows']?_0x2a78f4[_0xcc031b('0x1b33')]:[];return _0x5ef481[_0xcc031b('0x1e09')]=_0x86640f()['map'](_0x543fcd,function(_0x82fe15){var _0x97a019=_0xcc031b;return _0x86640f()[_0x97a019('0x1d2e')](_0x5ef481[_0x97a019('0x1b9a')],{'id':_0x196304[_0x97a019('0x21de')](_0x97a019('0x1bd8'))||_0x5ef481[_0x97a019('0x26ad')][_0x97a019('0x80c')]?_0x82fe15['id']:_0x82fe15[_0x97a019('0x675')]});}),_0x5ef481[_0xcc031b('0x91b')]=angular[_0xcc031b('0xd75')](_0x5ef481['allowedItems']),_0x5ef481[_0xcc031b('0x1b9a')]['forEach'](function(_0x18c4ce){var _0xd973f3=_0xcc031b,_0x4a62d2=_0x86640f()['find'](_0x5ef481['allowedItems'],{'id':_0x18c4ce['id']});_0x196304[_0xd973f3('0x21de')]('admin')?_0x18c4ce[_0xd973f3('0x118b')]=!![]:_0x18c4ce[_0xd973f3('0x118b')]=typeof _0x4a62d2!==_0xd973f3('0xddc')?!![]:![];}),_0x5164ec();})[_0x43fabd('0x21ad')](function(_0x3a3474){var _0xab1390=_0x43fabd,_0x56bda0=_0x3a3474&&_0x3a3474[_0xab1390('0x1b33')]?_0x3a3474[_0xab1390('0x1b33')]:[];_0x5ef481[_0xab1390('0x2629')]=_0x86640f()['map'](_0x56bda0,function(_0x2ba16e){var _0x40a2f8=_0xab1390,_0x2f1015=_0x86640f()[_0x40a2f8('0x1d2e')](_0x5ef481[_0x40a2f8('0x1b9a')],{'id':_0x2ba16e['id']});return _0x2f1015[_0x40a2f8('0x1195')]=_0x2ba16e[_0x40a2f8('0x1565')]?_0x40a2f8('0x5c2')+_0x2ba16e[_0x40a2f8('0x1565')][_0x40a2f8('0x1195')]:'',_0x2f1015[_0x40a2f8('0x201f')]=typeof _0x2ba16e['internal']!==_0x40a2f8('0xddc')?'<'+_0x2ba16e['internal']+'>':'',_0x2f1015;}),_0x5ef481[_0xab1390('0x2584')]=angular[_0xab1390('0xd75')](_0x5ef481[_0xab1390('0x2629')]),_0x5ef481[_0xab1390('0x909')][_0xab1390('0x2629')]=_0x5ef481['selectedItems'],_0x5ef481[_0xab1390('0x909')][_0xab1390('0x1b9a')]=_0x86640f()[_0xab1390('0x1eab')](_0x5ef481[_0xab1390('0x1e09')],_0x5ef481[_0xab1390('0x909')][_0xab1390('0x2629')],'id'),_0x1487ef();})[_0x43fabd('0x1c1d')](function(_0x193277){_0x5e59fb(_0x193277);});});}function _0x1cbd0a(){return _0x50bbe1(function(_0x3b3b99,_0x4895e5){var _0x5ac302=a0_0x2e7f;return _0xb489c4['userProfileResource'][_0x5ac302('0x595')]({'sectionId':_0x5ef481['section']['id'],'nolimit':!![]})['$promise'][_0x5ac302('0x21ad')](function(_0x25f56a){_0x3b3b99(_0x25f56a);})[_0x5ac302('0x1c1d')](function(_0x13e77d){_0x4895e5(_0x13e77d);});});}function _0x5164ec(){return _0x50bbe1(function(_0x1f7bf6,_0x578ac0){var _0xf6f614=a0_0x2e7f;return _0xb489c4[_0xf6f614('0xe3c')][_0xf6f614('0x13ad')]({'id':_0x5ef481[_0xf6f614('0xe3c')]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0xf6f614('0x2402')})[_0xf6f614('0x1376')][_0xf6f614('0x21ad')](function(_0x24709c){_0x1f7bf6(_0x24709c);})['catch'](function(_0x1594ba){_0x578ac0(_0x1594ba);});});}function _0x5ecc53(){return _0x50bbe1(function(_0x256b37,_0x4a279f){var _0x43e5c3=a0_0x2e7f;return _0xb489c4[_0x43e5c3('0x1775')][_0x43e5c3('0x595')]({'fields':_0x43e5c3('0x1eea'),'nolimit':!![],'role':_0x43e5c3('0x2402')})[_0x43e5c3('0x1376')]['then'](function(_0x3324a1){_0x256b37(_0x3324a1);})['catch'](function(_0x1f0382){_0x4a279f(_0x1f0382);});});}function _0xbfe8ed(_0x42cb89){return _0x50bbe1(function(_0x27b8c0,_0x50ecac){var _0x5dadf2=a0_0x2e7f;_0x86640f()[_0x5dadf2('0x23aa')](_0x42cb89)?_0x27b8c0():_0xb489c4[_0x5dadf2('0xe3c')][_0x5dadf2('0x1116')]({'id':_0x5ef481[_0x5dadf2('0xe3c')]['id'],'ids':_0x86640f()[_0x5dadf2('0x26c3')](_0x42cb89,'id')})['$promise'][_0x5dadf2('0x21ad')](function(){_0x27b8c0();})['catch'](function(_0x5cce97){_0x50ecac(_0x5cce97);});});}function _0x5cab60(_0x50f999){return _0x50bbe1(function(_0x32ef64,_0x3c8216){var _0x2ca080=a0_0x2e7f;_0x86640f()[_0x2ca080('0x23aa')](_0x50f999)?_0x32ef64():_0xb489c4[_0x2ca080('0xe3c')][_0x2ca080('0x59e')]({'id':_0x5ef481[_0x2ca080('0xe3c')]['id'],'ids':_0x86640f()[_0x2ca080('0x26c3')](_0x50f999,'id')})['$promise'][_0x2ca080('0x21ad')](function(){_0x32ef64();})[_0x2ca080('0x1c1d')](function(_0x1cb495){_0x3c8216(_0x1cb495);});});}function _0x5c4f1d(){var _0x2e5d18=_0x295e98,_0x3f297c=_0x86640f()[_0x2e5d18('0x1eab')](_0x5ef481[_0x2e5d18('0x2584')],_0x5ef481[_0x2e5d18('0x2629')],'id'),_0x1788a4=_0x86640f()[_0x2e5d18('0x1eab')](_0x5ef481['selectedItems'],_0x5ef481[_0x2e5d18('0x2584')],'id');return _0x5cab60(_0x3f297c)[_0x2e5d18('0x21ad')](function(){return _0xbfe8ed(_0x1788a4);})[_0x2e5d18('0x21ad')](function(){var _0x5f4aa3=_0x2e5d18;_0x5ef481['pendingChanges']=![],_0x5ef481['startingAllowedItems']=angular[_0x5f4aa3('0xd75')](_0x5ef481[_0x5f4aa3('0x1e09')]),_0x5ef481[_0x5f4aa3('0x2584')]=angular[_0x5f4aa3('0xd75')](_0x5ef481['selectedItems']),_0x552c8e[_0x5f4aa3('0xdb1')]({'title':'SUCCESS','msg':_0x5f4aa3('0x2239')});})[_0x2e5d18('0x1c1d')](function(_0x3a8cda){var _0x2c71d2=_0x2e5d18;_0x552c8e[_0x2c71d2('0x2092')]({'title':_0x3a8cda[_0x2c71d2('0x209')]?_0x2c71d2('0x22d')+_0x3a8cda[_0x2c71d2('0x209')]+'\x20-\x20'+_0x3a8cda[_0x2c71d2('0x1808')]:_0x2c71d2('0x1dd7'),'msg':_0x3a8cda[_0x2c71d2('0x209')]?JSON[_0x2c71d2('0x25e')](_0x3a8cda[_0x2c71d2('0x11c2')]):_0x3a8cda[_0x2c71d2('0x174f')]()});});}function _0x3b1577(){var _0x1c0752=_0x295e98;_0x437858[_0x1c0752('0x1c24')]();}}const _0x197fc0=_0x2e5b74;_0xa0910f[_0x3877e3('0x1a81')]=['$cookies',_0x3877e3('0x1908')];function _0xa0910f(_0x3d0bac,_0x8dc615){var _0x2f9251=_0x3877e3,_0xacf23b=this,_0x516018=0x8,_0x324907=_0x516018*0x400*0x400;_0xacf23b[_0x2f9251('0xe3c')]={},_0xacf23b[_0x2f9251('0x5ed')],_0xacf23b[_0x2f9251('0x467')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x324907,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0xacf23b[_0x2f9251('0x1413')]={'flow':{}},_0xacf23b[_0x2f9251('0x8c3')]=![],_0xacf23b[_0x2f9251('0x20d9')]=_0x2629f2,_0xacf23b[_0x2f9251('0x12d0')]=_0x50c150,_0xacf23b[_0x2f9251('0x27eb')]=_0x10e778,_0xacf23b['init']=_0x427727;function _0x427727(_0x34a825,_0x495476){var _0x3e8111=_0x2f9251;_0xacf23b['chatWebsite']=angular[_0x3e8111('0xd75')](_0x34a825),_0xacf23b[_0x3e8111('0x5ed')]=typeof _0x495476!==_0x3e8111('0xddc')?_0x495476:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xacf23b['ngFlowOptions']['target']=_0x3e8111('0x612')['replace'](_0x3e8111('0x1938'),_0xacf23b['chatWebsite']['id']),_0xacf23b[_0x3e8111('0xe3c')][_0x3e8111('0x851')]=[];}function _0x2629f2(_0x338699){var _0x3fa2c7=_0x2f9251,_0x24d12d=[_0x3fa2c7('0x14f5'),'jpg'];if(!_0x86640f()['includes'](_0x24d12d,_0x338699[_0x3fa2c7('0x9bb')]()))return _0x8dc615[_0x3fa2c7('0x2092')]({'title':_0x3fa2c7('0x397')+_0x338699['getExtension'](),'msg':_0x3fa2c7('0x156b')+_0x24d12d[_0x3fa2c7('0x136')]()}),![];if(_0x338699[_0x3fa2c7('0x337')]>_0x324907)return _0x8dc615[_0x3fa2c7('0x2092')]({'title':_0x3fa2c7('0x8d1'),'msg':_0x3fa2c7('0xc3a')+_0x516018+'MB'}),![];var _0x1d794c={'id':_0x338699['uniqueIdentifier'],'file':_0x338699,'type':'uploading'};return _0xacf23b['chatWebsite']['images'][_0x3fa2c7('0xd0c')](_0x1d794c),!![];}function _0x50c150(){var _0x4aeb46=_0x2f9251;_0xacf23b[_0x4aeb46('0x1413')][_0x4aeb46('0x1d76')][_0x4aeb46('0x1dd3')]['headers']={'X-Requested-With':_0x4aeb46('0x24ca'),'Authorization':_0x4aeb46('0x5c8')+_0x3d0bac['get'](_0x4aeb46('0x863'))},_0xacf23b['ngFlow'][_0x4aeb46('0x1d76')]['upload']();}function _0x10e778(_0x499aa0){var _0xce3b47=_0x2f9251;angular[_0xce3b47('0x1a52')](_0xacf23b['chatWebsite'][_0xce3b47('0x851')],function(_0x2b3ab6){var _0x48e0c9=_0xce3b47;if(_0x2b3ab6['id']===_0x499aa0[_0x48e0c9('0x25f6')]){var _0x1f5359=new FileReader();_0x1f5359[_0x48e0c9('0x1e50')](_0x2b3ab6[_0x48e0c9('0x18a9')][_0x48e0c9('0x18a9')]),_0x1f5359[_0x48e0c9('0x1efd')]=function(_0x56f5ec){var _0x20af14=_0x48e0c9;_0x2b3ab6[_0x20af14('0x770')]=_0x56f5ec['target'][_0x20af14('0x8c7')];},_0x2b3ab6['type']=_0x48e0c9('0x1318');}});}}const _0x127e1d=_0xa0910f;_0x287e7b[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x5f2'),_0x3877e3('0xe3c'),_0x3877e3('0xccd'),'Auth',_0x3877e3('0x5ed')];function _0x287e7b(_0x1bc4e2,_0x1cbb62,_0x45e826,_0x19693a,_0x355bb0,_0x2b64d1,_0x1e0ddb,_0x45ded2){var _0x3b9705=_0x3877e3,_0x427a9b=this;_0x427a9b['currentUser']=_0x1e0ddb[_0x3b9705('0x15ed')](),_0x427a9b['errors']=[],_0x427a9b['title']=_0x3b9705('0xdd2')+(_0x19693a['appType']||_0x19693a['app'])[_0x3b9705('0x2e8')](),_0x427a9b[_0x3b9705('0x2402')]=angular['copy'](_0x19693a),_0x427a9b[_0x3b9705('0x5ed')]=_0x45ded2,_0x427a9b[_0x3b9705('0x126a')]={};if(_0x427a9b[_0x3b9705('0x2402')][_0x3b9705('0x23c2')])switch(_0x427a9b['agent'][_0x3b9705('0x522')]?_0x427a9b['agent']['appType'][_0x3b9705('0xac2')]():_0x427a9b[_0x3b9705('0x2402')][_0x3b9705('0x1f94')][_0x3b9705('0xac2')]()){case _0x3b9705('0xf50'):break;case _0x3b9705('0xc72'):{var _0x5e284e=_0x427a9b[_0x3b9705('0x2402')][_0x3b9705('0x23c2')][_0x3b9705('0x1af5')](',');_0x427a9b[_0x3b9705('0x2402')][_0x3b9705('0xddb')]=_0x5e284e[0x0],_0x427a9b[_0x3b9705('0x2402')][_0x3b9705('0x10f')]=_0x5e284e[0x1],_0x427a9b['agent']['welcomemessage']=_0x5e284e[_0x3b9705('0xb3d')](0x2,_0x5e284e[_0x3b9705('0x577')])['join'](',');}break;case _0x3b9705('0x1c22'):{var _0x393498=_0x427a9b[_0x3b9705('0x2402')][_0x3b9705('0x23c2')]['split'](',');_0x427a9b['agent']['accesskeyid']=_0x393498[0x0],_0x427a9b[_0x3b9705('0x2402')][_0x3b9705('0x797')]=_0x393498[0x1],_0x427a9b[_0x3b9705('0x2402')][_0x3b9705('0x20a3')]=_0x393498[0x2],_0x427a9b[_0x3b9705('0x2402')]['botname']=_0x393498[0x3],_0x427a9b[_0x3b9705('0x2402')]['welcomemessage']=_0x393498[_0x3b9705('0xb3d')](0x4,_0x393498[_0x3b9705('0x577')])[_0x3b9705('0x136')](',');}break;case'autoreply':{var _0x4b3fdf=_0x427a9b[_0x3b9705('0x2402')][_0x3b9705('0x23c2')][_0x3b9705('0x1af5')](',');_0x427a9b['agent'][_0x3b9705('0x13b6')]=isNaN(_0x4b3fdf[0x0])?_0x4b3fdf[0x0]:parseInt(_0x4b3fdf[0x0],0xa),_0x427a9b[_0x3b9705('0x2402')][_0x3b9705('0xc1e')]=_0x4b3fdf[_0x3b9705('0xb3d')](0x1,_0x4b3fdf[_0x3b9705('0x577')])[_0x3b9705('0x136')](',');}break;case'message':_0x427a9b[_0x3b9705('0x2402')][_0x3b9705('0xc1e')]=_0x427a9b[_0x3b9705('0x2402')][_0x3b9705('0x23c2')];break;case _0x3b9705('0x1125'):_0x427a9b[_0x3b9705('0x2402')][_0x3b9705('0x19fe')]=_0x427a9b[_0x3b9705('0x2402')]['appdata'][_0x3b9705('0x1af5')]('=')[0x0],_0x427a9b[_0x3b9705('0x2402')]['value']=_0x427a9b[_0x3b9705('0x2402')][_0x3b9705('0x23c2')][_0x3b9705('0x1af5')]('=')[0x1];break;case _0x3b9705('0x2356'):_0x427a9b[_0x3b9705('0x2402')]['project']=_0x427a9b[_0x3b9705('0x2402')][_0x3b9705('0x23c2')];break;default:{var _0x4025b2=_0x427a9b[_0x3b9705('0x2402')][_0x3b9705('0x23c2')][_0x3b9705('0x1af5')](',');_0x427a9b[_0x3b9705('0x2402')][_0x3b9705('0x2402')]=_0x86640f()[_0x3b9705('0x23aa')](_0x4025b2[0x0])?_0x4025b2[0x0]:isNaN(_0x4025b2[0x0])?_0x4025b2[0x0]:parseInt(_0x4025b2[0x0],0xa),_0x427a9b['agent'][_0x3b9705('0x2133')]=_0x86640f()[_0x3b9705('0x23aa')](_0x4025b2[0x1])?_0x4025b2[0x1]:isNaN(_0x4025b2[0x1])?_0x4025b2[0x1]:parseInt(_0x4025b2[0x1],0xa);}break;}else _0x427a9b['agent'][_0x3b9705('0x2133')]=0x1e;_0x427a9b[_0x3b9705('0x2402')][_0x3b9705('0x7fa')]&&_0x427a9b['agent'][_0x3b9705('0x7fa')][_0x3b9705('0xac2')]()===_0x3b9705('0x2300')&&_0x427a9b[_0x3b9705('0x2402')]['appType']['toLowerCase']()===_0x3b9705('0x2363')&&(_0x427a9b[_0x3b9705('0x2402')][_0x3b9705('0x1995')]=_0x427a9b[_0x3b9705('0x2402')][_0x3b9705('0x159e')]?_0x427a9b[_0x3b9705('0x2402')]['phone'][_0x3b9705('0x1af5')]('$')[0x0]:undefined,_0x427a9b[_0x3b9705('0x2402')][_0x3b9705('0x26f7')]=_0x427a9b[_0x3b9705('0x2402')]['callerID']?_0x3b9705('0x587')+_0x427a9b[_0x3b9705('0x2402')][_0x3b9705('0x1f5a')]:undefined);_0x427a9b['saveChatWebsiteApp']=_0xfc0731,_0x427a9b[_0x3b9705('0x167')]=_0x4f082a,_0x1e0ddb['hasRole'](_0x3b9705('0x1bd8'))?_0x2b64d1[_0x3b9705('0x1775')][_0x3b9705('0x595')]({'fields':_0x3b9705('0x1aa8'),'role':_0x3b9705('0x2402'),'sort':'name','nolimit':_0x3b9705('0x19bd')})['$promise'][_0x3b9705('0x21ad')](function(_0x2fc810){var _0x236e12=_0x3b9705;_0x427a9b['agents']=_0x2fc810[_0x236e12('0x1b33')]||[];})[_0x3b9705('0x1c1d')](function(_0x2d375e){var _0x3e6923=_0x3b9705;_0x45e826[_0x3e6923('0x2092')]({'title':_0x2d375e[_0x3e6923('0x209')]?_0x3e6923('0x22d')+_0x2d375e[_0x3e6923('0x209')]+_0x3e6923('0xa99')+_0x2d375e['statusText']:_0x3e6923('0x1381'),'msg':_0x2d375e[_0x3e6923('0x11c2')]?JSON[_0x3e6923('0x25e')](_0x2d375e[_0x3e6923('0x11c2')]):_0x2d375e['toString']()});}):_0x2b64d1[_0x3b9705('0x1775')][_0x3b9705('0x595')]({'fields':_0x3b9705('0x1aa8'),'role':_0x3b9705('0x2402'),'sort':_0x3b9705('0x19fe'),'nolimit':'true'})[_0x3b9705('0x1376')][_0x3b9705('0x21ad')](function(_0x439b17){var _0x4f6dd4=_0x3b9705;_0x427a9b['agents']=_0x439b17[_0x4f6dd4('0x1b33')]||[];})[_0x3b9705('0x21ad')](function(){var _0x430d97=_0x3b9705;return _0x2b64d1[_0x430d97('0xab4')][_0x430d97('0x595')]({'userProfileId':_0x427a9b[_0x430d97('0x123f')][_0x430d97('0x1618')],'sectionId':0xca})[_0x430d97('0x1376')];})['then'](function(_0x15eb04){var _0x22350e=_0x3b9705,_0x3e32f9=_0x15eb04&&_0x15eb04[_0x22350e('0x1b33')]?_0x15eb04['rows'][0x0]:null;if(!_0x3e32f9){var _0x26c76f=[],_0x53de72=null;_0x427a9b[_0x22350e('0x2402')]&&(_0x53de72=_0x86640f()[_0x22350e('0x1d2e')](_0x427a9b[_0x22350e('0xcb5')],{'name':_0x427a9b['agent'][_0x22350e('0x2402')]}));for(var _0x15733b=0x0;_0x15733b<_0x427a9b[_0x22350e('0xcb5')]['length'];_0x15733b++){_0x53de72&&_0x427a9b['agents'][_0x15733b]['id']===_0x53de72['id']&&(_0x427a9b[_0x22350e('0xcb5')][_0x15733b]['canSelect']=![],_0x26c76f[_0x22350e('0x206c')](_0x427a9b[_0x22350e('0xcb5')][_0x15733b]));}_0x427a9b[_0x22350e('0xcb5')]=_0x26c76f;}else{if(!_0x3e32f9['autoAssociation'])return _0x2b64d1['userProfileResource'][_0x22350e('0x595')]({'sectionId':_0x3e32f9['id']})[_0x22350e('0x1376')][_0x22350e('0x21ad')](function(_0x820dff){var _0x36eed2=_0x22350e,_0xd99509=_0x86640f()[_0x36eed2('0x26c3')](_0x820dff['rows'],function(_0x297a60){var _0x1558b8=_0x36eed2;return _0x86640f()[_0x1558b8('0x1d2e')](_0x427a9b[_0x1558b8('0xcb5')],{'id':_0x297a60[_0x1558b8('0x675')]});}),_0x2ba80b=null;_0x427a9b[_0x36eed2('0x2402')]&&(_0x2ba80b=_0x86640f()[_0x36eed2('0x1d2e')](_0x427a9b[_0x36eed2('0xcb5')],{'name':_0x427a9b['agent']['agent']}));if(_0x2ba80b&&!_0x86640f()[_0x36eed2('0x2664')](_0xd99509,['id',_0x2ba80b['id']])){var _0x2eefc1=_0x86640f()[_0x36eed2('0x1d2e')](_0x427a9b[_0x36eed2('0xcb5')],{'id':_0x2ba80b['id']});_0x2eefc1[_0x36eed2('0xba')]=![],_0xd99509[_0x36eed2('0x206c')](_0x2eefc1);}_0x427a9b[_0x36eed2('0xcb5')]=_0xd99509;});}})[_0x3b9705('0x1c1d')](function(_0x2260f4){var _0x931109=_0x3b9705;_0x45e826[_0x931109('0x2092')]({'title':_0x2260f4[_0x931109('0x209')]?_0x931109('0x22d')+_0x2260f4['status']+'\x20-\x20'+_0x2260f4[_0x931109('0x1808')]:_0x931109('0x2f9'),'msg':_0x2260f4[_0x931109('0x11c2')]?JSON[_0x931109('0x25e')](_0x2260f4[_0x931109('0x11c2')]):_0x2260f4[_0x931109('0x174f')]()});});function _0xfc0731(){var _0x1abb37=_0x3b9705;_0x427a9b[_0x1abb37('0x1a69')]=[];var _0x1472f1=[];_0x427a9b['agent'][_0x1abb37('0x7fa')]&&_0x427a9b['agent'][_0x1abb37('0x7fa')][_0x1abb37('0xac2')]()===_0x1abb37('0x2300')&&_0x427a9b[_0x1abb37('0x2402')][_0x1abb37('0x522')]==='outboundDial'&&(_0x427a9b[_0x1abb37('0x2402')][_0x1abb37('0x159e')]=_0x355bb0[_0x1abb37('0x988')]?(_0x427a9b['agent'][_0x1abb37('0x1995')]||'')+'${EXTEN:'+_0x355bb0[_0x1abb37('0x988')]+'}':(_0x427a9b[_0x1abb37('0x2402')][_0x1abb37('0x1995')]||'')+_0x1abb37('0x2560'),_0x355bb0[_0x1abb37('0xad1')]!==_0x1abb37('0x983')?_0x427a9b[_0x1abb37('0x2402')][_0x1abb37('0x26a0')][_0x1abb37('0x2004')](_0x1abb37('0x478'))<0x0&&(_0x427a9b[_0x1abb37('0x2402')][_0x1abb37('0x26a0')]+='U(xcally-mixmonitor-context)'):_0x427a9b[_0x1abb37('0x2402')]['options']=_0x427a9b[_0x1abb37('0x2402')]['options'][_0x1abb37('0x16e4')](_0x1abb37('0x478'),''));var _0x25a3e3=_0x86640f()[_0x1abb37('0x1d2e')](_0x427a9b[_0x1abb37('0xcb5')],{'name':_0x427a9b[_0x1abb37('0x2402')][_0x1abb37('0x2402')]});_0x25a3e3&&(_0x427a9b['agent'][_0x1abb37('0x1dc6')]=_0x25a3e3['id']);if(_0x427a9b[_0x1abb37('0x2402')][_0x1abb37('0x522')]&&_0x427a9b[_0x1abb37('0x2402')][_0x1abb37('0x522')]===_0x1abb37('0xf50')){}else switch((_0x427a9b[_0x1abb37('0x2402')]['app']||_0x427a9b['agent'][_0x1abb37('0x522')])[_0x1abb37('0xac2')]()){case _0x1abb37('0x1125'):_0x427a9b[_0x1abb37('0x2402')][_0x1abb37('0x23c2')]=_0x427a9b[_0x1abb37('0x2402')][_0x1abb37('0x19fe')]+'='+_0x427a9b[_0x1abb37('0x2402')][_0x1abb37('0x2228')];break;case _0x1abb37('0xf50'):break;default:_0x1472f1[0x0]=_0x427a9b[_0x1abb37('0x2402')][_0x1abb37('0x2402')],_0x1472f1[0x1]=_0x427a9b[_0x1abb37('0x2402')][_0x1abb37('0x2133')],_0x427a9b[_0x1abb37('0x2402')][_0x1abb37('0x23c2')]=_0x1472f1[_0x1abb37('0x136')](',');}_0x4f082a(_0x427a9b['agent']);}function _0x4f082a(_0xcfdca5){var _0x2ba11d=_0x3b9705;_0x1bc4e2[_0x2ba11d('0x1c24')](_0xcfdca5);}}const _0x350bd3=_0x287e7b;_0x1b377e[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q','toasty',_0x3877e3('0x5f2'),_0x3877e3('0xe3c'),'api',_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x1b377e(_0x2d63e7,_0x28b5f1,_0x525381,_0x2f4163,_0x24cc84,_0x14cd39,_0x329a30,_0x4a633c){var _0x4c2c3f=_0x3877e3,_0x225738=this;_0x225738[_0x4c2c3f('0x123f')]=_0x329a30[_0x4c2c3f('0x15ed')](),_0x225738[_0x4c2c3f('0x1a69')]=[],_0x225738[_0x4c2c3f('0x4b4')]=_0x4c2c3f('0xdd2')+(_0x2f4163['appType']||_0x2f4163['app'])[_0x4c2c3f('0x2e8')](),_0x225738['amazonlex']=angular['copy'](_0x2f4163),_0x225738[_0x4c2c3f('0x5ed')]=_0x4a633c,_0x225738[_0x4c2c3f('0x126a')]={};if(_0x225738[_0x4c2c3f('0x1c22')][_0x4c2c3f('0x23c2')])switch(_0x225738[_0x4c2c3f('0x1c22')][_0x4c2c3f('0x522')]?_0x225738[_0x4c2c3f('0x1c22')][_0x4c2c3f('0x522')]['toLowerCase']():_0x225738[_0x4c2c3f('0x1c22')][_0x4c2c3f('0x1f94')]['toLowerCase']()){case _0x4c2c3f('0xf50'):break;case _0x4c2c3f('0xc72'):{var _0x593cb1=_0x225738[_0x4c2c3f('0x1c22')][_0x4c2c3f('0x23c2')]['split'](',');_0x225738[_0x4c2c3f('0x1c22')]['key']=_0x593cb1[0x0],_0x225738[_0x4c2c3f('0x1c22')][_0x4c2c3f('0x10f')]=_0x593cb1[0x1],_0x225738[_0x4c2c3f('0x1c22')][_0x4c2c3f('0x1cce')]=_0x593cb1[_0x4c2c3f('0xb3d')](0x2,_0x593cb1[_0x4c2c3f('0x577')])[_0x4c2c3f('0x136')](',');}break;case _0x4c2c3f('0x1c22'):{var _0x56a73d=_0x225738[_0x4c2c3f('0x1c22')][_0x4c2c3f('0x23c2')][_0x4c2c3f('0x1af5')](',');_0x225738[_0x4c2c3f('0x1c22')][_0x4c2c3f('0x21c6')]=_0x56a73d[0x0],_0x225738['amazonlex'][_0x4c2c3f('0x797')]=_0x56a73d[0x1],_0x225738['amazonlex']['lexregion']=_0x56a73d[0x2],_0x225738[_0x4c2c3f('0x1c22')][_0x4c2c3f('0x15fe')]=_0x56a73d[0x3],_0x225738['amazonlex'][_0x4c2c3f('0x1cce')]=_0x56a73d['slice'](0x4,_0x56a73d[_0x4c2c3f('0x577')])[_0x4c2c3f('0x136')](',');}break;case _0x4c2c3f('0x1b98'):{var _0x4daa72=_0x225738[_0x4c2c3f('0x1c22')][_0x4c2c3f('0x23c2')][_0x4c2c3f('0x1af5')](',');_0x225738['amazonlex'][_0x4c2c3f('0x13b6')]=isNaN(_0x4daa72[0x0])?_0x4daa72[0x0]:parseInt(_0x4daa72[0x0],0xa),_0x225738[_0x4c2c3f('0x1c22')][_0x4c2c3f('0xc1e')]=_0x4daa72[_0x4c2c3f('0xb3d')](0x1,_0x4daa72[_0x4c2c3f('0x577')])[_0x4c2c3f('0x136')](',');}break;case _0x4c2c3f('0x1224'):_0x225738[_0x4c2c3f('0x1c22')][_0x4c2c3f('0xc1e')]=_0x225738[_0x4c2c3f('0x1c22')][_0x4c2c3f('0x23c2')];break;case _0x4c2c3f('0x1125'):_0x225738['amazonlex'][_0x4c2c3f('0x19fe')]=_0x225738['amazonlex'][_0x4c2c3f('0x23c2')][_0x4c2c3f('0x1af5')]('=')[0x0],_0x225738[_0x4c2c3f('0x1c22')][_0x4c2c3f('0x2228')]=_0x225738[_0x4c2c3f('0x1c22')][_0x4c2c3f('0x23c2')][_0x4c2c3f('0x1af5')]('=')[0x1];break;case _0x4c2c3f('0x2356'):_0x225738[_0x4c2c3f('0x1c22')][_0x4c2c3f('0xbf8')]=_0x225738[_0x4c2c3f('0x1c22')][_0x4c2c3f('0x23c2')];break;default:{var _0x25e1c3=_0x225738['amazonlex'][_0x4c2c3f('0x23c2')][_0x4c2c3f('0x1af5')](',');_0x225738[_0x4c2c3f('0x1c22')][_0x4c2c3f('0x21c6')]=_0x86640f()[_0x4c2c3f('0x23aa')](_0x25e1c3[0x0])?_0x25e1c3[0x0]:isNaN(_0x25e1c3[0x0])?_0x25e1c3[0x0]:parseInt(_0x25e1c3[0x0],0xa),_0x225738[_0x4c2c3f('0x1c22')][_0x4c2c3f('0x797')]=_0x86640f()[_0x4c2c3f('0x23aa')](_0x25e1c3[0x1])?_0x25e1c3[0x1]:isNaN(_0x25e1c3[0x1])?_0x25e1c3[0x1]:parseInt(_0x25e1c3[0x1],0xa),_0x225738['amazonlex'][_0x4c2c3f('0x20a3')]=_0x86640f()[_0x4c2c3f('0x23aa')](_0x25e1c3[0x2])?_0x25e1c3[0x2]:isNaN(_0x25e1c3[0x2])?_0x25e1c3[0x2]:parseInt(_0x25e1c3[0x2],0xa),_0x225738[_0x4c2c3f('0x1c22')]['botname']=_0x86640f()[_0x4c2c3f('0x23aa')](_0x25e1c3[0x3])?_0x25e1c3[0x3]:isNaN(_0x25e1c3[0x3])?_0x25e1c3[0x3]:parseInt(_0x25e1c3[0x3],0xa),_0x225738['amazonlex'][_0x4c2c3f('0x1cce')]=_0x86640f()[_0x4c2c3f('0x23aa')](_0x25e1c3[0x4])?_0x25e1c3[0x4]:isNaN(_0x25e1c3[0x4])?_0x25e1c3[0x4]:parseInt(_0x25e1c3[0x4],0xa);}break;}else _0x225738[_0x4c2c3f('0x1c22')][_0x4c2c3f('0x20a3')]=_0x4c2c3f('0xc0b');_0x225738['amazonlex'][_0x4c2c3f('0x7fa')]&&_0x225738[_0x4c2c3f('0x1c22')][_0x4c2c3f('0x7fa')][_0x4c2c3f('0xac2')]()==='outbound'&&_0x225738['amazonlex'][_0x4c2c3f('0x522')][_0x4c2c3f('0xac2')]()==='outbounddial'&&(_0x225738[_0x4c2c3f('0x1c22')][_0x4c2c3f('0x1995')]=_0x225738[_0x4c2c3f('0x1c22')][_0x4c2c3f('0x159e')]?_0x225738[_0x4c2c3f('0x1c22')][_0x4c2c3f('0x159e')][_0x4c2c3f('0x1af5')]('$')[0x0]:undefined,_0x225738['amazonlex'][_0x4c2c3f('0x26f7')]=_0x225738['amazonlex'][_0x4c2c3f('0x1f5a')]?'CALLERID(all)='+_0x225738[_0x4c2c3f('0x1c22')]['callerID']:undefined);_0x225738[_0x4c2c3f('0x53d')]=_0x1c5a74,_0x225738[_0x4c2c3f('0x167')]=_0x4590e0;function _0x1c5a74(){var _0xadf3ed=_0x4c2c3f;_0x225738['errors']=[];var _0x252d27=[];_0x225738['amazonlex'][_0xadf3ed('0x7fa')]&&_0x225738['amazonlex'][_0xadf3ed('0x7fa')]['toLowerCase']()===_0xadf3ed('0x2300')&&_0x225738[_0xadf3ed('0x1c22')][_0xadf3ed('0x522')]===_0xadf3ed('0x4ea')&&(_0x225738[_0xadf3ed('0x1c22')]['phone']=_0x24cc84[_0xadf3ed('0x988')]?(_0x225738[_0xadf3ed('0x1c22')][_0xadf3ed('0x1995')]||'')+_0xadf3ed('0x349')+_0x24cc84[_0xadf3ed('0x988')]+'}':(_0x225738['amazonlex'][_0xadf3ed('0x1995')]||'')+_0xadf3ed('0x2560'),_0x24cc84[_0xadf3ed('0xad1')]!==_0xadf3ed('0x983')?_0x225738[_0xadf3ed('0x1c22')]['options'][_0xadf3ed('0x2004')]('U(xcally-mixmonitor-context)')<0x0&&(_0x225738['amazonlex'][_0xadf3ed('0x26a0')]+=_0xadf3ed('0x478')):_0x225738[_0xadf3ed('0x1c22')][_0xadf3ed('0x26a0')]=_0x225738['amazonlex'][_0xadf3ed('0x26a0')][_0xadf3ed('0x16e4')](_0xadf3ed('0x478'),''));if(_0x225738[_0xadf3ed('0x1c22')][_0xadf3ed('0x522')]&&_0x225738['amazonlex'][_0xadf3ed('0x522')]==='custom'){}else switch((_0x225738[_0xadf3ed('0x1c22')]['app']||_0x225738[_0xadf3ed('0x1c22')]['appType'])['toLowerCase']()){case _0xadf3ed('0x1125'):_0x225738[_0xadf3ed('0x1c22')][_0xadf3ed('0x23c2')]=_0x225738[_0xadf3ed('0x1c22')][_0xadf3ed('0x19fe')]+'='+_0x225738[_0xadf3ed('0x1c22')][_0xadf3ed('0x2228')];break;case _0xadf3ed('0xf50'):break;default:_0x252d27[0x0]=_0x225738[_0xadf3ed('0x1c22')][_0xadf3ed('0x21c6')],_0x252d27[0x1]=_0x225738[_0xadf3ed('0x1c22')][_0xadf3ed('0x797')],_0x252d27[0x2]=_0x225738[_0xadf3ed('0x1c22')]['lexregion'],_0x252d27[0x3]=_0x225738['amazonlex'][_0xadf3ed('0x15fe')],_0x252d27[0x4]=_0x225738['amazonlex'][_0xadf3ed('0x1cce')],_0x225738[_0xadf3ed('0x1c22')]['appdata']=_0x252d27[_0xadf3ed('0x136')](',');}_0x4590e0(_0x225738[_0xadf3ed('0x1c22')]);}function _0x4590e0(_0x1ed18e){_0x2d63e7['hide'](_0x1ed18e);}}const _0x1815b0=_0x1b377e;_0x47c463[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x5f2'),_0x3877e3('0xe3c'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x47c463(_0x5b6afc,_0x50c72c,_0x189113,_0x3eb6bc,_0x26fa5c,_0x55c61c,_0x5b2478,_0x1db434){var _0x33e23e=_0x3877e3,_0x4a3e41=this;_0x4a3e41[_0x33e23e('0x123f')]=_0x5b2478['getCurrentUser'](),_0x4a3e41[_0x33e23e('0x1a69')]=[],_0x4a3e41['title']=_0x33e23e('0xdd2')+(_0x3eb6bc[_0x33e23e('0x522')]||_0x3eb6bc[_0x33e23e('0x1f94')])[_0x33e23e('0x2e8')](),_0x4a3e41[_0x33e23e('0x1b98')]=angular['copy'](_0x3eb6bc),_0x4a3e41[_0x33e23e('0x5ed')]=_0x1db434,_0x4a3e41['hasModulePermissions']={};if(_0x4a3e41[_0x33e23e('0x1b98')]['appdata'])switch(_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0x522')]?_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0x522')][_0x33e23e('0xac2')]():_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0x1f94')]['toLowerCase']()){case _0x33e23e('0xf50'):break;case _0x33e23e('0xc72'):{var _0x47d27a=_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0x23c2')]['split'](',');_0x4a3e41['autoreply'][_0x33e23e('0xddb')]=_0x47d27a[0x0],_0x4a3e41['autoreply']['language']=_0x47d27a[0x1],_0x4a3e41['autoreply'][_0x33e23e('0x1cce')]=_0x47d27a[_0x33e23e('0xb3d')](0x2,_0x47d27a[_0x33e23e('0x577')])[_0x33e23e('0x136')](',');}break;case _0x33e23e('0x1c22'):{var _0x67d888=_0x4a3e41['autoreply']['appdata'][_0x33e23e('0x1af5')](',');_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0x21c6')]=_0x67d888[0x0],_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0x797')]=_0x67d888[0x1],_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0x20a3')]=_0x67d888[0x2],_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0x15fe')]=_0x67d888[0x3],_0x4a3e41[_0x33e23e('0x1b98')]['welcomemessage']=_0x67d888['slice'](0x4,_0x67d888[_0x33e23e('0x577')])[_0x33e23e('0x136')](',');}break;case'autoreply':{var _0xc9e19=_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0x23c2')][_0x33e23e('0x1af5')](',');_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0x13b6')]=isNaN(_0xc9e19[0x0])?_0xc9e19[0x0]:parseInt(_0xc9e19[0x0],0xa),_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0xc1e')]=_0xc9e19[_0x33e23e('0xb3d')](0x1,_0xc9e19['length'])[_0x33e23e('0x136')](',');}break;case _0x33e23e('0x1224'):_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0xc1e')]=_0x4a3e41['autoreply']['appdata'];break;case _0x33e23e('0x1125'):_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0x19fe')]=_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0x23c2')][_0x33e23e('0x1af5')]('=')[0x0],_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0x2228')]=_0x4a3e41[_0x33e23e('0x1b98')]['appdata'][_0x33e23e('0x1af5')]('=')[0x1];break;case'agi':_0x4a3e41['autoreply'][_0x33e23e('0xbf8')]=_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0x23c2')];break;default:{var _0x18f735=_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0x23c2')][_0x33e23e('0x1af5')](',');_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0x13b6')]=_0x86640f()[_0x33e23e('0x23aa')](_0x18f735[0x0])?_0x18f735[0x0]:isNaN(_0x18f735[0x0])?_0x18f735[0x0]:parseInt(_0x18f735[0x0],0xa),_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0xc1e')]=_0x86640f()[_0x33e23e('0x23aa')](_0x18f735[0x1])?_0x18f735[0x1]:isNaN(_0x18f735[0x1])?_0x18f735[0x1]:parseInt(_0x18f735[0x1],0xa);}break;}else _0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0x13b6')]=0x1;_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0x7fa')]&&_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0x7fa')][_0x33e23e('0xac2')]()===_0x33e23e('0x2300')&&_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0x522')][_0x33e23e('0xac2')]()===_0x33e23e('0x2363')&&(_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0x1995')]=_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0x159e')]?_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0x159e')]['split']('$')[0x0]:undefined,_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0x26f7')]=_0x4a3e41[_0x33e23e('0x1b98')]['callerID']?_0x33e23e('0x587')+_0x4a3e41[_0x33e23e('0x1b98')][_0x33e23e('0x1f5a')]:undefined);_0x4a3e41[_0x33e23e('0x53d')]=_0x40e69a,_0x4a3e41[_0x33e23e('0x167')]=_0x3f9ea3;function _0x40e69a(){var _0x1831fa=_0x33e23e;_0x4a3e41['errors']=[];var _0x31359a=[];_0x4a3e41[_0x1831fa('0x1b98')][_0x1831fa('0x7fa')]&&_0x4a3e41[_0x1831fa('0x1b98')][_0x1831fa('0x7fa')][_0x1831fa('0xac2')]()===_0x1831fa('0x2300')&&_0x4a3e41[_0x1831fa('0x1b98')][_0x1831fa('0x522')]==='outboundDial'&&(_0x4a3e41[_0x1831fa('0x1b98')][_0x1831fa('0x159e')]=_0x26fa5c[_0x1831fa('0x988')]?(_0x4a3e41[_0x1831fa('0x1b98')][_0x1831fa('0x1995')]||'')+_0x1831fa('0x349')+_0x26fa5c[_0x1831fa('0x988')]+'}':(_0x4a3e41[_0x1831fa('0x1b98')][_0x1831fa('0x1995')]||'')+'${EXTEN}',_0x26fa5c['recordingFormat']!==_0x1831fa('0x983')?_0x4a3e41[_0x1831fa('0x1b98')][_0x1831fa('0x26a0')][_0x1831fa('0x2004')](_0x1831fa('0x478'))<0x0&&(_0x4a3e41['autoreply'][_0x1831fa('0x26a0')]+='U(xcally-mixmonitor-context)'):_0x4a3e41['autoreply']['options']=_0x4a3e41['autoreply']['options'][_0x1831fa('0x16e4')](_0x1831fa('0x478'),''));if(_0x4a3e41[_0x1831fa('0x1b98')]['appType']&&_0x4a3e41[_0x1831fa('0x1b98')][_0x1831fa('0x522')]===_0x1831fa('0xf50')){}else switch((_0x4a3e41[_0x1831fa('0x1b98')][_0x1831fa('0x1f94')]||_0x4a3e41[_0x1831fa('0x1b98')][_0x1831fa('0x522')])[_0x1831fa('0xac2')]()){case _0x1831fa('0x1125'):_0x4a3e41['autoreply']['appdata']=_0x4a3e41[_0x1831fa('0x1b98')]['name']+'='+_0x4a3e41[_0x1831fa('0x1b98')]['value'];break;case'custom':break;default:_0x31359a[0x0]=_0x4a3e41[_0x1831fa('0x1b98')][_0x1831fa('0x13b6')],_0x31359a[0x1]=_0x4a3e41['autoreply'][_0x1831fa('0xc1e')],_0x4a3e41[_0x1831fa('0x1b98')][_0x1831fa('0x23c2')]=_0x31359a[_0x1831fa('0x136')](',');}_0x3f9ea3(_0x4a3e41[_0x1831fa('0x1b98')]);}function _0x3f9ea3(_0x29875f){var _0x594cf9=_0x33e23e;_0x5b6afc[_0x594cf9('0x1c24')](_0x29875f);}}const _0x3eb00b=_0x47c463;_0x3d0ead[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x5f2'),_0x3877e3('0xe3c'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x3d0ead(_0x44b1cc,_0x400521,_0x5be966,_0x1e2b6c,_0x504422,_0x4bb308,_0x5c577,_0x4c1e3c){var _0xf52d2d=_0x3877e3,_0x56391b=this;_0x56391b[_0xf52d2d('0x123f')]=_0x5c577['getCurrentUser'](),_0x56391b[_0xf52d2d('0x1a69')]=[],_0x56391b[_0xf52d2d('0x4b4')]='CHAT.EDIT_'+(_0x1e2b6c[_0xf52d2d('0x522')]||_0x1e2b6c['app'])['toUpperCase'](),_0x56391b[_0xf52d2d('0x22f')]=angular[_0xf52d2d('0xd75')](_0x1e2b6c),_0x56391b['crudPermissions']=_0x4c1e3c,_0x56391b[_0xf52d2d('0x126a')]={};if(_0x56391b[_0xf52d2d('0x22f')]['appdata'])switch(_0x56391b[_0xf52d2d('0x22f')][_0xf52d2d('0x522')]?_0x56391b[_0xf52d2d('0x22f')][_0xf52d2d('0x522')][_0xf52d2d('0xac2')]():_0x56391b['close']['app'][_0xf52d2d('0xac2')]()){case _0xf52d2d('0xf50'):break;case _0xf52d2d('0xc72'):{var _0x485aa4=_0x56391b['close'][_0xf52d2d('0x23c2')]['split'](',');_0x56391b['close']['key']=_0x485aa4[0x0],_0x56391b[_0xf52d2d('0x22f')][_0xf52d2d('0x10f')]=_0x485aa4[0x1],_0x56391b[_0xf52d2d('0x22f')]['welcomemessage']=_0x485aa4[_0xf52d2d('0xb3d')](0x2,_0x485aa4[_0xf52d2d('0x577')])[_0xf52d2d('0x136')](',');}break;case _0xf52d2d('0x1c22'):{var _0x368676=_0x56391b[_0xf52d2d('0x22f')][_0xf52d2d('0x23c2')][_0xf52d2d('0x1af5')](',');_0x56391b[_0xf52d2d('0x22f')]['accesskeyid']=_0x368676[0x0],_0x56391b[_0xf52d2d('0x22f')][_0xf52d2d('0x797')]=_0x368676[0x1],_0x56391b[_0xf52d2d('0x22f')][_0xf52d2d('0x20a3')]=_0x368676[0x2],_0x56391b[_0xf52d2d('0x22f')]['botname']=_0x368676[0x3],_0x56391b[_0xf52d2d('0x22f')][_0xf52d2d('0x1cce')]=_0x368676[_0xf52d2d('0xb3d')](0x4,_0x368676['length'])[_0xf52d2d('0x136')](',');}break;case _0xf52d2d('0x1b98'):{var _0x465e05=_0x56391b[_0xf52d2d('0x22f')][_0xf52d2d('0x23c2')]['split'](',');_0x56391b[_0xf52d2d('0x22f')]['times']=isNaN(_0x465e05[0x0])?_0x465e05[0x0]:parseInt(_0x465e05[0x0],0xa),_0x56391b['close'][_0xf52d2d('0xc1e')]=_0x465e05[_0xf52d2d('0xb3d')](0x1,_0x465e05[_0xf52d2d('0x577')])[_0xf52d2d('0x136')](',');}break;case _0xf52d2d('0x1224'):_0x56391b['close']['text']=_0x56391b[_0xf52d2d('0x22f')][_0xf52d2d('0x23c2')];break;case _0xf52d2d('0x1125'):_0x56391b[_0xf52d2d('0x22f')][_0xf52d2d('0x19fe')]=_0x56391b[_0xf52d2d('0x22f')][_0xf52d2d('0x23c2')][_0xf52d2d('0x1af5')]('=')[0x0],_0x56391b[_0xf52d2d('0x22f')][_0xf52d2d('0x2228')]=_0x56391b[_0xf52d2d('0x22f')]['appdata'][_0xf52d2d('0x1af5')]('=')[0x1];break;case _0xf52d2d('0x2356'):_0x56391b[_0xf52d2d('0x22f')][_0xf52d2d('0xbf8')]=_0x56391b[_0xf52d2d('0x22f')][_0xf52d2d('0x23c2')];break;default:{var _0x2f0dd9=_0x56391b[_0xf52d2d('0x22f')][_0xf52d2d('0x23c2')][_0xf52d2d('0x1af5')](',');_0x56391b[_0xf52d2d('0x22f')][_0xf52d2d('0x22c8')]=_0x86640f()['isEmpty'](_0x2f0dd9[0x0])?_0x2f0dd9[0x0]:isNaN(_0x2f0dd9[0x0])?_0x2f0dd9[0x0]:parseInt(_0x2f0dd9[0x0],0xa);}break;}else{}_0x56391b['close'][_0xf52d2d('0x7fa')]&&_0x56391b[_0xf52d2d('0x22f')]['type']['toLowerCase']()==='outbound'&&_0x56391b[_0xf52d2d('0x22f')][_0xf52d2d('0x522')][_0xf52d2d('0xac2')]()===_0xf52d2d('0x2363')&&(_0x56391b['close'][_0xf52d2d('0x1995')]=_0x56391b[_0xf52d2d('0x22f')][_0xf52d2d('0x159e')]?_0x56391b[_0xf52d2d('0x22f')][_0xf52d2d('0x159e')]['split']('$')[0x0]:undefined,_0x56391b[_0xf52d2d('0x22f')]['callerId']=_0x56391b[_0xf52d2d('0x22f')][_0xf52d2d('0x1f5a')]?'CALLERID(all)='+_0x56391b[_0xf52d2d('0x22f')][_0xf52d2d('0x1f5a')]:undefined);_0x56391b[_0xf52d2d('0x53d')]=_0x4152b0,_0x56391b['closeDialog']=_0x1ff707;function _0x4152b0(){var _0xec98b0=_0xf52d2d;_0x56391b[_0xec98b0('0x1a69')]=[];var _0x3f0e75=[];_0x56391b[_0xec98b0('0x22f')][_0xec98b0('0x7fa')]&&_0x56391b['close'][_0xec98b0('0x7fa')]['toLowerCase']()==='outbound'&&_0x56391b[_0xec98b0('0x22f')][_0xec98b0('0x522')]==='outboundDial'&&(_0x56391b['close'][_0xec98b0('0x159e')]=_0x504422['cutdigits']?(_0x56391b['close'][_0xec98b0('0x1995')]||'')+'${EXTEN:'+_0x504422[_0xec98b0('0x988')]+'}':(_0x56391b[_0xec98b0('0x22f')]['prefix']||'')+'${EXTEN}',_0x504422[_0xec98b0('0xad1')]!==_0xec98b0('0x983')?_0x56391b[_0xec98b0('0x22f')][_0xec98b0('0x26a0')]['indexOf'](_0xec98b0('0x478'))<0x0&&(_0x56391b[_0xec98b0('0x22f')][_0xec98b0('0x26a0')]+=_0xec98b0('0x478')):_0x56391b[_0xec98b0('0x22f')]['options']=_0x56391b[_0xec98b0('0x22f')][_0xec98b0('0x26a0')][_0xec98b0('0x16e4')](_0xec98b0('0x478'),''));if(_0x56391b['close']['appType']&&_0x56391b[_0xec98b0('0x22f')][_0xec98b0('0x522')]==='custom'){}else switch((_0x56391b[_0xec98b0('0x22f')][_0xec98b0('0x1f94')]||_0x56391b[_0xec98b0('0x22f')][_0xec98b0('0x522')])[_0xec98b0('0xac2')]()){case'set':_0x56391b[_0xec98b0('0x22f')][_0xec98b0('0x23c2')]=_0x56391b[_0xec98b0('0x22f')][_0xec98b0('0x19fe')]+'='+_0x56391b['close'][_0xec98b0('0x2228')];break;case'custom':break;default:_0x3f0e75[0x0]=_0x56391b['close']['disposition'],_0x56391b[_0xec98b0('0x22f')][_0xec98b0('0x23c2')]=_0x3f0e75[_0xec98b0('0x136')](',');}_0x1ff707(_0x56391b[_0xec98b0('0x22f')]);}function _0x1ff707(_0x146545){var _0x476372=_0xf52d2d;_0x44b1cc[_0x476372('0x1c24')](_0x146545);}}const _0x176f78=_0x3d0ead;_0x4d57d3[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),'chatWebsiteApp',_0x3877e3('0xe3c'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'crudPermissions'];function _0x4d57d3(_0x63ceda,_0x4f14c0,_0x538707,_0x423e3d,_0x11437f,_0x2f39d6,_0x543d26,_0x5da1c8){var _0x428439=_0x3877e3,_0x3874e5=this;_0x3874e5[_0x428439('0x123f')]=_0x543d26[_0x428439('0x15ed')](),_0x3874e5[_0x428439('0x1a69')]=[],_0x3874e5[_0x428439('0x4b4')]=_0x428439('0xdd2')+(_0x423e3d['appType']||_0x423e3d[_0x428439('0x1f94')])[_0x428439('0x2e8')](),_0x3874e5[_0x428439('0xc72')]=angular[_0x428439('0xd75')](_0x423e3d),_0x3874e5['crudPermissions']=_0x5da1c8,_0x3874e5[_0x428439('0x126a')]={};if(_0x3874e5['dialogflow'][_0x428439('0x23c2')])switch(_0x3874e5[_0x428439('0xc72')][_0x428439('0x522')]?_0x3874e5[_0x428439('0xc72')][_0x428439('0x522')][_0x428439('0xac2')]():_0x3874e5[_0x428439('0xc72')][_0x428439('0x1f94')][_0x428439('0xac2')]()){case _0x428439('0xf50'):break;case _0x428439('0xc72'):{var _0x4624e9=_0x3874e5[_0x428439('0xc72')][_0x428439('0x23c2')][_0x428439('0x1af5')](',');_0x3874e5[_0x428439('0xc72')]['key']=_0x4624e9[0x0],_0x3874e5[_0x428439('0xc72')]['language']=_0x4624e9[0x1],_0x3874e5['dialogflow'][_0x428439('0x1cce')]=_0x4624e9['slice'](0x2,_0x4624e9['length'])[_0x428439('0x136')](',');}break;case _0x428439('0x1c22'):{var _0x2fe241=_0x3874e5[_0x428439('0xc72')][_0x428439('0x23c2')][_0x428439('0x1af5')](',');_0x3874e5[_0x428439('0xc72')]['accesskeyid']=_0x2fe241[0x0],_0x3874e5[_0x428439('0xc72')][_0x428439('0x797')]=_0x2fe241[0x1],_0x3874e5[_0x428439('0xc72')][_0x428439('0x20a3')]=_0x2fe241[0x2],_0x3874e5[_0x428439('0xc72')][_0x428439('0x15fe')]=_0x2fe241[0x3],_0x3874e5['dialogflow'][_0x428439('0x1cce')]=_0x2fe241['slice'](0x4,_0x2fe241['length'])[_0x428439('0x136')](',');}break;case _0x428439('0x1b98'):{var _0x5c4c2f=_0x3874e5[_0x428439('0xc72')][_0x428439('0x23c2')][_0x428439('0x1af5')](',');_0x3874e5[_0x428439('0xc72')][_0x428439('0x13b6')]=isNaN(_0x5c4c2f[0x0])?_0x5c4c2f[0x0]:parseInt(_0x5c4c2f[0x0],0xa),_0x3874e5[_0x428439('0xc72')]['text']=_0x5c4c2f[_0x428439('0xb3d')](0x1,_0x5c4c2f['length'])['join'](',');}break;case _0x428439('0x1224'):_0x3874e5['dialogflow'][_0x428439('0xc1e')]=_0x3874e5['dialogflow'][_0x428439('0x23c2')];break;case _0x428439('0x1125'):_0x3874e5[_0x428439('0xc72')][_0x428439('0x19fe')]=_0x3874e5[_0x428439('0xc72')][_0x428439('0x23c2')]['split']('=')[0x0],_0x3874e5[_0x428439('0xc72')]['value']=_0x3874e5[_0x428439('0xc72')][_0x428439('0x23c2')][_0x428439('0x1af5')]('=')[0x1];break;case _0x428439('0x2356'):_0x3874e5[_0x428439('0xc72')]['project']=_0x3874e5[_0x428439('0xc72')][_0x428439('0x23c2')];break;default:{var _0x27d18e=_0x3874e5['dialogflow']['appdata'][_0x428439('0x1af5')](',');_0x3874e5[_0x428439('0xc72')]['key']=_0x86640f()['isEmpty'](_0x27d18e[0x0])?_0x27d18e[0x0]:isNaN(_0x27d18e[0x0])?_0x27d18e[0x0]:parseInt(_0x27d18e[0x0],0xa),_0x3874e5[_0x428439('0xc72')][_0x428439('0x10f')]=_0x86640f()[_0x428439('0x23aa')](_0x27d18e[0x1])?_0x27d18e[0x1]:isNaN(_0x27d18e[0x1])?_0x27d18e[0x1]:parseInt(_0x27d18e[0x1],0xa),_0x3874e5[_0x428439('0xc72')][_0x428439('0x1cce')]=_0x86640f()[_0x428439('0x23aa')](_0x27d18e[0x2])?_0x27d18e[0x2]:isNaN(_0x27d18e[0x2])?_0x27d18e[0x2]:parseInt(_0x27d18e[0x2],0xa);}break;}else _0x3874e5[_0x428439('0xc72')][_0x428439('0x10f')]='en';_0x3874e5['dialogflow'][_0x428439('0x7fa')]&&_0x3874e5[_0x428439('0xc72')]['type']['toLowerCase']()===_0x428439('0x2300')&&_0x3874e5[_0x428439('0xc72')][_0x428439('0x522')][_0x428439('0xac2')]()===_0x428439('0x2363')&&(_0x3874e5[_0x428439('0xc72')]['prefix']=_0x3874e5[_0x428439('0xc72')][_0x428439('0x159e')]?_0x3874e5[_0x428439('0xc72')]['phone'][_0x428439('0x1af5')]('$')[0x0]:undefined,_0x3874e5['dialogflow'][_0x428439('0x26f7')]=_0x3874e5['dialogflow']['callerID']?_0x428439('0x587')+_0x3874e5[_0x428439('0xc72')][_0x428439('0x1f5a')]:undefined);_0x3874e5['saveChatWebsiteApp']=_0x466094,_0x3874e5['closeDialog']=_0x15a9bc;function _0x466094(){var _0xec5be0=_0x428439;_0x3874e5['errors']=[];var _0xf98e9d=[];_0x3874e5[_0xec5be0('0xc72')][_0xec5be0('0x7fa')]&&_0x3874e5['dialogflow'][_0xec5be0('0x7fa')][_0xec5be0('0xac2')]()==='outbound'&&_0x3874e5['dialogflow'][_0xec5be0('0x522')]===_0xec5be0('0x4ea')&&(_0x3874e5[_0xec5be0('0xc72')][_0xec5be0('0x159e')]=_0x11437f['cutdigits']?(_0x3874e5[_0xec5be0('0xc72')][_0xec5be0('0x1995')]||'')+'${EXTEN:'+_0x11437f[_0xec5be0('0x988')]+'}':(_0x3874e5['dialogflow']['prefix']||'')+_0xec5be0('0x2560'),_0x11437f[_0xec5be0('0xad1')]!==_0xec5be0('0x983')?_0x3874e5[_0xec5be0('0xc72')][_0xec5be0('0x26a0')][_0xec5be0('0x2004')](_0xec5be0('0x478'))<0x0&&(_0x3874e5[_0xec5be0('0xc72')][_0xec5be0('0x26a0')]+=_0xec5be0('0x478')):_0x3874e5[_0xec5be0('0xc72')][_0xec5be0('0x26a0')]=_0x3874e5[_0xec5be0('0xc72')]['options'][_0xec5be0('0x16e4')]('U(xcally-mixmonitor-context)',''));if(_0x3874e5[_0xec5be0('0xc72')]['appType']&&_0x3874e5[_0xec5be0('0xc72')]['appType']===_0xec5be0('0xf50')){}else switch((_0x3874e5['dialogflow'][_0xec5be0('0x1f94')]||_0x3874e5[_0xec5be0('0xc72')][_0xec5be0('0x522')])[_0xec5be0('0xac2')]()){case _0xec5be0('0x1125'):_0x3874e5[_0xec5be0('0xc72')][_0xec5be0('0x23c2')]=_0x3874e5['dialogflow']['name']+'='+_0x3874e5['dialogflow'][_0xec5be0('0x2228')];break;case _0xec5be0('0xf50'):break;default:_0xf98e9d[0x0]=_0x3874e5['dialogflow'][_0xec5be0('0xddb')],_0xf98e9d[0x1]=_0x3874e5[_0xec5be0('0xc72')]['language'],_0xf98e9d[0x2]=_0x3874e5[_0xec5be0('0xc72')][_0xec5be0('0x1cce')],_0x3874e5[_0xec5be0('0xc72')][_0xec5be0('0x23c2')]=_0xf98e9d[_0xec5be0('0x136')](',');}_0x15a9bc(_0x3874e5[_0xec5be0('0xc72')]);}function _0x15a9bc(_0x2200e4){var _0x13e9c7=_0x428439;_0x63ceda[_0x13e9c7('0x1c24')](_0x2200e4);}}const _0x8cf225=_0x4d57d3;_0x25be5f['$inject']=['$mdDialog','$q',_0x3877e3('0x1908'),_0x3877e3('0x5f2'),_0x3877e3('0xe3c'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x25be5f(_0x5c823b,_0x4a443b,_0x4fc1b7,_0x1ec8c5,_0x2fb97e,_0x4b454f,_0xf17929,_0xfdb470){var _0x1e11ac=_0x3877e3,_0x49a8ae=this;_0x49a8ae[_0x1e11ac('0x123f')]=_0xf17929[_0x1e11ac('0x15ed')](),_0x49a8ae[_0x1e11ac('0x1a69')]=[],_0x49a8ae['title']=_0x1e11ac('0xdd2')+(_0x1ec8c5[_0x1e11ac('0x522')]||_0x1ec8c5[_0x1e11ac('0x1f94')])[_0x1e11ac('0x2e8')](),_0x49a8ae[_0x1e11ac('0x262')]=angular[_0x1e11ac('0xd75')](_0x1ec8c5),_0x49a8ae[_0x1e11ac('0x5ed')]=_0xfdb470,_0x49a8ae[_0x1e11ac('0x126a')]={};if(_0x49a8ae[_0x1e11ac('0x262')]['appdata'])switch(_0x49a8ae['gotoif'][_0x1e11ac('0x522')]?_0x49a8ae[_0x1e11ac('0x262')][_0x1e11ac('0x522')][_0x1e11ac('0xac2')]():_0x49a8ae[_0x1e11ac('0x262')][_0x1e11ac('0x1f94')][_0x1e11ac('0xac2')]()){case'custom':break;case'dialogflow':{var _0x1484f4=_0x49a8ae[_0x1e11ac('0x262')][_0x1e11ac('0x23c2')][_0x1e11ac('0x1af5')](',');_0x49a8ae[_0x1e11ac('0x262')][_0x1e11ac('0xddb')]=_0x1484f4[0x0],_0x49a8ae['gotoif']['language']=_0x1484f4[0x1],_0x49a8ae[_0x1e11ac('0x262')][_0x1e11ac('0x1cce')]=_0x1484f4[_0x1e11ac('0xb3d')](0x2,_0x1484f4['length'])[_0x1e11ac('0x136')](',');}break;case _0x1e11ac('0x1c22'):{var _0x312ff1=_0x49a8ae[_0x1e11ac('0x262')][_0x1e11ac('0x23c2')]['split'](',');_0x49a8ae[_0x1e11ac('0x262')][_0x1e11ac('0x21c6')]=_0x312ff1[0x0],_0x49a8ae['gotoif'][_0x1e11ac('0x797')]=_0x312ff1[0x1],_0x49a8ae['gotoif']['lexregion']=_0x312ff1[0x2],_0x49a8ae[_0x1e11ac('0x262')][_0x1e11ac('0x15fe')]=_0x312ff1[0x3],_0x49a8ae['gotoif'][_0x1e11ac('0x1cce')]=_0x312ff1[_0x1e11ac('0xb3d')](0x4,_0x312ff1[_0x1e11ac('0x577')])['join'](',');}break;case _0x1e11ac('0x1b98'):{var _0x4fa76e=_0x49a8ae['gotoif'][_0x1e11ac('0x23c2')][_0x1e11ac('0x1af5')](',');_0x49a8ae[_0x1e11ac('0x262')]['times']=isNaN(_0x4fa76e[0x0])?_0x4fa76e[0x0]:parseInt(_0x4fa76e[0x0],0xa),_0x49a8ae['gotoif'][_0x1e11ac('0xc1e')]=_0x4fa76e[_0x1e11ac('0xb3d')](0x1,_0x4fa76e[_0x1e11ac('0x577')])['join'](',');}break;case _0x1e11ac('0x1224'):_0x49a8ae[_0x1e11ac('0x262')][_0x1e11ac('0xc1e')]=_0x49a8ae[_0x1e11ac('0x262')][_0x1e11ac('0x23c2')];break;case'set':_0x49a8ae[_0x1e11ac('0x262')]['name']=_0x49a8ae[_0x1e11ac('0x262')]['appdata'][_0x1e11ac('0x1af5')]('=')[0x0],_0x49a8ae[_0x1e11ac('0x262')][_0x1e11ac('0x2228')]=_0x49a8ae[_0x1e11ac('0x262')][_0x1e11ac('0x23c2')][_0x1e11ac('0x1af5')]('=')[0x1];break;case _0x1e11ac('0x2356'):_0x49a8ae[_0x1e11ac('0x262')][_0x1e11ac('0xbf8')]=_0x49a8ae['gotoif']['appdata'];break;default:{var _0x4fb8a6=_0x49a8ae[_0x1e11ac('0x262')][_0x1e11ac('0x23c2')][_0x1e11ac('0x1af5')](',');_0x49a8ae[_0x1e11ac('0x262')]['condition']=_0x86640f()[_0x1e11ac('0x23aa')](_0x4fb8a6[0x0])?_0x4fb8a6[0x0]:isNaN(_0x4fb8a6[0x0])?_0x4fb8a6[0x0]:parseInt(_0x4fb8a6[0x0],0xa),_0x49a8ae[_0x1e11ac('0x262')][_0x1e11ac('0x1a25')]=_0x86640f()['isEmpty'](_0x4fb8a6[0x1])?_0x4fb8a6[0x1]:isNaN(_0x4fb8a6[0x1])?_0x4fb8a6[0x1]:parseInt(_0x4fb8a6[0x1],0xa),_0x49a8ae['gotoif']['falsepriority']=_0x86640f()['isEmpty'](_0x4fb8a6[0x2])?_0x4fb8a6[0x2]:isNaN(_0x4fb8a6[0x2])?_0x4fb8a6[0x2]:parseInt(_0x4fb8a6[0x2],0xa);}break;}else{}_0x49a8ae['gotoif'][_0x1e11ac('0x7fa')]&&_0x49a8ae[_0x1e11ac('0x262')][_0x1e11ac('0x7fa')][_0x1e11ac('0xac2')]()===_0x1e11ac('0x2300')&&_0x49a8ae['gotoif']['appType'][_0x1e11ac('0xac2')]()===_0x1e11ac('0x2363')&&(_0x49a8ae[_0x1e11ac('0x262')]['prefix']=_0x49a8ae[_0x1e11ac('0x262')][_0x1e11ac('0x159e')]?_0x49a8ae[_0x1e11ac('0x262')][_0x1e11ac('0x159e')]['split']('$')[0x0]:undefined,_0x49a8ae[_0x1e11ac('0x262')]['callerId']=_0x49a8ae[_0x1e11ac('0x262')][_0x1e11ac('0x1f5a')]?_0x1e11ac('0x587')+_0x49a8ae[_0x1e11ac('0x262')][_0x1e11ac('0x1f5a')]:undefined);_0x49a8ae[_0x1e11ac('0x53d')]=_0x4e2e65,_0x49a8ae['closeDialog']=_0x24b641;function _0x4e2e65(){var _0x3b5cdd=_0x1e11ac;_0x49a8ae[_0x3b5cdd('0x1a69')]=[];var _0x4e3ca8=[];_0x49a8ae['gotoif'][_0x3b5cdd('0x7fa')]&&_0x49a8ae[_0x3b5cdd('0x262')]['type'][_0x3b5cdd('0xac2')]()===_0x3b5cdd('0x2300')&&_0x49a8ae['gotoif']['appType']===_0x3b5cdd('0x4ea')&&(_0x49a8ae[_0x3b5cdd('0x262')][_0x3b5cdd('0x159e')]=_0x2fb97e[_0x3b5cdd('0x988')]?(_0x49a8ae[_0x3b5cdd('0x262')][_0x3b5cdd('0x1995')]||'')+_0x3b5cdd('0x349')+_0x2fb97e[_0x3b5cdd('0x988')]+'}':(_0x49a8ae[_0x3b5cdd('0x262')][_0x3b5cdd('0x1995')]||'')+_0x3b5cdd('0x2560'),_0x2fb97e[_0x3b5cdd('0xad1')]!=='none'?_0x49a8ae['gotoif']['options'][_0x3b5cdd('0x2004')]('U(xcally-mixmonitor-context)')<0x0&&(_0x49a8ae[_0x3b5cdd('0x262')][_0x3b5cdd('0x26a0')]+=_0x3b5cdd('0x478')):_0x49a8ae['gotoif'][_0x3b5cdd('0x26a0')]=_0x49a8ae['gotoif'][_0x3b5cdd('0x26a0')][_0x3b5cdd('0x16e4')](_0x3b5cdd('0x478'),''));if(_0x49a8ae['gotoif'][_0x3b5cdd('0x522')]&&_0x49a8ae[_0x3b5cdd('0x262')][_0x3b5cdd('0x522')]===_0x3b5cdd('0xf50')){}else switch((_0x49a8ae['gotoif'][_0x3b5cdd('0x1f94')]||_0x49a8ae['gotoif'][_0x3b5cdd('0x522')])['toLowerCase']()){case _0x3b5cdd('0x1125'):_0x49a8ae[_0x3b5cdd('0x262')][_0x3b5cdd('0x23c2')]=_0x49a8ae[_0x3b5cdd('0x262')][_0x3b5cdd('0x19fe')]+'='+_0x49a8ae[_0x3b5cdd('0x262')][_0x3b5cdd('0x2228')];break;case _0x3b5cdd('0xf50'):break;default:_0x4e3ca8[0x0]=_0x49a8ae[_0x3b5cdd('0x262')][_0x3b5cdd('0x271c')],_0x4e3ca8[0x1]=_0x49a8ae[_0x3b5cdd('0x262')]['truepriority'],_0x4e3ca8[0x2]=_0x49a8ae[_0x3b5cdd('0x262')][_0x3b5cdd('0xe4c')],_0x49a8ae[_0x3b5cdd('0x262')][_0x3b5cdd('0x23c2')]=_0x4e3ca8[_0x3b5cdd('0x136')](',');}_0x24b641(_0x49a8ae['gotoif']);}function _0x24b641(_0x195afe){var _0x3b14dd=_0x1e11ac;_0x5c823b[_0x3b14dd('0x1c24')](_0x195afe);}}const _0x408f13=_0x25be5f;_0x57133f[_0x3877e3('0x1a81')]=['$mdDialog','$q',_0x3877e3('0x1908'),'chatWebsiteApp',_0x3877e3('0xe3c'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x57133f(_0x3c82c9,_0x4e8038,_0x22eae8,_0x56fdca,_0x2fbbe4,_0x551ce1,_0x239ad4,_0x194f2d){var _0x5db41d=_0x3877e3,_0x127274=this;_0x127274[_0x5db41d('0x123f')]=_0x239ad4[_0x5db41d('0x15ed')](),_0x127274[_0x5db41d('0x1a69')]=[],_0x127274['title']=_0x5db41d('0xdd2')+(_0x56fdca[_0x5db41d('0x522')]||_0x56fdca[_0x5db41d('0x1f94')])[_0x5db41d('0x2e8')](),_0x127274[_0x5db41d('0x23ef')]=angular[_0x5db41d('0xd75')](_0x56fdca),_0x127274[_0x5db41d('0x5ed')]=_0x194f2d,_0x127274[_0x5db41d('0x126a')]={};if(_0x127274[_0x5db41d('0x23ef')]['appdata'])switch(_0x127274[_0x5db41d('0x23ef')][_0x5db41d('0x522')]?_0x127274[_0x5db41d('0x23ef')][_0x5db41d('0x522')][_0x5db41d('0xac2')]():_0x127274[_0x5db41d('0x23ef')][_0x5db41d('0x1f94')][_0x5db41d('0xac2')]()){case'custom':break;case _0x5db41d('0xc72'):{var _0x82b7de=_0x127274[_0x5db41d('0x23ef')]['appdata'][_0x5db41d('0x1af5')](',');_0x127274[_0x5db41d('0x23ef')][_0x5db41d('0xddb')]=_0x82b7de[0x0],_0x127274[_0x5db41d('0x23ef')]['language']=_0x82b7de[0x1],_0x127274[_0x5db41d('0x23ef')][_0x5db41d('0x1cce')]=_0x82b7de[_0x5db41d('0xb3d')](0x2,_0x82b7de[_0x5db41d('0x577')])[_0x5db41d('0x136')](',');}break;case _0x5db41d('0x1c22'):{var _0x27a4e0=_0x127274[_0x5db41d('0x23ef')][_0x5db41d('0x23c2')][_0x5db41d('0x1af5')](',');_0x127274[_0x5db41d('0x23ef')]['accesskeyid']=_0x27a4e0[0x0],_0x127274[_0x5db41d('0x23ef')][_0x5db41d('0x797')]=_0x27a4e0[0x1],_0x127274[_0x5db41d('0x23ef')][_0x5db41d('0x20a3')]=_0x27a4e0[0x2],_0x127274[_0x5db41d('0x23ef')]['botname']=_0x27a4e0[0x3],_0x127274['gotop']['welcomemessage']=_0x27a4e0[_0x5db41d('0xb3d')](0x4,_0x27a4e0['length'])[_0x5db41d('0x136')](',');}break;case _0x5db41d('0x1b98'):{var _0x44ae77=_0x127274[_0x5db41d('0x23ef')]['appdata'][_0x5db41d('0x1af5')](',');_0x127274[_0x5db41d('0x23ef')][_0x5db41d('0x13b6')]=isNaN(_0x44ae77[0x0])?_0x44ae77[0x0]:parseInt(_0x44ae77[0x0],0xa),_0x127274[_0x5db41d('0x23ef')][_0x5db41d('0xc1e')]=_0x44ae77['slice'](0x1,_0x44ae77['length'])[_0x5db41d('0x136')](',');}break;case'message':_0x127274[_0x5db41d('0x23ef')]['text']=_0x127274[_0x5db41d('0x23ef')][_0x5db41d('0x23c2')];break;case'set':_0x127274[_0x5db41d('0x23ef')]['name']=_0x127274['gotop'][_0x5db41d('0x23c2')]['split']('=')[0x0],_0x127274[_0x5db41d('0x23ef')][_0x5db41d('0x2228')]=_0x127274['gotop'][_0x5db41d('0x23c2')]['split']('=')[0x1];break;case _0x5db41d('0x2356'):_0x127274[_0x5db41d('0x23ef')][_0x5db41d('0xbf8')]=_0x127274[_0x5db41d('0x23ef')]['appdata'];break;default:{var _0x43f1cf=_0x127274[_0x5db41d('0x23ef')][_0x5db41d('0x23c2')]['split'](',');_0x127274[_0x5db41d('0x23ef')][_0x5db41d('0xbe5')]=_0x86640f()['isEmpty'](_0x43f1cf[0x0])?_0x43f1cf[0x0]:isNaN(_0x43f1cf[0x0])?_0x43f1cf[0x0]:parseInt(_0x43f1cf[0x0],0xa);}break;}else{}_0x127274['gotop'][_0x5db41d('0x7fa')]&&_0x127274[_0x5db41d('0x23ef')][_0x5db41d('0x7fa')][_0x5db41d('0xac2')]()===_0x5db41d('0x2300')&&_0x127274['gotop'][_0x5db41d('0x522')][_0x5db41d('0xac2')]()===_0x5db41d('0x2363')&&(_0x127274[_0x5db41d('0x23ef')][_0x5db41d('0x1995')]=_0x127274[_0x5db41d('0x23ef')][_0x5db41d('0x159e')]?_0x127274['gotop'][_0x5db41d('0x159e')][_0x5db41d('0x1af5')]('$')[0x0]:undefined,_0x127274[_0x5db41d('0x23ef')]['callerId']=_0x127274[_0x5db41d('0x23ef')][_0x5db41d('0x1f5a')]?_0x5db41d('0x587')+_0x127274['gotop'][_0x5db41d('0x1f5a')]:undefined);_0x127274['saveChatWebsiteApp']=_0x22ee11,_0x127274[_0x5db41d('0x167')]=_0x34fbaa;function _0x22ee11(){var _0x22ffa9=_0x5db41d;_0x127274[_0x22ffa9('0x1a69')]=[];var _0x217a40=[];_0x127274['gotop'][_0x22ffa9('0x7fa')]&&_0x127274[_0x22ffa9('0x23ef')][_0x22ffa9('0x7fa')][_0x22ffa9('0xac2')]()===_0x22ffa9('0x2300')&&_0x127274[_0x22ffa9('0x23ef')][_0x22ffa9('0x522')]===_0x22ffa9('0x4ea')&&(_0x127274[_0x22ffa9('0x23ef')][_0x22ffa9('0x159e')]=_0x2fbbe4[_0x22ffa9('0x988')]?(_0x127274[_0x22ffa9('0x23ef')][_0x22ffa9('0x1995')]||'')+'${EXTEN:'+_0x2fbbe4[_0x22ffa9('0x988')]+'}':(_0x127274[_0x22ffa9('0x23ef')]['prefix']||'')+_0x22ffa9('0x2560'),_0x2fbbe4[_0x22ffa9('0xad1')]!==_0x22ffa9('0x983')?_0x127274['gotop'][_0x22ffa9('0x26a0')][_0x22ffa9('0x2004')](_0x22ffa9('0x478'))<0x0&&(_0x127274[_0x22ffa9('0x23ef')]['options']+=_0x22ffa9('0x478')):_0x127274['gotop'][_0x22ffa9('0x26a0')]=_0x127274[_0x22ffa9('0x23ef')]['options'][_0x22ffa9('0x16e4')](_0x22ffa9('0x478'),''));if(_0x127274[_0x22ffa9('0x23ef')]['appType']&&_0x127274[_0x22ffa9('0x23ef')][_0x22ffa9('0x522')]===_0x22ffa9('0xf50')){}else switch((_0x127274[_0x22ffa9('0x23ef')][_0x22ffa9('0x1f94')]||_0x127274[_0x22ffa9('0x23ef')][_0x22ffa9('0x522')])[_0x22ffa9('0xac2')]()){case _0x22ffa9('0x1125'):_0x127274['gotop'][_0x22ffa9('0x23c2')]=_0x127274['gotop'][_0x22ffa9('0x19fe')]+'='+_0x127274['gotop'][_0x22ffa9('0x2228')];break;case _0x22ffa9('0xf50'):break;default:_0x217a40[0x0]=_0x127274[_0x22ffa9('0x23ef')][_0x22ffa9('0xbe5')],_0x127274[_0x22ffa9('0x23ef')][_0x22ffa9('0x23c2')]=_0x217a40[_0x22ffa9('0x136')](',');}_0x34fbaa(_0x127274[_0x22ffa9('0x23ef')]);}function _0x34fbaa(_0x19d47b){var _0x191950=_0x5db41d;_0x3c82c9[_0x191950('0x1c24')](_0x19d47b);}}const _0x2732d6=_0x57133f;_0x3f6b40['$inject']=[_0x3877e3('0xa9f'),_0x3877e3('0x1850'),_0x3877e3('0x21be'),_0x3877e3('0x2086'),_0x3877e3('0xa07'),_0x3877e3('0x2530'),'toasty',_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x3f6b40(_0xf756ee,_0x2fca86,_0x3990bd,_0x1fc4f9,_0xee05fc,_0x1ad409,_0xb28c80,_0x29f851,_0x2b5765,_0x4e14ea){var _0x5f2f88=_0x3877e3,_0x16cf67=this;_0x16cf67[_0x5f2f88('0x123f')]=_0x2b5765['getCurrentUser'](),_0x16cf67[_0x5f2f88('0x1a69')]=[],_0x16cf67[_0x5f2f88('0x4b4')]=_0x5f2f88('0x130e'),_0x16cf67['interval']=angular['copy'](_0xee05fc),_0x16cf67['intervals']=_0x1ad409,_0x16cf67[_0x5f2f88('0x1c3e')]=![],_0x16cf67[_0x5f2f88('0x4ca')]=[_0x5f2f88('0x869'),_0x5f2f88('0xf50'),_0x5f2f88('0x17fe')],_0x16cf67[_0x5f2f88('0x5ed')]=_0x4e14ea,_0x16cf67[_0x5f2f88('0x45e')]=_0x1fc4f9[_0x5f2f88('0x1d74')](),_0x16cf67[_0x5f2f88('0x6fd')]=_0x1fc4f9[_0x5f2f88('0x439')](),_0x16cf67[_0x5f2f88('0x1f1e')]=_0x1fc4f9[_0x5f2f88('0x1f1f')](),_0x16cf67[_0x5f2f88('0x443')]=_0x1fc4f9['getDaysOfMonth']();if(!_0x16cf67[_0x5f2f88('0xa07')])_0x16cf67[_0x5f2f88('0xa07')]={'interval':_0x5f2f88('0x1cc4')},_0x16cf67[_0x5f2f88('0x7fa')]=_0x5f2f88('0x869'),_0x16cf67['title']='TOOLS.NEW_INTERVAL',_0x16cf67[_0x5f2f88('0x1c3e')]=!![];else{if(_0x16cf67[_0x5f2f88('0xa07')][_0x5f2f88('0xa07')]!=='*,*,*,*'){_0x16cf67[_0x5f2f88('0x7fa')]=_0x5f2f88('0xf50');var _0x5a5c50=_0x16cf67[_0x5f2f88('0xa07')]['interval'][_0x5f2f88('0x1af5')](','),_0x127133=_0x5a5c50[0x0],_0x2099de=_0x5a5c50[0x1],_0x418ad6=_0x5a5c50[0x2],_0x62d14a=_0x5a5c50[0x3];if(_0x127133!=='*'){var _0x2d170e=_0x127133[_0x5f2f88('0x1af5')]('-')[0x0],_0x4da945=_0x127133[_0x5f2f88('0x1af5')]('-')[0x1],_0x3523b9;_0x3523b9=new Date(),_0x3523b9[_0x5f2f88('0xb0f')](Number(_0x2d170e[_0x5f2f88('0x1af5')](':')[0x0])),_0x3523b9[_0x5f2f88('0x119c')](Number(_0x2d170e['split'](':')[0x1])),_0x16cf67[_0x5f2f88('0x3e8')]=_0x3523b9,_0x3523b9=new Date(),_0x3523b9[_0x5f2f88('0xb0f')](Number(_0x4da945[_0x5f2f88('0x1af5')](':')[0x0])),_0x3523b9[_0x5f2f88('0x119c')](Number(_0x4da945[_0x5f2f88('0x1af5')](':')[0x1])),_0x16cf67['timeRangeTo']=_0x3523b9;}_0x2099de!=='*'&&(_0x16cf67[_0x5f2f88('0x21a5')]=_0x2099de[_0x5f2f88('0x1af5')]('-')[0x0],_0x16cf67[_0x5f2f88('0x1556')]=_0x2099de[_0x5f2f88('0x1af5')]('-')[0x1]),_0x418ad6!=='*'&&(_0x16cf67[_0x5f2f88('0x14ec')]=_0x418ad6[_0x5f2f88('0x1af5')]('-')[0x0],_0x16cf67['monthDayTo']=_0x418ad6['split']('-')[0x1]),_0x62d14a!=='*'&&(_0x16cf67[_0x5f2f88('0xded')]=_0x62d14a['split']('-')[0x0],_0x16cf67['monthTo']=_0x62d14a['split']('-')[0x1]);}else _0x16cf67[_0x5f2f88('0x7fa')]=_0x5f2f88('0x869');}_0xf756ee['params']['id']&&!_0x16cf67['interval']['application']&&(_0x16cf67[_0x5f2f88('0xa07')]['IntervalId']=_0xf756ee[_0x5f2f88('0x171b')]['id']);_0x16cf67['interval']['IntervalId']&&_0x16cf67[_0x5f2f88('0xa07')][_0x5f2f88('0xd7f')]&&(_0x16cf67[_0x5f2f88('0x7fa')]=_0x5f2f88('0x17fe'));_0x16cf67[_0x5f2f88('0x2bb')]=_0x56726a,_0x16cf67[_0x5f2f88('0xc2e')]=_0x20ac61,_0x16cf67[_0x5f2f88('0x167')]=_0x3c2c8d;_0x16cf67[_0x5f2f88('0xa07')][_0x5f2f88('0xd7f')]&&(_0x2b5765[_0x5f2f88('0x21de')]('admin')?_0x29f851[_0x5f2f88('0xa07')][_0x5f2f88('0x595')]({'fields':'id,name,interval,IntervalId','IntervalId':_0x5f2f88('0x27a'),'nolimit':!![]})['$promise'][_0x5f2f88('0x21ad')](function(_0x2db6b3){var _0x3ae14f=_0x5f2f88;_0x16cf67[_0x3ae14f('0x2530')]=_0x2db6b3[_0x3ae14f('0x1b33')]||[];})[_0x5f2f88('0x1c1d')](function(_0x8e4613){var _0x3c33db=_0x5f2f88;_0xb28c80['error']({'title':_0x8e4613['status']?'API:'+_0x8e4613[_0x3c33db('0x209')]+_0x3c33db('0xa99')+_0x8e4613['statusText']:'SYSTEM:GET_INTERVALS','msg':_0x8e4613[_0x3c33db('0x11c2')]?JSON[_0x3c33db('0x25e')](_0x8e4613[_0x3c33db('0x11c2')]):_0x8e4613[_0x3c33db('0x174f')]()});}):_0x29f851[_0x5f2f88('0xa07')][_0x5f2f88('0x595')]({'fields':'id,name,interval,IntervalId','IntervalId':_0x5f2f88('0x27a'),'nolimit':!![]})[_0x5f2f88('0x1376')]['then'](function(_0x1007f9){var _0x559dc0=_0x5f2f88;_0x16cf67['intervals']=_0x1007f9[_0x559dc0('0x1b33')]||[];})[_0x5f2f88('0x21ad')](function(){var _0x2a9203=_0x5f2f88;return _0x29f851['userProfileSection'][_0x2a9203('0x595')]({'userProfileId':_0x16cf67['currentUser'][_0x2a9203('0x1618')],'sectionId':0x3ec})[_0x2a9203('0x1376')];})[_0x5f2f88('0x21ad')](function(_0x54dbdf){var _0x530674=_0x5f2f88,_0x5814a8=_0x54dbdf&&_0x54dbdf[_0x530674('0x1b33')]?_0x54dbdf[_0x530674('0x1b33')][0x0]:null;if(!_0x5814a8)_0x16cf67[_0x530674('0x2530')]=[];else{if(!_0x5814a8[_0x530674('0x80c')])return _0x29f851[_0x530674('0x185e')][_0x530674('0x595')]({'sectionId':_0x5814a8['id']})['$promise']['then'](function(_0xb2816){var _0xc843a9=_0x530674,_0x831fea=_0xb2816&&_0xb2816[_0xc843a9('0x1b33')]?_0xb2816[_0xc843a9('0x1b33')]:[],_0x32f26e=[],_0x259962=null;_0x16cf67[_0xc843a9('0xa07')]&&(_0x259962=_0x86640f()[_0xc843a9('0x1d2e')](_0x16cf67['intervals'],{'name':_0x16cf67[_0xc843a9('0xa07')][_0xc843a9('0x1ac8')]})),_0x259962&&!_0x86640f()[_0xc843a9('0x2664')](_0x831fea,[_0xc843a9('0x675'),_0x259962['id']])&&_0x16cf67[_0xc843a9('0x2530')][_0xc843a9('0x1a52')](function(_0x3be1b8){var _0x501152=_0xc843a9;_0x3be1b8['id']===_0x259962['id']&&(_0x3be1b8[_0x501152('0xba')]=![],_0x32f26e[_0x501152('0x206c')](_0x3be1b8));}),_0x16cf67[_0xc843a9('0x2530')]=_0x32f26e;});}})['catch'](function(_0x45c338){var _0x45f3a7=_0x5f2f88;_0xb28c80[_0x45f3a7('0x2092')]({'title':_0x45c338[_0x45f3a7('0x209')]?'API:'+_0x45c338['status']+'\x20-\x20'+_0x45c338[_0x45f3a7('0x1808')]:'SYSTEM:GET_INTERVALS','msg':_0x45c338['data']?JSON[_0x45f3a7('0x25e')](_0x45c338[_0x45f3a7('0x11c2')]):_0x45c338[_0x45f3a7('0x174f')]()});}));function _0x1db0da(){var _0x5b9631=_0x5f2f88;switch(_0x16cf67['type']){case _0x5b9631('0x869'):case _0x5b9631('0x17fe'):return _0x5b9631('0x1cc4');case'custom':{var _0x3d6ee2=[];if(_0x16cf67[_0x5b9631('0x3e8')]!=='*'&&_0x16cf67['timeRangeFrom']&&_0x16cf67[_0x5b9631('0x1fbc')]){var _0xb6441c=(_0x16cf67[_0x5b9631('0x3e8')][_0x5b9631('0x10c1')]()<0xa?'0':'')+_0x16cf67[_0x5b9631('0x3e8')][_0x5b9631('0x10c1')]()+':'+((_0x16cf67[_0x5b9631('0x3e8')][_0x5b9631('0x27ee')]()<0xa?'0':'')+_0x16cf67['timeRangeFrom']['getMinutes']()),_0x2f9ab4=(_0x16cf67[_0x5b9631('0x1fbc')]['getHours']()<0xa?'0':'')+_0x16cf67[_0x5b9631('0x1fbc')]['getHours']()+':'+((_0x16cf67[_0x5b9631('0x1fbc')][_0x5b9631('0x27ee')]()<0xa?'0':'')+_0x16cf67['timeRangeTo']['getMinutes']());_0x3d6ee2[_0x5b9631('0x206c')](_0xb6441c+'-'+_0x2f9ab4);}else _0x3d6ee2[_0x5b9631('0x206c')]('*');return _0x16cf67[_0x5b9631('0x21a5')]?_0x16cf67['dayOfWeekTo']?_0x3d6ee2[_0x5b9631('0x206c')](_0x16cf67['dayOfWeekFrom']+'-'+_0x16cf67['dayOfWeekTo']):_0x3d6ee2[_0x5b9631('0x206c')](_0x16cf67[_0x5b9631('0x21a5')]):_0x3d6ee2['push']('*'),_0x16cf67[_0x5b9631('0x14ec')]?_0x16cf67['monthDayTo']?_0x3d6ee2['push'](_0x16cf67[_0x5b9631('0x14ec')]+'-'+_0x16cf67[_0x5b9631('0x3bf')]):_0x3d6ee2[_0x5b9631('0x206c')](_0x16cf67[_0x5b9631('0x14ec')]):_0x3d6ee2[_0x5b9631('0x206c')]('*'),_0x16cf67[_0x5b9631('0xded')]?_0x16cf67[_0x5b9631('0x2633')]?_0x3d6ee2[_0x5b9631('0x206c')](_0x16cf67[_0x5b9631('0xded')]+'-'+_0x16cf67[_0x5b9631('0x2633')]):_0x3d6ee2['push'](_0x16cf67['monthFrom']):_0x3d6ee2['push']('*'),_0x3d6ee2[_0x5b9631('0x136')]();}}}function _0x56726a(){var _0x38a067=_0x5f2f88;_0x16cf67[_0x38a067('0x1a69')]=[],_0x16cf67[_0x38a067('0xa07')][_0x38a067('0xa07')]=_0x1db0da(),_0x29f851[_0x38a067('0xa07')]['save'](_0x16cf67[_0x38a067('0xa07')])[_0x38a067('0x1376')]['then'](function(_0x313156){var _0x2e9d40=_0x38a067;_0x16cf67['intervals'][_0x2e9d40('0x206c')](_0x313156),_0xb28c80[_0x2e9d40('0xdb1')]({'title':_0x2e9d40('0x1ecc'),'msg':_0x16cf67[_0x2e9d40('0xa07')][_0x2e9d40('0x19fe')]?_0x16cf67['interval'][_0x2e9d40('0x19fe')]+'\x20has\x20been\x20created!':''}),_0x3c2c8d();})['catch'](function(_0x246202){var _0x28f2d7=_0x38a067;console[_0x28f2d7('0x2092')](_0x246202),_0x16cf67['errors']=_0x246202[_0x28f2d7('0x11c2')][_0x28f2d7('0x1a69')]||[{'message':_0x246202['toString'](),'type':_0x28f2d7('0x27de')}];});}function _0x20ac61(){var _0x56aeb5=_0x5f2f88;_0x16cf67[_0x56aeb5('0x1a69')]=[],_0x16cf67[_0x56aeb5('0xa07')][_0x56aeb5('0xa07')]=_0x1db0da(),_0x16cf67[_0x56aeb5('0xa07')]['application']?(_0x16cf67[_0x56aeb5('0x7fa')]!==_0x56aeb5('0x17fe')&&(_0x16cf67[_0x56aeb5('0xa07')][_0x56aeb5('0x1ac8')]=null),_0x3c2c8d(_0x16cf67['interval'])):_0x29f851[_0x56aeb5('0xa07')][_0x56aeb5('0x5ef')]({'id':_0x16cf67['interval']['id']},_0x16cf67[_0x56aeb5('0xa07')])['$promise'][_0x56aeb5('0x21ad')](function(_0xb1204c){var _0x59244b=_0x56aeb5,_0x3e757f=_0x86640f()[_0x59244b('0x1d2e')](_0x16cf67[_0x59244b('0x2530')],{'id':_0xb1204c['id']});_0x3e757f&&_0x86640f()[_0x59244b('0xd0e')](_0x3e757f,_0xb1204c),_0xb28c80[_0x59244b('0xdb1')]({'title':_0x59244b('0x234'),'msg':_0x59244b('0x285a')}),_0x3c2c8d();})['catch'](function(_0x4f3d8f){var _0x83f545=_0x56aeb5;console['error'](_0x4f3d8f),_0x16cf67[_0x83f545('0x1a69')]=_0x4f3d8f[_0x83f545('0x11c2')]['errors']||[{'message':_0x4f3d8f[_0x83f545('0x174f')](),'type':_0x83f545('0x13fa')}];});}function _0x3c2c8d(_0x6cb1ed){_0x2fca86['hide'](_0x6cb1ed);}}const _0x17758a=_0x3f6b40;_0x44b688[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x5f2'),_0x3877e3('0xe3c'),_0x3877e3('0xccd'),'Auth',_0x3877e3('0x5ed')];function _0x44b688(_0x472d0a,_0x49b207,_0x377bcd,_0x345bf8,_0x556a59,_0x21bca1,_0x509954,_0x2f9c0b){var _0xc39ca7=_0x3877e3,_0x3bf531=this;_0x3bf531[_0xc39ca7('0x123f')]=_0x509954[_0xc39ca7('0x15ed')](),_0x3bf531[_0xc39ca7('0x1a69')]=[],_0x3bf531[_0xc39ca7('0x4b4')]=_0xc39ca7('0xdd2')+(_0x345bf8[_0xc39ca7('0x522')]||_0x345bf8['app'])[_0xc39ca7('0x2e8')](),_0x3bf531[_0xc39ca7('0x2101')]=angular[_0xc39ca7('0xd75')](_0x345bf8),_0x3bf531[_0xc39ca7('0x5ed')]=_0x2f9c0b,_0x3bf531[_0xc39ca7('0x126a')]={};if(_0x3bf531[_0xc39ca7('0x2101')]['appdata'])switch(_0x3bf531[_0xc39ca7('0x2101')][_0xc39ca7('0x522')]?_0x3bf531[_0xc39ca7('0x2101')][_0xc39ca7('0x522')][_0xc39ca7('0xac2')]():_0x3bf531[_0xc39ca7('0x2101')][_0xc39ca7('0x1f94')][_0xc39ca7('0xac2')]()){case _0xc39ca7('0xf50'):break;case _0xc39ca7('0xc72'):{var _0x5cd97d=_0x3bf531[_0xc39ca7('0x2101')][_0xc39ca7('0x23c2')][_0xc39ca7('0x1af5')](',');_0x3bf531[_0xc39ca7('0x2101')]['key']=_0x5cd97d[0x0],_0x3bf531[_0xc39ca7('0x2101')][_0xc39ca7('0x10f')]=_0x5cd97d[0x1],_0x3bf531[_0xc39ca7('0x2101')]['welcomemessage']=_0x5cd97d[_0xc39ca7('0xb3d')](0x2,_0x5cd97d[_0xc39ca7('0x577')])['join'](',');}break;case'amazonlex':{var _0x52687=_0x3bf531[_0xc39ca7('0x2101')][_0xc39ca7('0x23c2')][_0xc39ca7('0x1af5')](',');_0x3bf531[_0xc39ca7('0x2101')][_0xc39ca7('0x21c6')]=_0x52687[0x0],_0x3bf531[_0xc39ca7('0x2101')]['secretaccesskey']=_0x52687[0x1],_0x3bf531[_0xc39ca7('0x2101')]['lexregion']=_0x52687[0x2],_0x3bf531[_0xc39ca7('0x2101')][_0xc39ca7('0x15fe')]=_0x52687[0x3],_0x3bf531[_0xc39ca7('0x2101')]['welcomemessage']=_0x52687[_0xc39ca7('0xb3d')](0x4,_0x52687[_0xc39ca7('0x577')])[_0xc39ca7('0x136')](',');}break;case _0xc39ca7('0x1b98'):{var _0x332732=_0x3bf531[_0xc39ca7('0x2101')][_0xc39ca7('0x23c2')][_0xc39ca7('0x1af5')](',');_0x3bf531[_0xc39ca7('0x2101')]['times']=isNaN(_0x332732[0x0])?_0x332732[0x0]:parseInt(_0x332732[0x0],0xa),_0x3bf531[_0xc39ca7('0x2101')][_0xc39ca7('0xc1e')]=_0x332732[_0xc39ca7('0xb3d')](0x1,_0x332732[_0xc39ca7('0x577')])[_0xc39ca7('0x136')](',');}break;case'message':_0x3bf531[_0xc39ca7('0x2101')][_0xc39ca7('0xc1e')]=_0x3bf531[_0xc39ca7('0x2101')]['appdata'];break;case _0xc39ca7('0x1125'):_0x3bf531['noop'][_0xc39ca7('0x19fe')]=_0x3bf531['noop'][_0xc39ca7('0x23c2')]['split']('=')[0x0],_0x3bf531[_0xc39ca7('0x2101')][_0xc39ca7('0x2228')]=_0x3bf531[_0xc39ca7('0x2101')]['appdata'][_0xc39ca7('0x1af5')]('=')[0x1];break;case _0xc39ca7('0x2356'):_0x3bf531[_0xc39ca7('0x2101')]['project']=_0x3bf531[_0xc39ca7('0x2101')]['appdata'];break;default:{var _0x59f7bd=_0x3bf531['noop'][_0xc39ca7('0x23c2')][_0xc39ca7('0x1af5')](',');_0x3bf531[_0xc39ca7('0x2101')]['value']=_0x86640f()[_0xc39ca7('0x23aa')](_0x59f7bd[0x0])?_0x59f7bd[0x0]:isNaN(_0x59f7bd[0x0])?_0x59f7bd[0x0]:parseInt(_0x59f7bd[0x0],0xa);}break;}else{}_0x3bf531[_0xc39ca7('0x2101')]['type']&&_0x3bf531[_0xc39ca7('0x2101')][_0xc39ca7('0x7fa')]['toLowerCase']()===_0xc39ca7('0x2300')&&_0x3bf531[_0xc39ca7('0x2101')][_0xc39ca7('0x522')][_0xc39ca7('0xac2')]()===_0xc39ca7('0x2363')&&(_0x3bf531[_0xc39ca7('0x2101')][_0xc39ca7('0x1995')]=_0x3bf531[_0xc39ca7('0x2101')][_0xc39ca7('0x159e')]?_0x3bf531['noop'][_0xc39ca7('0x159e')][_0xc39ca7('0x1af5')]('$')[0x0]:undefined,_0x3bf531[_0xc39ca7('0x2101')][_0xc39ca7('0x26f7')]=_0x3bf531['noop'][_0xc39ca7('0x1f5a')]?_0xc39ca7('0x587')+_0x3bf531[_0xc39ca7('0x2101')][_0xc39ca7('0x1f5a')]:undefined);_0x3bf531[_0xc39ca7('0x53d')]=_0x258c79,_0x3bf531[_0xc39ca7('0x167')]=_0x204d42;function _0x258c79(){var _0x47ff51=_0xc39ca7;_0x3bf531['errors']=[];var _0x190fe4=[];_0x3bf531['noop'][_0x47ff51('0x7fa')]&&_0x3bf531['noop']['type'][_0x47ff51('0xac2')]()==='outbound'&&_0x3bf531[_0x47ff51('0x2101')]['appType']===_0x47ff51('0x4ea')&&(_0x3bf531[_0x47ff51('0x2101')]['phone']=_0x556a59[_0x47ff51('0x988')]?(_0x3bf531['noop']['prefix']||'')+_0x47ff51('0x349')+_0x556a59[_0x47ff51('0x988')]+'}':(_0x3bf531[_0x47ff51('0x2101')][_0x47ff51('0x1995')]||'')+'${EXTEN}',_0x556a59[_0x47ff51('0xad1')]!==_0x47ff51('0x983')?_0x3bf531[_0x47ff51('0x2101')][_0x47ff51('0x26a0')][_0x47ff51('0x2004')](_0x47ff51('0x478'))<0x0&&(_0x3bf531[_0x47ff51('0x2101')][_0x47ff51('0x26a0')]+=_0x47ff51('0x478')):_0x3bf531[_0x47ff51('0x2101')][_0x47ff51('0x26a0')]=_0x3bf531['noop'][_0x47ff51('0x26a0')][_0x47ff51('0x16e4')]('U(xcally-mixmonitor-context)',''));if(_0x3bf531['noop'][_0x47ff51('0x522')]&&_0x3bf531[_0x47ff51('0x2101')]['appType']===_0x47ff51('0xf50')){}else switch((_0x3bf531[_0x47ff51('0x2101')][_0x47ff51('0x1f94')]||_0x3bf531[_0x47ff51('0x2101')][_0x47ff51('0x522')])[_0x47ff51('0xac2')]()){case'set':_0x3bf531[_0x47ff51('0x2101')][_0x47ff51('0x23c2')]=_0x3bf531[_0x47ff51('0x2101')][_0x47ff51('0x19fe')]+'='+_0x3bf531[_0x47ff51('0x2101')][_0x47ff51('0x2228')];break;case _0x47ff51('0xf50'):break;default:_0x190fe4[0x0]=_0x3bf531[_0x47ff51('0x2101')][_0x47ff51('0x2228')],_0x3bf531[_0x47ff51('0x2101')]['appdata']=_0x190fe4[_0x47ff51('0x136')](',');}_0x204d42(_0x3bf531[_0x47ff51('0x2101')]);}function _0x204d42(_0x33da6f){var _0x12d9d4=_0xc39ca7;_0x472d0a[_0x12d9d4('0x1c24')](_0x33da6f);}}const _0xf3e12=_0x44b688;_0x3e1e1c['$inject']=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x5f2'),_0x3877e3('0xe3c'),_0x3877e3('0xccd'),'Auth','crudPermissions'];function _0x3e1e1c(_0x598472,_0x4c6ca7,_0x4e3b9e,_0x5abc24,_0x33b11c,_0x49d0f8,_0x3e8f8a,_0x539d27){var _0x221d9f=_0x3877e3,_0x2922ea=this;_0x2922ea[_0x221d9f('0x123f')]=_0x3e8f8a[_0x221d9f('0x15ed')](),_0x2922ea[_0x221d9f('0x1a69')]=[],_0x2922ea['title']='CHAT.EDIT_'+(_0x5abc24[_0x221d9f('0x522')]||_0x5abc24[_0x221d9f('0x1f94')])[_0x221d9f('0x2e8')](),_0x2922ea[_0x221d9f('0xbdd')]=angular['copy'](_0x5abc24),_0x2922ea[_0x221d9f('0x5ed')]=_0x539d27,_0x2922ea[_0x221d9f('0x126a')]={};if(_0x2922ea[_0x221d9f('0xbdd')]['appdata'])switch(_0x2922ea[_0x221d9f('0xbdd')][_0x221d9f('0x522')]?_0x2922ea['queue'][_0x221d9f('0x522')][_0x221d9f('0xac2')]():_0x2922ea['queue']['app'][_0x221d9f('0xac2')]()){case _0x221d9f('0xf50'):break;case'dialogflow':{var _0x3bb0ca=_0x2922ea[_0x221d9f('0xbdd')][_0x221d9f('0x23c2')]['split'](',');_0x2922ea['queue']['key']=_0x3bb0ca[0x0],_0x2922ea['queue'][_0x221d9f('0x10f')]=_0x3bb0ca[0x1],_0x2922ea['queue']['welcomemessage']=_0x3bb0ca[_0x221d9f('0xb3d')](0x2,_0x3bb0ca[_0x221d9f('0x577')])[_0x221d9f('0x136')](',');}break;case _0x221d9f('0x1c22'):{var _0x3d944a=_0x2922ea['queue'][_0x221d9f('0x23c2')][_0x221d9f('0x1af5')](',');_0x2922ea[_0x221d9f('0xbdd')][_0x221d9f('0x21c6')]=_0x3d944a[0x0],_0x2922ea[_0x221d9f('0xbdd')][_0x221d9f('0x797')]=_0x3d944a[0x1],_0x2922ea[_0x221d9f('0xbdd')][_0x221d9f('0x20a3')]=_0x3d944a[0x2],_0x2922ea[_0x221d9f('0xbdd')][_0x221d9f('0x15fe')]=_0x3d944a[0x3],_0x2922ea[_0x221d9f('0xbdd')][_0x221d9f('0x1cce')]=_0x3d944a[_0x221d9f('0xb3d')](0x4,_0x3d944a['length'])['join'](',');}break;case _0x221d9f('0x1b98'):{var _0x2fc3f8=_0x2922ea['queue'][_0x221d9f('0x23c2')]['split'](',');_0x2922ea[_0x221d9f('0xbdd')]['times']=isNaN(_0x2fc3f8[0x0])?_0x2fc3f8[0x0]:parseInt(_0x2fc3f8[0x0],0xa),_0x2922ea[_0x221d9f('0xbdd')][_0x221d9f('0xc1e')]=_0x2fc3f8[_0x221d9f('0xb3d')](0x1,_0x2fc3f8[_0x221d9f('0x577')])[_0x221d9f('0x136')](',');}break;case'message':_0x2922ea[_0x221d9f('0xbdd')][_0x221d9f('0xc1e')]=_0x2922ea['queue'][_0x221d9f('0x23c2')];break;case _0x221d9f('0x1125'):_0x2922ea[_0x221d9f('0xbdd')][_0x221d9f('0x19fe')]=_0x2922ea[_0x221d9f('0xbdd')][_0x221d9f('0x23c2')][_0x221d9f('0x1af5')]('=')[0x0],_0x2922ea[_0x221d9f('0xbdd')]['value']=_0x2922ea[_0x221d9f('0xbdd')][_0x221d9f('0x23c2')][_0x221d9f('0x1af5')]('=')[0x1];break;case _0x221d9f('0x2356'):_0x2922ea['queue'][_0x221d9f('0xbf8')]=_0x2922ea[_0x221d9f('0xbdd')][_0x221d9f('0x23c2')];break;default:{var _0x11b9e0=_0x2922ea[_0x221d9f('0xbdd')][_0x221d9f('0x23c2')]['split'](',');_0x2922ea['queue'][_0x221d9f('0xbdd')]=_0x86640f()[_0x221d9f('0x23aa')](_0x11b9e0[0x0])?_0x11b9e0[0x0]:isNaN(_0x11b9e0[0x0])?_0x11b9e0[0x0]:parseInt(_0x11b9e0[0x0],0xa),_0x2922ea['queue'][_0x221d9f('0x2133')]=_0x86640f()[_0x221d9f('0x23aa')](_0x11b9e0[0x1])?_0x11b9e0[0x1]:isNaN(_0x11b9e0[0x1])?_0x11b9e0[0x1]:parseInt(_0x11b9e0[0x1],0xa);}break;}else _0x2922ea[_0x221d9f('0xbdd')]['queue']=0x12c,_0x2922ea[_0x221d9f('0xbdd')]['timeout']=0x12c;_0x2922ea['queue'][_0x221d9f('0x7fa')]&&_0x2922ea[_0x221d9f('0xbdd')][_0x221d9f('0x7fa')]['toLowerCase']()===_0x221d9f('0x2300')&&_0x2922ea[_0x221d9f('0xbdd')][_0x221d9f('0x522')][_0x221d9f('0xac2')]()==='outbounddial'&&(_0x2922ea[_0x221d9f('0xbdd')][_0x221d9f('0x1995')]=_0x2922ea[_0x221d9f('0xbdd')][_0x221d9f('0x159e')]?_0x2922ea[_0x221d9f('0xbdd')][_0x221d9f('0x159e')][_0x221d9f('0x1af5')]('$')[0x0]:undefined,_0x2922ea['queue'][_0x221d9f('0x26f7')]=_0x2922ea['queue'][_0x221d9f('0x1f5a')]?_0x221d9f('0x587')+_0x2922ea[_0x221d9f('0xbdd')]['callerID']:undefined);_0x2922ea[_0x221d9f('0x53d')]=_0x270e2b,_0x2922ea[_0x221d9f('0x167')]=_0xfe52ed,_0x3e8f8a['hasRole']('admin')?_0x49d0f8[_0x221d9f('0x6b5')][_0x221d9f('0x595')]({'fields':'id,name,type','sort':'name','nolimit':'true'})[_0x221d9f('0x1376')]['then'](function(_0x25031a){var _0x2fdc70=_0x221d9f;_0x2922ea[_0x2fdc70('0xb7a')]=_0x25031a['rows']||[];})[_0x221d9f('0x1c1d')](function(_0x39a1a7){var _0x20f782=_0x221d9f;_0x4e3b9e[_0x20f782('0x2092')]({'title':_0x39a1a7['status']?'API:'+_0x39a1a7['status']+_0x20f782('0xa99')+_0x39a1a7[_0x20f782('0x1808')]:_0x20f782('0x1612'),'msg':_0x39a1a7[_0x20f782('0x11c2')]?JSON[_0x20f782('0x25e')](_0x39a1a7[_0x20f782('0x11c2')]):_0x39a1a7[_0x20f782('0x174f')]()});}):_0x49d0f8[_0x221d9f('0x6b5')][_0x221d9f('0x595')]({'fields':_0x221d9f('0xfa'),'sort':_0x221d9f('0x19fe'),'nolimit':'true'})['$promise'][_0x221d9f('0x21ad')](function(_0xeacaee){var _0x1aea3a=_0x221d9f;_0x2922ea[_0x1aea3a('0xb7a')]=_0xeacaee[_0x1aea3a('0x1b33')]||[];})[_0x221d9f('0x21ad')](function(){var _0x5a2527=_0x221d9f;return _0x49d0f8[_0x5a2527('0xab4')][_0x5a2527('0x595')]({'userProfileId':_0x2922ea[_0x5a2527('0x123f')][_0x5a2527('0x1618')],'sectionId':0x1f5})[_0x5a2527('0x1376')];})[_0x221d9f('0x21ad')](function(_0x53fdd4){var _0x575107=_0x221d9f,_0x2c2eca=_0x53fdd4&&_0x53fdd4[_0x575107('0x1b33')]?_0x53fdd4[_0x575107('0x1b33')][0x0]:null;if(!_0x2c2eca){var _0x11c8a9=[],_0x3f95ec=null;_0x2922ea[_0x575107('0xbdd')]&&(_0x3f95ec=_0x86640f()[_0x575107('0x1d2e')](_0x2922ea[_0x575107('0xb7a')],{'name':_0x2922ea['queue']['queue']}));for(var _0x3addf7=0x0;_0x3addf7<_0x2922ea[_0x575107('0xb7a')][_0x575107('0x577')];_0x3addf7++){_0x3f95ec&&_0x2922ea[_0x575107('0xb7a')][_0x3addf7]['id']===_0x3f95ec['id']&&(_0x2922ea['queues'][_0x3addf7][_0x575107('0xba')]=![],_0x11c8a9[_0x575107('0x206c')](_0x2922ea[_0x575107('0xb7a')][_0x3addf7]));}_0x2922ea[_0x575107('0xb7a')]=_0x11c8a9;}else{if(!_0x2c2eca[_0x575107('0x80c')])return _0x49d0f8[_0x575107('0x185e')][_0x575107('0x595')]({'sectionId':_0x2c2eca['id']})['$promise'][_0x575107('0x21ad')](function(_0x120bdc){var _0x4bc6ad=_0x575107,_0x39cc86=_0x86640f()[_0x4bc6ad('0x26c3')](_0x120bdc[_0x4bc6ad('0x1b33')],function(_0x49018e){var _0x5423eb=_0x4bc6ad;return _0x86640f()['find'](_0x2922ea[_0x5423eb('0xb7a')],{'id':_0x49018e['resourceId']});}),_0x32fd9a=null;_0x2922ea[_0x4bc6ad('0xbdd')]&&(_0x32fd9a=_0x86640f()[_0x4bc6ad('0x1d2e')](_0x2922ea['queues'],{'name':_0x2922ea[_0x4bc6ad('0xbdd')][_0x4bc6ad('0xbdd')]}));if(_0x32fd9a&&!_0x86640f()[_0x4bc6ad('0x2664')](_0x39cc86,['id',_0x32fd9a['id']])){var _0x596006=_0x86640f()[_0x4bc6ad('0x1d2e')](_0x2922ea[_0x4bc6ad('0xb7a')],{'id':_0x32fd9a['id']});_0x596006[_0x4bc6ad('0xba')]=![],_0x39cc86[_0x4bc6ad('0x206c')](_0x596006);}_0x2922ea['queues']=_0x39cc86;});}})[_0x221d9f('0x1c1d')](function(_0x593e5b){var _0xfb3bef=_0x221d9f;_0x4e3b9e[_0xfb3bef('0x2092')]({'title':_0x593e5b[_0xfb3bef('0x209')]?_0xfb3bef('0x22d')+_0x593e5b['status']+_0xfb3bef('0xa99')+_0x593e5b['statusText']:_0xfb3bef('0x1b46'),'msg':_0x593e5b[_0xfb3bef('0x11c2')]?JSON['stringify'](_0x593e5b[_0xfb3bef('0x11c2')]):_0x593e5b[_0xfb3bef('0x174f')]()});});function _0x270e2b(){var _0x5e5925=_0x221d9f;_0x2922ea['errors']=[];var _0x458ce1=[];_0x2922ea[_0x5e5925('0xbdd')]['type']&&_0x2922ea[_0x5e5925('0xbdd')][_0x5e5925('0x7fa')][_0x5e5925('0xac2')]()===_0x5e5925('0x2300')&&_0x2922ea[_0x5e5925('0xbdd')]['appType']==='outboundDial'&&(_0x2922ea[_0x5e5925('0xbdd')][_0x5e5925('0x159e')]=_0x33b11c[_0x5e5925('0x988')]?(_0x2922ea[_0x5e5925('0xbdd')][_0x5e5925('0x1995')]||'')+_0x5e5925('0x349')+_0x33b11c[_0x5e5925('0x988')]+'}':(_0x2922ea[_0x5e5925('0xbdd')][_0x5e5925('0x1995')]||'')+_0x5e5925('0x2560'),_0x33b11c[_0x5e5925('0xad1')]!==_0x5e5925('0x983')?_0x2922ea[_0x5e5925('0xbdd')][_0x5e5925('0x26a0')][_0x5e5925('0x2004')](_0x5e5925('0x478'))<0x0&&(_0x2922ea[_0x5e5925('0xbdd')][_0x5e5925('0x26a0')]+=_0x5e5925('0x478')):_0x2922ea[_0x5e5925('0xbdd')][_0x5e5925('0x26a0')]=_0x2922ea['queue'][_0x5e5925('0x26a0')]['replace']('U(xcally-mixmonitor-context)',''));var _0x2716d5=_0x86640f()[_0x5e5925('0x1d2e')](_0x2922ea[_0x5e5925('0xb7a')],{'name':_0x2922ea[_0x5e5925('0xbdd')]['queue']});_0x2716d5&&(_0x2922ea[_0x5e5925('0xbdd')][_0x86640f()[_0x5e5925('0x1b7e')](_0x5e5925('0x1f65'))+_0x5e5925('0x25ba')]=_0x2716d5['id']);if(_0x2922ea[_0x5e5925('0xbdd')][_0x5e5925('0x522')]&&_0x2922ea[_0x5e5925('0xbdd')][_0x5e5925('0x522')]==='custom'){}else switch((_0x2922ea[_0x5e5925('0xbdd')][_0x5e5925('0x1f94')]||_0x2922ea[_0x5e5925('0xbdd')]['appType'])[_0x5e5925('0xac2')]()){case'set':_0x2922ea[_0x5e5925('0xbdd')][_0x5e5925('0x23c2')]=_0x2922ea[_0x5e5925('0xbdd')][_0x5e5925('0x19fe')]+'='+_0x2922ea[_0x5e5925('0xbdd')][_0x5e5925('0x2228')];break;case'custom':break;default:_0x458ce1[0x0]=_0x2922ea[_0x5e5925('0xbdd')][_0x5e5925('0xbdd')],_0x458ce1[0x1]=_0x2922ea[_0x5e5925('0xbdd')][_0x5e5925('0x2133')],_0x2922ea[_0x5e5925('0xbdd')][_0x5e5925('0x23c2')]=_0x458ce1[_0x5e5925('0x136')](',');}_0xfe52ed(_0x2922ea['queue']);}function _0xfe52ed(_0x52117d){var _0x761043=_0x221d9f;_0x598472[_0x761043('0x1c24')](_0x52117d);}}const _0x37045c=_0x3e1e1c;_0xc355e8[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x5f2'),'chatWebsite',_0x3877e3('0xccd'),'Auth',_0x3877e3('0x5ed')];function _0xc355e8(_0x1d41c1,_0x3000d7,_0x250898,_0x1cdbdd,_0x2517e9,_0x52ef1b,_0x2c2f99,_0x2150d2){var _0x136404=_0x3877e3,_0x5768bc=this;_0x5768bc[_0x136404('0x123f')]=_0x2c2f99[_0x136404('0x15ed')](),_0x5768bc[_0x136404('0x1a69')]=[],_0x5768bc[_0x136404('0x4b4')]=_0x136404('0xdd2')+(_0x1cdbdd[_0x136404('0x522')]||_0x1cdbdd[_0x136404('0x1f94')])[_0x136404('0x2e8')](),_0x5768bc['system']=angular[_0x136404('0xd75')](_0x1cdbdd),_0x5768bc[_0x136404('0x5ed')]=_0x2150d2,_0x5768bc[_0x136404('0x126a')]={};if(_0x5768bc[_0x136404('0x12b1')][_0x136404('0x23c2')])switch(_0x5768bc[_0x136404('0x12b1')]['appType']?_0x5768bc[_0x136404('0x12b1')][_0x136404('0x522')]['toLowerCase']():_0x5768bc[_0x136404('0x12b1')][_0x136404('0x1f94')][_0x136404('0xac2')]()){case _0x136404('0xf50'):break;case _0x136404('0xc72'):{var _0x9f41=_0x5768bc[_0x136404('0x12b1')]['appdata'][_0x136404('0x1af5')](',');_0x5768bc[_0x136404('0x12b1')][_0x136404('0xddb')]=_0x9f41[0x0],_0x5768bc[_0x136404('0x12b1')]['language']=_0x9f41[0x1],_0x5768bc[_0x136404('0x12b1')][_0x136404('0x1cce')]=_0x9f41[_0x136404('0xb3d')](0x2,_0x9f41[_0x136404('0x577')])[_0x136404('0x136')](',');}break;case _0x136404('0x1c22'):{var _0x1cbda9=_0x5768bc[_0x136404('0x12b1')][_0x136404('0x23c2')][_0x136404('0x1af5')](',');_0x5768bc[_0x136404('0x12b1')]['accesskeyid']=_0x1cbda9[0x0],_0x5768bc['system'][_0x136404('0x797')]=_0x1cbda9[0x1],_0x5768bc[_0x136404('0x12b1')][_0x136404('0x20a3')]=_0x1cbda9[0x2],_0x5768bc[_0x136404('0x12b1')][_0x136404('0x15fe')]=_0x1cbda9[0x3],_0x5768bc['system']['welcomemessage']=_0x1cbda9[_0x136404('0xb3d')](0x4,_0x1cbda9[_0x136404('0x577')])['join'](',');}break;case _0x136404('0x1b98'):{var _0x2cf4bc=_0x5768bc[_0x136404('0x12b1')][_0x136404('0x23c2')]['split'](',');_0x5768bc['system'][_0x136404('0x13b6')]=isNaN(_0x2cf4bc[0x0])?_0x2cf4bc[0x0]:parseInt(_0x2cf4bc[0x0],0xa),_0x5768bc[_0x136404('0x12b1')][_0x136404('0xc1e')]=_0x2cf4bc['slice'](0x1,_0x2cf4bc[_0x136404('0x577')])[_0x136404('0x136')](',');}break;case _0x136404('0x1224'):_0x5768bc[_0x136404('0x12b1')][_0x136404('0xc1e')]=_0x5768bc[_0x136404('0x12b1')]['appdata'];break;case _0x136404('0x1125'):_0x5768bc[_0x136404('0x12b1')]['name']=_0x5768bc[_0x136404('0x12b1')]['appdata'][_0x136404('0x1af5')]('=')[0x0],_0x5768bc[_0x136404('0x12b1')][_0x136404('0x2228')]=_0x5768bc['system'][_0x136404('0x23c2')][_0x136404('0x1af5')]('=')[0x1];break;case'agi':_0x5768bc[_0x136404('0x12b1')]['project']=_0x5768bc[_0x136404('0x12b1')][_0x136404('0x23c2')];break;default:{var _0x569fcd=_0x5768bc['system'][_0x136404('0x23c2')]['split'](',');_0x5768bc[_0x136404('0x12b1')][_0x136404('0xbf3')]=_0x86640f()['isEmpty'](_0x569fcd[0x0])?_0x569fcd[0x0]:isNaN(_0x569fcd[0x0])?_0x569fcd[0x0]:parseInt(_0x569fcd[0x0],0xa),_0x5768bc[_0x136404('0x12b1')][_0x136404('0x25bb')]=_0x86640f()[_0x136404('0x23aa')](_0x569fcd[0x1])?_0x569fcd[0x1]:isNaN(_0x569fcd[0x1])?_0x569fcd[0x1]:parseInt(_0x569fcd[0x1],0xa);}break;}else _0x5768bc[_0x136404('0x12b1')][_0x136404('0x25bb')]='';_0x5768bc[_0x136404('0x12b1')][_0x136404('0x7fa')]&&_0x5768bc[_0x136404('0x12b1')][_0x136404('0x7fa')][_0x136404('0xac2')]()===_0x136404('0x2300')&&_0x5768bc['system'][_0x136404('0x522')]['toLowerCase']()===_0x136404('0x2363')&&(_0x5768bc['system']['prefix']=_0x5768bc['system'][_0x136404('0x159e')]?_0x5768bc[_0x136404('0x12b1')][_0x136404('0x159e')][_0x136404('0x1af5')]('$')[0x0]:undefined,_0x5768bc[_0x136404('0x12b1')][_0x136404('0x26f7')]=_0x5768bc['system'][_0x136404('0x1f5a')]?_0x136404('0x587')+_0x5768bc[_0x136404('0x12b1')][_0x136404('0x1f5a')]:undefined);_0x5768bc[_0x136404('0x53d')]=_0x3bf99b,_0x5768bc[_0x136404('0x167')]=_0x39320a,_0x2c2f99[_0x136404('0x21de')](_0x136404('0x1bd8'))?_0x52ef1b['variable'][_0x136404('0x595')]({'fields':_0x136404('0x1aa8'),'sort':'name','nolimit':'true'})[_0x136404('0x1376')][_0x136404('0x21ad')](function(_0x33fb14){var _0x2cfa93=_0x136404;_0x5768bc[_0x2cfa93('0x142d')]=_0x33fb14[_0x2cfa93('0x1b33')]||[];})[_0x136404('0x1c1d')](function(_0x35db12){var _0x40fc70=_0x136404;_0x250898[_0x40fc70('0x2092')]({'title':_0x35db12[_0x40fc70('0x209')]?_0x40fc70('0x22d')+_0x35db12[_0x40fc70('0x209')]+'\x20-\x20'+_0x35db12[_0x40fc70('0x1808')]:_0x40fc70('0xc0c'),'msg':_0x35db12[_0x40fc70('0x11c2')]?JSON[_0x40fc70('0x25e')](_0x35db12[_0x40fc70('0x11c2')]):_0x35db12[_0x40fc70('0x174f')]()});}):_0x52ef1b[_0x136404('0x25bb')][_0x136404('0x595')]({'fields':_0x136404('0x1aa8'),'sort':'name','nolimit':_0x136404('0x19bd')})[_0x136404('0x1376')][_0x136404('0x21ad')](function(_0x2bd3e5){var _0x461ca8=_0x136404;_0x5768bc[_0x461ca8('0x142d')]=_0x2bd3e5[_0x461ca8('0x1b33')]||[];})[_0x136404('0x21ad')](function(){var _0x3f1416=_0x136404;return _0x52ef1b[_0x3f1416('0xab4')][_0x3f1416('0x595')]({'userProfileId':_0x5768bc[_0x3f1416('0x123f')]['userProfileId'],'sectionId':0x3f4})[_0x3f1416('0x1376')];})[_0x136404('0x21ad')](function(_0x4f735){var _0x4b5dac=_0x136404,_0x4fe2b1=_0x4f735&&_0x4f735[_0x4b5dac('0x1b33')]?_0x4f735['rows'][0x0]:null;if(!_0x4fe2b1){var _0x45e55b=[],_0x4e7b06=null;_0x5768bc[_0x4b5dac('0x12b1')]&&(_0x4e7b06=_0x86640f()[_0x4b5dac('0x1d2e')](_0x5768bc[_0x4b5dac('0x142d')],{'name':_0x5768bc[_0x4b5dac('0x12b1')][_0x4b5dac('0x25bb')]}));for(var _0x6aca6e=0x0;_0x6aca6e<_0x5768bc['variables'][_0x4b5dac('0x577')];_0x6aca6e++){_0x4e7b06&&_0x5768bc[_0x4b5dac('0x142d')][_0x6aca6e]['id']===_0x4e7b06['id']&&(_0x5768bc[_0x4b5dac('0x142d')][_0x6aca6e][_0x4b5dac('0xba')]=![],_0x45e55b[_0x4b5dac('0x206c')](_0x5768bc['variables'][_0x6aca6e]));}_0x5768bc[_0x4b5dac('0x142d')]=_0x45e55b;}else{if(!_0x4fe2b1['autoAssociation'])return _0x52ef1b[_0x4b5dac('0x185e')][_0x4b5dac('0x595')]({'sectionId':_0x4fe2b1['id']})[_0x4b5dac('0x1376')][_0x4b5dac('0x21ad')](function(_0x249186){var _0x3e56cf=_0x4b5dac,_0x2e7fe0=_0x86640f()[_0x3e56cf('0x26c3')](_0x249186[_0x3e56cf('0x1b33')],function(_0x17d8c3){var _0x1b96b8=_0x3e56cf;return _0x86640f()['find'](_0x5768bc[_0x1b96b8('0x142d')],{'id':_0x17d8c3[_0x1b96b8('0x675')]});}),_0x134d2a=null;_0x5768bc[_0x3e56cf('0x12b1')]&&(_0x134d2a=_0x86640f()['find'](_0x5768bc[_0x3e56cf('0x142d')],{'name':_0x5768bc[_0x3e56cf('0x12b1')][_0x3e56cf('0x25bb')]}));if(_0x134d2a&&!_0x86640f()['some'](_0x2e7fe0,['id',_0x134d2a['id']])){var _0x105f83=_0x86640f()[_0x3e56cf('0x1d2e')](_0x5768bc[_0x3e56cf('0x142d')],{'id':_0x134d2a['id']});_0x105f83['canSelect']=![],_0x2e7fe0[_0x3e56cf('0x206c')](_0x105f83);}_0x5768bc[_0x3e56cf('0x142d')]=_0x2e7fe0;});}})['catch'](function(_0x143080){var _0x2a2e4b=_0x136404;_0x250898['error']({'title':_0x143080[_0x2a2e4b('0x209')]?'API:'+_0x143080[_0x2a2e4b('0x209')]+_0x2a2e4b('0xa99')+_0x143080[_0x2a2e4b('0x1808')]:_0x2a2e4b('0x1a26'),'msg':_0x143080[_0x2a2e4b('0x11c2')]?JSON[_0x2a2e4b('0x25e')](_0x143080[_0x2a2e4b('0x11c2')]):_0x143080[_0x2a2e4b('0x174f')]()});});function _0x3bf99b(){var _0x54305f=_0x136404;_0x5768bc[_0x54305f('0x1a69')]=[];var _0x389d56=[];_0x5768bc[_0x54305f('0x12b1')][_0x54305f('0x7fa')]&&_0x5768bc['system'][_0x54305f('0x7fa')]['toLowerCase']()===_0x54305f('0x2300')&&_0x5768bc[_0x54305f('0x12b1')][_0x54305f('0x522')]===_0x54305f('0x4ea')&&(_0x5768bc[_0x54305f('0x12b1')]['phone']=_0x2517e9[_0x54305f('0x988')]?(_0x5768bc['system'][_0x54305f('0x1995')]||'')+_0x54305f('0x349')+_0x2517e9['cutdigits']+'}':(_0x5768bc[_0x54305f('0x12b1')][_0x54305f('0x1995')]||'')+_0x54305f('0x2560'),_0x2517e9[_0x54305f('0xad1')]!==_0x54305f('0x983')?_0x5768bc[_0x54305f('0x12b1')][_0x54305f('0x26a0')][_0x54305f('0x2004')](_0x54305f('0x478'))<0x0&&(_0x5768bc['system'][_0x54305f('0x26a0')]+='U(xcally-mixmonitor-context)'):_0x5768bc[_0x54305f('0x12b1')]['options']=_0x5768bc[_0x54305f('0x12b1')][_0x54305f('0x26a0')][_0x54305f('0x16e4')](_0x54305f('0x478'),''));if(_0x5768bc[_0x54305f('0x12b1')]['appType']&&_0x5768bc[_0x54305f('0x12b1')][_0x54305f('0x522')]==='custom'){}else switch((_0x5768bc[_0x54305f('0x12b1')]['app']||_0x5768bc[_0x54305f('0x12b1')]['appType'])[_0x54305f('0xac2')]()){case _0x54305f('0x1125'):_0x5768bc[_0x54305f('0x12b1')][_0x54305f('0x23c2')]=_0x5768bc['system'][_0x54305f('0x19fe')]+'='+_0x5768bc[_0x54305f('0x12b1')][_0x54305f('0x2228')];break;case _0x54305f('0xf50'):break;default:_0x389d56[0x0]=_0x5768bc[_0x54305f('0x12b1')][_0x54305f('0xbf3')],_0x389d56[0x1]=_0x5768bc['system']['variable'],_0x5768bc[_0x54305f('0x12b1')]['appdata']=_0x389d56[_0x54305f('0x136')](',');}_0x39320a(_0x5768bc[_0x54305f('0x12b1')]);}function _0x39320a(_0xac4c0){var _0x1fb085=_0x136404;_0x1d41c1[_0x1fb085('0x1c24')](_0xac4c0);}}const _0x435cb2=_0xc355e8;_0x1b0e9f[_0x3877e3('0x1a81')]=['$mdDialog','$q','toasty',_0x3877e3('0x5f2'),_0x3877e3('0xe3c'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x1b0e9f(_0x1e10cb,_0x200991,_0x388bc3,_0x50abd1,_0x20deea,_0x7036b,_0xfd3551,_0x827be9){var _0x468655=_0x3877e3,_0x8544b3=this;_0x8544b3[_0x468655('0x123f')]=_0xfd3551['getCurrentUser'](),_0x8544b3[_0x468655('0x1a69')]=[],_0x8544b3[_0x468655('0x4b4')]='CHAT.EDIT_'+(_0x50abd1[_0x468655('0x522')]||_0x50abd1[_0x468655('0x1f94')])['toUpperCase'](),_0x8544b3['tag']=angular[_0x468655('0xd75')](_0x50abd1),_0x8544b3[_0x468655('0x5ed')]=_0x827be9,_0x8544b3[_0x468655('0x126a')]={};if(_0x8544b3[_0x468655('0x907')][_0x468655('0x23c2')])switch(_0x8544b3[_0x468655('0x907')]['appType']?_0x8544b3[_0x468655('0x907')][_0x468655('0x522')][_0x468655('0xac2')]():_0x8544b3[_0x468655('0x907')]['app'][_0x468655('0xac2')]()){case _0x468655('0xf50'):break;case _0x468655('0xc72'):{var _0x1e5476=_0x8544b3[_0x468655('0x907')][_0x468655('0x23c2')][_0x468655('0x1af5')](',');_0x8544b3[_0x468655('0x907')][_0x468655('0xddb')]=_0x1e5476[0x0],_0x8544b3[_0x468655('0x907')][_0x468655('0x10f')]=_0x1e5476[0x1],_0x8544b3[_0x468655('0x907')][_0x468655('0x1cce')]=_0x1e5476[_0x468655('0xb3d')](0x2,_0x1e5476[_0x468655('0x577')])[_0x468655('0x136')](',');}break;case _0x468655('0x1c22'):{var _0x28985c=_0x8544b3[_0x468655('0x907')]['appdata'][_0x468655('0x1af5')](',');_0x8544b3[_0x468655('0x907')][_0x468655('0x21c6')]=_0x28985c[0x0],_0x8544b3[_0x468655('0x907')][_0x468655('0x797')]=_0x28985c[0x1],_0x8544b3[_0x468655('0x907')][_0x468655('0x20a3')]=_0x28985c[0x2],_0x8544b3[_0x468655('0x907')]['botname']=_0x28985c[0x3],_0x8544b3[_0x468655('0x907')][_0x468655('0x1cce')]=_0x28985c[_0x468655('0xb3d')](0x4,_0x28985c[_0x468655('0x577')])['join'](',');}break;case _0x468655('0x1b98'):{var _0x59e2a5=_0x8544b3[_0x468655('0x907')][_0x468655('0x23c2')][_0x468655('0x1af5')](',');_0x8544b3['tag']['times']=isNaN(_0x59e2a5[0x0])?_0x59e2a5[0x0]:parseInt(_0x59e2a5[0x0],0xa),_0x8544b3[_0x468655('0x907')][_0x468655('0xc1e')]=_0x59e2a5[_0x468655('0xb3d')](0x1,_0x59e2a5['length'])[_0x468655('0x136')](',');}break;case _0x468655('0x1224'):_0x8544b3['tag']['text']=_0x8544b3[_0x468655('0x907')][_0x468655('0x23c2')];break;case _0x468655('0x1125'):_0x8544b3[_0x468655('0x907')]['name']=_0x8544b3[_0x468655('0x907')][_0x468655('0x23c2')][_0x468655('0x1af5')]('=')[0x0],_0x8544b3[_0x468655('0x907')][_0x468655('0x2228')]=_0x8544b3[_0x468655('0x907')][_0x468655('0x23c2')][_0x468655('0x1af5')]('=')[0x1];break;case _0x468655('0x2356'):_0x8544b3[_0x468655('0x907')][_0x468655('0xbf8')]=_0x8544b3['tag']['appdata'];break;default:{var _0x301c46=_0x8544b3[_0x468655('0x907')][_0x468655('0x23c2')]['split'](',');_0x8544b3[_0x468655('0x907')][_0x468655('0x907')]=_0x86640f()[_0x468655('0x23aa')](_0x301c46[0x0])?_0x301c46[0x0]:isNaN(_0x301c46[0x0])?_0x301c46[0x0]:parseInt(_0x301c46[0x0],0xa);}break;}else{}_0x8544b3[_0x468655('0x907')][_0x468655('0x7fa')]&&_0x8544b3['tag'][_0x468655('0x7fa')][_0x468655('0xac2')]()===_0x468655('0x2300')&&_0x8544b3[_0x468655('0x907')]['appType']['toLowerCase']()===_0x468655('0x2363')&&(_0x8544b3[_0x468655('0x907')][_0x468655('0x1995')]=_0x8544b3['tag'][_0x468655('0x159e')]?_0x8544b3[_0x468655('0x907')]['phone'][_0x468655('0x1af5')]('$')[0x0]:undefined,_0x8544b3['tag'][_0x468655('0x26f7')]=_0x8544b3[_0x468655('0x907')][_0x468655('0x1f5a')]?_0x468655('0x587')+_0x8544b3[_0x468655('0x907')]['callerID']:undefined);_0x8544b3[_0x468655('0x53d')]=_0xc4033d,_0x8544b3[_0x468655('0x167')]=_0x4b26fd,_0xfd3551[_0x468655('0x21de')]('admin')?_0x7036b['tag'][_0x468655('0x595')]({'fields':'id,name','sort':'name','nolimit':'true'})[_0x468655('0x1376')]['then'](function(_0x2cb6fd){var _0x1b1a5f=_0x468655;_0x8544b3[_0x1b1a5f('0x1889')]=_0x2cb6fd[_0x1b1a5f('0x1b33')]||[];})[_0x468655('0x1c1d')](function(_0x17830c){var _0x28510e=_0x468655;_0x388bc3[_0x28510e('0x2092')]({'title':_0x17830c[_0x28510e('0x209')]?_0x28510e('0x22d')+_0x17830c['status']+_0x28510e('0xa99')+_0x17830c[_0x28510e('0x1808')]:'SYSTEM:GET_TAGS','msg':_0x17830c[_0x28510e('0x11c2')]?JSON[_0x28510e('0x25e')](_0x17830c[_0x28510e('0x11c2')]):_0x17830c['toString']()});}):_0x7036b[_0x468655('0x907')]['get']({'fields':_0x468655('0x1aa8'),'sort':'name','nolimit':_0x468655('0x19bd')})['$promise']['then'](function(_0x41b8a1){var _0x35936f=_0x468655;_0x8544b3[_0x35936f('0x1889')]=_0x41b8a1['rows']||[];})[_0x468655('0x21ad')](function(){var _0x1d1ce8=_0x468655;return _0x7036b[_0x1d1ce8('0xab4')][_0x1d1ce8('0x595')]({'userProfileId':_0x8544b3['currentUser']['userProfileId'],'sectionId':0x3f0})['$promise'];})['then'](function(_0x578dff){var _0x28b17f=_0x468655,_0x3c9c94=_0x578dff&&_0x578dff['rows']?_0x578dff[_0x28b17f('0x1b33')][0x0]:null;if(!_0x3c9c94){var _0xe9969c=[],_0x19c39c=null;_0x8544b3[_0x28b17f('0x907')]&&(_0x19c39c=_0x86640f()[_0x28b17f('0x1d2e')](_0x8544b3[_0x28b17f('0x1889')],{'name':_0x8544b3['tag'][_0x28b17f('0x907')]}));for(var _0x57ae73=0x0;_0x57ae73<_0x8544b3[_0x28b17f('0x1889')][_0x28b17f('0x577')];_0x57ae73++){_0x19c39c&&_0x8544b3[_0x28b17f('0x1889')][_0x57ae73]['id']===_0x19c39c['id']&&(_0x8544b3[_0x28b17f('0x1889')][_0x57ae73]['canSelect']=![],_0xe9969c[_0x28b17f('0x206c')](_0x8544b3[_0x28b17f('0x1889')][_0x57ae73]));}_0x8544b3['tags']=_0xe9969c;}else{if(!_0x3c9c94[_0x28b17f('0x80c')])return _0x7036b[_0x28b17f('0x185e')][_0x28b17f('0x595')]({'sectionId':_0x3c9c94['id']})[_0x28b17f('0x1376')][_0x28b17f('0x21ad')](function(_0xc78287){var _0x527efd=_0x28b17f,_0x18887d=_0x86640f()[_0x527efd('0x26c3')](_0xc78287['rows'],function(_0xdbedec){var _0x30a9dc=_0x527efd;return _0x86640f()[_0x30a9dc('0x1d2e')](_0x8544b3[_0x30a9dc('0x1889')],{'id':_0xdbedec['resourceId']});}),_0x36383e=null;_0x8544b3[_0x527efd('0x907')]&&(_0x36383e=_0x86640f()['find'](_0x8544b3[_0x527efd('0x1889')],{'name':_0x8544b3[_0x527efd('0x907')][_0x527efd('0x907')]}));if(_0x36383e&&!_0x86640f()[_0x527efd('0x2664')](_0x18887d,['id',_0x36383e['id']])){var _0x46db7f=_0x86640f()[_0x527efd('0x1d2e')](_0x8544b3[_0x527efd('0x1889')],{'id':_0x36383e['id']});_0x46db7f[_0x527efd('0xba')]=![],_0x18887d[_0x527efd('0x206c')](_0x46db7f);}_0x8544b3[_0x527efd('0x1889')]=_0x18887d;});}})[_0x468655('0x1c1d')](function(_0x5655bd){var _0x75e72e=_0x468655;_0x388bc3['error']({'title':_0x5655bd[_0x75e72e('0x209')]?_0x75e72e('0x22d')+_0x5655bd[_0x75e72e('0x209')]+_0x75e72e('0xa99')+_0x5655bd[_0x75e72e('0x1808')]:_0x75e72e('0x182f'),'msg':_0x5655bd[_0x75e72e('0x11c2')]?JSON[_0x75e72e('0x25e')](_0x5655bd[_0x75e72e('0x11c2')]):_0x5655bd[_0x75e72e('0x174f')]()});});function _0xc4033d(){var _0x55f901=_0x468655;_0x8544b3[_0x55f901('0x1a69')]=[];var _0x22a498=[];_0x8544b3[_0x55f901('0x907')][_0x55f901('0x7fa')]&&_0x8544b3['tag'][_0x55f901('0x7fa')][_0x55f901('0xac2')]()===_0x55f901('0x2300')&&_0x8544b3[_0x55f901('0x907')][_0x55f901('0x522')]==='outboundDial'&&(_0x8544b3[_0x55f901('0x907')][_0x55f901('0x159e')]=_0x20deea[_0x55f901('0x988')]?(_0x8544b3[_0x55f901('0x907')][_0x55f901('0x1995')]||'')+'${EXTEN:'+_0x20deea[_0x55f901('0x988')]+'}':(_0x8544b3['tag'][_0x55f901('0x1995')]||'')+_0x55f901('0x2560'),_0x20deea[_0x55f901('0xad1')]!==_0x55f901('0x983')?_0x8544b3[_0x55f901('0x907')][_0x55f901('0x26a0')][_0x55f901('0x2004')]('U(xcally-mixmonitor-context)')<0x0&&(_0x8544b3[_0x55f901('0x907')][_0x55f901('0x26a0')]+=_0x55f901('0x478')):_0x8544b3[_0x55f901('0x907')][_0x55f901('0x26a0')]=_0x8544b3[_0x55f901('0x907')][_0x55f901('0x26a0')][_0x55f901('0x16e4')](_0x55f901('0x478'),''));var _0x433362=_0x86640f()[_0x55f901('0x1d2e')](_0x8544b3['tags'],{'name':_0x8544b3['tag'][_0x55f901('0x907')]});_0x433362&&(_0x8544b3[_0x55f901('0x907')][_0x55f901('0x4ab')]=_0x433362['id']);if(_0x8544b3['tag']['appType']&&_0x8544b3[_0x55f901('0x907')][_0x55f901('0x522')]===_0x55f901('0xf50')){}else switch((_0x8544b3[_0x55f901('0x907')]['app']||_0x8544b3['tag'][_0x55f901('0x522')])[_0x55f901('0xac2')]()){case _0x55f901('0x1125'):_0x8544b3[_0x55f901('0x907')][_0x55f901('0x23c2')]=_0x8544b3['tag']['name']+'='+_0x8544b3[_0x55f901('0x907')][_0x55f901('0x2228')];break;case'custom':break;default:_0x22a498[0x0]=_0x8544b3[_0x55f901('0x907')][_0x55f901('0x907')],_0x8544b3[_0x55f901('0x907')]['appdata']=_0x22a498[_0x55f901('0x136')](',');}_0x4b26fd(_0x8544b3['tag']);}function _0x4b26fd(_0x226559){var _0x4df907=_0x468655;_0x1e10cb[_0x4df907('0x1c24')](_0x226559);}}const _0x19ecf0=_0x1b0e9f,_0x4f8939=_0x398308['p']+_0x3877e3('0x1065');_0x1062f8[_0x3877e3('0x1a81')]=[_0x3877e3('0x26'),'$scope',_0x3877e3('0xa9f'),'$q','$translate',_0x3877e3('0x2313'),_0x3877e3('0x1850'),'$document',_0x3877e3('0x1908'),_0x3877e3('0xccd'),'Auth'];function _0x1062f8(_0x107e17,_0xd24008,_0x249fe9,_0x5d9364,_0x2829cd,_0xbcc465,_0x4807ac,_0x22dd51,_0x5c4405,_0x1a668b,_0x3d953e){var _0x49928c=_0x3877e3,_0x611092=this;_0x611092[_0x49928c('0x123f')]=_0x3d953e[_0x49928c('0x15ed')](),_0x611092[_0x49928c('0xe3c')]={},_0x611092[_0x49928c('0x1f8b')]={'count':0x0,'rows':[]},_0x611092[_0x49928c('0x1aab')]=[],_0x611092[_0x49928c('0x5ed')],_0x611092[_0x49928c('0x77')]={'fields':'createdAt,updatedAt,id,key,value,description','limit':0xa,'page':0x1},_0x611092[_0x49928c('0x1d75')]=_0x30e37b,_0x611092[_0x49928c('0x15dc')]=_0x1f2f53,_0x611092[_0x49928c('0xdb1')]=_0x2dde2c,_0x611092['getChatWebsiteChatCannedAnswers']=_0x5614d2,_0x611092[_0x49928c('0x461')]=_0x5f216e,_0x611092[_0x49928c('0x2080')]=_0x4467c9,_0x611092[_0x49928c('0x17c2')]=_0x184f98,_0x611092[_0x49928c('0xee6')]=_0x24a3b8;function _0x30e37b(_0x1969ed,_0x5cca6c){var _0x8a94bd=_0x49928c;_0x611092['chatWebsite']=_0x1969ed,_0x611092[_0x8a94bd('0x5ed')]=typeof _0x5cca6c!==_0x8a94bd('0xddc')?_0x5cca6c:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x611092[_0x8a94bd('0x77')][_0x8a94bd('0x15f9')]=_0x611092['chatWebsite']['id'],_0x611092[_0x8a94bd('0x77')]['id']=_0x611092[_0x8a94bd('0xe3c')]['id'],_0x5614d2();}function _0x1f2f53(_0x1755e1,_0x199164){var _0x35aa3a=_0x49928c,_0x479851=_0x4807ac[_0x35aa3a('0xa33')]()[_0x35aa3a('0x4b4')](_0x35aa3a('0x2838'))[_0x35aa3a('0x276b')](_0x35aa3a('0x622')+(_0x1755e1['name']||_0x1755e1['id']&&_0x86640f()[_0x35aa3a('0x22e')]('chatCannedAnswer\x20#')+_0x1755e1['id']||_0x35aa3a('0x20b6'))+_0x35aa3a('0x2135')+_0x35aa3a('0x25e0'))[_0x35aa3a('0x7a7')]('delete\x20chatCannedAnswer')[_0x35aa3a('0x1e6d')](_0x199164)['ok']('OK')['cancel']('CANCEL');_0x4807ac['show'](_0x479851)[_0x35aa3a('0x21ad')](function(){_0x184f98(_0x1755e1);},function(){var _0x2bcb0d=_0x35aa3a;console[_0x2bcb0d('0x6fb')]('CANCEL');});}function _0x2dde2c(_0x52cff5){_0x611092['chatWebsiteChatCannedAnswers']=_0x52cff5||{'count':0x0,'rows':[]};}function _0x5614d2(){var _0x3984d7=_0x49928c;_0x611092['query'][_0x3984d7('0x15a5')]=(_0x611092['query']['page']-0x1)*_0x611092[_0x3984d7('0x77')][_0x3984d7('0x1f4a')],_0x611092['promise']=_0x1a668b[_0x3984d7('0xe3c')]['getAnswers'](_0x611092[_0x3984d7('0x77')],_0x2dde2c)[_0x3984d7('0x1376')];}function _0x5f216e(_0x45d6e7,_0x29b271){var _0x2c50a3=_0x49928c;_0x4807ac[_0x2c50a3('0x853')]({'controller':_0x2c50a3('0x126b'),'controllerAs':'vm','templateUrl':_0x4f8939,'parent':angular[_0x2c50a3('0x1676')](_0x22dd51[_0x2c50a3('0x2452')]),'targetEvent':_0x45d6e7,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x611092[_0x2c50a3('0xe3c')],'chatCannedAnswer':_0x29b271,'chatCannedAnswers':_0x611092['chatWebsiteChatCannedAnswers'][_0x2c50a3('0x1b33')],'license':null,'setting':null,'crudPermissions':_0x611092[_0x2c50a3('0x5ed')]}});}function _0x184f98(_0x39a09b){var _0x2727b2=_0x49928c;_0x1a668b['cannedAnswer'][_0x2727b2('0x1164')]({'id':_0x39a09b['id']})[_0x2727b2('0x1376')][_0x2727b2('0x21ad')](function(){var _0x2a1c8c=_0x2727b2;_0x86640f()[_0x2a1c8c('0x16a2')](_0x611092[_0x2a1c8c('0x1f8b')]['rows'],{'id':_0x39a09b['id']}),_0x611092[_0x2a1c8c('0x1f8b')]['count']-=0x1,!_0x611092[_0x2a1c8c('0x1f8b')][_0x2a1c8c('0x1b33')][_0x2a1c8c('0x577')]&&_0x5614d2(),_0x5c4405['success']({'title':_0x2a1c8c('0x1e5e'),'msg':_0x39a09b['name']?_0x39a09b[_0x2a1c8c('0x19fe')]+'\x20has\x20been\x20deleted!':''});})[_0x2727b2('0x1c1d')](function(_0x2a6445){var _0x320ae7=_0x2727b2;if(_0x2a6445[_0x320ae7('0x11c2')]&&_0x2a6445[_0x320ae7('0x11c2')][_0x320ae7('0x1a69')]&&_0x2a6445[_0x320ae7('0x11c2')][_0x320ae7('0x1a69')]['length']){_0x611092[_0x320ae7('0x1a69')]=_0x2a6445[_0x320ae7('0x11c2')][_0x320ae7('0x1a69')]||[{'message':_0x2a6445['toString'](),'type':'SYSTEM:GETchatWebsite'}];for(var _0x5237c7=0x0;_0x5237c7<_0x2a6445[_0x320ae7('0x11c2')][_0x320ae7('0x1a69')][_0x320ae7('0x577')];_0x5237c7++){_0x5c4405[_0x320ae7('0x2092')]({'title':_0x2a6445[_0x320ae7('0x11c2')]['errors'][_0x5237c7]['type'],'msg':_0x2a6445['data']['errors'][_0x5237c7]['message']});}}else _0x5c4405[_0x320ae7('0x2092')]({'title':_0x2a6445['status']?_0x320ae7('0x22d')+_0x2a6445['status']+_0x320ae7('0xa99')+_0x2a6445[_0x320ae7('0x1808')]:'SYSTEM:GETchatWebsite','msg':_0x2a6445[_0x320ae7('0x11c2')]?JSON['stringify'](_0x2a6445[_0x320ae7('0x11c2')][_0x320ae7('0x1224')]):_0x2a6445[_0x320ae7('0x1224')]||_0x2a6445['toString']()});});}function _0x4467c9(){var _0x41c7ff=_0x49928c,_0xb5ca66=angular[_0x41c7ff('0xd75')](_0x611092[_0x41c7ff('0x1aab')]);return _0x611092[_0x41c7ff('0x1aab')]=[],_0xb5ca66;}function _0x24a3b8(_0x5dcab2){var _0x49c79c=_0x49928c,_0xac370=_0x4807ac[_0x49c79c('0xa33')]()['title'](_0x49c79c('0x1009'))[_0x49c79c('0x276b')](''+_0x611092[_0x49c79c('0x1aab')]['length']+'\x20selected'+_0x49c79c('0x25e0'))[_0x49c79c('0x7a7')]('delete\x20chatCannedAnswers')[_0x49c79c('0x1e6d')](_0x5dcab2)['ok']('OK')[_0x49c79c('0x3b5')](_0x49c79c('0x284b'));_0x4807ac[_0x49c79c('0x853')](_0xac370)[_0x49c79c('0x21ad')](function(){var _0x4a432a=_0x49c79c;_0x611092['selectedChatWebsiteChatCannedAnswers'][_0x4a432a('0x1a52')](function(_0x38d3de){_0x184f98(_0x38d3de);}),_0x611092[_0x4a432a('0x1aab')]=[];});}var _0x1dbb4d=!![],_0xf9e27b=0x1;_0xd24008[_0x49928c('0x10e8')](_0x49928c('0x10ff'),function(_0x578911,_0x5e7ecc){var _0x1030be=_0x49928c;_0x1dbb4d?_0xbcc465(function(){_0x1dbb4d=![];}):(!_0x5e7ecc&&(_0xf9e27b=_0x611092['query']['page']),_0x578911!==_0x5e7ecc&&(_0x611092[_0x1030be('0x77')][_0x1030be('0x2376')]=0x1),!_0x578911&&(_0x611092[_0x1030be('0x77')]['page']=_0xf9e27b),_0x5614d2());});}const _0x17cab7=_0x1062f8;_0x28b99f[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$state',_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),'toasty',_0x3877e3('0x1927'),_0x3877e3('0x20b6'),_0x3877e3('0xccd'),'Auth','license',_0x3877e3('0x21e'),'crudPermissions'];function _0x28b99f(_0x13c488,_0x3dbdc7,_0x342f57,_0x333e53,_0x4216da,_0x36b8db,_0x2c6e76,_0xbedc4,_0x247dfc,_0x1c60bc,_0x310b38,_0x333697,_0x44adce,_0x49230d){var _0x394a3c=_0x3877e3,_0x1953ab=this;_0x1953ab[_0x394a3c('0x123f')]=_0x310b38[_0x394a3c('0x15ed')](),_0x1953ab[_0x394a3c('0x1a69')]=[],_0x1953ab['setting']=_0x44adce,_0x1953ab[_0x394a3c('0x2ff')]=_0x333697,_0x1953ab[_0x394a3c('0x5ed')]=_0x49230d,_0x1953ab[_0x394a3c('0x126a')]={},_0x1953ab[_0x394a3c('0x1432')]=_0x1953ab[_0x394a3c('0x21e')]&&_0x1953ab['setting'][_0x394a3c('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1953ab[_0x394a3c('0x4b4')]='CHAT.EDIT_CHATCANNEDANSWER',_0x1953ab[_0x394a3c('0x20b6')]=angular[_0x394a3c('0xd75')](_0x247dfc),_0x1953ab[_0x394a3c('0x1927')]=_0xbedc4,_0x1953ab[_0x394a3c('0x21bf')]=![];!_0x1953ab[_0x394a3c('0x20b6')]&&(_0x1953ab[_0x394a3c('0x20b6')]={},_0x1953ab[_0x394a3c('0x4b4')]=_0x394a3c('0x47'),_0x1953ab[_0x394a3c('0x21bf')]=!![]);_0x3dbdc7['params']['id']&&(_0x1953ab[_0x394a3c('0x20b6')][_0x394a3c('0x15f9')]=_0x3dbdc7[_0x394a3c('0x171b')]['id']);_0x1953ab[_0x394a3c('0x1b4b')]=_0x56047d,_0x1953ab[_0x394a3c('0x1078')]=_0x42d75f,_0x1953ab[_0x394a3c('0x2252')]=_0x50c16c,_0x1953ab[_0x394a3c('0x279')]=_0x48c1a7,_0x1953ab[_0x394a3c('0x167')]=_0x99496f;function _0x56047d(){var _0x2d0d6f=_0x394a3c;_0x1953ab[_0x2d0d6f('0x1a69')]=[],_0x1c60bc[_0x2d0d6f('0x25e5')][_0x2d0d6f('0x186f')](_0x1953ab[_0x2d0d6f('0x20b6')])[_0x2d0d6f('0x1376')][_0x2d0d6f('0x21ad')](function(_0x3deefc){var _0x441e9b=_0x2d0d6f;_0x1953ab['chatCannedAnswers'][_0x441e9b('0xd0c')](_0x3deefc['toJSON']()),_0x2c6e76[_0x441e9b('0xdb1')]({'title':_0x441e9b('0x2337'),'msg':_0x1953ab[_0x441e9b('0x20b6')][_0x441e9b('0x19fe')]?_0x1953ab['chatCannedAnswer'][_0x441e9b('0x19fe')]+_0x441e9b('0x1694'):''}),_0x99496f(_0x3deefc);})['catch'](function(_0x3c26dc){var _0x1536fb=_0x2d0d6f;if(_0x3c26dc[_0x1536fb('0x11c2')]&&_0x3c26dc[_0x1536fb('0x11c2')][_0x1536fb('0x1a69')]&&_0x3c26dc[_0x1536fb('0x11c2')]['errors']['length']){_0x1953ab['errors']=_0x3c26dc[_0x1536fb('0x11c2')][_0x1536fb('0x1a69')]||[{'message':_0x3c26dc[_0x1536fb('0x174f')](),'type':_0x1536fb('0x545')}];for(var _0x4677a7=0x0;_0x4677a7<_0x3c26dc[_0x1536fb('0x11c2')]['errors'][_0x1536fb('0x577')];_0x4677a7+=0x1){_0x2c6e76['error']({'title':_0x3c26dc[_0x1536fb('0x11c2')]['errors'][_0x4677a7][_0x1536fb('0x7fa')],'msg':_0x3c26dc['data'][_0x1536fb('0x1a69')][_0x4677a7][_0x1536fb('0x1224')]});}}else _0x2c6e76[_0x1536fb('0x2092')]({'title':_0x3c26dc['status']?_0x1536fb('0x22d')+_0x3c26dc['status']+_0x1536fb('0xa99')+_0x3c26dc[_0x1536fb('0x1808')]:_0x1536fb('0x545'),'msg':_0x3c26dc[_0x1536fb('0x11c2')]?JSON['stringify'](_0x3c26dc['data']['message']):_0x3c26dc[_0x1536fb('0x174f')]()});});}function _0x42d75f(){var _0x383f8a=_0x394a3c;_0x1953ab[_0x383f8a('0x1a69')]=[],_0x1c60bc[_0x383f8a('0x25e5')][_0x383f8a('0x5ef')]({'id':_0x1953ab['chatCannedAnswer']['id']},_0x1953ab[_0x383f8a('0x20b6')])[_0x383f8a('0x1376')][_0x383f8a('0x21ad')](function(_0xa17615){var _0x4b2eab=_0x383f8a,_0x54b394=_0x86640f()[_0x4b2eab('0x1d2e')](_0x1953ab[_0x4b2eab('0x1927')],{'id':_0xa17615['id']});_0x54b394&&_0x86640f()[_0x4b2eab('0xd0e')](_0x54b394,_0x86640f()[_0x4b2eab('0xc50')](_0xa17615[_0x4b2eab('0x3bc')](),_0x86640f()[_0x4b2eab('0x223b')](_0x54b394))),_0x2c6e76[_0x4b2eab('0xdb1')]({'title':_0x4b2eab('0x8ba'),'msg':_0x1953ab['chatCannedAnswer'][_0x4b2eab('0x19fe')]?_0x1953ab[_0x4b2eab('0x20b6')][_0x4b2eab('0x19fe')]+'\x20has\x20been\x20saved!':''}),_0x99496f(_0xa17615);})[_0x383f8a('0x1c1d')](function(_0x5bf14d){var _0x467c2c=_0x383f8a;if(_0x5bf14d['data']&&_0x5bf14d[_0x467c2c('0x11c2')][_0x467c2c('0x1a69')]&&_0x5bf14d[_0x467c2c('0x11c2')][_0x467c2c('0x1a69')][_0x467c2c('0x577')]){_0x1953ab[_0x467c2c('0x1a69')]=_0x5bf14d['data'][_0x467c2c('0x1a69')]||[{'message':_0x5bf14d[_0x467c2c('0x174f')](),'type':_0x467c2c('0x129c')}];for(var _0x373b1c=0x0;_0x373b1c<_0x5bf14d[_0x467c2c('0x11c2')][_0x467c2c('0x1a69')]['length'];_0x373b1c++){_0x2c6e76['error']({'title':_0x5bf14d[_0x467c2c('0x11c2')][_0x467c2c('0x1a69')][_0x373b1c]['type'],'msg':_0x5bf14d[_0x467c2c('0x11c2')][_0x467c2c('0x1a69')][_0x373b1c][_0x467c2c('0x1224')]});}}else _0x2c6e76['error']({'title':_0x5bf14d['status']?_0x467c2c('0x22d')+_0x5bf14d[_0x467c2c('0x209')]+_0x467c2c('0xa99')+_0x5bf14d['statusText']:_0x467c2c('0x129c'),'msg':_0x5bf14d['data']?JSON['stringify'](_0x5bf14d[_0x467c2c('0x11c2')][_0x467c2c('0x1224')]):_0x5bf14d[_0x467c2c('0x174f')]()});});}function _0x50c16c(_0x4d0241){var _0x5d1840=_0x394a3c;_0x1953ab['errors']=[];var _0x326188=_0x333e53[_0x5d1840('0xa33')]()['title'](_0x5d1840('0x196b'))['content'](_0x5d1840('0x6c7'))[_0x5d1840('0x7a7')](_0x5d1840('0x26a6'))['ok'](_0x5d1840('0xbfd'))[_0x5d1840('0x3b5')](_0x5d1840('0x1f40'))[_0x5d1840('0x1e6d')](_0x4d0241);_0x333e53[_0x5d1840('0x853')](_0x326188)[_0x5d1840('0x21ad')](function(){var _0x5619c6=_0x5d1840;_0x1c60bc[_0x5619c6('0x25e5')][_0x5619c6('0x1164')]({'id':_0x1953ab[_0x5619c6('0x20b6')]['id']})[_0x5619c6('0x1376')][_0x5619c6('0x21ad')](function(){var _0x2e15ba=_0x5619c6;_0x86640f()[_0x2e15ba('0x16a2')](_0x1953ab['chatCannedAnswers'],{'id':_0x1953ab['chatCannedAnswer']['id']}),_0x2c6e76['success']({'title':_0x2e15ba('0x27af'),'msg':(_0x1953ab[_0x2e15ba('0x20b6')]['name']||_0x2e15ba('0x20b6'))+_0x2e15ba('0xb4a')}),_0x99496f(_0x1953ab[_0x2e15ba('0x20b6')]);})['catch'](function(_0x1a58fa){var _0x4eb8fc=_0x5619c6;if(_0x1a58fa['data']&&_0x1a58fa[_0x4eb8fc('0x11c2')][_0x4eb8fc('0x1a69')]&&_0x1a58fa[_0x4eb8fc('0x11c2')][_0x4eb8fc('0x1a69')][_0x4eb8fc('0x577')]){_0x1953ab[_0x4eb8fc('0x1a69')]=_0x1a58fa[_0x4eb8fc('0x11c2')][_0x4eb8fc('0x1a69')]||[{'message':_0x1a58fa[_0x4eb8fc('0x174f')](),'type':_0x4eb8fc('0x2545')}];for(var _0x18dcab=0x0;_0x18dcab<_0x1a58fa[_0x4eb8fc('0x11c2')]['errors'][_0x4eb8fc('0x577')];_0x18dcab++){_0x2c6e76['error']({'title':_0x1a58fa[_0x4eb8fc('0x11c2')][_0x4eb8fc('0x1a69')][_0x18dcab][_0x4eb8fc('0x7fa')],'msg':_0x1a58fa[_0x4eb8fc('0x11c2')]['errors'][_0x18dcab][_0x4eb8fc('0x1224')]});}}else _0x2c6e76['error']({'title':_0x1a58fa[_0x4eb8fc('0x209')]?_0x4eb8fc('0x22d')+_0x1a58fa['status']+'\x20-\x20'+_0x1a58fa[_0x4eb8fc('0x1808')]:_0x4eb8fc('0x2545'),'msg':_0x1a58fa[_0x4eb8fc('0x11c2')]?JSON[_0x4eb8fc('0x25e')](_0x1a58fa[_0x4eb8fc('0x11c2')][_0x4eb8fc('0x1224')]):_0x1a58fa[_0x4eb8fc('0x1224')]||_0x1a58fa[_0x4eb8fc('0x174f')]()});});},function(){});}function _0x48c1a7(_0x43a62f){return _0x43a62f===null?undefined:new Date(_0x43a62f);}function _0x99496f(_0x4e0309){_0x333e53['hide'](_0x4e0309);}}const _0x237622=_0x28b99f;_0x16ec81[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$window',_0x3877e3('0xa9f'),_0x3877e3('0x2828'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x13c1'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x15bc')];function _0x16ec81(_0x759ba3,_0x5de27e,_0x4e7241,_0x1281e9,_0x2ea39f,_0xa3ff4d,_0x59113a,_0x496f3f,_0x33f371,_0x140801,_0x159376){var _0x341f62=_0x3877e3,_0x3c479a=this;_0x3c479a[_0x341f62('0x123f')]=_0x159376[_0x341f62('0x15ed')](),_0x3c479a[_0x341f62('0x10d0')]={'count':0x0,'rows':[]},_0x3c479a[_0x341f62('0xa9')]=[],_0x3c479a[_0x341f62('0x5ed')],_0x3c479a[_0x341f62('0x2525')]={'first':_0x341f62('0xd08'),'second':_0x341f62('0x2846'),'third':_0x341f62('0x176b')},_0x3c479a['query']={'fields':_0x341f62('0x277'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x3c479a[_0x341f62('0x1d75')]=_0xb802fb,_0x3c479a[_0x341f62('0x15dc')]=_0x4e95eb,_0x3c479a[_0x341f62('0xdb1')]=_0x12a2d8,_0x3c479a[_0x341f62('0x1235')]=_0x12c4c6,_0x3c479a[_0x341f62('0x25e1')]=_0x2a9391,_0x3c479a['deleteDisposition']=_0x36e7f9,_0x3c479a['exportSelectedDispositions']=_0x762aea,_0x3c479a[_0x341f62('0x250')]=_0x5c3fba,_0x3c479a[_0x341f62('0x2061')]=_0x19f77b,_0x3c479a['selectAllDispositions']=_0x568037;function _0xb802fb(_0x4b90f9,_0x332545){var _0x53b84b=_0x341f62;_0x3c479a[_0x53b84b('0xe3c')]=_0x4b90f9||{},_0x3c479a['crudPermissions']=typeof _0x332545!==_0x53b84b('0xddc')?_0x332545:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3c479a[_0x53b84b('0x77')]['ChatWebsiteId']=_0x3c479a[_0x53b84b('0xe3c')]['id'],_0x3c479a['query']['id']=_0x3c479a[_0x53b84b('0xe3c')]['id'],_0x12c4c6();}function _0x2a9391(_0x529fc4,_0x1f2a3c){var _0x2a878f=_0x341f62;_0x2ea39f[_0x2a878f('0x853')]({'controller':'CreateOrEditDispositionDialogController','controllerAs':'vm','templateUrl':_0x3e2462,'parent':angular['element'](_0xa3ff4d[_0x2a878f('0x2452')]),'targetEvent':_0x529fc4,'clickOutsideToClose':!![],'locals':{'disposition':_0x1f2a3c,'dispositions':_0x3c479a[_0x2a878f('0x10d0')][_0x2a878f('0x1b33')],'model':{'id':_0x3c479a['chatWebsite']['id'],'field':_0x2a878f('0x15f9')},'license':null,'setting':null,'crudPermissions':_0x3c479a[_0x2a878f('0x5ed')]}})[_0x2a878f('0x21ad')](function(_0x1cd977){if(_0x1cd977)_0x12c4c6();});}function _0x4e95eb(_0x38e72c,_0x1e59dc){var _0x20f1ff=_0x341f62,_0x9e1aa6=_0x86640f()[_0x20f1ff('0x2664')](_0x3c479a[_0x20f1ff('0x10d0')][_0x20f1ff('0x1b33')],[_0x20f1ff('0x198f'),_0x38e72c['id']]),_0x424156=_0x2ea39f[_0x20f1ff('0xa33')]()[_0x20f1ff('0x4b4')](_0x496f3f[_0x20f1ff('0x183e')]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE'))[_0x20f1ff('0x13fb')](_0x496f3f[_0x20f1ff('0x183e')](_0x20f1ff('0x18ec')+(_0x9e1aa6?_0x20f1ff('0x636'):_0x20f1ff('0x1019')),{'name':_0x38e72c[_0x20f1ff('0x19fe')]}))['ariaLabel'](_0x20f1ff('0x2448'))[_0x20f1ff('0x1e6d')](_0x1e59dc)['ok']('OK')[_0x20f1ff('0x3b5')](_0x496f3f[_0x20f1ff('0x183e')]('TOOLS.CANCEL'));_0x2ea39f[_0x20f1ff('0x853')](_0x424156)[_0x20f1ff('0x21ad')](function(){_0x36e7f9(_0x38e72c);});}function _0x12a2d8(_0x5d7c15){var _0x4e8105=_0x341f62;_0x3c479a[_0x4e8105('0x10d0')]=_0x5d7c15||{'count':0x0,'rows':[]};}function _0x12c4c6(){var _0x51746f=_0x341f62;_0x3c479a['query'][_0x51746f('0x15a5')]=(_0x3c479a['query']['page']-0x1)*_0x3c479a['query']['limit'],_0x3c479a[_0x51746f('0x71b')]=_0x33f371[_0x51746f('0xe3c')][_0x51746f('0x1235')](_0x3c479a[_0x51746f('0x77')],_0x12a2d8)[_0x51746f('0x1376')];}function _0x36e7f9(_0x165dbc){var _0x3324eb=_0x341f62;_0x33f371[_0x3324eb('0x22c8')][_0x3324eb('0x1164')]({'id':_0x165dbc['id']})[_0x3324eb('0x1376')][_0x3324eb('0x21ad')](function(){var _0xf5668=_0x3324eb;_0x12c4c6(),_0x140801['success']({'title':_0x496f3f['instant'](_0xf5668('0x42a'))});})['catch'](function(_0x7bb9f4){var _0x40006f=_0x3324eb;if(_0x7bb9f4[_0x40006f('0x11c2')]&&_0x7bb9f4[_0x40006f('0x11c2')][_0x40006f('0x1a69')]&&_0x7bb9f4['data'][_0x40006f('0x1a69')][_0x40006f('0x577')]){_0x3c479a[_0x40006f('0x1a69')]=_0x7bb9f4[_0x40006f('0x11c2')][_0x40006f('0x1a69')]||[{'message':_0x7bb9f4[_0x40006f('0x174f')](),'type':_0x40006f('0x10d3')}];for(var _0x1c1ade=0x0;_0x1c1ade<_0x7bb9f4[_0x40006f('0x11c2')][_0x40006f('0x1a69')]['length'];_0x1c1ade++){_0x140801[_0x40006f('0x2092')]({'title':_0x7bb9f4[_0x40006f('0x11c2')]['errors'][_0x1c1ade][_0x40006f('0x7fa')],'msg':_0x7bb9f4[_0x40006f('0x11c2')][_0x40006f('0x1a69')][_0x1c1ade]['message']});}}else _0x140801[_0x40006f('0x2092')]({'title':_0x7bb9f4['status']?_0x40006f('0x22d')+_0x7bb9f4[_0x40006f('0x209')]+_0x40006f('0xa99')+_0x7bb9f4[_0x40006f('0x1808')]:_0x40006f('0x10d3'),'msg':_0x7bb9f4[_0x40006f('0x11c2')]?JSON[_0x40006f('0x25e')](_0x7bb9f4[_0x40006f('0x11c2')][_0x40006f('0x1224')]):_0x7bb9f4[_0x40006f('0x1224')]||_0x7bb9f4[_0x40006f('0x174f')]()});});}function _0x762aea(){var _0x2a3b11=_0x341f62,_0x561554=angular[_0x2a3b11('0xd75')](_0x3c479a[_0x2a3b11('0xa9')]);return _0x3c479a[_0x2a3b11('0xa9')]=[],_0x561554;}function _0x5c3fba(_0x3a0a6c){var _0xe289bb=_0x341f62,_0xb02b4f=_0x2ea39f[_0xe289bb('0xa33')]()['title'](_0x496f3f[_0xe289bb('0x183e')](_0xe289bb('0x1477')))[_0xe289bb('0x13fb')](_0x496f3f[_0xe289bb('0x183e')](_0xe289bb('0x212d'),{'total':_0x3c479a['selectedDispositions']['length']}))['ariaLabel'](_0xe289bb('0xad9'))[_0xe289bb('0x1e6d')](_0x3a0a6c)['ok']('OK')[_0xe289bb('0x3b5')](_0x496f3f[_0xe289bb('0x183e')]('TOOLS.CANCEL'));_0x2ea39f[_0xe289bb('0x853')](_0xb02b4f)[_0xe289bb('0x21ad')](function(){var _0x1864db=_0xe289bb;_0x3c479a[_0x1864db('0xa9')][_0x1864db('0x1a52')](function(_0xa5674e){_0x36e7f9(_0xa5674e);}),_0x3c479a[_0x1864db('0xa9')]=[];});}function _0x19f77b(){var _0x947eba=_0x341f62;_0x3c479a[_0x947eba('0xa9')]=[];}function _0x568037(){var _0x178fd4=_0x341f62;_0x3c479a[_0x178fd4('0xa9')]=_0x3c479a[_0x178fd4('0x10d0')][_0x178fd4('0x1b33')];}var _0x367b44=!![],_0x36f51e=0x1;_0x759ba3['$watch'](_0x341f62('0x10ff'),function(_0x273ee8,_0x17883d){var _0x18d1ee=_0x341f62;_0x367b44?_0x59113a(function(){_0x367b44=![];}):(!_0x17883d&&(_0x36f51e=_0x3c479a['query'][_0x18d1ee('0x2376')]),_0x273ee8!==_0x17883d&&(_0x3c479a['query']['page']=0x1),!_0x273ee8&&(_0x3c479a[_0x18d1ee('0x77')][_0x18d1ee('0x2376')]=_0x36f51e),_0x12c4c6());});}const _0xaea22f=_0x16ec81;_0x1eb1bc[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),_0x3877e3('0x243f'),'api'];function _0x1eb1bc(_0x1ff2aa,_0x596c9f,_0x35856a){var _0x149ca6=_0x3877e3,_0x334aa7=this;_0x334aa7[_0x149ca6('0xe3c')]={},_0x334aa7[_0x149ca6('0x1a86')]={},_0x334aa7[_0x149ca6('0x258')]=[{'type':_0x149ca6('0x214'),'name':_0x149ca6('0x1cfe'),'icon':_0x149ca6('0x1eb9')},{'type':_0x149ca6('0x1f34'),'name':'Select','icon':_0x149ca6('0xb2f')},{'type':'input','name':_0x149ca6('0x1599'),'icon':_0x149ca6('0x1ecd')},{'type':_0x149ca6('0x20f9'),'name':_0x149ca6('0x45a'),'icon':_0x149ca6('0x1c6c')},{'type':'multipleChoices','name':_0x149ca6('0x1c31'),'icon':_0x149ca6('0x9ba')},{'type':'checkboxes','name':_0x149ca6('0xdb4'),'icon':_0x149ca6('0x575')},{'type':_0x149ca6('0x17ba'),'name':'Agreement','icon':'icon-checkbox-marked-outline'}],_0x334aa7[_0x149ca6('0x1d75')]=_0x4835cf,_0x334aa7['up']=_0x28542b,_0x334aa7[_0x149ca6('0x16f4')]=_0x393eb2,_0x334aa7[_0x149ca6('0x1842')]=_0x3373fc,_0x334aa7['remove']=_0x33fa81;function _0x4835cf(_0x549899){var _0xad5472=_0x149ca6;_0x334aa7[_0xad5472('0x181e')]=[],_0x334aa7[_0xad5472('0xbbd')]=[],_0x334aa7[_0xad5472('0x1c03')]=['id',_0xad5472('0x23ae'),'updatedAt',_0xad5472('0x815'),_0xad5472('0x20f8'),_0xad5472('0x1376'),_0xad5472('0x9f8')],_0x334aa7[_0xad5472('0xe3c')]=_0x549899,_0x86640f()['isEmpty'](_0x334aa7[_0xad5472('0xe3c')][_0xad5472('0x1a86')])&&(_0x334aa7[_0xad5472('0xe3c')][_0xad5472('0x1a86')]={'items':[],'fromKey':null}),_0x35856a['cmList'][_0xad5472('0xb2d')]({'id':_0x334aa7[_0xad5472('0xe3c')][_0xad5472('0x815')]})[_0xad5472('0x1376')][_0xad5472('0x21ad')](function(_0x1bc6ee){var _0x143332=_0xad5472;for(var _0x56701e=0x0;_0x56701e<_0x1bc6ee[_0x143332('0x1b33')]['length'];_0x56701e++){_0x334aa7[_0x143332('0xbbd')]['push']({'key':'cf_'+_0x1bc6ee[_0x143332('0x1b33')][_0x56701e]['id'],'value':_0x1bc6ee[_0x143332('0x1b33')][_0x56701e][_0x143332('0xe62')]});}return _0x35856a[_0x143332('0x25dc')][_0x143332('0x1219')]()['$promise'];})[_0xad5472('0x21ad')](function(_0x486063){var _0x2bfae0=_0xad5472,_0x4a1c01=_0x86640f()[_0x2bfae0('0x223b')](_0x486063);for(var _0x5ce8e8=0x0;_0x5ce8e8<_0x4a1c01[_0x2bfae0('0x577')];_0x5ce8e8++){!_0x86640f()[_0x2bfae0('0xb34')](_0x334aa7[_0x2bfae0('0x1c03')],_0x4a1c01[_0x5ce8e8])&&!_0x86640f()[_0x2bfae0('0x2837')](_0x4a1c01[_0x5ce8e8],_0x2bfae0('0x714'))&&_0x334aa7[_0x2bfae0('0x181e')][_0x2bfae0('0xd0c')]({'key':_0x4a1c01[_0x5ce8e8],'value':_0x4a1c01[_0x5ce8e8]});}return _0x35856a[_0x2bfae0('0x25bb')][_0x2bfae0('0x595')]()[_0x2bfae0('0x1376')];})[_0xad5472('0x21ad')](function(_0x4f9596){var _0x167603=_0xad5472;_0x334aa7['variables']=_0x4f9596[_0x167603('0x1b33')];})[_0xad5472('0x1c1d')](function(_0x4a635f){var _0x2ee91c=_0xad5472;console[_0x2ee91c('0x2092')](_0x4a635f);});}function _0x28542b(_0xf1af4,_0x166212){var _0x49e89a=_0x149ca6;if(_0x166212!==0x0){var _0x236c70=_0x334aa7[_0x49e89a('0xe3c')][_0x49e89a('0x1a86')][_0x49e89a('0x1b9a')][_0x166212-0x1];_0x334aa7[_0x49e89a('0xe3c')][_0x49e89a('0x1a86')]['items'][_0x166212]=_0x236c70,_0x334aa7[_0x49e89a('0xe3c')][_0x49e89a('0x1a86')][_0x49e89a('0x1b9a')][_0x166212-0x1]=angular[_0x49e89a('0xd75')](_0xf1af4);if(_0x334aa7[_0x49e89a('0xe3c')]['offlineForm'][_0x49e89a('0x17f6')]===_0x166212)_0x334aa7[_0x49e89a('0xe3c')][_0x49e89a('0x1a86')][_0x49e89a('0x17f6')]--;else _0x334aa7[_0x49e89a('0xe3c')][_0x49e89a('0x1a86')][_0x49e89a('0x17f6')]===_0x166212-0x1&&_0x334aa7[_0x49e89a('0xe3c')][_0x49e89a('0x1a86')][_0x49e89a('0x17f6')]++;}}function _0x393eb2(_0x3c2eed,_0x2ecba7){var _0x16ebf9=_0x149ca6;if(_0x2ecba7!==_0x334aa7[_0x16ebf9('0xe3c')][_0x16ebf9('0x1a86')][_0x16ebf9('0x1b9a')][_0x16ebf9('0x577')]-0x1){var _0x2d50d6=_0x334aa7[_0x16ebf9('0xe3c')]['offlineForm'][_0x16ebf9('0x1b9a')][_0x2ecba7+0x1];_0x334aa7['chatWebsite'][_0x16ebf9('0x1a86')][_0x16ebf9('0x1b9a')][_0x2ecba7]=_0x2d50d6,_0x334aa7[_0x16ebf9('0xe3c')][_0x16ebf9('0x1a86')][_0x16ebf9('0x1b9a')][_0x2ecba7+0x1]=angular[_0x16ebf9('0xd75')](_0x3c2eed);if(_0x334aa7[_0x16ebf9('0xe3c')][_0x16ebf9('0x1a86')]['fromKey']===_0x2ecba7)_0x334aa7['chatWebsite'][_0x16ebf9('0x1a86')]['fromKey']++;else _0x334aa7['chatWebsite'][_0x16ebf9('0x1a86')][_0x16ebf9('0x17f6')]===_0x2ecba7+0x1&&_0x334aa7[_0x16ebf9('0xe3c')][_0x16ebf9('0x1a86')][_0x16ebf9('0x17f6')]--;}}function _0x3373fc(_0x8efac9){var _0x5bab4c=_0x149ca6;_0x334aa7[_0x5bab4c('0xe3c')]['offlineForm'][_0x5bab4c('0x1b9a')][_0x5bab4c('0x206c')]({'type':_0x8efac9,'cmField':null,'variable':null});}function _0x33fa81(_0x372de2){var _0x1f8838=_0x149ca6,_0x17ca59=_0x1ff2aa[_0x1f8838('0xa33')]()[_0x1f8838('0x4b4')](_0x1f8838('0x27f8'))[_0x1f8838('0x226d')]('Are\x20you\x20sure?')[_0x1f8838('0x7a7')](_0x1f8838('0x2136'))['ok']('Ok')['cancel']('Cancel');_0x1ff2aa[_0x1f8838('0x853')](_0x17ca59)[_0x1f8838('0x21ad')](function(){var _0x369c17=_0x1f8838;_0x334aa7[_0x369c17('0xe3c')][_0x369c17('0x1a86')]['items'][_0x369c17('0xafe')](_0x372de2,0x1);});}}const _0x2c7096=_0x1eb1bc;_0x4f7235[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0xccd')];function _0x4f7235(_0x7cd359,_0xddd052,_0x139482){var _0x95b111=_0x3877e3,_0x47581e=this;_0x47581e[_0x95b111('0xe3c')]={},_0x47581e[_0x95b111('0x1b68')]={},_0x47581e[_0x95b111('0x258')]=[{'type':_0x95b111('0x214'),'name':_0x95b111('0x1cfe'),'icon':_0x95b111('0x1eb9')},{'type':_0x95b111('0x1f34'),'name':'Select','icon':_0x95b111('0xb2f')},{'type':_0x95b111('0xf81'),'name':_0x95b111('0x1599'),'icon':_0x95b111('0x1ecd')},{'type':_0x95b111('0x20f9'),'name':_0x95b111('0x45a'),'icon':_0x95b111('0x1c6c')},{'type':_0x95b111('0x227a'),'name':_0x95b111('0x1c31'),'icon':_0x95b111('0x9ba')},{'type':_0x95b111('0x274a'),'name':_0x95b111('0xdb4'),'icon':_0x95b111('0x575')},{'type':_0x95b111('0x17ba'),'name':_0x95b111('0x11c6'),'icon':_0x95b111('0x73')}],_0x47581e[_0x95b111('0x1d75')]=_0x3aee12,_0x47581e['up']=_0x267a2d,_0x47581e[_0x95b111('0x16f4')]=_0x2a4556,_0x47581e[_0x95b111('0x1842')]=_0x349821,_0x47581e[_0x95b111('0x16a2')]=_0x2c6052;function _0x3aee12(_0x4a2d07){var _0x57d6d5=_0x95b111;_0x47581e['fields']=[],_0x47581e[_0x57d6d5('0xbbd')]=[],_0x47581e[_0x57d6d5('0x1c03')]=['id',_0x57d6d5('0x23ae'),_0x57d6d5('0x15af'),_0x57d6d5('0x815'),_0x57d6d5('0x20f8'),_0x57d6d5('0x1376'),_0x57d6d5('0x9f8')],_0x47581e[_0x57d6d5('0xe3c')]=_0x4a2d07,_0x86640f()[_0x57d6d5('0x23aa')](_0x47581e[_0x57d6d5('0xe3c')][_0x57d6d5('0x1b68')])&&(_0x47581e[_0x57d6d5('0xe3c')][_0x57d6d5('0x1b68')]={'items':[],'fromKey':null}),_0x139482[_0x57d6d5('0x11e0')][_0x57d6d5('0xb2d')]({'id':_0x47581e[_0x57d6d5('0xe3c')][_0x57d6d5('0x815')]})[_0x57d6d5('0x1376')][_0x57d6d5('0x21ad')](function(_0x55cde5){var _0x4bf0f8=_0x57d6d5;for(var _0x4da737=0x0;_0x4da737<_0x55cde5[_0x4bf0f8('0x1b33')]['length'];_0x4da737++){_0x47581e[_0x4bf0f8('0xbbd')][_0x4bf0f8('0x206c')]({'key':_0x4bf0f8('0x714')+_0x55cde5['rows'][_0x4da737]['id'],'value':_0x55cde5[_0x4bf0f8('0x1b33')][_0x4da737][_0x4bf0f8('0xe62')]});}return _0x139482['cmContact'][_0x4bf0f8('0x1219')]()[_0x4bf0f8('0x1376')];})[_0x57d6d5('0x21ad')](function(_0x5ed796){var _0x35c8f0=_0x57d6d5,_0x373cdd=_0x86640f()[_0x35c8f0('0x223b')](_0x5ed796);for(var _0x2e3d68=0x0;_0x2e3d68<_0x373cdd[_0x35c8f0('0x577')];_0x2e3d68++){!_0x86640f()[_0x35c8f0('0xb34')](_0x47581e[_0x35c8f0('0x1c03')],_0x373cdd[_0x2e3d68])&&!_0x86640f()[_0x35c8f0('0x2837')](_0x373cdd[_0x2e3d68],_0x35c8f0('0x714'))&&_0x47581e['fields'][_0x35c8f0('0xd0c')]({'key':_0x373cdd[_0x2e3d68],'value':_0x373cdd[_0x2e3d68]});}return _0x139482['variable'][_0x35c8f0('0x595')]()['$promise'];})[_0x57d6d5('0x21ad')](function(_0x221d2c){var _0x170d0c=_0x57d6d5;_0x47581e[_0x170d0c('0x142d')]=_0x221d2c['rows'];})[_0x57d6d5('0x1c1d')](function(_0x1bcd20){var _0x1b8320=_0x57d6d5;console[_0x1b8320('0x2092')](_0x1bcd20);});}function _0x267a2d(_0x4f77f5,_0x7727d1){var _0x3d40fe=_0x95b111;if(_0x7727d1!==0x0){var _0x5c8ed3=_0x47581e[_0x3d40fe('0xe3c')][_0x3d40fe('0x1b68')][_0x3d40fe('0x1b9a')][_0x7727d1-0x1];_0x47581e[_0x3d40fe('0xe3c')]['onlineForm']['items'][_0x7727d1]=_0x5c8ed3,_0x47581e[_0x3d40fe('0xe3c')]['onlineForm'][_0x3d40fe('0x1b9a')][_0x7727d1-0x1]=angular[_0x3d40fe('0xd75')](_0x4f77f5);if(_0x47581e[_0x3d40fe('0xe3c')][_0x3d40fe('0x1b68')][_0x3d40fe('0x17f6')]===_0x7727d1)_0x47581e[_0x3d40fe('0xe3c')][_0x3d40fe('0x1b68')]['fromKey']--;else _0x47581e['chatWebsite'][_0x3d40fe('0x1b68')]['fromKey']===_0x7727d1-0x1&&_0x47581e[_0x3d40fe('0xe3c')][_0x3d40fe('0x1b68')][_0x3d40fe('0x17f6')]++;}}function _0x2a4556(_0x590504,_0x2a34ff){var _0x25597d=_0x95b111;if(_0x2a34ff!==_0x47581e[_0x25597d('0xe3c')][_0x25597d('0x1b68')][_0x25597d('0x1b9a')][_0x25597d('0x577')]-0x1){var _0x1bbd38=_0x47581e[_0x25597d('0xe3c')]['onlineForm']['items'][_0x2a34ff+0x1];_0x47581e[_0x25597d('0xe3c')][_0x25597d('0x1b68')][_0x25597d('0x1b9a')][_0x2a34ff]=_0x1bbd38,_0x47581e['chatWebsite'][_0x25597d('0x1b68')][_0x25597d('0x1b9a')][_0x2a34ff+0x1]=angular['copy'](_0x590504);if(_0x47581e[_0x25597d('0xe3c')][_0x25597d('0x1b68')][_0x25597d('0x17f6')]===_0x2a34ff)_0x47581e[_0x25597d('0xe3c')][_0x25597d('0x1b68')]['fromKey']++;else _0x47581e[_0x25597d('0xe3c')][_0x25597d('0x1b68')][_0x25597d('0x17f6')]===_0x2a34ff+0x1&&_0x47581e[_0x25597d('0xe3c')][_0x25597d('0x1b68')]['fromKey']--;}}function _0x349821(_0xe6e3dc){var _0x5bfa98=_0x95b111;_0x47581e[_0x5bfa98('0xe3c')]['onlineForm'][_0x5bfa98('0x1b9a')][_0x5bfa98('0x206c')]({'type':_0xe6e3dc,'cmField':null,'variable':null});}function _0x2c6052(_0x509fc7){var _0x4d1b9c=_0x95b111,_0x253fa0=_0x7cd359['confirm']()[_0x4d1b9c('0x4b4')]('The\x20component\x20will\x20be\x20deleted.')[_0x4d1b9c('0x226d')](_0x4d1b9c('0x196b'))['ariaLabel'](_0x4d1b9c('0x2136'))['ok']('Ok')[_0x4d1b9c('0x3b5')]('Cancel');_0x7cd359[_0x4d1b9c('0x853')](_0x253fa0)['then'](function(){var _0x47a1bd=_0x4d1b9c;_0x47581e[_0x47a1bd('0xe3c')]['onlineForm'][_0x47a1bd('0x17f6')]===_0x509fc7&&(_0x47581e[_0x47a1bd('0xe3c')][_0x47a1bd('0x1b68')][_0x47a1bd('0x17f6')]=null),_0x47581e[_0x47a1bd('0xe3c')][_0x47a1bd('0x1b68')][_0x47a1bd('0x1b9a')][_0x47a1bd('0xafe')](_0x509fc7,0x1),!_0x47581e[_0x47a1bd('0xe3c')][_0x47a1bd('0x1b68')][_0x47a1bd('0x1b9a')][_0x47a1bd('0x577')]&&(_0x47581e[_0x47a1bd('0xe3c')][_0x47a1bd('0x1b68')][_0x47a1bd('0x17f6')]=null);});}}const _0x30fb6a=_0x4f7235;_0x4d5964[_0x3877e3('0x1a81')]=[_0x3877e3('0x26'),_0x3877e3('0x1908')];function _0x4d5964(_0x2da0f6,_0x4a07f4){var _0x419044=_0x3877e3,_0x273715=this,_0x5075c1=0x8,_0x42e239=_0x5075c1*0x400*0x400;_0x273715[_0x419044('0xe3c')]={},_0x273715[_0x419044('0x5ed')],_0x273715[_0x419044('0x467')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x42e239,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x273715['ngFlow']={'flow':{}},_0x273715[_0x419044('0x8c3')]=![],_0x273715[_0x419044('0x20d9')]=_0x43394b,_0x273715[_0x419044('0x12d0')]=_0x35af4c,_0x273715['fileSuccess']=_0x55c034,_0x273715['init']=_0x1fbb22;function _0x1fbb22(_0x281fb0,_0x23fd73){var _0x1b15fb=_0x419044;_0x273715[_0x1b15fb('0xe3c')]=angular['copy'](_0x281fb0),_0x273715['crudPermissions']=typeof _0x23fd73!==_0x1b15fb('0xddc')?_0x23fd73:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x273715[_0x1b15fb('0x467')][_0x1b15fb('0x14a5')]=_0x1b15fb('0x17a8')['replace'](_0x1b15fb('0x1938'),_0x273715[_0x1b15fb('0xe3c')]['id']),_0x273715[_0x1b15fb('0xe3c')][_0x1b15fb('0x851')]=[];}function _0x43394b(_0x2ff54e){var _0x3b721e=_0x419044,_0x5e125f=[_0x3b721e('0x14f5'),_0x3b721e('0x13d2')];if(!_0x86640f()['includes'](_0x5e125f,_0x2ff54e[_0x3b721e('0x9bb')]()))return _0x4a07f4[_0x3b721e('0x2092')]({'title':_0x3b721e('0x397')+_0x2ff54e[_0x3b721e('0x9bb')](),'msg':_0x3b721e('0x156b')+_0x5e125f[_0x3b721e('0x136')]()}),![];if(_0x2ff54e['size']>_0x42e239)return _0x4a07f4[_0x3b721e('0x2092')]({'title':'File\x20too\x20big','msg':_0x3b721e('0xc3a')+_0x5075c1+'MB'}),![];var _0x80f713={'id':_0x2ff54e['uniqueIdentifier'],'file':_0x2ff54e,'type':_0x3b721e('0x326')};return _0x273715[_0x3b721e('0xe3c')]['images'][_0x3b721e('0xd0c')](_0x80f713),!![];}function _0x35af4c(){var _0x2a06a3=_0x419044;_0x273715[_0x2a06a3('0x1413')][_0x2a06a3('0x1d76')][_0x2a06a3('0x1dd3')][_0x2a06a3('0x4d8')]={'X-Requested-With':'XMLHttpRequest','Authorization':'Bearer\x20'+_0x2da0f6[_0x2a06a3('0x595')](_0x2a06a3('0x863'))},_0x273715['ngFlow'][_0x2a06a3('0x1d76')]['upload']();}function _0x55c034(_0x54991d){var _0x11dda7=_0x419044;angular['forEach'](_0x273715[_0x11dda7('0xe3c')][_0x11dda7('0x851')],function(_0x250f7b){var _0x32da29=_0x11dda7;if(_0x250f7b['id']===_0x54991d[_0x32da29('0x25f6')]){var _0x48b270=new FileReader();_0x48b270[_0x32da29('0x1e50')](_0x250f7b[_0x32da29('0x18a9')]['file']),_0x48b270[_0x32da29('0x1efd')]=function(_0x7b4b2e){var _0x154c53=_0x32da29;_0x250f7b['url']=_0x7b4b2e[_0x154c53('0x14a5')][_0x154c53('0x8c7')];},_0x250f7b['type']=_0x32da29('0x1318');}});}}const _0x5be442=_0x4d5964,_0x421fef=_0x398308['p']+_0x3877e3('0x2139');_0x50620b['$inject']=[_0x3877e3('0x26'),'$scope',_0x3877e3('0xa9f'),'$q',_0x3877e3('0x13c1'),'$timeout',_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x15bc')];function _0x50620b(_0x2cd293,_0x50ee5d,_0x3ad484,_0x43018e,_0x1afc46,_0x166f40,_0xb1f55b,_0x3e08bf,_0x658f44,_0x236cf4,_0x174c98){var _0x235fc2=_0x3877e3,_0x3f5a5f=this;_0x3f5a5f['currentUser']=_0x174c98[_0x235fc2('0x15ed')](),_0x3f5a5f[_0x235fc2('0xe3c')]={},_0x3f5a5f['chatWebsiteInteractions']={'count':0x0,'rows':[]},_0x3f5a5f['selectedChatWebsiteInteractions']=[],_0x3f5a5f['crudPermissions'],_0x3f5a5f[_0x235fc2('0x77')]={'read':'null','closed':_0x235fc2('0x27a'),'sort':'-createdAt','includeAll':_0x235fc2('0x19bd'),'limit':0xa,'page':0x1},_0x3f5a5f[_0x235fc2('0x1d75')]=_0x217e6a,_0x3f5a5f['deleteConfirm']=_0x3bc29d,_0x3f5a5f[_0x235fc2('0x1911')]=_0x3c5487,_0x3f5a5f['success']=_0x37412e,_0x3f5a5f[_0x235fc2('0x2833')]=_0x259dea,_0x3f5a5f[_0x235fc2('0x49f')]=_0x30b2b4,_0x3f5a5f[_0x235fc2('0x7e3')]=_0x4f84f2,_0x3f5a5f[_0x235fc2('0x135e')]=_0x2f5451,_0x3f5a5f[_0x235fc2('0xdbf')]=_0x5d459e,_0x3f5a5f['deleteSelectedChatWebsiteInteractions']=_0x298c5a;function _0x217e6a(_0x1924eb,_0x52c416){var _0x4be236=_0x235fc2;_0x3f5a5f[_0x4be236('0xe3c')]=_0x1924eb,_0x3f5a5f[_0x4be236('0x5ed')]=typeof _0x52c416!==_0x4be236('0xddc')?_0x52c416:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3f5a5f['query']['ChatWebsiteId']=_0x3f5a5f['chatWebsite']['id'],_0x3f5a5f['advancedSearch']={'fields':_0x35a1ea()},_0x3f6dbe();}function _0x3f6dbe(){var _0x3ad2d4=_0x235fc2;return _0x236cf4['tag']['get']()['$promise']['then'](function(_0x2ee83e){var _0x2bc5ac=a0_0x2e7f;_0x3f5a5f[_0x2bc5ac('0x1889')]=_0x2ee83e||{'count':0x0,'rows':[]};})[_0x3ad2d4('0x21ad')](function(){var _0x14130d=_0x3ad2d4;_0x3f5a5f[_0x14130d('0x2255')]=_0x472bf9();});}function _0x472bf9(){var _0xec6fdc=_0x235fc2;return[{'name':_0xec6fdc('0x18a1'),'key':'createdAt','type':_0xec6fdc('0x2457'),'label':'DASHBOARDS.SELECT_DATE'},{'name':'Messages','key':_0xec6fdc('0x14ee'),'type':_0xec6fdc('0x2844'),'label':_0xec6fdc('0x15f4'),'customOptions':[{'value':0x0,'translate':_0xec6fdc('0x1799')},{'value':0x1,'translate':_0xec6fdc('0x629')},{'value':null,'translate':_0xec6fdc('0x1ee5')}]},{'name':_0xec6fdc('0x843'),'key':_0xec6fdc('0x14ba'),'type':_0xec6fdc('0x2844'),'label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':_0xec6fdc('0x11d2')},{'value':null,'translate':_0xec6fdc('0x1ee5')}]},{'name':_0xec6fdc('0x1a44'),'key':'UserId','type':_0xec6fdc('0x2844'),'label':_0xec6fdc('0x115d'),'customOptions':[{'value':_0xec6fdc('0x27a'),'translate':_0xec6fdc('0x1932')},{'value':undefined,'translate':_0xec6fdc('0x1ee5')}]},{'name':_0xec6fdc('0x295'),'key':'tag','type':_0xec6fdc('0x91f'),'label':_0xec6fdc('0x138d'),'options':_0x3f5a5f[_0xec6fdc('0x1889')][_0xec6fdc('0x1b33')],'placeholder':_0xec6fdc('0xb1c')}];}function _0x35a1ea(){var _0x32b5f8=_0x235fc2;return[{'name':'Id','column':'id','type':'number'},{'name':_0x32b5f8('0x1d10'),'column':_0x32b5f8('0x1d10'),'type':_0x32b5f8('0x175c'),'options':{'searchFields':[_0x32b5f8('0x992'),_0x32b5f8('0x6d'),_0x32b5f8('0x2822')],'route':{'model':_0x32b5f8('0x25dc'),'action':_0x32b5f8('0x595'),'params':{'fields':_0x32b5f8('0x2704'),'Contact':_0x32b5f8('0x169e'),'nolimit':!![]}},'extraOperators':[_0x32b5f8('0xb58')],'excludedOperators':[_0x32b5f8('0x3fe')]}},{'name':_0x32b5f8('0x1d80'),'column':_0x32b5f8('0x32a'),'type':_0x32b5f8('0xc1e'),'options':{'excludedOperators':[_0x32b5f8('0x940'),_0x32b5f8('0x3fe')]}},{'name':'Body','column':_0x32b5f8('0x11e5'),'type':_0x32b5f8('0xc1e'),'options':{'excludedOperators':[_0x32b5f8('0x940'),_0x32b5f8('0x3fe')]}},{'name':'Status','column':_0x32b5f8('0x14ba'),'type':_0x32b5f8('0x2844'),'values':[{'id':0x0,'translate':_0x32b5f8('0x19e2')},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':[_0x32b5f8('0x3fe')]}},{'name':_0x32b5f8('0x1a44'),'column':_0x32b5f8('0x6e4'),'type':_0x32b5f8('0x175c'),'options':{'table':'i','route':{'model':_0x32b5f8('0x1775'),'action':_0x32b5f8('0x595'),'params':{'role':_0x32b5f8('0x2402'),'fields':_0x32b5f8('0x2326'),'nolimit':!![]}},'searchFields':[_0x32b5f8('0x20f5'),_0x32b5f8('0x19fe')],'extraOperators':[_0x32b5f8('0xb58')],'excludedOperators':[_0x32b5f8('0x3fe')]}},{'name':'Tags','column':_0x32b5f8('0x295'),'type':_0x32b5f8('0x91f'),'options':{'route':{'model':'tag','action':_0x32b5f8('0x595'),'params':{'nolimit':!![]}},'excludedOperators':[_0x32b5f8('0x23')]}},{'name':'Start\x20Date','column':_0x32b5f8('0x23ae'),'type':_0x32b5f8('0x2457'),'options':{'excludedOperators':[_0x32b5f8('0x3fe')]}},{'name':_0x32b5f8('0x1715'),'column':'unreadMessages','type':'select','values':[{'id':0x1,'translate':_0x32b5f8('0x629')},{'id':0x0,'translate':_0x32b5f8('0x1799')}],'options':{'excludedOperators':[_0x32b5f8('0x3fe')]}}];}function _0x4f84f2(){var _0x53c7b8=_0x235fc2;_0xb1f55b['show']({'controller':_0x53c7b8('0xde1'),'controllerAs':'vm','templateUrl':_0x44f47e,'parent':angular[_0x53c7b8('0x1676')](_0x3e08bf[_0x53c7b8('0x2452')]),'clickOutsideToClose':![],'locals':{'fields':_0x3f5a5f['advancedSearch']['fields'],'color':undefined,'storagePath':_0x53c7b8('0x22ba')},'fullscreen':!![]})['then'](function(_0x2dbe05){var _0x3e6e53=_0x53c7b8;_0x3f5a5f[_0x3e6e53('0x77')][_0x3e6e53('0x24e7')]=_0x2dbe05===![]?undefined:_0x2dbe05;if(_0x3f5a5f[_0x3e6e53('0x77')][_0x3e6e53('0x24e7')])_0x259dea();else _0x2dbe05===![]&&_0x259dea();})[_0x53c7b8('0x1c1d')](function(_0x288321){var _0x3166aa=_0x53c7b8;_0x658f44[_0x3166aa('0x2092')]({'title':_0x3166aa('0x1399'),'msg':_0x288321['data']?JSON['stringify'](_0x288321['data'][_0x3166aa('0x1224')]):_0x288321[_0x3166aa('0x174f')]()});});}function _0x3c5487(_0x2fc910,_0x117620,_0x4ad094){var _0x199ae9=_0x235fc2;return _0x236cf4['chatInteraction'][_0x199ae9('0xb0')]({'id':_0x2fc910['id'],'exists':!![],'attachments':_0x4ad094})[_0x199ae9('0x1376')][_0x199ae9('0x21ad')](function(_0x215825){var _0x527d86=_0x199ae9,_0x39fa9e=[_0x215825[_0x527d86('0x3da')]],_0x49823='interaction'+_0x2fc910['id'],_0x3d8fe4=new Blob(_0x39fa9e,{'type':_0x215825[_0x527d86('0x7fa')]});_0x49823=_0x527d86('0x247')+_0x2fc910['id']+_0x527d86('0x1622');var _0x5048f0=window[_0x527d86('0x27c3')][_0x527d86('0x162e')]('a');_0x5048f0[_0x527d86('0x127a')](_0x527d86('0x69e'),URL[_0x527d86('0x167b')](_0x3d8fe4)),_0x5048f0[_0x527d86('0x127a')](_0x527d86('0xb0'),_0x49823),document[_0x527d86('0x2452')][_0x527d86('0x14d0')](_0x5048f0),_0x5048f0[_0x527d86('0x997')]();})[_0x199ae9('0x1c1d')](function(_0x4f8be7){var _0x2ec6a0=_0x199ae9;if(_0x4f8be7[_0x2ec6a0('0x11c2')]&&_0x4f8be7[_0x2ec6a0('0x11c2')][_0x2ec6a0('0x1a69')]&&_0x4f8be7[_0x2ec6a0('0x11c2')][_0x2ec6a0('0x1a69')][_0x2ec6a0('0x577')])for(var _0xa51328=0x0;_0xa51328<_0x4f8be7[_0x2ec6a0('0x11c2')][_0x2ec6a0('0x1a69')][_0x2ec6a0('0x577')];_0xa51328+=0x1){_0x658f44['error']({'title':_0x4f8be7[_0x2ec6a0('0x11c2')][_0x2ec6a0('0x1a69')][_0xa51328]['type'],'msg':_0x4f8be7[_0x2ec6a0('0x11c2')][_0x2ec6a0('0x1a69')][_0xa51328][_0x2ec6a0('0x1224')]});}else _0x658f44[_0x2ec6a0('0x2092')]({'title':_0x4f8be7['status']?_0x2ec6a0('0x22d')+_0x4f8be7[_0x2ec6a0('0x209')]+'\x20-\x20'+_0x4f8be7[_0x2ec6a0('0x1808')]:'api.chatWebsite.save','msg':_0x4f8be7[_0x2ec6a0('0x11c2')]?JSON[_0x2ec6a0('0x25e')](_0x4f8be7[_0x2ec6a0('0x11c2')][_0x2ec6a0('0x1224')]):_0x4f8be7['toString']()});});}function _0x3bc29d(_0x5931d2,_0x187b6e){var _0x6057e2=_0x235fc2,_0x10142d=_0xb1f55b[_0x6057e2('0xa33')]()[_0x6057e2('0x4b4')](_0x6057e2('0x6'))['htmlContent'](''+(_0x5931d2[_0x6057e2('0x19fe')]||_0x5931d2['id']&&_0x86640f()[_0x6057e2('0x22e')]('interaction\x20#')+_0x5931d2['id']||_0x6057e2('0x1d23'))+_0x6057e2('0x2135')+'\x20will\x20be\x20deleted.')[_0x6057e2('0x7a7')](_0x6057e2('0x16bb'))[_0x6057e2('0x1e6d')](_0x187b6e)['ok']('OK')['cancel'](_0x6057e2('0x284b'));_0xb1f55b[_0x6057e2('0x853')](_0x10142d)[_0x6057e2('0x21ad')](function(){_0x5d459e(_0x5931d2);},function(){var _0x4334da=_0x6057e2;console[_0x4334da('0x6fb')]('CANCEL');});}function _0x37412e(_0x1433f4){var _0x53f7df=_0x235fc2;_0x3f5a5f['chatWebsiteInteractions']=_0x1433f4||{'count':0x0,'rows':[]};for(var _0x2da041=0x0;_0x2da041<_0x3f5a5f[_0x53f7df('0x1c8a')]['rows'][_0x53f7df('0x577')];_0x2da041+=0x1){var _0x1cc0a2=_0x3f5a5f[_0x53f7df('0x1c8a')]['rows'][_0x2da041];_0x164525(_0x1cc0a2),_0x1cc0a2[_0x53f7df('0x11a8')]['name']=_0x56d154(_0x1cc0a2);}}function _0x259dea(){var _0x258d61=_0x235fc2;_0x3f5a5f['query']['offset']=(_0x3f5a5f[_0x258d61('0x77')][_0x258d61('0x2376')]-0x1)*_0x3f5a5f['query'][_0x258d61('0x1f4a')],_0x3f5a5f['promise']=_0x236cf4[_0x258d61('0xc06')]['get'](_0x3f5a5f['query'],_0x37412e)[_0x258d61('0x1376')];}function _0x30b2b4(_0x482718,_0x1089dd){var _0x5ecf13=_0x235fc2;_0xb1f55b[_0x5ecf13('0x853')]({'controller':_0x5ecf13('0xbd1'),'controllerAs':'vm','templateUrl':_0x421fef,'parent':angular[_0x5ecf13('0x1676')](_0x3e08bf[_0x5ecf13('0x2452')]),'targetEvent':_0x482718,'clickOutsideToClose':!![],'onShowing':function _0x3bc115(_0x692740){var _0x48a2a6=_0x5ecf13;_0x692740['vm'][_0x48a2a6('0x1d75')]({'id':0x1,'channel':_0x48a2a6('0x1f65'),'interaction':_0x1089dd,'spy':!![]},_0x50ee5d[_0x48a2a6('0x223d')]['vm'][_0x48a2a6('0x21e')]);}});}function _0x5d459e(_0x515981){var _0x595dce=_0x235fc2;_0x236cf4[_0x595dce('0xc06')]['delete']({'id':_0x515981['id']})[_0x595dce('0x1376')][_0x595dce('0x21ad')](function(){var _0x67d905=_0x595dce;_0x86640f()['remove'](_0x3f5a5f[_0x67d905('0x1c8a')][_0x67d905('0x1b33')],{'id':_0x515981['id']}),_0x3f5a5f[_0x67d905('0x1c8a')][_0x67d905('0x205f')]-=0x1,!_0x3f5a5f[_0x67d905('0x1c8a')]['rows'][_0x67d905('0x577')]&&_0x259dea(),_0x658f44['success']({'title':_0x67d905('0x1eb4'),'msg':_0x515981[_0x67d905('0x19fe')]?_0x515981[_0x67d905('0x19fe')]+'\x20has\x20been\x20deleted!':''});})[_0x595dce('0x1c1d')](function(_0xe0b028){var _0x5e2c3b=_0x595dce;if(_0xe0b028['data']&&_0xe0b028[_0x5e2c3b('0x11c2')][_0x5e2c3b('0x1a69')]&&_0xe0b028[_0x5e2c3b('0x11c2')][_0x5e2c3b('0x1a69')][_0x5e2c3b('0x577')]){_0x3f5a5f[_0x5e2c3b('0x1a69')]=_0xe0b028[_0x5e2c3b('0x11c2')][_0x5e2c3b('0x1a69')]||[{'message':_0xe0b028[_0x5e2c3b('0x174f')](),'type':_0x5e2c3b('0x4e1')}];for(var _0x59d4e4=0x0;_0x59d4e4<_0xe0b028[_0x5e2c3b('0x11c2')][_0x5e2c3b('0x1a69')][_0x5e2c3b('0x577')];_0x59d4e4++){_0x658f44['error']({'title':_0xe0b028[_0x5e2c3b('0x11c2')][_0x5e2c3b('0x1a69')][_0x59d4e4][_0x5e2c3b('0x7fa')],'msg':_0xe0b028[_0x5e2c3b('0x11c2')][_0x5e2c3b('0x1a69')][_0x59d4e4][_0x5e2c3b('0x1224')]});}}else _0x658f44['error']({'title':_0xe0b028[_0x5e2c3b('0x209')]?_0x5e2c3b('0x22d')+_0xe0b028[_0x5e2c3b('0x209')]+'\x20-\x20'+_0xe0b028[_0x5e2c3b('0x1808')]:_0x5e2c3b('0x4e1'),'msg':_0xe0b028['data']?JSON[_0x5e2c3b('0x25e')](_0xe0b028[_0x5e2c3b('0x11c2')][_0x5e2c3b('0x1224')]):_0xe0b028[_0x5e2c3b('0x1224')]||_0xe0b028['toString']()});});}function _0x2f5451(){var _0x3407ff=_0x235fc2,_0x1b258b=angular[_0x3407ff('0xd75')](_0x3f5a5f[_0x3407ff('0x20fe')]);return _0x3f5a5f[_0x3407ff('0x20fe')]=[],_0x1b258b;}function _0x298c5a(_0x3137a4){var _0x5f2ca=_0x235fc2,_0x42f125=_0xb1f55b[_0x5f2ca('0xa33')]()[_0x5f2ca('0x4b4')](_0x5f2ca('0x1ad2'))[_0x5f2ca('0x276b')](_0x5f2ca('0x622')+_0x3f5a5f[_0x5f2ca('0x20fe')][_0x5f2ca('0x577')]+_0x5f2ca('0xd74')+_0x5f2ca('0x25e0'))[_0x5f2ca('0x7a7')](_0x5f2ca('0x263e'))[_0x5f2ca('0x1e6d')](_0x3137a4)['ok']('OK')[_0x5f2ca('0x3b5')](_0x5f2ca('0x284b'));_0xb1f55b['show'](_0x42f125)[_0x5f2ca('0x21ad')](function(){var _0x2d0134=_0x5f2ca;_0x3f5a5f[_0x2d0134('0x20fe')][_0x2d0134('0x1a52')](function(_0x511463){_0x5d459e(_0x511463);}),_0x3f5a5f[_0x2d0134('0x20fe')]=[];});}function _0x164525(_0x178f88){var _0x2e0a16=_0x235fc2;_0x178f88[_0x2e0a16('0x1d10')]?_0x178f88['contactName']=(_0x178f88['Contact'][_0x2e0a16('0x992')]||'')+'\x20'+(_0x178f88['Contact']['lastName']||''):_0x178f88[_0x2e0a16('0x1717')]=_0x1afc46[_0x2e0a16('0x183e')](_0x2e0a16('0xc13'));}function _0x56d154(_0x46c850){var _0x3c96e1=_0x235fc2;if(_0x46c850[_0x3c96e1('0x1dc6')])return _0x46c850[_0x3c96e1('0x1dc6')]===_0x3f5a5f['currentUser']['id']?_0x1afc46[_0x3c96e1('0x183e')](_0x3c96e1('0x4db')):_0x46c850[_0x3c96e1('0x11a8')][_0x3c96e1('0x20f5')]+'\x20<'+_0x46c850[_0x3c96e1('0x11a8')][_0x3c96e1('0x201f')]+'>';return _0x1afc46[_0x3c96e1('0x183e')]('DASHBOARDS.NOT_ASSIGNED');}var _0x23954a=!![],_0x1f759e=0x1;_0x50ee5d[_0x235fc2('0x10e8')](_0x235fc2('0x10ff'),function(_0x3d5c3b,_0x534308){var _0x493401=_0x235fc2;_0x23954a?_0x166f40(function(){_0x23954a=![];}):(!_0x534308&&(_0x1f759e=_0x3f5a5f[_0x493401('0x77')]['page']),_0x3d5c3b!==_0x534308&&(_0x3f5a5f[_0x493401('0x77')][_0x493401('0x2376')]=0x1),!_0x3d5c3b&&(_0x3f5a5f[_0x493401('0x77')][_0x493401('0x2376')]=_0x1f759e),_0x259dea());});}const _0x2f55f3=_0x50620b;_0x4c77f1[_0x3877e3('0x1a81')]=[_0x3877e3('0x26'),_0x3877e3('0x1908')];function _0x4c77f1(_0x20cb72,_0x299efc){var _0x1adb2f=_0x3877e3,_0x479723=this,_0xc31562=0x8,_0x242375=_0xc31562*0x400*0x400;_0x479723[_0x1adb2f('0xe3c')]={},_0x479723[_0x1adb2f('0x5ed')],_0x479723[_0x1adb2f('0x467')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x242375,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x479723['ngFlow']={'flow':{}},_0x479723[_0x1adb2f('0x8c3')]=![],_0x479723[_0x1adb2f('0x20d9')]=_0x315830,_0x479723[_0x1adb2f('0x12d0')]=_0x4cf7c9,_0x479723['fileSuccess']=_0x4e98b2,_0x479723[_0x1adb2f('0x1d75')]=_0x3ff99b;function _0x3ff99b(_0x408df4,_0xd85f02){var _0x49dc9e=_0x1adb2f;_0x479723['chatWebsite']=angular[_0x49dc9e('0xd75')](_0x408df4),_0x479723[_0x49dc9e('0x5ed')]=typeof _0xd85f02!==_0x49dc9e('0xddc')?_0xd85f02:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x479723[_0x49dc9e('0x467')][_0x49dc9e('0x14a5')]=_0x49dc9e('0x38f')[_0x49dc9e('0x16e4')](':id',_0x479723[_0x49dc9e('0xe3c')]['id']),_0x479723[_0x49dc9e('0xe3c')]['images']=[];}function _0x315830(_0x21b3eb){var _0x5f0981=_0x1adb2f,_0x6670a8=[_0x5f0981('0x14f5'),_0x5f0981('0x13d2')];if(!_0x86640f()[_0x5f0981('0xb34')](_0x6670a8,_0x21b3eb[_0x5f0981('0x9bb')]()))return _0x299efc[_0x5f0981('0x2092')]({'title':_0x5f0981('0x397')+_0x21b3eb[_0x5f0981('0x9bb')](),'msg':'Supported\x20extension:\x20'+_0x6670a8['join']()}),![];if(_0x21b3eb[_0x5f0981('0x337')]>_0x242375)return _0x299efc[_0x5f0981('0x2092')]({'title':_0x5f0981('0x8d1'),'msg':_0x5f0981('0xc3a')+_0xc31562+'MB'}),![];var _0x46e33d={'id':_0x21b3eb[_0x5f0981('0x25f6')],'file':_0x21b3eb,'type':'uploading'};return _0x479723['chatWebsite'][_0x5f0981('0x851')][_0x5f0981('0xd0c')](_0x46e33d),!![];}function _0x4cf7c9(){var _0x59e075=_0x1adb2f;_0x479723[_0x59e075('0x1413')]['flow'][_0x59e075('0x1dd3')]['headers']={'X-Requested-With':_0x59e075('0x24ca'),'Authorization':_0x59e075('0x5c8')+_0x20cb72['get']('motion.token')},_0x479723[_0x59e075('0x1413')]['flow'][_0x59e075('0x12d0')]();}function _0x4e98b2(_0x4438e0){var _0x2b595a=_0x1adb2f;angular['forEach'](_0x479723['chatWebsite'][_0x2b595a('0x851')],function(_0x5da29b){var _0x184a1a=_0x2b595a;if(_0x5da29b['id']===_0x4438e0['uniqueIdentifier']){var _0x30dc9b=new FileReader();_0x30dc9b['readAsDataURL'](_0x5da29b[_0x184a1a('0x18a9')]['file']),_0x30dc9b[_0x184a1a('0x1efd')]=function(_0x39082d){var _0x1f6750=_0x184a1a;_0x5da29b[_0x1f6750('0x770')]=_0x39082d[_0x1f6750('0x14a5')][_0x1f6750('0x8c7')];},_0x5da29b[_0x184a1a('0x7fa')]=_0x184a1a('0x1318');}});}}const _0x79b802=_0x4c77f1,_0x532d90=_0x398308['p']+_0x3877e3('0x739');_0x37e3ca[_0x3877e3('0x1a81')]=[_0x3877e3('0x26'),'$scope',_0x3877e3('0xa9f'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x2313'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x15bc')];function _0x37e3ca(_0x44502a,_0x2f11aa,_0x3f6d69,_0x464cc1,_0xf6a2f3,_0x5fa320,_0x41d65e,_0x3670c5,_0x7e788,_0x553711,_0x14a7ac){var _0xffb3f1=_0x3877e3,_0x4dbf46=this;_0x4dbf46[_0xffb3f1('0x123f')]=_0x14a7ac[_0xffb3f1('0x15ed')](),_0x4dbf46[_0xffb3f1('0xe3c')]={},_0x4dbf46[_0xffb3f1('0x2018')]={'count':0x0,'rows':[]},_0x4dbf46[_0xffb3f1('0x757')]=[],_0x4dbf46[_0xffb3f1('0x5ed')],_0x4dbf46['query']={'fields':_0xffb3f1('0x871'),'sort':_0xffb3f1('0xfef'),'limit':0xa,'page':0x1},_0x4dbf46['init']=_0x5daa1d,_0x4dbf46[_0xffb3f1('0x15dc')]=_0x16137f,_0x4dbf46[_0xffb3f1('0xdb1')]=_0x486308,_0x4dbf46[_0xffb3f1('0x159b')]=_0x5a70db,_0x4dbf46['createOrEditChatWebsiteOfflineMessage']=_0x4f8d80,_0x4dbf46['showOfflineMessageChatWebsiteOfflineMessage']=_0x5a2638,_0x4dbf46[_0xffb3f1('0xa13')]=_0x1d7206,_0x4dbf46[_0xffb3f1('0x4a1')]=_0x377485,_0x4dbf46[_0xffb3f1('0x1eb7')]=_0x4e4055;function _0x5daa1d(_0x1486dd,_0x3544d3){var _0x5c4c8c=_0xffb3f1;_0x4dbf46['chatWebsite']=_0x1486dd,_0x4dbf46[_0x5c4c8c('0x5ed')]=typeof _0x3544d3!==_0x5c4c8c('0xddc')?_0x3544d3:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4dbf46[_0x5c4c8c('0x77')]['id']=_0x4dbf46[_0x5c4c8c('0xe3c')]['id'],_0x5a70db();}function _0x16137f(_0x12925d,_0x2f1d58){var _0x48c234=_0xffb3f1,_0x5b5ad0=_0x41d65e[_0x48c234('0xa33')]()[_0x48c234('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20offlineMessage?')['htmlContent'](_0x48c234('0x622')+(_0x12925d[_0x48c234('0x19fe')]||_0x12925d['id']&&_0x86640f()[_0x48c234('0x22e')](_0x48c234('0x75e'))+_0x12925d['id']||_0x48c234('0x23d'))+''+_0x48c234('0x25e0'))[_0x48c234('0x7a7')](_0x48c234('0x22f2'))[_0x48c234('0x1e6d')](_0x2f1d58)['ok']('OK')[_0x48c234('0x3b5')]('CANCEL');_0x41d65e[_0x48c234('0x853')](_0x5b5ad0)[_0x48c234('0x21ad')](function(){_0x377485(_0x12925d);},function(){var _0x4b2c05=_0x48c234;console[_0x4b2c05('0x6fb')]('CANCEL');});}function _0x486308(_0x770188){var _0x2aa32c=_0xffb3f1;_0x4dbf46[_0x2aa32c('0x2018')]=_0x770188||{'count':0x0,'rows':[]};}function _0x5a70db(){var _0x5afd95=_0xffb3f1;_0x4dbf46[_0x5afd95('0x77')][_0x5afd95('0x15a5')]=(_0x4dbf46[_0x5afd95('0x77')]['page']-0x1)*_0x4dbf46[_0x5afd95('0x77')]['limit'],_0x4dbf46[_0x5afd95('0x71b')]=_0x553711[_0x5afd95('0xe3c')]['getOfflineMessages'](_0x4dbf46['query'],_0x486308)[_0x5afd95('0x1376')];}function _0x4f8d80(_0xeb905d,_0x3ee2f8){var _0x41fe1e=_0xffb3f1;_0x41d65e[_0x41fe1e('0x853')]({'controller':_0x41fe1e('0x248d'),'controllerAs':'vm','templateUrl':_0x532d90,'parent':angular['element'](_0x3670c5[_0x41fe1e('0x2452')]),'targetEvent':_0xeb905d,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x4dbf46[_0x41fe1e('0xe3c')],'offlineMessage':_0x3ee2f8,'offlineMessages':_0x4dbf46[_0x41fe1e('0x2018')][_0x41fe1e('0x1b33')],'license':null,'setting':null,'crudPermissions':_0x4dbf46[_0x41fe1e('0x5ed')]}});}function _0x5a2638(_0x1a91ae,_0x4b23d5){var _0x1de247=_0xffb3f1;_0x41d65e[_0x1de247('0x853')]({'controller':_0x1de247('0xc88'),'controllerAs':'vm','templateUrl':_0x532d90,'parent':angular['element'](_0x3670c5[_0x1de247('0x2452')]),'targetEvent':_0x1a91ae,'clickOutsideToClose':!![],'resolve':{'message':[_0x1de247('0x354'),function _0x32bf62(_0x1a68fe){var _0x29f5c4=_0x1de247;return _0x1a68fe['resolve']('chatOfflineMessage@get',{'fields':_0x29f5c4('0x1bd5'),'id':_0x4b23d5['id']});}]}});}function _0x377485(_0x190d71){var _0x1f0e3b=_0xffb3f1;_0x553711['chatOfflineMessage']['delete']({'id':_0x190d71['id']})[_0x1f0e3b('0x1376')][_0x1f0e3b('0x21ad')](function(){var _0x22610e=_0x1f0e3b;_0x86640f()[_0x22610e('0x16a2')](_0x4dbf46[_0x22610e('0x2018')][_0x22610e('0x1b33')],{'id':_0x190d71['id']}),_0x4dbf46[_0x22610e('0x2018')][_0x22610e('0x205f')]-=0x1,!_0x4dbf46[_0x22610e('0x2018')][_0x22610e('0x1b33')]['length']&&_0x5a70db(),_0x7e788[_0x22610e('0xdb1')]({'title':_0x22610e('0x2523'),'msg':_0x190d71[_0x22610e('0x19fe')]?_0x190d71[_0x22610e('0x19fe')]+_0x22610e('0xb4a'):''});})[_0x1f0e3b('0x1c1d')](function(_0x452618){var _0x33e178=_0x1f0e3b;if(_0x452618[_0x33e178('0x11c2')]&&_0x452618['data'][_0x33e178('0x1a69')]&&_0x452618[_0x33e178('0x11c2')]['errors'][_0x33e178('0x577')]){_0x4dbf46[_0x33e178('0x1a69')]=_0x452618['data'][_0x33e178('0x1a69')]||[{'message':_0x452618[_0x33e178('0x174f')](),'type':'SYSTEM:GETchatWebsite'}];for(var _0x3347df=0x0;_0x3347df<_0x452618['data'][_0x33e178('0x1a69')][_0x33e178('0x577')];_0x3347df++){_0x7e788[_0x33e178('0x2092')]({'title':_0x452618[_0x33e178('0x11c2')][_0x33e178('0x1a69')][_0x3347df][_0x33e178('0x7fa')],'msg':_0x452618['data'][_0x33e178('0x1a69')][_0x3347df][_0x33e178('0x1224')]});}}else _0x7e788[_0x33e178('0x2092')]({'title':_0x452618[_0x33e178('0x209')]?_0x33e178('0x22d')+_0x452618[_0x33e178('0x209')]+'\x20-\x20'+_0x452618[_0x33e178('0x1808')]:'SYSTEM:GETchatWebsite','msg':_0x452618[_0x33e178('0x11c2')]?JSON[_0x33e178('0x25e')](_0x452618['data'][_0x33e178('0x1224')]):_0x452618[_0x33e178('0x1224')]||_0x452618[_0x33e178('0x174f')]()});});}function _0x1d7206(){var _0x40aafb=_0xffb3f1,_0x13075d=angular[_0x40aafb('0xd75')](_0x4dbf46[_0x40aafb('0x757')]);return _0x4dbf46[_0x40aafb('0x757')]=[],_0x13075d;}function _0x4e4055(_0x197c0f){var _0x1a4469=_0xffb3f1,_0x3a2060=_0x41d65e['confirm']()['title'](_0x1a4469('0xdf7'))[_0x1a4469('0x276b')](_0x1a4469('0x622')+_0x4dbf46[_0x1a4469('0x757')][_0x1a4469('0x577')]+_0x1a4469('0xd74')+'\x20will\x20be\x20deleted.')[_0x1a4469('0x7a7')](_0x1a4469('0x625'))[_0x1a4469('0x1e6d')](_0x197c0f)['ok']('OK')[_0x1a4469('0x3b5')](_0x1a4469('0x284b'));_0x41d65e[_0x1a4469('0x853')](_0x3a2060)['then'](function(){var _0x4ed46f=_0x1a4469;_0x4dbf46[_0x4ed46f('0x757')][_0x4ed46f('0x1a52')](function(_0x305dde){_0x377485(_0x305dde);}),_0x4dbf46[_0x4ed46f('0x757')]=[];});}var _0x3a7a1f=!![],_0x4c0104=0x1;_0x2f11aa[_0xffb3f1('0x10e8')](_0xffb3f1('0x10ff'),function(_0x3ca2eb,_0x4c834e){var _0x434ae9=_0xffb3f1;_0x3a7a1f?_0x5fa320(function(){_0x3a7a1f=![];}):(!_0x4c834e&&(_0x4c0104=_0x4dbf46['query']['page']),_0x3ca2eb!==_0x4c834e&&(_0x4dbf46[_0x434ae9('0x77')][_0x434ae9('0x2376')]=0x1),!_0x3ca2eb&&(_0x4dbf46[_0x434ae9('0x77')][_0x434ae9('0x2376')]=_0x4c0104),_0x5a70db());});}const _0x18caa3=_0x37e3ca;_0x2ed458[_0x3877e3('0x1a81')]=['$mdDialog','message'];function _0x2ed458(_0x5380a7,_0x25db0e){var _0x5dd76b=_0x3877e3,_0x22b46f=this;_0x22b46f['title']=_0x5dd76b('0x99e'),_0x22b46f[_0x5dd76b('0x1224')]=_0x25db0e,_0x22b46f[_0x5dd76b('0x167')]=_0x52d072;function _0x52d072(_0x3d14fe){_0x5380a7['hide'](_0x3d14fe);}}const _0x56cec1=_0x2ed458,_0x2afbc2=_0x398308['p']+_0x3877e3('0x5a3');_0x7b24a5[_0x3877e3('0x1a81')]=[_0x3877e3('0x26'),'$scope',_0x3877e3('0xa9f'),'$q','$translate','$timeout',_0x3877e3('0x1850'),'$document',_0x3877e3('0x1908'),'api','Auth'];function _0x7b24a5(_0x2dc2cf,_0x2cbb98,_0x392889,_0x539043,_0x13b375,_0x3932ac,_0x129768,_0x5436f8,_0x57c52f,_0x5c7ca4,_0x1f6ee6){var _0xaa9bbd=_0x3877e3,_0x49bca1=this;_0x49bca1[_0xaa9bbd('0x123f')]=_0x1f6ee6[_0xaa9bbd('0x15ed')](),_0x49bca1[_0xaa9bbd('0xe3c')]={},_0x49bca1[_0xaa9bbd('0x10f1')]={'count':0x0,'rows':[]},_0x49bca1[_0xaa9bbd('0xc23')]=[],_0x49bca1[_0xaa9bbd('0x5ed')],_0x49bca1['query']={'fields':'createdAt,updatedAt,id,name,type,selector,timeout','limit':0xa,'page':0x1},_0x49bca1[_0xaa9bbd('0x179c')]=_0x86640f()[_0xaa9bbd('0xcde')]([{'option':_0xaa9bbd('0x49e'),'value':_0xaa9bbd('0x564')},{'option':_0xaa9bbd('0x1149'),'value':_0xaa9bbd('0x12')}],function(_0x280a4c){var _0x12f1f5=_0xaa9bbd;return _0x86640f()[_0x12f1f5('0x16e4')](_0x280a4c[_0x12f1f5('0x2228')],new RegExp('\x27','g'),'');}),_0x49bca1[_0xaa9bbd('0x1d75')]=_0x3db3a8,_0x49bca1[_0xaa9bbd('0x15dc')]=_0x4ebbfe,_0x49bca1[_0xaa9bbd('0xdb1')]=_0x2abf38,_0x49bca1[_0xaa9bbd('0x2d3')]=_0x1dcf5b,_0x49bca1['createOrEditChatWebsiteChatProactiveAction']=_0x5e8a9a,_0x49bca1['exportSelectedChatWebsiteProactiveActions']=_0x28bcf1,_0x49bca1['deleteChatWebsiteChatProactiveAction']=_0x5dc8a2,_0x49bca1[_0xaa9bbd('0x99c')]=_0x410b25;function _0x3db3a8(_0x35db63,_0x80611f){var _0xf5ec2=_0xaa9bbd;_0x49bca1[_0xf5ec2('0xe3c')]=_0x35db63,_0x49bca1['crudPermissions']=typeof _0x80611f!=='undefined'?_0x80611f:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x49bca1[_0xf5ec2('0x77')][_0xf5ec2('0x15f9')]=_0x49bca1[_0xf5ec2('0xe3c')]['id'],_0x49bca1[_0xf5ec2('0x77')]['id']=_0x49bca1['chatWebsite']['id'],_0x1dcf5b();}function _0x4ebbfe(_0x476512,_0x1f00d0){var _0x3a908b=_0xaa9bbd,_0x42e7d6=_0x129768['confirm']()[_0x3a908b('0x4b4')](_0x3a908b('0x180a'))['htmlContent'](''+(_0x476512['name']||_0x476512['id']&&_0x86640f()['upperFirst']('chatProactiveAction\x20#')+_0x476512['id']||_0x3a908b('0x7b1'))+_0x3a908b('0x2135')+'\x20will\x20be\x20deleted.')[_0x3a908b('0x7a7')](_0x3a908b('0xd47'))['targetEvent'](_0x1f00d0)['ok']('OK')[_0x3a908b('0x3b5')]('CANCEL');_0x129768[_0x3a908b('0x853')](_0x42e7d6)['then'](function(){_0x5dc8a2(_0x476512);},function(){var _0x2f7046=_0x3a908b;console['log'](_0x2f7046('0x284b'));});}function _0x2abf38(_0x27ddb2){var _0x2ab064=_0xaa9bbd;_0x49bca1[_0x2ab064('0x10f1')]=_0x27ddb2||{'count':0x0,'rows':[]};}function _0x1dcf5b(){var _0x2e994b=_0xaa9bbd;_0x49bca1[_0x2e994b('0x77')][_0x2e994b('0x15a5')]=(_0x49bca1[_0x2e994b('0x77')][_0x2e994b('0x2376')]-0x1)*_0x49bca1['query'][_0x2e994b('0x1f4a')],_0x49bca1[_0x2e994b('0x71b')]=_0x5c7ca4[_0x2e994b('0xe3c')][_0x2e994b('0x18d6')](_0x49bca1[_0x2e994b('0x77')],_0x2abf38)[_0x2e994b('0x1376')];}function _0x5e8a9a(_0x36b9b1,_0x5458c3){var _0x50839e=_0xaa9bbd;_0x129768[_0x50839e('0x853')]({'controller':_0x50839e('0x13f7'),'controllerAs':'vm','templateUrl':_0x2afbc2,'parent':angular['element'](_0x5436f8[_0x50839e('0x2452')]),'targetEvent':_0x36b9b1,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x49bca1['chatWebsite'],'chatProactiveAction':_0x5458c3,'proactive':_0x49bca1[_0x50839e('0x10f1')]['rows'],'license':null,'setting':null,'crudPermissions':_0x49bca1['crudPermissions']}});}function _0x5dc8a2(_0x2fd418){var _0x499d5b=_0xaa9bbd;_0x5c7ca4[_0x499d5b('0x7b1')][_0x499d5b('0x1164')]({'id':_0x2fd418['id']})[_0x499d5b('0x1376')][_0x499d5b('0x21ad')](function(){var _0xa67e9c=_0x499d5b;_0x86640f()[_0xa67e9c('0x16a2')](_0x49bca1[_0xa67e9c('0x10f1')]['rows'],{'id':_0x2fd418['id']}),_0x49bca1[_0xa67e9c('0x10f1')]['count']-=0x1,!_0x49bca1['chatWebsiteProactiveActions'][_0xa67e9c('0x1b33')][_0xa67e9c('0x577')]&&_0x1dcf5b(),_0x57c52f['success']({'title':_0xa67e9c('0xb08'),'msg':_0x2fd418[_0xa67e9c('0x19fe')]?_0x2fd418[_0xa67e9c('0x19fe')]+'\x20has\x20been\x20deleted!':''});})[_0x499d5b('0x1c1d')](function(_0xf1589d){var _0xec47e=_0x499d5b;if(_0xf1589d['data']&&_0xf1589d['data'][_0xec47e('0x1a69')]&&_0xf1589d[_0xec47e('0x11c2')][_0xec47e('0x1a69')][_0xec47e('0x577')]){_0x49bca1[_0xec47e('0x1a69')]=_0xf1589d[_0xec47e('0x11c2')][_0xec47e('0x1a69')]||[{'message':_0xf1589d['toString'](),'type':'SYSTEM:GETchatWebsite'}];for(var _0x28b1a8=0x0;_0x28b1a8<_0xf1589d[_0xec47e('0x11c2')][_0xec47e('0x1a69')]['length'];_0x28b1a8++){_0x57c52f[_0xec47e('0x2092')]({'title':_0xf1589d[_0xec47e('0x11c2')]['errors'][_0x28b1a8]['type'],'msg':_0xf1589d[_0xec47e('0x11c2')][_0xec47e('0x1a69')][_0x28b1a8][_0xec47e('0x1224')]});}}else _0x57c52f['error']({'title':_0xf1589d[_0xec47e('0x209')]?_0xec47e('0x22d')+_0xf1589d[_0xec47e('0x209')]+_0xec47e('0xa99')+_0xf1589d['statusText']:_0xec47e('0x4e1'),'msg':_0xf1589d['data']?JSON['stringify'](_0xf1589d[_0xec47e('0x11c2')][_0xec47e('0x1224')]):_0xf1589d['message']||_0xf1589d[_0xec47e('0x174f')]()});});}function _0x28bcf1(){var _0x51c471=_0xaa9bbd,_0x121799=angular[_0x51c471('0xd75')](_0x49bca1[_0x51c471('0xc23')]);return _0x49bca1['selectedChatWebsiteProactiveActions']=[],_0x121799;}function _0x410b25(_0x3be804){var _0x44d3e8=_0xaa9bbd,_0xe1e126=_0x129768[_0x44d3e8('0xa33')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20proactive?')['htmlContent'](_0x44d3e8('0x622')+_0x49bca1[_0x44d3e8('0xc23')][_0x44d3e8('0x577')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x44d3e8('0x7a7')](_0x44d3e8('0x138c'))[_0x44d3e8('0x1e6d')](_0x3be804)['ok']('OK')['cancel'](_0x44d3e8('0x284b'));_0x129768['show'](_0xe1e126)[_0x44d3e8('0x21ad')](function(){var _0x5dfdda=_0x44d3e8;_0x49bca1[_0x5dfdda('0xc23')][_0x5dfdda('0x1a52')](function(_0x1ecef9){_0x5dc8a2(_0x1ecef9);}),_0x49bca1[_0x5dfdda('0xc23')]=[];});}var _0x1335db=!![],_0x6cf00d=0x1;_0x2cbb98[_0xaa9bbd('0x10e8')](_0xaa9bbd('0x10ff'),function(_0x9872f7,_0xab4a63){var _0x5d1624=_0xaa9bbd;_0x1335db?_0x3932ac(function(){_0x1335db=![];}):(!_0xab4a63&&(_0x6cf00d=_0x49bca1['query'][_0x5d1624('0x2376')]),_0x9872f7!==_0xab4a63&&(_0x49bca1[_0x5d1624('0x77')][_0x5d1624('0x2376')]=0x1),!_0x9872f7&&(_0x49bca1['query'][_0x5d1624('0x2376')]=_0x6cf00d),_0x1dcf5b());});}const _0x551be3=_0x7b24a5;_0x698254[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$location',_0x3877e3('0x1850'),'$q','$translate',_0x3877e3('0x1908'),_0x3877e3('0xb5d'),_0x3877e3('0x7b1'),'api',_0x3877e3('0x15bc'),'license','setting',_0x3877e3('0x5ed')];function _0x698254(_0x1ec9fc,_0x34d07f,_0x59f486,_0x4dabfd,_0x462876,_0x12aa18,_0x253b8a,_0x112959,_0xdd1ae9,_0x38966d,_0x6be723,_0x4ec428,_0x3615a7,_0x32873d){var _0x33f5dc=_0x3877e3,_0x9f05ef=this;_0x9f05ef[_0x33f5dc('0x123f')]=_0x6be723[_0x33f5dc('0x15ed')](),_0x9f05ef['errors']=[],_0x9f05ef['setting']=_0x3615a7,_0x9f05ef[_0x33f5dc('0x2ff')]=_0x4ec428,_0x9f05ef[_0x33f5dc('0x5ed')]=_0x32873d,_0x9f05ef['hasModulePermissions']={},_0x9f05ef[_0x33f5dc('0x1432')]=_0x9f05ef[_0x33f5dc('0x21e')]&&_0x9f05ef[_0x33f5dc('0x21e')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x9f05ef[_0x33f5dc('0x4b4')]=_0x33f5dc('0xf2c'),_0x9f05ef[_0x33f5dc('0x7b1')]=angular[_0x33f5dc('0xd75')](_0xdd1ae9),_0x9f05ef[_0x33f5dc('0xb5d')]=_0x112959,_0x9f05ef['newChatProactiveAction']=![];!_0x9f05ef['chatProactiveAction']&&(_0x9f05ef[_0x33f5dc('0x7b1')]={'type':'mouseOver'},_0x9f05ef['title']=_0x33f5dc('0x4d3'),_0x9f05ef['newChatProactiveAction']=!![]);_0x34d07f['params']['id']&&(_0x9f05ef[_0x33f5dc('0x7b1')][_0x33f5dc('0x15f9')]=_0x34d07f[_0x33f5dc('0x171b')]['id']);_0x9f05ef[_0x33f5dc('0x1b27')]=_0x36d9d0,_0x9f05ef['saveChatProactiveAction']=_0x15e9d1,_0x9f05ef[_0x33f5dc('0x1fe')]=_0x3cd6c7,_0x9f05ef['getDateFromString']=_0x3c0b67,_0x9f05ef[_0x33f5dc('0x167')]=_0x4a3a8d;function _0x36d9d0(){var _0x94b607=_0x33f5dc;_0x9f05ef['errors']=[],_0x38966d[_0x94b607('0x7b1')][_0x94b607('0x186f')](_0x9f05ef[_0x94b607('0x7b1')])[_0x94b607('0x1376')][_0x94b607('0x21ad')](function(_0x67918f){var _0x3ed32e=_0x94b607;_0x9f05ef[_0x3ed32e('0xb5d')][_0x3ed32e('0xd0c')](_0x67918f[_0x3ed32e('0x3bc')]()),_0x253b8a['success']({'title':_0x3ed32e('0xd2b'),'msg':_0x9f05ef['chatProactiveAction'][_0x3ed32e('0x19fe')]?_0x9f05ef['chatProactiveAction'][_0x3ed32e('0x19fe')]+_0x3ed32e('0x1694'):''}),_0x4a3a8d(_0x67918f);})[_0x94b607('0x1c1d')](function(_0xe47668){var _0x5d0abb=_0x94b607;if(_0xe47668[_0x5d0abb('0x11c2')]&&_0xe47668[_0x5d0abb('0x11c2')][_0x5d0abb('0x1a69')]&&_0xe47668[_0x5d0abb('0x11c2')]['errors']['length']){_0x9f05ef[_0x5d0abb('0x1a69')]=_0xe47668['data'][_0x5d0abb('0x1a69')]||[{'message':_0xe47668[_0x5d0abb('0x174f')](),'type':_0x5d0abb('0xfde')}];for(var _0x1204d4=0x0;_0x1204d4<_0xe47668[_0x5d0abb('0x11c2')][_0x5d0abb('0x1a69')]['length'];_0x1204d4+=0x1){_0x253b8a[_0x5d0abb('0x2092')]({'title':_0xe47668[_0x5d0abb('0x11c2')]['errors'][_0x1204d4][_0x5d0abb('0x7fa')],'msg':_0xe47668[_0x5d0abb('0x11c2')][_0x5d0abb('0x1a69')][_0x1204d4][_0x5d0abb('0x1224')]});}}else _0x253b8a['error']({'title':_0xe47668['status']?_0x5d0abb('0x22d')+_0xe47668['status']+_0x5d0abb('0xa99')+_0xe47668[_0x5d0abb('0x1808')]:_0x5d0abb('0xfde'),'msg':_0xe47668[_0x5d0abb('0x11c2')]?JSON[_0x5d0abb('0x25e')](_0xe47668['data'][_0x5d0abb('0x1224')]):_0xe47668[_0x5d0abb('0x174f')]()});});}function _0x15e9d1(){var _0x360a2f=_0x33f5dc;_0x9f05ef[_0x360a2f('0x1a69')]=[],_0x38966d[_0x360a2f('0x7b1')]['update']({'id':_0x9f05ef['chatProactiveAction']['id']},_0x9f05ef[_0x360a2f('0x7b1')])[_0x360a2f('0x1376')][_0x360a2f('0x21ad')](function(_0x4e9fe9){var _0x29fa63=_0x360a2f,_0x5a89b1=_0x86640f()['find'](_0x9f05ef[_0x29fa63('0xb5d')],{'id':_0x4e9fe9['id']});_0x5a89b1&&_0x86640f()[_0x29fa63('0xd0e')](_0x5a89b1,_0x86640f()['pick'](_0x4e9fe9[_0x29fa63('0x3bc')](),_0x86640f()[_0x29fa63('0x223b')](_0x5a89b1))),_0x253b8a[_0x29fa63('0xdb1')]({'title':_0x29fa63('0x729'),'msg':_0x9f05ef['chatProactiveAction'][_0x29fa63('0x19fe')]?_0x9f05ef['chatProactiveAction'][_0x29fa63('0x19fe')]+_0x29fa63('0x2249'):''}),_0x4a3a8d(_0x4e9fe9);})[_0x360a2f('0x1c1d')](function(_0x3887c1){var _0x5bfb6d=_0x360a2f;if(_0x3887c1[_0x5bfb6d('0x11c2')]&&_0x3887c1['data'][_0x5bfb6d('0x1a69')]&&_0x3887c1['data'][_0x5bfb6d('0x1a69')][_0x5bfb6d('0x577')]){_0x9f05ef['errors']=_0x3887c1['data'][_0x5bfb6d('0x1a69')]||[{'message':_0x3887c1[_0x5bfb6d('0x174f')](),'type':_0x5bfb6d('0x915')}];for(var _0x4b7b23=0x0;_0x4b7b23<_0x3887c1[_0x5bfb6d('0x11c2')][_0x5bfb6d('0x1a69')]['length'];_0x4b7b23++){_0x253b8a[_0x5bfb6d('0x2092')]({'title':_0x3887c1[_0x5bfb6d('0x11c2')]['errors'][_0x4b7b23][_0x5bfb6d('0x7fa')],'msg':_0x3887c1[_0x5bfb6d('0x11c2')][_0x5bfb6d('0x1a69')][_0x4b7b23][_0x5bfb6d('0x1224')]});}}else _0x253b8a[_0x5bfb6d('0x2092')]({'title':_0x3887c1['status']?_0x5bfb6d('0x22d')+_0x3887c1[_0x5bfb6d('0x209')]+'\x20-\x20'+_0x3887c1['statusText']:_0x5bfb6d('0x915'),'msg':_0x3887c1[_0x5bfb6d('0x11c2')]?JSON[_0x5bfb6d('0x25e')](_0x3887c1['data'][_0x5bfb6d('0x1224')]):_0x3887c1['toString']()});});}function _0x3cd6c7(_0x7480d7){var _0x19c400=_0x33f5dc;_0x9f05ef['errors']=[];var _0x574d41=_0x4dabfd[_0x19c400('0xa33')]()[_0x19c400('0x4b4')](_0x19c400('0x196b'))[_0x19c400('0x13fb')](_0x19c400('0xc03'))[_0x19c400('0x7a7')]('Delete\x20ChatProactiveAction')['ok'](_0x19c400('0xbfd'))[_0x19c400('0x3b5')](_0x19c400('0x1f40'))[_0x19c400('0x1e6d')](_0x7480d7);_0x4dabfd[_0x19c400('0x853')](_0x574d41)['then'](function(){var _0x436b1a=_0x19c400;_0x38966d[_0x436b1a('0x7b1')][_0x436b1a('0x1164')]({'id':_0x9f05ef['chatProactiveAction']['id']})[_0x436b1a('0x1376')][_0x436b1a('0x21ad')](function(){var _0x41551d=_0x436b1a;_0x86640f()['remove'](_0x9f05ef[_0x41551d('0xb5d')],{'id':_0x9f05ef[_0x41551d('0x7b1')]['id']}),_0x253b8a['success']({'title':_0x41551d('0x25ca'),'msg':(_0x9f05ef[_0x41551d('0x7b1')][_0x41551d('0x19fe')]||_0x41551d('0x7b1'))+_0x41551d('0xb4a')}),_0x4a3a8d(_0x9f05ef[_0x41551d('0x7b1')]);})[_0x436b1a('0x1c1d')](function(_0x16cc3d){var _0x1c3851=_0x436b1a;if(_0x16cc3d[_0x1c3851('0x11c2')]&&_0x16cc3d[_0x1c3851('0x11c2')][_0x1c3851('0x1a69')]&&_0x16cc3d['data'][_0x1c3851('0x1a69')][_0x1c3851('0x577')]){_0x9f05ef[_0x1c3851('0x1a69')]=_0x16cc3d[_0x1c3851('0x11c2')][_0x1c3851('0x1a69')]||[{'message':_0x16cc3d[_0x1c3851('0x174f')](),'type':_0x1c3851('0x1ffd')}];for(var _0x208a41=0x0;_0x208a41<_0x16cc3d[_0x1c3851('0x11c2')]['errors']['length'];_0x208a41++){_0x253b8a['error']({'title':_0x16cc3d['data']['errors'][_0x208a41][_0x1c3851('0x7fa')],'msg':_0x16cc3d[_0x1c3851('0x11c2')][_0x1c3851('0x1a69')][_0x208a41][_0x1c3851('0x1224')]});}}else _0x253b8a['error']({'title':_0x16cc3d['status']?_0x1c3851('0x22d')+_0x16cc3d['status']+'\x20-\x20'+_0x16cc3d[_0x1c3851('0x1808')]:_0x1c3851('0x1ffd'),'msg':_0x16cc3d[_0x1c3851('0x11c2')]?JSON[_0x1c3851('0x25e')](_0x16cc3d[_0x1c3851('0x11c2')][_0x1c3851('0x1224')]):_0x16cc3d[_0x1c3851('0x1224')]||_0x16cc3d[_0x1c3851('0x174f')]()});});},function(){});}function _0x3c0b67(_0x2db8b4){return _0x2db8b4===null?undefined:new Date(_0x2db8b4);}function _0x4a3a8d(_0x4cabbd){var _0x398dd4=_0x33f5dc;_0x4dabfd[_0x398dd4('0x1c24')](_0x4cabbd);}}const _0x3bb4f2=_0x698254;_0x32be16[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a')];function _0x32be16(_0x3bd9a7){var _0x1d1c83=_0x3877e3,_0x43ccf5=this;_0x43ccf5[_0x1d1c83('0xe3c')]={},_0x43ccf5['init']=_0x53d4c8,_0x43ccf5[_0x1d1c83('0x231c')]={};function _0x53d4c8(_0x2d42a8){var _0x52e20f=_0x1d1c83;_0x43ccf5['chatWebsite']=_0x2d42a8,_0x43ccf5[_0x52e20f('0x2015')]=_0x52e20f('0xf3d'),_0x43ccf5[_0x52e20f('0x1e0b')]=_0x52e20f('0x389')+_0x43ccf5[_0x52e20f('0xe3c')]['remote']+_0x52e20f('0x1be')+_0x43ccf5[_0x52e20f('0xe3c')]['id']+_0x52e20f('0x5f6')+_0x43ccf5[_0x52e20f('0xe3c')][_0x52e20f('0x1797')]+'\x22>',_0x43ccf5[_0x52e20f('0x2450')]=_0x52e20f('0xf3d');}_0x3bd9a7[_0x1d1c83('0x10e8')]('vm_ac.chatWebsite.remote',function(){var _0x2400ca=_0x1d1c83;_0x43ccf5['script']=_0x2400ca('0x389')+_0x43ccf5[_0x2400ca('0xe3c')][_0x2400ca('0x132d')]+'/api/chat/websites/'+_0x43ccf5[_0x2400ca('0xe3c')]['id']+_0x2400ca('0x5f6')+_0x43ccf5[_0x2400ca('0xe3c')][_0x2400ca('0x1797')]+_0x2400ca('0x1fda');});}const _0x5a1615=_0x32be16;_0x59e22b[_0x3877e3('0x1a81')]=['$cookies',_0x3877e3('0x1908')];function _0x59e22b(_0x46e5ac,_0x369e5d){var _0x4f8628=_0x3877e3,_0x144c15=this,_0x2b414e=0x8,_0x154c28=_0x2b414e*0x400*0x400;_0x144c15['chatWebsite']={},_0x144c15[_0x4f8628('0x5ed')],_0x144c15[_0x4f8628('0x467')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x154c28,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x144c15[_0x4f8628('0x1413')]={'flow':{}},_0x144c15[_0x4f8628('0x8c3')]=![],_0x144c15[_0x4f8628('0x20d9')]=_0x5307e8,_0x144c15['upload']=_0xa207e2,_0x144c15[_0x4f8628('0x27eb')]=_0x504e28,_0x144c15[_0x4f8628('0x1d75')]=_0x4f8fd3;function _0x4f8fd3(_0x1619e9,_0x3f9772){var _0x3ff79d=_0x4f8628;_0x144c15['chatWebsite']=angular[_0x3ff79d('0xd75')](_0x1619e9),_0x144c15[_0x3ff79d('0x5ed')]=typeof _0x3f9772!==_0x3ff79d('0xddc')?_0x3f9772:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x144c15[_0x3ff79d('0x467')][_0x3ff79d('0x14a5')]='/api/chat/websites/:id/system_avatar'[_0x3ff79d('0x16e4')](_0x3ff79d('0x1938'),_0x144c15[_0x3ff79d('0xe3c')]['id']),_0x144c15[_0x3ff79d('0xe3c')][_0x3ff79d('0x851')]=[];}function _0x5307e8(_0x5813b5){var _0x11bea6=_0x4f8628,_0x241a10=[_0x11bea6('0x14f5'),_0x11bea6('0x13d2')];if(!_0x86640f()[_0x11bea6('0xb34')](_0x241a10,_0x5813b5[_0x11bea6('0x9bb')]()))return _0x369e5d[_0x11bea6('0x2092')]({'title':_0x11bea6('0x397')+_0x5813b5[_0x11bea6('0x9bb')](),'msg':_0x11bea6('0x156b')+_0x241a10[_0x11bea6('0x136')]()}),![];if(_0x5813b5[_0x11bea6('0x337')]>_0x154c28)return _0x369e5d[_0x11bea6('0x2092')]({'title':_0x11bea6('0x8d1'),'msg':_0x11bea6('0xc3a')+_0x2b414e+'MB'}),![];var _0x568938={'id':_0x5813b5[_0x11bea6('0x25f6')],'file':_0x5813b5,'type':_0x11bea6('0x326')};return _0x144c15[_0x11bea6('0xe3c')]['images'][_0x11bea6('0xd0c')](_0x568938),!![];}function _0xa207e2(){var _0x16250d=_0x4f8628;_0x144c15[_0x16250d('0x1413')][_0x16250d('0x1d76')]['opts'][_0x16250d('0x4d8')]={'X-Requested-With':_0x16250d('0x24ca'),'Authorization':_0x16250d('0x5c8')+_0x46e5ac[_0x16250d('0x595')](_0x16250d('0x863'))},_0x144c15['ngFlow'][_0x16250d('0x1d76')][_0x16250d('0x12d0')]();}function _0x504e28(_0xc0cc05){var _0x2ff61d=_0x4f8628;angular[_0x2ff61d('0x1a52')](_0x144c15[_0x2ff61d('0xe3c')][_0x2ff61d('0x851')],function(_0x3f61c8){var _0x3e49bb=_0x2ff61d;if(_0x3f61c8['id']===_0xc0cc05['uniqueIdentifier']){var _0x352e61=new FileReader();_0x352e61['readAsDataURL'](_0x3f61c8[_0x3e49bb('0x18a9')]['file']),_0x352e61['onload']=function(_0x4c188c){var _0xa34dde=_0x3e49bb;_0x3f61c8[_0xa34dde('0x770')]=_0x4c188c[_0xa34dde('0x14a5')][_0xa34dde('0x8c7')];},_0x3f61c8[_0x3e49bb('0x7fa')]=_0x3e49bb('0x1318');}});}}const _0xd02f01=_0x59e22b;_0x1d32a2[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$document','$translate',_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),'Auth',_0x3877e3('0xe3c'),'userProfileSection'];function _0x1d32a2(_0x59f5da,_0x265be8,_0x3a5535,_0x5d5529,_0xb897fa,_0xf79bb1,_0x4c2d45,_0x2d259c,_0x170297,_0x2f9eb4,_0xa294a1,_0x1890e0){var _0x21c95f=_0x3877e3,_0x427424=this;_0x427424['currentUser']=_0x2f9eb4['getCurrentUser'](),_0x427424[_0x21c95f('0x2ff')]=_0xf79bb1,_0x427424['setting']=_0x4c2d45,_0x427424[_0x21c95f('0x1432')]=_0x427424[_0x21c95f('0x21e')][_0x21c95f('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x427424['location']=_0x265be8[_0x21c95f('0x1162')]()+_0x21c95f('0x22a9')+_0x265be8['host'](),_0x427424[_0x21c95f('0xe3c')]=_0xa294a1||_0x59f5da['params'][_0x21c95f('0xe3c')]||{},_0x427424[_0x21c95f('0xab4')]=_0x1890e0&&_0x1890e0[_0x21c95f('0x205f')]==0x1?_0x1890e0[_0x21c95f('0x1b33')][0x0]:null,_0x427424['crudPermissions']=_0x2f9eb4[_0x21c95f('0x1778')](_0x427424[_0x21c95f('0xab4')]?_0x427424[_0x21c95f('0xab4')]['crudPermissions']:null),_0x427424[_0x21c95f('0x126a')]={},_0x427424[_0x21c95f('0x302')]=_0x59f5da[_0x21c95f('0x171b')]['tab']||0x0,_0x427424['agentadddialog']=_0x3d9dc4,_0x427424[_0x21c95f('0x95b')]=_0x170297[_0x21c95f('0x231c')],_0x427424[_0x21c95f('0xf04')]=_0x125fc3,_0x427424[_0x21c95f('0x16bc')]=_0x553f9c,_0x2f9eb4[_0x21c95f('0x21de')](_0x21c95f('0x1bd8'))?_0x2d259c[_0x21c95f('0x11e0')]['get']({'fields':_0x21c95f('0x1aa8'),'sort':_0x21c95f('0x19fe')})[_0x21c95f('0x1376')]['then'](function(_0x5823a2){var _0x1531ce=_0x21c95f;_0x427424[_0x1531ce('0x1972')]=_0x5823a2[_0x1531ce('0x1b33')]||[];})['catch'](function(_0xa1d4c7){var _0x605ea6=_0x21c95f;_0x170297[_0x605ea6('0x2092')]({'title':_0xa1d4c7[_0x605ea6('0x209')]?_0x605ea6('0x22d')+_0xa1d4c7['status']+'\x20-\x20'+_0xa1d4c7[_0x605ea6('0x1808')]:_0x605ea6('0xf59'),'msg':_0xa1d4c7[_0x605ea6('0x11c2')]?JSON[_0x605ea6('0x25e')](_0xa1d4c7[_0x605ea6('0x11c2')]):_0xa1d4c7[_0x605ea6('0x174f')]()});}):_0x2d259c[_0x21c95f('0x11e0')][_0x21c95f('0x595')]({'fields':_0x21c95f('0x1aa8'),'sort':'name'})['$promise'][_0x21c95f('0x21ad')](function(_0x1d2601){_0x427424['lists']=_0x1d2601['rows']||[];})['then'](function(){var _0x1c3af5=_0x21c95f;return _0x2d259c['userProfileSection'][_0x1c3af5('0x595')]({'userProfileId':_0x427424[_0x1c3af5('0x123f')][_0x1c3af5('0x1618')],'sectionId':0x12d})[_0x1c3af5('0x1376')];})['then'](function(_0x30ed48){var _0x544dbd=_0x21c95f,_0x3eb16a=_0x30ed48&&_0x30ed48[_0x544dbd('0x1b33')]?_0x30ed48[_0x544dbd('0x1b33')][0x0]:null;if(!_0x3eb16a){var _0x104934=[],_0x42c9b3=null;_0x427424[_0x544dbd('0xe3c')]&&(_0x42c9b3=_0x86640f()[_0x544dbd('0x1d2e')](_0x427424['lists'],{'id':Number(_0x427424[_0x544dbd('0xe3c')][_0x544dbd('0x815')])}));for(var _0x1b6c39=0x0;_0x1b6c39<_0x427424[_0x544dbd('0x1972')][_0x544dbd('0x577')];_0x1b6c39++){_0x42c9b3&&_0x427424[_0x544dbd('0x1972')][_0x1b6c39]['id']===_0x42c9b3['id']&&(_0x427424[_0x544dbd('0x1972')][_0x1b6c39][_0x544dbd('0xba')]=![],_0x104934[_0x544dbd('0x206c')](_0x427424[_0x544dbd('0x1972')][_0x1b6c39]));}_0x427424[_0x544dbd('0x1972')]=_0x104934;}else{if(!_0x3eb16a[_0x544dbd('0x80c')])return _0x2d259c[_0x544dbd('0x185e')][_0x544dbd('0x595')]({'sectionId':_0x3eb16a['id']})[_0x544dbd('0x1376')]['then'](function(_0x3f380c){var _0x3aa9de=_0x544dbd,_0x515cdb=_0x86640f()[_0x3aa9de('0x26c3')](_0x3f380c[_0x3aa9de('0x1b33')],function(_0x3bcbbe){var _0x2b4a0d=_0x3aa9de;return _0x86640f()[_0x2b4a0d('0x1d2e')](_0x427424[_0x2b4a0d('0x1972')],{'id':_0x3bcbbe[_0x2b4a0d('0x675')]});}),_0x430314=null;_0x427424['chatWebsite']&&(_0x430314=_0x86640f()['find'](_0x427424[_0x3aa9de('0x1972')],{'id':Number(_0x427424['chatWebsite'][_0x3aa9de('0x815')])}));if(_0x430314&&!_0x86640f()[_0x3aa9de('0x2664')](_0x515cdb,['id',_0x430314['id']])){var _0x5bd80e=_0x86640f()['find'](_0x427424[_0x3aa9de('0x1972')],{'id':_0x430314['id']});_0x5bd80e['canSelect']=![],_0x515cdb['push'](_0x5bd80e);}_0x427424['lists']=_0x515cdb;});}})[_0x21c95f('0x1c1d')](function(_0x3c56c8){var _0x2d5e8c=_0x21c95f;_0x170297['error']({'title':_0x3c56c8[_0x2d5e8c('0x209')]?_0x2d5e8c('0x22d')+_0x3c56c8[_0x2d5e8c('0x209')]+_0x2d5e8c('0xa99')+_0x3c56c8[_0x2d5e8c('0x1808')]:'SYSTEM:GETlists','msg':_0x3c56c8[_0x2d5e8c('0x11c2')]?JSON['stringify'](_0x3c56c8[_0x2d5e8c('0x11c2')]):_0x3c56c8[_0x2d5e8c('0x174f')]()});}),_0x2f9eb4['hasRole'](_0x21c95f('0x1bd8'))?_0x2d259c['interval']['get']({'fields':_0x21c95f('0x1aa8'),'sort':_0x21c95f('0x19fe'),'IntervalId':_0x21c95f('0x27a')})[_0x21c95f('0x1376')][_0x21c95f('0x21ad')](function(_0x35e8de){var _0x12b42f=_0x21c95f;_0x427424[_0x12b42f('0xa07')]=_0x35e8de['rows']||[];})[_0x21c95f('0x1c1d')](function(_0x5b9d02){var _0x43e477=_0x21c95f;_0x170297[_0x43e477('0x2092')]({'title':_0x5b9d02[_0x43e477('0x209')]?_0x43e477('0x22d')+_0x5b9d02[_0x43e477('0x209')]+_0x43e477('0xa99')+_0x5b9d02['statusText']:'SYSTEM:GET_INTERVAL','msg':_0x5b9d02[_0x43e477('0x11c2')]?JSON[_0x43e477('0x25e')](_0x5b9d02[_0x43e477('0x11c2')]):_0x5b9d02[_0x43e477('0x174f')]()});}):_0x2d259c['interval'][_0x21c95f('0x595')]({'fields':_0x21c95f('0x1aa8'),'sort':_0x21c95f('0x19fe'),'IntervalId':_0x21c95f('0x27a')})['$promise'][_0x21c95f('0x21ad')](function(_0x3f9c3a){var _0x57ca20=_0x21c95f;_0x427424[_0x57ca20('0xa07')]=_0x3f9c3a['rows']||[];})[_0x21c95f('0x21ad')](function(){var _0x42be82=_0x21c95f;return _0x2d259c[_0x42be82('0xab4')][_0x42be82('0x595')]({'userProfileId':_0x427424[_0x42be82('0x123f')][_0x42be82('0x1618')],'sectionId':0x3ec})[_0x42be82('0x1376')];})[_0x21c95f('0x21ad')](function(_0xce85b9){var _0x215295=_0x21c95f,_0x5425ab=_0xce85b9&&_0xce85b9[_0x215295('0x1b33')]?_0xce85b9[_0x215295('0x1b33')][0x0]:null;if(!_0x5425ab){var _0x4277ca=[],_0x1bc76e=null;_0x427424[_0x215295('0xe3c')]&&(_0x1bc76e=_0x86640f()[_0x215295('0x1d2e')](_0x427424['interval'],{'id':Number(_0x427424['chatWebsite'][_0x215295('0x1ac8')])}));for(var _0x31ba03=0x0;_0x31ba03<_0x427424[_0x215295('0xa07')][_0x215295('0x577')];_0x31ba03++){_0x1bc76e&&_0x427424['interval'][_0x31ba03]['id']===_0x1bc76e['id']&&(_0x427424[_0x215295('0xa07')][_0x31ba03][_0x215295('0xba')]=![],_0x4277ca['push'](_0x427424[_0x215295('0xa07')][_0x31ba03]));}_0x427424['interval']=_0x4277ca;}else{if(!_0x5425ab[_0x215295('0x80c')])return _0x2d259c[_0x215295('0x185e')][_0x215295('0x595')]({'sectionId':_0x5425ab['id']})[_0x215295('0x1376')][_0x215295('0x21ad')](function(_0x5af2d9){var _0x13f2bc=_0x215295,_0x216800=_0x86640f()[_0x13f2bc('0x26c3')](_0x5af2d9['rows'],function(_0x4c6316){var _0x896839=_0x13f2bc;return _0x86640f()[_0x896839('0x1d2e')](_0x427424[_0x896839('0xa07')],{'id':_0x4c6316[_0x896839('0x675')]});}),_0x96156f=null;_0x427424['chatWebsite']&&(_0x96156f=_0x86640f()[_0x13f2bc('0x1d2e')](_0x427424[_0x13f2bc('0xa07')],{'id':Number(_0x427424[_0x13f2bc('0xe3c')][_0x13f2bc('0x1ac8')])}));if(_0x96156f&&!_0x86640f()[_0x13f2bc('0x2664')](_0x216800,['id',_0x96156f['id']])){var _0x132a13=_0x86640f()[_0x13f2bc('0x1d2e')](_0x427424[_0x13f2bc('0xa07')],{'id':_0x96156f['id']});_0x132a13[_0x13f2bc('0xba')]=![],_0x216800[_0x13f2bc('0x206c')](_0x132a13);}_0x427424[_0x13f2bc('0xa07')]=_0x216800;});}})[_0x21c95f('0x1c1d')](function(_0x6f65b2){var _0x17d606=_0x21c95f;_0x170297[_0x17d606('0x2092')]({'title':_0x6f65b2[_0x17d606('0x209')]?_0x17d606('0x22d')+_0x6f65b2['status']+'\x20-\x20'+_0x6f65b2[_0x17d606('0x1808')]:_0x17d606('0x259e'),'msg':_0x6f65b2['data']?JSON[_0x17d606('0x25e')](_0x6f65b2[_0x17d606('0x11c2')]):_0x6f65b2[_0x17d606('0x174f')]()});}),_0x2f9eb4[_0x21c95f('0x21de')]('admin')?_0x2d259c[_0x21c95f('0x1e26')][_0x21c95f('0x595')]({'fields':_0x21c95f('0x14d5'),'sort':_0x21c95f('0x19fe'),'nolimit':_0x21c95f('0x19bd')})['$promise'][_0x21c95f('0x21ad')](function(_0x4c1fe5){var _0x1bbeab=_0x21c95f;_0x427424[_0x1bbeab('0x1fc7')]=_0x4c1fe5[_0x1bbeab('0x1b33')]||[];})['catch'](function(_0x2dd9f6){var _0x242aea=_0x21c95f;_0x170297[_0x242aea('0x2092')]({'title':_0x2dd9f6[_0x242aea('0x209')]?_0x242aea('0x22d')+_0x2dd9f6[_0x242aea('0x209')]+_0x242aea('0xa99')+_0x2dd9f6[_0x242aea('0x1808')]:'SYSTEM:GET_PAUSES','msg':_0x2dd9f6[_0x242aea('0x11c2')]?JSON[_0x242aea('0x25e')](_0x2dd9f6[_0x242aea('0x11c2')]):_0x2dd9f6[_0x242aea('0x174f')]()});}):_0x2d259c['pause']['get']({'fields':_0x21c95f('0x14d5'),'sort':_0x21c95f('0x19fe'),'nolimit':_0x21c95f('0x19bd')})[_0x21c95f('0x1376')][_0x21c95f('0x21ad')](function(_0x1c00e2){var _0x644d21=_0x21c95f;_0x427424[_0x644d21('0x1fc7')]=_0x1c00e2[_0x644d21('0x1b33')]||[];})[_0x21c95f('0x21ad')](function(){var _0x1f4109=_0x21c95f;return _0x2d259c['userProfileSection'][_0x1f4109('0x595')]({'userProfileId':_0x427424[_0x1f4109('0x123f')]['userProfileId'],'sectionId':0x3ed})[_0x1f4109('0x1376')];})['then'](function(_0x27f91f){var _0x21e087=_0x21c95f,_0x5583b8=_0x27f91f&&_0x27f91f[_0x21e087('0x1b33')]?_0x27f91f[_0x21e087('0x1b33')][0x0]:null;if(!_0x5583b8)_0x427424[_0x21e087('0x1fc7')]=[];else{if(!_0x5583b8['autoAssociation'])return _0x2d259c[_0x21e087('0x185e')][_0x21e087('0x595')]({'sectionId':_0x5583b8['id']})[_0x21e087('0x1376')][_0x21e087('0x21ad')](function(_0x5b1384){var _0x5895a0=_0x21e087,_0x4453b7=_0x86640f()[_0x5895a0('0x26c3')](_0x5b1384[_0x5895a0('0x1b33')],function(_0x378e3e){var _0x135aed=_0x5895a0;return _0x86640f()[_0x135aed('0x1d2e')](_0x427424['pauses'],{'id':_0x378e3e[_0x135aed('0x675')]});});_0x427424[_0x5895a0('0x1fc7')][_0x5895a0('0x1a52')](function(_0x3ae933){var _0x5de871=_0x5895a0;!_0x86640f()[_0x5de871('0x2664')](_0x4453b7,['id',_0x3ae933['id']])&&(_0x3ae933[_0x5de871('0xba')]=![]),_0x4453b7['push'](_0x3ae933);}),_0x427424[_0x5895a0('0x1fc7')]=_0x4453b7;});}})[_0x21c95f('0x1c1d')](function(_0x1a53e2){var _0x197c1b=_0x21c95f;_0x170297[_0x197c1b('0x2092')]({'title':_0x1a53e2[_0x197c1b('0x209')]?_0x197c1b('0x22d')+_0x1a53e2[_0x197c1b('0x209')]+_0x197c1b('0xa99')+_0x1a53e2[_0x197c1b('0x1808')]:_0x197c1b('0x17ab'),'msg':_0x1a53e2[_0x197c1b('0x11c2')]?JSON[_0x197c1b('0x25e')](_0x1a53e2[_0x197c1b('0x11c2')]):_0x1a53e2[_0x197c1b('0x174f')]()});});function _0x3d9dc4(_0x12c26b,_0x446b75){var _0x10689b=_0x21c95f;_0x3a5535[_0x10689b('0x853')]({'controller':_0x10689b('0x1c90'),'controllerAs':'vm','templateUrl':_0x54ba4c,'parent':angular['element'](_0x5d5529[_0x10689b('0x2452')]),'targetEvent':_0x446b75,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x12c26b,'chatWebsites':_0x427424['chatWebsites']?_0x427424[_0x10689b('0x2d9')][_0x10689b('0x1b33')]:[],'crudPermissions':_0x427424[_0x10689b('0x5ed')],'realtime':![]}});}function _0x125fc3(){var _0x20bd20=_0x21c95f;_0x59f5da['go']('app.chat.chatWebsites',{},{'reload':_0x20bd20('0x1f38')});}function _0x553f9c(){var _0x2eaf8a=_0x21c95f;_0x2d259c[_0x2eaf8a('0xe3c')][_0x2eaf8a('0x5ef')]({'id':_0x427424['chatWebsite']['id']},_0x427424[_0x2eaf8a('0xe3c')])['$promise'][_0x2eaf8a('0x21ad')](function(){var _0x44c595=_0x2eaf8a;_0x170297['success']({'title':_0x44c595('0x17c3'),'msg':_0x427424['chatWebsite'][_0x44c595('0x19fe')]?_0x427424[_0x44c595('0xe3c')]['name']+_0x44c595('0xa8d'):''});})[_0x2eaf8a('0x1c1d')](function(_0x50fb8a){var _0x9e07ed=_0x2eaf8a;_0x170297[_0x9e07ed('0x2092')]({'title':_0x50fb8a[_0x9e07ed('0x209')]?_0x9e07ed('0x22d')+_0x50fb8a[_0x9e07ed('0x209')]+_0x9e07ed('0xa99')+_0x50fb8a[_0x9e07ed('0x1808')]:_0x9e07ed('0x4e1'),'msg':_0x50fb8a[_0x9e07ed('0x11c2')]?JSON[_0x9e07ed('0x25e')](_0x50fb8a['data']):_0x50fb8a['toString']()});});}}const _0x142007=_0x1d32a2;_0x4fd819[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c'),'$translatePartialLoaderProvider'];function _0x4fd819(_0x119069,_0x2eaa15){var _0x371f3f=_0x3877e3;_0x119069[_0x371f3f('0x27e')](_0x371f3f('0x1dd8'),{'abstract':!![],'url':_0x371f3f('0x17cb')})[_0x371f3f('0x27e')](_0x371f3f('0x11cb'),{'url':'/chatQueues','views':{'content@app':{'templateUrl':_0x2b41ea,'controller':_0x371f3f('0xf7f')}},'resolve':{'chatQueues':[_0x371f3f('0x354'),_0x371f3f('0x15bc'),function _0x162d68(_0x522e2b,_0x8211e1){var _0x31ed9f=_0x371f3f;return _0x8211e1[_0x31ed9f('0x21de')](_0x31ed9f('0x1bd8'))?_0x522e2b[_0x31ed9f('0x8ac')](_0x31ed9f('0x1946'),{'fields':_0x31ed9f('0x87f'),'sort':'-updatedAt','channel':'chat','limit':0xa,'offset':0x0}):_0x522e2b[_0x31ed9f('0x8ac')](_0x31ed9f('0x52f'),{'id':_0x8211e1['getCurrentUser']()[_0x31ed9f('0x1618')],'section':_0x31ed9f('0xf82'),'fields':_0x31ed9f('0x87f'),'sort':'-updatedAt','channel':_0x31ed9f('0x1f65'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function _0x1690da(_0x46bacc,_0x4c3207){var _0x323eb9=_0x371f3f;return _0x4c3207[_0x323eb9('0x21de')](_0x323eb9('0x1bd8'))?null:_0x46bacc['resolve']('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x4c3207[_0x323eb9('0x15ed')]()[_0x323eb9('0x1618')]});}],'userProfileSection':[_0x371f3f('0x354'),_0x371f3f('0x15bc'),function _0x237cf3(_0x515ecb,_0x2ddcd2){var _0x69f3c2=_0x371f3f;return _0x2ddcd2[_0x69f3c2('0x21de')]('admin')?null:_0x515ecb[_0x69f3c2('0x8ac')](_0x69f3c2('0x222f'),{'fields':_0x69f3c2('0x1852'),'userProfileId':_0x2ddcd2[_0x69f3c2('0x15ed')]()[_0x69f3c2('0x1618')],'sectionId':0x1f5});}]},'authenticate':!![],'permissionId':0x1f5,'bodyClass':_0x371f3f('0x1f65')})[_0x371f3f('0x27e')](_0x371f3f('0x19fd'),{'url':_0x371f3f('0x17f5'),'params':{'chatQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x435468,'controller':'ChatQueueController\x20as\x20vm'}},'resolve':{'chatQueue':['apiResolver',_0x371f3f('0x114e'),function _0x56bfe(_0x59b1cb,_0x30f58d){var _0x1e645a=_0x371f3f;return _0x59b1cb[_0x1e645a('0x8ac')](_0x1e645a('0x1946'),{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','id':_0x30f58d['id']});}],'userProfileSection':[_0x371f3f('0x354'),_0x371f3f('0x15bc'),function _0x2b82b8(_0x27d395,_0x13c013){var _0x68f965=_0x371f3f;return _0x27d395[_0x68f965('0x8ac')](_0x68f965('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x13c013[_0x68f965('0x15ed')]()['userProfileId'],'sectionId':0x1f5});}]},'authenticate':!![],'permissionId':0x1f5,'bodyClass':_0x371f3f('0x1f65')})[_0x371f3f('0x27e')](_0x371f3f('0x1f38'),{'url':_0x371f3f('0x19ae'),'views':{'content@app':{'templateUrl':_0x2de414,'controller':_0x371f3f('0xea8')}},'resolve':{'chatWebsites':['apiResolver',_0x371f3f('0x15bc'),function _0x185bba(_0x4b5a03,_0x1b37e5){var _0x60872c=_0x371f3f;return _0x1b37e5[_0x60872c('0x21de')](_0x60872c('0x1bd8'))?_0x4b5a03[_0x60872c('0x8ac')]('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':_0x60872c('0x33'),'limit':0xa,'offset':0x0}):_0x4b5a03[_0x60872c('0x8ac')](_0x60872c('0x52f'),{'id':_0x1b37e5[_0x60872c('0x15ed')]()[_0x60872c('0x1618')],'section':_0x60872c('0x1b53'),'fields':_0x60872c('0x7a3'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x371f3f('0x354'),_0x371f3f('0x15bc'),function _0x6f2046(_0x4a53a6,_0x35251a){var _0x18e072=_0x371f3f;return _0x35251a['hasRole'](_0x18e072('0x1bd8'))?null:_0x4a53a6[_0x18e072('0x8ac')]('userProfile@get',{'fields':_0x18e072('0x1a00'),'id':_0x35251a[_0x18e072('0x15ed')]()[_0x18e072('0x1618')]});}],'userProfileSection':[_0x371f3f('0x354'),_0x371f3f('0x15bc'),function _0x3fceff(_0x3216da,_0x43b78b){var _0x4ca896=_0x371f3f;return _0x43b78b['hasRole'](_0x4ca896('0x1bd8'))?null:_0x3216da[_0x4ca896('0x8ac')](_0x4ca896('0x222f'),{'fields':_0x4ca896('0x1852'),'userProfileId':_0x43b78b[_0x4ca896('0x15ed')]()[_0x4ca896('0x1618')],'sectionId':0x1f6});}]},'authenticate':!![],'permissionId':0x1f6,'bodyClass':_0x371f3f('0x1f65')})[_0x371f3f('0x27e')](_0x371f3f('0x6ba'),{'url':_0x371f3f('0x17f5'),'params':{'chatWebsite':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x58cfe7,'controller':_0x371f3f('0x1416')}},'resolve':{'chatWebsite':[_0x371f3f('0x354'),_0x371f3f('0x114e'),function _0x366ff4(_0x599c5c,_0x33473d){var _0x48076c=_0x371f3f;return _0x599c5c[_0x48076c('0x8ac')](_0x48076c('0x1a92'),{'fields':_0x48076c('0x7a3'),'id':_0x33473d['id']});}],'userProfileSection':[_0x371f3f('0x354'),_0x371f3f('0x15bc'),function _0x2939c2(_0x469958,_0x49f014){var _0x5508e4=_0x371f3f;return _0x469958['resolve'](_0x5508e4('0x222f'),{'fields':_0x5508e4('0x1852'),'userProfileId':_0x49f014[_0x5508e4('0x15ed')]()[_0x5508e4('0x1618')],'sectionId':0x1f6});}]},'authenticate':!![],'permissionId':0x1f6,'bodyClass':'chat'}),_0x2eaa15[_0x371f3f('0x20ab')](_0x371f3f('0x1cd'));}angular['module']('app.chat',[_0x3877e3('0x240c'),_0x3877e3('0x1b0'),_0x3877e3('0xca'),'flow',_0x3877e3('0x2437'),_0x3877e3('0x25c7'),'ng-sortable',_0x3877e3('0x264a'),_0x3877e3('0x19'),_0x3877e3('0x335'),_0x3877e3('0xc90'),_0x3877e3('0x56d'),_0x3877e3('0xe2f'),_0x3877e3('0x10c'),_0x3877e3('0xf61'),_0x3877e3('0xe39'),_0x3877e3('0x25a2'),'material.components.expansionPanels',_0x3877e3('0x9e0'),_0x3877e3('0x1c54'),_0x3877e3('0x1062')])['config'](_0x4fd819)['controller'](_0x3877e3('0x253f'),_0x35d819)[_0x3877e3('0x1d5a')](_0x3877e3('0x42e'),_0x1fe76f)['controller'](_0x3877e3('0x139a'),_0x1e2da8)[_0x3877e3('0x1d5a')](_0x3877e3('0x489'),_0xb00bb3)['controller'](_0x3877e3('0x1b3f'),_0x2fc32a)[_0x3877e3('0x1d5a')](_0x3877e3('0x732'),_0x1487e4)[_0x3877e3('0x1d5a')]('CreateOrEditChatWebsiteDialogController',_0x348d8e)[_0x3877e3('0x1d5a')](_0x3877e3('0xe20'),_0x186b19)['controller']('ChatWebsiteagentaddController',_0x197fc0)[_0x3877e3('0x1d5a')](_0x3877e3('0x5'),_0x127e1d)[_0x3877e3('0x1d5a')](_0x3877e3('0x693'),_0x350bd3)[_0x3877e3('0x1d5a')](_0x3877e3('0x1804'),_0x1815b0)[_0x3877e3('0x1d5a')](_0x3877e3('0x1804'),_0x1815b0)[_0x3877e3('0x1d5a')](_0x3877e3('0xbbb'),_0x3eb00b)[_0x3877e3('0x1d5a')]('EditChatWebsiteAppcloseDialogController',_0x176f78)['controller'](_0x3877e3('0xd43'),_0x8cf225)[_0x3877e3('0x1d5a')](_0x3877e3('0x257b'),_0x408f13)[_0x3877e3('0x1d5a')](_0x3877e3('0x14fe'),_0x2732d6)[_0x3877e3('0x1d5a')](_0x3877e3('0x2834'),_0x17758a)['controller']('EditChatWebsiteAppnoopDialogController',_0xf3e12)[_0x3877e3('0x1d5a')](_0x3877e3('0x8d3'),_0x37045c)[_0x3877e3('0x1d5a')](_0x3877e3('0x58a'),_0x435cb2)['controller'](_0x3877e3('0xca5'),_0x19ecf0)[_0x3877e3('0x1d5a')](_0x3877e3('0x944'),_0x17cab7)['controller'](_0x3877e3('0x126b'),_0x237622)[_0x3877e3('0x1d5a')](_0x3877e3('0x1433'),_0xaea22f)['controller']('ChatWebsiteofflineFormController',_0x2c7096)[_0x3877e3('0x1d5a')]('ChatWebsiteonlineFormController',_0x30fb6a)[_0x3877e3('0x1d5a')](_0x3877e3('0x2778'),_0x5be442)[_0x3877e3('0x1d5a')](_0x3877e3('0x5eb'),_0x2f55f3)['controller'](_0x3877e3('0x1519'),_0x79b802)['controller'](_0x3877e3('0x13a9'),_0x18caa3)[_0x3877e3('0x1d5a')](_0x3877e3('0xc88'),_0x56cec1)[_0x3877e3('0x1d5a')]('ChatWebsiteProactiveActionsController',_0x551be3)[_0x3877e3('0x1d5a')](_0x3877e3('0x13f7'),_0x3bb4f2)[_0x3877e3('0x1d5a')](_0x3877e3('0x7aa'),_0x5a1615)[_0x3877e3('0x1d5a')]('ChatWebsitesystemAvatarController',_0xd02f01)[_0x3877e3('0x1d5a')]('ChatWebsiteController',_0x142007);const _0x14e7e9=_0x398308['p']+_0x3877e3('0x1029'),_0x2bf0cf=_0x398308['p']+_0x3877e3('0xe7b'),_0x2d04a1=_0x398308['p']+_0x3877e3('0x258f'),_0x42a7c8=_0x398308['p']+_0x3877e3('0xcba');_0x63aa24['$inject']=[_0x3877e3('0x95a'),'$q','$timeout',_0x3877e3('0x1850'),'$document',_0x3877e3('0x143b'),_0x3877e3('0x1fc7'),'agents',_0x3877e3('0x165c'),_0x3877e3('0xccd'),_0x3877e3('0x25d8'),_0x3877e3('0x1908'),_0x3877e3('0x2703'),_0x3877e3('0x758'),'userProfileSection',_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x1e8d')];function _0x63aa24(_0x48787f,_0x4f8e55,_0x1d3936,_0x37cc91,_0x1a637f,_0x5795f7,_0x18738c,_0x4dbd10,_0x42d611,_0x10359f,_0x47fc47,_0x153092,_0x1651f7,_0x581247,_0x288bde,_0x269c55,_0x6c0962,_0x358d7a){var _0x732c39=_0x3877e3,_0x294cbd=this,_0x375d5f=['userpic',_0x732c39('0x1ecb'),_0x732c39('0x190e'),_0x732c39('0x1a2c'),_0x732c39('0x1f37'),'lastPauseAt',_0x732c39('0x201f'),_0x732c39('0x1ba3'),_0x732c39('0x1785'),_0x732c39('0x2022'),_0x732c39('0x1396'),_0x732c39('0x2826'),'whatsappPause','faxPause',_0x732c39('0x1025'),'chatCapacity',_0x732c39('0x9db'),'mailCapacity',_0x732c39('0xac0'),'whatsappCapacity',_0x732c39('0xa28'),'chatCurrentCapacity','openchannelCurrentCapacity',_0x732c39('0x4f9'),_0x732c39('0x8db'),_0x732c39('0xe1'),_0x732c39('0x1317'),_0x732c39('0x1cf9'),_0x732c39('0xf0'),_0x732c39('0x1d70'),'smsStatus','whatsappStatus',_0x732c39('0x282'),_0x732c39('0x27ea'),_0x732c39('0x1ffc'),_0x732c39('0x116'),_0x732c39('0xf73'),_0x732c39('0x1a1'),_0x732c39('0x18fb'),_0x732c39('0x27b6'),_0x732c39('0xc0'),_0x732c39('0xbdd'),_0x732c39('0xa70'),_0x732c39('0x17f4'),_0x732c39('0x1d44'),_0x732c39('0x2422')],_0x4a96d3=[_0x732c39('0x1785'),'openchannelPause',_0x732c39('0x1396'),'smsPause','whatsappPause','faxPause',_0x732c39('0x1025'),_0x732c39('0x1ecb')];_0x294cbd['currentUser']=_0x269c55[_0x732c39('0x15ed')](),_0x294cbd[_0x732c39('0x16b3')]=['ringing',_0x732c39('0x1d37'),_0x732c39('0x860'),_0x732c39('0x22b1'),'not_inuse'],_0x294cbd[_0x732c39('0x1fc7')]=_0x18738c||{'count':0x0,'rows':[]},_0x294cbd[_0x732c39('0x2ff')]=_0x6c0962,_0x294cbd[_0x732c39('0x758')]=_0x581247,_0x294cbd[_0x732c39('0xab4')]=_0x288bde&&_0x288bde[_0x732c39('0x205f')]==0x1?_0x288bde[_0x732c39('0x1b33')][0x0]:null,_0x294cbd[_0x732c39('0x5ed')]=_0x269c55[_0x732c39('0x1778')](_0x294cbd[_0x732c39('0xab4')]?_0x294cbd[_0x732c39('0xab4')]['crudPermissions']:null),_0x294cbd[_0x732c39('0xcb5')]=_0x4dbd10?_0x86640f()[_0x732c39('0xcde')](_0x4dbd10[_0x732c39('0x1b33')]?_0x4dbd10[_0x732c39('0x1b33')]:[],'id'):{},_0x294cbd['rpcAgents']=_0x42d611?_0x86640f()['keyBy'](_0x42d611['rows']?_0x42d611[_0x732c39('0x1b33')]:[],'id'):{},_0x294cbd[_0x732c39('0x261a')]={},_0x294cbd['load']=![],_0x294cbd[_0x732c39('0x2752')]=[],_0x294cbd[_0x732c39('0x24ee')]={};for(var _0x1c35d7 in _0x294cbd[_0x732c39('0xcb5')]){typeof _0x294cbd[_0x732c39('0xcb5')][_0x1c35d7]!==_0x732c39('0xddc')&&(_0x294cbd['agents'][_0x1c35d7][_0x732c39('0x1d75')]=!![]);}_0x294cbd['query']={'limit':0xa,'page':0x1,'order':_0x732c39('0x20f5'),'globalStatusFilter':'','pauseTypeFilter':''},_0x294cbd['logout']=_0x297c8f,_0x294cbd[_0x732c39('0x9e9')]=_0x33988d,_0x294cbd['pause']=_0x47a5fb,_0x294cbd['unPause']=_0x5c0fe8,_0x294cbd[_0x732c39('0xa45')]=_0x601351,_0x294cbd[_0x732c39('0x106')]=_0x4365d2,_0x294cbd['getAgentGlobalStatus']=_0x338bc2,_0x294cbd[_0x732c39('0xca6')]=_0x2bf1db,_0x294cbd[_0x732c39('0x1044')]=_0x35f43b,_0x294cbd['isPartialPause']=_0x19057e,_0x294cbd[_0x732c39('0x1b74')]=_0x4d10f9,_0x294cbd[_0x732c39('0x27d7')]=_0x34bbde,_0x294cbd['onInit']=_0x4bacb6,_0x294cbd[_0x732c39('0x7e0')]=_0x57b11b,_0x294cbd['onComplete']=_0x21b2c6,_0x294cbd['screenRecording']=_0xc71ae1,_0x47fc47['on'](_0x732c39('0x62b'),_0x294cbd[_0x732c39('0x1b74')]),_0x47fc47['on']('user:update',_0x294cbd[_0x732c39('0x27d7')]),_0x47fc47['on'](_0x732c39('0x19a7'),_0x294cbd[_0x732c39('0x7e0')]),_0x47fc47['on'](_0x732c39('0x1131'),_0x294cbd[_0x732c39('0xebf')]),_0x4bacb6();var _0x5d947e=_0x358d7a(function(){var _0x1eabab=_0x732c39;_0x294cbd[_0x1eabab('0x20ad')]&&(_0x294cbd[_0x1eabab('0x20ad')]=![],_0x4bacb6());},0x3e7);function _0x4bacb6(){var _0x4b00f=_0x732c39;_0x294cbd[_0x4b00f('0x20ad')]=![];var _0x31635d=_0x4f8e55['defer']();_0x294cbd[_0x4b00f('0x71b')]=_0x31635d[_0x4b00f('0x71b')],_0x294cbd[_0x4b00f('0x1782')]=[],_0x294cbd['order']=[],_0x86640f()[_0x4b00f('0xd54')](_0x294cbd[_0x4b00f('0xcb5')],function(_0x30a277,_0x13cf09){var _0x4b981b=_0x4b00f;_0x294cbd[_0x4b981b('0x165c')][_0x13cf09]&&_0x86640f()['merge'](_0x30a277,_0x86640f()[_0x4b981b('0xc50')](_0x86640f()[_0x4b981b('0x27b1')](_0x294cbd[_0x4b981b('0x165c')][_0x13cf09],_0x4a96d3),_0x375d5f)),_0x338bc2(_0x30a277),_0x30a277['online']?(_0x294cbd[_0x4b981b('0x1782')][_0x4b981b('0x206c')](_0x30a277),_0x294cbd[_0x4b981b('0x24ee')][_0x30a277[_0x4b981b('0x201f')]]=_0x13cf09):_0x30a277[_0x4b981b('0x1ea5')]=_0x86640f()[_0x4b981b('0x1662')](_0x1088bc()()[_0x4b981b('0x153')]('x'));});_0x294cbd[_0x4b00f('0x77')][_0x4b00f('0xcfb')]&&_0x86640f()[_0x4b00f('0x16a2')](_0x294cbd[_0x4b00f('0x1782')],function(_0x364fac){var _0x36698e=_0x4b00f;return _0x364fac[_0x36698e('0x100f')]!==_0x294cbd['query'][_0x36698e('0xcfb')];});_0x294cbd['query']['pauseTypeFilter']&&_0x86640f()[_0x4b00f('0x16a2')](_0x294cbd['filteredAgents'],function(_0x68bc7d){var _0x5387ac=_0x4b00f;return _0x68bc7d['pauseType']!==_0x294cbd['query'][_0x5387ac('0x1024')];});_0x294cbd[_0x4b00f('0x77')][_0x4b00f('0x1503')]&&_0x86640f()['remove'](_0x294cbd[_0x4b00f('0x1782')],function(_0x26defa){var _0x2cae83=_0x4b00f;return _0x26defa[_0x2cae83('0x20f5')][_0x2cae83('0xac2')]()[_0x2cae83('0x2004')](_0x294cbd['query'][_0x2cae83('0x1503')]['toLowerCase']())<0x0;});_0x294cbd['filteredAgents']=_0xf7d4ef(_0x294cbd[_0x4b00f('0x1782')]);var _0x55a7b4=(_0x294cbd[_0x4b00f('0x77')][_0x4b00f('0x2376')]-0x1)*_0x294cbd[_0x4b00f('0x77')]['limit'];_0x294cbd[_0x4b00f('0x261a')]=_0x86640f()[_0x4b00f('0x2189')](_0x294cbd[_0x4b00f('0x1782')],_0x55a7b4)[_0x4b00f('0xb3d')](0x0,_0x294cbd[_0x4b00f('0x77')][_0x4b00f('0x1f4a')]);for(var _0x589ca3=0x0;_0x589ca3<_0x294cbd[_0x4b00f('0x261a')]['length'];_0x589ca3+=0x1){_0x294cbd['order']['push'](_0x294cbd[_0x4b00f('0x261a')][_0x589ca3]['id']);}_0x31635d[_0x4b00f('0x8ac')](),_0x294cbd['load']=!![];}function _0x4d10f9(_0x1d053b){var _0x25e31d=_0x732c39;_0x294cbd[_0x25e31d('0xcb5')][_0x1d053b['id']]&&(_0x86640f()['merge'](_0x294cbd[_0x25e31d('0xcb5')][_0x1d053b['id']],_0x86640f()[_0x25e31d('0xc50')](_0x86640f()[_0x25e31d('0x27b1')](_0x1d053b,_0x4a96d3),_0x375d5f)),_0x86640f()['merge'](_0x294cbd[_0x25e31d('0x165c')][_0x1d053b['id']],_0x86640f()[_0x25e31d('0xc50')](_0x86640f()[_0x25e31d('0x27b1')](_0x1d053b,_0x4a96d3),_0x375d5f)),_0x338bc2(_0x294cbd['agents'][_0x1d053b['id']]));}function _0x34bbde(_0x30c888){var _0x574e6f=_0x732c39;_0x294cbd['agents'][_0x30c888['id']]&&(_0x86640f()[_0x574e6f('0xd0e')](_0x294cbd['agents'][_0x30c888['id']],_0x86640f()['pick'](_0x30c888,_0x375d5f)),_0x86640f()[_0x574e6f('0xd0e')](_0x294cbd['rpcAgents'][_0x30c888['id']],_0x86640f()[_0x574e6f('0xc50')](_0x30c888,_0x375d5f)),_0x30c888['lastPauseAt']&&(_0x294cbd[_0x574e6f('0xcb5')][_0x30c888['id']]['globalStatusTime']=_0x30c888[_0x574e6f('0x1a2c')],_0x294cbd[_0x574e6f('0x165c')][_0x30c888['id']][_0x574e6f('0x1ea5')]=_0x30c888[_0x574e6f('0x1a2c')]),_0x338bc2(_0x294cbd[_0x574e6f('0xcb5')][_0x30c888['id']]));}function _0x57b11b(_0x3415ec){var _0x1bdddb=_0x732c39;_0x294cbd['agents'][_0x294cbd[_0x1bdddb('0x24ee')][_0x3415ec[_0x1bdddb('0xe4e')]]]&&(_0x86640f()[_0x1bdddb('0xd0e')](_0x294cbd[_0x1bdddb('0xcb5')][_0x294cbd[_0x1bdddb('0x24ee')][_0x3415ec[_0x1bdddb('0xe4e')]]],_0x86640f()[_0x1bdddb('0xc50')](_0x3415ec,[_0x1bdddb('0xbdd'),'destconnectedlinenum'])),_0x86640f()[_0x1bdddb('0xd0e')](_0x294cbd[_0x1bdddb('0x165c')][_0x294cbd[_0x1bdddb('0x24ee')][_0x3415ec['destaccountcode']]],_0x86640f()[_0x1bdddb('0xc50')](_0x3415ec,[_0x1bdddb('0xbdd'),_0x1bdddb('0xa70')])));}function _0x21b2c6(_0x419aef){var _0x32e18c=_0x732c39;_0x294cbd['agents'][_0x294cbd[_0x32e18c('0x24ee')][_0x419aef[_0x32e18c('0xe4e')]]]&&(_0x294cbd[_0x32e18c('0xcb5')][_0x294cbd[_0x32e18c('0x24ee')][_0x419aef[_0x32e18c('0xe4e')]]]=_0x86640f()[_0x32e18c('0x27b1')](_0x294cbd[_0x32e18c('0xcb5')][_0x294cbd[_0x32e18c('0x24ee')][_0x419aef[_0x32e18c('0xe4e')]]],[_0x32e18c('0xbdd'),_0x32e18c('0xa70')]),_0x294cbd[_0x32e18c('0x165c')][_0x294cbd[_0x32e18c('0x24ee')][_0x419aef[_0x32e18c('0xe4e')]]]=_0x86640f()['omit'](_0x294cbd[_0x32e18c('0x165c')][_0x294cbd['agentInternal'][_0x419aef[_0x32e18c('0xe4e')]]],[_0x32e18c('0xbdd'),_0x32e18c('0xa70')]));}function _0x297c8f(_0x16ae73){var _0x2cbbea=_0x732c39;return _0x10359f[_0x2cbbea('0x1775')][_0x2cbbea('0xda3')]({'id':_0x16ae73['id'],'device':_0x2cbbea('0x116a'),'agent_id':_0x16ae73['id'],'agent_name':_0x16ae73[_0x2cbbea('0x19fe')]})[_0x2cbbea('0x1376')][_0x2cbbea('0x21ad')](function(){var _0x370ede=_0x2cbbea;_0x153092[_0x370ede('0xdb1')]({'title':'Agent\x20logout','msg':_0x16ae73['fullname']+'\x20\x20properly\x20logout'}),_0x294cbd[_0x370ede('0xcb5')][_0x16ae73['id']]&&(_0x294cbd['agents'][_0x16ae73['id']]['online']=![]),_0x294cbd[_0x370ede('0x165c')][_0x16ae73['id']]&&(_0x294cbd[_0x370ede('0x165c')][_0x16ae73['id']][_0x370ede('0x1ecb')]=![]),_0x4bacb6();})['catch'](function(_0x580417){var _0x38e330=_0x2cbbea;_0x153092[_0x38e330('0x2092')]({'title':_0x580417[_0x38e330('0x209')]?_0x38e330('0x22d')+_0x580417[_0x38e330('0x209')]+'\x20-\x20'+_0x580417[_0x38e330('0x1808')]:_0x38e330('0x1df9'),'msg':_0x580417[_0x38e330('0x11c2')]?JSON[_0x38e330('0x25e')](_0x580417[_0x38e330('0x11c2')][_0x38e330('0x1224')]):_0x580417['toString']()});});}function _0x47a5fb(_0x5cddc0,_0x40a516){var _0x368670=_0x732c39;return _0x10359f['user']['pause']({'id':_0x5cddc0['id'],'type':_0x40a516})[_0x368670('0x1376')][_0x368670('0x21ad')](function(_0x3678c0){var _0x5ed2c2=_0x368670;_0x294cbd['agents'][_0x5cddc0['id']]&&_0x86640f()[_0x5ed2c2('0xd0e')](_0x294cbd[_0x5ed2c2('0xcb5')][_0x5cddc0['id']],_0x86640f()['pick'](_0x3678c0,_0x375d5f)),_0x294cbd[_0x5ed2c2('0x165c')][_0x5cddc0['id']]&&_0x86640f()[_0x5ed2c2('0xd0e')](_0x294cbd[_0x5ed2c2('0x165c')][_0x5cddc0['id']],_0x86640f()[_0x5ed2c2('0xc50')](_0x3678c0,_0x375d5f)),_0x338bc2(_0x294cbd[_0x5ed2c2('0xcb5')][_0x5cddc0['id']]);})[_0x368670('0x1c1d')](function(_0x3b20d9){var _0x12ab9b=_0x368670;_0x153092[_0x12ab9b('0x2092')]({'title':_0x3b20d9['status']?'API:'+_0x3b20d9[_0x12ab9b('0x209')]+'\x20-\x20'+_0x3b20d9[_0x12ab9b('0x1808')]:_0x12ab9b('0x1df9'),'msg':_0x3b20d9[_0x12ab9b('0x11c2')]?JSON[_0x12ab9b('0x25e')](_0x3b20d9[_0x12ab9b('0x11c2')][_0x12ab9b('0x1224')]):_0x3b20d9[_0x12ab9b('0x174f')]()});});}function _0x5c0fe8(_0xeef8f5){var _0xa0415=_0x732c39;return _0x10359f['user'][_0xa0415('0xa8e')]({'id':_0xeef8f5['id']})[_0xa0415('0x1376')]['then'](function(_0x14d1a0){var _0x35e4a7=_0xa0415;_0x294cbd[_0x35e4a7('0xcb5')][_0xeef8f5['id']]&&_0x86640f()[_0x35e4a7('0xd0e')](_0x294cbd['agents'][_0xeef8f5['id']],_0x86640f()[_0x35e4a7('0xc50')](_0x14d1a0,_0x375d5f)),_0x294cbd[_0x35e4a7('0x165c')][_0xeef8f5['id']]&&_0x86640f()[_0x35e4a7('0xd0e')](_0x294cbd['rpcAgents'][_0xeef8f5['id']],_0x86640f()[_0x35e4a7('0xc50')](_0x14d1a0,_0x375d5f)),_0x338bc2(_0x294cbd[_0x35e4a7('0xcb5')][_0xeef8f5['id']]);})['catch'](function(_0x4cf80e){var _0x107975=_0xa0415;_0x153092[_0x107975('0x2092')]({'title':_0x4cf80e[_0x107975('0x209')]?_0x107975('0x22d')+_0x4cf80e[_0x107975('0x209')]+_0x107975('0xa99')+_0x4cf80e[_0x107975('0x1808')]:_0x107975('0x1df9'),'msg':_0x4cf80e[_0x107975('0x11c2')]?JSON[_0x107975('0x25e')](_0x4cf80e[_0x107975('0x11c2')][_0x107975('0x1224')]):_0x4cf80e['toString']()});});}function _0x601351(_0x481116){var _0x1f4872=_0x732c39;_0x37cc91[_0x1f4872('0x853')](_0x37cc91[_0x1f4872('0x95b')]()[_0x1f4872('0x1226')](!![])['title']('Legend')[_0x1f4872('0x276b')]('
TODO\x20legend\x20status\x20+\x20state
')['ok']('Ok')['targetEvent'](_0x481116));}function _0x33988d(_0x11640d,_0x2df081){var _0x45481e=_0x732c39;_0x37cc91[_0x45481e('0x853')]({'controller':_0x45481e('0x213f'),'controllerAs':'vm','templateUrl':_0x287ed6,'parent':angular['element'](_0x1a637f[_0x45481e('0x2452')]),'targetEvent':_0x2df081,'clickOutsideToClose':!![],'locals':{'agent':_0x11640d,'agents':[],'channel':_0x45481e('0x1c8b'),'direction':_0x45481e('0x923'),'crudPermissions':_0x294cbd[_0x45481e('0x5ed')]}});}function _0x2bf1db(_0x103fb8){var _0x3f0154=_0x732c39;return _0x103fb8===_0x3f0154('0x1e26')||_0x103fb8===_0x3f0154('0x1a4e');}function _0x35f43b(_0x5e54ed){var _0x260a22=_0x732c39;return _0x5e54ed===_0x260a22('0x1e26');}function _0x19057e(_0x5dd3b0){var _0x58457a=_0x732c39;return _0x5dd3b0===_0x58457a('0x1a4e');}function _0x3b7836(_0x592506){var _0x96185a=_0x732c39;return _0x592506===_0x96185a('0x219')||_0x592506==='unknown'||_0x592506===_0x96185a('0x22fd')||_0x592506===_0x96185a('0x200c')||_0x86640f()[_0x96185a('0x1c7')](_0x592506);}function _0x4365d2(_0x5214f0,_0x1422db){var _0x4c9d96=_0x732c39;if(_0x1422db===_0x4c9d96('0x8ed')){if(_0x5214f0[_0x1422db+_0x4c9d96('0x843')]!==_0x4c9d96('0x219'))return _0x5214f0[_0x1422db+_0x4c9d96('0x843')];if(_0x5214f0[_0x1422db+_0x4c9d96('0xc77')])return _0x5214f0[_0x1422db+_0x4c9d96('0x843')]=_0x4c9d96('0x1e26'),'pause';return'idle';}else{if(_0x5214f0[_0x1422db+_0x4c9d96('0xc77')])return _0x5214f0[_0x1422db+'Status']=_0x4c9d96('0x1e26'),_0x4c9d96('0x1e26');return _0x5214f0[_0x1422db+_0x4c9d96('0x843')];}}function _0x338bc2(_0x2f7537){var _0x8a94dd=_0x732c39,_0x5d1550=_0x8a94dd('0x1a4f');if(_0x86640f()[_0x8a94dd('0xc74')]([_0x4365d2(_0x2f7537,_0x8a94dd('0x8ed')),_0x4365d2(_0x2f7537,_0x8a94dd('0x1f65')),_0x4365d2(_0x2f7537,_0x8a94dd('0x1c8b')),_0x4365d2(_0x2f7537,_0x8a94dd('0xac9')),_0x4365d2(_0x2f7537,_0x8a94dd('0x3d0')),_0x4365d2(_0x2f7537,'whatsapp'),_0x4365d2(_0x2f7537,_0x8a94dd('0x93f'))],_0x2bf1db))_0x5d1550=_0x8a94dd('0x1e26');else{if(_0x86640f()['some']([_0x4365d2(_0x2f7537,_0x8a94dd('0x8ed')),_0x4365d2(_0x2f7537,'chat'),_0x4365d2(_0x2f7537,_0x8a94dd('0x1c8b')),_0x4365d2(_0x2f7537,_0x8a94dd('0xac9')),_0x4365d2(_0x2f7537,_0x8a94dd('0x3d0')),_0x4365d2(_0x2f7537,_0x8a94dd('0x1ad4')),_0x4365d2(_0x2f7537,_0x8a94dd('0x93f'))],_0x2bf1db))_0x5d1550='*pause';else _0x86640f()[_0x8a94dd('0xc74')]([_0x4365d2(_0x2f7537,_0x8a94dd('0x8ed')),_0x4365d2(_0x2f7537,_0x8a94dd('0x1f65')),_0x4365d2(_0x2f7537,'mail'),_0x4365d2(_0x2f7537,'openchannel'),_0x4365d2(_0x2f7537,'sms'),_0x4365d2(_0x2f7537,_0x8a94dd('0x1ad4')),_0x4365d2(_0x2f7537,_0x8a94dd('0x93f'))],_0x3b7836)?_0x5d1550='idle':_0x5d1550=_0x8a94dd('0x860');}_0x2f7537[_0x8a94dd('0x100f')]!==_0x5d1550&&(_0x2f7537[_0x8a94dd('0x100f')]=_0x5d1550,_0x2f7537['init']?(_0x2f7537[_0x8a94dd('0x1d75')]=![],_0x2f7537['globalStatusTime']=_0x2bf1db(_0x5d1550)?_0x86640f()['toNumber'](_0x1088bc()(_0x2f7537['lastPauseAt'])[_0x8a94dd('0x153')]('x')):_0x86640f()[_0x8a94dd('0x1847')]([_0x2f7537['voiceStatusTime'],_0x2f7537['chatStatusTime'],_0x2f7537[_0x8a94dd('0xf73')],_0x2f7537[_0x8a94dd('0x1a1')],_0x2f7537[_0x8a94dd('0x18fb')],_0x2f7537[_0x8a94dd('0x116')],_0x2f7537['faxStatusTime']])):_0x2f7537[_0x8a94dd('0x1ea5')]=_0x86640f()['toNumber'](_0x1088bc()()[_0x8a94dd('0x153')]('x')));}function _0xf7d4ef(_0x143e84){var _0x4292fe=_0x732c39,_0x397fc0=_0x86640f()[_0x4292fe('0x2837')](_0x294cbd[_0x4292fe('0x77')][_0x4292fe('0x2752')],'-')?_0x4292fe('0x340'):_0x4292fe('0x15d6');return _0x86640f()[_0x4292fe('0x11df')](_0x143e84,[_0x294cbd['query'][_0x4292fe('0x2752')][_0x4292fe('0x16e4')]('-','')],[_0x397fc0]);}function _0x5bd399(){var _0x251b9a=_0x732c39;_0x5d947e&&(_0x358d7a[_0x251b9a('0x3b5')](_0x5d947e),_0x5d947e=null);}function _0xc71ae1(_0x44960f,_0x5cbb62){var _0x375bfd=_0x732c39;return _0x10359f['user'][_0x375bfd('0x5ef')]({'id':_0x44960f['id']},{'screenrecording':_0x5cbb62})[_0x375bfd('0x1376')]['catch'](function(_0x104083){var _0x29a7ca=_0x375bfd;_0x153092['error']({'title':_0x104083['status']?'API:'+_0x104083['status']+_0x29a7ca('0xa99')+_0x104083[_0x29a7ca('0x1808')]:_0x29a7ca('0x14b6'),'msg':_0x104083[_0x29a7ca('0x11c2')]?JSON['stringify'](_0x104083['data'][_0x29a7ca('0x1224')]):_0x104083['toString']()});});}_0x48787f[_0x732c39('0x1723')](_0x732c39('0x1210'),function(){var _0x411797=_0x732c39;_0x47fc47[_0x411797('0x16cc')]('user:save'),_0x47fc47[_0x411797('0x16cc')](_0x411797('0x21f4')),_0x47fc47['removeAllListeners'](_0x411797('0x19a7')),_0x47fc47['removeAllListeners'](_0x411797('0x1131')),_0x5bd399();});}const _0x64d4a7=_0x63aa24,_0x28f06a=_0x398308['p']+'src/js/modules/main/apps/mail/views/mailQueues/create/dialog.html/dialog-[chunkhash].html',_0x1c3953=_0x398308['p']+_0x3877e3('0x43f');_0x4c682d[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x2313'),_0x3877e3('0x1850'),'$q','$document',_0x3877e3('0x1e8d'),_0x3877e3('0xb7a'),_0x3877e3('0x245'),_0x3877e3('0xccd'),_0x3877e3('0x25d8'),_0x3877e3('0x1908'),_0x3877e3('0x758'),'userProfileSection',_0x3877e3('0x15bc')];function _0x4c682d(_0x198f88,_0x308694,_0x1519e2,_0x4d2f74,_0x1ae875,_0x3251d9,_0x1e172,_0x3e8c79,_0x1506b4,_0x269448,_0x479d58,_0x339692,_0x2af2d2,_0x47ffac){var _0x13bfac=_0x3877e3,_0x4ce6df=this,_0xd5c0e1=['loggedIn',_0x13bfac('0x21ef'),_0x13bfac('0x8b6'),_0x13bfac('0x4f6'),'pTalking',_0x13bfac('0x108'),'message','dialActive',_0x13bfac('0x1c4b'),_0x13bfac('0x1e2e'),_0x13bfac('0x250c')];_0x4ce6df[_0x13bfac('0x123f')]=_0x47ffac[_0x13bfac('0x15ed')](),_0x4ce6df[_0x13bfac('0x205f')]=_0x1e172['count']?_0x1e172[_0x13bfac('0x205f')]:0x0,_0x4ce6df[_0x13bfac('0xb7a')]=_0x1e172?_0x86640f()[_0x13bfac('0xcde')](_0x1e172[_0x13bfac('0x1b33')]?_0x1e172['rows']:[],'id'):{},_0x4ce6df['rpcQueues']=_0x3e8c79?_0x86640f()[_0x13bfac('0xcde')](_0x3e8c79[_0x13bfac('0x1b33')]?_0x3e8c79[_0x13bfac('0x1b33')]:[],'id'):{},_0x4ce6df[_0x13bfac('0x758')]=_0x339692,_0x4ce6df[_0x13bfac('0xab4')]=_0x2af2d2&&_0x2af2d2['count']==0x1?_0x2af2d2[_0x13bfac('0x1b33')][0x0]:null,_0x4ce6df[_0x13bfac('0x5ed')]=_0x47ffac['parseCrudPermissions'](_0x4ce6df['userProfileSection']?_0x4ce6df[_0x13bfac('0xab4')][_0x13bfac('0x5ed')]:null);_0x47ffac['hasRole'](_0x13bfac('0x1bd8'))?_0x4ce6df[_0x13bfac('0x77')]={'type':_0x13bfac('0x923'),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0x4ce6df[_0x13bfac('0x77')]={'id':_0x4ce6df[_0x13bfac('0x123f')]['id'],'channel':'mail','type':'inbound','sort':'-updatedAt','limit':0xa,'page':0x1};_0x4ce6df[_0x13bfac('0xdb1')]=_0x3be169,_0x4ce6df['getQueues']=_0x3bb894,_0x4ce6df['createOrEditMailQueue']=_0x5339ae,_0x4ce6df[_0x13bfac('0x40b')]=_0x257922,_0x4ce6df[_0x13bfac('0x14c1')]=_0x7b6270,_0x4ce6df[_0x13bfac('0x1b74')]=_0x313467,_0x4ce6df[_0x13bfac('0x7c7')]=_0x550497,_0x4ce6df[_0x13bfac('0xc32')]=_0x544d69,_0x4ce6df[_0x13bfac('0x22bf')]=_0x2e3d2c,_0x4ce6df[_0x13bfac('0xf80')]=_0x1d962f,_0x4ce6df[_0x13bfac('0x27a5')]=_0x4b9bc0,_0x4ce6df[_0x13bfac('0x14b')]=_0xf3d4b6,_0x4ce6df['order']=[],_0x86640f()[_0x13bfac('0xd54')](_0x4ce6df['queues'],function(_0x5bba36){var _0x54b8b8=_0x13bfac;_0x4ce6df[_0x54b8b8('0x2752')]['push'](_0x5bba36['id']);}),_0x269448['on'](_0x13bfac('0x1373'),_0x4ce6df[_0x13bfac('0x1b74')]),_0x269448['on']('userMailQueue:save',_0x4ce6df['onSaveMember']),_0x269448['on'](_0x13bfac('0x7e7'),_0x4ce6df[_0x13bfac('0xc32')]),_0x269448['on']('user:update',_0x4ce6df[_0x13bfac('0x22bf')]),_0x269448['on'](_0x13bfac('0x3b0'),_0x4ce6df['onLogout']),_0x269448['on'](_0x13bfac('0x1595'),_0x4ce6df[_0x13bfac('0xf80')]);function _0xf3d4b6(){var _0x40969a=_0x13bfac,_0x53bfb8=[];return _0x86640f()[_0x40969a('0xd54')](_0x4ce6df[_0x40969a('0xb7a')],function(_0x2808dc,_0x16b1cb){var _0x3e620c=_0x40969a;_0x2808dc[_0x3e620c('0x250c')]=0x0,_0x2808dc[_0x3e620c('0x29')]=0x0,_0x4ce6df[_0x3e620c('0xb7a')][_0x16b1cb]['agents']={},_0x53bfb8[_0x3e620c('0x206c')](_0x1506b4[_0x3e620c('0xb3')][_0x3e620c('0xad6')]({'id':_0x16b1cb})[_0x3e620c('0x1376')]),_0x4ce6df['rpcQueues'][_0x16b1cb]&&_0x86640f()[_0x3e620c('0xd0e')](_0x2808dc,_0x86640f()[_0x3e620c('0xc50')](_0x4ce6df['rpcQueues'][_0x16b1cb],_0xd5c0e1));}),_0x4d2f74[_0x40969a('0x1ba7')](_0x53bfb8)[_0x40969a('0x21ad')](function(_0x4193b4){var _0x296ed7=_0x40969a;for(var _0x3b858a=0x0;_0x3b858a<_0x4193b4[_0x296ed7('0x577')];_0x3b858a+=0x1){for(var _0x1b849c=0x0;_0x1b849c<_0x4193b4[_0x3b858a]['rows'][_0x296ed7('0x577')];_0x1b849c++){_0x4193b4[_0x3b858a]['rows'][_0x1b849c][_0x296ed7('0x250c')]&&_0x4ce6df[_0x296ed7('0xb7a')][_0x4193b4[_0x3b858a][_0x296ed7('0x1b33')][_0x1b849c]['MailQueueId']][_0x296ed7('0x250c')]++,_0x4ce6df['queues'][_0x4193b4[_0x3b858a][_0x296ed7('0x1b33')][_0x1b849c][_0x296ed7('0x122d')]][_0x296ed7('0x29')]++,_0x4ce6df[_0x296ed7('0xb7a')][_0x4193b4[_0x3b858a][_0x296ed7('0x1b33')][_0x1b849c][_0x296ed7('0x122d')]][_0x296ed7('0xcb5')][_0x4193b4[_0x3b858a][_0x296ed7('0x1b33')][_0x1b849c][_0x296ed7('0x1dc6')]]=_0x4193b4[_0x3b858a][_0x296ed7('0x1b33')][_0x1b849c][_0x296ed7('0x122d')];}}})[_0x40969a('0x1c1d')](function(_0x542f59){console['error'](_0x542f59);});}function _0x313467(_0x19b079){var _0x532f44=_0x13bfac;_0x4ce6df[_0x532f44('0xb7a')][_0x19b079['id']]&&_0x86640f()[_0x532f44('0xd0e')](_0x4ce6df['queues'][_0x19b079['id']],_0x86640f()[_0x532f44('0xc50')](_0x19b079,_0xd5c0e1));}function _0x550497(_0x384e2c){var _0x46781f=_0x13bfac;_0x4ce6df[_0x46781f('0xb7a')][_0x384e2c[_0x46781f('0x122d')]]&&_0x4ce6df[_0x46781f('0xb7a')][_0x384e2c[_0x46781f('0x122d')]][_0x46781f('0x29')]++;}function _0x544d69(_0x533d9d){var _0x20c855=_0x13bfac;_0x4ce6df[_0x20c855('0xb7a')][_0x533d9d['MailQueueId']]&&_0x4ce6df[_0x20c855('0xb7a')][_0x533d9d[_0x20c855('0x122d')]]['loggedInDb']--;}function _0x2e3d2c(_0x375e9f){var _0x57fbc3=_0x13bfac;console[_0x57fbc3('0x6fb')](_0x57fbc3('0x22bf'),_0x375e9f);if(_0x375e9f[_0x57fbc3('0x1025')])_0x86640f()['forIn'](_0x4ce6df['queues'],function(_0x589740){var _0x50f5fc=_0x57fbc3;_0x589740[_0x50f5fc('0xcb5')][_0x375e9f['id']]&&(_0x589740[_0x50f5fc('0x250c')]+=0x1,console['log'](_0x50f5fc('0x1e26')));});else!_0x375e9f[_0x57fbc3('0x1025')]&&_0x86640f()[_0x57fbc3('0xd54')](_0x4ce6df['queues'],function(_0x75ca1c){var _0x3ad0f2=_0x57fbc3;_0x75ca1c[_0x3ad0f2('0xcb5')][_0x375e9f['id']]&&(_0x75ca1c[_0x3ad0f2('0x250c')]>0x0&&(_0x75ca1c[_0x3ad0f2('0x250c')]-=0x1,console[_0x3ad0f2('0x6fb')](_0x3ad0f2('0xa8e'))));});}function _0x1d962f(_0x3e994c){var _0x271802=_0x13bfac;console[_0x271802('0x6fb')](_0x271802('0x1b6a'),_0x3e994c),_0x4ce6df['queues'][_0x3e994c['MailQueueId']]&&(_0x4ce6df['queues'][_0x3e994c[_0x271802('0x122d')]][_0x271802('0x29')]+=0x1,_0x4ce6df[_0x271802('0xb7a')][_0x3e994c[_0x271802('0x122d')]][_0x271802('0xcb5')][_0x3e994c[_0x271802('0x1dc6')]]=_0x3e994c['MailQueueId']);}function _0x4b9bc0(_0x3e5efc){var _0x1cad72=_0x13bfac;console[_0x1cad72('0x6fb')]('onLogout',_0x3e5efc),_0x4ce6df[_0x1cad72('0xb7a')][_0x3e5efc[_0x1cad72('0x122d')]]&&_0x4ce6df[_0x1cad72('0xb7a')][_0x3e5efc['MailQueueId']][_0x1cad72('0x29')]>0x0&&(_0x4ce6df[_0x1cad72('0xb7a')][_0x3e5efc[_0x1cad72('0x122d')]]['loggedInDb']-=0x1,delete _0x4ce6df[_0x1cad72('0xb7a')][_0x3e5efc['MailQueueId']]['agents'][_0x3e5efc['UserId']]);}var _0x205249=!![],_0x5a24c4=0x1;_0x198f88[_0x13bfac('0x10e8')](_0x13bfac('0x1948'),function(_0x3197ee,_0x2bf710){var _0x48b2bd=_0x13bfac;_0x205249?_0x308694(function(){_0x205249=![];}):(!_0x2bf710&&(_0x5a24c4=_0x4ce6df[_0x48b2bd('0x77')][_0x48b2bd('0x2376')]),_0x3197ee!==_0x2bf710&&(_0x4ce6df[_0x48b2bd('0x77')][_0x48b2bd('0x2376')]=0x1),!_0x3197ee&&(_0x4ce6df[_0x48b2bd('0x77')][_0x48b2bd('0x2376')]=_0x5a24c4),_0x4ce6df[_0x48b2bd('0x71c')]());});function _0x3be169(_0x107a66){var _0x54bb89=_0x13bfac;_0x4ce6df['count']=_0x107a66[_0x54bb89('0x205f')],_0x4ce6df[_0x54bb89('0xb7a')]=_0x107a66?_0x86640f()[_0x54bb89('0xcde')](_0x107a66[_0x54bb89('0x1b33')]?_0x107a66[_0x54bb89('0x1b33')]:[],'id'):{};if(_0x107a66['rows']){_0x4ce6df[_0x54bb89('0x2752')]=[];for(var _0x3108f0=0x0;_0x3108f0<_0x107a66['rows'][_0x54bb89('0x577')];_0x3108f0++){_0x4ce6df['order'][_0x54bb89('0x206c')](_0x107a66[_0x54bb89('0x1b33')][_0x3108f0]['id']);}}_0xf3d4b6();}function _0x3bb894(){var _0x4ddc61=_0x13bfac;_0x4ce6df[_0x4ddc61('0x77')][_0x4ddc61('0x15a5')]=(_0x4ce6df['query'][_0x4ddc61('0x2376')]-0x1)*_0x4ce6df[_0x4ddc61('0x77')]['limit'],_0x47ffac[_0x4ddc61('0x21de')](_0x4ddc61('0x1bd8'))?_0x4ce6df[_0x4ddc61('0x71b')]=_0x1506b4['mailQueue'][_0x4ddc61('0x595')](_0x4ce6df[_0x4ddc61('0x77')],_0x3be169)[_0x4ddc61('0x1376')]:(_0x4ce6df[_0x4ddc61('0x77')]['id']=_0x4ce6df[_0x4ddc61('0x758')]['id'],_0x4ce6df['query'][_0x4ddc61('0x26ad')]=_0x4ddc61('0x451'),_0x4ce6df[_0x4ddc61('0x71b')]=_0x1506b4[_0x4ddc61('0x758')]['getResources'](_0x4ce6df[_0x4ddc61('0x77')],_0x3be169)[_0x4ddc61('0x1376')]);}function _0x5339ae(_0x67f7e2,_0x25e925){var _0x16d2c7=_0x13bfac;_0x1519e2['show']({'controller':_0x16d2c7('0xb'),'controllerAs':'vm','templateUrl':_0x28f06a,'parent':angular[_0x16d2c7('0x1676')](_0x1ae875[_0x16d2c7('0x2452')]),'targetEvent':_0x67f7e2,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x25e925,'mailQueues':_0x86640f()[_0x16d2c7('0x1843')](_0x4ce6df[_0x16d2c7('0xb7a')]),'license':null,'setting':null,'crudPermissions':_0x4ce6df[_0x16d2c7('0x5ed')]}});}function _0x257922(_0x15b8fa,_0xf71a7f){var _0x178157=_0x13bfac;_0x1519e2[_0x178157('0x853')]({'controller':_0x178157('0xc81'),'controllerAs':'vm','templateUrl':_0x1c3953,'parent':angular['element'](_0x1ae875[_0x178157('0x2452')]),'targetEvent':_0x15b8fa,'clickOutsideToClose':!![],'locals':{'mailQueue':_0xf71a7f,'mailQueues':_0x4ce6df[_0x178157('0xb7a')]?_0x4ce6df[_0x178157('0xb7a')]['rows']:[],'realtime':![],'crudPermissions':_0x4ce6df[_0x178157('0x5ed')]}});}function _0x7b6270(_0x1e35d6){var _0x4df1f2=_0x13bfac;return _0x1506b4[_0x4df1f2('0xb3')][_0x4df1f2('0x5ef')](_0x1e35d6)['$promise'][_0x4df1f2('0x21ad')](function(){var _0xd0183=_0x4df1f2;_0x479d58[_0xd0183('0xdb1')]({'title':_0xd0183('0x12f9'),'msg':_0x1e35d6[_0xd0183('0x19fe')]?_0x1e35d6['name']+_0xd0183('0xa8d'):''});})[_0x4df1f2('0x1c1d')](function(_0x54d2be){var _0x55e559=_0x4df1f2;_0x479d58[_0x55e559('0x2092')]({'title':'Error\x20creating\x20queue!','msg':_0x54d2be[_0x55e559('0x1224')]});});}_0x198f88[_0x13bfac('0x1723')](_0x13bfac('0x1210'),function(){var _0x357027=_0x13bfac;_0x269448[_0x357027('0x16cc')](_0x357027('0x1373')),_0x269448[_0x357027('0x16cc')]('userMailQueue:remove'),_0x269448[_0x357027('0x16cc')](_0x357027('0x236e')),_0x269448[_0x357027('0x16cc')](_0x357027('0x21f4')),_0x269448[_0x357027('0x16cc')](_0x357027('0x3b0')),_0x269448[_0x357027('0x16cc')](_0x357027('0x1595'));});}const _0x59bdde=_0x4c682d;function _0x120bd4(){var _0x1cf803=_0x3877e3;return{'status':{'registered':_0x1cf803('0x23d9'),'unregistered':_0x1cf803('0xf93'),'lagged':'red-300-fg\x20icon-close-circle','reachable':_0x1cf803('0x23d9'),'unreachable':_0x1cf803('0xf93'),'unknown':_0x1cf803('0x24e9')},'state':{'unknown':'grey-fg\x20icon-phone-hangup','not_inuse':'green-300-fg\x20icon-phone-hangup','inuse':_0x1cf803('0x270d'),'busy':'red-300-fg\x20icon-phone-locked','invalid':_0x1cf803('0x6b3'),'unavailable':_0x1cf803('0x6b3'),'ringing':_0x1cf803('0x540'),'ringinuse':_0x1cf803('0x540'),'onhold':_0x1cf803('0x273a')},'channelStatus':{'ring':_0x1cf803('0x540'),'up':_0x1cf803('0x1dcd'),'hangup':_0x1cf803('0xe0f')},'channelStatusOut':{'ring':_0x1cf803('0x229b'),'up':'green-300-fg\x20icon-phone-in-talk','hangup':'red-300-fg\x20icon-phone-hangup'}};}const _0x52c519=_0x120bd4;_0x3f46b9[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0xa9f'),_0x3877e3('0x25d8')];function _0x3f46b9(_0x255366,_0x22a77e,_0x31c787){var _0x2312cb=_0x3877e3,_0x1f2350=this;_0x31c787[_0x2312cb('0x8d8')](),_0x31c787['connect'](),_0x1f2350[_0x2312cb('0x302')]=0x0;switch(_0x22a77e[_0x2312cb('0x1ccb')]['name']){case _0x2312cb('0xdf'):_0x1f2350['selectedTab']=0x0;break;case _0x2312cb('0x14ca'):_0x1f2350[_0x2312cb('0x302')]=0x1;break;case _0x2312cb('0x17a4'):_0x1f2350['selectedTab']=0x2;break;default:_0x1f2350[_0x2312cb('0x302')]=0x0,_0x22a77e['go'](_0x2312cb('0xdf'));}_0x255366[_0x2312cb('0x10e8')](_0x2312cb('0xc2'),function(_0x16fcd3,_0x1d1e93){var _0x19ddfd=_0x2312cb;if(_0x16fcd3!==_0x1d1e93)switch(_0x16fcd3){case 0x0:_0x22a77e['go'](_0x19ddfd('0xdf'));break;case 0x1:_0x22a77e['go'](_0x19ddfd('0x14ca'));break;case 0x2:_0x22a77e['go'](_0x19ddfd('0x17a4'));break;default:_0x22a77e['go']('app.mail.realtime.agents');}});}const _0x27a638=_0x3f46b9;_0x4e0d52[_0x3877e3('0x1a81')]=['$stateProvider'];function _0x4e0d52(_0x23ce2a){var _0x44f3e2=_0x3877e3;_0x23ce2a[_0x44f3e2('0x27e')]('app.mail.realtime',{'url':_0x44f3e2('0x1b34'),'views':{'content@app':{'templateUrl':_0x14e7e9,'controller':_0x44f3e2('0x1ae8')}},'resolve':{'userProfile':['apiResolver',_0x44f3e2('0x15bc'),function _0x4cea04(_0x501281,_0x10d9ac){var _0x242558=_0x44f3e2;return _0x10d9ac[_0x242558('0x21de')](_0x242558('0x1bd8'))?null:_0x501281[_0x242558('0x8ac')](_0x242558('0x1e1d'),{'fields':_0x242558('0x1a00'),'id':_0x10d9ac[_0x242558('0x15ed')]()[_0x242558('0x1618')]});}],'userProfileSection':[_0x44f3e2('0x354'),_0x44f3e2('0x15bc'),function _0x24ee84(_0x2e3efb,_0x526dc5){var _0x492bf3=_0x44f3e2;return _0x526dc5[_0x492bf3('0x21de')](_0x492bf3('0x1bd8'))?null:_0x2e3efb[_0x492bf3('0x8ac')](_0x492bf3('0x222f'),{'fields':_0x492bf3('0x1852'),'userProfileId':_0x526dc5[_0x492bf3('0x15ed')]()[_0x492bf3('0x1618')],'sectionId':0x262});}]},'authenticate':!![],'permissionId':0x262})['state'](_0x44f3e2('0xdf'),{'url':_0x44f3e2('0x69c'),'controller':_0x44f3e2('0x8b7'),'templateUrl':_0x2bf0cf,'resolve':{'pauses':['apiResolver',function _0x49d337(_0x293a0c){var _0x144ad9=_0x44f3e2;return _0x293a0c[_0x144ad9('0x8ac')]('pause@get',{'nolimit':!![]});}],'agents':[_0x44f3e2('0x354'),_0x44f3e2('0x15bc'),function _0x686460(_0x23feae,_0x55d631){var _0x34f26c=_0x44f3e2;return _0x55d631[_0x34f26c('0x21de')](_0x34f26c('0x1bd8'))?_0x23feae[_0x34f26c('0x8ac')](_0x34f26c('0x1913'),{'fields':_0x34f26c('0x856'),'role':_0x34f26c('0x2402'),'sort':_0x34f26c('0x20f5'),'nolimit':!![]}):_0x23feae['resolve'](_0x34f26c('0x52f'),{'id':_0x55d631[_0x34f26c('0x15ed')]()[_0x34f26c('0x1618')],'section':'Agents','fields':_0x34f26c('0x856'),'role':_0x34f26c('0x2402'),'sort':_0x34f26c('0x20f5'),'nolimit':!![]});}],'userProfile':[_0x44f3e2('0x354'),'Auth',function _0xa1e1c9(_0x3c638b,_0x4a1f16){var _0x2f5b5d=_0x44f3e2;return _0x4a1f16[_0x2f5b5d('0x21de')](_0x2f5b5d('0x1bd8'))?null:_0x3c638b[_0x2f5b5d('0x8ac')]('userProfile@get',{'fields':_0x2f5b5d('0x1a00'),'id':_0x4a1f16[_0x2f5b5d('0x15ed')]()[_0x2f5b5d('0x1618')]});}],'userProfileSection':[_0x44f3e2('0x354'),_0x44f3e2('0x15bc'),function _0x551e77(_0x44c352,_0x1d6c01){var _0xa1a9e9=_0x44f3e2;return _0x1d6c01[_0xa1a9e9('0x21de')](_0xa1a9e9('0x1bd8'))?null:_0x44c352['resolve']('userProfileSection@get',{'fields':_0xa1a9e9('0x1852'),'userProfileId':_0x1d6c01['getCurrentUser']()[_0xa1a9e9('0x1618')],'sectionId':0xca});}],'rpcAgents':[_0x44f3e2('0x354'),function _0x3f02f8(_0xbf4279){var _0x5aad3f=_0x44f3e2;return _0xbf4279[_0x5aad3f('0x8ac')](_0x5aad3f('0x2685'));}]},'authenticate':!![],'permissionId':0x262})['state']('app.mail.realtime.queues',{'url':_0x44f3e2('0x13e2'),'controller':_0x44f3e2('0x9af'),'templateUrl':_0x2d04a1,'resolve':{'queues':['apiResolver',_0x44f3e2('0x15bc'),function _0x1859ac(_0x5ba9f1,_0x156f7b){var _0x46fbad=_0x44f3e2;return _0x156f7b[_0x46fbad('0x21de')]('admin')?_0x5ba9f1[_0x46fbad('0x8ac')](_0x46fbad('0x1f33'),{'type':'inbound','sort':_0x46fbad('0x33'),'limit':0xa,'offset':0x0}):_0x5ba9f1[_0x46fbad('0x8ac')](_0x46fbad('0x52f'),{'id':_0x156f7b[_0x46fbad('0x15ed')]()[_0x46fbad('0x1618')],'section':_0x46fbad('0x451'),'channel':_0x46fbad('0x1c8b'),'type':_0x46fbad('0x923'),'sort':_0x46fbad('0x33'),'limit':0xa,'page':0x1});}],'userProfile':[_0x44f3e2('0x354'),_0x44f3e2('0x15bc'),function _0xf48d6e(_0x299e0e,_0x305042){var _0x55732d=_0x44f3e2;return _0x305042[_0x55732d('0x21de')]('admin')?null:_0x299e0e[_0x55732d('0x8ac')]('userProfile@get',{'fields':_0x55732d('0x1a00'),'id':_0x305042[_0x55732d('0x15ed')]()[_0x55732d('0x1618')]});}],'userProfileSection':[_0x44f3e2('0x354'),'Auth',function _0x23f91a(_0x4b788a,_0x5084d6){var _0x28bb31=_0x44f3e2;return _0x5084d6[_0x28bb31('0x21de')](_0x28bb31('0x1bd8'))?null:_0x4b788a[_0x28bb31('0x8ac')](_0x28bb31('0x222f'),{'fields':_0x28bb31('0x1852'),'userProfileId':_0x5084d6[_0x28bb31('0x15ed')]()[_0x28bb31('0x1618')],'sectionId':0x259});}],'rpcQueues':[_0x44f3e2('0x354'),function _0x55f6a5(_0x31402d){var _0x32dd7a=_0x44f3e2;return _0x31402d['resolve'](_0x32dd7a('0x200d'));}]},'authenticate':!![],'permissionId':0x262})[_0x44f3e2('0x27e')](_0x44f3e2('0x17a4'),{'url':'/accounts','controller':_0x44f3e2('0x2652'),'templateUrl':_0x42a7c8,'resolve':{'mailAccounts':[_0x44f3e2('0x354'),'Auth',function _0x1c1a07(_0x418de2,_0x258735){var _0x32fd00=_0x44f3e2;return _0x258735[_0x32fd00('0x21de')](_0x32fd00('0x1bd8'))?_0x418de2[_0x32fd00('0x8ac')]('mailAccount@get',{'sort':_0x32fd00('0x33'),'limit':0xa,'offset':0x0}):_0x418de2['resolve']('userProfile@getResources',{'id':_0x258735['getCurrentUser']()[_0x32fd00('0x1618')],'section':'MailAccounts','sort':_0x32fd00('0x33'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x44f3e2('0x354'),_0x44f3e2('0x15bc'),function _0x222da9(_0x3d4f9b,_0x1424e2){var _0x71a670=_0x44f3e2;return _0x1424e2[_0x71a670('0x21de')](_0x71a670('0x1bd8'))?null:_0x3d4f9b[_0x71a670('0x8ac')](_0x71a670('0x1e1d'),{'fields':_0x71a670('0x1a00'),'id':_0x1424e2[_0x71a670('0x15ed')]()[_0x71a670('0x1618')]});}],'userProfileSection':[_0x44f3e2('0x354'),_0x44f3e2('0x15bc'),function _0x4e13e7(_0x577f03,_0x3dae83){var _0x5a191d=_0x44f3e2;return _0x3dae83[_0x5a191d('0x21de')](_0x5a191d('0x1bd8'))?null:_0x577f03[_0x5a191d('0x8ac')](_0x5a191d('0x222f'),{'fields':_0x5a191d('0x1852'),'userProfileId':_0x3dae83['getCurrentUser']()[_0x5a191d('0x1618')],'sectionId':0x25a});}],'rpcMailAccounts':['apiResolver',function _0x4be334(_0x1e0cf0){var _0x29e726=_0x44f3e2;return _0x1e0cf0[_0x29e726('0x8ac')]('rpc@getMailAccounts');}]},'authenticate':!![],'permissionId':0x262});}angular[_0x3877e3('0x20d5')](_0x3877e3('0x13d5'),[])[_0x3877e3('0x13')](_0x4e0d52)[_0x3877e3('0x1d5a')](_0x3877e3('0x1f56'),_0x64d4a7)[_0x3877e3('0x1d5a')](_0x3877e3('0x1fc2'),_0x59bdde)[_0x3877e3('0x1551')](_0x3877e3('0x2703'),_0x52c519)[_0x3877e3('0x1d5a')](_0x3877e3('0x16f9'),_0x27a638);const _0x52264b=_0x398308['p']+_0x3877e3('0x1dcc'),_0x3e9816=_0x398308['p']+_0x3877e3('0x928'),_0x1659ac=_0x398308['p']+_0x3877e3('0x65d'),_0x3e7c84=_0x398308['p']+_0x3877e3('0x2663'),_0x213e37=_0x398308['p']+_0x3877e3('0x16de');_0x519f14[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),'toasty',_0x3877e3('0x21ab'),_0x3877e3('0x66'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'license',_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x519f14(_0x3bfa53,_0xbf8208,_0x208151,_0xf8764,_0xed4f7f,_0x39fb8f,_0x19a77a,_0x54f121,_0x3592b6,_0x1e7e26,_0x4826ce,_0x3cfce3,_0x1c40dc,_0x3d8c98){var _0x2b9078=_0x3877e3,_0x51f010=this;_0x51f010[_0x2b9078('0x123f')]=_0x4826ce[_0x2b9078('0x15ed')](),_0x51f010[_0x2b9078('0x1a69')]=[],_0x51f010['setting']=_0x1c40dc,_0x51f010[_0x2b9078('0x2ff')]=_0x3cfce3,_0x51f010[_0x2b9078('0x5ed')]=_0x3d8c98,_0x51f010[_0x2b9078('0x126a')]={},_0x51f010[_0x2b9078('0x1432')]=_0x51f010[_0x2b9078('0x21e')]&&_0x51f010[_0x2b9078('0x21e')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x51f010['title']=_0x2b9078('0x1ea7'),_0x51f010['mailAccount']=angular[_0x2b9078('0xd75')](_0x3592b6),_0x51f010[_0x2b9078('0x21ab')]=_0x54f121,_0x51f010[_0x2b9078('0x12a7')]=![];!_0x51f010['mailAccount']&&(_0x51f010[_0x2b9078('0x66')]={'active':!![],'cservice':_0x2b9078('0x27a'),'cauthentication':!![],'fontSize':0xd,'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x51f010[_0x2b9078('0x4b4')]=_0x2b9078('0x280c'),_0x51f010['newMailAccount']=!![]);_0xbf8208[_0x2b9078('0x171b')]['id']&&(_0x51f010[_0x2b9078('0x66')][_0x2b9078('0x723')]=_0xbf8208['params']['id']);_0x51f010[_0x2b9078('0x1701')]=_0x5f1781,_0x51f010[_0x2b9078('0x1eaa')]=_0x362610,_0x51f010[_0x2b9078('0x1191')]=_0x4d57a5,_0x51f010[_0x2b9078('0x279')]=_0x3c1afe,_0x51f010[_0x2b9078('0x167')]=_0x59e314,_0x4826ce['hasRole'](_0x2b9078('0x1bd8'))?_0x1e7e26['cmList'][_0x2b9078('0x595')]({'fields':_0x2b9078('0x1aa8'),'sort':_0x2b9078('0x19fe')})['$promise'][_0x2b9078('0x21ad')](function(_0x75fec4){var _0xc54ae7=_0x2b9078;_0x51f010[_0xc54ae7('0x1972')]=_0x75fec4[_0xc54ae7('0x1b33')]||[];})[_0x2b9078('0x1c1d')](function(_0x264e50){var _0x339ee5=_0x2b9078;_0x19a77a['error']({'title':_0x264e50['status']?'API:'+_0x264e50['status']+_0x339ee5('0xa99')+_0x264e50['statusText']:'SYSTEM:GET_LISTS','msg':_0x264e50[_0x339ee5('0x11c2')]?JSON[_0x339ee5('0x25e')](_0x264e50[_0x339ee5('0x11c2')]):_0x264e50[_0x339ee5('0x174f')]()});}):_0x1e7e26['cmList'][_0x2b9078('0x595')]({'fields':_0x2b9078('0x1aa8'),'sort':_0x2b9078('0x19fe')})[_0x2b9078('0x1376')][_0x2b9078('0x21ad')](function(_0x2c0564){var _0x1b65d4=_0x2b9078;_0x51f010[_0x1b65d4('0x1972')]=_0x2c0564[_0x1b65d4('0x1b33')]||[];})['then'](function(){var _0x1be323=_0x2b9078;return _0x1e7e26[_0x1be323('0xab4')][_0x1be323('0x595')]({'userProfileId':_0x51f010[_0x1be323('0x123f')][_0x1be323('0x1618')],'sectionId':0x12d})[_0x1be323('0x1376')];})[_0x2b9078('0x21ad')](function(_0x553e8a){var _0x526970=_0x2b9078,_0x102289=_0x553e8a&&_0x553e8a['rows']?_0x553e8a[_0x526970('0x1b33')][0x0]:null;if(!_0x102289){var _0x4378ea=[],_0x3e7a86=null;_0x51f010[_0x526970('0x66')]&&(_0x3e7a86=_0x86640f()[_0x526970('0x1d2e')](_0x51f010[_0x526970('0x1972')],{'id':Number(_0x51f010['mailAccount'][_0x526970('0x815')])}));for(var _0x18b2d1=0x0;_0x18b2d1<_0x51f010[_0x526970('0x1972')][_0x526970('0x577')];_0x18b2d1++){_0x3e7a86&&_0x51f010[_0x526970('0x1972')][_0x18b2d1]['id']===_0x3e7a86['id']&&(_0x51f010[_0x526970('0x1972')][_0x18b2d1][_0x526970('0xba')]=![],_0x4378ea[_0x526970('0x206c')](_0x51f010[_0x526970('0x1972')][_0x18b2d1]));}_0x51f010['lists']=_0x4378ea;}else{if(!_0x102289[_0x526970('0x80c')])return _0x1e7e26[_0x526970('0x185e')][_0x526970('0x595')]({'sectionId':_0x102289['id']})[_0x526970('0x1376')][_0x526970('0x21ad')](function(_0x52c372){var _0x4ef684=_0x526970,_0x537821=_0x86640f()[_0x4ef684('0x26c3')](_0x52c372['rows'],function(_0x10d788){var _0x54f6c9=_0x4ef684;return _0x86640f()[_0x54f6c9('0x1d2e')](_0x51f010[_0x54f6c9('0x1972')],{'id':_0x10d788[_0x54f6c9('0x675')]});}),_0x309c70=null;_0x51f010['mailAccount']&&(_0x309c70=_0x86640f()[_0x4ef684('0x1d2e')](_0x51f010['lists'],{'id':Number(_0x51f010['mailAccount'][_0x4ef684('0x815')])}));if(_0x309c70&&!_0x86640f()[_0x4ef684('0x2664')](_0x537821,['id',_0x309c70['id']])){var _0xf15272=_0x86640f()[_0x4ef684('0x1d2e')](_0x51f010['lists'],{'id':_0x309c70['id']});_0xf15272[_0x4ef684('0xba')]=![],_0x537821[_0x4ef684('0x206c')](_0xf15272);}_0x51f010[_0x4ef684('0x1972')]=_0x537821;});}})[_0x2b9078('0x1c1d')](function(_0x17fcb6){var _0x5c5a40=_0x2b9078;_0x19a77a[_0x5c5a40('0x2092')]({'title':_0x17fcb6['status']?'API:'+_0x17fcb6[_0x5c5a40('0x209')]+'\x20-\x20'+_0x17fcb6[_0x5c5a40('0x1808')]:_0x5c5a40('0xa92'),'msg':_0x17fcb6[_0x5c5a40('0x11c2')]?JSON[_0x5c5a40('0x25e')](_0x17fcb6[_0x5c5a40('0x11c2')]):_0x17fcb6[_0x5c5a40('0x174f')]()});});function _0x5f1781(){var _0x57548e=_0x2b9078;_0x51f010['errors']=[],_0x1e7e26[_0x57548e('0x66')][_0x57548e('0x186f')](_0x51f010[_0x57548e('0x66')])[_0x57548e('0x1376')][_0x57548e('0x21ad')](function(_0x3a9277){var _0x3766e3=_0x57548e;_0x51f010[_0x3766e3('0x21ab')][_0x3766e3('0xd0c')](_0x3a9277[_0x3766e3('0x3bc')]()),_0x19a77a[_0x3766e3('0xdb1')]({'title':'MailAccount\x20properly\x20created','msg':_0x51f010[_0x3766e3('0x66')][_0x3766e3('0x19fe')]?_0x51f010['mailAccount'][_0x3766e3('0x19fe')]+_0x3766e3('0x1694'):''}),_0x59e314(_0x3a9277);})[_0x57548e('0x1c1d')](function(_0x11a7f6){var _0x22d18b=_0x57548e;if(_0x11a7f6[_0x22d18b('0x11c2')]&&_0x11a7f6[_0x22d18b('0x11c2')][_0x22d18b('0x1a69')]&&_0x11a7f6[_0x22d18b('0x11c2')]['errors'][_0x22d18b('0x577')]){_0x51f010[_0x22d18b('0x1a69')]=_0x11a7f6[_0x22d18b('0x11c2')]['errors']||[{'message':_0x11a7f6['toString'](),'type':'api.mailAccount.save'}];for(var _0x256109=0x0;_0x256109<_0x11a7f6[_0x22d18b('0x11c2')][_0x22d18b('0x1a69')][_0x22d18b('0x577')];_0x256109+=0x1){_0x19a77a[_0x22d18b('0x2092')]({'title':_0x11a7f6[_0x22d18b('0x11c2')][_0x22d18b('0x1a69')][_0x256109][_0x22d18b('0x7fa')],'msg':_0x11a7f6[_0x22d18b('0x11c2')][_0x22d18b('0x1a69')][_0x256109][_0x22d18b('0x1224')]});}}else _0x19a77a['error']({'title':_0x11a7f6[_0x22d18b('0x209')]?'API:'+_0x11a7f6['status']+_0x22d18b('0xa99')+_0x11a7f6[_0x22d18b('0x1808')]:_0x22d18b('0x100e'),'msg':_0x11a7f6['data']?JSON[_0x22d18b('0x25e')](_0x11a7f6['data'][_0x22d18b('0x1224')]):_0x11a7f6[_0x22d18b('0x174f')]()});});}function _0x362610(){var _0x4e1221=_0x2b9078;_0x51f010[_0x4e1221('0x1a69')]=[],_0x1e7e26['mailAccount'][_0x4e1221('0x5ef')]({'id':_0x51f010['mailAccount']['id']},_0x51f010[_0x4e1221('0x66')])[_0x4e1221('0x1376')]['then'](function(_0x2d40e6){var _0x39d8b3=_0x4e1221,_0x2f95f8=_0x86640f()[_0x39d8b3('0x1d2e')](_0x51f010[_0x39d8b3('0x21ab')],{'id':_0x2d40e6['id']});_0x2f95f8&&_0x86640f()[_0x39d8b3('0xd0e')](_0x2f95f8,_0x86640f()[_0x39d8b3('0xc50')](_0x2d40e6[_0x39d8b3('0x3bc')](),_0x86640f()['keys'](_0x2f95f8))),_0x19a77a[_0x39d8b3('0xdb1')]({'title':'MailAccount\x20properly\x20saved!','msg':_0x51f010['mailAccount'][_0x39d8b3('0x19fe')]?_0x51f010['mailAccount']['name']+_0x39d8b3('0x2249'):''}),_0x59e314(_0x2d40e6);})[_0x4e1221('0x1c1d')](function(_0x313174){var _0x5a9a42=_0x4e1221;if(_0x313174[_0x5a9a42('0x11c2')]&&_0x313174['data']['errors']&&_0x313174[_0x5a9a42('0x11c2')][_0x5a9a42('0x1a69')][_0x5a9a42('0x577')]){_0x51f010[_0x5a9a42('0x1a69')]=_0x313174[_0x5a9a42('0x11c2')]['errors']||[{'message':_0x313174[_0x5a9a42('0x174f')](),'type':'api.mailAccount.update'}];for(var _0x42de99=0x0;_0x42de99<_0x313174[_0x5a9a42('0x11c2')][_0x5a9a42('0x1a69')][_0x5a9a42('0x577')];_0x42de99++){_0x19a77a[_0x5a9a42('0x2092')]({'title':_0x313174['data']['errors'][_0x42de99]['type'],'msg':_0x313174['data'][_0x5a9a42('0x1a69')][_0x42de99][_0x5a9a42('0x1224')]});}}else _0x19a77a[_0x5a9a42('0x2092')]({'title':_0x313174[_0x5a9a42('0x209')]?_0x5a9a42('0x22d')+_0x313174[_0x5a9a42('0x209')]+'\x20-\x20'+_0x313174[_0x5a9a42('0x1808')]:_0x5a9a42('0x1ccd'),'msg':_0x313174[_0x5a9a42('0x11c2')]?JSON[_0x5a9a42('0x25e')](_0x313174[_0x5a9a42('0x11c2')][_0x5a9a42('0x1224')]):_0x313174[_0x5a9a42('0x174f')]()});});}function _0x4d57a5(_0xa134be){var _0x532eec=_0x2b9078;if(_0x51f010[_0x532eec('0x66')][_0x532eec('0x70')])return _0x19a77a['error']({'title':_0x532eec('0x1325'),'msg':_0x532eec('0xe78')});_0x51f010[_0x532eec('0x1a69')]=[];var _0x40717f=_0xf8764[_0x532eec('0xa33')]()[_0x532eec('0x4b4')]('Are\x20you\x20sure?')[_0x532eec('0x13fb')](_0x532eec('0x1430'))[_0x532eec('0x7a7')](_0x532eec('0x14ad'))['ok']('Delete')[_0x532eec('0x3b5')](_0x532eec('0x1f40'))[_0x532eec('0x1e6d')](_0xa134be);_0xf8764[_0x532eec('0x853')](_0x40717f)['then'](function(){var _0x19c446=_0x532eec;_0x1e7e26[_0x19c446('0x66')][_0x19c446('0x1164')]({'id':_0x51f010[_0x19c446('0x66')]['id']})[_0x19c446('0x1376')][_0x19c446('0x21ad')](function(){var _0x222294=_0x19c446;_0x86640f()[_0x222294('0x16a2')](_0x51f010[_0x222294('0x21ab')],{'id':_0x51f010[_0x222294('0x66')]['id']}),_0x19a77a['success']({'title':_0x222294('0xb48'),'msg':(_0x51f010[_0x222294('0x66')][_0x222294('0x19fe')]||_0x222294('0x66'))+_0x222294('0xb4a')}),_0x59e314(_0x51f010[_0x222294('0x66')]);})[_0x19c446('0x1c1d')](function(_0x2e3374){var _0x3eee5c=_0x19c446;if(_0x2e3374[_0x3eee5c('0x11c2')]&&_0x2e3374[_0x3eee5c('0x11c2')][_0x3eee5c('0x1a69')]&&_0x2e3374[_0x3eee5c('0x11c2')][_0x3eee5c('0x1a69')]['length']){_0x51f010[_0x3eee5c('0x1a69')]=_0x2e3374['data']['errors']||[{'message':_0x2e3374['toString'](),'type':_0x3eee5c('0x10f6')}];for(var _0x34a323=0x0;_0x34a323<_0x2e3374[_0x3eee5c('0x11c2')][_0x3eee5c('0x1a69')]['length'];_0x34a323++){_0x19a77a['error']({'title':_0x2e3374[_0x3eee5c('0x11c2')]['errors'][_0x34a323]['type'],'msg':_0x2e3374[_0x3eee5c('0x11c2')]['errors'][_0x34a323][_0x3eee5c('0x1224')]});}}else _0x19a77a[_0x3eee5c('0x2092')]({'title':_0x2e3374[_0x3eee5c('0x209')]?_0x3eee5c('0x22d')+_0x2e3374[_0x3eee5c('0x209')]+_0x3eee5c('0xa99')+_0x2e3374[_0x3eee5c('0x1808')]:_0x3eee5c('0x10f6'),'msg':_0x2e3374[_0x3eee5c('0x11c2')]?JSON['stringify'](_0x2e3374[_0x3eee5c('0x11c2')][_0x3eee5c('0x1224')]):_0x2e3374['message']||_0x2e3374[_0x3eee5c('0x174f')]()});});},function(){});}function _0x3c1afe(_0x2347b5){return _0x2347b5===null?undefined:new Date(_0x2347b5);}function _0x59e314(_0x195d27){var _0x5778ad=_0x2b9078;_0xf8764[_0x5778ad('0x1c24')](_0x195d27);}}const _0xd1c02f=_0x519f14,_0x38e1a1=_0x398308['p']+_0x3877e3('0x473'),_0x12b768=_0x398308['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/autoreply/dialog.html/dialog-[chunkhash].html',_0x53d2fa=_0x398308['p']+_0x3877e3('0xe05'),_0x182d8e=_0x398308['p']+_0x3877e3('0x1707'),_0x306990=_0x398308['p']+_0x3877e3('0x2208'),_0x375f17=_0x398308['p']+_0x3877e3('0x17ff'),_0x422f59=_0x398308['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/noop/dialog.html/dialog-[chunkhash].html',_0x135f01=_0x398308['p']+_0x3877e3('0x2803'),_0x3c05cc=_0x398308['p']+_0x3877e3('0x4f8'),_0x4efac1=_0x398308['p']+_0x3877e3('0x9ff');_0x46d11c[_0x3877e3('0x1a81')]=['api','$mdDialog','$document','toasty','Auth'];var _0xbf9c40={'agent':_0x38e1a1,'autoreply':_0x12b768,'close':_0x53d2fa,'gotoif':_0x182d8e,'gotop':_0x306990,'interval':_0x375f17,'noop':_0x422f59,'queue':_0x135f01,'system':_0x3c05cc,'tag':_0x4efac1};function _0x46d11c(_0x1294c3,_0x24185f,_0x18d405,_0x17efd9,_0xa0437b){var _0x5c7fab=_0x3877e3,_0x140e7c=this;_0x140e7c[_0x5c7fab('0x123f')]=_0xa0437b['getCurrentUser'](),_0x140e7c[_0x5c7fab('0x66')]={},_0x140e7c['mailAccountApps']={'count':0x0,'rows':[]},_0x140e7c['selectedMailAccountApps']=[],_0x140e7c['crudPermissions'],_0x140e7c[_0x5c7fab('0x77')]={'sort':_0x5c7fab('0xbe5')},_0x140e7c['apps']=_0x86640f()[_0x5c7fab('0x37a')](_0x86640f()[_0x5c7fab('0x203e')]([{'app':_0x5c7fab('0x1809'),'appType':_0x5c7fab('0xa07'),'types':[_0x5c7fab('0x869'),_0x5c7fab('0xf50'),_0x5c7fab('0x17fe')],'fields':[],'isApp':![]},{'app':'noop','appType':'noop','type':'noop','icon':_0x5c7fab('0x1da4'),'interval':'*,*,*,*','required':!![],'isApp':!![],'fields':[{'title':'Value','name':_0x5c7fab('0x2228'),'type':_0x5c7fab('0xc1e'),'param':0x0}]},{'app':_0x5c7fab('0x12b1'),'appType':'system','type':_0x5c7fab('0x12b1'),'icon':_0x5c7fab('0x1da4'),'interval':_0x5c7fab('0x1cc4'),'required':!![],'isApp':!![],'extraApi':[{'name':_0x5c7fab('0x142d'),'field':{'name':_0x5c7fab('0x25bb'),'key':_0x5c7fab('0x19fe')},'route':'variable','filters':{'fields':'id,name','sort':_0x5c7fab('0x19fe'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x5c7fab('0x669'),'name':_0x5c7fab('0xbf3'),'type':_0x5c7fab('0xc1e'),'required':!![],'param':0x0},{'title':_0x5c7fab('0x2200'),'name':'variable','type':_0x5c7fab('0x15e9'),'values':_0x5c7fab('0x142d'),'value':_0x5c7fab('0x1958'),'option':_0x5c7fab('0x1958'),'defaultValues':[{'value':'\x27\x27','option':_0x5c7fab('0x2405')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':'gotop','appType':_0x5c7fab('0x23ef'),'type':_0x5c7fab('0x12ec'),'icon':_0x5c7fab('0x1da4'),'interval':_0x5c7fab('0x1cc4'),'isApp':!![],'fields':[{'title':_0x5c7fab('0x168e'),'name':_0x5c7fab('0xbe5'),'type':_0x5c7fab('0xed8'),'required':!![],'min':0x0,'param':0x0}]},{'app':'gotoif','appType':_0x5c7fab('0x262'),'type':_0x5c7fab('0x262'),'icon':_0x5c7fab('0x1da4'),'interval':_0x5c7fab('0x1cc4'),'isApp':!![],'fields':[{'title':_0x5c7fab('0x16d8'),'name':'condition','type':_0x5c7fab('0xc1e'),'required':!![],'param':0x0},{'title':_0x5c7fab('0x1a25'),'name':'truepriority','type':_0x5c7fab('0xed8'),'min':0x1,'required':!![],'param':0x1},{'title':_0x5c7fab('0xe4c'),'name':_0x5c7fab('0xe4c'),'type':_0x5c7fab('0xed8'),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x5c7fab('0xbdd'),'appType':_0x5c7fab('0xbdd'),'foreignKey':_0x5c7fab('0x122d'),'type':_0x5c7fab('0xbdd'),'icon':_0x5c7fab('0x1da4'),'interval':_0x5c7fab('0x1cc4'),'isApp':!![],'extraApi':[{'name':_0x5c7fab('0xb7a'),'field':{'name':_0x5c7fab('0xbdd'),'key':_0x5c7fab('0x19fe')},'route':_0x5c7fab('0xb3'),'filters':{'fields':_0x5c7fab('0xfa'),'sort':_0x5c7fab('0x19fe'),'nolimit':!![]},'permissions':{'section':0x259}}],'fields':[{'title':_0x5c7fab('0x1da'),'name':_0x5c7fab('0xbdd'),'type':_0x5c7fab('0x15e9'),'values':_0x5c7fab('0xb7a'),'value':_0x5c7fab('0x126f'),'option':_0x5c7fab('0x126f'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':'Timeout','name':_0x5c7fab('0x2133'),'type':_0x5c7fab('0xed8'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0x5c7fab('0x2402'),'appType':_0x5c7fab('0x2402'),'type':_0x5c7fab('0x2402'),'foreignKey':_0x5c7fab('0x1dc6'),'icon':_0x5c7fab('0x1da4'),'interval':_0x5c7fab('0x1cc4'),'isApp':!![],'extraApi':[{'name':_0x5c7fab('0xcb5'),'field':{'name':_0x5c7fab('0x2402'),'key':'name'},'route':_0x5c7fab('0x1775'),'filters':{'fields':_0x5c7fab('0x1aa8'),'sort':_0x5c7fab('0x19fe'),'nolimit':!![],'role':_0x5c7fab('0x2402')},'permissions':{'section':0xca}}],'fields':[{'title':'Agent','name':'agent','type':_0x5c7fab('0x15e9'),'values':_0x5c7fab('0xcb5'),'value':_0x5c7fab('0x2797'),'option':_0x5c7fab('0x2797'),'required':!![],'param':0x0},{'title':'Timeout','name':_0x5c7fab('0x2133'),'type':_0x5c7fab('0xed8'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x5c7fab('0x1b98'),'appType':_0x5c7fab('0x1b98'),'type':_0x5c7fab('0x1b98'),'icon':_0x5c7fab('0x1da4'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x5c7fab('0x13b6'),'name':'times','type':_0x5c7fab('0x2844'),'defaultValue':'1','values':[{'option':_0x5c7fab('0xafd'),'value':'1'},{'option':_0x5c7fab('0x342'),'value':'0'}],'required':!![],'param':0x0},{'title':_0x5c7fab('0x1d81'),'name':_0x5c7fab('0xc1e'),'type':_0x5c7fab('0x8b'),'required':!![],'param':0x1}]},{'app':_0x5c7fab('0x22f'),'appType':_0x5c7fab('0x22f'),'type':_0x5c7fab('0x22f'),'icon':_0x5c7fab('0x1da4'),'interval':_0x5c7fab('0x1cc4'),'isApp':!![],'fields':[{'title':_0x5c7fab('0x1d3d'),'name':_0x5c7fab('0x22c8'),'type':_0x5c7fab('0xc1e'),'required':!![],'param':0x0}]},{'app':_0x5c7fab('0x907'),'appType':_0x5c7fab('0x907'),'type':'tag','foreignKey':_0x5c7fab('0x4ab'),'icon':_0x5c7fab('0x1da4'),'interval':_0x5c7fab('0x1cc4'),'isApp':!![],'extraApi':[{'name':'tags','field':{'name':_0x5c7fab('0x907'),'key':'name'},'route':_0x5c7fab('0x907'),'filters':{'fields':'id,name','sort':_0x5c7fab('0x19fe'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x5c7fab('0x295'),'name':'tag','type':'apiselect','values':_0x5c7fab('0x1889'),'value':_0x5c7fab('0x1706'),'option':_0x5c7fab('0x1706'),'required':!![],'param':0x0}]}],[_0x5c7fab('0x1f94')]),{'isApp':![]}),_0x140e7c[_0x5c7fab('0x17fe')]={'group':{'name':'opt1','pull':_0x5c7fab('0x1af0')},'animation':0x64,'sort':![]},_0x140e7c[_0x5c7fab('0x21d8')]={'group':{'name':_0x5c7fab('0x1627'),'put':_0x5c7fab('0xcd')},'animation':0x64,'onAdd':function _0xb01f7d(_0x5038e9){var _0x1655df=_0x5c7fab;_0x20b4af(_0x5038e9,_0x5038e9[_0x1655df('0x5b8')]);},'onSort':function _0x5424c5(){_0x427087();}},_0x140e7c['init']=_0x28e603,_0x140e7c[_0x5c7fab('0x15dc')]=_0x4b8f57,_0x140e7c[_0x5c7fab('0x1230')]=_0x4251cb,_0x140e7c[_0x5c7fab('0x1a0c')]=_0x20b4af,_0x140e7c[_0x5c7fab('0xb14')]=_0x1fab5d,_0x140e7c[_0x5c7fab('0x10a8')]=_0x20d944,_0x140e7c['deleteSelectedMailAccountApps']=_0x324882,_0x140e7c[_0x5c7fab('0x14aa')]=_0x427087,_0x140e7c[_0x5c7fab('0x1ceb')]=_0x7e7996;function _0x28e603(_0x3ecf86,_0x7b2a22){var _0x38394b=_0x5c7fab;_0x140e7c[_0x38394b('0x66')]=_0x3ecf86,_0x140e7c[_0x38394b('0x5ed')]=typeof _0x7b2a22!=='undefined'?_0x7b2a22:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x140e7c[_0x38394b('0x21d8')][_0x38394b('0x30')]=!_0x140e7c[_0x38394b('0x5ed')]['canEdit']?!![]:![],_0x140e7c['query']['id']=_0x3ecf86['id'],_0x140e7c[_0x38394b('0x77')][_0x38394b('0x9f2')]=!![],_0x140e7c['query']['nolimit']=!![],_0x140e7c[_0x38394b('0x1230')](),_0x140e7c[_0x38394b('0x1ceb')]();}function _0x4b8f57(_0x22ef4c,_0x4a6edc,_0x3d236){var _0x17714e=_0x5c7fab,_0x58f0f7=_0x24185f['confirm']()[_0x17714e('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')[_0x17714e('0x276b')](''+_0x22ef4c[_0x17714e('0x1f94')]+_0x17714e('0x2135')+_0x17714e('0x25e0'))['ariaLabel'](_0x17714e('0x1b99'))[_0x17714e('0x1e6d')](_0x3d236)['ok']('OK')[_0x17714e('0x3b5')](_0x17714e('0x284b'));_0x24185f[_0x17714e('0x853')](_0x58f0f7)['then'](function(){var _0x22020e=_0x17714e;_0x140e7c[_0x22020e('0x152')]['rows'][_0x22020e('0xafe')](_0x4a6edc,0x1),_0x427087();},function(){var _0x2cf588=_0x17714e;console[_0x2cf588('0x6fb')](_0x2cf588('0x284b'));});}function _0x20b4af(_0x217748,_0x2bfef0){var _0x47df36=_0x5c7fab;if(_0x140e7c[_0x47df36('0x152')]['rows'][_0x47df36('0x577')]){var _0x909eb0=_0x140e7c[_0x47df36('0x152')][_0x47df36('0x1b33')][_0x2bfef0]?_0x140e7c['mailAccountApps'][_0x47df36('0x1b33')][_0x2bfef0]:_0x140e7c[_0x47df36('0x152')]['rows'][0x0],_0x57374=(_0x909eb0[_0x47df36('0x522')]||_0x909eb0[_0x47df36('0x1f94')])[_0x47df36('0xac2')]();_0x24185f[_0x47df36('0x853')]({'controller':_0x47df36('0x1df5')['concat'](_0x57374,_0x47df36('0x19d9')),'controllerAs':'vm','templateUrl':_0xbf9c40[_0x57374],'parent':angular['element'](_0x18d405[_0x47df36('0x2452')]),'targetEvent':_0x217748,'clickOutsideToClose':!![],'locals':{'mailAccountApp':_0x909eb0,'mailAccount':_0x140e7c[_0x47df36('0x66')],'crudPermissions':_0x140e7c['crudPermissions']}})[_0x47df36('0x21ad')](function(_0x588277){var _0x1bf41c=_0x47df36;_0x588277&&(_0x588277['id']?_0x140e7c[_0x1bf41c('0x152')][_0x1bf41c('0x1b33')][_0x2bfef0]=_0x588277:_0x140e7c['mailAccountApps']['rows'][_0x1bf41c('0xafe')](_0x2bfef0,0x0,_0x588277),_0x427087());})[_0x47df36('0x1c1d')](function(_0x2dd58e){var _0x1752d2=_0x47df36;_0x2dd58e&&_0x17efd9[_0x1752d2('0x2092')]({'title':_0x2dd58e[_0x1752d2('0x209')]?_0x1752d2('0x22d')+_0x2dd58e['status']+_0x1752d2('0xa99')+_0x2dd58e['statusText']:_0x1752d2('0x20b3'),'msg':_0x2dd58e['data']?JSON[_0x1752d2('0x25e')](_0x2dd58e[_0x1752d2('0x11c2')]):_0x2dd58e[_0x1752d2('0x174f')]()});});}}function _0x1fab5d(_0x497e84,_0x4f4255){var _0x36cfcf=_0x5c7fab;if(_0x140e7c[_0x36cfcf('0x152')][_0x36cfcf('0x1b33')][_0x36cfcf('0x577')]){var _0x296d84=_0x140e7c[_0x36cfcf('0x152')][_0x36cfcf('0x1b33')][_0x4f4255]?_0x140e7c[_0x36cfcf('0x152')][_0x36cfcf('0x1b33')][_0x4f4255]:_0x140e7c[_0x36cfcf('0x152')][_0x36cfcf('0x1b33')][0x0];_0x24185f[_0x36cfcf('0x853')]({'controller':_0x36cfcf('0x2776'),'controllerAs':'vm','templateUrl':_0x375f17,'parent':angular['element'](_0x18d405['body']),'targetEvent':_0x497e84,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x296d84['interval'],'IntervalId':_0x296d84[_0x36cfcf('0x1ac8')],'application':!![]},'intervals':[],'crudPermissions':_0x140e7c[_0x36cfcf('0x5ed')]}})[_0x36cfcf('0x21ad')](function(_0xf5f622){var _0x42917c=_0x36cfcf;_0xf5f622&&(_0x296d84[_0x42917c('0xa07')]=_0xf5f622[_0x42917c('0xa07')]||_0x42917c('0x1cc4'),_0x296d84[_0x42917c('0x1ac8')]=_0xf5f622[_0x42917c('0x1ac8')]||null,_0x427087());});}}function _0x427087(){var _0x5d7402=_0x5c7fab,_0x3e2829=0x1,_0x253301=[];for(var _0xd9ddda=0x0;_0xd9ddda<_0x140e7c[_0x5d7402('0x152')][_0x5d7402('0x1b33')][_0x5d7402('0x577')];_0xd9ddda++){var _0x1bb4e9=_0x140e7c[_0x5d7402('0x152')][_0x5d7402('0x1b33')][_0xd9ddda],_0xa033e8=[],_0x3f1895=[];_0x1bb4e9[_0x5d7402('0x2530')]=_0x1bb4e9['interval']!=='*,*,*,*'?[_0x1bb4e9[_0x5d7402('0xa07')]]:_0x1bb4e9[_0x5d7402('0x1ac8')]?_0x86640f()[_0x5d7402('0x26c3')](_0x86640f()['filter'](_0x140e7c[_0x5d7402('0x2530')][_0x5d7402('0x1b33')],{'IntervalId':_0x1bb4e9[_0x5d7402('0x1ac8')]}),_0x5d7402('0xa07')):[],_0x1bb4e9[_0x5d7402('0x244c')]=_0x140e7c[_0x5d7402('0x66')]['context'],_0x1bb4e9[_0x5d7402('0x24b7')]=_0x140e7c[_0x5d7402('0x66')]['exten'],_0x1bb4e9[_0x5d7402('0x7fa')]&&(_0x1bb4e9[_0x5d7402('0x7fa')]=_0x1bb4e9[_0x5d7402('0x7fa')][_0x5d7402('0xac2')]()),_0x1bb4e9[_0x5d7402('0xbe5')]=_0xa033e8[_0x5d7402('0x577')]?_0x86640f()[_0x5d7402('0x25d5')](_0xa033e8)[_0x5d7402('0xbe5')]+0x1:_0x3e2829,_0x3e2829=(_0x3f1895[_0x5d7402('0x577')]?_0x86640f()[_0x5d7402('0x25d5')](_0x3f1895)['priority']:_0x1bb4e9[_0x5d7402('0xbe5')])+0x1,_0x253301=_0x86640f()[_0x5d7402('0x1877')](_0x253301,_0xa033e8,[_0x1bb4e9],_0x3f1895);}_0x1294c3[_0x5d7402('0x66')][_0x5d7402('0x69f')]({'id':_0x140e7c[_0x5d7402('0x66')]['id']},_0x86640f()[_0x5d7402('0x203e')](_0x253301,_0x5d7402('0xbe5')))[_0x5d7402('0x1376')]['then'](function(_0x1246b4){var _0x3cedaf=_0x5d7402;_0x140e7c[_0x3cedaf('0x152')][_0x3cedaf('0x1b33')]=_0x1246b4['rows'];})[_0x5d7402('0x1c1d')](function(_0x848b69){var _0x5b9ad1=_0x5d7402;console[_0x5b9ad1('0x2092')](_0x848b69);});}function _0x4da589(_0x56aff7){var _0x249d29=_0x5c7fab;_0x140e7c[_0x249d29('0x152')]=_0x56aff7||{'count':0x0,'rows':[]};}function _0x7e7996(){var _0x3ca67c=_0x5c7fab;return _0x1294c3['interval']['get']({'fields':_0x3ca67c('0x7b5')})[_0x3ca67c('0x1376')]['then'](function(_0xf8df30){var _0x5bcc21=_0x3ca67c;_0x140e7c[_0x5bcc21('0x2530')]=_0xf8df30;})[_0x3ca67c('0x1c1d')](function(_0xc1665b){var _0x488d94=_0x3ca67c;console[_0x488d94('0x2092')](_0xc1665b);});}function _0x4251cb(){var _0x1d6f13=_0x5c7fab;_0x140e7c[_0x1d6f13('0x71b')]=_0x1294c3['mailAccount'][_0x1d6f13('0x1290')](_0x140e7c[_0x1d6f13('0x77')],_0x4da589)[_0x1d6f13('0x1376')];}function _0x20d944(_0x33c263){var _0x541b4f=_0x5c7fab;_0x86640f()['remove'](_0x140e7c['mailAccountApps']['rows'],{'id':_0x33c263['id']}),_0x427087(),_0x17efd9[_0x541b4f('0xdb1')]({'title':'App\x20deleted!','msg':_0x33c263['app']?_0x33c263[_0x541b4f('0x1f94')]+_0x541b4f('0xb4a'):''});}function _0x324882(_0x45ed31){var _0x5eec26=_0x5c7fab,_0x868eb9=_0x24185f[_0x5eec26('0xa33')]()[_0x5eec26('0x4b4')](_0x5eec26('0x152a'))[_0x5eec26('0x276b')](_0x5eec26('0x622')+_0x140e7c[_0x5eec26('0x1362')]['length']+_0x5eec26('0xd74')+'\x20will\x20be\x20deleted.')[_0x5eec26('0x7a7')]('delete\x20applications')[_0x5eec26('0x1e6d')](_0x45ed31)['ok']('OK')[_0x5eec26('0x3b5')](_0x5eec26('0x284b'));_0x24185f['show'](_0x868eb9)[_0x5eec26('0x21ad')](function(){var _0x318c43=_0x5eec26;_0x140e7c[_0x318c43('0x1362')][_0x318c43('0x1a52')](function(_0x4be019){var _0x107e8d=_0x318c43;_0x86640f()[_0x107e8d('0x16a2')](_0x140e7c[_0x107e8d('0x152')][_0x107e8d('0x1b33')],{'id':_0x4be019['id']});}),_0x140e7c[_0x318c43('0x1362')]=[],_0x427087();});}}const _0x5281be=_0x46d11c;_0x138b7c[_0x3877e3('0x1a81')]=['$mdDialog','$q','toasty','api',_0x3877e3('0x66'),_0x3877e3('0x21ab'),_0x3877e3('0x116a'),'$translate','Auth',_0x3877e3('0x5ed')];function _0x138b7c(_0x2f0625,_0x3479c1,_0x3d76fd,_0x55986d,_0x8e50fc,_0x5914bf,_0x2e7352,_0x53c648,_0x489ccb,_0x4fa9b2){var _0x3bbcf3=_0x3877e3,_0x45d14f=this;_0x45d14f[_0x3bbcf3('0x123f')]=_0x489ccb['getCurrentUser'](),_0x45d14f[_0x3bbcf3('0x66')]=_0x8e50fc,_0x45d14f['crudPermissions']=_0x4fa9b2,_0x45d14f['realtime']=_0x2e7352,_0x45d14f[_0x3bbcf3('0x1b9a')]=[],_0x45d14f[_0x3bbcf3('0x1e09')]=[],_0x45d14f[_0x3bbcf3('0x2629')]=[],_0x45d14f[_0x3bbcf3('0x91b')]=[],_0x45d14f[_0x3bbcf3('0x2584')]=[],_0x45d14f[_0x3bbcf3('0x1bb9')]=![],_0x45d14f['onInit']=_0x5a6731,_0x45d14f[_0x3bbcf3('0x265b')]=_0x280607,_0x45d14f[_0x3bbcf3('0x167')]=_0x42c703,_0x45d14f[_0x3bbcf3('0x909')]={'readOnly':!_0x45d14f[_0x3bbcf3('0x5ed')]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x3bbcf3('0x19fe'),'line1':'fullname','line2':['name','internal'],'line3':'','labelAll':_0x53c648[_0x3bbcf3('0x183e')](_0x3bbcf3('0xb25')),'labelSelected':_0x53c648[_0x3bbcf3('0x183e')](_0x3bbcf3('0xbc8')),'transferCallback':function _0x1a73d4(){var _0x1d22bd=_0x3bbcf3,_0x1a609d=_0x86640f()[_0x1d22bd('0x1473')](_0x45d14f[_0x1d22bd('0x2584')],_0x45d14f[_0x1d22bd('0x2629')],'id');_0x45d14f['pendingChanges']=_0x86640f()[_0x1d22bd('0x23aa')](_0x1a609d)?![]:!![];}};function _0x5a6731(){var _0x37b4aa=_0x3bbcf3;return _0x489ccb[_0x37b4aa('0x21de')](_0x37b4aa('0x1bd8'))?_0x4f8ed2()['catch'](function(_0x2a5404){var _0x223556=_0x37b4aa;_0x3d76fd[_0x223556('0x2092')]({'title':_0x2a5404[_0x223556('0x209')]?'API:'+_0x2a5404['status']+_0x223556('0xa99')+_0x2a5404[_0x223556('0x1808')]:_0x223556('0x1381'),'msg':_0x2a5404['status']?JSON[_0x223556('0x25e')](_0x2a5404[_0x223556('0x11c2')]):_0x2a5404[_0x223556('0x174f')]()});}):_0x2b5405()[_0x37b4aa('0x21ad')](function(_0x4dda57){var _0xe91866=_0x37b4aa;return _0x45d14f[_0xe91866('0x26ad')]=_0x4dda57,_0x4f8ed2();})[_0x37b4aa('0x1c1d')](function(_0x518814){var _0x113bee=_0x37b4aa;_0x3d76fd[_0x113bee('0x2092')]({'title':_0x518814[_0x113bee('0x209')]?_0x113bee('0x22d')+_0x518814[_0x113bee('0x209')]+_0x113bee('0xa99')+_0x518814[_0x113bee('0x1808')]:_0x113bee('0x1381'),'msg':_0x518814[_0x113bee('0x209')]?JSON['stringify'](_0x518814[_0x113bee('0x11c2')]):_0x518814[_0x113bee('0x174f')]()});});}function _0x2b5405(){return _0x3479c1(function(_0x11a643,_0x1c6fe3){var _0xdfb36a=a0_0x2e7f;_0x55986d[_0xdfb36a('0xab4')]['get']({'userProfileId':_0x45d14f[_0xdfb36a('0x123f')][_0xdfb36a('0x1618')],'name':_0xdfb36a('0xfed')})[_0xdfb36a('0x1376')]['then'](function(_0x281af2){var _0x26a995=_0xdfb36a,_0xfe4b60=_0x281af2&&_0x281af2['rows']?_0x281af2[_0x26a995('0x1b33')][0x0]:null;_0x11a643(_0xfe4b60);})[_0xdfb36a('0x1c1d')](function(_0x4389d3){_0x1c6fe3(_0x4389d3);});});}function _0x4f8ed2(){return _0x3479c1(function(_0x54143f,_0x48838e){var _0x1587ee=a0_0x2e7f;return _0x1cd1f7()[_0x1587ee('0x21ad')](function(_0x256021){var _0x358e0a=_0x1587ee;return _0x45d14f[_0x358e0a('0x1b9a')]=_0x256021[_0x358e0a('0x1b33')]?_0x256021[_0x358e0a('0x1b33')]:[],_0x489ccb[_0x358e0a('0x21de')](_0x358e0a('0x1bd8'))?_0x256021:_0x45d14f[_0x358e0a('0x26ad')]?_0x45d14f['section'][_0x358e0a('0x80c')]?_0x256021:_0x8e965d():null;})[_0x1587ee('0x21ad')](function(_0x35bd40){var _0x481ba1=_0x1587ee,_0x566aaa=_0x35bd40&&_0x35bd40[_0x481ba1('0x1b33')]?_0x35bd40[_0x481ba1('0x1b33')]:[];return _0x45d14f[_0x481ba1('0x1e09')]=_0x86640f()[_0x481ba1('0x26c3')](_0x566aaa,function(_0x243335){var _0x274756=_0x481ba1;return _0x86640f()['find'](_0x45d14f[_0x274756('0x1b9a')],{'id':_0x489ccb[_0x274756('0x21de')](_0x274756('0x1bd8'))||_0x45d14f[_0x274756('0x26ad')][_0x274756('0x80c')]?_0x243335['id']:_0x243335['resourceId']});}),_0x45d14f[_0x481ba1('0x91b')]=angular['copy'](_0x45d14f[_0x481ba1('0x1e09')]),_0x45d14f[_0x481ba1('0x1b9a')][_0x481ba1('0x1a52')](function(_0x573f60){var _0x3357eb=_0x481ba1,_0x164971=_0x86640f()['find'](_0x45d14f['allowedItems'],{'id':_0x573f60['id']});_0x489ccb[_0x3357eb('0x21de')](_0x3357eb('0x1bd8'))?_0x573f60['isValid']=!![]:_0x573f60[_0x3357eb('0x118b')]=typeof _0x164971!==_0x3357eb('0xddc')?!![]:![];}),_0x5536bb();})[_0x1587ee('0x21ad')](function(_0x3d7f45){var _0x9adb2f=_0x1587ee,_0x1d914c=_0x3d7f45&&_0x3d7f45[_0x9adb2f('0x1b33')]?_0x3d7f45['rows']:[];_0x45d14f['selectedItems']=_0x86640f()['map'](_0x1d914c,function(_0x80d516){var _0x1a12ae=_0x9adb2f,_0x1e2891=_0x86640f()['find'](_0x45d14f[_0x1a12ae('0x1b9a')],{'id':_0x80d516['id']});return _0x1e2891[_0x1a12ae('0x1195')]=_0x80d516['UserMailAccount']?_0x1a12ae('0x5c2')+_0x80d516[_0x1a12ae('0xe08')][_0x1a12ae('0x1195')]:'',_0x1e2891[_0x1a12ae('0x201f')]=typeof _0x80d516[_0x1a12ae('0x201f')]!=='undefined'?'<'+_0x80d516['internal']+'>':'',_0x1e2891;}),_0x45d14f[_0x9adb2f('0x2584')]=angular[_0x9adb2f('0xd75')](_0x45d14f['selectedItems']),_0x45d14f[_0x9adb2f('0x909')][_0x9adb2f('0x2629')]=_0x45d14f['selectedItems'],_0x45d14f[_0x9adb2f('0x909')]['items']=_0x86640f()[_0x9adb2f('0x1eab')](_0x45d14f[_0x9adb2f('0x1e09')],_0x45d14f['dualMultiselectOptions'][_0x9adb2f('0x2629')],'id'),_0x54143f();})[_0x1587ee('0x1c1d')](function(_0xef093f){_0x48838e(_0xef093f);});});}function _0x8e965d(){return _0x3479c1(function(_0x9f6368,_0x4b5f0c){var _0x14ee74=a0_0x2e7f;return _0x55986d[_0x14ee74('0x185e')][_0x14ee74('0x595')]({'sectionId':_0x45d14f[_0x14ee74('0x26ad')]['id'],'nolimit':!![]})[_0x14ee74('0x1376')][_0x14ee74('0x21ad')](function(_0x3a1ec7){_0x9f6368(_0x3a1ec7);})['catch'](function(_0x5447a8){_0x4b5f0c(_0x5447a8);});});}function _0x5536bb(){return _0x3479c1(function(_0x548c4c,_0x32b8f0){var _0x5ba0e1=a0_0x2e7f;return _0x55986d[_0x5ba0e1('0x66')][_0x5ba0e1('0x13ad')]({'id':_0x45d14f['mailAccount']['id'],'fields':_0x5ba0e1('0x1eea'),'nolimit':!![],'role':_0x5ba0e1('0x2402')})[_0x5ba0e1('0x1376')][_0x5ba0e1('0x21ad')](function(_0x5d18bc){_0x548c4c(_0x5d18bc);})['catch'](function(_0x2271c2){_0x32b8f0(_0x2271c2);});});}function _0x1cd1f7(){return _0x3479c1(function(_0x592a99,_0x5b0fbc){var _0x4d251a=a0_0x2e7f;return _0x55986d[_0x4d251a('0x1775')][_0x4d251a('0x595')]({'fields':_0x4d251a('0x1eea'),'nolimit':!![],'role':_0x4d251a('0x2402')})['$promise']['then'](function(_0x3f2ec6){_0x592a99(_0x3f2ec6);})[_0x4d251a('0x1c1d')](function(_0x5d1a8f){_0x5b0fbc(_0x5d1a8f);});});}function _0x410fde(_0x37a8ee){return _0x3479c1(function(_0x556b76,_0x24de9a){var _0x3e77b7=a0_0x2e7f;_0x86640f()[_0x3e77b7('0x23aa')](_0x37a8ee)?_0x556b76():_0x55986d[_0x3e77b7('0x66')][_0x3e77b7('0x1116')]({'id':_0x45d14f[_0x3e77b7('0x66')]['id'],'ids':_0x86640f()[_0x3e77b7('0x26c3')](_0x37a8ee,'id')})[_0x3e77b7('0x1376')][_0x3e77b7('0x21ad')](function(){_0x556b76();})['catch'](function(_0x2f3a86){_0x24de9a(_0x2f3a86);});});}function _0x23b68e(_0x470780){return _0x3479c1(function(_0x5e6451,_0x100b43){var _0x3d2947=a0_0x2e7f;_0x86640f()[_0x3d2947('0x23aa')](_0x470780)?_0x5e6451():_0x55986d[_0x3d2947('0x66')][_0x3d2947('0x59e')]({'id':_0x45d14f[_0x3d2947('0x66')]['id'],'ids':_0x86640f()[_0x3d2947('0x26c3')](_0x470780,'id')})[_0x3d2947('0x1376')][_0x3d2947('0x21ad')](function(){_0x5e6451();})[_0x3d2947('0x1c1d')](function(_0x23fa9c){_0x100b43(_0x23fa9c);});});}function _0x280607(){var _0x5385ab=_0x3bbcf3,_0x272176=_0x86640f()[_0x5385ab('0x1eab')](_0x45d14f[_0x5385ab('0x2584')],_0x45d14f[_0x5385ab('0x2629')],'id'),_0x2fae78=_0x86640f()['differenceBy'](_0x45d14f[_0x5385ab('0x2629')],_0x45d14f['startingSelectedItems'],'id');return _0x23b68e(_0x272176)[_0x5385ab('0x21ad')](function(){return _0x410fde(_0x2fae78);})[_0x5385ab('0x21ad')](function(){var _0x3d00b0=_0x5385ab;_0x45d14f[_0x3d00b0('0x1bb9')]=![],_0x45d14f[_0x3d00b0('0x91b')]=angular[_0x3d00b0('0xd75')](_0x45d14f[_0x3d00b0('0x1e09')]),_0x45d14f['startingSelectedItems']=angular[_0x3d00b0('0xd75')](_0x45d14f['selectedItems']),_0x3d76fd[_0x3d00b0('0xdb1')]({'title':_0x3d00b0('0x2804'),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})[_0x5385ab('0x1c1d')](function(_0x2f20d){var _0x440c83=_0x5385ab;_0x3d76fd[_0x440c83('0x2092')]({'title':_0x2f20d[_0x440c83('0x209')]?_0x440c83('0x22d')+_0x2f20d['status']+_0x440c83('0xa99')+_0x2f20d[_0x440c83('0x1808')]:_0x440c83('0x1dd7'),'msg':_0x2f20d[_0x440c83('0x209')]?JSON[_0x440c83('0x25e')](_0x2f20d[_0x440c83('0x11c2')]):_0x2f20d[_0x440c83('0x174f')]()});});}function _0x42c703(){var _0x34e30e=_0x3bbcf3;_0x2f0625[_0x34e30e('0x1c24')]();}}const _0x398c9d=_0x138b7c;_0x4c54c7[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q','toasty',_0x3877e3('0x162d'),_0x3877e3('0x66'),'api','Auth','crudPermissions'];function _0x4c54c7(_0x5a07b5,_0x4f387,_0x111b69,_0x4061f5,_0x1e7d1b,_0x1e79d1,_0xa637d5,_0x3478aa){var _0x407d5d=_0x3877e3,_0x138d06=this;_0x138d06[_0x407d5d('0x123f')]=_0xa637d5[_0x407d5d('0x15ed')](),_0x138d06[_0x407d5d('0x1a69')]=[],_0x138d06[_0x407d5d('0x4b4')]=_0x407d5d('0x14d7')+(_0x4061f5[_0x407d5d('0x522')]||_0x4061f5['app'])[_0x407d5d('0x2e8')](),_0x138d06['agent']=angular[_0x407d5d('0xd75')](_0x4061f5),_0x138d06[_0x407d5d('0x5ed')]=_0x3478aa,_0x138d06[_0x407d5d('0x126a')]={};if(_0x138d06[_0x407d5d('0x2402')][_0x407d5d('0x23c2')])switch(_0x138d06['agent'][_0x407d5d('0x522')]?_0x138d06[_0x407d5d('0x2402')][_0x407d5d('0x522')]['toLowerCase']():_0x138d06['agent']['app'][_0x407d5d('0xac2')]()){case _0x407d5d('0xf50'):break;case _0x407d5d('0xc72'):{var _0x4a5d20=_0x138d06[_0x407d5d('0x2402')][_0x407d5d('0x23c2')][_0x407d5d('0x1af5')](',');_0x138d06[_0x407d5d('0x2402')]['key']=_0x4a5d20[0x0],_0x138d06[_0x407d5d('0x2402')]['language']=_0x4a5d20[0x1],_0x138d06[_0x407d5d('0x2402')][_0x407d5d('0x1cce')]=_0x4a5d20['slice'](0x2,_0x4a5d20[_0x407d5d('0x577')])['join'](',');}break;case _0x407d5d('0x1c22'):{var _0x24b0e4=_0x138d06[_0x407d5d('0x2402')][_0x407d5d('0x23c2')][_0x407d5d('0x1af5')](',');_0x138d06['agent'][_0x407d5d('0x21c6')]=_0x24b0e4[0x0],_0x138d06['agent'][_0x407d5d('0x797')]=_0x24b0e4[0x1],_0x138d06['agent'][_0x407d5d('0x20a3')]=_0x24b0e4[0x2],_0x138d06[_0x407d5d('0x2402')][_0x407d5d('0x15fe')]=_0x24b0e4[0x3],_0x138d06[_0x407d5d('0x2402')][_0x407d5d('0x1cce')]=_0x24b0e4[_0x407d5d('0xb3d')](0x4,_0x24b0e4[_0x407d5d('0x577')])[_0x407d5d('0x136')](',');}break;case'autoreply':{var _0x5aef0f=_0x138d06[_0x407d5d('0x2402')][_0x407d5d('0x23c2')][_0x407d5d('0x1af5')](',');_0x138d06[_0x407d5d('0x2402')]['times']=isNaN(_0x5aef0f[0x0])?_0x5aef0f[0x0]:parseInt(_0x5aef0f[0x0],0xa),_0x138d06[_0x407d5d('0x2402')][_0x407d5d('0xc1e')]=_0x5aef0f[_0x407d5d('0xb3d')](0x1,_0x5aef0f[_0x407d5d('0x577')])['join'](',');}break;case _0x407d5d('0x1224'):_0x138d06[_0x407d5d('0x2402')]['text']=_0x138d06[_0x407d5d('0x2402')][_0x407d5d('0x23c2')];break;case _0x407d5d('0x1125'):_0x138d06['agent'][_0x407d5d('0x19fe')]=_0x138d06[_0x407d5d('0x2402')][_0x407d5d('0x23c2')][_0x407d5d('0x1af5')]('=')[0x0],_0x138d06[_0x407d5d('0x2402')][_0x407d5d('0x2228')]=_0x138d06['agent'][_0x407d5d('0x23c2')][_0x407d5d('0x1af5')]('=')[0x1];break;case'agi':_0x138d06['agent'][_0x407d5d('0xbf8')]=_0x138d06[_0x407d5d('0x2402')][_0x407d5d('0x23c2')];break;default:{var _0x54232f=_0x138d06[_0x407d5d('0x2402')][_0x407d5d('0x23c2')][_0x407d5d('0x1af5')](',');_0x138d06['agent'][_0x407d5d('0x2402')]=_0x86640f()[_0x407d5d('0x23aa')](_0x54232f[0x0])?_0x54232f[0x0]:isNaN(_0x54232f[0x0])?_0x54232f[0x0]:parseInt(_0x54232f[0x0],0xa),_0x138d06['agent'][_0x407d5d('0x2133')]=_0x86640f()[_0x407d5d('0x23aa')](_0x54232f[0x1])?_0x54232f[0x1]:isNaN(_0x54232f[0x1])?_0x54232f[0x1]:parseInt(_0x54232f[0x1],0xa);}break;}else _0x138d06[_0x407d5d('0x2402')][_0x407d5d('0x2133')]=0x1e;_0x138d06[_0x407d5d('0x2402')][_0x407d5d('0x7fa')]&&_0x138d06['agent'][_0x407d5d('0x7fa')]['toLowerCase']()===_0x407d5d('0x2300')&&_0x138d06['agent'][_0x407d5d('0x522')][_0x407d5d('0xac2')]()===_0x407d5d('0x2363')&&(_0x138d06[_0x407d5d('0x2402')][_0x407d5d('0x1995')]=_0x138d06['agent']['phone']?_0x138d06[_0x407d5d('0x2402')][_0x407d5d('0x159e')][_0x407d5d('0x1af5')]('$')[0x0]:undefined,_0x138d06[_0x407d5d('0x2402')][_0x407d5d('0x26f7')]=_0x138d06[_0x407d5d('0x2402')][_0x407d5d('0x1f5a')]?'CALLERID(all)='+_0x138d06['agent'][_0x407d5d('0x1f5a')]:undefined);_0x138d06[_0x407d5d('0x1d38')]=_0x30fd2c,_0x138d06['closeDialog']=_0x5dfdaf,_0xa637d5[_0x407d5d('0x21de')](_0x407d5d('0x1bd8'))?_0x1e79d1[_0x407d5d('0x1775')][_0x407d5d('0x595')]({'fields':_0x407d5d('0x1aa8'),'sort':_0x407d5d('0x19fe'),'nolimit':_0x407d5d('0x19bd'),'role':_0x407d5d('0x2402')})[_0x407d5d('0x1376')]['then'](function(_0x1c5650){var _0x5ed809=_0x407d5d;_0x138d06[_0x5ed809('0xcb5')]=_0x1c5650[_0x5ed809('0x1b33')]||[];})[_0x407d5d('0x1c1d')](function(_0x3553fa){var _0x742ed5=_0x407d5d;_0x111b69[_0x742ed5('0x2092')]({'title':_0x3553fa[_0x742ed5('0x209')]?_0x742ed5('0x22d')+_0x3553fa['status']+_0x742ed5('0xa99')+_0x3553fa[_0x742ed5('0x1808')]:_0x742ed5('0x1381'),'msg':_0x3553fa[_0x742ed5('0x11c2')]?JSON[_0x742ed5('0x25e')](_0x3553fa['data']):_0x3553fa['toString']()});}):_0x1e79d1[_0x407d5d('0x1775')][_0x407d5d('0x595')]({'fields':_0x407d5d('0x1aa8'),'sort':_0x407d5d('0x19fe'),'nolimit':_0x407d5d('0x19bd'),'role':'agent'})['$promise'][_0x407d5d('0x21ad')](function(_0x40211c){var _0x1eb756=_0x407d5d;_0x138d06[_0x1eb756('0xcb5')]=_0x40211c['rows']||[];})[_0x407d5d('0x21ad')](function(){var _0x38d327=_0x407d5d;return _0x1e79d1['userProfileSection'][_0x38d327('0x595')]({'userProfileId':_0x138d06[_0x38d327('0x123f')]['userProfileId'],'sectionId':0xca})['$promise'];})['then'](function(_0x48bfbf){var _0x1de564=_0x407d5d,_0x25b967=_0x48bfbf&&_0x48bfbf[_0x1de564('0x1b33')]?_0x48bfbf[_0x1de564('0x1b33')][0x0]:null;if(!_0x25b967){var _0x2064ad=[],_0x1b897d=null;_0x138d06[_0x1de564('0x2402')]&&(_0x1b897d=_0x86640f()[_0x1de564('0x1d2e')](_0x138d06[_0x1de564('0xcb5')],{'name':_0x138d06[_0x1de564('0x2402')]['agent']}));for(var _0x1ef937=0x0;_0x1ef937<_0x138d06[_0x1de564('0xcb5')][_0x1de564('0x577')];_0x1ef937++){_0x1b897d&&_0x138d06[_0x1de564('0xcb5')][_0x1ef937]['id']===_0x1b897d['id']&&(_0x138d06['agents'][_0x1ef937][_0x1de564('0xba')]=![],_0x2064ad['push'](_0x138d06[_0x1de564('0xcb5')][_0x1ef937]));}_0x138d06[_0x1de564('0xcb5')]=_0x2064ad;}else{if(!_0x25b967['autoAssociation'])return _0x1e79d1[_0x1de564('0x185e')]['get']({'sectionId':_0x25b967['id']})[_0x1de564('0x1376')]['then'](function(_0x228069){var _0x1b5539=_0x1de564,_0x2b9c79=_0x86640f()[_0x1b5539('0x26c3')](_0x228069[_0x1b5539('0x1b33')],function(_0x443a5c){var _0x63ddf6=_0x1b5539;return _0x86640f()[_0x63ddf6('0x1d2e')](_0x138d06['agents'],{'id':_0x443a5c[_0x63ddf6('0x675')]});}),_0x6405c0=null;_0x138d06[_0x1b5539('0x2402')]&&(_0x6405c0=_0x86640f()['find'](_0x138d06['agents'],{'name':_0x138d06[_0x1b5539('0x2402')]['agent']}));if(_0x6405c0&&!_0x86640f()['some'](_0x2b9c79,['id',_0x6405c0['id']])){var _0x167e59=_0x86640f()[_0x1b5539('0x1d2e')](_0x138d06[_0x1b5539('0xcb5')],{'id':_0x6405c0['id']});_0x167e59[_0x1b5539('0xba')]=![],_0x2b9c79[_0x1b5539('0x206c')](_0x167e59);}_0x138d06['agents']=_0x2b9c79;});}})[_0x407d5d('0x1c1d')](function(_0x3509fd){var _0x13ff91=_0x407d5d;_0x111b69[_0x13ff91('0x2092')]({'title':_0x3509fd['status']?'API:'+_0x3509fd[_0x13ff91('0x209')]+_0x13ff91('0xa99')+_0x3509fd[_0x13ff91('0x1808')]:_0x13ff91('0x2f9'),'msg':_0x3509fd[_0x13ff91('0x11c2')]?JSON[_0x13ff91('0x25e')](_0x3509fd[_0x13ff91('0x11c2')]):_0x3509fd['toString']()});});function _0x30fd2c(){var _0x4b836f=_0x407d5d;_0x138d06[_0x4b836f('0x1a69')]=[];var _0x10204c=[];_0x138d06[_0x4b836f('0x2402')][_0x4b836f('0x7fa')]&&_0x138d06[_0x4b836f('0x2402')][_0x4b836f('0x7fa')][_0x4b836f('0xac2')]()===_0x4b836f('0x2300')&&_0x138d06[_0x4b836f('0x2402')][_0x4b836f('0x522')]==='outboundDial'&&(_0x138d06['agent'][_0x4b836f('0x159e')]=_0x1e7d1b[_0x4b836f('0x988')]?(_0x138d06[_0x4b836f('0x2402')][_0x4b836f('0x1995')]||'')+_0x4b836f('0x349')+_0x1e7d1b[_0x4b836f('0x988')]+'}':(_0x138d06[_0x4b836f('0x2402')][_0x4b836f('0x1995')]||'')+_0x4b836f('0x2560'),_0x1e7d1b[_0x4b836f('0xad1')]!==_0x4b836f('0x983')?_0x138d06[_0x4b836f('0x2402')][_0x4b836f('0x26a0')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x138d06[_0x4b836f('0x2402')][_0x4b836f('0x26a0')]+=_0x4b836f('0x478')):_0x138d06['agent'][_0x4b836f('0x26a0')]=_0x138d06['agent'][_0x4b836f('0x26a0')][_0x4b836f('0x16e4')](_0x4b836f('0x478'),''));var _0x2d0421=_0x86640f()[_0x4b836f('0x1d2e')](_0x138d06[_0x4b836f('0xcb5')],{'name':_0x138d06[_0x4b836f('0x2402')]['agent']});_0x2d0421&&(_0x138d06[_0x4b836f('0x2402')][_0x4b836f('0x1dc6')]=_0x2d0421['id']);if(_0x138d06['agent'][_0x4b836f('0x522')]&&_0x138d06[_0x4b836f('0x2402')][_0x4b836f('0x522')]==='custom'){}else switch((_0x138d06[_0x4b836f('0x2402')][_0x4b836f('0x1f94')]||_0x138d06[_0x4b836f('0x2402')][_0x4b836f('0x522')])[_0x4b836f('0xac2')]()){case _0x4b836f('0x1125'):_0x138d06['agent'][_0x4b836f('0x23c2')]=_0x138d06[_0x4b836f('0x2402')][_0x4b836f('0x19fe')]+'='+_0x138d06[_0x4b836f('0x2402')][_0x4b836f('0x2228')];break;case'custom':break;default:_0x10204c[0x0]=_0x138d06[_0x4b836f('0x2402')][_0x4b836f('0x2402')],_0x10204c[0x1]=_0x138d06[_0x4b836f('0x2402')]['timeout'],_0x138d06[_0x4b836f('0x2402')][_0x4b836f('0x23c2')]=_0x10204c[_0x4b836f('0x136')](',');}_0x5dfdaf(_0x138d06[_0x4b836f('0x2402')]);}function _0x5dfdaf(_0x14c7b3){var _0x1fd9a2=_0x407d5d;_0x5a07b5[_0x1fd9a2('0x1c24')](_0x14c7b3);}}const _0xe9778e=_0x4c54c7;_0x4ae9ab[_0x3877e3('0x1a81')]=['$mdDialog','$q',_0x3877e3('0x1908'),_0x3877e3('0x162d'),'mailAccount','api','Auth','crudPermissions'];function _0x4ae9ab(_0x238345,_0x324ee5,_0x3d9281,_0x1a819f,_0x88dba5,_0x2717ed,_0x4ce44f,_0x65fa63){var _0x41717b=_0x3877e3,_0x4894fd=this;_0x4894fd[_0x41717b('0x123f')]=_0x4ce44f['getCurrentUser'](),_0x4894fd['errors']=[],_0x4894fd[_0x41717b('0x4b4')]='MAIL.EDIT_'+(_0x1a819f[_0x41717b('0x522')]||_0x1a819f[_0x41717b('0x1f94')])[_0x41717b('0x2e8')](),_0x4894fd[_0x41717b('0x1b98')]=angular[_0x41717b('0xd75')](_0x1a819f),_0x4894fd[_0x41717b('0x5ed')]=_0x65fa63,_0x4894fd['hasModulePermissions']={};if(_0x4894fd[_0x41717b('0x1b98')][_0x41717b('0x23c2')])switch(_0x4894fd[_0x41717b('0x1b98')]['appType']?_0x4894fd['autoreply'][_0x41717b('0x522')][_0x41717b('0xac2')]():_0x4894fd[_0x41717b('0x1b98')][_0x41717b('0x1f94')][_0x41717b('0xac2')]()){case'custom':break;case _0x41717b('0xc72'):{var _0x27b254=_0x4894fd[_0x41717b('0x1b98')]['appdata']['split'](',');_0x4894fd[_0x41717b('0x1b98')][_0x41717b('0xddb')]=_0x27b254[0x0],_0x4894fd['autoreply'][_0x41717b('0x10f')]=_0x27b254[0x1],_0x4894fd['autoreply'][_0x41717b('0x1cce')]=_0x27b254['slice'](0x2,_0x27b254[_0x41717b('0x577')])[_0x41717b('0x136')](',');}break;case _0x41717b('0x1c22'):{var _0x4b5168=_0x4894fd['autoreply'][_0x41717b('0x23c2')][_0x41717b('0x1af5')](',');_0x4894fd[_0x41717b('0x1b98')][_0x41717b('0x21c6')]=_0x4b5168[0x0],_0x4894fd[_0x41717b('0x1b98')][_0x41717b('0x797')]=_0x4b5168[0x1],_0x4894fd[_0x41717b('0x1b98')][_0x41717b('0x20a3')]=_0x4b5168[0x2],_0x4894fd['autoreply'][_0x41717b('0x15fe')]=_0x4b5168[0x3],_0x4894fd['autoreply'][_0x41717b('0x1cce')]=_0x4b5168[_0x41717b('0xb3d')](0x4,_0x4b5168['length'])[_0x41717b('0x136')](',');}break;case'autoreply':{var _0x2e62e0=_0x4894fd[_0x41717b('0x1b98')][_0x41717b('0x23c2')]['split'](',');_0x4894fd[_0x41717b('0x1b98')]['times']=isNaN(_0x2e62e0[0x0])?_0x2e62e0[0x0]:parseInt(_0x2e62e0[0x0],0xa),_0x4894fd[_0x41717b('0x1b98')][_0x41717b('0xc1e')]=_0x2e62e0['slice'](0x1,_0x2e62e0['length'])[_0x41717b('0x136')](',');}break;case _0x41717b('0x1224'):_0x4894fd[_0x41717b('0x1b98')][_0x41717b('0xc1e')]=_0x4894fd[_0x41717b('0x1b98')][_0x41717b('0x23c2')];break;case _0x41717b('0x1125'):_0x4894fd[_0x41717b('0x1b98')][_0x41717b('0x19fe')]=_0x4894fd[_0x41717b('0x1b98')][_0x41717b('0x23c2')]['split']('=')[0x0],_0x4894fd['autoreply'][_0x41717b('0x2228')]=_0x4894fd[_0x41717b('0x1b98')][_0x41717b('0x23c2')][_0x41717b('0x1af5')]('=')[0x1];break;case _0x41717b('0x2356'):_0x4894fd[_0x41717b('0x1b98')][_0x41717b('0xbf8')]=_0x4894fd[_0x41717b('0x1b98')][_0x41717b('0x23c2')];break;default:{var _0x179a76=_0x4894fd[_0x41717b('0x1b98')][_0x41717b('0x23c2')]['split'](',');_0x4894fd[_0x41717b('0x1b98')][_0x41717b('0x13b6')]=_0x86640f()[_0x41717b('0x23aa')](_0x179a76[0x0])?_0x179a76[0x0]:isNaN(_0x179a76[0x0])?_0x179a76[0x0]:parseInt(_0x179a76[0x0],0xa),_0x4894fd[_0x41717b('0x1b98')][_0x41717b('0xc1e')]=_0x86640f()[_0x41717b('0x23aa')](_0x179a76[0x1])?_0x179a76[0x1]:isNaN(_0x179a76[0x1])?_0x179a76[0x1]:parseInt(_0x179a76[0x1],0xa);}break;}else _0x4894fd[_0x41717b('0x1b98')][_0x41717b('0x13b6')]=0x1;_0x4894fd['autoreply'][_0x41717b('0x7fa')]&&_0x4894fd['autoreply'][_0x41717b('0x7fa')]['toLowerCase']()===_0x41717b('0x2300')&&_0x4894fd[_0x41717b('0x1b98')][_0x41717b('0x522')][_0x41717b('0xac2')]()===_0x41717b('0x2363')&&(_0x4894fd[_0x41717b('0x1b98')][_0x41717b('0x1995')]=_0x4894fd[_0x41717b('0x1b98')][_0x41717b('0x159e')]?_0x4894fd[_0x41717b('0x1b98')][_0x41717b('0x159e')][_0x41717b('0x1af5')]('$')[0x0]:undefined,_0x4894fd[_0x41717b('0x1b98')][_0x41717b('0x26f7')]=_0x4894fd['autoreply'][_0x41717b('0x1f5a')]?_0x41717b('0x587')+_0x4894fd['autoreply'][_0x41717b('0x1f5a')]:undefined);_0x4894fd[_0x41717b('0x1d38')]=_0x505430,_0x4894fd[_0x41717b('0x167')]=_0x1e9786;function _0x505430(){var _0x5e5ab9=_0x41717b;_0x4894fd['errors']=[];var _0x220abe=[];_0x4894fd[_0x5e5ab9('0x1b98')][_0x5e5ab9('0x7fa')]&&_0x4894fd[_0x5e5ab9('0x1b98')]['type'][_0x5e5ab9('0xac2')]()===_0x5e5ab9('0x2300')&&_0x4894fd[_0x5e5ab9('0x1b98')][_0x5e5ab9('0x522')]===_0x5e5ab9('0x4ea')&&(_0x4894fd[_0x5e5ab9('0x1b98')][_0x5e5ab9('0x159e')]=_0x88dba5['cutdigits']?(_0x4894fd[_0x5e5ab9('0x1b98')]['prefix']||'')+_0x5e5ab9('0x349')+_0x88dba5[_0x5e5ab9('0x988')]+'}':(_0x4894fd[_0x5e5ab9('0x1b98')][_0x5e5ab9('0x1995')]||'')+'${EXTEN}',_0x88dba5[_0x5e5ab9('0xad1')]!=='none'?_0x4894fd['autoreply'][_0x5e5ab9('0x26a0')][_0x5e5ab9('0x2004')](_0x5e5ab9('0x478'))<0x0&&(_0x4894fd[_0x5e5ab9('0x1b98')][_0x5e5ab9('0x26a0')]+=_0x5e5ab9('0x478')):_0x4894fd[_0x5e5ab9('0x1b98')][_0x5e5ab9('0x26a0')]=_0x4894fd[_0x5e5ab9('0x1b98')]['options']['replace']('U(xcally-mixmonitor-context)',''));if(_0x4894fd[_0x5e5ab9('0x1b98')][_0x5e5ab9('0x522')]&&_0x4894fd[_0x5e5ab9('0x1b98')]['appType']===_0x5e5ab9('0xf50')){}else switch((_0x4894fd[_0x5e5ab9('0x1b98')][_0x5e5ab9('0x1f94')]||_0x4894fd[_0x5e5ab9('0x1b98')][_0x5e5ab9('0x522')])[_0x5e5ab9('0xac2')]()){case'set':_0x4894fd[_0x5e5ab9('0x1b98')]['appdata']=_0x4894fd[_0x5e5ab9('0x1b98')][_0x5e5ab9('0x19fe')]+'='+_0x4894fd[_0x5e5ab9('0x1b98')][_0x5e5ab9('0x2228')];break;case'custom':break;default:_0x220abe[0x0]=_0x4894fd[_0x5e5ab9('0x1b98')][_0x5e5ab9('0x13b6')],_0x220abe[0x1]=_0x4894fd[_0x5e5ab9('0x1b98')][_0x5e5ab9('0xc1e')],_0x4894fd[_0x5e5ab9('0x1b98')][_0x5e5ab9('0x23c2')]=_0x220abe[_0x5e5ab9('0x136')](',');}_0x1e9786(_0x4894fd['autoreply']);}function _0x1e9786(_0x3f94af){_0x238345['hide'](_0x3f94af);}}const _0x45f6f5=_0x4ae9ab;_0x27cb87[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q','toasty',_0x3877e3('0x162d'),_0x3877e3('0x66'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x27cb87(_0x18ca5c,_0x1c4f9e,_0x22ee92,_0x5f3627,_0x3500c0,_0x45ed64,_0x6dd64d,_0x49a5f3){var _0x477213=_0x3877e3,_0x347822=this;_0x347822['currentUser']=_0x6dd64d['getCurrentUser'](),_0x347822[_0x477213('0x1a69')]=[],_0x347822[_0x477213('0x4b4')]=_0x477213('0x14d7')+(_0x5f3627[_0x477213('0x522')]||_0x5f3627[_0x477213('0x1f94')])[_0x477213('0x2e8')](),_0x347822['close']=angular[_0x477213('0xd75')](_0x5f3627),_0x347822[_0x477213('0x5ed')]=_0x49a5f3,_0x347822[_0x477213('0x126a')]={};if(_0x347822['close']['appdata'])switch(_0x347822[_0x477213('0x22f')]['appType']?_0x347822[_0x477213('0x22f')][_0x477213('0x522')][_0x477213('0xac2')]():_0x347822[_0x477213('0x22f')][_0x477213('0x1f94')][_0x477213('0xac2')]()){case _0x477213('0xf50'):break;case _0x477213('0xc72'):{var _0x213fa9=_0x347822['close'][_0x477213('0x23c2')][_0x477213('0x1af5')](',');_0x347822[_0x477213('0x22f')][_0x477213('0xddb')]=_0x213fa9[0x0],_0x347822['close'][_0x477213('0x10f')]=_0x213fa9[0x1],_0x347822['close'][_0x477213('0x1cce')]=_0x213fa9['slice'](0x2,_0x213fa9[_0x477213('0x577')])[_0x477213('0x136')](',');}break;case _0x477213('0x1c22'):{var _0x543321=_0x347822[_0x477213('0x22f')]['appdata']['split'](',');_0x347822[_0x477213('0x22f')][_0x477213('0x21c6')]=_0x543321[0x0],_0x347822[_0x477213('0x22f')][_0x477213('0x797')]=_0x543321[0x1],_0x347822[_0x477213('0x22f')][_0x477213('0x20a3')]=_0x543321[0x2],_0x347822[_0x477213('0x22f')][_0x477213('0x15fe')]=_0x543321[0x3],_0x347822[_0x477213('0x22f')][_0x477213('0x1cce')]=_0x543321['slice'](0x4,_0x543321[_0x477213('0x577')])[_0x477213('0x136')](',');}break;case _0x477213('0x1b98'):{var _0x3bfabe=_0x347822['close']['appdata'][_0x477213('0x1af5')](',');_0x347822['close'][_0x477213('0x13b6')]=isNaN(_0x3bfabe[0x0])?_0x3bfabe[0x0]:parseInt(_0x3bfabe[0x0],0xa),_0x347822[_0x477213('0x22f')][_0x477213('0xc1e')]=_0x3bfabe[_0x477213('0xb3d')](0x1,_0x3bfabe[_0x477213('0x577')])[_0x477213('0x136')](',');}break;case _0x477213('0x1224'):_0x347822['close'][_0x477213('0xc1e')]=_0x347822[_0x477213('0x22f')][_0x477213('0x23c2')];break;case _0x477213('0x1125'):_0x347822['close'][_0x477213('0x19fe')]=_0x347822[_0x477213('0x22f')][_0x477213('0x23c2')][_0x477213('0x1af5')]('=')[0x0],_0x347822['close'][_0x477213('0x2228')]=_0x347822[_0x477213('0x22f')][_0x477213('0x23c2')]['split']('=')[0x1];break;case'agi':_0x347822[_0x477213('0x22f')][_0x477213('0xbf8')]=_0x347822['close']['appdata'];break;default:{var _0x5f2104=_0x347822[_0x477213('0x22f')][_0x477213('0x23c2')][_0x477213('0x1af5')](',');_0x347822[_0x477213('0x22f')]['disposition']=_0x86640f()[_0x477213('0x23aa')](_0x5f2104[0x0])?_0x5f2104[0x0]:isNaN(_0x5f2104[0x0])?_0x5f2104[0x0]:parseInt(_0x5f2104[0x0],0xa);}break;}else{}_0x347822[_0x477213('0x22f')][_0x477213('0x7fa')]&&_0x347822[_0x477213('0x22f')][_0x477213('0x7fa')][_0x477213('0xac2')]()===_0x477213('0x2300')&&_0x347822['close'][_0x477213('0x522')][_0x477213('0xac2')]()===_0x477213('0x2363')&&(_0x347822[_0x477213('0x22f')][_0x477213('0x1995')]=_0x347822[_0x477213('0x22f')][_0x477213('0x159e')]?_0x347822['close'][_0x477213('0x159e')]['split']('$')[0x0]:undefined,_0x347822['close'][_0x477213('0x26f7')]=_0x347822['close'][_0x477213('0x1f5a')]?_0x477213('0x587')+_0x347822[_0x477213('0x22f')]['callerID']:undefined);_0x347822[_0x477213('0x1d38')]=_0x24b693,_0x347822[_0x477213('0x167')]=_0x441405;function _0x24b693(){var _0x4cc240=_0x477213;_0x347822[_0x4cc240('0x1a69')]=[];var _0x28a840=[];_0x347822[_0x4cc240('0x22f')][_0x4cc240('0x7fa')]&&_0x347822[_0x4cc240('0x22f')][_0x4cc240('0x7fa')][_0x4cc240('0xac2')]()==='outbound'&&_0x347822[_0x4cc240('0x22f')][_0x4cc240('0x522')]==='outboundDial'&&(_0x347822[_0x4cc240('0x22f')]['phone']=_0x3500c0[_0x4cc240('0x988')]?(_0x347822[_0x4cc240('0x22f')]['prefix']||'')+'${EXTEN:'+_0x3500c0[_0x4cc240('0x988')]+'}':(_0x347822[_0x4cc240('0x22f')][_0x4cc240('0x1995')]||'')+_0x4cc240('0x2560'),_0x3500c0[_0x4cc240('0xad1')]!==_0x4cc240('0x983')?_0x347822[_0x4cc240('0x22f')][_0x4cc240('0x26a0')][_0x4cc240('0x2004')](_0x4cc240('0x478'))<0x0&&(_0x347822['close']['options']+=_0x4cc240('0x478')):_0x347822[_0x4cc240('0x22f')][_0x4cc240('0x26a0')]=_0x347822[_0x4cc240('0x22f')]['options'][_0x4cc240('0x16e4')](_0x4cc240('0x478'),''));if(_0x347822['close']['appType']&&_0x347822['close'][_0x4cc240('0x522')]===_0x4cc240('0xf50')){}else switch((_0x347822['close'][_0x4cc240('0x1f94')]||_0x347822[_0x4cc240('0x22f')][_0x4cc240('0x522')])[_0x4cc240('0xac2')]()){case _0x4cc240('0x1125'):_0x347822[_0x4cc240('0x22f')][_0x4cc240('0x23c2')]=_0x347822[_0x4cc240('0x22f')]['name']+'='+_0x347822[_0x4cc240('0x22f')][_0x4cc240('0x2228')];break;case _0x4cc240('0xf50'):break;default:_0x28a840[0x0]=_0x347822[_0x4cc240('0x22f')][_0x4cc240('0x22c8')],_0x347822[_0x4cc240('0x22f')][_0x4cc240('0x23c2')]=_0x28a840[_0x4cc240('0x136')](',');}_0x441405(_0x347822[_0x4cc240('0x22f')]);}function _0x441405(_0x285d88){var _0x88c2e4=_0x477213;_0x18ca5c[_0x88c2e4('0x1c24')](_0x285d88);}}const _0x496702=_0x27cb87;_0x3dc774[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x162d'),_0x3877e3('0x66'),'api',_0x3877e3('0x15bc'),'crudPermissions'];function _0x3dc774(_0x1aeb00,_0x26a469,_0x46d176,_0x462956,_0x450258,_0x1b163e,_0xf3020,_0x309abe){var _0x5ca46c=_0x3877e3,_0x5de817=this;_0x5de817[_0x5ca46c('0x123f')]=_0xf3020[_0x5ca46c('0x15ed')](),_0x5de817[_0x5ca46c('0x1a69')]=[],_0x5de817[_0x5ca46c('0x4b4')]='MAIL.EDIT_'+(_0x462956[_0x5ca46c('0x522')]||_0x462956[_0x5ca46c('0x1f94')])[_0x5ca46c('0x2e8')](),_0x5de817['gotoif']=angular[_0x5ca46c('0xd75')](_0x462956),_0x5de817[_0x5ca46c('0x5ed')]=_0x309abe,_0x5de817[_0x5ca46c('0x126a')]={};if(_0x5de817['gotoif']['appdata'])switch(_0x5de817[_0x5ca46c('0x262')]['appType']?_0x5de817[_0x5ca46c('0x262')]['appType'][_0x5ca46c('0xac2')]():_0x5de817[_0x5ca46c('0x262')][_0x5ca46c('0x1f94')][_0x5ca46c('0xac2')]()){case _0x5ca46c('0xf50'):break;case _0x5ca46c('0xc72'):{var _0x3d79c8=_0x5de817[_0x5ca46c('0x262')][_0x5ca46c('0x23c2')]['split'](',');_0x5de817['gotoif'][_0x5ca46c('0xddb')]=_0x3d79c8[0x0],_0x5de817[_0x5ca46c('0x262')][_0x5ca46c('0x10f')]=_0x3d79c8[0x1],_0x5de817[_0x5ca46c('0x262')][_0x5ca46c('0x1cce')]=_0x3d79c8['slice'](0x2,_0x3d79c8['length'])[_0x5ca46c('0x136')](',');}break;case _0x5ca46c('0x1c22'):{var _0x107776=_0x5de817[_0x5ca46c('0x262')][_0x5ca46c('0x23c2')]['split'](',');_0x5de817['gotoif'][_0x5ca46c('0x21c6')]=_0x107776[0x0],_0x5de817['gotoif'][_0x5ca46c('0x797')]=_0x107776[0x1],_0x5de817[_0x5ca46c('0x262')][_0x5ca46c('0x20a3')]=_0x107776[0x2],_0x5de817['gotoif'][_0x5ca46c('0x15fe')]=_0x107776[0x3],_0x5de817[_0x5ca46c('0x262')][_0x5ca46c('0x1cce')]=_0x107776[_0x5ca46c('0xb3d')](0x4,_0x107776[_0x5ca46c('0x577')])[_0x5ca46c('0x136')](',');}break;case _0x5ca46c('0x1b98'):{var _0x44e03c=_0x5de817[_0x5ca46c('0x262')][_0x5ca46c('0x23c2')]['split'](',');_0x5de817[_0x5ca46c('0x262')][_0x5ca46c('0x13b6')]=isNaN(_0x44e03c[0x0])?_0x44e03c[0x0]:parseInt(_0x44e03c[0x0],0xa),_0x5de817[_0x5ca46c('0x262')]['text']=_0x44e03c[_0x5ca46c('0xb3d')](0x1,_0x44e03c[_0x5ca46c('0x577')])[_0x5ca46c('0x136')](',');}break;case _0x5ca46c('0x1224'):_0x5de817['gotoif'][_0x5ca46c('0xc1e')]=_0x5de817[_0x5ca46c('0x262')][_0x5ca46c('0x23c2')];break;case'set':_0x5de817[_0x5ca46c('0x262')][_0x5ca46c('0x19fe')]=_0x5de817['gotoif'][_0x5ca46c('0x23c2')][_0x5ca46c('0x1af5')]('=')[0x0],_0x5de817['gotoif']['value']=_0x5de817[_0x5ca46c('0x262')][_0x5ca46c('0x23c2')][_0x5ca46c('0x1af5')]('=')[0x1];break;case _0x5ca46c('0x2356'):_0x5de817['gotoif']['project']=_0x5de817[_0x5ca46c('0x262')][_0x5ca46c('0x23c2')];break;default:{var _0x59c145=_0x5de817[_0x5ca46c('0x262')]['appdata']['split'](',');_0x5de817[_0x5ca46c('0x262')][_0x5ca46c('0x271c')]=_0x86640f()[_0x5ca46c('0x23aa')](_0x59c145[0x0])?_0x59c145[0x0]:isNaN(_0x59c145[0x0])?_0x59c145[0x0]:parseInt(_0x59c145[0x0],0xa),_0x5de817[_0x5ca46c('0x262')][_0x5ca46c('0x1a25')]=_0x86640f()[_0x5ca46c('0x23aa')](_0x59c145[0x1])?_0x59c145[0x1]:isNaN(_0x59c145[0x1])?_0x59c145[0x1]:parseInt(_0x59c145[0x1],0xa),_0x5de817[_0x5ca46c('0x262')][_0x5ca46c('0xe4c')]=_0x86640f()['isEmpty'](_0x59c145[0x2])?_0x59c145[0x2]:isNaN(_0x59c145[0x2])?_0x59c145[0x2]:parseInt(_0x59c145[0x2],0xa);}break;}else{}_0x5de817['gotoif'][_0x5ca46c('0x7fa')]&&_0x5de817['gotoif'][_0x5ca46c('0x7fa')][_0x5ca46c('0xac2')]()==='outbound'&&_0x5de817[_0x5ca46c('0x262')][_0x5ca46c('0x522')][_0x5ca46c('0xac2')]()===_0x5ca46c('0x2363')&&(_0x5de817[_0x5ca46c('0x262')][_0x5ca46c('0x1995')]=_0x5de817[_0x5ca46c('0x262')][_0x5ca46c('0x159e')]?_0x5de817['gotoif'][_0x5ca46c('0x159e')][_0x5ca46c('0x1af5')]('$')[0x0]:undefined,_0x5de817['gotoif']['callerId']=_0x5de817[_0x5ca46c('0x262')][_0x5ca46c('0x1f5a')]?_0x5ca46c('0x587')+_0x5de817[_0x5ca46c('0x262')]['callerID']:undefined);_0x5de817['saveMailAccountApp']=_0xb1c25,_0x5de817[_0x5ca46c('0x167')]=_0x5f3962;function _0xb1c25(){var _0x4cd1fc=_0x5ca46c;_0x5de817[_0x4cd1fc('0x1a69')]=[];var _0x1717ea=[];_0x5de817[_0x4cd1fc('0x262')]['type']&&_0x5de817[_0x4cd1fc('0x262')][_0x4cd1fc('0x7fa')][_0x4cd1fc('0xac2')]()===_0x4cd1fc('0x2300')&&_0x5de817[_0x4cd1fc('0x262')][_0x4cd1fc('0x522')]===_0x4cd1fc('0x4ea')&&(_0x5de817['gotoif'][_0x4cd1fc('0x159e')]=_0x450258[_0x4cd1fc('0x988')]?(_0x5de817[_0x4cd1fc('0x262')][_0x4cd1fc('0x1995')]||'')+'${EXTEN:'+_0x450258[_0x4cd1fc('0x988')]+'}':(_0x5de817[_0x4cd1fc('0x262')]['prefix']||'')+_0x4cd1fc('0x2560'),_0x450258['recordingFormat']!==_0x4cd1fc('0x983')?_0x5de817[_0x4cd1fc('0x262')][_0x4cd1fc('0x26a0')][_0x4cd1fc('0x2004')](_0x4cd1fc('0x478'))<0x0&&(_0x5de817[_0x4cd1fc('0x262')][_0x4cd1fc('0x26a0')]+=_0x4cd1fc('0x478')):_0x5de817[_0x4cd1fc('0x262')][_0x4cd1fc('0x26a0')]=_0x5de817[_0x4cd1fc('0x262')]['options'][_0x4cd1fc('0x16e4')]('U(xcally-mixmonitor-context)',''));if(_0x5de817[_0x4cd1fc('0x262')][_0x4cd1fc('0x522')]&&_0x5de817[_0x4cd1fc('0x262')][_0x4cd1fc('0x522')]===_0x4cd1fc('0xf50')){}else switch((_0x5de817[_0x4cd1fc('0x262')][_0x4cd1fc('0x1f94')]||_0x5de817['gotoif'][_0x4cd1fc('0x522')])[_0x4cd1fc('0xac2')]()){case'set':_0x5de817[_0x4cd1fc('0x262')][_0x4cd1fc('0x23c2')]=_0x5de817['gotoif'][_0x4cd1fc('0x19fe')]+'='+_0x5de817[_0x4cd1fc('0x262')][_0x4cd1fc('0x2228')];break;case'custom':break;default:_0x1717ea[0x0]=_0x5de817[_0x4cd1fc('0x262')][_0x4cd1fc('0x271c')],_0x1717ea[0x1]=_0x5de817[_0x4cd1fc('0x262')][_0x4cd1fc('0x1a25')],_0x1717ea[0x2]=_0x5de817[_0x4cd1fc('0x262')]['falsepriority'],_0x5de817[_0x4cd1fc('0x262')][_0x4cd1fc('0x23c2')]=_0x1717ea['join'](',');}_0x5f3962(_0x5de817[_0x4cd1fc('0x262')]);}function _0x5f3962(_0xacbe2){var _0x41a521=_0x5ca46c;_0x1aeb00[_0x41a521('0x1c24')](_0xacbe2);}}const _0x3e6427=_0x3dc774;_0x32b418[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x162d'),_0x3877e3('0x66'),'api',_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x32b418(_0xc15603,_0x11b610,_0xf11e43,_0x28bf28,_0x4cdb7b,_0x27104b,_0x55baf1,_0x52fb37){var _0x77e13b=_0x3877e3,_0x5e8ad1=this;_0x5e8ad1[_0x77e13b('0x123f')]=_0x55baf1[_0x77e13b('0x15ed')](),_0x5e8ad1['errors']=[],_0x5e8ad1[_0x77e13b('0x4b4')]=_0x77e13b('0x14d7')+(_0x28bf28[_0x77e13b('0x522')]||_0x28bf28[_0x77e13b('0x1f94')])[_0x77e13b('0x2e8')](),_0x5e8ad1['gotop']=angular[_0x77e13b('0xd75')](_0x28bf28),_0x5e8ad1['crudPermissions']=_0x52fb37,_0x5e8ad1[_0x77e13b('0x126a')]={};if(_0x5e8ad1['gotop'][_0x77e13b('0x23c2')])switch(_0x5e8ad1['gotop'][_0x77e13b('0x522')]?_0x5e8ad1[_0x77e13b('0x23ef')][_0x77e13b('0x522')][_0x77e13b('0xac2')]():_0x5e8ad1[_0x77e13b('0x23ef')][_0x77e13b('0x1f94')][_0x77e13b('0xac2')]()){case'custom':break;case _0x77e13b('0xc72'):{var _0xf543d7=_0x5e8ad1['gotop'][_0x77e13b('0x23c2')][_0x77e13b('0x1af5')](',');_0x5e8ad1['gotop'][_0x77e13b('0xddb')]=_0xf543d7[0x0],_0x5e8ad1['gotop']['language']=_0xf543d7[0x1],_0x5e8ad1['gotop']['welcomemessage']=_0xf543d7[_0x77e13b('0xb3d')](0x2,_0xf543d7[_0x77e13b('0x577')])[_0x77e13b('0x136')](',');}break;case _0x77e13b('0x1c22'):{var _0x12e430=_0x5e8ad1['gotop'][_0x77e13b('0x23c2')][_0x77e13b('0x1af5')](',');_0x5e8ad1[_0x77e13b('0x23ef')][_0x77e13b('0x21c6')]=_0x12e430[0x0],_0x5e8ad1['gotop'][_0x77e13b('0x797')]=_0x12e430[0x1],_0x5e8ad1['gotop'][_0x77e13b('0x20a3')]=_0x12e430[0x2],_0x5e8ad1[_0x77e13b('0x23ef')][_0x77e13b('0x15fe')]=_0x12e430[0x3],_0x5e8ad1['gotop'][_0x77e13b('0x1cce')]=_0x12e430[_0x77e13b('0xb3d')](0x4,_0x12e430[_0x77e13b('0x577')])['join'](',');}break;case _0x77e13b('0x1b98'):{var _0x5a2f16=_0x5e8ad1[_0x77e13b('0x23ef')][_0x77e13b('0x23c2')]['split'](',');_0x5e8ad1[_0x77e13b('0x23ef')]['times']=isNaN(_0x5a2f16[0x0])?_0x5a2f16[0x0]:parseInt(_0x5a2f16[0x0],0xa),_0x5e8ad1['gotop'][_0x77e13b('0xc1e')]=_0x5a2f16[_0x77e13b('0xb3d')](0x1,_0x5a2f16[_0x77e13b('0x577')])[_0x77e13b('0x136')](',');}break;case _0x77e13b('0x1224'):_0x5e8ad1[_0x77e13b('0x23ef')][_0x77e13b('0xc1e')]=_0x5e8ad1[_0x77e13b('0x23ef')][_0x77e13b('0x23c2')];break;case _0x77e13b('0x1125'):_0x5e8ad1['gotop'][_0x77e13b('0x19fe')]=_0x5e8ad1[_0x77e13b('0x23ef')][_0x77e13b('0x23c2')][_0x77e13b('0x1af5')]('=')[0x0],_0x5e8ad1['gotop'][_0x77e13b('0x2228')]=_0x5e8ad1[_0x77e13b('0x23ef')]['appdata']['split']('=')[0x1];break;case _0x77e13b('0x2356'):_0x5e8ad1[_0x77e13b('0x23ef')][_0x77e13b('0xbf8')]=_0x5e8ad1[_0x77e13b('0x23ef')]['appdata'];break;default:{var _0x306402=_0x5e8ad1[_0x77e13b('0x23ef')][_0x77e13b('0x23c2')][_0x77e13b('0x1af5')](',');_0x5e8ad1[_0x77e13b('0x23ef')][_0x77e13b('0xbe5')]=_0x86640f()[_0x77e13b('0x23aa')](_0x306402[0x0])?_0x306402[0x0]:isNaN(_0x306402[0x0])?_0x306402[0x0]:parseInt(_0x306402[0x0],0xa);}break;}else{}_0x5e8ad1[_0x77e13b('0x23ef')][_0x77e13b('0x7fa')]&&_0x5e8ad1[_0x77e13b('0x23ef')]['type'][_0x77e13b('0xac2')]()==='outbound'&&_0x5e8ad1[_0x77e13b('0x23ef')][_0x77e13b('0x522')][_0x77e13b('0xac2')]()===_0x77e13b('0x2363')&&(_0x5e8ad1[_0x77e13b('0x23ef')]['prefix']=_0x5e8ad1[_0x77e13b('0x23ef')]['phone']?_0x5e8ad1[_0x77e13b('0x23ef')][_0x77e13b('0x159e')][_0x77e13b('0x1af5')]('$')[0x0]:undefined,_0x5e8ad1[_0x77e13b('0x23ef')][_0x77e13b('0x26f7')]=_0x5e8ad1[_0x77e13b('0x23ef')][_0x77e13b('0x1f5a')]?_0x77e13b('0x587')+_0x5e8ad1[_0x77e13b('0x23ef')][_0x77e13b('0x1f5a')]:undefined);_0x5e8ad1[_0x77e13b('0x1d38')]=_0x1d4420,_0x5e8ad1[_0x77e13b('0x167')]=_0x30aa03;function _0x1d4420(){var _0x38542e=_0x77e13b;_0x5e8ad1[_0x38542e('0x1a69')]=[];var _0x13ab27=[];_0x5e8ad1[_0x38542e('0x23ef')][_0x38542e('0x7fa')]&&_0x5e8ad1[_0x38542e('0x23ef')][_0x38542e('0x7fa')][_0x38542e('0xac2')]()===_0x38542e('0x2300')&&_0x5e8ad1[_0x38542e('0x23ef')][_0x38542e('0x522')]===_0x38542e('0x4ea')&&(_0x5e8ad1[_0x38542e('0x23ef')][_0x38542e('0x159e')]=_0x4cdb7b['cutdigits']?(_0x5e8ad1[_0x38542e('0x23ef')][_0x38542e('0x1995')]||'')+_0x38542e('0x349')+_0x4cdb7b[_0x38542e('0x988')]+'}':(_0x5e8ad1['gotop'][_0x38542e('0x1995')]||'')+'${EXTEN}',_0x4cdb7b[_0x38542e('0xad1')]!==_0x38542e('0x983')?_0x5e8ad1[_0x38542e('0x23ef')]['options']['indexOf'](_0x38542e('0x478'))<0x0&&(_0x5e8ad1[_0x38542e('0x23ef')][_0x38542e('0x26a0')]+='U(xcally-mixmonitor-context)'):_0x5e8ad1[_0x38542e('0x23ef')][_0x38542e('0x26a0')]=_0x5e8ad1['gotop']['options'][_0x38542e('0x16e4')](_0x38542e('0x478'),''));if(_0x5e8ad1[_0x38542e('0x23ef')]['appType']&&_0x5e8ad1[_0x38542e('0x23ef')][_0x38542e('0x522')]==='custom'){}else switch((_0x5e8ad1[_0x38542e('0x23ef')][_0x38542e('0x1f94')]||_0x5e8ad1[_0x38542e('0x23ef')][_0x38542e('0x522')])[_0x38542e('0xac2')]()){case _0x38542e('0x1125'):_0x5e8ad1[_0x38542e('0x23ef')][_0x38542e('0x23c2')]=_0x5e8ad1[_0x38542e('0x23ef')]['name']+'='+_0x5e8ad1[_0x38542e('0x23ef')]['value'];break;case _0x38542e('0xf50'):break;default:_0x13ab27[0x0]=_0x5e8ad1['gotop'][_0x38542e('0xbe5')],_0x5e8ad1[_0x38542e('0x23ef')]['appdata']=_0x13ab27[_0x38542e('0x136')](',');}_0x30aa03(_0x5e8ad1[_0x38542e('0x23ef')]);}function _0x30aa03(_0x53947c){var _0x29c35f=_0x77e13b;_0xc15603[_0x29c35f('0x1c24')](_0x53947c);}}const _0x4c80e1=_0x32b418;_0x446d4b['$inject']=[_0x3877e3('0xa9f'),_0x3877e3('0x1850'),_0x3877e3('0x21be'),_0x3877e3('0x2086'),_0x3877e3('0xa07'),'intervals',_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'crudPermissions'];function _0x446d4b(_0x11b0d9,_0x130837,_0x1bc88e,_0x1e5b4f,_0x1d4e3b,_0x53b345,_0x1da3fa,_0x55ce30,_0x1e5667,_0x205af4){var _0x5151ac=_0x3877e3,_0xa7346e=this;_0xa7346e[_0x5151ac('0x123f')]=_0x1e5667['getCurrentUser'](),_0xa7346e['errors']=[],_0xa7346e[_0x5151ac('0x4b4')]='TOOLS.EDIT_INTERVAL',_0xa7346e[_0x5151ac('0xa07')]=angular[_0x5151ac('0xd75')](_0x1d4e3b),_0xa7346e[_0x5151ac('0x2530')]=_0x53b345,_0xa7346e['newInterval']=![],_0xa7346e[_0x5151ac('0x4ca')]=[_0x5151ac('0x869'),_0x5151ac('0xf50'),_0x5151ac('0x17fe')],_0xa7346e[_0x5151ac('0x5ed')]=_0x205af4,_0xa7346e[_0x5151ac('0x45e')]=_0x1e5b4f[_0x5151ac('0x1d74')](),_0xa7346e['monthNumber']=_0x1e5b4f[_0x5151ac('0x439')](),_0xa7346e[_0x5151ac('0x1f1e')]=_0x1e5b4f[_0x5151ac('0x1f1f')](),_0xa7346e['daysOfMonth']=_0x1e5b4f['getDaysOfMonth']();if(!_0xa7346e[_0x5151ac('0xa07')])_0xa7346e['interval']={'interval':_0x5151ac('0x1cc4')},_0xa7346e['type']='always',_0xa7346e[_0x5151ac('0x4b4')]=_0x5151ac('0xe33'),_0xa7346e[_0x5151ac('0x1c3e')]=!![];else{if(_0xa7346e['interval'][_0x5151ac('0xa07')]!==_0x5151ac('0x1cc4')){_0xa7346e[_0x5151ac('0x7fa')]=_0x5151ac('0xf50');var _0x441126=_0xa7346e['interval'][_0x5151ac('0xa07')]['split'](','),_0x5bcb0e=_0x441126[0x0],_0x1b49fa=_0x441126[0x1],_0x668ca3=_0x441126[0x2],_0x27137e=_0x441126[0x3];if(_0x5bcb0e!=='*'){var _0x3f87cc=_0x5bcb0e[_0x5151ac('0x1af5')]('-')[0x0],_0x1bb41f=_0x5bcb0e['split']('-')[0x1],_0x10796f;_0x10796f=new Date(),_0x10796f[_0x5151ac('0xb0f')](Number(_0x3f87cc[_0x5151ac('0x1af5')](':')[0x0])),_0x10796f[_0x5151ac('0x119c')](Number(_0x3f87cc[_0x5151ac('0x1af5')](':')[0x1])),_0xa7346e['timeRangeFrom']=_0x10796f,_0x10796f=new Date(),_0x10796f['setHours'](Number(_0x1bb41f[_0x5151ac('0x1af5')](':')[0x0])),_0x10796f[_0x5151ac('0x119c')](Number(_0x1bb41f[_0x5151ac('0x1af5')](':')[0x1])),_0xa7346e[_0x5151ac('0x1fbc')]=_0x10796f;}_0x1b49fa!=='*'&&(_0xa7346e[_0x5151ac('0x21a5')]=_0x1b49fa[_0x5151ac('0x1af5')]('-')[0x0],_0xa7346e['dayOfWeekTo']=_0x1b49fa[_0x5151ac('0x1af5')]('-')[0x1]),_0x668ca3!=='*'&&(_0xa7346e[_0x5151ac('0x14ec')]=_0x668ca3[_0x5151ac('0x1af5')]('-')[0x0],_0xa7346e[_0x5151ac('0x3bf')]=_0x668ca3[_0x5151ac('0x1af5')]('-')[0x1]),_0x27137e!=='*'&&(_0xa7346e[_0x5151ac('0xded')]=_0x27137e['split']('-')[0x0],_0xa7346e[_0x5151ac('0x2633')]=_0x27137e[_0x5151ac('0x1af5')]('-')[0x1]);}else _0xa7346e['type']=_0x5151ac('0x869');}_0x11b0d9['params']['id']&&!_0xa7346e[_0x5151ac('0xa07')][_0x5151ac('0xd7f')]&&(_0xa7346e[_0x5151ac('0xa07')][_0x5151ac('0x1ac8')]=_0x11b0d9[_0x5151ac('0x171b')]['id']);_0xa7346e[_0x5151ac('0xa07')][_0x5151ac('0x1ac8')]&&_0xa7346e[_0x5151ac('0xa07')][_0x5151ac('0xd7f')]&&(_0xa7346e['type']='list');_0xa7346e[_0x5151ac('0x2bb')]=_0x32f0b2,_0xa7346e[_0x5151ac('0xc2e')]=_0x342e28,_0xa7346e[_0x5151ac('0x167')]=_0x54c553;_0xa7346e['interval'][_0x5151ac('0xd7f')]&&(_0x1e5667['hasRole'](_0x5151ac('0x1bd8'))?_0x55ce30['interval'][_0x5151ac('0x595')]({'fields':_0x5151ac('0xaaf'),'IntervalId':'null','nolimit':!![]})[_0x5151ac('0x1376')]['then'](function(_0x831f28){var _0x4c8b85=_0x5151ac;_0xa7346e[_0x4c8b85('0x2530')]=_0x831f28[_0x4c8b85('0x1b33')]||[];})['catch'](function(_0x46bf12){var _0x541075=_0x5151ac;_0x1da3fa[_0x541075('0x2092')]({'title':_0x46bf12['status']?_0x541075('0x22d')+_0x46bf12['status']+_0x541075('0xa99')+_0x46bf12[_0x541075('0x1808')]:_0x541075('0xdc5'),'msg':_0x46bf12['data']?JSON[_0x541075('0x25e')](_0x46bf12[_0x541075('0x11c2')]):_0x46bf12[_0x541075('0x174f')]()});}):_0x55ce30[_0x5151ac('0xa07')][_0x5151ac('0x595')]({'fields':_0x5151ac('0xaaf'),'IntervalId':_0x5151ac('0x27a'),'nolimit':!![]})[_0x5151ac('0x1376')]['then'](function(_0x1a93e4){var _0x43fb47=_0x5151ac;_0xa7346e[_0x43fb47('0x2530')]=_0x1a93e4[_0x43fb47('0x1b33')]||[];})['then'](function(){var _0x59c8e8=_0x5151ac;return _0x55ce30[_0x59c8e8('0xab4')]['get']({'userProfileId':_0xa7346e[_0x59c8e8('0x123f')]['userProfileId'],'sectionId':0x3ec})[_0x59c8e8('0x1376')];})[_0x5151ac('0x21ad')](function(_0x47b8ad){var _0x4d434f=_0x5151ac,_0x18dde8=_0x47b8ad&&_0x47b8ad[_0x4d434f('0x1b33')]?_0x47b8ad[_0x4d434f('0x1b33')][0x0]:null;if(!_0x18dde8)_0xa7346e['intervals']=[];else{if(!_0x18dde8['autoAssociation'])return _0x55ce30['userProfileResource'][_0x4d434f('0x595')]({'sectionId':_0x18dde8['id']})[_0x4d434f('0x1376')][_0x4d434f('0x21ad')](function(_0x2468f1){var _0x28592e=_0x4d434f,_0x51a41f=_0x2468f1&&_0x2468f1[_0x28592e('0x1b33')]?_0x2468f1[_0x28592e('0x1b33')]:[],_0x472ea2=[],_0x4a6c69=null;_0xa7346e['interval']&&(_0x4a6c69=_0x86640f()[_0x28592e('0x1d2e')](_0xa7346e[_0x28592e('0x2530')],{'name':_0xa7346e[_0x28592e('0xa07')][_0x28592e('0x1ac8')]})),_0x4a6c69&&!_0x86640f()['some'](_0x51a41f,[_0x28592e('0x675'),_0x4a6c69['id']])&&_0xa7346e[_0x28592e('0x2530')][_0x28592e('0x1a52')](function(_0x6c368b){var _0x4840d8=_0x28592e;_0x6c368b['id']===_0x4a6c69['id']&&(_0x6c368b[_0x4840d8('0xba')]=![],_0x472ea2[_0x4840d8('0x206c')](_0x6c368b));}),_0xa7346e[_0x28592e('0x2530')]=_0x472ea2;});}})[_0x5151ac('0x1c1d')](function(_0x4167f3){var _0x325844=_0x5151ac;_0x1da3fa[_0x325844('0x2092')]({'title':_0x4167f3[_0x325844('0x209')]?'API:'+_0x4167f3[_0x325844('0x209')]+_0x325844('0xa99')+_0x4167f3[_0x325844('0x1808')]:_0x325844('0xdc5'),'msg':_0x4167f3[_0x325844('0x11c2')]?JSON['stringify'](_0x4167f3[_0x325844('0x11c2')]):_0x4167f3[_0x325844('0x174f')]()});}));function _0x318bf1(){var _0x361254=_0x5151ac;switch(_0xa7346e[_0x361254('0x7fa')]){case _0x361254('0x869'):case _0x361254('0x17fe'):return'*,*,*,*';case _0x361254('0xf50'):{var _0x4d84f4=[];if(_0xa7346e['timeRangeFrom']!=='*'&&_0xa7346e[_0x361254('0x3e8')]&&_0xa7346e[_0x361254('0x1fbc')]){var _0x330e4a=(_0xa7346e[_0x361254('0x3e8')][_0x361254('0x10c1')]()<0xa?'0':'')+_0xa7346e[_0x361254('0x3e8')][_0x361254('0x10c1')]()+':'+((_0xa7346e[_0x361254('0x3e8')]['getMinutes']()<0xa?'0':'')+_0xa7346e[_0x361254('0x3e8')][_0x361254('0x27ee')]()),_0xe86935=(_0xa7346e['timeRangeTo'][_0x361254('0x10c1')]()<0xa?'0':'')+_0xa7346e[_0x361254('0x1fbc')][_0x361254('0x10c1')]()+':'+((_0xa7346e['timeRangeTo'][_0x361254('0x27ee')]()<0xa?'0':'')+_0xa7346e[_0x361254('0x1fbc')][_0x361254('0x27ee')]());_0x4d84f4['push'](_0x330e4a+'-'+_0xe86935);}else _0x4d84f4['push']('*');return _0xa7346e[_0x361254('0x21a5')]?_0xa7346e[_0x361254('0x1556')]?_0x4d84f4[_0x361254('0x206c')](_0xa7346e[_0x361254('0x21a5')]+'-'+_0xa7346e[_0x361254('0x1556')]):_0x4d84f4[_0x361254('0x206c')](_0xa7346e[_0x361254('0x21a5')]):_0x4d84f4[_0x361254('0x206c')]('*'),_0xa7346e[_0x361254('0x14ec')]?_0xa7346e[_0x361254('0x3bf')]?_0x4d84f4[_0x361254('0x206c')](_0xa7346e[_0x361254('0x14ec')]+'-'+_0xa7346e[_0x361254('0x3bf')]):_0x4d84f4['push'](_0xa7346e[_0x361254('0x14ec')]):_0x4d84f4[_0x361254('0x206c')]('*'),_0xa7346e['monthFrom']?_0xa7346e['monthTo']?_0x4d84f4[_0x361254('0x206c')](_0xa7346e[_0x361254('0xded')]+'-'+_0xa7346e[_0x361254('0x2633')]):_0x4d84f4[_0x361254('0x206c')](_0xa7346e['monthFrom']):_0x4d84f4[_0x361254('0x206c')]('*'),_0x4d84f4['join']();}}}function _0x32f0b2(){var _0x59af3a=_0x5151ac;_0xa7346e[_0x59af3a('0x1a69')]=[],_0xa7346e[_0x59af3a('0xa07')][_0x59af3a('0xa07')]=_0x318bf1(),_0x55ce30['interval']['save'](_0xa7346e[_0x59af3a('0xa07')])[_0x59af3a('0x1376')]['then'](function(_0x5a6e88){var _0x52dc50=_0x59af3a;_0xa7346e[_0x52dc50('0x2530')][_0x52dc50('0x206c')](_0x5a6e88),_0x1da3fa[_0x52dc50('0xdb1')]({'title':_0x52dc50('0x1ecc'),'msg':_0xa7346e['interval'][_0x52dc50('0x19fe')]?_0xa7346e[_0x52dc50('0xa07')][_0x52dc50('0x19fe')]+_0x52dc50('0x1694'):''}),_0x54c553();})[_0x59af3a('0x1c1d')](function(_0x3c6a83){var _0xb68c0e=_0x59af3a;console[_0xb68c0e('0x2092')](_0x3c6a83),_0xa7346e['errors']=_0x3c6a83[_0xb68c0e('0x11c2')][_0xb68c0e('0x1a69')]||[{'message':_0x3c6a83[_0xb68c0e('0x174f')](),'type':_0xb68c0e('0x27de')}];});}function _0x342e28(){var _0x560e3b=_0x5151ac;_0xa7346e['errors']=[],_0xa7346e[_0x560e3b('0xa07')][_0x560e3b('0xa07')]=_0x318bf1(),_0xa7346e[_0x560e3b('0xa07')]['application']?(_0xa7346e[_0x560e3b('0x7fa')]!==_0x560e3b('0x17fe')&&(_0xa7346e[_0x560e3b('0xa07')][_0x560e3b('0x1ac8')]=null),_0x54c553(_0xa7346e[_0x560e3b('0xa07')])):_0x55ce30['interval'][_0x560e3b('0x5ef')]({'id':_0xa7346e['interval']['id']},_0xa7346e[_0x560e3b('0xa07')])[_0x560e3b('0x1376')][_0x560e3b('0x21ad')](function(_0x9b782c){var _0x50185a=_0x560e3b,_0x573574=_0x86640f()[_0x50185a('0x1d2e')](_0xa7346e[_0x50185a('0x2530')],{'id':_0x9b782c['id']});_0x573574&&_0x86640f()['merge'](_0x573574,_0x9b782c),_0x1da3fa[_0x50185a('0xdb1')]({'title':_0x50185a('0x234'),'msg':_0x50185a('0x285a')}),_0x54c553();})[_0x560e3b('0x1c1d')](function(_0x28edbe){var _0x514eaa=_0x560e3b;console['error'](_0x28edbe),_0xa7346e['errors']=_0x28edbe['data'][_0x514eaa('0x1a69')]||[{'message':_0x28edbe[_0x514eaa('0x174f')](),'type':_0x514eaa('0x13fa')}];});}function _0x54c553(_0x78edd0){var _0x4fa6b7=_0x5151ac;_0x130837[_0x4fa6b7('0x1c24')](_0x78edd0);}}const _0x25177b=_0x446d4b;_0x2732fe['$inject']=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),'mailAccountApp',_0x3877e3('0x66'),_0x3877e3('0xccd'),'Auth',_0x3877e3('0x5ed')];function _0x2732fe(_0x13cdac,_0x40207e,_0x5bba6e,_0x75974c,_0x3634cf,_0x1cb869,_0xa3cb08,_0x53c3e9){var _0x44b7f6=_0x3877e3,_0x514b92=this;_0x514b92['currentUser']=_0xa3cb08[_0x44b7f6('0x15ed')](),_0x514b92[_0x44b7f6('0x1a69')]=[],_0x514b92['title']='MAIL.EDIT_'+(_0x75974c[_0x44b7f6('0x522')]||_0x75974c[_0x44b7f6('0x1f94')])[_0x44b7f6('0x2e8')](),_0x514b92[_0x44b7f6('0x2101')]=angular[_0x44b7f6('0xd75')](_0x75974c),_0x514b92[_0x44b7f6('0x5ed')]=_0x53c3e9,_0x514b92[_0x44b7f6('0x126a')]={};if(_0x514b92[_0x44b7f6('0x2101')]['appdata'])switch(_0x514b92[_0x44b7f6('0x2101')][_0x44b7f6('0x522')]?_0x514b92[_0x44b7f6('0x2101')][_0x44b7f6('0x522')][_0x44b7f6('0xac2')]():_0x514b92[_0x44b7f6('0x2101')]['app'][_0x44b7f6('0xac2')]()){case _0x44b7f6('0xf50'):break;case _0x44b7f6('0xc72'):{var _0x3aecee=_0x514b92['noop']['appdata'][_0x44b7f6('0x1af5')](',');_0x514b92[_0x44b7f6('0x2101')][_0x44b7f6('0xddb')]=_0x3aecee[0x0],_0x514b92[_0x44b7f6('0x2101')]['language']=_0x3aecee[0x1],_0x514b92[_0x44b7f6('0x2101')]['welcomemessage']=_0x3aecee[_0x44b7f6('0xb3d')](0x2,_0x3aecee[_0x44b7f6('0x577')])[_0x44b7f6('0x136')](',');}break;case _0x44b7f6('0x1c22'):{var _0x51b89a=_0x514b92[_0x44b7f6('0x2101')]['appdata'][_0x44b7f6('0x1af5')](',');_0x514b92[_0x44b7f6('0x2101')][_0x44b7f6('0x21c6')]=_0x51b89a[0x0],_0x514b92[_0x44b7f6('0x2101')]['secretaccesskey']=_0x51b89a[0x1],_0x514b92['noop'][_0x44b7f6('0x20a3')]=_0x51b89a[0x2],_0x514b92[_0x44b7f6('0x2101')][_0x44b7f6('0x15fe')]=_0x51b89a[0x3],_0x514b92[_0x44b7f6('0x2101')][_0x44b7f6('0x1cce')]=_0x51b89a[_0x44b7f6('0xb3d')](0x4,_0x51b89a[_0x44b7f6('0x577')])[_0x44b7f6('0x136')](',');}break;case _0x44b7f6('0x1b98'):{var _0x4bd12a=_0x514b92[_0x44b7f6('0x2101')][_0x44b7f6('0x23c2')][_0x44b7f6('0x1af5')](',');_0x514b92[_0x44b7f6('0x2101')][_0x44b7f6('0x13b6')]=isNaN(_0x4bd12a[0x0])?_0x4bd12a[0x0]:parseInt(_0x4bd12a[0x0],0xa),_0x514b92['noop'][_0x44b7f6('0xc1e')]=_0x4bd12a[_0x44b7f6('0xb3d')](0x1,_0x4bd12a['length'])['join'](',');}break;case _0x44b7f6('0x1224'):_0x514b92[_0x44b7f6('0x2101')][_0x44b7f6('0xc1e')]=_0x514b92[_0x44b7f6('0x2101')][_0x44b7f6('0x23c2')];break;case _0x44b7f6('0x1125'):_0x514b92['noop']['name']=_0x514b92['noop'][_0x44b7f6('0x23c2')]['split']('=')[0x0],_0x514b92[_0x44b7f6('0x2101')][_0x44b7f6('0x2228')]=_0x514b92[_0x44b7f6('0x2101')]['appdata']['split']('=')[0x1];break;case _0x44b7f6('0x2356'):_0x514b92[_0x44b7f6('0x2101')]['project']=_0x514b92[_0x44b7f6('0x2101')][_0x44b7f6('0x23c2')];break;default:{var _0x2d9dc4=_0x514b92[_0x44b7f6('0x2101')][_0x44b7f6('0x23c2')][_0x44b7f6('0x1af5')](',');_0x514b92[_0x44b7f6('0x2101')][_0x44b7f6('0x2228')]=_0x86640f()[_0x44b7f6('0x23aa')](_0x2d9dc4[0x0])?_0x2d9dc4[0x0]:isNaN(_0x2d9dc4[0x0])?_0x2d9dc4[0x0]:parseInt(_0x2d9dc4[0x0],0xa);}break;}else{}_0x514b92[_0x44b7f6('0x2101')][_0x44b7f6('0x7fa')]&&_0x514b92[_0x44b7f6('0x2101')][_0x44b7f6('0x7fa')]['toLowerCase']()===_0x44b7f6('0x2300')&&_0x514b92[_0x44b7f6('0x2101')][_0x44b7f6('0x522')][_0x44b7f6('0xac2')]()===_0x44b7f6('0x2363')&&(_0x514b92['noop'][_0x44b7f6('0x1995')]=_0x514b92[_0x44b7f6('0x2101')][_0x44b7f6('0x159e')]?_0x514b92[_0x44b7f6('0x2101')][_0x44b7f6('0x159e')][_0x44b7f6('0x1af5')]('$')[0x0]:undefined,_0x514b92[_0x44b7f6('0x2101')][_0x44b7f6('0x26f7')]=_0x514b92[_0x44b7f6('0x2101')][_0x44b7f6('0x1f5a')]?_0x44b7f6('0x587')+_0x514b92['noop'][_0x44b7f6('0x1f5a')]:undefined);_0x514b92[_0x44b7f6('0x1d38')]=_0xafe9fc,_0x514b92[_0x44b7f6('0x167')]=_0x17e8c1;function _0xafe9fc(){var _0xa0ddaa=_0x44b7f6;_0x514b92[_0xa0ddaa('0x1a69')]=[];var _0x4031c6=[];_0x514b92[_0xa0ddaa('0x2101')][_0xa0ddaa('0x7fa')]&&_0x514b92[_0xa0ddaa('0x2101')][_0xa0ddaa('0x7fa')][_0xa0ddaa('0xac2')]()===_0xa0ddaa('0x2300')&&_0x514b92[_0xa0ddaa('0x2101')]['appType']===_0xa0ddaa('0x4ea')&&(_0x514b92[_0xa0ddaa('0x2101')][_0xa0ddaa('0x159e')]=_0x3634cf['cutdigits']?(_0x514b92[_0xa0ddaa('0x2101')][_0xa0ddaa('0x1995')]||'')+_0xa0ddaa('0x349')+_0x3634cf['cutdigits']+'}':(_0x514b92[_0xa0ddaa('0x2101')][_0xa0ddaa('0x1995')]||'')+_0xa0ddaa('0x2560'),_0x3634cf[_0xa0ddaa('0xad1')]!=='none'?_0x514b92[_0xa0ddaa('0x2101')][_0xa0ddaa('0x26a0')][_0xa0ddaa('0x2004')](_0xa0ddaa('0x478'))<0x0&&(_0x514b92[_0xa0ddaa('0x2101')][_0xa0ddaa('0x26a0')]+=_0xa0ddaa('0x478')):_0x514b92[_0xa0ddaa('0x2101')][_0xa0ddaa('0x26a0')]=_0x514b92[_0xa0ddaa('0x2101')][_0xa0ddaa('0x26a0')][_0xa0ddaa('0x16e4')](_0xa0ddaa('0x478'),''));if(_0x514b92[_0xa0ddaa('0x2101')][_0xa0ddaa('0x522')]&&_0x514b92[_0xa0ddaa('0x2101')][_0xa0ddaa('0x522')]===_0xa0ddaa('0xf50')){}else switch((_0x514b92[_0xa0ddaa('0x2101')][_0xa0ddaa('0x1f94')]||_0x514b92[_0xa0ddaa('0x2101')][_0xa0ddaa('0x522')])[_0xa0ddaa('0xac2')]()){case'set':_0x514b92[_0xa0ddaa('0x2101')][_0xa0ddaa('0x23c2')]=_0x514b92[_0xa0ddaa('0x2101')][_0xa0ddaa('0x19fe')]+'='+_0x514b92[_0xa0ddaa('0x2101')][_0xa0ddaa('0x2228')];break;case _0xa0ddaa('0xf50'):break;default:_0x4031c6[0x0]=_0x514b92[_0xa0ddaa('0x2101')][_0xa0ddaa('0x2228')],_0x514b92[_0xa0ddaa('0x2101')][_0xa0ddaa('0x23c2')]=_0x4031c6[_0xa0ddaa('0x136')](',');}_0x17e8c1(_0x514b92['noop']);}function _0x17e8c1(_0xac2acd){var _0x33753c=_0x44b7f6;_0x13cdac[_0x33753c('0x1c24')](_0xac2acd);}}const _0x39d859=_0x2732fe;_0x59ed26[_0x3877e3('0x1a81')]=['$mdDialog','$q',_0x3877e3('0x1908'),_0x3877e3('0x162d'),'mailAccount',_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x59ed26(_0x498c2f,_0x46900a,_0x15000d,_0x2d62bd,_0x4528cf,_0x581ee7,_0x3be4cb,_0x57ad59){var _0x15595b=_0x3877e3,_0x2de16b=this;_0x2de16b[_0x15595b('0x123f')]=_0x3be4cb[_0x15595b('0x15ed')](),_0x2de16b[_0x15595b('0x1a69')]=[],_0x2de16b[_0x15595b('0x4b4')]=_0x15595b('0x14d7')+(_0x2d62bd[_0x15595b('0x522')]||_0x2d62bd[_0x15595b('0x1f94')])['toUpperCase'](),_0x2de16b[_0x15595b('0xbdd')]=angular[_0x15595b('0xd75')](_0x2d62bd),_0x2de16b[_0x15595b('0x5ed')]=_0x57ad59,_0x2de16b[_0x15595b('0x126a')]={};if(_0x2de16b[_0x15595b('0xbdd')]['appdata'])switch(_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0x522')]?_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0x522')][_0x15595b('0xac2')]():_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0x1f94')][_0x15595b('0xac2')]()){case _0x15595b('0xf50'):break;case _0x15595b('0xc72'):{var _0x4005e4=_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0x23c2')][_0x15595b('0x1af5')](',');_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0xddb')]=_0x4005e4[0x0],_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0x10f')]=_0x4005e4[0x1],_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0x1cce')]=_0x4005e4[_0x15595b('0xb3d')](0x2,_0x4005e4[_0x15595b('0x577')])[_0x15595b('0x136')](',');}break;case _0x15595b('0x1c22'):{var _0x1092b2=_0x2de16b['queue']['appdata'][_0x15595b('0x1af5')](',');_0x2de16b['queue'][_0x15595b('0x21c6')]=_0x1092b2[0x0],_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0x797')]=_0x1092b2[0x1],_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0x20a3')]=_0x1092b2[0x2],_0x2de16b['queue'][_0x15595b('0x15fe')]=_0x1092b2[0x3],_0x2de16b[_0x15595b('0xbdd')]['welcomemessage']=_0x1092b2[_0x15595b('0xb3d')](0x4,_0x1092b2[_0x15595b('0x577')])[_0x15595b('0x136')](',');}break;case'autoreply':{var _0x24498d=_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0x23c2')][_0x15595b('0x1af5')](',');_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0x13b6')]=isNaN(_0x24498d[0x0])?_0x24498d[0x0]:parseInt(_0x24498d[0x0],0xa),_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0xc1e')]=_0x24498d['slice'](0x1,_0x24498d[_0x15595b('0x577')])['join'](',');}break;case _0x15595b('0x1224'):_0x2de16b[_0x15595b('0xbdd')]['text']=_0x2de16b[_0x15595b('0xbdd')]['appdata'];break;case _0x15595b('0x1125'):_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0x19fe')]=_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0x23c2')][_0x15595b('0x1af5')]('=')[0x0],_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0x2228')]=_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0x23c2')][_0x15595b('0x1af5')]('=')[0x1];break;case'agi':_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0xbf8')]=_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0x23c2')];break;default:{var _0x346918=_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0x23c2')]['split'](',');_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0xbdd')]=_0x86640f()['isEmpty'](_0x346918[0x0])?_0x346918[0x0]:isNaN(_0x346918[0x0])?_0x346918[0x0]:parseInt(_0x346918[0x0],0xa),_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0x2133')]=_0x86640f()[_0x15595b('0x23aa')](_0x346918[0x1])?_0x346918[0x1]:isNaN(_0x346918[0x1])?_0x346918[0x1]:parseInt(_0x346918[0x1],0xa);}break;}else _0x2de16b[_0x15595b('0xbdd')][_0x15595b('0xbdd')]=0x12c,_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0x2133')]=0x12c;_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0x7fa')]&&_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0x7fa')][_0x15595b('0xac2')]()===_0x15595b('0x2300')&&_0x2de16b[_0x15595b('0xbdd')]['appType'][_0x15595b('0xac2')]()===_0x15595b('0x2363')&&(_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0x1995')]=_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0x159e')]?_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0x159e')][_0x15595b('0x1af5')]('$')[0x0]:undefined,_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0x26f7')]=_0x2de16b['queue'][_0x15595b('0x1f5a')]?_0x15595b('0x587')+_0x2de16b[_0x15595b('0xbdd')][_0x15595b('0x1f5a')]:undefined);_0x2de16b[_0x15595b('0x1d38')]=_0x41f845,_0x2de16b[_0x15595b('0x167')]=_0x48daf6,_0x3be4cb['hasRole'](_0x15595b('0x1bd8'))?_0x581ee7[_0x15595b('0xb3')][_0x15595b('0x595')]({'fields':_0x15595b('0xfa'),'sort':_0x15595b('0x19fe'),'nolimit':_0x15595b('0x19bd')})[_0x15595b('0x1376')][_0x15595b('0x21ad')](function(_0x2e940f){var _0x19274d=_0x15595b;_0x2de16b[_0x19274d('0xb7a')]=_0x2e940f[_0x19274d('0x1b33')]||[];})[_0x15595b('0x1c1d')](function(_0x182037){var _0x1330ef=_0x15595b;_0x15000d['error']({'title':_0x182037[_0x1330ef('0x209')]?_0x1330ef('0x22d')+_0x182037[_0x1330ef('0x209')]+_0x1330ef('0xa99')+_0x182037['statusText']:_0x1330ef('0x1612'),'msg':_0x182037[_0x1330ef('0x11c2')]?JSON[_0x1330ef('0x25e')](_0x182037[_0x1330ef('0x11c2')]):_0x182037[_0x1330ef('0x174f')]()});}):_0x581ee7[_0x15595b('0xb3')][_0x15595b('0x595')]({'fields':'id,name,type','sort':_0x15595b('0x19fe'),'nolimit':_0x15595b('0x19bd')})['$promise'][_0x15595b('0x21ad')](function(_0x558fc8){var _0x592bbf=_0x15595b;_0x2de16b['queues']=_0x558fc8[_0x592bbf('0x1b33')]||[];})['then'](function(){var _0x136918=_0x15595b;return _0x581ee7[_0x136918('0xab4')][_0x136918('0x595')]({'userProfileId':_0x2de16b['currentUser']['userProfileId'],'sectionId':0x259})[_0x136918('0x1376')];})[_0x15595b('0x21ad')](function(_0x3fa734){var _0x5d0f2d=_0x15595b,_0xd5d440=_0x3fa734&&_0x3fa734[_0x5d0f2d('0x1b33')]?_0x3fa734[_0x5d0f2d('0x1b33')][0x0]:null;if(!_0xd5d440){var _0x4f8302=[],_0x33a9a0=null;_0x2de16b['queue']&&(_0x33a9a0=_0x86640f()[_0x5d0f2d('0x1d2e')](_0x2de16b[_0x5d0f2d('0xb7a')],{'name':_0x2de16b[_0x5d0f2d('0xbdd')]['queue']}));for(var _0x1d156c=0x0;_0x1d156c<_0x2de16b[_0x5d0f2d('0xb7a')]['length'];_0x1d156c++){_0x33a9a0&&_0x2de16b[_0x5d0f2d('0xb7a')][_0x1d156c]['id']===_0x33a9a0['id']&&(_0x2de16b[_0x5d0f2d('0xb7a')][_0x1d156c][_0x5d0f2d('0xba')]=![],_0x4f8302[_0x5d0f2d('0x206c')](_0x2de16b[_0x5d0f2d('0xb7a')][_0x1d156c]));}_0x2de16b['queues']=_0x4f8302;}else{if(!_0xd5d440[_0x5d0f2d('0x80c')])return _0x581ee7['userProfileResource'][_0x5d0f2d('0x595')]({'sectionId':_0xd5d440['id']})[_0x5d0f2d('0x1376')][_0x5d0f2d('0x21ad')](function(_0x302833){var _0x302d4f=_0x5d0f2d,_0xa72920=_0x86640f()['map'](_0x302833[_0x302d4f('0x1b33')],function(_0x261034){var _0x1992db=_0x302d4f;return _0x86640f()[_0x1992db('0x1d2e')](_0x2de16b[_0x1992db('0xb7a')],{'id':_0x261034['resourceId']});}),_0x2e2a1c=null;_0x2de16b[_0x302d4f('0xbdd')]&&(_0x2e2a1c=_0x86640f()[_0x302d4f('0x1d2e')](_0x2de16b[_0x302d4f('0xb7a')],{'name':_0x2de16b[_0x302d4f('0xbdd')][_0x302d4f('0xbdd')]}));if(_0x2e2a1c&&!_0x86640f()[_0x302d4f('0x2664')](_0xa72920,['id',_0x2e2a1c['id']])){var _0x2f9fb5=_0x86640f()[_0x302d4f('0x1d2e')](_0x2de16b['queues'],{'id':_0x2e2a1c['id']});_0x2f9fb5[_0x302d4f('0xba')]=![],_0xa72920[_0x302d4f('0x206c')](_0x2f9fb5);}_0x2de16b[_0x302d4f('0xb7a')]=_0xa72920;});}})['catch'](function(_0x340370){var _0x2849cd=_0x15595b;_0x15000d[_0x2849cd('0x2092')]({'title':_0x340370[_0x2849cd('0x209')]?_0x2849cd('0x22d')+_0x340370['status']+_0x2849cd('0xa99')+_0x340370['statusText']:'SYSTEM:GETqueues','msg':_0x340370[_0x2849cd('0x11c2')]?JSON['stringify'](_0x340370[_0x2849cd('0x11c2')]):_0x340370[_0x2849cd('0x174f')]()});});function _0x41f845(){var _0x6d1a83=_0x15595b;_0x2de16b[_0x6d1a83('0x1a69')]=[];var _0x520502=[];_0x2de16b[_0x6d1a83('0xbdd')][_0x6d1a83('0x7fa')]&&_0x2de16b[_0x6d1a83('0xbdd')]['type']['toLowerCase']()===_0x6d1a83('0x2300')&&_0x2de16b[_0x6d1a83('0xbdd')][_0x6d1a83('0x522')]===_0x6d1a83('0x4ea')&&(_0x2de16b[_0x6d1a83('0xbdd')][_0x6d1a83('0x159e')]=_0x4528cf[_0x6d1a83('0x988')]?(_0x2de16b['queue'][_0x6d1a83('0x1995')]||'')+_0x6d1a83('0x349')+_0x4528cf[_0x6d1a83('0x988')]+'}':(_0x2de16b[_0x6d1a83('0xbdd')]['prefix']||'')+_0x6d1a83('0x2560'),_0x4528cf['recordingFormat']!=='none'?_0x2de16b[_0x6d1a83('0xbdd')][_0x6d1a83('0x26a0')][_0x6d1a83('0x2004')](_0x6d1a83('0x478'))<0x0&&(_0x2de16b[_0x6d1a83('0xbdd')][_0x6d1a83('0x26a0')]+='U(xcally-mixmonitor-context)'):_0x2de16b[_0x6d1a83('0xbdd')]['options']=_0x2de16b[_0x6d1a83('0xbdd')][_0x6d1a83('0x26a0')][_0x6d1a83('0x16e4')](_0x6d1a83('0x478'),''));var _0x6f9b83=_0x86640f()[_0x6d1a83('0x1d2e')](_0x2de16b[_0x6d1a83('0xb7a')],{'name':_0x2de16b[_0x6d1a83('0xbdd')][_0x6d1a83('0xbdd')]});_0x6f9b83&&(_0x2de16b[_0x6d1a83('0xbdd')][_0x86640f()[_0x6d1a83('0x1b7e')](_0x6d1a83('0x1c8b'))+_0x6d1a83('0x25ba')]=_0x6f9b83['id']);if(_0x2de16b[_0x6d1a83('0xbdd')][_0x6d1a83('0x522')]&&_0x2de16b[_0x6d1a83('0xbdd')]['appType']===_0x6d1a83('0xf50')){}else switch((_0x2de16b[_0x6d1a83('0xbdd')]['app']||_0x2de16b[_0x6d1a83('0xbdd')][_0x6d1a83('0x522')])['toLowerCase']()){case _0x6d1a83('0x1125'):_0x2de16b[_0x6d1a83('0xbdd')][_0x6d1a83('0x23c2')]=_0x2de16b[_0x6d1a83('0xbdd')][_0x6d1a83('0x19fe')]+'='+_0x2de16b[_0x6d1a83('0xbdd')][_0x6d1a83('0x2228')];break;case _0x6d1a83('0xf50'):break;default:_0x520502[0x0]=_0x2de16b['queue'][_0x6d1a83('0xbdd')],_0x520502[0x1]=_0x2de16b['queue'][_0x6d1a83('0x2133')],_0x2de16b[_0x6d1a83('0xbdd')][_0x6d1a83('0x23c2')]=_0x520502[_0x6d1a83('0x136')](',');}_0x48daf6(_0x2de16b['queue']);}function _0x48daf6(_0x8864c5){var _0x48e610=_0x15595b;_0x498c2f[_0x48e610('0x1c24')](_0x8864c5);}}const _0x5952ea=_0x59ed26;_0x1f6152[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x162d'),_0x3877e3('0x66'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x1f6152(_0x33afb7,_0xd95d33,_0xd9f663,_0x1ca8a9,_0x58bec3,_0xaa0b47,_0x4e6c39,_0x26b53a){var _0x20005c=_0x3877e3,_0x5127a1=this;_0x5127a1[_0x20005c('0x123f')]=_0x4e6c39[_0x20005c('0x15ed')](),_0x5127a1[_0x20005c('0x1a69')]=[],_0x5127a1[_0x20005c('0x4b4')]=_0x20005c('0x14d7')+(_0x1ca8a9['appType']||_0x1ca8a9[_0x20005c('0x1f94')])[_0x20005c('0x2e8')](),_0x5127a1['system']=angular[_0x20005c('0xd75')](_0x1ca8a9),_0x5127a1[_0x20005c('0x5ed')]=_0x26b53a,_0x5127a1[_0x20005c('0x126a')]={};if(_0x5127a1['system'][_0x20005c('0x23c2')])switch(_0x5127a1[_0x20005c('0x12b1')]['appType']?_0x5127a1[_0x20005c('0x12b1')][_0x20005c('0x522')]['toLowerCase']():_0x5127a1[_0x20005c('0x12b1')][_0x20005c('0x1f94')][_0x20005c('0xac2')]()){case'custom':break;case'dialogflow':{var _0x1dbab8=_0x5127a1[_0x20005c('0x12b1')][_0x20005c('0x23c2')][_0x20005c('0x1af5')](',');_0x5127a1[_0x20005c('0x12b1')]['key']=_0x1dbab8[0x0],_0x5127a1[_0x20005c('0x12b1')][_0x20005c('0x10f')]=_0x1dbab8[0x1],_0x5127a1[_0x20005c('0x12b1')][_0x20005c('0x1cce')]=_0x1dbab8['slice'](0x2,_0x1dbab8[_0x20005c('0x577')])[_0x20005c('0x136')](',');}break;case _0x20005c('0x1c22'):{var _0x3d0246=_0x5127a1[_0x20005c('0x12b1')]['appdata'][_0x20005c('0x1af5')](',');_0x5127a1[_0x20005c('0x12b1')]['accesskeyid']=_0x3d0246[0x0],_0x5127a1['system'][_0x20005c('0x797')]=_0x3d0246[0x1],_0x5127a1['system'][_0x20005c('0x20a3')]=_0x3d0246[0x2],_0x5127a1[_0x20005c('0x12b1')][_0x20005c('0x15fe')]=_0x3d0246[0x3],_0x5127a1[_0x20005c('0x12b1')]['welcomemessage']=_0x3d0246['slice'](0x4,_0x3d0246['length'])['join'](',');}break;case _0x20005c('0x1b98'):{var _0x5411b4=_0x5127a1[_0x20005c('0x12b1')]['appdata'][_0x20005c('0x1af5')](',');_0x5127a1[_0x20005c('0x12b1')][_0x20005c('0x13b6')]=isNaN(_0x5411b4[0x0])?_0x5411b4[0x0]:parseInt(_0x5411b4[0x0],0xa),_0x5127a1[_0x20005c('0x12b1')][_0x20005c('0xc1e')]=_0x5411b4['slice'](0x1,_0x5411b4[_0x20005c('0x577')])[_0x20005c('0x136')](',');}break;case'message':_0x5127a1[_0x20005c('0x12b1')][_0x20005c('0xc1e')]=_0x5127a1[_0x20005c('0x12b1')][_0x20005c('0x23c2')];break;case _0x20005c('0x1125'):_0x5127a1[_0x20005c('0x12b1')][_0x20005c('0x19fe')]=_0x5127a1[_0x20005c('0x12b1')][_0x20005c('0x23c2')]['split']('=')[0x0],_0x5127a1['system'][_0x20005c('0x2228')]=_0x5127a1[_0x20005c('0x12b1')][_0x20005c('0x23c2')][_0x20005c('0x1af5')]('=')[0x1];break;case _0x20005c('0x2356'):_0x5127a1[_0x20005c('0x12b1')][_0x20005c('0xbf8')]=_0x5127a1[_0x20005c('0x12b1')][_0x20005c('0x23c2')];break;default:{var _0x115b6b=_0x5127a1[_0x20005c('0x12b1')][_0x20005c('0x23c2')][_0x20005c('0x1af5')](',');_0x5127a1['system'][_0x20005c('0xbf3')]=_0x86640f()[_0x20005c('0x23aa')](_0x115b6b[0x0])?_0x115b6b[0x0]:isNaN(_0x115b6b[0x0])?_0x115b6b[0x0]:parseInt(_0x115b6b[0x0],0xa),_0x5127a1[_0x20005c('0x12b1')][_0x20005c('0x25bb')]=_0x86640f()[_0x20005c('0x23aa')](_0x115b6b[0x1])?_0x115b6b[0x1]:isNaN(_0x115b6b[0x1])?_0x115b6b[0x1]:parseInt(_0x115b6b[0x1],0xa);}break;}else _0x5127a1[_0x20005c('0x12b1')][_0x20005c('0x25bb')]='';_0x5127a1[_0x20005c('0x12b1')][_0x20005c('0x7fa')]&&_0x5127a1[_0x20005c('0x12b1')][_0x20005c('0x7fa')][_0x20005c('0xac2')]()===_0x20005c('0x2300')&&_0x5127a1[_0x20005c('0x12b1')][_0x20005c('0x522')][_0x20005c('0xac2')]()===_0x20005c('0x2363')&&(_0x5127a1['system'][_0x20005c('0x1995')]=_0x5127a1[_0x20005c('0x12b1')]['phone']?_0x5127a1['system']['phone'][_0x20005c('0x1af5')]('$')[0x0]:undefined,_0x5127a1[_0x20005c('0x12b1')]['callerId']=_0x5127a1[_0x20005c('0x12b1')]['callerID']?_0x20005c('0x587')+_0x5127a1[_0x20005c('0x12b1')][_0x20005c('0x1f5a')]:undefined);_0x5127a1[_0x20005c('0x1d38')]=_0x565269,_0x5127a1[_0x20005c('0x167')]=_0x5ea521,_0x4e6c39[_0x20005c('0x21de')](_0x20005c('0x1bd8'))?_0xaa0b47[_0x20005c('0x25bb')][_0x20005c('0x595')]({'fields':'id,name','sort':'name','nolimit':_0x20005c('0x19bd')})[_0x20005c('0x1376')][_0x20005c('0x21ad')](function(_0x1a6fba){_0x5127a1['variables']=_0x1a6fba['rows']||[];})[_0x20005c('0x1c1d')](function(_0x69e74c){var _0x276076=_0x20005c;_0xd9f663[_0x276076('0x2092')]({'title':_0x69e74c[_0x276076('0x209')]?_0x276076('0x22d')+_0x69e74c[_0x276076('0x209')]+_0x276076('0xa99')+_0x69e74c[_0x276076('0x1808')]:_0x276076('0xc0c'),'msg':_0x69e74c[_0x276076('0x11c2')]?JSON[_0x276076('0x25e')](_0x69e74c['data']):_0x69e74c['toString']()});}):_0xaa0b47[_0x20005c('0x25bb')][_0x20005c('0x595')]({'fields':_0x20005c('0x1aa8'),'sort':'name','nolimit':_0x20005c('0x19bd')})[_0x20005c('0x1376')][_0x20005c('0x21ad')](function(_0x660dda){var _0x47c363=_0x20005c;_0x5127a1[_0x47c363('0x142d')]=_0x660dda[_0x47c363('0x1b33')]||[];})[_0x20005c('0x21ad')](function(){var _0x3e5cb5=_0x20005c;return _0xaa0b47['userProfileSection'][_0x3e5cb5('0x595')]({'userProfileId':_0x5127a1[_0x3e5cb5('0x123f')]['userProfileId'],'sectionId':0x3f4})[_0x3e5cb5('0x1376')];})[_0x20005c('0x21ad')](function(_0x10e2c8){var _0x35805c=_0x20005c,_0x426ea8=_0x10e2c8&&_0x10e2c8[_0x35805c('0x1b33')]?_0x10e2c8[_0x35805c('0x1b33')][0x0]:null;if(!_0x426ea8){var _0x22e8f8=[],_0x471e03=null;_0x5127a1['system']&&(_0x471e03=_0x86640f()['find'](_0x5127a1[_0x35805c('0x142d')],{'name':_0x5127a1[_0x35805c('0x12b1')][_0x35805c('0x25bb')]}));for(var _0x2cee20=0x0;_0x2cee20<_0x5127a1[_0x35805c('0x142d')][_0x35805c('0x577')];_0x2cee20++){_0x471e03&&_0x5127a1[_0x35805c('0x142d')][_0x2cee20]['id']===_0x471e03['id']&&(_0x5127a1['variables'][_0x2cee20]['canSelect']=![],_0x22e8f8[_0x35805c('0x206c')](_0x5127a1['variables'][_0x2cee20]));}_0x5127a1[_0x35805c('0x142d')]=_0x22e8f8;}else{if(!_0x426ea8['autoAssociation'])return _0xaa0b47[_0x35805c('0x185e')][_0x35805c('0x595')]({'sectionId':_0x426ea8['id']})[_0x35805c('0x1376')]['then'](function(_0x10c740){var _0x108a59=_0x35805c,_0x333d18=_0x86640f()[_0x108a59('0x26c3')](_0x10c740[_0x108a59('0x1b33')],function(_0x5566c6){var _0x2966b6=_0x108a59;return _0x86640f()[_0x2966b6('0x1d2e')](_0x5127a1[_0x2966b6('0x142d')],{'id':_0x5566c6['resourceId']});}),_0x18439a=null;_0x5127a1[_0x108a59('0x12b1')]&&(_0x18439a=_0x86640f()[_0x108a59('0x1d2e')](_0x5127a1[_0x108a59('0x142d')],{'name':_0x5127a1[_0x108a59('0x12b1')][_0x108a59('0x25bb')]}));if(_0x18439a&&!_0x86640f()[_0x108a59('0x2664')](_0x333d18,['id',_0x18439a['id']])){var _0x4af39a=_0x86640f()['find'](_0x5127a1['variables'],{'id':_0x18439a['id']});_0x4af39a['canSelect']=![],_0x333d18[_0x108a59('0x206c')](_0x4af39a);}_0x5127a1[_0x108a59('0x142d')]=_0x333d18;});}})[_0x20005c('0x1c1d')](function(_0x1b0121){var _0x2655c7=_0x20005c;_0xd9f663[_0x2655c7('0x2092')]({'title':_0x1b0121[_0x2655c7('0x209')]?_0x2655c7('0x22d')+_0x1b0121['status']+_0x2655c7('0xa99')+_0x1b0121[_0x2655c7('0x1808')]:_0x2655c7('0x1a26'),'msg':_0x1b0121[_0x2655c7('0x11c2')]?JSON['stringify'](_0x1b0121['data']):_0x1b0121['toString']()});});function _0x565269(){var _0x7c72df=_0x20005c;_0x5127a1[_0x7c72df('0x1a69')]=[];var _0x3662c0=[];_0x5127a1['system']['type']&&_0x5127a1[_0x7c72df('0x12b1')][_0x7c72df('0x7fa')][_0x7c72df('0xac2')]()===_0x7c72df('0x2300')&&_0x5127a1[_0x7c72df('0x12b1')][_0x7c72df('0x522')]===_0x7c72df('0x4ea')&&(_0x5127a1[_0x7c72df('0x12b1')][_0x7c72df('0x159e')]=_0x58bec3[_0x7c72df('0x988')]?(_0x5127a1['system'][_0x7c72df('0x1995')]||'')+_0x7c72df('0x349')+_0x58bec3[_0x7c72df('0x988')]+'}':(_0x5127a1[_0x7c72df('0x12b1')][_0x7c72df('0x1995')]||'')+'${EXTEN}',_0x58bec3[_0x7c72df('0xad1')]!==_0x7c72df('0x983')?_0x5127a1[_0x7c72df('0x12b1')][_0x7c72df('0x26a0')][_0x7c72df('0x2004')](_0x7c72df('0x478'))<0x0&&(_0x5127a1[_0x7c72df('0x12b1')][_0x7c72df('0x26a0')]+='U(xcally-mixmonitor-context)'):_0x5127a1['system'][_0x7c72df('0x26a0')]=_0x5127a1[_0x7c72df('0x12b1')][_0x7c72df('0x26a0')][_0x7c72df('0x16e4')](_0x7c72df('0x478'),''));if(_0x5127a1['system'][_0x7c72df('0x522')]&&_0x5127a1[_0x7c72df('0x12b1')][_0x7c72df('0x522')]===_0x7c72df('0xf50')){}else switch((_0x5127a1['system'][_0x7c72df('0x1f94')]||_0x5127a1[_0x7c72df('0x12b1')][_0x7c72df('0x522')])[_0x7c72df('0xac2')]()){case'set':_0x5127a1['system'][_0x7c72df('0x23c2')]=_0x5127a1[_0x7c72df('0x12b1')][_0x7c72df('0x19fe')]+'='+_0x5127a1['system'][_0x7c72df('0x2228')];break;case _0x7c72df('0xf50'):break;default:_0x3662c0[0x0]=_0x5127a1[_0x7c72df('0x12b1')][_0x7c72df('0xbf3')],_0x3662c0[0x1]=_0x5127a1[_0x7c72df('0x12b1')][_0x7c72df('0x25bb')],_0x5127a1['system']['appdata']=_0x3662c0[_0x7c72df('0x136')](',');}_0x5ea521(_0x5127a1[_0x7c72df('0x12b1')]);}function _0x5ea521(_0x262c4b){var _0x497bbf=_0x20005c;_0x33afb7[_0x497bbf('0x1c24')](_0x262c4b);}}const _0x1dfbcf=_0x1f6152;_0x32dc1e['$inject']=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x162d'),_0x3877e3('0x66'),'api',_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x32dc1e(_0x197ace,_0x19b1e4,_0x5d9ea0,_0x2af151,_0x3d1651,_0x28a286,_0x52ce32,_0x996d31){var _0x2d048d=_0x3877e3,_0x3321df=this;_0x3321df[_0x2d048d('0x123f')]=_0x52ce32[_0x2d048d('0x15ed')](),_0x3321df[_0x2d048d('0x1a69')]=[],_0x3321df['title']=_0x2d048d('0x14d7')+(_0x2af151[_0x2d048d('0x522')]||_0x2af151[_0x2d048d('0x1f94')])[_0x2d048d('0x2e8')](),_0x3321df['tag']=angular[_0x2d048d('0xd75')](_0x2af151),_0x3321df[_0x2d048d('0x5ed')]=_0x996d31,_0x3321df[_0x2d048d('0x126a')]={};if(_0x3321df[_0x2d048d('0x907')]['appdata'])switch(_0x3321df[_0x2d048d('0x907')][_0x2d048d('0x522')]?_0x3321df['tag'][_0x2d048d('0x522')][_0x2d048d('0xac2')]():_0x3321df[_0x2d048d('0x907')]['app'][_0x2d048d('0xac2')]()){case _0x2d048d('0xf50'):break;case'dialogflow':{var _0x2d8dc6=_0x3321df[_0x2d048d('0x907')]['appdata'][_0x2d048d('0x1af5')](',');_0x3321df[_0x2d048d('0x907')][_0x2d048d('0xddb')]=_0x2d8dc6[0x0],_0x3321df[_0x2d048d('0x907')]['language']=_0x2d8dc6[0x1],_0x3321df[_0x2d048d('0x907')]['welcomemessage']=_0x2d8dc6[_0x2d048d('0xb3d')](0x2,_0x2d8dc6[_0x2d048d('0x577')])[_0x2d048d('0x136')](',');}break;case'amazonlex':{var _0x3eaed5=_0x3321df[_0x2d048d('0x907')][_0x2d048d('0x23c2')][_0x2d048d('0x1af5')](',');_0x3321df['tag'][_0x2d048d('0x21c6')]=_0x3eaed5[0x0],_0x3321df['tag'][_0x2d048d('0x797')]=_0x3eaed5[0x1],_0x3321df[_0x2d048d('0x907')][_0x2d048d('0x20a3')]=_0x3eaed5[0x2],_0x3321df[_0x2d048d('0x907')][_0x2d048d('0x15fe')]=_0x3eaed5[0x3],_0x3321df[_0x2d048d('0x907')][_0x2d048d('0x1cce')]=_0x3eaed5[_0x2d048d('0xb3d')](0x4,_0x3eaed5[_0x2d048d('0x577')])[_0x2d048d('0x136')](',');}break;case _0x2d048d('0x1b98'):{var _0x3b7628=_0x3321df[_0x2d048d('0x907')][_0x2d048d('0x23c2')][_0x2d048d('0x1af5')](',');_0x3321df[_0x2d048d('0x907')][_0x2d048d('0x13b6')]=isNaN(_0x3b7628[0x0])?_0x3b7628[0x0]:parseInt(_0x3b7628[0x0],0xa),_0x3321df[_0x2d048d('0x907')][_0x2d048d('0xc1e')]=_0x3b7628[_0x2d048d('0xb3d')](0x1,_0x3b7628[_0x2d048d('0x577')])[_0x2d048d('0x136')](',');}break;case _0x2d048d('0x1224'):_0x3321df[_0x2d048d('0x907')]['text']=_0x3321df['tag']['appdata'];break;case _0x2d048d('0x1125'):_0x3321df['tag'][_0x2d048d('0x19fe')]=_0x3321df['tag'][_0x2d048d('0x23c2')]['split']('=')[0x0],_0x3321df[_0x2d048d('0x907')][_0x2d048d('0x2228')]=_0x3321df['tag'][_0x2d048d('0x23c2')]['split']('=')[0x1];break;case _0x2d048d('0x2356'):_0x3321df[_0x2d048d('0x907')][_0x2d048d('0xbf8')]=_0x3321df[_0x2d048d('0x907')]['appdata'];break;default:{var _0x45b39c=_0x3321df[_0x2d048d('0x907')][_0x2d048d('0x23c2')]['split'](',');_0x3321df[_0x2d048d('0x907')]['tag']=_0x86640f()[_0x2d048d('0x23aa')](_0x45b39c[0x0])?_0x45b39c[0x0]:isNaN(_0x45b39c[0x0])?_0x45b39c[0x0]:parseInt(_0x45b39c[0x0],0xa);}break;}else{}_0x3321df[_0x2d048d('0x907')][_0x2d048d('0x7fa')]&&_0x3321df['tag'][_0x2d048d('0x7fa')][_0x2d048d('0xac2')]()==='outbound'&&_0x3321df['tag']['appType']['toLowerCase']()===_0x2d048d('0x2363')&&(_0x3321df[_0x2d048d('0x907')]['prefix']=_0x3321df['tag']['phone']?_0x3321df[_0x2d048d('0x907')]['phone']['split']('$')[0x0]:undefined,_0x3321df[_0x2d048d('0x907')]['callerId']=_0x3321df[_0x2d048d('0x907')]['callerID']?_0x2d048d('0x587')+_0x3321df[_0x2d048d('0x907')][_0x2d048d('0x1f5a')]:undefined);_0x3321df[_0x2d048d('0x1d38')]=_0x5507b7,_0x3321df['closeDialog']=_0x89ac78,_0x52ce32[_0x2d048d('0x21de')]('admin')?_0x28a286['tag']['get']({'fields':_0x2d048d('0x1aa8'),'sort':'name','nolimit':'true'})[_0x2d048d('0x1376')][_0x2d048d('0x21ad')](function(_0x4bc6c5){var _0x2e2736=_0x2d048d;_0x3321df[_0x2e2736('0x1889')]=_0x4bc6c5[_0x2e2736('0x1b33')]||[];})[_0x2d048d('0x1c1d')](function(_0x3592a5){var _0xde2ee2=_0x2d048d;_0x5d9ea0[_0xde2ee2('0x2092')]({'title':_0x3592a5[_0xde2ee2('0x209')]?'API:'+_0x3592a5[_0xde2ee2('0x209')]+_0xde2ee2('0xa99')+_0x3592a5['statusText']:_0xde2ee2('0xcd4'),'msg':_0x3592a5[_0xde2ee2('0x11c2')]?JSON[_0xde2ee2('0x25e')](_0x3592a5[_0xde2ee2('0x11c2')]):_0x3592a5[_0xde2ee2('0x174f')]()});}):_0x28a286[_0x2d048d('0x907')][_0x2d048d('0x595')]({'fields':'id,name','sort':_0x2d048d('0x19fe'),'nolimit':'true'})[_0x2d048d('0x1376')]['then'](function(_0x5ca23e){var _0xd1779b=_0x2d048d;_0x3321df[_0xd1779b('0x1889')]=_0x5ca23e['rows']||[];})['then'](function(){var _0x447caf=_0x2d048d;return _0x28a286[_0x447caf('0xab4')][_0x447caf('0x595')]({'userProfileId':_0x3321df[_0x447caf('0x123f')]['userProfileId'],'sectionId':0x3f0})[_0x447caf('0x1376')];})['then'](function(_0x56d63f){var _0x45ba8c=_0x2d048d,_0x23665a=_0x56d63f&&_0x56d63f[_0x45ba8c('0x1b33')]?_0x56d63f[_0x45ba8c('0x1b33')][0x0]:null;if(!_0x23665a){var _0xe106d7=[],_0x319390=null;_0x3321df[_0x45ba8c('0x907')]&&(_0x319390=_0x86640f()[_0x45ba8c('0x1d2e')](_0x3321df['tags'],{'name':_0x3321df[_0x45ba8c('0x907')][_0x45ba8c('0x907')]}));for(var _0x29d59d=0x0;_0x29d59d<_0x3321df[_0x45ba8c('0x1889')]['length'];_0x29d59d++){_0x319390&&_0x3321df['tags'][_0x29d59d]['id']===_0x319390['id']&&(_0x3321df['tags'][_0x29d59d][_0x45ba8c('0xba')]=![],_0xe106d7['push'](_0x3321df[_0x45ba8c('0x1889')][_0x29d59d]));}_0x3321df[_0x45ba8c('0x1889')]=_0xe106d7;}else{if(!_0x23665a[_0x45ba8c('0x80c')])return _0x28a286[_0x45ba8c('0x185e')]['get']({'sectionId':_0x23665a['id']})[_0x45ba8c('0x1376')][_0x45ba8c('0x21ad')](function(_0x2da885){var _0x138aa1=_0x45ba8c,_0x148634=_0x86640f()[_0x138aa1('0x26c3')](_0x2da885[_0x138aa1('0x1b33')],function(_0x434003){var _0x4aa24a=_0x138aa1;return _0x86640f()[_0x4aa24a('0x1d2e')](_0x3321df[_0x4aa24a('0x1889')],{'id':_0x434003['resourceId']});}),_0x510977=null;_0x3321df[_0x138aa1('0x907')]&&(_0x510977=_0x86640f()[_0x138aa1('0x1d2e')](_0x3321df['tags'],{'name':_0x3321df[_0x138aa1('0x907')]['tag']}));if(_0x510977&&!_0x86640f()[_0x138aa1('0x2664')](_0x148634,['id',_0x510977['id']])){var _0xbef930=_0x86640f()[_0x138aa1('0x1d2e')](_0x3321df[_0x138aa1('0x1889')],{'id':_0x510977['id']});_0xbef930[_0x138aa1('0xba')]=![],_0x148634[_0x138aa1('0x206c')](_0xbef930);}_0x3321df['tags']=_0x148634;});}})['catch'](function(_0x42df52){var _0x137261=_0x2d048d;_0x5d9ea0[_0x137261('0x2092')]({'title':_0x42df52[_0x137261('0x209')]?_0x137261('0x22d')+_0x42df52[_0x137261('0x209')]+_0x137261('0xa99')+_0x42df52['statusText']:_0x137261('0x182f'),'msg':_0x42df52['data']?JSON[_0x137261('0x25e')](_0x42df52['data']):_0x42df52[_0x137261('0x174f')]()});});function _0x5507b7(){var _0x591d55=_0x2d048d;_0x3321df[_0x591d55('0x1a69')]=[];var _0xe2b179=[];_0x3321df[_0x591d55('0x907')][_0x591d55('0x7fa')]&&_0x3321df[_0x591d55('0x907')][_0x591d55('0x7fa')][_0x591d55('0xac2')]()===_0x591d55('0x2300')&&_0x3321df[_0x591d55('0x907')][_0x591d55('0x522')]===_0x591d55('0x4ea')&&(_0x3321df[_0x591d55('0x907')][_0x591d55('0x159e')]=_0x3d1651[_0x591d55('0x988')]?(_0x3321df[_0x591d55('0x907')][_0x591d55('0x1995')]||'')+'${EXTEN:'+_0x3d1651[_0x591d55('0x988')]+'}':(_0x3321df[_0x591d55('0x907')]['prefix']||'')+_0x591d55('0x2560'),_0x3d1651['recordingFormat']!==_0x591d55('0x983')?_0x3321df[_0x591d55('0x907')]['options'][_0x591d55('0x2004')]('U(xcally-mixmonitor-context)')<0x0&&(_0x3321df['tag'][_0x591d55('0x26a0')]+=_0x591d55('0x478')):_0x3321df[_0x591d55('0x907')][_0x591d55('0x26a0')]=_0x3321df['tag'][_0x591d55('0x26a0')][_0x591d55('0x16e4')](_0x591d55('0x478'),''));var _0x1c5ab3=_0x86640f()[_0x591d55('0x1d2e')](_0x3321df[_0x591d55('0x1889')],{'name':_0x3321df[_0x591d55('0x907')][_0x591d55('0x907')]});_0x1c5ab3&&(_0x3321df[_0x591d55('0x907')][_0x591d55('0x4ab')]=_0x1c5ab3['id']);if(_0x3321df[_0x591d55('0x907')][_0x591d55('0x522')]&&_0x3321df[_0x591d55('0x907')][_0x591d55('0x522')]===_0x591d55('0xf50')){}else switch((_0x3321df['tag'][_0x591d55('0x1f94')]||_0x3321df[_0x591d55('0x907')][_0x591d55('0x522')])[_0x591d55('0xac2')]()){case'set':_0x3321df[_0x591d55('0x907')][_0x591d55('0x23c2')]=_0x3321df['tag']['name']+'='+_0x3321df['tag'][_0x591d55('0x2228')];break;case _0x591d55('0xf50'):break;default:_0xe2b179[0x0]=_0x3321df[_0x591d55('0x907')][_0x591d55('0x907')],_0x3321df[_0x591d55('0x907')]['appdata']=_0xe2b179[_0x591d55('0x136')](',');}_0x89ac78(_0x3321df[_0x591d55('0x907')]);}function _0x89ac78(_0x9dee22){var _0x1545a2=_0x2d048d;_0x197ace[_0x1545a2('0x1c24')](_0x9dee22);}}const _0x4b817b=_0x32dc1e;_0x172252['$inject']=[_0x3877e3('0x26'),_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x15bc')];function _0x172252(_0x443e5c,_0x55e29e,_0x138fe7,_0x24a0be,_0x1117cc,_0x275b9e,_0x54775e,_0x50c568,_0x4ad7e5,_0x69db78,_0x51b300){var _0x1baf49=_0x3877e3,_0x5840d3=this;_0x5840d3[_0x1baf49('0x123f')]=_0x51b300['getCurrentUser'](),_0x5840d3['mailAccount']={},_0x5840d3['mailAccountInteractions']={'count':0x0,'rows':[]},_0x5840d3[_0x1baf49('0x23ce')]=[],_0x5840d3['crudPermissions'],_0x5840d3[_0x1baf49('0x77')]={'read':'null','closed':_0x1baf49('0x27a'),'sort':_0x1baf49('0xfef'),'includeAll':_0x1baf49('0x19bd'),'limit':0xa,'page':0x1},_0x5840d3[_0x1baf49('0x1d75')]=_0x13cd64,_0x5840d3[_0x1baf49('0x15dc')]=_0x259032,_0x5840d3[_0x1baf49('0xa93')]=_0x2cd916,_0x5840d3[_0x1baf49('0xdb1')]=_0x3aaec8,_0x5840d3['getMailAccountInteractions']=_0x578c42,_0x5840d3[_0x1baf49('0x16db')]=_0x56b46b,_0x5840d3['openAdvancedSearch']=_0x307574,_0x5840d3[_0x1baf49('0x166c')]=_0x36f9c9,_0x5840d3[_0x1baf49('0x2782')]=_0xec949f,_0x5840d3[_0x1baf49('0xfe9')]=_0x3632d9;function _0x13cd64(_0x24aba1,_0x390b2e){var _0x3d7e64=_0x1baf49;_0x5840d3[_0x3d7e64('0x66')]=_0x24aba1,_0x5840d3[_0x3d7e64('0x5ed')]=typeof _0x390b2e!==_0x3d7e64('0xddc')?_0x390b2e:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5840d3[_0x3d7e64('0x77')][_0x3d7e64('0x723')]=_0x5840d3[_0x3d7e64('0x66')]['id'],_0x5840d3[_0x3d7e64('0x2211')]={'fields':_0x1eb097()},_0x1c2244();}function _0x1c2244(){var _0x564ad7=_0x1baf49;return _0x69db78[_0x564ad7('0x907')][_0x564ad7('0x595')]()[_0x564ad7('0x1376')][_0x564ad7('0x21ad')](function(_0x15b935){var _0x7b1e9a=_0x564ad7;_0x5840d3[_0x7b1e9a('0x1889')]=_0x15b935||{'count':0x0,'rows':[]};})[_0x564ad7('0x21ad')](function(){var _0x2a95fb=_0x564ad7;return _0x69db78[_0x2a95fb('0xa94')][_0x2a95fb('0x595')]({'nolimit':!![]})['$promise'][_0x2a95fb('0x21ad')](function(_0x107020){_0x5840d3['subStatuses']=_0x107020||{'count':0x0,'rows':[]};});})[_0x564ad7('0x21ad')](function(){_0x5840d3['quickFilters']=_0x532e83();});}function _0x532e83(){var _0x2828d1=_0x1baf49;return[{'name':_0x2828d1('0x18a1'),'key':_0x2828d1('0x23ae'),'type':'date','label':_0x2828d1('0x1d04')},{'name':_0x2828d1('0x5d'),'key':_0x2828d1('0x14ee'),'type':_0x2828d1('0x2844'),'label':_0x2828d1('0x15f4'),'customOptions':[{'value':0x0,'translate':_0x2828d1('0x1799')},{'value':0x1,'translate':'DASHBOARDS.READ'},{'value':null,'translate':_0x2828d1('0x1ee5')}]},{'name':_0x2828d1('0x843'),'key':_0x2828d1('0x14ba'),'type':'select','label':_0x2828d1('0x2204'),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':'DASHBOARDS.CLOSED'},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x2828d1('0x13c'),'key':_0x2828d1('0x1abc'),'type':_0x2828d1('0x2844'),'label':_0x2828d1('0x267c'),'options':_0x5840d3[_0x2828d1('0xd90')][_0x2828d1('0x1b33')],'customOptions':[{'value':_0x2828d1('0x27a'),'translate':_0x2828d1('0xe34')},{'value':undefined,'translate':'DASHBOARDS.ALL'}],'ngValue':_0x2828d1('0x19fe'),'ngIf':_0x2828d1('0x201d')},{'name':_0x2828d1('0x1a44'),'key':_0x2828d1('0x1dc6'),'type':_0x2828d1('0x2844'),'label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0x2828d1('0x27a'),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':_0x2828d1('0x1ee5')}]},{'name':'Tag','key':'tag','type':'multiselect','label':_0x2828d1('0x138d'),'options':_0x5840d3[_0x2828d1('0x1889')][_0x2828d1('0x1b33')],'placeholder':_0x2828d1('0xb1c')}];}function _0x1eb097(){var _0x328c1b=_0x1baf49;return[{'name':'Id','column':'id','type':_0x328c1b('0xed8')},{'name':_0x328c1b('0x1d10'),'column':'Contact','type':_0x328c1b('0x175c'),'options':{'searchFields':['firstName',_0x328c1b('0x6d'),_0x328c1b('0x2822')],'route':{'model':'cmContact','action':_0x328c1b('0x595'),'params':{'fields':_0x328c1b('0x2704'),'Contact':_0x328c1b('0x169e'),'nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':[_0x328c1b('0x3fe')]}},{'name':_0x328c1b('0x1d80'),'column':_0x328c1b('0x32a'),'type':_0x328c1b('0xc1e'),'options':{'excludedOperators':[_0x328c1b('0x940'),_0x328c1b('0x3fe')]}},{'name':_0x328c1b('0x1108'),'column':'plainBody','type':'text','options':{'excludedOperators':['$eq','$ne']}},{'name':_0x328c1b('0x843'),'column':_0x328c1b('0x14ba'),'type':'select','values':[{'id':0x0,'translate':_0x328c1b('0x19e2')},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':[_0x328c1b('0x3fe')]}},{'name':_0x328c1b('0x13c'),'column':'substatus','type':'multiselect','options':{'field':_0x328c1b('0x19fe'),'route':{'model':_0x328c1b('0xa94'),'action':_0x328c1b('0x595'),'params':{'nolimit':!![]}},'excludedOperators':[_0x328c1b('0x23')]}},{'name':'Agent','column':_0x328c1b('0x6e4'),'type':_0x328c1b('0x175c'),'options':{'table':'i','route':{'model':_0x328c1b('0x1775'),'action':_0x328c1b('0x595'),'params':{'role':'agent','fields':'id,name,fullname','nolimit':!![]}},'searchFields':[_0x328c1b('0x20f5'),_0x328c1b('0x19fe')],'extraOperators':[_0x328c1b('0xb58')],'excludedOperators':[_0x328c1b('0x3fe')]}},{'name':_0x328c1b('0x557'),'column':_0x328c1b('0x295'),'type':_0x328c1b('0x91f'),'options':{'route':{'model':_0x328c1b('0x907'),'action':_0x328c1b('0x595'),'params':{'nolimit':!![]}},'excludedOperators':[_0x328c1b('0x23')]}},{'name':_0x328c1b('0x18a1'),'column':'createdAt','type':_0x328c1b('0x2457'),'options':{'excludedOperators':[_0x328c1b('0x3fe')]}},{'name':_0x328c1b('0x1715'),'column':_0x328c1b('0x6c5'),'type':'select','values':[{'id':0x1,'translate':_0x328c1b('0x629')},{'id':0x0,'translate':_0x328c1b('0x1799')}],'options':{'excludedOperators':['$ne']}}];}function _0x307574(){var _0x5509bc=_0x1baf49;_0x54775e[_0x5509bc('0x853')]({'controller':_0x5509bc('0xde1'),'controllerAs':'vm','templateUrl':_0x44f47e,'parent':angular[_0x5509bc('0x1676')](_0x50c568['body']),'clickOutsideToClose':![],'locals':{'fields':_0x5840d3[_0x5509bc('0x2211')]['fields'],'color':undefined,'storagePath':'mail.mailAccounts'},'fullscreen':!![]})[_0x5509bc('0x21ad')](function(_0x4f07e8){var _0x40261a=_0x5509bc;_0x5840d3[_0x40261a('0x77')][_0x40261a('0x24e7')]=_0x4f07e8===![]?undefined:_0x4f07e8;if(_0x5840d3['query'][_0x40261a('0x24e7')])_0x5840d3['query'][_0x40261a('0x24e7')]+='||MailAccountId:=$eq['+_0x5840d3[_0x40261a('0x66')]['id']+']',_0x578c42();else _0x4f07e8===![]&&_0x578c42();})[_0x5509bc('0x1c1d')](function(_0x4e235e){var _0x1ffe68=_0x5509bc;_0x4ad7e5[_0x1ffe68('0x2092')]({'title':'ERROR','msg':_0x4e235e['data']?JSON[_0x1ffe68('0x25e')](_0x4e235e[_0x1ffe68('0x11c2')][_0x1ffe68('0x1224')]):_0x4e235e['toString']()});});}function _0x2cd916(_0x4946f5,_0x15e89d,_0x3be518){var _0x403bc8=_0x1baf49;return _0x69db78[_0x403bc8('0x57')][_0x403bc8('0xb0')]({'id':_0x4946f5['id'],'exists':!![],'attachments':_0x3be518})['$promise'][_0x403bc8('0x21ad')](function(_0x3f2aa3){var _0x55241f=_0x403bc8,_0x5d322c=[_0x3f2aa3[_0x55241f('0x3da')]],_0x1135c5=_0x55241f('0x1d23')+_0x4946f5['id'],_0x510846=new Blob(_0x5d322c,{'type':_0x3f2aa3['type']});_0x1135c5=_0x55241f('0x286')+_0x4946f5['id']+_0x55241f('0x1622');var _0x3445e4=window[_0x55241f('0x27c3')][_0x55241f('0x162e')]('a');_0x3445e4[_0x55241f('0x127a')](_0x55241f('0x69e'),URL[_0x55241f('0x167b')](_0x510846)),_0x3445e4[_0x55241f('0x127a')](_0x55241f('0xb0'),_0x1135c5),document[_0x55241f('0x2452')]['appendChild'](_0x3445e4),_0x3445e4[_0x55241f('0x997')]();})['catch'](function(_0x3df4f1){var _0x48ff89=_0x403bc8;if(_0x3df4f1[_0x48ff89('0x11c2')]&&_0x3df4f1[_0x48ff89('0x11c2')]['errors']&&_0x3df4f1['data'][_0x48ff89('0x1a69')][_0x48ff89('0x577')])for(var _0x2683ca=0x0;_0x2683ca<_0x3df4f1[_0x48ff89('0x11c2')][_0x48ff89('0x1a69')][_0x48ff89('0x577')];_0x2683ca+=0x1){_0x4ad7e5[_0x48ff89('0x2092')]({'title':_0x3df4f1[_0x48ff89('0x11c2')][_0x48ff89('0x1a69')][_0x2683ca][_0x48ff89('0x7fa')],'msg':_0x3df4f1[_0x48ff89('0x11c2')][_0x48ff89('0x1a69')][_0x2683ca][_0x48ff89('0x1224')]});}else _0x4ad7e5[_0x48ff89('0x2092')]({'title':_0x3df4f1[_0x48ff89('0x209')]?_0x48ff89('0x22d')+_0x3df4f1[_0x48ff89('0x209')]+'\x20-\x20'+_0x3df4f1[_0x48ff89('0x1808')]:_0x48ff89('0x100e'),'msg':_0x3df4f1[_0x48ff89('0x11c2')]?JSON[_0x48ff89('0x25e')](_0x3df4f1[_0x48ff89('0x11c2')]['message']):_0x3df4f1['toString']()});});}function _0x259032(_0x3e68fd,_0x5418d1){var _0x23d9bb=_0x1baf49,_0x58a36c=_0x54775e['confirm']()['title'](_0x23d9bb('0x6'))[_0x23d9bb('0x276b')](_0x23d9bb('0x622')+(_0x3e68fd[_0x23d9bb('0x19fe')]||_0x3e68fd['id']&&_0x86640f()[_0x23d9bb('0x22e')](_0x23d9bb('0x66c'))+_0x3e68fd['id']||_0x23d9bb('0x1d23'))+_0x23d9bb('0x2135')+'\x20will\x20be\x20deleted.')[_0x23d9bb('0x7a7')](_0x23d9bb('0x16bb'))['targetEvent'](_0x5418d1)['ok']('OK')[_0x23d9bb('0x3b5')](_0x23d9bb('0x284b'));_0x54775e[_0x23d9bb('0x853')](_0x58a36c)[_0x23d9bb('0x21ad')](function(){_0xec949f(_0x3e68fd);},function(){var _0x8a8afb=_0x23d9bb;console['log'](_0x8a8afb('0x284b'));});}function _0x3aaec8(_0x36cfd6){var _0x19195c=_0x1baf49;_0x5840d3[_0x19195c('0x235b')]=_0x36cfd6||{'count':0x0,'rows':[]};for(var _0x5c142c=0x0;_0x5c142c<_0x5840d3[_0x19195c('0x235b')][_0x19195c('0x1b33')][_0x19195c('0x577')];_0x5c142c+=0x1){var _0x3e5314=_0x5840d3[_0x19195c('0x235b')]['rows'][_0x5c142c];_0x3bee31(_0x3e5314),_0x3e5314['Owner'][_0x19195c('0x19fe')]=_0x56724e(_0x3e5314);}}function _0x578c42(){var _0x47439b=_0x1baf49;_0x5840d3[_0x47439b('0x77')]['offset']=(_0x5840d3['query'][_0x47439b('0x2376')]-0x1)*_0x5840d3[_0x47439b('0x77')][_0x47439b('0x1f4a')],_0x5840d3[_0x47439b('0x71b')]=_0x69db78[_0x47439b('0x57')][_0x47439b('0x595')](_0x5840d3[_0x47439b('0x77')],_0x3aaec8)[_0x47439b('0x1376')];}function _0x56b46b(_0x27389f,_0x128049){var _0x459adf=_0x1baf49;_0x54775e['show']({'controller':'AgentGeneralInteractionController','controllerAs':'vm','templateUrl':_0x421fef,'parent':angular[_0x459adf('0x1676')](_0x50c568[_0x459adf('0x2452')]),'targetEvent':_0x27389f,'clickOutsideToClose':!![],'onShowing':function _0x340ccb(_0x41cb5b){var _0x520479=_0x459adf;_0x41cb5b['vm']['init']({'id':0x1,'channel':_0x520479('0x1c8b'),'interaction':_0x128049,'spy':!![]},_0x55e29e[_0x520479('0x223d')]['vm']['setting']);}});}function _0xec949f(_0x2b4f98){var _0x118eeb=_0x1baf49;_0x69db78[_0x118eeb('0x57')][_0x118eeb('0x1164')]({'id':_0x2b4f98['id']})[_0x118eeb('0x1376')][_0x118eeb('0x21ad')](function(){var _0x2baaea=_0x118eeb;_0x86640f()['remove'](_0x5840d3[_0x2baaea('0x235b')][_0x2baaea('0x1b33')],{'id':_0x2b4f98['id']}),_0x5840d3['mailAccountInteractions']['count']-=0x1,!_0x5840d3[_0x2baaea('0x235b')][_0x2baaea('0x1b33')][_0x2baaea('0x577')]&&_0x578c42(),_0x4ad7e5[_0x2baaea('0xdb1')]({'title':_0x2baaea('0x1eb4'),'msg':_0x2b4f98['name']?_0x2b4f98['name']+_0x2baaea('0xb4a'):''});})['catch'](function(_0x428b9d){var _0x4c35a7=_0x118eeb;if(_0x428b9d[_0x4c35a7('0x11c2')]&&_0x428b9d[_0x4c35a7('0x11c2')]['errors']&&_0x428b9d[_0x4c35a7('0x11c2')][_0x4c35a7('0x1a69')][_0x4c35a7('0x577')]){_0x5840d3[_0x4c35a7('0x1a69')]=_0x428b9d[_0x4c35a7('0x11c2')][_0x4c35a7('0x1a69')]||[{'message':_0x428b9d[_0x4c35a7('0x174f')](),'type':'SYSTEM:GETmailAccount'}];for(var _0x25955f=0x0;_0x25955f<_0x428b9d[_0x4c35a7('0x11c2')][_0x4c35a7('0x1a69')][_0x4c35a7('0x577')];_0x25955f++){_0x4ad7e5[_0x4c35a7('0x2092')]({'title':_0x428b9d[_0x4c35a7('0x11c2')][_0x4c35a7('0x1a69')][_0x25955f]['type'],'msg':_0x428b9d[_0x4c35a7('0x11c2')][_0x4c35a7('0x1a69')][_0x25955f][_0x4c35a7('0x1224')]});}}else _0x4ad7e5[_0x4c35a7('0x2092')]({'title':_0x428b9d[_0x4c35a7('0x209')]?_0x4c35a7('0x22d')+_0x428b9d[_0x4c35a7('0x209')]+_0x4c35a7('0xa99')+_0x428b9d[_0x4c35a7('0x1808')]:_0x4c35a7('0x1ad8'),'msg':_0x428b9d[_0x4c35a7('0x11c2')]?JSON[_0x4c35a7('0x25e')](_0x428b9d[_0x4c35a7('0x11c2')][_0x4c35a7('0x1224')]):_0x428b9d[_0x4c35a7('0x1224')]||_0x428b9d[_0x4c35a7('0x174f')]()});});}function _0x36f9c9(){var _0x20d42d=_0x1baf49,_0xc4c36b=angular[_0x20d42d('0xd75')](_0x5840d3['selectedMailAccountInteractions']);return _0x5840d3[_0x20d42d('0x23ce')]=[],_0xc4c36b;}function _0x3632d9(_0x34fadf){var _0x558499=_0x1baf49,_0xd70721=_0x54775e[_0x558499('0xa33')]()[_0x558499('0x4b4')](_0x558499('0x1ad2'))[_0x558499('0x276b')](_0x558499('0x622')+_0x5840d3[_0x558499('0x23ce')]['length']+'\x20selected'+_0x558499('0x25e0'))[_0x558499('0x7a7')]('delete\x20interactions')[_0x558499('0x1e6d')](_0x34fadf)['ok']('OK')['cancel']('CANCEL');_0x54775e[_0x558499('0x853')](_0xd70721)['then'](function(){var _0x2bacfe=_0x558499;_0x5840d3[_0x2bacfe('0x23ce')][_0x2bacfe('0x1a52')](function(_0x33cf85){_0xec949f(_0x33cf85);}),_0x5840d3[_0x2bacfe('0x23ce')]=[];});}function _0x3bee31(_0x3353dc){var _0x19b111=_0x1baf49;if(!_0x86640f()['isEmpty'](_0x3353dc['to'])&&!_0x86640f()[_0x19b111('0xb34')](_0x3353dc['to'],_0x5840d3['mailAccount']['email']))_0x3353dc[_0x19b111('0x1717')]=_0x3353dc['to'][_0x19b111('0x1af5')]('\x20<')[0x0],_0x3353dc['contactInfo']=_0x3353dc['to'][_0x19b111('0x1af5')]('<')[_0x19b111('0x4ee')]()['split']('>')[0x0];else _0x3353dc[_0x19b111('0x1d10')]?(_0x3353dc[_0x19b111('0x1717')]=(_0x3353dc[_0x19b111('0x1d10')]['firstName']||'')+'\x20'+(_0x3353dc[_0x19b111('0x1d10')]['lastName']||''),_0x3353dc[_0x19b111('0x67e')]=_0x3353dc[_0x19b111('0x1d10')][_0x19b111('0x2822')]||''):_0x3353dc['contactName']=_0x1117cc[_0x19b111('0x183e')](_0x19b111('0x1d5c'));}function _0x56724e(_0x4ed36b){var _0x712d78=_0x1baf49;if(_0x4ed36b['UserId'])return _0x4ed36b[_0x712d78('0x1dc6')]===_0x5840d3[_0x712d78('0x123f')]['id']?_0x1117cc[_0x712d78('0x183e')]('DASHBOARDS.ME'):_0x4ed36b[_0x712d78('0x11a8')]['fullname']+'\x20<'+_0x4ed36b[_0x712d78('0x11a8')][_0x712d78('0x201f')]+'>';return _0x1117cc[_0x712d78('0x183e')](_0x712d78('0x1932'));}var _0x411fad=!![],_0x441b49=0x1;_0x55e29e[_0x1baf49('0x10e8')](_0x1baf49('0x10ff'),function(_0x3c4d90,_0x33f317){var _0x3e4333=_0x1baf49;_0x411fad?_0x275b9e(function(){_0x411fad=![];}):(!_0x33f317&&(_0x441b49=_0x5840d3[_0x3e4333('0x77')][_0x3e4333('0x2376')]),_0x3c4d90!==_0x33f317&&(_0x5840d3[_0x3e4333('0x77')][_0x3e4333('0x2376')]=0x1),!_0x3c4d90&&(_0x5840d3[_0x3e4333('0x77')][_0x3e4333('0x2376')]=_0x441b49),_0x578c42());});}const _0x332052=_0x172252,_0x4c17fa=_0x398308['p']+_0x3877e3('0x1652');_0x1b7bea['$inject']=[_0x3877e3('0x26'),_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),'toasty','api','Auth'];function _0x1b7bea(_0x5e344d,_0x300d62,_0x3b7f6c,_0x4a5716,_0x108e76,_0x54eba9,_0x11608c,_0x557b87,_0x2ddc5d,_0x3426be,_0x2b7e73){var _0x29ccf8=_0x3877e3,_0xf4ae02=this;_0xf4ae02[_0x29ccf8('0x123f')]=_0x2b7e73['getCurrentUser'](),_0xf4ae02[_0x29ccf8('0x66')]={},_0xf4ae02['mailAccountMailCannedAnswers']={'count':0x0,'rows':[]},_0xf4ae02[_0x29ccf8('0x2a4')]=[],_0xf4ae02[_0x29ccf8('0x5ed')],_0xf4ae02[_0x29ccf8('0x77')]={'fields':_0x29ccf8('0x1674'),'limit':0xa,'page':0x1},_0xf4ae02[_0x29ccf8('0x1d75')]=_0x72cd47,_0xf4ae02[_0x29ccf8('0x15dc')]=_0x4d2257,_0xf4ae02[_0x29ccf8('0xdb1')]=_0x4db9b8,_0xf4ae02['getMailAccountMailCannedAnswers']=_0x2dde02,_0xf4ae02[_0x29ccf8('0xadf')]=_0x52e400,_0xf4ae02[_0x29ccf8('0x6d2')]=_0x206b28,_0xf4ae02[_0x29ccf8('0x1e5b')]=_0x4fc314,_0xf4ae02['deleteSelectedMailAccountMailCannedAnswers']=_0xa0f15;function _0x72cd47(_0x452cf1,_0x8ae394){var _0x4607bb=_0x29ccf8;_0xf4ae02[_0x4607bb('0x66')]=_0x452cf1,_0xf4ae02[_0x4607bb('0x5ed')]=typeof _0x8ae394!==_0x4607bb('0xddc')?_0x8ae394:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xf4ae02[_0x4607bb('0x77')][_0x4607bb('0x723')]=_0xf4ae02[_0x4607bb('0x66')]['id'],_0xf4ae02[_0x4607bb('0x77')]['id']=_0xf4ae02[_0x4607bb('0x66')]['id'],_0x2dde02();}function _0x4d2257(_0x4976f5,_0x5c8dc3){var _0x50209a=_0x29ccf8,_0xfa0fc9=_0x11608c[_0x50209a('0xa33')]()[_0x50209a('0x4b4')](_0x50209a('0x13a2'))[_0x50209a('0x276b')](''+(_0x4976f5[_0x50209a('0x19fe')]||_0x4976f5['id']&&_0x86640f()['upperFirst'](_0x50209a('0x2c0'))+_0x4976f5['id']||'mailCannedAnswer')+_0x50209a('0x2135')+_0x50209a('0x25e0'))[_0x50209a('0x7a7')]('delete\x20mailCannedAnswer')[_0x50209a('0x1e6d')](_0x5c8dc3)['ok']('OK')[_0x50209a('0x3b5')](_0x50209a('0x284b'));_0x11608c[_0x50209a('0x853')](_0xfa0fc9)[_0x50209a('0x21ad')](function(){_0x4fc314(_0x4976f5);},function(){var _0x910e87=_0x50209a;console[_0x910e87('0x6fb')](_0x910e87('0x284b'));});}function _0x4db9b8(_0x29a8ff){var _0x47890b=_0x29ccf8;_0xf4ae02[_0x47890b('0x2173')]=_0x29a8ff||{'count':0x0,'rows':[]};}function _0x2dde02(){var _0xa497cb=_0x29ccf8;_0xf4ae02['query'][_0xa497cb('0x15a5')]=(_0xf4ae02[_0xa497cb('0x77')][_0xa497cb('0x2376')]-0x1)*_0xf4ae02[_0xa497cb('0x77')][_0xa497cb('0x1f4a')],_0xf4ae02[_0xa497cb('0x71b')]=_0x3426be[_0xa497cb('0x66')]['getAnswers'](_0xf4ae02['query'],_0x4db9b8)['$promise'];}function _0x52e400(_0x201eef,_0x36f4f8){var _0x566603=_0x29ccf8;_0x11608c['show']({'controller':'CreateOrEditMailCannedAnswerDialogController','controllerAs':'vm','templateUrl':_0x4c17fa,'parent':angular[_0x566603('0x1676')](_0x557b87['body']),'targetEvent':_0x201eef,'clickOutsideToClose':!![],'locals':{'mailAccount':_0xf4ae02['mailAccount'],'mailCannedAnswer':_0x36f4f8,'mailCannedAnswers':_0xf4ae02[_0x566603('0x2173')][_0x566603('0x1b33')],'license':null,'setting':null,'crudPermissions':_0xf4ae02[_0x566603('0x5ed')]}});}function _0x4fc314(_0x2d95f1){var _0x5d42a0=_0x29ccf8;_0x3426be[_0x5d42a0('0x25e5')]['delete']({'id':_0x2d95f1['id']})[_0x5d42a0('0x1376')][_0x5d42a0('0x21ad')](function(){var _0x24bbc5=_0x5d42a0;_0x86640f()[_0x24bbc5('0x16a2')](_0xf4ae02[_0x24bbc5('0x2173')][_0x24bbc5('0x1b33')],{'id':_0x2d95f1['id']}),_0xf4ae02['mailAccountMailCannedAnswers'][_0x24bbc5('0x205f')]-=0x1,!_0xf4ae02[_0x24bbc5('0x2173')][_0x24bbc5('0x1b33')][_0x24bbc5('0x577')]&&_0x2dde02(),_0x2ddc5d[_0x24bbc5('0xdb1')]({'title':_0x24bbc5('0x2661'),'msg':_0x2d95f1['name']?_0x2d95f1['name']+_0x24bbc5('0xb4a'):''});})[_0x5d42a0('0x1c1d')](function(_0x3712d1){var _0x2ede7f=_0x5d42a0;if(_0x3712d1[_0x2ede7f('0x11c2')]&&_0x3712d1[_0x2ede7f('0x11c2')][_0x2ede7f('0x1a69')]&&_0x3712d1[_0x2ede7f('0x11c2')][_0x2ede7f('0x1a69')][_0x2ede7f('0x577')]){_0xf4ae02[_0x2ede7f('0x1a69')]=_0x3712d1[_0x2ede7f('0x11c2')][_0x2ede7f('0x1a69')]||[{'message':_0x3712d1[_0x2ede7f('0x174f')](),'type':_0x2ede7f('0x1ad8')}];for(var _0x44a5af=0x0;_0x44a5af<_0x3712d1[_0x2ede7f('0x11c2')][_0x2ede7f('0x1a69')][_0x2ede7f('0x577')];_0x44a5af++){_0x2ddc5d[_0x2ede7f('0x2092')]({'title':_0x3712d1['data'][_0x2ede7f('0x1a69')][_0x44a5af][_0x2ede7f('0x7fa')],'msg':_0x3712d1[_0x2ede7f('0x11c2')]['errors'][_0x44a5af][_0x2ede7f('0x1224')]});}}else _0x2ddc5d[_0x2ede7f('0x2092')]({'title':_0x3712d1[_0x2ede7f('0x209')]?_0x2ede7f('0x22d')+_0x3712d1[_0x2ede7f('0x209')]+_0x2ede7f('0xa99')+_0x3712d1[_0x2ede7f('0x1808')]:_0x2ede7f('0x1ad8'),'msg':_0x3712d1[_0x2ede7f('0x11c2')]?JSON[_0x2ede7f('0x25e')](_0x3712d1['data'][_0x2ede7f('0x1224')]):_0x3712d1[_0x2ede7f('0x1224')]||_0x3712d1[_0x2ede7f('0x174f')]()});});}function _0x206b28(){var _0x10b9d5=_0x29ccf8,_0x4f9ac7=angular[_0x10b9d5('0xd75')](_0xf4ae02[_0x10b9d5('0x2a4')]);return _0xf4ae02[_0x10b9d5('0x2a4')]=[],_0x4f9ac7;}function _0xa0f15(_0x69bf36){var _0x1bc83e=_0x29ccf8,_0x18301d=_0x11608c[_0x1bc83e('0xa33')]()[_0x1bc83e('0x4b4')](_0x1bc83e('0x589'))[_0x1bc83e('0x276b')](_0x1bc83e('0x622')+_0xf4ae02[_0x1bc83e('0x2a4')][_0x1bc83e('0x577')]+'\x20selected'+_0x1bc83e('0x25e0'))[_0x1bc83e('0x7a7')](_0x1bc83e('0x1680'))[_0x1bc83e('0x1e6d')](_0x69bf36)['ok']('OK')[_0x1bc83e('0x3b5')]('CANCEL');_0x11608c[_0x1bc83e('0x853')](_0x18301d)['then'](function(){var _0x282246=_0x1bc83e;_0xf4ae02[_0x282246('0x2a4')][_0x282246('0x1a52')](function(_0x7af9b5){_0x4fc314(_0x7af9b5);}),_0xf4ae02[_0x282246('0x2a4')]=[];});}var _0x358db4=!![],_0x54ff7d=0x1;_0x300d62[_0x29ccf8('0x10e8')](_0x29ccf8('0x10ff'),function(_0x15d59f,_0x743ca3){var _0x12d693=_0x29ccf8;_0x358db4?_0x54eba9(function(){_0x358db4=![];}):(!_0x743ca3&&(_0x54ff7d=_0xf4ae02['query']['page']),_0x15d59f!==_0x743ca3&&(_0xf4ae02[_0x12d693('0x77')]['page']=0x1),!_0x15d59f&&(_0xf4ae02[_0x12d693('0x77')]['page']=_0x54ff7d),_0x2dde02());});}const _0xaa2c5e=_0x1b7bea;_0x21a93c['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),'$mdDialog','$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x120b'),_0x3877e3('0x44'),'api',_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting',_0x3877e3('0x5ed')];function _0x21a93c(_0x4d4d32,_0x4b83ae,_0x3833e3,_0x4be116,_0x45f14a,_0x2755a2,_0x531acf,_0x1d87d6,_0x213d8a,_0x33c725,_0x942b1,_0x39597a,_0x51ec76,_0x5cc6f7){var _0x3ba93d=_0x3877e3,_0x48761c=this;_0x48761c['currentUser']=_0x942b1['getCurrentUser'](),_0x48761c[_0x3ba93d('0x1a69')]=[],_0x48761c[_0x3ba93d('0x21e')]=_0x51ec76,_0x48761c['license']=_0x39597a,_0x48761c[_0x3ba93d('0x5ed')]=_0x5cc6f7,_0x48761c[_0x3ba93d('0x126a')]={},_0x48761c[_0x3ba93d('0x1432')]=_0x48761c[_0x3ba93d('0x21e')]&&_0x48761c[_0x3ba93d('0x21e')][_0x3ba93d('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x48761c['title']=_0x3ba93d('0x2340'),_0x48761c[_0x3ba93d('0x44')]=angular[_0x3ba93d('0xd75')](_0x213d8a),_0x48761c[_0x3ba93d('0x120b')]=_0x1d87d6,_0x48761c['newMailCannedAnswer']=![];!_0x48761c[_0x3ba93d('0x44')]&&(_0x48761c['mailCannedAnswer']={},_0x48761c[_0x3ba93d('0x4b4')]='MAIL.NEW_MAILCANNEDANSWER',_0x48761c[_0x3ba93d('0x18e2')]=!![]);_0x4b83ae[_0x3ba93d('0x171b')]['id']&&(_0x48761c[_0x3ba93d('0x44')]['MailAccountId']=_0x4b83ae[_0x3ba93d('0x171b')]['id']);_0x48761c[_0x3ba93d('0x9c4')]=_0x3a442c,_0x48761c[_0x3ba93d('0x1b47')]=_0x23685d,_0x48761c['deleteMailCannedAnswer']=_0x314b18,_0x48761c[_0x3ba93d('0x279')]=_0x3557c4,_0x48761c[_0x3ba93d('0x167')]=_0x74d283;function _0x3a442c(){var _0x2fc81b=_0x3ba93d;_0x48761c[_0x2fc81b('0x1a69')]=[],_0x33c725[_0x2fc81b('0x25e5')][_0x2fc81b('0x186f')](_0x48761c['mailCannedAnswer'])[_0x2fc81b('0x1376')][_0x2fc81b('0x21ad')](function(_0x3adb17){var _0x1b1824=_0x2fc81b;_0x48761c[_0x1b1824('0x120b')][_0x1b1824('0xd0c')](_0x3adb17[_0x1b1824('0x3bc')]()),_0x531acf[_0x1b1824('0xdb1')]({'title':_0x1b1824('0x872'),'msg':_0x48761c['mailCannedAnswer'][_0x1b1824('0x19fe')]?_0x48761c['mailCannedAnswer'][_0x1b1824('0x19fe')]+_0x1b1824('0x1694'):''}),_0x74d283(_0x3adb17);})[_0x2fc81b('0x1c1d')](function(_0xeb0c67){var _0x364386=_0x2fc81b;if(_0xeb0c67[_0x364386('0x11c2')]&&_0xeb0c67[_0x364386('0x11c2')][_0x364386('0x1a69')]&&_0xeb0c67[_0x364386('0x11c2')][_0x364386('0x1a69')][_0x364386('0x577')]){_0x48761c[_0x364386('0x1a69')]=_0xeb0c67[_0x364386('0x11c2')][_0x364386('0x1a69')]||[{'message':_0xeb0c67[_0x364386('0x174f')](),'type':_0x364386('0x545')}];for(var _0x6ed392=0x0;_0x6ed392<_0xeb0c67[_0x364386('0x11c2')][_0x364386('0x1a69')][_0x364386('0x577')];_0x6ed392+=0x1){_0x531acf[_0x364386('0x2092')]({'title':_0xeb0c67[_0x364386('0x11c2')][_0x364386('0x1a69')][_0x6ed392][_0x364386('0x7fa')],'msg':_0xeb0c67['data'][_0x364386('0x1a69')][_0x6ed392][_0x364386('0x1224')]});}}else _0x531acf[_0x364386('0x2092')]({'title':_0xeb0c67[_0x364386('0x209')]?_0x364386('0x22d')+_0xeb0c67[_0x364386('0x209')]+_0x364386('0xa99')+_0xeb0c67[_0x364386('0x1808')]:_0x364386('0x545'),'msg':_0xeb0c67[_0x364386('0x11c2')]?JSON[_0x364386('0x25e')](_0xeb0c67[_0x364386('0x11c2')][_0x364386('0x1224')]):_0xeb0c67[_0x364386('0x174f')]()});});}function _0x23685d(){var _0x2ee9e7=_0x3ba93d;_0x48761c['errors']=[],_0x33c725[_0x2ee9e7('0x25e5')][_0x2ee9e7('0x5ef')]({'id':_0x48761c[_0x2ee9e7('0x44')]['id']},_0x48761c[_0x2ee9e7('0x44')])[_0x2ee9e7('0x1376')][_0x2ee9e7('0x21ad')](function(_0x288fdd){var _0x4c2778=_0x2ee9e7,_0x5669c3=_0x86640f()['find'](_0x48761c[_0x4c2778('0x120b')],{'id':_0x288fdd['id']});_0x5669c3&&_0x86640f()[_0x4c2778('0xd0e')](_0x5669c3,_0x86640f()[_0x4c2778('0xc50')](_0x288fdd[_0x4c2778('0x3bc')](),_0x86640f()[_0x4c2778('0x223b')](_0x5669c3))),_0x531acf[_0x4c2778('0xdb1')]({'title':_0x4c2778('0x1000'),'msg':_0x48761c['mailCannedAnswer'][_0x4c2778('0x19fe')]?_0x48761c[_0x4c2778('0x44')]['name']+_0x4c2778('0x2249'):''}),_0x74d283(_0x288fdd);})['catch'](function(_0x4fb4ec){var _0x2d652c=_0x2ee9e7;if(_0x4fb4ec[_0x2d652c('0x11c2')]&&_0x4fb4ec[_0x2d652c('0x11c2')]['errors']&&_0x4fb4ec[_0x2d652c('0x11c2')]['errors'][_0x2d652c('0x577')]){_0x48761c[_0x2d652c('0x1a69')]=_0x4fb4ec[_0x2d652c('0x11c2')][_0x2d652c('0x1a69')]||[{'message':_0x4fb4ec['toString'](),'type':_0x2d652c('0x129c')}];for(var _0x1f7ade=0x0;_0x1f7ade<_0x4fb4ec[_0x2d652c('0x11c2')][_0x2d652c('0x1a69')][_0x2d652c('0x577')];_0x1f7ade++){_0x531acf[_0x2d652c('0x2092')]({'title':_0x4fb4ec[_0x2d652c('0x11c2')][_0x2d652c('0x1a69')][_0x1f7ade]['type'],'msg':_0x4fb4ec['data'][_0x2d652c('0x1a69')][_0x1f7ade][_0x2d652c('0x1224')]});}}else _0x531acf[_0x2d652c('0x2092')]({'title':_0x4fb4ec[_0x2d652c('0x209')]?_0x2d652c('0x22d')+_0x4fb4ec[_0x2d652c('0x209')]+'\x20-\x20'+_0x4fb4ec[_0x2d652c('0x1808')]:'api.cannedAnswer.update','msg':_0x4fb4ec[_0x2d652c('0x11c2')]?JSON[_0x2d652c('0x25e')](_0x4fb4ec[_0x2d652c('0x11c2')]['message']):_0x4fb4ec[_0x2d652c('0x174f')]()});});}function _0x314b18(_0x51a962){var _0x59ebae=_0x3ba93d;_0x48761c['errors']=[];var _0x1afb64=_0x4be116['confirm']()[_0x59ebae('0x4b4')](_0x59ebae('0x196b'))['content']('The\x20mailCannedAnswer\x20will\x20be\x20deleted.')[_0x59ebae('0x7a7')](_0x59ebae('0x1fc'))['ok']('Delete')[_0x59ebae('0x3b5')](_0x59ebae('0x1f40'))[_0x59ebae('0x1e6d')](_0x51a962);_0x4be116[_0x59ebae('0x853')](_0x1afb64)[_0x59ebae('0x21ad')](function(){var _0x53880e=_0x59ebae;_0x33c725[_0x53880e('0x25e5')]['delete']({'id':_0x48761c[_0x53880e('0x44')]['id']})['$promise'][_0x53880e('0x21ad')](function(){var _0x2685b1=_0x53880e;_0x86640f()[_0x2685b1('0x16a2')](_0x48761c[_0x2685b1('0x120b')],{'id':_0x48761c['mailCannedAnswer']['id']}),_0x531acf[_0x2685b1('0xdb1')]({'title':'MailCannedAnswer\x20properly\x20deleted!','msg':(_0x48761c['mailCannedAnswer'][_0x2685b1('0x19fe')]||_0x2685b1('0x44'))+_0x2685b1('0xb4a')}),_0x74d283(_0x48761c[_0x2685b1('0x44')]);})[_0x53880e('0x1c1d')](function(_0x3e26e9){var _0x3c9d97=_0x53880e;if(_0x3e26e9['data']&&_0x3e26e9['data']['errors']&&_0x3e26e9['data'][_0x3c9d97('0x1a69')]['length']){_0x48761c[_0x3c9d97('0x1a69')]=_0x3e26e9['data'][_0x3c9d97('0x1a69')]||[{'message':_0x3e26e9['toString'](),'type':_0x3c9d97('0x2545')}];for(var _0xe66bd4=0x0;_0xe66bd4<_0x3e26e9[_0x3c9d97('0x11c2')][_0x3c9d97('0x1a69')][_0x3c9d97('0x577')];_0xe66bd4++){_0x531acf['error']({'title':_0x3e26e9[_0x3c9d97('0x11c2')][_0x3c9d97('0x1a69')][_0xe66bd4]['type'],'msg':_0x3e26e9[_0x3c9d97('0x11c2')][_0x3c9d97('0x1a69')][_0xe66bd4][_0x3c9d97('0x1224')]});}}else _0x531acf[_0x3c9d97('0x2092')]({'title':_0x3e26e9[_0x3c9d97('0x209')]?_0x3c9d97('0x22d')+_0x3e26e9[_0x3c9d97('0x209')]+_0x3c9d97('0xa99')+_0x3e26e9['statusText']:'api.cannedAnswer.delete','msg':_0x3e26e9[_0x3c9d97('0x11c2')]?JSON['stringify'](_0x3e26e9['data']['message']):_0x3e26e9['message']||_0x3e26e9['toString']()});});},function(){});}function _0x3557c4(_0x579da6){return _0x579da6===null?undefined:new Date(_0x579da6);}function _0x74d283(_0x2234d5){var _0x45effe=_0x3ba93d;_0x4be116[_0x45effe('0x1c24')](_0x2234d5);}}const _0x4bea6b=_0x21a93c;_0x310b39[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),'$mdDialog','$document',_0x3877e3('0x2313'),'$translate','api',_0x3877e3('0x1908'),_0x3877e3('0x15bc')];function _0x310b39(_0xdb529b,_0x324e52,_0x2a6bcf,_0x58c48d,_0x474677,_0x2ac9c5,_0x5cba73,_0x1e2a50,_0x28ddb7,_0x374fb2,_0x3fe23e){var _0x41b039=_0x3877e3,_0x508885=this;_0x508885[_0x41b039('0x123f')]=_0x3fe23e[_0x41b039('0x15ed')](),_0x508885[_0x41b039('0x10d0')]={'count':0x0,'rows':[]},_0x508885['selectedDispositions']=[],_0x508885[_0x41b039('0x5ed')],_0x508885[_0x41b039('0x2525')]={'first':_0x41b039('0xd08'),'second':_0x41b039('0x2846'),'third':_0x41b039('0x176b')},_0x508885[_0x41b039('0x77')]={'fields':_0x41b039('0x277'),'sort':_0x41b039('0x33'),'limit':0xa,'page':0x1},_0x508885[_0x41b039('0x1d75')]=_0x1dfb3e,_0x508885[_0x41b039('0x15dc')]=_0x3a27a0,_0x508885[_0x41b039('0xdb1')]=_0x2c8e9b,_0x508885[_0x41b039('0x1235')]=_0x4776c2,_0x508885['createOrEditDisposition']=_0x1ce275,_0x508885[_0x41b039('0x132f')]=_0x3f053e,_0x508885[_0x41b039('0xec6')]=_0x1be65a,_0x508885[_0x41b039('0x250')]=_0x32b950,_0x508885['deselectDispositions']=_0x33a3db,_0x508885[_0x41b039('0x2332')]=_0x8d0933;function _0x1dfb3e(_0x5b7886,_0x46a083){var _0x833ede=_0x41b039;_0x508885[_0x833ede('0x66')]=_0x5b7886||{},_0x508885[_0x833ede('0x5ed')]=typeof _0x46a083!=='undefined'?_0x46a083:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x508885[_0x833ede('0x77')]['MailAccountId']=_0x508885[_0x833ede('0x66')]['id'],_0x508885[_0x833ede('0x77')]['id']=_0x508885[_0x833ede('0x66')]['id'],_0x4776c2();}function _0x1ce275(_0x1088e3,_0x4b3e1f){var _0x15544d=_0x41b039;_0x474677[_0x15544d('0x853')]({'controller':_0x15544d('0xdd9'),'controllerAs':'vm','templateUrl':_0x3e2462,'parent':angular[_0x15544d('0x1676')](_0x2ac9c5['body']),'targetEvent':_0x1088e3,'clickOutsideToClose':!![],'locals':{'disposition':_0x4b3e1f,'dispositions':_0x508885[_0x15544d('0x10d0')]['rows'],'model':{'id':_0x508885[_0x15544d('0x66')]['id'],'field':_0x15544d('0x723')},'license':null,'setting':null,'crudPermissions':_0x508885[_0x15544d('0x5ed')]}})[_0x15544d('0x21ad')](function(_0x1e0b88){if(_0x1e0b88)_0x4776c2();});}function _0x3a27a0(_0x2f16a0,_0x575669){var _0x581c8b=_0x41b039,_0x57daf5=_0x86640f()[_0x581c8b('0x2664')](_0x508885['dispositions'][_0x581c8b('0x1b33')],[_0x581c8b('0x198f'),_0x2f16a0['id']]),_0x1854c0=_0x474677['confirm']()[_0x581c8b('0x4b4')](_0x1e2a50['instant'](_0x581c8b('0x17b4')))[_0x581c8b('0x13fb')](_0x1e2a50['instant'](_0x581c8b('0x18ec')+(_0x57daf5?_0x581c8b('0x636'):_0x581c8b('0x1019')),{'name':_0x2f16a0[_0x581c8b('0x19fe')]}))['ariaLabel'](_0x581c8b('0x2448'))[_0x581c8b('0x1e6d')](_0x575669)['ok']('OK')[_0x581c8b('0x3b5')](_0x1e2a50[_0x581c8b('0x183e')](_0x581c8b('0x20ea')));_0x474677[_0x581c8b('0x853')](_0x1854c0)[_0x581c8b('0x21ad')](function(){_0x3f053e(_0x2f16a0);});}function _0x2c8e9b(_0x41a0c7){var _0x47c069=_0x41b039;_0x508885[_0x47c069('0x10d0')]=_0x41a0c7||{'count':0x0,'rows':[]};}function _0x4776c2(){var _0x41b9ca=_0x41b039;_0x508885['query']['offset']=(_0x508885[_0x41b9ca('0x77')][_0x41b9ca('0x2376')]-0x1)*_0x508885['query']['limit'],_0x508885[_0x41b9ca('0x71b')]=_0x28ddb7[_0x41b9ca('0x66')][_0x41b9ca('0x1235')](_0x508885[_0x41b9ca('0x77')],_0x2c8e9b)[_0x41b9ca('0x1376')];}function _0x3f053e(_0xf5af33){var _0x10a0aa=_0x41b039;_0x28ddb7[_0x10a0aa('0x22c8')][_0x10a0aa('0x1164')]({'id':_0xf5af33['id']})[_0x10a0aa('0x1376')][_0x10a0aa('0x21ad')](function(){var _0x2865ec=_0x10a0aa;_0x4776c2(),_0x374fb2[_0x2865ec('0xdb1')]({'title':_0x1e2a50[_0x2865ec('0x183e')]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE')});})[_0x10a0aa('0x1c1d')](function(_0x489ab7){var _0xa4e51=_0x10a0aa;if(_0x489ab7['data']&&_0x489ab7[_0xa4e51('0x11c2')][_0xa4e51('0x1a69')]&&_0x489ab7[_0xa4e51('0x11c2')]['errors']['length']){_0x508885[_0xa4e51('0x1a69')]=_0x489ab7['data'][_0xa4e51('0x1a69')]||[{'message':_0x489ab7[_0xa4e51('0x174f')](),'type':_0xa4e51('0x10d3')}];for(var _0x3badd=0x0;_0x3badd<_0x489ab7[_0xa4e51('0x11c2')]['errors'][_0xa4e51('0x577')];_0x3badd++){_0x374fb2[_0xa4e51('0x2092')]({'title':_0x489ab7[_0xa4e51('0x11c2')][_0xa4e51('0x1a69')][_0x3badd][_0xa4e51('0x7fa')],'msg':_0x489ab7['data']['errors'][_0x3badd][_0xa4e51('0x1224')]});}}else _0x374fb2[_0xa4e51('0x2092')]({'title':_0x489ab7[_0xa4e51('0x209')]?_0xa4e51('0x22d')+_0x489ab7[_0xa4e51('0x209')]+_0xa4e51('0xa99')+_0x489ab7['statusText']:_0xa4e51('0x10d3'),'msg':_0x489ab7[_0xa4e51('0x11c2')]?JSON[_0xa4e51('0x25e')](_0x489ab7['data'][_0xa4e51('0x1224')]):_0x489ab7[_0xa4e51('0x1224')]||_0x489ab7[_0xa4e51('0x174f')]()});});}function _0x1be65a(){var _0x3eb9a0=_0x41b039,_0x401d89=angular['copy'](_0x508885[_0x3eb9a0('0xa9')]);return _0x508885['selectedDispositions']=[],_0x401d89;}function _0x32b950(_0x237edd){var _0x8daad6=_0x41b039,_0x7fd617=_0x474677[_0x8daad6('0xa33')]()['title'](_0x1e2a50[_0x8daad6('0x183e')](_0x8daad6('0x1477')))[_0x8daad6('0x13fb')](_0x1e2a50[_0x8daad6('0x183e')](_0x8daad6('0x212d'),{'total':_0x508885['selectedDispositions'][_0x8daad6('0x577')]}))['ariaLabel'](_0x8daad6('0xad9'))[_0x8daad6('0x1e6d')](_0x237edd)['ok']('OK')[_0x8daad6('0x3b5')](_0x1e2a50[_0x8daad6('0x183e')](_0x8daad6('0x20ea')));_0x474677[_0x8daad6('0x853')](_0x7fd617)[_0x8daad6('0x21ad')](function(){var _0x1c6d5c=_0x8daad6;_0x508885[_0x1c6d5c('0xa9')][_0x1c6d5c('0x1a52')](function(_0x4c608e){_0x3f053e(_0x4c608e);}),_0x508885['selectedDispositions']=[];});}function _0x33a3db(){var _0x209a67=_0x41b039;_0x508885[_0x209a67('0xa9')]=[];}function _0x8d0933(){var _0x49af31=_0x41b039;_0x508885['selectedDispositions']=_0x508885['dispositions'][_0x49af31('0x1b33')];}var _0x8cd46c=!![],_0x42c75d=0x1;_0xdb529b[_0x41b039('0x10e8')](_0x41b039('0x10ff'),function(_0x12e2f6,_0x15c81c){var _0x544bfb=_0x41b039;_0x8cd46c?_0x5cba73(function(){_0x8cd46c=![];}):(!_0x15c81c&&(_0x42c75d=_0x508885['query']['page']),_0x12e2f6!==_0x15c81c&&(_0x508885[_0x544bfb('0x77')]['page']=0x1),!_0x12e2f6&&(_0x508885[_0x544bfb('0x77')][_0x544bfb('0x2376')]=_0x42c75d),_0x4776c2());});}const _0x311519=_0x310b39,_0x32ae75=_0x398308['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/agentadd/agentadd.html/agentadd-[chunkhash].html';_0xb3a9a7['$inject']=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x13c1'),_0x3877e3('0x2ff'),'setting',_0x3877e3('0xccd'),_0x3877e3('0x1908'),'Auth',_0x3877e3('0x66'),'userProfileSection'];function _0xb3a9a7(_0x1f8bc6,_0x3c5739,_0x4118b3,_0xfeee42,_0x492b09,_0x3f16db,_0xde6ec3,_0x3a6067,_0x5c736d,_0x294fc1,_0x3cc247,_0x5ecffd){var _0x217735=_0x3877e3,_0x4d9a85=this;_0x4d9a85[_0x217735('0x123f')]=_0x294fc1[_0x217735('0x15ed')](),_0x4d9a85[_0x217735('0x2ff')]=_0x3f16db,_0x4d9a85[_0x217735('0x21e')]=_0xde6ec3,_0x4d9a85['passwordPattern']=_0x4d9a85[_0x217735('0x21e')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4d9a85[_0x217735('0x626')]=_0x3c5739[_0x217735('0x1162')]()+_0x217735('0x22a9')+_0x3c5739[_0x217735('0x1c01')](),_0x4d9a85[_0x217735('0x66')]=_0x3cc247||_0x1f8bc6[_0x217735('0x171b')][_0x217735('0x66')]||{},_0x4d9a85[_0x217735('0xab4')]=_0x5ecffd&&_0x5ecffd['count']==0x1?_0x5ecffd[_0x217735('0x1b33')][0x0]:null,_0x4d9a85[_0x217735('0x5ed')]=_0x294fc1[_0x217735('0x1778')](_0x4d9a85[_0x217735('0xab4')]?_0x4d9a85['userProfileSection']['crudPermissions']:null),_0x4d9a85['hasModulePermissions']={},_0x4d9a85['selectedTab']=_0x1f8bc6[_0x217735('0x171b')][_0x217735('0x12e1')]||0x0,_0x4d9a85[_0x217735('0x177f')]=_0x3b3eaa,_0x4d9a85[_0x217735('0x1297')]=_0x2b1113,_0x4d9a85[_0x217735('0x95b')]=_0x5c736d[_0x217735('0x231c')],_0x4d9a85[_0x217735('0x170e')]=_0x29ee99,_0x4d9a85['saveMailAccount']=_0x116de8,_0x294fc1[_0x217735('0x21de')](_0x217735('0x1bd8'))?_0x3a6067[_0x217735('0x11e0')][_0x217735('0x595')]({'fields':_0x217735('0x1aa8'),'sort':'name'})[_0x217735('0x1376')][_0x217735('0x21ad')](function(_0x15f64a){var _0x49ede5=_0x217735;_0x4d9a85[_0x49ede5('0x1972')]=_0x15f64a[_0x49ede5('0x1b33')]||[];})['catch'](function(_0x5cfa71){var _0x3163fa=_0x217735;_0x5c736d[_0x3163fa('0x2092')]({'title':_0x5cfa71[_0x3163fa('0x209')]?_0x3163fa('0x22d')+_0x5cfa71[_0x3163fa('0x209')]+'\x20-\x20'+_0x5cfa71['statusText']:_0x3163fa('0xf59'),'msg':_0x5cfa71[_0x3163fa('0x11c2')]?JSON['stringify'](_0x5cfa71['data']):_0x5cfa71['toString']()});}):_0x3a6067['cmList'][_0x217735('0x595')]({'fields':_0x217735('0x1aa8'),'sort':'name'})[_0x217735('0x1376')]['then'](function(_0x212646){var _0x253700=_0x217735;_0x4d9a85[_0x253700('0x1972')]=_0x212646[_0x253700('0x1b33')]||[];})[_0x217735('0x21ad')](function(){var _0x4bd169=_0x217735;return _0x3a6067[_0x4bd169('0xab4')][_0x4bd169('0x595')]({'userProfileId':_0x4d9a85[_0x4bd169('0x123f')][_0x4bd169('0x1618')],'sectionId':0x12d})[_0x4bd169('0x1376')];})[_0x217735('0x21ad')](function(_0x110a45){var _0x53971c=_0x217735,_0x1255cd=_0x110a45&&_0x110a45['rows']?_0x110a45[_0x53971c('0x1b33')][0x0]:null;if(!_0x1255cd){var _0x4a16f0=[],_0xb4f9c7=null;_0x4d9a85['mailAccount']&&(_0xb4f9c7=_0x86640f()[_0x53971c('0x1d2e')](_0x4d9a85['lists'],{'id':Number(_0x4d9a85[_0x53971c('0x66')][_0x53971c('0x815')])}));for(var _0x79052=0x0;_0x79052<_0x4d9a85[_0x53971c('0x1972')][_0x53971c('0x577')];_0x79052++){_0xb4f9c7&&_0x4d9a85['lists'][_0x79052]['id']===_0xb4f9c7['id']&&(_0x4d9a85['lists'][_0x79052][_0x53971c('0xba')]=![],_0x4a16f0[_0x53971c('0x206c')](_0x4d9a85[_0x53971c('0x1972')][_0x79052]));}_0x4d9a85[_0x53971c('0x1972')]=_0x4a16f0;}else{if(!_0x1255cd[_0x53971c('0x80c')])return _0x3a6067['userProfileResource'][_0x53971c('0x595')]({'sectionId':_0x1255cd['id']})['$promise']['then'](function(_0xd39ab7){var _0x4f0e7c=_0x53971c,_0x35d1c2=_0x86640f()[_0x4f0e7c('0x26c3')](_0xd39ab7['rows'],function(_0x143774){var _0x421168=_0x4f0e7c;return _0x86640f()[_0x421168('0x1d2e')](_0x4d9a85['lists'],{'id':_0x143774[_0x421168('0x675')]});}),_0x2cead1=null;_0x4d9a85[_0x4f0e7c('0x66')]&&(_0x2cead1=_0x86640f()[_0x4f0e7c('0x1d2e')](_0x4d9a85['lists'],{'id':Number(_0x4d9a85['mailAccount'][_0x4f0e7c('0x815')])}));if(_0x2cead1&&!_0x86640f()[_0x4f0e7c('0x2664')](_0x35d1c2,['id',_0x2cead1['id']])){var _0x171aac=_0x86640f()[_0x4f0e7c('0x1d2e')](_0x4d9a85['lists'],{'id':_0x2cead1['id']});_0x171aac[_0x4f0e7c('0xba')]=![],_0x35d1c2[_0x4f0e7c('0x206c')](_0x171aac);}_0x4d9a85[_0x4f0e7c('0x1972')]=_0x35d1c2;});}})[_0x217735('0x1c1d')](function(_0x1fab65){var _0xf0871a=_0x217735;_0x5c736d[_0xf0871a('0x2092')]({'title':_0x1fab65[_0xf0871a('0x209')]?'API:'+_0x1fab65[_0xf0871a('0x209')]+_0xf0871a('0xa99')+_0x1fab65[_0xf0871a('0x1808')]:_0xf0871a('0xa92'),'msg':_0x1fab65[_0xf0871a('0x11c2')]?JSON[_0xf0871a('0x25e')](_0x1fab65[_0xf0871a('0x11c2')]):_0x1fab65[_0xf0871a('0x174f')]()});}),_0x294fc1[_0x217735('0x21de')]('admin')?_0x3a6067[_0x217735('0x1e26')]['get']({'fields':_0x217735('0x14d5'),'sort':_0x217735('0x19fe'),'nolimit':_0x217735('0x19bd')})[_0x217735('0x1376')][_0x217735('0x21ad')](function(_0x2b53b4){var _0x5bdcd7=_0x217735;_0x4d9a85[_0x5bdcd7('0x1fc7')]=_0x2b53b4[_0x5bdcd7('0x1b33')]||[];})[_0x217735('0x1c1d')](function(_0x384863){var _0x304406=_0x217735;_0x5c736d[_0x304406('0x2092')]({'title':_0x384863['status']?_0x304406('0x22d')+_0x384863[_0x304406('0x209')]+_0x304406('0xa99')+_0x384863['statusText']:_0x304406('0xb9b'),'msg':_0x384863[_0x304406('0x11c2')]?JSON['stringify'](_0x384863[_0x304406('0x11c2')]):_0x384863[_0x304406('0x174f')]()});}):_0x3a6067[_0x217735('0x1e26')][_0x217735('0x595')]({'fields':'name,id','sort':_0x217735('0x19fe'),'nolimit':_0x217735('0x19bd')})[_0x217735('0x1376')][_0x217735('0x21ad')](function(_0xb6d1ff){var _0x3f28fe=_0x217735;_0x4d9a85[_0x3f28fe('0x1fc7')]=_0xb6d1ff[_0x3f28fe('0x1b33')]||[];})[_0x217735('0x21ad')](function(){var _0x108e91=_0x217735;return _0x3a6067[_0x108e91('0xab4')][_0x108e91('0x595')]({'userProfileId':_0x4d9a85['currentUser'][_0x108e91('0x1618')],'sectionId':0x3ed})[_0x108e91('0x1376')];})['then'](function(_0x1790c5){var _0x2b40e1=_0x217735,_0x254a69=_0x1790c5&&_0x1790c5[_0x2b40e1('0x1b33')]?_0x1790c5['rows'][0x0]:null;if(!_0x254a69)_0x4d9a85[_0x2b40e1('0x1fc7')]=[];else{if(!_0x254a69['autoAssociation'])return _0x3a6067[_0x2b40e1('0x185e')][_0x2b40e1('0x595')]({'sectionId':_0x254a69['id']})[_0x2b40e1('0x1376')][_0x2b40e1('0x21ad')](function(_0x39e81e){var _0x156c1b=_0x2b40e1,_0x297071=_0x86640f()[_0x156c1b('0x26c3')](_0x39e81e['rows'],function(_0x4992a7){var _0x5d740f=_0x156c1b;return _0x86640f()[_0x5d740f('0x1d2e')](_0x4d9a85['pauses'],{'id':_0x4992a7[_0x5d740f('0x675')]});});_0x4d9a85['pauses']['forEach'](function(_0x187fd4){var _0x240d2f=_0x156c1b;!_0x86640f()['some'](_0x297071,['id',_0x187fd4['id']])&&(_0x187fd4[_0x240d2f('0xba')]=![]),_0x297071[_0x240d2f('0x206c')](_0x187fd4);}),_0x4d9a85['pauses']=_0x297071;});}})[_0x217735('0x1c1d')](function(_0x5573a5){var _0x707d8d=_0x217735;_0x5c736d['error']({'title':_0x5573a5[_0x707d8d('0x209')]?_0x707d8d('0x22d')+_0x5573a5[_0x707d8d('0x209')]+'\x20-\x20'+_0x5573a5[_0x707d8d('0x1808')]:_0x707d8d('0x17ab'),'msg':_0x5573a5['data']?JSON[_0x707d8d('0x25e')](_0x5573a5['data']):_0x5573a5['toString']()});});function _0x3b3eaa(){var _0x7f51fa=_0x217735;if(_0x294fc1[_0x7f51fa('0x21de')](_0x7f51fa('0x1bd8')))_0x1f8bc6['go'](_0x7f51fa('0x17a4'),{});else return _0x3a6067[_0x7f51fa('0xab4')][_0x7f51fa('0x595')]({'userProfileId':_0x294fc1[_0x7f51fa('0x15ed')]()[_0x7f51fa('0x1618')],'sectionId':0x262})['$promise']['then'](function(_0x3b7f59){var _0x437e1c=_0x7f51fa,_0x391a87=_0x3b7f59&&_0x3b7f59['rows']?_0x3b7f59[_0x437e1c('0x1b33')][0x0]:null;_0x391a87&&_0x391a87[_0x437e1c('0x2296')]?_0x1f8bc6['go'](_0x437e1c('0x17a4'),{}):_0x5c736d[_0x437e1c('0x231c')]({'title':_0x492b09['instant'](_0x437e1c('0x1adb')),'msg':_0x492b09[_0x437e1c('0x183e')](_0x437e1c('0x764'))});})['catch'](function(_0x53ad7d){var _0x9f216a=_0x7f51fa;_0x5c736d[_0x9f216a('0x2092')]({'title':_0x53ad7d['status']?_0x9f216a('0x22d')+_0x53ad7d[_0x9f216a('0x209')]+_0x9f216a('0xa99')+_0x53ad7d[_0x9f216a('0x1808')]:_0x9f216a('0xb8'),'msg':_0x53ad7d[_0x9f216a('0x209')]?JSON['stringify'](_0x53ad7d['data']):_0x53ad7d[_0x9f216a('0x174f')]()});});}function _0x2b1113(_0x15001b,_0x54da64){var _0xa2fe1b=_0x217735;_0x4118b3[_0xa2fe1b('0x853')]({'controller':_0xa2fe1b('0xbb6'),'controllerAs':'vm','templateUrl':_0x32ae75,'parent':angular['element'](_0xfeee42[_0xa2fe1b('0x2452')]),'targetEvent':_0x54da64,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x15001b,'mailAccounts':_0x4d9a85['mailAccounts']?_0x4d9a85[_0xa2fe1b('0x21ab')][_0xa2fe1b('0x1b33')]:[],'crudPermissions':_0x4d9a85['crudPermissions'],'realtime':![]}});}function _0x29ee99(){var _0x306d47=_0x217735;_0x1f8bc6['go'](_0x306d47('0x1835'),{},{'reload':_0x306d47('0x1835')});}function _0x116de8(){var _0x48b15d=_0x217735;_0x3a6067['mailAccount']['update']({'id':_0x4d9a85['mailAccount']['id']},_0x4d9a85[_0x48b15d('0x66')])['$promise']['then'](function(){var _0x2d0d0a=_0x48b15d;_0x5c736d[_0x2d0d0a('0xdb1')]({'title':'MailAccount\x20updated!','msg':_0x4d9a85[_0x2d0d0a('0x66')][_0x2d0d0a('0x19fe')]?_0x4d9a85['mailAccount'][_0x2d0d0a('0x19fe')]+_0x2d0d0a('0xa8d'):''});})[_0x48b15d('0x1c1d')](function(_0x38034a){var _0x316ec2=_0x48b15d;_0x5c736d[_0x316ec2('0x2092')]({'title':_0x38034a[_0x316ec2('0x209')]?_0x316ec2('0x22d')+_0x38034a[_0x316ec2('0x209')]+_0x316ec2('0xa99')+_0x38034a[_0x316ec2('0x1808')]:_0x316ec2('0x1ad8'),'msg':_0x38034a['data']?JSON['stringify'](_0x38034a[_0x316ec2('0x11c2')]):_0x38034a['toString']()});});}}const _0x410a8b=_0xb3a9a7,_0x310270=_0x398308['p']+'src/js/modules/main/apps/mail/views/mailAccounts/create/dialog.html/dialog-[chunkhash].html';_0x370ecc['$inject']=['$scope','$window',_0x3877e3('0xa9f'),'$mdSidenav',_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),'$translate','mailAccounts',_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),'msUtils',_0x3877e3('0x1908'),'Auth',_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x370ecc(_0x1a4d2e,_0x40a4b9,_0x57d5bc,_0x5e6f1a,_0x32a4ec,_0x3174d2,_0xa93401,_0x132888,_0x17fa43,_0x57e37a,_0xe29cae,_0x294485,_0x566e7e,_0x219fc4,_0x5f30eb,_0x3ed121,_0x307b81){var _0x4e202e=_0x3877e3,_0x99ee36=this;_0x99ee36['license']=_0x3ed121,_0x99ee36[_0x4e202e('0x21e')]=_0x307b81,_0x99ee36[_0x4e202e('0x123f')]=_0x5f30eb[_0x4e202e('0x15ed')](),_0x99ee36[_0x4e202e('0x21ab')]=_0x17fa43||{'count':0x0,'rows':[]},_0x99ee36[_0x4e202e('0x758')]=_0x57e37a,_0x99ee36[_0x4e202e('0xab4')]=_0xe29cae&&_0xe29cae[_0x4e202e('0x205f')]==0x1?_0xe29cae[_0x4e202e('0x1b33')][0x0]:null,_0x99ee36[_0x4e202e('0x5ed')]=_0x5f30eb[_0x4e202e('0x1778')](_0x99ee36[_0x4e202e('0xab4')]?_0x99ee36['userProfileSection']['crudPermissions']:null),_0x99ee36[_0x4e202e('0x1897')]=_0x4e202e('0x21ab'),_0x99ee36[_0x4e202e('0x11dc')]='',_0x99ee36[_0x4e202e('0x18cf')]=null,_0x99ee36[_0x4e202e('0x46')]=[],_0x99ee36[_0x4e202e('0x77')]={'fields':_0x4e202e('0x26e0'),'sort':_0x4e202e('0x33'),'limit':0xa,'page':0x1},_0x99ee36[_0x4e202e('0x1f60')]=_0x86640f()[_0x4e202e('0xcde')]([{'option':_0x4e202e('0x27b9'),'value':_0x4e202e('0x27a')},{'option':_0x4e202e('0x1ee2'),'value':'\x27gmail\x27'},{'option':'Hotmail','value':_0x4e202e('0x130f')},{'option':'Yahoo','value':_0x4e202e('0x1d68')},{'option':_0x4e202e('0x15cf'),'value':_0x4e202e('0x21f1')}],function(_0x4d275a){var _0x450e21=_0x4e202e;return _0x86640f()[_0x450e21('0x16e4')](_0x4d275a['value'],new RegExp('\x27','g'),'');}),_0x99ee36['arrayImap.service']=_0x86640f()[_0x4e202e('0xcde')]([{'option':_0x4e202e('0x27b9'),'value':'null'},{'option':_0x4e202e('0x1ee2'),'value':_0x4e202e('0x1ab3')},{'option':_0x4e202e('0x708'),'value':_0x4e202e('0x130f')},{'option':_0x4e202e('0x64'),'value':_0x4e202e('0x1d68')},{'option':_0x4e202e('0x15cf'),'value':_0x4e202e('0x21f1')}],function(_0x54cf6c){var _0x5a7d04=_0x4e202e;return _0x86640f()[_0x5a7d04('0x16e4')](_0x54cf6c[_0x5a7d04('0x2228')],new RegExp('\x27','g'),'');}),_0x99ee36[_0x4e202e('0x1da9')]=_0x86640f()['keyBy']([{'option':'Custom','value':_0x4e202e('0x27a')},{'option':_0x4e202e('0x1ee2'),'value':'\x27gmail\x27'},{'option':'Hotmail','value':'\x27hotmail\x27'},{'option':'Yahoo','value':_0x4e202e('0x1d68')},{'option':_0x4e202e('0x15cf'),'value':_0x4e202e('0x21f1')}],function(_0x4cde9d){var _0x2fca9b=_0x4e202e;return _0x86640f()[_0x2fca9b('0x16e4')](_0x4cde9d[_0x2fca9b('0x2228')],new RegExp('\x27','g'),'');}),_0x99ee36[_0x4e202e('0x1c88')]=_0x264385,_0x99ee36[_0x4e202e('0x1b26')]=_0x3b2db1,_0x99ee36[_0x4e202e('0x40f')]=_0x3168f1,_0x99ee36['gotorealtimegoto']=_0x3c99af,_0x99ee36[_0x4e202e('0x1297')]=_0x4765fe,_0x99ee36[_0x4e202e('0x2593')]=_0x55950e,_0x99ee36[_0x4e202e('0xdb1')]=_0x51e8b3,_0x99ee36[_0x4e202e('0x191d')]=_0x148e72,_0x99ee36['createOrEditMailAccount']=_0x3b909e,_0x99ee36[_0x4e202e('0x1191')]=_0xfa4105,_0x99ee36['exportSelectedMailAccounts']=_0x4408c6,_0x99ee36[_0x4e202e('0x84a')]=_0x4d8f74,_0x99ee36[_0x4e202e('0x73b')]=_0x286061,_0x99ee36['selectAllMailAccounts']=_0x2390ff,_0x5f30eb[_0x4e202e('0x21de')](_0x4e202e('0x1bd8'))?_0x294485[_0x4e202e('0x11e0')][_0x4e202e('0x595')]({'fields':_0x4e202e('0x1aa8'),'sort':_0x4e202e('0x19fe')})['$promise'][_0x4e202e('0x21ad')](function(_0x236e5e){var _0x2fc8b9=_0x4e202e;_0x99ee36[_0x2fc8b9('0x1972')]=_0x236e5e[_0x2fc8b9('0x1b33')]||[];})['catch'](function(_0x4717da){var _0x2a112d=_0x4e202e;_0x219fc4[_0x2a112d('0x2092')]({'title':_0x4717da[_0x2a112d('0x209')]?_0x2a112d('0x22d')+_0x4717da['status']+'\x20-\x20'+_0x4717da[_0x2a112d('0x1808')]:_0x2a112d('0xf59'),'msg':_0x4717da[_0x2a112d('0x11c2')]?JSON[_0x2a112d('0x25e')](_0x4717da['data']):_0x4717da[_0x2a112d('0x174f')]()});}):_0x294485[_0x4e202e('0x11e0')][_0x4e202e('0x595')]({'fields':_0x4e202e('0x1aa8'),'sort':_0x4e202e('0x19fe')})[_0x4e202e('0x1376')][_0x4e202e('0x21ad')](function(_0x3befb7){var _0x59ade3=_0x4e202e;_0x99ee36[_0x59ade3('0x1972')]=_0x3befb7[_0x59ade3('0x1b33')]||[];})[_0x4e202e('0x21ad')](function(){var _0x5e521b=_0x4e202e;return _0x294485[_0x5e521b('0xab4')][_0x5e521b('0x595')]({'userProfileId':_0x99ee36['currentUser']['userProfileId'],'sectionId':0x12d})[_0x5e521b('0x1376')];})[_0x4e202e('0x21ad')](function(_0xb4de0e){var _0x1fdaea=_0x4e202e,_0x37cb1d=_0xb4de0e&&_0xb4de0e[_0x1fdaea('0x1b33')]?_0xb4de0e['rows'][0x0]:null;if(!_0x37cb1d){var _0x3395d7=[],_0x27a769=null;_0x99ee36[_0x1fdaea('0x66')]&&(_0x27a769=_0x86640f()[_0x1fdaea('0x1d2e')](_0x99ee36['lists'],{'id':Number(_0x99ee36[_0x1fdaea('0x66')]['ListId'])}));for(var _0x9f277f=0x0;_0x9f277f<_0x99ee36['lists'][_0x1fdaea('0x577')];_0x9f277f++){_0x27a769&&_0x99ee36[_0x1fdaea('0x1972')][_0x9f277f]['id']===_0x27a769['id']&&(_0x99ee36[_0x1fdaea('0x1972')][_0x9f277f][_0x1fdaea('0xba')]=![],_0x3395d7[_0x1fdaea('0x206c')](_0x99ee36[_0x1fdaea('0x1972')][_0x9f277f]));}_0x99ee36[_0x1fdaea('0x1972')]=_0x3395d7;}else{if(!_0x37cb1d[_0x1fdaea('0x80c')])return _0x294485[_0x1fdaea('0x185e')][_0x1fdaea('0x595')]({'sectionId':_0x37cb1d['id']})[_0x1fdaea('0x1376')][_0x1fdaea('0x21ad')](function(_0xba30c7){var _0x31581f=_0x1fdaea,_0x50359a=_0x86640f()[_0x31581f('0x26c3')](_0xba30c7[_0x31581f('0x1b33')],function(_0xaa0830){var _0x1393a3=_0x31581f;return _0x86640f()[_0x1393a3('0x1d2e')](_0x99ee36[_0x1393a3('0x1972')],{'id':_0xaa0830[_0x1393a3('0x675')]});}),_0x32c1e8=null;_0x99ee36['mailAccount']&&(_0x32c1e8=_0x86640f()['find'](_0x99ee36['lists'],{'id':Number(_0x99ee36['mailAccount'][_0x31581f('0x815')])}));if(_0x32c1e8&&!_0x86640f()[_0x31581f('0x2664')](_0x50359a,['id',_0x32c1e8['id']])){var _0x5416ec=_0x86640f()[_0x31581f('0x1d2e')](_0x99ee36[_0x31581f('0x1972')],{'id':_0x32c1e8['id']});_0x5416ec[_0x31581f('0xba')]=![],_0x50359a[_0x31581f('0x206c')](_0x5416ec);}_0x99ee36[_0x31581f('0x1972')]=_0x50359a;});}})[_0x4e202e('0x1c1d')](function(_0x42a544){var _0x443140=_0x4e202e;_0x219fc4[_0x443140('0x2092')]({'title':_0x42a544[_0x443140('0x209')]?_0x443140('0x22d')+_0x42a544[_0x443140('0x209')]+_0x443140('0xa99')+_0x42a544['statusText']:'SYSTEM:GETlists','msg':_0x42a544[_0x443140('0x11c2')]?JSON[_0x443140('0x25e')](_0x42a544[_0x443140('0x11c2')]):_0x42a544['toString']()});});function _0x264385(_0xf5491d){var _0x50e28c=_0x4e202e;_0x57d5bc['go'](_0x50e28c('0x2c8'),{'id':_0xf5491d['id'],'mailAccount':_0xf5491d,'crudPermissions':_0x99ee36[_0x50e28c('0x5ed')]});}function _0x3b2db1(_0x530dd1){var _0x4d6b59=_0x4e202e;if(_0x530dd1&&_0x530dd1['id'])return _0x294485[_0x4d6b59('0x66')][_0x4d6b59('0xf7a')]({'id':_0x530dd1['id']})['$promise']['then'](function(){var _0x152181=_0x4d6b59;_0x219fc4[_0x152181('0xdb1')]({'title':_0x152181('0x285b'),'msg':_0x152181('0x1c80')});})['catch'](function(_0x5ebd2e){var _0x142347=_0x4d6b59;_0x219fc4[_0x142347('0x2092')]({'title':'Smtp\x20properly\x20verified','msg':_0x5ebd2e[_0x142347('0x11c2')]?JSON[_0x142347('0x25e')](_0x5ebd2e[_0x142347('0x11c2')]):_0x5ebd2e[_0x142347('0x174f')]()});});else _0x219fc4['error']({'title':_0x4d6b59('0x285b'),'msg':_0x4d6b59('0x123a')});}function _0x3168f1(_0x13bcb3){var _0x574ec1=_0x4e202e;_0x57d5bc['go'](_0x574ec1('0x2c8'),{'id':_0x13bcb3['id'],'tab':0x7});}function _0x3c99af(){var _0x55ca73=_0x4e202e;if(_0x5f30eb[_0x55ca73('0x21de')](_0x55ca73('0x1bd8')))_0x57d5bc['go'](_0x55ca73('0x17a4'),{});else return _0x294485[_0x55ca73('0xab4')][_0x55ca73('0x595')]({'userProfileId':_0x5f30eb[_0x55ca73('0x15ed')]()[_0x55ca73('0x1618')],'sectionId':0x262})[_0x55ca73('0x1376')][_0x55ca73('0x21ad')](function(_0x2a810a){var _0x2763e9=_0x55ca73,_0x20901a=_0x2a810a&&_0x2a810a[_0x2763e9('0x1b33')]?_0x2a810a[_0x2763e9('0x1b33')][0x0]:null;_0x20901a&&_0x20901a[_0x2763e9('0x2296')]?_0x57d5bc['go'](_0x2763e9('0x17a4'),{}):_0x219fc4['info']({'title':_0x132888['instant'](_0x2763e9('0x1adb')),'msg':_0x132888[_0x2763e9('0x183e')](_0x2763e9('0x764'))});})[_0x55ca73('0x1c1d')](function(_0x4b7fd2){var _0xa410d=_0x55ca73;_0x219fc4[_0xa410d('0x2092')]({'title':_0x4b7fd2[_0xa410d('0x209')]?_0xa410d('0x22d')+_0x4b7fd2['status']+_0xa410d('0xa99')+_0x4b7fd2[_0xa410d('0x1808')]:_0xa410d('0xb8'),'msg':_0x4b7fd2[_0xa410d('0x209')]?JSON['stringify'](_0x4b7fd2[_0xa410d('0x11c2')]):_0x4b7fd2[_0xa410d('0x174f')]()});});}function _0x4765fe(_0x27e149,_0x57ff34){var _0x4802c2=_0x4e202e;_0x32a4ec[_0x4802c2('0x853')]({'controller':_0x4802c2('0xbb6'),'controllerAs':'vm','templateUrl':_0x32ae75,'parent':angular[_0x4802c2('0x1676')](_0x3174d2[_0x4802c2('0x2452')]),'targetEvent':_0x57ff34,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x27e149,'mailAccounts':_0x99ee36[_0x4802c2('0x21ab')]?_0x99ee36[_0x4802c2('0x21ab')][_0x4802c2('0x1b33')]:[],'crudPermissions':_0x99ee36[_0x4802c2('0x5ed')],'realtime':![]}});}function _0x55950e(_0x134612,_0x15c36e){var _0x2a85f0=_0x4e202e,_0x5d0249=_0x32a4ec['confirm']()['title'](_0x2a85f0('0x25b6')+_0x86640f()[_0x2a85f0('0x2159')](_0x2a85f0('0x66'))+'?')['htmlContent'](_0x2a85f0('0x622')+(_0x134612['name']||_0x2a85f0('0x66'))+_0x2a85f0('0x2135')+_0x2a85f0('0x25e0'))[_0x2a85f0('0x7a7')](_0x2a85f0('0xee5'))[_0x2a85f0('0x1e6d')](_0x15c36e)['ok']('OK')[_0x2a85f0('0x3b5')](_0x2a85f0('0x284b'));_0x32a4ec[_0x2a85f0('0x853')](_0x5d0249)[_0x2a85f0('0x21ad')](function(){_0xfa4105(_0x134612);},function(){var _0x54d3da=_0x2a85f0;console[_0x54d3da('0x6fb')](_0x54d3da('0x284b'));});}var _0x2d2f75=!![],_0x28dfaf=0x1;_0x1a4d2e[_0x4e202e('0x10e8')](_0x4e202e('0x1948'),function(_0xd30d61,_0x9622cd){var _0x525820=_0x4e202e;_0x2d2f75?_0xa93401(function(){_0x2d2f75=![];}):(!_0x9622cd&&(_0x28dfaf=_0x99ee36[_0x525820('0x77')][_0x525820('0x2376')]),_0xd30d61!==_0x9622cd&&(_0x99ee36[_0x525820('0x77')][_0x525820('0x2376')]=0x1),!_0xd30d61&&(_0x99ee36['query'][_0x525820('0x2376')]=_0x28dfaf),_0x99ee36[_0x525820('0x191d')]());});function _0x51e8b3(_0x2c2b4e){_0x99ee36['mailAccounts']=_0x2c2b4e||{'count':0x0,'rows':[]};}function _0x148e72(){var _0x426481=_0x4e202e;_0x99ee36[_0x426481('0x77')][_0x426481('0x15a5')]=(_0x99ee36[_0x426481('0x77')][_0x426481('0x2376')]-0x1)*_0x99ee36[_0x426481('0x77')][_0x426481('0x1f4a')],_0x5f30eb[_0x426481('0x21de')](_0x426481('0x1bd8'))?_0x99ee36['promise']=_0x294485[_0x426481('0x66')][_0x426481('0x595')](_0x99ee36[_0x426481('0x77')],_0x51e8b3)[_0x426481('0x1376')]:(_0x99ee36[_0x426481('0x77')]['id']=_0x99ee36[_0x426481('0x758')]['id'],_0x99ee36['query'][_0x426481('0x26ad')]=_0x426481('0x230d'),_0x99ee36['promise']=_0x294485[_0x426481('0x758')]['getResources'](_0x99ee36[_0x426481('0x77')],_0x51e8b3)[_0x426481('0x1376')]);}function _0x3b909e(_0x56f05e,_0x2cc87e){var _0xccb99a=_0x4e202e;_0x32a4ec[_0xccb99a('0x853')]({'controller':_0xccb99a('0xaf1'),'controllerAs':'vm','templateUrl':_0x310270,'parent':angular[_0xccb99a('0x1676')](_0x3174d2['body']),'targetEvent':_0x56f05e,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x2cc87e,'mailAccounts':_0x99ee36[_0xccb99a('0x21ab')][_0xccb99a('0x1b33')],'license':_0x99ee36[_0xccb99a('0x2ff')],'setting':_0x99ee36[_0xccb99a('0x21e')],'crudPermissions':_0x99ee36[_0xccb99a('0x5ed')]}});}function _0xfa4105(_0x1285be){var _0x22de28=_0x4e202e;if(_0x1285be[_0x22de28('0x70')])return _0x219fc4[_0x22de28('0x2092')]({'title':_0x22de28('0x1325'),'msg':_0x22de28('0xe78')});_0x294485['mailAccount'][_0x22de28('0x1164')]({'id':_0x1285be['id']})[_0x22de28('0x1376')][_0x22de28('0x21ad')](function(){var _0x3a66dd=_0x22de28;_0x86640f()[_0x3a66dd('0x16a2')](_0x99ee36[_0x3a66dd('0x21ab')]['rows'],{'id':_0x1285be['id']}),_0x99ee36[_0x3a66dd('0x21ab')][_0x3a66dd('0x205f')]-=0x1,!_0x99ee36['mailAccounts']['rows'][_0x3a66dd('0x577')]&&_0x99ee36[_0x3a66dd('0x191d')](),_0x219fc4[_0x3a66dd('0xdb1')]({'title':_0x86640f()[_0x3a66dd('0x2159')]('MailAccount')+_0x3a66dd('0xe64'),'msg':_0x1285be['name']?_0x1285be[_0x3a66dd('0x19fe')]+'\x20has\x20been\x20deleted!':''});})[_0x22de28('0x1c1d')](function(_0x35e134){var _0x5acc6c=_0x22de28;if(_0x35e134[_0x5acc6c('0x11c2')]&&_0x35e134['data']['errors']&&_0x35e134[_0x5acc6c('0x11c2')][_0x5acc6c('0x1a69')][_0x5acc6c('0x577')]){_0x99ee36['errors']=_0x35e134[_0x5acc6c('0x11c2')][_0x5acc6c('0x1a69')]||[{'message':_0x35e134['toString'](),'type':'SYSTEM:DELETEmailAccount'}];for(var _0x40b57e=0x0;_0x40b57e<_0x35e134[_0x5acc6c('0x11c2')]['errors'][_0x5acc6c('0x577')];_0x40b57e++){_0x219fc4[_0x5acc6c('0x2092')]({'title':_0x35e134[_0x5acc6c('0x11c2')][_0x5acc6c('0x1a69')][_0x40b57e][_0x5acc6c('0x7fa')],'msg':_0x35e134[_0x5acc6c('0x11c2')]['errors'][_0x40b57e][_0x5acc6c('0x1224')]});}}else _0x219fc4[_0x5acc6c('0x2092')]({'title':_0x35e134[_0x5acc6c('0x209')]?_0x5acc6c('0x22d')+_0x35e134[_0x5acc6c('0x209')]+'\x20-\x20'+_0x35e134['statusText']:_0x5acc6c('0x1683'),'msg':_0x35e134[_0x5acc6c('0x11c2')]?JSON[_0x5acc6c('0x25e')](_0x35e134[_0x5acc6c('0x11c2')][_0x5acc6c('0x1224')]):_0x35e134[_0x5acc6c('0x1224')]||_0x35e134[_0x5acc6c('0x174f')]()});});}function _0x4408c6(){var _0x18adcd=_0x4e202e,_0x481e19=angular['copy'](_0x99ee36[_0x18adcd('0x46')]);return _0x99ee36[_0x18adcd('0x46')]=[],_0x481e19;}function _0x4d8f74(_0x408e6c){var _0x4ca099=_0x4e202e,_0x200c63=_0x32a4ec[_0x4ca099('0xa33')]()[_0x4ca099('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailAccounts?')[_0x4ca099('0x276b')](_0x4ca099('0x622')+_0x99ee36[_0x4ca099('0x46')][_0x4ca099('0x577')]+_0x4ca099('0xd74')+_0x4ca099('0x25e0'))[_0x4ca099('0x7a7')](_0x4ca099('0xa08'))[_0x4ca099('0x1e6d')](_0x408e6c)['ok']('OK')[_0x4ca099('0x3b5')](_0x4ca099('0x284b'));_0x32a4ec['show'](_0x200c63)[_0x4ca099('0x21ad')](function(){var _0x489cb2=_0x4ca099;_0x99ee36[_0x489cb2('0x46')][_0x489cb2('0x1a52')](function(_0x1c2c87){_0xfa4105(_0x1c2c87);}),_0x99ee36[_0x489cb2('0x46')]=[];});}function _0x286061(){_0x99ee36['selectedMailAccounts']=[];}function _0x2390ff(){var _0x1dc9fc=_0x4e202e;_0x99ee36[_0x1dc9fc('0x46')]=_0x99ee36['mailAccounts'][_0x1dc9fc('0x1b33')];}}const _0xc922fe=_0x370ecc;_0xa4d1a7[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q','$translate','toasty',_0x3877e3('0x2216'),_0x3877e3('0xb3'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'license',_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0xa4d1a7(_0x599e68,_0x5cb6c2,_0x4f81b2,_0x4864b4,_0x301cbc,_0x5a2a1e,_0x4f1b6f,_0x9bee98,_0x131da8,_0xaec81e,_0x5c3c6a,_0x3e080b,_0x3dce3c,_0x50cf5a){var _0x37d7ed=_0x3877e3,_0x1a3e2c=this;_0x1a3e2c[_0x37d7ed('0x123f')]=_0x5c3c6a[_0x37d7ed('0x15ed')](),_0x1a3e2c[_0x37d7ed('0x1a69')]=[],_0x1a3e2c[_0x37d7ed('0x21e')]=_0x3dce3c,_0x1a3e2c['license']=_0x3e080b,_0x1a3e2c[_0x37d7ed('0x5ed')]=_0x50cf5a,_0x1a3e2c['hasModulePermissions']={},_0x1a3e2c['passwordPattern']=_0x1a3e2c[_0x37d7ed('0x21e')]&&_0x1a3e2c[_0x37d7ed('0x21e')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1a3e2c[_0x37d7ed('0x4b4')]=_0x37d7ed('0xa39'),_0x1a3e2c[_0x37d7ed('0xb3')]=angular[_0x37d7ed('0xd75')](_0x131da8),_0x1a3e2c['mailQueues']=_0x9bee98,_0x1a3e2c['newMailQueue']=![];!_0x1a3e2c[_0x37d7ed('0xb3')]&&(_0x1a3e2c[_0x37d7ed('0xb3')]={'strategy':_0x37d7ed('0x2106'),'timeout':0xa},_0x1a3e2c[_0x37d7ed('0x4b4')]=_0x37d7ed('0x53b'),_0x1a3e2c['newMailQueue']=!![]);_0x1a3e2c[_0x37d7ed('0xc17')]=_0x1b7d4c,_0x1a3e2c[_0x37d7ed('0xd5a')]=_0x19a763,_0x1a3e2c[_0x37d7ed('0x1092')]=_0x44e2fa,_0x1a3e2c[_0x37d7ed('0x279')]=_0x47d4d3,_0x1a3e2c[_0x37d7ed('0x167')]=_0xebb417;function _0x1b7d4c(){var _0x47fcfb=_0x37d7ed;_0x1a3e2c[_0x47fcfb('0x1a69')]=[],_0xaec81e['mailQueue']['save'](_0x1a3e2c[_0x47fcfb('0xb3')])['$promise'][_0x47fcfb('0x21ad')](function(_0x54f3e2){var _0x2b78de=_0x47fcfb;_0x1a3e2c[_0x2b78de('0x2216')][_0x2b78de('0xd0c')](_0x54f3e2[_0x2b78de('0x3bc')]()),_0x4f1b6f[_0x2b78de('0xdb1')]({'title':_0x2b78de('0x1eba'),'msg':_0x1a3e2c[_0x2b78de('0xb3')][_0x2b78de('0x19fe')]?_0x1a3e2c[_0x2b78de('0xb3')][_0x2b78de('0x19fe')]+_0x2b78de('0x1694'):''}),_0xebb417(_0x54f3e2);})[_0x47fcfb('0x1c1d')](function(_0x276275){var _0x5c732a=_0x47fcfb;if(_0x276275[_0x5c732a('0x11c2')]&&_0x276275[_0x5c732a('0x11c2')][_0x5c732a('0x1a69')]&&_0x276275[_0x5c732a('0x11c2')][_0x5c732a('0x1a69')]['length']){_0x1a3e2c[_0x5c732a('0x1a69')]=_0x276275[_0x5c732a('0x11c2')][_0x5c732a('0x1a69')]||[{'message':_0x276275['toString'](),'type':_0x5c732a('0x1a6b')}];for(var _0x523e0f=0x0;_0x523e0f<_0x276275[_0x5c732a('0x11c2')][_0x5c732a('0x1a69')]['length'];_0x523e0f+=0x1){_0x4f1b6f[_0x5c732a('0x2092')]({'title':_0x276275['data'][_0x5c732a('0x1a69')][_0x523e0f]['type'],'msg':_0x276275[_0x5c732a('0x11c2')]['errors'][_0x523e0f][_0x5c732a('0x1224')]});}}else _0x4f1b6f[_0x5c732a('0x2092')]({'title':_0x276275['status']?_0x5c732a('0x22d')+_0x276275[_0x5c732a('0x209')]+_0x5c732a('0xa99')+_0x276275[_0x5c732a('0x1808')]:_0x5c732a('0x1a6b'),'msg':_0x276275[_0x5c732a('0x11c2')]?JSON['stringify'](_0x276275['data'][_0x5c732a('0x1224')]):_0x276275[_0x5c732a('0x174f')]()});});}function _0x19a763(){var _0x41afe7=_0x37d7ed;_0x1a3e2c[_0x41afe7('0x1a69')]=[],_0xaec81e[_0x41afe7('0xb3')]['update']({'id':_0x1a3e2c[_0x41afe7('0xb3')]['id']},_0x1a3e2c[_0x41afe7('0xb3')])['$promise']['then'](function(_0x3b3bfb){var _0x15aacf=_0x41afe7,_0x2ca6a0=_0x86640f()[_0x15aacf('0x1d2e')](_0x1a3e2c[_0x15aacf('0x2216')],{'id':_0x3b3bfb['id']});_0x2ca6a0&&_0x86640f()[_0x15aacf('0xd0e')](_0x2ca6a0,_0x86640f()[_0x15aacf('0xc50')](_0x3b3bfb[_0x15aacf('0x3bc')](),_0x86640f()[_0x15aacf('0x223b')](_0x2ca6a0))),_0x4f1b6f['success']({'title':_0x15aacf('0x262e'),'msg':_0x1a3e2c[_0x15aacf('0xb3')][_0x15aacf('0x19fe')]?_0x1a3e2c[_0x15aacf('0xb3')][_0x15aacf('0x19fe')]+_0x15aacf('0x2249'):''}),_0xebb417(_0x3b3bfb);})['catch'](function(_0x5b4a8a){var _0x484f73=_0x41afe7;if(_0x5b4a8a['data']&&_0x5b4a8a[_0x484f73('0x11c2')][_0x484f73('0x1a69')]&&_0x5b4a8a[_0x484f73('0x11c2')][_0x484f73('0x1a69')][_0x484f73('0x577')]){_0x1a3e2c['errors']=_0x5b4a8a[_0x484f73('0x11c2')][_0x484f73('0x1a69')]||[{'message':_0x5b4a8a[_0x484f73('0x174f')](),'type':_0x484f73('0xc7b')}];for(var _0x3603b1=0x0;_0x3603b1<_0x5b4a8a[_0x484f73('0x11c2')][_0x484f73('0x1a69')][_0x484f73('0x577')];_0x3603b1++){_0x4f1b6f[_0x484f73('0x2092')]({'title':_0x5b4a8a[_0x484f73('0x11c2')]['errors'][_0x3603b1][_0x484f73('0x7fa')],'msg':_0x5b4a8a[_0x484f73('0x11c2')][_0x484f73('0x1a69')][_0x3603b1][_0x484f73('0x1224')]});}}else _0x4f1b6f[_0x484f73('0x2092')]({'title':_0x5b4a8a[_0x484f73('0x209')]?_0x484f73('0x22d')+_0x5b4a8a[_0x484f73('0x209')]+_0x484f73('0xa99')+_0x5b4a8a[_0x484f73('0x1808')]:_0x484f73('0xc7b'),'msg':_0x5b4a8a[_0x484f73('0x11c2')]?JSON[_0x484f73('0x25e')](_0x5b4a8a[_0x484f73('0x11c2')][_0x484f73('0x1224')]):_0x5b4a8a['toString']()});});}function _0x44e2fa(_0x2fe523){var _0x3911b8=_0x37d7ed;_0x1a3e2c[_0x3911b8('0x1a69')]=[];var _0x5dfb4d=_0x4864b4[_0x3911b8('0xa33')]()[_0x3911b8('0x4b4')](_0x3911b8('0x196b'))[_0x3911b8('0x13fb')](_0x3911b8('0x206b'))[_0x3911b8('0x7a7')]('Delete\x20MailQueue')['ok'](_0x3911b8('0xbfd'))[_0x3911b8('0x3b5')](_0x3911b8('0x1f40'))['targetEvent'](_0x2fe523);_0x4864b4[_0x3911b8('0x853')](_0x5dfb4d)[_0x3911b8('0x21ad')](function(){var _0x2ae6b7=_0x3911b8;_0xaec81e[_0x2ae6b7('0xb3')][_0x2ae6b7('0x1164')]({'id':_0x1a3e2c[_0x2ae6b7('0xb3')]['id']})['$promise'][_0x2ae6b7('0x21ad')](function(){var _0x4079b2=_0x2ae6b7;_0x86640f()[_0x4079b2('0x16a2')](_0x1a3e2c[_0x4079b2('0x2216')],{'id':_0x1a3e2c['mailQueue']['id']}),_0x4f1b6f[_0x4079b2('0xdb1')]({'title':_0x4079b2('0x18c9'),'msg':(_0x1a3e2c['mailQueue'][_0x4079b2('0x19fe')]||_0x4079b2('0xb3'))+_0x4079b2('0xb4a')}),_0xebb417(_0x1a3e2c[_0x4079b2('0xb3')]);})[_0x2ae6b7('0x1c1d')](function(_0x32db37){var _0x595003=_0x2ae6b7;if(_0x32db37['data']&&_0x32db37['data'][_0x595003('0x1a69')]&&_0x32db37[_0x595003('0x11c2')]['errors']['length']){_0x1a3e2c['errors']=_0x32db37[_0x595003('0x11c2')]['errors']||[{'message':_0x32db37[_0x595003('0x174f')](),'type':_0x595003('0x1fb7')}];for(var _0x24c2ad=0x0;_0x24c2ad<_0x32db37[_0x595003('0x11c2')][_0x595003('0x1a69')][_0x595003('0x577')];_0x24c2ad++){_0x4f1b6f[_0x595003('0x2092')]({'title':_0x32db37[_0x595003('0x11c2')][_0x595003('0x1a69')][_0x24c2ad][_0x595003('0x7fa')],'msg':_0x32db37[_0x595003('0x11c2')][_0x595003('0x1a69')][_0x24c2ad][_0x595003('0x1224')]});}}else _0x4f1b6f[_0x595003('0x2092')]({'title':_0x32db37[_0x595003('0x209')]?'API:'+_0x32db37[_0x595003('0x209')]+'\x20-\x20'+_0x32db37['statusText']:_0x595003('0x1fb7'),'msg':_0x32db37[_0x595003('0x11c2')]?JSON[_0x595003('0x25e')](_0x32db37[_0x595003('0x11c2')]['message']):_0x32db37[_0x595003('0x1224')]||_0x32db37[_0x595003('0x174f')]()});});},function(){});}function _0x47d4d3(_0x1e5ae1){return _0x1e5ae1===null?undefined:new Date(_0x1e5ae1);}function _0xebb417(_0x5b7eba){_0x4864b4['hide'](_0x5b7eba);}}const _0x43c349=_0xa4d1a7;_0x486150['$inject']=[_0x3877e3('0x1850'),'$q','toasty',_0x3877e3('0xccd'),'mailQueue',_0x3877e3('0x2216'),'realtime','$translate',_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x486150(_0x468eab,_0xb1e5c6,_0x30c761,_0x357aba,_0xf45626,_0x37ee19,_0x126e9e,_0x3369cc,_0x2f29d6,_0x26440d){var _0x57949b=_0x3877e3,_0x40240f=this;_0x40240f[_0x57949b('0x123f')]=_0x2f29d6[_0x57949b('0x15ed')](),_0x40240f[_0x57949b('0xb3')]=_0xf45626,_0x40240f['crudPermissions']=_0x26440d,_0x40240f[_0x57949b('0x116a')]=_0x126e9e,_0x40240f[_0x57949b('0x1b9a')]=[],_0x40240f[_0x57949b('0x1e09')]=[],_0x40240f[_0x57949b('0x2629')]=[],_0x40240f[_0x57949b('0x91b')]=[],_0x40240f[_0x57949b('0x2584')]=[],_0x40240f['pendingChanges']=![],_0x40240f[_0x57949b('0x1081')]=_0x46e8aa,_0x40240f[_0x57949b('0x265b')]=_0x10db49,_0x40240f[_0x57949b('0x167')]=_0x471598,_0x40240f[_0x57949b('0x909')]={'readOnly':!_0x40240f[_0x57949b('0x5ed')][_0x57949b('0x6e2')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':'fullname','line2':['name',_0x57949b('0x201f')],'line3':'','labelAll':_0x3369cc[_0x57949b('0x183e')]('MAIL.ALL_AGENTS'),'labelSelected':_0x3369cc['instant'](_0x57949b('0xbc8')),'transferCallback':function _0xf295df(){var _0x468ad3=_0x57949b,_0x219657=_0x86640f()[_0x468ad3('0x1473')](_0x40240f[_0x468ad3('0x2584')],_0x40240f[_0x468ad3('0x2629')],'id');_0x40240f['pendingChanges']=_0x86640f()[_0x468ad3('0x23aa')](_0x219657)?![]:!![];}};function _0x46e8aa(){var _0x230a92=_0x57949b;return _0x2f29d6[_0x230a92('0x21de')]('admin')?_0x3c8e06()[_0x230a92('0x1c1d')](function(_0x4c115a){var _0x22fcfb=_0x230a92;_0x30c761[_0x22fcfb('0x2092')]({'title':_0x4c115a[_0x22fcfb('0x209')]?_0x22fcfb('0x22d')+_0x4c115a[_0x22fcfb('0x209')]+_0x22fcfb('0xa99')+_0x4c115a['statusText']:_0x22fcfb('0x1381'),'msg':_0x4c115a[_0x22fcfb('0x209')]?JSON['stringify'](_0x4c115a[_0x22fcfb('0x11c2')]):_0x4c115a[_0x22fcfb('0x174f')]()});}):_0x2a7125()[_0x230a92('0x21ad')](function(_0x588313){var _0x466aa0=_0x230a92;return _0x40240f[_0x466aa0('0x26ad')]=_0x588313,_0x3c8e06();})[_0x230a92('0x1c1d')](function(_0x4b55f9){var _0x6755b9=_0x230a92;_0x30c761[_0x6755b9('0x2092')]({'title':_0x4b55f9[_0x6755b9('0x209')]?'API:'+_0x4b55f9[_0x6755b9('0x209')]+_0x6755b9('0xa99')+_0x4b55f9['statusText']:_0x6755b9('0x1381'),'msg':_0x4b55f9[_0x6755b9('0x209')]?JSON[_0x6755b9('0x25e')](_0x4b55f9[_0x6755b9('0x11c2')]):_0x4b55f9[_0x6755b9('0x174f')]()});});}function _0x2a7125(){return _0xb1e5c6(function(_0x3017d6,_0x5f0ba5){var _0xf0f146=a0_0x2e7f;_0x357aba[_0xf0f146('0xab4')][_0xf0f146('0x595')]({'userProfileId':_0x40240f['currentUser'][_0xf0f146('0x1618')],'name':_0xf0f146('0xfed')})[_0xf0f146('0x1376')]['then'](function(_0x2b9d1c){var _0x4c52ec=_0xf0f146,_0x35a83d=_0x2b9d1c&&_0x2b9d1c[_0x4c52ec('0x1b33')]?_0x2b9d1c[_0x4c52ec('0x1b33')][0x0]:null;_0x3017d6(_0x35a83d);})[_0xf0f146('0x1c1d')](function(_0x42a96a){_0x5f0ba5(_0x42a96a);});});}function _0x3c8e06(){return _0xb1e5c6(function(_0x2509e7,_0xb0ac24){var _0x3d45ad=a0_0x2e7f;return _0x5b01af()[_0x3d45ad('0x21ad')](function(_0x1393db){var _0x24b6d0=_0x3d45ad;return _0x40240f[_0x24b6d0('0x1b9a')]=_0x1393db[_0x24b6d0('0x1b33')]?_0x1393db[_0x24b6d0('0x1b33')]:[],_0x2f29d6[_0x24b6d0('0x21de')](_0x24b6d0('0x1bd8'))?_0x1393db:_0x40240f[_0x24b6d0('0x26ad')]?_0x40240f[_0x24b6d0('0x26ad')][_0x24b6d0('0x80c')]?_0x1393db:_0x36f75d():null;})['then'](function(_0x15b694){var _0x2ff384=_0x3d45ad,_0x243126=_0x15b694&&_0x15b694['rows']?_0x15b694[_0x2ff384('0x1b33')]:[];return _0x40240f['allowedItems']=_0x86640f()[_0x2ff384('0x26c3')](_0x243126,function(_0x2db513){var _0x569ed0=_0x2ff384;return _0x86640f()['find'](_0x40240f[_0x569ed0('0x1b9a')],{'id':_0x2f29d6['hasRole'](_0x569ed0('0x1bd8'))||_0x40240f[_0x569ed0('0x26ad')]['autoAssociation']?_0x2db513['id']:_0x2db513['resourceId']});}),_0x40240f[_0x2ff384('0x91b')]=angular[_0x2ff384('0xd75')](_0x40240f[_0x2ff384('0x1e09')]),_0x40240f['items']['forEach'](function(_0x56c6a1){var _0x2a3725=_0x2ff384,_0x4cb2d7=_0x86640f()['find'](_0x40240f[_0x2a3725('0x1e09')],{'id':_0x56c6a1['id']});_0x2f29d6['hasRole'](_0x2a3725('0x1bd8'))?_0x56c6a1[_0x2a3725('0x118b')]=!![]:_0x56c6a1[_0x2a3725('0x118b')]=typeof _0x4cb2d7!==_0x2a3725('0xddc')?!![]:![];}),_0x513401();})['then'](function(_0x3b0db4){var _0x251459=_0x3d45ad,_0x168476=_0x3b0db4&&_0x3b0db4[_0x251459('0x1b33')]?_0x3b0db4[_0x251459('0x1b33')]:[];_0x40240f['selectedItems']=_0x86640f()['map'](_0x168476,function(_0x2f15e0){var _0x3579e3=_0x251459,_0x5ab278=_0x86640f()[_0x3579e3('0x1d2e')](_0x40240f['items'],{'id':_0x2f15e0['id']});return _0x5ab278[_0x3579e3('0x1195')]=_0x2f15e0[_0x3579e3('0x16')]?_0x3579e3('0x5c2')+_0x2f15e0['UserMailQueue'][_0x3579e3('0x1195')]:'',_0x5ab278[_0x3579e3('0x201f')]=typeof _0x2f15e0[_0x3579e3('0x201f')]!==_0x3579e3('0xddc')?'<'+_0x2f15e0[_0x3579e3('0x201f')]+'>':'',_0x5ab278;}),_0x40240f[_0x251459('0x2584')]=angular[_0x251459('0xd75')](_0x40240f['selectedItems']),_0x40240f[_0x251459('0x909')][_0x251459('0x2629')]=_0x40240f[_0x251459('0x2629')],_0x40240f['dualMultiselectOptions'][_0x251459('0x1b9a')]=_0x86640f()[_0x251459('0x1eab')](_0x40240f[_0x251459('0x1e09')],_0x40240f[_0x251459('0x909')][_0x251459('0x2629')],'id'),_0x2509e7();})[_0x3d45ad('0x1c1d')](function(_0x25ca41){_0xb0ac24(_0x25ca41);});});}function _0x36f75d(){return _0xb1e5c6(function(_0x1d3435,_0x5b0030){var _0x2a3532=a0_0x2e7f;return _0x357aba[_0x2a3532('0x185e')][_0x2a3532('0x595')]({'sectionId':_0x40240f['section']['id'],'nolimit':!![]})['$promise'][_0x2a3532('0x21ad')](function(_0x4f446a){_0x1d3435(_0x4f446a);})['catch'](function(_0x51f316){_0x5b0030(_0x51f316);});});}function _0x513401(){return _0xb1e5c6(function(_0x3f2190,_0xd1b5cc){var _0x244c90=a0_0x2e7f;return _0x357aba[_0x244c90('0xb3')][_0x244c90('0x13ad')]({'id':_0x40240f[_0x244c90('0xb3')]['id'],'fields':_0x244c90('0x1eea'),'nolimit':!![],'role':_0x244c90('0x2402')})[_0x244c90('0x1376')][_0x244c90('0x21ad')](function(_0x141a4a){_0x3f2190(_0x141a4a);})['catch'](function(_0x333029){_0xd1b5cc(_0x333029);});});}function _0x5b01af(){return _0xb1e5c6(function(_0x5f43f1,_0x465859){var _0x369ab2=a0_0x2e7f;return _0x357aba['user']['get']({'fields':_0x369ab2('0x1eea'),'nolimit':!![],'role':_0x369ab2('0x2402')})[_0x369ab2('0x1376')][_0x369ab2('0x21ad')](function(_0x191877){_0x5f43f1(_0x191877);})[_0x369ab2('0x1c1d')](function(_0x29b04d){_0x465859(_0x29b04d);});});}function _0x706891(_0x154622){return _0xb1e5c6(function(_0x2d075a,_0x1a6cd8){var _0x472ed5=a0_0x2e7f;_0x86640f()[_0x472ed5('0x23aa')](_0x154622)?_0x2d075a():_0x357aba[_0x472ed5('0xb3')][_0x472ed5('0x1116')]({'id':_0x40240f[_0x472ed5('0xb3')]['id'],'ids':_0x86640f()[_0x472ed5('0x26c3')](_0x154622,'id')})[_0x472ed5('0x1376')][_0x472ed5('0x21ad')](function(){_0x2d075a();})[_0x472ed5('0x1c1d')](function(_0x3fd475){_0x1a6cd8(_0x3fd475);});});}function _0x4e5b44(_0x306152){return _0xb1e5c6(function(_0x56482c,_0x1e0161){var _0x15780b=a0_0x2e7f;_0x86640f()[_0x15780b('0x23aa')](_0x306152)?_0x56482c():_0x357aba['mailQueue'][_0x15780b('0x59e')]({'id':_0x40240f[_0x15780b('0xb3')]['id'],'ids':_0x86640f()[_0x15780b('0x26c3')](_0x306152,'id')})['$promise'][_0x15780b('0x21ad')](function(){_0x56482c();})[_0x15780b('0x1c1d')](function(_0x14027e){_0x1e0161(_0x14027e);});});}function _0x10db49(){var _0x446183=_0x57949b,_0x472381=_0x86640f()[_0x446183('0x1eab')](_0x40240f['startingSelectedItems'],_0x40240f['selectedItems'],'id'),_0x3fb8b1=_0x86640f()[_0x446183('0x1eab')](_0x40240f[_0x446183('0x2629')],_0x40240f[_0x446183('0x2584')],'id');return _0x4e5b44(_0x472381)['then'](function(){return _0x706891(_0x3fb8b1);})[_0x446183('0x21ad')](function(){var _0x1a02d0=_0x446183;_0x40240f[_0x1a02d0('0x1bb9')]=![],_0x40240f['startingAllowedItems']=angular[_0x1a02d0('0xd75')](_0x40240f['allowedItems']),_0x40240f[_0x1a02d0('0x2584')]=angular[_0x1a02d0('0xd75')](_0x40240f[_0x1a02d0('0x2629')]),_0x30c761[_0x1a02d0('0xdb1')]({'title':'SUCCESS','msg':_0x1a02d0('0x2239')});})['catch'](function(_0x16802c){var _0x53f2a8=_0x446183;_0x30c761[_0x53f2a8('0x2092')]({'title':_0x16802c[_0x53f2a8('0x209')]?_0x53f2a8('0x22d')+_0x16802c['status']+_0x53f2a8('0xa99')+_0x16802c[_0x53f2a8('0x1808')]:_0x53f2a8('0x1dd7'),'msg':_0x16802c[_0x53f2a8('0x209')]?JSON[_0x53f2a8('0x25e')](_0x16802c[_0x53f2a8('0x11c2')]):_0x16802c['toString']()});});}function _0x471598(){var _0x3b4a5b=_0x57949b;_0x468eab[_0x3b4a5b('0x1c24')]();}}const _0x16fd46=_0x486150;_0x2f72ea[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0xccd'),'mailQueue',_0x3877e3('0x13c1'),'Auth',_0x3877e3('0x5ed')];function _0x2f72ea(_0x4a09b7,_0x21c982,_0x2dc6a0,_0x46d341,_0x38970c,_0x8edf52,_0xd76fd4,_0x3f7eea){var _0x77499a=_0x3877e3,_0x52437d=this;_0x52437d['currentUser']=_0xd76fd4[_0x77499a('0x15ed')](),_0x52437d['mailQueue']=_0x38970c,_0x52437d[_0x77499a('0x5ed')]=_0x3f7eea,_0x52437d[_0x77499a('0x1b9a')]=[],_0x52437d['allowedItems']=[],_0x52437d[_0x77499a('0x2629')]=[],_0x52437d[_0x77499a('0x91b')]=[],_0x52437d[_0x77499a('0x2584')]=[],_0x52437d[_0x77499a('0x1bb9')]=![],_0x52437d[_0x77499a('0x909')]={'readOnly':!_0x52437d[_0x77499a('0x5ed')][_0x77499a('0x6e2')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x77499a('0x19fe'),'line1':_0x77499a('0x19fe'),'line2':'','line3':'','labelAll':_0x8edf52[_0x77499a('0x183e')]('MAIL.ALL_TEAMS'),'labelSelected':_0x8edf52[_0x77499a('0x183e')](_0x77499a('0x2522')),'transferCallback':function _0x359958(){var _0x890550=_0x77499a,_0x50c70f=_0x86640f()[_0x890550('0x1473')](_0x52437d['startingSelectedItems'],_0x52437d[_0x890550('0x2629')],'id');_0x52437d[_0x890550('0x1bb9')]=_0x86640f()[_0x890550('0x23aa')](_0x50c70f)?![]:!![];}},_0x52437d[_0x77499a('0x1081')]=_0x318952,_0x52437d['saveTeams']=_0x4b4bea,_0x52437d['closeDialog']=_0x27efec;function _0x318952(){var _0x42cce4=_0x77499a;return _0xd76fd4[_0x42cce4('0x21de')]('admin')?_0x4581aa()['catch'](function(_0xcc96a5){var _0xeb143=_0x42cce4;_0x2dc6a0[_0xeb143('0x2092')]({'title':_0xcc96a5[_0xeb143('0x209')]?'API:'+_0xcc96a5['status']+'\x20-\x20'+_0xcc96a5[_0xeb143('0x1808')]:_0xeb143('0x2479'),'msg':_0xcc96a5['status']?JSON[_0xeb143('0x25e')](_0xcc96a5[_0xeb143('0x11c2')]):_0xcc96a5[_0xeb143('0x174f')]()});}):_0x95743()[_0x42cce4('0x21ad')](function(_0xf5f4e1){return _0x52437d['section']=_0xf5f4e1,_0x4581aa();})['catch'](function(_0x59107b){var _0x512f1a=_0x42cce4;_0x2dc6a0[_0x512f1a('0x2092')]({'title':_0x59107b[_0x512f1a('0x209')]?_0x512f1a('0x22d')+_0x59107b[_0x512f1a('0x209')]+_0x512f1a('0xa99')+_0x59107b[_0x512f1a('0x1808')]:'SYSTEM:GET_TEAMS','msg':_0x59107b[_0x512f1a('0x209')]?JSON[_0x512f1a('0x25e')](_0x59107b[_0x512f1a('0x11c2')]):_0x59107b[_0x512f1a('0x174f')]()});});}function _0x95743(){return _0x21c982(function(_0x538c01,_0x585c5c){var _0x405bd5=a0_0x2e7f;_0x46d341['userProfileSection'][_0x405bd5('0x595')]({'userProfileId':_0x52437d[_0x405bd5('0x123f')][_0x405bd5('0x1618')],'name':'Teams'})[_0x405bd5('0x1376')]['then'](function(_0x2d227a){var _0x28db22=_0x405bd5,_0x1242ae=_0x2d227a&&_0x2d227a[_0x28db22('0x1b33')]?_0x2d227a[_0x28db22('0x1b33')][0x0]:null;_0x538c01(_0x1242ae);})['catch'](function(_0x172141){_0x585c5c(_0x172141);});});}function _0x4581aa(){return _0x21c982(function(_0x1961b7,_0x3707e3){var _0x3873b1=a0_0x2e7f;return _0x48dfbb()[_0x3873b1('0x21ad')](function(_0x479e7f){var _0x1664cd=_0x3873b1;return _0x52437d[_0x1664cd('0x1b9a')]=_0x479e7f[_0x1664cd('0x1b33')]?_0x479e7f[_0x1664cd('0x1b33')]:[],_0xd76fd4['hasRole'](_0x1664cd('0x1bd8'))?_0x479e7f:_0x52437d['section']?_0x52437d['section'][_0x1664cd('0x80c')]?_0x479e7f:_0x523d6e():null;})[_0x3873b1('0x21ad')](function(_0x2386cb){var _0x432447=_0x3873b1,_0x5b29f0=_0x2386cb&&_0x2386cb[_0x432447('0x1b33')]?_0x2386cb[_0x432447('0x1b33')]:[];return _0x52437d[_0x432447('0x1e09')]=_0x86640f()[_0x432447('0x26c3')](_0x5b29f0,function(_0x39d492){var _0x37bf46=_0x432447;return _0x86640f()[_0x37bf46('0x1d2e')](_0x52437d[_0x37bf46('0x1b9a')],{'id':_0xd76fd4[_0x37bf46('0x21de')](_0x37bf46('0x1bd8'))||_0x52437d[_0x37bf46('0x26ad')][_0x37bf46('0x80c')]?_0x39d492['id']:_0x39d492[_0x37bf46('0x675')]});}),_0x52437d[_0x432447('0x1b9a')]['forEach'](function(_0x49d263){var _0x2fabc0=_0x432447,_0x122cff=_0x86640f()[_0x2fabc0('0x1d2e')](_0x52437d[_0x2fabc0('0x1e09')],{'id':_0x49d263['id']});_0xd76fd4[_0x2fabc0('0x21de')]('admin')?_0x49d263[_0x2fabc0('0x118b')]=!![]:_0x49d263[_0x2fabc0('0x118b')]=typeof _0x122cff!=='undefined'?!![]:![];}),_0x27ef75();})[_0x3873b1('0x21ad')](function(_0x10f832){var _0x1aff9c=_0x3873b1,_0x66a361=_0x10f832&&_0x10f832[_0x1aff9c('0x1b33')]?_0x10f832[_0x1aff9c('0x1b33')]:[];_0x52437d[_0x1aff9c('0x2629')]=_0x86640f()[_0x1aff9c('0x26c3')](_0x66a361,function(_0x36aa2c){var _0x47f41e=_0x1aff9c;return _0x86640f()['find'](_0x52437d[_0x47f41e('0x1b9a')],{'id':_0x36aa2c['id']});}),_0x52437d[_0x1aff9c('0x2584')]=angular[_0x1aff9c('0xd75')](_0x52437d['selectedItems']),_0x52437d['dualMultiselectOptions'][_0x1aff9c('0x2629')]=_0x52437d['selectedItems'],_0x52437d[_0x1aff9c('0x909')][_0x1aff9c('0x1b9a')]=_0x86640f()['differenceBy'](_0x52437d['allowedItems'],_0x52437d[_0x1aff9c('0x909')][_0x1aff9c('0x2629')],'id'),_0x1961b7();})[_0x3873b1('0x1c1d')](function(_0xe73d80){_0x3707e3(_0xe73d80);});});}function _0x523d6e(){return _0x21c982(function(_0x1f0f5b,_0x5caaa4){var _0x5d8894=a0_0x2e7f;return _0x46d341[_0x5d8894('0x185e')][_0x5d8894('0x595')]({'sectionId':_0x52437d[_0x5d8894('0x26ad')]['id'],'nolimit':!![]})[_0x5d8894('0x1376')][_0x5d8894('0x21ad')](function(_0x1218df){_0x1f0f5b(_0x1218df);})[_0x5d8894('0x1c1d')](function(_0x23152e){_0x5caaa4(_0x23152e);});});}function _0x27ef75(){return _0x21c982(function(_0x32b150,_0x2b6bba){var _0x35cd11=a0_0x2e7f;return _0x46d341[_0x35cd11('0xb3')][_0x35cd11('0x25df')]({'id':_0x52437d[_0x35cd11('0xb3')]['id'],'fields':_0x35cd11('0x1aa8'),'nolimit':!![]})[_0x35cd11('0x1376')]['then'](function(_0x53c89c){_0x32b150(_0x53c89c);})[_0x35cd11('0x1c1d')](function(_0x2782c5){_0x2b6bba(_0x2782c5);});});}function _0x48dfbb(){return _0x21c982(function(_0x5c44ea,_0x4527d8){var _0x2c86de=a0_0x2e7f;return _0x46d341[_0x2c86de('0x1a9c')][_0x2c86de('0x595')]({'fields':_0x2c86de('0x1aa8'),'nolimit':!![]})[_0x2c86de('0x1376')][_0x2c86de('0x21ad')](function(_0x3b8240){_0x5c44ea(_0x3b8240);})['catch'](function(_0x26124d){_0x4527d8(_0x26124d);});});}function _0x250aa0(_0x1fd4a4){return _0x21c982(function(_0x3f38d8,_0x4a55b6){var _0x4a6f14=a0_0x2e7f;_0x86640f()['isEmpty'](_0x1fd4a4)?_0x3f38d8():_0x46d341[_0x4a6f14('0xb3')][_0x4a6f14('0x36c')]({'id':_0x52437d[_0x4a6f14('0xb3')]['id'],'ids':_0x86640f()['map'](_0x1fd4a4,'id')})['$promise'][_0x4a6f14('0x21ad')](function(){_0x3f38d8();})[_0x4a6f14('0x1c1d')](function(_0x4e8e85){_0x4a55b6(_0x4e8e85);});});}function _0x2b8216(_0x443f7f){return _0x21c982(function(_0x5706da,_0x4d9a6d){var _0x3aa355=a0_0x2e7f;_0x86640f()[_0x3aa355('0x23aa')](_0x443f7f)?_0x5706da():_0x46d341[_0x3aa355('0xb3')]['removeTeams']({'id':_0x52437d[_0x3aa355('0xb3')]['id'],'ids':_0x86640f()[_0x3aa355('0x26c3')](_0x443f7f,'id')})['$promise']['then'](function(){_0x5706da();})[_0x3aa355('0x1c1d')](function(_0x3d76dc){_0x4d9a6d(_0x3d76dc);});});}function _0x4b4bea(){var _0x57b558=_0x77499a,_0x3f01f8=_0x86640f()['differenceBy'](_0x52437d['startingSelectedItems'],_0x52437d[_0x57b558('0x2629')],'id'),_0x483688=_0x86640f()[_0x57b558('0x1eab')](_0x52437d[_0x57b558('0x2629')],_0x52437d[_0x57b558('0x2584')],'id');return _0x2b8216(_0x3f01f8)[_0x57b558('0x21ad')](function(){return _0x250aa0(_0x483688);})[_0x57b558('0x21ad')](function(){var _0x33827d=_0x57b558;_0x52437d[_0x33827d('0x1bb9')]=![],_0x52437d[_0x33827d('0x91b')]=angular[_0x33827d('0xd75')](_0x52437d[_0x33827d('0x1e09')]),_0x52437d[_0x33827d('0x2584')]=angular[_0x33827d('0xd75')](_0x52437d[_0x33827d('0x2629')]),_0x2dc6a0[_0x33827d('0xdb1')]({'title':_0x33827d('0x2804'),'msg':'Teams\x20association\x20has\x20been\x20updated!'});})[_0x57b558('0x1c1d')](function(_0x3701a5){var _0x50db85=_0x57b558;_0x2dc6a0[_0x50db85('0x2092')]({'title':_0x3701a5[_0x50db85('0x209')]?'API:'+_0x3701a5[_0x50db85('0x209')]+_0x50db85('0xa99')+_0x3701a5[_0x50db85('0x1808')]:_0x50db85('0x1dd7'),'msg':_0x3701a5[_0x50db85('0x209')]?JSON[_0x50db85('0x25e')](_0x3701a5[_0x50db85('0x11c2')]):_0x3701a5['toString']()});});}function _0x27efec(){var _0xb1a428=_0x77499a;_0x4a09b7[_0xb1a428('0x1c24')]();}}const _0x4399cc=_0x2f72ea,_0x161591=_0x398308['p']+_0x3877e3('0x2494');_0x4fb3b3[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x13c1'),'license',_0x3877e3('0x21e'),'api','toasty','Auth',_0x3877e3('0xb3'),_0x3877e3('0xab4')];function _0x4fb3b3(_0x21e388,_0x421f3b,_0x1a8557,_0x55156e,_0x3b3438,_0x21798d,_0x20832e,_0x2ed301,_0x2d4779,_0x324d20,_0x346068,_0x46d100){var _0x567b68=_0x3877e3,_0x427369=this;_0x427369[_0x567b68('0x123f')]=_0x324d20['getCurrentUser'](),_0x427369[_0x567b68('0x2ff')]=_0x21798d,_0x427369[_0x567b68('0x21e')]=_0x20832e,_0x427369[_0x567b68('0x1432')]=_0x427369[_0x567b68('0x21e')][_0x567b68('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x427369[_0x567b68('0x626')]=_0x421f3b[_0x567b68('0x1162')]()+_0x567b68('0x22a9')+_0x421f3b['host'](),_0x427369[_0x567b68('0xb3')]=_0x346068||_0x21e388['params'][_0x567b68('0xb3')]||{},_0x427369['userProfileSection']=_0x46d100&&_0x46d100[_0x567b68('0x205f')]==0x1?_0x46d100[_0x567b68('0x1b33')][0x0]:null,_0x427369[_0x567b68('0x5ed')]=_0x324d20[_0x567b68('0x1778')](_0x427369[_0x567b68('0xab4')]?_0x427369[_0x567b68('0xab4')][_0x567b68('0x5ed')]:null),_0x427369[_0x567b68('0x126a')]={},_0x427369['selectedTab']=_0x21e388['params'][_0x567b68('0x12e1')]||0x0,_0x427369[_0x567b68('0x1111')]=_0x159b2a,_0x427369[_0x567b68('0x1297')]=_0x3755fc,_0x427369[_0x567b68('0x95b')]=_0x2d4779[_0x567b68('0x231c')],_0x427369[_0x567b68('0x6ac')]=_0x577f71,_0x427369[_0x567b68('0xd5a')]=_0x2de6b1;function _0x159b2a(_0x7d6436,_0x3f849d){var _0x43433c=_0x567b68;_0x1a8557[_0x43433c('0x853')]({'controller':'MailQueueteamaddController','controllerAs':'vm','templateUrl':_0x161591,'parent':angular[_0x43433c('0x1676')](_0x55156e['body']),'targetEvent':_0x3f849d,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x7d6436,'mailQueues':_0x427369[_0x43433c('0x2216')]?_0x427369[_0x43433c('0x2216')]['rows']:[],'crudPermissions':_0x427369[_0x43433c('0x5ed')]}});}function _0x3755fc(_0x1941d1,_0x32255c){var _0x1b01f3=_0x567b68;_0x1a8557[_0x1b01f3('0x853')]({'controller':_0x1b01f3('0xc81'),'controllerAs':'vm','templateUrl':_0x1c3953,'parent':angular['element'](_0x55156e[_0x1b01f3('0x2452')]),'targetEvent':_0x32255c,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x1941d1,'mailQueues':_0x427369[_0x1b01f3('0x2216')]?_0x427369[_0x1b01f3('0x2216')][_0x1b01f3('0x1b33')]:[],'crudPermissions':_0x427369['crudPermissions'],'realtime':![]}});}function _0x577f71(){var _0x393741=_0x567b68;_0x21e388['go'](_0x393741('0x2341'),{},{'reload':'app.mail.mailQueues'});}function _0x2de6b1(){var _0x1d8da3=_0x567b68;_0x2ed301[_0x1d8da3('0xb3')][_0x1d8da3('0x5ef')]({'id':_0x427369[_0x1d8da3('0xb3')]['id']},_0x427369[_0x1d8da3('0xb3')])[_0x1d8da3('0x1376')]['then'](function(){var _0x1dd691=_0x1d8da3;_0x2d4779[_0x1dd691('0xdb1')]({'title':'MailQueue\x20updated!','msg':_0x427369[_0x1dd691('0xb3')][_0x1dd691('0x19fe')]?_0x427369['mailQueue'][_0x1dd691('0x19fe')]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x49d10d){var _0x577995=_0x1d8da3;_0x2d4779[_0x577995('0x2092')]({'title':_0x49d10d[_0x577995('0x209')]?_0x577995('0x22d')+_0x49d10d[_0x577995('0x209')]+_0x577995('0xa99')+_0x49d10d['statusText']:_0x577995('0x18f5'),'msg':_0x49d10d[_0x577995('0x11c2')]?JSON[_0x577995('0x25e')](_0x49d10d[_0x577995('0x11c2')]):_0x49d10d['toString']()});});}}const _0x1c7404=_0x4fb3b3;_0x3eca9c[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),'$state','$mdSidenav',_0x3877e3('0x1850'),'$document',_0x3877e3('0x2313'),_0x3877e3('0x13c1'),_0x3877e3('0x2216'),'userProfile',_0x3877e3('0xab4'),'api',_0x3877e3('0x12d9'),'toasty','Auth','license','setting'];function _0x3eca9c(_0x10da65,_0x521981,_0x5e61ff,_0x39d5c0,_0x3c0a0b,_0xad8641,_0xfc6da4,_0x13bf31,_0xb232cf,_0x2b04d8,_0x5b2e2d,_0x122dd5,_0x244618,_0x23c165,_0x1c9a20,_0x20c956,_0x5435d9){var _0x3d0adc=_0x3877e3,_0x1bd12f=this;_0x1bd12f[_0x3d0adc('0x2ff')]=_0x20c956,_0x1bd12f[_0x3d0adc('0x21e')]=_0x5435d9,_0x1bd12f[_0x3d0adc('0x123f')]=_0x1c9a20[_0x3d0adc('0x15ed')](),_0x1bd12f['mailQueues']=_0xb232cf||{'count':0x0,'rows':[]},_0x1bd12f[_0x3d0adc('0x758')]=_0x2b04d8,_0x1bd12f['userProfileSection']=_0x5b2e2d&&_0x5b2e2d[_0x3d0adc('0x205f')]==0x1?_0x5b2e2d[_0x3d0adc('0x1b33')][0x0]:null,_0x1bd12f[_0x3d0adc('0x5ed')]=_0x1c9a20[_0x3d0adc('0x1778')](_0x1bd12f['userProfileSection']?_0x1bd12f[_0x3d0adc('0xab4')][_0x3d0adc('0x5ed')]:null),_0x1bd12f[_0x3d0adc('0x1897')]=_0x3d0adc('0x2216'),_0x1bd12f[_0x3d0adc('0x11dc')]='',_0x1bd12f[_0x3d0adc('0x18cf')]=null,_0x1bd12f[_0x3d0adc('0xa38')]=[],_0x1bd12f[_0x3d0adc('0x77')]={'fields':_0x3d0adc('0x87f'),'sort':'-updatedAt','channel':'mail','limit':0xa,'page':0x1},_0x1bd12f[_0x3d0adc('0x556')]=_0x86640f()['keyBy']([{'option':_0x3d0adc('0x5a0'),'value':_0x3d0adc('0x11a3')},{'option':_0x3d0adc('0x1106'),'value':'\x27rrmemory\x27'}],function(_0x1383e6){var _0x116076=_0x3d0adc;return _0x86640f()[_0x116076('0x16e4')](_0x1383e6[_0x116076('0x2228')],new RegExp('\x27','g'),'');}),_0x1bd12f['editstate']=_0x18bb37,_0x1bd12f['teamadddialog']=_0x182c42,_0x1bd12f[_0x3d0adc('0x1297')]=_0x3df6f1,_0x1bd12f[_0x3d0adc('0x2593')]=_0x15cd57,_0x1bd12f[_0x3d0adc('0x1db4')]=_0x4182a8,_0x1bd12f['success']=_0x2a2782,_0x1bd12f['getMailQueues']=_0xa3bb6e,_0x1bd12f[_0x3d0adc('0xd8e')]=_0x49d43b,_0x1bd12f[_0x3d0adc('0x1092')]=_0x2559bd,_0x1bd12f[_0x3d0adc('0x394')]=_0x35ce61,_0x1bd12f['deleteSelectedMailQueues']=_0x15f360,_0x1bd12f['deselectMailQueues']=_0x5a7e49,_0x1bd12f['selectAllMailQueues']=_0xb0ad5f;function _0x18bb37(_0x30d50e){var _0x3b1bd7=_0x3d0adc;_0x5e61ff['go']('app.mail.mailQueues.edit',{'id':_0x30d50e['id'],'mailQueue':_0x30d50e,'crudPermissions':_0x1bd12f[_0x3b1bd7('0x5ed')]});}function _0x182c42(_0x59243c,_0x5d3d49){var _0xb0ca28=_0x3d0adc;_0x3c0a0b[_0xb0ca28('0x853')]({'controller':_0xb0ca28('0x2f2'),'controllerAs':'vm','templateUrl':_0x161591,'parent':angular['element'](_0xad8641[_0xb0ca28('0x2452')]),'targetEvent':_0x5d3d49,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x59243c,'mailQueues':_0x1bd12f[_0xb0ca28('0x2216')]?_0x1bd12f[_0xb0ca28('0x2216')][_0xb0ca28('0x1b33')]:[],'crudPermissions':_0x1bd12f[_0xb0ca28('0x5ed')]}});}function _0x3df6f1(_0x3dbb8c,_0x163d96){var _0x52f4e0=_0x3d0adc;_0x3c0a0b['show']({'controller':_0x52f4e0('0xc81'),'controllerAs':'vm','templateUrl':_0x1c3953,'parent':angular[_0x52f4e0('0x1676')](_0xad8641['body']),'targetEvent':_0x163d96,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x3dbb8c,'mailQueues':_0x1bd12f[_0x52f4e0('0x2216')]?_0x1bd12f[_0x52f4e0('0x2216')][_0x52f4e0('0x1b33')]:[],'crudPermissions':_0x1bd12f[_0x52f4e0('0x5ed')],'realtime':![]}});}function _0x15cd57(_0x59e50e,_0x3d69ed){var _0x486ce5=_0x3d0adc,_0x5a640c=_0x3c0a0b['confirm']()[_0x486ce5('0x4b4')](_0x486ce5('0x25b6')+_0x86640f()[_0x486ce5('0x2159')](_0x486ce5('0xb3'))+'?')[_0x486ce5('0x276b')](_0x486ce5('0x622')+(_0x59e50e[_0x486ce5('0x19fe')]||'mailQueue')+'
'+_0x486ce5('0x25e0'))['ariaLabel'](_0x486ce5('0x54'))[_0x486ce5('0x1e6d')](_0x3d69ed)['ok']('OK')[_0x486ce5('0x3b5')]('CANCEL');_0x3c0a0b[_0x486ce5('0x853')](_0x5a640c)[_0x486ce5('0x21ad')](function(){_0x2559bd(_0x59e50e);},function(){var _0x155789=_0x486ce5;console['log'](_0x155789('0x284b'));});}function _0x4182a8(){var _0x1aca3a=_0x3d0adc;if(_0x1c9a20[_0x1aca3a('0x21de')](_0x1aca3a('0x1bd8')))_0x5e61ff['go']('app.mail.realtime.queues',{});else return _0x122dd5[_0x1aca3a('0xab4')][_0x1aca3a('0x595')]({'userProfileId':_0x1c9a20[_0x1aca3a('0x15ed')]()[_0x1aca3a('0x1618')],'sectionId':0x262})[_0x1aca3a('0x1376')]['then'](function(_0x30a9ac){var _0x3b2567=_0x1aca3a,_0x208da7=_0x30a9ac&&_0x30a9ac['rows']?_0x30a9ac[_0x3b2567('0x1b33')][0x0]:null;_0x208da7&&_0x208da7[_0x3b2567('0x2296')]?_0x5e61ff['go'](_0x3b2567('0x14ca'),{}):_0x23c165['info']({'title':_0x13bf31[_0x3b2567('0x183e')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x13bf31[_0x3b2567('0x183e')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x1aca3a('0x1c1d')](function(_0x859f9e){var _0xd73b09=_0x1aca3a;_0x23c165['error']({'title':_0x859f9e[_0xd73b09('0x209')]?_0xd73b09('0x22d')+_0x859f9e[_0xd73b09('0x209')]+'\x20-\x20'+_0x859f9e[_0xd73b09('0x1808')]:_0xd73b09('0xb8'),'msg':_0x859f9e[_0xd73b09('0x209')]?JSON['stringify'](_0x859f9e[_0xd73b09('0x11c2')]):_0x859f9e[_0xd73b09('0x174f')]()});});}var _0xdc3488=!![],_0x1d3261=0x1;_0x10da65['$watch'](_0x3d0adc('0x1948'),function(_0x16cf98,_0x274c85){var _0x47bfd4=_0x3d0adc;_0xdc3488?_0xfc6da4(function(){_0xdc3488=![];}):(!_0x274c85&&(_0x1d3261=_0x1bd12f['query'][_0x47bfd4('0x2376')]),_0x16cf98!==_0x274c85&&(_0x1bd12f[_0x47bfd4('0x77')][_0x47bfd4('0x2376')]=0x1),!_0x16cf98&&(_0x1bd12f['query']['page']=_0x1d3261),_0x1bd12f[_0x47bfd4('0x1ef3')]());});function _0x2a2782(_0x3ed77b){var _0x3b4825=_0x3d0adc;_0x1bd12f[_0x3b4825('0x2216')]=_0x3ed77b||{'count':0x0,'rows':[]};}function _0xa3bb6e(){var _0x1b1ae9=_0x3d0adc;_0x1bd12f[_0x1b1ae9('0x77')][_0x1b1ae9('0x15a5')]=(_0x1bd12f[_0x1b1ae9('0x77')]['page']-0x1)*_0x1bd12f[_0x1b1ae9('0x77')][_0x1b1ae9('0x1f4a')],_0x1c9a20[_0x1b1ae9('0x21de')](_0x1b1ae9('0x1bd8'))?_0x1bd12f[_0x1b1ae9('0x71b')]=_0x122dd5[_0x1b1ae9('0xb3')][_0x1b1ae9('0x595')](_0x1bd12f[_0x1b1ae9('0x77')],_0x2a2782)['$promise']:(_0x1bd12f[_0x1b1ae9('0x77')]['id']=_0x1bd12f[_0x1b1ae9('0x758')]['id'],_0x1bd12f[_0x1b1ae9('0x77')][_0x1b1ae9('0x26ad')]=_0x1b1ae9('0x451'),_0x1bd12f[_0x1b1ae9('0x71b')]=_0x122dd5['userProfile']['getResources'](_0x1bd12f[_0x1b1ae9('0x77')],_0x2a2782)[_0x1b1ae9('0x1376')]);}function _0x49d43b(_0x4ff269,_0x21f7df){var _0x44d926=_0x3d0adc;_0x3c0a0b[_0x44d926('0x853')]({'controller':_0x44d926('0xb'),'controllerAs':'vm','templateUrl':_0x28f06a,'parent':angular[_0x44d926('0x1676')](_0xad8641[_0x44d926('0x2452')]),'targetEvent':_0x4ff269,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x21f7df,'mailQueues':_0x1bd12f[_0x44d926('0x2216')][_0x44d926('0x1b33')],'license':_0x1bd12f[_0x44d926('0x2ff')],'setting':_0x1bd12f['setting'],'crudPermissions':_0x1bd12f[_0x44d926('0x5ed')]}});}function _0x2559bd(_0x4eb8e4){var _0x2e387e=_0x3d0adc;_0x122dd5[_0x2e387e('0xb3')][_0x2e387e('0x1164')]({'id':_0x4eb8e4['id']})['$promise']['then'](function(){var _0x821830=_0x2e387e;_0x86640f()['remove'](_0x1bd12f[_0x821830('0x2216')][_0x821830('0x1b33')],{'id':_0x4eb8e4['id']}),_0x1bd12f[_0x821830('0x2216')][_0x821830('0x205f')]-=0x1,!_0x1bd12f[_0x821830('0x2216')][_0x821830('0x1b33')][_0x821830('0x577')]&&_0x1bd12f[_0x821830('0x1ef3')](),_0x23c165[_0x821830('0xdb1')]({'title':_0x86640f()[_0x821830('0x2159')](_0x821830('0x363'))+_0x821830('0xe64'),'msg':_0x4eb8e4['name']?_0x4eb8e4[_0x821830('0x19fe')]+_0x821830('0xb4a'):''});})[_0x2e387e('0x1c1d')](function(_0x301284){var _0x28974c=_0x2e387e;if(_0x301284['data']&&_0x301284[_0x28974c('0x11c2')][_0x28974c('0x1a69')]&&_0x301284[_0x28974c('0x11c2')][_0x28974c('0x1a69')][_0x28974c('0x577')]){_0x1bd12f[_0x28974c('0x1a69')]=_0x301284[_0x28974c('0x11c2')]['errors']||[{'message':_0x301284['toString'](),'type':_0x28974c('0x1a72')}];for(var _0x36fdb9=0x0;_0x36fdb9<_0x301284[_0x28974c('0x11c2')][_0x28974c('0x1a69')]['length'];_0x36fdb9++){_0x23c165[_0x28974c('0x2092')]({'title':_0x301284[_0x28974c('0x11c2')][_0x28974c('0x1a69')][_0x36fdb9]['type'],'msg':_0x301284['data'][_0x28974c('0x1a69')][_0x36fdb9][_0x28974c('0x1224')]});}}else _0x23c165[_0x28974c('0x2092')]({'title':_0x301284['status']?'API:'+_0x301284[_0x28974c('0x209')]+_0x28974c('0xa99')+_0x301284['statusText']:'SYSTEM:DELETEmailQueue','msg':_0x301284[_0x28974c('0x11c2')]?JSON[_0x28974c('0x25e')](_0x301284[_0x28974c('0x11c2')][_0x28974c('0x1224')]):_0x301284[_0x28974c('0x1224')]||_0x301284['toString']()});});}function _0x35ce61(){var _0x4b4558=_0x3d0adc,_0x53e12d=angular[_0x4b4558('0xd75')](_0x1bd12f[_0x4b4558('0xa38')]);return _0x1bd12f[_0x4b4558('0xa38')]=[],_0x53e12d;}function _0x15f360(_0x776104){var _0x2b5349=_0x3d0adc,_0x10b34b=_0x3c0a0b[_0x2b5349('0xa33')]()[_0x2b5349('0x4b4')](_0x2b5349('0x9aa'))[_0x2b5349('0x276b')](''+_0x1bd12f['selectedMailQueues'][_0x2b5349('0x577')]+_0x2b5349('0xd74')+'\x20will\x20be\x20deleted.')[_0x2b5349('0x7a7')](_0x2b5349('0x13b1'))['targetEvent'](_0x776104)['ok']('OK')[_0x2b5349('0x3b5')](_0x2b5349('0x284b'));_0x3c0a0b['show'](_0x10b34b)[_0x2b5349('0x21ad')](function(){var _0x3e2cfe=_0x2b5349;_0x1bd12f[_0x3e2cfe('0xa38')]['forEach'](function(_0x5e8d9f){_0x2559bd(_0x5e8d9f);}),_0x1bd12f[_0x3e2cfe('0xa38')]=[];});}function _0x5a7e49(){var _0x453666=_0x3d0adc;_0x1bd12f[_0x453666('0xa38')]=[];}function _0xb0ad5f(){var _0x3fb963=_0x3d0adc;_0x1bd12f[_0x3fb963('0xa38')]=_0x1bd12f[_0x3fb963('0x2216')][_0x3fb963('0x1b33')];}}const _0x4f3604=_0x3eca9c;_0x34ce11[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),'$mdDialog','$q','$translate','toasty',_0x3877e3('0x231e'),_0x3877e3('0xa94'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x34ce11(_0x1b0cbb,_0x2c6d69,_0x418a83,_0x20aae2,_0x2a70c7,_0x2c3bf4,_0x11ce26,_0x4c736a,_0x46db8d,_0x2cfa8d,_0x10dc7b,_0x536a39,_0x4cd944,_0x324f2c){var _0xee764d=_0x3877e3,_0x50b603=this;_0x50b603[_0xee764d('0x123f')]=_0x10dc7b[_0xee764d('0x15ed')](),_0x50b603['errors']=[],_0x50b603[_0xee764d('0x21e')]=_0x4cd944,_0x50b603[_0xee764d('0x2ff')]=_0x536a39,_0x50b603[_0xee764d('0x5ed')]=_0x324f2c,_0x50b603[_0xee764d('0x126a')]={},_0x50b603[_0xee764d('0x1432')]=_0x50b603[_0xee764d('0x21e')]&&_0x50b603[_0xee764d('0x21e')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x50b603[_0xee764d('0x4b4')]='MAIL.EDIT_MAILSUBSTATUS',_0x50b603[_0xee764d('0xa94')]=angular[_0xee764d('0xd75')](_0x46db8d),_0x50b603[_0xee764d('0x231e')]=_0x4c736a,_0x50b603['newMailSubstatus']=![];!_0x50b603[_0xee764d('0xa94')]&&(_0x50b603[_0xee764d('0xa94')]={},_0x50b603[_0xee764d('0x4b4')]=_0xee764d('0x2574'),_0x50b603[_0xee764d('0x146c')]=!![]);_0x50b603[_0xee764d('0x1bda')]=_0xe77b37,_0x50b603[_0xee764d('0x5dc')]=_0x9afe29,_0x50b603[_0xee764d('0x1687')]=_0x2527ae,_0x50b603[_0xee764d('0x279')]=_0x2a43d9,_0x50b603['closeDialog']=_0x24f8d4;function _0xe77b37(){var _0x2d6920=_0xee764d;_0x50b603[_0x2d6920('0x1a69')]=[],_0x2cfa8d[_0x2d6920('0xa94')][_0x2d6920('0x186f')](_0x50b603[_0x2d6920('0xa94')])[_0x2d6920('0x1376')][_0x2d6920('0x21ad')](function(_0x253f28){var _0x658b50=_0x2d6920;_0x50b603[_0x658b50('0x231e')][_0x658b50('0xd0c')](_0x253f28[_0x658b50('0x3bc')]()),_0x11ce26[_0x658b50('0xdb1')]({'title':'MailSubstatus\x20properly\x20created','msg':_0x50b603[_0x658b50('0xa94')]['name']?_0x50b603[_0x658b50('0xa94')][_0x658b50('0x19fe')]+'\x20has\x20been\x20created!':''}),_0x24f8d4(_0x253f28);})['catch'](function(_0x548750){var _0x105e79=_0x2d6920;if(_0x548750[_0x105e79('0x11c2')]&&_0x548750[_0x105e79('0x11c2')][_0x105e79('0x1a69')]&&_0x548750['data'][_0x105e79('0x1a69')]['length']){_0x50b603[_0x105e79('0x1a69')]=_0x548750[_0x105e79('0x11c2')]['errors']||[{'message':_0x548750[_0x105e79('0x174f')](),'type':_0x105e79('0x1192')}];for(var _0x23d5e4=0x0;_0x23d5e4<_0x548750['data'][_0x105e79('0x1a69')]['length'];_0x23d5e4+=0x1){_0x11ce26[_0x105e79('0x2092')]({'title':_0x548750[_0x105e79('0x11c2')]['errors'][_0x23d5e4]['type'],'msg':_0x548750[_0x105e79('0x11c2')]['errors'][_0x23d5e4]['message']});}}else _0x11ce26[_0x105e79('0x2092')]({'title':_0x548750[_0x105e79('0x209')]?_0x105e79('0x22d')+_0x548750[_0x105e79('0x209')]+'\x20-\x20'+_0x548750[_0x105e79('0x1808')]:'api.mailSubstatus.save','msg':_0x548750['data']?JSON[_0x105e79('0x25e')](_0x548750[_0x105e79('0x11c2')]['message']):_0x548750[_0x105e79('0x174f')]()});});}function _0x9afe29(){var _0x422e10=_0xee764d;_0x50b603[_0x422e10('0x1a69')]=[],_0x2cfa8d[_0x422e10('0xa94')][_0x422e10('0x5ef')]({'id':_0x50b603[_0x422e10('0xa94')]['id']},_0x50b603[_0x422e10('0xa94')])[_0x422e10('0x1376')][_0x422e10('0x21ad')](function(_0x58b9b0){var _0x175364=_0x422e10,_0x58c908=_0x86640f()[_0x175364('0x1d2e')](_0x50b603[_0x175364('0x231e')],{'id':_0x58b9b0['id']});_0x58c908&&_0x86640f()[_0x175364('0xd0e')](_0x58c908,_0x86640f()[_0x175364('0xc50')](_0x58b9b0[_0x175364('0x3bc')](),_0x86640f()['keys'](_0x58c908))),_0x11ce26[_0x175364('0xdb1')]({'title':_0x175364('0x105a'),'msg':_0x50b603[_0x175364('0xa94')][_0x175364('0x19fe')]?_0x50b603[_0x175364('0xa94')][_0x175364('0x19fe')]+_0x175364('0x2249'):''}),_0x24f8d4(_0x58b9b0);})[_0x422e10('0x1c1d')](function(_0x125849){var _0x45f778=_0x422e10;if(_0x125849[_0x45f778('0x11c2')]&&_0x125849[_0x45f778('0x11c2')][_0x45f778('0x1a69')]&&_0x125849[_0x45f778('0x11c2')]['errors'][_0x45f778('0x577')]){_0x50b603['errors']=_0x125849['data']['errors']||[{'message':_0x125849['toString'](),'type':'api.mailSubstatus.update'}];for(var _0x41b798=0x0;_0x41b798<_0x125849[_0x45f778('0x11c2')][_0x45f778('0x1a69')]['length'];_0x41b798++){_0x11ce26[_0x45f778('0x2092')]({'title':_0x125849[_0x45f778('0x11c2')][_0x45f778('0x1a69')][_0x41b798][_0x45f778('0x7fa')],'msg':_0x125849[_0x45f778('0x11c2')]['errors'][_0x41b798]['message']});}}else _0x11ce26[_0x45f778('0x2092')]({'title':_0x125849[_0x45f778('0x209')]?_0x45f778('0x22d')+_0x125849['status']+_0x45f778('0xa99')+_0x125849[_0x45f778('0x1808')]:_0x45f778('0x2351'),'msg':_0x125849[_0x45f778('0x11c2')]?JSON[_0x45f778('0x25e')](_0x125849['data'][_0x45f778('0x1224')]):_0x125849[_0x45f778('0x174f')]()});});}function _0x2527ae(_0x6f2206){var _0x5c12ab=_0xee764d;_0x50b603['errors']=[];var _0x1df7f0=_0x20aae2['confirm']()[_0x5c12ab('0x4b4')](_0x5c12ab('0x196b'))[_0x5c12ab('0x13fb')](_0x5c12ab('0x885'))['ariaLabel'](_0x5c12ab('0x1d0'))['ok'](_0x5c12ab('0xbfd'))[_0x5c12ab('0x3b5')](_0x5c12ab('0x1f40'))['targetEvent'](_0x6f2206);_0x20aae2[_0x5c12ab('0x853')](_0x1df7f0)['then'](function(){var _0x2803a1=_0x5c12ab;_0x2cfa8d[_0x2803a1('0xa94')][_0x2803a1('0x1164')]({'id':_0x50b603[_0x2803a1('0xa94')]['id']})[_0x2803a1('0x1376')][_0x2803a1('0x21ad')](function(){var _0x539537=_0x2803a1;_0x86640f()[_0x539537('0x16a2')](_0x50b603['mailSubtatuses'],{'id':_0x50b603[_0x539537('0xa94')]['id']}),_0x11ce26[_0x539537('0xdb1')]({'title':'MailSubstatus\x20properly\x20deleted!','msg':(_0x50b603[_0x539537('0xa94')][_0x539537('0x19fe')]||_0x539537('0xa94'))+_0x539537('0xb4a')}),_0x24f8d4(_0x50b603[_0x539537('0xa94')]);})[_0x2803a1('0x1c1d')](function(_0x58a020){var _0xfe12c4=_0x2803a1;if(_0x58a020['data']&&_0x58a020[_0xfe12c4('0x11c2')][_0xfe12c4('0x1a69')]&&_0x58a020[_0xfe12c4('0x11c2')][_0xfe12c4('0x1a69')]['length']){_0x50b603[_0xfe12c4('0x1a69')]=_0x58a020[_0xfe12c4('0x11c2')][_0xfe12c4('0x1a69')]||[{'message':_0x58a020[_0xfe12c4('0x174f')](),'type':_0xfe12c4('0xa11')}];for(var _0x68f4c1=0x0;_0x68f4c1<_0x58a020[_0xfe12c4('0x11c2')][_0xfe12c4('0x1a69')][_0xfe12c4('0x577')];_0x68f4c1++){_0x11ce26['error']({'title':_0x58a020['data'][_0xfe12c4('0x1a69')][_0x68f4c1][_0xfe12c4('0x7fa')],'msg':_0x58a020[_0xfe12c4('0x11c2')][_0xfe12c4('0x1a69')][_0x68f4c1]['message']});}}else _0x11ce26[_0xfe12c4('0x2092')]({'title':_0x58a020[_0xfe12c4('0x209')]?_0xfe12c4('0x22d')+_0x58a020[_0xfe12c4('0x209')]+_0xfe12c4('0xa99')+_0x58a020[_0xfe12c4('0x1808')]:_0xfe12c4('0xa11'),'msg':_0x58a020[_0xfe12c4('0x11c2')]?JSON['stringify'](_0x58a020['data'][_0xfe12c4('0x1224')]):_0x58a020[_0xfe12c4('0x1224')]||_0x58a020[_0xfe12c4('0x174f')]()});});},function(){});}function _0x2a43d9(_0x157762){return _0x157762===null?undefined:new Date(_0x157762);}function _0x24f8d4(_0x57d269){_0x20aae2['hide'](_0x57d269);}}const _0x390f68=_0x34ce11,_0xc3b3ce=_0x398308['p']+'src/js/modules/main/apps/mail/views/mailSubtatuses/create/dialog.html/dialog-[chunkhash].html';_0x462e70[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$window',_0x3877e3('0xa9f'),'$mdSidenav',_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x13c1'),_0x3877e3('0x231e'),_0x3877e3('0x758'),'userProfileSection',_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1908'),'Auth',_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x462e70(_0x5393ce,_0x19d145,_0x4093bd,_0x557131,_0x286a48,_0x3c5eff,_0xd702e7,_0x366d11,_0xbb5cf8,_0x1a3fe2,_0x166ebf,_0x394c16,_0x5bcfed,_0x2d6237,_0x16f901,_0x5086ac,_0x515d6f){var _0x1b295d=_0x3877e3,_0x2cf4c8=this;_0x2cf4c8[_0x1b295d('0x2ff')]=_0x5086ac,_0x2cf4c8[_0x1b295d('0x21e')]=_0x515d6f,_0x2cf4c8[_0x1b295d('0x123f')]=_0x16f901['getCurrentUser'](),_0x2cf4c8[_0x1b295d('0x231e')]=_0xbb5cf8||{'count':0x0,'rows':[]},_0x2cf4c8['userProfile']=_0x1a3fe2,_0x2cf4c8['userProfileSection']=_0x166ebf&&_0x166ebf[_0x1b295d('0x205f')]==0x1?_0x166ebf[_0x1b295d('0x1b33')][0x0]:null,_0x2cf4c8[_0x1b295d('0x5ed')]=_0x16f901[_0x1b295d('0x1778')](_0x2cf4c8[_0x1b295d('0xab4')]?_0x2cf4c8[_0x1b295d('0xab4')][_0x1b295d('0x5ed')]:null),_0x2cf4c8[_0x1b295d('0x1897')]='mailSubtatuses',_0x2cf4c8['listOrder']='',_0x2cf4c8['listOrderAsc']=null,_0x2cf4c8[_0x1b295d('0xfcb')]=[],_0x2cf4c8[_0x1b295d('0x77')]={'fields':'createdAt,updatedAt,id,name,description','sort':_0x1b295d('0x33'),'limit':0xa,'page':0x1},_0x2cf4c8[_0x1b295d('0x1a97')]=_0x5b30be,_0x2cf4c8[_0x1b295d('0x2593')]=_0x352841,_0x2cf4c8['success']=_0x231aa2,_0x2cf4c8[_0x1b295d('0x284f')]=_0x42d7d1,_0x2cf4c8[_0x1b295d('0x8ec')]=_0x25de69,_0x2cf4c8[_0x1b295d('0x1687')]=_0x2ea20e,_0x2cf4c8['exportSelectedMailSubstatuses']=_0x16203a,_0x2cf4c8[_0x1b295d('0x26ba')]=_0x4e575c,_0x2cf4c8[_0x1b295d('0x7f0')]=_0x372ae9,_0x2cf4c8['selectAllMailSubstatuses']=_0x5e2c7f;function _0x5b30be(_0x129caf,_0x419c2e){var _0x391c33=_0x1b295d;_0x286a48[_0x391c33('0x853')]({'controller':_0x391c33('0x23f6'),'controllerAs':'vm','templateUrl':_0xc3b3ce,'parent':angular[_0x391c33('0x1676')](_0x3c5eff[_0x391c33('0x2452')]),'targetEvent':_0x419c2e,'clickOutsideToClose':!![],'locals':{'mailSubstatus':_0x129caf,'mailSubtatuses':_0x2cf4c8[_0x391c33('0x231e')][_0x391c33('0x1b33')],'license':_0x2cf4c8['license'],'setting':null,'crudPermissions':_0x2cf4c8['crudPermissions']}});}function _0x352841(_0x12b299,_0x5a2c1f){var _0x2184b5=_0x1b295d,_0x5d04f1=_0x286a48[_0x2184b5('0xa33')]()[_0x2184b5('0x4b4')](_0x2184b5('0x25b6')+_0x86640f()[_0x2184b5('0x2159')](_0x2184b5('0xa94'))+'?')[_0x2184b5('0x276b')](''+(_0x12b299[_0x2184b5('0x19fe')]||'mailSubstatus')+_0x2184b5('0x2135')+_0x2184b5('0x25e0'))[_0x2184b5('0x7a7')](_0x2184b5('0x6de'))[_0x2184b5('0x1e6d')](_0x5a2c1f)['ok']('OK')[_0x2184b5('0x3b5')](_0x2184b5('0x284b'));_0x286a48['show'](_0x5d04f1)[_0x2184b5('0x21ad')](function(){_0x2ea20e(_0x12b299);},function(){var _0x3a6abf=_0x2184b5;console[_0x3a6abf('0x6fb')](_0x3a6abf('0x284b'));});}var _0x28d890=!![],_0x194bf9=0x1;_0x5393ce[_0x1b295d('0x10e8')]('vm.query.filter',function(_0x1d1515,_0x199b16){var _0x498341=_0x1b295d;_0x28d890?_0xd702e7(function(){_0x28d890=![];}):(!_0x199b16&&(_0x194bf9=_0x2cf4c8[_0x498341('0x77')][_0x498341('0x2376')]),_0x1d1515!==_0x199b16&&(_0x2cf4c8[_0x498341('0x77')][_0x498341('0x2376')]=0x1),!_0x1d1515&&(_0x2cf4c8[_0x498341('0x77')][_0x498341('0x2376')]=_0x194bf9),_0x2cf4c8[_0x498341('0x284f')]());});function _0x231aa2(_0x2d2434){var _0x512bea=_0x1b295d;_0x2cf4c8[_0x512bea('0x231e')]=_0x2d2434||{'count':0x0,'rows':[]};}function _0x42d7d1(){var _0x3a8b78=_0x1b295d;_0x2cf4c8[_0x3a8b78('0x77')][_0x3a8b78('0x15a5')]=(_0x2cf4c8[_0x3a8b78('0x77')][_0x3a8b78('0x2376')]-0x1)*_0x2cf4c8[_0x3a8b78('0x77')][_0x3a8b78('0x1f4a')],_0x16f901[_0x3a8b78('0x21de')](_0x3a8b78('0x1bd8'))?_0x2cf4c8[_0x3a8b78('0x71b')]=_0x394c16['mailSubstatus']['get'](_0x2cf4c8[_0x3a8b78('0x77')],_0x231aa2)['$promise']:(_0x2cf4c8[_0x3a8b78('0x77')]['id']=_0x2cf4c8[_0x3a8b78('0x758')]['id'],_0x2cf4c8['query'][_0x3a8b78('0x26ad')]='MailSubstatuses',_0x2cf4c8[_0x3a8b78('0x71b')]=_0x394c16[_0x3a8b78('0x758')][_0x3a8b78('0x321')](_0x2cf4c8['query'],_0x231aa2)['$promise']);}function _0x25de69(_0x1bcd8a,_0xf0d961){var _0x1f8b22=_0x1b295d;_0x286a48[_0x1f8b22('0x853')]({'controller':_0x1f8b22('0x23f6'),'controllerAs':'vm','templateUrl':_0xc3b3ce,'parent':angular['element'](_0x3c5eff['body']),'targetEvent':_0x1bcd8a,'clickOutsideToClose':!![],'locals':{'mailSubstatus':_0xf0d961,'mailSubtatuses':_0x2cf4c8[_0x1f8b22('0x231e')][_0x1f8b22('0x1b33')],'license':_0x2cf4c8[_0x1f8b22('0x2ff')],'setting':_0x2cf4c8['setting'],'crudPermissions':_0x2cf4c8[_0x1f8b22('0x5ed')]}});}function _0x2ea20e(_0x3ca9b6){var _0x41d3a2=_0x1b295d;_0x394c16['mailSubstatus']['delete']({'id':_0x3ca9b6['id']})[_0x41d3a2('0x1376')][_0x41d3a2('0x21ad')](function(){var _0x1a4ecf=_0x41d3a2;_0x86640f()[_0x1a4ecf('0x16a2')](_0x2cf4c8['mailSubtatuses'][_0x1a4ecf('0x1b33')],{'id':_0x3ca9b6['id']}),_0x2cf4c8[_0x1a4ecf('0x231e')][_0x1a4ecf('0x205f')]-=0x1,!_0x2cf4c8['mailSubtatuses'][_0x1a4ecf('0x1b33')][_0x1a4ecf('0x577')]&&_0x2cf4c8['getMailSubstatuses'](),_0x2d6237[_0x1a4ecf('0xdb1')]({'title':_0x86640f()[_0x1a4ecf('0x2159')](_0x1a4ecf('0x1a8c'))+_0x1a4ecf('0xe64'),'msg':_0x3ca9b6[_0x1a4ecf('0x19fe')]?_0x3ca9b6[_0x1a4ecf('0x19fe')]+_0x1a4ecf('0xb4a'):''});})[_0x41d3a2('0x1c1d')](function(_0x12f725){var _0x5065e7=_0x41d3a2;if(_0x12f725[_0x5065e7('0x11c2')]&&_0x12f725[_0x5065e7('0x11c2')][_0x5065e7('0x1a69')]&&_0x12f725[_0x5065e7('0x11c2')][_0x5065e7('0x1a69')][_0x5065e7('0x577')]){_0x2cf4c8[_0x5065e7('0x1a69')]=_0x12f725[_0x5065e7('0x11c2')][_0x5065e7('0x1a69')]||[{'message':_0x12f725[_0x5065e7('0x174f')](),'type':_0x5065e7('0x1807')}];for(var _0x4410cd=0x0;_0x4410cd<_0x12f725[_0x5065e7('0x11c2')][_0x5065e7('0x1a69')][_0x5065e7('0x577')];_0x4410cd++){_0x2d6237['error']({'title':_0x12f725[_0x5065e7('0x11c2')][_0x5065e7('0x1a69')][_0x4410cd][_0x5065e7('0x7fa')],'msg':_0x12f725[_0x5065e7('0x11c2')]['errors'][_0x4410cd][_0x5065e7('0x1224')]});}}else _0x2d6237[_0x5065e7('0x2092')]({'title':_0x12f725[_0x5065e7('0x209')]?'API:'+_0x12f725[_0x5065e7('0x209')]+_0x5065e7('0xa99')+_0x12f725['statusText']:_0x5065e7('0x1807'),'msg':_0x12f725[_0x5065e7('0x11c2')]?JSON[_0x5065e7('0x25e')](_0x12f725[_0x5065e7('0x11c2')][_0x5065e7('0x1224')]):_0x12f725[_0x5065e7('0x1224')]||_0x12f725[_0x5065e7('0x174f')]()});});}function _0x16203a(){var _0x25c53e=angular['copy'](_0x2cf4c8['selectedMailSubstatuses']);return _0x2cf4c8['selectedMailSubstatuses']=[],_0x25c53e;}function _0x4e575c(_0x1a28a6){var _0x442fd7=_0x1b295d,_0x305f48=_0x286a48['confirm']()[_0x442fd7('0x4b4')](_0x442fd7('0x10f9'))[_0x442fd7('0x276b')](_0x442fd7('0x622')+_0x2cf4c8[_0x442fd7('0xfcb')]['length']+_0x442fd7('0xd74')+_0x442fd7('0x25e0'))[_0x442fd7('0x7a7')](_0x442fd7('0xb8c'))[_0x442fd7('0x1e6d')](_0x1a28a6)['ok']('OK')[_0x442fd7('0x3b5')](_0x442fd7('0x284b'));_0x286a48[_0x442fd7('0x853')](_0x305f48)[_0x442fd7('0x21ad')](function(){var _0x812aca=_0x442fd7;_0x2cf4c8['selectedMailSubstatuses'][_0x812aca('0x1a52')](function(_0x3a6516){_0x2ea20e(_0x3a6516);}),_0x2cf4c8['selectedMailSubstatuses']=[];});}function _0x372ae9(){_0x2cf4c8['selectedMailSubstatuses']=[];}function _0x5e2c7f(){var _0x551eba=_0x1b295d;_0x2cf4c8[_0x551eba('0xfcb')]=_0x2cf4c8[_0x551eba('0x231e')][_0x551eba('0x1b33')];}}const _0x573832=_0x462e70;_0x54be9b[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c'),_0x3877e3('0x972')];function _0x54be9b(_0x371e2f,_0x42bab5){var _0x5d4199=_0x3877e3;_0x371e2f[_0x5d4199('0x27e')](_0x5d4199('0x1dc8'),{'abstract':!![],'url':'/mail'})['state'](_0x5d4199('0x2341'),{'url':'/mailQueues','views':{'content@app':{'templateUrl':_0x52264b,'controller':'MailQueuesController\x20as\x20vm'}},'resolve':{'mailQueues':[_0x5d4199('0x354'),_0x5d4199('0x15bc'),function _0x59d713(_0x487d98,_0x488d97){var _0x313857=_0x5d4199;return _0x488d97[_0x313857('0x21de')](_0x313857('0x1bd8'))?_0x487d98['resolve'](_0x313857('0x1f33'),{'fields':_0x313857('0x87f'),'sort':'-updatedAt','channel':_0x313857('0x1c8b'),'limit':0xa,'offset':0x0}):_0x487d98[_0x313857('0x8ac')](_0x313857('0x52f'),{'id':_0x488d97[_0x313857('0x15ed')]()[_0x313857('0x1618')],'section':'MailQueues','fields':_0x313857('0x87f'),'sort':_0x313857('0x33'),'channel':_0x313857('0x1c8b'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5d4199('0x354'),_0x5d4199('0x15bc'),function _0x594b69(_0x9c069b,_0x575c7f){var _0x53d02c=_0x5d4199;return _0x575c7f[_0x53d02c('0x21de')](_0x53d02c('0x1bd8'))?null:_0x9c069b[_0x53d02c('0x8ac')](_0x53d02c('0x1e1d'),{'fields':_0x53d02c('0x1a00'),'id':_0x575c7f['getCurrentUser']()[_0x53d02c('0x1618')]});}],'userProfileSection':['apiResolver',_0x5d4199('0x15bc'),function _0x3eca2f(_0x5c9a87,_0x47b37d){var _0x57f203=_0x5d4199;return _0x47b37d[_0x57f203('0x21de')]('admin')?null:_0x5c9a87[_0x57f203('0x8ac')]('userProfileSection@get',{'fields':_0x57f203('0x1852'),'userProfileId':_0x47b37d[_0x57f203('0x15ed')]()[_0x57f203('0x1618')],'sectionId':0x259});}]},'authenticate':!![],'permissionId':0x259,'bodyClass':'mail'})[_0x5d4199('0x27e')]('app.mail.mailQueues.edit',{'url':'/:id?tab','params':{'mailQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3e9816,'controller':_0x5d4199('0x1ae9')}},'resolve':{'mailQueue':[_0x5d4199('0x354'),_0x5d4199('0x114e'),function _0x43f6e9(_0x27a72d,_0xb54fed){var _0x12f30f=_0x5d4199;return _0x27a72d[_0x12f30f('0x8ac')](_0x12f30f('0x1f33'),{'fields':_0x12f30f('0x87f'),'id':_0xb54fed['id']});}],'userProfileSection':[_0x5d4199('0x354'),_0x5d4199('0x15bc'),function _0x308ce4(_0x137613,_0x42ba57){var _0x10dccf=_0x5d4199;return _0x137613[_0x10dccf('0x8ac')]('userProfileSection@get',{'fields':_0x10dccf('0x1852'),'userProfileId':_0x42ba57['getCurrentUser']()[_0x10dccf('0x1618')],'sectionId':0x259});}]},'authenticate':!![],'permissionId':0x259,'bodyClass':_0x5d4199('0x1c8b')})[_0x5d4199('0x27e')](_0x5d4199('0x1835'),{'url':_0x5d4199('0x14cc'),'views':{'content@app':{'templateUrl':_0x1659ac,'controller':_0x5d4199('0x8bd')}},'resolve':{'mailAccounts':[_0x5d4199('0x354'),_0x5d4199('0x15bc'),function _0x24bbe0(_0x352a7b,_0x403168){var _0x442644=_0x5d4199;return _0x403168[_0x442644('0x21de')]('admin')?_0x352a7b[_0x442644('0x8ac')](_0x442644('0x1c56'),{'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':_0x442644('0x33'),'limit':0xa,'offset':0x0}):_0x352a7b[_0x442644('0x8ac')](_0x442644('0x52f'),{'id':_0x403168[_0x442644('0x15ed')]()[_0x442644('0x1618')],'section':_0x442644('0x230d'),'fields':_0x442644('0x26e0'),'sort':_0x442644('0x33'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5d4199('0x354'),'Auth',function _0x3c00f6(_0x25153a,_0x58ae33){var _0x42e382=_0x5d4199;return _0x58ae33[_0x42e382('0x21de')](_0x42e382('0x1bd8'))?null:_0x25153a['resolve']('userProfile@get',{'fields':_0x42e382('0x1a00'),'id':_0x58ae33[_0x42e382('0x15ed')]()[_0x42e382('0x1618')]});}],'userProfileSection':[_0x5d4199('0x354'),_0x5d4199('0x15bc'),function _0x1584e8(_0x2b7a94,_0x393b62){var _0x1790c4=_0x5d4199;return _0x393b62[_0x1790c4('0x21de')]('admin')?null:_0x2b7a94[_0x1790c4('0x8ac')](_0x1790c4('0x222f'),{'fields':_0x1790c4('0x1852'),'userProfileId':_0x393b62[_0x1790c4('0x15ed')]()[_0x1790c4('0x1618')],'sectionId':0x25a});}]},'authenticate':!![],'permissionId':0x25a,'bodyClass':_0x5d4199('0x1c8b')})[_0x5d4199('0x27e')]('app.mail.mailAccounts.edit',{'url':_0x5d4199('0x17f5'),'params':{'mailAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3e7c84,'controller':_0x5d4199('0x2070')}},'resolve':{'mailAccount':['apiResolver',_0x5d4199('0x114e'),function _0x4b2c53(_0x3a9dd8,_0x384885){var _0x3544be=_0x5d4199;return _0x3a9dd8['resolve']('mailAccount@get',{'fields':_0x3544be('0x26e0'),'id':_0x384885['id']});}],'userProfileSection':[_0x5d4199('0x354'),_0x5d4199('0x15bc'),function _0x165c4f(_0x56118b,_0x3d76ef){var _0x42dd1a=_0x5d4199;return _0x56118b[_0x42dd1a('0x8ac')](_0x42dd1a('0x222f'),{'fields':_0x42dd1a('0x1852'),'userProfileId':_0x3d76ef['getCurrentUser']()[_0x42dd1a('0x1618')],'sectionId':0x25a});}]},'authenticate':!![],'permissionId':0x25a,'bodyClass':_0x5d4199('0x1c8b')})[_0x5d4199('0x27e')]('app.mail.mailSubtatuses',{'url':_0x5d4199('0xe26'),'views':{'content@app':{'templateUrl':_0x213e37,'controller':_0x5d4199('0x20e5')}},'resolve':{'mailSubtatuses':['apiResolver',function _0x2c1339(_0x3423bd){var _0x40af1b=_0x5d4199;return _0x3423bd['resolve']('mailSubstatus@get',{'fields':_0x40af1b('0x145a'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x5d4199('0x15bc'),function _0xf65cc3(_0x2fb9af,_0x426227){var _0x318202=_0x5d4199;return _0x426227[_0x318202('0x21de')](_0x318202('0x1bd8'))?null:_0x2fb9af[_0x318202('0x8ac')](_0x318202('0x1e1d'),{'fields':_0x318202('0x1a00'),'id':_0x426227[_0x318202('0x15ed')]()['userProfileId']});}],'userProfileSection':[_0x5d4199('0x354'),_0x5d4199('0x15bc'),function _0x386f71(_0x370667,_0x6be744){var _0x96cc73=_0x5d4199;return _0x6be744[_0x96cc73('0x21de')](_0x96cc73('0x1bd8'))?null:_0x370667[_0x96cc73('0x8ac')](_0x96cc73('0x222f'),{'fields':_0x96cc73('0x1852'),'userProfileId':_0x6be744[_0x96cc73('0x15ed')]()['userProfileId'],'sectionId':0x25b});}]},'authenticate':!![],'permissionId':0x25b,'bodyClass':_0x5d4199('0x1c8b')}),_0x42bab5[_0x5d4199('0x20ab')]('app/main/apps/mail');}angular[_0x3877e3('0x20d5')](_0x3877e3('0x1dc8'),[_0x3877e3('0x240c'),_0x3877e3('0x1b0'),_0x3877e3('0xca'),_0x3877e3('0x1d76'),'mdColorPicker',_0x3877e3('0x25c7'),_0x3877e3('0x1182'),_0x3877e3('0x264a'),_0x3877e3('0x19'),_0x3877e3('0x335'),_0x3877e3('0xc90'),_0x3877e3('0x56d'),_0x3877e3('0xe2f'),'ngclipboard',_0x3877e3('0xf61'),_0x3877e3('0xe39'),_0x3877e3('0x25a2'),'material.components.expansionPanels','chart.js',_0x3877e3('0x1c54'),'app.mail.realtime'])[_0x3877e3('0x13')](_0x54be9b)[_0x3877e3('0x1d5a')]('CreateOrEditMailAccountDialogController',_0xd1c02f)['controller'](_0x3877e3('0x959'),_0x5281be)['controller'](_0x3877e3('0xbb6'),_0x398c9d)['controller'](_0x3877e3('0x26e7'),_0xe9778e)[_0x3877e3('0x1d5a')](_0x3877e3('0x2144'),_0x45f6f5)[_0x3877e3('0x1d5a')](_0x3877e3('0x1032'),_0x496702)[_0x3877e3('0x1d5a')](_0x3877e3('0x1aa9'),_0x3e6427)['controller']('EditMailAccountAppgotopDialogController',_0x4c80e1)['controller'](_0x3877e3('0x2776'),_0x25177b)[_0x3877e3('0x1d5a')](_0x3877e3('0x786'),_0x39d859)[_0x3877e3('0x1d5a')](_0x3877e3('0x12dc'),_0x5952ea)[_0x3877e3('0x1d5a')](_0x3877e3('0xb35'),_0x1dfbcf)[_0x3877e3('0x1d5a')]('EditMailAccountApptagDialogController',_0x4b817b)[_0x3877e3('0x1d5a')](_0x3877e3('0x3f4'),_0x332052)[_0x3877e3('0x1d5a')](_0x3877e3('0x6f1'),_0xaa2c5e)[_0x3877e3('0x1d5a')](_0x3877e3('0xecd'),_0x4bea6b)['controller'](_0x3877e3('0x2186'),_0x311519)[_0x3877e3('0x1d5a')](_0x3877e3('0x166'),_0x410a8b)[_0x3877e3('0x1d5a')](_0x3877e3('0x2b1'),_0xc922fe)[_0x3877e3('0x1d5a')](_0x3877e3('0xb'),_0x43c349)[_0x3877e3('0x1d5a')](_0x3877e3('0xc81'),_0x16fd46)[_0x3877e3('0x1d5a')](_0x3877e3('0x2f2'),_0x4399cc)[_0x3877e3('0x1d5a')](_0x3877e3('0x692'),_0x1c7404)[_0x3877e3('0x1d5a')](_0x3877e3('0x1535'),_0x4f3604)['controller'](_0x3877e3('0x23f6'),_0x390f68)['controller']('MailSubstatusesController',_0x573832);const _0x2a010b=_0x398308['p']+_0x3877e3('0x1c7d'),_0x48bdca=_0x398308['p']+_0x3877e3('0x712'),_0x5f178f=_0x398308['p']+_0x3877e3('0x1c79');_0x223004[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$q',_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x143b'),_0x3877e3('0x1fc7'),_0x3877e3('0xcb5'),_0x3877e3('0x165c'),_0x3877e3('0xccd'),_0x3877e3('0x25d8'),_0x3877e3('0x1908'),'helperClasses',_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0x15bc'),'license',_0x3877e3('0x1e8d')];function _0x223004(_0x3b75e4,_0x236dd6,_0x35ae18,_0x5da86a,_0x4030fd,_0x3caeb6,_0x1f89c5,_0x29b926,_0x43d12c,_0x54a828,_0x4235f1,_0x2b090e,_0x1c7144,_0x187e43,_0x16417b,_0x14b16a,_0x124d74,_0x5dc460){var _0x338ff3=_0x3877e3,_0x1e5e1d=this,_0x4349d3=['userpic',_0x338ff3('0x1ecb'),_0x338ff3('0x190e'),_0x338ff3('0x1a2c'),_0x338ff3('0x1f37'),_0x338ff3('0x1a2c'),_0x338ff3('0x201f'),_0x338ff3('0x1ba3'),_0x338ff3('0x1785'),'openchannelPause',_0x338ff3('0x1396'),_0x338ff3('0x2826'),_0x338ff3('0x14bf'),'faxPause','voicePause',_0x338ff3('0x1887'),_0x338ff3('0x9db'),_0x338ff3('0x10e4'),_0x338ff3('0xac0'),_0x338ff3('0x1570'),_0x338ff3('0xa28'),'chatCurrentCapacity',_0x338ff3('0x1ce9'),_0x338ff3('0x4f9'),_0x338ff3('0x8db'),_0x338ff3('0xe1'),_0x338ff3('0x1317'),_0x338ff3('0x1cf9'),_0x338ff3('0xf0'),'mailStatus',_0x338ff3('0xe4'),_0x338ff3('0x1b28'),_0x338ff3('0x282'),_0x338ff3('0x27ea'),_0x338ff3('0x1ffc'),_0x338ff3('0x116'),'mailStatusTime',_0x338ff3('0x1a1'),_0x338ff3('0x18fb'),_0x338ff3('0x27b6'),'voiceStatusTime','queue','destconnectedlinenum',_0x338ff3('0x17f4'),_0x338ff3('0x1d44'),_0x338ff3('0x2422')],_0x422519=[_0x338ff3('0x1785'),_0x338ff3('0x2022'),_0x338ff3('0x1396'),'smsPause',_0x338ff3('0x14bf'),'faxPause','voicePause',_0x338ff3('0x1ecb')];_0x1e5e1d[_0x338ff3('0x123f')]=_0x14b16a[_0x338ff3('0x15ed')](),_0x1e5e1d[_0x338ff3('0x16b3')]=['ringing',_0x338ff3('0x1d37'),'busy','onhold',_0x338ff3('0x255e')],_0x1e5e1d[_0x338ff3('0x1fc7')]=_0x1f89c5||{'count':0x0,'rows':[]},_0x1e5e1d[_0x338ff3('0x2ff')]=_0x124d74,_0x1e5e1d['userProfile']=_0x187e43,_0x1e5e1d['userProfileSection']=_0x16417b&&_0x16417b[_0x338ff3('0x205f')]==0x1?_0x16417b[_0x338ff3('0x1b33')][0x0]:null,_0x1e5e1d['crudPermissions']=_0x14b16a[_0x338ff3('0x1778')](_0x1e5e1d[_0x338ff3('0xab4')]?_0x1e5e1d['userProfileSection'][_0x338ff3('0x5ed')]:null),_0x1e5e1d[_0x338ff3('0xcb5')]=_0x29b926?_0x86640f()['keyBy'](_0x29b926[_0x338ff3('0x1b33')]?_0x29b926['rows']:[],'id'):{},_0x1e5e1d[_0x338ff3('0x165c')]=_0x43d12c?_0x86640f()[_0x338ff3('0xcde')](_0x43d12c['rows']?_0x43d12c['rows']:[],'id'):{},_0x1e5e1d['paginatedAgents']={},_0x1e5e1d[_0x338ff3('0x20ad')]=![],_0x1e5e1d[_0x338ff3('0x2752')]=[],_0x1e5e1d[_0x338ff3('0x24ee')]={};for(var _0x36d1b6 in _0x1e5e1d[_0x338ff3('0xcb5')]){typeof _0x1e5e1d[_0x338ff3('0xcb5')][_0x36d1b6]!=='undefined'&&(_0x1e5e1d['agents'][_0x36d1b6][_0x338ff3('0x1d75')]=!![]);}_0x1e5e1d['query']={'limit':0xa,'page':0x1,'order':'fullname','globalStatusFilter':'','pauseTypeFilter':''},_0x1e5e1d[_0x338ff3('0xda3')]=_0x9a089,_0x1e5e1d[_0x338ff3('0x9e9')]=_0x4d20e1,_0x1e5e1d['pause']=_0x42ae0c,_0x1e5e1d[_0x338ff3('0x17d')]=_0x3ce3d9,_0x1e5e1d[_0x338ff3('0xa45')]=_0x2393c9,_0x1e5e1d[_0x338ff3('0x106')]=_0x121ad3,_0x1e5e1d[_0x338ff3('0x694')]=_0x4e93e5,_0x1e5e1d[_0x338ff3('0xca6')]=_0x53c2b0,_0x1e5e1d[_0x338ff3('0x1044')]=_0x14809d,_0x1e5e1d['isPartialPause']=_0x327ccb,_0x1e5e1d[_0x338ff3('0x1b74')]=_0x30043f,_0x1e5e1d[_0x338ff3('0x27d7')]=_0x3c7ad0,_0x1e5e1d[_0x338ff3('0x1081')]=_0x4a2e15,_0x1e5e1d[_0x338ff3('0x7e0')]=_0x11f31b,_0x1e5e1d[_0x338ff3('0xebf')]=_0x123f93,_0x1e5e1d[_0x338ff3('0xcf2')]=_0x254415,_0x4235f1['on'](_0x338ff3('0x62b'),_0x1e5e1d[_0x338ff3('0x1b74')]),_0x4235f1['on'](_0x338ff3('0x21f4'),_0x1e5e1d[_0x338ff3('0x27d7')]),_0x4235f1['on'](_0x338ff3('0x19a7'),_0x1e5e1d['onConnect']),_0x4235f1['on'](_0x338ff3('0x1131'),_0x1e5e1d['onComplete']),_0x4a2e15();var _0x5b1288=_0x5dc460(function(){var _0x53d380=_0x338ff3;_0x1e5e1d[_0x53d380('0x20ad')]&&(_0x1e5e1d['load']=![],_0x4a2e15());},0x3e7);function _0x4a2e15(){var _0x32f948=_0x338ff3;_0x1e5e1d[_0x32f948('0x20ad')]=![];var _0x193203=_0x236dd6[_0x32f948('0xca9')]();_0x1e5e1d['promise']=_0x193203[_0x32f948('0x71b')],_0x1e5e1d['filteredAgents']=[],_0x1e5e1d['order']=[],_0x86640f()[_0x32f948('0xd54')](_0x1e5e1d[_0x32f948('0xcb5')],function(_0x56346e,_0x2919f2){var _0x2f349b=_0x32f948;_0x1e5e1d['rpcAgents'][_0x2919f2]&&_0x86640f()[_0x2f349b('0xd0e')](_0x56346e,_0x86640f()['pick'](_0x86640f()[_0x2f349b('0x27b1')](_0x1e5e1d[_0x2f349b('0x165c')][_0x2919f2],_0x422519),_0x4349d3)),_0x4e93e5(_0x56346e),_0x56346e[_0x2f349b('0x1ecb')]?(_0x1e5e1d[_0x2f349b('0x1782')][_0x2f349b('0x206c')](_0x56346e),_0x1e5e1d['agentInternal'][_0x56346e[_0x2f349b('0x201f')]]=_0x2919f2):_0x56346e[_0x2f349b('0x1ea5')]=_0x86640f()[_0x2f349b('0x1662')](_0x1088bc()()[_0x2f349b('0x153')]('x'));});_0x1e5e1d[_0x32f948('0x77')]['globalStatusFilter']&&_0x86640f()[_0x32f948('0x16a2')](_0x1e5e1d['filteredAgents'],function(_0x36b2d2){var _0x431966=_0x32f948;return _0x36b2d2[_0x431966('0x100f')]!==_0x1e5e1d[_0x431966('0x77')]['globalStatusFilter'];});_0x1e5e1d[_0x32f948('0x77')][_0x32f948('0x1024')]&&_0x86640f()[_0x32f948('0x16a2')](_0x1e5e1d['filteredAgents'],function(_0x83d8db){var _0x157be2=_0x32f948;return _0x83d8db['pauseType']!==_0x1e5e1d[_0x157be2('0x77')][_0x157be2('0x1024')];});_0x1e5e1d[_0x32f948('0x77')][_0x32f948('0x1503')]&&_0x86640f()[_0x32f948('0x16a2')](_0x1e5e1d['filteredAgents'],function(_0x99ba34){var _0x16ba1f=_0x32f948;return _0x99ba34[_0x16ba1f('0x20f5')][_0x16ba1f('0xac2')]()[_0x16ba1f('0x2004')](_0x1e5e1d[_0x16ba1f('0x77')][_0x16ba1f('0x1503')][_0x16ba1f('0xac2')]())<0x0;});_0x1e5e1d[_0x32f948('0x1782')]=_0x4793aa(_0x1e5e1d[_0x32f948('0x1782')]);var _0x519153=(_0x1e5e1d['query'][_0x32f948('0x2376')]-0x1)*_0x1e5e1d[_0x32f948('0x77')][_0x32f948('0x1f4a')];_0x1e5e1d[_0x32f948('0x261a')]=_0x86640f()[_0x32f948('0x2189')](_0x1e5e1d[_0x32f948('0x1782')],_0x519153)[_0x32f948('0xb3d')](0x0,_0x1e5e1d[_0x32f948('0x77')]['limit']);for(var _0x5b021c=0x0;_0x5b021c<_0x1e5e1d[_0x32f948('0x261a')][_0x32f948('0x577')];_0x5b021c+=0x1){_0x1e5e1d[_0x32f948('0x2752')][_0x32f948('0x206c')](_0x1e5e1d[_0x32f948('0x261a')][_0x5b021c]['id']);}_0x193203[_0x32f948('0x8ac')](),_0x1e5e1d[_0x32f948('0x20ad')]=!![];}function _0x30043f(_0x381561){var _0x4cfca2=_0x338ff3;_0x1e5e1d[_0x4cfca2('0xcb5')][_0x381561['id']]&&(_0x86640f()[_0x4cfca2('0xd0e')](_0x1e5e1d[_0x4cfca2('0xcb5')][_0x381561['id']],_0x86640f()[_0x4cfca2('0xc50')](_0x86640f()[_0x4cfca2('0x27b1')](_0x381561,_0x422519),_0x4349d3)),_0x86640f()[_0x4cfca2('0xd0e')](_0x1e5e1d[_0x4cfca2('0x165c')][_0x381561['id']],_0x86640f()['pick'](_0x86640f()['omit'](_0x381561,_0x422519),_0x4349d3)),_0x4e93e5(_0x1e5e1d[_0x4cfca2('0xcb5')][_0x381561['id']]));}function _0x3c7ad0(_0x76422b){var _0x50ddac=_0x338ff3;_0x1e5e1d[_0x50ddac('0xcb5')][_0x76422b['id']]&&(_0x86640f()[_0x50ddac('0xd0e')](_0x1e5e1d[_0x50ddac('0xcb5')][_0x76422b['id']],_0x86640f()[_0x50ddac('0xc50')](_0x76422b,_0x4349d3)),_0x86640f()[_0x50ddac('0xd0e')](_0x1e5e1d[_0x50ddac('0x165c')][_0x76422b['id']],_0x86640f()[_0x50ddac('0xc50')](_0x76422b,_0x4349d3)),_0x76422b[_0x50ddac('0x1a2c')]&&(_0x1e5e1d[_0x50ddac('0xcb5')][_0x76422b['id']][_0x50ddac('0x1ea5')]=_0x76422b[_0x50ddac('0x1a2c')],_0x1e5e1d[_0x50ddac('0x165c')][_0x76422b['id']][_0x50ddac('0x1ea5')]=_0x76422b[_0x50ddac('0x1a2c')]),_0x4e93e5(_0x1e5e1d[_0x50ddac('0xcb5')][_0x76422b['id']]));}function _0x11f31b(_0x2d3233){var _0x36e77e=_0x338ff3;_0x1e5e1d['agents'][_0x1e5e1d['agentInternal'][_0x2d3233[_0x36e77e('0xe4e')]]]&&(_0x86640f()[_0x36e77e('0xd0e')](_0x1e5e1d[_0x36e77e('0xcb5')][_0x1e5e1d[_0x36e77e('0x24ee')][_0x2d3233[_0x36e77e('0xe4e')]]],_0x86640f()[_0x36e77e('0xc50')](_0x2d3233,['queue',_0x36e77e('0xa70')])),_0x86640f()[_0x36e77e('0xd0e')](_0x1e5e1d[_0x36e77e('0x165c')][_0x1e5e1d[_0x36e77e('0x24ee')][_0x2d3233[_0x36e77e('0xe4e')]]],_0x86640f()[_0x36e77e('0xc50')](_0x2d3233,[_0x36e77e('0xbdd'),'destconnectedlinenum'])));}function _0x123f93(_0x45a32f){var _0x5701dc=_0x338ff3;_0x1e5e1d[_0x5701dc('0xcb5')][_0x1e5e1d[_0x5701dc('0x24ee')][_0x45a32f['destaccountcode']]]&&(_0x1e5e1d[_0x5701dc('0xcb5')][_0x1e5e1d['agentInternal'][_0x45a32f['destaccountcode']]]=_0x86640f()[_0x5701dc('0x27b1')](_0x1e5e1d[_0x5701dc('0xcb5')][_0x1e5e1d[_0x5701dc('0x24ee')][_0x45a32f[_0x5701dc('0xe4e')]]],[_0x5701dc('0xbdd'),_0x5701dc('0xa70')]),_0x1e5e1d[_0x5701dc('0x165c')][_0x1e5e1d[_0x5701dc('0x24ee')][_0x45a32f[_0x5701dc('0xe4e')]]]=_0x86640f()[_0x5701dc('0x27b1')](_0x1e5e1d['rpcAgents'][_0x1e5e1d[_0x5701dc('0x24ee')][_0x45a32f['destaccountcode']]],['queue','destconnectedlinenum']));}function _0x9a089(_0x2018f2){var _0xceb4c2=_0x338ff3;return _0x54a828[_0xceb4c2('0x1775')]['logout']({'id':_0x2018f2['id'],'device':_0xceb4c2('0x116a'),'agent_id':_0x2018f2['id'],'agent_name':_0x2018f2[_0xceb4c2('0x19fe')]})[_0xceb4c2('0x1376')][_0xceb4c2('0x21ad')](function(){var _0x19555c=_0xceb4c2;_0x2b090e[_0x19555c('0xdb1')]({'title':_0x19555c('0x4b2'),'msg':_0x2018f2[_0x19555c('0x20f5')]+_0x19555c('0x1f57')}),_0x1e5e1d[_0x19555c('0xcb5')][_0x2018f2['id']]&&(_0x1e5e1d[_0x19555c('0xcb5')][_0x2018f2['id']][_0x19555c('0x1ecb')]=![]),_0x1e5e1d[_0x19555c('0x165c')][_0x2018f2['id']]&&(_0x1e5e1d[_0x19555c('0x165c')][_0x2018f2['id']][_0x19555c('0x1ecb')]=![]),_0x4a2e15();})[_0xceb4c2('0x1c1d')](function(_0x5bf1dd){var _0x4477bd=_0xceb4c2;_0x2b090e[_0x4477bd('0x2092')]({'title':_0x5bf1dd[_0x4477bd('0x209')]?_0x4477bd('0x22d')+_0x5bf1dd['status']+_0x4477bd('0xa99')+_0x5bf1dd['statusText']:_0x4477bd('0x1df9'),'msg':_0x5bf1dd['data']?JSON['stringify'](_0x5bf1dd[_0x4477bd('0x11c2')]['message']):_0x5bf1dd[_0x4477bd('0x174f')]()});});}function _0x42ae0c(_0xd3f558,_0x46004d){var _0x5dbcb8=_0x338ff3;return _0x54a828[_0x5dbcb8('0x1775')]['pause']({'id':_0xd3f558['id'],'type':_0x46004d})['$promise'][_0x5dbcb8('0x21ad')](function(_0x3fd3d3){var _0x9f414d=_0x5dbcb8;_0x1e5e1d['agents'][_0xd3f558['id']]&&_0x86640f()['merge'](_0x1e5e1d['agents'][_0xd3f558['id']],_0x86640f()[_0x9f414d('0xc50')](_0x3fd3d3,_0x4349d3)),_0x1e5e1d[_0x9f414d('0x165c')][_0xd3f558['id']]&&_0x86640f()[_0x9f414d('0xd0e')](_0x1e5e1d[_0x9f414d('0x165c')][_0xd3f558['id']],_0x86640f()['pick'](_0x3fd3d3,_0x4349d3)),_0x4e93e5(_0x1e5e1d['agents'][_0xd3f558['id']]);})['catch'](function(_0x28f809){var _0x28d46b=_0x5dbcb8;_0x2b090e[_0x28d46b('0x2092')]({'title':_0x28f809[_0x28d46b('0x209')]?_0x28d46b('0x22d')+_0x28f809['status']+_0x28d46b('0xa99')+_0x28f809[_0x28d46b('0x1808')]:_0x28d46b('0x1df9'),'msg':_0x28f809[_0x28d46b('0x11c2')]?JSON[_0x28d46b('0x25e')](_0x28f809[_0x28d46b('0x11c2')][_0x28d46b('0x1224')]):_0x28f809[_0x28d46b('0x174f')]()});});}function _0x3ce3d9(_0x316d77){var _0x2e91e0=_0x338ff3;return _0x54a828[_0x2e91e0('0x1775')]['unpause']({'id':_0x316d77['id']})['$promise'][_0x2e91e0('0x21ad')](function(_0x433b26){var _0x10bbe7=_0x2e91e0;_0x1e5e1d[_0x10bbe7('0xcb5')][_0x316d77['id']]&&_0x86640f()[_0x10bbe7('0xd0e')](_0x1e5e1d['agents'][_0x316d77['id']],_0x86640f()[_0x10bbe7('0xc50')](_0x433b26,_0x4349d3)),_0x1e5e1d[_0x10bbe7('0x165c')][_0x316d77['id']]&&_0x86640f()[_0x10bbe7('0xd0e')](_0x1e5e1d[_0x10bbe7('0x165c')][_0x316d77['id']],_0x86640f()[_0x10bbe7('0xc50')](_0x433b26,_0x4349d3)),_0x4e93e5(_0x1e5e1d[_0x10bbe7('0xcb5')][_0x316d77['id']]);})[_0x2e91e0('0x1c1d')](function(_0x43119d){var _0x37d053=_0x2e91e0;_0x2b090e[_0x37d053('0x2092')]({'title':_0x43119d[_0x37d053('0x209')]?'API:'+_0x43119d[_0x37d053('0x209')]+_0x37d053('0xa99')+_0x43119d[_0x37d053('0x1808')]:_0x37d053('0x1df9'),'msg':_0x43119d['data']?JSON['stringify'](_0x43119d[_0x37d053('0x11c2')][_0x37d053('0x1224')]):_0x43119d[_0x37d053('0x174f')]()});});}function _0x2393c9(_0x1442c9){var _0x583373=_0x338ff3;_0x5da86a[_0x583373('0x853')](_0x5da86a[_0x583373('0x95b')]()['clickOutsideToClose'](!![])[_0x583373('0x4b4')]('Legend')[_0x583373('0x276b')](_0x583373('0xfcf'))['ok']('Ok')[_0x583373('0x1e6d')](_0x1442c9));}function _0x4d20e1(_0x530b53,_0x3a0416){var _0x4c9857=_0x338ff3;_0x5da86a[_0x4c9857('0x853')]({'controller':_0x4c9857('0x213f'),'controllerAs':'vm','templateUrl':_0x287ed6,'parent':angular[_0x4c9857('0x1676')](_0x4030fd['body']),'targetEvent':_0x3a0416,'clickOutsideToClose':!![],'locals':{'agent':_0x530b53,'agents':[],'channel':'sms','direction':_0x4c9857('0x923'),'crudPermissions':_0x1e5e1d[_0x4c9857('0x5ed')]}});}function _0x53c2b0(_0x38a3be){var _0x429afb=_0x338ff3;return _0x38a3be===_0x429afb('0x1e26')||_0x38a3be===_0x429afb('0x1a4e');}function _0x14809d(_0x30467d){var _0x42798d=_0x338ff3;return _0x30467d===_0x42798d('0x1e26');}function _0x327ccb(_0x441c78){var _0x1ae63f=_0x338ff3;return _0x441c78===_0x1ae63f('0x1a4e');}function _0xc46716(_0x218200){var _0x18ad59=_0x338ff3;return _0x218200===_0x18ad59('0x219')||_0x218200===_0x18ad59('0x1a4f')||_0x218200==='unavailable'||_0x218200===_0x18ad59('0x200c')||_0x86640f()[_0x18ad59('0x1c7')](_0x218200);}function _0x121ad3(_0x4a3308,_0x5912e1){var _0x5a40d9=_0x338ff3;if(_0x5912e1==='voice'){if(_0x4a3308[_0x5912e1+'Status']!==_0x5a40d9('0x219'))return _0x4a3308[_0x5912e1+'Status'];if(_0x4a3308[_0x5912e1+_0x5a40d9('0xc77')])return _0x4a3308[_0x5912e1+_0x5a40d9('0x843')]='pause','pause';return _0x5a40d9('0x219');}else{if(_0x4a3308[_0x5912e1+_0x5a40d9('0xc77')])return _0x4a3308[_0x5912e1+_0x5a40d9('0x843')]=_0x5a40d9('0x1e26'),'pause';return _0x4a3308[_0x5912e1+_0x5a40d9('0x843')];}}function _0x4e93e5(_0x17fbff){var _0x2bd06e=_0x338ff3,_0xd1a82c=_0x2bd06e('0x1a4f');if(_0x86640f()[_0x2bd06e('0xc74')]([_0x121ad3(_0x17fbff,_0x2bd06e('0x8ed')),_0x121ad3(_0x17fbff,'chat'),_0x121ad3(_0x17fbff,_0x2bd06e('0x1c8b')),_0x121ad3(_0x17fbff,_0x2bd06e('0xac9')),_0x121ad3(_0x17fbff,_0x2bd06e('0x3d0')),_0x121ad3(_0x17fbff,'whatsapp'),_0x121ad3(_0x17fbff,'fax')],_0x53c2b0))_0xd1a82c=_0x2bd06e('0x1e26');else{if(_0x86640f()[_0x2bd06e('0x2664')]([_0x121ad3(_0x17fbff,_0x2bd06e('0x8ed')),_0x121ad3(_0x17fbff,_0x2bd06e('0x1f65')),_0x121ad3(_0x17fbff,_0x2bd06e('0x1c8b')),_0x121ad3(_0x17fbff,_0x2bd06e('0xac9')),_0x121ad3(_0x17fbff,_0x2bd06e('0x3d0')),_0x121ad3(_0x17fbff,_0x2bd06e('0x1ad4')),_0x121ad3(_0x17fbff,_0x2bd06e('0x93f'))],_0x53c2b0))_0xd1a82c=_0x2bd06e('0x1a4e');else _0x86640f()[_0x2bd06e('0xc74')]([_0x121ad3(_0x17fbff,'voice'),_0x121ad3(_0x17fbff,_0x2bd06e('0x1f65')),_0x121ad3(_0x17fbff,_0x2bd06e('0x1c8b')),_0x121ad3(_0x17fbff,_0x2bd06e('0xac9')),_0x121ad3(_0x17fbff,_0x2bd06e('0x3d0')),_0x121ad3(_0x17fbff,_0x2bd06e('0x1ad4')),_0x121ad3(_0x17fbff,_0x2bd06e('0x93f'))],_0xc46716)?_0xd1a82c=_0x2bd06e('0x219'):_0xd1a82c=_0x2bd06e('0x860');}_0x17fbff[_0x2bd06e('0x100f')]!==_0xd1a82c&&(_0x17fbff[_0x2bd06e('0x100f')]=_0xd1a82c,_0x17fbff['init']?(_0x17fbff['init']=![],_0x17fbff[_0x2bd06e('0x1ea5')]=_0x53c2b0(_0xd1a82c)?_0x86640f()['toNumber'](_0x1088bc()(_0x17fbff['lastPauseAt'])[_0x2bd06e('0x153')]('x')):_0x86640f()[_0x2bd06e('0x1847')]([_0x17fbff[_0x2bd06e('0xc0')],_0x17fbff[_0x2bd06e('0x1ffc')],_0x17fbff[_0x2bd06e('0xf73')],_0x17fbff[_0x2bd06e('0x1a1')],_0x17fbff[_0x2bd06e('0x18fb')],_0x17fbff[_0x2bd06e('0x116')],_0x17fbff[_0x2bd06e('0x27b6')]])):_0x17fbff['globalStatusTime']=_0x86640f()['toNumber'](_0x1088bc()()['format']('x')));}function _0x4793aa(_0x14a32e){var _0x594a1b=_0x338ff3,_0x4adb5a=_0x86640f()[_0x594a1b('0x2837')](_0x1e5e1d['query'][_0x594a1b('0x2752')],'-')?_0x594a1b('0x340'):'asc';return _0x86640f()[_0x594a1b('0x11df')](_0x14a32e,[_0x1e5e1d[_0x594a1b('0x77')][_0x594a1b('0x2752')]['replace']('-','')],[_0x4adb5a]);}function _0x23f0de(){_0x5b1288&&(_0x5dc460['cancel'](_0x5b1288),_0x5b1288=null);}function _0x254415(_0x2710ad,_0x46494f){var _0x315699=_0x338ff3;return _0x54a828['user'][_0x315699('0x5ef')]({'id':_0x2710ad['id']},{'screenrecording':_0x46494f})[_0x315699('0x1376')][_0x315699('0x1c1d')](function(_0x3e7e63){var _0x47880d=_0x315699;_0x2b090e[_0x47880d('0x2092')]({'title':_0x3e7e63[_0x47880d('0x209')]?'API:'+_0x3e7e63['status']+_0x47880d('0xa99')+_0x3e7e63[_0x47880d('0x1808')]:'api.user.update','msg':_0x3e7e63[_0x47880d('0x11c2')]?JSON[_0x47880d('0x25e')](_0x3e7e63[_0x47880d('0x11c2')][_0x47880d('0x1224')]):_0x3e7e63[_0x47880d('0x174f')]()});});}_0x3b75e4['$on'](_0x338ff3('0x1210'),function(){var _0x40bd8b=_0x338ff3;_0x4235f1[_0x40bd8b('0x16cc')](_0x40bd8b('0x62b')),_0x4235f1['removeAllListeners']('user:update'),_0x4235f1['removeAllListeners']('user:agentconnect'),_0x4235f1[_0x40bd8b('0x16cc')](_0x40bd8b('0x1131')),_0x23f0de();});}const _0x19c0da=_0x223004,_0x4d1172=_0x398308['p']+_0x3877e3('0x1e30'),_0x36c7f6=_0x398308['p']+_0x3877e3('0x1b96');_0xd38313['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0x2313'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x243f'),_0x3877e3('0x1e8d'),'queues',_0x3877e3('0x245'),_0x3877e3('0xccd'),_0x3877e3('0x25d8'),'toasty',_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0x15bc')];function _0xd38313(_0x39f0b9,_0x49a7de,_0x31dcfa,_0x1cd001,_0x1f8606,_0x25cd26,_0x3d058b,_0x1cd061,_0x2be6f6,_0x246e0a,_0x47f9b2,_0x4b45d4,_0x4854c7,_0x3e68e2){var _0x4e9373=_0x3877e3,_0x420bb2=this,_0x913534=[_0x4e9373('0x1efa'),_0x4e9373('0x21ef'),_0x4e9373('0x8b6'),_0x4e9373('0x4f6'),_0x4e9373('0xc37'),_0x4e9373('0x108'),'message',_0x4e9373('0x13dc'),_0x4e9373('0x1c4b'),'Trunk',_0x4e9373('0x250c')];_0x420bb2[_0x4e9373('0x123f')]=_0x3e68e2[_0x4e9373('0x15ed')](),_0x420bb2[_0x4e9373('0x205f')]=_0x3d058b['count']?_0x3d058b[_0x4e9373('0x205f')]:0x0,_0x420bb2[_0x4e9373('0xb7a')]=_0x3d058b?_0x86640f()[_0x4e9373('0xcde')](_0x3d058b[_0x4e9373('0x1b33')]?_0x3d058b[_0x4e9373('0x1b33')]:[],'id'):{},_0x420bb2['rpcQueues']=_0x1cd061?_0x86640f()[_0x4e9373('0xcde')](_0x1cd061[_0x4e9373('0x1b33')]?_0x1cd061['rows']:[],'id'):{},_0x420bb2[_0x4e9373('0x758')]=_0x4b45d4,_0x420bb2[_0x4e9373('0xab4')]=_0x4854c7&&_0x4854c7[_0x4e9373('0x205f')]==0x1?_0x4854c7[_0x4e9373('0x1b33')][0x0]:null,_0x420bb2[_0x4e9373('0x5ed')]=_0x3e68e2[_0x4e9373('0x1778')](_0x420bb2[_0x4e9373('0xab4')]?_0x420bb2[_0x4e9373('0xab4')][_0x4e9373('0x5ed')]:null);_0x3e68e2[_0x4e9373('0x21de')](_0x4e9373('0x1bd8'))?_0x420bb2[_0x4e9373('0x77')]={'type':_0x4e9373('0x923'),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0x420bb2[_0x4e9373('0x77')]={'id':_0x420bb2[_0x4e9373('0x123f')]['id'],'channel':'sms','type':_0x4e9373('0x923'),'sort':_0x4e9373('0x33'),'limit':0xa,'page':0x1};_0x420bb2['success']=_0x2204ef,_0x420bb2['getQueues']=_0x38b333,_0x420bb2[_0x4e9373('0x55e')]=_0x49a1f7,_0x420bb2[_0x4e9373('0x40b')]=_0x40d96a,_0x420bb2['updateQueue']=_0x3a7858,_0x420bb2[_0x4e9373('0x1b74')]=_0x5a05b7,_0x420bb2['onSaveMember']=_0x127f03,_0x420bb2['onRemoveMember']=_0x484ebb,_0x420bb2[_0x4e9373('0x22bf')]=_0x52ebc7,_0x420bb2[_0x4e9373('0xf80')]=_0xf52de0,_0x420bb2[_0x4e9373('0x27a5')]=_0x547651,_0x420bb2[_0x4e9373('0x14b')]=_0x1ddd44,_0x420bb2[_0x4e9373('0x2752')]=[],_0x86640f()[_0x4e9373('0xd54')](_0x420bb2[_0x4e9373('0xb7a')],function(_0xeec483){var _0x2e1a37=_0x4e9373;_0x420bb2[_0x2e1a37('0x2752')][_0x2e1a37('0x206c')](_0xeec483['id']);}),_0x246e0a['on'](_0x4e9373('0x2790'),_0x420bb2[_0x4e9373('0x1b74')]),_0x246e0a['on'](_0x4e9373('0x1c17'),_0x420bb2[_0x4e9373('0x7c7')]),_0x246e0a['on']('userSmsQueue:remove',_0x420bb2[_0x4e9373('0xc32')]),_0x246e0a['on']('user:update',_0x420bb2['onPause']),_0x246e0a['on']('userVoiceQueue:remove',_0x420bb2['onLogout']),_0x246e0a['on']('userVoiceQueue:save',_0x420bb2['onLogin']);function _0x1ddd44(){var _0x23e93e=_0x4e9373,_0xdd1262=[];return _0x86640f()['forIn'](_0x420bb2[_0x23e93e('0xb7a')],function(_0x5d5313,_0x369565){var _0x550816=_0x23e93e;_0x5d5313[_0x550816('0x250c')]=0x0,_0x5d5313[_0x550816('0x29')]=0x0,_0x420bb2[_0x550816('0xb7a')][_0x369565][_0x550816('0xcb5')]={},_0xdd1262[_0x550816('0x206c')](_0x2be6f6[_0x550816('0x754')][_0x550816('0xad6')]({'id':_0x369565})[_0x550816('0x1376')]),_0x420bb2[_0x550816('0x245')][_0x369565]&&_0x86640f()[_0x550816('0xd0e')](_0x5d5313,_0x86640f()[_0x550816('0xc50')](_0x420bb2[_0x550816('0x245')][_0x369565],_0x913534));}),_0x1cd001[_0x23e93e('0x1ba7')](_0xdd1262)['then'](function(_0x5a1580){var _0x381c65=_0x23e93e;for(var _0x5006c8=0x0;_0x5006c8<_0x5a1580[_0x381c65('0x577')];_0x5006c8+=0x1){for(var _0x20fc39=0x0;_0x20fc39<_0x5a1580[_0x5006c8][_0x381c65('0x1b33')][_0x381c65('0x577')];_0x20fc39++){_0x5a1580[_0x5006c8]['rows'][_0x20fc39]['paused']&&_0x420bb2[_0x381c65('0xb7a')][_0x5a1580[_0x5006c8]['rows'][_0x20fc39][_0x381c65('0x2dc')]][_0x381c65('0x250c')]++,_0x420bb2[_0x381c65('0xb7a')][_0x5a1580[_0x5006c8][_0x381c65('0x1b33')][_0x20fc39]['SmsQueueId']]['loggedInDb']++,_0x420bb2[_0x381c65('0xb7a')][_0x5a1580[_0x5006c8][_0x381c65('0x1b33')][_0x20fc39][_0x381c65('0x2dc')]]['agents'][_0x5a1580[_0x5006c8][_0x381c65('0x1b33')][_0x20fc39]['UserId']]=_0x5a1580[_0x5006c8]['rows'][_0x20fc39][_0x381c65('0x2dc')];}}})[_0x23e93e('0x1c1d')](function(_0x4e7f85){var _0xc823d8=_0x23e93e;console[_0xc823d8('0x2092')](_0x4e7f85);});}function _0x5a05b7(_0x5dda3d){var _0x310ffa=_0x4e9373;_0x420bb2[_0x310ffa('0xb7a')][_0x5dda3d['id']]&&_0x86640f()[_0x310ffa('0xd0e')](_0x420bb2[_0x310ffa('0xb7a')][_0x5dda3d['id']],_0x86640f()['pick'](_0x5dda3d,_0x913534));}function _0x127f03(_0x37f908){var _0x34ac5b=_0x4e9373;_0x420bb2[_0x34ac5b('0xb7a')][_0x37f908[_0x34ac5b('0x2dc')]]&&_0x420bb2[_0x34ac5b('0xb7a')][_0x37f908[_0x34ac5b('0x2dc')]][_0x34ac5b('0x29')]++;}function _0x484ebb(_0x417df6){var _0x4bb1e5=_0x4e9373;_0x420bb2[_0x4bb1e5('0xb7a')][_0x417df6[_0x4bb1e5('0x2dc')]]&&_0x420bb2[_0x4bb1e5('0xb7a')][_0x417df6[_0x4bb1e5('0x2dc')]][_0x4bb1e5('0x29')]--;}function _0x52ebc7(_0x49e0b1){var _0x51981f=_0x4e9373;console[_0x51981f('0x6fb')](_0x51981f('0x22bf'),_0x49e0b1);if(_0x49e0b1['voicePause'])_0x86640f()['forIn'](_0x420bb2[_0x51981f('0xb7a')],function(_0xe2482a){var _0x1536f5=_0x51981f;_0xe2482a[_0x1536f5('0xcb5')][_0x49e0b1['id']]&&(_0xe2482a['paused']+=0x1,console[_0x1536f5('0x6fb')](_0x1536f5('0x1e26')));});else!_0x49e0b1[_0x51981f('0x1025')]&&_0x86640f()[_0x51981f('0xd54')](_0x420bb2['queues'],function(_0x2e8b61){var _0x4102b4=_0x51981f;_0x2e8b61['agents'][_0x49e0b1['id']]&&(_0x2e8b61['paused']>0x0&&(_0x2e8b61[_0x4102b4('0x250c')]-=0x1,console[_0x4102b4('0x6fb')]('unpause')));});}function _0xf52de0(_0x3a4d65){var _0x4cfdd0=_0x4e9373;console[_0x4cfdd0('0x6fb')](_0x4cfdd0('0x1b6a'),_0x3a4d65),_0x420bb2[_0x4cfdd0('0xb7a')][_0x3a4d65[_0x4cfdd0('0x2dc')]]&&(_0x420bb2['queues'][_0x3a4d65[_0x4cfdd0('0x2dc')]][_0x4cfdd0('0x29')]+=0x1,_0x420bb2[_0x4cfdd0('0xb7a')][_0x3a4d65['SmsQueueId']]['agents'][_0x3a4d65[_0x4cfdd0('0x1dc6')]]=_0x3a4d65['SmsQueueId']);}function _0x547651(_0x3a8136){var _0x156754=_0x4e9373;console[_0x156754('0x6fb')](_0x156754('0x27a5'),_0x3a8136),_0x420bb2[_0x156754('0xb7a')][_0x3a8136[_0x156754('0x2dc')]]&&_0x420bb2[_0x156754('0xb7a')][_0x3a8136[_0x156754('0x2dc')]][_0x156754('0x29')]>0x0&&(_0x420bb2[_0x156754('0xb7a')][_0x3a8136['SmsQueueId']][_0x156754('0x29')]-=0x1,delete _0x420bb2[_0x156754('0xb7a')][_0x3a8136['SmsQueueId']]['agents'][_0x3a8136[_0x156754('0x1dc6')]]);}var _0x30739e=!![],_0x45ca68=0x1;_0x39f0b9[_0x4e9373('0x10e8')](_0x4e9373('0x1948'),function(_0x123d43,_0x4e3b5c){var _0x5855d6=_0x4e9373;_0x30739e?_0x49a7de(function(){_0x30739e=![];}):(!_0x4e3b5c&&(_0x45ca68=_0x420bb2['query']['page']),_0x123d43!==_0x4e3b5c&&(_0x420bb2[_0x5855d6('0x77')]['page']=0x1),!_0x123d43&&(_0x420bb2[_0x5855d6('0x77')][_0x5855d6('0x2376')]=_0x45ca68),_0x420bb2['getQueues']());});function _0x2204ef(_0x34f886){var _0x27dc5c=_0x4e9373;_0x420bb2['count']=_0x34f886['count'],_0x420bb2[_0x27dc5c('0xb7a')]=_0x34f886?_0x86640f()[_0x27dc5c('0xcde')](_0x34f886[_0x27dc5c('0x1b33')]?_0x34f886[_0x27dc5c('0x1b33')]:[],'id'):{};if(_0x34f886[_0x27dc5c('0x1b33')]){_0x420bb2[_0x27dc5c('0x2752')]=[];for(var _0x31dda5=0x0;_0x31dda5<_0x34f886[_0x27dc5c('0x1b33')][_0x27dc5c('0x577')];_0x31dda5++){_0x420bb2[_0x27dc5c('0x2752')]['push'](_0x34f886['rows'][_0x31dda5]['id']);}}_0x1ddd44();}function _0x38b333(){var _0x147e9a=_0x4e9373;_0x420bb2[_0x147e9a('0x77')]['offset']=(_0x420bb2[_0x147e9a('0x77')][_0x147e9a('0x2376')]-0x1)*_0x420bb2[_0x147e9a('0x77')][_0x147e9a('0x1f4a')],_0x3e68e2[_0x147e9a('0x21de')](_0x147e9a('0x1bd8'))?_0x420bb2[_0x147e9a('0x71b')]=_0x2be6f6[_0x147e9a('0x754')][_0x147e9a('0x595')](_0x420bb2[_0x147e9a('0x77')],_0x2204ef)[_0x147e9a('0x1376')]:(_0x420bb2[_0x147e9a('0x77')]['id']=_0x420bb2[_0x147e9a('0x758')]['id'],_0x420bb2[_0x147e9a('0x77')][_0x147e9a('0x26ad')]=_0x147e9a('0x280a'),_0x420bb2[_0x147e9a('0x71b')]=_0x2be6f6[_0x147e9a('0x758')]['getResources'](_0x420bb2[_0x147e9a('0x77')],_0x2204ef)[_0x147e9a('0x1376')]);}function _0x49a1f7(_0x39b70c,_0x260f6d){var _0x290d45=_0x4e9373;_0x31dcfa[_0x290d45('0x853')]({'controller':'CreateOrEditSmsQueueDialogController','controllerAs':'vm','templateUrl':_0x4d1172,'parent':angular[_0x290d45('0x1676')](_0x1f8606[_0x290d45('0x2452')]),'targetEvent':_0x39b70c,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x260f6d,'smsQueues':_0x86640f()[_0x290d45('0x1843')](_0x420bb2[_0x290d45('0xb7a')]),'license':null,'setting':null,'crudPermissions':_0x420bb2[_0x290d45('0x5ed')]}});}function _0x40d96a(_0x57895c,_0x108609){var _0x8030e=_0x4e9373;_0x31dcfa[_0x8030e('0x853')]({'controller':'SmsQueueagentaddController','controllerAs':'vm','templateUrl':_0x36c7f6,'parent':angular['element'](_0x1f8606[_0x8030e('0x2452')]),'targetEvent':_0x57895c,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x108609,'smsQueues':_0x420bb2[_0x8030e('0xb7a')]?_0x420bb2[_0x8030e('0xb7a')][_0x8030e('0x1b33')]:[],'realtime':![],'crudPermissions':_0x420bb2[_0x8030e('0x5ed')]}});}function _0x3a7858(_0x2b4543){var _0x1a97a7=_0x4e9373;return _0x2be6f6[_0x1a97a7('0x754')]['update'](_0x2b4543)[_0x1a97a7('0x1376')][_0x1a97a7('0x21ad')](function(){var _0x255db5=_0x1a97a7;_0x47f9b2[_0x255db5('0xdb1')]({'title':'Queue\x20properly\x20updated!','msg':_0x2b4543[_0x255db5('0x19fe')]?_0x2b4543[_0x255db5('0x19fe')]+_0x255db5('0xa8d'):''});})[_0x1a97a7('0x1c1d')](function(_0x515ef8){var _0x300c94=_0x1a97a7;_0x47f9b2[_0x300c94('0x2092')]({'title':_0x300c94('0xa52'),'msg':_0x515ef8[_0x300c94('0x1224')]});});}_0x39f0b9[_0x4e9373('0x1723')](_0x4e9373('0x1210'),function(){var _0x4ef902=_0x4e9373;_0x246e0a[_0x4ef902('0x16cc')](_0x4ef902('0x2790')),_0x246e0a[_0x4ef902('0x16cc')](_0x4ef902('0x27fe')),_0x246e0a[_0x4ef902('0x16cc')](_0x4ef902('0x1c17')),_0x246e0a[_0x4ef902('0x16cc')](_0x4ef902('0x21f4')),_0x246e0a[_0x4ef902('0x16cc')](_0x4ef902('0x3b0')),_0x246e0a[_0x4ef902('0x16cc')](_0x4ef902('0x1595'));});}const _0x506404=_0xd38313;function _0x153c30(){var _0x1f84f3=_0x3877e3;return{'status':{'registered':'green-300-fg\x20icon-checkbox-marked-circle','unregistered':_0x1f84f3('0xf93'),'lagged':_0x1f84f3('0xf93'),'reachable':'green-300-fg\x20icon-checkbox-marked-circle','unreachable':'red-300-fg\x20icon-close-circle','unknown':_0x1f84f3('0x24e9')},'state':{'unknown':'grey-fg\x20icon-phone-hangup','not_inuse':_0x1f84f3('0x2468'),'inuse':_0x1f84f3('0x270d'),'busy':'red-300-fg\x20icon-phone-locked','invalid':'grey-fg\x20icon-phone-hangup','unavailable':_0x1f84f3('0x6b3'),'ringing':_0x1f84f3('0x540'),'ringinuse':_0x1f84f3('0x540'),'onhold':_0x1f84f3('0x273a')},'channelStatus':{'ring':_0x1f84f3('0x540'),'up':_0x1f84f3('0x1dcd'),'hangup':_0x1f84f3('0xe0f')},'channelStatusOut':{'ring':_0x1f84f3('0x229b'),'up':_0x1f84f3('0x1dcd'),'hangup':_0x1f84f3('0xe0f')}};}const _0x36e4ee=_0x153c30;_0x4b6f9d[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x25d8')];function _0x4b6f9d(_0x3aab1b,_0x3af46f,_0x4d5cd4){var _0x5e21c3=_0x3877e3,_0x2948ef=this;_0x4d5cd4[_0x5e21c3('0x8d8')](),_0x4d5cd4[_0x5e21c3('0x663')](),_0x2948ef[_0x5e21c3('0x302')]=0x0;switch(_0x3af46f[_0x5e21c3('0x1ccb')][_0x5e21c3('0x19fe')]){case _0x5e21c3('0x4af'):_0x2948ef[_0x5e21c3('0x302')]=0x0;break;case _0x5e21c3('0x96e'):_0x2948ef[_0x5e21c3('0x302')]=0x1;break;default:_0x2948ef[_0x5e21c3('0x302')]=0x0,_0x3af46f['go']('app.sms.realtime.agents');}_0x3aab1b[_0x5e21c3('0x10e8')](_0x5e21c3('0xc2'),function(_0x1dd506,_0x48728f){var _0x2d8389=_0x5e21c3;if(_0x1dd506!==_0x48728f)switch(_0x1dd506){case 0x0:_0x3af46f['go'](_0x2d8389('0x4af'));break;case 0x1:_0x3af46f['go'](_0x2d8389('0x96e'));break;default:_0x3af46f['go'](_0x2d8389('0x4af'));}});}const _0x3a9bd2=_0x4b6f9d;_0x3fe674['$inject']=['$stateProvider'];function _0x3fe674(_0x140072){var _0x176a44=_0x3877e3;_0x140072[_0x176a44('0x27e')](_0x176a44('0x288'),{'url':_0x176a44('0x1b34'),'views':{'content@app':{'templateUrl':_0x2a010b,'controller':_0x176a44('0x24cd')}},'resolve':{'userProfile':['apiResolver',_0x176a44('0x15bc'),function _0x5de082(_0x24fa2d,_0x4c8013){var _0x5e82fe=_0x176a44;return _0x4c8013[_0x5e82fe('0x21de')]('admin')?null:_0x24fa2d[_0x5e82fe('0x8ac')]('userProfile@get',{'fields':_0x5e82fe('0x1a00'),'id':_0x4c8013[_0x5e82fe('0x15ed')]()[_0x5e82fe('0x1618')]});}],'userProfileSection':[_0x176a44('0x354'),_0x176a44('0x15bc'),function _0x16391e(_0x52bc11,_0x41ddf5){var _0x411153=_0x176a44;return _0x41ddf5[_0x411153('0x21de')](_0x411153('0x1bd8'))?null:_0x52bc11['resolve'](_0x411153('0x222f'),{'fields':_0x411153('0x1852'),'userProfileId':_0x41ddf5[_0x411153('0x15ed')]()[_0x411153('0x1618')],'sectionId':0x2c6});}]},'authenticate':!![],'permissionId':0x2c6})[_0x176a44('0x27e')](_0x176a44('0x4af'),{'url':_0x176a44('0x69c'),'controller':_0x176a44('0x2039'),'templateUrl':_0x48bdca,'resolve':{'pauses':[_0x176a44('0x354'),function _0x2f435b(_0xf163df){var _0x565ac9=_0x176a44;return _0xf163df[_0x565ac9('0x8ac')](_0x565ac9('0x12e0'),{'nolimit':!![]});}],'agents':[_0x176a44('0x354'),_0x176a44('0x15bc'),function _0x1879b1(_0x4b9651,_0x2dd812){var _0x355070=_0x176a44;return _0x2dd812[_0x355070('0x21de')]('admin')?_0x4b9651[_0x355070('0x8ac')](_0x355070('0x1913'),{'fields':_0x355070('0x856'),'role':_0x355070('0x2402'),'sort':_0x355070('0x20f5'),'nolimit':!![]}):_0x4b9651['resolve']('userProfile@getResources',{'id':_0x2dd812[_0x355070('0x15ed')]()[_0x355070('0x1618')],'section':_0x355070('0xfed'),'fields':_0x355070('0x856'),'role':_0x355070('0x2402'),'sort':_0x355070('0x20f5'),'nolimit':!![]});}],'userProfile':[_0x176a44('0x354'),_0x176a44('0x15bc'),function _0xf1fbbf(_0x4012bf,_0x4231b1){var _0x429c59=_0x176a44;return _0x4231b1['hasRole'](_0x429c59('0x1bd8'))?null:_0x4012bf[_0x429c59('0x8ac')](_0x429c59('0x1e1d'),{'fields':_0x429c59('0x1a00'),'id':_0x4231b1[_0x429c59('0x15ed')]()[_0x429c59('0x1618')]});}],'userProfileSection':[_0x176a44('0x354'),_0x176a44('0x15bc'),function _0xe27e28(_0x5af6b9,_0x224174){var _0x3faa63=_0x176a44;return _0x224174['hasRole'](_0x3faa63('0x1bd8'))?null:_0x5af6b9[_0x3faa63('0x8ac')]('userProfileSection@get',{'fields':_0x3faa63('0x1852'),'userProfileId':_0x224174[_0x3faa63('0x15ed')]()['userProfileId'],'sectionId':0xca});}],'rpcAgents':[_0x176a44('0x354'),function _0x5a4049(_0x20b8f8){var _0x385554=_0x176a44;return _0x20b8f8['resolve'](_0x385554('0x2685'));}]},'authenticate':!![],'permissionId':0x2c6})['state'](_0x176a44('0x96e'),{'url':'/queues','controller':_0x176a44('0x19c9'),'templateUrl':_0x5f178f,'resolve':{'queues':[_0x176a44('0x354'),_0x176a44('0x15bc'),function _0x55c0f6(_0x47f8ed,_0xb85368){var _0x308429=_0x176a44;return _0xb85368[_0x308429('0x21de')](_0x308429('0x1bd8'))?_0x47f8ed[_0x308429('0x8ac')](_0x308429('0x2793'),{'type':_0x308429('0x923'),'sort':_0x308429('0x33'),'limit':0xa,'offset':0x0}):_0x47f8ed['resolve'](_0x308429('0x52f'),{'id':_0xb85368['getCurrentUser']()[_0x308429('0x1618')],'section':_0x308429('0x280a'),'channel':_0x308429('0x3d0'),'type':'inbound','sort':_0x308429('0x33'),'limit':0xa,'page':0x1});}],'userProfile':[_0x176a44('0x354'),_0x176a44('0x15bc'),function _0x4ca6da(_0x709de6,_0x2b8b3d){var _0x395f4e=_0x176a44;return _0x2b8b3d[_0x395f4e('0x21de')](_0x395f4e('0x1bd8'))?null:_0x709de6['resolve'](_0x395f4e('0x1e1d'),{'fields':_0x395f4e('0x1a00'),'id':_0x2b8b3d[_0x395f4e('0x15ed')]()['userProfileId']});}],'userProfileSection':[_0x176a44('0x354'),_0x176a44('0x15bc'),function _0x1c701b(_0x43104d,_0x279db2){var _0x5cdb1a=_0x176a44;return _0x279db2[_0x5cdb1a('0x21de')](_0x5cdb1a('0x1bd8'))?null:_0x43104d[_0x5cdb1a('0x8ac')](_0x5cdb1a('0x222f'),{'fields':_0x5cdb1a('0x1852'),'userProfileId':_0x279db2[_0x5cdb1a('0x15ed')]()[_0x5cdb1a('0x1618')],'sectionId':0x2bd});}],'rpcQueues':[_0x176a44('0x354'),function _0x34f2a0(_0x58c383){var _0x2d3d97=_0x176a44;return _0x58c383[_0x2d3d97('0x8ac')](_0x2d3d97('0x23f8'));}]},'authenticate':!![],'permissionId':0x2c6});}angular['module']('app.sms.realtime',[])['config'](_0x3fe674)[_0x3877e3('0x1d5a')](_0x3877e3('0x9d'),_0x19c0da)['controller'](_0x3877e3('0x23f3'),_0x506404)['factory'](_0x3877e3('0x2703'),_0x36e4ee)[_0x3877e3('0x1d5a')](_0x3877e3('0x842'),_0x3a9bd2);const _0x24a3d8=_0x398308['p']+_0x3877e3('0x173a'),_0x47faea=_0x398308['p']+_0x3877e3('0x500'),_0x1ac032=_0x398308['p']+_0x3877e3('0x2120'),_0x48be6f=_0x398308['p']+_0x3877e3('0x901');_0x2cc69e[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x102b'),_0x3877e3('0xa10'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'license',_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x2cc69e(_0x25c30f,_0x564e39,_0x10fe98,_0x2a3379,_0x469fd5,_0x5b79c4,_0x13796d,_0x21f933,_0x1c53f7,_0x5dbfe2,_0x51a890,_0x154862,_0x28dd6e,_0x2e11fd){var _0x406a39=_0x3877e3,_0x4f8cef=this;_0x4f8cef[_0x406a39('0x123f')]=_0x51a890[_0x406a39('0x15ed')](),_0x4f8cef[_0x406a39('0x1a69')]=[],_0x4f8cef['setting']=_0x28dd6e,_0x4f8cef[_0x406a39('0x2ff')]=_0x154862,_0x4f8cef['crudPermissions']=_0x2e11fd,_0x4f8cef[_0x406a39('0x126a')]={},_0x4f8cef['passwordPattern']=_0x4f8cef[_0x406a39('0x21e')]&&_0x4f8cef[_0x406a39('0x21e')][_0x406a39('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4f8cef['title']=_0x406a39('0x241c'),_0x4f8cef[_0x406a39('0xa10')]=angular['copy'](_0x1c53f7),_0x4f8cef[_0x406a39('0x102b')]=_0x21f933,_0x4f8cef[_0x406a39('0x104e')]=![];!_0x4f8cef[_0x406a39('0xa10')]&&(_0x4f8cef[_0x406a39('0xa10')]={'remote':_0x10fe98[_0x406a39('0x1162')]()+'://'+_0x10fe98[_0x406a39('0x1c01')]()+(_0x10fe98['port']()?':'+_0x10fe98['port']():''),'type':_0x406a39('0x707'),'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x4f8cef[_0x406a39('0x4b4')]=_0x406a39('0x755'),_0x4f8cef[_0x406a39('0x104e')]=!![]);_0x564e39['params']['id']&&(_0x4f8cef[_0x406a39('0xa10')]['SmsAccountId']=_0x564e39[_0x406a39('0x171b')]['id']);_0x4f8cef['addNewSmsAccount']=_0x23c8a7,_0x4f8cef['saveSmsAccount']=_0x240782,_0x4f8cef[_0x406a39('0x1731')]=_0x3d868e,_0x4f8cef[_0x406a39('0x279')]=_0x3d6d90,_0x4f8cef[_0x406a39('0x167')]=_0x52777e,_0x51a890[_0x406a39('0x21de')](_0x406a39('0x1bd8'))?_0x5dbfe2[_0x406a39('0x11e0')][_0x406a39('0x595')]({'fields':_0x406a39('0x1aa8'),'sort':_0x406a39('0x19fe')})['$promise'][_0x406a39('0x21ad')](function(_0x33075f){var _0x5ced9c=_0x406a39;_0x4f8cef['lists']=_0x33075f[_0x5ced9c('0x1b33')]||[];})[_0x406a39('0x1c1d')](function(_0x2c085b){var _0x527757=_0x406a39;_0x13796d[_0x527757('0x2092')]({'title':_0x2c085b[_0x527757('0x209')]?_0x527757('0x22d')+_0x2c085b[_0x527757('0x209')]+_0x527757('0xa99')+_0x2c085b[_0x527757('0x1808')]:_0x527757('0xf59'),'msg':_0x2c085b[_0x527757('0x11c2')]?JSON[_0x527757('0x25e')](_0x2c085b[_0x527757('0x11c2')]):_0x2c085b['toString']()});}):_0x5dbfe2[_0x406a39('0x11e0')]['get']({'fields':_0x406a39('0x1aa8'),'sort':'name'})[_0x406a39('0x1376')][_0x406a39('0x21ad')](function(_0x41e609){var _0x54d033=_0x406a39;_0x4f8cef['lists']=_0x41e609[_0x54d033('0x1b33')]||[];})[_0x406a39('0x21ad')](function(){var _0x9fea3a=_0x406a39;return _0x5dbfe2[_0x9fea3a('0xab4')][_0x9fea3a('0x595')]({'userProfileId':_0x4f8cef[_0x9fea3a('0x123f')][_0x9fea3a('0x1618')],'sectionId':0x12d})['$promise'];})[_0x406a39('0x21ad')](function(_0x43ef40){var _0x1f6b93=_0x406a39,_0x5456f8=_0x43ef40&&_0x43ef40[_0x1f6b93('0x1b33')]?_0x43ef40['rows'][0x0]:null;if(!_0x5456f8){var _0x28f6b8=[],_0x42538b=null;_0x4f8cef[_0x1f6b93('0xa10')]&&(_0x42538b=_0x86640f()[_0x1f6b93('0x1d2e')](_0x4f8cef[_0x1f6b93('0x1972')],{'id':Number(_0x4f8cef[_0x1f6b93('0xa10')][_0x1f6b93('0x815')])}));for(var _0x15bf48=0x0;_0x15bf48<_0x4f8cef[_0x1f6b93('0x1972')]['length'];_0x15bf48++){_0x42538b&&_0x4f8cef[_0x1f6b93('0x1972')][_0x15bf48]['id']===_0x42538b['id']&&(_0x4f8cef[_0x1f6b93('0x1972')][_0x15bf48][_0x1f6b93('0xba')]=![],_0x28f6b8[_0x1f6b93('0x206c')](_0x4f8cef[_0x1f6b93('0x1972')][_0x15bf48]));}_0x4f8cef['lists']=_0x28f6b8;}else{if(!_0x5456f8[_0x1f6b93('0x80c')])return _0x5dbfe2['userProfileResource'][_0x1f6b93('0x595')]({'sectionId':_0x5456f8['id']})[_0x1f6b93('0x1376')][_0x1f6b93('0x21ad')](function(_0x4f55d0){var _0x35693e=_0x1f6b93,_0x1c0854=_0x86640f()['map'](_0x4f55d0[_0x35693e('0x1b33')],function(_0x477842){var _0x4de206=_0x35693e;return _0x86640f()[_0x4de206('0x1d2e')](_0x4f8cef[_0x4de206('0x1972')],{'id':_0x477842[_0x4de206('0x675')]});}),_0x47f9f3=null;_0x4f8cef['smsAccount']&&(_0x47f9f3=_0x86640f()['find'](_0x4f8cef[_0x35693e('0x1972')],{'id':Number(_0x4f8cef[_0x35693e('0xa10')][_0x35693e('0x815')])}));if(_0x47f9f3&&!_0x86640f()[_0x35693e('0x2664')](_0x1c0854,['id',_0x47f9f3['id']])){var _0x86f9e4=_0x86640f()[_0x35693e('0x1d2e')](_0x4f8cef['lists'],{'id':_0x47f9f3['id']});_0x86f9e4['canSelect']=![],_0x1c0854[_0x35693e('0x206c')](_0x86f9e4);}_0x4f8cef[_0x35693e('0x1972')]=_0x1c0854;});}})[_0x406a39('0x1c1d')](function(_0x5075ba){var _0x40a3e2=_0x406a39;_0x13796d[_0x40a3e2('0x2092')]({'title':_0x5075ba[_0x40a3e2('0x209')]?'API:'+_0x5075ba['status']+'\x20-\x20'+_0x5075ba[_0x40a3e2('0x1808')]:_0x40a3e2('0xa92'),'msg':_0x5075ba['data']?JSON[_0x40a3e2('0x25e')](_0x5075ba[_0x40a3e2('0x11c2')]):_0x5075ba[_0x40a3e2('0x174f')]()});});function _0x23c8a7(){var _0x3fb04b=_0x406a39;_0x4f8cef['errors']=[],_0x5dbfe2[_0x3fb04b('0xa10')][_0x3fb04b('0x186f')](_0x4f8cef[_0x3fb04b('0xa10')])['$promise']['then'](function(_0x20feba){var _0x3410a5=_0x3fb04b;_0x4f8cef[_0x3410a5('0x102b')][_0x3410a5('0xd0c')](_0x20feba[_0x3410a5('0x3bc')]()),_0x13796d['success']({'title':_0x3410a5('0x1a9'),'msg':_0x4f8cef[_0x3410a5('0xa10')][_0x3410a5('0x19fe')]?_0x4f8cef[_0x3410a5('0xa10')]['name']+_0x3410a5('0x1694'):''}),_0x52777e(_0x20feba);})[_0x3fb04b('0x1c1d')](function(_0x4970b7){var _0x335c88=_0x3fb04b;if(_0x4970b7['data']&&_0x4970b7['data'][_0x335c88('0x1a69')]&&_0x4970b7[_0x335c88('0x11c2')][_0x335c88('0x1a69')][_0x335c88('0x577')]){_0x4f8cef[_0x335c88('0x1a69')]=_0x4970b7[_0x335c88('0x11c2')][_0x335c88('0x1a69')]||[{'message':_0x4970b7[_0x335c88('0x174f')](),'type':_0x335c88('0x8e3')}];for(var _0x51c098=0x0;_0x51c098<_0x4970b7[_0x335c88('0x11c2')][_0x335c88('0x1a69')][_0x335c88('0x577')];_0x51c098+=0x1){_0x13796d[_0x335c88('0x2092')]({'title':_0x4970b7[_0x335c88('0x11c2')]['errors'][_0x51c098][_0x335c88('0x7fa')],'msg':_0x4970b7[_0x335c88('0x11c2')][_0x335c88('0x1a69')][_0x51c098][_0x335c88('0x1224')]});}}else _0x13796d[_0x335c88('0x2092')]({'title':_0x4970b7[_0x335c88('0x209')]?_0x335c88('0x22d')+_0x4970b7[_0x335c88('0x209')]+_0x335c88('0xa99')+_0x4970b7['statusText']:'api.smsAccount.save','msg':_0x4970b7['data']?JSON[_0x335c88('0x25e')](_0x4970b7['data'][_0x335c88('0x1224')]):_0x4970b7[_0x335c88('0x174f')]()});});}function _0x240782(){var _0x1642cb=_0x406a39;_0x4f8cef['errors']=[],_0x5dbfe2[_0x1642cb('0xa10')][_0x1642cb('0x5ef')]({'id':_0x4f8cef[_0x1642cb('0xa10')]['id']},_0x4f8cef[_0x1642cb('0xa10')])[_0x1642cb('0x1376')][_0x1642cb('0x21ad')](function(_0x49ffe4){var _0x9b4178=_0x1642cb,_0xcd49d2=_0x86640f()[_0x9b4178('0x1d2e')](_0x4f8cef[_0x9b4178('0x102b')],{'id':_0x49ffe4['id']});_0xcd49d2&&_0x86640f()[_0x9b4178('0xd0e')](_0xcd49d2,_0x86640f()[_0x9b4178('0xc50')](_0x49ffe4[_0x9b4178('0x3bc')](),_0x86640f()['keys'](_0xcd49d2))),_0x13796d[_0x9b4178('0xdb1')]({'title':_0x9b4178('0x2393'),'msg':_0x4f8cef['smsAccount'][_0x9b4178('0x19fe')]?_0x4f8cef['smsAccount'][_0x9b4178('0x19fe')]+_0x9b4178('0x2249'):''}),_0x52777e(_0x49ffe4);})[_0x1642cb('0x1c1d')](function(_0x3f9698){var _0x26bbf3=_0x1642cb;if(_0x3f9698[_0x26bbf3('0x11c2')]&&_0x3f9698[_0x26bbf3('0x11c2')][_0x26bbf3('0x1a69')]&&_0x3f9698['data'][_0x26bbf3('0x1a69')][_0x26bbf3('0x577')]){_0x4f8cef[_0x26bbf3('0x1a69')]=_0x3f9698[_0x26bbf3('0x11c2')][_0x26bbf3('0x1a69')]||[{'message':_0x3f9698['toString'](),'type':_0x26bbf3('0x1358')}];for(var _0x19aafd=0x0;_0x19aafd<_0x3f9698[_0x26bbf3('0x11c2')][_0x26bbf3('0x1a69')][_0x26bbf3('0x577')];_0x19aafd++){_0x13796d[_0x26bbf3('0x2092')]({'title':_0x3f9698[_0x26bbf3('0x11c2')][_0x26bbf3('0x1a69')][_0x19aafd][_0x26bbf3('0x7fa')],'msg':_0x3f9698[_0x26bbf3('0x11c2')]['errors'][_0x19aafd][_0x26bbf3('0x1224')]});}}else _0x13796d['error']({'title':_0x3f9698[_0x26bbf3('0x209')]?_0x26bbf3('0x22d')+_0x3f9698[_0x26bbf3('0x209')]+_0x26bbf3('0xa99')+_0x3f9698[_0x26bbf3('0x1808')]:_0x26bbf3('0x1358'),'msg':_0x3f9698['data']?JSON[_0x26bbf3('0x25e')](_0x3f9698[_0x26bbf3('0x11c2')][_0x26bbf3('0x1224')]):_0x3f9698['toString']()});});}function _0x3d868e(_0x4d4743){var _0x15e606=_0x406a39;_0x4f8cef[_0x15e606('0x1a69')]=[];var _0x48e3ee=_0x2a3379['confirm']()[_0x15e606('0x4b4')](_0x15e606('0x196b'))[_0x15e606('0x13fb')](_0x15e606('0xdf1'))[_0x15e606('0x7a7')](_0x15e606('0x25ec'))['ok'](_0x15e606('0xbfd'))[_0x15e606('0x3b5')](_0x15e606('0x1f40'))[_0x15e606('0x1e6d')](_0x4d4743);_0x2a3379[_0x15e606('0x853')](_0x48e3ee)[_0x15e606('0x21ad')](function(){var _0x21a728=_0x15e606;_0x5dbfe2[_0x21a728('0xa10')][_0x21a728('0x1164')]({'id':_0x4f8cef[_0x21a728('0xa10')]['id']})[_0x21a728('0x1376')]['then'](function(){var _0x2bee6c=_0x21a728;_0x86640f()[_0x2bee6c('0x16a2')](_0x4f8cef[_0x2bee6c('0x102b')],{'id':_0x4f8cef[_0x2bee6c('0xa10')]['id']}),_0x13796d[_0x2bee6c('0xdb1')]({'title':_0x2bee6c('0x73a'),'msg':(_0x4f8cef[_0x2bee6c('0xa10')][_0x2bee6c('0x19fe')]||'smsAccount')+_0x2bee6c('0xb4a')}),_0x52777e(_0x4f8cef[_0x2bee6c('0xa10')]);})[_0x21a728('0x1c1d')](function(_0x152fef){var _0x2e5d1f=_0x21a728;if(_0x152fef[_0x2e5d1f('0x11c2')]&&_0x152fef[_0x2e5d1f('0x11c2')]['errors']&&_0x152fef[_0x2e5d1f('0x11c2')][_0x2e5d1f('0x1a69')]['length']){_0x4f8cef[_0x2e5d1f('0x1a69')]=_0x152fef[_0x2e5d1f('0x11c2')][_0x2e5d1f('0x1a69')]||[{'message':_0x152fef['toString'](),'type':_0x2e5d1f('0xd12')}];for(var _0xc3081a=0x0;_0xc3081a<_0x152fef[_0x2e5d1f('0x11c2')]['errors']['length'];_0xc3081a++){_0x13796d[_0x2e5d1f('0x2092')]({'title':_0x152fef[_0x2e5d1f('0x11c2')][_0x2e5d1f('0x1a69')][_0xc3081a]['type'],'msg':_0x152fef[_0x2e5d1f('0x11c2')][_0x2e5d1f('0x1a69')][_0xc3081a]['message']});}}else _0x13796d[_0x2e5d1f('0x2092')]({'title':_0x152fef[_0x2e5d1f('0x209')]?'API:'+_0x152fef[_0x2e5d1f('0x209')]+'\x20-\x20'+_0x152fef[_0x2e5d1f('0x1808')]:'api.smsAccount.delete','msg':_0x152fef[_0x2e5d1f('0x11c2')]?JSON[_0x2e5d1f('0x25e')](_0x152fef['data'][_0x2e5d1f('0x1224')]):_0x152fef['message']||_0x152fef[_0x2e5d1f('0x174f')]()});});},function(){});}function _0x3d6d90(_0x2226a7){return _0x2226a7===null?undefined:new Date(_0x2226a7);}function _0x52777e(_0x22546f){var _0x34512b=_0x406a39;_0x2a3379[_0x34512b('0x1c24')](_0x22546f);}}const _0x49b28a=_0x2cc69e,_0x3c0dd7=_0x398308['p']+_0x3877e3('0x738'),_0x4555e2=_0x398308['p']+_0x3877e3('0x1a76'),_0x21128f=_0x398308['p']+_0x3877e3('0x1fc5'),_0x112a43=_0x398308['p']+_0x3877e3('0x24f7'),_0x91f0fa=_0x398308['p']+_0x3877e3('0x12d8'),_0x2f1e16=_0x398308['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/gotoif/dialog.html/dialog-[chunkhash].html',_0x45b0b5=_0x398308['p']+_0x3877e3('0x1794'),_0x117741=_0x398308['p']+_0x3877e3('0x279b'),_0x3c33ff=_0x398308['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/noop/dialog.html/dialog-[chunkhash].html',_0x5a8f9a=_0x398308['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/queue/dialog.html/dialog-[chunkhash].html',_0x2c991b=_0x398308['p']+_0x3877e3('0x274f'),_0x158f0c=_0x398308['p']+_0x3877e3('0xb12');_0x1b9b69[_0x3877e3('0x1a81')]=[_0x3877e3('0xccd'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),'toasty',_0x3877e3('0x15bc')];var _0x20635b={'agent':_0x3c0dd7,'amazonlex':_0x4555e2,'autoreply':_0x21128f,'close':_0x112a43,'dialogflow':_0x91f0fa,'gotoif':_0x2f1e16,'gotop':_0x45b0b5,'interval':_0x117741,'noop':_0x3c33ff,'queue':_0x5a8f9a,'system':_0x2c991b,'tag':_0x158f0c};function _0x1b9b69(_0x441d47,_0x8d7ba1,_0x3639b2,_0x504ada,_0x46f661){var _0x5309f5=_0x3877e3,_0x3d073d=this;_0x3d073d['currentUser']=_0x46f661[_0x5309f5('0x15ed')](),_0x3d073d[_0x5309f5('0xa10')]={},_0x3d073d[_0x5309f5('0x372')]={'count':0x0,'rows':[]},_0x3d073d[_0x5309f5('0x1429')]=[],_0x3d073d['crudPermissions'],_0x3d073d['query']={'sort':_0x5309f5('0xbe5')},_0x3d073d['apps']=_0x86640f()['reject'](_0x86640f()[_0x5309f5('0x203e')]([{'app':_0x5309f5('0x1809'),'appType':_0x5309f5('0xa07'),'types':['always',_0x5309f5('0xf50'),_0x5309f5('0x17fe')],'fields':[],'isApp':![]},{'app':'noop','appType':'noop','type':_0x5309f5('0x2101'),'icon':_0x5309f5('0x1da4'),'interval':_0x5309f5('0x1cc4'),'required':!![],'isApp':!![],'fields':[{'title':_0x5309f5('0x17a0'),'name':'value','type':_0x5309f5('0xc1e'),'param':0x0}]},{'app':_0x5309f5('0x12b1'),'appType':_0x5309f5('0x12b1'),'type':'system','icon':_0x5309f5('0x1da4'),'interval':_0x5309f5('0x1cc4'),'required':!![],'isApp':!![],'extraApi':[{'name':'variables','field':{'name':_0x5309f5('0x25bb'),'key':'name'},'route':_0x5309f5('0x25bb'),'filters':{'fields':_0x5309f5('0x1aa8'),'sort':_0x5309f5('0x19fe'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x5309f5('0x669'),'name':_0x5309f5('0xbf3'),'type':_0x5309f5('0xc1e'),'required':!![],'param':0x0},{'title':_0x5309f5('0x2200'),'name':_0x5309f5('0x25bb'),'type':_0x5309f5('0x15e9'),'values':_0x5309f5('0x142d'),'value':_0x5309f5('0x1958'),'option':'variable.name','defaultValues':[{'value':'\x27\x27','option':_0x5309f5('0x2405')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x5309f5('0x23ef'),'appType':_0x5309f5('0x23ef'),'type':_0x5309f5('0x12ec'),'icon':'icon-apps','interval':_0x5309f5('0x1cc4'),'isApp':!![],'fields':[{'title':'Priority','name':_0x5309f5('0xbe5'),'type':_0x5309f5('0xed8'),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x5309f5('0x262'),'appType':_0x5309f5('0x262'),'type':_0x5309f5('0x262'),'icon':_0x5309f5('0x1da4'),'interval':_0x5309f5('0x1cc4'),'isApp':!![],'fields':[{'title':_0x5309f5('0x16d8'),'name':_0x5309f5('0x271c'),'type':_0x5309f5('0xc1e'),'required':!![],'param':0x0},{'title':_0x5309f5('0x1a25'),'name':'truepriority','type':_0x5309f5('0xed8'),'min':0x1,'required':!![],'param':0x1},{'title':_0x5309f5('0xe4c'),'name':_0x5309f5('0xe4c'),'type':'number','min':0x1,'required':!![],'param':0x2}]},{'app':_0x5309f5('0xbdd'),'appType':_0x5309f5('0xbdd'),'foreignKey':_0x5309f5('0x2dc'),'type':'queue','icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x5309f5('0xb7a'),'field':{'name':_0x5309f5('0xbdd'),'key':_0x5309f5('0x19fe')},'route':_0x5309f5('0x754'),'filters':{'fields':'id,name,type','sort':_0x5309f5('0x19fe'),'nolimit':!![]},'permissions':{'section':0x2bd}}],'fields':[{'title':_0x5309f5('0x1da'),'name':_0x5309f5('0xbdd'),'type':_0x5309f5('0x15e9'),'values':_0x5309f5('0xb7a'),'value':_0x5309f5('0x126f'),'option':'queue.name','defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x5309f5('0x1149'),'name':_0x5309f5('0x2133'),'type':_0x5309f5('0xed8'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':'agent','appType':_0x5309f5('0x2402'),'type':_0x5309f5('0x2402'),'foreignKey':_0x5309f5('0x1dc6'),'icon':_0x5309f5('0x1da4'),'interval':_0x5309f5('0x1cc4'),'isApp':!![],'extraApi':[{'name':_0x5309f5('0xcb5'),'field':{'name':'agent','key':_0x5309f5('0x19fe')},'route':_0x5309f5('0x1775'),'filters':{'fields':_0x5309f5('0x1aa8'),'sort':'name','nolimit':!![],'role':'agent'},'permissions':{'section':0xca}}],'fields':[{'title':_0x5309f5('0x1a44'),'name':_0x5309f5('0x2402'),'type':_0x5309f5('0x15e9'),'values':_0x5309f5('0xcb5'),'value':'agent.name','option':_0x5309f5('0x2797'),'required':!![],'param':0x0},{'title':'Timeout','name':_0x5309f5('0x2133'),'type':_0x5309f5('0xed8'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x5309f5('0x1b98'),'appType':_0x5309f5('0x1b98'),'type':_0x5309f5('0x1b98'),'icon':_0x5309f5('0x1da4'),'interval':_0x5309f5('0x1cc4'),'isApp':!![],'fields':[{'title':_0x5309f5('0x13b6'),'name':'times','type':_0x5309f5('0x2844'),'defaultValue':'1','values':[{'option':_0x5309f5('0xafd'),'value':'1'},{'option':_0x5309f5('0x342'),'value':'0'}],'required':!![],'param':0x0},{'title':'Text','name':_0x5309f5('0xc1e'),'type':_0x5309f5('0x20f9'),'required':!![],'param':0x1}]},{'app':'close','appType':_0x5309f5('0x22f'),'type':_0x5309f5('0x22f'),'icon':_0x5309f5('0x1da4'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x5309f5('0x1d3d'),'name':_0x5309f5('0x22c8'),'type':_0x5309f5('0xc1e'),'required':!![],'param':0x0}]},{'app':_0x5309f5('0x907'),'appType':_0x5309f5('0x907'),'type':_0x5309f5('0x907'),'foreignKey':_0x5309f5('0x4ab'),'icon':_0x5309f5('0x1da4'),'interval':_0x5309f5('0x1cc4'),'isApp':!![],'extraApi':[{'name':_0x5309f5('0x1889'),'field':{'name':_0x5309f5('0x907'),'key':_0x5309f5('0x19fe')},'route':'tag','filters':{'fields':'id,name','sort':'name','nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x5309f5('0x295'),'name':_0x5309f5('0x907'),'type':_0x5309f5('0x15e9'),'values':_0x5309f5('0x1889'),'value':_0x5309f5('0x1706'),'option':_0x5309f5('0x1706'),'required':!![],'param':0x0}]},{'app':_0x5309f5('0xc72'),'appType':_0x5309f5('0xc72'),'type':'dialogflow','icon':_0x5309f5('0x1da4'),'interval':_0x5309f5('0x1cc4'),'isApp':!![],'fields':[{'title':'Key','name':_0x5309f5('0xddb'),'type':_0x5309f5('0xc1e'),'required':!![],'param':0x0},{'title':_0x5309f5('0x10f'),'name':_0x5309f5('0x10f'),'type':_0x5309f5('0x2844'),'defaultValue':_0x5309f5('0x38d'),'values':[{'option':'Danish','value':_0x5309f5('0x1119')},{'option':_0x5309f5('0x2733'),'value':_0x5309f5('0x38d')},{'option':_0x5309f5('0x2a'),'value':_0x5309f5('0x1e5f')},{'option':_0x5309f5('0xda4'),'value':_0x5309f5('0x1151')},{'option':_0x5309f5('0x249d'),'value':_0x5309f5('0x931')},{'option':_0x5309f5('0x1ada'),'value':_0x5309f5('0x1407')},{'option':_0x5309f5('0x4c'),'value':_0x5309f5('0x85')},{'option':_0x5309f5('0x1aa6'),'value':_0x5309f5('0x1405')},{'option':'Korean\x20(South\x20Korea)','value':_0x5309f5('0xf4d')},{'option':_0x5309f5('0x1513'),'value':'\x27nl\x27'},{'option':_0x5309f5('0x2748'),'value':_0x5309f5('0x1223')},{'option':_0x5309f5('0x1732'),'value':'\x27pt\x27'},{'option':_0x5309f5('0x132c'),'value':'\x27pt-br\x27'},{'option':_0x5309f5('0x410'),'value':_0x5309f5('0xf1d')},{'option':_0x5309f5('0x15e7'),'value':_0x5309f5('0x1d3e')},{'option':_0x5309f5('0x140c'),'value':_0x5309f5('0xb3a')},{'option':_0x5309f5('0x27e2'),'value':_0x5309f5('0x1077')},{'option':_0x5309f5('0x1aa4'),'value':_0x5309f5('0x22b3')},{'option':_0x5309f5('0x20f2'),'value':_0x5309f5('0x962')},{'option':_0x5309f5('0x15fb'),'value':_0x5309f5('0x22c9')}],'required':!![],'param':0x1},{'title':_0x5309f5('0x1cce'),'name':_0x5309f5('0x1cce'),'type':_0x5309f5('0x20f9'),'maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':_0x5309f5('0x1c22'),'appType':_0x5309f5('0x1c22'),'type':_0x5309f5('0x1c22'),'icon':'icon-apps','interval':_0x5309f5('0x1cc4'),'isApp':!![],'fields':[{'title':'accesskeyid','name':_0x5309f5('0x21c6'),'type':_0x5309f5('0xc1e'),'required':!![],'param':0x0},{'title':_0x5309f5('0x797'),'name':_0x5309f5('0x797'),'type':_0x5309f5('0xc1e'),'required':!![],'param':0x1},{'title':_0x5309f5('0x20a3'),'name':_0x5309f5('0x20a3'),'type':_0x5309f5('0x2844'),'defaultValue':_0x5309f5('0x20c7'),'values':[{'option':_0x5309f5('0x1a91'),'value':_0x5309f5('0x20c7')},{'option':_0x5309f5('0x1b2a'),'value':_0x5309f5('0x2335')},{'option':_0x5309f5('0x1844'),'value':_0x5309f5('0x1cd5')},{'option':_0x5309f5('0x4be'),'value':_0x5309f5('0x13f2')}],'required':!![],'param':0x2},{'title':'botname','name':_0x5309f5('0x15fe'),'type':'text','required':!![],'param':0x3},{'title':_0x5309f5('0x1cce'),'name':_0x5309f5('0x1cce'),'type':'textarea','maxlength':0xff,'required':![],'param':0x4,'help':!![]}]}],[_0x5309f5('0x1f94')]),{'isApp':![]}),_0x3d073d['list']={'group':{'name':'opt1','pull':_0x5309f5('0x1af0')},'animation':0x64,'sort':![]},_0x3d073d[_0x5309f5('0x21d8')]={'group':{'name':'opt2','put':_0x5309f5('0xcd')},'animation':0x64,'onAdd':function _0x2f5c51(_0x19bb15){_0x43ef19(_0x19bb15,_0x19bb15['newIndex']);},'onSort':function _0x237b89(){_0x12ae6e();}},_0x3d073d['init']=_0x4c8a7e,_0x3d073d[_0x5309f5('0x15dc')]=_0x16fff1,_0x3d073d[_0x5309f5('0xf6b')]=_0x24fe46,_0x3d073d[_0x5309f5('0x25f0')]=_0x43ef19,_0x3d073d['editInterval']=_0x2287bb,_0x3d073d[_0x5309f5('0x1661')]=_0x531333,_0x3d073d[_0x5309f5('0x25b7')]=_0xbf5b62,_0x3d073d['rewriteRouting']=_0x12ae6e,_0x3d073d[_0x5309f5('0x1ceb')]=_0xbc50fa;function _0x4c8a7e(_0x57d368,_0x3b4f3f){var _0x320db6=_0x5309f5;_0x3d073d[_0x320db6('0xa10')]=_0x57d368,_0x3d073d[_0x320db6('0x5ed')]=typeof _0x3b4f3f!==_0x320db6('0xddc')?_0x3b4f3f:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3d073d[_0x320db6('0x21d8')]['disabled']=!_0x3d073d[_0x320db6('0x5ed')]['canEdit']?!![]:![],_0x3d073d[_0x320db6('0x77')]['id']=_0x57d368['id'],_0x3d073d[_0x320db6('0x77')][_0x320db6('0x9f2')]=!![],_0x3d073d[_0x320db6('0x77')][_0x320db6('0x1dc3')]=!![],_0x3d073d[_0x320db6('0xf6b')](),_0x3d073d[_0x320db6('0x1ceb')]();}function _0x16fff1(_0x42e8d9,_0x2d851a,_0x6e8219){var _0x23738c=_0x5309f5,_0x2ae56d=_0x8d7ba1['confirm']()[_0x23738c('0x4b4')](_0x23738c('0x5b2'))[_0x23738c('0x276b')](_0x23738c('0x622')+_0x42e8d9[_0x23738c('0x1f94')]+_0x23738c('0x2135')+_0x23738c('0x25e0'))[_0x23738c('0x7a7')]('delete\x20application')[_0x23738c('0x1e6d')](_0x6e8219)['ok']('OK')[_0x23738c('0x3b5')](_0x23738c('0x284b'));_0x8d7ba1['show'](_0x2ae56d)[_0x23738c('0x21ad')](function(){var _0x393bc7=_0x23738c;_0x3d073d[_0x393bc7('0x372')]['rows'][_0x393bc7('0xafe')](_0x2d851a,0x1),_0x12ae6e();},function(){var _0xcb12af=_0x23738c;console[_0xcb12af('0x6fb')](_0xcb12af('0x284b'));});}function _0x43ef19(_0x26750a,_0x2f5bae){var _0x1acc75=_0x5309f5;if(_0x3d073d['smsAccountApps']['rows'][_0x1acc75('0x577')]){var _0x4e0976=_0x3d073d['smsAccountApps'][_0x1acc75('0x1b33')][_0x2f5bae]?_0x3d073d[_0x1acc75('0x372')][_0x1acc75('0x1b33')][_0x2f5bae]:_0x3d073d[_0x1acc75('0x372')]['rows'][0x0],_0x5908d7=(_0x4e0976[_0x1acc75('0x522')]||_0x4e0976[_0x1acc75('0x1f94')])['toLowerCase']();_0x8d7ba1['show']({'controller':_0x1acc75('0x1011')[_0x1acc75('0x1877')](_0x5908d7,_0x1acc75('0x19d9')),'controllerAs':'vm','templateUrl':_0x20635b[_0x5908d7],'parent':angular[_0x1acc75('0x1676')](_0x3639b2[_0x1acc75('0x2452')]),'targetEvent':_0x26750a,'clickOutsideToClose':!![],'locals':{'smsAccountApp':_0x4e0976,'smsAccount':_0x3d073d[_0x1acc75('0xa10')],'crudPermissions':_0x3d073d[_0x1acc75('0x5ed')]}})[_0x1acc75('0x21ad')](function(_0x2c3b91){var _0x26edda=_0x1acc75;_0x2c3b91&&(_0x2c3b91['id']?_0x3d073d[_0x26edda('0x372')][_0x26edda('0x1b33')][_0x2f5bae]=_0x2c3b91:_0x3d073d[_0x26edda('0x372')][_0x26edda('0x1b33')][_0x26edda('0xafe')](_0x2f5bae,0x0,_0x2c3b91),_0x12ae6e());})['catch'](function(_0x7da8e1){var _0x6d75de=_0x1acc75;_0x7da8e1&&_0x504ada['error']({'title':_0x7da8e1[_0x6d75de('0x209')]?'API:'+_0x7da8e1[_0x6d75de('0x209')]+_0x6d75de('0xa99')+_0x7da8e1[_0x6d75de('0x1808')]:_0x6d75de('0x20b3'),'msg':_0x7da8e1[_0x6d75de('0x11c2')]?JSON[_0x6d75de('0x25e')](_0x7da8e1[_0x6d75de('0x11c2')]):_0x7da8e1[_0x6d75de('0x174f')]()});});}}function _0x2287bb(_0x353081,_0x27b9ff){var _0x17534f=_0x5309f5;if(_0x3d073d[_0x17534f('0x372')][_0x17534f('0x1b33')]['length']){var _0xeb0e07=_0x3d073d[_0x17534f('0x372')][_0x17534f('0x1b33')][_0x27b9ff]?_0x3d073d['smsAccountApps'][_0x17534f('0x1b33')][_0x27b9ff]:_0x3d073d['smsAccountApps'][_0x17534f('0x1b33')][0x0];_0x8d7ba1[_0x17534f('0x853')]({'controller':_0x17534f('0x1e02'),'controllerAs':'vm','templateUrl':_0x117741,'parent':angular['element'](_0x3639b2[_0x17534f('0x2452')]),'targetEvent':_0x353081,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0xeb0e07[_0x17534f('0xa07')],'IntervalId':_0xeb0e07[_0x17534f('0x1ac8')],'application':!![]},'intervals':[],'crudPermissions':_0x3d073d['crudPermissions']}})[_0x17534f('0x21ad')](function(_0x253af9){var _0x5ed716=_0x17534f;_0x253af9&&(_0xeb0e07['interval']=_0x253af9[_0x5ed716('0xa07')]||'*,*,*,*',_0xeb0e07[_0x5ed716('0x1ac8')]=_0x253af9[_0x5ed716('0x1ac8')]||null,_0x12ae6e());});}}function _0x12ae6e(){var _0x2a8614=_0x5309f5,_0x5c1430=0x1,_0x17b25a=[];for(var _0x597406=0x0;_0x597406<_0x3d073d[_0x2a8614('0x372')][_0x2a8614('0x1b33')][_0x2a8614('0x577')];_0x597406++){var _0x3558b2=_0x3d073d['smsAccountApps']['rows'][_0x597406],_0x7a77fd=[],_0x487277=[];_0x3558b2[_0x2a8614('0x2530')]=_0x3558b2[_0x2a8614('0xa07')]!==_0x2a8614('0x1cc4')?[_0x3558b2[_0x2a8614('0xa07')]]:_0x3558b2[_0x2a8614('0x1ac8')]?_0x86640f()[_0x2a8614('0x26c3')](_0x86640f()['filter'](_0x3d073d[_0x2a8614('0x2530')][_0x2a8614('0x1b33')],{'IntervalId':_0x3558b2[_0x2a8614('0x1ac8')]}),'interval'):[],_0x3558b2[_0x2a8614('0x244c')]=_0x3d073d[_0x2a8614('0xa10')]['context'],_0x3558b2[_0x2a8614('0x24b7')]=_0x3d073d[_0x2a8614('0xa10')][_0x2a8614('0x24b7')],_0x3558b2[_0x2a8614('0x7fa')]&&(_0x3558b2[_0x2a8614('0x7fa')]=_0x3558b2[_0x2a8614('0x7fa')][_0x2a8614('0xac2')]()),_0x3558b2[_0x2a8614('0xbe5')]=_0x7a77fd[_0x2a8614('0x577')]?_0x86640f()['last'](_0x7a77fd)[_0x2a8614('0xbe5')]+0x1:_0x5c1430,_0x5c1430=(_0x487277[_0x2a8614('0x577')]?_0x86640f()[_0x2a8614('0x25d5')](_0x487277)['priority']:_0x3558b2['priority'])+0x1,_0x17b25a=_0x86640f()['concat'](_0x17b25a,_0x7a77fd,[_0x3558b2],_0x487277);}_0x441d47['smsAccount'][_0x2a8614('0x69f')]({'id':_0x3d073d['smsAccount']['id']},_0x86640f()[_0x2a8614('0x203e')](_0x17b25a,_0x2a8614('0xbe5')))[_0x2a8614('0x1376')][_0x2a8614('0x21ad')](function(_0x366e){var _0x4b02b2=_0x2a8614;_0x3d073d[_0x4b02b2('0x372')][_0x4b02b2('0x1b33')]=_0x366e[_0x4b02b2('0x1b33')];})[_0x2a8614('0x1c1d')](function(_0x5517e0){var _0x54475f=_0x2a8614;console[_0x54475f('0x2092')](_0x5517e0);});}function _0x146bca(_0x5a44a4){_0x3d073d['smsAccountApps']=_0x5a44a4||{'count':0x0,'rows':[]};}function _0xbc50fa(){var _0x515f8b=_0x5309f5;return _0x441d47['interval'][_0x515f8b('0x595')]({'fields':'id,interval,IntervalId'})['$promise'][_0x515f8b('0x21ad')](function(_0x24ffd1){var _0x5a2933=_0x515f8b;_0x3d073d[_0x5a2933('0x2530')]=_0x24ffd1;})[_0x515f8b('0x1c1d')](function(_0x37a658){var _0x4baffd=_0x515f8b;console[_0x4baffd('0x2092')](_0x37a658);});}function _0x24fe46(){var _0x177537=_0x5309f5;_0x3d073d[_0x177537('0x71b')]=_0x441d47[_0x177537('0xa10')][_0x177537('0x1290')](_0x3d073d[_0x177537('0x77')],_0x146bca)[_0x177537('0x1376')];}function _0x531333(_0x194e0b){var _0x32f2cb=_0x5309f5;_0x86640f()[_0x32f2cb('0x16a2')](_0x3d073d[_0x32f2cb('0x372')][_0x32f2cb('0x1b33')],{'id':_0x194e0b['id']}),_0x12ae6e(),_0x504ada[_0x32f2cb('0xdb1')]({'title':_0x32f2cb('0x1922'),'msg':_0x194e0b[_0x32f2cb('0x1f94')]?_0x194e0b[_0x32f2cb('0x1f94')]+_0x32f2cb('0xb4a'):''});}function _0xbf5b62(_0x390cef){var _0x222454=_0x5309f5,_0x305881=_0x8d7ba1[_0x222454('0xa33')]()[_0x222454('0x4b4')](_0x222454('0x152a'))['htmlContent'](_0x222454('0x622')+_0x3d073d[_0x222454('0x1429')][_0x222454('0x577')]+_0x222454('0xd74')+_0x222454('0x25e0'))[_0x222454('0x7a7')](_0x222454('0x89d'))[_0x222454('0x1e6d')](_0x390cef)['ok']('OK')[_0x222454('0x3b5')](_0x222454('0x284b'));_0x8d7ba1[_0x222454('0x853')](_0x305881)[_0x222454('0x21ad')](function(){var _0xfd5b40=_0x222454;_0x3d073d[_0xfd5b40('0x1429')][_0xfd5b40('0x1a52')](function(_0x1ae93d){var _0xad15b0=_0xfd5b40;_0x86640f()[_0xad15b0('0x16a2')](_0x3d073d['smsAccountApps']['rows'],{'id':_0x1ae93d['id']});}),_0x3d073d[_0xfd5b40('0x1429')]=[],_0x12ae6e();});}}const _0x12ff64=_0x1b9b69;_0x143b08[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q','toasty',_0x3877e3('0xccd'),'smsAccount',_0x3877e3('0x102b'),_0x3877e3('0x116a'),'$translate',_0x3877e3('0x15bc'),'crudPermissions'];function _0x143b08(_0x37b1e2,_0x38695e,_0x47ae14,_0x21794b,_0x370e9c,_0x32381b,_0xa30122,_0x1a5c3c,_0x36c162,_0x5e3a66){var _0x264586=_0x3877e3,_0x149c38=this;_0x149c38[_0x264586('0x123f')]=_0x36c162[_0x264586('0x15ed')](),_0x149c38['smsAccount']=_0x370e9c,_0x149c38[_0x264586('0x5ed')]=_0x5e3a66,_0x149c38[_0x264586('0x116a')]=_0xa30122,_0x149c38['items']=[],_0x149c38[_0x264586('0x1e09')]=[],_0x149c38[_0x264586('0x2629')]=[],_0x149c38[_0x264586('0x91b')]=[],_0x149c38[_0x264586('0x2584')]=[],_0x149c38[_0x264586('0x1bb9')]=![],_0x149c38[_0x264586('0x1081')]=_0x415a8c,_0x149c38[_0x264586('0x265b')]=_0x3ddff1,_0x149c38[_0x264586('0x167')]=_0x2e725f,_0x149c38[_0x264586('0x909')]={'readOnly':!_0x149c38[_0x264586('0x5ed')]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x264586('0x20f5'),'line2':[_0x264586('0x19fe'),_0x264586('0x201f')],'line3':'','labelAll':_0x1a5c3c[_0x264586('0x183e')](_0x264586('0x1b71')),'labelSelected':_0x1a5c3c[_0x264586('0x183e')](_0x264586('0x22b9')),'transferCallback':function _0x2ab6bb(){var _0x49b759=_0x264586,_0x18bc4e=_0x86640f()['xorBy'](_0x149c38[_0x49b759('0x2584')],_0x149c38['selectedItems'],'id');_0x149c38[_0x49b759('0x1bb9')]=_0x86640f()['isEmpty'](_0x18bc4e)?![]:!![];}};function _0x415a8c(){var _0xae74f5=_0x264586;return _0x36c162[_0xae74f5('0x21de')](_0xae74f5('0x1bd8'))?_0x3c4582()[_0xae74f5('0x1c1d')](function(_0x52c3b9){var _0x6251cb=_0xae74f5;_0x47ae14[_0x6251cb('0x2092')]({'title':_0x52c3b9[_0x6251cb('0x209')]?'API:'+_0x52c3b9[_0x6251cb('0x209')]+_0x6251cb('0xa99')+_0x52c3b9[_0x6251cb('0x1808')]:'SYSTEM:GET_AGENTS','msg':_0x52c3b9['status']?JSON[_0x6251cb('0x25e')](_0x52c3b9[_0x6251cb('0x11c2')]):_0x52c3b9[_0x6251cb('0x174f')]()});}):_0x14d496()['then'](function(_0x307fc6){var _0x55843e=_0xae74f5;return _0x149c38[_0x55843e('0x26ad')]=_0x307fc6,_0x3c4582();})['catch'](function(_0x1f9b0b){var _0x4b86c3=_0xae74f5;_0x47ae14['error']({'title':_0x1f9b0b['status']?'API:'+_0x1f9b0b[_0x4b86c3('0x209')]+_0x4b86c3('0xa99')+_0x1f9b0b[_0x4b86c3('0x1808')]:_0x4b86c3('0x1381'),'msg':_0x1f9b0b['status']?JSON[_0x4b86c3('0x25e')](_0x1f9b0b[_0x4b86c3('0x11c2')]):_0x1f9b0b[_0x4b86c3('0x174f')]()});});}function _0x14d496(){return _0x38695e(function(_0x1df1ec,_0x2b921a){var _0x294190=a0_0x2e7f;_0x21794b[_0x294190('0xab4')]['get']({'userProfileId':_0x149c38[_0x294190('0x123f')][_0x294190('0x1618')],'name':_0x294190('0xfed')})[_0x294190('0x1376')]['then'](function(_0x6e6385){var _0x1f9b08=_0x294190,_0xdb544=_0x6e6385&&_0x6e6385[_0x1f9b08('0x1b33')]?_0x6e6385[_0x1f9b08('0x1b33')][0x0]:null;_0x1df1ec(_0xdb544);})[_0x294190('0x1c1d')](function(_0x179076){_0x2b921a(_0x179076);});});}function _0x3c4582(){return _0x38695e(function(_0x152c76,_0x2e4eba){var _0x257f02=a0_0x2e7f;return _0x48b24e()[_0x257f02('0x21ad')](function(_0x426e22){var _0x3c196c=_0x257f02;return _0x149c38[_0x3c196c('0x1b9a')]=_0x426e22['rows']?_0x426e22[_0x3c196c('0x1b33')]:[],_0x36c162[_0x3c196c('0x21de')]('admin')?_0x426e22:_0x149c38[_0x3c196c('0x26ad')]?_0x149c38[_0x3c196c('0x26ad')][_0x3c196c('0x80c')]?_0x426e22:_0x5dfb3c():null;})[_0x257f02('0x21ad')](function(_0x51a19f){var _0x2397f6=_0x257f02,_0x15ba90=_0x51a19f&&_0x51a19f[_0x2397f6('0x1b33')]?_0x51a19f[_0x2397f6('0x1b33')]:[];return _0x149c38[_0x2397f6('0x1e09')]=_0x86640f()[_0x2397f6('0x26c3')](_0x15ba90,function(_0x53287f){var _0x1d9903=_0x2397f6;return _0x86640f()[_0x1d9903('0x1d2e')](_0x149c38[_0x1d9903('0x1b9a')],{'id':_0x36c162[_0x1d9903('0x21de')]('admin')||_0x149c38[_0x1d9903('0x26ad')][_0x1d9903('0x80c')]?_0x53287f['id']:_0x53287f[_0x1d9903('0x675')]});}),_0x149c38[_0x2397f6('0x91b')]=angular[_0x2397f6('0xd75')](_0x149c38[_0x2397f6('0x1e09')]),_0x149c38[_0x2397f6('0x1b9a')][_0x2397f6('0x1a52')](function(_0x4547d2){var _0x175ac8=_0x2397f6,_0x259145=_0x86640f()['find'](_0x149c38[_0x175ac8('0x1e09')],{'id':_0x4547d2['id']});_0x36c162['hasRole'](_0x175ac8('0x1bd8'))?_0x4547d2[_0x175ac8('0x118b')]=!![]:_0x4547d2[_0x175ac8('0x118b')]=typeof _0x259145!==_0x175ac8('0xddc')?!![]:![];}),_0x4f2833();})[_0x257f02('0x21ad')](function(_0x1ad885){var _0x3c8688=_0x257f02,_0x97e4fd=_0x1ad885&&_0x1ad885[_0x3c8688('0x1b33')]?_0x1ad885['rows']:[];_0x149c38[_0x3c8688('0x2629')]=_0x86640f()[_0x3c8688('0x26c3')](_0x97e4fd,function(_0xe7ccc8){var _0x568ac0=_0x3c8688,_0x4890f9=_0x86640f()[_0x568ac0('0x1d2e')](_0x149c38[_0x568ac0('0x1b9a')],{'id':_0xe7ccc8['id']});return _0x4890f9[_0x568ac0('0x1195')]=_0xe7ccc8[_0x568ac0('0x187f')]?_0x568ac0('0x5c2')+_0xe7ccc8[_0x568ac0('0x187f')]['penalty']:'',_0x4890f9[_0x568ac0('0x201f')]=typeof _0xe7ccc8[_0x568ac0('0x201f')]!==_0x568ac0('0xddc')?'<'+_0xe7ccc8[_0x568ac0('0x201f')]+'>':'',_0x4890f9;}),_0x149c38[_0x3c8688('0x2584')]=angular[_0x3c8688('0xd75')](_0x149c38[_0x3c8688('0x2629')]),_0x149c38[_0x3c8688('0x909')][_0x3c8688('0x2629')]=_0x149c38[_0x3c8688('0x2629')],_0x149c38['dualMultiselectOptions']['items']=_0x86640f()[_0x3c8688('0x1eab')](_0x149c38['allowedItems'],_0x149c38['dualMultiselectOptions'][_0x3c8688('0x2629')],'id'),_0x152c76();})[_0x257f02('0x1c1d')](function(_0x58260a){_0x2e4eba(_0x58260a);});});}function _0x5dfb3c(){return _0x38695e(function(_0x580c1c,_0x491613){var _0x20ae32=a0_0x2e7f;return _0x21794b[_0x20ae32('0x185e')][_0x20ae32('0x595')]({'sectionId':_0x149c38['section']['id'],'nolimit':!![]})[_0x20ae32('0x1376')]['then'](function(_0x4c260f){_0x580c1c(_0x4c260f);})[_0x20ae32('0x1c1d')](function(_0x5b1a0e){_0x491613(_0x5b1a0e);});});}function _0x4f2833(){return _0x38695e(function(_0x19ecbb,_0x3d2714){var _0x33518f=a0_0x2e7f;return _0x21794b['smsAccount'][_0x33518f('0x13ad')]({'id':_0x149c38[_0x33518f('0xa10')]['id'],'fields':_0x33518f('0x1eea'),'nolimit':!![],'role':_0x33518f('0x2402')})['$promise'][_0x33518f('0x21ad')](function(_0x5b54a1){_0x19ecbb(_0x5b54a1);})[_0x33518f('0x1c1d')](function(_0x128eac){_0x3d2714(_0x128eac);});});}function _0x48b24e(){return _0x38695e(function(_0x34ff1f,_0x274bc4){var _0x2ca76e=a0_0x2e7f;return _0x21794b[_0x2ca76e('0x1775')][_0x2ca76e('0x595')]({'fields':_0x2ca76e('0x1eea'),'nolimit':!![],'role':'agent'})[_0x2ca76e('0x1376')][_0x2ca76e('0x21ad')](function(_0x1fc45f){_0x34ff1f(_0x1fc45f);})['catch'](function(_0x404e4c){_0x274bc4(_0x404e4c);});});}function _0x43349e(_0x344ecc){return _0x38695e(function(_0x2652c7,_0x1e00af){var _0x38f338=a0_0x2e7f;_0x86640f()[_0x38f338('0x23aa')](_0x344ecc)?_0x2652c7():_0x21794b[_0x38f338('0xa10')][_0x38f338('0x1116')]({'id':_0x149c38[_0x38f338('0xa10')]['id'],'ids':_0x86640f()['map'](_0x344ecc,'id')})[_0x38f338('0x1376')][_0x38f338('0x21ad')](function(){_0x2652c7();})[_0x38f338('0x1c1d')](function(_0x3303b0){_0x1e00af(_0x3303b0);});});}function _0x30edfd(_0x2a7386){return _0x38695e(function(_0x4446b2,_0xf2b863){var _0x2ba276=a0_0x2e7f;_0x86640f()[_0x2ba276('0x23aa')](_0x2a7386)?_0x4446b2():_0x21794b[_0x2ba276('0xa10')][_0x2ba276('0x59e')]({'id':_0x149c38[_0x2ba276('0xa10')]['id'],'ids':_0x86640f()[_0x2ba276('0x26c3')](_0x2a7386,'id')})[_0x2ba276('0x1376')][_0x2ba276('0x21ad')](function(){_0x4446b2();})['catch'](function(_0x204490){_0xf2b863(_0x204490);});});}function _0x3ddff1(){var _0x3fef1d=_0x264586,_0x12931c=_0x86640f()[_0x3fef1d('0x1eab')](_0x149c38[_0x3fef1d('0x2584')],_0x149c38[_0x3fef1d('0x2629')],'id'),_0x3fb3bf=_0x86640f()[_0x3fef1d('0x1eab')](_0x149c38[_0x3fef1d('0x2629')],_0x149c38['startingSelectedItems'],'id');return _0x30edfd(_0x12931c)[_0x3fef1d('0x21ad')](function(){return _0x43349e(_0x3fb3bf);})['then'](function(){var _0x40915b=_0x3fef1d;_0x149c38[_0x40915b('0x1bb9')]=![],_0x149c38[_0x40915b('0x91b')]=angular['copy'](_0x149c38[_0x40915b('0x1e09')]),_0x149c38[_0x40915b('0x2584')]=angular[_0x40915b('0xd75')](_0x149c38[_0x40915b('0x2629')]),_0x47ae14['success']({'title':_0x40915b('0x2804'),'msg':_0x40915b('0x2239')});})[_0x3fef1d('0x1c1d')](function(_0x510a89){var _0x2f3f85=_0x3fef1d;_0x47ae14[_0x2f3f85('0x2092')]({'title':_0x510a89[_0x2f3f85('0x209')]?_0x2f3f85('0x22d')+_0x510a89[_0x2f3f85('0x209')]+_0x2f3f85('0xa99')+_0x510a89[_0x2f3f85('0x1808')]:_0x2f3f85('0x1dd7'),'msg':_0x510a89[_0x2f3f85('0x209')]?JSON[_0x2f3f85('0x25e')](_0x510a89['data']):_0x510a89[_0x2f3f85('0x174f')]()});});}function _0x2e725f(){var _0x55b36a=_0x264586;_0x37b1e2[_0x55b36a('0x1c24')]();}}const _0x593059=_0x143b08;_0x4cb465['$inject']=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x17ac'),_0x3877e3('0xa10'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x4cb465(_0x8acd24,_0x236d0a,_0x5eb557,_0x41405e,_0x952683,_0x33bc30,_0x2360e4,_0x30a003){var _0x2f8523=_0x3877e3,_0xdaf87d=this;_0xdaf87d[_0x2f8523('0x123f')]=_0x2360e4['getCurrentUser'](),_0xdaf87d['errors']=[],_0xdaf87d[_0x2f8523('0x4b4')]='SMS.EDIT_'+(_0x41405e[_0x2f8523('0x522')]||_0x41405e[_0x2f8523('0x1f94')])[_0x2f8523('0x2e8')](),_0xdaf87d[_0x2f8523('0x2402')]=angular[_0x2f8523('0xd75')](_0x41405e),_0xdaf87d['crudPermissions']=_0x30a003,_0xdaf87d[_0x2f8523('0x126a')]={};if(_0xdaf87d[_0x2f8523('0x2402')]['appdata'])switch(_0xdaf87d[_0x2f8523('0x2402')]['appType']?_0xdaf87d[_0x2f8523('0x2402')][_0x2f8523('0x522')][_0x2f8523('0xac2')]():_0xdaf87d[_0x2f8523('0x2402')][_0x2f8523('0x1f94')]['toLowerCase']()){case _0x2f8523('0xf50'):break;case'dialogflow':{var _0xe0b81d=_0xdaf87d['agent'][_0x2f8523('0x23c2')][_0x2f8523('0x1af5')](',');_0xdaf87d[_0x2f8523('0x2402')]['key']=_0xe0b81d[0x0],_0xdaf87d[_0x2f8523('0x2402')][_0x2f8523('0x10f')]=_0xe0b81d[0x1],_0xdaf87d[_0x2f8523('0x2402')][_0x2f8523('0x1cce')]=_0xe0b81d[_0x2f8523('0xb3d')](0x2,_0xe0b81d[_0x2f8523('0x577')])['join'](',');}break;case'amazonlex':{var _0x4a00e3=_0xdaf87d[_0x2f8523('0x2402')]['appdata'][_0x2f8523('0x1af5')](',');_0xdaf87d[_0x2f8523('0x2402')][_0x2f8523('0x21c6')]=_0x4a00e3[0x0],_0xdaf87d['agent'][_0x2f8523('0x797')]=_0x4a00e3[0x1],_0xdaf87d[_0x2f8523('0x2402')]['lexregion']=_0x4a00e3[0x2],_0xdaf87d[_0x2f8523('0x2402')][_0x2f8523('0x15fe')]=_0x4a00e3[0x3],_0xdaf87d[_0x2f8523('0x2402')][_0x2f8523('0x1cce')]=_0x4a00e3[_0x2f8523('0xb3d')](0x4,_0x4a00e3['length'])[_0x2f8523('0x136')](',');}break;case'autoreply':{var _0x1a623f=_0xdaf87d[_0x2f8523('0x2402')][_0x2f8523('0x23c2')]['split'](',');_0xdaf87d[_0x2f8523('0x2402')][_0x2f8523('0x13b6')]=isNaN(_0x1a623f[0x0])?_0x1a623f[0x0]:parseInt(_0x1a623f[0x0],0xa),_0xdaf87d[_0x2f8523('0x2402')]['text']=_0x1a623f[_0x2f8523('0xb3d')](0x1,_0x1a623f[_0x2f8523('0x577')])[_0x2f8523('0x136')](',');}break;case _0x2f8523('0x1224'):_0xdaf87d[_0x2f8523('0x2402')][_0x2f8523('0xc1e')]=_0xdaf87d[_0x2f8523('0x2402')][_0x2f8523('0x23c2')];break;case _0x2f8523('0x1125'):_0xdaf87d[_0x2f8523('0x2402')][_0x2f8523('0x19fe')]=_0xdaf87d[_0x2f8523('0x2402')][_0x2f8523('0x23c2')][_0x2f8523('0x1af5')]('=')[0x0],_0xdaf87d[_0x2f8523('0x2402')][_0x2f8523('0x2228')]=_0xdaf87d[_0x2f8523('0x2402')][_0x2f8523('0x23c2')]['split']('=')[0x1];break;case'agi':_0xdaf87d[_0x2f8523('0x2402')][_0x2f8523('0xbf8')]=_0xdaf87d['agent']['appdata'];break;default:{var _0x1fd0ca=_0xdaf87d[_0x2f8523('0x2402')][_0x2f8523('0x23c2')]['split'](',');_0xdaf87d['agent'][_0x2f8523('0x2402')]=_0x86640f()[_0x2f8523('0x23aa')](_0x1fd0ca[0x0])?_0x1fd0ca[0x0]:isNaN(_0x1fd0ca[0x0])?_0x1fd0ca[0x0]:parseInt(_0x1fd0ca[0x0],0xa),_0xdaf87d[_0x2f8523('0x2402')][_0x2f8523('0x2133')]=_0x86640f()[_0x2f8523('0x23aa')](_0x1fd0ca[0x1])?_0x1fd0ca[0x1]:isNaN(_0x1fd0ca[0x1])?_0x1fd0ca[0x1]:parseInt(_0x1fd0ca[0x1],0xa);}break;}else _0xdaf87d[_0x2f8523('0x2402')][_0x2f8523('0x2133')]=0x1e;_0xdaf87d[_0x2f8523('0x2402')][_0x2f8523('0x7fa')]&&_0xdaf87d['agent'][_0x2f8523('0x7fa')][_0x2f8523('0xac2')]()==='outbound'&&_0xdaf87d[_0x2f8523('0x2402')][_0x2f8523('0x522')][_0x2f8523('0xac2')]()==='outbounddial'&&(_0xdaf87d[_0x2f8523('0x2402')][_0x2f8523('0x1995')]=_0xdaf87d[_0x2f8523('0x2402')][_0x2f8523('0x159e')]?_0xdaf87d[_0x2f8523('0x2402')][_0x2f8523('0x159e')][_0x2f8523('0x1af5')]('$')[0x0]:undefined,_0xdaf87d['agent'][_0x2f8523('0x26f7')]=_0xdaf87d[_0x2f8523('0x2402')][_0x2f8523('0x1f5a')]?_0x2f8523('0x587')+_0xdaf87d[_0x2f8523('0x2402')]['callerID']:undefined);_0xdaf87d[_0x2f8523('0x1454')]=_0x103371,_0xdaf87d[_0x2f8523('0x167')]=_0xfa23ca,_0x2360e4[_0x2f8523('0x21de')]('admin')?_0x33bc30[_0x2f8523('0x1775')]['get']({'fields':_0x2f8523('0x1aa8'),'sort':'name','nolimit':'true','role':_0x2f8523('0x2402')})[_0x2f8523('0x1376')]['then'](function(_0x47ffca){var _0x443e1f=_0x2f8523;_0xdaf87d[_0x443e1f('0xcb5')]=_0x47ffca[_0x443e1f('0x1b33')]||[];})[_0x2f8523('0x1c1d')](function(_0x1e3e45){var _0x2cc909=_0x2f8523;_0x5eb557['error']({'title':_0x1e3e45[_0x2cc909('0x209')]?'API:'+_0x1e3e45[_0x2cc909('0x209')]+_0x2cc909('0xa99')+_0x1e3e45[_0x2cc909('0x1808')]:_0x2cc909('0x1381'),'msg':_0x1e3e45['data']?JSON[_0x2cc909('0x25e')](_0x1e3e45[_0x2cc909('0x11c2')]):_0x1e3e45[_0x2cc909('0x174f')]()});}):_0x33bc30[_0x2f8523('0x1775')][_0x2f8523('0x595')]({'fields':_0x2f8523('0x1aa8'),'sort':_0x2f8523('0x19fe'),'nolimit':_0x2f8523('0x19bd'),'role':_0x2f8523('0x2402')})['$promise'][_0x2f8523('0x21ad')](function(_0x520496){var _0x24e779=_0x2f8523;_0xdaf87d[_0x24e779('0xcb5')]=_0x520496['rows']||[];})[_0x2f8523('0x21ad')](function(){var _0x13186c=_0x2f8523;return _0x33bc30[_0x13186c('0xab4')][_0x13186c('0x595')]({'userProfileId':_0xdaf87d['currentUser']['userProfileId'],'sectionId':0xca})[_0x13186c('0x1376')];})[_0x2f8523('0x21ad')](function(_0x125e6d){var _0x1c4c37=_0x2f8523,_0x183f0d=_0x125e6d&&_0x125e6d['rows']?_0x125e6d[_0x1c4c37('0x1b33')][0x0]:null;if(!_0x183f0d){var _0x5f5687=[],_0x42bc47=null;_0xdaf87d[_0x1c4c37('0x2402')]&&(_0x42bc47=_0x86640f()[_0x1c4c37('0x1d2e')](_0xdaf87d['agents'],{'name':_0xdaf87d[_0x1c4c37('0x2402')][_0x1c4c37('0x2402')]}));for(var _0x574250=0x0;_0x574250<_0xdaf87d[_0x1c4c37('0xcb5')]['length'];_0x574250++){_0x42bc47&&_0xdaf87d[_0x1c4c37('0xcb5')][_0x574250]['id']===_0x42bc47['id']&&(_0xdaf87d['agents'][_0x574250][_0x1c4c37('0xba')]=![],_0x5f5687[_0x1c4c37('0x206c')](_0xdaf87d[_0x1c4c37('0xcb5')][_0x574250]));}_0xdaf87d[_0x1c4c37('0xcb5')]=_0x5f5687;}else{if(!_0x183f0d[_0x1c4c37('0x80c')])return _0x33bc30[_0x1c4c37('0x185e')][_0x1c4c37('0x595')]({'sectionId':_0x183f0d['id']})[_0x1c4c37('0x1376')][_0x1c4c37('0x21ad')](function(_0x5926d9){var _0x5ac89c=_0x1c4c37,_0x4b8d6a=_0x86640f()[_0x5ac89c('0x26c3')](_0x5926d9[_0x5ac89c('0x1b33')],function(_0x10d2f7){var _0x4835fb=_0x5ac89c;return _0x86640f()[_0x4835fb('0x1d2e')](_0xdaf87d[_0x4835fb('0xcb5')],{'id':_0x10d2f7[_0x4835fb('0x675')]});}),_0x397721=null;_0xdaf87d[_0x5ac89c('0x2402')]&&(_0x397721=_0x86640f()[_0x5ac89c('0x1d2e')](_0xdaf87d['agents'],{'name':_0xdaf87d['agent'][_0x5ac89c('0x2402')]}));if(_0x397721&&!_0x86640f()['some'](_0x4b8d6a,['id',_0x397721['id']])){var _0x5c43e9=_0x86640f()['find'](_0xdaf87d['agents'],{'id':_0x397721['id']});_0x5c43e9[_0x5ac89c('0xba')]=![],_0x4b8d6a['push'](_0x5c43e9);}_0xdaf87d['agents']=_0x4b8d6a;});}})[_0x2f8523('0x1c1d')](function(_0x3436ee){var _0x5ef1b6=_0x2f8523;_0x5eb557[_0x5ef1b6('0x2092')]({'title':_0x3436ee[_0x5ef1b6('0x209')]?'API:'+_0x3436ee['status']+_0x5ef1b6('0xa99')+_0x3436ee[_0x5ef1b6('0x1808')]:'SYSTEM:GETagents','msg':_0x3436ee['data']?JSON[_0x5ef1b6('0x25e')](_0x3436ee[_0x5ef1b6('0x11c2')]):_0x3436ee[_0x5ef1b6('0x174f')]()});});function _0x103371(){var _0x4d67a1=_0x2f8523;_0xdaf87d[_0x4d67a1('0x1a69')]=[];var _0x2f826c=[];_0xdaf87d[_0x4d67a1('0x2402')]['type']&&_0xdaf87d[_0x4d67a1('0x2402')][_0x4d67a1('0x7fa')][_0x4d67a1('0xac2')]()===_0x4d67a1('0x2300')&&_0xdaf87d[_0x4d67a1('0x2402')][_0x4d67a1('0x522')]===_0x4d67a1('0x4ea')&&(_0xdaf87d['agent'][_0x4d67a1('0x159e')]=_0x952683[_0x4d67a1('0x988')]?(_0xdaf87d[_0x4d67a1('0x2402')][_0x4d67a1('0x1995')]||'')+_0x4d67a1('0x349')+_0x952683[_0x4d67a1('0x988')]+'}':(_0xdaf87d[_0x4d67a1('0x2402')]['prefix']||'')+_0x4d67a1('0x2560'),_0x952683['recordingFormat']!=='none'?_0xdaf87d['agent']['options']['indexOf'](_0x4d67a1('0x478'))<0x0&&(_0xdaf87d['agent']['options']+=_0x4d67a1('0x478')):_0xdaf87d[_0x4d67a1('0x2402')][_0x4d67a1('0x26a0')]=_0xdaf87d[_0x4d67a1('0x2402')][_0x4d67a1('0x26a0')][_0x4d67a1('0x16e4')]('U(xcally-mixmonitor-context)',''));var _0x4324e5=_0x86640f()[_0x4d67a1('0x1d2e')](_0xdaf87d[_0x4d67a1('0xcb5')],{'name':_0xdaf87d[_0x4d67a1('0x2402')][_0x4d67a1('0x2402')]});_0x4324e5&&(_0xdaf87d[_0x4d67a1('0x2402')][_0x4d67a1('0x1dc6')]=_0x4324e5['id']);if(_0xdaf87d[_0x4d67a1('0x2402')][_0x4d67a1('0x522')]&&_0xdaf87d[_0x4d67a1('0x2402')][_0x4d67a1('0x522')]===_0x4d67a1('0xf50')){}else switch((_0xdaf87d[_0x4d67a1('0x2402')][_0x4d67a1('0x1f94')]||_0xdaf87d[_0x4d67a1('0x2402')][_0x4d67a1('0x522')])[_0x4d67a1('0xac2')]()){case _0x4d67a1('0x1125'):_0xdaf87d[_0x4d67a1('0x2402')]['appdata']=_0xdaf87d['agent'][_0x4d67a1('0x19fe')]+'='+_0xdaf87d[_0x4d67a1('0x2402')][_0x4d67a1('0x2228')];break;case _0x4d67a1('0xf50'):break;default:_0x2f826c[0x0]=_0xdaf87d[_0x4d67a1('0x2402')]['agent'],_0x2f826c[0x1]=_0xdaf87d['agent'][_0x4d67a1('0x2133')],_0xdaf87d[_0x4d67a1('0x2402')]['appdata']=_0x2f826c[_0x4d67a1('0x136')](',');}_0xfa23ca(_0xdaf87d[_0x4d67a1('0x2402')]);}function _0xfa23ca(_0x2ee452){var _0x4258cb=_0x2f8523;_0x8acd24[_0x4258cb('0x1c24')](_0x2ee452);}}const _0x446266=_0x4cb465;_0x52d63b[_0x3877e3('0x1a81')]=['$mdDialog','$q',_0x3877e3('0x1908'),_0x3877e3('0x17ac'),_0x3877e3('0xa10'),'api','Auth',_0x3877e3('0x5ed')];function _0x52d63b(_0x5ecf06,_0x10d0f5,_0x16c12e,_0x281f93,_0x16db2d,_0x21c1ae,_0xe55965,_0x25c957){var _0x1fd137=_0x3877e3,_0x11c7d1=this;_0x11c7d1['currentUser']=_0xe55965[_0x1fd137('0x15ed')](),_0x11c7d1[_0x1fd137('0x1a69')]=[],_0x11c7d1[_0x1fd137('0x4b4')]=_0x1fd137('0x1dad')+(_0x281f93[_0x1fd137('0x522')]||_0x281f93[_0x1fd137('0x1f94')])[_0x1fd137('0x2e8')](),_0x11c7d1['amazonlex']=angular[_0x1fd137('0xd75')](_0x281f93),_0x11c7d1[_0x1fd137('0x5ed')]=_0x25c957,_0x11c7d1['hasModulePermissions']={};if(_0x11c7d1[_0x1fd137('0x1c22')]['appdata'])switch(_0x11c7d1[_0x1fd137('0x1c22')][_0x1fd137('0x522')]?_0x11c7d1['amazonlex'][_0x1fd137('0x522')][_0x1fd137('0xac2')]():_0x11c7d1[_0x1fd137('0x1c22')][_0x1fd137('0x1f94')][_0x1fd137('0xac2')]()){case'custom':break;case _0x1fd137('0xc72'):{var _0x4e2d68=_0x11c7d1['amazonlex']['appdata'][_0x1fd137('0x1af5')](',');_0x11c7d1[_0x1fd137('0x1c22')][_0x1fd137('0xddb')]=_0x4e2d68[0x0],_0x11c7d1[_0x1fd137('0x1c22')]['language']=_0x4e2d68[0x1],_0x11c7d1[_0x1fd137('0x1c22')][_0x1fd137('0x1cce')]=_0x4e2d68[_0x1fd137('0xb3d')](0x2,_0x4e2d68[_0x1fd137('0x577')])['join'](',');}break;case _0x1fd137('0x1c22'):{var _0x58b88b=_0x11c7d1[_0x1fd137('0x1c22')]['appdata']['split'](',');_0x11c7d1[_0x1fd137('0x1c22')][_0x1fd137('0x21c6')]=_0x58b88b[0x0],_0x11c7d1[_0x1fd137('0x1c22')][_0x1fd137('0x797')]=_0x58b88b[0x1],_0x11c7d1[_0x1fd137('0x1c22')][_0x1fd137('0x20a3')]=_0x58b88b[0x2],_0x11c7d1['amazonlex']['botname']=_0x58b88b[0x3],_0x11c7d1[_0x1fd137('0x1c22')][_0x1fd137('0x1cce')]=_0x58b88b[_0x1fd137('0xb3d')](0x4,_0x58b88b['length'])[_0x1fd137('0x136')](',');}break;case _0x1fd137('0x1b98'):{var _0x54264f=_0x11c7d1[_0x1fd137('0x1c22')][_0x1fd137('0x23c2')][_0x1fd137('0x1af5')](',');_0x11c7d1['amazonlex'][_0x1fd137('0x13b6')]=isNaN(_0x54264f[0x0])?_0x54264f[0x0]:parseInt(_0x54264f[0x0],0xa),_0x11c7d1['amazonlex'][_0x1fd137('0xc1e')]=_0x54264f['slice'](0x1,_0x54264f[_0x1fd137('0x577')])['join'](',');}break;case _0x1fd137('0x1224'):_0x11c7d1[_0x1fd137('0x1c22')][_0x1fd137('0xc1e')]=_0x11c7d1['amazonlex']['appdata'];break;case'set':_0x11c7d1[_0x1fd137('0x1c22')]['name']=_0x11c7d1[_0x1fd137('0x1c22')]['appdata'][_0x1fd137('0x1af5')]('=')[0x0],_0x11c7d1[_0x1fd137('0x1c22')][_0x1fd137('0x2228')]=_0x11c7d1[_0x1fd137('0x1c22')][_0x1fd137('0x23c2')][_0x1fd137('0x1af5')]('=')[0x1];break;case _0x1fd137('0x2356'):_0x11c7d1['amazonlex']['project']=_0x11c7d1[_0x1fd137('0x1c22')][_0x1fd137('0x23c2')];break;default:{var _0x352c2e=_0x11c7d1[_0x1fd137('0x1c22')]['appdata'][_0x1fd137('0x1af5')](',');_0x11c7d1['amazonlex'][_0x1fd137('0x21c6')]=_0x86640f()[_0x1fd137('0x23aa')](_0x352c2e[0x0])?_0x352c2e[0x0]:isNaN(_0x352c2e[0x0])?_0x352c2e[0x0]:parseInt(_0x352c2e[0x0],0xa),_0x11c7d1[_0x1fd137('0x1c22')]['secretaccesskey']=_0x86640f()[_0x1fd137('0x23aa')](_0x352c2e[0x1])?_0x352c2e[0x1]:isNaN(_0x352c2e[0x1])?_0x352c2e[0x1]:parseInt(_0x352c2e[0x1],0xa),_0x11c7d1[_0x1fd137('0x1c22')][_0x1fd137('0x20a3')]=_0x86640f()['isEmpty'](_0x352c2e[0x2])?_0x352c2e[0x2]:isNaN(_0x352c2e[0x2])?_0x352c2e[0x2]:parseInt(_0x352c2e[0x2],0xa),_0x11c7d1['amazonlex'][_0x1fd137('0x15fe')]=_0x86640f()['isEmpty'](_0x352c2e[0x3])?_0x352c2e[0x3]:isNaN(_0x352c2e[0x3])?_0x352c2e[0x3]:parseInt(_0x352c2e[0x3],0xa),_0x11c7d1[_0x1fd137('0x1c22')][_0x1fd137('0x1cce')]=_0x86640f()['isEmpty'](_0x352c2e[0x4])?_0x352c2e[0x4]:isNaN(_0x352c2e[0x4])?_0x352c2e[0x4]:parseInt(_0x352c2e[0x4],0xa);}break;}else _0x11c7d1['amazonlex'][_0x1fd137('0x20a3')]=_0x1fd137('0xc0b');_0x11c7d1[_0x1fd137('0x1c22')][_0x1fd137('0x7fa')]&&_0x11c7d1[_0x1fd137('0x1c22')][_0x1fd137('0x7fa')][_0x1fd137('0xac2')]()===_0x1fd137('0x2300')&&_0x11c7d1[_0x1fd137('0x1c22')]['appType'][_0x1fd137('0xac2')]()===_0x1fd137('0x2363')&&(_0x11c7d1['amazonlex'][_0x1fd137('0x1995')]=_0x11c7d1['amazonlex'][_0x1fd137('0x159e')]?_0x11c7d1['amazonlex'][_0x1fd137('0x159e')][_0x1fd137('0x1af5')]('$')[0x0]:undefined,_0x11c7d1[_0x1fd137('0x1c22')][_0x1fd137('0x26f7')]=_0x11c7d1[_0x1fd137('0x1c22')][_0x1fd137('0x1f5a')]?_0x1fd137('0x587')+_0x11c7d1[_0x1fd137('0x1c22')]['callerID']:undefined);_0x11c7d1[_0x1fd137('0x1454')]=_0x39ec68,_0x11c7d1[_0x1fd137('0x167')]=_0xdd88ec;function _0x39ec68(){var _0x10a7f9=_0x1fd137;_0x11c7d1[_0x10a7f9('0x1a69')]=[];var _0x4e8235=[];_0x11c7d1['amazonlex']['type']&&_0x11c7d1[_0x10a7f9('0x1c22')][_0x10a7f9('0x7fa')][_0x10a7f9('0xac2')]()===_0x10a7f9('0x2300')&&_0x11c7d1['amazonlex'][_0x10a7f9('0x522')]===_0x10a7f9('0x4ea')&&(_0x11c7d1[_0x10a7f9('0x1c22')][_0x10a7f9('0x159e')]=_0x16db2d['cutdigits']?(_0x11c7d1[_0x10a7f9('0x1c22')][_0x10a7f9('0x1995')]||'')+_0x10a7f9('0x349')+_0x16db2d[_0x10a7f9('0x988')]+'}':(_0x11c7d1['amazonlex'][_0x10a7f9('0x1995')]||'')+_0x10a7f9('0x2560'),_0x16db2d['recordingFormat']!=='none'?_0x11c7d1[_0x10a7f9('0x1c22')][_0x10a7f9('0x26a0')][_0x10a7f9('0x2004')](_0x10a7f9('0x478'))<0x0&&(_0x11c7d1['amazonlex'][_0x10a7f9('0x26a0')]+=_0x10a7f9('0x478')):_0x11c7d1['amazonlex'][_0x10a7f9('0x26a0')]=_0x11c7d1[_0x10a7f9('0x1c22')][_0x10a7f9('0x26a0')][_0x10a7f9('0x16e4')](_0x10a7f9('0x478'),''));if(_0x11c7d1[_0x10a7f9('0x1c22')][_0x10a7f9('0x522')]&&_0x11c7d1['amazonlex'][_0x10a7f9('0x522')]===_0x10a7f9('0xf50')){}else switch((_0x11c7d1[_0x10a7f9('0x1c22')]['app']||_0x11c7d1[_0x10a7f9('0x1c22')][_0x10a7f9('0x522')])[_0x10a7f9('0xac2')]()){case'set':_0x11c7d1[_0x10a7f9('0x1c22')][_0x10a7f9('0x23c2')]=_0x11c7d1[_0x10a7f9('0x1c22')]['name']+'='+_0x11c7d1[_0x10a7f9('0x1c22')][_0x10a7f9('0x2228')];break;case _0x10a7f9('0xf50'):break;default:_0x4e8235[0x0]=_0x11c7d1['amazonlex'][_0x10a7f9('0x21c6')],_0x4e8235[0x1]=_0x11c7d1['amazonlex'][_0x10a7f9('0x797')],_0x4e8235[0x2]=_0x11c7d1[_0x10a7f9('0x1c22')][_0x10a7f9('0x20a3')],_0x4e8235[0x3]=_0x11c7d1[_0x10a7f9('0x1c22')]['botname'],_0x4e8235[0x4]=_0x11c7d1[_0x10a7f9('0x1c22')][_0x10a7f9('0x1cce')],_0x11c7d1[_0x10a7f9('0x1c22')][_0x10a7f9('0x23c2')]=_0x4e8235[_0x10a7f9('0x136')](',');}_0xdd88ec(_0x11c7d1[_0x10a7f9('0x1c22')]);}function _0xdd88ec(_0x219371){var _0x1f1895=_0x1fd137;_0x5ecf06[_0x1f1895('0x1c24')](_0x219371);}}const _0x5e1bb3=_0x52d63b;_0x3665c0[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x17ac'),_0x3877e3('0xa10'),_0x3877e3('0xccd'),'Auth',_0x3877e3('0x5ed')];function _0x3665c0(_0xe5274d,_0x1001dc,_0x21942a,_0x4ff487,_0x390f96,_0xef1776,_0x31f221,_0x43e67e){var _0x2056d9=_0x3877e3,_0x1c5675=this;_0x1c5675[_0x2056d9('0x123f')]=_0x31f221[_0x2056d9('0x15ed')](),_0x1c5675[_0x2056d9('0x1a69')]=[],_0x1c5675[_0x2056d9('0x4b4')]=_0x2056d9('0x1dad')+(_0x4ff487[_0x2056d9('0x522')]||_0x4ff487[_0x2056d9('0x1f94')])[_0x2056d9('0x2e8')](),_0x1c5675[_0x2056d9('0x1b98')]=angular[_0x2056d9('0xd75')](_0x4ff487),_0x1c5675['crudPermissions']=_0x43e67e,_0x1c5675['hasModulePermissions']={};if(_0x1c5675[_0x2056d9('0x1b98')]['appdata'])switch(_0x1c5675['autoreply'][_0x2056d9('0x522')]?_0x1c5675[_0x2056d9('0x1b98')][_0x2056d9('0x522')][_0x2056d9('0xac2')]():_0x1c5675[_0x2056d9('0x1b98')][_0x2056d9('0x1f94')][_0x2056d9('0xac2')]()){case _0x2056d9('0xf50'):break;case _0x2056d9('0xc72'):{var _0x371c68=_0x1c5675[_0x2056d9('0x1b98')]['appdata'][_0x2056d9('0x1af5')](',');_0x1c5675[_0x2056d9('0x1b98')][_0x2056d9('0xddb')]=_0x371c68[0x0],_0x1c5675['autoreply'][_0x2056d9('0x10f')]=_0x371c68[0x1],_0x1c5675['autoreply']['welcomemessage']=_0x371c68[_0x2056d9('0xb3d')](0x2,_0x371c68[_0x2056d9('0x577')])['join'](',');}break;case _0x2056d9('0x1c22'):{var _0x2e0073=_0x1c5675[_0x2056d9('0x1b98')]['appdata'][_0x2056d9('0x1af5')](',');_0x1c5675['autoreply']['accesskeyid']=_0x2e0073[0x0],_0x1c5675[_0x2056d9('0x1b98')][_0x2056d9('0x797')]=_0x2e0073[0x1],_0x1c5675[_0x2056d9('0x1b98')][_0x2056d9('0x20a3')]=_0x2e0073[0x2],_0x1c5675[_0x2056d9('0x1b98')][_0x2056d9('0x15fe')]=_0x2e0073[0x3],_0x1c5675['autoreply'][_0x2056d9('0x1cce')]=_0x2e0073[_0x2056d9('0xb3d')](0x4,_0x2e0073[_0x2056d9('0x577')])['join'](',');}break;case _0x2056d9('0x1b98'):{var _0x1838c3=_0x1c5675[_0x2056d9('0x1b98')][_0x2056d9('0x23c2')][_0x2056d9('0x1af5')](',');_0x1c5675[_0x2056d9('0x1b98')][_0x2056d9('0x13b6')]=isNaN(_0x1838c3[0x0])?_0x1838c3[0x0]:parseInt(_0x1838c3[0x0],0xa),_0x1c5675[_0x2056d9('0x1b98')][_0x2056d9('0xc1e')]=_0x1838c3[_0x2056d9('0xb3d')](0x1,_0x1838c3[_0x2056d9('0x577')])[_0x2056d9('0x136')](',');}break;case _0x2056d9('0x1224'):_0x1c5675[_0x2056d9('0x1b98')][_0x2056d9('0xc1e')]=_0x1c5675['autoreply'][_0x2056d9('0x23c2')];break;case'set':_0x1c5675['autoreply'][_0x2056d9('0x19fe')]=_0x1c5675[_0x2056d9('0x1b98')][_0x2056d9('0x23c2')][_0x2056d9('0x1af5')]('=')[0x0],_0x1c5675['autoreply'][_0x2056d9('0x2228')]=_0x1c5675[_0x2056d9('0x1b98')][_0x2056d9('0x23c2')][_0x2056d9('0x1af5')]('=')[0x1];break;case _0x2056d9('0x2356'):_0x1c5675[_0x2056d9('0x1b98')]['project']=_0x1c5675[_0x2056d9('0x1b98')][_0x2056d9('0x23c2')];break;default:{var _0x4e0899=_0x1c5675[_0x2056d9('0x1b98')][_0x2056d9('0x23c2')][_0x2056d9('0x1af5')](',');_0x1c5675[_0x2056d9('0x1b98')]['times']=_0x86640f()[_0x2056d9('0x23aa')](_0x4e0899[0x0])?_0x4e0899[0x0]:isNaN(_0x4e0899[0x0])?_0x4e0899[0x0]:parseInt(_0x4e0899[0x0],0xa),_0x1c5675[_0x2056d9('0x1b98')][_0x2056d9('0xc1e')]=_0x86640f()[_0x2056d9('0x23aa')](_0x4e0899[0x1])?_0x4e0899[0x1]:isNaN(_0x4e0899[0x1])?_0x4e0899[0x1]:parseInt(_0x4e0899[0x1],0xa);}}else _0x1c5675[_0x2056d9('0x1b98')][_0x2056d9('0x13b6')]=0x1;_0x1c5675['autoreply'][_0x2056d9('0x7fa')]&&_0x1c5675[_0x2056d9('0x1b98')][_0x2056d9('0x7fa')][_0x2056d9('0xac2')]()===_0x2056d9('0x2300')&&_0x1c5675[_0x2056d9('0x1b98')][_0x2056d9('0x522')]['toLowerCase']()===_0x2056d9('0x2363')&&(_0x1c5675[_0x2056d9('0x1b98')]['prefix']=_0x1c5675[_0x2056d9('0x1b98')][_0x2056d9('0x159e')]?_0x1c5675['autoreply'][_0x2056d9('0x159e')][_0x2056d9('0x1af5')]('$')[0x0]:undefined,_0x1c5675[_0x2056d9('0x1b98')][_0x2056d9('0x26f7')]=_0x1c5675[_0x2056d9('0x1b98')][_0x2056d9('0x1f5a')]?_0x2056d9('0x587')+_0x1c5675[_0x2056d9('0x1b98')][_0x2056d9('0x1f5a')]:undefined);_0x1c5675[_0x2056d9('0x1454')]=_0x4ddec0,_0x1c5675[_0x2056d9('0x167')]=_0xb16087;function _0x4ddec0(){var _0x247f9c=_0x2056d9;_0x1c5675['errors']=[];var _0xe9aaa2=[];_0x1c5675[_0x247f9c('0x1b98')]['type']&&_0x1c5675[_0x247f9c('0x1b98')][_0x247f9c('0x7fa')]['toLowerCase']()===_0x247f9c('0x2300')&&_0x1c5675['autoreply'][_0x247f9c('0x522')]==='outboundDial'&&(_0x1c5675[_0x247f9c('0x1b98')][_0x247f9c('0x159e')]=_0x390f96[_0x247f9c('0x988')]?(_0x1c5675[_0x247f9c('0x1b98')][_0x247f9c('0x1995')]||'')+_0x247f9c('0x349')+_0x390f96[_0x247f9c('0x988')]+'}':(_0x1c5675[_0x247f9c('0x1b98')][_0x247f9c('0x1995')]||'')+_0x247f9c('0x2560'),_0x390f96['recordingFormat']!==_0x247f9c('0x983')?_0x1c5675[_0x247f9c('0x1b98')][_0x247f9c('0x26a0')]['indexOf'](_0x247f9c('0x478'))<0x0&&(_0x1c5675[_0x247f9c('0x1b98')][_0x247f9c('0x26a0')]+=_0x247f9c('0x478')):_0x1c5675[_0x247f9c('0x1b98')][_0x247f9c('0x26a0')]=_0x1c5675[_0x247f9c('0x1b98')][_0x247f9c('0x26a0')][_0x247f9c('0x16e4')]('U(xcally-mixmonitor-context)',''));if(_0x1c5675[_0x247f9c('0x1b98')]['appType']&&_0x1c5675[_0x247f9c('0x1b98')][_0x247f9c('0x522')]===_0x247f9c('0xf50')){}else switch((_0x1c5675[_0x247f9c('0x1b98')]['app']||_0x1c5675[_0x247f9c('0x1b98')]['appType'])[_0x247f9c('0xac2')]()){case'set':_0x1c5675[_0x247f9c('0x1b98')][_0x247f9c('0x23c2')]=_0x1c5675['autoreply'][_0x247f9c('0x19fe')]+'='+_0x1c5675['autoreply']['value'];break;case'custom':break;default:_0xe9aaa2[0x0]=_0x1c5675[_0x247f9c('0x1b98')][_0x247f9c('0x13b6')],_0xe9aaa2[0x1]=_0x1c5675['autoreply'][_0x247f9c('0xc1e')],_0x1c5675[_0x247f9c('0x1b98')]['appdata']=_0xe9aaa2[_0x247f9c('0x136')](',');}_0xb16087(_0x1c5675[_0x247f9c('0x1b98')]);}function _0xb16087(_0x2d7fc6){var _0x22db78=_0x2056d9;_0xe5274d[_0x22db78('0x1c24')](_0x2d7fc6);}}const _0x3f2b51=_0x3665c0;_0x1c3ad9[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),'smsAccountApp',_0x3877e3('0xa10'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x1c3ad9(_0x16ca77,_0x491a67,_0x3c150e,_0x199746,_0x2eae5b,_0x222618,_0xe6bfa9,_0x59e548){var _0x3f8edb=_0x3877e3,_0x1da12e=this;_0x1da12e[_0x3f8edb('0x123f')]=_0xe6bfa9['getCurrentUser'](),_0x1da12e[_0x3f8edb('0x1a69')]=[],_0x1da12e[_0x3f8edb('0x4b4')]=_0x3f8edb('0x1dad')+(_0x199746['appType']||_0x199746['app'])['toUpperCase'](),_0x1da12e['close']=angular['copy'](_0x199746),_0x1da12e[_0x3f8edb('0x5ed')]=_0x59e548,_0x1da12e['hasModulePermissions']={};if(_0x1da12e[_0x3f8edb('0x22f')]['appdata'])switch(_0x1da12e[_0x3f8edb('0x22f')][_0x3f8edb('0x522')]?_0x1da12e[_0x3f8edb('0x22f')][_0x3f8edb('0x522')][_0x3f8edb('0xac2')]():_0x1da12e[_0x3f8edb('0x22f')][_0x3f8edb('0x1f94')][_0x3f8edb('0xac2')]()){case _0x3f8edb('0xf50'):break;case'dialogflow':{var _0x2f998b=_0x1da12e[_0x3f8edb('0x22f')][_0x3f8edb('0x23c2')][_0x3f8edb('0x1af5')](',');_0x1da12e['close']['key']=_0x2f998b[0x0],_0x1da12e[_0x3f8edb('0x22f')][_0x3f8edb('0x10f')]=_0x2f998b[0x1],_0x1da12e[_0x3f8edb('0x22f')][_0x3f8edb('0x1cce')]=_0x2f998b['slice'](0x2,_0x2f998b[_0x3f8edb('0x577')])[_0x3f8edb('0x136')](',');}break;case _0x3f8edb('0x1c22'):{var _0xe3fa9a=_0x1da12e[_0x3f8edb('0x22f')][_0x3f8edb('0x23c2')][_0x3f8edb('0x1af5')](',');_0x1da12e[_0x3f8edb('0x22f')][_0x3f8edb('0x21c6')]=_0xe3fa9a[0x0],_0x1da12e['close']['secretaccesskey']=_0xe3fa9a[0x1],_0x1da12e[_0x3f8edb('0x22f')]['lexregion']=_0xe3fa9a[0x2],_0x1da12e['close'][_0x3f8edb('0x15fe')]=_0xe3fa9a[0x3],_0x1da12e[_0x3f8edb('0x22f')][_0x3f8edb('0x1cce')]=_0xe3fa9a[_0x3f8edb('0xb3d')](0x4,_0xe3fa9a[_0x3f8edb('0x577')])[_0x3f8edb('0x136')](',');}break;case _0x3f8edb('0x1b98'):{var _0x5f2e18=_0x1da12e[_0x3f8edb('0x22f')][_0x3f8edb('0x23c2')]['split'](',');_0x1da12e[_0x3f8edb('0x22f')]['times']=isNaN(_0x5f2e18[0x0])?_0x5f2e18[0x0]:parseInt(_0x5f2e18[0x0],0xa),_0x1da12e[_0x3f8edb('0x22f')][_0x3f8edb('0xc1e')]=_0x5f2e18[_0x3f8edb('0xb3d')](0x1,_0x5f2e18[_0x3f8edb('0x577')])['join'](',');}break;case _0x3f8edb('0x1224'):_0x1da12e[_0x3f8edb('0x22f')][_0x3f8edb('0xc1e')]=_0x1da12e['close']['appdata'];break;case _0x3f8edb('0x1125'):_0x1da12e[_0x3f8edb('0x22f')]['name']=_0x1da12e[_0x3f8edb('0x22f')]['appdata'][_0x3f8edb('0x1af5')]('=')[0x0],_0x1da12e['close'][_0x3f8edb('0x2228')]=_0x1da12e['close'][_0x3f8edb('0x23c2')][_0x3f8edb('0x1af5')]('=')[0x1];break;case _0x3f8edb('0x2356'):_0x1da12e['close'][_0x3f8edb('0xbf8')]=_0x1da12e[_0x3f8edb('0x22f')][_0x3f8edb('0x23c2')];break;default:{var _0x563990=_0x1da12e[_0x3f8edb('0x22f')][_0x3f8edb('0x23c2')]['split'](',');_0x1da12e[_0x3f8edb('0x22f')][_0x3f8edb('0x22c8')]=_0x86640f()[_0x3f8edb('0x23aa')](_0x563990[0x0])?_0x563990[0x0]:isNaN(_0x563990[0x0])?_0x563990[0x0]:parseInt(_0x563990[0x0],0xa);}break;}else{}_0x1da12e[_0x3f8edb('0x22f')]['type']&&_0x1da12e[_0x3f8edb('0x22f')][_0x3f8edb('0x7fa')][_0x3f8edb('0xac2')]()==='outbound'&&_0x1da12e[_0x3f8edb('0x22f')][_0x3f8edb('0x522')][_0x3f8edb('0xac2')]()===_0x3f8edb('0x2363')&&(_0x1da12e[_0x3f8edb('0x22f')][_0x3f8edb('0x1995')]=_0x1da12e[_0x3f8edb('0x22f')]['phone']?_0x1da12e['close'][_0x3f8edb('0x159e')]['split']('$')[0x0]:undefined,_0x1da12e['close'][_0x3f8edb('0x26f7')]=_0x1da12e[_0x3f8edb('0x22f')][_0x3f8edb('0x1f5a')]?_0x3f8edb('0x587')+_0x1da12e[_0x3f8edb('0x22f')][_0x3f8edb('0x1f5a')]:undefined);_0x1da12e[_0x3f8edb('0x1454')]=_0x46d840,_0x1da12e['closeDialog']=_0x1e0daf;function _0x46d840(){var _0x4b7e49=_0x3f8edb;_0x1da12e[_0x4b7e49('0x1a69')]=[];var _0x357c98=[];_0x1da12e[_0x4b7e49('0x22f')][_0x4b7e49('0x7fa')]&&_0x1da12e[_0x4b7e49('0x22f')]['type'][_0x4b7e49('0xac2')]()===_0x4b7e49('0x2300')&&_0x1da12e[_0x4b7e49('0x22f')]['appType']===_0x4b7e49('0x4ea')&&(_0x1da12e[_0x4b7e49('0x22f')][_0x4b7e49('0x159e')]=_0x2eae5b['cutdigits']?(_0x1da12e['close'][_0x4b7e49('0x1995')]||'')+_0x4b7e49('0x349')+_0x2eae5b['cutdigits']+'}':(_0x1da12e[_0x4b7e49('0x22f')][_0x4b7e49('0x1995')]||'')+_0x4b7e49('0x2560'),_0x2eae5b[_0x4b7e49('0xad1')]!==_0x4b7e49('0x983')?_0x1da12e[_0x4b7e49('0x22f')]['options'][_0x4b7e49('0x2004')](_0x4b7e49('0x478'))<0x0&&(_0x1da12e['close'][_0x4b7e49('0x26a0')]+=_0x4b7e49('0x478')):_0x1da12e[_0x4b7e49('0x22f')][_0x4b7e49('0x26a0')]=_0x1da12e[_0x4b7e49('0x22f')][_0x4b7e49('0x26a0')][_0x4b7e49('0x16e4')]('U(xcally-mixmonitor-context)',''));if(_0x1da12e[_0x4b7e49('0x22f')][_0x4b7e49('0x522')]&&_0x1da12e[_0x4b7e49('0x22f')][_0x4b7e49('0x522')]==='custom'){}else switch((_0x1da12e[_0x4b7e49('0x22f')][_0x4b7e49('0x1f94')]||_0x1da12e[_0x4b7e49('0x22f')]['appType'])[_0x4b7e49('0xac2')]()){case _0x4b7e49('0x1125'):_0x1da12e['close'][_0x4b7e49('0x23c2')]=_0x1da12e[_0x4b7e49('0x22f')][_0x4b7e49('0x19fe')]+'='+_0x1da12e[_0x4b7e49('0x22f')][_0x4b7e49('0x2228')];break;case _0x4b7e49('0xf50'):break;default:_0x357c98[0x0]=_0x1da12e[_0x4b7e49('0x22f')]['disposition'],_0x1da12e[_0x4b7e49('0x22f')][_0x4b7e49('0x23c2')]=_0x357c98['join'](',');}_0x1e0daf(_0x1da12e[_0x4b7e49('0x22f')]);}function _0x1e0daf(_0x571dc6){var _0x24f352=_0x3f8edb;_0x16ca77[_0x24f352('0x1c24')](_0x571dc6);}}const _0x21496f=_0x1c3ad9;_0x1be84d[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q','toasty',_0x3877e3('0x17ac'),_0x3877e3('0xa10'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x1be84d(_0x309430,_0x51095c,_0x48e0d3,_0x258c13,_0xa14465,_0x3fe3db,_0x1858b4,_0x3ab50b){var _0x1e638c=_0x3877e3,_0x4c936e=this;_0x4c936e['currentUser']=_0x1858b4[_0x1e638c('0x15ed')](),_0x4c936e[_0x1e638c('0x1a69')]=[],_0x4c936e[_0x1e638c('0x4b4')]='SMS.EDIT_'+(_0x258c13[_0x1e638c('0x522')]||_0x258c13[_0x1e638c('0x1f94')])[_0x1e638c('0x2e8')](),_0x4c936e[_0x1e638c('0xc72')]=angular[_0x1e638c('0xd75')](_0x258c13),_0x4c936e[_0x1e638c('0x5ed')]=_0x3ab50b,_0x4c936e[_0x1e638c('0x126a')]={};if(_0x4c936e['dialogflow'][_0x1e638c('0x23c2')])switch(_0x4c936e[_0x1e638c('0xc72')][_0x1e638c('0x522')]?_0x4c936e[_0x1e638c('0xc72')][_0x1e638c('0x522')][_0x1e638c('0xac2')]():_0x4c936e[_0x1e638c('0xc72')]['app'][_0x1e638c('0xac2')]()){case _0x1e638c('0xf50'):break;case _0x1e638c('0xc72'):{var _0x4c00a0=_0x4c936e[_0x1e638c('0xc72')][_0x1e638c('0x23c2')][_0x1e638c('0x1af5')](',');_0x4c936e[_0x1e638c('0xc72')][_0x1e638c('0xddb')]=_0x4c00a0[0x0],_0x4c936e[_0x1e638c('0xc72')]['language']=_0x4c00a0[0x1],_0x4c936e[_0x1e638c('0xc72')][_0x1e638c('0x1cce')]=_0x4c00a0[_0x1e638c('0xb3d')](0x2,_0x4c00a0['length'])[_0x1e638c('0x136')](',');}break;case _0x1e638c('0x1c22'):{var _0x131374=_0x4c936e['dialogflow'][_0x1e638c('0x23c2')][_0x1e638c('0x1af5')](',');_0x4c936e['dialogflow'][_0x1e638c('0x21c6')]=_0x131374[0x0],_0x4c936e[_0x1e638c('0xc72')][_0x1e638c('0x797')]=_0x131374[0x1],_0x4c936e[_0x1e638c('0xc72')][_0x1e638c('0x20a3')]=_0x131374[0x2],_0x4c936e['dialogflow'][_0x1e638c('0x15fe')]=_0x131374[0x3],_0x4c936e[_0x1e638c('0xc72')][_0x1e638c('0x1cce')]=_0x131374['slice'](0x4,_0x131374[_0x1e638c('0x577')])['join'](',');}break;case _0x1e638c('0x1b98'):{var _0x1d0cc1=_0x4c936e[_0x1e638c('0xc72')][_0x1e638c('0x23c2')][_0x1e638c('0x1af5')](',');_0x4c936e[_0x1e638c('0xc72')][_0x1e638c('0x13b6')]=isNaN(_0x1d0cc1[0x0])?_0x1d0cc1[0x0]:parseInt(_0x1d0cc1[0x0],0xa),_0x4c936e[_0x1e638c('0xc72')]['text']=_0x1d0cc1[_0x1e638c('0xb3d')](0x1,_0x1d0cc1[_0x1e638c('0x577')])[_0x1e638c('0x136')](',');}break;case _0x1e638c('0x1224'):_0x4c936e['dialogflow'][_0x1e638c('0xc1e')]=_0x4c936e[_0x1e638c('0xc72')][_0x1e638c('0x23c2')];break;case _0x1e638c('0x1125'):_0x4c936e[_0x1e638c('0xc72')][_0x1e638c('0x19fe')]=_0x4c936e['dialogflow']['appdata'][_0x1e638c('0x1af5')]('=')[0x0],_0x4c936e['dialogflow'][_0x1e638c('0x2228')]=_0x4c936e[_0x1e638c('0xc72')][_0x1e638c('0x23c2')][_0x1e638c('0x1af5')]('=')[0x1];break;case _0x1e638c('0x2356'):_0x4c936e['dialogflow'][_0x1e638c('0xbf8')]=_0x4c936e[_0x1e638c('0xc72')][_0x1e638c('0x23c2')];break;default:{var _0x3c94b0=_0x4c936e[_0x1e638c('0xc72')][_0x1e638c('0x23c2')]['split'](',');_0x4c936e[_0x1e638c('0xc72')]['key']=_0x86640f()[_0x1e638c('0x23aa')](_0x3c94b0[0x0])?_0x3c94b0[0x0]:isNaN(_0x3c94b0[0x0])?_0x3c94b0[0x0]:parseInt(_0x3c94b0[0x0],0xa),_0x4c936e[_0x1e638c('0xc72')][_0x1e638c('0x10f')]=_0x86640f()[_0x1e638c('0x23aa')](_0x3c94b0[0x1])?_0x3c94b0[0x1]:isNaN(_0x3c94b0[0x1])?_0x3c94b0[0x1]:parseInt(_0x3c94b0[0x1],0xa),_0x4c936e[_0x1e638c('0xc72')][_0x1e638c('0x1cce')]=_0x86640f()['isEmpty'](_0x3c94b0[0x2])?_0x3c94b0[0x2]:isNaN(_0x3c94b0[0x2])?_0x3c94b0[0x2]:parseInt(_0x3c94b0[0x2],0xa);}break;}else _0x4c936e[_0x1e638c('0xc72')][_0x1e638c('0x10f')]='en';_0x4c936e[_0x1e638c('0xc72')][_0x1e638c('0x7fa')]&&_0x4c936e[_0x1e638c('0xc72')][_0x1e638c('0x7fa')]['toLowerCase']()===_0x1e638c('0x2300')&&_0x4c936e[_0x1e638c('0xc72')][_0x1e638c('0x522')]['toLowerCase']()===_0x1e638c('0x2363')&&(_0x4c936e[_0x1e638c('0xc72')]['prefix']=_0x4c936e[_0x1e638c('0xc72')][_0x1e638c('0x159e')]?_0x4c936e[_0x1e638c('0xc72')][_0x1e638c('0x159e')][_0x1e638c('0x1af5')]('$')[0x0]:undefined,_0x4c936e[_0x1e638c('0xc72')][_0x1e638c('0x26f7')]=_0x4c936e[_0x1e638c('0xc72')][_0x1e638c('0x1f5a')]?_0x1e638c('0x587')+_0x4c936e[_0x1e638c('0xc72')]['callerID']:undefined);_0x4c936e[_0x1e638c('0x1454')]=_0x4fd49e,_0x4c936e[_0x1e638c('0x167')]=_0x45dcdd;function _0x4fd49e(){var _0x4146e3=_0x1e638c;_0x4c936e[_0x4146e3('0x1a69')]=[];var _0x40edf7=[];_0x4c936e['dialogflow']['type']&&_0x4c936e[_0x4146e3('0xc72')][_0x4146e3('0x7fa')][_0x4146e3('0xac2')]()===_0x4146e3('0x2300')&&_0x4c936e[_0x4146e3('0xc72')][_0x4146e3('0x522')]===_0x4146e3('0x4ea')&&(_0x4c936e[_0x4146e3('0xc72')][_0x4146e3('0x159e')]=_0xa14465[_0x4146e3('0x988')]?(_0x4c936e[_0x4146e3('0xc72')][_0x4146e3('0x1995')]||'')+_0x4146e3('0x349')+_0xa14465[_0x4146e3('0x988')]+'}':(_0x4c936e['dialogflow']['prefix']||'')+_0x4146e3('0x2560'),_0xa14465[_0x4146e3('0xad1')]!=='none'?_0x4c936e[_0x4146e3('0xc72')][_0x4146e3('0x26a0')][_0x4146e3('0x2004')](_0x4146e3('0x478'))<0x0&&(_0x4c936e[_0x4146e3('0xc72')][_0x4146e3('0x26a0')]+='U(xcally-mixmonitor-context)'):_0x4c936e['dialogflow'][_0x4146e3('0x26a0')]=_0x4c936e['dialogflow'][_0x4146e3('0x26a0')][_0x4146e3('0x16e4')](_0x4146e3('0x478'),''));if(_0x4c936e['dialogflow'][_0x4146e3('0x522')]&&_0x4c936e[_0x4146e3('0xc72')][_0x4146e3('0x522')]==='custom'){}else switch((_0x4c936e[_0x4146e3('0xc72')]['app']||_0x4c936e[_0x4146e3('0xc72')]['appType'])[_0x4146e3('0xac2')]()){case _0x4146e3('0x1125'):_0x4c936e['dialogflow'][_0x4146e3('0x23c2')]=_0x4c936e[_0x4146e3('0xc72')]['name']+'='+_0x4c936e[_0x4146e3('0xc72')][_0x4146e3('0x2228')];break;case _0x4146e3('0xf50'):break;default:_0x40edf7[0x0]=_0x4c936e['dialogflow'][_0x4146e3('0xddb')],_0x40edf7[0x1]=_0x4c936e[_0x4146e3('0xc72')][_0x4146e3('0x10f')],_0x40edf7[0x2]=_0x4c936e[_0x4146e3('0xc72')][_0x4146e3('0x1cce')],_0x4c936e['dialogflow']['appdata']=_0x40edf7[_0x4146e3('0x136')](',');}_0x45dcdd(_0x4c936e[_0x4146e3('0xc72')]);}function _0x45dcdd(_0x4f4ece){var _0x26a53e=_0x1e638c;_0x309430[_0x26a53e('0x1c24')](_0x4f4ece);}}const _0x424976=_0x1be84d;_0x3c07b8['$inject']=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x17ac'),_0x3877e3('0xa10'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'crudPermissions'];function _0x3c07b8(_0x31a794,_0x233323,_0x5c7539,_0x383c67,_0x5533b3,_0x37a606,_0x1b069e,_0x349ca8){var _0xcf6529=_0x3877e3,_0x994de2=this;_0x994de2[_0xcf6529('0x123f')]=_0x1b069e[_0xcf6529('0x15ed')](),_0x994de2[_0xcf6529('0x1a69')]=[],_0x994de2[_0xcf6529('0x4b4')]=_0xcf6529('0x1dad')+(_0x383c67['appType']||_0x383c67[_0xcf6529('0x1f94')])['toUpperCase'](),_0x994de2['gotoif']=angular['copy'](_0x383c67),_0x994de2[_0xcf6529('0x5ed')]=_0x349ca8,_0x994de2['hasModulePermissions']={};if(_0x994de2['gotoif'][_0xcf6529('0x23c2')])switch(_0x994de2['gotoif'][_0xcf6529('0x522')]?_0x994de2[_0xcf6529('0x262')][_0xcf6529('0x522')][_0xcf6529('0xac2')]():_0x994de2[_0xcf6529('0x262')][_0xcf6529('0x1f94')]['toLowerCase']()){case _0xcf6529('0xf50'):break;case _0xcf6529('0xc72'):{var _0x3985a3=_0x994de2[_0xcf6529('0x262')][_0xcf6529('0x23c2')]['split'](',');_0x994de2['gotoif']['key']=_0x3985a3[0x0],_0x994de2[_0xcf6529('0x262')][_0xcf6529('0x10f')]=_0x3985a3[0x1],_0x994de2[_0xcf6529('0x262')]['welcomemessage']=_0x3985a3[_0xcf6529('0xb3d')](0x2,_0x3985a3[_0xcf6529('0x577')])[_0xcf6529('0x136')](',');}break;case _0xcf6529('0x1c22'):{var _0x266b81=_0x994de2['gotoif'][_0xcf6529('0x23c2')][_0xcf6529('0x1af5')](',');_0x994de2[_0xcf6529('0x262')][_0xcf6529('0x21c6')]=_0x266b81[0x0],_0x994de2[_0xcf6529('0x262')][_0xcf6529('0x797')]=_0x266b81[0x1],_0x994de2['gotoif'][_0xcf6529('0x20a3')]=_0x266b81[0x2],_0x994de2[_0xcf6529('0x262')][_0xcf6529('0x15fe')]=_0x266b81[0x3],_0x994de2[_0xcf6529('0x262')]['welcomemessage']=_0x266b81[_0xcf6529('0xb3d')](0x4,_0x266b81[_0xcf6529('0x577')])[_0xcf6529('0x136')](',');}break;case _0xcf6529('0x1b98'):{var _0x29401a=_0x994de2[_0xcf6529('0x262')][_0xcf6529('0x23c2')]['split'](',');_0x994de2[_0xcf6529('0x262')][_0xcf6529('0x13b6')]=isNaN(_0x29401a[0x0])?_0x29401a[0x0]:parseInt(_0x29401a[0x0],0xa),_0x994de2[_0xcf6529('0x262')][_0xcf6529('0xc1e')]=_0x29401a[_0xcf6529('0xb3d')](0x1,_0x29401a[_0xcf6529('0x577')])[_0xcf6529('0x136')](',');}break;case _0xcf6529('0x1224'):_0x994de2[_0xcf6529('0x262')]['text']=_0x994de2[_0xcf6529('0x262')][_0xcf6529('0x23c2')];break;case _0xcf6529('0x1125'):_0x994de2[_0xcf6529('0x262')]['name']=_0x994de2[_0xcf6529('0x262')]['appdata'][_0xcf6529('0x1af5')]('=')[0x0],_0x994de2[_0xcf6529('0x262')]['value']=_0x994de2[_0xcf6529('0x262')]['appdata'][_0xcf6529('0x1af5')]('=')[0x1];break;case _0xcf6529('0x2356'):_0x994de2[_0xcf6529('0x262')][_0xcf6529('0xbf8')]=_0x994de2[_0xcf6529('0x262')][_0xcf6529('0x23c2')];break;default:{var _0xf85fc2=_0x994de2[_0xcf6529('0x262')][_0xcf6529('0x23c2')]['split'](',');_0x994de2[_0xcf6529('0x262')][_0xcf6529('0x271c')]=_0x86640f()[_0xcf6529('0x23aa')](_0xf85fc2[0x0])?_0xf85fc2[0x0]:isNaN(_0xf85fc2[0x0])?_0xf85fc2[0x0]:parseInt(_0xf85fc2[0x0],0xa),_0x994de2[_0xcf6529('0x262')][_0xcf6529('0x1a25')]=_0x86640f()['isEmpty'](_0xf85fc2[0x1])?_0xf85fc2[0x1]:isNaN(_0xf85fc2[0x1])?_0xf85fc2[0x1]:parseInt(_0xf85fc2[0x1],0xa),_0x994de2['gotoif'][_0xcf6529('0xe4c')]=_0x86640f()['isEmpty'](_0xf85fc2[0x2])?_0xf85fc2[0x2]:isNaN(_0xf85fc2[0x2])?_0xf85fc2[0x2]:parseInt(_0xf85fc2[0x2],0xa);}break;}else{}_0x994de2['gotoif']['type']&&_0x994de2[_0xcf6529('0x262')][_0xcf6529('0x7fa')]['toLowerCase']()===_0xcf6529('0x2300')&&_0x994de2['gotoif'][_0xcf6529('0x522')][_0xcf6529('0xac2')]()===_0xcf6529('0x2363')&&(_0x994de2['gotoif'][_0xcf6529('0x1995')]=_0x994de2[_0xcf6529('0x262')][_0xcf6529('0x159e')]?_0x994de2[_0xcf6529('0x262')][_0xcf6529('0x159e')][_0xcf6529('0x1af5')]('$')[0x0]:undefined,_0x994de2['gotoif'][_0xcf6529('0x26f7')]=_0x994de2[_0xcf6529('0x262')][_0xcf6529('0x1f5a')]?_0xcf6529('0x587')+_0x994de2[_0xcf6529('0x262')]['callerID']:undefined);_0x994de2[_0xcf6529('0x1454')]=_0xfd3899,_0x994de2[_0xcf6529('0x167')]=_0x4a5156;function _0xfd3899(){var _0x2a37e8=_0xcf6529;_0x994de2[_0x2a37e8('0x1a69')]=[];var _0x3a35a6=[];_0x994de2['gotoif'][_0x2a37e8('0x7fa')]&&_0x994de2[_0x2a37e8('0x262')]['type']['toLowerCase']()===_0x2a37e8('0x2300')&&_0x994de2[_0x2a37e8('0x262')]['appType']==='outboundDial'&&(_0x994de2[_0x2a37e8('0x262')][_0x2a37e8('0x159e')]=_0x5533b3[_0x2a37e8('0x988')]?(_0x994de2[_0x2a37e8('0x262')][_0x2a37e8('0x1995')]||'')+_0x2a37e8('0x349')+_0x5533b3[_0x2a37e8('0x988')]+'}':(_0x994de2[_0x2a37e8('0x262')]['prefix']||'')+_0x2a37e8('0x2560'),_0x5533b3[_0x2a37e8('0xad1')]!==_0x2a37e8('0x983')?_0x994de2[_0x2a37e8('0x262')]['options'][_0x2a37e8('0x2004')](_0x2a37e8('0x478'))<0x0&&(_0x994de2[_0x2a37e8('0x262')][_0x2a37e8('0x26a0')]+=_0x2a37e8('0x478')):_0x994de2[_0x2a37e8('0x262')][_0x2a37e8('0x26a0')]=_0x994de2['gotoif'][_0x2a37e8('0x26a0')]['replace'](_0x2a37e8('0x478'),''));if(_0x994de2['gotoif'][_0x2a37e8('0x522')]&&_0x994de2[_0x2a37e8('0x262')]['appType']==='custom'){}else switch((_0x994de2['gotoif']['app']||_0x994de2[_0x2a37e8('0x262')][_0x2a37e8('0x522')])['toLowerCase']()){case'set':_0x994de2[_0x2a37e8('0x262')][_0x2a37e8('0x23c2')]=_0x994de2[_0x2a37e8('0x262')]['name']+'='+_0x994de2[_0x2a37e8('0x262')][_0x2a37e8('0x2228')];break;case _0x2a37e8('0xf50'):break;default:_0x3a35a6[0x0]=_0x994de2['gotoif']['condition'],_0x3a35a6[0x1]=_0x994de2[_0x2a37e8('0x262')]['truepriority'],_0x3a35a6[0x2]=_0x994de2[_0x2a37e8('0x262')][_0x2a37e8('0xe4c')],_0x994de2['gotoif'][_0x2a37e8('0x23c2')]=_0x3a35a6[_0x2a37e8('0x136')](',');}_0x4a5156(_0x994de2[_0x2a37e8('0x262')]);}function _0x4a5156(_0x346789){var _0xe09ef2=_0xcf6529;_0x31a794[_0xe09ef2('0x1c24')](_0x346789);}}const _0x24570c=_0x3c07b8;_0x35c735[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),'smsAccountApp','smsAccount','api',_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x35c735(_0xd687a5,_0x4381af,_0x109c87,_0x1894d9,_0x189277,_0x549615,_0x38df24,_0x1e612b){var _0x5e9254=_0x3877e3,_0x716234=this;_0x716234['currentUser']=_0x38df24[_0x5e9254('0x15ed')](),_0x716234[_0x5e9254('0x1a69')]=[],_0x716234['title']=_0x5e9254('0x1dad')+(_0x1894d9['appType']||_0x1894d9[_0x5e9254('0x1f94')])[_0x5e9254('0x2e8')](),_0x716234['gotop']=angular[_0x5e9254('0xd75')](_0x1894d9),_0x716234[_0x5e9254('0x5ed')]=_0x1e612b,_0x716234[_0x5e9254('0x126a')]={};if(_0x716234[_0x5e9254('0x23ef')]['appdata'])switch(_0x716234[_0x5e9254('0x23ef')]['appType']?_0x716234['gotop']['appType'][_0x5e9254('0xac2')]():_0x716234['gotop'][_0x5e9254('0x1f94')][_0x5e9254('0xac2')]()){case _0x5e9254('0xf50'):break;case _0x5e9254('0xc72'):{var _0x47a36f=_0x716234['gotop'][_0x5e9254('0x23c2')][_0x5e9254('0x1af5')](',');_0x716234[_0x5e9254('0x23ef')]['key']=_0x47a36f[0x0],_0x716234[_0x5e9254('0x23ef')][_0x5e9254('0x10f')]=_0x47a36f[0x1],_0x716234[_0x5e9254('0x23ef')]['welcomemessage']=_0x47a36f['slice'](0x2,_0x47a36f[_0x5e9254('0x577')])[_0x5e9254('0x136')](',');}break;case _0x5e9254('0x1c22'):{var _0x4f4f13=_0x716234[_0x5e9254('0x23ef')][_0x5e9254('0x23c2')][_0x5e9254('0x1af5')](',');_0x716234['gotop']['accesskeyid']=_0x4f4f13[0x0],_0x716234[_0x5e9254('0x23ef')][_0x5e9254('0x797')]=_0x4f4f13[0x1],_0x716234[_0x5e9254('0x23ef')][_0x5e9254('0x20a3')]=_0x4f4f13[0x2],_0x716234['gotop'][_0x5e9254('0x15fe')]=_0x4f4f13[0x3],_0x716234[_0x5e9254('0x23ef')][_0x5e9254('0x1cce')]=_0x4f4f13['slice'](0x4,_0x4f4f13[_0x5e9254('0x577')])[_0x5e9254('0x136')](',');}break;case _0x5e9254('0x1b98'):{var _0x1943e6=_0x716234[_0x5e9254('0x23ef')][_0x5e9254('0x23c2')][_0x5e9254('0x1af5')](',');_0x716234[_0x5e9254('0x23ef')][_0x5e9254('0x13b6')]=isNaN(_0x1943e6[0x0])?_0x1943e6[0x0]:parseInt(_0x1943e6[0x0],0xa),_0x716234['gotop'][_0x5e9254('0xc1e')]=_0x1943e6[_0x5e9254('0xb3d')](0x1,_0x1943e6[_0x5e9254('0x577')])[_0x5e9254('0x136')](',');}break;case'message':_0x716234[_0x5e9254('0x23ef')][_0x5e9254('0xc1e')]=_0x716234[_0x5e9254('0x23ef')]['appdata'];break;case _0x5e9254('0x1125'):_0x716234['gotop'][_0x5e9254('0x19fe')]=_0x716234[_0x5e9254('0x23ef')][_0x5e9254('0x23c2')][_0x5e9254('0x1af5')]('=')[0x0],_0x716234['gotop'][_0x5e9254('0x2228')]=_0x716234[_0x5e9254('0x23ef')][_0x5e9254('0x23c2')][_0x5e9254('0x1af5')]('=')[0x1];break;case _0x5e9254('0x2356'):_0x716234[_0x5e9254('0x23ef')]['project']=_0x716234['gotop']['appdata'];break;default:{var _0x398212=_0x716234[_0x5e9254('0x23ef')]['appdata']['split'](',');_0x716234['gotop'][_0x5e9254('0xbe5')]=_0x86640f()[_0x5e9254('0x23aa')](_0x398212[0x0])?_0x398212[0x0]:isNaN(_0x398212[0x0])?_0x398212[0x0]:parseInt(_0x398212[0x0],0xa);}break;}else{}_0x716234[_0x5e9254('0x23ef')][_0x5e9254('0x7fa')]&&_0x716234[_0x5e9254('0x23ef')][_0x5e9254('0x7fa')]['toLowerCase']()===_0x5e9254('0x2300')&&_0x716234[_0x5e9254('0x23ef')][_0x5e9254('0x522')][_0x5e9254('0xac2')]()===_0x5e9254('0x2363')&&(_0x716234[_0x5e9254('0x23ef')][_0x5e9254('0x1995')]=_0x716234[_0x5e9254('0x23ef')][_0x5e9254('0x159e')]?_0x716234[_0x5e9254('0x23ef')][_0x5e9254('0x159e')][_0x5e9254('0x1af5')]('$')[0x0]:undefined,_0x716234[_0x5e9254('0x23ef')][_0x5e9254('0x26f7')]=_0x716234['gotop'][_0x5e9254('0x1f5a')]?_0x5e9254('0x587')+_0x716234[_0x5e9254('0x23ef')]['callerID']:undefined);_0x716234[_0x5e9254('0x1454')]=_0x410da9,_0x716234['closeDialog']=_0x3619cf;function _0x410da9(){var _0x42f78e=_0x5e9254;_0x716234[_0x42f78e('0x1a69')]=[];var _0x23f854=[];_0x716234['gotop'][_0x42f78e('0x7fa')]&&_0x716234[_0x42f78e('0x23ef')][_0x42f78e('0x7fa')][_0x42f78e('0xac2')]()===_0x42f78e('0x2300')&&_0x716234[_0x42f78e('0x23ef')][_0x42f78e('0x522')]===_0x42f78e('0x4ea')&&(_0x716234[_0x42f78e('0x23ef')][_0x42f78e('0x159e')]=_0x189277[_0x42f78e('0x988')]?(_0x716234[_0x42f78e('0x23ef')][_0x42f78e('0x1995')]||'')+'${EXTEN:'+_0x189277[_0x42f78e('0x988')]+'}':(_0x716234[_0x42f78e('0x23ef')][_0x42f78e('0x1995')]||'')+_0x42f78e('0x2560'),_0x189277[_0x42f78e('0xad1')]!==_0x42f78e('0x983')?_0x716234['gotop'][_0x42f78e('0x26a0')][_0x42f78e('0x2004')](_0x42f78e('0x478'))<0x0&&(_0x716234[_0x42f78e('0x23ef')][_0x42f78e('0x26a0')]+=_0x42f78e('0x478')):_0x716234[_0x42f78e('0x23ef')][_0x42f78e('0x26a0')]=_0x716234['gotop'][_0x42f78e('0x26a0')][_0x42f78e('0x16e4')](_0x42f78e('0x478'),''));if(_0x716234[_0x42f78e('0x23ef')][_0x42f78e('0x522')]&&_0x716234[_0x42f78e('0x23ef')][_0x42f78e('0x522')]==='custom'){}else switch((_0x716234[_0x42f78e('0x23ef')][_0x42f78e('0x1f94')]||_0x716234[_0x42f78e('0x23ef')][_0x42f78e('0x522')])[_0x42f78e('0xac2')]()){case _0x42f78e('0x1125'):_0x716234[_0x42f78e('0x23ef')][_0x42f78e('0x23c2')]=_0x716234[_0x42f78e('0x23ef')][_0x42f78e('0x19fe')]+'='+_0x716234['gotop'][_0x42f78e('0x2228')];break;case _0x42f78e('0xf50'):break;default:_0x23f854[0x0]=_0x716234[_0x42f78e('0x23ef')][_0x42f78e('0xbe5')],_0x716234['gotop'][_0x42f78e('0x23c2')]=_0x23f854[_0x42f78e('0x136')](',');}_0x3619cf(_0x716234[_0x42f78e('0x23ef')]);}function _0x3619cf(_0x4cfbc7){_0xd687a5['hide'](_0x4cfbc7);}}const _0x19f37c=_0x35c735;_0x1ea669[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x1850'),'$mdToast',_0x3877e3('0x2086'),_0x3877e3('0xa07'),_0x3877e3('0x2530'),_0x3877e3('0x1908'),'api',_0x3877e3('0x15bc'),'crudPermissions'];function _0x1ea669(_0x1ebd30,_0x30d03a,_0x21909c,_0x41c2f5,_0x456cbc,_0x4e8360,_0x4a7124,_0x440d75,_0x112523,_0x3409f1){var _0x460ec6=_0x3877e3,_0xb225ed=this;_0xb225ed[_0x460ec6('0x123f')]=_0x112523[_0x460ec6('0x15ed')](),_0xb225ed[_0x460ec6('0x1a69')]=[],_0xb225ed[_0x460ec6('0x4b4')]=_0x460ec6('0x130e'),_0xb225ed['interval']=angular[_0x460ec6('0xd75')](_0x456cbc),_0xb225ed[_0x460ec6('0x2530')]=_0x4e8360,_0xb225ed[_0x460ec6('0x1c3e')]=![],_0xb225ed['types']=['always',_0x460ec6('0xf50'),_0x460ec6('0x17fe')],_0xb225ed[_0x460ec6('0x5ed')]=_0x3409f1,_0xb225ed['daysOfWeek']=_0x41c2f5[_0x460ec6('0x1d74')](),_0xb225ed[_0x460ec6('0x6fd')]=_0x41c2f5[_0x460ec6('0x439')](),_0xb225ed[_0x460ec6('0x1f1e')]=_0x41c2f5['getMonthName'](),_0xb225ed[_0x460ec6('0x443')]=_0x41c2f5[_0x460ec6('0x200e')]();if(!_0xb225ed[_0x460ec6('0xa07')])_0xb225ed[_0x460ec6('0xa07')]={'interval':_0x460ec6('0x1cc4')},_0xb225ed[_0x460ec6('0x7fa')]=_0x460ec6('0x869'),_0xb225ed[_0x460ec6('0x4b4')]='TOOLS.NEW_INTERVAL',_0xb225ed['newInterval']=!![];else{if(_0xb225ed[_0x460ec6('0xa07')][_0x460ec6('0xa07')]!==_0x460ec6('0x1cc4')){_0xb225ed[_0x460ec6('0x7fa')]=_0x460ec6('0xf50');var _0x59ce71=_0xb225ed[_0x460ec6('0xa07')][_0x460ec6('0xa07')][_0x460ec6('0x1af5')](','),_0x16a5d9=_0x59ce71[0x0],_0x274a65=_0x59ce71[0x1],_0xcb1d2c=_0x59ce71[0x2],_0x2438b0=_0x59ce71[0x3];if(_0x16a5d9!=='*'){var _0x45ea73=_0x16a5d9['split']('-')[0x0],_0x48f493=_0x16a5d9['split']('-')[0x1],_0xfc9b39;_0xfc9b39=new Date(),_0xfc9b39['setHours'](Number(_0x45ea73[_0x460ec6('0x1af5')](':')[0x0])),_0xfc9b39['setMinutes'](Number(_0x45ea73[_0x460ec6('0x1af5')](':')[0x1])),_0xb225ed[_0x460ec6('0x3e8')]=_0xfc9b39,_0xfc9b39=new Date(),_0xfc9b39[_0x460ec6('0xb0f')](Number(_0x48f493['split'](':')[0x0])),_0xfc9b39[_0x460ec6('0x119c')](Number(_0x48f493['split'](':')[0x1])),_0xb225ed[_0x460ec6('0x1fbc')]=_0xfc9b39;}_0x274a65!=='*'&&(_0xb225ed[_0x460ec6('0x21a5')]=_0x274a65[_0x460ec6('0x1af5')]('-')[0x0],_0xb225ed[_0x460ec6('0x1556')]=_0x274a65[_0x460ec6('0x1af5')]('-')[0x1]),_0xcb1d2c!=='*'&&(_0xb225ed['monthDayFrom']=_0xcb1d2c[_0x460ec6('0x1af5')]('-')[0x0],_0xb225ed[_0x460ec6('0x3bf')]=_0xcb1d2c['split']('-')[0x1]),_0x2438b0!=='*'&&(_0xb225ed[_0x460ec6('0xded')]=_0x2438b0[_0x460ec6('0x1af5')]('-')[0x0],_0xb225ed[_0x460ec6('0x2633')]=_0x2438b0[_0x460ec6('0x1af5')]('-')[0x1]);}else _0xb225ed['type']=_0x460ec6('0x869');}_0x1ebd30[_0x460ec6('0x171b')]['id']&&!_0xb225ed[_0x460ec6('0xa07')][_0x460ec6('0xd7f')]&&(_0xb225ed[_0x460ec6('0xa07')][_0x460ec6('0x1ac8')]=_0x1ebd30[_0x460ec6('0x171b')]['id']);_0xb225ed[_0x460ec6('0xa07')]['IntervalId']&&_0xb225ed[_0x460ec6('0xa07')][_0x460ec6('0xd7f')]&&(_0xb225ed[_0x460ec6('0x7fa')]=_0x460ec6('0x17fe'));_0xb225ed[_0x460ec6('0x2bb')]=_0x481e67,_0xb225ed[_0x460ec6('0xc2e')]=_0xe9f3b6,_0xb225ed['closeDialog']=_0x4b49b1;_0xb225ed['interval'][_0x460ec6('0xd7f')]&&(_0x112523[_0x460ec6('0x21de')](_0x460ec6('0x1bd8'))?_0x440d75[_0x460ec6('0xa07')][_0x460ec6('0x595')]({'fields':_0x460ec6('0xaaf'),'IntervalId':_0x460ec6('0x27a'),'nolimit':!![]})[_0x460ec6('0x1376')][_0x460ec6('0x21ad')](function(_0x4765ce){var _0x7e76e=_0x460ec6;_0xb225ed[_0x7e76e('0x2530')]=_0x4765ce['rows']||[];})[_0x460ec6('0x1c1d')](function(_0x20f49e){var _0x376970=_0x460ec6;_0x4a7124[_0x376970('0x2092')]({'title':_0x20f49e[_0x376970('0x209')]?_0x376970('0x22d')+_0x20f49e[_0x376970('0x209')]+_0x376970('0xa99')+_0x20f49e['statusText']:'SYSTEM:GET_INTERVALS','msg':_0x20f49e['data']?JSON['stringify'](_0x20f49e['data']):_0x20f49e['toString']()});}):_0x440d75[_0x460ec6('0xa07')][_0x460ec6('0x595')]({'fields':_0x460ec6('0xaaf'),'IntervalId':_0x460ec6('0x27a'),'nolimit':!![]})['$promise'][_0x460ec6('0x21ad')](function(_0x45be8d){var _0x173b92=_0x460ec6;_0xb225ed[_0x173b92('0x2530')]=_0x45be8d[_0x173b92('0x1b33')]||[];})[_0x460ec6('0x21ad')](function(){var _0x28829f=_0x460ec6;return _0x440d75['userProfileSection'][_0x28829f('0x595')]({'userProfileId':_0xb225ed[_0x28829f('0x123f')][_0x28829f('0x1618')],'sectionId':0x3ec})['$promise'];})[_0x460ec6('0x21ad')](function(_0x11276c){var _0x2c5858=_0x460ec6,_0x249c49=_0x11276c&&_0x11276c[_0x2c5858('0x1b33')]?_0x11276c[_0x2c5858('0x1b33')][0x0]:null;if(!_0x249c49)_0xb225ed['intervals']=[];else{if(!_0x249c49[_0x2c5858('0x80c')])return _0x440d75[_0x2c5858('0x185e')][_0x2c5858('0x595')]({'sectionId':_0x249c49['id']})[_0x2c5858('0x1376')]['then'](function(_0x251fc5){var _0x401520=_0x2c5858,_0x1b5065=_0x251fc5&&_0x251fc5[_0x401520('0x1b33')]?_0x251fc5['rows']:[],_0x15fcb7=[],_0x41aa73=null;_0xb225ed[_0x401520('0xa07')]&&(_0x41aa73=_0x86640f()['find'](_0xb225ed[_0x401520('0x2530')],{'name':_0xb225ed[_0x401520('0xa07')][_0x401520('0x1ac8')]})),_0x41aa73&&!_0x86640f()[_0x401520('0x2664')](_0x1b5065,[_0x401520('0x675'),_0x41aa73['id']])&&_0xb225ed[_0x401520('0x2530')][_0x401520('0x1a52')](function(_0x3dbdc2){var _0x69fc39=_0x401520;_0x3dbdc2['id']===_0x41aa73['id']&&(_0x3dbdc2[_0x69fc39('0xba')]=![],_0x15fcb7[_0x69fc39('0x206c')](_0x3dbdc2));}),_0xb225ed[_0x401520('0x2530')]=_0x15fcb7;});}})['catch'](function(_0x32dc4e){var _0x56f3f3=_0x460ec6;_0x4a7124[_0x56f3f3('0x2092')]({'title':_0x32dc4e[_0x56f3f3('0x209')]?_0x56f3f3('0x22d')+_0x32dc4e[_0x56f3f3('0x209')]+_0x56f3f3('0xa99')+_0x32dc4e[_0x56f3f3('0x1808')]:'SYSTEM:GET_INTERVALS','msg':_0x32dc4e[_0x56f3f3('0x11c2')]?JSON['stringify'](_0x32dc4e[_0x56f3f3('0x11c2')]):_0x32dc4e[_0x56f3f3('0x174f')]()});}));function _0xb9caeb(){var _0x41b42c=_0x460ec6;switch(_0xb225ed['type']){case _0x41b42c('0x869'):case _0x41b42c('0x17fe'):return _0x41b42c('0x1cc4');case _0x41b42c('0xf50'):{var _0x439e92=[];if(_0xb225ed[_0x41b42c('0x3e8')]!=='*'&&_0xb225ed[_0x41b42c('0x3e8')]&&_0xb225ed[_0x41b42c('0x1fbc')]){var _0x20f0d5=(_0xb225ed[_0x41b42c('0x3e8')]['getHours']()<0xa?'0':'')+_0xb225ed[_0x41b42c('0x3e8')][_0x41b42c('0x10c1')]()+':'+((_0xb225ed['timeRangeFrom'][_0x41b42c('0x27ee')]()<0xa?'0':'')+_0xb225ed['timeRangeFrom'][_0x41b42c('0x27ee')]()),_0xb25ecd=(_0xb225ed[_0x41b42c('0x1fbc')]['getHours']()<0xa?'0':'')+_0xb225ed['timeRangeTo'][_0x41b42c('0x10c1')]()+':'+((_0xb225ed[_0x41b42c('0x1fbc')]['getMinutes']()<0xa?'0':'')+_0xb225ed['timeRangeTo']['getMinutes']());_0x439e92[_0x41b42c('0x206c')](_0x20f0d5+'-'+_0xb25ecd);}else _0x439e92['push']('*');return _0xb225ed[_0x41b42c('0x21a5')]?_0xb225ed[_0x41b42c('0x1556')]?_0x439e92[_0x41b42c('0x206c')](_0xb225ed[_0x41b42c('0x21a5')]+'-'+_0xb225ed[_0x41b42c('0x1556')]):_0x439e92[_0x41b42c('0x206c')](_0xb225ed['dayOfWeekFrom']):_0x439e92[_0x41b42c('0x206c')]('*'),_0xb225ed[_0x41b42c('0x14ec')]?_0xb225ed[_0x41b42c('0x3bf')]?_0x439e92[_0x41b42c('0x206c')](_0xb225ed[_0x41b42c('0x14ec')]+'-'+_0xb225ed[_0x41b42c('0x3bf')]):_0x439e92[_0x41b42c('0x206c')](_0xb225ed[_0x41b42c('0x14ec')]):_0x439e92[_0x41b42c('0x206c')]('*'),_0xb225ed[_0x41b42c('0xded')]?_0xb225ed[_0x41b42c('0x2633')]?_0x439e92[_0x41b42c('0x206c')](_0xb225ed['monthFrom']+'-'+_0xb225ed[_0x41b42c('0x2633')]):_0x439e92[_0x41b42c('0x206c')](_0xb225ed[_0x41b42c('0xded')]):_0x439e92[_0x41b42c('0x206c')]('*'),_0x439e92[_0x41b42c('0x136')]();}}}function _0x481e67(){var _0x3288a9=_0x460ec6;_0xb225ed[_0x3288a9('0x1a69')]=[],_0xb225ed['interval']['interval']=_0xb9caeb(),_0x440d75[_0x3288a9('0xa07')][_0x3288a9('0x186f')](_0xb225ed[_0x3288a9('0xa07')])['$promise'][_0x3288a9('0x21ad')](function(_0x183f2c){var _0x53a9b5=_0x3288a9;_0xb225ed[_0x53a9b5('0x2530')][_0x53a9b5('0x206c')](_0x183f2c),_0x4a7124['success']({'title':'Interval\x20properly\x20created','msg':_0xb225ed[_0x53a9b5('0xa07')][_0x53a9b5('0x19fe')]?_0xb225ed[_0x53a9b5('0xa07')]['name']+_0x53a9b5('0x1694'):''}),_0x4b49b1();})['catch'](function(_0x58a03f){var _0xa1f10e=_0x3288a9;console['error'](_0x58a03f),_0xb225ed[_0xa1f10e('0x1a69')]=_0x58a03f['data']['errors']||[{'message':_0x58a03f[_0xa1f10e('0x174f')](),'type':_0xa1f10e('0x27de')}];});}function _0xe9f3b6(){var _0x9f1f4=_0x460ec6;_0xb225ed['errors']=[],_0xb225ed[_0x9f1f4('0xa07')][_0x9f1f4('0xa07')]=_0xb9caeb(),_0xb225ed[_0x9f1f4('0xa07')][_0x9f1f4('0xd7f')]?(_0xb225ed[_0x9f1f4('0x7fa')]!=='list'&&(_0xb225ed[_0x9f1f4('0xa07')]['IntervalId']=null),_0x4b49b1(_0xb225ed[_0x9f1f4('0xa07')])):_0x440d75[_0x9f1f4('0xa07')][_0x9f1f4('0x5ef')]({'id':_0xb225ed[_0x9f1f4('0xa07')]['id']},_0xb225ed[_0x9f1f4('0xa07')])['$promise'][_0x9f1f4('0x21ad')](function(_0x4f20ed){var _0x23867d=_0x9f1f4,_0x4478ce=_0x86640f()['find'](_0xb225ed[_0x23867d('0x2530')],{'id':_0x4f20ed['id']});_0x4478ce&&_0x86640f()[_0x23867d('0xd0e')](_0x4478ce,_0x4f20ed),_0x4a7124[_0x23867d('0xdb1')]({'title':_0x23867d('0x234'),'msg':_0x23867d('0x285a')}),_0x4b49b1();})[_0x9f1f4('0x1c1d')](function(_0x41fe34){var _0x54a973=_0x9f1f4;console[_0x54a973('0x2092')](_0x41fe34),_0xb225ed['errors']=_0x41fe34[_0x54a973('0x11c2')][_0x54a973('0x1a69')]||[{'message':_0x41fe34[_0x54a973('0x174f')](),'type':'api.interval.update'}];});}function _0x4b49b1(_0x22ddb0){_0x30d03a['hide'](_0x22ddb0);}}const _0xbffabb=_0x1ea669;_0x4540b5[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x17ac'),'smsAccount',_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x4540b5(_0x40a549,_0x4b2c03,_0x2af1d1,_0x1a3b1a,_0x2a7585,_0x5bd457,_0x154385,_0x1984a6){var _0x25618f=_0x3877e3,_0x28d1fd=this;_0x28d1fd[_0x25618f('0x123f')]=_0x154385[_0x25618f('0x15ed')](),_0x28d1fd[_0x25618f('0x1a69')]=[],_0x28d1fd[_0x25618f('0x4b4')]=_0x25618f('0x1dad')+(_0x1a3b1a['appType']||_0x1a3b1a['app'])[_0x25618f('0x2e8')](),_0x28d1fd['noop']=angular[_0x25618f('0xd75')](_0x1a3b1a),_0x28d1fd['crudPermissions']=_0x1984a6,_0x28d1fd[_0x25618f('0x126a')]={};if(_0x28d1fd['noop']['appdata'])switch(_0x28d1fd[_0x25618f('0x2101')][_0x25618f('0x522')]?_0x28d1fd['noop'][_0x25618f('0x522')][_0x25618f('0xac2')]():_0x28d1fd['noop'][_0x25618f('0x1f94')][_0x25618f('0xac2')]()){case _0x25618f('0xf50'):break;case _0x25618f('0xc72'):{var _0x4ace6a=_0x28d1fd[_0x25618f('0x2101')][_0x25618f('0x23c2')]['split'](',');_0x28d1fd[_0x25618f('0x2101')][_0x25618f('0xddb')]=_0x4ace6a[0x0],_0x28d1fd[_0x25618f('0x2101')][_0x25618f('0x10f')]=_0x4ace6a[0x1],_0x28d1fd[_0x25618f('0x2101')][_0x25618f('0x1cce')]=_0x4ace6a[_0x25618f('0xb3d')](0x2,_0x4ace6a[_0x25618f('0x577')])[_0x25618f('0x136')](',');}break;case _0x25618f('0x1c22'):{var _0x138728=_0x28d1fd[_0x25618f('0x2101')][_0x25618f('0x23c2')][_0x25618f('0x1af5')](',');_0x28d1fd[_0x25618f('0x2101')][_0x25618f('0x21c6')]=_0x138728[0x0],_0x28d1fd['noop'][_0x25618f('0x797')]=_0x138728[0x1],_0x28d1fd[_0x25618f('0x2101')][_0x25618f('0x20a3')]=_0x138728[0x2],_0x28d1fd[_0x25618f('0x2101')][_0x25618f('0x15fe')]=_0x138728[0x3],_0x28d1fd['noop']['welcomemessage']=_0x138728['slice'](0x4,_0x138728[_0x25618f('0x577')])['join'](',');}break;case _0x25618f('0x1b98'):{var _0x5d6ee4=_0x28d1fd[_0x25618f('0x2101')][_0x25618f('0x23c2')][_0x25618f('0x1af5')](',');_0x28d1fd[_0x25618f('0x2101')][_0x25618f('0x13b6')]=isNaN(_0x5d6ee4[0x0])?_0x5d6ee4[0x0]:parseInt(_0x5d6ee4[0x0],0xa),_0x28d1fd[_0x25618f('0x2101')][_0x25618f('0xc1e')]=_0x5d6ee4[_0x25618f('0xb3d')](0x1,_0x5d6ee4[_0x25618f('0x577')])[_0x25618f('0x136')](',');}break;case'message':_0x28d1fd[_0x25618f('0x2101')][_0x25618f('0xc1e')]=_0x28d1fd['noop']['appdata'];break;case _0x25618f('0x1125'):_0x28d1fd[_0x25618f('0x2101')][_0x25618f('0x19fe')]=_0x28d1fd[_0x25618f('0x2101')]['appdata']['split']('=')[0x0],_0x28d1fd['noop'][_0x25618f('0x2228')]=_0x28d1fd[_0x25618f('0x2101')][_0x25618f('0x23c2')][_0x25618f('0x1af5')]('=')[0x1];break;case _0x25618f('0x2356'):_0x28d1fd[_0x25618f('0x2101')][_0x25618f('0xbf8')]=_0x28d1fd[_0x25618f('0x2101')][_0x25618f('0x23c2')];break;default:{var _0x4e0a3f=_0x28d1fd[_0x25618f('0x2101')][_0x25618f('0x23c2')][_0x25618f('0x1af5')](',');_0x28d1fd['noop'][_0x25618f('0x2228')]=_0x86640f()[_0x25618f('0x23aa')](_0x4e0a3f[0x0])?_0x4e0a3f[0x0]:isNaN(_0x4e0a3f[0x0])?_0x4e0a3f[0x0]:parseInt(_0x4e0a3f[0x0],0xa);}break;}else{}_0x28d1fd[_0x25618f('0x2101')]['type']&&_0x28d1fd[_0x25618f('0x2101')][_0x25618f('0x7fa')]['toLowerCase']()==='outbound'&&_0x28d1fd[_0x25618f('0x2101')][_0x25618f('0x522')][_0x25618f('0xac2')]()===_0x25618f('0x2363')&&(_0x28d1fd[_0x25618f('0x2101')]['prefix']=_0x28d1fd[_0x25618f('0x2101')]['phone']?_0x28d1fd[_0x25618f('0x2101')][_0x25618f('0x159e')]['split']('$')[0x0]:undefined,_0x28d1fd[_0x25618f('0x2101')]['callerId']=_0x28d1fd[_0x25618f('0x2101')][_0x25618f('0x1f5a')]?_0x25618f('0x587')+_0x28d1fd[_0x25618f('0x2101')][_0x25618f('0x1f5a')]:undefined);_0x28d1fd[_0x25618f('0x1454')]=_0x22cd8b,_0x28d1fd[_0x25618f('0x167')]=_0x55ca84;function _0x22cd8b(){var _0x15ee52=_0x25618f;_0x28d1fd[_0x15ee52('0x1a69')]=[];var _0x139c38=[];_0x28d1fd[_0x15ee52('0x2101')][_0x15ee52('0x7fa')]&&_0x28d1fd[_0x15ee52('0x2101')][_0x15ee52('0x7fa')][_0x15ee52('0xac2')]()==='outbound'&&_0x28d1fd[_0x15ee52('0x2101')][_0x15ee52('0x522')]===_0x15ee52('0x4ea')&&(_0x28d1fd[_0x15ee52('0x2101')][_0x15ee52('0x159e')]=_0x2a7585['cutdigits']?(_0x28d1fd[_0x15ee52('0x2101')][_0x15ee52('0x1995')]||'')+_0x15ee52('0x349')+_0x2a7585[_0x15ee52('0x988')]+'}':(_0x28d1fd[_0x15ee52('0x2101')][_0x15ee52('0x1995')]||'')+_0x15ee52('0x2560'),_0x2a7585['recordingFormat']!==_0x15ee52('0x983')?_0x28d1fd[_0x15ee52('0x2101')][_0x15ee52('0x26a0')][_0x15ee52('0x2004')](_0x15ee52('0x478'))<0x0&&(_0x28d1fd['noop'][_0x15ee52('0x26a0')]+=_0x15ee52('0x478')):_0x28d1fd[_0x15ee52('0x2101')][_0x15ee52('0x26a0')]=_0x28d1fd[_0x15ee52('0x2101')][_0x15ee52('0x26a0')][_0x15ee52('0x16e4')](_0x15ee52('0x478'),''));if(_0x28d1fd['noop'][_0x15ee52('0x522')]&&_0x28d1fd[_0x15ee52('0x2101')]['appType']===_0x15ee52('0xf50')){}else switch((_0x28d1fd['noop']['app']||_0x28d1fd[_0x15ee52('0x2101')]['appType'])['toLowerCase']()){case _0x15ee52('0x1125'):_0x28d1fd[_0x15ee52('0x2101')][_0x15ee52('0x23c2')]=_0x28d1fd[_0x15ee52('0x2101')]['name']+'='+_0x28d1fd[_0x15ee52('0x2101')][_0x15ee52('0x2228')];break;case'custom':break;default:_0x139c38[0x0]=_0x28d1fd[_0x15ee52('0x2101')][_0x15ee52('0x2228')],_0x28d1fd[_0x15ee52('0x2101')][_0x15ee52('0x23c2')]=_0x139c38[_0x15ee52('0x136')](',');}_0x55ca84(_0x28d1fd['noop']);}function _0x55ca84(_0x4b77df){var _0x32fa99=_0x25618f;_0x40a549[_0x32fa99('0x1c24')](_0x4b77df);}}const _0x25f77e=_0x4540b5;_0x580767['$inject']=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),'smsAccountApp',_0x3877e3('0xa10'),_0x3877e3('0xccd'),'Auth','crudPermissions'];function _0x580767(_0x1e9afc,_0x11ad28,_0xd7d1e2,_0x24502a,_0x365e56,_0x12ac39,_0x2db8f0,_0x577cb7){var _0x13fb79=_0x3877e3,_0x478984=this;_0x478984[_0x13fb79('0x123f')]=_0x2db8f0[_0x13fb79('0x15ed')](),_0x478984[_0x13fb79('0x1a69')]=[],_0x478984[_0x13fb79('0x4b4')]=_0x13fb79('0x1dad')+(_0x24502a[_0x13fb79('0x522')]||_0x24502a[_0x13fb79('0x1f94')])[_0x13fb79('0x2e8')](),_0x478984[_0x13fb79('0xbdd')]=angular[_0x13fb79('0xd75')](_0x24502a),_0x478984[_0x13fb79('0x5ed')]=_0x577cb7,_0x478984[_0x13fb79('0x126a')]={};if(_0x478984[_0x13fb79('0xbdd')][_0x13fb79('0x23c2')])switch(_0x478984[_0x13fb79('0xbdd')][_0x13fb79('0x522')]?_0x478984[_0x13fb79('0xbdd')][_0x13fb79('0x522')][_0x13fb79('0xac2')]():_0x478984[_0x13fb79('0xbdd')][_0x13fb79('0x1f94')][_0x13fb79('0xac2')]()){case _0x13fb79('0xf50'):break;case _0x13fb79('0xc72'):{var _0x5900f8=_0x478984['queue'][_0x13fb79('0x23c2')]['split'](',');_0x478984[_0x13fb79('0xbdd')][_0x13fb79('0xddb')]=_0x5900f8[0x0],_0x478984[_0x13fb79('0xbdd')][_0x13fb79('0x10f')]=_0x5900f8[0x1],_0x478984[_0x13fb79('0xbdd')][_0x13fb79('0x1cce')]=_0x5900f8[_0x13fb79('0xb3d')](0x2,_0x5900f8[_0x13fb79('0x577')])[_0x13fb79('0x136')](',');}break;case'amazonlex':{var _0x44ed41=_0x478984[_0x13fb79('0xbdd')]['appdata'][_0x13fb79('0x1af5')](',');_0x478984[_0x13fb79('0xbdd')][_0x13fb79('0x21c6')]=_0x44ed41[0x0],_0x478984['queue'][_0x13fb79('0x797')]=_0x44ed41[0x1],_0x478984[_0x13fb79('0xbdd')][_0x13fb79('0x20a3')]=_0x44ed41[0x2],_0x478984[_0x13fb79('0xbdd')]['botname']=_0x44ed41[0x3],_0x478984['queue'][_0x13fb79('0x1cce')]=_0x44ed41['slice'](0x4,_0x44ed41[_0x13fb79('0x577')])[_0x13fb79('0x136')](',');}break;case _0x13fb79('0x1b98'):{var _0x5bc9b0=_0x478984[_0x13fb79('0xbdd')][_0x13fb79('0x23c2')][_0x13fb79('0x1af5')](',');_0x478984[_0x13fb79('0xbdd')]['times']=isNaN(_0x5bc9b0[0x0])?_0x5bc9b0[0x0]:parseInt(_0x5bc9b0[0x0],0xa),_0x478984[_0x13fb79('0xbdd')]['text']=_0x5bc9b0['slice'](0x1,_0x5bc9b0[_0x13fb79('0x577')])[_0x13fb79('0x136')](',');}break;case _0x13fb79('0x1224'):_0x478984['queue']['text']=_0x478984['queue'][_0x13fb79('0x23c2')];break;case'set':_0x478984[_0x13fb79('0xbdd')][_0x13fb79('0x19fe')]=_0x478984[_0x13fb79('0xbdd')][_0x13fb79('0x23c2')][_0x13fb79('0x1af5')]('=')[0x0],_0x478984[_0x13fb79('0xbdd')][_0x13fb79('0x2228')]=_0x478984[_0x13fb79('0xbdd')]['appdata'][_0x13fb79('0x1af5')]('=')[0x1];break;case _0x13fb79('0x2356'):_0x478984[_0x13fb79('0xbdd')]['project']=_0x478984[_0x13fb79('0xbdd')]['appdata'];break;default:{var _0x415ec0=_0x478984[_0x13fb79('0xbdd')][_0x13fb79('0x23c2')][_0x13fb79('0x1af5')](',');_0x478984['queue'][_0x13fb79('0xbdd')]=_0x86640f()['isEmpty'](_0x415ec0[0x0])?_0x415ec0[0x0]:isNaN(_0x415ec0[0x0])?_0x415ec0[0x0]:parseInt(_0x415ec0[0x0],0xa),_0x478984[_0x13fb79('0xbdd')][_0x13fb79('0x2133')]=_0x86640f()[_0x13fb79('0x23aa')](_0x415ec0[0x1])?_0x415ec0[0x1]:isNaN(_0x415ec0[0x1])?_0x415ec0[0x1]:parseInt(_0x415ec0[0x1],0xa);}break;}else _0x478984[_0x13fb79('0xbdd')][_0x13fb79('0xbdd')]=0x12c,_0x478984[_0x13fb79('0xbdd')]['timeout']=0x12c;_0x478984[_0x13fb79('0xbdd')][_0x13fb79('0x7fa')]&&_0x478984[_0x13fb79('0xbdd')]['type'][_0x13fb79('0xac2')]()==='outbound'&&_0x478984[_0x13fb79('0xbdd')]['appType'][_0x13fb79('0xac2')]()===_0x13fb79('0x2363')&&(_0x478984[_0x13fb79('0xbdd')][_0x13fb79('0x1995')]=_0x478984[_0x13fb79('0xbdd')][_0x13fb79('0x159e')]?_0x478984['queue']['phone'][_0x13fb79('0x1af5')]('$')[0x0]:undefined,_0x478984[_0x13fb79('0xbdd')][_0x13fb79('0x26f7')]=_0x478984[_0x13fb79('0xbdd')][_0x13fb79('0x1f5a')]?_0x13fb79('0x587')+_0x478984[_0x13fb79('0xbdd')][_0x13fb79('0x1f5a')]:undefined);_0x478984[_0x13fb79('0x1454')]=_0x3a1160,_0x478984[_0x13fb79('0x167')]=_0x409af3,_0x2db8f0[_0x13fb79('0x21de')](_0x13fb79('0x1bd8'))?_0x12ac39[_0x13fb79('0x754')][_0x13fb79('0x595')]({'fields':_0x13fb79('0xfa'),'sort':_0x13fb79('0x19fe'),'nolimit':_0x13fb79('0x19bd')})[_0x13fb79('0x1376')]['then'](function(_0x357962){var _0x2a18f8=_0x13fb79;_0x478984[_0x2a18f8('0xb7a')]=_0x357962[_0x2a18f8('0x1b33')]||[];})[_0x13fb79('0x1c1d')](function(_0x426c5f){var _0x6d4995=_0x13fb79;_0xd7d1e2['error']({'title':_0x426c5f[_0x6d4995('0x209')]?_0x6d4995('0x22d')+_0x426c5f[_0x6d4995('0x209')]+_0x6d4995('0xa99')+_0x426c5f['statusText']:_0x6d4995('0x1612'),'msg':_0x426c5f['data']?JSON[_0x6d4995('0x25e')](_0x426c5f[_0x6d4995('0x11c2')]):_0x426c5f['toString']()});}):_0x12ac39[_0x13fb79('0x754')]['get']({'fields':_0x13fb79('0xfa'),'sort':_0x13fb79('0x19fe'),'nolimit':'true'})[_0x13fb79('0x1376')][_0x13fb79('0x21ad')](function(_0x58e7c7){var _0x2fe3e0=_0x13fb79;_0x478984['queues']=_0x58e7c7[_0x2fe3e0('0x1b33')]||[];})[_0x13fb79('0x21ad')](function(){var _0x2e9240=_0x13fb79;return _0x12ac39['userProfileSection'][_0x2e9240('0x595')]({'userProfileId':_0x478984[_0x2e9240('0x123f')][_0x2e9240('0x1618')],'sectionId':0x2bd})['$promise'];})['then'](function(_0x3eac27){var _0x27cf34=_0x13fb79,_0x16e7ad=_0x3eac27&&_0x3eac27[_0x27cf34('0x1b33')]?_0x3eac27[_0x27cf34('0x1b33')][0x0]:null;if(!_0x16e7ad){var _0x1f0a50=[],_0x383ca8=null;_0x478984[_0x27cf34('0xbdd')]&&(_0x383ca8=_0x86640f()['find'](_0x478984[_0x27cf34('0xb7a')],{'name':_0x478984[_0x27cf34('0xbdd')][_0x27cf34('0xbdd')]}));for(var _0x17b3a9=0x0;_0x17b3a9<_0x478984['queues'][_0x27cf34('0x577')];_0x17b3a9++){_0x383ca8&&_0x478984[_0x27cf34('0xb7a')][_0x17b3a9]['id']===_0x383ca8['id']&&(_0x478984['queues'][_0x17b3a9][_0x27cf34('0xba')]=![],_0x1f0a50[_0x27cf34('0x206c')](_0x478984['queues'][_0x17b3a9]));}_0x478984['queues']=_0x1f0a50;}else{if(!_0x16e7ad[_0x27cf34('0x80c')])return _0x12ac39[_0x27cf34('0x185e')][_0x27cf34('0x595')]({'sectionId':_0x16e7ad['id']})[_0x27cf34('0x1376')][_0x27cf34('0x21ad')](function(_0x2d1214){var _0x5764c7=_0x27cf34,_0x493bb0=_0x86640f()[_0x5764c7('0x26c3')](_0x2d1214[_0x5764c7('0x1b33')],function(_0x33afed){var _0x2d0bcb=_0x5764c7;return _0x86640f()['find'](_0x478984[_0x2d0bcb('0xb7a')],{'id':_0x33afed[_0x2d0bcb('0x675')]});}),_0x478aee=null;_0x478984[_0x5764c7('0xbdd')]&&(_0x478aee=_0x86640f()[_0x5764c7('0x1d2e')](_0x478984['queues'],{'name':_0x478984['queue'][_0x5764c7('0xbdd')]}));if(_0x478aee&&!_0x86640f()[_0x5764c7('0x2664')](_0x493bb0,['id',_0x478aee['id']])){var _0x233d34=_0x86640f()[_0x5764c7('0x1d2e')](_0x478984[_0x5764c7('0xb7a')],{'id':_0x478aee['id']});_0x233d34[_0x5764c7('0xba')]=![],_0x493bb0[_0x5764c7('0x206c')](_0x233d34);}_0x478984['queues']=_0x493bb0;});}})['catch'](function(_0x5a958e){var _0x4a0d5d=_0x13fb79;_0xd7d1e2[_0x4a0d5d('0x2092')]({'title':_0x5a958e[_0x4a0d5d('0x209')]?'API:'+_0x5a958e[_0x4a0d5d('0x209')]+'\x20-\x20'+_0x5a958e['statusText']:_0x4a0d5d('0x1b46'),'msg':_0x5a958e[_0x4a0d5d('0x11c2')]?JSON['stringify'](_0x5a958e['data']):_0x5a958e[_0x4a0d5d('0x174f')]()});});function _0x3a1160(){var _0x28928d=_0x13fb79;_0x478984[_0x28928d('0x1a69')]=[];var _0x196a1e=[];_0x478984[_0x28928d('0xbdd')][_0x28928d('0x7fa')]&&_0x478984[_0x28928d('0xbdd')]['type']['toLowerCase']()===_0x28928d('0x2300')&&_0x478984[_0x28928d('0xbdd')]['appType']===_0x28928d('0x4ea')&&(_0x478984[_0x28928d('0xbdd')][_0x28928d('0x159e')]=_0x365e56[_0x28928d('0x988')]?(_0x478984[_0x28928d('0xbdd')][_0x28928d('0x1995')]||'')+_0x28928d('0x349')+_0x365e56[_0x28928d('0x988')]+'}':(_0x478984[_0x28928d('0xbdd')][_0x28928d('0x1995')]||'')+_0x28928d('0x2560'),_0x365e56[_0x28928d('0xad1')]!=='none'?_0x478984[_0x28928d('0xbdd')][_0x28928d('0x26a0')]['indexOf'](_0x28928d('0x478'))<0x0&&(_0x478984[_0x28928d('0xbdd')]['options']+=_0x28928d('0x478')):_0x478984[_0x28928d('0xbdd')][_0x28928d('0x26a0')]=_0x478984['queue'][_0x28928d('0x26a0')][_0x28928d('0x16e4')](_0x28928d('0x478'),''));var _0xb9de3e=_0x86640f()[_0x28928d('0x1d2e')](_0x478984[_0x28928d('0xb7a')],{'name':_0x478984['queue'][_0x28928d('0xbdd')]});_0xb9de3e&&(_0x478984[_0x28928d('0xbdd')][_0x86640f()[_0x28928d('0x1b7e')](_0x28928d('0x3d0'))+_0x28928d('0x25ba')]=_0xb9de3e['id']);if(_0x478984[_0x28928d('0xbdd')][_0x28928d('0x522')]&&_0x478984[_0x28928d('0xbdd')][_0x28928d('0x522')]==='custom'){}else switch((_0x478984[_0x28928d('0xbdd')][_0x28928d('0x1f94')]||_0x478984['queue']['appType'])[_0x28928d('0xac2')]()){case _0x28928d('0x1125'):_0x478984[_0x28928d('0xbdd')][_0x28928d('0x23c2')]=_0x478984[_0x28928d('0xbdd')][_0x28928d('0x19fe')]+'='+_0x478984[_0x28928d('0xbdd')][_0x28928d('0x2228')];break;case'custom':break;default:_0x196a1e[0x0]=_0x478984[_0x28928d('0xbdd')][_0x28928d('0xbdd')],_0x196a1e[0x1]=_0x478984['queue'][_0x28928d('0x2133')],_0x478984[_0x28928d('0xbdd')][_0x28928d('0x23c2')]=_0x196a1e[_0x28928d('0x136')](',');}_0x409af3(_0x478984[_0x28928d('0xbdd')]);}function _0x409af3(_0x403b15){_0x1e9afc['hide'](_0x403b15);}}const _0x3da452=_0x580767;_0xe11898[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x17ac'),_0x3877e3('0xa10'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0xe11898(_0x3228bd,_0x1c933e,_0x240a4b,_0x2a2c94,_0x21a008,_0x51c85e,_0x337337,_0x46f271){var _0x5710cd=_0x3877e3,_0xa4ca74=this;_0xa4ca74[_0x5710cd('0x123f')]=_0x337337['getCurrentUser'](),_0xa4ca74[_0x5710cd('0x1a69')]=[],_0xa4ca74['title']=_0x5710cd('0x1dad')+(_0x2a2c94[_0x5710cd('0x522')]||_0x2a2c94['app'])[_0x5710cd('0x2e8')](),_0xa4ca74['system']=angular[_0x5710cd('0xd75')](_0x2a2c94),_0xa4ca74['crudPermissions']=_0x46f271,_0xa4ca74[_0x5710cd('0x126a')]={};if(_0xa4ca74[_0x5710cd('0x12b1')]['appdata'])switch(_0xa4ca74[_0x5710cd('0x12b1')][_0x5710cd('0x522')]?_0xa4ca74[_0x5710cd('0x12b1')][_0x5710cd('0x522')][_0x5710cd('0xac2')]():_0xa4ca74['system'][_0x5710cd('0x1f94')]['toLowerCase']()){case _0x5710cd('0xf50'):break;case _0x5710cd('0xc72'):{var _0x16f79b=_0xa4ca74[_0x5710cd('0x12b1')][_0x5710cd('0x23c2')][_0x5710cd('0x1af5')](',');_0xa4ca74[_0x5710cd('0x12b1')][_0x5710cd('0xddb')]=_0x16f79b[0x0],_0xa4ca74[_0x5710cd('0x12b1')][_0x5710cd('0x10f')]=_0x16f79b[0x1],_0xa4ca74[_0x5710cd('0x12b1')][_0x5710cd('0x1cce')]=_0x16f79b[_0x5710cd('0xb3d')](0x2,_0x16f79b[_0x5710cd('0x577')])[_0x5710cd('0x136')](',');}break;case _0x5710cd('0x1c22'):{var _0x18e63e=_0xa4ca74['system']['appdata'][_0x5710cd('0x1af5')](',');_0xa4ca74[_0x5710cd('0x12b1')][_0x5710cd('0x21c6')]=_0x18e63e[0x0],_0xa4ca74['system'][_0x5710cd('0x797')]=_0x18e63e[0x1],_0xa4ca74[_0x5710cd('0x12b1')][_0x5710cd('0x20a3')]=_0x18e63e[0x2],_0xa4ca74[_0x5710cd('0x12b1')][_0x5710cd('0x15fe')]=_0x18e63e[0x3],_0xa4ca74[_0x5710cd('0x12b1')][_0x5710cd('0x1cce')]=_0x18e63e[_0x5710cd('0xb3d')](0x4,_0x18e63e[_0x5710cd('0x577')])[_0x5710cd('0x136')](',');}break;case _0x5710cd('0x1b98'):{var _0x58d1e4=_0xa4ca74[_0x5710cd('0x12b1')][_0x5710cd('0x23c2')][_0x5710cd('0x1af5')](',');_0xa4ca74[_0x5710cd('0x12b1')][_0x5710cd('0x13b6')]=isNaN(_0x58d1e4[0x0])?_0x58d1e4[0x0]:parseInt(_0x58d1e4[0x0],0xa),_0xa4ca74['system'][_0x5710cd('0xc1e')]=_0x58d1e4['slice'](0x1,_0x58d1e4[_0x5710cd('0x577')])['join'](',');}break;case _0x5710cd('0x1224'):_0xa4ca74[_0x5710cd('0x12b1')]['text']=_0xa4ca74[_0x5710cd('0x12b1')]['appdata'];break;case'set':_0xa4ca74[_0x5710cd('0x12b1')][_0x5710cd('0x19fe')]=_0xa4ca74['system'][_0x5710cd('0x23c2')][_0x5710cd('0x1af5')]('=')[0x0],_0xa4ca74[_0x5710cd('0x12b1')]['value']=_0xa4ca74[_0x5710cd('0x12b1')][_0x5710cd('0x23c2')][_0x5710cd('0x1af5')]('=')[0x1];break;case _0x5710cd('0x2356'):_0xa4ca74[_0x5710cd('0x12b1')][_0x5710cd('0xbf8')]=_0xa4ca74[_0x5710cd('0x12b1')][_0x5710cd('0x23c2')];break;default:{var _0x4df351=_0xa4ca74[_0x5710cd('0x12b1')][_0x5710cd('0x23c2')][_0x5710cd('0x1af5')](',');_0xa4ca74[_0x5710cd('0x12b1')][_0x5710cd('0xbf3')]=_0x86640f()[_0x5710cd('0x23aa')](_0x4df351[0x0])?_0x4df351[0x0]:isNaN(_0x4df351[0x0])?_0x4df351[0x0]:parseInt(_0x4df351[0x0],0xa),_0xa4ca74[_0x5710cd('0x12b1')][_0x5710cd('0x25bb')]=_0x86640f()[_0x5710cd('0x23aa')](_0x4df351[0x1])?_0x4df351[0x1]:isNaN(_0x4df351[0x1])?_0x4df351[0x1]:parseInt(_0x4df351[0x1],0xa);}break;}else _0xa4ca74[_0x5710cd('0x12b1')][_0x5710cd('0x25bb')]='';_0xa4ca74['system']['type']&&_0xa4ca74[_0x5710cd('0x12b1')][_0x5710cd('0x7fa')][_0x5710cd('0xac2')]()===_0x5710cd('0x2300')&&_0xa4ca74[_0x5710cd('0x12b1')][_0x5710cd('0x522')][_0x5710cd('0xac2')]()===_0x5710cd('0x2363')&&(_0xa4ca74[_0x5710cd('0x12b1')][_0x5710cd('0x1995')]=_0xa4ca74[_0x5710cd('0x12b1')]['phone']?_0xa4ca74[_0x5710cd('0x12b1')][_0x5710cd('0x159e')][_0x5710cd('0x1af5')]('$')[0x0]:undefined,_0xa4ca74[_0x5710cd('0x12b1')]['callerId']=_0xa4ca74[_0x5710cd('0x12b1')]['callerID']?_0x5710cd('0x587')+_0xa4ca74[_0x5710cd('0x12b1')][_0x5710cd('0x1f5a')]:undefined);_0xa4ca74[_0x5710cd('0x1454')]=_0x3eb479,_0xa4ca74[_0x5710cd('0x167')]=_0x191c27,_0x337337[_0x5710cd('0x21de')](_0x5710cd('0x1bd8'))?_0x51c85e[_0x5710cd('0x25bb')][_0x5710cd('0x595')]({'fields':_0x5710cd('0x1aa8'),'sort':_0x5710cd('0x19fe'),'nolimit':_0x5710cd('0x19bd')})[_0x5710cd('0x1376')]['then'](function(_0x59281f){var _0x1bd495=_0x5710cd;_0xa4ca74[_0x1bd495('0x142d')]=_0x59281f['rows']||[];})[_0x5710cd('0x1c1d')](function(_0x2c6975){var _0x1c4736=_0x5710cd;_0x240a4b[_0x1c4736('0x2092')]({'title':_0x2c6975[_0x1c4736('0x209')]?_0x1c4736('0x22d')+_0x2c6975[_0x1c4736('0x209')]+'\x20-\x20'+_0x2c6975[_0x1c4736('0x1808')]:_0x1c4736('0xc0c'),'msg':_0x2c6975[_0x1c4736('0x11c2')]?JSON['stringify'](_0x2c6975[_0x1c4736('0x11c2')]):_0x2c6975[_0x1c4736('0x174f')]()});}):_0x51c85e[_0x5710cd('0x25bb')][_0x5710cd('0x595')]({'fields':_0x5710cd('0x1aa8'),'sort':'name','nolimit':_0x5710cd('0x19bd')})[_0x5710cd('0x1376')][_0x5710cd('0x21ad')](function(_0x50282a){var _0x113596=_0x5710cd;_0xa4ca74[_0x113596('0x142d')]=_0x50282a[_0x113596('0x1b33')]||[];})[_0x5710cd('0x21ad')](function(){var _0x19d76b=_0x5710cd;return _0x51c85e[_0x19d76b('0xab4')][_0x19d76b('0x595')]({'userProfileId':_0xa4ca74[_0x19d76b('0x123f')]['userProfileId'],'sectionId':0x3f4})[_0x19d76b('0x1376')];})['then'](function(_0x48ef25){var _0x1fcefa=_0x5710cd,_0xa3b43b=_0x48ef25&&_0x48ef25[_0x1fcefa('0x1b33')]?_0x48ef25['rows'][0x0]:null;if(!_0xa3b43b){var _0x4f7377=[],_0x5664b3=null;_0xa4ca74[_0x1fcefa('0x12b1')]&&(_0x5664b3=_0x86640f()['find'](_0xa4ca74['variables'],{'name':_0xa4ca74[_0x1fcefa('0x12b1')][_0x1fcefa('0x25bb')]}));for(var _0x465052=0x0;_0x465052<_0xa4ca74[_0x1fcefa('0x142d')]['length'];_0x465052++){_0x5664b3&&_0xa4ca74['variables'][_0x465052]['id']===_0x5664b3['id']&&(_0xa4ca74[_0x1fcefa('0x142d')][_0x465052][_0x1fcefa('0xba')]=![],_0x4f7377['push'](_0xa4ca74[_0x1fcefa('0x142d')][_0x465052]));}_0xa4ca74['variables']=_0x4f7377;}else{if(!_0xa3b43b['autoAssociation'])return _0x51c85e[_0x1fcefa('0x185e')]['get']({'sectionId':_0xa3b43b['id']})[_0x1fcefa('0x1376')][_0x1fcefa('0x21ad')](function(_0x124445){var _0x3ad1bc=_0x1fcefa,_0x52043b=_0x86640f()[_0x3ad1bc('0x26c3')](_0x124445[_0x3ad1bc('0x1b33')],function(_0x2812c4){var _0x22efaa=_0x3ad1bc;return _0x86640f()[_0x22efaa('0x1d2e')](_0xa4ca74[_0x22efaa('0x142d')],{'id':_0x2812c4[_0x22efaa('0x675')]});}),_0xbfc986=null;_0xa4ca74['system']&&(_0xbfc986=_0x86640f()[_0x3ad1bc('0x1d2e')](_0xa4ca74[_0x3ad1bc('0x142d')],{'name':_0xa4ca74['system'][_0x3ad1bc('0x25bb')]}));if(_0xbfc986&&!_0x86640f()[_0x3ad1bc('0x2664')](_0x52043b,['id',_0xbfc986['id']])){var _0x426440=_0x86640f()[_0x3ad1bc('0x1d2e')](_0xa4ca74[_0x3ad1bc('0x142d')],{'id':_0xbfc986['id']});_0x426440['canSelect']=![],_0x52043b['push'](_0x426440);}_0xa4ca74[_0x3ad1bc('0x142d')]=_0x52043b;});}})['catch'](function(_0x4245f2){var _0x26aadc=_0x5710cd;_0x240a4b[_0x26aadc('0x2092')]({'title':_0x4245f2[_0x26aadc('0x209')]?_0x26aadc('0x22d')+_0x4245f2[_0x26aadc('0x209')]+'\x20-\x20'+_0x4245f2[_0x26aadc('0x1808')]:_0x26aadc('0x1a26'),'msg':_0x4245f2[_0x26aadc('0x11c2')]?JSON[_0x26aadc('0x25e')](_0x4245f2[_0x26aadc('0x11c2')]):_0x4245f2[_0x26aadc('0x174f')]()});});function _0x3eb479(){var _0x214d22=_0x5710cd;_0xa4ca74[_0x214d22('0x1a69')]=[];var _0x52a5c4=[];_0xa4ca74[_0x214d22('0x12b1')][_0x214d22('0x7fa')]&&_0xa4ca74['system'][_0x214d22('0x7fa')][_0x214d22('0xac2')]()==='outbound'&&_0xa4ca74['system'][_0x214d22('0x522')]==='outboundDial'&&(_0xa4ca74['system'][_0x214d22('0x159e')]=_0x21a008[_0x214d22('0x988')]?(_0xa4ca74['system'][_0x214d22('0x1995')]||'')+'${EXTEN:'+_0x21a008[_0x214d22('0x988')]+'}':(_0xa4ca74[_0x214d22('0x12b1')][_0x214d22('0x1995')]||'')+_0x214d22('0x2560'),_0x21a008[_0x214d22('0xad1')]!=='none'?_0xa4ca74[_0x214d22('0x12b1')]['options'][_0x214d22('0x2004')](_0x214d22('0x478'))<0x0&&(_0xa4ca74[_0x214d22('0x12b1')][_0x214d22('0x26a0')]+=_0x214d22('0x478')):_0xa4ca74[_0x214d22('0x12b1')]['options']=_0xa4ca74['system'][_0x214d22('0x26a0')][_0x214d22('0x16e4')]('U(xcally-mixmonitor-context)',''));if(_0xa4ca74['system'][_0x214d22('0x522')]&&_0xa4ca74[_0x214d22('0x12b1')][_0x214d22('0x522')]===_0x214d22('0xf50')){}else switch((_0xa4ca74[_0x214d22('0x12b1')][_0x214d22('0x1f94')]||_0xa4ca74[_0x214d22('0x12b1')]['appType'])[_0x214d22('0xac2')]()){case _0x214d22('0x1125'):_0xa4ca74[_0x214d22('0x12b1')]['appdata']=_0xa4ca74['system'][_0x214d22('0x19fe')]+'='+_0xa4ca74[_0x214d22('0x12b1')]['value'];break;case _0x214d22('0xf50'):break;default:_0x52a5c4[0x0]=_0xa4ca74['system'][_0x214d22('0xbf3')],_0x52a5c4[0x1]=_0xa4ca74[_0x214d22('0x12b1')][_0x214d22('0x25bb')],_0xa4ca74[_0x214d22('0x12b1')][_0x214d22('0x23c2')]=_0x52a5c4['join'](',');}_0x191c27(_0xa4ca74[_0x214d22('0x12b1')]);}function _0x191c27(_0x1ad286){var _0x442ba1=_0x5710cd;_0x3228bd[_0x442ba1('0x1c24')](_0x1ad286);}}const _0x47c99e=_0xe11898;_0x3a8569['$inject']=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x17ac'),_0x3877e3('0xa10'),_0x3877e3('0xccd'),'Auth','crudPermissions'];function _0x3a8569(_0x50f503,_0x2ba530,_0x396663,_0x2fa03c,_0x51cbe0,_0x4fb1c3,_0x44485d,_0x47ee7a){var _0x35b5a0=_0x3877e3,_0x59190c=this;_0x59190c['currentUser']=_0x44485d[_0x35b5a0('0x15ed')](),_0x59190c[_0x35b5a0('0x1a69')]=[],_0x59190c[_0x35b5a0('0x4b4')]=_0x35b5a0('0x1dad')+(_0x2fa03c[_0x35b5a0('0x522')]||_0x2fa03c[_0x35b5a0('0x1f94')])[_0x35b5a0('0x2e8')](),_0x59190c[_0x35b5a0('0x907')]=angular['copy'](_0x2fa03c),_0x59190c[_0x35b5a0('0x5ed')]=_0x47ee7a,_0x59190c[_0x35b5a0('0x126a')]={};if(_0x59190c[_0x35b5a0('0x907')]['appdata'])switch(_0x59190c[_0x35b5a0('0x907')]['appType']?_0x59190c[_0x35b5a0('0x907')][_0x35b5a0('0x522')][_0x35b5a0('0xac2')]():_0x59190c['tag'][_0x35b5a0('0x1f94')]['toLowerCase']()){case _0x35b5a0('0xf50'):break;case _0x35b5a0('0xc72'):{var _0x58a9cd=_0x59190c[_0x35b5a0('0x907')][_0x35b5a0('0x23c2')][_0x35b5a0('0x1af5')](',');_0x59190c[_0x35b5a0('0x907')]['key']=_0x58a9cd[0x0],_0x59190c[_0x35b5a0('0x907')]['language']=_0x58a9cd[0x1],_0x59190c[_0x35b5a0('0x907')][_0x35b5a0('0x1cce')]=_0x58a9cd[_0x35b5a0('0xb3d')](0x2,_0x58a9cd['length'])[_0x35b5a0('0x136')](',');}break;case'amazonlex':{var _0xac2e26=_0x59190c[_0x35b5a0('0x907')]['appdata'][_0x35b5a0('0x1af5')](',');_0x59190c[_0x35b5a0('0x907')][_0x35b5a0('0x21c6')]=_0xac2e26[0x0],_0x59190c['tag'][_0x35b5a0('0x797')]=_0xac2e26[0x1],_0x59190c[_0x35b5a0('0x907')][_0x35b5a0('0x20a3')]=_0xac2e26[0x2],_0x59190c[_0x35b5a0('0x907')]['botname']=_0xac2e26[0x3],_0x59190c[_0x35b5a0('0x907')][_0x35b5a0('0x1cce')]=_0xac2e26['slice'](0x4,_0xac2e26['length'])[_0x35b5a0('0x136')](',');}break;case'autoreply':{var _0x4e8f91=_0x59190c[_0x35b5a0('0x907')][_0x35b5a0('0x23c2')][_0x35b5a0('0x1af5')](',');_0x59190c[_0x35b5a0('0x907')]['times']=isNaN(_0x4e8f91[0x0])?_0x4e8f91[0x0]:parseInt(_0x4e8f91[0x0],0xa),_0x59190c['tag'][_0x35b5a0('0xc1e')]=_0x4e8f91[_0x35b5a0('0xb3d')](0x1,_0x4e8f91[_0x35b5a0('0x577')])[_0x35b5a0('0x136')](',');}break;case _0x35b5a0('0x1224'):_0x59190c[_0x35b5a0('0x907')][_0x35b5a0('0xc1e')]=_0x59190c[_0x35b5a0('0x907')]['appdata'];break;case'set':_0x59190c[_0x35b5a0('0x907')][_0x35b5a0('0x19fe')]=_0x59190c[_0x35b5a0('0x907')]['appdata']['split']('=')[0x0],_0x59190c[_0x35b5a0('0x907')]['value']=_0x59190c[_0x35b5a0('0x907')]['appdata'][_0x35b5a0('0x1af5')]('=')[0x1];break;case _0x35b5a0('0x2356'):_0x59190c[_0x35b5a0('0x907')][_0x35b5a0('0xbf8')]=_0x59190c[_0x35b5a0('0x907')][_0x35b5a0('0x23c2')];break;default:{var _0x35d421=_0x59190c[_0x35b5a0('0x907')][_0x35b5a0('0x23c2')][_0x35b5a0('0x1af5')](',');_0x59190c[_0x35b5a0('0x907')]['tag']=_0x86640f()['isEmpty'](_0x35d421[0x0])?_0x35d421[0x0]:isNaN(_0x35d421[0x0])?_0x35d421[0x0]:parseInt(_0x35d421[0x0],0xa);}break;}else{}_0x59190c[_0x35b5a0('0x907')][_0x35b5a0('0x7fa')]&&_0x59190c[_0x35b5a0('0x907')]['type']['toLowerCase']()===_0x35b5a0('0x2300')&&_0x59190c[_0x35b5a0('0x907')][_0x35b5a0('0x522')][_0x35b5a0('0xac2')]()===_0x35b5a0('0x2363')&&(_0x59190c['tag'][_0x35b5a0('0x1995')]=_0x59190c['tag'][_0x35b5a0('0x159e')]?_0x59190c[_0x35b5a0('0x907')][_0x35b5a0('0x159e')][_0x35b5a0('0x1af5')]('$')[0x0]:undefined,_0x59190c['tag'][_0x35b5a0('0x26f7')]=_0x59190c[_0x35b5a0('0x907')][_0x35b5a0('0x1f5a')]?_0x35b5a0('0x587')+_0x59190c['tag']['callerID']:undefined);_0x59190c['saveSmsAccountApp']=_0x33b6ad,_0x59190c['closeDialog']=_0x171beb,_0x44485d[_0x35b5a0('0x21de')](_0x35b5a0('0x1bd8'))?_0x4fb1c3[_0x35b5a0('0x907')][_0x35b5a0('0x595')]({'fields':_0x35b5a0('0x1aa8'),'sort':_0x35b5a0('0x19fe'),'nolimit':_0x35b5a0('0x19bd')})['$promise']['then'](function(_0xaef257){var _0x5ad8b5=_0x35b5a0;_0x59190c['tags']=_0xaef257[_0x5ad8b5('0x1b33')]||[];})['catch'](function(_0x4d6274){var _0xdf4080=_0x35b5a0;_0x396663['error']({'title':_0x4d6274[_0xdf4080('0x209')]?_0xdf4080('0x22d')+_0x4d6274['status']+_0xdf4080('0xa99')+_0x4d6274[_0xdf4080('0x1808')]:_0xdf4080('0xcd4'),'msg':_0x4d6274[_0xdf4080('0x11c2')]?JSON['stringify'](_0x4d6274['data']):_0x4d6274[_0xdf4080('0x174f')]()});}):_0x4fb1c3[_0x35b5a0('0x907')][_0x35b5a0('0x595')]({'fields':_0x35b5a0('0x1aa8'),'sort':'name','nolimit':'true'})[_0x35b5a0('0x1376')][_0x35b5a0('0x21ad')](function(_0x21dfdc){_0x59190c['tags']=_0x21dfdc['rows']||[];})[_0x35b5a0('0x21ad')](function(){var _0x9028b3=_0x35b5a0;return _0x4fb1c3[_0x9028b3('0xab4')]['get']({'userProfileId':_0x59190c[_0x9028b3('0x123f')][_0x9028b3('0x1618')],'sectionId':0x3f0})['$promise'];})['then'](function(_0x5a9ea4){var _0x2ea0fc=_0x35b5a0,_0x52cfde=_0x5a9ea4&&_0x5a9ea4[_0x2ea0fc('0x1b33')]?_0x5a9ea4[_0x2ea0fc('0x1b33')][0x0]:null;if(!_0x52cfde){var _0x46c4c0=[],_0xe7dea3=null;_0x59190c[_0x2ea0fc('0x907')]&&(_0xe7dea3=_0x86640f()['find'](_0x59190c[_0x2ea0fc('0x1889')],{'name':_0x59190c[_0x2ea0fc('0x907')][_0x2ea0fc('0x907')]}));for(var _0x4f9421=0x0;_0x4f9421<_0x59190c[_0x2ea0fc('0x1889')][_0x2ea0fc('0x577')];_0x4f9421++){_0xe7dea3&&_0x59190c[_0x2ea0fc('0x1889')][_0x4f9421]['id']===_0xe7dea3['id']&&(_0x59190c[_0x2ea0fc('0x1889')][_0x4f9421][_0x2ea0fc('0xba')]=![],_0x46c4c0[_0x2ea0fc('0x206c')](_0x59190c[_0x2ea0fc('0x1889')][_0x4f9421]));}_0x59190c[_0x2ea0fc('0x1889')]=_0x46c4c0;}else{if(!_0x52cfde[_0x2ea0fc('0x80c')])return _0x4fb1c3['userProfileResource'][_0x2ea0fc('0x595')]({'sectionId':_0x52cfde['id']})['$promise']['then'](function(_0x20a257){var _0x21924b=_0x2ea0fc,_0x214c9d=_0x86640f()[_0x21924b('0x26c3')](_0x20a257[_0x21924b('0x1b33')],function(_0x23f334){var _0x3e14f3=_0x21924b;return _0x86640f()[_0x3e14f3('0x1d2e')](_0x59190c[_0x3e14f3('0x1889')],{'id':_0x23f334['resourceId']});}),_0x4fc176=null;_0x59190c[_0x21924b('0x907')]&&(_0x4fc176=_0x86640f()[_0x21924b('0x1d2e')](_0x59190c['tags'],{'name':_0x59190c[_0x21924b('0x907')][_0x21924b('0x907')]}));if(_0x4fc176&&!_0x86640f()[_0x21924b('0x2664')](_0x214c9d,['id',_0x4fc176['id']])){var _0x2451cd=_0x86640f()[_0x21924b('0x1d2e')](_0x59190c[_0x21924b('0x1889')],{'id':_0x4fc176['id']});_0x2451cd['canSelect']=![],_0x214c9d[_0x21924b('0x206c')](_0x2451cd);}_0x59190c[_0x21924b('0x1889')]=_0x214c9d;});}})[_0x35b5a0('0x1c1d')](function(_0xb6bc83){var _0x12fc98=_0x35b5a0;_0x396663[_0x12fc98('0x2092')]({'title':_0xb6bc83[_0x12fc98('0x209')]?_0x12fc98('0x22d')+_0xb6bc83[_0x12fc98('0x209')]+_0x12fc98('0xa99')+_0xb6bc83['statusText']:'SYSTEM:GETtags','msg':_0xb6bc83[_0x12fc98('0x11c2')]?JSON[_0x12fc98('0x25e')](_0xb6bc83[_0x12fc98('0x11c2')]):_0xb6bc83[_0x12fc98('0x174f')]()});});function _0x33b6ad(){var _0x2bae54=_0x35b5a0;_0x59190c[_0x2bae54('0x1a69')]=[];var _0x4ad7d5=[];_0x59190c[_0x2bae54('0x907')][_0x2bae54('0x7fa')]&&_0x59190c[_0x2bae54('0x907')][_0x2bae54('0x7fa')][_0x2bae54('0xac2')]()===_0x2bae54('0x2300')&&_0x59190c[_0x2bae54('0x907')][_0x2bae54('0x522')]===_0x2bae54('0x4ea')&&(_0x59190c[_0x2bae54('0x907')][_0x2bae54('0x159e')]=_0x51cbe0[_0x2bae54('0x988')]?(_0x59190c[_0x2bae54('0x907')][_0x2bae54('0x1995')]||'')+'${EXTEN:'+_0x51cbe0[_0x2bae54('0x988')]+'}':(_0x59190c[_0x2bae54('0x907')][_0x2bae54('0x1995')]||'')+'${EXTEN}',_0x51cbe0[_0x2bae54('0xad1')]!==_0x2bae54('0x983')?_0x59190c[_0x2bae54('0x907')]['options'][_0x2bae54('0x2004')](_0x2bae54('0x478'))<0x0&&(_0x59190c['tag']['options']+='U(xcally-mixmonitor-context)'):_0x59190c[_0x2bae54('0x907')][_0x2bae54('0x26a0')]=_0x59190c[_0x2bae54('0x907')][_0x2bae54('0x26a0')]['replace'](_0x2bae54('0x478'),''));var _0x146ae8=_0x86640f()[_0x2bae54('0x1d2e')](_0x59190c['tags'],{'name':_0x59190c[_0x2bae54('0x907')][_0x2bae54('0x907')]});_0x146ae8&&(_0x59190c[_0x2bae54('0x907')][_0x2bae54('0x4ab')]=_0x146ae8['id']);if(_0x59190c[_0x2bae54('0x907')]['appType']&&_0x59190c['tag'][_0x2bae54('0x522')]===_0x2bae54('0xf50')){}else switch((_0x59190c[_0x2bae54('0x907')][_0x2bae54('0x1f94')]||_0x59190c['tag']['appType'])[_0x2bae54('0xac2')]()){case'set':_0x59190c[_0x2bae54('0x907')][_0x2bae54('0x23c2')]=_0x59190c[_0x2bae54('0x907')][_0x2bae54('0x19fe')]+'='+_0x59190c['tag'][_0x2bae54('0x2228')];break;case _0x2bae54('0xf50'):break;default:_0x4ad7d5[0x0]=_0x59190c['tag'][_0x2bae54('0x907')],_0x59190c[_0x2bae54('0x907')]['appdata']=_0x4ad7d5[_0x2bae54('0x136')](',');}_0x171beb(_0x59190c[_0x2bae54('0x907')]);}function _0x171beb(_0x3e26fd){var _0x398ceb=_0x35b5a0;_0x50f503[_0x398ceb('0x1c24')](_0x3e26fd);}}const _0x111e08=_0x3a8569;_0x3dc72f[_0x3877e3('0x1a81')]=[_0x3877e3('0x26'),_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$q','$translate',_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),'toasty',_0x3877e3('0xccd'),_0x3877e3('0x15bc')];function _0x3dc72f(_0x4b81e1,_0x4a2988,_0xe7f625,_0x384102,_0x36fb76,_0x509b1c,_0x3afb76,_0x4250b6,_0x2c3ee1,_0x3ab2a1,_0x6bb81){var _0x23d1be=_0x3877e3,_0x31c515=this;_0x31c515[_0x23d1be('0x123f')]=_0x6bb81[_0x23d1be('0x15ed')](),_0x31c515[_0x23d1be('0xa10')]={},_0x31c515[_0x23d1be('0x1073')]={'count':0x0,'rows':[]},_0x31c515[_0x23d1be('0x2328')]=[],_0x31c515[_0x23d1be('0x5ed')],_0x31c515[_0x23d1be('0x77')]={'read':'null','closed':'null','sort':'-createdAt','includeAll':'true','limit':0xa,'page':0x1},_0x31c515[_0x23d1be('0x1d75')]=_0x316b68,_0x31c515[_0x23d1be('0x15dc')]=_0x4feadc,_0x31c515['smsInteractionDownload']=_0x1d4f7d,_0x31c515[_0x23d1be('0xdb1')]=_0x18b6ca,_0x31c515[_0x23d1be('0xed')]=_0x5830cf,_0x31c515['spysmsInteraction']=_0x3350c1,_0x31c515[_0x23d1be('0x7e3')]=_0x17d9a0,_0x31c515[_0x23d1be('0x22ee')]=_0x1038ba,_0x31c515[_0x23d1be('0x2064')]=_0x4a21eb,_0x31c515[_0x23d1be('0x1a47')]=_0x26b6e3;function _0x316b68(_0x5b7428,_0x406065){var _0x39ea61=_0x23d1be;_0x31c515[_0x39ea61('0xa10')]=_0x5b7428,_0x31c515['crudPermissions']=typeof _0x406065!==_0x39ea61('0xddc')?_0x406065:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x31c515[_0x39ea61('0x77')][_0x39ea61('0x822')]=_0x31c515[_0x39ea61('0xa10')]['id'],_0x31c515[_0x39ea61('0x2211')]={'fields':_0x474ba5()},_0x1fe53f();}function _0x1fe53f(){var _0x1e2575=_0x23d1be;return _0x3ab2a1['tag'][_0x1e2575('0x595')]()[_0x1e2575('0x1376')][_0x1e2575('0x21ad')](function(_0x5306a8){_0x31c515['tags']=_0x5306a8||{'count':0x0,'rows':[]};})[_0x1e2575('0x21ad')](function(){var _0x1bb9c4=_0x1e2575;_0x31c515[_0x1bb9c4('0x2255')]=_0x5d3c3a();});}function _0x5d3c3a(){var _0x54fe7d=_0x23d1be;return[{'name':_0x54fe7d('0x18a1'),'key':_0x54fe7d('0x23ae'),'type':'date','label':'DASHBOARDS.SELECT_DATE'},{'name':'Messages','key':_0x54fe7d('0x14ee'),'type':_0x54fe7d('0x2844'),'label':_0x54fe7d('0x15f4'),'customOptions':[{'value':0x0,'translate':_0x54fe7d('0x1799')},{'value':0x1,'translate':_0x54fe7d('0x629')},{'value':null,'translate':_0x54fe7d('0x1ee5')}]},{'name':_0x54fe7d('0x843'),'key':'closed','type':_0x54fe7d('0x2844'),'label':_0x54fe7d('0x2204'),'customOptions':[{'value':0x0,'translate':_0x54fe7d('0x19e2')},{'value':0x1,'translate':_0x54fe7d('0x11d2')},{'value':null,'translate':_0x54fe7d('0x1ee5')}]},{'name':_0x54fe7d('0x1a44'),'key':_0x54fe7d('0x1dc6'),'type':_0x54fe7d('0x2844'),'label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0x54fe7d('0x27a'),'translate':_0x54fe7d('0x1932')},{'value':undefined,'translate':_0x54fe7d('0x1ee5')}]},{'name':'Tag','key':_0x54fe7d('0x907'),'type':_0x54fe7d('0x91f'),'label':_0x54fe7d('0x138d'),'options':_0x31c515[_0x54fe7d('0x1889')]['rows'],'placeholder':_0x54fe7d('0xb1c')}];}function _0x474ba5(){var _0x204a8b=_0x23d1be;return[{'name':'Id','column':'id','type':_0x204a8b('0xed8')},{'name':_0x204a8b('0x1d10'),'column':_0x204a8b('0x1d10'),'type':'autocomplete','options':{'searchFields':[_0x204a8b('0x992'),_0x204a8b('0x6d'),_0x204a8b('0x2822')],'route':{'model':_0x204a8b('0x25dc'),'action':'get','params':{'fields':_0x204a8b('0x2704'),'Contact':'@autocomplete','nolimit':!![]}},'extraOperators':[_0x204a8b('0xb58')],'excludedOperators':[_0x204a8b('0x3fe')]}},{'name':_0x204a8b('0x1d80'),'column':_0x204a8b('0x32a'),'type':_0x204a8b('0xc1e'),'options':{'excludedOperators':['$eq','$ne']}},{'name':'Body','column':_0x204a8b('0x11e5'),'type':_0x204a8b('0xc1e'),'options':{'excludedOperators':[_0x204a8b('0x940'),_0x204a8b('0x3fe')]}},{'name':_0x204a8b('0x843'),'column':_0x204a8b('0x14ba'),'type':_0x204a8b('0x2844'),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x204a8b('0x11d2')}],'options':{'excludedOperators':[_0x204a8b('0x3fe')]}},{'name':'Agent','column':_0x204a8b('0x6e4'),'type':_0x204a8b('0x175c'),'options':{'table':'i','route':{'model':_0x204a8b('0x1775'),'action':_0x204a8b('0x595'),'params':{'role':'agent','fields':_0x204a8b('0x2326'),'nolimit':!![]}},'searchFields':[_0x204a8b('0x20f5'),_0x204a8b('0x19fe')],'extraOperators':['$substring'],'excludedOperators':[_0x204a8b('0x3fe')]}},{'name':_0x204a8b('0x557'),'column':'Tag','type':_0x204a8b('0x91f'),'options':{'route':{'model':_0x204a8b('0x907'),'action':_0x204a8b('0x595'),'params':{'nolimit':!![]}},'excludedOperators':[_0x204a8b('0x23')]}},{'name':_0x204a8b('0x18a1'),'column':_0x204a8b('0x23ae'),'type':'date','options':{'excludedOperators':[_0x204a8b('0x3fe')]}},{'name':_0x204a8b('0x1715'),'column':'unreadMessages','type':_0x204a8b('0x2844'),'values':[{'id':0x1,'translate':_0x204a8b('0x629')},{'id':0x0,'translate':_0x204a8b('0x1799')}],'options':{'excludedOperators':[_0x204a8b('0x3fe')]}}];}function _0x17d9a0(){var _0x34ee8c=_0x23d1be;_0x3afb76[_0x34ee8c('0x853')]({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0x44f47e,'parent':angular['element'](_0x4250b6[_0x34ee8c('0x2452')]),'clickOutsideToClose':![],'locals':{'fields':_0x31c515[_0x34ee8c('0x2211')]['fields'],'color':undefined,'storagePath':'sms.smsAccounts'},'fullscreen':!![]})[_0x34ee8c('0x21ad')](function(_0x3a37f6){var _0x5b9629=_0x34ee8c;_0x31c515[_0x5b9629('0x77')][_0x5b9629('0x24e7')]=_0x3a37f6===![]?undefined:_0x3a37f6;if(_0x31c515[_0x5b9629('0x77')]['search'])_0x5830cf();else _0x3a37f6===![]&&_0x5830cf();})[_0x34ee8c('0x1c1d')](function(_0x493975){var _0x39bd96=_0x34ee8c;_0x2c3ee1[_0x39bd96('0x2092')]({'title':_0x39bd96('0x1399'),'msg':_0x493975[_0x39bd96('0x11c2')]?JSON[_0x39bd96('0x25e')](_0x493975['data'][_0x39bd96('0x1224')]):_0x493975[_0x39bd96('0x174f')]()});});}function _0x1d4f7d(_0x3a1153,_0xbacf8f,_0x59726a){var _0xeba846=_0x23d1be;return _0x3ab2a1[_0xeba846('0x11f1')]['download']({'id':_0x3a1153['id'],'exists':!![],'attachments':_0x59726a})['$promise'][_0xeba846('0x21ad')](function(_0x19ffbd){var _0xddf1f3=_0xeba846,_0x17bc9a=[_0x19ffbd[_0xddf1f3('0x3da')]],_0x3d02e4=_0xddf1f3('0x1d23')+_0x3a1153['id'],_0xa05d34=new Blob(_0x17bc9a,{'type':_0x19ffbd[_0xddf1f3('0x7fa')]});_0x3d02e4=_0xddf1f3('0x951')+_0x3a1153['id']+_0xddf1f3('0x1622');var _0x51bac7=window[_0xddf1f3('0x27c3')]['createElement']('a');_0x51bac7['setAttribute'](_0xddf1f3('0x69e'),URL[_0xddf1f3('0x167b')](_0xa05d34)),_0x51bac7[_0xddf1f3('0x127a')](_0xddf1f3('0xb0'),_0x3d02e4),document[_0xddf1f3('0x2452')][_0xddf1f3('0x14d0')](_0x51bac7),_0x51bac7[_0xddf1f3('0x997')]();})[_0xeba846('0x1c1d')](function(_0x406e71){var _0x4294fa=_0xeba846;if(_0x406e71[_0x4294fa('0x11c2')]&&_0x406e71[_0x4294fa('0x11c2')][_0x4294fa('0x1a69')]&&_0x406e71['data'][_0x4294fa('0x1a69')]['length'])for(var _0x89b6f7=0x0;_0x89b6f7<_0x406e71[_0x4294fa('0x11c2')][_0x4294fa('0x1a69')]['length'];_0x89b6f7+=0x1){_0x2c3ee1[_0x4294fa('0x2092')]({'title':_0x406e71[_0x4294fa('0x11c2')][_0x4294fa('0x1a69')][_0x89b6f7][_0x4294fa('0x7fa')],'msg':_0x406e71[_0x4294fa('0x11c2')]['errors'][_0x89b6f7][_0x4294fa('0x1224')]});}else _0x2c3ee1[_0x4294fa('0x2092')]({'title':_0x406e71[_0x4294fa('0x209')]?_0x4294fa('0x22d')+_0x406e71[_0x4294fa('0x209')]+_0x4294fa('0xa99')+_0x406e71[_0x4294fa('0x1808')]:'api.smsAccount.save','msg':_0x406e71[_0x4294fa('0x11c2')]?JSON[_0x4294fa('0x25e')](_0x406e71[_0x4294fa('0x11c2')][_0x4294fa('0x1224')]):_0x406e71['toString']()});});}function _0x4feadc(_0x1b8512,_0x4217ec){var _0xa2aba3=_0x23d1be,_0x3c1913=_0x3afb76['confirm']()[_0xa2aba3('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20interaction?')[_0xa2aba3('0x276b')](_0xa2aba3('0x622')+(_0x1b8512[_0xa2aba3('0x19fe')]||_0x1b8512['id']&&_0x86640f()[_0xa2aba3('0x22e')](_0xa2aba3('0x66c'))+_0x1b8512['id']||'interaction')+_0xa2aba3('0x2135')+_0xa2aba3('0x25e0'))['ariaLabel'](_0xa2aba3('0x16bb'))[_0xa2aba3('0x1e6d')](_0x4217ec)['ok']('OK')[_0xa2aba3('0x3b5')](_0xa2aba3('0x284b'));_0x3afb76[_0xa2aba3('0x853')](_0x3c1913)[_0xa2aba3('0x21ad')](function(){_0x4a21eb(_0x1b8512);},function(){var _0x5991dd=_0xa2aba3;console[_0x5991dd('0x6fb')]('CANCEL');});}function _0x18b6ca(_0x3abb32){var _0x7939a5=_0x23d1be;_0x31c515[_0x7939a5('0x1073')]=_0x3abb32||{'count':0x0,'rows':[]};for(var _0x41dc3c=0x0;_0x41dc3c<_0x31c515[_0x7939a5('0x1073')][_0x7939a5('0x1b33')][_0x7939a5('0x577')];_0x41dc3c+=0x1){var _0x1a6e8c=_0x31c515[_0x7939a5('0x1073')]['rows'][_0x41dc3c];_0x1e50a0(_0x1a6e8c),_0x1a6e8c[_0x7939a5('0x11a8')][_0x7939a5('0x19fe')]=_0x2815ce(_0x1a6e8c);}}function _0x5830cf(){var _0x2d52e0=_0x23d1be;_0x31c515[_0x2d52e0('0x77')][_0x2d52e0('0x15a5')]=(_0x31c515['query'][_0x2d52e0('0x2376')]-0x1)*_0x31c515[_0x2d52e0('0x77')][_0x2d52e0('0x1f4a')],_0x31c515[_0x2d52e0('0x71b')]=_0x3ab2a1['smsInteraction'][_0x2d52e0('0x595')](_0x31c515[_0x2d52e0('0x77')],_0x18b6ca)[_0x2d52e0('0x1376')];}function _0x3350c1(_0x3f244e,_0x5d6897){var _0x43203b=_0x23d1be;_0x3afb76[_0x43203b('0x853')]({'controller':_0x43203b('0xbd1'),'controllerAs':'vm','templateUrl':_0x421fef,'parent':angular['element'](_0x4250b6[_0x43203b('0x2452')]),'targetEvent':_0x3f244e,'clickOutsideToClose':!![],'onShowing':function _0x3f400b(_0x24c67d){var _0x454242=_0x43203b;_0x24c67d['vm'][_0x454242('0x1d75')]({'id':0x1,'channel':_0x454242('0x3d0'),'interaction':_0x5d6897,'spy':!![]},_0x4a2988[_0x454242('0x223d')]['vm'][_0x454242('0x21e')]);}});}function _0x4a21eb(_0x2fd07e){var _0x5ea191=_0x23d1be;_0x3ab2a1['smsInteraction'][_0x5ea191('0x1164')]({'id':_0x2fd07e['id']})[_0x5ea191('0x1376')][_0x5ea191('0x21ad')](function(){var _0x569724=_0x5ea191;_0x86640f()[_0x569724('0x16a2')](_0x31c515[_0x569724('0x1073')]['rows'],{'id':_0x2fd07e['id']}),_0x31c515[_0x569724('0x1073')]['count']-=0x1,!_0x31c515[_0x569724('0x1073')][_0x569724('0x1b33')][_0x569724('0x577')]&&_0x5830cf(),_0x2c3ee1[_0x569724('0xdb1')]({'title':_0x569724('0x1eb4'),'msg':_0x2fd07e['name']?_0x2fd07e[_0x569724('0x19fe')]+_0x569724('0xb4a'):''});})[_0x5ea191('0x1c1d')](function(_0xe59b76){var _0x3d058a=_0x5ea191;if(_0xe59b76[_0x3d058a('0x11c2')]&&_0xe59b76[_0x3d058a('0x11c2')]['errors']&&_0xe59b76[_0x3d058a('0x11c2')][_0x3d058a('0x1a69')][_0x3d058a('0x577')]){_0x31c515['errors']=_0xe59b76[_0x3d058a('0x11c2')][_0x3d058a('0x1a69')]||[{'message':_0xe59b76['toString'](),'type':_0x3d058a('0xcc4')}];for(var _0x4b9d49=0x0;_0x4b9d49<_0xe59b76['data'][_0x3d058a('0x1a69')][_0x3d058a('0x577')];_0x4b9d49++){_0x2c3ee1[_0x3d058a('0x2092')]({'title':_0xe59b76[_0x3d058a('0x11c2')][_0x3d058a('0x1a69')][_0x4b9d49]['type'],'msg':_0xe59b76['data'][_0x3d058a('0x1a69')][_0x4b9d49]['message']});}}else _0x2c3ee1['error']({'title':_0xe59b76[_0x3d058a('0x209')]?_0x3d058a('0x22d')+_0xe59b76[_0x3d058a('0x209')]+_0x3d058a('0xa99')+_0xe59b76['statusText']:_0x3d058a('0xcc4'),'msg':_0xe59b76[_0x3d058a('0x11c2')]?JSON[_0x3d058a('0x25e')](_0xe59b76[_0x3d058a('0x11c2')][_0x3d058a('0x1224')]):_0xe59b76[_0x3d058a('0x1224')]||_0xe59b76['toString']()});});}function _0x1038ba(){var _0x3ae64c=_0x23d1be,_0x21bf9c=angular[_0x3ae64c('0xd75')](_0x31c515[_0x3ae64c('0x2328')]);return _0x31c515[_0x3ae64c('0x2328')]=[],_0x21bf9c;}function _0x26b6e3(_0x4f4b12){var _0x1db519=_0x23d1be,_0x413361=_0x3afb76['confirm']()[_0x1db519('0x4b4')](_0x1db519('0x1ad2'))[_0x1db519('0x276b')](_0x1db519('0x622')+_0x31c515[_0x1db519('0x2328')][_0x1db519('0x577')]+_0x1db519('0xd74')+_0x1db519('0x25e0'))[_0x1db519('0x7a7')](_0x1db519('0x263e'))['targetEvent'](_0x4f4b12)['ok']('OK')['cancel'](_0x1db519('0x284b'));_0x3afb76[_0x1db519('0x853')](_0x413361)[_0x1db519('0x21ad')](function(){var _0xd9ef92=_0x1db519;_0x31c515['selectedSmsAccountInteractions'][_0xd9ef92('0x1a52')](function(_0x350886){_0x4a21eb(_0x350886);}),_0x31c515['selectedSmsAccountInteractions']=[];});}function _0x1e50a0(_0x475c1f){var _0x249555=_0x23d1be;_0x475c1f[_0x249555('0x1d10')]?(_0x475c1f[_0x249555('0x1717')]=(_0x475c1f[_0x249555('0x1d10')][_0x249555('0x992')]||'')+'\x20'+(_0x475c1f['Contact'][_0x249555('0x6d')]||''),_0x475c1f['contactInfo']=_0x475c1f[_0x249555('0x1d10')][_0x249555('0xf65')]):_0x475c1f['contactName']=_0x36fb76[_0x249555('0x183e')]('DASHBOARDS.UNKNOWN');}function _0x2815ce(_0x569b06){var _0x4c0ac1=_0x23d1be;if(_0x569b06[_0x4c0ac1('0x1dc6')])return _0x569b06['UserId']===_0x31c515[_0x4c0ac1('0x123f')]['id']?_0x36fb76[_0x4c0ac1('0x183e')]('DASHBOARDS.ME'):_0x569b06[_0x4c0ac1('0x11a8')]['fullname']+'\x20<'+_0x569b06[_0x4c0ac1('0x11a8')][_0x4c0ac1('0x201f')]+'>';return _0x36fb76[_0x4c0ac1('0x183e')](_0x4c0ac1('0x1932'));}var _0x57b9ba=!![],_0x54b05b=0x1;_0x4a2988['$watch'](_0x23d1be('0x10ff'),function(_0x2d1b85,_0x253ba4){var _0x5c1f76=_0x23d1be;_0x57b9ba?_0x509b1c(function(){_0x57b9ba=![];}):(!_0x253ba4&&(_0x54b05b=_0x31c515[_0x5c1f76('0x77')][_0x5c1f76('0x2376')]),_0x2d1b85!==_0x253ba4&&(_0x31c515[_0x5c1f76('0x77')][_0x5c1f76('0x2376')]=0x1),!_0x2d1b85&&(_0x31c515[_0x5c1f76('0x77')][_0x5c1f76('0x2376')]=_0x54b05b),_0x5830cf());});}const _0x33c87c=_0x3dc72f,_0x1ddbe3=_0x398308['p']+_0x3877e3('0xdea');_0x3ac603[_0x3877e3('0x1a81')]=[_0x3877e3('0x26'),_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$q',_0x3877e3('0x13c1'),'$timeout',_0x3877e3('0x1850'),_0x3877e3('0x243f'),'toasty',_0x3877e3('0xccd'),'Auth'];function _0x3ac603(_0x2e43ee,_0x1c8d02,_0x53e1fe,_0x46535e,_0x43b8ae,_0x4814b6,_0x170675,_0x152036,_0x56d97e,_0x3be7fe,_0x2611b7){var _0x166923=_0x3877e3,_0x3a3297=this;_0x3a3297['currentUser']=_0x2611b7[_0x166923('0x15ed')](),_0x3a3297[_0x166923('0xa10')]={},_0x3a3297[_0x166923('0xa0')]={'count':0x0,'rows':[]},_0x3a3297[_0x166923('0x1349')]=[],_0x3a3297[_0x166923('0x5ed')],_0x3a3297['query']={'fields':_0x166923('0x1674'),'limit':0xa,'page':0x1},_0x3a3297[_0x166923('0x1d75')]=_0x1f1db4,_0x3a3297[_0x166923('0x15dc')]=_0x343e1a,_0x3a3297['success']=_0x19ea7c,_0x3a3297[_0x166923('0x167f')]=_0x57ac7d,_0x3a3297[_0x166923('0x23e9')]=_0x198a99,_0x3a3297['exportSelectedSmsAccountSmsCannedAnswers']=_0x192a32,_0x3a3297[_0x166923('0x17be')]=_0x376dca,_0x3a3297[_0x166923('0x11f7')]=_0x3e61bb;function _0x1f1db4(_0x2d4920,_0x335eac){var _0x49e9cc=_0x166923;_0x3a3297['smsAccount']=_0x2d4920,_0x3a3297['crudPermissions']=typeof _0x335eac!==_0x49e9cc('0xddc')?_0x335eac:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3a3297[_0x49e9cc('0x77')][_0x49e9cc('0x822')]=_0x3a3297['smsAccount']['id'],_0x3a3297[_0x49e9cc('0x77')]['id']=_0x3a3297[_0x49e9cc('0xa10')]['id'],_0x57ac7d();}function _0x343e1a(_0x1594e7,_0x1cccd5){var _0x4f26d7=_0x166923,_0x14afa2=_0x170675[_0x4f26d7('0xa33')]()[_0x4f26d7('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20smsCannedAnswer?')[_0x4f26d7('0x276b')](_0x4f26d7('0x622')+(_0x1594e7['name']||_0x1594e7['id']&&_0x86640f()['upperFirst']('smsCannedAnswer\x20#')+_0x1594e7['id']||_0x4f26d7('0x19a6'))+_0x4f26d7('0x2135')+_0x4f26d7('0x25e0'))[_0x4f26d7('0x7a7')]('delete\x20smsCannedAnswer')[_0x4f26d7('0x1e6d')](_0x1cccd5)['ok']('OK')[_0x4f26d7('0x3b5')](_0x4f26d7('0x284b'));_0x170675['show'](_0x14afa2)[_0x4f26d7('0x21ad')](function(){_0x376dca(_0x1594e7);},function(){var _0xe46b6a=_0x4f26d7;console[_0xe46b6a('0x6fb')](_0xe46b6a('0x284b'));});}function _0x19ea7c(_0x5e7bbe){var _0x11bcc9=_0x166923;_0x3a3297[_0x11bcc9('0xa0')]=_0x5e7bbe||{'count':0x0,'rows':[]};}function _0x57ac7d(){var _0x203434=_0x166923;_0x3a3297[_0x203434('0x77')][_0x203434('0x15a5')]=(_0x3a3297[_0x203434('0x77')][_0x203434('0x2376')]-0x1)*_0x3a3297['query'][_0x203434('0x1f4a')],_0x3a3297['promise']=_0x3be7fe[_0x203434('0xa10')]['getAnswers'](_0x3a3297['query'],_0x19ea7c)['$promise'];}function _0x198a99(_0x49ebde,_0x12be8c){var _0x25a8fe=_0x166923;_0x170675[_0x25a8fe('0x853')]({'controller':'CreateOrEditSmsCannedAnswerDialogController','controllerAs':'vm','templateUrl':_0x1ddbe3,'parent':angular['element'](_0x152036[_0x25a8fe('0x2452')]),'targetEvent':_0x49ebde,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x3a3297['smsAccount'],'smsCannedAnswer':_0x12be8c,'smsCannedAnswers':_0x3a3297[_0x25a8fe('0xa0')][_0x25a8fe('0x1b33')],'license':null,'setting':null,'crudPermissions':_0x3a3297[_0x25a8fe('0x5ed')]}});}function _0x376dca(_0x14d5f3){var _0x177c19=_0x166923;_0x3be7fe['cannedAnswer'][_0x177c19('0x1164')]({'id':_0x14d5f3['id']})[_0x177c19('0x1376')]['then'](function(){var _0x5149ae=_0x177c19;_0x86640f()[_0x5149ae('0x16a2')](_0x3a3297[_0x5149ae('0xa0')][_0x5149ae('0x1b33')],{'id':_0x14d5f3['id']}),_0x3a3297[_0x5149ae('0xa0')][_0x5149ae('0x205f')]-=0x1,!_0x3a3297[_0x5149ae('0xa0')][_0x5149ae('0x1b33')][_0x5149ae('0x577')]&&_0x57ac7d(),_0x56d97e[_0x5149ae('0xdb1')]({'title':_0x5149ae('0x12b2'),'msg':_0x14d5f3[_0x5149ae('0x19fe')]?_0x14d5f3[_0x5149ae('0x19fe')]+_0x5149ae('0xb4a'):''});})[_0x177c19('0x1c1d')](function(_0x2a017c){var _0x1246fe=_0x177c19;if(_0x2a017c[_0x1246fe('0x11c2')]&&_0x2a017c[_0x1246fe('0x11c2')][_0x1246fe('0x1a69')]&&_0x2a017c[_0x1246fe('0x11c2')][_0x1246fe('0x1a69')][_0x1246fe('0x577')]){_0x3a3297[_0x1246fe('0x1a69')]=_0x2a017c[_0x1246fe('0x11c2')]['errors']||[{'message':_0x2a017c[_0x1246fe('0x174f')](),'type':_0x1246fe('0xcc4')}];for(var _0x5a09d8=0x0;_0x5a09d8<_0x2a017c[_0x1246fe('0x11c2')][_0x1246fe('0x1a69')][_0x1246fe('0x577')];_0x5a09d8++){_0x56d97e['error']({'title':_0x2a017c[_0x1246fe('0x11c2')][_0x1246fe('0x1a69')][_0x5a09d8][_0x1246fe('0x7fa')],'msg':_0x2a017c['data'][_0x1246fe('0x1a69')][_0x5a09d8][_0x1246fe('0x1224')]});}}else _0x56d97e[_0x1246fe('0x2092')]({'title':_0x2a017c[_0x1246fe('0x209')]?_0x1246fe('0x22d')+_0x2a017c[_0x1246fe('0x209')]+'\x20-\x20'+_0x2a017c[_0x1246fe('0x1808')]:'SYSTEM:GETsmsAccount','msg':_0x2a017c[_0x1246fe('0x11c2')]?JSON[_0x1246fe('0x25e')](_0x2a017c['data']['message']):_0x2a017c[_0x1246fe('0x1224')]||_0x2a017c['toString']()});});}function _0x192a32(){var _0x475149=_0x166923,_0x11820b=angular[_0x475149('0xd75')](_0x3a3297[_0x475149('0x1349')]);return _0x3a3297[_0x475149('0x1349')]=[],_0x11820b;}function _0x3e61bb(_0x2c1dad){var _0x2f7dde=_0x166923,_0x45ee12=_0x170675['confirm']()[_0x2f7dde('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20smsCannedAnswers?')['htmlContent'](''+_0x3a3297[_0x2f7dde('0x1349')][_0x2f7dde('0x577')]+_0x2f7dde('0xd74')+_0x2f7dde('0x25e0'))[_0x2f7dde('0x7a7')]('delete\x20smsCannedAnswers')['targetEvent'](_0x2c1dad)['ok']('OK')[_0x2f7dde('0x3b5')](_0x2f7dde('0x284b'));_0x170675[_0x2f7dde('0x853')](_0x45ee12)['then'](function(){var _0x50ea9a=_0x2f7dde;_0x3a3297[_0x50ea9a('0x1349')]['forEach'](function(_0x424a71){_0x376dca(_0x424a71);}),_0x3a3297[_0x50ea9a('0x1349')]=[];});}var _0x27de6c=!![],_0x365419=0x1;_0x1c8d02[_0x166923('0x10e8')](_0x166923('0x10ff'),function(_0x2667f6,_0x8fbcb9){var _0x54cebc=_0x166923;_0x27de6c?_0x4814b6(function(){_0x27de6c=![];}):(!_0x8fbcb9&&(_0x365419=_0x3a3297[_0x54cebc('0x77')][_0x54cebc('0x2376')]),_0x2667f6!==_0x8fbcb9&&(_0x3a3297['query'][_0x54cebc('0x2376')]=0x1),!_0x2667f6&&(_0x3a3297[_0x54cebc('0x77')][_0x54cebc('0x2376')]=_0x365419),_0x57ac7d());});}const _0x526202=_0x3ac603;_0x3cdb74[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x6ff'),_0x3877e3('0x19a6'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'license',_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x3cdb74(_0x239447,_0xf2d161,_0xf66062,_0x597132,_0x46ac14,_0x5a7b51,_0x5c43cd,_0x246462,_0x5de234,_0x2088b4,_0x17401c,_0x46b60d,_0x44afde,_0x4ffcfe){var _0x36561a=_0x3877e3,_0x145fc7=this;_0x145fc7[_0x36561a('0x123f')]=_0x17401c[_0x36561a('0x15ed')](),_0x145fc7['errors']=[],_0x145fc7[_0x36561a('0x21e')]=_0x44afde,_0x145fc7[_0x36561a('0x2ff')]=_0x46b60d,_0x145fc7[_0x36561a('0x5ed')]=_0x4ffcfe,_0x145fc7[_0x36561a('0x126a')]={},_0x145fc7['passwordPattern']=_0x145fc7[_0x36561a('0x21e')]&&_0x145fc7[_0x36561a('0x21e')][_0x36561a('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x145fc7[_0x36561a('0x4b4')]='SMS.EDIT_SMSCANNEDANSWER',_0x145fc7[_0x36561a('0x19a6')]=angular[_0x36561a('0xd75')](_0x5de234),_0x145fc7[_0x36561a('0x6ff')]=_0x246462,_0x145fc7[_0x36561a('0x2083')]=![];!_0x145fc7[_0x36561a('0x19a6')]&&(_0x145fc7[_0x36561a('0x19a6')]={},_0x145fc7[_0x36561a('0x4b4')]=_0x36561a('0x861'),_0x145fc7[_0x36561a('0x2083')]=!![]);_0xf2d161[_0x36561a('0x171b')]['id']&&(_0x145fc7[_0x36561a('0x19a6')][_0x36561a('0x822')]=_0xf2d161[_0x36561a('0x171b')]['id']);_0x145fc7['addNewSmsCannedAnswer']=_0x275405,_0x145fc7[_0x36561a('0x27f0')]=_0x5db458,_0x145fc7[_0x36561a('0x70d')]=_0x24799c,_0x145fc7['getDateFromString']=_0x43d796,_0x145fc7[_0x36561a('0x167')]=_0x1674c0;function _0x275405(){var _0x311fb6=_0x36561a;_0x145fc7[_0x311fb6('0x1a69')]=[],_0x2088b4[_0x311fb6('0x25e5')]['save'](_0x145fc7[_0x311fb6('0x19a6')])['$promise']['then'](function(_0x39158f){var _0x8d5120=_0x311fb6;_0x145fc7['smsCannedAnswers'][_0x8d5120('0xd0c')](_0x39158f['toJSON']()),_0x5c43cd[_0x8d5120('0xdb1')]({'title':_0x8d5120('0x1156'),'msg':_0x145fc7[_0x8d5120('0x19a6')][_0x8d5120('0x19fe')]?_0x145fc7[_0x8d5120('0x19a6')][_0x8d5120('0x19fe')]+_0x8d5120('0x1694'):''}),_0x1674c0(_0x39158f);})['catch'](function(_0x295966){var _0xb8a26f=_0x311fb6;if(_0x295966[_0xb8a26f('0x11c2')]&&_0x295966[_0xb8a26f('0x11c2')][_0xb8a26f('0x1a69')]&&_0x295966[_0xb8a26f('0x11c2')]['errors'][_0xb8a26f('0x577')]){_0x145fc7['errors']=_0x295966['data'][_0xb8a26f('0x1a69')]||[{'message':_0x295966[_0xb8a26f('0x174f')](),'type':_0xb8a26f('0x545')}];for(var _0x295913=0x0;_0x295913<_0x295966[_0xb8a26f('0x11c2')]['errors'][_0xb8a26f('0x577')];_0x295913+=0x1){_0x5c43cd[_0xb8a26f('0x2092')]({'title':_0x295966[_0xb8a26f('0x11c2')][_0xb8a26f('0x1a69')][_0x295913]['type'],'msg':_0x295966[_0xb8a26f('0x11c2')][_0xb8a26f('0x1a69')][_0x295913][_0xb8a26f('0x1224')]});}}else _0x5c43cd['error']({'title':_0x295966[_0xb8a26f('0x209')]?'API:'+_0x295966[_0xb8a26f('0x209')]+_0xb8a26f('0xa99')+_0x295966[_0xb8a26f('0x1808')]:_0xb8a26f('0x545'),'msg':_0x295966['data']?JSON['stringify'](_0x295966[_0xb8a26f('0x11c2')]['message']):_0x295966[_0xb8a26f('0x174f')]()});});}function _0x5db458(){var _0x12651e=_0x36561a;_0x145fc7[_0x12651e('0x1a69')]=[],_0x2088b4[_0x12651e('0x25e5')][_0x12651e('0x5ef')]({'id':_0x145fc7[_0x12651e('0x19a6')]['id']},_0x145fc7[_0x12651e('0x19a6')])[_0x12651e('0x1376')]['then'](function(_0x397426){var _0x424ad6=_0x12651e,_0x2e3e79=_0x86640f()[_0x424ad6('0x1d2e')](_0x145fc7['smsCannedAnswers'],{'id':_0x397426['id']});_0x2e3e79&&_0x86640f()['merge'](_0x2e3e79,_0x86640f()[_0x424ad6('0xc50')](_0x397426[_0x424ad6('0x3bc')](),_0x86640f()['keys'](_0x2e3e79))),_0x5c43cd[_0x424ad6('0xdb1')]({'title':'SmsCannedAnswer\x20properly\x20saved!','msg':_0x145fc7[_0x424ad6('0x19a6')]['name']?_0x145fc7[_0x424ad6('0x19a6')][_0x424ad6('0x19fe')]+_0x424ad6('0x2249'):''}),_0x1674c0(_0x397426);})['catch'](function(_0x107c11){var _0x419871=_0x12651e;if(_0x107c11[_0x419871('0x11c2')]&&_0x107c11['data'][_0x419871('0x1a69')]&&_0x107c11[_0x419871('0x11c2')][_0x419871('0x1a69')]['length']){_0x145fc7[_0x419871('0x1a69')]=_0x107c11[_0x419871('0x11c2')][_0x419871('0x1a69')]||[{'message':_0x107c11[_0x419871('0x174f')](),'type':_0x419871('0x129c')}];for(var _0x355006=0x0;_0x355006<_0x107c11[_0x419871('0x11c2')][_0x419871('0x1a69')][_0x419871('0x577')];_0x355006++){_0x5c43cd[_0x419871('0x2092')]({'title':_0x107c11[_0x419871('0x11c2')][_0x419871('0x1a69')][_0x355006]['type'],'msg':_0x107c11['data'][_0x419871('0x1a69')][_0x355006][_0x419871('0x1224')]});}}else _0x5c43cd[_0x419871('0x2092')]({'title':_0x107c11[_0x419871('0x209')]?'API:'+_0x107c11['status']+_0x419871('0xa99')+_0x107c11[_0x419871('0x1808')]:'api.cannedAnswer.update','msg':_0x107c11[_0x419871('0x11c2')]?JSON['stringify'](_0x107c11[_0x419871('0x11c2')]['message']):_0x107c11[_0x419871('0x174f')]()});});}function _0x24799c(_0x15b331){var _0x53d3e3=_0x36561a;_0x145fc7[_0x53d3e3('0x1a69')]=[];var _0x2e73dd=_0x597132[_0x53d3e3('0xa33')]()['title'](_0x53d3e3('0x196b'))['content'](_0x53d3e3('0x11'))['ariaLabel'](_0x53d3e3('0xaa8'))['ok'](_0x53d3e3('0xbfd'))[_0x53d3e3('0x3b5')](_0x53d3e3('0x1f40'))['targetEvent'](_0x15b331);_0x597132['show'](_0x2e73dd)[_0x53d3e3('0x21ad')](function(){var _0x1beae6=_0x53d3e3;_0x2088b4['cannedAnswer']['delete']({'id':_0x145fc7[_0x1beae6('0x19a6')]['id']})[_0x1beae6('0x1376')][_0x1beae6('0x21ad')](function(){var _0x50d47e=_0x1beae6;_0x86640f()[_0x50d47e('0x16a2')](_0x145fc7[_0x50d47e('0x6ff')],{'id':_0x145fc7['smsCannedAnswer']['id']}),_0x5c43cd[_0x50d47e('0xdb1')]({'title':_0x50d47e('0x1c1e'),'msg':(_0x145fc7[_0x50d47e('0x19a6')][_0x50d47e('0x19fe')]||_0x50d47e('0x19a6'))+_0x50d47e('0xb4a')}),_0x1674c0(_0x145fc7[_0x50d47e('0x19a6')]);})['catch'](function(_0x2c9a3f){var _0x5140b1=_0x1beae6;if(_0x2c9a3f['data']&&_0x2c9a3f[_0x5140b1('0x11c2')][_0x5140b1('0x1a69')]&&_0x2c9a3f[_0x5140b1('0x11c2')][_0x5140b1('0x1a69')]['length']){_0x145fc7[_0x5140b1('0x1a69')]=_0x2c9a3f[_0x5140b1('0x11c2')][_0x5140b1('0x1a69')]||[{'message':_0x2c9a3f[_0x5140b1('0x174f')](),'type':_0x5140b1('0x2545')}];for(var _0x5cd0a6=0x0;_0x5cd0a6<_0x2c9a3f[_0x5140b1('0x11c2')][_0x5140b1('0x1a69')][_0x5140b1('0x577')];_0x5cd0a6++){_0x5c43cd[_0x5140b1('0x2092')]({'title':_0x2c9a3f[_0x5140b1('0x11c2')][_0x5140b1('0x1a69')][_0x5cd0a6]['type'],'msg':_0x2c9a3f[_0x5140b1('0x11c2')]['errors'][_0x5cd0a6][_0x5140b1('0x1224')]});}}else _0x5c43cd['error']({'title':_0x2c9a3f[_0x5140b1('0x209')]?_0x5140b1('0x22d')+_0x2c9a3f[_0x5140b1('0x209')]+_0x5140b1('0xa99')+_0x2c9a3f[_0x5140b1('0x1808')]:_0x5140b1('0x2545'),'msg':_0x2c9a3f['data']?JSON[_0x5140b1('0x25e')](_0x2c9a3f[_0x5140b1('0x11c2')][_0x5140b1('0x1224')]):_0x2c9a3f[_0x5140b1('0x1224')]||_0x2c9a3f['toString']()});});},function(){});}function _0x43d796(_0x43f583){return _0x43f583===null?undefined:new Date(_0x43f583);}function _0x1674c0(_0x5daa37){var _0x88ae80=_0x36561a;_0x597132[_0x88ae80('0x1c24')](_0x5daa37);}}const _0x456375=_0x3cdb74;_0x5506e3[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x13c1'),'api',_0x3877e3('0x1908'),'Auth'];function _0x5506e3(_0x42e99b,_0x10b1bf,_0x15a1f1,_0x510820,_0x30d555,_0x59aca4,_0x51f4d2,_0x3f3119,_0x4ccce9,_0x43b40e,_0x5cd30b){var _0x1febe7=_0x3877e3,_0x407d45=this;_0x407d45[_0x1febe7('0x123f')]=_0x5cd30b['getCurrentUser'](),_0x407d45['dispositions']={'count':0x0,'rows':[]},_0x407d45[_0x1febe7('0xa9')]=[],_0x407d45[_0x1febe7('0x5ed')],_0x407d45[_0x1febe7('0x2525')]={'first':'1st','second':_0x1febe7('0x2846'),'third':_0x1febe7('0x176b')},_0x407d45[_0x1febe7('0x77')]={'fields':_0x1febe7('0x277'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x407d45[_0x1febe7('0x1d75')]=_0x4d5357,_0x407d45[_0x1febe7('0x15dc')]=_0xa063c1,_0x407d45[_0x1febe7('0xdb1')]=_0x573aea,_0x407d45[_0x1febe7('0x1235')]=_0x422881,_0x407d45[_0x1febe7('0x25e1')]=_0x5ed101,_0x407d45['deleteDisposition']=_0xbfc983,_0x407d45['exportSelectedDispositions']=_0x2ee337,_0x407d45[_0x1febe7('0x250')]=_0x4bf6e0,_0x407d45[_0x1febe7('0x2061')]=_0x2faa54,_0x407d45[_0x1febe7('0x2332')]=_0x48df5f;function _0x4d5357(_0x2e6e1a,_0xcce97){var _0xa7e4da=_0x1febe7;_0x407d45[_0xa7e4da('0xa10')]=_0x2e6e1a||{},_0x407d45['crudPermissions']=typeof _0xcce97!==_0xa7e4da('0xddc')?_0xcce97:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x407d45[_0xa7e4da('0x77')]['SmsAccountId']=_0x407d45[_0xa7e4da('0xa10')]['id'],_0x407d45[_0xa7e4da('0x77')]['id']=_0x407d45[_0xa7e4da('0xa10')]['id'],_0x422881();}function _0x5ed101(_0x3b47e3,_0x4020c4){var _0x1c2a96=_0x1febe7;_0x30d555[_0x1c2a96('0x853')]({'controller':'CreateOrEditDispositionDialogController','controllerAs':'vm','templateUrl':_0x3e2462,'parent':angular[_0x1c2a96('0x1676')](_0x59aca4[_0x1c2a96('0x2452')]),'targetEvent':_0x3b47e3,'clickOutsideToClose':!![],'locals':{'disposition':_0x4020c4,'dispositions':_0x407d45[_0x1c2a96('0x10d0')]['rows'],'model':{'id':_0x407d45[_0x1c2a96('0xa10')]['id'],'field':_0x1c2a96('0x822')},'license':null,'setting':null,'crudPermissions':_0x407d45[_0x1c2a96('0x5ed')]}})['then'](function(_0x17e380){if(_0x17e380)_0x422881();});}function _0xa063c1(_0x35b882,_0x332bcb){var _0x3c6592=_0x1febe7,_0x5b5543=_0x86640f()['some'](_0x407d45['dispositions'][_0x3c6592('0x1b33')],['ParentId',_0x35b882['id']]),_0x1acb81=_0x30d555[_0x3c6592('0xa33')]()['title'](_0x3f3119[_0x3c6592('0x183e')]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE'))[_0x3c6592('0x13fb')](_0x3f3119['instant'](_0x3c6592('0x18ec')+(_0x5b5543?'DISPOSITION_DELETE_MESSAGE_CHILDREN':'DISPOSITION_DELETE_MESSAGE'),{'name':_0x35b882['name']}))[_0x3c6592('0x7a7')](_0x3c6592('0x2448'))[_0x3c6592('0x1e6d')](_0x332bcb)['ok']('OK')[_0x3c6592('0x3b5')](_0x3f3119[_0x3c6592('0x183e')]('TOOLS.CANCEL'));_0x30d555['show'](_0x1acb81)['then'](function(){_0xbfc983(_0x35b882);});}function _0x573aea(_0x2a765b){var _0x2e6fe8=_0x1febe7;_0x407d45[_0x2e6fe8('0x10d0')]=_0x2a765b||{'count':0x0,'rows':[]};}function _0x422881(){var _0x5cdbe6=_0x1febe7;_0x407d45['query'][_0x5cdbe6('0x15a5')]=(_0x407d45[_0x5cdbe6('0x77')][_0x5cdbe6('0x2376')]-0x1)*_0x407d45['query'][_0x5cdbe6('0x1f4a')],_0x407d45[_0x5cdbe6('0x71b')]=_0x4ccce9[_0x5cdbe6('0xa10')]['getDispositions'](_0x407d45['query'],_0x573aea)[_0x5cdbe6('0x1376')];}function _0xbfc983(_0x1bc380){var _0x216341=_0x1febe7;_0x4ccce9[_0x216341('0x22c8')][_0x216341('0x1164')]({'id':_0x1bc380['id']})[_0x216341('0x1376')][_0x216341('0x21ad')](function(){var _0x39bb59=_0x216341;_0x422881(),_0x43b40e[_0x39bb59('0xdb1')]({'title':_0x3f3119[_0x39bb59('0x183e')]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE')});})[_0x216341('0x1c1d')](function(_0x1c2b2e){var _0x5c6058=_0x216341;if(_0x1c2b2e[_0x5c6058('0x11c2')]&&_0x1c2b2e['data'][_0x5c6058('0x1a69')]&&_0x1c2b2e['data'][_0x5c6058('0x1a69')]['length']){_0x407d45['errors']=_0x1c2b2e[_0x5c6058('0x11c2')]['errors']||[{'message':_0x1c2b2e[_0x5c6058('0x174f')](),'type':_0x5c6058('0x10d3')}];for(var _0x83c088=0x0;_0x83c088<_0x1c2b2e['data'][_0x5c6058('0x1a69')]['length'];_0x83c088++){_0x43b40e['error']({'title':_0x1c2b2e[_0x5c6058('0x11c2')]['errors'][_0x83c088][_0x5c6058('0x7fa')],'msg':_0x1c2b2e[_0x5c6058('0x11c2')]['errors'][_0x83c088][_0x5c6058('0x1224')]});}}else _0x43b40e[_0x5c6058('0x2092')]({'title':_0x1c2b2e['status']?_0x5c6058('0x22d')+_0x1c2b2e[_0x5c6058('0x209')]+_0x5c6058('0xa99')+_0x1c2b2e[_0x5c6058('0x1808')]:_0x5c6058('0x10d3'),'msg':_0x1c2b2e['data']?JSON[_0x5c6058('0x25e')](_0x1c2b2e[_0x5c6058('0x11c2')][_0x5c6058('0x1224')]):_0x1c2b2e[_0x5c6058('0x1224')]||_0x1c2b2e[_0x5c6058('0x174f')]()});});}function _0x2ee337(){var _0xe3cb34=_0x1febe7,_0x29bc27=angular[_0xe3cb34('0xd75')](_0x407d45[_0xe3cb34('0xa9')]);return _0x407d45['selectedDispositions']=[],_0x29bc27;}function _0x4bf6e0(_0xea47ca){var _0x21865b=_0x1febe7,_0x10d075=_0x30d555[_0x21865b('0xa33')]()[_0x21865b('0x4b4')](_0x3f3119['instant'](_0x21865b('0x1477')))[_0x21865b('0x13fb')](_0x3f3119[_0x21865b('0x183e')]('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE',{'total':_0x407d45[_0x21865b('0xa9')]['length']}))[_0x21865b('0x7a7')](_0x21865b('0xad9'))[_0x21865b('0x1e6d')](_0xea47ca)['ok']('OK')[_0x21865b('0x3b5')](_0x3f3119[_0x21865b('0x183e')](_0x21865b('0x20ea')));_0x30d555[_0x21865b('0x853')](_0x10d075)[_0x21865b('0x21ad')](function(){var _0x5a3830=_0x21865b;_0x407d45[_0x5a3830('0xa9')][_0x5a3830('0x1a52')](function(_0x478229){_0xbfc983(_0x478229);}),_0x407d45['selectedDispositions']=[];});}function _0x2faa54(){_0x407d45['selectedDispositions']=[];}function _0x48df5f(){var _0x2472c3=_0x1febe7;_0x407d45[_0x2472c3('0xa9')]=_0x407d45[_0x2472c3('0x10d0')][_0x2472c3('0x1b33')];}var _0x5a5b46=!![],_0x49edd9=0x1;_0x42e99b[_0x1febe7('0x10e8')](_0x1febe7('0x10ff'),function(_0x54535c,_0x4cfa3a){var _0x20b443=_0x1febe7;_0x5a5b46?_0x51f4d2(function(){_0x5a5b46=![];}):(!_0x4cfa3a&&(_0x49edd9=_0x407d45[_0x20b443('0x77')][_0x20b443('0x2376')]),_0x54535c!==_0x4cfa3a&&(_0x407d45['query'][_0x20b443('0x2376')]=0x1),!_0x54535c&&(_0x407d45['query'][_0x20b443('0x2376')]=_0x49edd9),_0x422881());});}const _0x845ea8=_0x5506e3,_0x4217d6=_0x398308['p']+_0x3877e3('0x1e37');_0x34c65d[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),'$translate','license',_0x3877e3('0x21e'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),'Auth',_0x3877e3('0xa10'),_0x3877e3('0xab4')];function _0x34c65d(_0x2aa291,_0x1af34f,_0x24ed17,_0x463b15,_0x37de41,_0xfd3742,_0x1d8b02,_0x536e16,_0x51d560,_0x3c0e38,_0x15973b,_0x20775b){var _0xffca29=_0x3877e3,_0x250b42=this;_0x250b42[_0xffca29('0x123f')]=_0x3c0e38[_0xffca29('0x15ed')](),_0x250b42[_0xffca29('0x2ff')]=_0xfd3742,_0x250b42[_0xffca29('0x21e')]=_0x1d8b02,_0x250b42[_0xffca29('0x1432')]=_0x250b42['setting'][_0xffca29('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x250b42[_0xffca29('0x626')]=_0x1af34f['protocol']()+'://'+_0x1af34f[_0xffca29('0x1c01')](),_0x250b42['smsAccount']=_0x15973b||_0x2aa291['params'][_0xffca29('0xa10')]||{},_0x250b42[_0xffca29('0xab4')]=_0x20775b&&_0x20775b[_0xffca29('0x205f')]==0x1?_0x20775b[_0xffca29('0x1b33')][0x0]:null,_0x250b42[_0xffca29('0x5ed')]=_0x3c0e38['parseCrudPermissions'](_0x250b42[_0xffca29('0xab4')]?_0x250b42[_0xffca29('0xab4')][_0xffca29('0x5ed')]:null),_0x250b42[_0xffca29('0x126a')]={},_0x250b42[_0xffca29('0x302')]=_0x2aa291[_0xffca29('0x171b')][_0xffca29('0x12e1')]||0x0,_0x250b42[_0xffca29('0x1297')]=_0xb4bd8,_0x250b42['alert']=_0x51d560[_0xffca29('0x231c')],_0x250b42['gotoSmsAccounts']=_0x40ace0,_0x250b42[_0xffca29('0x1bd0')]=_0x253fad,_0x3c0e38[_0xffca29('0x21de')](_0xffca29('0x1bd8'))?_0x536e16[_0xffca29('0x11e0')][_0xffca29('0x595')]({'fields':_0xffca29('0x1aa8'),'sort':_0xffca29('0x19fe')})[_0xffca29('0x1376')][_0xffca29('0x21ad')](function(_0x264014){_0x250b42['lists']=_0x264014['rows']||[];})[_0xffca29('0x1c1d')](function(_0x4b9fc8){var _0x501463=_0xffca29;_0x51d560[_0x501463('0x2092')]({'title':_0x4b9fc8[_0x501463('0x209')]?_0x501463('0x22d')+_0x4b9fc8[_0x501463('0x209')]+'\x20-\x20'+_0x4b9fc8[_0x501463('0x1808')]:_0x501463('0xf59'),'msg':_0x4b9fc8[_0x501463('0x11c2')]?JSON[_0x501463('0x25e')](_0x4b9fc8[_0x501463('0x11c2')]):_0x4b9fc8[_0x501463('0x174f')]()});}):_0x536e16['cmList']['get']({'fields':_0xffca29('0x1aa8'),'sort':_0xffca29('0x19fe')})[_0xffca29('0x1376')][_0xffca29('0x21ad')](function(_0x4f010f){var _0x29f42d=_0xffca29;_0x250b42[_0x29f42d('0x1972')]=_0x4f010f['rows']||[];})['then'](function(){var _0x487c77=_0xffca29;return _0x536e16[_0x487c77('0xab4')][_0x487c77('0x595')]({'userProfileId':_0x250b42[_0x487c77('0x123f')][_0x487c77('0x1618')],'sectionId':0x12d})[_0x487c77('0x1376')];})[_0xffca29('0x21ad')](function(_0x189253){var _0x24b261=_0xffca29,_0x9fc646=_0x189253&&_0x189253[_0x24b261('0x1b33')]?_0x189253['rows'][0x0]:null;if(!_0x9fc646){var _0x3f7410=[],_0x2bba0c=null;_0x250b42[_0x24b261('0xa10')]&&(_0x2bba0c=_0x86640f()[_0x24b261('0x1d2e')](_0x250b42[_0x24b261('0x1972')],{'id':Number(_0x250b42[_0x24b261('0xa10')]['ListId'])}));for(var _0x4562fc=0x0;_0x4562fc<_0x250b42[_0x24b261('0x1972')][_0x24b261('0x577')];_0x4562fc++){_0x2bba0c&&_0x250b42[_0x24b261('0x1972')][_0x4562fc]['id']===_0x2bba0c['id']&&(_0x250b42[_0x24b261('0x1972')][_0x4562fc]['canSelect']=![],_0x3f7410[_0x24b261('0x206c')](_0x250b42['lists'][_0x4562fc]));}_0x250b42[_0x24b261('0x1972')]=_0x3f7410;}else{if(!_0x9fc646[_0x24b261('0x80c')])return _0x536e16['userProfileResource'][_0x24b261('0x595')]({'sectionId':_0x9fc646['id']})[_0x24b261('0x1376')][_0x24b261('0x21ad')](function(_0x48937f){var _0x3c9487=_0x24b261,_0x25c900=_0x86640f()[_0x3c9487('0x26c3')](_0x48937f[_0x3c9487('0x1b33')],function(_0x4623a5){var _0x4148da=_0x3c9487;return _0x86640f()[_0x4148da('0x1d2e')](_0x250b42[_0x4148da('0x1972')],{'id':_0x4623a5[_0x4148da('0x675')]});}),_0x2ffeac=null;_0x250b42['smsAccount']&&(_0x2ffeac=_0x86640f()[_0x3c9487('0x1d2e')](_0x250b42[_0x3c9487('0x1972')],{'id':Number(_0x250b42['smsAccount']['ListId'])}));if(_0x2ffeac&&!_0x86640f()['some'](_0x25c900,['id',_0x2ffeac['id']])){var _0x35a9f8=_0x86640f()[_0x3c9487('0x1d2e')](_0x250b42[_0x3c9487('0x1972')],{'id':_0x2ffeac['id']});_0x35a9f8[_0x3c9487('0xba')]=![],_0x25c900[_0x3c9487('0x206c')](_0x35a9f8);}_0x250b42[_0x3c9487('0x1972')]=_0x25c900;});}})[_0xffca29('0x1c1d')](function(_0x4e636c){var _0x3e2d4b=_0xffca29;_0x51d560['error']({'title':_0x4e636c['status']?'API:'+_0x4e636c[_0x3e2d4b('0x209')]+_0x3e2d4b('0xa99')+_0x4e636c[_0x3e2d4b('0x1808')]:_0x3e2d4b('0xa92'),'msg':_0x4e636c['data']?JSON[_0x3e2d4b('0x25e')](_0x4e636c[_0x3e2d4b('0x11c2')]):_0x4e636c[_0x3e2d4b('0x174f')]()});}),_0x3c0e38[_0xffca29('0x21de')]('admin')?_0x536e16[_0xffca29('0x1e26')]['get']({'fields':_0xffca29('0x14d5'),'sort':_0xffca29('0x19fe'),'nolimit':'true'})['$promise'][_0xffca29('0x21ad')](function(_0x3c1c7c){var _0x599963=_0xffca29;_0x250b42[_0x599963('0x1fc7')]=_0x3c1c7c[_0x599963('0x1b33')]||[];})['catch'](function(_0x2374df){var _0x836cc=_0xffca29;_0x51d560[_0x836cc('0x2092')]({'title':_0x2374df[_0x836cc('0x209')]?_0x836cc('0x22d')+_0x2374df['status']+_0x836cc('0xa99')+_0x2374df[_0x836cc('0x1808')]:_0x836cc('0xb9b'),'msg':_0x2374df[_0x836cc('0x11c2')]?JSON['stringify'](_0x2374df[_0x836cc('0x11c2')]):_0x2374df[_0x836cc('0x174f')]()});}):_0x536e16[_0xffca29('0x1e26')]['get']({'fields':_0xffca29('0x14d5'),'sort':'name','nolimit':_0xffca29('0x19bd')})[_0xffca29('0x1376')][_0xffca29('0x21ad')](function(_0x5cb453){var _0x35c7b6=_0xffca29;_0x250b42[_0x35c7b6('0x1fc7')]=_0x5cb453[_0x35c7b6('0x1b33')]||[];})[_0xffca29('0x21ad')](function(){var _0x41090e=_0xffca29;return _0x536e16[_0x41090e('0xab4')]['get']({'userProfileId':_0x250b42[_0x41090e('0x123f')][_0x41090e('0x1618')],'sectionId':0x3ed})[_0x41090e('0x1376')];})[_0xffca29('0x21ad')](function(_0x4093ab){var _0x522767=_0xffca29,_0x24fc1c=_0x4093ab&&_0x4093ab[_0x522767('0x1b33')]?_0x4093ab['rows'][0x0]:null;if(!_0x24fc1c)_0x250b42[_0x522767('0x1fc7')]=[];else{if(!_0x24fc1c[_0x522767('0x80c')])return _0x536e16[_0x522767('0x185e')]['get']({'sectionId':_0x24fc1c['id']})[_0x522767('0x1376')][_0x522767('0x21ad')](function(_0x6dcf76){var _0x4d08e6=_0x522767,_0x13091d=_0x86640f()[_0x4d08e6('0x26c3')](_0x6dcf76[_0x4d08e6('0x1b33')],function(_0x5e8239){var _0x5261cd=_0x4d08e6;return _0x86640f()[_0x5261cd('0x1d2e')](_0x250b42['pauses'],{'id':_0x5e8239[_0x5261cd('0x675')]});});_0x250b42[_0x4d08e6('0x1fc7')][_0x4d08e6('0x1a52')](function(_0x506264){var _0x3a4be3=_0x4d08e6;!_0x86640f()[_0x3a4be3('0x2664')](_0x13091d,['id',_0x506264['id']])&&(_0x506264[_0x3a4be3('0xba')]=![]),_0x13091d[_0x3a4be3('0x206c')](_0x506264);}),_0x250b42[_0x4d08e6('0x1fc7')]=_0x13091d;});}})[_0xffca29('0x1c1d')](function(_0x46473f){var _0x287425=_0xffca29;_0x51d560[_0x287425('0x2092')]({'title':_0x46473f['status']?_0x287425('0x22d')+_0x46473f[_0x287425('0x209')]+_0x287425('0xa99')+_0x46473f['statusText']:_0x287425('0x17ab'),'msg':_0x46473f[_0x287425('0x11c2')]?JSON[_0x287425('0x25e')](_0x46473f[_0x287425('0x11c2')]):_0x46473f[_0x287425('0x174f')]()});});function _0xb4bd8(_0x3736ed,_0x1ef039){var _0x4a97c0=_0xffca29;_0x24ed17['show']({'controller':_0x4a97c0('0x22a1'),'controllerAs':'vm','templateUrl':_0x4217d6,'parent':angular[_0x4a97c0('0x1676')](_0x463b15['body']),'targetEvent':_0x1ef039,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x3736ed,'smsAccounts':_0x250b42['smsAccounts']?_0x250b42[_0x4a97c0('0x102b')][_0x4a97c0('0x1b33')]:[],'crudPermissions':_0x250b42[_0x4a97c0('0x5ed')],'realtime':![]}});}function _0x40ace0(){var _0x195828=_0xffca29;_0x2aa291['go'](_0x195828('0xf84'),{},{'reload':_0x195828('0xf84')});}function _0x253fad(){var _0x4cc6c2=_0xffca29;_0x536e16['smsAccount'][_0x4cc6c2('0x5ef')]({'id':_0x250b42[_0x4cc6c2('0xa10')]['id']},_0x250b42[_0x4cc6c2('0xa10')])['$promise'][_0x4cc6c2('0x21ad')](function(){var _0x4ae8c1=_0x4cc6c2;_0x51d560['success']({'title':_0x4ae8c1('0x17d4'),'msg':_0x250b42[_0x4ae8c1('0xa10')][_0x4ae8c1('0x19fe')]?_0x250b42[_0x4ae8c1('0xa10')]['name']+'\x20has\x20been\x20updated!':''});})[_0x4cc6c2('0x1c1d')](function(_0x207b9e){var _0x3f9394=_0x4cc6c2;_0x51d560[_0x3f9394('0x2092')]({'title':_0x207b9e['status']?_0x3f9394('0x22d')+_0x207b9e['status']+_0x3f9394('0xa99')+_0x207b9e[_0x3f9394('0x1808')]:_0x3f9394('0xcc4'),'msg':_0x207b9e[_0x3f9394('0x11c2')]?JSON[_0x3f9394('0x25e')](_0x207b9e[_0x3f9394('0x11c2')]):_0x207b9e[_0x3f9394('0x174f')]()});});}}const _0x312433=_0x34c65d,_0x59a932=_0x398308['p']+'src/js/modules/main/apps/sms/views/smsAccounts/create/dialog.html/dialog-[chunkhash].html';_0x524e1e['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),'$state','$mdSidenav',_0x3877e3('0x1850'),'$document',_0x3877e3('0x2313'),_0x3877e3('0x13c1'),_0x3877e3('0x102b'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),'toasty',_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting'];function _0x524e1e(_0x2e5d2e,_0x530445,_0x427cc6,_0x47fd02,_0x4dbf2f,_0x188119,_0x4be0dc,_0x5e8e6d,_0x30018b,_0x3b51a5,_0x57d341,_0x3fe722,_0x38766c,_0x3b53dc,_0x28b3ca,_0x5b5658,_0x53d62b){var _0x540f89=_0x3877e3,_0x2c37b2=this;_0x2c37b2[_0x540f89('0x2ff')]=_0x5b5658,_0x2c37b2[_0x540f89('0x21e')]=_0x53d62b,_0x2c37b2[_0x540f89('0x123f')]=_0x28b3ca[_0x540f89('0x15ed')](),_0x2c37b2[_0x540f89('0x102b')]=_0x30018b||{'count':0x0,'rows':[]},_0x2c37b2[_0x540f89('0x758')]=_0x3b51a5,_0x2c37b2[_0x540f89('0xab4')]=_0x57d341&&_0x57d341['count']==0x1?_0x57d341[_0x540f89('0x1b33')][0x0]:null,_0x2c37b2[_0x540f89('0x5ed')]=_0x28b3ca['parseCrudPermissions'](_0x2c37b2['userProfileSection']?_0x2c37b2['userProfileSection']['crudPermissions']:null),_0x2c37b2[_0x540f89('0x1897')]='smsAccounts',_0x2c37b2[_0x540f89('0x11dc')]='',_0x2c37b2[_0x540f89('0x18cf')]=null,_0x2c37b2[_0x540f89('0x27c6')]=[],_0x2c37b2[_0x540f89('0x77')]={'fields':_0x540f89('0x23da'),'sort':_0x540f89('0x33'),'limit':0xa,'page':0x1},_0x2c37b2[_0x540f89('0x179c')]=_0x86640f()[_0x540f89('0xcde')]([{'option':'Twilio','value':_0x540f89('0x16e9')},{'option':_0x540f89('0x76a'),'value':'\x27skebby\x27'},{'option':'Connectel','value':'\x27connectel\x27'},{'option':_0x540f89('0x243c'),'value':_0x540f89('0x57d')},{'option':_0x540f89('0x101b'),'value':_0x540f89('0x2244')},{'option':_0x540f89('0x24f5'),'value':'\x27infobip\x27'},{'option':_0x540f89('0x65c'),'value':'\x27clickatell\x27'},{'option':_0x540f89('0x1960'),'value':'\x27csc\x27'},{'option':_0x540f89('0x703'),'value':'\x27intelepeer\x27'}],function(_0x2b29da){var _0x4bd26f=_0x540f89;return _0x86640f()[_0x4bd26f('0x16e4')](_0x2b29da[_0x4bd26f('0x2228')],new RegExp('\x27','g'),'');}),_0x2c37b2[_0x540f89('0x744')]=_0x86640f()[_0x540f89('0xcde')]([{'option':_0x540f89('0x262f'),'value':_0x540f89('0x220f')},{'option':'Classic','value':'\x27TI\x27'},{'option':_0x540f89('0x2247'),'value':'\x27GP\x27'}],function(_0x171b66){var _0x50c275=_0x540f89;return _0x86640f()[_0x50c275('0x16e4')](_0x171b66[_0x50c275('0x2228')],new RegExp('\x27','g'),'');}),_0x2c37b2[_0x540f89('0x1c88')]=_0x343e6e,_0x2c37b2[_0x540f89('0x40f')]=_0x28d3ff,_0x2c37b2[_0x540f89('0x1297')]=_0x2617e4,_0x2c37b2[_0x540f89('0x2593')]=_0x3fb9bf,_0x2c37b2[_0x540f89('0xdb1')]=_0x5dcb9d,_0x2c37b2['getSmsAccounts']=_0x51eb04,_0x2c37b2['createOrEditSmsAccount']=_0x28816f,_0x2c37b2['deleteSmsAccount']=_0x24e534,_0x2c37b2['exportSelectedSmsAccounts']=_0xecd4c1,_0x2c37b2[_0x540f89('0x1b78')]=_0x411c37,_0x2c37b2[_0x540f89('0x17')]=_0x7920f7,_0x2c37b2['selectAllSmsAccounts']=_0x33e8f1,_0x28b3ca[_0x540f89('0x21de')](_0x540f89('0x1bd8'))?_0x3fe722[_0x540f89('0x11e0')][_0x540f89('0x595')]({'fields':_0x540f89('0x1aa8'),'sort':_0x540f89('0x19fe')})[_0x540f89('0x1376')][_0x540f89('0x21ad')](function(_0x18ce6a){var _0x29ec00=_0x540f89;_0x2c37b2['lists']=_0x18ce6a[_0x29ec00('0x1b33')]||[];})['catch'](function(_0x56138b){var _0x58b130=_0x540f89;_0x3b53dc[_0x58b130('0x2092')]({'title':_0x56138b[_0x58b130('0x209')]?_0x58b130('0x22d')+_0x56138b['status']+_0x58b130('0xa99')+_0x56138b['statusText']:_0x58b130('0xf59'),'msg':_0x56138b['data']?JSON[_0x58b130('0x25e')](_0x56138b[_0x58b130('0x11c2')]):_0x56138b['toString']()});}):_0x3fe722[_0x540f89('0x11e0')][_0x540f89('0x595')]({'fields':_0x540f89('0x1aa8'),'sort':_0x540f89('0x19fe')})[_0x540f89('0x1376')][_0x540f89('0x21ad')](function(_0x14354b){var _0x4315b5=_0x540f89;_0x2c37b2[_0x4315b5('0x1972')]=_0x14354b['rows']||[];})[_0x540f89('0x21ad')](function(){var _0x13774e=_0x540f89;return _0x3fe722[_0x13774e('0xab4')][_0x13774e('0x595')]({'userProfileId':_0x2c37b2['currentUser'][_0x13774e('0x1618')],'sectionId':0x12d})[_0x13774e('0x1376')];})[_0x540f89('0x21ad')](function(_0x400d3a){var _0x354385=_0x540f89,_0x5094a4=_0x400d3a&&_0x400d3a['rows']?_0x400d3a[_0x354385('0x1b33')][0x0]:null;if(!_0x5094a4){var _0x4e8382=[],_0x578647=null;_0x2c37b2['smsAccount']&&(_0x578647=_0x86640f()[_0x354385('0x1d2e')](_0x2c37b2[_0x354385('0x1972')],{'id':Number(_0x2c37b2[_0x354385('0xa10')][_0x354385('0x815')])}));for(var _0x2c7fdd=0x0;_0x2c7fdd<_0x2c37b2['lists'][_0x354385('0x577')];_0x2c7fdd++){_0x578647&&_0x2c37b2[_0x354385('0x1972')][_0x2c7fdd]['id']===_0x578647['id']&&(_0x2c37b2[_0x354385('0x1972')][_0x2c7fdd][_0x354385('0xba')]=![],_0x4e8382[_0x354385('0x206c')](_0x2c37b2['lists'][_0x2c7fdd]));}_0x2c37b2[_0x354385('0x1972')]=_0x4e8382;}else{if(!_0x5094a4['autoAssociation'])return _0x3fe722[_0x354385('0x185e')][_0x354385('0x595')]({'sectionId':_0x5094a4['id']})[_0x354385('0x1376')][_0x354385('0x21ad')](function(_0x49143f){var _0x53512e=_0x354385,_0x504b08=_0x86640f()[_0x53512e('0x26c3')](_0x49143f[_0x53512e('0x1b33')],function(_0xc75493){var _0x5becc4=_0x53512e;return _0x86640f()[_0x5becc4('0x1d2e')](_0x2c37b2[_0x5becc4('0x1972')],{'id':_0xc75493[_0x5becc4('0x675')]});}),_0xee8e11=null;_0x2c37b2[_0x53512e('0xa10')]&&(_0xee8e11=_0x86640f()[_0x53512e('0x1d2e')](_0x2c37b2[_0x53512e('0x1972')],{'id':Number(_0x2c37b2['smsAccount'][_0x53512e('0x815')])}));if(_0xee8e11&&!_0x86640f()[_0x53512e('0x2664')](_0x504b08,['id',_0xee8e11['id']])){var _0x2a6128=_0x86640f()[_0x53512e('0x1d2e')](_0x2c37b2[_0x53512e('0x1972')],{'id':_0xee8e11['id']});_0x2a6128[_0x53512e('0xba')]=![],_0x504b08['push'](_0x2a6128);}_0x2c37b2[_0x53512e('0x1972')]=_0x504b08;});}})[_0x540f89('0x1c1d')](function(_0x1b7dc6){var _0x10be37=_0x540f89;_0x3b53dc['error']({'title':_0x1b7dc6['status']?_0x10be37('0x22d')+_0x1b7dc6[_0x10be37('0x209')]+_0x10be37('0xa99')+_0x1b7dc6['statusText']:_0x10be37('0xa92'),'msg':_0x1b7dc6[_0x10be37('0x11c2')]?JSON[_0x10be37('0x25e')](_0x1b7dc6[_0x10be37('0x11c2')]):_0x1b7dc6[_0x10be37('0x174f')]()});});function _0x343e6e(_0x2a4733){var _0x5288fc=_0x540f89;_0x427cc6['go']('app.sms.smsAccounts.edit',{'id':_0x2a4733['id'],'smsAccount':_0x2a4733,'crudPermissions':_0x2c37b2[_0x5288fc('0x5ed')]});}function _0x28d3ff(_0x377c18){var _0x86779e=_0x540f89;_0x427cc6['go'](_0x86779e('0xf41'),{'id':_0x377c18['id'],'tab':0x5});}function _0x2617e4(_0x415141,_0x23dbb1){var _0x58b54b=_0x540f89;_0x4dbf2f[_0x58b54b('0x853')]({'controller':'SmsAccountagentaddController','controllerAs':'vm','templateUrl':_0x4217d6,'parent':angular[_0x58b54b('0x1676')](_0x188119['body']),'targetEvent':_0x23dbb1,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x415141,'smsAccounts':_0x2c37b2[_0x58b54b('0x102b')]?_0x2c37b2[_0x58b54b('0x102b')][_0x58b54b('0x1b33')]:[],'crudPermissions':_0x2c37b2[_0x58b54b('0x5ed')],'realtime':![]}});}function _0x3fb9bf(_0x3bcfb7,_0x1c50a1){var _0x4bf2ce=_0x540f89,_0xc58675=_0x4dbf2f['confirm']()[_0x4bf2ce('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x86640f()[_0x4bf2ce('0x2159')](_0x4bf2ce('0xa10'))+'?')['htmlContent'](_0x4bf2ce('0x622')+(_0x3bcfb7['name']||_0x4bf2ce('0xa10'))+_0x4bf2ce('0x2135')+_0x4bf2ce('0x25e0'))[_0x4bf2ce('0x7a7')]('delete\x20smsAccount')[_0x4bf2ce('0x1e6d')](_0x1c50a1)['ok']('OK')['cancel'](_0x4bf2ce('0x284b'));_0x4dbf2f[_0x4bf2ce('0x853')](_0xc58675)[_0x4bf2ce('0x21ad')](function(){_0x24e534(_0x3bcfb7);},function(){var _0x5d145e=_0x4bf2ce;console[_0x5d145e('0x6fb')](_0x5d145e('0x284b'));});}var _0x3ced7a=!![],_0x582cb5=0x1;_0x2e5d2e['$watch']('vm.query.filter',function(_0x4b5c1c,_0x34c13e){var _0x1b7150=_0x540f89;_0x3ced7a?_0x4be0dc(function(){_0x3ced7a=![];}):(!_0x34c13e&&(_0x582cb5=_0x2c37b2['query']['page']),_0x4b5c1c!==_0x34c13e&&(_0x2c37b2[_0x1b7150('0x77')][_0x1b7150('0x2376')]=0x1),!_0x4b5c1c&&(_0x2c37b2[_0x1b7150('0x77')][_0x1b7150('0x2376')]=_0x582cb5),_0x2c37b2[_0x1b7150('0x17f8')]());});function _0x5dcb9d(_0x40dd99){_0x2c37b2['smsAccounts']=_0x40dd99||{'count':0x0,'rows':[]};}function _0x51eb04(){var _0x427dd3=_0x540f89;_0x2c37b2[_0x427dd3('0x77')][_0x427dd3('0x15a5')]=(_0x2c37b2[_0x427dd3('0x77')][_0x427dd3('0x2376')]-0x1)*_0x2c37b2[_0x427dd3('0x77')][_0x427dd3('0x1f4a')],_0x28b3ca[_0x427dd3('0x21de')](_0x427dd3('0x1bd8'))?_0x2c37b2[_0x427dd3('0x71b')]=_0x3fe722['smsAccount'][_0x427dd3('0x595')](_0x2c37b2[_0x427dd3('0x77')],_0x5dcb9d)['$promise']:(_0x2c37b2['query']['id']=_0x2c37b2[_0x427dd3('0x758')]['id'],_0x2c37b2[_0x427dd3('0x77')][_0x427dd3('0x26ad')]=_0x427dd3('0x1fed'),_0x2c37b2[_0x427dd3('0x71b')]=_0x3fe722['userProfile']['getResources'](_0x2c37b2[_0x427dd3('0x77')],_0x5dcb9d)['$promise']);}function _0x28816f(_0x4d0b27,_0x500e7d){var _0x5f0b11=_0x540f89;_0x4dbf2f['show']({'controller':_0x5f0b11('0x10c2'),'controllerAs':'vm','templateUrl':_0x59a932,'parent':angular[_0x5f0b11('0x1676')](_0x188119['body']),'targetEvent':_0x4d0b27,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x500e7d,'smsAccounts':_0x2c37b2[_0x5f0b11('0x102b')][_0x5f0b11('0x1b33')],'license':_0x2c37b2[_0x5f0b11('0x2ff')],'setting':_0x2c37b2[_0x5f0b11('0x21e')],'crudPermissions':_0x2c37b2[_0x5f0b11('0x5ed')]}});}function _0x24e534(_0x338d89){var _0x243455=_0x540f89;_0x3fe722[_0x243455('0xa10')][_0x243455('0x1164')]({'id':_0x338d89['id']})['$promise'][_0x243455('0x21ad')](function(){var _0x5bdbd7=_0x243455;_0x86640f()['remove'](_0x2c37b2['smsAccounts'][_0x5bdbd7('0x1b33')],{'id':_0x338d89['id']}),_0x2c37b2[_0x5bdbd7('0x102b')][_0x5bdbd7('0x205f')]-=0x1,!_0x2c37b2[_0x5bdbd7('0x102b')][_0x5bdbd7('0x1b33')][_0x5bdbd7('0x577')]&&_0x2c37b2['getSmsAccounts'](),_0x3b53dc[_0x5bdbd7('0xdb1')]({'title':_0x86640f()[_0x5bdbd7('0x2159')](_0x5bdbd7('0x27b0'))+_0x5bdbd7('0xe64'),'msg':_0x338d89[_0x5bdbd7('0x19fe')]?_0x338d89['name']+_0x5bdbd7('0xb4a'):''});})[_0x243455('0x1c1d')](function(_0xbfa703){var _0x25c938=_0x243455;if(_0xbfa703[_0x25c938('0x11c2')]&&_0xbfa703[_0x25c938('0x11c2')][_0x25c938('0x1a69')]&&_0xbfa703[_0x25c938('0x11c2')][_0x25c938('0x1a69')][_0x25c938('0x577')]){_0x2c37b2[_0x25c938('0x1a69')]=_0xbfa703[_0x25c938('0x11c2')][_0x25c938('0x1a69')]||[{'message':_0xbfa703[_0x25c938('0x174f')](),'type':_0x25c938('0x72f')}];for(var _0x5aa10a=0x0;_0x5aa10a<_0xbfa703[_0x25c938('0x11c2')][_0x25c938('0x1a69')][_0x25c938('0x577')];_0x5aa10a++){_0x3b53dc[_0x25c938('0x2092')]({'title':_0xbfa703['data']['errors'][_0x5aa10a][_0x25c938('0x7fa')],'msg':_0xbfa703[_0x25c938('0x11c2')][_0x25c938('0x1a69')][_0x5aa10a]['message']});}}else _0x3b53dc['error']({'title':_0xbfa703[_0x25c938('0x209')]?_0x25c938('0x22d')+_0xbfa703[_0x25c938('0x209')]+_0x25c938('0xa99')+_0xbfa703[_0x25c938('0x1808')]:_0x25c938('0x72f'),'msg':_0xbfa703['data']?JSON[_0x25c938('0x25e')](_0xbfa703[_0x25c938('0x11c2')][_0x25c938('0x1224')]):_0xbfa703['message']||_0xbfa703[_0x25c938('0x174f')]()});});}function _0xecd4c1(){var _0xf49b34=_0x540f89,_0x15f6be=angular[_0xf49b34('0xd75')](_0x2c37b2['selectedSmsAccounts']);return _0x2c37b2['selectedSmsAccounts']=[],_0x15f6be;}function _0x411c37(_0xc490a1){var _0x4b5e4b=_0x540f89,_0x462d17=_0x4dbf2f['confirm']()[_0x4b5e4b('0x4b4')](_0x4b5e4b('0x8aa'))[_0x4b5e4b('0x276b')](''+_0x2c37b2[_0x4b5e4b('0x27c6')][_0x4b5e4b('0x577')]+_0x4b5e4b('0xd74')+_0x4b5e4b('0x25e0'))['ariaLabel']('delete\x20SmsAccounts')[_0x4b5e4b('0x1e6d')](_0xc490a1)['ok']('OK')[_0x4b5e4b('0x3b5')](_0x4b5e4b('0x284b'));_0x4dbf2f['show'](_0x462d17)[_0x4b5e4b('0x21ad')](function(){var _0xa1e914=_0x4b5e4b;_0x2c37b2[_0xa1e914('0x27c6')]['forEach'](function(_0x15f97b){_0x24e534(_0x15f97b);}),_0x2c37b2[_0xa1e914('0x27c6')]=[];});}function _0x7920f7(){var _0x8b698c=_0x540f89;_0x2c37b2[_0x8b698c('0x27c6')]=[];}function _0x33e8f1(){var _0xf910fc=_0x540f89;_0x2c37b2[_0xf910fc('0x27c6')]=_0x2c37b2['smsAccounts']['rows'];}}const _0x2230c7=_0x524e1e;_0x33ff91['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$location',_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),'smsQueues',_0x3877e3('0x754'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'license',_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x33ff91(_0x48d644,_0x28bec0,_0x58a650,_0x10d5c2,_0x7f66df,_0x2ca1bd,_0x203a36,_0x3cf95b,_0x33ccea,_0x3a2525,_0x1a8f66,_0xb0f470,_0x2dd0e4,_0x2c03ec){var _0x307201=_0x3877e3,_0x26e355=this;_0x26e355[_0x307201('0x123f')]=_0x1a8f66['getCurrentUser'](),_0x26e355['errors']=[],_0x26e355[_0x307201('0x21e')]=_0x2dd0e4,_0x26e355['license']=_0xb0f470,_0x26e355['crudPermissions']=_0x2c03ec,_0x26e355[_0x307201('0x126a')]={},_0x26e355['passwordPattern']=_0x26e355[_0x307201('0x21e')]&&_0x26e355[_0x307201('0x21e')][_0x307201('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x26e355['title']=_0x307201('0x81a'),_0x26e355[_0x307201('0x754')]=angular[_0x307201('0xd75')](_0x33ccea),_0x26e355[_0x307201('0x6ce')]=_0x3cf95b,_0x26e355[_0x307201('0x100d')]=![];!_0x26e355[_0x307201('0x754')]&&(_0x26e355[_0x307201('0x754')]={'strategy':_0x307201('0x2106'),'timeout':0xa},_0x26e355[_0x307201('0x4b4')]=_0x307201('0x8a0'),_0x26e355[_0x307201('0x100d')]=!![]);_0x26e355[_0x307201('0x1e63')]=_0x46ec1c,_0x26e355[_0x307201('0xe0a')]=_0x10b5ae,_0x26e355[_0x307201('0xb16')]=_0x101877,_0x26e355['getDateFromString']=_0x430600,_0x26e355['closeDialog']=_0x2ca240;function _0x46ec1c(){var _0x3b831c=_0x307201;_0x26e355[_0x3b831c('0x1a69')]=[],_0x3a2525[_0x3b831c('0x754')][_0x3b831c('0x186f')](_0x26e355[_0x3b831c('0x754')])[_0x3b831c('0x1376')][_0x3b831c('0x21ad')](function(_0x3ca876){var _0xaccf1c=_0x3b831c;_0x26e355[_0xaccf1c('0x6ce')]['unshift'](_0x3ca876['toJSON']()),_0x203a36[_0xaccf1c('0xdb1')]({'title':'SmsQueue\x20properly\x20created','msg':_0x26e355['smsQueue']['name']?_0x26e355[_0xaccf1c('0x754')][_0xaccf1c('0x19fe')]+_0xaccf1c('0x1694'):''}),_0x2ca240(_0x3ca876);})['catch'](function(_0x5b996b){var _0x1be49a=_0x3b831c;if(_0x5b996b[_0x1be49a('0x11c2')]&&_0x5b996b['data']['errors']&&_0x5b996b['data']['errors'][_0x1be49a('0x577')]){_0x26e355[_0x1be49a('0x1a69')]=_0x5b996b[_0x1be49a('0x11c2')][_0x1be49a('0x1a69')]||[{'message':_0x5b996b[_0x1be49a('0x174f')](),'type':_0x1be49a('0x1be9')}];for(var _0x38a0a7=0x0;_0x38a0a7<_0x5b996b[_0x1be49a('0x11c2')]['errors'][_0x1be49a('0x577')];_0x38a0a7+=0x1){_0x203a36[_0x1be49a('0x2092')]({'title':_0x5b996b[_0x1be49a('0x11c2')][_0x1be49a('0x1a69')][_0x38a0a7]['type'],'msg':_0x5b996b['data']['errors'][_0x38a0a7][_0x1be49a('0x1224')]});}}else _0x203a36[_0x1be49a('0x2092')]({'title':_0x5b996b[_0x1be49a('0x209')]?'API:'+_0x5b996b[_0x1be49a('0x209')]+_0x1be49a('0xa99')+_0x5b996b['statusText']:_0x1be49a('0x1be9'),'msg':_0x5b996b[_0x1be49a('0x11c2')]?JSON[_0x1be49a('0x25e')](_0x5b996b[_0x1be49a('0x11c2')][_0x1be49a('0x1224')]):_0x5b996b[_0x1be49a('0x174f')]()});});}function _0x10b5ae(){var _0x575a91=_0x307201;_0x26e355[_0x575a91('0x1a69')]=[],_0x3a2525[_0x575a91('0x754')][_0x575a91('0x5ef')]({'id':_0x26e355[_0x575a91('0x754')]['id']},_0x26e355[_0x575a91('0x754')])['$promise'][_0x575a91('0x21ad')](function(_0x5040f4){var _0x5d0838=_0x575a91,_0x5ce897=_0x86640f()[_0x5d0838('0x1d2e')](_0x26e355[_0x5d0838('0x6ce')],{'id':_0x5040f4['id']});_0x5ce897&&_0x86640f()[_0x5d0838('0xd0e')](_0x5ce897,_0x86640f()[_0x5d0838('0xc50')](_0x5040f4[_0x5d0838('0x3bc')](),_0x86640f()[_0x5d0838('0x223b')](_0x5ce897))),_0x203a36[_0x5d0838('0xdb1')]({'title':'SmsQueue\x20properly\x20saved!','msg':_0x26e355[_0x5d0838('0x754')]['name']?_0x26e355[_0x5d0838('0x754')][_0x5d0838('0x19fe')]+_0x5d0838('0x2249'):''}),_0x2ca240(_0x5040f4);})[_0x575a91('0x1c1d')](function(_0x2ae696){var _0x154069=_0x575a91;if(_0x2ae696[_0x154069('0x11c2')]&&_0x2ae696[_0x154069('0x11c2')][_0x154069('0x1a69')]&&_0x2ae696[_0x154069('0x11c2')][_0x154069('0x1a69')][_0x154069('0x577')]){_0x26e355['errors']=_0x2ae696[_0x154069('0x11c2')][_0x154069('0x1a69')]||[{'message':_0x2ae696[_0x154069('0x174f')](),'type':_0x154069('0x1979')}];for(var _0x4c3dbe=0x0;_0x4c3dbe<_0x2ae696[_0x154069('0x11c2')][_0x154069('0x1a69')][_0x154069('0x577')];_0x4c3dbe++){_0x203a36[_0x154069('0x2092')]({'title':_0x2ae696[_0x154069('0x11c2')]['errors'][_0x4c3dbe][_0x154069('0x7fa')],'msg':_0x2ae696['data'][_0x154069('0x1a69')][_0x4c3dbe][_0x154069('0x1224')]});}}else _0x203a36[_0x154069('0x2092')]({'title':_0x2ae696[_0x154069('0x209')]?_0x154069('0x22d')+_0x2ae696[_0x154069('0x209')]+'\x20-\x20'+_0x2ae696[_0x154069('0x1808')]:_0x154069('0x1979'),'msg':_0x2ae696[_0x154069('0x11c2')]?JSON[_0x154069('0x25e')](_0x2ae696[_0x154069('0x11c2')][_0x154069('0x1224')]):_0x2ae696[_0x154069('0x174f')]()});});}function _0x101877(_0x47a559){var _0x3145e1=_0x307201;_0x26e355[_0x3145e1('0x1a69')]=[];var _0x4bab80=_0x10d5c2['confirm']()[_0x3145e1('0x4b4')](_0x3145e1('0x196b'))[_0x3145e1('0x13fb')]('The\x20smsQueue\x20will\x20be\x20deleted.')[_0x3145e1('0x7a7')](_0x3145e1('0x1fc8'))['ok']('Delete')[_0x3145e1('0x3b5')]('Cancel')[_0x3145e1('0x1e6d')](_0x47a559);_0x10d5c2['show'](_0x4bab80)['then'](function(){var _0x1a45fb=_0x3145e1;_0x3a2525[_0x1a45fb('0x754')][_0x1a45fb('0x1164')]({'id':_0x26e355[_0x1a45fb('0x754')]['id']})[_0x1a45fb('0x1376')][_0x1a45fb('0x21ad')](function(){var _0x48ad62=_0x1a45fb;_0x86640f()[_0x48ad62('0x16a2')](_0x26e355[_0x48ad62('0x6ce')],{'id':_0x26e355[_0x48ad62('0x754')]['id']}),_0x203a36[_0x48ad62('0xdb1')]({'title':_0x48ad62('0x1286'),'msg':(_0x26e355[_0x48ad62('0x754')][_0x48ad62('0x19fe')]||'smsQueue')+_0x48ad62('0xb4a')}),_0x2ca240(_0x26e355['smsQueue']);})[_0x1a45fb('0x1c1d')](function(_0x34d077){var _0x5ac661=_0x1a45fb;if(_0x34d077['data']&&_0x34d077[_0x5ac661('0x11c2')]['errors']&&_0x34d077[_0x5ac661('0x11c2')]['errors'][_0x5ac661('0x577')]){_0x26e355[_0x5ac661('0x1a69')]=_0x34d077[_0x5ac661('0x11c2')][_0x5ac661('0x1a69')]||[{'message':_0x34d077['toString'](),'type':_0x5ac661('0xf4b')}];for(var _0x524d5c=0x0;_0x524d5c<_0x34d077[_0x5ac661('0x11c2')][_0x5ac661('0x1a69')]['length'];_0x524d5c++){_0x203a36[_0x5ac661('0x2092')]({'title':_0x34d077['data'][_0x5ac661('0x1a69')][_0x524d5c]['type'],'msg':_0x34d077[_0x5ac661('0x11c2')][_0x5ac661('0x1a69')][_0x524d5c][_0x5ac661('0x1224')]});}}else _0x203a36[_0x5ac661('0x2092')]({'title':_0x34d077[_0x5ac661('0x209')]?_0x5ac661('0x22d')+_0x34d077[_0x5ac661('0x209')]+_0x5ac661('0xa99')+_0x34d077[_0x5ac661('0x1808')]:_0x5ac661('0xf4b'),'msg':_0x34d077['data']?JSON[_0x5ac661('0x25e')](_0x34d077['data'][_0x5ac661('0x1224')]):_0x34d077[_0x5ac661('0x1224')]||_0x34d077[_0x5ac661('0x174f')]()});});},function(){});}function _0x430600(_0xca0e12){return _0xca0e12===null?undefined:new Date(_0xca0e12);}function _0x2ca240(_0x280a68){var _0x37f2a1=_0x307201;_0x10d5c2[_0x37f2a1('0x1c24')](_0x280a68);}}const _0x41671b=_0x33ff91;_0x579068[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q','toasty',_0x3877e3('0xccd'),'smsQueue',_0x3877e3('0x6ce'),_0x3877e3('0x116a'),_0x3877e3('0x13c1'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x579068(_0x2252c6,_0x3316f3,_0x2b6b0a,_0x4cf05b,_0x41e7df,_0x4ad501,_0x36ebb5,_0x3b0bde,_0x5dbf5f,_0x51aa9b){var _0x142209=_0x3877e3,_0x12f9eb=this;_0x12f9eb[_0x142209('0x123f')]=_0x5dbf5f['getCurrentUser'](),_0x12f9eb['smsQueue']=_0x41e7df,_0x12f9eb['crudPermissions']=_0x51aa9b,_0x12f9eb['realtime']=_0x36ebb5,_0x12f9eb['items']=[],_0x12f9eb[_0x142209('0x1e09')]=[],_0x12f9eb[_0x142209('0x2629')]=[],_0x12f9eb['startingAllowedItems']=[],_0x12f9eb['startingSelectedItems']=[],_0x12f9eb[_0x142209('0x1bb9')]=![],_0x12f9eb[_0x142209('0x1081')]=_0x192cf6,_0x12f9eb[_0x142209('0x265b')]=_0x4b2447,_0x12f9eb[_0x142209('0x167')]=_0x43662d,_0x12f9eb[_0x142209('0x909')]={'readOnly':!_0x12f9eb[_0x142209('0x5ed')][_0x142209('0x6e2')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x142209('0x19fe'),'line1':_0x142209('0x20f5'),'line2':[_0x142209('0x19fe'),_0x142209('0x201f')],'line3':'','labelAll':_0x3b0bde['instant'](_0x142209('0x1b71')),'labelSelected':_0x3b0bde['instant'](_0x142209('0x22b9')),'transferCallback':function _0x1bec21(){var _0x5e708c=_0x142209,_0x3f8aa0=_0x86640f()[_0x5e708c('0x1473')](_0x12f9eb[_0x5e708c('0x2584')],_0x12f9eb[_0x5e708c('0x2629')],'id');_0x12f9eb[_0x5e708c('0x1bb9')]=_0x86640f()[_0x5e708c('0x23aa')](_0x3f8aa0)?![]:!![];}};function _0x192cf6(){var _0x3c6384=_0x142209;return _0x5dbf5f[_0x3c6384('0x21de')](_0x3c6384('0x1bd8'))?_0x236a9c()['catch'](function(_0xcb5a47){var _0xd5cb76=_0x3c6384;_0x2b6b0a[_0xd5cb76('0x2092')]({'title':_0xcb5a47[_0xd5cb76('0x209')]?_0xd5cb76('0x22d')+_0xcb5a47[_0xd5cb76('0x209')]+_0xd5cb76('0xa99')+_0xcb5a47[_0xd5cb76('0x1808')]:_0xd5cb76('0x1381'),'msg':_0xcb5a47[_0xd5cb76('0x209')]?JSON[_0xd5cb76('0x25e')](_0xcb5a47[_0xd5cb76('0x11c2')]):_0xcb5a47[_0xd5cb76('0x174f')]()});}):_0x556eb5()[_0x3c6384('0x21ad')](function(_0x5bfe04){var _0xaa342c=_0x3c6384;return _0x12f9eb[_0xaa342c('0x26ad')]=_0x5bfe04,_0x236a9c();})['catch'](function(_0x1df360){var _0x555fd8=_0x3c6384;_0x2b6b0a[_0x555fd8('0x2092')]({'title':_0x1df360[_0x555fd8('0x209')]?_0x555fd8('0x22d')+_0x1df360[_0x555fd8('0x209')]+_0x555fd8('0xa99')+_0x1df360['statusText']:'SYSTEM:GET_AGENTS','msg':_0x1df360[_0x555fd8('0x209')]?JSON[_0x555fd8('0x25e')](_0x1df360[_0x555fd8('0x11c2')]):_0x1df360[_0x555fd8('0x174f')]()});});}function _0x556eb5(){return _0x3316f3(function(_0x2b847b,_0x252b72){var _0x7491da=a0_0x2e7f;_0x4cf05b[_0x7491da('0xab4')][_0x7491da('0x595')]({'userProfileId':_0x12f9eb['currentUser'][_0x7491da('0x1618')],'name':_0x7491da('0xfed')})['$promise'][_0x7491da('0x21ad')](function(_0x596f8f){var _0x35f162=_0x7491da,_0x1a741d=_0x596f8f&&_0x596f8f[_0x35f162('0x1b33')]?_0x596f8f['rows'][0x0]:null;_0x2b847b(_0x1a741d);})[_0x7491da('0x1c1d')](function(_0x3a1764){_0x252b72(_0x3a1764);});});}function _0x236a9c(){return _0x3316f3(function(_0x33a17f,_0x42cb1e){var _0x601f2f=a0_0x2e7f;return _0x1a6ebc()[_0x601f2f('0x21ad')](function(_0x4019ae){var _0x3e7c1f=_0x601f2f;return _0x12f9eb[_0x3e7c1f('0x1b9a')]=_0x4019ae[_0x3e7c1f('0x1b33')]?_0x4019ae[_0x3e7c1f('0x1b33')]:[],_0x5dbf5f[_0x3e7c1f('0x21de')](_0x3e7c1f('0x1bd8'))?_0x4019ae:_0x12f9eb['section']?_0x12f9eb[_0x3e7c1f('0x26ad')][_0x3e7c1f('0x80c')]?_0x4019ae:_0x1c2207():null;})['then'](function(_0xb1e7ca){var _0x3db76e=_0x601f2f,_0x28c60f=_0xb1e7ca&&_0xb1e7ca[_0x3db76e('0x1b33')]?_0xb1e7ca[_0x3db76e('0x1b33')]:[];return _0x12f9eb[_0x3db76e('0x1e09')]=_0x86640f()[_0x3db76e('0x26c3')](_0x28c60f,function(_0x3b1f1f){var _0x3d57b9=_0x3db76e;return _0x86640f()[_0x3d57b9('0x1d2e')](_0x12f9eb['items'],{'id':_0x5dbf5f[_0x3d57b9('0x21de')]('admin')||_0x12f9eb[_0x3d57b9('0x26ad')][_0x3d57b9('0x80c')]?_0x3b1f1f['id']:_0x3b1f1f[_0x3d57b9('0x675')]});}),_0x12f9eb[_0x3db76e('0x91b')]=angular[_0x3db76e('0xd75')](_0x12f9eb[_0x3db76e('0x1e09')]),_0x12f9eb[_0x3db76e('0x1b9a')][_0x3db76e('0x1a52')](function(_0x53edb2){var _0x2a6990=_0x3db76e,_0xf9eca4=_0x86640f()['find'](_0x12f9eb[_0x2a6990('0x1e09')],{'id':_0x53edb2['id']});_0x5dbf5f[_0x2a6990('0x21de')](_0x2a6990('0x1bd8'))?_0x53edb2[_0x2a6990('0x118b')]=!![]:_0x53edb2[_0x2a6990('0x118b')]=typeof _0xf9eca4!==_0x2a6990('0xddc')?!![]:![];}),_0x4a37f3();})[_0x601f2f('0x21ad')](function(_0x125bba){var _0x137e94=_0x601f2f,_0xecaef1=_0x125bba&&_0x125bba['rows']?_0x125bba[_0x137e94('0x1b33')]:[];_0x12f9eb['selectedItems']=_0x86640f()[_0x137e94('0x26c3')](_0xecaef1,function(_0x5489d3){var _0x2006f6=_0x137e94,_0x113873=_0x86640f()[_0x2006f6('0x1d2e')](_0x12f9eb[_0x2006f6('0x1b9a')],{'id':_0x5489d3['id']});return _0x113873[_0x2006f6('0x1195')]=_0x5489d3[_0x2006f6('0xb5e')]?_0x2006f6('0x5c2')+_0x5489d3[_0x2006f6('0xb5e')][_0x2006f6('0x1195')]:'',_0x113873[_0x2006f6('0x201f')]=typeof _0x5489d3[_0x2006f6('0x201f')]!==_0x2006f6('0xddc')?'<'+_0x5489d3[_0x2006f6('0x201f')]+'>':'',_0x113873;}),_0x12f9eb[_0x137e94('0x2584')]=angular['copy'](_0x12f9eb[_0x137e94('0x2629')]),_0x12f9eb[_0x137e94('0x909')][_0x137e94('0x2629')]=_0x12f9eb['selectedItems'],_0x12f9eb['dualMultiselectOptions'][_0x137e94('0x1b9a')]=_0x86640f()[_0x137e94('0x1eab')](_0x12f9eb[_0x137e94('0x1e09')],_0x12f9eb[_0x137e94('0x909')][_0x137e94('0x2629')],'id'),_0x33a17f();})[_0x601f2f('0x1c1d')](function(_0x1569c3){_0x42cb1e(_0x1569c3);});});}function _0x1c2207(){return _0x3316f3(function(_0x355d3a,_0x1f1d79){var _0x14f9dc=a0_0x2e7f;return _0x4cf05b[_0x14f9dc('0x185e')]['get']({'sectionId':_0x12f9eb[_0x14f9dc('0x26ad')]['id'],'nolimit':!![]})[_0x14f9dc('0x1376')][_0x14f9dc('0x21ad')](function(_0x234109){_0x355d3a(_0x234109);})['catch'](function(_0x1e37d0){_0x1f1d79(_0x1e37d0);});});}function _0x4a37f3(){return _0x3316f3(function(_0x72625e,_0x12ce96){var _0x375cbc=a0_0x2e7f;return _0x4cf05b[_0x375cbc('0x754')]['getAgents']({'id':_0x12f9eb[_0x375cbc('0x754')]['id'],'fields':_0x375cbc('0x1eea'),'nolimit':!![],'role':_0x375cbc('0x2402')})['$promise'][_0x375cbc('0x21ad')](function(_0x1299d2){_0x72625e(_0x1299d2);})['catch'](function(_0xaea86a){_0x12ce96(_0xaea86a);});});}function _0x1a6ebc(){return _0x3316f3(function(_0x12be41,_0x800f3b){var _0x4a9a85=a0_0x2e7f;return _0x4cf05b[_0x4a9a85('0x1775')][_0x4a9a85('0x595')]({'fields':_0x4a9a85('0x1eea'),'nolimit':!![],'role':_0x4a9a85('0x2402')})[_0x4a9a85('0x1376')][_0x4a9a85('0x21ad')](function(_0x48d64e){_0x12be41(_0x48d64e);})[_0x4a9a85('0x1c1d')](function(_0x42962f){_0x800f3b(_0x42962f);});});}function _0x50dbdc(_0x57da94){return _0x3316f3(function(_0x5369ec,_0x52d7bf){var _0x72d34f=a0_0x2e7f;_0x86640f()[_0x72d34f('0x23aa')](_0x57da94)?_0x5369ec():_0x4cf05b[_0x72d34f('0x754')][_0x72d34f('0x1116')]({'id':_0x12f9eb['smsQueue']['id'],'ids':_0x86640f()['map'](_0x57da94,'id')})[_0x72d34f('0x1376')][_0x72d34f('0x21ad')](function(){_0x5369ec();})[_0x72d34f('0x1c1d')](function(_0x4c334d){_0x52d7bf(_0x4c334d);});});}function _0x192ba3(_0x59695d){return _0x3316f3(function(_0x7d52af,_0xd4a0aa){var _0x22abf3=a0_0x2e7f;_0x86640f()[_0x22abf3('0x23aa')](_0x59695d)?_0x7d52af():_0x4cf05b[_0x22abf3('0x754')][_0x22abf3('0x59e')]({'id':_0x12f9eb[_0x22abf3('0x754')]['id'],'ids':_0x86640f()[_0x22abf3('0x26c3')](_0x59695d,'id')})[_0x22abf3('0x1376')][_0x22abf3('0x21ad')](function(){_0x7d52af();})[_0x22abf3('0x1c1d')](function(_0xd0be24){_0xd4a0aa(_0xd0be24);});});}function _0x4b2447(){var _0x295fef=_0x142209,_0x170817=_0x86640f()[_0x295fef('0x1eab')](_0x12f9eb['startingSelectedItems'],_0x12f9eb['selectedItems'],'id'),_0x29aede=_0x86640f()[_0x295fef('0x1eab')](_0x12f9eb[_0x295fef('0x2629')],_0x12f9eb[_0x295fef('0x2584')],'id');return _0x192ba3(_0x170817)[_0x295fef('0x21ad')](function(){return _0x50dbdc(_0x29aede);})[_0x295fef('0x21ad')](function(){var _0x43e21c=_0x295fef;_0x12f9eb[_0x43e21c('0x1bb9')]=![],_0x12f9eb[_0x43e21c('0x91b')]=angular[_0x43e21c('0xd75')](_0x12f9eb[_0x43e21c('0x1e09')]),_0x12f9eb[_0x43e21c('0x2584')]=angular[_0x43e21c('0xd75')](_0x12f9eb[_0x43e21c('0x2629')]),_0x2b6b0a[_0x43e21c('0xdb1')]({'title':_0x43e21c('0x2804'),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})['catch'](function(_0x2ed843){var _0x293838=_0x295fef;_0x2b6b0a['error']({'title':_0x2ed843[_0x293838('0x209')]?'API:'+_0x2ed843[_0x293838('0x209')]+'\x20-\x20'+_0x2ed843[_0x293838('0x1808')]:_0x293838('0x1dd7'),'msg':_0x2ed843[_0x293838('0x209')]?JSON[_0x293838('0x25e')](_0x2ed843['data']):_0x2ed843[_0x293838('0x174f')]()});});}function _0x43662d(){var _0x4eadbd=_0x142209;_0x2252c6[_0x4eadbd('0x1c24')]();}}const _0x82e498=_0x579068;_0x41d672[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x754'),_0x3877e3('0x13c1'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x41d672(_0x4ae3ff,_0x28bb32,_0x3f7988,_0x5f14fe,_0x3ee5d9,_0x3f1469,_0x5c47be,_0x80687a){var _0x3a22cd=_0x3877e3,_0x274b54=this;_0x274b54[_0x3a22cd('0x123f')]=_0x5c47be[_0x3a22cd('0x15ed')](),_0x274b54[_0x3a22cd('0x754')]=_0x3ee5d9,_0x274b54[_0x3a22cd('0x5ed')]=_0x80687a,_0x274b54['items']=[],_0x274b54[_0x3a22cd('0x1e09')]=[],_0x274b54['selectedItems']=[],_0x274b54[_0x3a22cd('0x91b')]=[],_0x274b54[_0x3a22cd('0x2584')]=[],_0x274b54['pendingChanges']=![],_0x274b54[_0x3a22cd('0x909')]={'readOnly':!_0x274b54[_0x3a22cd('0x5ed')]['canEdit'],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x3a22cd('0x19fe'),'line1':'name','line2':'','line3':'','labelAll':_0x3f1469[_0x3a22cd('0x183e')](_0x3a22cd('0x1620')),'labelSelected':_0x3f1469[_0x3a22cd('0x183e')](_0x3a22cd('0x2284')),'transferCallback':function _0x2bf07a(){var _0x328d9f=_0x3a22cd,_0x271873=_0x86640f()[_0x328d9f('0x1473')](_0x274b54['startingSelectedItems'],_0x274b54[_0x328d9f('0x2629')],'id');_0x274b54['pendingChanges']=_0x86640f()[_0x328d9f('0x23aa')](_0x271873)?![]:!![];}},_0x274b54[_0x3a22cd('0x1081')]=_0x1fc472,_0x274b54[_0x3a22cd('0x2359')]=_0x22c45c,_0x274b54[_0x3a22cd('0x167')]=_0x361364;function _0x1fc472(){var _0x15005d=_0x3a22cd;return _0x5c47be[_0x15005d('0x21de')]('admin')?_0x4ac556()[_0x15005d('0x1c1d')](function(_0x2b5e31){var _0x4e9c72=_0x15005d;_0x3f7988['error']({'title':_0x2b5e31[_0x4e9c72('0x209')]?_0x4e9c72('0x22d')+_0x2b5e31[_0x4e9c72('0x209')]+'\x20-\x20'+_0x2b5e31[_0x4e9c72('0x1808')]:_0x4e9c72('0x2479'),'msg':_0x2b5e31['status']?JSON[_0x4e9c72('0x25e')](_0x2b5e31[_0x4e9c72('0x11c2')]):_0x2b5e31['toString']()});}):_0x58bdca()['then'](function(_0x10054f){var _0x269d2e=_0x15005d;return _0x274b54[_0x269d2e('0x26ad')]=_0x10054f,_0x4ac556();})['catch'](function(_0x58c5ec){var _0x1463d1=_0x15005d;_0x3f7988['error']({'title':_0x58c5ec['status']?_0x1463d1('0x22d')+_0x58c5ec[_0x1463d1('0x209')]+'\x20-\x20'+_0x58c5ec[_0x1463d1('0x1808')]:_0x1463d1('0x2479'),'msg':_0x58c5ec[_0x1463d1('0x209')]?JSON[_0x1463d1('0x25e')](_0x58c5ec[_0x1463d1('0x11c2')]):_0x58c5ec[_0x1463d1('0x174f')]()});});}function _0x58bdca(){return _0x28bb32(function(_0x188f69,_0x4d5f61){var _0x2d8324=a0_0x2e7f;_0x5f14fe[_0x2d8324('0xab4')][_0x2d8324('0x595')]({'userProfileId':_0x274b54[_0x2d8324('0x123f')][_0x2d8324('0x1618')],'name':'Teams'})[_0x2d8324('0x1376')][_0x2d8324('0x21ad')](function(_0x516bd0){var _0xaa00a6=_0x2d8324,_0xa58fc1=_0x516bd0&&_0x516bd0['rows']?_0x516bd0[_0xaa00a6('0x1b33')][0x0]:null;_0x188f69(_0xa58fc1);})[_0x2d8324('0x1c1d')](function(_0x5954c2){_0x4d5f61(_0x5954c2);});});}function _0x4ac556(){return _0x28bb32(function(_0xe80858,_0x39a2ea){var _0x3cbf21=a0_0x2e7f;return _0x1b02a8()[_0x3cbf21('0x21ad')](function(_0x46ec21){var _0x112aa0=_0x3cbf21;return _0x274b54[_0x112aa0('0x1b9a')]=_0x46ec21[_0x112aa0('0x1b33')]?_0x46ec21[_0x112aa0('0x1b33')]:[],_0x5c47be[_0x112aa0('0x21de')]('admin')?_0x46ec21:_0x274b54[_0x112aa0('0x26ad')]?_0x274b54['section'][_0x112aa0('0x80c')]?_0x46ec21:_0x276591():null;})['then'](function(_0x1ca04c){var _0x3ade12=_0x3cbf21,_0x2a13bf=_0x1ca04c&&_0x1ca04c['rows']?_0x1ca04c['rows']:[];return _0x274b54[_0x3ade12('0x1e09')]=_0x86640f()[_0x3ade12('0x26c3')](_0x2a13bf,function(_0xb93ec3){var _0x216920=_0x3ade12;return _0x86640f()[_0x216920('0x1d2e')](_0x274b54[_0x216920('0x1b9a')],{'id':_0x5c47be[_0x216920('0x21de')](_0x216920('0x1bd8'))||_0x274b54[_0x216920('0x26ad')]['autoAssociation']?_0xb93ec3['id']:_0xb93ec3[_0x216920('0x675')]});}),_0x274b54[_0x3ade12('0x1b9a')][_0x3ade12('0x1a52')](function(_0x41d3f0){var _0xba608c=_0x3ade12,_0x40d249=_0x86640f()[_0xba608c('0x1d2e')](_0x274b54['allowedItems'],{'id':_0x41d3f0['id']});_0x5c47be[_0xba608c('0x21de')](_0xba608c('0x1bd8'))?_0x41d3f0[_0xba608c('0x118b')]=!![]:_0x41d3f0[_0xba608c('0x118b')]=typeof _0x40d249!==_0xba608c('0xddc')?!![]:![];}),_0x42294d();})[_0x3cbf21('0x21ad')](function(_0x40df58){var _0x20083a=_0x3cbf21,_0x140c4=_0x40df58&&_0x40df58[_0x20083a('0x1b33')]?_0x40df58[_0x20083a('0x1b33')]:[];_0x274b54[_0x20083a('0x2629')]=_0x86640f()[_0x20083a('0x26c3')](_0x140c4,function(_0x53b38f){var _0x4a4d9f=_0x20083a;return _0x86640f()[_0x4a4d9f('0x1d2e')](_0x274b54['items'],{'id':_0x53b38f['id']});}),_0x274b54['startingSelectedItems']=angular[_0x20083a('0xd75')](_0x274b54[_0x20083a('0x2629')]),_0x274b54['dualMultiselectOptions']['selectedItems']=_0x274b54[_0x20083a('0x2629')],_0x274b54[_0x20083a('0x909')]['items']=_0x86640f()[_0x20083a('0x1eab')](_0x274b54[_0x20083a('0x1e09')],_0x274b54[_0x20083a('0x909')][_0x20083a('0x2629')],'id'),_0xe80858();})[_0x3cbf21('0x1c1d')](function(_0x203d1d){_0x39a2ea(_0x203d1d);});});}function _0x276591(){return _0x28bb32(function(_0x4ee799,_0x30925d){var _0x13bfc8=a0_0x2e7f;return _0x5f14fe['userProfileResource'][_0x13bfc8('0x595')]({'sectionId':_0x274b54[_0x13bfc8('0x26ad')]['id'],'nolimit':!![]})[_0x13bfc8('0x1376')][_0x13bfc8('0x21ad')](function(_0xb2d037){_0x4ee799(_0xb2d037);})[_0x13bfc8('0x1c1d')](function(_0x34c485){_0x30925d(_0x34c485);});});}function _0x42294d(){return _0x28bb32(function(_0x376806,_0x13349a){var _0x55890d=a0_0x2e7f;return _0x5f14fe[_0x55890d('0x754')]['getTeams']({'id':_0x274b54[_0x55890d('0x754')]['id'],'fields':_0x55890d('0x1aa8'),'nolimit':!![]})[_0x55890d('0x1376')][_0x55890d('0x21ad')](function(_0x314998){_0x376806(_0x314998);})[_0x55890d('0x1c1d')](function(_0x1cf786){_0x13349a(_0x1cf786);});});}function _0x1b02a8(){return _0x28bb32(function(_0x45b89c,_0x5c6091){var _0x49d0f7=a0_0x2e7f;return _0x5f14fe[_0x49d0f7('0x1a9c')][_0x49d0f7('0x595')]({'fields':_0x49d0f7('0x1aa8'),'nolimit':!![]})[_0x49d0f7('0x1376')][_0x49d0f7('0x21ad')](function(_0x1e15ef){_0x45b89c(_0x1e15ef);})['catch'](function(_0x5d4210){_0x5c6091(_0x5d4210);});});}function _0x40b057(_0x4e4900){return _0x28bb32(function(_0x468eb5,_0x6b3007){var _0x3de535=a0_0x2e7f;_0x86640f()[_0x3de535('0x23aa')](_0x4e4900)?_0x468eb5():_0x5f14fe[_0x3de535('0x754')][_0x3de535('0x36c')]({'id':_0x274b54[_0x3de535('0x754')]['id'],'ids':_0x86640f()[_0x3de535('0x26c3')](_0x4e4900,'id')})['$promise']['then'](function(){_0x468eb5();})['catch'](function(_0x471799){_0x6b3007(_0x471799);});});}function _0x125cc7(_0x5a77d0){return _0x28bb32(function(_0x249c07,_0x5543b6){var _0x45c95a=a0_0x2e7f;_0x86640f()[_0x45c95a('0x23aa')](_0x5a77d0)?_0x249c07():_0x5f14fe[_0x45c95a('0x754')][_0x45c95a('0xbc7')]({'id':_0x274b54[_0x45c95a('0x754')]['id'],'ids':_0x86640f()[_0x45c95a('0x26c3')](_0x5a77d0,'id')})[_0x45c95a('0x1376')][_0x45c95a('0x21ad')](function(){_0x249c07();})[_0x45c95a('0x1c1d')](function(_0x6155a9){_0x5543b6(_0x6155a9);});});}function _0x22c45c(){var _0x2e49d0=_0x3a22cd,_0x2dee2f=_0x86640f()[_0x2e49d0('0x1eab')](_0x274b54[_0x2e49d0('0x2584')],_0x274b54[_0x2e49d0('0x2629')],'id'),_0xf3a2c0=_0x86640f()['differenceBy'](_0x274b54[_0x2e49d0('0x2629')],_0x274b54[_0x2e49d0('0x2584')],'id');return _0x125cc7(_0x2dee2f)[_0x2e49d0('0x21ad')](function(){return _0x40b057(_0xf3a2c0);})[_0x2e49d0('0x21ad')](function(){var _0x216fb7=_0x2e49d0;_0x274b54[_0x216fb7('0x1bb9')]=![],_0x274b54[_0x216fb7('0x91b')]=angular[_0x216fb7('0xd75')](_0x274b54['allowedItems']),_0x274b54[_0x216fb7('0x2584')]=angular[_0x216fb7('0xd75')](_0x274b54[_0x216fb7('0x2629')]),_0x3f7988[_0x216fb7('0xdb1')]({'title':_0x216fb7('0x2804'),'msg':_0x216fb7('0x4c8')});})[_0x2e49d0('0x1c1d')](function(_0x1de2ad){var _0xb7ff34=_0x2e49d0;_0x3f7988[_0xb7ff34('0x2092')]({'title':_0x1de2ad[_0xb7ff34('0x209')]?'API:'+_0x1de2ad[_0xb7ff34('0x209')]+_0xb7ff34('0xa99')+_0x1de2ad[_0xb7ff34('0x1808')]:_0xb7ff34('0x1dd7'),'msg':_0x1de2ad[_0xb7ff34('0x209')]?JSON[_0xb7ff34('0x25e')](_0x1de2ad[_0xb7ff34('0x11c2')]):_0x1de2ad[_0xb7ff34('0x174f')]()});});}function _0x361364(){_0x4ae3ff['hide']();}}const _0x4a7709=_0x41d672,_0x5c5796=_0x398308['p']+'src/js/modules/main/apps/sms/views/smsQueues/edit/teamadd/teamadd.html/teamadd-[chunkhash].html';_0x2657b9[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x13c1'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),'api',_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x754'),_0x3877e3('0xab4')];function _0x2657b9(_0x7a1e40,_0x2e5621,_0x42bc3c,_0x1dd66c,_0x246f1b,_0x2af08a,_0x751a01,_0x36dee8,_0x4d8027,_0xa3bce2,_0x44369d,_0x910578){var _0x5f4d65=_0x3877e3,_0x102c46=this;_0x102c46[_0x5f4d65('0x123f')]=_0xa3bce2['getCurrentUser'](),_0x102c46['license']=_0x2af08a,_0x102c46['setting']=_0x751a01,_0x102c46[_0x5f4d65('0x1432')]=_0x102c46[_0x5f4d65('0x21e')][_0x5f4d65('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x102c46[_0x5f4d65('0x626')]=_0x2e5621[_0x5f4d65('0x1162')]()+'://'+_0x2e5621[_0x5f4d65('0x1c01')](),_0x102c46['smsQueue']=_0x44369d||_0x7a1e40[_0x5f4d65('0x171b')][_0x5f4d65('0x754')]||{},_0x102c46[_0x5f4d65('0xab4')]=_0x910578&&_0x910578[_0x5f4d65('0x205f')]==0x1?_0x910578['rows'][0x0]:null,_0x102c46[_0x5f4d65('0x5ed')]=_0xa3bce2[_0x5f4d65('0x1778')](_0x102c46[_0x5f4d65('0xab4')]?_0x102c46[_0x5f4d65('0xab4')][_0x5f4d65('0x5ed')]:null),_0x102c46[_0x5f4d65('0x126a')]={},_0x102c46[_0x5f4d65('0x302')]=_0x7a1e40['params']['tab']||0x0,_0x102c46[_0x5f4d65('0x1111')]=_0x1a2768,_0x102c46[_0x5f4d65('0x1297')]=_0x2ad22e,_0x102c46['alert']=_0x4d8027[_0x5f4d65('0x231c')],_0x102c46[_0x5f4d65('0x1b82')]=_0x334cae,_0x102c46[_0x5f4d65('0xe0a')]=_0x44a57a;function _0x1a2768(_0x5b42cd,_0x38565e){var _0x407663=_0x5f4d65;_0x42bc3c[_0x407663('0x853')]({'controller':'SmsQueueteamaddController','controllerAs':'vm','templateUrl':_0x5c5796,'parent':angular[_0x407663('0x1676')](_0x1dd66c[_0x407663('0x2452')]),'targetEvent':_0x38565e,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x5b42cd,'smsQueues':_0x102c46['smsQueues']?_0x102c46[_0x407663('0x6ce')]['rows']:[],'crudPermissions':_0x102c46['crudPermissions']}});}function _0x2ad22e(_0x333dd2,_0x480fac){var _0x4b1859=_0x5f4d65;_0x42bc3c[_0x4b1859('0x853')]({'controller':'SmsQueueagentaddController','controllerAs':'vm','templateUrl':_0x36c7f6,'parent':angular[_0x4b1859('0x1676')](_0x1dd66c['body']),'targetEvent':_0x480fac,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x333dd2,'smsQueues':_0x102c46[_0x4b1859('0x6ce')]?_0x102c46[_0x4b1859('0x6ce')][_0x4b1859('0x1b33')]:[],'crudPermissions':_0x102c46[_0x4b1859('0x5ed')],'realtime':![]}});}function _0x334cae(){var _0x10c71b=_0x5f4d65;_0x7a1e40['go'](_0x10c71b('0xb4'),{},{'reload':_0x10c71b('0xb4')});}function _0x44a57a(){var _0x117267=_0x5f4d65;_0x36dee8[_0x117267('0x754')][_0x117267('0x5ef')]({'id':_0x102c46['smsQueue']['id']},_0x102c46[_0x117267('0x754')])[_0x117267('0x1376')][_0x117267('0x21ad')](function(){var _0x487a55=_0x117267;_0x4d8027['success']({'title':'SmsQueue\x20updated!','msg':_0x102c46[_0x487a55('0x754')][_0x487a55('0x19fe')]?_0x102c46['smsQueue'][_0x487a55('0x19fe')]+'\x20has\x20been\x20updated!':''});})[_0x117267('0x1c1d')](function(_0x48f898){var _0xe34e61=_0x117267;_0x4d8027[_0xe34e61('0x2092')]({'title':_0x48f898[_0xe34e61('0x209')]?_0xe34e61('0x22d')+_0x48f898[_0xe34e61('0x209')]+'\x20-\x20'+_0x48f898[_0xe34e61('0x1808')]:_0xe34e61('0x10bf'),'msg':_0x48f898[_0xe34e61('0x11c2')]?JSON[_0xe34e61('0x25e')](_0x48f898[_0xe34e61('0x11c2')]):_0x48f898[_0xe34e61('0x174f')]()});});}}const _0x99a165=_0x2657b9;_0x2392c9[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$window',_0x3877e3('0xa9f'),_0x3877e3('0x2828'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),'$timeout',_0x3877e3('0x13c1'),_0x3877e3('0x6ce'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),'toasty',_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x2392c9(_0x5dc51b,_0x3a2f2c,_0x50721f,_0x34a0df,_0xa1e0aa,_0x2bb1ab,_0x1aace9,_0x47fcc5,_0x2890e5,_0x57f3c4,_0x3b916a,_0x54ec34,_0x56fa21,_0x3dbfb7,_0x428432,_0x2e81f2,_0x3265e3){var _0x3dc4e1=_0x3877e3,_0x3e3d0d=this;_0x3e3d0d[_0x3dc4e1('0x2ff')]=_0x2e81f2,_0x3e3d0d[_0x3dc4e1('0x21e')]=_0x3265e3,_0x3e3d0d[_0x3dc4e1('0x123f')]=_0x428432[_0x3dc4e1('0x15ed')](),_0x3e3d0d[_0x3dc4e1('0x6ce')]=_0x2890e5||{'count':0x0,'rows':[]},_0x3e3d0d[_0x3dc4e1('0x758')]=_0x57f3c4,_0x3e3d0d['userProfileSection']=_0x3b916a&&_0x3b916a[_0x3dc4e1('0x205f')]==0x1?_0x3b916a[_0x3dc4e1('0x1b33')][0x0]:null,_0x3e3d0d[_0x3dc4e1('0x5ed')]=_0x428432[_0x3dc4e1('0x1778')](_0x3e3d0d['userProfileSection']?_0x3e3d0d[_0x3dc4e1('0xab4')][_0x3dc4e1('0x5ed')]:null),_0x3e3d0d['table']='smsQueues',_0x3e3d0d[_0x3dc4e1('0x11dc')]='',_0x3e3d0d[_0x3dc4e1('0x18cf')]=null,_0x3e3d0d[_0x3dc4e1('0x56e')]=[],_0x3e3d0d['query']={'fields':_0x3dc4e1('0x87f'),'sort':'-updatedAt','channel':_0x3dc4e1('0x3d0'),'limit':0xa,'page':0x1},_0x3e3d0d[_0x3dc4e1('0x556')]=_0x86640f()[_0x3dc4e1('0xcde')]([{'option':'Beepall','value':_0x3dc4e1('0x11a3')},{'option':_0x3dc4e1('0x1106'),'value':_0x3dc4e1('0xa6b')}],function(_0x5f4efe){var _0x14c2bc=_0x3dc4e1;return _0x86640f()[_0x14c2bc('0x16e4')](_0x5f4efe[_0x14c2bc('0x2228')],new RegExp('\x27','g'),'');}),_0x3e3d0d[_0x3dc4e1('0x1c88')]=_0x2e2820,_0x3e3d0d[_0x3dc4e1('0x1111')]=_0x493fc2,_0x3e3d0d[_0x3dc4e1('0x1297')]=_0x8382bf,_0x3e3d0d['deleteconfirm']=_0x4e8ca5,_0x3e3d0d[_0x3dc4e1('0x1db4')]=_0x576cb0,_0x3e3d0d[_0x3dc4e1('0xdb1')]=_0x3ebe0e,_0x3e3d0d[_0x3dc4e1('0x12fb')]=_0x105c17,_0x3e3d0d['createOrEditSmsQueue']=_0x2258ad,_0x3e3d0d[_0x3dc4e1('0xb16')]=_0x47b8a8,_0x3e3d0d[_0x3dc4e1('0xa1e')]=_0x1ecc49,_0x3e3d0d[_0x3dc4e1('0x2845')]=_0x18cdaa,_0x3e3d0d[_0x3dc4e1('0xbdb')]=_0x204080,_0x3e3d0d[_0x3dc4e1('0x2010')]=_0xb49e15;function _0x2e2820(_0x52f9b4){var _0x46ed5c=_0x3dc4e1;_0x50721f['go'](_0x46ed5c('0x18bc'),{'id':_0x52f9b4['id'],'smsQueue':_0x52f9b4,'crudPermissions':_0x3e3d0d[_0x46ed5c('0x5ed')]});}function _0x493fc2(_0x360ea7,_0x756074){var _0x5b013f=_0x3dc4e1;_0xa1e0aa[_0x5b013f('0x853')]({'controller':'SmsQueueteamaddController','controllerAs':'vm','templateUrl':_0x5c5796,'parent':angular[_0x5b013f('0x1676')](_0x2bb1ab['body']),'targetEvent':_0x756074,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x360ea7,'smsQueues':_0x3e3d0d[_0x5b013f('0x6ce')]?_0x3e3d0d[_0x5b013f('0x6ce')]['rows']:[],'crudPermissions':_0x3e3d0d[_0x5b013f('0x5ed')]}});}function _0x8382bf(_0x1824a7,_0x506de6){var _0x359015=_0x3dc4e1;_0xa1e0aa[_0x359015('0x853')]({'controller':'SmsQueueagentaddController','controllerAs':'vm','templateUrl':_0x36c7f6,'parent':angular[_0x359015('0x1676')](_0x2bb1ab[_0x359015('0x2452')]),'targetEvent':_0x506de6,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x1824a7,'smsQueues':_0x3e3d0d['smsQueues']?_0x3e3d0d[_0x359015('0x6ce')][_0x359015('0x1b33')]:[],'crudPermissions':_0x3e3d0d[_0x359015('0x5ed')],'realtime':![]}});}function _0x4e8ca5(_0x52a887,_0x5cce3d){var _0x730267=_0x3dc4e1,_0xeecea1=_0xa1e0aa[_0x730267('0xa33')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x86640f()[_0x730267('0x2159')]('smsQueue')+'?')['htmlContent'](''+(_0x52a887['name']||_0x730267('0x754'))+''+_0x730267('0x25e0'))[_0x730267('0x7a7')](_0x730267('0x41f'))['targetEvent'](_0x5cce3d)['ok']('OK')[_0x730267('0x3b5')]('CANCEL');_0xa1e0aa[_0x730267('0x853')](_0xeecea1)[_0x730267('0x21ad')](function(){_0x47b8a8(_0x52a887);},function(){var _0x51c1c0=_0x730267;console[_0x51c1c0('0x6fb')](_0x51c1c0('0x284b'));});}function _0x576cb0(){var _0x53e5c7=_0x3dc4e1;if(_0x428432['hasRole'](_0x53e5c7('0x1bd8')))_0x50721f['go'](_0x53e5c7('0x96e'),{});else return _0x54ec34[_0x53e5c7('0xab4')][_0x53e5c7('0x595')]({'userProfileId':_0x428432[_0x53e5c7('0x15ed')]()[_0x53e5c7('0x1618')],'sectionId':0x2c6})[_0x53e5c7('0x1376')]['then'](function(_0x533e70){var _0x5342b9=_0x53e5c7,_0xdd53fa=_0x533e70&&_0x533e70[_0x5342b9('0x1b33')]?_0x533e70[_0x5342b9('0x1b33')][0x0]:null;_0xdd53fa&&_0xdd53fa['enabled']?_0x50721f['go']('app.sms.realtime.queues',{}):_0x3dbfb7[_0x5342b9('0x231c')]({'title':_0x47fcc5[_0x5342b9('0x183e')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x47fcc5[_0x5342b9('0x183e')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x53e5c7('0x1c1d')](function(_0xe9501a){var _0x48ddf4=_0x53e5c7;_0x3dbfb7[_0x48ddf4('0x2092')]({'title':_0xe9501a[_0x48ddf4('0x209')]?_0x48ddf4('0x22d')+_0xe9501a[_0x48ddf4('0x209')]+_0x48ddf4('0xa99')+_0xe9501a[_0x48ddf4('0x1808')]:_0x48ddf4('0xb8'),'msg':_0xe9501a[_0x48ddf4('0x209')]?JSON['stringify'](_0xe9501a[_0x48ddf4('0x11c2')]):_0xe9501a[_0x48ddf4('0x174f')]()});});}var _0x1a1d9e=!![],_0x24a601=0x1;_0x5dc51b[_0x3dc4e1('0x10e8')](_0x3dc4e1('0x1948'),function(_0x132a4e,_0x3a1eb8){var _0x1da7c1=_0x3dc4e1;_0x1a1d9e?_0x1aace9(function(){_0x1a1d9e=![];}):(!_0x3a1eb8&&(_0x24a601=_0x3e3d0d[_0x1da7c1('0x77')]['page']),_0x132a4e!==_0x3a1eb8&&(_0x3e3d0d[_0x1da7c1('0x77')][_0x1da7c1('0x2376')]=0x1),!_0x132a4e&&(_0x3e3d0d[_0x1da7c1('0x77')][_0x1da7c1('0x2376')]=_0x24a601),_0x3e3d0d[_0x1da7c1('0x12fb')]());});function _0x3ebe0e(_0x2c3c00){var _0x2ce3df=_0x3dc4e1;_0x3e3d0d[_0x2ce3df('0x6ce')]=_0x2c3c00||{'count':0x0,'rows':[]};}function _0x105c17(){var _0x1ab501=_0x3dc4e1;_0x3e3d0d[_0x1ab501('0x77')][_0x1ab501('0x15a5')]=(_0x3e3d0d['query'][_0x1ab501('0x2376')]-0x1)*_0x3e3d0d[_0x1ab501('0x77')][_0x1ab501('0x1f4a')],_0x428432['hasRole'](_0x1ab501('0x1bd8'))?_0x3e3d0d[_0x1ab501('0x71b')]=_0x54ec34[_0x1ab501('0x754')][_0x1ab501('0x595')](_0x3e3d0d[_0x1ab501('0x77')],_0x3ebe0e)[_0x1ab501('0x1376')]:(_0x3e3d0d[_0x1ab501('0x77')]['id']=_0x3e3d0d[_0x1ab501('0x758')]['id'],_0x3e3d0d[_0x1ab501('0x77')][_0x1ab501('0x26ad')]='SmsQueues',_0x3e3d0d[_0x1ab501('0x71b')]=_0x54ec34[_0x1ab501('0x758')][_0x1ab501('0x321')](_0x3e3d0d[_0x1ab501('0x77')],_0x3ebe0e)[_0x1ab501('0x1376')]);}function _0x2258ad(_0x232019,_0x5dcf2c){var _0x129f86=_0x3dc4e1;_0xa1e0aa[_0x129f86('0x853')]({'controller':_0x129f86('0xdd7'),'controllerAs':'vm','templateUrl':_0x4d1172,'parent':angular[_0x129f86('0x1676')](_0x2bb1ab['body']),'targetEvent':_0x232019,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x5dcf2c,'smsQueues':_0x3e3d0d[_0x129f86('0x6ce')][_0x129f86('0x1b33')],'license':_0x3e3d0d[_0x129f86('0x2ff')],'setting':_0x3e3d0d[_0x129f86('0x21e')],'crudPermissions':_0x3e3d0d[_0x129f86('0x5ed')]}});}function _0x47b8a8(_0x33b9c1){var _0x1d4658=_0x3dc4e1;_0x54ec34[_0x1d4658('0x754')][_0x1d4658('0x1164')]({'id':_0x33b9c1['id']})[_0x1d4658('0x1376')][_0x1d4658('0x21ad')](function(){var _0x490fa6=_0x1d4658;_0x86640f()['remove'](_0x3e3d0d['smsQueues'][_0x490fa6('0x1b33')],{'id':_0x33b9c1['id']}),_0x3e3d0d[_0x490fa6('0x6ce')][_0x490fa6('0x205f')]-=0x1,!_0x3e3d0d[_0x490fa6('0x6ce')][_0x490fa6('0x1b33')][_0x490fa6('0x577')]&&_0x3e3d0d['getSmsQueues'](),_0x3dbfb7[_0x490fa6('0xdb1')]({'title':_0x86640f()['startCase'](_0x490fa6('0x583'))+_0x490fa6('0xe64'),'msg':_0x33b9c1[_0x490fa6('0x19fe')]?_0x33b9c1[_0x490fa6('0x19fe')]+_0x490fa6('0xb4a'):''});})[_0x1d4658('0x1c1d')](function(_0x2f28f7){var _0x24c838=_0x1d4658;if(_0x2f28f7[_0x24c838('0x11c2')]&&_0x2f28f7[_0x24c838('0x11c2')][_0x24c838('0x1a69')]&&_0x2f28f7[_0x24c838('0x11c2')][_0x24c838('0x1a69')][_0x24c838('0x577')]){_0x3e3d0d['errors']=_0x2f28f7['data'][_0x24c838('0x1a69')]||[{'message':_0x2f28f7[_0x24c838('0x174f')](),'type':_0x24c838('0x777')}];for(var _0x2bb747=0x0;_0x2bb747<_0x2f28f7[_0x24c838('0x11c2')][_0x24c838('0x1a69')]['length'];_0x2bb747++){_0x3dbfb7[_0x24c838('0x2092')]({'title':_0x2f28f7[_0x24c838('0x11c2')]['errors'][_0x2bb747][_0x24c838('0x7fa')],'msg':_0x2f28f7[_0x24c838('0x11c2')][_0x24c838('0x1a69')][_0x2bb747][_0x24c838('0x1224')]});}}else _0x3dbfb7[_0x24c838('0x2092')]({'title':_0x2f28f7[_0x24c838('0x209')]?'API:'+_0x2f28f7[_0x24c838('0x209')]+_0x24c838('0xa99')+_0x2f28f7[_0x24c838('0x1808')]:_0x24c838('0x777'),'msg':_0x2f28f7['data']?JSON[_0x24c838('0x25e')](_0x2f28f7[_0x24c838('0x11c2')][_0x24c838('0x1224')]):_0x2f28f7[_0x24c838('0x1224')]||_0x2f28f7['toString']()});});}function _0x1ecc49(){var _0x3ec612=_0x3dc4e1,_0x3abb7c=angular['copy'](_0x3e3d0d[_0x3ec612('0x56e')]);return _0x3e3d0d[_0x3ec612('0x56e')]=[],_0x3abb7c;}function _0x18cdaa(_0x481496){var _0x18a3ad=_0x3dc4e1,_0x4f2e32=_0xa1e0aa[_0x18a3ad('0xa33')]()[_0x18a3ad('0x4b4')](_0x18a3ad('0x1e07'))[_0x18a3ad('0x276b')](_0x18a3ad('0x622')+_0x3e3d0d[_0x18a3ad('0x56e')]['length']+'\x20selected'+_0x18a3ad('0x25e0'))[_0x18a3ad('0x7a7')](_0x18a3ad('0x1e3'))[_0x18a3ad('0x1e6d')](_0x481496)['ok']('OK')[_0x18a3ad('0x3b5')](_0x18a3ad('0x284b'));_0xa1e0aa[_0x18a3ad('0x853')](_0x4f2e32)['then'](function(){var _0x350a5a=_0x18a3ad;_0x3e3d0d['selectedSmsQueues'][_0x350a5a('0x1a52')](function(_0x3799fc){_0x47b8a8(_0x3799fc);}),_0x3e3d0d[_0x350a5a('0x56e')]=[];});}function _0x204080(){var _0x362860=_0x3dc4e1;_0x3e3d0d[_0x362860('0x56e')]=[];}function _0xb49e15(){var _0x307981=_0x3dc4e1;_0x3e3d0d[_0x307981('0x56e')]=_0x3e3d0d[_0x307981('0x6ce')]['rows'];}}const _0x19c101=_0x2392c9;_0x4997d7[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c'),_0x3877e3('0x972')];function _0x4997d7(_0x25c1f9,_0x36fa09){var _0x4cfe73=_0x3877e3;_0x25c1f9[_0x4cfe73('0x27e')]('app.sms',{'abstract':!![],'url':_0x4cfe73('0x21e4')})[_0x4cfe73('0x27e')](_0x4cfe73('0xb4'),{'url':_0x4cfe73('0x1133'),'views':{'content@app':{'templateUrl':_0x24a3d8,'controller':_0x4cfe73('0x1b3c')}},'resolve':{'smsQueues':[_0x4cfe73('0x354'),_0x4cfe73('0x15bc'),function _0x382455(_0x4318c8,_0x348dd6){var _0x51e060=_0x4cfe73;return _0x348dd6['hasRole'](_0x51e060('0x1bd8'))?_0x4318c8[_0x51e060('0x8ac')](_0x51e060('0x2793'),{'fields':_0x51e060('0x87f'),'sort':_0x51e060('0x33'),'channel':_0x51e060('0x3d0'),'limit':0xa,'offset':0x0}):_0x4318c8[_0x51e060('0x8ac')]('userProfile@getResources',{'id':_0x348dd6[_0x51e060('0x15ed')]()['userProfileId'],'section':_0x51e060('0x280a'),'fields':_0x51e060('0x87f'),'sort':_0x51e060('0x33'),'channel':_0x51e060('0x3d0'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4cfe73('0x354'),_0x4cfe73('0x15bc'),function _0x49464b(_0x2528dc,_0x607c62){var _0x59c821=_0x4cfe73;return _0x607c62['hasRole'](_0x59c821('0x1bd8'))?null:_0x2528dc[_0x59c821('0x8ac')](_0x59c821('0x1e1d'),{'fields':'id,name,crudPermissions','id':_0x607c62[_0x59c821('0x15ed')]()[_0x59c821('0x1618')]});}],'userProfileSection':[_0x4cfe73('0x354'),_0x4cfe73('0x15bc'),function _0x3937ac(_0x5ec384,_0x518653){var _0x1a13fa=_0x4cfe73;return _0x518653['hasRole']('admin')?null:_0x5ec384[_0x1a13fa('0x8ac')](_0x1a13fa('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x518653['getCurrentUser']()[_0x1a13fa('0x1618')],'sectionId':0x2bd});}]},'authenticate':!![],'permissionId':0x2bd,'bodyClass':_0x4cfe73('0x3d0')})[_0x4cfe73('0x27e')](_0x4cfe73('0x18bc'),{'url':_0x4cfe73('0x17f5'),'params':{'smsQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x47faea,'controller':_0x4cfe73('0xe3d')}},'resolve':{'smsQueue':['apiResolver',_0x4cfe73('0x114e'),function _0x37d5ec(_0x151e00,_0x30117c){var _0x344cb5=_0x4cfe73;return _0x151e00[_0x344cb5('0x8ac')](_0x344cb5('0x2793'),{'fields':_0x344cb5('0x87f'),'id':_0x30117c['id']});}],'userProfileSection':['apiResolver',_0x4cfe73('0x15bc'),function _0x4faad0(_0x9ac7c7,_0x312901){var _0x305a7d=_0x4cfe73;return _0x9ac7c7[_0x305a7d('0x8ac')](_0x305a7d('0x222f'),{'fields':_0x305a7d('0x1852'),'userProfileId':_0x312901['getCurrentUser']()[_0x305a7d('0x1618')],'sectionId':0x2bd});}]},'authenticate':!![],'permissionId':0x2bd,'bodyClass':_0x4cfe73('0x3d0')})['state'](_0x4cfe73('0xf84'),{'url':'/smsAccounts','views':{'content@app':{'templateUrl':_0x1ac032,'controller':_0x4cfe73('0xb70')}},'resolve':{'smsAccounts':[_0x4cfe73('0x354'),_0x4cfe73('0x15bc'),function _0x2821b3(_0x23e190,_0x1421cc){var _0x30e840=_0x4cfe73;return _0x1421cc[_0x30e840('0x21de')]('admin')?_0x23e190[_0x30e840('0x8ac')](_0x30e840('0x6c3'),{'fields':_0x30e840('0x23da'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x23e190[_0x30e840('0x8ac')](_0x30e840('0x52f'),{'id':_0x1421cc[_0x30e840('0x15ed')]()[_0x30e840('0x1618')],'section':'SmsAccounts','fields':_0x30e840('0x23da'),'sort':_0x30e840('0x33'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4cfe73('0x354'),_0x4cfe73('0x15bc'),function _0x5d6c57(_0x51b459,_0x5bb452){var _0x51b6c7=_0x4cfe73;return _0x5bb452[_0x51b6c7('0x21de')](_0x51b6c7('0x1bd8'))?null:_0x51b459['resolve']('userProfile@get',{'fields':_0x51b6c7('0x1a00'),'id':_0x5bb452[_0x51b6c7('0x15ed')]()[_0x51b6c7('0x1618')]});}],'userProfileSection':[_0x4cfe73('0x354'),_0x4cfe73('0x15bc'),function _0xeb6ebc(_0x27b64b,_0x3f15b0){var _0x454818=_0x4cfe73;return _0x3f15b0['hasRole']('admin')?null:_0x27b64b['resolve'](_0x454818('0x222f'),{'fields':_0x454818('0x1852'),'userProfileId':_0x3f15b0[_0x454818('0x15ed')]()['userProfileId'],'sectionId':0x2be});}]},'authenticate':!![],'permissionId':0x2be,'bodyClass':_0x4cfe73('0x3d0')})['state'](_0x4cfe73('0xf41'),{'url':_0x4cfe73('0x17f5'),'params':{'smsAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x48be6f,'controller':_0x4cfe73('0x2513')}},'resolve':{'smsAccount':[_0x4cfe73('0x354'),'$stateParams',function _0x8ff081(_0x321f7b,_0x17869a){var _0x23b998=_0x4cfe73;return _0x321f7b[_0x23b998('0x8ac')](_0x23b998('0x6c3'),{'fields':'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','id':_0x17869a['id']});}],'userProfileSection':[_0x4cfe73('0x354'),_0x4cfe73('0x15bc'),function _0x4e37b8(_0x2c625f,_0x4d1707){var _0x4b0eb7=_0x4cfe73;return _0x2c625f['resolve'](_0x4b0eb7('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x4d1707[_0x4b0eb7('0x15ed')]()[_0x4b0eb7('0x1618')],'sectionId':0x2be});}]},'authenticate':!![],'permissionId':0x2be,'bodyClass':'sms'}),_0x36fa09[_0x4cfe73('0x20ab')](_0x4cfe73('0x24c3'));}angular[_0x3877e3('0x20d5')](_0x3877e3('0x652'),['ngCsv','ngPassword',_0x3877e3('0xca'),_0x3877e3('0x1d76'),_0x3877e3('0x2437'),_0x3877e3('0x25c7'),_0x3877e3('0x1182'),'ngAria',_0x3877e3('0x19'),_0x3877e3('0x335'),_0x3877e3('0xc90'),'mwFormViewer',_0x3877e3('0xe2f'),_0x3877e3('0x10c'),_0x3877e3('0xf61'),_0x3877e3('0xe39'),_0x3877e3('0x25a2'),_0x3877e3('0x27ba'),_0x3877e3('0x9e0'),_0x3877e3('0x1c54'),_0x3877e3('0x288')])[_0x3877e3('0x13')](_0x4997d7)[_0x3877e3('0x1d5a')]('CreateOrEditSmsAccountDialogController',_0x49b28a)['controller'](_0x3877e3('0xae1'),_0x12ff64)['controller'](_0x3877e3('0x22a1'),_0x593059)[_0x3877e3('0x1d5a')]('EditSmsAccountAppagentDialogController',_0x446266)[_0x3877e3('0x1d5a')]('EditSmsAccountAppamazonlexDialogController',_0x5e1bb3)[_0x3877e3('0x1d5a')]('EditSmsAccountAppautoreplyDialogController',_0x3f2b51)[_0x3877e3('0x1d5a')]('EditSmsAccountAppcloseDialogController',_0x21496f)['controller'](_0x3877e3('0x146e'),_0x424976)[_0x3877e3('0x1d5a')]('EditSmsAccountAppgotoifDialogController',_0x24570c)['controller'](_0x3877e3('0x145b'),_0x19f37c)[_0x3877e3('0x1d5a')]('EditSmsAccountAppintervalDialogController',_0xbffabb)[_0x3877e3('0x1d5a')](_0x3877e3('0x2b'),_0x25f77e)['controller'](_0x3877e3('0x57f'),_0x3da452)[_0x3877e3('0x1d5a')](_0x3877e3('0x272a'),_0x47c99e)[_0x3877e3('0x1d5a')](_0x3877e3('0x136a'),_0x111e08)[_0x3877e3('0x1d5a')](_0x3877e3('0x1322'),_0x33c87c)[_0x3877e3('0x1d5a')](_0x3877e3('0xea1'),_0x526202)[_0x3877e3('0x1d5a')](_0x3877e3('0xc3e'),_0x456375)[_0x3877e3('0x1d5a')](_0x3877e3('0x1eca'),_0x845ea8)[_0x3877e3('0x1d5a')](_0x3877e3('0x10fa'),_0x312433)[_0x3877e3('0x1d5a')]('SmsAccountsController',_0x2230c7)['controller'](_0x3877e3('0xdd7'),_0x41671b)['controller'](_0x3877e3('0xeeb'),_0x82e498)['controller'](_0x3877e3('0x167d'),_0x4a7709)[_0x3877e3('0x1d5a')](_0x3877e3('0x1366'),_0x99a165)[_0x3877e3('0x1d5a')]('SmsQueuesController',_0x19c101);const _0x497fd3=_0x398308['p']+_0x3877e3('0xf1b'),_0x4b304f=_0x398308['p']+_0x3877e3('0x24b9'),_0x508c65=_0x398308['p']+_0x3877e3('0x18e0');_0x21fd38[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$q',_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x143b'),_0x3877e3('0x1fc7'),_0x3877e3('0xcb5'),'rpcAgents',_0x3877e3('0xccd'),_0x3877e3('0x25d8'),_0x3877e3('0x1908'),'helperClasses',_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x1e8d')];function _0x21fd38(_0x5a6978,_0x39cdaa,_0x3a748e,_0x50f0c6,_0x53b137,_0x26f1a3,_0x7ccdfd,_0x5368ea,_0x372429,_0x149f88,_0xc263b8,_0x237a69,_0x39f357,_0x436013,_0x3bb906,_0x1d0039,_0x5b07dd,_0x16bb21){var _0x5d33e6=_0x3877e3,_0xc7512f=this,_0x128bf5=[_0x5d33e6('0x2154'),_0x5d33e6('0x1ecb'),_0x5d33e6('0x190e'),'lastPauseAt',_0x5d33e6('0x1f37'),_0x5d33e6('0x1a2c'),_0x5d33e6('0x201f'),_0x5d33e6('0x1ba3'),'chatPause',_0x5d33e6('0x2022'),_0x5d33e6('0x1396'),_0x5d33e6('0x2826'),_0x5d33e6('0x14bf'),_0x5d33e6('0x23f5'),'voicePause',_0x5d33e6('0x1887'),'openchannelCapacity','mailCapacity',_0x5d33e6('0xac0'),_0x5d33e6('0x1570'),_0x5d33e6('0xa28'),'chatCurrentCapacity',_0x5d33e6('0x1ce9'),'mailCurrentCapacity',_0x5d33e6('0x8db'),_0x5d33e6('0xe1'),'faxCurrentCapacity',_0x5d33e6('0x1cf9'),_0x5d33e6('0xf0'),_0x5d33e6('0x1d70'),_0x5d33e6('0xe4'),_0x5d33e6('0x1b28'),_0x5d33e6('0x282'),_0x5d33e6('0x27ea'),_0x5d33e6('0x1ffc'),_0x5d33e6('0x116'),_0x5d33e6('0xf73'),'smsStatusTime','whatsappStatusTime','faxStatusTime',_0x5d33e6('0xc0'),_0x5d33e6('0xbdd'),_0x5d33e6('0xa70'),'screenrecording',_0x5d33e6('0x1d44'),_0x5d33e6('0x2422')],_0x19eb54=[_0x5d33e6('0x1785'),_0x5d33e6('0x2022'),_0x5d33e6('0x1396'),'smsPause',_0x5d33e6('0x14bf'),'faxPause','voicePause',_0x5d33e6('0x1ecb')];_0xc7512f['currentUser']=_0x1d0039[_0x5d33e6('0x15ed')](),_0xc7512f[_0x5d33e6('0x16b3')]=['ringing',_0x5d33e6('0x1d37'),_0x5d33e6('0x860'),_0x5d33e6('0x22b1'),_0x5d33e6('0x255e')],_0xc7512f['pauses']=_0x7ccdfd||{'count':0x0,'rows':[]},_0xc7512f['license']=_0x5b07dd,_0xc7512f[_0x5d33e6('0x758')]=_0x436013,_0xc7512f['userProfileSection']=_0x3bb906&&_0x3bb906[_0x5d33e6('0x205f')]==0x1?_0x3bb906[_0x5d33e6('0x1b33')][0x0]:null,_0xc7512f[_0x5d33e6('0x5ed')]=_0x1d0039[_0x5d33e6('0x1778')](_0xc7512f[_0x5d33e6('0xab4')]?_0xc7512f[_0x5d33e6('0xab4')]['crudPermissions']:null),_0xc7512f['agents']=_0x5368ea?_0x86640f()[_0x5d33e6('0xcde')](_0x5368ea[_0x5d33e6('0x1b33')]?_0x5368ea['rows']:[],'id'):{},_0xc7512f['rpcAgents']=_0x372429?_0x86640f()[_0x5d33e6('0xcde')](_0x372429[_0x5d33e6('0x1b33')]?_0x372429['rows']:[],'id'):{},_0xc7512f['paginatedAgents']={},_0xc7512f['load']=![],_0xc7512f[_0x5d33e6('0x2752')]=[],_0xc7512f[_0x5d33e6('0x24ee')]={};for(var _0x22e2e1 in _0xc7512f['agents']){typeof _0xc7512f[_0x5d33e6('0xcb5')][_0x22e2e1]!==_0x5d33e6('0xddc')&&(_0xc7512f[_0x5d33e6('0xcb5')][_0x22e2e1][_0x5d33e6('0x1d75')]=!![]);}_0xc7512f[_0x5d33e6('0x77')]={'limit':0xa,'page':0x1,'order':'fullname','globalStatusFilter':'','pauseTypeFilter':''},_0xc7512f['logout']=_0x12d750,_0xc7512f['queueAdd']=_0x48efa5,_0xc7512f[_0x5d33e6('0x1e26')]=_0x2f3d3e,_0xc7512f['unPause']=_0x5717c3,_0xc7512f[_0x5d33e6('0xa45')]=_0xbf5114,_0xc7512f[_0x5d33e6('0x106')]=_0x352873,_0xc7512f[_0x5d33e6('0x694')]=_0x52a01c,_0xc7512f[_0x5d33e6('0xca6')]=_0x54275a,_0xc7512f[_0x5d33e6('0x1044')]=_0x67ec12,_0xc7512f['isPartialPause']=_0x3b03df,_0xc7512f['onSave']=_0x4fa85d,_0xc7512f[_0x5d33e6('0x27d7')]=_0x3d16e2,_0xc7512f['onInit']=_0x422140,_0xc7512f[_0x5d33e6('0x7e0')]=_0x198a6c,_0xc7512f['onComplete']=_0x35a457,_0xc7512f[_0x5d33e6('0xcf2')]=_0xca8373,_0xc263b8['on'](_0x5d33e6('0x62b'),_0xc7512f[_0x5d33e6('0x1b74')]),_0xc263b8['on']('user:update',_0xc7512f[_0x5d33e6('0x27d7')]),_0xc263b8['on'](_0x5d33e6('0x19a7'),_0xc7512f['onConnect']),_0xc263b8['on'](_0x5d33e6('0x1131'),_0xc7512f[_0x5d33e6('0xebf')]),_0x422140();var _0x17e495=_0x16bb21(function(){var _0x35eb20=_0x5d33e6;_0xc7512f[_0x35eb20('0x20ad')]&&(_0xc7512f['load']=![],_0x422140());},0x3e7);function _0x422140(){var _0xe61538=_0x5d33e6;_0xc7512f[_0xe61538('0x20ad')]=![];var _0x307614=_0x39cdaa[_0xe61538('0xca9')]();_0xc7512f[_0xe61538('0x71b')]=_0x307614[_0xe61538('0x71b')],_0xc7512f[_0xe61538('0x1782')]=[],_0xc7512f[_0xe61538('0x2752')]=[],_0x86640f()[_0xe61538('0xd54')](_0xc7512f[_0xe61538('0xcb5')],function(_0x134da0,_0x1fea8a){var _0x53896c=_0xe61538;_0xc7512f[_0x53896c('0x165c')][_0x1fea8a]&&_0x86640f()['merge'](_0x134da0,_0x86640f()[_0x53896c('0xc50')](_0x86640f()[_0x53896c('0x27b1')](_0xc7512f[_0x53896c('0x165c')][_0x1fea8a],_0x19eb54),_0x128bf5)),_0x52a01c(_0x134da0),_0x134da0[_0x53896c('0x1ecb')]?(_0xc7512f[_0x53896c('0x1782')][_0x53896c('0x206c')](_0x134da0),_0xc7512f['agentInternal'][_0x134da0[_0x53896c('0x201f')]]=_0x1fea8a):_0x134da0[_0x53896c('0x1ea5')]=_0x86640f()[_0x53896c('0x1662')](_0x1088bc()()[_0x53896c('0x153')]('x'));});_0xc7512f[_0xe61538('0x77')]['globalStatusFilter']&&_0x86640f()['remove'](_0xc7512f[_0xe61538('0x1782')],function(_0x580c3b){var _0x3990c2=_0xe61538;return _0x580c3b[_0x3990c2('0x100f')]!==_0xc7512f[_0x3990c2('0x77')][_0x3990c2('0xcfb')];});_0xc7512f[_0xe61538('0x77')][_0xe61538('0x1024')]&&_0x86640f()[_0xe61538('0x16a2')](_0xc7512f[_0xe61538('0x1782')],function(_0x2feef7){var _0x22705f=_0xe61538;return _0x2feef7['pauseType']!==_0xc7512f[_0x22705f('0x77')][_0x22705f('0x1024')];});_0xc7512f['query'][_0xe61538('0x1503')]&&_0x86640f()[_0xe61538('0x16a2')](_0xc7512f[_0xe61538('0x1782')],function(_0x5dcab6){var _0x172358=_0xe61538;return _0x5dcab6['fullname'][_0x172358('0xac2')]()['indexOf'](_0xc7512f[_0x172358('0x77')][_0x172358('0x1503')][_0x172358('0xac2')]())<0x0;});_0xc7512f[_0xe61538('0x1782')]=_0x4ed387(_0xc7512f[_0xe61538('0x1782')]);var _0x2d5d10=(_0xc7512f[_0xe61538('0x77')][_0xe61538('0x2376')]-0x1)*_0xc7512f['query'][_0xe61538('0x1f4a')];_0xc7512f[_0xe61538('0x261a')]=_0x86640f()[_0xe61538('0x2189')](_0xc7512f[_0xe61538('0x1782')],_0x2d5d10)[_0xe61538('0xb3d')](0x0,_0xc7512f[_0xe61538('0x77')][_0xe61538('0x1f4a')]);for(var _0x598a39=0x0;_0x598a39<_0xc7512f[_0xe61538('0x261a')][_0xe61538('0x577')];_0x598a39+=0x1){_0xc7512f[_0xe61538('0x2752')][_0xe61538('0x206c')](_0xc7512f[_0xe61538('0x261a')][_0x598a39]['id']);}_0x307614[_0xe61538('0x8ac')](),_0xc7512f[_0xe61538('0x20ad')]=!![];}function _0x4fa85d(_0x52f8f7){var _0x5e8662=_0x5d33e6;_0xc7512f[_0x5e8662('0xcb5')][_0x52f8f7['id']]&&(_0x86640f()['merge'](_0xc7512f[_0x5e8662('0xcb5')][_0x52f8f7['id']],_0x86640f()[_0x5e8662('0xc50')](_0x86640f()[_0x5e8662('0x27b1')](_0x52f8f7,_0x19eb54),_0x128bf5)),_0x86640f()[_0x5e8662('0xd0e')](_0xc7512f[_0x5e8662('0x165c')][_0x52f8f7['id']],_0x86640f()[_0x5e8662('0xc50')](_0x86640f()[_0x5e8662('0x27b1')](_0x52f8f7,_0x19eb54),_0x128bf5)),_0x52a01c(_0xc7512f[_0x5e8662('0xcb5')][_0x52f8f7['id']]));}function _0x3d16e2(_0x2f6b35){var _0x373306=_0x5d33e6;_0xc7512f[_0x373306('0xcb5')][_0x2f6b35['id']]&&(_0x86640f()['merge'](_0xc7512f[_0x373306('0xcb5')][_0x2f6b35['id']],_0x86640f()[_0x373306('0xc50')](_0x2f6b35,_0x128bf5)),_0x86640f()[_0x373306('0xd0e')](_0xc7512f[_0x373306('0x165c')][_0x2f6b35['id']],_0x86640f()[_0x373306('0xc50')](_0x2f6b35,_0x128bf5)),_0x2f6b35[_0x373306('0x1a2c')]&&(_0xc7512f['agents'][_0x2f6b35['id']][_0x373306('0x1ea5')]=_0x2f6b35['lastPauseAt'],_0xc7512f['rpcAgents'][_0x2f6b35['id']]['globalStatusTime']=_0x2f6b35[_0x373306('0x1a2c')]),_0x52a01c(_0xc7512f[_0x373306('0xcb5')][_0x2f6b35['id']]));}function _0x198a6c(_0x1bebcf){var _0x25ef13=_0x5d33e6;_0xc7512f[_0x25ef13('0xcb5')][_0xc7512f[_0x25ef13('0x24ee')][_0x1bebcf[_0x25ef13('0xe4e')]]]&&(_0x86640f()[_0x25ef13('0xd0e')](_0xc7512f[_0x25ef13('0xcb5')][_0xc7512f[_0x25ef13('0x24ee')][_0x1bebcf[_0x25ef13('0xe4e')]]],_0x86640f()[_0x25ef13('0xc50')](_0x1bebcf,[_0x25ef13('0xbdd'),_0x25ef13('0xa70')])),_0x86640f()[_0x25ef13('0xd0e')](_0xc7512f[_0x25ef13('0x165c')][_0xc7512f[_0x25ef13('0x24ee')][_0x1bebcf[_0x25ef13('0xe4e')]]],_0x86640f()['pick'](_0x1bebcf,['queue',_0x25ef13('0xa70')])));}function _0x35a457(_0x5c0ee9){var _0x5232bf=_0x5d33e6;_0xc7512f[_0x5232bf('0xcb5')][_0xc7512f[_0x5232bf('0x24ee')][_0x5c0ee9[_0x5232bf('0xe4e')]]]&&(_0xc7512f[_0x5232bf('0xcb5')][_0xc7512f[_0x5232bf('0x24ee')][_0x5c0ee9[_0x5232bf('0xe4e')]]]=_0x86640f()[_0x5232bf('0x27b1')](_0xc7512f[_0x5232bf('0xcb5')][_0xc7512f[_0x5232bf('0x24ee')][_0x5c0ee9[_0x5232bf('0xe4e')]]],[_0x5232bf('0xbdd'),_0x5232bf('0xa70')]),_0xc7512f[_0x5232bf('0x165c')][_0xc7512f[_0x5232bf('0x24ee')][_0x5c0ee9[_0x5232bf('0xe4e')]]]=_0x86640f()[_0x5232bf('0x27b1')](_0xc7512f[_0x5232bf('0x165c')][_0xc7512f['agentInternal'][_0x5c0ee9['destaccountcode']]],[_0x5232bf('0xbdd'),_0x5232bf('0xa70')]));}function _0x12d750(_0x5324eb){var _0x21821d=_0x5d33e6;return _0x149f88[_0x21821d('0x1775')][_0x21821d('0xda3')]({'id':_0x5324eb['id'],'device':_0x21821d('0x116a'),'agent_id':_0x5324eb['id'],'agent_name':_0x5324eb['name']})[_0x21821d('0x1376')]['then'](function(){var _0x35407b=_0x21821d;_0x237a69[_0x35407b('0xdb1')]({'title':_0x35407b('0x4b2'),'msg':_0x5324eb[_0x35407b('0x20f5')]+_0x35407b('0x1f57')}),_0xc7512f[_0x35407b('0xcb5')][_0x5324eb['id']]&&(_0xc7512f[_0x35407b('0xcb5')][_0x5324eb['id']][_0x35407b('0x1ecb')]=![]),_0xc7512f[_0x35407b('0x165c')][_0x5324eb['id']]&&(_0xc7512f[_0x35407b('0x165c')][_0x5324eb['id']][_0x35407b('0x1ecb')]=![]),_0x422140();})['catch'](function(_0x169acc){var _0xf122e8=_0x21821d;_0x237a69[_0xf122e8('0x2092')]({'title':_0x169acc[_0xf122e8('0x209')]?'API:'+_0x169acc['status']+_0xf122e8('0xa99')+_0x169acc[_0xf122e8('0x1808')]:_0xf122e8('0x1df9'),'msg':_0x169acc[_0xf122e8('0x11c2')]?JSON[_0xf122e8('0x25e')](_0x169acc[_0xf122e8('0x11c2')][_0xf122e8('0x1224')]):_0x169acc['toString']()});});}function _0x2f3d3e(_0x4dfd0c,_0x170805){var _0x29d830=_0x5d33e6;return _0x149f88['user'][_0x29d830('0x1e26')]({'id':_0x4dfd0c['id'],'type':_0x170805})[_0x29d830('0x1376')]['then'](function(_0x317925){var _0x886df5=_0x29d830;_0xc7512f[_0x886df5('0xcb5')][_0x4dfd0c['id']]&&_0x86640f()[_0x886df5('0xd0e')](_0xc7512f[_0x886df5('0xcb5')][_0x4dfd0c['id']],_0x86640f()[_0x886df5('0xc50')](_0x317925,_0x128bf5)),_0xc7512f['rpcAgents'][_0x4dfd0c['id']]&&_0x86640f()[_0x886df5('0xd0e')](_0xc7512f[_0x886df5('0x165c')][_0x4dfd0c['id']],_0x86640f()[_0x886df5('0xc50')](_0x317925,_0x128bf5)),_0x52a01c(_0xc7512f['agents'][_0x4dfd0c['id']]);})[_0x29d830('0x1c1d')](function(_0x3319ec){var _0x4c0b17=_0x29d830;_0x237a69[_0x4c0b17('0x2092')]({'title':_0x3319ec[_0x4c0b17('0x209')]?_0x4c0b17('0x22d')+_0x3319ec[_0x4c0b17('0x209')]+_0x4c0b17('0xa99')+_0x3319ec[_0x4c0b17('0x1808')]:_0x4c0b17('0x1df9'),'msg':_0x3319ec['data']?JSON[_0x4c0b17('0x25e')](_0x3319ec['data'][_0x4c0b17('0x1224')]):_0x3319ec[_0x4c0b17('0x174f')]()});});}function _0x5717c3(_0x2f420a){var _0xc26118=_0x5d33e6;return _0x149f88['user']['unpause']({'id':_0x2f420a['id']})[_0xc26118('0x1376')][_0xc26118('0x21ad')](function(_0x499020){var _0x27c4d6=_0xc26118;_0xc7512f[_0x27c4d6('0xcb5')][_0x2f420a['id']]&&_0x86640f()[_0x27c4d6('0xd0e')](_0xc7512f[_0x27c4d6('0xcb5')][_0x2f420a['id']],_0x86640f()[_0x27c4d6('0xc50')](_0x499020,_0x128bf5)),_0xc7512f[_0x27c4d6('0x165c')][_0x2f420a['id']]&&_0x86640f()['merge'](_0xc7512f[_0x27c4d6('0x165c')][_0x2f420a['id']],_0x86640f()[_0x27c4d6('0xc50')](_0x499020,_0x128bf5)),_0x52a01c(_0xc7512f[_0x27c4d6('0xcb5')][_0x2f420a['id']]);})[_0xc26118('0x1c1d')](function(_0x49cbd0){var _0x2b322f=_0xc26118;_0x237a69[_0x2b322f('0x2092')]({'title':_0x49cbd0[_0x2b322f('0x209')]?_0x2b322f('0x22d')+_0x49cbd0[_0x2b322f('0x209')]+_0x2b322f('0xa99')+_0x49cbd0[_0x2b322f('0x1808')]:_0x2b322f('0x1df9'),'msg':_0x49cbd0[_0x2b322f('0x11c2')]?JSON[_0x2b322f('0x25e')](_0x49cbd0[_0x2b322f('0x11c2')][_0x2b322f('0x1224')]):_0x49cbd0['toString']()});});}function _0xbf5114(_0x1f5a13){var _0x575d55=_0x5d33e6;_0x50f0c6[_0x575d55('0x853')](_0x50f0c6[_0x575d55('0x95b')]()[_0x575d55('0x1226')](!![])['title'](_0x575d55('0xcc0'))[_0x575d55('0x276b')](_0x575d55('0xfcf'))['ok']('Ok')[_0x575d55('0x1e6d')](_0x1f5a13));}function _0x48efa5(_0x571ff5,_0x271a4a){var _0x1e745a=_0x5d33e6;_0x50f0c6[_0x1e745a('0x853')]({'controller':_0x1e745a('0x213f'),'controllerAs':'vm','templateUrl':_0x287ed6,'parent':angular[_0x1e745a('0x1676')](_0x53b137[_0x1e745a('0x2452')]),'targetEvent':_0x271a4a,'clickOutsideToClose':!![],'locals':{'agent':_0x571ff5,'agents':[],'channel':_0x1e745a('0xac9'),'direction':_0x1e745a('0x923'),'crudPermissions':_0xc7512f['crudPermissions']}});}function _0x54275a(_0x1a4921){var _0x316ded=_0x5d33e6;return _0x1a4921===_0x316ded('0x1e26')||_0x1a4921===_0x316ded('0x1a4e');}function _0x67ec12(_0x444421){var _0x4ad9af=_0x5d33e6;return _0x444421===_0x4ad9af('0x1e26');}function _0x3b03df(_0x4a65a6){var _0x29dd4f=_0x5d33e6;return _0x4a65a6===_0x29dd4f('0x1a4e');}function _0x522c08(_0x5b71ad){var _0x207a94=_0x5d33e6;return _0x5b71ad===_0x207a94('0x219')||_0x5b71ad===_0x207a94('0x1a4f')||_0x5b71ad===_0x207a94('0x22fd')||_0x5b71ad===_0x207a94('0x200c')||_0x86640f()[_0x207a94('0x1c7')](_0x5b71ad);}function _0x352873(_0x3befd2,_0x3cbf7a){var _0x3a0660=_0x5d33e6;if(_0x3cbf7a===_0x3a0660('0x8ed')){if(_0x3befd2[_0x3cbf7a+_0x3a0660('0x843')]!==_0x3a0660('0x219'))return _0x3befd2[_0x3cbf7a+_0x3a0660('0x843')];if(_0x3befd2[_0x3cbf7a+'Pause'])return _0x3befd2[_0x3cbf7a+_0x3a0660('0x843')]=_0x3a0660('0x1e26'),'pause';return _0x3a0660('0x219');}else{if(_0x3befd2[_0x3cbf7a+_0x3a0660('0xc77')])return _0x3befd2[_0x3cbf7a+_0x3a0660('0x843')]=_0x3a0660('0x1e26'),_0x3a0660('0x1e26');return _0x3befd2[_0x3cbf7a+_0x3a0660('0x843')];}}function _0x52a01c(_0x21bff3){var _0x7be8d5=_0x5d33e6,_0xd934f9=_0x7be8d5('0x1a4f');if(_0x86640f()[_0x7be8d5('0xc74')]([_0x352873(_0x21bff3,_0x7be8d5('0x8ed')),_0x352873(_0x21bff3,_0x7be8d5('0x1f65')),_0x352873(_0x21bff3,_0x7be8d5('0x1c8b')),_0x352873(_0x21bff3,'openchannel'),_0x352873(_0x21bff3,_0x7be8d5('0x3d0')),_0x352873(_0x21bff3,_0x7be8d5('0x1ad4')),_0x352873(_0x21bff3,_0x7be8d5('0x93f'))],_0x54275a))_0xd934f9=_0x7be8d5('0x1e26');else{if(_0x86640f()[_0x7be8d5('0x2664')]([_0x352873(_0x21bff3,_0x7be8d5('0x8ed')),_0x352873(_0x21bff3,_0x7be8d5('0x1f65')),_0x352873(_0x21bff3,_0x7be8d5('0x1c8b')),_0x352873(_0x21bff3,'openchannel'),_0x352873(_0x21bff3,_0x7be8d5('0x3d0')),_0x352873(_0x21bff3,'whatsapp'),_0x352873(_0x21bff3,_0x7be8d5('0x93f'))],_0x54275a))_0xd934f9=_0x7be8d5('0x1a4e');else _0x86640f()[_0x7be8d5('0xc74')]([_0x352873(_0x21bff3,_0x7be8d5('0x8ed')),_0x352873(_0x21bff3,'chat'),_0x352873(_0x21bff3,_0x7be8d5('0x1c8b')),_0x352873(_0x21bff3,'openchannel'),_0x352873(_0x21bff3,'sms'),_0x352873(_0x21bff3,'whatsapp'),_0x352873(_0x21bff3,_0x7be8d5('0x93f'))],_0x522c08)?_0xd934f9=_0x7be8d5('0x219'):_0xd934f9=_0x7be8d5('0x860');}_0x21bff3[_0x7be8d5('0x100f')]!==_0xd934f9&&(_0x21bff3[_0x7be8d5('0x100f')]=_0xd934f9,_0x21bff3[_0x7be8d5('0x1d75')]?(_0x21bff3[_0x7be8d5('0x1d75')]=![],_0x21bff3[_0x7be8d5('0x1ea5')]=_0x54275a(_0xd934f9)?_0x86640f()[_0x7be8d5('0x1662')](_0x1088bc()(_0x21bff3[_0x7be8d5('0x1a2c')])[_0x7be8d5('0x153')]('x')):_0x86640f()['max']([_0x21bff3[_0x7be8d5('0xc0')],_0x21bff3[_0x7be8d5('0x1ffc')],_0x21bff3['mailStatusTime'],_0x21bff3['smsStatusTime'],_0x21bff3['whatsappStatusTime'],_0x21bff3[_0x7be8d5('0x116')],_0x21bff3[_0x7be8d5('0x27b6')]])):_0x21bff3[_0x7be8d5('0x1ea5')]=_0x86640f()[_0x7be8d5('0x1662')](_0x1088bc()()['format']('x')));}function _0x4ed387(_0x5d7079){var _0x305741=_0x5d33e6,_0x14ccb9=_0x86640f()[_0x305741('0x2837')](_0xc7512f['query'][_0x305741('0x2752')],'-')?_0x305741('0x340'):_0x305741('0x15d6');return _0x86640f()[_0x305741('0x11df')](_0x5d7079,[_0xc7512f[_0x305741('0x77')][_0x305741('0x2752')][_0x305741('0x16e4')]('-','')],[_0x14ccb9]);}function _0x473c38(){var _0x20ed3c=_0x5d33e6;_0x17e495&&(_0x16bb21[_0x20ed3c('0x3b5')](_0x17e495),_0x17e495=null);}function _0xca8373(_0xbff00e,_0x590b3d){var _0x5ea5cb=_0x5d33e6;return _0x149f88[_0x5ea5cb('0x1775')][_0x5ea5cb('0x5ef')]({'id':_0xbff00e['id']},{'screenrecording':_0x590b3d})[_0x5ea5cb('0x1376')][_0x5ea5cb('0x1c1d')](function(_0x570117){var _0x2b88df=_0x5ea5cb;_0x237a69[_0x2b88df('0x2092')]({'title':_0x570117[_0x2b88df('0x209')]?_0x2b88df('0x22d')+_0x570117[_0x2b88df('0x209')]+_0x2b88df('0xa99')+_0x570117[_0x2b88df('0x1808')]:_0x2b88df('0x14b6'),'msg':_0x570117[_0x2b88df('0x11c2')]?JSON[_0x2b88df('0x25e')](_0x570117[_0x2b88df('0x11c2')][_0x2b88df('0x1224')]):_0x570117[_0x2b88df('0x174f')]()});});}_0x5a6978[_0x5d33e6('0x1723')](_0x5d33e6('0x1210'),function(){var _0x3f02e1=_0x5d33e6;_0xc263b8[_0x3f02e1('0x16cc')](_0x3f02e1('0x62b')),_0xc263b8['removeAllListeners'](_0x3f02e1('0x21f4')),_0xc263b8['removeAllListeners'](_0x3f02e1('0x19a7')),_0xc263b8[_0x3f02e1('0x16cc')](_0x3f02e1('0x1131')),_0x473c38();});}const _0x50451a=_0x21fd38,_0x56e95c=_0x398308['p']+'src/js/modules/main/apps/openchannel/views/openchannelQueues/create/dialog.html/dialog-[chunkhash].html',_0x33a871=_0x398308['p']+_0x3877e3('0xa6f');_0x589171['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0x2313'),_0x3877e3('0x1850'),'$q','$document',_0x3877e3('0x1e8d'),_0x3877e3('0xb7a'),_0x3877e3('0x245'),'api',_0x3877e3('0x25d8'),_0x3877e3('0x1908'),_0x3877e3('0x758'),'userProfileSection',_0x3877e3('0x15bc')];function _0x589171(_0x561b64,_0x37192b,_0x2a33d4,_0x7db8c5,_0x8df264,_0x2ed647,_0x1eefc6,_0x348d6d,_0xdf19f0,_0x286642,_0x351a6c,_0x4a0b3e,_0x319670,_0x2c79f4){var _0x4437be=_0x3877e3,_0x11a529=this,_0x4d2021=['loggedIn','available','waiting',_0x4437be('0x4f6'),_0x4437be('0xc37'),_0x4437be('0x108'),'message',_0x4437be('0x13dc'),_0x4437be('0x1c4b'),_0x4437be('0x1e2e'),_0x4437be('0x250c')];_0x11a529[_0x4437be('0x123f')]=_0x2c79f4[_0x4437be('0x15ed')](),_0x11a529[_0x4437be('0x205f')]=_0x1eefc6[_0x4437be('0x205f')]?_0x1eefc6[_0x4437be('0x205f')]:0x0,_0x11a529['queues']=_0x1eefc6?_0x86640f()[_0x4437be('0xcde')](_0x1eefc6[_0x4437be('0x1b33')]?_0x1eefc6['rows']:[],'id'):{},_0x11a529[_0x4437be('0x245')]=_0x348d6d?_0x86640f()[_0x4437be('0xcde')](_0x348d6d[_0x4437be('0x1b33')]?_0x348d6d[_0x4437be('0x1b33')]:[],'id'):{},_0x11a529[_0x4437be('0x758')]=_0x4a0b3e,_0x11a529['userProfileSection']=_0x319670&&_0x319670[_0x4437be('0x205f')]==0x1?_0x319670[_0x4437be('0x1b33')][0x0]:null,_0x11a529['crudPermissions']=_0x2c79f4[_0x4437be('0x1778')](_0x11a529[_0x4437be('0xab4')]?_0x11a529['userProfileSection'][_0x4437be('0x5ed')]:null);_0x2c79f4[_0x4437be('0x21de')](_0x4437be('0x1bd8'))?_0x11a529[_0x4437be('0x77')]={'type':_0x4437be('0x923'),'sort':_0x4437be('0x33'),'limit':0xa,'page':0x1}:_0x11a529[_0x4437be('0x77')]={'id':_0x11a529[_0x4437be('0x123f')]['id'],'channel':_0x4437be('0xac9'),'type':_0x4437be('0x923'),'sort':'-updatedAt','limit':0xa,'page':0x1};_0x11a529[_0x4437be('0xdb1')]=_0x17bcc3,_0x11a529['getQueues']=_0x376006,_0x11a529[_0x4437be('0x1a1d')]=_0x52e6fc,_0x11a529['agentAdd']=_0x3e756a,_0x11a529[_0x4437be('0x14c1')]=_0x517c0a,_0x11a529[_0x4437be('0x1b74')]=_0x4ee395,_0x11a529[_0x4437be('0x7c7')]=_0x23ff6f,_0x11a529[_0x4437be('0xc32')]=_0x5b7dbb,_0x11a529[_0x4437be('0x22bf')]=_0x473813,_0x11a529[_0x4437be('0xf80')]=_0x24c269,_0x11a529[_0x4437be('0x27a5')]=_0x4dd55e,_0x11a529[_0x4437be('0x14b')]=_0xf70ab4,_0x11a529[_0x4437be('0x2752')]=[],_0x86640f()[_0x4437be('0xd54')](_0x11a529['queues'],function(_0x924a7c){var _0x3ea51f=_0x4437be;_0x11a529[_0x3ea51f('0x2752')][_0x3ea51f('0x206c')](_0x924a7c['id']);}),_0x286642['on']('openchannel_queue:save',_0x11a529[_0x4437be('0x1b74')]),_0x286642['on'](_0x4437be('0x9c9'),_0x11a529[_0x4437be('0x7c7')]),_0x286642['on'](_0x4437be('0x1a09'),_0x11a529[_0x4437be('0xc32')]),_0x286642['on'](_0x4437be('0x21f4'),_0x11a529[_0x4437be('0x22bf')]),_0x286642['on'](_0x4437be('0x3b0'),_0x11a529[_0x4437be('0x27a5')]),_0x286642['on'](_0x4437be('0x1595'),_0x11a529['onLogin']);function _0xf70ab4(){var _0x535a5b=_0x4437be,_0x5db52d=[];return _0x86640f()['forIn'](_0x11a529[_0x535a5b('0xb7a')],function(_0x10dccb,_0xe86e9d){var _0x23a8de=_0x535a5b;_0x10dccb[_0x23a8de('0x250c')]=0x0,_0x10dccb['loggedInDb']=0x0,_0x11a529[_0x23a8de('0xb7a')][_0xe86e9d][_0x23a8de('0xcb5')]={},_0x5db52d[_0x23a8de('0x206c')](_0xdf19f0['openchannelQueue']['getMembers']({'id':_0xe86e9d})[_0x23a8de('0x1376')]),_0x11a529[_0x23a8de('0x245')][_0xe86e9d]&&_0x86640f()[_0x23a8de('0xd0e')](_0x10dccb,_0x86640f()['pick'](_0x11a529[_0x23a8de('0x245')][_0xe86e9d],_0x4d2021));}),_0x7db8c5[_0x535a5b('0x1ba7')](_0x5db52d)[_0x535a5b('0x21ad')](function(_0x480ac2){var _0x50818b=_0x535a5b;for(var _0x5a4c48=0x0;_0x5a4c48<_0x480ac2[_0x50818b('0x577')];_0x5a4c48+=0x1){for(var _0x16a664=0x0;_0x16a664<_0x480ac2[_0x5a4c48]['rows'][_0x50818b('0x577')];_0x16a664++){_0x480ac2[_0x5a4c48]['rows'][_0x16a664][_0x50818b('0x250c')]&&_0x11a529['queues'][_0x480ac2[_0x5a4c48][_0x50818b('0x1b33')][_0x16a664][_0x50818b('0xe3')]]['paused']++,_0x11a529[_0x50818b('0xb7a')][_0x480ac2[_0x5a4c48][_0x50818b('0x1b33')][_0x16a664][_0x50818b('0xe3')]]['loggedInDb']++,_0x11a529[_0x50818b('0xb7a')][_0x480ac2[_0x5a4c48][_0x50818b('0x1b33')][_0x16a664][_0x50818b('0xe3')]][_0x50818b('0xcb5')][_0x480ac2[_0x5a4c48][_0x50818b('0x1b33')][_0x16a664][_0x50818b('0x1dc6')]]=_0x480ac2[_0x5a4c48][_0x50818b('0x1b33')][_0x16a664][_0x50818b('0xe3')];}}})[_0x535a5b('0x1c1d')](function(_0x1f1573){var _0x2e3ff1=_0x535a5b;console[_0x2e3ff1('0x2092')](_0x1f1573);});}function _0x4ee395(_0x52aac1){var _0x1147e2=_0x4437be;_0x11a529['queues'][_0x52aac1['id']]&&_0x86640f()[_0x1147e2('0xd0e')](_0x11a529[_0x1147e2('0xb7a')][_0x52aac1['id']],_0x86640f()['pick'](_0x52aac1,_0x4d2021));}function _0x23ff6f(_0x328cdd){var _0xb6e9ad=_0x4437be;_0x11a529[_0xb6e9ad('0xb7a')][_0x328cdd[_0xb6e9ad('0xe3')]]&&_0x11a529[_0xb6e9ad('0xb7a')][_0x328cdd[_0xb6e9ad('0xe3')]][_0xb6e9ad('0x29')]++;}function _0x5b7dbb(_0x1816dc){var _0x2ae2f5=_0x4437be;_0x11a529[_0x2ae2f5('0xb7a')][_0x1816dc[_0x2ae2f5('0xe3')]]&&_0x11a529[_0x2ae2f5('0xb7a')][_0x1816dc['OpenchannelQueueId']][_0x2ae2f5('0x29')]--;}function _0x473813(_0x25d411){var _0x194181=_0x4437be;console[_0x194181('0x6fb')](_0x194181('0x22bf'),_0x25d411);if(_0x25d411[_0x194181('0x1025')])_0x86640f()[_0x194181('0xd54')](_0x11a529[_0x194181('0xb7a')],function(_0x123f17){var _0x4a8047=_0x194181;_0x123f17[_0x4a8047('0xcb5')][_0x25d411['id']]&&(_0x123f17['paused']+=0x1,console[_0x4a8047('0x6fb')](_0x4a8047('0x1e26')));});else!_0x25d411['voicePause']&&_0x86640f()[_0x194181('0xd54')](_0x11a529[_0x194181('0xb7a')],function(_0xbead66){var _0x4a43f1=_0x194181;_0xbead66[_0x4a43f1('0xcb5')][_0x25d411['id']]&&(_0xbead66[_0x4a43f1('0x250c')]>0x0&&(_0xbead66[_0x4a43f1('0x250c')]-=0x1,console[_0x4a43f1('0x6fb')](_0x4a43f1('0xa8e'))));});}function _0x24c269(_0x73f3d8){var _0x3e96bd=_0x4437be;console[_0x3e96bd('0x6fb')](_0x3e96bd('0x1b6a'),_0x73f3d8),_0x11a529[_0x3e96bd('0xb7a')][_0x73f3d8[_0x3e96bd('0xe3')]]&&(_0x11a529[_0x3e96bd('0xb7a')][_0x73f3d8[_0x3e96bd('0xe3')]]['loggedInDb']+=0x1,_0x11a529[_0x3e96bd('0xb7a')][_0x73f3d8[_0x3e96bd('0xe3')]]['agents'][_0x73f3d8[_0x3e96bd('0x1dc6')]]=_0x73f3d8[_0x3e96bd('0xe3')]);}function _0x4dd55e(_0x5c3b3e){var _0x349bcc=_0x4437be;console[_0x349bcc('0x6fb')](_0x349bcc('0x27a5'),_0x5c3b3e),_0x11a529['queues'][_0x5c3b3e[_0x349bcc('0xe3')]]&&_0x11a529['queues'][_0x5c3b3e['OpenchannelQueueId']][_0x349bcc('0x29')]>0x0&&(_0x11a529[_0x349bcc('0xb7a')][_0x5c3b3e[_0x349bcc('0xe3')]]['loggedInDb']-=0x1,delete _0x11a529[_0x349bcc('0xb7a')][_0x5c3b3e[_0x349bcc('0xe3')]]['agents'][_0x5c3b3e['UserId']]);}var _0x28e070=!![],_0x135de0=0x1;_0x561b64['$watch']('vm.query.filter',function(_0x2f23a6,_0x1001e0){var _0x35d44a=_0x4437be;_0x28e070?_0x37192b(function(){_0x28e070=![];}):(!_0x1001e0&&(_0x135de0=_0x11a529[_0x35d44a('0x77')][_0x35d44a('0x2376')]),_0x2f23a6!==_0x1001e0&&(_0x11a529[_0x35d44a('0x77')]['page']=0x1),!_0x2f23a6&&(_0x11a529[_0x35d44a('0x77')][_0x35d44a('0x2376')]=_0x135de0),_0x11a529['getQueues']());});function _0x17bcc3(_0x160102){var _0x4c557f=_0x4437be;_0x11a529['count']=_0x160102[_0x4c557f('0x205f')],_0x11a529['queues']=_0x160102?_0x86640f()['keyBy'](_0x160102[_0x4c557f('0x1b33')]?_0x160102['rows']:[],'id'):{};if(_0x160102['rows']){_0x11a529[_0x4c557f('0x2752')]=[];for(var _0x5f5454=0x0;_0x5f5454<_0x160102[_0x4c557f('0x1b33')][_0x4c557f('0x577')];_0x5f5454++){_0x11a529['order'][_0x4c557f('0x206c')](_0x160102[_0x4c557f('0x1b33')][_0x5f5454]['id']);}}_0xf70ab4();}function _0x376006(){var _0x5ef15a=_0x4437be;_0x11a529[_0x5ef15a('0x77')][_0x5ef15a('0x15a5')]=(_0x11a529['query']['page']-0x1)*_0x11a529[_0x5ef15a('0x77')]['limit'],_0x2c79f4[_0x5ef15a('0x21de')](_0x5ef15a('0x1bd8'))?_0x11a529[_0x5ef15a('0x71b')]=_0xdf19f0['openchannelQueue']['get'](_0x11a529[_0x5ef15a('0x77')],_0x17bcc3)[_0x5ef15a('0x1376')]:(_0x11a529[_0x5ef15a('0x77')]['id']=_0x11a529[_0x5ef15a('0x758')]['id'],_0x11a529[_0x5ef15a('0x77')]['section']=_0x5ef15a('0xb6c'),_0x11a529[_0x5ef15a('0x71b')]=_0xdf19f0['userProfile'][_0x5ef15a('0x321')](_0x11a529[_0x5ef15a('0x77')],_0x17bcc3)[_0x5ef15a('0x1376')]);}function _0x52e6fc(_0x417b68,_0x28b042){var _0x54e6ad=_0x4437be;_0x2a33d4['show']({'controller':_0x54e6ad('0x1cdd'),'controllerAs':'vm','templateUrl':_0x56e95c,'parent':angular[_0x54e6ad('0x1676')](_0x8df264[_0x54e6ad('0x2452')]),'targetEvent':_0x417b68,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x28b042,'openchannelQueues':_0x86640f()[_0x54e6ad('0x1843')](_0x11a529[_0x54e6ad('0xb7a')]),'license':null,'setting':null,'crudPermissions':_0x11a529[_0x54e6ad('0x5ed')]}});}function _0x3e756a(_0xee99f5,_0x48f80c){var _0x1012ff=_0x4437be;_0x2a33d4[_0x1012ff('0x853')]({'controller':_0x1012ff('0x2415'),'controllerAs':'vm','templateUrl':_0x33a871,'parent':angular['element'](_0x8df264[_0x1012ff('0x2452')]),'targetEvent':_0xee99f5,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x48f80c,'openchannelQueues':_0x11a529[_0x1012ff('0xb7a')]?_0x11a529[_0x1012ff('0xb7a')][_0x1012ff('0x1b33')]:[],'realtime':![],'crudPermissions':_0x11a529['crudPermissions']}});}function _0x517c0a(_0x20eb9e){var _0x565ca2=_0x4437be;return _0xdf19f0['openchannelQueue'][_0x565ca2('0x5ef')](_0x20eb9e)['$promise'][_0x565ca2('0x21ad')](function(){var _0x19d758=_0x565ca2;_0x351a6c[_0x19d758('0xdb1')]({'title':'Queue\x20properly\x20updated!','msg':_0x20eb9e[_0x19d758('0x19fe')]?_0x20eb9e[_0x19d758('0x19fe')]+_0x19d758('0xa8d'):''});})[_0x565ca2('0x1c1d')](function(_0x442187){var _0x5cc734=_0x565ca2;_0x351a6c[_0x5cc734('0x2092')]({'title':_0x5cc734('0xa52'),'msg':_0x442187[_0x5cc734('0x1224')]});});}_0x561b64[_0x4437be('0x1723')](_0x4437be('0x1210'),function(){var _0x1e9c80=_0x4437be;_0x286642[_0x1e9c80('0x16cc')](_0x1e9c80('0x30e')),_0x286642[_0x1e9c80('0x16cc')](_0x1e9c80('0x1a09')),_0x286642[_0x1e9c80('0x16cc')]('userOpenchannelQueue:save'),_0x286642[_0x1e9c80('0x16cc')]('user:update'),_0x286642[_0x1e9c80('0x16cc')](_0x1e9c80('0x3b0')),_0x286642[_0x1e9c80('0x16cc')](_0x1e9c80('0x1595'));});}const _0x6651e=_0x589171;function _0x3dc41d(){var _0x15c2d7=_0x3877e3;return{'status':{'registered':_0x15c2d7('0x23d9'),'unregistered':_0x15c2d7('0xf93'),'lagged':_0x15c2d7('0xf93'),'reachable':'green-300-fg\x20icon-checkbox-marked-circle','unreachable':_0x15c2d7('0xf93'),'unknown':'grey-fg\x20icon-minus-circle'},'state':{'unknown':_0x15c2d7('0x6b3'),'not_inuse':'green-300-fg\x20icon-phone-hangup','inuse':'red-300-fg\x20icon-phone-in-talk','busy':'red-300-fg\x20icon-phone-locked','invalid':_0x15c2d7('0x6b3'),'unavailable':'grey-fg\x20icon-phone-hangup','ringing':_0x15c2d7('0x540'),'ringinuse':_0x15c2d7('0x540'),'onhold':_0x15c2d7('0x273a')},'channelStatus':{'ring':_0x15c2d7('0x540'),'up':_0x15c2d7('0x1dcd'),'hangup':_0x15c2d7('0xe0f')},'channelStatusOut':{'ring':'blue-300-fg\x20icon-phone-outgoing','up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x15c2d7('0xe0f')}};}const _0x5d7a60=_0x3dc41d;_0x31f667[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0xa9f'),_0x3877e3('0x25d8')];function _0x31f667(_0x5da3c7,_0x4b3599,_0x376f0f){var _0x37dcb9=_0x3877e3,_0x35d433=this;_0x376f0f[_0x37dcb9('0x8d8')](),_0x376f0f[_0x37dcb9('0x663')](),_0x35d433['selectedTab']=0x0;switch(_0x4b3599[_0x37dcb9('0x1ccb')][_0x37dcb9('0x19fe')]){case _0x37dcb9('0x11c'):_0x35d433[_0x37dcb9('0x302')]=0x0;break;case _0x37dcb9('0xea9'):_0x35d433[_0x37dcb9('0x302')]=0x1;break;default:_0x35d433[_0x37dcb9('0x302')]=0x0,_0x4b3599['go'](_0x37dcb9('0x11c'));}_0x5da3c7[_0x37dcb9('0x10e8')](_0x37dcb9('0xc2'),function(_0x410730,_0x4bd2f9){var _0x5cea63=_0x37dcb9;if(_0x410730!==_0x4bd2f9)switch(_0x410730){case 0x0:_0x4b3599['go'](_0x5cea63('0x11c'));break;case 0x1:_0x4b3599['go'](_0x5cea63('0xea9'));break;default:_0x4b3599['go'](_0x5cea63('0x11c'));}});}const _0x4725e7=_0x31f667;_0x36e6df[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c')];function _0x36e6df(_0x3c5bde){var _0x3db285=_0x3877e3;_0x3c5bde['state'](_0x3db285('0x10ea'),{'url':_0x3db285('0x1b34'),'views':{'content@app':{'templateUrl':_0x497fd3,'controller':_0x3db285('0x24dc')}},'resolve':{'userProfile':['apiResolver',_0x3db285('0x15bc'),function _0x1e7991(_0xabec3b,_0x21fb99){var _0x45c0ca=_0x3db285;return _0x21fb99[_0x45c0ca('0x21de')](_0x45c0ca('0x1bd8'))?null:_0xabec3b[_0x45c0ca('0x8ac')](_0x45c0ca('0x1e1d'),{'fields':_0x45c0ca('0x1a00'),'id':_0x21fb99['getCurrentUser']()[_0x45c0ca('0x1618')]});}],'userProfileSection':['apiResolver',_0x3db285('0x15bc'),function _0x272fc9(_0xa33a35,_0x64bd5){var _0xaf720c=_0x3db285;return _0x64bd5['hasRole'](_0xaf720c('0x1bd8'))?null:_0xa33a35['resolve'](_0xaf720c('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x64bd5[_0xaf720c('0x15ed')]()[_0xaf720c('0x1618')],'sectionId':0x32a});}]},'authenticate':!![],'permissionId':0x32a})['state']('app.openchannel.realtime.agents',{'url':_0x3db285('0x69c'),'controller':_0x3db285('0x268'),'templateUrl':_0x4b304f,'resolve':{'pauses':[_0x3db285('0x354'),function _0x5ea898(_0x3a96e3){var _0x937ca8=_0x3db285;return _0x3a96e3['resolve'](_0x937ca8('0x12e0'),{'nolimit':!![]});}],'agents':['apiResolver','Auth',function _0x1a8524(_0x376c3b,_0x4c8b97){var _0x5054fc=_0x3db285;return _0x4c8b97[_0x5054fc('0x21de')](_0x5054fc('0x1bd8'))?_0x376c3b['resolve'](_0x5054fc('0x1913'),{'fields':_0x5054fc('0x856'),'role':'agent','sort':_0x5054fc('0x20f5'),'nolimit':!![]}):_0x376c3b[_0x5054fc('0x8ac')]('userProfile@getResources',{'id':_0x4c8b97[_0x5054fc('0x15ed')]()['userProfileId'],'section':_0x5054fc('0xfed'),'fields':_0x5054fc('0x856'),'role':_0x5054fc('0x2402'),'sort':_0x5054fc('0x20f5'),'nolimit':!![]});}],'userProfile':[_0x3db285('0x354'),'Auth',function _0x59bd8e(_0x22cdf1,_0x5b65d1){var _0x11ac3f=_0x3db285;return _0x5b65d1[_0x11ac3f('0x21de')](_0x11ac3f('0x1bd8'))?null:_0x22cdf1[_0x11ac3f('0x8ac')](_0x11ac3f('0x1e1d'),{'fields':_0x11ac3f('0x1a00'),'id':_0x5b65d1[_0x11ac3f('0x15ed')]()[_0x11ac3f('0x1618')]});}],'userProfileSection':[_0x3db285('0x354'),'Auth',function _0x5760b4(_0x19ce32,_0xb2c3a8){var _0x46bf49=_0x3db285;return _0xb2c3a8[_0x46bf49('0x21de')](_0x46bf49('0x1bd8'))?null:_0x19ce32[_0x46bf49('0x8ac')](_0x46bf49('0x222f'),{'fields':_0x46bf49('0x1852'),'userProfileId':_0xb2c3a8[_0x46bf49('0x15ed')]()[_0x46bf49('0x1618')],'sectionId':0xca});}],'rpcAgents':[_0x3db285('0x354'),function _0x4afc17(_0x3e54d9){var _0x5ae06d=_0x3db285;return _0x3e54d9[_0x5ae06d('0x8ac')](_0x5ae06d('0x2685'));}]},'authenticate':!![],'permissionId':0x32a})['state'](_0x3db285('0xea9'),{'url':_0x3db285('0x13e2'),'controller':_0x3db285('0x14c'),'templateUrl':_0x508c65,'resolve':{'queues':[_0x3db285('0x354'),_0x3db285('0x15bc'),function _0xf334b1(_0x544ae5,_0x3b8e85){var _0x17abfd=_0x3db285;return _0x3b8e85[_0x17abfd('0x21de')]('admin')?_0x544ae5['resolve'](_0x17abfd('0x251f'),{'type':_0x17abfd('0x923'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x544ae5[_0x17abfd('0x8ac')]('userProfile@getResources',{'id':_0x3b8e85[_0x17abfd('0x15ed')]()[_0x17abfd('0x1618')],'section':'OpenchannelQueues','channel':_0x17abfd('0xac9'),'type':_0x17abfd('0x923'),'sort':_0x17abfd('0x33'),'limit':0xa,'page':0x1});}],'userProfile':[_0x3db285('0x354'),_0x3db285('0x15bc'),function _0x3ec7df(_0x4647bc,_0x1b4084){var _0x5acda9=_0x3db285;return _0x1b4084[_0x5acda9('0x21de')](_0x5acda9('0x1bd8'))?null:_0x4647bc[_0x5acda9('0x8ac')](_0x5acda9('0x1e1d'),{'fields':_0x5acda9('0x1a00'),'id':_0x1b4084[_0x5acda9('0x15ed')]()[_0x5acda9('0x1618')]});}],'userProfileSection':['apiResolver',_0x3db285('0x15bc'),function _0x54f53b(_0x224873,_0x57a683){var _0xe20912=_0x3db285;return _0x57a683[_0xe20912('0x21de')](_0xe20912('0x1bd8'))?null:_0x224873[_0xe20912('0x8ac')](_0xe20912('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x57a683[_0xe20912('0x15ed')]()[_0xe20912('0x1618')],'sectionId':0x321});}],'rpcQueues':[_0x3db285('0x354'),function _0x191662(_0x38fc87){var _0x43ff1a=_0x3db285;return _0x38fc87[_0x43ff1a('0x8ac')]('rpc@getOpenchannelQueues');}]},'authenticate':!![],'permissionId':0x32a});}angular['module'](_0x3877e3('0x10ea'),[])['config'](_0x36e6df)['controller'](_0x3877e3('0x12c9'),_0x50451a)[_0x3877e3('0x1d5a')](_0x3877e3('0x4da'),_0x6651e)['factory']('helperClasses',_0x5d7a60)['controller'](_0x3877e3('0x1507'),_0x4725e7);const _0x5466d3=_0x398308['p']+_0x3877e3('0xe74'),_0x2395cf=_0x398308['p']+_0x3877e3('0x1fa2'),_0x11e682=_0x398308['p']+_0x3877e3('0x1f43'),_0x37f04f=_0x398308['p']+_0x3877e3('0x351');_0x568e10[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),'$mdDialog','$q','$translate',_0x3877e3('0x1908'),_0x3877e3('0x226c'),_0x3877e3('0x151f'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'license',_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x568e10(_0x2b6fb2,_0x43f027,_0x1ef2ab,_0x3c916b,_0x9f1837,_0x32ca7b,_0x5728fd,_0x1a5231,_0x57ad9b,_0x214962,_0x4386c6,_0xd369a7,_0x29eb6d,_0x112ebd){var _0x2286d8=_0x3877e3,_0x278b4b=this;_0x278b4b['currentUser']=_0x4386c6[_0x2286d8('0x15ed')](),_0x278b4b[_0x2286d8('0x1a69')]=[],_0x278b4b[_0x2286d8('0x21e')]=_0x29eb6d,_0x278b4b[_0x2286d8('0x2ff')]=_0xd369a7,_0x278b4b[_0x2286d8('0x5ed')]=_0x112ebd,_0x278b4b[_0x2286d8('0x126a')]={},_0x278b4b['passwordPattern']=_0x278b4b[_0x2286d8('0x21e')]&&_0x278b4b[_0x2286d8('0x21e')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x278b4b[_0x2286d8('0x4b4')]=_0x2286d8('0x190f'),_0x278b4b[_0x2286d8('0x151f')]=angular['copy'](_0x57ad9b),_0x278b4b[_0x2286d8('0x226c')]=_0x1a5231,_0x278b4b[_0x2286d8('0x54b')]=![];!_0x278b4b['openchannelAccount']&&(_0x278b4b[_0x2286d8('0x151f')]={'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x278b4b['title']=_0x2286d8('0x2ac'),_0x278b4b['newOpenchannelAccount']=!![]);_0x43f027['params']['id']&&(_0x278b4b[_0x2286d8('0x151f')][_0x2286d8('0xc92')]=_0x43f027[_0x2286d8('0x171b')]['id']);_0x278b4b['addNewOpenchannelAccount']=_0x54b6c9,_0x278b4b[_0x2286d8('0x1aa3')]=_0x4890be,_0x278b4b[_0x2286d8('0x1a17')]=_0x5cfc2d,_0x278b4b[_0x2286d8('0x279')]=_0x40a11e,_0x278b4b[_0x2286d8('0x167')]=_0x2c3147,_0x4386c6[_0x2286d8('0x21de')]('admin')?_0x214962[_0x2286d8('0x11e0')][_0x2286d8('0x595')]({'fields':'id,name','sort':_0x2286d8('0x19fe')})[_0x2286d8('0x1376')][_0x2286d8('0x21ad')](function(_0x12cfa5){var _0x1313d9=_0x2286d8;_0x278b4b['lists']=_0x12cfa5[_0x1313d9('0x1b33')]||[];})[_0x2286d8('0x1c1d')](function(_0x2f5549){var _0x2706bf=_0x2286d8;_0x5728fd[_0x2706bf('0x2092')]({'title':_0x2f5549[_0x2706bf('0x209')]?_0x2706bf('0x22d')+_0x2f5549[_0x2706bf('0x209')]+_0x2706bf('0xa99')+_0x2f5549[_0x2706bf('0x1808')]:_0x2706bf('0xf59'),'msg':_0x2f5549['data']?JSON[_0x2706bf('0x25e')](_0x2f5549[_0x2706bf('0x11c2')]):_0x2f5549[_0x2706bf('0x174f')]()});}):_0x214962[_0x2286d8('0x11e0')][_0x2286d8('0x595')]({'fields':_0x2286d8('0x1aa8'),'sort':'name'})[_0x2286d8('0x1376')][_0x2286d8('0x21ad')](function(_0x1101bc){var _0x32f330=_0x2286d8;_0x278b4b[_0x32f330('0x1972')]=_0x1101bc['rows']||[];})['then'](function(){var _0x56106d=_0x2286d8;return _0x214962[_0x56106d('0xab4')][_0x56106d('0x595')]({'userProfileId':_0x278b4b[_0x56106d('0x123f')][_0x56106d('0x1618')],'sectionId':0x12d})['$promise'];})[_0x2286d8('0x21ad')](function(_0x18dd8c){var _0x6d1765=_0x2286d8,_0x39a956=_0x18dd8c&&_0x18dd8c[_0x6d1765('0x1b33')]?_0x18dd8c[_0x6d1765('0x1b33')][0x0]:null;if(!_0x39a956){var _0x3212f8=[],_0x3102db=null;_0x278b4b['openchannelAccount']&&(_0x3102db=_0x86640f()[_0x6d1765('0x1d2e')](_0x278b4b[_0x6d1765('0x1972')],{'id':Number(_0x278b4b[_0x6d1765('0x151f')]['ListId'])}));for(var _0x21d535=0x0;_0x21d535<_0x278b4b[_0x6d1765('0x1972')][_0x6d1765('0x577')];_0x21d535++){_0x3102db&&_0x278b4b[_0x6d1765('0x1972')][_0x21d535]['id']===_0x3102db['id']&&(_0x278b4b[_0x6d1765('0x1972')][_0x21d535][_0x6d1765('0xba')]=![],_0x3212f8['push'](_0x278b4b['lists'][_0x21d535]));}_0x278b4b['lists']=_0x3212f8;}else{if(!_0x39a956[_0x6d1765('0x80c')])return _0x214962[_0x6d1765('0x185e')]['get']({'sectionId':_0x39a956['id']})[_0x6d1765('0x1376')][_0x6d1765('0x21ad')](function(_0x5be0b0){var _0x3edf6b=_0x6d1765,_0x5148ac=_0x86640f()[_0x3edf6b('0x26c3')](_0x5be0b0[_0x3edf6b('0x1b33')],function(_0x3a4a11){var _0x427080=_0x3edf6b;return _0x86640f()[_0x427080('0x1d2e')](_0x278b4b[_0x427080('0x1972')],{'id':_0x3a4a11[_0x427080('0x675')]});}),_0x5497a8=null;_0x278b4b['openchannelAccount']&&(_0x5497a8=_0x86640f()[_0x3edf6b('0x1d2e')](_0x278b4b[_0x3edf6b('0x1972')],{'id':Number(_0x278b4b['openchannelAccount'][_0x3edf6b('0x815')])}));if(_0x5497a8&&!_0x86640f()[_0x3edf6b('0x2664')](_0x5148ac,['id',_0x5497a8['id']])){var _0x3da645=_0x86640f()['find'](_0x278b4b[_0x3edf6b('0x1972')],{'id':_0x5497a8['id']});_0x3da645[_0x3edf6b('0xba')]=![],_0x5148ac['push'](_0x3da645);}_0x278b4b[_0x3edf6b('0x1972')]=_0x5148ac;});}})[_0x2286d8('0x1c1d')](function(_0x401b84){var _0x1e850c=_0x2286d8;_0x5728fd[_0x1e850c('0x2092')]({'title':_0x401b84['status']?_0x1e850c('0x22d')+_0x401b84[_0x1e850c('0x209')]+_0x1e850c('0xa99')+_0x401b84[_0x1e850c('0x1808')]:_0x1e850c('0xa92'),'msg':_0x401b84[_0x1e850c('0x11c2')]?JSON[_0x1e850c('0x25e')](_0x401b84[_0x1e850c('0x11c2')]):_0x401b84[_0x1e850c('0x174f')]()});});function _0x54b6c9(){var _0x3df252=_0x2286d8;_0x278b4b['errors']=[],_0x214962['openchannelAccount'][_0x3df252('0x186f')](_0x278b4b[_0x3df252('0x151f')])[_0x3df252('0x1376')][_0x3df252('0x21ad')](function(_0x33f201){var _0x151e3c=_0x3df252;_0x278b4b[_0x151e3c('0x226c')]['unshift'](_0x33f201['toJSON']()),_0x5728fd[_0x151e3c('0xdb1')]({'title':_0x151e3c('0x1da3'),'msg':_0x278b4b[_0x151e3c('0x151f')][_0x151e3c('0x19fe')]?_0x278b4b[_0x151e3c('0x151f')][_0x151e3c('0x19fe')]+_0x151e3c('0x1694'):''}),_0x2c3147(_0x33f201);})[_0x3df252('0x1c1d')](function(_0x73696a){var _0x4242e1=_0x3df252;if(_0x73696a[_0x4242e1('0x11c2')]&&_0x73696a[_0x4242e1('0x11c2')][_0x4242e1('0x1a69')]&&_0x73696a['data']['errors']['length']){_0x278b4b[_0x4242e1('0x1a69')]=_0x73696a['data'][_0x4242e1('0x1a69')]||[{'message':_0x73696a[_0x4242e1('0x174f')](),'type':_0x4242e1('0xce7')}];for(var _0x29beb6=0x0;_0x29beb6<_0x73696a[_0x4242e1('0x11c2')][_0x4242e1('0x1a69')][_0x4242e1('0x577')];_0x29beb6+=0x1){_0x5728fd[_0x4242e1('0x2092')]({'title':_0x73696a['data'][_0x4242e1('0x1a69')][_0x29beb6][_0x4242e1('0x7fa')],'msg':_0x73696a[_0x4242e1('0x11c2')]['errors'][_0x29beb6][_0x4242e1('0x1224')]});}}else _0x5728fd[_0x4242e1('0x2092')]({'title':_0x73696a['status']?_0x4242e1('0x22d')+_0x73696a[_0x4242e1('0x209')]+_0x4242e1('0xa99')+_0x73696a[_0x4242e1('0x1808')]:_0x4242e1('0xce7'),'msg':_0x73696a[_0x4242e1('0x11c2')]?JSON[_0x4242e1('0x25e')](_0x73696a[_0x4242e1('0x11c2')][_0x4242e1('0x1224')]):_0x73696a['toString']()});});}function _0x4890be(){var _0x2c93b1=_0x2286d8;_0x278b4b[_0x2c93b1('0x1a69')]=[],_0x214962[_0x2c93b1('0x151f')][_0x2c93b1('0x5ef')]({'id':_0x278b4b[_0x2c93b1('0x151f')]['id']},_0x278b4b[_0x2c93b1('0x151f')])[_0x2c93b1('0x1376')][_0x2c93b1('0x21ad')](function(_0x26040b){var _0x536407=_0x2c93b1,_0x402561=_0x86640f()[_0x536407('0x1d2e')](_0x278b4b[_0x536407('0x226c')],{'id':_0x26040b['id']});_0x402561&&_0x86640f()[_0x536407('0xd0e')](_0x402561,_0x86640f()[_0x536407('0xc50')](_0x26040b[_0x536407('0x3bc')](),_0x86640f()['keys'](_0x402561))),_0x5728fd[_0x536407('0xdb1')]({'title':'OpenchannelAccount\x20properly\x20saved!','msg':_0x278b4b['openchannelAccount'][_0x536407('0x19fe')]?_0x278b4b[_0x536407('0x151f')][_0x536407('0x19fe')]+_0x536407('0x2249'):''}),_0x2c3147(_0x26040b);})['catch'](function(_0x2d0ac3){var _0x4776b2=_0x2c93b1;if(_0x2d0ac3['data']&&_0x2d0ac3[_0x4776b2('0x11c2')][_0x4776b2('0x1a69')]&&_0x2d0ac3[_0x4776b2('0x11c2')][_0x4776b2('0x1a69')][_0x4776b2('0x577')]){_0x278b4b['errors']=_0x2d0ac3[_0x4776b2('0x11c2')][_0x4776b2('0x1a69')]||[{'message':_0x2d0ac3[_0x4776b2('0x174f')](),'type':_0x4776b2('0x1c5a')}];for(var _0x5a4276=0x0;_0x5a4276<_0x2d0ac3[_0x4776b2('0x11c2')][_0x4776b2('0x1a69')][_0x4776b2('0x577')];_0x5a4276++){_0x5728fd['error']({'title':_0x2d0ac3['data'][_0x4776b2('0x1a69')][_0x5a4276][_0x4776b2('0x7fa')],'msg':_0x2d0ac3[_0x4776b2('0x11c2')]['errors'][_0x5a4276][_0x4776b2('0x1224')]});}}else _0x5728fd[_0x4776b2('0x2092')]({'title':_0x2d0ac3['status']?_0x4776b2('0x22d')+_0x2d0ac3['status']+_0x4776b2('0xa99')+_0x2d0ac3[_0x4776b2('0x1808')]:_0x4776b2('0x1c5a'),'msg':_0x2d0ac3[_0x4776b2('0x11c2')]?JSON[_0x4776b2('0x25e')](_0x2d0ac3[_0x4776b2('0x11c2')][_0x4776b2('0x1224')]):_0x2d0ac3[_0x4776b2('0x174f')]()});});}function _0x5cfc2d(_0xc07dba){var _0x49170d=_0x2286d8;_0x278b4b[_0x49170d('0x1a69')]=[];var _0x13bf59=_0x3c916b['confirm']()[_0x49170d('0x4b4')](_0x49170d('0x196b'))['content']('The\x20openchannelAccount\x20will\x20be\x20deleted.')[_0x49170d('0x7a7')]('Delete\x20OpenchannelAccount')['ok'](_0x49170d('0xbfd'))['cancel'](_0x49170d('0x1f40'))[_0x49170d('0x1e6d')](_0xc07dba);_0x3c916b['show'](_0x13bf59)[_0x49170d('0x21ad')](function(){var _0x4185a6=_0x49170d;_0x214962[_0x4185a6('0x151f')][_0x4185a6('0x1164')]({'id':_0x278b4b[_0x4185a6('0x151f')]['id']})[_0x4185a6('0x1376')][_0x4185a6('0x21ad')](function(){var _0x1efaa7=_0x4185a6;_0x86640f()[_0x1efaa7('0x16a2')](_0x278b4b[_0x1efaa7('0x226c')],{'id':_0x278b4b[_0x1efaa7('0x151f')]['id']}),_0x5728fd[_0x1efaa7('0xdb1')]({'title':_0x1efaa7('0x273d'),'msg':(_0x278b4b[_0x1efaa7('0x151f')][_0x1efaa7('0x19fe')]||'openchannelAccount')+_0x1efaa7('0xb4a')}),_0x2c3147(_0x278b4b[_0x1efaa7('0x151f')]);})[_0x4185a6('0x1c1d')](function(_0x6652bd){var _0x4b6133=_0x4185a6;if(_0x6652bd['data']&&_0x6652bd[_0x4b6133('0x11c2')][_0x4b6133('0x1a69')]&&_0x6652bd[_0x4b6133('0x11c2')][_0x4b6133('0x1a69')]['length']){_0x278b4b[_0x4b6133('0x1a69')]=_0x6652bd[_0x4b6133('0x11c2')][_0x4b6133('0x1a69')]||[{'message':_0x6652bd[_0x4b6133('0x174f')](),'type':'api.openchannelAccount.delete'}];for(var _0xd54ebc=0x0;_0xd54ebc<_0x6652bd[_0x4b6133('0x11c2')]['errors'][_0x4b6133('0x577')];_0xd54ebc++){_0x5728fd[_0x4b6133('0x2092')]({'title':_0x6652bd[_0x4b6133('0x11c2')][_0x4b6133('0x1a69')][_0xd54ebc]['type'],'msg':_0x6652bd['data'][_0x4b6133('0x1a69')][_0xd54ebc]['message']});}}else _0x5728fd[_0x4b6133('0x2092')]({'title':_0x6652bd['status']?_0x4b6133('0x22d')+_0x6652bd[_0x4b6133('0x209')]+'\x20-\x20'+_0x6652bd[_0x4b6133('0x1808')]:_0x4b6133('0x21ec'),'msg':_0x6652bd[_0x4b6133('0x11c2')]?JSON[_0x4b6133('0x25e')](_0x6652bd[_0x4b6133('0x11c2')][_0x4b6133('0x1224')]):_0x6652bd['message']||_0x6652bd['toString']()});});},function(){});}function _0x40a11e(_0x26e511){return _0x26e511===null?undefined:new Date(_0x26e511);}function _0x2c3147(_0x4dd539){var _0x5632d9=_0x2286d8;_0x3c916b[_0x5632d9('0x1c24')](_0x4dd539);}}const _0x5dc6c0=_0x568e10,_0x2dd5d6=_0x398308['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/agent/dialog.html/dialog-[chunkhash].html',_0x36dcde=_0x398308['p']+_0x3877e3('0x79a'),_0x5327d4=_0x398308['p']+_0x3877e3('0x26fb'),_0x5f404d=_0x398308['p']+_0x3877e3('0x1869'),_0x1e64a4=_0x398308['p']+_0x3877e3('0x5b4'),_0x31f102=_0x398308['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/interval/dialog.html/dialog-[chunkhash].html',_0x4ceebe=_0x398308['p']+_0x3877e3('0x141e'),_0x333339=_0x398308['p']+_0x3877e3('0x2c3'),_0xb49f8e=_0x398308['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/system/dialog.html/dialog-[chunkhash].html',_0x2c2b8f=_0x398308['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/tag/dialog.html/dialog-[chunkhash].html';_0xcab522[_0x3877e3('0x1a81')]=[_0x3877e3('0xccd'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x1908'),'Auth'];var _0x535c04={'agent':_0x2dd5d6,'autoreply':_0x36dcde,'close':_0x5327d4,'gotoif':_0x5f404d,'gotop':_0x1e64a4,'interval':_0x31f102,'noop':_0x4ceebe,'queue':_0x333339,'system':_0xb49f8e,'tag':_0x2c2b8f};function _0xcab522(_0x16cd99,_0x385e77,_0x5e24dc,_0x1bebe6,_0x51f50d){var _0x1f0067=_0x3877e3,_0x38b886=this;_0x38b886[_0x1f0067('0x123f')]=_0x51f50d[_0x1f0067('0x15ed')](),_0x38b886[_0x1f0067('0x151f')]={},_0x38b886['openchannelAccountApps']={'count':0x0,'rows':[]},_0x38b886[_0x1f0067('0x17b5')]=[],_0x38b886[_0x1f0067('0x5ed')],_0x38b886[_0x1f0067('0x77')]={'sort':_0x1f0067('0xbe5')},_0x38b886[_0x1f0067('0x69a')]=_0x86640f()[_0x1f0067('0x37a')](_0x86640f()[_0x1f0067('0x203e')]([{'app':_0x1f0067('0xc72'),'appType':_0x1f0067('0xc72'),'type':'dialogflow','icon':_0x1f0067('0x1da4'),'interval':_0x1f0067('0x1cc4'),'isApp':!![],'fields':[{'title':_0x1f0067('0x1a6d'),'name':_0x1f0067('0xddb'),'type':_0x1f0067('0xc1e'),'required':!![],'param':0x0},{'title':_0x1f0067('0x10f'),'name':_0x1f0067('0x10f'),'type':_0x1f0067('0x2844'),'defaultValue':_0x1f0067('0x38d'),'values':[{'option':'Danish','value':_0x1f0067('0x1119')},{'option':_0x1f0067('0x2733'),'value':_0x1f0067('0x38d')},{'option':_0x1f0067('0x2a'),'value':_0x1f0067('0x1e5f')},{'option':'Italian','value':_0x1f0067('0x1151')},{'option':'Spanish','value':_0x1f0067('0x931')},{'option':'French','value':_0x1f0067('0x1407')},{'option':_0x1f0067('0x4c'),'value':'\x27id\x27'},{'option':_0x1f0067('0x1aa6'),'value':_0x1f0067('0x1405')},{'option':'Korean\x20(South\x20Korea)','value':_0x1f0067('0xf4d')},{'option':'Dutch','value':'\x27nl\x27'},{'option':_0x1f0067('0x2748'),'value':_0x1f0067('0x1223')},{'option':_0x1f0067('0x1732'),'value':_0x1f0067('0x2282')},{'option':_0x1f0067('0x132c'),'value':_0x1f0067('0x11ab')},{'option':'Russian','value':_0x1f0067('0xf1d')},{'option':'Swedish','value':_0x1f0067('0x1d3e')},{'option':_0x1f0067('0x140c'),'value':_0x1f0067('0xb3a')},{'option':_0x1f0067('0x27e2'),'value':'\x27uk\x27'},{'option':_0x1f0067('0x1aa4'),'value':_0x1f0067('0x22b3')},{'option':_0x1f0067('0x20f2'),'value':_0x1f0067('0x962')},{'option':'Chinese\x20(Traditional)','value':_0x1f0067('0x22c9')}],'required':!![],'param':0x1},{'title':_0x1f0067('0x1cce'),'name':'welcomemessage','type':_0x1f0067('0x20f9'),'maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':_0x1f0067('0x1c22'),'appType':_0x1f0067('0x1c22'),'type':_0x1f0067('0x1c22'),'icon':_0x1f0067('0x1da4'),'interval':_0x1f0067('0x1cc4'),'isApp':!![],'fields':[{'title':'accesskeyid','name':_0x1f0067('0x21c6'),'type':'text','required':!![],'param':0x0},{'title':_0x1f0067('0x797'),'name':_0x1f0067('0x797'),'type':_0x1f0067('0xc1e'),'required':!![],'param':0x1},{'title':_0x1f0067('0x20a3'),'name':_0x1f0067('0x20a3'),'type':_0x1f0067('0x2844'),'defaultValue':_0x1f0067('0x20c7'),'values':[{'option':_0x1f0067('0x1a91'),'value':'\x27us-east-1\x27'},{'option':_0x1f0067('0x1b2a'),'value':_0x1f0067('0x2335')},{'option':_0x1f0067('0x1844'),'value':_0x1f0067('0x1cd5')},{'option':_0x1f0067('0x4be'),'value':'\x27ap-southeast-2\x27'}],'required':!![],'param':0x2},{'title':_0x1f0067('0x15fe'),'name':_0x1f0067('0x15fe'),'type':_0x1f0067('0xc1e'),'required':!![],'param':0x3},{'title':_0x1f0067('0x1cce'),'name':'welcomemessage','type':'textarea','maxlength':0xff,'required':![],'param':0x4,'help':!![]}]},{'app':_0x1f0067('0x1809'),'appType':'interval','types':['always','custom',_0x1f0067('0x17fe')],'fields':[],'isApp':![]},{'app':_0x1f0067('0x2101'),'appType':_0x1f0067('0x2101'),'type':_0x1f0067('0x2101'),'icon':_0x1f0067('0x1da4'),'interval':_0x1f0067('0x1cc4'),'required':!![],'isApp':!![],'fields':[{'title':'Value','name':'value','type':_0x1f0067('0xc1e'),'param':0x0}]},{'app':_0x1f0067('0x12b1'),'appType':_0x1f0067('0x12b1'),'type':'system','icon':_0x1f0067('0x1da4'),'interval':'*,*,*,*','required':!![],'isApp':!![],'extraApi':[{'name':_0x1f0067('0x142d'),'field':{'name':_0x1f0067('0x25bb'),'key':_0x1f0067('0x19fe')},'route':_0x1f0067('0x25bb'),'filters':{'fields':_0x1f0067('0x1aa8'),'sort':_0x1f0067('0x19fe'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x1f0067('0x669'),'name':_0x1f0067('0xbf3'),'type':'text','required':!![],'param':0x0},{'title':_0x1f0067('0x2200'),'name':_0x1f0067('0x25bb'),'type':_0x1f0067('0x15e9'),'values':_0x1f0067('0x142d'),'value':_0x1f0067('0x1958'),'option':'variable.name','defaultValues':[{'value':'\x27\x27','option':_0x1f0067('0x2405')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x1f0067('0x23ef'),'appType':'gotop','type':_0x1f0067('0x12ec'),'icon':_0x1f0067('0x1da4'),'interval':_0x1f0067('0x1cc4'),'isApp':!![],'fields':[{'title':'Priority','name':'priority','type':_0x1f0067('0xed8'),'required':!![],'min':0x0,'param':0x0}]},{'app':'gotoif','appType':_0x1f0067('0x262'),'type':_0x1f0067('0x262'),'icon':_0x1f0067('0x1da4'),'interval':_0x1f0067('0x1cc4'),'isApp':!![],'fields':[{'title':_0x1f0067('0x16d8'),'name':_0x1f0067('0x271c'),'type':_0x1f0067('0xc1e'),'required':!![],'param':0x0},{'title':_0x1f0067('0x1a25'),'name':'truepriority','type':_0x1f0067('0xed8'),'min':0x1,'required':!![],'param':0x1},{'title':_0x1f0067('0xe4c'),'name':_0x1f0067('0xe4c'),'type':_0x1f0067('0xed8'),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x1f0067('0xbdd'),'appType':'queue','foreignKey':_0x1f0067('0xe3'),'type':'queue','icon':_0x1f0067('0x1da4'),'interval':_0x1f0067('0x1cc4'),'isApp':!![],'extraApi':[{'name':_0x1f0067('0xb7a'),'field':{'name':_0x1f0067('0xbdd'),'key':_0x1f0067('0x19fe')},'route':_0x1f0067('0x1c'),'filters':{'fields':_0x1f0067('0xfa'),'sort':_0x1f0067('0x19fe'),'nolimit':!![]},'permissions':{'section':0x321}}],'fields':[{'title':_0x1f0067('0x1da'),'name':'queue','type':_0x1f0067('0x15e9'),'values':_0x1f0067('0xb7a'),'value':_0x1f0067('0x126f'),'option':_0x1f0067('0x126f'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x1f0067('0x1149'),'name':'timeout','type':'number','max':0x20c49b,'min':0x0,'defaultValue':0x12c,'required':!![],'param':0x1}]},{'app':_0x1f0067('0x2402'),'appType':'agent','type':'agent','foreignKey':_0x1f0067('0x1dc6'),'icon':_0x1f0067('0x1da4'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x1f0067('0xcb5'),'field':{'name':'agent','key':_0x1f0067('0x19fe')},'route':_0x1f0067('0x1775'),'filters':{'fields':_0x1f0067('0x1aa8'),'sort':_0x1f0067('0x19fe'),'role':_0x1f0067('0x2402'),'nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':_0x1f0067('0x1a44'),'name':'agent','type':_0x1f0067('0x15e9'),'values':_0x1f0067('0xcb5'),'value':_0x1f0067('0x2797'),'option':'agent.name','required':!![],'param':0x0},{'title':_0x1f0067('0x1149'),'name':_0x1f0067('0x2133'),'type':_0x1f0067('0xed8'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x1f0067('0x1b98'),'appType':_0x1f0067('0x1b98'),'type':_0x1f0067('0x1b98'),'icon':_0x1f0067('0x1da4'),'interval':_0x1f0067('0x1cc4'),'isApp':!![],'fields':[{'title':'times','name':_0x1f0067('0x13b6'),'type':_0x1f0067('0x2844'),'defaultValue':'1','values':[{'option':_0x1f0067('0xafd'),'value':'1'},{'option':_0x1f0067('0x342'),'value':'0'}],'required':!![],'param':0x0},{'title':'Text','name':_0x1f0067('0xc1e'),'type':'textarea','required':!![],'param':0x1}]},{'app':_0x1f0067('0x22f'),'appType':_0x1f0067('0x22f'),'type':_0x1f0067('0x22f'),'icon':_0x1f0067('0x1da4'),'interval':_0x1f0067('0x1cc4'),'isApp':!![],'fields':[{'title':_0x1f0067('0x1d3d'),'name':_0x1f0067('0x22c8'),'type':_0x1f0067('0xc1e'),'required':!![],'param':0x0}]},{'app':_0x1f0067('0x907'),'appType':_0x1f0067('0x907'),'type':_0x1f0067('0x907'),'foreignKey':'TagId','icon':_0x1f0067('0x1da4'),'interval':_0x1f0067('0x1cc4'),'isApp':!![],'extraApi':[{'name':_0x1f0067('0x1889'),'field':{'name':_0x1f0067('0x907'),'key':_0x1f0067('0x19fe')},'route':_0x1f0067('0x907'),'filters':{'fields':_0x1f0067('0x1aa8'),'sort':_0x1f0067('0x19fe'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x1f0067('0x295'),'name':_0x1f0067('0x907'),'type':'apiselect','values':_0x1f0067('0x1889'),'value':_0x1f0067('0x1706'),'option':'tag.name','required':!![],'param':0x0}]}],[_0x1f0067('0x1f94')]),{'isApp':![]}),_0x38b886[_0x1f0067('0x17fe')]={'group':{'name':_0x1f0067('0xcd'),'pull':_0x1f0067('0x1af0')},'animation':0x64,'sort':![]},_0x38b886[_0x1f0067('0x21d8')]={'group':{'name':_0x1f0067('0x1627'),'put':_0x1f0067('0xcd')},'animation':0x64,'onAdd':function _0x315fb1(_0x18c270){var _0x26c561=_0x1f0067;_0x2c6c73(_0x18c270,_0x18c270[_0x26c561('0x5b8')]);},'onSort':function _0x3d409a(){_0x562db0();}},_0x38b886['init']=_0x1393e2,_0x38b886['deleteConfirm']=_0x1c366c,_0x38b886[_0x1f0067('0x1ac7')]=_0x16f692,_0x38b886[_0x1f0067('0x1b2c')]=_0x2c6c73,_0x38b886[_0x1f0067('0xb14')]=_0x3ce244,_0x38b886[_0x1f0067('0x66d')]=_0x501577,_0x38b886[_0x1f0067('0x2304')]=_0x2ea559,_0x38b886[_0x1f0067('0x14aa')]=_0x562db0,_0x38b886[_0x1f0067('0x1ceb')]=_0x2387b7;function _0x1393e2(_0x2f8464,_0x4c8261){var _0xd00c56=_0x1f0067;_0x38b886[_0xd00c56('0x151f')]=_0x2f8464,_0x38b886[_0xd00c56('0x5ed')]=typeof _0x4c8261!=='undefined'?_0x4c8261:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x38b886['applications'][_0xd00c56('0x30')]=!_0x38b886[_0xd00c56('0x5ed')]['canEdit']?!![]:![],_0x38b886['query']['id']=_0x2f8464['id'],_0x38b886[_0xd00c56('0x77')][_0xd00c56('0x9f2')]=!![],_0x38b886[_0xd00c56('0x77')][_0xd00c56('0x1dc3')]=!![],_0x38b886['getOpenchannelAccountApps'](),_0x38b886[_0xd00c56('0x1ceb')]();}function _0x1c366c(_0x1e21c1,_0x164af8,_0x445412){var _0x147fb4=_0x1f0067,_0x2eecf0=_0x385e77[_0x147fb4('0xa33')]()[_0x147fb4('0x4b4')](_0x147fb4('0x5b2'))[_0x147fb4('0x276b')](_0x147fb4('0x622')+_0x1e21c1[_0x147fb4('0x1f94')]+''+_0x147fb4('0x25e0'))[_0x147fb4('0x7a7')](_0x147fb4('0x1b99'))[_0x147fb4('0x1e6d')](_0x445412)['ok']('OK')['cancel'](_0x147fb4('0x284b'));_0x385e77[_0x147fb4('0x853')](_0x2eecf0)['then'](function(){_0x38b886['openchannelAccountApps']['rows']['splice'](_0x164af8,0x1),_0x562db0();},function(){var _0x39a7c0=_0x147fb4;console[_0x39a7c0('0x6fb')](_0x39a7c0('0x284b'));});}function _0x2c6c73(_0x21bea5,_0x58f466){var _0x4a4629=_0x1f0067;if(_0x38b886['openchannelAccountApps']['rows'][_0x4a4629('0x577')]){var _0x21845d=_0x38b886[_0x4a4629('0x84c')][_0x4a4629('0x1b33')][_0x58f466]?_0x38b886[_0x4a4629('0x84c')]['rows'][_0x58f466]:_0x38b886[_0x4a4629('0x84c')][_0x4a4629('0x1b33')][0x0],_0x496dad=(_0x21845d['appType']||_0x21845d[_0x4a4629('0x1f94')])[_0x4a4629('0xac2')]();_0x385e77[_0x4a4629('0x853')]({'controller':_0x4a4629('0x219a')[_0x4a4629('0x1877')](_0x496dad,_0x4a4629('0x19d9')),'controllerAs':'vm','templateUrl':_0x535c04[_0x496dad],'parent':angular[_0x4a4629('0x1676')](_0x5e24dc[_0x4a4629('0x2452')]),'targetEvent':_0x21bea5,'clickOutsideToClose':!![],'locals':{'openchannelAccountApp':_0x21845d,'openchannelAccount':_0x38b886[_0x4a4629('0x151f')],'crudPermissions':_0x38b886[_0x4a4629('0x5ed')]}})[_0x4a4629('0x21ad')](function(_0x4e7474){var _0x404f87=_0x4a4629;_0x4e7474&&(_0x4e7474['id']?_0x38b886[_0x404f87('0x84c')]['rows'][_0x58f466]=_0x4e7474:_0x38b886['openchannelAccountApps']['rows'][_0x404f87('0xafe')](_0x58f466,0x0,_0x4e7474),_0x562db0());})[_0x4a4629('0x1c1d')](function(_0xa31492){var _0x5494bb=_0x4a4629;_0xa31492&&_0x1bebe6[_0x5494bb('0x2092')]({'title':_0xa31492['status']?_0x5494bb('0x22d')+_0xa31492[_0x5494bb('0x209')]+_0x5494bb('0xa99')+_0xa31492[_0x5494bb('0x1808')]:_0x5494bb('0x20b3'),'msg':_0xa31492[_0x5494bb('0x11c2')]?JSON['stringify'](_0xa31492[_0x5494bb('0x11c2')]):_0xa31492['toString']()});});}}function _0x3ce244(_0x6edc41,_0x1d890b){var _0x1aa129=_0x1f0067;if(_0x38b886[_0x1aa129('0x84c')]['rows'][_0x1aa129('0x577')]){var _0x582fd9=_0x38b886[_0x1aa129('0x84c')][_0x1aa129('0x1b33')][_0x1d890b]?_0x38b886['openchannelAccountApps'][_0x1aa129('0x1b33')][_0x1d890b]:_0x38b886[_0x1aa129('0x84c')][_0x1aa129('0x1b33')][0x0];_0x385e77[_0x1aa129('0x853')]({'controller':_0x1aa129('0x1384'),'controllerAs':'vm','templateUrl':_0x31f102,'parent':angular[_0x1aa129('0x1676')](_0x5e24dc['body']),'targetEvent':_0x6edc41,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x582fd9['interval'],'IntervalId':_0x582fd9[_0x1aa129('0x1ac8')],'application':!![]},'intervals':[],'crudPermissions':_0x38b886[_0x1aa129('0x5ed')]}})[_0x1aa129('0x21ad')](function(_0x5ab55d){var _0x570409=_0x1aa129;_0x5ab55d&&(_0x582fd9[_0x570409('0xa07')]=_0x5ab55d[_0x570409('0xa07')]||_0x570409('0x1cc4'),_0x582fd9[_0x570409('0x1ac8')]=_0x5ab55d[_0x570409('0x1ac8')]||null,_0x562db0());});}}function _0x562db0(){var _0xb86814=_0x1f0067,_0x258a8c=0x1,_0x422acb=[];for(var _0x4328d1=0x0;_0x4328d1<_0x38b886[_0xb86814('0x84c')][_0xb86814('0x1b33')][_0xb86814('0x577')];_0x4328d1++){var _0x428315=_0x38b886['openchannelAccountApps'][_0xb86814('0x1b33')][_0x4328d1],_0x1644ae=[],_0x22717c=[];_0x428315[_0xb86814('0x2530')]=_0x428315[_0xb86814('0xa07')]!==_0xb86814('0x1cc4')?[_0x428315['interval']]:_0x428315[_0xb86814('0x1ac8')]?_0x86640f()[_0xb86814('0x26c3')](_0x86640f()['filter'](_0x38b886['intervals'][_0xb86814('0x1b33')],{'IntervalId':_0x428315['IntervalId']}),_0xb86814('0xa07')):[],_0x428315[_0xb86814('0x244c')]=_0x38b886['openchannelAccount'][_0xb86814('0x244c')],_0x428315[_0xb86814('0x24b7')]=_0x38b886[_0xb86814('0x151f')]['exten'],_0x428315[_0xb86814('0x7fa')]&&(_0x428315[_0xb86814('0x7fa')]=_0x428315[_0xb86814('0x7fa')]['toLowerCase']()),_0x428315[_0xb86814('0xbe5')]=_0x1644ae['length']?_0x86640f()[_0xb86814('0x25d5')](_0x1644ae)['priority']+0x1:_0x258a8c,_0x258a8c=(_0x22717c[_0xb86814('0x577')]?_0x86640f()[_0xb86814('0x25d5')](_0x22717c)[_0xb86814('0xbe5')]:_0x428315[_0xb86814('0xbe5')])+0x1,_0x422acb=_0x86640f()[_0xb86814('0x1877')](_0x422acb,_0x1644ae,[_0x428315],_0x22717c);}_0x16cd99[_0xb86814('0x151f')]['addApplications']({'id':_0x38b886[_0xb86814('0x151f')]['id']},_0x86640f()[_0xb86814('0x203e')](_0x422acb,_0xb86814('0xbe5')))[_0xb86814('0x1376')][_0xb86814('0x21ad')](function(_0x2a521a){var _0x2ed6e1=_0xb86814;_0x38b886[_0x2ed6e1('0x84c')][_0x2ed6e1('0x1b33')]=_0x2a521a['rows'];})[_0xb86814('0x1c1d')](function(_0x1ce38e){console['error'](_0x1ce38e);});}function _0x36124c(_0x2b2646){var _0x55e8a2=_0x1f0067;_0x38b886[_0x55e8a2('0x84c')]=_0x2b2646||{'count':0x0,'rows':[]};}function _0x2387b7(){var _0x573402=_0x1f0067;return _0x16cd99[_0x573402('0xa07')]['get']({'fields':_0x573402('0x7b5')})[_0x573402('0x1376')][_0x573402('0x21ad')](function(_0x118d5e){var _0x108a9c=_0x573402;_0x38b886[_0x108a9c('0x2530')]=_0x118d5e;})['catch'](function(_0x330fd9){var _0x581132=_0x573402;console[_0x581132('0x2092')](_0x330fd9);});}function _0x16f692(){var _0x244fab=_0x1f0067;_0x38b886[_0x244fab('0x71b')]=_0x16cd99[_0x244fab('0x151f')][_0x244fab('0x1290')](_0x38b886[_0x244fab('0x77')],_0x36124c)['$promise'];}function _0x501577(_0xd248ad){var _0x340513=_0x1f0067;_0x86640f()[_0x340513('0x16a2')](_0x38b886['openchannelAccountApps'][_0x340513('0x1b33')],{'id':_0xd248ad['id']}),_0x562db0(),_0x1bebe6[_0x340513('0xdb1')]({'title':'App\x20deleted!','msg':_0xd248ad['app']?_0xd248ad[_0x340513('0x1f94')]+_0x340513('0xb4a'):''});}function _0x2ea559(_0x293232){var _0x3c8d80=_0x1f0067,_0x515b27=_0x385e77[_0x3c8d80('0xa33')]()[_0x3c8d80('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?')[_0x3c8d80('0x276b')](_0x3c8d80('0x622')+_0x38b886[_0x3c8d80('0x17b5')][_0x3c8d80('0x577')]+_0x3c8d80('0xd74')+_0x3c8d80('0x25e0'))['ariaLabel'](_0x3c8d80('0x89d'))[_0x3c8d80('0x1e6d')](_0x293232)['ok']('OK')[_0x3c8d80('0x3b5')](_0x3c8d80('0x284b'));_0x385e77[_0x3c8d80('0x853')](_0x515b27)[_0x3c8d80('0x21ad')](function(){var _0x2c5adc=_0x3c8d80;_0x38b886[_0x2c5adc('0x17b5')][_0x2c5adc('0x1a52')](function(_0x347d8e){var _0x583066=_0x2c5adc;_0x86640f()['remove'](_0x38b886[_0x583066('0x84c')][_0x583066('0x1b33')],{'id':_0x347d8e['id']});}),_0x38b886['selectedOpenchannelAccountApps']=[],_0x562db0();});}}const _0x4ea314=_0xcab522;_0x5a3ba7[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),'api',_0x3877e3('0x151f'),_0x3877e3('0x226c'),_0x3877e3('0x116a'),_0x3877e3('0x13c1'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x5a3ba7(_0xeb72f6,_0x15ccdf,_0x3c743c,_0xf80e6f,_0x39eda8,_0x26b9a2,_0x179743,_0x427275,_0x183520,_0x5acc69){var _0x1735ac=_0x3877e3,_0x4ccd75=this;_0x4ccd75[_0x1735ac('0x123f')]=_0x183520[_0x1735ac('0x15ed')](),_0x4ccd75[_0x1735ac('0x151f')]=_0x39eda8,_0x4ccd75[_0x1735ac('0x5ed')]=_0x5acc69,_0x4ccd75['realtime']=_0x179743,_0x4ccd75[_0x1735ac('0x1b9a')]=[],_0x4ccd75[_0x1735ac('0x1e09')]=[],_0x4ccd75['selectedItems']=[],_0x4ccd75[_0x1735ac('0x91b')]=[],_0x4ccd75[_0x1735ac('0x2584')]=[],_0x4ccd75[_0x1735ac('0x1bb9')]=![],_0x4ccd75[_0x1735ac('0x1081')]=_0x3c3336,_0x4ccd75[_0x1735ac('0x265b')]=_0x2d28f4,_0x4ccd75[_0x1735ac('0x167')]=_0x45a7cf,_0x4ccd75[_0x1735ac('0x909')]={'readOnly':!_0x4ccd75['crudPermissions'][_0x1735ac('0x6e2')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x1735ac('0x19fe'),'line1':_0x1735ac('0x20f5'),'line2':[_0x1735ac('0x19fe'),'internal'],'line3':'','labelAll':_0x427275['instant']('OPENCHANNEL.ALL_AGENTS'),'labelSelected':_0x427275[_0x1735ac('0x183e')]('OPENCHANNEL.SELECTED_AGENTS'),'transferCallback':function _0x10164a(){var _0x5df666=_0x1735ac,_0x1f1040=_0x86640f()[_0x5df666('0x1473')](_0x4ccd75[_0x5df666('0x2584')],_0x4ccd75[_0x5df666('0x2629')],'id');_0x4ccd75['pendingChanges']=_0x86640f()['isEmpty'](_0x1f1040)?![]:!![];}};function _0x3c3336(){var _0x4e99a6=_0x1735ac;return _0x183520[_0x4e99a6('0x21de')](_0x4e99a6('0x1bd8'))?_0x6f92a1()[_0x4e99a6('0x1c1d')](function(_0xa6c03){var _0x3b0a85=_0x4e99a6;_0x3c743c[_0x3b0a85('0x2092')]({'title':_0xa6c03[_0x3b0a85('0x209')]?_0x3b0a85('0x22d')+_0xa6c03['status']+_0x3b0a85('0xa99')+_0xa6c03[_0x3b0a85('0x1808')]:_0x3b0a85('0x1381'),'msg':_0xa6c03[_0x3b0a85('0x209')]?JSON[_0x3b0a85('0x25e')](_0xa6c03[_0x3b0a85('0x11c2')]):_0xa6c03[_0x3b0a85('0x174f')]()});}):_0xce7bd1()[_0x4e99a6('0x21ad')](function(_0x587567){var _0x359fd4=_0x4e99a6;return _0x4ccd75[_0x359fd4('0x26ad')]=_0x587567,_0x6f92a1();})[_0x4e99a6('0x1c1d')](function(_0x5060ed){var _0xe15811=_0x4e99a6;_0x3c743c[_0xe15811('0x2092')]({'title':_0x5060ed[_0xe15811('0x209')]?_0xe15811('0x22d')+_0x5060ed[_0xe15811('0x209')]+'\x20-\x20'+_0x5060ed[_0xe15811('0x1808')]:_0xe15811('0x1381'),'msg':_0x5060ed['status']?JSON[_0xe15811('0x25e')](_0x5060ed[_0xe15811('0x11c2')]):_0x5060ed[_0xe15811('0x174f')]()});});}function _0xce7bd1(){return _0x15ccdf(function(_0x4df95a,_0x2e62d3){var _0x2e40e9=a0_0x2e7f;_0xf80e6f[_0x2e40e9('0xab4')][_0x2e40e9('0x595')]({'userProfileId':_0x4ccd75[_0x2e40e9('0x123f')][_0x2e40e9('0x1618')],'name':_0x2e40e9('0xfed')})[_0x2e40e9('0x1376')][_0x2e40e9('0x21ad')](function(_0x2071ed){var _0x54489a=_0x2e40e9,_0x47d58d=_0x2071ed&&_0x2071ed[_0x54489a('0x1b33')]?_0x2071ed[_0x54489a('0x1b33')][0x0]:null;_0x4df95a(_0x47d58d);})[_0x2e40e9('0x1c1d')](function(_0x31d1ab){_0x2e62d3(_0x31d1ab);});});}function _0x6f92a1(){return _0x15ccdf(function(_0x14260b,_0x569d1d){var _0xe0e68f=a0_0x2e7f;return _0xfcaed2()[_0xe0e68f('0x21ad')](function(_0x2a0f82){var _0x204257=_0xe0e68f;return _0x4ccd75[_0x204257('0x1b9a')]=_0x2a0f82[_0x204257('0x1b33')]?_0x2a0f82[_0x204257('0x1b33')]:[],_0x183520[_0x204257('0x21de')](_0x204257('0x1bd8'))?_0x2a0f82:_0x4ccd75[_0x204257('0x26ad')]?_0x4ccd75[_0x204257('0x26ad')][_0x204257('0x80c')]?_0x2a0f82:_0x57fff6():null;})[_0xe0e68f('0x21ad')](function(_0x43ebaa){var _0x17a5f0=_0xe0e68f,_0x3ddaa6=_0x43ebaa&&_0x43ebaa[_0x17a5f0('0x1b33')]?_0x43ebaa[_0x17a5f0('0x1b33')]:[];return _0x4ccd75['allowedItems']=_0x86640f()[_0x17a5f0('0x26c3')](_0x3ddaa6,function(_0x11e5fc){var _0x3abc86=_0x17a5f0;return _0x86640f()[_0x3abc86('0x1d2e')](_0x4ccd75[_0x3abc86('0x1b9a')],{'id':_0x183520[_0x3abc86('0x21de')]('admin')||_0x4ccd75[_0x3abc86('0x26ad')][_0x3abc86('0x80c')]?_0x11e5fc['id']:_0x11e5fc[_0x3abc86('0x675')]});}),_0x4ccd75[_0x17a5f0('0x91b')]=angular[_0x17a5f0('0xd75')](_0x4ccd75[_0x17a5f0('0x1e09')]),_0x4ccd75[_0x17a5f0('0x1b9a')]['forEach'](function(_0x56d613){var _0x41296a=_0x17a5f0,_0x5235eb=_0x86640f()[_0x41296a('0x1d2e')](_0x4ccd75[_0x41296a('0x1e09')],{'id':_0x56d613['id']});_0x183520[_0x41296a('0x21de')]('admin')?_0x56d613['isValid']=!![]:_0x56d613['isValid']=typeof _0x5235eb!=='undefined'?!![]:![];}),_0x1bd7c1();})[_0xe0e68f('0x21ad')](function(_0x2c1813){var _0x42263b=_0xe0e68f,_0x2af08d=_0x2c1813&&_0x2c1813['rows']?_0x2c1813[_0x42263b('0x1b33')]:[];_0x4ccd75[_0x42263b('0x2629')]=_0x86640f()[_0x42263b('0x26c3')](_0x2af08d,function(_0x5ca8d8){var _0x3f67ac=_0x42263b,_0x1be344=_0x86640f()[_0x3f67ac('0x1d2e')](_0x4ccd75[_0x3f67ac('0x1b9a')],{'id':_0x5ca8d8['id']});return _0x1be344[_0x3f67ac('0x1195')]=_0x5ca8d8[_0x3f67ac('0x2b9')]?_0x3f67ac('0x5c2')+_0x5ca8d8[_0x3f67ac('0x2b9')]['penalty']:'',_0x1be344[_0x3f67ac('0x201f')]=typeof _0x5ca8d8[_0x3f67ac('0x201f')]!=='undefined'?'<'+_0x5ca8d8[_0x3f67ac('0x201f')]+'>':'',_0x1be344;}),_0x4ccd75[_0x42263b('0x2584')]=angular[_0x42263b('0xd75')](_0x4ccd75['selectedItems']),_0x4ccd75[_0x42263b('0x909')][_0x42263b('0x2629')]=_0x4ccd75[_0x42263b('0x2629')],_0x4ccd75['dualMultiselectOptions']['items']=_0x86640f()['differenceBy'](_0x4ccd75[_0x42263b('0x1e09')],_0x4ccd75[_0x42263b('0x909')][_0x42263b('0x2629')],'id'),_0x14260b();})[_0xe0e68f('0x1c1d')](function(_0x277e66){_0x569d1d(_0x277e66);});});}function _0x57fff6(){return _0x15ccdf(function(_0x17cc81,_0x159663){var _0x223c79=a0_0x2e7f;return _0xf80e6f[_0x223c79('0x185e')][_0x223c79('0x595')]({'sectionId':_0x4ccd75[_0x223c79('0x26ad')]['id'],'nolimit':!![]})[_0x223c79('0x1376')][_0x223c79('0x21ad')](function(_0x53350f){_0x17cc81(_0x53350f);})['catch'](function(_0x2c7ab0){_0x159663(_0x2c7ab0);});});}function _0x1bd7c1(){return _0x15ccdf(function(_0x31d875,_0x379d09){var _0x22dcee=a0_0x2e7f;return _0xf80e6f[_0x22dcee('0x151f')]['getAgents']({'id':_0x4ccd75[_0x22dcee('0x151f')]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':'agent'})[_0x22dcee('0x1376')]['then'](function(_0xe0b276){_0x31d875(_0xe0b276);})['catch'](function(_0x3f9416){_0x379d09(_0x3f9416);});});}function _0xfcaed2(){return _0x15ccdf(function(_0x33db7a,_0xb53131){var _0x4a61aa=a0_0x2e7f;return _0xf80e6f['user']['get']({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x4a61aa('0x2402')})[_0x4a61aa('0x1376')][_0x4a61aa('0x21ad')](function(_0x248960){_0x33db7a(_0x248960);})[_0x4a61aa('0x1c1d')](function(_0x1ab48e){_0xb53131(_0x1ab48e);});});}function _0x2258c8(_0x53ca36){return _0x15ccdf(function(_0x728fa2,_0x833e6){var _0x314e3a=a0_0x2e7f;_0x86640f()[_0x314e3a('0x23aa')](_0x53ca36)?_0x728fa2():_0xf80e6f[_0x314e3a('0x151f')][_0x314e3a('0x1116')]({'id':_0x4ccd75['openchannelAccount']['id'],'ids':_0x86640f()[_0x314e3a('0x26c3')](_0x53ca36,'id')})['$promise'][_0x314e3a('0x21ad')](function(){_0x728fa2();})[_0x314e3a('0x1c1d')](function(_0x2d5dba){_0x833e6(_0x2d5dba);});});}function _0x1f836b(_0x438071){return _0x15ccdf(function(_0x30e11f,_0x16face){var _0x13de36=a0_0x2e7f;_0x86640f()['isEmpty'](_0x438071)?_0x30e11f():_0xf80e6f[_0x13de36('0x151f')][_0x13de36('0x59e')]({'id':_0x4ccd75[_0x13de36('0x151f')]['id'],'ids':_0x86640f()[_0x13de36('0x26c3')](_0x438071,'id')})[_0x13de36('0x1376')][_0x13de36('0x21ad')](function(){_0x30e11f();})[_0x13de36('0x1c1d')](function(_0x3a567a){_0x16face(_0x3a567a);});});}function _0x2d28f4(){var _0x493721=_0x1735ac,_0x249e3f=_0x86640f()['differenceBy'](_0x4ccd75[_0x493721('0x2584')],_0x4ccd75[_0x493721('0x2629')],'id'),_0x52254a=_0x86640f()['differenceBy'](_0x4ccd75[_0x493721('0x2629')],_0x4ccd75[_0x493721('0x2584')],'id');return _0x1f836b(_0x249e3f)[_0x493721('0x21ad')](function(){return _0x2258c8(_0x52254a);})[_0x493721('0x21ad')](function(){var _0x1f5fa6=_0x493721;_0x4ccd75[_0x1f5fa6('0x1bb9')]=![],_0x4ccd75['startingAllowedItems']=angular[_0x1f5fa6('0xd75')](_0x4ccd75['allowedItems']),_0x4ccd75['startingSelectedItems']=angular[_0x1f5fa6('0xd75')](_0x4ccd75[_0x1f5fa6('0x2629')]),_0x3c743c[_0x1f5fa6('0xdb1')]({'title':_0x1f5fa6('0x2804'),'msg':_0x1f5fa6('0x2239')});})[_0x493721('0x1c1d')](function(_0x43da86){var _0x29df89=_0x493721;_0x3c743c[_0x29df89('0x2092')]({'title':_0x43da86[_0x29df89('0x209')]?_0x29df89('0x22d')+_0x43da86['status']+_0x29df89('0xa99')+_0x43da86[_0x29df89('0x1808')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x43da86[_0x29df89('0x209')]?JSON[_0x29df89('0x25e')](_0x43da86[_0x29df89('0x11c2')]):_0x43da86[_0x29df89('0x174f')]()});});}function _0x45a7cf(){var _0x468f5d=_0x1735ac;_0xeb72f6[_0x468f5d('0x1c24')]();}}const _0xefcdb4=_0x5a3ba7;_0x432cbd[_0x3877e3('0x1a81')]=['$mdDialog','$q',_0x3877e3('0x1908'),_0x3877e3('0x173b'),_0x3877e3('0x151f'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x432cbd(_0x286bdb,_0x1f6578,_0x4de451,_0x147c64,_0x121020,_0x4b60eb,_0x2ca214,_0x3731a5){var _0x1c616d=_0x3877e3,_0x4b19b5=this;_0x4b19b5[_0x1c616d('0x123f')]=_0x2ca214[_0x1c616d('0x15ed')](),_0x4b19b5[_0x1c616d('0x1a69')]=[],_0x4b19b5[_0x1c616d('0x4b4')]='OPENCHANNEL.EDIT_'+(_0x147c64[_0x1c616d('0x522')]||_0x147c64[_0x1c616d('0x1f94')])[_0x1c616d('0x2e8')](),_0x4b19b5['agent']=angular[_0x1c616d('0xd75')](_0x147c64),_0x4b19b5[_0x1c616d('0x5ed')]=_0x3731a5,_0x4b19b5[_0x1c616d('0x126a')]={};if(_0x4b19b5[_0x1c616d('0x2402')][_0x1c616d('0x23c2')])switch(_0x4b19b5[_0x1c616d('0x2402')][_0x1c616d('0x522')]?_0x4b19b5[_0x1c616d('0x2402')][_0x1c616d('0x522')][_0x1c616d('0xac2')]():_0x4b19b5['agent'][_0x1c616d('0x1f94')][_0x1c616d('0xac2')]()){case _0x1c616d('0xf50'):break;case'dialogflow':{var _0x55f249=_0x4b19b5[_0x1c616d('0x2402')][_0x1c616d('0x23c2')][_0x1c616d('0x1af5')](',');_0x4b19b5['agent'][_0x1c616d('0xddb')]=_0x55f249[0x0],_0x4b19b5['agent'][_0x1c616d('0x10f')]=_0x55f249[0x1],_0x4b19b5['agent'][_0x1c616d('0x1cce')]=_0x55f249[_0x1c616d('0xb3d')](0x2,_0x55f249['length'])[_0x1c616d('0x136')](',');}break;case'amazonlex':{var _0x8454cf=_0x4b19b5[_0x1c616d('0x2402')][_0x1c616d('0x23c2')][_0x1c616d('0x1af5')](',');_0x4b19b5[_0x1c616d('0x2402')][_0x1c616d('0x21c6')]=_0x8454cf[0x0],_0x4b19b5[_0x1c616d('0x2402')][_0x1c616d('0x797')]=_0x8454cf[0x1],_0x4b19b5[_0x1c616d('0x2402')][_0x1c616d('0x20a3')]=_0x8454cf[0x2],_0x4b19b5[_0x1c616d('0x2402')][_0x1c616d('0x15fe')]=_0x8454cf[0x3],_0x4b19b5[_0x1c616d('0x2402')][_0x1c616d('0x1cce')]=_0x8454cf[_0x1c616d('0xb3d')](0x4,_0x8454cf['length'])[_0x1c616d('0x136')](',');}break;case _0x1c616d('0x1b98'):{var _0x437bd7=_0x4b19b5[_0x1c616d('0x2402')][_0x1c616d('0x23c2')][_0x1c616d('0x1af5')](',');_0x4b19b5[_0x1c616d('0x2402')]['times']=isNaN(_0x437bd7[0x0])?_0x437bd7[0x0]:parseInt(_0x437bd7[0x0],0xa),_0x4b19b5['agent']['text']=_0x437bd7['slice'](0x1,_0x437bd7[_0x1c616d('0x577')])[_0x1c616d('0x136')](',');}break;case'message':_0x4b19b5[_0x1c616d('0x2402')][_0x1c616d('0xc1e')]=_0x4b19b5['agent']['appdata'];break;case _0x1c616d('0x1125'):_0x4b19b5[_0x1c616d('0x2402')][_0x1c616d('0x19fe')]=_0x4b19b5['agent'][_0x1c616d('0x23c2')][_0x1c616d('0x1af5')]('=')[0x0],_0x4b19b5['agent'][_0x1c616d('0x2228')]=_0x4b19b5[_0x1c616d('0x2402')][_0x1c616d('0x23c2')][_0x1c616d('0x1af5')]('=')[0x1];break;case _0x1c616d('0x2356'):_0x4b19b5[_0x1c616d('0x2402')][_0x1c616d('0xbf8')]=_0x4b19b5[_0x1c616d('0x2402')]['appdata'];break;default:{var _0xff5d92=_0x4b19b5[_0x1c616d('0x2402')]['appdata'][_0x1c616d('0x1af5')](',');_0x4b19b5[_0x1c616d('0x2402')][_0x1c616d('0x2402')]=_0x86640f()['isEmpty'](_0xff5d92[0x0])?_0xff5d92[0x0]:isNaN(_0xff5d92[0x0])?_0xff5d92[0x0]:parseInt(_0xff5d92[0x0],0xa),_0x4b19b5['agent'][_0x1c616d('0x2133')]=_0x86640f()[_0x1c616d('0x23aa')](_0xff5d92[0x1])?_0xff5d92[0x1]:isNaN(_0xff5d92[0x1])?_0xff5d92[0x1]:parseInt(_0xff5d92[0x1],0xa);}break;}else _0x4b19b5[_0x1c616d('0x2402')][_0x1c616d('0x2133')]=0x1e;_0x4b19b5['agent']['type']&&_0x4b19b5[_0x1c616d('0x2402')][_0x1c616d('0x7fa')][_0x1c616d('0xac2')]()===_0x1c616d('0x2300')&&_0x4b19b5['agent'][_0x1c616d('0x522')][_0x1c616d('0xac2')]()===_0x1c616d('0x2363')&&(_0x4b19b5[_0x1c616d('0x2402')][_0x1c616d('0x1995')]=_0x4b19b5[_0x1c616d('0x2402')][_0x1c616d('0x159e')]?_0x4b19b5['agent'][_0x1c616d('0x159e')][_0x1c616d('0x1af5')]('$')[0x0]:undefined,_0x4b19b5[_0x1c616d('0x2402')][_0x1c616d('0x26f7')]=_0x4b19b5[_0x1c616d('0x2402')][_0x1c616d('0x1f5a')]?_0x1c616d('0x587')+_0x4b19b5[_0x1c616d('0x2402')]['callerID']:undefined);_0x4b19b5[_0x1c616d('0x1da1')]=_0x5cb42a,_0x4b19b5[_0x1c616d('0x167')]=_0x3d1959,_0x2ca214[_0x1c616d('0x21de')]('admin')?_0x4b60eb['user'][_0x1c616d('0x595')]({'fields':_0x1c616d('0x1aa8'),'sort':_0x1c616d('0x19fe'),'role':_0x1c616d('0x2402'),'nolimit':_0x1c616d('0x19bd')})[_0x1c616d('0x1376')][_0x1c616d('0x21ad')](function(_0xa731e2){var _0x1442c4=_0x1c616d;_0x4b19b5['agents']=_0xa731e2[_0x1442c4('0x1b33')]||[];})[_0x1c616d('0x1c1d')](function(_0x3f5fae){var _0x39c434=_0x1c616d;_0x4de451['error']({'title':_0x3f5fae[_0x39c434('0x209')]?_0x39c434('0x22d')+_0x3f5fae[_0x39c434('0x209')]+_0x39c434('0xa99')+_0x3f5fae[_0x39c434('0x1808')]:_0x39c434('0x1381'),'msg':_0x3f5fae[_0x39c434('0x11c2')]?JSON[_0x39c434('0x25e')](_0x3f5fae[_0x39c434('0x11c2')]):_0x3f5fae[_0x39c434('0x174f')]()});}):_0x4b60eb[_0x1c616d('0x1775')][_0x1c616d('0x595')]({'fields':'id,name','sort':_0x1c616d('0x19fe'),'role':_0x1c616d('0x2402'),'nolimit':'true'})[_0x1c616d('0x1376')][_0x1c616d('0x21ad')](function(_0x349e7e){var _0x3a97cd=_0x1c616d;_0x4b19b5['agents']=_0x349e7e[_0x3a97cd('0x1b33')]||[];})[_0x1c616d('0x21ad')](function(){var _0x5cdffa=_0x1c616d;return _0x4b60eb[_0x5cdffa('0xab4')]['get']({'userProfileId':_0x4b19b5[_0x5cdffa('0x123f')][_0x5cdffa('0x1618')],'sectionId':0xca})[_0x5cdffa('0x1376')];})[_0x1c616d('0x21ad')](function(_0x37c28e){var _0xdff274=_0x1c616d,_0x34cf9d=_0x37c28e&&_0x37c28e[_0xdff274('0x1b33')]?_0x37c28e[_0xdff274('0x1b33')][0x0]:null;if(!_0x34cf9d){var _0x1486eb=[],_0x16f16c=null;_0x4b19b5['agent']&&(_0x16f16c=_0x86640f()['find'](_0x4b19b5[_0xdff274('0xcb5')],{'name':_0x4b19b5[_0xdff274('0x2402')][_0xdff274('0x2402')]}));for(var _0x3a1c3e=0x0;_0x3a1c3e<_0x4b19b5[_0xdff274('0xcb5')]['length'];_0x3a1c3e++){_0x16f16c&&_0x4b19b5[_0xdff274('0xcb5')][_0x3a1c3e]['id']===_0x16f16c['id']&&(_0x4b19b5[_0xdff274('0xcb5')][_0x3a1c3e][_0xdff274('0xba')]=![],_0x1486eb[_0xdff274('0x206c')](_0x4b19b5[_0xdff274('0xcb5')][_0x3a1c3e]));}_0x4b19b5['agents']=_0x1486eb;}else{if(!_0x34cf9d[_0xdff274('0x80c')])return _0x4b60eb['userProfileResource'][_0xdff274('0x595')]({'sectionId':_0x34cf9d['id']})['$promise'][_0xdff274('0x21ad')](function(_0x4cc42b){var _0x32085b=_0xdff274,_0x41df8d=_0x86640f()[_0x32085b('0x26c3')](_0x4cc42b[_0x32085b('0x1b33')],function(_0x482de8){var _0x17b6ef=_0x32085b;return _0x86640f()['find'](_0x4b19b5['agents'],{'id':_0x482de8[_0x17b6ef('0x675')]});}),_0x4a11fd=null;_0x4b19b5[_0x32085b('0x2402')]&&(_0x4a11fd=_0x86640f()[_0x32085b('0x1d2e')](_0x4b19b5[_0x32085b('0xcb5')],{'name':_0x4b19b5[_0x32085b('0x2402')][_0x32085b('0x2402')]}));if(_0x4a11fd&&!_0x86640f()[_0x32085b('0x2664')](_0x41df8d,['id',_0x4a11fd['id']])){var _0x579a12=_0x86640f()[_0x32085b('0x1d2e')](_0x4b19b5[_0x32085b('0xcb5')],{'id':_0x4a11fd['id']});_0x579a12[_0x32085b('0xba')]=![],_0x41df8d[_0x32085b('0x206c')](_0x579a12);}_0x4b19b5['agents']=_0x41df8d;});}})[_0x1c616d('0x1c1d')](function(_0x52281d){var _0x367fbc=_0x1c616d;_0x4de451[_0x367fbc('0x2092')]({'title':_0x52281d[_0x367fbc('0x209')]?_0x367fbc('0x22d')+_0x52281d[_0x367fbc('0x209')]+_0x367fbc('0xa99')+_0x52281d['statusText']:'SYSTEM:GETagents','msg':_0x52281d[_0x367fbc('0x11c2')]?JSON[_0x367fbc('0x25e')](_0x52281d[_0x367fbc('0x11c2')]):_0x52281d['toString']()});});function _0x5cb42a(){var _0x5f06f7=_0x1c616d;_0x4b19b5[_0x5f06f7('0x1a69')]=[];var _0x37112e=[];_0x4b19b5['agent']['type']&&_0x4b19b5['agent'][_0x5f06f7('0x7fa')][_0x5f06f7('0xac2')]()==='outbound'&&_0x4b19b5[_0x5f06f7('0x2402')][_0x5f06f7('0x522')]===_0x5f06f7('0x4ea')&&(_0x4b19b5['agent'][_0x5f06f7('0x159e')]=_0x121020[_0x5f06f7('0x988')]?(_0x4b19b5[_0x5f06f7('0x2402')]['prefix']||'')+_0x5f06f7('0x349')+_0x121020[_0x5f06f7('0x988')]+'}':(_0x4b19b5[_0x5f06f7('0x2402')][_0x5f06f7('0x1995')]||'')+_0x5f06f7('0x2560'),_0x121020['recordingFormat']!==_0x5f06f7('0x983')?_0x4b19b5[_0x5f06f7('0x2402')][_0x5f06f7('0x26a0')][_0x5f06f7('0x2004')](_0x5f06f7('0x478'))<0x0&&(_0x4b19b5[_0x5f06f7('0x2402')][_0x5f06f7('0x26a0')]+=_0x5f06f7('0x478')):_0x4b19b5[_0x5f06f7('0x2402')][_0x5f06f7('0x26a0')]=_0x4b19b5['agent'][_0x5f06f7('0x26a0')][_0x5f06f7('0x16e4')](_0x5f06f7('0x478'),''));var _0x27d960=_0x86640f()[_0x5f06f7('0x1d2e')](_0x4b19b5['agents'],{'name':_0x4b19b5[_0x5f06f7('0x2402')][_0x5f06f7('0x2402')]});_0x27d960&&(_0x4b19b5['agent'][_0x5f06f7('0x1dc6')]=_0x27d960['id']);if(_0x4b19b5[_0x5f06f7('0x2402')][_0x5f06f7('0x522')]&&_0x4b19b5['agent'][_0x5f06f7('0x522')]===_0x5f06f7('0xf50')){}else switch((_0x4b19b5[_0x5f06f7('0x2402')][_0x5f06f7('0x1f94')]||_0x4b19b5[_0x5f06f7('0x2402')][_0x5f06f7('0x522')])[_0x5f06f7('0xac2')]()){case _0x5f06f7('0x1125'):_0x4b19b5[_0x5f06f7('0x2402')][_0x5f06f7('0x23c2')]=_0x4b19b5['agent'][_0x5f06f7('0x19fe')]+'='+_0x4b19b5[_0x5f06f7('0x2402')][_0x5f06f7('0x2228')];break;case _0x5f06f7('0xf50'):break;default:_0x37112e[0x0]=_0x4b19b5[_0x5f06f7('0x2402')][_0x5f06f7('0x2402')],_0x37112e[0x1]=_0x4b19b5[_0x5f06f7('0x2402')][_0x5f06f7('0x2133')],_0x4b19b5[_0x5f06f7('0x2402')][_0x5f06f7('0x23c2')]=_0x37112e[_0x5f06f7('0x136')](',');}_0x3d1959(_0x4b19b5['agent']);}function _0x3d1959(_0x9b2090){var _0x2e4244=_0x1c616d;_0x286bdb[_0x2e4244('0x1c24')](_0x9b2090);}}const _0x372da3=_0x432cbd;_0x5b5d4c[_0x3877e3('0x1a81')]=['$mdDialog','$q',_0x3877e3('0x1908'),_0x3877e3('0x173b'),_0x3877e3('0x151f'),_0x3877e3('0xccd'),'Auth',_0x3877e3('0x5ed')];function _0x5b5d4c(_0x57f37c,_0x2c5898,_0x26367e,_0x58846a,_0x9c543e,_0x3eba2e,_0x3e2e3a,_0x393220){var _0x41252c=_0x3877e3,_0x5b9752=this;_0x5b9752[_0x41252c('0x123f')]=_0x3e2e3a[_0x41252c('0x15ed')](),_0x5b9752[_0x41252c('0x1a69')]=[],_0x5b9752[_0x41252c('0x4b4')]=_0x41252c('0x17ec')+(_0x58846a['appType']||_0x58846a[_0x41252c('0x1f94')])[_0x41252c('0x2e8')](),_0x5b9752[_0x41252c('0x1c22')]=angular[_0x41252c('0xd75')](_0x58846a),_0x5b9752['crudPermissions']=_0x393220,_0x5b9752[_0x41252c('0x126a')]={};if(_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0x23c2')])switch(_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0x522')]?_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0x522')][_0x41252c('0xac2')]():_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0x1f94')][_0x41252c('0xac2')]()){case _0x41252c('0xf50'):break;case _0x41252c('0xc72'):{var _0x3cdd78=_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0x23c2')][_0x41252c('0x1af5')](',');_0x5b9752[_0x41252c('0x1c22')]['key']=_0x3cdd78[0x0],_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0x10f')]=_0x3cdd78[0x1],_0x5b9752['amazonlex']['welcomemessage']=_0x3cdd78['slice'](0x2,_0x3cdd78[_0x41252c('0x577')])['join'](',');}break;case _0x41252c('0x1c22'):{var _0xda50cb=_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0x23c2')][_0x41252c('0x1af5')](',');_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0x21c6')]=_0xda50cb[0x0],_0x5b9752[_0x41252c('0x1c22')]['secretaccesskey']=_0xda50cb[0x1],_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0x20a3')]=_0xda50cb[0x2],_0x5b9752[_0x41252c('0x1c22')]['botname']=_0xda50cb[0x3],_0x5b9752[_0x41252c('0x1c22')]['welcomemessage']=_0xda50cb['slice'](0x4,_0xda50cb[_0x41252c('0x577')])[_0x41252c('0x136')](',');}break;case'autoreply':{var _0x18d414=_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0x23c2')][_0x41252c('0x1af5')](',');_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0x13b6')]=isNaN(_0x18d414[0x0])?_0x18d414[0x0]:parseInt(_0x18d414[0x0],0xa),_0x5b9752[_0x41252c('0x1c22')]['text']=_0x18d414[_0x41252c('0xb3d')](0x1,_0x18d414[_0x41252c('0x577')])['join'](',');}break;case _0x41252c('0x1224'):_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0xc1e')]=_0x5b9752['amazonlex'][_0x41252c('0x23c2')];break;case _0x41252c('0x1125'):_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0x19fe')]=_0x5b9752['amazonlex']['appdata'][_0x41252c('0x1af5')]('=')[0x0],_0x5b9752['amazonlex'][_0x41252c('0x2228')]=_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0x23c2')][_0x41252c('0x1af5')]('=')[0x1];break;case _0x41252c('0x2356'):_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0xbf8')]=_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0x23c2')];break;default:{var _0xdd92b4=_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0x23c2')][_0x41252c('0x1af5')](',');_0x5b9752[_0x41252c('0x1c22')]['accesskeyid']=_0x86640f()['isEmpty'](_0xdd92b4[0x0])?_0xdd92b4[0x0]:isNaN(_0xdd92b4[0x0])?_0xdd92b4[0x0]:parseInt(_0xdd92b4[0x0],0xa),_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0x797')]=_0x86640f()[_0x41252c('0x23aa')](_0xdd92b4[0x1])?_0xdd92b4[0x1]:isNaN(_0xdd92b4[0x1])?_0xdd92b4[0x1]:parseInt(_0xdd92b4[0x1],0xa),_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0x20a3')]=_0x86640f()[_0x41252c('0x23aa')](_0xdd92b4[0x2])?_0xdd92b4[0x2]:isNaN(_0xdd92b4[0x2])?_0xdd92b4[0x2]:parseInt(_0xdd92b4[0x2],0xa),_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0x15fe')]=_0x86640f()[_0x41252c('0x23aa')](_0xdd92b4[0x3])?_0xdd92b4[0x3]:isNaN(_0xdd92b4[0x3])?_0xdd92b4[0x3]:parseInt(_0xdd92b4[0x3],0xa),_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0x1cce')]=_0x86640f()[_0x41252c('0x23aa')](_0xdd92b4[0x4])?_0xdd92b4[0x4]:isNaN(_0xdd92b4[0x4])?_0xdd92b4[0x4]:parseInt(_0xdd92b4[0x4],0xa);}break;}else _0x5b9752[_0x41252c('0x1c22')]['lexregion']=_0x41252c('0xc0b');_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0x7fa')]&&_0x5b9752['amazonlex'][_0x41252c('0x7fa')]['toLowerCase']()===_0x41252c('0x2300')&&_0x5b9752['amazonlex'][_0x41252c('0x522')][_0x41252c('0xac2')]()===_0x41252c('0x2363')&&(_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0x1995')]=_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0x159e')]?_0x5b9752['amazonlex'][_0x41252c('0x159e')]['split']('$')[0x0]:undefined,_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0x26f7')]=_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0x1f5a')]?'CALLERID(all)='+_0x5b9752[_0x41252c('0x1c22')][_0x41252c('0x1f5a')]:undefined);_0x5b9752['saveOpenchannelAccountApp']=_0x1257e3,_0x5b9752['closeDialog']=_0x17f32b;function _0x1257e3(){var _0x5ae1c0=_0x41252c;_0x5b9752[_0x5ae1c0('0x1a69')]=[];var _0x1d3c35=[];_0x5b9752[_0x5ae1c0('0x1c22')]['type']&&_0x5b9752[_0x5ae1c0('0x1c22')][_0x5ae1c0('0x7fa')][_0x5ae1c0('0xac2')]()==='outbound'&&_0x5b9752[_0x5ae1c0('0x1c22')][_0x5ae1c0('0x522')]===_0x5ae1c0('0x4ea')&&(_0x5b9752[_0x5ae1c0('0x1c22')][_0x5ae1c0('0x159e')]=_0x9c543e[_0x5ae1c0('0x988')]?(_0x5b9752[_0x5ae1c0('0x1c22')][_0x5ae1c0('0x1995')]||'')+'${EXTEN:'+_0x9c543e[_0x5ae1c0('0x988')]+'}':(_0x5b9752['amazonlex'][_0x5ae1c0('0x1995')]||'')+_0x5ae1c0('0x2560'),_0x9c543e[_0x5ae1c0('0xad1')]!==_0x5ae1c0('0x983')?_0x5b9752[_0x5ae1c0('0x1c22')][_0x5ae1c0('0x26a0')][_0x5ae1c0('0x2004')]('U(xcally-mixmonitor-context)')<0x0&&(_0x5b9752[_0x5ae1c0('0x1c22')]['options']+=_0x5ae1c0('0x478')):_0x5b9752[_0x5ae1c0('0x1c22')][_0x5ae1c0('0x26a0')]=_0x5b9752[_0x5ae1c0('0x1c22')][_0x5ae1c0('0x26a0')][_0x5ae1c0('0x16e4')](_0x5ae1c0('0x478'),''));if(_0x5b9752[_0x5ae1c0('0x1c22')][_0x5ae1c0('0x522')]&&_0x5b9752['amazonlex'][_0x5ae1c0('0x522')]===_0x5ae1c0('0xf50')){}else switch((_0x5b9752[_0x5ae1c0('0x1c22')][_0x5ae1c0('0x1f94')]||_0x5b9752['amazonlex']['appType'])['toLowerCase']()){case _0x5ae1c0('0x1125'):_0x5b9752[_0x5ae1c0('0x1c22')][_0x5ae1c0('0x23c2')]=_0x5b9752[_0x5ae1c0('0x1c22')][_0x5ae1c0('0x19fe')]+'='+_0x5b9752[_0x5ae1c0('0x1c22')][_0x5ae1c0('0x2228')];break;case'custom':break;default:_0x1d3c35[0x0]=_0x5b9752[_0x5ae1c0('0x1c22')][_0x5ae1c0('0x21c6')],_0x1d3c35[0x1]=_0x5b9752['amazonlex'][_0x5ae1c0('0x797')],_0x1d3c35[0x2]=_0x5b9752[_0x5ae1c0('0x1c22')]['lexregion'],_0x1d3c35[0x3]=_0x5b9752['amazonlex'][_0x5ae1c0('0x15fe')],_0x1d3c35[0x4]=_0x5b9752[_0x5ae1c0('0x1c22')]['welcomemessage'],_0x5b9752[_0x5ae1c0('0x1c22')][_0x5ae1c0('0x23c2')]=_0x1d3c35[_0x5ae1c0('0x136')](',');}_0x17f32b(_0x5b9752['amazonlex']);}function _0x17f32b(_0x5ca4e3){var _0x281d9a=_0x41252c;_0x57f37c[_0x281d9a('0x1c24')](_0x5ca4e3);}}const _0x40e08e=_0x5b5d4c;_0x362ea8[_0x3877e3('0x1a81')]=['$mdDialog','$q',_0x3877e3('0x1908'),_0x3877e3('0x173b'),_0x3877e3('0x151f'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'crudPermissions'];function _0x362ea8(_0x844c15,_0x383e86,_0x3fcdc4,_0x477fba,_0x1836d6,_0x41b78e,_0x1d30d4,_0x595951){var _0x43680d=_0x3877e3,_0x58b271=this;_0x58b271['currentUser']=_0x1d30d4[_0x43680d('0x15ed')](),_0x58b271[_0x43680d('0x1a69')]=[],_0x58b271[_0x43680d('0x4b4')]=_0x43680d('0x17ec')+(_0x477fba[_0x43680d('0x522')]||_0x477fba['app'])[_0x43680d('0x2e8')](),_0x58b271[_0x43680d('0x1b98')]=angular[_0x43680d('0xd75')](_0x477fba),_0x58b271[_0x43680d('0x5ed')]=_0x595951,_0x58b271[_0x43680d('0x126a')]={};if(_0x58b271[_0x43680d('0x1b98')][_0x43680d('0x23c2')])switch(_0x58b271[_0x43680d('0x1b98')][_0x43680d('0x522')]?_0x58b271[_0x43680d('0x1b98')]['appType'][_0x43680d('0xac2')]():_0x58b271[_0x43680d('0x1b98')][_0x43680d('0x1f94')][_0x43680d('0xac2')]()){case'custom':break;case _0x43680d('0xc72'):{var _0x2251ec=_0x58b271[_0x43680d('0x1b98')][_0x43680d('0x23c2')][_0x43680d('0x1af5')](',');_0x58b271[_0x43680d('0x1b98')]['key']=_0x2251ec[0x0],_0x58b271[_0x43680d('0x1b98')]['language']=_0x2251ec[0x1],_0x58b271[_0x43680d('0x1b98')][_0x43680d('0x1cce')]=_0x2251ec[_0x43680d('0xb3d')](0x2,_0x2251ec['length'])['join'](',');}break;case _0x43680d('0x1c22'):{var _0x34e3ef=_0x58b271[_0x43680d('0x1b98')][_0x43680d('0x23c2')][_0x43680d('0x1af5')](',');_0x58b271[_0x43680d('0x1b98')]['accesskeyid']=_0x34e3ef[0x0],_0x58b271[_0x43680d('0x1b98')][_0x43680d('0x797')]=_0x34e3ef[0x1],_0x58b271[_0x43680d('0x1b98')][_0x43680d('0x20a3')]=_0x34e3ef[0x2],_0x58b271[_0x43680d('0x1b98')]['botname']=_0x34e3ef[0x3],_0x58b271[_0x43680d('0x1b98')][_0x43680d('0x1cce')]=_0x34e3ef[_0x43680d('0xb3d')](0x4,_0x34e3ef[_0x43680d('0x577')])['join'](',');}break;case'autoreply':{var _0x5d12d8=_0x58b271['autoreply']['appdata']['split'](',');_0x58b271['autoreply'][_0x43680d('0x13b6')]=isNaN(_0x5d12d8[0x0])?_0x5d12d8[0x0]:parseInt(_0x5d12d8[0x0],0xa),_0x58b271[_0x43680d('0x1b98')][_0x43680d('0xc1e')]=_0x5d12d8['slice'](0x1,_0x5d12d8[_0x43680d('0x577')])[_0x43680d('0x136')](',');}break;case _0x43680d('0x1224'):_0x58b271[_0x43680d('0x1b98')][_0x43680d('0xc1e')]=_0x58b271[_0x43680d('0x1b98')]['appdata'];break;case'set':_0x58b271['autoreply'][_0x43680d('0x19fe')]=_0x58b271[_0x43680d('0x1b98')]['appdata'][_0x43680d('0x1af5')]('=')[0x0],_0x58b271['autoreply'][_0x43680d('0x2228')]=_0x58b271[_0x43680d('0x1b98')]['appdata'][_0x43680d('0x1af5')]('=')[0x1];break;case'agi':_0x58b271[_0x43680d('0x1b98')][_0x43680d('0xbf8')]=_0x58b271[_0x43680d('0x1b98')]['appdata'];break;default:{var _0x39bfdf=_0x58b271[_0x43680d('0x1b98')][_0x43680d('0x23c2')][_0x43680d('0x1af5')](',');_0x58b271[_0x43680d('0x1b98')]['times']=_0x86640f()['isEmpty'](_0x39bfdf[0x0])?_0x39bfdf[0x0]:isNaN(_0x39bfdf[0x0])?_0x39bfdf[0x0]:parseInt(_0x39bfdf[0x0],0xa),_0x58b271[_0x43680d('0x1b98')][_0x43680d('0xc1e')]=_0x86640f()['isEmpty'](_0x39bfdf[0x1])?_0x39bfdf[0x1]:isNaN(_0x39bfdf[0x1])?_0x39bfdf[0x1]:parseInt(_0x39bfdf[0x1],0xa);}break;}else _0x58b271[_0x43680d('0x1b98')][_0x43680d('0x13b6')]=0x1;_0x58b271[_0x43680d('0x1b98')]['type']&&_0x58b271[_0x43680d('0x1b98')]['type'][_0x43680d('0xac2')]()==='outbound'&&_0x58b271[_0x43680d('0x1b98')]['appType'][_0x43680d('0xac2')]()==='outbounddial'&&(_0x58b271[_0x43680d('0x1b98')][_0x43680d('0x1995')]=_0x58b271['autoreply'][_0x43680d('0x159e')]?_0x58b271[_0x43680d('0x1b98')]['phone'][_0x43680d('0x1af5')]('$')[0x0]:undefined,_0x58b271[_0x43680d('0x1b98')]['callerId']=_0x58b271[_0x43680d('0x1b98')][_0x43680d('0x1f5a')]?_0x43680d('0x587')+_0x58b271['autoreply'][_0x43680d('0x1f5a')]:undefined);_0x58b271['saveOpenchannelAccountApp']=_0xe085e1,_0x58b271['closeDialog']=_0x55c54f;function _0xe085e1(){var _0x1e240f=_0x43680d;_0x58b271[_0x1e240f('0x1a69')]=[];var _0x4ecb3b=[];_0x58b271[_0x1e240f('0x1b98')]['type']&&_0x58b271[_0x1e240f('0x1b98')][_0x1e240f('0x7fa')][_0x1e240f('0xac2')]()===_0x1e240f('0x2300')&&_0x58b271[_0x1e240f('0x1b98')][_0x1e240f('0x522')]==='outboundDial'&&(_0x58b271[_0x1e240f('0x1b98')]['phone']=_0x1836d6[_0x1e240f('0x988')]?(_0x58b271['autoreply'][_0x1e240f('0x1995')]||'')+_0x1e240f('0x349')+_0x1836d6['cutdigits']+'}':(_0x58b271[_0x1e240f('0x1b98')][_0x1e240f('0x1995')]||'')+_0x1e240f('0x2560'),_0x1836d6[_0x1e240f('0xad1')]!==_0x1e240f('0x983')?_0x58b271['autoreply'][_0x1e240f('0x26a0')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x58b271[_0x1e240f('0x1b98')]['options']+=_0x1e240f('0x478')):_0x58b271[_0x1e240f('0x1b98')][_0x1e240f('0x26a0')]=_0x58b271[_0x1e240f('0x1b98')]['options'][_0x1e240f('0x16e4')](_0x1e240f('0x478'),''));if(_0x58b271[_0x1e240f('0x1b98')][_0x1e240f('0x522')]&&_0x58b271[_0x1e240f('0x1b98')][_0x1e240f('0x522')]===_0x1e240f('0xf50')){}else switch((_0x58b271[_0x1e240f('0x1b98')][_0x1e240f('0x1f94')]||_0x58b271[_0x1e240f('0x1b98')]['appType'])[_0x1e240f('0xac2')]()){case _0x1e240f('0x1125'):_0x58b271[_0x1e240f('0x1b98')][_0x1e240f('0x23c2')]=_0x58b271[_0x1e240f('0x1b98')][_0x1e240f('0x19fe')]+'='+_0x58b271[_0x1e240f('0x1b98')][_0x1e240f('0x2228')];break;case _0x1e240f('0xf50'):break;default:_0x4ecb3b[0x0]=_0x58b271['autoreply'][_0x1e240f('0x13b6')],_0x4ecb3b[0x1]=_0x58b271[_0x1e240f('0x1b98')][_0x1e240f('0xc1e')],_0x58b271['autoreply'][_0x1e240f('0x23c2')]=_0x4ecb3b[_0x1e240f('0x136')](',');}_0x55c54f(_0x58b271['autoreply']);}function _0x55c54f(_0x21eb30){var _0x3c0078=_0x43680d;_0x844c15[_0x3c0078('0x1c24')](_0x21eb30);}}const _0x2612b0=_0x362ea8;_0x33ac18[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),'openchannelAccountApp',_0x3877e3('0x151f'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'crudPermissions'];function _0x33ac18(_0x22fd6c,_0x400d6b,_0x570cc0,_0x108a00,_0x4dfa55,_0x23a4f5,_0x3aaa1a,_0x28fecd){var _0x3c1d09=_0x3877e3,_0x378643=this;_0x378643[_0x3c1d09('0x123f')]=_0x3aaa1a[_0x3c1d09('0x15ed')](),_0x378643[_0x3c1d09('0x1a69')]=[],_0x378643[_0x3c1d09('0x4b4')]=_0x3c1d09('0x17ec')+(_0x108a00[_0x3c1d09('0x522')]||_0x108a00[_0x3c1d09('0x1f94')])[_0x3c1d09('0x2e8')](),_0x378643[_0x3c1d09('0x22f')]=angular[_0x3c1d09('0xd75')](_0x108a00),_0x378643['crudPermissions']=_0x28fecd,_0x378643[_0x3c1d09('0x126a')]={};if(_0x378643[_0x3c1d09('0x22f')][_0x3c1d09('0x23c2')])switch(_0x378643[_0x3c1d09('0x22f')]['appType']?_0x378643[_0x3c1d09('0x22f')]['appType'][_0x3c1d09('0xac2')]():_0x378643['close']['app']['toLowerCase']()){case'custom':break;case _0x3c1d09('0xc72'):{var _0x593876=_0x378643[_0x3c1d09('0x22f')]['appdata'][_0x3c1d09('0x1af5')](',');_0x378643['close'][_0x3c1d09('0xddb')]=_0x593876[0x0],_0x378643[_0x3c1d09('0x22f')]['language']=_0x593876[0x1],_0x378643[_0x3c1d09('0x22f')][_0x3c1d09('0x1cce')]=_0x593876[_0x3c1d09('0xb3d')](0x2,_0x593876[_0x3c1d09('0x577')])['join'](',');}break;case'amazonlex':{var _0xeb4c3b=_0x378643[_0x3c1d09('0x22f')][_0x3c1d09('0x23c2')][_0x3c1d09('0x1af5')](',');_0x378643[_0x3c1d09('0x22f')][_0x3c1d09('0x21c6')]=_0xeb4c3b[0x0],_0x378643[_0x3c1d09('0x22f')][_0x3c1d09('0x797')]=_0xeb4c3b[0x1],_0x378643[_0x3c1d09('0x22f')]['lexregion']=_0xeb4c3b[0x2],_0x378643[_0x3c1d09('0x22f')][_0x3c1d09('0x15fe')]=_0xeb4c3b[0x3],_0x378643[_0x3c1d09('0x22f')]['welcomemessage']=_0xeb4c3b[_0x3c1d09('0xb3d')](0x4,_0xeb4c3b['length'])['join'](',');}break;case _0x3c1d09('0x1b98'):{var _0x31aa10=_0x378643[_0x3c1d09('0x22f')]['appdata'][_0x3c1d09('0x1af5')](',');_0x378643[_0x3c1d09('0x22f')][_0x3c1d09('0x13b6')]=isNaN(_0x31aa10[0x0])?_0x31aa10[0x0]:parseInt(_0x31aa10[0x0],0xa),_0x378643[_0x3c1d09('0x22f')][_0x3c1d09('0xc1e')]=_0x31aa10[_0x3c1d09('0xb3d')](0x1,_0x31aa10[_0x3c1d09('0x577')])[_0x3c1d09('0x136')](',');}break;case _0x3c1d09('0x1224'):_0x378643[_0x3c1d09('0x22f')][_0x3c1d09('0xc1e')]=_0x378643['close'][_0x3c1d09('0x23c2')];break;case _0x3c1d09('0x1125'):_0x378643['close'][_0x3c1d09('0x19fe')]=_0x378643['close'][_0x3c1d09('0x23c2')][_0x3c1d09('0x1af5')]('=')[0x0],_0x378643[_0x3c1d09('0x22f')][_0x3c1d09('0x2228')]=_0x378643['close'][_0x3c1d09('0x23c2')]['split']('=')[0x1];break;case _0x3c1d09('0x2356'):_0x378643[_0x3c1d09('0x22f')][_0x3c1d09('0xbf8')]=_0x378643[_0x3c1d09('0x22f')][_0x3c1d09('0x23c2')];break;default:{var _0x41d377=_0x378643['close'][_0x3c1d09('0x23c2')]['split'](',');_0x378643[_0x3c1d09('0x22f')]['disposition']=_0x86640f()['isEmpty'](_0x41d377[0x0])?_0x41d377[0x0]:isNaN(_0x41d377[0x0])?_0x41d377[0x0]:parseInt(_0x41d377[0x0],0xa);}break;}else{}_0x378643[_0x3c1d09('0x22f')]['type']&&_0x378643[_0x3c1d09('0x22f')][_0x3c1d09('0x7fa')][_0x3c1d09('0xac2')]()===_0x3c1d09('0x2300')&&_0x378643[_0x3c1d09('0x22f')][_0x3c1d09('0x522')][_0x3c1d09('0xac2')]()==='outbounddial'&&(_0x378643[_0x3c1d09('0x22f')]['prefix']=_0x378643['close'][_0x3c1d09('0x159e')]?_0x378643['close'][_0x3c1d09('0x159e')][_0x3c1d09('0x1af5')]('$')[0x0]:undefined,_0x378643[_0x3c1d09('0x22f')]['callerId']=_0x378643[_0x3c1d09('0x22f')][_0x3c1d09('0x1f5a')]?_0x3c1d09('0x587')+_0x378643[_0x3c1d09('0x22f')]['callerID']:undefined);_0x378643[_0x3c1d09('0x1da1')]=_0x7df0ca,_0x378643['closeDialog']=_0x43cc2f;function _0x7df0ca(){var _0x5ab6dc=_0x3c1d09;_0x378643[_0x5ab6dc('0x1a69')]=[];var _0x3cc8e9=[];_0x378643[_0x5ab6dc('0x22f')][_0x5ab6dc('0x7fa')]&&_0x378643[_0x5ab6dc('0x22f')][_0x5ab6dc('0x7fa')]['toLowerCase']()===_0x5ab6dc('0x2300')&&_0x378643[_0x5ab6dc('0x22f')][_0x5ab6dc('0x522')]===_0x5ab6dc('0x4ea')&&(_0x378643['close'][_0x5ab6dc('0x159e')]=_0x4dfa55[_0x5ab6dc('0x988')]?(_0x378643[_0x5ab6dc('0x22f')][_0x5ab6dc('0x1995')]||'')+_0x5ab6dc('0x349')+_0x4dfa55[_0x5ab6dc('0x988')]+'}':(_0x378643[_0x5ab6dc('0x22f')][_0x5ab6dc('0x1995')]||'')+'${EXTEN}',_0x4dfa55[_0x5ab6dc('0xad1')]!==_0x5ab6dc('0x983')?_0x378643[_0x5ab6dc('0x22f')][_0x5ab6dc('0x26a0')][_0x5ab6dc('0x2004')](_0x5ab6dc('0x478'))<0x0&&(_0x378643['close'][_0x5ab6dc('0x26a0')]+=_0x5ab6dc('0x478')):_0x378643['close'][_0x5ab6dc('0x26a0')]=_0x378643[_0x5ab6dc('0x22f')][_0x5ab6dc('0x26a0')][_0x5ab6dc('0x16e4')]('U(xcally-mixmonitor-context)',''));if(_0x378643[_0x5ab6dc('0x22f')][_0x5ab6dc('0x522')]&&_0x378643[_0x5ab6dc('0x22f')][_0x5ab6dc('0x522')]==='custom'){}else switch((_0x378643['close'][_0x5ab6dc('0x1f94')]||_0x378643[_0x5ab6dc('0x22f')][_0x5ab6dc('0x522')])[_0x5ab6dc('0xac2')]()){case _0x5ab6dc('0x1125'):_0x378643['close'][_0x5ab6dc('0x23c2')]=_0x378643[_0x5ab6dc('0x22f')][_0x5ab6dc('0x19fe')]+'='+_0x378643[_0x5ab6dc('0x22f')][_0x5ab6dc('0x2228')];break;case'custom':break;default:_0x3cc8e9[0x0]=_0x378643[_0x5ab6dc('0x22f')]['disposition'],_0x378643[_0x5ab6dc('0x22f')][_0x5ab6dc('0x23c2')]=_0x3cc8e9[_0x5ab6dc('0x136')](',');}_0x43cc2f(_0x378643[_0x5ab6dc('0x22f')]);}function _0x43cc2f(_0x579551){var _0x362e92=_0x3c1d09;_0x22fd6c[_0x362e92('0x1c24')](_0x579551);}}const _0x296693=_0x33ac18;_0xc1ff62[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q','toasty',_0x3877e3('0x173b'),_0x3877e3('0x151f'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0xc1ff62(_0xf4d869,_0x101271,_0x4e1685,_0x3b1124,_0x1c1073,_0x16ba6a,_0x557d30,_0xa40612){var _0x43d6e0=_0x3877e3,_0x37ee1d=this;_0x37ee1d[_0x43d6e0('0x123f')]=_0x557d30[_0x43d6e0('0x15ed')](),_0x37ee1d[_0x43d6e0('0x1a69')]=[],_0x37ee1d[_0x43d6e0('0x4b4')]=_0x43d6e0('0x17ec')+(_0x3b1124['appType']||_0x3b1124['app'])[_0x43d6e0('0x2e8')](),_0x37ee1d[_0x43d6e0('0xc72')]=angular[_0x43d6e0('0xd75')](_0x3b1124),_0x37ee1d[_0x43d6e0('0x5ed')]=_0xa40612,_0x37ee1d[_0x43d6e0('0x126a')]={};if(_0x37ee1d[_0x43d6e0('0xc72')][_0x43d6e0('0x23c2')])switch(_0x37ee1d['dialogflow'][_0x43d6e0('0x522')]?_0x37ee1d[_0x43d6e0('0xc72')][_0x43d6e0('0x522')][_0x43d6e0('0xac2')]():_0x37ee1d[_0x43d6e0('0xc72')][_0x43d6e0('0x1f94')][_0x43d6e0('0xac2')]()){case _0x43d6e0('0xf50'):break;case _0x43d6e0('0xc72'):{var _0x169b61=_0x37ee1d['dialogflow'][_0x43d6e0('0x23c2')]['split'](',');_0x37ee1d[_0x43d6e0('0xc72')][_0x43d6e0('0xddb')]=_0x169b61[0x0],_0x37ee1d[_0x43d6e0('0xc72')][_0x43d6e0('0x10f')]=_0x169b61[0x1],_0x37ee1d['dialogflow'][_0x43d6e0('0x1cce')]=_0x169b61[_0x43d6e0('0xb3d')](0x2,_0x169b61['length'])['join'](',');}break;case _0x43d6e0('0x1c22'):{var _0x36d598=_0x37ee1d[_0x43d6e0('0xc72')][_0x43d6e0('0x23c2')]['split'](',');_0x37ee1d['dialogflow'][_0x43d6e0('0x21c6')]=_0x36d598[0x0],_0x37ee1d[_0x43d6e0('0xc72')][_0x43d6e0('0x797')]=_0x36d598[0x1],_0x37ee1d['dialogflow'][_0x43d6e0('0x20a3')]=_0x36d598[0x2],_0x37ee1d[_0x43d6e0('0xc72')][_0x43d6e0('0x15fe')]=_0x36d598[0x3],_0x37ee1d['dialogflow'][_0x43d6e0('0x1cce')]=_0x36d598['slice'](0x4,_0x36d598[_0x43d6e0('0x577')])[_0x43d6e0('0x136')](',');}break;case _0x43d6e0('0x1b98'):{var _0x192bf4=_0x37ee1d[_0x43d6e0('0xc72')][_0x43d6e0('0x23c2')][_0x43d6e0('0x1af5')](',');_0x37ee1d['dialogflow'][_0x43d6e0('0x13b6')]=isNaN(_0x192bf4[0x0])?_0x192bf4[0x0]:parseInt(_0x192bf4[0x0],0xa),_0x37ee1d[_0x43d6e0('0xc72')][_0x43d6e0('0xc1e')]=_0x192bf4[_0x43d6e0('0xb3d')](0x1,_0x192bf4['length'])['join'](',');}break;case _0x43d6e0('0x1224'):_0x37ee1d[_0x43d6e0('0xc72')][_0x43d6e0('0xc1e')]=_0x37ee1d[_0x43d6e0('0xc72')]['appdata'];break;case _0x43d6e0('0x1125'):_0x37ee1d['dialogflow']['name']=_0x37ee1d[_0x43d6e0('0xc72')][_0x43d6e0('0x23c2')]['split']('=')[0x0],_0x37ee1d[_0x43d6e0('0xc72')][_0x43d6e0('0x2228')]=_0x37ee1d[_0x43d6e0('0xc72')][_0x43d6e0('0x23c2')][_0x43d6e0('0x1af5')]('=')[0x1];break;case _0x43d6e0('0x2356'):_0x37ee1d[_0x43d6e0('0xc72')][_0x43d6e0('0xbf8')]=_0x37ee1d[_0x43d6e0('0xc72')][_0x43d6e0('0x23c2')];break;default:{var _0x3b3d40=_0x37ee1d[_0x43d6e0('0xc72')]['appdata'][_0x43d6e0('0x1af5')](',');_0x37ee1d[_0x43d6e0('0xc72')][_0x43d6e0('0xddb')]=_0x86640f()[_0x43d6e0('0x23aa')](_0x3b3d40[0x0])?_0x3b3d40[0x0]:isNaN(_0x3b3d40[0x0])?_0x3b3d40[0x0]:parseInt(_0x3b3d40[0x0],0xa),_0x37ee1d[_0x43d6e0('0xc72')][_0x43d6e0('0x10f')]=_0x86640f()['isEmpty'](_0x3b3d40[0x1])?_0x3b3d40[0x1]:isNaN(_0x3b3d40[0x1])?_0x3b3d40[0x1]:parseInt(_0x3b3d40[0x1],0xa),_0x37ee1d['dialogflow']['welcomemessage']=_0x86640f()[_0x43d6e0('0x23aa')](_0x3b3d40[0x2])?_0x3b3d40[0x2]:isNaN(_0x3b3d40[0x2])?_0x3b3d40[0x2]:parseInt(_0x3b3d40[0x2],0xa);}break;}else _0x37ee1d[_0x43d6e0('0xc72')]['language']='en';_0x37ee1d[_0x43d6e0('0xc72')][_0x43d6e0('0x7fa')]&&_0x37ee1d[_0x43d6e0('0xc72')][_0x43d6e0('0x7fa')][_0x43d6e0('0xac2')]()===_0x43d6e0('0x2300')&&_0x37ee1d['dialogflow'][_0x43d6e0('0x522')]['toLowerCase']()===_0x43d6e0('0x2363')&&(_0x37ee1d[_0x43d6e0('0xc72')]['prefix']=_0x37ee1d[_0x43d6e0('0xc72')][_0x43d6e0('0x159e')]?_0x37ee1d['dialogflow'][_0x43d6e0('0x159e')][_0x43d6e0('0x1af5')]('$')[0x0]:undefined,_0x37ee1d['dialogflow'][_0x43d6e0('0x26f7')]=_0x37ee1d[_0x43d6e0('0xc72')]['callerID']?_0x43d6e0('0x587')+_0x37ee1d[_0x43d6e0('0xc72')][_0x43d6e0('0x1f5a')]:undefined);_0x37ee1d['saveOpenchannelAccountApp']=_0x2ae4d7,_0x37ee1d[_0x43d6e0('0x167')]=_0x3001e9;function _0x2ae4d7(){var _0x2723a1=_0x43d6e0;_0x37ee1d[_0x2723a1('0x1a69')]=[];var _0x5ba53b=[];_0x37ee1d[_0x2723a1('0xc72')][_0x2723a1('0x7fa')]&&_0x37ee1d[_0x2723a1('0xc72')][_0x2723a1('0x7fa')]['toLowerCase']()===_0x2723a1('0x2300')&&_0x37ee1d[_0x2723a1('0xc72')][_0x2723a1('0x522')]==='outboundDial'&&(_0x37ee1d['dialogflow']['phone']=_0x1c1073[_0x2723a1('0x988')]?(_0x37ee1d[_0x2723a1('0xc72')][_0x2723a1('0x1995')]||'')+_0x2723a1('0x349')+_0x1c1073['cutdigits']+'}':(_0x37ee1d[_0x2723a1('0xc72')][_0x2723a1('0x1995')]||'')+_0x2723a1('0x2560'),_0x1c1073['recordingFormat']!=='none'?_0x37ee1d[_0x2723a1('0xc72')][_0x2723a1('0x26a0')][_0x2723a1('0x2004')](_0x2723a1('0x478'))<0x0&&(_0x37ee1d['dialogflow'][_0x2723a1('0x26a0')]+=_0x2723a1('0x478')):_0x37ee1d['dialogflow'][_0x2723a1('0x26a0')]=_0x37ee1d[_0x2723a1('0xc72')][_0x2723a1('0x26a0')]['replace'](_0x2723a1('0x478'),''));if(_0x37ee1d[_0x2723a1('0xc72')][_0x2723a1('0x522')]&&_0x37ee1d[_0x2723a1('0xc72')][_0x2723a1('0x522')]===_0x2723a1('0xf50')){}else switch((_0x37ee1d[_0x2723a1('0xc72')]['app']||_0x37ee1d[_0x2723a1('0xc72')][_0x2723a1('0x522')])['toLowerCase']()){case _0x2723a1('0x1125'):_0x37ee1d[_0x2723a1('0xc72')][_0x2723a1('0x23c2')]=_0x37ee1d['dialogflow'][_0x2723a1('0x19fe')]+'='+_0x37ee1d['dialogflow'][_0x2723a1('0x2228')];break;case _0x2723a1('0xf50'):break;default:_0x5ba53b[0x0]=_0x37ee1d[_0x2723a1('0xc72')][_0x2723a1('0xddb')],_0x5ba53b[0x1]=_0x37ee1d['dialogflow'][_0x2723a1('0x10f')],_0x5ba53b[0x2]=_0x37ee1d[_0x2723a1('0xc72')][_0x2723a1('0x1cce')],_0x37ee1d[_0x2723a1('0xc72')][_0x2723a1('0x23c2')]=_0x5ba53b[_0x2723a1('0x136')](',');}_0x3001e9(_0x37ee1d[_0x2723a1('0xc72')]);}function _0x3001e9(_0x1a6945){_0xf4d869['hide'](_0x1a6945);}}const _0x3d1d9b=_0xc1ff62;_0x424a2[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x173b'),_0x3877e3('0x151f'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x424a2(_0x3433b7,_0x31a023,_0x8229ce,_0x20d9c7,_0xe769d7,_0x2bf33f,_0x5af3d3,_0x592d85){var _0x18cf09=_0x3877e3,_0x2c90da=this;_0x2c90da[_0x18cf09('0x123f')]=_0x5af3d3['getCurrentUser'](),_0x2c90da[_0x18cf09('0x1a69')]=[],_0x2c90da['title']=_0x18cf09('0x17ec')+(_0x20d9c7['appType']||_0x20d9c7[_0x18cf09('0x1f94')])['toUpperCase'](),_0x2c90da[_0x18cf09('0x262')]=angular['copy'](_0x20d9c7),_0x2c90da[_0x18cf09('0x5ed')]=_0x592d85,_0x2c90da[_0x18cf09('0x126a')]={};if(_0x2c90da[_0x18cf09('0x262')][_0x18cf09('0x23c2')])switch(_0x2c90da[_0x18cf09('0x262')]['appType']?_0x2c90da[_0x18cf09('0x262')][_0x18cf09('0x522')][_0x18cf09('0xac2')]():_0x2c90da[_0x18cf09('0x262')][_0x18cf09('0x1f94')][_0x18cf09('0xac2')]()){case _0x18cf09('0xf50'):break;case'dialogflow':{var _0x18f4af=_0x2c90da['gotoif']['appdata'][_0x18cf09('0x1af5')](',');_0x2c90da[_0x18cf09('0x262')][_0x18cf09('0xddb')]=_0x18f4af[0x0],_0x2c90da[_0x18cf09('0x262')][_0x18cf09('0x10f')]=_0x18f4af[0x1],_0x2c90da[_0x18cf09('0x262')][_0x18cf09('0x1cce')]=_0x18f4af[_0x18cf09('0xb3d')](0x2,_0x18f4af[_0x18cf09('0x577')])[_0x18cf09('0x136')](',');}break;case'amazonlex':{var _0x3b89e4=_0x2c90da['gotoif']['appdata']['split'](',');_0x2c90da['gotoif'][_0x18cf09('0x21c6')]=_0x3b89e4[0x0],_0x2c90da['gotoif']['secretaccesskey']=_0x3b89e4[0x1],_0x2c90da['gotoif']['lexregion']=_0x3b89e4[0x2],_0x2c90da[_0x18cf09('0x262')][_0x18cf09('0x15fe')]=_0x3b89e4[0x3],_0x2c90da[_0x18cf09('0x262')][_0x18cf09('0x1cce')]=_0x3b89e4[_0x18cf09('0xb3d')](0x4,_0x3b89e4[_0x18cf09('0x577')])[_0x18cf09('0x136')](',');}break;case _0x18cf09('0x1b98'):{var _0x2fe68f=_0x2c90da[_0x18cf09('0x262')][_0x18cf09('0x23c2')][_0x18cf09('0x1af5')](',');_0x2c90da[_0x18cf09('0x262')][_0x18cf09('0x13b6')]=isNaN(_0x2fe68f[0x0])?_0x2fe68f[0x0]:parseInt(_0x2fe68f[0x0],0xa),_0x2c90da['gotoif']['text']=_0x2fe68f[_0x18cf09('0xb3d')](0x1,_0x2fe68f['length'])['join'](',');}break;case'message':_0x2c90da['gotoif']['text']=_0x2c90da[_0x18cf09('0x262')][_0x18cf09('0x23c2')];break;case'set':_0x2c90da[_0x18cf09('0x262')][_0x18cf09('0x19fe')]=_0x2c90da[_0x18cf09('0x262')]['appdata'][_0x18cf09('0x1af5')]('=')[0x0],_0x2c90da[_0x18cf09('0x262')][_0x18cf09('0x2228')]=_0x2c90da['gotoif'][_0x18cf09('0x23c2')]['split']('=')[0x1];break;case _0x18cf09('0x2356'):_0x2c90da[_0x18cf09('0x262')][_0x18cf09('0xbf8')]=_0x2c90da[_0x18cf09('0x262')][_0x18cf09('0x23c2')];break;default:{var _0x4b16c0=_0x2c90da[_0x18cf09('0x262')]['appdata']['split'](',');_0x2c90da[_0x18cf09('0x262')]['condition']=_0x86640f()[_0x18cf09('0x23aa')](_0x4b16c0[0x0])?_0x4b16c0[0x0]:isNaN(_0x4b16c0[0x0])?_0x4b16c0[0x0]:parseInt(_0x4b16c0[0x0],0xa),_0x2c90da[_0x18cf09('0x262')][_0x18cf09('0x1a25')]=_0x86640f()['isEmpty'](_0x4b16c0[0x1])?_0x4b16c0[0x1]:isNaN(_0x4b16c0[0x1])?_0x4b16c0[0x1]:parseInt(_0x4b16c0[0x1],0xa),_0x2c90da['gotoif'][_0x18cf09('0xe4c')]=_0x86640f()[_0x18cf09('0x23aa')](_0x4b16c0[0x2])?_0x4b16c0[0x2]:isNaN(_0x4b16c0[0x2])?_0x4b16c0[0x2]:parseInt(_0x4b16c0[0x2],0xa);}break;}else{}_0x2c90da[_0x18cf09('0x262')][_0x18cf09('0x7fa')]&&_0x2c90da[_0x18cf09('0x262')]['type'][_0x18cf09('0xac2')]()===_0x18cf09('0x2300')&&_0x2c90da[_0x18cf09('0x262')][_0x18cf09('0x522')][_0x18cf09('0xac2')]()==='outbounddial'&&(_0x2c90da[_0x18cf09('0x262')][_0x18cf09('0x1995')]=_0x2c90da['gotoif']['phone']?_0x2c90da[_0x18cf09('0x262')]['phone'][_0x18cf09('0x1af5')]('$')[0x0]:undefined,_0x2c90da[_0x18cf09('0x262')][_0x18cf09('0x26f7')]=_0x2c90da[_0x18cf09('0x262')][_0x18cf09('0x1f5a')]?_0x18cf09('0x587')+_0x2c90da[_0x18cf09('0x262')][_0x18cf09('0x1f5a')]:undefined);_0x2c90da[_0x18cf09('0x1da1')]=_0x5f2675,_0x2c90da['closeDialog']=_0x1185b4;function _0x5f2675(){var _0x1eee44=_0x18cf09;_0x2c90da[_0x1eee44('0x1a69')]=[];var _0x5a62b1=[];_0x2c90da[_0x1eee44('0x262')][_0x1eee44('0x7fa')]&&_0x2c90da[_0x1eee44('0x262')][_0x1eee44('0x7fa')][_0x1eee44('0xac2')]()===_0x1eee44('0x2300')&&_0x2c90da[_0x1eee44('0x262')][_0x1eee44('0x522')]===_0x1eee44('0x4ea')&&(_0x2c90da[_0x1eee44('0x262')][_0x1eee44('0x159e')]=_0xe769d7['cutdigits']?(_0x2c90da[_0x1eee44('0x262')][_0x1eee44('0x1995')]||'')+_0x1eee44('0x349')+_0xe769d7[_0x1eee44('0x988')]+'}':(_0x2c90da['gotoif'][_0x1eee44('0x1995')]||'')+_0x1eee44('0x2560'),_0xe769d7[_0x1eee44('0xad1')]!=='none'?_0x2c90da[_0x1eee44('0x262')][_0x1eee44('0x26a0')][_0x1eee44('0x2004')]('U(xcally-mixmonitor-context)')<0x0&&(_0x2c90da['gotoif']['options']+=_0x1eee44('0x478')):_0x2c90da[_0x1eee44('0x262')][_0x1eee44('0x26a0')]=_0x2c90da[_0x1eee44('0x262')][_0x1eee44('0x26a0')][_0x1eee44('0x16e4')](_0x1eee44('0x478'),''));if(_0x2c90da['gotoif']['appType']&&_0x2c90da[_0x1eee44('0x262')][_0x1eee44('0x522')]==='custom'){}else switch((_0x2c90da[_0x1eee44('0x262')][_0x1eee44('0x1f94')]||_0x2c90da['gotoif']['appType'])[_0x1eee44('0xac2')]()){case _0x1eee44('0x1125'):_0x2c90da[_0x1eee44('0x262')][_0x1eee44('0x23c2')]=_0x2c90da[_0x1eee44('0x262')][_0x1eee44('0x19fe')]+'='+_0x2c90da[_0x1eee44('0x262')][_0x1eee44('0x2228')];break;case _0x1eee44('0xf50'):break;default:_0x5a62b1[0x0]=_0x2c90da[_0x1eee44('0x262')][_0x1eee44('0x271c')],_0x5a62b1[0x1]=_0x2c90da['gotoif']['truepriority'],_0x5a62b1[0x2]=_0x2c90da[_0x1eee44('0x262')][_0x1eee44('0xe4c')],_0x2c90da[_0x1eee44('0x262')][_0x1eee44('0x23c2')]=_0x5a62b1[_0x1eee44('0x136')](',');}_0x1185b4(_0x2c90da[_0x1eee44('0x262')]);}function _0x1185b4(_0x463108){_0x3433b7['hide'](_0x463108);}}const _0x534036=_0x424a2;_0x16faec[_0x3877e3('0x1a81')]=['$mdDialog','$q',_0x3877e3('0x1908'),'openchannelAccountApp',_0x3877e3('0x151f'),'api','Auth','crudPermissions'];function _0x16faec(_0x51c526,_0x454660,_0x5afaf6,_0x3eef9e,_0x73ee67,_0x15545b,_0x3238d0,_0x135a38){var _0x5369ee=_0x3877e3,_0x46722a=this;_0x46722a[_0x5369ee('0x123f')]=_0x3238d0['getCurrentUser'](),_0x46722a[_0x5369ee('0x1a69')]=[],_0x46722a[_0x5369ee('0x4b4')]=_0x5369ee('0x17ec')+(_0x3eef9e[_0x5369ee('0x522')]||_0x3eef9e[_0x5369ee('0x1f94')])[_0x5369ee('0x2e8')](),_0x46722a[_0x5369ee('0x23ef')]=angular[_0x5369ee('0xd75')](_0x3eef9e),_0x46722a[_0x5369ee('0x5ed')]=_0x135a38,_0x46722a[_0x5369ee('0x126a')]={};if(_0x46722a['gotop'][_0x5369ee('0x23c2')])switch(_0x46722a[_0x5369ee('0x23ef')][_0x5369ee('0x522')]?_0x46722a['gotop'][_0x5369ee('0x522')]['toLowerCase']():_0x46722a[_0x5369ee('0x23ef')][_0x5369ee('0x1f94')]['toLowerCase']()){case'custom':break;case _0x5369ee('0xc72'):{var _0x50743d=_0x46722a[_0x5369ee('0x23ef')][_0x5369ee('0x23c2')]['split'](',');_0x46722a[_0x5369ee('0x23ef')]['key']=_0x50743d[0x0],_0x46722a[_0x5369ee('0x23ef')][_0x5369ee('0x10f')]=_0x50743d[0x1],_0x46722a[_0x5369ee('0x23ef')][_0x5369ee('0x1cce')]=_0x50743d['slice'](0x2,_0x50743d[_0x5369ee('0x577')])['join'](',');}break;case _0x5369ee('0x1c22'):{var _0x9f9cd9=_0x46722a[_0x5369ee('0x23ef')]['appdata'][_0x5369ee('0x1af5')](',');_0x46722a[_0x5369ee('0x23ef')]['accesskeyid']=_0x9f9cd9[0x0],_0x46722a[_0x5369ee('0x23ef')]['secretaccesskey']=_0x9f9cd9[0x1],_0x46722a['gotop']['lexregion']=_0x9f9cd9[0x2],_0x46722a['gotop'][_0x5369ee('0x15fe')]=_0x9f9cd9[0x3],_0x46722a['gotop'][_0x5369ee('0x1cce')]=_0x9f9cd9[_0x5369ee('0xb3d')](0x4,_0x9f9cd9[_0x5369ee('0x577')])[_0x5369ee('0x136')](',');}break;case'autoreply':{var _0xdc2d52=_0x46722a[_0x5369ee('0x23ef')]['appdata'][_0x5369ee('0x1af5')](',');_0x46722a[_0x5369ee('0x23ef')][_0x5369ee('0x13b6')]=isNaN(_0xdc2d52[0x0])?_0xdc2d52[0x0]:parseInt(_0xdc2d52[0x0],0xa),_0x46722a[_0x5369ee('0x23ef')][_0x5369ee('0xc1e')]=_0xdc2d52[_0x5369ee('0xb3d')](0x1,_0xdc2d52[_0x5369ee('0x577')])[_0x5369ee('0x136')](',');}break;case _0x5369ee('0x1224'):_0x46722a['gotop'][_0x5369ee('0xc1e')]=_0x46722a[_0x5369ee('0x23ef')][_0x5369ee('0x23c2')];break;case _0x5369ee('0x1125'):_0x46722a[_0x5369ee('0x23ef')][_0x5369ee('0x19fe')]=_0x46722a[_0x5369ee('0x23ef')][_0x5369ee('0x23c2')][_0x5369ee('0x1af5')]('=')[0x0],_0x46722a[_0x5369ee('0x23ef')]['value']=_0x46722a[_0x5369ee('0x23ef')]['appdata'][_0x5369ee('0x1af5')]('=')[0x1];break;case _0x5369ee('0x2356'):_0x46722a[_0x5369ee('0x23ef')][_0x5369ee('0xbf8')]=_0x46722a[_0x5369ee('0x23ef')][_0x5369ee('0x23c2')];break;default:{var _0x5e1066=_0x46722a['gotop']['appdata'][_0x5369ee('0x1af5')](',');_0x46722a[_0x5369ee('0x23ef')][_0x5369ee('0xbe5')]=_0x86640f()[_0x5369ee('0x23aa')](_0x5e1066[0x0])?_0x5e1066[0x0]:isNaN(_0x5e1066[0x0])?_0x5e1066[0x0]:parseInt(_0x5e1066[0x0],0xa);}break;}else{}_0x46722a[_0x5369ee('0x23ef')]['type']&&_0x46722a['gotop']['type']['toLowerCase']()===_0x5369ee('0x2300')&&_0x46722a['gotop'][_0x5369ee('0x522')]['toLowerCase']()==='outbounddial'&&(_0x46722a['gotop'][_0x5369ee('0x1995')]=_0x46722a[_0x5369ee('0x23ef')][_0x5369ee('0x159e')]?_0x46722a[_0x5369ee('0x23ef')][_0x5369ee('0x159e')][_0x5369ee('0x1af5')]('$')[0x0]:undefined,_0x46722a[_0x5369ee('0x23ef')][_0x5369ee('0x26f7')]=_0x46722a['gotop'][_0x5369ee('0x1f5a')]?_0x5369ee('0x587')+_0x46722a[_0x5369ee('0x23ef')][_0x5369ee('0x1f5a')]:undefined);_0x46722a[_0x5369ee('0x1da1')]=_0x496793,_0x46722a[_0x5369ee('0x167')]=_0x971094;function _0x496793(){var _0x32564c=_0x5369ee;_0x46722a[_0x32564c('0x1a69')]=[];var _0x2d8fdf=[];_0x46722a[_0x32564c('0x23ef')][_0x32564c('0x7fa')]&&_0x46722a[_0x32564c('0x23ef')]['type']['toLowerCase']()===_0x32564c('0x2300')&&_0x46722a['gotop']['appType']===_0x32564c('0x4ea')&&(_0x46722a[_0x32564c('0x23ef')]['phone']=_0x73ee67[_0x32564c('0x988')]?(_0x46722a[_0x32564c('0x23ef')]['prefix']||'')+_0x32564c('0x349')+_0x73ee67[_0x32564c('0x988')]+'}':(_0x46722a['gotop'][_0x32564c('0x1995')]||'')+_0x32564c('0x2560'),_0x73ee67['recordingFormat']!==_0x32564c('0x983')?_0x46722a[_0x32564c('0x23ef')]['options'][_0x32564c('0x2004')](_0x32564c('0x478'))<0x0&&(_0x46722a[_0x32564c('0x23ef')][_0x32564c('0x26a0')]+=_0x32564c('0x478')):_0x46722a[_0x32564c('0x23ef')][_0x32564c('0x26a0')]=_0x46722a['gotop'][_0x32564c('0x26a0')][_0x32564c('0x16e4')](_0x32564c('0x478'),''));if(_0x46722a[_0x32564c('0x23ef')][_0x32564c('0x522')]&&_0x46722a[_0x32564c('0x23ef')][_0x32564c('0x522')]===_0x32564c('0xf50')){}else switch((_0x46722a[_0x32564c('0x23ef')]['app']||_0x46722a[_0x32564c('0x23ef')][_0x32564c('0x522')])[_0x32564c('0xac2')]()){case'set':_0x46722a[_0x32564c('0x23ef')][_0x32564c('0x23c2')]=_0x46722a['gotop']['name']+'='+_0x46722a['gotop']['value'];break;case _0x32564c('0xf50'):break;default:_0x2d8fdf[0x0]=_0x46722a[_0x32564c('0x23ef')][_0x32564c('0xbe5')],_0x46722a[_0x32564c('0x23ef')]['appdata']=_0x2d8fdf[_0x32564c('0x136')](',');}_0x971094(_0x46722a[_0x32564c('0x23ef')]);}function _0x971094(_0x377891){var _0x2011d0=_0x5369ee;_0x51c526[_0x2011d0('0x1c24')](_0x377891);}}const _0x2a6a22=_0x16faec;_0x172833[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x1850'),_0x3877e3('0x21be'),_0x3877e3('0x2086'),_0x3877e3('0xa07'),'intervals',_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x172833(_0x3c3153,_0x1da39b,_0x40b9ef,_0x3d1c76,_0x2af4c9,_0x4ba549,_0x1bd534,_0xafd7e6,_0x18f819,_0x2a2267){var _0x160045=_0x3877e3,_0x5c1d43=this;_0x5c1d43[_0x160045('0x123f')]=_0x18f819[_0x160045('0x15ed')](),_0x5c1d43[_0x160045('0x1a69')]=[],_0x5c1d43['title']=_0x160045('0x130e'),_0x5c1d43[_0x160045('0xa07')]=angular[_0x160045('0xd75')](_0x2af4c9),_0x5c1d43[_0x160045('0x2530')]=_0x4ba549,_0x5c1d43['newInterval']=![],_0x5c1d43[_0x160045('0x4ca')]=[_0x160045('0x869'),_0x160045('0xf50'),_0x160045('0x17fe')],_0x5c1d43[_0x160045('0x5ed')]=_0x2a2267,_0x5c1d43[_0x160045('0x45e')]=_0x3d1c76[_0x160045('0x1d74')](),_0x5c1d43[_0x160045('0x6fd')]=_0x3d1c76['getMonthNumber'](),_0x5c1d43['monthName']=_0x3d1c76[_0x160045('0x1f1f')](),_0x5c1d43[_0x160045('0x443')]=_0x3d1c76[_0x160045('0x200e')]();if(!_0x5c1d43['interval'])_0x5c1d43[_0x160045('0xa07')]={'interval':_0x160045('0x1cc4')},_0x5c1d43['type']=_0x160045('0x869'),_0x5c1d43['title']=_0x160045('0xe33'),_0x5c1d43['newInterval']=!![];else{if(_0x5c1d43[_0x160045('0xa07')][_0x160045('0xa07')]!==_0x160045('0x1cc4')){_0x5c1d43[_0x160045('0x7fa')]='custom';var _0x1c5a8e=_0x5c1d43['interval']['interval'][_0x160045('0x1af5')](','),_0x2bd492=_0x1c5a8e[0x0],_0x28488e=_0x1c5a8e[0x1],_0x294359=_0x1c5a8e[0x2],_0x3cbaf7=_0x1c5a8e[0x3];if(_0x2bd492!=='*'){var _0x103ec5=_0x2bd492['split']('-')[0x0],_0x5c74fe=_0x2bd492[_0x160045('0x1af5')]('-')[0x1],_0x21be1b;_0x21be1b=new Date(),_0x21be1b[_0x160045('0xb0f')](Number(_0x103ec5[_0x160045('0x1af5')](':')[0x0])),_0x21be1b['setMinutes'](Number(_0x103ec5[_0x160045('0x1af5')](':')[0x1])),_0x5c1d43[_0x160045('0x3e8')]=_0x21be1b,_0x21be1b=new Date(),_0x21be1b[_0x160045('0xb0f')](Number(_0x5c74fe[_0x160045('0x1af5')](':')[0x0])),_0x21be1b[_0x160045('0x119c')](Number(_0x5c74fe['split'](':')[0x1])),_0x5c1d43[_0x160045('0x1fbc')]=_0x21be1b;}_0x28488e!=='*'&&(_0x5c1d43['dayOfWeekFrom']=_0x28488e['split']('-')[0x0],_0x5c1d43[_0x160045('0x1556')]=_0x28488e[_0x160045('0x1af5')]('-')[0x1]),_0x294359!=='*'&&(_0x5c1d43[_0x160045('0x14ec')]=_0x294359[_0x160045('0x1af5')]('-')[0x0],_0x5c1d43[_0x160045('0x3bf')]=_0x294359[_0x160045('0x1af5')]('-')[0x1]),_0x3cbaf7!=='*'&&(_0x5c1d43[_0x160045('0xded')]=_0x3cbaf7[_0x160045('0x1af5')]('-')[0x0],_0x5c1d43['monthTo']=_0x3cbaf7[_0x160045('0x1af5')]('-')[0x1]);}else _0x5c1d43['type']=_0x160045('0x869');}_0x3c3153[_0x160045('0x171b')]['id']&&!_0x5c1d43[_0x160045('0xa07')][_0x160045('0xd7f')]&&(_0x5c1d43[_0x160045('0xa07')]['IntervalId']=_0x3c3153['params']['id']);_0x5c1d43['interval'][_0x160045('0x1ac8')]&&_0x5c1d43['interval'][_0x160045('0xd7f')]&&(_0x5c1d43[_0x160045('0x7fa')]=_0x160045('0x17fe'));_0x5c1d43[_0x160045('0x2bb')]=_0x29b907,_0x5c1d43[_0x160045('0xc2e')]=_0x4ab2b8,_0x5c1d43[_0x160045('0x167')]=_0x1516db;_0x5c1d43[_0x160045('0xa07')][_0x160045('0xd7f')]&&(_0x18f819[_0x160045('0x21de')](_0x160045('0x1bd8'))?_0xafd7e6['interval'][_0x160045('0x595')]({'fields':_0x160045('0xaaf'),'IntervalId':_0x160045('0x27a'),'nolimit':!![]})[_0x160045('0x1376')]['then'](function(_0x54382d){var _0x59f60e=_0x160045;_0x5c1d43[_0x59f60e('0x2530')]=_0x54382d[_0x59f60e('0x1b33')]||[];})['catch'](function(_0x311f80){var _0x299d8d=_0x160045;_0x1bd534[_0x299d8d('0x2092')]({'title':_0x311f80['status']?_0x299d8d('0x22d')+_0x311f80[_0x299d8d('0x209')]+'\x20-\x20'+_0x311f80[_0x299d8d('0x1808')]:'SYSTEM:GET_INTERVALS','msg':_0x311f80['data']?JSON[_0x299d8d('0x25e')](_0x311f80[_0x299d8d('0x11c2')]):_0x311f80['toString']()});}):_0xafd7e6['interval']['get']({'fields':'id,name,interval,IntervalId','IntervalId':_0x160045('0x27a'),'nolimit':!![]})[_0x160045('0x1376')]['then'](function(_0x31ffea){var _0x967b6a=_0x160045;_0x5c1d43[_0x967b6a('0x2530')]=_0x31ffea[_0x967b6a('0x1b33')]||[];})['then'](function(){var _0x5d33f1=_0x160045;return _0xafd7e6[_0x5d33f1('0xab4')]['get']({'userProfileId':_0x5c1d43['currentUser'][_0x5d33f1('0x1618')],'sectionId':0x3ec})[_0x5d33f1('0x1376')];})[_0x160045('0x21ad')](function(_0xaf849b){var _0x10ba88=_0x160045,_0x3e7c1d=_0xaf849b&&_0xaf849b[_0x10ba88('0x1b33')]?_0xaf849b[_0x10ba88('0x1b33')][0x0]:null;if(!_0x3e7c1d)_0x5c1d43[_0x10ba88('0x2530')]=[];else{if(!_0x3e7c1d[_0x10ba88('0x80c')])return _0xafd7e6[_0x10ba88('0x185e')]['get']({'sectionId':_0x3e7c1d['id']})[_0x10ba88('0x1376')][_0x10ba88('0x21ad')](function(_0x1cfb9d){var _0x54b69b=_0x10ba88,_0x2694c7=_0x1cfb9d&&_0x1cfb9d[_0x54b69b('0x1b33')]?_0x1cfb9d[_0x54b69b('0x1b33')]:[],_0x39573a=[],_0x2b6289=null;_0x5c1d43[_0x54b69b('0xa07')]&&(_0x2b6289=_0x86640f()['find'](_0x5c1d43[_0x54b69b('0x2530')],{'name':_0x5c1d43[_0x54b69b('0xa07')][_0x54b69b('0x1ac8')]})),_0x2b6289&&!_0x86640f()[_0x54b69b('0x2664')](_0x2694c7,[_0x54b69b('0x675'),_0x2b6289['id']])&&_0x5c1d43[_0x54b69b('0x2530')][_0x54b69b('0x1a52')](function(_0x4045a4){var _0x48b9ba=_0x54b69b;_0x4045a4['id']===_0x2b6289['id']&&(_0x4045a4[_0x48b9ba('0xba')]=![],_0x39573a['push'](_0x4045a4));}),_0x5c1d43[_0x54b69b('0x2530')]=_0x39573a;});}})[_0x160045('0x1c1d')](function(_0x1040e2){var _0x3c769c=_0x160045;_0x1bd534['error']({'title':_0x1040e2[_0x3c769c('0x209')]?_0x3c769c('0x22d')+_0x1040e2[_0x3c769c('0x209')]+_0x3c769c('0xa99')+_0x1040e2[_0x3c769c('0x1808')]:_0x3c769c('0xdc5'),'msg':_0x1040e2[_0x3c769c('0x11c2')]?JSON[_0x3c769c('0x25e')](_0x1040e2[_0x3c769c('0x11c2')]):_0x1040e2[_0x3c769c('0x174f')]()});}));function _0x182846(){var _0x2f05f7=_0x160045;switch(_0x5c1d43[_0x2f05f7('0x7fa')]){case _0x2f05f7('0x869'):case _0x2f05f7('0x17fe'):return _0x2f05f7('0x1cc4');case _0x2f05f7('0xf50'):{var _0xe16b16=[];if(_0x5c1d43[_0x2f05f7('0x3e8')]!=='*'&&_0x5c1d43[_0x2f05f7('0x3e8')]&&_0x5c1d43['timeRangeTo']){var _0x2d2511=(_0x5c1d43['timeRangeFrom'][_0x2f05f7('0x10c1')]()<0xa?'0':'')+_0x5c1d43['timeRangeFrom'][_0x2f05f7('0x10c1')]()+':'+((_0x5c1d43[_0x2f05f7('0x3e8')][_0x2f05f7('0x27ee')]()<0xa?'0':'')+_0x5c1d43[_0x2f05f7('0x3e8')][_0x2f05f7('0x27ee')]()),_0x32867e=(_0x5c1d43[_0x2f05f7('0x1fbc')][_0x2f05f7('0x10c1')]()<0xa?'0':'')+_0x5c1d43[_0x2f05f7('0x1fbc')][_0x2f05f7('0x10c1')]()+':'+((_0x5c1d43[_0x2f05f7('0x1fbc')][_0x2f05f7('0x27ee')]()<0xa?'0':'')+_0x5c1d43[_0x2f05f7('0x1fbc')][_0x2f05f7('0x27ee')]());_0xe16b16['push'](_0x2d2511+'-'+_0x32867e);}else _0xe16b16[_0x2f05f7('0x206c')]('*');return _0x5c1d43[_0x2f05f7('0x21a5')]?_0x5c1d43[_0x2f05f7('0x1556')]?_0xe16b16['push'](_0x5c1d43[_0x2f05f7('0x21a5')]+'-'+_0x5c1d43['dayOfWeekTo']):_0xe16b16[_0x2f05f7('0x206c')](_0x5c1d43[_0x2f05f7('0x21a5')]):_0xe16b16[_0x2f05f7('0x206c')]('*'),_0x5c1d43[_0x2f05f7('0x14ec')]?_0x5c1d43[_0x2f05f7('0x3bf')]?_0xe16b16['push'](_0x5c1d43['monthDayFrom']+'-'+_0x5c1d43['monthDayTo']):_0xe16b16[_0x2f05f7('0x206c')](_0x5c1d43[_0x2f05f7('0x14ec')]):_0xe16b16[_0x2f05f7('0x206c')]('*'),_0x5c1d43[_0x2f05f7('0xded')]?_0x5c1d43[_0x2f05f7('0x2633')]?_0xe16b16[_0x2f05f7('0x206c')](_0x5c1d43[_0x2f05f7('0xded')]+'-'+_0x5c1d43['monthTo']):_0xe16b16[_0x2f05f7('0x206c')](_0x5c1d43[_0x2f05f7('0xded')]):_0xe16b16['push']('*'),_0xe16b16['join']();}}}function _0x29b907(){var _0x2b575d=_0x160045;_0x5c1d43[_0x2b575d('0x1a69')]=[],_0x5c1d43[_0x2b575d('0xa07')][_0x2b575d('0xa07')]=_0x182846(),_0xafd7e6[_0x2b575d('0xa07')][_0x2b575d('0x186f')](_0x5c1d43[_0x2b575d('0xa07')])['$promise']['then'](function(_0x2ffae3){var _0x21f1b8=_0x2b575d;_0x5c1d43[_0x21f1b8('0x2530')][_0x21f1b8('0x206c')](_0x2ffae3),_0x1bd534[_0x21f1b8('0xdb1')]({'title':_0x21f1b8('0x1ecc'),'msg':_0x5c1d43['interval']['name']?_0x5c1d43[_0x21f1b8('0xa07')][_0x21f1b8('0x19fe')]+'\x20has\x20been\x20created!':''}),_0x1516db();})[_0x2b575d('0x1c1d')](function(_0x46f7a9){var _0x7e85ad=_0x2b575d;console[_0x7e85ad('0x2092')](_0x46f7a9),_0x5c1d43[_0x7e85ad('0x1a69')]=_0x46f7a9[_0x7e85ad('0x11c2')]['errors']||[{'message':_0x46f7a9['toString'](),'type':_0x7e85ad('0x27de')}];});}function _0x4ab2b8(){var _0x3ad624=_0x160045;_0x5c1d43[_0x3ad624('0x1a69')]=[],_0x5c1d43[_0x3ad624('0xa07')][_0x3ad624('0xa07')]=_0x182846(),_0x5c1d43[_0x3ad624('0xa07')]['application']?(_0x5c1d43['type']!==_0x3ad624('0x17fe')&&(_0x5c1d43[_0x3ad624('0xa07')][_0x3ad624('0x1ac8')]=null),_0x1516db(_0x5c1d43[_0x3ad624('0xa07')])):_0xafd7e6[_0x3ad624('0xa07')][_0x3ad624('0x5ef')]({'id':_0x5c1d43['interval']['id']},_0x5c1d43[_0x3ad624('0xa07')])[_0x3ad624('0x1376')][_0x3ad624('0x21ad')](function(_0x2d24ab){var _0x2073ab=_0x3ad624,_0x405d7a=_0x86640f()[_0x2073ab('0x1d2e')](_0x5c1d43[_0x2073ab('0x2530')],{'id':_0x2d24ab['id']});_0x405d7a&&_0x86640f()[_0x2073ab('0xd0e')](_0x405d7a,_0x2d24ab),_0x1bd534[_0x2073ab('0xdb1')]({'title':_0x2073ab('0x234'),'msg':'Interval\x20has\x20been\x20saved!'}),_0x1516db();})[_0x3ad624('0x1c1d')](function(_0x5a6131){var _0xae0ebc=_0x3ad624;console[_0xae0ebc('0x2092')](_0x5a6131),_0x5c1d43[_0xae0ebc('0x1a69')]=_0x5a6131[_0xae0ebc('0x11c2')][_0xae0ebc('0x1a69')]||[{'message':_0x5a6131[_0xae0ebc('0x174f')](),'type':_0xae0ebc('0x13fa')}];});}function _0x1516db(_0x5849a4){_0x1da39b['hide'](_0x5849a4);}}const _0x45afe5=_0x172833;_0x38d00c[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x173b'),_0x3877e3('0x151f'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x38d00c(_0x483f49,_0x4db75b,_0x34de95,_0x4ed087,_0x28bcce,_0x55439a,_0x439acb,_0x3d5df1){var _0x50221d=_0x3877e3,_0x3349be=this;_0x3349be[_0x50221d('0x123f')]=_0x439acb[_0x50221d('0x15ed')](),_0x3349be[_0x50221d('0x1a69')]=[],_0x3349be['title']=_0x50221d('0x17ec')+(_0x4ed087[_0x50221d('0x522')]||_0x4ed087['app'])[_0x50221d('0x2e8')](),_0x3349be['noop']=angular[_0x50221d('0xd75')](_0x4ed087),_0x3349be[_0x50221d('0x5ed')]=_0x3d5df1,_0x3349be[_0x50221d('0x126a')]={};if(_0x3349be[_0x50221d('0x2101')][_0x50221d('0x23c2')])switch(_0x3349be['noop']['appType']?_0x3349be['noop'][_0x50221d('0x522')]['toLowerCase']():_0x3349be[_0x50221d('0x2101')]['app'][_0x50221d('0xac2')]()){case'custom':break;case _0x50221d('0xc72'):{var _0x378ade=_0x3349be[_0x50221d('0x2101')]['appdata'][_0x50221d('0x1af5')](',');_0x3349be[_0x50221d('0x2101')][_0x50221d('0xddb')]=_0x378ade[0x0],_0x3349be['noop']['language']=_0x378ade[0x1],_0x3349be[_0x50221d('0x2101')][_0x50221d('0x1cce')]=_0x378ade[_0x50221d('0xb3d')](0x2,_0x378ade[_0x50221d('0x577')])[_0x50221d('0x136')](',');}break;case'amazonlex':{var _0x56bf0d=_0x3349be[_0x50221d('0x2101')][_0x50221d('0x23c2')][_0x50221d('0x1af5')](',');_0x3349be[_0x50221d('0x2101')][_0x50221d('0x21c6')]=_0x56bf0d[0x0],_0x3349be['noop'][_0x50221d('0x797')]=_0x56bf0d[0x1],_0x3349be[_0x50221d('0x2101')][_0x50221d('0x20a3')]=_0x56bf0d[0x2],_0x3349be[_0x50221d('0x2101')][_0x50221d('0x15fe')]=_0x56bf0d[0x3],_0x3349be[_0x50221d('0x2101')][_0x50221d('0x1cce')]=_0x56bf0d[_0x50221d('0xb3d')](0x4,_0x56bf0d[_0x50221d('0x577')])[_0x50221d('0x136')](',');}break;case _0x50221d('0x1b98'):{var _0x154796=_0x3349be['noop'][_0x50221d('0x23c2')]['split'](',');_0x3349be[_0x50221d('0x2101')][_0x50221d('0x13b6')]=isNaN(_0x154796[0x0])?_0x154796[0x0]:parseInt(_0x154796[0x0],0xa),_0x3349be['noop'][_0x50221d('0xc1e')]=_0x154796[_0x50221d('0xb3d')](0x1,_0x154796['length'])[_0x50221d('0x136')](',');}break;case'message':_0x3349be[_0x50221d('0x2101')][_0x50221d('0xc1e')]=_0x3349be[_0x50221d('0x2101')][_0x50221d('0x23c2')];break;case _0x50221d('0x1125'):_0x3349be[_0x50221d('0x2101')][_0x50221d('0x19fe')]=_0x3349be[_0x50221d('0x2101')]['appdata']['split']('=')[0x0],_0x3349be[_0x50221d('0x2101')]['value']=_0x3349be[_0x50221d('0x2101')][_0x50221d('0x23c2')][_0x50221d('0x1af5')]('=')[0x1];break;case _0x50221d('0x2356'):_0x3349be[_0x50221d('0x2101')][_0x50221d('0xbf8')]=_0x3349be[_0x50221d('0x2101')][_0x50221d('0x23c2')];break;default:{var _0x22be2b=_0x3349be[_0x50221d('0x2101')]['appdata'][_0x50221d('0x1af5')](',');_0x3349be['noop'][_0x50221d('0x2228')]=_0x86640f()['isEmpty'](_0x22be2b[0x0])?_0x22be2b[0x0]:isNaN(_0x22be2b[0x0])?_0x22be2b[0x0]:parseInt(_0x22be2b[0x0],0xa);}break;}else{}_0x3349be['noop'][_0x50221d('0x7fa')]&&_0x3349be[_0x50221d('0x2101')][_0x50221d('0x7fa')][_0x50221d('0xac2')]()===_0x50221d('0x2300')&&_0x3349be[_0x50221d('0x2101')][_0x50221d('0x522')][_0x50221d('0xac2')]()===_0x50221d('0x2363')&&(_0x3349be[_0x50221d('0x2101')][_0x50221d('0x1995')]=_0x3349be[_0x50221d('0x2101')][_0x50221d('0x159e')]?_0x3349be['noop'][_0x50221d('0x159e')][_0x50221d('0x1af5')]('$')[0x0]:undefined,_0x3349be[_0x50221d('0x2101')]['callerId']=_0x3349be[_0x50221d('0x2101')][_0x50221d('0x1f5a')]?'CALLERID(all)='+_0x3349be[_0x50221d('0x2101')][_0x50221d('0x1f5a')]:undefined);_0x3349be[_0x50221d('0x1da1')]=_0x4f6a0d,_0x3349be[_0x50221d('0x167')]=_0x3a687e;function _0x4f6a0d(){var _0x1ab016=_0x50221d;_0x3349be[_0x1ab016('0x1a69')]=[];var _0x7401b8=[];_0x3349be['noop'][_0x1ab016('0x7fa')]&&_0x3349be['noop'][_0x1ab016('0x7fa')]['toLowerCase']()===_0x1ab016('0x2300')&&_0x3349be['noop'][_0x1ab016('0x522')]===_0x1ab016('0x4ea')&&(_0x3349be['noop'][_0x1ab016('0x159e')]=_0x28bcce['cutdigits']?(_0x3349be[_0x1ab016('0x2101')]['prefix']||'')+'${EXTEN:'+_0x28bcce[_0x1ab016('0x988')]+'}':(_0x3349be[_0x1ab016('0x2101')]['prefix']||'')+'${EXTEN}',_0x28bcce[_0x1ab016('0xad1')]!=='none'?_0x3349be['noop']['options'][_0x1ab016('0x2004')](_0x1ab016('0x478'))<0x0&&(_0x3349be[_0x1ab016('0x2101')][_0x1ab016('0x26a0')]+=_0x1ab016('0x478')):_0x3349be['noop']['options']=_0x3349be['noop'][_0x1ab016('0x26a0')][_0x1ab016('0x16e4')](_0x1ab016('0x478'),''));if(_0x3349be['noop']['appType']&&_0x3349be[_0x1ab016('0x2101')]['appType']==='custom'){}else switch((_0x3349be[_0x1ab016('0x2101')][_0x1ab016('0x1f94')]||_0x3349be['noop'][_0x1ab016('0x522')])[_0x1ab016('0xac2')]()){case _0x1ab016('0x1125'):_0x3349be[_0x1ab016('0x2101')][_0x1ab016('0x23c2')]=_0x3349be[_0x1ab016('0x2101')][_0x1ab016('0x19fe')]+'='+_0x3349be[_0x1ab016('0x2101')][_0x1ab016('0x2228')];break;case _0x1ab016('0xf50'):break;default:_0x7401b8[0x0]=_0x3349be[_0x1ab016('0x2101')][_0x1ab016('0x2228')],_0x3349be[_0x1ab016('0x2101')][_0x1ab016('0x23c2')]=_0x7401b8[_0x1ab016('0x136')](',');}_0x3a687e(_0x3349be['noop']);}function _0x3a687e(_0x56d309){var _0x23c80d=_0x50221d;_0x483f49[_0x23c80d('0x1c24')](_0x56d309);}}const _0x458edf=_0x38d00c;_0x229a64[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x173b'),_0x3877e3('0x151f'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x229a64(_0x5b9bab,_0x1b24b5,_0x55c07c,_0x4c8113,_0x17e436,_0x519efc,_0x30b24d,_0x521dc8){var _0x961677=_0x3877e3,_0x2864f8=this;_0x2864f8[_0x961677('0x123f')]=_0x30b24d['getCurrentUser'](),_0x2864f8[_0x961677('0x1a69')]=[],_0x2864f8[_0x961677('0x4b4')]=_0x961677('0x17ec')+(_0x4c8113['appType']||_0x4c8113[_0x961677('0x1f94')])[_0x961677('0x2e8')](),_0x2864f8[_0x961677('0xbdd')]=angular[_0x961677('0xd75')](_0x4c8113),_0x2864f8[_0x961677('0x5ed')]=_0x521dc8,_0x2864f8[_0x961677('0x126a')]={};if(_0x2864f8['queue'][_0x961677('0x23c2')])switch(_0x2864f8[_0x961677('0xbdd')][_0x961677('0x522')]?_0x2864f8[_0x961677('0xbdd')][_0x961677('0x522')][_0x961677('0xac2')]():_0x2864f8[_0x961677('0xbdd')][_0x961677('0x1f94')][_0x961677('0xac2')]()){case _0x961677('0xf50'):break;case _0x961677('0xc72'):{var _0x233dc1=_0x2864f8[_0x961677('0xbdd')]['appdata']['split'](',');_0x2864f8['queue'][_0x961677('0xddb')]=_0x233dc1[0x0],_0x2864f8[_0x961677('0xbdd')][_0x961677('0x10f')]=_0x233dc1[0x1],_0x2864f8[_0x961677('0xbdd')][_0x961677('0x1cce')]=_0x233dc1['slice'](0x2,_0x233dc1[_0x961677('0x577')])[_0x961677('0x136')](',');}break;case _0x961677('0x1c22'):{var _0x475259=_0x2864f8[_0x961677('0xbdd')][_0x961677('0x23c2')]['split'](',');_0x2864f8[_0x961677('0xbdd')][_0x961677('0x21c6')]=_0x475259[0x0],_0x2864f8['queue'][_0x961677('0x797')]=_0x475259[0x1],_0x2864f8['queue'][_0x961677('0x20a3')]=_0x475259[0x2],_0x2864f8[_0x961677('0xbdd')][_0x961677('0x15fe')]=_0x475259[0x3],_0x2864f8[_0x961677('0xbdd')][_0x961677('0x1cce')]=_0x475259[_0x961677('0xb3d')](0x4,_0x475259['length'])[_0x961677('0x136')](',');}break;case _0x961677('0x1b98'):{var _0x36c519=_0x2864f8['queue'][_0x961677('0x23c2')][_0x961677('0x1af5')](',');_0x2864f8[_0x961677('0xbdd')][_0x961677('0x13b6')]=isNaN(_0x36c519[0x0])?_0x36c519[0x0]:parseInt(_0x36c519[0x0],0xa),_0x2864f8[_0x961677('0xbdd')][_0x961677('0xc1e')]=_0x36c519[_0x961677('0xb3d')](0x1,_0x36c519[_0x961677('0x577')])['join'](',');}break;case _0x961677('0x1224'):_0x2864f8[_0x961677('0xbdd')][_0x961677('0xc1e')]=_0x2864f8[_0x961677('0xbdd')][_0x961677('0x23c2')];break;case _0x961677('0x1125'):_0x2864f8['queue']['name']=_0x2864f8[_0x961677('0xbdd')][_0x961677('0x23c2')][_0x961677('0x1af5')]('=')[0x0],_0x2864f8['queue'][_0x961677('0x2228')]=_0x2864f8[_0x961677('0xbdd')][_0x961677('0x23c2')]['split']('=')[0x1];break;case _0x961677('0x2356'):_0x2864f8[_0x961677('0xbdd')][_0x961677('0xbf8')]=_0x2864f8[_0x961677('0xbdd')]['appdata'];break;default:{var _0x3ba61c=_0x2864f8['queue'][_0x961677('0x23c2')][_0x961677('0x1af5')](',');_0x2864f8[_0x961677('0xbdd')]['queue']=_0x86640f()[_0x961677('0x23aa')](_0x3ba61c[0x0])?_0x3ba61c[0x0]:isNaN(_0x3ba61c[0x0])?_0x3ba61c[0x0]:parseInt(_0x3ba61c[0x0],0xa),_0x2864f8[_0x961677('0xbdd')][_0x961677('0x2133')]=_0x86640f()[_0x961677('0x23aa')](_0x3ba61c[0x1])?_0x3ba61c[0x1]:isNaN(_0x3ba61c[0x1])?_0x3ba61c[0x1]:parseInt(_0x3ba61c[0x1],0xa);}break;}else _0x2864f8[_0x961677('0xbdd')][_0x961677('0xbdd')]=0x12c,_0x2864f8[_0x961677('0xbdd')][_0x961677('0x2133')]=0x12c;_0x2864f8[_0x961677('0xbdd')][_0x961677('0x7fa')]&&_0x2864f8[_0x961677('0xbdd')]['type'][_0x961677('0xac2')]()===_0x961677('0x2300')&&_0x2864f8[_0x961677('0xbdd')][_0x961677('0x522')][_0x961677('0xac2')]()===_0x961677('0x2363')&&(_0x2864f8['queue'][_0x961677('0x1995')]=_0x2864f8['queue']['phone']?_0x2864f8[_0x961677('0xbdd')][_0x961677('0x159e')][_0x961677('0x1af5')]('$')[0x0]:undefined,_0x2864f8[_0x961677('0xbdd')][_0x961677('0x26f7')]=_0x2864f8[_0x961677('0xbdd')][_0x961677('0x1f5a')]?'CALLERID(all)='+_0x2864f8[_0x961677('0xbdd')][_0x961677('0x1f5a')]:undefined);_0x2864f8[_0x961677('0x1da1')]=_0x40db24,_0x2864f8['closeDialog']=_0x1df31c,_0x30b24d[_0x961677('0x21de')](_0x961677('0x1bd8'))?_0x519efc[_0x961677('0x1c')]['get']({'fields':_0x961677('0xfa'),'sort':_0x961677('0x19fe'),'nolimit':'true'})[_0x961677('0x1376')]['then'](function(_0x37d860){var _0x3742ef=_0x961677;_0x2864f8['queues']=_0x37d860[_0x3742ef('0x1b33')]||[];})[_0x961677('0x1c1d')](function(_0x4acaee){var _0x5e78cf=_0x961677;_0x55c07c[_0x5e78cf('0x2092')]({'title':_0x4acaee[_0x5e78cf('0x209')]?_0x5e78cf('0x22d')+_0x4acaee[_0x5e78cf('0x209')]+_0x5e78cf('0xa99')+_0x4acaee['statusText']:_0x5e78cf('0x1612'),'msg':_0x4acaee[_0x5e78cf('0x11c2')]?JSON['stringify'](_0x4acaee[_0x5e78cf('0x11c2')]):_0x4acaee['toString']()});}):_0x519efc[_0x961677('0x1c')]['get']({'fields':_0x961677('0xfa'),'sort':'name','nolimit':_0x961677('0x19bd')})['$promise'][_0x961677('0x21ad')](function(_0x3d2ec4){var _0x46c403=_0x961677;_0x2864f8[_0x46c403('0xb7a')]=_0x3d2ec4[_0x46c403('0x1b33')]||[];})['then'](function(){var _0xdb9a45=_0x961677;return _0x519efc[_0xdb9a45('0xab4')][_0xdb9a45('0x595')]({'userProfileId':_0x2864f8['currentUser'][_0xdb9a45('0x1618')],'sectionId':0x321})[_0xdb9a45('0x1376')];})[_0x961677('0x21ad')](function(_0x2a8592){var _0x2620f7=_0x961677,_0x557443=_0x2a8592&&_0x2a8592['rows']?_0x2a8592[_0x2620f7('0x1b33')][0x0]:null;if(!_0x557443){var _0x300c36=[],_0x360b19=null;_0x2864f8[_0x2620f7('0xbdd')]&&(_0x360b19=_0x86640f()[_0x2620f7('0x1d2e')](_0x2864f8['queues'],{'name':_0x2864f8[_0x2620f7('0xbdd')][_0x2620f7('0xbdd')]}));for(var _0x59a162=0x0;_0x59a162<_0x2864f8[_0x2620f7('0xb7a')][_0x2620f7('0x577')];_0x59a162++){_0x360b19&&_0x2864f8[_0x2620f7('0xb7a')][_0x59a162]['id']===_0x360b19['id']&&(_0x2864f8[_0x2620f7('0xb7a')][_0x59a162]['canSelect']=![],_0x300c36[_0x2620f7('0x206c')](_0x2864f8[_0x2620f7('0xb7a')][_0x59a162]));}_0x2864f8[_0x2620f7('0xb7a')]=_0x300c36;}else{if(!_0x557443[_0x2620f7('0x80c')])return _0x519efc[_0x2620f7('0x185e')][_0x2620f7('0x595')]({'sectionId':_0x557443['id']})[_0x2620f7('0x1376')][_0x2620f7('0x21ad')](function(_0x3ad403){var _0x10aa57=_0x2620f7,_0x565bfe=_0x86640f()[_0x10aa57('0x26c3')](_0x3ad403[_0x10aa57('0x1b33')],function(_0x4234fa){var _0x5599db=_0x10aa57;return _0x86640f()[_0x5599db('0x1d2e')](_0x2864f8[_0x5599db('0xb7a')],{'id':_0x4234fa[_0x5599db('0x675')]});}),_0x172a75=null;_0x2864f8[_0x10aa57('0xbdd')]&&(_0x172a75=_0x86640f()['find'](_0x2864f8[_0x10aa57('0xb7a')],{'name':_0x2864f8['queue'][_0x10aa57('0xbdd')]}));if(_0x172a75&&!_0x86640f()['some'](_0x565bfe,['id',_0x172a75['id']])){var _0x5ea436=_0x86640f()[_0x10aa57('0x1d2e')](_0x2864f8[_0x10aa57('0xb7a')],{'id':_0x172a75['id']});_0x5ea436[_0x10aa57('0xba')]=![],_0x565bfe[_0x10aa57('0x206c')](_0x5ea436);}_0x2864f8['queues']=_0x565bfe;});}})[_0x961677('0x1c1d')](function(_0x9ff9bd){var _0x43de8d=_0x961677;_0x55c07c[_0x43de8d('0x2092')]({'title':_0x9ff9bd[_0x43de8d('0x209')]?_0x43de8d('0x22d')+_0x9ff9bd[_0x43de8d('0x209')]+'\x20-\x20'+_0x9ff9bd['statusText']:'SYSTEM:GETqueues','msg':_0x9ff9bd[_0x43de8d('0x11c2')]?JSON[_0x43de8d('0x25e')](_0x9ff9bd[_0x43de8d('0x11c2')]):_0x9ff9bd[_0x43de8d('0x174f')]()});});function _0x40db24(){var _0x5ce90c=_0x961677;_0x2864f8[_0x5ce90c('0x1a69')]=[];var _0x35d4a7=[];_0x2864f8[_0x5ce90c('0xbdd')][_0x5ce90c('0x7fa')]&&_0x2864f8[_0x5ce90c('0xbdd')][_0x5ce90c('0x7fa')]['toLowerCase']()===_0x5ce90c('0x2300')&&_0x2864f8[_0x5ce90c('0xbdd')][_0x5ce90c('0x522')]==='outboundDial'&&(_0x2864f8[_0x5ce90c('0xbdd')][_0x5ce90c('0x159e')]=_0x17e436[_0x5ce90c('0x988')]?(_0x2864f8[_0x5ce90c('0xbdd')][_0x5ce90c('0x1995')]||'')+_0x5ce90c('0x349')+_0x17e436[_0x5ce90c('0x988')]+'}':(_0x2864f8['queue'][_0x5ce90c('0x1995')]||'')+_0x5ce90c('0x2560'),_0x17e436[_0x5ce90c('0xad1')]!==_0x5ce90c('0x983')?_0x2864f8[_0x5ce90c('0xbdd')][_0x5ce90c('0x26a0')][_0x5ce90c('0x2004')](_0x5ce90c('0x478'))<0x0&&(_0x2864f8[_0x5ce90c('0xbdd')][_0x5ce90c('0x26a0')]+='U(xcally-mixmonitor-context)'):_0x2864f8[_0x5ce90c('0xbdd')]['options']=_0x2864f8['queue'][_0x5ce90c('0x26a0')][_0x5ce90c('0x16e4')](_0x5ce90c('0x478'),''));var _0x3567a9=_0x86640f()['find'](_0x2864f8['queues'],{'name':_0x2864f8[_0x5ce90c('0xbdd')][_0x5ce90c('0xbdd')]});_0x3567a9&&(_0x2864f8['queue'][_0x86640f()[_0x5ce90c('0x1b7e')](_0x5ce90c('0x247f'))+_0x5ce90c('0x25ba')]=_0x3567a9['id']);if(_0x2864f8[_0x5ce90c('0xbdd')][_0x5ce90c('0x522')]&&_0x2864f8['queue'][_0x5ce90c('0x522')]===_0x5ce90c('0xf50')){}else switch((_0x2864f8[_0x5ce90c('0xbdd')]['app']||_0x2864f8['queue'][_0x5ce90c('0x522')])[_0x5ce90c('0xac2')]()){case'set':_0x2864f8[_0x5ce90c('0xbdd')]['appdata']=_0x2864f8[_0x5ce90c('0xbdd')]['name']+'='+_0x2864f8[_0x5ce90c('0xbdd')]['value'];break;case _0x5ce90c('0xf50'):break;default:_0x35d4a7[0x0]=_0x2864f8[_0x5ce90c('0xbdd')][_0x5ce90c('0xbdd')],_0x35d4a7[0x1]=_0x2864f8[_0x5ce90c('0xbdd')][_0x5ce90c('0x2133')],_0x2864f8[_0x5ce90c('0xbdd')][_0x5ce90c('0x23c2')]=_0x35d4a7[_0x5ce90c('0x136')](',');}_0x1df31c(_0x2864f8[_0x5ce90c('0xbdd')]);}function _0x1df31c(_0x256e1a){var _0x36fc68=_0x961677;_0x5b9bab[_0x36fc68('0x1c24')](_0x256e1a);}}const _0x1c354c=_0x229a64;_0x1eef8d[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),'openchannelAccountApp',_0x3877e3('0x151f'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x1eef8d(_0x4db48f,_0xa3cd13,_0x3c10db,_0x585b3d,_0x156fa5,_0x3f3163,_0x24658f,_0x70dcf6){var _0x49c075=_0x3877e3,_0x4cb074=this;_0x4cb074[_0x49c075('0x123f')]=_0x24658f['getCurrentUser'](),_0x4cb074[_0x49c075('0x1a69')]=[],_0x4cb074[_0x49c075('0x4b4')]=_0x49c075('0x17ec')+(_0x585b3d[_0x49c075('0x522')]||_0x585b3d[_0x49c075('0x1f94')])['toUpperCase'](),_0x4cb074[_0x49c075('0x12b1')]=angular['copy'](_0x585b3d),_0x4cb074['crudPermissions']=_0x70dcf6,_0x4cb074[_0x49c075('0x126a')]={};if(_0x4cb074[_0x49c075('0x12b1')][_0x49c075('0x23c2')])switch(_0x4cb074[_0x49c075('0x12b1')][_0x49c075('0x522')]?_0x4cb074['system']['appType'][_0x49c075('0xac2')]():_0x4cb074['system'][_0x49c075('0x1f94')][_0x49c075('0xac2')]()){case _0x49c075('0xf50'):break;case _0x49c075('0xc72'):{var _0x4eebea=_0x4cb074[_0x49c075('0x12b1')][_0x49c075('0x23c2')][_0x49c075('0x1af5')](',');_0x4cb074[_0x49c075('0x12b1')]['key']=_0x4eebea[0x0],_0x4cb074[_0x49c075('0x12b1')][_0x49c075('0x10f')]=_0x4eebea[0x1],_0x4cb074[_0x49c075('0x12b1')]['welcomemessage']=_0x4eebea[_0x49c075('0xb3d')](0x2,_0x4eebea[_0x49c075('0x577')])['join'](',');}break;case _0x49c075('0x1c22'):{var _0x3e5864=_0x4cb074[_0x49c075('0x12b1')]['appdata']['split'](',');_0x4cb074['system'][_0x49c075('0x21c6')]=_0x3e5864[0x0],_0x4cb074[_0x49c075('0x12b1')][_0x49c075('0x797')]=_0x3e5864[0x1],_0x4cb074[_0x49c075('0x12b1')][_0x49c075('0x20a3')]=_0x3e5864[0x2],_0x4cb074['system'][_0x49c075('0x15fe')]=_0x3e5864[0x3],_0x4cb074[_0x49c075('0x12b1')][_0x49c075('0x1cce')]=_0x3e5864[_0x49c075('0xb3d')](0x4,_0x3e5864[_0x49c075('0x577')])['join'](',');}break;case _0x49c075('0x1b98'):{var _0x5a97cc=_0x4cb074[_0x49c075('0x12b1')]['appdata'][_0x49c075('0x1af5')](',');_0x4cb074['system'][_0x49c075('0x13b6')]=isNaN(_0x5a97cc[0x0])?_0x5a97cc[0x0]:parseInt(_0x5a97cc[0x0],0xa),_0x4cb074[_0x49c075('0x12b1')][_0x49c075('0xc1e')]=_0x5a97cc[_0x49c075('0xb3d')](0x1,_0x5a97cc[_0x49c075('0x577')])[_0x49c075('0x136')](',');}break;case _0x49c075('0x1224'):_0x4cb074[_0x49c075('0x12b1')]['text']=_0x4cb074[_0x49c075('0x12b1')][_0x49c075('0x23c2')];break;case _0x49c075('0x1125'):_0x4cb074[_0x49c075('0x12b1')][_0x49c075('0x19fe')]=_0x4cb074[_0x49c075('0x12b1')][_0x49c075('0x23c2')][_0x49c075('0x1af5')]('=')[0x0],_0x4cb074[_0x49c075('0x12b1')]['value']=_0x4cb074[_0x49c075('0x12b1')][_0x49c075('0x23c2')][_0x49c075('0x1af5')]('=')[0x1];break;case _0x49c075('0x2356'):_0x4cb074[_0x49c075('0x12b1')][_0x49c075('0xbf8')]=_0x4cb074[_0x49c075('0x12b1')]['appdata'];break;default:{var _0x6abf28=_0x4cb074[_0x49c075('0x12b1')][_0x49c075('0x23c2')][_0x49c075('0x1af5')](',');_0x4cb074[_0x49c075('0x12b1')][_0x49c075('0xbf3')]=_0x86640f()['isEmpty'](_0x6abf28[0x0])?_0x6abf28[0x0]:isNaN(_0x6abf28[0x0])?_0x6abf28[0x0]:parseInt(_0x6abf28[0x0],0xa),_0x4cb074[_0x49c075('0x12b1')][_0x49c075('0x25bb')]=_0x86640f()[_0x49c075('0x23aa')](_0x6abf28[0x1])?_0x6abf28[0x1]:isNaN(_0x6abf28[0x1])?_0x6abf28[0x1]:parseInt(_0x6abf28[0x1],0xa);}break;}else _0x4cb074[_0x49c075('0x12b1')][_0x49c075('0x25bb')]='';_0x4cb074[_0x49c075('0x12b1')][_0x49c075('0x7fa')]&&_0x4cb074[_0x49c075('0x12b1')][_0x49c075('0x7fa')][_0x49c075('0xac2')]()===_0x49c075('0x2300')&&_0x4cb074['system'][_0x49c075('0x522')][_0x49c075('0xac2')]()===_0x49c075('0x2363')&&(_0x4cb074[_0x49c075('0x12b1')]['prefix']=_0x4cb074[_0x49c075('0x12b1')][_0x49c075('0x159e')]?_0x4cb074['system'][_0x49c075('0x159e')][_0x49c075('0x1af5')]('$')[0x0]:undefined,_0x4cb074[_0x49c075('0x12b1')][_0x49c075('0x26f7')]=_0x4cb074[_0x49c075('0x12b1')]['callerID']?_0x49c075('0x587')+_0x4cb074[_0x49c075('0x12b1')]['callerID']:undefined);_0x4cb074['saveOpenchannelAccountApp']=_0x596938,_0x4cb074['closeDialog']=_0xb28068,_0x24658f[_0x49c075('0x21de')](_0x49c075('0x1bd8'))?_0x3f3163[_0x49c075('0x25bb')][_0x49c075('0x595')]({'fields':'id,name','sort':_0x49c075('0x19fe'),'nolimit':_0x49c075('0x19bd')})[_0x49c075('0x1376')]['then'](function(_0x1700e9){var _0x52fa4e=_0x49c075;_0x4cb074[_0x52fa4e('0x142d')]=_0x1700e9['rows']||[];})[_0x49c075('0x1c1d')](function(_0xca6fd7){var _0x2a0208=_0x49c075;_0x3c10db[_0x2a0208('0x2092')]({'title':_0xca6fd7[_0x2a0208('0x209')]?_0x2a0208('0x22d')+_0xca6fd7['status']+_0x2a0208('0xa99')+_0xca6fd7[_0x2a0208('0x1808')]:_0x2a0208('0xc0c'),'msg':_0xca6fd7['data']?JSON['stringify'](_0xca6fd7[_0x2a0208('0x11c2')]):_0xca6fd7[_0x2a0208('0x174f')]()});}):_0x3f3163[_0x49c075('0x25bb')]['get']({'fields':_0x49c075('0x1aa8'),'sort':'name','nolimit':_0x49c075('0x19bd')})[_0x49c075('0x1376')]['then'](function(_0x30dcf3){var _0x5609d1=_0x49c075;_0x4cb074[_0x5609d1('0x142d')]=_0x30dcf3['rows']||[];})[_0x49c075('0x21ad')](function(){var _0x4fe70d=_0x49c075;return _0x3f3163[_0x4fe70d('0xab4')][_0x4fe70d('0x595')]({'userProfileId':_0x4cb074[_0x4fe70d('0x123f')][_0x4fe70d('0x1618')],'sectionId':0x3f4})[_0x4fe70d('0x1376')];})['then'](function(_0x350488){var _0x4c9044=_0x49c075,_0x5c4135=_0x350488&&_0x350488[_0x4c9044('0x1b33')]?_0x350488[_0x4c9044('0x1b33')][0x0]:null;if(!_0x5c4135){var _0x33b277=[],_0x2e7c9c=null;_0x4cb074[_0x4c9044('0x12b1')]&&(_0x2e7c9c=_0x86640f()[_0x4c9044('0x1d2e')](_0x4cb074[_0x4c9044('0x142d')],{'name':_0x4cb074[_0x4c9044('0x12b1')][_0x4c9044('0x25bb')]}));for(var _0x54c581=0x0;_0x54c581<_0x4cb074[_0x4c9044('0x142d')]['length'];_0x54c581++){_0x2e7c9c&&_0x4cb074[_0x4c9044('0x142d')][_0x54c581]['id']===_0x2e7c9c['id']&&(_0x4cb074[_0x4c9044('0x142d')][_0x54c581][_0x4c9044('0xba')]=![],_0x33b277[_0x4c9044('0x206c')](_0x4cb074[_0x4c9044('0x142d')][_0x54c581]));}_0x4cb074[_0x4c9044('0x142d')]=_0x33b277;}else{if(!_0x5c4135['autoAssociation'])return _0x3f3163['userProfileResource'][_0x4c9044('0x595')]({'sectionId':_0x5c4135['id']})[_0x4c9044('0x1376')]['then'](function(_0x284385){var _0x197dc3=_0x4c9044,_0x3c94f1=_0x86640f()[_0x197dc3('0x26c3')](_0x284385[_0x197dc3('0x1b33')],function(_0x18a6f7){var _0x3b96d3=_0x197dc3;return _0x86640f()[_0x3b96d3('0x1d2e')](_0x4cb074[_0x3b96d3('0x142d')],{'id':_0x18a6f7['resourceId']});}),_0x5501c0=null;_0x4cb074[_0x197dc3('0x12b1')]&&(_0x5501c0=_0x86640f()[_0x197dc3('0x1d2e')](_0x4cb074[_0x197dc3('0x142d')],{'name':_0x4cb074[_0x197dc3('0x12b1')][_0x197dc3('0x25bb')]}));if(_0x5501c0&&!_0x86640f()[_0x197dc3('0x2664')](_0x3c94f1,['id',_0x5501c0['id']])){var _0xcc6a34=_0x86640f()['find'](_0x4cb074[_0x197dc3('0x142d')],{'id':_0x5501c0['id']});_0xcc6a34[_0x197dc3('0xba')]=![],_0x3c94f1[_0x197dc3('0x206c')](_0xcc6a34);}_0x4cb074[_0x197dc3('0x142d')]=_0x3c94f1;});}})[_0x49c075('0x1c1d')](function(_0x2341d3){var _0xef6d50=_0x49c075;_0x3c10db[_0xef6d50('0x2092')]({'title':_0x2341d3['status']?'API:'+_0x2341d3['status']+'\x20-\x20'+_0x2341d3['statusText']:_0xef6d50('0x1a26'),'msg':_0x2341d3['data']?JSON[_0xef6d50('0x25e')](_0x2341d3['data']):_0x2341d3['toString']()});});function _0x596938(){var _0x664bc1=_0x49c075;_0x4cb074[_0x664bc1('0x1a69')]=[];var _0x290a6c=[];_0x4cb074[_0x664bc1('0x12b1')][_0x664bc1('0x7fa')]&&_0x4cb074[_0x664bc1('0x12b1')]['type'][_0x664bc1('0xac2')]()==='outbound'&&_0x4cb074[_0x664bc1('0x12b1')][_0x664bc1('0x522')]===_0x664bc1('0x4ea')&&(_0x4cb074[_0x664bc1('0x12b1')][_0x664bc1('0x159e')]=_0x156fa5[_0x664bc1('0x988')]?(_0x4cb074[_0x664bc1('0x12b1')][_0x664bc1('0x1995')]||'')+_0x664bc1('0x349')+_0x156fa5[_0x664bc1('0x988')]+'}':(_0x4cb074[_0x664bc1('0x12b1')]['prefix']||'')+_0x664bc1('0x2560'),_0x156fa5[_0x664bc1('0xad1')]!=='none'?_0x4cb074['system']['options'][_0x664bc1('0x2004')](_0x664bc1('0x478'))<0x0&&(_0x4cb074['system']['options']+='U(xcally-mixmonitor-context)'):_0x4cb074[_0x664bc1('0x12b1')][_0x664bc1('0x26a0')]=_0x4cb074[_0x664bc1('0x12b1')][_0x664bc1('0x26a0')][_0x664bc1('0x16e4')](_0x664bc1('0x478'),''));if(_0x4cb074[_0x664bc1('0x12b1')][_0x664bc1('0x522')]&&_0x4cb074['system'][_0x664bc1('0x522')]===_0x664bc1('0xf50')){}else switch((_0x4cb074['system'][_0x664bc1('0x1f94')]||_0x4cb074[_0x664bc1('0x12b1')][_0x664bc1('0x522')])[_0x664bc1('0xac2')]()){case _0x664bc1('0x1125'):_0x4cb074['system'][_0x664bc1('0x23c2')]=_0x4cb074['system'][_0x664bc1('0x19fe')]+'='+_0x4cb074[_0x664bc1('0x12b1')][_0x664bc1('0x2228')];break;case _0x664bc1('0xf50'):break;default:_0x290a6c[0x0]=_0x4cb074[_0x664bc1('0x12b1')]['command'],_0x290a6c[0x1]=_0x4cb074[_0x664bc1('0x12b1')][_0x664bc1('0x25bb')],_0x4cb074['system'][_0x664bc1('0x23c2')]=_0x290a6c['join'](',');}_0xb28068(_0x4cb074[_0x664bc1('0x12b1')]);}function _0xb28068(_0x1305e1){_0x4db48f['hide'](_0x1305e1);}}const _0xdd8b96=_0x1eef8d;_0x13265a[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q','toasty',_0x3877e3('0x173b'),_0x3877e3('0x151f'),_0x3877e3('0xccd'),'Auth','crudPermissions'];function _0x13265a(_0x1e2859,_0x300267,_0x4e1459,_0x323644,_0x562d90,_0x5b044a,_0x43e063,_0x16ed49){var _0x360e1f=_0x3877e3,_0x8f3880=this;_0x8f3880[_0x360e1f('0x123f')]=_0x43e063[_0x360e1f('0x15ed')](),_0x8f3880['errors']=[],_0x8f3880[_0x360e1f('0x4b4')]='OPENCHANNEL.EDIT_'+(_0x323644[_0x360e1f('0x522')]||_0x323644[_0x360e1f('0x1f94')])[_0x360e1f('0x2e8')](),_0x8f3880[_0x360e1f('0x907')]=angular['copy'](_0x323644),_0x8f3880[_0x360e1f('0x5ed')]=_0x16ed49,_0x8f3880[_0x360e1f('0x126a')]={};if(_0x8f3880['tag'][_0x360e1f('0x23c2')])switch(_0x8f3880[_0x360e1f('0x907')][_0x360e1f('0x522')]?_0x8f3880[_0x360e1f('0x907')][_0x360e1f('0x522')][_0x360e1f('0xac2')]():_0x8f3880[_0x360e1f('0x907')][_0x360e1f('0x1f94')][_0x360e1f('0xac2')]()){case _0x360e1f('0xf50'):break;case _0x360e1f('0xc72'):{var _0x26c1c=_0x8f3880[_0x360e1f('0x907')][_0x360e1f('0x23c2')]['split'](',');_0x8f3880['tag'][_0x360e1f('0xddb')]=_0x26c1c[0x0],_0x8f3880['tag'][_0x360e1f('0x10f')]=_0x26c1c[0x1],_0x8f3880['tag'][_0x360e1f('0x1cce')]=_0x26c1c[_0x360e1f('0xb3d')](0x2,_0x26c1c[_0x360e1f('0x577')])[_0x360e1f('0x136')](',');}break;case _0x360e1f('0x1c22'):{var _0x4d544b=_0x8f3880['tag'][_0x360e1f('0x23c2')][_0x360e1f('0x1af5')](',');_0x8f3880[_0x360e1f('0x907')][_0x360e1f('0x21c6')]=_0x4d544b[0x0],_0x8f3880[_0x360e1f('0x907')][_0x360e1f('0x797')]=_0x4d544b[0x1],_0x8f3880[_0x360e1f('0x907')]['lexregion']=_0x4d544b[0x2],_0x8f3880[_0x360e1f('0x907')][_0x360e1f('0x15fe')]=_0x4d544b[0x3],_0x8f3880['tag'][_0x360e1f('0x1cce')]=_0x4d544b['slice'](0x4,_0x4d544b['length'])['join'](',');}break;case _0x360e1f('0x1b98'):{var _0x1ab59c=_0x8f3880[_0x360e1f('0x907')][_0x360e1f('0x23c2')][_0x360e1f('0x1af5')](',');_0x8f3880[_0x360e1f('0x907')][_0x360e1f('0x13b6')]=isNaN(_0x1ab59c[0x0])?_0x1ab59c[0x0]:parseInt(_0x1ab59c[0x0],0xa),_0x8f3880[_0x360e1f('0x907')][_0x360e1f('0xc1e')]=_0x1ab59c[_0x360e1f('0xb3d')](0x1,_0x1ab59c[_0x360e1f('0x577')])[_0x360e1f('0x136')](',');}break;case _0x360e1f('0x1224'):_0x8f3880[_0x360e1f('0x907')][_0x360e1f('0xc1e')]=_0x8f3880[_0x360e1f('0x907')][_0x360e1f('0x23c2')];break;case _0x360e1f('0x1125'):_0x8f3880['tag'][_0x360e1f('0x19fe')]=_0x8f3880[_0x360e1f('0x907')][_0x360e1f('0x23c2')][_0x360e1f('0x1af5')]('=')[0x0],_0x8f3880[_0x360e1f('0x907')][_0x360e1f('0x2228')]=_0x8f3880[_0x360e1f('0x907')][_0x360e1f('0x23c2')][_0x360e1f('0x1af5')]('=')[0x1];break;case _0x360e1f('0x2356'):_0x8f3880[_0x360e1f('0x907')]['project']=_0x8f3880[_0x360e1f('0x907')][_0x360e1f('0x23c2')];break;default:{var _0x4e7db9=_0x8f3880[_0x360e1f('0x907')]['appdata']['split'](',');_0x8f3880[_0x360e1f('0x907')]['tag']=_0x86640f()[_0x360e1f('0x23aa')](_0x4e7db9[0x0])?_0x4e7db9[0x0]:isNaN(_0x4e7db9[0x0])?_0x4e7db9[0x0]:parseInt(_0x4e7db9[0x0],0xa);}break;}else{}_0x8f3880[_0x360e1f('0x907')][_0x360e1f('0x7fa')]&&_0x8f3880[_0x360e1f('0x907')]['type'][_0x360e1f('0xac2')]()===_0x360e1f('0x2300')&&_0x8f3880[_0x360e1f('0x907')][_0x360e1f('0x522')][_0x360e1f('0xac2')]()===_0x360e1f('0x2363')&&(_0x8f3880[_0x360e1f('0x907')][_0x360e1f('0x1995')]=_0x8f3880['tag'][_0x360e1f('0x159e')]?_0x8f3880[_0x360e1f('0x907')][_0x360e1f('0x159e')]['split']('$')[0x0]:undefined,_0x8f3880['tag'][_0x360e1f('0x26f7')]=_0x8f3880[_0x360e1f('0x907')]['callerID']?_0x360e1f('0x587')+_0x8f3880[_0x360e1f('0x907')][_0x360e1f('0x1f5a')]:undefined);_0x8f3880[_0x360e1f('0x1da1')]=_0x4a70b0,_0x8f3880[_0x360e1f('0x167')]=_0x557aee,_0x43e063['hasRole'](_0x360e1f('0x1bd8'))?_0x5b044a['tag'][_0x360e1f('0x595')]({'fields':_0x360e1f('0x1aa8'),'sort':_0x360e1f('0x19fe'),'nolimit':_0x360e1f('0x19bd')})['$promise'][_0x360e1f('0x21ad')](function(_0x59602b){var _0x30ea54=_0x360e1f;_0x8f3880[_0x30ea54('0x1889')]=_0x59602b['rows']||[];})[_0x360e1f('0x1c1d')](function(_0x171c56){var _0x3c7ce3=_0x360e1f;_0x4e1459['error']({'title':_0x171c56[_0x3c7ce3('0x209')]?_0x3c7ce3('0x22d')+_0x171c56[_0x3c7ce3('0x209')]+_0x3c7ce3('0xa99')+_0x171c56[_0x3c7ce3('0x1808')]:_0x3c7ce3('0xcd4'),'msg':_0x171c56[_0x3c7ce3('0x11c2')]?JSON[_0x3c7ce3('0x25e')](_0x171c56[_0x3c7ce3('0x11c2')]):_0x171c56['toString']()});}):_0x5b044a['tag'][_0x360e1f('0x595')]({'fields':_0x360e1f('0x1aa8'),'sort':_0x360e1f('0x19fe'),'nolimit':_0x360e1f('0x19bd')})[_0x360e1f('0x1376')][_0x360e1f('0x21ad')](function(_0x5c9b98){var _0x3e85fd=_0x360e1f;_0x8f3880['tags']=_0x5c9b98[_0x3e85fd('0x1b33')]||[];})[_0x360e1f('0x21ad')](function(){var _0x22d98a=_0x360e1f;return _0x5b044a[_0x22d98a('0xab4')][_0x22d98a('0x595')]({'userProfileId':_0x8f3880['currentUser'][_0x22d98a('0x1618')],'sectionId':0x3f0})['$promise'];})['then'](function(_0x3fc3d5){var _0x6f342b=_0x360e1f,_0x354ed4=_0x3fc3d5&&_0x3fc3d5[_0x6f342b('0x1b33')]?_0x3fc3d5[_0x6f342b('0x1b33')][0x0]:null;if(!_0x354ed4){var _0x562bc3=[],_0x1693d6=null;_0x8f3880[_0x6f342b('0x907')]&&(_0x1693d6=_0x86640f()[_0x6f342b('0x1d2e')](_0x8f3880[_0x6f342b('0x1889')],{'name':_0x8f3880[_0x6f342b('0x907')]['tag']}));for(var _0x41c270=0x0;_0x41c270<_0x8f3880['tags']['length'];_0x41c270++){_0x1693d6&&_0x8f3880[_0x6f342b('0x1889')][_0x41c270]['id']===_0x1693d6['id']&&(_0x8f3880[_0x6f342b('0x1889')][_0x41c270][_0x6f342b('0xba')]=![],_0x562bc3[_0x6f342b('0x206c')](_0x8f3880['tags'][_0x41c270]));}_0x8f3880[_0x6f342b('0x1889')]=_0x562bc3;}else{if(!_0x354ed4[_0x6f342b('0x80c')])return _0x5b044a[_0x6f342b('0x185e')][_0x6f342b('0x595')]({'sectionId':_0x354ed4['id']})['$promise'][_0x6f342b('0x21ad')](function(_0x1444a0){var _0x14b273=_0x6f342b,_0x5830d4=_0x86640f()[_0x14b273('0x26c3')](_0x1444a0['rows'],function(_0x51315f){var _0x2761b5=_0x14b273;return _0x86640f()[_0x2761b5('0x1d2e')](_0x8f3880[_0x2761b5('0x1889')],{'id':_0x51315f[_0x2761b5('0x675')]});}),_0x5ee6c3=null;_0x8f3880[_0x14b273('0x907')]&&(_0x5ee6c3=_0x86640f()[_0x14b273('0x1d2e')](_0x8f3880[_0x14b273('0x1889')],{'name':_0x8f3880[_0x14b273('0x907')][_0x14b273('0x907')]}));if(_0x5ee6c3&&!_0x86640f()[_0x14b273('0x2664')](_0x5830d4,['id',_0x5ee6c3['id']])){var _0x4a64a1=_0x86640f()[_0x14b273('0x1d2e')](_0x8f3880[_0x14b273('0x1889')],{'id':_0x5ee6c3['id']});_0x4a64a1['canSelect']=![],_0x5830d4[_0x14b273('0x206c')](_0x4a64a1);}_0x8f3880[_0x14b273('0x1889')]=_0x5830d4;});}})[_0x360e1f('0x1c1d')](function(_0x48f47e){var _0x52fcdc=_0x360e1f;_0x4e1459[_0x52fcdc('0x2092')]({'title':_0x48f47e[_0x52fcdc('0x209')]?'API:'+_0x48f47e[_0x52fcdc('0x209')]+_0x52fcdc('0xa99')+_0x48f47e['statusText']:_0x52fcdc('0x182f'),'msg':_0x48f47e['data']?JSON[_0x52fcdc('0x25e')](_0x48f47e[_0x52fcdc('0x11c2')]):_0x48f47e['toString']()});});function _0x4a70b0(){var _0x3179a6=_0x360e1f;_0x8f3880[_0x3179a6('0x1a69')]=[];var _0x2f5a32=[];_0x8f3880[_0x3179a6('0x907')][_0x3179a6('0x7fa')]&&_0x8f3880[_0x3179a6('0x907')]['type'][_0x3179a6('0xac2')]()==='outbound'&&_0x8f3880[_0x3179a6('0x907')]['appType']==='outboundDial'&&(_0x8f3880[_0x3179a6('0x907')]['phone']=_0x562d90[_0x3179a6('0x988')]?(_0x8f3880[_0x3179a6('0x907')][_0x3179a6('0x1995')]||'')+_0x3179a6('0x349')+_0x562d90[_0x3179a6('0x988')]+'}':(_0x8f3880['tag'][_0x3179a6('0x1995')]||'')+_0x3179a6('0x2560'),_0x562d90[_0x3179a6('0xad1')]!==_0x3179a6('0x983')?_0x8f3880['tag'][_0x3179a6('0x26a0')][_0x3179a6('0x2004')]('U(xcally-mixmonitor-context)')<0x0&&(_0x8f3880[_0x3179a6('0x907')][_0x3179a6('0x26a0')]+=_0x3179a6('0x478')):_0x8f3880['tag'][_0x3179a6('0x26a0')]=_0x8f3880['tag'][_0x3179a6('0x26a0')][_0x3179a6('0x16e4')](_0x3179a6('0x478'),''));var _0x270912=_0x86640f()[_0x3179a6('0x1d2e')](_0x8f3880[_0x3179a6('0x1889')],{'name':_0x8f3880['tag'][_0x3179a6('0x907')]});_0x270912&&(_0x8f3880['tag']['TagId']=_0x270912['id']);if(_0x8f3880[_0x3179a6('0x907')]['appType']&&_0x8f3880[_0x3179a6('0x907')][_0x3179a6('0x522')]===_0x3179a6('0xf50')){}else switch((_0x8f3880[_0x3179a6('0x907')]['app']||_0x8f3880[_0x3179a6('0x907')][_0x3179a6('0x522')])[_0x3179a6('0xac2')]()){case'set':_0x8f3880[_0x3179a6('0x907')][_0x3179a6('0x23c2')]=_0x8f3880['tag'][_0x3179a6('0x19fe')]+'='+_0x8f3880['tag'][_0x3179a6('0x2228')];break;case _0x3179a6('0xf50'):break;default:_0x2f5a32[0x0]=_0x8f3880[_0x3179a6('0x907')][_0x3179a6('0x907')],_0x8f3880[_0x3179a6('0x907')]['appdata']=_0x2f5a32[_0x3179a6('0x136')](',');}_0x557aee(_0x8f3880[_0x3179a6('0x907')]);}function _0x557aee(_0x302227){var _0x2714ad=_0x360e1f;_0x1e2859[_0x2714ad('0x1c24')](_0x302227);}}const _0x409981=_0x13265a;_0x2efdf1['$inject']=[_0x3877e3('0x26'),_0x3877e3('0x95a'),'$state','$q',_0x3877e3('0x13c1'),_0x3877e3('0x2313'),'$mdDialog','$document',_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x15bc')];function _0x2efdf1(_0x54a4c2,_0xe9876,_0x313b93,_0x371b02,_0x579891,_0x3556f0,_0x1bdd1a,_0xb356b0,_0x349e99,_0x12ec9a,_0x54cef4){var _0x540fb0=_0x3877e3,_0x3e5014=this;_0x3e5014[_0x540fb0('0x123f')]=_0x54cef4['getCurrentUser'](),_0x3e5014[_0x540fb0('0x151f')]={},_0x3e5014['openchannelAccountInteractions']={'count':0x0,'rows':[]},_0x3e5014[_0x540fb0('0x17e5')]=[],_0x3e5014['crudPermissions'],_0x3e5014[_0x540fb0('0x77')]={'read':_0x540fb0('0x27a'),'closed':_0x540fb0('0x27a'),'sort':_0x540fb0('0xfef'),'includeAll':_0x540fb0('0x19bd'),'limit':0xa,'page':0x1},_0x3e5014[_0x540fb0('0x1d75')]=_0x58f619,_0x3e5014[_0x540fb0('0x15dc')]=_0x5b9f69,_0x3e5014[_0x540fb0('0xf95')]=_0x41f834,_0x3e5014[_0x540fb0('0xdb1')]=_0x47b914,_0x3e5014['getOpenchannelAccountInteractions']=_0x351a0d,_0x3e5014[_0x540fb0('0x269b')]=_0x583534,_0x3e5014[_0x540fb0('0x7e3')]=_0x36eedc,_0x3e5014[_0x540fb0('0x14c2')]=_0x3f4ad0,_0x3e5014[_0x540fb0('0x29a')]=_0x5f3bcb,_0x3e5014['deleteSelectedOpenchannelAccountInteractions']=_0x41d05c;function _0x58f619(_0x1cbdb5,_0xd04bc5){var _0x54a512=_0x540fb0;_0x3e5014[_0x54a512('0x151f')]=_0x1cbdb5,_0x3e5014[_0x54a512('0x5ed')]=typeof _0xd04bc5!=='undefined'?_0xd04bc5:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3e5014['query'][_0x54a512('0xc92')]=_0x3e5014[_0x54a512('0x151f')]['id'],_0x3e5014[_0x54a512('0x2211')]={'fields':_0x40af5c()},_0x449d89();}function _0x449d89(){var _0x20240f=_0x540fb0;return _0x12ec9a[_0x20240f('0x907')][_0x20240f('0x595')]()[_0x20240f('0x1376')][_0x20240f('0x21ad')](function(_0x4f7997){var _0x12596f=_0x20240f;_0x3e5014[_0x12596f('0x1889')]=_0x4f7997||{'count':0x0,'rows':[]};})[_0x20240f('0x21ad')](function(){var _0x1dc5db=_0x20240f;_0x3e5014[_0x1dc5db('0x2255')]=_0xfdc839();});}function _0xfdc839(){var _0x594873=_0x540fb0;return[{'name':_0x594873('0x18a1'),'key':'createdAt','type':_0x594873('0x2457'),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x594873('0x5d'),'key':_0x594873('0x14ee'),'type':'select','label':_0x594873('0x15f4'),'customOptions':[{'value':0x0,'translate':_0x594873('0x1799')},{'value':0x1,'translate':_0x594873('0x629')},{'value':null,'translate':_0x594873('0x1ee5')}]},{'name':_0x594873('0x843'),'key':_0x594873('0x14ba'),'type':'select','label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':_0x594873('0x19e2')},{'value':0x1,'translate':'DASHBOARDS.CLOSED'},{'value':null,'translate':_0x594873('0x1ee5')}]},{'name':_0x594873('0x1a44'),'key':_0x594873('0x1dc6'),'type':'select','label':_0x594873('0x115d'),'customOptions':[{'value':'null','translate':_0x594873('0x1932')},{'value':undefined,'translate':_0x594873('0x1ee5')}]},{'name':_0x594873('0x295'),'key':_0x594873('0x907'),'type':_0x594873('0x91f'),'label':_0x594873('0x138d'),'options':_0x3e5014[_0x594873('0x1889')][_0x594873('0x1b33')],'placeholder':'DASHBOARDS.TAGS'}];}function _0x40af5c(){var _0x23c7f9=_0x540fb0;return[{'name':'Id','column':'id','type':_0x23c7f9('0xed8')},{'name':_0x23c7f9('0x1d10'),'column':_0x23c7f9('0x1d10'),'type':_0x23c7f9('0x175c'),'options':{'searchFields':[_0x23c7f9('0x992'),_0x23c7f9('0x6d'),_0x23c7f9('0x2822')],'route':{'model':_0x23c7f9('0x25dc'),'action':_0x23c7f9('0x595'),'params':{'fields':_0x23c7f9('0x2704'),'Contact':_0x23c7f9('0x169e'),'nolimit':!![]}},'extraOperators':[_0x23c7f9('0xb58')],'excludedOperators':[_0x23c7f9('0x3fe')]}},{'name':_0x23c7f9('0x1d80'),'column':_0x23c7f9('0x32a'),'type':'text','options':{'excludedOperators':[_0x23c7f9('0x940'),'$ne']}},{'name':_0x23c7f9('0x1108'),'column':_0x23c7f9('0x11e5'),'type':_0x23c7f9('0xc1e'),'options':{'excludedOperators':['$eq',_0x23c7f9('0x3fe')]}},{'name':'Status','column':_0x23c7f9('0x14ba'),'type':_0x23c7f9('0x2844'),'values':[{'id':0x0,'translate':_0x23c7f9('0x19e2')},{'id':0x1,'translate':_0x23c7f9('0x11d2')}],'options':{'excludedOperators':[_0x23c7f9('0x3fe')]}},{'name':_0x23c7f9('0x1a44'),'column':'User','type':_0x23c7f9('0x175c'),'options':{'table':'i','route':{'model':_0x23c7f9('0x1775'),'action':_0x23c7f9('0x595'),'params':{'role':_0x23c7f9('0x2402'),'fields':_0x23c7f9('0x2326'),'nolimit':!![]}},'searchFields':[_0x23c7f9('0x20f5'),_0x23c7f9('0x19fe')],'extraOperators':[_0x23c7f9('0xb58')],'excludedOperators':[_0x23c7f9('0x3fe')]}},{'name':'Tags','column':'Tag','type':_0x23c7f9('0x91f'),'options':{'route':{'model':_0x23c7f9('0x907'),'action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0x23c7f9('0x23')]}},{'name':'Start\x20Date','column':_0x23c7f9('0x23ae'),'type':_0x23c7f9('0x2457'),'options':{'excludedOperators':[_0x23c7f9('0x3fe')]}},{'name':_0x23c7f9('0x1715'),'column':_0x23c7f9('0x6c5'),'type':_0x23c7f9('0x2844'),'values':[{'id':0x1,'translate':_0x23c7f9('0x629')},{'id':0x0,'translate':_0x23c7f9('0x1799')}],'options':{'excludedOperators':['$ne']}}];}function _0x36eedc(){var _0x9d5788=_0x540fb0;_0x1bdd1a[_0x9d5788('0x853')]({'controller':_0x9d5788('0xde1'),'controllerAs':'vm','templateUrl':_0x44f47e,'parent':angular[_0x9d5788('0x1676')](_0xb356b0[_0x9d5788('0x2452')]),'clickOutsideToClose':![],'locals':{'fields':_0x3e5014[_0x9d5788('0x2211')]['fields'],'color':undefined,'storagePath':_0x9d5788('0x1069')},'fullscreen':!![]})[_0x9d5788('0x21ad')](function(_0x5db71c){var _0x8b4298=_0x9d5788;_0x3e5014[_0x8b4298('0x77')][_0x8b4298('0x24e7')]=_0x5db71c===![]?undefined:_0x5db71c;if(_0x3e5014[_0x8b4298('0x77')][_0x8b4298('0x24e7')])_0x351a0d();else _0x5db71c===![]&&_0x351a0d();})[_0x9d5788('0x1c1d')](function(_0xb20cc2){var _0x486878=_0x9d5788;_0x349e99[_0x486878('0x2092')]({'title':_0x486878('0x1399'),'msg':_0xb20cc2['data']?JSON[_0x486878('0x25e')](_0xb20cc2[_0x486878('0x11c2')][_0x486878('0x1224')]):_0xb20cc2[_0x486878('0x174f')]()});});}function _0x41f834(_0x227cb9,_0x381e6e,_0x50eb23){var _0x3ab185=_0x540fb0;return _0x12ec9a[_0x3ab185('0xb01')][_0x3ab185('0xb0')]({'id':_0x227cb9['id'],'exists':!![],'attachments':_0x50eb23})[_0x3ab185('0x1376')][_0x3ab185('0x21ad')](function(_0x1801c3){var _0x28468b=_0x3ab185,_0x454b46=[_0x1801c3[_0x28468b('0x3da')]],_0x130968='interaction'+_0x227cb9['id'],_0x2b745b=new Blob(_0x454b46,{'type':_0x1801c3[_0x28468b('0x7fa')]});_0x130968='openchannel-interaction'+_0x227cb9['id']+_0x28468b('0x1622');var _0x3fe6f6=window[_0x28468b('0x27c3')][_0x28468b('0x162e')]('a');_0x3fe6f6['setAttribute'](_0x28468b('0x69e'),URL[_0x28468b('0x167b')](_0x2b745b)),_0x3fe6f6[_0x28468b('0x127a')](_0x28468b('0xb0'),_0x130968),document[_0x28468b('0x2452')][_0x28468b('0x14d0')](_0x3fe6f6),_0x3fe6f6[_0x28468b('0x997')]();})[_0x3ab185('0x1c1d')](function(_0x407ce1){var _0xccfd64=_0x3ab185;if(_0x407ce1[_0xccfd64('0x11c2')]&&_0x407ce1[_0xccfd64('0x11c2')][_0xccfd64('0x1a69')]&&_0x407ce1[_0xccfd64('0x11c2')][_0xccfd64('0x1a69')][_0xccfd64('0x577')])for(var _0xd88809=0x0;_0xd88809<_0x407ce1[_0xccfd64('0x11c2')][_0xccfd64('0x1a69')]['length'];_0xd88809+=0x1){_0x349e99[_0xccfd64('0x2092')]({'title':_0x407ce1['data']['errors'][_0xd88809]['type'],'msg':_0x407ce1[_0xccfd64('0x11c2')][_0xccfd64('0x1a69')][_0xd88809][_0xccfd64('0x1224')]});}else _0x349e99[_0xccfd64('0x2092')]({'title':_0x407ce1[_0xccfd64('0x209')]?_0xccfd64('0x22d')+_0x407ce1['status']+_0xccfd64('0xa99')+_0x407ce1['statusText']:_0xccfd64('0xce7'),'msg':_0x407ce1[_0xccfd64('0x11c2')]?JSON[_0xccfd64('0x25e')](_0x407ce1[_0xccfd64('0x11c2')][_0xccfd64('0x1224')]):_0x407ce1[_0xccfd64('0x174f')]()});});}function _0x5b9f69(_0x497548,_0x4c0bd1){var _0x584e6a=_0x540fb0,_0x4a8c8d=_0x1bdd1a['confirm']()[_0x584e6a('0x4b4')](_0x584e6a('0x6'))['htmlContent'](''+(_0x497548[_0x584e6a('0x19fe')]||_0x497548['id']&&_0x86640f()['upperFirst'](_0x584e6a('0x66c'))+_0x497548['id']||_0x584e6a('0x1d23'))+''+_0x584e6a('0x25e0'))[_0x584e6a('0x7a7')]('delete\x20interaction')['targetEvent'](_0x4c0bd1)['ok']('OK')[_0x584e6a('0x3b5')](_0x584e6a('0x284b'));_0x1bdd1a[_0x584e6a('0x853')](_0x4a8c8d)[_0x584e6a('0x21ad')](function(){_0x5f3bcb(_0x497548);},function(){var _0xda0da8=_0x584e6a;console[_0xda0da8('0x6fb')]('CANCEL');});}function _0x47b914(_0xa4f40d){var _0x1aaae3=_0x540fb0;_0x3e5014['openchannelAccountInteractions']=_0xa4f40d||{'count':0x0,'rows':[]};for(var _0x2559b4=0x0;_0x2559b4<_0x3e5014[_0x1aaae3('0x1b22')][_0x1aaae3('0x1b33')]['length'];_0x2559b4+=0x1){var _0x4cd442=_0x3e5014['openchannelAccountInteractions']['rows'][_0x2559b4];_0x54e44c(_0x4cd442),_0x4cd442[_0x1aaae3('0x11a8')][_0x1aaae3('0x19fe')]=_0x4482fc(_0x4cd442);}}function _0x351a0d(){var _0x4e32c8=_0x540fb0;_0x3e5014[_0x4e32c8('0x77')][_0x4e32c8('0x15a5')]=(_0x3e5014[_0x4e32c8('0x77')]['page']-0x1)*_0x3e5014['query'][_0x4e32c8('0x1f4a')],_0x3e5014[_0x4e32c8('0x71b')]=_0x12ec9a[_0x4e32c8('0xb01')][_0x4e32c8('0x595')](_0x3e5014['query'],_0x47b914)['$promise'];}function _0x583534(_0xbe3f4d,_0x4d9d69){var _0x188afd=_0x540fb0;_0x1bdd1a[_0x188afd('0x853')]({'controller':_0x188afd('0xbd1'),'controllerAs':'vm','templateUrl':_0x421fef,'parent':angular['element'](_0xb356b0[_0x188afd('0x2452')]),'targetEvent':_0xbe3f4d,'clickOutsideToClose':!![],'onShowing':function _0x4f340f(_0x536ce3){var _0x287723=_0x188afd;_0x536ce3['vm'][_0x287723('0x1d75')]({'id':0x1,'channel':_0x287723('0xac9'),'interaction':_0x4d9d69,'spy':!![]},_0xe9876[_0x287723('0x223d')]['vm']['setting']);}});}function _0x5f3bcb(_0xdb7461){var _0x36e892=_0x540fb0;_0x12ec9a[_0x36e892('0xb01')][_0x36e892('0x1164')]({'id':_0xdb7461['id']})[_0x36e892('0x1376')]['then'](function(){var _0x144710=_0x36e892;_0x86640f()[_0x144710('0x16a2')](_0x3e5014[_0x144710('0x1b22')][_0x144710('0x1b33')],{'id':_0xdb7461['id']}),_0x3e5014[_0x144710('0x1b22')]['count']-=0x1,!_0x3e5014[_0x144710('0x1b22')]['rows'][_0x144710('0x577')]&&_0x351a0d(),_0x349e99[_0x144710('0xdb1')]({'title':_0x144710('0x1eb4'),'msg':_0xdb7461[_0x144710('0x19fe')]?_0xdb7461[_0x144710('0x19fe')]+'\x20has\x20been\x20deleted!':''});})[_0x36e892('0x1c1d')](function(_0x2a6dd6){var _0x5effa7=_0x36e892;if(_0x2a6dd6[_0x5effa7('0x11c2')]&&_0x2a6dd6[_0x5effa7('0x11c2')][_0x5effa7('0x1a69')]&&_0x2a6dd6['data'][_0x5effa7('0x1a69')]['length']){_0x3e5014[_0x5effa7('0x1a69')]=_0x2a6dd6['data']['errors']||[{'message':_0x2a6dd6[_0x5effa7('0x174f')](),'type':_0x5effa7('0x840')}];for(var _0x49bb2c=0x0;_0x49bb2c<_0x2a6dd6[_0x5effa7('0x11c2')][_0x5effa7('0x1a69')]['length'];_0x49bb2c++){_0x349e99[_0x5effa7('0x2092')]({'title':_0x2a6dd6['data'][_0x5effa7('0x1a69')][_0x49bb2c][_0x5effa7('0x7fa')],'msg':_0x2a6dd6[_0x5effa7('0x11c2')]['errors'][_0x49bb2c]['message']});}}else _0x349e99[_0x5effa7('0x2092')]({'title':_0x2a6dd6[_0x5effa7('0x209')]?_0x5effa7('0x22d')+_0x2a6dd6[_0x5effa7('0x209')]+'\x20-\x20'+_0x2a6dd6[_0x5effa7('0x1808')]:_0x5effa7('0x840'),'msg':_0x2a6dd6[_0x5effa7('0x11c2')]?JSON[_0x5effa7('0x25e')](_0x2a6dd6[_0x5effa7('0x11c2')][_0x5effa7('0x1224')]):_0x2a6dd6[_0x5effa7('0x1224')]||_0x2a6dd6['toString']()});});}function _0x3f4ad0(){var _0x3e7968=_0x540fb0,_0x957cbc=angular[_0x3e7968('0xd75')](_0x3e5014[_0x3e7968('0x17e5')]);return _0x3e5014[_0x3e7968('0x17e5')]=[],_0x957cbc;}function _0x41d05c(_0x454981){var _0x4ad4f1=_0x540fb0,_0x5efbd4=_0x1bdd1a[_0x4ad4f1('0xa33')]()[_0x4ad4f1('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20interactions?')[_0x4ad4f1('0x276b')](_0x4ad4f1('0x622')+_0x3e5014[_0x4ad4f1('0x17e5')][_0x4ad4f1('0x577')]+_0x4ad4f1('0xd74')+_0x4ad4f1('0x25e0'))[_0x4ad4f1('0x7a7')](_0x4ad4f1('0x263e'))['targetEvent'](_0x454981)['ok']('OK')['cancel'](_0x4ad4f1('0x284b'));_0x1bdd1a[_0x4ad4f1('0x853')](_0x5efbd4)[_0x4ad4f1('0x21ad')](function(){var _0x32545b=_0x4ad4f1;_0x3e5014[_0x32545b('0x17e5')][_0x32545b('0x1a52')](function(_0x5c533c){_0x5f3bcb(_0x5c533c);}),_0x3e5014[_0x32545b('0x17e5')]=[];});}function _0x54e44c(_0x4b00de){var _0x2aca11=_0x540fb0;if(_0x4b00de[_0x2aca11('0x69b')])_0x4b00de[_0x2aca11('0x1717')]=_0x4b00de[_0x2aca11('0x69b')];else _0x4b00de['Contact']?_0x4b00de[_0x2aca11('0x1717')]=(_0x4b00de['Contact']['firstName']||'')+'\x20'+(_0x4b00de['Contact']['lastName']||''):_0x4b00de[_0x2aca11('0x1717')]=_0x579891[_0x2aca11('0x183e')]('OPENCHANNEL.UNKNOWN');}function _0x4482fc(_0x597560){var _0x2a99cd=_0x540fb0;if(_0x597560['UserId'])return _0x597560[_0x2a99cd('0x1dc6')]===_0x3e5014[_0x2a99cd('0x123f')]['id']?_0x579891[_0x2a99cd('0x183e')]('DASHBOARDS.ME'):_0x597560[_0x2a99cd('0x11a8')]['fullname']+'\x20<'+_0x597560[_0x2a99cd('0x11a8')][_0x2a99cd('0x201f')]+'>';return _0x579891[_0x2a99cd('0x183e')](_0x2a99cd('0x1932'));}var _0x56c52e=!![],_0x1e0d82=0x1;_0xe9876[_0x540fb0('0x10e8')](_0x540fb0('0x10ff'),function(_0xe9a71b,_0x1a952b){var _0x549468=_0x540fb0;_0x56c52e?_0x3556f0(function(){_0x56c52e=![];}):(!_0x1a952b&&(_0x1e0d82=_0x3e5014[_0x549468('0x77')]['page']),_0xe9a71b!==_0x1a952b&&(_0x3e5014[_0x549468('0x77')][_0x549468('0x2376')]=0x1),!_0xe9a71b&&(_0x3e5014['query'][_0x549468('0x2376')]=_0x1e0d82),_0x351a0d());});}const _0x4d0dd8=_0x2efdf1,_0x4aa1f8=_0x398308['p']+_0x3877e3('0x8ab');_0x599690['$inject']=[_0x3877e3('0x26'),'$scope',_0x3877e3('0xa9f'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x1908'),_0x3877e3('0xccd'),'Auth'];function _0x599690(_0x1386a6,_0xaf3b7d,_0x27a5eb,_0x2cb724,_0x102557,_0x279e36,_0x180dfa,_0x58b46f,_0x17ed36,_0x15f8db,_0x2a8d81){var _0x4274f2=_0x3877e3,_0x1a2fb9=this;_0x1a2fb9[_0x4274f2('0x123f')]=_0x2a8d81[_0x4274f2('0x15ed')](),_0x1a2fb9[_0x4274f2('0x151f')]={},_0x1a2fb9[_0x4274f2('0x2088')]={'count':0x0,'rows':[]},_0x1a2fb9['selectedOpenchannelAccountOpenchannelCannedAnswers']=[],_0x1a2fb9[_0x4274f2('0x5ed')],_0x1a2fb9[_0x4274f2('0x77')]={'fields':_0x4274f2('0x1674'),'limit':0xa,'page':0x1},_0x1a2fb9['init']=_0xe6f1ac,_0x1a2fb9[_0x4274f2('0x15dc')]=_0x3c109b,_0x1a2fb9[_0x4274f2('0xdb1')]=_0x413379,_0x1a2fb9[_0x4274f2('0x639')]=_0x3a8b07,_0x1a2fb9[_0x4274f2('0x46f')]=_0x539697,_0x1a2fb9[_0x4274f2('0xd8b')]=_0x2cfc2d,_0x1a2fb9[_0x4274f2('0xaef')]=_0x27d3ac,_0x1a2fb9[_0x4274f2('0xdbe')]=_0x1d4713;function _0xe6f1ac(_0x19a297,_0x4ef949){var _0xdb68ec=_0x4274f2;_0x1a2fb9[_0xdb68ec('0x151f')]=_0x19a297,_0x1a2fb9['crudPermissions']=typeof _0x4ef949!==_0xdb68ec('0xddc')?_0x4ef949:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1a2fb9[_0xdb68ec('0x77')][_0xdb68ec('0xc92')]=_0x1a2fb9[_0xdb68ec('0x151f')]['id'],_0x1a2fb9[_0xdb68ec('0x77')]['id']=_0x1a2fb9['openchannelAccount']['id'],_0x3a8b07();}function _0x3c109b(_0x480c0c,_0xa5983b){var _0x9a8688=_0x4274f2,_0x5c322f=_0x180dfa[_0x9a8688('0xa33')]()[_0x9a8688('0x4b4')](_0x9a8688('0x1c93'))[_0x9a8688('0x276b')](_0x9a8688('0x622')+(_0x480c0c[_0x9a8688('0x19fe')]||_0x480c0c['id']&&_0x86640f()['upperFirst'](_0x9a8688('0x2102'))+_0x480c0c['id']||_0x9a8688('0x20cf'))+_0x9a8688('0x2135')+_0x9a8688('0x25e0'))[_0x9a8688('0x7a7')]('delete\x20openchannelCannedAnswer')['targetEvent'](_0xa5983b)['ok']('OK')['cancel'](_0x9a8688('0x284b'));_0x180dfa['show'](_0x5c322f)[_0x9a8688('0x21ad')](function(){_0x27d3ac(_0x480c0c);},function(){var _0x24aeef=_0x9a8688;console[_0x24aeef('0x6fb')](_0x24aeef('0x284b'));});}function _0x413379(_0x1738a2){var _0x4d7b5f=_0x4274f2;_0x1a2fb9[_0x4d7b5f('0x2088')]=_0x1738a2||{'count':0x0,'rows':[]};}function _0x3a8b07(){var _0x508d07=_0x4274f2;_0x1a2fb9[_0x508d07('0x77')][_0x508d07('0x15a5')]=(_0x1a2fb9[_0x508d07('0x77')]['page']-0x1)*_0x1a2fb9[_0x508d07('0x77')]['limit'],_0x1a2fb9[_0x508d07('0x71b')]=_0x15f8db[_0x508d07('0x151f')]['getAnswers'](_0x1a2fb9[_0x508d07('0x77')],_0x413379)[_0x508d07('0x1376')];}function _0x539697(_0xc6afdf,_0x3eddf5){var _0x3561ed=_0x4274f2;_0x180dfa['show']({'controller':_0x3561ed('0x2377'),'controllerAs':'vm','templateUrl':_0x4aa1f8,'parent':angular[_0x3561ed('0x1676')](_0x58b46f[_0x3561ed('0x2452')]),'targetEvent':_0xc6afdf,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x1a2fb9['openchannelAccount'],'openchannelCannedAnswer':_0x3eddf5,'openchannelCannedAnswers':_0x1a2fb9['openchannelAccountOpenchannelCannedAnswers'][_0x3561ed('0x1b33')],'license':null,'setting':null,'crudPermissions':_0x1a2fb9[_0x3561ed('0x5ed')]}});}function _0x27d3ac(_0x576fb0){var _0x2e4c66=_0x4274f2;_0x15f8db[_0x2e4c66('0x25e5')][_0x2e4c66('0x1164')]({'id':_0x576fb0['id']})[_0x2e4c66('0x1376')]['then'](function(){var _0x18cc5c=_0x2e4c66;_0x86640f()[_0x18cc5c('0x16a2')](_0x1a2fb9[_0x18cc5c('0x2088')]['rows'],{'id':_0x576fb0['id']}),_0x1a2fb9[_0x18cc5c('0x2088')][_0x18cc5c('0x205f')]-=0x1,!_0x1a2fb9[_0x18cc5c('0x2088')][_0x18cc5c('0x1b33')][_0x18cc5c('0x577')]&&_0x3a8b07(),_0x17ed36[_0x18cc5c('0xdb1')]({'title':_0x18cc5c('0x2234'),'msg':_0x576fb0[_0x18cc5c('0x19fe')]?_0x576fb0[_0x18cc5c('0x19fe')]+_0x18cc5c('0xb4a'):''});})['catch'](function(_0x1f554f){var _0x33d095=_0x2e4c66;if(_0x1f554f[_0x33d095('0x11c2')]&&_0x1f554f[_0x33d095('0x11c2')][_0x33d095('0x1a69')]&&_0x1f554f[_0x33d095('0x11c2')][_0x33d095('0x1a69')]['length']){_0x1a2fb9[_0x33d095('0x1a69')]=_0x1f554f[_0x33d095('0x11c2')]['errors']||[{'message':_0x1f554f[_0x33d095('0x174f')](),'type':_0x33d095('0x840')}];for(var _0x502e33=0x0;_0x502e33<_0x1f554f[_0x33d095('0x11c2')]['errors'][_0x33d095('0x577')];_0x502e33++){_0x17ed36[_0x33d095('0x2092')]({'title':_0x1f554f[_0x33d095('0x11c2')][_0x33d095('0x1a69')][_0x502e33][_0x33d095('0x7fa')],'msg':_0x1f554f[_0x33d095('0x11c2')][_0x33d095('0x1a69')][_0x502e33][_0x33d095('0x1224')]});}}else _0x17ed36[_0x33d095('0x2092')]({'title':_0x1f554f['status']?_0x33d095('0x22d')+_0x1f554f[_0x33d095('0x209')]+_0x33d095('0xa99')+_0x1f554f[_0x33d095('0x1808')]:'SYSTEM:GETopenchannelAccount','msg':_0x1f554f[_0x33d095('0x11c2')]?JSON['stringify'](_0x1f554f[_0x33d095('0x11c2')]['message']):_0x1f554f['message']||_0x1f554f[_0x33d095('0x174f')]()});});}function _0x2cfc2d(){var _0x4bad60=_0x4274f2,_0x403a50=angular[_0x4bad60('0xd75')](_0x1a2fb9[_0x4bad60('0x287')]);return _0x1a2fb9['selectedOpenchannelAccountOpenchannelCannedAnswers']=[],_0x403a50;}function _0x1d4713(_0x40e29d){var _0x159ac2=_0x4274f2,_0x32bbfa=_0x180dfa['confirm']()[_0x159ac2('0x4b4')](_0x159ac2('0x1766'))[_0x159ac2('0x276b')](_0x159ac2('0x622')+_0x1a2fb9['selectedOpenchannelAccountOpenchannelCannedAnswers'][_0x159ac2('0x577')]+_0x159ac2('0xd74')+_0x159ac2('0x25e0'))['ariaLabel'](_0x159ac2('0x1184'))[_0x159ac2('0x1e6d')](_0x40e29d)['ok']('OK')[_0x159ac2('0x3b5')]('CANCEL');_0x180dfa[_0x159ac2('0x853')](_0x32bbfa)[_0x159ac2('0x21ad')](function(){var _0xb1ab82=_0x159ac2;_0x1a2fb9[_0xb1ab82('0x287')]['forEach'](function(_0x429596){_0x27d3ac(_0x429596);}),_0x1a2fb9[_0xb1ab82('0x287')]=[];});}var _0x3eb5ed=!![],_0x338deb=0x1;_0xaf3b7d['$watch'](_0x4274f2('0x10ff'),function(_0x461f97,_0x31a694){var _0x406b21=_0x4274f2;_0x3eb5ed?_0x279e36(function(){_0x3eb5ed=![];}):(!_0x31a694&&(_0x338deb=_0x1a2fb9[_0x406b21('0x77')]['page']),_0x461f97!==_0x31a694&&(_0x1a2fb9['query']['page']=0x1),!_0x461f97&&(_0x1a2fb9[_0x406b21('0x77')][_0x406b21('0x2376')]=_0x338deb),_0x3a8b07());});}const _0x18e989=_0x599690;_0x19136c[_0x3877e3('0x1a81')]=['$scope','$state','$location',_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),'toasty','openchannelCannedAnswers',_0x3877e3('0x20cf'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'license',_0x3877e3('0x21e'),'crudPermissions'];function _0x19136c(_0x16133b,_0x2d86c6,_0x3af005,_0x3ebeaa,_0xdfb2c1,_0x4cf3bc,_0x3cb741,_0x388c22,_0x37c9a3,_0x10b3fe,_0x1370fd,_0x4d1d28,_0x1b28c5,_0x5a5241){var _0x27e627=_0x3877e3,_0xa4c630=this;_0xa4c630['currentUser']=_0x1370fd[_0x27e627('0x15ed')](),_0xa4c630[_0x27e627('0x1a69')]=[],_0xa4c630[_0x27e627('0x21e')]=_0x1b28c5,_0xa4c630[_0x27e627('0x2ff')]=_0x4d1d28,_0xa4c630[_0x27e627('0x5ed')]=_0x5a5241,_0xa4c630[_0x27e627('0x126a')]={},_0xa4c630[_0x27e627('0x1432')]=_0xa4c630[_0x27e627('0x21e')]&&_0xa4c630[_0x27e627('0x21e')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xa4c630[_0x27e627('0x4b4')]=_0x27e627('0x65f'),_0xa4c630['openchannelCannedAnswer']=angular['copy'](_0x37c9a3),_0xa4c630[_0x27e627('0x1e0a')]=_0x388c22,_0xa4c630[_0x27e627('0x2314')]=![];!_0xa4c630['openchannelCannedAnswer']&&(_0xa4c630[_0x27e627('0x20cf')]={},_0xa4c630[_0x27e627('0x4b4')]=_0x27e627('0xed1'),_0xa4c630['newOpenchannelCannedAnswer']=!![]);_0x2d86c6[_0x27e627('0x171b')]['id']&&(_0xa4c630['openchannelCannedAnswer'][_0x27e627('0xc92')]=_0x2d86c6[_0x27e627('0x171b')]['id']);_0xa4c630[_0x27e627('0x1b64')]=_0x597e5b,_0xa4c630[_0x27e627('0x15f5')]=_0x31e2ca,_0xa4c630['deleteOpenchannelCannedAnswer']=_0x1946ac,_0xa4c630['getDateFromString']=_0x4a74ba,_0xa4c630[_0x27e627('0x167')]=_0x31a5ff;function _0x597e5b(){var _0xc81914=_0x27e627;_0xa4c630[_0xc81914('0x1a69')]=[],_0x10b3fe[_0xc81914('0x25e5')][_0xc81914('0x186f')](_0xa4c630['openchannelCannedAnswer'])[_0xc81914('0x1376')]['then'](function(_0x98caf8){var _0x30ce02=_0xc81914;_0xa4c630[_0x30ce02('0x1e0a')][_0x30ce02('0xd0c')](_0x98caf8[_0x30ce02('0x3bc')]()),_0x3cb741[_0x30ce02('0xdb1')]({'title':_0x30ce02('0x25d0'),'msg':_0xa4c630[_0x30ce02('0x20cf')][_0x30ce02('0x19fe')]?_0xa4c630['openchannelCannedAnswer'][_0x30ce02('0x19fe')]+'\x20has\x20been\x20created!':''}),_0x31a5ff(_0x98caf8);})[_0xc81914('0x1c1d')](function(_0x432868){var _0x33c5b5=_0xc81914;if(_0x432868['data']&&_0x432868['data']['errors']&&_0x432868[_0x33c5b5('0x11c2')][_0x33c5b5('0x1a69')][_0x33c5b5('0x577')]){_0xa4c630[_0x33c5b5('0x1a69')]=_0x432868[_0x33c5b5('0x11c2')][_0x33c5b5('0x1a69')]||[{'message':_0x432868[_0x33c5b5('0x174f')](),'type':_0x33c5b5('0x545')}];for(var _0x1dcfb3=0x0;_0x1dcfb3<_0x432868['data'][_0x33c5b5('0x1a69')]['length'];_0x1dcfb3+=0x1){_0x3cb741['error']({'title':_0x432868[_0x33c5b5('0x11c2')]['errors'][_0x1dcfb3][_0x33c5b5('0x7fa')],'msg':_0x432868[_0x33c5b5('0x11c2')][_0x33c5b5('0x1a69')][_0x1dcfb3][_0x33c5b5('0x1224')]});}}else _0x3cb741[_0x33c5b5('0x2092')]({'title':_0x432868['status']?_0x33c5b5('0x22d')+_0x432868['status']+_0x33c5b5('0xa99')+_0x432868[_0x33c5b5('0x1808')]:_0x33c5b5('0x545'),'msg':_0x432868[_0x33c5b5('0x11c2')]?JSON['stringify'](_0x432868[_0x33c5b5('0x11c2')][_0x33c5b5('0x1224')]):_0x432868['toString']()});});}function _0x31e2ca(){var _0x2871b8=_0x27e627;_0xa4c630['errors']=[],_0x10b3fe['cannedAnswer']['update']({'id':_0xa4c630[_0x2871b8('0x20cf')]['id']},_0xa4c630[_0x2871b8('0x20cf')])['$promise'][_0x2871b8('0x21ad')](function(_0x19f3a9){var _0x4cc99b=_0x2871b8,_0x19a019=_0x86640f()['find'](_0xa4c630['openchannelCannedAnswers'],{'id':_0x19f3a9['id']});_0x19a019&&_0x86640f()['merge'](_0x19a019,_0x86640f()[_0x4cc99b('0xc50')](_0x19f3a9[_0x4cc99b('0x3bc')](),_0x86640f()['keys'](_0x19a019))),_0x3cb741[_0x4cc99b('0xdb1')]({'title':_0x4cc99b('0x148d'),'msg':_0xa4c630[_0x4cc99b('0x20cf')][_0x4cc99b('0x19fe')]?_0xa4c630[_0x4cc99b('0x20cf')][_0x4cc99b('0x19fe')]+_0x4cc99b('0x2249'):''}),_0x31a5ff(_0x19f3a9);})[_0x2871b8('0x1c1d')](function(_0x530c37){var _0x1c8ae1=_0x2871b8;if(_0x530c37[_0x1c8ae1('0x11c2')]&&_0x530c37[_0x1c8ae1('0x11c2')][_0x1c8ae1('0x1a69')]&&_0x530c37['data'][_0x1c8ae1('0x1a69')][_0x1c8ae1('0x577')]){_0xa4c630[_0x1c8ae1('0x1a69')]=_0x530c37[_0x1c8ae1('0x11c2')][_0x1c8ae1('0x1a69')]||[{'message':_0x530c37[_0x1c8ae1('0x174f')](),'type':_0x1c8ae1('0x129c')}];for(var _0x4fc9fe=0x0;_0x4fc9fe<_0x530c37[_0x1c8ae1('0x11c2')][_0x1c8ae1('0x1a69')]['length'];_0x4fc9fe++){_0x3cb741['error']({'title':_0x530c37['data'][_0x1c8ae1('0x1a69')][_0x4fc9fe][_0x1c8ae1('0x7fa')],'msg':_0x530c37[_0x1c8ae1('0x11c2')][_0x1c8ae1('0x1a69')][_0x4fc9fe][_0x1c8ae1('0x1224')]});}}else _0x3cb741[_0x1c8ae1('0x2092')]({'title':_0x530c37['status']?_0x1c8ae1('0x22d')+_0x530c37['status']+_0x1c8ae1('0xa99')+_0x530c37[_0x1c8ae1('0x1808')]:_0x1c8ae1('0x129c'),'msg':_0x530c37[_0x1c8ae1('0x11c2')]?JSON['stringify'](_0x530c37[_0x1c8ae1('0x11c2')][_0x1c8ae1('0x1224')]):_0x530c37[_0x1c8ae1('0x174f')]()});});}function _0x1946ac(_0x886f52){var _0x51dacf=_0x27e627;_0xa4c630[_0x51dacf('0x1a69')]=[];var _0x3240d6=_0x3ebeaa[_0x51dacf('0xa33')]()[_0x51dacf('0x4b4')](_0x51dacf('0x196b'))[_0x51dacf('0x13fb')](_0x51dacf('0x1fb5'))[_0x51dacf('0x7a7')]('Delete\x20OpenchannelCannedAnswer')['ok']('Delete')[_0x51dacf('0x3b5')](_0x51dacf('0x1f40'))['targetEvent'](_0x886f52);_0x3ebeaa['show'](_0x3240d6)[_0x51dacf('0x21ad')](function(){var _0xd00a9c=_0x51dacf;_0x10b3fe[_0xd00a9c('0x25e5')]['delete']({'id':_0xa4c630['openchannelCannedAnswer']['id']})[_0xd00a9c('0x1376')][_0xd00a9c('0x21ad')](function(){var _0x3e5a9a=_0xd00a9c;_0x86640f()[_0x3e5a9a('0x16a2')](_0xa4c630[_0x3e5a9a('0x1e0a')],{'id':_0xa4c630[_0x3e5a9a('0x20cf')]['id']}),_0x3cb741[_0x3e5a9a('0xdb1')]({'title':'OpenchannelCannedAnswer\x20properly\x20deleted!','msg':(_0xa4c630[_0x3e5a9a('0x20cf')]['name']||'openchannelCannedAnswer')+_0x3e5a9a('0xb4a')}),_0x31a5ff(_0xa4c630[_0x3e5a9a('0x20cf')]);})[_0xd00a9c('0x1c1d')](function(_0x5177d5){var _0x3b3cd4=_0xd00a9c;if(_0x5177d5[_0x3b3cd4('0x11c2')]&&_0x5177d5[_0x3b3cd4('0x11c2')]['errors']&&_0x5177d5['data']['errors'][_0x3b3cd4('0x577')]){_0xa4c630['errors']=_0x5177d5[_0x3b3cd4('0x11c2')][_0x3b3cd4('0x1a69')]||[{'message':_0x5177d5[_0x3b3cd4('0x174f')](),'type':_0x3b3cd4('0x2545')}];for(var _0x5b2d4e=0x0;_0x5b2d4e<_0x5177d5['data'][_0x3b3cd4('0x1a69')]['length'];_0x5b2d4e++){_0x3cb741['error']({'title':_0x5177d5[_0x3b3cd4('0x11c2')][_0x3b3cd4('0x1a69')][_0x5b2d4e]['type'],'msg':_0x5177d5[_0x3b3cd4('0x11c2')][_0x3b3cd4('0x1a69')][_0x5b2d4e][_0x3b3cd4('0x1224')]});}}else _0x3cb741[_0x3b3cd4('0x2092')]({'title':_0x5177d5['status']?'API:'+_0x5177d5[_0x3b3cd4('0x209')]+_0x3b3cd4('0xa99')+_0x5177d5[_0x3b3cd4('0x1808')]:_0x3b3cd4('0x2545'),'msg':_0x5177d5[_0x3b3cd4('0x11c2')]?JSON[_0x3b3cd4('0x25e')](_0x5177d5['data']['message']):_0x5177d5[_0x3b3cd4('0x1224')]||_0x5177d5[_0x3b3cd4('0x174f')]()});});},function(){});}function _0x4a74ba(_0x1a11e5){return _0x1a11e5===null?undefined:new Date(_0x1a11e5);}function _0x31a5ff(_0x2555aa){var _0x43277c=_0x27e627;_0x3ebeaa[_0x43277c('0x1c24')](_0x2555aa);}}const _0xc63393=_0x19136c;_0x3759a6['$inject']=['$scope',_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x2313'),'$translate',_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x15bc')];function _0x3759a6(_0x2c18a9,_0x49ca6c,_0x2d425b,_0xe2c56b,_0x3b691e,_0x29abef,_0x26d7f1,_0x444e52,_0x2800c9,_0x51a6e3,_0x4ebaa4){var _0x248381=_0x3877e3,_0x59a215=this;_0x59a215[_0x248381('0x123f')]=_0x4ebaa4['getCurrentUser'](),_0x59a215[_0x248381('0x10d0')]={'count':0x0,'rows':[]},_0x59a215[_0x248381('0xa9')]=[],_0x59a215[_0x248381('0x5ed')],_0x59a215[_0x248381('0x2525')]={'first':_0x248381('0xd08'),'second':_0x248381('0x2846'),'third':_0x248381('0x176b')},_0x59a215[_0x248381('0x77')]={'fields':_0x248381('0x277'),'sort':_0x248381('0x33'),'limit':0xa,'page':0x1},_0x59a215['init']=_0x2db8e9,_0x59a215[_0x248381('0x15dc')]=_0xfdccda,_0x59a215[_0x248381('0xdb1')]=_0x3d23fb,_0x59a215[_0x248381('0x1235')]=_0x47fe73,_0x59a215[_0x248381('0x25e1')]=_0x27255a,_0x59a215['deleteDisposition']=_0x598d70,_0x59a215['exportSelectedDispositions']=_0x563196,_0x59a215['deleteSelectedDispositions']=_0x10e1c1,_0x59a215[_0x248381('0x2061')]=_0x2d8781,_0x59a215['selectAllDispositions']=_0x345772;function _0x2db8e9(_0x343ada,_0x2d639c){var _0x3da77c=_0x248381;_0x59a215['openchannelAccount']=_0x343ada||{},_0x59a215['crudPermissions']=typeof _0x2d639c!==_0x3da77c('0xddc')?_0x2d639c:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x59a215[_0x3da77c('0x77')][_0x3da77c('0xc92')]=_0x59a215['openchannelAccount']['id'],_0x59a215[_0x3da77c('0x77')]['id']=_0x59a215['openchannelAccount']['id'],_0x47fe73();}function _0x27255a(_0x5198f6,_0x3376d6){var _0x5e6ad0=_0x248381;_0x3b691e['show']({'controller':_0x5e6ad0('0xdd9'),'controllerAs':'vm','templateUrl':_0x3e2462,'parent':angular[_0x5e6ad0('0x1676')](_0x29abef[_0x5e6ad0('0x2452')]),'targetEvent':_0x5198f6,'clickOutsideToClose':!![],'locals':{'disposition':_0x3376d6,'dispositions':_0x59a215[_0x5e6ad0('0x10d0')][_0x5e6ad0('0x1b33')],'model':{'id':_0x59a215[_0x5e6ad0('0x151f')]['id'],'field':_0x5e6ad0('0xc92')},'license':null,'setting':null,'crudPermissions':_0x59a215['crudPermissions']}})[_0x5e6ad0('0x21ad')](function(_0x4d22c3){if(_0x4d22c3)_0x47fe73();});}function _0xfdccda(_0x9d2ea0,_0x131f5a){var _0xccb204=_0x248381,_0x577653=_0x86640f()['some'](_0x59a215[_0xccb204('0x10d0')][_0xccb204('0x1b33')],[_0xccb204('0x198f'),_0x9d2ea0['id']]),_0x52a6bf=_0x3b691e[_0xccb204('0xa33')]()[_0xccb204('0x4b4')](_0x444e52[_0xccb204('0x183e')](_0xccb204('0x17b4')))[_0xccb204('0x13fb')](_0x444e52[_0xccb204('0x183e')]('TOOLS.NOTIFICATIONS.'+(_0x577653?_0xccb204('0x636'):_0xccb204('0x1019')),{'name':_0x9d2ea0[_0xccb204('0x19fe')]}))[_0xccb204('0x7a7')](_0xccb204('0x2448'))[_0xccb204('0x1e6d')](_0x131f5a)['ok']('OK')[_0xccb204('0x3b5')](_0x444e52[_0xccb204('0x183e')](_0xccb204('0x20ea')));_0x3b691e[_0xccb204('0x853')](_0x52a6bf)[_0xccb204('0x21ad')](function(){_0x598d70(_0x9d2ea0);});}function _0x3d23fb(_0x1289ce){var _0x458fa9=_0x248381;_0x59a215[_0x458fa9('0x10d0')]=_0x1289ce||{'count':0x0,'rows':[]};}function _0x47fe73(){var _0x56e7bb=_0x248381;_0x59a215[_0x56e7bb('0x77')]['offset']=(_0x59a215['query'][_0x56e7bb('0x2376')]-0x1)*_0x59a215[_0x56e7bb('0x77')][_0x56e7bb('0x1f4a')],_0x59a215[_0x56e7bb('0x71b')]=_0x2800c9[_0x56e7bb('0x151f')][_0x56e7bb('0x1235')](_0x59a215[_0x56e7bb('0x77')],_0x3d23fb)[_0x56e7bb('0x1376')];}function _0x598d70(_0x1c4811){var _0x49d630=_0x248381;_0x2800c9[_0x49d630('0x22c8')][_0x49d630('0x1164')]({'id':_0x1c4811['id']})['$promise']['then'](function(){var _0x16cc3c=_0x49d630;_0x47fe73(),_0x51a6e3[_0x16cc3c('0xdb1')]({'title':_0x444e52[_0x16cc3c('0x183e')](_0x16cc3c('0x42a'))});})[_0x49d630('0x1c1d')](function(_0x36dc91){var _0xe3bdfb=_0x49d630;if(_0x36dc91['data']&&_0x36dc91[_0xe3bdfb('0x11c2')]['errors']&&_0x36dc91[_0xe3bdfb('0x11c2')][_0xe3bdfb('0x1a69')][_0xe3bdfb('0x577')]){_0x59a215[_0xe3bdfb('0x1a69')]=_0x36dc91[_0xe3bdfb('0x11c2')][_0xe3bdfb('0x1a69')]||[{'message':_0x36dc91[_0xe3bdfb('0x174f')](),'type':_0xe3bdfb('0x10d3')}];for(var _0x413759=0x0;_0x413759<_0x36dc91[_0xe3bdfb('0x11c2')][_0xe3bdfb('0x1a69')]['length'];_0x413759++){_0x51a6e3[_0xe3bdfb('0x2092')]({'title':_0x36dc91[_0xe3bdfb('0x11c2')][_0xe3bdfb('0x1a69')][_0x413759]['type'],'msg':_0x36dc91['data'][_0xe3bdfb('0x1a69')][_0x413759][_0xe3bdfb('0x1224')]});}}else _0x51a6e3[_0xe3bdfb('0x2092')]({'title':_0x36dc91[_0xe3bdfb('0x209')]?'API:'+_0x36dc91['status']+_0xe3bdfb('0xa99')+_0x36dc91[_0xe3bdfb('0x1808')]:_0xe3bdfb('0x10d3'),'msg':_0x36dc91[_0xe3bdfb('0x11c2')]?JSON['stringify'](_0x36dc91['data'][_0xe3bdfb('0x1224')]):_0x36dc91[_0xe3bdfb('0x1224')]||_0x36dc91[_0xe3bdfb('0x174f')]()});});}function _0x563196(){var _0x512aae=_0x248381,_0x29cce2=angular[_0x512aae('0xd75')](_0x59a215[_0x512aae('0xa9')]);return _0x59a215[_0x512aae('0xa9')]=[],_0x29cce2;}function _0x10e1c1(_0x37e881){var _0x1401ac=_0x248381,_0x70dd88=_0x3b691e[_0x1401ac('0xa33')]()[_0x1401ac('0x4b4')](_0x444e52[_0x1401ac('0x183e')](_0x1401ac('0x1477')))['content'](_0x444e52[_0x1401ac('0x183e')]('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE',{'total':_0x59a215[_0x1401ac('0xa9')][_0x1401ac('0x577')]}))['ariaLabel'](_0x1401ac('0xad9'))['targetEvent'](_0x37e881)['ok']('OK')['cancel'](_0x444e52['instant'](_0x1401ac('0x20ea')));_0x3b691e[_0x1401ac('0x853')](_0x70dd88)[_0x1401ac('0x21ad')](function(){var _0x508b24=_0x1401ac;_0x59a215[_0x508b24('0xa9')][_0x508b24('0x1a52')](function(_0x55ff29){_0x598d70(_0x55ff29);}),_0x59a215[_0x508b24('0xa9')]=[];});}function _0x2d8781(){var _0x4f1e2d=_0x248381;_0x59a215[_0x4f1e2d('0xa9')]=[];}function _0x345772(){var _0xe34bc0=_0x248381;_0x59a215[_0xe34bc0('0xa9')]=_0x59a215[_0xe34bc0('0x10d0')]['rows'];}var _0x24caf0=!![],_0x416de3=0x1;_0x2c18a9[_0x248381('0x10e8')]('vm_dc.query.filter',function(_0x22adf9,_0x50c98e){var _0x144ef9=_0x248381;_0x24caf0?_0x26d7f1(function(){_0x24caf0=![];}):(!_0x50c98e&&(_0x416de3=_0x59a215[_0x144ef9('0x77')][_0x144ef9('0x2376')]),_0x22adf9!==_0x50c98e&&(_0x59a215[_0x144ef9('0x77')][_0x144ef9('0x2376')]=0x1),!_0x22adf9&&(_0x59a215[_0x144ef9('0x77')][_0x144ef9('0x2376')]=_0x416de3),_0x47fe73());});}const _0x179739=_0x3759a6,_0x50ea4a=_0x398308['p']+_0x3877e3('0x10f8');_0x31af31[_0x3877e3('0x1a81')]=['$state','$location',_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x13c1'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0xccd'),'toasty',_0x3877e3('0x15bc'),_0x3877e3('0x151f'),'userProfileSection'];function _0x31af31(_0x48ffa0,_0x1a0f48,_0x3c5834,_0x225178,_0x1ad209,_0x438f1e,_0x332e67,_0x4d7b03,_0x4ec0e5,_0x1c2a6c,_0x4f4758,_0x1aa7df){var _0x709f5b=_0x3877e3,_0x1182d0=this;_0x1182d0[_0x709f5b('0x123f')]=_0x1c2a6c['getCurrentUser'](),_0x1182d0['license']=_0x438f1e,_0x1182d0[_0x709f5b('0x21e')]=_0x332e67,_0x1182d0['passwordPattern']=_0x1182d0[_0x709f5b('0x21e')][_0x709f5b('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1182d0[_0x709f5b('0x626')]=_0x1a0f48[_0x709f5b('0x1162')]()+_0x709f5b('0x22a9')+_0x1a0f48['host'](),_0x1182d0[_0x709f5b('0x151f')]=_0x4f4758||_0x48ffa0['params'][_0x709f5b('0x151f')]||{},_0x1182d0['userProfileSection']=_0x1aa7df&&_0x1aa7df[_0x709f5b('0x205f')]==0x1?_0x1aa7df[_0x709f5b('0x1b33')][0x0]:null,_0x1182d0[_0x709f5b('0x5ed')]=_0x1c2a6c[_0x709f5b('0x1778')](_0x1182d0[_0x709f5b('0xab4')]?_0x1182d0[_0x709f5b('0xab4')]['crudPermissions']:null),_0x1182d0[_0x709f5b('0x126a')]={},_0x1182d0[_0x709f5b('0x302')]=_0x48ffa0[_0x709f5b('0x171b')][_0x709f5b('0x12e1')]||0x0,_0x1182d0[_0x709f5b('0x1297')]=_0x40c3b9,_0x1182d0['alert']=_0x4ec0e5['info'],_0x1182d0[_0x709f5b('0x239c')]=_0x2ff155,_0x1182d0[_0x709f5b('0x1aa3')]=_0x1371cb,_0x1c2a6c[_0x709f5b('0x21de')](_0x709f5b('0x1bd8'))?_0x4d7b03[_0x709f5b('0x11e0')][_0x709f5b('0x595')]({'fields':_0x709f5b('0x1aa8'),'sort':_0x709f5b('0x19fe')})[_0x709f5b('0x1376')][_0x709f5b('0x21ad')](function(_0x2aa5e3){var _0x47b94d=_0x709f5b;_0x1182d0[_0x47b94d('0x1972')]=_0x2aa5e3[_0x47b94d('0x1b33')]||[];})[_0x709f5b('0x1c1d')](function(_0x20843f){var _0x3d9f5a=_0x709f5b;_0x4ec0e5['error']({'title':_0x20843f[_0x3d9f5a('0x209')]?_0x3d9f5a('0x22d')+_0x20843f[_0x3d9f5a('0x209')]+'\x20-\x20'+_0x20843f['statusText']:'SYSTEM:GET_LISTS','msg':_0x20843f[_0x3d9f5a('0x11c2')]?JSON['stringify'](_0x20843f[_0x3d9f5a('0x11c2')]):_0x20843f[_0x3d9f5a('0x174f')]()});}):_0x4d7b03['cmList'][_0x709f5b('0x595')]({'fields':_0x709f5b('0x1aa8'),'sort':_0x709f5b('0x19fe')})[_0x709f5b('0x1376')][_0x709f5b('0x21ad')](function(_0x43fc51){var _0x1cd677=_0x709f5b;_0x1182d0[_0x1cd677('0x1972')]=_0x43fc51[_0x1cd677('0x1b33')]||[];})[_0x709f5b('0x21ad')](function(){var _0x4d23f8=_0x709f5b;return _0x4d7b03['userProfileSection']['get']({'userProfileId':_0x1182d0['currentUser'][_0x4d23f8('0x1618')],'sectionId':0x12d})[_0x4d23f8('0x1376')];})[_0x709f5b('0x21ad')](function(_0x319408){var _0x3f9133=_0x709f5b,_0x50c23=_0x319408&&_0x319408[_0x3f9133('0x1b33')]?_0x319408[_0x3f9133('0x1b33')][0x0]:null;if(!_0x50c23){var _0xd58723=[],_0x48ee18=null;_0x1182d0[_0x3f9133('0x151f')]&&(_0x48ee18=_0x86640f()[_0x3f9133('0x1d2e')](_0x1182d0['lists'],{'id':Number(_0x1182d0['openchannelAccount'][_0x3f9133('0x815')])}));for(var _0x1d80e8=0x0;_0x1d80e8<_0x1182d0[_0x3f9133('0x1972')][_0x3f9133('0x577')];_0x1d80e8++){_0x48ee18&&_0x1182d0['lists'][_0x1d80e8]['id']===_0x48ee18['id']&&(_0x1182d0[_0x3f9133('0x1972')][_0x1d80e8][_0x3f9133('0xba')]=![],_0xd58723['push'](_0x1182d0[_0x3f9133('0x1972')][_0x1d80e8]));}_0x1182d0[_0x3f9133('0x1972')]=_0xd58723;}else{if(!_0x50c23[_0x3f9133('0x80c')])return _0x4d7b03[_0x3f9133('0x185e')][_0x3f9133('0x595')]({'sectionId':_0x50c23['id']})[_0x3f9133('0x1376')]['then'](function(_0x17d7e0){var _0x1a00a3=_0x3f9133,_0xc2d842=_0x86640f()[_0x1a00a3('0x26c3')](_0x17d7e0[_0x1a00a3('0x1b33')],function(_0x3663d6){var _0x373a9b=_0x1a00a3;return _0x86640f()[_0x373a9b('0x1d2e')](_0x1182d0[_0x373a9b('0x1972')],{'id':_0x3663d6[_0x373a9b('0x675')]});}),_0x17a1b6=null;_0x1182d0[_0x1a00a3('0x151f')]&&(_0x17a1b6=_0x86640f()[_0x1a00a3('0x1d2e')](_0x1182d0[_0x1a00a3('0x1972')],{'id':Number(_0x1182d0[_0x1a00a3('0x151f')][_0x1a00a3('0x815')])}));if(_0x17a1b6&&!_0x86640f()[_0x1a00a3('0x2664')](_0xc2d842,['id',_0x17a1b6['id']])){var _0x3300c5=_0x86640f()[_0x1a00a3('0x1d2e')](_0x1182d0['lists'],{'id':_0x17a1b6['id']});_0x3300c5[_0x1a00a3('0xba')]=![],_0xc2d842[_0x1a00a3('0x206c')](_0x3300c5);}_0x1182d0['lists']=_0xc2d842;});}})[_0x709f5b('0x1c1d')](function(_0x2402f6){var _0x366f59=_0x709f5b;_0x4ec0e5[_0x366f59('0x2092')]({'title':_0x2402f6[_0x366f59('0x209')]?'API:'+_0x2402f6[_0x366f59('0x209')]+_0x366f59('0xa99')+_0x2402f6[_0x366f59('0x1808')]:'SYSTEM:GETlists','msg':_0x2402f6[_0x366f59('0x11c2')]?JSON[_0x366f59('0x25e')](_0x2402f6[_0x366f59('0x11c2')]):_0x2402f6['toString']()});}),_0x4d7b03['cmContact']['describe']({'id':_0x1182d0['openchannelAccount'][_0x709f5b('0x815')]})[_0x709f5b('0x1376')][_0x709f5b('0x21ad')](function(_0x3db9fc){var _0x46cda7=_0x709f5b;_0x1182d0[_0x46cda7('0x181e')]=[],_0x3db9fc=_0x86640f()[_0x46cda7('0x1843')](_0x3db9fc[_0x46cda7('0x3bc')]());var _0x1b2c1a=['id',_0x46cda7('0x23ae'),_0x46cda7('0x15af'),_0x46cda7('0x1c55'),'scheduledat',_0x46cda7('0x815'),_0x46cda7('0x20f8')];for(var _0x3cd207=0x0;_0x3cd207<_0x3db9fc[_0x46cda7('0x577')];_0x3cd207++){!_0x86640f()[_0x46cda7('0xb34')](_0x1b2c1a,_0x3db9fc[_0x3cd207][_0x46cda7('0xe85')])&&_0x1182d0['fields'][_0x46cda7('0x206c')](_0x3db9fc[_0x3cd207]);}})[_0x709f5b('0x1c1d')](function(_0x3b8e6d){var _0x5427b1=_0x709f5b;_0x4ec0e5['error']({'title':_0x3b8e6d[_0x5427b1('0x209')]?_0x5427b1('0x22d')+_0x3b8e6d[_0x5427b1('0x209')]+'\x20-\x20'+_0x3b8e6d['statusText']:'SYSTEM:GET_FIELDS','msg':_0x3b8e6d[_0x5427b1('0x11c2')]?JSON[_0x5427b1('0x25e')](_0x3b8e6d['data']):_0x3b8e6d[_0x5427b1('0x174f')]()});}),_0x1c2a6c[_0x709f5b('0x21de')](_0x709f5b('0x1bd8'))?_0x4d7b03[_0x709f5b('0x1e26')]['get']({'fields':_0x709f5b('0x14d5'),'sort':'name','nolimit':_0x709f5b('0x19bd')})['$promise'][_0x709f5b('0x21ad')](function(_0x543c9c){var _0x27e5b2=_0x709f5b;_0x1182d0[_0x27e5b2('0x1fc7')]=_0x543c9c[_0x27e5b2('0x1b33')]||[];})[_0x709f5b('0x1c1d')](function(_0x60bd3e){var _0x20ccf7=_0x709f5b;_0x4ec0e5[_0x20ccf7('0x2092')]({'title':_0x60bd3e[_0x20ccf7('0x209')]?_0x20ccf7('0x22d')+_0x60bd3e['status']+'\x20-\x20'+_0x60bd3e[_0x20ccf7('0x1808')]:_0x20ccf7('0xb9b'),'msg':_0x60bd3e[_0x20ccf7('0x11c2')]?JSON[_0x20ccf7('0x25e')](_0x60bd3e[_0x20ccf7('0x11c2')]):_0x60bd3e[_0x20ccf7('0x174f')]()});}):_0x4d7b03['pause'][_0x709f5b('0x595')]({'fields':_0x709f5b('0x14d5'),'sort':_0x709f5b('0x19fe'),'nolimit':_0x709f5b('0x19bd')})[_0x709f5b('0x1376')]['then'](function(_0xc12f05){var _0x1104c0=_0x709f5b;_0x1182d0[_0x1104c0('0x1fc7')]=_0xc12f05[_0x1104c0('0x1b33')]||[];})[_0x709f5b('0x21ad')](function(){var _0x630fbe=_0x709f5b;return _0x4d7b03[_0x630fbe('0xab4')][_0x630fbe('0x595')]({'userProfileId':_0x1182d0[_0x630fbe('0x123f')][_0x630fbe('0x1618')],'sectionId':0x3ed})['$promise'];})[_0x709f5b('0x21ad')](function(_0x530653){var _0x379ade=_0x709f5b,_0x11b9e7=_0x530653&&_0x530653['rows']?_0x530653[_0x379ade('0x1b33')][0x0]:null;if(!_0x11b9e7)_0x1182d0[_0x379ade('0x1fc7')]=[];else{if(!_0x11b9e7[_0x379ade('0x80c')])return _0x4d7b03[_0x379ade('0x185e')]['get']({'sectionId':_0x11b9e7['id']})[_0x379ade('0x1376')][_0x379ade('0x21ad')](function(_0x4945f5){var _0x5718fc=_0x379ade,_0x589e29=_0x86640f()[_0x5718fc('0x26c3')](_0x4945f5[_0x5718fc('0x1b33')],function(_0x513217){var _0xc2ca9d=_0x5718fc;return _0x86640f()['find'](_0x1182d0['pauses'],{'id':_0x513217[_0xc2ca9d('0x675')]});});_0x1182d0[_0x5718fc('0x1fc7')][_0x5718fc('0x1a52')](function(_0x3f25cb){var _0x39f0cc=_0x5718fc;!_0x86640f()[_0x39f0cc('0x2664')](_0x589e29,['id',_0x3f25cb['id']])&&(_0x3f25cb['canSelect']=![]),_0x589e29[_0x39f0cc('0x206c')](_0x3f25cb);}),_0x1182d0[_0x5718fc('0x1fc7')]=_0x589e29;});}})[_0x709f5b('0x1c1d')](function(_0x4bb7a8){var _0x1f7d84=_0x709f5b;_0x4ec0e5[_0x1f7d84('0x2092')]({'title':_0x4bb7a8[_0x1f7d84('0x209')]?_0x1f7d84('0x22d')+_0x4bb7a8[_0x1f7d84('0x209')]+_0x1f7d84('0xa99')+_0x4bb7a8[_0x1f7d84('0x1808')]:'SYSTEM:GETpauses','msg':_0x4bb7a8[_0x1f7d84('0x11c2')]?JSON[_0x1f7d84('0x25e')](_0x4bb7a8[_0x1f7d84('0x11c2')]):_0x4bb7a8[_0x1f7d84('0x174f')]()});});function _0x40c3b9(_0x133ace,_0x1dd1dd){var _0x28bd44=_0x709f5b;_0x3c5834[_0x28bd44('0x853')]({'controller':_0x28bd44('0x206d'),'controllerAs':'vm','templateUrl':_0x50ea4a,'parent':angular['element'](_0x225178[_0x28bd44('0x2452')]),'targetEvent':_0x1dd1dd,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x133ace,'openchannelAccounts':_0x1182d0['openchannelAccounts']?_0x1182d0['openchannelAccounts']['rows']:[],'crudPermissions':_0x1182d0[_0x28bd44('0x5ed')],'realtime':![]}});}function _0x2ff155(){var _0x13aa18=_0x709f5b;_0x48ffa0['go'](_0x13aa18('0x17a3'),{},{'reload':_0x13aa18('0x17a3')});}function _0x1371cb(){var _0x4a69fe=_0x709f5b;_0x4d7b03[_0x4a69fe('0x151f')][_0x4a69fe('0x5ef')]({'id':_0x1182d0[_0x4a69fe('0x151f')]['id']},_0x1182d0[_0x4a69fe('0x151f')])[_0x4a69fe('0x1376')][_0x4a69fe('0x21ad')](function(){var _0x3998e8=_0x4a69fe;_0x4ec0e5['success']({'title':_0x3998e8('0x274c'),'msg':_0x1182d0[_0x3998e8('0x151f')][_0x3998e8('0x19fe')]?_0x1182d0[_0x3998e8('0x151f')][_0x3998e8('0x19fe')]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0xd56889){var _0x35db82=_0x4a69fe;_0x4ec0e5[_0x35db82('0x2092')]({'title':_0xd56889[_0x35db82('0x209')]?_0x35db82('0x22d')+_0xd56889['status']+_0x35db82('0xa99')+_0xd56889[_0x35db82('0x1808')]:_0x35db82('0x840'),'msg':_0xd56889[_0x35db82('0x11c2')]?JSON[_0x35db82('0x25e')](_0xd56889['data']):_0xd56889[_0x35db82('0x174f')]()});});}}const _0x7dab2c=_0x31af31,_0x2ea72e=_0x398308['p']+_0x3877e3('0x1ed2');_0x17cb75['$inject']=['$scope',_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),_0x3877e3('0x1850'),'$document','$timeout',_0x3877e3('0x13c1'),_0x3877e3('0x226c'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),'toasty',_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting'];function _0x17cb75(_0x3bf784,_0x22bdc2,_0x449768,_0x595bdd,_0x13c8a7,_0x3541c5,_0x26247c,_0x509aff,_0x5aef20,_0x4dc2bd,_0x168cba,_0x4915c7,_0x145b1a,_0x4c8d91,_0x52163d,_0x104cd1,_0x2367a2){var _0x26497b=_0x3877e3,_0x6f2201=this;_0x6f2201[_0x26497b('0x2ff')]=_0x104cd1,_0x6f2201[_0x26497b('0x21e')]=_0x2367a2,_0x6f2201[_0x26497b('0x123f')]=_0x52163d[_0x26497b('0x15ed')](),_0x6f2201[_0x26497b('0x226c')]=_0x5aef20||{'count':0x0,'rows':[]},_0x6f2201['userProfile']=_0x4dc2bd,_0x6f2201[_0x26497b('0xab4')]=_0x168cba&&_0x168cba[_0x26497b('0x205f')]==0x1?_0x168cba['rows'][0x0]:null,_0x6f2201[_0x26497b('0x5ed')]=_0x52163d[_0x26497b('0x1778')](_0x6f2201[_0x26497b('0xab4')]?_0x6f2201[_0x26497b('0xab4')][_0x26497b('0x5ed')]:null),_0x6f2201[_0x26497b('0x1897')]='openchannelAccounts',_0x6f2201[_0x26497b('0x11dc')]='',_0x6f2201['listOrderAsc']=null,_0x6f2201['selectedOpenchannelAccounts']=[],_0x6f2201['query']={'fields':_0x26497b('0x227f'),'sort':_0x26497b('0x33'),'limit':0xa,'page':0x1},_0x6f2201['editstate']=_0x300413,_0x6f2201['interactionsgoto']=_0xb97c63,_0x6f2201[_0x26497b('0x1297')]=_0x195efd,_0x6f2201[_0x26497b('0x2593')]=_0x3f0c58,_0x6f2201[_0x26497b('0xdb1')]=_0x23034c,_0x6f2201[_0x26497b('0x10fd')]=_0xd5b42e,_0x6f2201[_0x26497b('0x2527')]=_0x4763da,_0x6f2201[_0x26497b('0x1a17')]=_0x2cdc8b,_0x6f2201['exportSelectedOpenchannelAccounts']=_0x38f76c,_0x6f2201[_0x26497b('0x233')]=_0x294ebf,_0x6f2201[_0x26497b('0x2330')]=_0x86966e,_0x6f2201[_0x26497b('0x107c')]=_0x10f03e,_0x52163d[_0x26497b('0x21de')](_0x26497b('0x1bd8'))?_0x4915c7[_0x26497b('0x11e0')][_0x26497b('0x595')]({'fields':'id,name','sort':_0x26497b('0x19fe')})['$promise']['then'](function(_0x34b2d8){var _0x53af47=_0x26497b;_0x6f2201[_0x53af47('0x1972')]=_0x34b2d8[_0x53af47('0x1b33')]||[];})[_0x26497b('0x1c1d')](function(_0x47649c){var _0x1ab722=_0x26497b;_0x4c8d91['error']({'title':_0x47649c[_0x1ab722('0x209')]?_0x1ab722('0x22d')+_0x47649c[_0x1ab722('0x209')]+_0x1ab722('0xa99')+_0x47649c[_0x1ab722('0x1808')]:'SYSTEM:GET_LISTS','msg':_0x47649c[_0x1ab722('0x11c2')]?JSON[_0x1ab722('0x25e')](_0x47649c['data']):_0x47649c[_0x1ab722('0x174f')]()});}):_0x4915c7[_0x26497b('0x11e0')][_0x26497b('0x595')]({'fields':_0x26497b('0x1aa8'),'sort':_0x26497b('0x19fe')})[_0x26497b('0x1376')]['then'](function(_0x5d9abf){var _0x14c07c=_0x26497b;_0x6f2201['lists']=_0x5d9abf[_0x14c07c('0x1b33')]||[];})[_0x26497b('0x21ad')](function(){var _0x30dfe8=_0x26497b;return _0x4915c7[_0x30dfe8('0xab4')][_0x30dfe8('0x595')]({'userProfileId':_0x6f2201['currentUser']['userProfileId'],'sectionId':0x12d})[_0x30dfe8('0x1376')];})[_0x26497b('0x21ad')](function(_0x3bd9e1){var _0x5b64f1=_0x26497b,_0x4192b1=_0x3bd9e1&&_0x3bd9e1['rows']?_0x3bd9e1[_0x5b64f1('0x1b33')][0x0]:null;if(!_0x4192b1){var _0x4683c1=[],_0x5bd988=null;_0x6f2201[_0x5b64f1('0x151f')]&&(_0x5bd988=_0x86640f()['find'](_0x6f2201[_0x5b64f1('0x1972')],{'id':Number(_0x6f2201['openchannelAccount'][_0x5b64f1('0x815')])}));for(var _0x4cd398=0x0;_0x4cd398<_0x6f2201[_0x5b64f1('0x1972')][_0x5b64f1('0x577')];_0x4cd398++){_0x5bd988&&_0x6f2201[_0x5b64f1('0x1972')][_0x4cd398]['id']===_0x5bd988['id']&&(_0x6f2201[_0x5b64f1('0x1972')][_0x4cd398][_0x5b64f1('0xba')]=![],_0x4683c1[_0x5b64f1('0x206c')](_0x6f2201[_0x5b64f1('0x1972')][_0x4cd398]));}_0x6f2201[_0x5b64f1('0x1972')]=_0x4683c1;}else{if(!_0x4192b1[_0x5b64f1('0x80c')])return _0x4915c7['userProfileResource'][_0x5b64f1('0x595')]({'sectionId':_0x4192b1['id']})[_0x5b64f1('0x1376')][_0x5b64f1('0x21ad')](function(_0x589257){var _0x19a4a4=_0x5b64f1,_0xde10dd=_0x86640f()[_0x19a4a4('0x26c3')](_0x589257[_0x19a4a4('0x1b33')],function(_0x1f4b57){var _0x6652b8=_0x19a4a4;return _0x86640f()[_0x6652b8('0x1d2e')](_0x6f2201['lists'],{'id':_0x1f4b57[_0x6652b8('0x675')]});}),_0x18a127=null;_0x6f2201[_0x19a4a4('0x151f')]&&(_0x18a127=_0x86640f()[_0x19a4a4('0x1d2e')](_0x6f2201['lists'],{'id':Number(_0x6f2201[_0x19a4a4('0x151f')][_0x19a4a4('0x815')])}));if(_0x18a127&&!_0x86640f()[_0x19a4a4('0x2664')](_0xde10dd,['id',_0x18a127['id']])){var _0x5613d8=_0x86640f()['find'](_0x6f2201[_0x19a4a4('0x1972')],{'id':_0x18a127['id']});_0x5613d8[_0x19a4a4('0xba')]=![],_0xde10dd['push'](_0x5613d8);}_0x6f2201[_0x19a4a4('0x1972')]=_0xde10dd;});}})[_0x26497b('0x1c1d')](function(_0x446d98){var _0x5a5e42=_0x26497b;_0x4c8d91[_0x5a5e42('0x2092')]({'title':_0x446d98['status']?_0x5a5e42('0x22d')+_0x446d98[_0x5a5e42('0x209')]+_0x5a5e42('0xa99')+_0x446d98['statusText']:_0x5a5e42('0xa92'),'msg':_0x446d98['data']?JSON[_0x5a5e42('0x25e')](_0x446d98[_0x5a5e42('0x11c2')]):_0x446d98['toString']()});});function _0x300413(_0x466f67){var _0x2b9a8f=_0x26497b;_0x449768['go'](_0x2b9a8f('0x9de'),{'id':_0x466f67['id'],'openchannelAccount':_0x466f67,'crudPermissions':_0x6f2201[_0x2b9a8f('0x5ed')]});}function _0xb97c63(_0x426354){var _0x2a51c7=_0x26497b;_0x449768['go'](_0x2a51c7('0x9de'),{'id':_0x426354['id'],'tab':0x5});}function _0x195efd(_0x13674b,_0x23d115){var _0x2d9bad=_0x26497b;_0x13c8a7['show']({'controller':_0x2d9bad('0x206d'),'controllerAs':'vm','templateUrl':_0x50ea4a,'parent':angular[_0x2d9bad('0x1676')](_0x3541c5[_0x2d9bad('0x2452')]),'targetEvent':_0x23d115,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x13674b,'openchannelAccounts':_0x6f2201[_0x2d9bad('0x226c')]?_0x6f2201[_0x2d9bad('0x226c')][_0x2d9bad('0x1b33')]:[],'crudPermissions':_0x6f2201[_0x2d9bad('0x5ed')],'realtime':![]}});}function _0x3f0c58(_0x197a00,_0x5fd88){var _0x11d040=_0x26497b,_0x408322=_0x13c8a7[_0x11d040('0xa33')]()[_0x11d040('0x4b4')](_0x11d040('0x25b6')+_0x86640f()[_0x11d040('0x2159')](_0x11d040('0x151f'))+'?')[_0x11d040('0x276b')](_0x11d040('0x622')+(_0x197a00[_0x11d040('0x19fe')]||_0x11d040('0x151f'))+_0x11d040('0x2135')+_0x11d040('0x25e0'))[_0x11d040('0x7a7')](_0x11d040('0xb79'))[_0x11d040('0x1e6d')](_0x5fd88)['ok']('OK')[_0x11d040('0x3b5')](_0x11d040('0x284b'));_0x13c8a7[_0x11d040('0x853')](_0x408322)[_0x11d040('0x21ad')](function(){_0x2cdc8b(_0x197a00);},function(){var _0x2f9693=_0x11d040;console[_0x2f9693('0x6fb')](_0x2f9693('0x284b'));});}var _0x1b0615=!![],_0xc1f246=0x1;_0x3bf784[_0x26497b('0x10e8')](_0x26497b('0x1948'),function(_0x2c4e88,_0x56bb12){var _0x83c0b1=_0x26497b;_0x1b0615?_0x26247c(function(){_0x1b0615=![];}):(!_0x56bb12&&(_0xc1f246=_0x6f2201[_0x83c0b1('0x77')][_0x83c0b1('0x2376')]),_0x2c4e88!==_0x56bb12&&(_0x6f2201['query']['page']=0x1),!_0x2c4e88&&(_0x6f2201[_0x83c0b1('0x77')]['page']=_0xc1f246),_0x6f2201[_0x83c0b1('0x10fd')]());});function _0x23034c(_0x52b8dd){_0x6f2201['openchannelAccounts']=_0x52b8dd||{'count':0x0,'rows':[]};}function _0xd5b42e(){var _0x32a941=_0x26497b;_0x6f2201[_0x32a941('0x77')][_0x32a941('0x15a5')]=(_0x6f2201[_0x32a941('0x77')][_0x32a941('0x2376')]-0x1)*_0x6f2201['query'][_0x32a941('0x1f4a')],_0x52163d[_0x32a941('0x21de')](_0x32a941('0x1bd8'))?_0x6f2201['promise']=_0x4915c7['openchannelAccount'][_0x32a941('0x595')](_0x6f2201[_0x32a941('0x77')],_0x23034c)[_0x32a941('0x1376')]:(_0x6f2201[_0x32a941('0x77')]['id']=_0x6f2201['userProfile']['id'],_0x6f2201[_0x32a941('0x77')]['section']=_0x32a941('0x194d'),_0x6f2201[_0x32a941('0x71b')]=_0x4915c7['userProfile'][_0x32a941('0x321')](_0x6f2201[_0x32a941('0x77')],_0x23034c)['$promise']);}function _0x4763da(_0x2ea099,_0x3bc27a){var _0x5436b2=_0x26497b;_0x13c8a7['show']({'controller':_0x5436b2('0x19e4'),'controllerAs':'vm','templateUrl':_0x2ea72e,'parent':angular[_0x5436b2('0x1676')](_0x3541c5[_0x5436b2('0x2452')]),'targetEvent':_0x2ea099,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x3bc27a,'openchannelAccounts':_0x6f2201['openchannelAccounts'][_0x5436b2('0x1b33')],'license':_0x6f2201[_0x5436b2('0x2ff')],'setting':_0x6f2201[_0x5436b2('0x21e')],'crudPermissions':_0x6f2201[_0x5436b2('0x5ed')]}});}function _0x2cdc8b(_0xc2df2a){var _0xa21c4=_0x26497b;_0x4915c7[_0xa21c4('0x151f')][_0xa21c4('0x1164')]({'id':_0xc2df2a['id']})['$promise']['then'](function(){var _0x590a66=_0xa21c4;_0x86640f()[_0x590a66('0x16a2')](_0x6f2201[_0x590a66('0x226c')][_0x590a66('0x1b33')],{'id':_0xc2df2a['id']}),_0x6f2201[_0x590a66('0x226c')][_0x590a66('0x205f')]-=0x1,!_0x6f2201[_0x590a66('0x226c')]['rows'][_0x590a66('0x577')]&&_0x6f2201['getOpenchannelAccounts'](),_0x4c8d91['success']({'title':_0x86640f()['startCase'](_0x590a66('0x9e2'))+_0x590a66('0xe64'),'msg':_0xc2df2a[_0x590a66('0x19fe')]?_0xc2df2a[_0x590a66('0x19fe')]+'\x20has\x20been\x20deleted!':''});})[_0xa21c4('0x1c1d')](function(_0x4815a2){var _0x277da6=_0xa21c4;if(_0x4815a2['data']&&_0x4815a2['data']['errors']&&_0x4815a2[_0x277da6('0x11c2')][_0x277da6('0x1a69')][_0x277da6('0x577')]){_0x6f2201[_0x277da6('0x1a69')]=_0x4815a2[_0x277da6('0x11c2')][_0x277da6('0x1a69')]||[{'message':_0x4815a2[_0x277da6('0x174f')](),'type':_0x277da6('0x217b')}];for(var _0x423f77=0x0;_0x423f77<_0x4815a2[_0x277da6('0x11c2')][_0x277da6('0x1a69')]['length'];_0x423f77++){_0x4c8d91[_0x277da6('0x2092')]({'title':_0x4815a2[_0x277da6('0x11c2')]['errors'][_0x423f77][_0x277da6('0x7fa')],'msg':_0x4815a2[_0x277da6('0x11c2')]['errors'][_0x423f77][_0x277da6('0x1224')]});}}else _0x4c8d91[_0x277da6('0x2092')]({'title':_0x4815a2[_0x277da6('0x209')]?_0x277da6('0x22d')+_0x4815a2[_0x277da6('0x209')]+_0x277da6('0xa99')+_0x4815a2[_0x277da6('0x1808')]:'SYSTEM:DELETEopenchannelAccount','msg':_0x4815a2[_0x277da6('0x11c2')]?JSON['stringify'](_0x4815a2[_0x277da6('0x11c2')][_0x277da6('0x1224')]):_0x4815a2[_0x277da6('0x1224')]||_0x4815a2[_0x277da6('0x174f')]()});});}function _0x38f76c(){var _0x3c4ae9=_0x26497b,_0x311812=angular[_0x3c4ae9('0xd75')](_0x6f2201[_0x3c4ae9('0x1560')]);return _0x6f2201[_0x3c4ae9('0x1560')]=[],_0x311812;}function _0x294ebf(_0x162495){var _0x2b7e48=_0x26497b,_0xad7f23=_0x13c8a7['confirm']()[_0x2b7e48('0x4b4')](_0x2b7e48('0xc00'))[_0x2b7e48('0x276b')](_0x2b7e48('0x622')+_0x6f2201[_0x2b7e48('0x1560')]['length']+_0x2b7e48('0xd74')+_0x2b7e48('0x25e0'))[_0x2b7e48('0x7a7')](_0x2b7e48('0x2000'))[_0x2b7e48('0x1e6d')](_0x162495)['ok']('OK')[_0x2b7e48('0x3b5')](_0x2b7e48('0x284b'));_0x13c8a7[_0x2b7e48('0x853')](_0xad7f23)[_0x2b7e48('0x21ad')](function(){var _0x6ca040=_0x2b7e48;_0x6f2201['selectedOpenchannelAccounts'][_0x6ca040('0x1a52')](function(_0x4bbcb8){_0x2cdc8b(_0x4bbcb8);}),_0x6f2201[_0x6ca040('0x1560')]=[];});}function _0x86966e(){_0x6f2201['selectedOpenchannelAccounts']=[];}function _0x10f03e(){var _0x23dbaa=_0x26497b;_0x6f2201[_0x23dbaa('0x1560')]=_0x6f2201[_0x23dbaa('0x226c')][_0x23dbaa('0x1b33')];}}const _0x56e672=_0x17cb75;_0x4ee80f[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$location',_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x1a0d'),_0x3877e3('0x1c'),'api',_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x4ee80f(_0x6bc989,_0x193cdc,_0x4e1c83,_0xb71b0d,_0x3c8710,_0x5a2903,_0x326fed,_0x1622b6,_0x38b294,_0x3ce99d,_0x598ef2,_0x38d3b2,_0x2d16b3,_0x344dfb){var _0x5c63f9=_0x3877e3,_0x1b7222=this;_0x1b7222[_0x5c63f9('0x123f')]=_0x598ef2[_0x5c63f9('0x15ed')](),_0x1b7222[_0x5c63f9('0x1a69')]=[],_0x1b7222['setting']=_0x2d16b3,_0x1b7222['license']=_0x38d3b2,_0x1b7222[_0x5c63f9('0x5ed')]=_0x344dfb,_0x1b7222['hasModulePermissions']={},_0x1b7222[_0x5c63f9('0x1432')]=_0x1b7222['setting']&&_0x1b7222[_0x5c63f9('0x21e')][_0x5c63f9('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1b7222['title']='OPENCHANNEL.EDIT_OPENCHANNELQUEUE',_0x1b7222[_0x5c63f9('0x1c')]=angular[_0x5c63f9('0xd75')](_0x38b294),_0x1b7222[_0x5c63f9('0x1a0d')]=_0x1622b6,_0x1b7222['newOpenchannelQueue']=![];!_0x1b7222[_0x5c63f9('0x1c')]&&(_0x1b7222[_0x5c63f9('0x1c')]={'strategy':_0x5c63f9('0x2106'),'timeout':0xa},_0x1b7222['title']=_0x5c63f9('0x65b'),_0x1b7222[_0x5c63f9('0x2526')]=!![]);_0x1b7222[_0x5c63f9('0xd2a')]=_0x19cf91,_0x1b7222[_0x5c63f9('0x117d')]=_0x169abd,_0x1b7222[_0x5c63f9('0x1098')]=_0x33823f,_0x1b7222[_0x5c63f9('0x279')]=_0x132ad6,_0x1b7222['closeDialog']=_0x511129;function _0x19cf91(){var _0x20e1cb=_0x5c63f9;_0x1b7222[_0x20e1cb('0x1a69')]=[],_0x3ce99d['openchannelQueue']['save'](_0x1b7222[_0x20e1cb('0x1c')])[_0x20e1cb('0x1376')]['then'](function(_0x173a31){var _0x477368=_0x20e1cb;_0x1b7222[_0x477368('0x1a0d')]['unshift'](_0x173a31[_0x477368('0x3bc')]()),_0x326fed[_0x477368('0xdb1')]({'title':_0x477368('0x1f2'),'msg':_0x1b7222[_0x477368('0x1c')][_0x477368('0x19fe')]?_0x1b7222[_0x477368('0x1c')][_0x477368('0x19fe')]+'\x20has\x20been\x20created!':''}),_0x511129(_0x173a31);})[_0x20e1cb('0x1c1d')](function(_0x49cb8d){var _0x3aac2c=_0x20e1cb;if(_0x49cb8d[_0x3aac2c('0x11c2')]&&_0x49cb8d[_0x3aac2c('0x11c2')]['errors']&&_0x49cb8d[_0x3aac2c('0x11c2')]['errors']['length']){_0x1b7222[_0x3aac2c('0x1a69')]=_0x49cb8d[_0x3aac2c('0x11c2')][_0x3aac2c('0x1a69')]||[{'message':_0x49cb8d['toString'](),'type':_0x3aac2c('0xa2a')}];for(var _0x150271=0x0;_0x150271<_0x49cb8d[_0x3aac2c('0x11c2')][_0x3aac2c('0x1a69')][_0x3aac2c('0x577')];_0x150271+=0x1){_0x326fed[_0x3aac2c('0x2092')]({'title':_0x49cb8d[_0x3aac2c('0x11c2')][_0x3aac2c('0x1a69')][_0x150271][_0x3aac2c('0x7fa')],'msg':_0x49cb8d[_0x3aac2c('0x11c2')][_0x3aac2c('0x1a69')][_0x150271]['message']});}}else _0x326fed['error']({'title':_0x49cb8d[_0x3aac2c('0x209')]?_0x3aac2c('0x22d')+_0x49cb8d[_0x3aac2c('0x209')]+_0x3aac2c('0xa99')+_0x49cb8d[_0x3aac2c('0x1808')]:_0x3aac2c('0xa2a'),'msg':_0x49cb8d[_0x3aac2c('0x11c2')]?JSON[_0x3aac2c('0x25e')](_0x49cb8d[_0x3aac2c('0x11c2')]['message']):_0x49cb8d[_0x3aac2c('0x174f')]()});});}function _0x169abd(){var _0x4ec66b=_0x5c63f9;_0x1b7222[_0x4ec66b('0x1a69')]=[],_0x3ce99d['openchannelQueue'][_0x4ec66b('0x5ef')]({'id':_0x1b7222[_0x4ec66b('0x1c')]['id']},_0x1b7222[_0x4ec66b('0x1c')])[_0x4ec66b('0x1376')][_0x4ec66b('0x21ad')](function(_0x4602b7){var _0x4eb41a=_0x4ec66b,_0x427a3a=_0x86640f()[_0x4eb41a('0x1d2e')](_0x1b7222[_0x4eb41a('0x1a0d')],{'id':_0x4602b7['id']});_0x427a3a&&_0x86640f()['merge'](_0x427a3a,_0x86640f()[_0x4eb41a('0xc50')](_0x4602b7['toJSON'](),_0x86640f()[_0x4eb41a('0x223b')](_0x427a3a))),_0x326fed[_0x4eb41a('0xdb1')]({'title':_0x4eb41a('0x1967'),'msg':_0x1b7222[_0x4eb41a('0x1c')][_0x4eb41a('0x19fe')]?_0x1b7222[_0x4eb41a('0x1c')][_0x4eb41a('0x19fe')]+'\x20has\x20been\x20saved!':''}),_0x511129(_0x4602b7);})[_0x4ec66b('0x1c1d')](function(_0x171fe7){var _0x331551=_0x4ec66b;if(_0x171fe7['data']&&_0x171fe7[_0x331551('0x11c2')][_0x331551('0x1a69')]&&_0x171fe7[_0x331551('0x11c2')]['errors'][_0x331551('0x577')]){_0x1b7222[_0x331551('0x1a69')]=_0x171fe7[_0x331551('0x11c2')][_0x331551('0x1a69')]||[{'message':_0x171fe7[_0x331551('0x174f')](),'type':_0x331551('0x276')}];for(var _0x2c8c11=0x0;_0x2c8c11<_0x171fe7[_0x331551('0x11c2')][_0x331551('0x1a69')][_0x331551('0x577')];_0x2c8c11++){_0x326fed['error']({'title':_0x171fe7['data'][_0x331551('0x1a69')][_0x2c8c11][_0x331551('0x7fa')],'msg':_0x171fe7['data'][_0x331551('0x1a69')][_0x2c8c11][_0x331551('0x1224')]});}}else _0x326fed[_0x331551('0x2092')]({'title':_0x171fe7['status']?'API:'+_0x171fe7[_0x331551('0x209')]+'\x20-\x20'+_0x171fe7[_0x331551('0x1808')]:_0x331551('0x276'),'msg':_0x171fe7['data']?JSON[_0x331551('0x25e')](_0x171fe7[_0x331551('0x11c2')][_0x331551('0x1224')]):_0x171fe7[_0x331551('0x174f')]()});});}function _0x33823f(_0xbec5c6){var _0x3dd9b9=_0x5c63f9;_0x1b7222['errors']=[];var _0x7a908d=_0xb71b0d[_0x3dd9b9('0xa33')]()[_0x3dd9b9('0x4b4')](_0x3dd9b9('0x196b'))[_0x3dd9b9('0x13fb')](_0x3dd9b9('0x1ef8'))[_0x3dd9b9('0x7a7')](_0x3dd9b9('0x1856'))['ok'](_0x3dd9b9('0xbfd'))[_0x3dd9b9('0x3b5')](_0x3dd9b9('0x1f40'))[_0x3dd9b9('0x1e6d')](_0xbec5c6);_0xb71b0d[_0x3dd9b9('0x853')](_0x7a908d)[_0x3dd9b9('0x21ad')](function(){var _0x580eed=_0x3dd9b9;_0x3ce99d[_0x580eed('0x1c')][_0x580eed('0x1164')]({'id':_0x1b7222[_0x580eed('0x1c')]['id']})[_0x580eed('0x1376')][_0x580eed('0x21ad')](function(){var _0x45a9ac=_0x580eed;_0x86640f()['remove'](_0x1b7222[_0x45a9ac('0x1a0d')],{'id':_0x1b7222['openchannelQueue']['id']}),_0x326fed[_0x45a9ac('0xdb1')]({'title':_0x45a9ac('0xfce'),'msg':(_0x1b7222[_0x45a9ac('0x1c')][_0x45a9ac('0x19fe')]||_0x45a9ac('0x1c'))+_0x45a9ac('0xb4a')}),_0x511129(_0x1b7222[_0x45a9ac('0x1c')]);})['catch'](function(_0x11cb80){var _0x104a86=_0x580eed;if(_0x11cb80[_0x104a86('0x11c2')]&&_0x11cb80[_0x104a86('0x11c2')][_0x104a86('0x1a69')]&&_0x11cb80[_0x104a86('0x11c2')][_0x104a86('0x1a69')][_0x104a86('0x577')]){_0x1b7222[_0x104a86('0x1a69')]=_0x11cb80['data'][_0x104a86('0x1a69')]||[{'message':_0x11cb80['toString'](),'type':_0x104a86('0x1261')}];for(var _0x3db856=0x0;_0x3db856<_0x11cb80[_0x104a86('0x11c2')][_0x104a86('0x1a69')][_0x104a86('0x577')];_0x3db856++){_0x326fed[_0x104a86('0x2092')]({'title':_0x11cb80[_0x104a86('0x11c2')][_0x104a86('0x1a69')][_0x3db856]['type'],'msg':_0x11cb80[_0x104a86('0x11c2')][_0x104a86('0x1a69')][_0x3db856]['message']});}}else _0x326fed['error']({'title':_0x11cb80['status']?_0x104a86('0x22d')+_0x11cb80[_0x104a86('0x209')]+_0x104a86('0xa99')+_0x11cb80[_0x104a86('0x1808')]:_0x104a86('0x1261'),'msg':_0x11cb80['data']?JSON['stringify'](_0x11cb80[_0x104a86('0x11c2')][_0x104a86('0x1224')]):_0x11cb80['message']||_0x11cb80[_0x104a86('0x174f')]()});});},function(){});}function _0x132ad6(_0x54edd3){return _0x54edd3===null?undefined:new Date(_0x54edd3);}function _0x511129(_0x2b9f52){var _0x4e45b5=_0x5c63f9;_0xb71b0d[_0x4e45b5('0x1c24')](_0x2b9f52);}}const _0x1c8e5a=_0x4ee80f;_0x3e3e7e['$inject']=[_0x3877e3('0x1850'),'$q','toasty',_0x3877e3('0xccd'),_0x3877e3('0x1c'),_0x3877e3('0x1a0d'),_0x3877e3('0x116a'),'$translate',_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x3e3e7e(_0x14b8a9,_0x12e20e,_0x36b85a,_0x3ba315,_0x57a726,_0x24d714,_0x1f3b73,_0x118f02,_0x9abef7,_0x4230d9){var _0x1e2fe7=_0x3877e3,_0x3c8402=this;_0x3c8402[_0x1e2fe7('0x123f')]=_0x9abef7[_0x1e2fe7('0x15ed')](),_0x3c8402[_0x1e2fe7('0x1c')]=_0x57a726,_0x3c8402[_0x1e2fe7('0x5ed')]=_0x4230d9,_0x3c8402[_0x1e2fe7('0x116a')]=_0x1f3b73,_0x3c8402[_0x1e2fe7('0x1b9a')]=[],_0x3c8402[_0x1e2fe7('0x1e09')]=[],_0x3c8402[_0x1e2fe7('0x2629')]=[],_0x3c8402[_0x1e2fe7('0x91b')]=[],_0x3c8402[_0x1e2fe7('0x2584')]=[],_0x3c8402[_0x1e2fe7('0x1bb9')]=![],_0x3c8402[_0x1e2fe7('0x1081')]=_0x4da5f2,_0x3c8402[_0x1e2fe7('0x265b')]=_0x1f22cd,_0x3c8402['closeDialog']=_0x420825,_0x3c8402['dualMultiselectOptions']={'readOnly':!_0x3c8402[_0x1e2fe7('0x5ed')]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':'fullname','line2':[_0x1e2fe7('0x19fe'),_0x1e2fe7('0x201f')],'line3':'','labelAll':_0x118f02[_0x1e2fe7('0x183e')](_0x1e2fe7('0x1121')),'labelSelected':_0x118f02[_0x1e2fe7('0x183e')]('OPENCHANNEL.SELECTED_AGENTS'),'transferCallback':function _0x23ad37(){var _0x323bb6=_0x1e2fe7,_0x44321e=_0x86640f()[_0x323bb6('0x1473')](_0x3c8402[_0x323bb6('0x2584')],_0x3c8402['selectedItems'],'id');_0x3c8402['pendingChanges']=_0x86640f()[_0x323bb6('0x23aa')](_0x44321e)?![]:!![];}};function _0x4da5f2(){var _0x422206=_0x1e2fe7;return _0x9abef7[_0x422206('0x21de')]('admin')?_0x4b8488()[_0x422206('0x1c1d')](function(_0x5348fc){var _0x556f6f=_0x422206;_0x36b85a[_0x556f6f('0x2092')]({'title':_0x5348fc[_0x556f6f('0x209')]?_0x556f6f('0x22d')+_0x5348fc[_0x556f6f('0x209')]+_0x556f6f('0xa99')+_0x5348fc[_0x556f6f('0x1808')]:_0x556f6f('0x1381'),'msg':_0x5348fc[_0x556f6f('0x209')]?JSON[_0x556f6f('0x25e')](_0x5348fc[_0x556f6f('0x11c2')]):_0x5348fc[_0x556f6f('0x174f')]()});}):_0x240f40()[_0x422206('0x21ad')](function(_0x167f9d){return _0x3c8402['section']=_0x167f9d,_0x4b8488();})[_0x422206('0x1c1d')](function(_0x4a71da){var _0x5b31f3=_0x422206;_0x36b85a['error']({'title':_0x4a71da[_0x5b31f3('0x209')]?'API:'+_0x4a71da[_0x5b31f3('0x209')]+_0x5b31f3('0xa99')+_0x4a71da[_0x5b31f3('0x1808')]:_0x5b31f3('0x1381'),'msg':_0x4a71da['status']?JSON[_0x5b31f3('0x25e')](_0x4a71da[_0x5b31f3('0x11c2')]):_0x4a71da['toString']()});});}function _0x240f40(){return _0x12e20e(function(_0xa7992a,_0x165bb5){var _0x18f896=a0_0x2e7f;_0x3ba315[_0x18f896('0xab4')][_0x18f896('0x595')]({'userProfileId':_0x3c8402[_0x18f896('0x123f')]['userProfileId'],'name':_0x18f896('0xfed')})[_0x18f896('0x1376')][_0x18f896('0x21ad')](function(_0x11e20d){var _0xd72b0c=_0x18f896,_0x3f7f90=_0x11e20d&&_0x11e20d[_0xd72b0c('0x1b33')]?_0x11e20d['rows'][0x0]:null;_0xa7992a(_0x3f7f90);})[_0x18f896('0x1c1d')](function(_0x57f26b){_0x165bb5(_0x57f26b);});});}function _0x4b8488(){return _0x12e20e(function(_0x29fe46,_0x3918d9){var _0x21130d=a0_0x2e7f;return _0x5d9da7()[_0x21130d('0x21ad')](function(_0x34e7c8){var _0xd42a1d=_0x21130d;return _0x3c8402['items']=_0x34e7c8[_0xd42a1d('0x1b33')]?_0x34e7c8[_0xd42a1d('0x1b33')]:[],_0x9abef7[_0xd42a1d('0x21de')](_0xd42a1d('0x1bd8'))?_0x34e7c8:_0x3c8402[_0xd42a1d('0x26ad')]?_0x3c8402['section'][_0xd42a1d('0x80c')]?_0x34e7c8:_0x2f1c0e():null;})['then'](function(_0x1ef554){var _0x4f9ead=_0x21130d,_0x560aa2=_0x1ef554&&_0x1ef554[_0x4f9ead('0x1b33')]?_0x1ef554[_0x4f9ead('0x1b33')]:[];return _0x3c8402[_0x4f9ead('0x1e09')]=_0x86640f()[_0x4f9ead('0x26c3')](_0x560aa2,function(_0xcf76d9){var _0x13166d=_0x4f9ead;return _0x86640f()[_0x13166d('0x1d2e')](_0x3c8402[_0x13166d('0x1b9a')],{'id':_0x9abef7['hasRole']('admin')||_0x3c8402[_0x13166d('0x26ad')]['autoAssociation']?_0xcf76d9['id']:_0xcf76d9[_0x13166d('0x675')]});}),_0x3c8402[_0x4f9ead('0x91b')]=angular[_0x4f9ead('0xd75')](_0x3c8402[_0x4f9ead('0x1e09')]),_0x3c8402[_0x4f9ead('0x1b9a')]['forEach'](function(_0x333c61){var _0x1ab535=_0x4f9ead,_0xd8cdb2=_0x86640f()[_0x1ab535('0x1d2e')](_0x3c8402['allowedItems'],{'id':_0x333c61['id']});_0x9abef7[_0x1ab535('0x21de')](_0x1ab535('0x1bd8'))?_0x333c61[_0x1ab535('0x118b')]=!![]:_0x333c61[_0x1ab535('0x118b')]=typeof _0xd8cdb2!==_0x1ab535('0xddc')?!![]:![];}),_0x37bbb9();})[_0x21130d('0x21ad')](function(_0x1fcbfb){var _0x39f219=_0x21130d,_0x4f8947=_0x1fcbfb&&_0x1fcbfb[_0x39f219('0x1b33')]?_0x1fcbfb['rows']:[];_0x3c8402[_0x39f219('0x2629')]=_0x86640f()[_0x39f219('0x26c3')](_0x4f8947,function(_0x49e1b1){var _0x479879=_0x39f219,_0x1e4d09=_0x86640f()[_0x479879('0x1d2e')](_0x3c8402[_0x479879('0x1b9a')],{'id':_0x49e1b1['id']});return _0x1e4d09['penalty']=_0x49e1b1[_0x479879('0x1c2e')]?_0x479879('0x5c2')+_0x49e1b1['UserOpenchannelQueue'][_0x479879('0x1195')]:'',_0x1e4d09[_0x479879('0x201f')]=typeof _0x49e1b1[_0x479879('0x201f')]!=='undefined'?'<'+_0x49e1b1['internal']+'>':'',_0x1e4d09;}),_0x3c8402[_0x39f219('0x2584')]=angular['copy'](_0x3c8402['selectedItems']),_0x3c8402[_0x39f219('0x909')][_0x39f219('0x2629')]=_0x3c8402[_0x39f219('0x2629')],_0x3c8402[_0x39f219('0x909')][_0x39f219('0x1b9a')]=_0x86640f()[_0x39f219('0x1eab')](_0x3c8402[_0x39f219('0x1e09')],_0x3c8402[_0x39f219('0x909')][_0x39f219('0x2629')],'id'),_0x29fe46();})[_0x21130d('0x1c1d')](function(_0x314662){_0x3918d9(_0x314662);});});}function _0x2f1c0e(){return _0x12e20e(function(_0x4b7cf1,_0x2c121b){var _0x5233f3=a0_0x2e7f;return _0x3ba315[_0x5233f3('0x185e')][_0x5233f3('0x595')]({'sectionId':_0x3c8402['section']['id'],'nolimit':!![]})[_0x5233f3('0x1376')]['then'](function(_0x5b83bb){_0x4b7cf1(_0x5b83bb);})[_0x5233f3('0x1c1d')](function(_0x521609){_0x2c121b(_0x521609);});});}function _0x37bbb9(){return _0x12e20e(function(_0x32fdee,_0x2d89be){var _0x329681=a0_0x2e7f;return _0x3ba315[_0x329681('0x1c')][_0x329681('0x13ad')]({'id':_0x3c8402[_0x329681('0x1c')]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x329681('0x2402')})[_0x329681('0x1376')][_0x329681('0x21ad')](function(_0x599d24){_0x32fdee(_0x599d24);})[_0x329681('0x1c1d')](function(_0x1c7497){_0x2d89be(_0x1c7497);});});}function _0x5d9da7(){return _0x12e20e(function(_0x368c44,_0x5459c1){var _0x1e6587=a0_0x2e7f;return _0x3ba315[_0x1e6587('0x1775')]['get']({'fields':_0x1e6587('0x1eea'),'nolimit':!![],'role':_0x1e6587('0x2402')})['$promise'][_0x1e6587('0x21ad')](function(_0x53d400){_0x368c44(_0x53d400);})[_0x1e6587('0x1c1d')](function(_0x1fd8e7){_0x5459c1(_0x1fd8e7);});});}function _0x17273b(_0x45f5d1){return _0x12e20e(function(_0x24ec37,_0x415021){var _0xd698db=a0_0x2e7f;_0x86640f()[_0xd698db('0x23aa')](_0x45f5d1)?_0x24ec37():_0x3ba315[_0xd698db('0x1c')][_0xd698db('0x1116')]({'id':_0x3c8402[_0xd698db('0x1c')]['id'],'ids':_0x86640f()[_0xd698db('0x26c3')](_0x45f5d1,'id')})[_0xd698db('0x1376')][_0xd698db('0x21ad')](function(){_0x24ec37();})['catch'](function(_0xc108fa){_0x415021(_0xc108fa);});});}function _0x1a282e(_0x5f5356){return _0x12e20e(function(_0x2eea00,_0xac5657){var _0x3cecfd=a0_0x2e7f;_0x86640f()[_0x3cecfd('0x23aa')](_0x5f5356)?_0x2eea00():_0x3ba315['openchannelQueue'][_0x3cecfd('0x59e')]({'id':_0x3c8402['openchannelQueue']['id'],'ids':_0x86640f()[_0x3cecfd('0x26c3')](_0x5f5356,'id')})['$promise'][_0x3cecfd('0x21ad')](function(){_0x2eea00();})[_0x3cecfd('0x1c1d')](function(_0x34a40b){_0xac5657(_0x34a40b);});});}function _0x1f22cd(){var _0x3046d1=_0x1e2fe7,_0x18dd2a=_0x86640f()[_0x3046d1('0x1eab')](_0x3c8402['startingSelectedItems'],_0x3c8402[_0x3046d1('0x2629')],'id'),_0x13b5d2=_0x86640f()[_0x3046d1('0x1eab')](_0x3c8402['selectedItems'],_0x3c8402[_0x3046d1('0x2584')],'id');return _0x1a282e(_0x18dd2a)[_0x3046d1('0x21ad')](function(){return _0x17273b(_0x13b5d2);})[_0x3046d1('0x21ad')](function(){var _0x304861=_0x3046d1;_0x3c8402[_0x304861('0x1bb9')]=![],_0x3c8402[_0x304861('0x91b')]=angular[_0x304861('0xd75')](_0x3c8402['allowedItems']),_0x3c8402['startingSelectedItems']=angular[_0x304861('0xd75')](_0x3c8402['selectedItems']),_0x36b85a[_0x304861('0xdb1')]({'title':_0x304861('0x2804'),'msg':_0x304861('0x2239')});})[_0x3046d1('0x1c1d')](function(_0x1449cf){var _0x1372f7=_0x3046d1;_0x36b85a[_0x1372f7('0x2092')]({'title':_0x1449cf[_0x1372f7('0x209')]?_0x1372f7('0x22d')+_0x1449cf[_0x1372f7('0x209')]+'\x20-\x20'+_0x1449cf[_0x1372f7('0x1808')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x1449cf[_0x1372f7('0x209')]?JSON[_0x1372f7('0x25e')](_0x1449cf[_0x1372f7('0x11c2')]):_0x1449cf['toString']()});});}function _0x420825(){var _0x8948cf=_0x1e2fe7;_0x14b8a9[_0x8948cf('0x1c24')]();}}const _0xbbe5d1=_0x3e3e7e;_0x7c5a5f[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x1c'),_0x3877e3('0x13c1'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x7c5a5f(_0x484c04,_0x2022f1,_0x1583f2,_0x4aa8d2,_0x373d4b,_0x192fe4,_0x14bd0a,_0x45d768){var _0x689851=_0x3877e3,_0x1a3cfa=this;_0x1a3cfa[_0x689851('0x123f')]=_0x14bd0a[_0x689851('0x15ed')](),_0x1a3cfa['openchannelQueue']=_0x373d4b,_0x1a3cfa[_0x689851('0x5ed')]=_0x45d768,_0x1a3cfa[_0x689851('0x1b9a')]=[],_0x1a3cfa[_0x689851('0x1e09')]=[],_0x1a3cfa[_0x689851('0x2629')]=[],_0x1a3cfa[_0x689851('0x91b')]=[],_0x1a3cfa[_0x689851('0x2584')]=[],_0x1a3cfa[_0x689851('0x1bb9')]=![],_0x1a3cfa[_0x689851('0x909')]={'readOnly':!_0x1a3cfa[_0x689851('0x5ed')][_0x689851('0x6e2')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x689851('0x19fe'),'line1':_0x689851('0x19fe'),'line2':'','line3':'','labelAll':_0x192fe4['instant']('OPENCHANNEL.ALL_TEAMS'),'labelSelected':_0x192fe4['instant'](_0x689851('0x1e5c')),'transferCallback':function _0x5cfbb4(){var _0xf17573=_0x689851,_0x16209f=_0x86640f()[_0xf17573('0x1473')](_0x1a3cfa[_0xf17573('0x2584')],_0x1a3cfa[_0xf17573('0x2629')],'id');_0x1a3cfa['pendingChanges']=_0x86640f()['isEmpty'](_0x16209f)?![]:!![];}},_0x1a3cfa[_0x689851('0x1081')]=_0x39ac4e,_0x1a3cfa['saveTeams']=_0x353290,_0x1a3cfa[_0x689851('0x167')]=_0x558759;function _0x39ac4e(){var _0x3c7615=_0x689851;return _0x14bd0a['hasRole']('admin')?_0x4deaa3()['catch'](function(_0x1ce86f){var _0x469e2b=a0_0x2e7f;_0x1583f2[_0x469e2b('0x2092')]({'title':_0x1ce86f['status']?'API:'+_0x1ce86f[_0x469e2b('0x209')]+'\x20-\x20'+_0x1ce86f[_0x469e2b('0x1808')]:'SYSTEM:GET_TEAMS','msg':_0x1ce86f['status']?JSON['stringify'](_0x1ce86f['data']):_0x1ce86f[_0x469e2b('0x174f')]()});}):_0x4a06d8()['then'](function(_0x17b874){var _0x3b19d9=a0_0x2e7f;return _0x1a3cfa[_0x3b19d9('0x26ad')]=_0x17b874,_0x4deaa3();})[_0x3c7615('0x1c1d')](function(_0x579118){var _0x47e06b=_0x3c7615;_0x1583f2[_0x47e06b('0x2092')]({'title':_0x579118[_0x47e06b('0x209')]?_0x47e06b('0x22d')+_0x579118[_0x47e06b('0x209')]+_0x47e06b('0xa99')+_0x579118[_0x47e06b('0x1808')]:_0x47e06b('0x2479'),'msg':_0x579118[_0x47e06b('0x209')]?JSON[_0x47e06b('0x25e')](_0x579118[_0x47e06b('0x11c2')]):_0x579118[_0x47e06b('0x174f')]()});});}function _0x4a06d8(){return _0x2022f1(function(_0x318c50,_0x175737){var _0x67ae23=a0_0x2e7f;_0x4aa8d2[_0x67ae23('0xab4')][_0x67ae23('0x595')]({'userProfileId':_0x1a3cfa[_0x67ae23('0x123f')][_0x67ae23('0x1618')],'name':_0x67ae23('0xa27')})['$promise'][_0x67ae23('0x21ad')](function(_0x3c47a8){var _0x353141=_0x67ae23,_0x19dc10=_0x3c47a8&&_0x3c47a8['rows']?_0x3c47a8[_0x353141('0x1b33')][0x0]:null;_0x318c50(_0x19dc10);})['catch'](function(_0x5f5c91){_0x175737(_0x5f5c91);});});}function _0x4deaa3(){return _0x2022f1(function(_0x227c6a,_0xcf086f){var _0x17631f=a0_0x2e7f;return _0x35b651()[_0x17631f('0x21ad')](function(_0x3b5163){var _0x145bf6=_0x17631f;return _0x1a3cfa[_0x145bf6('0x1b9a')]=_0x3b5163[_0x145bf6('0x1b33')]?_0x3b5163[_0x145bf6('0x1b33')]:[],_0x14bd0a[_0x145bf6('0x21de')](_0x145bf6('0x1bd8'))?_0x3b5163:_0x1a3cfa[_0x145bf6('0x26ad')]?_0x1a3cfa[_0x145bf6('0x26ad')][_0x145bf6('0x80c')]?_0x3b5163:_0x39ecbc():null;})[_0x17631f('0x21ad')](function(_0x225afc){var _0x54af07=_0x17631f,_0x59bd11=_0x225afc&&_0x225afc['rows']?_0x225afc[_0x54af07('0x1b33')]:[];return _0x1a3cfa['allowedItems']=_0x86640f()[_0x54af07('0x26c3')](_0x59bd11,function(_0x195e33){var _0x400bf5=_0x54af07;return _0x86640f()['find'](_0x1a3cfa[_0x400bf5('0x1b9a')],{'id':_0x14bd0a[_0x400bf5('0x21de')](_0x400bf5('0x1bd8'))||_0x1a3cfa['section'][_0x400bf5('0x80c')]?_0x195e33['id']:_0x195e33[_0x400bf5('0x675')]});}),_0x1a3cfa[_0x54af07('0x1b9a')][_0x54af07('0x1a52')](function(_0x436eb0){var _0x20c589=_0x54af07,_0xaba722=_0x86640f()[_0x20c589('0x1d2e')](_0x1a3cfa[_0x20c589('0x1e09')],{'id':_0x436eb0['id']});_0x14bd0a[_0x20c589('0x21de')]('admin')?_0x436eb0['isValid']=!![]:_0x436eb0[_0x20c589('0x118b')]=typeof _0xaba722!==_0x20c589('0xddc')?!![]:![];}),_0x211387();})[_0x17631f('0x21ad')](function(_0x511c2f){var _0xe4dd7c=_0x17631f,_0x548407=_0x511c2f&&_0x511c2f[_0xe4dd7c('0x1b33')]?_0x511c2f[_0xe4dd7c('0x1b33')]:[];_0x1a3cfa[_0xe4dd7c('0x2629')]=_0x86640f()[_0xe4dd7c('0x26c3')](_0x548407,function(_0x2da4ea){var _0x235e6c=_0xe4dd7c;return _0x86640f()['find'](_0x1a3cfa[_0x235e6c('0x1b9a')],{'id':_0x2da4ea['id']});}),_0x1a3cfa[_0xe4dd7c('0x2584')]=angular[_0xe4dd7c('0xd75')](_0x1a3cfa[_0xe4dd7c('0x2629')]),_0x1a3cfa['dualMultiselectOptions'][_0xe4dd7c('0x2629')]=_0x1a3cfa[_0xe4dd7c('0x2629')],_0x1a3cfa[_0xe4dd7c('0x909')][_0xe4dd7c('0x1b9a')]=_0x86640f()['differenceBy'](_0x1a3cfa[_0xe4dd7c('0x1e09')],_0x1a3cfa[_0xe4dd7c('0x909')][_0xe4dd7c('0x2629')],'id'),_0x227c6a();})[_0x17631f('0x1c1d')](function(_0x5cc35f){_0xcf086f(_0x5cc35f);});});}function _0x39ecbc(){return _0x2022f1(function(_0x47f95c,_0xa5e5eb){var _0x69fde3=a0_0x2e7f;return _0x4aa8d2[_0x69fde3('0x185e')][_0x69fde3('0x595')]({'sectionId':_0x1a3cfa[_0x69fde3('0x26ad')]['id'],'nolimit':!![]})[_0x69fde3('0x1376')]['then'](function(_0x41b378){_0x47f95c(_0x41b378);})[_0x69fde3('0x1c1d')](function(_0x44033b){_0xa5e5eb(_0x44033b);});});}function _0x211387(){return _0x2022f1(function(_0x23e90a,_0x435ae2){var _0x479d57=a0_0x2e7f;return _0x4aa8d2['openchannelQueue'][_0x479d57('0x25df')]({'id':_0x1a3cfa[_0x479d57('0x1c')]['id'],'fields':_0x479d57('0x1aa8'),'nolimit':!![]})[_0x479d57('0x1376')][_0x479d57('0x21ad')](function(_0x2bb952){_0x23e90a(_0x2bb952);})['catch'](function(_0x2614c1){_0x435ae2(_0x2614c1);});});}function _0x35b651(){return _0x2022f1(function(_0x12433c,_0x1f4dbb){var _0x2852c3=a0_0x2e7f;return _0x4aa8d2[_0x2852c3('0x1a9c')][_0x2852c3('0x595')]({'fields':_0x2852c3('0x1aa8'),'nolimit':!![]})[_0x2852c3('0x1376')][_0x2852c3('0x21ad')](function(_0x24f5ba){_0x12433c(_0x24f5ba);})[_0x2852c3('0x1c1d')](function(_0x527199){_0x1f4dbb(_0x527199);});});}function _0x4ab44b(_0x153cd9){return _0x2022f1(function(_0x179548,_0x2c13b6){var _0x39e510=a0_0x2e7f;_0x86640f()[_0x39e510('0x23aa')](_0x153cd9)?_0x179548():_0x4aa8d2[_0x39e510('0x1c')][_0x39e510('0x36c')]({'id':_0x1a3cfa[_0x39e510('0x1c')]['id'],'ids':_0x86640f()[_0x39e510('0x26c3')](_0x153cd9,'id')})['$promise'][_0x39e510('0x21ad')](function(){_0x179548();})[_0x39e510('0x1c1d')](function(_0x299279){_0x2c13b6(_0x299279);});});}function _0x1d356e(_0x42536c){return _0x2022f1(function(_0x30a720,_0x302a0b){var _0x6c818f=a0_0x2e7f;_0x86640f()[_0x6c818f('0x23aa')](_0x42536c)?_0x30a720():_0x4aa8d2[_0x6c818f('0x1c')][_0x6c818f('0xbc7')]({'id':_0x1a3cfa[_0x6c818f('0x1c')]['id'],'ids':_0x86640f()['map'](_0x42536c,'id')})[_0x6c818f('0x1376')]['then'](function(){_0x30a720();})[_0x6c818f('0x1c1d')](function(_0x2026d1){_0x302a0b(_0x2026d1);});});}function _0x353290(){var _0x3defc2=_0x689851,_0x15673c=_0x86640f()[_0x3defc2('0x1eab')](_0x1a3cfa['startingSelectedItems'],_0x1a3cfa[_0x3defc2('0x2629')],'id'),_0x20980=_0x86640f()['differenceBy'](_0x1a3cfa['selectedItems'],_0x1a3cfa[_0x3defc2('0x2584')],'id');return _0x1d356e(_0x15673c)[_0x3defc2('0x21ad')](function(){return _0x4ab44b(_0x20980);})['then'](function(){var _0x2ad7d6=_0x3defc2;_0x1a3cfa[_0x2ad7d6('0x1bb9')]=![],_0x1a3cfa[_0x2ad7d6('0x91b')]=angular[_0x2ad7d6('0xd75')](_0x1a3cfa['allowedItems']),_0x1a3cfa[_0x2ad7d6('0x2584')]=angular[_0x2ad7d6('0xd75')](_0x1a3cfa[_0x2ad7d6('0x2629')]),_0x1583f2[_0x2ad7d6('0xdb1')]({'title':_0x2ad7d6('0x2804'),'msg':_0x2ad7d6('0x4c8')});})['catch'](function(_0x5393f5){var _0x2a95d2=_0x3defc2;_0x1583f2[_0x2a95d2('0x2092')]({'title':_0x5393f5['status']?_0x2a95d2('0x22d')+_0x5393f5['status']+_0x2a95d2('0xa99')+_0x5393f5[_0x2a95d2('0x1808')]:_0x2a95d2('0x1dd7'),'msg':_0x5393f5['status']?JSON[_0x2a95d2('0x25e')](_0x5393f5[_0x2a95d2('0x11c2')]):_0x5393f5['toString']()});});}function _0x558759(){var _0x294068=_0x689851;_0x484c04[_0x294068('0x1c24')]();}}const _0x1e6791=_0x7c5a5f,_0x582cf6=_0x398308['p']+_0x3877e3('0x1257');_0x10ddff['$inject']=['$state','$location',_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x13c1'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x1c'),'userProfileSection'];function _0x10ddff(_0x21b2de,_0x3beb7f,_0x4dadcb,_0xa6391f,_0x27eb93,_0x5c3292,_0x4e9738,_0x1bb36e,_0x4c1742,_0x1b3705,_0x193bb9,_0x2d6c20){var _0x4fe997=_0x3877e3,_0x217778=this;_0x217778[_0x4fe997('0x123f')]=_0x1b3705['getCurrentUser'](),_0x217778['license']=_0x5c3292,_0x217778[_0x4fe997('0x21e')]=_0x4e9738,_0x217778['passwordPattern']=_0x217778[_0x4fe997('0x21e')][_0x4fe997('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x217778[_0x4fe997('0x626')]=_0x3beb7f[_0x4fe997('0x1162')]()+_0x4fe997('0x22a9')+_0x3beb7f['host'](),_0x217778[_0x4fe997('0x1c')]=_0x193bb9||_0x21b2de[_0x4fe997('0x171b')][_0x4fe997('0x1c')]||{},_0x217778['userProfileSection']=_0x2d6c20&&_0x2d6c20[_0x4fe997('0x205f')]==0x1?_0x2d6c20[_0x4fe997('0x1b33')][0x0]:null,_0x217778[_0x4fe997('0x5ed')]=_0x1b3705['parseCrudPermissions'](_0x217778[_0x4fe997('0xab4')]?_0x217778[_0x4fe997('0xab4')][_0x4fe997('0x5ed')]:null),_0x217778['hasModulePermissions']={},_0x217778[_0x4fe997('0x302')]=_0x21b2de[_0x4fe997('0x171b')][_0x4fe997('0x12e1')]||0x0,_0x217778['teamadddialog']=_0xdb82b0,_0x217778[_0x4fe997('0x1297')]=_0x3b60e2,_0x217778[_0x4fe997('0x95b')]=_0x4c1742[_0x4fe997('0x231c')],_0x217778['gotoOpenchannelQueues']=_0x39892c,_0x217778['saveOpenchannelQueue']=_0x1e6fdf;function _0xdb82b0(_0x10cb85,_0x4b9316){var _0x5cf967=_0x4fe997;_0x4dadcb[_0x5cf967('0x853')]({'controller':'OpenchannelQueueteamaddController','controllerAs':'vm','templateUrl':_0x582cf6,'parent':angular[_0x5cf967('0x1676')](_0xa6391f[_0x5cf967('0x2452')]),'targetEvent':_0x4b9316,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x10cb85,'openchannelQueues':_0x217778[_0x5cf967('0x1a0d')]?_0x217778[_0x5cf967('0x1a0d')][_0x5cf967('0x1b33')]:[],'crudPermissions':_0x217778[_0x5cf967('0x5ed')]}});}function _0x3b60e2(_0x387394,_0x4d3618){var _0x58caa2=_0x4fe997;_0x4dadcb[_0x58caa2('0x853')]({'controller':_0x58caa2('0x2415'),'controllerAs':'vm','templateUrl':_0x33a871,'parent':angular['element'](_0xa6391f['body']),'targetEvent':_0x4d3618,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x387394,'openchannelQueues':_0x217778[_0x58caa2('0x1a0d')]?_0x217778[_0x58caa2('0x1a0d')][_0x58caa2('0x1b33')]:[],'crudPermissions':_0x217778[_0x58caa2('0x5ed')],'realtime':![]}});}function _0x39892c(){var _0xeb3376=_0x4fe997;_0x21b2de['go']('app.openchannel.openchannelQueues',{},{'reload':_0xeb3376('0x15d9')});}function _0x1e6fdf(){var _0x19d46b=_0x4fe997;_0x1bb36e[_0x19d46b('0x1c')][_0x19d46b('0x5ef')]({'id':_0x217778['openchannelQueue']['id']},_0x217778['openchannelQueue'])[_0x19d46b('0x1376')][_0x19d46b('0x21ad')](function(){var _0x21c182=_0x19d46b;_0x4c1742[_0x21c182('0xdb1')]({'title':'OpenchannelQueue\x20updated!','msg':_0x217778[_0x21c182('0x1c')][_0x21c182('0x19fe')]?_0x217778[_0x21c182('0x1c')][_0x21c182('0x19fe')]+'\x20has\x20been\x20updated!':''});})[_0x19d46b('0x1c1d')](function(_0x149d9e){var _0x19c3a4=_0x19d46b;_0x4c1742[_0x19c3a4('0x2092')]({'title':_0x149d9e[_0x19c3a4('0x209')]?_0x19c3a4('0x22d')+_0x149d9e['status']+_0x19c3a4('0xa99')+_0x149d9e[_0x19c3a4('0x1808')]:'SYSTEM:GETopenchannelQueue','msg':_0x149d9e[_0x19c3a4('0x11c2')]?JSON[_0x19c3a4('0x25e')](_0x149d9e['data']):_0x149d9e[_0x19c3a4('0x174f')]()});});}}const _0x27e192=_0x10ddff;_0x2d2020[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),'$mdSidenav',_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x13c1'),_0x3877e3('0x1a0d'),'userProfile',_0x3877e3('0xab4'),_0x3877e3('0xccd'),'msUtils','toasty',_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x2d2020(_0x2e2115,_0x5d18b0,_0x50654a,_0x5a8bff,_0x33cdc9,_0x5cb64d,_0x67f5c1,_0xefbfe,_0x1fdc1d,_0x3a3aef,_0x1d553b,_0x221897,_0x144512,_0x3708ef,_0x27461a,_0x4a1087,_0x32c9b0){var _0x510b92=_0x3877e3,_0x13c998=this;_0x13c998['license']=_0x4a1087,_0x13c998[_0x510b92('0x21e')]=_0x32c9b0,_0x13c998[_0x510b92('0x123f')]=_0x27461a[_0x510b92('0x15ed')](),_0x13c998[_0x510b92('0x1a0d')]=_0x1fdc1d||{'count':0x0,'rows':[]},_0x13c998['userProfile']=_0x3a3aef,_0x13c998['userProfileSection']=_0x1d553b&&_0x1d553b[_0x510b92('0x205f')]==0x1?_0x1d553b[_0x510b92('0x1b33')][0x0]:null,_0x13c998['crudPermissions']=_0x27461a['parseCrudPermissions'](_0x13c998[_0x510b92('0xab4')]?_0x13c998[_0x510b92('0xab4')][_0x510b92('0x5ed')]:null),_0x13c998['table']='openchannelQueues',_0x13c998['listOrder']='',_0x13c998[_0x510b92('0x18cf')]=null,_0x13c998[_0x510b92('0xcf6')]=[],_0x13c998[_0x510b92('0x77')]={'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x510b92('0x33'),'channel':_0x510b92('0xac9'),'limit':0xa,'page':0x1},_0x13c998[_0x510b92('0x556')]=_0x86640f()[_0x510b92('0xcde')]([{'option':_0x510b92('0x5a0'),'value':_0x510b92('0x11a3')},{'option':_0x510b92('0x1106'),'value':_0x510b92('0xa6b')}],function(_0xf57816){var _0x270e41=_0x510b92;return _0x86640f()[_0x270e41('0x16e4')](_0xf57816['value'],new RegExp('\x27','g'),'');}),_0x13c998[_0x510b92('0x1c88')]=_0x3c71b8,_0x13c998[_0x510b92('0x1111')]=_0x4a1fbb,_0x13c998[_0x510b92('0x1297')]=_0x198a73,_0x13c998[_0x510b92('0x2593')]=_0x255192,_0x13c998['gotorealtimegoto']=_0x1c6193,_0x13c998[_0x510b92('0xdb1')]=_0x5186ff,_0x13c998['getOpenchannelQueues']=_0x45cbfd,_0x13c998[_0x510b92('0x1a1d')]=_0x311450,_0x13c998['deleteOpenchannelQueue']=_0xbc2d19,_0x13c998[_0x510b92('0x3d7')]=_0x235c2a,_0x13c998[_0x510b92('0x1a0f')]=_0x3d3a96,_0x13c998['deselectOpenchannelQueues']=_0x21080f,_0x13c998[_0x510b92('0x7b7')]=_0x5842d8;function _0x3c71b8(_0x490b02){var _0x299d08=_0x510b92;_0x50654a['go'](_0x299d08('0x2073'),{'id':_0x490b02['id'],'openchannelQueue':_0x490b02,'crudPermissions':_0x13c998[_0x299d08('0x5ed')]});}function _0x4a1fbb(_0xd34b45,_0x47dd4d){var _0x37c98d=_0x510b92;_0x33cdc9[_0x37c98d('0x853')]({'controller':_0x37c98d('0x14a'),'controllerAs':'vm','templateUrl':_0x582cf6,'parent':angular[_0x37c98d('0x1676')](_0x5cb64d['body']),'targetEvent':_0x47dd4d,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0xd34b45,'openchannelQueues':_0x13c998[_0x37c98d('0x1a0d')]?_0x13c998['openchannelQueues'][_0x37c98d('0x1b33')]:[],'crudPermissions':_0x13c998[_0x37c98d('0x5ed')]}});}function _0x198a73(_0x50dfdf,_0x43c575){var _0x5c908f=_0x510b92;_0x33cdc9[_0x5c908f('0x853')]({'controller':_0x5c908f('0x2415'),'controllerAs':'vm','templateUrl':_0x33a871,'parent':angular['element'](_0x5cb64d[_0x5c908f('0x2452')]),'targetEvent':_0x43c575,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x50dfdf,'openchannelQueues':_0x13c998[_0x5c908f('0x1a0d')]?_0x13c998[_0x5c908f('0x1a0d')][_0x5c908f('0x1b33')]:[],'crudPermissions':_0x13c998['crudPermissions'],'realtime':![]}});}function _0x255192(_0x2f43d1,_0x8bda97){var _0x5c4799=_0x510b92,_0x502584=_0x33cdc9[_0x5c4799('0xa33')]()[_0x5c4799('0x4b4')](_0x5c4799('0x25b6')+_0x86640f()['startCase'](_0x5c4799('0x1c'))+'?')['htmlContent'](_0x5c4799('0x622')+(_0x2f43d1['name']||'openchannelQueue')+_0x5c4799('0x2135')+_0x5c4799('0x25e0'))[_0x5c4799('0x7a7')]('delete\x20openchannelQueue')[_0x5c4799('0x1e6d')](_0x8bda97)['ok']('OK')['cancel'](_0x5c4799('0x284b'));_0x33cdc9[_0x5c4799('0x853')](_0x502584)['then'](function(){_0xbc2d19(_0x2f43d1);},function(){var _0x4bb7dc=_0x5c4799;console['log'](_0x4bb7dc('0x284b'));});}function _0x1c6193(){var _0x69bc83=_0x510b92;if(_0x27461a[_0x69bc83('0x21de')](_0x69bc83('0x1bd8')))_0x50654a['go']('app.openchannel.realtime.queues',{});else return _0x221897[_0x69bc83('0xab4')][_0x69bc83('0x595')]({'userProfileId':_0x27461a[_0x69bc83('0x15ed')]()[_0x69bc83('0x1618')],'sectionId':0x32a})[_0x69bc83('0x1376')][_0x69bc83('0x21ad')](function(_0x5debf7){var _0x21e092=_0x69bc83,_0x4198c5=_0x5debf7&&_0x5debf7[_0x21e092('0x1b33')]?_0x5debf7[_0x21e092('0x1b33')][0x0]:null;_0x4198c5&&_0x4198c5['enabled']?_0x50654a['go'](_0x21e092('0xea9'),{}):_0x3708ef[_0x21e092('0x231c')]({'title':_0xefbfe[_0x21e092('0x183e')](_0x21e092('0x1adb')),'msg':_0xefbfe[_0x21e092('0x183e')](_0x21e092('0x764'))});})[_0x69bc83('0x1c1d')](function(_0x51169d){var _0x143e36=_0x69bc83;_0x3708ef[_0x143e36('0x2092')]({'title':_0x51169d[_0x143e36('0x209')]?_0x143e36('0x22d')+_0x51169d[_0x143e36('0x209')]+_0x143e36('0xa99')+_0x51169d[_0x143e36('0x1808')]:_0x143e36('0xb8'),'msg':_0x51169d['status']?JSON[_0x143e36('0x25e')](_0x51169d[_0x143e36('0x11c2')]):_0x51169d[_0x143e36('0x174f')]()});});}var _0xb91d68=!![],_0x4af79a=0x1;_0x2e2115[_0x510b92('0x10e8')]('vm.query.filter',function(_0x2eed94,_0x5f54e3){var _0x505ce2=_0x510b92;_0xb91d68?_0x67f5c1(function(){_0xb91d68=![];}):(!_0x5f54e3&&(_0x4af79a=_0x13c998[_0x505ce2('0x77')][_0x505ce2('0x2376')]),_0x2eed94!==_0x5f54e3&&(_0x13c998['query'][_0x505ce2('0x2376')]=0x1),!_0x2eed94&&(_0x13c998['query']['page']=_0x4af79a),_0x13c998[_0x505ce2('0x511')]());});function _0x5186ff(_0xe71c99){var _0x2d5432=_0x510b92;_0x13c998[_0x2d5432('0x1a0d')]=_0xe71c99||{'count':0x0,'rows':[]};}function _0x45cbfd(){var _0x297e15=_0x510b92;_0x13c998[_0x297e15('0x77')][_0x297e15('0x15a5')]=(_0x13c998[_0x297e15('0x77')][_0x297e15('0x2376')]-0x1)*_0x13c998[_0x297e15('0x77')][_0x297e15('0x1f4a')],_0x27461a[_0x297e15('0x21de')](_0x297e15('0x1bd8'))?_0x13c998[_0x297e15('0x71b')]=_0x221897['openchannelQueue'][_0x297e15('0x595')](_0x13c998[_0x297e15('0x77')],_0x5186ff)[_0x297e15('0x1376')]:(_0x13c998[_0x297e15('0x77')]['id']=_0x13c998['userProfile']['id'],_0x13c998[_0x297e15('0x77')][_0x297e15('0x26ad')]=_0x297e15('0xb6c'),_0x13c998[_0x297e15('0x71b')]=_0x221897['userProfile'][_0x297e15('0x321')](_0x13c998[_0x297e15('0x77')],_0x5186ff)[_0x297e15('0x1376')]);}function _0x311450(_0x44e387,_0x34d0a2){var _0x1ddb53=_0x510b92;_0x33cdc9[_0x1ddb53('0x853')]({'controller':'CreateOrEditOpenchannelQueueDialogController','controllerAs':'vm','templateUrl':_0x56e95c,'parent':angular[_0x1ddb53('0x1676')](_0x5cb64d[_0x1ddb53('0x2452')]),'targetEvent':_0x44e387,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x34d0a2,'openchannelQueues':_0x13c998[_0x1ddb53('0x1a0d')][_0x1ddb53('0x1b33')],'license':_0x13c998[_0x1ddb53('0x2ff')],'setting':_0x13c998[_0x1ddb53('0x21e')],'crudPermissions':_0x13c998[_0x1ddb53('0x5ed')]}});}function _0xbc2d19(_0x18fd9e){var _0x6df427=_0x510b92;_0x221897[_0x6df427('0x1c')]['delete']({'id':_0x18fd9e['id']})[_0x6df427('0x1376')][_0x6df427('0x21ad')](function(){var _0x198574=_0x6df427;_0x86640f()[_0x198574('0x16a2')](_0x13c998['openchannelQueues']['rows'],{'id':_0x18fd9e['id']}),_0x13c998[_0x198574('0x1a0d')][_0x198574('0x205f')]-=0x1,!_0x13c998[_0x198574('0x1a0d')]['rows'][_0x198574('0x577')]&&_0x13c998[_0x198574('0x511')](),_0x3708ef[_0x198574('0xdb1')]({'title':_0x86640f()[_0x198574('0x2159')](_0x198574('0x182a'))+_0x198574('0xe64'),'msg':_0x18fd9e[_0x198574('0x19fe')]?_0x18fd9e[_0x198574('0x19fe')]+_0x198574('0xb4a'):''});})[_0x6df427('0x1c1d')](function(_0x3e2979){var _0x5a8db4=_0x6df427;if(_0x3e2979[_0x5a8db4('0x11c2')]&&_0x3e2979[_0x5a8db4('0x11c2')][_0x5a8db4('0x1a69')]&&_0x3e2979['data']['errors'][_0x5a8db4('0x577')]){_0x13c998[_0x5a8db4('0x1a69')]=_0x3e2979[_0x5a8db4('0x11c2')][_0x5a8db4('0x1a69')]||[{'message':_0x3e2979[_0x5a8db4('0x174f')](),'type':_0x5a8db4('0x20dc')}];for(var _0xcff648=0x0;_0xcff648<_0x3e2979[_0x5a8db4('0x11c2')][_0x5a8db4('0x1a69')][_0x5a8db4('0x577')];_0xcff648++){_0x3708ef[_0x5a8db4('0x2092')]({'title':_0x3e2979[_0x5a8db4('0x11c2')][_0x5a8db4('0x1a69')][_0xcff648][_0x5a8db4('0x7fa')],'msg':_0x3e2979[_0x5a8db4('0x11c2')]['errors'][_0xcff648][_0x5a8db4('0x1224')]});}}else _0x3708ef[_0x5a8db4('0x2092')]({'title':_0x3e2979[_0x5a8db4('0x209')]?_0x5a8db4('0x22d')+_0x3e2979['status']+_0x5a8db4('0xa99')+_0x3e2979['statusText']:_0x5a8db4('0x20dc'),'msg':_0x3e2979[_0x5a8db4('0x11c2')]?JSON[_0x5a8db4('0x25e')](_0x3e2979[_0x5a8db4('0x11c2')][_0x5a8db4('0x1224')]):_0x3e2979[_0x5a8db4('0x1224')]||_0x3e2979[_0x5a8db4('0x174f')]()});});}function _0x235c2a(){var _0x36c72b=_0x510b92,_0x26dd45=angular[_0x36c72b('0xd75')](_0x13c998[_0x36c72b('0xcf6')]);return _0x13c998['selectedOpenchannelQueues']=[],_0x26dd45;}function _0x3d3a96(_0x233921){var _0x48a584=_0x510b92,_0x28c531=_0x33cdc9['confirm']()[_0x48a584('0x4b4')](_0x48a584('0x9f1'))[_0x48a584('0x276b')](_0x48a584('0x622')+_0x13c998[_0x48a584('0xcf6')]['length']+'\x20selected'+_0x48a584('0x25e0'))[_0x48a584('0x7a7')](_0x48a584('0x2251'))['targetEvent'](_0x233921)['ok']('OK')[_0x48a584('0x3b5')]('CANCEL');_0x33cdc9['show'](_0x28c531)[_0x48a584('0x21ad')](function(){var _0x4064e8=_0x48a584;_0x13c998[_0x4064e8('0xcf6')][_0x4064e8('0x1a52')](function(_0x335845){_0xbc2d19(_0x335845);}),_0x13c998[_0x4064e8('0xcf6')]=[];});}function _0x21080f(){_0x13c998['selectedOpenchannelQueues']=[];}function _0x5842d8(){var _0x22882e=_0x510b92;_0x13c998[_0x22882e('0xcf6')]=_0x13c998[_0x22882e('0x1a0d')]['rows'];}}const _0xd5cbe1=_0x2d2020;_0x179cb1[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c'),_0x3877e3('0x972')];function _0x179cb1(_0x38bcd9,_0x447f2c){var _0xd2fb19=_0x3877e3;_0x38bcd9['state']('app.openchannel',{'abstract':!![],'url':_0xd2fb19('0xd03')})[_0xd2fb19('0x27e')](_0xd2fb19('0x15d9'),{'url':_0xd2fb19('0x298'),'views':{'content@app':{'templateUrl':_0x5466d3,'controller':_0xd2fb19('0x15f3')}},'resolve':{'openchannelQueues':[_0xd2fb19('0x354'),_0xd2fb19('0x15bc'),function _0x237e52(_0x28cfef,_0x53554b){var _0x2f7047=_0xd2fb19;return _0x53554b[_0x2f7047('0x21de')](_0x2f7047('0x1bd8'))?_0x28cfef[_0x2f7047('0x8ac')](_0x2f7047('0x251f'),{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':'-updatedAt','channel':'openchannel','limit':0xa,'offset':0x0}):_0x28cfef[_0x2f7047('0x8ac')](_0x2f7047('0x52f'),{'id':_0x53554b[_0x2f7047('0x15ed')]()['userProfileId'],'section':_0x2f7047('0xb6c'),'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x2f7047('0x33'),'channel':_0x2f7047('0xac9'),'limit':0xa,'offset':0x0});}],'userProfile':[_0xd2fb19('0x354'),'Auth',function _0x1e6603(_0x32edda,_0x513e90){var _0x462166=_0xd2fb19;return _0x513e90[_0x462166('0x21de')]('admin')?null:_0x32edda[_0x462166('0x8ac')](_0x462166('0x1e1d'),{'fields':_0x462166('0x1a00'),'id':_0x513e90[_0x462166('0x15ed')]()[_0x462166('0x1618')]});}],'userProfileSection':[_0xd2fb19('0x354'),_0xd2fb19('0x15bc'),function _0x424496(_0x128943,_0x502059){var _0xbe6054=_0xd2fb19;return _0x502059[_0xbe6054('0x21de')](_0xbe6054('0x1bd8'))?null:_0x128943[_0xbe6054('0x8ac')](_0xbe6054('0x222f'),{'fields':_0xbe6054('0x1852'),'userProfileId':_0x502059[_0xbe6054('0x15ed')]()[_0xbe6054('0x1618')],'sectionId':0x321});}]},'authenticate':!![],'permissionId':0x321,'bodyClass':_0xd2fb19('0xac9')})[_0xd2fb19('0x27e')](_0xd2fb19('0x2073'),{'url':_0xd2fb19('0x17f5'),'params':{'openchannelQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2395cf,'controller':_0xd2fb19('0x5d0')}},'resolve':{'openchannelQueue':[_0xd2fb19('0x354'),_0xd2fb19('0x114e'),function _0x150cdc(_0x2c5051,_0xbdb29a){var _0x268f9f=_0xd2fb19;return _0x2c5051[_0x268f9f('0x8ac')]('openchannelQueue@get',{'fields':_0x268f9f('0x87f'),'id':_0xbdb29a['id']});}],'userProfileSection':[_0xd2fb19('0x354'),_0xd2fb19('0x15bc'),function _0x1f36dc(_0x4bdf12,_0x4649af){var _0x57f9b7=_0xd2fb19;return _0x4bdf12['resolve'](_0x57f9b7('0x222f'),{'fields':_0x57f9b7('0x1852'),'userProfileId':_0x4649af[_0x57f9b7('0x15ed')]()[_0x57f9b7('0x1618')],'sectionId':0x321});}]},'authenticate':!![],'permissionId':0x321,'bodyClass':_0xd2fb19('0xac9')})[_0xd2fb19('0x27e')](_0xd2fb19('0x17a3'),{'url':_0xd2fb19('0x571'),'views':{'content@app':{'templateUrl':_0x11e682,'controller':_0xd2fb19('0x2514')}},'resolve':{'openchannelAccounts':['apiResolver',_0xd2fb19('0x15bc'),function _0x6dc3ae(_0x4de804,_0x57d9b1){var _0x2d6ffd=_0xd2fb19;return _0x57d9b1['hasRole'](_0x2d6ffd('0x1bd8'))?_0x4de804['resolve'](_0x2d6ffd('0x2315'),{'fields':'createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUri,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','sort':_0x2d6ffd('0x33'),'limit':0xa,'offset':0x0}):_0x4de804['resolve']('userProfile@getResources',{'id':_0x57d9b1['getCurrentUser']()[_0x2d6ffd('0x1618')],'section':_0x2d6ffd('0x194d'),'fields':_0x2d6ffd('0x227f'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0xd2fb19('0x354'),'Auth',function _0x215527(_0x48ee77,_0x364625){var _0x5a9f79=_0xd2fb19;return _0x364625['hasRole'](_0x5a9f79('0x1bd8'))?null:_0x48ee77[_0x5a9f79('0x8ac')](_0x5a9f79('0x1e1d'),{'fields':_0x5a9f79('0x1a00'),'id':_0x364625['getCurrentUser']()[_0x5a9f79('0x1618')]});}],'userProfileSection':[_0xd2fb19('0x354'),'Auth',function _0x200f7e(_0x589c04,_0x3169ee){var _0x235bdc=_0xd2fb19;return _0x3169ee[_0x235bdc('0x21de')](_0x235bdc('0x1bd8'))?null:_0x589c04['resolve']('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3169ee[_0x235bdc('0x15ed')]()[_0x235bdc('0x1618')],'sectionId':0x322});}]},'authenticate':!![],'permissionId':0x322,'bodyClass':'openchannel'})['state'](_0xd2fb19('0x9de'),{'url':'/:id?tab','params':{'openchannelAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x37f04f,'controller':_0xd2fb19('0x1093')}},'resolve':{'openchannelAccount':['apiResolver',_0xd2fb19('0x114e'),function _0xd8de99(_0x39b1ad,_0x57f8fd){var _0x467084=_0xd2fb19;return _0x39b1ad['resolve'](_0x467084('0x2315'),{'fields':'createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUri,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','id':_0x57f8fd['id']});}],'userProfileSection':['apiResolver',_0xd2fb19('0x15bc'),function _0x20d0b7(_0x40339c,_0x1bd9fa){var _0x2c8859=_0xd2fb19;return _0x40339c[_0x2c8859('0x8ac')](_0x2c8859('0x222f'),{'fields':_0x2c8859('0x1852'),'userProfileId':_0x1bd9fa[_0x2c8859('0x15ed')]()[_0x2c8859('0x1618')],'sectionId':0x322});}]},'authenticate':!![],'permissionId':0x322,'bodyClass':_0xd2fb19('0xac9')}),_0x447f2c['addPart'](_0xd2fb19('0x273b'));}angular[_0x3877e3('0x20d5')]('app.openchannel',['ngCsv',_0x3877e3('0x1b0'),_0x3877e3('0xca'),'flow','mdColorPicker',_0x3877e3('0x25c7'),_0x3877e3('0x1182'),_0x3877e3('0x264a'),_0x3877e3('0x19'),_0x3877e3('0x335'),_0x3877e3('0xc90'),_0x3877e3('0x56d'),_0x3877e3('0xe2f'),_0x3877e3('0x10c'),'angular-cron-jobs',_0x3877e3('0xe39'),'angularMaterialFormBuilder',_0x3877e3('0x27ba'),_0x3877e3('0x9e0'),'angular.filter',_0x3877e3('0x10ea')])[_0x3877e3('0x13')](_0x179cb1)[_0x3877e3('0x1d5a')]('CreateOrEditOpenchannelAccountDialogController',_0x5dc6c0)[_0x3877e3('0x1d5a')](_0x3877e3('0x129f'),_0x4ea314)[_0x3877e3('0x1d5a')](_0x3877e3('0x206d'),_0xefcdb4)[_0x3877e3('0x1d5a')](_0x3877e3('0xb21'),_0x372da3)[_0x3877e3('0x1d5a')](_0x3877e3('0x11f9'),_0x40e08e)['controller']('EditOpenchannelAccountAppautoreplyDialogController',_0x2612b0)[_0x3877e3('0x1d5a')](_0x3877e3('0x1b91'),_0x296693)[_0x3877e3('0x1d5a')](_0x3877e3('0x1cfc'),_0x3d1d9b)[_0x3877e3('0x1d5a')](_0x3877e3('0x27e1'),_0x534036)['controller'](_0x3877e3('0x13e8'),_0x2a6a22)['controller'](_0x3877e3('0x1384'),_0x45afe5)['controller'](_0x3877e3('0x1258'),_0x458edf)['controller'](_0x3877e3('0x52b'),_0x1c354c)[_0x3877e3('0x1d5a')](_0x3877e3('0xd6a'),_0xdd8b96)[_0x3877e3('0x1d5a')](_0x3877e3('0x1be7'),_0x409981)[_0x3877e3('0x1d5a')]('OpenchannelAccountInteractionsController',_0x4d0dd8)[_0x3877e3('0x1d5a')](_0x3877e3('0x1b1'),_0x18e989)['controller'](_0x3877e3('0x2377'),_0xc63393)[_0x3877e3('0x1d5a')](_0x3877e3('0x2d2'),_0x179739)[_0x3877e3('0x1d5a')](_0x3877e3('0x576'),_0x7dab2c)[_0x3877e3('0x1d5a')](_0x3877e3('0xf46'),_0x56e672)[_0x3877e3('0x1d5a')](_0x3877e3('0x1cdd'),_0x1c8e5a)['controller']('OpenchannelQueueagentaddController',_0xbbe5d1)[_0x3877e3('0x1d5a')]('OpenchannelQueueteamaddController',_0x1e6791)[_0x3877e3('0x1d5a')](_0x3877e3('0x1b00'),_0x27e192)[_0x3877e3('0x1d5a')](_0x3877e3('0x7a4'),_0xd5cbe1);const _0xbb59fe=_0x398308['p']+'src/js/modules/main/apps/fax/views/faxQueues/faxQueues.html/faxQueues-[chunkhash].html',_0x1e6fbf=_0x398308['p']+_0x3877e3('0x1536'),_0x1f3c7c=_0x398308['p']+_0x3877e3('0x15dd'),_0x5f42a3=_0x398308['p']+_0x3877e3('0x3cb'),_0x69d19a=_0x398308['p']+_0x3877e3('0xdc'),_0x38fd1c=_0x398308['p']+_0x3877e3('0x1714'),_0x70d3d0=_0x398308['p']+_0x3877e3('0x235f'),_0x13dece=_0x398308['p']+_0x3877e3('0x1918'),_0x2cecae=_0x398308['p']+'src/js/modules/main/apps/fax/views/realtime/accounts/view.html/view-[chunkhash].html';_0x1ad7c0[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$timeout',_0x3877e3('0x1850'),'$document',_0x3877e3('0xa9f'),_0x3877e3('0xccd'),_0x3877e3('0x25d8'),_0x3877e3('0x1908'),_0x3877e3('0x1695'),_0x3877e3('0x2137'),'userProfile','userProfileSection',_0x3877e3('0x15bc')];function _0x1ad7c0(_0xb93859,_0x42ca04,_0x5165eb,_0x9f8805,_0xcbef98,_0x4eb456,_0x55c4c2,_0x1e3492,_0x43b94d,_0x5f305a,_0x2c8b0f,_0x42106a,_0x259bf4){var _0x549732=_0x3877e3,_0xeb7067=this;_0xeb7067[_0x549732('0x123f')]=_0x259bf4['getCurrentUser'](),_0xeb7067[_0x549732('0x205f')]=_0x43b94d&&_0x43b94d[_0x549732('0x205f')]?_0x43b94d[_0x549732('0x205f')]:0x0,_0xeb7067[_0x549732('0x1695')]=_0x43b94d?_0x86640f()['keyBy'](_0x43b94d[_0x549732('0x1b33')]?_0x43b94d[_0x549732('0x1b33')]:[],'id'):{},_0xeb7067[_0x549732('0x2137')]=_0x5f305a?_0x86640f()[_0x549732('0xcde')](_0x5f305a[_0x549732('0x1b33')]?_0x5f305a['rows']:[],'id'):{},_0xeb7067[_0x549732('0x758')]=_0x2c8b0f,_0xeb7067[_0x549732('0xab4')]=_0x42106a&&_0x42106a[_0x549732('0x205f')]==0x1?_0x42106a[_0x549732('0x1b33')][0x0]:null,_0xeb7067[_0x549732('0x5ed')]=_0x259bf4['parseCrudPermissions'](_0xeb7067[_0x549732('0xab4')]?_0xeb7067[_0x549732('0xab4')][_0x549732('0x5ed')]:null),_0xeb7067[_0x549732('0x77')]={'sort':_0x549732('0xfb9'),'limit':0xa,'page':0x1},_0xeb7067['success']=_0x306791,_0xeb7067[_0x549732('0x14b')]=_0x286820,_0xeb7067[_0x549732('0x1718')]=_0x43cb91,_0xeb7067[_0x549732('0x1b74')]=_0x3b8774,_0xeb7067['onFaxMessageSave']=_0x5847bb,_0xeb7067[_0x549732('0x19d1')]=_0xaaa742,_0xeb7067[_0x549732('0x2752')]=[],_0x86640f()[_0x549732('0xd54')](_0xeb7067[_0x549732('0x1695')],function(_0x2a7523){var _0x11709a=_0x549732;_0xeb7067[_0x11709a('0x2752')]['push'](_0x2a7523['id']);}),_0x55c4c2['on'](_0x549732('0xae'),_0xeb7067[_0x549732('0x1b74')]),_0x55c4c2['on'](_0x549732('0x66e'),_0xeb7067['onSave']),_0x55c4c2['on'](_0x549732('0x1c42'),_0xeb7067[_0x549732('0x20b8')]);function _0x286820(){var _0x11414c=_0x549732;_0x86640f()['forIn'](_0xeb7067[_0x11414c('0x1695')],function(_0x199e20,_0x80a286){var _0x169fe6=_0x11414c;_0xeb7067[_0x169fe6('0x2137')][_0x80a286]&&_0x86640f()[_0x169fe6('0xd0e')](_0x199e20,_0xeb7067[_0x169fe6('0x2137')][_0x80a286]);}),_0x86640f()[_0x11414c('0xd54')](_0xeb7067['faxAccounts'],function(_0xfd2b90,_0x1cb310){var _0x1296c1=_0x11414c,_0xce006d={'id':_0x1cb310,'sort':'-id','direction':'in','limit':0x1,'offset':0x0,'$gte':_0x1296c1('0x1c2a')+_0x1088bc()()[_0x1296c1('0x1982')]('day')[_0x1296c1('0x153')](_0x1296c1('0x1e15'))};_0x4eb456[_0x1296c1('0xeb2')][_0x1296c1('0x83')](_0xce006d)[_0x1296c1('0x1376')][_0x1296c1('0x21ad')](function(_0x34447e){var _0x14e81d=_0x1296c1;return _0x34447e&&(_0xfd2b90['in']=_0x34447e[_0x14e81d('0x205f')]||0x0,_0xfd2b90['lastIn']=_0x34447e[_0x14e81d('0x1b33')]&&_0x34447e[_0x14e81d('0x1b33')]['length']?_0x34447e[_0x14e81d('0x1b33')][0x0][_0x14e81d('0x23ae')]:undefined),_0xce006d[_0x14e81d('0xfab')]=_0x14e81d('0x5d5'),_0x4eb456['faxAccount'][_0x14e81d('0x83')](_0xce006d)[_0x14e81d('0x1376')];})[_0x1296c1('0x21ad')](function(_0x11c733){var _0x33d8f5=_0x1296c1;_0x11c733&&(_0xfd2b90[_0x33d8f5('0x5d5')]=_0x11c733['count']||0x0,_0xfd2b90['lastOut']=_0x11c733['rows']&&_0x11c733[_0x33d8f5('0x1b33')][_0x33d8f5('0x577')]?_0x11c733[_0x33d8f5('0x1b33')][0x0][_0x33d8f5('0x23ae')]:undefined);})[_0x1296c1('0x1c1d')](function(_0x441aec){console['log'](_0x441aec);});});}function _0x3b8774(_0xb8733b){var _0x7993e=_0x549732;_0xeb7067[_0x7993e('0x1695')][_0xb8733b['id']]&&_0x86640f()[_0x7993e('0xd0e')](_0xeb7067[_0x7993e('0x1695')][_0xb8733b['id']],_0xb8733b);}function _0x5847bb(_0x1ca827){var _0x5960ff=_0x549732;_0xeb7067['faxAccounts'][_0x1ca827[_0x5960ff('0x1de9')]]&&(_0x1ca827['direction']=='in'?(_0xeb7067[_0x5960ff('0x1695')][_0x1ca827[_0x5960ff('0x1de9')]]['in']+=0x1,_0xeb7067[_0x5960ff('0x1695')][_0x1ca827['FaxAccountId']][_0x5960ff('0x16b5')]=_0x1ca827[_0x5960ff('0x23ae')]):(_0xeb7067['faxAccounts'][_0x1ca827[_0x5960ff('0x1de9')]]['out']+=0x1,_0xeb7067[_0x5960ff('0x1695')][_0x1ca827['FaxAccountId']][_0x5960ff('0x1cdf')]=_0x1ca827[_0x5960ff('0x23ae')]));}function _0xaaa742(_0x50f185,_0x1e6644){_0xcbef98['go']('app.fax.faxAccounts.edit',{'id':_0x1e6644['id'],'faxAccount':_0x1e6644});}var _0x20e0e1=!![],_0x50c1b9=0x1;_0xb93859[_0x549732('0x10e8')]('vm.query.filter',function(_0x239aa4,_0x27cfd9){var _0x1ea5fb=_0x549732;_0x20e0e1?_0x42ca04(function(){_0x20e0e1=![];}):(!_0x27cfd9&&(_0x50c1b9=_0xeb7067['query'][_0x1ea5fb('0x2376')]),_0x239aa4!==_0x27cfd9&&(_0xeb7067[_0x1ea5fb('0x77')][_0x1ea5fb('0x2376')]=0x1),!_0x239aa4&&(_0xeb7067[_0x1ea5fb('0x77')][_0x1ea5fb('0x2376')]=_0x50c1b9),_0xeb7067['getFaxAccounts']());});function _0x306791(_0x10311c){var _0x56f8fb=_0x549732;_0xeb7067[_0x56f8fb('0x1695')]=_0x10311c?_0x86640f()[_0x56f8fb('0xcde')](_0x10311c['rows']?_0x10311c[_0x56f8fb('0x1b33')]:[],'id'):{};if(_0x10311c[_0x56f8fb('0x1b33')]){_0xeb7067['order']=[];for(var _0xdb48c6=0x0;_0xdb48c6<_0x10311c['rows'][_0x56f8fb('0x577')];_0xdb48c6++){_0xeb7067[_0x56f8fb('0x2752')]['push'](_0x10311c[_0x56f8fb('0x1b33')][_0xdb48c6]['id']);}}_0x286820();}function _0x43cb91(){var _0x305f23=_0x549732;_0xeb7067[_0x305f23('0x77')]['offset']=(_0xeb7067[_0x305f23('0x77')]['page']-0x1)*_0xeb7067[_0x305f23('0x77')][_0x305f23('0x1f4a')],_0x259bf4[_0x305f23('0x21de')](_0x305f23('0x1bd8'))?_0xeb7067['promise']=_0x4eb456[_0x305f23('0xeb2')][_0x305f23('0x595')](_0xeb7067[_0x305f23('0x77')],_0x306791)[_0x305f23('0x1376')]:(_0xeb7067[_0x305f23('0x77')]['id']=_0xeb7067[_0x305f23('0x758')]['id'],_0xeb7067[_0x305f23('0x77')][_0x305f23('0x26ad')]='FaxAccounts',_0xeb7067['promise']=_0x4eb456['userProfile'][_0x305f23('0x321')](_0xeb7067[_0x305f23('0x77')],_0x306791)[_0x305f23('0x1376')]);}_0xb93859[_0x549732('0x1723')](_0x549732('0x1210'),function(){var _0x3daf26=_0x549732;_0x55c4c2[_0x3daf26('0x16cc')]('faxAccount:save'),_0x55c4c2[_0x3daf26('0x16cc')](_0x3daf26('0x66e')),_0x55c4c2[_0x3daf26('0x16cc')]('faxMessage:save');});}const _0x544230=_0x1ad7c0;_0x75fda2[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$q',_0x3877e3('0x2313'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x143b'),'pauses',_0x3877e3('0xcb5'),_0x3877e3('0x165c'),'api','socket',_0x3877e3('0x1908'),_0x3877e3('0x2703'),'userProfile','userProfileSection',_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x1e8d')];function _0x75fda2(_0x31e831,_0x589bba,_0x3149ea,_0x3d92ee,_0x366996,_0x40843f,_0x5340c2,_0x471ae4,_0x1f4112,_0x51f784,_0x1b30b9,_0x3aed17,_0x2f3756,_0x4878a1,_0x2fa695,_0x1f230d,_0x584571,_0x281039){var _0x464c98=_0x3877e3,_0x2d2916=this,_0x53b7db=[_0x464c98('0x2154'),'online','lastLoginAt',_0x464c98('0x1a2c'),_0x464c98('0x1f37'),_0x464c98('0x1a2c'),_0x464c98('0x201f'),_0x464c98('0x1ba3'),_0x464c98('0x1785'),'openchannelPause','mailPause',_0x464c98('0x2826'),_0x464c98('0x14bf'),_0x464c98('0x23f5'),_0x464c98('0x1025'),_0x464c98('0x1887'),_0x464c98('0x9db'),'mailCapacity',_0x464c98('0xac0'),_0x464c98('0x1570'),_0x464c98('0xa28'),_0x464c98('0x18a6'),'openchannelCurrentCapacity','mailCurrentCapacity',_0x464c98('0x8db'),_0x464c98('0xe1'),'faxCurrentCapacity','chatStatus','openchannelStatus','mailStatus','smsStatus',_0x464c98('0x1b28'),_0x464c98('0x282'),_0x464c98('0x27ea'),_0x464c98('0x1ffc'),_0x464c98('0x116'),_0x464c98('0xf73'),_0x464c98('0x1a1'),_0x464c98('0x18fb'),_0x464c98('0x27b6'),_0x464c98('0xc0'),'queue',_0x464c98('0xa70'),'screenrecording',_0x464c98('0x1d44'),_0x464c98('0x2422')],_0x2360a2=[_0x464c98('0x1785'),_0x464c98('0x2022'),'mailPause',_0x464c98('0x2826'),_0x464c98('0x14bf'),_0x464c98('0x23f5'),_0x464c98('0x1025'),_0x464c98('0x1ecb')];_0x2d2916['currentUser']=_0x1f230d[_0x464c98('0x15ed')](),_0x2d2916[_0x464c98('0x16b3')]=['ringing','inuse','busy','onhold',_0x464c98('0x255e')],_0x2d2916[_0x464c98('0x1fc7')]=_0x5340c2||{'count':0x0,'rows':[]},_0x2d2916['license']=_0x584571,_0x2d2916['userProfile']=_0x4878a1,_0x2d2916[_0x464c98('0xab4')]=_0x2fa695&&_0x2fa695[_0x464c98('0x205f')]==0x1?_0x2fa695[_0x464c98('0x1b33')][0x0]:null,_0x2d2916['crudPermissions']=_0x1f230d['parseCrudPermissions'](_0x2d2916[_0x464c98('0xab4')]?_0x2d2916[_0x464c98('0xab4')][_0x464c98('0x5ed')]:null),_0x2d2916[_0x464c98('0xcb5')]=_0x471ae4?_0x86640f()[_0x464c98('0xcde')](_0x471ae4[_0x464c98('0x1b33')]?_0x471ae4[_0x464c98('0x1b33')]:[],'id'):{},_0x2d2916['rpcAgents']=_0x1f4112?_0x86640f()[_0x464c98('0xcde')](_0x1f4112[_0x464c98('0x1b33')]?_0x1f4112[_0x464c98('0x1b33')]:[],'id'):{},_0x2d2916[_0x464c98('0x261a')]={},_0x2d2916[_0x464c98('0x20ad')]=![],_0x2d2916[_0x464c98('0x2752')]=[],_0x2d2916[_0x464c98('0x24ee')]={};for(var _0x2e6c93 in _0x2d2916[_0x464c98('0xcb5')]){typeof _0x2d2916[_0x464c98('0xcb5')][_0x2e6c93]!==_0x464c98('0xddc')&&(_0x2d2916[_0x464c98('0xcb5')][_0x2e6c93][_0x464c98('0x1d75')]=!![]);}_0x2d2916['query']={'limit':0xa,'page':0x1,'order':_0x464c98('0x20f5'),'globalStatusFilter':'','pauseTypeFilter':''},_0x2d2916['logout']=_0x12788b,_0x2d2916[_0x464c98('0x9e9')]=_0x5ed097,_0x2d2916['pause']=_0x276769,_0x2d2916[_0x464c98('0x17d')]=_0x4c2d89,_0x2d2916[_0x464c98('0xa45')]=_0x49567e,_0x2d2916['getAgentStatus']=_0x5603d7,_0x2d2916['getAgentGlobalStatus']=_0x2906c9,_0x2d2916[_0x464c98('0xca6')]=_0x398d3c,_0x2d2916[_0x464c98('0x1044')]=_0x578030,_0x2d2916['isPartialPause']=_0x22abf6,_0x2d2916['onSave']=_0x114a63,_0x2d2916[_0x464c98('0x27d7')]=_0x20b093,_0x2d2916[_0x464c98('0x1081')]=_0x2a2206,_0x2d2916[_0x464c98('0x7e0')]=_0xcf3613,_0x2d2916[_0x464c98('0xebf')]=_0xe451d4,_0x2d2916[_0x464c98('0xcf2')]=_0x2f3161,_0x1b30b9['on'](_0x464c98('0x62b'),_0x2d2916[_0x464c98('0x1b74')]),_0x1b30b9['on'](_0x464c98('0x21f4'),_0x2d2916[_0x464c98('0x27d7')]),_0x1b30b9['on'](_0x464c98('0x19a7'),_0x2d2916['onConnect']),_0x1b30b9['on']('user:agentcomplete',_0x2d2916['onComplete']),_0x2a2206();var _0x4e9df6=_0x281039(function(){var _0x51a545=_0x464c98;_0x2d2916[_0x51a545('0x20ad')]&&(_0x2d2916[_0x51a545('0x20ad')]=![],_0x2a2206());},0x3e7);function _0x2a2206(){var _0x316a2f=_0x464c98;_0x2d2916[_0x316a2f('0x20ad')]=![];var _0x452356=_0x589bba[_0x316a2f('0xca9')]();_0x2d2916[_0x316a2f('0x71b')]=_0x452356[_0x316a2f('0x71b')],_0x2d2916['filteredAgents']=[],_0x2d2916[_0x316a2f('0x2752')]=[],_0x86640f()['forIn'](_0x2d2916[_0x316a2f('0xcb5')],function(_0x2fdea7,_0x3e0617){var _0x19539c=_0x316a2f;_0x2d2916[_0x19539c('0x165c')][_0x3e0617]&&_0x86640f()[_0x19539c('0xd0e')](_0x2fdea7,_0x86640f()[_0x19539c('0xc50')](_0x86640f()[_0x19539c('0x27b1')](_0x2d2916['rpcAgents'][_0x3e0617],_0x2360a2),_0x53b7db)),_0x2906c9(_0x2fdea7),_0x2fdea7[_0x19539c('0x1ecb')]?(_0x2d2916['filteredAgents'][_0x19539c('0x206c')](_0x2fdea7),_0x2d2916[_0x19539c('0x24ee')][_0x2fdea7[_0x19539c('0x201f')]]=_0x3e0617):_0x2fdea7[_0x19539c('0x1ea5')]=_0x86640f()['toNumber'](_0x1088bc()()[_0x19539c('0x153')]('x'));});_0x2d2916['query']['globalStatusFilter']&&_0x86640f()[_0x316a2f('0x16a2')](_0x2d2916[_0x316a2f('0x1782')],function(_0x29bb61){var _0x3a39de=_0x316a2f;return _0x29bb61[_0x3a39de('0x100f')]!==_0x2d2916[_0x3a39de('0x77')]['globalStatusFilter'];});_0x2d2916[_0x316a2f('0x77')][_0x316a2f('0x1024')]&&_0x86640f()[_0x316a2f('0x16a2')](_0x2d2916['filteredAgents'],function(_0x9d4ec2){var _0x39dffe=_0x316a2f;return _0x9d4ec2[_0x39dffe('0x1f37')]!==_0x2d2916['query']['pauseTypeFilter'];});_0x2d2916[_0x316a2f('0x77')][_0x316a2f('0x1503')]&&_0x86640f()['remove'](_0x2d2916[_0x316a2f('0x1782')],function(_0x36cacf){var _0x89df12=_0x316a2f;return _0x36cacf[_0x89df12('0x20f5')]['toLowerCase']()['indexOf'](_0x2d2916[_0x89df12('0x77')][_0x89df12('0x1503')][_0x89df12('0xac2')]())<0x0;});_0x2d2916[_0x316a2f('0x1782')]=_0x4715ae(_0x2d2916[_0x316a2f('0x1782')]);var _0x5db91c=(_0x2d2916[_0x316a2f('0x77')][_0x316a2f('0x2376')]-0x1)*_0x2d2916[_0x316a2f('0x77')][_0x316a2f('0x1f4a')];_0x2d2916[_0x316a2f('0x261a')]=_0x86640f()[_0x316a2f('0x2189')](_0x2d2916['filteredAgents'],_0x5db91c)[_0x316a2f('0xb3d')](0x0,_0x2d2916['query'][_0x316a2f('0x1f4a')]);for(var _0x495c4a=0x0;_0x495c4a<_0x2d2916[_0x316a2f('0x261a')][_0x316a2f('0x577')];_0x495c4a+=0x1){_0x2d2916['order'][_0x316a2f('0x206c')](_0x2d2916['paginatedAgents'][_0x495c4a]['id']);}_0x452356[_0x316a2f('0x8ac')](),_0x2d2916[_0x316a2f('0x20ad')]=!![];}function _0x114a63(_0x3d3249){var _0x5acec3=_0x464c98;_0x2d2916[_0x5acec3('0xcb5')][_0x3d3249['id']]&&(_0x86640f()[_0x5acec3('0xd0e')](_0x2d2916[_0x5acec3('0xcb5')][_0x3d3249['id']],_0x86640f()[_0x5acec3('0xc50')](_0x86640f()[_0x5acec3('0x27b1')](_0x3d3249,_0x2360a2),_0x53b7db)),_0x86640f()[_0x5acec3('0xd0e')](_0x2d2916[_0x5acec3('0x165c')][_0x3d3249['id']],_0x86640f()[_0x5acec3('0xc50')](_0x86640f()[_0x5acec3('0x27b1')](_0x3d3249,_0x2360a2),_0x53b7db)),_0x2906c9(_0x2d2916['agents'][_0x3d3249['id']]));}function _0x20b093(_0xb0ef3c){var _0xc07ed3=_0x464c98;_0x2d2916[_0xc07ed3('0xcb5')][_0xb0ef3c['id']]&&(_0x86640f()['merge'](_0x2d2916[_0xc07ed3('0xcb5')][_0xb0ef3c['id']],_0x86640f()[_0xc07ed3('0xc50')](_0xb0ef3c,_0x53b7db)),_0x86640f()['merge'](_0x2d2916[_0xc07ed3('0x165c')][_0xb0ef3c['id']],_0x86640f()[_0xc07ed3('0xc50')](_0xb0ef3c,_0x53b7db)),_0xb0ef3c[_0xc07ed3('0x1a2c')]&&(_0x2d2916['agents'][_0xb0ef3c['id']][_0xc07ed3('0x1ea5')]=_0xb0ef3c[_0xc07ed3('0x1a2c')],_0x2d2916[_0xc07ed3('0x165c')][_0xb0ef3c['id']][_0xc07ed3('0x1ea5')]=_0xb0ef3c[_0xc07ed3('0x1a2c')]),_0x2906c9(_0x2d2916[_0xc07ed3('0xcb5')][_0xb0ef3c['id']]));}function _0xcf3613(_0x1b5d58){var _0x3564b0=_0x464c98;_0x2d2916[_0x3564b0('0xcb5')][_0x2d2916[_0x3564b0('0x24ee')][_0x1b5d58['destaccountcode']]]&&(_0x86640f()['merge'](_0x2d2916[_0x3564b0('0xcb5')][_0x2d2916[_0x3564b0('0x24ee')][_0x1b5d58[_0x3564b0('0xe4e')]]],_0x86640f()['pick'](_0x1b5d58,['queue',_0x3564b0('0xa70')])),_0x86640f()[_0x3564b0('0xd0e')](_0x2d2916['rpcAgents'][_0x2d2916[_0x3564b0('0x24ee')][_0x1b5d58[_0x3564b0('0xe4e')]]],_0x86640f()[_0x3564b0('0xc50')](_0x1b5d58,[_0x3564b0('0xbdd'),_0x3564b0('0xa70')])));}function _0xe451d4(_0x223f61){var _0x295922=_0x464c98;_0x2d2916[_0x295922('0xcb5')][_0x2d2916[_0x295922('0x24ee')][_0x223f61[_0x295922('0xe4e')]]]&&(_0x2d2916['agents'][_0x2d2916[_0x295922('0x24ee')][_0x223f61[_0x295922('0xe4e')]]]=_0x86640f()[_0x295922('0x27b1')](_0x2d2916[_0x295922('0xcb5')][_0x2d2916['agentInternal'][_0x223f61['destaccountcode']]],[_0x295922('0xbdd'),_0x295922('0xa70')]),_0x2d2916['rpcAgents'][_0x2d2916[_0x295922('0x24ee')][_0x223f61[_0x295922('0xe4e')]]]=_0x86640f()[_0x295922('0x27b1')](_0x2d2916['rpcAgents'][_0x2d2916[_0x295922('0x24ee')][_0x223f61['destaccountcode']]],[_0x295922('0xbdd'),_0x295922('0xa70')]));}function _0x12788b(_0x3403a0){var _0x5cdba1=_0x464c98;return _0x51f784[_0x5cdba1('0x1775')]['logout']({'id':_0x3403a0['id'],'device':_0x5cdba1('0x116a'),'agent_id':_0x3403a0['id'],'agent_name':_0x3403a0['name']})['$promise'][_0x5cdba1('0x21ad')](function(){var _0x58d4a0=_0x5cdba1;_0x3aed17[_0x58d4a0('0xdb1')]({'title':_0x58d4a0('0x4b2'),'msg':_0x3403a0[_0x58d4a0('0x20f5')]+_0x58d4a0('0x1f57')}),_0x2d2916['agents'][_0x3403a0['id']]&&(_0x2d2916[_0x58d4a0('0xcb5')][_0x3403a0['id']][_0x58d4a0('0x1ecb')]=![]),_0x2d2916[_0x58d4a0('0x165c')][_0x3403a0['id']]&&(_0x2d2916['rpcAgents'][_0x3403a0['id']][_0x58d4a0('0x1ecb')]=![]),_0x2a2206();})[_0x5cdba1('0x1c1d')](function(_0x3cf369){var _0x106ef6=_0x5cdba1;_0x3aed17[_0x106ef6('0x2092')]({'title':_0x3cf369['status']?_0x106ef6('0x22d')+_0x3cf369[_0x106ef6('0x209')]+_0x106ef6('0xa99')+_0x3cf369['statusText']:'api.staff.save','msg':_0x3cf369[_0x106ef6('0x11c2')]?JSON[_0x106ef6('0x25e')](_0x3cf369['data']['message']):_0x3cf369[_0x106ef6('0x174f')]()});});}function _0x276769(_0x3a8ad6,_0x472030){var _0x2228b9=_0x464c98;return _0x51f784['user'][_0x2228b9('0x1e26')]({'id':_0x3a8ad6['id'],'type':_0x472030})[_0x2228b9('0x1376')][_0x2228b9('0x21ad')](function(_0x232d45){var _0x10095a=_0x2228b9;_0x2d2916[_0x10095a('0xcb5')][_0x3a8ad6['id']]&&_0x86640f()[_0x10095a('0xd0e')](_0x2d2916[_0x10095a('0xcb5')][_0x3a8ad6['id']],_0x86640f()[_0x10095a('0xc50')](_0x232d45,_0x53b7db)),_0x2d2916[_0x10095a('0x165c')][_0x3a8ad6['id']]&&_0x86640f()['merge'](_0x2d2916[_0x10095a('0x165c')][_0x3a8ad6['id']],_0x86640f()[_0x10095a('0xc50')](_0x232d45,_0x53b7db)),_0x2906c9(_0x2d2916[_0x10095a('0xcb5')][_0x3a8ad6['id']]);})[_0x2228b9('0x1c1d')](function(_0x22f4d8){var _0x2c65eb=_0x2228b9;_0x3aed17['error']({'title':_0x22f4d8[_0x2c65eb('0x209')]?_0x2c65eb('0x22d')+_0x22f4d8[_0x2c65eb('0x209')]+_0x2c65eb('0xa99')+_0x22f4d8[_0x2c65eb('0x1808')]:'api.staff.save','msg':_0x22f4d8['data']?JSON['stringify'](_0x22f4d8[_0x2c65eb('0x11c2')][_0x2c65eb('0x1224')]):_0x22f4d8[_0x2c65eb('0x174f')]()});});}function _0x4c2d89(_0x4214f5){var _0x33002f=_0x464c98;return _0x51f784['user'][_0x33002f('0xa8e')]({'id':_0x4214f5['id']})[_0x33002f('0x1376')][_0x33002f('0x21ad')](function(_0x50e16f){var _0x37b031=_0x33002f;_0x2d2916['agents'][_0x4214f5['id']]&&_0x86640f()[_0x37b031('0xd0e')](_0x2d2916[_0x37b031('0xcb5')][_0x4214f5['id']],_0x86640f()[_0x37b031('0xc50')](_0x50e16f,_0x53b7db)),_0x2d2916[_0x37b031('0x165c')][_0x4214f5['id']]&&_0x86640f()[_0x37b031('0xd0e')](_0x2d2916[_0x37b031('0x165c')][_0x4214f5['id']],_0x86640f()[_0x37b031('0xc50')](_0x50e16f,_0x53b7db)),_0x2906c9(_0x2d2916[_0x37b031('0xcb5')][_0x4214f5['id']]);})[_0x33002f('0x1c1d')](function(_0x15d943){var _0x54bc9a=_0x33002f;_0x3aed17[_0x54bc9a('0x2092')]({'title':_0x15d943[_0x54bc9a('0x209')]?_0x54bc9a('0x22d')+_0x15d943[_0x54bc9a('0x209')]+_0x54bc9a('0xa99')+_0x15d943[_0x54bc9a('0x1808')]:_0x54bc9a('0x1df9'),'msg':_0x15d943[_0x54bc9a('0x11c2')]?JSON[_0x54bc9a('0x25e')](_0x15d943['data'][_0x54bc9a('0x1224')]):_0x15d943['toString']()});});}function _0x49567e(_0x1a6050){var _0x3a3f10=_0x464c98;_0x3d92ee[_0x3a3f10('0x853')](_0x3d92ee[_0x3a3f10('0x95b')]()[_0x3a3f10('0x1226')](!![])[_0x3a3f10('0x4b4')](_0x3a3f10('0xcc0'))[_0x3a3f10('0x276b')]('
TODO\x20legend\x20status\x20+\x20state
')['ok']('Ok')[_0x3a3f10('0x1e6d')](_0x1a6050));}function _0x5ed097(_0x567c36,_0x5aa0e9){var _0x272042=_0x464c98;_0x3d92ee[_0x272042('0x853')]({'controller':'AgentqueueaddController','controllerAs':'vm','templateUrl':_0x287ed6,'parent':angular[_0x272042('0x1676')](_0x366996[_0x272042('0x2452')]),'targetEvent':_0x5aa0e9,'clickOutsideToClose':!![],'locals':{'agent':_0x567c36,'agents':[],'channel':_0x272042('0x93f'),'direction':_0x272042('0x923'),'crudPermissions':_0x2d2916[_0x272042('0x5ed')]}});}function _0x398d3c(_0x589114){var _0x251426=_0x464c98;return _0x589114==='pause'||_0x589114===_0x251426('0x1a4e');}function _0x578030(_0x4f4dcc){var _0x3e9324=_0x464c98;return _0x4f4dcc===_0x3e9324('0x1e26');}function _0x22abf6(_0x173a32){var _0x2abf02=_0x464c98;return _0x173a32===_0x2abf02('0x1a4e');}function _0x1d9f97(_0x1cb85b){var _0x357356=_0x464c98;return _0x1cb85b===_0x357356('0x219')||_0x1cb85b===_0x357356('0x1a4f')||_0x1cb85b==='unavailable'||_0x1cb85b===_0x357356('0x200c')||_0x86640f()[_0x357356('0x1c7')](_0x1cb85b);}function _0x5603d7(_0x554210,_0x300b5f){var _0x39e9e7=_0x464c98;if(_0x300b5f===_0x39e9e7('0x8ed')){if(_0x554210[_0x300b5f+_0x39e9e7('0x843')]!==_0x39e9e7('0x219'))return _0x554210[_0x300b5f+_0x39e9e7('0x843')];if(_0x554210[_0x300b5f+_0x39e9e7('0xc77')])return _0x554210[_0x300b5f+_0x39e9e7('0x843')]=_0x39e9e7('0x1e26'),'pause';return _0x39e9e7('0x219');}else{if(_0x554210[_0x300b5f+_0x39e9e7('0xc77')])return _0x554210[_0x300b5f+_0x39e9e7('0x843')]=_0x39e9e7('0x1e26'),_0x39e9e7('0x1e26');return _0x554210[_0x300b5f+_0x39e9e7('0x843')];}}function _0x2906c9(_0x3e6af4){var _0x4856b8=_0x464c98,_0x318051=_0x4856b8('0x1a4f');if(_0x86640f()['every']([_0x5603d7(_0x3e6af4,_0x4856b8('0x8ed')),_0x5603d7(_0x3e6af4,_0x4856b8('0x1f65')),_0x5603d7(_0x3e6af4,_0x4856b8('0x1c8b')),_0x5603d7(_0x3e6af4,_0x4856b8('0xac9')),_0x5603d7(_0x3e6af4,_0x4856b8('0x3d0')),_0x5603d7(_0x3e6af4,_0x4856b8('0x1ad4')),_0x5603d7(_0x3e6af4,'fax')],_0x398d3c))_0x318051=_0x4856b8('0x1e26');else{if(_0x86640f()[_0x4856b8('0x2664')]([_0x5603d7(_0x3e6af4,_0x4856b8('0x8ed')),_0x5603d7(_0x3e6af4,_0x4856b8('0x1f65')),_0x5603d7(_0x3e6af4,'mail'),_0x5603d7(_0x3e6af4,_0x4856b8('0xac9')),_0x5603d7(_0x3e6af4,_0x4856b8('0x3d0')),_0x5603d7(_0x3e6af4,_0x4856b8('0x1ad4')),_0x5603d7(_0x3e6af4,_0x4856b8('0x93f'))],_0x398d3c))_0x318051=_0x4856b8('0x1a4e');else _0x86640f()[_0x4856b8('0xc74')]([_0x5603d7(_0x3e6af4,_0x4856b8('0x8ed')),_0x5603d7(_0x3e6af4,_0x4856b8('0x1f65')),_0x5603d7(_0x3e6af4,_0x4856b8('0x1c8b')),_0x5603d7(_0x3e6af4,_0x4856b8('0xac9')),_0x5603d7(_0x3e6af4,_0x4856b8('0x3d0')),_0x5603d7(_0x3e6af4,_0x4856b8('0x1ad4')),_0x5603d7(_0x3e6af4,'fax')],_0x1d9f97)?_0x318051='idle':_0x318051=_0x4856b8('0x860');}_0x3e6af4['globalStatus']!==_0x318051&&(_0x3e6af4[_0x4856b8('0x100f')]=_0x318051,_0x3e6af4[_0x4856b8('0x1d75')]?(_0x3e6af4['init']=![],_0x3e6af4[_0x4856b8('0x1ea5')]=_0x398d3c(_0x318051)?_0x86640f()[_0x4856b8('0x1662')](_0x1088bc()(_0x3e6af4[_0x4856b8('0x1a2c')])['format']('x')):_0x86640f()['max']([_0x3e6af4[_0x4856b8('0xc0')],_0x3e6af4['chatStatusTime'],_0x3e6af4[_0x4856b8('0xf73')],_0x3e6af4[_0x4856b8('0x1a1')],_0x3e6af4[_0x4856b8('0x18fb')],_0x3e6af4[_0x4856b8('0x116')],_0x3e6af4[_0x4856b8('0x27b6')]])):_0x3e6af4[_0x4856b8('0x1ea5')]=_0x86640f()[_0x4856b8('0x1662')](_0x1088bc()()[_0x4856b8('0x153')]('x')));}function _0x4715ae(_0x425e13){var _0x3694f3=_0x464c98,_0x4467a5=_0x86640f()[_0x3694f3('0x2837')](_0x2d2916['query'][_0x3694f3('0x2752')],'-')?_0x3694f3('0x340'):_0x3694f3('0x15d6');return _0x86640f()[_0x3694f3('0x11df')](_0x425e13,[_0x2d2916['query'][_0x3694f3('0x2752')][_0x3694f3('0x16e4')]('-','')],[_0x4467a5]);}function _0x5dce8a(){var _0x2f4050=_0x464c98;_0x4e9df6&&(_0x281039[_0x2f4050('0x3b5')](_0x4e9df6),_0x4e9df6=null);}function _0x2f3161(_0x13d5fc,_0x3f4e8a){var _0x425b1e=_0x464c98;return _0x51f784[_0x425b1e('0x1775')][_0x425b1e('0x5ef')]({'id':_0x13d5fc['id']},{'screenrecording':_0x3f4e8a})[_0x425b1e('0x1376')][_0x425b1e('0x1c1d')](function(_0x5ba1ee){var _0x2eb0c9=_0x425b1e;_0x3aed17['error']({'title':_0x5ba1ee['status']?_0x2eb0c9('0x22d')+_0x5ba1ee['status']+_0x2eb0c9('0xa99')+_0x5ba1ee[_0x2eb0c9('0x1808')]:_0x2eb0c9('0x14b6'),'msg':_0x5ba1ee[_0x2eb0c9('0x11c2')]?JSON[_0x2eb0c9('0x25e')](_0x5ba1ee[_0x2eb0c9('0x11c2')]['message']):_0x5ba1ee[_0x2eb0c9('0x174f')]()});});}_0x31e831[_0x464c98('0x1723')](_0x464c98('0x1210'),function(){var _0x478706=_0x464c98;_0x1b30b9[_0x478706('0x16cc')](_0x478706('0x62b')),_0x1b30b9['removeAllListeners']('user:update'),_0x1b30b9[_0x478706('0x16cc')]('user:agentconnect'),_0x1b30b9[_0x478706('0x16cc')](_0x478706('0x1131')),_0x5dce8a();});}const _0xe386e1=_0x75fda2,_0x4e75aa=_0x398308['p']+_0x3877e3('0xfa4'),_0x1d59e5=_0x398308['p']+'src/js/modules/main/apps/fax/views/faxQueues/create/dialog.html/dialog-[chunkhash].html';_0x93f603[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$timeout','$mdDialog','$q','$document',_0x3877e3('0x1e8d'),_0x3877e3('0xb7a'),_0x3877e3('0x245'),'api',_0x3877e3('0x25d8'),_0x3877e3('0x1908'),'userProfile',_0x3877e3('0xab4'),'Auth'];function _0x93f603(_0x18af60,_0x3e7bf4,_0x36bd0a,_0x12c942,_0x426e17,_0x1be83b,_0x1cf7a5,_0x2d51fd,_0x444c03,_0xed86b5,_0x3cbf4a,_0x2d1ff9,_0x2c069f,_0x5b57f7){var _0x31191a=_0x3877e3,_0x45f6ba=this,_0x546d0f=[_0x31191a('0x1efa'),'available',_0x31191a('0x8b6'),_0x31191a('0x4f6'),_0x31191a('0xc37'),_0x31191a('0x108'),_0x31191a('0x1224'),_0x31191a('0x13dc'),_0x31191a('0x1c4b'),_0x31191a('0x1e2e'),_0x31191a('0x250c')];_0x45f6ba['currentUser']=_0x5b57f7[_0x31191a('0x15ed')](),_0x45f6ba['count']=_0x1cf7a5[_0x31191a('0x205f')]?_0x1cf7a5[_0x31191a('0x205f')]:0x0,_0x45f6ba[_0x31191a('0xb7a')]=_0x1cf7a5?_0x86640f()[_0x31191a('0xcde')](_0x1cf7a5[_0x31191a('0x1b33')]?_0x1cf7a5[_0x31191a('0x1b33')]:[],'id'):{},_0x45f6ba[_0x31191a('0x245')]=_0x2d51fd?_0x86640f()[_0x31191a('0xcde')](_0x2d51fd[_0x31191a('0x1b33')]?_0x2d51fd['rows']:[],'id'):{},_0x45f6ba['userProfile']=_0x2d1ff9,_0x45f6ba[_0x31191a('0xab4')]=_0x2c069f&&_0x2c069f['count']==0x1?_0x2c069f[_0x31191a('0x1b33')][0x0]:null,_0x45f6ba[_0x31191a('0x5ed')]=_0x5b57f7[_0x31191a('0x1778')](_0x45f6ba['userProfileSection']?_0x45f6ba[_0x31191a('0xab4')][_0x31191a('0x5ed')]:null);_0x5b57f7[_0x31191a('0x21de')](_0x31191a('0x1bd8'))?_0x45f6ba[_0x31191a('0x77')]={'type':_0x31191a('0x923'),'sort':_0x31191a('0x33'),'limit':0xa,'page':0x1}:_0x45f6ba[_0x31191a('0x77')]={'id':_0x45f6ba[_0x31191a('0x123f')]['id'],'channel':_0x31191a('0x93f'),'type':_0x31191a('0x923'),'sort':_0x31191a('0x33'),'limit':0xa,'page':0x1};_0x45f6ba['success']=_0x2bf367,_0x45f6ba['getQueues']=_0x22c9be,_0x45f6ba[_0x31191a('0x900')]=_0xe73fcb,_0x45f6ba['agentAdd']=_0x564426,_0x45f6ba['updateQueue']=_0x58cc2c,_0x45f6ba[_0x31191a('0x1b74')]=_0xf001a1,_0x45f6ba[_0x31191a('0x7c7')]=_0x50e901,_0x45f6ba[_0x31191a('0xc32')]=_0x3c9ad0,_0x45f6ba[_0x31191a('0x22bf')]=_0x346191,_0x45f6ba[_0x31191a('0xf80')]=_0x4ab641,_0x45f6ba[_0x31191a('0x27a5')]=_0x508878,_0x45f6ba[_0x31191a('0x14b')]=_0x319c1f,_0x45f6ba[_0x31191a('0x2752')]=[],_0x86640f()[_0x31191a('0xd54')](_0x45f6ba['queues'],function(_0x598790){var _0x30a0d6=_0x31191a;_0x45f6ba[_0x30a0d6('0x2752')][_0x30a0d6('0x206c')](_0x598790['id']);}),_0xed86b5['on']('fax_queue:save',_0x45f6ba[_0x31191a('0x1b74')]),_0xed86b5['on']('userFaxQueue:save',_0x45f6ba[_0x31191a('0x7c7')]),_0xed86b5['on'](_0x31191a('0x12f1'),_0x45f6ba[_0x31191a('0xc32')]),_0xed86b5['on']('user:update',_0x45f6ba[_0x31191a('0x22bf')]),_0xed86b5['on'](_0x31191a('0x3b0'),_0x45f6ba['onLogout']),_0xed86b5['on']('userVoiceQueue:save',_0x45f6ba[_0x31191a('0xf80')]);function _0x319c1f(){var _0x5593c7=_0x31191a,_0x48fc89=[];return _0x86640f()[_0x5593c7('0xd54')](_0x45f6ba[_0x5593c7('0xb7a')],function(_0x1b4b75,_0x5ba5f9){var _0x87d6dc=_0x5593c7;_0x1b4b75[_0x87d6dc('0x250c')]=0x0,_0x1b4b75['loggedInDb']=0x0,_0x45f6ba[_0x87d6dc('0xb7a')][_0x5ba5f9]['agents']={},_0x48fc89[_0x87d6dc('0x206c')](_0x444c03['faxQueue'][_0x87d6dc('0xad6')]({'id':_0x5ba5f9})[_0x87d6dc('0x1376')]),_0x45f6ba['rpcQueues'][_0x5ba5f9]&&_0x86640f()['merge'](_0x1b4b75,_0x86640f()[_0x87d6dc('0xc50')](_0x45f6ba[_0x87d6dc('0x245')][_0x5ba5f9],_0x546d0f));}),_0x12c942['all'](_0x48fc89)['then'](function(_0x2f042e){var _0x4036c5=_0x5593c7;for(var _0x34a8f2=0x0;_0x34a8f2<_0x2f042e[_0x4036c5('0x577')];_0x34a8f2+=0x1){for(var _0x27f2f1=0x0;_0x27f2f1<_0x2f042e[_0x34a8f2]['rows'][_0x4036c5('0x577')];_0x27f2f1++){_0x2f042e[_0x34a8f2][_0x4036c5('0x1b33')][_0x27f2f1][_0x4036c5('0x250c')]&&_0x45f6ba[_0x4036c5('0xb7a')][_0x2f042e[_0x34a8f2]['rows'][_0x27f2f1][_0x4036c5('0x905')]][_0x4036c5('0x250c')]++,_0x45f6ba[_0x4036c5('0xb7a')][_0x2f042e[_0x34a8f2]['rows'][_0x27f2f1][_0x4036c5('0x905')]][_0x4036c5('0x29')]++,_0x45f6ba[_0x4036c5('0xb7a')][_0x2f042e[_0x34a8f2][_0x4036c5('0x1b33')][_0x27f2f1]['FaxQueueId']][_0x4036c5('0xcb5')][_0x2f042e[_0x34a8f2][_0x4036c5('0x1b33')][_0x27f2f1][_0x4036c5('0x1dc6')]]=_0x2f042e[_0x34a8f2][_0x4036c5('0x1b33')][_0x27f2f1]['FaxQueueId'];}}})[_0x5593c7('0x1c1d')](function(_0x51485d){var _0x412198=_0x5593c7;console[_0x412198('0x2092')](_0x51485d);});}function _0xf001a1(_0xb87af0){var _0x504970=_0x31191a;_0x45f6ba[_0x504970('0xb7a')][_0xb87af0['id']]&&_0x86640f()[_0x504970('0xd0e')](_0x45f6ba[_0x504970('0xb7a')][_0xb87af0['id']],_0x86640f()['pick'](_0xb87af0,_0x546d0f));}function _0x50e901(_0x44446a){var _0x315038=_0x31191a;_0x45f6ba[_0x315038('0xb7a')][_0x44446a[_0x315038('0x905')]]&&_0x45f6ba['queues'][_0x44446a[_0x315038('0x905')]][_0x315038('0x29')]++;}function _0x3c9ad0(_0x50de1d){var _0x1eeb5f=_0x31191a;_0x45f6ba[_0x1eeb5f('0xb7a')][_0x50de1d[_0x1eeb5f('0x905')]]&&_0x45f6ba[_0x1eeb5f('0xb7a')][_0x50de1d[_0x1eeb5f('0x905')]]['loggedInDb']--;}function _0x346191(_0x121b00){var _0x1212b0=_0x31191a;console[_0x1212b0('0x6fb')](_0x1212b0('0x22bf'),_0x121b00);if(_0x121b00['voicePause'])_0x86640f()[_0x1212b0('0xd54')](_0x45f6ba[_0x1212b0('0xb7a')],function(_0x50c6c8){var _0x3efad9=_0x1212b0;_0x50c6c8[_0x3efad9('0xcb5')][_0x121b00['id']]&&(_0x50c6c8['paused']+=0x1,console[_0x3efad9('0x6fb')](_0x3efad9('0x1e26')));});else!_0x121b00[_0x1212b0('0x1025')]&&_0x86640f()[_0x1212b0('0xd54')](_0x45f6ba[_0x1212b0('0xb7a')],function(_0x50a849){var _0x5227e7=_0x1212b0;_0x50a849[_0x5227e7('0xcb5')][_0x121b00['id']]&&(_0x50a849[_0x5227e7('0x250c')]>0x0&&(_0x50a849[_0x5227e7('0x250c')]-=0x1,console[_0x5227e7('0x6fb')](_0x5227e7('0xa8e'))));});}function _0x4ab641(_0x476038){var _0x16f002=_0x31191a;console['log'](_0x16f002('0x1b6a'),_0x476038),_0x45f6ba[_0x16f002('0xb7a')][_0x476038[_0x16f002('0x905')]]&&(_0x45f6ba[_0x16f002('0xb7a')][_0x476038['FaxQueueId']][_0x16f002('0x29')]+=0x1,_0x45f6ba['queues'][_0x476038[_0x16f002('0x905')]][_0x16f002('0xcb5')][_0x476038[_0x16f002('0x1dc6')]]=_0x476038[_0x16f002('0x905')]);}function _0x508878(_0x25cc26){var _0x425b22=_0x31191a;console[_0x425b22('0x6fb')](_0x425b22('0x27a5'),_0x25cc26),_0x45f6ba['queues'][_0x25cc26[_0x425b22('0x905')]]&&_0x45f6ba[_0x425b22('0xb7a')][_0x25cc26[_0x425b22('0x905')]][_0x425b22('0x29')]>0x0&&(_0x45f6ba[_0x425b22('0xb7a')][_0x25cc26[_0x425b22('0x905')]][_0x425b22('0x29')]-=0x1,delete _0x45f6ba[_0x425b22('0xb7a')][_0x25cc26['FaxQueueId']]['agents'][_0x25cc26['UserId']]);}var _0x22815c=!![],_0x2c986f=0x1;_0x18af60[_0x31191a('0x10e8')](_0x31191a('0x1948'),function(_0xc7ee75,_0x24ece5){var _0x2b3cac=_0x31191a;_0x22815c?_0x3e7bf4(function(){_0x22815c=![];}):(!_0x24ece5&&(_0x2c986f=_0x45f6ba[_0x2b3cac('0x77')][_0x2b3cac('0x2376')]),_0xc7ee75!==_0x24ece5&&(_0x45f6ba[_0x2b3cac('0x77')][_0x2b3cac('0x2376')]=0x1),!_0xc7ee75&&(_0x45f6ba['query']['page']=_0x2c986f),_0x45f6ba[_0x2b3cac('0x71c')]());});function _0x2bf367(_0xab458d){var _0x515c0b=_0x31191a;_0x45f6ba[_0x515c0b('0x205f')]=_0xab458d[_0x515c0b('0x205f')],_0x45f6ba[_0x515c0b('0xb7a')]=_0xab458d?_0x86640f()['keyBy'](_0xab458d['rows']?_0xab458d['rows']:[],'id'):{};if(_0xab458d['rows']){_0x45f6ba[_0x515c0b('0x2752')]=[];for(var _0x39c324=0x0;_0x39c324<_0xab458d[_0x515c0b('0x1b33')][_0x515c0b('0x577')];_0x39c324++){_0x45f6ba[_0x515c0b('0x2752')][_0x515c0b('0x206c')](_0xab458d[_0x515c0b('0x1b33')][_0x39c324]['id']);}}_0x319c1f();}function _0x22c9be(){var _0x2bd517=_0x31191a;_0x45f6ba['query'][_0x2bd517('0x15a5')]=(_0x45f6ba[_0x2bd517('0x77')][_0x2bd517('0x2376')]-0x1)*_0x45f6ba['query'][_0x2bd517('0x1f4a')],_0x5b57f7[_0x2bd517('0x21de')](_0x2bd517('0x1bd8'))?_0x45f6ba[_0x2bd517('0x71b')]=_0x444c03['faxQueue']['get'](_0x45f6ba['query'],_0x2bf367)[_0x2bd517('0x1376')]:(_0x45f6ba[_0x2bd517('0x77')]['id']=_0x45f6ba[_0x2bd517('0x758')]['id'],_0x45f6ba['query'][_0x2bd517('0x26ad')]='FaxQueues',_0x45f6ba[_0x2bd517('0x71b')]=_0x444c03[_0x2bd517('0x758')][_0x2bd517('0x321')](_0x45f6ba[_0x2bd517('0x77')],_0x2bf367)[_0x2bd517('0x1376')]);}function _0xe73fcb(_0x357521,_0x30cf73){var _0x14ce2e=_0x31191a;_0x36bd0a[_0x14ce2e('0x853')]({'controller':_0x14ce2e('0x93e'),'controllerAs':'vm','templateUrl':_0x1d59e5,'parent':angular[_0x14ce2e('0x1676')](_0x426e17[_0x14ce2e('0x2452')]),'targetEvent':_0x357521,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x30cf73,'faxQueues':_0x86640f()[_0x14ce2e('0x1843')](_0x45f6ba[_0x14ce2e('0xb7a')]),'license':null,'setting':null,'crudPermissions':_0x45f6ba['crudPermissions']}});}function _0x564426(_0x187e7b,_0xd33c71){var _0x5e6095=_0x31191a;_0x36bd0a[_0x5e6095('0x853')]({'controller':_0x5e6095('0x310'),'controllerAs':'vm','templateUrl':_0x4e75aa,'parent':angular[_0x5e6095('0x1676')](_0x426e17[_0x5e6095('0x2452')]),'targetEvent':_0x187e7b,'clickOutsideToClose':!![],'locals':{'faxQueue':_0xd33c71,'faxQueues':_0x45f6ba[_0x5e6095('0xb7a')]?_0x45f6ba[_0x5e6095('0xb7a')][_0x5e6095('0x1b33')]:[],'realtime':![],'crudPermissions':_0x45f6ba[_0x5e6095('0x5ed')]}});}function _0x58cc2c(_0x466b23){var _0x586303=_0x31191a;return _0x444c03[_0x586303('0x1cb7')]['update'](_0x466b23)[_0x586303('0x1376')][_0x586303('0x21ad')](function(){var _0x66b073=_0x586303;_0x3cbf4a[_0x66b073('0xdb1')]({'title':_0x66b073('0x12f9'),'msg':_0x466b23['name']?_0x466b23[_0x66b073('0x19fe')]+'\x20has\x20been\x20updated!':''});})[_0x586303('0x1c1d')](function(_0x388232){var _0x1ba7af=_0x586303;_0x3cbf4a[_0x1ba7af('0x2092')]({'title':'Error\x20creating\x20queue!','msg':_0x388232[_0x1ba7af('0x1224')]});});}_0x18af60['$on'](_0x31191a('0x1210'),function(){var _0x2bcb1e=_0x31191a;_0xed86b5[_0x2bcb1e('0x16cc')](_0x2bcb1e('0x9b7')),_0xed86b5['removeAllListeners'](_0x2bcb1e('0x12f1')),_0xed86b5[_0x2bcb1e('0x16cc')]('userFaxQueue:save'),_0xed86b5['removeAllListeners'](_0x2bcb1e('0x21f4')),_0xed86b5[_0x2bcb1e('0x16cc')](_0x2bcb1e('0x3b0')),_0xed86b5[_0x2bcb1e('0x16cc')](_0x2bcb1e('0x1595'));});}const _0x16107c=_0x93f603;function _0x40f91d(){var _0x12fdfe=_0x3877e3;return{'status':{'registered':'green-300-fg\x20icon-checkbox-marked-circle','unregistered':_0x12fdfe('0xf93'),'lagged':_0x12fdfe('0xf93'),'reachable':'green-300-fg\x20icon-checkbox-marked-circle','unreachable':'red-300-fg\x20icon-close-circle','unknown':'grey-fg\x20icon-minus-circle'},'state':{'unknown':_0x12fdfe('0x6b3'),'not_inuse':_0x12fdfe('0x2468'),'inuse':_0x12fdfe('0x270d'),'busy':_0x12fdfe('0x20c'),'invalid':_0x12fdfe('0x6b3'),'unavailable':_0x12fdfe('0x6b3'),'ringing':_0x12fdfe('0x540'),'ringinuse':_0x12fdfe('0x540'),'onhold':_0x12fdfe('0x273a')},'channelStatus':{'ring':_0x12fdfe('0x540'),'up':_0x12fdfe('0x1dcd'),'hangup':_0x12fdfe('0xe0f')},'channelStatusOut':{'ring':_0x12fdfe('0x229b'),'up':_0x12fdfe('0x1dcd'),'hangup':_0x12fdfe('0xe0f')}};}const _0x2bfb23=_0x40f91d;_0x50e54d[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'socket'];function _0x50e54d(_0x19a250,_0x42f2bf,_0x5742a1){var _0xd2e9b1=_0x3877e3,_0x1e463a=this;_0x5742a1[_0xd2e9b1('0x8d8')](),_0x5742a1[_0xd2e9b1('0x663')](),_0x1e463a[_0xd2e9b1('0x302')]=0x0;switch(_0x42f2bf[_0xd2e9b1('0x1ccb')][_0xd2e9b1('0x19fe')]){case _0xd2e9b1('0x107d'):_0x1e463a[_0xd2e9b1('0x302')]=0x0;break;case _0xd2e9b1('0x157'):_0x1e463a['selectedTab']=0x1;break;case _0xd2e9b1('0x3db'):_0x1e463a[_0xd2e9b1('0x302')]=0x2;break;case _0xd2e9b1('0x232e'):_0x1e463a['selectedTab']=0x3;break;default:_0x1e463a[_0xd2e9b1('0x302')]=0x0,_0x42f2bf['go'](_0xd2e9b1('0x107d'));}_0x19a250[_0xd2e9b1('0x10e8')](_0xd2e9b1('0xc2'),function(_0x45e3d2,_0x42977a){var _0xd94e3b=_0xd2e9b1;if(_0x45e3d2!==_0x42977a)switch(_0x45e3d2){case 0x0:_0x42f2bf['go'](_0xd94e3b('0x107d'));break;case 0x1:_0x42f2bf['go']('app.fax.realtime.trunks');break;case 0x2:_0x42f2bf['go']('app.fax.realtime.queues');break;case 0x3:_0x42f2bf['go'](_0xd94e3b('0x232e'));break;default:_0x42f2bf['go']('app.fax.realtime.agents');}});}const _0xf8564=_0x50e54d;_0x2d674d['$inject']=['$scope','$timeout','$mdDialog',_0x3877e3('0x1593'),_0x3877e3('0xc8c'),_0x3877e3('0xccd'),'socket',_0x3877e3('0x2703'),'$state','userProfile',_0x3877e3('0xab4'),_0x3877e3('0x15bc')];function _0x2d674d(_0x8a7233,_0x4b0cf4,_0x28ec3f,_0x3efcba,_0x525a9a,_0x14d54e,_0x14e579,_0x3f38c4,_0x462284,_0x562b7b,_0xb182c8,_0xff9fe9){var _0x4bc784=_0x3877e3,_0x5ad08e=this,_0x6b1bd0=['status',_0x4bc784('0x1e53'),_0x4bc784('0x87d'),_0x4bc784('0x1c01'),'port',_0x4bc784('0x201f'),_0x4bc784('0x27e'),'status'];_0x5ad08e[_0x4bc784('0x123f')]=_0xff9fe9['getCurrentUser'](),_0x5ad08e[_0x4bc784('0x205f')]=_0x3efcba[_0x4bc784('0x205f')],_0x5ad08e[_0x4bc784('0x1593')]=_0x3efcba?_0x3efcba[_0x4bc784('0x1b33')]:[],_0x5ad08e[_0x4bc784('0xc8c')]=_0x525a9a?_0x525a9a[_0x4bc784('0x1b33')]?_0x525a9a[_0x4bc784('0x1b33')]:[]:[],_0x5ad08e[_0x4bc784('0x77')]={'fields':_0x4bc784('0x1aa8'),'active':!![],'sort':'-updatedAt','limit':0xa,'page':0x1},_0x5ad08e[_0x4bc784('0x705')]=_0x3f38c4[_0x4bc784('0x209')],_0x5ad08e[_0x4bc784('0x2302')]=_0x3f38c4[_0x4bc784('0x27e')],_0x5ad08e[_0x4bc784('0x758')]=_0x562b7b,_0x5ad08e[_0x4bc784('0xab4')]=_0xb182c8&&_0xb182c8[_0x4bc784('0x205f')]==0x1?_0xb182c8[_0x4bc784('0x1b33')][0x0]:null,_0x5ad08e[_0x4bc784('0x5ed')]=_0xff9fe9[_0x4bc784('0x1778')](_0x5ad08e[_0x4bc784('0xab4')]?_0x5ad08e[_0x4bc784('0xab4')]['crudPermissions']:null),_0x5ad08e[_0x4bc784('0xdb1')]=_0x14c13c,_0x5ad08e[_0x4bc784('0x14b')]=_0x1a6617,_0x5ad08e['showInfo']=_0x44beb0,_0x5ad08e[_0x4bc784('0x1c50')]=_0xac93b6,_0x5ad08e[_0x4bc784('0x6aa')]=_0x4bba4b,_0x5ad08e[_0x4bc784('0x1b74')]=_0x541859,_0x14e579['on'](_0x4bc784('0x1bc1'),_0x5ad08e['onSave']);function _0x1a6617(){var _0x1d6905=_0x4bc784,_0x16dbd8;for(var _0x19422b=0x0;_0x19422b<_0x5ad08e['trunks']['length'];_0x19422b+=0x1){_0x16dbd8=_0x86640f()[_0x1d6905('0x127')](_0x5ad08e[_0x1d6905('0xc8c')],['id',_0x5ad08e[_0x1d6905('0x1593')][_0x19422b]['id']]),_0x16dbd8>=0x0&&_0x86640f()[_0x1d6905('0xd0e')](_0x5ad08e[_0x1d6905('0x1593')][_0x19422b],_0x86640f()[_0x1d6905('0xc50')](_0x5ad08e[_0x1d6905('0xc8c')][_0x16dbd8],_0x6b1bd0));}}function _0x44beb0(_0x556325){var _0x329922=_0x4bc784;_0x28ec3f[_0x329922('0x853')](_0x28ec3f[_0x329922('0x95b')]()[_0x329922('0x1226')](!![])[_0x329922('0x4b4')](_0x329922('0xcc0'))[_0x329922('0x276b')](_0x329922('0xfcf'))['ok']('Ok')[_0x329922('0x1e6d')](_0x556325));}function _0x374826(_0x3a5395,_0x28524f,_0x38dd60){var _0x2a3150=_0x4bc784;_0x28524f>=0x0&&_0x86640f()['merge'](_0x3a5395[_0x28524f],_0x86640f()[_0x2a3150('0xc50')](_0x38dd60,_0x6b1bd0));}function _0x541859(_0x3461f8){var _0x59c15d=_0x4bc784,_0x5df1ef=_0x86640f()[_0x59c15d('0x127')](_0x5ad08e[_0x59c15d('0x1593')],['id',_0x3461f8['id']]),_0x495bf4=_0x86640f()[_0x59c15d('0x127')](_0x5ad08e[_0x59c15d('0xc8c')],['id',_0x3461f8['id']]);_0x374826(_0x5ad08e[_0x59c15d('0x1593')],_0x5df1ef,_0x3461f8),_0x374826(_0x5ad08e[_0x59c15d('0xc8c')],_0x495bf4,_0x3461f8);}var _0x8b7ae8=!![],_0x9be4e8=0x1;_0x8a7233['$watch'](_0x4bc784('0x1948'),function(_0x520621,_0x2c65fd){var _0x5d3203=_0x4bc784;_0x8b7ae8?_0x4b0cf4(function(){_0x8b7ae8=![];}):(!_0x2c65fd&&(_0x9be4e8=_0x5ad08e['query'][_0x5d3203('0x2376')]),_0x520621!==_0x2c65fd&&(_0x5ad08e[_0x5d3203('0x77')]['page']=0x1),!_0x520621&&(_0x5ad08e['query'][_0x5d3203('0x2376')]=_0x9be4e8),_0x5ad08e[_0x5d3203('0x1c50')]());});function _0x14c13c(_0x3a0fe0){var _0x498b6d=_0x4bc784;_0x5ad08e[_0x498b6d('0x205f')]=_0x3a0fe0['count'],_0x5ad08e[_0x498b6d('0x1593')]=_0x3a0fe0?_0x3a0fe0[_0x498b6d('0x1b33')]?_0x3a0fe0[_0x498b6d('0x1b33')]:[]:[],_0x1a6617();}function _0xac93b6(){var _0x3d2bfc=_0x4bc784;_0x5ad08e[_0x3d2bfc('0x77')][_0x3d2bfc('0x15a5')]=(_0x5ad08e[_0x3d2bfc('0x77')][_0x3d2bfc('0x2376')]-0x1)*_0x5ad08e[_0x3d2bfc('0x77')][_0x3d2bfc('0x1f4a')],_0xff9fe9[_0x3d2bfc('0x21de')](_0x3d2bfc('0x1bd8'))?_0x5ad08e[_0x3d2bfc('0x71b')]=_0x14d54e['trunk'][_0x3d2bfc('0x595')](_0x5ad08e[_0x3d2bfc('0x77')],_0x14c13c)[_0x3d2bfc('0x1376')]:(_0x5ad08e[_0x3d2bfc('0x77')]['id']=_0x5ad08e[_0x3d2bfc('0x758')]['id'],_0x5ad08e[_0x3d2bfc('0x77')][_0x3d2bfc('0x26ad')]=_0x3d2bfc('0x616'),_0x5ad08e[_0x3d2bfc('0x71b')]=_0x14d54e[_0x3d2bfc('0x758')]['getResources'](_0x5ad08e[_0x3d2bfc('0x77')],_0x14c13c)[_0x3d2bfc('0x1376')]);}_0x8a7233[_0x4bc784('0x1723')](_0x4bc784('0x1210'),function(){var _0x8e975b=_0x4bc784;_0x14e579['removeAllListeners'](_0x8e975b('0x1bc1'));});function _0x4bba4b(_0x43de77,_0x434b51){var _0x267017=_0x4bc784;_0x462284['go'](_0x267017('0xe06'),{'id':_0x434b51['id']});}}const _0x550eb4=_0x2d674d;_0x2abf30['$inject']=['$stateProvider'];function _0x2abf30(_0x4fbe82){var _0x31a498=_0x3877e3;_0x4fbe82[_0x31a498('0x27e')]('app.fax.realtime',{'url':_0x31a498('0x1b34'),'views':{'content@app':{'templateUrl':_0x69d19a,'controller':_0x31a498('0x1bb3')}},'resolve':{'userProfile':['apiResolver',_0x31a498('0x15bc'),function _0x3c1f9c(_0x23a66e,_0x7bde06){var _0x5a67c1=_0x31a498;return _0x7bde06[_0x5a67c1('0x21de')]('admin')?null:_0x23a66e[_0x5a67c1('0x8ac')](_0x5a67c1('0x1e1d'),{'fields':_0x5a67c1('0x1a00'),'id':_0x7bde06[_0x5a67c1('0x15ed')]()[_0x5a67c1('0x1618')]});}],'userProfileSection':['apiResolver',_0x31a498('0x15bc'),function _0x146956(_0x2b2bd7,_0x7a20ce){var _0x14eb86=_0x31a498;return _0x7a20ce[_0x14eb86('0x21de')]('admin')?null:_0x2b2bd7['resolve'](_0x14eb86('0x222f'),{'fields':_0x14eb86('0x1852'),'userProfileId':_0x7a20ce[_0x14eb86('0x15ed')]()[_0x14eb86('0x1618')],'sectionId':0x38e});}]},'authenticate':!![],'permissionId':0x38e})['state'](_0x31a498('0x107d'),{'url':_0x31a498('0x69c'),'controller':_0x31a498('0x1cdc'),'templateUrl':_0x38fd1c,'resolve':{'pauses':[_0x31a498('0x354'),function _0x5c765a(_0x3d8c1b){var _0x7fc4f2=_0x31a498;return _0x3d8c1b[_0x7fc4f2('0x8ac')](_0x7fc4f2('0x12e0'),{'nolimit':!![]});}],'agents':[_0x31a498('0x354'),'Auth',function _0x546a97(_0x15d18b,_0x1a682a){var _0x60a971=_0x31a498;return _0x1a682a['hasRole'](_0x60a971('0x1bd8'))?_0x15d18b[_0x60a971('0x8ac')](_0x60a971('0x1913'),{'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':_0x60a971('0x2402'),'sort':_0x60a971('0x20f5'),'nolimit':!![]}):_0x15d18b['resolve'](_0x60a971('0x52f'),{'id':_0x1a682a[_0x60a971('0x15ed')]()[_0x60a971('0x1618')],'section':_0x60a971('0xfed'),'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':_0x60a971('0x2402'),'sort':'fullname','nolimit':!![]});}],'userProfile':[_0x31a498('0x354'),_0x31a498('0x15bc'),function _0x543039(_0x2c0803,_0x2b1cb6){var _0xa1743e=_0x31a498;return _0x2b1cb6[_0xa1743e('0x21de')]('admin')?null:_0x2c0803[_0xa1743e('0x8ac')](_0xa1743e('0x1e1d'),{'fields':_0xa1743e('0x1a00'),'id':_0x2b1cb6[_0xa1743e('0x15ed')]()[_0xa1743e('0x1618')]});}],'userProfileSection':['apiResolver','Auth',function _0x271baf(_0x476460,_0x521ba4){var _0x469166=_0x31a498;return _0x521ba4[_0x469166('0x21de')](_0x469166('0x1bd8'))?null:_0x476460[_0x469166('0x8ac')](_0x469166('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x521ba4[_0x469166('0x15ed')]()[_0x469166('0x1618')],'sectionId':0xca});}],'rpcAgents':['apiResolver',function _0x6a9ab5(_0x105353){var _0x1755b7=_0x31a498;return _0x105353['resolve'](_0x1755b7('0x2685'));}]},'authenticate':!![],'permissionId':0x38e})[_0x31a498('0x27e')](_0x31a498('0x157'),{'url':_0x31a498('0x1acd'),'controller':'TrunksFaxRealtimeController\x20as\x20vm','templateUrl':_0x70d3d0,'resolve':{'trunks':[_0x31a498('0x354'),_0x31a498('0x15bc'),function _0x21c7c5(_0x585171,_0x477b5c){var _0xcbfc6d=_0x31a498;return _0x477b5c[_0xcbfc6d('0x21de')](_0xcbfc6d('0x1bd8'))?_0x585171['resolve'](_0xcbfc6d('0xfe0'),{'fields':_0xcbfc6d('0x1aa8'),'active':!![],'sort':_0xcbfc6d('0x33'),'limit':0xa,'offset':0x0}):_0x585171[_0xcbfc6d('0x8ac')]('userProfile@getResources',{'id':_0x477b5c['getCurrentUser']()[_0xcbfc6d('0x1618')],'section':_0xcbfc6d('0x616'),'fields':_0xcbfc6d('0x1aa8'),'active':!![],'sort':_0xcbfc6d('0x33'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function _0x2e4cd8(_0x44191a,_0x36bd0b){var _0x1b812f=_0x31a498;return _0x36bd0b[_0x1b812f('0x21de')](_0x1b812f('0x1bd8'))?null:_0x44191a[_0x1b812f('0x8ac')](_0x1b812f('0x1e1d'),{'fields':_0x1b812f('0x1a00'),'id':_0x36bd0b[_0x1b812f('0x15ed')]()['userProfileId']});}],'userProfileSection':[_0x31a498('0x354'),_0x31a498('0x15bc'),function _0x4d47ee(_0x240cde,_0xb33480){var _0x10aedf=_0x31a498;return _0xb33480['hasRole'](_0x10aedf('0x1bd8'))?null:_0x240cde[_0x10aedf('0x8ac')](_0x10aedf('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xb33480[_0x10aedf('0x15ed')]()[_0x10aedf('0x1618')],'sectionId':0x3f3});}],'rpcTrunks':[_0x31a498('0x354'),function _0x351a29(_0x1774aa){var _0x1e9d68=_0x31a498;return _0x1774aa[_0x1e9d68('0x8ac')]('rpc@getTrunks');}]},'authenticate':!![],'permissionId':0x38e})[_0x31a498('0x27e')](_0x31a498('0x3db'),{'url':_0x31a498('0x13e2'),'controller':_0x31a498('0x1629'),'templateUrl':_0x13dece,'resolve':{'queues':[_0x31a498('0x354'),_0x31a498('0x15bc'),function _0x366bac(_0x99a9b5,_0xc2a7e){var _0x28a73e=_0x31a498;return _0xc2a7e[_0x28a73e('0x21de')](_0x28a73e('0x1bd8'))?_0x99a9b5[_0x28a73e('0x8ac')](_0x28a73e('0x13e0'),{'type':_0x28a73e('0x923'),'sort':_0x28a73e('0x33'),'limit':0xa,'offset':0x0}):_0x99a9b5[_0x28a73e('0x8ac')](_0x28a73e('0x52f'),{'id':_0xc2a7e[_0x28a73e('0x15ed')]()[_0x28a73e('0x1618')],'section':_0x28a73e('0x20f7'),'channel':_0x28a73e('0x93f'),'type':'inbound','sort':_0x28a73e('0x33'),'limit':0xa,'page':0x1});}],'userProfile':[_0x31a498('0x354'),_0x31a498('0x15bc'),function _0x54e316(_0x266615,_0x28f993){var _0x3f057a=_0x31a498;return _0x28f993[_0x3f057a('0x21de')](_0x3f057a('0x1bd8'))?null:_0x266615[_0x3f057a('0x8ac')](_0x3f057a('0x1e1d'),{'fields':_0x3f057a('0x1a00'),'id':_0x28f993['getCurrentUser']()[_0x3f057a('0x1618')]});}],'userProfileSection':[_0x31a498('0x354'),'Auth',function _0x438bb5(_0x395d8f,_0x1b46da){var _0x345e34=_0x31a498;return _0x1b46da[_0x345e34('0x21de')](_0x345e34('0x1bd8'))?null:_0x395d8f[_0x345e34('0x8ac')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1b46da[_0x345e34('0x15ed')]()[_0x345e34('0x1618')],'sectionId':0x385});}],'rpcQueues':['apiResolver',function _0x1f5d4f(_0x169b19){var _0x2b2559=_0x31a498;return _0x169b19[_0x2b2559('0x8ac')]('rpc@getFaxQueues');}]},'authenticate':!![],'permissionId':0x38e})[_0x31a498('0x27e')](_0x31a498('0x232e'),{'url':_0x31a498('0x192c'),'controller':'FaxAccountsRealtimeController\x20as\x20vm','templateUrl':_0x2cecae,'resolve':{'faxAccounts':[_0x31a498('0x354'),'Auth',function _0x27dfc1(_0x55fe93,_0x312763){var _0x33c006=_0x31a498;return _0x312763['hasRole'](_0x33c006('0x1bd8'))?_0x55fe93[_0x33c006('0x8ac')](_0x33c006('0x8b9'),{'sort':_0x33c006('0x33'),'limit':0xa,'offset':0x0}):_0x55fe93[_0x33c006('0x8ac')](_0x33c006('0x52f'),{'id':_0x312763['getCurrentUser']()[_0x33c006('0x1618')],'section':_0x33c006('0xbe8'),'sort':_0x33c006('0x33'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x31a498('0x15bc'),function _0x2d2131(_0x16d599,_0x2397ff){var _0xefb9a7=_0x31a498;return _0x2397ff[_0xefb9a7('0x21de')]('admin')?null:_0x16d599[_0xefb9a7('0x8ac')](_0xefb9a7('0x1e1d'),{'fields':_0xefb9a7('0x1a00'),'id':_0x2397ff['getCurrentUser']()[_0xefb9a7('0x1618')]});}],'userProfileSection':[_0x31a498('0x354'),'Auth',function _0x1182a2(_0x2f3da0,_0x3c6746){var _0x3f61bd=_0x31a498;return _0x3c6746[_0x3f61bd('0x21de')]('admin')?null:_0x2f3da0[_0x3f61bd('0x8ac')](_0x3f61bd('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3c6746[_0x3f61bd('0x15ed')]()['userProfileId'],'sectionId':0x386});}],'rpcFaxAccounts':[_0x31a498('0x354'),function _0x383d44(_0xb62cba){var _0x2e9ee5=_0x31a498;return _0xb62cba[_0x2e9ee5('0x8ac')](_0x2e9ee5('0x33a'));}]},'authenticate':!![],'permissionId':0x38e});}angular[_0x3877e3('0x20d5')]('app.fax.realtime',[])['config'](_0x2abf30)[_0x3877e3('0x1d5a')](_0x3877e3('0x27be'),_0x544230)['controller']('AgentsFaxRealtimeController',_0xe386e1)[_0x3877e3('0x1d5a')](_0x3877e3('0xd1a'),_0x16107c)['factory']('helperClasses',_0x2bfb23)[_0x3877e3('0x1d5a')](_0x3877e3('0xfe'),_0xf8564)[_0x3877e3('0x1d5a')](_0x3877e3('0x1fc4'),_0x550eb4),_0x59de67[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q','$translate','toasty',_0x3877e3('0x1695'),_0x3877e3('0xeb2'),_0x3877e3('0xccd'),'Auth',_0x3877e3('0x2ff'),_0x3877e3('0x21e'),'crudPermissions'];function _0x59de67(_0x5cf521,_0x2f635b,_0x1160af,_0x45b683,_0x57767d,_0x4730b2,_0x501c7e,_0x4fb101,_0x19bcb4,_0xe773ed,_0x3a650a,_0x151a94,_0x4e43c7,_0x39f262){var _0x5ec4b5=_0x3877e3,_0x48ff1c=this;_0x48ff1c[_0x5ec4b5('0x123f')]=_0x3a650a[_0x5ec4b5('0x15ed')](),_0x48ff1c[_0x5ec4b5('0x1a69')]=[],_0x48ff1c[_0x5ec4b5('0x21e')]=_0x4e43c7,_0x48ff1c[_0x5ec4b5('0x2ff')]=_0x151a94,_0x48ff1c[_0x5ec4b5('0x5ed')]=_0x39f262,_0x48ff1c['hasModulePermissions']={},_0x48ff1c['passwordPattern']=_0x48ff1c[_0x5ec4b5('0x21e')]&&_0x48ff1c[_0x5ec4b5('0x21e')][_0x5ec4b5('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x48ff1c[_0x5ec4b5('0x4b4')]=_0x5ec4b5('0x12a4'),_0x48ff1c[_0x5ec4b5('0xeb2')]=angular['copy'](_0x19bcb4),_0x48ff1c['faxAccounts']=_0x4fb101,_0x48ff1c[_0x5ec4b5('0x242f')]=![];!_0x48ff1c[_0x5ec4b5('0xeb2')]&&(_0x48ff1c['faxAccount']={'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x48ff1c['title']='FAX.NEW_FAXACCOUNT',_0x48ff1c[_0x5ec4b5('0x242f')]=!![]);_0x2f635b['params']['id']&&(_0x48ff1c[_0x5ec4b5('0xeb2')][_0x5ec4b5('0x1de9')]=_0x2f635b[_0x5ec4b5('0x171b')]['id']);_0x48ff1c['addNewFaxAccount']=_0x371aac,_0x48ff1c[_0x5ec4b5('0x1ff2')]=_0x451a3a,_0x48ff1c[_0x5ec4b5('0xd68')]=_0x21efab,_0x48ff1c[_0x5ec4b5('0x279')]=_0x114ef6,_0x48ff1c[_0x5ec4b5('0x167')]=_0x3b06db,_0x3a650a[_0x5ec4b5('0x21de')]('admin')?_0xe773ed[_0x5ec4b5('0x1280')][_0x5ec4b5('0x595')]({'fields':_0x5ec4b5('0x1aa8'),'sort':'name'})[_0x5ec4b5('0x1376')]['then'](function(_0x4ed8f8){var _0x286851=_0x5ec4b5;_0x48ff1c[_0x286851('0x1593')]=_0x4ed8f8[_0x286851('0x1b33')]||[];})[_0x5ec4b5('0x1c1d')](function(_0x403e7e){var _0x739f1a=_0x5ec4b5;_0x501c7e[_0x739f1a('0x2092')]({'title':_0x403e7e['status']?'API:'+_0x403e7e[_0x739f1a('0x209')]+_0x739f1a('0xa99')+_0x403e7e['statusText']:_0x739f1a('0x9ee'),'msg':_0x403e7e[_0x739f1a('0x11c2')]?JSON[_0x739f1a('0x25e')](_0x403e7e[_0x739f1a('0x11c2')]):_0x403e7e[_0x739f1a('0x174f')]()});}):_0xe773ed[_0x5ec4b5('0x1280')][_0x5ec4b5('0x595')]({'fields':_0x5ec4b5('0x1aa8'),'sort':_0x5ec4b5('0x19fe')})[_0x5ec4b5('0x1376')][_0x5ec4b5('0x21ad')](function(_0x4fbd69){var _0x1f5b95=_0x5ec4b5;_0x48ff1c[_0x1f5b95('0x1593')]=_0x4fbd69['rows']||[];})['then'](function(){var _0x4260d9=_0x5ec4b5;return _0xe773ed['userProfileSection']['get']({'userProfileId':_0x48ff1c['currentUser'][_0x4260d9('0x1618')],'sectionId':0x3f3})[_0x4260d9('0x1376')];})['then'](function(_0x591f8e){var _0x55011a=_0x5ec4b5,_0x1b9773=_0x591f8e&&_0x591f8e[_0x55011a('0x1b33')]?_0x591f8e[_0x55011a('0x1b33')][0x0]:null;if(!_0x1b9773){var _0xd7971b=[],_0x3b4a46=null;_0x48ff1c[_0x55011a('0xeb2')]&&(_0x3b4a46=_0x86640f()[_0x55011a('0x1d2e')](_0x48ff1c[_0x55011a('0x1593')],{'id':Number(_0x48ff1c['faxAccount']['TrunkId'])}));for(var _0x122f0f=0x0;_0x122f0f<_0x48ff1c['trunks'][_0x55011a('0x577')];_0x122f0f++){_0x3b4a46&&_0x48ff1c['trunks'][_0x122f0f]['id']===_0x3b4a46['id']&&(_0x48ff1c[_0x55011a('0x1593')][_0x122f0f]['canSelect']=![],_0xd7971b[_0x55011a('0x206c')](_0x48ff1c[_0x55011a('0x1593')][_0x122f0f]));}_0x48ff1c[_0x55011a('0x1593')]=_0xd7971b;}else{if(!_0x1b9773['autoAssociation'])return _0xe773ed[_0x55011a('0x185e')][_0x55011a('0x595')]({'sectionId':_0x1b9773['id']})['$promise'][_0x55011a('0x21ad')](function(_0x1309c1){var _0xd5cb7e=_0x55011a,_0x180489=_0x86640f()[_0xd5cb7e('0x26c3')](_0x1309c1[_0xd5cb7e('0x1b33')],function(_0x26268c){var _0x32f7ff=_0xd5cb7e;return _0x86640f()[_0x32f7ff('0x1d2e')](_0x48ff1c[_0x32f7ff('0x1593')],{'id':_0x26268c[_0x32f7ff('0x675')]});}),_0xf557ba=null;_0x48ff1c[_0xd5cb7e('0xeb2')]&&(_0xf557ba=_0x86640f()['find'](_0x48ff1c['trunks'],{'id':Number(_0x48ff1c['faxAccount'][_0xd5cb7e('0x1026')])}));if(_0xf557ba&&!_0x86640f()['some'](_0x180489,['id',_0xf557ba['id']])){var _0x35d2ad=_0x86640f()[_0xd5cb7e('0x1d2e')](_0x48ff1c[_0xd5cb7e('0x1593')],{'id':_0xf557ba['id']});_0x35d2ad[_0xd5cb7e('0xba')]=![],_0x180489['push'](_0x35d2ad);}_0x48ff1c[_0xd5cb7e('0x1593')]=_0x180489;});}})['catch'](function(_0x1b2e9e){var _0x26cc6a=_0x5ec4b5;_0x501c7e[_0x26cc6a('0x2092')]({'title':_0x1b2e9e[_0x26cc6a('0x209')]?'API:'+_0x1b2e9e[_0x26cc6a('0x209')]+_0x26cc6a('0xa99')+_0x1b2e9e[_0x26cc6a('0x1808')]:'SYSTEM:GETtrunks','msg':_0x1b2e9e[_0x26cc6a('0x11c2')]?JSON[_0x26cc6a('0x25e')](_0x1b2e9e['data']):_0x1b2e9e[_0x26cc6a('0x174f')]()});}),_0x3a650a['hasRole'](_0x5ec4b5('0x1bd8'))?_0xe773ed[_0x5ec4b5('0x11e0')][_0x5ec4b5('0x595')]({'fields':'id,name','sort':_0x5ec4b5('0x19fe')})[_0x5ec4b5('0x1376')][_0x5ec4b5('0x21ad')](function(_0x5d9ca3){var _0x47b69f=_0x5ec4b5;_0x48ff1c[_0x47b69f('0x1972')]=_0x5d9ca3[_0x47b69f('0x1b33')]||[];})['catch'](function(_0x3b3539){var _0x28b7e6=_0x5ec4b5;_0x501c7e[_0x28b7e6('0x2092')]({'title':_0x3b3539['status']?'API:'+_0x3b3539[_0x28b7e6('0x209')]+'\x20-\x20'+_0x3b3539[_0x28b7e6('0x1808')]:'SYSTEM:GET_LISTS','msg':_0x3b3539[_0x28b7e6('0x11c2')]?JSON[_0x28b7e6('0x25e')](_0x3b3539[_0x28b7e6('0x11c2')]):_0x3b3539[_0x28b7e6('0x174f')]()});}):_0xe773ed['cmList']['get']({'fields':_0x5ec4b5('0x1aa8'),'sort':_0x5ec4b5('0x19fe')})[_0x5ec4b5('0x1376')][_0x5ec4b5('0x21ad')](function(_0x150f2d){var _0x51d154=_0x5ec4b5;_0x48ff1c[_0x51d154('0x1972')]=_0x150f2d[_0x51d154('0x1b33')]||[];})[_0x5ec4b5('0x21ad')](function(){var _0x5ebe15=_0x5ec4b5;return _0xe773ed[_0x5ebe15('0xab4')][_0x5ebe15('0x595')]({'userProfileId':_0x48ff1c[_0x5ebe15('0x123f')]['userProfileId'],'sectionId':0x12d})[_0x5ebe15('0x1376')];})[_0x5ec4b5('0x21ad')](function(_0x5e8632){var _0x52793c=_0x5ec4b5,_0x29a8ea=_0x5e8632&&_0x5e8632[_0x52793c('0x1b33')]?_0x5e8632[_0x52793c('0x1b33')][0x0]:null;if(!_0x29a8ea){var _0x2b75b6=[],_0x581451=null;_0x48ff1c[_0x52793c('0xeb2')]&&(_0x581451=_0x86640f()[_0x52793c('0x1d2e')](_0x48ff1c[_0x52793c('0x1972')],{'id':Number(_0x48ff1c[_0x52793c('0xeb2')][_0x52793c('0x815')])}));for(var _0x418263=0x0;_0x418263<_0x48ff1c[_0x52793c('0x1972')]['length'];_0x418263++){_0x581451&&_0x48ff1c[_0x52793c('0x1972')][_0x418263]['id']===_0x581451['id']&&(_0x48ff1c[_0x52793c('0x1972')][_0x418263]['canSelect']=![],_0x2b75b6['push'](_0x48ff1c['lists'][_0x418263]));}_0x48ff1c[_0x52793c('0x1972')]=_0x2b75b6;}else{if(!_0x29a8ea[_0x52793c('0x80c')])return _0xe773ed[_0x52793c('0x185e')][_0x52793c('0x595')]({'sectionId':_0x29a8ea['id']})[_0x52793c('0x1376')][_0x52793c('0x21ad')](function(_0x29d812){var _0x423eb2=_0x52793c,_0x4d35f4=_0x86640f()[_0x423eb2('0x26c3')](_0x29d812[_0x423eb2('0x1b33')],function(_0x4f69ba){var _0x1b8253=_0x423eb2;return _0x86640f()['find'](_0x48ff1c[_0x1b8253('0x1972')],{'id':_0x4f69ba['resourceId']});}),_0x2cf338=null;_0x48ff1c['faxAccount']&&(_0x2cf338=_0x86640f()['find'](_0x48ff1c['lists'],{'id':Number(_0x48ff1c[_0x423eb2('0xeb2')]['ListId'])}));if(_0x2cf338&&!_0x86640f()['some'](_0x4d35f4,['id',_0x2cf338['id']])){var _0x576d07=_0x86640f()[_0x423eb2('0x1d2e')](_0x48ff1c[_0x423eb2('0x1972')],{'id':_0x2cf338['id']});_0x576d07[_0x423eb2('0xba')]=![],_0x4d35f4[_0x423eb2('0x206c')](_0x576d07);}_0x48ff1c[_0x423eb2('0x1972')]=_0x4d35f4;});}})[_0x5ec4b5('0x1c1d')](function(_0x3f138e){var _0x1c455f=_0x5ec4b5;_0x501c7e[_0x1c455f('0x2092')]({'title':_0x3f138e[_0x1c455f('0x209')]?_0x1c455f('0x22d')+_0x3f138e[_0x1c455f('0x209')]+_0x1c455f('0xa99')+_0x3f138e['statusText']:_0x1c455f('0xa92'),'msg':_0x3f138e[_0x1c455f('0x11c2')]?JSON[_0x1c455f('0x25e')](_0x3f138e[_0x1c455f('0x11c2')]):_0x3f138e[_0x1c455f('0x174f')]()});});function _0x371aac(){var _0x1498cf=_0x5ec4b5;_0x48ff1c['errors']=[],_0xe773ed[_0x1498cf('0xeb2')][_0x1498cf('0x60a')](_0x48ff1c[_0x1498cf('0xeb2')])['$promise'][_0x1498cf('0x21ad')](function(_0x1d94e9){var _0xaba18e=_0x1498cf;_0x48ff1c[_0xaba18e('0x1695')]['unshift'](_0x1d94e9[_0xaba18e('0x3bc')]()),_0x501c7e[_0xaba18e('0xdb1')]({'title':_0xaba18e('0x158e'),'msg':_0x48ff1c[_0xaba18e('0xeb2')][_0xaba18e('0x19fe')]?_0x48ff1c[_0xaba18e('0xeb2')]['name']+_0xaba18e('0x1694'):''}),_0x3b06db(_0x1d94e9);})[_0x1498cf('0x1c1d')](function(_0x2ccc03){var _0x143675=_0x1498cf;if(_0x2ccc03['data']&&_0x2ccc03[_0x143675('0x11c2')][_0x143675('0x1a69')]&&_0x2ccc03[_0x143675('0x11c2')]['errors'][_0x143675('0x577')]){_0x48ff1c[_0x143675('0x1a69')]=_0x2ccc03['data'][_0x143675('0x1a69')]||[{'message':_0x2ccc03['toString'](),'type':_0x143675('0x3e5')}];for(var _0x19ac2e=0x0;_0x19ac2e<_0x2ccc03['data'][_0x143675('0x1a69')]['length'];_0x19ac2e+=0x1){_0x501c7e['error']({'title':_0x2ccc03['data'][_0x143675('0x1a69')][_0x19ac2e][_0x143675('0x7fa')],'msg':_0x2ccc03['data'][_0x143675('0x1a69')][_0x19ac2e]['message']});}}else _0x501c7e['error']({'title':_0x2ccc03[_0x143675('0x209')]?'API:'+_0x2ccc03[_0x143675('0x209')]+'\x20-\x20'+_0x2ccc03['statusText']:_0x143675('0x3e5'),'msg':_0x2ccc03[_0x143675('0x11c2')]?JSON['stringify'](_0x2ccc03[_0x143675('0x11c2')]['message']):_0x2ccc03[_0x143675('0x174f')]()});});}function _0x451a3a(){var _0x27b5c0=_0x5ec4b5;_0x48ff1c['errors']=[],_0xe773ed['faxAccount'][_0x27b5c0('0x250d')](_0x48ff1c[_0x27b5c0('0xeb2')])[_0x27b5c0('0x1376')]['then'](function(_0x271d6f){var _0x393242=_0x27b5c0,_0x1005be=_0x86640f()[_0x393242('0x1d2e')](_0x48ff1c['faxAccounts'],{'id':_0x271d6f['id']});_0x1005be&&_0x86640f()['merge'](_0x1005be,_0x86640f()[_0x393242('0xc50')](_0x271d6f[_0x393242('0x3bc')](),_0x86640f()['keys'](_0x1005be))),_0x501c7e['success']({'title':_0x393242('0x25bd'),'msg':_0x48ff1c['faxAccount'][_0x393242('0x19fe')]?_0x48ff1c[_0x393242('0xeb2')][_0x393242('0x19fe')]+_0x393242('0x2249'):''}),_0x3b06db(_0x271d6f);})['catch'](function(_0x238bd1){var _0xfab873=_0x27b5c0;if(_0x238bd1['data']&&_0x238bd1[_0xfab873('0x11c2')][_0xfab873('0x1a69')]&&_0x238bd1[_0xfab873('0x11c2')][_0xfab873('0x1a69')][_0xfab873('0x577')]){_0x48ff1c[_0xfab873('0x1a69')]=_0x238bd1[_0xfab873('0x11c2')][_0xfab873('0x1a69')]||[{'message':_0x238bd1[_0xfab873('0x174f')](),'type':_0xfab873('0x21cb')}];for(var _0x2e56da=0x0;_0x2e56da<_0x238bd1['data'][_0xfab873('0x1a69')][_0xfab873('0x577')];_0x2e56da++){_0x501c7e[_0xfab873('0x2092')]({'title':_0x238bd1['data'][_0xfab873('0x1a69')][_0x2e56da][_0xfab873('0x7fa')],'msg':_0x238bd1[_0xfab873('0x11c2')][_0xfab873('0x1a69')][_0x2e56da][_0xfab873('0x1224')]});}}else _0x501c7e['error']({'title':_0x238bd1[_0xfab873('0x209')]?_0xfab873('0x22d')+_0x238bd1[_0xfab873('0x209')]+_0xfab873('0xa99')+_0x238bd1[_0xfab873('0x1808')]:_0xfab873('0x21cb'),'msg':_0x238bd1[_0xfab873('0x11c2')]?JSON[_0xfab873('0x25e')](_0x238bd1[_0xfab873('0x11c2')][_0xfab873('0x1224')]):_0x238bd1['toString']()});});}function _0x21efab(_0x4ebc5e){var _0x129d27=_0x5ec4b5;_0x48ff1c['errors']=[];var _0x4e7775=_0x45b683['confirm']()[_0x129d27('0x4b4')](_0x129d27('0x196b'))[_0x129d27('0x13fb')]('The\x20faxAccount\x20will\x20be\x20deleted.')[_0x129d27('0x7a7')](_0x129d27('0x81b'))['ok']('Delete')['cancel'](_0x129d27('0x1f40'))['targetEvent'](_0x4ebc5e);_0x45b683[_0x129d27('0x853')](_0x4e7775)[_0x129d27('0x21ad')](function(){var _0x5e622f=_0x129d27;_0xe773ed[_0x5e622f('0xeb2')][_0x5e622f('0x1164')]({'id':_0x48ff1c[_0x5e622f('0xeb2')]['id']})[_0x5e622f('0x1376')][_0x5e622f('0x21ad')](function(){var _0x5527ce=_0x5e622f;_0x86640f()[_0x5527ce('0x16a2')](_0x48ff1c[_0x5527ce('0x1695')],{'id':_0x48ff1c['faxAccount']['id']}),_0x501c7e[_0x5527ce('0xdb1')]({'title':'FaxAccount\x20properly\x20deleted!','msg':(_0x48ff1c[_0x5527ce('0xeb2')][_0x5527ce('0x19fe')]||_0x5527ce('0xeb2'))+'\x20has\x20been\x20deleted!'}),_0x3b06db(_0x48ff1c[_0x5527ce('0xeb2')]);})['catch'](function(_0x50b0b9){var _0x294146=_0x5e622f;if(_0x50b0b9[_0x294146('0x11c2')]&&_0x50b0b9['data'][_0x294146('0x1a69')]&&_0x50b0b9['data']['errors'][_0x294146('0x577')]){_0x48ff1c[_0x294146('0x1a69')]=_0x50b0b9[_0x294146('0x11c2')][_0x294146('0x1a69')]||[{'message':_0x50b0b9[_0x294146('0x174f')](),'type':'api.faxAccount.delete'}];for(var _0x5724cb=0x0;_0x5724cb<_0x50b0b9[_0x294146('0x11c2')][_0x294146('0x1a69')]['length'];_0x5724cb++){_0x501c7e[_0x294146('0x2092')]({'title':_0x50b0b9['data'][_0x294146('0x1a69')][_0x5724cb][_0x294146('0x7fa')],'msg':_0x50b0b9[_0x294146('0x11c2')][_0x294146('0x1a69')][_0x5724cb][_0x294146('0x1224')]});}}else _0x501c7e[_0x294146('0x2092')]({'title':_0x50b0b9[_0x294146('0x209')]?'API:'+_0x50b0b9['status']+_0x294146('0xa99')+_0x50b0b9[_0x294146('0x1808')]:'api.faxAccount.delete','msg':_0x50b0b9['data']?JSON[_0x294146('0x25e')](_0x50b0b9[_0x294146('0x11c2')][_0x294146('0x1224')]):_0x50b0b9[_0x294146('0x1224')]||_0x50b0b9[_0x294146('0x174f')]()});});},function(){});}function _0x114ef6(_0x2e1c6b){return _0x2e1c6b===null?undefined:new Date(_0x2e1c6b);}function _0x3b06db(_0xc2b0d8){var _0x4d8b9c=_0x5ec4b5;_0x45b683[_0x4d8b9c('0x1c24')](_0xc2b0d8);}}const _0xf5b2de=_0x59de67,_0x2d8860=_0x398308['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/agent/dialog.html/dialog-[chunkhash].html',_0x2e2b38=_0x398308['p']+_0x3877e3('0x1a99'),_0x3b07ff=_0x398308['p']+_0x3877e3('0x1d72'),_0x5c833c=_0x398308['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/gotop/dialog.html/dialog-[chunkhash].html',_0x362d81=_0x398308['p']+_0x3877e3('0x11a4'),_0x40b2c4=_0x398308['p']+_0x3877e3('0x381'),_0x3a1e8d=_0x398308['p']+_0x3877e3('0xddf'),_0x3e1f39=_0x398308['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/system/dialog.html/dialog-[chunkhash].html',_0x27ada6=_0x398308['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/tag/dialog.html/dialog-[chunkhash].html';_0x2c3bd1[_0x3877e3('0x1a81')]=[_0x3877e3('0xccd'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),'toasty',_0x3877e3('0x15bc')];var _0x2cebfc={'agent':_0x2d8860,'close':_0x2e2b38,'gotoif':_0x3b07ff,'gotop':_0x5c833c,'interval':_0x362d81,'noop':_0x40b2c4,'queue':_0x3a1e8d,'system':_0x3e1f39,'tag':_0x27ada6};function _0x2c3bd1(_0x1d24c8,_0x17eae6,_0x1fc696,_0x36e178,_0x9d7a15){var _0xb3ea4f=_0x3877e3,_0x437f29=this;_0x437f29[_0xb3ea4f('0x123f')]=_0x9d7a15[_0xb3ea4f('0x15ed')](),_0x437f29['faxAccount']={},_0x437f29['faxAccountApps']={'count':0x0,'rows':[]},_0x437f29[_0xb3ea4f('0xf6c')]=[],_0x437f29[_0xb3ea4f('0x5ed')],_0x437f29[_0xb3ea4f('0x77')]={'sort':'priority'},_0x437f29[_0xb3ea4f('0x69a')]=_0x86640f()[_0xb3ea4f('0x37a')](_0x86640f()[_0xb3ea4f('0x203e')]([{'app':'Interval','appType':_0xb3ea4f('0xa07'),'types':[_0xb3ea4f('0x869'),'custom',_0xb3ea4f('0x17fe')],'fields':[],'isApp':![]},{'app':_0xb3ea4f('0x2101'),'appType':_0xb3ea4f('0x2101'),'type':_0xb3ea4f('0x2101'),'icon':'icon-apps','interval':'*,*,*,*','required':!![],'isApp':!![],'fields':[{'title':_0xb3ea4f('0x17a0'),'name':_0xb3ea4f('0x2228'),'type':_0xb3ea4f('0xc1e'),'param':0x0}]},{'app':_0xb3ea4f('0x12b1'),'appType':_0xb3ea4f('0x12b1'),'type':_0xb3ea4f('0x12b1'),'icon':_0xb3ea4f('0x1da4'),'interval':'*,*,*,*','required':!![],'isApp':!![],'extraApi':[{'name':'variables','field':{'name':_0xb3ea4f('0x25bb'),'key':_0xb3ea4f('0x19fe')},'route':_0xb3ea4f('0x25bb'),'filters':{'fields':_0xb3ea4f('0x1aa8'),'sort':_0xb3ea4f('0x19fe'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0xb3ea4f('0x669'),'name':_0xb3ea4f('0xbf3'),'type':_0xb3ea4f('0xc1e'),'required':!![],'param':0x0},{'title':_0xb3ea4f('0x2200'),'name':'variable','type':_0xb3ea4f('0x15e9'),'values':_0xb3ea4f('0x142d'),'value':_0xb3ea4f('0x1958'),'option':'variable.name','defaultValues':[{'value':'\x27\x27','option':_0xb3ea4f('0x2405')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':'gotop','appType':_0xb3ea4f('0x23ef'),'type':'goto','icon':_0xb3ea4f('0x1da4'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0xb3ea4f('0x168e'),'name':'priority','type':_0xb3ea4f('0xed8'),'required':!![],'min':0x0,'param':0x0}]},{'app':_0xb3ea4f('0x262'),'appType':_0xb3ea4f('0x262'),'type':'gotoif','icon':'icon-apps','interval':_0xb3ea4f('0x1cc4'),'isApp':!![],'fields':[{'title':'Condition','name':'condition','type':_0xb3ea4f('0xc1e'),'required':!![],'param':0x0},{'title':_0xb3ea4f('0x1a25'),'name':'truepriority','type':_0xb3ea4f('0xed8'),'min':0x1,'required':!![],'param':0x1},{'title':_0xb3ea4f('0xe4c'),'name':_0xb3ea4f('0xe4c'),'type':_0xb3ea4f('0xed8'),'min':0x1,'required':!![],'param':0x2}]},{'app':_0xb3ea4f('0xbdd'),'appType':_0xb3ea4f('0xbdd'),'foreignKey':_0xb3ea4f('0x905'),'type':_0xb3ea4f('0xbdd'),'icon':_0xb3ea4f('0x1da4'),'interval':_0xb3ea4f('0x1cc4'),'isApp':!![],'extraApi':[{'name':_0xb3ea4f('0xb7a'),'field':{'name':_0xb3ea4f('0xbdd'),'key':'name'},'route':_0xb3ea4f('0x1cb7'),'filters':{'fields':'id,name,type','sort':_0xb3ea4f('0x19fe'),'nolimit':!![]},'permissions':{'section':0x385}}],'fields':[{'title':_0xb3ea4f('0x1da'),'name':'queue','type':_0xb3ea4f('0x15e9'),'values':_0xb3ea4f('0xb7a'),'value':'queue.name','option':_0xb3ea4f('0x126f'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0xb3ea4f('0x1149'),'name':'timeout','type':_0xb3ea4f('0xed8'),'max':0x20c49b,'min':0x0,'defaultValue':0x12c,'required':!![],'param':0x1}]},{'app':'agent','appType':'agent','type':_0xb3ea4f('0x2402'),'foreignKey':_0xb3ea4f('0x1dc6'),'icon':_0xb3ea4f('0x1da4'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':'agents','field':{'name':_0xb3ea4f('0x2402'),'key':'name'},'route':'user','filters':{'fields':_0xb3ea4f('0x1aa8'),'sort':_0xb3ea4f('0x19fe'),'role':'agent','nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':'Agent','name':_0xb3ea4f('0x2402'),'type':_0xb3ea4f('0x15e9'),'values':'agents','value':_0xb3ea4f('0x2797'),'option':'agent.name','required':!![],'param':0x0},{'title':_0xb3ea4f('0x1149'),'name':_0xb3ea4f('0x2133'),'type':_0xb3ea4f('0xed8'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0xb3ea4f('0x22f'),'appType':'close','type':'close','icon':'icon-apps','interval':_0xb3ea4f('0x1cc4'),'isApp':!![],'fields':[{'title':_0xb3ea4f('0x1d3d'),'name':_0xb3ea4f('0x22c8'),'type':_0xb3ea4f('0xc1e'),'required':!![],'param':0x0}]},{'app':_0xb3ea4f('0x907'),'appType':'tag','type':'tag','foreignKey':_0xb3ea4f('0x4ab'),'icon':_0xb3ea4f('0x1da4'),'interval':_0xb3ea4f('0x1cc4'),'isApp':!![],'extraApi':[{'name':_0xb3ea4f('0x1889'),'field':{'name':'tag','key':'name'},'route':_0xb3ea4f('0x907'),'filters':{'fields':_0xb3ea4f('0x1aa8'),'sort':_0xb3ea4f('0x19fe'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':'Tag','name':_0xb3ea4f('0x907'),'type':_0xb3ea4f('0x15e9'),'values':_0xb3ea4f('0x1889'),'value':_0xb3ea4f('0x1706'),'option':_0xb3ea4f('0x1706'),'required':!![],'param':0x0}]}],['app']),{'isApp':![]}),_0x437f29[_0xb3ea4f('0x17fe')]={'group':{'name':'opt1','pull':'clone'},'animation':0x64,'sort':![]},_0x437f29[_0xb3ea4f('0x21d8')]={'group':{'name':_0xb3ea4f('0x1627'),'put':_0xb3ea4f('0xcd')},'animation':0x64,'onAdd':function _0x2a08c7(_0x15857c){_0x1da472(_0x15857c,_0x15857c['newIndex']);},'onSort':function _0x49f0b4(){_0x167525();}},_0x437f29[_0xb3ea4f('0x1d75')]=_0x4203b7,_0x437f29[_0xb3ea4f('0x15dc')]=_0x312cd1,_0x437f29[_0xb3ea4f('0xee4')]=_0x1ccbb3,_0x437f29['editFaxAccountApp']=_0x1da472,_0x437f29['editInterval']=_0x2ace79,_0x437f29[_0xb3ea4f('0x1d91')]=_0x134aaa,_0x437f29[_0xb3ea4f('0x1ac9')]=_0x4137b7,_0x437f29[_0xb3ea4f('0x14aa')]=_0x167525,_0x437f29[_0xb3ea4f('0x1ceb')]=_0x293ba5;function _0x4203b7(_0x256c22,_0x98b283){var _0x139244=_0xb3ea4f;_0x437f29['faxAccount']=_0x256c22,_0x437f29[_0x139244('0x5ed')]=typeof _0x98b283!==_0x139244('0xddc')?_0x98b283:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x437f29[_0x139244('0x21d8')][_0x139244('0x30')]=!_0x437f29[_0x139244('0x5ed')][_0x139244('0x6e2')]?!![]:![],_0x437f29[_0x139244('0x77')]['id']=_0x256c22['id'],_0x437f29['query'][_0x139244('0x9f2')]=!![],_0x437f29[_0x139244('0x77')][_0x139244('0x1dc3')]=!![],_0x437f29[_0x139244('0xee4')](),_0x437f29[_0x139244('0x1ceb')]();}function _0x312cd1(_0x346ea8,_0xc38638,_0x4650fb){var _0x179c63=_0xb3ea4f,_0x52b9df=_0x17eae6[_0x179c63('0xa33')]()[_0x179c63('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')[_0x179c63('0x276b')](_0x179c63('0x622')+_0x346ea8[_0x179c63('0x1f94')]+_0x179c63('0x2135')+_0x179c63('0x25e0'))[_0x179c63('0x7a7')]('delete\x20application')[_0x179c63('0x1e6d')](_0x4650fb)['ok']('OK')[_0x179c63('0x3b5')](_0x179c63('0x284b'));_0x17eae6[_0x179c63('0x853')](_0x52b9df)[_0x179c63('0x21ad')](function(){var _0x3a271c=_0x179c63;_0x437f29[_0x3a271c('0x200')][_0x3a271c('0x1b33')][_0x3a271c('0xafe')](_0xc38638,0x1),_0x167525();},function(){var _0x168211=_0x179c63;console[_0x168211('0x6fb')]('CANCEL');});}function _0x1da472(_0x326ee6,_0x36b1e1){var _0xccf071=_0xb3ea4f;if(_0x437f29[_0xccf071('0x200')][_0xccf071('0x1b33')][_0xccf071('0x577')]){var _0x5370c5=_0x437f29[_0xccf071('0x200')][_0xccf071('0x1b33')][_0x36b1e1]?_0x437f29[_0xccf071('0x200')][_0xccf071('0x1b33')][_0x36b1e1]:_0x437f29[_0xccf071('0x200')][_0xccf071('0x1b33')][0x0],_0x1ba4c9=(_0x5370c5[_0xccf071('0x522')]||_0x5370c5['app'])[_0xccf071('0xac2')]();_0x17eae6[_0xccf071('0x853')]({'controller':_0xccf071('0x10a1')[_0xccf071('0x1877')](_0x1ba4c9,_0xccf071('0x19d9')),'controllerAs':'vm','templateUrl':_0x2cebfc[_0x1ba4c9],'parent':angular['element'](_0x1fc696['body']),'targetEvent':_0x326ee6,'clickOutsideToClose':!![],'locals':{'faxAccountApp':_0x5370c5,'faxAccount':_0x437f29[_0xccf071('0xeb2')],'crudPermissions':_0x437f29['crudPermissions']}})[_0xccf071('0x21ad')](function(_0x1cb28a){var _0x598e03=_0xccf071;_0x1cb28a&&(_0x1cb28a['id']?_0x437f29['faxAccountApps']['rows'][_0x36b1e1]=_0x1cb28a:_0x437f29['faxAccountApps'][_0x598e03('0x1b33')][_0x598e03('0xafe')](_0x36b1e1,0x0,_0x1cb28a),_0x167525());})[_0xccf071('0x1c1d')](function(_0x59a9ac){var _0x1edf9d=_0xccf071;_0x59a9ac&&_0x36e178[_0x1edf9d('0x2092')]({'title':_0x59a9ac['status']?_0x1edf9d('0x22d')+_0x59a9ac[_0x1edf9d('0x209')]+_0x1edf9d('0xa99')+_0x59a9ac['statusText']:_0x1edf9d('0x20b3'),'msg':_0x59a9ac[_0x1edf9d('0x11c2')]?JSON['stringify'](_0x59a9ac[_0x1edf9d('0x11c2')]):_0x59a9ac[_0x1edf9d('0x174f')]()});});}}function _0x2ace79(_0x16997e,_0x1c7e4b){var _0xf02b8a=_0xb3ea4f;if(_0x437f29[_0xf02b8a('0x200')][_0xf02b8a('0x1b33')][_0xf02b8a('0x577')]){var _0x5a968d=_0x437f29[_0xf02b8a('0x200')][_0xf02b8a('0x1b33')][_0x1c7e4b]?_0x437f29['faxAccountApps'][_0xf02b8a('0x1b33')][_0x1c7e4b]:_0x437f29[_0xf02b8a('0x200')][_0xf02b8a('0x1b33')][0x0];_0x17eae6[_0xf02b8a('0x853')]({'controller':_0xf02b8a('0x19c3'),'controllerAs':'vm','templateUrl':_0x362d81,'parent':angular[_0xf02b8a('0x1676')](_0x1fc696[_0xf02b8a('0x2452')]),'targetEvent':_0x16997e,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x5a968d[_0xf02b8a('0xa07')],'IntervalId':_0x5a968d[_0xf02b8a('0x1ac8')],'application':!![]},'intervals':[],'crudPermissions':_0x437f29[_0xf02b8a('0x5ed')]}})['then'](function(_0x2266b2){var _0x43dc3d=_0xf02b8a;_0x2266b2&&(_0x5a968d['interval']=_0x2266b2[_0x43dc3d('0xa07')]||_0x43dc3d('0x1cc4'),_0x5a968d[_0x43dc3d('0x1ac8')]=_0x2266b2[_0x43dc3d('0x1ac8')]||null,_0x167525());});}}function _0x167525(){var _0x448684=_0xb3ea4f,_0x5565e5=0x1,_0x1ee291=[];for(var _0x4d620f=0x0;_0x4d620f<_0x437f29[_0x448684('0x200')][_0x448684('0x1b33')][_0x448684('0x577')];_0x4d620f++){var _0x2d7f40=_0x437f29[_0x448684('0x200')][_0x448684('0x1b33')][_0x4d620f],_0x3768f5=[],_0x4ac7f8=[];_0x2d7f40[_0x448684('0x2530')]=_0x2d7f40[_0x448684('0xa07')]!==_0x448684('0x1cc4')?[_0x2d7f40['interval']]:_0x2d7f40[_0x448684('0x1ac8')]?_0x86640f()[_0x448684('0x26c3')](_0x86640f()[_0x448684('0x1503')](_0x437f29[_0x448684('0x2530')][_0x448684('0x1b33')],{'IntervalId':_0x2d7f40[_0x448684('0x1ac8')]}),'interval'):[],_0x2d7f40[_0x448684('0x244c')]=_0x437f29[_0x448684('0xeb2')][_0x448684('0x244c')],_0x2d7f40[_0x448684('0x24b7')]=_0x437f29[_0x448684('0xeb2')][_0x448684('0x24b7')],_0x2d7f40['type']&&(_0x2d7f40[_0x448684('0x7fa')]=_0x2d7f40[_0x448684('0x7fa')][_0x448684('0xac2')]()),_0x2d7f40[_0x448684('0xbe5')]=_0x3768f5[_0x448684('0x577')]?_0x86640f()[_0x448684('0x25d5')](_0x3768f5)[_0x448684('0xbe5')]+0x1:_0x5565e5,_0x5565e5=(_0x4ac7f8[_0x448684('0x577')]?_0x86640f()[_0x448684('0x25d5')](_0x4ac7f8)[_0x448684('0xbe5')]:_0x2d7f40[_0x448684('0xbe5')])+0x1,_0x1ee291=_0x86640f()[_0x448684('0x1877')](_0x1ee291,_0x3768f5,[_0x2d7f40],_0x4ac7f8);}_0x1d24c8[_0x448684('0xeb2')][_0x448684('0x69f')]({'id':_0x437f29[_0x448684('0xeb2')]['id']},_0x86640f()[_0x448684('0x203e')](_0x1ee291,_0x448684('0xbe5')))[_0x448684('0x1376')][_0x448684('0x21ad')](function(_0x1fefdd){var _0x4e4706=_0x448684;_0x437f29[_0x4e4706('0x200')][_0x4e4706('0x1b33')]=_0x1fefdd[_0x4e4706('0x1b33')];})[_0x448684('0x1c1d')](function(_0x6f5b6a){var _0x4383f6=_0x448684;console[_0x4383f6('0x2092')](_0x6f5b6a);});}function _0x113650(_0x1fcac9){var _0x8bb201=_0xb3ea4f;_0x437f29[_0x8bb201('0x200')]=_0x1fcac9||{'count':0x0,'rows':[]};}function _0x293ba5(){var _0x4276b3=_0xb3ea4f;return _0x1d24c8[_0x4276b3('0xa07')][_0x4276b3('0x595')]({'fields':_0x4276b3('0x7b5')})[_0x4276b3('0x1376')][_0x4276b3('0x21ad')](function(_0x955148){var _0x36b2c4=_0x4276b3;_0x437f29[_0x36b2c4('0x2530')]=_0x955148;})[_0x4276b3('0x1c1d')](function(_0x35d0f0){var _0x26acd2=_0x4276b3;console[_0x26acd2('0x2092')](_0x35d0f0);});}function _0x1ccbb3(){var _0xeb482e=_0xb3ea4f;_0x437f29[_0xeb482e('0x71b')]=_0x1d24c8[_0xeb482e('0xeb2')][_0xeb482e('0x1290')](_0x437f29[_0xeb482e('0x77')],_0x113650)[_0xeb482e('0x1376')];}function _0x134aaa(_0x49ea99){var _0x17da42=_0xb3ea4f;_0x86640f()['remove'](_0x437f29[_0x17da42('0x200')][_0x17da42('0x1b33')],{'id':_0x49ea99['id']}),_0x167525(),_0x36e178['success']({'title':_0x17da42('0x1922'),'msg':_0x49ea99[_0x17da42('0x1f94')]?_0x49ea99[_0x17da42('0x1f94')]+'\x20has\x20been\x20deleted!':''});}function _0x4137b7(_0x1aea3d){var _0x12ddf3=_0xb3ea4f,_0x1b5fce=_0x17eae6['confirm']()[_0x12ddf3('0x4b4')](_0x12ddf3('0x152a'))[_0x12ddf3('0x276b')](_0x12ddf3('0x622')+_0x437f29[_0x12ddf3('0xf6c')][_0x12ddf3('0x577')]+_0x12ddf3('0xd74')+_0x12ddf3('0x25e0'))['ariaLabel']('delete\x20applications')[_0x12ddf3('0x1e6d')](_0x1aea3d)['ok']('OK')['cancel'](_0x12ddf3('0x284b'));_0x17eae6[_0x12ddf3('0x853')](_0x1b5fce)[_0x12ddf3('0x21ad')](function(){_0x437f29['selectedFaxAccountApps']['forEach'](function(_0x1cf2a5){var _0x327b0b=a0_0x2e7f;_0x86640f()[_0x327b0b('0x16a2')](_0x437f29[_0x327b0b('0x200')][_0x327b0b('0x1b33')],{'id':_0x1cf2a5['id']});}),_0x437f29['selectedFaxAccountApps']=[],_0x167525();});}}const _0x1abd56=_0x2c3bd1;_0x16fcd8[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),'api',_0x3877e3('0xeb2'),_0x3877e3('0x1695'),'realtime',_0x3877e3('0x13c1'),'Auth',_0x3877e3('0x5ed')];function _0x16fcd8(_0x5b4077,_0x3ecafe,_0x1f0ab5,_0x4623f9,_0x2b9f6a,_0x2aa48b,_0x33bf7f,_0x36eea3,_0x87bd11,_0x359d01){var _0x28a76b=_0x3877e3,_0x289ada=this;_0x289ada[_0x28a76b('0x123f')]=_0x87bd11[_0x28a76b('0x15ed')](),_0x289ada[_0x28a76b('0xeb2')]=_0x2b9f6a,_0x289ada[_0x28a76b('0x5ed')]=_0x359d01,_0x289ada[_0x28a76b('0x116a')]=_0x33bf7f,_0x289ada[_0x28a76b('0x1b9a')]=[],_0x289ada[_0x28a76b('0x1e09')]=[],_0x289ada[_0x28a76b('0x2629')]=[],_0x289ada['startingAllowedItems']=[],_0x289ada[_0x28a76b('0x2584')]=[],_0x289ada[_0x28a76b('0x1bb9')]=![],_0x289ada[_0x28a76b('0x1081')]=_0x2ce5ef,_0x289ada[_0x28a76b('0x265b')]=_0x405d9b,_0x289ada[_0x28a76b('0x167')]=_0x534e51,_0x289ada[_0x28a76b('0x909')]={'readOnly':!_0x289ada[_0x28a76b('0x5ed')][_0x28a76b('0x6e2')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x28a76b('0x19fe'),'line1':'fullname','line2':[_0x28a76b('0x19fe'),_0x28a76b('0x201f')],'line3':'','labelAll':_0x36eea3['instant'](_0x28a76b('0x22d4')),'labelSelected':_0x36eea3[_0x28a76b('0x183e')](_0x28a76b('0x1e94')),'transferCallback':function _0x5dfdd9(){var _0xaac8a9=_0x28a76b,_0x135723=_0x86640f()[_0xaac8a9('0x1473')](_0x289ada[_0xaac8a9('0x2584')],_0x289ada['selectedItems'],'id');_0x289ada[_0xaac8a9('0x1bb9')]=_0x86640f()[_0xaac8a9('0x23aa')](_0x135723)?![]:!![];}};function _0x2ce5ef(){var _0x3210c9=_0x28a76b;return _0x87bd11[_0x3210c9('0x21de')](_0x3210c9('0x1bd8'))?_0x4f0441()[_0x3210c9('0x1c1d')](function(_0x1df4f7){var _0x2732a5=_0x3210c9;_0x1f0ab5[_0x2732a5('0x2092')]({'title':_0x1df4f7['status']?_0x2732a5('0x22d')+_0x1df4f7[_0x2732a5('0x209')]+_0x2732a5('0xa99')+_0x1df4f7[_0x2732a5('0x1808')]:'SYSTEM:GET_AGENTS','msg':_0x1df4f7[_0x2732a5('0x209')]?JSON[_0x2732a5('0x25e')](_0x1df4f7['data']):_0x1df4f7[_0x2732a5('0x174f')]()});}):_0x3f3586()['then'](function(_0x436de5){var _0xc40262=_0x3210c9;return _0x289ada[_0xc40262('0x26ad')]=_0x436de5,_0x4f0441();})[_0x3210c9('0x1c1d')](function(_0x1165e3){var _0xb5ae99=_0x3210c9;_0x1f0ab5[_0xb5ae99('0x2092')]({'title':_0x1165e3[_0xb5ae99('0x209')]?_0xb5ae99('0x22d')+_0x1165e3[_0xb5ae99('0x209')]+_0xb5ae99('0xa99')+_0x1165e3['statusText']:'SYSTEM:GET_AGENTS','msg':_0x1165e3[_0xb5ae99('0x209')]?JSON[_0xb5ae99('0x25e')](_0x1165e3[_0xb5ae99('0x11c2')]):_0x1165e3['toString']()});});}function _0x3f3586(){return _0x3ecafe(function(_0x31e93b,_0x21b955){var _0x4ee6fc=a0_0x2e7f;_0x4623f9[_0x4ee6fc('0xab4')][_0x4ee6fc('0x595')]({'userProfileId':_0x289ada[_0x4ee6fc('0x123f')][_0x4ee6fc('0x1618')],'name':_0x4ee6fc('0xfed')})['$promise'][_0x4ee6fc('0x21ad')](function(_0x5294d1){var _0x5651b7=_0x4ee6fc,_0x4a5cbd=_0x5294d1&&_0x5294d1['rows']?_0x5294d1[_0x5651b7('0x1b33')][0x0]:null;_0x31e93b(_0x4a5cbd);})[_0x4ee6fc('0x1c1d')](function(_0x9d755c){_0x21b955(_0x9d755c);});});}function _0x4f0441(){return _0x3ecafe(function(_0x1ae2fe,_0x4cc3c7){var _0x48d24e=a0_0x2e7f;return _0x3bff50()[_0x48d24e('0x21ad')](function(_0x3defab){var _0x34b8dc=_0x48d24e;return _0x289ada['items']=_0x3defab[_0x34b8dc('0x1b33')]?_0x3defab[_0x34b8dc('0x1b33')]:[],_0x87bd11[_0x34b8dc('0x21de')](_0x34b8dc('0x1bd8'))?_0x3defab:_0x289ada[_0x34b8dc('0x26ad')]?_0x289ada[_0x34b8dc('0x26ad')][_0x34b8dc('0x80c')]?_0x3defab:_0x10aa51():null;})[_0x48d24e('0x21ad')](function(_0x324b54){var _0x1eba5a=_0x48d24e,_0x3e7f2b=_0x324b54&&_0x324b54['rows']?_0x324b54['rows']:[];return _0x289ada[_0x1eba5a('0x1e09')]=_0x86640f()[_0x1eba5a('0x26c3')](_0x3e7f2b,function(_0x512b11){var _0x5cb9b9=_0x1eba5a;return _0x86640f()[_0x5cb9b9('0x1d2e')](_0x289ada[_0x5cb9b9('0x1b9a')],{'id':_0x87bd11[_0x5cb9b9('0x21de')]('admin')||_0x289ada['section']['autoAssociation']?_0x512b11['id']:_0x512b11['resourceId']});}),_0x289ada[_0x1eba5a('0x91b')]=angular['copy'](_0x289ada[_0x1eba5a('0x1e09')]),_0x289ada[_0x1eba5a('0x1b9a')]['forEach'](function(_0x4769be){var _0x3c7d42=_0x1eba5a,_0x36acf7=_0x86640f()[_0x3c7d42('0x1d2e')](_0x289ada['allowedItems'],{'id':_0x4769be['id']});_0x87bd11['hasRole'](_0x3c7d42('0x1bd8'))?_0x4769be[_0x3c7d42('0x118b')]=!![]:_0x4769be['isValid']=typeof _0x36acf7!==_0x3c7d42('0xddc')?!![]:![];}),_0x40cae6();})['then'](function(_0x2d7eb5){var _0x276930=_0x48d24e,_0x58d3f8=_0x2d7eb5&&_0x2d7eb5[_0x276930('0x1b33')]?_0x2d7eb5[_0x276930('0x1b33')]:[];_0x289ada['selectedItems']=_0x86640f()[_0x276930('0x26c3')](_0x58d3f8,function(_0x3d9c34){var _0x378e9d=_0x276930,_0x702afc=_0x86640f()[_0x378e9d('0x1d2e')](_0x289ada[_0x378e9d('0x1b9a')],{'id':_0x3d9c34['id']});return _0x702afc[_0x378e9d('0x1195')]=_0x3d9c34[_0x378e9d('0x1f36')]?_0x378e9d('0x5c2')+_0x3d9c34[_0x378e9d('0x1f36')][_0x378e9d('0x1195')]:'',_0x702afc[_0x378e9d('0x201f')]=typeof _0x3d9c34['internal']!==_0x378e9d('0xddc')?'<'+_0x3d9c34['internal']+'>':'',_0x702afc;}),_0x289ada[_0x276930('0x2584')]=angular['copy'](_0x289ada['selectedItems']),_0x289ada[_0x276930('0x909')][_0x276930('0x2629')]=_0x289ada[_0x276930('0x2629')],_0x289ada[_0x276930('0x909')][_0x276930('0x1b9a')]=_0x86640f()[_0x276930('0x1eab')](_0x289ada[_0x276930('0x1e09')],_0x289ada[_0x276930('0x909')][_0x276930('0x2629')],'id'),_0x1ae2fe();})[_0x48d24e('0x1c1d')](function(_0x49eb64){_0x4cc3c7(_0x49eb64);});});}function _0x10aa51(){return _0x3ecafe(function(_0x2f78ec,_0x353d46){var _0xba22ae=a0_0x2e7f;return _0x4623f9[_0xba22ae('0x185e')]['get']({'sectionId':_0x289ada[_0xba22ae('0x26ad')]['id'],'nolimit':!![]})[_0xba22ae('0x1376')]['then'](function(_0x4e1982){_0x2f78ec(_0x4e1982);})['catch'](function(_0x4d06b8){_0x353d46(_0x4d06b8);});});}function _0x40cae6(){return _0x3ecafe(function(_0x382e88,_0x42dda1){var _0x5cbfb5=a0_0x2e7f;return _0x4623f9[_0x5cbfb5('0xeb2')][_0x5cbfb5('0x13ad')]({'id':_0x289ada[_0x5cbfb5('0xeb2')]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x5cbfb5('0x2402')})['$promise'][_0x5cbfb5('0x21ad')](function(_0x19fed5){_0x382e88(_0x19fed5);})[_0x5cbfb5('0x1c1d')](function(_0x515d8a){_0x42dda1(_0x515d8a);});});}function _0x3bff50(){return _0x3ecafe(function(_0x36ac46,_0x3b7690){var _0x4f956d=a0_0x2e7f;return _0x4623f9[_0x4f956d('0x1775')]['get']({'fields':_0x4f956d('0x1eea'),'nolimit':!![],'role':_0x4f956d('0x2402')})[_0x4f956d('0x1376')]['then'](function(_0x4d5bbe){_0x36ac46(_0x4d5bbe);})[_0x4f956d('0x1c1d')](function(_0x41d2a3){_0x3b7690(_0x41d2a3);});});}function _0xde559(_0xde373f){return _0x3ecafe(function(_0x541c25,_0x59e187){var _0xef8c29=a0_0x2e7f;_0x86640f()[_0xef8c29('0x23aa')](_0xde373f)?_0x541c25():_0x4623f9[_0xef8c29('0xeb2')][_0xef8c29('0x1116')]({'id':_0x289ada['faxAccount']['id'],'ids':_0x86640f()[_0xef8c29('0x26c3')](_0xde373f,'id')})[_0xef8c29('0x1376')][_0xef8c29('0x21ad')](function(){_0x541c25();})[_0xef8c29('0x1c1d')](function(_0x4b4d14){_0x59e187(_0x4b4d14);});});}function _0x3d18fa(_0x5d2b43){return _0x3ecafe(function(_0x4c7acd,_0x273a96){var _0x37feda=a0_0x2e7f;_0x86640f()[_0x37feda('0x23aa')](_0x5d2b43)?_0x4c7acd():_0x4623f9[_0x37feda('0xeb2')]['removeAgents']({'id':_0x289ada['faxAccount']['id'],'ids':_0x86640f()[_0x37feda('0x26c3')](_0x5d2b43,'id')})[_0x37feda('0x1376')][_0x37feda('0x21ad')](function(){_0x4c7acd();})[_0x37feda('0x1c1d')](function(_0x28be74){_0x273a96(_0x28be74);});});}function _0x405d9b(){var _0x397cd5=_0x28a76b,_0x139077=_0x86640f()[_0x397cd5('0x1eab')](_0x289ada[_0x397cd5('0x2584')],_0x289ada[_0x397cd5('0x2629')],'id'),_0x41c966=_0x86640f()[_0x397cd5('0x1eab')](_0x289ada[_0x397cd5('0x2629')],_0x289ada[_0x397cd5('0x2584')],'id');return _0x3d18fa(_0x139077)[_0x397cd5('0x21ad')](function(){return _0xde559(_0x41c966);})[_0x397cd5('0x21ad')](function(){var _0x384dcd=_0x397cd5;_0x289ada['pendingChanges']=![],_0x289ada[_0x384dcd('0x91b')]=angular['copy'](_0x289ada[_0x384dcd('0x1e09')]),_0x289ada[_0x384dcd('0x2584')]=angular[_0x384dcd('0xd75')](_0x289ada[_0x384dcd('0x2629')]),_0x1f0ab5['success']({'title':_0x384dcd('0x2804'),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})[_0x397cd5('0x1c1d')](function(_0x2fbf11){var _0x32f20c=_0x397cd5;_0x1f0ab5[_0x32f20c('0x2092')]({'title':_0x2fbf11[_0x32f20c('0x209')]?_0x32f20c('0x22d')+_0x2fbf11[_0x32f20c('0x209')]+'\x20-\x20'+_0x2fbf11[_0x32f20c('0x1808')]:_0x32f20c('0x1dd7'),'msg':_0x2fbf11[_0x32f20c('0x209')]?JSON[_0x32f20c('0x25e')](_0x2fbf11[_0x32f20c('0x11c2')]):_0x2fbf11[_0x32f20c('0x174f')]()});});}function _0x534e51(){var _0x4e9b03=_0x28a76b;_0x5b4077[_0x4e9b03('0x1c24')]();}}const _0x594147=_0x16fcd8;_0x3ad01c['$inject']=['$mdDialog','$q',_0x3877e3('0x1908'),_0x3877e3('0x1e4d'),_0x3877e3('0xeb2'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x3ad01c(_0x5a92b6,_0x2ff682,_0x40755f,_0x5403aa,_0x16dd05,_0x24c5b0,_0x1bfc75,_0x3ed384){var _0x132ae9=_0x3877e3,_0x2387df=this;_0x2387df[_0x132ae9('0x123f')]=_0x1bfc75[_0x132ae9('0x15ed')](),_0x2387df['errors']=[],_0x2387df[_0x132ae9('0x4b4')]=_0x132ae9('0x12a5')+(_0x5403aa[_0x132ae9('0x522')]||_0x5403aa['app'])[_0x132ae9('0x2e8')](),_0x2387df[_0x132ae9('0x2402')]=angular['copy'](_0x5403aa),_0x2387df[_0x132ae9('0x5ed')]=_0x3ed384,_0x2387df[_0x132ae9('0x126a')]={};if(_0x2387df['agent'][_0x132ae9('0x23c2')])switch(_0x2387df[_0x132ae9('0x2402')][_0x132ae9('0x522')]?_0x2387df[_0x132ae9('0x2402')][_0x132ae9('0x522')][_0x132ae9('0xac2')]():_0x2387df[_0x132ae9('0x2402')]['app'][_0x132ae9('0xac2')]()){case _0x132ae9('0xf50'):break;case _0x132ae9('0xc72'):{var _0x43c442=_0x2387df[_0x132ae9('0x2402')][_0x132ae9('0x23c2')][_0x132ae9('0x1af5')](',');_0x2387df[_0x132ae9('0x2402')]['key']=_0x43c442[0x0],_0x2387df['agent'][_0x132ae9('0x10f')]=_0x43c442[0x1],_0x2387df[_0x132ae9('0x2402')][_0x132ae9('0x1cce')]=_0x43c442[_0x132ae9('0xb3d')](0x2,_0x43c442[_0x132ae9('0x577')])[_0x132ae9('0x136')](',');}break;case _0x132ae9('0x1c22'):{var _0x594849=_0x2387df[_0x132ae9('0x2402')][_0x132ae9('0x23c2')][_0x132ae9('0x1af5')](',');_0x2387df[_0x132ae9('0x2402')][_0x132ae9('0x21c6')]=_0x594849[0x0],_0x2387df[_0x132ae9('0x2402')][_0x132ae9('0x797')]=_0x594849[0x1],_0x2387df[_0x132ae9('0x2402')][_0x132ae9('0x20a3')]=_0x594849[0x2],_0x2387df['agent'][_0x132ae9('0x15fe')]=_0x594849[0x3],_0x2387df[_0x132ae9('0x2402')][_0x132ae9('0x1cce')]=_0x594849['slice'](0x4,_0x594849[_0x132ae9('0x577')])[_0x132ae9('0x136')](',');}break;case'autoreply':{var _0x13ef03=_0x2387df[_0x132ae9('0x2402')][_0x132ae9('0x23c2')][_0x132ae9('0x1af5')](',');_0x2387df['agent'][_0x132ae9('0x13b6')]=isNaN(_0x13ef03[0x0])?_0x13ef03[0x0]:parseInt(_0x13ef03[0x0],0xa),_0x2387df[_0x132ae9('0x2402')][_0x132ae9('0xc1e')]=_0x13ef03[_0x132ae9('0xb3d')](0x1,_0x13ef03[_0x132ae9('0x577')])[_0x132ae9('0x136')](',');}break;case _0x132ae9('0x1224'):_0x2387df[_0x132ae9('0x2402')][_0x132ae9('0xc1e')]=_0x2387df[_0x132ae9('0x2402')][_0x132ae9('0x23c2')];break;case _0x132ae9('0x1125'):_0x2387df['agent'][_0x132ae9('0x19fe')]=_0x2387df[_0x132ae9('0x2402')][_0x132ae9('0x23c2')][_0x132ae9('0x1af5')]('=')[0x0],_0x2387df[_0x132ae9('0x2402')][_0x132ae9('0x2228')]=_0x2387df['agent'][_0x132ae9('0x23c2')][_0x132ae9('0x1af5')]('=')[0x1];break;case _0x132ae9('0x2356'):_0x2387df[_0x132ae9('0x2402')]['project']=_0x2387df[_0x132ae9('0x2402')][_0x132ae9('0x23c2')];break;default:{var _0x1f3f44=_0x2387df[_0x132ae9('0x2402')]['appdata'][_0x132ae9('0x1af5')](',');_0x2387df[_0x132ae9('0x2402')][_0x132ae9('0x2402')]=_0x86640f()[_0x132ae9('0x23aa')](_0x1f3f44[0x0])?_0x1f3f44[0x0]:isNaN(_0x1f3f44[0x0])?_0x1f3f44[0x0]:parseInt(_0x1f3f44[0x0],0xa),_0x2387df['agent'][_0x132ae9('0x2133')]=_0x86640f()[_0x132ae9('0x23aa')](_0x1f3f44[0x1])?_0x1f3f44[0x1]:isNaN(_0x1f3f44[0x1])?_0x1f3f44[0x1]:parseInt(_0x1f3f44[0x1],0xa);}break;}else _0x2387df[_0x132ae9('0x2402')][_0x132ae9('0x2133')]=0x1e;_0x2387df['agent'][_0x132ae9('0x7fa')]&&_0x2387df[_0x132ae9('0x2402')]['type']['toLowerCase']()===_0x132ae9('0x2300')&&_0x2387df[_0x132ae9('0x2402')][_0x132ae9('0x522')]['toLowerCase']()===_0x132ae9('0x2363')&&(_0x2387df[_0x132ae9('0x2402')][_0x132ae9('0x1995')]=_0x2387df['agent']['phone']?_0x2387df['agent'][_0x132ae9('0x159e')]['split']('$')[0x0]:undefined,_0x2387df[_0x132ae9('0x2402')][_0x132ae9('0x26f7')]=_0x2387df[_0x132ae9('0x2402')][_0x132ae9('0x1f5a')]?_0x132ae9('0x587')+_0x2387df[_0x132ae9('0x2402')][_0x132ae9('0x1f5a')]:undefined);_0x2387df[_0x132ae9('0x620')]=_0x588216,_0x2387df[_0x132ae9('0x167')]=_0x472a58,_0x1bfc75[_0x132ae9('0x21de')](_0x132ae9('0x1bd8'))?_0x24c5b0[_0x132ae9('0x1775')]['get']({'fields':_0x132ae9('0x1aa8'),'sort':'name','role':_0x132ae9('0x2402'),'nolimit':_0x132ae9('0x19bd')})[_0x132ae9('0x1376')]['then'](function(_0x275169){var _0x15f043=_0x132ae9;_0x2387df[_0x15f043('0xcb5')]=_0x275169['rows']||[];})['catch'](function(_0x3ac5da){var _0xa9bed7=_0x132ae9;_0x40755f[_0xa9bed7('0x2092')]({'title':_0x3ac5da['status']?_0xa9bed7('0x22d')+_0x3ac5da[_0xa9bed7('0x209')]+_0xa9bed7('0xa99')+_0x3ac5da[_0xa9bed7('0x1808')]:_0xa9bed7('0x1381'),'msg':_0x3ac5da[_0xa9bed7('0x11c2')]?JSON['stringify'](_0x3ac5da[_0xa9bed7('0x11c2')]):_0x3ac5da[_0xa9bed7('0x174f')]()});}):_0x24c5b0[_0x132ae9('0x1775')][_0x132ae9('0x595')]({'fields':_0x132ae9('0x1aa8'),'sort':_0x132ae9('0x19fe'),'role':_0x132ae9('0x2402'),'nolimit':_0x132ae9('0x19bd')})[_0x132ae9('0x1376')][_0x132ae9('0x21ad')](function(_0x456825){var _0x114482=_0x132ae9;_0x2387df[_0x114482('0xcb5')]=_0x456825[_0x114482('0x1b33')]||[];})[_0x132ae9('0x21ad')](function(){var _0x494585=_0x132ae9;return _0x24c5b0[_0x494585('0xab4')][_0x494585('0x595')]({'userProfileId':_0x2387df[_0x494585('0x123f')][_0x494585('0x1618')],'sectionId':0xca})[_0x494585('0x1376')];})[_0x132ae9('0x21ad')](function(_0x2dc3e9){var _0x3d9974=_0x132ae9,_0x43cf1d=_0x2dc3e9&&_0x2dc3e9['rows']?_0x2dc3e9[_0x3d9974('0x1b33')][0x0]:null;if(!_0x43cf1d){var _0x43f02e=[],_0x4307fb=null;_0x2387df[_0x3d9974('0x2402')]&&(_0x4307fb=_0x86640f()[_0x3d9974('0x1d2e')](_0x2387df['agents'],{'name':_0x2387df[_0x3d9974('0x2402')][_0x3d9974('0x2402')]}));for(var _0x1a6ec1=0x0;_0x1a6ec1<_0x2387df['agents'][_0x3d9974('0x577')];_0x1a6ec1++){_0x4307fb&&_0x2387df[_0x3d9974('0xcb5')][_0x1a6ec1]['id']===_0x4307fb['id']&&(_0x2387df['agents'][_0x1a6ec1][_0x3d9974('0xba')]=![],_0x43f02e[_0x3d9974('0x206c')](_0x2387df[_0x3d9974('0xcb5')][_0x1a6ec1]));}_0x2387df[_0x3d9974('0xcb5')]=_0x43f02e;}else{if(!_0x43cf1d['autoAssociation'])return _0x24c5b0['userProfileResource'][_0x3d9974('0x595')]({'sectionId':_0x43cf1d['id']})[_0x3d9974('0x1376')][_0x3d9974('0x21ad')](function(_0x332a2a){var _0x1ec6ab=_0x3d9974,_0x43dc59=_0x86640f()[_0x1ec6ab('0x26c3')](_0x332a2a[_0x1ec6ab('0x1b33')],function(_0x42782a){var _0x30e560=_0x1ec6ab;return _0x86640f()[_0x30e560('0x1d2e')](_0x2387df['agents'],{'id':_0x42782a[_0x30e560('0x675')]});}),_0x16800c=null;_0x2387df[_0x1ec6ab('0x2402')]&&(_0x16800c=_0x86640f()['find'](_0x2387df[_0x1ec6ab('0xcb5')],{'name':_0x2387df['agent']['agent']}));if(_0x16800c&&!_0x86640f()['some'](_0x43dc59,['id',_0x16800c['id']])){var _0x1cce92=_0x86640f()['find'](_0x2387df['agents'],{'id':_0x16800c['id']});_0x1cce92[_0x1ec6ab('0xba')]=![],_0x43dc59[_0x1ec6ab('0x206c')](_0x1cce92);}_0x2387df['agents']=_0x43dc59;});}})[_0x132ae9('0x1c1d')](function(_0x3b10d6){var _0x427bc1=_0x132ae9;_0x40755f[_0x427bc1('0x2092')]({'title':_0x3b10d6[_0x427bc1('0x209')]?_0x427bc1('0x22d')+_0x3b10d6[_0x427bc1('0x209')]+'\x20-\x20'+_0x3b10d6[_0x427bc1('0x1808')]:_0x427bc1('0x2f9'),'msg':_0x3b10d6[_0x427bc1('0x11c2')]?JSON[_0x427bc1('0x25e')](_0x3b10d6['data']):_0x3b10d6['toString']()});});function _0x588216(){var _0x3d2546=_0x132ae9;_0x2387df['errors']=[];var _0x5ba20e=[];_0x2387df['agent'][_0x3d2546('0x7fa')]&&_0x2387df[_0x3d2546('0x2402')][_0x3d2546('0x7fa')][_0x3d2546('0xac2')]()==='outbound'&&_0x2387df[_0x3d2546('0x2402')][_0x3d2546('0x522')]===_0x3d2546('0x4ea')&&(_0x2387df[_0x3d2546('0x2402')][_0x3d2546('0x159e')]=_0x16dd05[_0x3d2546('0x988')]?(_0x2387df[_0x3d2546('0x2402')][_0x3d2546('0x1995')]||'')+'${EXTEN:'+_0x16dd05[_0x3d2546('0x988')]+'}':(_0x2387df[_0x3d2546('0x2402')][_0x3d2546('0x1995')]||'')+'${EXTEN}',_0x16dd05[_0x3d2546('0xad1')]!==_0x3d2546('0x983')?_0x2387df[_0x3d2546('0x2402')][_0x3d2546('0x26a0')][_0x3d2546('0x2004')](_0x3d2546('0x478'))<0x0&&(_0x2387df[_0x3d2546('0x2402')]['options']+=_0x3d2546('0x478')):_0x2387df[_0x3d2546('0x2402')][_0x3d2546('0x26a0')]=_0x2387df[_0x3d2546('0x2402')]['options'][_0x3d2546('0x16e4')](_0x3d2546('0x478'),''));var _0x3439d3=_0x86640f()['find'](_0x2387df[_0x3d2546('0xcb5')],{'name':_0x2387df[_0x3d2546('0x2402')][_0x3d2546('0x2402')]});_0x3439d3&&(_0x2387df[_0x3d2546('0x2402')][_0x3d2546('0x1dc6')]=_0x3439d3['id']);if(_0x2387df[_0x3d2546('0x2402')]['appType']&&_0x2387df[_0x3d2546('0x2402')][_0x3d2546('0x522')]===_0x3d2546('0xf50')){}else switch((_0x2387df[_0x3d2546('0x2402')][_0x3d2546('0x1f94')]||_0x2387df['agent']['appType'])[_0x3d2546('0xac2')]()){case _0x3d2546('0x1125'):_0x2387df[_0x3d2546('0x2402')][_0x3d2546('0x23c2')]=_0x2387df['agent'][_0x3d2546('0x19fe')]+'='+_0x2387df[_0x3d2546('0x2402')]['value'];break;case'custom':break;default:_0x5ba20e[0x0]=_0x2387df[_0x3d2546('0x2402')][_0x3d2546('0x2402')],_0x5ba20e[0x1]=_0x2387df[_0x3d2546('0x2402')][_0x3d2546('0x2133')],_0x2387df[_0x3d2546('0x2402')][_0x3d2546('0x23c2')]=_0x5ba20e[_0x3d2546('0x136')](',');}_0x472a58(_0x2387df[_0x3d2546('0x2402')]);}function _0x472a58(_0x5426f7){var _0x1efe11=_0x132ae9;_0x5a92b6[_0x1efe11('0x1c24')](_0x5426f7);}}const _0x8cbd78=_0x3ad01c;_0xdf9a60[_0x3877e3('0x1a81')]=['$mdDialog','$q',_0x3877e3('0x1908'),_0x3877e3('0x1e4d'),'faxAccount',_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'crudPermissions'];function _0xdf9a60(_0x5138f7,_0x4f8e31,_0x22bd13,_0x1cdca8,_0x396dda,_0x46002b,_0x463c95,_0x3ed718){var _0x35f481=_0x3877e3,_0x22a8da=this;_0x22a8da['currentUser']=_0x463c95[_0x35f481('0x15ed')](),_0x22a8da['errors']=[],_0x22a8da['title']=_0x35f481('0x12a5')+(_0x1cdca8[_0x35f481('0x522')]||_0x1cdca8[_0x35f481('0x1f94')])[_0x35f481('0x2e8')](),_0x22a8da['close']=angular[_0x35f481('0xd75')](_0x1cdca8),_0x22a8da['crudPermissions']=_0x3ed718,_0x22a8da['hasModulePermissions']={};if(_0x22a8da['close'][_0x35f481('0x23c2')])switch(_0x22a8da['close']['appType']?_0x22a8da[_0x35f481('0x22f')][_0x35f481('0x522')][_0x35f481('0xac2')]():_0x22a8da[_0x35f481('0x22f')]['app']['toLowerCase']()){case'custom':break;case'dialogflow':{var _0x165532=_0x22a8da['close']['appdata'][_0x35f481('0x1af5')](',');_0x22a8da['close']['key']=_0x165532[0x0],_0x22a8da[_0x35f481('0x22f')]['language']=_0x165532[0x1],_0x22a8da[_0x35f481('0x22f')][_0x35f481('0x1cce')]=_0x165532['slice'](0x2,_0x165532[_0x35f481('0x577')])['join'](',');}break;case _0x35f481('0x1c22'):{var _0x367a71=_0x22a8da['close'][_0x35f481('0x23c2')][_0x35f481('0x1af5')](',');_0x22a8da[_0x35f481('0x22f')]['accesskeyid']=_0x367a71[0x0],_0x22a8da['close']['secretaccesskey']=_0x367a71[0x1],_0x22a8da[_0x35f481('0x22f')][_0x35f481('0x20a3')]=_0x367a71[0x2],_0x22a8da[_0x35f481('0x22f')][_0x35f481('0x15fe')]=_0x367a71[0x3],_0x22a8da[_0x35f481('0x22f')][_0x35f481('0x1cce')]=_0x367a71[_0x35f481('0xb3d')](0x4,_0x367a71[_0x35f481('0x577')])[_0x35f481('0x136')](',');}break;case _0x35f481('0x1b98'):{var _0x37ca19=_0x22a8da[_0x35f481('0x22f')][_0x35f481('0x23c2')][_0x35f481('0x1af5')](',');_0x22a8da['close'][_0x35f481('0x13b6')]=isNaN(_0x37ca19[0x0])?_0x37ca19[0x0]:parseInt(_0x37ca19[0x0],0xa),_0x22a8da[_0x35f481('0x22f')][_0x35f481('0xc1e')]=_0x37ca19[_0x35f481('0xb3d')](0x1,_0x37ca19[_0x35f481('0x577')])[_0x35f481('0x136')](',');}break;case _0x35f481('0x1224'):_0x22a8da[_0x35f481('0x22f')][_0x35f481('0xc1e')]=_0x22a8da[_0x35f481('0x22f')][_0x35f481('0x23c2')];break;case _0x35f481('0x1125'):_0x22a8da[_0x35f481('0x22f')][_0x35f481('0x19fe')]=_0x22a8da[_0x35f481('0x22f')][_0x35f481('0x23c2')][_0x35f481('0x1af5')]('=')[0x0],_0x22a8da[_0x35f481('0x22f')][_0x35f481('0x2228')]=_0x22a8da[_0x35f481('0x22f')][_0x35f481('0x23c2')][_0x35f481('0x1af5')]('=')[0x1];break;case'agi':_0x22a8da[_0x35f481('0x22f')][_0x35f481('0xbf8')]=_0x22a8da[_0x35f481('0x22f')][_0x35f481('0x23c2')];break;default:{var _0x1f31ad=_0x22a8da[_0x35f481('0x22f')]['appdata'][_0x35f481('0x1af5')](',');_0x22a8da['close'][_0x35f481('0x22c8')]=_0x86640f()[_0x35f481('0x23aa')](_0x1f31ad[0x0])?_0x1f31ad[0x0]:isNaN(_0x1f31ad[0x0])?_0x1f31ad[0x0]:parseInt(_0x1f31ad[0x0],0xa);}break;}else{}_0x22a8da['close']['type']&&_0x22a8da['close'][_0x35f481('0x7fa')][_0x35f481('0xac2')]()===_0x35f481('0x2300')&&_0x22a8da[_0x35f481('0x22f')][_0x35f481('0x522')][_0x35f481('0xac2')]()==='outbounddial'&&(_0x22a8da['close'][_0x35f481('0x1995')]=_0x22a8da[_0x35f481('0x22f')][_0x35f481('0x159e')]?_0x22a8da[_0x35f481('0x22f')][_0x35f481('0x159e')][_0x35f481('0x1af5')]('$')[0x0]:undefined,_0x22a8da[_0x35f481('0x22f')][_0x35f481('0x26f7')]=_0x22a8da[_0x35f481('0x22f')][_0x35f481('0x1f5a')]?_0x35f481('0x587')+_0x22a8da[_0x35f481('0x22f')][_0x35f481('0x1f5a')]:undefined);_0x22a8da[_0x35f481('0x620')]=_0x5e1a71,_0x22a8da['closeDialog']=_0x1d75ab;function _0x5e1a71(){var _0x361aaa=_0x35f481;_0x22a8da['errors']=[];var _0x57408c=[];_0x22a8da[_0x361aaa('0x22f')]['type']&&_0x22a8da[_0x361aaa('0x22f')][_0x361aaa('0x7fa')][_0x361aaa('0xac2')]()===_0x361aaa('0x2300')&&_0x22a8da[_0x361aaa('0x22f')]['appType']==='outboundDial'&&(_0x22a8da[_0x361aaa('0x22f')][_0x361aaa('0x159e')]=_0x396dda[_0x361aaa('0x988')]?(_0x22a8da[_0x361aaa('0x22f')][_0x361aaa('0x1995')]||'')+_0x361aaa('0x349')+_0x396dda['cutdigits']+'}':(_0x22a8da[_0x361aaa('0x22f')][_0x361aaa('0x1995')]||'')+'${EXTEN}',_0x396dda[_0x361aaa('0xad1')]!==_0x361aaa('0x983')?_0x22a8da[_0x361aaa('0x22f')][_0x361aaa('0x26a0')][_0x361aaa('0x2004')]('U(xcally-mixmonitor-context)')<0x0&&(_0x22a8da[_0x361aaa('0x22f')]['options']+=_0x361aaa('0x478')):_0x22a8da[_0x361aaa('0x22f')][_0x361aaa('0x26a0')]=_0x22a8da[_0x361aaa('0x22f')][_0x361aaa('0x26a0')][_0x361aaa('0x16e4')](_0x361aaa('0x478'),''));if(_0x22a8da[_0x361aaa('0x22f')][_0x361aaa('0x522')]&&_0x22a8da['close'][_0x361aaa('0x522')]===_0x361aaa('0xf50')){}else switch((_0x22a8da[_0x361aaa('0x22f')]['app']||_0x22a8da[_0x361aaa('0x22f')]['appType'])[_0x361aaa('0xac2')]()){case _0x361aaa('0x1125'):_0x22a8da[_0x361aaa('0x22f')][_0x361aaa('0x23c2')]=_0x22a8da[_0x361aaa('0x22f')][_0x361aaa('0x19fe')]+'='+_0x22a8da[_0x361aaa('0x22f')][_0x361aaa('0x2228')];break;case _0x361aaa('0xf50'):break;default:_0x57408c[0x0]=_0x22a8da[_0x361aaa('0x22f')][_0x361aaa('0x22c8')],_0x22a8da['close']['appdata']=_0x57408c[_0x361aaa('0x136')](',');}_0x1d75ab(_0x22a8da['close']);}function _0x1d75ab(_0x306097){_0x5138f7['hide'](_0x306097);}}const _0x408620=_0xdf9a60;_0x4eeb57['$inject']=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x1e4d'),_0x3877e3('0xeb2'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'crudPermissions'];function _0x4eeb57(_0x1d5f22,_0x549af1,_0x13faac,_0x37ad7e,_0x40f706,_0xea71ef,_0x2276e0,_0x57f450){var _0x5d68a3=_0x3877e3,_0x2e4e36=this;_0x2e4e36[_0x5d68a3('0x123f')]=_0x2276e0[_0x5d68a3('0x15ed')](),_0x2e4e36[_0x5d68a3('0x1a69')]=[],_0x2e4e36[_0x5d68a3('0x4b4')]=_0x5d68a3('0x12a5')+(_0x37ad7e['appType']||_0x37ad7e[_0x5d68a3('0x1f94')])[_0x5d68a3('0x2e8')](),_0x2e4e36[_0x5d68a3('0x262')]=angular[_0x5d68a3('0xd75')](_0x37ad7e),_0x2e4e36[_0x5d68a3('0x5ed')]=_0x57f450,_0x2e4e36[_0x5d68a3('0x126a')]={};if(_0x2e4e36[_0x5d68a3('0x262')][_0x5d68a3('0x23c2')])switch(_0x2e4e36['gotoif'][_0x5d68a3('0x522')]?_0x2e4e36['gotoif']['appType']['toLowerCase']():_0x2e4e36[_0x5d68a3('0x262')]['app'][_0x5d68a3('0xac2')]()){case _0x5d68a3('0xf50'):break;case _0x5d68a3('0xc72'):{var _0x326e82=_0x2e4e36[_0x5d68a3('0x262')][_0x5d68a3('0x23c2')][_0x5d68a3('0x1af5')](',');_0x2e4e36[_0x5d68a3('0x262')][_0x5d68a3('0xddb')]=_0x326e82[0x0],_0x2e4e36[_0x5d68a3('0x262')][_0x5d68a3('0x10f')]=_0x326e82[0x1],_0x2e4e36['gotoif']['welcomemessage']=_0x326e82['slice'](0x2,_0x326e82[_0x5d68a3('0x577')])[_0x5d68a3('0x136')](',');}break;case _0x5d68a3('0x1c22'):{var _0x4237e5=_0x2e4e36['gotoif'][_0x5d68a3('0x23c2')][_0x5d68a3('0x1af5')](',');_0x2e4e36[_0x5d68a3('0x262')][_0x5d68a3('0x21c6')]=_0x4237e5[0x0],_0x2e4e36[_0x5d68a3('0x262')][_0x5d68a3('0x797')]=_0x4237e5[0x1],_0x2e4e36['gotoif'][_0x5d68a3('0x20a3')]=_0x4237e5[0x2],_0x2e4e36[_0x5d68a3('0x262')][_0x5d68a3('0x15fe')]=_0x4237e5[0x3],_0x2e4e36['gotoif']['welcomemessage']=_0x4237e5['slice'](0x4,_0x4237e5[_0x5d68a3('0x577')])['join'](',');}break;case _0x5d68a3('0x1b98'):{var _0x4697a8=_0x2e4e36[_0x5d68a3('0x262')][_0x5d68a3('0x23c2')]['split'](',');_0x2e4e36['gotoif'][_0x5d68a3('0x13b6')]=isNaN(_0x4697a8[0x0])?_0x4697a8[0x0]:parseInt(_0x4697a8[0x0],0xa),_0x2e4e36['gotoif'][_0x5d68a3('0xc1e')]=_0x4697a8[_0x5d68a3('0xb3d')](0x1,_0x4697a8['length'])[_0x5d68a3('0x136')](',');}break;case'message':_0x2e4e36['gotoif']['text']=_0x2e4e36['gotoif'][_0x5d68a3('0x23c2')];break;case _0x5d68a3('0x1125'):_0x2e4e36[_0x5d68a3('0x262')]['name']=_0x2e4e36[_0x5d68a3('0x262')]['appdata']['split']('=')[0x0],_0x2e4e36['gotoif'][_0x5d68a3('0x2228')]=_0x2e4e36[_0x5d68a3('0x262')][_0x5d68a3('0x23c2')][_0x5d68a3('0x1af5')]('=')[0x1];break;case _0x5d68a3('0x2356'):_0x2e4e36[_0x5d68a3('0x262')][_0x5d68a3('0xbf8')]=_0x2e4e36[_0x5d68a3('0x262')][_0x5d68a3('0x23c2')];break;default:{var _0x12eb3a=_0x2e4e36[_0x5d68a3('0x262')]['appdata'][_0x5d68a3('0x1af5')](',');_0x2e4e36[_0x5d68a3('0x262')][_0x5d68a3('0x271c')]=_0x86640f()[_0x5d68a3('0x23aa')](_0x12eb3a[0x0])?_0x12eb3a[0x0]:isNaN(_0x12eb3a[0x0])?_0x12eb3a[0x0]:parseInt(_0x12eb3a[0x0],0xa),_0x2e4e36[_0x5d68a3('0x262')][_0x5d68a3('0x1a25')]=_0x86640f()['isEmpty'](_0x12eb3a[0x1])?_0x12eb3a[0x1]:isNaN(_0x12eb3a[0x1])?_0x12eb3a[0x1]:parseInt(_0x12eb3a[0x1],0xa),_0x2e4e36[_0x5d68a3('0x262')]['falsepriority']=_0x86640f()[_0x5d68a3('0x23aa')](_0x12eb3a[0x2])?_0x12eb3a[0x2]:isNaN(_0x12eb3a[0x2])?_0x12eb3a[0x2]:parseInt(_0x12eb3a[0x2],0xa);}break;}else{}_0x2e4e36[_0x5d68a3('0x262')][_0x5d68a3('0x7fa')]&&_0x2e4e36[_0x5d68a3('0x262')][_0x5d68a3('0x7fa')]['toLowerCase']()==='outbound'&&_0x2e4e36[_0x5d68a3('0x262')][_0x5d68a3('0x522')]['toLowerCase']()==='outbounddial'&&(_0x2e4e36['gotoif'][_0x5d68a3('0x1995')]=_0x2e4e36['gotoif']['phone']?_0x2e4e36[_0x5d68a3('0x262')][_0x5d68a3('0x159e')][_0x5d68a3('0x1af5')]('$')[0x0]:undefined,_0x2e4e36[_0x5d68a3('0x262')][_0x5d68a3('0x26f7')]=_0x2e4e36[_0x5d68a3('0x262')]['callerID']?_0x5d68a3('0x587')+_0x2e4e36[_0x5d68a3('0x262')][_0x5d68a3('0x1f5a')]:undefined);_0x2e4e36['saveFaxAccountApp']=_0x5b543b,_0x2e4e36[_0x5d68a3('0x167')]=_0x11652c;function _0x5b543b(){var _0x282203=_0x5d68a3;_0x2e4e36['errors']=[];var _0x369c4f=[];_0x2e4e36['gotoif'][_0x282203('0x7fa')]&&_0x2e4e36[_0x282203('0x262')][_0x282203('0x7fa')]['toLowerCase']()===_0x282203('0x2300')&&_0x2e4e36['gotoif'][_0x282203('0x522')]===_0x282203('0x4ea')&&(_0x2e4e36[_0x282203('0x262')]['phone']=_0x40f706['cutdigits']?(_0x2e4e36[_0x282203('0x262')][_0x282203('0x1995')]||'')+_0x282203('0x349')+_0x40f706['cutdigits']+'}':(_0x2e4e36[_0x282203('0x262')][_0x282203('0x1995')]||'')+_0x282203('0x2560'),_0x40f706['recordingFormat']!==_0x282203('0x983')?_0x2e4e36['gotoif'][_0x282203('0x26a0')][_0x282203('0x2004')](_0x282203('0x478'))<0x0&&(_0x2e4e36[_0x282203('0x262')][_0x282203('0x26a0')]+=_0x282203('0x478')):_0x2e4e36[_0x282203('0x262')][_0x282203('0x26a0')]=_0x2e4e36[_0x282203('0x262')]['options'][_0x282203('0x16e4')](_0x282203('0x478'),''));if(_0x2e4e36['gotoif'][_0x282203('0x522')]&&_0x2e4e36[_0x282203('0x262')][_0x282203('0x522')]===_0x282203('0xf50')){}else switch((_0x2e4e36[_0x282203('0x262')][_0x282203('0x1f94')]||_0x2e4e36[_0x282203('0x262')][_0x282203('0x522')])['toLowerCase']()){case _0x282203('0x1125'):_0x2e4e36['gotoif'][_0x282203('0x23c2')]=_0x2e4e36[_0x282203('0x262')]['name']+'='+_0x2e4e36[_0x282203('0x262')][_0x282203('0x2228')];break;case _0x282203('0xf50'):break;default:_0x369c4f[0x0]=_0x2e4e36[_0x282203('0x262')][_0x282203('0x271c')],_0x369c4f[0x1]=_0x2e4e36[_0x282203('0x262')][_0x282203('0x1a25')],_0x369c4f[0x2]=_0x2e4e36['gotoif'][_0x282203('0xe4c')],_0x2e4e36[_0x282203('0x262')]['appdata']=_0x369c4f[_0x282203('0x136')](',');}_0x11652c(_0x2e4e36[_0x282203('0x262')]);}function _0x11652c(_0x43a95d){var _0x48aac7=_0x5d68a3;_0x1d5f22[_0x48aac7('0x1c24')](_0x43a95d);}}const _0x596e41=_0x4eeb57;_0x578053[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x1e4d'),'faxAccount',_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x578053(_0x1486d5,_0x4898f9,_0x7c8309,_0x1d7530,_0x1f2996,_0x5cde78,_0x3a2fbc,_0x3fb36b){var _0xf99e2a=_0x3877e3,_0x1531c4=this;_0x1531c4[_0xf99e2a('0x123f')]=_0x3a2fbc[_0xf99e2a('0x15ed')](),_0x1531c4[_0xf99e2a('0x1a69')]=[],_0x1531c4[_0xf99e2a('0x4b4')]=_0xf99e2a('0x12a5')+(_0x1d7530[_0xf99e2a('0x522')]||_0x1d7530['app'])[_0xf99e2a('0x2e8')](),_0x1531c4[_0xf99e2a('0x23ef')]=angular[_0xf99e2a('0xd75')](_0x1d7530),_0x1531c4[_0xf99e2a('0x5ed')]=_0x3fb36b,_0x1531c4[_0xf99e2a('0x126a')]={};if(_0x1531c4[_0xf99e2a('0x23ef')][_0xf99e2a('0x23c2')])switch(_0x1531c4[_0xf99e2a('0x23ef')]['appType']?_0x1531c4[_0xf99e2a('0x23ef')][_0xf99e2a('0x522')][_0xf99e2a('0xac2')]():_0x1531c4[_0xf99e2a('0x23ef')][_0xf99e2a('0x1f94')][_0xf99e2a('0xac2')]()){case _0xf99e2a('0xf50'):break;case _0xf99e2a('0xc72'):{var _0x18de71=_0x1531c4[_0xf99e2a('0x23ef')][_0xf99e2a('0x23c2')]['split'](',');_0x1531c4[_0xf99e2a('0x23ef')]['key']=_0x18de71[0x0],_0x1531c4['gotop'][_0xf99e2a('0x10f')]=_0x18de71[0x1],_0x1531c4[_0xf99e2a('0x23ef')][_0xf99e2a('0x1cce')]=_0x18de71[_0xf99e2a('0xb3d')](0x2,_0x18de71[_0xf99e2a('0x577')])[_0xf99e2a('0x136')](',');}break;case _0xf99e2a('0x1c22'):{var _0x3d93cc=_0x1531c4[_0xf99e2a('0x23ef')]['appdata'][_0xf99e2a('0x1af5')](',');_0x1531c4[_0xf99e2a('0x23ef')][_0xf99e2a('0x21c6')]=_0x3d93cc[0x0],_0x1531c4[_0xf99e2a('0x23ef')]['secretaccesskey']=_0x3d93cc[0x1],_0x1531c4[_0xf99e2a('0x23ef')][_0xf99e2a('0x20a3')]=_0x3d93cc[0x2],_0x1531c4[_0xf99e2a('0x23ef')][_0xf99e2a('0x15fe')]=_0x3d93cc[0x3],_0x1531c4[_0xf99e2a('0x23ef')][_0xf99e2a('0x1cce')]=_0x3d93cc[_0xf99e2a('0xb3d')](0x4,_0x3d93cc[_0xf99e2a('0x577')])[_0xf99e2a('0x136')](',');}break;case _0xf99e2a('0x1b98'):{var _0x54177b=_0x1531c4[_0xf99e2a('0x23ef')][_0xf99e2a('0x23c2')]['split'](',');_0x1531c4[_0xf99e2a('0x23ef')][_0xf99e2a('0x13b6')]=isNaN(_0x54177b[0x0])?_0x54177b[0x0]:parseInt(_0x54177b[0x0],0xa),_0x1531c4[_0xf99e2a('0x23ef')][_0xf99e2a('0xc1e')]=_0x54177b['slice'](0x1,_0x54177b[_0xf99e2a('0x577')])['join'](',');}break;case _0xf99e2a('0x1224'):_0x1531c4[_0xf99e2a('0x23ef')][_0xf99e2a('0xc1e')]=_0x1531c4[_0xf99e2a('0x23ef')]['appdata'];break;case _0xf99e2a('0x1125'):_0x1531c4['gotop'][_0xf99e2a('0x19fe')]=_0x1531c4[_0xf99e2a('0x23ef')][_0xf99e2a('0x23c2')][_0xf99e2a('0x1af5')]('=')[0x0],_0x1531c4[_0xf99e2a('0x23ef')]['value']=_0x1531c4[_0xf99e2a('0x23ef')]['appdata'][_0xf99e2a('0x1af5')]('=')[0x1];break;case'agi':_0x1531c4[_0xf99e2a('0x23ef')][_0xf99e2a('0xbf8')]=_0x1531c4[_0xf99e2a('0x23ef')][_0xf99e2a('0x23c2')];break;default:{var _0x3073d1=_0x1531c4[_0xf99e2a('0x23ef')]['appdata'][_0xf99e2a('0x1af5')](',');_0x1531c4[_0xf99e2a('0x23ef')][_0xf99e2a('0xbe5')]=_0x86640f()['isEmpty'](_0x3073d1[0x0])?_0x3073d1[0x0]:isNaN(_0x3073d1[0x0])?_0x3073d1[0x0]:parseInt(_0x3073d1[0x0],0xa);}break;}else{}_0x1531c4[_0xf99e2a('0x23ef')][_0xf99e2a('0x7fa')]&&_0x1531c4[_0xf99e2a('0x23ef')][_0xf99e2a('0x7fa')][_0xf99e2a('0xac2')]()==='outbound'&&_0x1531c4[_0xf99e2a('0x23ef')][_0xf99e2a('0x522')][_0xf99e2a('0xac2')]()===_0xf99e2a('0x2363')&&(_0x1531c4[_0xf99e2a('0x23ef')]['prefix']=_0x1531c4[_0xf99e2a('0x23ef')][_0xf99e2a('0x159e')]?_0x1531c4[_0xf99e2a('0x23ef')][_0xf99e2a('0x159e')][_0xf99e2a('0x1af5')]('$')[0x0]:undefined,_0x1531c4[_0xf99e2a('0x23ef')][_0xf99e2a('0x26f7')]=_0x1531c4['gotop'][_0xf99e2a('0x1f5a')]?_0xf99e2a('0x587')+_0x1531c4[_0xf99e2a('0x23ef')]['callerID']:undefined);_0x1531c4['saveFaxAccountApp']=_0xdf4f70,_0x1531c4['closeDialog']=_0x4005bc;function _0xdf4f70(){var _0x4bcd2e=_0xf99e2a;_0x1531c4[_0x4bcd2e('0x1a69')]=[];var _0x2b8d3e=[];_0x1531c4[_0x4bcd2e('0x23ef')][_0x4bcd2e('0x7fa')]&&_0x1531c4[_0x4bcd2e('0x23ef')]['type']['toLowerCase']()===_0x4bcd2e('0x2300')&&_0x1531c4[_0x4bcd2e('0x23ef')][_0x4bcd2e('0x522')]===_0x4bcd2e('0x4ea')&&(_0x1531c4[_0x4bcd2e('0x23ef')][_0x4bcd2e('0x159e')]=_0x1f2996[_0x4bcd2e('0x988')]?(_0x1531c4['gotop']['prefix']||'')+_0x4bcd2e('0x349')+_0x1f2996['cutdigits']+'}':(_0x1531c4[_0x4bcd2e('0x23ef')][_0x4bcd2e('0x1995')]||'')+_0x4bcd2e('0x2560'),_0x1f2996[_0x4bcd2e('0xad1')]!=='none'?_0x1531c4['gotop'][_0x4bcd2e('0x26a0')][_0x4bcd2e('0x2004')](_0x4bcd2e('0x478'))<0x0&&(_0x1531c4[_0x4bcd2e('0x23ef')]['options']+=_0x4bcd2e('0x478')):_0x1531c4[_0x4bcd2e('0x23ef')][_0x4bcd2e('0x26a0')]=_0x1531c4[_0x4bcd2e('0x23ef')]['options']['replace'](_0x4bcd2e('0x478'),''));if(_0x1531c4[_0x4bcd2e('0x23ef')]['appType']&&_0x1531c4[_0x4bcd2e('0x23ef')][_0x4bcd2e('0x522')]==='custom'){}else switch((_0x1531c4['gotop'][_0x4bcd2e('0x1f94')]||_0x1531c4[_0x4bcd2e('0x23ef')][_0x4bcd2e('0x522')])['toLowerCase']()){case _0x4bcd2e('0x1125'):_0x1531c4[_0x4bcd2e('0x23ef')][_0x4bcd2e('0x23c2')]=_0x1531c4[_0x4bcd2e('0x23ef')]['name']+'='+_0x1531c4[_0x4bcd2e('0x23ef')][_0x4bcd2e('0x2228')];break;case _0x4bcd2e('0xf50'):break;default:_0x2b8d3e[0x0]=_0x1531c4[_0x4bcd2e('0x23ef')][_0x4bcd2e('0xbe5')],_0x1531c4[_0x4bcd2e('0x23ef')][_0x4bcd2e('0x23c2')]=_0x2b8d3e[_0x4bcd2e('0x136')](',');}_0x4005bc(_0x1531c4[_0x4bcd2e('0x23ef')]);}function _0x4005bc(_0x2217d2){var _0x92425a=_0xf99e2a;_0x1486d5[_0x92425a('0x1c24')](_0x2217d2);}}const _0x563dc8=_0x578053;_0x50d5f7[_0x3877e3('0x1a81')]=['$state',_0x3877e3('0x1850'),'$mdToast',_0x3877e3('0x2086'),_0x3877e3('0xa07'),'intervals',_0x3877e3('0x1908'),'api',_0x3877e3('0x15bc'),'crudPermissions'];function _0x50d5f7(_0x89ff72,_0x2bb3c4,_0x4f0b75,_0x1f16ad,_0x3e6d4b,_0x3fae94,_0x149397,_0x4ace71,_0x3daebb,_0x78b2e0){var _0x252b90=_0x3877e3,_0x3c2475=this;_0x3c2475[_0x252b90('0x123f')]=_0x3daebb['getCurrentUser'](),_0x3c2475['errors']=[],_0x3c2475['title']=_0x252b90('0x130e'),_0x3c2475['interval']=angular[_0x252b90('0xd75')](_0x3e6d4b),_0x3c2475[_0x252b90('0x2530')]=_0x3fae94,_0x3c2475[_0x252b90('0x1c3e')]=![],_0x3c2475[_0x252b90('0x4ca')]=[_0x252b90('0x869'),_0x252b90('0xf50'),'list'],_0x3c2475[_0x252b90('0x5ed')]=_0x78b2e0,_0x3c2475[_0x252b90('0x45e')]=_0x1f16ad[_0x252b90('0x1d74')](),_0x3c2475[_0x252b90('0x6fd')]=_0x1f16ad['getMonthNumber'](),_0x3c2475['monthName']=_0x1f16ad['getMonthName'](),_0x3c2475[_0x252b90('0x443')]=_0x1f16ad[_0x252b90('0x200e')]();if(!_0x3c2475[_0x252b90('0xa07')])_0x3c2475[_0x252b90('0xa07')]={'interval':_0x252b90('0x1cc4')},_0x3c2475['type']='always',_0x3c2475[_0x252b90('0x4b4')]='TOOLS.NEW_INTERVAL',_0x3c2475[_0x252b90('0x1c3e')]=!![];else{if(_0x3c2475[_0x252b90('0xa07')][_0x252b90('0xa07')]!=='*,*,*,*'){_0x3c2475[_0x252b90('0x7fa')]=_0x252b90('0xf50');var _0x233193=_0x3c2475['interval'][_0x252b90('0xa07')][_0x252b90('0x1af5')](','),_0x1aee17=_0x233193[0x0],_0x1d1466=_0x233193[0x1],_0x5b7908=_0x233193[0x2],_0x40827a=_0x233193[0x3];if(_0x1aee17!=='*'){var _0x38839c=_0x1aee17[_0x252b90('0x1af5')]('-')[0x0],_0x2d4772=_0x1aee17['split']('-')[0x1],_0xa484fb;_0xa484fb=new Date(),_0xa484fb[_0x252b90('0xb0f')](Number(_0x38839c[_0x252b90('0x1af5')](':')[0x0])),_0xa484fb['setMinutes'](Number(_0x38839c[_0x252b90('0x1af5')](':')[0x1])),_0x3c2475[_0x252b90('0x3e8')]=_0xa484fb,_0xa484fb=new Date(),_0xa484fb[_0x252b90('0xb0f')](Number(_0x2d4772[_0x252b90('0x1af5')](':')[0x0])),_0xa484fb[_0x252b90('0x119c')](Number(_0x2d4772['split'](':')[0x1])),_0x3c2475[_0x252b90('0x1fbc')]=_0xa484fb;}_0x1d1466!=='*'&&(_0x3c2475[_0x252b90('0x21a5')]=_0x1d1466['split']('-')[0x0],_0x3c2475[_0x252b90('0x1556')]=_0x1d1466['split']('-')[0x1]),_0x5b7908!=='*'&&(_0x3c2475[_0x252b90('0x14ec')]=_0x5b7908[_0x252b90('0x1af5')]('-')[0x0],_0x3c2475[_0x252b90('0x3bf')]=_0x5b7908[_0x252b90('0x1af5')]('-')[0x1]),_0x40827a!=='*'&&(_0x3c2475[_0x252b90('0xded')]=_0x40827a[_0x252b90('0x1af5')]('-')[0x0],_0x3c2475[_0x252b90('0x2633')]=_0x40827a['split']('-')[0x1]);}else _0x3c2475[_0x252b90('0x7fa')]=_0x252b90('0x869');}_0x89ff72[_0x252b90('0x171b')]['id']&&!_0x3c2475['interval'][_0x252b90('0xd7f')]&&(_0x3c2475['interval'][_0x252b90('0x1ac8')]=_0x89ff72[_0x252b90('0x171b')]['id']);_0x3c2475[_0x252b90('0xa07')][_0x252b90('0x1ac8')]&&_0x3c2475['interval'][_0x252b90('0xd7f')]&&(_0x3c2475[_0x252b90('0x7fa')]=_0x252b90('0x17fe'));_0x3c2475[_0x252b90('0x2bb')]=_0x493779,_0x3c2475[_0x252b90('0xc2e')]=_0x2cdc2f,_0x3c2475[_0x252b90('0x167')]=_0x2df087;_0x3c2475[_0x252b90('0xa07')][_0x252b90('0xd7f')]&&(_0x3daebb[_0x252b90('0x21de')](_0x252b90('0x1bd8'))?_0x4ace71[_0x252b90('0xa07')][_0x252b90('0x595')]({'fields':'id,name,interval,IntervalId','IntervalId':_0x252b90('0x27a'),'nolimit':!![]})[_0x252b90('0x1376')][_0x252b90('0x21ad')](function(_0x22a0ae){var _0xe41ad2=_0x252b90;_0x3c2475['intervals']=_0x22a0ae[_0xe41ad2('0x1b33')]||[];})['catch'](function(_0x34b5c3){var _0x54b2ba=_0x252b90;_0x149397['error']({'title':_0x34b5c3[_0x54b2ba('0x209')]?_0x54b2ba('0x22d')+_0x34b5c3[_0x54b2ba('0x209')]+_0x54b2ba('0xa99')+_0x34b5c3[_0x54b2ba('0x1808')]:_0x54b2ba('0xdc5'),'msg':_0x34b5c3[_0x54b2ba('0x11c2')]?JSON[_0x54b2ba('0x25e')](_0x34b5c3['data']):_0x34b5c3[_0x54b2ba('0x174f')]()});}):_0x4ace71[_0x252b90('0xa07')][_0x252b90('0x595')]({'fields':'id,name,interval,IntervalId','IntervalId':_0x252b90('0x27a'),'nolimit':!![]})[_0x252b90('0x1376')][_0x252b90('0x21ad')](function(_0x1966a9){var _0x807c1d=_0x252b90;_0x3c2475[_0x807c1d('0x2530')]=_0x1966a9[_0x807c1d('0x1b33')]||[];})['then'](function(){var _0x135836=_0x252b90;return _0x4ace71[_0x135836('0xab4')][_0x135836('0x595')]({'userProfileId':_0x3c2475[_0x135836('0x123f')][_0x135836('0x1618')],'sectionId':0x3ec})[_0x135836('0x1376')];})[_0x252b90('0x21ad')](function(_0x57b325){var _0x524a74=_0x252b90,_0x1db551=_0x57b325&&_0x57b325['rows']?_0x57b325['rows'][0x0]:null;if(!_0x1db551)_0x3c2475[_0x524a74('0x2530')]=[];else{if(!_0x1db551[_0x524a74('0x80c')])return _0x4ace71[_0x524a74('0x185e')][_0x524a74('0x595')]({'sectionId':_0x1db551['id']})[_0x524a74('0x1376')]['then'](function(_0x25b5be){var _0x2c35e1=_0x524a74,_0x1fb261=_0x25b5be&&_0x25b5be[_0x2c35e1('0x1b33')]?_0x25b5be[_0x2c35e1('0x1b33')]:[],_0x5ec3fc=[],_0x5e4fcc=null;_0x3c2475[_0x2c35e1('0xa07')]&&(_0x5e4fcc=_0x86640f()[_0x2c35e1('0x1d2e')](_0x3c2475[_0x2c35e1('0x2530')],{'name':_0x3c2475[_0x2c35e1('0xa07')][_0x2c35e1('0x1ac8')]})),_0x5e4fcc&&!_0x86640f()[_0x2c35e1('0x2664')](_0x1fb261,[_0x2c35e1('0x675'),_0x5e4fcc['id']])&&_0x3c2475[_0x2c35e1('0x2530')]['forEach'](function(_0x202e67){var _0x275bb2=_0x2c35e1;_0x202e67['id']===_0x5e4fcc['id']&&(_0x202e67[_0x275bb2('0xba')]=![],_0x5ec3fc[_0x275bb2('0x206c')](_0x202e67));}),_0x3c2475[_0x2c35e1('0x2530')]=_0x5ec3fc;});}})[_0x252b90('0x1c1d')](function(_0x61861d){var _0x2d93ff=_0x252b90;_0x149397[_0x2d93ff('0x2092')]({'title':_0x61861d[_0x2d93ff('0x209')]?'API:'+_0x61861d[_0x2d93ff('0x209')]+_0x2d93ff('0xa99')+_0x61861d[_0x2d93ff('0x1808')]:'SYSTEM:GET_INTERVALS','msg':_0x61861d[_0x2d93ff('0x11c2')]?JSON[_0x2d93ff('0x25e')](_0x61861d[_0x2d93ff('0x11c2')]):_0x61861d[_0x2d93ff('0x174f')]()});}));function _0x73dff(){var _0x53e734=_0x252b90;switch(_0x3c2475[_0x53e734('0x7fa')]){case _0x53e734('0x869'):case _0x53e734('0x17fe'):return _0x53e734('0x1cc4');case _0x53e734('0xf50'):{var _0x4c7208=[];if(_0x3c2475[_0x53e734('0x3e8')]!=='*'&&_0x3c2475[_0x53e734('0x3e8')]&&_0x3c2475['timeRangeTo']){var _0x55ade3=(_0x3c2475['timeRangeFrom']['getHours']()<0xa?'0':'')+_0x3c2475[_0x53e734('0x3e8')][_0x53e734('0x10c1')]()+':'+((_0x3c2475[_0x53e734('0x3e8')][_0x53e734('0x27ee')]()<0xa?'0':'')+_0x3c2475['timeRangeFrom'][_0x53e734('0x27ee')]()),_0x1169ce=(_0x3c2475['timeRangeTo'][_0x53e734('0x10c1')]()<0xa?'0':'')+_0x3c2475[_0x53e734('0x1fbc')][_0x53e734('0x10c1')]()+':'+((_0x3c2475['timeRangeTo']['getMinutes']()<0xa?'0':'')+_0x3c2475['timeRangeTo'][_0x53e734('0x27ee')]());_0x4c7208[_0x53e734('0x206c')](_0x55ade3+'-'+_0x1169ce);}else _0x4c7208[_0x53e734('0x206c')]('*');return _0x3c2475['dayOfWeekFrom']?_0x3c2475['dayOfWeekTo']?_0x4c7208['push'](_0x3c2475['dayOfWeekFrom']+'-'+_0x3c2475[_0x53e734('0x1556')]):_0x4c7208[_0x53e734('0x206c')](_0x3c2475[_0x53e734('0x21a5')]):_0x4c7208['push']('*'),_0x3c2475[_0x53e734('0x14ec')]?_0x3c2475['monthDayTo']?_0x4c7208[_0x53e734('0x206c')](_0x3c2475[_0x53e734('0x14ec')]+'-'+_0x3c2475[_0x53e734('0x3bf')]):_0x4c7208['push'](_0x3c2475[_0x53e734('0x14ec')]):_0x4c7208[_0x53e734('0x206c')]('*'),_0x3c2475[_0x53e734('0xded')]?_0x3c2475[_0x53e734('0x2633')]?_0x4c7208['push'](_0x3c2475[_0x53e734('0xded')]+'-'+_0x3c2475['monthTo']):_0x4c7208[_0x53e734('0x206c')](_0x3c2475[_0x53e734('0xded')]):_0x4c7208[_0x53e734('0x206c')]('*'),_0x4c7208[_0x53e734('0x136')]();}}}function _0x493779(){var _0x3bc5e2=_0x252b90;_0x3c2475[_0x3bc5e2('0x1a69')]=[],_0x3c2475['interval']['interval']=_0x73dff(),_0x4ace71[_0x3bc5e2('0xa07')][_0x3bc5e2('0x186f')](_0x3c2475['interval'])[_0x3bc5e2('0x1376')][_0x3bc5e2('0x21ad')](function(_0x58b54e){var _0x3eeb29=_0x3bc5e2;_0x3c2475[_0x3eeb29('0x2530')][_0x3eeb29('0x206c')](_0x58b54e),_0x149397[_0x3eeb29('0xdb1')]({'title':'Interval\x20properly\x20created','msg':_0x3c2475[_0x3eeb29('0xa07')][_0x3eeb29('0x19fe')]?_0x3c2475[_0x3eeb29('0xa07')][_0x3eeb29('0x19fe')]+'\x20has\x20been\x20created!':''}),_0x2df087();})['catch'](function(_0x458589){var _0x33de42=_0x3bc5e2;console[_0x33de42('0x2092')](_0x458589),_0x3c2475[_0x33de42('0x1a69')]=_0x458589[_0x33de42('0x11c2')]['errors']||[{'message':_0x458589[_0x33de42('0x174f')](),'type':_0x33de42('0x27de')}];});}function _0x2cdc2f(){var _0x537475=_0x252b90;_0x3c2475[_0x537475('0x1a69')]=[],_0x3c2475[_0x537475('0xa07')]['interval']=_0x73dff(),_0x3c2475[_0x537475('0xa07')][_0x537475('0xd7f')]?(_0x3c2475[_0x537475('0x7fa')]!==_0x537475('0x17fe')&&(_0x3c2475[_0x537475('0xa07')]['IntervalId']=null),_0x2df087(_0x3c2475[_0x537475('0xa07')])):_0x4ace71[_0x537475('0xa07')][_0x537475('0x5ef')]({'id':_0x3c2475['interval']['id']},_0x3c2475[_0x537475('0xa07')])[_0x537475('0x1376')][_0x537475('0x21ad')](function(_0x51acd3){var _0x57f64b=_0x537475,_0x1d0337=_0x86640f()['find'](_0x3c2475[_0x57f64b('0x2530')],{'id':_0x51acd3['id']});_0x1d0337&&_0x86640f()[_0x57f64b('0xd0e')](_0x1d0337,_0x51acd3),_0x149397[_0x57f64b('0xdb1')]({'title':_0x57f64b('0x234'),'msg':'Interval\x20has\x20been\x20saved!'}),_0x2df087();})['catch'](function(_0x3c1257){var _0x4e1d16=_0x537475;console['error'](_0x3c1257),_0x3c2475[_0x4e1d16('0x1a69')]=_0x3c1257[_0x4e1d16('0x11c2')][_0x4e1d16('0x1a69')]||[{'message':_0x3c1257[_0x4e1d16('0x174f')](),'type':_0x4e1d16('0x13fa')}];});}function _0x2df087(_0x204d78){var _0x519549=_0x252b90;_0x2bb3c4[_0x519549('0x1c24')](_0x204d78);}}const _0x2a481e=_0x50d5f7;_0x7c9366['$inject']=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x1e4d'),_0x3877e3('0xeb2'),'api',_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x7c9366(_0x414eea,_0x1bec4d,_0x15701c,_0x3f572a,_0x3297d8,_0x138218,_0x159754,_0x26296b){var _0x1ff44f=_0x3877e3,_0x198a3b=this;_0x198a3b[_0x1ff44f('0x123f')]=_0x159754[_0x1ff44f('0x15ed')](),_0x198a3b[_0x1ff44f('0x1a69')]=[],_0x198a3b[_0x1ff44f('0x4b4')]='FAX.EDIT_'+(_0x3f572a[_0x1ff44f('0x522')]||_0x3f572a['app'])[_0x1ff44f('0x2e8')](),_0x198a3b['noop']=angular[_0x1ff44f('0xd75')](_0x3f572a),_0x198a3b[_0x1ff44f('0x5ed')]=_0x26296b,_0x198a3b[_0x1ff44f('0x126a')]={};if(_0x198a3b[_0x1ff44f('0x2101')][_0x1ff44f('0x23c2')])switch(_0x198a3b[_0x1ff44f('0x2101')][_0x1ff44f('0x522')]?_0x198a3b[_0x1ff44f('0x2101')]['appType'][_0x1ff44f('0xac2')]():_0x198a3b[_0x1ff44f('0x2101')][_0x1ff44f('0x1f94')]['toLowerCase']()){case _0x1ff44f('0xf50'):break;case _0x1ff44f('0xc72'):{var _0x4f3d82=_0x198a3b[_0x1ff44f('0x2101')][_0x1ff44f('0x23c2')][_0x1ff44f('0x1af5')](',');_0x198a3b[_0x1ff44f('0x2101')]['key']=_0x4f3d82[0x0],_0x198a3b['noop'][_0x1ff44f('0x10f')]=_0x4f3d82[0x1],_0x198a3b['noop']['welcomemessage']=_0x4f3d82['slice'](0x2,_0x4f3d82[_0x1ff44f('0x577')])['join'](',');}break;case _0x1ff44f('0x1c22'):{var _0xc15165=_0x198a3b[_0x1ff44f('0x2101')][_0x1ff44f('0x23c2')]['split'](',');_0x198a3b[_0x1ff44f('0x2101')][_0x1ff44f('0x21c6')]=_0xc15165[0x0],_0x198a3b[_0x1ff44f('0x2101')][_0x1ff44f('0x797')]=_0xc15165[0x1],_0x198a3b[_0x1ff44f('0x2101')][_0x1ff44f('0x20a3')]=_0xc15165[0x2],_0x198a3b['noop'][_0x1ff44f('0x15fe')]=_0xc15165[0x3],_0x198a3b[_0x1ff44f('0x2101')][_0x1ff44f('0x1cce')]=_0xc15165[_0x1ff44f('0xb3d')](0x4,_0xc15165['length'])[_0x1ff44f('0x136')](',');}break;case _0x1ff44f('0x1b98'):{var _0x3260d8=_0x198a3b[_0x1ff44f('0x2101')][_0x1ff44f('0x23c2')]['split'](',');_0x198a3b[_0x1ff44f('0x2101')][_0x1ff44f('0x13b6')]=isNaN(_0x3260d8[0x0])?_0x3260d8[0x0]:parseInt(_0x3260d8[0x0],0xa),_0x198a3b[_0x1ff44f('0x2101')][_0x1ff44f('0xc1e')]=_0x3260d8['slice'](0x1,_0x3260d8[_0x1ff44f('0x577')])[_0x1ff44f('0x136')](',');}break;case _0x1ff44f('0x1224'):_0x198a3b['noop']['text']=_0x198a3b[_0x1ff44f('0x2101')][_0x1ff44f('0x23c2')];break;case'set':_0x198a3b[_0x1ff44f('0x2101')][_0x1ff44f('0x19fe')]=_0x198a3b[_0x1ff44f('0x2101')]['appdata'][_0x1ff44f('0x1af5')]('=')[0x0],_0x198a3b[_0x1ff44f('0x2101')][_0x1ff44f('0x2228')]=_0x198a3b['noop'][_0x1ff44f('0x23c2')][_0x1ff44f('0x1af5')]('=')[0x1];break;case _0x1ff44f('0x2356'):_0x198a3b[_0x1ff44f('0x2101')][_0x1ff44f('0xbf8')]=_0x198a3b[_0x1ff44f('0x2101')][_0x1ff44f('0x23c2')];break;default:{var _0xc2421c=_0x198a3b[_0x1ff44f('0x2101')][_0x1ff44f('0x23c2')][_0x1ff44f('0x1af5')](',');_0x198a3b[_0x1ff44f('0x2101')][_0x1ff44f('0x2228')]=_0x86640f()[_0x1ff44f('0x23aa')](_0xc2421c[0x0])?_0xc2421c[0x0]:isNaN(_0xc2421c[0x0])?_0xc2421c[0x0]:parseInt(_0xc2421c[0x0],0xa);}break;}else{}_0x198a3b[_0x1ff44f('0x2101')][_0x1ff44f('0x7fa')]&&_0x198a3b['noop']['type'][_0x1ff44f('0xac2')]()===_0x1ff44f('0x2300')&&_0x198a3b['noop'][_0x1ff44f('0x522')][_0x1ff44f('0xac2')]()===_0x1ff44f('0x2363')&&(_0x198a3b['noop']['prefix']=_0x198a3b[_0x1ff44f('0x2101')][_0x1ff44f('0x159e')]?_0x198a3b[_0x1ff44f('0x2101')]['phone'][_0x1ff44f('0x1af5')]('$')[0x0]:undefined,_0x198a3b[_0x1ff44f('0x2101')][_0x1ff44f('0x26f7')]=_0x198a3b[_0x1ff44f('0x2101')][_0x1ff44f('0x1f5a')]?_0x1ff44f('0x587')+_0x198a3b[_0x1ff44f('0x2101')]['callerID']:undefined);_0x198a3b[_0x1ff44f('0x620')]=_0x255309,_0x198a3b[_0x1ff44f('0x167')]=_0x4c2d6e;function _0x255309(){var _0xbfbaf0=_0x1ff44f;_0x198a3b[_0xbfbaf0('0x1a69')]=[];var _0x32a89b=[];_0x198a3b[_0xbfbaf0('0x2101')][_0xbfbaf0('0x7fa')]&&_0x198a3b[_0xbfbaf0('0x2101')][_0xbfbaf0('0x7fa')]['toLowerCase']()==='outbound'&&_0x198a3b[_0xbfbaf0('0x2101')]['appType']===_0xbfbaf0('0x4ea')&&(_0x198a3b[_0xbfbaf0('0x2101')]['phone']=_0x3297d8[_0xbfbaf0('0x988')]?(_0x198a3b[_0xbfbaf0('0x2101')][_0xbfbaf0('0x1995')]||'')+_0xbfbaf0('0x349')+_0x3297d8['cutdigits']+'}':(_0x198a3b['noop'][_0xbfbaf0('0x1995')]||'')+_0xbfbaf0('0x2560'),_0x3297d8[_0xbfbaf0('0xad1')]!=='none'?_0x198a3b[_0xbfbaf0('0x2101')][_0xbfbaf0('0x26a0')][_0xbfbaf0('0x2004')](_0xbfbaf0('0x478'))<0x0&&(_0x198a3b[_0xbfbaf0('0x2101')][_0xbfbaf0('0x26a0')]+='U(xcally-mixmonitor-context)'):_0x198a3b[_0xbfbaf0('0x2101')]['options']=_0x198a3b['noop'][_0xbfbaf0('0x26a0')][_0xbfbaf0('0x16e4')]('U(xcally-mixmonitor-context)',''));if(_0x198a3b[_0xbfbaf0('0x2101')]['appType']&&_0x198a3b[_0xbfbaf0('0x2101')]['appType']==='custom'){}else switch((_0x198a3b[_0xbfbaf0('0x2101')][_0xbfbaf0('0x1f94')]||_0x198a3b[_0xbfbaf0('0x2101')][_0xbfbaf0('0x522')])[_0xbfbaf0('0xac2')]()){case _0xbfbaf0('0x1125'):_0x198a3b['noop'][_0xbfbaf0('0x23c2')]=_0x198a3b['noop'][_0xbfbaf0('0x19fe')]+'='+_0x198a3b['noop'][_0xbfbaf0('0x2228')];break;case'custom':break;default:_0x32a89b[0x0]=_0x198a3b[_0xbfbaf0('0x2101')][_0xbfbaf0('0x2228')],_0x198a3b[_0xbfbaf0('0x2101')][_0xbfbaf0('0x23c2')]=_0x32a89b[_0xbfbaf0('0x136')](',');}_0x4c2d6e(_0x198a3b['noop']);}function _0x4c2d6e(_0x261b31){_0x414eea['hide'](_0x261b31);}}const _0x466777=_0x7c9366;_0x1ea274[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x1e4d'),'faxAccount','api',_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x1ea274(_0x425ab6,_0x4973f4,_0x256a41,_0x210461,_0xd85205,_0x12f101,_0x27ed55,_0x4c300f){var _0x5c3fbf=_0x3877e3,_0x3a23dc=this;_0x3a23dc[_0x5c3fbf('0x123f')]=_0x27ed55['getCurrentUser'](),_0x3a23dc['errors']=[],_0x3a23dc[_0x5c3fbf('0x4b4')]=_0x5c3fbf('0x12a5')+(_0x210461[_0x5c3fbf('0x522')]||_0x210461['app'])[_0x5c3fbf('0x2e8')](),_0x3a23dc[_0x5c3fbf('0xbdd')]=angular[_0x5c3fbf('0xd75')](_0x210461),_0x3a23dc[_0x5c3fbf('0x5ed')]=_0x4c300f,_0x3a23dc['hasModulePermissions']={};if(_0x3a23dc['queue']['appdata'])switch(_0x3a23dc[_0x5c3fbf('0xbdd')][_0x5c3fbf('0x522')]?_0x3a23dc[_0x5c3fbf('0xbdd')]['appType']['toLowerCase']():_0x3a23dc['queue'][_0x5c3fbf('0x1f94')][_0x5c3fbf('0xac2')]()){case'custom':break;case _0x5c3fbf('0xc72'):{var _0x2773a8=_0x3a23dc['queue']['appdata'][_0x5c3fbf('0x1af5')](',');_0x3a23dc[_0x5c3fbf('0xbdd')][_0x5c3fbf('0xddb')]=_0x2773a8[0x0],_0x3a23dc[_0x5c3fbf('0xbdd')]['language']=_0x2773a8[0x1],_0x3a23dc[_0x5c3fbf('0xbdd')]['welcomemessage']=_0x2773a8[_0x5c3fbf('0xb3d')](0x2,_0x2773a8[_0x5c3fbf('0x577')])[_0x5c3fbf('0x136')](',');}break;case _0x5c3fbf('0x1c22'):{var _0xdd7b9f=_0x3a23dc[_0x5c3fbf('0xbdd')][_0x5c3fbf('0x23c2')][_0x5c3fbf('0x1af5')](',');_0x3a23dc['queue'][_0x5c3fbf('0x21c6')]=_0xdd7b9f[0x0],_0x3a23dc[_0x5c3fbf('0xbdd')][_0x5c3fbf('0x797')]=_0xdd7b9f[0x1],_0x3a23dc['queue'][_0x5c3fbf('0x20a3')]=_0xdd7b9f[0x2],_0x3a23dc[_0x5c3fbf('0xbdd')]['botname']=_0xdd7b9f[0x3],_0x3a23dc['queue']['welcomemessage']=_0xdd7b9f[_0x5c3fbf('0xb3d')](0x4,_0xdd7b9f['length'])[_0x5c3fbf('0x136')](',');}break;case'autoreply':{var _0x581d62=_0x3a23dc[_0x5c3fbf('0xbdd')][_0x5c3fbf('0x23c2')][_0x5c3fbf('0x1af5')](',');_0x3a23dc[_0x5c3fbf('0xbdd')][_0x5c3fbf('0x13b6')]=isNaN(_0x581d62[0x0])?_0x581d62[0x0]:parseInt(_0x581d62[0x0],0xa),_0x3a23dc['queue'][_0x5c3fbf('0xc1e')]=_0x581d62['slice'](0x1,_0x581d62['length'])['join'](',');}break;case'message':_0x3a23dc[_0x5c3fbf('0xbdd')][_0x5c3fbf('0xc1e')]=_0x3a23dc[_0x5c3fbf('0xbdd')][_0x5c3fbf('0x23c2')];break;case _0x5c3fbf('0x1125'):_0x3a23dc[_0x5c3fbf('0xbdd')]['name']=_0x3a23dc[_0x5c3fbf('0xbdd')][_0x5c3fbf('0x23c2')][_0x5c3fbf('0x1af5')]('=')[0x0],_0x3a23dc[_0x5c3fbf('0xbdd')][_0x5c3fbf('0x2228')]=_0x3a23dc[_0x5c3fbf('0xbdd')]['appdata'][_0x5c3fbf('0x1af5')]('=')[0x1];break;case _0x5c3fbf('0x2356'):_0x3a23dc[_0x5c3fbf('0xbdd')][_0x5c3fbf('0xbf8')]=_0x3a23dc[_0x5c3fbf('0xbdd')][_0x5c3fbf('0x23c2')];break;default:{var _0x18a1dd=_0x3a23dc[_0x5c3fbf('0xbdd')][_0x5c3fbf('0x23c2')][_0x5c3fbf('0x1af5')](',');_0x3a23dc[_0x5c3fbf('0xbdd')]['queue']=_0x86640f()[_0x5c3fbf('0x23aa')](_0x18a1dd[0x0])?_0x18a1dd[0x0]:isNaN(_0x18a1dd[0x0])?_0x18a1dd[0x0]:parseInt(_0x18a1dd[0x0],0xa),_0x3a23dc[_0x5c3fbf('0xbdd')][_0x5c3fbf('0x2133')]=_0x86640f()[_0x5c3fbf('0x23aa')](_0x18a1dd[0x1])?_0x18a1dd[0x1]:isNaN(_0x18a1dd[0x1])?_0x18a1dd[0x1]:parseInt(_0x18a1dd[0x1],0xa);}break;}else _0x3a23dc[_0x5c3fbf('0xbdd')][_0x5c3fbf('0xbdd')]=0x12c,_0x3a23dc[_0x5c3fbf('0xbdd')]['timeout']=0x12c;_0x3a23dc[_0x5c3fbf('0xbdd')][_0x5c3fbf('0x7fa')]&&_0x3a23dc[_0x5c3fbf('0xbdd')][_0x5c3fbf('0x7fa')]['toLowerCase']()===_0x5c3fbf('0x2300')&&_0x3a23dc[_0x5c3fbf('0xbdd')][_0x5c3fbf('0x522')][_0x5c3fbf('0xac2')]()===_0x5c3fbf('0x2363')&&(_0x3a23dc[_0x5c3fbf('0xbdd')][_0x5c3fbf('0x1995')]=_0x3a23dc[_0x5c3fbf('0xbdd')]['phone']?_0x3a23dc[_0x5c3fbf('0xbdd')]['phone'][_0x5c3fbf('0x1af5')]('$')[0x0]:undefined,_0x3a23dc[_0x5c3fbf('0xbdd')]['callerId']=_0x3a23dc[_0x5c3fbf('0xbdd')]['callerID']?_0x5c3fbf('0x587')+_0x3a23dc[_0x5c3fbf('0xbdd')]['callerID']:undefined);_0x3a23dc[_0x5c3fbf('0x620')]=_0x186746,_0x3a23dc[_0x5c3fbf('0x167')]=_0x43f895,_0x27ed55[_0x5c3fbf('0x21de')](_0x5c3fbf('0x1bd8'))?_0x12f101[_0x5c3fbf('0x1cb7')][_0x5c3fbf('0x595')]({'fields':_0x5c3fbf('0xfa'),'sort':_0x5c3fbf('0x19fe'),'nolimit':_0x5c3fbf('0x19bd')})[_0x5c3fbf('0x1376')][_0x5c3fbf('0x21ad')](function(_0x52897b){var _0x3f227a=_0x5c3fbf;_0x3a23dc['queues']=_0x52897b[_0x3f227a('0x1b33')]||[];})[_0x5c3fbf('0x1c1d')](function(_0x5b4df5){var _0x352615=_0x5c3fbf;_0x256a41['error']({'title':_0x5b4df5[_0x352615('0x209')]?_0x352615('0x22d')+_0x5b4df5[_0x352615('0x209')]+_0x352615('0xa99')+_0x5b4df5[_0x352615('0x1808')]:_0x352615('0x1612'),'msg':_0x5b4df5['data']?JSON[_0x352615('0x25e')](_0x5b4df5[_0x352615('0x11c2')]):_0x5b4df5[_0x352615('0x174f')]()});}):_0x12f101[_0x5c3fbf('0x1cb7')][_0x5c3fbf('0x595')]({'fields':'id,name,type','sort':_0x5c3fbf('0x19fe'),'nolimit':_0x5c3fbf('0x19bd')})[_0x5c3fbf('0x1376')]['then'](function(_0x1d115f){var _0x4accbd=_0x5c3fbf;_0x3a23dc[_0x4accbd('0xb7a')]=_0x1d115f[_0x4accbd('0x1b33')]||[];})['then'](function(){var _0x28c2b7=_0x5c3fbf;return _0x12f101[_0x28c2b7('0xab4')]['get']({'userProfileId':_0x3a23dc[_0x28c2b7('0x123f')][_0x28c2b7('0x1618')],'sectionId':0x385})[_0x28c2b7('0x1376')];})['then'](function(_0x40cfbd){var _0x5dac21=_0x5c3fbf,_0x5718b0=_0x40cfbd&&_0x40cfbd[_0x5dac21('0x1b33')]?_0x40cfbd[_0x5dac21('0x1b33')][0x0]:null;if(!_0x5718b0){var _0xce3b0b=[],_0x14c2de=null;_0x3a23dc[_0x5dac21('0xbdd')]&&(_0x14c2de=_0x86640f()[_0x5dac21('0x1d2e')](_0x3a23dc[_0x5dac21('0xb7a')],{'name':_0x3a23dc[_0x5dac21('0xbdd')][_0x5dac21('0xbdd')]}));for(var _0x1d945d=0x0;_0x1d945d<_0x3a23dc['queues'][_0x5dac21('0x577')];_0x1d945d++){_0x14c2de&&_0x3a23dc[_0x5dac21('0xb7a')][_0x1d945d]['id']===_0x14c2de['id']&&(_0x3a23dc[_0x5dac21('0xb7a')][_0x1d945d]['canSelect']=![],_0xce3b0b[_0x5dac21('0x206c')](_0x3a23dc[_0x5dac21('0xb7a')][_0x1d945d]));}_0x3a23dc[_0x5dac21('0xb7a')]=_0xce3b0b;}else{if(!_0x5718b0[_0x5dac21('0x80c')])return _0x12f101[_0x5dac21('0x185e')]['get']({'sectionId':_0x5718b0['id']})[_0x5dac21('0x1376')][_0x5dac21('0x21ad')](function(_0x22b069){var _0x1dba71=_0x5dac21,_0x110797=_0x86640f()['map'](_0x22b069['rows'],function(_0x30c196){var _0x46b094=a0_0x2e7f;return _0x86640f()[_0x46b094('0x1d2e')](_0x3a23dc['queues'],{'id':_0x30c196[_0x46b094('0x675')]});}),_0x209843=null;_0x3a23dc[_0x1dba71('0xbdd')]&&(_0x209843=_0x86640f()[_0x1dba71('0x1d2e')](_0x3a23dc['queues'],{'name':_0x3a23dc[_0x1dba71('0xbdd')][_0x1dba71('0xbdd')]}));if(_0x209843&&!_0x86640f()[_0x1dba71('0x2664')](_0x110797,['id',_0x209843['id']])){var _0x2084c0=_0x86640f()['find'](_0x3a23dc[_0x1dba71('0xb7a')],{'id':_0x209843['id']});_0x2084c0[_0x1dba71('0xba')]=![],_0x110797[_0x1dba71('0x206c')](_0x2084c0);}_0x3a23dc['queues']=_0x110797;});}})[_0x5c3fbf('0x1c1d')](function(_0x472645){var _0x39d926=_0x5c3fbf;_0x256a41[_0x39d926('0x2092')]({'title':_0x472645[_0x39d926('0x209')]?_0x39d926('0x22d')+_0x472645[_0x39d926('0x209')]+'\x20-\x20'+_0x472645['statusText']:'SYSTEM:GETqueues','msg':_0x472645[_0x39d926('0x11c2')]?JSON[_0x39d926('0x25e')](_0x472645[_0x39d926('0x11c2')]):_0x472645[_0x39d926('0x174f')]()});});function _0x186746(){var _0x3f2a16=_0x5c3fbf;_0x3a23dc[_0x3f2a16('0x1a69')]=[];var _0x1f8827=[];_0x3a23dc[_0x3f2a16('0xbdd')][_0x3f2a16('0x7fa')]&&_0x3a23dc[_0x3f2a16('0xbdd')][_0x3f2a16('0x7fa')][_0x3f2a16('0xac2')]()==='outbound'&&_0x3a23dc['queue'][_0x3f2a16('0x522')]==='outboundDial'&&(_0x3a23dc[_0x3f2a16('0xbdd')][_0x3f2a16('0x159e')]=_0xd85205[_0x3f2a16('0x988')]?(_0x3a23dc[_0x3f2a16('0xbdd')][_0x3f2a16('0x1995')]||'')+_0x3f2a16('0x349')+_0xd85205[_0x3f2a16('0x988')]+'}':(_0x3a23dc[_0x3f2a16('0xbdd')][_0x3f2a16('0x1995')]||'')+_0x3f2a16('0x2560'),_0xd85205[_0x3f2a16('0xad1')]!=='none'?_0x3a23dc['queue']['options'][_0x3f2a16('0x2004')](_0x3f2a16('0x478'))<0x0&&(_0x3a23dc['queue']['options']+=_0x3f2a16('0x478')):_0x3a23dc[_0x3f2a16('0xbdd')][_0x3f2a16('0x26a0')]=_0x3a23dc[_0x3f2a16('0xbdd')][_0x3f2a16('0x26a0')]['replace'](_0x3f2a16('0x478'),''));var _0x4a1ded=_0x86640f()['find'](_0x3a23dc[_0x3f2a16('0xb7a')],{'name':_0x3a23dc['queue'][_0x3f2a16('0xbdd')]});_0x4a1ded&&(_0x3a23dc[_0x3f2a16('0xbdd')][_0x86640f()[_0x3f2a16('0x1b7e')](_0x3f2a16('0x93f'))+'QueueId']=_0x4a1ded['id']);if(_0x3a23dc[_0x3f2a16('0xbdd')]['appType']&&_0x3a23dc[_0x3f2a16('0xbdd')]['appType']===_0x3f2a16('0xf50')){}else switch((_0x3a23dc['queue'][_0x3f2a16('0x1f94')]||_0x3a23dc[_0x3f2a16('0xbdd')][_0x3f2a16('0x522')])[_0x3f2a16('0xac2')]()){case'set':_0x3a23dc[_0x3f2a16('0xbdd')][_0x3f2a16('0x23c2')]=_0x3a23dc[_0x3f2a16('0xbdd')]['name']+'='+_0x3a23dc[_0x3f2a16('0xbdd')][_0x3f2a16('0x2228')];break;case _0x3f2a16('0xf50'):break;default:_0x1f8827[0x0]=_0x3a23dc[_0x3f2a16('0xbdd')][_0x3f2a16('0xbdd')],_0x1f8827[0x1]=_0x3a23dc[_0x3f2a16('0xbdd')][_0x3f2a16('0x2133')],_0x3a23dc[_0x3f2a16('0xbdd')][_0x3f2a16('0x23c2')]=_0x1f8827[_0x3f2a16('0x136')](',');}_0x43f895(_0x3a23dc[_0x3f2a16('0xbdd')]);}function _0x43f895(_0x2e0c40){_0x425ab6['hide'](_0x2e0c40);}}const _0x5bcac8=_0x1ea274;_0x2c9eec[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q','toasty',_0x3877e3('0x1e4d'),_0x3877e3('0xeb2'),'api',_0x3877e3('0x15bc'),'crudPermissions'];function _0x2c9eec(_0x2c90f7,_0x5935fb,_0x40f45d,_0x2f08f6,_0x2a7d3d,_0x21231d,_0x43e819,_0x495146){var _0x59d31b=_0x3877e3,_0x2e8838=this;_0x2e8838['currentUser']=_0x43e819[_0x59d31b('0x15ed')](),_0x2e8838['errors']=[],_0x2e8838[_0x59d31b('0x4b4')]=_0x59d31b('0x12a5')+(_0x2f08f6[_0x59d31b('0x522')]||_0x2f08f6[_0x59d31b('0x1f94')])['toUpperCase'](),_0x2e8838[_0x59d31b('0x12b1')]=angular['copy'](_0x2f08f6),_0x2e8838[_0x59d31b('0x5ed')]=_0x495146,_0x2e8838['hasModulePermissions']={};if(_0x2e8838['system'][_0x59d31b('0x23c2')])switch(_0x2e8838['system']['appType']?_0x2e8838[_0x59d31b('0x12b1')][_0x59d31b('0x522')][_0x59d31b('0xac2')]():_0x2e8838[_0x59d31b('0x12b1')][_0x59d31b('0x1f94')]['toLowerCase']()){case _0x59d31b('0xf50'):break;case _0x59d31b('0xc72'):{var _0x3a470f=_0x2e8838[_0x59d31b('0x12b1')][_0x59d31b('0x23c2')][_0x59d31b('0x1af5')](',');_0x2e8838[_0x59d31b('0x12b1')][_0x59d31b('0xddb')]=_0x3a470f[0x0],_0x2e8838['system'][_0x59d31b('0x10f')]=_0x3a470f[0x1],_0x2e8838['system'][_0x59d31b('0x1cce')]=_0x3a470f[_0x59d31b('0xb3d')](0x2,_0x3a470f[_0x59d31b('0x577')])[_0x59d31b('0x136')](',');}break;case _0x59d31b('0x1c22'):{var _0x502fc6=_0x2e8838[_0x59d31b('0x12b1')]['appdata']['split'](',');_0x2e8838['system'][_0x59d31b('0x21c6')]=_0x502fc6[0x0],_0x2e8838['system']['secretaccesskey']=_0x502fc6[0x1],_0x2e8838[_0x59d31b('0x12b1')][_0x59d31b('0x20a3')]=_0x502fc6[0x2],_0x2e8838[_0x59d31b('0x12b1')]['botname']=_0x502fc6[0x3],_0x2e8838[_0x59d31b('0x12b1')]['welcomemessage']=_0x502fc6[_0x59d31b('0xb3d')](0x4,_0x502fc6['length'])[_0x59d31b('0x136')](',');}break;case'autoreply':{var _0x21ba03=_0x2e8838[_0x59d31b('0x12b1')]['appdata']['split'](',');_0x2e8838[_0x59d31b('0x12b1')][_0x59d31b('0x13b6')]=isNaN(_0x21ba03[0x0])?_0x21ba03[0x0]:parseInt(_0x21ba03[0x0],0xa),_0x2e8838[_0x59d31b('0x12b1')][_0x59d31b('0xc1e')]=_0x21ba03['slice'](0x1,_0x21ba03['length'])[_0x59d31b('0x136')](',');}break;case _0x59d31b('0x1224'):_0x2e8838[_0x59d31b('0x12b1')]['text']=_0x2e8838[_0x59d31b('0x12b1')]['appdata'];break;case _0x59d31b('0x1125'):_0x2e8838[_0x59d31b('0x12b1')][_0x59d31b('0x19fe')]=_0x2e8838[_0x59d31b('0x12b1')]['appdata']['split']('=')[0x0],_0x2e8838[_0x59d31b('0x12b1')][_0x59d31b('0x2228')]=_0x2e8838[_0x59d31b('0x12b1')][_0x59d31b('0x23c2')]['split']('=')[0x1];break;case _0x59d31b('0x2356'):_0x2e8838[_0x59d31b('0x12b1')][_0x59d31b('0xbf8')]=_0x2e8838[_0x59d31b('0x12b1')][_0x59d31b('0x23c2')];break;default:{var _0x509535=_0x2e8838[_0x59d31b('0x12b1')][_0x59d31b('0x23c2')]['split'](',');_0x2e8838[_0x59d31b('0x12b1')][_0x59d31b('0xbf3')]=_0x86640f()[_0x59d31b('0x23aa')](_0x509535[0x0])?_0x509535[0x0]:isNaN(_0x509535[0x0])?_0x509535[0x0]:parseInt(_0x509535[0x0],0xa),_0x2e8838[_0x59d31b('0x12b1')]['variable']=_0x86640f()[_0x59d31b('0x23aa')](_0x509535[0x1])?_0x509535[0x1]:isNaN(_0x509535[0x1])?_0x509535[0x1]:parseInt(_0x509535[0x1],0xa);}}else _0x2e8838[_0x59d31b('0x12b1')][_0x59d31b('0x25bb')]='';_0x2e8838['system'][_0x59d31b('0x7fa')]&&_0x2e8838[_0x59d31b('0x12b1')][_0x59d31b('0x7fa')][_0x59d31b('0xac2')]()==='outbound'&&_0x2e8838[_0x59d31b('0x12b1')]['appType'][_0x59d31b('0xac2')]()===_0x59d31b('0x2363')&&(_0x2e8838[_0x59d31b('0x12b1')][_0x59d31b('0x1995')]=_0x2e8838['system'][_0x59d31b('0x159e')]?_0x2e8838[_0x59d31b('0x12b1')][_0x59d31b('0x159e')][_0x59d31b('0x1af5')]('$')[0x0]:undefined,_0x2e8838[_0x59d31b('0x12b1')][_0x59d31b('0x26f7')]=_0x2e8838[_0x59d31b('0x12b1')][_0x59d31b('0x1f5a')]?_0x59d31b('0x587')+_0x2e8838[_0x59d31b('0x12b1')][_0x59d31b('0x1f5a')]:undefined);_0x2e8838['saveFaxAccountApp']=_0x23fe22,_0x2e8838[_0x59d31b('0x167')]=_0x23ae6e,_0x43e819[_0x59d31b('0x21de')]('admin')?_0x21231d[_0x59d31b('0x25bb')][_0x59d31b('0x595')]({'fields':_0x59d31b('0x1aa8'),'sort':'name','nolimit':_0x59d31b('0x19bd')})[_0x59d31b('0x1376')]['then'](function(_0x181f69){var _0x4a94b9=_0x59d31b;_0x2e8838[_0x4a94b9('0x142d')]=_0x181f69[_0x4a94b9('0x1b33')]||[];})[_0x59d31b('0x1c1d')](function(_0x4df315){var _0x2e50f9=_0x59d31b;_0x40f45d[_0x2e50f9('0x2092')]({'title':_0x4df315[_0x2e50f9('0x209')]?_0x2e50f9('0x22d')+_0x4df315[_0x2e50f9('0x209')]+'\x20-\x20'+_0x4df315[_0x2e50f9('0x1808')]:_0x2e50f9('0xc0c'),'msg':_0x4df315[_0x2e50f9('0x11c2')]?JSON[_0x2e50f9('0x25e')](_0x4df315['data']):_0x4df315['toString']()});}):_0x21231d[_0x59d31b('0x25bb')][_0x59d31b('0x595')]({'fields':_0x59d31b('0x1aa8'),'sort':'name','nolimit':_0x59d31b('0x19bd')})[_0x59d31b('0x1376')][_0x59d31b('0x21ad')](function(_0x1cf454){var _0x41d47d=_0x59d31b;_0x2e8838[_0x41d47d('0x142d')]=_0x1cf454[_0x41d47d('0x1b33')]||[];})[_0x59d31b('0x21ad')](function(){var _0x1cc838=_0x59d31b;return _0x21231d[_0x1cc838('0xab4')]['get']({'userProfileId':_0x2e8838[_0x1cc838('0x123f')][_0x1cc838('0x1618')],'sectionId':0x3f4})[_0x1cc838('0x1376')];})[_0x59d31b('0x21ad')](function(_0x32ee6b){var _0x451de0=_0x59d31b,_0x162a47=_0x32ee6b&&_0x32ee6b['rows']?_0x32ee6b[_0x451de0('0x1b33')][0x0]:null;if(!_0x162a47){var _0x584ce3=[],_0x2e9812=null;_0x2e8838['system']&&(_0x2e9812=_0x86640f()[_0x451de0('0x1d2e')](_0x2e8838[_0x451de0('0x142d')],{'name':_0x2e8838[_0x451de0('0x12b1')][_0x451de0('0x25bb')]}));for(var _0x2633e5=0x0;_0x2633e5<_0x2e8838[_0x451de0('0x142d')][_0x451de0('0x577')];_0x2633e5++){_0x2e9812&&_0x2e8838['variables'][_0x2633e5]['id']===_0x2e9812['id']&&(_0x2e8838[_0x451de0('0x142d')][_0x2633e5][_0x451de0('0xba')]=![],_0x584ce3['push'](_0x2e8838[_0x451de0('0x142d')][_0x2633e5]));}_0x2e8838['variables']=_0x584ce3;}else{if(!_0x162a47[_0x451de0('0x80c')])return _0x21231d[_0x451de0('0x185e')][_0x451de0('0x595')]({'sectionId':_0x162a47['id']})['$promise'][_0x451de0('0x21ad')](function(_0x480438){var _0x58c7b9=_0x451de0,_0xf1d8d3=_0x86640f()[_0x58c7b9('0x26c3')](_0x480438['rows'],function(_0x33e562){var _0x41767f=_0x58c7b9;return _0x86640f()[_0x41767f('0x1d2e')](_0x2e8838[_0x41767f('0x142d')],{'id':_0x33e562[_0x41767f('0x675')]});}),_0x3d661d=null;_0x2e8838[_0x58c7b9('0x12b1')]&&(_0x3d661d=_0x86640f()[_0x58c7b9('0x1d2e')](_0x2e8838['variables'],{'name':_0x2e8838[_0x58c7b9('0x12b1')][_0x58c7b9('0x25bb')]}));if(_0x3d661d&&!_0x86640f()['some'](_0xf1d8d3,['id',_0x3d661d['id']])){var _0x3f7834=_0x86640f()['find'](_0x2e8838['variables'],{'id':_0x3d661d['id']});_0x3f7834[_0x58c7b9('0xba')]=![],_0xf1d8d3[_0x58c7b9('0x206c')](_0x3f7834);}_0x2e8838[_0x58c7b9('0x142d')]=_0xf1d8d3;});}})[_0x59d31b('0x1c1d')](function(_0x44df2a){var _0x264044=_0x59d31b;_0x40f45d['error']({'title':_0x44df2a[_0x264044('0x209')]?_0x264044('0x22d')+_0x44df2a[_0x264044('0x209')]+_0x264044('0xa99')+_0x44df2a['statusText']:_0x264044('0x1a26'),'msg':_0x44df2a[_0x264044('0x11c2')]?JSON[_0x264044('0x25e')](_0x44df2a['data']):_0x44df2a['toString']()});});function _0x23fe22(){var _0x4b3cb8=_0x59d31b;_0x2e8838[_0x4b3cb8('0x1a69')]=[];var _0x371147=[];_0x2e8838[_0x4b3cb8('0x12b1')]['type']&&_0x2e8838[_0x4b3cb8('0x12b1')][_0x4b3cb8('0x7fa')]['toLowerCase']()===_0x4b3cb8('0x2300')&&_0x2e8838['system']['appType']===_0x4b3cb8('0x4ea')&&(_0x2e8838[_0x4b3cb8('0x12b1')]['phone']=_0x2a7d3d[_0x4b3cb8('0x988')]?(_0x2e8838[_0x4b3cb8('0x12b1')][_0x4b3cb8('0x1995')]||'')+_0x4b3cb8('0x349')+_0x2a7d3d[_0x4b3cb8('0x988')]+'}':(_0x2e8838[_0x4b3cb8('0x12b1')][_0x4b3cb8('0x1995')]||'')+_0x4b3cb8('0x2560'),_0x2a7d3d['recordingFormat']!==_0x4b3cb8('0x983')?_0x2e8838[_0x4b3cb8('0x12b1')][_0x4b3cb8('0x26a0')][_0x4b3cb8('0x2004')]('U(xcally-mixmonitor-context)')<0x0&&(_0x2e8838[_0x4b3cb8('0x12b1')]['options']+=_0x4b3cb8('0x478')):_0x2e8838[_0x4b3cb8('0x12b1')][_0x4b3cb8('0x26a0')]=_0x2e8838['system'][_0x4b3cb8('0x26a0')][_0x4b3cb8('0x16e4')](_0x4b3cb8('0x478'),''));if(_0x2e8838[_0x4b3cb8('0x12b1')][_0x4b3cb8('0x522')]&&_0x2e8838[_0x4b3cb8('0x12b1')]['appType']===_0x4b3cb8('0xf50')){}else switch((_0x2e8838[_0x4b3cb8('0x12b1')][_0x4b3cb8('0x1f94')]||_0x2e8838[_0x4b3cb8('0x12b1')][_0x4b3cb8('0x522')])['toLowerCase']()){case'set':_0x2e8838[_0x4b3cb8('0x12b1')][_0x4b3cb8('0x23c2')]=_0x2e8838[_0x4b3cb8('0x12b1')][_0x4b3cb8('0x19fe')]+'='+_0x2e8838[_0x4b3cb8('0x12b1')][_0x4b3cb8('0x2228')];break;case _0x4b3cb8('0xf50'):break;default:_0x371147[0x0]=_0x2e8838[_0x4b3cb8('0x12b1')][_0x4b3cb8('0xbf3')],_0x371147[0x1]=_0x2e8838[_0x4b3cb8('0x12b1')][_0x4b3cb8('0x25bb')],_0x2e8838[_0x4b3cb8('0x12b1')][_0x4b3cb8('0x23c2')]=_0x371147[_0x4b3cb8('0x136')](',');}_0x23ae6e(_0x2e8838[_0x4b3cb8('0x12b1')]);}function _0x23ae6e(_0x4ca6e4){var _0xb55bfb=_0x59d31b;_0x2c90f7[_0xb55bfb('0x1c24')](_0x4ca6e4);}}const _0x31e015=_0x2c9eec;_0x497ac7[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x1e4d'),_0x3877e3('0xeb2'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'crudPermissions'];function _0x497ac7(_0x3a06e7,_0x8cda8f,_0x24a2b8,_0x4d7e37,_0x1e2bd8,_0x52c694,_0x64a939,_0x5990a4){var _0x224461=_0x3877e3,_0x2b99c5=this;_0x2b99c5['currentUser']=_0x64a939[_0x224461('0x15ed')](),_0x2b99c5[_0x224461('0x1a69')]=[],_0x2b99c5[_0x224461('0x4b4')]=_0x224461('0x12a5')+(_0x4d7e37[_0x224461('0x522')]||_0x4d7e37['app'])[_0x224461('0x2e8')](),_0x2b99c5[_0x224461('0x907')]=angular[_0x224461('0xd75')](_0x4d7e37),_0x2b99c5[_0x224461('0x5ed')]=_0x5990a4,_0x2b99c5['hasModulePermissions']={};if(_0x2b99c5[_0x224461('0x907')][_0x224461('0x23c2')])switch(_0x2b99c5[_0x224461('0x907')]['appType']?_0x2b99c5[_0x224461('0x907')]['appType'][_0x224461('0xac2')]():_0x2b99c5[_0x224461('0x907')][_0x224461('0x1f94')][_0x224461('0xac2')]()){case _0x224461('0xf50'):break;case'dialogflow':{var _0x420fbb=_0x2b99c5[_0x224461('0x907')]['appdata'][_0x224461('0x1af5')](',');_0x2b99c5[_0x224461('0x907')][_0x224461('0xddb')]=_0x420fbb[0x0],_0x2b99c5[_0x224461('0x907')][_0x224461('0x10f')]=_0x420fbb[0x1],_0x2b99c5[_0x224461('0x907')][_0x224461('0x1cce')]=_0x420fbb['slice'](0x2,_0x420fbb[_0x224461('0x577')])[_0x224461('0x136')](',');}break;case'amazonlex':{var _0xcda7f2=_0x2b99c5[_0x224461('0x907')][_0x224461('0x23c2')][_0x224461('0x1af5')](',');_0x2b99c5[_0x224461('0x907')][_0x224461('0x21c6')]=_0xcda7f2[0x0],_0x2b99c5[_0x224461('0x907')][_0x224461('0x797')]=_0xcda7f2[0x1],_0x2b99c5[_0x224461('0x907')]['lexregion']=_0xcda7f2[0x2],_0x2b99c5[_0x224461('0x907')][_0x224461('0x15fe')]=_0xcda7f2[0x3],_0x2b99c5[_0x224461('0x907')][_0x224461('0x1cce')]=_0xcda7f2[_0x224461('0xb3d')](0x4,_0xcda7f2['length'])[_0x224461('0x136')](',');}break;case _0x224461('0x1b98'):{var _0x49f368=_0x2b99c5['tag']['appdata'][_0x224461('0x1af5')](',');_0x2b99c5['tag'][_0x224461('0x13b6')]=isNaN(_0x49f368[0x0])?_0x49f368[0x0]:parseInt(_0x49f368[0x0],0xa),_0x2b99c5['tag'][_0x224461('0xc1e')]=_0x49f368[_0x224461('0xb3d')](0x1,_0x49f368['length'])[_0x224461('0x136')](',');}break;case _0x224461('0x1224'):_0x2b99c5[_0x224461('0x907')]['text']=_0x2b99c5[_0x224461('0x907')]['appdata'];break;case'set':_0x2b99c5[_0x224461('0x907')][_0x224461('0x19fe')]=_0x2b99c5['tag'][_0x224461('0x23c2')]['split']('=')[0x0],_0x2b99c5['tag']['value']=_0x2b99c5['tag'][_0x224461('0x23c2')][_0x224461('0x1af5')]('=')[0x1];break;case _0x224461('0x2356'):_0x2b99c5[_0x224461('0x907')][_0x224461('0xbf8')]=_0x2b99c5['tag'][_0x224461('0x23c2')];break;default:{var _0x168055=_0x2b99c5[_0x224461('0x907')][_0x224461('0x23c2')][_0x224461('0x1af5')](',');_0x2b99c5[_0x224461('0x907')]['tag']=_0x86640f()[_0x224461('0x23aa')](_0x168055[0x0])?_0x168055[0x0]:isNaN(_0x168055[0x0])?_0x168055[0x0]:parseInt(_0x168055[0x0],0xa);}break;}else{}_0x2b99c5['tag'][_0x224461('0x7fa')]&&_0x2b99c5[_0x224461('0x907')]['type'][_0x224461('0xac2')]()==='outbound'&&_0x2b99c5[_0x224461('0x907')][_0x224461('0x522')]['toLowerCase']()==='outbounddial'&&(_0x2b99c5[_0x224461('0x907')][_0x224461('0x1995')]=_0x2b99c5[_0x224461('0x907')]['phone']?_0x2b99c5[_0x224461('0x907')][_0x224461('0x159e')][_0x224461('0x1af5')]('$')[0x0]:undefined,_0x2b99c5[_0x224461('0x907')][_0x224461('0x26f7')]=_0x2b99c5[_0x224461('0x907')][_0x224461('0x1f5a')]?'CALLERID(all)='+_0x2b99c5[_0x224461('0x907')][_0x224461('0x1f5a')]:undefined);_0x2b99c5[_0x224461('0x620')]=_0x57bbef,_0x2b99c5[_0x224461('0x167')]=_0x5d466a,_0x64a939['hasRole'](_0x224461('0x1bd8'))?_0x52c694[_0x224461('0x907')][_0x224461('0x595')]({'fields':_0x224461('0x1aa8'),'sort':_0x224461('0x19fe'),'nolimit':'true'})[_0x224461('0x1376')][_0x224461('0x21ad')](function(_0x42389c){var _0x1f7120=_0x224461;_0x2b99c5[_0x1f7120('0x1889')]=_0x42389c[_0x1f7120('0x1b33')]||[];})[_0x224461('0x1c1d')](function(_0x53d475){var _0x50e9ca=_0x224461;_0x24a2b8['error']({'title':_0x53d475[_0x50e9ca('0x209')]?_0x50e9ca('0x22d')+_0x53d475['status']+_0x50e9ca('0xa99')+_0x53d475[_0x50e9ca('0x1808')]:_0x50e9ca('0xcd4'),'msg':_0x53d475[_0x50e9ca('0x11c2')]?JSON[_0x50e9ca('0x25e')](_0x53d475[_0x50e9ca('0x11c2')]):_0x53d475['toString']()});}):_0x52c694[_0x224461('0x907')]['get']({'fields':_0x224461('0x1aa8'),'sort':_0x224461('0x19fe'),'nolimit':_0x224461('0x19bd')})[_0x224461('0x1376')][_0x224461('0x21ad')](function(_0x46ce39){var _0x285010=_0x224461;_0x2b99c5[_0x285010('0x1889')]=_0x46ce39[_0x285010('0x1b33')]||[];})[_0x224461('0x21ad')](function(){var _0x25c659=_0x224461;return _0x52c694['userProfileSection'][_0x25c659('0x595')]({'userProfileId':_0x2b99c5[_0x25c659('0x123f')][_0x25c659('0x1618')],'sectionId':0x3f0})[_0x25c659('0x1376')];})[_0x224461('0x21ad')](function(_0x4bb3be){var _0xa42cd9=_0x224461,_0xcb87b0=_0x4bb3be&&_0x4bb3be[_0xa42cd9('0x1b33')]?_0x4bb3be[_0xa42cd9('0x1b33')][0x0]:null;if(!_0xcb87b0){var _0x51f1ab=[],_0x357edd=null;_0x2b99c5[_0xa42cd9('0x907')]&&(_0x357edd=_0x86640f()[_0xa42cd9('0x1d2e')](_0x2b99c5['tags'],{'name':_0x2b99c5[_0xa42cd9('0x907')][_0xa42cd9('0x907')]}));for(var _0x4cb3c8=0x0;_0x4cb3c8<_0x2b99c5[_0xa42cd9('0x1889')][_0xa42cd9('0x577')];_0x4cb3c8++){_0x357edd&&_0x2b99c5['tags'][_0x4cb3c8]['id']===_0x357edd['id']&&(_0x2b99c5[_0xa42cd9('0x1889')][_0x4cb3c8][_0xa42cd9('0xba')]=![],_0x51f1ab[_0xa42cd9('0x206c')](_0x2b99c5[_0xa42cd9('0x1889')][_0x4cb3c8]));}_0x2b99c5[_0xa42cd9('0x1889')]=_0x51f1ab;}else{if(!_0xcb87b0['autoAssociation'])return _0x52c694[_0xa42cd9('0x185e')][_0xa42cd9('0x595')]({'sectionId':_0xcb87b0['id']})[_0xa42cd9('0x1376')]['then'](function(_0x4cd302){var _0x3f145f=_0xa42cd9,_0x36e3dc=_0x86640f()[_0x3f145f('0x26c3')](_0x4cd302[_0x3f145f('0x1b33')],function(_0x10408e){var _0x398813=_0x3f145f;return _0x86640f()[_0x398813('0x1d2e')](_0x2b99c5['tags'],{'id':_0x10408e['resourceId']});}),_0x47dd84=null;_0x2b99c5[_0x3f145f('0x907')]&&(_0x47dd84=_0x86640f()[_0x3f145f('0x1d2e')](_0x2b99c5[_0x3f145f('0x1889')],{'name':_0x2b99c5['tag'][_0x3f145f('0x907')]}));if(_0x47dd84&&!_0x86640f()[_0x3f145f('0x2664')](_0x36e3dc,['id',_0x47dd84['id']])){var _0x411e57=_0x86640f()[_0x3f145f('0x1d2e')](_0x2b99c5['tags'],{'id':_0x47dd84['id']});_0x411e57['canSelect']=![],_0x36e3dc[_0x3f145f('0x206c')](_0x411e57);}_0x2b99c5[_0x3f145f('0x1889')]=_0x36e3dc;});}})[_0x224461('0x1c1d')](function(_0x5a921b){var _0xe5bc80=_0x224461;_0x24a2b8['error']({'title':_0x5a921b['status']?_0xe5bc80('0x22d')+_0x5a921b[_0xe5bc80('0x209')]+_0xe5bc80('0xa99')+_0x5a921b[_0xe5bc80('0x1808')]:_0xe5bc80('0x182f'),'msg':_0x5a921b[_0xe5bc80('0x11c2')]?JSON[_0xe5bc80('0x25e')](_0x5a921b[_0xe5bc80('0x11c2')]):_0x5a921b[_0xe5bc80('0x174f')]()});});function _0x57bbef(){var _0x3ea737=_0x224461;_0x2b99c5['errors']=[];var _0xec56e9=[];_0x2b99c5[_0x3ea737('0x907')][_0x3ea737('0x7fa')]&&_0x2b99c5[_0x3ea737('0x907')]['type'][_0x3ea737('0xac2')]()===_0x3ea737('0x2300')&&_0x2b99c5[_0x3ea737('0x907')][_0x3ea737('0x522')]===_0x3ea737('0x4ea')&&(_0x2b99c5[_0x3ea737('0x907')][_0x3ea737('0x159e')]=_0x1e2bd8[_0x3ea737('0x988')]?(_0x2b99c5[_0x3ea737('0x907')][_0x3ea737('0x1995')]||'')+'${EXTEN:'+_0x1e2bd8[_0x3ea737('0x988')]+'}':(_0x2b99c5[_0x3ea737('0x907')]['prefix']||'')+_0x3ea737('0x2560'),_0x1e2bd8[_0x3ea737('0xad1')]!==_0x3ea737('0x983')?_0x2b99c5[_0x3ea737('0x907')][_0x3ea737('0x26a0')][_0x3ea737('0x2004')]('U(xcally-mixmonitor-context)')<0x0&&(_0x2b99c5[_0x3ea737('0x907')][_0x3ea737('0x26a0')]+=_0x3ea737('0x478')):_0x2b99c5[_0x3ea737('0x907')][_0x3ea737('0x26a0')]=_0x2b99c5[_0x3ea737('0x907')][_0x3ea737('0x26a0')]['replace'](_0x3ea737('0x478'),''));var _0x22f4c3=_0x86640f()[_0x3ea737('0x1d2e')](_0x2b99c5[_0x3ea737('0x1889')],{'name':_0x2b99c5[_0x3ea737('0x907')][_0x3ea737('0x907')]});_0x22f4c3&&(_0x2b99c5['tag'][_0x3ea737('0x4ab')]=_0x22f4c3['id']);if(_0x2b99c5['tag'][_0x3ea737('0x522')]&&_0x2b99c5[_0x3ea737('0x907')][_0x3ea737('0x522')]===_0x3ea737('0xf50')){}else switch((_0x2b99c5[_0x3ea737('0x907')][_0x3ea737('0x1f94')]||_0x2b99c5[_0x3ea737('0x907')][_0x3ea737('0x522')])['toLowerCase']()){case _0x3ea737('0x1125'):_0x2b99c5[_0x3ea737('0x907')][_0x3ea737('0x23c2')]=_0x2b99c5[_0x3ea737('0x907')][_0x3ea737('0x19fe')]+'='+_0x2b99c5[_0x3ea737('0x907')][_0x3ea737('0x2228')];break;case _0x3ea737('0xf50'):break;default:_0xec56e9[0x0]=_0x2b99c5['tag'][_0x3ea737('0x907')],_0x2b99c5['tag']['appdata']=_0xec56e9[_0x3ea737('0x136')](',');}_0x5d466a(_0x2b99c5[_0x3ea737('0x907')]);}function _0x5d466a(_0xa365bb){_0x3a06e7['hide'](_0xa365bb);}}const _0x4ddf5b=_0x497ac7;_0x1581e0[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),'$timeout',_0x3877e3('0x13c1'),'api',_0x3877e3('0x1908'),'Auth'];function _0x1581e0(_0x1750f1,_0x16e6bb,_0x4d4b4f,_0x4fc191,_0x45fa61,_0x3ba98b,_0x5e84fa,_0x2dae24,_0x29a949,_0x1c99e7,_0x4bde00){var _0x215fa4=_0x3877e3,_0x2d67f7=this;_0x2d67f7['currentUser']=_0x4bde00[_0x215fa4('0x15ed')](),_0x2d67f7[_0x215fa4('0x10d0')]={'count':0x0,'rows':[]},_0x2d67f7['selectedDispositions']=[],_0x2d67f7[_0x215fa4('0x5ed')],_0x2d67f7['levels']={'first':'1st','second':_0x215fa4('0x2846'),'third':_0x215fa4('0x176b')},_0x2d67f7[_0x215fa4('0x77')]={'fields':'id,level,name,description,ParentId,createdAt,updatedAt','sort':_0x215fa4('0x33'),'limit':0xa,'page':0x1},_0x2d67f7[_0x215fa4('0x1d75')]=_0x160f83,_0x2d67f7[_0x215fa4('0x15dc')]=_0xdca98,_0x2d67f7[_0x215fa4('0xdb1')]=_0x4bd998,_0x2d67f7[_0x215fa4('0x1235')]=_0x12c731,_0x2d67f7[_0x215fa4('0x25e1')]=_0x866de,_0x2d67f7[_0x215fa4('0x132f')]=_0x1cfc89,_0x2d67f7[_0x215fa4('0xec6')]=_0x428b18,_0x2d67f7['deleteSelectedDispositions']=_0x5627a2,_0x2d67f7[_0x215fa4('0x2061')]=_0xcda1f9,_0x2d67f7['selectAllDispositions']=_0x48ca6f;function _0x160f83(_0x2f6186,_0x139bbd){var _0x40b7ea=_0x215fa4;_0x2d67f7['faxAccount']=_0x2f6186||{},_0x2d67f7[_0x40b7ea('0x5ed')]=typeof _0x139bbd!==_0x40b7ea('0xddc')?_0x139bbd:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2d67f7['query'][_0x40b7ea('0x1de9')]=_0x2d67f7[_0x40b7ea('0xeb2')]['id'],_0x2d67f7['query']['id']=_0x2d67f7[_0x40b7ea('0xeb2')]['id'],_0x12c731();}function _0x866de(_0x4aaceb,_0x69028b){var _0x1767b4=_0x215fa4;_0x45fa61[_0x1767b4('0x853')]({'controller':_0x1767b4('0xdd9'),'controllerAs':'vm','templateUrl':_0x3e2462,'parent':angular['element'](_0x3ba98b[_0x1767b4('0x2452')]),'targetEvent':_0x4aaceb,'clickOutsideToClose':!![],'locals':{'disposition':_0x69028b,'dispositions':_0x2d67f7[_0x1767b4('0x10d0')]['rows'],'model':{'id':_0x2d67f7[_0x1767b4('0xeb2')]['id'],'field':_0x1767b4('0x1de9')},'license':null,'setting':null,'crudPermissions':_0x2d67f7[_0x1767b4('0x5ed')]}})[_0x1767b4('0x21ad')](function(_0x34cb74){if(_0x34cb74)_0x12c731();});}function _0xdca98(_0x4d4678,_0x3acd67){var _0x4e9446=_0x215fa4,_0x455887=_0x86640f()[_0x4e9446('0x2664')](_0x2d67f7['dispositions'][_0x4e9446('0x1b33')],[_0x4e9446('0x198f'),_0x4d4678['id']]),_0x594d10=_0x45fa61[_0x4e9446('0xa33')]()[_0x4e9446('0x4b4')](_0x2dae24['instant']('TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE'))[_0x4e9446('0x13fb')](_0x2dae24[_0x4e9446('0x183e')]('TOOLS.NOTIFICATIONS.'+(_0x455887?_0x4e9446('0x636'):_0x4e9446('0x1019')),{'name':_0x4d4678['name']}))[_0x4e9446('0x7a7')]('Delete\x20disposition')[_0x4e9446('0x1e6d')](_0x3acd67)['ok']('OK')[_0x4e9446('0x3b5')](_0x2dae24[_0x4e9446('0x183e')]('TOOLS.CANCEL'));_0x45fa61[_0x4e9446('0x853')](_0x594d10)[_0x4e9446('0x21ad')](function(){_0x1cfc89(_0x4d4678);});}function _0x4bd998(_0x59b4ba){_0x2d67f7['dispositions']=_0x59b4ba||{'count':0x0,'rows':[]};}function _0x12c731(){var _0x30dab7=_0x215fa4;_0x2d67f7[_0x30dab7('0x77')][_0x30dab7('0x15a5')]=(_0x2d67f7['query'][_0x30dab7('0x2376')]-0x1)*_0x2d67f7[_0x30dab7('0x77')][_0x30dab7('0x1f4a')],_0x2d67f7[_0x30dab7('0x71b')]=_0x29a949['faxAccount'][_0x30dab7('0x1235')](_0x2d67f7['query'],_0x4bd998)[_0x30dab7('0x1376')];}function _0x1cfc89(_0x559e13){var _0x43b2f8=_0x215fa4;_0x29a949[_0x43b2f8('0x22c8')][_0x43b2f8('0x1164')]({'id':_0x559e13['id']})[_0x43b2f8('0x1376')][_0x43b2f8('0x21ad')](function(){var _0x1003fd=_0x43b2f8;_0x12c731(),_0x1c99e7[_0x1003fd('0xdb1')]({'title':_0x2dae24[_0x1003fd('0x183e')](_0x1003fd('0x42a'))});})[_0x43b2f8('0x1c1d')](function(_0x4a42bd){var _0x57a098=_0x43b2f8;if(_0x4a42bd[_0x57a098('0x11c2')]&&_0x4a42bd[_0x57a098('0x11c2')][_0x57a098('0x1a69')]&&_0x4a42bd['data'][_0x57a098('0x1a69')][_0x57a098('0x577')]){_0x2d67f7[_0x57a098('0x1a69')]=_0x4a42bd['data'][_0x57a098('0x1a69')]||[{'message':_0x4a42bd['toString'](),'type':_0x57a098('0x10d3')}];for(var _0xab85f=0x0;_0xab85f<_0x4a42bd[_0x57a098('0x11c2')]['errors'][_0x57a098('0x577')];_0xab85f++){_0x1c99e7[_0x57a098('0x2092')]({'title':_0x4a42bd[_0x57a098('0x11c2')][_0x57a098('0x1a69')][_0xab85f]['type'],'msg':_0x4a42bd[_0x57a098('0x11c2')]['errors'][_0xab85f][_0x57a098('0x1224')]});}}else _0x1c99e7[_0x57a098('0x2092')]({'title':_0x4a42bd['status']?_0x57a098('0x22d')+_0x4a42bd[_0x57a098('0x209')]+_0x57a098('0xa99')+_0x4a42bd[_0x57a098('0x1808')]:_0x57a098('0x10d3'),'msg':_0x4a42bd[_0x57a098('0x11c2')]?JSON[_0x57a098('0x25e')](_0x4a42bd[_0x57a098('0x11c2')][_0x57a098('0x1224')]):_0x4a42bd[_0x57a098('0x1224')]||_0x4a42bd['toString']()});});}function _0x428b18(){var _0x47af2e=_0x215fa4,_0x5a976c=angular[_0x47af2e('0xd75')](_0x2d67f7['selectedDispositions']);return _0x2d67f7[_0x47af2e('0xa9')]=[],_0x5a976c;}function _0x5627a2(_0x1466b0){var _0x1fd019=_0x215fa4,_0x253519=_0x45fa61[_0x1fd019('0xa33')]()[_0x1fd019('0x4b4')](_0x2dae24['instant'](_0x1fd019('0x1477')))[_0x1fd019('0x13fb')](_0x2dae24[_0x1fd019('0x183e')](_0x1fd019('0x212d'),{'total':_0x2d67f7[_0x1fd019('0xa9')][_0x1fd019('0x577')]}))[_0x1fd019('0x7a7')](_0x1fd019('0xad9'))['targetEvent'](_0x1466b0)['ok']('OK')[_0x1fd019('0x3b5')](_0x2dae24[_0x1fd019('0x183e')](_0x1fd019('0x20ea')));_0x45fa61[_0x1fd019('0x853')](_0x253519)['then'](function(){var _0x125f3f=_0x1fd019;_0x2d67f7[_0x125f3f('0xa9')][_0x125f3f('0x1a52')](function(_0x367a74){_0x1cfc89(_0x367a74);}),_0x2d67f7[_0x125f3f('0xa9')]=[];});}function _0xcda1f9(){var _0x2b126d=_0x215fa4;_0x2d67f7[_0x2b126d('0xa9')]=[];}function _0x48ca6f(){var _0x9c7d24=_0x215fa4;_0x2d67f7[_0x9c7d24('0xa9')]=_0x2d67f7['dispositions'][_0x9c7d24('0x1b33')];}var _0x186b66=!![],_0x3063b3=0x1;_0x1750f1[_0x215fa4('0x10e8')](_0x215fa4('0x10ff'),function(_0x116920,_0x52a1cf){var _0x54a6d3=_0x215fa4;_0x186b66?_0x5e84fa(function(){_0x186b66=![];}):(!_0x52a1cf&&(_0x3063b3=_0x2d67f7[_0x54a6d3('0x77')][_0x54a6d3('0x2376')]),_0x116920!==_0x52a1cf&&(_0x2d67f7[_0x54a6d3('0x77')][_0x54a6d3('0x2376')]=0x1),!_0x116920&&(_0x2d67f7[_0x54a6d3('0x77')]['page']=_0x3063b3),_0x12c731());});}const _0x571a54=_0x1581e0;_0x54722c[_0x3877e3('0x1a81')]=[_0x3877e3('0x26'),_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$q',_0x3877e3('0x13c1'),'$timeout',_0x3877e3('0x1850'),'$document','toasty',_0x3877e3('0xccd'),_0x3877e3('0x15bc')];function _0x54722c(_0x20f25e,_0x9fef09,_0x2b97db,_0x152882,_0x37a72b,_0x980e52,_0x1c839a,_0x2b015d,_0x4fce25,_0x37cd50,_0x28e7f5){var _0xb7c5c4=_0x3877e3,_0x31483f=this;_0x31483f[_0xb7c5c4('0x123f')]=_0x28e7f5[_0xb7c5c4('0x15ed')](),_0x31483f[_0xb7c5c4('0xeb2')]={},_0x31483f[_0xb7c5c4('0xfe5')]={'count':0x0,'rows':[]},_0x31483f[_0xb7c5c4('0x18ba')]=[],_0x31483f[_0xb7c5c4('0x5ed')],_0x31483f[_0xb7c5c4('0x77')]={'read':_0xb7c5c4('0x27a'),'closed':'null','sort':_0xb7c5c4('0xfef'),'includeAll':'true','limit':0xa,'page':0x1},_0x31483f[_0xb7c5c4('0x1d75')]=_0x39e58a,_0x31483f[_0xb7c5c4('0x15dc')]=_0x1bf899,_0x31483f[_0xb7c5c4('0xc12')]=_0x1c1e7f,_0x31483f[_0xb7c5c4('0xdb1')]=_0x2f29c8,_0x31483f[_0xb7c5c4('0x344')]=_0x619cb0,_0x31483f[_0xb7c5c4('0x26b6')]=_0x1ae035,_0x31483f['openAdvancedSearch']=_0x1f7ef2,_0x31483f[_0xb7c5c4('0x109f')]=_0x23aa7b,_0x31483f[_0xb7c5c4('0x7b4')]=_0x1f630a,_0x31483f['deleteSelectedFaxAccountInteractions']=_0x222f24;function _0x39e58a(_0x44a72b,_0x5dcd51){var _0x255d32=_0xb7c5c4;_0x31483f[_0x255d32('0xeb2')]=_0x44a72b,_0x31483f[_0x255d32('0x5ed')]=typeof _0x5dcd51!==_0x255d32('0xddc')?_0x5dcd51:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x31483f[_0x255d32('0x77')][_0x255d32('0x1de9')]=_0x31483f[_0x255d32('0xeb2')]['id'],_0x31483f[_0x255d32('0x2211')]={'fields':_0x460e37()},_0xc0d269();}function _0xc0d269(){var _0x4e96df=_0xb7c5c4;return _0x37cd50[_0x4e96df('0x907')]['get']()[_0x4e96df('0x1376')][_0x4e96df('0x21ad')](function(_0x1f6843){var _0x915d1=_0x4e96df;_0x31483f[_0x915d1('0x1889')]=_0x1f6843||{'count':0x0,'rows':[]};})['then'](function(){var _0x1dbf07=_0x4e96df;_0x31483f[_0x1dbf07('0x2255')]=_0x481332();});}function _0x481332(){var _0x42faac=_0xb7c5c4;return[{'name':_0x42faac('0x18a1'),'key':_0x42faac('0x23ae'),'type':_0x42faac('0x2457'),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x42faac('0x5d'),'key':'read','type':_0x42faac('0x2844'),'label':_0x42faac('0x15f4'),'customOptions':[{'value':0x0,'translate':_0x42faac('0x1799')},{'value':0x1,'translate':_0x42faac('0x629')},{'value':null,'translate':_0x42faac('0x1ee5')}]},{'name':'Status','key':_0x42faac('0x14ba'),'type':_0x42faac('0x2844'),'label':_0x42faac('0x2204'),'customOptions':[{'value':0x0,'translate':_0x42faac('0x19e2')},{'value':0x1,'translate':_0x42faac('0x11d2')},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':'Agent','key':'UserId','type':_0x42faac('0x2844'),'label':_0x42faac('0x115d'),'customOptions':[{'value':'null','translate':_0x42faac('0x1932')},{'value':undefined,'translate':_0x42faac('0x1ee5')}]},{'name':_0x42faac('0x295'),'key':_0x42faac('0x907'),'type':_0x42faac('0x91f'),'label':_0x42faac('0x138d'),'options':_0x31483f[_0x42faac('0x1889')][_0x42faac('0x1b33')],'placeholder':'DASHBOARDS.TAGS'}];}function _0x460e37(){var _0x5e966a=_0xb7c5c4;return[{'name':'Id','column':'id','type':'number'},{'name':_0x5e966a('0x1d10'),'column':'Contact','type':_0x5e966a('0x175c'),'options':{'searchFields':[_0x5e966a('0x992'),_0x5e966a('0x6d'),'email'],'route':{'model':_0x5e966a('0x25dc'),'action':_0x5e966a('0x595'),'params':{'fields':'id,firstName,lastName,email','Contact':'@autocomplete','nolimit':!![]}},'extraOperators':[_0x5e966a('0xb58')],'excludedOperators':['$ne']}},{'name':_0x5e966a('0x1d80'),'column':_0x5e966a('0x32a'),'type':_0x5e966a('0xc1e'),'options':{'excludedOperators':[_0x5e966a('0x940'),'$ne']}},{'name':'Body','column':_0x5e966a('0x11e5'),'type':_0x5e966a('0xc1e'),'options':{'excludedOperators':[_0x5e966a('0x940'),_0x5e966a('0x3fe')]}},{'name':_0x5e966a('0x843'),'column':_0x5e966a('0x14ba'),'type':_0x5e966a('0x2844'),'values':[{'id':0x0,'translate':_0x5e966a('0x19e2')},{'id':0x1,'translate':_0x5e966a('0x11d2')}],'options':{'excludedOperators':[_0x5e966a('0x3fe')]}},{'name':_0x5e966a('0x1a44'),'column':_0x5e966a('0x6e4'),'type':_0x5e966a('0x175c'),'options':{'table':'i','route':{'model':_0x5e966a('0x1775'),'action':_0x5e966a('0x595'),'params':{'role':'agent','fields':_0x5e966a('0x2326'),'nolimit':!![]}},'searchFields':[_0x5e966a('0x20f5'),'name'],'extraOperators':[_0x5e966a('0xb58')],'excludedOperators':[_0x5e966a('0x3fe')]}},{'name':'Tags','column':_0x5e966a('0x295'),'type':'multiselect','options':{'route':{'model':_0x5e966a('0x907'),'action':_0x5e966a('0x595'),'params':{'nolimit':!![]}},'excludedOperators':[_0x5e966a('0x23')]}},{'name':_0x5e966a('0x18a1'),'column':'createdAt','type':_0x5e966a('0x2457'),'options':{'excludedOperators':[_0x5e966a('0x3fe')]}},{'name':'Read','column':_0x5e966a('0x6c5'),'type':_0x5e966a('0x2844'),'values':[{'id':0x1,'translate':_0x5e966a('0x629')},{'id':0x0,'translate':_0x5e966a('0x1799')}],'options':{'excludedOperators':[_0x5e966a('0x3fe')]}}];}function _0x1f7ef2(){var _0x2ceb9a=_0xb7c5c4;_0x1c839a[_0x2ceb9a('0x853')]({'controller':_0x2ceb9a('0xde1'),'controllerAs':'vm','templateUrl':_0x44f47e,'parent':angular[_0x2ceb9a('0x1676')](_0x2b015d[_0x2ceb9a('0x2452')]),'clickOutsideToClose':![],'locals':{'fields':_0x31483f[_0x2ceb9a('0x2211')][_0x2ceb9a('0x181e')],'color':undefined,'storagePath':_0x2ceb9a('0x9ef')},'fullscreen':!![]})['then'](function(_0x1f7c85){var _0x46338c=_0x2ceb9a;_0x31483f[_0x46338c('0x77')][_0x46338c('0x24e7')]=_0x1f7c85===![]?undefined:_0x1f7c85;if(_0x31483f[_0x46338c('0x77')][_0x46338c('0x24e7')])_0x619cb0();else _0x1f7c85===![]&&_0x619cb0();})[_0x2ceb9a('0x1c1d')](function(_0x4b7e40){var _0x5d6733=_0x2ceb9a;_0x4fce25['error']({'title':_0x5d6733('0x1399'),'msg':_0x4b7e40[_0x5d6733('0x11c2')]?JSON[_0x5d6733('0x25e')](_0x4b7e40[_0x5d6733('0x11c2')][_0x5d6733('0x1224')]):_0x4b7e40[_0x5d6733('0x174f')]()});});}function _0x1c1e7f(_0x4c99d5,_0x1167b7,_0x27d416){var _0x448e90=_0xb7c5c4;return _0x37cd50[_0x448e90('0x2592')][_0x448e90('0xb0')]({'id':_0x4c99d5['id'],'exists':!![],'attachments':_0x27d416})[_0x448e90('0x1376')][_0x448e90('0x21ad')](function(_0x2440d6){var _0x419771=_0x448e90,_0x11df46=[_0x2440d6[_0x419771('0x3da')]],_0x2b3f6b='interaction'+_0x4c99d5['id'],_0x3ab83f=new Blob(_0x11df46,{'type':_0x2440d6[_0x419771('0x7fa')]});_0x2b3f6b='fax-interaction'+_0x4c99d5['id']+_0x419771('0x1622');var _0x2c543e=window['document'][_0x419771('0x162e')]('a');_0x2c543e['setAttribute'](_0x419771('0x69e'),URL['createObjectURL'](_0x3ab83f)),_0x2c543e['setAttribute'](_0x419771('0xb0'),_0x2b3f6b),document[_0x419771('0x2452')]['appendChild'](_0x2c543e),_0x2c543e[_0x419771('0x997')]();})['catch'](function(_0x35a344){var _0x32ba7e=_0x448e90;if(_0x35a344[_0x32ba7e('0x11c2')]&&_0x35a344[_0x32ba7e('0x11c2')][_0x32ba7e('0x1a69')]&&_0x35a344[_0x32ba7e('0x11c2')][_0x32ba7e('0x1a69')][_0x32ba7e('0x577')])for(var _0x4d4e2c=0x0;_0x4d4e2c<_0x35a344[_0x32ba7e('0x11c2')][_0x32ba7e('0x1a69')]['length'];_0x4d4e2c+=0x1){_0x4fce25[_0x32ba7e('0x2092')]({'title':_0x35a344[_0x32ba7e('0x11c2')][_0x32ba7e('0x1a69')][_0x4d4e2c]['type'],'msg':_0x35a344[_0x32ba7e('0x11c2')]['errors'][_0x4d4e2c][_0x32ba7e('0x1224')]});}else _0x4fce25[_0x32ba7e('0x2092')]({'title':_0x35a344['status']?'API:'+_0x35a344[_0x32ba7e('0x209')]+_0x32ba7e('0xa99')+_0x35a344[_0x32ba7e('0x1808')]:_0x32ba7e('0x3e5'),'msg':_0x35a344['data']?JSON[_0x32ba7e('0x25e')](_0x35a344['data'][_0x32ba7e('0x1224')]):_0x35a344[_0x32ba7e('0x174f')]()});});}function _0x1bf899(_0x138b3e,_0xcee097){var _0x7d2b53=_0xb7c5c4,_0x2ace1a=_0x1c839a[_0x7d2b53('0xa33')]()[_0x7d2b53('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20interaction?')[_0x7d2b53('0x276b')](_0x7d2b53('0x622')+(_0x138b3e['name']||_0x138b3e['id']&&_0x86640f()[_0x7d2b53('0x22e')](_0x7d2b53('0x66c'))+_0x138b3e['id']||'interaction')+_0x7d2b53('0x2135')+_0x7d2b53('0x25e0'))['ariaLabel']('delete\x20interaction')[_0x7d2b53('0x1e6d')](_0xcee097)['ok']('OK')['cancel'](_0x7d2b53('0x284b'));_0x1c839a[_0x7d2b53('0x853')](_0x2ace1a)[_0x7d2b53('0x21ad')](function(){_0x1f630a(_0x138b3e);},function(){var _0x15b7e2=_0x7d2b53;console['log'](_0x15b7e2('0x284b'));});}function _0x2f29c8(_0x21a931){var _0x2098e8=_0xb7c5c4;_0x31483f[_0x2098e8('0xfe5')]=_0x21a931||{'count':0x0,'rows':[]};for(var _0x1ab5be=0x0;_0x1ab5be<_0x31483f['faxAccountInteractions'][_0x2098e8('0x1b33')][_0x2098e8('0x577')];_0x1ab5be+=0x1){var _0x26c586=_0x31483f[_0x2098e8('0xfe5')][_0x2098e8('0x1b33')][_0x1ab5be];_0x186bad(_0x26c586),_0x26c586[_0x2098e8('0x11a8')]['name']=_0x510339(_0x26c586);}}function _0x619cb0(){var _0x2a0873=_0xb7c5c4;_0x31483f['query'][_0x2a0873('0x15a5')]=(_0x31483f['query'][_0x2a0873('0x2376')]-0x1)*_0x31483f['query'][_0x2a0873('0x1f4a')],_0x31483f[_0x2a0873('0x71b')]=_0x37cd50[_0x2a0873('0x2592')]['get'](_0x31483f[_0x2a0873('0x77')],_0x2f29c8)['$promise'];}function _0x1ae035(_0x535816,_0x304835){var _0x256a6b=_0xb7c5c4;_0x1c839a[_0x256a6b('0x853')]({'controller':_0x256a6b('0xbd1'),'controllerAs':'vm','templateUrl':_0x421fef,'parent':angular[_0x256a6b('0x1676')](_0x2b015d[_0x256a6b('0x2452')]),'targetEvent':_0x535816,'clickOutsideToClose':!![],'onShowing':function _0x480ead(_0x40bae1){var _0x24ac87=_0x256a6b;_0x40bae1['vm'][_0x24ac87('0x1d75')]({'id':0x1,'channel':_0x24ac87('0x93f'),'interaction':_0x304835,'spy':!![]},_0x9fef09[_0x24ac87('0x223d')]['vm'][_0x24ac87('0x21e')]);}});}function _0x1f630a(_0x252305){var _0x1ba92f=_0xb7c5c4;_0x37cd50[_0x1ba92f('0x2592')][_0x1ba92f('0x1164')]({'id':_0x252305['id']})[_0x1ba92f('0x1376')][_0x1ba92f('0x21ad')](function(){var _0x14d141=_0x1ba92f;_0x86640f()['remove'](_0x31483f[_0x14d141('0xfe5')][_0x14d141('0x1b33')],{'id':_0x252305['id']}),_0x31483f[_0x14d141('0xfe5')][_0x14d141('0x205f')]-=0x1,!_0x31483f[_0x14d141('0xfe5')][_0x14d141('0x1b33')][_0x14d141('0x577')]&&_0x619cb0(),_0x4fce25['success']({'title':_0x14d141('0x1eb4'),'msg':_0x252305['name']?_0x252305[_0x14d141('0x19fe')]+'\x20has\x20been\x20deleted!':''});})[_0x1ba92f('0x1c1d')](function(_0x5a8c7d){var _0x232ad6=_0x1ba92f;if(_0x5a8c7d[_0x232ad6('0x11c2')]&&_0x5a8c7d[_0x232ad6('0x11c2')][_0x232ad6('0x1a69')]&&_0x5a8c7d[_0x232ad6('0x11c2')][_0x232ad6('0x1a69')]['length']){_0x31483f[_0x232ad6('0x1a69')]=_0x5a8c7d[_0x232ad6('0x11c2')][_0x232ad6('0x1a69')]||[{'message':_0x5a8c7d['toString'](),'type':_0x232ad6('0x635')}];for(var _0x5548c9=0x0;_0x5548c9<_0x5a8c7d[_0x232ad6('0x11c2')]['errors'][_0x232ad6('0x577')];_0x5548c9++){_0x4fce25[_0x232ad6('0x2092')]({'title':_0x5a8c7d[_0x232ad6('0x11c2')][_0x232ad6('0x1a69')][_0x5548c9][_0x232ad6('0x7fa')],'msg':_0x5a8c7d['data']['errors'][_0x5548c9][_0x232ad6('0x1224')]});}}else _0x4fce25[_0x232ad6('0x2092')]({'title':_0x5a8c7d[_0x232ad6('0x209')]?_0x232ad6('0x22d')+_0x5a8c7d[_0x232ad6('0x209')]+_0x232ad6('0xa99')+_0x5a8c7d[_0x232ad6('0x1808')]:'SYSTEM:GETfaxAccount','msg':_0x5a8c7d[_0x232ad6('0x11c2')]?JSON[_0x232ad6('0x25e')](_0x5a8c7d[_0x232ad6('0x11c2')][_0x232ad6('0x1224')]):_0x5a8c7d['message']||_0x5a8c7d[_0x232ad6('0x174f')]()});});}function _0x23aa7b(){var _0x4c5b9f=_0xb7c5c4,_0x50983a=angular[_0x4c5b9f('0xd75')](_0x31483f['selectedFaxAccountInteractions']);return _0x31483f[_0x4c5b9f('0x18ba')]=[],_0x50983a;}function _0x222f24(_0x44451c){var _0x2a2ef0=_0xb7c5c4,_0x4fcd0f=_0x1c839a[_0x2a2ef0('0xa33')]()[_0x2a2ef0('0x4b4')](_0x2a2ef0('0x1ad2'))[_0x2a2ef0('0x276b')](_0x2a2ef0('0x622')+_0x31483f[_0x2a2ef0('0x18ba')][_0x2a2ef0('0x577')]+_0x2a2ef0('0xd74')+_0x2a2ef0('0x25e0'))[_0x2a2ef0('0x7a7')](_0x2a2ef0('0x263e'))[_0x2a2ef0('0x1e6d')](_0x44451c)['ok']('OK')[_0x2a2ef0('0x3b5')](_0x2a2ef0('0x284b'));_0x1c839a[_0x2a2ef0('0x853')](_0x4fcd0f)['then'](function(){var _0x52c4f2=_0x2a2ef0;_0x31483f['selectedFaxAccountInteractions'][_0x52c4f2('0x1a52')](function(_0x6e5576){_0x1f630a(_0x6e5576);}),_0x31483f[_0x52c4f2('0x18ba')]=[];});}function _0x186bad(_0x48809b){var _0x5ddca1=_0xb7c5c4;_0x48809b[_0x5ddca1('0x1d10')]?(_0x48809b[_0x5ddca1('0x1717')]=(_0x48809b[_0x5ddca1('0x1d10')]['firstName']||'')+'\x20'+(_0x48809b['Contact'][_0x5ddca1('0x6d')]||''),_0x48809b[_0x5ddca1('0x67e')]=_0x48809b[_0x5ddca1('0x1d10')]['fax']):_0x48809b[_0x5ddca1('0x1717')]=_0x37a72b[_0x5ddca1('0x183e')](_0x5ddca1('0xc13'));}function _0x510339(_0x153808){var _0xb1bdce=_0xb7c5c4;if(_0x153808[_0xb1bdce('0x1dc6')])return _0x153808[_0xb1bdce('0x1dc6')]===_0x31483f[_0xb1bdce('0x123f')]['id']?_0x37a72b['instant'](_0xb1bdce('0x4db')):_0x153808['Owner'][_0xb1bdce('0x20f5')]+'\x20<'+_0x153808[_0xb1bdce('0x11a8')]['internal']+'>';return _0x37a72b['instant']('DASHBOARDS.NOT_ASSIGNED');}var _0x1d9e9f=!![],_0x2c0756=0x1;_0x9fef09[_0xb7c5c4('0x10e8')]('vm_dc.query.filter',function(_0x56360f,_0x1854b9){var _0x2d8db1=_0xb7c5c4;_0x1d9e9f?_0x980e52(function(){_0x1d9e9f=![];}):(!_0x1854b9&&(_0x2c0756=_0x31483f['query'][_0x2d8db1('0x2376')]),_0x56360f!==_0x1854b9&&(_0x31483f[_0x2d8db1('0x77')][_0x2d8db1('0x2376')]=0x1),!_0x56360f&&(_0x31483f['query']['page']=_0x2c0756),_0x619cb0());});}const _0x366d84=_0x54722c,_0x18fe07=_0x398308['p']+_0x3877e3('0x1a70');_0x5806f5[_0x3877e3('0x1a81')]=['$state','$location',_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x13c1'),'license',_0x3877e3('0x21e'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0xeb2'),_0x3877e3('0xab4')];function _0x5806f5(_0x247e73,_0x5115a4,_0x4a8167,_0xec7dc9,_0x47bf83,_0x448166,_0x39b76a,_0x473769,_0x351b8d,_0x4c059d,_0x1cdbd4,_0x5e84e0){var _0x238291=_0x3877e3,_0x3ee74a=this;_0x3ee74a[_0x238291('0x123f')]=_0x4c059d[_0x238291('0x15ed')](),_0x3ee74a[_0x238291('0x2ff')]=_0x448166,_0x3ee74a[_0x238291('0x21e')]=_0x39b76a,_0x3ee74a[_0x238291('0x1432')]=_0x3ee74a[_0x238291('0x21e')][_0x238291('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3ee74a[_0x238291('0x626')]=_0x5115a4['protocol']()+_0x238291('0x22a9')+_0x5115a4[_0x238291('0x1c01')](),_0x3ee74a[_0x238291('0xeb2')]=_0x1cdbd4||_0x247e73[_0x238291('0x171b')][_0x238291('0xeb2')]||{},_0x3ee74a[_0x238291('0xab4')]=_0x5e84e0&&_0x5e84e0[_0x238291('0x205f')]==0x1?_0x5e84e0['rows'][0x0]:null,_0x3ee74a[_0x238291('0x5ed')]=_0x4c059d[_0x238291('0x1778')](_0x3ee74a['userProfileSection']?_0x3ee74a[_0x238291('0xab4')][_0x238291('0x5ed')]:null),_0x3ee74a[_0x238291('0x126a')]={},_0x3ee74a[_0x238291('0x302')]=_0x247e73[_0x238291('0x171b')][_0x238291('0x12e1')]||0x0,_0x3ee74a[_0x238291('0x177f')]=_0xdd8847,_0x3ee74a['agentadddialog']=_0x3214c3,_0x3ee74a[_0x238291('0x95b')]=_0x351b8d[_0x238291('0x231c')],_0x3ee74a[_0x238291('0x2162')]=_0x4f4add,_0x3ee74a[_0x238291('0x1ff2')]=_0x5f2f42,_0x4c059d[_0x238291('0x21de')](_0x238291('0x1bd8'))?_0x473769[_0x238291('0x1280')]['get']({'fields':_0x238291('0x1aa8'),'sort':_0x238291('0x19fe')})[_0x238291('0x1376')]['then'](function(_0x236d6c){var _0x12b684=_0x238291;_0x3ee74a['trunks']=_0x236d6c[_0x12b684('0x1b33')]||[];})[_0x238291('0x1c1d')](function(_0x29c490){var _0x3f3de0=_0x238291;_0x351b8d[_0x3f3de0('0x2092')]({'title':_0x29c490[_0x3f3de0('0x209')]?_0x3f3de0('0x22d')+_0x29c490[_0x3f3de0('0x209')]+'\x20-\x20'+_0x29c490['statusText']:_0x3f3de0('0x9ee'),'msg':_0x29c490['data']?JSON[_0x3f3de0('0x25e')](_0x29c490[_0x3f3de0('0x11c2')]):_0x29c490[_0x3f3de0('0x174f')]()});}):_0x473769['trunk']['get']({'fields':_0x238291('0x1aa8'),'sort':_0x238291('0x19fe')})[_0x238291('0x1376')][_0x238291('0x21ad')](function(_0x4ad7c4){var _0x52beb7=_0x238291;_0x3ee74a[_0x52beb7('0x1593')]=_0x4ad7c4[_0x52beb7('0x1b33')]||[];})['then'](function(){var _0x35960a=_0x238291;return _0x473769['userProfileSection'][_0x35960a('0x595')]({'userProfileId':_0x3ee74a['currentUser'][_0x35960a('0x1618')],'sectionId':0x3f3})[_0x35960a('0x1376')];})[_0x238291('0x21ad')](function(_0x521b27){var _0x3e8beb=_0x238291,_0x2a744d=_0x521b27&&_0x521b27[_0x3e8beb('0x1b33')]?_0x521b27[_0x3e8beb('0x1b33')][0x0]:null;if(!_0x2a744d){var _0xcc7945=[],_0x39fbd5=null;_0x3ee74a[_0x3e8beb('0xeb2')]&&(_0x39fbd5=_0x86640f()[_0x3e8beb('0x1d2e')](_0x3ee74a[_0x3e8beb('0x1593')],{'id':Number(_0x3ee74a[_0x3e8beb('0xeb2')][_0x3e8beb('0x1026')])}));for(var _0x3a277b=0x0;_0x3a277b<_0x3ee74a['trunks'][_0x3e8beb('0x577')];_0x3a277b++){_0x39fbd5&&_0x3ee74a[_0x3e8beb('0x1593')][_0x3a277b]['id']===_0x39fbd5['id']&&(_0x3ee74a[_0x3e8beb('0x1593')][_0x3a277b]['canSelect']=![],_0xcc7945[_0x3e8beb('0x206c')](_0x3ee74a['trunks'][_0x3a277b]));}_0x3ee74a[_0x3e8beb('0x1593')]=_0xcc7945;}else{if(!_0x2a744d[_0x3e8beb('0x80c')])return _0x473769[_0x3e8beb('0x185e')]['get']({'sectionId':_0x2a744d['id']})[_0x3e8beb('0x1376')][_0x3e8beb('0x21ad')](function(_0x904699){var _0x4adc4f=_0x3e8beb,_0x3454b4=_0x86640f()[_0x4adc4f('0x26c3')](_0x904699['rows'],function(_0x209c24){var _0x1fb622=_0x4adc4f;return _0x86640f()[_0x1fb622('0x1d2e')](_0x3ee74a[_0x1fb622('0x1593')],{'id':_0x209c24[_0x1fb622('0x675')]});}),_0x345833=null;_0x3ee74a['faxAccount']&&(_0x345833=_0x86640f()[_0x4adc4f('0x1d2e')](_0x3ee74a['trunks'],{'id':Number(_0x3ee74a[_0x4adc4f('0xeb2')]['TrunkId'])}));if(_0x345833&&!_0x86640f()[_0x4adc4f('0x2664')](_0x3454b4,['id',_0x345833['id']])){var _0x182ac3=_0x86640f()[_0x4adc4f('0x1d2e')](_0x3ee74a[_0x4adc4f('0x1593')],{'id':_0x345833['id']});_0x182ac3[_0x4adc4f('0xba')]=![],_0x3454b4['push'](_0x182ac3);}_0x3ee74a[_0x4adc4f('0x1593')]=_0x3454b4;});}})[_0x238291('0x1c1d')](function(_0x507b0e){var _0x15d6eb=_0x238291;_0x351b8d['error']({'title':_0x507b0e[_0x15d6eb('0x209')]?_0x15d6eb('0x22d')+_0x507b0e['status']+'\x20-\x20'+_0x507b0e[_0x15d6eb('0x1808')]:'SYSTEM:GETtrunks','msg':_0x507b0e[_0x15d6eb('0x11c2')]?JSON[_0x15d6eb('0x25e')](_0x507b0e['data']):_0x507b0e[_0x15d6eb('0x174f')]()});}),_0x4c059d[_0x238291('0x21de')](_0x238291('0x1bd8'))?_0x473769[_0x238291('0x11e0')][_0x238291('0x595')]({'fields':_0x238291('0x1aa8'),'sort':_0x238291('0x19fe')})[_0x238291('0x1376')]['then'](function(_0x3f0dc7){var _0x508b6f=_0x238291;_0x3ee74a[_0x508b6f('0x1972')]=_0x3f0dc7[_0x508b6f('0x1b33')]||[];})['catch'](function(_0x26731a){var _0x5ba771=_0x238291;_0x351b8d[_0x5ba771('0x2092')]({'title':_0x26731a[_0x5ba771('0x209')]?_0x5ba771('0x22d')+_0x26731a[_0x5ba771('0x209')]+_0x5ba771('0xa99')+_0x26731a['statusText']:_0x5ba771('0xf59'),'msg':_0x26731a[_0x5ba771('0x11c2')]?JSON[_0x5ba771('0x25e')](_0x26731a[_0x5ba771('0x11c2')]):_0x26731a[_0x5ba771('0x174f')]()});}):_0x473769['cmList'][_0x238291('0x595')]({'fields':'id,name','sort':_0x238291('0x19fe')})[_0x238291('0x1376')][_0x238291('0x21ad')](function(_0x405a9a){var _0x3fed68=_0x238291;_0x3ee74a[_0x3fed68('0x1972')]=_0x405a9a[_0x3fed68('0x1b33')]||[];})['then'](function(){var _0x2a6cbc=_0x238291;return _0x473769[_0x2a6cbc('0xab4')][_0x2a6cbc('0x595')]({'userProfileId':_0x3ee74a[_0x2a6cbc('0x123f')]['userProfileId'],'sectionId':0x12d})[_0x2a6cbc('0x1376')];})['then'](function(_0x575ccd){var _0x10eb0a=_0x238291,_0x355578=_0x575ccd&&_0x575ccd['rows']?_0x575ccd['rows'][0x0]:null;if(!_0x355578){var _0x98f885=[],_0x17328b=null;_0x3ee74a[_0x10eb0a('0xeb2')]&&(_0x17328b=_0x86640f()['find'](_0x3ee74a[_0x10eb0a('0x1972')],{'id':Number(_0x3ee74a[_0x10eb0a('0xeb2')][_0x10eb0a('0x815')])}));for(var _0x4d469b=0x0;_0x4d469b<_0x3ee74a['lists']['length'];_0x4d469b++){_0x17328b&&_0x3ee74a[_0x10eb0a('0x1972')][_0x4d469b]['id']===_0x17328b['id']&&(_0x3ee74a[_0x10eb0a('0x1972')][_0x4d469b][_0x10eb0a('0xba')]=![],_0x98f885['push'](_0x3ee74a[_0x10eb0a('0x1972')][_0x4d469b]));}_0x3ee74a[_0x10eb0a('0x1972')]=_0x98f885;}else{if(!_0x355578['autoAssociation'])return _0x473769[_0x10eb0a('0x185e')][_0x10eb0a('0x595')]({'sectionId':_0x355578['id']})[_0x10eb0a('0x1376')][_0x10eb0a('0x21ad')](function(_0x5a301f){var _0x4b3884=_0x10eb0a,_0x1a5f6a=_0x86640f()['map'](_0x5a301f['rows'],function(_0x3c555a){var _0x2c0984=a0_0x2e7f;return _0x86640f()[_0x2c0984('0x1d2e')](_0x3ee74a['lists'],{'id':_0x3c555a['resourceId']});}),_0x35af6c=null;_0x3ee74a[_0x4b3884('0xeb2')]&&(_0x35af6c=_0x86640f()['find'](_0x3ee74a['lists'],{'id':Number(_0x3ee74a[_0x4b3884('0xeb2')][_0x4b3884('0x815')])}));if(_0x35af6c&&!_0x86640f()[_0x4b3884('0x2664')](_0x1a5f6a,['id',_0x35af6c['id']])){var _0x4b2a11=_0x86640f()['find'](_0x3ee74a[_0x4b3884('0x1972')],{'id':_0x35af6c['id']});_0x4b2a11['canSelect']=![],_0x1a5f6a[_0x4b3884('0x206c')](_0x4b2a11);}_0x3ee74a[_0x4b3884('0x1972')]=_0x1a5f6a;});}})[_0x238291('0x1c1d')](function(_0x468366){var _0x5b97b5=_0x238291;_0x351b8d[_0x5b97b5('0x2092')]({'title':_0x468366[_0x5b97b5('0x209')]?_0x5b97b5('0x22d')+_0x468366[_0x5b97b5('0x209')]+_0x5b97b5('0xa99')+_0x468366[_0x5b97b5('0x1808')]:_0x5b97b5('0xa92'),'msg':_0x468366['data']?JSON[_0x5b97b5('0x25e')](_0x468366['data']):_0x468366[_0x5b97b5('0x174f')]()});}),_0x4c059d[_0x238291('0x21de')](_0x238291('0x1bd8'))?_0x473769[_0x238291('0x1e26')][_0x238291('0x595')]({'fields':_0x238291('0x14d5'),'sort':_0x238291('0x19fe'),'nolimit':_0x238291('0x19bd')})[_0x238291('0x1376')][_0x238291('0x21ad')](function(_0x49e657){var _0x111841=_0x238291;_0x3ee74a[_0x111841('0x1fc7')]=_0x49e657[_0x111841('0x1b33')]||[];})[_0x238291('0x1c1d')](function(_0x32587c){var _0x10bb6b=_0x238291;_0x351b8d[_0x10bb6b('0x2092')]({'title':_0x32587c[_0x10bb6b('0x209')]?_0x10bb6b('0x22d')+_0x32587c[_0x10bb6b('0x209')]+_0x10bb6b('0xa99')+_0x32587c[_0x10bb6b('0x1808')]:_0x10bb6b('0xb9b'),'msg':_0x32587c['data']?JSON[_0x10bb6b('0x25e')](_0x32587c[_0x10bb6b('0x11c2')]):_0x32587c['toString']()});}):_0x473769[_0x238291('0x1e26')][_0x238291('0x595')]({'fields':'name,id','sort':_0x238291('0x19fe'),'nolimit':'true'})[_0x238291('0x1376')]['then'](function(_0x2304cd){var _0x5db483=_0x238291;_0x3ee74a[_0x5db483('0x1fc7')]=_0x2304cd[_0x5db483('0x1b33')]||[];})['then'](function(){var _0xc1a6ba=_0x238291;return _0x473769['userProfileSection']['get']({'userProfileId':_0x3ee74a[_0xc1a6ba('0x123f')][_0xc1a6ba('0x1618')],'sectionId':0x3ed})[_0xc1a6ba('0x1376')];})[_0x238291('0x21ad')](function(_0x79001b){var _0x51aa42=_0x238291,_0x204f14=_0x79001b&&_0x79001b[_0x51aa42('0x1b33')]?_0x79001b[_0x51aa42('0x1b33')][0x0]:null;if(!_0x204f14)_0x3ee74a['pauses']=[];else{if(!_0x204f14[_0x51aa42('0x80c')])return _0x473769[_0x51aa42('0x185e')][_0x51aa42('0x595')]({'sectionId':_0x204f14['id']})[_0x51aa42('0x1376')]['then'](function(_0x536afc){var _0x52d7cf=_0x51aa42,_0x783add=_0x86640f()[_0x52d7cf('0x26c3')](_0x536afc['rows'],function(_0x1d5a57){var _0x445f8f=_0x52d7cf;return _0x86640f()[_0x445f8f('0x1d2e')](_0x3ee74a['pauses'],{'id':_0x1d5a57['resourceId']});});_0x3ee74a[_0x52d7cf('0x1fc7')][_0x52d7cf('0x1a52')](function(_0x5268bd){var _0x4d1d02=_0x52d7cf;!_0x86640f()[_0x4d1d02('0x2664')](_0x783add,['id',_0x5268bd['id']])&&(_0x5268bd[_0x4d1d02('0xba')]=![]),_0x783add[_0x4d1d02('0x206c')](_0x5268bd);}),_0x3ee74a['pauses']=_0x783add;});}})[_0x238291('0x1c1d')](function(_0x30e7df){var _0x579a6e=_0x238291;_0x351b8d[_0x579a6e('0x2092')]({'title':_0x30e7df[_0x579a6e('0x209')]?_0x579a6e('0x22d')+_0x30e7df[_0x579a6e('0x209')]+'\x20-\x20'+_0x30e7df[_0x579a6e('0x1808')]:_0x579a6e('0x17ab'),'msg':_0x30e7df[_0x579a6e('0x11c2')]?JSON['stringify'](_0x30e7df[_0x579a6e('0x11c2')]):_0x30e7df[_0x579a6e('0x174f')]()});});function _0xdd8847(){var _0x4f95b9=_0x238291;if(_0x4c059d[_0x4f95b9('0x21de')](_0x4f95b9('0x1bd8')))_0x247e73['go'](_0x4f95b9('0x232e'),{});else return _0x473769[_0x4f95b9('0xab4')][_0x4f95b9('0x595')]({'userProfileId':_0x4c059d[_0x4f95b9('0x15ed')]()[_0x4f95b9('0x1618')],'sectionId':0x38e})['$promise']['then'](function(_0x10d740){var _0x4f8210=_0x4f95b9,_0x5dd1f9=_0x10d740&&_0x10d740[_0x4f8210('0x1b33')]?_0x10d740['rows'][0x0]:null;_0x5dd1f9&&_0x5dd1f9['enabled']?_0x247e73['go'](_0x4f8210('0x232e'),{}):_0x351b8d[_0x4f8210('0x231c')]({'title':_0x47bf83['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x47bf83[_0x4f8210('0x183e')](_0x4f8210('0x764'))});})[_0x4f95b9('0x1c1d')](function(_0x56a1ee){var _0x4e20ea=_0x4f95b9;_0x351b8d[_0x4e20ea('0x2092')]({'title':_0x56a1ee[_0x4e20ea('0x209')]?_0x4e20ea('0x22d')+_0x56a1ee['status']+_0x4e20ea('0xa99')+_0x56a1ee[_0x4e20ea('0x1808')]:_0x4e20ea('0xb8'),'msg':_0x56a1ee[_0x4e20ea('0x209')]?JSON[_0x4e20ea('0x25e')](_0x56a1ee['data']):_0x56a1ee[_0x4e20ea('0x174f')]()});});}function _0x3214c3(_0x4d8c20,_0x8752d3){var _0x1d9499=_0x238291;_0x4a8167[_0x1d9499('0x853')]({'controller':_0x1d9499('0x218'),'controllerAs':'vm','templateUrl':_0x18fe07,'parent':angular['element'](_0xec7dc9['body']),'targetEvent':_0x8752d3,'clickOutsideToClose':!![],'locals':{'faxAccount':_0x4d8c20,'faxAccounts':_0x3ee74a['faxAccounts']?_0x3ee74a[_0x1d9499('0x1695')][_0x1d9499('0x1b33')]:[],'crudPermissions':_0x3ee74a[_0x1d9499('0x5ed')],'realtime':![]}});}function _0x4f4add(){var _0x4c8bb2=_0x238291;_0x247e73['go'](_0x4c8bb2('0x181b'),{},{'reload':_0x4c8bb2('0x181b')});}function _0x5f2f42(){var _0x550cd3=_0x238291;_0x473769[_0x550cd3('0xeb2')]['updateAccountApplications'](_0x3ee74a[_0x550cd3('0xeb2')])[_0x550cd3('0x1376')][_0x550cd3('0x21ad')](function(){var _0xeb1b7a=_0x550cd3;_0x351b8d[_0xeb1b7a('0xdb1')]({'title':'FaxAccount\x20updated!','msg':_0x3ee74a['faxAccount']['name']?_0x3ee74a[_0xeb1b7a('0xeb2')][_0xeb1b7a('0x19fe')]+_0xeb1b7a('0xa8d'):''});})[_0x550cd3('0x1c1d')](function(_0x42763b){var _0x16fb52=_0x550cd3;_0x351b8d[_0x16fb52('0x2092')]({'title':_0x42763b['status']?_0x16fb52('0x22d')+_0x42763b[_0x16fb52('0x209')]+'\x20-\x20'+_0x42763b[_0x16fb52('0x1808')]:'SYSTEM:GETfaxAccount','msg':_0x42763b[_0x16fb52('0x11c2')]?JSON['stringify'](_0x42763b[_0x16fb52('0x11c2')]):_0x42763b['toString']()});});}}const _0x2c2fb3=_0x5806f5,_0x39cf28=_0x398308['p']+'src/js/modules/main/apps/fax/views/faxAccounts/create/dialog.html/dialog-[chunkhash].html';_0x5950fd['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),'$state','$mdSidenav',_0x3877e3('0x1850'),_0x3877e3('0x243f'),'$timeout',_0x3877e3('0x13c1'),'faxAccounts',_0x3877e3('0x758'),'userProfileSection',_0x3877e3('0xccd'),'msUtils',_0x3877e3('0x1908'),'Auth',_0x3877e3('0x2ff'),'setting'];function _0x5950fd(_0x3514cb,_0x5191b5,_0x360a12,_0x1ac594,_0x5c952d,_0x47a172,_0x547837,_0x4eedae,_0x24c626,_0x52cffe,_0x102b9c,_0x2cb0e0,_0x51b7ea,_0x5ab069,_0x891681,_0x3eb189,_0x57ee99){var _0x425ee2=_0x3877e3,_0x526022=this;_0x526022[_0x425ee2('0x2ff')]=_0x3eb189,_0x526022[_0x425ee2('0x21e')]=_0x57ee99,_0x526022[_0x425ee2('0x123f')]=_0x891681[_0x425ee2('0x15ed')](),_0x526022[_0x425ee2('0x1695')]=_0x24c626||{'count':0x0,'rows':[]},_0x526022['userProfile']=_0x52cffe,_0x526022[_0x425ee2('0xab4')]=_0x102b9c&&_0x102b9c[_0x425ee2('0x205f')]==0x1?_0x102b9c[_0x425ee2('0x1b33')][0x0]:null,_0x526022[_0x425ee2('0x5ed')]=_0x891681[_0x425ee2('0x1778')](_0x526022['userProfileSection']?_0x526022[_0x425ee2('0xab4')][_0x425ee2('0x5ed')]:null),_0x526022['table']='faxAccounts',_0x526022[_0x425ee2('0x11dc')]='',_0x526022[_0x425ee2('0x18cf')]=null,_0x526022[_0x425ee2('0xae9')]=[],_0x526022[_0x425ee2('0x77')]={'fields':_0x425ee2('0x1c51'),'sort':_0x425ee2('0x33'),'limit':0xa,'page':0x1},_0x526022['arrayecm']=_0x86640f()[_0x425ee2('0xcde')]([{'option':_0x425ee2('0x14be'),'value':'\x27yes\x27'},{'option':'no','value':'\x27no\x27'}],function(_0x4297f4){var _0x90b27d=_0x425ee2;return _0x86640f()['replace'](_0x4297f4[_0x90b27d('0x2228')],new RegExp('\x27','g'),'');}),_0x526022[_0x425ee2('0x1072')]=_0x86640f()[_0x425ee2('0xcde')]([{'option':_0x425ee2('0x24ce'),'value':_0x425ee2('0x8c6')},{'option':'4800','value':_0x425ee2('0x18c3')},{'option':'7200','value':'\x277200\x27'},{'option':'9600','value':_0x425ee2('0xd48')},{'option':'12000','value':_0x425ee2('0x506')},{'option':'14400','value':_0x425ee2('0x1453')}],function(_0x46775a){var _0x853bb9=_0x425ee2;return _0x86640f()[_0x853bb9('0x16e4')](_0x46775a[_0x853bb9('0x2228')],new RegExp('\x27','g'),'');}),_0x526022[_0x425ee2('0xeea')]=_0x86640f()['keyBy']([{'option':_0x425ee2('0x24ce'),'value':_0x425ee2('0x8c6')},{'option':_0x425ee2('0x215f'),'value':_0x425ee2('0x18c3')},{'option':_0x425ee2('0x22c3'),'value':_0x425ee2('0x23cb')},{'option':_0x425ee2('0x4bc'),'value':_0x425ee2('0xd48')},{'option':_0x425ee2('0xf60'),'value':'\x2712000\x27'},{'option':'14400','value':_0x425ee2('0x1453')}],function(_0x4d0f60){var _0x19ce16=_0x425ee2;return _0x86640f()[_0x19ce16('0x16e4')](_0x4d0f60[_0x19ce16('0x2228')],new RegExp('\x27','g'),'');}),_0x526022[_0x425ee2('0x70e')]=_0x86640f()[_0x425ee2('0xcde')]([{'option':_0x425ee2('0x1d2'),'value':_0x425ee2('0x7f2')},{'option':'IAX','value':_0x425ee2('0x1747')},{'option':_0x425ee2('0x15ae'),'value':'\x27DADHI\x27'},{'option':_0x425ee2('0xa90'),'value':_0x425ee2('0xc0a')}],function(_0x37554f){var _0x5d747f=_0x425ee2;return _0x86640f()[_0x5d747f('0x16e4')](_0x37554f[_0x5d747f('0x2228')],new RegExp('\x27','g'),'');}),_0x526022[_0x425ee2('0x1c88')]=_0x476590,_0x526022[_0x425ee2('0x40f')]=_0x229dda,_0x526022[_0x425ee2('0x1db4')]=_0x2e17f3,_0x526022['agentadddialog']=_0x448bf4,_0x526022[_0x425ee2('0x2593')]=_0x34c78e,_0x526022[_0x425ee2('0xdb1')]=_0x4e3da0,_0x526022['getFaxAccounts']=_0x21c5ba,_0x526022[_0x425ee2('0x416')]=_0x2bf5db,_0x526022[_0x425ee2('0xd68')]=_0x28fb17,_0x526022[_0x425ee2('0x5d8')]=_0x8720a,_0x526022[_0x425ee2('0x1545')]=_0x3b4df6,_0x526022[_0x425ee2('0x1810')]=_0x1f452a,_0x526022[_0x425ee2('0x20fa')]=_0x4b32c8,_0x891681[_0x425ee2('0x21de')](_0x425ee2('0x1bd8'))?_0x2cb0e0[_0x425ee2('0x1280')][_0x425ee2('0x595')]({'fields':_0x425ee2('0x1aa8'),'sort':'name'})[_0x425ee2('0x1376')]['then'](function(_0x3ac4b7){var _0x1db291=_0x425ee2;_0x526022[_0x1db291('0x1593')]=_0x3ac4b7[_0x1db291('0x1b33')]||[];})[_0x425ee2('0x1c1d')](function(_0x40bfaa){var _0xec87a8=_0x425ee2;_0x5ab069['error']({'title':_0x40bfaa[_0xec87a8('0x209')]?'API:'+_0x40bfaa[_0xec87a8('0x209')]+_0xec87a8('0xa99')+_0x40bfaa['statusText']:_0xec87a8('0x9ee'),'msg':_0x40bfaa[_0xec87a8('0x11c2')]?JSON[_0xec87a8('0x25e')](_0x40bfaa[_0xec87a8('0x11c2')]):_0x40bfaa['toString']()});}):_0x2cb0e0[_0x425ee2('0x1280')][_0x425ee2('0x595')]({'fields':'id,name','sort':'name'})['$promise'][_0x425ee2('0x21ad')](function(_0x435228){var _0x5ed0d7=_0x425ee2;_0x526022[_0x5ed0d7('0x1593')]=_0x435228[_0x5ed0d7('0x1b33')]||[];})[_0x425ee2('0x21ad')](function(){var _0x25c4d2=_0x425ee2;return _0x2cb0e0['userProfileSection'][_0x25c4d2('0x595')]({'userProfileId':_0x526022[_0x25c4d2('0x123f')][_0x25c4d2('0x1618')],'sectionId':0x3f3})[_0x25c4d2('0x1376')];})[_0x425ee2('0x21ad')](function(_0x5d8752){var _0xa211a0=_0x425ee2,_0x2c6ece=_0x5d8752&&_0x5d8752['rows']?_0x5d8752[_0xa211a0('0x1b33')][0x0]:null;if(!_0x2c6ece){var _0x3afafd=[],_0x45ddcc=[];_0x526022[_0xa211a0('0x1695')][_0xa211a0('0x1b33')][_0xa211a0('0x1a52')](function(_0x4a2ec8){var _0x249010=_0xa211a0,_0xa61637=_0x86640f()['find'](_0x526022[_0x249010('0x1593')],{'id':Number(_0x4a2ec8[_0x249010('0x1026')])});_0x45ddcc['push'](_0xa61637);});for(var _0x25045d=0x0;_0x25045d<_0x526022[_0xa211a0('0x1593')][_0xa211a0('0x577')];_0x25045d++){var _0x12ebb3=_0x86640f()['some'](_0x45ddcc,{'id':_0x526022[_0xa211a0('0x1593')][_0x25045d]['id']});_0x12ebb3&&(_0x526022[_0xa211a0('0x1593')][_0x25045d]['canSelect']=![],_0x3afafd['push'](_0x526022[_0xa211a0('0x1593')][_0x25045d]));}_0x526022['trunks']=_0x3afafd;}else{if(!_0x2c6ece[_0xa211a0('0x80c')])return _0x2cb0e0[_0xa211a0('0x185e')][_0xa211a0('0x595')]({'sectionId':_0x2c6ece['id']})[_0xa211a0('0x1376')][_0xa211a0('0x21ad')](function(_0xc1217b){var _0x2d8b86=_0xa211a0,_0x5e453c=_0x86640f()[_0x2d8b86('0x26c3')](_0xc1217b[_0x2d8b86('0x1b33')],function(_0x4f3ce5){var _0x119db1=_0x2d8b86;return _0x86640f()[_0x119db1('0x1d2e')](_0x526022[_0x119db1('0x1593')],{'id':_0x4f3ce5['resourceId']});}),_0x29e54c=null;_0x29e54c=[],_0x526022[_0x2d8b86('0x1695')]['rows']['forEach'](function(_0x122b1e){var _0x1e3610=_0x2d8b86,_0x2f32e2=_0x86640f()[_0x1e3610('0x1d2e')](_0x526022[_0x1e3610('0x1593')],{'id':Number(_0x122b1e[_0x1e3610('0x1026')])});_0x29e54c[_0x1e3610('0x206c')](_0x2f32e2);}),!_0x86640f()['isEmpty'](_0x29e54c)&&_0x29e54c[_0x2d8b86('0x1a52')](function(_0x530daf){var _0x54529b=_0x2d8b86;if(!_0x86640f()[_0x54529b('0x2664')](_0x5e453c,['id',_0x530daf['id']])){var _0x50971c=_0x86640f()[_0x54529b('0x1d2e')](_0x526022[_0x54529b('0x1593')],{'id':_0x530daf['id']});_0x50971c[_0x54529b('0xba')]=![],_0x5e453c[_0x54529b('0x206c')](_0x50971c);}}),_0x526022[_0x2d8b86('0x1593')]=_0x5e453c;});}})[_0x425ee2('0x1c1d')](function(_0x1e2b72){var _0x1d6001=_0x425ee2;_0x5ab069['error']({'title':_0x1e2b72[_0x1d6001('0x209')]?_0x1d6001('0x22d')+_0x1e2b72[_0x1d6001('0x209')]+_0x1d6001('0xa99')+_0x1e2b72[_0x1d6001('0x1808')]:_0x1d6001('0x3ab'),'msg':_0x1e2b72['data']?JSON[_0x1d6001('0x25e')](_0x1e2b72[_0x1d6001('0x11c2')]):_0x1e2b72[_0x1d6001('0x174f')]()});}),_0x891681['hasRole']('admin')?_0x2cb0e0[_0x425ee2('0x11e0')][_0x425ee2('0x595')]({'fields':_0x425ee2('0x1aa8'),'sort':_0x425ee2('0x19fe')})[_0x425ee2('0x1376')]['then'](function(_0xa86080){var _0x24b1aa=_0x425ee2;_0x526022[_0x24b1aa('0x1972')]=_0xa86080[_0x24b1aa('0x1b33')]||[];})[_0x425ee2('0x1c1d')](function(_0x5aea17){var _0x5677ec=_0x425ee2;_0x5ab069[_0x5677ec('0x2092')]({'title':_0x5aea17[_0x5677ec('0x209')]?_0x5677ec('0x22d')+_0x5aea17[_0x5677ec('0x209')]+_0x5677ec('0xa99')+_0x5aea17[_0x5677ec('0x1808')]:'SYSTEM:GET_LISTS','msg':_0x5aea17[_0x5677ec('0x11c2')]?JSON['stringify'](_0x5aea17[_0x5677ec('0x11c2')]):_0x5aea17[_0x5677ec('0x174f')]()});}):_0x2cb0e0['cmList'][_0x425ee2('0x595')]({'fields':'id,name','sort':'name'})[_0x425ee2('0x1376')]['then'](function(_0x49c42c){var _0x310936=_0x425ee2;_0x526022[_0x310936('0x1972')]=_0x49c42c[_0x310936('0x1b33')]||[];})[_0x425ee2('0x21ad')](function(){var _0x3af3c4=_0x425ee2;return _0x2cb0e0[_0x3af3c4('0xab4')]['get']({'userProfileId':_0x526022[_0x3af3c4('0x123f')][_0x3af3c4('0x1618')],'sectionId':0x12d})[_0x3af3c4('0x1376')];})[_0x425ee2('0x21ad')](function(_0x54148f){var _0x4d9bf7=_0x425ee2,_0x5e1edf=_0x54148f&&_0x54148f[_0x4d9bf7('0x1b33')]?_0x54148f['rows'][0x0]:null;if(!_0x5e1edf){var _0xda0d93=[],_0x533e24=null;_0x526022[_0x4d9bf7('0xeb2')]&&(_0x533e24=_0x86640f()[_0x4d9bf7('0x1d2e')](_0x526022[_0x4d9bf7('0x1972')],{'id':Number(_0x526022['faxAccount'][_0x4d9bf7('0x815')])}));for(var _0x3dc4b8=0x0;_0x3dc4b8<_0x526022[_0x4d9bf7('0x1972')][_0x4d9bf7('0x577')];_0x3dc4b8++){_0x533e24&&_0x526022['lists'][_0x3dc4b8]['id']===_0x533e24['id']&&(_0x526022['lists'][_0x3dc4b8][_0x4d9bf7('0xba')]=![],_0xda0d93[_0x4d9bf7('0x206c')](_0x526022[_0x4d9bf7('0x1972')][_0x3dc4b8]));}_0x526022[_0x4d9bf7('0x1972')]=_0xda0d93;}else{if(!_0x5e1edf[_0x4d9bf7('0x80c')])return _0x2cb0e0[_0x4d9bf7('0x185e')][_0x4d9bf7('0x595')]({'sectionId':_0x5e1edf['id']})[_0x4d9bf7('0x1376')][_0x4d9bf7('0x21ad')](function(_0x4b72d0){var _0x4715f4=_0x4d9bf7,_0x4debf8=_0x86640f()[_0x4715f4('0x26c3')](_0x4b72d0[_0x4715f4('0x1b33')],function(_0x334ca0){var _0x5016ae=_0x4715f4;return _0x86640f()[_0x5016ae('0x1d2e')](_0x526022[_0x5016ae('0x1972')],{'id':_0x334ca0[_0x5016ae('0x675')]});}),_0x1ec1d3=null;_0x526022[_0x4715f4('0xeb2')]&&(_0x1ec1d3=_0x86640f()[_0x4715f4('0x1d2e')](_0x526022['lists'],{'id':Number(_0x526022['faxAccount'][_0x4715f4('0x815')])}));if(_0x1ec1d3&&!_0x86640f()[_0x4715f4('0x2664')](_0x4debf8,['id',_0x1ec1d3['id']])){var _0x1a8b17=_0x86640f()[_0x4715f4('0x1d2e')](_0x526022[_0x4715f4('0x1972')],{'id':_0x1ec1d3['id']});_0x1a8b17['canSelect']=![],_0x4debf8['push'](_0x1a8b17);}_0x526022[_0x4715f4('0x1972')]=_0x4debf8;});}})[_0x425ee2('0x1c1d')](function(_0x305745){var _0x5013dc=_0x425ee2;_0x5ab069['error']({'title':_0x305745[_0x5013dc('0x209')]?_0x5013dc('0x22d')+_0x305745[_0x5013dc('0x209')]+_0x5013dc('0xa99')+_0x305745[_0x5013dc('0x1808')]:_0x5013dc('0xa92'),'msg':_0x305745[_0x5013dc('0x11c2')]?JSON['stringify'](_0x305745[_0x5013dc('0x11c2')]):_0x305745[_0x5013dc('0x174f')]()});});function _0x476590(_0x2c502a){var _0x4d29af=_0x425ee2;_0x360a12['go'](_0x4d29af('0x140a'),{'id':_0x2c502a['id'],'faxAccount':_0x2c502a,'crudPermissions':_0x526022[_0x4d29af('0x5ed')]});}function _0x229dda(_0x5d9bd3){var _0x334049=_0x425ee2;_0x360a12['go'](_0x334049('0x140a'),{'id':_0x5d9bd3['id'],'tab':0x5});}function _0x2e17f3(){var _0x38f129=_0x425ee2;if(_0x891681[_0x38f129('0x21de')](_0x38f129('0x1bd8')))_0x360a12['go'](_0x38f129('0x232e'),{});else return _0x2cb0e0[_0x38f129('0xab4')][_0x38f129('0x595')]({'userProfileId':_0x891681[_0x38f129('0x15ed')]()[_0x38f129('0x1618')],'sectionId':0x38e})['$promise'][_0x38f129('0x21ad')](function(_0x573723){var _0x5e15b6=_0x38f129,_0x2f96dd=_0x573723&&_0x573723[_0x5e15b6('0x1b33')]?_0x573723[_0x5e15b6('0x1b33')][0x0]:null;_0x2f96dd&&_0x2f96dd['enabled']?_0x360a12['go']('app.fax.realtime.accounts',{}):_0x5ab069[_0x5e15b6('0x231c')]({'title':_0x4eedae['instant'](_0x5e15b6('0x1adb')),'msg':_0x4eedae[_0x5e15b6('0x183e')](_0x5e15b6('0x764'))});})['catch'](function(_0x4c5fe7){var _0x2c0f9f=_0x38f129;_0x5ab069[_0x2c0f9f('0x2092')]({'title':_0x4c5fe7['status']?_0x2c0f9f('0x22d')+_0x4c5fe7[_0x2c0f9f('0x209')]+'\x20-\x20'+_0x4c5fe7[_0x2c0f9f('0x1808')]:_0x2c0f9f('0xb8'),'msg':_0x4c5fe7[_0x2c0f9f('0x209')]?JSON[_0x2c0f9f('0x25e')](_0x4c5fe7['data']):_0x4c5fe7[_0x2c0f9f('0x174f')]()});});}function _0x448bf4(_0x4f4908,_0x2a0a32){var _0x6cd600=_0x425ee2;_0x5c952d['show']({'controller':'FaxAccountagentaddController','controllerAs':'vm','templateUrl':_0x18fe07,'parent':angular[_0x6cd600('0x1676')](_0x47a172[_0x6cd600('0x2452')]),'targetEvent':_0x2a0a32,'clickOutsideToClose':!![],'locals':{'faxAccount':_0x4f4908,'faxAccounts':_0x526022['faxAccounts']?_0x526022[_0x6cd600('0x1695')][_0x6cd600('0x1b33')]:[],'crudPermissions':_0x526022[_0x6cd600('0x5ed')],'realtime':![]}});}function _0x34c78e(_0x32ac9c,_0x3eaa8d){var _0x55c680=_0x425ee2,_0x2ef4f9=_0x5c952d[_0x55c680('0xa33')]()[_0x55c680('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x86640f()[_0x55c680('0x2159')](_0x55c680('0xeb2'))+'?')[_0x55c680('0x276b')](_0x55c680('0x622')+(_0x32ac9c[_0x55c680('0x19fe')]||_0x55c680('0xeb2'))+_0x55c680('0x2135')+_0x55c680('0x25e0'))[_0x55c680('0x7a7')](_0x55c680('0x54f'))[_0x55c680('0x1e6d')](_0x3eaa8d)['ok']('OK')[_0x55c680('0x3b5')]('CANCEL');_0x5c952d[_0x55c680('0x853')](_0x2ef4f9)[_0x55c680('0x21ad')](function(){_0x28fb17(_0x32ac9c);},function(){var _0x6d0afc=_0x55c680;console[_0x6d0afc('0x6fb')](_0x6d0afc('0x284b'));});}var _0x399d2d=!![],_0x43e237=0x1;_0x3514cb[_0x425ee2('0x10e8')](_0x425ee2('0x1948'),function(_0x8bc776,_0x36eb9f){var _0x36bf1a=_0x425ee2;_0x399d2d?_0x547837(function(){_0x399d2d=![];}):(!_0x36eb9f&&(_0x43e237=_0x526022[_0x36bf1a('0x77')][_0x36bf1a('0x2376')]),_0x8bc776!==_0x36eb9f&&(_0x526022[_0x36bf1a('0x77')][_0x36bf1a('0x2376')]=0x1),!_0x8bc776&&(_0x526022[_0x36bf1a('0x77')][_0x36bf1a('0x2376')]=_0x43e237),_0x526022['getFaxAccounts']());});function _0x4e3da0(_0x747184){var _0x4f5ad9=_0x425ee2;_0x526022[_0x4f5ad9('0x1695')]=_0x747184||{'count':0x0,'rows':[]};}function _0x21c5ba(){var _0x556c83=_0x425ee2;_0x526022[_0x556c83('0x77')][_0x556c83('0x15a5')]=(_0x526022[_0x556c83('0x77')][_0x556c83('0x2376')]-0x1)*_0x526022[_0x556c83('0x77')][_0x556c83('0x1f4a')],_0x891681[_0x556c83('0x21de')]('admin')?_0x526022[_0x556c83('0x71b')]=_0x2cb0e0['faxAccount'][_0x556c83('0x595')](_0x526022[_0x556c83('0x77')],_0x4e3da0)[_0x556c83('0x1376')]:(_0x526022[_0x556c83('0x77')]['id']=_0x526022[_0x556c83('0x758')]['id'],_0x526022[_0x556c83('0x77')]['section']=_0x556c83('0xbe8'),_0x526022['promise']=_0x2cb0e0[_0x556c83('0x758')][_0x556c83('0x321')](_0x526022[_0x556c83('0x77')],_0x4e3da0)['$promise']);}function _0x2bf5db(_0x2ddd1b,_0x4d8ada){var _0xb58cee=_0x425ee2;_0x5c952d[_0xb58cee('0x853')]({'controller':_0xb58cee('0x213d'),'controllerAs':'vm','templateUrl':_0x39cf28,'parent':angular[_0xb58cee('0x1676')](_0x47a172[_0xb58cee('0x2452')]),'targetEvent':_0x2ddd1b,'clickOutsideToClose':!![],'locals':{'faxAccount':_0x4d8ada,'faxAccounts':_0x526022[_0xb58cee('0x1695')][_0xb58cee('0x1b33')],'license':_0x526022[_0xb58cee('0x2ff')],'setting':_0x526022[_0xb58cee('0x21e')],'crudPermissions':_0x526022[_0xb58cee('0x5ed')]}});}function _0x28fb17(_0x29690b){var _0xc5c499=_0x425ee2;_0x2cb0e0[_0xc5c499('0xeb2')]['delete']({'id':_0x29690b['id']})['$promise'][_0xc5c499('0x21ad')](function(){var _0x45aa4a=_0xc5c499;_0x86640f()[_0x45aa4a('0x16a2')](_0x526022[_0x45aa4a('0x1695')][_0x45aa4a('0x1b33')],{'id':_0x29690b['id']}),_0x526022['faxAccounts']['count']-=0x1,!_0x526022[_0x45aa4a('0x1695')]['rows'][_0x45aa4a('0x577')]&&_0x526022[_0x45aa4a('0x1718')](),_0x5ab069[_0x45aa4a('0xdb1')]({'title':_0x86640f()[_0x45aa4a('0x2159')](_0x45aa4a('0x100c'))+'\x20deleted!','msg':_0x29690b['name']?_0x29690b[_0x45aa4a('0x19fe')]+_0x45aa4a('0xb4a'):''});})[_0xc5c499('0x1c1d')](function(_0x588569){var _0x22be45=_0xc5c499;if(_0x588569[_0x22be45('0x11c2')]&&_0x588569[_0x22be45('0x11c2')][_0x22be45('0x1a69')]&&_0x588569['data'][_0x22be45('0x1a69')][_0x22be45('0x577')]){_0x526022[_0x22be45('0x1a69')]=_0x588569[_0x22be45('0x11c2')][_0x22be45('0x1a69')]||[{'message':_0x588569[_0x22be45('0x174f')](),'type':_0x22be45('0x1ad3')}];for(var _0x790de1=0x0;_0x790de1<_0x588569[_0x22be45('0x11c2')][_0x22be45('0x1a69')][_0x22be45('0x577')];_0x790de1++){_0x5ab069[_0x22be45('0x2092')]({'title':_0x588569[_0x22be45('0x11c2')][_0x22be45('0x1a69')][_0x790de1][_0x22be45('0x7fa')],'msg':_0x588569[_0x22be45('0x11c2')][_0x22be45('0x1a69')][_0x790de1]['message']});}}else _0x5ab069[_0x22be45('0x2092')]({'title':_0x588569[_0x22be45('0x209')]?_0x22be45('0x22d')+_0x588569['status']+'\x20-\x20'+_0x588569[_0x22be45('0x1808')]:_0x22be45('0x1ad3'),'msg':_0x588569['data']?JSON[_0x22be45('0x25e')](_0x588569[_0x22be45('0x11c2')]['message']):_0x588569[_0x22be45('0x1224')]||_0x588569[_0x22be45('0x174f')]()});});}function _0x8720a(){var _0x4b27e3=_0x425ee2,_0x3406c9=angular['copy'](_0x526022['selectedFaxAccounts']);return _0x526022[_0x4b27e3('0xae9')]=[],_0x3406c9;}function _0x3b4df6(_0x53b540){var _0x48040b=_0x425ee2,_0x23e449=_0x5c952d[_0x48040b('0xa33')]()[_0x48040b('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20faxAccounts?')[_0x48040b('0x276b')](''+_0x526022[_0x48040b('0xae9')]['length']+'\x20selected'+_0x48040b('0x25e0'))[_0x48040b('0x7a7')](_0x48040b('0xc9a'))['targetEvent'](_0x53b540)['ok']('OK')[_0x48040b('0x3b5')](_0x48040b('0x284b'));_0x5c952d['show'](_0x23e449)[_0x48040b('0x21ad')](function(){var _0x4bbec5=_0x48040b;_0x526022[_0x4bbec5('0xae9')][_0x4bbec5('0x1a52')](function(_0x5eabdb){_0x28fb17(_0x5eabdb);}),_0x526022['selectedFaxAccounts']=[];});}function _0x1f452a(){_0x526022['selectedFaxAccounts']=[];}function _0x4b32c8(){var _0x798f3e=_0x425ee2;_0x526022['selectedFaxAccounts']=_0x526022[_0x798f3e('0x1695')][_0x798f3e('0x1b33')];}}const _0x425736=_0x5950fd;_0x2c1777['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q','$translate','toasty','faxQueues',_0x3877e3('0x1cb7'),_0x3877e3('0xccd'),'Auth',_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x2c1777(_0x2d7dbf,_0x388437,_0x539676,_0x11de88,_0x166b37,_0x1d7e4b,_0x29d8bc,_0x548ef3,_0x3a7e7a,_0x507b5d,_0x5439e5,_0x3a0d07,_0xf3ee80,_0x9ae228){var _0x24b1ab=_0x3877e3,_0x24201b=this;_0x24201b[_0x24b1ab('0x123f')]=_0x5439e5[_0x24b1ab('0x15ed')](),_0x24201b[_0x24b1ab('0x1a69')]=[],_0x24201b[_0x24b1ab('0x21e')]=_0xf3ee80,_0x24201b[_0x24b1ab('0x2ff')]=_0x3a0d07,_0x24201b[_0x24b1ab('0x5ed')]=_0x9ae228,_0x24201b[_0x24b1ab('0x126a')]={},_0x24201b[_0x24b1ab('0x1432')]=_0x24201b[_0x24b1ab('0x21e')]&&_0x24201b[_0x24b1ab('0x21e')][_0x24b1ab('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x24201b[_0x24b1ab('0x4b4')]=_0x24b1ab('0x331'),_0x24201b[_0x24b1ab('0x1cb7')]=angular[_0x24b1ab('0xd75')](_0x3a7e7a),_0x24201b[_0x24b1ab('0x2346')]=_0x548ef3,_0x24201b[_0x24b1ab('0xabe')]=![];!_0x24201b[_0x24b1ab('0x1cb7')]&&(_0x24201b['faxQueue']={'strategy':'beepall','timeout':0xa},_0x24201b[_0x24b1ab('0x4b4')]=_0x24b1ab('0x437'),_0x24201b[_0x24b1ab('0xabe')]=!![]);_0x24201b[_0x24b1ab('0x44c')]=_0x13446b,_0x24201b[_0x24b1ab('0xda1')]=_0xe6c6d,_0x24201b[_0x24b1ab('0x88c')]=_0x1e30bd,_0x24201b[_0x24b1ab('0x279')]=_0x59ff00,_0x24201b['closeDialog']=_0x4dc1ee;function _0x13446b(){var _0x489d69=_0x24b1ab;_0x24201b[_0x489d69('0x1a69')]=[],_0x507b5d['faxQueue']['save'](_0x24201b[_0x489d69('0x1cb7')])[_0x489d69('0x1376')][_0x489d69('0x21ad')](function(_0x5d47f3){var _0x45a181=_0x489d69;_0x24201b[_0x45a181('0x2346')][_0x45a181('0xd0c')](_0x5d47f3['toJSON']()),_0x29d8bc[_0x45a181('0xdb1')]({'title':_0x45a181('0xc54'),'msg':_0x24201b[_0x45a181('0x1cb7')][_0x45a181('0x19fe')]?_0x24201b['faxQueue']['name']+_0x45a181('0x1694'):''}),_0x4dc1ee(_0x5d47f3);})['catch'](function(_0x1d587a){var _0x485d03=_0x489d69;if(_0x1d587a['data']&&_0x1d587a[_0x485d03('0x11c2')][_0x485d03('0x1a69')]&&_0x1d587a['data'][_0x485d03('0x1a69')][_0x485d03('0x577')]){_0x24201b[_0x485d03('0x1a69')]=_0x1d587a[_0x485d03('0x11c2')]['errors']||[{'message':_0x1d587a['toString'](),'type':_0x485d03('0x1cd0')}];for(var _0x44242e=0x0;_0x44242e<_0x1d587a[_0x485d03('0x11c2')][_0x485d03('0x1a69')][_0x485d03('0x577')];_0x44242e+=0x1){_0x29d8bc['error']({'title':_0x1d587a['data'][_0x485d03('0x1a69')][_0x44242e]['type'],'msg':_0x1d587a[_0x485d03('0x11c2')][_0x485d03('0x1a69')][_0x44242e][_0x485d03('0x1224')]});}}else _0x29d8bc[_0x485d03('0x2092')]({'title':_0x1d587a[_0x485d03('0x209')]?_0x485d03('0x22d')+_0x1d587a[_0x485d03('0x209')]+_0x485d03('0xa99')+_0x1d587a[_0x485d03('0x1808')]:_0x485d03('0x1cd0'),'msg':_0x1d587a['data']?JSON['stringify'](_0x1d587a['data'][_0x485d03('0x1224')]):_0x1d587a[_0x485d03('0x174f')]()});});}function _0xe6c6d(){var _0x1898e7=_0x24b1ab;_0x24201b[_0x1898e7('0x1a69')]=[],_0x507b5d[_0x1898e7('0x1cb7')]['update']({'id':_0x24201b[_0x1898e7('0x1cb7')]['id']},_0x24201b[_0x1898e7('0x1cb7')])[_0x1898e7('0x1376')][_0x1898e7('0x21ad')](function(_0x2fea41){var _0x4fd3c2=_0x1898e7,_0x97eda0=_0x86640f()['find'](_0x24201b[_0x4fd3c2('0x2346')],{'id':_0x2fea41['id']});_0x97eda0&&_0x86640f()[_0x4fd3c2('0xd0e')](_0x97eda0,_0x86640f()['pick'](_0x2fea41[_0x4fd3c2('0x3bc')](),_0x86640f()[_0x4fd3c2('0x223b')](_0x97eda0))),_0x29d8bc['success']({'title':_0x4fd3c2('0x1c38'),'msg':_0x24201b[_0x4fd3c2('0x1cb7')][_0x4fd3c2('0x19fe')]?_0x24201b['faxQueue'][_0x4fd3c2('0x19fe')]+_0x4fd3c2('0x2249'):''}),_0x4dc1ee(_0x2fea41);})[_0x1898e7('0x1c1d')](function(_0x41456b){var _0x21b16e=_0x1898e7;if(_0x41456b[_0x21b16e('0x11c2')]&&_0x41456b[_0x21b16e('0x11c2')][_0x21b16e('0x1a69')]&&_0x41456b[_0x21b16e('0x11c2')][_0x21b16e('0x1a69')][_0x21b16e('0x577')]){_0x24201b[_0x21b16e('0x1a69')]=_0x41456b[_0x21b16e('0x11c2')][_0x21b16e('0x1a69')]||[{'message':_0x41456b[_0x21b16e('0x174f')](),'type':_0x21b16e('0x2fe')}];for(var _0x4a2d57=0x0;_0x4a2d57<_0x41456b[_0x21b16e('0x11c2')][_0x21b16e('0x1a69')][_0x21b16e('0x577')];_0x4a2d57++){_0x29d8bc[_0x21b16e('0x2092')]({'title':_0x41456b['data'][_0x21b16e('0x1a69')][_0x4a2d57]['type'],'msg':_0x41456b[_0x21b16e('0x11c2')][_0x21b16e('0x1a69')][_0x4a2d57]['message']});}}else _0x29d8bc['error']({'title':_0x41456b[_0x21b16e('0x209')]?'API:'+_0x41456b[_0x21b16e('0x209')]+_0x21b16e('0xa99')+_0x41456b[_0x21b16e('0x1808')]:_0x21b16e('0x2fe'),'msg':_0x41456b[_0x21b16e('0x11c2')]?JSON[_0x21b16e('0x25e')](_0x41456b[_0x21b16e('0x11c2')][_0x21b16e('0x1224')]):_0x41456b[_0x21b16e('0x174f')]()});});}function _0x1e30bd(_0x49b54c){var _0x164187=_0x24b1ab;_0x24201b[_0x164187('0x1a69')]=[];var _0x5077c9=_0x11de88[_0x164187('0xa33')]()[_0x164187('0x4b4')]('Are\x20you\x20sure?')[_0x164187('0x13fb')](_0x164187('0x5ee'))['ariaLabel'](_0x164187('0x266c'))['ok'](_0x164187('0xbfd'))[_0x164187('0x3b5')](_0x164187('0x1f40'))[_0x164187('0x1e6d')](_0x49b54c);_0x11de88['show'](_0x5077c9)[_0x164187('0x21ad')](function(){var _0x589d4a=_0x164187;_0x507b5d[_0x589d4a('0x1cb7')][_0x589d4a('0x1164')]({'id':_0x24201b[_0x589d4a('0x1cb7')]['id']})['$promise'][_0x589d4a('0x21ad')](function(){var _0x3e97b6=_0x589d4a;_0x86640f()[_0x3e97b6('0x16a2')](_0x24201b['faxQueues'],{'id':_0x24201b[_0x3e97b6('0x1cb7')]['id']}),_0x29d8bc[_0x3e97b6('0xdb1')]({'title':_0x3e97b6('0x1ed7'),'msg':(_0x24201b[_0x3e97b6('0x1cb7')][_0x3e97b6('0x19fe')]||_0x3e97b6('0x1cb7'))+_0x3e97b6('0xb4a')}),_0x4dc1ee(_0x24201b[_0x3e97b6('0x1cb7')]);})['catch'](function(_0x42242d){var _0xadde3b=_0x589d4a;if(_0x42242d['data']&&_0x42242d[_0xadde3b('0x11c2')]['errors']&&_0x42242d[_0xadde3b('0x11c2')][_0xadde3b('0x1a69')]['length']){_0x24201b[_0xadde3b('0x1a69')]=_0x42242d[_0xadde3b('0x11c2')][_0xadde3b('0x1a69')]||[{'message':_0x42242d[_0xadde3b('0x174f')](),'type':_0xadde3b('0x9ab')}];for(var _0xc3569=0x0;_0xc3569<_0x42242d[_0xadde3b('0x11c2')]['errors'][_0xadde3b('0x577')];_0xc3569++){_0x29d8bc[_0xadde3b('0x2092')]({'title':_0x42242d[_0xadde3b('0x11c2')][_0xadde3b('0x1a69')][_0xc3569][_0xadde3b('0x7fa')],'msg':_0x42242d[_0xadde3b('0x11c2')]['errors'][_0xc3569][_0xadde3b('0x1224')]});}}else _0x29d8bc['error']({'title':_0x42242d[_0xadde3b('0x209')]?_0xadde3b('0x22d')+_0x42242d[_0xadde3b('0x209')]+_0xadde3b('0xa99')+_0x42242d['statusText']:_0xadde3b('0x9ab'),'msg':_0x42242d[_0xadde3b('0x11c2')]?JSON[_0xadde3b('0x25e')](_0x42242d[_0xadde3b('0x11c2')][_0xadde3b('0x1224')]):_0x42242d[_0xadde3b('0x1224')]||_0x42242d[_0xadde3b('0x174f')]()});});},function(){});}function _0x59ff00(_0x2df3f7){return _0x2df3f7===null?undefined:new Date(_0x2df3f7);}function _0x4dc1ee(_0x5ecaa4){var _0x360ae5=_0x24b1ab;_0x11de88[_0x360ae5('0x1c24')](_0x5ecaa4);}}const _0x17ccbb=_0x2c1777;_0x4ad2d2[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),'api',_0x3877e3('0x1cb7'),'faxQueues',_0x3877e3('0x116a'),_0x3877e3('0x13c1'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x4ad2d2(_0x8a208d,_0x2990b8,_0x45c711,_0x290de5,_0x1ecf6c,_0x4238d8,_0x120770,_0x4e7375,_0x32f04d,_0x17f212){var _0x5e8e46=_0x3877e3,_0x19f598=this;_0x19f598['currentUser']=_0x32f04d[_0x5e8e46('0x15ed')](),_0x19f598[_0x5e8e46('0x1cb7')]=_0x1ecf6c,_0x19f598[_0x5e8e46('0x5ed')]=_0x17f212,_0x19f598[_0x5e8e46('0x116a')]=_0x120770,_0x19f598['items']=[],_0x19f598[_0x5e8e46('0x1e09')]=[],_0x19f598[_0x5e8e46('0x2629')]=[],_0x19f598[_0x5e8e46('0x91b')]=[],_0x19f598[_0x5e8e46('0x2584')]=[],_0x19f598['pendingChanges']=![],_0x19f598[_0x5e8e46('0x1081')]=_0x274455,_0x19f598['saveAgents']=_0x159233,_0x19f598[_0x5e8e46('0x167')]=_0x38ccf1,_0x19f598[_0x5e8e46('0x909')]={'readOnly':!_0x19f598[_0x5e8e46('0x5ed')]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x5e8e46('0x20f5'),'line2':['name','internal'],'line3':'','labelAll':_0x4e7375[_0x5e8e46('0x183e')]('FAX.ALL_AGENTS'),'labelSelected':_0x4e7375['instant'](_0x5e8e46('0x1e94')),'transferCallback':function _0x39c6cc(){var _0x344c7c=_0x5e8e46,_0xcc655b=_0x86640f()[_0x344c7c('0x1473')](_0x19f598[_0x344c7c('0x2584')],_0x19f598['selectedItems'],'id');_0x19f598[_0x344c7c('0x1bb9')]=_0x86640f()['isEmpty'](_0xcc655b)?![]:!![];}};function _0x274455(){var _0x5e0e8f=_0x5e8e46;return _0x32f04d[_0x5e0e8f('0x21de')](_0x5e0e8f('0x1bd8'))?_0x3a7e38()[_0x5e0e8f('0x1c1d')](function(_0x545940){var _0x49b3e9=_0x5e0e8f;_0x45c711['error']({'title':_0x545940['status']?_0x49b3e9('0x22d')+_0x545940['status']+'\x20-\x20'+_0x545940[_0x49b3e9('0x1808')]:'SYSTEM:GET_AGENTS','msg':_0x545940[_0x49b3e9('0x209')]?JSON['stringify'](_0x545940['data']):_0x545940[_0x49b3e9('0x174f')]()});}):_0x343514()['then'](function(_0x12e4de){var _0x2d019b=_0x5e0e8f;return _0x19f598[_0x2d019b('0x26ad')]=_0x12e4de,_0x3a7e38();})['catch'](function(_0x2d5a5d){var _0x5e026f=_0x5e0e8f;_0x45c711[_0x5e026f('0x2092')]({'title':_0x2d5a5d['status']?_0x5e026f('0x22d')+_0x2d5a5d[_0x5e026f('0x209')]+_0x5e026f('0xa99')+_0x2d5a5d['statusText']:_0x5e026f('0x1381'),'msg':_0x2d5a5d[_0x5e026f('0x209')]?JSON[_0x5e026f('0x25e')](_0x2d5a5d[_0x5e026f('0x11c2')]):_0x2d5a5d['toString']()});});}function _0x343514(){return _0x2990b8(function(_0x1ae260,_0x387c12){var _0x176096=a0_0x2e7f;_0x290de5[_0x176096('0xab4')][_0x176096('0x595')]({'userProfileId':_0x19f598[_0x176096('0x123f')]['userProfileId'],'name':_0x176096('0xfed')})[_0x176096('0x1376')][_0x176096('0x21ad')](function(_0x405d1a){var _0x3f6cbc=_0x176096,_0x224547=_0x405d1a&&_0x405d1a[_0x3f6cbc('0x1b33')]?_0x405d1a['rows'][0x0]:null;_0x1ae260(_0x224547);})['catch'](function(_0x8da7dc){_0x387c12(_0x8da7dc);});});}function _0x3a7e38(){return _0x2990b8(function(_0xb81a24,_0x1425ea){var _0x5f06e0=a0_0x2e7f;return _0x470f3d()[_0x5f06e0('0x21ad')](function(_0x7e57f2){var _0x35f8a8=_0x5f06e0;return _0x19f598['items']=_0x7e57f2[_0x35f8a8('0x1b33')]?_0x7e57f2[_0x35f8a8('0x1b33')]:[],_0x32f04d[_0x35f8a8('0x21de')]('admin')?_0x7e57f2:_0x19f598[_0x35f8a8('0x26ad')]?_0x19f598[_0x35f8a8('0x26ad')]['autoAssociation']?_0x7e57f2:_0x3d1073():null;})[_0x5f06e0('0x21ad')](function(_0x1b9728){var _0x428c07=_0x5f06e0,_0x5d45fd=_0x1b9728&&_0x1b9728[_0x428c07('0x1b33')]?_0x1b9728[_0x428c07('0x1b33')]:[];return _0x19f598[_0x428c07('0x1e09')]=_0x86640f()[_0x428c07('0x26c3')](_0x5d45fd,function(_0xa75bba){var _0x123d29=_0x428c07;return _0x86640f()['find'](_0x19f598['items'],{'id':_0x32f04d[_0x123d29('0x21de')](_0x123d29('0x1bd8'))||_0x19f598[_0x123d29('0x26ad')]['autoAssociation']?_0xa75bba['id']:_0xa75bba['resourceId']});}),_0x19f598[_0x428c07('0x91b')]=angular['copy'](_0x19f598[_0x428c07('0x1e09')]),_0x19f598[_0x428c07('0x1b9a')][_0x428c07('0x1a52')](function(_0x491668){var _0x35c65f=_0x428c07,_0x45d0e1=_0x86640f()[_0x35c65f('0x1d2e')](_0x19f598[_0x35c65f('0x1e09')],{'id':_0x491668['id']});_0x32f04d[_0x35c65f('0x21de')](_0x35c65f('0x1bd8'))?_0x491668[_0x35c65f('0x118b')]=!![]:_0x491668[_0x35c65f('0x118b')]=typeof _0x45d0e1!==_0x35c65f('0xddc')?!![]:![];}),_0x16be1d();})[_0x5f06e0('0x21ad')](function(_0x11dcbe){var _0x3dfcc9=_0x5f06e0,_0x55a377=_0x11dcbe&&_0x11dcbe[_0x3dfcc9('0x1b33')]?_0x11dcbe[_0x3dfcc9('0x1b33')]:[];_0x19f598[_0x3dfcc9('0x2629')]=_0x86640f()[_0x3dfcc9('0x26c3')](_0x55a377,function(_0x4baeb6){var _0x493cec=_0x3dfcc9,_0x113671=_0x86640f()['find'](_0x19f598[_0x493cec('0x1b9a')],{'id':_0x4baeb6['id']});return _0x113671[_0x493cec('0x1195')]=_0x4baeb6[_0x493cec('0x2441')]?_0x493cec('0x5c2')+_0x4baeb6[_0x493cec('0x2441')][_0x493cec('0x1195')]:'',_0x113671[_0x493cec('0x201f')]=typeof _0x4baeb6[_0x493cec('0x201f')]!==_0x493cec('0xddc')?'<'+_0x4baeb6[_0x493cec('0x201f')]+'>':'',_0x113671;}),_0x19f598[_0x3dfcc9('0x2584')]=angular['copy'](_0x19f598[_0x3dfcc9('0x2629')]),_0x19f598[_0x3dfcc9('0x909')][_0x3dfcc9('0x2629')]=_0x19f598[_0x3dfcc9('0x2629')],_0x19f598[_0x3dfcc9('0x909')][_0x3dfcc9('0x1b9a')]=_0x86640f()[_0x3dfcc9('0x1eab')](_0x19f598['allowedItems'],_0x19f598['dualMultiselectOptions']['selectedItems'],'id'),_0xb81a24();})['catch'](function(_0x2aabcc){_0x1425ea(_0x2aabcc);});});}function _0x3d1073(){return _0x2990b8(function(_0x3886a7,_0x11f67c){var _0x1b594a=a0_0x2e7f;return _0x290de5[_0x1b594a('0x185e')][_0x1b594a('0x595')]({'sectionId':_0x19f598[_0x1b594a('0x26ad')]['id'],'nolimit':!![]})[_0x1b594a('0x1376')]['then'](function(_0x596ce7){_0x3886a7(_0x596ce7);})[_0x1b594a('0x1c1d')](function(_0x503068){_0x11f67c(_0x503068);});});}function _0x16be1d(){return _0x2990b8(function(_0x4d38ce,_0x22b033){var _0x4c1edd=a0_0x2e7f;return _0x290de5[_0x4c1edd('0x1cb7')]['getAgents']({'id':_0x19f598[_0x4c1edd('0x1cb7')]['id'],'fields':_0x4c1edd('0x1eea'),'nolimit':!![],'role':'agent'})[_0x4c1edd('0x1376')]['then'](function(_0x2c171a){_0x4d38ce(_0x2c171a);})[_0x4c1edd('0x1c1d')](function(_0x46d344){_0x22b033(_0x46d344);});});}function _0x470f3d(){return _0x2990b8(function(_0x4e8474,_0x424c5c){var _0x3cd767=a0_0x2e7f;return _0x290de5[_0x3cd767('0x1775')]['get']({'fields':_0x3cd767('0x1eea'),'nolimit':!![],'role':_0x3cd767('0x2402')})[_0x3cd767('0x1376')][_0x3cd767('0x21ad')](function(_0x495388){_0x4e8474(_0x495388);})['catch'](function(_0x37ec0c){_0x424c5c(_0x37ec0c);});});}function _0x5b7175(_0x142a5c){return _0x2990b8(function(_0x28aa2b,_0x21e23d){var _0x487c46=a0_0x2e7f;_0x86640f()[_0x487c46('0x23aa')](_0x142a5c)?_0x28aa2b():_0x290de5[_0x487c46('0x1cb7')][_0x487c46('0x1116')]({'id':_0x19f598[_0x487c46('0x1cb7')]['id'],'ids':_0x86640f()[_0x487c46('0x26c3')](_0x142a5c,'id')})['$promise']['then'](function(){_0x28aa2b();})[_0x487c46('0x1c1d')](function(_0x375af7){_0x21e23d(_0x375af7);});});}function _0x41dc38(_0x438b0e){return _0x2990b8(function(_0x61a355,_0x2a56bb){var _0x1f116d=a0_0x2e7f;_0x86640f()[_0x1f116d('0x23aa')](_0x438b0e)?_0x61a355():_0x290de5[_0x1f116d('0x1cb7')][_0x1f116d('0x59e')]({'id':_0x19f598[_0x1f116d('0x1cb7')]['id'],'ids':_0x86640f()[_0x1f116d('0x26c3')](_0x438b0e,'id')})['$promise']['then'](function(){_0x61a355();})['catch'](function(_0xd07af9){_0x2a56bb(_0xd07af9);});});}function _0x159233(){var _0xc04641=_0x5e8e46,_0x52a1e8=_0x86640f()[_0xc04641('0x1eab')](_0x19f598['startingSelectedItems'],_0x19f598['selectedItems'],'id'),_0x95273f=_0x86640f()[_0xc04641('0x1eab')](_0x19f598[_0xc04641('0x2629')],_0x19f598[_0xc04641('0x2584')],'id');return _0x41dc38(_0x52a1e8)[_0xc04641('0x21ad')](function(){return _0x5b7175(_0x95273f);})[_0xc04641('0x21ad')](function(){var _0x23fbe8=_0xc04641;_0x19f598[_0x23fbe8('0x1bb9')]=![],_0x19f598[_0x23fbe8('0x91b')]=angular[_0x23fbe8('0xd75')](_0x19f598[_0x23fbe8('0x1e09')]),_0x19f598['startingSelectedItems']=angular['copy'](_0x19f598[_0x23fbe8('0x2629')]),_0x45c711[_0x23fbe8('0xdb1')]({'title':_0x23fbe8('0x2804'),'msg':_0x23fbe8('0x2239')});})[_0xc04641('0x1c1d')](function(_0x1a7ebf){var _0x16fa38=_0xc04641;_0x45c711[_0x16fa38('0x2092')]({'title':_0x1a7ebf[_0x16fa38('0x209')]?_0x16fa38('0x22d')+_0x1a7ebf[_0x16fa38('0x209')]+_0x16fa38('0xa99')+_0x1a7ebf[_0x16fa38('0x1808')]:_0x16fa38('0x1dd7'),'msg':_0x1a7ebf[_0x16fa38('0x209')]?JSON[_0x16fa38('0x25e')](_0x1a7ebf[_0x16fa38('0x11c2')]):_0x1a7ebf[_0x16fa38('0x174f')]()});});}function _0x38ccf1(){var _0x219f67=_0x5e8e46;_0x8a208d[_0x219f67('0x1c24')]();}}const _0x2a6f38=_0x4ad2d2;_0x186bff[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),'api',_0x3877e3('0x1cb7'),_0x3877e3('0x13c1'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x186bff(_0xa3b3dd,_0x1bd8a1,_0x4d5934,_0x483141,_0x522089,_0x1f4409,_0xff1381,_0xf180f2){var _0x174015=_0x3877e3,_0x365e53=this;_0x365e53[_0x174015('0x123f')]=_0xff1381[_0x174015('0x15ed')](),_0x365e53[_0x174015('0x1cb7')]=_0x522089,_0x365e53[_0x174015('0x5ed')]=_0xf180f2,_0x365e53[_0x174015('0x1b9a')]=[],_0x365e53[_0x174015('0x1e09')]=[],_0x365e53[_0x174015('0x2629')]=[],_0x365e53[_0x174015('0x91b')]=[],_0x365e53[_0x174015('0x2584')]=[],_0x365e53[_0x174015('0x1bb9')]=![],_0x365e53['dualMultiselectOptions']={'readOnly':!_0x365e53[_0x174015('0x5ed')]['canEdit'],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x174015('0x19fe'),'line1':'name','line2':'','line3':'','labelAll':_0x1f4409[_0x174015('0x183e')]('FAX.ALL_TEAMS'),'labelSelected':_0x1f4409['instant'](_0x174015('0x2')),'transferCallback':function _0x5a7da0(){var _0x8dcfac=_0x174015,_0x34a600=_0x86640f()[_0x8dcfac('0x1473')](_0x365e53[_0x8dcfac('0x2584')],_0x365e53[_0x8dcfac('0x2629')],'id');_0x365e53[_0x8dcfac('0x1bb9')]=_0x86640f()[_0x8dcfac('0x23aa')](_0x34a600)?![]:!![];}},_0x365e53[_0x174015('0x1081')]=_0x4ea836,_0x365e53['saveTeams']=_0x925464,_0x365e53['closeDialog']=_0x5a6041;function _0x4ea836(){var _0x337f75=_0x174015;return _0xff1381['hasRole'](_0x337f75('0x1bd8'))?_0x21ad06()[_0x337f75('0x1c1d')](function(_0x47550a){var _0x2e1063=_0x337f75;_0x4d5934[_0x2e1063('0x2092')]({'title':_0x47550a['status']?_0x2e1063('0x22d')+_0x47550a[_0x2e1063('0x209')]+_0x2e1063('0xa99')+_0x47550a[_0x2e1063('0x1808')]:_0x2e1063('0x2479'),'msg':_0x47550a[_0x2e1063('0x209')]?JSON[_0x2e1063('0x25e')](_0x47550a[_0x2e1063('0x11c2')]):_0x47550a['toString']()});}):_0x393a3a()[_0x337f75('0x21ad')](function(_0x26f7ad){var _0x23cde7=_0x337f75;return _0x365e53[_0x23cde7('0x26ad')]=_0x26f7ad,_0x21ad06();})['catch'](function(_0x1a65ef){var _0x1e0e42=_0x337f75;_0x4d5934[_0x1e0e42('0x2092')]({'title':_0x1a65ef[_0x1e0e42('0x209')]?'API:'+_0x1a65ef[_0x1e0e42('0x209')]+'\x20-\x20'+_0x1a65ef[_0x1e0e42('0x1808')]:_0x1e0e42('0x2479'),'msg':_0x1a65ef[_0x1e0e42('0x209')]?JSON[_0x1e0e42('0x25e')](_0x1a65ef['data']):_0x1a65ef[_0x1e0e42('0x174f')]()});});}function _0x393a3a(){return _0x1bd8a1(function(_0x4da9c6,_0x6f98c4){var _0x502072=a0_0x2e7f;_0x483141[_0x502072('0xab4')][_0x502072('0x595')]({'userProfileId':_0x365e53['currentUser'][_0x502072('0x1618')],'name':'Teams'})[_0x502072('0x1376')][_0x502072('0x21ad')](function(_0x3bef43){var _0x3cd857=_0x502072,_0x4968fb=_0x3bef43&&_0x3bef43[_0x3cd857('0x1b33')]?_0x3bef43[_0x3cd857('0x1b33')][0x0]:null;_0x4da9c6(_0x4968fb);})[_0x502072('0x1c1d')](function(_0x2d4bbd){_0x6f98c4(_0x2d4bbd);});});}function _0x21ad06(){return _0x1bd8a1(function(_0x57d268,_0x1b6415){var _0x3927d8=a0_0x2e7f;return _0x678449()['then'](function(_0x1a0366){var _0x181a28=a0_0x2e7f;return _0x365e53[_0x181a28('0x1b9a')]=_0x1a0366[_0x181a28('0x1b33')]?_0x1a0366[_0x181a28('0x1b33')]:[],_0xff1381[_0x181a28('0x21de')]('admin')?_0x1a0366:_0x365e53[_0x181a28('0x26ad')]?_0x365e53[_0x181a28('0x26ad')][_0x181a28('0x80c')]?_0x1a0366:_0x3fbe45():null;})[_0x3927d8('0x21ad')](function(_0x25e976){var _0x209617=_0x3927d8,_0x49e3c1=_0x25e976&&_0x25e976[_0x209617('0x1b33')]?_0x25e976[_0x209617('0x1b33')]:[];return _0x365e53[_0x209617('0x1e09')]=_0x86640f()[_0x209617('0x26c3')](_0x49e3c1,function(_0x8ef41a){var _0x58ea5f=_0x209617;return _0x86640f()[_0x58ea5f('0x1d2e')](_0x365e53['items'],{'id':_0xff1381[_0x58ea5f('0x21de')]('admin')||_0x365e53[_0x58ea5f('0x26ad')]['autoAssociation']?_0x8ef41a['id']:_0x8ef41a[_0x58ea5f('0x675')]});}),_0x365e53['items'][_0x209617('0x1a52')](function(_0x1a7c76){var _0x463e0f=_0x209617,_0x39993f=_0x86640f()[_0x463e0f('0x1d2e')](_0x365e53['allowedItems'],{'id':_0x1a7c76['id']});_0xff1381['hasRole']('admin')?_0x1a7c76['isValid']=!![]:_0x1a7c76[_0x463e0f('0x118b')]=typeof _0x39993f!==_0x463e0f('0xddc')?!![]:![];}),_0x83abf2();})[_0x3927d8('0x21ad')](function(_0x5df823){var _0x350960=_0x3927d8,_0x18cbdb=_0x5df823&&_0x5df823['rows']?_0x5df823[_0x350960('0x1b33')]:[];_0x365e53[_0x350960('0x2629')]=_0x86640f()[_0x350960('0x26c3')](_0x18cbdb,function(_0x28d162){var _0x11e229=_0x350960;return _0x86640f()[_0x11e229('0x1d2e')](_0x365e53[_0x11e229('0x1b9a')],{'id':_0x28d162['id']});}),_0x365e53[_0x350960('0x2584')]=angular[_0x350960('0xd75')](_0x365e53['selectedItems']),_0x365e53[_0x350960('0x909')][_0x350960('0x2629')]=_0x365e53['selectedItems'],_0x365e53[_0x350960('0x909')]['items']=_0x86640f()[_0x350960('0x1eab')](_0x365e53[_0x350960('0x1e09')],_0x365e53[_0x350960('0x909')]['selectedItems'],'id'),_0x57d268();})[_0x3927d8('0x1c1d')](function(_0x5aa085){_0x1b6415(_0x5aa085);});});}function _0x3fbe45(){return _0x1bd8a1(function(_0x2189de,_0x434d94){var _0x51c5e5=a0_0x2e7f;return _0x483141[_0x51c5e5('0x185e')][_0x51c5e5('0x595')]({'sectionId':_0x365e53[_0x51c5e5('0x26ad')]['id'],'nolimit':!![]})[_0x51c5e5('0x1376')][_0x51c5e5('0x21ad')](function(_0x225845){_0x2189de(_0x225845);})[_0x51c5e5('0x1c1d')](function(_0x2cffd5){_0x434d94(_0x2cffd5);});});}function _0x83abf2(){return _0x1bd8a1(function(_0x372129,_0x63792){var _0x58a56c=a0_0x2e7f;return _0x483141[_0x58a56c('0x1cb7')][_0x58a56c('0x25df')]({'id':_0x365e53[_0x58a56c('0x1cb7')]['id'],'fields':_0x58a56c('0x1aa8'),'nolimit':!![]})[_0x58a56c('0x1376')][_0x58a56c('0x21ad')](function(_0x3d3dbf){_0x372129(_0x3d3dbf);})[_0x58a56c('0x1c1d')](function(_0x263b6e){_0x63792(_0x263b6e);});});}function _0x678449(){return _0x1bd8a1(function(_0x4f3c45,_0x544b10){var _0x243a90=a0_0x2e7f;return _0x483141[_0x243a90('0x1a9c')][_0x243a90('0x595')]({'fields':'id,name','nolimit':!![]})[_0x243a90('0x1376')][_0x243a90('0x21ad')](function(_0x43910c){_0x4f3c45(_0x43910c);})[_0x243a90('0x1c1d')](function(_0x258750){_0x544b10(_0x258750);});});}function _0x5a5da1(_0x293bca){return _0x1bd8a1(function(_0x4ef43b,_0x1c764e){var _0x3d2345=a0_0x2e7f;_0x86640f()[_0x3d2345('0x23aa')](_0x293bca)?_0x4ef43b():_0x483141[_0x3d2345('0x1cb7')][_0x3d2345('0x36c')]({'id':_0x365e53[_0x3d2345('0x1cb7')]['id'],'ids':_0x86640f()[_0x3d2345('0x26c3')](_0x293bca,'id')})['$promise'][_0x3d2345('0x21ad')](function(){_0x4ef43b();})[_0x3d2345('0x1c1d')](function(_0x1276c0){_0x1c764e(_0x1276c0);});});}function _0x3a46d8(_0x5a7d03){return _0x1bd8a1(function(_0x5162c9,_0x5a6d5c){var _0x3f2d86=a0_0x2e7f;_0x86640f()[_0x3f2d86('0x23aa')](_0x5a7d03)?_0x5162c9():_0x483141['faxQueue']['removeTeams']({'id':_0x365e53['faxQueue']['id'],'ids':_0x86640f()[_0x3f2d86('0x26c3')](_0x5a7d03,'id')})[_0x3f2d86('0x1376')][_0x3f2d86('0x21ad')](function(){_0x5162c9();})[_0x3f2d86('0x1c1d')](function(_0xa46129){_0x5a6d5c(_0xa46129);});});}function _0x925464(){var _0x1620df=_0x174015,_0x190459=_0x86640f()[_0x1620df('0x1eab')](_0x365e53[_0x1620df('0x2584')],_0x365e53[_0x1620df('0x2629')],'id'),_0x44f369=_0x86640f()[_0x1620df('0x1eab')](_0x365e53[_0x1620df('0x2629')],_0x365e53[_0x1620df('0x2584')],'id');return _0x3a46d8(_0x190459)[_0x1620df('0x21ad')](function(){return _0x5a5da1(_0x44f369);})[_0x1620df('0x21ad')](function(){var _0x5d33a6=_0x1620df;_0x365e53[_0x5d33a6('0x1bb9')]=![],_0x365e53[_0x5d33a6('0x91b')]=angular[_0x5d33a6('0xd75')](_0x365e53[_0x5d33a6('0x1e09')]),_0x365e53['startingSelectedItems']=angular[_0x5d33a6('0xd75')](_0x365e53[_0x5d33a6('0x2629')]),_0x4d5934[_0x5d33a6('0xdb1')]({'title':'SUCCESS','msg':_0x5d33a6('0x4c8')});})[_0x1620df('0x1c1d')](function(_0x52d2e9){var _0x4742a5=_0x1620df;_0x4d5934[_0x4742a5('0x2092')]({'title':_0x52d2e9['status']?_0x4742a5('0x22d')+_0x52d2e9[_0x4742a5('0x209')]+'\x20-\x20'+_0x52d2e9[_0x4742a5('0x1808')]:_0x4742a5('0x1dd7'),'msg':_0x52d2e9[_0x4742a5('0x209')]?JSON[_0x4742a5('0x25e')](_0x52d2e9[_0x4742a5('0x11c2')]):_0x52d2e9['toString']()});});}function _0x5a6041(){var _0x2012f3=_0x174015;_0xa3b3dd[_0x2012f3('0x1c24')]();}}const _0x509b41=_0x186bff,_0x4f2658=_0x398308['p']+_0x3877e3('0x1b83');_0x582c97['$inject']=['$state',_0x3877e3('0x14c7'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x13c1'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x1cb7'),_0x3877e3('0xab4')];function _0x582c97(_0x5efec7,_0x57451d,_0x3358bd,_0x585f0d,_0x209713,_0x430ca6,_0x595e37,_0x846fc4,_0x282a8f,_0x45d2da,_0x32f30b,_0x40d3a5){var _0x2ed76c=_0x3877e3,_0x310e3a=this;_0x310e3a[_0x2ed76c('0x123f')]=_0x45d2da['getCurrentUser'](),_0x310e3a[_0x2ed76c('0x2ff')]=_0x430ca6,_0x310e3a[_0x2ed76c('0x21e')]=_0x595e37,_0x310e3a[_0x2ed76c('0x1432')]=_0x310e3a[_0x2ed76c('0x21e')][_0x2ed76c('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x310e3a[_0x2ed76c('0x626')]=_0x57451d[_0x2ed76c('0x1162')]()+_0x2ed76c('0x22a9')+_0x57451d['host'](),_0x310e3a[_0x2ed76c('0x1cb7')]=_0x32f30b||_0x5efec7['params'][_0x2ed76c('0x1cb7')]||{},_0x310e3a[_0x2ed76c('0xab4')]=_0x40d3a5&&_0x40d3a5['count']==0x1?_0x40d3a5[_0x2ed76c('0x1b33')][0x0]:null,_0x310e3a['crudPermissions']=_0x45d2da['parseCrudPermissions'](_0x310e3a[_0x2ed76c('0xab4')]?_0x310e3a[_0x2ed76c('0xab4')][_0x2ed76c('0x5ed')]:null),_0x310e3a[_0x2ed76c('0x126a')]={},_0x310e3a['selectedTab']=_0x5efec7[_0x2ed76c('0x171b')][_0x2ed76c('0x12e1')]||0x0,_0x310e3a[_0x2ed76c('0x1111')]=_0x1626be,_0x310e3a[_0x2ed76c('0x1297')]=_0x3913e2,_0x310e3a[_0x2ed76c('0x95b')]=_0x282a8f[_0x2ed76c('0x231c')],_0x310e3a[_0x2ed76c('0x21d6')]=_0x4a9aa7,_0x310e3a[_0x2ed76c('0xda1')]=_0x9da597;function _0x1626be(_0x484540,_0x18a1df){var _0x1a8631=_0x2ed76c;_0x3358bd[_0x1a8631('0x853')]({'controller':_0x1a8631('0x1e13'),'controllerAs':'vm','templateUrl':_0x4f2658,'parent':angular[_0x1a8631('0x1676')](_0x585f0d[_0x1a8631('0x2452')]),'targetEvent':_0x18a1df,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x484540,'faxQueues':_0x310e3a[_0x1a8631('0x2346')]?_0x310e3a['faxQueues'][_0x1a8631('0x1b33')]:[],'crudPermissions':_0x310e3a['crudPermissions']}});}function _0x3913e2(_0x3aaece,_0x49fe42){var _0x5bcbaf=_0x2ed76c;_0x3358bd[_0x5bcbaf('0x853')]({'controller':_0x5bcbaf('0x310'),'controllerAs':'vm','templateUrl':_0x4e75aa,'parent':angular['element'](_0x585f0d[_0x5bcbaf('0x2452')]),'targetEvent':_0x49fe42,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x3aaece,'faxQueues':_0x310e3a[_0x5bcbaf('0x2346')]?_0x310e3a[_0x5bcbaf('0x2346')][_0x5bcbaf('0x1b33')]:[],'crudPermissions':_0x310e3a[_0x5bcbaf('0x5ed')],'realtime':![]}});}function _0x4a9aa7(){var _0x519ff8=_0x2ed76c;_0x5efec7['go']('app.fax.faxQueues',{},{'reload':_0x519ff8('0x74a')});}function _0x9da597(){var _0x4f6082=_0x2ed76c;_0x846fc4[_0x4f6082('0x1cb7')][_0x4f6082('0x5ef')]({'id':_0x310e3a[_0x4f6082('0x1cb7')]['id']},_0x310e3a[_0x4f6082('0x1cb7')])['$promise'][_0x4f6082('0x21ad')](function(){var _0x1097dc=_0x4f6082;_0x282a8f[_0x1097dc('0xdb1')]({'title':_0x1097dc('0x19c8'),'msg':_0x310e3a[_0x1097dc('0x1cb7')]['name']?_0x310e3a[_0x1097dc('0x1cb7')][_0x1097dc('0x19fe')]+_0x1097dc('0xa8d'):''});})[_0x4f6082('0x1c1d')](function(_0x3252a0){var _0x3af7dc=_0x4f6082;_0x282a8f['error']({'title':_0x3252a0[_0x3af7dc('0x209')]?'API:'+_0x3252a0[_0x3af7dc('0x209')]+_0x3af7dc('0xa99')+_0x3252a0[_0x3af7dc('0x1808')]:_0x3af7dc('0x18be'),'msg':_0x3252a0[_0x3af7dc('0x11c2')]?JSON['stringify'](_0x3252a0[_0x3af7dc('0x11c2')]):_0x3252a0[_0x3af7dc('0x174f')]()});});}}const _0xd06068=_0x582c97;_0x12305e[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),'$mdSidenav',_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x13c1'),_0x3877e3('0x2346'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),'toasty','Auth','license',_0x3877e3('0x21e')];function _0x12305e(_0x3fbdca,_0x49279a,_0x3a9544,_0x508e27,_0x15791d,_0x131f1d,_0x4bc974,_0x1252f5,_0x28aaaf,_0x38a855,_0x6b2b6d,_0x1305de,_0x3e8845,_0x32e6ae,_0x484467,_0x457a23,_0x4adc4b){var _0x40b07c=_0x3877e3,_0x12108b=this;_0x12108b[_0x40b07c('0x2ff')]=_0x457a23,_0x12108b['setting']=_0x4adc4b,_0x12108b[_0x40b07c('0x123f')]=_0x484467[_0x40b07c('0x15ed')](),_0x12108b[_0x40b07c('0x2346')]=_0x28aaaf||{'count':0x0,'rows':[]},_0x12108b['userProfile']=_0x38a855,_0x12108b[_0x40b07c('0xab4')]=_0x6b2b6d&&_0x6b2b6d[_0x40b07c('0x205f')]==0x1?_0x6b2b6d[_0x40b07c('0x1b33')][0x0]:null,_0x12108b['crudPermissions']=_0x484467[_0x40b07c('0x1778')](_0x12108b[_0x40b07c('0xab4')]?_0x12108b['userProfileSection'][_0x40b07c('0x5ed')]:null),_0x12108b[_0x40b07c('0x1897')]=_0x40b07c('0x2346'),_0x12108b[_0x40b07c('0x11dc')]='',_0x12108b['listOrderAsc']=null,_0x12108b['selectedFaxQueues']=[],_0x12108b[_0x40b07c('0x77')]={'fields':_0x40b07c('0x87f'),'sort':_0x40b07c('0x33'),'channel':_0x40b07c('0x93f'),'limit':0xa,'page':0x1},_0x12108b['arraystrategy']=_0x86640f()['keyBy']([{'option':'Beepall','value':'\x27beepall\x27'},{'option':_0x40b07c('0x1106'),'value':'\x27rrmemory\x27'}],function(_0x329ae8){var _0x13616a=_0x40b07c;return _0x86640f()[_0x13616a('0x16e4')](_0x329ae8['value'],new RegExp('\x27','g'),'');}),_0x12108b[_0x40b07c('0x1c88')]=_0x4e762c,_0x12108b['teamadddialog']=_0xd21792,_0x12108b['agentadddialog']=_0x2a92ba,_0x12108b[_0x40b07c('0x2593')]=_0x3a807d,_0x12108b['gotorealtimegoto']=_0x3dade5,_0x12108b['success']=_0x1ece20,_0x12108b[_0x40b07c('0x1fad')]=_0x58469f,_0x12108b[_0x40b07c('0x900')]=_0x20e19d,_0x12108b[_0x40b07c('0x88c')]=_0x878fd3,_0x12108b[_0x40b07c('0x2496')]=_0x56f28d,_0x12108b[_0x40b07c('0x1a8')]=_0x4e3d9d,_0x12108b[_0x40b07c('0xb7c')]=_0x2e9be6,_0x12108b[_0x40b07c('0x516')]=_0x4cb000;function _0x4e762c(_0x319222){var _0x4eb1e1=_0x40b07c;_0x3a9544['go'](_0x4eb1e1('0xf7c'),{'id':_0x319222['id'],'faxQueue':_0x319222,'crudPermissions':_0x12108b[_0x4eb1e1('0x5ed')]});}function _0xd21792(_0x4f87e3,_0x532f46){var _0x49cef6=_0x40b07c;_0x15791d[_0x49cef6('0x853')]({'controller':'FaxQueueteamaddController','controllerAs':'vm','templateUrl':_0x4f2658,'parent':angular['element'](_0x131f1d[_0x49cef6('0x2452')]),'targetEvent':_0x532f46,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x4f87e3,'faxQueues':_0x12108b[_0x49cef6('0x2346')]?_0x12108b[_0x49cef6('0x2346')]['rows']:[],'crudPermissions':_0x12108b[_0x49cef6('0x5ed')]}});}function _0x2a92ba(_0x11913b,_0x551cb8){var _0x3e8367=_0x40b07c;_0x15791d['show']({'controller':_0x3e8367('0x310'),'controllerAs':'vm','templateUrl':_0x4e75aa,'parent':angular['element'](_0x131f1d['body']),'targetEvent':_0x551cb8,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x11913b,'faxQueues':_0x12108b[_0x3e8367('0x2346')]?_0x12108b['faxQueues'][_0x3e8367('0x1b33')]:[],'crudPermissions':_0x12108b[_0x3e8367('0x5ed')],'realtime':![]}});}function _0x3a807d(_0x6b980,_0x3ea35b){var _0x14b4f8=_0x40b07c,_0x33f750=_0x15791d[_0x14b4f8('0xa33')]()[_0x14b4f8('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x86640f()[_0x14b4f8('0x2159')](_0x14b4f8('0x1cb7'))+'?')[_0x14b4f8('0x276b')](''+(_0x6b980[_0x14b4f8('0x19fe')]||_0x14b4f8('0x1cb7'))+_0x14b4f8('0x2135')+_0x14b4f8('0x25e0'))['ariaLabel']('delete\x20faxQueue')['targetEvent'](_0x3ea35b)['ok']('OK')[_0x14b4f8('0x3b5')](_0x14b4f8('0x284b'));_0x15791d[_0x14b4f8('0x853')](_0x33f750)[_0x14b4f8('0x21ad')](function(){_0x878fd3(_0x6b980);},function(){var _0x126210=_0x14b4f8;console[_0x126210('0x6fb')](_0x126210('0x284b'));});}function _0x3dade5(){var _0x209961=_0x40b07c;if(_0x484467[_0x209961('0x21de')](_0x209961('0x1bd8')))_0x3a9544['go'](_0x209961('0x3db'),{});else return _0x1305de[_0x209961('0xab4')][_0x209961('0x595')]({'userProfileId':_0x484467[_0x209961('0x15ed')]()[_0x209961('0x1618')],'sectionId':0x38e})['$promise'][_0x209961('0x21ad')](function(_0xf9f4f9){var _0x45ef5e=_0x209961,_0x4ba06f=_0xf9f4f9&&_0xf9f4f9['rows']?_0xf9f4f9[_0x45ef5e('0x1b33')][0x0]:null;_0x4ba06f&&_0x4ba06f[_0x45ef5e('0x2296')]?_0x3a9544['go'](_0x45ef5e('0x3db'),{}):_0x32e6ae['info']({'title':_0x1252f5[_0x45ef5e('0x183e')](_0x45ef5e('0x1adb')),'msg':_0x1252f5[_0x45ef5e('0x183e')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x209961('0x1c1d')](function(_0x135198){var _0x1c2576=_0x209961;_0x32e6ae[_0x1c2576('0x2092')]({'title':_0x135198[_0x1c2576('0x209')]?'API:'+_0x135198[_0x1c2576('0x209')]+_0x1c2576('0xa99')+_0x135198[_0x1c2576('0x1808')]:'USERPROFILE:GET_SECTION','msg':_0x135198[_0x1c2576('0x209')]?JSON[_0x1c2576('0x25e')](_0x135198['data']):_0x135198[_0x1c2576('0x174f')]()});});}var _0x4aa566=!![],_0xc372a0=0x1;_0x3fbdca[_0x40b07c('0x10e8')](_0x40b07c('0x1948'),function(_0x269391,_0x226020){var _0x15a51f=_0x40b07c;_0x4aa566?_0x4bc974(function(){_0x4aa566=![];}):(!_0x226020&&(_0xc372a0=_0x12108b[_0x15a51f('0x77')][_0x15a51f('0x2376')]),_0x269391!==_0x226020&&(_0x12108b[_0x15a51f('0x77')][_0x15a51f('0x2376')]=0x1),!_0x269391&&(_0x12108b['query']['page']=_0xc372a0),_0x12108b[_0x15a51f('0x1fad')]());});function _0x1ece20(_0x2a78d0){var _0xb76c57=_0x40b07c;_0x12108b[_0xb76c57('0x2346')]=_0x2a78d0||{'count':0x0,'rows':[]};}function _0x58469f(){var _0x400b34=_0x40b07c;_0x12108b[_0x400b34('0x77')][_0x400b34('0x15a5')]=(_0x12108b[_0x400b34('0x77')][_0x400b34('0x2376')]-0x1)*_0x12108b[_0x400b34('0x77')][_0x400b34('0x1f4a')],_0x484467[_0x400b34('0x21de')](_0x400b34('0x1bd8'))?_0x12108b['promise']=_0x1305de[_0x400b34('0x1cb7')]['get'](_0x12108b[_0x400b34('0x77')],_0x1ece20)[_0x400b34('0x1376')]:(_0x12108b[_0x400b34('0x77')]['id']=_0x12108b[_0x400b34('0x758')]['id'],_0x12108b[_0x400b34('0x77')][_0x400b34('0x26ad')]=_0x400b34('0x20f7'),_0x12108b[_0x400b34('0x71b')]=_0x1305de['userProfile'][_0x400b34('0x321')](_0x12108b[_0x400b34('0x77')],_0x1ece20)['$promise']);}function _0x20e19d(_0x2368f0,_0x3b1090){var _0x514e37=_0x40b07c;_0x15791d[_0x514e37('0x853')]({'controller':_0x514e37('0x93e'),'controllerAs':'vm','templateUrl':_0x1d59e5,'parent':angular[_0x514e37('0x1676')](_0x131f1d['body']),'targetEvent':_0x2368f0,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x3b1090,'faxQueues':_0x12108b[_0x514e37('0x2346')][_0x514e37('0x1b33')],'license':_0x12108b[_0x514e37('0x2ff')],'setting':_0x12108b[_0x514e37('0x21e')],'crudPermissions':_0x12108b['crudPermissions']}});}function _0x878fd3(_0x14a1b1){var _0x50a76a=_0x40b07c;_0x1305de[_0x50a76a('0x1cb7')][_0x50a76a('0x1164')]({'id':_0x14a1b1['id']})[_0x50a76a('0x1376')][_0x50a76a('0x21ad')](function(){var _0xb8f24a=_0x50a76a;_0x86640f()['remove'](_0x12108b['faxQueues'][_0xb8f24a('0x1b33')],{'id':_0x14a1b1['id']}),_0x12108b[_0xb8f24a('0x2346')][_0xb8f24a('0x205f')]-=0x1,!_0x12108b[_0xb8f24a('0x2346')]['rows'][_0xb8f24a('0x577')]&&_0x12108b[_0xb8f24a('0x1fad')](),_0x32e6ae[_0xb8f24a('0xdb1')]({'title':_0x86640f()[_0xb8f24a('0x2159')](_0xb8f24a('0x150d'))+_0xb8f24a('0xe64'),'msg':_0x14a1b1[_0xb8f24a('0x19fe')]?_0x14a1b1[_0xb8f24a('0x19fe')]+_0xb8f24a('0xb4a'):''});})[_0x50a76a('0x1c1d')](function(_0x58972c){var _0x6e83fa=_0x50a76a;if(_0x58972c['data']&&_0x58972c[_0x6e83fa('0x11c2')][_0x6e83fa('0x1a69')]&&_0x58972c['data'][_0x6e83fa('0x1a69')][_0x6e83fa('0x577')]){_0x12108b[_0x6e83fa('0x1a69')]=_0x58972c[_0x6e83fa('0x11c2')][_0x6e83fa('0x1a69')]||[{'message':_0x58972c[_0x6e83fa('0x174f')](),'type':_0x6e83fa('0x1c61')}];for(var _0x1270ff=0x0;_0x1270ff<_0x58972c[_0x6e83fa('0x11c2')]['errors']['length'];_0x1270ff++){_0x32e6ae[_0x6e83fa('0x2092')]({'title':_0x58972c[_0x6e83fa('0x11c2')]['errors'][_0x1270ff][_0x6e83fa('0x7fa')],'msg':_0x58972c[_0x6e83fa('0x11c2')][_0x6e83fa('0x1a69')][_0x1270ff][_0x6e83fa('0x1224')]});}}else _0x32e6ae[_0x6e83fa('0x2092')]({'title':_0x58972c[_0x6e83fa('0x209')]?'API:'+_0x58972c['status']+_0x6e83fa('0xa99')+_0x58972c[_0x6e83fa('0x1808')]:_0x6e83fa('0x1c61'),'msg':_0x58972c[_0x6e83fa('0x11c2')]?JSON[_0x6e83fa('0x25e')](_0x58972c[_0x6e83fa('0x11c2')][_0x6e83fa('0x1224')]):_0x58972c[_0x6e83fa('0x1224')]||_0x58972c[_0x6e83fa('0x174f')]()});});}function _0x56f28d(){var _0x1e237f=_0x40b07c,_0x31c55b=angular[_0x1e237f('0xd75')](_0x12108b['selectedFaxQueues']);return _0x12108b[_0x1e237f('0xb61')]=[],_0x31c55b;}function _0x4e3d9d(_0x205c06){var _0x20d750=_0x40b07c,_0x5180c8=_0x15791d[_0x20d750('0xa33')]()[_0x20d750('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20faxQueues?')['htmlContent'](_0x20d750('0x622')+_0x12108b[_0x20d750('0xb61')][_0x20d750('0x577')]+_0x20d750('0xd74')+_0x20d750('0x25e0'))['ariaLabel'](_0x20d750('0x235'))[_0x20d750('0x1e6d')](_0x205c06)['ok']('OK')['cancel']('CANCEL');_0x15791d[_0x20d750('0x853')](_0x5180c8)[_0x20d750('0x21ad')](function(){var _0x1d473f=_0x20d750;_0x12108b[_0x1d473f('0xb61')][_0x1d473f('0x1a52')](function(_0xd58dd2){_0x878fd3(_0xd58dd2);}),_0x12108b['selectedFaxQueues']=[];});}function _0x2e9be6(){var _0x408ab7=_0x40b07c;_0x12108b[_0x408ab7('0xb61')]=[];}function _0x4cb000(){var _0xb9b841=_0x40b07c;_0x12108b[_0xb9b841('0xb61')]=_0x12108b[_0xb9b841('0x2346')][_0xb9b841('0x1b33')];}}const _0x3042a4=_0x12305e;_0x389679[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c'),_0x3877e3('0x972')];function _0x389679(_0x584a00,_0x56f522){var _0x3a6832=_0x3877e3;_0x584a00['state']('app.fax',{'abstract':!![],'url':'/fax'})[_0x3a6832('0x27e')](_0x3a6832('0x74a'),{'url':_0x3a6832('0x133f'),'views':{'content@app':{'templateUrl':_0xbb59fe,'controller':_0x3a6832('0x15d7')}},'resolve':{'faxQueues':['apiResolver',_0x3a6832('0x15bc'),function _0x5dd66a(_0x11f4a2,_0x373026){var _0x2dd42a=_0x3a6832;return _0x373026[_0x2dd42a('0x21de')](_0x2dd42a('0x1bd8'))?_0x11f4a2[_0x2dd42a('0x8ac')]('faxQueue@get',{'fields':_0x2dd42a('0x87f'),'sort':_0x2dd42a('0x33'),'channel':_0x2dd42a('0x93f'),'limit':0xa,'offset':0x0}):_0x11f4a2['resolve'](_0x2dd42a('0x52f'),{'id':_0x373026[_0x2dd42a('0x15ed')]()[_0x2dd42a('0x1618')],'section':_0x2dd42a('0x20f7'),'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x2dd42a('0x33'),'channel':_0x2dd42a('0x93f'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3a6832('0x354'),_0x3a6832('0x15bc'),function _0x112382(_0x39ad93,_0x37ca06){var _0x55d0c8=_0x3a6832;return _0x37ca06['hasRole'](_0x55d0c8('0x1bd8'))?null:_0x39ad93['resolve'](_0x55d0c8('0x1e1d'),{'fields':'id,name,crudPermissions','id':_0x37ca06[_0x55d0c8('0x15ed')]()[_0x55d0c8('0x1618')]});}],'userProfileSection':[_0x3a6832('0x354'),_0x3a6832('0x15bc'),function _0x26a70f(_0x1e8976,_0x7fd1fd){var _0x2c4553=_0x3a6832;return _0x7fd1fd[_0x2c4553('0x21de')]('admin')?null:_0x1e8976[_0x2c4553('0x8ac')](_0x2c4553('0x222f'),{'fields':_0x2c4553('0x1852'),'userProfileId':_0x7fd1fd[_0x2c4553('0x15ed')]()[_0x2c4553('0x1618')],'sectionId':0x385});}]},'authenticate':!![],'permissionId':0x385,'bodyClass':_0x3a6832('0x93f')})[_0x3a6832('0x27e')]('app.fax.faxQueues.edit',{'url':_0x3a6832('0x17f5'),'params':{'faxQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1e6fbf,'controller':'FaxQueueController\x20as\x20vm'}},'resolve':{'faxQueue':[_0x3a6832('0x354'),_0x3a6832('0x114e'),function _0x9a74df(_0x1d7c2c,_0x53fe2f){var _0x5ec5c0=_0x3a6832;return _0x1d7c2c[_0x5ec5c0('0x8ac')](_0x5ec5c0('0x13e0'),{'fields':_0x5ec5c0('0x87f'),'id':_0x53fe2f['id']});}],'userProfileSection':[_0x3a6832('0x354'),_0x3a6832('0x15bc'),function _0x3cff2e(_0x3e061b,_0x5b3f0d){var _0x3e2983=_0x3a6832;return _0x3e061b[_0x3e2983('0x8ac')](_0x3e2983('0x222f'),{'fields':_0x3e2983('0x1852'),'userProfileId':_0x5b3f0d[_0x3e2983('0x15ed')]()[_0x3e2983('0x1618')],'sectionId':0x385});}]},'authenticate':!![],'permissionId':0x385,'bodyClass':_0x3a6832('0x93f')})[_0x3a6832('0x27e')](_0x3a6832('0x181b'),{'url':_0x3a6832('0x1101'),'views':{'content@app':{'templateUrl':_0x1f3c7c,'controller':_0x3a6832('0x2e')}},'resolve':{'faxAccounts':['apiResolver','Auth',function _0x2feb0b(_0x5bb330,_0x22859b){var _0x2b9855=_0x3a6832;return _0x22859b['hasRole'](_0x2b9855('0x1bd8'))?_0x5bb330[_0x2b9855('0x8ac')]('faxAccount@get',{'fields':_0x2b9855('0x1c51'),'sort':_0x2b9855('0x33'),'limit':0xa,'offset':0x0}):_0x5bb330['resolve']('userProfile@getResources',{'id':_0x22859b[_0x2b9855('0x15ed')]()['userProfileId'],'section':'FaxAccounts','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':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x3a6832('0x354'),_0x3a6832('0x15bc'),function _0x2d87d8(_0x1d3ba4,_0x5e727d){var _0x23e009=_0x3a6832;return _0x5e727d['hasRole']('admin')?null:_0x1d3ba4[_0x23e009('0x8ac')]('userProfile@get',{'fields':_0x23e009('0x1a00'),'id':_0x5e727d['getCurrentUser']()[_0x23e009('0x1618')]});}],'userProfileSection':[_0x3a6832('0x354'),'Auth',function _0x16e48d(_0x3bf2c0,_0x14b347){var _0xc1b4f0=_0x3a6832;return _0x14b347[_0xc1b4f0('0x21de')](_0xc1b4f0('0x1bd8'))?null:_0x3bf2c0['resolve']('userProfileSection@get',{'fields':_0xc1b4f0('0x1852'),'userProfileId':_0x14b347[_0xc1b4f0('0x15ed')]()[_0xc1b4f0('0x1618')],'sectionId':0x386});}]},'authenticate':!![],'permissionId':0x386,'bodyClass':_0x3a6832('0x93f')})[_0x3a6832('0x27e')]('app.fax.faxAccounts.edit',{'url':'/:id?tab','params':{'faxAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5f42a3,'controller':_0x3a6832('0x1fb6')}},'resolve':{'faxAccount':[_0x3a6832('0x354'),'$stateParams',function _0x4aaca9(_0x4c9c98,_0x6e5882){var _0x995da=_0x3a6832;return _0x4c9c98[_0x995da('0x8ac')](_0x995da('0x8b9'),{'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':_0x6e5882['id']});}],'userProfileSection':[_0x3a6832('0x354'),'Auth',function _0xbb78d8(_0x1656e6,_0xb12502){var _0x17ee40=_0x3a6832;return _0x1656e6[_0x17ee40('0x8ac')](_0x17ee40('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xb12502['getCurrentUser']()[_0x17ee40('0x1618')],'sectionId':0x386});}]},'authenticate':!![],'permissionId':0x386,'bodyClass':_0x3a6832('0x93f')}),_0x56f522[_0x3a6832('0x20ab')]('app/main/apps/fax');}angular[_0x3877e3('0x20d5')](_0x3877e3('0x1b09'),[_0x3877e3('0x240c'),_0x3877e3('0x1b0'),_0x3877e3('0xca'),_0x3877e3('0x1d76'),_0x3877e3('0x2437'),_0x3877e3('0x25c7'),_0x3877e3('0x1182'),'ngAria',_0x3877e3('0x19'),_0x3877e3('0x335'),_0x3877e3('0xc90'),_0x3877e3('0x56d'),_0x3877e3('0xe2f'),'ngclipboard','angular-cron-jobs',_0x3877e3('0xe39'),'angularMaterialFormBuilder',_0x3877e3('0x27ba'),_0x3877e3('0x9e0'),_0x3877e3('0x1c54'),_0x3877e3('0x1ad0')])[_0x3877e3('0x13')](_0x389679)['controller'](_0x3877e3('0x213d'),_0xf5b2de)[_0x3877e3('0x1d5a')](_0x3877e3('0xc76'),_0x1abd56)[_0x3877e3('0x1d5a')]('FaxAccountagentaddController',_0x594147)[_0x3877e3('0x1d5a')]('EditFaxAccountAppagentDialogController',_0x8cbd78)[_0x3877e3('0x1d5a')](_0x3877e3('0xf6a'),_0x408620)['controller'](_0x3877e3('0x125a'),_0x596e41)['controller'](_0x3877e3('0x1eed'),_0x563dc8)[_0x3877e3('0x1d5a')](_0x3877e3('0x19c3'),_0x2a481e)['controller'](_0x3877e3('0x1ce7'),_0x466777)[_0x3877e3('0x1d5a')]('EditFaxAccountAppqueueDialogController',_0x5bcac8)[_0x3877e3('0x1d5a')](_0x3877e3('0x59b'),_0x31e015)[_0x3877e3('0x1d5a')](_0x3877e3('0xffe'),_0x4ddf5b)[_0x3877e3('0x1d5a')](_0x3877e3('0xc01'),_0x571a54)[_0x3877e3('0x1d5a')](_0x3877e3('0xed6'),_0x366d84)['controller'](_0x3877e3('0x2669'),_0x2c2fb3)[_0x3877e3('0x1d5a')](_0x3877e3('0xf62'),_0x425736)[_0x3877e3('0x1d5a')](_0x3877e3('0x93e'),_0x17ccbb)['controller']('FaxQueueagentaddController',_0x2a6f38)['controller'](_0x3877e3('0x1e13'),_0x509b41)[_0x3877e3('0x1d5a')](_0x3877e3('0xe51'),_0xd06068)[_0x3877e3('0x1d5a')](_0x3877e3('0x1767'),_0x3042a4);const _0x1afccb=_0x398308['p']+'src/js/modules/main/apps/tools/views/dispositions/dispositions.html/dispositions-[chunkhash].html';_0x13ad56[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),_0x3877e3('0x13c1'),'$q',_0x3877e3('0x1908'),'dispositions',_0x3877e3('0x22c8'),_0x3877e3('0x55d'),'api',_0x3877e3('0x15bc'),_0x3877e3('0x5ed'),_0x3877e3('0x2ff'),'setting'];function _0x13ad56(_0x27c54a,_0xd5e1c8,_0x295cb2,_0x17075f,_0x17dd5a,_0x4e40a1,_0x3612b4,_0x360d38,_0x2e32bd,_0x5337df,_0x1a3bf9,_0x4d7051){var _0x272716=_0x3877e3,_0x3c5380=this;_0x3c5380['currentUser']=_0x2e32bd[_0x272716('0x15ed')](),_0x3c5380['disposition']=angular[_0x272716('0xd75')](_0x4e40a1),_0x3c5380[_0x272716('0x10d0')]=angular['copy'](_0x17dd5a),_0x3c5380[_0x272716('0x21e')]=_0x4d7051,_0x3c5380[_0x272716('0x2ff')]=_0x1a3bf9,_0x3c5380['crudPermissions']=_0x5337df,_0x3c5380['newDisposition']=![],_0x3c5380[_0x272716('0x1a69')]=[];!_0x3c5380['disposition']?(_0x3c5380[_0x272716('0x22c8')]={'level':'first'},_0x3c5380[_0x272716('0x804')]=!![]):_0x1ee3ce();if(_0x3612b4){var _0x2bb2bc=_0x3612b4['field'];_0x3c5380[_0x272716('0x22c8')][_0x2bb2bc]=_0x3612b4['id'];}_0x3c5380[_0x272716('0x1d0a')]=_0x16b3f2,_0x3c5380[_0x272716('0x1b65')]=_0x22e2cd,_0x3c5380[_0x272716('0x12cd')]=_0x910b6a,_0x3c5380[_0x272716('0x132f')]=_0x170a74,_0x3c5380[_0x272716('0x1e8')]=_0xca514d,_0x3c5380[_0x272716('0x167')]=_0x3c5dd8;function _0x1ee3ce(){var _0x2bdaf0=_0x272716;if(_0x3c5380[_0x2bdaf0('0x22c8')][_0x2bdaf0('0x1ad1')]===_0x2bdaf0('0x2019'))return;_0x3c5380[_0x2bdaf0('0xdb8')]=_0x86640f()[_0x2bdaf0('0x1d2e')](_0x3c5380[_0x2bdaf0('0x10d0')],['id',_0x3c5380[_0x2bdaf0('0x22c8')][_0x2bdaf0('0x198f')]]);if(!_0x3c5380['parentDisposition']){_0x3e4194()[_0x2bdaf0('0x21ad')](function(){var _0x35c3ff=_0x2bdaf0;for(var _0x2fe124=0x0;_0x2fe124<_0x3c5380[_0x35c3ff('0x1e20')]['length'];_0x2fe124++){var _0x17ae12=_0x3c5380[_0x35c3ff('0x1e20')][_0x2fe124];if(_0x17ae12['id']===_0x3c5380[_0x35c3ff('0x22c8')][_0x35c3ff('0x198f')]){_0x44469f(_0x17ae12),_0x17ae12[_0x35c3ff('0xba')]=![],_0x3c5380[_0x35c3ff('0x10d0')][_0x35c3ff('0x206c')](_0x17ae12);break;}}});return;}_0x44469f(_0x3c5380[_0x2bdaf0('0xdb8')]);}function _0x3e4194(){return _0x295cb2(function(_0x30df17,_0x3898c1){var _0x28a33b=a0_0x2e7f;_0x360d38['disposition']['get']({'fields':'id,name,level,ParentId','sort':'id','nolimit':'true'})['$promise'][_0x28a33b('0x21ad')](function(_0x2f1a1f){_0x3c5380['allDispositions']=_0x2f1a1f['rows']||[],_0x30df17();})[_0x28a33b('0x1c1d')](function(_0x3e1ea4){_0x3898c1(_0x3e1ea4);});});}function _0x44469f(_0x2cef34){var _0x43de25=_0x272716;_0x2cef34[_0x43de25('0x1ad1')]===_0x43de25('0x2019')?_0x3c5380[_0x43de25('0x1273')]=_0x2cef34:(_0x3c5380['anySecondLevelDisposition']=!![],_0x3c5380['secondLevelDisposition']=_0x2cef34,_0x3c5380['firstLevelDisposition']=_0x86640f()['find'](_0x3c5380[_0x43de25('0x10d0')],['id',_0x3c5380[_0x43de25('0x185c')]['ParentId']]),!_0x3c5380[_0x43de25('0x1273')]&&_0x3e4194()[_0x43de25('0x21ad')](function(){var _0x4c4a8c=_0x43de25;_0x3c5380[_0x4c4a8c('0x1273')]=_0x86640f()[_0x4c4a8c('0x1d2e')](_0x3c5380['allDispositions'],['id',_0x3c5380[_0x4c4a8c('0x185c')][_0x4c4a8c('0x198f')]]),_0x3c5380['firstLevelDisposition'][_0x4c4a8c('0xba')]=![],_0x3c5380[_0x4c4a8c('0x10d0')][_0x4c4a8c('0x206c')](_0x3c5380['firstLevelDisposition']);}));}function _0xca514d(_0x37914f){var _0x5295d0=_0x272716;_0x37914f==='first'?(_0x3c5380[_0x5295d0('0x1273')]=undefined,_0x3c5380[_0x5295d0('0x185c')]=undefined,_0x3c5380[_0x5295d0('0x10a7')]=![]):_0x3c5380[_0x5295d0('0x185c')]=undefined;}function _0x16b3f2(){var _0x1236f4=_0x272716;_0x3c5380['secondLevelDisposition']=undefined,_0x3c5380[_0x1236f4('0x10a7')]=_0x86640f()[_0x1236f4('0x2664')](_0x3c5380[_0x1236f4('0x10d0')],function(_0x18b52a){var _0x37fa1f=_0x1236f4;return _0x18b52a[_0x37fa1f('0x198f')]===_0x3c5380[_0x37fa1f('0x1273')]['id']&&_0x18b52a['id']!=_0x3c5380[_0x37fa1f('0x22c8')]['id'];});}function _0x22e2cd(){var _0x58d510=_0x272716;_0x3c5380[_0x58d510('0x1a69')]=[];if(_0x3c5380['secondLevelDisposition'])_0x3c5380['disposition']['ParentId']=_0x3c5380['secondLevelDisposition']['id'],_0x3c5380[_0x58d510('0x22c8')][_0x58d510('0x1ad1')]='third';else _0x3c5380[_0x58d510('0x1273')]&&(_0x3c5380[_0x58d510('0x22c8')][_0x58d510('0x198f')]=_0x3c5380[_0x58d510('0x1273')]['id'],_0x3c5380[_0x58d510('0x22c8')][_0x58d510('0x1ad1')]=_0x58d510('0x502'));_0x360d38['disposition'][_0x58d510('0x186f')](_0x3c5380[_0x58d510('0x22c8')])[_0x58d510('0x1376')]['then'](function(_0xc5fdfd){var _0x17ab70=_0x58d510;_0x3c5380[_0x17ab70('0x10d0')][_0x17ab70('0xd0c')](_0xc5fdfd['toJSON']()),_0x17075f[_0x17ab70('0xdb1')]({'title':_0xd5e1c8['instant'](_0x17ab70('0x27a7'))}),_0x3c5dd8(!![]);})[_0x58d510('0x1c1d')](function(_0x36c1f5){var _0x53404b=_0x58d510;if(_0x36c1f5['data']&&_0x36c1f5[_0x53404b('0x11c2')][_0x53404b('0x1a69')]&&_0x36c1f5['data']['errors'][_0x53404b('0x577')]){_0x3c5380[_0x53404b('0x1a69')]=_0x36c1f5[_0x53404b('0x11c2')][_0x53404b('0x1a69')]||[{'message':_0x36c1f5['toString'](),'type':_0x53404b('0x1371')}];for(var _0x56f764=0x0;_0x56f764<_0x36c1f5[_0x53404b('0x11c2')][_0x53404b('0x1a69')][_0x53404b('0x577')];_0x56f764+=0x1){_0x17075f['error']({'title':_0x36c1f5['data'][_0x53404b('0x1a69')][_0x56f764]['type'],'msg':_0x36c1f5[_0x53404b('0x11c2')][_0x53404b('0x1a69')][_0x56f764][_0x53404b('0x1224')]});}}else _0x17075f[_0x53404b('0x2092')]({'title':_0x36c1f5[_0x53404b('0x209')]?'API:'+_0x36c1f5[_0x53404b('0x209')]+'\x20-\x20'+_0x36c1f5[_0x53404b('0x1808')]:_0x53404b('0x1371'),'msg':_0x36c1f5[_0x53404b('0x11c2')]?JSON[_0x53404b('0x25e')](_0x36c1f5[_0x53404b('0x11c2')]['message']):_0x36c1f5[_0x53404b('0x174f')]()});});}function _0x910b6a(){var _0x3db491=_0x272716;_0x3c5380[_0x3db491('0x1a69')]=[];if(_0x3c5380[_0x3db491('0x185c')])_0x3c5380['disposition']['ParentId']=_0x3c5380['secondLevelDisposition']['id'],_0x3c5380['disposition'][_0x3db491('0x1ad1')]=_0x3db491('0x1649');else _0x3c5380[_0x3db491('0x1273')]&&(_0x3c5380[_0x3db491('0x22c8')]['ParentId']=_0x3c5380[_0x3db491('0x1273')]['id'],_0x3c5380['disposition']['level']=_0x3db491('0x502'));_0x360d38[_0x3db491('0x22c8')][_0x3db491('0x5ef')]({'id':_0x3c5380[_0x3db491('0x22c8')]['id']},_0x3c5380['disposition'])[_0x3db491('0x1376')][_0x3db491('0x21ad')](function(_0x652e80){var _0x474d6a=_0x3db491,_0x25c5aa=_0x86640f()[_0x474d6a('0x1d2e')](_0x3c5380[_0x474d6a('0x10d0')],{'id':_0x652e80['id']});_0x25c5aa&&_0x86640f()['merge'](_0x25c5aa,_0x86640f()[_0x474d6a('0xc50')](_0x652e80['toJSON'](),_0x86640f()['keys'](_0x25c5aa))),_0x17075f['success']({'title':_0xd5e1c8[_0x474d6a('0x183e')](_0x474d6a('0x16d3'))}),_0x3c5dd8(!![]);})[_0x3db491('0x1c1d')](function(_0xdcabaa){var _0x45c868=_0x3db491;if(_0xdcabaa[_0x45c868('0x11c2')]&&_0xdcabaa['data'][_0x45c868('0x1a69')]&&_0xdcabaa[_0x45c868('0x11c2')]['errors']['length']){_0x3c5380[_0x45c868('0x1a69')]=_0xdcabaa[_0x45c868('0x11c2')][_0x45c868('0x1a69')]||[{'message':_0xdcabaa['toString'](),'type':_0x45c868('0x834')}];for(var _0x4fb400=0x0;_0x4fb400<_0xdcabaa[_0x45c868('0x11c2')]['errors'][_0x45c868('0x577')];_0x4fb400++){_0x17075f[_0x45c868('0x2092')]({'title':_0xdcabaa['data'][_0x45c868('0x1a69')][_0x4fb400]['type'],'msg':_0xdcabaa['data'][_0x45c868('0x1a69')][_0x4fb400][_0x45c868('0x1224')]});}}else _0x17075f[_0x45c868('0x2092')]({'title':_0xdcabaa['status']?_0x45c868('0x22d')+_0xdcabaa[_0x45c868('0x209')]+_0x45c868('0xa99')+_0xdcabaa['statusText']:_0x45c868('0x834'),'msg':_0xdcabaa['data']?JSON[_0x45c868('0x25e')](_0xdcabaa[_0x45c868('0x11c2')][_0x45c868('0x1224')]):_0xdcabaa[_0x45c868('0x174f')]()});});}function _0x170a74(_0x3664a1){var _0xe4df9c=_0x272716;_0x3c5380[_0xe4df9c('0x1a69')]=[];var _0x4f4d18=_0x86640f()[_0xe4df9c('0x2664')](_0x3c5380['dispositions'],[_0xe4df9c('0x198f'),_0x3c5380['disposition']['id']]),_0x1524cf=_0x27c54a[_0xe4df9c('0xa33')]({'skipHide':!![]})['title'](_0xd5e1c8['instant'](_0xe4df9c('0x17b4')))[_0xe4df9c('0x13fb')](_0xd5e1c8['instant'](_0xe4df9c('0x18ec')+(_0x4f4d18?'DISPOSITION_DELETE_MESSAGE_CHILDREN':_0xe4df9c('0x1019')),{'name':_0x3c5380[_0xe4df9c('0x22c8')][_0xe4df9c('0x19fe')]}))[_0xe4df9c('0x7a7')](_0xe4df9c('0x2448'))['ok'](_0xd5e1c8['instant'](_0xe4df9c('0x24b')))[_0xe4df9c('0x3b5')](_0xd5e1c8[_0xe4df9c('0x183e')](_0xe4df9c('0x20ea')))[_0xe4df9c('0x1e6d')](_0x3664a1);_0x27c54a['show'](_0x1524cf)[_0xe4df9c('0x21ad')](function(){var _0x8e4341=_0xe4df9c;_0x360d38[_0x8e4341('0x22c8')]['delete']({'id':_0x3c5380[_0x8e4341('0x22c8')]['id']})[_0x8e4341('0x1376')][_0x8e4341('0x21ad')](function(){var _0x46ea1c=_0x8e4341;_0x17075f['success']({'title':_0xd5e1c8[_0x46ea1c('0x183e')](_0x46ea1c('0x42a'))}),_0x3c5dd8(!![]);})[_0x8e4341('0x1c1d')](function(_0xd165f9){var _0x5e1458=_0x8e4341;if(_0xd165f9[_0x5e1458('0x11c2')]&&_0xd165f9[_0x5e1458('0x11c2')]['errors']&&_0xd165f9[_0x5e1458('0x11c2')][_0x5e1458('0x1a69')][_0x5e1458('0x577')]){_0x3c5380[_0x5e1458('0x1a69')]=_0xd165f9[_0x5e1458('0x11c2')][_0x5e1458('0x1a69')]||[{'message':_0xd165f9[_0x5e1458('0x174f')](),'type':_0x5e1458('0x2de')}];for(var _0x2065a=0x0;_0x2065a<_0xd165f9[_0x5e1458('0x11c2')][_0x5e1458('0x1a69')][_0x5e1458('0x577')];_0x2065a++){_0x17075f['error']({'title':_0xd165f9['data'][_0x5e1458('0x1a69')][_0x2065a][_0x5e1458('0x7fa')],'msg':_0xd165f9[_0x5e1458('0x11c2')]['errors'][_0x2065a][_0x5e1458('0x1224')]});}}else _0x17075f[_0x5e1458('0x2092')]({'title':_0xd165f9[_0x5e1458('0x209')]?'API:'+_0xd165f9[_0x5e1458('0x209')]+_0x5e1458('0xa99')+_0xd165f9['statusText']:_0x5e1458('0x2de'),'msg':_0xd165f9['data']?JSON[_0x5e1458('0x25e')](_0xd165f9['data'][_0x5e1458('0x1224')]):_0xd165f9['message']||_0xd165f9[_0x5e1458('0x174f')]()});});});}function _0x3c5dd8(_0x21d883){var _0x3f86f4=_0x272716;_0x27c54a[_0x3f86f4('0x1c24')](_0x21d883);}}const _0x285db8=_0x13ad56;_0x2111c1['$inject']=['$scope',_0x3877e3('0x24e1'),'$state',_0x3877e3('0x2828'),_0x3877e3('0x1850'),'$document','$timeout',_0x3877e3('0x13c1'),_0x3877e3('0x10d0'),_0x3877e3('0x758'),'userProfileSection','api',_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting'];function _0x2111c1(_0x561edf,_0x260565,_0x24ff4b,_0x577c59,_0x296565,_0x897680,_0x4c303a,_0x146a3d,_0x4be33b,_0x1bf61a,_0x1f798b,_0x3d6816,_0x365c19,_0x4f1191,_0x243298,_0x26fe44){var _0xdc061b=_0x3877e3,_0x306906=this;_0x306906['license']=_0x243298,_0x306906[_0xdc061b('0x21e')]=_0x26fe44,_0x306906[_0xdc061b('0x123f')]=_0x4f1191['getCurrentUser'](),_0x306906[_0xdc061b('0x10d0')]=_0x4be33b||{'count':0x0,'rows':[]},_0x306906[_0xdc061b('0x758')]=_0x1bf61a,_0x306906[_0xdc061b('0xab4')]=_0x1f798b&&_0x1f798b[_0xdc061b('0x205f')]==0x1?_0x1f798b[_0xdc061b('0x1b33')][0x0]:null,_0x306906[_0xdc061b('0x5ed')]=_0x4f1191[_0xdc061b('0x1778')](_0x306906['userProfileSection']?_0x306906[_0xdc061b('0xab4')]['crudPermissions']:null),_0x306906[_0xdc061b('0xa9')]=[],_0x306906[_0xdc061b('0x2525')]={'first':_0xdc061b('0xd08'),'second':_0xdc061b('0x2846'),'third':'3rd'},_0x306906['query']={'fields':_0xdc061b('0x277'),'sort':_0xdc061b('0x33'),'MailAccountId':'null','FaxAccountId':_0xdc061b('0x27a'),'SmsAccountId':'null','OpenchannelAccountId':_0xdc061b('0x27a'),'ChatWebsiteId':_0xdc061b('0x27a'),'WhatsappAccountId':_0xdc061b('0x27a'),'ListId':'null','limit':0xa,'page':0x1},_0x306906[_0xdc061b('0x2593')]=_0x1c2e96,_0x306906[_0xdc061b('0xdb1')]=_0x242397,_0x306906['getDispositions']=_0x2b0104,_0x306906[_0xdc061b('0x25e1')]=_0x4ff2c7,_0x306906[_0xdc061b('0x132f')]=_0x1c26a9,_0x306906['exportSelectedDispositions']=_0x5916ee,_0x306906[_0xdc061b('0x250')]=_0x5d6233,_0x306906[_0xdc061b('0x2061')]=_0x10bca9,_0x306906[_0xdc061b('0x2332')]=_0x37cad9;function _0x4ff2c7(_0x4ebdf5,_0x361bed){var _0x8d9b7c=_0xdc061b;_0x296565[_0x8d9b7c('0x853')]({'controller':'CreateOrEditDispositionDialogController','controllerAs':'vm','templateUrl':_0x3e2462,'parent':angular[_0x8d9b7c('0x1676')](_0x897680['body']),'targetEvent':_0x4ebdf5,'clickOutsideToClose':!![],'locals':{'disposition':_0x361bed,'dispositions':_0x306906[_0x8d9b7c('0x10d0')][_0x8d9b7c('0x1b33')],'model':null,'license':_0x306906[_0x8d9b7c('0x2ff')],'setting':_0x306906[_0x8d9b7c('0x21e')],'crudPermissions':_0x306906[_0x8d9b7c('0x5ed')]}})['then'](function(_0x4688c0){if(_0x4688c0===!![])_0x2b0104();});}function _0x1c2e96(_0x26cae4,_0x2f0efd){var _0xb3c0e1=_0xdc061b,_0x2d90ff=_0x86640f()[_0xb3c0e1('0x2664')](_0x306906[_0xb3c0e1('0x10d0')][_0xb3c0e1('0x1b33')],[_0xb3c0e1('0x198f'),_0x26cae4['id']]),_0x5497d9=_0x296565['confirm']()[_0xb3c0e1('0x4b4')](_0x146a3d['instant'](_0xb3c0e1('0x17b4')))[_0xb3c0e1('0x13fb')](_0x146a3d['instant']('TOOLS.NOTIFICATIONS.'+(_0x2d90ff?_0xb3c0e1('0x636'):_0xb3c0e1('0x1019')),{'name':_0x26cae4['name']}))[_0xb3c0e1('0x7a7')]('Delete\x20disposition')[_0xb3c0e1('0x1e6d')](_0x2f0efd)['ok']('OK')[_0xb3c0e1('0x3b5')](_0x146a3d[_0xb3c0e1('0x183e')](_0xb3c0e1('0x20ea')));_0x296565['show'](_0x5497d9)['then'](function(){_0x1c26a9(_0x26cae4);});}function _0x242397(_0x2255ae){var _0x260abe=_0xdc061b;_0x306906[_0x260abe('0x10d0')]=_0x2255ae||{'count':0x0,'rows':[]};}function _0x2b0104(){var _0x17819f=_0xdc061b;_0x306906[_0x17819f('0x77')]['offset']=(_0x306906[_0x17819f('0x77')][_0x17819f('0x2376')]-0x1)*_0x306906['query'][_0x17819f('0x1f4a')],_0x4f1191[_0x17819f('0xcfc')]()?_0x306906['promise']=_0x3d6816['disposition'][_0x17819f('0x595')](_0x306906['query'],_0x242397)[_0x17819f('0x1376')]:(_0x306906[_0x17819f('0x77')]['id']=_0x306906[_0x17819f('0x758')]['id'],_0x306906[_0x17819f('0x77')]['section']='Dispositions',_0x306906[_0x17819f('0x71b')]=_0x3d6816[_0x17819f('0x758')]['getResources'](_0x306906['query'],_0x242397)['$promise']);}function _0x1c26a9(_0x3f6e77){var _0xfafdb8=_0xdc061b;_0x3d6816[_0xfafdb8('0x22c8')][_0xfafdb8('0x1164')]({'id':_0x3f6e77['id']})[_0xfafdb8('0x1376')][_0xfafdb8('0x21ad')](function(){var _0x3906cf=_0xfafdb8;_0x2b0104(),_0x365c19['success']({'title':_0x146a3d[_0x3906cf('0x183e')](_0x3906cf('0x42a'))});})[_0xfafdb8('0x1c1d')](function(_0x27fa23){var _0x24d343=_0xfafdb8;if(_0x27fa23[_0x24d343('0x11c2')]&&_0x27fa23['data'][_0x24d343('0x1a69')]&&_0x27fa23[_0x24d343('0x11c2')]['errors'][_0x24d343('0x577')]){_0x306906[_0x24d343('0x1a69')]=_0x27fa23[_0x24d343('0x11c2')]['errors']||[{'message':_0x27fa23[_0x24d343('0x174f')](),'type':_0x24d343('0x10d3')}];for(var _0x4fdb89=0x0;_0x4fdb89<_0x27fa23['data'][_0x24d343('0x1a69')][_0x24d343('0x577')];_0x4fdb89++){_0x365c19[_0x24d343('0x2092')]({'title':_0x27fa23['data'][_0x24d343('0x1a69')][_0x4fdb89]['type'],'msg':_0x27fa23[_0x24d343('0x11c2')][_0x24d343('0x1a69')][_0x4fdb89]['message']});}}else _0x365c19[_0x24d343('0x2092')]({'title':_0x27fa23[_0x24d343('0x209')]?_0x24d343('0x22d')+_0x27fa23[_0x24d343('0x209')]+_0x24d343('0xa99')+_0x27fa23[_0x24d343('0x1808')]:_0x24d343('0x10d3'),'msg':_0x27fa23['data']?JSON['stringify'](_0x27fa23[_0x24d343('0x11c2')][_0x24d343('0x1224')]):_0x27fa23['message']||_0x27fa23[_0x24d343('0x174f')]()});});}function _0x5916ee(){var _0x50e907=_0xdc061b,_0x416e0d=angular[_0x50e907('0xd75')](_0x306906[_0x50e907('0xa9')]);return _0x306906[_0x50e907('0xa9')]=[],_0x416e0d;}function _0x5d6233(_0x768117){var _0x21ecd1=_0xdc061b,_0x4bf764=_0x296565[_0x21ecd1('0xa33')]()[_0x21ecd1('0x4b4')](_0x146a3d[_0x21ecd1('0x183e')](_0x21ecd1('0x1477')))[_0x21ecd1('0x13fb')](_0x146a3d['instant'](_0x21ecd1('0x212d'),{'total':_0x306906['selectedDispositions'][_0x21ecd1('0x577')]}))['ariaLabel']('Delete\x20dispositions')[_0x21ecd1('0x1e6d')](_0x768117)['ok']('OK')[_0x21ecd1('0x3b5')](_0x146a3d[_0x21ecd1('0x183e')](_0x21ecd1('0x20ea')));_0x296565['show'](_0x4bf764)[_0x21ecd1('0x21ad')](function(){var _0x52c553=_0x21ecd1;_0x306906['selectedDispositions'][_0x52c553('0x1a52')](function(_0x4aac7f){_0x1c26a9(_0x4aac7f);}),_0x306906[_0x52c553('0xa9')]=[];});}function _0x10bca9(){var _0x3d8339=_0xdc061b;_0x306906[_0x3d8339('0xa9')]=[];}function _0x37cad9(){var _0x3cbb65=_0xdc061b;_0x306906[_0x3cbb65('0xa9')]=_0x306906['dispositions'][_0x3cbb65('0x1b33')];}var _0x1c0bde=!![],_0x221261=0x1;_0x561edf['$watch']('vm.query.filter',function(_0x14faa7,_0x3f3cad){var _0x152533=_0xdc061b;_0x1c0bde?_0x4c303a(function(){_0x1c0bde=![];}):(!_0x3f3cad&&(_0x221261=_0x306906[_0x152533('0x77')][_0x152533('0x2376')]),_0x14faa7!==_0x3f3cad&&(_0x306906[_0x152533('0x77')]['page']=0x1),!_0x14faa7&&(_0x306906['query'][_0x152533('0x2376')]=_0x221261),_0x2b0104());});}const _0x456510=_0x2111c1;_0x250229[_0x3877e3('0x1a81')]=['$stateProvider'];function _0x250229(_0x88a689){var _0x1748cd=_0x3877e3;_0x88a689['state'](_0x1748cd('0x8e8'),{'url':_0x1748cd('0x7ca'),'views':{'content@app':{'templateUrl':_0x1afccb,'controller':_0x1748cd('0x253a')}},'resolve':{'dispositions':[_0x1748cd('0x354'),_0x1748cd('0x15bc'),function _0x13f970(_0x18b38b,_0x24364e){var _0x265d90=_0x1748cd;return _0x24364e[_0x265d90('0x21de')](_0x265d90('0x1bd8'))?_0x18b38b[_0x265d90('0x8ac')]('disposition@get',{'fields':_0x265d90('0x277'),'sort':_0x265d90('0x33'),'MailAccountId':'null','FaxAccountId':_0x265d90('0x27a'),'SmsAccountId':_0x265d90('0x27a'),'OpenchannelAccountId':_0x265d90('0x27a'),'ChatWebsiteId':'null','WhatsappAccountId':_0x265d90('0x27a'),'ListId':_0x265d90('0x27a'),'limit':0xa,'offset':0x0}):_0x18b38b['resolve'](_0x265d90('0x52f'),{'id':_0x24364e[_0x265d90('0x15ed')]()[_0x265d90('0x1618')],'section':_0x265d90('0x185'),'fields':_0x265d90('0x277'),'sort':_0x265d90('0x33'),'MailAccountId':_0x265d90('0x27a'),'FaxAccountId':'null','SmsAccountId':_0x265d90('0x27a'),'OpenchannelAccountId':_0x265d90('0x27a'),'ChatWebsiteId':'null','WhatsappAccountId':'null','ListId':_0x265d90('0x27a'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x1748cd('0x354'),_0x1748cd('0x15bc'),function _0x3b79d5(_0x2c1e7f,_0x4ea227){var _0x28d4c8=_0x1748cd;return _0x4ea227[_0x28d4c8('0x21de')](_0x28d4c8('0x1bd8'))?null:_0x2c1e7f[_0x28d4c8('0x8ac')](_0x28d4c8('0x1e1d'),{'fields':_0x28d4c8('0x1a00'),'id':_0x4ea227[_0x28d4c8('0x15ed')]()[_0x28d4c8('0x1618')]});}],'userProfileSection':[_0x1748cd('0x354'),'Auth',function _0x419e21(_0x2ba50e,_0x24c071){var _0x59e294=_0x1748cd;return _0x24c071[_0x59e294('0x21de')](_0x59e294('0x1bd8'))?null:_0x2ba50e[_0x59e294('0x8ac')](_0x59e294('0x222f'),{'fields':_0x59e294('0x1852'),'userProfileId':_0x24c071[_0x59e294('0x15ed')]()[_0x59e294('0x1618')],'sectionId':0x3ea});}]},'authenticate':!![],'permissionId':0x3ea,'bodyClass':_0x1748cd('0xeb3')});}angular[_0x3877e3('0x20d5')](_0x3877e3('0x8e8'),[])[_0x3877e3('0x13')](_0x250229)['controller'](_0x3877e3('0xdd9'),_0x285db8)['controller'](_0x3877e3('0x13d0'),_0x456510);const _0x36466d=_0x398308['p']+_0x3877e3('0x2237'),_0x21106e=_0x398308['p']+'src/js/modules/main/apps/tools/views/triggers/edit/view.html/view-[chunkhash].html';_0xe67dcc['$inject']=[_0x3877e3('0x1850'),'$translate','toasty',_0x3877e3('0x1e92'),'trigger',_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0xe67dcc(_0x3f23e9,_0x560756,_0xd568ba,_0x14d193,_0x24968c,_0x112cba,_0x306a4d,_0x42c1e8,_0x2694ff,_0x360965){var _0x4d535b=_0x3877e3,_0x442001=this;_0x442001[_0x4d535b('0x123f')]=_0x306a4d['getCurrentUser'](),_0x442001[_0x4d535b('0x23b9')]=angular[_0x4d535b('0xd75')](_0x24968c),_0x442001['triggers']=angular[_0x4d535b('0xd75')](_0x14d193),_0x442001[_0x4d535b('0x21e')]=_0x2694ff,_0x442001[_0x4d535b('0x2ff')]=_0x42c1e8,_0x442001[_0x4d535b('0x5ed')]=_0x360965,_0x442001['newTrigger']=![],_0x442001['errors']=[];!_0x442001[_0x4d535b('0x23b9')]&&(_0x442001['trigger']={'channel':_0x4d535b('0x8ed')},_0x442001[_0x4d535b('0x27c9')]=!![]);_0x442001['addNewTrigger']=_0x341d06,_0x442001['saveTrigger']=_0x52c714,_0x442001[_0x4d535b('0x3d6')]=_0x2c3010,_0x442001[_0x4d535b('0x167')]=_0x372cf3;function _0x341d06(){var _0x26d35f=_0x4d535b;_0x442001[_0x26d35f('0x1a69')]=[],_0x112cba[_0x26d35f('0x23b9')][_0x26d35f('0x186f')](_0x442001[_0x26d35f('0x23b9')])['$promise'][_0x26d35f('0x21ad')](function(_0xc85667){var _0x49525f=_0x26d35f;_0x442001[_0x49525f('0x1e92')]['unshift'](_0xc85667[_0x49525f('0x3bc')]()),_0xd568ba[_0x49525f('0xdb1')]({'title':_0x560756['instant'](_0x49525f('0x7c0'))}),_0x372cf3(_0x442001[_0x49525f('0x1e92')]);})[_0x26d35f('0x1c1d')](function(_0xc2120){var _0x2a3c89=_0x26d35f;if(_0xc2120[_0x2a3c89('0x11c2')]&&_0xc2120[_0x2a3c89('0x11c2')][_0x2a3c89('0x1a69')]&&_0xc2120['data'][_0x2a3c89('0x1a69')][_0x2a3c89('0x577')]){_0x442001['errors']=_0xc2120[_0x2a3c89('0x11c2')][_0x2a3c89('0x1a69')]||[{'message':_0xc2120[_0x2a3c89('0x174f')](),'type':_0x2a3c89('0x1c5b')}];for(var _0x5b476b=0x0;_0x5b476b<_0xc2120[_0x2a3c89('0x11c2')]['errors'][_0x2a3c89('0x577')];_0x5b476b+=0x1){_0xd568ba[_0x2a3c89('0x2092')]({'title':_0xc2120[_0x2a3c89('0x11c2')]['errors'][_0x5b476b][_0x2a3c89('0x7fa')],'msg':_0xc2120['data']['errors'][_0x5b476b][_0x2a3c89('0x1224')]});}}else _0xd568ba[_0x2a3c89('0x2092')]({'title':_0xc2120[_0x2a3c89('0x209')]?'API:'+_0xc2120[_0x2a3c89('0x209')]+_0x2a3c89('0xa99')+_0xc2120[_0x2a3c89('0x1808')]:_0x2a3c89('0x1c5b'),'msg':_0xc2120[_0x2a3c89('0x11c2')]?JSON[_0x2a3c89('0x25e')](_0xc2120[_0x2a3c89('0x11c2')][_0x2a3c89('0x1224')]):_0xc2120[_0x2a3c89('0x174f')]()});});}function _0x52c714(){var _0x52aa36=_0x4d535b;_0x442001[_0x52aa36('0x1a69')]=[],_0x112cba['trigger'][_0x52aa36('0x5ef')]({'id':_0x442001[_0x52aa36('0x23b9')]['id']},_0x442001[_0x52aa36('0x23b9')])[_0x52aa36('0x1376')][_0x52aa36('0x21ad')](function(){var _0x400ff9=_0x52aa36;_0x442001['triggers']=_0x86640f()[_0x400ff9('0x26c3')](_0x442001[_0x400ff9('0x1e92')],function(_0x433719){var _0x29cb8b=_0x400ff9;if(_0x433719['id']===_0x442001[_0x29cb8b('0x23b9')]['id'])return _0x442001[_0x29cb8b('0x23b9')];else return _0x433719;}),_0xd568ba[_0x400ff9('0xdb1')]({'title':_0x560756[_0x400ff9('0x183e')](_0x400ff9('0x1aee'))}),_0x372cf3(_0x442001['triggers']);})[_0x52aa36('0x1c1d')](function(_0x5e66cc){var _0x1d0903=_0x52aa36;if(_0x5e66cc[_0x1d0903('0x11c2')]&&_0x5e66cc[_0x1d0903('0x11c2')][_0x1d0903('0x1a69')]&&_0x5e66cc['data'][_0x1d0903('0x1a69')][_0x1d0903('0x577')]){_0x442001[_0x1d0903('0x1a69')]=_0x5e66cc[_0x1d0903('0x11c2')][_0x1d0903('0x1a69')]||[{'message':_0x5e66cc[_0x1d0903('0x174f')](),'type':_0x1d0903('0x15e8')}];for(var _0x4e537a=0x0;_0x4e537a<_0x5e66cc[_0x1d0903('0x11c2')][_0x1d0903('0x1a69')][_0x1d0903('0x577')];_0x4e537a++){_0xd568ba[_0x1d0903('0x2092')]({'title':_0x5e66cc['data']['errors'][_0x4e537a][_0x1d0903('0x7fa')],'msg':_0x5e66cc[_0x1d0903('0x11c2')][_0x1d0903('0x1a69')][_0x4e537a][_0x1d0903('0x1224')]});}}else _0xd568ba[_0x1d0903('0x2092')]({'title':_0x5e66cc[_0x1d0903('0x209')]?_0x1d0903('0x22d')+_0x5e66cc['status']+_0x1d0903('0xa99')+_0x5e66cc['statusText']:_0x1d0903('0x15e8'),'msg':_0x5e66cc[_0x1d0903('0x11c2')]?JSON[_0x1d0903('0x25e')](_0x5e66cc[_0x1d0903('0x11c2')][_0x1d0903('0x1224')]):_0x5e66cc[_0x1d0903('0x174f')]()});});}function _0x2c3010(_0x24c2dc){var _0x45058c=_0x4d535b;_0x442001[_0x45058c('0x1a69')]=[];var _0x3116d3=_0x3f23e9[_0x45058c('0xa33')]({'skipHide':!![]})[_0x45058c('0x4b4')](_0x560756[_0x45058c('0x183e')]('TOOLS.NOTIFICATIONS.TRIGGER_DELETE_TITLE'))[_0x45058c('0x13fb')](_0x560756['instant'](_0x45058c('0x1751'),{'name':_0x442001[_0x45058c('0x23b9')]['name']}))[_0x45058c('0x7a7')](_0x45058c('0x248e'))['ok'](_0x560756[_0x45058c('0x183e')]('TOOLS.DELETE'))[_0x45058c('0x3b5')](_0x560756[_0x45058c('0x183e')](_0x45058c('0x20ea')))[_0x45058c('0x1e6d')](_0x24c2dc);_0x3f23e9[_0x45058c('0x853')](_0x3116d3)[_0x45058c('0x21ad')](function(){var _0x365846=_0x45058c;_0x112cba['trigger'][_0x365846('0x1164')]({'id':_0x442001['trigger']['id']})['$promise'][_0x365846('0x21ad')](function(){var _0x3f2c4f=_0x365846;_0x442001[_0x3f2c4f('0x1e92')]=_0x86640f()[_0x3f2c4f('0x1503')](_0x442001[_0x3f2c4f('0x1e92')],function(_0x2bb4a7){var _0x4da025=_0x3f2c4f;return _0x2bb4a7['id']!==_0x442001[_0x4da025('0x23b9')]['id'];}),_0xd568ba[_0x3f2c4f('0xdb1')]({'title':_0x560756['instant'](_0x3f2c4f('0x193f'))}),_0x372cf3(_0x442001[_0x3f2c4f('0x1e92')]);})['catch'](function(_0x2b1b1e){var _0x57a8da=_0x365846;if(_0x2b1b1e[_0x57a8da('0x11c2')]&&_0x2b1b1e['data'][_0x57a8da('0x1a69')]&&_0x2b1b1e[_0x57a8da('0x11c2')][_0x57a8da('0x1a69')][_0x57a8da('0x577')]){_0x442001[_0x57a8da('0x1a69')]=_0x2b1b1e[_0x57a8da('0x11c2')][_0x57a8da('0x1a69')]||[{'message':_0x2b1b1e['toString'](),'type':_0x57a8da('0xc86')}];for(var _0x1df441=0x0;_0x1df441<_0x2b1b1e['data']['errors'][_0x57a8da('0x577')];_0x1df441++){_0xd568ba[_0x57a8da('0x2092')]({'title':_0x2b1b1e['data']['errors'][_0x1df441][_0x57a8da('0x7fa')],'msg':_0x2b1b1e[_0x57a8da('0x11c2')][_0x57a8da('0x1a69')][_0x1df441]['message']});}}else _0xd568ba[_0x57a8da('0x2092')]({'title':_0x2b1b1e[_0x57a8da('0x209')]?_0x57a8da('0x22d')+_0x2b1b1e[_0x57a8da('0x209')]+'\x20-\x20'+_0x2b1b1e[_0x57a8da('0x1808')]:_0x57a8da('0xc86'),'msg':_0x2b1b1e['data']?JSON[_0x57a8da('0x25e')](_0x2b1b1e[_0x57a8da('0x11c2')][_0x57a8da('0x1224')]):_0x2b1b1e['message']||_0x2b1b1e['toString']()});});},function(){});}function _0x372cf3(_0x408fb9){_0x3f23e9['hide'](_0x408fb9);}}const _0x4f0df0=_0xe67dcc,_0x3a6d78=_0x398308['p']+_0x3877e3('0x1f92');_0x248f00[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x13c1'),_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x15bc')];function _0x248f00(_0x53e51d,_0x266889,_0x571ccb,_0x1db833,_0x2d9ea7,_0x39fe00,_0x2e8da3,_0x2bde6f){var _0x40a3ce=_0x3877e3,_0x479825=this;_0x479825[_0x40a3ce('0x123f')]=_0x2bde6f[_0x40a3ce('0x15ed')](),_0x479825[_0x40a3ce('0x23b9')]={},_0x479825[_0x40a3ce('0xf92')]={'count':0x0,'rows':[]},_0x479825[_0x40a3ce('0x40e')]=[],_0x479825[_0x40a3ce('0x77')]={'fields':_0x40a3ce('0x166f'),'limit':0xa,'page':0x1},_0x479825[_0x40a3ce('0x844')]={'zendesk':_0x40a3ce('0x1f67'),'salesforce':_0x40a3ce('0x29c'),'sugarcrm':_0x40a3ce('0x1d54'),'freshdesk':_0x40a3ce('0x232f'),'desk':'Desk','zoho':'Zoho','vtiger':_0x40a3ce('0x1128'),'dynamics365':'Dynamics365','servicenow':_0x40a3ce('0x1360'),'freshsales':_0x40a3ce('0x7f7')},_0x479825[_0x40a3ce('0xa16')]={0x0:_0x40a3ce('0x2832'),0x1:'CTI\x20URL',0x2:_0x40a3ce('0x11fd')},_0x479825[_0x40a3ce('0x1081')]=_0x628304,_0x479825['success']=_0x529aaa,_0x479825[_0x40a3ce('0x334')]=_0x307fb2,_0x479825['createOrEditTriggerAction']=_0x1c4436,_0x479825[_0x40a3ce('0xef6')]=_0x3bedc7,_0x479825['deleteConfirm']=_0x57fd40,_0x479825[_0x40a3ce('0x248a')]=_0x345cf8;function _0x628304(_0x9edac4,_0x3e0bf0){var _0x4c5bbf=_0x40a3ce;_0x479825[_0x4c5bbf('0x23b9')]=_0x9edac4,_0x479825[_0x4c5bbf('0x5ed')]=typeof _0x3e0bf0!==_0x4c5bbf('0xddc')?_0x3e0bf0:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x479825[_0x4c5bbf('0x77')]['ActionId']=_0x479825[_0x4c5bbf('0x23b9')]['id'],_0x479825[_0x4c5bbf('0x77')]['id']=_0x479825[_0x4c5bbf('0x23b9')]['id'],_0x307fb2();}function _0x195cd4(){var _0x3aeb35=_0x40a3ce;_0x2bde6f['isAdmin']()?_0x2e8da3[_0x3aeb35('0x11e0')]['get']({'fields':'id,name','sort':_0x3aeb35('0x19fe'),'nolimit':_0x3aeb35('0x19bd')})[_0x3aeb35('0x1376')][_0x3aeb35('0x21ad')](function(_0x2fd791){_0x479825['lists']=_0x2fd791['rows']||[];})['catch'](function(_0x2303a9){var _0x3d91ce=_0x3aeb35;_0x39fe00['error']({'title':_0x2303a9[_0x3d91ce('0x209')]?'API:'+_0x2303a9[_0x3d91ce('0x209')]+'\x20-\x20'+_0x2303a9[_0x3d91ce('0x1808')]:'SYSTEM:GET_LISTS','msg':_0x2303a9['data']?JSON[_0x3d91ce('0x25e')](_0x2303a9[_0x3d91ce('0x11c2')]):_0x2303a9[_0x3d91ce('0x174f')]()});}):_0x2e8da3[_0x3aeb35('0x11e0')][_0x3aeb35('0x595')]({'fields':_0x3aeb35('0x1aa8'),'sort':_0x3aeb35('0x19fe'),'nolimit':_0x3aeb35('0x19bd')})['$promise'][_0x3aeb35('0x21ad')](function(_0x4f3227){var _0x52ac48=_0x3aeb35;_0x479825['lists']=_0x4f3227[_0x52ac48('0x1b33')]||[];})['then'](function(){var _0x4e6ee9=_0x3aeb35;return _0x2e8da3[_0x4e6ee9('0xab4')][_0x4e6ee9('0x595')]({'userProfileId':_0x479825[_0x4e6ee9('0x123f')][_0x4e6ee9('0x1618')],'sectionId':0x12d})[_0x4e6ee9('0x1376')];})['then'](function(_0x52730b){var _0x13247e=_0x3aeb35,_0x383b07=_0x52730b&&_0x52730b['rows']?_0x52730b['rows'][0x0]:null;if(!_0x383b07){var _0x56bb78=[],_0x42117f=[];_0x479825['triggerActions'][_0x13247e('0x1b33')][_0x13247e('0x1a52')](function(_0x25f8fd){var _0xd1d5e1=_0x13247e;if(_0x25f8fd[_0xd1d5e1('0x9fc')]===_0xd1d5e1('0xdeb')){var _0x3c8d0e=_0x86640f()[_0xd1d5e1('0x1d2e')](_0x479825['lists'],{'id':Number(_0x25f8fd[_0xd1d5e1('0x1f5c')])});_0x42117f[_0xd1d5e1('0x206c')](_0x3c8d0e);}});for(var _0x4e4452=0x0;_0x4e4452<_0x479825[_0x13247e('0x1972')][_0x13247e('0x577')];_0x4e4452++){var _0x2a3509=_0x86640f()[_0x13247e('0x2664')](_0x42117f,{'id':_0x479825['lists'][_0x4e4452]['id']});_0x2a3509&&(_0x479825[_0x13247e('0x1972')][_0x4e4452]['canSelect']=![],_0x56bb78[_0x13247e('0x206c')](_0x479825[_0x13247e('0x1972')][_0x4e4452]));}_0x479825[_0x13247e('0x1972')]=_0x56bb78;}else{if(!_0x383b07[_0x13247e('0x80c')])return _0x2e8da3[_0x13247e('0x185e')]['get']({'sectionId':_0x383b07['id']})[_0x13247e('0x1376')]['then'](function(_0x16e4ff){var _0x1a729f=_0x13247e,_0x3c6c78=_0x86640f()[_0x1a729f('0x26c3')](_0x16e4ff['rows'],function(_0x46e307){var _0x1ee95d=_0x1a729f;return _0x86640f()[_0x1ee95d('0x1d2e')](_0x479825[_0x1ee95d('0x1972')],{'id':_0x46e307[_0x1ee95d('0x675')]});}),_0x2c6ba2=null;_0x2c6ba2=[],_0x479825['triggerActions'][_0x1a729f('0x1b33')]['forEach'](function(_0x462922){var _0x16100b=_0x1a729f;if(_0x462922[_0x16100b('0x9fc')]===_0x16100b('0xdeb')){var _0x1a3c1c=_0x86640f()[_0x16100b('0x1d2e')](_0x479825['lists'],{'id':Number(_0x462922[_0x16100b('0x1f5c')])});_0x2c6ba2[_0x16100b('0x206c')](_0x1a3c1c);}}),!_0x86640f()[_0x1a729f('0x23aa')](_0x2c6ba2)&&_0x2c6ba2['forEach'](function(_0xd016f0){var _0x1c8d9d=_0x1a729f;if(!_0x86640f()['some'](_0x3c6c78,['id',_0xd016f0['id']])){var _0x130192=_0x86640f()[_0x1c8d9d('0x1d2e')](_0x479825[_0x1c8d9d('0x1972')],{'id':_0xd016f0['id']});_0x130192['canSelect']=![],_0x3c6c78['push'](_0x130192);}}),_0x479825['lists']=_0x3c6c78;});}})[_0x3aeb35('0x1c1d')](function(_0x492e4e){var _0x177a2c=_0x3aeb35;_0x39fe00['error']({'title':_0x492e4e['status']?_0x177a2c('0x22d')+_0x492e4e['status']+'\x20-\x20'+_0x492e4e[_0x177a2c('0x1808')]:'SYSTEM:GETlists','msg':_0x492e4e[_0x177a2c('0x11c2')]?JSON[_0x177a2c('0x25e')](_0x492e4e[_0x177a2c('0x11c2')]):_0x492e4e[_0x177a2c('0x174f')]()});});}function _0x2ce98f(){var _0x2d8a79=_0x40a3ce,_0xfea739=_0x86640f()(_0x479825['triggerActions']['rows'])[_0x2d8a79('0x26c3')](function(_0x42131b){var _0x39e5dc=_0x2d8a79;return _0x42131b[_0x39e5dc('0x9fc')]==='integration'?_0x42131b['data1']:undefined;})[_0x2d8a79('0x596')]()[_0x2d8a79('0x2691')]()[_0x2d8a79('0x2228')]();_0xfea739['forEach'](function(_0x55a8d4){var _0xaf9280=_0x2d8a79,_0x5737a9=_0x55a8d4+_0xaf9280('0x13c5');if(!_0x479825[_0x5737a9]){var _0x13b782=_0xaf9280('0xff1')+_0x86640f()[_0xaf9280('0x2159')](_0x55a8d4)+_0xaf9280('0x5f0');_0x2e8da3[_0x13b782]['get']({'fields':_0xaf9280('0x1aa8'),'sort':'id','nolimit':_0xaf9280('0x19bd')})[_0xaf9280('0x1376')][_0xaf9280('0x21ad')](function(_0x404a6a){var _0x4d9682=_0xaf9280;_0x479825[_0x5737a9]=_0x404a6a[_0x4d9682('0x1b33')]||[];})[_0xaf9280('0x1c1d')](function(_0x59a90d){var _0x56678b=_0xaf9280;_0x39fe00[_0x56678b('0x2092')]({'title':_0x59a90d['status']?'API:'+_0x59a90d[_0x56678b('0x209')]+_0x56678b('0xa99')+_0x59a90d[_0x56678b('0x1808')]:_0x56678b('0xe7e')+_0x5737a9['toUpperCase']()+_0x56678b('0x1873'),'msg':_0x59a90d[_0x56678b('0x11c2')]?JSON['stringify'](_0x59a90d[_0x56678b('0x11c2')]):_0x59a90d[_0x56678b('0x174f')]()});});}});}function _0x105792(){var _0x246a0b=_0x40a3ce;_0x2bde6f['isAdmin']()?_0x2e8da3[_0x246a0b('0xe61')][_0x246a0b('0x595')]({'fields':_0x246a0b('0x1aa8'),'sort':_0x246a0b('0x19fe'),'nolimit':'true'})[_0x246a0b('0x1376')][_0x246a0b('0x21ad')](function(_0x13e5a9){var _0x27bdc4=_0x246a0b;_0x479825[_0x27bdc4('0xc0f')]=_0x13e5a9[_0x27bdc4('0x1b33')]||[];})[_0x246a0b('0x1c1d')](function(_0x5a13fd){var _0x4b71cb=_0x246a0b;_0x39fe00[_0x4b71cb('0x2092')]({'title':_0x5a13fd[_0x4b71cb('0x209')]?_0x4b71cb('0x22d')+_0x5a13fd['status']+_0x4b71cb('0xa99')+_0x5a13fd['statusText']:_0x4b71cb('0xca2'),'msg':_0x5a13fd[_0x4b71cb('0x11c2')]?JSON[_0x4b71cb('0x25e')](_0x5a13fd[_0x4b71cb('0x11c2')]):_0x5a13fd['toString']()});}):_0x2e8da3[_0x246a0b('0xe61')][_0x246a0b('0x595')]({'fields':_0x246a0b('0x1aa8'),'sort':_0x246a0b('0x19fe'),'nolimit':_0x246a0b('0x19bd')})[_0x246a0b('0x1376')][_0x246a0b('0x21ad')](function(_0x589d75){var _0x573407=_0x246a0b;_0x479825[_0x573407('0xc0f')]=_0x589d75['rows']||[];})[_0x246a0b('0x21ad')](function(){var _0x4bb50b=_0x246a0b;return _0x2e8da3[_0x4bb50b('0xab4')][_0x4bb50b('0x595')]({'userProfileId':_0x479825[_0x4bb50b('0x123f')][_0x4bb50b('0x1618')],'sectionId':0x6a5})[_0x4bb50b('0x1376')];})[_0x246a0b('0x21ad')](function(_0x4d799a){var _0xed1663=_0x246a0b,_0x407238=_0x4d799a&&_0x4d799a[_0xed1663('0x1b33')]?_0x4d799a[_0xed1663('0x1b33')][0x0]:null;if(!_0x407238){var _0x573ccd=[],_0x331957=[];_0x479825['triggerActions'][_0xed1663('0x1b33')][_0xed1663('0x1a52')](function(_0x46e2de){var _0x432223=_0xed1663;if(_0x46e2de[_0x432223('0x9fc')]===_0x432223('0x9c7')){var _0x3e0613=_0x86640f()[_0x432223('0x1d2e')](_0x479825[_0x432223('0xc0f')],{'id':Number(_0x46e2de[_0x432223('0x1f5c')])});_0x331957[_0x432223('0x206c')](_0x3e0613);}});for(var _0x1a6895=0x0;_0x1a6895<_0x479825[_0xed1663('0xc0f')][_0xed1663('0x577')];_0x1a6895++){var _0x24c4a4=_0x86640f()[_0xed1663('0x2664')](_0x331957,{'id':_0x479825[_0xed1663('0xc0f')][_0x1a6895]['id']});_0x24c4a4&&(_0x479825['projects'][_0x1a6895]['canSelect']=![],_0x573ccd['push'](_0x479825[_0xed1663('0xc0f')][_0x1a6895]));}_0x479825[_0xed1663('0xc0f')]=_0x573ccd;}else{if(!_0x407238['autoAssociation'])return _0x2e8da3['userProfileResource'][_0xed1663('0x595')]({'sectionId':_0x407238['id']})['$promise'][_0xed1663('0x21ad')](function(_0x308511){var _0x2365d6=_0xed1663,_0x4a0a4f=_0x86640f()[_0x2365d6('0x26c3')](_0x308511['rows'],function(_0x439dc7){var _0x303737=_0x2365d6;return _0x86640f()[_0x303737('0x1d2e')](_0x479825[_0x303737('0xc0f')],{'id':_0x439dc7[_0x303737('0x675')]});}),_0x120b81=null;_0x120b81=[],_0x479825[_0x2365d6('0xf92')]['rows'][_0x2365d6('0x1a52')](function(_0x4c5b6e){var _0x152785=_0x2365d6;if(_0x4c5b6e[_0x152785('0x9fc')]===_0x152785('0x9c7')){var _0x23deab=_0x86640f()[_0x152785('0x1d2e')](_0x479825[_0x152785('0xc0f')],{'id':Number(_0x4c5b6e[_0x152785('0x1f5c')])});_0x120b81[_0x152785('0x206c')](_0x23deab);}}),!_0x86640f()[_0x2365d6('0x23aa')](_0x120b81)&&_0x120b81['forEach'](function(_0x5156a3){var _0x9dfaea=_0x2365d6;if(!_0x86640f()[_0x9dfaea('0x2664')](_0x4a0a4f,['id',_0x5156a3['id']])){var _0x548a31=_0x86640f()[_0x9dfaea('0x1d2e')](_0x479825[_0x9dfaea('0xc0f')],{'id':_0x5156a3['id']});_0x548a31[_0x9dfaea('0xba')]=![],_0x4a0a4f['push'](_0x548a31);}}),_0x479825[_0x2365d6('0xc0f')]=_0x4a0a4f;});}})['catch'](function(_0x1b0693){var _0x14e45b=_0x246a0b;_0x39fe00[_0x14e45b('0x2092')]({'title':_0x1b0693[_0x14e45b('0x209')]?_0x14e45b('0x22d')+_0x1b0693[_0x14e45b('0x209')]+_0x14e45b('0xa99')+_0x1b0693[_0x14e45b('0x1808')]:_0x14e45b('0x1859'),'msg':_0x1b0693[_0x14e45b('0x11c2')]?JSON[_0x14e45b('0x25e')](_0x1b0693['data']):_0x1b0693[_0x14e45b('0x174f')]()});});}function _0x4c0748(){var _0x3f5c98=_0x40a3ce;_0x2bde6f['isAdmin']()?_0x2e8da3['template'][_0x3f5c98('0x595')]({'fields':'id,name','sort':'id','nolimit':'true'})['$promise'][_0x3f5c98('0x21ad')](function(_0x4bac5c){var _0x22ef3a=_0x3f5c98;_0x479825['templates']=_0x4bac5c[_0x22ef3a('0x1b33')]||[];})[_0x3f5c98('0x1c1d')](function(_0xb2bd5){var _0x265844=_0x3f5c98;_0x39fe00[_0x265844('0x2092')]({'title':_0xb2bd5[_0x265844('0x209')]?'API:'+_0xb2bd5[_0x265844('0x209')]+_0x265844('0xa99')+_0xb2bd5['statusText']:'SYSTEM:GET_TEMPLATES','msg':_0xb2bd5[_0x265844('0x11c2')]?JSON[_0x265844('0x25e')](_0xb2bd5['data']):_0xb2bd5[_0x265844('0x174f')]()});}):_0x2e8da3[_0x3f5c98('0x1a51')][_0x3f5c98('0x595')]({'fields':_0x3f5c98('0x1aa8'),'sort':'id','nolimit':'true'})[_0x3f5c98('0x1376')][_0x3f5c98('0x21ad')](function(_0x3553a3){var _0x5d7650=_0x3f5c98;_0x479825[_0x5d7650('0x942')]=_0x3553a3['rows']||[];})['then'](function(){var _0x41c9aa=_0x3f5c98;return _0x2e8da3[_0x41c9aa('0xab4')][_0x41c9aa('0x595')]({'userProfileId':_0x479825['currentUser'][_0x41c9aa('0x1618')],'sectionId':0x3f1})['$promise'];})[_0x3f5c98('0x21ad')](function(_0x2dde92){var _0x2d36d5=_0x3f5c98,_0x2a412f=_0x2dde92&&_0x2dde92[_0x2d36d5('0x1b33')]?_0x2dde92[_0x2d36d5('0x1b33')][0x0]:null;if(!_0x2a412f){var _0x99c733=[],_0x10ed94=[];_0x479825[_0x2d36d5('0xf92')]['rows'][_0x2d36d5('0x1a52')](function(_0x19e4ac){var _0x26d269=_0x2d36d5;if(_0x86640f()[_0x26d269('0xb34')]([_0x26d269('0x2170'),_0x26d269('0x19e')],_0x19e4ac[_0x26d269('0x9fc')])){var _0x322c28=_0x86640f()[_0x26d269('0x1d2e')](_0x479825[_0x26d269('0x942')],{'id':Number(_0x19e4ac[_0x26d269('0xe83')])});_0x10ed94[_0x26d269('0x206c')](_0x322c28);}});for(var _0x44ecaf=0x0;_0x44ecaf<_0x479825[_0x2d36d5('0x942')][_0x2d36d5('0x577')];_0x44ecaf++){var _0x343742=_0x86640f()['some'](_0x10ed94,{'id':_0x479825[_0x2d36d5('0x942')][_0x44ecaf]['id']});_0x343742&&(_0x479825['templates'][_0x44ecaf]['canSelect']=![],_0x99c733[_0x2d36d5('0x206c')](_0x479825[_0x2d36d5('0x942')][_0x44ecaf]));}_0x479825['templates']=_0x99c733;}else{if(!_0x2a412f[_0x2d36d5('0x80c')])return _0x2e8da3[_0x2d36d5('0x185e')][_0x2d36d5('0x595')]({'sectionId':_0x2a412f['id']})[_0x2d36d5('0x1376')]['then'](function(_0x228735){var _0x225c00=_0x2d36d5,_0x305054=_0x86640f()['map'](_0x228735[_0x225c00('0x1b33')],function(_0x3352d0){var _0x421a3e=_0x225c00;return _0x86640f()[_0x421a3e('0x1d2e')](_0x479825[_0x421a3e('0x942')],{'id':_0x3352d0['resourceId']});}),_0x1701d4=null;_0x1701d4=[],_0x479825[_0x225c00('0xf92')][_0x225c00('0x1b33')]['forEach'](function(_0x8dbe5c){var _0x1cac12=_0x225c00;if(_0x86640f()['includes']([_0x1cac12('0x2170'),_0x1cac12('0x19e')],_0x8dbe5c[_0x1cac12('0x9fc')])){var _0x2d5e45=_0x86640f()['find'](_0x479825['templates'],{'id':Number(_0x8dbe5c[_0x1cac12('0xe83')])});_0x1701d4[_0x1cac12('0x206c')](_0x2d5e45);}}),!_0x86640f()[_0x225c00('0x23aa')](_0x1701d4)&&_0x1701d4[_0x225c00('0x1a52')](function(_0x42ebc3){var _0x452123=_0x225c00;if(!_0x86640f()[_0x452123('0x2664')](_0x305054,['id',_0x42ebc3['id']])){var _0x3200f5=_0x86640f()[_0x452123('0x1d2e')](_0x479825[_0x452123('0x942')],{'id':_0x42ebc3['id']});_0x3200f5[_0x452123('0xba')]=![],_0x305054[_0x452123('0x206c')](_0x3200f5);}}),_0x479825[_0x225c00('0x942')]=_0x305054;});}})[_0x3f5c98('0x1c1d')](function(_0x4010e7){var _0x1604ee=_0x3f5c98;_0x39fe00[_0x1604ee('0x2092')]({'title':_0x4010e7[_0x1604ee('0x209')]?_0x1604ee('0x22d')+_0x4010e7[_0x1604ee('0x209')]+'\x20-\x20'+_0x4010e7[_0x1604ee('0x1808')]:_0x1604ee('0xed7'),'msg':_0x4010e7[_0x1604ee('0x11c2')]?JSON['stringify'](_0x4010e7[_0x1604ee('0x11c2')]):_0x4010e7[_0x1604ee('0x174f')]()});});}function _0x171389(){var _0x127b96=_0x40a3ce;if(_0x86640f()[_0x127b96('0x2664')](_0x479825[_0x127b96('0xf92')][_0x127b96('0x1b33')],['action',_0x127b96('0xdeb')])){if(!_0x479825['lists'])_0x195cd4();}_0x86640f()[_0x127b96('0x2664')](_0x479825[_0x127b96('0xf92')]['rows'],[_0x127b96('0x9fc'),_0x127b96('0x4bf')])&&_0x2ce98f();if(_0x86640f()['some'](_0x479825[_0x127b96('0xf92')][_0x127b96('0x1b33')],function(_0x4735c3){var _0x319f4d=_0x127b96;return _0x86640f()[_0x319f4d('0xb34')]([_0x319f4d('0x2170'),_0x319f4d('0x19e')],_0x4735c3[_0x319f4d('0x9fc')]);})){if(!_0x479825[_0x127b96('0x942')])_0x4c0748();}if(_0x86640f()[_0x127b96('0x2664')](_0x479825[_0x127b96('0xf92')][_0x127b96('0x1b33')],[_0x127b96('0x9fc'),_0x127b96('0x9c7')])){if(!_0x479825[_0x127b96('0xc0f')])_0x105792();}}function _0x529aaa(_0x5a3f56){var _0x4e7fd1=_0x40a3ce;_0x479825[_0x4e7fd1('0xf92')]=_0x5a3f56||{'count':0x0,'rows':[]},_0x171389();}function _0x307fb2(){var _0x1f59a8=_0x40a3ce;_0x479825[_0x1f59a8('0x77')]['offset']=(_0x479825[_0x1f59a8('0x77')][_0x1f59a8('0x2376')]-0x1)*_0x479825[_0x1f59a8('0x77')][_0x1f59a8('0x1f4a')],_0x479825[_0x1f59a8('0x71b')]=_0x2e8da3['trigger'][_0x1f59a8('0x1159')](_0x479825[_0x1f59a8('0x77')],_0x529aaa)[_0x1f59a8('0x1376')];}function _0x1c4436(_0x4e254c,_0x132aa3){var _0x523fd7=_0x40a3ce;_0x1db833[_0x523fd7('0x853')]({'controller':_0x523fd7('0x209a'),'controllerAs':'vm','templateUrl':_0x3a6d78,'parent':angular[_0x523fd7('0x1676')](_0x2d9ea7['body']),'targetEvent':_0x4e254c,'clickOutsideToClose':!![],'locals':{'trigger':_0x479825[_0x523fd7('0x23b9')],'action':_0x132aa3,'actions':_0x479825[_0x523fd7('0xf92')]['rows'],'license':null,'setting':null,'crudPermissions':_0x479825[_0x523fd7('0x5ed')]}})['then'](function(_0x371794){var _0x4da50f=_0x523fd7;_0x371794&&(_0x479825['triggerActions']={'count':_0x371794[_0x4da50f('0x577')],'rows':_0x371794},_0x171389());});}function _0x57fd40(_0x13329d,_0x537787){var _0x1ceff7=_0x40a3ce,_0x41132a=_0x1db833[_0x1ceff7('0xa33')]()[_0x1ceff7('0x4b4')](_0x266889[_0x1ceff7('0x183e')]('TOOLS.NOTIFICATIONS.ACTION_DELETE_TITLE'))[_0x1ceff7('0x7a7')](_0x1ceff7('0x22'))[_0x1ceff7('0x1e6d')](_0x537787)['ok']('OK')[_0x1ceff7('0x3b5')](_0x266889[_0x1ceff7('0x183e')]('TOOLS.CANCEL'));_0x1db833[_0x1ceff7('0x853')](_0x41132a)[_0x1ceff7('0x21ad')](function(){_0x4434dc(_0x13329d,!![]);});}function _0x4434dc(_0x5c0685,_0x30d8ed){var _0x451be1=_0x40a3ce;_0x2e8da3[_0x451be1('0x9fc')][_0x451be1('0x1164')]({'id':_0x5c0685['id']})[_0x451be1('0x1376')][_0x451be1('0x21ad')](function(){var _0x96382f=_0x451be1;_0x307fb2(),_0x30d8ed&&_0x39fe00[_0x96382f('0xdb1')]({'title':_0x266889[_0x96382f('0x183e')](_0x96382f('0x1337'))});})[_0x451be1('0x1c1d')](function(_0x32cbbf){var _0x54e96f=_0x451be1;if(_0x32cbbf['data']&&_0x32cbbf['data'][_0x54e96f('0x1a69')]&&_0x32cbbf[_0x54e96f('0x11c2')][_0x54e96f('0x1a69')][_0x54e96f('0x577')]){_0x479825[_0x54e96f('0x1a69')]=_0x32cbbf['data'][_0x54e96f('0x1a69')]||[{'message':_0x32cbbf[_0x54e96f('0x174f')](),'type':_0x54e96f('0x1a2')}];for(var _0x1b1fd0=0x0;_0x1b1fd0<_0x32cbbf[_0x54e96f('0x11c2')][_0x54e96f('0x1a69')][_0x54e96f('0x577')];_0x1b1fd0++){_0x39fe00[_0x54e96f('0x2092')]({'title':_0x32cbbf[_0x54e96f('0x11c2')][_0x54e96f('0x1a69')][_0x1b1fd0]['type'],'msg':_0x32cbbf[_0x54e96f('0x11c2')][_0x54e96f('0x1a69')][_0x1b1fd0][_0x54e96f('0x1224')]});}}else _0x39fe00['error']({'title':_0x32cbbf[_0x54e96f('0x209')]?_0x54e96f('0x22d')+_0x32cbbf[_0x54e96f('0x209')]+_0x54e96f('0xa99')+_0x32cbbf[_0x54e96f('0x1808')]:_0x54e96f('0x1a2'),'msg':_0x32cbbf[_0x54e96f('0x11c2')]?JSON['stringify'](_0x32cbbf[_0x54e96f('0x11c2')][_0x54e96f('0x1224')]):_0x32cbbf[_0x54e96f('0x1224')]||_0x32cbbf[_0x54e96f('0x174f')]()});});}function _0x3bedc7(){var _0x1f5818=_0x40a3ce,_0xd1849c=angular[_0x1f5818('0xd75')](_0x479825['selectedTriggerActions']);return _0x479825[_0x1f5818('0x40e')]=[],_0xd1849c;}function _0x345cf8(_0x2dca2a){var _0x3e5dcf=_0x40a3ce,_0x5159e7=_0x1db833[_0x3e5dcf('0xa33')]()[_0x3e5dcf('0x4b4')](_0x266889[_0x3e5dcf('0x183e')](_0x3e5dcf('0x1fb1')))[_0x3e5dcf('0x13fb')](_0x266889[_0x3e5dcf('0x183e')](_0x3e5dcf('0x1e51'),{'total':_0x479825[_0x3e5dcf('0x40e')]['length']}))[_0x3e5dcf('0x7a7')](_0x3e5dcf('0x17bf'))[_0x3e5dcf('0x1e6d')](_0x2dca2a)['ok']('OK')['cancel'](_0x266889[_0x3e5dcf('0x183e')](_0x3e5dcf('0x20ea')));_0x1db833[_0x3e5dcf('0x853')](_0x5159e7)[_0x3e5dcf('0x21ad')](function(){var _0x467994=_0x3e5dcf;_0x479825[_0x467994('0x40e')]['forEach'](function(_0x201783){_0x4434dc(_0x201783);}),_0x479825[_0x467994('0x40e')]=[],_0x39fe00[_0x467994('0xdb1')]({'title':_0x266889['instant'](_0x467994('0x25a1'))});});}var _0x3a487e=!![],_0x5cb9ed=0x1;_0x53e51d[_0x40a3ce('0x10e8')]('vm_dc.query.filter',function(_0x2f7d2c,_0x23aedc){var _0x27762e=_0x40a3ce;_0x3a487e?_0x571ccb(function(){_0x3a487e=![];}):(!_0x23aedc&&(_0x5cb9ed=_0x479825[_0x27762e('0x77')][_0x27762e('0x2376')]),_0x2f7d2c!==_0x23aedc&&(_0x479825[_0x27762e('0x77')][_0x27762e('0x2376')]=0x1),!_0x2f7d2c&&(_0x479825[_0x27762e('0x77')][_0x27762e('0x2376')]=_0x5cb9ed),_0x307fb2());});}const _0x5b0c66=_0x248f00;_0x41d405[_0x3877e3('0x1a81')]=['$state',_0x3877e3('0x1850'),'$translate',_0x3877e3('0x1908'),_0x3877e3('0x484'),_0x3877e3('0x9fc'),_0x3877e3('0x23b9'),'api',_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting',_0x3877e3('0x5ed')];function _0x41d405(_0x37996a,_0x35686b,_0x2546a4,_0x972d24,_0x3b5a54,_0x2f5fb5,_0x3d4ab8,_0x395e55,_0x7d4e35,_0x247687,_0x1b6753,_0x594086){var _0x360dcd=_0x3877e3,_0x1ef826=this;_0x1ef826[_0x360dcd('0x123f')]=_0x7d4e35['getCurrentUser'](),_0x1ef826[_0x360dcd('0x9fc')]=angular['copy'](_0x2f5fb5),_0x1ef826[_0x360dcd('0x484')]=angular['copy'](_0x3b5a54),_0x1ef826['setting']=_0x1b6753,_0x1ef826['license']=_0x247687,_0x1ef826[_0x360dcd('0x5ed')]=_0x594086,_0x1ef826[_0x360dcd('0x5c9')]=![],_0x1ef826['errors']=[],_0x1ef826[_0x360dcd('0x23b9')]=angular[_0x360dcd('0xd75')](_0x3d4ab8);!_0x1ef826[_0x360dcd('0x9fc')]&&(_0x1ef826[_0x360dcd('0x9fc')]={},_0x1ef826[_0x360dcd('0x5c9')]=!![]);_0x1ef826[_0x360dcd('0x9fc')][_0x360dcd('0xbd3')]=_0x37996a[_0x360dcd('0x171b')]['id']||undefined,_0x1ef826['allowedStandardFields']=[_0x360dcd('0x159e'),'mobile',_0x360dcd('0x93f')],_0x1ef826[_0x360dcd('0x1d52')]=_0x17c971,_0x1ef826[_0x360dcd('0xf')]=_0x51f0a1,_0x1ef826[_0x360dcd('0xc05')]=_0x22466d,_0x1ef826['onActionInit']=_0x59d5c8,_0x1ef826[_0x360dcd('0x1f0e')]=_0x19b316,_0x1ef826[_0x360dcd('0x13e9')]=_0x469ee2,_0x1ef826['onActionSelection']=_0x4fb8b2,_0x1ef826['onIntegrationSelection']=_0xef78ee,_0x1ef826[_0x360dcd('0x16fc')]=_0x5a614c,_0x1ef826[_0x360dcd('0x31c')]=_0x186f44,_0x1ef826[_0x360dcd('0x2e6')]=_0x361b1f,_0x1ef826[_0x360dcd('0x2ee')]=_0x1dba1c,_0x1ef826['closeDialog']=_0x3498bc;function _0x59d5c8(){var _0x2d4585=_0x360dcd;_0x7d4e35[_0x2d4585('0x126a')]('Integrations')[_0x2d4585('0x21ad')](function(_0x570482){_0x1ef826['hasIntegrationsPermissions']=_0x570482;})[_0x2d4585('0x1c1d')](function(_0x1f4a54){var _0x425844=_0x2d4585;_0x972d24['error']({'title':_0x1f4a54['status']?_0x425844('0x22d')+_0x1f4a54['status']+_0x425844('0xa99')+_0x1f4a54[_0x425844('0x1808')]:_0x425844('0x58c'),'msg':_0x1f4a54['data']?JSON[_0x425844('0x25e')](_0x1f4a54[_0x425844('0x11c2')]):_0x1f4a54[_0x425844('0x174f')]()});});if(_0x1ef826[_0x2d4585('0x9fc')][_0x2d4585('0x9fc')])_0x494f13();}function _0x19b316(){var _0x2282eb=_0x360dcd,_0x411c47=[0x515,0x516,0x517,0x519,0x51a,0x51b,0x51c,0x51d,0x51e,0x51f];_0x7d4e35[_0x2282eb('0x2689')](_0x411c47)['then'](function(_0x84579d){var _0x5055d8=_0x2282eb;_0x1ef826[_0x5055d8('0xa77')]=_0x86640f()['merge'](_0x1ef826[_0x5055d8('0xa77')],_0x84579d);})['catch'](function(_0x403463){var _0xfb2bf5=_0x2282eb;_0x972d24['error']({'title':_0x403463[_0xfb2bf5('0x209')]?'API:'+_0x403463['status']+_0xfb2bf5('0xa99')+_0x403463['statusText']:'SYSTEM:GET_SECTIONS_PERMISSIONS','msg':_0x403463['data']?JSON['stringify'](_0x403463[_0xfb2bf5('0x11c2')]):_0x403463['toString']()});});}function _0x469ee2(){var _0x6178cb=_0x360dcd;if(!_0x1ef826[_0x6178cb('0x5c9')])_0x335e01();}function _0x1d5343(){var _0x4d2f2e=_0x360dcd;_0x7d4e35['isAdmin']()?_0x395e55[_0x4d2f2e('0x11e0')]['get']({'fields':'id,name','sort':'name','nolimit':_0x4d2f2e('0x19bd')})['$promise'][_0x4d2f2e('0x21ad')](function(_0xa890c2){var _0x2d563e=_0x4d2f2e;_0x1ef826[_0x2d563e('0x1972')]=_0xa890c2[_0x2d563e('0x1b33')]||[];})[_0x4d2f2e('0x1c1d')](function(_0x32c980){var _0x28eb83=_0x4d2f2e;_0x972d24[_0x28eb83('0x2092')]({'title':_0x32c980['status']?'API:'+_0x32c980[_0x28eb83('0x209')]+_0x28eb83('0xa99')+_0x32c980[_0x28eb83('0x1808')]:_0x28eb83('0xf59'),'msg':_0x32c980['data']?JSON[_0x28eb83('0x25e')](_0x32c980[_0x28eb83('0x11c2')]):_0x32c980[_0x28eb83('0x174f')]()});}):_0x395e55[_0x4d2f2e('0x11e0')]['get']({'fields':_0x4d2f2e('0x1aa8'),'sort':_0x4d2f2e('0x19fe'),'nolimit':_0x4d2f2e('0x19bd')})[_0x4d2f2e('0x1376')][_0x4d2f2e('0x21ad')](function(_0x46d12f){var _0x12d533=_0x4d2f2e;_0x1ef826[_0x12d533('0x1972')]=_0x46d12f[_0x12d533('0x1b33')]||[];})[_0x4d2f2e('0x21ad')](function(){var _0x279f74=_0x4d2f2e;return _0x395e55[_0x279f74('0xab4')]['get']({'userProfileId':_0x1ef826['currentUser'][_0x279f74('0x1618')],'sectionId':0x12d})[_0x279f74('0x1376')];})['then'](function(_0x596fce){var _0x5a8d69=_0x4d2f2e,_0x4862c4=_0x596fce&&_0x596fce[_0x5a8d69('0x1b33')]?_0x596fce[_0x5a8d69('0x1b33')][0x0]:null;if(!_0x4862c4){var _0x27ed00=[],_0x600205=[];_0x1ef826[_0x5a8d69('0xf92')]['rows']['forEach'](function(_0x3d9c51){var _0x373829=_0x5a8d69;if(_0x3d9c51[_0x373829('0x9fc')]===_0x373829('0xdeb')){var _0x13d7ce=_0x86640f()[_0x373829('0x1d2e')](_0x1ef826[_0x373829('0x1972')],{'id':Number(_0x3d9c51[_0x373829('0x1f5c')])});_0x600205[_0x373829('0x206c')](_0x13d7ce);}});for(var _0xee6e5d=0x0;_0xee6e5d<_0x1ef826[_0x5a8d69('0x1972')][_0x5a8d69('0x577')];_0xee6e5d++){var _0x3efcdb=_0x86640f()[_0x5a8d69('0x2664')](_0x600205,{'id':_0x1ef826[_0x5a8d69('0x1972')][_0xee6e5d]['id']});_0x3efcdb&&(_0x1ef826['lists'][_0xee6e5d][_0x5a8d69('0xba')]=![],_0x27ed00[_0x5a8d69('0x206c')](_0x1ef826[_0x5a8d69('0x1972')][_0xee6e5d]));}_0x1ef826[_0x5a8d69('0x1972')]=_0x27ed00;}else{if(!_0x4862c4[_0x5a8d69('0x80c')])return _0x395e55[_0x5a8d69('0x185e')][_0x5a8d69('0x595')]({'sectionId':_0x4862c4['id']})[_0x5a8d69('0x1376')][_0x5a8d69('0x21ad')](function(_0x3dce86){var _0x1583cd=_0x5a8d69,_0x127138=_0x86640f()['map'](_0x3dce86[_0x1583cd('0x1b33')],function(_0x2bed71){var _0x44f8d2=_0x1583cd;return _0x86640f()[_0x44f8d2('0x1d2e')](_0x1ef826[_0x44f8d2('0x1972')],{'id':_0x2bed71['resourceId']});}),_0xa4a2f9=null;_0xa4a2f9=[],_0x1ef826[_0x1583cd('0xf92')][_0x1583cd('0x1b33')][_0x1583cd('0x1a52')](function(_0x3c808c){var _0x2ed1eb=_0x1583cd;if(_0x3c808c[_0x2ed1eb('0x9fc')]===_0x2ed1eb('0xdeb')){var _0x15707b=_0x86640f()['find'](_0x1ef826[_0x2ed1eb('0x1972')],{'id':Number(_0x3c808c[_0x2ed1eb('0x1f5c')])});_0xa4a2f9['push'](_0x15707b);}}),!_0x86640f()['isEmpty'](_0xa4a2f9)&&_0xa4a2f9[_0x1583cd('0x1a52')](function(_0x4810ed){var _0x42f756=_0x1583cd;if(!_0x86640f()[_0x42f756('0x2664')](_0x127138,['id',_0x4810ed['id']])){var _0x93d630=_0x86640f()[_0x42f756('0x1d2e')](_0x1ef826[_0x42f756('0x1972')],{'id':_0x4810ed['id']});_0x93d630['canSelect']=![],_0x127138['push'](_0x93d630);}}),_0x1ef826['lists']=_0x127138;});}})[_0x4d2f2e('0x1c1d')](function(_0x28ecdf){var _0x3ea5a4=_0x4d2f2e;_0x972d24[_0x3ea5a4('0x2092')]({'title':_0x28ecdf[_0x3ea5a4('0x209')]?_0x3ea5a4('0x22d')+_0x28ecdf[_0x3ea5a4('0x209')]+_0x3ea5a4('0xa99')+_0x28ecdf['statusText']:'SYSTEM:GETlists','msg':_0x28ecdf[_0x3ea5a4('0x11c2')]?JSON[_0x3ea5a4('0x25e')](_0x28ecdf[_0x3ea5a4('0x11c2')]):_0x28ecdf[_0x3ea5a4('0x174f')]()});});}function _0x3ba212(){var _0x44afe2=_0x360dcd;_0x395e55[_0x44afe2('0x25dc')][_0x44afe2('0x1219')]({})[_0x44afe2('0x1376')][_0x44afe2('0x21ad')](function(_0x524587){var _0x24212d=_0x44afe2;_0x1ef826[_0x24212d('0x1c89')]=[],_0x1ef826[_0x24212d('0xbbd')]=[];var _0x1f0384=_0x86640f()[_0x24212d('0x1843')](_0x524587['toJSON']());for(var _0x994eb2=0x0;_0x994eb2<_0x1f0384[_0x24212d('0x577')];_0x994eb2++){if(_0x86640f()[_0x24212d('0xb34')](_0x1ef826[_0x24212d('0x18e9')],_0x1f0384[_0x994eb2]['columnName']))_0x1ef826[_0x24212d('0x1c89')][_0x24212d('0x206c')](_0x1f0384[_0x994eb2]);else{if(_0x86640f()['startsWith'](_0x1f0384[_0x994eb2][_0x24212d('0xe85')],_0x24212d('0x714'))){if(_0x1f0384[_0x994eb2][_0x24212d('0xf50')][_0x24212d('0x7fa')]==='text')_0x1ef826[_0x24212d('0xbbd')][_0x24212d('0x206c')](_0x1f0384[_0x994eb2]);}}}})[_0x44afe2('0x1c1d')](function(_0x5f47a1){var _0x52e39e=_0x44afe2;_0x972d24[_0x52e39e('0x2092')]({'title':_0x5f47a1['status']?_0x52e39e('0x22d')+_0x5f47a1[_0x52e39e('0x209')]+_0x52e39e('0xa99')+_0x5f47a1[_0x52e39e('0x1808')]:_0x52e39e('0x121f'),'msg':_0x5f47a1['data']?JSON[_0x52e39e('0x25e')](_0x5f47a1['data']):_0x5f47a1[_0x52e39e('0x174f')]()});});}function _0x335e01(){var _0x15efd7=_0x360dcd;_0x395e55['cmList'][_0x15efd7('0xb2d')]({'id':_0x1ef826[_0x15efd7('0x9fc')][_0x15efd7('0x1f5c')],'ListId':_0x1ef826['action'][_0x15efd7('0x1f5c')]})[_0x15efd7('0x1376')][_0x15efd7('0x21ad')](function(_0x1d723a){var _0x2a20d3=_0x15efd7;_0x1ef826['listFields']=_0x86640f()[_0x2a20d3('0x1503')](_0x1d723a[_0x2a20d3('0x1b33')],['type',_0x2a20d3('0xc1e')]),_0x1ef826[_0x2a20d3('0x10f3')]['forEach'](function(_0x10d744){var _0x4c199a=_0x2a20d3;_0x10d744['columnName']=_0x4c199a('0x714')+_0x10d744['id'];});})[_0x15efd7('0x1c1d')](function(_0x137fee){var _0x25433b=_0x15efd7;_0x972d24[_0x25433b('0x2092')]({'title':_0x137fee[_0x25433b('0x209')]?_0x25433b('0x22d')+_0x137fee[_0x25433b('0x209')]+_0x25433b('0xa99')+_0x137fee[_0x25433b('0x1808')]:'SYSTEM:GET_LIST_CUSTOM_FIELDS','msg':_0x137fee[_0x25433b('0x11c2')]?JSON[_0x25433b('0x25e')](_0x137fee['data']):_0x137fee[_0x25433b('0x174f')]()});});}function _0x548e39(){var _0x21ed07=_0x360dcd;_0x7d4e35[_0x21ed07('0xcfc')]()?_0x395e55['jscriptyProject'][_0x21ed07('0x595')]({'fields':_0x21ed07('0x1aa8'),'sort':_0x21ed07('0x19fe'),'nolimit':_0x21ed07('0x19bd')})[_0x21ed07('0x1376')][_0x21ed07('0x21ad')](function(_0x57b7ae){var _0x487336=_0x21ed07;_0x1ef826[_0x487336('0xc0f')]=_0x57b7ae[_0x487336('0x1b33')]||[];})['catch'](function(_0x30b452){var _0x46d988=_0x21ed07;_0x972d24['error']({'title':_0x30b452['status']?_0x46d988('0x22d')+_0x30b452[_0x46d988('0x209')]+_0x46d988('0xa99')+_0x30b452[_0x46d988('0x1808')]:_0x46d988('0xca2'),'msg':_0x30b452[_0x46d988('0x11c2')]?JSON[_0x46d988('0x25e')](_0x30b452[_0x46d988('0x11c2')]):_0x30b452['toString']()});}):_0x395e55[_0x21ed07('0xe61')][_0x21ed07('0x595')]({'fields':_0x21ed07('0x1aa8'),'sort':'name','nolimit':_0x21ed07('0x19bd')})[_0x21ed07('0x1376')][_0x21ed07('0x21ad')](function(_0x17a5da){var _0x4fdfa3=_0x21ed07;_0x1ef826[_0x4fdfa3('0xc0f')]=_0x17a5da[_0x4fdfa3('0x1b33')]||[];})[_0x21ed07('0x21ad')](function(){var _0x211691=_0x21ed07;return _0x395e55[_0x211691('0xab4')]['get']({'userProfileId':_0x1ef826['currentUser']['userProfileId'],'sectionId':0x6a5})['$promise'];})['then'](function(_0x56feb1){var _0x3af211=_0x21ed07,_0x6c0574=_0x56feb1&&_0x56feb1[_0x3af211('0x1b33')]?_0x56feb1[_0x3af211('0x1b33')][0x0]:null;if(!_0x6c0574){var _0x3d49fb=[],_0x1ddc6f=[];_0x1ef826[_0x3af211('0xf92')][_0x3af211('0x1b33')][_0x3af211('0x1a52')](function(_0x4bfbcc){var _0x3d6a2f=_0x3af211;if(_0x4bfbcc[_0x3d6a2f('0x9fc')]==='jscripty'){var _0x385771=_0x86640f()[_0x3d6a2f('0x1d2e')](_0x1ef826['projects'],{'id':Number(_0x4bfbcc[_0x3d6a2f('0x1f5c')])});_0x1ddc6f['push'](_0x385771);}});for(var _0x24994e=0x0;_0x24994e<_0x1ef826['projects'][_0x3af211('0x577')];_0x24994e++){var _0x27108=_0x86640f()[_0x3af211('0x2664')](_0x1ddc6f,{'id':_0x1ef826[_0x3af211('0xc0f')][_0x24994e]['id']});_0x27108&&(_0x1ef826[_0x3af211('0xc0f')][_0x24994e]['canSelect']=![],_0x3d49fb[_0x3af211('0x206c')](_0x1ef826[_0x3af211('0xc0f')][_0x24994e]));}_0x1ef826[_0x3af211('0xc0f')]=_0x3d49fb;}else{if(!_0x6c0574[_0x3af211('0x80c')])return _0x395e55['userProfileResource'][_0x3af211('0x595')]({'sectionId':_0x6c0574['id']})[_0x3af211('0x1376')][_0x3af211('0x21ad')](function(_0x5324dd){var _0x4832e6=_0x3af211,_0x5d0acf=_0x86640f()[_0x4832e6('0x26c3')](_0x5324dd[_0x4832e6('0x1b33')],function(_0x4f4075){var _0x1aaad6=_0x4832e6;return _0x86640f()['find'](_0x1ef826[_0x1aaad6('0xc0f')],{'id':_0x4f4075[_0x1aaad6('0x675')]});}),_0x227b87=null;_0x227b87=[],_0x1ef826[_0x4832e6('0xf92')][_0x4832e6('0x1b33')][_0x4832e6('0x1a52')](function(_0x435ff9){var _0x2fe6e4=_0x4832e6;if(_0x435ff9[_0x2fe6e4('0x9fc')]===_0x2fe6e4('0x9c7')){var _0xb0410c=_0x86640f()[_0x2fe6e4('0x1d2e')](_0x1ef826[_0x2fe6e4('0xc0f')],{'id':Number(_0x435ff9[_0x2fe6e4('0x1f5c')])});_0x227b87[_0x2fe6e4('0x206c')](_0xb0410c);}}),!_0x86640f()[_0x4832e6('0x23aa')](_0x227b87)&&_0x227b87[_0x4832e6('0x1a52')](function(_0x101bec){var _0xe67fb1=_0x4832e6;if(!_0x86640f()[_0xe67fb1('0x2664')](_0x5d0acf,['id',_0x101bec['id']])){var _0x34669b=_0x86640f()[_0xe67fb1('0x1d2e')](_0x1ef826[_0xe67fb1('0xc0f')],{'id':_0x101bec['id']});_0x34669b[_0xe67fb1('0xba')]=![],_0x5d0acf[_0xe67fb1('0x206c')](_0x34669b);}}),_0x1ef826[_0x4832e6('0xc0f')]=_0x5d0acf;});}})[_0x21ed07('0x1c1d')](function(_0x3c606d){var _0x4e93ec=_0x21ed07;_0x972d24['error']({'title':_0x3c606d[_0x4e93ec('0x209')]?_0x4e93ec('0x22d')+_0x3c606d['status']+_0x4e93ec('0xa99')+_0x3c606d[_0x4e93ec('0x1808')]:'SYSTEM:GETprojects','msg':_0x3c606d[_0x4e93ec('0x11c2')]?JSON[_0x4e93ec('0x25e')](_0x3c606d['data']):_0x3c606d['toString']()});});}function _0x4f8b83(){var _0x54080c=_0x360dcd;_0x7d4e35[_0x54080c('0xcfc')]()?_0x395e55[_0x54080c('0x1a51')][_0x54080c('0x595')]({'fields':'id,name','sort':'id','nolimit':_0x54080c('0x19bd')})[_0x54080c('0x1376')][_0x54080c('0x21ad')](function(_0x4f2900){var _0x10efda=_0x54080c;_0x1ef826['templates']=_0x4f2900[_0x10efda('0x1b33')]||[];})['catch'](function(_0x528d2d){var _0x59cd14=_0x54080c;_0x972d24[_0x59cd14('0x2092')]({'title':_0x528d2d[_0x59cd14('0x209')]?_0x59cd14('0x22d')+_0x528d2d[_0x59cd14('0x209')]+_0x59cd14('0xa99')+_0x528d2d[_0x59cd14('0x1808')]:_0x59cd14('0xed7'),'msg':_0x528d2d['data']?JSON[_0x59cd14('0x25e')](_0x528d2d['data']):_0x528d2d[_0x59cd14('0x174f')]()});}):_0x395e55[_0x54080c('0x1a51')][_0x54080c('0x595')]({'fields':_0x54080c('0x1aa8'),'sort':'id','nolimit':_0x54080c('0x19bd')})[_0x54080c('0x1376')]['then'](function(_0x3b45ee){var _0x68f6cd=_0x54080c;_0x1ef826[_0x68f6cd('0x942')]=_0x3b45ee[_0x68f6cd('0x1b33')]||[];})['then'](function(){var _0x2214d3=_0x54080c;return _0x395e55['userProfileSection'][_0x2214d3('0x595')]({'userProfileId':_0x1ef826[_0x2214d3('0x123f')]['userProfileId'],'sectionId':0x3f1})[_0x2214d3('0x1376')];})[_0x54080c('0x21ad')](function(_0x4c6af0){var _0x6bb92=_0x54080c,_0x317566=_0x4c6af0&&_0x4c6af0[_0x6bb92('0x1b33')]?_0x4c6af0[_0x6bb92('0x1b33')][0x0]:null;if(!_0x317566){var _0x21bee8=[],_0x37736c=[];_0x1ef826[_0x6bb92('0xf92')][_0x6bb92('0x1b33')][_0x6bb92('0x1a52')](function(_0x23622c){var _0x46fd18=_0x6bb92;if(_0x86640f()['includes']([_0x46fd18('0x2170'),_0x46fd18('0x19e')],_0x23622c[_0x46fd18('0x9fc')])){var _0xfb5a56=_0x86640f()['find'](_0x1ef826[_0x46fd18('0x942')],{'id':Number(_0x23622c[_0x46fd18('0xe83')])});_0x37736c[_0x46fd18('0x206c')](_0xfb5a56);}});for(var _0x3285bf=0x0;_0x3285bf<_0x1ef826['templates'][_0x6bb92('0x577')];_0x3285bf++){var _0x10c38e=_0x86640f()[_0x6bb92('0x2664')](_0x37736c,{'id':_0x1ef826[_0x6bb92('0x942')][_0x3285bf]['id']});_0x10c38e&&(_0x1ef826['templates'][_0x3285bf][_0x6bb92('0xba')]=![],_0x21bee8[_0x6bb92('0x206c')](_0x1ef826[_0x6bb92('0x942')][_0x3285bf]));}_0x1ef826['templates']=_0x21bee8;}else{if(!_0x317566[_0x6bb92('0x80c')])return _0x395e55[_0x6bb92('0x185e')][_0x6bb92('0x595')]({'sectionId':_0x317566['id']})[_0x6bb92('0x1376')]['then'](function(_0x2d2894){var _0x446569=_0x6bb92,_0x397ee8=_0x86640f()[_0x446569('0x26c3')](_0x2d2894[_0x446569('0x1b33')],function(_0x4285ad){var _0x56a2f8=_0x446569;return _0x86640f()['find'](_0x1ef826['templates'],{'id':_0x4285ad[_0x56a2f8('0x675')]});}),_0x1d4449=null;_0x1d4449=[],_0x1ef826[_0x446569('0xf92')]['rows'][_0x446569('0x1a52')](function(_0x1c3c45){var _0x13938a=_0x446569;if(_0x86640f()['includes']([_0x13938a('0x2170'),_0x13938a('0x19e')],_0x1c3c45['action'])){var _0x3ce02c=_0x86640f()[_0x13938a('0x1d2e')](_0x1ef826['templates'],{'id':Number(_0x1c3c45[_0x13938a('0xe83')])});_0x1d4449[_0x13938a('0x206c')](_0x3ce02c);}}),!_0x86640f()['isEmpty'](_0x1d4449)&&_0x1d4449[_0x446569('0x1a52')](function(_0x3a039e){var _0x473585=_0x446569;if(!_0x86640f()[_0x473585('0x2664')](_0x397ee8,['id',_0x3a039e['id']])){var _0x1c3a28=_0x86640f()['find'](_0x1ef826['templates'],{'id':_0x3a039e['id']});_0x1c3a28['canSelect']=![],_0x397ee8[_0x473585('0x206c')](_0x1c3a28);}}),_0x1ef826['templates']=_0x397ee8;});}})[_0x54080c('0x1c1d')](function(_0x191343){var _0x2cd764=_0x54080c;_0x972d24[_0x2cd764('0x2092')]({'title':_0x191343['status']?_0x2cd764('0x22d')+_0x191343[_0x2cd764('0x209')]+'\x20-\x20'+_0x191343['statusText']:'SYSTEM:GET_TEMPLATES','msg':_0x191343[_0x2cd764('0x11c2')]?JSON[_0x2cd764('0x25e')](_0x191343[_0x2cd764('0x11c2')]):_0x191343[_0x2cd764('0x174f')]()});});}function _0x345222(){var _0x4b8c96=_0x360dcd;switch(_0x1ef826[_0x4b8c96('0x9fc')][_0x4b8c96('0x1f5c')]){case'zendesk':return _0x1ef826[_0x4b8c96('0xa77')][0x515];case _0x4b8c96('0x1353'):return _0x1ef826[_0x4b8c96('0xa77')][0x516];case _0x4b8c96('0x11ea'):return _0x1ef826[_0x4b8c96('0xa77')][0x519];case _0x4b8c96('0x239e'):return _0x1ef826[_0x4b8c96('0xa77')][0x517];case _0x4b8c96('0xbfc'):return _0x1ef826[_0x4b8c96('0xa77')][0x51a];case _0x4b8c96('0x54a'):return _0x1ef826[_0x4b8c96('0xa77')][0x51b];case _0x4b8c96('0x1bc9'):return _0x1ef826[_0x4b8c96('0xa77')][0x51c];case _0x4b8c96('0x1fb2'):return _0x1ef826[_0x4b8c96('0xa77')][0x51d];case _0x4b8c96('0x1ee'):return _0x1ef826[_0x4b8c96('0xa77')][0x51e];case'freshsales':return _0x1ef826[_0x4b8c96('0xa77')][0x51f];}}function _0x4aa727(){var _0xf7c442=_0x360dcd;_0x1ef826[_0xf7c442('0x9fc')]['data1']=undefined,_0x1ef826[_0xf7c442('0x9fc')][_0xf7c442('0xe83')]=undefined,_0x1ef826[_0xf7c442('0x9fc')][_0xf7c442('0x221c')]=undefined,_0x1ef826[_0xf7c442('0x9fc')][_0xf7c442('0x1912')]=undefined,_0x1ef826[_0xf7c442('0x9fc')][_0xf7c442('0x1120')]=_0x1ef826[_0xf7c442('0x9fc')]['action']===_0xf7c442('0x561')?0x5:undefined;}function _0x494f13(){var _0x50954a=_0x360dcd;switch(_0x1ef826[_0x50954a('0x9fc')][_0x50954a('0x9fc')]){case _0x50954a('0xdeb'):if(!_0x1ef826[_0x50954a('0x1972')])_0x1d5343();if(!_0x1ef826['contactFields'])_0x3ba212();_0x1ef826[_0x50954a('0x9fc')][_0x50954a('0x221c')]=_0x1ef826[_0x50954a('0x9fc')]['data3']?_0x1ef826[_0x50954a('0x9fc')][_0x50954a('0x221c')][_0x50954a('0x1af5')](','):[_0x50954a('0x159e')];if(_0x1ef826[_0x50954a('0x9fc')][_0x50954a('0xe83')]==='1'&&!_0x1ef826[_0x50954a('0x9fc')][_0x50954a('0x1912')])_0x1ef826[_0x50954a('0x9fc')][_0x50954a('0x1912')]=_0x50954a('0x159e');break;case _0x50954a('0x9c7'):if(!_0x1ef826[_0x50954a('0xc0f')])_0x548e39();break;case _0x50954a('0x561'):if(!_0x1ef826[_0x50954a('0x9fc')]['data5'])_0x1ef826[_0x50954a('0x9fc')][_0x50954a('0x1120')]=0x5;break;}}function _0x4fb8b2(){_0x4aa727(),_0x494f13();}function _0xef78ee(){var _0x53fc70=_0x360dcd;_0x1ef826[_0x53fc70('0x9fc')][_0x53fc70('0xe83')]=undefined,_0x1ef826[_0x53fc70('0x9fc')][_0x53fc70('0x221c')]=undefined,_0x1ef826['action'][_0x53fc70('0x9d9')]=_0x1ef826[_0x53fc70('0x5c9')]?![]:!_0x345222();var _0x296430=_0x53fc70('0xff1')+_0x86640f()[_0x53fc70('0x1b7e')](_0x1ef826[_0x53fc70('0x9fc')][_0x53fc70('0x1f5c')])+_0x53fc70('0x5f0');_0x395e55[_0x296430][_0x53fc70('0x595')]({'fields':_0x53fc70('0x1aa8'),'sort':'id','nolimit':'true'})[_0x53fc70('0x1376')]['then'](function(_0x4f9844){var _0x4791cd=_0x53fc70;_0x1ef826[_0x4791cd('0x129e')]=_0x4f9844['rows']||[];})[_0x53fc70('0x1c1d')](function(_0x35bf92){var _0x1e5624=_0x53fc70;_0x972d24[_0x1e5624('0x2092')]({'title':_0x35bf92[_0x1e5624('0x209')]?_0x1e5624('0x22d')+_0x35bf92[_0x1e5624('0x209')]+_0x1e5624('0xa99')+_0x35bf92['statusText']:_0x1e5624('0xe7e')+_0x1ef826[_0x1e5624('0x9fc')][_0x1e5624('0x1f5c')][_0x1e5624('0x2e8')]()+'ACCOUNTS','msg':_0x35bf92['data']?JSON[_0x1e5624('0x25e')](_0x35bf92[_0x1e5624('0x11c2')]):_0x35bf92[_0x1e5624('0x174f')]()});});}function _0x5a614c(){_0x335e01();}function _0x186f44(){var _0x2a5bd4=_0x360dcd;if(_0x1ef826[_0x2a5bd4('0x9fc')][_0x2a5bd4('0x1f5c')]==='0'&&!_0x1ef826[_0x2a5bd4('0x942')])_0x4f8b83();}function _0x361b1f(){var _0x1d7f18=_0x360dcd;if(_0x1ef826[_0x1d7f18('0x9fc')][_0x1d7f18('0xe83')]==='0')_0x1ef826[_0x1d7f18('0x9fc')][_0x1d7f18('0x1912')]=undefined;if(!_0x1ef826[_0x1d7f18('0x9fc')][_0x1d7f18('0x1912')]&&_0x1ef826[_0x1d7f18('0x9fc')][_0x1d7f18('0xe83')]==='1')_0x1ef826[_0x1d7f18('0x9fc')][_0x1d7f18('0x1912')]=_0x1d7f18('0x159e');}function _0x1dba1c(){var _0x5ed9f8=_0x360dcd;_0x1ef826[_0x5ed9f8('0x9fc')][_0x5ed9f8('0x221c')]=undefined;var _0x36e3b7=_0x5ed9f8('0xff1')+_0x86640f()[_0x5ed9f8('0x1b7e')](_0x1ef826[_0x5ed9f8('0x9fc')][_0x5ed9f8('0x1f5c')])+'Configuration';_0x395e55[_0x36e3b7][_0x5ed9f8('0x595')]({'fields':_0x5ed9f8('0x210'),'sort':'id','nolimit':_0x5ed9f8('0x19bd')})[_0x5ed9f8('0x1376')]['then'](function(_0x2b45e9){var _0x2c34e1=_0x5ed9f8;_0x1ef826[_0x2c34e1('0x1ca3')]=_0x2b45e9[_0x2c34e1('0x1b33')]||[];})['catch'](function(_0x21ebf9){var _0x2a4ac2=_0x5ed9f8;_0x972d24[_0x2a4ac2('0x2092')]({'title':_0x21ebf9[_0x2a4ac2('0x209')]?_0x2a4ac2('0x22d')+_0x21ebf9['status']+_0x2a4ac2('0xa99')+_0x21ebf9[_0x2a4ac2('0x1808')]:'SYSTEM:GET_'+_0x1ef826[_0x2a4ac2('0x9fc')][_0x2a4ac2('0x1f5c')][_0x2a4ac2('0x2e8')]()+_0x2a4ac2('0xb23'),'msg':_0x21ebf9['data']?JSON['stringify'](_0x21ebf9[_0x2a4ac2('0x11c2')]):_0x21ebf9[_0x2a4ac2('0x174f')]()});});}function _0x2a35f5(){var _0x1dc203=_0x360dcd,_0xc6188c=angular[_0x1dc203('0xd75')](_0x1ef826[_0x1dc203('0x9fc')]);if(_0x86640f()['isArray'](_0xc6188c[_0x1dc203('0x221c')]))_0xc6188c[_0x1dc203('0x221c')]=_0x1ef826['action']['data3'][_0x1dc203('0x136')](',');return _0xc6188c;}function _0x17c971(){var _0x1e86e5=_0x360dcd;_0x1ef826[_0x1e86e5('0x1a69')]=[];var _0x87913b=_0x2a35f5();_0x395e55[_0x1e86e5('0x23b9')]['addAction']({'id':_0x37996a[_0x1e86e5('0x171b')]['id']},_0x87913b)[_0x1e86e5('0x1376')]['then'](function(_0x16cc93){var _0x845299=_0x1e86e5;_0x1ef826[_0x845299('0x484')][_0x845299('0xd0c')](_0x16cc93[_0x845299('0x3bc')]()),_0x972d24['success']({'title':_0x2546a4['instant'](_0x845299('0x213e'))}),_0x3498bc(_0x1ef826[_0x845299('0x484')]);})[_0x1e86e5('0x1c1d')](function(_0x552adf){var _0x1b4ab1=_0x1e86e5;if(_0x552adf[_0x1b4ab1('0x11c2')]&&_0x552adf[_0x1b4ab1('0x11c2')][_0x1b4ab1('0x1a69')]&&_0x552adf[_0x1b4ab1('0x11c2')]['errors']['length']){_0x1ef826[_0x1b4ab1('0x1a69')]=_0x552adf['data'][_0x1b4ab1('0x1a69')]||[{'message':_0x552adf[_0x1b4ab1('0x174f')](),'type':'api.action.save'}];for(var _0x30e82e=0x0;_0x30e82e<_0x552adf[_0x1b4ab1('0x11c2')][_0x1b4ab1('0x1a69')][_0x1b4ab1('0x577')];_0x30e82e+=0x1){_0x972d24[_0x1b4ab1('0x2092')]({'title':_0x552adf['data'][_0x1b4ab1('0x1a69')][_0x30e82e][_0x1b4ab1('0x7fa')],'msg':_0x552adf[_0x1b4ab1('0x11c2')][_0x1b4ab1('0x1a69')][_0x30e82e]['message']});}}else _0x972d24[_0x1b4ab1('0x2092')]({'title':_0x552adf[_0x1b4ab1('0x209')]?'API:'+_0x552adf['status']+_0x1b4ab1('0xa99')+_0x552adf[_0x1b4ab1('0x1808')]:_0x1b4ab1('0x25b2'),'msg':_0x552adf[_0x1b4ab1('0x11c2')]?JSON['stringify'](_0x552adf['data'][_0x1b4ab1('0x1224')]):_0x552adf['toString']()});});}function _0x51f0a1(){var _0x47d57c=_0x360dcd;_0x1ef826[_0x47d57c('0x1a69')]=[];var _0x34c0e0=_0x2a35f5();_0x395e55[_0x47d57c('0x9fc')][_0x47d57c('0x5ef')]({'id':_0x34c0e0['id']},_0x34c0e0)[_0x47d57c('0x1376')][_0x47d57c('0x21ad')](function(){var _0x2bb637=_0x47d57c;_0x1ef826[_0x2bb637('0x484')]=_0x86640f()['map'](_0x1ef826[_0x2bb637('0x484')],function(_0x4435eb){if(_0x4435eb['id']===_0x34c0e0['id'])return _0x34c0e0;else return _0x4435eb;}),_0x972d24[_0x2bb637('0xdb1')]({'title':_0x2546a4[_0x2bb637('0x183e')](_0x2bb637('0x18c4'))}),_0x3498bc(_0x1ef826[_0x2bb637('0x484')]);})['catch'](function(_0x1df569){var _0x260265=_0x47d57c;if(_0x1df569['data']&&_0x1df569[_0x260265('0x11c2')][_0x260265('0x1a69')]&&_0x1df569[_0x260265('0x11c2')][_0x260265('0x1a69')][_0x260265('0x577')]){_0x1ef826[_0x260265('0x1a69')]=_0x1df569[_0x260265('0x11c2')]['errors']||[{'message':_0x1df569[_0x260265('0x174f')](),'type':_0x260265('0x131a')}];for(var _0x3bd81d=0x0;_0x3bd81d<_0x1df569[_0x260265('0x11c2')][_0x260265('0x1a69')]['length'];_0x3bd81d++){_0x972d24[_0x260265('0x2092')]({'title':_0x1df569[_0x260265('0x11c2')][_0x260265('0x1a69')][_0x3bd81d][_0x260265('0x7fa')],'msg':_0x1df569[_0x260265('0x11c2')][_0x260265('0x1a69')][_0x3bd81d][_0x260265('0x1224')]});}}else _0x972d24[_0x260265('0x2092')]({'title':_0x1df569[_0x260265('0x209')]?'API:'+_0x1df569[_0x260265('0x209')]+_0x260265('0xa99')+_0x1df569['statusText']:_0x260265('0x131a'),'msg':_0x1df569[_0x260265('0x11c2')]?JSON['stringify'](_0x1df569['data'][_0x260265('0x1224')]):_0x1df569['toString']()});});}function _0x22466d(_0x1d7b24){var _0x5392da=_0x360dcd;_0x1ef826[_0x5392da('0x1a69')]=[];var _0x12e337=_0x35686b[_0x5392da('0xa33')]({'skipHide':!![]})[_0x5392da('0x4b4')](_0x2546a4[_0x5392da('0x183e')](_0x5392da('0x14d3')))[_0x5392da('0x7a7')](_0x5392da('0x22'))['ok'](_0x2546a4[_0x5392da('0x183e')](_0x5392da('0x24b')))[_0x5392da('0x3b5')](_0x2546a4[_0x5392da('0x183e')](_0x5392da('0x20ea')))[_0x5392da('0x1e6d')](_0x1d7b24);_0x35686b[_0x5392da('0x853')](_0x12e337)[_0x5392da('0x21ad')](function(){var _0x5a6125=_0x5392da;_0x395e55['action'][_0x5a6125('0x1164')]({'id':_0x1ef826[_0x5a6125('0x9fc')]['id']})['$promise'][_0x5a6125('0x21ad')](function(){var _0x4488d5=_0x5a6125;_0x1ef826['actions']=_0x86640f()[_0x4488d5('0x1503')](_0x1ef826['actions'],function(_0x494718){var _0x7224cc=_0x4488d5;return _0x494718['id']!==_0x1ef826[_0x7224cc('0x9fc')]['id'];}),_0x972d24[_0x4488d5('0xdb1')]({'title':_0x2546a4['instant'](_0x4488d5('0x1337'))}),_0x3498bc(_0x1ef826[_0x4488d5('0x484')]);})[_0x5a6125('0x1c1d')](function(_0x18e3c3){var _0x1973ac=_0x5a6125;if(_0x18e3c3[_0x1973ac('0x11c2')]&&_0x18e3c3[_0x1973ac('0x11c2')][_0x1973ac('0x1a69')]&&_0x18e3c3[_0x1973ac('0x11c2')][_0x1973ac('0x1a69')][_0x1973ac('0x577')]){_0x1ef826[_0x1973ac('0x1a69')]=_0x18e3c3[_0x1973ac('0x11c2')]['errors']||[{'message':_0x18e3c3[_0x1973ac('0x174f')](),'type':'api.action.delete'}];for(var _0x49f062=0x0;_0x49f062<_0x18e3c3[_0x1973ac('0x11c2')]['errors']['length'];_0x49f062++){_0x972d24[_0x1973ac('0x2092')]({'title':_0x18e3c3['data'][_0x1973ac('0x1a69')][_0x49f062][_0x1973ac('0x7fa')],'msg':_0x18e3c3[_0x1973ac('0x11c2')][_0x1973ac('0x1a69')][_0x49f062]['message']});}}else _0x972d24[_0x1973ac('0x2092')]({'title':_0x18e3c3['status']?_0x1973ac('0x22d')+_0x18e3c3[_0x1973ac('0x209')]+_0x1973ac('0xa99')+_0x18e3c3['statusText']:_0x1973ac('0x2cb'),'msg':_0x18e3c3[_0x1973ac('0x11c2')]?JSON['stringify'](_0x18e3c3[_0x1973ac('0x11c2')]['message']):_0x18e3c3['message']||_0x18e3c3['toString']()});});},function(){});}function _0x3498bc(_0x234999){var _0x1ae0ab=_0x360dcd;_0x35686b[_0x1ae0ab('0x1c24')](_0x234999);}}const _0x5cd96f=_0x41d405,_0x5095ef=_0x398308['p']+_0x3877e3('0x7d1');_0xd608fb[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),'toasty','api','Auth'];function _0xd608fb(_0x5c5f49,_0x32e3a6,_0x13244a,_0x419d61,_0x4cbd83,_0x5d60a5,_0x114326,_0xd1c9a6,_0x237e88){var _0x48cd5d=_0x3877e3,_0x5dbc44=this;_0x5dbc44[_0x48cd5d('0x123f')]=_0x237e88[_0x48cd5d('0x15ed')](),_0x5dbc44[_0x48cd5d('0x23b9')]={},_0x5dbc44[_0x48cd5d('0x1f44')]={'count':0x0,'rows':[]},_0x5dbc44[_0x48cd5d('0x2318')]=[],_0x5dbc44[_0x48cd5d('0x77')]={'fields':_0x48cd5d('0x22de'),'limit':0xa,'page':0x1},_0x5dbc44['fields']={'queue':_0x48cd5d('0x1da'),'lastevent':_0x48cd5d('0x68d'),'routeId':_0x48cd5d('0x1539'),'agent':'Agent','account':_0x48cd5d('0x5f0'),'interaction':'Interaction','message':'Message'},_0x5dbc44[_0x48cd5d('0xafc')]={'abandoned':'Abandon','timeout':_0x48cd5d('0x1149'),'complete':_0x48cd5d('0x224'),'rejected':_0x48cd5d('0x2577'),'called':_0x48cd5d('0x2399'),'connect':_0x48cd5d('0x19b7'),'nosuchnumber':_0x48cd5d('0x229f'),'busy':_0x48cd5d('0x480'),'noanswer':_0x48cd5d('0x2d'),'congestion':_0x48cd5d('0x2163'),'agentreject':_0x48cd5d('0x118f')},_0x5dbc44[_0x48cd5d('0x2385')]={'in':_0x48cd5d('0x3fc'),'out':'Outgoing','accept':_0x48cd5d('0x932'),'reject':_0x48cd5d('0x255a')},_0x5dbc44[_0x48cd5d('0x1081')]=_0x58618e,_0x5dbc44[_0x48cd5d('0xdb1')]=_0x14d853,_0x5dbc44[_0x48cd5d('0x18de')]=_0x3cd815,_0x5dbc44[_0x48cd5d('0x1bfa')]=_0x6860be,_0x5dbc44[_0x48cd5d('0x1733')]=_0x380488,_0x5dbc44[_0x48cd5d('0x15dc')]=_0x3b3457,_0x5dbc44['deleteSelectedTriggerAllConditions']=_0x46eb9d;function _0x58618e(_0x2d1d93,_0x23d08b){var _0x3b6a3a=_0x48cd5d;_0x5dbc44[_0x3b6a3a('0x23b9')]=_0x2d1d93,_0x5dbc44[_0x3b6a3a('0x5ed')]=typeof _0x23d08b!=='undefined'?_0x23d08b:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5dbc44['query'][_0x3b6a3a('0x937')]=_0x5dbc44[_0x3b6a3a('0x23b9')]['id'],_0x5dbc44['query']['id']=_0x5dbc44['trigger']['id'],_0x3cd815();}function _0xadbd05(){var _0x6811bb=_0x48cd5d,_0x6e2141=_0x5dbc44[_0x6811bb('0x23b9')][_0x6811bb('0x27b5')],_0x325b63=_0x5dbc44[_0x6811bb('0x23b9')]['channel']+_0x5dbc44['trigger'][_0x6811bb('0x27b5')]==='chat'?_0x6811bb('0x10df'):'Accounts',_0x12e0d7=_0x5dbc44[_0x6811bb('0x23b9')][_0x6811bb('0x27b5')]+(_0x5dbc44[_0x6811bb('0x23b9')][_0x6811bb('0x27b5')]===_0x6811bb('0x1f65')?_0x6811bb('0x188b'):_0x6811bb('0x5f0')),_0x4d2fa8;switch(_0x5dbc44[_0x6811bb('0x23b9')][_0x6811bb('0x27b5')]){case _0x6811bb('0x1f65'):_0x4d2fa8=0x1f6;break;case _0x6811bb('0x93f'):_0x4d2fa8=0x386;break;case _0x6811bb('0x1c8b'):_0x4d2fa8=0x25a;break;case'openchannel':_0x4d2fa8=0x322;break;case'sms':_0x4d2fa8=0x2be;break;case _0x6811bb('0x1ad4'):_0x4d2fa8=0x836;break;}_0x237e88[_0x6811bb('0xcfc')]()?_0xd1c9a6[_0x12e0d7][_0x6811bb('0x595')]({'fields':_0x6811bb('0x1aa8'),'sort':'id','nolimit':_0x6811bb('0x19bd')})[_0x6811bb('0x1376')][_0x6811bb('0x21ad')](function(_0x45133e){var _0x9c4cbb=_0x6811bb;_0x5dbc44[_0x325b63]=_0x45133e[_0x9c4cbb('0x1b33')]||[];})[_0x6811bb('0x1c1d')](function(_0x5d8b39){var _0x50beb6=_0x6811bb;_0x114326['error']({'title':_0x5d8b39[_0x50beb6('0x209')]?_0x50beb6('0x22d')+_0x5d8b39[_0x50beb6('0x209')]+_0x50beb6('0xa99')+_0x5d8b39[_0x50beb6('0x1808')]:_0x50beb6('0xe7e')+_0x6e2141[_0x50beb6('0x2e8')]()+_0x6e2141===_0x50beb6('0x1f65')?_0x50beb6('0xb0c'):_0x50beb6('0x1873'),'msg':_0x5d8b39['data']?JSON['stringify'](_0x5d8b39[_0x50beb6('0x11c2')]):_0x5d8b39[_0x50beb6('0x174f')]()});}):_0xd1c9a6[_0x12e0d7][_0x6811bb('0x595')]({'fields':_0x6811bb('0x1aa8'),'sort':'id','nolimit':_0x6811bb('0x19bd')})[_0x6811bb('0x1376')][_0x6811bb('0x21ad')](function(_0xa308b){var _0x25627d=_0x6811bb;_0x5dbc44[_0x325b63]=_0xa308b[_0x25627d('0x1b33')]||[];})[_0x6811bb('0x21ad')](function(){var _0x58fdb1=_0x6811bb;return _0xd1c9a6['userProfileSection']['get']({'userProfileId':_0x5dbc44[_0x58fdb1('0x123f')][_0x58fdb1('0x1618')],'sectionId':_0x4d2fa8})[_0x58fdb1('0x1376')];})[_0x6811bb('0x21ad')](function(_0x118516){var _0x14746b=_0x6811bb,_0x345956=_0x118516&&_0x118516[_0x14746b('0x1b33')]?_0x118516[_0x14746b('0x1b33')][0x0]:null;if(!_0x345956){var _0x2a9f75=[],_0x4d5837=[];_0x5dbc44[_0x14746b('0x1f44')]['rows'][_0x14746b('0x1a52')](function(_0x5d6a15){var _0x5d33db=_0x14746b;if(_0x5d6a15[_0x5d33db('0xff8')]==='account'){var _0x3e427b=_0x86640f()['find'](_0x5dbc44[_0x325b63],{'id':Number(_0x5d6a15[_0x5d33db('0x2228')])});_0x4d5837[_0x5d33db('0x206c')](_0x3e427b);}});for(var _0x49b77f=0x0;_0x49b77f<_0x5dbc44[_0x325b63][_0x14746b('0x577')];_0x49b77f++){var _0x47c570=_0x86640f()[_0x14746b('0x2664')](_0x4d5837,{'id':_0x5dbc44[_0x325b63][_0x49b77f]['id']});_0x47c570&&(_0x5dbc44[_0x325b63][_0x49b77f]['canSelect']=![],_0x2a9f75[_0x14746b('0x206c')](_0x5dbc44[_0x325b63][_0x49b77f]));}_0x5dbc44[_0x325b63]=_0x2a9f75;}else{if(!_0x345956[_0x14746b('0x80c')])return _0xd1c9a6[_0x14746b('0x185e')][_0x14746b('0x595')]({'sectionId':_0x345956['id']})['$promise']['then'](function(_0x3f8e6c){var _0x43b8bb=_0x14746b,_0x91ed51=_0x86640f()[_0x43b8bb('0x26c3')](_0x3f8e6c[_0x43b8bb('0x1b33')],function(_0x404b44){var _0x18cf1b=_0x43b8bb;return _0x86640f()[_0x18cf1b('0x1d2e')](_0x5dbc44[_0x325b63],{'id':_0x404b44[_0x18cf1b('0x675')]});}),_0x289298=null;_0x289298=[],_0x5dbc44[_0x43b8bb('0x1f44')][_0x43b8bb('0x1b33')]['forEach'](function(_0x298426){var _0xa0d034=_0x43b8bb;if(_0x298426[_0xa0d034('0xff8')]==='account'){var _0x50d67b=_0x86640f()[_0xa0d034('0x1d2e')](_0x5dbc44[_0x325b63],{'id':Number(_0x298426[_0xa0d034('0x2228')])});_0x289298[_0xa0d034('0x206c')](_0x50d67b);}}),!_0x86640f()[_0x43b8bb('0x23aa')](_0x289298)&&_0x289298[_0x43b8bb('0x1a52')](function(_0x1a7c10){var _0x5e2f73=_0x43b8bb;if(!_0x86640f()['some'](_0x91ed51,['id',_0x1a7c10['id']])){var _0x50484f=_0x86640f()['find'](_0x5dbc44[_0x325b63],{'id':_0x1a7c10['id']});_0x50484f['canSelect']=![],_0x91ed51[_0x5e2f73('0x206c')](_0x50484f);}}),_0x5dbc44[_0x325b63]=_0x91ed51;});}})[_0x6811bb('0x1c1d')](function(_0x26a746){var _0x11286a=_0x6811bb;_0x114326[_0x11286a('0x2092')]({'title':_0x26a746[_0x11286a('0x209')]?_0x11286a('0x22d')+_0x26a746[_0x11286a('0x209')]+_0x11286a('0xa99')+_0x26a746[_0x11286a('0x1808')]:'SYSTEM:GET_'+_0x6e2141[_0x11286a('0x2e8')]()+_0x6e2141===_0x11286a('0x1f65')?_0x11286a('0xb0c'):_0x11286a('0x1873'),'msg':_0x26a746[_0x11286a('0x11c2')]?JSON[_0x11286a('0x25e')](_0x26a746['data']):_0x26a746[_0x11286a('0x174f')]()});});}function _0x590bf8(){var _0x4f3bf0=_0x48cd5d,_0xb35d76=[{'id':0x191,'type':'inbound'},{'id':0x5dd,'type':_0x4f3bf0('0x2300')}],_0x33a0ea=null;_0x237e88[_0x4f3bf0('0xcfc')]()?_0xd1c9a6[_0x4f3bf0('0xb97')][_0x4f3bf0('0x595')]({'fields':_0x4f3bf0('0xfa'),'sort':_0x4f3bf0('0x19fe'),'nolimit':_0x4f3bf0('0x19bd')})[_0x4f3bf0('0x1376')][_0x4f3bf0('0x21ad')](function(_0x1bdb8f){var _0x5e8597=_0x4f3bf0;_0x5dbc44[_0x5e8597('0xb7a')]=_0x1bdb8f['rows']||[];})[_0x4f3bf0('0x1c1d')](function(_0x42c598){var _0x2fb547=_0x4f3bf0;_0x114326[_0x2fb547('0x2092')]({'title':_0x42c598[_0x2fb547('0x209')]?_0x2fb547('0x22d')+_0x42c598[_0x2fb547('0x209')]+_0x2fb547('0xa99')+_0x42c598[_0x2fb547('0x1808')]:_0x2fb547('0x1b58'),'msg':_0x42c598[_0x2fb547('0x11c2')]?JSON[_0x2fb547('0x25e')](_0x42c598[_0x2fb547('0x11c2')]):_0x42c598[_0x2fb547('0x174f')]()});}):_0xd1c9a6['voiceQueue']['get']({'fields':_0x4f3bf0('0xfa'),'sort':_0x4f3bf0('0x19fe'),'nolimit':'true'})[_0x4f3bf0('0x1376')][_0x4f3bf0('0x21ad')](function(_0x1f5faf){_0x33a0ea=_0x1f5faf['rows']||[];})['then'](function(){var _0x177aad=_0x4f3bf0,_0x17c3bb=[];for(var _0x51cec0=0x0;_0x51cec0<_0xb35d76[_0x177aad('0x577')];_0x51cec0++){_0x17c3bb[_0x177aad('0x206c')](_0xd1c9a6['userProfileSection']['get']({'userProfileId':_0x5dbc44[_0x177aad('0x123f')]['userProfileId'],'sectionId':_0xb35d76[_0x51cec0]['id']})['$promise']);}return _0x32e3a6[_0x177aad('0x1ba7')](_0x17c3bb);})[_0x4f3bf0('0x21ad')](function(_0xf2f4d9){var _0x10de29=_0x4f3bf0,_0x11f424=_0x86640f()[_0x10de29('0x26c3')](_0xf2f4d9,function(_0x515c6c){var _0x2f0997=_0x10de29;return _0x515c6c&&_0x515c6c[_0x2f0997('0x1b33')]?_0x515c6c[_0x2f0997('0x1b33')][0x0]:null;}),_0x2d1321=[],_0x47a40c=function _0x4b7d53(_0x3f78ee){var _0x542970=_0x10de29,_0xe0b119=_0x86640f()['find'](_0x11f424,['sectionId',_0xb35d76[_0x3f78ee]['id']]);if(_0xe0b119){if(!_0xe0b119[_0x542970('0x80c')])_0x2d1321[_0x542970('0x206c')](_0xd1c9a6['userProfileResource'][_0x542970('0x595')]({'sectionId':_0xe0b119['id']})[_0x542970('0x1376')]);else{var _0x4d3864=[];_0x33a0ea[_0x542970('0x1a52')](function(_0x4c2188){var _0x29b98b=_0x542970;_0x4c2188[_0x29b98b('0x7fa')]===_0xb35d76[_0x3f78ee][_0x29b98b('0x7fa')]&&_0x4d3864[_0x29b98b('0x206c')](_0x4c2188);}),_0x2d1321[_0x542970('0x206c')]({'rows':_0x4d3864,'count':_0x4d3864[_0x542970('0x577')]});}}};for(var _0x4c912e=0x0;_0x4c912e<_0xb35d76['length'];_0x4c912e++){_0x47a40c(_0x4c912e);}return _0x32e3a6[_0x10de29('0x1ba7')](_0x2d1321);})['then'](function(_0x1fbed1){var _0x3d7d85=_0x4f3bf0,_0x48560a=[],_0x361f4e=[];_0x5dbc44[_0x3d7d85('0x1f44')][_0x3d7d85('0x1b33')][_0x3d7d85('0x1a52')](function(_0x54bf8e){var _0x2e9ce5=_0x3d7d85;if(_0x54bf8e[_0x2e9ce5('0xff8')]==='queue'){var _0x1f4457=_0x86640f()[_0x2e9ce5('0x1d2e')](_0x33a0ea,{'name':_0x54bf8e[_0x2e9ce5('0x2228')]});_0x361f4e['push'](_0x1f4457);}});for(var _0x1fe9a7=0x0;_0x1fe9a7<_0x1fbed1[_0x3d7d85('0x577')];_0x1fe9a7++){var _0x258bf9=_0x1fbed1[_0x1fe9a7][_0x3d7d85('0x1b33')]||[];_0x258bf9[_0x3d7d85('0x1a52')](function(_0x5b18f3){_0x48560a['push'](_0x5b18f3);});}!_0x86640f()[_0x3d7d85('0x23aa')](_0x361f4e)&&_0x361f4e[_0x3d7d85('0x1a52')](function(_0x3bab4d){var _0x2022e1=_0x3d7d85;if(!_0x86640f()[_0x2022e1('0x2664')](_0x48560a,[_0x2022e1('0x675'),_0x3bab4d['id']])){var _0x48c693=_0x86640f()['find'](_0x33a0ea,{'id':_0x3bab4d['id']});_0x48c693[_0x2022e1('0xba')]=![],_0x48560a['push'](_0x48c693);}}),_0x5dbc44[_0x3d7d85('0xb7a')]=_0x48560a;})[_0x4f3bf0('0x1c1d')](function(_0x2c7f52){var _0x31fc34=_0x4f3bf0;_0x114326[_0x31fc34('0x2092')]({'title':_0x2c7f52['status']?_0x31fc34('0x22d')+_0x2c7f52[_0x31fc34('0x209')]+_0x31fc34('0xa99')+_0x2c7f52[_0x31fc34('0x1808')]:_0x31fc34('0x1612'),'msg':_0x2c7f52[_0x31fc34('0x11c2')]?JSON[_0x31fc34('0x25e')](_0x2c7f52[_0x31fc34('0x11c2')]):_0x2c7f52[_0x31fc34('0x174f')]()});});}function _0x23716b(){var _0x4dd422=_0x48cd5d;_0x237e88[_0x4dd422('0xcfc')]()?_0xd1c9a6[_0x4dd422('0x1b0c')][_0x4dd422('0x595')]({'fields':_0x4dd422('0x539'),'type':_0x4dd422('0x2300'),'VoiceExtensionId':'null','nolimit':_0x4dd422('0x19bd')})['$promise'][_0x4dd422('0x21ad')](function(_0x51fb3c){var _0x2abefa=_0x4dd422;_0x5dbc44[_0x2abefa('0x31')]=_0x51fb3c[_0x2abefa('0x1b33')]||[];})[_0x4dd422('0x1c1d')](function(_0xa6d4c8){var _0x55cfb3=_0x4dd422;_0x114326[_0x55cfb3('0x2092')]({'title':_0xa6d4c8[_0x55cfb3('0x209')]?_0x55cfb3('0x22d')+_0xa6d4c8[_0x55cfb3('0x209')]+_0x55cfb3('0xa99')+_0xa6d4c8[_0x55cfb3('0x1808')]:_0x55cfb3('0x2486'),'msg':_0xa6d4c8[_0x55cfb3('0x11c2')]?JSON[_0x55cfb3('0x25e')](_0xa6d4c8['data']):_0xa6d4c8['toString']()});}):_0xd1c9a6[_0x4dd422('0x1b0c')]['get']({'fields':'id,exten','type':_0x4dd422('0x2300'),'VoiceExtensionId':_0x4dd422('0x27a'),'nolimit':_0x4dd422('0x19bd')})[_0x4dd422('0x1376')][_0x4dd422('0x21ad')](function(_0x57347e){var _0x378e57=_0x4dd422;_0x5dbc44[_0x378e57('0x31')]=_0x57347e[_0x378e57('0x1b33')]||[];})[_0x4dd422('0x21ad')](function(){var _0x2ad6c7=_0x4dd422;return _0xd1c9a6[_0x2ad6c7('0xab4')][_0x2ad6c7('0x595')]({'userProfileId':_0x5dbc44['currentUser']['userProfileId'],'sectionId':0x193})['$promise'];})[_0x4dd422('0x21ad')](function(_0x8197be){var _0x21bdae=_0x4dd422,_0x1902aa=_0x8197be&&_0x8197be[_0x21bdae('0x1b33')]?_0x8197be[_0x21bdae('0x1b33')][0x0]:null;if(!_0x1902aa){var _0x3ffb7e=[],_0x237cd2=[];_0x5dbc44[_0x21bdae('0x1f44')][_0x21bdae('0x1b33')][_0x21bdae('0x1a52')](function(_0x280797){var _0x244476=_0x21bdae;if(_0x280797[_0x244476('0xff8')]===_0x244476('0x26a8')){var _0x539b7a=_0x86640f()[_0x244476('0x1d2e')](_0x5dbc44[_0x244476('0x31')],{'id':Number(_0x280797[_0x244476('0x2228')])});_0x237cd2[_0x244476('0x206c')](_0x539b7a);}});for(var _0x129b66=0x0;_0x129b66<_0x5dbc44[_0x21bdae('0x31')][_0x21bdae('0x577')];_0x129b66++){var _0x2958e2=_0x86640f()[_0x21bdae('0x2664')](_0x237cd2,{'id':_0x5dbc44[_0x21bdae('0x31')][_0x129b66]['id']});_0x2958e2&&(_0x5dbc44[_0x21bdae('0x31')][_0x129b66][_0x21bdae('0xba')]=![],_0x3ffb7e[_0x21bdae('0x206c')](_0x5dbc44[_0x21bdae('0x31')][_0x129b66]));}_0x5dbc44['outboundRoutes']=_0x3ffb7e;}else{if(!_0x1902aa[_0x21bdae('0x80c')])return _0xd1c9a6[_0x21bdae('0x185e')][_0x21bdae('0x595')]({'sectionId':_0x1902aa['id']})[_0x21bdae('0x1376')][_0x21bdae('0x21ad')](function(_0x4a08ef){var _0x424ef8=_0x21bdae,_0x14cc3c=_0x86640f()[_0x424ef8('0x26c3')](_0x4a08ef[_0x424ef8('0x1b33')],function(_0x3cd808){var _0x1a0f45=_0x424ef8;return _0x86640f()[_0x1a0f45('0x1d2e')](_0x5dbc44[_0x1a0f45('0x31')],{'id':_0x3cd808['resourceId']});}),_0x2011f0=null;_0x2011f0=[],_0x5dbc44[_0x424ef8('0x1f44')]['rows'][_0x424ef8('0x1a52')](function(_0x30f8c8){var _0x2f3d6d=_0x424ef8;if(_0x30f8c8[_0x2f3d6d('0xff8')]===_0x2f3d6d('0x26a8')){var _0x44dc7b=_0x86640f()[_0x2f3d6d('0x1d2e')](_0x5dbc44['outboundRoutes'],{'id':Number(_0x30f8c8[_0x2f3d6d('0x2228')])});_0x2011f0[_0x2f3d6d('0x206c')](_0x44dc7b);}}),!_0x86640f()[_0x424ef8('0x23aa')](_0x2011f0)&&_0x2011f0[_0x424ef8('0x1a52')](function(_0x3892ae){var _0x495db1=_0x424ef8;if(!_0x86640f()['some'](_0x14cc3c,['id',_0x3892ae['id']])){var _0x464aba=_0x86640f()['find'](_0x5dbc44[_0x495db1('0x31')],{'id':_0x3892ae['id']});_0x464aba[_0x495db1('0xba')]=![],_0x14cc3c[_0x495db1('0x206c')](_0x464aba);}}),_0x5dbc44['outboundRoutes']=_0x14cc3c;});}})[_0x4dd422('0x1c1d')](function(_0x54e5d0){var _0x177950=_0x4dd422;_0x114326[_0x177950('0x2092')]({'title':_0x54e5d0[_0x177950('0x209')]?_0x177950('0x22d')+_0x54e5d0[_0x177950('0x209')]+_0x177950('0xa99')+_0x54e5d0[_0x177950('0x1808')]:_0x177950('0x2486'),'msg':_0x54e5d0[_0x177950('0x11c2')]?JSON[_0x177950('0x25e')](_0x54e5d0[_0x177950('0x11c2')]):_0x54e5d0[_0x177950('0x174f')]()});});}function _0x1dba5f(){var _0x34be4f=_0x48cd5d;_0x237e88['isAdmin']()?_0xd1c9a6[_0x34be4f('0x1775')][_0x34be4f('0x595')]({'fields':_0x34be4f('0x2326'),'sort':_0x34be4f('0x19fe'),'role':_0x34be4f('0x2402'),'nolimit':_0x34be4f('0x19bd')})[_0x34be4f('0x1376')][_0x34be4f('0x21ad')](function(_0xc335f3){var _0x5191be=_0x34be4f;_0x5dbc44[_0x5191be('0xcb5')]=_0xc335f3[_0x5191be('0x1b33')]||[];})[_0x34be4f('0x1c1d')](function(_0x398320){var _0x35aa7b=_0x34be4f;_0x114326[_0x35aa7b('0x2092')]({'title':_0x398320[_0x35aa7b('0x209')]?_0x35aa7b('0x22d')+_0x398320['status']+_0x35aa7b('0xa99')+_0x398320[_0x35aa7b('0x1808')]:_0x35aa7b('0x1381'),'msg':_0x398320[_0x35aa7b('0x11c2')]?JSON['stringify'](_0x398320['data']):_0x398320[_0x35aa7b('0x174f')]()});}):_0xd1c9a6['user'][_0x34be4f('0x595')]({'fields':'id,name,fullname','sort':_0x34be4f('0x19fe'),'role':_0x34be4f('0x2402'),'nolimit':'true'})[_0x34be4f('0x1376')][_0x34be4f('0x21ad')](function(_0x5cb2d8){var _0x40d5a5=_0x34be4f;_0x5dbc44[_0x40d5a5('0xcb5')]=_0x5cb2d8[_0x40d5a5('0x1b33')]||[];})[_0x34be4f('0x21ad')](function(){var _0x41ddd8=_0x34be4f;return _0xd1c9a6[_0x41ddd8('0xab4')][_0x41ddd8('0x595')]({'userProfileId':_0x5dbc44[_0x41ddd8('0x123f')][_0x41ddd8('0x1618')],'sectionId':0xca})[_0x41ddd8('0x1376')];})[_0x34be4f('0x21ad')](function(_0x5c517c){var _0xd2da8=_0x34be4f,_0x10302b=_0x5c517c&&_0x5c517c[_0xd2da8('0x1b33')]?_0x5c517c[_0xd2da8('0x1b33')][0x0]:null;if(!_0x10302b){var _0x556a12=[],_0xa36447=[];_0x5dbc44[_0xd2da8('0x1f44')][_0xd2da8('0x1b33')][_0xd2da8('0x1a52')](function(_0x55c199){var _0x4cddd7=_0xd2da8;if(_0x55c199[_0x4cddd7('0xff8')]===_0x4cddd7('0x2402')){var _0x28b797=_0x86640f()['find'](_0x5dbc44[_0x4cddd7('0xcb5')],{'name':_0x55c199[_0x4cddd7('0x2228')]});_0xa36447[_0x4cddd7('0x206c')](_0x28b797);}});for(var _0x473307=0x0;_0x473307<_0x5dbc44[_0xd2da8('0xcb5')][_0xd2da8('0x577')];_0x473307++){var _0x4c4ef5=_0x86640f()[_0xd2da8('0x2664')](_0xa36447,{'id':_0x5dbc44[_0xd2da8('0xcb5')][_0x473307]['id']});_0x4c4ef5&&(_0x5dbc44['agents'][_0x473307][_0xd2da8('0xba')]=![],_0x556a12['push'](_0x5dbc44['agents'][_0x473307]));}_0x5dbc44[_0xd2da8('0xcb5')]=_0x556a12;}else{if(!_0x10302b[_0xd2da8('0x80c')])return _0xd1c9a6['userProfileResource'][_0xd2da8('0x595')]({'sectionId':_0x10302b['id']})['$promise']['then'](function(_0x2c4a1f){var _0x30417f=_0xd2da8,_0x3ac041=_0x86640f()[_0x30417f('0x26c3')](_0x2c4a1f[_0x30417f('0x1b33')],function(_0x1c1fa6){var _0x1604fd=_0x30417f;return _0x86640f()[_0x1604fd('0x1d2e')](_0x5dbc44[_0x1604fd('0xcb5')],{'id':_0x1c1fa6[_0x1604fd('0x675')]});}),_0x3f968e=null;_0x3f968e=[],_0x5dbc44[_0x30417f('0x1f44')]['rows'][_0x30417f('0x1a52')](function(_0x2ef9c8){var _0x20b7ee=_0x30417f;if(_0x2ef9c8['field']===_0x20b7ee('0x2402')){var _0x285bf4=_0x86640f()[_0x20b7ee('0x1d2e')](_0x5dbc44[_0x20b7ee('0xcb5')],{'name':_0x2ef9c8[_0x20b7ee('0x2228')]});_0x3f968e[_0x20b7ee('0x206c')](_0x285bf4);}}),!_0x86640f()[_0x30417f('0x23aa')](_0x3f968e)&&_0x3f968e[_0x30417f('0x1a52')](function(_0x499a8d){var _0x1a908c=_0x30417f;if(!_0x86640f()[_0x1a908c('0x2664')](_0x3ac041,['id',_0x499a8d['id']])){var _0x3ed412=_0x86640f()['find'](_0x5dbc44[_0x1a908c('0xcb5')],{'id':_0x499a8d['id']});_0x3ed412[_0x1a908c('0xba')]=![],_0x3ac041[_0x1a908c('0x206c')](_0x3ed412);}}),_0x5dbc44[_0x30417f('0xcb5')]=_0x3ac041;});}})[_0x34be4f('0x1c1d')](function(_0x29add9){var _0x1ec159=_0x34be4f;_0x114326[_0x1ec159('0x2092')]({'title':_0x29add9[_0x1ec159('0x209')]?'API:'+_0x29add9['status']+_0x1ec159('0xa99')+_0x29add9[_0x1ec159('0x1808')]:_0x1ec159('0x1381'),'msg':_0x29add9[_0x1ec159('0x11c2')]?JSON[_0x1ec159('0x25e')](_0x29add9[_0x1ec159('0x11c2')]):_0x29add9[_0x1ec159('0x174f')]()});});}function _0x59fc76(){var _0x459e40=_0x48cd5d;if(_0x5dbc44[_0x459e40('0x23b9')][_0x459e40('0x27b5')]===_0x459e40('0x8ed')){if(_0x86640f()['some'](_0x5dbc44[_0x459e40('0x1f44')][_0x459e40('0x1b33')],[_0x459e40('0xff8'),_0x459e40('0xbdd')])){if(!_0x5dbc44[_0x459e40('0xb7a')])_0x590bf8();}if(_0x86640f()[_0x459e40('0x2664')](_0x5dbc44[_0x459e40('0x1f44')][_0x459e40('0x1b33')],['field',_0x459e40('0x26a8')])){if(!_0x5dbc44[_0x459e40('0x31')])_0x23716b();}if(_0x86640f()[_0x459e40('0x2664')](_0x5dbc44[_0x459e40('0x1f44')][_0x459e40('0x1b33')],['field','agent'])){if(!_0x5dbc44[_0x459e40('0xcb5')])_0x1dba5f();}}else _0xadbd05();}function _0x14d853(_0x376f24){var _0x54e7b4=_0x48cd5d;_0x5dbc44[_0x54e7b4('0x1f44')]=_0x376f24||{'count':0x0,'rows':[]},_0x59fc76();}function _0x3cd815(){var _0x462d6c=_0x48cd5d;_0x5dbc44[_0x462d6c('0x77')][_0x462d6c('0x15a5')]=(_0x5dbc44[_0x462d6c('0x77')]['page']-0x1)*_0x5dbc44[_0x462d6c('0x77')]['limit'],_0x5dbc44[_0x462d6c('0x71b')]=_0xd1c9a6[_0x462d6c('0x23b9')][_0x462d6c('0x152d')](_0x5dbc44[_0x462d6c('0x77')],_0x14d853)[_0x462d6c('0x1376')];}function _0x6860be(_0x187f93,_0x1eaf5f){var _0x50b181=_0x48cd5d;_0x4cbd83['show']({'controller':_0x50b181('0x222c'),'controllerAs':'vm','templateUrl':_0x5095ef,'parent':angular[_0x50b181('0x1676')](_0x5d60a5['body']),'targetEvent':_0x187f93,'clickOutsideToClose':!![],'locals':{'trigger':_0x5dbc44[_0x50b181('0x23b9')],'allCondition':_0x1eaf5f,'allConditions':_0x5dbc44[_0x50b181('0x1f44')][_0x50b181('0x1b33')],'license':null,'setting':null,'crudPermissions':_0x5dbc44[_0x50b181('0x5ed')]}})[_0x50b181('0x21ad')](function(_0x1f0f54){var _0x2e5aaf=_0x50b181;_0x1f0f54&&(_0x5dbc44['triggerAllConditions']={'count':_0x1f0f54[_0x2e5aaf('0x577')],'rows':_0x1f0f54},_0x59fc76());});}function _0x3b3457(_0x45dcf4,_0x2e0142){var _0x36ee26=_0x48cd5d,_0x28b742=_0x4cbd83[_0x36ee26('0xa33')]()['title'](_0x13244a[_0x36ee26('0x183e')]('TOOLS.NOTIFICATIONS.CONDITION_DELETE_TITLE'))[_0x36ee26('0x7a7')](_0x36ee26('0x9a9'))[_0x36ee26('0x1e6d')](_0x2e0142)['ok']('OK')[_0x36ee26('0x3b5')](_0x13244a['instant'](_0x36ee26('0x20ea')));_0x4cbd83[_0x36ee26('0x853')](_0x28b742)[_0x36ee26('0x21ad')](function(){_0x4b4012(_0x45dcf4,!![]);});}function _0x4b4012(_0x33b121,_0x27062f){var _0x3d9868=_0x48cd5d;_0xd1c9a6['condition'][_0x3d9868('0x1164')]({'id':_0x33b121['id']})[_0x3d9868('0x1376')]['then'](function(){var _0x5c539e=_0x3d9868;_0x3cd815(),_0x27062f&&_0x114326[_0x5c539e('0xdb1')]({'title':_0x13244a[_0x5c539e('0x183e')](_0x5c539e('0xd81'))});})[_0x3d9868('0x1c1d')](function(_0x50a755){var _0x1a7397=_0x3d9868;if(_0x50a755[_0x1a7397('0x11c2')]&&_0x50a755['data']['errors']&&_0x50a755[_0x1a7397('0x11c2')]['errors'][_0x1a7397('0x577')]){_0x5dbc44['errors']=_0x50a755[_0x1a7397('0x11c2')][_0x1a7397('0x1a69')]||[{'message':_0x50a755[_0x1a7397('0x174f')](),'type':'SYSTEM:GETtrigger'}];for(var _0x3fd217=0x0;_0x3fd217<_0x50a755[_0x1a7397('0x11c2')][_0x1a7397('0x1a69')][_0x1a7397('0x577')];_0x3fd217++){_0x114326['error']({'title':_0x50a755[_0x1a7397('0x11c2')]['errors'][_0x3fd217][_0x1a7397('0x7fa')],'msg':_0x50a755[_0x1a7397('0x11c2')][_0x1a7397('0x1a69')][_0x3fd217][_0x1a7397('0x1224')]});}}else _0x114326[_0x1a7397('0x2092')]({'title':_0x50a755['status']?'API:'+_0x50a755[_0x1a7397('0x209')]+_0x1a7397('0xa99')+_0x50a755[_0x1a7397('0x1808')]:_0x1a7397('0x1a2'),'msg':_0x50a755[_0x1a7397('0x11c2')]?JSON[_0x1a7397('0x25e')](_0x50a755['data'][_0x1a7397('0x1224')]):_0x50a755['message']||_0x50a755[_0x1a7397('0x174f')]()});});}function _0x380488(){var _0x3327aa=_0x48cd5d,_0x9db5b9=angular[_0x3327aa('0xd75')](_0x5dbc44[_0x3327aa('0x2318')]);return _0x5dbc44[_0x3327aa('0x2318')]=[],_0x9db5b9;}function _0x46eb9d(_0x2335b9){var _0x533c27=_0x48cd5d,_0x220a37=_0x4cbd83[_0x533c27('0xa33')]()['title'](_0x13244a[_0x533c27('0x183e')]('TOOLS.NOTIFICATIONS.CONDITIONS_DELETE_TITLE'))['content'](_0x13244a['instant'](_0x533c27('0xddd'),{'total':_0x5dbc44[_0x533c27('0x2318')]['length']}))[_0x533c27('0x7a7')](_0x533c27('0x5e0'))[_0x533c27('0x1e6d')](_0x2335b9)['ok']('OK')[_0x533c27('0x3b5')](_0x13244a[_0x533c27('0x183e')](_0x533c27('0x20ea')));_0x4cbd83[_0x533c27('0x853')](_0x220a37)['then'](function(){var _0x2da325=_0x533c27;_0x5dbc44[_0x2da325('0x2318')][_0x2da325('0x1a52')](function(_0x12e1c2){_0x4b4012(_0x12e1c2);}),_0x5dbc44['selectedTriggerAllConditions']=[],_0x114326[_0x2da325('0xdb1')]({'title':_0x13244a[_0x2da325('0x183e')](_0x2da325('0x123'))});});}var _0x22b06d=!![],_0x2ff88a=0x1;_0x5c5f49[_0x48cd5d('0x10e8')](_0x48cd5d('0x10ff'),function(_0x3d32fa,_0x6d477e){var _0x4ed1e5=_0x48cd5d;_0x22b06d?_0x419d61(function(){_0x22b06d=![];}):(!_0x6d477e&&(_0x2ff88a=_0x5dbc44['query'][_0x4ed1e5('0x2376')]),_0x3d32fa!==_0x6d477e&&(_0x5dbc44[_0x4ed1e5('0x77')][_0x4ed1e5('0x2376')]=0x1),!_0x3d32fa&&(_0x5dbc44[_0x4ed1e5('0x77')][_0x4ed1e5('0x2376')]=_0x2ff88a),_0x3cd815());});}const _0x4efe68=_0xd608fb;_0x2e2752['$inject']=['$scope',_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),'$mdDialog','$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0xeaf'),'allCondition','trigger',_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),'crudPermissions'];function _0x2e2752(_0x5b27f8,_0x16ad75,_0x38d2ca,_0x19676c,_0x5d8139,_0x20f2b5,_0x1ca56e,_0x24cb79,_0x543f76,_0x1dc973,_0x80b70e,_0x35645d,_0x15f67c,_0x5033a9,_0x4eaaba){var _0x4dde71=_0x3877e3,_0x3f30b3=this;_0x3f30b3['currentUser']=_0x35645d[_0x4dde71('0x15ed')](),_0x3f30b3[_0x4dde71('0x1a69')]=[],_0x3f30b3[_0x4dde71('0x21e')]=_0x5033a9,_0x3f30b3['license']=_0x15f67c,_0x3f30b3[_0x4dde71('0x5ed')]=_0x4eaaba,_0x3f30b3['hasModulePermissions']={},_0x3f30b3[_0x4dde71('0x1432')]=_0x3f30b3[_0x4dde71('0x21e')]&&_0x3f30b3['setting'][_0x4dde71('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3f30b3[_0x4dde71('0x4b4')]=_0x4dde71('0xd91'),_0x3f30b3[_0x4dde71('0x1fb9')]=angular[_0x4dde71('0xd75')](_0x543f76),_0x3f30b3[_0x4dde71('0xeaf')]=_0x24cb79,_0x3f30b3[_0x4dde71('0xf9f')]=![],_0x3f30b3[_0x4dde71('0x23b9')]=angular[_0x4dde71('0xd75')](_0x1dc973);!_0x3f30b3[_0x4dde71('0x1fb9')]&&(_0x3f30b3[_0x4dde71('0x1fb9')]={'field':'queue','operator':_0x4dde71('0x816'),'value':'in'},_0x3f30b3[_0x4dde71('0x4b4')]='TOOLS.NEW_ALLCONDITION',_0x3f30b3[_0x4dde71('0xf9f')]=!![]);_0x16ad75[_0x4dde71('0x171b')]['id']&&(_0x3f30b3['allCondition']['TriggerAllId']=_0x16ad75['params']['id']);_0x3f30b3[_0x4dde71('0x1239')]=_0x509e5d,_0x3f30b3[_0x4dde71('0x1048')]=_0x120ca6,_0x3f30b3[_0x4dde71('0x25ad')]=_0x4d455b,_0x3f30b3[_0x4dde71('0x279')]=_0x354e64,_0x3f30b3[_0x4dde71('0x167')]=_0x22ab1f,_0x35645d[_0x4dde71('0x21de')](_0x4dde71('0x1bd8'))?_0x80b70e[_0x4dde71('0xe3c')][_0x4dde71('0x595')]({'fields':_0x4dde71('0x1aa8'),'sort':'id','nolimit':_0x4dde71('0x19bd')})[_0x4dde71('0x1376')][_0x4dde71('0x21ad')](function(_0x5516a8){var _0x1b525f=_0x4dde71;_0x3f30b3['chatAccounts']=_0x5516a8[_0x1b525f('0x1b33')]||[];})[_0x4dde71('0x1c1d')](function(_0x4cf72e){var _0x1b9b8f=_0x4dde71;_0x1ca56e[_0x1b9b8f('0x2092')]({'title':_0x4cf72e[_0x1b9b8f('0x209')]?_0x1b9b8f('0x22d')+_0x4cf72e[_0x1b9b8f('0x209')]+_0x1b9b8f('0xa99')+_0x4cf72e[_0x1b9b8f('0x1808')]:_0x1b9b8f('0x314'),'msg':_0x4cf72e[_0x1b9b8f('0x11c2')]?JSON['stringify'](_0x4cf72e['data']):_0x4cf72e[_0x1b9b8f('0x174f')]()});}):_0x80b70e[_0x4dde71('0xe3c')]['get']({'fields':_0x4dde71('0x1aa8'),'sort':'id','nolimit':'true'})[_0x4dde71('0x1376')][_0x4dde71('0x21ad')](function(_0x1e371d){var _0x19ab7f=_0x4dde71;_0x3f30b3[_0x19ab7f('0xcec')]=_0x1e371d[_0x19ab7f('0x1b33')]||[];})[_0x4dde71('0x21ad')](function(){var _0x16311f=_0x4dde71;return _0x80b70e[_0x16311f('0xab4')][_0x16311f('0x595')]({'userProfileId':_0x3f30b3[_0x16311f('0x123f')]['userProfileId'],'sectionId':0x1f6})[_0x16311f('0x1376')];})[_0x4dde71('0x21ad')](function(_0x9e9eb0){var _0xfcda36=_0x4dde71,_0x164741=_0x9e9eb0&&_0x9e9eb0[_0xfcda36('0x1b33')]?_0x9e9eb0[_0xfcda36('0x1b33')][0x0]:null;if(!_0x164741){var _0x9cd7d6=[],_0x2078cb=null;_0x3f30b3[_0xfcda36('0x1fb9')]&&(_0x2078cb=_0x86640f()[_0xfcda36('0x1d2e')](_0x3f30b3[_0xfcda36('0xcec')],{'id':Number(_0x3f30b3[_0xfcda36('0x1fb9')][_0xfcda36('0x2228')])}));for(var _0x4c848e=0x0;_0x4c848e<_0x3f30b3[_0xfcda36('0xcec')][_0xfcda36('0x577')];_0x4c848e++){_0x2078cb&&_0x3f30b3[_0xfcda36('0xcec')][_0x4c848e]['id']===_0x2078cb['id']&&(_0x3f30b3['chatAccounts'][_0x4c848e][_0xfcda36('0xba')]=![],_0x9cd7d6[_0xfcda36('0x206c')](_0x3f30b3['chatAccounts'][_0x4c848e]));}_0x3f30b3[_0xfcda36('0xcec')]=_0x9cd7d6;}else{if(!_0x164741['autoAssociation'])return _0x80b70e['userProfileResource'][_0xfcda36('0x595')]({'sectionId':_0x164741['id']})[_0xfcda36('0x1376')][_0xfcda36('0x21ad')](function(_0x174b58){var _0x741351=_0xfcda36,_0x39ce0a=_0x86640f()[_0x741351('0x26c3')](_0x174b58['rows'],function(_0x26e895){var _0x585a52=_0x741351;return _0x86640f()['find'](_0x3f30b3['chatAccounts'],{'id':_0x26e895[_0x585a52('0x675')]});}),_0x5cc6cf=null;_0x3f30b3[_0x741351('0x1fb9')]&&(_0x5cc6cf=_0x86640f()[_0x741351('0x1d2e')](_0x3f30b3['chatAccounts'],{'id':Number(_0x3f30b3[_0x741351('0x1fb9')]['value'])}));if(_0x5cc6cf&&!_0x86640f()[_0x741351('0x2664')](_0x39ce0a,['id',_0x5cc6cf['id']])){var _0x37c6c5=_0x86640f()[_0x741351('0x1d2e')](_0x3f30b3['chatAccounts'],{'id':_0x5cc6cf['id']});_0x37c6c5[_0x741351('0xba')]=![],_0x39ce0a['push'](_0x37c6c5);}_0x3f30b3[_0x741351('0xcec')]=_0x39ce0a;});}})[_0x4dde71('0x1c1d')](function(_0x539a0d){var _0x360d1e=_0x4dde71;_0x1ca56e[_0x360d1e('0x2092')]({'title':_0x539a0d[_0x360d1e('0x209')]?_0x360d1e('0x22d')+_0x539a0d[_0x360d1e('0x209')]+_0x360d1e('0xa99')+_0x539a0d[_0x360d1e('0x1808')]:'SYSTEM:GETchatAccounts','msg':_0x539a0d[_0x360d1e('0x11c2')]?JSON['stringify'](_0x539a0d[_0x360d1e('0x11c2')]):_0x539a0d[_0x360d1e('0x174f')]()});}),_0x35645d[_0x4dde71('0x21de')](_0x4dde71('0x1bd8'))?_0x80b70e[_0x4dde71('0x66')]['get']({'fields':_0x4dde71('0x1aa8'),'sort':'id','nolimit':'true'})[_0x4dde71('0x1376')]['then'](function(_0x1e9fb6){var _0x381e81=_0x4dde71;_0x3f30b3['mailAccounts']=_0x1e9fb6[_0x381e81('0x1b33')]||[];})[_0x4dde71('0x1c1d')](function(_0x41f762){var _0x5c077f=_0x4dde71;_0x1ca56e[_0x5c077f('0x2092')]({'title':_0x41f762[_0x5c077f('0x209')]?_0x5c077f('0x22d')+_0x41f762['status']+_0x5c077f('0xa99')+_0x41f762[_0x5c077f('0x1808')]:_0x5c077f('0x1b8f'),'msg':_0x41f762[_0x5c077f('0x11c2')]?JSON['stringify'](_0x41f762[_0x5c077f('0x11c2')]):_0x41f762[_0x5c077f('0x174f')]()});}):_0x80b70e[_0x4dde71('0x66')]['get']({'fields':_0x4dde71('0x1aa8'),'sort':'id','nolimit':_0x4dde71('0x19bd')})[_0x4dde71('0x1376')][_0x4dde71('0x21ad')](function(_0x923377){var _0x1314fd=_0x4dde71;_0x3f30b3[_0x1314fd('0x21ab')]=_0x923377['rows']||[];})[_0x4dde71('0x21ad')](function(){var _0x288e3a=_0x4dde71;return _0x80b70e['userProfileSection'][_0x288e3a('0x595')]({'userProfileId':_0x3f30b3['currentUser'][_0x288e3a('0x1618')],'sectionId':0x25a})[_0x288e3a('0x1376')];})[_0x4dde71('0x21ad')](function(_0x4c8fb2){var _0x2a6a40=_0x4dde71,_0x4dfd47=_0x4c8fb2&&_0x4c8fb2[_0x2a6a40('0x1b33')]?_0x4c8fb2[_0x2a6a40('0x1b33')][0x0]:null;if(!_0x4dfd47){var _0x554ceb=[],_0x1befb6=null;_0x3f30b3[_0x2a6a40('0x1fb9')]&&(_0x1befb6=_0x86640f()[_0x2a6a40('0x1d2e')](_0x3f30b3[_0x2a6a40('0x21ab')],{'id':Number(_0x3f30b3[_0x2a6a40('0x1fb9')][_0x2a6a40('0x2228')])}));for(var _0x200208=0x0;_0x200208<_0x3f30b3['mailAccounts'][_0x2a6a40('0x577')];_0x200208++){_0x1befb6&&_0x3f30b3[_0x2a6a40('0x21ab')][_0x200208]['id']===_0x1befb6['id']&&(_0x3f30b3[_0x2a6a40('0x21ab')][_0x200208][_0x2a6a40('0xba')]=![],_0x554ceb[_0x2a6a40('0x206c')](_0x3f30b3[_0x2a6a40('0x21ab')][_0x200208]));}_0x3f30b3['mailAccounts']=_0x554ceb;}else{if(!_0x4dfd47[_0x2a6a40('0x80c')])return _0x80b70e['userProfileResource'][_0x2a6a40('0x595')]({'sectionId':_0x4dfd47['id']})[_0x2a6a40('0x1376')][_0x2a6a40('0x21ad')](function(_0x46a3be){var _0x2a91b6=_0x2a6a40,_0x3603ae=_0x86640f()[_0x2a91b6('0x26c3')](_0x46a3be[_0x2a91b6('0x1b33')],function(_0x4b705e){var _0x23f785=_0x2a91b6;return _0x86640f()[_0x23f785('0x1d2e')](_0x3f30b3[_0x23f785('0x21ab')],{'id':_0x4b705e[_0x23f785('0x675')]});}),_0xdb095e=null;_0x3f30b3['allCondition']&&(_0xdb095e=_0x86640f()[_0x2a91b6('0x1d2e')](_0x3f30b3[_0x2a91b6('0x21ab')],{'id':Number(_0x3f30b3['allCondition']['value'])}));if(_0xdb095e&&!_0x86640f()[_0x2a91b6('0x2664')](_0x3603ae,['id',_0xdb095e['id']])){var _0x25b1f3=_0x86640f()[_0x2a91b6('0x1d2e')](_0x3f30b3[_0x2a91b6('0x21ab')],{'id':_0xdb095e['id']});_0x25b1f3[_0x2a91b6('0xba')]=![],_0x3603ae['push'](_0x25b1f3);}_0x3f30b3['mailAccounts']=_0x3603ae;});}})[_0x4dde71('0x1c1d')](function(_0x3ddf8c){var _0x45eda8=_0x4dde71;_0x1ca56e[_0x45eda8('0x2092')]({'title':_0x3ddf8c[_0x45eda8('0x209')]?'API:'+_0x3ddf8c[_0x45eda8('0x209')]+'\x20-\x20'+_0x3ddf8c[_0x45eda8('0x1808')]:_0x45eda8('0x13d4'),'msg':_0x3ddf8c[_0x45eda8('0x11c2')]?JSON[_0x45eda8('0x25e')](_0x3ddf8c[_0x45eda8('0x11c2')]):_0x3ddf8c[_0x45eda8('0x174f')]()});}),_0x35645d['hasRole'](_0x4dde71('0x1bd8'))?_0x80b70e['smsAccount'][_0x4dde71('0x595')]({'fields':_0x4dde71('0x1aa8'),'sort':'id','nolimit':'true'})[_0x4dde71('0x1376')]['then'](function(_0x3c98e4){var _0x571f24=_0x4dde71;_0x3f30b3[_0x571f24('0x102b')]=_0x3c98e4['rows']||[];})[_0x4dde71('0x1c1d')](function(_0x19cbc4){var _0x2326f=_0x4dde71;_0x1ca56e[_0x2326f('0x2092')]({'title':_0x19cbc4['status']?_0x2326f('0x22d')+_0x19cbc4[_0x2326f('0x209')]+'\x20-\x20'+_0x19cbc4[_0x2326f('0x1808')]:_0x2326f('0x359'),'msg':_0x19cbc4[_0x2326f('0x11c2')]?JSON[_0x2326f('0x25e')](_0x19cbc4[_0x2326f('0x11c2')]):_0x19cbc4[_0x2326f('0x174f')]()});}):_0x80b70e[_0x4dde71('0xa10')][_0x4dde71('0x595')]({'fields':_0x4dde71('0x1aa8'),'sort':'id','nolimit':_0x4dde71('0x19bd')})['$promise'][_0x4dde71('0x21ad')](function(_0x54fad2){var _0x4bc40b=_0x4dde71;_0x3f30b3[_0x4bc40b('0x102b')]=_0x54fad2[_0x4bc40b('0x1b33')]||[];})[_0x4dde71('0x21ad')](function(){var _0x373094=_0x4dde71;return _0x80b70e[_0x373094('0xab4')][_0x373094('0x595')]({'userProfileId':_0x3f30b3['currentUser'][_0x373094('0x1618')],'sectionId':0x2be})[_0x373094('0x1376')];})[_0x4dde71('0x21ad')](function(_0x400e45){var _0x21e902=_0x4dde71,_0x3fa839=_0x400e45&&_0x400e45['rows']?_0x400e45[_0x21e902('0x1b33')][0x0]:null;if(!_0x3fa839){var _0x57da36=[],_0x1b94ee=null;_0x3f30b3[_0x21e902('0x1fb9')]&&(_0x1b94ee=_0x86640f()['find'](_0x3f30b3['smsAccounts'],{'id':Number(_0x3f30b3['allCondition'][_0x21e902('0x2228')])}));for(var _0x4e10cc=0x0;_0x4e10cc<_0x3f30b3[_0x21e902('0x102b')]['length'];_0x4e10cc++){_0x1b94ee&&_0x3f30b3[_0x21e902('0x102b')][_0x4e10cc]['id']===_0x1b94ee['id']&&(_0x3f30b3['smsAccounts'][_0x4e10cc][_0x21e902('0xba')]=![],_0x57da36[_0x21e902('0x206c')](_0x3f30b3[_0x21e902('0x102b')][_0x4e10cc]));}_0x3f30b3[_0x21e902('0x102b')]=_0x57da36;}else{if(!_0x3fa839[_0x21e902('0x80c')])return _0x80b70e[_0x21e902('0x185e')][_0x21e902('0x595')]({'sectionId':_0x3fa839['id']})[_0x21e902('0x1376')][_0x21e902('0x21ad')](function(_0x2c294d){var _0x17b193=_0x21e902,_0x3c963f=_0x86640f()['map'](_0x2c294d[_0x17b193('0x1b33')],function(_0x56f9f6){var _0x4b9759=_0x17b193;return _0x86640f()[_0x4b9759('0x1d2e')](_0x3f30b3[_0x4b9759('0x102b')],{'id':_0x56f9f6['resourceId']});}),_0xfc9c79=null;_0x3f30b3[_0x17b193('0x1fb9')]&&(_0xfc9c79=_0x86640f()[_0x17b193('0x1d2e')](_0x3f30b3['smsAccounts'],{'id':Number(_0x3f30b3[_0x17b193('0x1fb9')][_0x17b193('0x2228')])}));if(_0xfc9c79&&!_0x86640f()[_0x17b193('0x2664')](_0x3c963f,['id',_0xfc9c79['id']])){var _0x500298=_0x86640f()[_0x17b193('0x1d2e')](_0x3f30b3[_0x17b193('0x102b')],{'id':_0xfc9c79['id']});_0x500298[_0x17b193('0xba')]=![],_0x3c963f[_0x17b193('0x206c')](_0x500298);}_0x3f30b3[_0x17b193('0x102b')]=_0x3c963f;});}})[_0x4dde71('0x1c1d')](function(_0x5a214d){var _0x482520=_0x4dde71;_0x1ca56e[_0x482520('0x2092')]({'title':_0x5a214d['status']?'API:'+_0x5a214d[_0x482520('0x209')]+_0x482520('0xa99')+_0x5a214d[_0x482520('0x1808')]:_0x482520('0x73c'),'msg':_0x5a214d[_0x482520('0x11c2')]?JSON[_0x482520('0x25e')](_0x5a214d['data']):_0x5a214d[_0x482520('0x174f')]()});}),_0x35645d['hasRole'](_0x4dde71('0x1bd8'))?_0x80b70e['whatsappAccount'][_0x4dde71('0x595')]({'fields':_0x4dde71('0x1aa8'),'sort':'id','nolimit':_0x4dde71('0x19bd')})[_0x4dde71('0x1376')][_0x4dde71('0x21ad')](function(_0x3b6d96){var _0x48cb7f=_0x4dde71;_0x3f30b3[_0x48cb7f('0x46a')]=_0x3b6d96[_0x48cb7f('0x1b33')]||[];})[_0x4dde71('0x1c1d')](function(_0x91d260){var _0x5b29f7=_0x4dde71;_0x1ca56e[_0x5b29f7('0x2092')]({'title':_0x91d260[_0x5b29f7('0x209')]?'API:'+_0x91d260[_0x5b29f7('0x209')]+_0x5b29f7('0xa99')+_0x91d260[_0x5b29f7('0x1808')]:_0x5b29f7('0x1293'),'msg':_0x91d260[_0x5b29f7('0x11c2')]?JSON['stringify'](_0x91d260[_0x5b29f7('0x11c2')]):_0x91d260[_0x5b29f7('0x174f')]()});}):_0x80b70e[_0x4dde71('0x1b5d')][_0x4dde71('0x595')]({'fields':_0x4dde71('0x1aa8'),'sort':'id','nolimit':'true'})[_0x4dde71('0x1376')][_0x4dde71('0x21ad')](function(_0x72889e){var _0x234aa2=_0x4dde71;_0x3f30b3['whatsappAccounts']=_0x72889e[_0x234aa2('0x1b33')]||[];})['then'](function(){var _0x50aced=_0x4dde71;return _0x80b70e[_0x50aced('0xab4')][_0x50aced('0x595')]({'userProfileId':_0x3f30b3[_0x50aced('0x123f')][_0x50aced('0x1618')],'sectionId':0x836})[_0x50aced('0x1376')];})['then'](function(_0x457eca){var _0x2cb092=_0x4dde71,_0x391f36=_0x457eca&&_0x457eca[_0x2cb092('0x1b33')]?_0x457eca[_0x2cb092('0x1b33')][0x0]:null;if(!_0x391f36){var _0x34477a=[],_0x21e622=null;_0x3f30b3[_0x2cb092('0x1fb9')]&&(_0x21e622=_0x86640f()[_0x2cb092('0x1d2e')](_0x3f30b3[_0x2cb092('0x46a')],{'id':Number(_0x3f30b3['allCondition'][_0x2cb092('0x2228')])}));for(var _0x26fd6a=0x0;_0x26fd6a<_0x3f30b3[_0x2cb092('0x46a')][_0x2cb092('0x577')];_0x26fd6a++){_0x21e622&&_0x3f30b3[_0x2cb092('0x46a')][_0x26fd6a]['id']===_0x21e622['id']&&(_0x3f30b3[_0x2cb092('0x46a')][_0x26fd6a][_0x2cb092('0xba')]=![],_0x34477a['push'](_0x3f30b3[_0x2cb092('0x46a')][_0x26fd6a]));}_0x3f30b3['whatsappAccounts']=_0x34477a;}else{if(!_0x391f36['autoAssociation'])return _0x80b70e[_0x2cb092('0x185e')][_0x2cb092('0x595')]({'sectionId':_0x391f36['id']})[_0x2cb092('0x1376')]['then'](function(_0x9ea0a6){var _0x280e37=_0x2cb092,_0x4f37ec=_0x86640f()[_0x280e37('0x26c3')](_0x9ea0a6[_0x280e37('0x1b33')],function(_0x950b8b){var _0x40dba6=_0x280e37;return _0x86640f()[_0x40dba6('0x1d2e')](_0x3f30b3[_0x40dba6('0x46a')],{'id':_0x950b8b[_0x40dba6('0x675')]});}),_0x194436=null;_0x3f30b3['allCondition']&&(_0x194436=_0x86640f()[_0x280e37('0x1d2e')](_0x3f30b3['whatsappAccounts'],{'id':Number(_0x3f30b3[_0x280e37('0x1fb9')]['value'])}));if(_0x194436&&!_0x86640f()[_0x280e37('0x2664')](_0x4f37ec,['id',_0x194436['id']])){var _0x455498=_0x86640f()['find'](_0x3f30b3[_0x280e37('0x46a')],{'id':_0x194436['id']});_0x455498['canSelect']=![],_0x4f37ec['push'](_0x455498);}_0x3f30b3[_0x280e37('0x46a')]=_0x4f37ec;});}})[_0x4dde71('0x1c1d')](function(_0x559739){var _0xc9ae38=_0x4dde71;_0x1ca56e[_0xc9ae38('0x2092')]({'title':_0x559739[_0xc9ae38('0x209')]?'API:'+_0x559739[_0xc9ae38('0x209')]+_0xc9ae38('0xa99')+_0x559739[_0xc9ae38('0x1808')]:'SYSTEM:GETwhatsappAccounts','msg':_0x559739[_0xc9ae38('0x11c2')]?JSON[_0xc9ae38('0x25e')](_0x559739['data']):_0x559739[_0xc9ae38('0x174f')]()});}),_0x35645d[_0x4dde71('0x21de')](_0x4dde71('0x1bd8'))?_0x80b70e[_0x4dde71('0xeb2')]['get']({'fields':_0x4dde71('0x1aa8'),'sort':'id','nolimit':'true'})[_0x4dde71('0x1376')][_0x4dde71('0x21ad')](function(_0x5ee4cc){var _0x46f65b=_0x4dde71;_0x3f30b3[_0x46f65b('0x1695')]=_0x5ee4cc[_0x46f65b('0x1b33')]||[];})[_0x4dde71('0x1c1d')](function(_0x372255){var _0x225728=_0x4dde71;_0x1ca56e[_0x225728('0x2092')]({'title':_0x372255[_0x225728('0x209')]?_0x225728('0x22d')+_0x372255[_0x225728('0x209')]+_0x225728('0xa99')+_0x372255['statusText']:_0x225728('0x25d7'),'msg':_0x372255[_0x225728('0x11c2')]?JSON[_0x225728('0x25e')](_0x372255['data']):_0x372255[_0x225728('0x174f')]()});}):_0x80b70e[_0x4dde71('0xeb2')][_0x4dde71('0x595')]({'fields':_0x4dde71('0x1aa8'),'sort':'id','nolimit':_0x4dde71('0x19bd')})[_0x4dde71('0x1376')][_0x4dde71('0x21ad')](function(_0x553f56){var _0x1f14b3=_0x4dde71;_0x3f30b3[_0x1f14b3('0x1695')]=_0x553f56['rows']||[];})[_0x4dde71('0x21ad')](function(){var _0x2b6e8e=_0x4dde71;return _0x80b70e['userProfileSection'][_0x2b6e8e('0x595')]({'userProfileId':_0x3f30b3[_0x2b6e8e('0x123f')]['userProfileId'],'sectionId':0x386})[_0x2b6e8e('0x1376')];})[_0x4dde71('0x21ad')](function(_0xdc93f){var _0x54b51a=_0x4dde71,_0x38ebb4=_0xdc93f&&_0xdc93f[_0x54b51a('0x1b33')]?_0xdc93f[_0x54b51a('0x1b33')][0x0]:null;if(!_0x38ebb4){var _0x59b22e=[],_0xedcdba=null;_0x3f30b3[_0x54b51a('0x1fb9')]&&(_0xedcdba=_0x86640f()['find'](_0x3f30b3['faxAccounts'],{'id':Number(_0x3f30b3[_0x54b51a('0x1fb9')][_0x54b51a('0x2228')])}));for(var _0x2a9e3b=0x0;_0x2a9e3b<_0x3f30b3[_0x54b51a('0x1695')]['length'];_0x2a9e3b++){_0xedcdba&&_0x3f30b3[_0x54b51a('0x1695')][_0x2a9e3b]['id']===_0xedcdba['id']&&(_0x3f30b3[_0x54b51a('0x1695')][_0x2a9e3b]['canSelect']=![],_0x59b22e[_0x54b51a('0x206c')](_0x3f30b3['faxAccounts'][_0x2a9e3b]));}_0x3f30b3[_0x54b51a('0x1695')]=_0x59b22e;}else{if(!_0x38ebb4[_0x54b51a('0x80c')])return _0x80b70e[_0x54b51a('0x185e')][_0x54b51a('0x595')]({'sectionId':_0x38ebb4['id']})['$promise'][_0x54b51a('0x21ad')](function(_0x51121b){var _0x2ef02c=_0x54b51a,_0x270742=_0x86640f()[_0x2ef02c('0x26c3')](_0x51121b[_0x2ef02c('0x1b33')],function(_0x21c6f1){var _0x25bc13=_0x2ef02c;return _0x86640f()['find'](_0x3f30b3[_0x25bc13('0x1695')],{'id':_0x21c6f1['resourceId']});}),_0xa1d80c=null;_0x3f30b3['allCondition']&&(_0xa1d80c=_0x86640f()[_0x2ef02c('0x1d2e')](_0x3f30b3[_0x2ef02c('0x1695')],{'id':Number(_0x3f30b3[_0x2ef02c('0x1fb9')]['value'])}));if(_0xa1d80c&&!_0x86640f()[_0x2ef02c('0x2664')](_0x270742,['id',_0xa1d80c['id']])){var _0x4579d8=_0x86640f()[_0x2ef02c('0x1d2e')](_0x3f30b3['faxAccounts'],{'id':_0xa1d80c['id']});_0x4579d8[_0x2ef02c('0xba')]=![],_0x270742['push'](_0x4579d8);}_0x3f30b3[_0x2ef02c('0x1695')]=_0x270742;});}})['catch'](function(_0x41bdd9){var _0x37d9f8=_0x4dde71;_0x1ca56e[_0x37d9f8('0x2092')]({'title':_0x41bdd9[_0x37d9f8('0x209')]?'API:'+_0x41bdd9[_0x37d9f8('0x209')]+_0x37d9f8('0xa99')+_0x41bdd9['statusText']:'SYSTEM:GETfaxAccounts','msg':_0x41bdd9[_0x37d9f8('0x11c2')]?JSON[_0x37d9f8('0x25e')](_0x41bdd9[_0x37d9f8('0x11c2')]):_0x41bdd9[_0x37d9f8('0x174f')]()});}),_0x35645d[_0x4dde71('0x21de')]('admin')?_0x80b70e['openchannelAccount']['get']({'fields':'id,name','sort':'id','nolimit':_0x4dde71('0x19bd')})[_0x4dde71('0x1376')][_0x4dde71('0x21ad')](function(_0x4833ca){var _0x3b5dc3=_0x4dde71;_0x3f30b3[_0x3b5dc3('0x226c')]=_0x4833ca[_0x3b5dc3('0x1b33')]||[];})[_0x4dde71('0x1c1d')](function(_0x5cbc31){var _0x2d42ad=_0x4dde71;_0x1ca56e['error']({'title':_0x5cbc31[_0x2d42ad('0x209')]?_0x2d42ad('0x22d')+_0x5cbc31['status']+_0x2d42ad('0xa99')+_0x5cbc31[_0x2d42ad('0x1808')]:'SYSTEM:GET_OPENCHANNELACCOUNTS','msg':_0x5cbc31['data']?JSON['stringify'](_0x5cbc31['data']):_0x5cbc31[_0x2d42ad('0x174f')]()});}):_0x80b70e[_0x4dde71('0x151f')][_0x4dde71('0x595')]({'fields':'id,name','sort':'id','nolimit':_0x4dde71('0x19bd')})[_0x4dde71('0x1376')][_0x4dde71('0x21ad')](function(_0x14623a){var _0xdf5a4e=_0x4dde71;_0x3f30b3[_0xdf5a4e('0x226c')]=_0x14623a[_0xdf5a4e('0x1b33')]||[];})['then'](function(){var _0x2badea=_0x4dde71;return _0x80b70e[_0x2badea('0xab4')][_0x2badea('0x595')]({'userProfileId':_0x3f30b3['currentUser'][_0x2badea('0x1618')],'sectionId':0x322})[_0x2badea('0x1376')];})['then'](function(_0x4f09d4){var _0x59200a=_0x4dde71,_0x425b11=_0x4f09d4&&_0x4f09d4[_0x59200a('0x1b33')]?_0x4f09d4[_0x59200a('0x1b33')][0x0]:null;if(!_0x425b11){var _0x562413=[],_0x49e701=null;_0x3f30b3[_0x59200a('0x1fb9')]&&(_0x49e701=_0x86640f()[_0x59200a('0x1d2e')](_0x3f30b3[_0x59200a('0x226c')],{'id':Number(_0x3f30b3[_0x59200a('0x1fb9')][_0x59200a('0x2228')])}));for(var _0x176f95=0x0;_0x176f95<_0x3f30b3[_0x59200a('0x226c')][_0x59200a('0x577')];_0x176f95++){_0x49e701&&_0x3f30b3[_0x59200a('0x226c')][_0x176f95]['id']===_0x49e701['id']&&(_0x3f30b3[_0x59200a('0x226c')][_0x176f95][_0x59200a('0xba')]=![],_0x562413[_0x59200a('0x206c')](_0x3f30b3[_0x59200a('0x226c')][_0x176f95]));}_0x3f30b3[_0x59200a('0x226c')]=_0x562413;}else{if(!_0x425b11[_0x59200a('0x80c')])return _0x80b70e['userProfileResource'][_0x59200a('0x595')]({'sectionId':_0x425b11['id']})['$promise'][_0x59200a('0x21ad')](function(_0x4ca516){var _0x12e2ed=_0x59200a,_0x517555=_0x86640f()[_0x12e2ed('0x26c3')](_0x4ca516[_0x12e2ed('0x1b33')],function(_0x2c4a6b){var _0x3b9386=_0x12e2ed;return _0x86640f()['find'](_0x3f30b3[_0x3b9386('0x226c')],{'id':_0x2c4a6b[_0x3b9386('0x675')]});}),_0x153a17=null;_0x3f30b3[_0x12e2ed('0x1fb9')]&&(_0x153a17=_0x86640f()['find'](_0x3f30b3['openchannelAccounts'],{'id':Number(_0x3f30b3['allCondition'][_0x12e2ed('0x2228')])}));if(_0x153a17&&!_0x86640f()[_0x12e2ed('0x2664')](_0x517555,['id',_0x153a17['id']])){var _0x1a8a2a=_0x86640f()[_0x12e2ed('0x1d2e')](_0x3f30b3[_0x12e2ed('0x226c')],{'id':_0x153a17['id']});_0x1a8a2a[_0x12e2ed('0xba')]=![],_0x517555[_0x12e2ed('0x206c')](_0x1a8a2a);}_0x3f30b3[_0x12e2ed('0x226c')]=_0x517555;});}})[_0x4dde71('0x1c1d')](function(_0x5ac155){var _0x1d6906=_0x4dde71;_0x1ca56e[_0x1d6906('0x2092')]({'title':_0x5ac155[_0x1d6906('0x209')]?'API:'+_0x5ac155[_0x1d6906('0x209')]+_0x1d6906('0xa99')+_0x5ac155[_0x1d6906('0x1808')]:'SYSTEM:GETopenchannelAccounts','msg':_0x5ac155[_0x1d6906('0x11c2')]?JSON['stringify'](_0x5ac155['data']):_0x5ac155[_0x1d6906('0x174f')]()});});var _0x2822c2=[{'id':0x191,'type':_0x4dde71('0x923')},{'id':0x5dd,'type':_0x4dde71('0x2300')}],_0x4011cc=null;_0x35645d[_0x4dde71('0x21de')](_0x4dde71('0x1bd8'))?_0x80b70e[_0x4dde71('0xb97')][_0x4dde71('0x595')]({'fields':'id,name,type','sort':_0x4dde71('0x19fe'),'nolimit':_0x4dde71('0x19bd')})[_0x4dde71('0x1376')][_0x4dde71('0x21ad')](function(_0x3ac441){var _0x330c76=_0x4dde71;_0x3f30b3[_0x330c76('0xb7a')]=_0x3ac441[_0x330c76('0x1b33')]||[];})['catch'](function(_0x478e7f){var _0x2cb422=_0x4dde71;_0x1ca56e[_0x2cb422('0x2092')]({'title':_0x478e7f[_0x2cb422('0x209')]?_0x2cb422('0x22d')+_0x478e7f[_0x2cb422('0x209')]+_0x2cb422('0xa99')+_0x478e7f['statusText']:_0x2cb422('0x1612'),'msg':_0x478e7f[_0x2cb422('0x11c2')]?JSON[_0x2cb422('0x25e')](_0x478e7f[_0x2cb422('0x11c2')]):_0x478e7f['toString']()});}):_0x80b70e[_0x4dde71('0xb97')][_0x4dde71('0x595')]({'fields':_0x4dde71('0xfa'),'sort':_0x4dde71('0x19fe'),'nolimit':_0x4dde71('0x19bd')})['$promise'][_0x4dde71('0x21ad')](function(_0x5013a2){var _0x5c817e=_0x4dde71;_0x4011cc=_0x5013a2[_0x5c817e('0x1b33')]||[];})[_0x4dde71('0x21ad')](function(){var _0x5b4b5b=_0x4dde71,_0x397f91=[];for(var _0x3318d1=0x0;_0x3318d1<_0x2822c2['length'];_0x3318d1++){_0x397f91['push'](_0x80b70e[_0x5b4b5b('0xab4')]['get']({'userProfileId':_0x3f30b3[_0x5b4b5b('0x123f')]['userProfileId'],'sectionId':_0x2822c2[_0x3318d1]['id']})[_0x5b4b5b('0x1376')]);}return _0x5d8139[_0x5b4b5b('0x1ba7')](_0x397f91);})[_0x4dde71('0x21ad')](function(_0x53137d){var _0x765843=_0x4dde71,_0x5e4bc8=_0x86640f()[_0x765843('0x26c3')](_0x53137d,function(_0x3f4f71){var _0x307038=_0x765843;return _0x3f4f71&&_0x3f4f71[_0x307038('0x1b33')]?_0x3f4f71[_0x307038('0x1b33')][0x0]:null;}),_0xd02d3a=[],_0x2b789d=function _0x52300d(_0x3ffb15){var _0x5d3b9=_0x765843,_0x3c01ca=_0x86640f()['find'](_0x5e4bc8,[_0x5d3b9('0x1cd2'),_0x2822c2[_0x3ffb15]['id']]);if(_0x3c01ca){if(!_0x3c01ca[_0x5d3b9('0x80c')])_0xd02d3a[_0x5d3b9('0x206c')](_0x80b70e[_0x5d3b9('0x185e')][_0x5d3b9('0x595')]({'sectionId':_0x3c01ca['id']})[_0x5d3b9('0x1376')]);else{var _0x1c3287=[];_0x4011cc[_0x5d3b9('0x1a52')](function(_0x599f91){var _0x1f4a85=_0x5d3b9;_0x599f91[_0x1f4a85('0x7fa')]===_0x2822c2[_0x3ffb15]['type']&&_0x1c3287[_0x1f4a85('0x206c')](_0x599f91);}),_0xd02d3a[_0x5d3b9('0x206c')]({'rows':_0x1c3287,'count':_0x1c3287[_0x5d3b9('0x577')]});}}};for(var _0x4ece1d=0x0;_0x4ece1d<_0x2822c2[_0x765843('0x577')];_0x4ece1d++){_0x2b789d(_0x4ece1d);}return _0x5d8139[_0x765843('0x1ba7')](_0xd02d3a);})[_0x4dde71('0x21ad')](function(_0x4b2809){var _0x226273=_0x4dde71,_0xe98dc0=[],_0x555ea2=null;_0x3f30b3['allCondition']&&(_0x555ea2=_0x86640f()[_0x226273('0x1d2e')](_0x4011cc,{'name':_0x3f30b3[_0x226273('0x1fb9')][_0x226273('0x2228')]}));for(var _0x184fb7=0x0;_0x184fb7<_0x4b2809[_0x226273('0x577')];_0x184fb7++){var _0x5cbb3b=_0x4b2809[_0x184fb7][_0x226273('0x1b33')]||[];_0x5cbb3b[_0x226273('0x1a52')](function(_0x23c5b3){var _0x50b9b7=_0x226273;_0xe98dc0[_0x50b9b7('0x206c')](_0x23c5b3);});}_0x555ea2&&!_0x86640f()[_0x226273('0x2664')](_0xe98dc0,[_0x226273('0x675'),_0x555ea2['id']])&&_0x4011cc[_0x226273('0x1a52')](function(_0x375695){var _0x16192b=_0x226273;_0x375695['id']===_0x555ea2['id']&&(_0x375695[_0x16192b('0xba')]=![],_0xe98dc0[_0x16192b('0x206c')](_0x375695));}),_0x3f30b3[_0x226273('0xb7a')]=_0xe98dc0;})[_0x4dde71('0x1c1d')](function(_0x5e3887){var _0x480a5e=_0x4dde71;_0x1ca56e['error']({'title':_0x5e3887[_0x480a5e('0x209')]?_0x480a5e('0x22d')+_0x5e3887[_0x480a5e('0x209')]+_0x480a5e('0xa99')+_0x5e3887[_0x480a5e('0x1808')]:_0x480a5e('0x1b46'),'msg':_0x5e3887[_0x480a5e('0x11c2')]?JSON[_0x480a5e('0x25e')](_0x5e3887[_0x480a5e('0x11c2')]):_0x5e3887[_0x480a5e('0x174f')]()});}),_0x35645d[_0x4dde71('0x21de')]('admin')?_0x80b70e[_0x4dde71('0x1b0c')][_0x4dde71('0x595')]({'fields':_0x4dde71('0x539'),'type':_0x4dde71('0x2300'),'VoiceExtensionId':'null','nolimit':_0x4dde71('0x19bd')})[_0x4dde71('0x1376')][_0x4dde71('0x21ad')](function(_0x1a9c5c){var _0x4acb40=_0x4dde71;_0x3f30b3['outboundRoutes']=_0x1a9c5c[_0x4acb40('0x1b33')]||[];})[_0x4dde71('0x1c1d')](function(_0x2fac3e){var _0x222c29=_0x4dde71;_0x1ca56e[_0x222c29('0x2092')]({'title':_0x2fac3e['status']?_0x222c29('0x22d')+_0x2fac3e[_0x222c29('0x209')]+_0x222c29('0xa99')+_0x2fac3e[_0x222c29('0x1808')]:_0x222c29('0x2486'),'msg':_0x2fac3e[_0x222c29('0x11c2')]?JSON[_0x222c29('0x25e')](_0x2fac3e[_0x222c29('0x11c2')]):_0x2fac3e[_0x222c29('0x174f')]()});}):_0x80b70e['voiceExtension'][_0x4dde71('0x595')]({'fields':'id,exten','type':'outbound','VoiceExtensionId':_0x4dde71('0x27a'),'nolimit':_0x4dde71('0x19bd')})['$promise'][_0x4dde71('0x21ad')](function(_0x2dd253){var _0x36bf4d=_0x4dde71;_0x3f30b3[_0x36bf4d('0x31')]=_0x2dd253[_0x36bf4d('0x1b33')]||[];})[_0x4dde71('0x21ad')](function(){var _0x3985b5=_0x4dde71;return _0x80b70e['userProfileSection'][_0x3985b5('0x595')]({'userProfileId':_0x3f30b3[_0x3985b5('0x123f')][_0x3985b5('0x1618')],'sectionId':0x193})[_0x3985b5('0x1376')];})['then'](function(_0x99c7b9){var _0x7589f=_0x4dde71,_0x51737f=_0x99c7b9&&_0x99c7b9['rows']?_0x99c7b9[_0x7589f('0x1b33')][0x0]:null;if(!_0x51737f){var _0x422070=[],_0x212789=null;_0x3f30b3['allCondition']&&(_0x212789=_0x86640f()[_0x7589f('0x1d2e')](_0x3f30b3[_0x7589f('0x31')],{'id':Number(_0x3f30b3['allCondition']['value'])}));for(var _0x1a4e6c=0x0;_0x1a4e6c<_0x3f30b3['outboundRoutes'][_0x7589f('0x577')];_0x1a4e6c++){_0x212789&&_0x3f30b3['outboundRoutes'][_0x1a4e6c]['id']===_0x212789['id']&&(_0x3f30b3[_0x7589f('0x31')][_0x1a4e6c][_0x7589f('0xba')]=![],_0x422070[_0x7589f('0x206c')](_0x3f30b3[_0x7589f('0x31')][_0x1a4e6c]));}_0x3f30b3[_0x7589f('0x31')]=_0x422070;}else{if(!_0x51737f['autoAssociation'])return _0x80b70e['userProfileResource']['get']({'sectionId':_0x51737f['id']})[_0x7589f('0x1376')][_0x7589f('0x21ad')](function(_0x182fc1){var _0x4db303=_0x7589f,_0x26f74e=_0x86640f()[_0x4db303('0x26c3')](_0x182fc1[_0x4db303('0x1b33')],function(_0x3c1755){var _0x407246=_0x4db303;return _0x86640f()[_0x407246('0x1d2e')](_0x3f30b3[_0x407246('0x31')],{'id':_0x3c1755[_0x407246('0x675')]});}),_0x138594=null;_0x3f30b3[_0x4db303('0x1fb9')]&&(_0x138594=_0x86640f()[_0x4db303('0x1d2e')](_0x3f30b3[_0x4db303('0x31')],{'id':Number(_0x3f30b3[_0x4db303('0x1fb9')][_0x4db303('0x2228')])}));if(_0x138594&&!_0x86640f()[_0x4db303('0x2664')](_0x26f74e,['id',_0x138594['id']])){var _0x13bec=_0x86640f()[_0x4db303('0x1d2e')](_0x3f30b3[_0x4db303('0x31')],{'id':_0x138594['id']});_0x13bec[_0x4db303('0xba')]=![],_0x26f74e[_0x4db303('0x206c')](_0x13bec);}_0x3f30b3[_0x4db303('0x31')]=_0x26f74e;});}})[_0x4dde71('0x1c1d')](function(_0x426a5e){var _0x412f36=_0x4dde71;_0x1ca56e[_0x412f36('0x2092')]({'title':_0x426a5e[_0x412f36('0x209')]?_0x412f36('0x22d')+_0x426a5e[_0x412f36('0x209')]+_0x412f36('0xa99')+_0x426a5e[_0x412f36('0x1808')]:_0x412f36('0x1f2a'),'msg':_0x426a5e[_0x412f36('0x11c2')]?JSON[_0x412f36('0x25e')](_0x426a5e[_0x412f36('0x11c2')]):_0x426a5e[_0x412f36('0x174f')]()});}),_0x35645d[_0x4dde71('0x21de')](_0x4dde71('0x1bd8'))?_0x80b70e['user'][_0x4dde71('0x595')]({'fields':_0x4dde71('0x2326'),'sort':_0x4dde71('0x19fe'),'role':_0x4dde71('0x2402'),'nolimit':_0x4dde71('0x19bd')})[_0x4dde71('0x1376')][_0x4dde71('0x21ad')](function(_0xbd6031){var _0x47419b=_0x4dde71;_0x3f30b3[_0x47419b('0xcb5')]=_0xbd6031[_0x47419b('0x1b33')]||[];})['catch'](function(_0xdfda69){var _0x34fa07=_0x4dde71;_0x1ca56e[_0x34fa07('0x2092')]({'title':_0xdfda69[_0x34fa07('0x209')]?'API:'+_0xdfda69[_0x34fa07('0x209')]+_0x34fa07('0xa99')+_0xdfda69['statusText']:_0x34fa07('0x1381'),'msg':_0xdfda69[_0x34fa07('0x11c2')]?JSON[_0x34fa07('0x25e')](_0xdfda69['data']):_0xdfda69[_0x34fa07('0x174f')]()});}):_0x80b70e[_0x4dde71('0x1775')][_0x4dde71('0x595')]({'fields':_0x4dde71('0x2326'),'sort':_0x4dde71('0x19fe'),'role':'agent','nolimit':'true'})['$promise'][_0x4dde71('0x21ad')](function(_0x687b30){var _0x4f8b28=_0x4dde71;_0x3f30b3[_0x4f8b28('0xcb5')]=_0x687b30['rows']||[];})[_0x4dde71('0x21ad')](function(){var _0x37abf2=_0x4dde71;return _0x80b70e[_0x37abf2('0xab4')]['get']({'userProfileId':_0x3f30b3[_0x37abf2('0x123f')][_0x37abf2('0x1618')],'sectionId':0xca})[_0x37abf2('0x1376')];})['then'](function(_0x92015f){var _0x1df8b5=_0x4dde71,_0x4daee1=_0x92015f&&_0x92015f[_0x1df8b5('0x1b33')]?_0x92015f[_0x1df8b5('0x1b33')][0x0]:null;if(!_0x4daee1){var _0x5168bf=[],_0x41a2c6=null;_0x3f30b3[_0x1df8b5('0x1fb9')]&&(_0x41a2c6=_0x86640f()[_0x1df8b5('0x1d2e')](_0x3f30b3[_0x1df8b5('0xcb5')],{'name':_0x3f30b3[_0x1df8b5('0x1fb9')][_0x1df8b5('0x2228')]}));for(var _0x2ad5fa=0x0;_0x2ad5fa<_0x3f30b3['agents']['length'];_0x2ad5fa++){_0x41a2c6&&_0x3f30b3[_0x1df8b5('0xcb5')][_0x2ad5fa]['id']===_0x41a2c6['id']&&(_0x3f30b3['agents'][_0x2ad5fa][_0x1df8b5('0xba')]=![],_0x5168bf['push'](_0x3f30b3[_0x1df8b5('0xcb5')][_0x2ad5fa]));}_0x3f30b3[_0x1df8b5('0xcb5')]=_0x5168bf;}else{if(!_0x4daee1[_0x1df8b5('0x80c')])return _0x80b70e['userProfileResource']['get']({'sectionId':_0x4daee1['id']})['$promise'][_0x1df8b5('0x21ad')](function(_0x1b12ce){var _0x57c87e=_0x1df8b5,_0x17a537=_0x86640f()['map'](_0x1b12ce['rows'],function(_0x41eace){return _0x86640f()['find'](_0x3f30b3['agents'],{'id':_0x41eace['resourceId']});}),_0xc07458=null;_0x3f30b3[_0x57c87e('0x1fb9')]&&(_0xc07458=_0x86640f()[_0x57c87e('0x1d2e')](_0x3f30b3['agents'],{'name':_0x3f30b3['allCondition'][_0x57c87e('0x2228')]}));if(_0xc07458&&!_0x86640f()['some'](_0x17a537,['id',_0xc07458['id']])){var _0x1b157a=_0x86640f()[_0x57c87e('0x1d2e')](_0x3f30b3[_0x57c87e('0xcb5')],{'id':_0xc07458['id']});_0x1b157a['canSelect']=![],_0x17a537[_0x57c87e('0x206c')](_0x1b157a);}_0x3f30b3['agents']=_0x17a537;});}})[_0x4dde71('0x1c1d')](function(_0x1e76c9){var _0x34ca61=_0x4dde71;_0x1ca56e['error']({'title':_0x1e76c9['status']?_0x34ca61('0x22d')+_0x1e76c9[_0x34ca61('0x209')]+_0x34ca61('0xa99')+_0x1e76c9[_0x34ca61('0x1808')]:_0x34ca61('0x2f9'),'msg':_0x1e76c9[_0x34ca61('0x11c2')]?JSON['stringify'](_0x1e76c9[_0x34ca61('0x11c2')]):_0x1e76c9[_0x34ca61('0x174f')]()});});function _0x509e5d(){var _0x57db85=_0x4dde71;_0x3f30b3[_0x57db85('0x1a69')]=[],_0x80b70e[_0x57db85('0x23b9')][_0x57db85('0xea7')]({'id':_0x16ad75[_0x57db85('0x171b')]['id']},_0x3f30b3[_0x57db85('0x1fb9')])['$promise'][_0x57db85('0x21ad')](function(_0x3d67a5){var _0x388e48=_0x57db85;_0x3f30b3[_0x388e48('0xeaf')][_0x388e48('0xd0c')](_0x3d67a5[_0x388e48('0x3bc')]()),_0x1ca56e[_0x388e48('0xdb1')]({'title':'AllCondition\x20properly\x20created','msg':_0x3f30b3[_0x388e48('0x1fb9')][_0x388e48('0x19fe')]?_0x3f30b3['allCondition'][_0x388e48('0x19fe')]+_0x388e48('0x1694'):''}),_0x22ab1f(_0x3d67a5);})[_0x57db85('0x1c1d')](function(_0x515d94){var _0x28afb3=_0x57db85;if(_0x515d94[_0x28afb3('0x11c2')]&&_0x515d94['data'][_0x28afb3('0x1a69')]&&_0x515d94[_0x28afb3('0x11c2')][_0x28afb3('0x1a69')]['length']){_0x3f30b3[_0x28afb3('0x1a69')]=_0x515d94[_0x28afb3('0x11c2')]['errors']||[{'message':_0x515d94[_0x28afb3('0x174f')](),'type':_0x28afb3('0x2798')}];for(var _0xf511ea=0x0;_0xf511ea<_0x515d94[_0x28afb3('0x11c2')][_0x28afb3('0x1a69')][_0x28afb3('0x577')];_0xf511ea+=0x1){_0x1ca56e[_0x28afb3('0x2092')]({'title':_0x515d94[_0x28afb3('0x11c2')]['errors'][_0xf511ea]['type'],'msg':_0x515d94[_0x28afb3('0x11c2')][_0x28afb3('0x1a69')][_0xf511ea][_0x28afb3('0x1224')]});}}else _0x1ca56e[_0x28afb3('0x2092')]({'title':_0x515d94['status']?_0x28afb3('0x22d')+_0x515d94[_0x28afb3('0x209')]+'\x20-\x20'+_0x515d94[_0x28afb3('0x1808')]:'api.condition.save','msg':_0x515d94[_0x28afb3('0x11c2')]?JSON[_0x28afb3('0x25e')](_0x515d94[_0x28afb3('0x11c2')][_0x28afb3('0x1224')]):_0x515d94[_0x28afb3('0x174f')]()});});}function _0x120ca6(){var _0xe409f=_0x4dde71;_0x3f30b3[_0xe409f('0x1a69')]=[],_0x80b70e[_0xe409f('0x271c')]['update']({'id':_0x3f30b3['allCondition']['id']},_0x3f30b3['allCondition'])['$promise'][_0xe409f('0x21ad')](function(_0x59040a){var _0x27a8cd=_0xe409f,_0x4bc6c7=_0x86640f()[_0x27a8cd('0x1d2e')](_0x3f30b3[_0x27a8cd('0xeaf')],{'id':_0x59040a['id']});_0x4bc6c7&&_0x86640f()[_0x27a8cd('0xd0e')](_0x4bc6c7,_0x86640f()[_0x27a8cd('0xc50')](_0x59040a[_0x27a8cd('0x3bc')](),_0x86640f()[_0x27a8cd('0x223b')](_0x4bc6c7))),_0x1ca56e[_0x27a8cd('0xdb1')]({'title':_0x27a8cd('0x26c6'),'msg':_0x3f30b3['allCondition'][_0x27a8cd('0x19fe')]?_0x3f30b3[_0x27a8cd('0x1fb9')][_0x27a8cd('0x19fe')]+'\x20has\x20been\x20saved!':''}),_0x22ab1f(_0x59040a);})[_0xe409f('0x1c1d')](function(_0x5ba2fc){var _0x45ca23=_0xe409f;if(_0x5ba2fc[_0x45ca23('0x11c2')]&&_0x5ba2fc[_0x45ca23('0x11c2')][_0x45ca23('0x1a69')]&&_0x5ba2fc[_0x45ca23('0x11c2')][_0x45ca23('0x1a69')][_0x45ca23('0x577')]){_0x3f30b3[_0x45ca23('0x1a69')]=_0x5ba2fc[_0x45ca23('0x11c2')]['errors']||[{'message':_0x5ba2fc['toString'](),'type':_0x45ca23('0x2774')}];for(var _0x13c28e=0x0;_0x13c28e<_0x5ba2fc[_0x45ca23('0x11c2')][_0x45ca23('0x1a69')][_0x45ca23('0x577')];_0x13c28e++){_0x1ca56e[_0x45ca23('0x2092')]({'title':_0x5ba2fc['data'][_0x45ca23('0x1a69')][_0x13c28e][_0x45ca23('0x7fa')],'msg':_0x5ba2fc[_0x45ca23('0x11c2')]['errors'][_0x13c28e][_0x45ca23('0x1224')]});}}else _0x1ca56e[_0x45ca23('0x2092')]({'title':_0x5ba2fc[_0x45ca23('0x209')]?_0x45ca23('0x22d')+_0x5ba2fc[_0x45ca23('0x209')]+_0x45ca23('0xa99')+_0x5ba2fc[_0x45ca23('0x1808')]:_0x45ca23('0x2774'),'msg':_0x5ba2fc[_0x45ca23('0x11c2')]?JSON[_0x45ca23('0x25e')](_0x5ba2fc[_0x45ca23('0x11c2')]['message']):_0x5ba2fc[_0x45ca23('0x174f')]()});});}function _0x4d455b(_0x16f89d){var _0x5e522f=_0x4dde71;_0x3f30b3[_0x5e522f('0x1a69')]=[];var _0xc0c07f=_0x19676c[_0x5e522f('0xa33')]()[_0x5e522f('0x4b4')](_0x5e522f('0x196b'))[_0x5e522f('0x13fb')]('The\x20allCondition\x20will\x20be\x20deleted.')[_0x5e522f('0x7a7')](_0x5e522f('0x1d13'))['ok'](_0x5e522f('0xbfd'))['cancel'](_0x5e522f('0x1f40'))[_0x5e522f('0x1e6d')](_0x16f89d);_0x19676c[_0x5e522f('0x853')](_0xc0c07f)[_0x5e522f('0x21ad')](function(){var _0x3eab6f=_0x5e522f;_0x80b70e[_0x3eab6f('0x271c')][_0x3eab6f('0x1164')]({'id':_0x3f30b3[_0x3eab6f('0x1fb9')]['id']})[_0x3eab6f('0x1376')][_0x3eab6f('0x21ad')](function(){var _0x506121=_0x3eab6f;_0x86640f()[_0x506121('0x16a2')](_0x3f30b3['allconditions'],{'id':_0x3f30b3['allCondition']['id']}),_0x1ca56e[_0x506121('0xdb1')]({'title':_0x506121('0xe27'),'msg':(_0x3f30b3[_0x506121('0x1fb9')][_0x506121('0x19fe')]||_0x506121('0x1fb9'))+_0x506121('0xb4a')}),_0x22ab1f(_0x3f30b3[_0x506121('0x1fb9')]);})[_0x3eab6f('0x1c1d')](function(_0x34e202){var _0x2c580a=_0x3eab6f;if(_0x34e202[_0x2c580a('0x11c2')]&&_0x34e202[_0x2c580a('0x11c2')]['errors']&&_0x34e202['data'][_0x2c580a('0x1a69')]['length']){_0x3f30b3[_0x2c580a('0x1a69')]=_0x34e202[_0x2c580a('0x11c2')][_0x2c580a('0x1a69')]||[{'message':_0x34e202['toString'](),'type':'api.condition.delete'}];for(var _0x5d46c9=0x0;_0x5d46c9<_0x34e202[_0x2c580a('0x11c2')][_0x2c580a('0x1a69')][_0x2c580a('0x577')];_0x5d46c9++){_0x1ca56e['error']({'title':_0x34e202[_0x2c580a('0x11c2')][_0x2c580a('0x1a69')][_0x5d46c9][_0x2c580a('0x7fa')],'msg':_0x34e202[_0x2c580a('0x11c2')]['errors'][_0x5d46c9][_0x2c580a('0x1224')]});}}else _0x1ca56e[_0x2c580a('0x2092')]({'title':_0x34e202[_0x2c580a('0x209')]?_0x2c580a('0x22d')+_0x34e202['status']+_0x2c580a('0xa99')+_0x34e202[_0x2c580a('0x1808')]:'api.condition.delete','msg':_0x34e202['data']?JSON[_0x2c580a('0x25e')](_0x34e202[_0x2c580a('0x11c2')][_0x2c580a('0x1224')]):_0x34e202[_0x2c580a('0x1224')]||_0x34e202[_0x2c580a('0x174f')]()});});},function(){});}function _0x354e64(_0x4f69a4){return _0x4f69a4===null?undefined:new Date(_0x4f69a4);}function _0x22ab1f(_0x5732ab){var _0x4efa9d=_0x4dde71;_0x19676c[_0x4efa9d('0x1c24')](_0x5732ab);}}const _0x5d480d=_0x2e2752,_0x14d522=_0x398308['p']+_0x3877e3('0x2517');_0x49ba11['$inject']=[_0x3877e3('0x95a'),'$q','$translate',_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x1908'),'api','Auth'];function _0x49ba11(_0x160326,_0x25982f,_0x10cbfa,_0x145344,_0x21abb3,_0x3dc87b,_0xc95726,_0x429e45,_0x584725){var _0x523d1a=_0x3877e3,_0x4a47f2=this;_0x4a47f2[_0x523d1a('0x123f')]=_0x584725[_0x523d1a('0x15ed')](),_0x4a47f2[_0x523d1a('0x23b9')]={},_0x4a47f2['triggerAnyConditions']={'count':0x0,'rows':[]},_0x4a47f2[_0x523d1a('0x544')]=[],_0x4a47f2[_0x523d1a('0x77')]={'fields':_0x523d1a('0x22de'),'limit':0xa,'page':0x1},_0x4a47f2[_0x523d1a('0x181e')]={'queue':_0x523d1a('0x1da'),'lastevent':'Call_Status','routeId':'OutboundRoute','agent':_0x523d1a('0x1a44'),'account':_0x523d1a('0x5f0'),'interaction':'Interaction','message':_0x523d1a('0x1ee8')},_0x4a47f2[_0x523d1a('0xafc')]={'abandoned':'Abandon','timeout':_0x523d1a('0x1149'),'complete':_0x523d1a('0x224'),'rejected':_0x523d1a('0x2577'),'called':'Ring','connect':_0x523d1a('0x19b7'),'nosuchnumber':_0x523d1a('0x229f'),'busy':'Busy','noanswer':_0x523d1a('0x2d'),'congestion':_0x523d1a('0x2163'),'agentreject':_0x523d1a('0x118f')},_0x4a47f2[_0x523d1a('0x2385')]={'in':_0x523d1a('0x3fc'),'out':_0x523d1a('0xdee'),'accept':_0x523d1a('0x932'),'reject':_0x523d1a('0x255a')},_0x4a47f2[_0x523d1a('0x1081')]=_0x3f25ad,_0x4a47f2[_0x523d1a('0xdb1')]=_0x78ccf9,_0x4a47f2[_0x523d1a('0x2673')]=_0x3a31b8,_0x4a47f2['createOrEditTriggerAnyCondition']=_0x44f550,_0x4a47f2[_0x523d1a('0x3f0')]=_0xdc0e3c,_0x4a47f2[_0x523d1a('0x15dc')]=_0x3d89ac,_0x4a47f2[_0x523d1a('0x2280')]=_0x12f6d2,_0x4a47f2[_0x523d1a('0xd78')]=_0x4b05c8;function _0x3f25ad(_0x27120a,_0xa2549d){var _0x5de6b2=_0x523d1a;_0x4a47f2[_0x5de6b2('0x23b9')]=_0x27120a,_0x4a47f2[_0x5de6b2('0x5ed')]=typeof _0xa2549d!==_0x5de6b2('0xddc')?_0xa2549d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4a47f2[_0x5de6b2('0x77')]['TriggerAnyId']=_0x4a47f2[_0x5de6b2('0x23b9')]['id'],_0x4a47f2[_0x5de6b2('0x77')]['id']=_0x4a47f2['trigger']['id'],_0x3a31b8();}function _0x4019c7(){var _0x524ffb=_0x523d1a,_0x2b1723=_0x4a47f2[_0x524ffb('0x23b9')][_0x524ffb('0x27b5')]+_0x4a47f2[_0x524ffb('0x23b9')][_0x524ffb('0x27b5')]===_0x524ffb('0x1f65')?_0x524ffb('0x10df'):_0x524ffb('0x13c5'),_0x33dda1=_0x4a47f2[_0x524ffb('0x23b9')][_0x524ffb('0x27b5')]+(_0x4a47f2[_0x524ffb('0x23b9')][_0x524ffb('0x27b5')]==='chat'?_0x524ffb('0x188b'):_0x524ffb('0x5f0')),_0x495efb;switch(_0x4a47f2[_0x524ffb('0x23b9')]['channel']){case _0x524ffb('0x1f65'):_0x495efb=0x1f6;break;case'fax':_0x495efb=0x386;break;case'mail':_0x495efb=0x25a;break;case'openchannel':_0x495efb=0x322;break;case'sms':_0x495efb=0x2be;break;case _0x524ffb('0x1ad4'):_0x495efb=0x836;break;}if(_0x584725['isAdmin']()){var _0x2b0bd1=_0x4a47f2[_0x524ffb('0x23b9')][_0x524ffb('0x27b5')];_0x429e45[_0x33dda1][_0x524ffb('0x595')]({'fields':_0x524ffb('0x1aa8'),'sort':'id','nolimit':_0x524ffb('0x19bd')})[_0x524ffb('0x1376')][_0x524ffb('0x21ad')](function(_0x118023){var _0x14b59e=_0x524ffb;_0x4a47f2[_0x2b1723]=_0x118023[_0x14b59e('0x1b33')]||[];})[_0x524ffb('0x1c1d')](function(_0x4baaf5){var _0x55899d=_0x524ffb;_0xc95726[_0x55899d('0x2092')]({'title':_0x4baaf5[_0x55899d('0x209')]?'API:'+_0x4baaf5['status']+_0x55899d('0xa99')+_0x4baaf5[_0x55899d('0x1808')]:_0x55899d('0xe7e')+_0x2b0bd1[_0x55899d('0x2e8')]()+_0x2b0bd1===_0x55899d('0x1f65')?'WEBSITES':_0x55899d('0x1873'),'msg':_0x4baaf5[_0x55899d('0x11c2')]?JSON[_0x55899d('0x25e')](_0x4baaf5[_0x55899d('0x11c2')]):_0x4baaf5[_0x55899d('0x174f')]()});});}else{var _0x3865e5=_0x4a47f2['trigger'][_0x524ffb('0x27b5')];_0x429e45[_0x33dda1][_0x524ffb('0x595')]({'fields':'id,name','sort':'id','nolimit':'true'})[_0x524ffb('0x1376')][_0x524ffb('0x21ad')](function(_0x2cab29){_0x4a47f2[_0x2b1723]=_0x2cab29['rows']||[];})[_0x524ffb('0x21ad')](function(){var _0x5284e3=_0x524ffb;return _0x429e45[_0x5284e3('0xab4')][_0x5284e3('0x595')]({'userProfileId':_0x4a47f2[_0x5284e3('0x123f')][_0x5284e3('0x1618')],'sectionId':_0x495efb})[_0x5284e3('0x1376')];})[_0x524ffb('0x21ad')](function(_0xba38d3){var _0x95a4db=_0x524ffb,_0x9eca39=_0xba38d3&&_0xba38d3[_0x95a4db('0x1b33')]?_0xba38d3[_0x95a4db('0x1b33')][0x0]:null;if(!_0x9eca39){var _0x385427=[],_0x485ec3=[];_0x4a47f2['triggerAnyConditions'][_0x95a4db('0x1b33')][_0x95a4db('0x1a52')](function(_0x4203b6){var _0x2337af=_0x95a4db;if(_0x4203b6[_0x2337af('0xff8')]==='account'){var _0xb438fd=_0x86640f()['find'](_0x4a47f2[_0x2b1723],{'id':Number(_0x4203b6[_0x2337af('0x2228')])});_0x485ec3[_0x2337af('0x206c')](_0xb438fd);}});for(var _0xe811bc=0x0;_0xe811bc<_0x4a47f2[_0x2b1723][_0x95a4db('0x577')];_0xe811bc++){var _0x2c8b15=_0x86640f()[_0x95a4db('0x2664')](_0x485ec3,{'id':_0x4a47f2[_0x2b1723][_0xe811bc]['id']});_0x2c8b15&&(_0x4a47f2[_0x2b1723][_0xe811bc]['canSelect']=![],_0x385427[_0x95a4db('0x206c')](_0x4a47f2[_0x2b1723][_0xe811bc]));}_0x4a47f2[_0x2b1723]=_0x385427;}else{if(!_0x9eca39[_0x95a4db('0x80c')])return _0x429e45[_0x95a4db('0x185e')][_0x95a4db('0x595')]({'sectionId':_0x9eca39['id']})[_0x95a4db('0x1376')][_0x95a4db('0x21ad')](function(_0x54b722){var _0x2b2a73=_0x95a4db,_0xa1e37d=_0x86640f()[_0x2b2a73('0x26c3')](_0x54b722[_0x2b2a73('0x1b33')],function(_0x1f6cc8){var _0x33e55a=_0x2b2a73;return _0x86640f()['find'](_0x4a47f2[_0x2b1723],{'id':_0x1f6cc8[_0x33e55a('0x675')]});}),_0xfe3543=null;_0xfe3543=[],_0x4a47f2[_0x2b2a73('0x1fbe')][_0x2b2a73('0x1b33')][_0x2b2a73('0x1a52')](function(_0x1af3cc){var _0x51607a=_0x2b2a73;if(_0x1af3cc[_0x51607a('0xff8')]===_0x51607a('0x1fd3')){var _0xae09e=_0x86640f()[_0x51607a('0x1d2e')](_0x4a47f2[_0x2b1723],{'id':Number(_0x1af3cc['value'])});_0xfe3543[_0x51607a('0x206c')](_0xae09e);}}),!_0x86640f()[_0x2b2a73('0x23aa')](_0xfe3543)&&_0xfe3543[_0x2b2a73('0x1a52')](function(_0x39f348){var _0x4fb57b=_0x2b2a73;if(!_0x86640f()['some'](_0xa1e37d,['id',_0x39f348['id']])){var _0x604058=_0x86640f()[_0x4fb57b('0x1d2e')](_0x4a47f2[_0x2b1723],{'id':_0x39f348['id']});_0x604058['canSelect']=![],_0xa1e37d[_0x4fb57b('0x206c')](_0x604058);}}),_0x4a47f2[_0x2b1723]=_0xa1e37d;});}})[_0x524ffb('0x1c1d')](function(_0x19e677){var _0x70ec4e=_0x524ffb;_0xc95726['error']({'title':_0x19e677[_0x70ec4e('0x209')]?_0x70ec4e('0x22d')+_0x19e677[_0x70ec4e('0x209')]+_0x70ec4e('0xa99')+_0x19e677['statusText']:_0x70ec4e('0xe7e')+_0x3865e5[_0x70ec4e('0x2e8')]()+_0x3865e5===_0x70ec4e('0x1f65')?_0x70ec4e('0xb0c'):_0x70ec4e('0x1873'),'msg':_0x19e677['data']?JSON[_0x70ec4e('0x25e')](_0x19e677[_0x70ec4e('0x11c2')]):_0x19e677[_0x70ec4e('0x174f')]()});});}}function _0x437402(){var _0x434000=_0x523d1a,_0x4d296b=[{'id':0x191,'type':_0x434000('0x923')},{'id':0x5dd,'type':_0x434000('0x2300')}],_0x272c06=null;_0x584725['isAdmin']()?_0x429e45[_0x434000('0xb97')][_0x434000('0x595')]({'fields':_0x434000('0xfa'),'sort':'name','nolimit':_0x434000('0x19bd')})[_0x434000('0x1376')][_0x434000('0x21ad')](function(_0x5c887d){var _0x560983=_0x434000;_0x4a47f2[_0x560983('0xb7a')]=_0x5c887d[_0x560983('0x1b33')]||[];})[_0x434000('0x1c1d')](function(_0x6929e3){var _0x120c70=_0x434000;_0xc95726[_0x120c70('0x2092')]({'title':_0x6929e3[_0x120c70('0x209')]?_0x120c70('0x22d')+_0x6929e3[_0x120c70('0x209')]+_0x120c70('0xa99')+_0x6929e3[_0x120c70('0x1808')]:_0x120c70('0x1b58'),'msg':_0x6929e3[_0x120c70('0x11c2')]?JSON[_0x120c70('0x25e')](_0x6929e3[_0x120c70('0x11c2')]):_0x6929e3[_0x120c70('0x174f')]()});}):_0x429e45[_0x434000('0xb97')][_0x434000('0x595')]({'fields':'id,name,type','sort':_0x434000('0x19fe'),'nolimit':_0x434000('0x19bd')})[_0x434000('0x1376')][_0x434000('0x21ad')](function(_0x39276f){var _0x3b4032=_0x434000;_0x272c06=_0x39276f[_0x3b4032('0x1b33')]||[];})[_0x434000('0x21ad')](function(){var _0x268464=_0x434000,_0x2011ae=[];for(var _0x4921d9=0x0;_0x4921d9<_0x4d296b[_0x268464('0x577')];_0x4921d9++){_0x2011ae[_0x268464('0x206c')](_0x429e45['userProfileSection']['get']({'userProfileId':_0x4a47f2[_0x268464('0x123f')][_0x268464('0x1618')],'sectionId':_0x4d296b[_0x4921d9]['id']})[_0x268464('0x1376')]);}return _0x25982f[_0x268464('0x1ba7')](_0x2011ae);})[_0x434000('0x21ad')](function(_0x26ff5f){var _0x3e1c45=_0x434000,_0x1fe540=_0x86640f()[_0x3e1c45('0x26c3')](_0x26ff5f,function(_0x4748bd){var _0x7edbae=_0x3e1c45;return _0x4748bd&&_0x4748bd[_0x7edbae('0x1b33')]?_0x4748bd[_0x7edbae('0x1b33')][0x0]:null;}),_0x3a3e25=[],_0x3be473=function _0xa2ac6a(_0x5f6fd9){var _0x528596=_0x3e1c45,_0x517427=_0x86640f()['find'](_0x1fe540,[_0x528596('0x1cd2'),_0x4d296b[_0x5f6fd9]['id']]);if(_0x517427){if(!_0x517427[_0x528596('0x80c')])_0x3a3e25['push'](_0x429e45[_0x528596('0x185e')][_0x528596('0x595')]({'sectionId':_0x517427['id']})[_0x528596('0x1376')]);else{var _0x550343=[];_0x272c06[_0x528596('0x1a52')](function(_0x3ad637){var _0x6f2aba=_0x528596;_0x3ad637[_0x6f2aba('0x7fa')]===_0x4d296b[_0x5f6fd9][_0x6f2aba('0x7fa')]&&_0x550343[_0x6f2aba('0x206c')](_0x3ad637);}),_0x3a3e25[_0x528596('0x206c')]({'rows':_0x550343,'count':_0x550343[_0x528596('0x577')]});}}};for(var _0x3b95f6=0x0;_0x3b95f6<_0x4d296b[_0x3e1c45('0x577')];_0x3b95f6++){_0x3be473(_0x3b95f6);}return _0x25982f[_0x3e1c45('0x1ba7')](_0x3a3e25);})[_0x434000('0x21ad')](function(_0x41863d){var _0x5d9052=_0x434000,_0x418e2d=[],_0x454dd2=[];_0x4a47f2['triggerAnyConditions'][_0x5d9052('0x1b33')][_0x5d9052('0x1a52')](function(_0x5b942e){var _0xe985ad=_0x5d9052;if(_0x5b942e[_0xe985ad('0xff8')]===_0xe985ad('0xbdd')){var _0x49dc9c=_0x86640f()[_0xe985ad('0x1d2e')](_0x272c06,{'name':_0x5b942e['value']});_0x454dd2[_0xe985ad('0x206c')](_0x49dc9c);}});for(var _0xfab025=0x0;_0xfab025<_0x41863d[_0x5d9052('0x577')];_0xfab025++){var _0x4e7212=_0x41863d[_0xfab025][_0x5d9052('0x1b33')]||[];_0x4e7212[_0x5d9052('0x1a52')](function(_0xf9ddc2){var _0x42afed=_0x5d9052;_0x418e2d[_0x42afed('0x206c')](_0xf9ddc2);});}!_0x86640f()[_0x5d9052('0x23aa')](_0x454dd2)&&_0x454dd2[_0x5d9052('0x1a52')](function(_0x153486){var _0x3a2f42=_0x5d9052;if(!_0x86640f()[_0x3a2f42('0x2664')](_0x418e2d,[_0x3a2f42('0x675'),_0x153486['id']])){var _0x185dda=_0x86640f()[_0x3a2f42('0x1d2e')](_0x272c06,{'id':_0x153486['id']});_0x185dda[_0x3a2f42('0xba')]=![],_0x418e2d[_0x3a2f42('0x206c')](_0x185dda);}}),_0x4a47f2[_0x5d9052('0xb7a')]=_0x418e2d;})[_0x434000('0x1c1d')](function(_0x369198){var _0x3f3dd8=_0x434000;_0xc95726['error']({'title':_0x369198[_0x3f3dd8('0x209')]?_0x3f3dd8('0x22d')+_0x369198[_0x3f3dd8('0x209')]+'\x20-\x20'+_0x369198[_0x3f3dd8('0x1808')]:'SYSTEM:GET_QUEUES','msg':_0x369198[_0x3f3dd8('0x11c2')]?JSON[_0x3f3dd8('0x25e')](_0x369198['data']):_0x369198[_0x3f3dd8('0x174f')]()});});}function _0x39b6a3(){var _0x37c272=_0x523d1a;_0x584725[_0x37c272('0xcfc')]()?_0x429e45[_0x37c272('0x1b0c')][_0x37c272('0x595')]({'fields':_0x37c272('0x539'),'type':_0x37c272('0x2300'),'VoiceExtensionId':_0x37c272('0x27a'),'nolimit':'true'})[_0x37c272('0x1376')][_0x37c272('0x21ad')](function(_0xa6c579){var _0xead25e=_0x37c272;_0x4a47f2['outboundRoutes']=_0xa6c579[_0xead25e('0x1b33')]||[];})[_0x37c272('0x1c1d')](function(_0x4be7bd){var _0x56aba7=_0x37c272;_0xc95726[_0x56aba7('0x2092')]({'title':_0x4be7bd[_0x56aba7('0x209')]?_0x56aba7('0x22d')+_0x4be7bd['status']+'\x20-\x20'+_0x4be7bd[_0x56aba7('0x1808')]:_0x56aba7('0x2486'),'msg':_0x4be7bd[_0x56aba7('0x11c2')]?JSON[_0x56aba7('0x25e')](_0x4be7bd['data']):_0x4be7bd['toString']()});}):_0x429e45[_0x37c272('0x1b0c')][_0x37c272('0x595')]({'fields':_0x37c272('0x539'),'type':'outbound','VoiceExtensionId':_0x37c272('0x27a'),'nolimit':_0x37c272('0x19bd')})[_0x37c272('0x1376')][_0x37c272('0x21ad')](function(_0x3fc524){_0x4a47f2['outboundRoutes']=_0x3fc524['rows']||[];})[_0x37c272('0x21ad')](function(){var _0x40efc0=_0x37c272;return _0x429e45['userProfileSection'][_0x40efc0('0x595')]({'userProfileId':_0x4a47f2['currentUser']['userProfileId'],'sectionId':0x193})[_0x40efc0('0x1376')];})[_0x37c272('0x21ad')](function(_0x2c9ad0){var _0x366511=_0x37c272,_0x20fccc=_0x2c9ad0&&_0x2c9ad0[_0x366511('0x1b33')]?_0x2c9ad0[_0x366511('0x1b33')][0x0]:null;if(!_0x20fccc){var _0x174970=[],_0x3cf8fb=[];_0x4a47f2['triggerAnyConditions'][_0x366511('0x1b33')][_0x366511('0x1a52')](function(_0x4af400){var _0x25499c=_0x366511;if(_0x4af400[_0x25499c('0xff8')]===_0x25499c('0x26a8')){var _0x109bcd=_0x86640f()[_0x25499c('0x1d2e')](_0x4a47f2[_0x25499c('0x31')],{'id':Number(_0x4af400['value'])});_0x3cf8fb['push'](_0x109bcd);}});for(var _0x3437ca=0x0;_0x3437ca<_0x4a47f2[_0x366511('0x31')]['length'];_0x3437ca++){var _0x12d133=_0x86640f()['some'](_0x3cf8fb,{'id':_0x4a47f2['outboundRoutes'][_0x3437ca]['id']});_0x12d133&&(_0x4a47f2['outboundRoutes'][_0x3437ca][_0x366511('0xba')]=![],_0x174970[_0x366511('0x206c')](_0x4a47f2['outboundRoutes'][_0x3437ca]));}_0x4a47f2[_0x366511('0x31')]=_0x174970;}else{if(!_0x20fccc[_0x366511('0x80c')])return _0x429e45[_0x366511('0x185e')][_0x366511('0x595')]({'sectionId':_0x20fccc['id']})['$promise'][_0x366511('0x21ad')](function(_0x12e9ea){var _0x5cfead=_0x366511,_0x139b8a=_0x86640f()[_0x5cfead('0x26c3')](_0x12e9ea[_0x5cfead('0x1b33')],function(_0x1e64f5){var _0x31d120=_0x5cfead;return _0x86640f()[_0x31d120('0x1d2e')](_0x4a47f2['outboundRoutes'],{'id':_0x1e64f5[_0x31d120('0x675')]});}),_0x254aa7=null;_0x254aa7=[],_0x4a47f2['triggerAnyConditions'][_0x5cfead('0x1b33')][_0x5cfead('0x1a52')](function(_0x303306){var _0x9999a7=_0x5cfead;if(_0x303306['field']==='routeId'){var _0x1aab3f=_0x86640f()['find'](_0x4a47f2[_0x9999a7('0x31')],{'id':Number(_0x303306['value'])});_0x254aa7[_0x9999a7('0x206c')](_0x1aab3f);}}),!_0x86640f()[_0x5cfead('0x23aa')](_0x254aa7)&&_0x254aa7[_0x5cfead('0x1a52')](function(_0x7e83d7){var _0x531850=_0x5cfead;if(!_0x86640f()[_0x531850('0x2664')](_0x139b8a,['id',_0x7e83d7['id']])){var _0x3f7de0=_0x86640f()[_0x531850('0x1d2e')](_0x4a47f2[_0x531850('0x31')],{'id':_0x7e83d7['id']});_0x3f7de0[_0x531850('0xba')]=![],_0x139b8a[_0x531850('0x206c')](_0x3f7de0);}}),_0x4a47f2[_0x5cfead('0x31')]=_0x139b8a;});}})[_0x37c272('0x1c1d')](function(_0x480429){var _0x433c2d=_0x37c272;_0xc95726[_0x433c2d('0x2092')]({'title':_0x480429[_0x433c2d('0x209')]?_0x433c2d('0x22d')+_0x480429['status']+'\x20-\x20'+_0x480429[_0x433c2d('0x1808')]:_0x433c2d('0x2486'),'msg':_0x480429[_0x433c2d('0x11c2')]?JSON[_0x433c2d('0x25e')](_0x480429[_0x433c2d('0x11c2')]):_0x480429['toString']()});});}function _0x382fd1(){var _0x589a30=_0x523d1a;_0x584725[_0x589a30('0xcfc')]()?_0x429e45[_0x589a30('0x1775')]['get']({'fields':_0x589a30('0x2326'),'sort':'name','role':_0x589a30('0x2402'),'nolimit':'true'})['$promise'][_0x589a30('0x21ad')](function(_0x591d93){var _0x4fd66a=_0x589a30;_0x4a47f2[_0x4fd66a('0xcb5')]=_0x591d93['rows']||[];})[_0x589a30('0x1c1d')](function(_0x56d442){var _0x3ab065=_0x589a30;_0xc95726[_0x3ab065('0x2092')]({'title':_0x56d442[_0x3ab065('0x209')]?_0x3ab065('0x22d')+_0x56d442[_0x3ab065('0x209')]+_0x3ab065('0xa99')+_0x56d442[_0x3ab065('0x1808')]:_0x3ab065('0x1381'),'msg':_0x56d442[_0x3ab065('0x11c2')]?JSON[_0x3ab065('0x25e')](_0x56d442[_0x3ab065('0x11c2')]):_0x56d442['toString']()});}):_0x429e45['user'][_0x589a30('0x595')]({'fields':_0x589a30('0x2326'),'sort':'name','role':'agent','nolimit':_0x589a30('0x19bd')})[_0x589a30('0x1376')][_0x589a30('0x21ad')](function(_0x24222e){var _0x4b62bc=_0x589a30;_0x4a47f2[_0x4b62bc('0xcb5')]=_0x24222e[_0x4b62bc('0x1b33')]||[];})[_0x589a30('0x21ad')](function(){var _0x3c2952=_0x589a30;return _0x429e45[_0x3c2952('0xab4')][_0x3c2952('0x595')]({'userProfileId':_0x4a47f2[_0x3c2952('0x123f')][_0x3c2952('0x1618')],'sectionId':0xca})[_0x3c2952('0x1376')];})['then'](function(_0x2c5232){var _0x25e391=_0x589a30,_0xc449b8=_0x2c5232&&_0x2c5232[_0x25e391('0x1b33')]?_0x2c5232[_0x25e391('0x1b33')][0x0]:null;if(!_0xc449b8){var _0x3de829=[],_0xc62334=[];_0x4a47f2[_0x25e391('0x1fbe')][_0x25e391('0x1b33')][_0x25e391('0x1a52')](function(_0xa70e1f){var _0x4f1b24=_0x25e391;if(_0xa70e1f[_0x4f1b24('0xff8')]==='agent'){var _0x76f3ee=_0x86640f()[_0x4f1b24('0x1d2e')](_0x4a47f2['agents'],{'name':_0xa70e1f['value']});_0xc62334['push'](_0x76f3ee);}});for(var _0x1878a4=0x0;_0x1878a4<_0x4a47f2[_0x25e391('0xcb5')][_0x25e391('0x577')];_0x1878a4++){var _0x2da7bd=_0x86640f()[_0x25e391('0x2664')](_0xc62334,{'id':_0x4a47f2[_0x25e391('0xcb5')][_0x1878a4]['id']});_0x2da7bd&&(_0x4a47f2[_0x25e391('0xcb5')][_0x1878a4]['canSelect']=![],_0x3de829[_0x25e391('0x206c')](_0x4a47f2[_0x25e391('0xcb5')][_0x1878a4]));}_0x4a47f2['agents']=_0x3de829;}else{if(!_0xc449b8[_0x25e391('0x80c')])return _0x429e45[_0x25e391('0x185e')][_0x25e391('0x595')]({'sectionId':_0xc449b8['id']})[_0x25e391('0x1376')][_0x25e391('0x21ad')](function(_0x4f2666){var _0x16525b=_0x25e391,_0x340885=_0x86640f()[_0x16525b('0x26c3')](_0x4f2666[_0x16525b('0x1b33')],function(_0x1a968e){var _0x25befd=_0x16525b;return _0x86640f()[_0x25befd('0x1d2e')](_0x4a47f2['agents'],{'id':_0x1a968e[_0x25befd('0x675')]});}),_0x55dc61=null;_0x55dc61=[],_0x4a47f2[_0x16525b('0x1fbe')][_0x16525b('0x1b33')][_0x16525b('0x1a52')](function(_0x53ec16){var _0x57fc7f=_0x16525b;if(_0x53ec16[_0x57fc7f('0xff8')]==='agent'){var _0x171174=_0x86640f()[_0x57fc7f('0x1d2e')](_0x4a47f2[_0x57fc7f('0xcb5')],{'name':_0x53ec16[_0x57fc7f('0x2228')]});_0x55dc61[_0x57fc7f('0x206c')](_0x171174);}}),!_0x86640f()['isEmpty'](_0x55dc61)&&_0x55dc61['forEach'](function(_0x227476){var _0x20c83f=_0x16525b;if(!_0x86640f()[_0x20c83f('0x2664')](_0x340885,['id',_0x227476['id']])){var _0xf09940=_0x86640f()[_0x20c83f('0x1d2e')](_0x4a47f2[_0x20c83f('0xcb5')],{'id':_0x227476['id']});_0xf09940['canSelect']=![],_0x340885[_0x20c83f('0x206c')](_0xf09940);}}),_0x4a47f2[_0x16525b('0xcb5')]=_0x340885;});}})[_0x589a30('0x1c1d')](function(_0x4c3d71){var _0x4d8912=_0x589a30;_0xc95726[_0x4d8912('0x2092')]({'title':_0x4c3d71[_0x4d8912('0x209')]?_0x4d8912('0x22d')+_0x4c3d71[_0x4d8912('0x209')]+'\x20-\x20'+_0x4c3d71[_0x4d8912('0x1808')]:_0x4d8912('0x1381'),'msg':_0x4c3d71[_0x4d8912('0x11c2')]?JSON[_0x4d8912('0x25e')](_0x4c3d71[_0x4d8912('0x11c2')]):_0x4c3d71[_0x4d8912('0x174f')]()});});}function _0x594c3c(){var _0xc2d18e=_0x523d1a;if(_0x4a47f2[_0xc2d18e('0x23b9')][_0xc2d18e('0x27b5')]===_0xc2d18e('0x8ed')){if(_0x86640f()['some'](_0x4a47f2[_0xc2d18e('0x1fbe')][_0xc2d18e('0x1b33')],[_0xc2d18e('0xff8'),_0xc2d18e('0xbdd')])){if(!_0x4a47f2[_0xc2d18e('0xb7a')])_0x437402();}if(_0x86640f()[_0xc2d18e('0x2664')](_0x4a47f2[_0xc2d18e('0x1fbe')][_0xc2d18e('0x1b33')],['field',_0xc2d18e('0x26a8')])){if(!_0x4a47f2[_0xc2d18e('0x31')])_0x39b6a3();}if(_0x86640f()[_0xc2d18e('0x2664')](_0x4a47f2[_0xc2d18e('0x1fbe')][_0xc2d18e('0x1b33')],[_0xc2d18e('0xff8'),_0xc2d18e('0x2402')])){if(!_0x4a47f2[_0xc2d18e('0xcb5')])_0x382fd1();}}else _0x4019c7();}function _0x78ccf9(_0x4c2015){var _0x48406e=_0x523d1a;_0x4a47f2[_0x48406e('0x1fbe')]=_0x4c2015||{'count':0x0,'rows':[]},_0x594c3c();}function _0x3a31b8(){var _0x4d270a=_0x523d1a;_0x4a47f2[_0x4d270a('0x77')][_0x4d270a('0x15a5')]=(_0x4a47f2['query'][_0x4d270a('0x2376')]-0x1)*_0x4a47f2[_0x4d270a('0x77')][_0x4d270a('0x1f4a')],_0x4a47f2[_0x4d270a('0x71b')]=_0x429e45[_0x4d270a('0x23b9')][_0x4d270a('0x2425')](_0x4a47f2[_0x4d270a('0x77')],_0x78ccf9)['$promise'];}function _0x44f550(_0x86c8a9,_0x162a0b){var _0x342290=_0x523d1a;_0x21abb3[_0x342290('0x853')]({'controller':_0x342290('0x1ba8'),'controllerAs':'vm','templateUrl':_0x14d522,'parent':angular[_0x342290('0x1676')](_0x3dc87b[_0x342290('0x2452')]),'targetEvent':_0x86c8a9,'clickOutsideToClose':!![],'locals':{'trigger':_0x4a47f2[_0x342290('0x23b9')],'anyCondition':_0x162a0b,'anyConditions':_0x4a47f2[_0x342290('0x1fbe')][_0x342290('0x1b33')],'license':null,'setting':null,'crudPermissions':_0x4a47f2['crudPermissions']}})['then'](function(_0x1acd23){var _0x407818=_0x342290;_0x1acd23&&(_0x4a47f2[_0x407818('0x1fbe')]={'count':_0x1acd23[_0x407818('0x577')],'rows':_0x1acd23},_0x594c3c());});}function _0x3d89ac(_0x440990,_0x4b2713){var _0x386c67=_0x523d1a,_0x1ff523=_0x21abb3[_0x386c67('0xa33')]()[_0x386c67('0x4b4')](_0x10cbfa[_0x386c67('0x183e')](_0x386c67('0x2169')))[_0x386c67('0x7a7')](_0x386c67('0x9a9'))[_0x386c67('0x1e6d')](_0x4b2713)['ok']('OK')[_0x386c67('0x3b5')](_0x10cbfa[_0x386c67('0x183e')]('TOOLS.CANCEL'));_0x21abb3['show'](_0x1ff523)[_0x386c67('0x21ad')](function(){_0x12f6d2(_0x440990,!![]);});}function _0x12f6d2(_0xc5c53a,_0x55d4c3){var _0xb87ee8=_0x523d1a;_0x429e45['condition'][_0xb87ee8('0x1164')]({'id':_0xc5c53a['id']})[_0xb87ee8('0x1376')][_0xb87ee8('0x21ad')](function(){var _0x1add0e=_0xb87ee8;_0x3a31b8(),_0x55d4c3&&_0xc95726[_0x1add0e('0xdb1')]({'title':_0x10cbfa['instant']('TOOLS.NOTIFICATIONS.CONDITION_DELETED_SUCCESS_TITLE')});})[_0xb87ee8('0x1c1d')](function(_0x2bd2aa){var _0x42b3e9=_0xb87ee8;if(_0x2bd2aa['data']&&_0x2bd2aa['data']['errors']&&_0x2bd2aa[_0x42b3e9('0x11c2')][_0x42b3e9('0x1a69')][_0x42b3e9('0x577')]){_0x4a47f2[_0x42b3e9('0x1a69')]=_0x2bd2aa['data'][_0x42b3e9('0x1a69')]||[{'message':_0x2bd2aa[_0x42b3e9('0x174f')](),'type':_0x42b3e9('0x1a2')}];for(var _0x501010=0x0;_0x501010<_0x2bd2aa['data'][_0x42b3e9('0x1a69')][_0x42b3e9('0x577')];_0x501010++){_0xc95726[_0x42b3e9('0x2092')]({'title':_0x2bd2aa[_0x42b3e9('0x11c2')][_0x42b3e9('0x1a69')][_0x501010]['type'],'msg':_0x2bd2aa['data']['errors'][_0x501010][_0x42b3e9('0x1224')]});}}else _0xc95726['error']({'title':_0x2bd2aa[_0x42b3e9('0x209')]?_0x42b3e9('0x22d')+_0x2bd2aa[_0x42b3e9('0x209')]+_0x42b3e9('0xa99')+_0x2bd2aa['statusText']:_0x42b3e9('0x1a2'),'msg':_0x2bd2aa[_0x42b3e9('0x11c2')]?JSON['stringify'](_0x2bd2aa[_0x42b3e9('0x11c2')]['message']):_0x2bd2aa[_0x42b3e9('0x1224')]||_0x2bd2aa['toString']()});});}function _0xdc0e3c(){var _0x4774a8=_0x523d1a,_0x3a6b3d=angular['copy'](_0x4a47f2[_0x4774a8('0x544')]);return _0x4a47f2[_0x4774a8('0x544')]=[],_0x3a6b3d;}function _0x4b05c8(_0x1eba68){var _0x5bf859=_0x523d1a,_0xb75d3e=_0x21abb3['confirm']()[_0x5bf859('0x4b4')](_0x10cbfa['instant'](_0x5bf859('0x1377')))[_0x5bf859('0x13fb')](_0x10cbfa[_0x5bf859('0x183e')](_0x5bf859('0xddd'),{'total':_0x4a47f2[_0x5bf859('0x544')][_0x5bf859('0x577')]}))['ariaLabel'](_0x5bf859('0x5e0'))[_0x5bf859('0x1e6d')](_0x1eba68)['ok']('OK')[_0x5bf859('0x3b5')](_0x10cbfa[_0x5bf859('0x183e')](_0x5bf859('0x20ea')));_0x21abb3[_0x5bf859('0x853')](_0xb75d3e)[_0x5bf859('0x21ad')](function(){var _0x1cc927=_0x5bf859;_0x4a47f2[_0x1cc927('0x544')][_0x1cc927('0x1a52')](function(_0xddbb27){_0x12f6d2(_0xddbb27);}),_0x4a47f2[_0x1cc927('0x544')]=[],_0xc95726[_0x1cc927('0xdb1')]({'title':_0x10cbfa[_0x1cc927('0x183e')](_0x1cc927('0x123'))});});}var _0x20f792=!![],_0x9e296e=0x1;_0x160326[_0x523d1a('0x10e8')]('vm_dc.query.filter',function(_0x45c519,_0x18ecec){var _0x582596=_0x523d1a;_0x20f792?_0x145344(function(){_0x20f792=![];}):(!_0x18ecec&&(_0x9e296e=_0x4a47f2[_0x582596('0x77')][_0x582596('0x2376')]),_0x45c519!==_0x18ecec&&(_0x4a47f2[_0x582596('0x77')][_0x582596('0x2376')]=0x1),!_0x45c519&&(_0x4a47f2[_0x582596('0x77')][_0x582596('0x2376')]=_0x9e296e),_0x3a31b8());});}const _0x3143d5=_0x49ba11;_0x2e70d2[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),'$mdDialog','$q',_0x3877e3('0x13c1'),'toasty',_0x3877e3('0x1d3f'),_0x3877e3('0x1fb9'),_0x3877e3('0x23b9'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting',_0x3877e3('0x5ed')];function _0x2e70d2(_0x545296,_0x5e52df,_0x50c026,_0x1f4b51,_0x1e7f12,_0x325667,_0x120eff,_0x1e4fb5,_0x2d7479,_0x3fd460,_0x3a8816,_0x53a508,_0x5e732e){var _0x52d76a=_0x3877e3,_0x27d640=this;_0x27d640[_0x52d76a('0x123f')]=_0x3fd460['getCurrentUser'](),_0x27d640[_0x52d76a('0x1fb9')]=angular[_0x52d76a('0xd75')](_0x120eff),_0x27d640[_0x52d76a('0x1d3f')]=angular[_0x52d76a('0xd75')](_0x325667),_0x27d640[_0x52d76a('0x21e')]=_0x53a508,_0x27d640[_0x52d76a('0x2ff')]=_0x3a8816,_0x27d640[_0x52d76a('0x5ed')]=_0x5e732e,_0x27d640[_0x52d76a('0x126a')]={},_0x27d640[_0x52d76a('0xf9f')]=![],_0x27d640[_0x52d76a('0x1a69')]=[],_0x27d640[_0x52d76a('0x23b9')]=angular[_0x52d76a('0xd75')](_0x1e4fb5);!_0x27d640[_0x52d76a('0x1fb9')]?(_0x27d640['allCondition']={'operator':'equals'},_0x27d640[_0x52d76a('0xf9f')]=!![]):_0x55af68();_0x27d640[_0x52d76a('0x1fb9')][_0x52d76a('0x937')]=_0x545296['params']['id']||undefined,_0x27d640[_0x52d76a('0xafc')]=[{'name':_0x52d76a('0x2381'),'value':_0x52d76a('0x1f4')},{'name':_0x52d76a('0x1149'),'value':_0x52d76a('0x2133')},{'name':_0x52d76a('0x224'),'value':_0x52d76a('0xcab')},{'name':_0x52d76a('0x2577'),'value':'rejected'},{'name':_0x52d76a('0x2399'),'value':'called'},{'name':_0x52d76a('0x19b7'),'value':'connect'},{'name':_0x52d76a('0x229f'),'value':'nosuchnumber'},{'name':_0x52d76a('0x480'),'value':'busy'},{'name':_0x52d76a('0x2d'),'value':_0x52d76a('0xb81')},{'name':_0x52d76a('0x2163'),'value':_0x52d76a('0x16f1')},{'name':_0x52d76a('0x118f'),'value':'agentreject'}],_0x27d640[_0x52d76a('0x13dd')]=_0x2c2e25,_0x27d640['addNewAllCondition']=_0x194a08,_0x27d640[_0x52d76a('0x1048')]=_0x409727,_0x27d640['deleteAllCondition']=_0x35c596,_0x27d640[_0x52d76a('0x167')]=_0x54018a;function _0x2012f5(){var _0x2d73da=_0x52d76a,_0x35e876=[{'id':0x191,'type':_0x2d73da('0x923')},{'id':0x5dd,'type':'outbound'}],_0x418a0a=null;_0x3fd460[_0x2d73da('0xcfc')]()?_0x2d7479[_0x2d73da('0xb97')][_0x2d73da('0x595')]({'fields':_0x2d73da('0xfa'),'sort':_0x2d73da('0x19fe'),'nolimit':_0x2d73da('0x19bd')})['$promise']['then'](function(_0x35e3e7){var _0x5bda99=_0x2d73da;_0x27d640[_0x5bda99('0xb7a')]=_0x35e3e7[_0x5bda99('0x1b33')]||[];})[_0x2d73da('0x1c1d')](function(_0x3d9c3b){var _0x491013=_0x2d73da;_0x1e7f12[_0x491013('0x2092')]({'title':_0x3d9c3b['status']?_0x491013('0x22d')+_0x3d9c3b['status']+'\x20-\x20'+_0x3d9c3b[_0x491013('0x1808')]:_0x491013('0x1b58'),'msg':_0x3d9c3b['data']?JSON[_0x491013('0x25e')](_0x3d9c3b[_0x491013('0x11c2')]):_0x3d9c3b[_0x491013('0x174f')]()});}):_0x2d7479[_0x2d73da('0xb97')]['get']({'fields':_0x2d73da('0xfa'),'sort':_0x2d73da('0x19fe'),'nolimit':_0x2d73da('0x19bd')})[_0x2d73da('0x1376')][_0x2d73da('0x21ad')](function(_0x4c98d7){var _0x1020f0=_0x2d73da;_0x418a0a=_0x4c98d7[_0x1020f0('0x1b33')]||[];})[_0x2d73da('0x21ad')](function(){var _0x476ce4=_0x2d73da,_0x28a3c1=[];for(var _0x14bb58=0x0;_0x14bb58<_0x35e876['length'];_0x14bb58++){_0x28a3c1[_0x476ce4('0x206c')](_0x2d7479['userProfileSection'][_0x476ce4('0x595')]({'userProfileId':_0x27d640[_0x476ce4('0x123f')][_0x476ce4('0x1618')],'sectionId':_0x35e876[_0x14bb58]['id']})[_0x476ce4('0x1376')]);}return _0x50c026[_0x476ce4('0x1ba7')](_0x28a3c1);})['then'](function(_0x31974f){var _0x1bfdab=_0x2d73da,_0x123137=_0x86640f()[_0x1bfdab('0x26c3')](_0x31974f,function(_0x1782c6){var _0x47f201=_0x1bfdab;return _0x1782c6&&_0x1782c6[_0x47f201('0x1b33')]?_0x1782c6[_0x47f201('0x1b33')][0x0]:null;}),_0x3e2490=[],_0x8e5e19=function _0x26d3ec(_0x1326b1){var _0x5aa938=_0x1bfdab,_0x2a3820=_0x86640f()[_0x5aa938('0x1d2e')](_0x123137,[_0x5aa938('0x1cd2'),_0x35e876[_0x1326b1]['id']]);if(_0x2a3820){if(!_0x2a3820[_0x5aa938('0x80c')])_0x3e2490['push'](_0x2d7479[_0x5aa938('0x185e')][_0x5aa938('0x595')]({'sectionId':_0x2a3820['id']})['$promise']);else{var _0xf2eaf5=[];_0x418a0a[_0x5aa938('0x1a52')](function(_0x177a49){var _0x3dce47=_0x5aa938;_0x177a49[_0x3dce47('0x7fa')]===_0x35e876[_0x1326b1][_0x3dce47('0x7fa')]&&_0xf2eaf5['push'](_0x177a49);}),_0x3e2490['push']({'rows':_0xf2eaf5,'count':_0xf2eaf5[_0x5aa938('0x577')]});}}};for(var _0x124440=0x0;_0x124440<_0x35e876[_0x1bfdab('0x577')];_0x124440++){_0x8e5e19(_0x124440);}return _0x50c026['all'](_0x3e2490);})[_0x2d73da('0x21ad')](function(_0x4a95a2){var _0x1733a1=_0x2d73da,_0xdae6ea=[],_0x2e296d=[];_0x27d640['triggerallConditions'][_0x1733a1('0x1b33')][_0x1733a1('0x1a52')](function(_0x54d4ea){var _0x5e344b=_0x1733a1;if(_0x54d4ea[_0x5e344b('0xff8')]===_0x5e344b('0xbdd')){var _0x5aeea9=_0x86640f()[_0x5e344b('0x1d2e')](_0x418a0a,{'name':_0x54d4ea['value']});_0x2e296d['push'](_0x5aeea9);}});for(var _0x16baeb=0x0;_0x16baeb<_0x4a95a2[_0x1733a1('0x577')];_0x16baeb++){var _0x268a8d=_0x4a95a2[_0x16baeb][_0x1733a1('0x1b33')]||[];_0x268a8d[_0x1733a1('0x1a52')](function(_0x1e90c7){var _0x688ab5=_0x1733a1;_0xdae6ea[_0x688ab5('0x206c')](_0x1e90c7);});}!_0x86640f()[_0x1733a1('0x23aa')](_0x2e296d)&&_0x2e296d[_0x1733a1('0x1a52')](function(_0x16f2cc){var _0x1f05b5=_0x1733a1;if(!_0x86640f()[_0x1f05b5('0x2664')](_0xdae6ea,['resourceId',_0x16f2cc['id']])){var _0x230faf=_0x86640f()[_0x1f05b5('0x1d2e')](_0x418a0a,{'id':_0x16f2cc['id']});_0x230faf[_0x1f05b5('0xba')]=![],_0xdae6ea[_0x1f05b5('0x206c')](_0x230faf);}}),_0x27d640[_0x1733a1('0xb7a')]=_0xdae6ea;})[_0x2d73da('0x1c1d')](function(_0x3a158a){var _0x43a252=_0x2d73da;_0x1e7f12[_0x43a252('0x2092')]({'title':_0x3a158a[_0x43a252('0x209')]?'API:'+_0x3a158a[_0x43a252('0x209')]+_0x43a252('0xa99')+_0x3a158a[_0x43a252('0x1808')]:_0x43a252('0x1612'),'msg':_0x3a158a[_0x43a252('0x11c2')]?JSON[_0x43a252('0x25e')](_0x3a158a['data']):_0x3a158a['toString']()});});}function _0x3cfa74(){var _0x490f0e=_0x52d76a;_0x3fd460[_0x490f0e('0xcfc')]()?_0x2d7479[_0x490f0e('0x1b0c')]['get']({'fields':'id,exten','type':_0x490f0e('0x2300'),'VoiceExtensionId':_0x490f0e('0x27a'),'nolimit':_0x490f0e('0x19bd')})['$promise'][_0x490f0e('0x21ad')](function(_0x4bbf1a){var _0x562c9c=_0x490f0e;_0x27d640[_0x562c9c('0x31')]=_0x4bbf1a[_0x562c9c('0x1b33')]||[];})['catch'](function(_0x4b10e6){var _0x432cba=_0x490f0e;_0x1e7f12['error']({'title':_0x4b10e6[_0x432cba('0x209')]?_0x432cba('0x22d')+_0x4b10e6[_0x432cba('0x209')]+_0x432cba('0xa99')+_0x4b10e6['statusText']:'SYSTEM:GET_OUTBOUNDROUTES','msg':_0x4b10e6['data']?JSON['stringify'](_0x4b10e6[_0x432cba('0x11c2')]):_0x4b10e6[_0x432cba('0x174f')]()});}):_0x2d7479['voiceExtension'][_0x490f0e('0x595')]({'fields':'id,exten','type':_0x490f0e('0x2300'),'VoiceExtensionId':_0x490f0e('0x27a'),'nolimit':_0x490f0e('0x19bd')})[_0x490f0e('0x1376')][_0x490f0e('0x21ad')](function(_0x268a2d){var _0x2f8478=_0x490f0e;_0x27d640[_0x2f8478('0x31')]=_0x268a2d[_0x2f8478('0x1b33')]||[];})[_0x490f0e('0x21ad')](function(){var _0x32dcfe=_0x490f0e;return _0x2d7479[_0x32dcfe('0xab4')][_0x32dcfe('0x595')]({'userProfileId':_0x27d640['currentUser']['userProfileId'],'sectionId':0x193})[_0x32dcfe('0x1376')];})[_0x490f0e('0x21ad')](function(_0x32bdac){var _0x13f7f3=_0x490f0e,_0x253f73=_0x32bdac&&_0x32bdac[_0x13f7f3('0x1b33')]?_0x32bdac['rows'][0x0]:null;if(!_0x253f73){var _0x24b507=[],_0x141348=[];_0x27d640[_0x13f7f3('0x6cd')]['rows']['forEach'](function(_0x4cd701){var _0xb4e33c=_0x13f7f3;if(_0x4cd701[_0xb4e33c('0xff8')]===_0xb4e33c('0x26a8')){var _0x252057=_0x86640f()[_0xb4e33c('0x1d2e')](_0x27d640[_0xb4e33c('0x31')],{'id':Number(_0x4cd701[_0xb4e33c('0x2228')])});_0x141348[_0xb4e33c('0x206c')](_0x252057);}});for(var _0x37a274=0x0;_0x37a274<_0x27d640['outboundRoutes'][_0x13f7f3('0x577')];_0x37a274++){var _0x179e30=_0x86640f()['some'](_0x141348,{'id':_0x27d640[_0x13f7f3('0x31')][_0x37a274]['id']});_0x179e30&&(_0x27d640[_0x13f7f3('0x31')][_0x37a274][_0x13f7f3('0xba')]=![],_0x24b507['push'](_0x27d640[_0x13f7f3('0x31')][_0x37a274]));}_0x27d640['outboundRoutes']=_0x24b507;}else{if(!_0x253f73[_0x13f7f3('0x80c')])return _0x2d7479[_0x13f7f3('0x185e')][_0x13f7f3('0x595')]({'sectionId':_0x253f73['id']})[_0x13f7f3('0x1376')]['then'](function(_0x545767){var _0x474dd4=_0x13f7f3,_0x6855a4=_0x86640f()[_0x474dd4('0x26c3')](_0x545767['rows'],function(_0x153493){var _0x4ee5f2=_0x474dd4;return _0x86640f()[_0x4ee5f2('0x1d2e')](_0x27d640[_0x4ee5f2('0x31')],{'id':_0x153493[_0x4ee5f2('0x675')]});}),_0x2521a9=null;_0x2521a9=[],_0x27d640[_0x474dd4('0x6cd')][_0x474dd4('0x1b33')][_0x474dd4('0x1a52')](function(_0x4de31f){var _0x924f1b=_0x474dd4;if(_0x4de31f[_0x924f1b('0xff8')]==='routeId'){var _0x5c98f1=_0x86640f()[_0x924f1b('0x1d2e')](_0x27d640[_0x924f1b('0x31')],{'id':Number(_0x4de31f['value'])});_0x2521a9[_0x924f1b('0x206c')](_0x5c98f1);}}),!_0x86640f()[_0x474dd4('0x23aa')](_0x2521a9)&&_0x2521a9[_0x474dd4('0x1a52')](function(_0x591914){var _0x4d5038=_0x474dd4;if(!_0x86640f()[_0x4d5038('0x2664')](_0x6855a4,['id',_0x591914['id']])){var _0x16f69c=_0x86640f()[_0x4d5038('0x1d2e')](_0x27d640[_0x4d5038('0x31')],{'id':_0x591914['id']});_0x16f69c[_0x4d5038('0xba')]=![],_0x6855a4[_0x4d5038('0x206c')](_0x16f69c);}}),_0x27d640['outboundRoutes']=_0x6855a4;});}})['catch'](function(_0x4f64c6){var _0x302c7c=_0x490f0e;_0x1e7f12[_0x302c7c('0x2092')]({'title':_0x4f64c6[_0x302c7c('0x209')]?_0x302c7c('0x22d')+_0x4f64c6[_0x302c7c('0x209')]+_0x302c7c('0xa99')+_0x4f64c6['statusText']:_0x302c7c('0x2486'),'msg':_0x4f64c6['data']?JSON[_0x302c7c('0x25e')](_0x4f64c6[_0x302c7c('0x11c2')]):_0x4f64c6[_0x302c7c('0x174f')]()});});}function _0x5f279e(){var _0x5c42c4=_0x52d76a;_0x3fd460[_0x5c42c4('0xcfc')]()?_0x2d7479['user'][_0x5c42c4('0x595')]({'fields':'id,name,fullname','sort':_0x5c42c4('0x19fe'),'role':_0x5c42c4('0x2402'),'nolimit':_0x5c42c4('0x19bd')})[_0x5c42c4('0x1376')]['then'](function(_0x12899e){var _0x7914ab=_0x5c42c4;_0x27d640['agents']=_0x12899e[_0x7914ab('0x1b33')]||[];})['catch'](function(_0x217ce2){var _0xd28435=_0x5c42c4;_0x1e7f12['error']({'title':_0x217ce2[_0xd28435('0x209')]?'API:'+_0x217ce2[_0xd28435('0x209')]+_0xd28435('0xa99')+_0x217ce2['statusText']:'SYSTEM:GET_AGENTS','msg':_0x217ce2[_0xd28435('0x11c2')]?JSON[_0xd28435('0x25e')](_0x217ce2[_0xd28435('0x11c2')]):_0x217ce2[_0xd28435('0x174f')]()});}):_0x2d7479[_0x5c42c4('0x1775')][_0x5c42c4('0x595')]({'fields':_0x5c42c4('0x2326'),'sort':'name','role':_0x5c42c4('0x2402'),'nolimit':_0x5c42c4('0x19bd')})[_0x5c42c4('0x1376')][_0x5c42c4('0x21ad')](function(_0x5deef8){var _0x12b9c7=_0x5c42c4;_0x27d640['agents']=_0x5deef8[_0x12b9c7('0x1b33')]||[];})[_0x5c42c4('0x21ad')](function(){var _0x25cb54=_0x5c42c4;return _0x2d7479['userProfileSection'][_0x25cb54('0x595')]({'userProfileId':_0x27d640[_0x25cb54('0x123f')]['userProfileId'],'sectionId':0xca})[_0x25cb54('0x1376')];})[_0x5c42c4('0x21ad')](function(_0x105116){var _0x468965=_0x5c42c4,_0x3cd83b=_0x105116&&_0x105116[_0x468965('0x1b33')]?_0x105116[_0x468965('0x1b33')][0x0]:null;if(!_0x3cd83b){var _0x29326f=[],_0x430444=[];_0x27d640[_0x468965('0x6cd')][_0x468965('0x1b33')][_0x468965('0x1a52')](function(_0x416ea8){var _0x1082f5=_0x468965;if(_0x416ea8['field']==='agent'){var _0x241cb7=_0x86640f()['find'](_0x27d640['agents'],{'name':_0x416ea8[_0x1082f5('0x2228')]});_0x430444[_0x1082f5('0x206c')](_0x241cb7);}});for(var _0x1fb732=0x0;_0x1fb732<_0x27d640[_0x468965('0xcb5')][_0x468965('0x577')];_0x1fb732++){var _0xfe63b3=_0x86640f()['some'](_0x430444,{'id':_0x27d640[_0x468965('0xcb5')][_0x1fb732]['id']});_0xfe63b3&&(_0x27d640[_0x468965('0xcb5')][_0x1fb732][_0x468965('0xba')]=![],_0x29326f[_0x468965('0x206c')](_0x27d640['agents'][_0x1fb732]));}_0x27d640['agents']=_0x29326f;}else{if(!_0x3cd83b[_0x468965('0x80c')])return _0x2d7479[_0x468965('0x185e')]['get']({'sectionId':_0x3cd83b['id']})[_0x468965('0x1376')]['then'](function(_0x1974eb){var _0x1a3ca8=_0x468965,_0x231c2a=_0x86640f()[_0x1a3ca8('0x26c3')](_0x1974eb['rows'],function(_0x316ae8){var _0x508e33=_0x1a3ca8;return _0x86640f()[_0x508e33('0x1d2e')](_0x27d640[_0x508e33('0xcb5')],{'id':_0x316ae8[_0x508e33('0x675')]});}),_0x16d1cb=null;_0x16d1cb=[],_0x27d640['triggerallConditions'][_0x1a3ca8('0x1b33')][_0x1a3ca8('0x1a52')](function(_0x51a644){var _0xe0f516=_0x1a3ca8;if(_0x51a644['field']===_0xe0f516('0x2402')){var _0x22505e=_0x86640f()[_0xe0f516('0x1d2e')](_0x27d640[_0xe0f516('0xcb5')],{'name':_0x51a644[_0xe0f516('0x2228')]});_0x16d1cb['push'](_0x22505e);}}),!_0x86640f()[_0x1a3ca8('0x23aa')](_0x16d1cb)&&_0x16d1cb[_0x1a3ca8('0x1a52')](function(_0x360127){var _0x358771=_0x1a3ca8;if(!_0x86640f()[_0x358771('0x2664')](_0x231c2a,['id',_0x360127['id']])){var _0x4c2e73=_0x86640f()[_0x358771('0x1d2e')](_0x27d640['agents'],{'id':_0x360127['id']});_0x4c2e73['canSelect']=![],_0x231c2a['push'](_0x4c2e73);}}),_0x27d640['agents']=_0x231c2a;});}})[_0x5c42c4('0x1c1d')](function(_0x173d91){var _0x1df2f0=_0x5c42c4;_0x1e7f12[_0x1df2f0('0x2092')]({'title':_0x173d91[_0x1df2f0('0x209')]?_0x1df2f0('0x22d')+_0x173d91[_0x1df2f0('0x209')]+'\x20-\x20'+_0x173d91['statusText']:_0x1df2f0('0x1381'),'msg':_0x173d91[_0x1df2f0('0x11c2')]?JSON[_0x1df2f0('0x25e')](_0x173d91[_0x1df2f0('0x11c2')]):_0x173d91[_0x1df2f0('0x174f')]()});});}function _0x48f528(){var _0x56d850=_0x52d76a,_0x33c720=_0x27d640[_0x56d850('0x23b9')]['channel']+(_0x27d640['trigger'][_0x56d850('0x27b5')]===_0x56d850('0x1f65')?_0x56d850('0x188b'):_0x56d850('0x5f0')),_0x242d6f;switch(_0x27d640['trigger']['channel']){case'chat':_0x242d6f=0x1f6;break;case'fax':_0x242d6f=0x386;break;case'mail':_0x242d6f=0x25a;break;case'openchannel':_0x242d6f=0x322;break;case _0x56d850('0x3d0'):_0x242d6f=0x2be;break;case _0x56d850('0x1ad4'):_0x242d6f=0x836;break;}if(_0x3fd460[_0x56d850('0xcfc')]()){var _0x24c5be=_0x27d640['trigger'][_0x56d850('0x27b5')];_0x2d7479[_0x33c720][_0x56d850('0x595')]({'fields':'id,name','sort':'id','nolimit':_0x56d850('0x19bd')})[_0x56d850('0x1376')]['then'](function(_0x235408){var _0x1ec2f4=_0x56d850;_0x27d640[_0x1ec2f4('0x129e')]=_0x235408[_0x1ec2f4('0x1b33')]||[];})[_0x56d850('0x1c1d')](function(_0x505277){var _0x1af096=_0x56d850;_0x1e7f12[_0x1af096('0x2092')]({'title':_0x505277[_0x1af096('0x209')]?_0x1af096('0x22d')+_0x505277[_0x1af096('0x209')]+_0x1af096('0xa99')+_0x505277[_0x1af096('0x1808')]:'SYSTEM:GET_'+_0x24c5be[_0x1af096('0x2e8')]()+_0x24c5be===_0x1af096('0x1f65')?'WEBSITES':'ACCOUNTS','msg':_0x505277['data']?JSON[_0x1af096('0x25e')](_0x505277[_0x1af096('0x11c2')]):_0x505277['toString']()});});}else _0x2d7479[_0x33c720][_0x56d850('0x595')]({'fields':_0x56d850('0x1aa8'),'sort':'id','nolimit':'true'})[_0x56d850('0x1376')][_0x56d850('0x21ad')](function(_0x2b82a2){var _0x5942a9=_0x56d850;_0x27d640[_0x5942a9('0x129e')]=_0x2b82a2['rows']||[];})[_0x56d850('0x21ad')](function(){var _0x3d6125=_0x56d850;return _0x2d7479[_0x3d6125('0xab4')][_0x3d6125('0x595')]({'userProfileId':_0x27d640[_0x3d6125('0x123f')][_0x3d6125('0x1618')],'sectionId':_0x242d6f})[_0x3d6125('0x1376')];})[_0x56d850('0x21ad')](function(_0x354335){var _0x2139de=_0x56d850,_0x585428=_0x354335&&_0x354335['rows']?_0x354335[_0x2139de('0x1b33')][0x0]:null;if(!_0x585428){var _0x1780f0=[],_0x16aa01=[];_0x27d640[_0x2139de('0x6cd')]['rows'][_0x2139de('0x1a52')](function(_0xa8831){var _0x125c8c=_0x2139de;if(_0xa8831['field']==='account'){var _0x406360=_0x86640f()['find'](_0x27d640[_0x125c8c('0x129e')],{'id':Number(_0xa8831[_0x125c8c('0x2228')])});_0x16aa01['push'](_0x406360);}});for(var _0x49fdca=0x0;_0x49fdca<_0x27d640[_0x2139de('0x129e')]['length'];_0x49fdca++){var _0x453060=_0x86640f()[_0x2139de('0x2664')](_0x16aa01,{'id':_0x27d640[_0x2139de('0x129e')][_0x49fdca]['id']});_0x453060&&(_0x27d640[_0x2139de('0x129e')][_0x49fdca][_0x2139de('0xba')]=![],_0x1780f0[_0x2139de('0x206c')](_0x27d640[_0x2139de('0x129e')][_0x49fdca]));}_0x27d640[_0x2139de('0x129e')]=_0x1780f0;}else{if(!_0x585428['autoAssociation'])return _0x2d7479[_0x2139de('0x185e')][_0x2139de('0x595')]({'sectionId':_0x585428['id']})[_0x2139de('0x1376')][_0x2139de('0x21ad')](function(_0x11397b){var _0x2aea5a=_0x2139de,_0x249ca8=_0x86640f()[_0x2aea5a('0x26c3')](_0x11397b[_0x2aea5a('0x1b33')],function(_0x5b16e3){var _0x4d2774=_0x2aea5a;return _0x86640f()[_0x4d2774('0x1d2e')](_0x27d640[_0x4d2774('0x129e')],{'id':_0x5b16e3['resourceId']});}),_0x7ce760=null;_0x7ce760=[],_0x27d640[_0x2aea5a('0x6cd')][_0x2aea5a('0x1b33')][_0x2aea5a('0x1a52')](function(_0x32754f){var _0x3744b8=_0x2aea5a;if(_0x32754f[_0x3744b8('0xff8')]===_0x3744b8('0x1fd3')){var _0x271474=_0x86640f()[_0x3744b8('0x1d2e')](_0x27d640[_0x3744b8('0x129e')],{'id':Number(_0x32754f[_0x3744b8('0x2228')])});_0x7ce760[_0x3744b8('0x206c')](_0x271474);}}),!_0x86640f()[_0x2aea5a('0x23aa')](_0x7ce760)&&_0x7ce760[_0x2aea5a('0x1a52')](function(_0xf94ced){var _0x2c9964=_0x2aea5a;if(!_0x86640f()[_0x2c9964('0x2664')](_0x249ca8,['id',_0xf94ced['id']])){var _0x4bdd2a=_0x86640f()[_0x2c9964('0x1d2e')](_0x27d640[_0x2c9964('0x129e')],{'id':_0xf94ced['id']});_0x4bdd2a[_0x2c9964('0xba')]=![],_0x249ca8[_0x2c9964('0x206c')](_0x4bdd2a);}}),_0x27d640[_0x2aea5a('0x129e')]=_0x249ca8;});}})[_0x56d850('0x1c1d')](function(_0xcb5289){var _0x53f3c8=_0x56d850,_0xd9734c=_0x27d640[_0x53f3c8('0x23b9')]['channel'];_0x1e7f12[_0x53f3c8('0x2092')]({'title':_0xcb5289[_0x53f3c8('0x209')]?_0x53f3c8('0x22d')+_0xcb5289['status']+_0x53f3c8('0xa99')+_0xcb5289['statusText']:_0x53f3c8('0xe7e')+_0xd9734c[_0x53f3c8('0x2e8')]()+_0xd9734c===_0x53f3c8('0x1f65')?'WEBSITES':_0x53f3c8('0x1873'),'msg':_0xcb5289['data']?JSON[_0x53f3c8('0x25e')](_0xcb5289[_0x53f3c8('0x11c2')]):_0xcb5289[_0x53f3c8('0x174f')]()});});}function _0x55af68(){var _0x4d339b=_0x52d76a;switch(_0x27d640[_0x4d339b('0x1fb9')][_0x4d339b('0xff8')]){case _0x4d339b('0xbdd'):if(!_0x27d640[_0x4d339b('0xb7a')])_0x2012f5();break;case _0x4d339b('0x26a8'):if(!_0x27d640['outboundRoutes'])_0x3cfa74();break;case'agent':if(!_0x27d640[_0x4d339b('0xcb5')])_0x5f279e();break;case _0x4d339b('0x1fd3'):_0x48f528();break;}}function _0x2c2e25(){_0x55af68();}function _0x194a08(){var _0x5f3088=_0x52d76a;_0x27d640[_0x5f3088('0x1a69')]=[],_0x2d7479[_0x5f3088('0x23b9')][_0x5f3088('0xea7')]({'id':_0x545296[_0x5f3088('0x171b')]['id']},_0x27d640[_0x5f3088('0x1fb9')])['$promise'][_0x5f3088('0x21ad')](function(_0x484abb){var _0x4a0e5e=_0x5f3088;_0x27d640[_0x4a0e5e('0x1d3f')]['unshift'](_0x484abb[_0x4a0e5e('0x3bc')]()),_0x1e7f12[_0x4a0e5e('0xdb1')]({'title':_0x1f4b51['instant']('TOOLS.NOTIFICATIONS.CONDITION_CREATED_SUCCESS_TITLE')}),_0x54018a(_0x27d640[_0x4a0e5e('0x1d3f')]);})[_0x5f3088('0x1c1d')](function(_0x15c0ce){var _0x1e82f2=_0x5f3088;if(_0x15c0ce[_0x1e82f2('0x11c2')]&&_0x15c0ce['data']['errors']&&_0x15c0ce[_0x1e82f2('0x11c2')][_0x1e82f2('0x1a69')][_0x1e82f2('0x577')]){_0x27d640[_0x1e82f2('0x1a69')]=_0x15c0ce[_0x1e82f2('0x11c2')][_0x1e82f2('0x1a69')]||[{'message':_0x15c0ce[_0x1e82f2('0x174f')](),'type':_0x1e82f2('0x2798')}];for(var _0x2e47ef=0x0;_0x2e47ef<_0x15c0ce[_0x1e82f2('0x11c2')][_0x1e82f2('0x1a69')][_0x1e82f2('0x577')];_0x2e47ef+=0x1){_0x1e7f12[_0x1e82f2('0x2092')]({'title':_0x15c0ce[_0x1e82f2('0x11c2')]['errors'][_0x2e47ef][_0x1e82f2('0x7fa')],'msg':_0x15c0ce['data'][_0x1e82f2('0x1a69')][_0x2e47ef][_0x1e82f2('0x1224')]});}}else _0x1e7f12[_0x1e82f2('0x2092')]({'title':_0x15c0ce[_0x1e82f2('0x209')]?_0x1e82f2('0x22d')+_0x15c0ce['status']+_0x1e82f2('0xa99')+_0x15c0ce[_0x1e82f2('0x1808')]:'api.condition.save','msg':_0x15c0ce[_0x1e82f2('0x11c2')]?JSON[_0x1e82f2('0x25e')](_0x15c0ce[_0x1e82f2('0x11c2')][_0x1e82f2('0x1224')]):_0x15c0ce['toString']()});});}function _0x409727(){var _0x369fb3=_0x52d76a;_0x27d640[_0x369fb3('0x1a69')]=[],_0x2d7479['condition'][_0x369fb3('0x5ef')]({'id':_0x27d640[_0x369fb3('0x1fb9')]['id']},_0x27d640['allCondition'])['$promise']['then'](function(){var _0x5e4c32=_0x369fb3;_0x27d640[_0x5e4c32('0x1d3f')]=_0x86640f()[_0x5e4c32('0x26c3')](_0x27d640['allConditions'],function(_0x30b894){var _0xd5a624=_0x5e4c32;if(_0x30b894['id']===_0x27d640[_0xd5a624('0x1fb9')]['id'])return _0x27d640[_0xd5a624('0x1fb9')];else return _0x30b894;}),_0x1e7f12[_0x5e4c32('0xdb1')]({'title':_0x1f4b51[_0x5e4c32('0x183e')](_0x5e4c32('0x24e'))}),_0x54018a(_0x27d640['allConditions']);})[_0x369fb3('0x1c1d')](function(_0xe58e42){var _0x235239=_0x369fb3;if(_0xe58e42[_0x235239('0x11c2')]&&_0xe58e42[_0x235239('0x11c2')]['errors']&&_0xe58e42[_0x235239('0x11c2')]['errors'][_0x235239('0x577')]){_0x27d640['errors']=_0xe58e42[_0x235239('0x11c2')][_0x235239('0x1a69')]||[{'message':_0xe58e42[_0x235239('0x174f')](),'type':_0x235239('0x2774')}];for(var _0x30fa42=0x0;_0x30fa42<_0xe58e42['data'][_0x235239('0x1a69')][_0x235239('0x577')];_0x30fa42++){_0x1e7f12[_0x235239('0x2092')]({'title':_0xe58e42[_0x235239('0x11c2')][_0x235239('0x1a69')][_0x30fa42][_0x235239('0x7fa')],'msg':_0xe58e42[_0x235239('0x11c2')][_0x235239('0x1a69')][_0x30fa42]['message']});}}else _0x1e7f12[_0x235239('0x2092')]({'title':_0xe58e42[_0x235239('0x209')]?_0x235239('0x22d')+_0xe58e42[_0x235239('0x209')]+'\x20-\x20'+_0xe58e42[_0x235239('0x1808')]:'api.condition.update','msg':_0xe58e42[_0x235239('0x11c2')]?JSON[_0x235239('0x25e')](_0xe58e42['data'][_0x235239('0x1224')]):_0xe58e42[_0x235239('0x174f')]()});});}function _0x35c596(_0x2e6240){var _0x5992f7=_0x52d76a;_0x27d640[_0x5992f7('0x1a69')]=[];var _0x6f06ce=_0x5e52df[_0x5992f7('0xa33')]({'skipHide':!![]})['title'](_0x1f4b51['instant'](_0x5992f7('0x2169')))[_0x5992f7('0x7a7')](_0x5992f7('0x9a9'))['ok'](_0x1f4b51[_0x5992f7('0x183e')](_0x5992f7('0x24b')))['cancel'](_0x1f4b51[_0x5992f7('0x183e')](_0x5992f7('0x20ea')))[_0x5992f7('0x1e6d')](_0x2e6240);_0x5e52df['show'](_0x6f06ce)[_0x5992f7('0x21ad')](function(){var _0x5d4277=_0x5992f7;_0x2d7479[_0x5d4277('0x271c')]['delete']({'id':_0x27d640[_0x5d4277('0x1fb9')]['id']})[_0x5d4277('0x1376')][_0x5d4277('0x21ad')](function(){var _0x8e3a11=_0x5d4277;_0x27d640[_0x8e3a11('0x1d3f')]=_0x86640f()[_0x8e3a11('0x1503')](_0x27d640['allConditions'],function(_0x33d7ac){var _0x17aac0=_0x8e3a11;return _0x33d7ac['id']!==_0x27d640[_0x17aac0('0x1fb9')]['id'];}),_0x1e7f12[_0x8e3a11('0xdb1')]({'title':_0x1f4b51[_0x8e3a11('0x183e')](_0x8e3a11('0xd81'))}),_0x54018a(_0x27d640[_0x8e3a11('0x1d3f')]);})[_0x5d4277('0x1c1d')](function(_0x441ab5){var _0x47d4e7=_0x5d4277;if(_0x441ab5[_0x47d4e7('0x11c2')]&&_0x441ab5[_0x47d4e7('0x11c2')][_0x47d4e7('0x1a69')]&&_0x441ab5[_0x47d4e7('0x11c2')][_0x47d4e7('0x1a69')][_0x47d4e7('0x577')]){_0x27d640[_0x47d4e7('0x1a69')]=_0x441ab5[_0x47d4e7('0x11c2')][_0x47d4e7('0x1a69')]||[{'message':_0x441ab5[_0x47d4e7('0x174f')](),'type':_0x47d4e7('0x96a')}];for(var _0x5a0287=0x0;_0x5a0287<_0x441ab5['data']['errors'][_0x47d4e7('0x577')];_0x5a0287++){_0x1e7f12[_0x47d4e7('0x2092')]({'title':_0x441ab5[_0x47d4e7('0x11c2')][_0x47d4e7('0x1a69')][_0x5a0287][_0x47d4e7('0x7fa')],'msg':_0x441ab5['data'][_0x47d4e7('0x1a69')][_0x5a0287][_0x47d4e7('0x1224')]});}}else _0x1e7f12['error']({'title':_0x441ab5['status']?'API:'+_0x441ab5[_0x47d4e7('0x209')]+_0x47d4e7('0xa99')+_0x441ab5[_0x47d4e7('0x1808')]:'api.condition.delete','msg':_0x441ab5[_0x47d4e7('0x11c2')]?JSON[_0x47d4e7('0x25e')](_0x441ab5[_0x47d4e7('0x11c2')]['message']):_0x441ab5['message']||_0x441ab5['toString']()});});},function(){});}function _0x54018a(_0x4d9ce7){var _0x371558=_0x52d76a;_0x5e52df[_0x371558('0x1c24')](_0x4d9ce7);}}const _0x3dbc7f=_0x2e70d2;_0x5f4370[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x13c1'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),'Auth',_0x3877e3('0x23b9'),_0x3877e3('0xab4')];function _0x5f4370(_0x3ca4c4,_0x412977,_0x2ebf39,_0x8b8255,_0x430b64,_0x2753f5,_0xe4c88a,_0x3e073c,_0x1dc7b0){var _0x90c0dc=_0x3877e3,_0x1105b8=this;_0x1105b8[_0x90c0dc('0x123f')]=_0xe4c88a[_0x90c0dc('0x15ed')](),_0x1105b8['license']=_0x2ebf39,_0x1105b8[_0x90c0dc('0x21e')]=_0x8b8255,_0x1105b8[_0x90c0dc('0x23b9')]=_0x3e073c||_0x3ca4c4[_0x90c0dc('0x171b')][_0x90c0dc('0x23b9')]||{},_0x1105b8[_0x90c0dc('0x302')]=_0x3ca4c4[_0x90c0dc('0x171b')][_0x90c0dc('0x12e1')]||0x0;_0x3ca4c4[_0x90c0dc('0x171b')][_0x90c0dc('0x5ed')]?_0x1105b8[_0x90c0dc('0x5ed')]=_0x3ca4c4['params'][_0x90c0dc('0x5ed')]:(_0x1105b8['userProfileSection']=_0x1dc7b0&&_0x1dc7b0[_0x90c0dc('0x205f')]==0x1?_0x1dc7b0[_0x90c0dc('0x1b33')][0x0]:null,_0x1105b8[_0x90c0dc('0x5ed')]=_0xe4c88a[_0x90c0dc('0x1778')](_0x1105b8[_0x90c0dc('0xab4')]?_0x1105b8[_0x90c0dc('0xab4')][_0x90c0dc('0x5ed')]:null));_0x1105b8[_0x90c0dc('0x1c99')]=_0x36b132,_0x1105b8[_0x90c0dc('0x252e')]=_0x932970;function _0x36b132(){var _0x33446f=_0x90c0dc;_0x3ca4c4['go'](_0x33446f('0x1ae7'),{},{'reload':'app.tools.triggers'});}function _0x932970(){var _0x559630=_0x90c0dc;_0x430b64[_0x559630('0x23b9')]['update']({'id':_0x1105b8[_0x559630('0x23b9')]['id']},_0x1105b8[_0x559630('0x23b9')])[_0x559630('0x1376')][_0x559630('0x21ad')](function(){var _0x364472=_0x559630;_0x2753f5[_0x364472('0xdb1')]({'title':_0x412977[_0x364472('0x183e')](_0x364472('0x1aee'))});})[_0x559630('0x1c1d')](function(_0x24a455){var _0x326f33=_0x559630;_0x2753f5[_0x326f33('0x2092')]({'title':_0x24a455[_0x326f33('0x209')]?_0x326f33('0x22d')+_0x24a455['status']+_0x326f33('0xa99')+_0x24a455['statusText']:_0x326f33('0x1a2'),'msg':_0x24a455[_0x326f33('0x11c2')]?JSON[_0x326f33('0x25e')](_0x24a455[_0x326f33('0x11c2')]):_0x24a455['toString']()});});}}const _0x5e3e5c=_0x5f4370,_0x16b415=_0x398308['p']+_0x3877e3('0x485');_0x1fd220['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x1850'),'$document',_0x3877e3('0x2313'),'$translate',_0x3877e3('0x1e92'),_0x3877e3('0x758'),'userProfileSection',_0x3877e3('0xccd'),_0x3877e3('0x1908'),'Auth',_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x1fd220(_0x41e687,_0x5717f8,_0x4be5dc,_0x7c582,_0x31e207,_0x46a7e2,_0xfb2209,_0x510b41,_0x50c628,_0x2cb49f,_0x30c870,_0xdd73d0,_0x182fcd,_0x11c4c9){var _0x8d54d6=_0x3877e3,_0x580675=this;_0x580675['license']=_0x182fcd,_0x580675[_0x8d54d6('0x21e')]=_0x11c4c9,_0x580675['currentUser']=_0xdd73d0[_0x8d54d6('0x15ed')](),_0x580675['triggers']=_0xfb2209||{'count':0x0,'rows':[]},_0x580675['userProfile']=_0x510b41,_0x580675[_0x8d54d6('0xab4')]=_0x50c628&&_0x50c628['count']==0x1?_0x50c628['rows'][0x0]:null,_0x580675[_0x8d54d6('0x5ed')]=_0xdd73d0[_0x8d54d6('0x1778')](_0x580675[_0x8d54d6('0xab4')]?_0x580675[_0x8d54d6('0xab4')]['crudPermissions']:null),_0x580675[_0x8d54d6('0xeb4')]=[],_0x580675[_0x8d54d6('0x77')]={'fields':_0x8d54d6('0x537'),'sort':_0x8d54d6('0x33'),'limit':0xa,'page':0x1},_0x580675[_0x8d54d6('0x1ef5')]=_0x2f8565,_0x580675[_0x8d54d6('0xb4e')]=_0x406615,_0x580675[_0x8d54d6('0xdb1')]=_0x52d4e8,_0x580675[_0x8d54d6('0xab5')]=_0x35aedd,_0x580675['deleteconfirm']=_0x3bc347,_0x580675['exportSelectedTriggers']=_0x3e34b2,_0x580675[_0x8d54d6('0x1d7c')]=_0x4a35c8,_0x580675[_0x8d54d6('0x11d0')]=_0x48390e,_0x580675[_0x8d54d6('0x1e17')]=_0x524a30;function _0x2f8565(_0x3540ab){var _0x2b09d0=_0x8d54d6;_0x5717f8['go']('app.tools.triggers.edit',{'id':_0x3540ab['id'],'trigger':_0x3540ab,'crudPermissions':_0x580675[_0x2b09d0('0x5ed')]});}function _0x406615(_0x136429,_0x4e35a9){var _0x25d900=_0x8d54d6;if(_0x580675['crudPermissions'][_0x25d900('0xf3c')]||_0x580675[_0x25d900('0x5ed')][_0x25d900('0x10a5')]&&!_0x580675['crudPermissions'][_0x25d900('0x6e2')]){_0x2f8565(_0x4e35a9);return;}_0x4be5dc[_0x25d900('0x853')]({'controller':'CreateOrEditTriggerDialogController','controllerAs':'vm','templateUrl':_0x16b415,'parent':angular[_0x25d900('0x1676')](_0x7c582[_0x25d900('0x2452')]),'targetEvent':_0x136429,'clickOutsideToClose':!![],'locals':{'trigger':_0x4e35a9,'triggers':_0x580675[_0x25d900('0x1e92')][_0x25d900('0x1b33')],'license':_0x580675[_0x25d900('0x2ff')],'setting':_0x580675[_0x25d900('0x21e')],'crudPermissions':_0x580675[_0x25d900('0x5ed')]}})[_0x25d900('0x21ad')](function(_0x1317d8){var _0x33b50c=_0x25d900;_0x1317d8&&(_0x580675['triggers']={'count':_0x1317d8[_0x33b50c('0x577')],'rows':_0x1317d8});});}function _0x52d4e8(_0x4b206c){var _0x394d0f=_0x8d54d6;_0x580675[_0x394d0f('0x1e92')]=_0x4b206c||{'count':0x0,'rows':[]};}function _0x35aedd(){var _0x4a7592=_0x8d54d6;_0x580675[_0x4a7592('0x77')]['offset']=(_0x580675[_0x4a7592('0x77')]['page']-0x1)*_0x580675[_0x4a7592('0x77')]['limit'],_0xdd73d0[_0x4a7592('0xcfc')]()?_0x580675[_0x4a7592('0x71b')]=_0x2cb49f['trigger'][_0x4a7592('0x595')](_0x580675[_0x4a7592('0x77')],_0x52d4e8)['$promise']:(_0x580675[_0x4a7592('0x77')]['id']=_0x580675[_0x4a7592('0x758')]['id'],_0x580675[_0x4a7592('0x77')]['section']=_0x4a7592('0x1b1d'),_0x580675[_0x4a7592('0x71b')]=_0x2cb49f['userProfile'][_0x4a7592('0x321')](_0x580675[_0x4a7592('0x77')],_0x52d4e8)[_0x4a7592('0x1376')]);}function _0x3bc347(_0x155ce1,_0x3c6eb6){var _0xd7d893=_0x8d54d6,_0x164f66=_0x4be5dc[_0xd7d893('0xa33')]()['title'](_0x46a7e2[_0xd7d893('0x183e')](_0xd7d893('0xe7f')))[_0xd7d893('0x13fb')](_0x46a7e2['instant'](_0xd7d893('0x1751'),{'name':_0x155ce1[_0xd7d893('0x19fe')]}))[_0xd7d893('0x7a7')](_0xd7d893('0x248e'))['targetEvent'](_0x3c6eb6)['ok']('OK')['cancel'](_0x46a7e2['instant'](_0xd7d893('0x20ea')));_0x4be5dc[_0xd7d893('0x853')](_0x164f66)[_0xd7d893('0x21ad')](function(){_0x4e6288(_0x155ce1,!![]);});}function _0x4e6288(_0x495850,_0x1622ac){var _0x5f1979=_0x8d54d6;_0x2cb49f[_0x5f1979('0x23b9')][_0x5f1979('0x1164')]({'id':_0x495850['id']})[_0x5f1979('0x1376')][_0x5f1979('0x21ad')](function(){var _0x17e69a=_0x5f1979;_0x35aedd(),_0x1622ac&&_0x30c870[_0x17e69a('0xdb1')]({'title':_0x46a7e2[_0x17e69a('0x183e')](_0x17e69a('0x193f'))});})[_0x5f1979('0x1c1d')](function(_0x4a1231){var _0x1c5519=_0x5f1979;if(_0x4a1231[_0x1c5519('0x11c2')]&&_0x4a1231[_0x1c5519('0x11c2')][_0x1c5519('0x1a69')]&&_0x4a1231[_0x1c5519('0x11c2')][_0x1c5519('0x1a69')]['length']){_0x580675['errors']=_0x4a1231[_0x1c5519('0x11c2')][_0x1c5519('0x1a69')]||[{'message':_0x4a1231[_0x1c5519('0x174f')](),'type':_0x1c5519('0x20e1')}];for(var _0x5bdc74=0x0;_0x5bdc74<_0x4a1231[_0x1c5519('0x11c2')][_0x1c5519('0x1a69')][_0x1c5519('0x577')];_0x5bdc74++){_0x30c870[_0x1c5519('0x2092')]({'title':_0x4a1231[_0x1c5519('0x11c2')][_0x1c5519('0x1a69')][_0x5bdc74][_0x1c5519('0x7fa')],'msg':_0x4a1231[_0x1c5519('0x11c2')][_0x1c5519('0x1a69')][_0x5bdc74][_0x1c5519('0x1224')]});}}else _0x30c870[_0x1c5519('0x2092')]({'title':_0x4a1231['status']?_0x1c5519('0x22d')+_0x4a1231['status']+'\x20-\x20'+_0x4a1231[_0x1c5519('0x1808')]:_0x1c5519('0x20e1'),'msg':_0x4a1231['data']?JSON[_0x1c5519('0x25e')](_0x4a1231[_0x1c5519('0x11c2')][_0x1c5519('0x1224')]):_0x4a1231['message']||_0x4a1231[_0x1c5519('0x174f')]()});});}function _0x3e34b2(){var _0x3215cc=_0x8d54d6,_0xcfc842=angular[_0x3215cc('0xd75')](_0x580675[_0x3215cc('0xeb4')]);return _0x580675[_0x3215cc('0xeb4')]=[],_0xcfc842;}function _0x4a35c8(_0x5e1c8f){var _0x4f7831=_0x8d54d6,_0x36c9a7=_0x4be5dc[_0x4f7831('0xa33')]()[_0x4f7831('0x4b4')](_0x46a7e2[_0x4f7831('0x183e')](_0x4f7831('0x946')))['content'](_0x46a7e2[_0x4f7831('0x183e')]('TOOLS.NOTIFICATIONS.TRIGGERS_DELETE_MESSAGE',{'total':_0x580675[_0x4f7831('0xeb4')][_0x4f7831('0x577')]}))[_0x4f7831('0x7a7')](_0x4f7831('0x17ce'))['targetEvent'](_0x5e1c8f)['ok']('OK')[_0x4f7831('0x3b5')](_0x46a7e2['instant']('TOOLS.CANCEL'));_0x4be5dc[_0x4f7831('0x853')](_0x36c9a7)[_0x4f7831('0x21ad')](function(){var _0x592978=_0x4f7831;_0x580675['selectedTriggers']['forEach'](function(_0x3ba5c3){_0x4e6288(_0x3ba5c3);}),_0x580675[_0x592978('0xeb4')]=[],_0x30c870[_0x592978('0xdb1')]({'title':_0x46a7e2['instant'](_0x592978('0x431'))});});}function _0x48390e(){var _0x5eda5c=_0x8d54d6;_0x580675[_0x5eda5c('0xeb4')]=[];}function _0x524a30(){var _0x2e14ef=_0x8d54d6;_0x580675[_0x2e14ef('0xeb4')]=_0x580675['triggers'][_0x2e14ef('0x1b33')];}var _0x41ffcf=!![],_0x4bcb4a=0x1;_0x41e687['$watch'](_0x8d54d6('0x1948'),function(_0x549f7d,_0x5897a4){var _0x5cbca5=_0x8d54d6;_0x41ffcf?_0x31e207(function(){_0x41ffcf=![];}):(!_0x5897a4&&(_0x4bcb4a=_0x580675[_0x5cbca5('0x77')][_0x5cbca5('0x2376')]),_0x549f7d!==_0x5897a4&&(_0x580675[_0x5cbca5('0x77')][_0x5cbca5('0x2376')]=0x1),!_0x549f7d&&(_0x580675[_0x5cbca5('0x77')][_0x5cbca5('0x2376')]=_0x4bcb4a),_0x35aedd());});}const _0x570317=_0x1fd220;_0x3d1b2f[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c')];function _0x3d1b2f(_0x3c80cb){var _0x4fa0de=_0x3877e3;_0x3c80cb[_0x4fa0de('0x27e')](_0x4fa0de('0x1ae7'),{'url':_0x4fa0de('0x12be'),'views':{'content@app':{'templateUrl':_0x36466d,'controller':_0x4fa0de('0xf24')}},'resolve':{'triggers':[_0x4fa0de('0x354'),_0x4fa0de('0x15bc'),function _0x409b5f(_0x7f0dd4,_0x3b80f4){var _0x5b2a98=_0x4fa0de;return _0x3b80f4[_0x5b2a98('0x21de')](_0x5b2a98('0x1bd8'))?_0x7f0dd4[_0x5b2a98('0x8ac')](_0x5b2a98('0x1cb5'),{'fields':_0x5b2a98('0x20ac'),'sort':_0x5b2a98('0x33'),'limit':0xa,'offset':0x0}):_0x7f0dd4[_0x5b2a98('0x8ac')](_0x5b2a98('0x52f'),{'id':_0x3b80f4['getCurrentUser']()['userProfileId'],'section':_0x5b2a98('0x1b1d'),'fields':_0x5b2a98('0x20ac'),'sort':_0x5b2a98('0x33'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4fa0de('0x354'),'Auth',function _0x233dd8(_0x27f674,_0x1fa906){var _0x5e2a51=_0x4fa0de;return _0x1fa906['hasRole'](_0x5e2a51('0x1bd8'))?null:_0x27f674['resolve']('userProfile@get',{'fields':_0x5e2a51('0x1a00'),'id':_0x1fa906['getCurrentUser']()[_0x5e2a51('0x1618')]});}],'userProfileSection':['apiResolver',_0x4fa0de('0x15bc'),function _0x19da0b(_0x59c67c,_0x99dcc){var _0x56f701=_0x4fa0de;return _0x99dcc[_0x56f701('0x21de')]('admin')?null:_0x59c67c[_0x56f701('0x8ac')](_0x56f701('0x222f'),{'fields':_0x56f701('0x1852'),'userProfileId':_0x99dcc['getCurrentUser']()['userProfileId'],'sectionId':0x3f2});}]},'authenticate':!![],'permissionId':0x3f2,'bodyClass':_0x4fa0de('0xeb3')})[_0x4fa0de('0x27e')](_0x4fa0de('0x1928'),{'url':_0x4fa0de('0x17f5'),'params':{'trigger':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x21106e,'controller':_0x4fa0de('0x1af')}},'resolve':{'trigger':[_0x4fa0de('0x354'),_0x4fa0de('0x114e'),function _0x55bc5d(_0x4610e0,_0x3a6db9){var _0xe108d2=_0x4fa0de;return _0x4610e0[_0xe108d2('0x8ac')](_0xe108d2('0x1cb5'),{'fields':'createdAt,updatedAt,id,name,channel,status,description','id':_0x3a6db9['id']});}],'userProfileSection':[_0x4fa0de('0x354'),'Auth',function _0x43b921(_0x1b5e42,_0x45955e){var _0x3418d2=_0x4fa0de;return _0x1b5e42[_0x3418d2('0x8ac')](_0x3418d2('0x222f'),{'fields':_0x3418d2('0x1852'),'userProfileId':_0x45955e[_0x3418d2('0x15ed')]()['userProfileId'],'sectionId':0x3f2});}]},'authenticate':!![],'permissionId':0x3f2,'bodyClass':'tools'});}angular[_0x3877e3('0x20d5')](_0x3877e3('0x1ae7'),[])[_0x3877e3('0x13')](_0x3d1b2f)['controller'](_0x3877e3('0x16e5'),_0x4f0df0)[_0x3877e3('0x1d5a')](_0x3877e3('0x24d7'),_0x5b0c66)['controller'](_0x3877e3('0x209a'),_0x5cd96f)[_0x3877e3('0x1d5a')](_0x3877e3('0x19a'),_0x4efe68)[_0x3877e3('0x1d5a')](_0x3877e3('0x222c'),_0x5d480d)[_0x3877e3('0x1d5a')](_0x3877e3('0x26bb'),_0x3143d5)['controller'](_0x3877e3('0x1ba8'),_0x3dbc7f)[_0x3877e3('0x1d5a')](_0x3877e3('0xef4'),_0x5e3e5c)['controller'](_0x3877e3('0x20d8'),_0x570317);const _0xf09abf=_0x398308['p']+_0x3877e3('0x5be'),_0x5f372e=_0x398308['p']+'src/js/modules/main/apps/tools/views/customDashboards/customDashboards.html/customDashboards-[chunkhash].html',_0x4c06da=_0x398308['p']+_0x3877e3('0x1e66'),_0x159ceb=_0x398308['p']+_0x3877e3('0xb28'),_0x170a23=_0x398308['p']+_0x3877e3('0x1e4'),_0x3e4986=_0x398308['p']+_0x3877e3('0x271d'),_0x47602e=_0x398308['p']+_0x3877e3('0x496'),_0xe30d48=_0x398308['p']+'src/js/modules/main/apps/tools/views/sounds/sounds.html/sounds-[chunkhash].html',_0xf9056d=_0x398308['p']+_0x3877e3('0x2034'),_0x371d6b=_0x398308['p']+_0x3877e3('0xa25'),_0x3faa55=_0x398308['p']+_0x3877e3('0x8f1'),_0x163fee=_0x398308['p']+_0x3877e3('0x1c4f'),_0x19cd62=_0x398308['p']+'src/js/modules/main/apps/tools/views/variables/variables.html/variables-[chunkhash].html',_0x49c389=_0x398308['p']+_0x3877e3('0x1990');_0x156118[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),'$translate',_0x3877e3('0x7f5'),_0x3877e3('0x758'),'userProfileSection','api',_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x156118(_0x1ed4ca,_0x228f1d,_0x17149b,_0x5e7116,_0x2031bc,_0x2588d8,_0x2393c0,_0x12cd91,_0x34018f,_0x19bda0,_0x416e4a,_0x20f504,_0x334b8b,_0x281a0c,_0x4a0b11,_0x25de7c,_0x1ef949){var _0x2d9bc6=_0x3877e3,_0x8f2ef9=this;_0x8f2ef9[_0x2d9bc6('0x2ff')]=_0x25de7c,_0x8f2ef9[_0x2d9bc6('0x21e')]=_0x1ef949,_0x8f2ef9[_0x2d9bc6('0x123f')]=_0x4a0b11['getCurrentUser'](),_0x8f2ef9['cannedAnswers']=_0x34018f||{'count':0x0,'rows':[]},_0x8f2ef9[_0x2d9bc6('0x758')]=_0x19bda0,_0x8f2ef9['userProfileSection']=_0x416e4a&&_0x416e4a['count']==0x1?_0x416e4a[_0x2d9bc6('0x1b33')][0x0]:null,_0x8f2ef9[_0x2d9bc6('0x5ed')]=_0x4a0b11['parseCrudPermissions'](_0x8f2ef9['userProfileSection']?_0x8f2ef9['userProfileSection'][_0x2d9bc6('0x5ed')]:null),_0x8f2ef9['table']=_0x2d9bc6('0x7f5'),_0x8f2ef9[_0x2d9bc6('0x11dc')]='',_0x8f2ef9[_0x2d9bc6('0x18cf')]=null,_0x8f2ef9[_0x2d9bc6('0x70f')]=[],_0x8f2ef9[_0x2d9bc6('0x77')]={'fields':'createdAt,updatedAt,id,key,value,description','sort':_0x2d9bc6('0x33'),'MailAccountId':_0x2d9bc6('0x27a'),'FaxAccountId':_0x2d9bc6('0x27a'),'SmsAccountId':_0x2d9bc6('0x27a'),'OpenchannelAccountId':_0x2d9bc6('0x27a'),'ChatWebsiteId':_0x2d9bc6('0x27a'),'limit':0xa,'page':0x1},_0x8f2ef9['editdialog']=_0x3f7f01,_0x8f2ef9[_0x2d9bc6('0x2593')]=_0x188dd8,_0x8f2ef9[_0x2d9bc6('0xdb1')]=_0x47cf0d,_0x8f2ef9['getCannedAnswers']=_0x41a3ae,_0x8f2ef9[_0x2d9bc6('0x51a')]=_0x5950c6,_0x8f2ef9[_0x2d9bc6('0xaa')]=_0x39b348,_0x8f2ef9[_0x2d9bc6('0x1a14')]=_0x1e3d6e,_0x8f2ef9['deleteSelectedCannedAnswers']=_0x1c77a9,_0x8f2ef9['deselectCannedAnswers']=_0x299cd7,_0x8f2ef9[_0x2d9bc6('0x5bf')]=_0x2ef26c;function _0x3f7f01(_0x539b27,_0x546735){var _0x17a2cb=_0x2d9bc6;_0x2031bc['show']({'controller':_0x17a2cb('0x534'),'controllerAs':'vm','templateUrl':_0x49c389,'parent':angular['element'](_0x2588d8[_0x17a2cb('0x2452')]),'targetEvent':_0x546735,'clickOutsideToClose':!![],'locals':{'cannedAnswer':_0x539b27,'cannedAnswers':_0x8f2ef9['cannedAnswers'][_0x17a2cb('0x1b33')],'license':_0x8f2ef9[_0x17a2cb('0x2ff')],'setting':null,'crudPermissions':_0x8f2ef9[_0x17a2cb('0x5ed')]}});}function _0x188dd8(_0xe7115c,_0x2ff84c){var _0x4c4872=_0x2d9bc6,_0x10d211=_0x2031bc[_0x4c4872('0xa33')]()[_0x4c4872('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x86640f()[_0x4c4872('0x2159')](_0x4c4872('0x25e5'))+'?')[_0x4c4872('0x276b')](_0x4c4872('0x622')+(_0xe7115c[_0x4c4872('0x19fe')]||_0x4c4872('0x25e5'))+''+'\x20will\x20be\x20deleted.')[_0x4c4872('0x7a7')](_0x4c4872('0x2b0'))[_0x4c4872('0x1e6d')](_0x2ff84c)['ok']('OK')[_0x4c4872('0x3b5')](_0x4c4872('0x284b'));_0x2031bc['show'](_0x10d211)[_0x4c4872('0x21ad')](function(){_0x39b348(_0xe7115c);},function(){console['log']('CANCEL');});}var _0x5d36f1=!![],_0x1360e9=0x1;_0x1ed4ca['$watch'](_0x2d9bc6('0x1948'),function(_0x2509c6,_0x283650){var _0x37dd24=_0x2d9bc6;_0x5d36f1?_0x2393c0(function(){_0x5d36f1=![];}):(!_0x283650&&(_0x1360e9=_0x8f2ef9[_0x37dd24('0x77')][_0x37dd24('0x2376')]),_0x2509c6!==_0x283650&&(_0x8f2ef9[_0x37dd24('0x77')][_0x37dd24('0x2376')]=0x1),!_0x2509c6&&(_0x8f2ef9[_0x37dd24('0x77')]['page']=_0x1360e9),_0x8f2ef9[_0x37dd24('0x5b0')]());});function _0x47cf0d(_0x4527e2){var _0x13b0b8=_0x2d9bc6;_0x8f2ef9[_0x13b0b8('0x7f5')]=_0x4527e2||{'count':0x0,'rows':[]};}function _0x41a3ae(){var _0x58d8bc=_0x2d9bc6;_0x8f2ef9[_0x58d8bc('0x77')]['offset']=(_0x8f2ef9['query'][_0x58d8bc('0x2376')]-0x1)*_0x8f2ef9[_0x58d8bc('0x77')]['limit'],_0x4a0b11[_0x58d8bc('0x21de')](_0x58d8bc('0x1bd8'))?_0x8f2ef9[_0x58d8bc('0x71b')]=_0x20f504[_0x58d8bc('0x25e5')][_0x58d8bc('0x595')](_0x8f2ef9['query'],_0x47cf0d)[_0x58d8bc('0x1376')]:(_0x8f2ef9[_0x58d8bc('0x77')]['id']=_0x8f2ef9[_0x58d8bc('0x758')]['id'],_0x8f2ef9[_0x58d8bc('0x77')][_0x58d8bc('0x26ad')]=_0x58d8bc('0x23ab'),_0x8f2ef9[_0x58d8bc('0x71b')]=_0x20f504[_0x58d8bc('0x758')][_0x58d8bc('0x321')](_0x8f2ef9['query'],_0x47cf0d)[_0x58d8bc('0x1376')]);}function _0x5950c6(_0x335c3f,_0x540a03){var _0x59037e=_0x2d9bc6;_0x2031bc[_0x59037e('0x853')]({'controller':_0x59037e('0x534'),'controllerAs':'vm','templateUrl':_0x49c389,'parent':angular[_0x59037e('0x1676')](_0x2588d8[_0x59037e('0x2452')]),'targetEvent':_0x335c3f,'clickOutsideToClose':!![],'locals':{'cannedAnswer':_0x540a03,'cannedAnswers':_0x8f2ef9[_0x59037e('0x7f5')][_0x59037e('0x1b33')],'license':_0x8f2ef9[_0x59037e('0x2ff')],'setting':_0x8f2ef9[_0x59037e('0x21e')],'crudPermissions':_0x8f2ef9[_0x59037e('0x5ed')]}});}function _0x39b348(_0x132f06){var _0x4732be=_0x2d9bc6;_0x20f504['cannedAnswer'][_0x4732be('0x1164')]({'id':_0x132f06['id']})[_0x4732be('0x1376')]['then'](function(){var _0x13038a=_0x4732be;_0x86640f()['remove'](_0x8f2ef9[_0x13038a('0x7f5')][_0x13038a('0x1b33')],{'id':_0x132f06['id']}),_0x8f2ef9[_0x13038a('0x7f5')]['count']-=0x1,!_0x8f2ef9[_0x13038a('0x7f5')][_0x13038a('0x1b33')][_0x13038a('0x577')]&&_0x8f2ef9[_0x13038a('0x5b0')](),_0x281a0c[_0x13038a('0xdb1')]({'title':_0x86640f()[_0x13038a('0x2159')](_0x13038a('0xb57'))+_0x13038a('0xe64'),'msg':_0x132f06[_0x13038a('0x19fe')]?_0x132f06[_0x13038a('0x19fe')]+_0x13038a('0xb4a'):''});})[_0x4732be('0x1c1d')](function(_0x5bebf5){var _0x10fbd3=_0x4732be;if(_0x5bebf5[_0x10fbd3('0x11c2')]&&_0x5bebf5[_0x10fbd3('0x11c2')]['errors']&&_0x5bebf5[_0x10fbd3('0x11c2')][_0x10fbd3('0x1a69')][_0x10fbd3('0x577')]){_0x8f2ef9[_0x10fbd3('0x1a69')]=_0x5bebf5[_0x10fbd3('0x11c2')][_0x10fbd3('0x1a69')]||[{'message':_0x5bebf5[_0x10fbd3('0x174f')](),'type':'SYSTEM:DELETEcannedAnswer'}];for(var _0x30734c=0x0;_0x30734c<_0x5bebf5[_0x10fbd3('0x11c2')][_0x10fbd3('0x1a69')]['length'];_0x30734c++){_0x281a0c[_0x10fbd3('0x2092')]({'title':_0x5bebf5['data']['errors'][_0x30734c][_0x10fbd3('0x7fa')],'msg':_0x5bebf5[_0x10fbd3('0x11c2')][_0x10fbd3('0x1a69')][_0x30734c][_0x10fbd3('0x1224')]});}}else _0x281a0c[_0x10fbd3('0x2092')]({'title':_0x5bebf5['status']?'API:'+_0x5bebf5[_0x10fbd3('0x209')]+_0x10fbd3('0xa99')+_0x5bebf5[_0x10fbd3('0x1808')]:_0x10fbd3('0x895'),'msg':_0x5bebf5[_0x10fbd3('0x11c2')]?JSON[_0x10fbd3('0x25e')](_0x5bebf5['data'][_0x10fbd3('0x1224')]):_0x5bebf5[_0x10fbd3('0x1224')]||_0x5bebf5[_0x10fbd3('0x174f')]()});});}function _0x1e3d6e(){var _0x6b7ae9=_0x2d9bc6,_0x5728b4=angular[_0x6b7ae9('0xd75')](_0x8f2ef9[_0x6b7ae9('0x70f')]);return _0x8f2ef9[_0x6b7ae9('0x70f')]=[],_0x5728b4;}function _0x1c77a9(_0x13d494){var _0x18bce8=_0x2d9bc6,_0x10a3b0=_0x2031bc[_0x18bce8('0xa33')]()[_0x18bce8('0x4b4')](_0x18bce8('0xebd'))[_0x18bce8('0x276b')](_0x18bce8('0x622')+_0x8f2ef9[_0x18bce8('0x70f')][_0x18bce8('0x577')]+_0x18bce8('0xd74')+_0x18bce8('0x25e0'))['ariaLabel']('delete\x20CannedAnswers')['targetEvent'](_0x13d494)['ok']('OK')[_0x18bce8('0x3b5')](_0x18bce8('0x284b'));_0x2031bc[_0x18bce8('0x853')](_0x10a3b0)[_0x18bce8('0x21ad')](function(){var _0x3af3e7=_0x18bce8;_0x8f2ef9['selectedCannedAnswers']['forEach'](function(_0x376522){_0x39b348(_0x376522);}),_0x8f2ef9[_0x3af3e7('0x70f')]=[];});}function _0x299cd7(){var _0x18f9b3=_0x2d9bc6;_0x8f2ef9[_0x18f9b3('0x70f')]=[];}function _0x2ef26c(){var _0x45ebb1=_0x2d9bc6;_0x8f2ef9[_0x45ebb1('0x70f')]=_0x8f2ef9['cannedAnswers'][_0x45ebb1('0x1b33')];}}const _0xad0305=_0x156118;_0x37dcfc[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x7f5'),_0x3877e3('0x25e5'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'license',_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x37dcfc(_0x355dec,_0x3ee469,_0x2a8890,_0x3a26ab,_0x11b7d7,_0x567271,_0x40c4ec,_0x44c508,_0x31cd70,_0xf2b702,_0x3e8cd0,_0x58b12a,_0x57cd19,_0x1839f1){var _0xd5e3f1=_0x3877e3,_0x27e0e8=this;_0x27e0e8[_0xd5e3f1('0x123f')]=_0x3e8cd0[_0xd5e3f1('0x15ed')](),_0x27e0e8[_0xd5e3f1('0x1a69')]=[],_0x27e0e8[_0xd5e3f1('0x21e')]=_0x57cd19,_0x27e0e8['license']=_0x58b12a,_0x27e0e8[_0xd5e3f1('0x5ed')]=_0x1839f1,_0x27e0e8[_0xd5e3f1('0x126a')]={},_0x27e0e8[_0xd5e3f1('0x1432')]=_0x27e0e8['setting']&&_0x27e0e8[_0xd5e3f1('0x21e')][_0xd5e3f1('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x27e0e8[_0xd5e3f1('0x4b4')]='TOOLS.EDIT_CANNEDANSWER',_0x27e0e8[_0xd5e3f1('0x25e5')]=angular[_0xd5e3f1('0xd75')](_0x31cd70),_0x27e0e8[_0xd5e3f1('0x7f5')]=_0x44c508,_0x27e0e8[_0xd5e3f1('0x188f')]=![];!_0x27e0e8[_0xd5e3f1('0x25e5')]&&(_0x27e0e8[_0xd5e3f1('0x25e5')]={},_0x27e0e8[_0xd5e3f1('0x4b4')]=_0xd5e3f1('0x879'),_0x27e0e8['newCannedAnswer']=!![]);_0x27e0e8[_0xd5e3f1('0x81')]=_0x11f98c,_0x27e0e8['saveCannedAnswer']=_0xcaeaca,_0x27e0e8[_0xd5e3f1('0xaa')]=_0x350842,_0x27e0e8[_0xd5e3f1('0x279')]=_0x1a5b25,_0x27e0e8[_0xd5e3f1('0x167')]=_0x15ff1d;function _0x11f98c(){var _0x1e7a0e=_0xd5e3f1;_0x27e0e8[_0x1e7a0e('0x1a69')]=[],_0xf2b702[_0x1e7a0e('0x25e5')]['save'](_0x27e0e8[_0x1e7a0e('0x25e5')])['$promise']['then'](function(_0x2a20e7){var _0x1f51e7=_0x1e7a0e;_0x27e0e8[_0x1f51e7('0x7f5')][_0x1f51e7('0xd0c')](_0x2a20e7[_0x1f51e7('0x3bc')]()),_0x40c4ec['success']({'title':_0x1f51e7('0x1437'),'msg':_0x27e0e8[_0x1f51e7('0x25e5')][_0x1f51e7('0x19fe')]?_0x27e0e8[_0x1f51e7('0x25e5')][_0x1f51e7('0x19fe')]+'\x20has\x20been\x20created!':''}),_0x15ff1d(_0x2a20e7);})[_0x1e7a0e('0x1c1d')](function(_0x373eed){var _0x5852d9=_0x1e7a0e;if(_0x373eed[_0x5852d9('0x11c2')]&&_0x373eed['data'][_0x5852d9('0x1a69')]&&_0x373eed[_0x5852d9('0x11c2')]['errors'][_0x5852d9('0x577')]){_0x27e0e8[_0x5852d9('0x1a69')]=_0x373eed[_0x5852d9('0x11c2')][_0x5852d9('0x1a69')]||[{'message':_0x373eed[_0x5852d9('0x174f')](),'type':_0x5852d9('0x545')}];for(var _0x3e37df=0x0;_0x3e37df<_0x373eed[_0x5852d9('0x11c2')][_0x5852d9('0x1a69')][_0x5852d9('0x577')];_0x3e37df+=0x1){_0x40c4ec[_0x5852d9('0x2092')]({'title':_0x373eed['data'][_0x5852d9('0x1a69')][_0x3e37df][_0x5852d9('0x7fa')],'msg':_0x373eed[_0x5852d9('0x11c2')][_0x5852d9('0x1a69')][_0x3e37df][_0x5852d9('0x1224')]});}}else _0x40c4ec[_0x5852d9('0x2092')]({'title':_0x373eed[_0x5852d9('0x209')]?_0x5852d9('0x22d')+_0x373eed[_0x5852d9('0x209')]+_0x5852d9('0xa99')+_0x373eed['statusText']:'api.cannedAnswer.save','msg':_0x373eed['data']?JSON['stringify'](_0x373eed[_0x5852d9('0x11c2')][_0x5852d9('0x1224')]):_0x373eed[_0x5852d9('0x174f')]()});});}function _0xcaeaca(){var _0x31e592=_0xd5e3f1;_0x27e0e8[_0x31e592('0x1a69')]=[],_0xf2b702['cannedAnswer'][_0x31e592('0x5ef')]({'id':_0x27e0e8[_0x31e592('0x25e5')]['id']},_0x27e0e8['cannedAnswer'])[_0x31e592('0x1376')][_0x31e592('0x21ad')](function(_0x4fe8a4){var _0x57787b=_0x31e592,_0x2fda17=_0x86640f()[_0x57787b('0x1d2e')](_0x27e0e8[_0x57787b('0x7f5')],{'id':_0x4fe8a4['id']});_0x2fda17&&_0x86640f()['merge'](_0x2fda17,_0x86640f()['pick'](_0x4fe8a4[_0x57787b('0x3bc')](),_0x86640f()[_0x57787b('0x223b')](_0x2fda17))),_0x40c4ec[_0x57787b('0xdb1')]({'title':'CannedAnswer\x20properly\x20saved!','msg':_0x27e0e8[_0x57787b('0x25e5')][_0x57787b('0x19fe')]?_0x27e0e8[_0x57787b('0x25e5')][_0x57787b('0x19fe')]+_0x57787b('0x2249'):''}),_0x15ff1d(_0x4fe8a4);})[_0x31e592('0x1c1d')](function(_0x504fcd){var _0x19dac7=_0x31e592;if(_0x504fcd[_0x19dac7('0x11c2')]&&_0x504fcd[_0x19dac7('0x11c2')][_0x19dac7('0x1a69')]&&_0x504fcd[_0x19dac7('0x11c2')][_0x19dac7('0x1a69')][_0x19dac7('0x577')]){_0x27e0e8[_0x19dac7('0x1a69')]=_0x504fcd['data']['errors']||[{'message':_0x504fcd[_0x19dac7('0x174f')](),'type':_0x19dac7('0x129c')}];for(var _0x38ac1b=0x0;_0x38ac1b<_0x504fcd[_0x19dac7('0x11c2')][_0x19dac7('0x1a69')][_0x19dac7('0x577')];_0x38ac1b++){_0x40c4ec[_0x19dac7('0x2092')]({'title':_0x504fcd[_0x19dac7('0x11c2')][_0x19dac7('0x1a69')][_0x38ac1b][_0x19dac7('0x7fa')],'msg':_0x504fcd[_0x19dac7('0x11c2')]['errors'][_0x38ac1b]['message']});}}else _0x40c4ec['error']({'title':_0x504fcd['status']?_0x19dac7('0x22d')+_0x504fcd['status']+_0x19dac7('0xa99')+_0x504fcd[_0x19dac7('0x1808')]:'api.cannedAnswer.update','msg':_0x504fcd['data']?JSON[_0x19dac7('0x25e')](_0x504fcd[_0x19dac7('0x11c2')][_0x19dac7('0x1224')]):_0x504fcd[_0x19dac7('0x174f')]()});});}function _0x350842(_0x24558f){var _0x2e9d8b=_0xd5e3f1;_0x27e0e8[_0x2e9d8b('0x1a69')]=[];var _0x2c294e=_0x3a26ab[_0x2e9d8b('0xa33')]()['title'](_0x2e9d8b('0x196b'))[_0x2e9d8b('0x13fb')](_0x2e9d8b('0x1f1d'))['ariaLabel']('Delete\x20CannedAnswer')['ok'](_0x2e9d8b('0xbfd'))[_0x2e9d8b('0x3b5')](_0x2e9d8b('0x1f40'))[_0x2e9d8b('0x1e6d')](_0x24558f);_0x3a26ab['show'](_0x2c294e)[_0x2e9d8b('0x21ad')](function(){var _0x9302e8=_0x2e9d8b;_0xf2b702[_0x9302e8('0x25e5')]['delete']({'id':_0x27e0e8[_0x9302e8('0x25e5')]['id']})[_0x9302e8('0x1376')][_0x9302e8('0x21ad')](function(){var _0x595cd5=_0x9302e8;_0x86640f()[_0x595cd5('0x16a2')](_0x27e0e8[_0x595cd5('0x7f5')],{'id':_0x27e0e8['cannedAnswer']['id']}),_0x40c4ec['success']({'title':'CannedAnswer\x20properly\x20deleted!','msg':(_0x27e0e8[_0x595cd5('0x25e5')][_0x595cd5('0x19fe')]||_0x595cd5('0x25e5'))+_0x595cd5('0xb4a')}),_0x15ff1d(_0x27e0e8[_0x595cd5('0x25e5')]);})['catch'](function(_0x631e21){var _0x37e68b=_0x9302e8;if(_0x631e21[_0x37e68b('0x11c2')]&&_0x631e21[_0x37e68b('0x11c2')][_0x37e68b('0x1a69')]&&_0x631e21[_0x37e68b('0x11c2')][_0x37e68b('0x1a69')][_0x37e68b('0x577')]){_0x27e0e8[_0x37e68b('0x1a69')]=_0x631e21[_0x37e68b('0x11c2')][_0x37e68b('0x1a69')]||[{'message':_0x631e21['toString'](),'type':_0x37e68b('0x2545')}];for(var _0x447a0e=0x0;_0x447a0e<_0x631e21[_0x37e68b('0x11c2')][_0x37e68b('0x1a69')][_0x37e68b('0x577')];_0x447a0e++){_0x40c4ec['error']({'title':_0x631e21[_0x37e68b('0x11c2')][_0x37e68b('0x1a69')][_0x447a0e][_0x37e68b('0x7fa')],'msg':_0x631e21['data'][_0x37e68b('0x1a69')][_0x447a0e][_0x37e68b('0x1224')]});}}else _0x40c4ec['error']({'title':_0x631e21[_0x37e68b('0x209')]?_0x37e68b('0x22d')+_0x631e21[_0x37e68b('0x209')]+'\x20-\x20'+_0x631e21['statusText']:_0x37e68b('0x2545'),'msg':_0x631e21[_0x37e68b('0x11c2')]?JSON[_0x37e68b('0x25e')](_0x631e21[_0x37e68b('0x11c2')][_0x37e68b('0x1224')]):_0x631e21[_0x37e68b('0x1224')]||_0x631e21['toString']()});});},function(){});}function _0x1a5b25(_0x1b5b93){return _0x1b5b93===null?undefined:new Date(_0x1b5b93);}function _0x15ff1d(_0x576bca){var _0x4652ce=_0xd5e3f1;_0x3a26ab[_0x4652ce('0x1c24')](_0x576bca);}}const _0x5a6688=_0x37dcfc;_0x3dfad9[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$state',_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),'toasty','customDashboards',_0x3877e3('0x261b'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting',_0x3877e3('0x5ed')];function _0x3dfad9(_0x1d6e6c,_0x3dee0c,_0x40232f,_0x45a598,_0x31198a,_0x22393,_0x23e9a0,_0x15533f,_0x6748ac,_0x53585b,_0x212ff5,_0x25adc0,_0x1c05d2,_0x18d6aa){var _0x5ddb43=_0x3877e3,_0x345080=this;_0x345080[_0x5ddb43('0x123f')]=_0x212ff5[_0x5ddb43('0x15ed')](),_0x345080[_0x5ddb43('0x1a69')]=[],_0x345080[_0x5ddb43('0x21e')]=_0x1c05d2,_0x345080[_0x5ddb43('0x2ff')]=_0x25adc0,_0x345080[_0x5ddb43('0x5ed')]=_0x18d6aa,_0x345080[_0x5ddb43('0x126a')]={},_0x345080[_0x5ddb43('0x1432')]=_0x345080[_0x5ddb43('0x21e')]&&_0x345080['setting'][_0x5ddb43('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x345080[_0x5ddb43('0x4b4')]=_0x5ddb43('0xd72'),_0x345080['customDashboard']=angular[_0x5ddb43('0xd75')](_0x6748ac),_0x345080[_0x5ddb43('0x1298')]=_0x15533f,_0x345080[_0x5ddb43('0xca7')]=![];!_0x345080['customDashboard']&&(_0x345080[_0x5ddb43('0x261b')]={},_0x345080['title']=_0x5ddb43('0x2842'),_0x345080[_0x5ddb43('0xca7')]=!![]);_0x345080[_0x5ddb43('0x5f3')]=_0x4ac24a,_0x345080[_0x5ddb43('0xe04')]=_0xdea6b8,_0x345080[_0x5ddb43('0x1d08')]=_0x1e56cc,_0x345080[_0x5ddb43('0x279')]=_0x53f1bc,_0x345080[_0x5ddb43('0x167')]=_0x23853f;function _0x4ac24a(){var _0x922d5a=_0x5ddb43;_0x345080['errors']=[],_0x53585b['dashboard']['save'](_0x345080[_0x922d5a('0x261b')])[_0x922d5a('0x1376')][_0x922d5a('0x21ad')](function(_0x4cf01c){var _0x5929e5=_0x922d5a;_0x345080['customDashboards']['unshift'](_0x4cf01c[_0x5929e5('0x3bc')]()),_0x23e9a0[_0x5929e5('0xdb1')]({'title':_0x5929e5('0x1c96'),'msg':_0x345080[_0x5929e5('0x261b')][_0x5929e5('0x19fe')]?_0x345080[_0x5929e5('0x261b')]['name']+_0x5929e5('0x1694'):''}),_0x23853f(_0x4cf01c);})['catch'](function(_0x28bdce){var _0x11923a=_0x922d5a;if(_0x28bdce[_0x11923a('0x11c2')]&&_0x28bdce['data'][_0x11923a('0x1a69')]&&_0x28bdce['data'][_0x11923a('0x1a69')][_0x11923a('0x577')]){_0x345080[_0x11923a('0x1a69')]=_0x28bdce['data']['errors']||[{'message':_0x28bdce['toString'](),'type':_0x11923a('0x37f')}];for(var _0x42a91c=0x0;_0x42a91c<_0x28bdce[_0x11923a('0x11c2')][_0x11923a('0x1a69')][_0x11923a('0x577')];_0x42a91c+=0x1){_0x23e9a0[_0x11923a('0x2092')]({'title':_0x28bdce[_0x11923a('0x11c2')]['errors'][_0x42a91c][_0x11923a('0x7fa')],'msg':_0x28bdce[_0x11923a('0x11c2')]['errors'][_0x42a91c][_0x11923a('0x1224')]});}}else _0x23e9a0[_0x11923a('0x2092')]({'title':_0x28bdce[_0x11923a('0x209')]?_0x11923a('0x22d')+_0x28bdce[_0x11923a('0x209')]+_0x11923a('0xa99')+_0x28bdce['statusText']:_0x11923a('0x37f'),'msg':_0x28bdce[_0x11923a('0x11c2')]?JSON[_0x11923a('0x25e')](_0x28bdce[_0x11923a('0x11c2')][_0x11923a('0x1224')]):_0x28bdce[_0x11923a('0x174f')]()});});}function _0xdea6b8(){var _0xf50078=_0x5ddb43;_0x345080[_0xf50078('0x1a69')]=[],_0x53585b['dashboard'][_0xf50078('0x5ef')]({'id':_0x345080[_0xf50078('0x261b')]['id']},_0x345080['customDashboard'])[_0xf50078('0x1376')][_0xf50078('0x21ad')](function(_0x2426ce){var _0x3afe3a=_0xf50078,_0x520664=_0x86640f()[_0x3afe3a('0x1d2e')](_0x345080[_0x3afe3a('0x1298')],{'id':_0x2426ce['id']});_0x520664&&_0x86640f()[_0x3afe3a('0xd0e')](_0x520664,_0x86640f()['pick'](_0x2426ce[_0x3afe3a('0x3bc')](),_0x86640f()[_0x3afe3a('0x223b')](_0x520664))),_0x23e9a0['success']({'title':_0x3afe3a('0x459'),'msg':_0x345080[_0x3afe3a('0x261b')][_0x3afe3a('0x19fe')]?_0x345080[_0x3afe3a('0x261b')][_0x3afe3a('0x19fe')]+_0x3afe3a('0x2249'):''}),_0x23853f(_0x2426ce);})[_0xf50078('0x1c1d')](function(_0x333966){var _0x5dc3da=_0xf50078;if(_0x333966[_0x5dc3da('0x11c2')]&&_0x333966['data']['errors']&&_0x333966[_0x5dc3da('0x11c2')][_0x5dc3da('0x1a69')][_0x5dc3da('0x577')]){_0x345080['errors']=_0x333966[_0x5dc3da('0x11c2')][_0x5dc3da('0x1a69')]||[{'message':_0x333966[_0x5dc3da('0x174f')](),'type':_0x5dc3da('0xc4e')}];for(var _0x3bbab3=0x0;_0x3bbab3<_0x333966[_0x5dc3da('0x11c2')][_0x5dc3da('0x1a69')][_0x5dc3da('0x577')];_0x3bbab3++){_0x23e9a0['error']({'title':_0x333966['data']['errors'][_0x3bbab3]['type'],'msg':_0x333966[_0x5dc3da('0x11c2')][_0x5dc3da('0x1a69')][_0x3bbab3][_0x5dc3da('0x1224')]});}}else _0x23e9a0['error']({'title':_0x333966['status']?_0x5dc3da('0x22d')+_0x333966['status']+_0x5dc3da('0xa99')+_0x333966['statusText']:_0x5dc3da('0xc4e'),'msg':_0x333966[_0x5dc3da('0x11c2')]?JSON[_0x5dc3da('0x25e')](_0x333966[_0x5dc3da('0x11c2')][_0x5dc3da('0x1224')]):_0x333966[_0x5dc3da('0x174f')]()});});}function _0x1e56cc(_0x3003d9){var _0x2bacad=_0x5ddb43;_0x345080[_0x2bacad('0x1a69')]=[];var _0x197d03=_0x45a598[_0x2bacad('0xa33')]()[_0x2bacad('0x4b4')](_0x2bacad('0x196b'))['content']('The\x20customDashboard\x20will\x20be\x20deleted.')[_0x2bacad('0x7a7')](_0x2bacad('0x1909'))['ok'](_0x2bacad('0xbfd'))[_0x2bacad('0x3b5')](_0x2bacad('0x1f40'))['targetEvent'](_0x3003d9);_0x45a598[_0x2bacad('0x853')](_0x197d03)[_0x2bacad('0x21ad')](function(){var _0x55772e=_0x2bacad;_0x53585b['dashboard'][_0x55772e('0x1164')]({'id':_0x345080[_0x55772e('0x261b')]['id']})[_0x55772e('0x1376')][_0x55772e('0x21ad')](function(){var _0x193015=_0x55772e;_0x86640f()[_0x193015('0x16a2')](_0x345080[_0x193015('0x1298')],{'id':_0x345080[_0x193015('0x261b')]['id']}),_0x23e9a0[_0x193015('0xdb1')]({'title':_0x193015('0x1c5d'),'msg':(_0x345080[_0x193015('0x261b')][_0x193015('0x19fe')]||_0x193015('0x261b'))+_0x193015('0xb4a')}),_0x23853f(_0x345080[_0x193015('0x261b')]);})[_0x55772e('0x1c1d')](function(_0x60ff12){var _0x3bcd83=_0x55772e;if(_0x60ff12[_0x3bcd83('0x11c2')]&&_0x60ff12[_0x3bcd83('0x11c2')][_0x3bcd83('0x1a69')]&&_0x60ff12[_0x3bcd83('0x11c2')][_0x3bcd83('0x1a69')][_0x3bcd83('0x577')]){_0x345080[_0x3bcd83('0x1a69')]=_0x60ff12[_0x3bcd83('0x11c2')][_0x3bcd83('0x1a69')]||[{'message':_0x60ff12[_0x3bcd83('0x174f')](),'type':_0x3bcd83('0x319')}];for(var _0x1cc2fa=0x0;_0x1cc2fa<_0x60ff12[_0x3bcd83('0x11c2')][_0x3bcd83('0x1a69')][_0x3bcd83('0x577')];_0x1cc2fa++){_0x23e9a0['error']({'title':_0x60ff12[_0x3bcd83('0x11c2')]['errors'][_0x1cc2fa][_0x3bcd83('0x7fa')],'msg':_0x60ff12['data']['errors'][_0x1cc2fa]['message']});}}else _0x23e9a0['error']({'title':_0x60ff12[_0x3bcd83('0x209')]?'API:'+_0x60ff12[_0x3bcd83('0x209')]+'\x20-\x20'+_0x60ff12['statusText']:_0x3bcd83('0x319'),'msg':_0x60ff12['data']?JSON[_0x3bcd83('0x25e')](_0x60ff12['data'][_0x3bcd83('0x1224')]):_0x60ff12['message']||_0x60ff12[_0x3bcd83('0x174f')]()});});},function(){});}function _0x53f1bc(_0x35927f){return _0x35927f===null?undefined:new Date(_0x35927f);}function _0x23853f(_0x657f13){_0x45a598['hide'](_0x657f13);}}const _0x215003=_0x3dfad9,_0x1a4309=_0x398308['p']+_0x3877e3('0x8d7');_0xdab2d9['$inject']=['$scope','$window',_0x3877e3('0xa9f'),_0x3877e3('0x2828'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),'$timeout','$translate',_0x3877e3('0x1298'),_0x3877e3('0x758'),_0x3877e3('0xab4'),'api','msUtils',_0x3877e3('0x1908'),_0x3877e3('0x15bc'),'license',_0x3877e3('0x21e')];function _0xdab2d9(_0x1f1dff,_0x4d505f,_0x4c6a89,_0x3c8c93,_0x89d0e7,_0x166025,_0x9fb058,_0x377be5,_0x4816b9,_0x36cee2,_0x131094,_0x47959f,_0x184991,_0x2a1a41,_0x494d09,_0x10a91d,_0x2ea8ac){var _0x5b05fc=_0x3877e3,_0xacb173=this;_0xacb173[_0x5b05fc('0x2ff')]=_0x10a91d,_0xacb173['setting']=_0x2ea8ac,_0xacb173[_0x5b05fc('0x123f')]=_0x494d09[_0x5b05fc('0x15ed')](),_0xacb173[_0x5b05fc('0x1298')]=_0x4816b9||{'count':0x0,'rows':[]},_0xacb173['userProfile']=_0x36cee2,_0xacb173[_0x5b05fc('0xab4')]=_0x131094&&_0x131094['count']==0x1?_0x131094[_0x5b05fc('0x1b33')][0x0]:null,_0xacb173[_0x5b05fc('0x5ed')]=_0x494d09[_0x5b05fc('0x1778')](_0xacb173[_0x5b05fc('0xab4')]?_0xacb173['userProfileSection']['crudPermissions']:null),_0xacb173[_0x5b05fc('0x1897')]=_0x5b05fc('0x1298'),_0xacb173[_0x5b05fc('0x11dc')]='',_0xacb173['listOrderAsc']=null,_0xacb173[_0x5b05fc('0x2624')]=[],_0xacb173[_0x5b05fc('0x77')]={'fields':_0x5b05fc('0x145a'),'sort':_0x5b05fc('0x33'),'limit':0xa,'page':0x1},_0xacb173[_0x5b05fc('0x1c88')]=_0x53fb31,_0xacb173[_0x5b05fc('0x8c1')]=_0x59c7ea,_0xacb173['deleteconfirm']=_0x9c6a8,_0xacb173[_0x5b05fc('0xdb1')]=_0x23645f,_0xacb173['getCustomDashboards']=_0x12ede9,_0xacb173[_0x5b05fc('0x1d36')]=_0x5ccf7e,_0xacb173[_0x5b05fc('0x1d08')]=_0x1aff98,_0xacb173['exportSelectedCustomDashboards']=_0x58a05e,_0xacb173[_0x5b05fc('0x2428')]=_0x1e4a0a,_0xacb173[_0x5b05fc('0x269e')]=_0x43a79a,_0xacb173['selectAllCustomDashboards']=_0x7b0773;function _0x53fb31(_0x2271e6){var _0x3e984b=_0x5b05fc;_0x4c6a89['go']('app.tools.customDashboards.edit',{'id':_0x2271e6['id'],'customDashboard':_0x2271e6,'crudPermissions':_0xacb173[_0x3e984b('0x5ed')]});}function _0x59c7ea(_0x49d921){var _0x2979c8=_0x5b05fc;_0x4c6a89['go'](_0x2979c8('0x12c6'),{'id':_0x49d921['id']});}function _0x9c6a8(_0x2d5272,_0x5c83a7){var _0x4e5841=_0x5b05fc,_0x2be6ef=_0x89d0e7[_0x4e5841('0xa33')]()[_0x4e5841('0x4b4')](_0x4e5841('0x25b6')+_0x86640f()[_0x4e5841('0x2159')](_0x4e5841('0x261b'))+'?')['htmlContent'](_0x4e5841('0x622')+(_0x2d5272[_0x4e5841('0x19fe')]||'customDashboard')+_0x4e5841('0x2135')+'\x20will\x20be\x20deleted.')[_0x4e5841('0x7a7')](_0x4e5841('0x1ef6'))['targetEvent'](_0x5c83a7)['ok']('OK')[_0x4e5841('0x3b5')]('CANCEL');_0x89d0e7[_0x4e5841('0x853')](_0x2be6ef)[_0x4e5841('0x21ad')](function(){_0x1aff98(_0x2d5272);},function(){var _0x12ede1=_0x4e5841;console[_0x12ede1('0x6fb')]('CANCEL');});}var _0x243de0=!![],_0x23d995=0x1;_0x1f1dff['$watch'](_0x5b05fc('0x1948'),function(_0x2a2b49,_0x43e7cd){var _0x265eb0=_0x5b05fc;_0x243de0?_0x9fb058(function(){_0x243de0=![];}):(!_0x43e7cd&&(_0x23d995=_0xacb173[_0x265eb0('0x77')][_0x265eb0('0x2376')]),_0x2a2b49!==_0x43e7cd&&(_0xacb173['query']['page']=0x1),!_0x2a2b49&&(_0xacb173[_0x265eb0('0x77')][_0x265eb0('0x2376')]=_0x23d995),_0xacb173['getCustomDashboards']());});function _0x23645f(_0x43bc2f){var _0x162bc9=_0x5b05fc;_0xacb173[_0x162bc9('0x1298')]=_0x43bc2f||{'count':0x0,'rows':[]};}function _0x12ede9(){var _0xd3af73=_0x5b05fc;_0xacb173[_0xd3af73('0x77')][_0xd3af73('0x15a5')]=(_0xacb173[_0xd3af73('0x77')][_0xd3af73('0x2376')]-0x1)*_0xacb173['query'][_0xd3af73('0x1f4a')],_0x494d09['hasRole'](_0xd3af73('0x1bd8'))?_0xacb173[_0xd3af73('0x71b')]=_0x47959f[_0xd3af73('0xaff')]['get'](_0xacb173['query'],_0x23645f)[_0xd3af73('0x1376')]:(_0xacb173[_0xd3af73('0x77')]['id']=_0xacb173[_0xd3af73('0x758')]['id'],_0xacb173[_0xd3af73('0x77')][_0xd3af73('0x26ad')]=_0xd3af73('0x18ce'),_0xacb173[_0xd3af73('0x71b')]=_0x47959f[_0xd3af73('0x758')][_0xd3af73('0x321')](_0xacb173['query'],_0x23645f)['$promise']);}function _0x5ccf7e(_0x493140,_0x24e30f){var _0x2b6c93=_0x5b05fc;_0x89d0e7[_0x2b6c93('0x853')]({'controller':_0x2b6c93('0x76e'),'controllerAs':'vm','templateUrl':_0x1a4309,'parent':angular['element'](_0x166025[_0x2b6c93('0x2452')]),'targetEvent':_0x493140,'clickOutsideToClose':!![],'locals':{'customDashboard':_0x24e30f,'customDashboards':_0xacb173['customDashboards']['rows'],'license':_0xacb173[_0x2b6c93('0x2ff')],'setting':_0xacb173[_0x2b6c93('0x21e')],'crudPermissions':_0xacb173[_0x2b6c93('0x5ed')]}});}function _0x1aff98(_0x5edc5d){var _0x257556=_0x5b05fc;_0x47959f[_0x257556('0xaff')][_0x257556('0x1164')]({'id':_0x5edc5d['id']})[_0x257556('0x1376')][_0x257556('0x21ad')](function(){var _0x5cf279=_0x257556;_0x86640f()['remove'](_0xacb173[_0x5cf279('0x1298')]['rows'],{'id':_0x5edc5d['id']}),_0xacb173[_0x5cf279('0x1298')][_0x5cf279('0x205f')]-=0x1,!_0xacb173['customDashboards'][_0x5cf279('0x1b33')][_0x5cf279('0x577')]&&_0xacb173[_0x5cf279('0x26b2')](),_0x2a1a41[_0x5cf279('0xdb1')]({'title':_0x86640f()[_0x5cf279('0x2159')]('CustomDashboard')+'\x20deleted!','msg':_0x5edc5d[_0x5cf279('0x19fe')]?_0x5edc5d[_0x5cf279('0x19fe')]+_0x5cf279('0xb4a'):''});})['catch'](function(_0x141329){var _0xc0cb7e=_0x257556;if(_0x141329['data']&&_0x141329[_0xc0cb7e('0x11c2')][_0xc0cb7e('0x1a69')]&&_0x141329[_0xc0cb7e('0x11c2')]['errors']['length']){_0xacb173[_0xc0cb7e('0x1a69')]=_0x141329[_0xc0cb7e('0x11c2')][_0xc0cb7e('0x1a69')]||[{'message':_0x141329['toString'](),'type':'SYSTEM:DELETEdashboard'}];for(var _0x219fb3=0x0;_0x219fb3<_0x141329['data'][_0xc0cb7e('0x1a69')][_0xc0cb7e('0x577')];_0x219fb3++){_0x2a1a41['error']({'title':_0x141329['data'][_0xc0cb7e('0x1a69')][_0x219fb3][_0xc0cb7e('0x7fa')],'msg':_0x141329['data'][_0xc0cb7e('0x1a69')][_0x219fb3][_0xc0cb7e('0x1224')]});}}else _0x2a1a41[_0xc0cb7e('0x2092')]({'title':_0x141329[_0xc0cb7e('0x209')]?_0xc0cb7e('0x22d')+_0x141329['status']+_0xc0cb7e('0xa99')+_0x141329[_0xc0cb7e('0x1808')]:_0xc0cb7e('0x1e71'),'msg':_0x141329[_0xc0cb7e('0x11c2')]?JSON['stringify'](_0x141329[_0xc0cb7e('0x11c2')][_0xc0cb7e('0x1224')]):_0x141329[_0xc0cb7e('0x1224')]||_0x141329[_0xc0cb7e('0x174f')]()});});}function _0x58a05e(){var _0x1a3e40=_0x5b05fc,_0x4b3c4b=angular['copy'](_0xacb173[_0x1a3e40('0x2624')]);return _0xacb173[_0x1a3e40('0x2624')]=[],_0x4b3c4b;}function _0x1e4a0a(_0x407b56){var _0x50de13=_0x5b05fc,_0x3acd1b=_0x89d0e7[_0x50de13('0xa33')]()[_0x50de13('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20customDashboards?')['htmlContent'](_0x50de13('0x622')+_0xacb173[_0x50de13('0x2624')][_0x50de13('0x577')]+'\x20selected
'+'\x20will\x20be\x20deleted.')[_0x50de13('0x7a7')]('delete\x20CustomDashboards')[_0x50de13('0x1e6d')](_0x407b56)['ok']('OK')[_0x50de13('0x3b5')](_0x50de13('0x284b'));_0x89d0e7[_0x50de13('0x853')](_0x3acd1b)[_0x50de13('0x21ad')](function(){var _0x1e1158=_0x50de13;_0xacb173[_0x1e1158('0x2624')][_0x1e1158('0x1a52')](function(_0x38a69e){_0x1aff98(_0x38a69e);}),_0xacb173[_0x1e1158('0x2624')]=[];});}function _0x43a79a(){var _0x994f47=_0x5b05fc;_0xacb173[_0x994f47('0x2624')]=[];}function _0x7b0773(){var _0x2f994e=_0x5b05fc;_0xacb173[_0x2f994e('0x2624')]=_0xacb173[_0x2f994e('0x1298')][_0x2f994e('0x1b33')];}}const _0x16e997=_0xdab2d9;_0x59b109[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),_0x3877e3('0xa9f'),_0x3877e3('0x1908'),'api',_0x3877e3('0x261b'),_0x3877e3('0x1298'),_0x3877e3('0x13c1')];function _0x59b109(_0x155755,_0xf2b7e3,_0x596bff,_0x3ddfc4,_0x2a2c51,_0x3063ec,_0x5b6fc1){var _0x3713bf=_0x3877e3,_0x3e11ae=this;_0x3e11ae['newCustomDashboard']=!![],_0x3e11ae[_0x3713bf('0x261b')]=angular['copy'](_0x2a2c51),_0x3e11ae[_0x3713bf('0x1298')]=_0x3063ec,_0x3e11ae[_0x3713bf('0x4b4')]=_0x5b6fc1['instant'](_0x3713bf('0x8f5'));_0x2a2c51&&_0x2a2c51[_0x3713bf('0x19fe')]&&(_0x3e11ae[_0x3713bf('0x4b4')]+=':\x20'+_0x2a2c51['name']);_0x3e11ae[_0x3713bf('0x147e')]=_0x3b6760,_0x3e11ae[_0x3713bf('0x167')]=_0x189efd;function _0x3b6760(){var _0x3ce1e8=_0x3713bf;return _0x3ddfc4[_0x3ce1e8('0xaff')]['clone']({'id':_0x2a2c51['id'],'includeAll':!![]},_0x3e11ae[_0x3ce1e8('0x261b')])[_0x3ce1e8('0x1376')][_0x3ce1e8('0x21ad')](function(_0x1b6c6b){var _0x4b4be5=_0x3ce1e8;_0x3e11ae[_0x4b4be5('0x1298')]['unshift'](_0x1b6c6b[_0x4b4be5('0x3bc')]()),_0x596bff[_0x4b4be5('0xdb1')]({'title':'CustomDashboard\x20properly\x20cloned','msg':_0x3e11ae[_0x4b4be5('0x261b')][_0x4b4be5('0x19fe')]?_0x3e11ae[_0x4b4be5('0x261b')]['name']+_0x4b4be5('0x1e9f'):''}),_0xf2b7e3['go'](_0x4b4be5('0xb87'),{'id':_0x1b6c6b['id']}),_0x189efd(_0x1b6c6b);})[_0x3ce1e8('0x1c1d')](function(_0x173aa0){var _0x3a499d=_0x3ce1e8;if(_0x173aa0[_0x3a499d('0x11c2')]&&_0x173aa0[_0x3a499d('0x11c2')][_0x3a499d('0x1a69')]&&_0x173aa0[_0x3a499d('0x11c2')][_0x3a499d('0x1a69')]['length']){_0x3e11ae[_0x3a499d('0x1a69')]=_0x173aa0['data'][_0x3a499d('0x1a69')]||[{'message':_0x173aa0[_0x3a499d('0x174f')](),'type':_0x3a499d('0x1158')}];for(var _0x3ea9d8=0x0;_0x3ea9d8<_0x173aa0['data'][_0x3a499d('0x1a69')][_0x3a499d('0x577')];_0x3ea9d8+=0x1){_0x596bff[_0x3a499d('0x2092')]({'title':_0x173aa0[_0x3a499d('0x11c2')][_0x3a499d('0x1a69')][_0x3ea9d8]['type'],'msg':_0x173aa0['data'][_0x3a499d('0x1a69')][_0x3ea9d8][_0x3a499d('0x1224')]});}}else _0x596bff[_0x3a499d('0x2092')]({'title':_0x173aa0[_0x3a499d('0x209')]?_0x3a499d('0x22d')+_0x173aa0['status']+_0x3a499d('0xa99')+_0x173aa0['statusText']:_0x3a499d('0x1158'),'msg':_0x173aa0[_0x3a499d('0x11c2')]?JSON[_0x3a499d('0x25e')](_0x173aa0[_0x3a499d('0x11c2')]['message']):_0x173aa0[_0x3a499d('0x174f')]()});});}function _0x189efd(_0x120579){var _0x3318bd=_0x3713bf;_0x155755[_0x3318bd('0x1c24')](_0x120579);}}const _0x34afbe=_0x59b109,_0xcb03f6=_0x398308['p']+_0x3877e3('0x1ca0');_0x14e02e[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),_0x3877e3('0x243f'),'socket','toasty',_0x3877e3('0xccd')];function _0x14e02e(_0x169e9e,_0xcf7cbe,_0x24aba4,_0x2415f4,_0xc288dd){var _0x24f5c4=_0x3877e3,_0x56316a=this;_0x56316a[_0x24f5c4('0x261b')]={},_0x56316a[_0x24f5c4('0x2b6')]=_0xc288dd[_0x24f5c4('0x9ac')]['getVoiceQueues']({'fields':'id,name'}),_0x56316a['init']=_0x59b610,_0x56316a[_0x24f5c4('0x1059')]=_0x53e65e,_0x56316a['deleteWidget']=_0x359128;function _0x59b610(_0x227c2d,_0x31a8de){var _0x274471=_0x24f5c4;return _0x56316a[_0x274471('0x5ed')]=typeof _0x31a8de!==_0x274471('0xddc')?_0x31a8de:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x56316a['customDashboard']=_0x227c2d,_0x56316a[_0x274471('0x261b')]['draggable']={'enabled':!![],'handle':_0x274471('0x82b'),'stop':_0x432033},_0x56316a[_0x274471('0x261b')][_0x274471('0x62e')]={'enabled':!![],'handle':'.resizable','stop':_0x432033},_0x56316a[_0x274471('0x261b')][_0x274471('0x181d')]=[],_0xc288dd['dashboard'][_0x274471('0x1e5')]({'id':_0x227c2d['id']})[_0x274471('0x1376')][_0x274471('0x21ad')](function(_0x560348){var _0x464c36=_0x274471;if(_0x560348&&_0x560348[_0x464c36('0x205f')]&&_0x560348[_0x464c36('0x1b33')])for(var _0x3a1a4a=0x0;_0x3a1a4a<_0x560348[_0x464c36('0x1b33')]['length'];_0x3a1a4a+=0x1){_0x560348['rows'][_0x3a1a4a][_0x464c36('0x2b6')]=_0x56316a[_0x464c36('0x2b6')],_0x560348['rows'][_0x3a1a4a][_0x464c36('0x1dce')]=_0x86640f()[_0x464c36('0x26c3')](_0x56316a['voiceQueues'][_0x464c36('0x1b33')],'id'),_0x560348[_0x464c36('0x1b33')][_0x3a1a4a][_0x464c36('0x301')]=_0x464c36('0x1ab8')+_0x560348[_0x464c36('0x1b33')][_0x3a1a4a][_0x464c36('0x7fa')]+_0x464c36('0x27d4')+_0x560348['rows'][_0x3a1a4a][_0x464c36('0x7fa')]+_0x464c36('0x1940'),_0x56316a[_0x464c36('0x261b')][_0x464c36('0x181d')][_0x464c36('0x206c')](_0x560348[_0x464c36('0x1b33')][_0x3a1a4a]);}})[_0x274471('0x1c1d')](function(_0x264bd6){console['error'](_0x264bd6);});}function _0x53e65e(_0x38bbe1){var _0x31f895=_0x24f5c4;if(_0x38bbe1&&_0x38bbe1[_0x31f895('0x11e1')])for(var _0x4d6bd3=0x0;_0x4d6bd3<_0x38bbe1[_0x31f895('0x11e1')][_0x31f895('0x577')];_0x4d6bd3+=0x1){_0x38bbe1[_0x31f895('0x11e1')][_0x4d6bd3][_0x31f895('0x19fe')]===_0x31f895('0x2711')&&(_0x38bbe1[_0x31f895('0x24af')]=_0x38bbe1[_0x31f895('0x11e1')][_0x4d6bd3][_0x31f895('0x7fa')]),_0x38bbe1[_0x38bbe1[_0x31f895('0x11e1')][_0x4d6bd3][_0x31f895('0x19fe')]]=_0x38bbe1[_0x31f895('0x11e1')][_0x4d6bd3][_0x31f895('0x2228')];}_0x169e9e[_0x31f895('0x853')]({'controller':_0x31f895('0xc8b'),'controllerAs':'vm','templateUrl':_0xcb03f6,'parent':angular[_0x31f895('0x1676')](_0xcf7cbe[_0x31f895('0x2452')]),'clickOutsideToClose':!![],'locals':{'dashboarditem':_0x38bbe1,'dashboard':_0x56316a[_0x31f895('0x261b')]['widgets'],'license':null,'setting':null,'crudPermissions':_0x56316a[_0x31f895('0x5ed')]}})[_0x31f895('0x21ad')](function(_0x190b26){var _0x5c3cf0=_0x31f895;if(_0x190b26)for(var _0x2a40e3=0x0;_0x2a40e3<_0x56316a[_0x5c3cf0('0x261b')][_0x5c3cf0('0x181d')]['length'];_0x2a40e3+=0x1){_0x56316a['customDashboard']['widgets'][_0x2a40e3]['id']===_0x190b26['id']&&(_0x56316a[_0x5c3cf0('0x261b')]['widgets'][_0x2a40e3][_0x5c3cf0('0x11e1')]=_0x190b26['attrs'],_0x56316a[_0x5c3cf0('0x261b')][_0x5c3cf0('0x181d')][_0x2a40e3][_0x5c3cf0('0x2b6')]=_0x56316a[_0x5c3cf0('0x2b6')],_0x56316a[_0x5c3cf0('0x261b')][_0x5c3cf0('0x181d')][_0x2a40e3]['voiceQueuesSelected']=_0x86640f()['map'](_0x56316a['voiceQueues'][_0x5c3cf0('0x1b33')],'id'),_0x56316a[_0x5c3cf0('0x261b')][_0x5c3cf0('0x181d')][_0x2a40e3][_0x5c3cf0('0x301')]=_0x5c3cf0('0x1ab8')+_0x56316a[_0x5c3cf0('0x261b')][_0x5c3cf0('0x181d')][_0x2a40e3][_0x5c3cf0('0x7fa')]+_0x5c3cf0('0x27d4')+_0x56316a[_0x5c3cf0('0x261b')]['widgets'][_0x2a40e3][_0x5c3cf0('0x7fa')]+_0x5c3cf0('0x1940'));}});}function _0x359128(_0x19a144){var _0x200609=_0x24f5c4,_0x65c928=_0x169e9e['confirm']()['title'](_0x200609('0x1cd8')+_0x19a144[_0x200609('0x4b4')]+'?')[_0x200609('0x226d')]('')[_0x200609('0x7a7')]('Delete\x20Widget')['ok'](_0x200609('0x32b'))[_0x200609('0x3b5')]('NO');_0x169e9e[_0x200609('0x853')](_0x65c928)[_0x200609('0x21ad')](function(){var _0x43e190=_0x200609;return _0xc288dd['dashboardItem'][_0x43e190('0x1164')]({'id':_0x19a144['id']})[_0x43e190('0x1376')][_0x43e190('0x21ad')](function(){var _0x311992=_0x43e190;_0x86640f()['remove'](_0x56316a[_0x311992('0x261b')][_0x311992('0x181d')],{'id':_0x19a144['id']}),_0x2415f4['success']({'title':'Widget\x20deleted!','msg':_0x19a144[_0x311992('0x19fe')]?_0x19a144['name']+_0x311992('0xb4a'):_0x311992('0xb6e')});})['catch'](function(_0xb0bfeb){var _0x36594e=_0x43e190;if(_0xb0bfeb['data']&&_0xb0bfeb[_0x36594e('0x11c2')][_0x36594e('0x1a69')]&&_0xb0bfeb['data'][_0x36594e('0x1a69')]['length']){_0x56316a['errors']=_0xb0bfeb[_0x36594e('0x11c2')]['errors']||[{'message':_0xb0bfeb['toString'](),'type':_0x36594e('0x3e4')}];for(var _0x3a248b=0x0;_0x3a248b<_0xb0bfeb[_0x36594e('0x11c2')]['errors'][_0x36594e('0x577')];_0x3a248b++){_0x2415f4['error']({'title':_0xb0bfeb[_0x36594e('0x11c2')][_0x36594e('0x1a69')][_0x3a248b][_0x36594e('0x7fa')],'msg':_0xb0bfeb[_0x36594e('0x11c2')][_0x36594e('0x1a69')][_0x3a248b][_0x36594e('0x1224')]});}}else _0x2415f4['error']({'title':_0xb0bfeb['status']?_0x36594e('0x22d')+_0xb0bfeb[_0x36594e('0x209')]+'\x20-\x20'+_0xb0bfeb[_0x36594e('0x1808')]:'SYSTEM:DELETEdashboard','msg':_0xb0bfeb[_0x36594e('0x11c2')]?JSON['stringify'](_0xb0bfeb[_0x36594e('0x11c2')][_0x36594e('0x1224')]):_0xb0bfeb[_0x36594e('0x1224')]||_0xb0bfeb[_0x36594e('0x174f')]()});console[_0x36594e('0x2092')](_0xb0bfeb);});});}function _0x432033(_0x283656,_0x37fd7a,_0x58b3ee){var _0x3b7810=_0x24f5c4;return _0xc288dd[_0x3b7810('0x1e08')][_0x3b7810('0x5ef')](_0x58b3ee)['$promise'][_0x3b7810('0x1c1d')](function(_0x4b67c6){var _0x5cd178=_0x3b7810;console[_0x5cd178('0x2092')](_0x4b67c6);});}}const _0x5cb9fc=_0x14e02e,_0xdd1a97=_0x398308['p']+_0x3877e3('0x26e');_0x44c800[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$location',_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0xaff'),_0x3877e3('0x4c4'),_0x3877e3('0xccd'),'Auth',_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x44c800(_0xd810ae,_0x27d593,_0x3376b0,_0x166007,_0x50131e,_0x39ee6e,_0xc94cf2,_0x583cbd,_0x3acf53,_0x265660,_0x3e573e,_0x1f4443,_0x1ebbb3,_0x32e620){var _0x530968=_0x3877e3,_0x19bf7d=this;_0x19bf7d['currentUser']=_0x3e573e[_0x530968('0x15ed')](),_0x19bf7d[_0x530968('0x1a69')]=[],_0x19bf7d[_0x530968('0x21e')]=_0x1ebbb3,_0x19bf7d[_0x530968('0x2ff')]=_0x1f4443,_0x19bf7d[_0x530968('0x5ed')]=_0x32e620,_0x19bf7d[_0x530968('0x126a')]={},_0x19bf7d['passwordPattern']=_0x19bf7d[_0x530968('0x21e')]&&_0x19bf7d[_0x530968('0x21e')][_0x530968('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x19bf7d[_0x530968('0x4b4')]=_0x530968('0x2275'),_0x19bf7d[_0x530968('0x4c4')]=angular[_0x530968('0xd75')](_0x3acf53),_0x19bf7d[_0x530968('0xaff')]=_0x583cbd,_0x19bf7d[_0x530968('0x1efb')]=![],_0x19bf7d['selectedReport']=[],_0x19bf7d['query']={'fields':_0x530968('0x26f3'),'limit':0xa,'page':0x1,'sort':'-updatedAt'};!_0x19bf7d[_0x530968('0x4c4')]?(_0x19bf7d[_0x530968('0x4c4')]={'type':_0x530968('0x17ee'),'attrUrl':_0x530968('0xb2b'),'attrHourFormat':_0x530968('0x1e55'),'attrTimezone':_0x530968('0x5bd'),'attrMetric':_0x530968('0x16f0'),'attrSerie1':_0x530968('0x16f0'),'attrSerie2':_0x530968('0x27a'),'attrSerie3':_0x530968('0x27a'),'attrRefresh':0xa,'attrFontSize':0x14,'foreground':_0x530968('0xd8'),'background':_0x530968('0xf74')},_0x19bf7d[_0x530968('0x4b4')]=_0x530968('0x2174'),_0x19bf7d[_0x530968('0x1efb')]=!![]):_0x19bf7d[_0x530968('0x4c4')][_0x530968('0x7fa')]==_0x530968('0xd76')&&(_0x19bf7d[_0x530968('0xba3')]=_0x19bf7d[_0x530968('0x4c4')][_0x530968('0x24af')]==='custom'?_0x530968('0x2041'):_0x530968('0xc42'),_0x265660[_0x19bf7d[_0x530968('0xba3')]]['get']({'fields':'id,name,parent'})['$promise'][_0x530968('0x21ad')](function(_0x3b427f){var _0x55d37b=_0x530968;_0x19bf7d[_0x55d37b('0x252d')]=_0x86640f()[_0x55d37b('0x1d2e')](_0x3b427f[_0x55d37b('0x1b33')],{'id':_0x19bf7d['dashboarditem'][_0x55d37b('0x2711')]}),_0x19bf7d[_0x55d37b('0x4c4')][_0x55d37b('0x24bc')]=_0x19bf7d['currentReport'][_0x55d37b('0x19fe')],_0x19bf7d[_0x55d37b('0x77')][_0x55d37b('0x12e2')]=_0x19bf7d[_0x55d37b('0x252d')][_0x55d37b('0x12e2')];}));_0x19bf7d[_0x530968('0x142b')]=_0x26acf0,_0x19bf7d[_0x530968('0x27ae')]=_0x1ac39a,_0x19bf7d['deleteDashboardItem']=_0x280aa6,_0x19bf7d[_0x530968('0x279')]=_0x573079,_0x19bf7d[_0x530968('0x768')]=_0x3c9d88,_0x19bf7d[_0x530968('0xdd0')]=_0x2989d9,_0x19bf7d['closeReportDialog']=_0x4d836b,_0x19bf7d['searchReport']=_0x5c0d78,_0x19bf7d[_0x530968('0x167')]=_0x1fd8b5,_0x265660['analyticTreeReport']['get']({})[_0x530968('0x1376')][_0x530968('0x21ad')](function(_0x7b2f50){var _0x4d0d7b=_0x530968;_0x19bf7d[_0x4d0d7b('0x1ab1')]=_0x7b2f50[_0x4d0d7b('0x1b33')]||[];})[_0x530968('0x1c1d')](function(_0x596490){var _0x50f5d8=_0x530968;_0xc94cf2[_0x50f5d8('0x2092')]({'title':_0x596490[_0x50f5d8('0x209')]?_0x50f5d8('0x22d')+_0x596490[_0x50f5d8('0x209')]+_0x50f5d8('0xa99')+_0x596490[_0x50f5d8('0x1808')]:_0x50f5d8('0x12c3'),'msg':_0x596490[_0x50f5d8('0x11c2')]?JSON[_0x50f5d8('0x25e')](_0x596490['data']):_0x596490[_0x50f5d8('0x174f')]()});});var _0x4d2fbe=[{'id':0x191,'type':'inbound'},{'id':0x5dd,'type':_0x530968('0x2300')}],_0x4bb1b9=null;_0x3e573e['hasRole'](_0x530968('0x1bd8'))?_0x265660[_0x530968('0xb97')]['get']({'fields':_0x530968('0xfa'),'sort':'name','nolimit':_0x530968('0x19bd')})[_0x530968('0x1376')][_0x530968('0x21ad')](function(_0x160dc8){var _0x3d080c=_0x530968;_0x19bf7d[_0x3d080c('0x2b6')]=_0x160dc8[_0x3d080c('0x1b33')]||[];})['catch'](function(_0x411c5c){var _0x220145=_0x530968;_0xc94cf2[_0x220145('0x2092')]({'title':_0x411c5c[_0x220145('0x209')]?_0x220145('0x22d')+_0x411c5c[_0x220145('0x209')]+_0x220145('0xa99')+_0x411c5c[_0x220145('0x1808')]:_0x220145('0x1b58'),'msg':_0x411c5c[_0x220145('0x11c2')]?JSON[_0x220145('0x25e')](_0x411c5c['data']):_0x411c5c[_0x220145('0x174f')]()});}):_0x265660[_0x530968('0xb97')][_0x530968('0x595')]({'fields':_0x530968('0xfa'),'sort':'name','nolimit':_0x530968('0x19bd')})['$promise'][_0x530968('0x21ad')](function(_0x3d4b37){var _0x1077a8=_0x530968;_0x4bb1b9=_0x3d4b37[_0x1077a8('0x1b33')]||[];})['then'](function(){var _0x20fc7b=_0x530968,_0x3a4cc0=[];for(var _0x3d7494=0x0;_0x3d7494<_0x4d2fbe[_0x20fc7b('0x577')];_0x3d7494++){_0x3a4cc0[_0x20fc7b('0x206c')](_0x265660['userProfileSection'][_0x20fc7b('0x595')]({'userProfileId':_0x19bf7d['currentUser'][_0x20fc7b('0x1618')],'sectionId':_0x4d2fbe[_0x3d7494]['id']})[_0x20fc7b('0x1376')]);}return _0x50131e[_0x20fc7b('0x1ba7')](_0x3a4cc0);})['then'](function(_0x267e18){var _0x275f5b=_0x530968,_0x34915e=_0x86640f()[_0x275f5b('0x26c3')](_0x267e18,function(_0x334bea){var _0x5c7820=_0x275f5b;return _0x334bea&&_0x334bea[_0x5c7820('0x1b33')]?_0x334bea[_0x5c7820('0x1b33')][0x0]:null;}),_0x2424ac=[],_0x3950fd=function _0x472d93(_0x25a962){var _0x2e294e=_0x275f5b,_0x18047f=_0x86640f()['find'](_0x34915e,[_0x2e294e('0x1cd2'),_0x4d2fbe[_0x25a962]['id']]);if(_0x18047f){if(!_0x18047f['autoAssociation'])_0x2424ac['push'](_0x265660[_0x2e294e('0x185e')][_0x2e294e('0x595')]({'sectionId':_0x18047f['id']})[_0x2e294e('0x1376')]);else{var _0x1b07b5=[];_0x4bb1b9[_0x2e294e('0x1a52')](function(_0x14f597){var _0x56afd4=_0x2e294e;_0x14f597['type']===_0x4d2fbe[_0x25a962][_0x56afd4('0x7fa')]&&_0x1b07b5[_0x56afd4('0x206c')](_0x14f597);}),_0x2424ac[_0x2e294e('0x206c')]({'rows':_0x1b07b5,'count':_0x1b07b5[_0x2e294e('0x577')]});}}};for(var _0x30987b=0x0;_0x30987b<_0x4d2fbe['length'];_0x30987b++){_0x3950fd(_0x30987b);}return _0x50131e['all'](_0x2424ac);})[_0x530968('0x21ad')](function(_0x56f6b0){var _0x2f197f=_0x530968,_0xa85ac4=[],_0x2ce5ed=null;_0x19bf7d[_0x2f197f('0x4c4')]&&(_0x2ce5ed=_0x86640f()[_0x2f197f('0x1d2e')](_0x4bb1b9,{'id':Number(_0x19bf7d[_0x2f197f('0x4c4')][_0x2f197f('0x25cf')])}));for(var _0x65f0b1=0x0;_0x65f0b1<_0x56f6b0[_0x2f197f('0x577')];_0x65f0b1++){var _0x6a5464=_0x56f6b0[_0x65f0b1][_0x2f197f('0x1b33')]||[];_0x6a5464[_0x2f197f('0x1a52')](function(_0x326804){var _0x48cd3f=_0x2f197f;_0xa85ac4[_0x48cd3f('0x206c')](_0x326804);});}_0x2ce5ed&&!_0x86640f()[_0x2f197f('0x2664')](_0xa85ac4,[_0x2f197f('0x675'),_0x2ce5ed['id']])&&_0x4bb1b9[_0x2f197f('0x1a52')](function(_0x5cffe0){var _0x35387f=_0x2f197f;_0x5cffe0['id']===_0x2ce5ed['id']&&(_0x5cffe0['canSelect']=![],_0xa85ac4[_0x35387f('0x206c')](_0x5cffe0));}),_0x19bf7d[_0x2f197f('0x2b6')]=_0xa85ac4;})[_0x530968('0x1c1d')](function(_0x508979){var _0x32d21a=_0x530968;_0xc94cf2[_0x32d21a('0x2092')]({'title':_0x508979['status']?_0x32d21a('0x22d')+_0x508979[_0x32d21a('0x209')]+_0x32d21a('0xa99')+_0x508979[_0x32d21a('0x1808')]:_0x32d21a('0xbb5'),'msg':_0x508979[_0x32d21a('0x11c2')]?JSON['stringify'](_0x508979[_0x32d21a('0x11c2')]):_0x508979[_0x32d21a('0x174f')]()});});function _0x26acf0(){var _0x3495b5=_0x530968;_0x19bf7d['errors']=[],_0x265660[_0x3495b5('0xaff')]['addItem']({'id':_0x27d593['params']['id']},_0x19bf7d['dashboarditem'])[_0x3495b5('0x1376')][_0x3495b5('0x21ad')](function(_0x4fa1ed){var _0x3045cb=_0x3495b5;_0x19bf7d[_0x3045cb('0xaff')][_0x3045cb('0xd0c')](_0x4fa1ed[_0x3045cb('0x3bc')]()),_0xc94cf2[_0x3045cb('0xdb1')]({'title':_0x3045cb('0xc40'),'msg':_0x19bf7d[_0x3045cb('0x4c4')]['name']?_0x19bf7d[_0x3045cb('0x4c4')][_0x3045cb('0x19fe')]+_0x3045cb('0x1694'):''}),_0x1fd8b5(_0x4fa1ed);})[_0x3495b5('0x1c1d')](function(_0x2dea95){var _0x12a378=_0x3495b5;if(_0x2dea95[_0x12a378('0x11c2')]&&_0x2dea95[_0x12a378('0x11c2')]['errors']&&_0x2dea95[_0x12a378('0x11c2')][_0x12a378('0x1a69')][_0x12a378('0x577')]){_0x19bf7d[_0x12a378('0x1a69')]=_0x2dea95['data']['errors']||[{'message':_0x2dea95['toString'](),'type':_0x12a378('0x1d17')}];for(var _0x2ddd69=0x0;_0x2ddd69<_0x2dea95['data']['errors']['length'];_0x2ddd69+=0x1){_0xc94cf2[_0x12a378('0x2092')]({'title':_0x2dea95[_0x12a378('0x11c2')][_0x12a378('0x1a69')][_0x2ddd69]['type'],'msg':_0x2dea95[_0x12a378('0x11c2')][_0x12a378('0x1a69')][_0x2ddd69]['message']});}}else _0xc94cf2['error']({'title':_0x2dea95[_0x12a378('0x209')]?_0x12a378('0x22d')+_0x2dea95[_0x12a378('0x209')]+'\x20-\x20'+_0x2dea95[_0x12a378('0x1808')]:_0x12a378('0x1d17'),'msg':_0x2dea95[_0x12a378('0x11c2')]?JSON[_0x12a378('0x25e')](_0x2dea95[_0x12a378('0x11c2')][_0x12a378('0x1224')]):_0x2dea95[_0x12a378('0x174f')]()});});}function _0x1ac39a(){var _0x45c590=_0x530968;_0x19bf7d[_0x45c590('0x1a69')]=[],_0x265660[_0x45c590('0x1e08')][_0x45c590('0x5ef')]({'id':_0x19bf7d[_0x45c590('0x4c4')]['id']},_0x19bf7d[_0x45c590('0x4c4')])[_0x45c590('0x1376')][_0x45c590('0x21ad')](function(_0x24232a){var _0x25bc74=_0x45c590,_0xf6f7af=_0x86640f()['find'](_0x19bf7d[_0x25bc74('0xaff')],{'id':_0x24232a['id']});_0xf6f7af&&_0x86640f()[_0x25bc74('0xd0e')](_0xf6f7af,_0x86640f()[_0x25bc74('0xc50')](_0x24232a[_0x25bc74('0x3bc')](),_0x86640f()[_0x25bc74('0x223b')](_0xf6f7af))),_0xc94cf2[_0x25bc74('0xdb1')]({'title':_0x25bc74('0xa47'),'msg':_0x19bf7d['dashboarditem']['name']?_0x19bf7d[_0x25bc74('0x4c4')][_0x25bc74('0x19fe')]+'\x20has\x20been\x20saved!':''}),_0x1fd8b5(_0x24232a);})[_0x45c590('0x1c1d')](function(_0x467a3d){var _0x23da5f=_0x45c590;if(_0x467a3d['data']&&_0x467a3d[_0x23da5f('0x11c2')]['errors']&&_0x467a3d[_0x23da5f('0x11c2')][_0x23da5f('0x1a69')][_0x23da5f('0x577')]){_0x19bf7d[_0x23da5f('0x1a69')]=_0x467a3d['data'][_0x23da5f('0x1a69')]||[{'message':_0x467a3d['toString'](),'type':_0x23da5f('0xc43')}];for(var _0x2902b6=0x0;_0x2902b6<_0x467a3d[_0x23da5f('0x11c2')][_0x23da5f('0x1a69')][_0x23da5f('0x577')];_0x2902b6++){_0xc94cf2[_0x23da5f('0x2092')]({'title':_0x467a3d[_0x23da5f('0x11c2')][_0x23da5f('0x1a69')][_0x2902b6][_0x23da5f('0x7fa')],'msg':_0x467a3d[_0x23da5f('0x11c2')][_0x23da5f('0x1a69')][_0x2902b6][_0x23da5f('0x1224')]});}}else _0xc94cf2[_0x23da5f('0x2092')]({'title':_0x467a3d[_0x23da5f('0x209')]?_0x23da5f('0x22d')+_0x467a3d[_0x23da5f('0x209')]+_0x23da5f('0xa99')+_0x467a3d[_0x23da5f('0x1808')]:'api.dashboardItem.update','msg':_0x467a3d[_0x23da5f('0x11c2')]?JSON[_0x23da5f('0x25e')](_0x467a3d['data']['message']):_0x467a3d[_0x23da5f('0x174f')]()});});}function _0x280aa6(_0x7bc795){var _0x15aedb=_0x530968;_0x19bf7d['errors']=[];var _0x5dcad8=_0x166007[_0x15aedb('0xa33')]()['title'](_0x15aedb('0x196b'))[_0x15aedb('0x13fb')]('The\x20dashboarditem\x20will\x20be\x20deleted.')[_0x15aedb('0x7a7')]('Delete\x20DashboardItem')['ok'](_0x15aedb('0xbfd'))[_0x15aedb('0x3b5')](_0x15aedb('0x1f40'))[_0x15aedb('0x1e6d')](_0x7bc795);_0x166007[_0x15aedb('0x853')](_0x5dcad8)[_0x15aedb('0x21ad')](function(){var _0x395cad=_0x15aedb;_0x265660['dashboardItem'][_0x395cad('0x1164')]({'id':_0x19bf7d[_0x395cad('0x4c4')]['id']})['$promise'][_0x395cad('0x21ad')](function(){var _0x1983c0=_0x395cad;_0x86640f()[_0x1983c0('0x16a2')](_0x19bf7d[_0x1983c0('0xaff')],{'id':_0x19bf7d['dashboarditem']['id']}),_0xc94cf2['success']({'title':_0x1983c0('0xd99'),'msg':(_0x19bf7d[_0x1983c0('0x4c4')][_0x1983c0('0x19fe')]||_0x1983c0('0x4c4'))+'\x20has\x20been\x20deleted!'}),_0x1fd8b5(_0x19bf7d['dashboarditem']);})['catch'](function(_0x304ee6){var _0xa6c5f4=_0x395cad;if(_0x304ee6[_0xa6c5f4('0x11c2')]&&_0x304ee6['data'][_0xa6c5f4('0x1a69')]&&_0x304ee6['data'][_0xa6c5f4('0x1a69')][_0xa6c5f4('0x577')]){_0x19bf7d[_0xa6c5f4('0x1a69')]=_0x304ee6[_0xa6c5f4('0x11c2')][_0xa6c5f4('0x1a69')]||[{'message':_0x304ee6[_0xa6c5f4('0x174f')](),'type':_0xa6c5f4('0x1b1c')}];for(var _0x4b5c41=0x0;_0x4b5c41<_0x304ee6[_0xa6c5f4('0x11c2')]['errors'][_0xa6c5f4('0x577')];_0x4b5c41++){_0xc94cf2[_0xa6c5f4('0x2092')]({'title':_0x304ee6['data'][_0xa6c5f4('0x1a69')][_0x4b5c41][_0xa6c5f4('0x7fa')],'msg':_0x304ee6[_0xa6c5f4('0x11c2')]['errors'][_0x4b5c41][_0xa6c5f4('0x1224')]});}}else _0xc94cf2[_0xa6c5f4('0x2092')]({'title':_0x304ee6[_0xa6c5f4('0x209')]?_0xa6c5f4('0x22d')+_0x304ee6[_0xa6c5f4('0x209')]+'\x20-\x20'+_0x304ee6[_0xa6c5f4('0x1808')]:_0xa6c5f4('0x1b1c'),'msg':_0x304ee6['data']?JSON[_0xa6c5f4('0x25e')](_0x304ee6[_0xa6c5f4('0x11c2')][_0xa6c5f4('0x1224')]):_0x304ee6[_0xa6c5f4('0x1224')]||_0x304ee6[_0xa6c5f4('0x174f')]()});});},function(){});}function _0x102159(){var _0x14e99f=_0x530968,_0x17dc3c={'core':{'multiple':![],'animation':!![],'error':function _0x7ca5eb(_0x515c72){var _0x1526f2=a0_0x2e7f;console[_0x1526f2('0x2092')](_0x1526f2('0x16ae')+angular['toJson'](_0x515c72));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':[_0x14e99f('0xf98')]};return _0x19bf7d[_0x14e99f('0x123f')][_0x14e99f('0x25c8')]!==_0x14e99f('0x1bd8')?_0x265660[_0x14e99f('0xab4')][_0x14e99f('0x595')]({'fields':_0x14e99f('0x1852'),'userProfileId':_0x19bf7d[_0x14e99f('0x123f')][_0x14e99f('0x1618')],'sectionId':0x4b3})[_0x14e99f('0x1376')][_0x14e99f('0x21ad')](function(_0x493ad8){var _0x3e459e=_0x14e99f;return _0x19bf7d[_0x3e459e('0xab4')]=_0x493ad8&&_0x493ad8['count']==0x1?_0x493ad8['rows'][0x0]:null,_0x17dc3c;})[_0x14e99f('0x1c1d')](function(_0x5ed8af){var _0x3b22ab=_0x14e99f;_0xc94cf2[_0x3b22ab('0x2092')]({'title':_0x3b22ab('0x1399'),'msg':_0x5ed8af['message']});}):_0x17dc3c;}function _0x1b1ffa(_0x414e3d){return _0x414e3d?{'loaded':_0x5006b3,'select_node':_0x49ec33}:{'loaded':_0x5a3673,'select_node':_0x336169};}function _0x49ec33(_0x36a1ea,_0x57eb1a){var _0x73ef5f=_0x530968;_0x19bf7d[_0x73ef5f('0x1c9c')][_0x73ef5f('0x13ba')](!![])[_0x73ef5f('0x118')](),_0x19bf7d['treeDefaultInstance'][_0x73ef5f('0x13ba')](!![])[_0x73ef5f('0x27a6')](),_0x19bf7d[_0x73ef5f('0x2ef')]=_0x57eb1a[_0x73ef5f('0x36f')],_0x19bf7d['currentNode'][_0x73ef5f('0xf50')]=!![],_0x19bf7d['currentPath']=_0x19bf7d['treeCustomInstance'][_0x73ef5f('0x13ba')](!![])[_0x73ef5f('0xc27')](_0x19bf7d[_0x73ef5f('0x2ef')])[_0x73ef5f('0x136')]('/\x20'),_0x19bf7d['apiName']=_0x73ef5f('0x2041'),_0x19bf7d['query'][_0x73ef5f('0x12e2')]=_0x57eb1a[_0x73ef5f('0x36f')]['id'],_0x3c9d88();}function _0x336169(_0x3db246,_0x3a3a6c){var _0x2c8693=_0x530968;_0x19bf7d[_0x2c8693('0xd4c')]['jstree'](!![])[_0x2c8693('0x118')](),_0x19bf7d[_0x2c8693('0xd4c')][_0x2c8693('0x13ba')](!![])[_0x2c8693('0x27a6')](),_0x19bf7d[_0x2c8693('0x2ef')]=_0x3a3a6c['node'],_0x19bf7d[_0x2c8693('0x2ef')][_0x2c8693('0xf50')]=![],_0x19bf7d[_0x2c8693('0x1bc6')]=_0x19bf7d[_0x2c8693('0x1c9c')][_0x2c8693('0x13ba')](!![])[_0x2c8693('0xc27')](_0x19bf7d[_0x2c8693('0x2ef')])['join']('/\x20'),_0x19bf7d[_0x2c8693('0xba3')]=_0x2c8693('0xc42'),_0x19bf7d[_0x2c8693('0x77')]['parent']=_0x3a3a6c['node']['id'],_0x3c9d88();}function _0x5006b3(){var _0x357d7d=_0x530968;if(!_0x19bf7d[_0x357d7d('0x1efb')]&&_0x19bf7d[_0x357d7d('0xba3')]==='analyticCustomReport'){var _0x44cc0b=_0x19bf7d[_0x357d7d('0xd4c')][_0x357d7d('0x13ba')](!![])[_0x357d7d('0x1e28')](_0x19bf7d[_0x357d7d('0x77')]['parent']);_0x49ec33(null,{'node':_0x44cc0b,'selected':_0x44cc0b['id']});}}function _0x5a3673(){var _0x3d55b1=_0x530968;if(!_0x19bf7d[_0x3d55b1('0x1efb')]&&_0x19bf7d[_0x3d55b1('0xba3')]===_0x3d55b1('0xc42')){var _0x400fb7=_0x19bf7d[_0x3d55b1('0x1c9c')][_0x3d55b1('0x13ba')](!![])[_0x3d55b1('0x1e28')](_0x19bf7d['query'][_0x3d55b1('0x12e2')]);_0x336169(null,{'node':_0x400fb7,'selected':_0x400fb7['id']});}}function _0x3c9d88(){var _0x27f173=_0x530968;_0x19bf7d['query'][_0x27f173('0x15a5')]=(_0x19bf7d['query'][_0x27f173('0x2376')]-0x1)*_0x19bf7d['query'][_0x27f173('0x1f4a')];if(_0x19bf7d['apiName']){if(_0x19bf7d['currentUser'][_0x27f173('0x25c8')]===_0x27f173('0x1bd8'))_0x19bf7d['promise']=_0x265660[_0x19bf7d[_0x27f173('0xba3')]]['get'](_0x19bf7d[_0x27f173('0x77')],_0x1311dc)['$promise'];else{if(!_0x19bf7d[_0x27f173('0xab4')])return _0x1311dc(null);else{if(_0x19bf7d['userProfileSection'][_0x27f173('0x80c')])_0x19bf7d[_0x27f173('0x71b')]=_0x265660[_0x19bf7d['apiName']][_0x27f173('0x595')](_0x19bf7d[_0x27f173('0x77')],_0x1311dc)[_0x27f173('0x1376')];else{var _0x48fedc=[];_0x19bf7d[_0x27f173('0x71b')]=_0x265660[_0x19bf7d['apiName']][_0x27f173('0x595')](_0x19bf7d[_0x27f173('0x77')])[_0x27f173('0x1376')][_0x27f173('0x21ad')](function(_0x4f86c1){var _0x341181=_0x27f173;return _0x48fedc=_0x4f86c1&&_0x4f86c1[_0x341181('0x1b33')]?_0x4f86c1['rows']:[],_0x48fedc[_0x341181('0x577')]>0x0?_0x265660['userProfileResource'][_0x341181('0x595')]({'sectionId':_0x19bf7d[_0x341181('0xab4')]['id'],'type':_0x19bf7d[_0x341181('0xba3')]==='analyticDefaultReport'?_0x341181('0x1505'):_0x341181('0x1a1e')})['$promise'][_0x341181('0x21ad')](function(_0x4818da){var _0x1776d3=_0x341181,_0x4870bc=_0x4818da&&_0x4818da[_0x1776d3('0x1b33')]?_0x4818da[_0x1776d3('0x1b33')]:[];if(_0x4870bc[_0x1776d3('0x577')]>0x0){var _0x206b0c=[];return _0x48fedc[_0x1776d3('0x1a52')](function(_0xdf1291){var _0x32f528=_0x86640f()['find'](_0x4870bc,['resourceId',_0xdf1291['id']]);if(_0x32f528)_0x206b0c['push'](_0xdf1291);}),_0x1311dc({'count':_0x206b0c[_0x1776d3('0x577')],'rows':_0x206b0c});}else return _0x1311dc(null);}):_0x1311dc(null);})[_0x27f173('0x1c1d')](function(_0x37e220){var _0x508f78=_0x27f173;_0xc94cf2[_0x508f78('0x2092')]({'title':_0x37e220[_0x508f78('0x209')]?_0x508f78('0x22d')+_0x37e220[_0x508f78('0x209')]+'\x20-\x20'+_0x37e220[_0x508f78('0x1808')]:'SYSTEM:GET_REPORTS','msg':_0x37e220[_0x508f78('0x11c2')]?JSON[_0x508f78('0x25e')](_0x37e220[_0x508f78('0x11c2')]):_0x37e220[_0x508f78('0x174f')]()});});}}}}}function _0x1311dc(_0xfdd979){var _0x5c590b=_0x530968;_0x19bf7d['reports']=_0xfdd979||{'count':0x0,'rows':[]},!_0x19bf7d['newDashboardItem']&&_0x19bf7d[_0x5c590b('0x1233')][_0x5c590b('0x206c')](_0x86640f()[_0x5c590b('0x1d2e')](_0x19bf7d[_0x5c590b('0xd5d')][_0x5c590b('0x1b33')],{'id':_0x19bf7d[_0x5c590b('0x252d')]['id']}));}function _0x5c0d78(){var _0x3419a0=_0x530968;_0x19bf7d['treeDefaultData']=_0x19bf7d[_0x3419a0('0x1ab1')][0x0]?angular[_0x3419a0('0xcf1')](_0x19bf7d[_0x3419a0('0x1ab1')][0x0]['tree']):[],_0x19bf7d[_0x3419a0('0x11f2')]=_0x19bf7d[_0x3419a0('0x1ab1')][0x1]?angular[_0x3419a0('0xcf1')](_0x19bf7d['treeReports'][0x1][_0x3419a0('0x1394')]):[],_0x19bf7d['treeConfig']=_0x102159(),_0x19bf7d[_0x3419a0('0x460')]=_0x1b1ffa(![]),_0x19bf7d[_0x3419a0('0x9ec')]=_0x1b1ffa(!![]),_0x166007[_0x3419a0('0x853')]({'controller':function _0x1a4da2(){return _0x19bf7d;},'controllerAs':'vm','templateUrl':_0xdd1a97,'autoWrap':!![],'skipHide':!![]});}function _0x2989d9(){var _0x2bbf97=_0x530968;_0x19bf7d[_0x2bbf97('0x4c4')][_0x2bbf97('0x24bc')]=_0x19bf7d[_0x2bbf97('0x1233')][0x0]['name'],_0x19bf7d['dashboarditem'][_0x2bbf97('0x2711')]=_0x19bf7d[_0x2bbf97('0x1233')][0x0]['id'],_0x19bf7d[_0x2bbf97('0x4c4')][_0x2bbf97('0x24af')]=_0x19bf7d[_0x2bbf97('0x2ef')][_0x2bbf97('0xf50')]?_0x2bbf97('0xf50'):_0x2bbf97('0x1e6e');if(!_0x19bf7d[_0x2bbf97('0x1efb')]){var _0x510629={'name':_0x2bbf97('0x2711'),'type':_0x19bf7d[_0x2bbf97('0x4c4')][_0x2bbf97('0x24af')],'value':_0x19bf7d[_0x2bbf97('0x1233')][0x0]['id']};_0x19bf7d[_0x2bbf97('0x4c4')][_0x2bbf97('0x11e1')][_0x2bbf97('0xafe')](_0x86640f()[_0x2bbf97('0x127')](_0x19bf7d[_0x2bbf97('0x4c4')]['attrs'],0x1,_0x510629));}_0xd810ae[_0x2bbf97('0x792')][_0x2bbf97('0x24bc')][_0x2bbf97('0x6ee')](),_0x166007[_0x2bbf97('0x1c24')]();}function _0x4d836b(){_0x166007['hide']();}function _0x573079(_0x3afa2d){return _0x3afa2d===null?undefined:new Date(_0x3afa2d);}function _0x1fd8b5(_0x202c4d){_0x166007['hide'](_0x202c4d);}}const _0x56dbaa=_0x44c800,_0x209c41=_0x398308['p']+'src/js/modules/main/apps/tools/views/customDashboards/edit/clone/clone.html/clone-[chunkhash].html';_0x4b9edd[_0x3877e3('0x1a81')]=['$state','$location',_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x13c1'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x261b'),_0x3877e3('0xab4')];function _0x4b9edd(_0x55f041,_0x4826b0,_0x44c30f,_0x445119,_0xe2caf0,_0x1fd7f7,_0x52f59a,_0x240a0a,_0xa44167,_0x2e94a4,_0xd9c5b3,_0x14b976){var _0x2aafb6=_0x3877e3,_0x1248b6=this;_0x1248b6[_0x2aafb6('0x123f')]=_0x2e94a4[_0x2aafb6('0x15ed')](),_0x1248b6[_0x2aafb6('0x2ff')]=_0x1fd7f7,_0x1248b6[_0x2aafb6('0x21e')]=_0x52f59a,_0x1248b6[_0x2aafb6('0x1432')]=_0x1248b6[_0x2aafb6('0x21e')][_0x2aafb6('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1248b6[_0x2aafb6('0x626')]=_0x4826b0[_0x2aafb6('0x1162')]()+_0x2aafb6('0x22a9')+_0x4826b0['host'](),_0x1248b6['customDashboard']=_0xd9c5b3||_0x55f041[_0x2aafb6('0x171b')]['customDashboard']||{},_0x1248b6[_0x2aafb6('0xab4')]=_0x14b976&&_0x14b976[_0x2aafb6('0x205f')]==0x1?_0x14b976['rows'][0x0]:null,_0x1248b6[_0x2aafb6('0x5ed')]=_0x2e94a4['parseCrudPermissions'](_0x1248b6[_0x2aafb6('0xab4')]?_0x1248b6[_0x2aafb6('0xab4')][_0x2aafb6('0x5ed')]:null),_0x1248b6['hasModulePermissions']={},_0x1248b6[_0x2aafb6('0x302')]=_0x55f041['params'][_0x2aafb6('0x12e1')]||0x0,_0x1248b6[_0x2aafb6('0x1b5c')]=_0x3d73a9,_0x1248b6['gotogoto']=_0x1809b5,_0x1248b6['alert']=_0xa44167[_0x2aafb6('0x231c')],_0x1248b6['gotoCustomDashboards']=_0x6a4948,_0x1248b6['saveCustomDashboard']=_0x1f69cf;function _0x3d73a9(_0xfaa266,_0x77be31){var _0x4856eb=_0x2aafb6;_0x44c30f[_0x4856eb('0x853')]({'controller':_0x4856eb('0x717'),'controllerAs':'vm','templateUrl':_0x209c41,'parent':angular['element'](_0x445119['body']),'targetEvent':_0x77be31,'clickOutsideToClose':!![],'locals':{'customDashboard':_0xfaa266,'customDashboards':_0x1248b6['customDashboards']?_0x1248b6['customDashboards']['rows']:[],'crudPermissions':_0x1248b6[_0x4856eb('0x5ed')]}});}function _0x1809b5(_0x413903){var _0x278bd5=_0x2aafb6;_0x55f041['go'](_0x278bd5('0x12c6'),{'id':_0x413903['id']});}function _0x6a4948(){var _0x23731b=_0x2aafb6;_0x55f041['go'](_0x23731b('0x129b'),{},{'reload':_0x23731b('0x129b')});}function _0x1f69cf(){var _0x53a330=_0x2aafb6;_0x240a0a['dashboard'][_0x53a330('0x5ef')]({'id':_0x1248b6['customDashboard']['id']},_0x1248b6[_0x53a330('0x261b')])[_0x53a330('0x1376')][_0x53a330('0x21ad')](function(){var _0x4f9505=_0x53a330;_0xa44167[_0x4f9505('0xdb1')]({'title':_0x4f9505('0x2411'),'msg':_0x1248b6[_0x4f9505('0x261b')]['name']?_0x1248b6['customDashboard'][_0x4f9505('0x19fe')]+_0x4f9505('0xa8d'):''});})[_0x53a330('0x1c1d')](function(_0x1d3a75){var _0x4c2a44=_0x53a330;_0xa44167[_0x4c2a44('0x2092')]({'title':_0x1d3a75[_0x4c2a44('0x209')]?_0x4c2a44('0x22d')+_0x1d3a75[_0x4c2a44('0x209')]+_0x4c2a44('0xa99')+_0x1d3a75['statusText']:_0x4c2a44('0x244d'),'msg':_0x1d3a75['data']?JSON['stringify'](_0x1d3a75[_0x4c2a44('0x11c2')]):_0x1d3a75['toString']()});});}}const _0x3a8d03=_0x4b9edd;_0x5089d2[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x2530'),_0x3877e3('0xa07'),'api',_0x3877e3('0x15bc'),'license',_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x5089d2(_0x4addc8,_0x66432a,_0x3e524d,_0x2abf6e,_0x2d0888,_0x1b17fd,_0x4b1901,_0x434e97,_0x5906b4,_0x226288,_0x40c5f8,_0xf8300,_0x1b851d,_0x5f5d35){var _0x17c8fa=_0x3877e3,_0x30ba3e=this;_0x30ba3e[_0x17c8fa('0x123f')]=_0x40c5f8['getCurrentUser'](),_0x30ba3e['errors']=[],_0x30ba3e[_0x17c8fa('0x21e')]=_0x1b851d,_0x30ba3e[_0x17c8fa('0x2ff')]=_0xf8300,_0x30ba3e['crudPermissions']=_0x5f5d35,_0x30ba3e[_0x17c8fa('0x126a')]={},_0x30ba3e[_0x17c8fa('0x1432')]=_0x30ba3e['setting']&&_0x30ba3e[_0x17c8fa('0x21e')][_0x17c8fa('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x30ba3e['title']=_0x17c8fa('0x130e'),_0x30ba3e[_0x17c8fa('0xa07')]=angular[_0x17c8fa('0xd75')](_0x5906b4),_0x30ba3e[_0x17c8fa('0x2530')]=_0x434e97,_0x30ba3e[_0x17c8fa('0x1c3e')]=![];!_0x30ba3e[_0x17c8fa('0xa07')]&&(_0x30ba3e[_0x17c8fa('0xa07')]={},_0x30ba3e[_0x17c8fa('0x4b4')]=_0x17c8fa('0xe33'),_0x30ba3e[_0x17c8fa('0x1c3e')]=!![]);_0x30ba3e[_0x17c8fa('0x2bb')]=_0x13a951,_0x30ba3e['saveInterval']=_0x2aaa13,_0x30ba3e['deleteInterval']=_0x118cbf,_0x30ba3e[_0x17c8fa('0x279')]=_0x1d9940,_0x30ba3e[_0x17c8fa('0x167')]=_0x277dd7;function _0x13a951(){var _0x5f4917=_0x17c8fa;_0x30ba3e[_0x5f4917('0x1a69')]=[],_0x226288[_0x5f4917('0xa07')]['save'](_0x30ba3e['interval'])[_0x5f4917('0x1376')][_0x5f4917('0x21ad')](function(_0x161785){var _0x5d2d88=_0x5f4917;_0x30ba3e[_0x5d2d88('0x2530')][_0x5d2d88('0xd0c')](_0x161785[_0x5d2d88('0x3bc')]()),_0x4b1901[_0x5d2d88('0xdb1')]({'title':_0x5d2d88('0x1ecc'),'msg':_0x30ba3e[_0x5d2d88('0xa07')]['name']?_0x30ba3e[_0x5d2d88('0xa07')]['name']+_0x5d2d88('0x1694'):''}),_0x277dd7(_0x161785);})[_0x5f4917('0x1c1d')](function(_0x413b93){var _0x332fc4=_0x5f4917;if(_0x413b93[_0x332fc4('0x11c2')]&&_0x413b93['data'][_0x332fc4('0x1a69')]&&_0x413b93['data'][_0x332fc4('0x1a69')]['length']){_0x30ba3e[_0x332fc4('0x1a69')]=_0x413b93[_0x332fc4('0x11c2')][_0x332fc4('0x1a69')]||[{'message':_0x413b93['toString'](),'type':_0x332fc4('0x27de')}];for(var _0xd3380=0x0;_0xd3380<_0x413b93['data'][_0x332fc4('0x1a69')][_0x332fc4('0x577')];_0xd3380+=0x1){_0x4b1901[_0x332fc4('0x2092')]({'title':_0x413b93['data']['errors'][_0xd3380][_0x332fc4('0x7fa')],'msg':_0x413b93['data'][_0x332fc4('0x1a69')][_0xd3380][_0x332fc4('0x1224')]});}}else _0x4b1901[_0x332fc4('0x2092')]({'title':_0x413b93['status']?_0x332fc4('0x22d')+_0x413b93[_0x332fc4('0x209')]+_0x332fc4('0xa99')+_0x413b93['statusText']:_0x332fc4('0x27de'),'msg':_0x413b93['data']?JSON[_0x332fc4('0x25e')](_0x413b93['data']['message']):_0x413b93[_0x332fc4('0x174f')]()});});}function _0x2aaa13(){var _0x4c1e41=_0x17c8fa;_0x30ba3e['errors']=[],_0x226288[_0x4c1e41('0xa07')][_0x4c1e41('0x5ef')]({'id':_0x30ba3e[_0x4c1e41('0xa07')]['id']},_0x30ba3e[_0x4c1e41('0xa07')])['$promise']['then'](function(_0x3c2fc1){var _0x13235f=_0x4c1e41,_0xa024ba=_0x86640f()[_0x13235f('0x1d2e')](_0x30ba3e[_0x13235f('0x2530')],{'id':_0x3c2fc1['id']});_0xa024ba&&_0x86640f()['merge'](_0xa024ba,_0x86640f()['pick'](_0x3c2fc1[_0x13235f('0x3bc')](),_0x86640f()[_0x13235f('0x223b')](_0xa024ba))),_0x4b1901[_0x13235f('0xdb1')]({'title':_0x13235f('0x234'),'msg':_0x30ba3e[_0x13235f('0xa07')][_0x13235f('0x19fe')]?_0x30ba3e['interval']['name']+_0x13235f('0x2249'):''}),_0x277dd7(_0x3c2fc1);})[_0x4c1e41('0x1c1d')](function(_0x473b69){var _0x22851e=_0x4c1e41;if(_0x473b69['data']&&_0x473b69['data']['errors']&&_0x473b69[_0x22851e('0x11c2')][_0x22851e('0x1a69')][_0x22851e('0x577')]){_0x30ba3e['errors']=_0x473b69[_0x22851e('0x11c2')][_0x22851e('0x1a69')]||[{'message':_0x473b69[_0x22851e('0x174f')](),'type':_0x22851e('0x13fa')}];for(var _0x46c768=0x0;_0x46c768<_0x473b69[_0x22851e('0x11c2')]['errors'][_0x22851e('0x577')];_0x46c768++){_0x4b1901[_0x22851e('0x2092')]({'title':_0x473b69['data'][_0x22851e('0x1a69')][_0x46c768][_0x22851e('0x7fa')],'msg':_0x473b69[_0x22851e('0x11c2')][_0x22851e('0x1a69')][_0x46c768]['message']});}}else _0x4b1901[_0x22851e('0x2092')]({'title':_0x473b69[_0x22851e('0x209')]?_0x22851e('0x22d')+_0x473b69['status']+_0x22851e('0xa99')+_0x473b69[_0x22851e('0x1808')]:_0x22851e('0x13fa'),'msg':_0x473b69['data']?JSON[_0x22851e('0x25e')](_0x473b69['data']['message']):_0x473b69[_0x22851e('0x174f')]()});});}function _0x118cbf(_0x9856df){var _0x41962f=_0x17c8fa;_0x30ba3e[_0x41962f('0x1a69')]=[];var _0x55ab68=_0x2abf6e['confirm']()[_0x41962f('0x4b4')](_0x41962f('0x196b'))[_0x41962f('0x13fb')](_0x41962f('0x1710'))[_0x41962f('0x7a7')](_0x41962f('0xcda'))['ok'](_0x41962f('0xbfd'))[_0x41962f('0x3b5')](_0x41962f('0x1f40'))[_0x41962f('0x1e6d')](_0x9856df);_0x2abf6e[_0x41962f('0x853')](_0x55ab68)[_0x41962f('0x21ad')](function(){var _0x42e028=_0x41962f;_0x226288[_0x42e028('0xa07')]['delete']({'id':_0x30ba3e[_0x42e028('0xa07')]['id']})[_0x42e028('0x1376')][_0x42e028('0x21ad')](function(){var _0x5df828=_0x42e028;_0x86640f()[_0x5df828('0x16a2')](_0x30ba3e[_0x5df828('0x2530')],{'id':_0x30ba3e[_0x5df828('0xa07')]['id']}),_0x4b1901[_0x5df828('0xdb1')]({'title':_0x5df828('0x1ad6'),'msg':(_0x30ba3e['interval'][_0x5df828('0x19fe')]||_0x5df828('0xa07'))+_0x5df828('0xb4a')}),_0x277dd7(_0x30ba3e[_0x5df828('0xa07')]);})['catch'](function(_0x2d7d41){var _0x425005=_0x42e028;if(_0x2d7d41[_0x425005('0x11c2')]&&_0x2d7d41[_0x425005('0x11c2')][_0x425005('0x1a69')]&&_0x2d7d41[_0x425005('0x11c2')]['errors'][_0x425005('0x577')]){_0x30ba3e[_0x425005('0x1a69')]=_0x2d7d41['data'][_0x425005('0x1a69')]||[{'message':_0x2d7d41[_0x425005('0x174f')](),'type':_0x425005('0xc15')}];for(var _0x27d237=0x0;_0x27d237<_0x2d7d41[_0x425005('0x11c2')][_0x425005('0x1a69')][_0x425005('0x577')];_0x27d237++){_0x4b1901[_0x425005('0x2092')]({'title':_0x2d7d41['data'][_0x425005('0x1a69')][_0x27d237]['type'],'msg':_0x2d7d41['data']['errors'][_0x27d237][_0x425005('0x1224')]});}}else _0x4b1901[_0x425005('0x2092')]({'title':_0x2d7d41[_0x425005('0x209')]?_0x425005('0x22d')+_0x2d7d41[_0x425005('0x209')]+_0x425005('0xa99')+_0x2d7d41[_0x425005('0x1808')]:_0x425005('0xc15'),'msg':_0x2d7d41[_0x425005('0x11c2')]?JSON['stringify'](_0x2d7d41['data'][_0x425005('0x1224')]):_0x2d7d41[_0x425005('0x1224')]||_0x2d7d41[_0x425005('0x174f')]()});});},function(){});}function _0x1d9940(_0x2db1d1){return _0x2db1d1===null?undefined:new Date(_0x2db1d1);}function _0x277dd7(_0x3876ff){_0x2abf6e['hide'](_0x3876ff);}}const _0x4fe96c=_0x5089d2;_0x27d574[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),'$mdDialog',_0x3877e3('0x21be'),_0x3877e3('0x2086'),_0x3877e3('0xa07'),_0x3877e3('0x2530'),_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x27d574(_0x3a1ca2,_0xc1058c,_0x5c726f,_0x7352a1,_0x428224,_0x122755,_0x358888,_0x87a1b0,_0x14c4e3,_0x1a097b){var _0x1c4ade=_0x3877e3,_0x262477=this;_0x262477[_0x1c4ade('0x123f')]=_0x14c4e3['getCurrentUser'](),_0x262477[_0x1c4ade('0x1a69')]=[],_0x262477[_0x1c4ade('0x4b4')]=_0x1c4ade('0x130e'),_0x262477[_0x1c4ade('0xa07')]=angular['copy'](_0x428224),_0x262477[_0x1c4ade('0x2530')]=_0x122755,_0x262477[_0x1c4ade('0x1c3e')]=![],_0x262477[_0x1c4ade('0x4ca')]=[_0x1c4ade('0x869'),_0x1c4ade('0xf50')],_0x262477[_0x1c4ade('0x5ed')]=_0x1a097b,_0x262477[_0x1c4ade('0x45e')]=_0x7352a1[_0x1c4ade('0x1d74')](),_0x262477[_0x1c4ade('0x6fd')]=_0x7352a1['getMonthNumber'](),_0x262477['monthName']=_0x7352a1[_0x1c4ade('0x1f1f')](),_0x262477['daysOfMonth']=_0x7352a1[_0x1c4ade('0x200e')]();if(!_0x262477[_0x1c4ade('0xa07')])_0x262477[_0x1c4ade('0xa07')]={'interval':_0x1c4ade('0x1cc4')},_0x262477[_0x1c4ade('0x7fa')]=_0x1c4ade('0x869'),_0x262477[_0x1c4ade('0x4b4')]=_0x1c4ade('0xe33'),_0x262477['newInterval']=!![];else{if(_0x262477[_0x1c4ade('0xa07')][_0x1c4ade('0xa07')]!==_0x1c4ade('0x1cc4')){_0x262477[_0x1c4ade('0x7fa')]=_0x1c4ade('0xf50');var _0x4aed91=_0x262477[_0x1c4ade('0xa07')][_0x1c4ade('0xa07')][_0x1c4ade('0x1af5')](','),_0x5ec231=_0x4aed91[0x0],_0x34f544=_0x4aed91[0x1],_0x5133df=_0x4aed91[0x2],_0x1383c9=_0x4aed91[0x3];if(_0x5ec231!=='*'){var _0x4d346=_0x5ec231['split']('-')[0x0],_0x41e5b9=_0x5ec231['split']('-')[0x1],_0x4c04c5;_0x4c04c5=new Date(),_0x4c04c5['setHours'](Number(_0x4d346[_0x1c4ade('0x1af5')](':')[0x0])),_0x4c04c5['setMinutes'](Number(_0x4d346[_0x1c4ade('0x1af5')](':')[0x1])),_0x262477['timeRangeFrom']=_0x4c04c5,_0x4c04c5=new Date(),_0x4c04c5[_0x1c4ade('0xb0f')](Number(_0x41e5b9[_0x1c4ade('0x1af5')](':')[0x0])),_0x4c04c5[_0x1c4ade('0x119c')](Number(_0x41e5b9[_0x1c4ade('0x1af5')](':')[0x1])),_0x262477[_0x1c4ade('0x1fbc')]=_0x4c04c5;}_0x34f544!=='*'&&(_0x262477[_0x1c4ade('0x21a5')]=_0x34f544['split']('-')[0x0],_0x262477['dayOfWeekTo']=_0x34f544[_0x1c4ade('0x1af5')]('-')[0x1]),_0x5133df!=='*'&&(_0x262477[_0x1c4ade('0x14ec')]=_0x5133df['split']('-')[0x0],_0x262477['monthDayTo']=_0x5133df[_0x1c4ade('0x1af5')]('-')[0x1]),_0x1383c9!=='*'&&(_0x262477[_0x1c4ade('0xded')]=_0x1383c9[_0x1c4ade('0x1af5')]('-')[0x0],_0x262477[_0x1c4ade('0x2633')]=_0x1383c9[_0x1c4ade('0x1af5')]('-')[0x1]);}else _0x262477['type']=_0x1c4ade('0x869');}_0x3a1ca2[_0x1c4ade('0x171b')]['id']&&!_0x262477[_0x1c4ade('0xa07')][_0x1c4ade('0xd7f')]&&(_0x262477[_0x1c4ade('0xa07')]['IntervalId']=_0x3a1ca2[_0x1c4ade('0x171b')]['id']);_0x262477[_0x1c4ade('0xa07')][_0x1c4ade('0x1ac8')]&&_0x262477[_0x1c4ade('0xa07')][_0x1c4ade('0xd7f')]&&(_0x262477['type']='list');_0x262477[_0x1c4ade('0x2bb')]=_0x6ed04f,_0x262477[_0x1c4ade('0xc2e')]=_0x285f3a,_0x262477[_0x1c4ade('0x167')]=_0x2233f5;_0x262477[_0x1c4ade('0xa07')]['application']&&(_0x14c4e3[_0x1c4ade('0x21de')](_0x1c4ade('0x1bd8'))?_0x87a1b0[_0x1c4ade('0xa07')]['get']({'fields':_0x1c4ade('0xaaf'),'IntervalId':_0x1c4ade('0x27a'),'nolimit':!![]})[_0x1c4ade('0x1376')]['then'](function(_0x4fc5a1){var _0x31ce03=_0x1c4ade;_0x262477[_0x31ce03('0x2530')]=_0x4fc5a1[_0x31ce03('0x1b33')]||[];})['catch'](function(_0x33c57d){var _0x21d803=_0x1c4ade;_0x358888[_0x21d803('0x2092')]({'title':_0x33c57d[_0x21d803('0x209')]?_0x21d803('0x22d')+_0x33c57d[_0x21d803('0x209')]+'\x20-\x20'+_0x33c57d['statusText']:_0x21d803('0xdc5'),'msg':_0x33c57d[_0x21d803('0x11c2')]?JSON['stringify'](_0x33c57d['data']):_0x33c57d[_0x21d803('0x174f')]()});}):_0x87a1b0[_0x1c4ade('0xa07')]['get']({'fields':_0x1c4ade('0xaaf'),'IntervalId':'null','nolimit':!![]})[_0x1c4ade('0x1376')][_0x1c4ade('0x21ad')](function(_0x4b6a03){var _0x54530f=_0x1c4ade;_0x262477['intervals']=_0x4b6a03[_0x54530f('0x1b33')]||[];})[_0x1c4ade('0x21ad')](function(){var _0x269452=_0x1c4ade;return _0x87a1b0[_0x269452('0xab4')]['get']({'userProfileId':_0x262477[_0x269452('0x123f')][_0x269452('0x1618')],'sectionId':0x3ec})[_0x269452('0x1376')];})['then'](function(_0x4c0eaf){var _0x512687=_0x1c4ade,_0x168c4c=_0x4c0eaf&&_0x4c0eaf[_0x512687('0x1b33')]?_0x4c0eaf['rows'][0x0]:null;if(!_0x168c4c)_0x262477[_0x512687('0x2530')]=[];else{if(!_0x168c4c[_0x512687('0x80c')])return _0x87a1b0[_0x512687('0x185e')][_0x512687('0x595')]({'sectionId':_0x168c4c['id']})[_0x512687('0x1376')][_0x512687('0x21ad')](function(_0x4787ea){var _0xca261a=_0x512687,_0x3bb67d=_0x4787ea&&_0x4787ea['rows']?_0x4787ea[_0xca261a('0x1b33')]:[],_0x18d1b4=[],_0x122a18=null;_0x262477['interval']&&(_0x122a18=_0x86640f()['find'](_0x262477[_0xca261a('0x2530')],{'name':_0x262477[_0xca261a('0xa07')][_0xca261a('0x1ac8')]})),_0x122a18&&!_0x86640f()[_0xca261a('0x2664')](_0x3bb67d,[_0xca261a('0x675'),_0x122a18['id']])&&_0x262477[_0xca261a('0x2530')][_0xca261a('0x1a52')](function(_0x191e15){var _0x2db6e1=_0xca261a;_0x191e15['id']===_0x122a18['id']&&(_0x191e15['canSelect']=![],_0x18d1b4[_0x2db6e1('0x206c')](_0x191e15));}),_0x262477[_0xca261a('0x2530')]=_0x18d1b4;});}})[_0x1c4ade('0x1c1d')](function(_0xbc4e50){var _0x5dbe48=_0x1c4ade;_0x358888[_0x5dbe48('0x2092')]({'title':_0xbc4e50[_0x5dbe48('0x209')]?_0x5dbe48('0x22d')+_0xbc4e50[_0x5dbe48('0x209')]+'\x20-\x20'+_0xbc4e50['statusText']:'SYSTEM:GET_INTERVALS','msg':_0xbc4e50[_0x5dbe48('0x11c2')]?JSON['stringify'](_0xbc4e50['data']):_0xbc4e50[_0x5dbe48('0x174f')]()});}));function _0x544bbf(){var _0x351837=_0x1c4ade;switch(_0x262477[_0x351837('0x7fa')]){case _0x351837('0x869'):case _0x351837('0x17fe'):return _0x351837('0x1cc4');case _0x351837('0xf50'):{var _0x408b3c=[];if(_0x262477[_0x351837('0x3e8')]!=='*'&&_0x262477[_0x351837('0x3e8')]&&_0x262477[_0x351837('0x1fbc')]){var _0x5325e6=(_0x262477[_0x351837('0x3e8')][_0x351837('0x10c1')]()<0xa?'0':'')+_0x262477[_0x351837('0x3e8')][_0x351837('0x10c1')]()+':'+((_0x262477['timeRangeFrom'][_0x351837('0x27ee')]()<0xa?'0':'')+_0x262477[_0x351837('0x3e8')][_0x351837('0x27ee')]()),_0x537ab8=(_0x262477['timeRangeTo'][_0x351837('0x10c1')]()<0xa?'0':'')+_0x262477[_0x351837('0x1fbc')][_0x351837('0x10c1')]()+':'+((_0x262477[_0x351837('0x1fbc')]['getMinutes']()<0xa?'0':'')+_0x262477[_0x351837('0x1fbc')][_0x351837('0x27ee')]());_0x408b3c[_0x351837('0x206c')](_0x5325e6+'-'+_0x537ab8);}else _0x408b3c[_0x351837('0x206c')]('*');return _0x262477[_0x351837('0x21a5')]?_0x262477['dayOfWeekTo']?_0x408b3c[_0x351837('0x206c')](_0x262477['dayOfWeekFrom']+'-'+_0x262477[_0x351837('0x1556')]):_0x408b3c['push'](_0x262477[_0x351837('0x21a5')]):_0x408b3c[_0x351837('0x206c')]('*'),_0x262477[_0x351837('0x14ec')]?_0x262477['monthDayTo']?_0x408b3c['push'](_0x262477[_0x351837('0x14ec')]+'-'+_0x262477[_0x351837('0x3bf')]):_0x408b3c[_0x351837('0x206c')](_0x262477[_0x351837('0x14ec')]):_0x408b3c[_0x351837('0x206c')]('*'),_0x262477[_0x351837('0xded')]?_0x262477[_0x351837('0x2633')]?_0x408b3c[_0x351837('0x206c')](_0x262477[_0x351837('0xded')]+'-'+_0x262477[_0x351837('0x2633')]):_0x408b3c[_0x351837('0x206c')](_0x262477['monthFrom']):_0x408b3c[_0x351837('0x206c')]('*'),_0x408b3c[_0x351837('0x136')]();}}}function _0x6ed04f(){var _0x4e6912=_0x1c4ade;_0x262477[_0x4e6912('0x1a69')]=[],_0x262477[_0x4e6912('0xa07')]['interval']=_0x544bbf(),_0x87a1b0[_0x4e6912('0xa07')][_0x4e6912('0x186f')](_0x262477[_0x4e6912('0xa07')])[_0x4e6912('0x1376')][_0x4e6912('0x21ad')](function(_0x56ef8a){var _0x1cd61e=_0x4e6912;_0x262477[_0x1cd61e('0x2530')][_0x1cd61e('0x206c')](_0x56ef8a),_0x358888['success']({'title':'Interval\x20properly\x20created','msg':_0x262477[_0x1cd61e('0xa07')][_0x1cd61e('0x19fe')]?_0x262477[_0x1cd61e('0xa07')][_0x1cd61e('0x19fe')]+'\x20has\x20been\x20created!':''}),_0x2233f5();})[_0x4e6912('0x1c1d')](function(_0x2d0ecf){var _0x2b10a5=_0x4e6912;console[_0x2b10a5('0x2092')](_0x2d0ecf),_0x262477['errors']=_0x2d0ecf[_0x2b10a5('0x11c2')][_0x2b10a5('0x1a69')]||[{'message':_0x2d0ecf[_0x2b10a5('0x174f')](),'type':_0x2b10a5('0x27de')}];});}function _0x285f3a(){var _0x306952=_0x1c4ade;_0x262477[_0x306952('0x1a69')]=[],_0x262477[_0x306952('0xa07')][_0x306952('0xa07')]=_0x544bbf(),_0x262477['interval'][_0x306952('0xd7f')]?(_0x262477[_0x306952('0x7fa')]!=='list'&&(_0x262477[_0x306952('0xa07')][_0x306952('0x1ac8')]=null),_0x2233f5(_0x262477[_0x306952('0xa07')])):_0x87a1b0[_0x306952('0xa07')][_0x306952('0x5ef')]({'id':_0x262477[_0x306952('0xa07')]['id']},_0x262477[_0x306952('0xa07')])[_0x306952('0x1376')]['then'](function(_0x14348a){var _0x23cf24=_0x306952,_0xdae90=_0x86640f()[_0x23cf24('0x1d2e')](_0x262477['intervals'],{'id':_0x14348a['id']});_0xdae90&&_0x86640f()[_0x23cf24('0xd0e')](_0xdae90,_0x14348a),_0x358888[_0x23cf24('0xdb1')]({'title':_0x23cf24('0x234'),'msg':_0x23cf24('0x285a')}),_0x2233f5();})[_0x306952('0x1c1d')](function(_0x386070){var _0x3593e8=_0x306952;console[_0x3593e8('0x2092')](_0x386070),_0x262477[_0x3593e8('0x1a69')]=_0x386070[_0x3593e8('0x11c2')][_0x3593e8('0x1a69')]||[{'message':_0x386070[_0x3593e8('0x174f')](),'type':_0x3593e8('0x13fa')}];});}function _0x2233f5(_0x2f476b){var _0x80a9c5=_0x1c4ade;_0xc1058c[_0x80a9c5('0x1c24')](_0x2f476b);}}const _0x27386a=_0x27d574,_0xe395b5=_0x398308['p']+'src/js/modules/main/apps/tools/views/intervals/edit/apps/interval/dialog.html/dialog-[chunkhash].html';_0x3ab3cd[_0x3877e3('0x1a81')]=['$cookies','$scope',_0x3877e3('0xa9f'),'$q',_0x3877e3('0x13c1'),'$timeout',_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x1908'),'api',_0x3877e3('0x15bc')];function _0x3ab3cd(_0x36897f,_0x5b7945,_0x42c525,_0x10cb3e,_0x173634,_0x5dc592,_0x305a18,_0x418697,_0x3aee96,_0x55554b,_0x4a2399){var _0x162e42=_0x3877e3,_0x34b395=this;_0x34b395[_0x162e42('0x123f')]=_0x4a2399['getCurrentUser'](),_0x34b395[_0x162e42('0xa07')]={},_0x34b395[_0x162e42('0x38e')]={'count':0x0,'rows':[]},_0x34b395[_0x162e42('0xe9b')]=[],_0x34b395[_0x162e42('0x5ed')],_0x34b395[_0x162e42('0x1f1a')]={'animation':0x64,'onSort':function _0x1b9cd0(_0x2b4d9b){var _0x223428=_0x162e42;_0x55554b['interval'][_0x223428('0x1777')]({'id':_0x34b395[_0x223428('0xa07')]['id']},_0x2b4d9b[_0x223428('0x1bc0')])[_0x223428('0x1376')]['then'](function(_0x410860){var _0x2675a9=_0x223428;_0x34b395[_0x2675a9('0x38e')][_0x2675a9('0x1b33')]=_0x410860;})[_0x223428('0x1c1d')](function(_0x59f0d2){var _0x2e5a71=_0x223428;_0x3aee96[_0x2e5a71('0x2092')]({'title':_0x59f0d2[_0x2e5a71('0x209')]?'API:'+_0x59f0d2[_0x2e5a71('0x209')]+_0x2e5a71('0xa99')+_0x59f0d2[_0x2e5a71('0x1808')]:_0x2e5a71('0x23df'),'msg':_0x59f0d2['data']?JSON[_0x2e5a71('0x25e')](_0x59f0d2['data']):_0x59f0d2[_0x2e5a71('0x174f')]()});});}},_0x34b395[_0x162e42('0x77')]={'fields':_0x162e42('0xa40'),'nolimit':_0x162e42('0x19bd'),'limit':0xa,'page':0x1},_0x34b395[_0x162e42('0x1d75')]=_0x562df4,_0x34b395[_0x162e42('0x15dc')]=_0x4a7286,_0x34b395['success']=_0x36e318,_0x34b395['getIntervalIntervals']=_0x46815e,_0x34b395[_0x162e42('0x74d')]=_0xb52ed,_0x34b395[_0x162e42('0x2148')]=_0xb8846b,_0x34b395['deleteIntervalInterval']=_0x36b41b,_0x34b395['deleteSelectedIntervalIntervals']=_0x5981ec;function _0x562df4(_0x4a0a39,_0x396a23){var _0x384dff=_0x162e42;_0x34b395[_0x384dff('0xa07')]=_0x4a0a39,_0x34b395[_0x384dff('0x5ed')]=typeof _0x396a23!==_0x384dff('0xddc')?_0x396a23:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x34b395['sortableTable'][_0x384dff('0x30')]=!_0x34b395[_0x384dff('0x5ed')][_0x384dff('0x6e2')]?!![]:![],_0x34b395[_0x384dff('0x77')]['id']=_0x34b395[_0x384dff('0xa07')]['id'],_0x46815e();}function _0x4a7286(_0x2e342a,_0x2c14a9){var _0x495f32=_0x162e42,_0x4c61ef=_0x305a18['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20interval?')['htmlContent'](_0x495f32('0x622')+(_0x2e342a[_0x495f32('0x19fe')]||_0x2e342a['id']&&_0x86640f()[_0x495f32('0x22e')]('interval\x20#')+_0x2e342a['id']||'interval')+''+_0x495f32('0x25e0'))[_0x495f32('0x7a7')](_0x495f32('0xb44'))['targetEvent'](_0x2c14a9)['ok']('OK')[_0x495f32('0x3b5')](_0x495f32('0x284b'));_0x305a18[_0x495f32('0x853')](_0x4c61ef)[_0x495f32('0x21ad')](function(){_0x36b41b(_0x2e342a);},function(){var _0x4b793d=_0x495f32;console['log'](_0x4b793d('0x284b'));});}function _0x36e318(_0x37a68c){var _0x161d61=_0x162e42;_0x34b395[_0x161d61('0x38e')]=_0x37a68c||{'count':0x0,'rows':[]};}function _0x46815e(){var _0x3c9748=_0x162e42;_0x34b395['query'][_0x3c9748('0x15a5')]=(_0x34b395[_0x3c9748('0x77')][_0x3c9748('0x2376')]-0x1)*_0x34b395[_0x3c9748('0x77')][_0x3c9748('0x1f4a')],_0x34b395['promise']=_0x55554b[_0x3c9748('0xa07')][_0x3c9748('0x1ceb')](_0x34b395[_0x3c9748('0x77')],_0x36e318)[_0x3c9748('0x1376')];}function _0xb52ed(_0x20c739,_0x1cedb4){var _0x1f9ff2=_0x162e42;_0x305a18[_0x1f9ff2('0x853')]({'controller':'EditAppintervalDialogController','controllerAs':'vm','templateUrl':_0xe395b5,'parent':angular['element'](_0x418697['body']),'targetEvent':_0x20c739,'clickOutsideToClose':!![],'locals':{'interval':_0x1cedb4,'intervals':_0x34b395[_0x1f9ff2('0x38e')][_0x1f9ff2('0x1b33')],'license':null,'setting':null,'crudPermissions':_0x34b395[_0x1f9ff2('0x5ed')]}});}function _0x36b41b(_0x406c1e){var _0x15c444=_0x162e42;_0x55554b[_0x15c444('0xa07')][_0x15c444('0x1164')]({'id':_0x406c1e['id']})[_0x15c444('0x1376')][_0x15c444('0x21ad')](function(){var _0x25c8e0=_0x15c444;_0x86640f()[_0x25c8e0('0x16a2')](_0x34b395[_0x25c8e0('0x38e')][_0x25c8e0('0x1b33')],{'id':_0x406c1e['id']}),_0x34b395[_0x25c8e0('0x38e')][_0x25c8e0('0x205f')]-=0x1,!_0x34b395[_0x25c8e0('0x38e')][_0x25c8e0('0x1b33')][_0x25c8e0('0x577')]&&_0x46815e(),_0x3aee96[_0x25c8e0('0xdb1')]({'title':_0x25c8e0('0x20ef'),'msg':_0x406c1e[_0x25c8e0('0x19fe')]?_0x406c1e[_0x25c8e0('0x19fe')]+_0x25c8e0('0xb4a'):''});})[_0x15c444('0x1c1d')](function(_0x1198bc){var _0x4ce8f6=_0x15c444;if(_0x1198bc[_0x4ce8f6('0x11c2')]&&_0x1198bc[_0x4ce8f6('0x11c2')][_0x4ce8f6('0x1a69')]&&_0x1198bc[_0x4ce8f6('0x11c2')]['errors'][_0x4ce8f6('0x577')]){_0x34b395['errors']=_0x1198bc['data'][_0x4ce8f6('0x1a69')]||[{'message':_0x1198bc[_0x4ce8f6('0x174f')](),'type':_0x4ce8f6('0x259e')}];for(var _0x472785=0x0;_0x472785<_0x1198bc[_0x4ce8f6('0x11c2')]['errors'][_0x4ce8f6('0x577')];_0x472785++){_0x3aee96[_0x4ce8f6('0x2092')]({'title':_0x1198bc[_0x4ce8f6('0x11c2')]['errors'][_0x472785][_0x4ce8f6('0x7fa')],'msg':_0x1198bc['data'][_0x4ce8f6('0x1a69')][_0x472785]['message']});}}else _0x3aee96['error']({'title':_0x1198bc[_0x4ce8f6('0x209')]?_0x4ce8f6('0x22d')+_0x1198bc[_0x4ce8f6('0x209')]+'\x20-\x20'+_0x1198bc['statusText']:_0x4ce8f6('0x259e'),'msg':_0x1198bc['data']?JSON[_0x4ce8f6('0x25e')](_0x1198bc['data'][_0x4ce8f6('0x1224')]):_0x1198bc['message']||_0x1198bc['toString']()});});}function _0xb8846b(){var _0x464649=_0x162e42,_0x3d34de=angular['copy'](_0x34b395['selectedIntervalIntervals']);return _0x34b395[_0x464649('0xe9b')]=[],_0x3d34de;}function _0x5981ec(_0x5cb333){var _0x493fa7=_0x162e42,_0x19fbcf=_0x305a18['confirm']()[_0x493fa7('0x4b4')](_0x493fa7('0x21ca'))[_0x493fa7('0x276b')](_0x493fa7('0x622')+_0x34b395[_0x493fa7('0xe9b')][_0x493fa7('0x577')]+_0x493fa7('0xd74')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x493fa7('0xa61'))[_0x493fa7('0x1e6d')](_0x5cb333)['ok']('OK')[_0x493fa7('0x3b5')](_0x493fa7('0x284b'));_0x305a18['show'](_0x19fbcf)[_0x493fa7('0x21ad')](function(){var _0x2043f3=_0x493fa7;_0x34b395[_0x2043f3('0xe9b')][_0x2043f3('0x1a52')](function(_0x41bec6){_0x36b41b(_0x41bec6);}),_0x34b395[_0x2043f3('0xe9b')]=[];});}var _0x267030=!![],_0x1e06d5=0x1;_0x5b7945[_0x162e42('0x10e8')](_0x162e42('0x10ff'),function(_0xa1074f,_0x39fc2a){var _0x5f1caf=_0x162e42;_0x267030?_0x5dc592(function(){_0x267030=![];}):(!_0x39fc2a&&(_0x1e06d5=_0x34b395[_0x5f1caf('0x77')][_0x5f1caf('0x2376')]),_0xa1074f!==_0x39fc2a&&(_0x34b395[_0x5f1caf('0x77')]['page']=0x1),!_0xa1074f&&(_0x34b395[_0x5f1caf('0x77')][_0x5f1caf('0x2376')]=_0x1e06d5),_0x46815e());});}const _0x180010=_0x3ab3cd;_0x28b65e[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x13c1'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0xa07'),'userProfileSection'];function _0x28b65e(_0x1bc159,_0x271aeb,_0x50159c,_0x421c38,_0x11a80b,_0x47e1b5,_0x22754e,_0x433295,_0x107434,_0x1a3fae,_0x438b43,_0x1a2744){var _0x2b7735=_0x3877e3,_0x1a44c4=this;_0x1a44c4[_0x2b7735('0x123f')]=_0x1a3fae['getCurrentUser'](),_0x1a44c4['license']=_0x47e1b5,_0x1a44c4[_0x2b7735('0x21e')]=_0x22754e,_0x1a44c4['passwordPattern']=_0x1a44c4['setting'][_0x2b7735('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1a44c4[_0x2b7735('0x626')]=_0x271aeb[_0x2b7735('0x1162')]()+_0x2b7735('0x22a9')+_0x271aeb['host'](),_0x1a44c4[_0x2b7735('0xa07')]=_0x438b43||_0x1bc159['params']['interval']||{},_0x1a44c4[_0x2b7735('0xab4')]=_0x1a2744&&_0x1a2744[_0x2b7735('0x205f')]==0x1?_0x1a2744[_0x2b7735('0x1b33')][0x0]:null,_0x1a44c4[_0x2b7735('0x5ed')]=_0x1a3fae[_0x2b7735('0x1778')](_0x1a44c4[_0x2b7735('0xab4')]?_0x1a44c4['userProfileSection'][_0x2b7735('0x5ed')]:null),_0x1a44c4[_0x2b7735('0x126a')]={},_0x1a44c4['selectedTab']=_0x1bc159[_0x2b7735('0x171b')]['tab']||0x0,_0x1a44c4[_0x2b7735('0x95b')]=_0x107434[_0x2b7735('0x231c')],_0x1a44c4['gotoIntervals']=_0x36ef57,_0x1a44c4[_0x2b7735('0xc2e')]=_0x417236;function _0x36ef57(){var _0x4270bc=_0x2b7735;_0x1bc159['go'](_0x4270bc('0x1e12'),{},{'reload':'app.tools.intervals'});}function _0x417236(){var _0x2ab753=_0x2b7735;_0x433295[_0x2ab753('0xa07')][_0x2ab753('0x5ef')]({'id':_0x1a44c4[_0x2ab753('0xa07')]['id']},_0x1a44c4['interval'])['$promise']['then'](function(){var _0x878c7c=_0x2ab753;_0x107434[_0x878c7c('0xdb1')]({'title':_0x878c7c('0x1e87'),'msg':_0x1a44c4[_0x878c7c('0xa07')][_0x878c7c('0x19fe')]?_0x1a44c4[_0x878c7c('0xa07')][_0x878c7c('0x19fe')]+_0x878c7c('0xa8d'):''});})['catch'](function(_0x12e9f5){var _0x89c7a1=_0x2ab753;_0x107434[_0x89c7a1('0x2092')]({'title':_0x12e9f5['status']?_0x89c7a1('0x22d')+_0x12e9f5['status']+_0x89c7a1('0xa99')+_0x12e9f5['statusText']:_0x89c7a1('0x259e'),'msg':_0x12e9f5[_0x89c7a1('0x11c2')]?JSON['stringify'](_0x12e9f5['data']):_0x12e9f5[_0x89c7a1('0x174f')]()});});}}const _0x46fd77=_0x28b65e,_0x241ecf=_0x398308['p']+_0x3877e3('0x1bd2');_0x27656f[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),'$mdSidenav','$mdDialog','$document',_0x3877e3('0x2313'),_0x3877e3('0x13c1'),_0x3877e3('0x2530'),_0x3877e3('0x758'),_0x3877e3('0xab4'),'api',_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),'license',_0x3877e3('0x21e')];function _0x27656f(_0x20e0f8,_0x2a108e,_0x29750d,_0x8d980b,_0x1df717,_0x589502,_0x5f5284,_0x372e03,_0x49f932,_0x4cccc2,_0x411b3a,_0x493ceb,_0x25eeee,_0x425898,_0xec6825,_0x553748,_0x309284){var _0x2d6195=_0x3877e3,_0x3bca43=this;_0x3bca43[_0x2d6195('0x2ff')]=_0x553748,_0x3bca43[_0x2d6195('0x21e')]=_0x309284,_0x3bca43[_0x2d6195('0x123f')]=_0xec6825[_0x2d6195('0x15ed')](),_0x3bca43[_0x2d6195('0x2530')]=_0x49f932||{'count':0x0,'rows':[]},_0x3bca43['userProfile']=_0x4cccc2,_0x3bca43['userProfileSection']=_0x411b3a&&_0x411b3a[_0x2d6195('0x205f')]==0x1?_0x411b3a[_0x2d6195('0x1b33')][0x0]:null,_0x3bca43[_0x2d6195('0x5ed')]=_0xec6825['parseCrudPermissions'](_0x3bca43[_0x2d6195('0xab4')]?_0x3bca43[_0x2d6195('0xab4')][_0x2d6195('0x5ed')]:null),_0x3bca43[_0x2d6195('0x1897')]=_0x2d6195('0x2530'),_0x3bca43[_0x2d6195('0x11dc')]='',_0x3bca43[_0x2d6195('0x18cf')]=null,_0x3bca43[_0x2d6195('0xc66')]=[],_0x3bca43[_0x2d6195('0x77')]={'fields':_0x2d6195('0x145a'),'sort':_0x2d6195('0x33'),'IntervalId':_0x2d6195('0x27a'),'limit':0xa,'page':0x1},_0x3bca43['editstate']=_0xd9e27f,_0x3bca43[_0x2d6195('0x2593')]=_0x286f30,_0x3bca43[_0x2d6195('0xdb1')]=_0x34f269,_0x3bca43[_0x2d6195('0x1ceb')]=_0x495e6f,_0x3bca43[_0x2d6195('0x1c9')]=_0x53436c,_0x3bca43[_0x2d6195('0xa09')]=_0x1c785d,_0x3bca43[_0x2d6195('0xfc4')]=_0x548b26,_0x3bca43[_0x2d6195('0xd60')]=_0x3bbd9,_0x3bca43[_0x2d6195('0xff4')]=_0x1011ce,_0x3bca43[_0x2d6195('0x1d4e')]=_0x467883;function _0xd9e27f(_0x15c926){var _0x210586=_0x2d6195;_0x29750d['go'](_0x210586('0x727'),{'id':_0x15c926['id'],'interval':_0x15c926,'crudPermissions':_0x3bca43['crudPermissions']});}function _0x286f30(_0x4450ce,_0x35573a){var _0x1cf5fc=_0x2d6195,_0x1e46af=_0x1df717[_0x1cf5fc('0xa33')]()[_0x1cf5fc('0x4b4')](_0x1cf5fc('0x25b6')+_0x86640f()[_0x1cf5fc('0x2159')]('interval')+'?')[_0x1cf5fc('0x276b')](_0x1cf5fc('0x622')+(_0x4450ce['name']||_0x1cf5fc('0xa07'))+_0x1cf5fc('0x2135')+_0x1cf5fc('0x25e0'))[_0x1cf5fc('0x7a7')](_0x1cf5fc('0xb44'))[_0x1cf5fc('0x1e6d')](_0x35573a)['ok']('OK')['cancel']('CANCEL');_0x1df717[_0x1cf5fc('0x853')](_0x1e46af)['then'](function(){_0x1c785d(_0x4450ce);},function(){var _0x3a3b2b=_0x1cf5fc;console[_0x3a3b2b('0x6fb')](_0x3a3b2b('0x284b'));});}var _0x38a348=!![],_0x4156e4=0x1;_0x20e0f8[_0x2d6195('0x10e8')]('vm.query.filter',function(_0x501f34,_0x184074){var _0x4718fc=_0x2d6195;_0x38a348?_0x5f5284(function(){_0x38a348=![];}):(!_0x184074&&(_0x4156e4=_0x3bca43[_0x4718fc('0x77')][_0x4718fc('0x2376')]),_0x501f34!==_0x184074&&(_0x3bca43[_0x4718fc('0x77')][_0x4718fc('0x2376')]=0x1),!_0x501f34&&(_0x3bca43[_0x4718fc('0x77')][_0x4718fc('0x2376')]=_0x4156e4),_0x3bca43['getIntervals']());});function _0x34f269(_0x1f4c11){var _0x55af8a=_0x2d6195;_0x3bca43[_0x55af8a('0x2530')]=_0x1f4c11||{'count':0x0,'rows':[]};}function _0x495e6f(){var _0xa89550=_0x2d6195;_0x3bca43[_0xa89550('0x77')][_0xa89550('0x15a5')]=(_0x3bca43[_0xa89550('0x77')][_0xa89550('0x2376')]-0x1)*_0x3bca43[_0xa89550('0x77')]['limit'],_0xec6825[_0xa89550('0x21de')]('admin')?_0x3bca43[_0xa89550('0x71b')]=_0x493ceb['interval'][_0xa89550('0x595')](_0x3bca43[_0xa89550('0x77')],_0x34f269)[_0xa89550('0x1376')]:(_0x3bca43['query']['id']=_0x3bca43[_0xa89550('0x758')]['id'],_0x3bca43[_0xa89550('0x77')][_0xa89550('0x26ad')]=_0xa89550('0x148c'),_0x3bca43[_0xa89550('0x71b')]=_0x493ceb[_0xa89550('0x758')][_0xa89550('0x321')](_0x3bca43['query'],_0x34f269)[_0xa89550('0x1376')]);}function _0x53436c(_0x21c087,_0x1f0463){var _0x388d6b=_0x2d6195;_0x1df717[_0x388d6b('0x853')]({'controller':_0x388d6b('0x656'),'controllerAs':'vm','templateUrl':_0x241ecf,'parent':angular[_0x388d6b('0x1676')](_0x589502[_0x388d6b('0x2452')]),'targetEvent':_0x21c087,'clickOutsideToClose':!![],'locals':{'interval':_0x1f0463,'intervals':_0x3bca43['intervals'][_0x388d6b('0x1b33')],'license':_0x3bca43[_0x388d6b('0x2ff')],'setting':_0x3bca43[_0x388d6b('0x21e')],'crudPermissions':_0x3bca43[_0x388d6b('0x5ed')]}});}function _0x1c785d(_0x56c37c){var _0x55565c=_0x2d6195;_0x493ceb[_0x55565c('0xa07')][_0x55565c('0x1164')]({'id':_0x56c37c['id']})[_0x55565c('0x1376')]['then'](function(){var _0x4836fd=_0x55565c;_0x86640f()['remove'](_0x3bca43[_0x4836fd('0x2530')][_0x4836fd('0x1b33')],{'id':_0x56c37c['id']}),_0x3bca43[_0x4836fd('0x2530')][_0x4836fd('0x205f')]-=0x1,!_0x3bca43[_0x4836fd('0x2530')][_0x4836fd('0x1b33')][_0x4836fd('0x577')]&&_0x3bca43['getIntervals'](),_0x425898[_0x4836fd('0xdb1')]({'title':_0x86640f()[_0x4836fd('0x2159')]('Interval')+'\x20deleted!','msg':_0x56c37c[_0x4836fd('0x19fe')]?_0x56c37c['name']+'\x20has\x20been\x20deleted!':''});})[_0x55565c('0x1c1d')](function(_0x17f300){var _0x12b149=_0x55565c;if(_0x17f300['data']&&_0x17f300[_0x12b149('0x11c2')][_0x12b149('0x1a69')]&&_0x17f300[_0x12b149('0x11c2')][_0x12b149('0x1a69')][_0x12b149('0x577')]){_0x3bca43[_0x12b149('0x1a69')]=_0x17f300['data'][_0x12b149('0x1a69')]||[{'message':_0x17f300['toString'](),'type':_0x12b149('0x180b')}];for(var _0x1742cc=0x0;_0x1742cc<_0x17f300[_0x12b149('0x11c2')][_0x12b149('0x1a69')]['length'];_0x1742cc++){_0x425898[_0x12b149('0x2092')]({'title':_0x17f300['data'][_0x12b149('0x1a69')][_0x1742cc][_0x12b149('0x7fa')],'msg':_0x17f300[_0x12b149('0x11c2')][_0x12b149('0x1a69')][_0x1742cc][_0x12b149('0x1224')]});}}else _0x425898[_0x12b149('0x2092')]({'title':_0x17f300['status']?_0x12b149('0x22d')+_0x17f300[_0x12b149('0x209')]+_0x12b149('0xa99')+_0x17f300[_0x12b149('0x1808')]:_0x12b149('0x180b'),'msg':_0x17f300[_0x12b149('0x11c2')]?JSON[_0x12b149('0x25e')](_0x17f300['data']['message']):_0x17f300[_0x12b149('0x1224')]||_0x17f300['toString']()});});}function _0x548b26(){var _0x5ec1a4=_0x2d6195,_0x120772=angular[_0x5ec1a4('0xd75')](_0x3bca43['selectedIntervals']);return _0x3bca43['selectedIntervals']=[],_0x120772;}function _0x3bbd9(_0x474c98){var _0x5a45e5=_0x2d6195,_0x44ca15=_0x1df717[_0x5a45e5('0xa33')]()[_0x5a45e5('0x4b4')](_0x5a45e5('0x21ca'))[_0x5a45e5('0x276b')](_0x5a45e5('0x622')+_0x3bca43['selectedIntervals'][_0x5a45e5('0x577')]+'\x20selected'+_0x5a45e5('0x25e0'))[_0x5a45e5('0x7a7')](_0x5a45e5('0x18d4'))[_0x5a45e5('0x1e6d')](_0x474c98)['ok']('OK')[_0x5a45e5('0x3b5')](_0x5a45e5('0x284b'));_0x1df717[_0x5a45e5('0x853')](_0x44ca15)[_0x5a45e5('0x21ad')](function(){var _0x5aa06b=_0x5a45e5;_0x3bca43[_0x5aa06b('0xc66')][_0x5aa06b('0x1a52')](function(_0x3965d6){_0x1c785d(_0x3965d6);}),_0x3bca43[_0x5aa06b('0xc66')]=[];});}function _0x1011ce(){var _0x4f914a=_0x2d6195;_0x3bca43[_0x4f914a('0xc66')]=[];}function _0x467883(){var _0x4a0503=_0x2d6195;_0x3bca43[_0x4a0503('0xc66')]=_0x3bca43['intervals']['rows'];}}const _0x38a46f=_0x27656f;_0x28740d[_0x3877e3('0x1a81')]=['$scope','$state','$location',_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),'pauses',_0x3877e3('0x1e26'),'api',_0x3877e3('0x15bc'),'license',_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x28740d(_0x2ac379,_0x3a4cf2,_0x4985c2,_0x442c6a,_0x3de8fb,_0x158d21,_0x361d0f,_0x4bc539,_0x332b6f,_0x2ec3a2,_0x1d4d31,_0x41ef44,_0x5898fd,_0x41dbcc){var _0x417ed4=_0x3877e3,_0x501eed=this;_0x501eed[_0x417ed4('0x123f')]=_0x1d4d31[_0x417ed4('0x15ed')](),_0x501eed['errors']=[],_0x501eed[_0x417ed4('0x21e')]=_0x5898fd,_0x501eed[_0x417ed4('0x2ff')]=_0x41ef44,_0x501eed[_0x417ed4('0x5ed')]=_0x41dbcc,_0x501eed[_0x417ed4('0x126a')]={},_0x501eed[_0x417ed4('0x1432')]=_0x501eed[_0x417ed4('0x21e')]&&_0x501eed[_0x417ed4('0x21e')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x501eed[_0x417ed4('0x4b4')]=_0x417ed4('0x10a2'),_0x501eed[_0x417ed4('0x1e26')]=angular[_0x417ed4('0xd75')](_0x332b6f),_0x501eed[_0x417ed4('0x1fc7')]=_0x4bc539,_0x501eed['newPause']=![];!_0x501eed[_0x417ed4('0x1e26')]&&(_0x501eed['pause']={},_0x501eed[_0x417ed4('0x4b4')]=_0x417ed4('0x27dc'),_0x501eed[_0x417ed4('0xabd')]=!![]);_0x501eed[_0x417ed4('0x4aa')]=_0x1cbfe7,_0x501eed[_0x417ed4('0x257a')]=_0x27e68d,_0x501eed[_0x417ed4('0x1afd')]=_0xe00ea8,_0x501eed[_0x417ed4('0x279')]=_0x345479,_0x501eed[_0x417ed4('0x167')]=_0x24367f;function _0x1cbfe7(){var _0x4498bd=_0x417ed4;_0x501eed[_0x4498bd('0x1a69')]=[],_0x2ec3a2['pause']['save'](_0x501eed[_0x4498bd('0x1e26')])[_0x4498bd('0x1376')][_0x4498bd('0x21ad')](function(_0x1354a1){var _0x2b3934=_0x4498bd;_0x501eed[_0x2b3934('0x1fc7')][_0x2b3934('0xd0c')](_0x1354a1[_0x2b3934('0x3bc')]()),_0x361d0f[_0x2b3934('0xdb1')]({'title':_0x2b3934('0x2535'),'msg':_0x501eed[_0x2b3934('0x1e26')][_0x2b3934('0x19fe')]?_0x501eed[_0x2b3934('0x1e26')][_0x2b3934('0x19fe')]+'\x20has\x20been\x20created!':''}),_0x24367f(_0x1354a1);})[_0x4498bd('0x1c1d')](function(_0x3e6eda){var _0x43a1ce=_0x4498bd;if(_0x3e6eda[_0x43a1ce('0x11c2')]&&_0x3e6eda[_0x43a1ce('0x11c2')]['errors']&&_0x3e6eda[_0x43a1ce('0x11c2')]['errors']['length']){_0x501eed[_0x43a1ce('0x1a69')]=_0x3e6eda['data'][_0x43a1ce('0x1a69')]||[{'message':_0x3e6eda[_0x43a1ce('0x174f')](),'type':_0x43a1ce('0x1484')}];for(var _0x4cfa61=0x0;_0x4cfa61<_0x3e6eda['data'][_0x43a1ce('0x1a69')]['length'];_0x4cfa61+=0x1){_0x361d0f[_0x43a1ce('0x2092')]({'title':_0x3e6eda[_0x43a1ce('0x11c2')]['errors'][_0x4cfa61][_0x43a1ce('0x7fa')],'msg':_0x3e6eda[_0x43a1ce('0x11c2')][_0x43a1ce('0x1a69')][_0x4cfa61][_0x43a1ce('0x1224')]});}}else _0x361d0f['error']({'title':_0x3e6eda[_0x43a1ce('0x209')]?_0x43a1ce('0x22d')+_0x3e6eda[_0x43a1ce('0x209')]+_0x43a1ce('0xa99')+_0x3e6eda['statusText']:'api.pause.save','msg':_0x3e6eda[_0x43a1ce('0x11c2')]?JSON[_0x43a1ce('0x25e')](_0x3e6eda['data'][_0x43a1ce('0x1224')]):_0x3e6eda['toString']()});});}function _0x27e68d(){var _0x2f1c02=_0x417ed4;_0x501eed['errors']=[],_0x2ec3a2[_0x2f1c02('0x1e26')]['update']({'id':_0x501eed['pause']['id']},_0x501eed[_0x2f1c02('0x1e26')])[_0x2f1c02('0x1376')][_0x2f1c02('0x21ad')](function(_0xa1f69d){var _0x4e66bb=_0x2f1c02,_0x5f2a65=_0x86640f()[_0x4e66bb('0x1d2e')](_0x501eed[_0x4e66bb('0x1fc7')],{'id':_0xa1f69d['id']});_0x5f2a65&&_0x86640f()[_0x4e66bb('0xd0e')](_0x5f2a65,_0x86640f()[_0x4e66bb('0xc50')](_0xa1f69d[_0x4e66bb('0x3bc')](),_0x86640f()[_0x4e66bb('0x223b')](_0x5f2a65))),_0x361d0f[_0x4e66bb('0xdb1')]({'title':_0x4e66bb('0x750'),'msg':_0x501eed[_0x4e66bb('0x1e26')][_0x4e66bb('0x19fe')]?_0x501eed[_0x4e66bb('0x1e26')][_0x4e66bb('0x19fe')]+'\x20has\x20been\x20saved!':''}),_0x24367f(_0xa1f69d);})['catch'](function(_0x136212){var _0x126f0a=_0x2f1c02;if(_0x136212[_0x126f0a('0x11c2')]&&_0x136212[_0x126f0a('0x11c2')][_0x126f0a('0x1a69')]&&_0x136212[_0x126f0a('0x11c2')][_0x126f0a('0x1a69')][_0x126f0a('0x577')]){_0x501eed[_0x126f0a('0x1a69')]=_0x136212['data'][_0x126f0a('0x1a69')]||[{'message':_0x136212[_0x126f0a('0x174f')](),'type':_0x126f0a('0x101c')}];for(var _0x6280a3=0x0;_0x6280a3<_0x136212[_0x126f0a('0x11c2')][_0x126f0a('0x1a69')]['length'];_0x6280a3++){_0x361d0f[_0x126f0a('0x2092')]({'title':_0x136212[_0x126f0a('0x11c2')][_0x126f0a('0x1a69')][_0x6280a3][_0x126f0a('0x7fa')],'msg':_0x136212[_0x126f0a('0x11c2')][_0x126f0a('0x1a69')][_0x6280a3]['message']});}}else _0x361d0f[_0x126f0a('0x2092')]({'title':_0x136212[_0x126f0a('0x209')]?_0x126f0a('0x22d')+_0x136212[_0x126f0a('0x209')]+_0x126f0a('0xa99')+_0x136212['statusText']:'api.pause.update','msg':_0x136212[_0x126f0a('0x11c2')]?JSON[_0x126f0a('0x25e')](_0x136212['data'][_0x126f0a('0x1224')]):_0x136212['toString']()});});}function _0xe00ea8(_0x3a101a){var _0x3163ff=_0x417ed4;_0x501eed[_0x3163ff('0x1a69')]=[];var _0x50522a=_0x442c6a[_0x3163ff('0xa33')]()[_0x3163ff('0x4b4')](_0x3163ff('0x196b'))['content'](_0x3163ff('0xb69'))[_0x3163ff('0x7a7')](_0x3163ff('0x26ff'))['ok']('Delete')[_0x3163ff('0x3b5')](_0x3163ff('0x1f40'))['targetEvent'](_0x3a101a);_0x442c6a['show'](_0x50522a)[_0x3163ff('0x21ad')](function(){var _0x396800=_0x3163ff;_0x2ec3a2[_0x396800('0x1e26')][_0x396800('0x1164')]({'id':_0x501eed['pause']['id']})[_0x396800('0x1376')][_0x396800('0x21ad')](function(){var _0xdf621d=_0x396800;_0x86640f()[_0xdf621d('0x16a2')](_0x501eed[_0xdf621d('0x1fc7')],{'id':_0x501eed[_0xdf621d('0x1e26')]['id']}),_0x361d0f[_0xdf621d('0xdb1')]({'title':_0xdf621d('0x3a2'),'msg':(_0x501eed[_0xdf621d('0x1e26')][_0xdf621d('0x19fe')]||_0xdf621d('0x1e26'))+'\x20has\x20been\x20deleted!'}),_0x24367f(_0x501eed[_0xdf621d('0x1e26')]);})[_0x396800('0x1c1d')](function(_0x48b3eb){var _0x35fa53=_0x396800;if(_0x48b3eb[_0x35fa53('0x11c2')]&&_0x48b3eb[_0x35fa53('0x11c2')]['errors']&&_0x48b3eb[_0x35fa53('0x11c2')][_0x35fa53('0x1a69')][_0x35fa53('0x577')]){_0x501eed[_0x35fa53('0x1a69')]=_0x48b3eb[_0x35fa53('0x11c2')][_0x35fa53('0x1a69')]||[{'message':_0x48b3eb[_0x35fa53('0x174f')](),'type':'api.pause.delete'}];for(var _0x446cc5=0x0;_0x446cc5<_0x48b3eb[_0x35fa53('0x11c2')][_0x35fa53('0x1a69')][_0x35fa53('0x577')];_0x446cc5++){_0x361d0f['error']({'title':_0x48b3eb[_0x35fa53('0x11c2')][_0x35fa53('0x1a69')][_0x446cc5]['type'],'msg':_0x48b3eb['data'][_0x35fa53('0x1a69')][_0x446cc5]['message']});}}else _0x361d0f[_0x35fa53('0x2092')]({'title':_0x48b3eb[_0x35fa53('0x209')]?_0x35fa53('0x22d')+_0x48b3eb[_0x35fa53('0x209')]+_0x35fa53('0xa99')+_0x48b3eb[_0x35fa53('0x1808')]:'api.pause.delete','msg':_0x48b3eb[_0x35fa53('0x11c2')]?JSON['stringify'](_0x48b3eb[_0x35fa53('0x11c2')][_0x35fa53('0x1224')]):_0x48b3eb[_0x35fa53('0x1224')]||_0x48b3eb[_0x35fa53('0x174f')]()});});},function(){});}function _0x345479(_0x4eeb78){return _0x4eeb78===null?undefined:new Date(_0x4eeb78);}function _0x24367f(_0x99f962){var _0x34bd75=_0x417ed4;_0x442c6a[_0x34bd75('0x1c24')](_0x99f962);}}const _0x2fe9b5=_0x28740d,_0x5a583c=_0x398308['p']+_0x3877e3('0xf22');_0x15fd81['$inject']=['$scope',_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x13c1'),_0x3877e3('0x1fc7'),_0x3877e3('0x758'),'userProfileSection',_0x3877e3('0xccd'),'msUtils',_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x15fd81(_0x2d2720,_0x4213b9,_0x6afa23,_0x170079,_0x1dd046,_0x903459,_0x51dcd0,_0x23c691,_0x49e0b8,_0x38fd3f,_0x18dadb,_0x57622d,_0x291c3a,_0x42edf7,_0x33ede4,_0x49b151,_0xffab63){var _0x2029d2=_0x3877e3,_0x40f3ff=this;_0x40f3ff['license']=_0x49b151,_0x40f3ff[_0x2029d2('0x21e')]=_0xffab63,_0x40f3ff[_0x2029d2('0x123f')]=_0x33ede4[_0x2029d2('0x15ed')](),_0x40f3ff[_0x2029d2('0x1fc7')]=_0x49e0b8||{'count':0x0,'rows':[]},_0x40f3ff[_0x2029d2('0x758')]=_0x38fd3f,_0x40f3ff['userProfileSection']=_0x18dadb&&_0x18dadb[_0x2029d2('0x205f')]==0x1?_0x18dadb[_0x2029d2('0x1b33')][0x0]:null,_0x40f3ff['crudPermissions']=_0x33ede4[_0x2029d2('0x1778')](_0x40f3ff[_0x2029d2('0xab4')]?_0x40f3ff[_0x2029d2('0xab4')][_0x2029d2('0x5ed')]:null),_0x40f3ff[_0x2029d2('0x1897')]=_0x2029d2('0x1fc7'),_0x40f3ff['listOrder']='',_0x40f3ff[_0x2029d2('0x18cf')]=null,_0x40f3ff['selectedPauses']=[],_0x40f3ff['query']={'fields':_0x2029d2('0x145a'),'sort':_0x2029d2('0x33'),'limit':0xa,'page':0x1},_0x40f3ff[_0x2029d2('0x1a97')]=_0x54178e,_0x40f3ff[_0x2029d2('0x2593')]=_0x849295,_0x40f3ff[_0x2029d2('0xdb1')]=_0x23e056,_0x40f3ff[_0x2029d2('0x12e8')]=_0x422804,_0x40f3ff[_0x2029d2('0x1e9e')]=_0x13c65c,_0x40f3ff[_0x2029d2('0x1afd')]=_0x5e109e,_0x40f3ff['exportSelectedPauses']=_0x5151d9,_0x40f3ff[_0x2029d2('0xb7b')]=_0x4b56ff,_0x40f3ff['deselectPauses']=_0x2f365e,_0x40f3ff[_0x2029d2('0x2436')]=_0x4aadae;function _0x54178e(_0x5c53e7,_0x779e72){var _0x2c3ff4=_0x2029d2;_0x1dd046['show']({'controller':_0x2c3ff4('0x408'),'controllerAs':'vm','templateUrl':_0x5a583c,'parent':angular[_0x2c3ff4('0x1676')](_0x903459[_0x2c3ff4('0x2452')]),'targetEvent':_0x779e72,'clickOutsideToClose':!![],'locals':{'pause':_0x5c53e7,'pauses':_0x40f3ff[_0x2c3ff4('0x1fc7')][_0x2c3ff4('0x1b33')],'license':_0x40f3ff['license'],'setting':null,'crudPermissions':_0x40f3ff[_0x2c3ff4('0x5ed')]}});}function _0x849295(_0x2a9e6d,_0x1fb239){var _0x386525=_0x2029d2,_0x103b63=_0x1dd046[_0x386525('0xa33')]()[_0x386525('0x4b4')](_0x386525('0x25b6')+_0x86640f()[_0x386525('0x2159')]('pause')+'?')[_0x386525('0x276b')](_0x386525('0x622')+(_0x2a9e6d[_0x386525('0x19fe')]||'pause')+''+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20pause')[_0x386525('0x1e6d')](_0x1fb239)['ok']('OK')[_0x386525('0x3b5')](_0x386525('0x284b'));_0x1dd046['show'](_0x103b63)[_0x386525('0x21ad')](function(){_0x5e109e(_0x2a9e6d);},function(){var _0x2778a9=_0x386525;console[_0x2778a9('0x6fb')](_0x2778a9('0x284b'));});}var _0x134a4c=!![],_0x27e48a=0x1;_0x2d2720[_0x2029d2('0x10e8')](_0x2029d2('0x1948'),function(_0x5c4530,_0x25fcf9){var _0xb539d7=_0x2029d2;_0x134a4c?_0x51dcd0(function(){_0x134a4c=![];}):(!_0x25fcf9&&(_0x27e48a=_0x40f3ff[_0xb539d7('0x77')]['page']),_0x5c4530!==_0x25fcf9&&(_0x40f3ff[_0xb539d7('0x77')]['page']=0x1),!_0x5c4530&&(_0x40f3ff[_0xb539d7('0x77')][_0xb539d7('0x2376')]=_0x27e48a),_0x40f3ff[_0xb539d7('0x12e8')]());});function _0x23e056(_0x30a8bb){var _0xed3d92=_0x2029d2;_0x40f3ff[_0xed3d92('0x1fc7')]=_0x30a8bb||{'count':0x0,'rows':[]};}function _0x422804(){var _0x299abc=_0x2029d2;_0x40f3ff[_0x299abc('0x77')][_0x299abc('0x15a5')]=(_0x40f3ff['query'][_0x299abc('0x2376')]-0x1)*_0x40f3ff[_0x299abc('0x77')][_0x299abc('0x1f4a')],_0x33ede4[_0x299abc('0x21de')]('admin')?_0x40f3ff['promise']=_0x57622d['pause']['get'](_0x40f3ff[_0x299abc('0x77')],_0x23e056)[_0x299abc('0x1376')]:(_0x40f3ff['query']['id']=_0x40f3ff[_0x299abc('0x758')]['id'],_0x40f3ff[_0x299abc('0x77')][_0x299abc('0x26ad')]=_0x299abc('0x1249'),_0x40f3ff[_0x299abc('0x71b')]=_0x57622d[_0x299abc('0x758')][_0x299abc('0x321')](_0x40f3ff[_0x299abc('0x77')],_0x23e056)[_0x299abc('0x1376')]);}function _0x13c65c(_0x3e43cc,_0x1754e3){var _0xfa7d75=_0x2029d2;_0x1dd046[_0xfa7d75('0x853')]({'controller':_0xfa7d75('0x408'),'controllerAs':'vm','templateUrl':_0x5a583c,'parent':angular[_0xfa7d75('0x1676')](_0x903459[_0xfa7d75('0x2452')]),'targetEvent':_0x3e43cc,'clickOutsideToClose':!![],'locals':{'pause':_0x1754e3,'pauses':_0x40f3ff[_0xfa7d75('0x1fc7')]['rows'],'license':_0x40f3ff[_0xfa7d75('0x2ff')],'setting':_0x40f3ff[_0xfa7d75('0x21e')],'crudPermissions':_0x40f3ff[_0xfa7d75('0x5ed')]}});}function _0x5e109e(_0x299649){var _0x10b787=_0x2029d2;_0x57622d['pause'][_0x10b787('0x1164')]({'id':_0x299649['id']})['$promise']['then'](function(){var _0x48eac6=_0x10b787;_0x86640f()[_0x48eac6('0x16a2')](_0x40f3ff[_0x48eac6('0x1fc7')][_0x48eac6('0x1b33')],{'id':_0x299649['id']}),_0x40f3ff['pauses'][_0x48eac6('0x205f')]-=0x1,!_0x40f3ff[_0x48eac6('0x1fc7')][_0x48eac6('0x1b33')][_0x48eac6('0x577')]&&_0x40f3ff[_0x48eac6('0x12e8')](),_0x42edf7[_0x48eac6('0xdb1')]({'title':_0x86640f()[_0x48eac6('0x2159')](_0x48eac6('0xc77'))+_0x48eac6('0xe64'),'msg':_0x299649[_0x48eac6('0x19fe')]?_0x299649[_0x48eac6('0x19fe')]+_0x48eac6('0xb4a'):''});})[_0x10b787('0x1c1d')](function(_0x35c977){var _0x46e4bd=_0x10b787;if(_0x35c977[_0x46e4bd('0x11c2')]&&_0x35c977['data'][_0x46e4bd('0x1a69')]&&_0x35c977[_0x46e4bd('0x11c2')][_0x46e4bd('0x1a69')][_0x46e4bd('0x577')]){_0x40f3ff['errors']=_0x35c977[_0x46e4bd('0x11c2')][_0x46e4bd('0x1a69')]||[{'message':_0x35c977['toString'](),'type':_0x46e4bd('0x197a')}];for(var _0x4fc71d=0x0;_0x4fc71d<_0x35c977[_0x46e4bd('0x11c2')][_0x46e4bd('0x1a69')][_0x46e4bd('0x577')];_0x4fc71d++){_0x42edf7[_0x46e4bd('0x2092')]({'title':_0x35c977[_0x46e4bd('0x11c2')][_0x46e4bd('0x1a69')][_0x4fc71d][_0x46e4bd('0x7fa')],'msg':_0x35c977[_0x46e4bd('0x11c2')][_0x46e4bd('0x1a69')][_0x4fc71d]['message']});}}else _0x42edf7[_0x46e4bd('0x2092')]({'title':_0x35c977[_0x46e4bd('0x209')]?'API:'+_0x35c977[_0x46e4bd('0x209')]+'\x20-\x20'+_0x35c977['statusText']:_0x46e4bd('0x197a'),'msg':_0x35c977[_0x46e4bd('0x11c2')]?JSON[_0x46e4bd('0x25e')](_0x35c977[_0x46e4bd('0x11c2')][_0x46e4bd('0x1224')]):_0x35c977[_0x46e4bd('0x1224')]||_0x35c977['toString']()});});}function _0x5151d9(){var _0x20b83c=_0x2029d2,_0x3edcd8=angular[_0x20b83c('0xd75')](_0x40f3ff[_0x20b83c('0xf06')]);return _0x40f3ff[_0x20b83c('0xf06')]=[],_0x3edcd8;}function _0x4b56ff(_0xa2ea48){var _0x4bacc5=_0x2029d2,_0x56fa9d=_0x1dd046[_0x4bacc5('0xa33')]()[_0x4bacc5('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20pauses?')[_0x4bacc5('0x276b')](_0x4bacc5('0x622')+_0x40f3ff[_0x4bacc5('0xf06')]['length']+_0x4bacc5('0xd74')+_0x4bacc5('0x25e0'))[_0x4bacc5('0x7a7')](_0x4bacc5('0x2214'))[_0x4bacc5('0x1e6d')](_0xa2ea48)['ok']('OK')[_0x4bacc5('0x3b5')](_0x4bacc5('0x284b'));_0x1dd046[_0x4bacc5('0x853')](_0x56fa9d)['then'](function(){var _0x567a0d=_0x4bacc5;_0x40f3ff[_0x567a0d('0xf06')]['forEach'](function(_0x201611){_0x5e109e(_0x201611);}),_0x40f3ff['selectedPauses']=[];});}function _0x2f365e(){var _0x25db64=_0x2029d2;_0x40f3ff[_0x25db64('0xf06')]=[];}function _0x4aadae(){var _0x4d6223=_0x2029d2;_0x40f3ff[_0x4d6223('0xf06')]=_0x40f3ff[_0x4d6223('0x1fc7')]['rows'];}}const _0x3c48e8=_0x15fd81,_0x1239dd=_0x398308['p']+_0x3877e3('0x266d');_0x1a9374[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$state',_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q','$translate',_0x3877e3('0x1908'),_0x3877e3('0x1ec'),_0x3877e3('0x11f4'),_0x3877e3('0xccd'),'Auth',_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x1a9374(_0x59b393,_0x20e1be,_0x9218ca,_0x11b5a1,_0x131bfc,_0x1cc6bb,_0x9381e9,_0x413cee,_0xe9612,_0x22ea02,_0x8f012c,_0x1f6763,_0x4c81e0,_0x492be2){var _0x498a3d=_0x3877e3,_0x332025=this;_0x332025[_0x498a3d('0x123f')]=_0x8f012c['getCurrentUser'](),_0x332025[_0x498a3d('0x1a69')]=[],_0x332025[_0x498a3d('0x21e')]=_0x4c81e0,_0x332025[_0x498a3d('0x2ff')]=_0x1f6763,_0x332025[_0x498a3d('0x5ed')]=_0x492be2,_0x332025[_0x498a3d('0x126a')]={},_0x332025[_0x498a3d('0x1432')]=_0x332025[_0x498a3d('0x21e')]&&_0x332025[_0x498a3d('0x21e')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x332025[_0x498a3d('0x4b4')]=_0x498a3d('0x21f8'),_0x332025[_0x498a3d('0x11f4')]=angular[_0x498a3d('0xd75')](_0xe9612),_0x332025[_0x498a3d('0x1ec')]=_0x413cee,_0x332025['newSchedule']=![],_0x332025['selectedReport']=[],_0x332025[_0x498a3d('0x77')]={'fields':_0x498a3d('0x26f3'),'limit':0xa,'page':0x1,'sort':_0x498a3d('0x33')};if(!_0x332025['schedule'])_0x332025['schedule']={'output':_0x498a3d('0xdb6'),'active':!![],'startAt':new Date(),'endAt':new Date(Date[_0x498a3d('0x25c4')]()+0x1e*0x18*0x3c*0x3c*0x3e8),'cron':'0\x200\x20*\x20*\x20*','subtractNumber':0x1,'subtractUnit':_0x498a3d('0x18ad'),'sendMail':![],'sendIfEmpty':!![]},_0x332025['title']=_0x498a3d('0x237a'),_0x332025[_0x498a3d('0x17ca')]=!![];else{_0x332025[_0x498a3d('0xba3')]=_0x332025[_0x498a3d('0x11f4')][_0x498a3d('0x2059')]?_0x498a3d('0xc42'):'analyticCustomReport';var _0x12bb04=_0x332025[_0x498a3d('0x11f4')]['DefaultReportId']?_0x332025['schedule'][_0x498a3d('0x2059')]:_0x332025[_0x498a3d('0x11f4')][_0x498a3d('0x1bbd')];_0x22ea02[_0x332025[_0x498a3d('0xba3')]][_0x498a3d('0x595')]({'fields':_0x498a3d('0x1b97')})[_0x498a3d('0x1376')][_0x498a3d('0x21ad')](function(_0xebb978){var _0x47b397=_0x498a3d;_0x332025[_0x47b397('0x252d')]=_0x86640f()['find'](_0xebb978['rows'],{'id':_0x12bb04}),_0x332025[_0x47b397('0x11f4')][_0x47b397('0x24bc')]=_0x332025[_0x47b397('0x252d')][_0x47b397('0x19fe')],_0x332025['query'][_0x47b397('0x12e2')]=_0x332025[_0x47b397('0x252d')][_0x47b397('0x12e2')];});}_0x332025['addNewSchedule']=_0x15449f,_0x332025[_0x498a3d('0x1921')]=_0x24c273,_0x332025['deleteSchedule']=_0x27cd57,_0x332025[_0x498a3d('0x279')]=_0x1adb1b,_0x332025[_0x498a3d('0x768')]=_0x433b8b,_0x332025['selectReport']=_0x169334,_0x332025[_0x498a3d('0x234a')]=_0x31ff4a,_0x332025[_0x498a3d('0x4e9')]=_0x15836c,_0x332025[_0x498a3d('0x167')]=_0xd242c4,_0x22ea02['analyticTreeReport']['get']({})[_0x498a3d('0x1376')][_0x498a3d('0x21ad')](function(_0x3860e9){var _0xbdacd=_0x498a3d;_0x332025[_0xbdacd('0x1ab1')]=_0x3860e9[_0xbdacd('0x1b33')]||[];})['catch'](function(_0x46586a){var _0x30914e=_0x498a3d;_0x9381e9[_0x30914e('0x2092')]({'title':_0x46586a['status']?_0x30914e('0x22d')+_0x46586a[_0x30914e('0x209')]+_0x30914e('0xa99')+_0x46586a['statusText']:_0x30914e('0x12c3'),'msg':_0x46586a[_0x30914e('0x11c2')]?JSON[_0x30914e('0x25e')](_0x46586a[_0x30914e('0x11c2')]):_0x46586a[_0x30914e('0x174f')]()});}),_0x8f012c[_0x498a3d('0x21de')](_0x498a3d('0x1bd8'))?_0x22ea02[_0x498a3d('0x66')][_0x498a3d('0x595')]({'fields':_0x498a3d('0x1aa8'),'sort':'name'})[_0x498a3d('0x1376')]['then'](function(_0x548733){var _0xc992b3=_0x498a3d;_0x332025['mailAccounts']=_0x548733[_0xc992b3('0x1b33')]||[];})[_0x498a3d('0x1c1d')](function(_0x489c9b){var _0x5b44ca=_0x498a3d;_0x9381e9[_0x5b44ca('0x2092')]({'title':_0x489c9b[_0x5b44ca('0x209')]?_0x5b44ca('0x22d')+_0x489c9b[_0x5b44ca('0x209')]+'\x20-\x20'+_0x489c9b[_0x5b44ca('0x1808')]:_0x5b44ca('0x1b8f'),'msg':_0x489c9b[_0x5b44ca('0x11c2')]?JSON[_0x5b44ca('0x25e')](_0x489c9b[_0x5b44ca('0x11c2')]):_0x489c9b[_0x5b44ca('0x174f')]()});}):_0x22ea02[_0x498a3d('0x66')]['get']({'fields':'id,name','sort':_0x498a3d('0x19fe')})['$promise'][_0x498a3d('0x21ad')](function(_0x25e111){var _0x363916=_0x498a3d;_0x332025[_0x363916('0x21ab')]=_0x25e111[_0x363916('0x1b33')]||[];})[_0x498a3d('0x21ad')](function(){var _0x1c1875=_0x498a3d;return _0x22ea02['userProfileSection'][_0x1c1875('0x595')]({'userProfileId':_0x332025[_0x1c1875('0x123f')][_0x1c1875('0x1618')],'sectionId':0x25a})['$promise'];})[_0x498a3d('0x21ad')](function(_0x2cfa3a){var _0x1ad2cb=_0x498a3d,_0x106f29=_0x2cfa3a&&_0x2cfa3a[_0x1ad2cb('0x1b33')]?_0x2cfa3a[_0x1ad2cb('0x1b33')][0x0]:null;if(!_0x106f29){var _0x9b62f8=[],_0x75495c=null;_0x332025[_0x1ad2cb('0x11f4')]&&(_0x75495c=_0x86640f()[_0x1ad2cb('0x1d2e')](_0x332025['mailAccounts'],{'id':Number(_0x332025['schedule'][_0x1ad2cb('0x723')])}));for(var _0x839795=0x0;_0x839795<_0x332025[_0x1ad2cb('0x21ab')][_0x1ad2cb('0x577')];_0x839795++){_0x75495c&&_0x332025[_0x1ad2cb('0x21ab')][_0x839795]['id']===_0x75495c['id']&&(_0x332025[_0x1ad2cb('0x21ab')][_0x839795]['canSelect']=![],_0x9b62f8[_0x1ad2cb('0x206c')](_0x332025[_0x1ad2cb('0x21ab')][_0x839795]));}_0x332025[_0x1ad2cb('0x21ab')]=_0x9b62f8;}else{if(!_0x106f29[_0x1ad2cb('0x80c')])return _0x22ea02['userProfileResource'][_0x1ad2cb('0x595')]({'sectionId':_0x106f29['id']})[_0x1ad2cb('0x1376')][_0x1ad2cb('0x21ad')](function(_0x3d9eb9){var _0xca3f7b=_0x1ad2cb,_0x53da91=_0x86640f()[_0xca3f7b('0x26c3')](_0x3d9eb9['rows'],function(_0x3ab2dd){var _0x321e3c=_0xca3f7b;return _0x86640f()[_0x321e3c('0x1d2e')](_0x332025['mailAccounts'],{'id':_0x3ab2dd[_0x321e3c('0x675')]});}),_0x208905=null;_0x332025[_0xca3f7b('0x11f4')]&&(_0x208905=_0x86640f()['find'](_0x332025[_0xca3f7b('0x21ab')],{'id':Number(_0x332025[_0xca3f7b('0x11f4')]['MailAccountId'])}));if(_0x208905&&!_0x86640f()[_0xca3f7b('0x2664')](_0x53da91,['id',_0x208905['id']])){var _0x371b8c=_0x86640f()[_0xca3f7b('0x1d2e')](_0x332025[_0xca3f7b('0x21ab')],{'id':_0x208905['id']});_0x371b8c[_0xca3f7b('0xba')]=![],_0x53da91[_0xca3f7b('0x206c')](_0x371b8c);}_0x332025['mailAccounts']=_0x53da91;});}})[_0x498a3d('0x1c1d')](function(_0xe7c8a4){var _0x49681b=_0x498a3d;_0x9381e9[_0x49681b('0x2092')]({'title':_0xe7c8a4[_0x49681b('0x209')]?'API:'+_0xe7c8a4['status']+_0x49681b('0xa99')+_0xe7c8a4[_0x49681b('0x1808')]:_0x49681b('0x13d4'),'msg':_0xe7c8a4[_0x49681b('0x11c2')]?JSON['stringify'](_0xe7c8a4['data']):_0xe7c8a4['toString']()});});function _0x15449f(){var _0x14d240=_0x498a3d;_0x332025['errors']=[],_0x22ea02['schedule'][_0x14d240('0x186f')](_0x332025[_0x14d240('0x11f4')])[_0x14d240('0x1376')][_0x14d240('0x21ad')](function(_0xace20b){var _0x282857=_0x14d240;_0x332025[_0x282857('0x1ec')][_0x282857('0xd0c')](_0xace20b[_0x282857('0x3bc')]()),_0x9381e9[_0x282857('0xdb1')]({'title':_0x282857('0x1527'),'msg':_0x332025[_0x282857('0x11f4')][_0x282857('0x19fe')]?_0x332025[_0x282857('0x11f4')][_0x282857('0x19fe')]+'\x20has\x20been\x20created!':''}),_0xd242c4(_0xace20b);})[_0x14d240('0x1c1d')](function(_0x3d3cdf){var _0x44141b=_0x14d240;if(_0x3d3cdf[_0x44141b('0x11c2')]&&_0x3d3cdf[_0x44141b('0x11c2')]['errors']&&_0x3d3cdf[_0x44141b('0x11c2')]['errors'][_0x44141b('0x577')]){_0x332025[_0x44141b('0x1a69')]=_0x3d3cdf['data'][_0x44141b('0x1a69')]||[{'message':_0x3d3cdf['toString'](),'type':_0x44141b('0xc28')}];for(var _0x1acb75=0x0;_0x1acb75<_0x3d3cdf[_0x44141b('0x11c2')][_0x44141b('0x1a69')][_0x44141b('0x577')];_0x1acb75+=0x1){_0x9381e9[_0x44141b('0x2092')]({'title':_0x3d3cdf[_0x44141b('0x11c2')][_0x44141b('0x1a69')][_0x1acb75][_0x44141b('0x7fa')],'msg':_0x3d3cdf[_0x44141b('0x11c2')]['errors'][_0x1acb75]['message']});}}else _0x9381e9[_0x44141b('0x2092')]({'title':_0x3d3cdf[_0x44141b('0x209')]?_0x44141b('0x22d')+_0x3d3cdf[_0x44141b('0x209')]+_0x44141b('0xa99')+_0x3d3cdf[_0x44141b('0x1808')]:_0x44141b('0xc28'),'msg':_0x3d3cdf[_0x44141b('0x11c2')]?JSON['stringify'](_0x3d3cdf[_0x44141b('0x11c2')][_0x44141b('0x1224')]):_0x3d3cdf[_0x44141b('0x174f')]()});});}function _0x24c273(){var _0x52ee0d=_0x498a3d;_0x332025[_0x52ee0d('0x1a69')]=[],_0x22ea02['schedule'][_0x52ee0d('0x5ef')]({'id':_0x332025[_0x52ee0d('0x11f4')]['id']},_0x332025[_0x52ee0d('0x11f4')])['$promise']['then'](function(_0x5907c8){var _0x5ca3af=_0x52ee0d,_0x3bf888=_0x86640f()['find'](_0x332025[_0x5ca3af('0x1ec')],{'id':_0x5907c8['id']});_0x3bf888&&_0x86640f()['merge'](_0x3bf888,_0x86640f()[_0x5ca3af('0xc50')](_0x5907c8[_0x5ca3af('0x3bc')](),_0x86640f()[_0x5ca3af('0x223b')](_0x3bf888))),_0x9381e9[_0x5ca3af('0xdb1')]({'title':'Schedule\x20properly\x20saved!','msg':_0x332025[_0x5ca3af('0x11f4')][_0x5ca3af('0x19fe')]?_0x332025[_0x5ca3af('0x11f4')][_0x5ca3af('0x19fe')]+_0x5ca3af('0x2249'):''}),_0xd242c4(_0x5907c8);})[_0x52ee0d('0x1c1d')](function(_0x2a9ceb){var _0x29d0ac=_0x52ee0d;if(_0x2a9ceb[_0x29d0ac('0x11c2')]&&_0x2a9ceb[_0x29d0ac('0x11c2')]['errors']&&_0x2a9ceb[_0x29d0ac('0x11c2')][_0x29d0ac('0x1a69')][_0x29d0ac('0x577')]){_0x332025[_0x29d0ac('0x1a69')]=_0x2a9ceb['data'][_0x29d0ac('0x1a69')]||[{'message':_0x2a9ceb['toString'](),'type':_0x29d0ac('0x1504')}];for(var _0x83c1ab=0x0;_0x83c1ab<_0x2a9ceb['data'][_0x29d0ac('0x1a69')][_0x29d0ac('0x577')];_0x83c1ab++){_0x9381e9[_0x29d0ac('0x2092')]({'title':_0x2a9ceb[_0x29d0ac('0x11c2')]['errors'][_0x83c1ab][_0x29d0ac('0x7fa')],'msg':_0x2a9ceb[_0x29d0ac('0x11c2')][_0x29d0ac('0x1a69')][_0x83c1ab][_0x29d0ac('0x1224')]});}}else _0x9381e9[_0x29d0ac('0x2092')]({'title':_0x2a9ceb[_0x29d0ac('0x209')]?_0x29d0ac('0x22d')+_0x2a9ceb[_0x29d0ac('0x209')]+'\x20-\x20'+_0x2a9ceb['statusText']:_0x29d0ac('0x1504'),'msg':_0x2a9ceb['data']?JSON['stringify'](_0x2a9ceb[_0x29d0ac('0x11c2')][_0x29d0ac('0x1224')]):_0x2a9ceb[_0x29d0ac('0x174f')]()});});}function _0x27cd57(_0x4c0007){var _0x21dede=_0x498a3d;_0x332025['errors']=[];var _0x305973=_0x11b5a1['confirm']()[_0x21dede('0x4b4')]('Are\x20you\x20sure?')[_0x21dede('0x13fb')](_0x21dede('0x1181'))[_0x21dede('0x7a7')](_0x21dede('0x13fe'))['ok']('Delete')[_0x21dede('0x3b5')]('Cancel')[_0x21dede('0x1e6d')](_0x4c0007);_0x11b5a1['show'](_0x305973)['then'](function(){var _0x4c8e3b=_0x21dede;_0x22ea02[_0x4c8e3b('0x11f4')][_0x4c8e3b('0x1164')]({'id':_0x332025['schedule']['id']})[_0x4c8e3b('0x1376')][_0x4c8e3b('0x21ad')](function(){var _0x836975=_0x4c8e3b;_0x86640f()[_0x836975('0x16a2')](_0x332025[_0x836975('0x1ec')],{'id':_0x332025['schedule']['id']}),_0x9381e9[_0x836975('0xdb1')]({'title':'Schedule\x20properly\x20deleted!','msg':(_0x332025[_0x836975('0x11f4')]['name']||'schedule')+_0x836975('0xb4a')}),_0xd242c4(_0x332025[_0x836975('0x11f4')]);})['catch'](function(_0x5fd06e){var _0x3f250f=_0x4c8e3b;if(_0x5fd06e[_0x3f250f('0x11c2')]&&_0x5fd06e[_0x3f250f('0x11c2')][_0x3f250f('0x1a69')]&&_0x5fd06e[_0x3f250f('0x11c2')]['errors'][_0x3f250f('0x577')]){_0x332025[_0x3f250f('0x1a69')]=_0x5fd06e[_0x3f250f('0x11c2')]['errors']||[{'message':_0x5fd06e[_0x3f250f('0x174f')](),'type':_0x3f250f('0xf27')}];for(var _0x27354f=0x0;_0x27354f<_0x5fd06e[_0x3f250f('0x11c2')]['errors']['length'];_0x27354f++){_0x9381e9[_0x3f250f('0x2092')]({'title':_0x5fd06e[_0x3f250f('0x11c2')][_0x3f250f('0x1a69')][_0x27354f]['type'],'msg':_0x5fd06e[_0x3f250f('0x11c2')][_0x3f250f('0x1a69')][_0x27354f][_0x3f250f('0x1224')]});}}else _0x9381e9[_0x3f250f('0x2092')]({'title':_0x5fd06e['status']?_0x3f250f('0x22d')+_0x5fd06e[_0x3f250f('0x209')]+'\x20-\x20'+_0x5fd06e[_0x3f250f('0x1808')]:_0x3f250f('0xf27'),'msg':_0x5fd06e[_0x3f250f('0x11c2')]?JSON[_0x3f250f('0x25e')](_0x5fd06e[_0x3f250f('0x11c2')][_0x3f250f('0x1224')]):_0x5fd06e[_0x3f250f('0x1224')]||_0x5fd06e[_0x3f250f('0x174f')]()});});},function(){});}function _0x3964af(){var _0x44584a=_0x498a3d,_0x3155fa={'core':{'multiple':![],'animation':!![],'error':function _0x160b57(_0x214fc7){var _0x41dc60=a0_0x2e7f;console[_0x41dc60('0x2092')]('treeCtrl:\x20error\x20from\x20js\x20tree\x20-\x20'+angular['toJson'](_0x214fc7));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':['wholerow']};return _0x332025[_0x44584a('0x123f')]['role']!=='admin'?_0x22ea02[_0x44584a('0xab4')][_0x44584a('0x595')]({'fields':_0x44584a('0x1852'),'userProfileId':_0x332025[_0x44584a('0x123f')][_0x44584a('0x1618')],'sectionId':0x4b3})['$promise'][_0x44584a('0x21ad')](function(_0x48aabb){var _0x275233=_0x44584a;return _0x332025[_0x275233('0xab4')]=_0x48aabb&&_0x48aabb[_0x275233('0x205f')]==0x1?_0x48aabb[_0x275233('0x1b33')][0x0]:null,_0x3155fa;})[_0x44584a('0x1c1d')](function(_0x22a7ac){var _0x563365=_0x44584a;_0x9381e9[_0x563365('0x2092')]({'title':_0x563365('0x1399'),'msg':_0x22a7ac[_0x563365('0x1224')]});}):_0x3155fa;}function _0x308e93(_0x3a4ed4){return _0x3a4ed4?{'loaded':_0x1ae7b4,'select_node':_0x468007}:{'loaded':_0x280a51,'select_node':_0x3434e9};}function _0x468007(_0x2eb204,_0x4573e5){var _0x719fd3=_0x498a3d;_0x332025[_0x719fd3('0x1c9c')][_0x719fd3('0x13ba')](!![])[_0x719fd3('0x118')](),_0x332025['treeDefaultInstance'][_0x719fd3('0x13ba')](!![])['close_all'](),_0x332025['currentNode']=_0x4573e5['node'],_0x332025['currentNode'][_0x719fd3('0xf50')]=!![],_0x332025[_0x719fd3('0x1bc6')]=_0x332025[_0x719fd3('0xd4c')][_0x719fd3('0x13ba')](!![])[_0x719fd3('0xc27')](_0x332025[_0x719fd3('0x2ef')])[_0x719fd3('0x136')]('/\x20'),_0x332025[_0x719fd3('0xba3')]=_0x719fd3('0x2041'),_0x332025['query'][_0x719fd3('0x12e2')]=_0x4573e5[_0x719fd3('0x36f')]['id'],_0x433b8b();}function _0x3434e9(_0x5b6527,_0x520212){var _0x5ac1ee=_0x498a3d;_0x332025['treeCustomInstance'][_0x5ac1ee('0x13ba')](!![])[_0x5ac1ee('0x118')](),_0x332025[_0x5ac1ee('0xd4c')][_0x5ac1ee('0x13ba')](!![])[_0x5ac1ee('0x27a6')](),_0x332025['currentNode']=_0x520212[_0x5ac1ee('0x36f')],_0x332025[_0x5ac1ee('0x2ef')][_0x5ac1ee('0xf50')]=![],_0x332025['currentPath']=_0x332025[_0x5ac1ee('0x1c9c')][_0x5ac1ee('0x13ba')](!![])[_0x5ac1ee('0xc27')](_0x332025[_0x5ac1ee('0x2ef')])[_0x5ac1ee('0x136')]('/\x20'),_0x332025[_0x5ac1ee('0xba3')]=_0x5ac1ee('0xc42'),_0x332025['query'][_0x5ac1ee('0x12e2')]=_0x520212[_0x5ac1ee('0x36f')]['id'],_0x433b8b();}function _0x1ae7b4(){var _0x4ec2ee=_0x498a3d;if(!_0x332025[_0x4ec2ee('0x17ca')]&&_0x332025[_0x4ec2ee('0xba3')]===_0x4ec2ee('0x2041')){var _0x5c9a90=_0x332025[_0x4ec2ee('0xd4c')][_0x4ec2ee('0x13ba')](!![])[_0x4ec2ee('0x1e28')](_0x332025[_0x4ec2ee('0x77')]['parent']);_0x468007(null,{'node':_0x5c9a90,'selected':_0x5c9a90['id']});}}function _0x280a51(){var _0x1f2ab4=_0x498a3d;if(!_0x332025[_0x1f2ab4('0x17ca')]&&_0x332025[_0x1f2ab4('0xba3')]===_0x1f2ab4('0xc42')){var _0x1991cf=_0x332025['treeDefaultInstance']['jstree'](!![])[_0x1f2ab4('0x1e28')](_0x332025[_0x1f2ab4('0x77')]['parent']);_0x3434e9(null,{'node':_0x1991cf,'selected':_0x1991cf['id']});}}function _0x433b8b(){var _0x4d46ea=_0x498a3d;_0x332025['query'][_0x4d46ea('0x15a5')]=(_0x332025[_0x4d46ea('0x77')][_0x4d46ea('0x2376')]-0x1)*_0x332025[_0x4d46ea('0x77')][_0x4d46ea('0x1f4a')];if(_0x332025[_0x4d46ea('0xba3')]){if(_0x332025[_0x4d46ea('0x123f')][_0x4d46ea('0x25c8')]===_0x4d46ea('0x1bd8'))_0x332025['promise']=_0x22ea02[_0x332025[_0x4d46ea('0xba3')]]['get'](_0x332025[_0x4d46ea('0x77')],_0x20e064)[_0x4d46ea('0x1376')];else{if(!_0x332025[_0x4d46ea('0xab4')])return _0x20e064(null);else{if(_0x332025['userProfileSection'][_0x4d46ea('0x80c')])_0x332025[_0x4d46ea('0x71b')]=_0x22ea02[_0x332025[_0x4d46ea('0xba3')]]['get'](_0x332025[_0x4d46ea('0x77')],_0x20e064)[_0x4d46ea('0x1376')];else{var _0x4fdd60=[];_0x332025[_0x4d46ea('0x71b')]=_0x22ea02[_0x332025[_0x4d46ea('0xba3')]][_0x4d46ea('0x595')](_0x332025[_0x4d46ea('0x77')])[_0x4d46ea('0x1376')][_0x4d46ea('0x21ad')](function(_0x49308f){var _0xb6ecb7=_0x4d46ea;return _0x4fdd60=_0x49308f&&_0x49308f[_0xb6ecb7('0x1b33')]?_0x49308f[_0xb6ecb7('0x1b33')]:[],_0x4fdd60[_0xb6ecb7('0x577')]>0x0?_0x22ea02[_0xb6ecb7('0x185e')][_0xb6ecb7('0x595')]({'sectionId':_0x332025[_0xb6ecb7('0xab4')]['id'],'type':_0x332025['apiName']===_0xb6ecb7('0xc42')?'DefaultReports':_0xb6ecb7('0x1a1e')})[_0xb6ecb7('0x1376')][_0xb6ecb7('0x21ad')](function(_0x250d51){var _0x147af5=_0xb6ecb7,_0x46c121=_0x250d51&&_0x250d51[_0x147af5('0x1b33')]?_0x250d51[_0x147af5('0x1b33')]:[];if(_0x46c121[_0x147af5('0x577')]>0x0){var _0x4d28ab=[];return _0x4fdd60[_0x147af5('0x1a52')](function(_0x2740a2){var _0x3948b2=_0x147af5,_0x1eddda=_0x86640f()[_0x3948b2('0x1d2e')](_0x46c121,[_0x3948b2('0x675'),_0x2740a2['id']]);if(_0x1eddda)_0x4d28ab[_0x3948b2('0x206c')](_0x2740a2);}),_0x20e064({'count':_0x4d28ab[_0x147af5('0x577')],'rows':_0x4d28ab});}else return _0x20e064(null);}):_0x20e064(null);})[_0x4d46ea('0x1c1d')](function(_0x64ce1d){var _0x2af05b=_0x4d46ea;_0x9381e9[_0x2af05b('0x2092')]({'title':_0x64ce1d[_0x2af05b('0x209')]?_0x2af05b('0x22d')+_0x64ce1d[_0x2af05b('0x209')]+_0x2af05b('0xa99')+_0x64ce1d[_0x2af05b('0x1808')]:_0x2af05b('0x168f'),'msg':_0x64ce1d[_0x2af05b('0x11c2')]?JSON['stringify'](_0x64ce1d['data']):_0x64ce1d[_0x2af05b('0x174f')]()});});}}}}}function _0x20e064(_0x320726){var _0x4a6f55=_0x498a3d;_0x332025[_0x4a6f55('0xd5d')]=_0x320726||{'count':0x0,'rows':[]},!_0x332025[_0x4a6f55('0x17ca')]&&_0x332025['selectedReport'][_0x4a6f55('0x206c')](_0x86640f()['find'](_0x332025[_0x4a6f55('0xd5d')][_0x4a6f55('0x1b33')],{'id':_0x332025[_0x4a6f55('0x252d')]['id']}));}function _0x15836c(){var _0x407a7a=_0x498a3d;_0x332025[_0x407a7a('0x10f4')]=_0x332025[_0x407a7a('0x1ab1')][0x0]?angular[_0x407a7a('0xcf1')](_0x332025[_0x407a7a('0x1ab1')][0x0][_0x407a7a('0x1394')]):[],_0x332025['treeCustomData']=_0x332025[_0x407a7a('0x1ab1')][0x1]?angular[_0x407a7a('0xcf1')](_0x332025['treeReports'][0x1]['tree']):[],_0x332025[_0x407a7a('0x5e1')]=_0x3964af(),_0x332025[_0x407a7a('0x460')]=_0x308e93(![]),_0x332025[_0x407a7a('0x9ec')]=_0x308e93(!![]),_0x11b5a1[_0x407a7a('0x853')]({'controller':function _0x1cdc0e(){return _0x332025;},'controllerAs':'vm','templateUrl':_0x1239dd,'autoWrap':!![],'skipHide':!![]});}function _0x169334(){var _0x777fd6=_0x498a3d;_0x332025[_0x777fd6('0x11f4')][_0x777fd6('0x24bc')]=_0x332025['selectedReport'][0x0][_0x777fd6('0x19fe')],_0x332025[_0x777fd6('0x2ef')][_0x777fd6('0xf50')]?(_0x332025['schedule'][_0x777fd6('0x1bbd')]=_0x332025[_0x777fd6('0x1233')][0x0]['id'],delete _0x332025[_0x777fd6('0x11f4')]['DefaultReportId']):(_0x332025[_0x777fd6('0x11f4')][_0x777fd6('0x2059')]=_0x332025['selectedReport'][0x0]['id'],delete _0x332025[_0x777fd6('0x11f4')][_0x777fd6('0x1bbd')]),_0x59b393['scheduleForm'][_0x777fd6('0x24bc')][_0x777fd6('0x6ee')](),_0x11b5a1[_0x777fd6('0x1c24')]();}function _0x31ff4a(){_0x11b5a1['hide']();}function _0x1adb1b(_0x5296a5){return _0x5296a5===null?undefined:new Date(_0x5296a5);}function _0xd242c4(_0x111fd4){var _0x3849f9=_0x498a3d;_0x11b5a1[_0x3849f9('0x1c24')](_0x111fd4);}}const _0x2327ec=_0x1a9374,_0x34ac35=_0x398308['p']+_0x3877e3('0x59d');_0x3a15d2[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$window',_0x3877e3('0xa9f'),'$mdSidenav',_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x13c1'),_0x3877e3('0x1ec'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),'toasty','Auth','license',_0x3877e3('0x21e')];function _0x3a15d2(_0x1f2b66,_0x5c19f3,_0x386108,_0x4018a4,_0x1284c2,_0xe7e617,_0x14820f,_0x311726,_0x3c190c,_0x221a56,_0x46b0dc,_0x192236,_0x5c3b88,_0x3796ff,_0x3c8c9f,_0x16f844,_0x586cdb){var _0x538446=_0x3877e3,_0x50a13e=this;_0x50a13e['license']=_0x16f844,_0x50a13e[_0x538446('0x21e')]=_0x586cdb,_0x50a13e['currentUser']=_0x3c8c9f[_0x538446('0x15ed')](),_0x50a13e[_0x538446('0x1ec')]=_0x3c190c||{'count':0x0,'rows':[]},_0x50a13e[_0x538446('0x758')]=_0x221a56,_0x50a13e['userProfileSection']=_0x46b0dc&&_0x46b0dc[_0x538446('0x205f')]==0x1?_0x46b0dc[_0x538446('0x1b33')][0x0]:null,_0x50a13e[_0x538446('0x5ed')]=_0x3c8c9f[_0x538446('0x1778')](_0x50a13e[_0x538446('0xab4')]?_0x50a13e[_0x538446('0xab4')][_0x538446('0x5ed')]:null),_0x50a13e[_0x538446('0x1897')]=_0x538446('0x1ec'),_0x50a13e[_0x538446('0x11dc')]='',_0x50a13e[_0x538446('0x18cf')]=null,_0x50a13e[_0x538446('0x236c')]=[],_0x50a13e['query']={'fields':_0x538446('0x23b4'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x50a13e[_0x538446('0x1e04')]=_0x86640f()[_0x538446('0xcde')]([{'option':_0x538446('0xf9c'),'value':_0x538446('0x105c')},{'option':_0x538446('0x246a'),'value':'\x27pdf\x27'},{'option':'Excel','value':_0x538446('0x268b')}],function(_0x20cbff){var _0x3dc68a=_0x538446;return _0x86640f()[_0x3dc68a('0x16e4')](_0x20cbff[_0x3dc68a('0x2228')],new RegExp('\x27','g'),'');}),_0x50a13e[_0x538446('0x205b')]=_0x86640f()[_0x538446('0xcde')]([{'option':'Minutes','value':'\x27minutes\x27'},{'option':_0x538446('0x1327'),'value':_0x538446('0x217c')},{'option':_0x538446('0x4e5'),'value':_0x538446('0x1730')},{'option':_0x538446('0x90b'),'value':'\x27weeks\x27'},{'option':_0x538446('0x8b4'),'value':_0x538446('0x10ae')},{'option':_0x538446('0xf9e'),'value':_0x538446('0x158d')},{'option':_0x538446('0x1f9'),'value':'\x27years\x27'}],function(_0x4514c0){var _0x942ab2=_0x538446;return _0x86640f()[_0x942ab2('0x16e4')](_0x4514c0[_0x942ab2('0x2228')],new RegExp('\x27','g'),'');}),_0x50a13e[_0x538446('0x1a97')]=_0x4258e1,_0x50a13e[_0x538446('0x1b8d')]=_0x112725,_0x50a13e['deleteconfirm']=_0x363b17,_0x50a13e[_0x538446('0xdb1')]=_0x1db9ff,_0x50a13e[_0x538446('0xac1')]=_0x769fac,_0x50a13e[_0x538446('0xff3')]=_0x369308,_0x50a13e[_0x538446('0x14c6')]=_0x5b1b34,_0x50a13e[_0x538446('0x9c3')]=_0x5e795b,_0x50a13e[_0x538446('0xa97')]=_0x35b20f,_0x50a13e[_0x538446('0xe8d')]=_0x49fa6e,_0x50a13e[_0x538446('0x1a79')]=_0x316e7f,_0x192236[_0x538446('0x1148')]['get']({})[_0x538446('0x1376')][_0x538446('0x21ad')](function(_0x49597c){var _0x5156ba=_0x538446;_0x50a13e[_0x5156ba('0x1ab1')]=_0x49597c['rows']||[];})[_0x538446('0x1c1d')](function(_0xe04b9e){var _0x2c68c7=_0x538446;_0x3796ff['error']({'title':_0xe04b9e['status']?_0x2c68c7('0x22d')+_0xe04b9e['status']+_0x2c68c7('0xa99')+_0xe04b9e['statusText']:_0x2c68c7('0x12c3'),'msg':_0xe04b9e[_0x2c68c7('0x11c2')]?JSON[_0x2c68c7('0x25e')](_0xe04b9e[_0x2c68c7('0x11c2')]):_0xe04b9e[_0x2c68c7('0x174f')]()});}),_0x3c8c9f[_0x538446('0x21de')](_0x538446('0x1bd8'))?_0x192236[_0x538446('0x66')][_0x538446('0x595')]({'fields':_0x538446('0x1aa8'),'sort':_0x538446('0x19fe')})['$promise'][_0x538446('0x21ad')](function(_0x50add8){var _0x335521=_0x538446;_0x50a13e['mailAccounts']=_0x50add8[_0x335521('0x1b33')]||[];})['catch'](function(_0x550d50){var _0x161ec9=_0x538446;_0x3796ff[_0x161ec9('0x2092')]({'title':_0x550d50[_0x161ec9('0x209')]?_0x161ec9('0x22d')+_0x550d50['status']+_0x161ec9('0xa99')+_0x550d50['statusText']:_0x161ec9('0x1b8f'),'msg':_0x550d50[_0x161ec9('0x11c2')]?JSON[_0x161ec9('0x25e')](_0x550d50[_0x161ec9('0x11c2')]):_0x550d50[_0x161ec9('0x174f')]()});}):_0x192236[_0x538446('0x66')][_0x538446('0x595')]({'fields':_0x538446('0x1aa8'),'sort':_0x538446('0x19fe')})[_0x538446('0x1376')][_0x538446('0x21ad')](function(_0xd94fc1){var _0x1f68e7=_0x538446;_0x50a13e[_0x1f68e7('0x21ab')]=_0xd94fc1[_0x1f68e7('0x1b33')]||[];})['then'](function(){var _0x285c58=_0x538446;return _0x192236[_0x285c58('0xab4')][_0x285c58('0x595')]({'userProfileId':_0x50a13e[_0x285c58('0x123f')][_0x285c58('0x1618')],'sectionId':0x25a})[_0x285c58('0x1376')];})[_0x538446('0x21ad')](function(_0x6a21af){var _0x32d711=_0x538446,_0x3e10fa=_0x6a21af&&_0x6a21af[_0x32d711('0x1b33')]?_0x6a21af[_0x32d711('0x1b33')][0x0]:null;if(!_0x3e10fa){var _0x53b22b=[],_0x76238f=null;_0x50a13e['schedule']&&(_0x76238f=_0x86640f()[_0x32d711('0x1d2e')](_0x50a13e[_0x32d711('0x21ab')],{'id':Number(_0x50a13e[_0x32d711('0x11f4')][_0x32d711('0x723')])}));for(var _0x3d9b23=0x0;_0x3d9b23<_0x50a13e[_0x32d711('0x21ab')]['length'];_0x3d9b23++){_0x76238f&&_0x50a13e[_0x32d711('0x21ab')][_0x3d9b23]['id']===_0x76238f['id']&&(_0x50a13e[_0x32d711('0x21ab')][_0x3d9b23]['canSelect']=![],_0x53b22b[_0x32d711('0x206c')](_0x50a13e[_0x32d711('0x21ab')][_0x3d9b23]));}_0x50a13e[_0x32d711('0x21ab')]=_0x53b22b;}else{if(!_0x3e10fa['autoAssociation'])return _0x192236[_0x32d711('0x185e')]['get']({'sectionId':_0x3e10fa['id']})['$promise'][_0x32d711('0x21ad')](function(_0x557da5){var _0x23141d=_0x32d711,_0x142759=_0x86640f()[_0x23141d('0x26c3')](_0x557da5[_0x23141d('0x1b33')],function(_0x1debef){var _0x18aeb7=_0x23141d;return _0x86640f()[_0x18aeb7('0x1d2e')](_0x50a13e[_0x18aeb7('0x21ab')],{'id':_0x1debef['resourceId']});}),_0xd31342=null;_0x50a13e[_0x23141d('0x11f4')]&&(_0xd31342=_0x86640f()[_0x23141d('0x1d2e')](_0x50a13e[_0x23141d('0x21ab')],{'id':Number(_0x50a13e[_0x23141d('0x11f4')][_0x23141d('0x723')])}));if(_0xd31342&&!_0x86640f()[_0x23141d('0x2664')](_0x142759,['id',_0xd31342['id']])){var _0x123ae4=_0x86640f()[_0x23141d('0x1d2e')](_0x50a13e[_0x23141d('0x21ab')],{'id':_0xd31342['id']});_0x123ae4['canSelect']=![],_0x142759['push'](_0x123ae4);}_0x50a13e[_0x23141d('0x21ab')]=_0x142759;});}})[_0x538446('0x1c1d')](function(_0x3b8532){var _0x738378=_0x538446;_0x3796ff[_0x738378('0x2092')]({'title':_0x3b8532['status']?'API:'+_0x3b8532[_0x738378('0x209')]+'\x20-\x20'+_0x3b8532['statusText']:_0x738378('0x13d4'),'msg':_0x3b8532[_0x738378('0x11c2')]?JSON[_0x738378('0x25e')](_0x3b8532[_0x738378('0x11c2')]):_0x3b8532[_0x738378('0x174f')]()});});function _0x4258e1(_0x3fdc9a,_0x490a75){var _0x54b93f=_0x538446;_0x1284c2['show']({'controller':_0x54b93f('0x3af'),'controllerAs':'vm','templateUrl':_0x34ac35,'parent':angular[_0x54b93f('0x1676')](_0xe7e617['body']),'targetEvent':_0x490a75,'clickOutsideToClose':!![],'locals':{'schedule':_0x3fdc9a,'schedules':_0x50a13e[_0x54b93f('0x1ec')][_0x54b93f('0x1b33')],'license':_0x50a13e['license'],'setting':null,'crudPermissions':_0x50a13e[_0x54b93f('0x5ed')]}});}function _0x112725(_0x5593c9,_0x863748){var _0x46ae55=_0x538446,_0x520920=_0x1284c2[_0x46ae55('0xa33')]()['title'](_0x46ae55('0x24b6'))['htmlContent'](_0x46ae55('0x622')+(_0x5593c9[_0x46ae55('0x19fe')]||_0x46ae55('0x11f4'))+''+_0x46ae55('0x26d1'))[_0x46ae55('0x7a7')]('delete\x20schedule')[_0x46ae55('0x1e6d')](_0x863748)['ok']('OK')['cancel'](_0x46ae55('0x284b'));_0x1284c2['show'](_0x520920)[_0x46ae55('0x21ad')](function(){var _0xf9232e=_0x46ae55;return _0x192236[_0xf9232e('0x11f4')]['run']({'id':_0x5593c9['id']})[_0xf9232e('0x1376')];},function(){var _0x272fec=_0x46ae55;console[_0x272fec('0x6fb')](_0x272fec('0x284b'));});}function _0x363b17(_0x2db588,_0x181a9d){var _0x5f13ae=_0x538446,_0x54563d=_0x1284c2[_0x5f13ae('0xa33')]()[_0x5f13ae('0x4b4')](_0x5f13ae('0x25b6')+_0x86640f()[_0x5f13ae('0x2159')](_0x5f13ae('0x11f4'))+'?')['htmlContent'](_0x5f13ae('0x622')+(_0x2db588['name']||_0x5f13ae('0x11f4'))+_0x5f13ae('0x2135')+_0x5f13ae('0x25e0'))[_0x5f13ae('0x7a7')](_0x5f13ae('0x20d2'))['targetEvent'](_0x181a9d)['ok']('OK')[_0x5f13ae('0x3b5')](_0x5f13ae('0x284b'));_0x1284c2['show'](_0x54563d)[_0x5f13ae('0x21ad')](function(){_0x5b1b34(_0x2db588);},function(){var _0x224998=_0x5f13ae;console[_0x224998('0x6fb')](_0x224998('0x284b'));});}var _0x4aa304=!![],_0x522ac7=0x1;_0x1f2b66[_0x538446('0x10e8')]('vm.query.filter',function(_0x2816ef,_0x3ff31a){var _0x5382a0=_0x538446;_0x4aa304?_0x14820f(function(){_0x4aa304=![];}):(!_0x3ff31a&&(_0x522ac7=_0x50a13e[_0x5382a0('0x77')][_0x5382a0('0x2376')]),_0x2816ef!==_0x3ff31a&&(_0x50a13e[_0x5382a0('0x77')]['page']=0x1),!_0x2816ef&&(_0x50a13e[_0x5382a0('0x77')]['page']=_0x522ac7),_0x50a13e[_0x5382a0('0xac1')]());});function _0x1db9ff(_0x54abb1){var _0x8db511=_0x538446;_0x50a13e[_0x8db511('0x1ec')]=_0x54abb1||{'count':0x0,'rows':[]};}function _0x769fac(){var _0x19467e=_0x538446;_0x50a13e[_0x19467e('0x77')][_0x19467e('0x15a5')]=(_0x50a13e[_0x19467e('0x77')][_0x19467e('0x2376')]-0x1)*_0x50a13e['query']['limit'],_0x3c8c9f['hasRole']('admin')?_0x50a13e['promise']=_0x192236['schedule'][_0x19467e('0x595')](_0x50a13e[_0x19467e('0x77')],_0x1db9ff)[_0x19467e('0x1376')]:(_0x50a13e[_0x19467e('0x77')]['id']=_0x50a13e[_0x19467e('0x758')]['id'],_0x50a13e[_0x19467e('0x77')][_0x19467e('0x26ad')]=_0x19467e('0x1a5a'),_0x50a13e[_0x19467e('0x71b')]=_0x192236[_0x19467e('0x758')][_0x19467e('0x321')](_0x50a13e[_0x19467e('0x77')],_0x1db9ff)['$promise']);}function _0x369308(_0x5b0b2d,_0x4ac9b4){var _0x3a809f=_0x538446;_0x1284c2[_0x3a809f('0x853')]({'controller':_0x3a809f('0x3af'),'controllerAs':'vm','templateUrl':_0x34ac35,'parent':angular['element'](_0xe7e617['body']),'targetEvent':_0x5b0b2d,'clickOutsideToClose':!![],'locals':{'schedule':_0x4ac9b4,'schedules':_0x50a13e[_0x3a809f('0x1ec')][_0x3a809f('0x1b33')],'license':_0x50a13e[_0x3a809f('0x2ff')],'setting':_0x50a13e['setting'],'crudPermissions':_0x50a13e[_0x3a809f('0x5ed')]}});}function _0x5b1b34(_0x490c33){var _0x460baf=_0x538446;_0x192236[_0x460baf('0x11f4')][_0x460baf('0x1164')]({'id':_0x490c33['id']})[_0x460baf('0x1376')]['then'](function(){var _0x3316cd=_0x460baf;_0x86640f()[_0x3316cd('0x16a2')](_0x50a13e[_0x3316cd('0x1ec')][_0x3316cd('0x1b33')],{'id':_0x490c33['id']}),_0x50a13e[_0x3316cd('0x1ec')][_0x3316cd('0x205f')]-=0x1,!_0x50a13e[_0x3316cd('0x1ec')][_0x3316cd('0x1b33')][_0x3316cd('0x577')]&&_0x50a13e[_0x3316cd('0xac1')](),_0x3796ff[_0x3316cd('0xdb1')]({'title':_0x86640f()[_0x3316cd('0x2159')](_0x3316cd('0xac3'))+_0x3316cd('0xe64'),'msg':_0x490c33[_0x3316cd('0x19fe')]?_0x490c33[_0x3316cd('0x19fe')]+_0x3316cd('0xb4a'):''});})[_0x460baf('0x1c1d')](function(_0x8b6402){var _0x56b95e=_0x460baf;if(_0x8b6402[_0x56b95e('0x11c2')]&&_0x8b6402[_0x56b95e('0x11c2')]['errors']&&_0x8b6402[_0x56b95e('0x11c2')][_0x56b95e('0x1a69')][_0x56b95e('0x577')]){_0x50a13e['errors']=_0x8b6402[_0x56b95e('0x11c2')][_0x56b95e('0x1a69')]||[{'message':_0x8b6402[_0x56b95e('0x174f')](),'type':_0x56b95e('0x1a80')}];for(var _0x4607e2=0x0;_0x4607e2<_0x8b6402['data'][_0x56b95e('0x1a69')]['length'];_0x4607e2++){_0x3796ff[_0x56b95e('0x2092')]({'title':_0x8b6402['data'][_0x56b95e('0x1a69')][_0x4607e2][_0x56b95e('0x7fa')],'msg':_0x8b6402[_0x56b95e('0x11c2')][_0x56b95e('0x1a69')][_0x4607e2][_0x56b95e('0x1224')]});}}else _0x3796ff[_0x56b95e('0x2092')]({'title':_0x8b6402[_0x56b95e('0x209')]?_0x56b95e('0x22d')+_0x8b6402[_0x56b95e('0x209')]+'\x20-\x20'+_0x8b6402[_0x56b95e('0x1808')]:'SYSTEM:DELETEschedule','msg':_0x8b6402[_0x56b95e('0x11c2')]?JSON[_0x56b95e('0x25e')](_0x8b6402[_0x56b95e('0x11c2')][_0x56b95e('0x1224')]):_0x8b6402[_0x56b95e('0x1224')]||_0x8b6402[_0x56b95e('0x174f')]()});});}function _0x5e795b(){var _0x1e4a1c=_0x538446,_0x21d2ec=angular['copy'](_0x50a13e[_0x1e4a1c('0x236c')]);return _0x50a13e[_0x1e4a1c('0x236c')]=[],_0x21d2ec;}function _0x35b20f(_0x3e0389){var _0x5b2a7b=_0x538446,_0x5c200a=_0x1284c2[_0x5b2a7b('0xa33')]()[_0x5b2a7b('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20schedules?')[_0x5b2a7b('0x276b')](_0x5b2a7b('0x622')+_0x50a13e[_0x5b2a7b('0x236c')][_0x5b2a7b('0x577')]+_0x5b2a7b('0xd74')+_0x5b2a7b('0x25e0'))[_0x5b2a7b('0x7a7')]('delete\x20Schedules')[_0x5b2a7b('0x1e6d')](_0x3e0389)['ok']('OK')[_0x5b2a7b('0x3b5')]('CANCEL');_0x1284c2['show'](_0x5c200a)[_0x5b2a7b('0x21ad')](function(){var _0x137dc1=_0x5b2a7b;_0x50a13e[_0x137dc1('0x236c')][_0x137dc1('0x1a52')](function(_0xeae33e){_0x5b1b34(_0xeae33e);}),_0x50a13e[_0x137dc1('0x236c')]=[];});}function _0x49fa6e(){var _0x15bc4a=_0x538446;_0x50a13e[_0x15bc4a('0x236c')]=[];}function _0x316e7f(){var _0x202691=_0x538446;_0x50a13e['selectedScheduler']=_0x50a13e['schedules'][_0x202691('0x1b33')];}}const _0x5bdac4=_0x3a15d2;_0x4d3fdf[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),'sounds',_0x3877e3('0x2397'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x4d3fdf(_0x3413fc,_0x1f9a1b,_0x4dba84,_0xcff3cf,_0x411ed9,_0x3b0e33,_0x517b39,_0x3e2fa2,_0x5c436d,_0x911dd4,_0x41dc74,_0xf6ac3c,_0x47d8fe,_0x28c21b){var _0x126580=_0x3877e3,_0x5c7bcd=this;_0x5c7bcd[_0x126580('0x123f')]=_0x41dc74['getCurrentUser'](),_0x5c7bcd[_0x126580('0x1a69')]=[],_0x5c7bcd['setting']=_0x47d8fe,_0x5c7bcd[_0x126580('0x2ff')]=_0xf6ac3c,_0x5c7bcd[_0x126580('0x5ed')]=_0x28c21b,_0x5c7bcd[_0x126580('0x126a')]={},_0x5c7bcd[_0x126580('0x1432')]=_0x5c7bcd[_0x126580('0x21e')]&&_0x5c7bcd[_0x126580('0x21e')][_0x126580('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5c7bcd[_0x126580('0x4b4')]=_0x126580('0x1b85'),_0x5c7bcd[_0x126580('0x2397')]=angular[_0x126580('0xd75')](_0x5c436d),_0x5c7bcd['sounds']=_0x3e2fa2,_0x5c7bcd[_0x126580('0x265f')]=![];!_0x5c7bcd[_0x126580('0x2397')]&&(_0x5c7bcd[_0x126580('0x2397')]={},_0x5c7bcd[_0x126580('0x4b4')]=_0x126580('0x90f'),_0x5c7bcd[_0x126580('0x265f')]=!![]);_0x5c7bcd[_0x126580('0x1e4b')]=_0x1e38ff,_0x5c7bcd[_0x126580('0x2641')]=_0x3d0c95,_0x5c7bcd['deleteSound']=_0x2d67c3,_0x5c7bcd[_0x126580('0x279')]=_0x587146,_0x5c7bcd[_0x126580('0x167')]=_0x3b469b;function _0x1e38ff(){var _0x337923=_0x126580;_0x5c7bcd[_0x337923('0x1a69')]=[],_0x911dd4[_0x337923('0x2397')][_0x337923('0x186f')](_0x5c7bcd['sound'])[_0x337923('0x1376')][_0x337923('0x21ad')](function(_0x9ed55c){var _0x5609f0=_0x337923;_0x5c7bcd[_0x5609f0('0xc64')][_0x5609f0('0xd0c')](_0x9ed55c[_0x5609f0('0x3bc')]()),_0x517b39[_0x5609f0('0xdb1')]({'title':_0x5609f0('0x138b'),'msg':_0x5c7bcd[_0x5609f0('0x2397')][_0x5609f0('0x19fe')]?_0x5c7bcd[_0x5609f0('0x2397')][_0x5609f0('0x19fe')]+_0x5609f0('0x1694'):''}),_0x3b469b(_0x9ed55c);})[_0x337923('0x1c1d')](function(_0xf2e06){var _0x1c947d=_0x337923;if(_0xf2e06[_0x1c947d('0x11c2')]&&_0xf2e06[_0x1c947d('0x11c2')]['errors']&&_0xf2e06[_0x1c947d('0x11c2')]['errors'][_0x1c947d('0x577')]){_0x5c7bcd[_0x1c947d('0x1a69')]=_0xf2e06[_0x1c947d('0x11c2')][_0x1c947d('0x1a69')]||[{'message':_0xf2e06[_0x1c947d('0x174f')](),'type':_0x1c947d('0x17fa')}];for(var _0x443120=0x0;_0x443120<_0xf2e06[_0x1c947d('0x11c2')][_0x1c947d('0x1a69')][_0x1c947d('0x577')];_0x443120+=0x1){_0x517b39[_0x1c947d('0x2092')]({'title':_0xf2e06[_0x1c947d('0x11c2')]['errors'][_0x443120]['type'],'msg':_0xf2e06[_0x1c947d('0x11c2')][_0x1c947d('0x1a69')][_0x443120][_0x1c947d('0x1224')]});}}else _0x517b39[_0x1c947d('0x2092')]({'title':_0xf2e06[_0x1c947d('0x209')]?_0x1c947d('0x22d')+_0xf2e06[_0x1c947d('0x209')]+_0x1c947d('0xa99')+_0xf2e06['statusText']:'api.sound.save','msg':_0xf2e06['data']?JSON[_0x1c947d('0x25e')](_0xf2e06[_0x1c947d('0x11c2')]['message']):_0xf2e06[_0x1c947d('0x174f')]()});});}function _0x3d0c95(){var _0x41e816=_0x126580;_0x5c7bcd[_0x41e816('0x1a69')]=[],_0x911dd4[_0x41e816('0x2397')][_0x41e816('0x5ef')]({'id':_0x5c7bcd[_0x41e816('0x2397')]['id']},_0x5c7bcd[_0x41e816('0x2397')])[_0x41e816('0x1376')]['then'](function(_0x4f5af3){var _0x580070=_0x41e816,_0x5e5183=_0x86640f()[_0x580070('0x1d2e')](_0x5c7bcd[_0x580070('0xc64')],{'id':_0x4f5af3['id']});_0x5e5183&&_0x86640f()['merge'](_0x5e5183,_0x86640f()[_0x580070('0xc50')](_0x4f5af3[_0x580070('0x3bc')](),_0x86640f()[_0x580070('0x223b')](_0x5e5183))),_0x517b39[_0x580070('0xdb1')]({'title':'Sound\x20properly\x20saved!','msg':_0x5c7bcd[_0x580070('0x2397')][_0x580070('0x19fe')]?_0x5c7bcd[_0x580070('0x2397')][_0x580070('0x19fe')]+_0x580070('0x2249'):''}),_0x3b469b(_0x4f5af3);})[_0x41e816('0x1c1d')](function(_0xdea478){var _0x294863=_0x41e816;if(_0xdea478[_0x294863('0x11c2')]&&_0xdea478[_0x294863('0x11c2')]['errors']&&_0xdea478[_0x294863('0x11c2')][_0x294863('0x1a69')]['length']){_0x5c7bcd['errors']=_0xdea478['data'][_0x294863('0x1a69')]||[{'message':_0xdea478['toString'](),'type':_0x294863('0x2147')}];for(var _0x52d4ce=0x0;_0x52d4ce<_0xdea478[_0x294863('0x11c2')]['errors'][_0x294863('0x577')];_0x52d4ce++){_0x517b39['error']({'title':_0xdea478['data'][_0x294863('0x1a69')][_0x52d4ce][_0x294863('0x7fa')],'msg':_0xdea478[_0x294863('0x11c2')][_0x294863('0x1a69')][_0x52d4ce][_0x294863('0x1224')]});}}else _0x517b39[_0x294863('0x2092')]({'title':_0xdea478[_0x294863('0x209')]?_0x294863('0x22d')+_0xdea478[_0x294863('0x209')]+_0x294863('0xa99')+_0xdea478[_0x294863('0x1808')]:'api.sound.update','msg':_0xdea478[_0x294863('0x11c2')]?JSON[_0x294863('0x25e')](_0xdea478['data'][_0x294863('0x1224')]):_0xdea478[_0x294863('0x174f')]()});});}function _0x2d67c3(_0xafa68f){var _0x563e35=_0x126580;_0x5c7bcd[_0x563e35('0x1a69')]=[];var _0x1b49ab=_0xcff3cf[_0x563e35('0xa33')]()[_0x563e35('0x4b4')](_0x563e35('0x196b'))[_0x563e35('0x13fb')](_0x563e35('0x21e7'))[_0x563e35('0x7a7')](_0x563e35('0x22ec'))['ok'](_0x563e35('0xbfd'))[_0x563e35('0x3b5')](_0x563e35('0x1f40'))[_0x563e35('0x1e6d')](_0xafa68f);_0xcff3cf[_0x563e35('0x853')](_0x1b49ab)[_0x563e35('0x21ad')](function(){var _0x3c3814=_0x563e35;_0x911dd4[_0x3c3814('0x2397')][_0x3c3814('0x1164')]({'id':_0x5c7bcd[_0x3c3814('0x2397')]['id']})[_0x3c3814('0x1376')][_0x3c3814('0x21ad')](function(){var _0x56d781=_0x3c3814;_0x86640f()[_0x56d781('0x16a2')](_0x5c7bcd[_0x56d781('0xc64')],{'id':_0x5c7bcd[_0x56d781('0x2397')]['id']}),_0x517b39['success']({'title':_0x56d781('0x2079'),'msg':(_0x5c7bcd['sound'][_0x56d781('0x19fe')]||_0x56d781('0x2397'))+_0x56d781('0xb4a')}),_0x3b469b(_0x5c7bcd[_0x56d781('0x2397')]);})[_0x3c3814('0x1c1d')](function(_0x451ab6){var _0x568cb5=_0x3c3814;if(_0x451ab6[_0x568cb5('0x11c2')]&&_0x451ab6[_0x568cb5('0x11c2')][_0x568cb5('0x1a69')]&&_0x451ab6[_0x568cb5('0x11c2')][_0x568cb5('0x1a69')][_0x568cb5('0x577')]){_0x5c7bcd['errors']=_0x451ab6[_0x568cb5('0x11c2')][_0x568cb5('0x1a69')]||[{'message':_0x451ab6[_0x568cb5('0x174f')](),'type':'api.sound.delete'}];for(var _0xf8efc5=0x0;_0xf8efc5<_0x451ab6[_0x568cb5('0x11c2')][_0x568cb5('0x1a69')]['length'];_0xf8efc5++){_0x517b39[_0x568cb5('0x2092')]({'title':_0x451ab6['data']['errors'][_0xf8efc5][_0x568cb5('0x7fa')],'msg':_0x451ab6[_0x568cb5('0x11c2')][_0x568cb5('0x1a69')][_0xf8efc5][_0x568cb5('0x1224')]});}}else _0x517b39['error']({'title':_0x451ab6[_0x568cb5('0x209')]?'API:'+_0x451ab6[_0x568cb5('0x209')]+_0x568cb5('0xa99')+_0x451ab6[_0x568cb5('0x1808')]:'api.sound.delete','msg':_0x451ab6[_0x568cb5('0x11c2')]?JSON[_0x568cb5('0x25e')](_0x451ab6[_0x568cb5('0x11c2')][_0x568cb5('0x1224')]):_0x451ab6[_0x568cb5('0x1224')]||_0x451ab6['toString']()});});},function(){});}function _0x587146(_0x306ca){return _0x306ca===null?undefined:new Date(_0x306ca);}function _0x3b469b(_0x3ea927){var _0x4437fe=_0x126580;_0xcff3cf[_0x4437fe('0x1c24')](_0x3ea927);}}const _0x4e7f32=_0x4d3fdf,_0x1b2429=_0x398308['p']+_0x3877e3('0x4cc'),_0x3c9919=_0x398308['p']+_0x3877e3('0x1f23');_0x36d1df[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),'$translate','sounds',_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1908'),'Auth','license','setting'];function _0x36d1df(_0x46485a,_0x22cc40,_0x23217b,_0x3bbfaf,_0x286f4a,_0x754412,_0x31aaa2,_0x138a05,_0x226619,_0x1985eb,_0x58ce4b,_0x2031fc,_0x4cea25,_0x715bd0,_0x406bd2,_0x36173e,_0x425230){var _0x58ad90=_0x3877e3,_0x2c0048=this;_0x2c0048[_0x58ad90('0x2ff')]=_0x36173e,_0x2c0048['setting']=_0x425230,_0x2c0048[_0x58ad90('0x123f')]=_0x406bd2[_0x58ad90('0x15ed')](),_0x2c0048[_0x58ad90('0xc64')]=_0x226619||{'count':0x0,'rows':[]},_0x2c0048[_0x58ad90('0x758')]=_0x1985eb,_0x2c0048[_0x58ad90('0xab4')]=_0x58ce4b&&_0x58ce4b['count']==0x1?_0x58ce4b['rows'][0x0]:null,_0x2c0048[_0x58ad90('0x5ed')]=_0x406bd2[_0x58ad90('0x1778')](_0x2c0048[_0x58ad90('0xab4')]?_0x2c0048[_0x58ad90('0xab4')][_0x58ad90('0x5ed')]:null),_0x2c0048[_0x58ad90('0x1897')]=_0x58ad90('0xc64'),_0x2c0048['listOrder']='',_0x2c0048['listOrderAsc']=null,_0x2c0048[_0x58ad90('0x16c1')]=[],_0x2c0048[_0x58ad90('0x77')]={'fields':_0x58ad90('0x1f30'),'sort':_0x58ad90('0x33'),'limit':0xa,'page':0x1},_0x2c0048[_0x58ad90('0x1a97')]=_0xae8428,_0x2c0048[_0x58ad90('0xf10')]=_0x30748f,_0x2c0048[_0x58ad90('0x2593')]=_0x2765ee,_0x2c0048[_0x58ad90('0xdb1')]=_0x3b4739,_0x2c0048[_0x58ad90('0x243e')]=_0x4886a5,_0x2c0048['createOrEditSound']=_0x129542,_0x2c0048[_0x58ad90('0x1252')]=_0x2cd1fc,_0x2c0048['exportSelectedSounds']=_0x2ff563,_0x2c0048['deleteSelectedSounds']=_0x1ba518,_0x2c0048[_0x58ad90('0x138f')]=_0x537834,_0x2c0048[_0x58ad90('0x16ee')]=_0x31414e,_0x2c0048[_0x58ad90('0xffc')]=_0x1a0dfe;function _0xae8428(_0x24f9e1,_0x12cfa2){var _0x26c863=_0x58ad90;_0x286f4a['show']({'controller':_0x26c863('0x291'),'controllerAs':'vm','templateUrl':_0x1b2429,'parent':angular['element'](_0x754412[_0x26c863('0x2452')]),'targetEvent':_0x12cfa2,'clickOutsideToClose':!![],'locals':{'sound':_0x24f9e1,'sounds':_0x2c0048[_0x26c863('0xc64')]['rows'],'license':_0x2c0048[_0x26c863('0x2ff')],'setting':null,'crudPermissions':_0x2c0048[_0x26c863('0x5ed')]}});}function _0x30748f(_0x44e0e1){var _0x4e3a55=_0x58ad90;return _0x2031fc[_0x4e3a55('0x2397')]['download']({'id':_0x44e0e1['id']})[_0x4e3a55('0x1376')]['then'](function(_0xd95460){var _0x5b1c8b=_0x4e3a55,_0x299b7a=[_0xd95460['buffer']],_0x46db81=_0x5b1c8b('0xb0'),_0x29b281=new Blob(_0x299b7a,{'type':_0xd95460[_0x5b1c8b('0x7fa')]});_0x46db81=_0x44e0e1[_0x5b1c8b('0x258b')]?_0x44e0e1[_0x5b1c8b('0x275c')]+'.'+_0x44e0e1['converted_format']:_0x44e0e1['save_name'];var _0x2718b7=window[_0x5b1c8b('0x27c3')][_0x5b1c8b('0x162e')]('a');_0x2718b7[_0x5b1c8b('0x127a')](_0x5b1c8b('0x69e'),URL[_0x5b1c8b('0x167b')](_0x29b281)),_0x2718b7[_0x5b1c8b('0x127a')]('download',_0x46db81),document[_0x5b1c8b('0x2452')][_0x5b1c8b('0x14d0')](_0x2718b7),_0x2718b7['click']();})[_0x4e3a55('0x1c1d')](function(_0x1a57d9){var _0x55cdff=_0x4e3a55;if(_0x1a57d9[_0x55cdff('0x11c2')]&&_0x1a57d9[_0x55cdff('0x11c2')][_0x55cdff('0x1a69')]&&_0x1a57d9[_0x55cdff('0x11c2')][_0x55cdff('0x1a69')][_0x55cdff('0x577')])for(var _0x501e40=0x0;_0x501e40<_0x1a57d9[_0x55cdff('0x11c2')][_0x55cdff('0x1a69')]['length'];_0x501e40++){_0x715bd0[_0x55cdff('0x2092')]({'title':_0x1a57d9[_0x55cdff('0x11c2')][_0x55cdff('0x1a69')][_0x501e40]['type'],'msg':_0x1a57d9['data'][_0x55cdff('0x1a69')][_0x501e40]['message']});}else _0x715bd0[_0x55cdff('0x2092')]({'title':_0x1a57d9[_0x55cdff('0x209')]?_0x55cdff('0x22d')+_0x1a57d9['status']+_0x55cdff('0xa99')+_0x1a57d9[_0x55cdff('0x1808')]:_0x55cdff('0x17fa'),'msg':_0x1a57d9[_0x55cdff('0x11c2')]?JSON['stringify'](_0x1a57d9[_0x55cdff('0x11c2')]['message']):_0x1a57d9[_0x55cdff('0x174f')]()});});}function _0x2765ee(_0x5a33c5,_0x380b39){var _0x3f6286=_0x58ad90,_0x4cdd1e=_0x286f4a[_0x3f6286('0xa33')]()[_0x3f6286('0x4b4')](_0x3f6286('0x25b6')+_0x86640f()[_0x3f6286('0x2159')]('sound')+'?')[_0x3f6286('0x276b')](''+(_0x5a33c5[_0x3f6286('0x19fe')]||_0x3f6286('0x2397'))+''+_0x3f6286('0x25e0'))[_0x3f6286('0x7a7')](_0x3f6286('0xd1'))['targetEvent'](_0x380b39)['ok']('OK')[_0x3f6286('0x3b5')]('CANCEL');_0x286f4a['show'](_0x4cdd1e)['then'](function(){_0x2cd1fc(_0x5a33c5);},function(){var _0x368198=_0x3f6286;console['log'](_0x368198('0x284b'));});}var _0x312908=!![],_0x14403e=0x1;_0x46485a[_0x58ad90('0x10e8')](_0x58ad90('0x1948'),function(_0x57a49a,_0x14bfae){var _0x2ce8ae=_0x58ad90;_0x312908?_0x31aaa2(function(){_0x312908=![];}):(!_0x14bfae&&(_0x14403e=_0x2c0048[_0x2ce8ae('0x77')][_0x2ce8ae('0x2376')]),_0x57a49a!==_0x14bfae&&(_0x2c0048['query'][_0x2ce8ae('0x2376')]=0x1),!_0x57a49a&&(_0x2c0048['query'][_0x2ce8ae('0x2376')]=_0x14403e),_0x2c0048['getSounds']());});function _0x3b4739(_0x33200b){_0x2c0048['sounds']=_0x33200b||{'count':0x0,'rows':[]};}function _0x4886a5(){var _0x5dff79=_0x58ad90;_0x2c0048[_0x5dff79('0x77')][_0x5dff79('0x15a5')]=(_0x2c0048[_0x5dff79('0x77')][_0x5dff79('0x2376')]-0x1)*_0x2c0048['query'][_0x5dff79('0x1f4a')],_0x406bd2['hasRole'](_0x5dff79('0x1bd8'))?_0x2c0048[_0x5dff79('0x71b')]=_0x2031fc[_0x5dff79('0x2397')][_0x5dff79('0x595')](_0x2c0048[_0x5dff79('0x77')],_0x3b4739)[_0x5dff79('0x1376')]:(_0x2c0048[_0x5dff79('0x77')]['id']=_0x2c0048[_0x5dff79('0x758')]['id'],_0x2c0048[_0x5dff79('0x77')][_0x5dff79('0x26ad')]=_0x5dff79('0x4a4'),_0x2c0048[_0x5dff79('0x71b')]=_0x2031fc[_0x5dff79('0x758')][_0x5dff79('0x321')](_0x2c0048['query'],_0x3b4739)[_0x5dff79('0x1376')]);}function _0x129542(_0x46f775,_0x33e2f7){var _0x46e18d=_0x58ad90;_0x286f4a[_0x46e18d('0x853')]({'controller':_0x46e18d('0x291'),'controllerAs':'vm','templateUrl':_0x1b2429,'parent':angular[_0x46e18d('0x1676')](_0x754412[_0x46e18d('0x2452')]),'targetEvent':_0x46f775,'clickOutsideToClose':!![],'locals':{'sound':_0x33e2f7,'sounds':_0x2c0048[_0x46e18d('0xc64')][_0x46e18d('0x1b33')],'license':_0x2c0048[_0x46e18d('0x2ff')],'setting':_0x2c0048['setting'],'crudPermissions':_0x2c0048[_0x46e18d('0x5ed')]}});}function _0x2cd1fc(_0xae7fe7){var _0x167219=_0x58ad90;_0x2031fc[_0x167219('0x2397')][_0x167219('0x1164')]({'id':_0xae7fe7['id']})[_0x167219('0x1376')][_0x167219('0x21ad')](function(){var _0x4dbc5f=_0x167219;_0x86640f()[_0x4dbc5f('0x16a2')](_0x2c0048[_0x4dbc5f('0xc64')]['rows'],{'id':_0xae7fe7['id']}),_0x2c0048[_0x4dbc5f('0xc64')]['count']-=0x1,!_0x2c0048[_0x4dbc5f('0xc64')][_0x4dbc5f('0x1b33')][_0x4dbc5f('0x577')]&&_0x2c0048['getSounds'](),_0x715bd0[_0x4dbc5f('0xdb1')]({'title':_0x86640f()[_0x4dbc5f('0x2159')](_0x4dbc5f('0xcb8'))+'\x20deleted!','msg':_0xae7fe7[_0x4dbc5f('0x19fe')]?_0xae7fe7[_0x4dbc5f('0x19fe')]+_0x4dbc5f('0xb4a'):''});})[_0x167219('0x1c1d')](function(_0x2a7e2b){var _0x41e448=_0x167219;if(_0x2a7e2b[_0x41e448('0x11c2')]&&_0x2a7e2b['data'][_0x41e448('0x1a69')]&&_0x2a7e2b[_0x41e448('0x11c2')]['errors'][_0x41e448('0x577')]){_0x2c0048[_0x41e448('0x1a69')]=_0x2a7e2b['data'][_0x41e448('0x1a69')]||[{'message':_0x2a7e2b[_0x41e448('0x174f')](),'type':'SYSTEM:DELETEsound'}];for(var _0x105ad4=0x0;_0x105ad4<_0x2a7e2b[_0x41e448('0x11c2')][_0x41e448('0x1a69')][_0x41e448('0x577')];_0x105ad4++){_0x715bd0[_0x41e448('0x2092')]({'title':_0x2a7e2b[_0x41e448('0x11c2')][_0x41e448('0x1a69')][_0x105ad4][_0x41e448('0x7fa')],'msg':_0x2a7e2b[_0x41e448('0x11c2')][_0x41e448('0x1a69')][_0x105ad4][_0x41e448('0x1224')]});}}else _0x715bd0[_0x41e448('0x2092')]({'title':_0x2a7e2b[_0x41e448('0x209')]?'API:'+_0x2a7e2b[_0x41e448('0x209')]+_0x41e448('0xa99')+_0x2a7e2b[_0x41e448('0x1808')]:'SYSTEM:DELETEsound','msg':_0x2a7e2b[_0x41e448('0x11c2')]?JSON[_0x41e448('0x25e')](_0x2a7e2b['data'][_0x41e448('0x1224')]):_0x2a7e2b['message']||_0x2a7e2b[_0x41e448('0x174f')]()});});}function _0x2ff563(){var _0x299bfa=_0x58ad90,_0x3ce55d=angular['copy'](_0x2c0048['selectedSounds']);return _0x2c0048[_0x299bfa('0x16c1')]=[],_0x3ce55d;}function _0x1ba518(_0x5088b7){var _0x44bfc9=_0x58ad90,_0x571d1f=_0x286f4a[_0x44bfc9('0xa33')]()[_0x44bfc9('0x4b4')](_0x44bfc9('0x131e'))[_0x44bfc9('0x276b')](_0x44bfc9('0x622')+_0x2c0048[_0x44bfc9('0x16c1')][_0x44bfc9('0x577')]+_0x44bfc9('0xd74')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x44bfc9('0x245a'))[_0x44bfc9('0x1e6d')](_0x5088b7)['ok']('OK')[_0x44bfc9('0x3b5')](_0x44bfc9('0x284b'));_0x286f4a[_0x44bfc9('0x853')](_0x571d1f)['then'](function(){var _0x1e121e=_0x44bfc9;_0x2c0048['selectedSounds']['forEach'](function(_0x5272de){_0x2cd1fc(_0x5272de);}),_0x2c0048[_0x1e121e('0x16c1')]=[];});}function _0x537834(){var _0x471c24=_0x58ad90;_0x2c0048[_0x471c24('0x16c1')]=[];}function _0x31414e(){var _0x4a4cd0=_0x58ad90;_0x2c0048[_0x4a4cd0('0x16c1')]=_0x2c0048[_0x4a4cd0('0xc64')][_0x4a4cd0('0x1b33')];}function _0x1a0dfe(_0x353ddc){var _0x2397ad=_0x58ad90;_0x286f4a[_0x2397ad('0x853')]({'controller':'UploadSoundDialogController','controllerAs':'vm','templateUrl':_0x3c9919,'parent':angular[_0x2397ad('0x1676')](_0x754412[_0x2397ad('0x2452')]),'targetEvent':_0x353ddc,'clickOutsideToClose':!![],'locals':{'sounds':_0x2c0048[_0x2397ad('0xc64')][_0x2397ad('0x1b33')]}});}}const _0x356f13=_0x36d1df;_0x1fc208[_0x3877e3('0x1a81')]=['$cookies','$mdDialog','toasty',_0x3877e3('0xc64'),_0x3877e3('0xccd'),_0x3877e3('0x15bc')];function _0x1fc208(_0x5cc742,_0x4a73b2,_0xfd6b20,_0x4b4af9,_0x221157,_0x28c12b){var _0x3ef9eb=_0x3877e3,_0x199d59=this,_0x54dfad=0xf,_0xe084e2=_0x54dfad*0x400*0x400;_0x199d59[_0x3ef9eb('0x123f')]=_0x28c12b[_0x3ef9eb('0x15ed')](),_0x199d59[_0x3ef9eb('0x1a69')]=[],_0x199d59[_0x3ef9eb('0x4b4')]='TOOLS.UPLOAD_SOUND',_0x199d59[_0x3ef9eb('0xc64')]=_0x4b4af9,_0x199d59[_0x3ef9eb('0x1ae2')]=[],_0x199d59['uploadState']='none',_0x199d59[_0x3ef9eb('0x2397')]={},_0x199d59[_0x3ef9eb('0x467')]={'maxChunkRetries':0x1,'chunkSize':_0xe084e2,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![],'target':_0x3ef9eb('0x1240')},_0x199d59['ngFlow']={'flow':{}},_0x199d59[_0x3ef9eb('0x8c3')]=![],_0x199d59[_0x3ef9eb('0x20d9')]=_0x12e95d,_0x199d59[_0x3ef9eb('0x12d0')]=_0x1d5fc2,_0x199d59[_0x3ef9eb('0x27eb')]=_0x339d6a,_0x199d59[_0x3ef9eb('0x196')]=_0x516507,_0x199d59['uploadComplete']=_0x27a9dc,_0x199d59[_0x3ef9eb('0x167')]=_0x1f9e30;function _0x12e95d(_0x10f1f9){var _0x2c4832=_0x3ef9eb,_0x272cbe=[_0x2c4832('0x1292'),'mp3',_0x2c4832('0xb95')];if(!_0x86640f()[_0x2c4832('0xb34')](_0x272cbe,_0x10f1f9[_0x2c4832('0x9bb')]()))return _0xfd6b20[_0x2c4832('0x2092')]({'title':_0x2c4832('0x397')+_0x10f1f9[_0x2c4832('0x9bb')](),'msg':_0x2c4832('0x156b')+_0x272cbe['join']()}),![];if(_0x10f1f9['size']>_0xe084e2)return _0xfd6b20[_0x2c4832('0x2092')]({'title':'File\x20too\x20big','msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x54dfad+'MB'}),![];return _0x199d59[_0x2c4832('0x2397')]={'id':_0x10f1f9[_0x2c4832('0x25f6')],'file':_0x10f1f9},_0x199d59[_0x2c4832('0x1ae2')][_0x2c4832('0xd0c')](_0x199d59[_0x2c4832('0x2397')]),!![];}function _0x1d5fc2(){var _0x5a2bbf=_0x3ef9eb;_0x199d59[_0x5a2bbf('0x800')]=_0x5a2bbf('0x326'),_0x199d59['ngFlow']['flow'][_0x5a2bbf('0x1dd3')]['headers']={'X-Requested-With':_0x5a2bbf('0x24ca'),'Authorization':_0x5a2bbf('0x5c8')+_0x5cc742['get'](_0x5a2bbf('0x863'))},_0x199d59[_0x5a2bbf('0x1413')][_0x5a2bbf('0x1d76')][_0x5a2bbf('0x1dd3')][_0x5a2bbf('0x77')]={'role':_0x199d59[_0x5a2bbf('0x123f')][_0x5a2bbf('0x25c8')],'userProfileId':_0x199d59[_0x5a2bbf('0x123f')][_0x5a2bbf('0x1618')]},_0x199d59[_0x5a2bbf('0x1413')]['flow'][_0x5a2bbf('0x12d0')]();}function _0x339d6a(_0x137e2e,_0xec0ec1){var _0x36a24a=_0x3ef9eb;_0x199d59['sounds'][_0x36a24a('0xd0c')](JSON['parse'](_0xec0ec1)),angular[_0x36a24a('0x1a52')](_0x199d59[_0x36a24a('0x1ae2')],function(_0x31036f){var _0x4ae028=_0x36a24a;if(_0x31036f['id']===_0x137e2e[_0x4ae028('0x25f6')]){var _0x244d35=new FileReader();_0x244d35['readAsDataURL'](_0x31036f[_0x4ae028('0x18a9')][_0x4ae028('0x18a9')]),_0x244d35[_0x4ae028('0x1efd')]=function(_0x4c6986){var _0x18a229=_0x4ae028;_0x31036f[_0x18a229('0x770')]=_0x4c6986[_0x18a229('0x14a5')]['result'];};}});}function _0x516507(){var _0x33392d=_0x3ef9eb;_0x199d59['ngFlow'][_0x33392d('0x1d76')][_0x33392d('0x3b5')](),_0xfd6b20[_0x33392d('0x2092')]({'title':'Upload\x20error','msg':_0x33392d('0x2540')}),_0x199d59['uploadState']=_0x33392d('0xf58');}function _0x27a9dc(){var _0x4098f8=_0x3ef9eb;_0x199d59[_0x4098f8('0x800')]!==_0x4098f8('0xf58')&&(_0x199d59[_0x4098f8('0x800')]='completed',_0xfd6b20[_0x4098f8('0xdb1')]({'title':_0x4098f8('0x670'),'msg':_0x199d59[_0x4098f8('0x2397')]['file'][_0x4098f8('0x19fe')]+'\x20uploaded\x20successfully'}));}function _0x1f9e30(){var _0x369405=_0x3ef9eb;_0x4a73b2[_0x369405('0x1c24')]();}}const _0x2196b3=_0x1fc208;_0x32cd88[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$state',_0x3877e3('0x14c7'),'$mdDialog','$q',_0x3877e3('0x13c1'),'toasty','tags',_0x3877e3('0x907'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x32cd88(_0x47f918,_0xe0ee5a,_0x29dab0,_0x4a698d,_0x546db8,_0x4f1d47,_0x4d59be,_0x42f292,_0x17a9cf,_0x4e776f,_0x4212d1,_0x521589,_0x4df0ca,_0x108b89){var _0x2b9624=_0x3877e3,_0x2e22c0=this;_0x2e22c0[_0x2b9624('0x123f')]=_0x4212d1[_0x2b9624('0x15ed')](),_0x2e22c0[_0x2b9624('0x1a69')]=[],_0x2e22c0[_0x2b9624('0x21e')]=_0x4df0ca,_0x2e22c0['license']=_0x521589,_0x2e22c0['crudPermissions']=_0x108b89,_0x2e22c0[_0x2b9624('0x126a')]={},_0x2e22c0['passwordPattern']=_0x2e22c0['setting']&&_0x2e22c0[_0x2b9624('0x21e')][_0x2b9624('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2e22c0[_0x2b9624('0x4b4')]=_0x2b9624('0x13db'),_0x2e22c0[_0x2b9624('0x907')]=angular[_0x2b9624('0xd75')](_0x17a9cf),_0x2e22c0[_0x2b9624('0x1889')]=_0x42f292,_0x2e22c0['newTag']=![];!_0x2e22c0[_0x2b9624('0x907')]&&(_0x2e22c0['tag']={},_0x2e22c0[_0x2b9624('0x4b4')]='TOOLS.NEW_TAG',_0x2e22c0[_0x2b9624('0x19d7')]=!![]);_0x2e22c0[_0x2b9624('0x22cc')]=_0xbc6fd7,_0x2e22c0[_0x2b9624('0x184d')]=_0x5edff8,_0x2e22c0['deleteTag']=_0xd07774,_0x2e22c0[_0x2b9624('0x279')]=_0x368c95,_0x2e22c0['closeDialog']=_0x3a1fc9;function _0xbc6fd7(){var _0x331f70=_0x2b9624;_0x2e22c0[_0x331f70('0x1a69')]=[],_0x4e776f[_0x331f70('0x907')][_0x331f70('0x186f')](_0x2e22c0[_0x331f70('0x907')])[_0x331f70('0x1376')]['then'](function(_0x1c5a92){var _0x1f2266=_0x331f70;_0x2e22c0[_0x1f2266('0x1889')][_0x1f2266('0xd0c')](_0x1c5a92['toJSON']()),_0x4d59be[_0x1f2266('0xdb1')]({'title':_0x1f2266('0x1306'),'msg':_0x2e22c0[_0x1f2266('0x907')]['name']?_0x2e22c0['tag']['name']+'\x20has\x20been\x20created!':''}),_0x3a1fc9(_0x1c5a92);})[_0x331f70('0x1c1d')](function(_0xd00726){var _0x1d875b=_0x331f70;if(_0xd00726[_0x1d875b('0x11c2')]&&_0xd00726['data'][_0x1d875b('0x1a69')]&&_0xd00726[_0x1d875b('0x11c2')][_0x1d875b('0x1a69')][_0x1d875b('0x577')]){_0x2e22c0[_0x1d875b('0x1a69')]=_0xd00726['data'][_0x1d875b('0x1a69')]||[{'message':_0xd00726[_0x1d875b('0x174f')](),'type':_0x1d875b('0x1b24')}];for(var _0x4d6289=0x0;_0x4d6289<_0xd00726[_0x1d875b('0x11c2')]['errors'][_0x1d875b('0x577')];_0x4d6289+=0x1){_0x4d59be[_0x1d875b('0x2092')]({'title':_0xd00726[_0x1d875b('0x11c2')]['errors'][_0x4d6289][_0x1d875b('0x7fa')],'msg':_0xd00726[_0x1d875b('0x11c2')][_0x1d875b('0x1a69')][_0x4d6289]['message']});}}else _0x4d59be[_0x1d875b('0x2092')]({'title':_0xd00726[_0x1d875b('0x209')]?_0x1d875b('0x22d')+_0xd00726[_0x1d875b('0x209')]+_0x1d875b('0xa99')+_0xd00726[_0x1d875b('0x1808')]:_0x1d875b('0x1b24'),'msg':_0xd00726['data']?JSON[_0x1d875b('0x25e')](_0xd00726[_0x1d875b('0x11c2')][_0x1d875b('0x1224')]):_0xd00726['toString']()});});}function _0x5edff8(){var _0x207850=_0x2b9624;_0x2e22c0[_0x207850('0x1a69')]=[],_0x4e776f['tag']['update']({'id':_0x2e22c0[_0x207850('0x907')]['id']},_0x2e22c0['tag'])['$promise']['then'](function(_0x10bf20){var _0x420212=_0x207850,_0x253d01=_0x86640f()['find'](_0x2e22c0['tags'],{'id':_0x10bf20['id']});_0x253d01&&_0x86640f()['merge'](_0x253d01,_0x86640f()[_0x420212('0xc50')](_0x10bf20[_0x420212('0x3bc')](),_0x86640f()[_0x420212('0x223b')](_0x253d01))),_0x4d59be['success']({'title':_0x420212('0xb1'),'msg':_0x2e22c0['tag'][_0x420212('0x19fe')]?_0x2e22c0[_0x420212('0x907')][_0x420212('0x19fe')]+_0x420212('0x2249'):''}),_0x3a1fc9(_0x10bf20);})['catch'](function(_0x3800bb){var _0x3e9e83=_0x207850;if(_0x3800bb[_0x3e9e83('0x11c2')]&&_0x3800bb[_0x3e9e83('0x11c2')][_0x3e9e83('0x1a69')]&&_0x3800bb['data'][_0x3e9e83('0x1a69')]['length']){_0x2e22c0['errors']=_0x3800bb['data']['errors']||[{'message':_0x3800bb[_0x3e9e83('0x174f')](),'type':_0x3e9e83('0x143d')}];for(var _0x14c22f=0x0;_0x14c22f<_0x3800bb[_0x3e9e83('0x11c2')][_0x3e9e83('0x1a69')][_0x3e9e83('0x577')];_0x14c22f++){_0x4d59be['error']({'title':_0x3800bb['data']['errors'][_0x14c22f]['type'],'msg':_0x3800bb[_0x3e9e83('0x11c2')][_0x3e9e83('0x1a69')][_0x14c22f]['message']});}}else _0x4d59be[_0x3e9e83('0x2092')]({'title':_0x3800bb[_0x3e9e83('0x209')]?_0x3e9e83('0x22d')+_0x3800bb[_0x3e9e83('0x209')]+_0x3e9e83('0xa99')+_0x3800bb['statusText']:_0x3e9e83('0x143d'),'msg':_0x3800bb[_0x3e9e83('0x11c2')]?JSON['stringify'](_0x3800bb['data'][_0x3e9e83('0x1224')]):_0x3800bb[_0x3e9e83('0x174f')]()});});}function _0xd07774(_0x1cdab3){var _0x32745e=_0x2b9624;_0x2e22c0[_0x32745e('0x1a69')]=[];var _0x3c56fd=_0x4a698d[_0x32745e('0xa33')]()[_0x32745e('0x4b4')]('Are\x20you\x20sure?')[_0x32745e('0x13fb')]('The\x20tag\x20will\x20be\x20deleted.')[_0x32745e('0x7a7')](_0x32745e('0x204c'))['ok']('Delete')[_0x32745e('0x3b5')](_0x32745e('0x1f40'))[_0x32745e('0x1e6d')](_0x1cdab3);_0x4a698d[_0x32745e('0x853')](_0x3c56fd)[_0x32745e('0x21ad')](function(){var _0x39d165=_0x32745e;_0x4e776f[_0x39d165('0x907')]['delete']({'id':_0x2e22c0[_0x39d165('0x907')]['id']})[_0x39d165('0x1376')][_0x39d165('0x21ad')](function(){var _0x585519=_0x39d165;_0x86640f()[_0x585519('0x16a2')](_0x2e22c0[_0x585519('0x1889')],{'id':_0x2e22c0[_0x585519('0x907')]['id']}),_0x4d59be['success']({'title':'Tag\x20properly\x20deleted!','msg':(_0x2e22c0[_0x585519('0x907')][_0x585519('0x19fe')]||_0x585519('0x907'))+_0x585519('0xb4a')}),_0x3a1fc9(_0x2e22c0[_0x585519('0x907')]);})[_0x39d165('0x1c1d')](function(_0x4d9b6b){var _0x1145cd=_0x39d165;if(_0x4d9b6b[_0x1145cd('0x11c2')]&&_0x4d9b6b['data'][_0x1145cd('0x1a69')]&&_0x4d9b6b[_0x1145cd('0x11c2')]['errors'][_0x1145cd('0x577')]){_0x2e22c0[_0x1145cd('0x1a69')]=_0x4d9b6b[_0x1145cd('0x11c2')][_0x1145cd('0x1a69')]||[{'message':_0x4d9b6b[_0x1145cd('0x174f')](),'type':_0x1145cd('0x17ef')}];for(var _0x5e87e5=0x0;_0x5e87e5<_0x4d9b6b[_0x1145cd('0x11c2')][_0x1145cd('0x1a69')][_0x1145cd('0x577')];_0x5e87e5++){_0x4d59be[_0x1145cd('0x2092')]({'title':_0x4d9b6b['data']['errors'][_0x5e87e5][_0x1145cd('0x7fa')],'msg':_0x4d9b6b[_0x1145cd('0x11c2')]['errors'][_0x5e87e5][_0x1145cd('0x1224')]});}}else _0x4d59be[_0x1145cd('0x2092')]({'title':_0x4d9b6b[_0x1145cd('0x209')]?_0x1145cd('0x22d')+_0x4d9b6b[_0x1145cd('0x209')]+_0x1145cd('0xa99')+_0x4d9b6b[_0x1145cd('0x1808')]:'api.tag.delete','msg':_0x4d9b6b[_0x1145cd('0x11c2')]?JSON[_0x1145cd('0x25e')](_0x4d9b6b[_0x1145cd('0x11c2')][_0x1145cd('0x1224')]):_0x4d9b6b[_0x1145cd('0x1224')]||_0x4d9b6b[_0x1145cd('0x174f')]()});});},function(){});}function _0x368c95(_0x1b68e0){return _0x1b68e0===null?undefined:new Date(_0x1b68e0);}function _0x3a1fc9(_0x3dcf82){_0x4a698d['hide'](_0x3dcf82);}}const _0x295df9=_0x32cd88,_0x25d96d=_0x398308['p']+_0x3877e3('0x2037');_0x369b11[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$window',_0x3877e3('0xa9f'),'$mdSidenav',_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x13c1'),_0x3877e3('0x1889'),_0x3877e3('0x758'),_0x3877e3('0xab4'),'api',_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x369b11(_0x43d996,_0x12a2f0,_0x58fbd3,_0x5bc4cc,_0x40946b,_0x7a7e2f,_0x524187,_0xa0a9f9,_0x5a40b1,_0x47876d,_0x188c6e,_0x3d96d4,_0x2ff0c0,_0x41aa6f,_0x4b26e4,_0x5e9d69,_0x34d99b){var _0x340ea7=_0x3877e3,_0x386a20=this;_0x386a20[_0x340ea7('0x2ff')]=_0x5e9d69,_0x386a20[_0x340ea7('0x21e')]=_0x34d99b,_0x386a20['currentUser']=_0x4b26e4[_0x340ea7('0x15ed')](),_0x386a20['tags']=_0x5a40b1||{'count':0x0,'rows':[]},_0x386a20[_0x340ea7('0x758')]=_0x47876d,_0x386a20[_0x340ea7('0xab4')]=_0x188c6e&&_0x188c6e[_0x340ea7('0x205f')]==0x1?_0x188c6e[_0x340ea7('0x1b33')][0x0]:null,_0x386a20[_0x340ea7('0x5ed')]=_0x4b26e4[_0x340ea7('0x1778')](_0x386a20[_0x340ea7('0xab4')]?_0x386a20[_0x340ea7('0xab4')][_0x340ea7('0x5ed')]:null),_0x386a20[_0x340ea7('0x1897')]=_0x340ea7('0x1889'),_0x386a20[_0x340ea7('0x11dc')]='',_0x386a20[_0x340ea7('0x18cf')]=null,_0x386a20[_0x340ea7('0xb86')]=[],_0x386a20[_0x340ea7('0x77')]={'fields':_0x340ea7('0x45d'),'sort':_0x340ea7('0x33'),'limit':0xa,'page':0x1},_0x386a20[_0x340ea7('0x1a97')]=_0x2cef76,_0x386a20[_0x340ea7('0x2593')]=_0x53f011,_0x386a20[_0x340ea7('0xdb1')]=_0x399410,_0x386a20[_0x340ea7('0x2590')]=_0x366ddb,_0x386a20[_0x340ea7('0x1a68')]=_0x4e63e8,_0x386a20[_0x340ea7('0xd15')]=_0x38d850,_0x386a20['exportSelectedTags']=_0x1e5abd,_0x386a20[_0x340ea7('0x1e03')]=_0x122af1,_0x386a20[_0x340ea7('0x440')]=_0x4d83ef,_0x386a20[_0x340ea7('0x106c')]=_0x52c1e9;function _0x2cef76(_0x49bfde,_0x4e14b7){var _0x31dcba=_0x340ea7;_0x40946b['show']({'controller':_0x31dcba('0x25a0'),'controllerAs':'vm','templateUrl':_0x25d96d,'parent':angular['element'](_0x7a7e2f['body']),'targetEvent':_0x4e14b7,'clickOutsideToClose':!![],'locals':{'tag':_0x49bfde,'tags':_0x386a20[_0x31dcba('0x1889')][_0x31dcba('0x1b33')],'license':_0x386a20['license'],'setting':null,'crudPermissions':_0x386a20[_0x31dcba('0x5ed')]}});}function _0x53f011(_0x4f2f86,_0x591b4e){var _0x58daea=_0x340ea7,_0x4c5705=_0x40946b[_0x58daea('0xa33')]()[_0x58daea('0x4b4')](_0x58daea('0x25b6')+_0x86640f()['startCase'](_0x58daea('0x907'))+'?')[_0x58daea('0x276b')](_0x58daea('0x622')+(_0x4f2f86[_0x58daea('0x19fe')]||'tag')+_0x58daea('0x2135')+_0x58daea('0x25e0'))[_0x58daea('0x7a7')](_0x58daea('0x20c8'))[_0x58daea('0x1e6d')](_0x591b4e)['ok']('OK')[_0x58daea('0x3b5')]('CANCEL');_0x40946b[_0x58daea('0x853')](_0x4c5705)[_0x58daea('0x21ad')](function(){_0x38d850(_0x4f2f86);},function(){console['log']('CANCEL');});}var _0x58ae4f=!![],_0x2876ed=0x1;_0x43d996[_0x340ea7('0x10e8')]('vm.query.filter',function(_0x24aecb,_0x230cbe){var _0x2c038a=_0x340ea7;_0x58ae4f?_0x524187(function(){_0x58ae4f=![];}):(!_0x230cbe&&(_0x2876ed=_0x386a20['query'][_0x2c038a('0x2376')]),_0x24aecb!==_0x230cbe&&(_0x386a20[_0x2c038a('0x77')][_0x2c038a('0x2376')]=0x1),!_0x24aecb&&(_0x386a20[_0x2c038a('0x77')]['page']=_0x2876ed),_0x386a20[_0x2c038a('0x2590')]());});function _0x399410(_0x5c6894){var _0x442e82=_0x340ea7;_0x386a20[_0x442e82('0x1889')]=_0x5c6894||{'count':0x0,'rows':[]};}function _0x366ddb(){var _0x509f34=_0x340ea7;_0x386a20[_0x509f34('0x77')]['offset']=(_0x386a20['query']['page']-0x1)*_0x386a20[_0x509f34('0x77')]['limit'],_0x4b26e4[_0x509f34('0x21de')](_0x509f34('0x1bd8'))?_0x386a20[_0x509f34('0x71b')]=_0x3d96d4['tag'][_0x509f34('0x595')](_0x386a20[_0x509f34('0x77')],_0x399410)[_0x509f34('0x1376')]:(_0x386a20[_0x509f34('0x77')]['id']=_0x386a20[_0x509f34('0x758')]['id'],_0x386a20[_0x509f34('0x77')][_0x509f34('0x26ad')]='Tags',_0x386a20[_0x509f34('0x71b')]=_0x3d96d4[_0x509f34('0x758')][_0x509f34('0x321')](_0x386a20[_0x509f34('0x77')],_0x399410)[_0x509f34('0x1376')]);}function _0x4e63e8(_0x1ec51f,_0x24e6d6){var _0x2e6e61=_0x340ea7;_0x40946b['show']({'controller':'CreateOrEditTagDialogController','controllerAs':'vm','templateUrl':_0x25d96d,'parent':angular['element'](_0x7a7e2f[_0x2e6e61('0x2452')]),'targetEvent':_0x1ec51f,'clickOutsideToClose':!![],'locals':{'tag':_0x24e6d6,'tags':_0x386a20['tags'][_0x2e6e61('0x1b33')],'license':_0x386a20['license'],'setting':_0x386a20[_0x2e6e61('0x21e')],'crudPermissions':_0x386a20['crudPermissions']}});}function _0x38d850(_0x4c42d9){var _0x228b43=_0x340ea7;_0x3d96d4[_0x228b43('0x907')][_0x228b43('0x1164')]({'id':_0x4c42d9['id']})[_0x228b43('0x1376')][_0x228b43('0x21ad')](function(){var _0x4db4b7=_0x228b43;_0x86640f()['remove'](_0x386a20['tags'][_0x4db4b7('0x1b33')],{'id':_0x4c42d9['id']}),_0x386a20[_0x4db4b7('0x1889')][_0x4db4b7('0x205f')]-=0x1,!_0x386a20['tags']['rows'][_0x4db4b7('0x577')]&&_0x386a20[_0x4db4b7('0x2590')](),_0x41aa6f[_0x4db4b7('0xdb1')]({'title':_0x86640f()[_0x4db4b7('0x2159')](_0x4db4b7('0x295'))+_0x4db4b7('0xe64'),'msg':_0x4c42d9[_0x4db4b7('0x19fe')]?_0x4c42d9['name']+_0x4db4b7('0xb4a'):''});})[_0x228b43('0x1c1d')](function(_0x373e1c){var _0x3a7d5c=_0x228b43;if(_0x373e1c[_0x3a7d5c('0x11c2')]&&_0x373e1c[_0x3a7d5c('0x11c2')][_0x3a7d5c('0x1a69')]&&_0x373e1c[_0x3a7d5c('0x11c2')]['errors']['length']){_0x386a20[_0x3a7d5c('0x1a69')]=_0x373e1c['data'][_0x3a7d5c('0x1a69')]||[{'message':_0x373e1c[_0x3a7d5c('0x174f')](),'type':_0x3a7d5c('0x1920')}];for(var _0x5d3725=0x0;_0x5d3725<_0x373e1c[_0x3a7d5c('0x11c2')][_0x3a7d5c('0x1a69')][_0x3a7d5c('0x577')];_0x5d3725++){_0x41aa6f[_0x3a7d5c('0x2092')]({'title':_0x373e1c[_0x3a7d5c('0x11c2')][_0x3a7d5c('0x1a69')][_0x5d3725][_0x3a7d5c('0x7fa')],'msg':_0x373e1c[_0x3a7d5c('0x11c2')][_0x3a7d5c('0x1a69')][_0x5d3725][_0x3a7d5c('0x1224')]});}}else _0x41aa6f[_0x3a7d5c('0x2092')]({'title':_0x373e1c[_0x3a7d5c('0x209')]?_0x3a7d5c('0x22d')+_0x373e1c[_0x3a7d5c('0x209')]+_0x3a7d5c('0xa99')+_0x373e1c[_0x3a7d5c('0x1808')]:_0x3a7d5c('0x1920'),'msg':_0x373e1c[_0x3a7d5c('0x11c2')]?JSON[_0x3a7d5c('0x25e')](_0x373e1c['data']['message']):_0x373e1c[_0x3a7d5c('0x1224')]||_0x373e1c[_0x3a7d5c('0x174f')]()});});}function _0x1e5abd(){var _0x41a051=_0x340ea7,_0x23f059=angular[_0x41a051('0xd75')](_0x386a20[_0x41a051('0xb86')]);return _0x386a20[_0x41a051('0xb86')]=[],_0x23f059;}function _0x122af1(_0x3ac73b){var _0x59389c=_0x340ea7,_0x3a9f8d=_0x40946b[_0x59389c('0xa33')]()[_0x59389c('0x4b4')](_0x59389c('0x15c4'))[_0x59389c('0x276b')](_0x59389c('0x622')+_0x386a20[_0x59389c('0xb86')][_0x59389c('0x577')]+_0x59389c('0xd74')+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20Tags')[_0x59389c('0x1e6d')](_0x3ac73b)['ok']('OK')['cancel'](_0x59389c('0x284b'));_0x40946b[_0x59389c('0x853')](_0x3a9f8d)[_0x59389c('0x21ad')](function(){var _0x17b306=_0x59389c;_0x386a20[_0x17b306('0xb86')][_0x17b306('0x1a52')](function(_0x31925c){_0x38d850(_0x31925c);}),_0x386a20[_0x17b306('0xb86')]=[];});}function _0x4d83ef(){var _0x4c7900=_0x340ea7;_0x386a20[_0x4c7900('0xb86')]=[];}function _0x52c1e9(){var _0x26aaa7=_0x340ea7;_0x386a20['selectedTags']=_0x386a20[_0x26aaa7('0x1889')]['rows'];}}const _0x2ed030=_0x369b11;_0x47a980[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$state',_0x3877e3('0x14c7'),'$mdDialog','$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),'templates',_0x3877e3('0x1a51'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'license','setting',_0x3877e3('0x5ed')];function _0x47a980(_0x4af22a,_0x4a4c10,_0x31d84c,_0x2cb3f4,_0x2f8a14,_0x2997e5,_0x4e035e,_0x22cb23,_0x4cf052,_0x4f0e4e,_0x1e2470,_0x5822d0,_0x491c21,_0x86a7c2){var _0x1ccf81=_0x3877e3,_0x2b5307=this;_0x2b5307[_0x1ccf81('0x123f')]=_0x1e2470[_0x1ccf81('0x15ed')](),_0x2b5307[_0x1ccf81('0x1a69')]=[],_0x2b5307[_0x1ccf81('0x21e')]=_0x491c21,_0x2b5307[_0x1ccf81('0x2ff')]=_0x5822d0,_0x2b5307['crudPermissions']=_0x86a7c2,_0x2b5307['hasModulePermissions']={},_0x2b5307['passwordPattern']=_0x2b5307[_0x1ccf81('0x21e')]&&_0x2b5307['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2b5307['title']=_0x1ccf81('0x1f8a'),_0x2b5307[_0x1ccf81('0x1a51')]=angular['copy'](_0x4cf052),_0x2b5307[_0x1ccf81('0x942')]=_0x22cb23,_0x2b5307[_0x1ccf81('0x12fa')]=![];!_0x2b5307[_0x1ccf81('0x1a51')]&&(_0x2b5307['template']={},_0x2b5307[_0x1ccf81('0x4b4')]='TOOLS.NEW_TEMPLATE',_0x2b5307[_0x1ccf81('0x12fa')]=!![]);_0x2b5307[_0x1ccf81('0x2490')]=_0x28a7df,_0x2b5307['saveTemplate']=_0x52212a,_0x2b5307[_0x1ccf81('0x1b29')]=_0x5b1f2f,_0x2b5307[_0x1ccf81('0x279')]=_0x166b4e,_0x2b5307[_0x1ccf81('0x167')]=_0x309422;function _0x28a7df(){var _0x53adfe=_0x1ccf81;_0x2b5307['errors']=[],_0x4f0e4e[_0x53adfe('0x1a51')]['save'](_0x2b5307['template'])[_0x53adfe('0x1376')][_0x53adfe('0x21ad')](function(_0x17a6e5){var _0x254b51=_0x53adfe;_0x2b5307[_0x254b51('0x942')][_0x254b51('0xd0c')](_0x17a6e5['toJSON']()),_0x4e035e['success']({'title':_0x254b51('0x12de'),'msg':_0x2b5307[_0x254b51('0x1a51')][_0x254b51('0x19fe')]?_0x2b5307[_0x254b51('0x1a51')][_0x254b51('0x19fe')]+_0x254b51('0x1694'):''}),_0x309422(_0x17a6e5);})['catch'](function(_0x90c93d){var _0x1941e0=_0x53adfe;if(_0x90c93d[_0x1941e0('0x11c2')]&&_0x90c93d[_0x1941e0('0x11c2')][_0x1941e0('0x1a69')]&&_0x90c93d[_0x1941e0('0x11c2')][_0x1941e0('0x1a69')][_0x1941e0('0x577')]){_0x2b5307[_0x1941e0('0x1a69')]=_0x90c93d[_0x1941e0('0x11c2')]['errors']||[{'message':_0x90c93d[_0x1941e0('0x174f')](),'type':'api.template.save'}];for(var _0x4ba666=0x0;_0x4ba666<_0x90c93d['data']['errors'][_0x1941e0('0x577')];_0x4ba666+=0x1){_0x4e035e[_0x1941e0('0x2092')]({'title':_0x90c93d[_0x1941e0('0x11c2')][_0x1941e0('0x1a69')][_0x4ba666]['type'],'msg':_0x90c93d[_0x1941e0('0x11c2')][_0x1941e0('0x1a69')][_0x4ba666][_0x1941e0('0x1224')]});}}else _0x4e035e[_0x1941e0('0x2092')]({'title':_0x90c93d[_0x1941e0('0x209')]?_0x1941e0('0x22d')+_0x90c93d[_0x1941e0('0x209')]+_0x1941e0('0xa99')+_0x90c93d['statusText']:_0x1941e0('0xa48'),'msg':_0x90c93d[_0x1941e0('0x11c2')]?JSON['stringify'](_0x90c93d[_0x1941e0('0x11c2')][_0x1941e0('0x1224')]):_0x90c93d[_0x1941e0('0x174f')]()});});}function _0x52212a(){var _0x11e51b=_0x1ccf81;_0x2b5307[_0x11e51b('0x1a69')]=[],_0x4f0e4e[_0x11e51b('0x1a51')]['update']({'id':_0x2b5307[_0x11e51b('0x1a51')]['id']},_0x2b5307[_0x11e51b('0x1a51')])['$promise'][_0x11e51b('0x21ad')](function(_0x2aeb3a){var _0x5bd1ff=_0x11e51b,_0x5cf319=_0x86640f()[_0x5bd1ff('0x1d2e')](_0x2b5307['templates'],{'id':_0x2aeb3a['id']});_0x5cf319&&_0x86640f()['merge'](_0x5cf319,_0x86640f()[_0x5bd1ff('0xc50')](_0x2aeb3a[_0x5bd1ff('0x3bc')](),_0x86640f()[_0x5bd1ff('0x223b')](_0x5cf319))),_0x4e035e[_0x5bd1ff('0xdb1')]({'title':_0x5bd1ff('0x1420'),'msg':_0x2b5307[_0x5bd1ff('0x1a51')][_0x5bd1ff('0x19fe')]?_0x2b5307[_0x5bd1ff('0x1a51')][_0x5bd1ff('0x19fe')]+_0x5bd1ff('0x2249'):''}),_0x309422(_0x2aeb3a);})[_0x11e51b('0x1c1d')](function(_0x514a02){var _0x4c1f35=_0x11e51b;if(_0x514a02['data']&&_0x514a02[_0x4c1f35('0x11c2')][_0x4c1f35('0x1a69')]&&_0x514a02[_0x4c1f35('0x11c2')][_0x4c1f35('0x1a69')]['length']){_0x2b5307[_0x4c1f35('0x1a69')]=_0x514a02[_0x4c1f35('0x11c2')][_0x4c1f35('0x1a69')]||[{'message':_0x514a02[_0x4c1f35('0x174f')](),'type':_0x4c1f35('0x161c')}];for(var _0x1d00e4=0x0;_0x1d00e4<_0x514a02[_0x4c1f35('0x11c2')][_0x4c1f35('0x1a69')][_0x4c1f35('0x577')];_0x1d00e4++){_0x4e035e[_0x4c1f35('0x2092')]({'title':_0x514a02['data']['errors'][_0x1d00e4][_0x4c1f35('0x7fa')],'msg':_0x514a02[_0x4c1f35('0x11c2')][_0x4c1f35('0x1a69')][_0x1d00e4][_0x4c1f35('0x1224')]});}}else _0x4e035e[_0x4c1f35('0x2092')]({'title':_0x514a02[_0x4c1f35('0x209')]?_0x4c1f35('0x22d')+_0x514a02['status']+'\x20-\x20'+_0x514a02['statusText']:_0x4c1f35('0x161c'),'msg':_0x514a02['data']?JSON[_0x4c1f35('0x25e')](_0x514a02[_0x4c1f35('0x11c2')][_0x4c1f35('0x1224')]):_0x514a02[_0x4c1f35('0x174f')]()});});}function _0x5b1f2f(_0xf7afc5){var _0x15651b=_0x1ccf81;_0x2b5307[_0x15651b('0x1a69')]=[];var _0xd62a67=_0x2cb3f4['confirm']()[_0x15651b('0x4b4')]('Are\x20you\x20sure?')[_0x15651b('0x13fb')](_0x15651b('0x395'))[_0x15651b('0x7a7')]('Delete\x20Template')['ok'](_0x15651b('0xbfd'))[_0x15651b('0x3b5')](_0x15651b('0x1f40'))[_0x15651b('0x1e6d')](_0xf7afc5);_0x2cb3f4[_0x15651b('0x853')](_0xd62a67)['then'](function(){var _0x218e20=_0x15651b;_0x4f0e4e[_0x218e20('0x1a51')][_0x218e20('0x1164')]({'id':_0x2b5307['template']['id']})[_0x218e20('0x1376')]['then'](function(){var _0x3b041a=_0x218e20;_0x86640f()[_0x3b041a('0x16a2')](_0x2b5307['templates'],{'id':_0x2b5307['template']['id']}),_0x4e035e[_0x3b041a('0xdb1')]({'title':_0x3b041a('0x85c'),'msg':(_0x2b5307['template'][_0x3b041a('0x19fe')]||_0x3b041a('0x1a51'))+_0x3b041a('0xb4a')}),_0x309422(_0x2b5307['template']);})[_0x218e20('0x1c1d')](function(_0x13a6e8){var _0x1b623e=_0x218e20;if(_0x13a6e8[_0x1b623e('0x11c2')]&&_0x13a6e8[_0x1b623e('0x11c2')][_0x1b623e('0x1a69')]&&_0x13a6e8[_0x1b623e('0x11c2')][_0x1b623e('0x1a69')][_0x1b623e('0x577')]){_0x2b5307['errors']=_0x13a6e8[_0x1b623e('0x11c2')][_0x1b623e('0x1a69')]||[{'message':_0x13a6e8[_0x1b623e('0x174f')](),'type':_0x1b623e('0x1467')}];for(var _0x3242e8=0x0;_0x3242e8<_0x13a6e8['data'][_0x1b623e('0x1a69')]['length'];_0x3242e8++){_0x4e035e[_0x1b623e('0x2092')]({'title':_0x13a6e8[_0x1b623e('0x11c2')]['errors'][_0x3242e8]['type'],'msg':_0x13a6e8[_0x1b623e('0x11c2')][_0x1b623e('0x1a69')][_0x3242e8]['message']});}}else _0x4e035e[_0x1b623e('0x2092')]({'title':_0x13a6e8[_0x1b623e('0x209')]?_0x1b623e('0x22d')+_0x13a6e8[_0x1b623e('0x209')]+_0x1b623e('0xa99')+_0x13a6e8[_0x1b623e('0x1808')]:_0x1b623e('0x1467'),'msg':_0x13a6e8['data']?JSON[_0x1b623e('0x25e')](_0x13a6e8['data'][_0x1b623e('0x1224')]):_0x13a6e8[_0x1b623e('0x1224')]||_0x13a6e8[_0x1b623e('0x174f')]()});});},function(){});}function _0x166b4e(_0x1b8f7f){return _0x1b8f7f===null?undefined:new Date(_0x1b8f7f);}function _0x309422(_0x2a9ef0){var _0x4ae62e=_0x1ccf81;_0x2cb3f4[_0x4ae62e('0x1c24')](_0x2a9ef0);}}const _0x46310e=_0x47a980,_0x2807a0=_0x398308['p']+_0x3877e3('0x1c6b');_0x5492ce[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),'$state',_0x3877e3('0x2828'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),'$translate',_0x3877e3('0x942'),_0x3877e3('0x758'),'userProfileSection',_0x3877e3('0xccd'),'msUtils',_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x5492ce(_0x5a2490,_0x117c41,_0x29befb,_0x2e8408,_0x2b0f52,_0x3cec34,_0x35368f,_0x577a54,_0x290884,_0x407b20,_0x48daab,_0x3a9b8e,_0x5b4b0c,_0x53d58d,_0x457753,_0x399f9e,_0x36128a){var _0x1e1b41=_0x3877e3,_0x2827d0=this;_0x2827d0['license']=_0x399f9e,_0x2827d0['setting']=_0x36128a,_0x2827d0[_0x1e1b41('0x123f')]=_0x457753[_0x1e1b41('0x15ed')](),_0x2827d0[_0x1e1b41('0x942')]=_0x290884||{'count':0x0,'rows':[]},_0x2827d0[_0x1e1b41('0x758')]=_0x407b20,_0x2827d0[_0x1e1b41('0xab4')]=_0x48daab&&_0x48daab[_0x1e1b41('0x205f')]==0x1?_0x48daab['rows'][0x0]:null,_0x2827d0[_0x1e1b41('0x5ed')]=_0x457753[_0x1e1b41('0x1778')](_0x2827d0[_0x1e1b41('0xab4')]?_0x2827d0[_0x1e1b41('0xab4')][_0x1e1b41('0x5ed')]:null),_0x2827d0[_0x1e1b41('0x1897')]=_0x1e1b41('0x942'),_0x2827d0[_0x1e1b41('0x11dc')]='',_0x2827d0[_0x1e1b41('0x18cf')]=null,_0x2827d0[_0x1e1b41('0x2e7')]=[],_0x2827d0['query']={'fields':_0x1e1b41('0x2612'),'sort':_0x1e1b41('0x33'),'limit':0xa,'page':0x1},_0x2827d0['editdialog']=_0x226c7f,_0x2827d0[_0x1e1b41('0x2593')]=_0xf40f8f,_0x2827d0[_0x1e1b41('0xdb1')]=_0x14226f,_0x2827d0[_0x1e1b41('0x10b9')]=_0x131b41,_0x2827d0[_0x1e1b41('0x18b0')]=_0x2f3b3c,_0x2827d0[_0x1e1b41('0x1b29')]=_0x443ba7,_0x2827d0[_0x1e1b41('0x9c0')]=_0x5f332e,_0x2827d0[_0x1e1b41('0x1696')]=_0x11b8a9,_0x2827d0['deselectTemplates']=_0x4f9a5c,_0x2827d0['selectAllTemplates']=_0x478a74;function _0x226c7f(_0x399bd9,_0x480e13){var _0x57dd53=_0x1e1b41;_0x2b0f52['show']({'controller':_0x57dd53('0x7d9'),'controllerAs':'vm','templateUrl':_0x2807a0,'parent':angular[_0x57dd53('0x1676')](_0x3cec34['body']),'targetEvent':_0x480e13,'clickOutsideToClose':!![],'locals':{'template':_0x399bd9,'templates':_0x2827d0[_0x57dd53('0x942')][_0x57dd53('0x1b33')],'license':_0x2827d0['license'],'setting':null,'crudPermissions':_0x2827d0[_0x57dd53('0x5ed')]}});}function _0xf40f8f(_0xb128ff,_0x23d6d4){var _0x2eaaf1=_0x1e1b41,_0x4a64e7=_0x2b0f52[_0x2eaaf1('0xa33')]()[_0x2eaaf1('0x4b4')](_0x2eaaf1('0x25b6')+_0x86640f()[_0x2eaaf1('0x2159')](_0x2eaaf1('0x1a51'))+'?')[_0x2eaaf1('0x276b')](''+(_0xb128ff[_0x2eaaf1('0x19fe')]||_0x2eaaf1('0x1a51'))+_0x2eaaf1('0x2135')+_0x2eaaf1('0x25e0'))['ariaLabel'](_0x2eaaf1('0xe4b'))[_0x2eaaf1('0x1e6d')](_0x23d6d4)['ok']('OK')['cancel'](_0x2eaaf1('0x284b'));_0x2b0f52['show'](_0x4a64e7)[_0x2eaaf1('0x21ad')](function(){_0x443ba7(_0xb128ff);},function(){var _0x784419=_0x2eaaf1;console[_0x784419('0x6fb')](_0x784419('0x284b'));});}var _0x21b583=!![],_0x47c72f=0x1;_0x5a2490[_0x1e1b41('0x10e8')]('vm.query.filter',function(_0xa0a77e,_0x418085){var _0x41f82a=_0x1e1b41;_0x21b583?_0x35368f(function(){_0x21b583=![];}):(!_0x418085&&(_0x47c72f=_0x2827d0[_0x41f82a('0x77')][_0x41f82a('0x2376')]),_0xa0a77e!==_0x418085&&(_0x2827d0[_0x41f82a('0x77')][_0x41f82a('0x2376')]=0x1),!_0xa0a77e&&(_0x2827d0['query']['page']=_0x47c72f),_0x2827d0[_0x41f82a('0x10b9')]());});function _0x14226f(_0x3ebf43){var _0x3b82b1=_0x1e1b41;_0x2827d0[_0x3b82b1('0x942')]=_0x3ebf43||{'count':0x0,'rows':[]};}function _0x131b41(){var _0x6dbf85=_0x1e1b41;_0x2827d0['query'][_0x6dbf85('0x15a5')]=(_0x2827d0[_0x6dbf85('0x77')][_0x6dbf85('0x2376')]-0x1)*_0x2827d0[_0x6dbf85('0x77')]['limit'],_0x457753[_0x6dbf85('0x21de')](_0x6dbf85('0x1bd8'))?_0x2827d0[_0x6dbf85('0x71b')]=_0x3a9b8e[_0x6dbf85('0x1a51')]['get'](_0x2827d0[_0x6dbf85('0x77')],_0x14226f)['$promise']:(_0x2827d0[_0x6dbf85('0x77')]['id']=_0x2827d0['userProfile']['id'],_0x2827d0['query'][_0x6dbf85('0x26ad')]=_0x6dbf85('0x19b9'),_0x2827d0[_0x6dbf85('0x71b')]=_0x3a9b8e['userProfile']['getResources'](_0x2827d0[_0x6dbf85('0x77')],_0x14226f)[_0x6dbf85('0x1376')]);}function _0x2f3b3c(_0x48fdf4,_0x10cd6d){var _0x514262=_0x1e1b41;_0x2b0f52[_0x514262('0x853')]({'controller':_0x514262('0x7d9'),'controllerAs':'vm','templateUrl':_0x2807a0,'parent':angular['element'](_0x3cec34['body']),'targetEvent':_0x48fdf4,'clickOutsideToClose':!![],'locals':{'template':_0x10cd6d,'templates':_0x2827d0[_0x514262('0x942')][_0x514262('0x1b33')],'license':_0x2827d0[_0x514262('0x2ff')],'setting':_0x2827d0[_0x514262('0x21e')],'crudPermissions':_0x2827d0[_0x514262('0x5ed')]}});}function _0x443ba7(_0x568a8f){var _0x571ff1=_0x1e1b41;_0x3a9b8e[_0x571ff1('0x1a51')][_0x571ff1('0x1164')]({'id':_0x568a8f['id']})[_0x571ff1('0x1376')][_0x571ff1('0x21ad')](function(){var _0x5580b8=_0x571ff1;_0x86640f()[_0x5580b8('0x16a2')](_0x2827d0[_0x5580b8('0x942')][_0x5580b8('0x1b33')],{'id':_0x568a8f['id']}),_0x2827d0[_0x5580b8('0x942')][_0x5580b8('0x205f')]-=0x1,!_0x2827d0[_0x5580b8('0x942')][_0x5580b8('0x1b33')][_0x5580b8('0x577')]&&_0x2827d0[_0x5580b8('0x10b9')](),_0x53d58d[_0x5580b8('0xdb1')]({'title':_0x86640f()[_0x5580b8('0x2159')](_0x5580b8('0x18d9'))+_0x5580b8('0xe64'),'msg':_0x568a8f['name']?_0x568a8f[_0x5580b8('0x19fe')]+'\x20has\x20been\x20deleted!':''});})[_0x571ff1('0x1c1d')](function(_0x583722){var _0x3b66b7=_0x571ff1;if(_0x583722['data']&&_0x583722[_0x3b66b7('0x11c2')]['errors']&&_0x583722[_0x3b66b7('0x11c2')][_0x3b66b7('0x1a69')]['length']){_0x2827d0[_0x3b66b7('0x1a69')]=_0x583722[_0x3b66b7('0x11c2')][_0x3b66b7('0x1a69')]||[{'message':_0x583722[_0x3b66b7('0x174f')](),'type':'SYSTEM:DELETEtemplate'}];for(var _0x2cf24c=0x0;_0x2cf24c<_0x583722['data'][_0x3b66b7('0x1a69')][_0x3b66b7('0x577')];_0x2cf24c++){_0x53d58d['error']({'title':_0x583722[_0x3b66b7('0x11c2')]['errors'][_0x2cf24c][_0x3b66b7('0x7fa')],'msg':_0x583722[_0x3b66b7('0x11c2')][_0x3b66b7('0x1a69')][_0x2cf24c][_0x3b66b7('0x1224')]});}}else _0x53d58d[_0x3b66b7('0x2092')]({'title':_0x583722[_0x3b66b7('0x209')]?_0x3b66b7('0x22d')+_0x583722[_0x3b66b7('0x209')]+_0x3b66b7('0xa99')+_0x583722['statusText']:_0x3b66b7('0xd62'),'msg':_0x583722[_0x3b66b7('0x11c2')]?JSON[_0x3b66b7('0x25e')](_0x583722[_0x3b66b7('0x11c2')][_0x3b66b7('0x1224')]):_0x583722['message']||_0x583722[_0x3b66b7('0x174f')]()});});}function _0x5f332e(){var _0x17f8f1=_0x1e1b41,_0xd461e8=angular[_0x17f8f1('0xd75')](_0x2827d0['selectedTemplates']);return _0x2827d0[_0x17f8f1('0x2e7')]=[],_0xd461e8;}function _0x11b8a9(_0x3a9c69){var _0x260990=_0x1e1b41,_0x258f71=_0x2b0f52[_0x260990('0xa33')]()['title'](_0x260990('0xd9b'))[_0x260990('0x276b')](_0x260990('0x622')+_0x2827d0[_0x260990('0x2e7')][_0x260990('0x577')]+'\x20selected'+_0x260990('0x25e0'))['ariaLabel']('delete\x20Templates')['targetEvent'](_0x3a9c69)['ok']('OK')[_0x260990('0x3b5')](_0x260990('0x284b'));_0x2b0f52['show'](_0x258f71)['then'](function(){var _0x29d173=_0x260990;_0x2827d0[_0x29d173('0x2e7')][_0x29d173('0x1a52')](function(_0x156182){_0x443ba7(_0x156182);}),_0x2827d0['selectedTemplates']=[];});}function _0x4f9a5c(){var _0x3000d9=_0x1e1b41;_0x2827d0[_0x3000d9('0x2e7')]=[];}function _0x478a74(){var _0x156b99=_0x1e1b41;_0x2827d0[_0x156b99('0x2e7')]=_0x2827d0['templates'][_0x156b99('0x1b33')];}}const _0x22da40=_0x5492ce;_0x2f47a6['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$location',_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x1593'),_0x3877e3('0x1280'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting',_0x3877e3('0x5ed')];function _0x2f47a6(_0x1ede2b,_0x7eac61,_0x516251,_0x249c02,_0x812f6b,_0x385656,_0x31ebf5,_0x59803,_0x24a3d7,_0x239b32,_0x3f186e,_0x268df9,_0x4f14d2,_0x46c2d6){var _0x47f965=_0x3877e3,_0x2b298e=this;_0x2b298e[_0x47f965('0x123f')]=_0x3f186e['getCurrentUser'](),_0x2b298e[_0x47f965('0x1a69')]=[],_0x2b298e[_0x47f965('0x21e')]=_0x4f14d2,_0x2b298e[_0x47f965('0x2ff')]=_0x268df9,_0x2b298e['crudPermissions']=_0x46c2d6,_0x2b298e[_0x47f965('0x126a')]={},_0x2b298e[_0x47f965('0x1432')]=_0x2b298e[_0x47f965('0x21e')]&&_0x2b298e[_0x47f965('0x21e')][_0x47f965('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2b298e[_0x47f965('0x4b4')]=_0x47f965('0x2401'),_0x2b298e[_0x47f965('0x1280')]=angular['copy'](_0x24a3d7),_0x2b298e[_0x47f965('0x1593')]=_0x59803,_0x2b298e['newTrunk']=![];!_0x2b298e[_0x47f965('0x1280')]&&(_0x2b298e['trunk']={'active':!![],'type':'friend','dtmfmode':_0x47f965('0x127b'),'qualify':_0x47f965('0x14be'),'t38pt_udptl':'no'},_0x2b298e[_0x47f965('0x4b4')]=_0x47f965('0xfb0'),_0x2b298e[_0x47f965('0x1428')]=!![]);_0x2b298e['addNewTrunk']=_0x4144d0,_0x2b298e[_0x47f965('0x9b3')]=_0x3fbc0d,_0x2b298e[_0x47f965('0x2081')]=_0x2facc1,_0x2b298e['getDateFromString']=_0x1557f8,_0x2b298e['closeDialog']=_0x40d0c6;function _0x4144d0(){var _0x2df264=_0x47f965;_0x2b298e[_0x2df264('0x1a69')]=[],_0x239b32[_0x2df264('0x1280')][_0x2df264('0x186f')](_0x2b298e[_0x2df264('0x1280')])[_0x2df264('0x1376')][_0x2df264('0x21ad')](function(_0x1eeb6f){var _0x4272a5=_0x2df264;_0x2b298e[_0x4272a5('0x1593')]['unshift'](_0x1eeb6f[_0x4272a5('0x3bc')]()),_0x31ebf5[_0x4272a5('0xdb1')]({'title':_0x4272a5('0x126'),'msg':_0x2b298e[_0x4272a5('0x1280')]['name']?_0x2b298e[_0x4272a5('0x1280')][_0x4272a5('0x19fe')]+'\x20has\x20been\x20created!':''}),_0x40d0c6(_0x1eeb6f);})[_0x2df264('0x1c1d')](function(_0x1489cd){var _0x1c1c86=_0x2df264;if(_0x1489cd[_0x1c1c86('0x11c2')]&&_0x1489cd['data'][_0x1c1c86('0x1a69')]&&_0x1489cd[_0x1c1c86('0x11c2')][_0x1c1c86('0x1a69')][_0x1c1c86('0x577')]){_0x2b298e[_0x1c1c86('0x1a69')]=_0x1489cd[_0x1c1c86('0x11c2')]['errors']||[{'message':_0x1489cd[_0x1c1c86('0x174f')](),'type':_0x1c1c86('0x24aa')}];for(var _0x57d27d=0x0;_0x57d27d<_0x1489cd[_0x1c1c86('0x11c2')][_0x1c1c86('0x1a69')][_0x1c1c86('0x577')];_0x57d27d+=0x1){_0x31ebf5['error']({'title':_0x1489cd['data'][_0x1c1c86('0x1a69')][_0x57d27d][_0x1c1c86('0x7fa')],'msg':_0x1489cd['data'][_0x1c1c86('0x1a69')][_0x57d27d][_0x1c1c86('0x1224')]});}}else _0x31ebf5[_0x1c1c86('0x2092')]({'title':_0x1489cd[_0x1c1c86('0x209')]?_0x1c1c86('0x22d')+_0x1489cd[_0x1c1c86('0x209')]+'\x20-\x20'+_0x1489cd[_0x1c1c86('0x1808')]:_0x1c1c86('0x24aa'),'msg':_0x1489cd[_0x1c1c86('0x11c2')]?JSON['stringify'](_0x1489cd[_0x1c1c86('0x11c2')][_0x1c1c86('0x1224')]):_0x1489cd[_0x1c1c86('0x174f')]()});});}function _0x3fbc0d(){var _0x5788ea=_0x47f965;_0x2b298e[_0x5788ea('0x1a69')]=[],_0x239b32[_0x5788ea('0x1280')]['update']({'id':_0x2b298e[_0x5788ea('0x1280')]['id']},_0x2b298e[_0x5788ea('0x1280')])[_0x5788ea('0x1376')]['then'](function(_0x3af9be){var _0x3dc02e=_0x5788ea,_0x160851=_0x86640f()['find'](_0x2b298e[_0x3dc02e('0x1593')],{'id':_0x3af9be['id']});_0x160851&&_0x86640f()[_0x3dc02e('0xd0e')](_0x160851,_0x86640f()[_0x3dc02e('0xc50')](_0x3af9be[_0x3dc02e('0x3bc')](),_0x86640f()[_0x3dc02e('0x223b')](_0x160851))),_0x31ebf5['success']({'title':_0x3dc02e('0x947'),'msg':_0x2b298e[_0x3dc02e('0x1280')]['name']?_0x2b298e[_0x3dc02e('0x1280')][_0x3dc02e('0x19fe')]+_0x3dc02e('0x2249'):''}),_0x40d0c6(_0x3af9be);})['catch'](function(_0x405e67){var _0x22e93b=_0x5788ea;if(_0x405e67['data']&&_0x405e67['data']['errors']&&_0x405e67[_0x22e93b('0x11c2')][_0x22e93b('0x1a69')][_0x22e93b('0x577')]){_0x2b298e[_0x22e93b('0x1a69')]=_0x405e67[_0x22e93b('0x11c2')][_0x22e93b('0x1a69')]||[{'message':_0x405e67['toString'](),'type':_0x22e93b('0x21a3')}];for(var _0x42a02e=0x0;_0x42a02e<_0x405e67['data'][_0x22e93b('0x1a69')][_0x22e93b('0x577')];_0x42a02e++){_0x31ebf5[_0x22e93b('0x2092')]({'title':_0x405e67[_0x22e93b('0x11c2')][_0x22e93b('0x1a69')][_0x42a02e][_0x22e93b('0x7fa')],'msg':_0x405e67[_0x22e93b('0x11c2')][_0x22e93b('0x1a69')][_0x42a02e][_0x22e93b('0x1224')]});}}else _0x31ebf5['error']({'title':_0x405e67[_0x22e93b('0x209')]?_0x22e93b('0x22d')+_0x405e67[_0x22e93b('0x209')]+'\x20-\x20'+_0x405e67['statusText']:'api.trunk.update','msg':_0x405e67[_0x22e93b('0x11c2')]?JSON[_0x22e93b('0x25e')](_0x405e67[_0x22e93b('0x11c2')][_0x22e93b('0x1224')]):_0x405e67['toString']()});});}function _0x2facc1(_0x5b0ac3){var _0x59d5e2=_0x47f965;_0x2b298e[_0x59d5e2('0x1a69')]=[];var _0x13e9b0=_0x249c02[_0x59d5e2('0xa33')]()[_0x59d5e2('0x4b4')]('Are\x20you\x20sure?')[_0x59d5e2('0x13fb')](_0x59d5e2('0x24bb'))[_0x59d5e2('0x7a7')](_0x59d5e2('0x8a4'))['ok']('Delete')[_0x59d5e2('0x3b5')](_0x59d5e2('0x1f40'))['targetEvent'](_0x5b0ac3);_0x249c02['show'](_0x13e9b0)[_0x59d5e2('0x21ad')](function(){var _0x8e85ea=_0x59d5e2;_0x239b32['trunk'][_0x8e85ea('0x1164')]({'id':_0x2b298e[_0x8e85ea('0x1280')]['id']})['$promise'][_0x8e85ea('0x21ad')](function(){var _0x5d906b=_0x8e85ea;_0x86640f()[_0x5d906b('0x16a2')](_0x2b298e[_0x5d906b('0x1593')],{'id':_0x2b298e['trunk']['id']}),_0x31ebf5[_0x5d906b('0xdb1')]({'title':_0x5d906b('0x1966'),'msg':(_0x2b298e[_0x5d906b('0x1280')][_0x5d906b('0x19fe')]||_0x5d906b('0x1280'))+_0x5d906b('0xb4a')}),_0x40d0c6(_0x2b298e[_0x5d906b('0x1280')]);})[_0x8e85ea('0x1c1d')](function(_0x5c2a4c){var _0x20b980=_0x8e85ea;if(_0x5c2a4c[_0x20b980('0x11c2')]&&_0x5c2a4c[_0x20b980('0x11c2')][_0x20b980('0x1a69')]&&_0x5c2a4c['data'][_0x20b980('0x1a69')]['length']){_0x2b298e[_0x20b980('0x1a69')]=_0x5c2a4c[_0x20b980('0x11c2')][_0x20b980('0x1a69')]||[{'message':_0x5c2a4c[_0x20b980('0x174f')](),'type':_0x20b980('0x102e')}];for(var _0x4e0d54=0x0;_0x4e0d54<_0x5c2a4c[_0x20b980('0x11c2')][_0x20b980('0x1a69')]['length'];_0x4e0d54++){_0x31ebf5[_0x20b980('0x2092')]({'title':_0x5c2a4c[_0x20b980('0x11c2')][_0x20b980('0x1a69')][_0x4e0d54]['type'],'msg':_0x5c2a4c[_0x20b980('0x11c2')][_0x20b980('0x1a69')][_0x4e0d54][_0x20b980('0x1224')]});}}else _0x31ebf5['error']({'title':_0x5c2a4c['status']?_0x20b980('0x22d')+_0x5c2a4c['status']+_0x20b980('0xa99')+_0x5c2a4c[_0x20b980('0x1808')]:_0x20b980('0x102e'),'msg':_0x5c2a4c['data']?JSON[_0x20b980('0x25e')](_0x5c2a4c[_0x20b980('0x11c2')]['message']):_0x5c2a4c['message']||_0x5c2a4c[_0x20b980('0x174f')]()});});},function(){});}function _0x1557f8(_0x5febd4){return _0x5febd4===null?undefined:new Date(_0x5febd4);}function _0x40d0c6(_0x422b9f){var _0x166dc4=_0x47f965;_0x249c02[_0x166dc4('0x1c24')](_0x422b9f);}}const _0x55b8f7=_0x2f47a6;_0x3a92b4[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),_0x3877e3('0xa9f'),_0x3877e3('0x1908'),_0x3877e3('0xccd'),'trunk',_0x3877e3('0x1593'),'$translate'];function _0x3a92b4(_0x5b4007,_0x5c56eb,_0x188d20,_0x35b29e,_0x41bda0,_0x37eef6,_0xf9ce3a){var _0x562ca8=_0x3877e3,_0x553c32=this;_0x553c32[_0x562ca8('0x1428')]=!![],_0x553c32[_0x562ca8('0x1280')]=angular[_0x562ca8('0xd75')](_0x41bda0),_0x553c32[_0x562ca8('0x1593')]=_0x37eef6,_0x553c32[_0x562ca8('0x4b4')]=_0xf9ce3a[_0x562ca8('0x183e')](_0x562ca8('0xcb'));_0x41bda0&&_0x41bda0[_0x562ca8('0x19fe')]&&(_0x553c32[_0x562ca8('0x4b4')]+=':\x20'+_0x41bda0['name']);_0x553c32[_0x562ca8('0x550')]=_0x535a9f,_0x553c32['closeDialog']=_0x26e330;function _0x535a9f(){var _0x2fd45a=_0x562ca8;return _0x35b29e[_0x2fd45a('0x1280')][_0x2fd45a('0x1af0')]({'id':_0x41bda0['id']},_0x553c32['trunk'])[_0x2fd45a('0x1376')][_0x2fd45a('0x21ad')](function(_0xd5833c){var _0x2b6857=_0x2fd45a;_0x553c32[_0x2b6857('0x1593')][_0x2b6857('0xd0c')](_0xd5833c[_0x2b6857('0x3bc')]()),_0x188d20[_0x2b6857('0xdb1')]({'title':'Trunk\x20properly\x20cloned','msg':_0x553c32['trunk']['name']?_0x553c32[_0x2b6857('0x1280')][_0x2b6857('0x19fe')]+_0x2b6857('0x1e9f'):''}),_0x5c56eb['go']('app.tools.trunks.edit',{'id':_0xd5833c['id']}),_0x26e330(_0xd5833c);})[_0x2fd45a('0x1c1d')](function(_0x19bef7){var _0x39ecf6=_0x2fd45a;if(_0x19bef7[_0x39ecf6('0x11c2')]&&_0x19bef7[_0x39ecf6('0x11c2')][_0x39ecf6('0x1a69')]&&_0x19bef7['data'][_0x39ecf6('0x1a69')][_0x39ecf6('0x577')]){_0x553c32['errors']=_0x19bef7[_0x39ecf6('0x11c2')]['errors']||[{'message':_0x19bef7[_0x39ecf6('0x174f')](),'type':'api.trunk.clone'}];for(var _0x4f6bbf=0x0;_0x4f6bbf<_0x19bef7[_0x39ecf6('0x11c2')][_0x39ecf6('0x1a69')][_0x39ecf6('0x577')];_0x4f6bbf+=0x1){_0x188d20[_0x39ecf6('0x2092')]({'title':_0x19bef7['data'][_0x39ecf6('0x1a69')][_0x4f6bbf]['type'],'msg':_0x19bef7[_0x39ecf6('0x11c2')][_0x39ecf6('0x1a69')][_0x4f6bbf]['message']});}}else _0x188d20[_0x39ecf6('0x2092')]({'title':_0x19bef7[_0x39ecf6('0x209')]?'API:'+_0x19bef7['status']+'\x20-\x20'+_0x19bef7['statusText']:_0x39ecf6('0x13ed'),'msg':_0x19bef7[_0x39ecf6('0x11c2')]?JSON[_0x39ecf6('0x25e')](_0x19bef7[_0x39ecf6('0x11c2')][_0x39ecf6('0x1224')]):_0x19bef7[_0x39ecf6('0x174f')]()});});}function _0x26e330(_0x285afe){var _0x520611=_0x562ca8;_0x5b4007[_0x520611('0x1c24')](_0x285afe);}}const _0x4abafd=_0x3a92b4,_0x4c75cf=_0x398308['p']+_0x3877e3('0x6f6');_0x374831[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x13c1'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),'trunk',_0x3877e3('0xab4')];function _0x374831(_0x1c0c63,_0x1d72fc,_0x31e1d4,_0x23d321,_0x157291,_0x3ba9ce,_0x3ccad2,_0x2314bd,_0x1a2dea,_0x54f4fa,_0x1a786a,_0x361b28){var _0x5c2304=_0x3877e3,_0x194deb=this;_0x194deb[_0x5c2304('0x123f')]=_0x54f4fa[_0x5c2304('0x15ed')](),_0x194deb['license']=_0x3ba9ce,_0x194deb[_0x5c2304('0x21e')]=_0x3ccad2,_0x194deb[_0x5c2304('0x1432')]=_0x194deb[_0x5c2304('0x21e')][_0x5c2304('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x194deb[_0x5c2304('0x626')]=_0x1d72fc[_0x5c2304('0x1162')]()+'://'+_0x1d72fc[_0x5c2304('0x1c01')](),_0x194deb[_0x5c2304('0x1280')]=_0x1a786a||_0x1c0c63[_0x5c2304('0x171b')]['trunk']||{},_0x194deb[_0x5c2304('0xab4')]=_0x361b28&&_0x361b28[_0x5c2304('0x205f')]==0x1?_0x361b28[_0x5c2304('0x1b33')][0x0]:null,_0x194deb[_0x5c2304('0x5ed')]=_0x54f4fa[_0x5c2304('0x1778')](_0x194deb[_0x5c2304('0xab4')]?_0x194deb['userProfileSection'][_0x5c2304('0x5ed')]:null),_0x194deb['hasModulePermissions']={},_0x194deb[_0x5c2304('0x302')]=_0x1c0c63['params'][_0x5c2304('0x12e1')]||0x0,_0x194deb[_0x5c2304('0x177f')]=_0x5c1ec0,_0x194deb[_0x5c2304('0x1b5c')]=_0x285318,_0x194deb[_0x5c2304('0x95b')]=_0x1a2dea[_0x5c2304('0x231c')],_0x194deb['gotoTrunks']=_0x358589,_0x194deb[_0x5c2304('0x9b3')]=_0x59a2fb,_0x54f4fa[_0x5c2304('0x21de')]('admin')?_0x2314bd['voiceContext'][_0x5c2304('0x595')]({'fields':_0x5c2304('0x1aa8'),'sort':'name'})['$promise']['then'](function(_0x513186){var _0x595587=_0x5c2304;_0x194deb['contexts']=_0x513186[_0x595587('0x1b33')]||[];})[_0x5c2304('0x1c1d')](function(_0xbdbc68){var _0x19b56f=_0x5c2304;_0x1a2dea['error']({'title':_0xbdbc68[_0x19b56f('0x209')]?'API:'+_0xbdbc68[_0x19b56f('0x209')]+_0x19b56f('0xa99')+_0xbdbc68[_0x19b56f('0x1808')]:_0x19b56f('0x11b1'),'msg':_0xbdbc68[_0x19b56f('0x11c2')]?JSON[_0x19b56f('0x25e')](_0xbdbc68[_0x19b56f('0x11c2')]):_0xbdbc68[_0x19b56f('0x174f')]()});}):_0x2314bd['voiceContext'][_0x5c2304('0x595')]({'fields':_0x5c2304('0x1aa8'),'sort':_0x5c2304('0x19fe')})[_0x5c2304('0x1376')][_0x5c2304('0x21ad')](function(_0x4fd74e){var _0x15104d=_0x5c2304;_0x194deb[_0x15104d('0x1089')]=_0x4fd74e[_0x15104d('0x1b33')]||[];})[_0x5c2304('0x21ad')](function(){var _0x175c1e=_0x5c2304;return _0x2314bd['userProfileSection']['get']({'userProfileId':_0x194deb['currentUser']['userProfileId'],'sectionId':0x195})[_0x175c1e('0x1376')];})[_0x5c2304('0x21ad')](function(_0x473766){var _0x5d92ff=_0x5c2304,_0x363263=_0x473766&&_0x473766['rows']?_0x473766[_0x5d92ff('0x1b33')][0x0]:null;if(!_0x363263)return _0x2314bd[_0x5d92ff('0x608')][_0x5d92ff('0x595')]({'fields':_0x5d92ff('0x1aa8'),'sort':_0x5d92ff('0x19fe'),'defaultEntry':0x1})[_0x5d92ff('0x1376')][_0x5d92ff('0x21ad')](function(_0x12c4f6){var _0x87af56=_0x5d92ff;_0x194deb['contexts']=_0x12c4f6[_0x87af56('0x1b33')]||[];});else{if(!_0x363263[_0x5d92ff('0x80c')])return _0x2314bd[_0x5d92ff('0x185e')][_0x5d92ff('0x595')]({'sectionId':_0x363263['id']})[_0x5d92ff('0x1376')][_0x5d92ff('0x21ad')](function(_0x562faf){var _0x506194=_0x5d92ff,_0x37e29e=_0x86640f()[_0x506194('0x26c3')](_0x562faf[_0x506194('0x1b33')],function(_0x2401c6){var _0x3a4de2=_0x506194;return _0x86640f()[_0x3a4de2('0x1d2e')](_0x194deb[_0x3a4de2('0x1089')],{'id':_0x2401c6[_0x3a4de2('0x675')]});}),_0x5abe78=null;_0x194deb['trunk']&&(_0x5abe78=_0x86640f()[_0x506194('0x1d2e')](_0x194deb[_0x506194('0x1089')],{'name':_0x194deb[_0x506194('0x1280')][_0x506194('0x244c')]}));if(_0x5abe78&&!_0x86640f()[_0x506194('0x2664')](_0x37e29e,['id',_0x5abe78['id']])){var _0x4afa73=_0x86640f()[_0x506194('0x1d2e')](_0x194deb[_0x506194('0x1089')],{'id':_0x5abe78['id']});_0x4afa73['canSelect']=![],_0x37e29e['push'](_0x4afa73);}_0x194deb[_0x506194('0x1089')]=_0x37e29e;});}})[_0x5c2304('0x1c1d')](function(_0x3247d1){var _0x15584c=_0x5c2304;_0x1a2dea[_0x15584c('0x2092')]({'title':_0x3247d1['status']?_0x15584c('0x22d')+_0x3247d1[_0x15584c('0x209')]+_0x15584c('0xa99')+_0x3247d1['statusText']:_0x15584c('0x1463'),'msg':_0x3247d1[_0x15584c('0x11c2')]?JSON['stringify'](_0x3247d1['data']):_0x3247d1[_0x15584c('0x174f')]()});});function _0x5c1ec0(){var _0x211859=_0x5c2304;if(_0x54f4fa[_0x211859('0x21de')](_0x211859('0x1bd8')))_0x1c0c63['go'](_0x211859('0x19ab'),{});else return _0x2314bd[_0x211859('0xab4')][_0x211859('0x595')]({'userProfileId':_0x54f4fa[_0x211859('0x15ed')]()[_0x211859('0x1618')],'sectionId':0x19b})[_0x211859('0x1376')][_0x211859('0x21ad')](function(_0x123703){var _0x354c13=_0x211859,_0xc43ef1=_0x123703&&_0x123703[_0x354c13('0x1b33')]?_0x123703['rows'][0x0]:null;_0xc43ef1&&_0xc43ef1['enabled']?_0x1c0c63['go'](_0x354c13('0x19ab'),{}):_0x1a2dea[_0x354c13('0x231c')]({'title':_0x157291[_0x354c13('0x183e')](_0x354c13('0x1adb')),'msg':_0x157291[_0x354c13('0x183e')](_0x354c13('0x764'))});})[_0x211859('0x1c1d')](function(_0x5c9b9f){var _0x3c8207=_0x211859;_0x1a2dea[_0x3c8207('0x2092')]({'title':_0x5c9b9f[_0x3c8207('0x209')]?_0x3c8207('0x22d')+_0x5c9b9f[_0x3c8207('0x209')]+_0x3c8207('0xa99')+_0x5c9b9f['statusText']:_0x3c8207('0xb8'),'msg':_0x5c9b9f[_0x3c8207('0x209')]?JSON[_0x3c8207('0x25e')](_0x5c9b9f[_0x3c8207('0x11c2')]):_0x5c9b9f[_0x3c8207('0x174f')]()});});}function _0x285318(_0x4d41a3,_0xe882b5){var _0x573948=_0x5c2304;_0x31e1d4['show']({'controller':_0x573948('0x433'),'controllerAs':'vm','templateUrl':_0x4c75cf,'parent':angular[_0x573948('0x1676')](_0x23d321[_0x573948('0x2452')]),'targetEvent':_0xe882b5,'clickOutsideToClose':!![],'locals':{'trunk':_0x4d41a3,'trunks':_0x194deb['trunks']?_0x194deb['trunks']['rows']:[],'crudPermissions':_0x194deb[_0x573948('0x5ed')]}});}function _0x358589(){var _0x2bc82a=_0x5c2304;_0x1c0c63['go'](_0x2bc82a('0x1264'),{},{'reload':_0x2bc82a('0x1264')});}function _0x59a2fb(){var _0x1bf325=_0x5c2304;_0x2314bd['trunk'][_0x1bf325('0x5ef')]({'id':_0x194deb[_0x1bf325('0x1280')]['id']},_0x194deb['trunk'])[_0x1bf325('0x1376')]['then'](function(){var _0x592948=_0x1bf325;_0x1a2dea[_0x592948('0xdb1')]({'title':_0x592948('0x23bb'),'msg':_0x194deb['trunk'][_0x592948('0x19fe')]?_0x194deb[_0x592948('0x1280')][_0x592948('0x19fe')]+_0x592948('0xa8d'):''});})[_0x1bf325('0x1c1d')](function(_0xafc02a){var _0x5d023f=_0x1bf325;_0x1a2dea[_0x5d023f('0x2092')]({'title':_0xafc02a['status']?'API:'+_0xafc02a[_0x5d023f('0x209')]+'\x20-\x20'+_0xafc02a[_0x5d023f('0x1808')]:'SYSTEM:GETtrunk','msg':_0xafc02a[_0x5d023f('0x11c2')]?JSON[_0x5d023f('0x25e')](_0xafc02a[_0x5d023f('0x11c2')]):_0xafc02a[_0x5d023f('0x174f')]()});});}}const _0x2470be=_0x374831,_0x19af49=_0x398308['p']+_0x3877e3('0x919');_0x1bf1d4[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x2313'),'$translate',_0x3877e3('0x1593'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),'toasty',_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x1bf1d4(_0x3ce597,_0x5f5d41,_0x2d50ec,_0x35d5e2,_0x3f399e,_0x219ae2,_0x122878,_0x3fcd01,_0x3320eb,_0x5c19b6,_0x570b64,_0x10eca2,_0x543036,_0x17206e,_0x125af7,_0xb2cbe6,_0x251e9c){var _0x2aa184=_0x3877e3,_0x27348b=this;_0x27348b[_0x2aa184('0x2ff')]=_0xb2cbe6,_0x27348b[_0x2aa184('0x21e')]=_0x251e9c,_0x27348b[_0x2aa184('0x123f')]=_0x125af7[_0x2aa184('0x15ed')](),_0x27348b[_0x2aa184('0x1593')]=_0x3320eb||{'count':0x0,'rows':[]},_0x27348b[_0x2aa184('0x758')]=_0x5c19b6,_0x27348b[_0x2aa184('0xab4')]=_0x570b64&&_0x570b64['count']==0x1?_0x570b64[_0x2aa184('0x1b33')][0x0]:null,_0x27348b[_0x2aa184('0x5ed')]=_0x125af7[_0x2aa184('0x1778')](_0x27348b[_0x2aa184('0xab4')]?_0x27348b[_0x2aa184('0xab4')][_0x2aa184('0x5ed')]:null),_0x27348b[_0x2aa184('0x1897')]='trunks',_0x27348b[_0x2aa184('0x11dc')]='',_0x27348b[_0x2aa184('0x18cf')]=null,_0x27348b[_0x2aa184('0xdf8')]=[],_0x27348b['query']={'fields':_0x2aa184('0x217'),'sort':_0x2aa184('0x33'),'limit':0xa,'page':0x1},_0x27348b[_0x2aa184('0x179c')]=_0x86640f()[_0x2aa184('0xcde')]([{'option':_0x2aa184('0xa58'),'value':_0x2aa184('0x24c6')},{'option':_0x2aa184('0x6e4'),'value':_0x2aa184('0x50c')},{'option':_0x2aa184('0x5e'),'value':'\x27peer\x27'}],function(_0x9b14fe){var _0x499ef4=_0x2aa184;return _0x86640f()[_0x499ef4('0x16e4')](_0x9b14fe['value'],new RegExp('\x27','g'),'');}),_0x27348b[_0x2aa184('0x1aa2')]=_0x86640f()[_0x2aa184('0xcde')]([{'option':'rfc2833','value':_0x2aa184('0x1041')},{'option':_0x2aa184('0x231c'),'value':'\x27info\x27'},{'option':_0x2aa184('0x242a'),'value':'\x27shortinfo\x27'},{'option':_0x2aa184('0x1cda'),'value':_0x2aa184('0x9a5')},{'option':'auto','value':'\x27auto\x27'}],function(_0x4bc27c){var _0x458a02=_0x2aa184;return _0x86640f()[_0x458a02('0x16e4')](_0x4bc27c[_0x458a02('0x2228')],new RegExp('\x27','g'),'');}),_0x27348b['arraynat']=_0x86640f()[_0x2aa184('0xcde')]([{'option':_0x2aa184('0x2066'),'value':_0x2aa184('0x6e6')},{'option':'comedia','value':'\x27comedia\x27'},{'option':_0x2aa184('0x14be'),'value':_0x2aa184('0x53f')},{'option':'no','value':_0x2aa184('0x1223')},{'option':_0x2aa184('0x4ba'),'value':_0x2aa184('0xc29')},{'option':_0x2aa184('0x25ee'),'value':_0x2aa184('0x184e')}],function(_0x22bab2){var _0x2650f3=_0x2aa184;return _0x86640f()['replace'](_0x22bab2[_0x2650f3('0x2228')],new RegExp('\x27','g'),'');}),_0x27348b['arrayqualify']=_0x86640f()[_0x2aa184('0xcde')]([{'option':_0x2aa184('0x14be'),'value':_0x2aa184('0x53f')},{'option':'no','value':_0x2aa184('0x1223')}],function(_0x7ab172){var _0x41e748=_0x2aa184;return _0x86640f()['replace'](_0x7ab172[_0x41e748('0x2228')],new RegExp('\x27','g'),'');}),_0x27348b[_0x2aa184('0x26d9')]=_0x86640f()[_0x2aa184('0xcde')]([{'option':_0x2aa184('0x38c'),'value':'\x27ulaw\x27'},{'option':_0x2aa184('0x140d'),'value':_0x2aa184('0x993')},{'option':'gsm','value':'\x27gsm\x27'},{'option':_0x2aa184('0x1753'),'value':'\x27g723\x27'},{'option':_0x2aa184('0x839'),'value':_0x2aa184('0x2040')},{'option':_0x2aa184('0xdd8'),'value':_0x2aa184('0x1f15')},{'option':_0x2aa184('0x1aa5'),'value':_0x2aa184('0x1cae')},{'option':_0x2aa184('0x18ab'),'value':'\x27ilbc\x27'},{'option':'opus','value':_0x2aa184('0x81f')},{'option':_0x2aa184('0x1c0d'),'value':'\x27h264\x27'}],function(_0xfb9ed8){var _0x5b5486=_0x2aa184;return _0x86640f()[_0x5b5486('0x16e4')](_0xfb9ed8[_0x5b5486('0x2228')],new RegExp('\x27','g'),'');}),_0x27348b['arrayinsecure']=_0x86640f()[_0x2aa184('0xcde')]([{'option':_0x2aa184('0x24fe'),'value':_0x2aa184('0x3c2')},{'option':_0x2aa184('0x21ce'),'value':_0x2aa184('0x1db3')},{'option':_0x2aa184('0x24fa'),'value':_0x2aa184('0x20ba')}],function(_0x2638b0){var _0x2fa1ed=_0x2aa184;return _0x86640f()[_0x2fa1ed('0x16e4')](_0x2638b0[_0x2fa1ed('0x2228')],new RegExp('\x27','g'),'');}),_0x27348b[_0x2aa184('0x1c46')]=_0x86640f()['keyBy']([{'option':'yes','value':_0x2aa184('0x53f')},{'option':'no','value':_0x2aa184('0x1223')},{'option':_0x2aa184('0xb33'),'value':'\x27nonat\x27'},{'option':_0x2aa184('0x5ef'),'value':_0x2aa184('0x1665')}],function(_0x4f947d){var _0xfff9d7=_0x2aa184;return _0x86640f()[_0xfff9d7('0x16e4')](_0x4f947d[_0xfff9d7('0x2228')],new RegExp('\x27','g'),'');}),_0x27348b['arraycallcounter']=_0x86640f()[_0x2aa184('0xcde')]([{'option':_0x2aa184('0x14be'),'value':_0x2aa184('0x53f')},{'option':'no','value':'\x27no\x27'}],function(_0x35c56e){var _0xbf05d1=_0x2aa184;return _0x86640f()['replace'](_0x35c56e[_0xbf05d1('0x2228')],new RegExp('\x27','g'),'');}),_0x27348b[_0x2aa184('0x140f')]=_0x86640f()[_0x2aa184('0xcde')]([{'option':_0x2aa184('0x14be'),'value':'\x27yes\x27'},{'option':'no','value':'\x27no\x27'}],function(_0x2fea0f){var _0x57a240=_0x2aa184;return _0x86640f()[_0x57a240('0x16e4')](_0x2fea0f[_0x57a240('0x2228')],new RegExp('\x27','g'),'');}),_0x27348b[_0x2aa184('0x1b90')]=_0x86640f()[_0x2aa184('0xcde')]([{'option':_0x2aa184('0x14be'),'value':_0x2aa184('0x53f')},{'option':'no','value':'\x27no\x27'}],function(_0x478083){return _0x86640f()['replace'](_0x478083['value'],new RegExp('\x27','g'),'');}),_0x27348b[_0x2aa184('0x2317')]=_0x86640f()[_0x2aa184('0xcde')]([{'option':_0x2aa184('0x14be'),'value':_0x2aa184('0x53f')},{'option':'no','value':'\x27no\x27'},{'option':_0x2aa184('0xaae'),'value':'\x27pai\x27'}],function(_0x490143){var _0x186282=_0x2aa184;return _0x86640f()['replace'](_0x490143[_0x186282('0x2228')],new RegExp('\x27','g'),'');}),_0x27348b[_0x2aa184('0x16a7')]=_0x86640f()[_0x2aa184('0xcde')]([{'option':'yes','value':'\x27yes\x27'},{'option':'no','value':_0x2aa184('0x1223')}],function(_0x3449b0){var _0x34810f=_0x2aa184;return _0x86640f()[_0x34810f('0x16e4')](_0x3449b0[_0x34810f('0x2228')],new RegExp('\x27','g'),'');}),_0x27348b['arraytransport']=_0x86640f()['keyBy']([{'option':_0x2aa184('0x17a1'),'value':_0x2aa184('0x1039')},{'option':'tcp','value':'\x27tcp\x27'},{'option':'ws','value':_0x2aa184('0xaf8')},{'option':_0x2aa184('0x1740'),'value':_0x2aa184('0xef9')},{'option':_0x2aa184('0x263'),'value':_0x2aa184('0x20e3')}],function(_0x40351a){var _0x1c72d7=_0x2aa184;return _0x86640f()[_0x1c72d7('0x16e4')](_0x40351a[_0x1c72d7('0x2228')],new RegExp('\x27','g'),'');}),_0x27348b[_0x2aa184('0x13cd')]=_0x86640f()[_0x2aa184('0xcde')]([{'option':'Yes','value':_0x2aa184('0x53f')},{'option':'No','value':_0x2aa184('0x1223')},{'option':_0x2aa184('0x342'),'value':_0x2aa184('0x1f6c')}],function(_0x3e0baa){var _0x42930d=_0x2aa184;return _0x86640f()[_0x42930d('0x16e4')](_0x3e0baa['value'],new RegExp('\x27','g'),'');}),_0x27348b['editstate']=_0x35c6ad,_0x27348b[_0x2aa184('0x1b5c')]=_0x2bb71f,_0x27348b[_0x2aa184('0x1db4')]=_0x3664cc,_0x27348b[_0x2aa184('0x2593')]=_0x15cbaa,_0x27348b['success']=_0x17eb15,_0x27348b['getTrunks']=_0x4e8661,_0x27348b[_0x2aa184('0x1056')]=_0x87bb67,_0x27348b[_0x2aa184('0x2081')]=_0x295c94,_0x27348b[_0x2aa184('0x388')]=_0x4c5f93,_0x27348b[_0x2aa184('0x2df')]=_0x1736be,_0x27348b['deselectTrunks']=_0x2b7e01,_0x27348b['selectAllTrunks']=_0x3009b0;function _0x35c6ad(_0x565d62){var _0x356670=_0x2aa184;_0x2d50ec['go'](_0x356670('0xe06'),{'id':_0x565d62['id'],'trunk':_0x565d62,'crudPermissions':_0x27348b[_0x356670('0x5ed')]});}function _0x2bb71f(_0x454101,_0x1be773){var _0xb253f2=_0x2aa184;_0x3f399e['show']({'controller':_0xb253f2('0x433'),'controllerAs':'vm','templateUrl':_0x4c75cf,'parent':angular[_0xb253f2('0x1676')](_0x219ae2[_0xb253f2('0x2452')]),'targetEvent':_0x1be773,'clickOutsideToClose':!![],'locals':{'trunk':_0x454101,'trunks':_0x27348b[_0xb253f2('0x1593')]?_0x27348b[_0xb253f2('0x1593')]['rows']:[],'crudPermissions':_0x27348b[_0xb253f2('0x5ed')]}});}function _0x3664cc(){var _0x5e3b72=_0x2aa184;if(_0x125af7[_0x5e3b72('0x21de')](_0x5e3b72('0x1bd8')))_0x2d50ec['go'](_0x5e3b72('0x19ab'),{});else return _0x10eca2[_0x5e3b72('0xab4')][_0x5e3b72('0x595')]({'userProfileId':_0x125af7['getCurrentUser']()[_0x5e3b72('0x1618')],'sectionId':0x19b})['$promise'][_0x5e3b72('0x21ad')](function(_0x2ff9c8){var _0x4a630a=_0x5e3b72,_0x8e2df1=_0x2ff9c8&&_0x2ff9c8[_0x4a630a('0x1b33')]?_0x2ff9c8[_0x4a630a('0x1b33')][0x0]:null;_0x8e2df1&&_0x8e2df1[_0x4a630a('0x2296')]?_0x2d50ec['go'](_0x4a630a('0x19ab'),{}):_0x17206e[_0x4a630a('0x231c')]({'title':_0x3fcd01[_0x4a630a('0x183e')](_0x4a630a('0x1adb')),'msg':_0x3fcd01[_0x4a630a('0x183e')](_0x4a630a('0x764'))});})[_0x5e3b72('0x1c1d')](function(_0x5e8884){var _0x2fef06=_0x5e3b72;_0x17206e[_0x2fef06('0x2092')]({'title':_0x5e8884[_0x2fef06('0x209')]?_0x2fef06('0x22d')+_0x5e8884[_0x2fef06('0x209')]+'\x20-\x20'+_0x5e8884[_0x2fef06('0x1808')]:'USERPROFILE:GET_SECTION','msg':_0x5e8884[_0x2fef06('0x209')]?JSON['stringify'](_0x5e8884['data']):_0x5e8884['toString']()});});}function _0x15cbaa(_0x6d454c,_0x154805){var _0x7e8fd7=_0x2aa184,_0x37e377=_0x3f399e['confirm']()[_0x7e8fd7('0x4b4')](_0x7e8fd7('0x25b6')+_0x86640f()[_0x7e8fd7('0x2159')](_0x7e8fd7('0x1280'))+'?')['htmlContent'](_0x7e8fd7('0x622')+(_0x6d454c[_0x7e8fd7('0x19fe')]||_0x7e8fd7('0x1280'))+''+_0x7e8fd7('0x25e0'))['ariaLabel']('delete\x20trunk')[_0x7e8fd7('0x1e6d')](_0x154805)['ok']('OK')[_0x7e8fd7('0x3b5')](_0x7e8fd7('0x284b'));_0x3f399e[_0x7e8fd7('0x853')](_0x37e377)[_0x7e8fd7('0x21ad')](function(){_0x295c94(_0x6d454c);},function(){var _0x3e072f=_0x7e8fd7;console[_0x3e072f('0x6fb')](_0x3e072f('0x284b'));});}var _0x52288f=!![],_0x1b2f7e=0x1;_0x3ce597['$watch'](_0x2aa184('0x1948'),function(_0x89f2dc,_0x3a82f0){var _0x3790bb=_0x2aa184;_0x52288f?_0x122878(function(){_0x52288f=![];}):(!_0x3a82f0&&(_0x1b2f7e=_0x27348b[_0x3790bb('0x77')][_0x3790bb('0x2376')]),_0x89f2dc!==_0x3a82f0&&(_0x27348b['query'][_0x3790bb('0x2376')]=0x1),!_0x89f2dc&&(_0x27348b['query'][_0x3790bb('0x2376')]=_0x1b2f7e),_0x27348b[_0x3790bb('0x1c50')]());});function _0x17eb15(_0x124ef8){var _0x13a4d8=_0x2aa184;_0x27348b[_0x13a4d8('0x1593')]=_0x124ef8||{'count':0x0,'rows':[]};}function _0x4e8661(){var _0xeb492a=_0x2aa184;_0x27348b['query'][_0xeb492a('0x15a5')]=(_0x27348b[_0xeb492a('0x77')][_0xeb492a('0x2376')]-0x1)*_0x27348b[_0xeb492a('0x77')][_0xeb492a('0x1f4a')],_0x125af7[_0xeb492a('0x21de')](_0xeb492a('0x1bd8'))?_0x27348b[_0xeb492a('0x71b')]=_0x10eca2[_0xeb492a('0x1280')][_0xeb492a('0x595')](_0x27348b[_0xeb492a('0x77')],_0x17eb15)[_0xeb492a('0x1376')]:(_0x27348b[_0xeb492a('0x77')]['id']=_0x27348b[_0xeb492a('0x758')]['id'],_0x27348b['query'][_0xeb492a('0x26ad')]=_0xeb492a('0x616'),_0x27348b[_0xeb492a('0x71b')]=_0x10eca2['userProfile']['getResources'](_0x27348b[_0xeb492a('0x77')],_0x17eb15)[_0xeb492a('0x1376')]);}function _0x87bb67(_0x26e9f1,_0x5db9e9){var _0xa317b7=_0x2aa184;_0x3f399e['show']({'controller':_0xa317b7('0x756'),'controllerAs':'vm','templateUrl':_0x19af49,'parent':angular['element'](_0x219ae2[_0xa317b7('0x2452')]),'targetEvent':_0x26e9f1,'clickOutsideToClose':!![],'locals':{'trunk':_0x5db9e9,'trunks':_0x27348b[_0xa317b7('0x1593')][_0xa317b7('0x1b33')],'license':_0x27348b[_0xa317b7('0x2ff')],'setting':_0x27348b[_0xa317b7('0x21e')],'crudPermissions':_0x27348b[_0xa317b7('0x5ed')]}});}function _0x295c94(_0x18ac1d){var _0x898403=_0x2aa184;_0x10eca2[_0x898403('0x1280')]['delete']({'id':_0x18ac1d['id']})['$promise']['then'](function(){var _0x1ec1b2=_0x898403;_0x86640f()[_0x1ec1b2('0x16a2')](_0x27348b[_0x1ec1b2('0x1593')]['rows'],{'id':_0x18ac1d['id']}),_0x27348b[_0x1ec1b2('0x1593')][_0x1ec1b2('0x205f')]-=0x1,!_0x27348b[_0x1ec1b2('0x1593')]['rows'][_0x1ec1b2('0x577')]&&_0x27348b[_0x1ec1b2('0x1c50')](),_0x17206e['success']({'title':_0x86640f()['startCase'](_0x1ec1b2('0x1e2e'))+_0x1ec1b2('0xe64'),'msg':_0x18ac1d[_0x1ec1b2('0x19fe')]?_0x18ac1d['name']+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x57f0af){var _0x25116a=_0x898403;if(_0x57f0af[_0x25116a('0x11c2')]&&_0x57f0af['data'][_0x25116a('0x1a69')]&&_0x57f0af['data'][_0x25116a('0x1a69')][_0x25116a('0x577')]){_0x27348b[_0x25116a('0x1a69')]=_0x57f0af[_0x25116a('0x11c2')][_0x25116a('0x1a69')]||[{'message':_0x57f0af[_0x25116a('0x174f')](),'type':_0x25116a('0x1df1')}];for(var _0x5c754a=0x0;_0x5c754a<_0x57f0af[_0x25116a('0x11c2')][_0x25116a('0x1a69')]['length'];_0x5c754a++){_0x17206e[_0x25116a('0x2092')]({'title':_0x57f0af[_0x25116a('0x11c2')][_0x25116a('0x1a69')][_0x5c754a][_0x25116a('0x7fa')],'msg':_0x57f0af['data']['errors'][_0x5c754a][_0x25116a('0x1224')]});}}else _0x17206e[_0x25116a('0x2092')]({'title':_0x57f0af[_0x25116a('0x209')]?'API:'+_0x57f0af[_0x25116a('0x209')]+_0x25116a('0xa99')+_0x57f0af['statusText']:_0x25116a('0x1df1'),'msg':_0x57f0af[_0x25116a('0x11c2')]?JSON[_0x25116a('0x25e')](_0x57f0af['data'][_0x25116a('0x1224')]):_0x57f0af['message']||_0x57f0af['toString']()});});}function _0x4c5f93(){var _0x499303=_0x2aa184,_0x29049f=angular[_0x499303('0xd75')](_0x27348b[_0x499303('0xdf8')]);return _0x27348b[_0x499303('0xdf8')]=[],_0x29049f;}function _0x1736be(_0x5e45e8){var _0x36cbb7=_0x2aa184,_0x399430=_0x3f399e[_0x36cbb7('0xa33')]()['title'](_0x36cbb7('0x2235'))[_0x36cbb7('0x276b')](''+_0x27348b['selectedTrunks'][_0x36cbb7('0x577')]+_0x36cbb7('0xd74')+_0x36cbb7('0x25e0'))[_0x36cbb7('0x7a7')](_0x36cbb7('0x1466'))['targetEvent'](_0x5e45e8)['ok']('OK')[_0x36cbb7('0x3b5')]('CANCEL');_0x3f399e[_0x36cbb7('0x853')](_0x399430)[_0x36cbb7('0x21ad')](function(){var _0x16e0b6=_0x36cbb7;_0x27348b[_0x16e0b6('0xdf8')][_0x16e0b6('0x1a52')](function(_0x51b78a){_0x295c94(_0x51b78a);}),_0x27348b[_0x16e0b6('0xdf8')]=[];});}function _0x2b7e01(){_0x27348b['selectedTrunks']=[];}function _0x3009b0(){var _0xcfd462=_0x2aa184;_0x27348b[_0xcfd462('0xdf8')]=_0x27348b[_0xcfd462('0x1593')][_0xcfd462('0x1b33')];}}const _0x56dbea=_0x1bf1d4;_0x5b2d3c[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$state','$location',_0x3877e3('0x1850'),'$q','$translate',_0x3877e3('0x1908'),_0x3877e3('0x142d'),_0x3877e3('0x25bb'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),'crudPermissions'];function _0x5b2d3c(_0x6384c,_0x4ed457,_0x2caae7,_0x7fbe82,_0x12bc3d,_0x57e80b,_0x13713d,_0x32c0a9,_0x2b7c66,_0xb4ec79,_0x15a46d,_0x4719fa,_0x2f676e,_0x35fb9a){var _0x5e4c02=_0x3877e3,_0x361f68=this;_0x361f68['currentUser']=_0x15a46d[_0x5e4c02('0x15ed')](),_0x361f68['errors']=[],_0x361f68['setting']=_0x2f676e,_0x361f68[_0x5e4c02('0x2ff')]=_0x4719fa,_0x361f68[_0x5e4c02('0x5ed')]=_0x35fb9a,_0x361f68[_0x5e4c02('0x126a')]={},_0x361f68[_0x5e4c02('0x1432')]=_0x361f68[_0x5e4c02('0x21e')]&&_0x361f68[_0x5e4c02('0x21e')][_0x5e4c02('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x361f68['title']=_0x5e4c02('0x1fa0'),_0x361f68[_0x5e4c02('0x25bb')]=angular[_0x5e4c02('0xd75')](_0x2b7c66),_0x361f68[_0x5e4c02('0x142d')]=_0x32c0a9,_0x361f68[_0x5e4c02('0x1ce2')]=![];!_0x361f68['variable']&&(_0x361f68[_0x5e4c02('0x25bb')]={},_0x361f68['title']=_0x5e4c02('0x41d'),_0x361f68['newVariable']=!![]);_0x361f68[_0x5e4c02('0x166d')]=_0x6ae9b3,_0x361f68[_0x5e4c02('0xac')]=_0x5bd030,_0x361f68[_0x5e4c02('0x1cb1')]=_0x2256f1,_0x361f68['getDateFromString']=_0x1a9f26,_0x361f68['closeDialog']=_0xea7b16;function _0x6ae9b3(){var _0x25274b=_0x5e4c02;_0x361f68[_0x25274b('0x1a69')]=[],_0xb4ec79[_0x25274b('0x25bb')][_0x25274b('0x186f')](_0x361f68[_0x25274b('0x25bb')])[_0x25274b('0x1376')][_0x25274b('0x21ad')](function(_0x3a5e2d){var _0xddcf05=_0x25274b;_0x361f68[_0xddcf05('0x142d')][_0xddcf05('0xd0c')](_0x3a5e2d['toJSON']()),_0x13713d[_0xddcf05('0xdb1')]({'title':'Variable\x20properly\x20created','msg':_0x361f68['variable']['name']?_0x361f68[_0xddcf05('0x25bb')]['name']+_0xddcf05('0x1694'):''}),_0xea7b16(_0x3a5e2d);})[_0x25274b('0x1c1d')](function(_0x58dfb2){var _0x4e8532=_0x25274b;if(_0x58dfb2['data']&&_0x58dfb2['data'][_0x4e8532('0x1a69')]&&_0x58dfb2[_0x4e8532('0x11c2')][_0x4e8532('0x1a69')][_0x4e8532('0x577')]){_0x361f68[_0x4e8532('0x1a69')]=_0x58dfb2[_0x4e8532('0x11c2')]['errors']||[{'message':_0x58dfb2[_0x4e8532('0x174f')](),'type':_0x4e8532('0x722')}];for(var _0x284157=0x0;_0x284157<_0x58dfb2['data'][_0x4e8532('0x1a69')]['length'];_0x284157+=0x1){_0x13713d[_0x4e8532('0x2092')]({'title':_0x58dfb2['data'][_0x4e8532('0x1a69')][_0x284157][_0x4e8532('0x7fa')],'msg':_0x58dfb2['data'][_0x4e8532('0x1a69')][_0x284157]['message']});}}else _0x13713d[_0x4e8532('0x2092')]({'title':_0x58dfb2[_0x4e8532('0x209')]?_0x4e8532('0x22d')+_0x58dfb2[_0x4e8532('0x209')]+_0x4e8532('0xa99')+_0x58dfb2[_0x4e8532('0x1808')]:'api.variable.save','msg':_0x58dfb2['data']?JSON[_0x4e8532('0x25e')](_0x58dfb2['data']['message']):_0x58dfb2[_0x4e8532('0x174f')]()});});}function _0x5bd030(){var _0xb8f759=_0x5e4c02;_0x361f68[_0xb8f759('0x1a69')]=[],_0xb4ec79[_0xb8f759('0x25bb')]['update']({'id':_0x361f68[_0xb8f759('0x25bb')]['id']},_0x361f68[_0xb8f759('0x25bb')])[_0xb8f759('0x1376')][_0xb8f759('0x21ad')](function(_0x29318b){var _0x4976c2=_0xb8f759,_0x2e1567=_0x86640f()[_0x4976c2('0x1d2e')](_0x361f68['variables'],{'id':_0x29318b['id']});_0x2e1567&&_0x86640f()['merge'](_0x2e1567,_0x86640f()[_0x4976c2('0xc50')](_0x29318b[_0x4976c2('0x3bc')](),_0x86640f()[_0x4976c2('0x223b')](_0x2e1567))),_0x13713d[_0x4976c2('0xdb1')]({'title':_0x4976c2('0x1cef'),'msg':_0x361f68[_0x4976c2('0x25bb')][_0x4976c2('0x19fe')]?_0x361f68['variable'][_0x4976c2('0x19fe')]+'\x20has\x20been\x20saved!':''}),_0xea7b16(_0x29318b);})['catch'](function(_0x3187c8){var _0x3d1223=_0xb8f759;if(_0x3187c8['data']&&_0x3187c8[_0x3d1223('0x11c2')][_0x3d1223('0x1a69')]&&_0x3187c8['data'][_0x3d1223('0x1a69')][_0x3d1223('0x577')]){_0x361f68[_0x3d1223('0x1a69')]=_0x3187c8[_0x3d1223('0x11c2')]['errors']||[{'message':_0x3187c8[_0x3d1223('0x174f')](),'type':_0x3d1223('0x1f4c')}];for(var _0x2d6baf=0x0;_0x2d6baf<_0x3187c8[_0x3d1223('0x11c2')][_0x3d1223('0x1a69')][_0x3d1223('0x577')];_0x2d6baf++){_0x13713d['error']({'title':_0x3187c8[_0x3d1223('0x11c2')][_0x3d1223('0x1a69')][_0x2d6baf][_0x3d1223('0x7fa')],'msg':_0x3187c8[_0x3d1223('0x11c2')]['errors'][_0x2d6baf]['message']});}}else _0x13713d['error']({'title':_0x3187c8['status']?_0x3d1223('0x22d')+_0x3187c8[_0x3d1223('0x209')]+_0x3d1223('0xa99')+_0x3187c8[_0x3d1223('0x1808')]:'api.variable.update','msg':_0x3187c8['data']?JSON[_0x3d1223('0x25e')](_0x3187c8[_0x3d1223('0x11c2')]['message']):_0x3187c8[_0x3d1223('0x174f')]()});});}function _0x2256f1(_0x5dc37){var _0x52c03a=_0x5e4c02;_0x361f68['errors']=[];var _0xb4d768=_0x7fbe82[_0x52c03a('0xa33')]()['title'](_0x52c03a('0x196b'))[_0x52c03a('0x13fb')](_0x52c03a('0x8b0'))[_0x52c03a('0x7a7')](_0x52c03a('0x3ba'))['ok'](_0x52c03a('0xbfd'))[_0x52c03a('0x3b5')](_0x52c03a('0x1f40'))[_0x52c03a('0x1e6d')](_0x5dc37);_0x7fbe82[_0x52c03a('0x853')](_0xb4d768)[_0x52c03a('0x21ad')](function(){var _0x583bf7=_0x52c03a;_0xb4ec79[_0x583bf7('0x25bb')][_0x583bf7('0x1164')]({'id':_0x361f68[_0x583bf7('0x25bb')]['id']})[_0x583bf7('0x1376')][_0x583bf7('0x21ad')](function(){var _0x5315f0=_0x583bf7;_0x86640f()[_0x5315f0('0x16a2')](_0x361f68[_0x5315f0('0x142d')],{'id':_0x361f68['variable']['id']}),_0x13713d[_0x5315f0('0xdb1')]({'title':'Variable\x20properly\x20deleted!','msg':(_0x361f68[_0x5315f0('0x25bb')][_0x5315f0('0x19fe')]||_0x5315f0('0x25bb'))+_0x5315f0('0xb4a')}),_0xea7b16(_0x361f68[_0x5315f0('0x25bb')]);})[_0x583bf7('0x1c1d')](function(_0x524d99){var _0x35ece1=_0x583bf7;if(_0x524d99[_0x35ece1('0x11c2')]&&_0x524d99['data']['errors']&&_0x524d99[_0x35ece1('0x11c2')][_0x35ece1('0x1a69')][_0x35ece1('0x577')]){_0x361f68[_0x35ece1('0x1a69')]=_0x524d99[_0x35ece1('0x11c2')]['errors']||[{'message':_0x524d99['toString'](),'type':_0x35ece1('0x10ad')}];for(var _0x3db812=0x0;_0x3db812<_0x524d99[_0x35ece1('0x11c2')][_0x35ece1('0x1a69')]['length'];_0x3db812++){_0x13713d[_0x35ece1('0x2092')]({'title':_0x524d99[_0x35ece1('0x11c2')]['errors'][_0x3db812]['type'],'msg':_0x524d99['data']['errors'][_0x3db812]['message']});}}else _0x13713d[_0x35ece1('0x2092')]({'title':_0x524d99[_0x35ece1('0x209')]?_0x35ece1('0x22d')+_0x524d99[_0x35ece1('0x209')]+_0x35ece1('0xa99')+_0x524d99['statusText']:_0x35ece1('0x10ad'),'msg':_0x524d99['data']?JSON[_0x35ece1('0x25e')](_0x524d99[_0x35ece1('0x11c2')]['message']):_0x524d99[_0x35ece1('0x1224')]||_0x524d99[_0x35ece1('0x174f')]()});});},function(){});}function _0x1a9f26(_0x2ea14f){return _0x2ea14f===null?undefined:new Date(_0x2ea14f);}function _0xea7b16(_0xa6459f){var _0x7d6c9b=_0x5e4c02;_0x7fbe82[_0x7d6c9b('0x1c24')](_0xa6459f);}}const _0x3332fa=_0x5b2d3c,_0x170c0d=_0x398308['p']+_0x3877e3('0x256c');_0x2253db[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0x24e1'),'$state',_0x3877e3('0x2828'),_0x3877e3('0x1850'),'$document','$timeout',_0x3877e3('0x13c1'),_0x3877e3('0x142d'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),'license','setting'];function _0x2253db(_0x263d5f,_0x2f83ee,_0x3431a0,_0x2db884,_0x4684bb,_0x57229b,_0x223dda,_0x1b7d71,_0x299dfe,_0x3d45d6,_0x1366ed,_0x124c97,_0x1497e8,_0x8cceae,_0x1d1b26,_0x57f94e,_0x4e077a){var _0x35f919=_0x3877e3,_0x4e3ba5=this;_0x4e3ba5['license']=_0x57f94e,_0x4e3ba5[_0x35f919('0x21e')]=_0x4e077a,_0x4e3ba5[_0x35f919('0x123f')]=_0x1d1b26['getCurrentUser'](),_0x4e3ba5[_0x35f919('0x142d')]=_0x299dfe||{'count':0x0,'rows':[]},_0x4e3ba5[_0x35f919('0x758')]=_0x3d45d6,_0x4e3ba5[_0x35f919('0xab4')]=_0x1366ed&&_0x1366ed['count']==0x1?_0x1366ed[_0x35f919('0x1b33')][0x0]:null,_0x4e3ba5[_0x35f919('0x5ed')]=_0x1d1b26[_0x35f919('0x1778')](_0x4e3ba5[_0x35f919('0xab4')]?_0x4e3ba5[_0x35f919('0xab4')][_0x35f919('0x5ed')]:null),_0x4e3ba5[_0x35f919('0x1897')]='variables',_0x4e3ba5[_0x35f919('0x11dc')]='',_0x4e3ba5[_0x35f919('0x18cf')]=null,_0x4e3ba5[_0x35f919('0x13cf')]=[],_0x4e3ba5[_0x35f919('0x77')]={'fields':_0x35f919('0x145a'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x4e3ba5[_0x35f919('0x1a97')]=_0x22deba,_0x4e3ba5[_0x35f919('0x2593')]=_0x1d3b22,_0x4e3ba5['success']=_0x2a38ba,_0x4e3ba5['getVariables']=_0x3abea9,_0x4e3ba5[_0x35f919('0x24c9')]=_0x49181a,_0x4e3ba5[_0x35f919('0x1cb1')]=_0x1b5c90,_0x4e3ba5[_0x35f919('0x270')]=_0x1ee2aa,_0x4e3ba5[_0x35f919('0xa63')]=_0x332dbd,_0x4e3ba5['deselectVariables']=_0x412950,_0x4e3ba5['selectAllVariables']=_0x2f84fa;function _0x22deba(_0x2d860b,_0x41814f){var _0x11bd5b=_0x35f919;_0x4684bb[_0x11bd5b('0x853')]({'controller':_0x11bd5b('0x1ec9'),'controllerAs':'vm','templateUrl':_0x170c0d,'parent':angular[_0x11bd5b('0x1676')](_0x57229b[_0x11bd5b('0x2452')]),'targetEvent':_0x41814f,'clickOutsideToClose':!![],'locals':{'variable':_0x2d860b,'variables':_0x4e3ba5[_0x11bd5b('0x142d')][_0x11bd5b('0x1b33')],'license':_0x4e3ba5['license'],'setting':null,'crudPermissions':_0x4e3ba5[_0x11bd5b('0x5ed')]}});}function _0x1d3b22(_0x33eff5,_0x138e4d){var _0x2538a3=_0x35f919,_0x585053=_0x4684bb[_0x2538a3('0xa33')]()[_0x2538a3('0x4b4')](_0x2538a3('0x25b6')+_0x86640f()[_0x2538a3('0x2159')](_0x2538a3('0x25bb'))+'?')[_0x2538a3('0x276b')](_0x2538a3('0x622')+(_0x33eff5[_0x2538a3('0x19fe')]||_0x2538a3('0x25bb'))+''+_0x2538a3('0x25e0'))[_0x2538a3('0x7a7')](_0x2538a3('0xbbc'))[_0x2538a3('0x1e6d')](_0x138e4d)['ok']('OK')[_0x2538a3('0x3b5')](_0x2538a3('0x284b'));_0x4684bb['show'](_0x585053)['then'](function(){_0x1b5c90(_0x33eff5);},function(){var _0xa58279=_0x2538a3;console[_0xa58279('0x6fb')]('CANCEL');});}var _0x5b3b4f=!![],_0x52a54c=0x1;_0x263d5f['$watch'](_0x35f919('0x1948'),function(_0x1fcd65,_0x4a825e){var _0x488b9d=_0x35f919;_0x5b3b4f?_0x223dda(function(){_0x5b3b4f=![];}):(!_0x4a825e&&(_0x52a54c=_0x4e3ba5[_0x488b9d('0x77')][_0x488b9d('0x2376')]),_0x1fcd65!==_0x4a825e&&(_0x4e3ba5[_0x488b9d('0x77')][_0x488b9d('0x2376')]=0x1),!_0x1fcd65&&(_0x4e3ba5[_0x488b9d('0x77')][_0x488b9d('0x2376')]=_0x52a54c),_0x4e3ba5['getVariables']());});function _0x2a38ba(_0x16bec5){var _0x525956=_0x35f919;_0x4e3ba5[_0x525956('0x142d')]=_0x16bec5||{'count':0x0,'rows':[]};}function _0x3abea9(){var _0x29b398=_0x35f919;_0x4e3ba5[_0x29b398('0x77')][_0x29b398('0x15a5')]=(_0x4e3ba5[_0x29b398('0x77')][_0x29b398('0x2376')]-0x1)*_0x4e3ba5[_0x29b398('0x77')][_0x29b398('0x1f4a')],_0x1d1b26[_0x29b398('0x21de')]('admin')?_0x4e3ba5[_0x29b398('0x71b')]=_0x124c97['variable'][_0x29b398('0x595')](_0x4e3ba5[_0x29b398('0x77')],_0x2a38ba)[_0x29b398('0x1376')]:(_0x4e3ba5[_0x29b398('0x77')]['id']=_0x4e3ba5[_0x29b398('0x758')]['id'],_0x4e3ba5[_0x29b398('0x77')]['section']=_0x29b398('0x103a'),_0x4e3ba5[_0x29b398('0x71b')]=_0x124c97[_0x29b398('0x758')]['getResources'](_0x4e3ba5[_0x29b398('0x77')],_0x2a38ba)[_0x29b398('0x1376')]);}function _0x49181a(_0x562d63,_0x3ebc22){var _0x392f31=_0x35f919;_0x4684bb[_0x392f31('0x853')]({'controller':_0x392f31('0x1ec9'),'controllerAs':'vm','templateUrl':_0x170c0d,'parent':angular['element'](_0x57229b[_0x392f31('0x2452')]),'targetEvent':_0x562d63,'clickOutsideToClose':!![],'locals':{'variable':_0x3ebc22,'variables':_0x4e3ba5[_0x392f31('0x142d')][_0x392f31('0x1b33')],'license':_0x4e3ba5['license'],'setting':_0x4e3ba5[_0x392f31('0x21e')],'crudPermissions':_0x4e3ba5[_0x392f31('0x5ed')]}});}function _0x1b5c90(_0x17141e){var _0x352c29=_0x35f919;_0x124c97['variable'][_0x352c29('0x1164')]({'id':_0x17141e['id']})[_0x352c29('0x1376')][_0x352c29('0x21ad')](function(){var _0x170c7e=_0x352c29;_0x86640f()[_0x170c7e('0x16a2')](_0x4e3ba5[_0x170c7e('0x142d')][_0x170c7e('0x1b33')],{'id':_0x17141e['id']}),_0x4e3ba5[_0x170c7e('0x142d')][_0x170c7e('0x205f')]-=0x1,!_0x4e3ba5['variables'][_0x170c7e('0x1b33')]['length']&&_0x4e3ba5[_0x170c7e('0x22f1')](),_0x8cceae[_0x170c7e('0xdb1')]({'title':_0x86640f()['startCase']('Variable')+_0x170c7e('0xe64'),'msg':_0x17141e[_0x170c7e('0x19fe')]?_0x17141e[_0x170c7e('0x19fe')]+_0x170c7e('0xb4a'):''});})[_0x352c29('0x1c1d')](function(_0x119648){var _0x3d63ac=_0x352c29;if(_0x119648[_0x3d63ac('0x11c2')]&&_0x119648['data'][_0x3d63ac('0x1a69')]&&_0x119648[_0x3d63ac('0x11c2')][_0x3d63ac('0x1a69')][_0x3d63ac('0x577')]){_0x4e3ba5[_0x3d63ac('0x1a69')]=_0x119648[_0x3d63ac('0x11c2')][_0x3d63ac('0x1a69')]||[{'message':_0x119648['toString'](),'type':_0x3d63ac('0x19ff')}];for(var _0x1acfce=0x0;_0x1acfce<_0x119648[_0x3d63ac('0x11c2')][_0x3d63ac('0x1a69')]['length'];_0x1acfce++){_0x8cceae[_0x3d63ac('0x2092')]({'title':_0x119648[_0x3d63ac('0x11c2')]['errors'][_0x1acfce][_0x3d63ac('0x7fa')],'msg':_0x119648[_0x3d63ac('0x11c2')]['errors'][_0x1acfce][_0x3d63ac('0x1224')]});}}else _0x8cceae[_0x3d63ac('0x2092')]({'title':_0x119648[_0x3d63ac('0x209')]?_0x3d63ac('0x22d')+_0x119648[_0x3d63ac('0x209')]+_0x3d63ac('0xa99')+_0x119648[_0x3d63ac('0x1808')]:'SYSTEM:DELETEvariable','msg':_0x119648[_0x3d63ac('0x11c2')]?JSON['stringify'](_0x119648['data'][_0x3d63ac('0x1224')]):_0x119648[_0x3d63ac('0x1224')]||_0x119648[_0x3d63ac('0x174f')]()});});}function _0x1ee2aa(){var _0x1b958d=_0x35f919,_0xb5aafa=angular[_0x1b958d('0xd75')](_0x4e3ba5['selectedVariables']);return _0x4e3ba5[_0x1b958d('0x13cf')]=[],_0xb5aafa;}function _0x332dbd(_0x58fd58){var _0x4d3c4f=_0x35f919,_0x441356=_0x4684bb['confirm']()[_0x4d3c4f('0x4b4')](_0x4d3c4f('0x1403'))[_0x4d3c4f('0x276b')](_0x4d3c4f('0x622')+_0x4e3ba5[_0x4d3c4f('0x13cf')]['length']+_0x4d3c4f('0xd74')+_0x4d3c4f('0x25e0'))['ariaLabel'](_0x4d3c4f('0x6f4'))[_0x4d3c4f('0x1e6d')](_0x58fd58)['ok']('OK')[_0x4d3c4f('0x3b5')](_0x4d3c4f('0x284b'));_0x4684bb[_0x4d3c4f('0x853')](_0x441356)[_0x4d3c4f('0x21ad')](function(){var _0xcfaaa7=_0x4d3c4f;_0x4e3ba5[_0xcfaaa7('0x13cf')][_0xcfaaa7('0x1a52')](function(_0x5c27a9){_0x1b5c90(_0x5c27a9);}),_0x4e3ba5[_0xcfaaa7('0x13cf')]=[];});}function _0x412950(){var _0x5a1084=_0x35f919;_0x4e3ba5[_0x5a1084('0x13cf')]=[];}function _0x2f84fa(){var _0x14385e=_0x35f919;_0x4e3ba5[_0x14385e('0x13cf')]=_0x4e3ba5[_0x14385e('0x142d')][_0x14385e('0x1b33')];}}const _0x43241b=_0x2253db;_0x22e4e8[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c'),'$translatePartialLoaderProvider'];function _0x22e4e8(_0x548b88,_0xdd5a7e){var _0x4b32a3=_0x3877e3;_0x548b88[_0x4b32a3('0x27e')](_0x4b32a3('0x20cb'),{'abstract':!![],'url':_0x4b32a3('0xc63')})['state'](_0x4b32a3('0x1bb2'),{'url':_0x4b32a3('0xf0c'),'views':{'content@app':{'templateUrl':_0xf09abf,'controller':_0x4b32a3('0x1e0f')}},'resolve':{'cannedAnswers':[_0x4b32a3('0x354'),'Auth',function _0x49d17e(_0x531f12,_0x1942cd){var _0x30f591=_0x4b32a3;return _0x1942cd[_0x30f591('0x21de')](_0x30f591('0x1bd8'))?_0x531f12[_0x30f591('0x8ac')]('cannedAnswer@get',{'fields':_0x30f591('0x1674'),'sort':_0x30f591('0x33'),'MailAccountId':_0x30f591('0x27a'),'FaxAccountId':_0x30f591('0x27a'),'SmsAccountId':_0x30f591('0x27a'),'OpenchannelAccountId':_0x30f591('0x27a'),'ChatWebsiteId':'null','limit':0xa,'offset':0x0}):_0x531f12[_0x30f591('0x8ac')]('userProfile@getResources',{'id':_0x1942cd['getCurrentUser']()['userProfileId'],'section':_0x30f591('0x23ab'),'fields':'createdAt,updatedAt,id,key,value,description','sort':_0x30f591('0x33'),'MailAccountId':_0x30f591('0x27a'),'FaxAccountId':_0x30f591('0x27a'),'SmsAccountId':_0x30f591('0x27a'),'OpenchannelAccountId':_0x30f591('0x27a'),'ChatWebsiteId':'null','limit':0xa,'offset':0x0});}],'userProfile':[_0x4b32a3('0x354'),_0x4b32a3('0x15bc'),function _0x4833f1(_0x306227,_0x3f0a79){var _0x25c7a5=_0x4b32a3;return _0x3f0a79[_0x25c7a5('0x21de')](_0x25c7a5('0x1bd8'))?null:_0x306227['resolve'](_0x25c7a5('0x1e1d'),{'fields':'id,name,crudPermissions','id':_0x3f0a79[_0x25c7a5('0x15ed')]()['userProfileId']});}],'userProfileSection':[_0x4b32a3('0x354'),_0x4b32a3('0x15bc'),function _0x1b4c74(_0x304f76,_0x4e1b8f){var _0xbef965=_0x4b32a3;return _0x4e1b8f['hasRole']('admin')?null:_0x304f76['resolve'](_0xbef965('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x4e1b8f[_0xbef965('0x15ed')]()['userProfileId'],'sectionId':0x3e9});}]},'authenticate':!![],'permissionId':0x3e9,'bodyClass':'tools'})['state'](_0x4b32a3('0x129b'),{'url':'/customDashboards','views':{'content@app':{'templateUrl':_0x5f372e,'controller':_0x4b32a3('0x8de')}},'resolve':{'customDashboards':[_0x4b32a3('0x354'),_0x4b32a3('0x15bc'),function _0x33ae7f(_0x54d81a,_0x1546cf){var _0x23310a=_0x4b32a3;return _0x1546cf['hasRole'](_0x23310a('0x1bd8'))?_0x54d81a['resolve'](_0x23310a('0x6fc'),{'fields':'createdAt,updatedAt,id,name,description','sort':_0x23310a('0x33'),'limit':0xa,'offset':0x0}):_0x54d81a['resolve'](_0x23310a('0x52f'),{'id':_0x1546cf[_0x23310a('0x15ed')]()['userProfileId'],'section':_0x23310a('0x18ce'),'fields':_0x23310a('0x145a'),'sort':_0x23310a('0x33'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4b32a3('0x354'),_0x4b32a3('0x15bc'),function _0x2a0365(_0x7dcab0,_0x3e2595){var _0x10e089=_0x4b32a3;return _0x3e2595[_0x10e089('0x21de')](_0x10e089('0x1bd8'))?null:_0x7dcab0[_0x10e089('0x8ac')]('userProfile@get',{'fields':_0x10e089('0x1a00'),'id':_0x3e2595['getCurrentUser']()[_0x10e089('0x1618')]});}],'userProfileSection':['apiResolver',_0x4b32a3('0x15bc'),function _0x598310(_0x185c51,_0x42ae17){var _0x29aa53=_0x4b32a3;return _0x42ae17[_0x29aa53('0x21de')](_0x29aa53('0x1bd8'))?null:_0x185c51['resolve'](_0x29aa53('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x42ae17[_0x29aa53('0x15ed')]()[_0x29aa53('0x1618')],'sectionId':0x3eb});}]},'authenticate':!![],'permissionId':0x3eb,'bodyClass':_0x4b32a3('0xeb3')})[_0x4b32a3('0x27e')](_0x4b32a3('0xb87'),{'url':_0x4b32a3('0x17f5'),'params':{'customDashboard':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4c06da,'controller':_0x4b32a3('0x965')}},'resolve':{'customDashboard':[_0x4b32a3('0x354'),_0x4b32a3('0x114e'),function _0x21a20f(_0x4080af,_0x35cae0){var _0x19145d=_0x4b32a3;return _0x4080af['resolve'](_0x19145d('0x6fc'),{'fields':_0x19145d('0x145a'),'id':_0x35cae0['id']});}],'userProfileSection':[_0x4b32a3('0x354'),_0x4b32a3('0x15bc'),function _0x332a8d(_0x56b9e3,_0xbf3e59){var _0x4a8364=_0x4b32a3;return _0x56b9e3[_0x4a8364('0x8ac')](_0x4a8364('0x222f'),{'fields':_0x4a8364('0x1852'),'userProfileId':_0xbf3e59[_0x4a8364('0x15ed')]()[_0x4a8364('0x1618')],'sectionId':0x3eb});}]},'authenticate':!![],'permissionId':0x3eb,'bodyClass':_0x4b32a3('0xeb3')})[_0x4b32a3('0x27e')](_0x4b32a3('0x1e12'),{'url':'/intervals','views':{'content@app':{'templateUrl':_0x159ceb,'controller':'IntervalsController\x20as\x20vm'}},'resolve':{'intervals':[_0x4b32a3('0x354'),'Auth',function _0x4063e6(_0x5c4c78,_0xef624c){var _0x4a8ab9=_0x4b32a3;return _0xef624c[_0x4a8ab9('0x21de')]('admin')?_0x5c4c78[_0x4a8ab9('0x8ac')](_0x4a8ab9('0xf01'),{'fields':_0x4a8ab9('0x145a'),'sort':'-updatedAt','IntervalId':_0x4a8ab9('0x27a'),'limit':0xa,'offset':0x0}):_0x5c4c78[_0x4a8ab9('0x8ac')]('userProfile@getResources',{'id':_0xef624c[_0x4a8ab9('0x15ed')]()['userProfileId'],'section':_0x4a8ab9('0x148c'),'fields':_0x4a8ab9('0x145a'),'sort':_0x4a8ab9('0x33'),'IntervalId':'null','limit':0xa,'offset':0x0});}],'userProfile':[_0x4b32a3('0x354'),_0x4b32a3('0x15bc'),function _0x4a341d(_0x2640c6,_0x115a49){var _0x2cce27=_0x4b32a3;return _0x115a49[_0x2cce27('0x21de')](_0x2cce27('0x1bd8'))?null:_0x2640c6[_0x2cce27('0x8ac')]('userProfile@get',{'fields':_0x2cce27('0x1a00'),'id':_0x115a49[_0x2cce27('0x15ed')]()[_0x2cce27('0x1618')]});}],'userProfileSection':[_0x4b32a3('0x354'),_0x4b32a3('0x15bc'),function _0x4c2e6d(_0xaa04a5,_0x4a9d25){var _0x35a140=_0x4b32a3;return _0x4a9d25['hasRole'](_0x35a140('0x1bd8'))?null:_0xaa04a5['resolve']('userProfileSection@get',{'fields':_0x35a140('0x1852'),'userProfileId':_0x4a9d25[_0x35a140('0x15ed')]()['userProfileId'],'sectionId':0x3ec});}]},'authenticate':!![],'permissionId':0x3ec,'bodyClass':_0x4b32a3('0xeb3')})['state'](_0x4b32a3('0x727'),{'url':_0x4b32a3('0x17f5'),'params':{'interval':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x170a23,'controller':'IntervalController\x20as\x20vm'}},'resolve':{'interval':[_0x4b32a3('0x354'),_0x4b32a3('0x114e'),function _0x5ec01e(_0x28d51c,_0xf4f44f){var _0x2194e0=_0x4b32a3;return _0x28d51c[_0x2194e0('0x8ac')]('interval@get',{'fields':_0x2194e0('0x145a'),'id':_0xf4f44f['id']});}],'userProfileSection':[_0x4b32a3('0x354'),_0x4b32a3('0x15bc'),function _0x1fbe64(_0x3a6db1,_0x3152fb){var _0x36f5ca=_0x4b32a3;return _0x3a6db1[_0x36f5ca('0x8ac')](_0x36f5ca('0x222f'),{'fields':_0x36f5ca('0x1852'),'userProfileId':_0x3152fb[_0x36f5ca('0x15ed')]()[_0x36f5ca('0x1618')],'sectionId':0x3ec});}]},'authenticate':!![],'permissionId':0x3ec,'bodyClass':_0x4b32a3('0xeb3')})['state'](_0x4b32a3('0x8d'),{'url':'/pauses','views':{'content@app':{'templateUrl':_0x3e4986,'controller':_0x4b32a3('0x1898')}},'resolve':{'pauses':[_0x4b32a3('0x354'),_0x4b32a3('0x15bc'),function _0x511a67(_0x49e001,_0x2dc882){var _0x523294=_0x4b32a3;return _0x2dc882[_0x523294('0x21de')]('admin')?_0x49e001['resolve'](_0x523294('0x12e0'),{'fields':_0x523294('0x145a'),'sort':_0x523294('0x33'),'limit':0xa,'offset':0x0}):_0x49e001[_0x523294('0x8ac')]('userProfile@getResources',{'id':_0x2dc882[_0x523294('0x15ed')]()[_0x523294('0x1618')],'section':'Pauses','fields':_0x523294('0x145a'),'sort':_0x523294('0x33'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4b32a3('0x354'),_0x4b32a3('0x15bc'),function _0xe2a26b(_0x50a1f0,_0x5c7c6d){var _0x583f21=_0x4b32a3;return _0x5c7c6d[_0x583f21('0x21de')](_0x583f21('0x1bd8'))?null:_0x50a1f0[_0x583f21('0x8ac')](_0x583f21('0x1e1d'),{'fields':'id,name,crudPermissions','id':_0x5c7c6d[_0x583f21('0x15ed')]()[_0x583f21('0x1618')]});}],'userProfileSection':[_0x4b32a3('0x354'),_0x4b32a3('0x15bc'),function _0x1289cd(_0x359303,_0x170d05){var _0x5399de=_0x4b32a3;return _0x170d05['hasRole'](_0x5399de('0x1bd8'))?null:_0x359303[_0x5399de('0x8ac')](_0x5399de('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x170d05['getCurrentUser']()['userProfileId'],'sectionId':0x3ed});}]},'authenticate':!![],'permissionId':0x3ed,'bodyClass':_0x4b32a3('0xeb3')})[_0x4b32a3('0x27e')](_0x4b32a3('0x10a0'),{'url':_0x4b32a3('0x256d'),'views':{'content@app':{'templateUrl':_0x47602e,'controller':_0x4b32a3('0x1f7')}},'resolve':{'schedules':['apiResolver','Auth',function _0x561121(_0x7a41fc,_0x34a35b){var _0x270b1b=_0x4b32a3;return _0x34a35b[_0x270b1b('0x21de')]('admin')?_0x7a41fc[_0x270b1b('0x8ac')]('schedule@get',{'fields':_0x270b1b('0x23b4'),'sort':_0x270b1b('0x33'),'limit':0xa,'offset':0x0}):_0x7a41fc[_0x270b1b('0x8ac')](_0x270b1b('0x52f'),{'id':_0x34a35b[_0x270b1b('0x15ed')]()['userProfileId'],'section':_0x270b1b('0x1a5a'),'fields':_0x270b1b('0x23b4'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x4b32a3('0x354'),'Auth',function _0x587fb8(_0x48ba1d,_0x4c5f13){var _0x530005=_0x4b32a3;return _0x4c5f13[_0x530005('0x21de')](_0x530005('0x1bd8'))?null:_0x48ba1d[_0x530005('0x8ac')]('userProfile@get',{'fields':_0x530005('0x1a00'),'id':_0x4c5f13[_0x530005('0x15ed')]()[_0x530005('0x1618')]});}],'userProfileSection':[_0x4b32a3('0x354'),'Auth',function _0x36357a(_0x2431c2,_0x61d2a3){var _0x144df1=_0x4b32a3;return _0x61d2a3[_0x144df1('0x21de')](_0x144df1('0x1bd8'))?null:_0x2431c2[_0x144df1('0x8ac')]('userProfileSection@get',{'fields':_0x144df1('0x1852'),'userProfileId':_0x61d2a3[_0x144df1('0x15ed')]()[_0x144df1('0x1618')],'sectionId':0x3ee});}]},'authenticate':!![],'permissionId':0x3ee,'bodyClass':'tools'})[_0x4b32a3('0x27e')](_0x4b32a3('0x65e'),{'url':'/sounds','views':{'content@app':{'templateUrl':_0xe30d48,'controller':'SoundsController\x20as\x20vm'}},'resolve':{'sounds':[_0x4b32a3('0x354'),_0x4b32a3('0x15bc'),function _0x1add6f(_0x43f7df,_0x3faec2){var _0x8230a=_0x4b32a3;return _0x3faec2['hasRole'](_0x8230a('0x1bd8'))?_0x43f7df['resolve'](_0x8230a('0x224c'),{'fields':_0x8230a('0x1f30'),'sort':_0x8230a('0x33'),'limit':0xa,'offset':0x0}):_0x43f7df[_0x8230a('0x8ac')]('userProfile@getResources',{'id':_0x3faec2[_0x8230a('0x15ed')]()['userProfileId'],'section':_0x8230a('0x4a4'),'fields':_0x8230a('0x1f30'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x4b32a3('0x354'),_0x4b32a3('0x15bc'),function _0x2e3a90(_0x170ae6,_0x11c072){var _0x52c7c7=_0x4b32a3;return _0x11c072[_0x52c7c7('0x21de')]('admin')?null:_0x170ae6[_0x52c7c7('0x8ac')](_0x52c7c7('0x1e1d'),{'fields':_0x52c7c7('0x1a00'),'id':_0x11c072[_0x52c7c7('0x15ed')]()[_0x52c7c7('0x1618')]});}],'userProfileSection':[_0x4b32a3('0x354'),'Auth',function _0x26195b(_0x1c1bb1,_0x589c74){var _0x16744e=_0x4b32a3;return _0x589c74[_0x16744e('0x21de')](_0x16744e('0x1bd8'))?null:_0x1c1bb1['resolve'](_0x16744e('0x222f'),{'fields':_0x16744e('0x1852'),'userProfileId':_0x589c74[_0x16744e('0x15ed')]()[_0x16744e('0x1618')],'sectionId':0x3ef});}]},'authenticate':!![],'permissionId':0x3ef,'bodyClass':_0x4b32a3('0xeb3')})['state'](_0x4b32a3('0x943'),{'url':_0x4b32a3('0x1863'),'views':{'content@app':{'templateUrl':_0xf9056d,'controller':_0x4b32a3('0x432')}},'resolve':{'tags':[_0x4b32a3('0x354'),'Auth',function _0x506b3e(_0x5cf490,_0x1f1059){var _0x1f1efd=_0x4b32a3;return _0x1f1059[_0x1f1efd('0x21de')](_0x1f1efd('0x1bd8'))?_0x5cf490['resolve']('tag@get',{'fields':'createdAt,updatedAt,id,name,description,color','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x5cf490[_0x1f1efd('0x8ac')](_0x1f1efd('0x52f'),{'id':_0x1f1059['getCurrentUser']()[_0x1f1efd('0x1618')],'section':_0x1f1efd('0x557'),'fields':'createdAt,updatedAt,id,name,description,color','sort':_0x1f1efd('0x33'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x4b32a3('0x15bc'),function _0x351c5b(_0x1ed092,_0x20660a){var _0x347116=_0x4b32a3;return _0x20660a[_0x347116('0x21de')](_0x347116('0x1bd8'))?null:_0x1ed092['resolve'](_0x347116('0x1e1d'),{'fields':_0x347116('0x1a00'),'id':_0x20660a[_0x347116('0x15ed')]()['userProfileId']});}],'userProfileSection':[_0x4b32a3('0x354'),_0x4b32a3('0x15bc'),function _0x2ab1f2(_0x49566e,_0x3c4357){var _0x3b622d=_0x4b32a3;return _0x3c4357[_0x3b622d('0x21de')](_0x3b622d('0x1bd8'))?null:_0x49566e[_0x3b622d('0x8ac')](_0x3b622d('0x222f'),{'fields':_0x3b622d('0x1852'),'userProfileId':_0x3c4357[_0x3b622d('0x15ed')]()[_0x3b622d('0x1618')],'sectionId':0x3f0});}]},'authenticate':!![],'permissionId':0x3f0,'bodyClass':'tools'})['state'](_0x4b32a3('0x140b'),{'url':'/templates','views':{'content@app':{'templateUrl':_0x371d6b,'controller':_0x4b32a3('0xaea')}},'resolve':{'templates':[_0x4b32a3('0x354'),_0x4b32a3('0x15bc'),function _0x3a3e6f(_0x3636b2,_0x50ee88){var _0x438b7c=_0x4b32a3;return _0x50ee88['hasRole'](_0x438b7c('0x1bd8'))?_0x3636b2[_0x438b7c('0x8ac')](_0x438b7c('0x2406'),{'fields':'createdAt,updatedAt,id,name,html,description','sort':_0x438b7c('0x33'),'limit':0xa,'offset':0x0}):_0x3636b2['resolve'](_0x438b7c('0x52f'),{'id':_0x50ee88[_0x438b7c('0x15ed')]()['userProfileId'],'section':'Templates','fields':_0x438b7c('0x2612'),'sort':_0x438b7c('0x33'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x4b32a3('0x15bc'),function _0x1cfffa(_0x471af5,_0x585f58){var _0x2f6fb5=_0x4b32a3;return _0x585f58[_0x2f6fb5('0x21de')](_0x2f6fb5('0x1bd8'))?null:_0x471af5['resolve'](_0x2f6fb5('0x1e1d'),{'fields':'id,name,crudPermissions','id':_0x585f58[_0x2f6fb5('0x15ed')]()[_0x2f6fb5('0x1618')]});}],'userProfileSection':[_0x4b32a3('0x354'),_0x4b32a3('0x15bc'),function _0x2b4e8a(_0x34851c,_0x158fd7){var _0x96ceb7=_0x4b32a3;return _0x158fd7[_0x96ceb7('0x21de')](_0x96ceb7('0x1bd8'))?null:_0x34851c[_0x96ceb7('0x8ac')](_0x96ceb7('0x222f'),{'fields':_0x96ceb7('0x1852'),'userProfileId':_0x158fd7[_0x96ceb7('0x15ed')]()[_0x96ceb7('0x1618')],'sectionId':0x3f1});}]},'authenticate':!![],'permissionId':0x3f1,'bodyClass':_0x4b32a3('0xeb3')})['state'](_0x4b32a3('0x1264'),{'url':_0x4b32a3('0x1acd'),'views':{'content@app':{'templateUrl':_0x3faa55,'controller':_0x4b32a3('0x1f96')}},'resolve':{'trunks':[_0x4b32a3('0x354'),_0x4b32a3('0x15bc'),function _0x3f1473(_0x4e6fb5,_0xdbe636){var _0x1d06e7=_0x4b32a3;return _0xdbe636['hasRole'](_0x1d06e7('0x1bd8'))?_0x4e6fb5[_0x1d06e7('0x8ac')]('trunk@get',{'fields':_0x1d06e7('0x217'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x4e6fb5['resolve']('userProfile@getResources',{'id':_0xdbe636[_0x1d06e7('0x15ed')]()[_0x1d06e7('0x1618')],'section':'Trunks','fields':_0x1d06e7('0x217'),'sort':_0x1d06e7('0x33'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4b32a3('0x354'),_0x4b32a3('0x15bc'),function _0x435280(_0x5e9a7d,_0x4e3e47){var _0x42b7c3=_0x4b32a3;return _0x4e3e47[_0x42b7c3('0x21de')](_0x42b7c3('0x1bd8'))?null:_0x5e9a7d[_0x42b7c3('0x8ac')](_0x42b7c3('0x1e1d'),{'fields':_0x42b7c3('0x1a00'),'id':_0x4e3e47[_0x42b7c3('0x15ed')]()[_0x42b7c3('0x1618')]});}],'userProfileSection':[_0x4b32a3('0x354'),_0x4b32a3('0x15bc'),function _0x16b1e7(_0x5ad8aa,_0x1b166d){var _0x4b4ad3=_0x4b32a3;return _0x1b166d[_0x4b4ad3('0x21de')](_0x4b4ad3('0x1bd8'))?null:_0x5ad8aa[_0x4b4ad3('0x8ac')](_0x4b4ad3('0x222f'),{'fields':_0x4b4ad3('0x1852'),'userProfileId':_0x1b166d[_0x4b4ad3('0x15ed')]()['userProfileId'],'sectionId':0x3f3});}]},'authenticate':!![],'permissionId':0x3f3,'bodyClass':_0x4b32a3('0xeb3')})[_0x4b32a3('0x27e')](_0x4b32a3('0xe06'),{'url':_0x4b32a3('0x17f5'),'params':{'trunk':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x163fee,'controller':_0x4b32a3('0x4e')}},'resolve':{'trunk':[_0x4b32a3('0x354'),_0x4b32a3('0x114e'),function _0x453598(_0x41a0f3,_0x434858){var _0x42f9bb=_0x4b32a3;return _0x41a0f3['resolve'](_0x42f9bb('0xfe0'),{'fields':_0x42f9bb('0x217'),'id':_0x434858['id']});}],'userProfileSection':['apiResolver',_0x4b32a3('0x15bc'),function _0xe0df87(_0xcbf525,_0x418c20){var _0x9fc0d9=_0x4b32a3;return _0xcbf525[_0x9fc0d9('0x8ac')](_0x9fc0d9('0x222f'),{'fields':_0x9fc0d9('0x1852'),'userProfileId':_0x418c20[_0x9fc0d9('0x15ed')]()['userProfileId'],'sectionId':0x3f3});}]},'authenticate':!![],'permissionId':0x3f3,'bodyClass':'tools'})[_0x4b32a3('0x27e')](_0x4b32a3('0x21e5'),{'url':_0x4b32a3('0x1cbe'),'views':{'content@app':{'templateUrl':_0x19cd62,'controller':'VariablesController\x20as\x20vm'}},'resolve':{'variables':[_0x4b32a3('0x354'),'Auth',function _0x222d9b(_0x4d66ae,_0x147212){var _0x3e9203=_0x4b32a3;return _0x147212['hasRole'](_0x3e9203('0x1bd8'))?_0x4d66ae[_0x3e9203('0x8ac')](_0x3e9203('0x1a8e'),{'fields':_0x3e9203('0x145a'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x4d66ae[_0x3e9203('0x8ac')](_0x3e9203('0x52f'),{'id':_0x147212[_0x3e9203('0x15ed')]()[_0x3e9203('0x1618')],'section':_0x3e9203('0x103a'),'fields':_0x3e9203('0x145a'),'sort':_0x3e9203('0x33'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4b32a3('0x354'),_0x4b32a3('0x15bc'),function _0x42b2bc(_0x1a69fc,_0x9a316d){var _0x10e22c=_0x4b32a3;return _0x9a316d['hasRole']('admin')?null:_0x1a69fc[_0x10e22c('0x8ac')](_0x10e22c('0x1e1d'),{'fields':_0x10e22c('0x1a00'),'id':_0x9a316d[_0x10e22c('0x15ed')]()['userProfileId']});}],'userProfileSection':[_0x4b32a3('0x354'),_0x4b32a3('0x15bc'),function _0x53c1e1(_0x483619,_0x1aa4bd){var _0x38d85d=_0x4b32a3;return _0x1aa4bd['hasRole'](_0x38d85d('0x1bd8'))?null:_0x483619['resolve'](_0x38d85d('0x222f'),{'fields':_0x38d85d('0x1852'),'userProfileId':_0x1aa4bd[_0x38d85d('0x15ed')]()[_0x38d85d('0x1618')],'sectionId':0x3f4});}]},'authenticate':!![],'permissionId':0x3f4,'bodyClass':'tools'}),_0xdd5a7e[_0x4b32a3('0x20ab')](_0x4b32a3('0x8a6'));}angular[_0x3877e3('0x20d5')](_0x3877e3('0x20cb'),['ngCsv',_0x3877e3('0x1b0'),_0x3877e3('0xca'),_0x3877e3('0x1d76'),_0x3877e3('0x2437'),_0x3877e3('0x25c7'),_0x3877e3('0x1182'),_0x3877e3('0x264a'),_0x3877e3('0x19'),'mdPickers','mwFormBuilder',_0x3877e3('0x56d'),_0x3877e3('0xe2f'),_0x3877e3('0x10c'),_0x3877e3('0xf61'),_0x3877e3('0xe39'),'angularMaterialFormBuilder',_0x3877e3('0x27ba'),_0x3877e3('0x9e0'),'angular.filter','app.tools.dispositions','app.tools.triggers'])[_0x3877e3('0x13')](_0x22e4e8)[_0x3877e3('0x1d5a')](_0x3877e3('0x741'),_0xad0305)[_0x3877e3('0x1d5a')](_0x3877e3('0x534'),_0x5a6688)[_0x3877e3('0x1d5a')](_0x3877e3('0x76e'),_0x215003)['controller']('CustomDashboardsController',_0x16e997)[_0x3877e3('0x1d5a')](_0x3877e3('0x717'),_0x34afbe)[_0x3877e3('0x1d5a')](_0x3877e3('0x1561'),_0x5cb9fc)[_0x3877e3('0x1d5a')](_0x3877e3('0xc8b'),_0x56dbaa)[_0x3877e3('0x1d5a')](_0x3877e3('0x945'),_0x3a8d03)['controller']('CreateOrEditIntervalDialogController',_0x4fe96c)[_0x3877e3('0x1d5a')]('EditAppintervalDialogController',_0x27386a)[_0x3877e3('0x1d5a')](_0x3877e3('0x1ef2'),_0x180010)[_0x3877e3('0x1d5a')](_0x3877e3('0xac5'),_0x46fd77)[_0x3877e3('0x1d5a')](_0x3877e3('0xada'),_0x38a46f)['controller'](_0x3877e3('0x408'),_0x2fe9b5)[_0x3877e3('0x1d5a')]('PausesController',_0x3c48e8)[_0x3877e3('0x1d5a')](_0x3877e3('0x3af'),_0x2327ec)[_0x3877e3('0x1d5a')]('SchedulesController',_0x5bdac4)['controller'](_0x3877e3('0x291'),_0x4e7f32)[_0x3877e3('0x1d5a')]('SoundsController',_0x356f13)[_0x3877e3('0x1d5a')](_0x3877e3('0xcea'),_0x2196b3)[_0x3877e3('0x1d5a')]('CreateOrEditTagDialogController',_0x295df9)[_0x3877e3('0x1d5a')]('TagsController',_0x2ed030)[_0x3877e3('0x1d5a')]('CreateOrEditTemplateDialogController',_0x46310e)['controller']('TemplatesController',_0x22da40)[_0x3877e3('0x1d5a')](_0x3877e3('0x756'),_0x55b8f7)[_0x3877e3('0x1d5a')]('TrunkcloneController',_0x4abafd)[_0x3877e3('0x1d5a')](_0x3877e3('0x1fd1'),_0x2470be)['controller'](_0x3877e3('0x1737'),_0x56dbea)[_0x3877e3('0x1d5a')](_0x3877e3('0x1ec9'),_0x3332fa)[_0x3877e3('0x1d5a')](_0x3877e3('0x238a'),_0x43241b);const _0x42e753=_0x398308['p']+_0x3877e3('0x1da8'),_0x5012df=_0x398308['p']+_0x3877e3('0x2224');_0x45f7a7[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),'$q',_0x3877e3('0x15bc'),'toasty',_0x3877e3('0xc0f'),_0x3877e3('0xbf8'),'api','openFromEditor','crudPermissions'];function _0x45f7a7(_0x478541,_0x538813,_0x24d0b1,_0x1bed5b,_0x10ed2f,_0x4462fa,_0x1b6c54,_0x39f15a,_0x5d94c5,_0x9357d0,_0x470bd1){var _0x4f50b7=_0x3877e3,_0x3210b0=this;_0x3210b0[_0x4f50b7('0x1a69')]=[],_0x3210b0['title']='CALLYSQUARE.EDIT_PROJECT',_0x3210b0[_0x4f50b7('0x5ed')]=_0x470bd1,_0x3210b0[_0x4f50b7('0xbf8')]=angular[_0x4f50b7('0xd75')](_0x39f15a),_0x3210b0[_0x4f50b7('0x26c5')]=!![],_0x3210b0[_0x4f50b7('0xc0f')]=_0x1b6c54,_0x3210b0[_0x4f50b7('0x1340')]=![],_0x3210b0[_0x4f50b7('0xfd7')]=_0x9357d0;!_0x3210b0[_0x4f50b7('0xbf8')]&&(_0x3210b0[_0x4f50b7('0xbf8')]={'name':'','description':''},_0x3210b0[_0x4f50b7('0x4b4')]=_0x4f50b7('0x17af'),_0x3210b0[_0x4f50b7('0x1340')]=!![]);_0x3210b0[_0x4f50b7('0x1188')]=_0x2b08f7,_0x3210b0[_0x4f50b7('0x1a58')]=_0x483028,_0x3210b0[_0x4f50b7('0x1379')]=_0x1b8c60,_0x3210b0[_0x4f50b7('0x167')]=_0xa2d126;function _0x2b08f7(){var _0x2a60aa=_0x4f50b7;_0x3210b0[_0x2a60aa('0x1a69')]=[],_0x5d94c5[_0x2a60aa('0x1a41')][_0x2a60aa('0x186f')](_0x3210b0['project'])[_0x2a60aa('0x1376')]['then'](function(_0x28290e){var _0x43ed7e=_0x2a60aa;return _0x5d94c5[_0x43ed7e('0x1775')][_0x43ed7e('0x4c1')]({'id':_0x10ed2f[_0x43ed7e('0x15ed')]()['id'],'ids':[_0x28290e['id']]})[_0x43ed7e('0x1376')],_0x28290e;})[_0x2a60aa('0x21ad')](function(_0x37e586){var _0x358c33=_0x2a60aa;_0x3210b0['projects'][_0x358c33('0xd0c')](_0x37e586),_0x4462fa[_0x358c33('0xdb1')]({'title':_0x358c33('0x1409'),'msg':_0x3210b0[_0x358c33('0xbf8')][_0x358c33('0x19fe')]?_0x3210b0[_0x358c33('0xbf8')][_0x358c33('0x19fe')]+_0x358c33('0x1694'):''}),_0xa2d126(_0x37e586),_0x3210b0[_0x358c33('0xfd7')]&&(_0x3210b0[_0x358c33('0x26c5')]?_0x538813[_0x358c33('0xe5d')](_0x358c33('0x11f')+_0x37e586['id'],_0x358c33('0x1c1f')):_0x24d0b1['go'](_0x358c33('0x18d7'),{'id':_0x37e586['id']}));})['catch'](function(_0x498432){var _0x5e254d=_0x2a60aa;if(_0x498432[_0x5e254d('0x11c2')]&&_0x498432['data'][_0x5e254d('0x1a69')]&&_0x498432[_0x5e254d('0x11c2')]['errors'][_0x5e254d('0x577')]){_0x3210b0[_0x5e254d('0x1a69')]=_0x498432['data']['errors']||[{'message':_0x498432[_0x5e254d('0x174f')](),'type':_0x5e254d('0x1c75')}];for(var _0x509e47=0x0;_0x509e47<_0x498432[_0x5e254d('0x11c2')]['errors'][_0x5e254d('0x577')];_0x509e47++){_0x4462fa[_0x5e254d('0x2092')]({'title':_0x498432[_0x5e254d('0x11c2')]['errors'][_0x509e47][_0x5e254d('0x7fa')],'msg':_0x498432['data'][_0x5e254d('0x1a69')][_0x509e47][_0x5e254d('0x1224')]});}}else _0x4462fa['error']({'title':_0x498432[_0x5e254d('0x209')]?_0x5e254d('0x22d')+_0x498432['status']+_0x5e254d('0xa99')+_0x498432[_0x5e254d('0x1808')]:_0x5e254d('0x1c75'),'msg':_0x498432[_0x5e254d('0x11c2')]?JSON[_0x5e254d('0x25e')](_0x498432[_0x5e254d('0x11c2')]['message']):_0x498432['toString']()});});}function _0x483028(){var _0x4ae1b0=_0x4f50b7;_0x3210b0['errors']=[],_0x5d94c5[_0x4ae1b0('0x1a41')][_0x4ae1b0('0x5ef')]({'id':_0x3210b0[_0x4ae1b0('0xbf8')]['id']},_0x3210b0[_0x4ae1b0('0xbf8')])[_0x4ae1b0('0x1376')][_0x4ae1b0('0x21ad')](function(_0x481d20){var _0x17b4ba=_0x4ae1b0,_0x1d5a65=_0x86640f()[_0x17b4ba('0x1d2e')](_0x3210b0[_0x17b4ba('0xc0f')],{'id':_0x481d20['id']});_0x1d5a65&&_0x86640f()['merge'](_0x1d5a65,_0x481d20),_0x4462fa[_0x17b4ba('0xdb1')]({'title':_0x17b4ba('0x168'),'msg':_0x3210b0[_0x17b4ba('0xbf8')]['name']?_0x3210b0[_0x17b4ba('0xbf8')][_0x17b4ba('0x19fe')]+_0x17b4ba('0x2249'):''}),_0xa2d126(_0x481d20);})[_0x4ae1b0('0x1c1d')](function(_0x705f75){var _0xdae363=_0x4ae1b0;if(_0x705f75[_0xdae363('0x11c2')]&&_0x705f75[_0xdae363('0x11c2')][_0xdae363('0x1a69')]&&_0x705f75[_0xdae363('0x11c2')][_0xdae363('0x1a69')]['length']){_0x3210b0['errors']=_0x705f75[_0xdae363('0x11c2')][_0xdae363('0x1a69')]||[{'message':_0x705f75[_0xdae363('0x174f')](),'type':_0xdae363('0x15a9')}];for(var _0x241052=0x0;_0x241052<_0x705f75['data'][_0xdae363('0x1a69')][_0xdae363('0x577')];_0x241052++){_0x4462fa[_0xdae363('0x2092')]({'title':_0x705f75[_0xdae363('0x11c2')][_0xdae363('0x1a69')][_0x241052][_0xdae363('0x7fa')],'msg':_0x705f75[_0xdae363('0x11c2')][_0xdae363('0x1a69')][_0x241052][_0xdae363('0x1224')]});}}else _0x4462fa[_0xdae363('0x2092')]({'title':_0x705f75['status']?_0xdae363('0x22d')+_0x705f75[_0xdae363('0x209')]+_0xdae363('0xa99')+_0x705f75[_0xdae363('0x1808')]:'api.squareProject.update','msg':_0x705f75[_0xdae363('0x11c2')]?JSON['stringify'](_0x705f75[_0xdae363('0x11c2')][_0xdae363('0x1224')]):_0x705f75[_0xdae363('0x174f')]()});});}function _0x1b8c60(){var _0x5875cb=_0x4f50b7;_0x3210b0[_0x5875cb('0x1a69')]=[];var _0x2af82a=_0x478541[_0x5875cb('0xa33')]()[_0x5875cb('0x4b4')]('Are\x20you\x20sure?')[_0x5875cb('0x13fb')](_0x5875cb('0x1060'))['ariaLabel'](_0x5875cb('0x283f'))['ok'](_0x5875cb('0xbfd'))[_0x5875cb('0x3b5')]('Cancel')[_0x5875cb('0x1e6d')](event);_0x478541[_0x5875cb('0x853')](_0x2af82a)[_0x5875cb('0x21ad')](function(){var _0x3caa9b=_0x5875cb;_0x5d94c5['squareProject'][_0x3caa9b('0x1164')]({'id':_0x3210b0['project']['id']})[_0x3caa9b('0x1376')][_0x3caa9b('0x21ad')](function(){var _0x4716c0=_0x3caa9b;return _0x5d94c5[_0x4716c0('0x1a41')][_0x4716c0('0x3b7')]({'id':_0x3210b0[_0x4716c0('0xbf8')]['id']})['$promise'];})[_0x3caa9b('0x21ad')](function(_0x4217b6){var _0x28a6bd=_0x3caa9b,_0x349957=[],_0xfabb5e=_0x4217b6[_0x28a6bd('0x1b33')];for(var _0x5444fb=0x0;_0x5444fb<_0xfabb5e[_0x28a6bd('0x577')];_0x5444fb++){_0x349957[_0x28a6bd('0x206c')](_0x5d94c5[_0x28a6bd('0x1775')][_0x28a6bd('0x1d8f')]({'id':_0x10ed2f[_0x28a6bd('0x15ed')]()['id'],'ids':[_0x3210b0[_0x28a6bd('0xbf8')]['id']]})[_0x28a6bd('0x1376')]);}return _0x1bed5b[_0x28a6bd('0x1ba7')](_0x349957);})[_0x3caa9b('0x21ad')](function(){var _0x29caaf=_0x3caa9b;_0x86640f()[_0x29caaf('0x16a2')](_0x3210b0[_0x29caaf('0xc0f')],{'id':_0x3210b0['project']['id']}),_0x4462fa[_0x29caaf('0xdb1')]({'title':_0x29caaf('0x99d'),'msg':_0x3210b0[_0x29caaf('0xbf8')][_0x29caaf('0x19fe')]?_0x3210b0[_0x29caaf('0xbf8')][_0x29caaf('0x19fe')]+'\x20has\x20been\x20deleted!':''}),_0xa2d126(_0x3210b0[_0x29caaf('0xbf8')]);})[_0x3caa9b('0x1c1d')](function(_0x2ceeff){var _0x4704cc=_0x3caa9b;console[_0x4704cc('0x2092')](_0x2ceeff),_0x3210b0[_0x4704cc('0x1a69')]=_0x2ceeff[_0x4704cc('0x11c2')]['errors']||[{'message':_0x2ceeff[_0x4704cc('0x174f')](),'type':_0x4704cc('0x232b')}];});},function(){});}function _0xa2d126(_0x211e10){var _0xe8646b=_0x4f50b7;_0x478541[_0xe8646b('0x1c24')](_0x211e10);}}const _0x5a0aad=_0x45f7a7;_0x3985cd[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'api','toasty','ispeechAsrModel',_0x3877e3('0xa6a'),_0x3877e3('0x845'),_0x3877e3('0x32f'),_0x3877e3('0x1328'),_0x3877e3('0x15d5'),_0x3877e3('0x188e'),'trunks',_0x3877e3('0xb7a'),_0x3877e3('0xc64'),_0x3877e3('0x142d'),'databases',_0x3877e3('0xc0f'),'contexts',_0x3877e3('0x2530'),_0x3877e3('0x21ab'),_0x3877e3('0x942'),_0x3877e3('0x1972'),'cell',_0x3877e3('0x2719'),_0x3877e3('0x1a5c'),'awsPollyRegion','smsAccounts',_0x3877e3('0x1fc7'),'dialogFlowLanguage',_0x3877e3('0xc97'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x3985cd(_0x5ccdd3,_0x2001be,_0x6b201e,_0x16c4f4,_0x439484,_0x2a5b43,_0x1755fc,_0x50988a,_0x36b715,_0xa29a9d,_0x5f2027,_0x19b15f,_0x1f63f7,_0x4af641,_0x212816,_0x2374f2,_0x4ce5e0,_0xf57df6,_0x94ece3,_0x16b8db,_0x350190,_0x37c0eb,_0x5211f0,_0x59e8ef,_0x11fa01,_0x2eda19,_0x3f643f,_0x2416e4,_0x489c26,_0x3711a3,_0x4d238e){var _0x7a374b=_0x3877e3,_0x548568=this,_0x231772={'playback':[_0x7a374b('0x2637')],'answer':[_0x7a374b('0x2133')],'menu':[_0x7a374b('0x2637'),_0x7a374b('0xdb5'),_0x7a374b('0x176e'),_0x7a374b('0x1e83')],'getdigits':[_0x7a374b('0x2637'),_0x7a374b('0x270e'),_0x7a374b('0x1b73'),_0x7a374b('0x144f'),_0x7a374b('0x1e83')],'getsecretdigits':[_0x7a374b('0x2637'),_0x7a374b('0x270e'),_0x7a374b('0x1b73'),'maxdigit',_0x7a374b('0x260b'),_0x7a374b('0x1e83')],'vswitch':[_0x7a374b('0x270e')],'database':[_0x7a374b('0x4ec'),'query'],'ext_dial':[_0x7a374b('0xe3f'),_0x7a374b('0x159e'),_0x7a374b('0x2133')],'set':[_0x7a374b('0x270e')],'math':[_0x7a374b('0x270e')],'gotoc':[_0x7a374b('0x244c'),'extension','priority'],'system':[_0x7a374b('0xbf3')],'agi':[_0x7a374b('0xbf3')],'gotoif':[_0x7a374b('0x271c')],'saydigits':[_0x7a374b('0x108f')],'saynumber':['number'],'sayphonetic':[_0x7a374b('0xc1e')],'record':[_0x7a374b('0x18a9'),_0x7a374b('0x2133')],'goal':[_0x7a374b('0x207d')],'dial':[_0x7a374b('0x1558'),_0x7a374b('0x2133')],'queue':[_0x7a374b('0x20bf'),'timeout'],'callback':['list_id',_0x7a374b('0x19fe'),_0x7a374b('0x159e'),_0x7a374b('0x22ff')],'gotoiftime':[_0x7a374b('0x13e3')],'voicemail':['mailbox'],'subproject':['project_id'],'sendSMS':['sms_account_id','to',_0x7a374b('0x1ab0')],'sendMail':[_0x7a374b('0x1f7a'),'to'],'sendFax':[_0x7a374b('0x1f7a'),'to',_0x7a374b('0x28')],'google_cloud_tts':[_0x7a374b('0x9a'),_0x7a374b('0x27cc'),_0x7a374b('0xc1e')],'tts':['text'],'ispeechtts':[_0x7a374b('0xc1e'),_0x7a374b('0xddb'),_0x7a374b('0x1c95')],'ispeechasr':['key','timeout'],'custom_app':[_0x7a374b('0xd7f')],'googleasr':['key',_0x7a374b('0x2133')],'awspolly':[_0x7a374b('0x1bed'),_0x7a374b('0x1e05'),_0x7a374b('0xc1e'),'aws_text_type'],'lumenvoxtts':[_0x7a374b('0xc1e')],'sestektts':[_0x7a374b('0xc1e')],'lumenvoxasr':[_0x7a374b('0xe14')],'sestekasr':[_0x7a374b('0xe14')],'tildeasr':[_0x7a374b('0x1de0'),_0x7a374b('0x1d73'),'uri'],'login':[_0x7a374b('0x7f3')],'pause':[_0x7a374b('0x7f3'),_0x7a374b('0x1765')],'unpause':[_0x7a374b('0x7f3')],'logout':[_0x7a374b('0x7f3')],'dialogflow':[_0x7a374b('0xddb'),_0x7a374b('0xc1e'),_0x7a374b('0x5fa')],'awslex':[_0x7a374b('0x1bed'),'aws_secret_access_key',_0x7a374b('0x26bc'),_0x7a374b('0x21b7'),_0x7a374b('0xc1e')],'sesteknda':['text',_0x7a374b('0xc9b'),_0x7a374b('0x697'),'password',_0x7a374b('0x1356')],'restapi':[_0x7a374b('0x770'),_0x7a374b('0xb5a')],'mrcpsynth':[_0x7a374b('0xc1e')],'mrcprecog':['grammar']},_0x2489ef={'queue':['file_id'],'database':[_0x7a374b('0x270e')],'pause':[_0x7a374b('0x1765')]},_0x11b4df={'sendMail':['to','cc',_0x7a374b('0x1980')],'voicemail':['mailbox']};_0x548568[_0x7a374b('0x87b')]=_0x37c0eb[_0x7a374b('0x16d')],_0x548568[_0x7a374b('0x1b01')]=_0x86640f()[_0x7a374b('0x26c3')](_0x37c0eb[_0x7a374b('0x1b01')],function(_0x4aad82){var _0x52f0a1=_0x7a374b;return{'name':_0x4aad82[_0x52f0a1('0x19fe')],'value':_0x4aad82[_0x52f0a1('0x2228')],'defaultValue':_0x2489ef[_0x548568[_0x52f0a1('0x87b')]]&&_0x86640f()[_0x52f0a1('0xb34')](_0x2489ef[_0x548568['cellName']],_0x4aad82[_0x52f0a1('0x19fe')]),'required':_0x231772[_0x548568[_0x52f0a1('0x87b')]]&&_0x86640f()[_0x52f0a1('0xb34')](_0x231772[_0x548568['cellName']],_0x4aad82[_0x52f0a1('0x19fe')]),'help':_0x11b4df[_0x548568[_0x52f0a1('0x87b')]]&&_0x86640f()[_0x52f0a1('0xb34')](_0x11b4df[_0x548568[_0x52f0a1('0x87b')]],_0x4aad82[_0x52f0a1('0x19fe')])};}),_0x548568[_0x7a374b('0x1843')]={'authMethod':[{'value':_0x7a374b('0x54d'),'option':'NO\x20AUTH'},{'value':'hmac','option':_0x7a374b('0x168b')}],'answer':[{'value':_0x7a374b('0x14be'),'option':_0x7a374b('0x1fc6')},{'value':'no','option':'No'}],'ndagenerate_audio':[{'value':0x1,'option':'Yes'},{'value':0x0,'option':'No'}],'ndaactivity_type':[{'value':_0x7a374b('0x1224'),'option':_0x7a374b('0x1ee8')},{'value':_0x7a374b('0x2183'),'option':_0x7a374b('0xa41')},{'value':_0x7a374b('0x181f'),'option':_0x7a374b('0x22ce')},{'value':_0x7a374b('0x20be'),'option':'End\x20of\x20Conversation'}],'hiddendigitspos':[{'value':_0x7a374b('0x2019'),'option':_0x7a374b('0xa72')},{'value':'last','option':_0x7a374b('0xb0d')}],'recordingFormat':[{'value':_0x7a374b('0x1292'),'option':'Wav'},{'value':_0x7a374b('0xb95'),'option':_0x7a374b('0x51c')}],'intkey':[{'value':'#','option':'#'},{'value':'*','option':'*'}],'beep':[{'value':_0x7a374b('0x18a4'),'option':_0x7a374b('0x1fc6')},{'value':_0x7a374b('0x1735'),'option':'No'}],'model':_0x16c4f4,'ispeech_asr_language':_0x439484,'ispeech_tts_language':_0x1755fc,'languageCode':_0x50988a,'ssmlGender':[{'value':_0x7a374b('0x15c6'),'option':_0x7a374b('0x17a5')},{'value':_0x7a374b('0x1a12'),'option':_0x7a374b('0x406')}],'google_tts_language':_0x36b715,'google_asr_language':_0x2a5b43,'google_cloud_tts_text_type':[{'value':_0x7a374b('0xc1e'),'option':'Text'},{'value':_0x7a374b('0x26af'),'option':_0x7a374b('0xe9d')}],'aws_polly_region':_0x11fa01,'aws_polly_voice':_0x59e8ef,'aws_text_type':[{'value':_0x7a374b('0xc1e'),'option':_0x7a374b('0x1d81')},{'value':_0x7a374b('0x26af'),'option':_0x7a374b('0xe9d')}],'callback_priority':[{'option':_0x7a374b('0xfbf'),'value':0x4},{'option':_0x7a374b('0x26b9'),'value':0x3},{'option':_0x7a374b('0x68f'),'value':0x2},{'option':_0x7a374b('0x1cbc'),'value':0x1},{'option':_0x7a374b('0x109b'),'value':0x0}],'findBy':[{'value':'internal','option':_0x7a374b('0x9da')},{'value':'phone','option':'Phone'},{'value':_0x7a374b('0xf65'),'option':_0x7a374b('0xfa5')}],'dialogflow_language':_0x2416e4,'aws_lex_region':_0x489c26,'method':[{'value':_0x7a374b('0x1510'),'option':_0x7a374b('0x1510')},{'value':_0x7a374b('0x1bdb'),'option':_0x7a374b('0x1bdb')},{'value':'PUT','option':_0x7a374b('0x125e')},{'value':_0x7a374b('0x69d'),'option':'DELETE'}]},_0x548568['crudPermissions']=_0x4d238e,_0x548568[_0x7a374b('0x1081')]=_0x2667b7,_0x548568[_0x7a374b('0x167')]=_0x22c89f,_0x548568[_0x7a374b('0x154c')]=_0x38e6ab;function _0x2667b7(){var _0x56d3e5=_0x7a374b;_0x3711a3[_0x56d3e5('0x21de')](_0x56d3e5('0x1bd8'))?_0x382de4():_0x49cb57();}function _0x38e6ab(_0x185583,_0x373e22,_0x43eb18,_0x375098){return _0x86640f()['map'](_0x185583,function(_0x473630){var _0x55cd07=a0_0x2e7f;return{'value':_0x473630[_0x373e22],'option':_0x473630[_0x43eb18],'group':_0x375098?_0x473630[_0x375098]:undefined,'canSelect':typeof _0x473630[_0x55cd07('0xba')]!==_0x55cd07('0xddc')?_0x473630[_0x55cd07('0xba')]:!![]};});}function _0x41b194(_0x18509b,_0x323fb3,_0x16483a,_0x5bb55a){var _0x4e9d7d=_0x7a374b,_0x10c2f3=_0x86640f()[_0x4e9d7d('0x1503')](_0x18509b,function(_0x3adcb6){return _0x3adcb6[_0x5bb55a]===null;}),_0x43ad7b=[];return _0x86640f()[_0x4e9d7d('0x1a52')](_0x10c2f3,function(_0x3da305){var _0x2ea6af=_0x4e9d7d;_0x43ad7b['push']({'value':_0x3da305[_0x323fb3],'option':_0x3da305[_0x16483a]});var _0x4878b4=_0x86640f()[_0x2ea6af('0x1503')](_0x18509b,function(_0x554bdc){return _0x554bdc[_0x5bb55a]===_0x3da305['id'];});_0x86640f()[_0x2ea6af('0x1a52')](_0x4878b4,function(_0x556873){var _0x3acbca=_0x2ea6af;_0x43ad7b[_0x3acbca('0x206c')]({'value':_0x556873[_0x323fb3],'option':_0x3acbca('0xa99')+_0x556873[_0x16483a]});});}),_0x43ad7b;}function _0x382de4(){var _0x2c6069=_0x7a374b,_0x27c6fe={'sip_id':_0x38e6ab(_0xa29a9d,'id',_0x2c6069('0x20f5'),_0x2c6069('0x25c8')),'trunk_name':_0x38e6ab(_0x5f2027,'name',_0x2c6069('0x19fe')),'trunk_id':_0x38e6ab(_0x5f2027,'id','name'),'queue_id':_0x38e6ab(_0x19b15f,'id','name'),'file_id':_0x38e6ab(_0x1f63f7,'id','name'),'variable_id':_0x38e6ab(_0x4af641,'id','name'),'odbc_id':_0x38e6ab(_0x212816,'id',_0x2c6069('0x19fe')),'project_id':_0x38e6ab(_0x2374f2,'id',_0x2c6069('0x19fe')),'context':_0x38e6ab(_0x4ce5e0,'id',_0x2c6069('0x19fe')),'interval_id':_0x41b194(_0xf57df6,'id',_0x2c6069('0x19fe'),_0x2c6069('0x1ac8')),'account_id':_0x38e6ab(_0x94ece3,'id',_0x2c6069('0x19fe')),'template_id':_0x38e6ab(_0x16b8db,'id',_0x2c6069('0x19fe')),'list_id':_0x38e6ab(_0x350190,'id',_0x2c6069('0x19fe')),'sms_account_id':_0x38e6ab(_0x2eda19,'id',_0x2c6069('0x19fe')),'pause_id':_0x38e6ab(_0x3f643f,'id','name')},_0x18e145=_0x86640f()['merge'](_0x548568['values'],_0x27c6fe);_0x548568['values']=_0x18e145;}function _0x49cb57(){var _0x2eb7ef=_0x7a374b,_0x4c3e49=[_0x2eb7ef('0x1558'),_0x2eb7ef('0xe3f'),_0x2eb7ef('0x1c25'),_0x2eb7ef('0x20bf'),_0x2eb7ef('0x2637'),_0x2eb7ef('0x270e'),'odbc_id',_0x2eb7ef('0x1a71'),_0x2eb7ef('0x244c'),_0x2eb7ef('0x13e3'),'account_id',_0x2eb7ef('0x2323'),_0x2eb7ef('0xaf'),_0x2eb7ef('0x24a'),_0x2eb7ef('0x1765')];for(var _0x2fb031=0x0;_0x2fb031<_0x548568[_0x2eb7ef('0x1b01')][_0x2eb7ef('0x577')];_0x2fb031++){if(_0x86640f()['includes'](_0x4c3e49,_0x548568[_0x2eb7ef('0x1b01')][_0x2fb031][_0x2eb7ef('0x19fe')]))switch(_0x548568[_0x2eb7ef('0x1b01')][_0x2fb031][_0x2eb7ef('0x19fe')]){case _0x2eb7ef('0x1558'):_0x31692a();break;case _0x2eb7ef('0xe3f'):_0xf9e58f();break;case _0x2eb7ef('0x1c25'):_0x3886b4();break;case _0x2eb7ef('0x20bf'):_0x12854d();break;case _0x2eb7ef('0x2637'):_0x17361a();break;case _0x2eb7ef('0x270e'):_0x3adc45();break;case _0x2eb7ef('0x4ec'):_0x294518();break;case _0x2eb7ef('0x1a71'):_0x546edd();break;case _0x2eb7ef('0x244c'):_0x42517d();break;case _0x2eb7ef('0x13e3'):_0x97dac4();break;case _0x2eb7ef('0x1f7a'):_0x519727();break;case'template_id':_0x540b34();break;case _0x2eb7ef('0xaf'):_0x1419d0();break;case _0x2eb7ef('0x24a'):_0x2e862e();break;case _0x2eb7ef('0x1765'):_0x75d59f();break;}}}function _0x31692a(){var _0x1251e9=_0x7a374b,_0x1656ee=Number(_0x86640f()[_0x1251e9('0x1d2e')](_0x548568[_0x1251e9('0x1b01')],{'name':_0x1251e9('0x1558')})[_0x1251e9('0x2228')]),_0x137a6d=_0x86640f()['some'](_0xa29a9d,{'id':_0x1656ee});if(!_0x137a6d&&_0x1656ee>0x0)return _0x2001be[_0x1251e9('0x1775')][_0x1251e9('0x595')]({'id':_0x1656ee,'fields':_0x1251e9('0x20d4')})[_0x1251e9('0x1376')]['then'](function(_0x59e324){var _0x2e111b=_0x1251e9,_0x5b0946=_0x59e324[_0x2e111b('0x3bc')]();_0x5b0946[_0x2e111b('0xba')]=![],_0xa29a9d['push'](_0x5b0946),_0x548568[_0x2e111b('0x1843')][_0x2e111b('0x1558')]=_0x38e6ab(_0xa29a9d,'id','fullname','role');})['catch'](function(_0x2b1212){var _0x27a427=_0x1251e9;_0x6b201e[_0x27a427('0x2092')]({'title':_0x2b1212['status']?'API:'+_0x2b1212['status']+_0x27a427('0xa99')+_0x2b1212[_0x27a427('0x1808')]:'GET_USER','msg':_0x2b1212[_0x27a427('0x11c2')]?JSON[_0x27a427('0x25e')](_0x2b1212[_0x27a427('0x11c2')][_0x27a427('0x1224')]):_0x2b1212[_0x27a427('0x174f')]()});});else _0x548568[_0x1251e9('0x1843')][_0x1251e9('0x1558')]=_0x38e6ab(_0xa29a9d,'id','fullname',_0x1251e9('0x25c8'));}function _0x1419d0(){var _0xe1d0a3=_0x7a374b,_0x39def4=Number(_0x86640f()[_0xe1d0a3('0x1d2e')](_0x548568[_0xe1d0a3('0x1b01')],{'name':'list_id'})['value']),_0x12b0d2=_0x86640f()[_0xe1d0a3('0x2664')](_0x350190,{'id':_0x39def4});if(!_0x12b0d2&&_0x39def4>0x0)return _0x2001be[_0xe1d0a3('0x11e0')][_0xe1d0a3('0x595')]({'id':_0x39def4,'fields':_0xe1d0a3('0x1aa8')})['$promise'][_0xe1d0a3('0x21ad')](function(_0x11a950){var _0x447247=_0xe1d0a3,_0xcd0ec1=_0x11a950[_0x447247('0x3bc')]();_0xcd0ec1[_0x447247('0xba')]=![],_0x350190[_0x447247('0x206c')](_0xcd0ec1),_0x548568['values'][_0x447247('0xaf')]=_0x38e6ab(_0x350190,'id',_0x447247('0x19fe'));})[_0xe1d0a3('0x1c1d')](function(_0x3ff872){var _0x2e32a8=_0xe1d0a3;_0x6b201e[_0x2e32a8('0x2092')]({'title':_0x3ff872['status']?_0x2e32a8('0x22d')+_0x3ff872[_0x2e32a8('0x209')]+_0x2e32a8('0xa99')+_0x3ff872[_0x2e32a8('0x1808')]:'GET_LIST','msg':_0x3ff872[_0x2e32a8('0x11c2')]?JSON[_0x2e32a8('0x25e')](_0x3ff872[_0x2e32a8('0x11c2')]['message']):_0x3ff872[_0x2e32a8('0x174f')]()});});else _0x548568[_0xe1d0a3('0x1843')][_0xe1d0a3('0xaf')]=_0x38e6ab(_0x350190,'id',_0xe1d0a3('0x19fe'));}function _0x3886b4(){var _0x1a1e46=_0x7a374b,_0x311930=Number(_0x86640f()[_0x1a1e46('0x1d2e')](_0x548568[_0x1a1e46('0x1b01')],{'name':_0x1a1e46('0x1c25')})['value']),_0x5690df=_0x86640f()[_0x1a1e46('0x2664')](_0x5f2027,{'id':_0x311930});if(!_0x5690df&&_0x311930>0x0)return _0x2001be['trunk']['get']({'id':_0x311930,'fields':_0x1a1e46('0x1aa8')})['$promise'][_0x1a1e46('0x21ad')](function(_0x595fb4){var _0x346182=_0x1a1e46,_0x338cbe=_0x595fb4['toJSON']();_0x338cbe['canSelect']=![],_0x5f2027['push'](_0x338cbe),_0x548568[_0x346182('0x1843')][_0x346182('0x1c25')]=_0x38e6ab(_0x5f2027,'id',_0x346182('0x19fe'));})[_0x1a1e46('0x1c1d')](function(_0x4fdd77){var _0x55c7a0=_0x1a1e46;_0x6b201e['error']({'title':_0x4fdd77[_0x55c7a0('0x209')]?'API:'+_0x4fdd77[_0x55c7a0('0x209')]+'\x20-\x20'+_0x4fdd77['statusText']:_0x55c7a0('0x752'),'msg':_0x4fdd77[_0x55c7a0('0x11c2')]?JSON[_0x55c7a0('0x25e')](_0x4fdd77['data'][_0x55c7a0('0x1224')]):_0x4fdd77[_0x55c7a0('0x174f')]()});});else _0x548568['values'][_0x1a1e46('0x1c25')]=_0x38e6ab(_0x5f2027,'id',_0x1a1e46('0x19fe'));}function _0xf9e58f(){var _0xd695d5=_0x7a374b,_0xb65524=_0x86640f()[_0xd695d5('0x1d2e')](_0x548568[_0xd695d5('0x1b01')],{'name':_0xd695d5('0xe3f')})['value'],_0x35f772=_0x86640f()[_0xd695d5('0x2664')](_0x5f2027,{'name':_0xb65524});if(!_0x35f772&&_0xb65524)return _0x2001be[_0xd695d5('0x1280')][_0xd695d5('0x595')]({'name':_0xb65524,'fields':'id,name'})[_0xd695d5('0x1376')]['then'](function(_0x375a89){var _0x1d464a=_0xd695d5;if(_0x375a89[_0x1d464a('0x205f')]>0x0&&_0x375a89['rows'][_0x1d464a('0x577')]>0x0){var _0x2ee228=_0x375a89[_0x1d464a('0x1b33')][0x0];_0x2ee228[_0x1d464a('0xba')]=![],_0x5f2027[_0x1d464a('0x206c')](_0x2ee228),_0x548568[_0x1d464a('0x1843')][_0x1d464a('0xe3f')]=_0x38e6ab(_0x5f2027,_0x1d464a('0x19fe'),_0x1d464a('0x19fe'));}})[_0xd695d5('0x1c1d')](function(_0x28ab08){var _0x15b866=_0xd695d5;_0x6b201e[_0x15b866('0x2092')]({'title':_0x28ab08[_0x15b866('0x209')]?_0x15b866('0x22d')+_0x28ab08[_0x15b866('0x209')]+_0x15b866('0xa99')+_0x28ab08['statusText']:_0x15b866('0x752'),'msg':_0x28ab08['data']?JSON[_0x15b866('0x25e')](_0x28ab08[_0x15b866('0x11c2')][_0x15b866('0x1224')]):_0x28ab08[_0x15b866('0x174f')]()});});else _0x548568[_0xd695d5('0x1843')][_0xd695d5('0xe3f')]=_0x38e6ab(_0x5f2027,_0xd695d5('0x19fe'),_0xd695d5('0x19fe'));}function _0x12854d(){var _0x1c1334=_0x7a374b,_0x7260ce=Number(_0x86640f()[_0x1c1334('0x1d2e')](_0x548568[_0x1c1334('0x1b01')],{'name':'queue_id'})[_0x1c1334('0x2228')]),_0x476d77=_0x86640f()[_0x1c1334('0x2664')](_0x19b15f,{'id':_0x7260ce});if(!_0x476d77&&_0x7260ce>0x0)return _0x2001be[_0x1c1334('0xb97')][_0x1c1334('0x595')]({'id':_0x7260ce,'fields':_0x1c1334('0x1aa8')})['$promise'][_0x1c1334('0x21ad')](function(_0x418850){var _0x231d16=_0x1c1334,_0x24245e=_0x418850['toJSON']();_0x24245e[_0x231d16('0xba')]=![],_0x19b15f['push'](_0x24245e),_0x548568[_0x231d16('0x1843')][_0x231d16('0x20bf')]=_0x38e6ab(_0x19b15f,'id',_0x231d16('0x19fe'));})[_0x1c1334('0x1c1d')](function(_0x3406e8){var _0x2939f5=_0x1c1334;_0x6b201e[_0x2939f5('0x2092')]({'title':_0x3406e8[_0x2939f5('0x209')]?_0x2939f5('0x22d')+_0x3406e8['status']+'\x20-\x20'+_0x3406e8['statusText']:_0x2939f5('0xb22'),'msg':_0x3406e8[_0x2939f5('0x11c2')]?JSON[_0x2939f5('0x25e')](_0x3406e8[_0x2939f5('0x11c2')]['message']):_0x3406e8[_0x2939f5('0x174f')]()});});else _0x548568[_0x1c1334('0x1843')]['queue_id']=_0x38e6ab(_0x19b15f,'id',_0x1c1334('0x19fe'));}function _0x17361a(){var _0x44128e=_0x7a374b,_0x10d874=Number(_0x86640f()[_0x44128e('0x1d2e')](_0x548568[_0x44128e('0x1b01')],{'name':_0x44128e('0x2637')})['value']),_0x56004c=_0x86640f()[_0x44128e('0x2664')](_0x1f63f7,{'id':_0x10d874});if(!_0x56004c&&_0x10d874>0x0)return _0x2001be[_0x44128e('0x2397')][_0x44128e('0x595')]({'id':_0x10d874,'fields':_0x44128e('0x1aa8')})[_0x44128e('0x1376')][_0x44128e('0x21ad')](function(_0x58b1f3){var _0x3e2cdf=_0x44128e,_0x57f0a3=_0x58b1f3[_0x3e2cdf('0x3bc')]();_0x57f0a3[_0x3e2cdf('0xba')]=![],_0x1f63f7['push'](_0x57f0a3),_0x548568[_0x3e2cdf('0x1843')][_0x3e2cdf('0x2637')]=_0x38e6ab(_0x1f63f7,'id','name');})[_0x44128e('0x1c1d')](function(_0x5e20b6){var _0x52da9a=_0x44128e;_0x6b201e['error']({'title':_0x5e20b6[_0x52da9a('0x209')]?_0x52da9a('0x22d')+_0x5e20b6['status']+'\x20-\x20'+_0x5e20b6['statusText']:'GET_SOUND','msg':_0x5e20b6[_0x52da9a('0x11c2')]?JSON[_0x52da9a('0x25e')](_0x5e20b6[_0x52da9a('0x11c2')][_0x52da9a('0x1224')]):_0x5e20b6[_0x52da9a('0x174f')]()});});else _0x548568[_0x44128e('0x1843')]['file_id']=_0x38e6ab(_0x1f63f7,'id','name');}function _0x3adc45(){var _0x42be67=_0x7a374b,_0xedb0ff=Number(_0x86640f()[_0x42be67('0x1d2e')](_0x548568[_0x42be67('0x1b01')],{'name':_0x42be67('0x270e')})[_0x42be67('0x2228')]),_0x5e9780=_0x86640f()[_0x42be67('0x2664')](_0x4af641,{'id':_0xedb0ff});if(!_0x5e9780&&_0xedb0ff>0x0)return _0x2001be[_0x42be67('0x25bb')][_0x42be67('0x595')]({'id':_0xedb0ff,'fields':'id,name'})['$promise'][_0x42be67('0x21ad')](function(_0x23b3e1){var _0x476ab6=_0x42be67,_0x26c454=_0x23b3e1[_0x476ab6('0x3bc')]();_0x26c454['canSelect']=![],_0x4af641['push'](_0x26c454),_0x548568[_0x476ab6('0x1843')][_0x476ab6('0x270e')]=_0x38e6ab(_0x4af641,'id','name');})[_0x42be67('0x1c1d')](function(_0x4430ec){var _0x45f6e3=_0x42be67;_0x6b201e[_0x45f6e3('0x2092')]({'title':_0x4430ec[_0x45f6e3('0x209')]?'API:'+_0x4430ec[_0x45f6e3('0x209')]+'\x20-\x20'+_0x4430ec[_0x45f6e3('0x1808')]:_0x45f6e3('0x26bf'),'msg':_0x4430ec[_0x45f6e3('0x11c2')]?JSON[_0x45f6e3('0x25e')](_0x4430ec['data']['message']):_0x4430ec['toString']()});});else _0x548568[_0x42be67('0x1843')][_0x42be67('0x270e')]=_0x38e6ab(_0x4af641,'id',_0x42be67('0x19fe'));}function _0x294518(){var _0x6a8e54=_0x7a374b,_0x3bd622=Number(_0x86640f()[_0x6a8e54('0x1d2e')](_0x548568[_0x6a8e54('0x1b01')],{'name':_0x6a8e54('0x4ec')})[_0x6a8e54('0x2228')]),_0x26b71e=_0x86640f()[_0x6a8e54('0x2664')](_0x212816,{'id':_0x3bd622});if(!_0x26b71e&&_0x3bd622>0x0)return _0x2001be[_0x6a8e54('0xc45')][_0x6a8e54('0x595')]({'id':_0x3bd622,'fields':_0x6a8e54('0x1aa8')})[_0x6a8e54('0x1376')][_0x6a8e54('0x21ad')](function(_0x5c43ef){var _0x41d33f=_0x6a8e54,_0x782c2f=_0x5c43ef[_0x41d33f('0x3bc')]();_0x782c2f[_0x41d33f('0xba')]=![],_0x212816[_0x41d33f('0x206c')](_0x782c2f),_0x548568[_0x41d33f('0x1843')][_0x41d33f('0x4ec')]=_0x38e6ab(_0x212816,'id','name');})[_0x6a8e54('0x1c1d')](function(_0x87c0f3){var _0x570d04=_0x6a8e54;_0x6b201e[_0x570d04('0x2092')]({'title':_0x87c0f3['status']?_0x570d04('0x22d')+_0x87c0f3[_0x570d04('0x209')]+_0x570d04('0xa99')+_0x87c0f3[_0x570d04('0x1808')]:_0x570d04('0x1118'),'msg':_0x87c0f3[_0x570d04('0x11c2')]?JSON[_0x570d04('0x25e')](_0x87c0f3[_0x570d04('0x11c2')][_0x570d04('0x1224')]):_0x87c0f3['toString']()});});else _0x548568[_0x6a8e54('0x1843')][_0x6a8e54('0x4ec')]=_0x38e6ab(_0x212816,'id','name');}function _0x546edd(){var _0x2bc352=_0x7a374b,_0x4d5669=Number(_0x86640f()['find'](_0x548568[_0x2bc352('0x1b01')],{'name':'project_id'})[_0x2bc352('0x2228')]),_0x564ab3=_0x86640f()[_0x2bc352('0x2664')](_0x2374f2,{'id':_0x4d5669});if(!_0x564ab3&&_0x4d5669>0x0)return _0x2001be[_0x2bc352('0x1a41')][_0x2bc352('0x595')]({'id':_0x4d5669,'fields':'id,name'})[_0x2bc352('0x1376')][_0x2bc352('0x21ad')](function(_0x1ffdbe){var _0x36e412=_0x2bc352,_0x18ffe4=_0x1ffdbe[_0x36e412('0x3bc')]();_0x18ffe4[_0x36e412('0xba')]=![],_0x2374f2[_0x36e412('0x206c')](_0x18ffe4),_0x548568[_0x36e412('0x1843')]['project_id']=_0x38e6ab(_0x2374f2,'id','name');})[_0x2bc352('0x1c1d')](function(_0x5edcb4){var _0x544128=_0x2bc352;_0x6b201e[_0x544128('0x2092')]({'title':_0x5edcb4[_0x544128('0x209')]?'API:'+_0x5edcb4[_0x544128('0x209')]+_0x544128('0xa99')+_0x5edcb4[_0x544128('0x1808')]:_0x544128('0x887'),'msg':_0x5edcb4['data']?JSON['stringify'](_0x5edcb4[_0x544128('0x11c2')]['message']):_0x5edcb4[_0x544128('0x174f')]()});});else _0x548568['values'][_0x2bc352('0x1a71')]=_0x38e6ab(_0x2374f2,'id',_0x2bc352('0x19fe'));}function _0x42517d(){var _0x35355a=_0x7a374b,_0x541267=Number(_0x86640f()[_0x35355a('0x1d2e')](_0x548568[_0x35355a('0x1b01')],{'name':_0x35355a('0x244c')})[_0x35355a('0x2228')]),_0xf0d53b=_0x86640f()[_0x35355a('0x2664')](_0x4ce5e0,{'id':_0x541267});if(!_0xf0d53b&&_0x541267>0x0)return _0x2001be[_0x35355a('0x608')]['get']({'id':_0x541267,'fields':'id,name'})[_0x35355a('0x1376')][_0x35355a('0x21ad')](function(_0x2295e9){var _0x2f3658=_0x35355a,_0x330988=_0x2295e9[_0x2f3658('0x3bc')]();_0x330988[_0x2f3658('0xba')]=![],_0x4ce5e0[_0x2f3658('0x206c')](_0x330988),_0x548568['values'][_0x2f3658('0x244c')]=_0x38e6ab(_0x4ce5e0,'id',_0x2f3658('0x19fe'));})[_0x35355a('0x1c1d')](function(_0x1a2bab){var _0x46f1d6=_0x35355a;_0x6b201e['error']({'title':_0x1a2bab['status']?'API:'+_0x1a2bab[_0x46f1d6('0x209')]+'\x20-\x20'+_0x1a2bab['statusText']:_0x46f1d6('0x32c'),'msg':_0x1a2bab[_0x46f1d6('0x11c2')]?JSON[_0x46f1d6('0x25e')](_0x1a2bab[_0x46f1d6('0x11c2')]['message']):_0x1a2bab[_0x46f1d6('0x174f')]()});});else _0x548568['values']['context']=_0x38e6ab(_0x4ce5e0,'id','name');}function _0x97dac4(){var _0x57df0d=_0x7a374b,_0x3b7e23=Number(_0x86640f()[_0x57df0d('0x1d2e')](_0x548568[_0x57df0d('0x1b01')],{'name':_0x57df0d('0x13e3')})['value']),_0x1a2649=_0x86640f()[_0x57df0d('0x2664')](_0xf57df6,{'id':_0x3b7e23});if(!_0x1a2649&&_0x3b7e23>0x0)return _0x2001be['interval'][_0x57df0d('0x595')]({'id':_0x3b7e23,'fields':_0x57df0d('0x1')})[_0x57df0d('0x1376')]['then'](function(_0x2f4f48){var _0x32bf44=_0x57df0d,_0xc57317=_0x2f4f48[_0x32bf44('0x3bc')]();_0xc57317[_0x32bf44('0xba')]=![],_0xf57df6[_0x32bf44('0x206c')](_0xc57317),_0x548568[_0x32bf44('0x1843')][_0x32bf44('0x13e3')]=_0x38e6ab(_0xf57df6,'id',_0x32bf44('0x19fe'),_0x32bf44('0x1ac8'));})['catch'](function(_0x4af072){var _0x39d150=_0x57df0d;_0x6b201e[_0x39d150('0x2092')]({'title':_0x4af072[_0x39d150('0x209')]?_0x39d150('0x22d')+_0x4af072[_0x39d150('0x209')]+_0x39d150('0xa99')+_0x4af072['statusText']:'GET_INTERVAL','msg':_0x4af072[_0x39d150('0x11c2')]?JSON[_0x39d150('0x25e')](_0x4af072[_0x39d150('0x11c2')]['message']):_0x4af072[_0x39d150('0x174f')]()});});else _0x548568[_0x57df0d('0x1843')][_0x57df0d('0x13e3')]=_0x38e6ab(_0xf57df6,'id','name','IntervalId');}function _0x519727(){var _0x55874e=_0x7a374b,_0x17b35c=Number(_0x86640f()[_0x55874e('0x1d2e')](_0x548568[_0x55874e('0x1b01')],{'name':_0x55874e('0x1f7a')})[_0x55874e('0x2228')]),_0x3b843c=_0x86640f()[_0x55874e('0x2664')](_0x94ece3,{'id':_0x17b35c});if(!_0x3b843c&&_0x17b35c>0x0)return _0x2001be[_0x55874e('0x66')][_0x55874e('0x595')]({'id':_0x17b35c,'fields':_0x55874e('0x1aa8')})['$promise'][_0x55874e('0x21ad')](function(_0x4a3f33){var _0x4359b2=_0x55874e,_0x4c1d44=_0x4a3f33[_0x4359b2('0x3bc')]();_0x4c1d44[_0x4359b2('0xba')]=![],_0x94ece3['push'](_0x4c1d44),_0x548568['values'][_0x4359b2('0x1f7a')]=_0x38e6ab(_0x94ece3,'id',_0x4359b2('0x19fe'));})[_0x55874e('0x1c1d')](function(_0x42e086){var _0x17cd45=_0x55874e;_0x6b201e[_0x17cd45('0x2092')]({'title':_0x42e086['status']?_0x17cd45('0x22d')+_0x42e086[_0x17cd45('0x209')]+_0x17cd45('0xa99')+_0x42e086['statusText']:'GET_MAIL_ACCOUNT','msg':_0x42e086[_0x17cd45('0x11c2')]?JSON[_0x17cd45('0x25e')](_0x42e086[_0x17cd45('0x11c2')]['message']):_0x42e086['toString']()});});else _0x548568[_0x55874e('0x1843')][_0x55874e('0x1f7a')]=_0x38e6ab(_0x94ece3,'id','name');}function _0x2e862e(){var _0x30ef65=_0x7a374b,_0xfd3fa9=Number(_0x86640f()[_0x30ef65('0x1d2e')](_0x548568[_0x30ef65('0x1b01')],{'name':_0x30ef65('0x24a')})['value']),_0x32e658=_0x86640f()[_0x30ef65('0x2664')](_0x2eda19,{'id':_0xfd3fa9});if(!_0x32e658&&_0xfd3fa9>0x0)return _0x2001be[_0x30ef65('0xa10')][_0x30ef65('0x595')]({'id':_0xfd3fa9,'fields':'id,name'})['$promise'][_0x30ef65('0x21ad')](function(_0x2bb6b9){var _0x2c6e6c=_0x30ef65,_0xe2f640=_0x2bb6b9[_0x2c6e6c('0x3bc')]();_0xe2f640[_0x2c6e6c('0xba')]=![],_0x2eda19[_0x2c6e6c('0x206c')](_0xe2f640),_0x548568['values'][_0x2c6e6c('0x24a')]=_0x38e6ab(_0x2eda19,'id',_0x2c6e6c('0x19fe'));})[_0x30ef65('0x1c1d')](function(_0x3b7a38){var _0x3858c6=_0x30ef65;_0x6b201e[_0x3858c6('0x2092')]({'title':_0x3b7a38[_0x3858c6('0x209')]?_0x3858c6('0x22d')+_0x3b7a38[_0x3858c6('0x209')]+_0x3858c6('0xa99')+_0x3b7a38['statusText']:_0x3858c6('0x26de'),'msg':_0x3b7a38[_0x3858c6('0x11c2')]?JSON[_0x3858c6('0x25e')](_0x3b7a38[_0x3858c6('0x11c2')]['message']):_0x3b7a38[_0x3858c6('0x174f')]()});});else _0x548568[_0x30ef65('0x1843')][_0x30ef65('0x24a')]=_0x38e6ab(_0x2eda19,'id',_0x30ef65('0x19fe'));}function _0x540b34(){var _0x509ddb=_0x7a374b,_0x289382=Number(_0x86640f()[_0x509ddb('0x1d2e')](_0x548568[_0x509ddb('0x1b01')],{'name':_0x509ddb('0x2323')})[_0x509ddb('0x2228')]),_0x2e5261=_0x86640f()[_0x509ddb('0x2664')](_0x16b8db,{'id':_0x289382});if(!_0x2e5261&&_0x289382>0x0)return _0x2001be[_0x509ddb('0x1a51')][_0x509ddb('0x595')]({'id':_0x289382,'fields':_0x509ddb('0x1aa8')})['$promise'][_0x509ddb('0x21ad')](function(_0x416218){var _0x3adfa5=_0x509ddb,_0x2f779f=_0x416218[_0x3adfa5('0x3bc')]();_0x2f779f[_0x3adfa5('0xba')]=![],_0x16b8db[_0x3adfa5('0x206c')](_0x2f779f),_0x548568['values'][_0x3adfa5('0x2323')]=_0x38e6ab(_0x16b8db,'id',_0x3adfa5('0x19fe'));})['catch'](function(_0x4447d1){var _0x126f4d=_0x509ddb;_0x6b201e[_0x126f4d('0x2092')]({'title':_0x4447d1[_0x126f4d('0x209')]?_0x126f4d('0x22d')+_0x4447d1[_0x126f4d('0x209')]+_0x126f4d('0xa99')+_0x4447d1['statusText']:_0x126f4d('0x24a0'),'msg':_0x4447d1[_0x126f4d('0x11c2')]?JSON[_0x126f4d('0x25e')](_0x4447d1[_0x126f4d('0x11c2')][_0x126f4d('0x1224')]):_0x4447d1['toString']()});});else _0x548568[_0x509ddb('0x1843')][_0x509ddb('0x2323')]=_0x38e6ab(_0x16b8db,'id','name');}function _0x75d59f(){var _0x3753ab=_0x7a374b,_0x277edf=Number(_0x86640f()[_0x3753ab('0x1d2e')](_0x548568[_0x3753ab('0x1b01')],{'name':_0x3753ab('0x1765')})[_0x3753ab('0x2228')]),_0xefad58=_0x86640f()['some'](_0x3f643f,{'id':_0x277edf});if(!_0xefad58&&_0x277edf>0x0)return _0x2001be[_0x3753ab('0x1e26')]['get']({'id':_0x277edf,'fields':_0x3753ab('0x1aa8')})['$promise'][_0x3753ab('0x21ad')](function(_0x2ae510){var _0x408ad6=_0x3753ab,_0x34b9c9=_0x2ae510[_0x408ad6('0x3bc')]();_0x34b9c9[_0x408ad6('0xba')]=![],_0x3f643f['push'](_0x34b9c9),_0x548568[_0x408ad6('0x1843')][_0x408ad6('0x1765')]=_0x38e6ab(_0x3f643f,'id',_0x408ad6('0x19fe'));})[_0x3753ab('0x1c1d')](function(_0x2f32ea){var _0xaffc51=_0x3753ab;_0x6b201e[_0xaffc51('0x2092')]({'title':_0x2f32ea['status']?_0xaffc51('0x22d')+_0x2f32ea[_0xaffc51('0x209')]+'\x20-\x20'+_0x2f32ea[_0xaffc51('0x1808')]:_0xaffc51('0x24d6'),'msg':_0x2f32ea['data']?JSON[_0xaffc51('0x25e')](_0x2f32ea[_0xaffc51('0x11c2')][_0xaffc51('0x1224')]):_0x2f32ea[_0xaffc51('0x174f')]()});});else _0x548568['values']['pause_id']=_0x38e6ab(_0x3f643f,'id',_0x3753ab('0x19fe'));}function _0x22c89f(_0x4636b7){var _0x4c42c2=_0x7a374b;_0x4636b7&&_0x5211f0(_0x548568['attributes']),_0x5ccdd3[_0x4c42c2('0x1c24')]();}}const _0x2a8258=_0x3985cd;function _0x4f0196(){return{'require':'ngModel','link':function _0x10ec60(_0x16b23a,_0x1b2089,_0x47042a,_0x4df6c5){var _0x3ceb0c=a0_0x2e7f;_0x4df6c5[_0x3ceb0c('0x488')]['push'](function(_0x11253b){return''+_0x11253b;}),_0x4df6c5[_0x3ceb0c('0x244')]['push'](function(_0x3dc541){return parseFloat(_0x3dc541);});}};}const _0x5bdf4c=_0x4f0196;function _0x230130(){var _0x40c0ce=_0x3877e3;return[{'value':'da','option':_0x40c0ce('0xaa1')},{'value':'en','option':'English'},{'value':'de','option':_0x40c0ce('0x2a')},{'value':'it','option':_0x40c0ce('0xda4')},{'value':'es','option':_0x40c0ce('0x249d')},{'value':'fr','option':_0x40c0ce('0x1ada')},{'value':'id','option':_0x40c0ce('0x4c')},{'value':'ja','option':_0x40c0ce('0x1aa6')},{'value':'ko','option':_0x40c0ce('0xd06')},{'value':'nl','option':'Dutch'},{'value':'no','option':_0x40c0ce('0x2748')},{'value':'pt','option':_0x40c0ce('0x1732')},{'value':_0x40c0ce('0x1ebb'),'option':_0x40c0ce('0x132c')},{'value':'ru','option':_0x40c0ce('0x410')},{'value':'sv','option':'Swedish'},{'value':'th','option':'Thai'},{'value':'uk','option':_0x40c0ce('0x27e2')},{'value':_0x40c0ce('0x1d7b'),'option':_0x40c0ce('0x1aa4')},{'value':_0x40c0ce('0x18db'),'option':_0x40c0ce('0x20f2')},{'value':_0x40c0ce('0x1c77'),'option':_0x40c0ce('0x15fb')}];}function _0x2f6919(){var _0x25737f=_0x3877e3;return[{'value':_0x25737f('0x3a4'),'option':_0x25737f('0x17a2')},{'value':_0x25737f('0x9e'),'option':_0x25737f('0xacb')},{'value':_0x25737f('0x18b5'),'option':_0x25737f('0x1875')},{'value':_0x25737f('0x4d6'),'option':_0x25737f('0x36')},{'value':_0x25737f('0x1ce6'),'option':_0x25737f('0x33c')},{'value':'en-AU','option':_0x25737f('0x15e5')},{'value':_0x25737f('0x2463'),'option':_0x25737f('0x7bc')},{'value':_0x25737f('0xf35'),'option':_0x25737f('0x10cc')},{'value':_0x25737f('0x247b'),'option':_0x25737f('0xd7')},{'value':_0x25737f('0x148f'),'option':'Finnish\x20(Finland)'},{'value':_0x25737f('0x1269'),'option':_0x25737f('0x83b')},{'value':'fr-CA','option':'French\x20(Canada)'},{'value':_0x25737f('0x23ca'),'option':'French\x20(France)'},{'value':_0x25737f('0x2375'),'option':_0x25737f('0x1183')},{'value':_0x25737f('0xc31'),'option':_0x25737f('0x1e14')},{'value':_0x25737f('0x10d6'),'option':_0x25737f('0x67')},{'value':'it-IT','option':_0x25737f('0xeda')},{'value':_0x25737f('0x178e'),'option':_0x25737f('0x1b5f')},{'value':_0x25737f('0x2306'),'option':_0x25737f('0xd06')},{'value':_0x25737f('0x726'),'option':_0x25737f('0x11b9')},{'value':_0x25737f('0xf4a'),'option':_0x25737f('0x209d')},{'value':_0x25737f('0x8e5'),'option':'Polish\x20(Poland)'},{'value':'pt-BR','option':_0x25737f('0xf34')},{'value':_0x25737f('0x187e'),'option':_0x25737f('0x1693')},{'value':_0x25737f('0xe10'),'option':_0x25737f('0x17e0')},{'value':_0x25737f('0x13ca'),'option':_0x25737f('0x1db2')},{'value':_0x25737f('0x2819'),'option':_0x25737f('0xb92')},{'value':_0x25737f('0x2373'),'option':_0x25737f('0x145c')},{'value':_0x25737f('0x1314'),'option':'Turkish\x20(Turkey)'},{'value':_0x25737f('0x1a0b'),'option':_0x25737f('0xa3d')},{'value':_0x25737f('0x1cf3'),'option':_0x25737f('0x2a7')}];}function _0x458f58(){var _0x215d74=_0x3877e3;return[{'value':'af','option':'Afrikaans'},{'value':'sq','option':'Albanian'},{'value':'am','option':_0x215d74('0x1734')},{'value':'ar','option':_0x215d74('0x17a2')},{'value':'hy','option':'Armenian'},{'value':'az','option':_0x215d74('0x6cb')},{'value':'eu','option':'Basque'},{'value':'be','option':_0x215d74('0x8b2')},{'value':'bn','option':_0x215d74('0x868')},{'value':'bh','option':_0x215d74('0x2394')},{'value':'bs','option':_0x215d74('0x10d2')},{'value':'br','option':_0x215d74('0x1a10')},{'value':'bg','option':'Bulgarian'},{'value':'km','option':_0x215d74('0x145e')},{'value':'ca','option':_0x215d74('0x190c')},{'value':_0x215d74('0x1d7b'),'option':'Chinese\x20(Simplified)'},{'value':_0x215d74('0x1c77'),'option':'Chinese\x20(Traditional)'},{'value':'co','option':_0x215d74('0x10b6')},{'value':'hr','option':_0x215d74('0x98e')},{'value':'cs','option':'Czech'},{'value':'da','option':_0x215d74('0xaa1')},{'value':'nl','option':_0x215d74('0x1513')},{'value':'en','option':_0x215d74('0x2733')},{'value':'eo','option':_0x215d74('0xa62')},{'value':'et','option':_0x215d74('0x23b7')},{'value':'fo','option':'Faroese'},{'value':'tl','option':_0x215d74('0x574')},{'value':'fi','option':_0x215d74('0xc2c')},{'value':'fr','option':_0x215d74('0x1ada')},{'value':'fy','option':_0x215d74('0x2114')},{'value':'gl','option':_0x215d74('0x593')},{'value':'ka','option':'Georgian'},{'value':'de','option':_0x215d74('0x2a')},{'value':'el','option':'Greek'},{'value':'gn','option':'Guarani'},{'value':'gu','option':_0x215d74('0xa74')},{'value':_0x215d74('0x8f7'),'option':_0x215d74('0x1d8a')},{'value':'ha','option':_0x215d74('0xf91')},{'value':'iw','option':_0x215d74('0xed2')},{'value':'hi','option':_0x215d74('0x2264')},{'value':'hu','option':_0x215d74('0xa80')},{'value':'is','option':_0x215d74('0xa6e')},{'value':'id','option':_0x215d74('0x4c')},{'value':'ia','option':_0x215d74('0xe5f')},{'value':'ga','option':_0x215d74('0x9d3')},{'value':'it','option':_0x215d74('0xda4')},{'value':'jw','option':'Javanese'},{'value':'ja','option':'Japanese'},{'value':'kn','option':'Kannada'},{'value':'kk','option':_0x215d74('0xb32')},{'value':'rw','option':_0x215d74('0x2184')},{'value':'rn','option':_0x215d74('0x2262')},{'value':_0x215d74('0x2727'),'option':_0x215d74('0x611')},{'value':'ku','option':_0x215d74('0x1050')},{'value':'ko','option':_0x215d74('0x2261')},{'value':'ky','option':_0x215d74('0x1c4')},{'value':'lo','option':_0x215d74('0x23cf')},{'value':'la','option':'Latin'},{'value':'lv','option':'Latvian'},{'value':'ln','option':_0x215d74('0x256')},{'value':'lt','option':_0x215d74('0x2802')},{'value':'mk','option':'Macedonian'},{'value':'mg','option':'Malagasy'},{'value':'ml','option':_0x215d74('0xb5b')},{'value':'mt','option':_0x215d74('0x1123')},{'value':'mi','option':_0x215d74('0x1bf2')},{'value':'mr','option':_0x215d74('0x8cb')},{'value':'mo','option':_0x215d74('0x2694')},{'value':'mn','option':_0x215d74('0x65')},{'value':_0x215d74('0x1572'),'option':_0x215d74('0xd63')},{'value':'ne','option':'Nepali'},{'value':'no','option':_0x215d74('0x2748')},{'value':'nn','option':'Norwegian\x20(Nynorsk)'},{'value':'oc','option':_0x215d74('0x2625')},{'value':'or','option':_0x215d74('0xc5e')},{'value':'om','option':'Oromo'},{'value':'ps','option':_0x215d74('0xa60')},{'value':'fa','option':_0x215d74('0xdac')},{'value':_0x215d74('0x2f8'),'option':_0x215d74('0x180e')},{'value':'pl','option':_0x215d74('0x16ec')},{'value':_0x215d74('0x2854'),'option':_0x215d74('0xf34')},{'value':_0x215d74('0x187e'),'option':_0x215d74('0x1693')},{'value':'pa','option':_0x215d74('0x6e0')},{'value':'qu','option':_0x215d74('0xcff')},{'value':'ro','option':'Romanian'},{'value':'rm','option':_0x215d74('0xc8d')},{'value':'ru','option':_0x215d74('0x410')},{'value':'gd','option':_0x215d74('0x2dd')},{'value':'sr','option':_0x215d74('0x92')},{'value':'sh','option':'Serbo-Croatian'},{'value':'st','option':'Sesotho'},{'value':'sn','option':'Shona'},{'value':'sd','option':_0x215d74('0xa2f')},{'value':'si','option':_0x215d74('0x3c5')},{'value':'sk','option':_0x215d74('0x8dc')},{'value':'sl','option':_0x215d74('0x1b67')},{'value':'so','option':_0x215d74('0xaf9')},{'value':'es','option':'Spanish'},{'value':'su','option':_0x215d74('0x205a')},{'value':'sw','option':_0x215d74('0xc4d')},{'value':'sv','option':_0x215d74('0x15e7')},{'value':'tg','option':_0x215d74('0x133d')},{'value':'ta','option':_0x215d74('0xa98')},{'value':'tt','option':'Tatar'},{'value':'te','option':_0x215d74('0xe86')},{'value':'th','option':_0x215d74('0x140c')},{'value':'ti','option':_0x215d74('0x240f')},{'value':'to','option':_0x215d74('0x16a6')},{'value':'tr','option':_0x215d74('0xbd4')},{'value':'tk','option':_0x215d74('0x2731')},{'value':'tw','option':_0x215d74('0x148b')},{'value':'ug','option':_0x215d74('0x23d6')},{'value':'uk','option':_0x215d74('0x27e2')},{'value':'ur','option':_0x215d74('0x122f')},{'value':'uz','option':_0x215d74('0x1a62')},{'value':'vi','option':'Vietnamese'},{'value':'cy','option':'Welsh'},{'value':'xh','option':_0x215d74('0x1c5e')},{'value':'yi','option':_0x215d74('0x1900')},{'value':'yo','option':_0x215d74('0x2655')},{'value':'zu','option':_0x215d74('0x256f')}];}function _0x3db876(){var _0x9a169a=_0x3877e3;return[{'value':'af-ZA','option':_0x9a169a('0x1f7b')},{'value':'am-ET','option':_0x9a169a('0xf33')},{'value':_0x9a169a('0x20a5'),'option':_0x9a169a('0x2f4')},{'value':_0x9a169a('0x18a7'),'option':'Azerbaijani\x20(Azerbaijan)'},{'value':'id-ID','option':_0x9a169a('0x67')},{'value':_0x9a169a('0x16c6'),'option':_0x9a169a('0x254f')},{'value':_0x9a169a('0x18d0'),'option':_0x9a169a('0xb2')},{'value':_0x9a169a('0x2400'),'option':_0x9a169a('0x1590')},{'value':'ca-ES','option':_0x9a169a('0x1fe5')},{'value':_0x9a169a('0x9e'),'option':_0x9a169a('0xacb')},{'value':_0x9a169a('0x18b5'),'option':'Danish\x20(Denmark)'},{'value':_0x9a169a('0x4d6'),'option':'German\x20(Germany)'},{'value':_0x9a169a('0xccb'),'option':'English\x20(Australia)'},{'value':_0x9a169a('0xf5'),'option':'English\x20(Canada)'},{'value':_0x9a169a('0x1a2f'),'option':'English\x20(Ghana)'},{'value':'en-GB','option':'English\x20(United\x20Kingdom)'},{'value':_0x9a169a('0x2463'),'option':'English\x20(India)'},{'value':'en-IE','option':_0x9a169a('0x1e2d')},{'value':_0x9a169a('0x111a'),'option':_0x9a169a('0x56a')},{'value':_0x9a169a('0xee2'),'option':_0x9a169a('0x1b57')},{'value':_0x9a169a('0xd6f'),'option':_0x9a169a('0x137d')},{'value':_0x9a169a('0xdc7'),'option':_0x9a169a('0x2a6')},{'value':_0x9a169a('0x20'),'option':_0x9a169a('0x3ef')},{'value':'en-TZ','option':_0x9a169a('0x230f')},{'value':_0x9a169a('0x247b'),'option':_0x9a169a('0xfe4')},{'value':_0x9a169a('0x12db'),'option':_0x9a169a('0x2816')},{'value':_0x9a169a('0x7e6'),'option':'Spanish\x20(Bolivia)'},{'value':_0x9a169a('0x312'),'option':_0x9a169a('0xc5a')},{'value':_0x9a169a('0x212c'),'option':_0x9a169a('0x16c7')},{'value':_0x9a169a('0x66b'),'option':'Spanish\x20(Costa\x20Rica)'},{'value':_0x9a169a('0x158a'),'option':_0x9a169a('0x125d')},{'value':_0x9a169a('0x136e'),'option':_0x9a169a('0x2472')},{'value':_0x9a169a('0x2819'),'option':_0x9a169a('0xb92')},{'value':'es-US','option':'Spanish\x20(United\x20States)'},{'value':_0x9a169a('0x977'),'option':'Spanish\x20(Guatemala)'},{'value':'es-HN','option':_0x9a169a('0x228e')},{'value':_0x9a169a('0x78e'),'option':_0x9a169a('0x24be')},{'value':_0x9a169a('0x687'),'option':'Spanish\x20(Nicaragua)'},{'value':_0x9a169a('0x74c'),'option':_0x9a169a('0xaad')},{'value':_0x9a169a('0xe63'),'option':_0x9a169a('0x1241')},{'value':_0x9a169a('0x1cc1'),'option':_0x9a169a('0x2687')},{'value':_0x9a169a('0xc36'),'option':'Spanish\x20(Puerto\x20Rico)'},{'value':'es-DO','option':_0x9a169a('0x4a')},{'value':'es-UY','option':_0x9a169a('0x462')},{'value':'es-VE','option':'Spanish\x20(Venezuela)'},{'value':_0x9a169a('0x13ac'),'option':_0x9a169a('0x4b7')},{'value':_0x9a169a('0x1269'),'option':_0x9a169a('0x83b')},{'value':_0x9a169a('0x218c'),'option':_0x9a169a('0x1303')},{'value':'fr-FR','option':'French\x20(France)'},{'value':_0x9a169a('0x1171'),'option':_0x9a169a('0x600')},{'value':'ka-GE','option':'Georgian\x20(Georgia)'},{'value':'gu-IN','option':_0x9a169a('0x25fa')},{'value':_0x9a169a('0x2746'),'option':'Croatian\x20(Croatia)'},{'value':_0x9a169a('0xac7'),'option':_0x9a169a('0xa0d')},{'value':'is-IS','option':_0x9a169a('0x1102')},{'value':_0x9a169a('0xce5'),'option':_0x9a169a('0xeda')},{'value':'jv-ID','option':_0x9a169a('0x84f')},{'value':_0x9a169a('0x8fd'),'option':_0x9a169a('0x1abb')},{'value':_0x9a169a('0x258c'),'option':_0x9a169a('0x30f')},{'value':_0x9a169a('0x10a3'),'option':'Lao\x20(Laos)'},{'value':_0x9a169a('0x1284'),'option':'Latvian\x20(Latvia)'},{'value':_0x9a169a('0x1204'),'option':'Lithuanian\x20(Lithuania)'},{'value':_0x9a169a('0xc31'),'option':_0x9a169a('0x1e14')},{'value':_0x9a169a('0x370'),'option':'Malayalam\x20(India)'},{'value':'mr-IN','option':_0x9a169a('0x1ac4')},{'value':_0x9a169a('0x178d'),'option':'Dutch\x20(Netherlands)'},{'value':_0x9a169a('0x97a'),'option':_0x9a169a('0x2be')},{'value':'nb-NO','option':_0x9a169a('0x922')},{'value':'pl-PL','option':_0x9a169a('0x25fb')},{'value':'pt-BR','option':'Portuguese\x20(Brazil)'},{'value':_0x9a169a('0x187e'),'option':_0x9a169a('0x1693')},{'value':'ro-RO','option':'Romanian\x20(Romania)'},{'value':_0x9a169a('0xd28'),'option':_0x9a169a('0x171f')},{'value':'sk-SK','option':_0x9a169a('0x1db2')},{'value':_0x9a169a('0x2426'),'option':_0x9a169a('0x1a1b')},{'value':_0x9a169a('0xe30'),'option':'Sundanese\x20(Indonesia)'},{'value':_0x9a169a('0xec2'),'option':'Swahili\x20(Tanzania)'},{'value':_0x9a169a('0xc7a'),'option':_0x9a169a('0x16e2')},{'value':_0x9a169a('0x148f'),'option':_0x9a169a('0x1ae')},{'value':_0x9a169a('0x2373'),'option':'Swedish\x20(Sweden)'},{'value':'ta-IN','option':'Tamil\x20(India)'},{'value':_0x9a169a('0x7c4'),'option':_0x9a169a('0x1e3f')},{'value':_0x9a169a('0xe56'),'option':_0x9a169a('0x8f4')},{'value':_0x9a169a('0x282b'),'option':'Tamil\x20(Malaysia)'},{'value':'te-IN','option':_0x9a169a('0x192')},{'value':_0x9a169a('0x1cf3'),'option':'Vietnamese\x20(Vietnam)'},{'value':'tr-TR','option':_0x9a169a('0xe8a')},{'value':_0x9a169a('0x108b'),'option':'Urdu\x20(Pakistan)'},{'value':'ur-IN','option':'Urdu\x20(India)'},{'value':_0x9a169a('0x1ce6'),'option':'Greek\x20(Greece)'},{'value':_0x9a169a('0xd5f'),'option':_0x9a169a('0x152c')},{'value':_0x9a169a('0xe10'),'option':_0x9a169a('0x17e0')},{'value':_0x9a169a('0x8ee'),'option':'Serbian\x20(Serbia)'},{'value':'uk-UA','option':_0x9a169a('0xa3d')},{'value':_0x9a169a('0x4a5'),'option':_0x9a169a('0x60d')},{'value':_0x9a169a('0x1fa8'),'option':_0x9a169a('0xb6f')},{'value':_0x9a169a('0x16c5'),'option':_0x9a169a('0x855')},{'value':'ar-AE','option':_0x9a169a('0x2125')},{'value':_0x9a169a('0x10c9'),'option':_0x9a169a('0x18b8')},{'value':_0x9a169a('0x9c5'),'option':_0x9a169a('0x1169')},{'value':'ar-SA','option':_0x9a169a('0x1c7e')},{'value':_0x9a169a('0x1d95'),'option':_0x9a169a('0x211')},{'value':'ar-KW','option':_0x9a169a('0xdc4')},{'value':'ar-MA','option':_0x9a169a('0x23b')},{'value':_0x9a169a('0x1608'),'option':_0x9a169a('0x86e')},{'value':_0x9a169a('0x10c5'),'option':_0x9a169a('0x691')},{'value':_0x9a169a('0x12a0'),'option':_0x9a169a('0x1389')},{'value':_0x9a169a('0xd5'),'option':_0x9a169a('0x624')},{'value':_0x9a169a('0x225a'),'option':'Arabic\x20(Lebanon)'},{'value':_0x9a169a('0x26ed'),'option':_0x9a169a('0x1ba5')},{'value':_0x9a169a('0x195'),'option':_0x9a169a('0xda2')},{'value':'hi-IN','option':_0x9a169a('0x1183')},{'value':_0x9a169a('0x16b'),'option':_0x9a169a('0xb3c')},{'value':_0x9a169a('0x2306'),'option':_0x9a169a('0xd06')},{'value':_0x9a169a('0x225d'),'option':_0x9a169a('0x1160')},{'value':'yue-Hant-HK','option':_0x9a169a('0x1b05')},{'value':_0x9a169a('0x178e'),'option':_0x9a169a('0x1b5f')},{'value':_0x9a169a('0x131c'),'option':'Chinese,\x20Mandarin\x20(Simplified,\x20Hong\x20Kong)'},{'value':_0x9a169a('0x241'),'option':_0x9a169a('0x12fe')}];}function _0x1e08fb(){var _0x3c5eee=_0x3877e3;return[{'value':_0x3c5eee('0x2392'),'option':_0x3c5eee('0x8fc')},{'value':_0x3c5eee('0x1e19'),'option':'US\x20English\x20Male'},{'value':_0x3c5eee('0x157f'),'option':_0x3c5eee('0x2417')},{'value':_0x3c5eee('0x1200'),'option':_0x3c5eee('0x76d')},{'value':_0x3c5eee('0x2094'),'option':'Australian\x20English'},{'value':_0x3c5eee('0xe9'),'option':_0x3c5eee('0xfd5')},{'value':_0x3c5eee('0xd69'),'option':_0x3c5eee('0xe9e')},{'value':_0x3c5eee('0x41e'),'option':_0x3c5eee('0x1773')},{'value':_0x3c5eee('0x1f54'),'option':'Chinese\x20Male'},{'value':'hkchinesefemale','option':'Hong\x20Kong\x20Cantonese\x20Female'},{'value':'twchinesefemale','option':_0x3c5eee('0x116d')},{'value':_0x3c5eee('0x1451'),'option':_0x3c5eee('0xcb6')},{'value':'jpjapanesemale','option':_0x3c5eee('0x783')},{'value':_0x3c5eee('0x1196'),'option':_0x3c5eee('0x2160')},{'value':'krkoreanmale','option':_0x3c5eee('0xb71')},{'value':'caenglishfemale','option':_0x3c5eee('0x648')},{'value':'huhungarianfemale','option':_0x3c5eee('0x1046')},{'value':_0x3c5eee('0x15b8'),'option':_0x3c5eee('0x160d')},{'value':_0x3c5eee('0x1d19'),'option':_0x3c5eee('0x376')},{'value':_0x3c5eee('0x1d4a'),'option':_0x3c5eee('0x1ff')},{'value':_0x3c5eee('0x2e2'),'option':'European\x20Spanish\x20Female'},{'value':_0x3c5eee('0x1d9a'),'option':_0x3c5eee('0x11c8')},{'value':'eurcatalanfemale','option':_0x3c5eee('0xc3b')},{'value':_0x3c5eee('0x1de'),'option':_0x3c5eee('0x673')},{'value':_0x3c5eee('0x16e'),'option':_0x3c5eee('0x1c7b')},{'value':'eurfinnishfemale','option':'European\x20Finnish\x20Female'},{'value':_0x3c5eee('0x164c'),'option':'European\x20French\x20Female'},{'value':'eurfrenchmale','option':_0x3c5eee('0xad')},{'value':_0x3c5eee('0x1648'),'option':_0x3c5eee('0x1def')},{'value':'eurdutchfemale','option':_0x3c5eee('0x1117')},{'value':_0x3c5eee('0x176f'),'option':'European\x20Polish\x20Female'},{'value':_0x3c5eee('0x1146'),'option':_0x3c5eee('0x216f')},{'value':_0x3c5eee('0x1481'),'option':_0x3c5eee('0x3df')},{'value':_0x3c5eee('0x11e7'),'option':_0x3c5eee('0x1b52')},{'value':'eurturkishmale','option':'European\x20Turkish\x20Male'},{'value':'eurgermanfemale','option':_0x3c5eee('0x150e')},{'value':_0x3c5eee('0x1d9d'),'option':_0x3c5eee('0x6ec')},{'value':_0x3c5eee('0x267'),'option':'Russian\x20Female'},{'value':_0x3c5eee('0x109e'),'option':_0x3c5eee('0x890')},{'value':'swswedishfemale','option':_0x3c5eee('0x1896')},{'value':_0x3c5eee('0xd49'),'option':'Canadian\x20French\x20Female'},{'value':'cafrenchmale','option':_0x3c5eee('0x586')}];}function _0x7f6b3b(){var _0x55598c=_0x3877e3;return[{'value':_0x55598c('0x247b'),'option':'English\x20(US)'},{'value':_0x55598c('0xf5'),'option':_0x55598c('0x154')},{'value':_0x55598c('0xf35'),'option':_0x55598c('0x10cc')},{'value':_0x55598c('0xccb'),'option':_0x55598c('0x40d')},{'value':_0x55598c('0x2819'),'option':_0x55598c('0xb92')},{'value':_0x55598c('0x78e'),'option':'Spanish\x20(Mexico)'},{'value':_0x55598c('0xce5'),'option':_0x55598c('0x1a60')},{'value':'fr-FR','option':'German\x20(Germany)'},{'value':_0x55598c('0x218c'),'option':_0x55598c('0x1303')},{'value':_0x55598c('0x8e5'),'option':'Polish\x20(Poland)'},{'value':'pt-PT','option':_0x55598c('0x1693')},{'value':_0x55598c('0x16c3'),'option':_0x55598c('0x1f85')},{'value':'zh-TW','option':_0x55598c('0x20ec')},{'value':_0x55598c('0x18b5'),'option':'Danish\x20(Denmark)'},{'value':_0x55598c('0x178e'),'option':_0x55598c('0x1b5f')},{'value':_0x55598c('0x2306'),'option':_0x55598c('0x27e5')},{'value':_0x55598c('0x178d'),'option':_0x55598c('0x36')},{'value':_0x55598c('0xf4a'),'option':'Norwegian\x20(Norway)'},{'value':_0x55598c('0x2854'),'option':_0x55598c('0xf34')},{'value':_0x55598c('0xe10'),'option':_0x55598c('0x17e0')},{'value':_0x55598c('0x2373'),'option':_0x55598c('0x145c')},{'value':_0x55598c('0x1d7b'),'option':_0x55598c('0xad2')},{'value':_0x55598c('0x18db'),'option':_0x55598c('0x20f2')}];}function _0x512326(){var _0x255695=_0x3877e3;return[{'value':'0','option':_0x255695('0x15d3')},{'value':_0x255695('0x2457'),'option':_0x255695('0x2185')},{'value':_0x255695('0x1658'),'option':_0x255695('0x532')},{'value':'numbersto9','option':'Numbers\x20to\x209'},{'value':_0x255695('0x52d'),'option':_0x255695('0x21ba')},{'value':_0x255695('0x91c'),'option':_0x255695('0x1fd6')},{'value':_0x255695('0x7a0'),'option':_0x255695('0x16bd')},{'value':_0x255695('0x1cec'),'option':_0x255695('0x2788')},{'value':_0x255695('0x1083'),'option':_0x255695('0xb40')},{'value':_0x255695('0x5f9'),'option':'US\x20City/States'}];}function _0x5cb4ad(){var _0x5b7cc0=_0x3877e3;return[{'value':'Amy','option':_0x5b7cc0('0x1b9')},{'value':_0x5b7cc0('0x248f'),'option':_0x5b7cc0('0x22bb')},{'value':_0x5b7cc0('0x1bca'),'option':_0x5b7cc0('0x468')},{'value':_0x5b7cc0('0x1f74'),'option':'Carla\x20(Italian,\x20Female)'},{'value':_0x5b7cc0('0xdd3'),'option':_0x5b7cc0('0x5b6')},{'value':'Celine','option':'Celine\x20(French,\x20Female)'},{'value':_0x5b7cc0('0x1f9d'),'option':_0x5b7cc0('0x1845')},{'value':_0x5b7cc0('0x19cc'),'option':_0x5b7cc0('0x25e8')},{'value':_0x5b7cc0('0x4fa'),'option':'Cristiano\x20(Portuguese,\x20Male)'},{'value':_0x5b7cc0('0x766'),'option':_0x5b7cc0('0x1fd9')},{'value':_0x5b7cc0('0xc73'),'option':_0x5b7cc0('0x1905')},{'value':'Enrique','option':'Enrique\x20(Spanish,\x20Castilian,\x20Male)'},{'value':'Ewa','option':_0x5b7cc0('0x2347')},{'value':_0x5b7cc0('0x767'),'option':_0x5b7cc0('0x2238')},{'value':_0x5b7cc0('0xb18'),'option':_0x5b7cc0('0x142a')},{'value':_0x5b7cc0('0x27ed'),'option':_0x5b7cc0('0xfd8')},{'value':_0x5b7cc0('0x1220'),'option':_0x5b7cc0('0x2067')},{'value':'Hans','option':_0x5b7cc0('0x16d9')},{'value':'Ines','option':_0x5b7cc0('0x267e')},{'value':'Ivy','option':'Ivy\x20(English,\x20US,\x20Female)'},{'value':_0x5b7cc0('0x24df'),'option':'Jacek\x20(Polish,\x20Male)'},{'value':_0x5b7cc0('0x1a03'),'option':_0x5b7cc0('0x14e2')},{'value':_0x5b7cc0('0xaf5'),'option':_0x5b7cc0('0x48b')},{'value':_0x5b7cc0('0xb99'),'option':_0x5b7cc0('0xa64')},{'value':_0x5b7cc0('0x76b'),'option':'Justin\x20(English,\x20US,\x20Male)'},{'value':'Karl','option':'Karl\x20(Icelandic,\x20Male)'},{'value':_0x5b7cc0('0x327'),'option':_0x5b7cc0('0x3f7')},{'value':_0x5b7cc0('0x1613'),'option':_0x5b7cc0('0x81d')},{'value':_0x5b7cc0('0x91d'),'option':_0x5b7cc0('0x1401')},{'value':_0x5b7cc0('0x15fa'),'option':_0x5b7cc0('0x212a')},{'value':_0x5b7cc0('0x1234'),'option':_0x5b7cc0('0x24c0')},{'value':'Maja','option':_0x5b7cc0('0xc14')},{'value':_0x5b7cc0('0x1fbf'),'option':'Marlene\x20(German,\x20Female)'},{'value':_0x5b7cc0('0xdbc'),'option':'Mathieu\x20(French,\x20Male)'},{'value':'Maxim','option':_0x5b7cc0('0x1a18')},{'value':_0x5b7cc0('0xe92'),'option':'Miguel\x20(Spanish,\x20US,\x20Male)'},{'value':'Mizuki','option':'Mizuki\x20(Japanese,\x20Female)'},{'value':_0x5b7cc0('0x5b9'),'option':_0x5b7cc0('0x2353')},{'value':'Nicole','option':_0x5b7cc0('0x22c6')},{'value':_0x5b7cc0('0x17f'),'option':_0x5b7cc0('0x65a')},{'value':_0x5b7cc0('0x1d42'),'option':_0x5b7cc0('0x180f')},{'value':_0x5b7cc0('0x533'),'option':_0x5b7cc0('0x320')},{'value':'Ruben','option':_0x5b7cc0('0x19e7')},{'value':_0x5b7cc0('0xd10'),'option':_0x5b7cc0('0x2855')},{'value':_0x5b7cc0('0x18ef'),'option':_0x5b7cc0('0x2a1')},{'value':_0x5b7cc0('0x17d1'),'option':_0x5b7cc0('0x10f5')},{'value':_0x5b7cc0('0x8d4'),'option':_0x5b7cc0('0x1dc0')}];}function _0x3f5bed(){var _0x2ccade=_0x3877e3;return[{'value':_0x2ccade('0xc0b'),'option':_0x2ccade('0x1a91')},{'value':_0x2ccade('0x120'),'option':'US\x20East\x20(Ohio)'},{'value':_0x2ccade('0x20a4'),'option':_0x2ccade('0x6a4')},{'value':'us-west-2','option':_0x2ccade('0x1b2a')},{'value':_0x2ccade('0x1260'),'option':'Canada\x20(Central)'},{'value':'eu-west-1','option':'EU\x20(Ireland)'},{'value':'eu-central-1','option':_0x2ccade('0x1b62')},{'value':'eu-west-2','option':_0x2ccade('0x1d6')},{'value':'eu-west-3','option':_0x2ccade('0x1811')},{'value':_0x2ccade('0x704'),'option':_0x2ccade('0x1141')},{'value':_0x2ccade('0x1003'),'option':'Asia\x20Pacific\x20(Sydney)'},{'value':_0x2ccade('0xfdb'),'option':_0x2ccade('0x1727')},{'value':_0x2ccade('0xd58'),'option':_0x2ccade('0x1705')},{'value':'ap-south-1','option':_0x2ccade('0xca0')},{'value':_0x2ccade('0x1a1f'),'option':_0x2ccade('0x13f5')}];}function _0x5bafc8(){var _0x30bda0=_0x3877e3;return[{'value':'us-east-1','option':_0x30bda0('0x1a91')},{'value':_0x30bda0('0x1bac'),'option':_0x30bda0('0x1b2a')},{'value':'eu-west-1','option':_0x30bda0('0x1844')},{'value':_0x30bda0('0x1003'),'option':_0x30bda0('0x4be')}];}_0x1c48fd[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'toasty',_0x3877e3('0x1447'),_0x3877e3('0x2719')];function _0x1c48fd(_0x5beb96,_0x9e5c5f,_0x3af1eb,_0x16a9d3){var _0x463e2d=_0x3877e3,_0x4be30f=this;_0x4be30f[_0x463e2d('0xbf8')]={'preproduction':_0x3af1eb};function _0x570b11(_0x354bb1){var _0x47dc6f=_0x463e2d;_0x354bb1?(_0x16a9d3(_0x4be30f['project'][_0x47dc6f('0x138')]),_0x5beb96[_0x47dc6f('0x1c24')](_0x4be30f[_0x47dc6f('0xbf8')][_0x47dc6f('0x138')])):_0x5beb96[_0x47dc6f('0x1c24')]();}_0x4be30f[_0x463e2d('0x167')]=_0x570b11;}const _0x495cb5=_0x1c48fd;_0x476301[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),_0x3877e3('0x2719')];function _0x476301(_0x168387,_0x247128){var _0x4e1c8e=_0x3877e3,_0xc40a0f=this,_0x1e83cd=0x5,_0x3f99c8=_0x1e83cd*0x400*0x400;_0xc40a0f[_0x4e1c8e('0x1a69')]=[],_0xc40a0f[_0x4e1c8e('0x467')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x3f99c8,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0xc40a0f[_0x4e1c8e('0x1413')]={'flow':{}},_0xc40a0f[_0x4e1c8e('0x8c3')]=![],_0xc40a0f[_0x4e1c8e('0x167')]=_0x1a5a7d,_0xc40a0f[_0x4e1c8e('0x20d9')]=_0x28de2a;function _0x28de2a(_0x30112a){var _0x3332ab=_0x4e1c8e;_0xc40a0f[_0x3332ab('0x1a69')]=[];var _0x6fed92=[_0x3332ab('0x281')];!_0x86640f()[_0x3332ab('0xb34')](_0x6fed92,_0x30112a['getExtension']())&&_0xc40a0f[_0x3332ab('0x1a69')][_0x3332ab('0x206c')]({'message':_0x3332ab('0x26fc')+_0x30112a[_0x3332ab('0x9bb')]()+_0x3332ab('0x22aa')});_0x30112a[_0x3332ab('0x337')]>_0x3f99c8&&_0xc40a0f[_0x3332ab('0x1a69')][_0x3332ab('0x206c')]({'message':_0x3332ab('0x11ed')+_0x1e83cd+'MB'});if(!_0xc40a0f[_0x3332ab('0x1a69')][_0x3332ab('0x577')]){var _0x47476f=new FileReader();_0x47476f[_0x3332ab('0x1efd')]=function(_0x2f41ed){var _0x53b262=_0x3332ab;_0x1a5a7d(_0x2f41ed[_0x53b262('0x14a5')][_0x53b262('0x8c7')]);},_0x47476f[_0x3332ab('0x836')](_0x30112a[_0x3332ab('0x18a9')]);}}function _0x1a5a7d(_0x1a249d){var _0x3e82ae=_0x4e1c8e;_0x1a249d?(_0x247128(_0x1a249d),_0x168387[_0x3e82ae('0x1c24')](_0x1a249d)):_0x168387[_0x3e82ae('0x1c24')]();}}const _0x4e5a62=_0x476301;_0x48bcc5['$inject']=[_0x3877e3('0x1850'),_0x3877e3('0x1908'),_0x3877e3('0xbf8'),_0x3877e3('0xccd')];function _0x48bcc5(_0x5c6d93,_0x4c3ca1,_0x523f01,_0x287392){var _0x4c26f3=_0x3877e3,_0x4c997f=this;_0x4c997f['project']=_0x86640f()[_0x4c26f3('0x1af0')](_0x523f01);function _0x2c0368(){var _0x3498af=_0x4c26f3;_0x4c997f[_0x3498af('0x1a69')]=[],_0x287392[_0x3498af('0x1a41')][_0x3498af('0x5ef')]({'id':_0x4c997f[_0x3498af('0xbf8')]['id']},{'notes':_0x4c997f['project'][_0x3498af('0xf77')],'description':_0x4c997f['project'][_0x3498af('0x1137')]})[_0x3498af('0x1376')][_0x3498af('0x21ad')](function(_0x1e3591){var _0x5b4175=_0x3498af;_0x4c3ca1[_0x5b4175('0xdb1')]({'title':_0x5b4175('0xc89'),'msg':_0x4c997f[_0x5b4175('0xbf8')][_0x5b4175('0x19fe')]?_0x4c997f['project'][_0x5b4175('0x19fe')]+'\x20has\x20been\x20updated!':''}),_0x5c6d93[_0x5b4175('0x1c24')](_0x1e3591);})['catch'](function(_0x26f4a8){var _0xf31208=_0x3498af;console[_0xf31208('0x2092')](_0x26f4a8),_0x4c997f[_0xf31208('0x1a69')]=_0x26f4a8[_0xf31208('0x11c2')]['errors']||[{'message':_0x26f4a8[_0xf31208('0x174f')](),'type':'api.squareProject.update'}];});}function _0x429791(){var _0x4e01b1=_0x4c26f3;_0x5c6d93[_0x4e01b1('0x1c24')]();}_0x4c997f[_0x4c26f3('0x167')]=_0x429791,_0x4c997f[_0x4c26f3('0x186f')]=_0x2c0368;}const _0x2a23d4=_0x48bcc5;_0x3af55e['$inject']=[_0x3877e3('0x1850'),_0x3877e3('0x1908'),_0x3877e3('0xc0f'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f')];function _0x3af55e(_0x4d2aac,_0x163a95,_0x6339ee,_0x479bb1,_0x50e2e1){var _0x446d34=_0x3877e3,_0x3d97cb=this;_0x3d97cb['projects']=_0x6339ee,_0x3d97cb['id']='',_0x3d97cb[_0x446d34('0x26c5')]=!![];function _0xb7523e(_0x4b035f){var _0x4d6419=_0x446d34;_0x3d97cb[_0x4d6419('0x1a69')]=[],_0x4b035f?(_0x4d2aac[_0x4d6419('0x1c24')](),_0x3d97cb[_0x4d6419('0x26c5')]?_0x479bb1[_0x4d6419('0xe5d')](_0x4d6419('0x11f')+_0x3d97cb['id'],'_blank'):_0x50e2e1['go'](_0x4d6419('0x18d7'),{'id':_0x3d97cb['id']})):_0x4d2aac[_0x4d6419('0x1c24')]();}_0x3d97cb[_0x446d34('0x167')]=_0xb7523e;}const _0x4798db=_0x3af55e;_0x1d77d7[_0x3877e3('0x1a81')]=['$mdDialog','toasty',_0x3877e3('0xccd'),_0x3877e3('0xbf8'),_0x3877e3('0xc0f'),_0x3877e3('0x13c1')];function _0x1d77d7(_0x30d05d,_0x4ad9c8,_0x44c784,_0x5cc4f4,_0x5636db,_0x3af048){var _0x4bfaf5=_0x3877e3,_0x982ad3=this;_0x982ad3[_0x4bfaf5('0xbf8')]=_0x5cc4f4,_0x982ad3['penalty']=0x0,_0x982ad3[_0x4bfaf5('0x1b9a')]=[],_0x982ad3[_0x4bfaf5('0x2629')]=[],_0x982ad3[_0x4bfaf5('0x167')]=_0x3ea613,_0x982ad3[_0x4bfaf5('0x909')]={'readOnly':![],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x4bfaf5('0x19fe'),'line1':'fullname','line2':[_0x4bfaf5('0x19fe'),'internal'],'line3':_0x4bfaf5('0x1195'),'labelAll':_0x3af048[_0x4bfaf5('0x183e')](_0x4bfaf5('0x26c0')),'labelSelected':_0x3af048[_0x4bfaf5('0x183e')]('CALLYSQUARE.SELECTED_USERS'),'transferCallback':function _0x5131c5(_0x349ae1,_0x197933){var _0xecc27c=_0x4bfaf5;_0x44c784[_0xecc27c('0x1a41')][_0x197933?'removeUsers':'addUsers']({'id':_0x982ad3[_0xecc27c('0xbf8')]['id'],'ids':_0x86640f()[_0xecc27c('0x26c3')](_0x349ae1,'id'),'penalty':_0x982ad3[_0xecc27c('0x1195')]||0x0})[_0xecc27c('0x1376')][_0xecc27c('0x21ad')](function(){var _0x3cb999=_0xecc27c;_0x4ad9c8['success']({'title':_0x3cb999('0x1c0a')+(_0x197933?'removed':_0x3cb999('0x106e')),'msg':_0x3cb999('0xbad')+(_0x197933?_0x3cb999('0x230c'):'added')+'!'}),!_0x197933&&_0x4ddc78();})[_0xecc27c('0x1c1d')](function(_0x28c7bb){var _0x9af82a=_0xecc27c;_0x4ad9c8[_0x9af82a('0x2092')]({'title':_0x28c7bb[_0x9af82a('0x209')]?_0x9af82a('0x22d')+_0x28c7bb[_0x9af82a('0x209')]+'\x20-\x20'+_0x28c7bb[_0x9af82a('0x1808')]:_0x9af82a('0x6f7'),'msg':_0x28c7bb[_0x9af82a('0x209')]?JSON[_0x9af82a('0x25e')](_0x28c7bb[_0x9af82a('0x11c2')]):_0x28c7bb[_0x9af82a('0x174f')]()});});}};function _0x4ddc78(){var _0x2d0e01=_0x4bfaf5;return _0x44c784[_0x2d0e01('0x1a41')][_0x2d0e01('0x3b7')]({'id':_0x982ad3[_0x2d0e01('0xbf8')]['id'],'fields':'id,name,fullname,internal','nolimit':!![],'role':_0x2d0e01('0x1775')})['$promise'][_0x2d0e01('0x21ad')](function(_0x4879a6){var _0x1c95b0=_0x2d0e01;return _0x982ad3[_0x1c95b0('0x2629')]=_0x4879a6[_0x1c95b0('0x1b33')]?_0x86640f()[_0x1c95b0('0x26c3')](_0x4879a6[_0x1c95b0('0x1b33')],function(_0x208467){return _0x208467;}):[],_0x982ad3[_0x1c95b0('0x909')]['selectedItems']=_0x982ad3['selectedItems'],_0x44c784[_0x1c95b0('0x1775')]['get']({'fields':_0x1c95b0('0xe5'),'role':'user','nolimit':!![]})['$promise'];})[_0x2d0e01('0x21ad')](function(_0xeb6b44){var _0x5961d5=_0x2d0e01;_0x982ad3['items']=_0xeb6b44[_0x5961d5('0x1b33')]?_0x86640f()[_0x5961d5('0x26c3')](_0xeb6b44['rows'],function(_0x320155){return _0x320155;}):[],_0x982ad3[_0x5961d5('0x909')][_0x5961d5('0x1b9a')]=_0x86640f()[_0x5961d5('0x1eab')](_0x982ad3[_0x5961d5('0x1b9a')],_0x982ad3[_0x5961d5('0x2629')],'id');})[_0x2d0e01('0x1c1d')](function(_0x2dc32a){var _0x530ae3=_0x2d0e01;_0x4ad9c8[_0x530ae3('0x2092')]({'title':_0x2dc32a[_0x530ae3('0x209')]?_0x530ae3('0x22d')+_0x2dc32a['status']+'\x20-\x20'+_0x2dc32a[_0x530ae3('0x1808')]:_0x530ae3('0x448'),'msg':_0x2dc32a[_0x530ae3('0x209')]?JSON['stringify'](_0x2dc32a['data']):_0x2dc32a['toString']()});});}function _0x3ea613(){_0x30d05d['hide']();}_0x4ddc78();}const _0x304564=_0x1d77d7;_0x4a502b['$inject']=[_0x3877e3('0x1850'),_0x3877e3('0x1908'),_0x3877e3('0xbf8'),'currentXML',_0x3877e3('0xccd'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f')];function _0x4a502b(_0xf4e8e1,_0x1b9ad3,_0x181acc,_0x27b96a,_0x4ab518,_0x4d0e43,_0x36336f){var _0x462a17=_0x3877e3,_0x5cb4bb=this;_0x5cb4bb[_0x462a17('0xbf8')]=angular['copy'](_0x181acc),_0x5cb4bb[_0x462a17('0xbf8')][_0x462a17('0x19fe')]+='_new',_0x5cb4bb[_0x462a17('0xbf8')]['preproduction']=_0x27b96a,_0x5cb4bb['newWindow']=!![];function _0x2cc5ba(){var _0x1a650a=_0x462a17;delete _0x5cb4bb[_0x1a650a('0xbf8')]['id'],_0x4ab518[_0x1a650a('0x1a41')][_0x1a650a('0x186f')](_0x5cb4bb[_0x1a650a('0xbf8')])[_0x1a650a('0x1376')][_0x1a650a('0x21ad')](function(_0x1d1c2c){var _0x20bde7=_0x1a650a;_0x1b9ad3[_0x20bde7('0xdb1')]({'title':_0x20bde7('0x1409'),'msg':_0x5cb4bb[_0x20bde7('0xbf8')]['name']?_0x5cb4bb[_0x20bde7('0xbf8')][_0x20bde7('0x19fe')]+'\x20has\x20been\x20created!':''}),_0xf4e8e1[_0x20bde7('0x1c24')](_0x1d1c2c),_0x5cb4bb['newWindow']?_0x4d0e43[_0x20bde7('0xe5d')](_0x20bde7('0x11f')+_0x1d1c2c['id'],_0x20bde7('0x1c1f')):_0x36336f['go']('app.callysquare.projects.edit',{'id':_0x1d1c2c['id']});})[_0x1a650a('0x1c1d')](function(_0x44db20){var _0x4da6f8=_0x1a650a;console[_0x4da6f8('0x2092')](_0x44db20),_0x5cb4bb[_0x4da6f8('0x1a69')]=_0x44db20['data'][_0x4da6f8('0x1a69')]||[{'message':_0x44db20[_0x4da6f8('0x174f')](),'type':'api.squareProject.save'}];});}function _0x52732d(){var _0x57e4b4=_0x462a17;_0xf4e8e1[_0x57e4b4('0x1c24')]();}_0x5cb4bb[_0x462a17('0x167')]=_0x52732d,_0x5cb4bb[_0x462a17('0x186f')]=_0x2cc5ba;}const _0x4de2ea=_0x4a502b,_0xd01137=_0x398308['p']+_0x3877e3('0x2213'),_0x57e72b=_0x398308['p']+_0x3877e3('0xa85'),_0x299966=_0x398308['p']+'src/js/modules/main/apps/callysquare/views/projects/edit/open/open.html/open-[chunkhash].html',_0x3794cb=_0x398308['p']+'src/js/modules/main/apps/callysquare/views/projects/edit/saveAs/saveAs.html/saveAs-[chunkhash].html',_0x4d8476=_0x398308['p']+_0x3877e3('0x20fb'),_0x47d464=_0x398308['p']+'src/js/modules/main/apps/callysquare/views/projects/edit/edit/edit.html/edit-[chunkhash].html',_0x2dbfb6=_0x398308['p']+_0x3877e3('0x11ae');_0x418988[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x243f'),_0x3877e3('0x1850'),'$q','$translate',_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0xbf8'),_0x3877e3('0x188e'),_0x3877e3('0x1593'),'queues',_0x3877e3('0xc64'),'variables',_0x3877e3('0x13c9'),_0x3877e3('0x1089'),_0x3877e3('0xc0f'),'intervals',_0x3877e3('0x21ab'),_0x3877e3('0x942'),_0x3877e3('0x1972'),_0x3877e3('0x102b'),_0x3877e3('0x1fc7'),_0x3877e3('0xab4'),'Auth'];var _0x33d534=window['EditorUi'],_0x5938cb=window[_0x3877e3('0x1f3d')];function _0x418988(_0x54d445,_0x24eaa8,_0x492d2d,_0x44f469,_0x1397ab,_0x362ca7,_0x46bcc4,_0xbd953b,_0x256bf9,_0x28bd55,_0x46c778,_0x27278d,_0x52f499,_0x368c6a,_0x5a56b5,_0x2351c2,_0x3b7c58,_0x5d7a22,_0x11e2f2,_0xd5e5e6,_0x4ad2f9,_0x2660d4,_0x31f5a0,_0x2714d9){var _0x5486cd=_0x3877e3,_0x24ac3f=this;_0x24ac3f[_0x5486cd('0x123f')]=_0x2714d9[_0x5486cd('0x15ed')](),_0x24ac3f[_0x5486cd('0xbf8')]=_0xbd953b||{},_0x24ac3f[_0x5486cd('0xab4')]=_0x31f5a0&&_0x31f5a0[_0x5486cd('0x205f')]==0x1?_0x31f5a0[_0x5486cd('0x1b33')][0x0]:null,_0x24ac3f['crudPermissions']=_0x2714d9[_0x5486cd('0x1778')](_0x24ac3f[_0x5486cd('0xab4')]?_0x24ac3f['userProfileSection'][_0x5486cd('0x5ed')]:null),_0x24ac3f[_0x5486cd('0x1081')]=_0x1fb499,_0x24ac3f[_0x5486cd('0x1b15')]=_0x1f573d,_0x24ac3f[_0x5486cd('0x2046')]=_0xe91dc9,_0x24ac3f[_0x5486cd('0x1340')]=_0x167122,_0x24ac3f[_0x5486cd('0x1d87')]=_0x42dc76,_0x24ac3f[_0x5486cd('0x1cb4')]=_0x518335,_0x24ac3f[_0x5486cd('0x1ce2')]=_0x28f34a,_0x24ac3f[_0x5486cd('0x2033')]=_0x1c5933,_0x24ac3f['editXML']=_0x38e56b,_0x24ac3f[_0x5486cd('0x2563')]=_0x144659,_0x24ac3f[_0x5486cd('0x23e4')]=_0x40befb;function _0x1fb499(){var _0x1c098a=_0x5486cd,_0x2d3ad4=new _0x33d534(_0x24ac3f,new _0x5938cb(),document[_0x1c098a('0x10a')](_0x1c098a('0x2248')));_0x2d3ad4['openString'](_0x24ac3f[_0x1c098a('0xbf8')][_0x1c098a('0x138')],_0x24ac3f[_0x1c098a('0xbf8')][_0x1c098a('0x19fe')],_0x24ac3f[_0x1c098a('0xbf8')]);}function _0xe91dc9(_0x4105fd,_0x2c1845){var _0x34805d=_0x5486cd;_0x492d2d['show']({'controller':_0x34805d('0x23c5'),'controllerAs':'vm','templateUrl':_0xd01137,'parent':angular[_0x34805d('0x1676')](_0x24eaa8['body']),'clickOutsideToClose':!![],'locals':{'users':_0x256bf9[_0x34805d('0x1b33')]||[],'trunks':_0x28bd55[_0x34805d('0x1b33')]||[],'queues':_0x46c778[_0x34805d('0x1b33')]||[],'sounds':_0x27278d[_0x34805d('0x1b33')]||[],'variables':_0x52f499[_0x34805d('0x1b33')]||[],'databases':_0x368c6a[_0x34805d('0x1b33')]||[],'contexts':_0x5a56b5[_0x34805d('0x1b33')]||[],'projects':_0x2351c2[_0x34805d('0x1b33')]||[],'intervals':_0x3b7c58['rows']||[],'mailAccounts':_0x5d7a22[_0x34805d('0x1b33')]||[],'smsAccounts':_0x4ad2f9[_0x34805d('0x1b33')]||[],'pauses':_0x2660d4[_0x34805d('0x1b33')]||[],'templates':_0x11e2f2['rows']||[],'lists':_0xd5e5e6[_0x34805d('0x1b33')]||[],'cell':_0x4105fd,'saveCallback':_0x2c1845,'crudPermissions':_0x24ac3f[_0x34805d('0x5ed')]}});}function _0x167122(_0x52f017){var _0x3cbae2=_0x5486cd;_0x492d2d[_0x3cbae2('0x853')]({'controller':_0x3cbae2('0x1610'),'controllerAs':'vm','templateUrl':_0x57e72b,'parent':angular[_0x3cbae2('0x1676')](_0x24eaa8[_0x3cbae2('0x2452')]),'clickOutsideToClose':!![],'locals':{'project':_0x52f017,'projects':_0x2351c2['rows'],'openFromEditor':!![],'license':null,'setting':null,'crudPermissions':_0x24ac3f[_0x3cbae2('0x5ed')]}});}function _0x42dc76(){var _0x3d09e9=_0x5486cd;_0x492d2d[_0x3d09e9('0x853')]({'controller':_0x3d09e9('0x270f'),'controllerAs':'vm','templateUrl':_0x299966,'parent':angular[_0x3d09e9('0x1676')](_0x24eaa8[_0x3d09e9('0x2452')]),'clickOutsideToClose':!![],'locals':{'projects':_0x2351c2[_0x3d09e9('0x1b33')]||[]}});}function _0x518335(_0x4752d6){var _0x21466f=_0x5486cd;_0x492d2d[_0x21466f('0x853')]({'controller':_0x21466f('0x674'),'controllerAs':'vm','templateUrl':_0x3794cb,'parent':angular[_0x21466f('0x1676')](_0x24eaa8[_0x21466f('0x2452')]),'clickOutsideToClose':!![],'locals':{'project':_0x24ac3f[_0x21466f('0xbf8')],'currentXML':_0x4752d6}})['then'](function(_0x320739){var _0x45c1d1=_0x21466f;_0x320739&&_0x2351c2[_0x45c1d1('0x1b33')]['push'](_0x320739);});}function _0x3553a8(){return _0x44f469(function(_0x1d5042,_0x5ad6c8){var _0x1016b3=a0_0x2e7f;return _0x46bcc4[_0x1016b3('0xab4')][_0x1016b3('0x595')]({'userProfileId':_0x24ac3f[_0x1016b3('0x123f')][_0x1016b3('0x1618')],'sectionId':0x3f4})[_0x1016b3('0x1376')]['then'](function(_0x466fa9){var _0xcb1706=_0x1016b3,_0x430f2f=_0x466fa9[_0xcb1706('0x1b33')]?_0x466fa9[_0xcb1706('0x1b33')][0x0]:null,_0x378a0a=_0x2714d9[_0xcb1706('0x1778')](_0x430f2f?_0x430f2f[_0xcb1706('0x5ed')]:null);_0x1d5042(_0x378a0a);})['catch'](function(_0x402b68){_0x5ad6c8(_0x402b68);});});}function _0x28f34a(_0x1b0425){var _0x46ebcb=_0x5486cd;return _0x3553a8()[_0x46ebcb('0x21ad')](function(_0xbd2fd3){var _0x46b105=_0x46ebcb;_0xbd2fd3[_0x46b105('0x6e2')]?_0x492d2d[_0x46b105('0x853')]({'controller':_0x46b105('0x1ec9'),'controllerAs':'vm','templateUrl':_0x170c0d,'parent':angular['element'](_0x24eaa8[_0x46b105('0x2452')]),'clickOutsideToClose':!![],'locals':{'variable':_0x1b0425,'variables':_0x52f499[_0x46b105('0x1b33')],'license':null,'setting':null,'crudPermissions':_0xbd2fd3}}):_0x362ca7[_0x46b105('0x231c')]({'title':_0x1397ab[_0x46b105('0x183e')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x1397ab[_0x46b105('0x183e')](_0x46b105('0x1fdc'))});})[_0x46ebcb('0x1c1d')](function(_0x3b520a){var _0x3ec58f=_0x46ebcb;_0x362ca7[_0x3ec58f('0x2092')]({'title':_0x3b520a[_0x3ec58f('0x209')]?_0x3ec58f('0x22d')+_0x3b520a[_0x3ec58f('0x209')]+_0x3ec58f('0xa99')+_0x3b520a[_0x3ec58f('0x1808')]:_0x3ec58f('0x1839'),'msg':_0x3b520a[_0x3ec58f('0x11c2')]?JSON[_0x3ec58f('0x25e')](_0x3b520a[_0x3ec58f('0x11c2')]):_0x3b520a['toString']()});});}function _0x1c5933(_0x8e140){var _0x375097=_0x5486cd;_0x492d2d[_0x375097('0x853')]({'controller':_0x375097('0x19db'),'controllerAs':'vm','templateUrl':_0x4d8476,'parent':angular['element'](_0x24eaa8[_0x375097('0x2452')]),'targetEvent':_0x8e140,'clickOutsideToClose':!![],'locals':{'project':_0x24ac3f['project']}})['then'](function(_0x531df8){var _0x3cbb9e=_0x375097;_0x531df8&&_0x86640f()[_0x3cbb9e('0xd0e')](_0x24ac3f['project'],_0x531df8);});}function _0x38e56b(_0x53f4f0,_0x13f18e){var _0x3e48e7=_0x5486cd;_0x492d2d[_0x3e48e7('0x853')]({'controller':_0x3e48e7('0x1343'),'controllerAs':'vm','templateUrl':_0x47d464,'parent':angular[_0x3e48e7('0x1676')](_0x24eaa8[_0x3e48e7('0x2452')]),'clickOutsideToClose':!![],'locals':{'currentXML':_0x53f4f0,'saveCallback':_0x13f18e}})[_0x3e48e7('0x21ad')](function(_0x4d011d){var _0x3ff943=_0x3e48e7;_0x4d011d&&(_0x24ac3f[_0x3ff943('0xbf8')][_0x3ff943('0x138')]=_0x4d011d);});}function _0x144659(_0x47b465){var _0x184bf4=_0x5486cd;_0x492d2d[_0x184bf4('0x853')]({'controller':'MxGraphImportXMLController','controllerAs':'vm','templateUrl':_0x2dbfb6,'parent':angular['element'](_0x24eaa8[_0x184bf4('0x2452')]),'clickOutsideToClose':!![],'locals':{'saveCallback':_0x47b465}})[_0x184bf4('0x21ad')](function(_0x166aaa){var _0x8a0ffc=_0x184bf4;_0x166aaa&&(_0x24ac3f[_0x8a0ffc('0xbf8')][_0x8a0ffc('0x138')]=_0x166aaa);});}function _0x1f573d(_0x1ca466,_0xf71616){var _0x3debfe=_0x5486cd,_0x48c099={'preproduction':_0x1ca466};_0xf71616&&(_0x48c099[_0x3debfe('0xe47')]=_0x1ca466),_0x46bcc4[_0x3debfe('0x1a41')][_0x3debfe('0x5ef')]({'id':_0x24ac3f[_0x3debfe('0xbf8')]['id']},_0x48c099)['$promise'][_0x3debfe('0x21ad')](function(_0x4aecdb){var _0xc5219=_0x3debfe;_0x362ca7[_0xc5219('0xdb1')]({'title':_0xc5219('0x11a1')+(_0xf71616?_0xc5219('0xa86'):_0xc5219('0x15b4'))+'!','msg':_0x24ac3f['project'][_0xc5219('0x19fe')]?_0x24ac3f[_0xc5219('0xbf8')][_0xc5219('0x19fe')]+_0xc5219('0x1aca')+(_0xf71616?_0xc5219('0xa86'):_0xc5219('0x15b4'))+'!':''}),_0x24ac3f[_0xc5219('0xbf8')][_0xc5219('0x138')]=_0x4aecdb[_0xc5219('0x138')];})[_0x3debfe('0x1c1d')](function(_0x22c1a6){var _0x8a4b59=_0x3debfe;_0x362ca7[_0x8a4b59('0x2092')]({'title':_0x22c1a6[_0x8a4b59('0x209')]?_0x8a4b59('0x22d')+_0x22c1a6[_0x8a4b59('0x209')]+_0x8a4b59('0xa99')+_0x22c1a6[_0x8a4b59('0x1808')]:'SYSTEM:GETsquareProject','msg':_0x22c1a6[_0x8a4b59('0x11c2')]?JSON[_0x8a4b59('0x25e')](_0x22c1a6['data']):_0x22c1a6[_0x8a4b59('0x174f')]()});});}function _0x40befb(){var _0x21049c=_0x5486cd;_0x54d445['go'](_0x21049c('0x1b63'),{},{'reload':_0x21049c('0x1b63')});}}const _0x16361b=_0x418988;_0x54ad28['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),_0x3877e3('0xc0f'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1850'),'$document',_0x3877e3('0x2313'),_0x3877e3('0x1908'),_0x3877e3('0x15bc')];function _0x54ad28(_0x5ac602,_0x3a017f,_0xb494e4,_0x19afde,_0x28864b,_0x452d35,_0x400774,_0x234881,_0x279263,_0x32a36c,_0x100c14,_0x29a85c,_0x450625){var _0x4d3095=_0x3877e3,_0x1a8318=this;_0x1a8318['currentUser']=_0x450625['getCurrentUser'](),_0x1a8318[_0x4d3095('0xc0f')]=_0x19afde||{'count':0x0,'rows':[]},_0x1a8318[_0x4d3095('0x758')]=_0x28864b,_0x1a8318[_0x4d3095('0xab4')]=_0x452d35&&_0x452d35[_0x4d3095('0x205f')]==0x1?_0x452d35[_0x4d3095('0x1b33')][0x0]:null,_0x1a8318['crudPermissions']=_0x450625[_0x4d3095('0x1778')](_0x1a8318[_0x4d3095('0xab4')]?_0x1a8318['userProfileSection'][_0x4d3095('0x5ed')]:null),_0x1a8318[_0x4d3095('0x1897')]='projects',_0x1a8318['listOrder']='',_0x1a8318['listOrderAsc']=null,_0x1a8318['selectedProjects']=[],_0x1a8318[_0x4d3095('0x77')]={'fields':_0x4d3095('0x2586'),'sort':_0x4d3095('0x33'),'limit':0xa,'page':0x1},_0x1a8318[_0x4d3095('0x1c88')]=_0x3f4b4f,_0x1a8318[_0x4d3095('0x2593')]=_0x4951e4,_0x1a8318[_0x4d3095('0xdb1')]=_0x5ca61f,_0x1a8318['getProjects']=_0x39fa19,_0x1a8318[_0x4d3095('0x1b08')]=_0x2ffb14,_0x1a8318[_0x4d3095('0x1379')]=_0x45d7ad,_0x1a8318[_0x4d3095('0x455')]=_0x4a688c,_0x1a8318[_0x4d3095('0x1414')]=_0x2f2227,_0x1a8318[_0x4d3095('0x1d94')]=_0x55152b,_0x1a8318[_0x4d3095('0x1656')]=_0x5ba5df;function _0x3f4b4f(_0x508457){var _0x2a4b83=_0x4d3095;_0x3a017f['go'](_0x2a4b83('0x18d7'),{'id':_0x508457['id'],'crudPermissions':_0x1a8318[_0x2a4b83('0x5ed')]});}function _0x4951e4(_0x487eae,_0x509573){var _0x18dbf9=_0x4d3095,_0x419b85=_0x279263['confirm']()[_0x18dbf9('0x4b4')](_0x18dbf9('0x14cf'))['htmlContent'](_0x18dbf9('0x622')+_0x487eae[_0x18dbf9('0x19fe')]+''+_0x18dbf9('0x25e0'))[_0x18dbf9('0x7a7')](_0x18dbf9('0xd70'))[_0x18dbf9('0x1e6d')](_0x509573)['ok']('OK')[_0x18dbf9('0x3b5')](_0x18dbf9('0x284b'));_0x279263[_0x18dbf9('0x853')](_0x419b85)['then'](function(){_0x45d7ad(_0x487eae);},function(){var _0x245e5a=_0x18dbf9;console['log'](_0x245e5a('0x284b'));});}var _0x250fd8=!![],_0x4b66a7=0x1;_0x5ac602[_0x4d3095('0x10e8')](_0x4d3095('0x1948'),function(_0x2183fe,_0x2b093e){var _0x4fbca0=_0x4d3095;_0x250fd8?_0x100c14(function(){_0x250fd8=![];}):(!_0x2b093e&&(_0x4b66a7=_0x1a8318[_0x4fbca0('0x77')][_0x4fbca0('0x2376')]),_0x2183fe!==_0x2b093e&&(_0x1a8318[_0x4fbca0('0x77')][_0x4fbca0('0x2376')]=0x1),!_0x2183fe&&(_0x1a8318['query'][_0x4fbca0('0x2376')]=_0x4b66a7),_0x1a8318[_0x4fbca0('0xde')]());});function _0x5ca61f(_0x547192){var _0x195f06=_0x4d3095;_0x1a8318[_0x195f06('0xc0f')]=_0x547192||{'count':0x0,'rows':[]};}function _0x39fa19(){var _0x31e3f7=_0x4d3095;_0x1a8318[_0x31e3f7('0x77')]['offset']=(_0x1a8318[_0x31e3f7('0x77')][_0x31e3f7('0x2376')]-0x1)*_0x1a8318['query']['limit'],_0x450625[_0x31e3f7('0x21de')](_0x31e3f7('0x1bd8'))?_0x1a8318[_0x31e3f7('0x71b')]=_0x400774['squareProject'][_0x31e3f7('0x595')](_0x1a8318[_0x31e3f7('0x77')],_0x5ca61f)['$promise']:(_0x1a8318['query']['id']=_0x1a8318['userProfile']['id'],_0x1a8318['query'][_0x31e3f7('0x26ad')]=_0x31e3f7('0x2722'),_0x1a8318[_0x31e3f7('0x71b')]=_0x400774[_0x31e3f7('0x758')][_0x31e3f7('0x321')](_0x1a8318['query'],_0x5ca61f)[_0x31e3f7('0x1376')]);}function _0x2ffb14(_0x216832,_0x3ffc0b){var _0x59b06d=_0x4d3095;_0x279263['show']({'controller':_0x59b06d('0x1610'),'controllerAs':'vm','templateUrl':_0x57e72b,'parent':angular[_0x59b06d('0x1676')](_0x32a36c[_0x59b06d('0x2452')]),'targetEvent':_0x216832,'clickOutsideToClose':!![],'locals':{'project':_0x3ffc0b,'projects':_0x1a8318[_0x59b06d('0xc0f')][_0x59b06d('0x1b33')],'openFromEditor':null,'setting':null,'crudPermissions':_0x1a8318[_0x59b06d('0x5ed')]}});}function _0x45d7ad(_0x2e5dc1){var _0x4ac2fe=_0x4d3095;_0x400774[_0x4ac2fe('0x1a41')][_0x4ac2fe('0x1164')]({'id':_0x2e5dc1['id']})[_0x4ac2fe('0x1376')]['then'](function(){var _0x59937d=_0x4ac2fe;_0x86640f()[_0x59937d('0x16a2')](_0x1a8318[_0x59937d('0xc0f')][_0x59937d('0x1b33')],{'id':_0x2e5dc1['id']}),_0x1a8318[_0x59937d('0xc0f')][_0x59937d('0x205f')]-=0x1,!_0x1a8318[_0x59937d('0xc0f')]['rows'][_0x59937d('0x577')]&&_0x1a8318[_0x59937d('0xde')](),_0x29a85c[_0x59937d('0xdb1')]({'title':_0x59937d('0x1232'),'msg':_0x2e5dc1['name']?_0x2e5dc1['name']+_0x59937d('0xb4a'):''});})['catch'](function(_0x2e6b5c){var _0x4167ed=_0x4ac2fe;if(_0x2e6b5c[_0x4167ed('0x11c2')]&&_0x2e6b5c['data']['errors']&&_0x2e6b5c[_0x4167ed('0x11c2')][_0x4167ed('0x1a69')]['length']){_0x1a8318['errors']=_0x2e6b5c[_0x4167ed('0x11c2')]['errors']||[{'message':_0x2e6b5c['toString'](),'type':_0x4167ed('0x27bb')}];for(var _0xeda62=0x0;_0xeda62<_0x2e6b5c[_0x4167ed('0x11c2')][_0x4167ed('0x1a69')][_0x4167ed('0x577')];_0xeda62++){_0x29a85c[_0x4167ed('0x2092')]({'title':_0x2e6b5c[_0x4167ed('0x11c2')][_0x4167ed('0x1a69')][_0xeda62]['type'],'msg':_0x2e6b5c[_0x4167ed('0x11c2')][_0x4167ed('0x1a69')][_0xeda62][_0x4167ed('0x1224')]});}}else _0x29a85c[_0x4167ed('0x2092')]({'title':_0x2e6b5c[_0x4167ed('0x209')]?_0x4167ed('0x22d')+_0x2e6b5c['status']+_0x4167ed('0xa99')+_0x2e6b5c[_0x4167ed('0x1808')]:'api.project.delete','msg':_0x2e6b5c[_0x4167ed('0x11c2')]?JSON[_0x4167ed('0x25e')](_0x2e6b5c[_0x4167ed('0x11c2')]['message']):_0x2e6b5c[_0x4167ed('0x1224')]||_0x2e6b5c[_0x4167ed('0x174f')]()});});}function _0x4a688c(){var _0x5af345=angular['copy'](_0x1a8318['selectedProjects']);return _0x1a8318['selectedProjects']=[],_0x5af345;}function _0x2f2227(_0x218757){var _0x7e2db7=_0x4d3095,_0x28d60d=_0x279263['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20projects?')['htmlContent'](_0x7e2db7('0x622')+_0x1a8318['selectedProjects'][_0x7e2db7('0x577')]+'\x20selected'+_0x7e2db7('0x25e0'))['ariaLabel']('delete\x20Projects')[_0x7e2db7('0x1e6d')](_0x218757)['ok']('OK')[_0x7e2db7('0x3b5')]('CANCEL');_0x279263[_0x7e2db7('0x853')](_0x28d60d)['then'](function(){var _0x442a13=_0x7e2db7;_0x1a8318[_0x442a13('0xa34')][_0x442a13('0x1a52')](function(_0x20e9c1){_0x45d7ad(_0x20e9c1);}),_0x1a8318[_0x442a13('0xa34')]=[];});}function _0x55152b(){var _0x154f9b=_0x4d3095;_0x1a8318[_0x154f9b('0xa34')]=[];}function _0x5ba5df(){var _0x555675=_0x4d3095;_0x1a8318[_0x555675('0xa34')]=_0x1a8318[_0x555675('0xc0f')][_0x555675('0x1b33')];}}const _0x125616=_0x54ad28;_0x94e56c['$inject']=[_0x3877e3('0xd2c')];function _0x94e56c(_0x5ac61e){var _0x40e14a=_0x3877e3;_0x5ac61e[_0x40e14a('0x27e')](_0x40e14a('0x1b63'),{'url':_0x40e14a('0x7ab'),'views':{'content@app':{'templateUrl':_0x42e753,'controller':_0x40e14a('0x1270')}},'resolve':{'projects':[_0x40e14a('0x354'),_0x40e14a('0x15bc'),function _0x26632b(_0xbc9025,_0x4024d3){var _0x5b912=_0x40e14a;return _0x4024d3['hasRole'](_0x5b912('0x1bd8'))?_0xbc9025['resolve'](_0x5b912('0x392'),{'fields':'id,name,description,notes','sort':_0x5b912('0x19fe'),'limit':0xa,'offset':0x0}):_0xbc9025[_0x5b912('0x8ac')](_0x5b912('0x52f'),{'id':_0x4024d3[_0x5b912('0x15ed')]()[_0x5b912('0x1618')],'section':_0x5b912('0x2722'),'fields':'id,name,description,notes','sort':_0x5b912('0x19fe'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x40e14a('0x354'),_0x40e14a('0x15bc'),function _0xec5c95(_0x1d8f92,_0x27dbd2){var _0x1da33d=_0x40e14a;return _0x1d8f92['resolve'](_0x1da33d('0x1e1d'),{'fields':'id,name,crudPermissions','id':_0x27dbd2[_0x1da33d('0x15ed')]()[_0x1da33d('0x1618')]});}],'userProfileSection':[_0x40e14a('0x354'),_0x40e14a('0x15bc'),function _0x3aee40(_0x1d0bb6,_0x30446f){var _0x51caf1=_0x40e14a;return _0x1d0bb6['resolve'](_0x51caf1('0x222f'),{'fields':_0x51caf1('0x1852'),'userProfileId':_0x30446f[_0x51caf1('0x15ed')]()[_0x51caf1('0x1618')],'sectionId':0x44f});}]},'authenticate':!![],'permissionId':0x44f,'bodyClass':_0x40e14a('0x100b')})[_0x40e14a('0x27e')]('app.callysquare.projects.edit',{'url':_0x40e14a('0x1016'),'views':{'content@app':{'templateUrl':_0x5012df,'controller':_0x40e14a('0x27ce')}},'params':{'crudPermissions':undefined},'resolve':{'project':[_0x40e14a('0x354'),'$stateParams',function _0x1d3057(_0x535168,_0x4d851c){var _0x12e60c=_0x40e14a;return _0x535168['resolve'](_0x12e60c('0x392'),{'id':_0x4d851c['id']});}],'users':[_0x40e14a('0x354'),_0x40e14a('0x15bc'),function _0x52abde(_0x42e4e8,_0x529e60){var _0x7105e6=_0x40e14a;return _0x529e60['hasRole'](_0x7105e6('0x1bd8'))?_0x42e4e8[_0x7105e6('0x8ac')](_0x7105e6('0x1913'),{'fields':_0x7105e6('0x20d4'),'sort':_0x7105e6('0x19fe'),'nolimit':!![]}):_0x42e4e8[_0x7105e6('0x8ac')](_0x7105e6('0x52f'),{'id':_0x529e60[_0x7105e6('0x15ed')]()['userProfileId'],'section':_0x7105e6('0x6cc'),'mergeResources':!![],'fields':_0x7105e6('0x20d4'),'sort':_0x7105e6('0x19fe'),'nolimit':!![]});}],'trunks':[_0x40e14a('0x354'),_0x40e14a('0x15bc'),function _0x502e8f(_0x5a9869,_0x176e5f){var _0xf0122f=_0x40e14a;return _0x176e5f['hasRole']('admin')?_0x5a9869[_0xf0122f('0x8ac')](_0xf0122f('0xfe0'),{'fields':_0xf0122f('0x1aa8'),'sort':'name','nolimit':!![]}):_0x5a9869['resolve'](_0xf0122f('0x52f'),{'id':_0x176e5f[_0xf0122f('0x15ed')]()['userProfileId'],'section':_0xf0122f('0x616'),'fields':_0xf0122f('0x1aa8'),'sort':_0xf0122f('0x19fe'),'nolimit':!![]});}],'queues':[_0x40e14a('0x354'),_0x40e14a('0x15bc'),function _0x1c451a(_0x357d8f,_0x4e54bf){var _0x5d24fc=_0x40e14a;return _0x4e54bf['hasRole'](_0x5d24fc('0x1bd8'))?_0x357d8f[_0x5d24fc('0x8ac')](_0x5d24fc('0x10bb'),{'type':'inbound','fields':_0x5d24fc('0x1aa8'),'sort':_0x5d24fc('0x19fe'),'nolimit':!![]}):_0x357d8f[_0x5d24fc('0x8ac')]('userProfile@getResources',{'id':_0x4e54bf[_0x5d24fc('0x15ed')]()[_0x5d24fc('0x1618')],'section':_0x5d24fc('0x1c14'),'type':_0x5d24fc('0x923'),'fields':_0x5d24fc('0x1aa8'),'sort':_0x5d24fc('0x19fe'),'nolimit':!![]});}],'sounds':[_0x40e14a('0x354'),_0x40e14a('0x15bc'),function _0x3dacb2(_0x3dec64,_0x4070d3){var _0x3ed56d=_0x40e14a;return _0x4070d3[_0x3ed56d('0x21de')]('admin')?_0x3dec64[_0x3ed56d('0x8ac')](_0x3ed56d('0x224c'),{'fields':'id,name','sort':_0x3ed56d('0x19fe'),'nolimit':!![]}):_0x3dec64['resolve']('userProfile@getResources',{'id':_0x4070d3[_0x3ed56d('0x15ed')]()[_0x3ed56d('0x1618')],'section':_0x3ed56d('0x4a4'),'fields':_0x3ed56d('0x1aa8'),'sort':'name','nolimit':!![]});}],'variables':[_0x40e14a('0x354'),'Auth',function _0x224c97(_0x27b0ee,_0x354e86){var _0x55388f=_0x40e14a;return _0x354e86[_0x55388f('0x21de')]('admin')?_0x27b0ee[_0x55388f('0x8ac')](_0x55388f('0x1a8e'),{'fields':_0x55388f('0x1aa8'),'sort':_0x55388f('0x19fe'),'nolimit':!![]}):_0x27b0ee[_0x55388f('0x8ac')](_0x55388f('0x52f'),{'id':_0x354e86[_0x55388f('0x15ed')]()[_0x55388f('0x1618')],'section':_0x55388f('0x103a'),'fields':_0x55388f('0x1aa8'),'sort':_0x55388f('0x19fe'),'nolimit':!![]});}],'databases':[_0x40e14a('0x354'),_0x40e14a('0x15bc'),function _0x44cfc2(_0x45a32c,_0x2c81fd){var _0x14729f=_0x40e14a;return _0x2c81fd[_0x14729f('0x21de')]('admin')?_0x45a32c[_0x14729f('0x8ac')](_0x14729f('0x2242'),{'fields':_0x14729f('0x1aa8'),'sort':_0x14729f('0x19fe'),'nolimit':!![]}):_0x45a32c[_0x14729f('0x8ac')](_0x14729f('0x52f'),{'id':_0x2c81fd[_0x14729f('0x15ed')]()[_0x14729f('0x1618')],'section':_0x14729f('0xa6d'),'fields':'id,name','sort':_0x14729f('0x19fe'),'nolimit':!![]});}],'projects':[_0x40e14a('0x354'),_0x40e14a('0x15bc'),function _0x2f2e78(_0xf3ba79,_0x4f9bce){var _0x5c34b2=_0x40e14a;return _0x4f9bce[_0x5c34b2('0x21de')](_0x5c34b2('0x1bd8'))?_0xf3ba79[_0x5c34b2('0x8ac')](_0x5c34b2('0x392'),{'fields':'id,name','sort':_0x5c34b2('0x19fe'),'nolimit':!![]}):_0xf3ba79['resolve'](_0x5c34b2('0x52f'),{'id':_0x4f9bce[_0x5c34b2('0x15ed')]()[_0x5c34b2('0x1618')],'section':_0x5c34b2('0x2722'),'fields':'id,name','sort':_0x5c34b2('0x19fe'),'nolimit':!![]});}],'contexts':['apiResolver',_0x40e14a('0x15bc'),function _0x3c1a6b(_0xd482d1,_0x599554){var _0x3365bc=_0x40e14a;return _0x599554[_0x3365bc('0x21de')](_0x3365bc('0x1bd8'))?_0xd482d1[_0x3365bc('0x8ac')](_0x3365bc('0x497'),{'fields':_0x3365bc('0x1aa8'),'sort':_0x3365bc('0x19fe'),'nolimit':!![]}):_0xd482d1[_0x3365bc('0x8ac')]('userProfile@getResources',{'id':_0x599554[_0x3365bc('0x15ed')]()[_0x3365bc('0x1618')],'section':'Contexts','fields':'id,name','sort':_0x3365bc('0x19fe'),'nolimit':!![]});}],'intervals':['apiResolver',_0x40e14a('0x15bc'),function _0x49a54f(_0xa34eff,_0x381ffe){var _0x563186=_0x40e14a;return _0x381ffe[_0x563186('0x21de')](_0x563186('0x1bd8'))?_0xa34eff['resolve'](_0x563186('0xf01'),{'fields':'id,name,IntervalId','sort':'name','nolimit':!![]}):_0xa34eff[_0x563186('0x8ac')]('userProfile@getResources',{'id':_0x381ffe['getCurrentUser']()[_0x563186('0x1618')],'section':_0x563186('0x148c'),'fields':_0x563186('0x1'),'sort':'name','nolimit':!![]});}],'mailAccounts':[_0x40e14a('0x354'),_0x40e14a('0x15bc'),function _0x3582bf(_0x2d8e8c,_0xed4da1){var _0x2af43b=_0x40e14a;return _0xed4da1[_0x2af43b('0x21de')](_0x2af43b('0x1bd8'))?_0x2d8e8c['resolve'](_0x2af43b('0x1c56'),{'fields':_0x2af43b('0x1aa8'),'sort':_0x2af43b('0x19fe'),'nolimit':!![]}):_0x2d8e8c[_0x2af43b('0x8ac')]('userProfile@getResources',{'id':_0xed4da1[_0x2af43b('0x15ed')]()['userProfileId'],'section':_0x2af43b('0x230d'),'fields':_0x2af43b('0x1aa8'),'sort':_0x2af43b('0x19fe'),'nolimit':!![]});}],'templates':[_0x40e14a('0x354'),'Auth',function _0x1b8108(_0xb3454e,_0x25bc59){var _0x41c870=_0x40e14a;return _0x25bc59[_0x41c870('0x21de')]('admin')?_0xb3454e[_0x41c870('0x8ac')](_0x41c870('0x2406'),{'fields':_0x41c870('0x1aa8'),'sort':_0x41c870('0x19fe'),'nolimit':!![]}):_0xb3454e[_0x41c870('0x8ac')](_0x41c870('0x52f'),{'id':_0x25bc59[_0x41c870('0x15ed')]()['userProfileId'],'section':'Templates','fields':_0x41c870('0x1aa8'),'sort':'name','nolimit':!![]});}],'lists':[_0x40e14a('0x354'),'Auth',function _0x561330(_0x53239b,_0x53b165){var _0x525a74=_0x40e14a;return _0x53b165[_0x525a74('0x21de')](_0x525a74('0x1bd8'))?_0x53239b[_0x525a74('0x8ac')](_0x525a74('0x265c'),{'fields':'id,name','sort':'name','nolimit':!![]}):_0x53239b[_0x525a74('0x8ac')](_0x525a74('0x52f'),{'id':_0x53b165[_0x525a74('0x15ed')]()['userProfileId'],'section':'Lists','fields':'id,name','sort':_0x525a74('0x19fe'),'nolimit':!![]});}],'smsAccounts':['apiResolver',_0x40e14a('0x15bc'),function _0x39bf62(_0x5922bb,_0x3728de){var _0x299644=_0x40e14a;return _0x3728de[_0x299644('0x21de')](_0x299644('0x1bd8'))?_0x5922bb[_0x299644('0x8ac')]('smsAccount@get',{'fields':'id,name','sort':_0x299644('0x19fe'),'nolimit':!![]}):_0x5922bb[_0x299644('0x8ac')](_0x299644('0x52f'),{'id':_0x3728de[_0x299644('0x15ed')]()[_0x299644('0x1618')],'section':_0x299644('0x1fed'),'fields':_0x299644('0x1aa8'),'sort':_0x299644('0x19fe'),'nolimit':!![]});}],'pauses':['apiResolver',_0x40e14a('0x15bc'),function _0x38dd1e(_0x2ff03f,_0x317343){var _0x31e82c=_0x40e14a;return _0x317343[_0x31e82c('0x21de')](_0x31e82c('0x1bd8'))?_0x2ff03f[_0x31e82c('0x8ac')](_0x31e82c('0x12e0'),{'fields':_0x31e82c('0x1aa8'),'sort':_0x31e82c('0x19fe'),'nolimit':!![]}):_0x2ff03f[_0x31e82c('0x8ac')](_0x31e82c('0x52f'),{'id':_0x317343['getCurrentUser']()[_0x31e82c('0x1618')],'section':'Pauses','fields':_0x31e82c('0x1aa8'),'sort':_0x31e82c('0x19fe'),'nolimit':!![]});}],'userProfileSection':[_0x40e14a('0x354'),_0x40e14a('0x15bc'),function _0x20497e(_0xf3c991,_0x4e07c7){var _0x91a091=_0x40e14a;return _0xf3c991[_0x91a091('0x8ac')](_0x91a091('0x222f'),{'fields':_0x91a091('0x1852'),'userProfileId':_0x4e07c7['getCurrentUser']()[_0x91a091('0x1618')],'sectionId':0x44f});}]},'authenticate':!![],'permissionId':0x44f,'bodyClass':_0x40e14a('0x100b')});}angular[_0x3877e3('0x20d5')](_0x3877e3('0x1b63'),[])[_0x3877e3('0x13')](_0x94e56c)[_0x3877e3('0x1d5a')](_0x3877e3('0x1610'),_0x5a0aad)[_0x3877e3('0x1d5a')](_0x3877e3('0x23c5'),_0x2a8258)[_0x3877e3('0x921')](_0x3877e3('0x1eff'),_0x5bdf4c)[_0x3877e3('0x1551')](_0x3877e3('0xfd3'),_0x512326)['factory']('ispeechAsrLanguage',_0x7f6b3b)[_0x3877e3('0x1551')](_0x3877e3('0x32f'),_0x1e08fb)[_0x3877e3('0x1551')](_0x3877e3('0x1328'),_0x2f6919)[_0x3877e3('0x1551')](_0x3877e3('0x15d5'),_0x458f58)[_0x3877e3('0x1551')](_0x3877e3('0x845'),_0x3db876)['factory'](_0x3877e3('0x1a5c'),_0x5cb4ad)[_0x3877e3('0x1551')](_0x3877e3('0xefa'),_0x3f5bed)[_0x3877e3('0x1551')]('awsLexRegion',_0x5bafc8)[_0x3877e3('0x1551')]('dialogFlowLanguage',_0x230130)[_0x3877e3('0x1d5a')](_0x3877e3('0x1343'),_0x495cb5)[_0x3877e3('0x1d5a')](_0x3877e3('0x361'),_0x4e5a62)['controller'](_0x3877e3('0x19db'),_0x2a23d4)['controller'](_0x3877e3('0x270f'),_0x4798db)[_0x3877e3('0x1d5a')](_0x3877e3('0x2532'),_0x304564)['controller'](_0x3877e3('0x674'),_0x4de2ea)[_0x3877e3('0x1d5a')](_0x3877e3('0x591'),_0x16361b)['controller']('ProjectsController',_0x125616);const _0x51cdef=_0x398308['p']+'src/js/modules/main/apps/callysquare/views/odbcs/odbcs.html/odbcs-[chunkhash].html',_0x2b4e76=_0x398308['p']+_0x3877e3('0xcb1');_0x3925c2[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0xa9f'),'$location',_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),'odbcs',_0x3877e3('0x212'),_0x3877e3('0xccd'),'Auth','license',_0x3877e3('0x21e'),'crudPermissions'];function _0x3925c2(_0x2a3348,_0x14af72,_0x2460a3,_0x38f19a,_0x5e853a,_0x58538c,_0xefb5f5,_0x5b07d3,_0x3a38ed,_0x320d22,_0x2104e4,_0x53d69c,_0xaff1fb,_0x3b7977){var _0x4ae581=_0x3877e3,_0xaa8440=this;_0xaa8440['currentUser']=_0x2104e4[_0x4ae581('0x15ed')](),_0xaa8440[_0x4ae581('0x1a69')]=[],_0xaa8440['setting']=_0xaff1fb,_0xaa8440[_0x4ae581('0x2ff')]=_0x53d69c,_0xaa8440[_0x4ae581('0x5ed')]=_0x3b7977,_0xaa8440[_0x4ae581('0x126a')]={},_0xaa8440['passwordPattern']=_0xaa8440[_0x4ae581('0x21e')]&&_0xaa8440[_0x4ae581('0x21e')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xaa8440[_0x4ae581('0x4b4')]=_0x4ae581('0x1b0f'),_0xaa8440['odbc']=angular['copy'](_0x3a38ed),_0xaa8440[_0x4ae581('0x1885')]=_0x5b07d3,_0xaa8440[_0x4ae581('0x9a6')]=![];!_0xaa8440[_0x4ae581('0x212')]&&(_0xaa8440[_0x4ae581('0x212')]={},_0xaa8440[_0x4ae581('0x4b4')]=_0x4ae581('0xc22'),_0xaa8440[_0x4ae581('0x9a6')]=!![]);_0xaa8440[_0x4ae581('0x4b1')]=_0x222cf9,_0xaa8440['saveOdbc']=_0x242e45,_0xaa8440[_0x4ae581('0x147a')]=_0x201bcc,_0xaa8440[_0x4ae581('0x279')]=_0xa325b3,_0xaa8440[_0x4ae581('0x167')]=_0x1a3343;function _0x222cf9(){var _0x17d404=_0x4ae581;_0xaa8440[_0x17d404('0x1a69')]=[],_0x320d22[_0x17d404('0xc45')][_0x17d404('0x186f')](_0xaa8440[_0x17d404('0x212')])[_0x17d404('0x1376')][_0x17d404('0x21ad')](function(_0x62d78e){var _0x403a2d=_0x17d404;_0xaa8440[_0x403a2d('0x1885')][_0x403a2d('0xd0c')](_0x62d78e[_0x403a2d('0x3bc')]()),_0xefb5f5['success']({'title':_0x403a2d('0x24ea'),'msg':_0xaa8440['odbc'][_0x403a2d('0x19fe')]?_0xaa8440[_0x403a2d('0x212')]['name']+_0x403a2d('0x1694'):''}),_0x1a3343(_0x62d78e);})[_0x17d404('0x1c1d')](function(_0xac097b){var _0x1268d7=_0x17d404;if(_0xac097b[_0x1268d7('0x11c2')]&&_0xac097b[_0x1268d7('0x11c2')][_0x1268d7('0x1a69')]&&_0xac097b[_0x1268d7('0x11c2')][_0x1268d7('0x1a69')][_0x1268d7('0x577')]){_0xaa8440['errors']=_0xac097b[_0x1268d7('0x11c2')]['errors']||[{'message':_0xac097b[_0x1268d7('0x174f')](),'type':_0x1268d7('0x25bf')}];for(var _0x41ce5e=0x0;_0x41ce5e<_0xac097b[_0x1268d7('0x11c2')][_0x1268d7('0x1a69')][_0x1268d7('0x577')];_0x41ce5e+=0x1){_0xefb5f5[_0x1268d7('0x2092')]({'title':_0xac097b['data'][_0x1268d7('0x1a69')][_0x41ce5e][_0x1268d7('0x7fa')],'msg':_0xac097b[_0x1268d7('0x11c2')][_0x1268d7('0x1a69')][_0x41ce5e][_0x1268d7('0x1224')]});}}else _0xefb5f5[_0x1268d7('0x2092')]({'title':_0xac097b[_0x1268d7('0x209')]?_0x1268d7('0x22d')+_0xac097b['status']+'\x20-\x20'+_0xac097b['statusText']:_0x1268d7('0x25bf'),'msg':_0xac097b['data']?JSON[_0x1268d7('0x25e')](_0xac097b['data']['message']):_0xac097b[_0x1268d7('0x174f')]()});});}function _0x242e45(){var _0x4d3a80=_0x4ae581;_0xaa8440[_0x4d3a80('0x1a69')]=[],_0x320d22[_0x4d3a80('0xc45')][_0x4d3a80('0x5ef')]({'id':_0xaa8440['odbc']['id']},_0xaa8440[_0x4d3a80('0x212')])[_0x4d3a80('0x1376')][_0x4d3a80('0x21ad')](function(_0x399690){var _0x2fe82c=_0x4d3a80,_0x3fb3d5=_0x86640f()[_0x2fe82c('0x1d2e')](_0xaa8440[_0x2fe82c('0x1885')],{'id':_0x399690['id']});_0x3fb3d5&&_0x86640f()[_0x2fe82c('0xd0e')](_0x3fb3d5,_0x86640f()[_0x2fe82c('0xc50')](_0x399690[_0x2fe82c('0x3bc')](),_0x86640f()['keys'](_0x3fb3d5))),_0xefb5f5['success']({'title':_0x2fe82c('0x14d9'),'msg':_0xaa8440[_0x2fe82c('0x212')][_0x2fe82c('0x19fe')]?_0xaa8440[_0x2fe82c('0x212')]['name']+'\x20has\x20been\x20saved!':''}),_0x1a3343(_0x399690);})[_0x4d3a80('0x1c1d')](function(_0x46e778){var _0x313d47=_0x4d3a80;if(_0x46e778[_0x313d47('0x11c2')]&&_0x46e778[_0x313d47('0x11c2')][_0x313d47('0x1a69')]&&_0x46e778[_0x313d47('0x11c2')][_0x313d47('0x1a69')]['length']){_0xaa8440[_0x313d47('0x1a69')]=_0x46e778[_0x313d47('0x11c2')][_0x313d47('0x1a69')]||[{'message':_0x46e778[_0x313d47('0x174f')](),'type':_0x313d47('0x21a7')}];for(var _0x2d7ffd=0x0;_0x2d7ffd<_0x46e778['data'][_0x313d47('0x1a69')][_0x313d47('0x577')];_0x2d7ffd++){_0xefb5f5[_0x313d47('0x2092')]({'title':_0x46e778['data']['errors'][_0x2d7ffd][_0x313d47('0x7fa')],'msg':_0x46e778[_0x313d47('0x11c2')][_0x313d47('0x1a69')][_0x2d7ffd][_0x313d47('0x1224')]});}}else _0xefb5f5[_0x313d47('0x2092')]({'title':_0x46e778[_0x313d47('0x209')]?_0x313d47('0x22d')+_0x46e778[_0x313d47('0x209')]+_0x313d47('0xa99')+_0x46e778['statusText']:_0x313d47('0x21a7'),'msg':_0x46e778[_0x313d47('0x11c2')]?JSON[_0x313d47('0x25e')](_0x46e778['data'][_0x313d47('0x1224')]):_0x46e778[_0x313d47('0x174f')]()});});}function _0x201bcc(_0x1c1882){var _0x3b2466=_0x4ae581;_0xaa8440['errors']=[];var _0x2fd47a=_0x38f19a[_0x3b2466('0xa33')]()[_0x3b2466('0x4b4')](_0x3b2466('0x196b'))[_0x3b2466('0x13fb')]('The\x20odbc\x20will\x20be\x20deleted.')['ariaLabel'](_0x3b2466('0x26b'))['ok'](_0x3b2466('0xbfd'))[_0x3b2466('0x3b5')]('Cancel')[_0x3b2466('0x1e6d')](_0x1c1882);_0x38f19a['show'](_0x2fd47a)[_0x3b2466('0x21ad')](function(){var _0x3a733c=_0x3b2466;_0x320d22[_0x3a733c('0xc45')][_0x3a733c('0x1164')]({'id':_0xaa8440[_0x3a733c('0x212')]['id']})[_0x3a733c('0x1376')]['then'](function(){var _0xf30e87=_0x3a733c;_0x86640f()['remove'](_0xaa8440[_0xf30e87('0x1885')],{'id':_0xaa8440[_0xf30e87('0x212')]['id']}),_0xefb5f5[_0xf30e87('0xdb1')]({'title':_0xf30e87('0x25a6'),'msg':(_0xaa8440[_0xf30e87('0x212')][_0xf30e87('0x19fe')]||_0xf30e87('0x212'))+_0xf30e87('0xb4a')}),_0x1a3343(_0xaa8440[_0xf30e87('0x212')]);})[_0x3a733c('0x1c1d')](function(_0x343bee){var _0x5c3b73=_0x3a733c;if(_0x343bee[_0x5c3b73('0x11c2')]&&_0x343bee[_0x5c3b73('0x11c2')][_0x5c3b73('0x1a69')]&&_0x343bee[_0x5c3b73('0x11c2')][_0x5c3b73('0x1a69')][_0x5c3b73('0x577')]){_0xaa8440['errors']=_0x343bee[_0x5c3b73('0x11c2')][_0x5c3b73('0x1a69')]||[{'message':_0x343bee['toString'](),'type':_0x5c3b73('0x16c0')}];for(var _0x1b702e=0x0;_0x1b702e<_0x343bee[_0x5c3b73('0x11c2')]['errors'][_0x5c3b73('0x577')];_0x1b702e++){_0xefb5f5['error']({'title':_0x343bee['data'][_0x5c3b73('0x1a69')][_0x1b702e]['type'],'msg':_0x343bee[_0x5c3b73('0x11c2')][_0x5c3b73('0x1a69')][_0x1b702e][_0x5c3b73('0x1224')]});}}else _0xefb5f5[_0x5c3b73('0x2092')]({'title':_0x343bee[_0x5c3b73('0x209')]?'API:'+_0x343bee[_0x5c3b73('0x209')]+'\x20-\x20'+_0x343bee[_0x5c3b73('0x1808')]:_0x5c3b73('0x16c0'),'msg':_0x343bee[_0x5c3b73('0x11c2')]?JSON[_0x5c3b73('0x25e')](_0x343bee[_0x5c3b73('0x11c2')][_0x5c3b73('0x1224')]):_0x343bee[_0x5c3b73('0x1224')]||_0x343bee[_0x5c3b73('0x174f')]()});});},function(){});}function _0xa325b3(_0x58d07b){return _0x58d07b===null?undefined:new Date(_0x58d07b);}function _0x1a3343(_0x5402c9){var _0x525cba=_0x4ae581;_0x38f19a[_0x525cba('0x1c24')](_0x5402c9);}}const _0x3b570b=_0x3925c2,_0x3feee5=_0x398308['p']+_0x3877e3('0xbec');_0x421ff4['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),_0x3877e3('0x1850'),'$document',_0x3877e3('0x2313'),_0x3877e3('0x13c1'),_0x3877e3('0x1885'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting'];function _0x421ff4(_0x98d864,_0x3af214,_0x12afd4,_0x332804,_0x5075f5,_0x50a87b,_0x556318,_0x160f19,_0x2f25e8,_0x5bdcdf,_0x1f0869,_0x1cd241,_0xa4826e,_0x67b9a8,_0x33448e,_0x20bf37,_0x2c7673){var _0x200742=_0x3877e3,_0x5b51fb=this;_0x5b51fb['license']=_0x20bf37,_0x5b51fb[_0x200742('0x21e')]=_0x2c7673,_0x5b51fb[_0x200742('0x123f')]=_0x33448e[_0x200742('0x15ed')](),_0x5b51fb[_0x200742('0x1885')]=_0x2f25e8||{'count':0x0,'rows':[]},_0x5b51fb[_0x200742('0x758')]=_0x5bdcdf,_0x5b51fb[_0x200742('0xab4')]=_0x1f0869&&_0x1f0869[_0x200742('0x205f')]==0x1?_0x1f0869[_0x200742('0x1b33')][0x0]:null,_0x5b51fb[_0x200742('0x5ed')]=_0x33448e[_0x200742('0x1778')](_0x5b51fb[_0x200742('0xab4')]?_0x5b51fb['userProfileSection'][_0x200742('0x5ed')]:null),_0x5b51fb[_0x200742('0x1897')]=_0x200742('0x1885'),_0x5b51fb[_0x200742('0x11dc')]='',_0x5b51fb[_0x200742('0x18cf')]=null,_0x5b51fb['selectedODBC']=[],_0x5b51fb[_0x200742('0x77')]={'fields':_0x200742('0x1631'),'sort':_0x200742('0x33'),'limit':0xa,'page':0x1},_0x5b51fb[_0x200742('0x1a97')]=_0x13a7c8,_0x5b51fb[_0x200742('0x19eb')]=_0x4b10f9,_0x5b51fb[_0x200742('0x2593')]=_0x16b142,_0x5b51fb[_0x200742('0xdb1')]=_0x5d9699,_0x5b51fb[_0x200742('0x1329')]=_0x58bfad,_0x5b51fb[_0x200742('0x2767')]=_0x3b8d3c,_0x5b51fb[_0x200742('0x147a')]=_0x491012,_0x5b51fb[_0x200742('0x1f26')]=_0x587711,_0x5b51fb[_0x200742('0x9d0')]=_0x48b610,_0x5b51fb[_0x200742('0x1485')]=_0x4a0347,_0x5b51fb[_0x200742('0x186e')]=_0x18516f;function _0x13a7c8(_0x3de21b,_0x31c1ca){var _0x17e0c9=_0x200742;_0x5075f5['show']({'controller':_0x17e0c9('0x17b6'),'controllerAs':'vm','templateUrl':_0x3feee5,'parent':angular[_0x17e0c9('0x1676')](_0x50a87b['body']),'targetEvent':_0x31c1ca,'clickOutsideToClose':!![],'locals':{'odbc':_0x3de21b,'odbcs':_0x5b51fb[_0x17e0c9('0x1885')][_0x17e0c9('0x1b33')],'license':_0x5b51fb['license'],'setting':null,'crudPermissions':_0x5b51fb[_0x17e0c9('0x5ed')]}});}function _0x4b10f9(_0x19fdd2){var _0xe0f2aa=_0x200742;return _0x1cd241[_0xe0f2aa('0xc45')][_0xe0f2aa('0x1dc7')]({'id':_0x19fdd2['id']})[_0xe0f2aa('0x1376')]['then'](function(){var _0x2ba689=_0xe0f2aa;_0x67b9a8[_0x2ba689('0xdb1')]({'title':_0x2ba689('0xdc1'),'msg':'Connection\x20succeded!'});})[_0xe0f2aa('0x1c1d')](function(_0xab6b2c){var _0x205e5c=_0xe0f2aa;_0x67b9a8[_0x205e5c('0x2092')]({'title':'Square\x20ODBC\x20properly\x20tested','msg':_0xab6b2c['data']?JSON[_0x205e5c('0x25e')](_0xab6b2c[_0x205e5c('0x11c2')]):_0xab6b2c[_0x205e5c('0x174f')]()});});}function _0x16b142(_0x482e63,_0x7680f8){var _0x295ad3=_0x200742,_0x4da297=_0x5075f5[_0x295ad3('0xa33')]()[_0x295ad3('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x86640f()['startCase'](_0x295ad3('0x212'))+'?')[_0x295ad3('0x276b')](_0x295ad3('0x622')+(_0x482e63[_0x295ad3('0x19fe')]||_0x295ad3('0x212'))+_0x295ad3('0x2135')+'\x20will\x20be\x20deleted.')[_0x295ad3('0x7a7')](_0x295ad3('0xde0'))[_0x295ad3('0x1e6d')](_0x7680f8)['ok']('OK')[_0x295ad3('0x3b5')](_0x295ad3('0x284b'));_0x5075f5['show'](_0x4da297)[_0x295ad3('0x21ad')](function(){_0x491012(_0x482e63);},function(){var _0x5b17d9=_0x295ad3;console[_0x5b17d9('0x6fb')](_0x5b17d9('0x284b'));});}var _0x215a77=!![],_0x1045e4=0x1;_0x98d864[_0x200742('0x10e8')]('vm.query.filter',function(_0x49cdc6,_0x4d4dc1){var _0xea6229=_0x200742;_0x215a77?_0x556318(function(){_0x215a77=![];}):(!_0x4d4dc1&&(_0x1045e4=_0x5b51fb[_0xea6229('0x77')][_0xea6229('0x2376')]),_0x49cdc6!==_0x4d4dc1&&(_0x5b51fb[_0xea6229('0x77')]['page']=0x1),!_0x49cdc6&&(_0x5b51fb[_0xea6229('0x77')][_0xea6229('0x2376')]=_0x1045e4),_0x5b51fb[_0xea6229('0x1329')]());});function _0x5d9699(_0x976730){var _0x18b149=_0x200742;_0x5b51fb[_0x18b149('0x1885')]=_0x976730||{'count':0x0,'rows':[]};}function _0x58bfad(){var _0x29b850=_0x200742;_0x5b51fb[_0x29b850('0x77')][_0x29b850('0x15a5')]=(_0x5b51fb[_0x29b850('0x77')][_0x29b850('0x2376')]-0x1)*_0x5b51fb[_0x29b850('0x77')]['limit'],_0x33448e[_0x29b850('0x21de')](_0x29b850('0x1bd8'))?_0x5b51fb[_0x29b850('0x71b')]=_0x1cd241[_0x29b850('0xc45')]['get'](_0x5b51fb[_0x29b850('0x77')],_0x5d9699)[_0x29b850('0x1376')]:(_0x5b51fb['query']['id']=_0x5b51fb['userProfile']['id'],_0x5b51fb[_0x29b850('0x77')][_0x29b850('0x26ad')]=_0x29b850('0xa6d'),_0x5b51fb['promise']=_0x1cd241[_0x29b850('0x758')][_0x29b850('0x321')](_0x5b51fb['query'],_0x5d9699)['$promise']);}function _0x3b8d3c(_0x165f65,_0x4982ce){var _0x2c687c=_0x200742;_0x5075f5[_0x2c687c('0x853')]({'controller':'CreateOrEditOdbcDialogController','controllerAs':'vm','templateUrl':_0x3feee5,'parent':angular['element'](_0x50a87b[_0x2c687c('0x2452')]),'targetEvent':_0x165f65,'clickOutsideToClose':!![],'locals':{'odbc':_0x4982ce,'odbcs':_0x5b51fb[_0x2c687c('0x1885')][_0x2c687c('0x1b33')],'license':_0x5b51fb[_0x2c687c('0x2ff')],'setting':_0x5b51fb[_0x2c687c('0x21e')],'crudPermissions':_0x5b51fb[_0x2c687c('0x5ed')]}});}function _0x491012(_0x271e48){var _0x2fe10e=_0x200742;_0x1cd241[_0x2fe10e('0xc45')][_0x2fe10e('0x1164')]({'id':_0x271e48['id']})['$promise'][_0x2fe10e('0x21ad')](function(){var _0x6b0cd3=_0x2fe10e;_0x86640f()[_0x6b0cd3('0x16a2')](_0x5b51fb['odbcs'][_0x6b0cd3('0x1b33')],{'id':_0x271e48['id']}),_0x5b51fb[_0x6b0cd3('0x1885')][_0x6b0cd3('0x205f')]-=0x1,!_0x5b51fb[_0x6b0cd3('0x1885')][_0x6b0cd3('0x1b33')][_0x6b0cd3('0x577')]&&_0x5b51fb[_0x6b0cd3('0x1329')](),_0x67b9a8[_0x6b0cd3('0xdb1')]({'title':_0x86640f()[_0x6b0cd3('0x2159')]('Odbc')+_0x6b0cd3('0xe64'),'msg':_0x271e48[_0x6b0cd3('0x19fe')]?_0x271e48[_0x6b0cd3('0x19fe')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x4b97a7){var _0x152b92=_0x2fe10e;if(_0x4b97a7['data']&&_0x4b97a7[_0x152b92('0x11c2')]['errors']&&_0x4b97a7['data']['errors'][_0x152b92('0x577')]){_0x5b51fb[_0x152b92('0x1a69')]=_0x4b97a7['data']['errors']||[{'message':_0x4b97a7[_0x152b92('0x174f')](),'type':_0x152b92('0x1563')}];for(var _0x57c412=0x0;_0x57c412<_0x4b97a7['data']['errors']['length'];_0x57c412++){_0x67b9a8[_0x152b92('0x2092')]({'title':_0x4b97a7[_0x152b92('0x11c2')][_0x152b92('0x1a69')][_0x57c412]['type'],'msg':_0x4b97a7[_0x152b92('0x11c2')][_0x152b92('0x1a69')][_0x57c412][_0x152b92('0x1224')]});}}else _0x67b9a8['error']({'title':_0x4b97a7[_0x152b92('0x209')]?_0x152b92('0x22d')+_0x4b97a7['status']+'\x20-\x20'+_0x4b97a7[_0x152b92('0x1808')]:_0x152b92('0x1563'),'msg':_0x4b97a7[_0x152b92('0x11c2')]?JSON[_0x152b92('0x25e')](_0x4b97a7[_0x152b92('0x11c2')]['message']):_0x4b97a7[_0x152b92('0x1224')]||_0x4b97a7[_0x152b92('0x174f')]()});});}function _0x587711(){var _0x4b6ee4=_0x200742,_0xc65ffc=angular[_0x4b6ee4('0xd75')](_0x5b51fb[_0x4b6ee4('0x2552')]);return _0x5b51fb[_0x4b6ee4('0x2552')]=[],_0xc65ffc;}function _0x48b610(_0x194f95){var _0x1edd5d=_0x200742,_0x402ed7=_0x5075f5[_0x1edd5d('0xa33')]()[_0x1edd5d('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20odbcs?')[_0x1edd5d('0x276b')](''+_0x5b51fb[_0x1edd5d('0x2552')]['length']+_0x1edd5d('0xd74')+_0x1edd5d('0x25e0'))[_0x1edd5d('0x7a7')](_0x1edd5d('0x64c'))['targetEvent'](_0x194f95)['ok']('OK')[_0x1edd5d('0x3b5')](_0x1edd5d('0x284b'));_0x5075f5['show'](_0x402ed7)[_0x1edd5d('0x21ad')](function(){var _0x3951d5=_0x1edd5d;_0x5b51fb[_0x3951d5('0x2552')][_0x3951d5('0x1a52')](function(_0x13ac79){_0x491012(_0x13ac79);}),_0x5b51fb[_0x3951d5('0x2552')]=[];});}function _0x4a0347(){var _0xce2dde=_0x200742;_0x5b51fb[_0xce2dde('0x2552')]=[];}function _0x18516f(){var _0x1061be=_0x200742;_0x5b51fb[_0x1061be('0x2552')]=_0x5b51fb[_0x1061be('0x1885')]['rows'];}}const _0x57120c=_0x421ff4;_0x46363c[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),'$mdDialog','$q','$translate',_0x3877e3('0x1908'),_0x3877e3('0x26d0'),_0x3877e3('0x238f'),'api',_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting','crudPermissions'];function _0x46363c(_0x35abb9,_0x2d52d1,_0x2d3466,_0x29d26b,_0x1e58a6,_0xa56858,_0x1061ec,_0x34f103,_0x3cdeef,_0x535c15,_0x3bbc7,_0x1c5659,_0x1ae3eb,_0x173659){var _0x131327=_0x3877e3,_0x5b0ab8=this;_0x5b0ab8[_0x131327('0x123f')]=_0x3bbc7['getCurrentUser'](),_0x5b0ab8[_0x131327('0x1a69')]=[],_0x5b0ab8[_0x131327('0x21e')]=_0x1ae3eb,_0x5b0ab8[_0x131327('0x2ff')]=_0x1c5659,_0x5b0ab8[_0x131327('0x5ed')]=_0x173659,_0x5b0ab8[_0x131327('0x126a')]={},_0x5b0ab8[_0x131327('0x1432')]=_0x5b0ab8['setting']&&_0x5b0ab8[_0x131327('0x21e')][_0x131327('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5b0ab8[_0x131327('0x4b4')]=_0x131327('0x716'),_0x5b0ab8['squareRecording']=angular['copy'](_0x3cdeef),_0x5b0ab8[_0x131327('0x26d0')]=_0x34f103,_0x5b0ab8[_0x131327('0x10d7')]=![];!_0x5b0ab8['squareRecording']&&(_0x5b0ab8[_0x131327('0x238f')]={},_0x5b0ab8[_0x131327('0x4b4')]='CALLYSQUARE.NEW_SQUARERECORDING',_0x5b0ab8['newSquareRecording']=!![]);_0x5b0ab8[_0x131327('0x373')]=_0x46e42a,_0x5b0ab8[_0x131327('0x29d')]=_0x4dbf56,_0x5b0ab8['deleteSquareRecording']=_0x51b44b,_0x5b0ab8['getDateFromString']=_0x491051,_0x5b0ab8[_0x131327('0x167')]=_0x1d81d3;function _0x46e42a(){var _0x854db2=_0x131327;_0x5b0ab8['errors']=[],_0x535c15['squareRecording'][_0x854db2('0x186f')](_0x5b0ab8['squareRecording'])['$promise'][_0x854db2('0x21ad')](function(_0x1beb21){var _0x2dabd5=_0x854db2;_0x5b0ab8[_0x2dabd5('0x26d0')][_0x2dabd5('0xd0c')](_0x1beb21[_0x2dabd5('0x3bc')]()),_0x1061ec['success']({'title':'SquareRecording\x20properly\x20created','msg':_0x5b0ab8[_0x2dabd5('0x238f')][_0x2dabd5('0x19fe')]?_0x5b0ab8[_0x2dabd5('0x238f')][_0x2dabd5('0x19fe')]+_0x2dabd5('0x1694'):''}),_0x1d81d3(_0x1beb21);})[_0x854db2('0x1c1d')](function(_0x30439d){var _0x253f78=_0x854db2;if(_0x30439d[_0x253f78('0x11c2')]&&_0x30439d[_0x253f78('0x11c2')]['errors']&&_0x30439d[_0x253f78('0x11c2')]['errors']['length']){_0x5b0ab8[_0x253f78('0x1a69')]=_0x30439d[_0x253f78('0x11c2')][_0x253f78('0x1a69')]||[{'message':_0x30439d[_0x253f78('0x174f')](),'type':_0x253f78('0x1762')}];for(var _0x1454bd=0x0;_0x1454bd<_0x30439d[_0x253f78('0x11c2')][_0x253f78('0x1a69')]['length'];_0x1454bd+=0x1){_0x1061ec['error']({'title':_0x30439d[_0x253f78('0x11c2')]['errors'][_0x1454bd][_0x253f78('0x7fa')],'msg':_0x30439d[_0x253f78('0x11c2')][_0x253f78('0x1a69')][_0x1454bd][_0x253f78('0x1224')]});}}else _0x1061ec[_0x253f78('0x2092')]({'title':_0x30439d[_0x253f78('0x209')]?'API:'+_0x30439d['status']+'\x20-\x20'+_0x30439d[_0x253f78('0x1808')]:_0x253f78('0x1762'),'msg':_0x30439d[_0x253f78('0x11c2')]?JSON['stringify'](_0x30439d[_0x253f78('0x11c2')][_0x253f78('0x1224')]):_0x30439d[_0x253f78('0x174f')]()});});}function _0x4dbf56(){var _0x25ab21=_0x131327;_0x5b0ab8[_0x25ab21('0x1a69')]=[],_0x535c15[_0x25ab21('0x238f')][_0x25ab21('0x5ef')]({'id':_0x5b0ab8['squareRecording']['id']},_0x5b0ab8[_0x25ab21('0x238f')])[_0x25ab21('0x1376')]['then'](function(_0x150547){var _0x1b6084=_0x25ab21,_0x546107=_0x86640f()[_0x1b6084('0x1d2e')](_0x5b0ab8[_0x1b6084('0x26d0')],{'id':_0x150547['id']});_0x546107&&_0x86640f()[_0x1b6084('0xd0e')](_0x546107,_0x86640f()[_0x1b6084('0xc50')](_0x150547[_0x1b6084('0x3bc')](),_0x86640f()[_0x1b6084('0x223b')](_0x546107))),_0x1061ec[_0x1b6084('0xdb1')]({'title':_0x1b6084('0x217d'),'msg':_0x5b0ab8[_0x1b6084('0x238f')][_0x1b6084('0x19fe')]?_0x5b0ab8[_0x1b6084('0x238f')][_0x1b6084('0x19fe')]+_0x1b6084('0x2249'):''}),_0x1d81d3(_0x150547);})['catch'](function(_0x3eb359){var _0x53cb97=_0x25ab21;if(_0x3eb359[_0x53cb97('0x11c2')]&&_0x3eb359[_0x53cb97('0x11c2')][_0x53cb97('0x1a69')]&&_0x3eb359[_0x53cb97('0x11c2')]['errors'][_0x53cb97('0x577')]){_0x5b0ab8[_0x53cb97('0x1a69')]=_0x3eb359[_0x53cb97('0x11c2')]['errors']||[{'message':_0x3eb359['toString'](),'type':_0x53cb97('0x133e')}];for(var _0x4220a7=0x0;_0x4220a7<_0x3eb359['data']['errors'][_0x53cb97('0x577')];_0x4220a7++){_0x1061ec[_0x53cb97('0x2092')]({'title':_0x3eb359[_0x53cb97('0x11c2')][_0x53cb97('0x1a69')][_0x4220a7][_0x53cb97('0x7fa')],'msg':_0x3eb359[_0x53cb97('0x11c2')]['errors'][_0x4220a7][_0x53cb97('0x1224')]});}}else _0x1061ec['error']({'title':_0x3eb359[_0x53cb97('0x209')]?_0x53cb97('0x22d')+_0x3eb359[_0x53cb97('0x209')]+_0x53cb97('0xa99')+_0x3eb359[_0x53cb97('0x1808')]:_0x53cb97('0x133e'),'msg':_0x3eb359[_0x53cb97('0x11c2')]?JSON[_0x53cb97('0x25e')](_0x3eb359[_0x53cb97('0x11c2')]['message']):_0x3eb359['toString']()});});}function _0x51b44b(_0x1abd44){var _0x48027a=_0x131327;_0x5b0ab8[_0x48027a('0x1a69')]=[];var _0x4ce0c5=_0x29d26b['confirm']()['title'](_0x48027a('0x196b'))[_0x48027a('0x13fb')](_0x48027a('0xf3a'))[_0x48027a('0x7a7')](_0x48027a('0x1e80'))['ok']('Delete')['cancel'](_0x48027a('0x1f40'))['targetEvent'](_0x1abd44);_0x29d26b[_0x48027a('0x853')](_0x4ce0c5)[_0x48027a('0x21ad')](function(){var _0x291df0=_0x48027a;_0x535c15[_0x291df0('0x238f')]['delete']({'id':_0x5b0ab8[_0x291df0('0x238f')]['id']})[_0x291df0('0x1376')]['then'](function(){var _0x5bbfce=_0x291df0;_0x86640f()[_0x5bbfce('0x16a2')](_0x5b0ab8[_0x5bbfce('0x26d0')],{'id':_0x5b0ab8[_0x5bbfce('0x238f')]['id']}),_0x1061ec[_0x5bbfce('0xdb1')]({'title':_0x5bbfce('0x12d5'),'msg':(_0x5b0ab8['squareRecording'][_0x5bbfce('0x19fe')]||'squareRecording')+'\x20has\x20been\x20deleted!'}),_0x1d81d3(_0x5b0ab8[_0x5bbfce('0x238f')]);})['catch'](function(_0x162096){var _0x551067=_0x291df0;if(_0x162096[_0x551067('0x11c2')]&&_0x162096['data']['errors']&&_0x162096[_0x551067('0x11c2')][_0x551067('0x1a69')][_0x551067('0x577')]){_0x5b0ab8[_0x551067('0x1a69')]=_0x162096[_0x551067('0x11c2')][_0x551067('0x1a69')]||[{'message':_0x162096['toString'](),'type':_0x551067('0x1b23')}];for(var _0x922df7=0x0;_0x922df7<_0x162096['data']['errors'][_0x551067('0x577')];_0x922df7++){_0x1061ec[_0x551067('0x2092')]({'title':_0x162096[_0x551067('0x11c2')][_0x551067('0x1a69')][_0x922df7][_0x551067('0x7fa')],'msg':_0x162096[_0x551067('0x11c2')][_0x551067('0x1a69')][_0x922df7][_0x551067('0x1224')]});}}else _0x1061ec['error']({'title':_0x162096['status']?_0x551067('0x22d')+_0x162096[_0x551067('0x209')]+_0x551067('0xa99')+_0x162096['statusText']:'api.squareRecording.delete','msg':_0x162096[_0x551067('0x11c2')]?JSON['stringify'](_0x162096['data'][_0x551067('0x1224')]):_0x162096[_0x551067('0x1224')]||_0x162096[_0x551067('0x174f')]()});});},function(){});}function _0x491051(_0x2bcf24){return _0x2bcf24===null?undefined:new Date(_0x2bcf24);}function _0x1d81d3(_0x49c31b){var _0x2ce79a=_0x131327;_0x29d26b[_0x2ce79a('0x1c24')](_0x49c31b);}}const _0x2fa893=_0x46363c,_0x371eb2=_0x398308['p']+_0x3877e3('0xf4f');_0x47335a[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x13c1'),_0x3877e3('0x26d0'),'userProfile','userProfileSection',_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x47335a(_0x517bba,_0x3d638a,_0x1f731e,_0x895a4a,_0x310398,_0xa7c9bb,_0x4b3c3f,_0xb0569,_0x44c37c,_0x2a7c44,_0x2f2da5,_0x369964,_0x4e7955,_0x17a78e,_0x1b0675,_0x46ccd6,_0x5098aa){var _0x54f79a=_0x3877e3,_0x1c6e6c=this;_0x1c6e6c['license']=_0x46ccd6,_0x1c6e6c[_0x54f79a('0x21e')]=_0x5098aa,_0x1c6e6c[_0x54f79a('0x123f')]=_0x1b0675['getCurrentUser'](),_0x1c6e6c[_0x54f79a('0x26d0')]=_0x44c37c||{'count':0x0,'rows':[]},_0x1c6e6c[_0x54f79a('0x758')]=_0x2a7c44,_0x1c6e6c[_0x54f79a('0xab4')]=_0x2f2da5&&_0x2f2da5[_0x54f79a('0x205f')]==0x1?_0x2f2da5[_0x54f79a('0x1b33')][0x0]:null,_0x1c6e6c[_0x54f79a('0x5ed')]=_0x1b0675['parseCrudPermissions'](_0x1c6e6c[_0x54f79a('0xab4')]?_0x1c6e6c[_0x54f79a('0xab4')][_0x54f79a('0x5ed')]:null),_0x1c6e6c['table']=_0x54f79a('0x26d0'),_0x1c6e6c[_0x54f79a('0x11dc')]='',_0x1c6e6c[_0x54f79a('0x18cf')]=null,_0x1c6e6c[_0x54f79a('0x1752')]=[],_0x1c6e6c[_0x54f79a('0x77')]={'fields':_0x54f79a('0xc26'),'sort':_0x54f79a('0x33'),'limit':0xa,'page':0x1},_0x1c6e6c[_0x54f79a('0xf10')]=_0x4edabf,_0x1c6e6c[_0x54f79a('0x2593')]=_0x83a4b4,_0x1c6e6c[_0x54f79a('0xdb1')]=_0x373811,_0x1c6e6c[_0x54f79a('0x11dd')]=_0x936e31,_0x1c6e6c[_0x54f79a('0x18e1')]=_0x3fab47,_0x1c6e6c['deleteSquareRecording']=_0x2d137f,_0x1c6e6c['exportSelectedSquareRecordings']=_0xbcba78,_0x1c6e6c[_0x54f79a('0x19ec')]=_0x404a9c,_0x1c6e6c[_0x54f79a('0x2348')]=_0x375318,_0x1c6e6c[_0x54f79a('0x1915')]=_0x42da9c;function _0x4edabf(_0x2bcd87){var _0x226ccb=_0x54f79a;return _0x369964[_0x226ccb('0x238f')][_0x226ccb('0xb0')]({'id':_0x2bcd87['id']})[_0x226ccb('0x1376')][_0x226ccb('0x21ad')](function(_0x3108bf){var _0x5ea032=_0x226ccb,_0x374972=[_0x3108bf[_0x5ea032('0x3da')]],_0x25040f=_0x5ea032('0xb0'),_0xc7f15f=new Blob(_0x374972,{'type':_0x3108bf[_0x5ea032('0x7fa')]});_0x25040f=_0x2bcd87[_0x5ea032('0x968')]+_0x2bcd87[_0x5ea032('0x153')];var _0x1738bf=window['document'][_0x5ea032('0x162e')]('a');_0x1738bf[_0x5ea032('0x127a')](_0x5ea032('0x69e'),URL[_0x5ea032('0x167b')](_0xc7f15f)),_0x1738bf[_0x5ea032('0x127a')]('download',_0x25040f),document[_0x5ea032('0x2452')]['appendChild'](_0x1738bf),_0x1738bf['click']();})['catch'](function(_0x1739c5){var _0x323f0b=_0x226ccb;if(_0x1739c5[_0x323f0b('0x11c2')]&&_0x1739c5[_0x323f0b('0x11c2')][_0x323f0b('0x1a69')]&&_0x1739c5['data'][_0x323f0b('0x1a69')][_0x323f0b('0x577')])for(var _0x427700=0x0;_0x427700<_0x1739c5[_0x323f0b('0x11c2')][_0x323f0b('0x1a69')][_0x323f0b('0x577')];_0x427700++){_0x17a78e[_0x323f0b('0x2092')]({'title':_0x1739c5[_0x323f0b('0x11c2')][_0x323f0b('0x1a69')][_0x427700][_0x323f0b('0x7fa')],'msg':_0x1739c5['data']['errors'][_0x427700][_0x323f0b('0x1224')]});}else _0x17a78e[_0x323f0b('0x2092')]({'title':_0x1739c5[_0x323f0b('0x209')]?_0x323f0b('0x22d')+_0x1739c5['status']+_0x323f0b('0xa99')+_0x1739c5['statusText']:_0x323f0b('0x1762'),'msg':_0x1739c5[_0x323f0b('0x11c2')]?JSON['stringify'](_0x1739c5['data']['message']):_0x1739c5[_0x323f0b('0x174f')]()});});}function _0x83a4b4(_0x3b0fc0,_0x377878){var _0x41939d=_0x54f79a,_0x521e49=_0x310398[_0x41939d('0xa33')]()[_0x41939d('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x86640f()[_0x41939d('0x2159')](_0x41939d('0x238f'))+'?')['htmlContent'](''+(_0x3b0fc0[_0x41939d('0x19fe')]||_0x41939d('0x238f'))+_0x41939d('0x2135')+_0x41939d('0x25e0'))['ariaLabel']('delete\x20squareRecording')['targetEvent'](_0x377878)['ok']('OK')[_0x41939d('0x3b5')](_0x41939d('0x284b'));_0x310398[_0x41939d('0x853')](_0x521e49)[_0x41939d('0x21ad')](function(){_0x2d137f(_0x3b0fc0);},function(){var _0x501ed8=_0x41939d;console[_0x501ed8('0x6fb')](_0x501ed8('0x284b'));});}var _0x351ded=!![],_0x528876=0x1;_0x517bba['$watch'](_0x54f79a('0x1948'),function(_0xeb65a2,_0x3ada7d){var _0x3ed80d=_0x54f79a;_0x351ded?_0x4b3c3f(function(){_0x351ded=![];}):(!_0x3ada7d&&(_0x528876=_0x1c6e6c[_0x3ed80d('0x77')]['page']),_0xeb65a2!==_0x3ada7d&&(_0x1c6e6c['query'][_0x3ed80d('0x2376')]=0x1),!_0xeb65a2&&(_0x1c6e6c[_0x3ed80d('0x77')][_0x3ed80d('0x2376')]=_0x528876),_0x1c6e6c['getSquareRecordings']());});function _0x373811(_0x3ddb4f){var _0x12162f=_0x54f79a;_0x1c6e6c[_0x12162f('0x26d0')]=_0x3ddb4f||{'count':0x0,'rows':[]};}function _0x936e31(){var _0x286c0e=_0x54f79a;_0x1c6e6c[_0x286c0e('0x77')]['offset']=(_0x1c6e6c[_0x286c0e('0x77')]['page']-0x1)*_0x1c6e6c['query'][_0x286c0e('0x1f4a')],_0x1b0675[_0x286c0e('0x21de')](_0x286c0e('0x1bd8'))?_0x1c6e6c[_0x286c0e('0x71b')]=_0x369964[_0x286c0e('0x238f')][_0x286c0e('0x595')](_0x1c6e6c['query'],_0x373811)[_0x286c0e('0x1376')]:(_0x1c6e6c[_0x286c0e('0x77')]['id']=_0x1c6e6c[_0x286c0e('0x758')]['id'],_0x1c6e6c[_0x286c0e('0x77')][_0x286c0e('0x26ad')]=_0x286c0e('0x23de'),_0x1c6e6c[_0x286c0e('0x71b')]=_0x369964[_0x286c0e('0x758')][_0x286c0e('0x321')](_0x1c6e6c[_0x286c0e('0x77')],_0x373811)['$promise']);}function _0x3fab47(_0x305b05,_0x51a6e9){var _0x13244d=_0x54f79a;_0x310398['show']({'controller':_0x13244d('0xcd9'),'controllerAs':'vm','templateUrl':_0x371eb2,'parent':angular[_0x13244d('0x1676')](_0xa7c9bb[_0x13244d('0x2452')]),'targetEvent':_0x305b05,'clickOutsideToClose':!![],'locals':{'squareRecording':_0x51a6e9,'squareRecordings':_0x1c6e6c[_0x13244d('0x26d0')][_0x13244d('0x1b33')],'license':_0x1c6e6c['license'],'setting':_0x1c6e6c[_0x13244d('0x21e')],'crudPermissions':_0x1c6e6c[_0x13244d('0x5ed')]}});}function _0x2d137f(_0x18fae0){var _0x167ffb=_0x54f79a;_0x369964['squareRecording'][_0x167ffb('0x1164')]({'id':_0x18fae0['id']})['$promise'][_0x167ffb('0x21ad')](function(){var _0x56ddfa=_0x167ffb;_0x86640f()[_0x56ddfa('0x16a2')](_0x1c6e6c[_0x56ddfa('0x26d0')]['rows'],{'id':_0x18fae0['id']}),_0x1c6e6c['squareRecordings'][_0x56ddfa('0x205f')]-=0x1,!_0x1c6e6c['squareRecordings']['rows']['length']&&_0x1c6e6c[_0x56ddfa('0x11dd')](),_0x17a78e[_0x56ddfa('0xdb1')]({'title':_0x86640f()[_0x56ddfa('0x2159')](_0x56ddfa('0x1458'))+'\x20deleted!','msg':_0x18fae0[_0x56ddfa('0x19fe')]?_0x18fae0[_0x56ddfa('0x19fe')]+'\x20has\x20been\x20deleted!':''});})[_0x167ffb('0x1c1d')](function(_0x117e30){var _0xbb0e9=_0x167ffb;if(_0x117e30[_0xbb0e9('0x11c2')]&&_0x117e30['data']['errors']&&_0x117e30[_0xbb0e9('0x11c2')][_0xbb0e9('0x1a69')][_0xbb0e9('0x577')]){_0x1c6e6c['errors']=_0x117e30[_0xbb0e9('0x11c2')][_0xbb0e9('0x1a69')]||[{'message':_0x117e30[_0xbb0e9('0x174f')](),'type':_0xbb0e9('0x22a')}];for(var _0x1a4816=0x0;_0x1a4816<_0x117e30[_0xbb0e9('0x11c2')][_0xbb0e9('0x1a69')][_0xbb0e9('0x577')];_0x1a4816++){_0x17a78e[_0xbb0e9('0x2092')]({'title':_0x117e30['data'][_0xbb0e9('0x1a69')][_0x1a4816][_0xbb0e9('0x7fa')],'msg':_0x117e30[_0xbb0e9('0x11c2')][_0xbb0e9('0x1a69')][_0x1a4816][_0xbb0e9('0x1224')]});}}else _0x17a78e[_0xbb0e9('0x2092')]({'title':_0x117e30[_0xbb0e9('0x209')]?_0xbb0e9('0x22d')+_0x117e30[_0xbb0e9('0x209')]+_0xbb0e9('0xa99')+_0x117e30[_0xbb0e9('0x1808')]:_0xbb0e9('0x22a'),'msg':_0x117e30['data']?JSON[_0xbb0e9('0x25e')](_0x117e30['data'][_0xbb0e9('0x1224')]):_0x117e30[_0xbb0e9('0x1224')]||_0x117e30[_0xbb0e9('0x174f')]()});});}function _0xbcba78(){var _0x499bc4=_0x54f79a,_0x243520=angular[_0x499bc4('0xd75')](_0x1c6e6c[_0x499bc4('0x1752')]);return _0x1c6e6c['selectedSquareRecordings']=[],_0x243520;}function _0x404a9c(_0x39e627){var _0x214b93=_0x54f79a,_0x1ea58f=_0x310398['confirm']()[_0x214b93('0x4b4')](_0x214b93('0x47c'))[_0x214b93('0x276b')](''+_0x1c6e6c['selectedSquareRecordings']['length']+_0x214b93('0xd74')+'\x20will\x20be\x20deleted.')[_0x214b93('0x7a7')](_0x214b93('0x2536'))[_0x214b93('0x1e6d')](_0x39e627)['ok']('OK')[_0x214b93('0x3b5')](_0x214b93('0x284b'));_0x310398[_0x214b93('0x853')](_0x1ea58f)[_0x214b93('0x21ad')](function(){var _0x5654dc=_0x214b93;_0x1c6e6c[_0x5654dc('0x1752')][_0x5654dc('0x1a52')](function(_0x575215){_0x2d137f(_0x575215);}),_0x1c6e6c[_0x5654dc('0x1752')]=[];});}function _0x375318(){_0x1c6e6c['selectedSquareRecordings']=[];}function _0x42da9c(){var _0x185b30=_0x54f79a;_0x1c6e6c['selectedSquareRecordings']=_0x1c6e6c[_0x185b30('0x26d0')][_0x185b30('0x1b33')];}}const _0x24b312=_0x47335a;_0x3422e8['$inject']=['$stateProvider',_0x3877e3('0x972')];function _0x3422e8(_0x3a4ecf,_0x3a7637){var _0x28753e=_0x3877e3;_0x3a4ecf['state'](_0x28753e('0x165b'),{'abstract':!![],'url':'/callysquare'})[_0x28753e('0x27e')](_0x28753e('0x479'),{'url':_0x28753e('0x17ad'),'views':{'content@app':{'templateUrl':_0x51cdef,'controller':_0x28753e('0x27d9')}},'resolve':{'odbcs':[_0x28753e('0x354'),'Auth',function _0x2e37f1(_0x18702d,_0x47a704){var _0x11c8b3=_0x28753e;return _0x47a704[_0x11c8b3('0x21de')](_0x11c8b3('0x1bd8'))?_0x18702d[_0x11c8b3('0x8ac')](_0x11c8b3('0x2242'),{'fields':_0x11c8b3('0x1631'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x18702d['resolve'](_0x11c8b3('0x52f'),{'id':_0x47a704[_0x11c8b3('0x15ed')]()[_0x11c8b3('0x1618')],'section':_0x11c8b3('0xa6d'),'fields':'createdAt,updatedAt,id,name,dsn,description','sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x28753e('0x15bc'),function _0x264f20(_0x5ef001,_0x44ef93){var _0x4aaac8=_0x28753e;return _0x44ef93[_0x4aaac8('0x21de')](_0x4aaac8('0x1bd8'))?null:_0x5ef001[_0x4aaac8('0x8ac')](_0x4aaac8('0x1e1d'),{'fields':_0x4aaac8('0x1a00'),'id':_0x44ef93[_0x4aaac8('0x15ed')]()[_0x4aaac8('0x1618')]});}],'userProfileSection':['apiResolver',_0x28753e('0x15bc'),function _0x1d19c4(_0x5b9886,_0x454e4d){var _0x42c542=_0x28753e;return _0x454e4d[_0x42c542('0x21de')](_0x42c542('0x1bd8'))?null:_0x5b9886['resolve']('userProfileSection@get',{'fields':_0x42c542('0x1852'),'userProfileId':_0x454e4d[_0x42c542('0x15ed')]()['userProfileId'],'sectionId':0x44d});}]},'authenticate':!![],'permissionId':0x44d,'bodyClass':_0x28753e('0x100b')})['state'](_0x28753e('0x1d16'),{'url':_0x28753e('0xdce'),'views':{'content@app':{'templateUrl':_0x2b4e76,'controller':_0x28753e('0x1671')}},'resolve':{'squareRecordings':['apiResolver','Auth',function _0x34cee1(_0x3bb3e2,_0x4c06ff){var _0x48ab9e=_0x28753e;return _0x4c06ff['hasRole']('admin')?_0x3bb3e2[_0x48ab9e('0x8ac')](_0x48ab9e('0x1501'),{'fields':_0x48ab9e('0xc26'),'sort':_0x48ab9e('0x33'),'limit':0xa,'offset':0x0}):_0x3bb3e2[_0x48ab9e('0x8ac')](_0x48ab9e('0x52f'),{'id':_0x4c06ff[_0x48ab9e('0x15ed')]()[_0x48ab9e('0x1618')],'section':_0x48ab9e('0x23de'),'fields':_0x48ab9e('0xc26'),'sort':_0x48ab9e('0x33'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x28753e('0x354'),_0x28753e('0x15bc'),function _0x7c81f6(_0x5511b5,_0x5f121e){var _0x4c8a03=_0x28753e;return _0x5f121e[_0x4c8a03('0x21de')]('admin')?null:_0x5511b5[_0x4c8a03('0x8ac')]('userProfile@get',{'fields':_0x4c8a03('0x1a00'),'id':_0x5f121e[_0x4c8a03('0x15ed')]()[_0x4c8a03('0x1618')]});}],'userProfileSection':['apiResolver',_0x28753e('0x15bc'),function _0x3fa451(_0x528e32,_0x170c0b){var _0x23b350=_0x28753e;return _0x170c0b[_0x23b350('0x21de')](_0x23b350('0x1bd8'))?null:_0x528e32['resolve'](_0x23b350('0x222f'),{'fields':_0x23b350('0x1852'),'userProfileId':_0x170c0b[_0x23b350('0x15ed')]()[_0x23b350('0x1618')],'sectionId':0x44e});}]},'authenticate':!![],'permissionId':0x44e,'bodyClass':'callysquare'}),_0x3a7637['addPart']('app/main/apps/callysquare');}angular[_0x3877e3('0x20d5')]('app.callysquare',['ngCsv','ngPassword','md.data.table',_0x3877e3('0x1d76'),_0x3877e3('0x2437'),_0x3877e3('0x25c7'),_0x3877e3('0x1182'),_0x3877e3('0x264a'),_0x3877e3('0x19'),_0x3877e3('0x335'),'mwFormBuilder','mwFormViewer',_0x3877e3('0xe2f'),'ngclipboard',_0x3877e3('0xf61'),'ngEmbed',_0x3877e3('0x25a2'),_0x3877e3('0x27ba'),_0x3877e3('0x9e0'),'angular.filter',_0x3877e3('0x1b63')])[_0x3877e3('0x13')](_0x3422e8)['controller'](_0x3877e3('0x17b6'),_0x3b570b)[_0x3877e3('0x1d5a')](_0x3877e3('0x2055'),_0x57120c)[_0x3877e3('0x1d5a')](_0x3877e3('0xcd9'),_0x2fa893)[_0x3877e3('0x1d5a')](_0x3877e3('0xa2d'),_0x24b312);const _0x4c1399=_0x398308['p']+_0x3877e3('0x13b4'),_0x1b339c=_0x398308['p']+_0x3877e3('0x1ee7'),_0x51fa52=_0x398308['p']+_0x3877e3('0x4d1'),_0x43aace=_0x398308['p']+'src/js/modules/main/apps/analytics/views/reports/edit/view.html/view-[chunkhash].html';var _0x46e8ae=_0x398308(0xd5a);_0x3abda1[_0x3877e3('0x1a81')]=['$location',_0x3877e3('0x1850'),'toasty',_0x3877e3('0x24bc'),_0x3877e3('0xccd'),_0x3877e3('0xba3'),_0x3877e3('0x11f2')];function _0x3abda1(_0x3b5d2c,_0x350dda,_0x53552a,_0x1a7d12,_0x2e5dbd,_0x241b56,_0x30578d){var _0x585a57=_0x3877e3,_0x3f06d9=this;_0x3f06d9[_0x585a57('0x1a69')]=[],_0x3f06d9[_0x585a57('0x24bc')]=angular[_0x585a57('0xd75')](_0x1a7d12),_0x3f06d9[_0x585a57('0x24bc')][_0x585a57('0x19fe')]+='-copy',_0x3f06d9[_0x585a57('0x11f2')]=_0x30578d,_0x3f06d9[_0x585a57('0x26aa')]={'core':{'multiple':![],'animation':!![],'error':function _0x1cf7a6(_0x312179){var _0x51e186=_0x585a57;console[_0x51e186('0x2092')](_0x51e186('0x16ae')+angular['toJson'](_0x312179));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':['wholerow']},_0x3f06d9[_0x585a57('0x9ec')]={'select_node':_0x532016},_0x3f06d9[_0x585a57('0x10b0')]=_0x2e64f3,_0x3f06d9[_0x585a57('0x167')]=_0x374302;function _0x2e64f3(){var _0x5d355b=_0x585a57;_0x3f06d9[_0x5d355b('0x1a69')]=[];var _0x150c18;_0x2e5dbd['analyticCustomReport'][_0x5d355b('0x186f')]({'name':_0x3f06d9[_0x5d355b('0x24bc')][_0x5d355b('0x19fe')],'description':_0x3f06d9['report']['description'],'table':_0x3f06d9[_0x5d355b('0x24bc')][_0x5d355b('0x1897')],'conditions':_0x3f06d9[_0x5d355b('0x24bc')][_0x5d355b('0xffa')],'joins':_0x3f06d9[_0x5d355b('0x24bc')][_0x5d355b('0x283e')],'parent':_0x3f06d9[_0x5d355b('0x2ef')]['id']})['$promise'][_0x5d355b('0x21ad')](function(_0x432e56){var _0x55fced=_0x5d355b;_0x150c18=_0x432e56,_0x53552a[_0x55fced('0xdb1')]({'title':_0x55fced('0x1999'),'msg':_0x3f06d9[_0x55fced('0x24bc')]['name']?_0x3f06d9[_0x55fced('0x24bc')][_0x55fced('0x19fe')]+'\x20has\x20been\x20copied!':''});var _0x5dc280={'fields':'field,alias,function,format,groupBy,orderBy,custom,MetricId','nolimit':!![]};return _0x5dc280[_0x241b56===_0x55fced('0x2041')?_0x55fced('0x1bbd'):'DefaultReportId']=_0x3f06d9['report']['id'],_0x2e5dbd[_0x55fced('0x1575')][_0x55fced('0x595')](_0x5dc280)[_0x55fced('0x1376')];})[_0x5d355b('0x21ad')](function(_0xe49f84){var _0x1e8ee1=_0x5d355b,_0x3f75e9=_0x86640f()[_0x1e8ee1('0x26c3')](_0xe49f84[_0x1e8ee1('0x1b33')],function(_0x5b513a){var _0x1f08db=_0x1e8ee1;return _0x86640f()[_0x1f08db('0x1ad')]({},_0x5b513a,{'CustomReportId':_0x150c18['id']});});return _0x2e5dbd['analyticFieldReport'][_0x1e8ee1('0x11d4')](_0x3f75e9)[_0x1e8ee1('0x1376')];})['then'](function(){var _0x36dd73=_0x5d355b;_0x53552a[_0x36dd73('0xdb1')]({'title':_0x36dd73('0xbda'),'msg':_0x36dd73('0x112f')}),_0x374302();})[_0x5d355b('0x1c1d')](function(_0x49d32d){var _0x50c3ae=_0x5d355b;_0x53552a[_0x50c3ae('0x2092')]({'title':_0x49d32d[_0x50c3ae('0x209')]?_0x50c3ae('0x22d')+_0x49d32d['status']+'\x20-\x20'+_0x49d32d[_0x50c3ae('0x1808')]:_0x50c3ae('0x1178'),'msg':_0x49d32d[_0x50c3ae('0x11c2')]?JSON['stringify'](_0x49d32d['data'][_0x50c3ae('0x1224')]):_0x49d32d['toString']()});});}function _0x532016(_0x24a277,_0x1c36ea){var _0x3925be=_0x585a57;_0x3f06d9['currentNode']=_0x1c36ea[_0x3925be('0x36f')];}function _0x374302(){var _0x5ee1ce=_0x585a57;_0x350dda[_0x5ee1ce('0x1c24')]();}}const _0x3bd783=_0x3abda1;_0x167a24['$inject']=[_0x3877e3('0x14c7'),'$mdDialog','toasty',_0x3877e3('0xd5d'),_0x3877e3('0x24bc'),_0x3877e3('0xccd'),'apiName',_0x3877e3('0x2ef'),'describeTable',_0x3877e3('0x5ed')];function _0x167a24(_0x285a58,_0xbc69ae,_0x2c9cfc,_0x25d32a,_0x161051,_0x385c8b,_0xd09c0d,_0x3f3aab,_0x989585,_0x259e5a){var _0x24edfd=_0x3877e3,_0x5f2544=this;_0x5f2544[_0x24edfd('0x1a69')]=[],_0x5f2544[_0x24edfd('0x3e1')]=[],_0x5f2544['title']='ANALYTICS.EDIT_REPORT',_0x5f2544[_0x24edfd('0x5ed')]=_0x259e5a,_0x5f2544[_0x24edfd('0x24bc')]=angular[_0x24edfd('0xd75')](_0x161051),_0x5f2544['reports']=_0x25d32a,_0x5f2544[_0x24edfd('0x255')]=![],_0x5f2544[_0x24edfd('0x258e')]=_0x989585[_0x24edfd('0x154c')](),_0x5f2544[_0x24edfd('0x2223')]=[{'key':_0x24edfd('0x136'),'value':_0x24edfd('0x1d')},{'key':_0x24edfd('0x136c'),'value':'Left\x20Join'},{'key':'right_join','value':'Right\x20Join'},{'key':_0x24edfd('0x551'),'value':'Cross\x20Join'}];!_0x5f2544[_0x24edfd('0x24bc')]&&(_0x5f2544['report']={'name':'','table':_0x24edfd('0x1099'),'description':'','parent':_0x3f3aab['id']},_0x5f2544[_0x24edfd('0x4b4')]=_0x24edfd('0x1f81'),_0x5f2544[_0x24edfd('0x255')]=!![]);_0x5f2544['addNewReport']=_0x164f4,_0x5f2544['saveReport']=_0x2cddec,_0x5f2544[_0x24edfd('0x8b1')]=_0x3d7203,_0x5f2544['closeDialog']=_0x59d2ee,_0x5f2544[_0x24edfd('0x98d')]=_0x24789b,_0x5f2544[_0x24edfd('0x5bc')]=_0x4bf1a6,_0x5f2544['getFields']=_0x587d4b;function _0x4bf1a6(_0xb94208){var _0x62a245=_0x24edfd;_0x5f2544[_0x62a245('0x3e1')][_0x62a245('0xafe')](_0xb94208,0x1);}function _0x587d4b(_0xbf59b8,_0x83b3af,_0x589721){var _0x4f40a2=_0x24edfd,_0x31684b=_0x86640f()[_0x4f40a2('0x1d2e')](_0x5f2544['tables'],{'name':_0x589721});_0x31684b&&_0x31684b[_0x4f40a2('0xccd')]&&_0x385c8b[_0x31684b[_0x4f40a2('0xccd')]][_0x4f40a2('0x1219')]()[_0x4f40a2('0x1376')][_0x4f40a2('0x21ad')](function(_0x12deed){var _0x3139b8=_0x4f40a2;_0xbf59b8[_0x83b3af]=_0x86640f()[_0x3139b8('0x5a8')](_0x86640f()[_0x3139b8('0x223b')](_0x12deed),[_0x3139b8('0x1376'),_0x3139b8('0x9f8')]);})[_0x4f40a2('0x1c1d')](function(_0xb7bb76){console['error'](_0xb7bb76);});}function _0x24789b(_0x4ac74a){var _0x2e794d=_0x24edfd;_0x4ac74a&&(delete _0x5f2544[_0x2e794d('0x212e')],_0x5f2544[_0x2e794d('0x3e1')][_0x2e794d('0x206c')](_0x4ac74a));}function _0x164f4(){var _0x54bceb=_0x24edfd;_0x5f2544[_0x54bceb('0x1a69')]=[],_0x5f2544[_0x54bceb('0x24bc')][_0x54bceb('0x283e')]=_0x86640f()[_0x54bceb('0x26c3')](_0x5f2544[_0x54bceb('0x3e1')]||[],function(_0x1148e6){var _0x3c0024=_0x54bceb;return{'parentKey':_0x1148e6[_0x3c0024('0x1e7f')],'foreignTable':_0x1148e6[_0x3c0024('0x19fe')],'foreignKey':_0x1148e6[_0x3c0024('0x13c0')],'type':_0x1148e6[_0x3c0024('0x7fa')]['toLowerCase']()};}),_0x5f2544[_0x54bceb('0x24bc')][_0x54bceb('0x283e')]=JSON[_0x54bceb('0x25e')](_0x5f2544[_0x54bceb('0x24bc')][_0x54bceb('0x283e')]),_0x385c8b[_0xd09c0d][_0x54bceb('0x186f')](_0x5f2544[_0x54bceb('0x24bc')])['$promise']['then'](function(_0x2918e3){var _0x207df3=_0x54bceb;_0x5f2544[_0x207df3('0xd5d')][_0x207df3('0xd0c')](_0x2918e3),_0x2c9cfc[_0x207df3('0xdb1')]({'title':_0x207df3('0x36b'),'msg':_0x5f2544[_0x207df3('0x24bc')][_0x207df3('0x19fe')]?_0x5f2544['report'][_0x207df3('0x19fe')]+_0x207df3('0x1694'):''}),_0x59d2ee();})[_0x54bceb('0x1c1d')](function(_0x1f5886){var _0x28a40f=_0x54bceb;if(_0x1f5886[_0x28a40f('0x11c2')]&&_0x1f5886[_0x28a40f('0x11c2')]['errors']&&_0x1f5886[_0x28a40f('0x11c2')][_0x28a40f('0x1a69')][_0x28a40f('0x577')]){_0x5f2544[_0x28a40f('0x1a69')]=_0x1f5886[_0x28a40f('0x11c2')][_0x28a40f('0x1a69')]||[{'message':_0x1f5886['toString'](),'type':'api.analyticReport.save'}];for(var _0x14ccae=0x0;_0x14ccae<_0x1f5886[_0x28a40f('0x11c2')][_0x28a40f('0x1a69')][_0x28a40f('0x577')];_0x14ccae++){_0x2c9cfc[_0x28a40f('0x2092')]({'title':_0x1f5886[_0x28a40f('0x11c2')][_0x28a40f('0x1a69')][_0x14ccae]['type'],'msg':_0x1f5886[_0x28a40f('0x11c2')][_0x28a40f('0x1a69')][_0x14ccae][_0x28a40f('0x1224')]});}}else _0x2c9cfc['error']({'title':_0x1f5886['status']?_0x28a40f('0x22d')+_0x1f5886['status']+_0x28a40f('0xa99')+_0x1f5886[_0x28a40f('0x1808')]:_0x28a40f('0x413'),'msg':_0x1f5886[_0x28a40f('0x11c2')]?JSON['stringify'](_0x1f5886[_0x28a40f('0x11c2')]['message']):_0x1f5886[_0x28a40f('0x174f')]()});});}function _0x2cddec(){var _0x571794=_0x24edfd;_0x5f2544['errors']=[],_0x385c8b[_0xd09c0d][_0x571794('0x5ef')]({'id':_0x5f2544[_0x571794('0x24bc')]['id']},_0x5f2544[_0x571794('0x24bc')])[_0x571794('0x1376')][_0x571794('0x21ad')](function(_0x53cd56){var _0x29e7ca=_0x571794,_0xd67aba=_0x86640f()[_0x29e7ca('0x1d2e')](_0x5f2544[_0x29e7ca('0xd5d')],{'id':_0x53cd56['id']});_0xd67aba&&_0x86640f()[_0x29e7ca('0xd0e')](_0xd67aba,_0x53cd56),_0x2c9cfc[_0x29e7ca('0xdb1')]({'title':'Report\x20properly\x20saved!','msg':_0x5f2544[_0x29e7ca('0x24bc')][_0x29e7ca('0x19fe')]?_0x5f2544['report'][_0x29e7ca('0x19fe')]+_0x29e7ca('0x2249'):''}),_0x59d2ee();})[_0x571794('0x1c1d')](function(_0x33ed50){var _0x176b78=_0x571794;if(_0x33ed50[_0x176b78('0x11c2')]&&_0x33ed50['data'][_0x176b78('0x1a69')]&&_0x33ed50[_0x176b78('0x11c2')][_0x176b78('0x1a69')][_0x176b78('0x577')]){_0x5f2544['errors']=_0x33ed50[_0x176b78('0x11c2')]['errors']||[{'message':_0x33ed50[_0x176b78('0x174f')](),'type':'api.analyticReport.update'}];for(var _0x395925=0x0;_0x395925<_0x33ed50[_0x176b78('0x11c2')]['errors']['length'];_0x395925++){_0x2c9cfc['error']({'title':_0x33ed50[_0x176b78('0x11c2')][_0x176b78('0x1a69')][_0x395925][_0x176b78('0x7fa')],'msg':_0x33ed50[_0x176b78('0x11c2')][_0x176b78('0x1a69')][_0x395925][_0x176b78('0x1224')]});}}else _0x2c9cfc[_0x176b78('0x2092')]({'title':_0x33ed50[_0x176b78('0x209')]?_0x176b78('0x22d')+_0x33ed50['status']+_0x176b78('0xa99')+_0x33ed50['statusText']:_0x176b78('0x21ed'),'msg':_0x33ed50[_0x176b78('0x11c2')]?JSON[_0x176b78('0x25e')](_0x33ed50[_0x176b78('0x11c2')][_0x176b78('0x1224')]):_0x33ed50[_0x176b78('0x174f')]()});});}function _0x3d7203(){var _0x10d81d=_0x24edfd;_0x5f2544[_0x10d81d('0x1a69')]=[];var _0x2e3391=_0xbc69ae[_0x10d81d('0xa33')]()['title'](_0x10d81d('0x196b'))['content'](_0x10d81d('0x476'))[_0x10d81d('0x7a7')]('Delete\x20Report')['ok'](_0x10d81d('0xbfd'))['cancel']('Cancel')[_0x10d81d('0x1e6d')](event);_0xbc69ae[_0x10d81d('0x853')](_0x2e3391)['then'](function(){var _0x2cdda7=_0x10d81d;_0x385c8b[_0xd09c0d]['delete']({'id':_0x5f2544['report']['id']})[_0x2cdda7('0x1376')][_0x2cdda7('0x21ad')](function(){var _0x19bcfe=_0x2cdda7;_0x86640f()[_0x19bcfe('0x16a2')](_0x5f2544[_0x19bcfe('0xd5d')],{'id':_0x5f2544[_0x19bcfe('0x24bc')]['id']}),_0x2c9cfc[_0x19bcfe('0xdb1')]({'title':_0x19bcfe('0x20a7'),'msg':_0x5f2544['report'][_0x19bcfe('0x19fe')]?_0x5f2544[_0x19bcfe('0x24bc')][_0x19bcfe('0x19fe')]+_0x19bcfe('0xb4a'):''}),_0x59d2ee();})[_0x2cdda7('0x1c1d')](function(_0x5306af){var _0x43f09b=_0x2cdda7;_0x5f2544[_0x43f09b('0x1a69')]=_0x5306af[_0x43f09b('0x11c2')][_0x43f09b('0x1a69')]||[{'message':_0x5306af['toString'](),'type':_0x43f09b('0xf55')}];});},function(){});}function _0x59d2ee(){var _0x3f285d=_0x24edfd;_0xbc69ae[_0x3f285d('0x1c24')]();}}const _0x21bdbc=_0x167a24;_0x439287[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'describeTable',_0x3877e3('0x1908'),_0x3877e3('0x1bd')];function _0x439287(_0x3e3f34,_0x219c35,_0x257a81,_0x582988){var _0x3e599f=_0x3877e3,_0x5129f4=this;_0x5129f4[_0x3e599f('0x24bc')]={},_0x5129f4[_0x3e599f('0xffa')]=_0x582988['getConditions'],_0x5129f4['init']=_0x1651b6,_0x5129f4[_0x3e599f('0x1790')]=_0x8f4fe7,_0x5129f4['addGroup']=_0x3ae829,_0x5129f4[_0x3e599f('0x15dc')]=_0x46ffd2,_0x5129f4[_0x3e599f('0x20aa')]=_0x1b8281;function _0x1651b6(_0x50e458,_0x3bed82){var _0x410bf6=_0x3e599f;_0x5129f4[_0x410bf6('0x24bc')]=_0x50e458,_0x5129f4['report']['condition']=angular[_0x410bf6('0xcf1')](_0x50e458[_0x410bf6('0xffa')])||{'group':{'operator':_0x410bf6('0x124b'),'rules':[]}},_0x5129f4[_0x410bf6('0x5ed')]=typeof _0x3bed82!=='undefined'?_0x3bed82:{'readOnly':!![],'canEdit':![],'canDelete':![]};for(var _0x24d280=0x0;_0x24d280<_0x5129f4[_0x410bf6('0x24bc')][_0x410bf6('0x271c')][_0x410bf6('0x89e')][_0x410bf6('0x1cb9')][_0x410bf6('0x577')];_0x24d280++){if(_0x5129f4['report'][_0x410bf6('0x271c')][_0x410bf6('0x89e')][_0x410bf6('0x1cb9')][_0x24d280][_0x410bf6('0xff8')]){var _0x6a160e=_0x5129f4[_0x410bf6('0x24bc')][_0x410bf6('0x271c')][_0x410bf6('0x89e')][_0x410bf6('0x1cb9')][_0x24d280][_0x410bf6('0xff8')][_0x410bf6('0x1af5')]('.');_0x6a160e['length']===0x1&&(_0x5129f4[_0x410bf6('0x24bc')][_0x410bf6('0x271c')][_0x410bf6('0x89e')][_0x410bf6('0x1cb9')][_0x24d280][_0x410bf6('0xff8')]=_0x5129f4[_0x410bf6('0x24bc')][_0x410bf6('0x1897')]+'.'+_0x5129f4[_0x410bf6('0x24bc')][_0x410bf6('0x271c')]['group'][_0x410bf6('0x1cb9')][_0x24d280][_0x410bf6('0xff8')]);}}_0x219c35[_0x410bf6('0x20cc')](_0x5129f4[_0x410bf6('0x24bc')][_0x410bf6('0x1897')])[_0x410bf6('0x21ad')](function(_0xcaf58c){var _0x2cfce0=_0x410bf6;_0x5129f4[_0x2cfce0('0x2d5')]=_0x86640f()[_0x2cfce0('0x5a8')](_0x86640f()[_0x2cfce0('0x223b')](_0xcaf58c),['$promise',_0x2cfce0('0x9f8'),'createdAt',_0x2cfce0('0x15af')]);})[_0x410bf6('0x1c1d')](function(_0x4eaa34){var _0x25c483=_0x410bf6;_0x257a81[_0x25c483('0x2092')]({'title':_0x4eaa34[_0x25c483('0x209')]?'API:'+_0x4eaa34[_0x25c483('0x209')]+_0x25c483('0xa99')+_0x4eaa34[_0x25c483('0x1808')]:'SYSTEM:DESCRIBE','msg':_0x4eaa34[_0x25c483('0x11c2')]?JSON['stringify'](_0x4eaa34[_0x25c483('0x11c2')]):_0x4eaa34[_0x25c483('0x174f')]()});});}function _0x8f4fe7(_0x101f50){var _0x30c131=_0x3e599f;_0x101f50[_0x30c131('0xd0c')]({'condition':'=','field':'','value':''});}function _0x3ae829(_0x1916e4){var _0x1d3632=_0x3e599f;_0x1916e4[_0x1d3632('0x206c')]({'group':{'operator':_0x1d3632('0x124b'),'rules':[]}});}function _0x46ffd2(_0x45fa0b,_0x3ab7ed,_0x3525c5){var _0x2a58ad=_0x3e599f,_0x287bf6=_0x3e3f34[_0x2a58ad('0xa33')]()[_0x2a58ad('0x4b4')](_0x2a58ad('0x1d05'))['htmlContent'](_0x2a58ad('0x1367'))[_0x2a58ad('0x7a7')](_0x2a58ad('0x7e1'))[_0x2a58ad('0x1e6d')](_0x3525c5)['ok']('OK')[_0x2a58ad('0x3b5')](_0x2a58ad('0x284b'));_0x3e3f34['show'](_0x287bf6)[_0x2a58ad('0x21ad')](function(){var _0x3a1719=_0x2a58ad;_0x45fa0b[_0x3a1719('0xafe')](_0x3ab7ed,0x1);},function(){var _0x5a5dec=_0x2a58ad;console[_0x5a5dec('0x6fb')](_0x5a5dec('0x284b'));});}function _0x1b8281(_0x174e28){var _0x59700f=_0x3e599f;return!_0x86640f()[_0x59700f('0xb34')](['IS\x20NULL','IS\x20NOT\x20NULL','IS\x20EMPTY',_0x59700f('0x2454')],_0x174e28);}}const _0x141cd7=_0x439287;_0x537a58[_0x3877e3('0x1a81')]=[_0x3877e3('0xccd')];function _0x537a58(_0x3560e8){var _0x4f788e=_0x3877e3,_0x31b8db={'cm_companies':_0x4f788e('0x2725'),'cm_contacts':'cmContact','cm_hopper':_0x4f788e('0x1b37'),'cm_hopper_final':'cmHopperFinal','cm_hopper_history':_0x4f788e('0x1ec7'),'cm_lists':_0x4f788e('0x11e0'),'chat_websites':_0x4f788e('0xe3c'),'chat_queues':'chatQueue','chat_interactions':'chatInteraction','chat_messages':_0x4f788e('0x237c'),'chat_offline_messages':_0x4f788e('0x1f83'),'report_chat_queue':_0x4f788e('0x232a'),'report_chat_transfer':_0x4f788e('0x1a9a'),'mail_accounts':_0x4f788e('0x66'),'mail_queues':_0x4f788e('0xb3'),'mail_interactions':_0x4f788e('0x57'),'mail_messages':_0x4f788e('0x4cd'),'report_mail_queue':_0x4f788e('0x1047'),'report_mail_transfer':_0x4f788e('0x606'),'openchannel_accounts':_0x4f788e('0x151f'),'openchannel_queues':'openchannelQueue','openchannel_interactions':_0x4f788e('0xb01'),'openchannel_messages':'openchannelMessage','report_openchannel_queue':_0x4f788e('0x18f6'),'report_openchannel_transfer':'openchannelTransferReport','sms_accounts':_0x4f788e('0xa10'),'sms_queues':_0x4f788e('0x754'),'sms_interactions':'smsInteraction','sms_messages':_0x4f788e('0x1393'),'report_sms_queue':_0x4f788e('0x23e5'),'report_sms_transfer':_0x4f788e('0x379'),'fax_accounts':_0x4f788e('0xeb2'),'fax_queues':_0x4f788e('0x1cb7'),'fax_interactions':_0x4f788e('0x2592'),'fax_messages':'faxMessage','report_fax_transfer':'faxTransferReport','report_fax_queue':'faxQueueReport','report_call':_0x4f788e('0x10ab'),'report_agent':'voiceAgentReport','report_square':_0x4f788e('0x1267'),'report_member':_0x4f788e('0x222b'),'report_queue':'voiceQueueReport','report_square_details':'squareReportDetail','report_dial':'voiceDialReport','report_jscripty_sessions':_0x4f788e('0x1ca9'),'report_jscripty_questions':'jscriptyQuestionReport','report_jscripty_answers':_0x4f788e('0xf15'),'users':_0x4f788e('0x1775'),'voice_recordings':_0x4f788e('0x9b8'),'cdr':_0x4f788e('0xc4'),'whatsapp_accounts':'whatsappAccount','whatsapp_queues':_0x4f788e('0x1f8f'),'whatsapp_interactions':_0x4f788e('0xe4a'),'whatsapp_messages':_0x4f788e('0x19a2'),'report_whatsapp_queue':_0x4f788e('0x6a1'),'report_whatsapp_transfer':_0x4f788e('0x1cfa')};return{'getMap':function _0xdc170e(){var _0x1ed07c=_0x4f788e,_0xd24c6e=[];return _0x86640f()[_0x1ed07c('0xd54')](_0x31b8db,function(_0x438b38,_0x189640){var _0x1fb4df=_0x1ed07c;_0xd24c6e[_0x1fb4df('0x206c')]({'name':_0x189640,'api':_0x438b38});}),_0xd24c6e;},'getColumns':function _0x179ff6(_0x232acc){var _0x4e68d4=_0x4f788e,_0x2ef50d=_0x31b8db[_0x232acc];return _0x3560e8[_0x2ef50d]['describe']()[_0x4e68d4('0x1376')];}};}const _0x4e1e60=_0x537a58;_0x439a74['$inject']=[_0x3877e3('0x95a'),'$location',_0x3877e3('0x1850'),_0x3877e3('0x1908'),_0x3877e3('0x24bc'),_0x3877e3('0x51'),_0x3877e3('0x713'),'metrics',_0x3877e3('0x2d5'),_0x3877e3('0x1bd'),_0x3877e3('0xccd'),_0x3877e3('0x5ed')];function _0x439a74(_0x2cc81b,_0x2ddb86,_0x32f2e1,_0x511352,_0x23ce35,_0x126d30,_0x2d0585,_0x3b29d2,_0x4af7c5,_0x3a9a9e,_0x754d08,_0x277d78){var _0x59dfc0=_0x3877e3,_0x4b54a7=this;_0x4b54a7['errors']=[],_0x4b54a7['title']=_0x59dfc0('0x4df'),_0x4b54a7[_0x59dfc0('0x24bc')]=_0x23ce35,_0x4b54a7['reportField']=angular[_0x59dfc0('0xd75')](_0x2d0585),_0x4b54a7['reportFields']=_0x126d30,_0x4b54a7[_0x59dfc0('0x78b')]=_0x3b29d2,_0x4b54a7['columns']=_0x4af7c5,_0x4b54a7['sqlUtil']=_0x3a9a9e,_0x4b54a7[_0x59dfc0('0x109')]=![],_0x4b54a7[_0x59dfc0('0x5ed')]=_0x277d78;if(!_0x4b54a7[_0x59dfc0('0x713')])_0x4b54a7['reportField']={'type':_0x59dfc0('0x23bd'),'function':null,'format':null,'groupBy':![],'orderBy':null},_0x4b54a7[_0x59dfc0('0x4b4')]='New\x20Report\x20Field',_0x4b54a7['newReportField']=!![];else{_0x4b54a7[_0x59dfc0('0x713')]['type']=_0x4b54a7[_0x59dfc0('0x713')][_0x59dfc0('0xf50')]?_0x59dfc0('0xf50'):_0x4b54a7[_0x59dfc0('0x713')][_0x59dfc0('0x247c')]?_0x59dfc0('0x1e34'):_0x59dfc0('0x23bd');if(_0x4b54a7[_0x59dfc0('0x713')][_0x59dfc0('0xff8')]&&!_0x4b54a7['reportField'][_0x59dfc0('0xf50')]&&_0x86640f()['isNil'](_0x4b54a7[_0x59dfc0('0x713')]['MetricId'])){var _0x325d5f=_0x4b54a7[_0x59dfc0('0x713')]['field'][_0x59dfc0('0x1af5')]('.');_0x325d5f[_0x59dfc0('0x577')]===0x1&&(_0x4b54a7[_0x59dfc0('0x713')][_0x59dfc0('0xff8')]=_0x4b54a7[_0x59dfc0('0x24bc')]['table']+'.'+_0x4b54a7['reportField'][_0x59dfc0('0xff8')]);}}_0x4b54a7[_0x59dfc0('0x1e76')]=_0x293c2b,_0x4b54a7['saveReportField']=_0x1880e2,_0x4b54a7['deleteReportField']=_0x462e10,_0x4b54a7[_0x59dfc0('0x167')]=_0x91e327;function _0x293c2b(){var _0xb53700=_0x59dfc0;_0x4b54a7[_0xb53700('0x1a69')]=[],_0x4b54a7[_0xb53700('0x713')]['custom']=_0x4b54a7[_0xb53700('0x713')][_0xb53700('0x7fa')]===_0xb53700('0xf50'),_0x4b54a7[_0xb53700('0x713')][_0xb53700('0x247c')]=_0x4b54a7['reportField'][_0xb53700('0x7fa')]===_0xb53700('0x1e34')?_0x4b54a7[_0xb53700('0x713')][_0xb53700('0x247c')]:null,_0x4b54a7['reportField'][_0xb53700('0x1bbd')]=_0x4b54a7[_0xb53700('0x24bc')]['id'],_0x754d08[_0xb53700('0x1575')][_0xb53700('0x186f')](_0x4b54a7['reportField'])['$promise']['then'](function(_0x264c53){var _0x3bf6df=_0xb53700;_0x4b54a7[_0x3bf6df('0x51')][_0x3bf6df('0x206c')](_0x264c53),_0x511352['success']({'title':_0x3bf6df('0x1455'),'msg':_0x4b54a7[_0x3bf6df('0x713')]['field']?_0x4b54a7['reportField'][_0x3bf6df('0xff8')]+_0x3bf6df('0x1694'):_0x4b54a7[_0x3bf6df('0x713')][_0x3bf6df('0x7fa')]+_0x3bf6df('0x1694')}),_0x91e327();})[_0xb53700('0x1c1d')](function(_0x48c036){var _0x1c5b06=_0xb53700;_0x4b54a7['errors']=_0x48c036[_0x1c5b06('0x11c2')][_0x1c5b06('0x1a69')]||[{'message':_0x48c036['toString'](),'type':_0x1c5b06('0xfb')}];});}function _0x1880e2(){var _0x10f1c5=_0x59dfc0;_0x4b54a7[_0x10f1c5('0x1a69')]=[],_0x4b54a7[_0x10f1c5('0x713')][_0x10f1c5('0xf50')]=_0x4b54a7[_0x10f1c5('0x713')]['type']===_0x10f1c5('0xf50'),_0x4b54a7['reportField'][_0x10f1c5('0x247c')]=_0x4b54a7[_0x10f1c5('0x713')][_0x10f1c5('0x7fa')]===_0x10f1c5('0x1e34')?_0x4b54a7[_0x10f1c5('0x713')]['MetricId']:null,_0x754d08[_0x10f1c5('0x1575')][_0x10f1c5('0x5ef')]({'id':_0x4b54a7[_0x10f1c5('0x713')]['id']},_0x4b54a7[_0x10f1c5('0x713')])[_0x10f1c5('0x1376')]['then'](function(_0x4f91e7){var _0xa1f428=_0x10f1c5,_0x2145f8=_0x86640f()[_0xa1f428('0x1d2e')](_0x4b54a7['reportFields'],{'id':_0x4f91e7['id']});_0x2145f8&&_0x86640f()['merge'](_0x2145f8,_0x4f91e7),_0x511352['success']({'title':_0xa1f428('0x220c'),'msg':_0x4b54a7[_0xa1f428('0x713')][_0xa1f428('0xff8')]?_0x4b54a7['reportField']['field']+_0xa1f428('0x2249'):''}),_0x91e327();})[_0x10f1c5('0x1c1d')](function(_0x2bc2fc){var _0x705ca0=_0x10f1c5;_0x4b54a7[_0x705ca0('0x1a69')]=_0x2bc2fc['data'][_0x705ca0('0x1a69')]||[{'message':_0x2bc2fc['toString'](),'type':_0x705ca0('0x2461')}];});}function _0x462e10(_0x429716){var _0x4c281c=_0x59dfc0;_0x4b54a7[_0x4c281c('0x1a69')]=[];var _0x3e8ccb=_0x32f2e1[_0x4c281c('0xa33')]()[_0x4c281c('0x4b4')](_0x4c281c('0x196b'))[_0x4c281c('0x13fb')]('The\x20field\x20will\x20be\x20deleted.')['ariaLabel']('Delete\x20Report')['ok']('Delete')[_0x4c281c('0x3b5')](_0x4c281c('0x1f40'))[_0x4c281c('0x1e6d')](_0x429716);_0x32f2e1['show'](_0x3e8ccb)[_0x4c281c('0x21ad')](function(){var _0x26f4e3=_0x4c281c;_0x754d08[_0x26f4e3('0x1575')][_0x26f4e3('0x1164')]({'id':_0x4b54a7[_0x26f4e3('0x713')]['id']})['$promise'][_0x26f4e3('0x21ad')](function(){var _0x46a0de=_0x26f4e3;_0x86640f()[_0x46a0de('0x16a2')](_0x4b54a7[_0x46a0de('0x51')],{'id':_0x4b54a7[_0x46a0de('0x713')]['id']}),_0x511352[_0x46a0de('0xdb1')]({'title':'Report\x20Field\x20properly\x20deleted!','msg':_0x4b54a7[_0x46a0de('0x713')][_0x46a0de('0xff8')]?_0x4b54a7[_0x46a0de('0x713')][_0x46a0de('0xff8')]+_0x46a0de('0xb4a'):''}),_0x91e327();})[_0x26f4e3('0x1c1d')](function(_0x28a510){var _0x47ebea=_0x26f4e3;_0x4b54a7['errors']=_0x28a510['data']['errors']||[{'message':_0x28a510[_0x47ebea('0x174f')](),'type':_0x47ebea('0x7d6')}];});},function(){});}function _0x91e327(){var _0x4ee741=_0x59dfc0;_0x32f2e1[_0x4ee741('0x1c24')]();}}const _0x18e068=_0x439a74,_0x1f777c=_0x398308['p']+_0x3877e3('0x2787');_0x2b6cea['$inject']=['$cookies',_0x3877e3('0x95a'),_0x3877e3('0x2313'),'$mdDialog','$document',_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x1c67'),_0x3877e3('0x1bd'),_0x3877e3('0x13c1')];function _0x2b6cea(_0xcb5fff,_0x267792,_0x310692,_0x4ac3d0,_0x4fb0e0,_0x48cbb2,_0x3ebb62,_0x19df0b,_0x77a602,_0x73e5e5){var _0x5f30b7=_0x3877e3,_0x2a6ea6=this;_0x2a6ea6[_0x5f30b7('0x24bc')]={},_0x2a6ea6[_0x5f30b7('0x51')]={'count':0x0,'rows':[]},_0x2a6ea6[_0x5f30b7('0x1526')]=_0x86640f()[_0x5f30b7('0xcde')](_0x77a602[_0x5f30b7('0x1fa5')],_0x5f30b7('0x2228')),_0x2a6ea6[_0x5f30b7('0x1efc')]=_0x86640f()[_0x5f30b7('0xcde')](_0x77a602[_0x5f30b7('0xdde')],_0x5f30b7('0x2228')),_0x2a6ea6[_0x5f30b7('0x2241')]=_0x86640f()[_0x5f30b7('0xcde')](_0x77a602['getGroupBy'],_0x5f30b7('0x2228')),_0x2a6ea6[_0x5f30b7('0x11df')]=_0x86640f()[_0x5f30b7('0xcde')](_0x77a602[_0x5f30b7('0x211c')],_0x5f30b7('0x2228')),_0x2a6ea6[_0x5f30b7('0x16a0')]=[],_0x2a6ea6[_0x5f30b7('0x77')]={'fields':_0x5f30b7('0x1e6b'),'nolimit':!![]},_0x2a6ea6[_0x5f30b7('0x1f1a')]={'animation':0x64,'onSort':function _0x3dc75(_0x41a6d9){var _0x20aadd=_0x5f30b7;_0x3ebb62[_0x20aadd('0x1575')]['addFields']({'id':_0x2a6ea6[_0x20aadd('0x24bc')]['id']},_0x41a6d9['models'])[_0x20aadd('0x1376')][_0x20aadd('0x21ad')](function(_0x284fce){var _0x132991=_0x20aadd;_0x2a6ea6['reportFields'][_0x132991('0x1b33')]=_0x284fce;})[_0x20aadd('0x1c1d')](function(_0x4f432e){var _0x3bfbc9=_0x20aadd;_0x48cbb2['error']({'title':_0x4f432e['status']?_0x3bfbc9('0x22d')+_0x4f432e[_0x3bfbc9('0x209')]+_0x3bfbc9('0xa99')+_0x4f432e[_0x3bfbc9('0x1808')]:_0x3bfbc9('0x2003')});});}},_0x2a6ea6[_0x5f30b7('0x1d75')]=_0x251ffb,_0x2a6ea6['deleteConfirm']=_0x1a853e,_0x2a6ea6[_0x5f30b7('0xdb1')]=_0x219d9c,_0x2a6ea6[_0x5f30b7('0x26eb')]=_0x50158f,_0x2a6ea6[_0x5f30b7('0x21cc')]=_0x596cd9,_0x2a6ea6[_0x5f30b7('0x24e3')]=_0x315d36,_0x2a6ea6[_0x5f30b7('0x10b3')]=_0x2d0237,_0x2a6ea6['getMetricName']=_0x1259a5,_0x2a6ea6['getMetricValue']=_0x2cb792;function _0x251ffb(_0x4114cf,_0x4a7d2d){var _0x5ab0b9=_0x5f30b7;_0x2a6ea6[_0x5ab0b9('0x24bc')]=_0x4114cf,_0x2a6ea6[_0x5ab0b9('0x77')][_0x5ab0b9('0x1bbd')]=_0x2a6ea6[_0x5ab0b9('0x24bc')]['id'],_0x2a6ea6['crudPermissions']=typeof _0x4a7d2d!==_0x5ab0b9('0xddc')?_0x4a7d2d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2a6ea6[_0x5ab0b9('0x1f1a')][_0x5ab0b9('0x30')]=!_0x2a6ea6['crudPermissions'][_0x5ab0b9('0x6e2')]?!![]:![],_0x19df0b['getColumns'](_0x2a6ea6[_0x5ab0b9('0x24bc')][_0x5ab0b9('0x1897')])[_0x5ab0b9('0x21ad')](function(_0x3d981a){var _0x18db77=_0x5ab0b9;return _0x2a6ea6[_0x18db77('0x2d5')]=_0x86640f()[_0x18db77('0x5a8')](_0x86640f()['keys'](_0x3d981a),[_0x18db77('0x1376'),'$resolved']),_0x3ebb62[_0x18db77('0x14bc')]['get']({'fields':_0x18db77('0x588'),'nolimit':!![]})[_0x18db77('0x1376')];})[_0x5ab0b9('0x21ad')](function(_0x72001d){var _0x303579=_0x5ab0b9;_0x2a6ea6[_0x303579('0x78b')]=_0x72001d['rows'];})[_0x5ab0b9('0x1c1d')](function(_0x7b9665){var _0x33705d=_0x5ab0b9;_0x48cbb2[_0x33705d('0x2092')]({'title':_0x7b9665[_0x33705d('0x209')]?'API:'+_0x7b9665['status']+_0x33705d('0xa99')+_0x7b9665[_0x33705d('0x1808')]:_0x33705d('0x7b2'),'msg':_0x7b9665['data']?JSON[_0x33705d('0x25e')](_0x7b9665[_0x33705d('0x11c2')]):_0x7b9665[_0x33705d('0x174f')]()});}),_0x2a6ea6[_0x5ab0b9('0x26eb')]();}function _0x1a853e(_0x4dbfb7,_0x218d70){var _0x7bfe89=_0x5f30b7,_0x48e4b=_0x4ac3d0[_0x7bfe89('0xa33')]()[_0x7bfe89('0x4b4')](_0x7bfe89('0x2207'))['htmlContent'](_0x7bfe89('0x622')+_0x4dbfb7['field']+_0x7bfe89('0x2135')+_0x7bfe89('0x25e0'))['ariaLabel'](_0x7bfe89('0x238b'))['targetEvent'](_0x218d70)['ok']('OK')[_0x7bfe89('0x3b5')]('CANCEL');_0x4ac3d0[_0x7bfe89('0x853')](_0x48e4b)[_0x7bfe89('0x21ad')](function(){_0x315d36(_0x4dbfb7);},function(){console['log']('CANCEL');});}var _0x37a0fd=!![];_0x267792[_0x5f30b7('0x10e8')](_0x5f30b7('0x2269'),function(){var _0x32b442=_0x5f30b7;_0x37a0fd?_0x310692(function(){_0x37a0fd=![];}):_0x2a6ea6[_0x32b442('0x26eb')]();});function _0x219d9c(_0xf23d6){_0x2a6ea6['reportFields']=_0xf23d6||{'count':0x0,'rows':[]};}function _0x50158f(){var _0x2458ae=_0x5f30b7;_0x2a6ea6[_0x2458ae('0x71b')]=_0x3ebb62['analyticFieldReport'][_0x2458ae('0x595')](_0x2a6ea6['query'],_0x219d9c)['$promise'];}function _0x596cd9(_0x123a41,_0x25cfa5){var _0x71b90f=_0x5f30b7;_0x4ac3d0[_0x71b90f('0x853')]({'controller':_0x71b90f('0x217e'),'controllerAs':'vm','templateUrl':_0x1f777c,'parent':angular[_0x71b90f('0x1676')](_0x4fb0e0[_0x71b90f('0x2452')]),'targetEvent':_0x123a41,'clickOutsideToClose':!![],'locals':{'report':_0x2a6ea6['report'],'reportField':_0x25cfa5,'reportFields':_0x2a6ea6['reportFields']['rows'],'metrics':_0x2a6ea6[_0x71b90f('0x78b')],'columns':_0x2a6ea6[_0x71b90f('0x2d5')],'setting':null,'crudPermissions':_0x2a6ea6[_0x71b90f('0x5ed')]}});}function _0x315d36(_0x1a5cdf){var _0x46dafe=_0x5f30b7;_0x3ebb62[_0x46dafe('0x1575')][_0x46dafe('0x1164')]({'id':_0x1a5cdf['id']})[_0x46dafe('0x1376')][_0x46dafe('0x21ad')](function(){var _0x3d4df3=_0x46dafe;_0x2a6ea6[_0x3d4df3('0x16a0')]=[],_0x86640f()[_0x3d4df3('0x16a2')](_0x2a6ea6['reportFields'][_0x3d4df3('0x1b33')],{'id':_0x1a5cdf['id']}),_0x2a6ea6[_0x3d4df3('0x51')][_0x3d4df3('0x205f')]-=0x1,!_0x2a6ea6[_0x3d4df3('0x51')][_0x3d4df3('0x1b33')]['length']&&_0x2a6ea6[_0x3d4df3('0x26eb')](),_0x48cbb2[_0x3d4df3('0xdb1')]({'title':_0x3d4df3('0x2321'),'msg':_0x1a5cdf[_0x3d4df3('0xff8')]?_0x1a5cdf[_0x3d4df3('0xff8')]+'\x20has\x20been\x20deleted!':''});})[_0x46dafe('0x1c1d')](function(_0x983fc8){var _0x4db193=_0x46dafe;_0x48cbb2[_0x4db193('0x2092')]({'title':_0x983fc8['status']?_0x4db193('0x22d')+_0x983fc8[_0x4db193('0x209')]+_0x4db193('0xa99')+_0x983fc8[_0x4db193('0x1808')]:_0x4db193('0x1e2c'),'msg':_0x983fc8[_0x4db193('0x11c2')]?JSON[_0x4db193('0x25e')](_0x983fc8[_0x4db193('0x11c2')]):_0x983fc8['toString']()});});}function _0x2d0237(_0x45b7ed){var _0x5ddde9=_0x5f30b7,_0x20082d=_0x4ac3d0[_0x5ddde9('0xa33')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')[_0x5ddde9('0x276b')](_0x5ddde9('0x622')+_0x2a6ea6[_0x5ddde9('0x16a0')][_0x5ddde9('0x577')]+_0x5ddde9('0xd74')+'\x20will\x20be\x20deleted.')[_0x5ddde9('0x7a7')](_0x5ddde9('0x85f'))[_0x5ddde9('0x1e6d')](_0x45b7ed)['ok']('OK')['cancel'](_0x5ddde9('0x284b'));_0x4ac3d0[_0x5ddde9('0x853')](_0x20082d)['then'](function(){var _0x9de107=_0x5ddde9;_0x2a6ea6[_0x9de107('0x16a0')][_0x9de107('0x1a52')](function(_0x36d8c3){_0x315d36(_0x36d8c3);}),_0x2a6ea6[_0x9de107('0x16a0')]=[];});}function _0x1259a5(_0x1074b9){var _0x5597f7=_0x5f30b7,_0x2a26bd=_0x86640f()[_0x5597f7('0x1d2e')](_0x2a6ea6['metrics'],{'id':_0x1074b9});return _0x2a26bd?_0x2a26bd[_0x5597f7('0x19fe')]:_0x73e5e5['instant'](_0x5597f7('0x1a07'));}function _0x2cb792(_0x5666c4){var _0x54f7be=_0x5f30b7,_0x1166b6=_0x86640f()[_0x54f7be('0x1d2e')](_0x2a6ea6['metrics'],{'id':_0x5666c4});return _0x1166b6?_0x1166b6['metric']:_0x73e5e5['instant'](_0x54f7be('0x1a07'));}}const _0x385466=_0x2b6cea;function _0x31827b(){var _0x5b0179=_0x3877e3,_0x5cca33=[{'value':_0x5b0179('0x2688'),'option':function _0x10a955(_0x4b0f12){var _0x4c4a31=_0x5b0179;return _0x4c4a31('0x50b')+_0x4b0f12+')';}},{'value':'COUNT','option':function _0x13a279(_0x2e1121){var _0x1869f0=_0x5b0179;return _0x1869f0('0x88b')+_0x2e1121+')';}},{'value':_0x5b0179('0x1b9f'),'option':function _0x18e005(_0x1fa340){var _0x992d07=_0x5b0179;return _0x992d07('0xb03')+_0x1fa340+')';}},{'value':_0x5b0179('0x1205'),'option':function _0x3403ba(_0x130a78){var _0xbeb1c3=_0x5b0179;return _0xbeb1c3('0x136f')+_0x130a78+')';}},{'value':'MIN','option':function _0x3aa59c(_0x1f925c){var _0x219582=_0x5b0179;return _0x219582('0x2fc')+_0x1f925c+')';}},{'value':'AVG','option':function _0x271e4c(_0x56bfd5){var _0x4e1536=_0x5b0179;return _0x4e1536('0xb43')+_0x56bfd5+')';}},{'value':_0x5b0179('0x1b0d'),'option':function _0x6574d(_0x54d106){var _0x5672ce=_0x5b0179;return _0x5672ce('0x1008')+_0x54d106+')';}},{'value':'GROUP_CONCAT\x20ASC','option':function _0x1e9c28(_0x902e21){var _0x5a165f=_0x5b0179;return _0x5a165f('0x1008')+_0x902e21+_0x5a165f('0x1f5f')+_0x902e21+'\x20ASC)';}},{'value':_0x5b0179('0xef5'),'option':function _0x11b236(_0x3691b4){var _0x7a36b0=_0x5b0179;return _0x7a36b0('0x1008')+_0x3691b4+_0x7a36b0('0x1f5f')+_0x3691b4+_0x7a36b0('0xda');}}],_0x17139e=[{'value':_0x5b0179('0x1b6'),'option':function _0xbc1868(_0xba68c1){return'SEC_TO_TIME\x20('+_0xba68c1+')';}},{'value':_0x5b0179('0x3c3'),'option':function _0x2d4214(_0x3ede18){var _0x24718d=_0x5b0179;return _0x24718d('0xcd0')+_0x3ede18+')';}},{'value':_0x5b0179('0x1cde'),'option':function _0x335a40(_0x161ff8){var _0x5cd5b6=_0x5b0179;return _0x5cd5b6('0x2528')+_0x161ff8+')';}},{'value':'ROUND','option':function _0x2699cd(_0x189368){var _0x149729=_0x5b0179;return _0x149729('0x237f')+_0x189368+')';}},{'value':'UNIX_TIMESTAMP','option':function _0x1e281d(_0xadc0fb){var _0x932977=_0x5b0179;return _0x932977('0x1d86')+_0xadc0fb+')';}}],_0x4e95b8=[{'value':![],'option':function _0x37aeba(){return'No';}},{'value':!![],'option':function _0x45cbed(_0x33ab6e){var _0x86d2e5=_0x5b0179;return _0x86d2e5('0xc52')+_0x33ab6e;}}],_0x3c7e01=[{'value':_0x5b0179('0xdcd'),'option':function _0x1e6811(_0x4ae498){var _0x51d1b4=_0x5b0179;return _0x51d1b4('0x1607')+_0x4ae498+'\x20ASC';}},{'value':_0x5b0179('0x1675'),'option':function _0x137def(_0x456897){var _0x3c6ef2=_0x5b0179;return _0x3c6ef2('0x1607')+_0x456897+_0x3c6ef2('0x56c');}}],_0x5ec621=['=','!=','<','<=','>','>=',_0x5b0179('0x7c2'),_0x5b0179('0xb19'),_0x5b0179('0x1f77'),_0x5b0179('0x1702'),_0x5b0179('0x186b'),_0x5b0179('0x2454')];return{'getFunctions':_0x5cca33,'getFormats':_0x17139e,'getGroupBy':_0x4e95b8,'getOrderBy':_0x3c7e01,'getConditions':_0x5ec621};}const _0x118a1d=_0x31827b;_0x23b58e[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),'toasty','api',_0x3877e3('0x24bc'),_0x3877e3('0x15bc'),_0x3877e3('0xab4')];function _0x23b58e(_0x507c60,_0x54675c,_0x1cdaeb,_0x50515d,_0x383ac4,_0x3e23b9){var _0x41153f=_0x3877e3,_0x4b5179=this;_0x4b5179['report']=_0x50515d||{},_0x4b5179[_0x41153f('0xab4')]=_0x3e23b9&&_0x3e23b9[_0x41153f('0x205f')]==0x1?_0x3e23b9[_0x41153f('0x1b33')][0x0]:null,_0x4b5179[_0x41153f('0x5ed')]=_0x383ac4[_0x41153f('0x1778')](_0x4b5179[_0x41153f('0xab4')]?_0x4b5179[_0x41153f('0xab4')][_0x41153f('0x5ed')]:null),_0x4b5179[_0x41153f('0x302')]=_0x507c60[_0x41153f('0x171b')]['tab']||0x0,_0x4b5179[_0x41153f('0x1e44')]=_0x48d3c9,_0x4b5179[_0x41153f('0x524')]=_0x2b4ab9,_0x4b5179['previewReport']=_0x240d44,_0x4b5179[_0x41153f('0x131b')]=_0x2ce2da,_0x4b5179[_0x41153f('0x2519')]=_0x367c00,_0x4b5179[_0x41153f('0x9e1')]=_0x4adaee,_0x4b5179[_0x41153f('0x1ea9')]=_0x387524;function _0x48d3c9(){_0x507c60['go']('app.analytics.reports',{},{'reload':'app.analytics.reports'});}function _0x2b4ab9(){var _0x4a1f40=_0x41153f;_0x4b5179[_0x4a1f40('0x24bc')][_0x4a1f40('0xffa')]=angular[_0x4a1f40('0x20c6')](_0x4b5179[_0x4a1f40('0x24bc')]['condition']),_0x1cdaeb['analyticCustomReport'][_0x4a1f40('0x5ef')]({'id':_0x4b5179['report']['id']},_0x86640f()['omit'](_0x4b5179[_0x4a1f40('0x24bc')],_0x4a1f40('0x283e')))['$promise'][_0x4a1f40('0x21ad')](function(){var _0x464698=_0x4a1f40;_0x54675c[_0x464698('0xdb1')]({'title':'Report\x20updated!','msg':_0x4b5179['report'][_0x464698('0x19fe')]?_0x4b5179[_0x464698('0x24bc')][_0x464698('0x19fe')]+_0x464698('0xa8d'):''});})['catch'](function(_0x5631d2){var _0x6570b8=_0x4a1f40;_0x54675c[_0x6570b8('0x2092')]({'title':_0x5631d2[_0x6570b8('0x209')]?_0x6570b8('0x22d')+_0x5631d2[_0x6570b8('0x209')]+_0x6570b8('0xa99')+_0x5631d2[_0x6570b8('0x1808')]:_0x6570b8('0x1ad5'),'msg':_0x5631d2['data']?JSON[_0x6570b8('0x25e')](_0x5631d2[_0x6570b8('0x11c2')]):_0x5631d2[_0x6570b8('0x174f')]()});});}function _0x240d44(){var _0x32812f=_0x41153f;_0x4b5179[_0x32812f('0x2d5')]=[],_0x4b5179[_0x32812f('0x1b33')]=[],_0x4b5179[_0x32812f('0x2092')]=![],_0x1cdaeb[_0x32812f('0x1575')][_0x32812f('0x595')]({'fields':_0x32812f('0x1cd9'),'nolimit':!![],'CustomReportId':_0x4b5179[_0x32812f('0x24bc')]['id']})[_0x32812f('0x1376')]['then'](function(_0x171f10){var _0x3aa7f2=_0x32812f;return _0x4b5179[_0x3aa7f2('0x2d5')]=_0x171f10?_0x171f10[_0x3aa7f2('0x1b33')]:[],_0x1cdaeb[_0x3aa7f2('0x2041')][_0x3aa7f2('0x8a1')]({'id':_0x4b5179[_0x3aa7f2('0x24bc')]['id']})[_0x3aa7f2('0x1376')];})[_0x32812f('0x21ad')](function(_0x2305fb){var _0x2f4fb1=_0x32812f;_0x4b5179[_0x2f4fb1('0x1b33')]=_0x2305fb;})['catch'](function(_0x308eee){var _0x594deb=_0x32812f;console[_0x594deb('0x6fb')](_0x308eee),_0x4b5179[_0x594deb('0x2092')]={'title':_0x308eee[_0x594deb('0x209')]?_0x594deb('0x22d')+_0x308eee[_0x594deb('0x209')]+_0x594deb('0xa99')+_0x308eee[_0x594deb('0x1808')]:_0x594deb('0x2156'),'msg':_0x308eee[_0x594deb('0x11c2')]?_0x308eee['data'][_0x594deb('0x1224')]:_0x308eee[_0x594deb('0x174f')](),'sql':_0x308eee['data']?_0x308eee[_0x594deb('0x11c2')][_0x594deb('0x12e2')]?_0x308eee[_0x594deb('0x11c2')][_0x594deb('0x12e2')][_0x594deb('0xdb3')]:_0x594deb('0x6e5'):'NO\x20QUERY'},_0x54675c[_0x594deb('0x2092')](_0x4b5179[_0x594deb('0x2092')]);});}function _0x387524(_0x5a5ccc,_0x372650){var _0x228cf0=_0x41153f;return _0x1088bc()(_0x372650,_0x228cf0('0x759'),!![])[_0x228cf0('0x118b')]()&&(_0x372650=_0x1088bc()(_0x372650,'')[_0x228cf0('0x153')](_0x228cf0('0x1e15'))),_0x372650;}function _0x2ce2da(){var _0xa576a5=_0x41153f;return _0x4b5179[_0xa576a5('0x22a2')]='Loading...',_0x1cdaeb['analyticCustomReport'][_0xa576a5('0x77')]({'id':_0x4b5179[_0xa576a5('0x24bc')]['id']})[_0xa576a5('0x1376')][_0xa576a5('0x21ad')](function(_0x584dc0){var _0x16834f=_0xa576a5;_0x4b5179[_0x16834f('0x22a2')]=_0x584dc0['sql'];})[_0xa576a5('0x1c1d')](function(_0x54533b){var _0x3d259c=_0xa576a5;_0x4b5179[_0x3d259c('0x22a2')]='',console[_0x3d259c('0x6fb')](_0x54533b),_0x4b5179[_0x3d259c('0x2092')]={'title':_0x54533b[_0x3d259c('0x209')]?_0x3d259c('0x22d')+_0x54533b[_0x3d259c('0x209')]+_0x3d259c('0xa99')+_0x54533b['statusText']:_0x3d259c('0x2156'),'msg':_0x54533b[_0x3d259c('0x11c2')]?_0x54533b[_0x3d259c('0x11c2')]['message']:_0x54533b['toString'](),'sql':_0x54533b[_0x3d259c('0x11c2')]?_0x54533b[_0x3d259c('0x11c2')]['parent']?_0x54533b[_0x3d259c('0x11c2')][_0x3d259c('0x12e2')][_0x3d259c('0xdb3')]:_0x3d259c('0x6e5'):_0x3d259c('0x6e5')},_0x54675c['error'](_0x4b5179[_0x3d259c('0x2092')]);});}function _0x367c00(_0x5f8c99,_0x41a438){var _0x5d620d=_0x41153f;if(_0x4adaee(_0x5f8c99))return _0x86640f()[_0x5d620d('0x26c3')](_0x5f8c99,_0x41a438)[_0x5d620d('0x136')](',');return'';}function _0x4adaee(_0x5c13ef){var _0x894129=_0x41153f;return _0x86640f()[_0x894129('0x9e1')](_0x5c13ef);}}const _0x2465dd=_0x23b58e;_0x29fd02[_0x3877e3('0x1a81')]=[_0x3877e3('0x14c7'),_0x3877e3('0x1850'),_0x3877e3('0x1908'),_0x3877e3('0x24bc'),_0x3877e3('0xccd'),_0x3877e3('0xba3')];function _0x29fd02(_0x1161ac,_0x34e149,_0x58d36c,_0x296172,_0x84f6cd,_0xe6d705){var _0x24582c=_0x3877e3,_0x2821ed=this;_0x2821ed[_0x24582c('0x1a69')]=[],_0x2821ed[_0x24582c('0x24bc')]=angular[_0x24582c('0xd75')](_0x296172),_0x2821ed['valueReplacer']=_0x5dbb2b,_0x2821ed['closeDialog']=_0x2dac02,_0x4717d3();function _0x4717d3(){var _0x1c52b8=_0x24582c;_0x2821ed[_0x1c52b8('0x2d5')]=[],_0x2821ed[_0x1c52b8('0x1b33')]=[],_0x2821ed['error']=![];var _0x11b96={'fields':_0x1c52b8('0x1cd9'),'nolimit':!![]};_0x11b96[_0xe6d705==='analyticCustomReport'?'CustomReportId':'DefaultReportId']=_0x2821ed[_0x1c52b8('0x24bc')]['id'],_0x2821ed[_0x1c52b8('0x71b')]=_0x84f6cd['analyticFieldReport'][_0x1c52b8('0x595')](_0x11b96)['$promise']['then'](function(_0x5b38cd){var _0x51d3d7=_0x1c52b8;return _0x2821ed[_0x51d3d7('0x2d5')]=_0x5b38cd?_0x5b38cd[_0x51d3d7('0x1b33')]:[],_0x84f6cd[_0xe6d705]['preview']({'id':_0x2821ed[_0x51d3d7('0x24bc')]['id']})[_0x51d3d7('0x1376')];})[_0x1c52b8('0x21ad')](function(_0x2957bc){var _0x1593db=_0x1c52b8;_0x2821ed[_0x1593db('0x1b33')]=_0x2957bc;})['catch'](function(_0x3c8360){var _0x5336d9=_0x1c52b8;console['log'](_0x3c8360),_0x2821ed[_0x5336d9('0x2092')]={'title':_0x3c8360['status']?_0x5336d9('0x22d')+_0x3c8360[_0x5336d9('0x209')]+_0x5336d9('0xa99')+_0x3c8360[_0x5336d9('0x1808')]:_0x5336d9('0x2156'),'msg':_0x3c8360[_0x5336d9('0x11c2')]?_0x3c8360[_0x5336d9('0x11c2')][_0x5336d9('0x1224')]:_0x3c8360['toString'](),'sql':_0x3c8360[_0x5336d9('0x11c2')]?_0x3c8360[_0x5336d9('0x11c2')]['parent']?_0x3c8360[_0x5336d9('0x11c2')][_0x5336d9('0x12e2')][_0x5336d9('0xdb3')]:'NO\x20QUERY':_0x5336d9('0x6e5')},_0x58d36c[_0x5336d9('0x2092')](_0x2821ed[_0x5336d9('0x2092')]);});}function _0x5dbb2b(_0x2b612f,_0x32233f){var _0x58e239=_0x24582c;return _0x1088bc()(_0x32233f,_0x58e239('0x759'),!![])[_0x58e239('0x118b')]()&&(_0x32233f=_0x1088bc()(_0x32233f,'')[_0x58e239('0x153')]('YYYY-MM-DD\x20HH:mm:ss')),_0x32233f;}function _0x2dac02(){var _0xe939c0=_0x24582c;_0x34e149[_0xe939c0('0x1c24')]();}}const _0x54c94a=_0x29fd02,_0x173fa2=_0x398308['p']+_0x3877e3('0x208d'),_0x31af9=_0x398308['p']+_0x3877e3('0x1e62'),_0x11013c=_0x398308['p']+_0x3877e3('0x1e49'),_0x3aeb59=_0x398308['p']+_0x3877e3('0x13d6');_0x106d42['$inject']=[_0x3877e3('0x95a'),'$timeout',_0x3877e3('0x243f'),_0x3877e3('0x1850'),_0x3877e3('0xa9f'),'$window',_0x3877e3('0x13c1'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x1ab1'),'toasty',_0x3877e3('0x15bc')];function _0x106d42(_0x207e31,_0xc99071,_0x570f40,_0x12dc3c,_0x38203d,_0x33971b,_0x1d0d6c,_0x12c5ad,_0xc45e46,_0x2c2552,_0x4527b9,_0x2ef62c,_0x56bda7){var _0x570560=_0x3877e3,_0x41d021=this;_0x41d021[_0x570560('0x123f')]=_0x56bda7[_0x570560('0x15ed')](),_0x41d021[_0x570560('0xd5d')]={'count':0x0,'rows':[]},_0x41d021[_0x570560('0x758')]=_0x12c5ad,_0x41d021[_0x570560('0xab4')]=_0xc45e46&&_0xc45e46[_0x570560('0x205f')]==0x1?_0xc45e46[_0x570560('0x1b33')][0x0]:null,_0x41d021[_0x570560('0x5ed')]=_0x56bda7[_0x570560('0x1778')](_0x41d021[_0x570560('0xab4')]?_0x41d021[_0x570560('0xab4')][_0x570560('0x5ed')]:null),_0x41d021[_0x570560('0x5ad')]=[],_0x41d021['query']={'fields':_0x570560('0x26f3'),'limit':0xa,'page':0x1,'sort':'-updatedAt'},_0x41d021[_0x570560('0xba3')]=null,_0x41d021['currentPath']='',_0x41d021['customTree']=!![],_0x41d021['editstate']=_0x3b7d72,_0x41d021['copydialog']=_0x1a80bc,_0x41d021['previewdialog']=_0x2e6661,_0x41d021[_0x570560('0x177c')]=_0x4ab847,_0x41d021['downloadfile']=_0x197ff2,_0x41d021['deleteconfirm']=_0xb10d12,_0x41d021[_0x570560('0xdb1')]=_0x310ec4,_0x41d021[_0x570560('0x768')]=_0x37948,_0x41d021[_0x570560('0xa4')]=_0x202627,_0x41d021[_0x570560('0x19e5')]=_0x229225,_0x41d021[_0x570560('0x8b1')]=_0x272ddb,_0x41d021['exportSelectedReports']=_0x36c3f3,_0x41d021[_0x570560('0x1b0a')]=_0x12fd67,_0x41d021['deselectReports']=_0x4c9214,_0x41d021[_0x570560('0xd4f')]=_0x5a19cb,_0x41d021['treeDefaultData']=_0x4527b9[_0x570560('0x1b33')][0x0]?angular[_0x570560('0xcf1')](_0x4527b9['rows'][0x0]['tree']):[],_0x41d021[_0x570560('0x11f2')]=_0x4527b9[_0x570560('0x1b33')][0x1]?angular[_0x570560('0xcf1')](_0x4527b9[_0x570560('0x1b33')][0x1]['tree']):[],_0x41d021[_0x570560('0x927')]=_0x4cad12(![]),_0x41d021['treeCustomConfig']=_0x4cad12(!![]),_0x41d021[_0x570560('0x460')]=_0x50ba58(![]),_0x41d021[_0x570560('0x9ec')]=_0x50ba58(!![]);function _0x3b7d72(_0x48d82d){var _0x42ff9d=_0x570560;_0x38203d['go'](_0x42ff9d('0x185a'),{'id':_0x48d82d['id'],'crudPermissions':_0x41d021[_0x42ff9d('0x5ed')]});}function _0x1a80bc(_0x30342f,_0x108b1a){var _0x536869=_0x570560;_0x12dc3c[_0x536869('0x853')]({'controller':_0x536869('0x203c'),'controllerAs':'vm','templateUrl':_0x173fa2,'parent':angular[_0x536869('0x1676')](_0x570f40[_0x536869('0x2452')]),'targetEvent':_0x108b1a,'clickOutsideToClose':!![],'locals':{'report':_0x30342f,'apiName':_0x41d021[_0x536869('0xba3')],'treeCustomData':_0x41d021[_0x536869('0xd4c')][_0x536869('0x13ba')](!![])[_0x536869('0x281a')]('#')}})[_0x536869('0x13e')](function(){});}function _0x2e6661(_0x1c89bf,_0x3e4968){var _0x48ed2f=_0x570560;_0x12dc3c[_0x48ed2f('0x853')]({'controller':_0x48ed2f('0x25e2'),'controllerAs':'vm','templateUrl':_0x31af9,'parent':angular['element'](_0x570f40[_0x48ed2f('0x2452')]),'targetEvent':_0x3e4968,'clickOutsideToClose':!![],'locals':{'report':_0x1c89bf,'apiName':_0x41d021[_0x48ed2f('0xba3')]}});}function _0x4ab847(_0x5f27ed,_0x4dfa3c){var _0xce1a96=_0x570560;_0x12dc3c[_0xce1a96('0x853')]({'controller':_0xce1a96('0x1b9e'),'controllerAs':'vm','templateUrl':_0x11013c,'parent':angular[_0xce1a96('0x1676')](_0x570f40[_0xce1a96('0x2452')]),'targetEvent':_0x4dfa3c,'clickOutsideToClose':!![],'locals':{'report':_0x5f27ed,'apiName':_0x41d021[_0xce1a96('0xba3')],'currentPath':_0x41d021[_0xce1a96('0x1bc6')]}});}function _0x197ff2(_0x4b736d){var _0x282a94=_0x570560,_0x521dbc;_0x2c2552['analyticMetric'][_0x282a94('0x595')]({'fields':'id,name,metric,table','nolimit':!![]})[_0x282a94('0x1376')][_0x282a94('0x21ad')](function(_0x5e3b7e){var _0x577739=_0x282a94;_0x521dbc=_0x86640f()[_0x577739('0xcde')](_0x5e3b7e[_0x577739('0x1b33')],'id');var _0x5559f6={'fields':_0x577739('0xdc0'),'nolimit':!![]};return _0x5559f6[_0x41d021['apiName']===_0x577739('0x2041')?_0x577739('0x1bbd'):_0x577739('0x2059')]=_0x4b736d['id'],_0x2c2552[_0x577739('0x1575')][_0x577739('0x595')](_0x5559f6)[_0x577739('0x1376')];})[_0x282a94('0x21ad')](function(_0x59adf6){var _0x275b58=_0x282a94;for(var _0x1096af=0x0;_0x1096af<_0x59adf6[_0x275b58('0x1b33')][_0x275b58('0x577')];_0x1096af+=0x1){_0x59adf6[_0x275b58('0x1b33')][_0x1096af][_0x275b58('0x247c')]&&(_0x59adf6['rows'][_0x1096af][_0x275b58('0xff8')]=_0x521dbc[_0x59adf6[_0x275b58('0x1b33')][_0x1096af]['MetricId']][_0x275b58('0x1e34')],_0x59adf6['rows'][_0x1096af][_0x275b58('0xf50')]=!![]),delete _0x59adf6[_0x275b58('0x1b33')][_0x1096af][_0x275b58('0x247c')];}var _0x59a22=_0x33971b['document'][_0x275b58('0x162e')]('a');_0x59a22[_0x275b58('0x69e')]=_0x275b58('0x1771')+_0x33971b[_0x275b58('0x10d1')](angular[_0x275b58('0x20c6')]({'name':_0x4b736d[_0x275b58('0x19fe')],'description':_0x4b736d[_0x275b58('0x1137')],'table':_0x4b736d[_0x275b58('0x1897')],'conditions':_0x4b736d['conditions'],'joins':_0x4b736d[_0x275b58('0x283e')],'fields':_0x59adf6[_0x275b58('0x1b33')]})),_0x59a22[_0x275b58('0xb0')]=_0x4b736d[_0x275b58('0x19fe')]+'.json',_0x59a22['target']=_0x275b58('0x733'),_0x59a22[_0x275b58('0x997')](),_0x2ef62c[_0x275b58('0xdb1')]({'title':_0x275b58('0x1a7b'),'msg':_0x4b736d[_0x275b58('0x19fe')]?_0x4b736d[_0x275b58('0x19fe')]+_0x275b58('0x2668'):''});})['catch'](function(_0x363812){var _0x34d640=_0x282a94;_0x2ef62c['error']({'title':_0x363812[_0x34d640('0x209')]?_0x34d640('0x22d')+_0x363812[_0x34d640('0x209')]+_0x34d640('0xa99')+_0x363812[_0x34d640('0x1808')]:_0x34d640('0x1154'),'msg':_0x363812[_0x34d640('0x11c2')]?JSON[_0x34d640('0x25e')](_0x363812[_0x34d640('0x11c2')]):_0x363812['toString']()});});}function _0xb10d12(_0x2d4d6d,_0x150e83){var _0x1c91fa=_0x570560,_0x3d7b40=_0x12dc3c[_0x1c91fa('0xa33')]()['title'](_0x1c91fa('0xcd5'))[_0x1c91fa('0x276b')](''+_0x2d4d6d[_0x1c91fa('0x19fe')]+_0x1c91fa('0x2135')+_0x1c91fa('0x25e0'))[_0x1c91fa('0x7a7')](_0x1c91fa('0x78'))[_0x1c91fa('0x1e6d')](_0x150e83)['ok']('OK')[_0x1c91fa('0x3b5')]('CANCEL');_0x12dc3c[_0x1c91fa('0x853')](_0x3d7b40)['then'](function(){_0x272ddb(_0x2d4d6d);},function(){console['log']('CANCEL');});}var _0x407398=!![],_0x1653cf=0x1;_0x207e31['$watch'](_0x570560('0x1948'),function(_0x4e9416,_0x10845c){var _0x518fc1=_0x570560;_0x407398?_0xc99071(function(){_0x407398=![];}):(!_0x10845c&&(_0x1653cf=_0x41d021['query'][_0x518fc1('0x2376')]),_0x4e9416!==_0x10845c&&(_0x41d021[_0x518fc1('0x77')]['page']=0x1),!_0x4e9416&&(_0x41d021[_0x518fc1('0x77')][_0x518fc1('0x2376')]=_0x1653cf),_0x41d021[_0x518fc1('0x768')]());}),_0x207e31[_0x570560('0x10e8')]('vm.search',function(_0x62ef83){var _0x2783ef=_0x570560;_0x41d021[_0x2783ef('0x1c9c')]&&_0x41d021[_0x2783ef('0x1c9c')][_0x2783ef('0x13ba')](!![])[_0x2783ef('0x24e7')](_0x62ef83),_0x41d021[_0x2783ef('0xd4c')]&&_0x41d021[_0x2783ef('0xd4c')][_0x2783ef('0x13ba')](!![])[_0x2783ef('0x24e7')](_0x62ef83);});function _0x310ec4(_0x3adeb2){var _0x36daab=_0x570560;_0x41d021[_0x36daab('0xd5d')]=_0x3adeb2||{'count':0x0,'rows':[]};}function _0x37948(){var _0x4edeaa=_0x570560;_0x41d021[_0x4edeaa('0x77')]['offset']=(_0x41d021['query'][_0x4edeaa('0x2376')]-0x1)*_0x41d021['query'][_0x4edeaa('0x1f4a')];if(_0x41d021[_0x4edeaa('0xba3')]){if(_0x41d021[_0x4edeaa('0x123f')][_0x4edeaa('0x25c8')]===_0x4edeaa('0x1bd8')||_0x41d021[_0x4edeaa('0xab4')]['autoAssociation'])_0x41d021[_0x4edeaa('0x71b')]=_0x2c2552[_0x41d021[_0x4edeaa('0xba3')]][_0x4edeaa('0x595')](_0x41d021[_0x4edeaa('0x77')],_0x310ec4)['$promise'];else{var _0x21d6dc=[];_0x41d021[_0x4edeaa('0x71b')]=_0x2c2552[_0x41d021['apiName']]['get'](_0x41d021[_0x4edeaa('0x77')])[_0x4edeaa('0x1376')]['then'](function(_0x24a01b){var _0x35029c=_0x4edeaa;return _0x21d6dc=_0x24a01b&&_0x24a01b[_0x35029c('0x1b33')]?_0x24a01b[_0x35029c('0x1b33')]:[],_0x21d6dc[_0x35029c('0x577')]>0x0?_0x2c2552['userProfileResource'][_0x35029c('0x595')]({'sectionId':_0x41d021['userProfileSection']['id'],'type':_0x41d021[_0x35029c('0xba3')]===_0x35029c('0xc42')?'DefaultReports':_0x35029c('0x1a1e')})['$promise'][_0x35029c('0x21ad')](function(_0x45f7d8){var _0x2f6d7e=_0x35029c,_0xa442d6=_0x45f7d8&&_0x45f7d8[_0x2f6d7e('0x1b33')]?_0x45f7d8['rows']:[];if(_0xa442d6[_0x2f6d7e('0x577')]>0x0){var _0x194b9e=[];return _0x21d6dc[_0x2f6d7e('0x1a52')](function(_0x3311a0){var _0x489945=_0x2f6d7e,_0x1c6f30=_0x86640f()[_0x489945('0x1d2e')](_0xa442d6,[_0x489945('0x675'),_0x3311a0['id']]);if(_0x1c6f30)_0x194b9e[_0x489945('0x206c')](_0x3311a0);}),_0x310ec4({'count':_0x194b9e['length'],'rows':_0x194b9e});}else return _0x310ec4(null);}):_0x310ec4(null);});}}}function _0x202627(_0x8fb698,_0x221c04){var _0x4e4553=_0x570560;_0x12dc3c[_0x4e4553('0x853')]({'controller':_0x4e4553('0xb77'),'controllerAs':'vm','templateUrl':_0x3aeb59,'parent':angular['element'](_0x570f40[_0x4e4553('0x2452')]),'targetEvent':_0x8fb698,'clickOutsideToClose':!![],'locals':{'report':_0x221c04,'reports':_0x41d021['reports'][_0x4e4553('0x1b33')],'apiName':_0x41d021['apiName'],'currentNode':_0x41d021[_0x4e4553('0x2ef')],'setting':null,'crudPermissions':_0x41d021[_0x4e4553('0x5ed')]}});}function _0x229225(_0x55cefe){var _0x1f1d1f=_0x570560;if(_0x55cefe[_0x1f1d1f('0x18a9')]['type']==='application/json'){var _0x5581d5=new FileReader();_0x5581d5[_0x1f1d1f('0x1efd')]=function(_0x5cbc8e){var _0x33833e=_0x1f1d1f;console[_0x33833e('0x6fb')](_0x5cbc8e[_0x33833e('0x14a5')][_0x33833e('0x8c7')]);try{var _0x2b38e8=atob(_0x5cbc8e['target'][_0x33833e('0x8c7')][_0x33833e('0x1af5')](',')[0x1]);_0x2b38e8=angular[_0x33833e('0xcf1')](_0x2b38e8),_0x2c2552[_0x33833e('0x2041')][_0x33833e('0x186f')]({'name':_0x2b38e8[_0x33833e('0x19fe')],'description':_0x2b38e8[_0x33833e('0x1137')],'table':_0x2b38e8[_0x33833e('0x1897')],'conditions':_0x2b38e8['conditions'],'joins':_0x2b38e8['joins'],'parent':_0x41d021[_0x33833e('0x2ef')]['id']})[_0x33833e('0x1376')][_0x33833e('0x21ad')](function(_0x1cdbcc){var _0x5cd429=_0x33833e;_0x41d021[_0x5cd429('0xd5d')][_0x5cd429('0x1b33')]['unshift'](_0x1cdbcc),_0x2ef62c[_0x5cd429('0xdb1')]({'title':_0x5cd429('0x2460'),'msg':_0x1cdbcc[_0x5cd429('0x19fe')]?_0x1cdbcc['name']+'\x20has\x20been\x20saved!':''});var _0x316a30=_0x86640f()[_0x5cd429('0x26c3')](_0x2b38e8['fields'],function(_0x293a07){var _0x825445=_0x5cd429;return _0x86640f()[_0x825445('0x1ad')]({},_0x293a07,{'CustomReportId':_0x1cdbcc['id']});});return _0x2c2552[_0x5cd429('0x1575')][_0x5cd429('0x11d4')](_0x316a30)[_0x5cd429('0x1376')];})[_0x33833e('0x21ad')](function(){var _0x4d9cd8=_0x33833e;_0x2ef62c[_0x4d9cd8('0xdb1')]({'title':'Fields\x20saved!','msg':_0x4d9cd8('0xd18')});})['catch'](function(_0x291047){var _0x128f52=_0x33833e;_0x2ef62c[_0x128f52('0x2092')]({'title':_0x291047[_0x128f52('0x209')]?_0x128f52('0x22d')+_0x291047['status']+_0x128f52('0xa99')+_0x291047[_0x128f52('0x1808')]:'SYSTEM:GETanalyticReport','msg':_0x291047['data']?JSON[_0x128f52('0x25e')](_0x291047[_0x128f52('0x11c2')]):_0x291047['toString']()});});}catch(_0x12001e){console[_0x33833e('0x2092')](_0x12001e),_0x2ef62c[_0x33833e('0x2092')]({'title':'Decode\x20File\x20Error','msg':_0x12001e[_0x33833e('0x174f')]()});}},_0x5581d5[_0x1f1d1f('0x1e50')](_0x55cefe[_0x1f1d1f('0x18a9')]);}else _0x2ef62c[_0x1f1d1f('0x2092')]({'title':'Format\x20Error','msg':_0x1f1d1f('0xf3f')});}function _0x272ddb(_0x3211a9){var _0x26e394=_0x570560;_0x41d021[_0x26e394('0xba3')]&&_0x2c2552[_0x41d021[_0x26e394('0xba3')]]['delete']({'id':_0x3211a9['id']})[_0x26e394('0x1376')]['then'](function(){var _0x524d29=_0x26e394;_0x86640f()[_0x524d29('0x16a2')](_0x41d021[_0x524d29('0xd5d')][_0x524d29('0x1b33')],{'id':_0x3211a9['id']}),_0x41d021[_0x524d29('0xd5d')][_0x524d29('0x205f')]-=0x1,!_0x41d021[_0x524d29('0xd5d')][_0x524d29('0x1b33')][_0x524d29('0x577')]&&_0x41d021[_0x524d29('0x768')](),_0x2ef62c['success']({'title':_0x524d29('0x115c'),'msg':_0x3211a9[_0x524d29('0x19fe')]?_0x3211a9[_0x524d29('0x19fe')]+'\x20has\x20been\x20deleted!':''});})[_0x26e394('0x1c1d')](function(_0x31389a){var _0x45f25a=_0x26e394;if(_0x31389a['data']&&_0x31389a['data']['errors']&&_0x31389a[_0x45f25a('0x11c2')]['errors']['length']){_0x41d021[_0x45f25a('0x1a69')]=_0x31389a[_0x45f25a('0x11c2')][_0x45f25a('0x1a69')]||[{'message':_0x31389a['toString'](),'type':_0x45f25a('0x19df')}];for(var _0x168d6b=0x0;_0x168d6b<_0x31389a[_0x45f25a('0x11c2')][_0x45f25a('0x1a69')]['length'];_0x168d6b++){_0x2ef62c[_0x45f25a('0x2092')]({'title':_0x31389a[_0x45f25a('0x11c2')][_0x45f25a('0x1a69')][_0x168d6b][_0x45f25a('0x7fa')],'msg':_0x31389a['data']['errors'][_0x168d6b][_0x45f25a('0x1224')]});}}else _0x2ef62c[_0x45f25a('0x2092')]({'title':_0x31389a['status']?_0x45f25a('0x22d')+_0x31389a['status']+'\x20-\x20'+_0x31389a[_0x45f25a('0x1808')]:'api.analyticreport.delete','msg':_0x31389a[_0x45f25a('0x11c2')]?JSON[_0x45f25a('0x25e')](_0x31389a[_0x45f25a('0x11c2')][_0x45f25a('0x1224')]):_0x31389a[_0x45f25a('0x1224')]||_0x31389a[_0x45f25a('0x174f')]()});});}function _0x36c3f3(){var _0x1829cf=_0x570560,_0x2c8629=angular['copy'](_0x41d021['selectedReports']);return _0x41d021[_0x1829cf('0x5ad')]=[],_0x2c8629;}function _0x12fd67(_0x2e352a){var _0x570609=_0x570560,_0x3497f7=_0x12dc3c[_0x570609('0xa33')]()[_0x570609('0x4b4')](_0x570609('0xe7d'))[_0x570609('0x276b')](_0x570609('0x622')+_0x41d021[_0x570609('0x5ad')][_0x570609('0x577')]+'\x20selected'+_0x570609('0x25e0'))[_0x570609('0x7a7')](_0x570609('0x1796'))[_0x570609('0x1e6d')](_0x2e352a)['ok']('OK')[_0x570609('0x3b5')](_0x570609('0x284b'));_0x12dc3c[_0x570609('0x853')](_0x3497f7)['then'](function(){var _0x43088c=_0x570609;_0x41d021['selectedReports'][_0x43088c('0x1a52')](function(_0x121d43){_0x272ddb(_0x121d43);}),_0x41d021[_0x43088c('0x5ad')]=[];});}function _0x4c9214(){var _0x5b5b08=_0x570560;_0x41d021[_0x5b5b08('0x5ad')]=[];}function _0x5a19cb(){var _0x4d35ce=_0x570560;_0x41d021[_0x4d35ce('0x5ad')]=_0x41d021[_0x4d35ce('0xd5d')]['rows'];}function _0x479c3f(_0x4989c8,_0x46743c){var _0x5124ac=_0x570560;_0x41d021[_0x5124ac('0x1c9c')]['jstree'](!![])[_0x5124ac('0x118')](),_0x41d021[_0x5124ac('0x1c9c')][_0x5124ac('0x13ba')](!![])[_0x5124ac('0x27a6')](),_0x41d021[_0x5124ac('0x2ef')]=_0x46743c['node'],_0x41d021[_0x5124ac('0x2ef')][_0x5124ac('0xf50')]=!![],_0x41d021[_0x5124ac('0x1bc6')]=_0x41d021[_0x5124ac('0xd4c')][_0x5124ac('0x13ba')](!![])[_0x5124ac('0xc27')](_0x41d021[_0x5124ac('0x2ef')])[_0x5124ac('0x136')]('/\x20'),_0x41d021[_0x5124ac('0xba3')]=_0x5124ac('0x2041'),_0x41d021[_0x5124ac('0x77')]['parent']=_0x46743c[_0x5124ac('0x36f')]['id'],_0x37948();}function _0x5e6a2e(_0x10f507,_0xcb42c8){var _0x25e985=_0x570560;_0x41d021[_0x25e985('0xd4c')]['jstree'](!![])['deselect_all'](),_0x41d021['treeCustomInstance'][_0x25e985('0x13ba')](!![])['close_all'](),_0x41d021[_0x25e985('0x2ef')]=_0xcb42c8[_0x25e985('0x36f')],_0x41d021[_0x25e985('0x2ef')]['custom']=![],_0x41d021[_0x25e985('0x1bc6')]=_0x41d021[_0x25e985('0x1c9c')][_0x25e985('0x13ba')](!![])[_0x25e985('0xc27')](_0x41d021[_0x25e985('0x2ef')])['join']('/\x20'),_0x41d021[_0x25e985('0xba3')]='analyticDefaultReport',_0x41d021[_0x25e985('0x77')][_0x25e985('0x12e2')]=_0xcb42c8[_0x25e985('0x36f')]['id'],_0x37948();}function _0x2cd353(_0x2bf3d5,_0x39e8f3){var _0x1529b7=_0x570560,_0x31f4d4=angular[_0x1529b7('0x20c6')](_0x41d021['treeCustomInstance']['jstree'](!![])[_0x1529b7('0x281a')]('#'));_0x2c2552[_0x1529b7('0x1148')][_0x1529b7('0x5ef')]({'id':0x2,'tree':_0x31f4d4})['$promise'][_0x1529b7('0x21ad')](function(){var _0xc91bb3=_0x1529b7;_0x4527b9[_0xc91bb3('0x1b33')][0x1]&&(_0x4527b9['rows'][0x1]['tree']=_0x31f4d4),_0x2ef62c[_0xc91bb3('0xdb1')]({'title':_0xc91bb3('0x1283'),'msg':_0x39e8f3['node'][_0xc91bb3('0xc1e')]?_0x39e8f3['node'][_0xc91bb3('0xc1e')]+_0xc91bb3('0xa8d'):_0xc91bb3('0x2060')});})[_0x1529b7('0x1c1d')](function(_0x1eb96d){var _0x48c905=_0x1529b7;_0x2ef62c[_0x48c905('0x2092')]({'title':_0x1eb96d[_0x48c905('0x209')]?'API:'+_0x1eb96d[_0x48c905('0x209')]+_0x48c905('0xa99')+_0x1eb96d[_0x48c905('0x1808')]:'SYSTEM:UPDATEanalyticTreeReport','msg':_0x1eb96d[_0x48c905('0x11c2')]?JSON[_0x48c905('0x25e')](_0x1eb96d[_0x48c905('0x11c2')]):_0x1eb96d['toString']()});});}function _0x4cad12(_0x147c76){var _0x1586fb=_0x570560;return{'core':{'multiple':![],'animation':!![],'error':function _0x18a12e(_0x319131){var _0x36c2c3=a0_0x2e7f;console[_0x36c2c3('0x2092')](_0x36c2c3('0x16ae')+angular[_0x36c2c3('0x20c6')](_0x319131));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':_0x147c76?['contextmenu',_0x1586fb('0x1aac'),_0x1586fb('0x24e7'),_0x1586fb('0x27e'),_0x1586fb('0xf98')]:[_0x1586fb('0x24e7'),_0x1586fb('0x27e'),_0x1586fb('0xf98')],'contextmenu':{'items':function _0x57a54b(_0x148abb){var _0x192d5a=_0x1586fb,_0xf30141={};return _0x41d021[_0x192d5a('0x5ed')][_0x192d5a('0x6e2')]&&_0x86640f()[_0x192d5a('0x1902')](_0xf30141,{'create':{'label':_0x1d0d6c[_0x192d5a('0x183e')]('ANALYTICS.CREATE'),'action':function _0x40e6aa(){var _0x4e2d6f=_0x192d5a;_0x148abb=_0x41d021[_0x4e2d6f('0xd4c')][_0x4e2d6f('0x13ba')](!![])[_0x4e2d6f('0x1c9a')](_0x148abb),_0x41d021[_0x4e2d6f('0xd4c')][_0x4e2d6f('0x13ba')](!![])[_0x4e2d6f('0x1e96')](_0x148abb);}},'rename':{'_disabled':_0x148abb['parent']==='#','label':_0x1d0d6c['instant'](_0x192d5a('0xc9d')),'action':function _0x44e3a8(){var _0x2dd7c3=_0x192d5a;_0x41d021['treeCustomInstance'][_0x2dd7c3('0x13ba')](!![])['edit'](_0x148abb);}}}),_0x41d021['crudPermissions']['canDelete']&&_0x86640f()['assign'](_0xf30141,{'remove':{'_disabled':_0x148abb[_0x192d5a('0x12e2')]==='#','label':_0x1d0d6c[_0x192d5a('0x183e')](_0x192d5a('0x12c2')),'action':function _0x57effb(){var _0x4c609b=_0x192d5a,_0x3ba1d8=_0x12dc3c[_0x4c609b('0xa33')]()[_0x4c609b('0x4b4')](_0x4c609b('0x25da'))[_0x4c609b('0x276b')](''+(_0x148abb[_0x4c609b('0xc1e')]?_0x148abb['text']:_0x4c609b('0xff0'))+_0x4c609b('0x2135')+_0x4c609b('0xd24'))[_0x4c609b('0x7a7')]('delete\x20node')['ok']('OK')[_0x4c609b('0x3b5')](_0x4c609b('0x284b'));_0x12dc3c['show'](_0x3ba1d8)['then'](function(){var _0x5b844a=_0x4c609b,_0x554b26=_0x41d021[_0x5b844a('0xd4c')][_0x5b844a('0x13ba')](!![])[_0x5b844a('0xf11')](_0x148abb);_0x554b26=_0x41d021[_0x5b844a('0xd4c')][_0x5b844a('0x13ba')](!![])['get_node'](_0x554b26),_0x41d021[_0x5b844a('0xd4c')]['jstree'](!![])['delete_node'](_0x148abb),_0x5e24cf([_0x148abb['id']][_0x5b844a('0x1877')](_0x148abb[_0x5b844a('0x94e')]||[])),_0x41d021[_0x5b844a('0xd4c')][_0x5b844a('0x13ba')](!![])['select_node'](_0x554b26);});}}}),_0xf30141;}}};}function _0x5e24cf(_0x2b9afa){var _0x2c7b95=_0x570560;return _0x2c2552['analyticCustomReport'][_0x2c7b95('0x595')]({'parent':_0x2b9afa[_0x2c7b95('0x136')](','),'fields':'id,name'})[_0x2c7b95('0x1376')][_0x2c7b95('0x21ad')](function(_0x4835d0){var _0x27a8a7=_0x2c7b95;_0x4835d0&&_0x4835d0[_0x27a8a7('0x1b33')]&&_0x4835d0[_0x27a8a7('0x1b33')]['forEach'](function(_0x457f28){_0x272ddb(_0x457f28);});})['catch'](function(_0x365bb5){var _0x3fcdb3=_0x2c7b95;_0x2ef62c[_0x3fcdb3('0x2092')]({'title':_0x365bb5[_0x3fcdb3('0x209')]?_0x3fcdb3('0x22d')+_0x365bb5[_0x3fcdb3('0x209')]+_0x3fcdb3('0xa99')+_0x365bb5[_0x3fcdb3('0x1808')]:_0x3fcdb3('0x1402'),'msg':_0x365bb5[_0x3fcdb3('0x11c2')]?JSON[_0x3fcdb3('0x25e')](_0x365bb5[_0x3fcdb3('0x11c2')]):_0x365bb5['toString']()});});}function _0x50ba58(_0x5eb3a6){return _0x5eb3a6?{'create_node':_0x2cd353,'rename_node':_0x2cd353,'move_node':_0x2cd353,'delete_node':_0x2cd353,'select_node':_0x479c3f}:{'select_node':_0x5e6a2e};}}const _0x1f90f1=_0x106d42,_0x3a7452=_0x398308['p']+_0x3877e3('0xd2e');_0x702404[_0x3877e3('0x1a81')]=['$location',_0x3877e3('0x1850'),_0x3877e3('0x1908'),_0x3877e3('0x24bc'),_0x3877e3('0xccd'),'apiName',_0x3877e3('0x243f'),_0x3877e3('0x1bc6')];function _0x702404(_0x237c13,_0x282826,_0x2993ed,_0x517fee,_0x3ddb31,_0x3d51f6,_0xdec08c,_0xeb1d7f){var _0x355a55=_0x3877e3,_0xe11354=this;_0xe11354[_0x355a55('0x1a69')]=[],_0xe11354[_0x355a55('0x24bc')]=angular['copy'](_0x517fee),_0xe11354['export']={},_0xe11354[_0x355a55('0x2056')]=_0x5d495e,_0xe11354[_0x355a55('0x167')]=_0x4bf519,_0xe11354['refreshDate']=_0x544f19,_0x544f19();function _0x544f19(){var _0x7030f3=_0x355a55;_0xe11354['export']={'id':_0xe11354[_0x7030f3('0x24bc')]['id'],'name':_0xe11354[_0x7030f3('0x24bc')]['name'],'startDate':new Date(_0x1088bc()()[_0x7030f3('0x1982')]('day')),'endDate':new Date(_0x1088bc()()['endOf'](_0x7030f3('0x1837'))),'output':_0x7030f3('0xdb6'),'fullPath':_0xeb1d7f?_0xeb1d7f+'/'+_0xe11354[_0x7030f3('0x24bc')]['name']:_0xe11354[_0x7030f3('0x24bc')][_0x7030f3('0x19fe')]};}function _0x5d495e(_0x448542){var _0x2358d5=_0x355a55;_0xe11354[_0x2358d5('0x1a69')]=[],_0xe11354[_0x2358d5('0x19da')]=_0x86640f()[_0x2358d5('0x1902')]({},_0xe11354['export'],{'startDate':_0x1088bc()(_0xe11354[_0x2358d5('0x171e')]['startDate'])['format'](_0x2358d5('0x1e15')),'endDate':_0x1088bc()(_0xe11354[_0x2358d5('0x171e')][_0x2358d5('0x1385')])['format']('YYYY-MM-DD\x20HH:mm:ss')}),_0x3ddb31[_0x3d51f6][_0x2358d5('0x2362')](_0xe11354[_0x2358d5('0x19da')])['$promise']['then'](function(_0x10e487){var _0x2769ca=_0x2358d5;_0xe11354['export'][_0x2769ca('0x1632')]===_0x2769ca('0x865')?_0x282826[_0x2769ca('0x853')]({'controller':'WebReportDialogController','controllerAs':'vm','templateUrl':_0x3a7452,'parent':angular[_0x2769ca('0x1676')](_0xdec08c[_0x2769ca('0x2452')]),'targetEvent':_0x448542,'skipHide':!![],'locals':{'apiName':_0x3d51f6,'exportDate':_0xe11354['exportDate'],'results':_0x10e487},'resolve':{'columns':['apiResolver',function _0x316cbd(_0x526ada){var _0x1f862f=_0x2769ca,_0x569d00={'fields':_0x1f862f('0x1cd9'),'nolimit':!![]};return _0x569d00[_0x3d51f6===_0x1f862f('0x2041')?_0x1f862f('0x1bbd'):'DefaultReportId']=_0xe11354[_0x1f862f('0x24bc')]['id'],_0x526ada[_0x1f862f('0x8ac')](_0x1f862f('0x405'),_0x569d00);}]}}):(_0x2993ed[_0x2769ca('0xdb1')]({'title':_0x2769ca('0x278e'),'msg':_0xe11354[_0x2769ca('0x24bc')][_0x2769ca('0x19fe')]?_0xe11354[_0x2769ca('0x24bc')][_0x2769ca('0x19fe')]+_0x2769ca('0x11c0'):''}),_0x4bf519());})['catch'](function(_0x15c322){var _0x3d4a50=_0x2358d5;_0x2993ed[_0x3d4a50('0x2092')]({'title':_0x15c322['status']?'API:'+_0x15c322[_0x3d4a50('0x209')]+_0x3d4a50('0xa99')+_0x15c322[_0x3d4a50('0x1808')]:_0x3d4a50('0x7b2'),'msg':_0x15c322['data']?JSON[_0x3d4a50('0x25e')](_0x15c322[_0x3d4a50('0x11c2')][_0x3d4a50('0x1224')]):_0x15c322[_0x3d4a50('0x174f')]()});});}function _0x4bf519(){var _0x30aa1f=_0x355a55;_0x282826[_0x30aa1f('0x1c24')]();}}const _0x48a708=_0x702404;_0x25fac2[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),_0x3877e3('0x1908'),'api',_0x3877e3('0x2d5'),'results','apiName',_0x3877e3('0x19da')];function _0x25fac2(_0x33ab07,_0x4c30f6,_0x4dd6fe,_0x15a11e,_0x267fc1,_0x4e97f4,_0x5acd97){var _0x5f330=_0x3877e3,_0x367438=this;_0x367438[_0x5f330('0x1a69')]=[],_0x367438['columns']=_0x15a11e?_0x15a11e[_0x5f330('0x1b33')]:[],_0x367438[_0x5f330('0x1904')]=_0x267fc1||{'rows':[],'count':0x0},_0x367438[_0x5f330('0x77')]={'limit':0xa,'page':0x1},_0x367438[_0x5f330('0x167')]=_0x14d131,_0x367438[_0x5f330('0x261e')]=_0x482689,_0x367438[_0x5f330('0x1ea9')]=_0xfb854a;function _0x482689(){var _0x246702=_0x5f330;_0x5acd97[_0x246702('0x15a5')]=(_0x367438[_0x246702('0x77')][_0x246702('0x2376')]-0x1)*_0x367438[_0x246702('0x77')][_0x246702('0x1f4a')],_0x5acd97[_0x246702('0x1f4a')]=_0x367438['query'][_0x246702('0x1f4a')],_0x367438[_0x246702('0x71b')]=_0x4dd6fe[_0x4e97f4][_0x246702('0x2362')](_0x5acd97,_0x3f3c0c)['$promise'];}function _0xfb854a(_0x4b6ca1,_0x57834a){var _0x3f999b=_0x5f330;return _0x1088bc()(_0x57834a,'YYYY-MM-DDTHH:mm:ssZ',!![])[_0x3f999b('0x118b')]()&&(_0x57834a=_0x1088bc()(_0x57834a,'')[_0x3f999b('0x153')]('YYYY-MM-DD\x20HH:mm:ss')),_0x57834a;}function _0x3f3c0c(_0x51acfe){var _0x51b586=_0x5f330;_0x367438[_0x51b586('0x1904')]=_0x51acfe||{'count':0x0,'rows':[]};}function _0x14d131(){var _0x24d82f=_0x5f330;_0x33ab07[_0x24d82f('0x1c24')]();}}const _0x9a67f6=_0x25fac2;_0x554f6c['$inject']=[_0x3877e3('0xd2c')];function _0x554f6c(_0x35e0d4){var _0x31f4db=_0x3877e3;_0x35e0d4[_0x31f4db('0x27e')](_0x31f4db('0x17d9'),{'url':'/reports','views':{'content@app':{'templateUrl':_0x51fa52,'controller':_0x31f4db('0x23fc')}},'resolve':{'treeReports':[_0x31f4db('0x354'),function _0x15efce(_0x3c8887){var _0x10d864=_0x31f4db;return _0x3c8887['resolve'](_0x10d864('0x16d4'),{'fields':_0x10d864('0x2153'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x31f4db('0x354'),_0x31f4db('0x15bc'),function _0x1e7717(_0x169e6f,_0x18c471){var _0x2970c9=_0x31f4db;return _0x169e6f[_0x2970c9('0x8ac')](_0x2970c9('0x1e1d'),{'fields':_0x2970c9('0x1a00'),'id':_0x18c471[_0x2970c9('0x15ed')]()[_0x2970c9('0x1618')]});}],'userProfileSection':[_0x31f4db('0x354'),_0x31f4db('0x15bc'),function _0x1ecb89(_0x5237dd,_0x13e161){var _0x56df52=_0x31f4db;return _0x5237dd[_0x56df52('0x8ac')](_0x56df52('0x222f'),{'fields':_0x56df52('0x1852'),'userProfileId':_0x13e161['getCurrentUser']()[_0x56df52('0x1618')],'sectionId':0x4b3});}]},'authenticate':!![],'permissionId':0x4b3,'bodyClass':'analytics'})['state'](_0x31f4db('0x185a'),{'url':_0x31f4db('0x17f5'),'views':{'content@app':{'templateUrl':_0x43aace,'controller':_0x31f4db('0x87c')}},'resolve':{'report':[_0x31f4db('0x354'),_0x31f4db('0x114e'),'$q','describeTable',function _0x59dcd0(_0x2429f7,_0x5a816e,_0x3968f5,_0x294752){var _0x25bf56=_0x31f4db,_0x30c7e1;return _0x2429f7['resolve']('analyticCustomReport@get',{'fields':'createdAt,updatedAt,id,name,description,table,conditions,joins','id':_0x5a816e['id']})[_0x25bf56('0x21ad')](function(_0x242b60){var _0x17dae3=_0x25bf56,_0x49fee1=[];_0x30c7e1=_0x242b60;if(_0x30c7e1[_0x17dae3('0x283e')])try{_0x30c7e1[_0x17dae3('0x283e')]=JSON[_0x17dae3('0x399')](_0x30c7e1[_0x17dae3('0x283e')]);for(var _0x45ba4f=0x0;_0x45ba4f<_0x30c7e1[_0x17dae3('0x283e')][_0x17dae3('0x577')];_0x45ba4f+=0x1){_0x49fee1[_0x17dae3('0x206c')](_0x294752['getColumns'](_0x30c7e1[_0x17dae3('0x283e')][_0x45ba4f][_0x17dae3('0x29f')]));}}catch(_0x585bc5){console['log'](_0x585bc5);}return _0x3968f5['all'](_0x49fee1);})['then'](function(_0x4375f6){var _0x35f87f=_0x25bf56;for(var _0x9a18c=0x0;_0x9a18c<_0x4375f6[_0x35f87f('0x577')];_0x9a18c+=0x1){_0x30c7e1[_0x35f87f('0x283e')][_0x9a18c]['foreignTableFields']=_0x86640f()['difference'](_0x86640f()['keys'](_0x4375f6[_0x9a18c]),[_0x35f87f('0x1376'),_0x35f87f('0x9f8')]);}return _0x30c7e1;});}],'userProfileSection':[_0x31f4db('0x354'),_0x31f4db('0x15bc'),function _0x2fe521(_0x23dad1,_0x1e9c88){var _0x9dd171=_0x31f4db;return _0x23dad1[_0x9dd171('0x8ac')](_0x9dd171('0x222f'),{'fields':_0x9dd171('0x1852'),'userProfileId':_0x1e9c88[_0x9dd171('0x15ed')]()['userProfileId'],'sectionId':0x4b3});}]},'authenticate':!![],'permissionId':0x4b3,'bodyClass':_0x31f4db('0x1268')});}angular[_0x3877e3('0x20d5')](_0x3877e3('0x17d9'),[_0x3877e3('0x1331')])[_0x3877e3('0x13')](_0x554f6c)[_0x3877e3('0x1d5a')](_0x3877e3('0x203c'),_0x3bd783)[_0x3877e3('0x1d5a')](_0x3877e3('0xb77'),_0x21bdbc)['controller'](_0x3877e3('0x242e'),_0x141cd7)['factory'](_0x3877e3('0x1c67'),_0x4e1e60)[_0x3877e3('0x1d5a')](_0x3877e3('0x217e'),_0x18e068)[_0x3877e3('0x1d5a')](_0x3877e3('0x24a9'),_0x385466)[_0x3877e3('0x1551')](_0x3877e3('0x1bd'),_0x118a1d)[_0x3877e3('0x1d5a')]('ReportController',_0x2465dd)[_0x3877e3('0x1d5a')](_0x3877e3('0x25e2'),_0x54c94a)['controller'](_0x3877e3('0x191c'),_0x1f90f1)[_0x3877e3('0x1d5a')](_0x3877e3('0x1b9e'),_0x48a708)[_0x3877e3('0x1d5a')](_0x3877e3('0xcfa'),_0x9a67f6),_0x246f54['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),'extractedReports','extractedReport',_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting',_0x3877e3('0x5ed')];function _0x246f54(_0x5ba772,_0x8404f6,_0x5e9b13,_0x363c25,_0x9d0d44,_0x199a24,_0x2a4819,_0x4934ff,_0x282fac,_0x1acb3d,_0x200d81,_0x4229c5,_0x374115,_0x432606){var _0x19f542=_0x3877e3,_0x4aa275=this;_0x4aa275[_0x19f542('0x123f')]=_0x200d81[_0x19f542('0x15ed')](),_0x4aa275['errors']=[],_0x4aa275[_0x19f542('0x21e')]=_0x374115,_0x4aa275[_0x19f542('0x2ff')]=_0x4229c5,_0x4aa275[_0x19f542('0x5ed')]=_0x432606,_0x4aa275[_0x19f542('0x126a')]={},_0x4aa275[_0x19f542('0x1432')]=_0x4aa275['setting']&&_0x4aa275[_0x19f542('0x21e')][_0x19f542('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4aa275[_0x19f542('0x4b4')]=_0x19f542('0xe16'),_0x4aa275[_0x19f542('0x204d')]=angular[_0x19f542('0xd75')](_0x282fac),_0x4aa275[_0x19f542('0x1698')]=_0x4934ff,_0x4aa275[_0x19f542('0x2006')]=![];!_0x4aa275[_0x19f542('0x204d')]&&(_0x4aa275[_0x19f542('0x204d')]={},_0x4aa275['title']=_0x19f542('0x16f7'),_0x4aa275[_0x19f542('0x2006')]=!![]);_0x4aa275['addNewExtractedReport']=_0x2e4230,_0x4aa275[_0x19f542('0x1899')]=_0x39f906,_0x4aa275[_0x19f542('0x277d')]=_0x2a7ed3,_0x4aa275[_0x19f542('0x279')]=_0x44f4db,_0x4aa275['closeDialog']=_0x47acfa;function _0x2e4230(){var _0x1ecaed=_0x19f542;_0x4aa275[_0x1ecaed('0x1a69')]=[],_0x1acb3d[_0x1ecaed('0x27a4')]['save'](_0x4aa275[_0x1ecaed('0x204d')])[_0x1ecaed('0x1376')][_0x1ecaed('0x21ad')](function(_0x3e169c){var _0x21b4da=_0x1ecaed;_0x4aa275['extractedReports'][_0x21b4da('0xd0c')](_0x3e169c[_0x21b4da('0x3bc')]()),_0x2a4819[_0x21b4da('0xdb1')]({'title':_0x21b4da('0x638'),'msg':_0x4aa275['extractedReport'][_0x21b4da('0x19fe')]?_0x4aa275[_0x21b4da('0x204d')][_0x21b4da('0x19fe')]+_0x21b4da('0x1694'):''}),_0x47acfa(_0x3e169c);})[_0x1ecaed('0x1c1d')](function(_0x196f28){var _0x1a8366=_0x1ecaed;if(_0x196f28[_0x1a8366('0x11c2')]&&_0x196f28[_0x1a8366('0x11c2')][_0x1a8366('0x1a69')]&&_0x196f28[_0x1a8366('0x11c2')][_0x1a8366('0x1a69')][_0x1a8366('0x577')]){_0x4aa275[_0x1a8366('0x1a69')]=_0x196f28[_0x1a8366('0x11c2')]['errors']||[{'message':_0x196f28[_0x1a8366('0x174f')](),'type':'api.analyticExtractedReport.save'}];for(var _0x758c54=0x0;_0x758c54<_0x196f28['data']['errors'][_0x1a8366('0x577')];_0x758c54+=0x1){_0x2a4819[_0x1a8366('0x2092')]({'title':_0x196f28[_0x1a8366('0x11c2')]['errors'][_0x758c54][_0x1a8366('0x7fa')],'msg':_0x196f28[_0x1a8366('0x11c2')][_0x1a8366('0x1a69')][_0x758c54]['message']});}}else _0x2a4819[_0x1a8366('0x2092')]({'title':_0x196f28[_0x1a8366('0x209')]?_0x1a8366('0x22d')+_0x196f28['status']+_0x1a8366('0xa99')+_0x196f28[_0x1a8366('0x1808')]:_0x1a8366('0x2676'),'msg':_0x196f28[_0x1a8366('0x11c2')]?JSON['stringify'](_0x196f28[_0x1a8366('0x11c2')][_0x1a8366('0x1224')]):_0x196f28[_0x1a8366('0x174f')]()});});}function _0x39f906(){var _0x51d577=_0x19f542;_0x4aa275['errors']=[],_0x1acb3d[_0x51d577('0x27a4')]['update']({'id':_0x4aa275[_0x51d577('0x204d')]['id']},_0x4aa275[_0x51d577('0x204d')])[_0x51d577('0x1376')][_0x51d577('0x21ad')](function(_0x30cc43){var _0x2fcf7d=_0x51d577,_0x528310=_0x86640f()[_0x2fcf7d('0x1d2e')](_0x4aa275[_0x2fcf7d('0x1698')],{'id':_0x30cc43['id']});_0x528310&&_0x86640f()[_0x2fcf7d('0xd0e')](_0x528310,_0x86640f()[_0x2fcf7d('0xc50')](_0x30cc43[_0x2fcf7d('0x3bc')](),_0x86640f()[_0x2fcf7d('0x223b')](_0x528310))),_0x2a4819[_0x2fcf7d('0xdb1')]({'title':_0x2fcf7d('0x229a'),'msg':_0x4aa275['extractedReport'][_0x2fcf7d('0x19fe')]?_0x4aa275[_0x2fcf7d('0x204d')][_0x2fcf7d('0x19fe')]+'\x20has\x20been\x20saved!':''}),_0x47acfa(_0x30cc43);})[_0x51d577('0x1c1d')](function(_0x40290a){var _0x1125bd=_0x51d577;if(_0x40290a[_0x1125bd('0x11c2')]&&_0x40290a[_0x1125bd('0x11c2')]['errors']&&_0x40290a[_0x1125bd('0x11c2')][_0x1125bd('0x1a69')][_0x1125bd('0x577')]){_0x4aa275[_0x1125bd('0x1a69')]=_0x40290a[_0x1125bd('0x11c2')][_0x1125bd('0x1a69')]||[{'message':_0x40290a[_0x1125bd('0x174f')](),'type':_0x1125bd('0x19f3')}];for(var _0x34efa6=0x0;_0x34efa6<_0x40290a['data'][_0x1125bd('0x1a69')][_0x1125bd('0x577')];_0x34efa6++){_0x2a4819[_0x1125bd('0x2092')]({'title':_0x40290a[_0x1125bd('0x11c2')][_0x1125bd('0x1a69')][_0x34efa6]['type'],'msg':_0x40290a[_0x1125bd('0x11c2')][_0x1125bd('0x1a69')][_0x34efa6][_0x1125bd('0x1224')]});}}else _0x2a4819['error']({'title':_0x40290a[_0x1125bd('0x209')]?_0x1125bd('0x22d')+_0x40290a[_0x1125bd('0x209')]+_0x1125bd('0xa99')+_0x40290a[_0x1125bd('0x1808')]:_0x1125bd('0x19f3'),'msg':_0x40290a['data']?JSON[_0x1125bd('0x25e')](_0x40290a[_0x1125bd('0x11c2')]['message']):_0x40290a[_0x1125bd('0x174f')]()});});}function _0x2a7ed3(_0x5bda53){var _0x314399=_0x19f542;_0x4aa275[_0x314399('0x1a69')]=[];var _0x428fce=_0x363c25[_0x314399('0xa33')]()[_0x314399('0x4b4')]('Are\x20you\x20sure?')['content']('The\x20extractedReport\x20will\x20be\x20deleted.')[_0x314399('0x7a7')]('Delete\x20ExtractedReport')['ok'](_0x314399('0xbfd'))[_0x314399('0x3b5')](_0x314399('0x1f40'))[_0x314399('0x1e6d')](_0x5bda53);_0x363c25[_0x314399('0x853')](_0x428fce)[_0x314399('0x21ad')](function(){var _0x114f25=_0x314399;_0x1acb3d[_0x114f25('0x27a4')][_0x114f25('0x1164')]({'id':_0x4aa275[_0x114f25('0x204d')]['id']})['$promise'][_0x114f25('0x21ad')](function(){var _0x4b3bea=_0x114f25;_0x86640f()['remove'](_0x4aa275[_0x4b3bea('0x1698')],{'id':_0x4aa275[_0x4b3bea('0x204d')]['id']}),_0x2a4819[_0x4b3bea('0xdb1')]({'title':_0x4b3bea('0x1bbf'),'msg':(_0x4aa275[_0x4b3bea('0x204d')][_0x4b3bea('0x19fe')]||'extractedReport')+_0x4b3bea('0xb4a')}),_0x47acfa(_0x4aa275[_0x4b3bea('0x204d')]);})['catch'](function(_0x45815b){var _0x173a47=_0x114f25;if(_0x45815b['data']&&_0x45815b[_0x173a47('0x11c2')][_0x173a47('0x1a69')]&&_0x45815b[_0x173a47('0x11c2')]['errors'][_0x173a47('0x577')]){_0x4aa275[_0x173a47('0x1a69')]=_0x45815b['data'][_0x173a47('0x1a69')]||[{'message':_0x45815b[_0x173a47('0x174f')](),'type':_0x173a47('0x1b03')}];for(var _0x1f5a99=0x0;_0x1f5a99<_0x45815b[_0x173a47('0x11c2')][_0x173a47('0x1a69')][_0x173a47('0x577')];_0x1f5a99++){_0x2a4819[_0x173a47('0x2092')]({'title':_0x45815b[_0x173a47('0x11c2')][_0x173a47('0x1a69')][_0x1f5a99]['type'],'msg':_0x45815b[_0x173a47('0x11c2')][_0x173a47('0x1a69')][_0x1f5a99][_0x173a47('0x1224')]});}}else _0x2a4819[_0x173a47('0x2092')]({'title':_0x45815b[_0x173a47('0x209')]?_0x173a47('0x22d')+_0x45815b[_0x173a47('0x209')]+_0x173a47('0xa99')+_0x45815b[_0x173a47('0x1808')]:'api.analyticExtractedReport.delete','msg':_0x45815b[_0x173a47('0x11c2')]?JSON[_0x173a47('0x25e')](_0x45815b[_0x173a47('0x11c2')][_0x173a47('0x1224')]):_0x45815b[_0x173a47('0x1224')]||_0x45815b[_0x173a47('0x174f')]()});});},function(){});}function _0x44f4db(_0x3eaabc){return _0x3eaabc===null?undefined:new Date(_0x3eaabc);}function _0x47acfa(_0x56b530){_0x363c25['hide'](_0x56b530);}}const _0x54bdea=_0x246f54,_0x79db83=_0x398308['p']+'src/js/modules/main/apps/analytics/views/extractedReports/create/dialog.html/dialog-[chunkhash].html';_0x204a26[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),'$state',_0x3877e3('0x2828'),'$mdDialog',_0x3877e3('0x243f'),'$timeout',_0x3877e3('0x13c1'),_0x3877e3('0x1698'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x204a26(_0x33c473,_0x51209b,_0x109713,_0x3edf8f,_0x398ecc,_0x31480f,_0x30aece,_0x24ef48,_0x392cb2,_0x404ecc,_0x59fb58,_0x1cdbc8,_0x4eebb3,_0xa4a695,_0x180192,_0x1f47b6,_0x23c1ee){var _0x2b4352=_0x3877e3,_0x2852e7=this;_0x2852e7['license']=_0x1f47b6,_0x2852e7['setting']=_0x23c1ee,_0x2852e7[_0x2b4352('0x123f')]=_0x180192[_0x2b4352('0x15ed')](),_0x2852e7['extractedReports']=_0x392cb2||{'count':0x0,'rows':[]},_0x2852e7[_0x2b4352('0x758')]=_0x404ecc,_0x2852e7[_0x2b4352('0xab4')]=_0x59fb58&&_0x59fb58[_0x2b4352('0x205f')]==0x1?_0x59fb58[_0x2b4352('0x1b33')][0x0]:null,_0x2852e7[_0x2b4352('0x5ed')]=_0x180192[_0x2b4352('0x1778')](_0x2852e7[_0x2b4352('0xab4')]?_0x2852e7[_0x2b4352('0xab4')]['crudPermissions']:null),_0x2852e7[_0x2b4352('0x1897')]=_0x2b4352('0x1698'),_0x2852e7[_0x2b4352('0x11dc')]='',_0x2852e7['listOrderAsc']=null,_0x2852e7[_0x2b4352('0x22ad')]=[],_0x2852e7[_0x2b4352('0x77')]={'fields':_0x2b4352('0x187b'),'sort':_0x2b4352('0x33'),'limit':0xa,'page':0x1},_0x2852e7['editdialog']=_0x3e8f88,_0x2852e7[_0x2b4352('0xf10')]=_0x4b4eb7,_0x2852e7[_0x2b4352('0x2593')]=_0x1b5131,_0x2852e7[_0x2b4352('0xdb1')]=_0x645fc3,_0x2852e7[_0x2b4352('0x698')]=_0x152bd8,_0x2852e7[_0x2b4352('0x3c6')]=_0x240c20,_0x2852e7[_0x2b4352('0x277d')]=_0x55619e,_0x2852e7[_0x2b4352('0xa12')]=_0x4f001d,_0x2852e7['deleteSelectedExtractedReports']=_0x3cd98c,_0x2852e7['deselectExtractedReports']=_0x5102cc,_0x2852e7[_0x2b4352('0x2498')]=_0x5c093c;function _0x3e8f88(_0x193208,_0x51c481){var _0x147c3b=_0x2b4352;_0x398ecc[_0x147c3b('0x853')]({'controller':_0x147c3b('0x2112'),'controllerAs':'vm','templateUrl':_0x79db83,'parent':angular[_0x147c3b('0x1676')](_0x31480f['body']),'targetEvent':_0x51c481,'clickOutsideToClose':!![],'locals':{'extractedReport':_0x193208,'extractedReports':_0x2852e7[_0x147c3b('0x1698')]['rows'],'license':_0x2852e7['license'],'setting':null,'crudPermissions':_0x2852e7[_0x147c3b('0x5ed')]}});}function _0x4b4eb7(_0x1b5311){var _0x589cca=_0x2b4352;return _0x1cdbc8['analyticExtractedReport'][_0x589cca('0xb0')]({'id':_0x1b5311['id']})[_0x589cca('0x1376')][_0x589cca('0x21ad')](function(_0x16131c){var _0x18de9e=_0x589cca,_0x43d5bc=[_0x16131c['buffer']],_0x5889eb=_0x18de9e('0xb0'),_0x5edc44=new Blob(_0x43d5bc,{'type':_0x16131c[_0x18de9e('0x7fa')]});_0x5889eb=_0x1b5311[_0x18de9e('0x7c8')];var _0x39ef83=window['document'][_0x18de9e('0x162e')]('a');_0x39ef83[_0x18de9e('0x127a')](_0x18de9e('0x69e'),URL[_0x18de9e('0x167b')](_0x5edc44)),_0x39ef83[_0x18de9e('0x127a')](_0x18de9e('0xb0'),_0x5889eb),document[_0x18de9e('0x2452')][_0x18de9e('0x14d0')](_0x39ef83),_0x39ef83[_0x18de9e('0x997')]();})[_0x589cca('0x1c1d')](function(_0x4dfaf3){var _0x396842=_0x589cca;if(_0x4dfaf3[_0x396842('0x11c2')]&&_0x4dfaf3[_0x396842('0x11c2')][_0x396842('0x1a69')]&&_0x4dfaf3[_0x396842('0x11c2')]['errors'][_0x396842('0x577')])for(var _0x2af9c7=0x0;_0x2af9c7<_0x4dfaf3[_0x396842('0x11c2')][_0x396842('0x1a69')][_0x396842('0x577')];_0x2af9c7++){_0xa4a695['error']({'title':_0x4dfaf3[_0x396842('0x11c2')]['errors'][_0x2af9c7][_0x396842('0x7fa')],'msg':_0x4dfaf3[_0x396842('0x11c2')][_0x396842('0x1a69')][_0x2af9c7][_0x396842('0x1224')]});}else _0xa4a695['error']({'title':_0x4dfaf3[_0x396842('0x209')]?_0x396842('0x22d')+_0x4dfaf3[_0x396842('0x209')]+_0x396842('0xa99')+_0x4dfaf3[_0x396842('0x1808')]:_0x396842('0x2676'),'msg':_0x4dfaf3[_0x396842('0x11c2')]?JSON[_0x396842('0x25e')](_0x4dfaf3[_0x396842('0x11c2')][_0x396842('0x1224')]):_0x4dfaf3[_0x396842('0x174f')]()});});}function _0x1b5131(_0x4578c5,_0xd169ae){var _0x57194b=_0x2b4352,_0x21a9ee=_0x398ecc[_0x57194b('0xa33')]()[_0x57194b('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x86640f()[_0x57194b('0x2159')](_0x57194b('0x204d'))+'?')['htmlContent'](_0x57194b('0x622')+(_0x4578c5['name']||_0x57194b('0x204d'))+_0x57194b('0x2135')+_0x57194b('0x25e0'))[_0x57194b('0x7a7')](_0x57194b('0x192f'))[_0x57194b('0x1e6d')](_0xd169ae)['ok']('OK')[_0x57194b('0x3b5')](_0x57194b('0x284b'));_0x398ecc[_0x57194b('0x853')](_0x21a9ee)['then'](function(){_0x55619e(_0x4578c5);},function(){var _0x48e77a=_0x57194b;console[_0x48e77a('0x6fb')]('CANCEL');});}var _0x114ab2=!![],_0x5df53d=0x1;_0x33c473['$watch']('vm.query.filter',function(_0x3701f4,_0x41e717){var _0x131123=_0x2b4352;_0x114ab2?_0x30aece(function(){_0x114ab2=![];}):(!_0x41e717&&(_0x5df53d=_0x2852e7[_0x131123('0x77')]['page']),_0x3701f4!==_0x41e717&&(_0x2852e7['query'][_0x131123('0x2376')]=0x1),!_0x3701f4&&(_0x2852e7['query'][_0x131123('0x2376')]=_0x5df53d),_0x2852e7['getExtractedReports']());});function _0x645fc3(_0x2b6a87){var _0x150583=_0x2b4352;_0x2852e7[_0x150583('0x1698')]=_0x2b6a87||{'count':0x0,'rows':[]};}function _0x152bd8(){var _0x16c7e0=_0x2b4352;_0x2852e7['query'][_0x16c7e0('0x15a5')]=(_0x2852e7['query'][_0x16c7e0('0x2376')]-0x1)*_0x2852e7['query'][_0x16c7e0('0x1f4a')],_0x180192[_0x16c7e0('0x21de')](_0x16c7e0('0x1bd8'))?_0x2852e7[_0x16c7e0('0x71b')]=_0x1cdbc8['analyticExtractedReport'][_0x16c7e0('0x595')](_0x2852e7['query'],_0x645fc3)[_0x16c7e0('0x1376')]:(_0x2852e7[_0x16c7e0('0x77')]['id']=_0x2852e7['userProfile']['id'],_0x2852e7[_0x16c7e0('0x77')][_0x16c7e0('0x26ad')]='ExtractedReports',_0x2852e7[_0x16c7e0('0x71b')]=_0x1cdbc8[_0x16c7e0('0x758')][_0x16c7e0('0x321')](_0x2852e7['query'],_0x645fc3)[_0x16c7e0('0x1376')]);}function _0x240c20(_0x16b2c0,_0x19764f){var _0x37e76b=_0x2b4352;_0x398ecc['show']({'controller':_0x37e76b('0x2112'),'controllerAs':'vm','templateUrl':_0x79db83,'parent':angular[_0x37e76b('0x1676')](_0x31480f[_0x37e76b('0x2452')]),'targetEvent':_0x16b2c0,'clickOutsideToClose':!![],'locals':{'extractedReport':_0x19764f,'extractedReports':_0x2852e7[_0x37e76b('0x1698')][_0x37e76b('0x1b33')],'license':_0x2852e7['license'],'setting':_0x2852e7[_0x37e76b('0x21e')],'crudPermissions':_0x2852e7[_0x37e76b('0x5ed')]}});}function _0x55619e(_0x1477eb){var _0x47868b=_0x2b4352;_0x1cdbc8['analyticExtractedReport']['delete']({'id':_0x1477eb['id']})['$promise'][_0x47868b('0x21ad')](function(){var _0x55c5dd=_0x47868b;_0x86640f()[_0x55c5dd('0x16a2')](_0x2852e7['extractedReports'][_0x55c5dd('0x1b33')],{'id':_0x1477eb['id']}),_0x2852e7[_0x55c5dd('0x1698')][_0x55c5dd('0x205f')]-=0x1,!_0x2852e7[_0x55c5dd('0x1698')][_0x55c5dd('0x1b33')][_0x55c5dd('0x577')]&&_0x2852e7[_0x55c5dd('0x698')](),_0xa4a695[_0x55c5dd('0xdb1')]({'title':_0x86640f()['startCase'](_0x55c5dd('0x1e01'))+_0x55c5dd('0xe64'),'msg':_0x1477eb[_0x55c5dd('0x19fe')]?_0x1477eb['name']+_0x55c5dd('0xb4a'):''});})[_0x47868b('0x1c1d')](function(_0x1a2ee2){var _0x48a783=_0x47868b;if(_0x1a2ee2[_0x48a783('0x11c2')]&&_0x1a2ee2[_0x48a783('0x11c2')][_0x48a783('0x1a69')]&&_0x1a2ee2[_0x48a783('0x11c2')]['errors'][_0x48a783('0x577')]){_0x2852e7[_0x48a783('0x1a69')]=_0x1a2ee2[_0x48a783('0x11c2')][_0x48a783('0x1a69')]||[{'message':_0x1a2ee2[_0x48a783('0x174f')](),'type':_0x48a783('0x2f3')}];for(var _0x37b1b0=0x0;_0x37b1b0<_0x1a2ee2[_0x48a783('0x11c2')][_0x48a783('0x1a69')]['length'];_0x37b1b0++){_0xa4a695[_0x48a783('0x2092')]({'title':_0x1a2ee2[_0x48a783('0x11c2')][_0x48a783('0x1a69')][_0x37b1b0][_0x48a783('0x7fa')],'msg':_0x1a2ee2[_0x48a783('0x11c2')][_0x48a783('0x1a69')][_0x37b1b0]['message']});}}else _0xa4a695['error']({'title':_0x1a2ee2['status']?_0x48a783('0x22d')+_0x1a2ee2[_0x48a783('0x209')]+'\x20-\x20'+_0x1a2ee2[_0x48a783('0x1808')]:'SYSTEM:DELETEanalyticExtractedReport','msg':_0x1a2ee2[_0x48a783('0x11c2')]?JSON[_0x48a783('0x25e')](_0x1a2ee2['data'][_0x48a783('0x1224')]):_0x1a2ee2[_0x48a783('0x1224')]||_0x1a2ee2['toString']()});});}function _0x4f001d(){var _0xd046fb=_0x2b4352,_0x4e46ac=angular[_0xd046fb('0xd75')](_0x2852e7[_0xd046fb('0x22ad')]);return _0x2852e7['selectedExtractedReports']=[],_0x4e46ac;}function _0x3cd98c(_0x13375c){var _0x55446d=_0x2b4352,_0x21a985=_0x398ecc[_0x55446d('0xa33')]()[_0x55446d('0x4b4')](_0x55446d('0xaa9'))[_0x55446d('0x276b')](_0x55446d('0x622')+_0x2852e7[_0x55446d('0x22ad')]['length']+'\x20selected'+_0x55446d('0x25e0'))[_0x55446d('0x7a7')]('delete\x20ExtractedReports')['targetEvent'](_0x13375c)['ok']('OK')['cancel'](_0x55446d('0x284b'));_0x398ecc[_0x55446d('0x853')](_0x21a985)[_0x55446d('0x21ad')](function(){var _0xfa7992=_0x55446d;_0x2852e7[_0xfa7992('0x22ad')][_0xfa7992('0x1a52')](function(_0x2609b7){_0x55619e(_0x2609b7);}),_0x2852e7[_0xfa7992('0x22ad')]=[];});}function _0x5102cc(){var _0x1a6d7b=_0x2b4352;_0x2852e7[_0x1a6d7b('0x22ad')]=[];}function _0x5c093c(){var _0x5544bd=_0x2b4352;_0x2852e7[_0x5544bd('0x22ad')]=_0x2852e7[_0x5544bd('0x1698')][_0x5544bd('0x1b33')];}}const _0x234225=_0x204a26;_0x5b4694[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),'toasty',_0x3877e3('0x78b'),_0x3877e3('0x1e34'),_0x3877e3('0xccd'),'Auth','license',_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x5b4694(_0x3f4ff4,_0x149079,_0x5591e7,_0x46f6e1,_0x12c429,_0x51bb5b,_0x409910,_0x329590,_0x585e1a,_0x3e531e,_0x9cea7c,_0x126ba4,_0x8ae6d9,_0x5978be){var _0x5c5dc4=_0x3877e3,_0x516730=this;_0x516730['currentUser']=_0x9cea7c[_0x5c5dc4('0x15ed')](),_0x516730[_0x5c5dc4('0x1a69')]=[],_0x516730[_0x5c5dc4('0x21e')]=_0x8ae6d9,_0x516730[_0x5c5dc4('0x2ff')]=_0x126ba4,_0x516730[_0x5c5dc4('0x5ed')]=_0x5978be,_0x516730[_0x5c5dc4('0x126a')]={},_0x516730[_0x5c5dc4('0x1432')]=_0x516730[_0x5c5dc4('0x21e')]&&_0x516730[_0x5c5dc4('0x21e')][_0x5c5dc4('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x516730[_0x5c5dc4('0x4b4')]=_0x5c5dc4('0xff2'),_0x516730[_0x5c5dc4('0x1e34')]=angular[_0x5c5dc4('0xd75')](_0x585e1a),_0x516730[_0x5c5dc4('0x78b')]=_0x329590,_0x516730[_0x5c5dc4('0x1359')]=![];!_0x516730[_0x5c5dc4('0x1e34')]&&(_0x516730[_0x5c5dc4('0x1e34')]={'table':'report_agent'},_0x516730['title']=_0x5c5dc4('0x2430'),_0x516730[_0x5c5dc4('0x1359')]=!![]);_0x516730[_0x5c5dc4('0x2166')]=_0x2ec352,_0x516730['saveMetric']=_0x4fcf2c,_0x516730[_0x5c5dc4('0x9be')]=_0x40e9a9,_0x516730[_0x5c5dc4('0x279')]=_0xe11433,_0x516730[_0x5c5dc4('0x167')]=_0x4fb03a;function _0x2ec352(){var _0x20206a=_0x5c5dc4;_0x516730['errors']=[],_0x3e531e[_0x20206a('0x14bc')][_0x20206a('0x186f')](_0x516730[_0x20206a('0x1e34')])[_0x20206a('0x1376')][_0x20206a('0x21ad')](function(_0x4aada9){var _0x3a7104=_0x20206a;_0x516730[_0x3a7104('0x78b')][_0x3a7104('0xd0c')](_0x4aada9[_0x3a7104('0x3bc')]()),_0x409910['success']({'title':_0x3a7104('0xf1'),'msg':_0x516730['metric'][_0x3a7104('0x19fe')]?_0x516730['metric'][_0x3a7104('0x19fe')]+_0x3a7104('0x1694'):''}),_0x4fb03a(_0x4aada9);})['catch'](function(_0xc979c2){var _0x42583d=_0x20206a;if(_0xc979c2[_0x42583d('0x11c2')]&&_0xc979c2['data'][_0x42583d('0x1a69')]&&_0xc979c2[_0x42583d('0x11c2')][_0x42583d('0x1a69')]['length']){_0x516730[_0x42583d('0x1a69')]=_0xc979c2['data'][_0x42583d('0x1a69')]||[{'message':_0xc979c2[_0x42583d('0x174f')](),'type':'api.analyticMetric.save'}];for(var _0x7917ec=0x0;_0x7917ec<_0xc979c2['data'][_0x42583d('0x1a69')][_0x42583d('0x577')];_0x7917ec+=0x1){_0x409910[_0x42583d('0x2092')]({'title':_0xc979c2['data'][_0x42583d('0x1a69')][_0x7917ec]['type'],'msg':_0xc979c2[_0x42583d('0x11c2')][_0x42583d('0x1a69')][_0x7917ec][_0x42583d('0x1224')]});}}else _0x409910[_0x42583d('0x2092')]({'title':_0xc979c2['status']?'API:'+_0xc979c2[_0x42583d('0x209')]+_0x42583d('0xa99')+_0xc979c2[_0x42583d('0x1808')]:_0x42583d('0x174'),'msg':_0xc979c2[_0x42583d('0x11c2')]?JSON[_0x42583d('0x25e')](_0xc979c2[_0x42583d('0x11c2')][_0x42583d('0x1224')]):_0xc979c2[_0x42583d('0x174f')]()});});}function _0x4fcf2c(){var _0x23c34a=_0x5c5dc4;_0x516730[_0x23c34a('0x1a69')]=[],_0x3e531e[_0x23c34a('0x14bc')][_0x23c34a('0x5ef')]({'id':_0x516730[_0x23c34a('0x1e34')]['id']},_0x516730['metric'])[_0x23c34a('0x1376')][_0x23c34a('0x21ad')](function(_0x4a4549){var _0xf93286=_0x23c34a,_0x316193=_0x86640f()[_0xf93286('0x1d2e')](_0x516730[_0xf93286('0x78b')],{'id':_0x4a4549['id']});_0x316193&&_0x86640f()[_0xf93286('0xd0e')](_0x316193,_0x86640f()[_0xf93286('0xc50')](_0x4a4549['toJSON'](),_0x86640f()[_0xf93286('0x223b')](_0x316193))),_0x409910[_0xf93286('0xdb1')]({'title':_0xf93286('0x1b3d'),'msg':_0x516730['metric']['name']?_0x516730['metric']['name']+_0xf93286('0x2249'):''}),_0x4fb03a(_0x4a4549);})[_0x23c34a('0x1c1d')](function(_0x2ab4ed){var _0x757c93=_0x23c34a;if(_0x2ab4ed[_0x757c93('0x11c2')]&&_0x2ab4ed['data'][_0x757c93('0x1a69')]&&_0x2ab4ed[_0x757c93('0x11c2')]['errors'][_0x757c93('0x577')]){_0x516730[_0x757c93('0x1a69')]=_0x2ab4ed[_0x757c93('0x11c2')][_0x757c93('0x1a69')]||[{'message':_0x2ab4ed[_0x757c93('0x174f')](),'type':_0x757c93('0x2646')}];for(var _0x115426=0x0;_0x115426<_0x2ab4ed[_0x757c93('0x11c2')][_0x757c93('0x1a69')]['length'];_0x115426++){_0x409910[_0x757c93('0x2092')]({'title':_0x2ab4ed[_0x757c93('0x11c2')][_0x757c93('0x1a69')][_0x115426][_0x757c93('0x7fa')],'msg':_0x2ab4ed[_0x757c93('0x11c2')]['errors'][_0x115426]['message']});}}else _0x409910['error']({'title':_0x2ab4ed[_0x757c93('0x209')]?'API:'+_0x2ab4ed[_0x757c93('0x209')]+_0x757c93('0xa99')+_0x2ab4ed[_0x757c93('0x1808')]:_0x757c93('0x2646'),'msg':_0x2ab4ed[_0x757c93('0x11c2')]?JSON[_0x757c93('0x25e')](_0x2ab4ed[_0x757c93('0x11c2')][_0x757c93('0x1224')]):_0x2ab4ed['toString']()});});}function _0x40e9a9(_0x5e2bf3){var _0x181f48=_0x5c5dc4;_0x516730['errors']=[];var _0x4249dd=_0x46f6e1[_0x181f48('0xa33')]()['title']('Are\x20you\x20sure?')[_0x181f48('0x13fb')](_0x181f48('0xdf6'))[_0x181f48('0x7a7')](_0x181f48('0x1fb8'))['ok']('Delete')['cancel'](_0x181f48('0x1f40'))[_0x181f48('0x1e6d')](_0x5e2bf3);_0x46f6e1[_0x181f48('0x853')](_0x4249dd)[_0x181f48('0x21ad')](function(){var _0x145e3d=_0x181f48;_0x3e531e[_0x145e3d('0x14bc')]['delete']({'id':_0x516730['metric']['id']})[_0x145e3d('0x1376')][_0x145e3d('0x21ad')](function(){var _0x2eecf4=_0x145e3d;_0x86640f()['remove'](_0x516730['metrics'],{'id':_0x516730[_0x2eecf4('0x1e34')]['id']}),_0x409910[_0x2eecf4('0xdb1')]({'title':_0x2eecf4('0xb3f'),'msg':(_0x516730['metric'][_0x2eecf4('0x19fe')]||_0x2eecf4('0x1e34'))+'\x20has\x20been\x20deleted!'}),_0x4fb03a(_0x516730[_0x2eecf4('0x1e34')]);})[_0x145e3d('0x1c1d')](function(_0x50656c){var _0x3b41c1=_0x145e3d;if(_0x50656c['data']&&_0x50656c[_0x3b41c1('0x11c2')][_0x3b41c1('0x1a69')]&&_0x50656c['data'][_0x3b41c1('0x1a69')][_0x3b41c1('0x577')]){_0x516730[_0x3b41c1('0x1a69')]=_0x50656c[_0x3b41c1('0x11c2')][_0x3b41c1('0x1a69')]||[{'message':_0x50656c[_0x3b41c1('0x174f')](),'type':'api.analyticMetric.delete'}];for(var _0x2f3dfe=0x0;_0x2f3dfe<_0x50656c['data'][_0x3b41c1('0x1a69')][_0x3b41c1('0x577')];_0x2f3dfe++){_0x409910[_0x3b41c1('0x2092')]({'title':_0x50656c[_0x3b41c1('0x11c2')][_0x3b41c1('0x1a69')][_0x2f3dfe]['type'],'msg':_0x50656c['data'][_0x3b41c1('0x1a69')][_0x2f3dfe]['message']});}}else _0x409910[_0x3b41c1('0x2092')]({'title':_0x50656c[_0x3b41c1('0x209')]?'API:'+_0x50656c['status']+_0x3b41c1('0xa99')+_0x50656c[_0x3b41c1('0x1808')]:'api.analyticMetric.delete','msg':_0x50656c[_0x3b41c1('0x11c2')]?JSON[_0x3b41c1('0x25e')](_0x50656c[_0x3b41c1('0x11c2')][_0x3b41c1('0x1224')]):_0x50656c[_0x3b41c1('0x1224')]||_0x50656c[_0x3b41c1('0x174f')]()});});},function(){});}function _0xe11433(_0x25581e){return _0x25581e===null?undefined:new Date(_0x25581e);}function _0x4fb03a(_0xe39d42){var _0x3d0b96=_0x5c5dc4;_0x46f6e1[_0x3d0b96('0x1c24')](_0xe39d42);}}const _0x2228a4=_0x5b4694,_0x5c6c4f=_0x398308['p']+_0x3877e3('0x519');_0x1e24ea['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),'$state','$mdSidenav','$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x13c1'),'metrics',_0x3877e3('0x758'),'userProfileSection',_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1908'),'Auth',_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x1e24ea(_0x4ff30d,_0x4bc5cc,_0x4bf449,_0x184f1f,_0x578f05,_0x3da7f6,_0xabbf2e,_0xb0de8a,_0x159c66,_0x63b36,_0x341003,_0x2dc9a8,_0x5331e9,_0x1b4960,_0x25f2e7,_0x524abc,_0x1de56e){var _0x52751b=_0x3877e3,_0x28be5c=this;_0x28be5c[_0x52751b('0x2ff')]=_0x524abc,_0x28be5c[_0x52751b('0x21e')]=_0x1de56e,_0x28be5c[_0x52751b('0x123f')]=_0x25f2e7[_0x52751b('0x15ed')](),_0x28be5c[_0x52751b('0x78b')]=_0x159c66||{'count':0x0,'rows':[]},_0x28be5c[_0x52751b('0x758')]=_0x63b36,_0x28be5c[_0x52751b('0xab4')]=_0x341003&&_0x341003[_0x52751b('0x205f')]==0x1?_0x341003[_0x52751b('0x1b33')][0x0]:null,_0x28be5c[_0x52751b('0x5ed')]=_0x25f2e7['parseCrudPermissions'](_0x28be5c['userProfileSection']?_0x28be5c['userProfileSection'][_0x52751b('0x5ed')]:null),_0x28be5c[_0x52751b('0x1897')]=_0x52751b('0x78b'),_0x28be5c[_0x52751b('0x11dc')]='',_0x28be5c[_0x52751b('0x18cf')]=null,_0x28be5c[_0x52751b('0x2164')]=[],_0x28be5c[_0x52751b('0x77')]={'fields':'createdAt,updatedAt,id,name,table,metric,description','sort':_0x52751b('0x33'),'limit':0xa,'page':0x1},_0x28be5c[_0x52751b('0x19b2')]=_0x86640f()[_0x52751b('0xcde')]([{'option':_0x52751b('0x1ab2'),'value':'\x27report_agent\x27'},{'option':_0x52751b('0x498'),'value':_0x52751b('0x897')},{'option':'CDR','value':_0x52751b('0x11f5')},{'option':_0x52751b('0x26cd'),'value':_0x52751b('0x827')},{'option':_0x52751b('0x531'),'value':_0x52751b('0x5cc')},{'option':'Chat\x20Messages','value':_0x52751b('0x1103')},{'option':'Chat\x20Offline\x20Messages','value':'\x27chat_offline_messages\x27'},{'option':_0x52751b('0x2292'),'value':_0x52751b('0x9b9')},{'option':'Chat\x20Report\x20Queue','value':_0x52751b('0xb54')},{'option':_0x52751b('0x169'),'value':_0x52751b('0x1a64')},{'option':_0x52751b('0x1d4d'),'value':'\x27cm_companies\x27'},{'option':'Contacts','value':_0x52751b('0x12c0')},{'option':_0x52751b('0x918'),'value':'\x27report_square\x27'},{'option':_0x52751b('0xd8c'),'value':_0x52751b('0x24ff')},{'option':_0x52751b('0x1067'),'value':_0x52751b('0x18cc')},{'option':_0x52751b('0x15a'),'value':_0x52751b('0x55c')},{'option':_0x52751b('0x260e'),'value':_0x52751b('0x1e84')},{'option':_0x52751b('0xd8f'),'value':_0x52751b('0x508')},{'option':_0x52751b('0x64a'),'value':'\x27mail_accounts\x27'},{'option':_0x52751b('0x1dd2'),'value':_0x52751b('0xbfa')},{'option':_0x52751b('0x26f'),'value':_0x52751b('0x25e3')},{'option':_0x52751b('0x179a'),'value':_0x52751b('0x2051')},{'option':'Email\x20Report\x20Queue','value':_0x52751b('0x2607')},{'option':_0x52751b('0xbe1'),'value':_0x52751b('0xdab')},{'option':_0x52751b('0x4b8'),'value':_0x52751b('0x4a8')},{'option':'Fax\x20Interaction','value':_0x52751b('0x1100')},{'option':_0x52751b('0x1bb8'),'value':_0x52751b('0x1fce')},{'option':'Fax\x20Queues','value':_0x52751b('0x1f5')},{'option':_0x52751b('0x1344'),'value':_0x52751b('0x1db7')},{'option':'Fax\x20Report\x20Transfer','value':'\x27report_fax_transfer\x27'},{'option':'Jscripty\x20Sessions','value':_0x52751b('0x1824')},{'option':_0x52751b('0x71d'),'value':_0x52751b('0x2768')},{'option':'Jscripty\x20Answers','value':'\x27report_jscripty_answers\x27'},{'option':_0x52751b('0xd8d'),'value':_0x52751b('0x158')},{'option':_0x52751b('0x24c5'),'value':_0x52751b('0x38a')},{'option':_0x52751b('0x19bf'),'value':_0x52751b('0xf03')},{'option':_0x52751b('0xc95'),'value':_0x52751b('0x11f3')},{'option':_0x52751b('0x2116'),'value':'\x27openchannel_messages\x27'},{'option':_0x52751b('0x594'),'value':'\x27openchannel_queues\x27'},{'option':_0x52751b('0xed4'),'value':_0x52751b('0x1ec1')},{'option':_0x52751b('0x1c8f'),'value':_0x52751b('0x10ca')},{'option':'Queue\x20Report','value':_0x52751b('0x1a54')},{'option':_0x52751b('0x955'),'value':_0x52751b('0x1923')},{'option':_0x52751b('0x2489'),'value':'\x27sms_interactions\x27'},{'option':'SMS\x20Messages','value':'\x27sms_messages\x27'},{'option':'SMS\x20Queues','value':_0x52751b('0x1c41')},{'option':'SMS\x20Report\x20Queue','value':_0x52751b('0x1cc2')},{'option':_0x52751b('0x92c'),'value':_0x52751b('0x18f4')},{'option':_0x52751b('0x6cc'),'value':_0x52751b('0x11e')},{'option':_0x52751b('0x23d0'),'value':_0x52751b('0x174a')},{'option':'Whatsapp\x20Account','value':_0x52751b('0x1919')},{'option':_0x52751b('0x21d2'),'value':_0x52751b('0x2864')},{'option':_0x52751b('0x13b3'),'value':'\x27whatsapp_messages\x27'},{'option':_0x52751b('0xf4c'),'value':_0x52751b('0x1094')},{'option':'Whatsapp\x20Report\x20Queue','value':_0x52751b('0x178b')},{'option':_0x52751b('0x16f8'),'value':_0x52751b('0xad4')}],function(_0x1ac5ef){var _0x3c35e7=_0x52751b;return _0x86640f()['replace'](_0x1ac5ef[_0x3c35e7('0x2228')],new RegExp('\x27','g'),'');}),_0x28be5c['editdialog']=_0x2dd8d6,_0x28be5c[_0x52751b('0x2593')]=_0x53009c,_0x28be5c[_0x52751b('0xdb1')]=_0x201ddd,_0x28be5c[_0x52751b('0x1397')]=_0x72c791,_0x28be5c['createOrEditMetric']=_0x1de3b0,_0x28be5c[_0x52751b('0x9be')]=_0x17a81a,_0x28be5c[_0x52751b('0x1984')]=_0x495026,_0x28be5c['deleteSelectedMetrics']=_0x37c48b,_0x28be5c[_0x52751b('0x27b4')]=_0x4d1751,_0x28be5c[_0x52751b('0x746')]=_0x6201d4;function _0x2dd8d6(_0x282c7a,_0x335c05){var _0x3607df=_0x52751b;_0x578f05[_0x3607df('0x853')]({'controller':_0x3607df('0x113'),'controllerAs':'vm','templateUrl':_0x5c6c4f,'parent':angular[_0x3607df('0x1676')](_0x3da7f6[_0x3607df('0x2452')]),'targetEvent':_0x335c05,'clickOutsideToClose':!![],'locals':{'metric':_0x282c7a,'metrics':_0x28be5c[_0x3607df('0x78b')][_0x3607df('0x1b33')],'license':_0x28be5c[_0x3607df('0x2ff')],'setting':null,'crudPermissions':_0x28be5c['crudPermissions']}});}function _0x53009c(_0x9f30e0,_0x307699){var _0x509093=_0x52751b,_0x582532=_0x578f05[_0x509093('0xa33')]()[_0x509093('0x4b4')](_0x509093('0x25b6')+_0x86640f()[_0x509093('0x2159')](_0x509093('0x1e34'))+'?')[_0x509093('0x276b')](_0x509093('0x622')+(_0x9f30e0['name']||_0x509093('0x1e34'))+''+_0x509093('0x25e0'))['ariaLabel'](_0x509093('0xe00'))[_0x509093('0x1e6d')](_0x307699)['ok']('OK')[_0x509093('0x3b5')]('CANCEL');_0x578f05[_0x509093('0x853')](_0x582532)[_0x509093('0x21ad')](function(){_0x17a81a(_0x9f30e0);},function(){var _0x250d6e=_0x509093;console[_0x250d6e('0x6fb')](_0x250d6e('0x284b'));});}var _0x15a7ac=!![],_0x4e914d=0x1;_0x4ff30d[_0x52751b('0x10e8')](_0x52751b('0x1948'),function(_0x451907,_0x2a399a){var _0xc3b506=_0x52751b;_0x15a7ac?_0xabbf2e(function(){_0x15a7ac=![];}):(!_0x2a399a&&(_0x4e914d=_0x28be5c['query'][_0xc3b506('0x2376')]),_0x451907!==_0x2a399a&&(_0x28be5c[_0xc3b506('0x77')][_0xc3b506('0x2376')]=0x1),!_0x451907&&(_0x28be5c[_0xc3b506('0x77')][_0xc3b506('0x2376')]=_0x4e914d),_0x28be5c[_0xc3b506('0x1397')]());});function _0x201ddd(_0x2a348f){_0x28be5c['metrics']=_0x2a348f||{'count':0x0,'rows':[]};}function _0x72c791(){var _0x406624=_0x52751b;_0x28be5c['query'][_0x406624('0x15a5')]=(_0x28be5c[_0x406624('0x77')][_0x406624('0x2376')]-0x1)*_0x28be5c[_0x406624('0x77')][_0x406624('0x1f4a')],_0x25f2e7[_0x406624('0x21de')](_0x406624('0x1bd8'))?_0x28be5c[_0x406624('0x71b')]=_0x2dc9a8[_0x406624('0x14bc')][_0x406624('0x595')](_0x28be5c[_0x406624('0x77')],_0x201ddd)[_0x406624('0x1376')]:(_0x28be5c[_0x406624('0x77')]['id']=_0x28be5c['userProfile']['id'],_0x28be5c['query'][_0x406624('0x26ad')]=_0x406624('0x208'),_0x28be5c[_0x406624('0x71b')]=_0x2dc9a8['userProfile'][_0x406624('0x321')](_0x28be5c[_0x406624('0x77')],_0x201ddd)[_0x406624('0x1376')]);}function _0x1de3b0(_0x473c9e,_0x28c7d8){var _0x11786a=_0x52751b;_0x578f05[_0x11786a('0x853')]({'controller':_0x11786a('0x113'),'controllerAs':'vm','templateUrl':_0x5c6c4f,'parent':angular[_0x11786a('0x1676')](_0x3da7f6[_0x11786a('0x2452')]),'targetEvent':_0x473c9e,'clickOutsideToClose':!![],'locals':{'metric':_0x28c7d8,'metrics':_0x28be5c['metrics'][_0x11786a('0x1b33')],'license':_0x28be5c[_0x11786a('0x2ff')],'setting':_0x28be5c[_0x11786a('0x21e')],'crudPermissions':_0x28be5c[_0x11786a('0x5ed')]}});}function _0x17a81a(_0x195232){var _0x14f446=_0x52751b;_0x2dc9a8[_0x14f446('0x14bc')][_0x14f446('0x1164')]({'id':_0x195232['id']})[_0x14f446('0x1376')][_0x14f446('0x21ad')](function(){var _0x1f7540=_0x14f446;_0x86640f()[_0x1f7540('0x16a2')](_0x28be5c[_0x1f7540('0x78b')][_0x1f7540('0x1b33')],{'id':_0x195232['id']}),_0x28be5c[_0x1f7540('0x78b')][_0x1f7540('0x205f')]-=0x1,!_0x28be5c[_0x1f7540('0x78b')][_0x1f7540('0x1b33')][_0x1f7540('0x577')]&&_0x28be5c[_0x1f7540('0x1397')](),_0x1b4960[_0x1f7540('0xdb1')]({'title':_0x86640f()[_0x1f7540('0x2159')](_0x1f7540('0x490'))+'\x20deleted!','msg':_0x195232[_0x1f7540('0x19fe')]?_0x195232['name']+_0x1f7540('0xb4a'):''});})[_0x14f446('0x1c1d')](function(_0x1ae5fb){var _0xf11ab=_0x14f446;if(_0x1ae5fb[_0xf11ab('0x11c2')]&&_0x1ae5fb[_0xf11ab('0x11c2')][_0xf11ab('0x1a69')]&&_0x1ae5fb[_0xf11ab('0x11c2')]['errors']['length']){_0x28be5c[_0xf11ab('0x1a69')]=_0x1ae5fb[_0xf11ab('0x11c2')][_0xf11ab('0x1a69')]||[{'message':_0x1ae5fb[_0xf11ab('0x174f')](),'type':_0xf11ab('0x19de')}];for(var _0x36e373=0x0;_0x36e373<_0x1ae5fb['data'][_0xf11ab('0x1a69')][_0xf11ab('0x577')];_0x36e373++){_0x1b4960[_0xf11ab('0x2092')]({'title':_0x1ae5fb[_0xf11ab('0x11c2')]['errors'][_0x36e373]['type'],'msg':_0x1ae5fb[_0xf11ab('0x11c2')][_0xf11ab('0x1a69')][_0x36e373][_0xf11ab('0x1224')]});}}else _0x1b4960[_0xf11ab('0x2092')]({'title':_0x1ae5fb[_0xf11ab('0x209')]?_0xf11ab('0x22d')+_0x1ae5fb[_0xf11ab('0x209')]+_0xf11ab('0xa99')+_0x1ae5fb['statusText']:_0xf11ab('0x19de'),'msg':_0x1ae5fb[_0xf11ab('0x11c2')]?JSON[_0xf11ab('0x25e')](_0x1ae5fb[_0xf11ab('0x11c2')][_0xf11ab('0x1224')]):_0x1ae5fb[_0xf11ab('0x1224')]||_0x1ae5fb[_0xf11ab('0x174f')]()});});}function _0x495026(){var _0x244379=_0x52751b,_0x19e681=angular['copy'](_0x28be5c[_0x244379('0x2164')]);return _0x28be5c['selectedMetrics']=[],_0x19e681;}function _0x37c48b(_0x30e079){var _0x4baf9d=_0x52751b,_0x33c1c5=_0x578f05[_0x4baf9d('0xa33')]()[_0x4baf9d('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20metrics?')[_0x4baf9d('0x276b')](_0x4baf9d('0x622')+_0x28be5c[_0x4baf9d('0x2164')][_0x4baf9d('0x577')]+_0x4baf9d('0xd74')+_0x4baf9d('0x25e0'))[_0x4baf9d('0x7a7')]('delete\x20Metrics')['targetEvent'](_0x30e079)['ok']('OK')[_0x4baf9d('0x3b5')]('CANCEL');_0x578f05[_0x4baf9d('0x853')](_0x33c1c5)['then'](function(){var _0xdbbccd=_0x4baf9d;_0x28be5c[_0xdbbccd('0x2164')][_0xdbbccd('0x1a52')](function(_0x3b7699){_0x17a81a(_0x3b7699);}),_0x28be5c[_0xdbbccd('0x2164')]=[];});}function _0x4d1751(){_0x28be5c['selectedMetrics']=[];}function _0x6201d4(){var _0x3752c7=_0x52751b;_0x28be5c[_0x3752c7('0x2164')]=_0x28be5c['metrics'][_0x3752c7('0x1b33')];}}const _0x19197c=_0x1e24ea;_0x351c93[_0x3877e3('0x1a81')]=['$stateProvider',_0x3877e3('0x972')];function _0x351c93(_0x1c4ca6,_0x31a612){var _0x5caec5=_0x3877e3;_0x1c4ca6[_0x5caec5('0x27e')](_0x5caec5('0x17c0'),{'abstract':!![],'url':_0x5caec5('0x193e')})[_0x5caec5('0x27e')](_0x5caec5('0x1319'),{'url':_0x5caec5('0x21f5'),'views':{'content@app':{'templateUrl':_0x4c1399,'controller':'MetricsController\x20as\x20vm'}},'resolve':{'metrics':['apiResolver',_0x5caec5('0x15bc'),function _0x1d4dc7(_0x2e50bb,_0x225407){var _0x13ba1c=_0x5caec5;return _0x225407[_0x13ba1c('0x21de')](_0x13ba1c('0x1bd8'))?_0x2e50bb[_0x13ba1c('0x8ac')](_0x13ba1c('0x2739'),{'fields':_0x13ba1c('0x1c1'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x2e50bb[_0x13ba1c('0x8ac')](_0x13ba1c('0x52f'),{'id':_0x225407[_0x13ba1c('0x15ed')]()['userProfileId'],'section':_0x13ba1c('0x208'),'fields':_0x13ba1c('0x1c1'),'sort':_0x13ba1c('0x33'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function _0x4b7512(_0x3e70b4,_0x3cc5a9){var _0x59f0e5=_0x5caec5;return _0x3cc5a9[_0x59f0e5('0x21de')](_0x59f0e5('0x1bd8'))?null:_0x3e70b4[_0x59f0e5('0x8ac')](_0x59f0e5('0x1e1d'),{'fields':'id,name,crudPermissions','id':_0x3cc5a9[_0x59f0e5('0x15ed')]()[_0x59f0e5('0x1618')]});}],'userProfileSection':[_0x5caec5('0x354'),_0x5caec5('0x15bc'),function _0x207a9c(_0x9d26db,_0x149aad){var _0x42b522=_0x5caec5;return _0x149aad['hasRole'](_0x42b522('0x1bd8'))?null:_0x9d26db[_0x42b522('0x8ac')](_0x42b522('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x149aad['getCurrentUser']()['userProfileId'],'sectionId':0x4b1});}]},'authenticate':!![],'permissionId':0x4b1,'bodyClass':'analytics'})[_0x5caec5('0x27e')](_0x5caec5('0x2718'),{'url':'/extractedReports','views':{'content@app':{'templateUrl':_0x1b339c,'controller':_0x5caec5('0xa00')}},'resolve':{'extractedReports':['apiResolver',_0x5caec5('0x15bc'),function _0x5d82d5(_0x2c43bc,_0x5c3d19){var _0xdac7b6=_0x5caec5;return _0x5c3d19['hasRole'](_0xdac7b6('0x1bd8'))?_0x2c43bc[_0xdac7b6('0x8ac')](_0xdac7b6('0x10ce'),{'fields':_0xdac7b6('0x187b'),'sort':_0xdac7b6('0x33'),'limit':0xa,'offset':0x0}):_0x2c43bc[_0xdac7b6('0x8ac')](_0xdac7b6('0x52f'),{'id':_0x5c3d19[_0xdac7b6('0x15ed')]()['userProfileId'],'section':_0xdac7b6('0x1450'),'fields':'createdAt,updatedAt,id,name,basename,savename,type,startDate,endDate,status,output,reportId,reportType','sort':_0xdac7b6('0x33'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5caec5('0x354'),_0x5caec5('0x15bc'),function _0x254961(_0xb7cde7,_0x39d6b3){var _0x2b9767=_0x5caec5;return _0x39d6b3['hasRole'](_0x2b9767('0x1bd8'))?null:_0xb7cde7[_0x2b9767('0x8ac')](_0x2b9767('0x1e1d'),{'fields':'id,name,crudPermissions','id':_0x39d6b3[_0x2b9767('0x15ed')]()[_0x2b9767('0x1618')]});}],'userProfileSection':[_0x5caec5('0x354'),'Auth',function _0xdc5293(_0x554091,_0x46f64c){var _0x52c558=_0x5caec5;return _0x46f64c['hasRole']('admin')?null:_0x554091[_0x52c558('0x8ac')](_0x52c558('0x222f'),{'fields':_0x52c558('0x1852'),'userProfileId':_0x46f64c[_0x52c558('0x15ed')]()[_0x52c558('0x1618')],'sectionId':0x4b2});}]},'authenticate':!![],'permissionId':0x4b2,'bodyClass':_0x5caec5('0x1268')}),_0x31a612['addPart']('app/main/apps/analytics');}angular['module'](_0x3877e3('0x17c0'),[_0x3877e3('0x240c'),_0x3877e3('0x1b0'),_0x3877e3('0xca'),_0x3877e3('0x1d76'),_0x3877e3('0x2437'),'ckeditor',_0x3877e3('0x1182'),'ngAria','ngAnimate',_0x3877e3('0x335'),_0x3877e3('0xc90'),_0x3877e3('0x56d'),_0x3877e3('0xe2f'),'ngclipboard',_0x3877e3('0xf61'),_0x3877e3('0xe39'),_0x3877e3('0x25a2'),_0x3877e3('0x27ba'),_0x3877e3('0x9e0'),'angular.filter',_0x3877e3('0x17d9')])[_0x3877e3('0x13')](_0x351c93)[_0x3877e3('0x1d5a')]('CreateOrEditExtractedReportDialogController',_0x54bdea)[_0x3877e3('0x1d5a')](_0x3877e3('0x1462'),_0x234225)['controller'](_0x3877e3('0x113'),_0x2228a4)[_0x3877e3('0x1d5a')](_0x3877e3('0x77d'),_0x19197c);const _0x5ba084=_0x398308['p']+_0x3877e3('0x305'),_0x40d2ae=_0x398308['p']+_0x3877e3('0x987'),_0x3dda7e=_0x398308['p']+_0x3877e3('0x7e'),_0x320f8b=_0x398308['p']+'src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/view.html/view-[chunkhash].html',_0x2bbd39=_0x398308['p']+_0x3877e3('0x1dcf'),_0x11de1a=_0x398308['p']+_0x3877e3('0x1236'),_0x43f9d4=_0x398308['p']+'src/js/modules/main/apps/integrations/views/sugarcrmAccounts/sugarcrmAccounts.html/sugarcrmAccounts-[chunkhash].html',_0x1e8bc7=_0x398308['p']+_0x3877e3('0x15f'),_0x4b8ca7=_0x398308['p']+_0x3877e3('0x9f4'),_0xcc7a91=_0x398308['p']+_0x3877e3('0xc38'),_0x12fd53=_0x398308['p']+_0x3877e3('0x19d8'),_0x80d3d5=_0x398308['p']+_0x3877e3('0x119a'),_0x4afde1=_0x398308['p']+_0x3877e3('0x1b38'),_0xba0a28=_0x398308['p']+_0x3877e3('0x1bbc'),_0x18bf22=_0x398308['p']+'src/js/modules/main/apps/integrations/views/dynamics365Accounts/dynamics365Accounts.html/dynamics365Accounts-[chunkhash].html',_0x471510=_0x398308['p']+_0x3877e3('0x13c6'),_0x52c238=_0x398308['p']+'src/js/modules/main/apps/integrations/views/servicenowAccounts/servicenowAccounts.html/servicenowAccounts-[chunkhash].html',_0x36f1d9=_0x398308['p']+'src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/view.html/view-[chunkhash].html',_0x9489a2=_0x398308['p']+_0x3877e3('0x6c4'),_0x1e6f66=_0x398308['p']+_0x3877e3('0x1e88');_0x47535b[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$state','$location',_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),'toasty',_0x3877e3('0x231d'),_0x3877e3('0x17c9'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x47535b(_0x3fabe6,_0x2db6c9,_0x2f0ded,_0x43cc81,_0x39677e,_0x5e53b9,_0x2caaa1,_0x3dcdf9,_0x422f5a,_0x16d80e,_0x2ac2cf,_0x5a9326,_0x2308ae,_0x98fa5c){var _0x396225=_0x3877e3,_0x7342f8=this;_0x7342f8[_0x396225('0x123f')]=_0x2ac2cf[_0x396225('0x15ed')](),_0x7342f8[_0x396225('0x1a69')]=[],_0x7342f8[_0x396225('0x21e')]=_0x2308ae,_0x7342f8[_0x396225('0x2ff')]=_0x5a9326,_0x7342f8[_0x396225('0x5ed')]=_0x98fa5c,_0x7342f8['hasModulePermissions']={},_0x7342f8[_0x396225('0x1432')]=_0x7342f8['setting']&&_0x7342f8[_0x396225('0x21e')][_0x396225('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x7342f8[_0x396225('0x4b4')]=_0x396225('0x1aff'),_0x7342f8[_0x396225('0x17c9')]=angular[_0x396225('0xd75')](_0x422f5a),_0x7342f8['deskAccounts']=_0x3dcdf9,_0x7342f8['newDeskAccount']=![];!_0x7342f8[_0x396225('0x17c9')]&&(_0x7342f8[_0x396225('0x17c9')]={'type':_0x396225('0x1adf'),'authType':_0x396225('0x13e4'),'serverUrl':_0x2f0ded[_0x396225('0x1162')]()+_0x396225('0x22a9')+_0x2f0ded[_0x396225('0x1c01')]()+(_0x2f0ded[_0x396225('0x24fe')]()?':'+_0x2f0ded[_0x396225('0x24fe')]():'')},_0x7342f8[_0x396225('0x4b4')]='INTEGRATIONS.NEW_DESKACCOUNT',_0x7342f8['newDeskAccount']=!![]);_0x7342f8[_0x396225('0x2032')]=_0x504339,_0x7342f8['saveDeskAccount']=_0x301ed3,_0x7342f8['deleteDeskAccount']=_0x373080,_0x7342f8[_0x396225('0x279')]=_0x533e60,_0x7342f8[_0x396225('0x167')]=_0x381c53;function _0x504339(){var _0xff8d13=_0x396225;_0x7342f8['errors']=[],_0x16d80e[_0xff8d13('0x2012')]['save'](_0x7342f8[_0xff8d13('0x17c9')])[_0xff8d13('0x1376')][_0xff8d13('0x21ad')](function(_0x1549dd){var _0x19ff26=_0xff8d13;_0x7342f8['deskAccounts'][_0x19ff26('0xd0c')](_0x1549dd[_0x19ff26('0x3bc')]()),_0x2caaa1[_0x19ff26('0xdb1')]({'title':_0x19ff26('0x1fa4'),'msg':_0x7342f8[_0x19ff26('0x17c9')][_0x19ff26('0x19fe')]?_0x7342f8[_0x19ff26('0x17c9')][_0x19ff26('0x19fe')]+_0x19ff26('0x1694'):''}),_0x381c53(_0x1549dd);})['catch'](function(_0x58af66){var _0x591f6e=_0xff8d13;if(_0x58af66[_0x591f6e('0x11c2')]&&_0x58af66[_0x591f6e('0x11c2')]['errors']&&_0x58af66[_0x591f6e('0x11c2')]['errors'][_0x591f6e('0x577')]){_0x7342f8[_0x591f6e('0x1a69')]=_0x58af66[_0x591f6e('0x11c2')][_0x591f6e('0x1a69')]||[{'message':_0x58af66['toString'](),'type':_0x591f6e('0x1bf9')}];for(var _0x18ba42=0x0;_0x18ba42<_0x58af66[_0x591f6e('0x11c2')][_0x591f6e('0x1a69')][_0x591f6e('0x577')];_0x18ba42+=0x1){_0x2caaa1[_0x591f6e('0x2092')]({'title':_0x58af66[_0x591f6e('0x11c2')][_0x591f6e('0x1a69')][_0x18ba42][_0x591f6e('0x7fa')],'msg':_0x58af66[_0x591f6e('0x11c2')][_0x591f6e('0x1a69')][_0x18ba42][_0x591f6e('0x1224')]});}}else _0x2caaa1[_0x591f6e('0x2092')]({'title':_0x58af66[_0x591f6e('0x209')]?_0x591f6e('0x22d')+_0x58af66[_0x591f6e('0x209')]+_0x591f6e('0xa99')+_0x58af66[_0x591f6e('0x1808')]:_0x591f6e('0x1bf9'),'msg':_0x58af66['data']?JSON[_0x591f6e('0x25e')](_0x58af66[_0x591f6e('0x11c2')][_0x591f6e('0x1224')]):_0x58af66[_0x591f6e('0x174f')]()});});}function _0x301ed3(){var _0x15dc3a=_0x396225;_0x7342f8[_0x15dc3a('0x1a69')]=[],_0x16d80e['intDeskAccount'][_0x15dc3a('0x5ef')]({'id':_0x7342f8[_0x15dc3a('0x17c9')]['id']},_0x7342f8[_0x15dc3a('0x17c9')])['$promise']['then'](function(_0x4442b4){var _0x1f0568=_0x15dc3a,_0x5426fc=_0x86640f()[_0x1f0568('0x1d2e')](_0x7342f8[_0x1f0568('0x231d')],{'id':_0x4442b4['id']});_0x5426fc&&_0x86640f()['merge'](_0x5426fc,_0x86640f()[_0x1f0568('0xc50')](_0x4442b4[_0x1f0568('0x3bc')](),_0x86640f()[_0x1f0568('0x223b')](_0x5426fc))),_0x2caaa1[_0x1f0568('0xdb1')]({'title':'DeskAccount\x20properly\x20saved!','msg':_0x7342f8[_0x1f0568('0x17c9')][_0x1f0568('0x19fe')]?_0x7342f8[_0x1f0568('0x17c9')][_0x1f0568('0x19fe')]+_0x1f0568('0x2249'):''}),_0x381c53(_0x4442b4);})[_0x15dc3a('0x1c1d')](function(_0x2e28f4){var _0x2a9ec0=_0x15dc3a;if(_0x2e28f4[_0x2a9ec0('0x11c2')]&&_0x2e28f4['data'][_0x2a9ec0('0x1a69')]&&_0x2e28f4[_0x2a9ec0('0x11c2')][_0x2a9ec0('0x1a69')][_0x2a9ec0('0x577')]){_0x7342f8[_0x2a9ec0('0x1a69')]=_0x2e28f4[_0x2a9ec0('0x11c2')][_0x2a9ec0('0x1a69')]||[{'message':_0x2e28f4['toString'](),'type':_0x2a9ec0('0x10be')}];for(var _0x1a2e64=0x0;_0x1a2e64<_0x2e28f4['data'][_0x2a9ec0('0x1a69')][_0x2a9ec0('0x577')];_0x1a2e64++){_0x2caaa1[_0x2a9ec0('0x2092')]({'title':_0x2e28f4[_0x2a9ec0('0x11c2')]['errors'][_0x1a2e64][_0x2a9ec0('0x7fa')],'msg':_0x2e28f4[_0x2a9ec0('0x11c2')][_0x2a9ec0('0x1a69')][_0x1a2e64][_0x2a9ec0('0x1224')]});}}else _0x2caaa1['error']({'title':_0x2e28f4['status']?_0x2a9ec0('0x22d')+_0x2e28f4['status']+_0x2a9ec0('0xa99')+_0x2e28f4['statusText']:_0x2a9ec0('0x10be'),'msg':_0x2e28f4['data']?JSON[_0x2a9ec0('0x25e')](_0x2e28f4['data']['message']):_0x2e28f4[_0x2a9ec0('0x174f')]()});});}function _0x373080(_0x3db4ba){var _0x1c88e2=_0x396225;_0x7342f8[_0x1c88e2('0x1a69')]=[];var _0x1af3a9=_0x43cc81['confirm']()[_0x1c88e2('0x4b4')](_0x1c88e2('0x196b'))[_0x1c88e2('0x13fb')](_0x1c88e2('0x92b'))[_0x1c88e2('0x7a7')]('Delete\x20DeskAccount')['ok'](_0x1c88e2('0xbfd'))[_0x1c88e2('0x3b5')](_0x1c88e2('0x1f40'))[_0x1c88e2('0x1e6d')](_0x3db4ba);_0x43cc81[_0x1c88e2('0x853')](_0x1af3a9)[_0x1c88e2('0x21ad')](function(){var _0x49342f=_0x1c88e2;_0x16d80e['intDeskAccount'][_0x49342f('0x1164')]({'id':_0x7342f8['deskAccount']['id']})[_0x49342f('0x1376')][_0x49342f('0x21ad')](function(){var _0xaf9328=_0x49342f;_0x86640f()[_0xaf9328('0x16a2')](_0x7342f8[_0xaf9328('0x231d')],{'id':_0x7342f8[_0xaf9328('0x17c9')]['id']}),_0x2caaa1[_0xaf9328('0xdb1')]({'title':_0xaf9328('0x2259'),'msg':(_0x7342f8['deskAccount']['name']||_0xaf9328('0x17c9'))+_0xaf9328('0xb4a')}),_0x381c53(_0x7342f8[_0xaf9328('0x17c9')]);})['catch'](function(_0x357427){var _0x1be0bc=_0x49342f;if(_0x357427[_0x1be0bc('0x11c2')]&&_0x357427[_0x1be0bc('0x11c2')]['errors']&&_0x357427['data'][_0x1be0bc('0x1a69')][_0x1be0bc('0x577')]){_0x7342f8[_0x1be0bc('0x1a69')]=_0x357427[_0x1be0bc('0x11c2')][_0x1be0bc('0x1a69')]||[{'message':_0x357427[_0x1be0bc('0x174f')](),'type':_0x1be0bc('0x671')}];for(var _0x1a2ac9=0x0;_0x1a2ac9<_0x357427[_0x1be0bc('0x11c2')][_0x1be0bc('0x1a69')][_0x1be0bc('0x577')];_0x1a2ac9++){_0x2caaa1[_0x1be0bc('0x2092')]({'title':_0x357427[_0x1be0bc('0x11c2')][_0x1be0bc('0x1a69')][_0x1a2ac9][_0x1be0bc('0x7fa')],'msg':_0x357427[_0x1be0bc('0x11c2')][_0x1be0bc('0x1a69')][_0x1a2ac9][_0x1be0bc('0x1224')]});}}else _0x2caaa1[_0x1be0bc('0x2092')]({'title':_0x357427[_0x1be0bc('0x209')]?_0x1be0bc('0x22d')+_0x357427[_0x1be0bc('0x209')]+_0x1be0bc('0xa99')+_0x357427[_0x1be0bc('0x1808')]:_0x1be0bc('0x671'),'msg':_0x357427[_0x1be0bc('0x11c2')]?JSON[_0x1be0bc('0x25e')](_0x357427[_0x1be0bc('0x11c2')][_0x1be0bc('0x1224')]):_0x357427[_0x1be0bc('0x1224')]||_0x357427[_0x1be0bc('0x174f')]()});});},function(){});}function _0x533e60(_0x242856){return _0x242856===null?undefined:new Date(_0x242856);}function _0x381c53(_0x38ed15){var _0x3162ce=_0x396225;_0x43cc81[_0x3162ce('0x1c24')](_0x38ed15);}}const _0x549980=_0x47535b,_0x190228=_0x398308['p']+_0x3877e3('0xf2a');_0x60748[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x13c1'),_0x3877e3('0x231d'),_0x3877e3('0x758'),_0x3877e3('0xab4'),'api',_0x3877e3('0x12d9'),'toasty','Auth',_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x60748(_0xfc87e3,_0x501a47,_0x59afb6,_0xce88b7,_0x436f3d,_0x4d11b0,_0x9da2e8,_0x2cca4b,_0x5dd440,_0xde1653,_0xd1280c,_0x730524,_0x4bd7b9,_0x4be82b,_0x3d9351,_0x276b47,_0x2c396e){var _0x456b18=_0x3877e3,_0x4d8a07=this;_0x4d8a07[_0x456b18('0x2ff')]=_0x276b47,_0x4d8a07['setting']=_0x2c396e,_0x4d8a07['currentUser']=_0x3d9351['getCurrentUser'](),_0x4d8a07[_0x456b18('0x231d')]=_0x5dd440||{'count':0x0,'rows':[]},_0x4d8a07[_0x456b18('0x758')]=_0xde1653,_0x4d8a07[_0x456b18('0xab4')]=_0xd1280c&&_0xd1280c[_0x456b18('0x205f')]==0x1?_0xd1280c[_0x456b18('0x1b33')][0x0]:null,_0x4d8a07[_0x456b18('0x5ed')]=_0x3d9351[_0x456b18('0x1778')](_0x4d8a07[_0x456b18('0xab4')]?_0x4d8a07['userProfileSection'][_0x456b18('0x5ed')]:null),_0x4d8a07[_0x456b18('0x1897')]='deskAccounts',_0x4d8a07[_0x456b18('0x11dc')]='',_0x4d8a07[_0x456b18('0x18cf')]=null,_0x4d8a07[_0x456b18('0x1945')]=[],_0x4d8a07['query']={'fields':_0x456b18('0x401'),'limit':0xa,'page':0x1},_0x4d8a07[_0x456b18('0x179c')]=_0x86640f()[_0x456b18('0xcde')]([{'option':'Integration_Tab','value':_0x456b18('0x1c92')},{'option':_0x456b18('0x19c6'),'value':_0x456b18('0x13bd')}],function(_0x568e80){var _0x3a58f6=_0x456b18;return _0x86640f()[_0x3a58f6('0x16e4')](_0x568e80[_0x3a58f6('0x2228')],new RegExp('\x27','g'),'');}),_0x4d8a07[_0x456b18('0x253c')]=_0x86640f()[_0x456b18('0xcde')]([{'option':_0x456b18('0x262f'),'value':'\x27basic\x27'}],function(_0x4d6f67){var _0x3e337a=_0x456b18;return _0x86640f()[_0x3e337a('0x16e4')](_0x4d6f67[_0x3e337a('0x2228')],new RegExp('\x27','g'),'');}),_0x4d8a07[_0x456b18('0x1c88')]=_0x2e9eb7,_0x4d8a07[_0x456b18('0x155c')]=_0x4170c8,_0x4d8a07[_0x456b18('0x2593')]=_0x3ae1ef,_0x4d8a07[_0x456b18('0xdb1')]=_0x3deb52,_0x4d8a07[_0x456b18('0x11a6')]=_0x3a44d4,_0x4d8a07[_0x456b18('0x2291')]=_0x2fb63a,_0x4d8a07[_0x456b18('0x1231')]=_0x4a944f,_0x4d8a07[_0x456b18('0x5ff')]=_0x2b3ea9,_0x4d8a07[_0x456b18('0x21b4')]=_0x30f840,_0x4d8a07[_0x456b18('0x84b')]=_0x58536f,_0x4d8a07[_0x456b18('0x12b')]=_0x5d2870;function _0x2e9eb7(_0x4f6dc4){var _0x5b8ba2=_0x456b18;_0x59afb6['go'](_0x5b8ba2('0x26a3'),{'id':_0x4f6dc4['id'],'deskAccount':_0x4f6dc4,'crudPermissions':_0x4d8a07['crudPermissions']});}function _0x4170c8(_0x3bdc3f){var _0x56d796=_0x456b18;return _0x730524[_0x56d796('0x2012')][_0x56d796('0x929')]({'id':_0x3bdc3f['id'],'test':!![]})['$promise'][_0x56d796('0x21ad')](function(){var _0x1214a6=_0x56d796;_0x4be82b[_0x1214a6('0xdb1')]({'title':_0x1214a6('0x12f7'),'msg':_0x1214a6('0x1c80')});})[_0x56d796('0x1c1d')](function(_0x2bc6d3){var _0x1aeaeb=_0x56d796;_0x4be82b[_0x1aeaeb('0x2092')]({'title':'DeskAccount\x20properly\x20tested','msg':_0x2bc6d3[_0x1aeaeb('0x11c2')]?_0x2bc6d3[_0x1aeaeb('0x11c2')][_0x1aeaeb('0x1224')]?_0x2bc6d3[_0x1aeaeb('0x11c2')][_0x1aeaeb('0x1224')]:JSON['stringify'](_0x2bc6d3['data']):_0x2bc6d3[_0x1aeaeb('0x174f')]()});});}function _0x3ae1ef(_0xfc5f96,_0x1a47b7){var _0x427872=_0x456b18,_0x4a1a0f=_0x436f3d[_0x427872('0xa33')]()[_0x427872('0x4b4')](_0x427872('0x25b6')+_0x86640f()[_0x427872('0x2159')]('deskAccount')+'?')['htmlContent'](_0x427872('0x622')+(_0xfc5f96[_0x427872('0x19fe')]||_0x427872('0x17c9'))+''+_0x427872('0x25e0'))['ariaLabel'](_0x427872('0xa71'))[_0x427872('0x1e6d')](_0x1a47b7)['ok']('OK')[_0x427872('0x3b5')](_0x427872('0x284b'));_0x436f3d['show'](_0x4a1a0f)[_0x427872('0x21ad')](function(){_0x4a944f(_0xfc5f96);},function(){var _0x342606=_0x427872;console[_0x342606('0x6fb')](_0x342606('0x284b'));});}var _0x392d0b=!![],_0x11f726=0x1;_0xfc87e3[_0x456b18('0x10e8')](_0x456b18('0x1948'),function(_0x489542,_0x22faad){var _0x382ff1=_0x456b18;_0x392d0b?_0x9da2e8(function(){_0x392d0b=![];}):(!_0x22faad&&(_0x11f726=_0x4d8a07[_0x382ff1('0x77')][_0x382ff1('0x2376')]),_0x489542!==_0x22faad&&(_0x4d8a07[_0x382ff1('0x77')][_0x382ff1('0x2376')]=0x1),!_0x489542&&(_0x4d8a07['query']['page']=_0x11f726),_0x4d8a07['getDeskAccounts']());});function _0x3deb52(_0x493bb8){var _0x19894f=_0x456b18;_0x4d8a07[_0x19894f('0x231d')]=_0x493bb8||{'count':0x0,'rows':[]};}function _0x3a44d4(){var _0x652e8c=_0x456b18;_0x4d8a07['query'][_0x652e8c('0x15a5')]=(_0x4d8a07[_0x652e8c('0x77')]['page']-0x1)*_0x4d8a07[_0x652e8c('0x77')]['limit'],_0x3d9351[_0x652e8c('0x21de')]('admin')?_0x4d8a07[_0x652e8c('0x71b')]=_0x730524['intDeskAccount'][_0x652e8c('0x595')](_0x4d8a07['query'],_0x3deb52)[_0x652e8c('0x1376')]:(_0x4d8a07[_0x652e8c('0x77')]['id']=_0x4d8a07[_0x652e8c('0x758')]['id'],_0x4d8a07[_0x652e8c('0x77')][_0x652e8c('0x26ad')]=_0x652e8c('0xf6'),_0x4d8a07[_0x652e8c('0x71b')]=_0x730524[_0x652e8c('0x758')]['getResources'](_0x4d8a07[_0x652e8c('0x77')],_0x3deb52)[_0x652e8c('0x1376')]);}function _0x2fb63a(_0x55470e,_0x1d3a5d){var _0x163122=_0x456b18;_0x436f3d[_0x163122('0x853')]({'controller':_0x163122('0x129'),'controllerAs':'vm','templateUrl':_0x190228,'parent':angular['element'](_0x4d11b0['body']),'targetEvent':_0x55470e,'clickOutsideToClose':!![],'locals':{'deskAccount':_0x1d3a5d,'deskAccounts':_0x4d8a07[_0x163122('0x231d')][_0x163122('0x1b33')],'license':_0x4d8a07['license'],'setting':_0x4d8a07[_0x163122('0x21e')],'crudPermissions':_0x4d8a07['crudPermissions']}});}function _0x4a944f(_0x53da1d){var _0x164e11=_0x456b18;_0x730524[_0x164e11('0x2012')]['delete']({'id':_0x53da1d['id']})[_0x164e11('0x1376')][_0x164e11('0x21ad')](function(){var _0x3f4194=_0x164e11;_0x86640f()[_0x3f4194('0x16a2')](_0x4d8a07[_0x3f4194('0x231d')][_0x3f4194('0x1b33')],{'id':_0x53da1d['id']}),_0x4d8a07[_0x3f4194('0x231d')][_0x3f4194('0x205f')]-=0x1,!_0x4d8a07[_0x3f4194('0x231d')][_0x3f4194('0x1b33')]['length']&&_0x4d8a07['getDeskAccounts'](),_0x4be82b[_0x3f4194('0xdb1')]({'title':_0x86640f()[_0x3f4194('0x2159')]('DeskAccount')+_0x3f4194('0xe64'),'msg':_0x53da1d[_0x3f4194('0x19fe')]?_0x53da1d[_0x3f4194('0x19fe')]+_0x3f4194('0xb4a'):''});})[_0x164e11('0x1c1d')](function(_0x5c8273){var _0x5aae02=_0x164e11;if(_0x5c8273[_0x5aae02('0x11c2')]&&_0x5c8273[_0x5aae02('0x11c2')][_0x5aae02('0x1a69')]&&_0x5c8273[_0x5aae02('0x11c2')]['errors'][_0x5aae02('0x577')]){_0x4d8a07['errors']=_0x5c8273['data'][_0x5aae02('0x1a69')]||[{'message':_0x5c8273[_0x5aae02('0x174f')](),'type':_0x5aae02('0x25f1')}];for(var _0x5e2da7=0x0;_0x5e2da7<_0x5c8273[_0x5aae02('0x11c2')][_0x5aae02('0x1a69')][_0x5aae02('0x577')];_0x5e2da7++){_0x4be82b['error']({'title':_0x5c8273[_0x5aae02('0x11c2')]['errors'][_0x5e2da7]['type'],'msg':_0x5c8273[_0x5aae02('0x11c2')]['errors'][_0x5e2da7][_0x5aae02('0x1224')]});}}else _0x4be82b[_0x5aae02('0x2092')]({'title':_0x5c8273[_0x5aae02('0x209')]?_0x5aae02('0x22d')+_0x5c8273['status']+_0x5aae02('0xa99')+_0x5c8273[_0x5aae02('0x1808')]:'SYSTEM:DELETEintDeskAccount','msg':_0x5c8273[_0x5aae02('0x11c2')]?JSON[_0x5aae02('0x25e')](_0x5c8273[_0x5aae02('0x11c2')][_0x5aae02('0x1224')]):_0x5c8273[_0x5aae02('0x1224')]||_0x5c8273[_0x5aae02('0x174f')]()});});}function _0x2b3ea9(){var _0x3de248=_0x456b18,_0xfc71e8=angular['copy'](_0x4d8a07['selectedDeskAccounts']);return _0x4d8a07[_0x3de248('0x1945')]=[],_0xfc71e8;}function _0x30f840(_0x2b7cd0){var _0x159a9a=_0x456b18,_0x17b66f=_0x436f3d[_0x159a9a('0xa33')]()[_0x159a9a('0x4b4')](_0x159a9a('0x2743'))['htmlContent'](_0x159a9a('0x622')+_0x4d8a07[_0x159a9a('0x1945')][_0x159a9a('0x577')]+_0x159a9a('0xd74')+_0x159a9a('0x25e0'))['ariaLabel'](_0x159a9a('0x1c02'))[_0x159a9a('0x1e6d')](_0x2b7cd0)['ok']('OK')[_0x159a9a('0x3b5')](_0x159a9a('0x284b'));_0x436f3d[_0x159a9a('0x853')](_0x17b66f)[_0x159a9a('0x21ad')](function(){var _0x5a2e05=_0x159a9a;_0x4d8a07[_0x5a2e05('0x1945')][_0x5a2e05('0x1a52')](function(_0x17147e){_0x4a944f(_0x17147e);}),_0x4d8a07[_0x5a2e05('0x1945')]=[];});}function _0x58536f(){_0x4d8a07['selectedDeskAccounts']=[];}function _0x5d2870(){var _0x36ef5a=_0x456b18;_0x4d8a07[_0x36ef5a('0x1945')]=_0x4d8a07['deskAccounts'][_0x36ef5a('0x1b33')];}}const _0x5397ff=_0x60748,_0x52acaf=_0x398308['p']+_0x3877e3('0x43b'),_0x3bf55f=_0x398308['p']+_0x3877e3('0xbf2');_0x1d05cd[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$document',_0x3877e3('0xccd'),_0x3877e3('0x1908'),'Auth'];function _0x1d05cd(_0x5e2318,_0x29d0c0,_0x119ea3,_0x2f8741,_0x5817fd){var _0xde2757=_0x3877e3,_0x109ba4=this;_0x109ba4[_0xde2757('0x123f')]=_0x5817fd[_0xde2757('0x15ed')](),_0x109ba4[_0xde2757('0x17c9')]={},_0x109ba4[_0xde2757('0xa0c')]={},_0x109ba4['configurations']=[],_0x109ba4['selectedDeskConfiguration']=-0x1,_0x109ba4[_0xde2757('0x5ed')],_0x109ba4[_0xde2757('0x1d75')]=_0x425731,_0x109ba4[_0xde2757('0x1bc4')]=_0x5c6afb,_0x109ba4[_0xde2757('0xd23')]=_0x28ad53,_0x109ba4[_0xde2757('0xe44')]=_0x39ca1b,_0x109ba4[_0xde2757('0xb86')]=[],_0x109ba4[_0xde2757('0xeab')]=_0x211def,_0x119ea3[_0xde2757('0x907')][_0xde2757('0x595')]({'nolimit':!![],'sort':_0xde2757('0x19fe')})[_0xde2757('0x1376')][_0xde2757('0x21ad')](function(_0x37d73b){_0x109ba4['tags']=_0x37d73b['rows']?_0x37d73b['rows']:[];})[_0xde2757('0x1c1d')](function(_0x383534){var _0x552312=_0xde2757;_0x2f8741[_0x552312('0x2092')]({'title':_0x383534[_0x552312('0x209')]?_0x552312('0x22d')+_0x383534[_0x552312('0x209')]+_0x552312('0xa99')+_0x383534[_0x552312('0x1808')]:_0x552312('0x25ce'),'msg':_0x383534[_0x552312('0x11c2')]?JSON[_0x552312('0x25e')](_0x383534[_0x552312('0x11c2')]):_0x383534[_0x552312('0x174f')]()});});function _0x211def(){var _0x43dd06=_0xde2757;_0x119ea3[_0x43dd06('0x8ff')][_0x43dd06('0x87a')]({'id':_0x109ba4[_0x43dd06('0xa0c')]['id'],'ids':_0x109ba4[_0x43dd06('0xb86')]})[_0x43dd06('0x1376')][_0x43dd06('0x21ad')](function(){var _0x30017c=_0x43dd06;_0x2f8741[_0x30017c('0xdb1')]({'title':_0x30017c('0x25d4'),'msg':_0x30017c('0x1528')});})[_0x43dd06('0x1c1d')](function(_0x4e1fe5){var _0x5714fd=_0x43dd06;_0x2f8741[_0x5714fd('0x2092')]({'title':_0x4e1fe5[_0x5714fd('0x209')]?_0x5714fd('0x22d')+_0x4e1fe5[_0x5714fd('0x209')]+_0x5714fd('0xa99')+_0x4e1fe5['statusText']:_0x5714fd('0x20c4'),'msg':_0x4e1fe5[_0x5714fd('0x11c2')]?JSON[_0x5714fd('0x25e')](_0x4e1fe5['data']):_0x4e1fe5['toString']()});});}function _0x425731(_0x374642,_0x5f39a4){var _0x16be19=_0xde2757;_0x109ba4[_0x16be19('0x17c9')]=_0x374642,_0x109ba4[_0x16be19('0x5ed')]=typeof _0x5f39a4!==_0x16be19('0xddc')?_0x5f39a4:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x119ea3[_0x16be19('0x2012')][_0x16be19('0xc44')]({'id':_0x109ba4['deskAccount']['id'],'sort':_0x16be19('0x33')})[_0x16be19('0x1376')][_0x16be19('0x21ad')](function(_0x7a32d7){var _0x98d309=_0x16be19;return _0x109ba4[_0x98d309('0x1ca3')]=_0x7a32d7[_0x98d309('0x1b33')]?_0x7a32d7['rows']:[],_0x109ba4[_0x98d309('0x1ca3')][_0x98d309('0x577')]&&_0x109ba4['getDeskConfiguration'](0x0),_0x119ea3[_0x98d309('0x25bb')]['get']({'nolimit':!![],'sort':_0x98d309('0x19fe')})[_0x98d309('0x1376')];})[_0x16be19('0x21ad')](function(_0x270811){var _0x390bba=_0x16be19;_0x109ba4[_0x390bba('0x142d')]=_0x270811[_0x390bba('0x1b33')]?_0x270811['rows']:[],_0x109ba4[_0x390bba('0x5f')]=_0x86640f()['keyBy'](_0x109ba4[_0x390bba('0x142d')],'id');})[_0x16be19('0x1c1d')](function(_0x498245){var _0x40700e=_0x16be19;_0x2f8741[_0x40700e('0x2092')]({'title':_0x498245[_0x40700e('0x209')]?'API:'+_0x498245[_0x40700e('0x209')]+_0x40700e('0xa99')+_0x498245[_0x40700e('0x1808')]:_0x40700e('0x1c4e'),'msg':_0x498245[_0x40700e('0x11c2')]?JSON['stringify'](_0x498245[_0x40700e('0x11c2')]):_0x498245[_0x40700e('0x174f')]()});});}function _0x5c6afb(_0x4f8874){var _0x2ef637=_0xde2757;_0x109ba4['deskConfiguration']=_0x109ba4[_0x2ef637('0x1ca3')][_0x4f8874],_0x109ba4[_0x2ef637('0x2491')]=_0x4f8874,_0x119ea3[_0x2ef637('0x8ff')]['getSubjects']({'id':_0x109ba4[_0x2ef637('0xa0c')]['id']})[_0x2ef637('0x1376')][_0x2ef637('0x21ad')](function(_0x56967b){var _0xeca91d=_0x2ef637;return _0x109ba4[_0xeca91d('0x1033')]=_0x56967b['rows']?_0x56967b[_0xeca91d('0x1b33')]:[],_0x119ea3['intDeskConfiguration']['getDescriptions']({'id':_0x109ba4[_0xeca91d('0xa0c')]['id']})[_0xeca91d('0x1376')];})[_0x2ef637('0x21ad')](function(_0x171344){var _0x485207=_0x2ef637;return _0x109ba4[_0x485207('0x2161')]=_0x171344['rows']?_0x171344[_0x485207('0x1b33')]:[],_0x119ea3[_0x485207('0x8ff')]['getFields']({'id':_0x109ba4[_0x485207('0xa0c')]['id']})[_0x485207('0x1376')];})[_0x2ef637('0x21ad')](function(_0x51284d){var _0x44d813=_0x2ef637;_0x109ba4[_0x44d813('0x181e')]=_0x51284d[_0x44d813('0x1b33')]?_0x51284d[_0x44d813('0x1b33')]:[];})[_0x2ef637('0x1c1d')](function(_0x527ab2){var _0x27f7c3=_0x2ef637;_0x2f8741[_0x27f7c3('0x2092')]({'title':_0x527ab2[_0x27f7c3('0x209')]?'API:'+_0x527ab2[_0x27f7c3('0x209')]+_0x27f7c3('0xa99')+_0x527ab2[_0x27f7c3('0x1808')]:_0x27f7c3('0x172f'),'msg':_0x527ab2[_0x27f7c3('0x11c2')]?JSON['stringify'](_0x527ab2['data']):_0x527ab2[_0x27f7c3('0x174f')]()});}),_0x119ea3[_0x2ef637('0x8ff')][_0x2ef637('0x2590')]({'id':_0x109ba4[_0x2ef637('0xa0c')]['id']})[_0x2ef637('0x1376')][_0x2ef637('0x21ad')](function(_0x197159){var _0x5862a8=_0x2ef637;_0x109ba4[_0x5862a8('0xb86')]=_0x197159[_0x5862a8('0x1b33')]?_0x86640f()[_0x5862a8('0x26c3')](_0x197159[_0x5862a8('0x1b33')],'id'):[];})['catch'](function(_0x231b79){var _0x425532=_0x2ef637;_0x2f8741[_0x425532('0x2092')]({'title':_0x231b79['status']?_0x425532('0x22d')+_0x231b79['status']+_0x425532('0xa99')+_0x231b79['statusText']:_0x425532('0x25ce'),'msg':_0x231b79['data']?JSON[_0x425532('0x25e')](_0x231b79[_0x425532('0x11c2')]):_0x231b79[_0x425532('0x174f')]()});});}function _0x28ad53(_0x584d41,_0x20b112){var _0x434181=_0xde2757;_0x5e2318[_0x434181('0x853')]({'controller':'CreateOrEditDeskConfigurationDialogController','controllerAs':'vm','templateUrl':_0x52acaf,'parent':angular['element'](_0x29d0c0[_0x434181('0x2452')]),'targetEvent':_0x584d41,'clickOutsideToClose':!![],'locals':{'deskConfiguration':_0x20b112,'configurations':_0x109ba4[_0x434181('0x1ca3')],'license':null,'setting':null,'crudPermissions':_0x109ba4['crudPermissions']}})[_0x434181('0x13e')](function(){var _0xdf472c=_0x434181;_0x109ba4[_0xdf472c('0x1bc4')](0x0);});}function _0x39ca1b(_0x231ea3,_0x2ed6ce){var _0x1db75b=_0xde2757,_0x3ec66a=_0x5e2318[_0x1db75b('0xa33')]()[_0x1db75b('0x4b4')](_0x1db75b('0x2301'))[_0x1db75b('0x276b')](''+(_0x2ed6ce['name']||_0x1db75b('0xa0c'))+_0x1db75b('0x2135')+_0x1db75b('0x25e0'))[_0x1db75b('0x7a7')](_0x1db75b('0x1b16'))[_0x1db75b('0x1e6d')](_0x231ea3)['ok']('OK')[_0x1db75b('0x3b5')]('CANCEL');_0x5e2318['show'](_0x3ec66a)[_0x1db75b('0x21ad')](function(){var _0x36a15e=_0x1db75b;_0x119ea3[_0x36a15e('0x8ff')][_0x36a15e('0x1164')]({'id':_0x2ed6ce['id']})[_0x36a15e('0x1376')][_0x36a15e('0x21ad')](function(){var _0x597c45=_0x36a15e;_0x86640f()[_0x597c45('0x16a2')](_0x109ba4[_0x597c45('0x1ca3')],{'id':_0x2ed6ce['id']}),_0x2f8741[_0x597c45('0xdb1')]({'title':_0x597c45('0x2374'),'msg':_0x2ed6ce[_0x597c45('0x19fe')]?_0x2ed6ce[_0x597c45('0x19fe')]+_0x597c45('0xb4a'):''});})['catch'](function(_0x48b97e){var _0x1b24b3=_0x36a15e;_0x2f8741[_0x1b24b3('0x2092')]({'title':_0x48b97e[_0x1b24b3('0x209')]?'API:'+_0x48b97e['status']+'\x20-\x20'+_0x48b97e['statusText']:_0x1b24b3('0x2336'),'msg':_0x48b97e['data']?JSON[_0x1b24b3('0x25e')](_0x48b97e[_0x1b24b3('0x11c2')]):_0x48b97e['toString']()});})[_0x36a15e('0x13e')](function(){_0x109ba4['getDeskConfiguration'](0x0);});},function(){var _0x2c4e06=_0x1db75b;console['log'](_0x2c4e06('0x284b'));});}_0x109ba4['selectedSubjects']=[],_0x109ba4[_0xde2757('0x11de')]=_0x2874c8,_0x109ba4[_0xde2757('0x2203')]=_0x14f48f,_0x109ba4[_0xde2757('0x858')]=_0x47d088;function _0x2874c8(_0x55e505,_0x3f19ee){var _0x5cc64c=_0xde2757;_0x5e2318['show']({'controller':_0x5cc64c('0x2626'),'controllerAs':'vm','templateUrl':_0x3bf55f,'parent':angular['element'](_0x29d0c0[_0x5cc64c('0x2452')]),'targetEvent':_0x55e505,'clickOutsideToClose':!![],'locals':{'type':_0x5cc64c('0x32a'),'item':_0x3f19ee,'items':_0x109ba4[_0x5cc64c('0x1033')],'configuration':_0x109ba4[_0x5cc64c('0xa0c')],'account':_0x109ba4[_0x5cc64c('0x17c9')],'license':null,'setting':null,'crudPermissions':_0x109ba4[_0x5cc64c('0x5ed')]}});}function _0x10e225(_0x433246){var _0x2c240b=_0xde2757;_0x119ea3[_0x2c240b('0x23bf')]['delete']({'id':_0x433246['id']})[_0x2c240b('0x1376')][_0x2c240b('0x21ad')](function(){var _0xbb9600=_0x2c240b;_0x86640f()[_0xbb9600('0x16a2')](_0x109ba4[_0xbb9600('0x1033')],{'id':_0x433246['id']}),_0x2f8741[_0xbb9600('0xdb1')]({'title':_0xbb9600('0x17b8'),'msg':'Subject\x20has\x20been\x20deleted!'});})[_0x2c240b('0x1c1d')](function(_0x2a9992){var _0x12b071=_0x2c240b;_0x2f8741[_0x12b071('0x2092')]({'title':_0x2a9992[_0x12b071('0x209')]?_0x12b071('0x22d')+_0x2a9992['status']+'\x20-\x20'+_0x2a9992['statusText']:_0x12b071('0xede'),'msg':_0x2a9992[_0x12b071('0x11c2')]?JSON[_0x12b071('0x25e')](_0x2a9992[_0x12b071('0x11c2')]):_0x2a9992[_0x12b071('0x174f')]()});});}function _0x14f48f(_0x5084fa,_0x5c5fbf){var _0x35b8d0=_0xde2757,_0x37003e=_0x5e2318['confirm']()[_0x35b8d0('0x4b4')](_0x35b8d0('0xe3a'))[_0x35b8d0('0x276b')](_0x35b8d0('0x2031')+_0x35b8d0('0x25e0'))['ariaLabel'](_0x35b8d0('0x566'))[_0x35b8d0('0x1e6d')](_0x5084fa)['ok']('OK')['cancel'](_0x35b8d0('0x284b'));_0x5e2318[_0x35b8d0('0x853')](_0x37003e)['then'](function(){_0x10e225(_0x5c5fbf);},function(){var _0x1f912c=_0x35b8d0;console[_0x1f912c('0x6fb')](_0x1f912c('0x284b'));});}function _0x47d088(_0x247437){var _0x448a08=_0xde2757,_0x268621=_0x5e2318[_0x448a08('0xa33')]()[_0x448a08('0x4b4')](_0x448a08('0x6e8'))[_0x448a08('0x276b')](_0x448a08('0x622')+_0x109ba4[_0x448a08('0x19ba')][_0x448a08('0x577')]+_0x448a08('0xd74')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x448a08('0x1828'))[_0x448a08('0x1e6d')](_0x247437)['ok']('OK')[_0x448a08('0x3b5')]('CANCEL');_0x5e2318[_0x448a08('0x853')](_0x268621)[_0x448a08('0x21ad')](function(){var _0x63d222=_0x448a08;_0x109ba4[_0x63d222('0x19ba')]['forEach'](function(_0x34c0a1){_0x10e225(_0x34c0a1);}),_0x109ba4['selectedSubjects']=[];});}_0x109ba4['selectedDescriptions']=[],_0x109ba4[_0xde2757('0x1139')]=_0x21b063,_0x109ba4[_0xde2757('0x2378')]=_0x5038d7,_0x109ba4[_0xde2757('0x1f80')]=_0x430a9c;function _0x21b063(_0x2365a7,_0x55def5){var _0x4774bc=_0xde2757;_0x5e2318[_0x4774bc('0x853')]({'controller':'CreateOrEditDeskAccountItemDialogController','controllerAs':'vm','templateUrl':_0x3bf55f,'parent':angular[_0x4774bc('0x1676')](_0x29d0c0[_0x4774bc('0x2452')]),'targetEvent':_0x2365a7,'clickOutsideToClose':!![],'locals':{'type':'description','item':_0x55def5,'items':_0x109ba4['descriptions'],'configuration':_0x109ba4['deskConfiguration'],'account':_0x109ba4[_0x4774bc('0x17c9')],'license':null,'setting':null,'crudPermissions':_0x109ba4[_0x4774bc('0x5ed')]}});}function _0x218ec0(_0x1a43ad){var _0x20a713=_0xde2757;_0x119ea3[_0x20a713('0x23bf')][_0x20a713('0x1164')]({'id':_0x1a43ad['id']})[_0x20a713('0x1376')][_0x20a713('0x21ad')](function(){var _0x35b550=_0x20a713;_0x86640f()[_0x35b550('0x16a2')](_0x109ba4[_0x35b550('0x2161')],{'id':_0x1a43ad['id']}),_0x2f8741[_0x35b550('0xdb1')]({'title':'Description\x20deleted!','msg':'Description\x20has\x20been\x20deleted!'});})['catch'](function(_0x56b7b0){var _0x2f3b0f=_0x20a713;_0x2f8741[_0x2f3b0f('0x2092')]({'title':_0x56b7b0[_0x2f3b0f('0x209')]?_0x2f3b0f('0x22d')+_0x56b7b0[_0x2f3b0f('0x209')]+_0x2f3b0f('0xa99')+_0x56b7b0[_0x2f3b0f('0x1808')]:_0x2f3b0f('0xede'),'msg':_0x56b7b0[_0x2f3b0f('0x11c2')]?JSON[_0x2f3b0f('0x25e')](_0x56b7b0['data']):_0x56b7b0[_0x2f3b0f('0x174f')]()});});}function _0x5038d7(_0x470353,_0x2b4425){var _0x499b1b=_0xde2757,_0x332725=_0x5e2318[_0x499b1b('0xa33')]()[_0x499b1b('0x4b4')](_0x499b1b('0x1d59'))[_0x499b1b('0x276b')](_0x499b1b('0x4e6')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x499b1b('0xe67'))['targetEvent'](_0x470353)['ok']('OK')[_0x499b1b('0x3b5')](_0x499b1b('0x284b'));_0x5e2318[_0x499b1b('0x853')](_0x332725)[_0x499b1b('0x21ad')](function(){_0x218ec0(_0x2b4425);},function(){var _0x23565d=_0x499b1b;console[_0x23565d('0x6fb')](_0x23565d('0x284b'));});}function _0x430a9c(_0x296437){var _0x3d34c6=_0xde2757,_0x3e856f=_0x5e2318[_0x3d34c6('0xa33')]()[_0x3d34c6('0x4b4')](_0x3d34c6('0x6e'))['htmlContent'](_0x3d34c6('0x622')+_0x109ba4[_0x3d34c6('0xbdf')][_0x3d34c6('0x577')]+'\x20selected'+_0x3d34c6('0x25e0'))[_0x3d34c6('0x7a7')](_0x3d34c6('0x211d'))[_0x3d34c6('0x1e6d')](_0x296437)['ok']('OK')[_0x3d34c6('0x3b5')](_0x3d34c6('0x284b'));_0x5e2318[_0x3d34c6('0x853')](_0x3e856f)[_0x3d34c6('0x21ad')](function(){var _0x3ea1cb=_0x3d34c6;_0x109ba4['selectedDescriptions']['forEach'](function(_0x11ca28){_0x218ec0(_0x11ca28);}),_0x109ba4[_0x3ea1cb('0xbdf')]=[];});}_0x109ba4[_0xde2757('0x21b0')]=[],_0x109ba4[_0xde2757('0x97')]=_0x3d0940,_0x109ba4[_0xde2757('0x222e')]=_0x4941db,_0x109ba4[_0xde2757('0xe52')]=_0x6e5478;function _0x3d0940(_0x2cbc08,_0x1da185){var _0x1e6814=_0xde2757;_0x5e2318[_0x1e6814('0x853')]({'controller':_0x1e6814('0x2626'),'controllerAs':'vm','templateUrl':_0x3bf55f,'parent':angular['element'](_0x29d0c0['body']),'targetEvent':_0x2cbc08,'clickOutsideToClose':!![],'locals':{'type':_0x1e6814('0xff8'),'item':_0x1da185,'items':_0x109ba4[_0x1e6814('0x181e')],'configuration':_0x109ba4[_0x1e6814('0xa0c')],'account':_0x109ba4[_0x1e6814('0x17c9')],'license':null,'setting':null,'crudPermissions':_0x109ba4[_0x1e6814('0x5ed')]}});}function _0x36ca1b(_0x24bcc5){var _0x3e89b0=_0xde2757;_0x119ea3['intDeskField'][_0x3e89b0('0x1164')]({'id':_0x24bcc5['id']})['$promise'][_0x3e89b0('0x21ad')](function(){var _0x4c2341=_0x3e89b0;_0x86640f()['remove'](_0x109ba4[_0x4c2341('0x181e')],{'id':_0x24bcc5['id']}),_0x2f8741[_0x4c2341('0xdb1')]({'title':'Field\x20deleted!','msg':_0x4c2341('0x2263')});})[_0x3e89b0('0x1c1d')](function(_0x279425){var _0x5c1753=_0x3e89b0;_0x2f8741[_0x5c1753('0x2092')]({'title':_0x279425[_0x5c1753('0x209')]?_0x5c1753('0x22d')+_0x279425['status']+_0x5c1753('0xa99')+_0x279425['statusText']:_0x5c1753('0xede'),'msg':_0x279425[_0x5c1753('0x11c2')]?JSON[_0x5c1753('0x25e')](_0x279425[_0x5c1753('0x11c2')]):_0x279425['toString']()});});}function _0x4941db(_0x5901c6,_0x2f1052){var _0x174fd1=_0xde2757,_0x4dd458=_0x5e2318[_0x174fd1('0xa33')]()[_0x174fd1('0x4b4')](_0x174fd1('0x2207'))[_0x174fd1('0x276b')](_0x174fd1('0x171')+_0x174fd1('0x25e0'))[_0x174fd1('0x7a7')](_0x174fd1('0x238b'))[_0x174fd1('0x1e6d')](_0x5901c6)['ok']('OK')[_0x174fd1('0x3b5')](_0x174fd1('0x284b'));_0x5e2318[_0x174fd1('0x853')](_0x4dd458)[_0x174fd1('0x21ad')](function(){_0x36ca1b(_0x2f1052);},function(){var _0x89af38=_0x174fd1;console[_0x89af38('0x6fb')]('CANCEL');});}function _0x6e5478(_0x58e3a3){var _0x17ddf8=_0xde2757,_0x40a850=_0x5e2318[_0x17ddf8('0xa33')]()[_0x17ddf8('0x4b4')](_0x17ddf8('0x655'))[_0x17ddf8('0x276b')](''+_0x109ba4[_0x17ddf8('0x21b0')]['length']+'\x20selected'+_0x17ddf8('0x25e0'))[_0x17ddf8('0x7a7')](_0x17ddf8('0x85f'))[_0x17ddf8('0x1e6d')](_0x58e3a3)['ok']('OK')[_0x17ddf8('0x3b5')](_0x17ddf8('0x284b'));_0x5e2318['show'](_0x40a850)[_0x17ddf8('0x21ad')](function(){var _0x47f906=_0x17ddf8;_0x109ba4[_0x47f906('0x21b0')][_0x47f906('0x1a52')](function(_0xf4b18){_0x36ca1b(_0xf4b18);}),_0x109ba4[_0x47f906('0x21b0')]=[];});}}const _0x272741=_0x1d05cd;_0x5e0459[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),'$mdDialog','$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x1ca3'),'deskConfiguration',_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting',_0x3877e3('0x5ed')];function _0x5e0459(_0x153014,_0x3c3dd6,_0x18db26,_0x4f84a1,_0x53a186,_0x374e3c,_0x277657,_0x5712fe,_0x35e27f,_0x469675,_0x1e609e,_0x49f86b,_0x48d2b1,_0x481c7b){var _0x3f389c=_0x3877e3,_0x54b973=this;_0x54b973[_0x3f389c('0x123f')]=_0x1e609e[_0x3f389c('0x15ed')](),_0x54b973['errors']=[],_0x54b973[_0x3f389c('0x21e')]=_0x48d2b1,_0x54b973['license']=_0x49f86b,_0x54b973[_0x3f389c('0x5ed')]=_0x481c7b,_0x54b973[_0x3f389c('0x126a')]={},_0x54b973[_0x3f389c('0x1432')]=_0x54b973[_0x3f389c('0x21e')]&&_0x54b973[_0x3f389c('0x21e')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x54b973[_0x3f389c('0x4b4')]='INTEGRATIONS.EDIT_DESKCONFIGURATION',_0x54b973['deskConfiguration']=angular['copy'](_0x35e27f),_0x54b973[_0x3f389c('0x1ca3')]=_0x5712fe,_0x54b973[_0x3f389c('0xbe9')]=![];!_0x54b973['deskConfiguration']&&(_0x54b973['deskConfiguration']={'channel':_0x3f389c('0x8ed'),'type':_0x3f389c('0x923')},_0x54b973[_0x3f389c('0x4b4')]='INTEGRATIONS.NEW_DESKCONFIGURATION',_0x54b973[_0x3f389c('0xbe9')]=!![]);_0x54b973['addNewDeskConfiguration']=_0x5f0bf4,_0x54b973[_0x3f389c('0x2aa')]=_0x30fb88,_0x54b973['deleteDeskConfiguration']=_0x19120e,_0x54b973[_0x3f389c('0x279')]=_0x37b4a4,_0x54b973['closeDialog']=_0x3b3e5d;function _0x5f0bf4(){var _0x2a81a6=_0x3f389c;_0x54b973['errors']=[],_0x469675[_0x2a81a6('0x2012')][_0x2a81a6('0x1388')]({'id':_0x3c3dd6[_0x2a81a6('0x171b')]['id']},_0x54b973['deskConfiguration'])[_0x2a81a6('0x1376')][_0x2a81a6('0x21ad')](function(_0x1262d4){var _0x2a0a7a=_0x2a81a6;_0x54b973[_0x2a0a7a('0x1ca3')][_0x2a0a7a('0xd0c')](_0x1262d4[_0x2a0a7a('0x3bc')]()),_0x277657[_0x2a0a7a('0xdb1')]({'title':_0x2a0a7a('0x850'),'msg':_0x54b973[_0x2a0a7a('0xa0c')]['name']?_0x54b973[_0x2a0a7a('0xa0c')][_0x2a0a7a('0x19fe')]+_0x2a0a7a('0x1694'):''}),_0x3b3e5d(_0x1262d4);})[_0x2a81a6('0x1c1d')](function(_0x2c10f1){var _0x38bf3f=_0x2a81a6;if(_0x2c10f1[_0x38bf3f('0x11c2')]&&_0x2c10f1['data'][_0x38bf3f('0x1a69')]&&_0x2c10f1['data']['errors'][_0x38bf3f('0x577')]){_0x54b973[_0x38bf3f('0x1a69')]=_0x2c10f1[_0x38bf3f('0x11c2')][_0x38bf3f('0x1a69')]||[{'message':_0x2c10f1[_0x38bf3f('0x174f')](),'type':_0x38bf3f('0xe18')}];for(var _0x39ca3a=0x0;_0x39ca3a<_0x2c10f1[_0x38bf3f('0x11c2')][_0x38bf3f('0x1a69')]['length'];_0x39ca3a+=0x1){_0x277657[_0x38bf3f('0x2092')]({'title':_0x2c10f1[_0x38bf3f('0x11c2')][_0x38bf3f('0x1a69')][_0x39ca3a][_0x38bf3f('0x7fa')],'msg':_0x2c10f1[_0x38bf3f('0x11c2')][_0x38bf3f('0x1a69')][_0x39ca3a][_0x38bf3f('0x1224')]});}}else _0x277657['error']({'title':_0x2c10f1[_0x38bf3f('0x209')]?'API:'+_0x2c10f1[_0x38bf3f('0x209')]+'\x20-\x20'+_0x2c10f1['statusText']:_0x38bf3f('0xe18'),'msg':_0x2c10f1[_0x38bf3f('0x11c2')]?JSON[_0x38bf3f('0x25e')](_0x2c10f1[_0x38bf3f('0x11c2')]['message']):_0x2c10f1[_0x38bf3f('0x174f')]()});});}function _0x30fb88(){var _0x16f569=_0x3f389c;_0x54b973['errors']=[],_0x469675[_0x16f569('0x8ff')][_0x16f569('0x5ef')]({'id':_0x54b973['deskConfiguration']['id']},_0x54b973['deskConfiguration'])['$promise'][_0x16f569('0x21ad')](function(_0xe92d92){var _0xe8c7ac=_0x16f569,_0x401ec1=_0x86640f()[_0xe8c7ac('0x1d2e')](_0x54b973[_0xe8c7ac('0x1ca3')],{'id':_0xe92d92['id']});_0x401ec1&&_0x86640f()[_0xe8c7ac('0xd0e')](_0x401ec1,_0x86640f()[_0xe8c7ac('0xc50')](_0xe92d92[_0xe8c7ac('0x3bc')](),_0x86640f()[_0xe8c7ac('0x223b')](_0x401ec1))),_0x277657[_0xe8c7ac('0xdb1')]({'title':_0xe8c7ac('0x145d'),'msg':_0x54b973[_0xe8c7ac('0xa0c')][_0xe8c7ac('0x19fe')]?_0x54b973['deskConfiguration']['name']+_0xe8c7ac('0x2249'):''}),_0x3b3e5d(_0xe92d92);})[_0x16f569('0x1c1d')](function(_0xc2b6f3){var _0x3a4428=_0x16f569;if(_0xc2b6f3[_0x3a4428('0x11c2')]&&_0xc2b6f3[_0x3a4428('0x11c2')][_0x3a4428('0x1a69')]&&_0xc2b6f3['data'][_0x3a4428('0x1a69')][_0x3a4428('0x577')]){_0x54b973[_0x3a4428('0x1a69')]=_0xc2b6f3['data'][_0x3a4428('0x1a69')]||[{'message':_0xc2b6f3[_0x3a4428('0x174f')](),'type':_0x3a4428('0x8e0')}];for(var _0x9fae60=0x0;_0x9fae60<_0xc2b6f3[_0x3a4428('0x11c2')][_0x3a4428('0x1a69')][_0x3a4428('0x577')];_0x9fae60++){_0x277657[_0x3a4428('0x2092')]({'title':_0xc2b6f3['data'][_0x3a4428('0x1a69')][_0x9fae60][_0x3a4428('0x7fa')],'msg':_0xc2b6f3[_0x3a4428('0x11c2')][_0x3a4428('0x1a69')][_0x9fae60]['message']});}}else _0x277657[_0x3a4428('0x2092')]({'title':_0xc2b6f3['status']?'API:'+_0xc2b6f3[_0x3a4428('0x209')]+'\x20-\x20'+_0xc2b6f3[_0x3a4428('0x1808')]:'api.intDeskConfiguration.update','msg':_0xc2b6f3[_0x3a4428('0x11c2')]?JSON[_0x3a4428('0x25e')](_0xc2b6f3[_0x3a4428('0x11c2')][_0x3a4428('0x1224')]):_0xc2b6f3[_0x3a4428('0x174f')]()});});}function _0x19120e(_0x2e4901){var _0x31c24e=_0x3f389c;_0x54b973[_0x31c24e('0x1a69')]=[];var _0x35eab7=_0x4f84a1[_0x31c24e('0xa33')]()[_0x31c24e('0x4b4')](_0x31c24e('0x196b'))[_0x31c24e('0x13fb')](_0x31c24e('0x1c29'))[_0x31c24e('0x7a7')](_0x31c24e('0x1917'))['ok'](_0x31c24e('0xbfd'))[_0x31c24e('0x3b5')]('Cancel')['targetEvent'](_0x2e4901);_0x4f84a1[_0x31c24e('0x853')](_0x35eab7)[_0x31c24e('0x21ad')](function(){var _0x519521=_0x31c24e;_0x469675[_0x519521('0x8ff')][_0x519521('0x1164')]({'id':_0x54b973[_0x519521('0xa0c')]['id']})[_0x519521('0x1376')]['then'](function(){var _0x1ad2db=_0x519521;_0x86640f()[_0x1ad2db('0x16a2')](_0x54b973[_0x1ad2db('0x1ca3')],{'id':_0x54b973[_0x1ad2db('0xa0c')]['id']}),_0x277657[_0x1ad2db('0xdb1')]({'title':'DeskConfiguration\x20properly\x20deleted!','msg':(_0x54b973[_0x1ad2db('0xa0c')]['name']||_0x1ad2db('0xa0c'))+_0x1ad2db('0xb4a')}),_0x3b3e5d(_0x54b973[_0x1ad2db('0xa0c')]);})[_0x519521('0x1c1d')](function(_0x15d3d8){var _0x1780a0=_0x519521;if(_0x15d3d8['data']&&_0x15d3d8['data'][_0x1780a0('0x1a69')]&&_0x15d3d8[_0x1780a0('0x11c2')][_0x1780a0('0x1a69')][_0x1780a0('0x577')]){_0x54b973[_0x1780a0('0x1a69')]=_0x15d3d8['data'][_0x1780a0('0x1a69')]||[{'message':_0x15d3d8['toString'](),'type':'api.intDeskConfiguration.delete'}];for(var _0x206794=0x0;_0x206794<_0x15d3d8[_0x1780a0('0x11c2')][_0x1780a0('0x1a69')][_0x1780a0('0x577')];_0x206794++){_0x277657[_0x1780a0('0x2092')]({'title':_0x15d3d8['data'][_0x1780a0('0x1a69')][_0x206794][_0x1780a0('0x7fa')],'msg':_0x15d3d8[_0x1780a0('0x11c2')]['errors'][_0x206794][_0x1780a0('0x1224')]});}}else _0x277657['error']({'title':_0x15d3d8['status']?_0x1780a0('0x22d')+_0x15d3d8[_0x1780a0('0x209')]+'\x20-\x20'+_0x15d3d8['statusText']:_0x1780a0('0x183f'),'msg':_0x15d3d8[_0x1780a0('0x11c2')]?JSON[_0x1780a0('0x25e')](_0x15d3d8[_0x1780a0('0x11c2')][_0x1780a0('0x1224')]):_0x15d3d8['message']||_0x15d3d8[_0x1780a0('0x174f')]()});});},function(){});}function _0x37b4a4(_0x57e70d){return _0x57e70d===null?undefined:new Date(_0x57e70d);}function _0x3b3e5d(_0x3b3e1d){_0x4f84a1['hide'](_0x3b3e1d);}}const _0x27a61a=_0x5e0459;_0x253c2d['$inject']=['$scope',_0x3877e3('0xa9f'),'$location',_0x3877e3('0x1850'),_0x3877e3('0x1908'),'configuration','items','item',_0x3877e3('0x1fd3'),'type','api','Auth','crudPermissions'];function _0x253c2d(_0x58891b,_0x33c0ab,_0x53f91a,_0x25dc76,_0x259b5b,_0x1b2af1,_0x6f7f8b,_0x1a5d48,_0x1862df,_0xeed1d0,_0x154aa5,_0x3a2df4,_0x451841){var _0x452614=_0x3877e3,_0x57bc4c=this;_0x57bc4c[_0x452614('0x123f')]=_0x3a2df4[_0x452614('0x15ed')](),_0x57bc4c['errors']=[],_0x57bc4c[_0x452614('0x4b4')]=_0x452614('0x177a')+_0x86640f()[_0x452614('0x7c1')](_0xeed1d0),_0x57bc4c['item']=angular[_0x452614('0xd75')](_0x1a5d48),_0x57bc4c['items']=_0x6f7f8b,_0x57bc4c['type']=_0xeed1d0,_0x57bc4c['crudPermissions']=_0x451841,_0x57bc4c[_0x452614('0xf8')]=![];!_0x57bc4c[_0x452614('0x19ca')]&&(_0x57bc4c['item']={'type':_0x452614('0x2638')},_0x57bc4c[_0x452614('0x19ca')][_0x86640f()[_0x452614('0x1b7e')](_0xeed1d0)+'Id']=_0x1b2af1['id'],_0x57bc4c['title']=_0x452614('0x1d99')+_0x86640f()[_0x452614('0x7c1')](_0xeed1d0),_0x57bc4c['newItem']=!![]);_0x57bc4c[_0x452614('0x1e89')]=_0x508494,_0x57bc4c['saveItem']=_0x40ecca,_0x57bc4c[_0x452614('0x1c8')]=_0x7f8bea,_0x57bc4c[_0x452614('0x23fe')]=_0x1b0ac1,_0x57bc4c['closeDialog']=_0x459b1a,_0x154aa5['variable'][_0x452614('0x595')]({'nolimit':!![]})['$promise']['then'](function(_0xddeae){var _0x4d2bce=_0x452614;return _0x57bc4c[_0x4d2bce('0x142d')]=_0xddeae[_0x4d2bce('0x1b33')]?_0xddeae[_0x4d2bce('0x1b33')]:[],_0x154aa5[_0x4d2bce('0x9b6')][_0x4d2bce('0x1219')]()[_0x4d2bce('0x1376')];})['then'](function(_0x236985){var _0x19148f=_0x452614;return _0x57bc4c[_0x19148f('0x22eb')]=_0x86640f()[_0x19148f('0x5a8')](_0x86640f()[_0x19148f('0x223b')](_0x236985),['$promise',_0x19148f('0x9f8'),_0x19148f('0x23ae'),'updatedAt',_0x19148f('0x1bdd')]),_0x57bc4c[_0x19148f('0x22eb')]['push'](_0x19148f('0x250a')),_0x154aa5['voiceDialReport']['describe']()[_0x19148f('0x1376')];})['then'](function(_0x4e77cc){var _0xf42308=_0x452614;_0x57bc4c[_0xf42308('0x1491')]=_0x86640f()[_0xf42308('0x5a8')](_0x86640f()[_0xf42308('0x223b')](_0x4e77cc),[_0xf42308('0x1376'),_0xf42308('0x9f8'),'createdAt',_0xf42308('0x15af'),'sourceid']),_0x57bc4c[_0xf42308('0x1491')][_0xf42308('0x206c')]('recordingURL');})['catch'](function(_0x3c2612){var _0x3cafc0=_0x452614;_0x259b5b[_0x3cafc0('0x2092')]({'title':_0x3c2612[_0x3cafc0('0x209')]?'API:'+_0x3c2612['status']+_0x3cafc0('0xa99')+_0x3c2612['statusText']:_0x3cafc0('0x8f3'),'msg':_0x3c2612[_0x3cafc0('0x11c2')]?JSON[_0x3cafc0('0x25e')](_0x3c2612['data']):_0x3c2612[_0x3cafc0('0x174f')]()});}),_0x154aa5[_0x452614('0x2012')][_0x452614('0x929')]({'id':_0x1862df['id'],'ticketType':_0x1b2af1['ticketType']?_0x1b2af1[_0x452614('0x257e')]:undefined})['$promise'][_0x452614('0x21ad')](function(_0x96144d){var _0x225924=_0x452614;_0x57bc4c[_0x225924('0x2097')]=!![],_0x57bc4c[_0x225924('0x181e')]=_0x96144d[_0x225924('0x1b33')]?_0x96144d['rows']:[],_0x57bc4c['item'][_0x225924('0x1830')]&&(_0x57bc4c[_0x225924('0x1fa7')]=_0x86640f()[_0x225924('0x1d2e')](_0x57bc4c[_0x225924('0x181e')],{'id':_0x57bc4c[_0x225924('0x19ca')][_0x225924('0x1830')]}));})[_0x452614('0x1c1d')](function(_0x20ab07){var _0x33cc3f=_0x452614;_0x57bc4c[_0x33cc3f('0x2097')]=![],console[_0x33cc3f('0x2092')](_0x20ab07);});function _0x508494(){var _0x185991=_0x452614;_0x57bc4c[_0x185991('0x1a69')]=[],_0x57bc4c[_0x185991('0x1fa7')]&&(_0x57bc4c[_0x185991('0x19ca')][_0x185991('0x1830')]=_0x57bc4c[_0x185991('0x1fa7')]['id'],_0x57bc4c[_0x185991('0x19ca')][_0x185991('0xb45')]=_0x57bc4c[_0x185991('0x1fa7')][_0x185991('0x19fe')],_0x57bc4c[_0x185991('0x19ca')][_0x185991('0x1fa7')]=_0x57bc4c[_0x185991('0x1fa7')][_0x185991('0xf50')]),_0x154aa5[_0x185991('0x23bf')][_0x185991('0x186f')](_0x57bc4c[_0x185991('0x19ca')])[_0x185991('0x1376')]['then'](function(_0x41dcb3){var _0x51092f=_0x185991;_0x57bc4c[_0x51092f('0x1b9a')]['unshift'](_0x41dcb3),_0x259b5b[_0x51092f('0xdb1')]({'title':_0x86640f()[_0x51092f('0x1b7e')](_0xeed1d0)+_0x51092f('0x1de2'),'msg':_0x86640f()[_0x51092f('0x1b7e')](_0xeed1d0)+'\x20has\x20been\x20created!'}),_0x459b1a();})[_0x185991('0x1c1d')](function(_0x9a5cfb){var _0x478208=_0x185991;console['error'](_0x9a5cfb),_0x57bc4c[_0x478208('0x1a69')]=_0x9a5cfb[_0x478208('0x11c2')][_0x478208('0x1a69')]||[{'message':_0x9a5cfb[_0x478208('0x174f')](),'type':_0x478208('0x1a23')}];});}function _0x40ecca(){var _0x2e0f25=_0x452614;_0x57bc4c[_0x2e0f25('0x1a69')]=[],_0x57bc4c[_0x2e0f25('0x1fa7')]&&(_0x57bc4c[_0x2e0f25('0x19ca')]['idField']=_0x57bc4c[_0x2e0f25('0x1fa7')]['id'],_0x57bc4c['item'][_0x2e0f25('0xb45')]=_0x57bc4c[_0x2e0f25('0x1fa7')]['name'],_0x57bc4c[_0x2e0f25('0x19ca')][_0x2e0f25('0x1fa7')]=_0x57bc4c['customField'][_0x2e0f25('0xf50')]),_0x154aa5[_0x2e0f25('0x23bf')][_0x2e0f25('0x5ef')]({'id':_0x57bc4c[_0x2e0f25('0x19ca')]['id']},_0x57bc4c[_0x2e0f25('0x19ca')])[_0x2e0f25('0x1376')]['then'](function(_0x24acf4){var _0x41e17c=_0x2e0f25,_0xa50515=_0x86640f()[_0x41e17c('0x1d2e')](_0x57bc4c[_0x41e17c('0x1b9a')],{'id':_0x24acf4['id']});_0xa50515&&_0x86640f()[_0x41e17c('0xd0e')](_0xa50515,_0x24acf4),_0x259b5b[_0x41e17c('0xdb1')]({'title':_0x86640f()[_0x41e17c('0x1b7e')](_0xeed1d0)+_0x41e17c('0x2a3'),'msg':_0x86640f()[_0x41e17c('0x1b7e')](_0xeed1d0)+'\x20has\x20been\x20saved!'}),_0x459b1a();})[_0x2e0f25('0x1c1d')](function(_0x2549b9){var _0x2a8c51=_0x2e0f25;console[_0x2a8c51('0x2092')](_0x2549b9),_0x57bc4c[_0x2a8c51('0x1a69')]=_0x2549b9['data'][_0x2a8c51('0x1a69')]||[{'message':_0x2549b9[_0x2a8c51('0x174f')](),'type':'api.intItem.update'}];});}function _0x7f8bea(_0x4df5b6){var _0x2899ab=_0x452614;_0x57bc4c[_0x2899ab('0x1a69')]=[];var _0x3cc36d=_0x25dc76[_0x2899ab('0xa33')]()[_0x2899ab('0x4b4')](_0x2899ab('0x196b'))['content'](_0x2899ab('0x15f2')+_0xeed1d0+_0x2899ab('0x25e0'))['ariaLabel']('Delete\x20'+_0x86640f()['capitalize'](_0xeed1d0))['ok'](_0x2899ab('0xbfd'))['cancel'](_0x2899ab('0x1f40'))[_0x2899ab('0x1e6d')](_0x4df5b6);_0x25dc76[_0x2899ab('0x853')](_0x3cc36d)[_0x2899ab('0x21ad')](function(){var _0x5ac34d=_0x2899ab;_0x154aa5[_0x5ac34d('0x23bf')][_0x5ac34d('0x1164')]({'id':_0x57bc4c['item']['id']})[_0x5ac34d('0x1376')][_0x5ac34d('0x21ad')](function(){var _0x188192=_0x5ac34d;_0x86640f()['remove'](_0x57bc4c['items'],{'id':_0x57bc4c[_0x188192('0x19ca')]['id']}),_0x259b5b[_0x188192('0xdb1')]({'title':_0x86640f()['capitalize'](_0xeed1d0)+_0x188192('0x11b6'),'msg':_0x86640f()['capitalize'](_0xeed1d0)+_0x188192('0xb4a')}),_0x459b1a();})['catch'](function(_0x5a5c3f){var _0x5f1be9=_0x5ac34d;console[_0x5f1be9('0x2092')](_0x5a5c3f),_0x57bc4c['errors']=_0x5a5c3f[_0x5f1be9('0x11c2')][_0x5f1be9('0x1a69')]||[{'message':_0x5a5c3f[_0x5f1be9('0x174f')](),'type':_0x5f1be9('0x2175')}];});},function(){});}function _0x1b0ac1(){var _0x8b6d37=_0x452614;return _0x57bc4c['item'][_0x8b6d37('0x1651')]!==undefined?_0x57bc4c[_0x8b6d37('0x19ca')][_0x8b6d37('0x1651')]:_0x8b6d37('0x17f7');}function _0x459b1a(){var _0x298536=_0x452614;_0x25dc76[_0x298536('0x1c24')]();}}const _0x35d836=_0x253c2d;_0xbbe05a[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x13c1'),'license',_0x3877e3('0x21e'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),'Auth',_0x3877e3('0x17c9'),'userProfileSection'];function _0xbbe05a(_0xa91351,_0x52c9b2,_0x119741,_0x2fbbbe,_0x510786,_0x58f838,_0x127de5,_0x481c71,_0x270f5f,_0x85e11d,_0x51544b,_0x10e06f){var _0x576476=_0x3877e3,_0x4d43db=this;_0x4d43db['currentUser']=_0x85e11d[_0x576476('0x15ed')](),_0x4d43db[_0x576476('0x2ff')]=_0x58f838,_0x4d43db[_0x576476('0x21e')]=_0x127de5,_0x4d43db[_0x576476('0x1432')]=_0x4d43db[_0x576476('0x21e')][_0x576476('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4d43db['location']=_0x52c9b2[_0x576476('0x1162')]()+_0x576476('0x22a9')+_0x52c9b2[_0x576476('0x1c01')](),_0x4d43db[_0x576476('0x17c9')]=_0x51544b||_0xa91351['params']['deskAccount']||{},_0x4d43db[_0x576476('0xab4')]=_0x10e06f&&_0x10e06f['count']==0x1?_0x10e06f[_0x576476('0x1b33')][0x0]:null,_0x4d43db['crudPermissions']=_0x85e11d['parseCrudPermissions'](_0x4d43db['userProfileSection']?_0x4d43db[_0x576476('0xab4')][_0x576476('0x5ed')]:null),_0x4d43db[_0x576476('0x126a')]={},_0x4d43db['selectedTab']=_0xa91351['params'][_0x576476('0x12e1')]||0x0,_0x4d43db[_0x576476('0x95b')]=_0x270f5f[_0x576476('0x231c')],_0x4d43db[_0x576476('0x6c0')]=_0x5afd3b,_0x4d43db[_0x576476('0xf1f')]=_0x1213bb;function _0x5afd3b(){_0xa91351['go']('app.integrations.deskAccounts',{},{'reload':'app.integrations.deskAccounts'});}function _0x1213bb(){var _0x4eba85=_0x576476;_0x481c71['intDeskAccount'][_0x4eba85('0x5ef')]({'id':_0x4d43db[_0x4eba85('0x17c9')]['id']},_0x4d43db[_0x4eba85('0x17c9')])[_0x4eba85('0x1376')][_0x4eba85('0x21ad')](function(){var _0x15ca17=_0x4eba85;_0x270f5f[_0x15ca17('0xdb1')]({'title':_0x15ca17('0x1992'),'msg':_0x4d43db['deskAccount']['name']?_0x4d43db[_0x15ca17('0x17c9')][_0x15ca17('0x19fe')]+_0x15ca17('0xa8d'):''});})[_0x4eba85('0x1c1d')](function(_0x3c9766){var _0x53aac4=_0x4eba85;_0x270f5f['error']({'title':_0x3c9766[_0x53aac4('0x209')]?_0x53aac4('0x22d')+_0x3c9766[_0x53aac4('0x209')]+'\x20-\x20'+_0x3c9766[_0x53aac4('0x1808')]:'SYSTEM:GETintDeskAccount','msg':_0x3c9766['data']?JSON[_0x53aac4('0x25e')](_0x3c9766[_0x53aac4('0x11c2')]):_0x3c9766[_0x53aac4('0x174f')]()});});}}const _0x5d7586=_0xbbe05a;_0xb55a7d[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x196f'),'dynamics365Account','api',_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),'crudPermissions'];function _0xb55a7d(_0x29a629,_0x48e4b6,_0x49b7a5,_0x4f5480,_0x2adcdc,_0x488e39,_0x53410d,_0x2e8076,_0xbaf0ea,_0xde1306,_0x624257,_0x508b81,_0x14905f,_0x1d0ff2){var _0x4e7b83=_0x3877e3,_0x3d568e=this;_0x3d568e[_0x4e7b83('0x123f')]=_0x624257[_0x4e7b83('0x15ed')](),_0x3d568e[_0x4e7b83('0x1a69')]=[],_0x3d568e[_0x4e7b83('0x21e')]=_0x14905f,_0x3d568e[_0x4e7b83('0x2ff')]=_0x508b81,_0x3d568e[_0x4e7b83('0x5ed')]=_0x1d0ff2,_0x3d568e['hasModulePermissions']={},_0x3d568e['passwordPattern']=_0x3d568e[_0x4e7b83('0x21e')]&&_0x3d568e[_0x4e7b83('0x21e')][_0x4e7b83('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3d568e[_0x4e7b83('0x4b4')]=_0x4e7b83('0x24b5'),_0x3d568e[_0x4e7b83('0x1864')]=angular[_0x4e7b83('0xd75')](_0xbaf0ea),_0x3d568e[_0x4e7b83('0x196f')]=_0x2e8076,_0x3d568e[_0x4e7b83('0x2096')]=![];!_0x3d568e[_0x4e7b83('0x1864')]&&(_0x3d568e['dynamics365Account']={'serverUrl':_0x49b7a5['protocol']()+'://'+_0x49b7a5[_0x4e7b83('0x1c01')]()+(_0x49b7a5['port']()?':'+_0x49b7a5[_0x4e7b83('0x24fe')]():'')},_0x3d568e[_0x4e7b83('0x4b4')]=_0x4e7b83('0x60f'),_0x3d568e[_0x4e7b83('0x2096')]=!![]);_0x3d568e[_0x4e7b83('0x1c26')]=_0x1aeb4f,_0x3d568e[_0x4e7b83('0x2225')]=_0xe00ac,_0x3d568e[_0x4e7b83('0x175a')]=_0x284119,_0x3d568e[_0x4e7b83('0x279')]=_0x5c2f01,_0x3d568e[_0x4e7b83('0x167')]=_0x58cc78;function _0x1aeb4f(){var _0x23b4eb=_0x4e7b83;_0x3d568e[_0x23b4eb('0x1a69')]=[],_0xde1306['intDynamics365Account'][_0x23b4eb('0x186f')](_0x3d568e[_0x23b4eb('0x1864')])[_0x23b4eb('0x1376')][_0x23b4eb('0x21ad')](function(_0x4535a4){var _0x590b13=_0x23b4eb;_0x3d568e[_0x590b13('0x196f')][_0x590b13('0xd0c')](_0x4535a4[_0x590b13('0x3bc')]()),_0x53410d[_0x590b13('0xdb1')]({'title':'Dynamics365Account\x20properly\x20created','msg':_0x3d568e[_0x590b13('0x1864')][_0x590b13('0x19fe')]?_0x3d568e[_0x590b13('0x1864')]['name']+_0x590b13('0x1694'):''}),_0x58cc78(_0x4535a4);})[_0x23b4eb('0x1c1d')](function(_0x480bff){var _0x390a07=_0x23b4eb;if(_0x480bff[_0x390a07('0x11c2')]&&_0x480bff['data'][_0x390a07('0x1a69')]&&_0x480bff[_0x390a07('0x11c2')][_0x390a07('0x1a69')]['length']){_0x3d568e[_0x390a07('0x1a69')]=_0x480bff[_0x390a07('0x11c2')]['errors']||[{'message':_0x480bff['toString'](),'type':'api.intDynamics365Account.save'}];for(var _0x15d9f0=0x0;_0x15d9f0<_0x480bff[_0x390a07('0x11c2')][_0x390a07('0x1a69')][_0x390a07('0x577')];_0x15d9f0+=0x1){_0x53410d[_0x390a07('0x2092')]({'title':_0x480bff[_0x390a07('0x11c2')]['errors'][_0x15d9f0][_0x390a07('0x7fa')],'msg':_0x480bff['data'][_0x390a07('0x1a69')][_0x15d9f0][_0x390a07('0x1224')]});}}else _0x53410d[_0x390a07('0x2092')]({'title':_0x480bff[_0x390a07('0x209')]?_0x390a07('0x22d')+_0x480bff['status']+'\x20-\x20'+_0x480bff[_0x390a07('0x1808')]:_0x390a07('0x112d'),'msg':_0x480bff['data']?JSON[_0x390a07('0x25e')](_0x480bff[_0x390a07('0x11c2')][_0x390a07('0x1224')]):_0x480bff[_0x390a07('0x174f')]()});});}function _0xe00ac(){var _0x28dbe7=_0x4e7b83;_0x3d568e[_0x28dbe7('0x1a69')]=[],_0xde1306['intDynamics365Account']['update']({'id':_0x3d568e[_0x28dbe7('0x1864')]['id']},_0x3d568e[_0x28dbe7('0x1864')])[_0x28dbe7('0x1376')][_0x28dbe7('0x21ad')](function(_0x3c0968){var _0x52a225=_0x28dbe7,_0x4645d5=_0x86640f()['find'](_0x3d568e[_0x52a225('0x196f')],{'id':_0x3c0968['id']});_0x4645d5&&_0x86640f()[_0x52a225('0xd0e')](_0x4645d5,_0x86640f()[_0x52a225('0xc50')](_0x3c0968[_0x52a225('0x3bc')](),_0x86640f()[_0x52a225('0x223b')](_0x4645d5))),_0x53410d[_0x52a225('0xdb1')]({'title':_0x52a225('0xcdb'),'msg':_0x3d568e[_0x52a225('0x1864')][_0x52a225('0x19fe')]?_0x3d568e[_0x52a225('0x1864')]['name']+_0x52a225('0x2249'):''}),_0x58cc78(_0x3c0968);})['catch'](function(_0x48bbb6){var _0x33b378=_0x28dbe7;if(_0x48bbb6[_0x33b378('0x11c2')]&&_0x48bbb6[_0x33b378('0x11c2')][_0x33b378('0x1a69')]&&_0x48bbb6[_0x33b378('0x11c2')][_0x33b378('0x1a69')][_0x33b378('0x577')]){_0x3d568e[_0x33b378('0x1a69')]=_0x48bbb6['data'][_0x33b378('0x1a69')]||[{'message':_0x48bbb6['toString'](),'type':_0x33b378('0x14a3')}];for(var _0xa58e6b=0x0;_0xa58e6b<_0x48bbb6[_0x33b378('0x11c2')]['errors'][_0x33b378('0x577')];_0xa58e6b++){_0x53410d['error']({'title':_0x48bbb6[_0x33b378('0x11c2')][_0x33b378('0x1a69')][_0xa58e6b][_0x33b378('0x7fa')],'msg':_0x48bbb6[_0x33b378('0x11c2')][_0x33b378('0x1a69')][_0xa58e6b][_0x33b378('0x1224')]});}}else _0x53410d['error']({'title':_0x48bbb6[_0x33b378('0x209')]?_0x33b378('0x22d')+_0x48bbb6[_0x33b378('0x209')]+_0x33b378('0xa99')+_0x48bbb6[_0x33b378('0x1808')]:_0x33b378('0x14a3'),'msg':_0x48bbb6[_0x33b378('0x11c2')]?JSON['stringify'](_0x48bbb6['data'][_0x33b378('0x1224')]):_0x48bbb6[_0x33b378('0x174f')]()});});}function _0x284119(_0x502f0d){var _0x54cefc=_0x4e7b83;_0x3d568e['errors']=[];var _0xea3d95=_0x4f5480[_0x54cefc('0xa33')]()[_0x54cefc('0x4b4')](_0x54cefc('0x196b'))['content'](_0x54cefc('0x67f'))[_0x54cefc('0x7a7')]('Delete\x20Dynamics365Account')['ok']('Delete')['cancel'](_0x54cefc('0x1f40'))['targetEvent'](_0x502f0d);_0x4f5480[_0x54cefc('0x853')](_0xea3d95)[_0x54cefc('0x21ad')](function(){var _0x4d71dc=_0x54cefc;_0xde1306[_0x4d71dc('0x824')]['delete']({'id':_0x3d568e[_0x4d71dc('0x1864')]['id']})[_0x4d71dc('0x1376')][_0x4d71dc('0x21ad')](function(){var _0x2899a1=_0x4d71dc;_0x86640f()[_0x2899a1('0x16a2')](_0x3d568e[_0x2899a1('0x196f')],{'id':_0x3d568e[_0x2899a1('0x1864')]['id']}),_0x53410d[_0x2899a1('0xdb1')]({'title':_0x2899a1('0x1970'),'msg':(_0x3d568e['dynamics365Account']['name']||_0x2899a1('0x1864'))+_0x2899a1('0xb4a')}),_0x58cc78(_0x3d568e[_0x2899a1('0x1864')]);})['catch'](function(_0x375baa){var _0x1a7db9=_0x4d71dc;if(_0x375baa[_0x1a7db9('0x11c2')]&&_0x375baa[_0x1a7db9('0x11c2')][_0x1a7db9('0x1a69')]&&_0x375baa[_0x1a7db9('0x11c2')][_0x1a7db9('0x1a69')][_0x1a7db9('0x577')]){_0x3d568e['errors']=_0x375baa['data'][_0x1a7db9('0x1a69')]||[{'message':_0x375baa[_0x1a7db9('0x174f')](),'type':_0x1a7db9('0x1d7e')}];for(var _0x34d651=0x0;_0x34d651<_0x375baa[_0x1a7db9('0x11c2')][_0x1a7db9('0x1a69')][_0x1a7db9('0x577')];_0x34d651++){_0x53410d[_0x1a7db9('0x2092')]({'title':_0x375baa[_0x1a7db9('0x11c2')][_0x1a7db9('0x1a69')][_0x34d651][_0x1a7db9('0x7fa')],'msg':_0x375baa[_0x1a7db9('0x11c2')][_0x1a7db9('0x1a69')][_0x34d651][_0x1a7db9('0x1224')]});}}else _0x53410d[_0x1a7db9('0x2092')]({'title':_0x375baa[_0x1a7db9('0x209')]?_0x1a7db9('0x22d')+_0x375baa[_0x1a7db9('0x209')]+_0x1a7db9('0xa99')+_0x375baa[_0x1a7db9('0x1808')]:_0x1a7db9('0x1d7e'),'msg':_0x375baa[_0x1a7db9('0x11c2')]?JSON['stringify'](_0x375baa['data']['message']):_0x375baa['message']||_0x375baa['toString']()});});},function(){});}function _0x5c2f01(_0x108495){return _0x108495===null?undefined:new Date(_0x108495);}function _0x58cc78(_0x480b27){_0x4f5480['hide'](_0x480b27);}}const _0x5749f7=_0xb55a7d,_0x4511a5=_0x398308['p']+'src/js/modules/main/apps/integrations/views/dynamics365Accounts/create/dialog.html/dialog-[chunkhash].html';_0x1697fb[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),'$mdDialog',_0x3877e3('0x243f'),'$timeout',_0x3877e3('0x13c1'),_0x3877e3('0x196f'),_0x3877e3('0x758'),_0x3877e3('0xab4'),'api','msUtils',_0x3877e3('0x1908'),'Auth',_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x1697fb(_0x179975,_0x40bff1,_0x225565,_0x369549,_0x478aea,_0x591be1,_0x52c668,_0x5835af,_0x5e7845,_0x5c5cae,_0x52fe65,_0x203ff0,_0x18dbee,_0x52199d,_0x3ea1c9,_0x15ce0b,_0x37aa52){var _0x18707e=_0x3877e3,_0x130f0c=this;_0x130f0c[_0x18707e('0x2ff')]=_0x15ce0b,_0x130f0c['setting']=_0x37aa52,_0x130f0c['currentUser']=_0x3ea1c9[_0x18707e('0x15ed')](),_0x130f0c[_0x18707e('0x196f')]=_0x5e7845||{'count':0x0,'rows':[]},_0x130f0c[_0x18707e('0x758')]=_0x5c5cae,_0x130f0c[_0x18707e('0xab4')]=_0x52fe65&&_0x52fe65[_0x18707e('0x205f')]==0x1?_0x52fe65[_0x18707e('0x1b33')][0x0]:null,_0x130f0c[_0x18707e('0x5ed')]=_0x3ea1c9[_0x18707e('0x1778')](_0x130f0c[_0x18707e('0xab4')]?_0x130f0c[_0x18707e('0xab4')][_0x18707e('0x5ed')]:null),_0x130f0c[_0x18707e('0x1897')]='dynamics365Accounts',_0x130f0c['listOrder']='',_0x130f0c[_0x18707e('0x18cf')]=null,_0x130f0c[_0x18707e('0x1643')]=[],_0x130f0c[_0x18707e('0x77')]={'fields':'createdAt,updatedAt,id,name,username,password,remoteUri,tenantId,clientId,clientSecret,serverUrl,description','limit':0xa,'page':0x1},_0x130f0c[_0x18707e('0x1c88')]=_0xf6a955,_0x130f0c['testtestintegrationaccount']=_0x1126a0,_0x130f0c['deleteconfirm']=_0x53237d,_0x130f0c[_0x18707e('0xdb1')]=_0x5d7bf6,_0x130f0c[_0x18707e('0x24e8')]=_0x14a510,_0x130f0c['createOrEditDynamics365Account']=_0xd909c6,_0x130f0c[_0x18707e('0x175a')]=_0x1ea0b5,_0x130f0c['exportSelectedDynamics365Accounts']=_0x26261d,_0x130f0c[_0x18707e('0x2516')]=_0x55296c,_0x130f0c[_0x18707e('0x1a8b')]=_0x53f396,_0x130f0c[_0x18707e('0x1479')]=_0x5dec94;function _0xf6a955(_0x3d1878){var _0x40c238=_0x18707e;_0x225565['go'](_0x40c238('0x21ee'),{'id':_0x3d1878['id'],'dynamics365Account':_0x3d1878,'crudPermissions':_0x130f0c[_0x40c238('0x5ed')]});}function _0x1126a0(_0x27ada5){var _0xa298aa=_0x18707e;return _0x203ff0[_0xa298aa('0x824')]['getFields']({'id':_0x27ada5['id'],'test':!![]})[_0xa298aa('0x1376')][_0xa298aa('0x21ad')](function(){var _0x3ab61=_0xa298aa;_0x52199d[_0x3ab61('0xdb1')]({'title':_0x3ab61('0x364'),'msg':'Connection\x20succeded!'});})[_0xa298aa('0x1c1d')](function(_0x2c33f3){var _0x30fc93=_0xa298aa;_0x52199d['error']({'title':_0x30fc93('0x364'),'msg':_0x2c33f3[_0x30fc93('0x11c2')]?_0x2c33f3[_0x30fc93('0x11c2')][_0x30fc93('0x1224')]?_0x2c33f3[_0x30fc93('0x11c2')][_0x30fc93('0x1224')]:JSON[_0x30fc93('0x25e')](_0x2c33f3['data']):_0x2c33f3[_0x30fc93('0x174f')]()});});}function _0x53237d(_0x2b6cc9,_0x22a674){var _0x365723=_0x18707e,_0x594f40=_0x478aea[_0x365723('0xa33')]()[_0x365723('0x4b4')](_0x365723('0x25b6')+_0x86640f()[_0x365723('0x2159')](_0x365723('0x1864'))+'?')[_0x365723('0x276b')](''+(_0x2b6cc9[_0x365723('0x19fe')]||_0x365723('0x1864'))+''+_0x365723('0x25e0'))[_0x365723('0x7a7')](_0x365723('0x1ab6'))[_0x365723('0x1e6d')](_0x22a674)['ok']('OK')[_0x365723('0x3b5')](_0x365723('0x284b'));_0x478aea[_0x365723('0x853')](_0x594f40)[_0x365723('0x21ad')](function(){_0x1ea0b5(_0x2b6cc9);},function(){var _0xbad212=_0x365723;console[_0xbad212('0x6fb')](_0xbad212('0x284b'));});}var _0x15d894=!![],_0x562d9b=0x1;_0x179975['$watch'](_0x18707e('0x1948'),function(_0x65eedd,_0x5dd61f){var _0x193132=_0x18707e;_0x15d894?_0x52c668(function(){_0x15d894=![];}):(!_0x5dd61f&&(_0x562d9b=_0x130f0c[_0x193132('0x77')][_0x193132('0x2376')]),_0x65eedd!==_0x5dd61f&&(_0x130f0c['query']['page']=0x1),!_0x65eedd&&(_0x130f0c['query'][_0x193132('0x2376')]=_0x562d9b),_0x130f0c[_0x193132('0x24e8')]());});function _0x5d7bf6(_0x30d07c){var _0x4bdd41=_0x18707e;_0x130f0c[_0x4bdd41('0x196f')]=_0x30d07c||{'count':0x0,'rows':[]};}function _0x14a510(){var _0xb92cf1=_0x18707e;_0x130f0c[_0xb92cf1('0x77')][_0xb92cf1('0x15a5')]=(_0x130f0c[_0xb92cf1('0x77')][_0xb92cf1('0x2376')]-0x1)*_0x130f0c[_0xb92cf1('0x77')][_0xb92cf1('0x1f4a')],_0x3ea1c9['hasRole'](_0xb92cf1('0x1bd8'))?_0x130f0c[_0xb92cf1('0x71b')]=_0x203ff0['intDynamics365Account'][_0xb92cf1('0x595')](_0x130f0c['query'],_0x5d7bf6)[_0xb92cf1('0x1376')]:(_0x130f0c[_0xb92cf1('0x77')]['id']=_0x130f0c[_0xb92cf1('0x758')]['id'],_0x130f0c[_0xb92cf1('0x77')]['section']='Dynamics365Accounts',_0x130f0c[_0xb92cf1('0x71b')]=_0x203ff0[_0xb92cf1('0x758')][_0xb92cf1('0x321')](_0x130f0c[_0xb92cf1('0x77')],_0x5d7bf6)[_0xb92cf1('0x1376')]);}function _0xd909c6(_0x28e357,_0x1b5bbd){var _0x3ff4fd=_0x18707e;_0x478aea[_0x3ff4fd('0x853')]({'controller':_0x3ff4fd('0x12f6'),'controllerAs':'vm','templateUrl':_0x4511a5,'parent':angular[_0x3ff4fd('0x1676')](_0x591be1['body']),'targetEvent':_0x28e357,'clickOutsideToClose':!![],'locals':{'dynamics365Account':_0x1b5bbd,'dynamics365Accounts':_0x130f0c[_0x3ff4fd('0x196f')][_0x3ff4fd('0x1b33')],'license':_0x130f0c[_0x3ff4fd('0x2ff')],'setting':_0x130f0c[_0x3ff4fd('0x21e')],'crudPermissions':_0x130f0c[_0x3ff4fd('0x5ed')]}});}function _0x1ea0b5(_0x573a7d){var _0x166228=_0x18707e;_0x203ff0['intDynamics365Account'][_0x166228('0x1164')]({'id':_0x573a7d['id']})['$promise'][_0x166228('0x21ad')](function(){var _0x420b7f=_0x166228;_0x86640f()['remove'](_0x130f0c[_0x420b7f('0x196f')]['rows'],{'id':_0x573a7d['id']}),_0x130f0c[_0x420b7f('0x196f')][_0x420b7f('0x205f')]-=0x1,!_0x130f0c[_0x420b7f('0x196f')][_0x420b7f('0x1b33')][_0x420b7f('0x577')]&&_0x130f0c[_0x420b7f('0x24e8')](),_0x52199d[_0x420b7f('0xdb1')]({'title':_0x86640f()[_0x420b7f('0x2159')](_0x420b7f('0xd29'))+'\x20deleted!','msg':_0x573a7d['name']?_0x573a7d[_0x420b7f('0x19fe')]+_0x420b7f('0xb4a'):''});})[_0x166228('0x1c1d')](function(_0x4b2fc6){var _0x74740d=_0x166228;if(_0x4b2fc6['data']&&_0x4b2fc6[_0x74740d('0x11c2')][_0x74740d('0x1a69')]&&_0x4b2fc6[_0x74740d('0x11c2')][_0x74740d('0x1a69')][_0x74740d('0x577')]){_0x130f0c['errors']=_0x4b2fc6['data'][_0x74740d('0x1a69')]||[{'message':_0x4b2fc6[_0x74740d('0x174f')](),'type':_0x74740d('0x737')}];for(var _0x352827=0x0;_0x352827<_0x4b2fc6[_0x74740d('0x11c2')][_0x74740d('0x1a69')][_0x74740d('0x577')];_0x352827++){_0x52199d[_0x74740d('0x2092')]({'title':_0x4b2fc6[_0x74740d('0x11c2')][_0x74740d('0x1a69')][_0x352827][_0x74740d('0x7fa')],'msg':_0x4b2fc6[_0x74740d('0x11c2')]['errors'][_0x352827][_0x74740d('0x1224')]});}}else _0x52199d[_0x74740d('0x2092')]({'title':_0x4b2fc6[_0x74740d('0x209')]?_0x74740d('0x22d')+_0x4b2fc6[_0x74740d('0x209')]+_0x74740d('0xa99')+_0x4b2fc6['statusText']:_0x74740d('0x737'),'msg':_0x4b2fc6['data']?JSON['stringify'](_0x4b2fc6[_0x74740d('0x11c2')][_0x74740d('0x1224')]):_0x4b2fc6['message']||_0x4b2fc6[_0x74740d('0x174f')]()});});}function _0x26261d(){var _0x507f35=_0x18707e,_0x42d95c=angular[_0x507f35('0xd75')](_0x130f0c[_0x507f35('0x1643')]);return _0x130f0c[_0x507f35('0x1643')]=[],_0x42d95c;}function _0x55296c(_0x156d83){var _0x1d0546=_0x18707e,_0xd6d98d=_0x478aea[_0x1d0546('0xa33')]()['title'](_0x1d0546('0x920'))[_0x1d0546('0x276b')](_0x1d0546('0x622')+_0x130f0c[_0x1d0546('0x1643')][_0x1d0546('0x577')]+_0x1d0546('0xd74')+_0x1d0546('0x25e0'))['ariaLabel'](_0x1d0546('0x1985'))[_0x1d0546('0x1e6d')](_0x156d83)['ok']('OK')[_0x1d0546('0x3b5')](_0x1d0546('0x284b'));_0x478aea['show'](_0xd6d98d)[_0x1d0546('0x21ad')](function(){var _0xc6adc0=_0x1d0546;_0x130f0c[_0xc6adc0('0x1643')][_0xc6adc0('0x1a52')](function(_0x4d6cf2){_0x1ea0b5(_0x4d6cf2);}),_0x130f0c[_0xc6adc0('0x1643')]=[];});}function _0x53f396(){var _0x2bbd02=_0x18707e;_0x130f0c[_0x2bbd02('0x1643')]=[];}function _0x5dec94(){var _0x37ba88=_0x18707e;_0x130f0c[_0x37ba88('0x1643')]=_0x130f0c[_0x37ba88('0x196f')][_0x37ba88('0x1b33')];}}const _0x1986c0=_0x1697fb,_0x4a19e1=_0x398308['p']+_0x3877e3('0x19f2'),_0x234724=_0x398308['p']+_0x3877e3('0x2860');_0x10701b[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$document',_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x15bc')];function _0x10701b(_0x105d9d,_0x3a12ea,_0x228395,_0x407553,_0x4a2666){var _0x45f0f1=_0x3877e3,_0x5abb8c=this;_0x5abb8c[_0x45f0f1('0x123f')]=_0x4a2666['getCurrentUser'](),_0x5abb8c[_0x45f0f1('0x1864')]={},_0x5abb8c[_0x45f0f1('0x2201')]={},_0x5abb8c[_0x45f0f1('0x1ca3')]=[],_0x5abb8c[_0x45f0f1('0x26b7')]=-0x1,_0x5abb8c[_0x45f0f1('0x5ed')],_0x5abb8c[_0x45f0f1('0x1d75')]=_0x4eec4a,_0x5abb8c['getDynamics365Configuration']=_0x376f46,_0x5abb8c[_0x45f0f1('0x2745')]=_0x113162,_0x5abb8c[_0x45f0f1('0xbf7')]=_0x52aed4;function _0x4eec4a(_0x1e2bfc,_0x296bc7){var _0x3f0deb=_0x45f0f1;_0x5abb8c[_0x3f0deb('0x1864')]=_0x1e2bfc,_0x5abb8c['crudPermissions']=typeof _0x296bc7!=='undefined'?_0x296bc7:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x228395[_0x3f0deb('0x824')][_0x3f0deb('0xc44')]({'id':_0x5abb8c[_0x3f0deb('0x1864')]['id'],'sort':_0x3f0deb('0x33')})[_0x3f0deb('0x1376')][_0x3f0deb('0x21ad')](function(_0x5bcba7){var _0x48b440=_0x3f0deb;return _0x5abb8c[_0x48b440('0x1ca3')]=_0x5bcba7[_0x48b440('0x1b33')]?_0x5bcba7[_0x48b440('0x1b33')]:[],_0x5abb8c['configurations'][_0x48b440('0x577')]&&_0x5abb8c[_0x48b440('0x147')](0x0),_0x228395[_0x48b440('0x25bb')][_0x48b440('0x595')]({'nolimit':!![],'sort':_0x48b440('0x19fe')})[_0x48b440('0x1376')];})[_0x3f0deb('0x21ad')](function(_0x25490c){var _0x34a656=_0x3f0deb;_0x5abb8c[_0x34a656('0x142d')]=_0x25490c[_0x34a656('0x1b33')]?_0x25490c[_0x34a656('0x1b33')]:[],_0x5abb8c['variablesById']=_0x86640f()[_0x34a656('0xcde')](_0x5abb8c[_0x34a656('0x142d')],'id');})['catch'](function(_0x1dd0cc){var _0x560e88=_0x3f0deb;_0x407553[_0x560e88('0x2092')]({'title':_0x1dd0cc[_0x560e88('0x209')]?_0x560e88('0x22d')+_0x1dd0cc[_0x560e88('0x209')]+_0x560e88('0xa99')+_0x1dd0cc['statusText']:'SYSTEM:GETCONFIGURATION','msg':_0x1dd0cc[_0x560e88('0x11c2')]?JSON[_0x560e88('0x25e')](_0x1dd0cc[_0x560e88('0x11c2')]):_0x1dd0cc[_0x560e88('0x174f')]()});});}function _0x376f46(_0x1b12f1){var _0xa1c5fe=_0x45f0f1;_0x5abb8c[_0xa1c5fe('0x2201')]=_0x5abb8c[_0xa1c5fe('0x1ca3')][_0x1b12f1],_0x5abb8c[_0xa1c5fe('0x26b7')]=_0x1b12f1,_0x228395[_0xa1c5fe('0x2547')][_0xa1c5fe('0x12d7')]({'id':_0x5abb8c[_0xa1c5fe('0x2201')]['id']})['$promise'][_0xa1c5fe('0x21ad')](function(_0x2a77f4){var _0x45e943=_0xa1c5fe;return _0x5abb8c['subjects']=_0x2a77f4['rows']?_0x2a77f4[_0x45e943('0x1b33')]:[],_0x228395[_0x45e943('0x2547')]['getDescriptions']({'id':_0x5abb8c['dynamics365Configuration']['id']})['$promise'];})['then'](function(_0x53881b){var _0x232781=_0xa1c5fe;return _0x5abb8c['descriptions']=_0x53881b['rows']?_0x53881b[_0x232781('0x1b33')]:[],_0x228395['intDynamics365Configuration'][_0x232781('0x929')]({'id':_0x5abb8c[_0x232781('0x2201')]['id']})['$promise'];})['then'](function(_0x3d4faa){var _0x2a71cb=_0xa1c5fe;_0x5abb8c[_0x2a71cb('0x181e')]=_0x3d4faa[_0x2a71cb('0x1b33')]?_0x3d4faa[_0x2a71cb('0x1b33')]:[];})['catch'](function(_0x9f1530){var _0x322b83=_0xa1c5fe;_0x407553[_0x322b83('0x2092')]({'title':_0x9f1530[_0x322b83('0x209')]?'API:'+_0x9f1530['status']+_0x322b83('0xa99')+_0x9f1530[_0x322b83('0x1808')]:_0x322b83('0x172f'),'msg':_0x9f1530[_0x322b83('0x11c2')]?JSON[_0x322b83('0x25e')](_0x9f1530[_0x322b83('0x11c2')]):_0x9f1530[_0x322b83('0x174f')]()});});}function _0x113162(_0x43e8ab,_0x21a397){var _0x459f21=_0x45f0f1;_0x105d9d[_0x459f21('0x853')]({'controller':_0x459f21('0x3b1'),'controllerAs':'vm','templateUrl':_0x4a19e1,'parent':angular[_0x459f21('0x1676')](_0x3a12ea[_0x459f21('0x2452')]),'targetEvent':_0x43e8ab,'clickOutsideToClose':!![],'locals':{'dynamics365Configuration':_0x21a397,'configurations':_0x5abb8c[_0x459f21('0x1ca3')],'license':null,'setting':null,'crudPermissions':_0x5abb8c['crudPermissions']}})[_0x459f21('0x13e')](function(){var _0xc23a6c=_0x459f21;_0x5abb8c[_0xc23a6c('0x147')](0x0);});}function _0x52aed4(_0x4b9bde,_0x5e6e19){var _0x56d359=_0x45f0f1,_0x495564=_0x105d9d[_0x56d359('0xa33')]()[_0x56d359('0x4b4')](_0x56d359('0x254'))['htmlContent'](_0x56d359('0x622')+(_0x5e6e19['name']||_0x56d359('0x2201'))+_0x56d359('0x2135')+_0x56d359('0x25e0'))[_0x56d359('0x7a7')](_0x56d359('0x115a'))[_0x56d359('0x1e6d')](_0x4b9bde)['ok']('OK')[_0x56d359('0x3b5')]('CANCEL');_0x105d9d['show'](_0x495564)[_0x56d359('0x21ad')](function(){var _0x31f529=_0x56d359;_0x228395[_0x31f529('0x2547')][_0x31f529('0x1164')]({'id':_0x5e6e19['id']})[_0x31f529('0x1376')][_0x31f529('0x21ad')](function(){var _0x244da6=_0x31f529;_0x86640f()[_0x244da6('0x16a2')](_0x5abb8c[_0x244da6('0x1ca3')],{'id':_0x5e6e19['id']}),_0x407553[_0x244da6('0xdb1')]({'title':_0x244da6('0x2807'),'msg':_0x5e6e19['name']?_0x5e6e19['name']+_0x244da6('0xb4a'):''});})[_0x31f529('0x1c1d')](function(_0xf49fc5){var _0x5bd29c=_0x31f529;_0x407553[_0x5bd29c('0x2092')]({'title':_0xf49fc5['status']?_0x5bd29c('0x22d')+_0xf49fc5[_0x5bd29c('0x209')]+_0x5bd29c('0xa99')+_0xf49fc5[_0x5bd29c('0x1808')]:_0x5bd29c('0x2336'),'msg':_0xf49fc5[_0x5bd29c('0x11c2')]?JSON['stringify'](_0xf49fc5[_0x5bd29c('0x11c2')]):_0xf49fc5['toString']()});})['finally'](function(){var _0x394075=_0x31f529;_0x5abb8c[_0x394075('0x147')](0x0);});},function(){var _0x302cc4=_0x56d359;console[_0x302cc4('0x6fb')](_0x302cc4('0x284b'));});}_0x5abb8c[_0x45f0f1('0x19ba')]=[],_0x5abb8c[_0x45f0f1('0x11de')]=_0x6dd73d,_0x5abb8c[_0x45f0f1('0x2203')]=_0x35b470,_0x5abb8c[_0x45f0f1('0x858')]=_0x3add14;function _0x6dd73d(_0x5b90b2,_0x2371db){var _0x9ef08=_0x45f0f1;_0x105d9d[_0x9ef08('0x853')]({'controller':_0x9ef08('0xf1a'),'controllerAs':'vm','templateUrl':_0x234724,'parent':angular[_0x9ef08('0x1676')](_0x3a12ea[_0x9ef08('0x2452')]),'targetEvent':_0x5b90b2,'clickOutsideToClose':!![],'locals':{'type':_0x9ef08('0x32a'),'item':_0x2371db,'items':_0x5abb8c[_0x9ef08('0x1033')],'configuration':_0x5abb8c[_0x9ef08('0x2201')],'account':_0x5abb8c['dynamics365Account'],'license':null,'setting':null,'crudPermissions':_0x5abb8c[_0x9ef08('0x5ed')]}});}function _0x250417(_0x31de47){var _0x307842=_0x45f0f1;_0x228395[_0x307842('0x2557')]['delete']({'id':_0x31de47['id']})[_0x307842('0x1376')][_0x307842('0x21ad')](function(){var _0x1fff6f=_0x307842;_0x86640f()[_0x1fff6f('0x16a2')](_0x5abb8c[_0x1fff6f('0x1033')],{'id':_0x31de47['id']}),_0x407553[_0x1fff6f('0xdb1')]({'title':_0x1fff6f('0x17b8'),'msg':_0x1fff6f('0x2cf')});})[_0x307842('0x1c1d')](function(_0x4e1b3d){var _0x438973=_0x307842;_0x407553[_0x438973('0x2092')]({'title':_0x4e1b3d[_0x438973('0x209')]?_0x438973('0x22d')+_0x4e1b3d['status']+_0x438973('0xa99')+_0x4e1b3d[_0x438973('0x1808')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x4e1b3d[_0x438973('0x11c2')]?JSON[_0x438973('0x25e')](_0x4e1b3d[_0x438973('0x11c2')]):_0x4e1b3d[_0x438973('0x174f')]()});});}function _0x35b470(_0x288005,_0x22f20f){var _0x8bf0cb=_0x45f0f1,_0x2866e4=_0x105d9d[_0x8bf0cb('0xa33')]()[_0x8bf0cb('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?')[_0x8bf0cb('0x276b')](_0x8bf0cb('0x2031')+_0x8bf0cb('0x25e0'))[_0x8bf0cb('0x7a7')](_0x8bf0cb('0x566'))[_0x8bf0cb('0x1e6d')](_0x288005)['ok']('OK')['cancel'](_0x8bf0cb('0x284b'));_0x105d9d[_0x8bf0cb('0x853')](_0x2866e4)[_0x8bf0cb('0x21ad')](function(){_0x250417(_0x22f20f);},function(){var _0x310296=_0x8bf0cb;console[_0x310296('0x6fb')](_0x310296('0x284b'));});}function _0x3add14(_0x362ae0){var _0x921a2d=_0x45f0f1,_0x4bced3=_0x105d9d[_0x921a2d('0xa33')]()[_0x921a2d('0x4b4')](_0x921a2d('0x6e8'))['htmlContent'](_0x921a2d('0x622')+_0x5abb8c[_0x921a2d('0x19ba')][_0x921a2d('0x577')]+_0x921a2d('0xd74')+_0x921a2d('0x25e0'))[_0x921a2d('0x7a7')](_0x921a2d('0x1828'))[_0x921a2d('0x1e6d')](_0x362ae0)['ok']('OK')[_0x921a2d('0x3b5')](_0x921a2d('0x284b'));_0x105d9d[_0x921a2d('0x853')](_0x4bced3)['then'](function(){var _0x32cf72=_0x921a2d;_0x5abb8c[_0x32cf72('0x19ba')][_0x32cf72('0x1a52')](function(_0x4a63a7){_0x250417(_0x4a63a7);}),_0x5abb8c[_0x32cf72('0x19ba')]=[];});}_0x5abb8c['selectedDescriptions']=[],_0x5abb8c[_0x45f0f1('0x1139')]=_0x3da62b,_0x5abb8c['deleteDescriptionConfirm']=_0x4fdc39,_0x5abb8c['deleteSelectedDescriptions']=_0x2c26f7;function _0x3da62b(_0x3bf280,_0x2660ee){var _0x82427d=_0x45f0f1;_0x105d9d[_0x82427d('0x853')]({'controller':_0x82427d('0xf1a'),'controllerAs':'vm','templateUrl':_0x234724,'parent':angular[_0x82427d('0x1676')](_0x3a12ea[_0x82427d('0x2452')]),'targetEvent':_0x3bf280,'clickOutsideToClose':!![],'locals':{'type':_0x82427d('0x1137'),'item':_0x2660ee,'items':_0x5abb8c[_0x82427d('0x2161')],'configuration':_0x5abb8c[_0x82427d('0x2201')],'account':_0x5abb8c[_0x82427d('0x1864')],'license':null,'setting':null,'crudPermissions':_0x5abb8c[_0x82427d('0x5ed')]}});}function _0x46d3ea(_0x1da974){var _0x44a1c9=_0x45f0f1;_0x228395['intDynamics365Field'][_0x44a1c9('0x1164')]({'id':_0x1da974['id']})[_0x44a1c9('0x1376')][_0x44a1c9('0x21ad')](function(){var _0xf16e9=_0x44a1c9;_0x86640f()[_0xf16e9('0x16a2')](_0x5abb8c[_0xf16e9('0x2161')],{'id':_0x1da974['id']}),_0x407553[_0xf16e9('0xdb1')]({'title':_0xf16e9('0x1af8'),'msg':'Description\x20has\x20been\x20deleted!'});})[_0x44a1c9('0x1c1d')](function(_0x5717d6){var _0x221183=_0x44a1c9;_0x407553['error']({'title':_0x5717d6[_0x221183('0x209')]?_0x221183('0x22d')+_0x5717d6[_0x221183('0x209')]+_0x221183('0xa99')+_0x5717d6['statusText']:_0x221183('0xede'),'msg':_0x5717d6['data']?JSON[_0x221183('0x25e')](_0x5717d6[_0x221183('0x11c2')]):_0x5717d6[_0x221183('0x174f')]()});});}function _0x4fdc39(_0x2a648e,_0x3c7c18){var _0x1fda83=_0x45f0f1,_0x1dc395=_0x105d9d[_0x1fda83('0xa33')]()[_0x1fda83('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20description?')['htmlContent']('Description'+_0x1fda83('0x25e0'))[_0x1fda83('0x7a7')](_0x1fda83('0xe67'))['targetEvent'](_0x2a648e)['ok']('OK')['cancel'](_0x1fda83('0x284b'));_0x105d9d[_0x1fda83('0x853')](_0x1dc395)[_0x1fda83('0x21ad')](function(){_0x46d3ea(_0x3c7c18);},function(){var _0x13fc45=_0x1fda83;console['log'](_0x13fc45('0x284b'));});}function _0x2c26f7(_0xdaa4a7){var _0x521015=_0x45f0f1,_0x261f3=_0x105d9d[_0x521015('0xa33')]()[_0x521015('0x4b4')](_0x521015('0x6e'))[_0x521015('0x276b')](''+_0x5abb8c['selectedDescriptions'][_0x521015('0x577')]+_0x521015('0xd74')+'\x20will\x20be\x20deleted.')[_0x521015('0x7a7')](_0x521015('0x211d'))[_0x521015('0x1e6d')](_0xdaa4a7)['ok']('OK')[_0x521015('0x3b5')]('CANCEL');_0x105d9d[_0x521015('0x853')](_0x261f3)[_0x521015('0x21ad')](function(){var _0x4aed6c=_0x521015;_0x5abb8c[_0x4aed6c('0xbdf')]['forEach'](function(_0x18b3df){_0x46d3ea(_0x18b3df);}),_0x5abb8c['selectedDescriptions']=[];});}_0x5abb8c[_0x45f0f1('0x21b0')]=[],_0x5abb8c[_0x45f0f1('0x97')]=_0x5c1fe8,_0x5abb8c['deleteFieldConfirm']=_0x45730a,_0x5abb8c[_0x45f0f1('0xe52')]=_0x18be22;function _0x5c1fe8(_0x304cb3,_0x2e7e83){var _0x262416=_0x45f0f1;_0x105d9d[_0x262416('0x853')]({'controller':'CreateOrEditDynamics365AccountItemDialogController','controllerAs':'vm','templateUrl':_0x234724,'parent':angular[_0x262416('0x1676')](_0x3a12ea[_0x262416('0x2452')]),'targetEvent':_0x304cb3,'clickOutsideToClose':!![],'locals':{'type':_0x262416('0xff8'),'item':_0x2e7e83,'items':_0x5abb8c['fields'],'configuration':_0x5abb8c['dynamics365Configuration'],'account':_0x5abb8c['dynamics365Account'],'license':null,'setting':null,'crudPermissions':_0x5abb8c[_0x262416('0x5ed')]}});}function _0x2e5722(_0x9c3046){var _0x2588c6=_0x45f0f1;_0x228395[_0x2588c6('0x2557')][_0x2588c6('0x1164')]({'id':_0x9c3046['id']})[_0x2588c6('0x1376')][_0x2588c6('0x21ad')](function(){var _0x28146f=_0x2588c6;_0x86640f()[_0x28146f('0x16a2')](_0x5abb8c[_0x28146f('0x181e')],{'id':_0x9c3046['id']}),_0x407553[_0x28146f('0xdb1')]({'title':_0x28146f('0x2321'),'msg':_0x28146f('0x2263')});})[_0x2588c6('0x1c1d')](function(_0x36b440){var _0x489e36=_0x2588c6;_0x407553[_0x489e36('0x2092')]({'title':_0x36b440['status']?_0x489e36('0x22d')+_0x36b440[_0x489e36('0x209')]+_0x489e36('0xa99')+_0x36b440[_0x489e36('0x1808')]:_0x489e36('0xede'),'msg':_0x36b440[_0x489e36('0x11c2')]?JSON[_0x489e36('0x25e')](_0x36b440[_0x489e36('0x11c2')]):_0x36b440[_0x489e36('0x174f')]()});});}function _0x45730a(_0x43a6de,_0x469489){var _0x380fd=_0x45f0f1,_0x2ad0c0=_0x105d9d[_0x380fd('0xa33')]()['title'](_0x380fd('0x2207'))['htmlContent']('Field'+_0x380fd('0x25e0'))['ariaLabel']('delete\x20field')[_0x380fd('0x1e6d')](_0x43a6de)['ok']('OK')['cancel']('CANCEL');_0x105d9d[_0x380fd('0x853')](_0x2ad0c0)[_0x380fd('0x21ad')](function(){_0x2e5722(_0x469489);},function(){var _0x2e1a93=_0x380fd;console[_0x2e1a93('0x6fb')](_0x2e1a93('0x284b'));});}function _0x18be22(_0x1a06ea){var _0x489d21=_0x45f0f1,_0x646582=_0x105d9d['confirm']()[_0x489d21('0x4b4')](_0x489d21('0x655'))[_0x489d21('0x276b')](_0x489d21('0x622')+_0x5abb8c[_0x489d21('0x21b0')][_0x489d21('0x577')]+_0x489d21('0xd74')+_0x489d21('0x25e0'))['ariaLabel'](_0x489d21('0x85f'))[_0x489d21('0x1e6d')](_0x1a06ea)['ok']('OK')[_0x489d21('0x3b5')](_0x489d21('0x284b'));_0x105d9d['show'](_0x646582)['then'](function(){var _0x3a638e=_0x489d21;_0x5abb8c[_0x3a638e('0x21b0')]['forEach'](function(_0x4d88d6){_0x2e5722(_0x4d88d6);}),_0x5abb8c['selectedFields']=[];});}}const _0x26fe50=_0x10701b;_0x33931a[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x1ca3'),_0x3877e3('0x2201'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting',_0x3877e3('0x5ed')];function _0x33931a(_0x43528b,_0x2491a4,_0x40ce68,_0x39ed28,_0x966134,_0x44fb16,_0x1e6e81,_0x1ed9e5,_0x1fd455,_0x34ffe6,_0x273584,_0x3d72a5,_0x316b0b,_0x121c9d){var _0x3fb488=_0x3877e3,_0x4c06d9=this;_0x4c06d9[_0x3fb488('0x123f')]=_0x273584['getCurrentUser'](),_0x4c06d9[_0x3fb488('0x1a69')]=[],_0x4c06d9[_0x3fb488('0x21e')]=_0x316b0b,_0x4c06d9[_0x3fb488('0x2ff')]=_0x3d72a5,_0x4c06d9[_0x3fb488('0x5ed')]=_0x121c9d,_0x4c06d9[_0x3fb488('0x126a')]={},_0x4c06d9[_0x3fb488('0x1432')]=_0x4c06d9[_0x3fb488('0x21e')]&&_0x4c06d9[_0x3fb488('0x21e')][_0x3fb488('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4c06d9[_0x3fb488('0x4b4')]=_0x3fb488('0x2408'),_0x4c06d9['dynamics365Configuration']=angular['copy'](_0x1fd455),_0x4c06d9[_0x3fb488('0x1ca3')]=_0x1ed9e5,_0x4c06d9[_0x3fb488('0x1218')]=![];!_0x4c06d9[_0x3fb488('0x2201')]&&(_0x4c06d9[_0x3fb488('0x2201')]={'channel':_0x3fb488('0x8ed'),'type':_0x3fb488('0x923'),'ticketType':_0x3fb488('0x164d')},_0x4c06d9[_0x3fb488('0x4b4')]='INTEGRATIONS.NEW_DYNAMICS365CONFIGURATION',_0x4c06d9[_0x3fb488('0x1218')]=!![]);_0x4c06d9[_0x3fb488('0x859')]=_0x42fa3b,_0x4c06d9[_0x3fb488('0x279a')]=_0x8f918c,_0x4c06d9[_0x3fb488('0xbf7')]=_0x482fa2,_0x4c06d9['getDateFromString']=_0x2399ee,_0x4c06d9[_0x3fb488('0x167')]=_0x326b30;function _0x42fa3b(){var _0x1e0c56=_0x3fb488;_0x4c06d9['errors']=[],_0x34ffe6[_0x1e0c56('0x824')]['addConfiguration']({'id':_0x2491a4[_0x1e0c56('0x171b')]['id']},_0x4c06d9['dynamics365Configuration'])[_0x1e0c56('0x1376')][_0x1e0c56('0x21ad')](function(_0x48bb3f){var _0x1f5f9d=_0x1e0c56;_0x4c06d9[_0x1f5f9d('0x1ca3')][_0x1f5f9d('0xd0c')](_0x48bb3f['toJSON']()),_0x1e6e81[_0x1f5f9d('0xdb1')]({'title':_0x1f5f9d('0x26ca'),'msg':_0x4c06d9[_0x1f5f9d('0x2201')][_0x1f5f9d('0x19fe')]?_0x4c06d9[_0x1f5f9d('0x2201')][_0x1f5f9d('0x19fe')]+_0x1f5f9d('0x1694'):''}),_0x326b30(_0x48bb3f);})[_0x1e0c56('0x1c1d')](function(_0x22e1ff){var _0x518081=_0x1e0c56;if(_0x22e1ff[_0x518081('0x11c2')]&&_0x22e1ff[_0x518081('0x11c2')]['errors']&&_0x22e1ff[_0x518081('0x11c2')][_0x518081('0x1a69')]['length']){_0x4c06d9[_0x518081('0x1a69')]=_0x22e1ff[_0x518081('0x11c2')][_0x518081('0x1a69')]||[{'message':_0x22e1ff['toString'](),'type':_0x518081('0x228')}];for(var _0x4cbaa3=0x0;_0x4cbaa3<_0x22e1ff[_0x518081('0x11c2')]['errors'][_0x518081('0x577')];_0x4cbaa3+=0x1){_0x1e6e81[_0x518081('0x2092')]({'title':_0x22e1ff[_0x518081('0x11c2')]['errors'][_0x4cbaa3]['type'],'msg':_0x22e1ff[_0x518081('0x11c2')]['errors'][_0x4cbaa3][_0x518081('0x1224')]});}}else _0x1e6e81[_0x518081('0x2092')]({'title':_0x22e1ff[_0x518081('0x209')]?'API:'+_0x22e1ff[_0x518081('0x209')]+_0x518081('0xa99')+_0x22e1ff['statusText']:'api.intDynamics365Configuration.save','msg':_0x22e1ff['data']?JSON['stringify'](_0x22e1ff['data'][_0x518081('0x1224')]):_0x22e1ff['toString']()});});}function _0x8f918c(){var _0x469afa=_0x3fb488;_0x4c06d9[_0x469afa('0x1a69')]=[],_0x34ffe6[_0x469afa('0x2547')][_0x469afa('0x5ef')]({'id':_0x4c06d9[_0x469afa('0x2201')]['id']},_0x4c06d9[_0x469afa('0x2201')])[_0x469afa('0x1376')][_0x469afa('0x21ad')](function(_0x3f3bf7){var _0x2902ad=_0x469afa,_0x3827fc=_0x86640f()[_0x2902ad('0x1d2e')](_0x4c06d9[_0x2902ad('0x1ca3')],{'id':_0x3f3bf7['id']});_0x3827fc&&_0x86640f()[_0x2902ad('0xd0e')](_0x3827fc,_0x86640f()[_0x2902ad('0xc50')](_0x3f3bf7[_0x2902ad('0x3bc')](),_0x86640f()[_0x2902ad('0x223b')](_0x3827fc))),_0x1e6e81['success']({'title':'Dynamics365Configuration\x20properly\x20saved!','msg':_0x4c06d9[_0x2902ad('0x2201')]['name']?_0x4c06d9['dynamics365Configuration'][_0x2902ad('0x19fe')]+'\x20has\x20been\x20saved!':''}),_0x326b30(_0x3f3bf7);})[_0x469afa('0x1c1d')](function(_0x49f803){var _0x32838d=_0x469afa;if(_0x49f803[_0x32838d('0x11c2')]&&_0x49f803[_0x32838d('0x11c2')][_0x32838d('0x1a69')]&&_0x49f803[_0x32838d('0x11c2')][_0x32838d('0x1a69')][_0x32838d('0x577')]){_0x4c06d9['errors']=_0x49f803[_0x32838d('0x11c2')][_0x32838d('0x1a69')]||[{'message':_0x49f803[_0x32838d('0x174f')](),'type':_0x32838d('0x650')}];for(var _0x5ce435=0x0;_0x5ce435<_0x49f803['data'][_0x32838d('0x1a69')][_0x32838d('0x577')];_0x5ce435++){_0x1e6e81[_0x32838d('0x2092')]({'title':_0x49f803[_0x32838d('0x11c2')][_0x32838d('0x1a69')][_0x5ce435][_0x32838d('0x7fa')],'msg':_0x49f803[_0x32838d('0x11c2')][_0x32838d('0x1a69')][_0x5ce435]['message']});}}else _0x1e6e81['error']({'title':_0x49f803[_0x32838d('0x209')]?_0x32838d('0x22d')+_0x49f803[_0x32838d('0x209')]+'\x20-\x20'+_0x49f803['statusText']:_0x32838d('0x650'),'msg':_0x49f803[_0x32838d('0x11c2')]?JSON[_0x32838d('0x25e')](_0x49f803[_0x32838d('0x11c2')][_0x32838d('0x1224')]):_0x49f803['toString']()});});}function _0x482fa2(_0x10600e){var _0x32616c=_0x3fb488;_0x4c06d9[_0x32616c('0x1a69')]=[];var _0x6f4163=_0x39ed28[_0x32616c('0xa33')]()[_0x32616c('0x4b4')](_0x32616c('0x196b'))[_0x32616c('0x13fb')](_0x32616c('0x24b1'))[_0x32616c('0x7a7')]('Delete\x20Dynamics365Configuration')['ok'](_0x32616c('0xbfd'))[_0x32616c('0x3b5')](_0x32616c('0x1f40'))['targetEvent'](_0x10600e);_0x39ed28[_0x32616c('0x853')](_0x6f4163)[_0x32616c('0x21ad')](function(){var _0x2ee823=_0x32616c;_0x34ffe6[_0x2ee823('0x2547')]['delete']({'id':_0x4c06d9['dynamics365Configuration']['id']})[_0x2ee823('0x1376')]['then'](function(){var _0x4f9f70=_0x2ee823;_0x86640f()[_0x4f9f70('0x16a2')](_0x4c06d9[_0x4f9f70('0x1ca3')],{'id':_0x4c06d9['dynamics365Configuration']['id']}),_0x1e6e81['success']({'title':_0x4f9f70('0x1e6c'),'msg':(_0x4c06d9[_0x4f9f70('0x2201')][_0x4f9f70('0x19fe')]||_0x4f9f70('0x2201'))+_0x4f9f70('0xb4a')}),_0x326b30(_0x4c06d9['dynamics365Configuration']);})[_0x2ee823('0x1c1d')](function(_0x58a227){var _0x548bb6=_0x2ee823;if(_0x58a227[_0x548bb6('0x11c2')]&&_0x58a227[_0x548bb6('0x11c2')][_0x548bb6('0x1a69')]&&_0x58a227[_0x548bb6('0x11c2')][_0x548bb6('0x1a69')]['length']){_0x4c06d9[_0x548bb6('0x1a69')]=_0x58a227[_0x548bb6('0x11c2')][_0x548bb6('0x1a69')]||[{'message':_0x58a227[_0x548bb6('0x174f')](),'type':'api.intDynamics365Configuration.delete'}];for(var _0x1e7fca=0x0;_0x1e7fca<_0x58a227[_0x548bb6('0x11c2')][_0x548bb6('0x1a69')][_0x548bb6('0x577')];_0x1e7fca++){_0x1e6e81[_0x548bb6('0x2092')]({'title':_0x58a227[_0x548bb6('0x11c2')][_0x548bb6('0x1a69')][_0x1e7fca][_0x548bb6('0x7fa')],'msg':_0x58a227[_0x548bb6('0x11c2')][_0x548bb6('0x1a69')][_0x1e7fca][_0x548bb6('0x1224')]});}}else _0x1e6e81[_0x548bb6('0x2092')]({'title':_0x58a227[_0x548bb6('0x209')]?_0x548bb6('0x22d')+_0x58a227[_0x548bb6('0x209')]+_0x548bb6('0xa99')+_0x58a227[_0x548bb6('0x1808')]:_0x548bb6('0x1c2c'),'msg':_0x58a227[_0x548bb6('0x11c2')]?JSON[_0x548bb6('0x25e')](_0x58a227[_0x548bb6('0x11c2')][_0x548bb6('0x1224')]):_0x58a227[_0x548bb6('0x1224')]||_0x58a227[_0x548bb6('0x174f')]()});});},function(){});}function _0x2399ee(_0x2ab877){return _0x2ab877===null?undefined:new Date(_0x2ab877);}function _0x326b30(_0x256e56){var _0x5b01c5=_0x3fb488;_0x39ed28[_0x5b01c5('0x1c24')](_0x256e56);}}const _0x47e0ef=_0x33931a;_0x10d468[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$state',_0x3877e3('0x14c7'),'$mdDialog',_0x3877e3('0x1908'),'configuration','items',_0x3877e3('0x19ca'),_0x3877e3('0x1fd3'),'type',_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x10d468(_0x5551ed,_0x1a3bc9,_0x2b72cf,_0x54d8fa,_0x364121,_0x56d832,_0x148bc2,_0x58c190,_0x218600,_0x435ff2,_0x1aeda6,_0xe2528b,_0x43be27){var _0x127216=_0x3877e3,_0x1129d2=this;_0x1129d2['currentUser']=_0xe2528b[_0x127216('0x15ed')](),_0x1129d2[_0x127216('0x1a69')]=[],_0x1129d2[_0x127216('0x4b4')]=_0x127216('0x177a')+_0x86640f()[_0x127216('0x7c1')](_0x435ff2),_0x1129d2[_0x127216('0x19ca')]=angular[_0x127216('0xd75')](_0x58c190),_0x1129d2[_0x127216('0x1b9a')]=_0x148bc2,_0x1129d2[_0x127216('0x7fa')]=_0x435ff2,_0x1129d2[_0x127216('0x5ed')]=_0x43be27,_0x1129d2[_0x127216('0xf8')]=![];!_0x1129d2[_0x127216('0x19ca')]&&(_0x1129d2[_0x127216('0x19ca')]={'type':_0x127216('0x2638')},_0x1129d2[_0x127216('0x19ca')][_0x86640f()['capitalize'](_0x435ff2)+'Id']=_0x56d832['id'],_0x1129d2[_0x127216('0x4b4')]=_0x127216('0x1d99')+_0x86640f()[_0x127216('0x7c1')](_0x435ff2),_0x1129d2[_0x127216('0xf8')]=!![]);_0x1129d2[_0x127216('0x1e89')]=_0x6c56a7,_0x1129d2[_0x127216('0x1c97')]=_0x3bb068,_0x1129d2[_0x127216('0x1c8')]=_0x4d6d68,_0x1129d2[_0x127216('0x23fe')]=_0x5da72f,_0x1129d2[_0x127216('0x167')]=_0x53fb59,_0x1aeda6[_0x127216('0x25bb')][_0x127216('0x595')]({'nolimit':!![]})[_0x127216('0x1376')][_0x127216('0x21ad')](function(_0x583319){var _0x18007f=_0x127216;return _0x1129d2[_0x18007f('0x142d')]=_0x583319['rows']?_0x583319['rows']:[],_0x1aeda6['voiceAgentReport'][_0x18007f('0x1219')]()[_0x18007f('0x1376')];})[_0x127216('0x21ad')](function(_0x135687){var _0x17ce6f=_0x127216;return _0x1129d2['voiceAgentReportColumns']=_0x86640f()[_0x17ce6f('0x5a8')](_0x86640f()[_0x17ce6f('0x223b')](_0x135687),['$promise',_0x17ce6f('0x9f8'),_0x17ce6f('0x23ae'),_0x17ce6f('0x15af'),_0x17ce6f('0x1bdd')]),_0x1129d2['voiceAgentReportColumns'][_0x17ce6f('0x206c')]('recordingURL'),_0x1aeda6['voiceDialReport'][_0x17ce6f('0x1219')]()['$promise'];})['then'](function(_0x497ea2){var _0x4a2b4d=_0x127216;_0x1129d2[_0x4a2b4d('0x1491')]=_0x86640f()[_0x4a2b4d('0x5a8')](_0x86640f()[_0x4a2b4d('0x223b')](_0x497ea2),[_0x4a2b4d('0x1376'),_0x4a2b4d('0x9f8'),'createdAt',_0x4a2b4d('0x15af'),_0x4a2b4d('0x1bdd')]),_0x1129d2[_0x4a2b4d('0x1491')]['push']('recordingURL');})[_0x127216('0x1c1d')](function(_0x49f8c6){var _0xe87db9=_0x127216;_0x364121[_0xe87db9('0x2092')]({'title':_0x49f8c6[_0xe87db9('0x209')]?'API:'+_0x49f8c6['status']+_0xe87db9('0xa99')+_0x49f8c6[_0xe87db9('0x1808')]:_0xe87db9('0x8f3'),'msg':_0x49f8c6[_0xe87db9('0x11c2')]?JSON[_0xe87db9('0x25e')](_0x49f8c6[_0xe87db9('0x11c2')]):_0x49f8c6[_0xe87db9('0x174f')]()});}),_0x1aeda6[_0x127216('0x824')][_0x127216('0x929')]({'id':_0x218600['id'],'ticketType':_0x56d832[_0x127216('0x257e')]?_0x56d832[_0x127216('0x257e')]:undefined})[_0x127216('0x1376')][_0x127216('0x21ad')](function(_0x3db2c5){var _0x153b1c=_0x127216;_0x1129d2['accountConnected']=!![],_0x1129d2[_0x153b1c('0x181e')]=_0x3db2c5[_0x153b1c('0x1b33')]?_0x3db2c5[_0x153b1c('0x1b33')]:[],_0x1129d2[_0x153b1c('0x19ca')]['idField']&&(_0x1129d2[_0x153b1c('0x1fa7')]=_0x86640f()[_0x153b1c('0x1d2e')](_0x1129d2[_0x153b1c('0x181e')],{'id':_0x1129d2[_0x153b1c('0x19ca')][_0x153b1c('0x1830')]}));})['catch'](function(_0x3f8a7d){var _0x46ccb7=_0x127216;_0x1129d2['accountConnected']=![],console[_0x46ccb7('0x2092')](_0x3f8a7d);});function _0x6c56a7(){var _0x1283bc=_0x127216;_0x1129d2[_0x1283bc('0x1a69')]=[],_0x1129d2[_0x1283bc('0x1fa7')]&&(_0x1129d2['item'][_0x1283bc('0x1830')]=_0x1129d2[_0x1283bc('0x1fa7')]['id'],_0x1129d2[_0x1283bc('0x19ca')]['nameField']=_0x1129d2[_0x1283bc('0x1fa7')]['name'],_0x1129d2[_0x1283bc('0x19ca')][_0x1283bc('0x1fa7')]=_0x1129d2[_0x1283bc('0x1fa7')][_0x1283bc('0xf50')]),_0x1aeda6[_0x1283bc('0x2557')][_0x1283bc('0x186f')](_0x1129d2[_0x1283bc('0x19ca')])[_0x1283bc('0x1376')][_0x1283bc('0x21ad')](function(_0x5876ec){var _0x56bdc1=_0x1283bc;_0x1129d2[_0x56bdc1('0x1b9a')][_0x56bdc1('0xd0c')](_0x5876ec),_0x364121[_0x56bdc1('0xdb1')]({'title':_0x86640f()[_0x56bdc1('0x1b7e')](_0x435ff2)+'\x20properly\x20created','msg':_0x86640f()['capitalize'](_0x435ff2)+_0x56bdc1('0x1694')}),_0x53fb59();})['catch'](function(_0x5d0890){var _0x4a057f=_0x1283bc;console[_0x4a057f('0x2092')](_0x5d0890),_0x1129d2[_0x4a057f('0x1a69')]=_0x5d0890['data'][_0x4a057f('0x1a69')]||[{'message':_0x5d0890[_0x4a057f('0x174f')](),'type':_0x4a057f('0x1a23')}];});}function _0x3bb068(){var _0x164551=_0x127216;_0x1129d2[_0x164551('0x1a69')]=[],_0x1129d2['customField']&&(_0x1129d2[_0x164551('0x19ca')][_0x164551('0x1830')]=_0x1129d2['customField']['id'],_0x1129d2[_0x164551('0x19ca')][_0x164551('0xb45')]=_0x1129d2[_0x164551('0x1fa7')]['name'],_0x1129d2[_0x164551('0x19ca')][_0x164551('0x1fa7')]=_0x1129d2[_0x164551('0x1fa7')][_0x164551('0xf50')]),_0x1aeda6[_0x164551('0x2557')]['update']({'id':_0x1129d2[_0x164551('0x19ca')]['id']},_0x1129d2[_0x164551('0x19ca')])[_0x164551('0x1376')][_0x164551('0x21ad')](function(_0x47ccd7){var _0x5993e9=_0x164551,_0x11064b=_0x86640f()['find'](_0x1129d2[_0x5993e9('0x1b9a')],{'id':_0x47ccd7['id']});_0x11064b&&_0x86640f()[_0x5993e9('0xd0e')](_0x11064b,_0x47ccd7),_0x364121[_0x5993e9('0xdb1')]({'title':_0x86640f()[_0x5993e9('0x1b7e')](_0x435ff2)+_0x5993e9('0x2a3'),'msg':_0x86640f()['capitalize'](_0x435ff2)+_0x5993e9('0x2249')}),_0x53fb59();})[_0x164551('0x1c1d')](function(_0x1661aa){var _0x4879ab=_0x164551;console[_0x4879ab('0x2092')](_0x1661aa),_0x1129d2[_0x4879ab('0x1a69')]=_0x1661aa['data'][_0x4879ab('0x1a69')]||[{'message':_0x1661aa[_0x4879ab('0x174f')](),'type':_0x4879ab('0x1488')}];});}function _0x4d6d68(_0x27f226){var _0x4586fe=_0x127216;_0x1129d2[_0x4586fe('0x1a69')]=[];var _0x1a4eae=_0x54d8fa['confirm']()[_0x4586fe('0x4b4')](_0x4586fe('0x196b'))['content'](_0x4586fe('0x15f2')+_0x435ff2+_0x4586fe('0x25e0'))['ariaLabel'](_0x4586fe('0x2e4')+_0x86640f()['capitalize'](_0x435ff2))['ok'](_0x4586fe('0xbfd'))['cancel'](_0x4586fe('0x1f40'))[_0x4586fe('0x1e6d')](_0x27f226);_0x54d8fa[_0x4586fe('0x853')](_0x1a4eae)[_0x4586fe('0x21ad')](function(){var _0x4f757d=_0x4586fe;_0x1aeda6[_0x4f757d('0x2557')][_0x4f757d('0x1164')]({'id':_0x1129d2['item']['id']})[_0x4f757d('0x1376')][_0x4f757d('0x21ad')](function(){var _0x2a137d=_0x4f757d;_0x86640f()[_0x2a137d('0x16a2')](_0x1129d2[_0x2a137d('0x1b9a')],{'id':_0x1129d2['item']['id']}),_0x364121['success']({'title':_0x86640f()[_0x2a137d('0x1b7e')](_0x435ff2)+_0x2a137d('0x11b6'),'msg':_0x86640f()[_0x2a137d('0x1b7e')](_0x435ff2)+_0x2a137d('0xb4a')}),_0x53fb59();})[_0x4f757d('0x1c1d')](function(_0x38436a){var _0x4b5ac2=_0x4f757d;console[_0x4b5ac2('0x2092')](_0x38436a),_0x1129d2[_0x4b5ac2('0x1a69')]=_0x38436a['data'][_0x4b5ac2('0x1a69')]||[{'message':_0x38436a['toString'](),'type':_0x4b5ac2('0x2175')}];});},function(){});}function _0x5da72f(){var _0x206305=_0x127216;return _0x1129d2['item'][_0x206305('0x1651')]!==undefined?_0x1129d2['item'][_0x206305('0x1651')]:'Please\x20select\x20a\x20variable';}function _0x53fb59(){var _0x2cbbfc=_0x127216;_0x54d8fa[_0x2cbbfc('0x1c24')]();}}const _0x32e75b=_0x10d468;_0x4550df[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x13c1'),_0x3877e3('0x2ff'),'setting','api',_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x1864'),_0x3877e3('0xab4')];function _0x4550df(_0x55e20e,_0x1ee825,_0x734f73,_0x309bd,_0x13152a,_0x53be40,_0x551fde,_0x202394,_0x36b37b,_0x2b6e01,_0x260c22,_0x58578e){var _0x528818=_0x3877e3,_0x11d93c=this;_0x11d93c[_0x528818('0x123f')]=_0x2b6e01[_0x528818('0x15ed')](),_0x11d93c[_0x528818('0x2ff')]=_0x53be40,_0x11d93c[_0x528818('0x21e')]=_0x551fde,_0x11d93c[_0x528818('0x1432')]=_0x11d93c['setting'][_0x528818('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x11d93c[_0x528818('0x626')]=_0x1ee825[_0x528818('0x1162')]()+'://'+_0x1ee825[_0x528818('0x1c01')](),_0x11d93c[_0x528818('0x1864')]=_0x260c22||_0x55e20e[_0x528818('0x171b')][_0x528818('0x1864')]||{},_0x11d93c[_0x528818('0xab4')]=_0x58578e&&_0x58578e[_0x528818('0x205f')]==0x1?_0x58578e[_0x528818('0x1b33')][0x0]:null,_0x11d93c[_0x528818('0x5ed')]=_0x2b6e01[_0x528818('0x1778')](_0x11d93c[_0x528818('0xab4')]?_0x11d93c['userProfileSection'][_0x528818('0x5ed')]:null),_0x11d93c['hasModulePermissions']={},_0x11d93c[_0x528818('0x302')]=_0x55e20e[_0x528818('0x171b')]['tab']||0x0,_0x11d93c['alert']=_0x36b37b[_0x528818('0x231c')],_0x11d93c[_0x528818('0x17b2')]=_0x4603bc,_0x11d93c[_0x528818('0x2225')]=_0x41da52;function _0x4603bc(){var _0x379672=_0x528818;_0x55e20e['go'](_0x379672('0x11cd'),{},{'reload':_0x379672('0x11cd')});}function _0x41da52(){var _0x33c7fd=_0x528818;_0x202394[_0x33c7fd('0x824')][_0x33c7fd('0x5ef')]({'id':_0x11d93c[_0x33c7fd('0x1864')]['id']},_0x11d93c['dynamics365Account'])[_0x33c7fd('0x1376')][_0x33c7fd('0x21ad')](function(){var _0xf00e98=_0x33c7fd;_0x36b37b[_0xf00e98('0xdb1')]({'title':_0xf00e98('0x4f4'),'msg':_0x11d93c[_0xf00e98('0x1864')]['name']?_0x11d93c[_0xf00e98('0x1864')][_0xf00e98('0x19fe')]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0xd85f8a){var _0x3e2564=_0x33c7fd;_0x36b37b['error']({'title':_0xd85f8a[_0x3e2564('0x209')]?_0x3e2564('0x22d')+_0xd85f8a['status']+_0x3e2564('0xa99')+_0xd85f8a[_0x3e2564('0x1808')]:'SYSTEM:GETintDynamics365Account','msg':_0xd85f8a[_0x3e2564('0x11c2')]?JSON[_0x3e2564('0x25e')](_0xd85f8a[_0x3e2564('0x11c2')]):_0xd85f8a[_0x3e2564('0x174f')]()});});}}const _0x199379=_0x4550df;_0x542b5f[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x173'),_0x3877e3('0x1b55'),'api',_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),'crudPermissions'];function _0x542b5f(_0x182560,_0x51ee2f,_0x4741a8,_0x19a5f1,_0x141b3c,_0x31ae39,_0x3e713b,_0x569f46,_0x2a0071,_0xe230b8,_0xcdc25f,_0x9575ba,_0x4202a1,_0x27124c){var _0x5f20a5=_0x3877e3,_0x270cb1=this;_0x270cb1[_0x5f20a5('0x123f')]=_0xcdc25f[_0x5f20a5('0x15ed')](),_0x270cb1[_0x5f20a5('0x1a69')]=[],_0x270cb1[_0x5f20a5('0x21e')]=_0x4202a1,_0x270cb1[_0x5f20a5('0x2ff')]=_0x9575ba,_0x270cb1['crudPermissions']=_0x27124c,_0x270cb1['hasModulePermissions']={},_0x270cb1[_0x5f20a5('0x1432')]=_0x270cb1[_0x5f20a5('0x21e')]&&_0x270cb1['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x270cb1[_0x5f20a5('0x4b4')]=_0x5f20a5('0x1573'),_0x270cb1[_0x5f20a5('0x1b55')]=angular[_0x5f20a5('0xd75')](_0x2a0071),_0x270cb1[_0x5f20a5('0x173')]=_0x569f46,_0x270cb1[_0x5f20a5('0x5af')]=![];!_0x270cb1[_0x5f20a5('0x1b55')]&&(_0x270cb1[_0x5f20a5('0x1b55')]={'serverUrl':_0x4741a8['protocol']()+_0x5f20a5('0x22a9')+_0x4741a8[_0x5f20a5('0x1c01')]()+(_0x4741a8[_0x5f20a5('0x24fe')]()?':'+_0x4741a8[_0x5f20a5('0x24fe')]():'')},_0x270cb1[_0x5f20a5('0x4b4')]='INTEGRATIONS.NEW_FRESHDESKACCOUNT',_0x270cb1['newFreshdeskAccount']=!![]);_0x270cb1[_0x5f20a5('0x24c1')]=_0x182f88,_0x270cb1[_0x5f20a5('0x721')]=_0xa9cc74,_0x270cb1[_0x5f20a5('0x93')]=_0x529afa,_0x270cb1[_0x5f20a5('0x279')]=_0xe494ff,_0x270cb1[_0x5f20a5('0x167')]=_0x4c547c;function _0x182f88(){var _0x557686=_0x5f20a5;_0x270cb1['errors']=[],_0xe230b8['intFreshdeskAccount'][_0x557686('0x186f')](_0x270cb1[_0x557686('0x1b55')])['$promise'][_0x557686('0x21ad')](function(_0x3dc905){var _0x16f1b8=_0x557686;_0x270cb1[_0x16f1b8('0x173')][_0x16f1b8('0xd0c')](_0x3dc905[_0x16f1b8('0x3bc')]()),_0x3e713b[_0x16f1b8('0xdb1')]({'title':_0x16f1b8('0x15bd'),'msg':_0x270cb1[_0x16f1b8('0x1b55')]['name']?_0x270cb1[_0x16f1b8('0x1b55')]['name']+_0x16f1b8('0x1694'):''}),_0x4c547c(_0x3dc905);})[_0x557686('0x1c1d')](function(_0xda91b5){var _0x51a858=_0x557686;if(_0xda91b5[_0x51a858('0x11c2')]&&_0xda91b5[_0x51a858('0x11c2')][_0x51a858('0x1a69')]&&_0xda91b5['data'][_0x51a858('0x1a69')][_0x51a858('0x577')]){_0x270cb1['errors']=_0xda91b5[_0x51a858('0x11c2')]['errors']||[{'message':_0xda91b5[_0x51a858('0x174f')](),'type':_0x51a858('0x1f6f')}];for(var _0x4d1159=0x0;_0x4d1159<_0xda91b5['data']['errors']['length'];_0x4d1159+=0x1){_0x3e713b['error']({'title':_0xda91b5[_0x51a858('0x11c2')][_0x51a858('0x1a69')][_0x4d1159][_0x51a858('0x7fa')],'msg':_0xda91b5['data'][_0x51a858('0x1a69')][_0x4d1159][_0x51a858('0x1224')]});}}else _0x3e713b[_0x51a858('0x2092')]({'title':_0xda91b5['status']?'API:'+_0xda91b5[_0x51a858('0x209')]+_0x51a858('0xa99')+_0xda91b5['statusText']:_0x51a858('0x1f6f'),'msg':_0xda91b5[_0x51a858('0x11c2')]?JSON[_0x51a858('0x25e')](_0xda91b5[_0x51a858('0x11c2')]['message']):_0xda91b5['toString']()});});}function _0xa9cc74(){var _0x1a279b=_0x5f20a5;_0x270cb1['errors']=[],_0xe230b8['intFreshdeskAccount']['update']({'id':_0x270cb1['freshdeskAccount']['id']},_0x270cb1[_0x1a279b('0x1b55')])[_0x1a279b('0x1376')][_0x1a279b('0x21ad')](function(_0x880319){var _0x383c8e=_0x1a279b,_0x40ff03=_0x86640f()[_0x383c8e('0x1d2e')](_0x270cb1[_0x383c8e('0x173')],{'id':_0x880319['id']});_0x40ff03&&_0x86640f()[_0x383c8e('0xd0e')](_0x40ff03,_0x86640f()['pick'](_0x880319[_0x383c8e('0x3bc')](),_0x86640f()['keys'](_0x40ff03))),_0x3e713b[_0x383c8e('0xdb1')]({'title':_0x383c8e('0x9f0'),'msg':_0x270cb1[_0x383c8e('0x1b55')]['name']?_0x270cb1[_0x383c8e('0x1b55')][_0x383c8e('0x19fe')]+'\x20has\x20been\x20saved!':''}),_0x4c547c(_0x880319);})[_0x1a279b('0x1c1d')](function(_0x5684f8){var _0x211c0a=_0x1a279b;if(_0x5684f8[_0x211c0a('0x11c2')]&&_0x5684f8[_0x211c0a('0x11c2')][_0x211c0a('0x1a69')]&&_0x5684f8[_0x211c0a('0x11c2')][_0x211c0a('0x1a69')][_0x211c0a('0x577')]){_0x270cb1[_0x211c0a('0x1a69')]=_0x5684f8[_0x211c0a('0x11c2')][_0x211c0a('0x1a69')]||[{'message':_0x5684f8['toString'](),'type':_0x211c0a('0x1b10')}];for(var _0x13ccb1=0x0;_0x13ccb1<_0x5684f8['data'][_0x211c0a('0x1a69')][_0x211c0a('0x577')];_0x13ccb1++){_0x3e713b[_0x211c0a('0x2092')]({'title':_0x5684f8[_0x211c0a('0x11c2')]['errors'][_0x13ccb1][_0x211c0a('0x7fa')],'msg':_0x5684f8[_0x211c0a('0x11c2')][_0x211c0a('0x1a69')][_0x13ccb1][_0x211c0a('0x1224')]});}}else _0x3e713b[_0x211c0a('0x2092')]({'title':_0x5684f8['status']?_0x211c0a('0x22d')+_0x5684f8[_0x211c0a('0x209')]+_0x211c0a('0xa99')+_0x5684f8[_0x211c0a('0x1808')]:_0x211c0a('0x1b10'),'msg':_0x5684f8[_0x211c0a('0x11c2')]?JSON[_0x211c0a('0x25e')](_0x5684f8['data'][_0x211c0a('0x1224')]):_0x5684f8['toString']()});});}function _0x529afa(_0x1d150a){var _0x3e2728=_0x5f20a5;_0x270cb1['errors']=[];var _0x20341a=_0x19a5f1[_0x3e2728('0xa33')]()['title'](_0x3e2728('0x196b'))[_0x3e2728('0x13fb')](_0x3e2728('0x805'))[_0x3e2728('0x7a7')]('Delete\x20FreshdeskAccount')['ok'](_0x3e2728('0xbfd'))[_0x3e2728('0x3b5')]('Cancel')[_0x3e2728('0x1e6d')](_0x1d150a);_0x19a5f1[_0x3e2728('0x853')](_0x20341a)[_0x3e2728('0x21ad')](function(){var _0x4b0793=_0x3e2728;_0xe230b8[_0x4b0793('0x64f')][_0x4b0793('0x1164')]({'id':_0x270cb1[_0x4b0793('0x1b55')]['id']})[_0x4b0793('0x1376')][_0x4b0793('0x21ad')](function(){var _0x488a2c=_0x4b0793;_0x86640f()['remove'](_0x270cb1[_0x488a2c('0x173')],{'id':_0x270cb1[_0x488a2c('0x1b55')]['id']}),_0x3e713b[_0x488a2c('0xdb1')]({'title':'FreshdeskAccount\x20properly\x20deleted!','msg':(_0x270cb1['freshdeskAccount'][_0x488a2c('0x19fe')]||'freshdeskAccount')+_0x488a2c('0xb4a')}),_0x4c547c(_0x270cb1[_0x488a2c('0x1b55')]);})[_0x4b0793('0x1c1d')](function(_0x5bed99){var _0x5482f3=_0x4b0793;if(_0x5bed99[_0x5482f3('0x11c2')]&&_0x5bed99[_0x5482f3('0x11c2')][_0x5482f3('0x1a69')]&&_0x5bed99[_0x5482f3('0x11c2')]['errors'][_0x5482f3('0x577')]){_0x270cb1[_0x5482f3('0x1a69')]=_0x5bed99[_0x5482f3('0x11c2')][_0x5482f3('0x1a69')]||[{'message':_0x5bed99[_0x5482f3('0x174f')](),'type':_0x5482f3('0x2576')}];for(var _0x202d02=0x0;_0x202d02<_0x5bed99[_0x5482f3('0x11c2')][_0x5482f3('0x1a69')]['length'];_0x202d02++){_0x3e713b[_0x5482f3('0x2092')]({'title':_0x5bed99['data'][_0x5482f3('0x1a69')][_0x202d02][_0x5482f3('0x7fa')],'msg':_0x5bed99[_0x5482f3('0x11c2')][_0x5482f3('0x1a69')][_0x202d02][_0x5482f3('0x1224')]});}}else _0x3e713b[_0x5482f3('0x2092')]({'title':_0x5bed99[_0x5482f3('0x209')]?'API:'+_0x5bed99[_0x5482f3('0x209')]+_0x5482f3('0xa99')+_0x5bed99[_0x5482f3('0x1808')]:_0x5482f3('0x2576'),'msg':_0x5bed99[_0x5482f3('0x11c2')]?JSON['stringify'](_0x5bed99[_0x5482f3('0x11c2')]['message']):_0x5bed99[_0x5482f3('0x1224')]||_0x5bed99[_0x5482f3('0x174f')]()});});},function(){});}function _0xe494ff(_0x3d43d9){return _0x3d43d9===null?undefined:new Date(_0x3d43d9);}function _0x4c547c(_0x22c9c7){_0x19a5f1['hide'](_0x22c9c7);}}const _0x524e3f=_0x542b5f,_0x1bc861=_0x398308['p']+_0x3877e3('0x2215'),_0x537bca=_0x398308['p']+_0x3877e3('0x1e8e');_0x9b10c7[_0x3877e3('0x1a81')]=['$mdDialog',_0x3877e3('0x243f'),'api',_0x3877e3('0x1908'),'Auth'];function _0x9b10c7(_0x43a5cb,_0xcaccc,_0x3e7f0e,_0x545ffb,_0x17db0b){var _0x1795ff=_0x3877e3,_0x26fce3=this;_0x26fce3[_0x1795ff('0x123f')]=_0x17db0b[_0x1795ff('0x15ed')](),_0x26fce3[_0x1795ff('0x1b55')]={},_0x26fce3[_0x1795ff('0x12e4')]={},_0x26fce3[_0x1795ff('0x1ca3')]=[],_0x26fce3[_0x1795ff('0x2246')]=-0x1,_0x26fce3[_0x1795ff('0x5ed')],_0x26fce3[_0x1795ff('0x1d75')]=_0x52efae,_0x26fce3[_0x1795ff('0x12b3')]=_0x3c0db2,_0x26fce3[_0x1795ff('0xc1c')]=_0x197da3,_0x26fce3[_0x1795ff('0x1a3')]=_0x3505b3,_0x26fce3[_0x1795ff('0xb86')]=[],_0x26fce3[_0x1795ff('0xeab')]=_0x3eb309,_0x3e7f0e['tag'][_0x1795ff('0x595')]({'nolimit':!![],'sort':_0x1795ff('0x19fe')})[_0x1795ff('0x1376')][_0x1795ff('0x21ad')](function(_0x50771c){var _0xac21f1=_0x1795ff;_0x26fce3[_0xac21f1('0x1889')]=_0x50771c[_0xac21f1('0x1b33')]?_0x50771c[_0xac21f1('0x1b33')]:[];})[_0x1795ff('0x1c1d')](function(_0x3bd9d9){var _0xf87943=_0x1795ff;_0x545ffb[_0xf87943('0x2092')]({'title':_0x3bd9d9['status']?_0xf87943('0x22d')+_0x3bd9d9[_0xf87943('0x209')]+_0xf87943('0xa99')+_0x3bd9d9[_0xf87943('0x1808')]:_0xf87943('0x25ce'),'msg':_0x3bd9d9[_0xf87943('0x11c2')]?JSON[_0xf87943('0x25e')](_0x3bd9d9[_0xf87943('0x11c2')]):_0x3bd9d9[_0xf87943('0x174f')]()});});function _0x3eb309(){var _0x5f3b9c=_0x1795ff;_0x3e7f0e[_0x5f3b9c('0x1a5')][_0x5f3b9c('0x87a')]({'id':_0x26fce3[_0x5f3b9c('0x12e4')]['id'],'ids':_0x26fce3['selectedTags']})[_0x5f3b9c('0x1376')][_0x5f3b9c('0x21ad')](function(){var _0x12accc=_0x5f3b9c;_0x545ffb[_0x12accc('0xdb1')]({'title':'Tags\x20set!','msg':_0x12accc('0x1528')});})[_0x5f3b9c('0x1c1d')](function(_0x4a5360){var _0x4ef439=_0x5f3b9c;_0x545ffb[_0x4ef439('0x2092')]({'title':_0x4a5360['status']?_0x4ef439('0x22d')+_0x4a5360[_0x4ef439('0x209')]+_0x4ef439('0xa99')+_0x4a5360[_0x4ef439('0x1808')]:_0x4ef439('0x20c4'),'msg':_0x4a5360[_0x4ef439('0x11c2')]?JSON[_0x4ef439('0x25e')](_0x4a5360['data']):_0x4a5360[_0x4ef439('0x174f')]()});});}function _0x52efae(_0x3bf644,_0x541423){var _0x1bcc30=_0x1795ff;_0x26fce3['freshdeskAccount']=_0x3bf644,_0x26fce3[_0x1bcc30('0x5ed')]=typeof _0x541423!==_0x1bcc30('0xddc')?_0x541423:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3e7f0e[_0x1bcc30('0x64f')]['getConfigurations']({'id':_0x26fce3['freshdeskAccount']['id'],'sort':'-updatedAt'})[_0x1bcc30('0x1376')]['then'](function(_0x3a7212){var _0x2f6486=_0x1bcc30;return _0x26fce3[_0x2f6486('0x1ca3')]=_0x3a7212[_0x2f6486('0x1b33')]?_0x3a7212[_0x2f6486('0x1b33')]:[],_0x26fce3[_0x2f6486('0x1ca3')]['length']&&_0x26fce3['getFreshdeskConfiguration'](0x0),_0x3e7f0e['variable'][_0x2f6486('0x595')]({'nolimit':!![],'sort':'name'})['$promise'];})['then'](function(_0x4ae1b2){var _0x2ec1c2=_0x1bcc30;_0x26fce3['variables']=_0x4ae1b2[_0x2ec1c2('0x1b33')]?_0x4ae1b2[_0x2ec1c2('0x1b33')]:[],_0x26fce3[_0x2ec1c2('0x5f')]=_0x86640f()[_0x2ec1c2('0xcde')](_0x26fce3['variables'],'id');})[_0x1bcc30('0x1c1d')](function(_0x168c11){var _0x479002=_0x1bcc30;_0x545ffb['error']({'title':_0x168c11[_0x479002('0x209')]?_0x479002('0x22d')+_0x168c11[_0x479002('0x209')]+_0x479002('0xa99')+_0x168c11[_0x479002('0x1808')]:_0x479002('0x1c4e'),'msg':_0x168c11[_0x479002('0x11c2')]?JSON['stringify'](_0x168c11[_0x479002('0x11c2')]):_0x168c11[_0x479002('0x174f')]()});});}function _0x3c0db2(_0xfba4e6){var _0x4dabc4=_0x1795ff;_0x26fce3[_0x4dabc4('0x12e4')]=_0x26fce3[_0x4dabc4('0x1ca3')][_0xfba4e6],_0x26fce3[_0x4dabc4('0x2246')]=_0xfba4e6,_0x3e7f0e[_0x4dabc4('0x1a5')][_0x4dabc4('0x12d7')]({'id':_0x26fce3[_0x4dabc4('0x12e4')]['id']})[_0x4dabc4('0x1376')]['then'](function(_0x45ee9b){var _0x55d8b5=_0x4dabc4;return _0x26fce3[_0x55d8b5('0x1033')]=_0x45ee9b[_0x55d8b5('0x1b33')]?_0x45ee9b[_0x55d8b5('0x1b33')]:[],_0x3e7f0e['intFreshdeskConfiguration'][_0x55d8b5('0x377')]({'id':_0x26fce3[_0x55d8b5('0x12e4')]['id']})[_0x55d8b5('0x1376')];})[_0x4dabc4('0x21ad')](function(_0x4f976d){var _0x87126c=_0x4dabc4;return _0x26fce3['descriptions']=_0x4f976d[_0x87126c('0x1b33')]?_0x4f976d[_0x87126c('0x1b33')]:[],_0x3e7f0e[_0x87126c('0x1a5')][_0x87126c('0x929')]({'id':_0x26fce3[_0x87126c('0x12e4')]['id']})['$promise'];})[_0x4dabc4('0x21ad')](function(_0x5cbdde){var _0x2081ed=_0x4dabc4;_0x26fce3[_0x2081ed('0x181e')]=_0x5cbdde[_0x2081ed('0x1b33')]?_0x5cbdde[_0x2081ed('0x1b33')]:[];})['catch'](function(_0x4f5bfe){var _0x426ce3=_0x4dabc4;_0x545ffb[_0x426ce3('0x2092')]({'title':_0x4f5bfe[_0x426ce3('0x209')]?_0x426ce3('0x22d')+_0x4f5bfe[_0x426ce3('0x209')]+'\x20-\x20'+_0x4f5bfe[_0x426ce3('0x1808')]:_0x426ce3('0x172f'),'msg':_0x4f5bfe[_0x426ce3('0x11c2')]?JSON['stringify'](_0x4f5bfe[_0x426ce3('0x11c2')]):_0x4f5bfe['toString']()});}),_0x3e7f0e['intFreshdeskConfiguration']['getTags']({'id':_0x26fce3[_0x4dabc4('0x12e4')]['id']})[_0x4dabc4('0x1376')]['then'](function(_0x11cd91){var _0x5b5706=_0x4dabc4;_0x26fce3['selectedTags']=_0x11cd91[_0x5b5706('0x1b33')]?_0x86640f()[_0x5b5706('0x26c3')](_0x11cd91[_0x5b5706('0x1b33')],'id'):[];})[_0x4dabc4('0x1c1d')](function(_0x2c9372){var _0x427d1c=_0x4dabc4;_0x545ffb[_0x427d1c('0x2092')]({'title':_0x2c9372[_0x427d1c('0x209')]?'API:'+_0x2c9372[_0x427d1c('0x209')]+_0x427d1c('0xa99')+_0x2c9372['statusText']:_0x427d1c('0x25ce'),'msg':_0x2c9372['data']?JSON[_0x427d1c('0x25e')](_0x2c9372['data']):_0x2c9372[_0x427d1c('0x174f')]()});});}function _0x197da3(_0x4e57ad,_0x59e5d5){var _0x2deeff=_0x1795ff;_0x43a5cb[_0x2deeff('0x853')]({'controller':'CreateOrEditFreshdeskConfigurationDialogController','controllerAs':'vm','templateUrl':_0x1bc861,'parent':angular['element'](_0xcaccc[_0x2deeff('0x2452')]),'targetEvent':_0x4e57ad,'clickOutsideToClose':!![],'locals':{'freshdeskConfiguration':_0x59e5d5,'configurations':_0x26fce3['configurations'],'license':null,'setting':null,'crudPermissions':_0x26fce3['crudPermissions']}})['finally'](function(){var _0x5b058f=_0x2deeff;_0x26fce3[_0x5b058f('0x12b3')](0x0);});}function _0x3505b3(_0x251854,_0x46a9db){var _0x2e367b=_0x1795ff,_0x2d341e=_0x43a5cb[_0x2e367b('0xa33')]()[_0x2e367b('0x4b4')](_0x2e367b('0x12aa'))[_0x2e367b('0x276b')](_0x2e367b('0x622')+(_0x46a9db['name']||_0x2e367b('0x12e4'))+_0x2e367b('0x2135')+_0x2e367b('0x25e0'))[_0x2e367b('0x7a7')]('delete\x20freshdeskConfiguration')[_0x2e367b('0x1e6d')](_0x251854)['ok']('OK')[_0x2e367b('0x3b5')]('CANCEL');_0x43a5cb[_0x2e367b('0x853')](_0x2d341e)[_0x2e367b('0x21ad')](function(){var _0x15f5c2=_0x2e367b;_0x3e7f0e[_0x15f5c2('0x1a5')][_0x15f5c2('0x1164')]({'id':_0x46a9db['id']})[_0x15f5c2('0x1376')][_0x15f5c2('0x21ad')](function(){var _0x11d62c=_0x15f5c2;_0x86640f()[_0x11d62c('0x16a2')](_0x26fce3[_0x11d62c('0x1ca3')],{'id':_0x46a9db['id']}),_0x545ffb['success']({'title':_0x11d62c('0x1246'),'msg':_0x46a9db['name']?_0x46a9db['name']+_0x11d62c('0xb4a'):''});})[_0x15f5c2('0x1c1d')](function(_0x39ef20){var _0x2b0742=_0x15f5c2;_0x545ffb[_0x2b0742('0x2092')]({'title':_0x39ef20[_0x2b0742('0x209')]?_0x2b0742('0x22d')+_0x39ef20[_0x2b0742('0x209')]+_0x2b0742('0xa99')+_0x39ef20[_0x2b0742('0x1808')]:_0x2b0742('0x2336'),'msg':_0x39ef20[_0x2b0742('0x11c2')]?JSON['stringify'](_0x39ef20[_0x2b0742('0x11c2')]):_0x39ef20[_0x2b0742('0x174f')]()});})[_0x15f5c2('0x13e')](function(){_0x26fce3['getFreshdeskConfiguration'](0x0);});},function(){var _0xb8bf6e=_0x2e367b;console[_0xb8bf6e('0x6fb')](_0xb8bf6e('0x284b'));});}_0x26fce3[_0x1795ff('0x19ba')]=[],_0x26fce3[_0x1795ff('0x11de')]=_0x2b99fe,_0x26fce3[_0x1795ff('0x2203')]=_0x3b95be,_0x26fce3[_0x1795ff('0x858')]=_0x2d6519;function _0x2b99fe(_0x5416a1,_0x4aae61){var _0x22a164=_0x1795ff;_0x43a5cb[_0x22a164('0x853')]({'controller':'CreateOrEditFreshdeskAccountItemDialogController','controllerAs':'vm','templateUrl':_0x537bca,'parent':angular[_0x22a164('0x1676')](_0xcaccc[_0x22a164('0x2452')]),'targetEvent':_0x5416a1,'clickOutsideToClose':!![],'locals':{'type':_0x22a164('0x32a'),'item':_0x4aae61,'items':_0x26fce3[_0x22a164('0x1033')],'configuration':_0x26fce3[_0x22a164('0x12e4')],'account':_0x26fce3['freshdeskAccount'],'license':null,'setting':null,'crudPermissions':_0x26fce3[_0x22a164('0x5ed')]}});}function _0x17168f(_0x3b13e0){var _0x14f153=_0x1795ff;_0x3e7f0e[_0x14f153('0x2230')]['delete']({'id':_0x3b13e0['id']})[_0x14f153('0x1376')][_0x14f153('0x21ad')](function(){var _0x116c5d=_0x14f153;_0x86640f()[_0x116c5d('0x16a2')](_0x26fce3[_0x116c5d('0x1033')],{'id':_0x3b13e0['id']}),_0x545ffb[_0x116c5d('0xdb1')]({'title':_0x116c5d('0x17b8'),'msg':_0x116c5d('0x2cf')});})['catch'](function(_0x54181b){var _0xaaa4d0=_0x14f153;_0x545ffb[_0xaaa4d0('0x2092')]({'title':_0x54181b[_0xaaa4d0('0x209')]?'API:'+_0x54181b[_0xaaa4d0('0x209')]+'\x20-\x20'+_0x54181b[_0xaaa4d0('0x1808')]:_0xaaa4d0('0xede'),'msg':_0x54181b['data']?JSON[_0xaaa4d0('0x25e')](_0x54181b[_0xaaa4d0('0x11c2')]):_0x54181b[_0xaaa4d0('0x174f')]()});});}function _0x3b95be(_0x443504,_0x2448d9){var _0x19912e=_0x1795ff,_0x876955=_0x43a5cb[_0x19912e('0xa33')]()[_0x19912e('0x4b4')](_0x19912e('0xe3a'))['htmlContent']('Subject'+_0x19912e('0x25e0'))[_0x19912e('0x7a7')](_0x19912e('0x566'))[_0x19912e('0x1e6d')](_0x443504)['ok']('OK')[_0x19912e('0x3b5')](_0x19912e('0x284b'));_0x43a5cb[_0x19912e('0x853')](_0x876955)[_0x19912e('0x21ad')](function(){_0x17168f(_0x2448d9);},function(){var _0x2f3539=_0x19912e;console[_0x2f3539('0x6fb')](_0x2f3539('0x284b'));});}function _0x2d6519(_0x196116){var _0x1e1f96=_0x1795ff,_0x1458ad=_0x43a5cb[_0x1e1f96('0xa33')]()[_0x1e1f96('0x4b4')](_0x1e1f96('0x6e8'))[_0x1e1f96('0x276b')](''+_0x26fce3['selectedSubjects'][_0x1e1f96('0x577')]+'\x20selected'+_0x1e1f96('0x25e0'))[_0x1e1f96('0x7a7')]('delete\x20subjects')[_0x1e1f96('0x1e6d')](_0x196116)['ok']('OK')[_0x1e1f96('0x3b5')](_0x1e1f96('0x284b'));_0x43a5cb[_0x1e1f96('0x853')](_0x1458ad)[_0x1e1f96('0x21ad')](function(){var _0x1050a2=_0x1e1f96;_0x26fce3['selectedSubjects'][_0x1050a2('0x1a52')](function(_0x3cec7f){_0x17168f(_0x3cec7f);}),_0x26fce3['selectedSubjects']=[];});}_0x26fce3[_0x1795ff('0xbdf')]=[],_0x26fce3[_0x1795ff('0x1139')]=_0x2799d1,_0x26fce3[_0x1795ff('0x2378')]=_0x5a1bfd,_0x26fce3[_0x1795ff('0x1f80')]=_0x4613f7;function _0x2799d1(_0xee8780,_0x552e9e){var _0x1f7145=_0x1795ff;_0x43a5cb[_0x1f7145('0x853')]({'controller':_0x1f7145('0x202a'),'controllerAs':'vm','templateUrl':_0x537bca,'parent':angular['element'](_0xcaccc[_0x1f7145('0x2452')]),'targetEvent':_0xee8780,'clickOutsideToClose':!![],'locals':{'type':_0x1f7145('0x1137'),'item':_0x552e9e,'items':_0x26fce3[_0x1f7145('0x2161')],'configuration':_0x26fce3[_0x1f7145('0x12e4')],'account':_0x26fce3[_0x1f7145('0x1b55')],'license':null,'setting':null,'crudPermissions':_0x26fce3[_0x1f7145('0x5ed')]}});}function _0x225096(_0x5889d9){var _0x3ea99b=_0x1795ff;_0x3e7f0e[_0x3ea99b('0x2230')][_0x3ea99b('0x1164')]({'id':_0x5889d9['id']})[_0x3ea99b('0x1376')][_0x3ea99b('0x21ad')](function(){var _0x5224bd=_0x3ea99b;_0x86640f()[_0x5224bd('0x16a2')](_0x26fce3['descriptions'],{'id':_0x5889d9['id']}),_0x545ffb[_0x5224bd('0xdb1')]({'title':_0x5224bd('0x1af8'),'msg':_0x5224bd('0x1ec6')});})[_0x3ea99b('0x1c1d')](function(_0x4372a9){var _0x2a6caa=_0x3ea99b;_0x545ffb[_0x2a6caa('0x2092')]({'title':_0x4372a9[_0x2a6caa('0x209')]?_0x2a6caa('0x22d')+_0x4372a9[_0x2a6caa('0x209')]+'\x20-\x20'+_0x4372a9[_0x2a6caa('0x1808')]:_0x2a6caa('0xede'),'msg':_0x4372a9[_0x2a6caa('0x11c2')]?JSON['stringify'](_0x4372a9[_0x2a6caa('0x11c2')]):_0x4372a9[_0x2a6caa('0x174f')]()});});}function _0x5a1bfd(_0x1f1482,_0x34f3b9){var _0x695f24=_0x1795ff,_0x53b0e5=_0x43a5cb[_0x695f24('0xa33')]()['title'](_0x695f24('0x1d59'))[_0x695f24('0x276b')](_0x695f24('0x4e6')+_0x695f24('0x25e0'))[_0x695f24('0x7a7')]('delete\x20description')[_0x695f24('0x1e6d')](_0x1f1482)['ok']('OK')[_0x695f24('0x3b5')](_0x695f24('0x284b'));_0x43a5cb[_0x695f24('0x853')](_0x53b0e5)[_0x695f24('0x21ad')](function(){_0x225096(_0x34f3b9);},function(){var _0x2aeb82=_0x695f24;console['log'](_0x2aeb82('0x284b'));});}function _0x4613f7(_0x2039e0){var _0x154d02=_0x1795ff,_0x29802a=_0x43a5cb['confirm']()[_0x154d02('0x4b4')](_0x154d02('0x6e'))['htmlContent'](_0x154d02('0x622')+_0x26fce3[_0x154d02('0xbdf')][_0x154d02('0x577')]+'\x20selected'+_0x154d02('0x25e0'))[_0x154d02('0x7a7')](_0x154d02('0x211d'))[_0x154d02('0x1e6d')](_0x2039e0)['ok']('OK')['cancel'](_0x154d02('0x284b'));_0x43a5cb[_0x154d02('0x853')](_0x29802a)[_0x154d02('0x21ad')](function(){var _0x3b95ef=_0x154d02;_0x26fce3[_0x3b95ef('0xbdf')]['forEach'](function(_0x1d2ae8){_0x225096(_0x1d2ae8);}),_0x26fce3['selectedDescriptions']=[];});}_0x26fce3[_0x1795ff('0x21b0')]=[],_0x26fce3[_0x1795ff('0x97')]=_0x279cde,_0x26fce3[_0x1795ff('0x222e')]=_0x12f2b7,_0x26fce3[_0x1795ff('0xe52')]=_0x2bd1bc;function _0x279cde(_0x3893e5,_0x57d3ee){var _0x53f771=_0x1795ff;_0x43a5cb['show']({'controller':_0x53f771('0x202a'),'controllerAs':'vm','templateUrl':_0x537bca,'parent':angular['element'](_0xcaccc[_0x53f771('0x2452')]),'targetEvent':_0x3893e5,'clickOutsideToClose':!![],'locals':{'type':'field','item':_0x57d3ee,'items':_0x26fce3['fields'],'configuration':_0x26fce3['freshdeskConfiguration'],'account':_0x26fce3[_0x53f771('0x1b55')],'license':null,'setting':null,'crudPermissions':_0x26fce3[_0x53f771('0x5ed')]}});}function _0x1860a2(_0x1e8416){var _0x2225df=_0x1795ff;_0x3e7f0e[_0x2225df('0x2230')][_0x2225df('0x1164')]({'id':_0x1e8416['id']})[_0x2225df('0x1376')][_0x2225df('0x21ad')](function(){var _0x8f7788=_0x2225df;_0x86640f()[_0x8f7788('0x16a2')](_0x26fce3[_0x8f7788('0x181e')],{'id':_0x1e8416['id']}),_0x545ffb[_0x8f7788('0xdb1')]({'title':_0x8f7788('0x2321'),'msg':'Field\x20has\x20been\x20deleted!'});})[_0x2225df('0x1c1d')](function(_0x22d7bd){var _0x437a92=_0x2225df;_0x545ffb['error']({'title':_0x22d7bd['status']?_0x437a92('0x22d')+_0x22d7bd[_0x437a92('0x209')]+_0x437a92('0xa99')+_0x22d7bd[_0x437a92('0x1808')]:_0x437a92('0xede'),'msg':_0x22d7bd[_0x437a92('0x11c2')]?JSON[_0x437a92('0x25e')](_0x22d7bd['data']):_0x22d7bd[_0x437a92('0x174f')]()});});}function _0x12f2b7(_0x2d089b,_0x4be039){var _0x432b69=_0x1795ff,_0x2750ee=_0x43a5cb[_0x432b69('0xa33')]()[_0x432b69('0x4b4')](_0x432b69('0x2207'))['htmlContent'](_0x432b69('0x171')+_0x432b69('0x25e0'))[_0x432b69('0x7a7')]('delete\x20field')[_0x432b69('0x1e6d')](_0x2d089b)['ok']('OK')[_0x432b69('0x3b5')](_0x432b69('0x284b'));_0x43a5cb[_0x432b69('0x853')](_0x2750ee)[_0x432b69('0x21ad')](function(){_0x1860a2(_0x4be039);},function(){var _0x111124=_0x432b69;console[_0x111124('0x6fb')](_0x111124('0x284b'));});}function _0x2bd1bc(_0x1390af){var _0x3ebbf0=_0x1795ff,_0xd2b11f=_0x43a5cb[_0x3ebbf0('0xa33')]()[_0x3ebbf0('0x4b4')](_0x3ebbf0('0x655'))[_0x3ebbf0('0x276b')](_0x3ebbf0('0x622')+_0x26fce3[_0x3ebbf0('0x21b0')][_0x3ebbf0('0x577')]+_0x3ebbf0('0xd74')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x3ebbf0('0x85f'))[_0x3ebbf0('0x1e6d')](_0x1390af)['ok']('OK')[_0x3ebbf0('0x3b5')]('CANCEL');_0x43a5cb[_0x3ebbf0('0x853')](_0xd2b11f)[_0x3ebbf0('0x21ad')](function(){var _0x167eba=_0x3ebbf0;_0x26fce3[_0x167eba('0x21b0')][_0x167eba('0x1a52')](function(_0x7a7591){_0x1860a2(_0x7a7591);}),_0x26fce3[_0x167eba('0x21b0')]=[];});}}const _0x26adb7=_0x9b10c7;_0x3594ff[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q','$translate',_0x3877e3('0x1908'),_0x3877e3('0x1ca3'),'freshdeskConfiguration',_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting',_0x3877e3('0x5ed')];function _0x3594ff(_0x5b935f,_0x3bdfb6,_0x1b6db1,_0x37940d,_0x69331d,_0x1426df,_0x4a64a9,_0x422703,_0x61f62b,_0x520752,_0x513468,_0x464243,_0x2c23f8,_0x2ade07){var _0x2e20a6=_0x3877e3,_0xfdb49d=this;_0xfdb49d[_0x2e20a6('0x123f')]=_0x513468[_0x2e20a6('0x15ed')](),_0xfdb49d[_0x2e20a6('0x1a69')]=[],_0xfdb49d[_0x2e20a6('0x21e')]=_0x2c23f8,_0xfdb49d['license']=_0x464243,_0xfdb49d['crudPermissions']=_0x2ade07,_0xfdb49d[_0x2e20a6('0x126a')]={},_0xfdb49d[_0x2e20a6('0x1432')]=_0xfdb49d[_0x2e20a6('0x21e')]&&_0xfdb49d['setting'][_0x2e20a6('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xfdb49d[_0x2e20a6('0x4b4')]=_0x2e20a6('0x215a'),_0xfdb49d['freshdeskConfiguration']=angular[_0x2e20a6('0xd75')](_0x61f62b),_0xfdb49d[_0x2e20a6('0x1ca3')]=_0x422703,_0xfdb49d[_0x2e20a6('0x89a')]=![];!_0xfdb49d['freshdeskConfiguration']&&(_0xfdb49d['freshdeskConfiguration']={'channel':_0x2e20a6('0x8ed'),'type':_0x2e20a6('0x923')},_0xfdb49d['title']='INTEGRATIONS.NEW_FRESHDESKCONFIGURATION',_0xfdb49d['newFreshdeskConfiguration']=!![]);_0xfdb49d[_0x2e20a6('0x1ec0')]=_0x1b2a4a,_0xfdb49d['saveFreshdeskConfiguration']=_0x482f79,_0xfdb49d[_0x2e20a6('0x1a3')]=_0x401c26,_0xfdb49d['getDateFromString']=_0x4cc67a,_0xfdb49d['closeDialog']=_0x828167;function _0x1b2a4a(){var _0x34248e=_0x2e20a6;_0xfdb49d[_0x34248e('0x1a69')]=[],_0x520752[_0x34248e('0x64f')][_0x34248e('0x1388')]({'id':_0x3bdfb6[_0x34248e('0x171b')]['id']},_0xfdb49d[_0x34248e('0x12e4')])[_0x34248e('0x1376')][_0x34248e('0x21ad')](function(_0x56b9ae){var _0x23486d=_0x34248e;_0xfdb49d[_0x23486d('0x1ca3')][_0x23486d('0xd0c')](_0x56b9ae[_0x23486d('0x3bc')]()),_0x4a64a9[_0x23486d('0xdb1')]({'title':_0x23486d('0x1296'),'msg':_0xfdb49d[_0x23486d('0x12e4')][_0x23486d('0x19fe')]?_0xfdb49d[_0x23486d('0x12e4')][_0x23486d('0x19fe')]+_0x23486d('0x1694'):''}),_0x828167(_0x56b9ae);})[_0x34248e('0x1c1d')](function(_0x518225){var _0x174cba=_0x34248e;if(_0x518225[_0x174cba('0x11c2')]&&_0x518225['data'][_0x174cba('0x1a69')]&&_0x518225[_0x174cba('0x11c2')][_0x174cba('0x1a69')][_0x174cba('0x577')]){_0xfdb49d['errors']=_0x518225['data'][_0x174cba('0x1a69')]||[{'message':_0x518225[_0x174cba('0x174f')](),'type':_0x174cba('0x179f')}];for(var _0x1e38cc=0x0;_0x1e38cc<_0x518225[_0x174cba('0x11c2')][_0x174cba('0x1a69')][_0x174cba('0x577')];_0x1e38cc+=0x1){_0x4a64a9[_0x174cba('0x2092')]({'title':_0x518225[_0x174cba('0x11c2')]['errors'][_0x1e38cc][_0x174cba('0x7fa')],'msg':_0x518225[_0x174cba('0x11c2')][_0x174cba('0x1a69')][_0x1e38cc][_0x174cba('0x1224')]});}}else _0x4a64a9[_0x174cba('0x2092')]({'title':_0x518225[_0x174cba('0x209')]?_0x174cba('0x22d')+_0x518225[_0x174cba('0x209')]+_0x174cba('0xa99')+_0x518225[_0x174cba('0x1808')]:_0x174cba('0x179f'),'msg':_0x518225[_0x174cba('0x11c2')]?JSON[_0x174cba('0x25e')](_0x518225['data'][_0x174cba('0x1224')]):_0x518225[_0x174cba('0x174f')]()});});}function _0x482f79(){var _0x385c3e=_0x2e20a6;_0xfdb49d[_0x385c3e('0x1a69')]=[],_0x520752[_0x385c3e('0x1a5')][_0x385c3e('0x5ef')]({'id':_0xfdb49d[_0x385c3e('0x12e4')]['id']},_0xfdb49d[_0x385c3e('0x12e4')])[_0x385c3e('0x1376')][_0x385c3e('0x21ad')](function(_0x403e71){var _0x1212a5=_0x385c3e,_0x4cde5d=_0x86640f()[_0x1212a5('0x1d2e')](_0xfdb49d['configurations'],{'id':_0x403e71['id']});_0x4cde5d&&_0x86640f()[_0x1212a5('0xd0e')](_0x4cde5d,_0x86640f()[_0x1212a5('0xc50')](_0x403e71['toJSON'](),_0x86640f()[_0x1212a5('0x223b')](_0x4cde5d))),_0x4a64a9[_0x1212a5('0xdb1')]({'title':'FreshdeskConfiguration\x20properly\x20saved!','msg':_0xfdb49d[_0x1212a5('0x12e4')][_0x1212a5('0x19fe')]?_0xfdb49d[_0x1212a5('0x12e4')][_0x1212a5('0x19fe')]+'\x20has\x20been\x20saved!':''}),_0x828167(_0x403e71);})['catch'](function(_0x4c5e94){var _0x1a88b9=_0x385c3e;if(_0x4c5e94[_0x1a88b9('0x11c2')]&&_0x4c5e94['data'][_0x1a88b9('0x1a69')]&&_0x4c5e94[_0x1a88b9('0x11c2')]['errors'][_0x1a88b9('0x577')]){_0xfdb49d[_0x1a88b9('0x1a69')]=_0x4c5e94['data'][_0x1a88b9('0x1a69')]||[{'message':_0x4c5e94['toString'](),'type':_0x1a88b9('0x952')}];for(var _0x21bce9=0x0;_0x21bce9<_0x4c5e94['data']['errors']['length'];_0x21bce9++){_0x4a64a9['error']({'title':_0x4c5e94[_0x1a88b9('0x11c2')][_0x1a88b9('0x1a69')][_0x21bce9][_0x1a88b9('0x7fa')],'msg':_0x4c5e94['data'][_0x1a88b9('0x1a69')][_0x21bce9][_0x1a88b9('0x1224')]});}}else _0x4a64a9[_0x1a88b9('0x2092')]({'title':_0x4c5e94[_0x1a88b9('0x209')]?'API:'+_0x4c5e94[_0x1a88b9('0x209')]+_0x1a88b9('0xa99')+_0x4c5e94['statusText']:_0x1a88b9('0x952'),'msg':_0x4c5e94[_0x1a88b9('0x11c2')]?JSON[_0x1a88b9('0x25e')](_0x4c5e94['data'][_0x1a88b9('0x1224')]):_0x4c5e94[_0x1a88b9('0x174f')]()});});}function _0x401c26(_0x253f39){var _0x575f6c=_0x2e20a6;_0xfdb49d[_0x575f6c('0x1a69')]=[];var _0x8896dc=_0x37940d['confirm']()[_0x575f6c('0x4b4')](_0x575f6c('0x196b'))[_0x575f6c('0x13fb')](_0x575f6c('0x1cd3'))[_0x575f6c('0x7a7')](_0x575f6c('0x1f09'))['ok']('Delete')[_0x575f6c('0x3b5')]('Cancel')['targetEvent'](_0x253f39);_0x37940d[_0x575f6c('0x853')](_0x8896dc)[_0x575f6c('0x21ad')](function(){var _0x284f3f=_0x575f6c;_0x520752[_0x284f3f('0x1a5')]['delete']({'id':_0xfdb49d[_0x284f3f('0x12e4')]['id']})[_0x284f3f('0x1376')][_0x284f3f('0x21ad')](function(){var _0x27afbb=_0x284f3f;_0x86640f()[_0x27afbb('0x16a2')](_0xfdb49d[_0x27afbb('0x1ca3')],{'id':_0xfdb49d[_0x27afbb('0x12e4')]['id']}),_0x4a64a9[_0x27afbb('0xdb1')]({'title':_0x27afbb('0x289'),'msg':(_0xfdb49d['freshdeskConfiguration']['name']||'freshdeskConfiguration')+_0x27afbb('0xb4a')}),_0x828167(_0xfdb49d[_0x27afbb('0x12e4')]);})['catch'](function(_0x423e85){var _0x2cc68e=_0x284f3f;if(_0x423e85[_0x2cc68e('0x11c2')]&&_0x423e85['data'][_0x2cc68e('0x1a69')]&&_0x423e85[_0x2cc68e('0x11c2')][_0x2cc68e('0x1a69')][_0x2cc68e('0x577')]){_0xfdb49d[_0x2cc68e('0x1a69')]=_0x423e85[_0x2cc68e('0x11c2')][_0x2cc68e('0x1a69')]||[{'message':_0x423e85[_0x2cc68e('0x174f')](),'type':_0x2cc68e('0x4c5')}];for(var _0x3d3e9a=0x0;_0x3d3e9a<_0x423e85[_0x2cc68e('0x11c2')][_0x2cc68e('0x1a69')]['length'];_0x3d3e9a++){_0x4a64a9[_0x2cc68e('0x2092')]({'title':_0x423e85[_0x2cc68e('0x11c2')][_0x2cc68e('0x1a69')][_0x3d3e9a][_0x2cc68e('0x7fa')],'msg':_0x423e85[_0x2cc68e('0x11c2')][_0x2cc68e('0x1a69')][_0x3d3e9a]['message']});}}else _0x4a64a9['error']({'title':_0x423e85[_0x2cc68e('0x209')]?'API:'+_0x423e85[_0x2cc68e('0x209')]+_0x2cc68e('0xa99')+_0x423e85[_0x2cc68e('0x1808')]:_0x2cc68e('0x4c5'),'msg':_0x423e85[_0x2cc68e('0x11c2')]?JSON[_0x2cc68e('0x25e')](_0x423e85['data'][_0x2cc68e('0x1224')]):_0x423e85[_0x2cc68e('0x1224')]||_0x423e85[_0x2cc68e('0x174f')]()});});},function(){});}function _0x4cc67a(_0x342694){return _0x342694===null?undefined:new Date(_0x342694);}function _0x828167(_0xa023fa){var _0x65ac79=_0x2e20a6;_0x37940d[_0x65ac79('0x1c24')](_0xa023fa);}}const _0x2723dc=_0x3594ff;_0x775259[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$state','$location',_0x3877e3('0x1850'),_0x3877e3('0x1908'),_0x3877e3('0xb4f'),_0x3877e3('0x1b9a'),'item','account','type',_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x775259(_0x1a5114,_0x356c72,_0x1a0dc9,_0x573d81,_0x12375d,_0x12f0ff,_0x2c1125,_0x3e9b1b,_0x458bfe,_0x498170,_0x56db40,_0x4c1b9b,_0x58ba9b){var _0x2e992b=_0x3877e3,_0x3b8417=this;_0x3b8417[_0x2e992b('0x123f')]=_0x4c1b9b['getCurrentUser'](),_0x3b8417[_0x2e992b('0x1a69')]=[],_0x3b8417[_0x2e992b('0x4b4')]='INTEGRATIONS.EDIT_'+_0x86640f()[_0x2e992b('0x7c1')](_0x498170),_0x3b8417[_0x2e992b('0x19ca')]=angular[_0x2e992b('0xd75')](_0x3e9b1b),_0x3b8417[_0x2e992b('0x1b9a')]=_0x2c1125,_0x3b8417[_0x2e992b('0x7fa')]=_0x498170,_0x3b8417[_0x2e992b('0x5ed')]=_0x58ba9b,_0x3b8417[_0x2e992b('0xf8')]=![];!_0x3b8417['item']&&(_0x3b8417[_0x2e992b('0x19ca')]={'type':_0x2e992b('0x2638')},_0x3b8417[_0x2e992b('0x19ca')][_0x86640f()['capitalize'](_0x498170)+'Id']=_0x12f0ff['id'],_0x3b8417['title']=_0x2e992b('0x1d99')+_0x86640f()[_0x2e992b('0x7c1')](_0x498170),_0x3b8417[_0x2e992b('0xf8')]=!![]);_0x3b8417[_0x2e992b('0x1e89')]=_0x5af7f0,_0x3b8417[_0x2e992b('0x1c97')]=_0x240830,_0x3b8417['deleteItem']=_0xa64b77,_0x3b8417[_0x2e992b('0x23fe')]=_0x5598ce,_0x3b8417['closeDialog']=_0x1792c0,_0x56db40[_0x2e992b('0x25bb')]['get']({'nolimit':!![]})[_0x2e992b('0x1376')][_0x2e992b('0x21ad')](function(_0x38e4f4){var _0x314955=_0x2e992b;return _0x3b8417[_0x314955('0x142d')]=_0x38e4f4[_0x314955('0x1b33')]?_0x38e4f4[_0x314955('0x1b33')]:[],_0x56db40[_0x314955('0x9b6')][_0x314955('0x1219')]()['$promise'];})[_0x2e992b('0x21ad')](function(_0x4ec4b1){var _0xb1eb78=_0x2e992b;return _0x3b8417[_0xb1eb78('0x22eb')]=_0x86640f()[_0xb1eb78('0x5a8')](_0x86640f()[_0xb1eb78('0x223b')](_0x4ec4b1),[_0xb1eb78('0x1376'),_0xb1eb78('0x9f8'),_0xb1eb78('0x23ae'),_0xb1eb78('0x15af'),_0xb1eb78('0x1bdd')]),_0x3b8417['voiceAgentReportColumns'][_0xb1eb78('0x206c')](_0xb1eb78('0x250a')),_0x56db40['voiceDialReport'][_0xb1eb78('0x1219')]()['$promise'];})[_0x2e992b('0x21ad')](function(_0x1ddb40){var _0x193db0=_0x2e992b;_0x3b8417['voiceDialReportColumns']=_0x86640f()[_0x193db0('0x5a8')](_0x86640f()[_0x193db0('0x223b')](_0x1ddb40),[_0x193db0('0x1376'),'$resolved','createdAt',_0x193db0('0x15af'),_0x193db0('0x1bdd')]),_0x3b8417[_0x193db0('0x1491')][_0x193db0('0x206c')](_0x193db0('0x250a'));})[_0x2e992b('0x1c1d')](function(_0x57bdea){var _0x3c6690=_0x2e992b;_0x12375d[_0x3c6690('0x2092')]({'title':_0x57bdea[_0x3c6690('0x209')]?'API:'+_0x57bdea[_0x3c6690('0x209')]+_0x3c6690('0xa99')+_0x57bdea[_0x3c6690('0x1808')]:'SYSTEM:GETVARIABLES','msg':_0x57bdea[_0x3c6690('0x11c2')]?JSON['stringify'](_0x57bdea[_0x3c6690('0x11c2')]):_0x57bdea[_0x3c6690('0x174f')]()});}),_0x56db40[_0x2e992b('0x64f')][_0x2e992b('0x929')]({'id':_0x458bfe['id'],'ticketType':_0x12f0ff[_0x2e992b('0x257e')]?_0x12f0ff[_0x2e992b('0x257e')]:undefined})[_0x2e992b('0x1376')][_0x2e992b('0x21ad')](function(_0x18dde1){var _0x36a6d9=_0x2e992b;_0x3b8417['accountConnected']=!![],_0x3b8417[_0x36a6d9('0x181e')]=_0x18dde1[_0x36a6d9('0x1b33')]?_0x18dde1[_0x36a6d9('0x1b33')]:[],_0x3b8417[_0x36a6d9('0x19ca')][_0x36a6d9('0x1830')]&&(_0x3b8417['customField']=_0x86640f()[_0x36a6d9('0x1d2e')](_0x3b8417[_0x36a6d9('0x181e')],{'id':_0x3b8417['item'][_0x36a6d9('0x1830')]}));})['catch'](function(_0x1eabcb){var _0x2b96af=_0x2e992b;_0x3b8417[_0x2b96af('0x2097')]=![],console[_0x2b96af('0x2092')](_0x1eabcb);});function _0x5af7f0(){var _0x249049=_0x2e992b;_0x3b8417[_0x249049('0x1a69')]=[],_0x3b8417[_0x249049('0x1fa7')]&&(_0x3b8417['item'][_0x249049('0x1830')]=_0x3b8417[_0x249049('0x1fa7')]['id'],_0x3b8417[_0x249049('0x19ca')]['nameField']=_0x3b8417[_0x249049('0x1fa7')][_0x249049('0x19fe')],_0x3b8417[_0x249049('0x19ca')]['customField']=_0x3b8417[_0x249049('0x1fa7')]['custom']),_0x56db40[_0x249049('0x2230')]['save'](_0x3b8417[_0x249049('0x19ca')])[_0x249049('0x1376')][_0x249049('0x21ad')](function(_0x308fa0){var _0x194d9f=_0x249049;_0x3b8417[_0x194d9f('0x1b9a')][_0x194d9f('0xd0c')](_0x308fa0),_0x12375d['success']({'title':_0x86640f()[_0x194d9f('0x1b7e')](_0x498170)+_0x194d9f('0x1de2'),'msg':_0x86640f()[_0x194d9f('0x1b7e')](_0x498170)+_0x194d9f('0x1694')}),_0x1792c0();})[_0x249049('0x1c1d')](function(_0x1bba5d){var _0x563d50=_0x249049;console['error'](_0x1bba5d),_0x3b8417[_0x563d50('0x1a69')]=_0x1bba5d['data'][_0x563d50('0x1a69')]||[{'message':_0x1bba5d[_0x563d50('0x174f')](),'type':_0x563d50('0x1a23')}];});}function _0x240830(){var _0x5b227a=_0x2e992b;_0x3b8417[_0x5b227a('0x1a69')]=[],_0x3b8417['customField']&&(_0x3b8417[_0x5b227a('0x19ca')][_0x5b227a('0x1830')]=_0x3b8417[_0x5b227a('0x1fa7')]['id'],_0x3b8417[_0x5b227a('0x19ca')][_0x5b227a('0xb45')]=_0x3b8417[_0x5b227a('0x1fa7')][_0x5b227a('0x19fe')],_0x3b8417['item'][_0x5b227a('0x1fa7')]=_0x3b8417['customField'][_0x5b227a('0xf50')]),_0x56db40[_0x5b227a('0x2230')][_0x5b227a('0x5ef')]({'id':_0x3b8417[_0x5b227a('0x19ca')]['id']},_0x3b8417['item'])[_0x5b227a('0x1376')][_0x5b227a('0x21ad')](function(_0x4d4313){var _0xe93ce0=_0x5b227a,_0x1e31fd=_0x86640f()['find'](_0x3b8417['items'],{'id':_0x4d4313['id']});_0x1e31fd&&_0x86640f()[_0xe93ce0('0xd0e')](_0x1e31fd,_0x4d4313),_0x12375d[_0xe93ce0('0xdb1')]({'title':_0x86640f()['capitalize'](_0x498170)+_0xe93ce0('0x2a3'),'msg':_0x86640f()[_0xe93ce0('0x1b7e')](_0x498170)+'\x20has\x20been\x20saved!'}),_0x1792c0();})[_0x5b227a('0x1c1d')](function(_0x5023e5){var _0xb19e00=_0x5b227a;console[_0xb19e00('0x2092')](_0x5023e5),_0x3b8417[_0xb19e00('0x1a69')]=_0x5023e5[_0xb19e00('0x11c2')]['errors']||[{'message':_0x5023e5[_0xb19e00('0x174f')](),'type':_0xb19e00('0x1488')}];});}function _0xa64b77(_0x23fd0c){var _0xbf4a60=_0x2e992b;_0x3b8417['errors']=[];var _0x2e8fc8=_0x573d81[_0xbf4a60('0xa33')]()[_0xbf4a60('0x4b4')](_0xbf4a60('0x196b'))[_0xbf4a60('0x13fb')](_0xbf4a60('0x15f2')+_0x498170+_0xbf4a60('0x25e0'))[_0xbf4a60('0x7a7')](_0xbf4a60('0x2e4')+_0x86640f()[_0xbf4a60('0x1b7e')](_0x498170))['ok']('Delete')[_0xbf4a60('0x3b5')](_0xbf4a60('0x1f40'))[_0xbf4a60('0x1e6d')](_0x23fd0c);_0x573d81[_0xbf4a60('0x853')](_0x2e8fc8)[_0xbf4a60('0x21ad')](function(){var _0x7c68c0=_0xbf4a60;_0x56db40['intFreshdeskField'][_0x7c68c0('0x1164')]({'id':_0x3b8417[_0x7c68c0('0x19ca')]['id']})[_0x7c68c0('0x1376')][_0x7c68c0('0x21ad')](function(){var _0x5cdb27=_0x7c68c0;_0x86640f()[_0x5cdb27('0x16a2')](_0x3b8417['items'],{'id':_0x3b8417[_0x5cdb27('0x19ca')]['id']}),_0x12375d[_0x5cdb27('0xdb1')]({'title':_0x86640f()['capitalize'](_0x498170)+_0x5cdb27('0x11b6'),'msg':_0x86640f()[_0x5cdb27('0x1b7e')](_0x498170)+_0x5cdb27('0xb4a')}),_0x1792c0();})['catch'](function(_0x24ecd5){var _0x21b1e7=_0x7c68c0;console[_0x21b1e7('0x2092')](_0x24ecd5),_0x3b8417[_0x21b1e7('0x1a69')]=_0x24ecd5[_0x21b1e7('0x11c2')][_0x21b1e7('0x1a69')]||[{'message':_0x24ecd5[_0x21b1e7('0x174f')](),'type':_0x21b1e7('0x2175')}];});},function(){});}function _0x5598ce(){var _0x31ab95=_0x2e992b;return _0x3b8417[_0x31ab95('0x19ca')]['variableName']!==undefined?_0x3b8417[_0x31ab95('0x19ca')]['variableName']:'Please\x20select\x20a\x20variable';}function _0x1792c0(){var _0x20c68a=_0x2e992b;_0x573d81[_0x20c68a('0x1c24')]();}}const _0x3e8e90=_0x775259;_0x404960[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),'$location',_0x3877e3('0x1850'),'$document',_0x3877e3('0x13c1'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0xccd'),'toasty',_0x3877e3('0x15bc'),_0x3877e3('0x1b55'),_0x3877e3('0xab4')];function _0x404960(_0x3f196e,_0x293edb,_0xe93e6b,_0x29f558,_0xa08470,_0x19f112,_0x168d13,_0x3f7d47,_0x19aac3,_0x27b77e,_0x219604,_0x2c4ff1){var _0xbab99=_0x3877e3,_0x5e058d=this;_0x5e058d['currentUser']=_0x27b77e[_0xbab99('0x15ed')](),_0x5e058d[_0xbab99('0x2ff')]=_0x19f112,_0x5e058d[_0xbab99('0x21e')]=_0x168d13,_0x5e058d[_0xbab99('0x1432')]=_0x5e058d[_0xbab99('0x21e')][_0xbab99('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5e058d['location']=_0x293edb[_0xbab99('0x1162')]()+_0xbab99('0x22a9')+_0x293edb[_0xbab99('0x1c01')](),_0x5e058d[_0xbab99('0x1b55')]=_0x219604||_0x3f196e[_0xbab99('0x171b')][_0xbab99('0x1b55')]||{},_0x5e058d[_0xbab99('0xab4')]=_0x2c4ff1&&_0x2c4ff1[_0xbab99('0x205f')]==0x1?_0x2c4ff1[_0xbab99('0x1b33')][0x0]:null,_0x5e058d[_0xbab99('0x5ed')]=_0x27b77e[_0xbab99('0x1778')](_0x5e058d[_0xbab99('0xab4')]?_0x5e058d['userProfileSection'][_0xbab99('0x5ed')]:null),_0x5e058d['hasModulePermissions']={},_0x5e058d[_0xbab99('0x302')]=_0x3f196e['params'][_0xbab99('0x12e1')]||0x0,_0x5e058d[_0xbab99('0x95b')]=_0x19aac3['info'],_0x5e058d[_0xbab99('0x3a0')]=_0x3ecad2,_0x5e058d['saveFreshdeskAccount']=_0x520908;function _0x3ecad2(){var _0x3d993c=_0xbab99;_0x3f196e['go'](_0x3d993c('0x27d5'),{},{'reload':'app.integrations.freshdeskAccounts'});}function _0x520908(){var _0x135009=_0xbab99;_0x3f7d47[_0x135009('0x64f')][_0x135009('0x5ef')]({'id':_0x5e058d[_0x135009('0x1b55')]['id']},_0x5e058d[_0x135009('0x1b55')])[_0x135009('0x1376')][_0x135009('0x21ad')](function(){var _0x25a3df=_0x135009;_0x19aac3[_0x25a3df('0xdb1')]({'title':_0x25a3df('0x2c7'),'msg':_0x5e058d[_0x25a3df('0x1b55')]['name']?_0x5e058d[_0x25a3df('0x1b55')][_0x25a3df('0x19fe')]+_0x25a3df('0xa8d'):''});})[_0x135009('0x1c1d')](function(_0x134858){var _0x4abf59=_0x135009;_0x19aac3[_0x4abf59('0x2092')]({'title':_0x134858['status']?_0x4abf59('0x22d')+_0x134858[_0x4abf59('0x209')]+_0x4abf59('0xa99')+_0x134858[_0x4abf59('0x1808')]:_0x4abf59('0x14cb'),'msg':_0x134858[_0x4abf59('0x11c2')]?JSON[_0x4abf59('0x25e')](_0x134858[_0x4abf59('0x11c2')]):_0x134858[_0x4abf59('0x174f')]()});});}}const _0x42be5a=_0x404960,_0x11f49b=_0x398308['p']+'src/js/modules/main/apps/integrations/views/freshdeskAccounts/create/dialog.html/dialog-[chunkhash].html';_0x16df68['$inject']=[_0x3877e3('0x95a'),'$window',_0x3877e3('0xa9f'),_0x3877e3('0x2828'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),'$translate',_0x3877e3('0x173'),_0x3877e3('0x758'),_0x3877e3('0xab4'),'api','msUtils','toasty',_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x16df68(_0x1b7d91,_0x123a64,_0xd42486,_0xa908d8,_0x274258,_0x31af32,_0xf9415e,_0x49fb18,_0x83661d,_0x28af34,_0x3dec5c,_0x5be07c,_0x439da5,_0x11f779,_0x55ea7a,_0x4a7b2e,_0x23398c){var _0x57356d=_0x3877e3,_0x54c6b0=this;_0x54c6b0[_0x57356d('0x2ff')]=_0x4a7b2e,_0x54c6b0['setting']=_0x23398c,_0x54c6b0[_0x57356d('0x123f')]=_0x55ea7a['getCurrentUser'](),_0x54c6b0[_0x57356d('0x173')]=_0x83661d||{'count':0x0,'rows':[]},_0x54c6b0['userProfile']=_0x28af34,_0x54c6b0[_0x57356d('0xab4')]=_0x3dec5c&&_0x3dec5c['count']==0x1?_0x3dec5c[_0x57356d('0x1b33')][0x0]:null,_0x54c6b0['crudPermissions']=_0x55ea7a[_0x57356d('0x1778')](_0x54c6b0[_0x57356d('0xab4')]?_0x54c6b0[_0x57356d('0xab4')][_0x57356d('0x5ed')]:null),_0x54c6b0[_0x57356d('0x1897')]=_0x57356d('0x173'),_0x54c6b0['listOrder']='',_0x54c6b0['listOrderAsc']=null,_0x54c6b0[_0x57356d('0x27e8')]=[],_0x54c6b0[_0x57356d('0x77')]={'fields':_0x57356d('0xe95'),'limit':0xa,'page':0x1},_0x54c6b0['editstate']=_0x15451c,_0x54c6b0[_0x57356d('0x155c')]=_0x4f36de,_0x54c6b0[_0x57356d('0x2593')]=_0x29a5ad,_0x54c6b0[_0x57356d('0xdb1')]=_0x310ef2,_0x54c6b0[_0x57356d('0x1456')]=_0x347419,_0x54c6b0['createOrEditFreshdeskAccount']=_0x52e4ee,_0x54c6b0[_0x57356d('0x93')]=_0x4dc3a5,_0x54c6b0[_0x57356d('0x16a1')]=_0x105d60,_0x54c6b0[_0x57356d('0x276d')]=_0x5cf497,_0x54c6b0[_0x57356d('0x1640')]=_0x265ad2,_0x54c6b0['selectAllFreshdeskAccounts']=_0x350e76;function _0x15451c(_0xeae81e){var _0x2d9728=_0x57356d;_0xd42486['go'](_0x2d9728('0xd4'),{'id':_0xeae81e['id'],'freshdeskAccount':_0xeae81e,'crudPermissions':_0x54c6b0[_0x2d9728('0x5ed')]});}function _0x4f36de(_0x5a09a8){var _0x269c32=_0x57356d;return _0x5be07c[_0x269c32('0x64f')]['getFields']({'id':_0x5a09a8['id'],'test':!![]})[_0x269c32('0x1376')][_0x269c32('0x21ad')](function(){var _0xccf812=_0x269c32;_0x11f779[_0xccf812('0xdb1')]({'title':_0xccf812('0xadd'),'msg':_0xccf812('0x1c80')});})[_0x269c32('0x1c1d')](function(_0xa41069){var _0x2ca6f7=_0x269c32;_0x11f779['error']({'title':_0x2ca6f7('0xadd'),'msg':_0xa41069[_0x2ca6f7('0x11c2')]?_0xa41069[_0x2ca6f7('0x11c2')][_0x2ca6f7('0x1224')]?_0xa41069[_0x2ca6f7('0x11c2')][_0x2ca6f7('0x1224')]:JSON[_0x2ca6f7('0x25e')](_0xa41069[_0x2ca6f7('0x11c2')]):_0xa41069['toString']()});});}function _0x29a5ad(_0x392406,_0x408c6d){var _0x5815d0=_0x57356d,_0x41e28a=_0x274258[_0x5815d0('0xa33')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x86640f()['startCase'](_0x5815d0('0x1b55'))+'?')[_0x5815d0('0x276b')](_0x5815d0('0x622')+(_0x392406[_0x5815d0('0x19fe')]||_0x5815d0('0x1b55'))+_0x5815d0('0x2135')+_0x5815d0('0x25e0'))['ariaLabel']('delete\x20freshdeskAccount')['targetEvent'](_0x408c6d)['ok']('OK')[_0x5815d0('0x3b5')](_0x5815d0('0x284b'));_0x274258[_0x5815d0('0x853')](_0x41e28a)['then'](function(){_0x4dc3a5(_0x392406);},function(){var _0x39616a=_0x5815d0;console['log'](_0x39616a('0x284b'));});}var _0x232544=!![],_0x355a8a=0x1;_0x1b7d91[_0x57356d('0x10e8')](_0x57356d('0x1948'),function(_0xd82c49,_0x2dfe9b){var _0x1db2e2=_0x57356d;_0x232544?_0xf9415e(function(){_0x232544=![];}):(!_0x2dfe9b&&(_0x355a8a=_0x54c6b0['query'][_0x1db2e2('0x2376')]),_0xd82c49!==_0x2dfe9b&&(_0x54c6b0[_0x1db2e2('0x77')][_0x1db2e2('0x2376')]=0x1),!_0xd82c49&&(_0x54c6b0[_0x1db2e2('0x77')][_0x1db2e2('0x2376')]=_0x355a8a),_0x54c6b0[_0x1db2e2('0x1456')]());});function _0x310ef2(_0x591e5c){var _0x3f86af=_0x57356d;_0x54c6b0[_0x3f86af('0x173')]=_0x591e5c||{'count':0x0,'rows':[]};}function _0x347419(){var _0x228992=_0x57356d;_0x54c6b0['query'][_0x228992('0x15a5')]=(_0x54c6b0['query'][_0x228992('0x2376')]-0x1)*_0x54c6b0['query']['limit'],_0x55ea7a[_0x228992('0x21de')](_0x228992('0x1bd8'))?_0x54c6b0[_0x228992('0x71b')]=_0x5be07c[_0x228992('0x64f')][_0x228992('0x595')](_0x54c6b0[_0x228992('0x77')],_0x310ef2)[_0x228992('0x1376')]:(_0x54c6b0[_0x228992('0x77')]['id']=_0x54c6b0['userProfile']['id'],_0x54c6b0['query'][_0x228992('0x26ad')]=_0x228992('0x523'),_0x54c6b0[_0x228992('0x71b')]=_0x5be07c['userProfile'][_0x228992('0x321')](_0x54c6b0[_0x228992('0x77')],_0x310ef2)[_0x228992('0x1376')]);}function _0x52e4ee(_0x59349a,_0x4f8edb){var _0xb95ce1=_0x57356d;_0x274258[_0xb95ce1('0x853')]({'controller':_0xb95ce1('0x6b2'),'controllerAs':'vm','templateUrl':_0x11f49b,'parent':angular[_0xb95ce1('0x1676')](_0x31af32['body']),'targetEvent':_0x59349a,'clickOutsideToClose':!![],'locals':{'freshdeskAccount':_0x4f8edb,'freshdeskAccounts':_0x54c6b0[_0xb95ce1('0x173')][_0xb95ce1('0x1b33')],'license':_0x54c6b0['license'],'setting':_0x54c6b0[_0xb95ce1('0x21e')],'crudPermissions':_0x54c6b0[_0xb95ce1('0x5ed')]}});}function _0x4dc3a5(_0x41af61){var _0x1390d1=_0x57356d;_0x5be07c['intFreshdeskAccount'][_0x1390d1('0x1164')]({'id':_0x41af61['id']})[_0x1390d1('0x1376')][_0x1390d1('0x21ad')](function(){var _0x25487b=_0x1390d1;_0x86640f()[_0x25487b('0x16a2')](_0x54c6b0['freshdeskAccounts'][_0x25487b('0x1b33')],{'id':_0x41af61['id']}),_0x54c6b0[_0x25487b('0x173')][_0x25487b('0x205f')]-=0x1,!_0x54c6b0[_0x25487b('0x173')][_0x25487b('0x1b33')][_0x25487b('0x577')]&&_0x54c6b0[_0x25487b('0x1456')](),_0x11f779['success']({'title':_0x86640f()[_0x25487b('0x2159')](_0x25487b('0x1ed'))+'\x20deleted!','msg':_0x41af61[_0x25487b('0x19fe')]?_0x41af61['name']+_0x25487b('0xb4a'):''});})['catch'](function(_0x5a465e){var _0x289ba0=_0x1390d1;if(_0x5a465e[_0x289ba0('0x11c2')]&&_0x5a465e[_0x289ba0('0x11c2')]['errors']&&_0x5a465e[_0x289ba0('0x11c2')]['errors'][_0x289ba0('0x577')]){_0x54c6b0['errors']=_0x5a465e[_0x289ba0('0x11c2')][_0x289ba0('0x1a69')]||[{'message':_0x5a465e[_0x289ba0('0x174f')](),'type':_0x289ba0('0x212b')}];for(var _0x28518c=0x0;_0x28518c<_0x5a465e[_0x289ba0('0x11c2')][_0x289ba0('0x1a69')][_0x289ba0('0x577')];_0x28518c++){_0x11f779[_0x289ba0('0x2092')]({'title':_0x5a465e[_0x289ba0('0x11c2')]['errors'][_0x28518c][_0x289ba0('0x7fa')],'msg':_0x5a465e[_0x289ba0('0x11c2')][_0x289ba0('0x1a69')][_0x28518c][_0x289ba0('0x1224')]});}}else _0x11f779[_0x289ba0('0x2092')]({'title':_0x5a465e[_0x289ba0('0x209')]?_0x289ba0('0x22d')+_0x5a465e['status']+_0x289ba0('0xa99')+_0x5a465e['statusText']:'SYSTEM:DELETEintFreshdeskAccount','msg':_0x5a465e[_0x289ba0('0x11c2')]?JSON[_0x289ba0('0x25e')](_0x5a465e[_0x289ba0('0x11c2')][_0x289ba0('0x1224')]):_0x5a465e[_0x289ba0('0x1224')]||_0x5a465e['toString']()});});}function _0x105d60(){var _0x54032b=_0x57356d,_0x3e1e04=angular[_0x54032b('0xd75')](_0x54c6b0[_0x54032b('0x27e8')]);return _0x54c6b0[_0x54032b('0x27e8')]=[],_0x3e1e04;}function _0x5cf497(_0x47c110){var _0x4218b8=_0x57356d,_0x4cddbc=_0x274258[_0x4218b8('0xa33')]()[_0x4218b8('0x4b4')](_0x4218b8('0xb8e'))['htmlContent'](_0x4218b8('0x622')+_0x54c6b0[_0x4218b8('0x27e8')]['length']+_0x4218b8('0xd74')+_0x4218b8('0x25e0'))['ariaLabel']('delete\x20FreshdeskAccounts')[_0x4218b8('0x1e6d')](_0x47c110)['ok']('OK')[_0x4218b8('0x3b5')](_0x4218b8('0x284b'));_0x274258[_0x4218b8('0x853')](_0x4cddbc)[_0x4218b8('0x21ad')](function(){var _0x572c6a=_0x4218b8;_0x54c6b0[_0x572c6a('0x27e8')][_0x572c6a('0x1a52')](function(_0x2c4b6d){_0x4dc3a5(_0x2c4b6d);}),_0x54c6b0['selectedFreshdeskAccounts']=[];});}function _0x265ad2(){var _0x56f350=_0x57356d;_0x54c6b0[_0x56f350('0x27e8')]=[];}function _0x350e76(){var _0x2fde8a=_0x57356d;_0x54c6b0[_0x2fde8a('0x27e8')]=_0x54c6b0[_0x2fde8a('0x173')][_0x2fde8a('0x1b33')];}}const _0x566824=_0x16df68;_0xbd0ec9['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q','$translate','toasty',_0x3877e3('0x3d2'),_0x3877e3('0xe97'),_0x3877e3('0xccd'),'Auth','license',_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0xbd0ec9(_0x2e123f,_0x5cead3,_0x14ec90,_0x11b2a9,_0x5879c7,_0x15eb1c,_0x51df33,_0x492741,_0x1e90d6,_0x13c917,_0x1fe9d1,_0x35435c,_0x20048f,_0x24335d){var _0x5c23db=_0x3877e3,_0x288dbb=this;_0x288dbb[_0x5c23db('0x123f')]=_0x1fe9d1[_0x5c23db('0x15ed')](),_0x288dbb[_0x5c23db('0x1a69')]=[],_0x288dbb['setting']=_0x20048f,_0x288dbb[_0x5c23db('0x2ff')]=_0x35435c,_0x288dbb[_0x5c23db('0x5ed')]=_0x24335d,_0x288dbb[_0x5c23db('0x126a')]={},_0x288dbb[_0x5c23db('0x1432')]=_0x288dbb[_0x5c23db('0x21e')]&&_0x288dbb[_0x5c23db('0x21e')][_0x5c23db('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x288dbb[_0x5c23db('0x4b4')]=_0x5c23db('0x8ce'),_0x288dbb[_0x5c23db('0xe97')]=angular[_0x5c23db('0xd75')](_0x1e90d6),_0x288dbb[_0x5c23db('0x3d2')]=_0x492741,_0x288dbb['newFreshsalesAccount']=![];!_0x288dbb[_0x5c23db('0xe97')]&&(_0x288dbb[_0x5c23db('0xe97')]={'serverUrl':_0x14ec90['protocol']()+_0x5c23db('0x22a9')+_0x14ec90[_0x5c23db('0x1c01')]()+(_0x14ec90[_0x5c23db('0x24fe')]()?':'+_0x14ec90[_0x5c23db('0x24fe')]():'')},_0x288dbb['title']=_0x5c23db('0x237'),_0x288dbb['newFreshsalesAccount']=!![]);_0x288dbb[_0x5c23db('0x2179')]=_0x194489,_0x288dbb[_0x5c23db('0x2640')]=_0x7080ef,_0x288dbb[_0x5c23db('0x201c')]=_0x47b370,_0x288dbb[_0x5c23db('0x279')]=_0xae02fa,_0x288dbb[_0x5c23db('0x167')]=_0x440130;function _0x194489(){var _0xc9550e=_0x5c23db;_0x288dbb['errors']=[],_0x13c917[_0xc9550e('0xe7')][_0xc9550e('0x186f')](_0x288dbb[_0xc9550e('0xe97')])[_0xc9550e('0x1376')][_0xc9550e('0x21ad')](function(_0x2bcf83){var _0xb6eb06=_0xc9550e;_0x288dbb[_0xb6eb06('0x3d2')][_0xb6eb06('0xd0c')](_0x2bcf83[_0xb6eb06('0x3bc')]()),_0x51df33[_0xb6eb06('0xdb1')]({'title':_0xb6eb06('0x1265'),'msg':_0x288dbb['freshsalesAccount'][_0xb6eb06('0x19fe')]?_0x288dbb[_0xb6eb06('0xe97')]['name']+_0xb6eb06('0x1694'):''}),_0x440130(_0x2bcf83);})[_0xc9550e('0x1c1d')](function(_0x26c0fa){var _0x518a1e=_0xc9550e;if(_0x26c0fa[_0x518a1e('0x11c2')]&&_0x26c0fa[_0x518a1e('0x11c2')]['errors']&&_0x26c0fa[_0x518a1e('0x11c2')]['errors'][_0x518a1e('0x577')]){_0x288dbb[_0x518a1e('0x1a69')]=_0x26c0fa[_0x518a1e('0x11c2')][_0x518a1e('0x1a69')]||[{'message':_0x26c0fa['toString'](),'type':_0x518a1e('0x2072')}];for(var _0x50d6a1=0x0;_0x50d6a1<_0x26c0fa[_0x518a1e('0x11c2')][_0x518a1e('0x1a69')][_0x518a1e('0x577')];_0x50d6a1+=0x1){_0x51df33['error']({'title':_0x26c0fa[_0x518a1e('0x11c2')][_0x518a1e('0x1a69')][_0x50d6a1][_0x518a1e('0x7fa')],'msg':_0x26c0fa[_0x518a1e('0x11c2')][_0x518a1e('0x1a69')][_0x50d6a1][_0x518a1e('0x1224')]});}}else _0x51df33[_0x518a1e('0x2092')]({'title':_0x26c0fa['status']?_0x518a1e('0x22d')+_0x26c0fa[_0x518a1e('0x209')]+'\x20-\x20'+_0x26c0fa[_0x518a1e('0x1808')]:_0x518a1e('0x2072'),'msg':_0x26c0fa['data']?JSON['stringify'](_0x26c0fa[_0x518a1e('0x11c2')]['message']):_0x26c0fa[_0x518a1e('0x174f')]()});});}function _0x7080ef(){var _0x2679fa=_0x5c23db;_0x288dbb[_0x2679fa('0x1a69')]=[],_0x13c917[_0x2679fa('0xe7')]['update']({'id':_0x288dbb['freshsalesAccount']['id']},_0x288dbb['freshsalesAccount'])[_0x2679fa('0x1376')][_0x2679fa('0x21ad')](function(_0x33f439){var _0x551487=_0x2679fa,_0x1c2bab=_0x86640f()['find'](_0x288dbb[_0x551487('0x3d2')],{'id':_0x33f439['id']});_0x1c2bab&&_0x86640f()['merge'](_0x1c2bab,_0x86640f()['pick'](_0x33f439[_0x551487('0x3bc')](),_0x86640f()[_0x551487('0x223b')](_0x1c2bab))),_0x51df33[_0x551487('0xdb1')]({'title':_0x551487('0x5b1'),'msg':_0x288dbb[_0x551487('0xe97')][_0x551487('0x19fe')]?_0x288dbb[_0x551487('0xe97')]['name']+_0x551487('0x2249'):''}),_0x440130(_0x33f439);})['catch'](function(_0x567afb){var _0x1e507d=_0x2679fa;if(_0x567afb['data']&&_0x567afb[_0x1e507d('0x11c2')]['errors']&&_0x567afb[_0x1e507d('0x11c2')]['errors']['length']){_0x288dbb['errors']=_0x567afb['data'][_0x1e507d('0x1a69')]||[{'message':_0x567afb[_0x1e507d('0x174f')](),'type':_0x1e507d('0x85d')}];for(var _0x237ce5=0x0;_0x237ce5<_0x567afb[_0x1e507d('0x11c2')][_0x1e507d('0x1a69')]['length'];_0x237ce5++){_0x51df33[_0x1e507d('0x2092')]({'title':_0x567afb[_0x1e507d('0x11c2')]['errors'][_0x237ce5][_0x1e507d('0x7fa')],'msg':_0x567afb[_0x1e507d('0x11c2')][_0x1e507d('0x1a69')][_0x237ce5][_0x1e507d('0x1224')]});}}else _0x51df33[_0x1e507d('0x2092')]({'title':_0x567afb['status']?'API:'+_0x567afb[_0x1e507d('0x209')]+_0x1e507d('0xa99')+_0x567afb[_0x1e507d('0x1808')]:'api.intFreshsalesAccount.update','msg':_0x567afb[_0x1e507d('0x11c2')]?JSON[_0x1e507d('0x25e')](_0x567afb[_0x1e507d('0x11c2')][_0x1e507d('0x1224')]):_0x567afb[_0x1e507d('0x174f')]()});});}function _0x47b370(_0x103e15){var _0x5c2ac1=_0x5c23db;_0x288dbb['errors']=[];var _0x3ee6bd=_0x11b2a9[_0x5c2ac1('0xa33')]()[_0x5c2ac1('0x4b4')](_0x5c2ac1('0x196b'))[_0x5c2ac1('0x13fb')](_0x5c2ac1('0x2403'))['ariaLabel']('Delete\x20FreshsalesAccount')['ok']('Delete')[_0x5c2ac1('0x3b5')]('Cancel')[_0x5c2ac1('0x1e6d')](_0x103e15);_0x11b2a9[_0x5c2ac1('0x853')](_0x3ee6bd)['then'](function(){var _0x10a87c=_0x5c2ac1;_0x13c917[_0x10a87c('0xe7')][_0x10a87c('0x1164')]({'id':_0x288dbb['freshsalesAccount']['id']})[_0x10a87c('0x1376')][_0x10a87c('0x21ad')](function(){var _0x521205=_0x10a87c;_0x86640f()[_0x521205('0x16a2')](_0x288dbb[_0x521205('0x3d2')],{'id':_0x288dbb[_0x521205('0xe97')]['id']}),_0x51df33['success']({'title':'FreshsalesAccount\x20properly\x20deleted!','msg':(_0x288dbb[_0x521205('0xe97')][_0x521205('0x19fe')]||_0x521205('0xe97'))+_0x521205('0xb4a')}),_0x440130(_0x288dbb['freshsalesAccount']);})[_0x10a87c('0x1c1d')](function(_0x4a70aa){var _0x15e6b6=_0x10a87c;if(_0x4a70aa[_0x15e6b6('0x11c2')]&&_0x4a70aa[_0x15e6b6('0x11c2')]['errors']&&_0x4a70aa[_0x15e6b6('0x11c2')][_0x15e6b6('0x1a69')]['length']){_0x288dbb[_0x15e6b6('0x1a69')]=_0x4a70aa[_0x15e6b6('0x11c2')][_0x15e6b6('0x1a69')]||[{'message':_0x4a70aa[_0x15e6b6('0x174f')](),'type':_0x15e6b6('0x15a3')}];for(var _0x146e41=0x0;_0x146e41<_0x4a70aa[_0x15e6b6('0x11c2')]['errors']['length'];_0x146e41++){_0x51df33['error']({'title':_0x4a70aa[_0x15e6b6('0x11c2')]['errors'][_0x146e41][_0x15e6b6('0x7fa')],'msg':_0x4a70aa['data'][_0x15e6b6('0x1a69')][_0x146e41][_0x15e6b6('0x1224')]});}}else _0x51df33[_0x15e6b6('0x2092')]({'title':_0x4a70aa[_0x15e6b6('0x209')]?'API:'+_0x4a70aa[_0x15e6b6('0x209')]+_0x15e6b6('0xa99')+_0x4a70aa[_0x15e6b6('0x1808')]:'api.intFreshsalesAccount.delete','msg':_0x4a70aa[_0x15e6b6('0x11c2')]?JSON[_0x15e6b6('0x25e')](_0x4a70aa[_0x15e6b6('0x11c2')][_0x15e6b6('0x1224')]):_0x4a70aa[_0x15e6b6('0x1224')]||_0x4a70aa[_0x15e6b6('0x174f')]()});});},function(){});}function _0xae02fa(_0x47d046){return _0x47d046===null?undefined:new Date(_0x47d046);}function _0x440130(_0x2ec57e){var _0xbb3383=_0x5c23db;_0x11b2a9[_0xbb3383('0x1c24')](_0x2ec57e);}}const _0x1fc376=_0xbd0ec9,_0x37a974=_0x398308['p']+'src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/configurations/dialog.html/dialog-[chunkhash].html',_0xa61ff0=_0x398308['p']+_0x3877e3('0xc67');_0x153fb6[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),_0x3877e3('0x243f'),'api',_0x3877e3('0x1908'),_0x3877e3('0x15bc')];function _0x153fb6(_0x1f8196,_0x440b25,_0x156652,_0x4eb0b7,_0x402120){var _0x524f7b=_0x3877e3,_0x11b890=this;_0x11b890[_0x524f7b('0x123f')]=_0x402120['getCurrentUser'](),_0x11b890[_0x524f7b('0xe97')]={},_0x11b890[_0x524f7b('0x1f2f')]={},_0x11b890[_0x524f7b('0x1ca3')]=[],_0x11b890[_0x524f7b('0xae8')]=-0x1,_0x11b890[_0x524f7b('0x5ed')],_0x11b890[_0x524f7b('0x1d75')]=_0x1d55ef,_0x11b890[_0x524f7b('0x21a')]=_0x311551,_0x11b890[_0x524f7b('0x7f6')]=_0x18f827,_0x11b890[_0x524f7b('0x17bc')]=_0x459929;function _0x1d55ef(_0x1e16cb,_0x439e84){var _0x56d5b7=_0x524f7b;_0x11b890[_0x56d5b7('0xe97')]=_0x1e16cb,_0x11b890[_0x56d5b7('0x5ed')]=typeof _0x439e84!=='undefined'?_0x439e84:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x156652[_0x56d5b7('0xe7')][_0x56d5b7('0xc44')]({'id':_0x11b890[_0x56d5b7('0xe97')]['id'],'sort':_0x56d5b7('0x33')})['$promise'][_0x56d5b7('0x21ad')](function(_0x301945){var _0x33c33a=_0x56d5b7;return _0x11b890[_0x33c33a('0x1ca3')]=_0x301945[_0x33c33a('0x1b33')]?_0x301945[_0x33c33a('0x1b33')]:[],_0x11b890[_0x33c33a('0x1ca3')][_0x33c33a('0x577')]&&_0x11b890[_0x33c33a('0x21a')](0x0),_0x156652[_0x33c33a('0x25bb')]['get']({'nolimit':!![],'sort':_0x33c33a('0x19fe')})[_0x33c33a('0x1376')];})[_0x56d5b7('0x21ad')](function(_0x51be17){var _0x34e578=_0x56d5b7;_0x11b890['variables']=_0x51be17[_0x34e578('0x1b33')]?_0x51be17[_0x34e578('0x1b33')]:[],_0x11b890[_0x34e578('0x5f')]=_0x86640f()[_0x34e578('0xcde')](_0x11b890['variables'],'id');})[_0x56d5b7('0x1c1d')](function(_0x142482){var _0x562631=_0x56d5b7;_0x4eb0b7[_0x562631('0x2092')]({'title':_0x142482['status']?_0x562631('0x22d')+_0x142482[_0x562631('0x209')]+_0x562631('0xa99')+_0x142482[_0x562631('0x1808')]:_0x562631('0x1c4e'),'msg':_0x142482[_0x562631('0x11c2')]?JSON[_0x562631('0x25e')](_0x142482[_0x562631('0x11c2')]):_0x142482[_0x562631('0x174f')]()});});}function _0x311551(_0x50c1f8){var _0x3f5f46=_0x524f7b;_0x11b890[_0x3f5f46('0x1f2f')]=_0x11b890[_0x3f5f46('0x1ca3')][_0x50c1f8],_0x11b890[_0x3f5f46('0xae8')]=_0x50c1f8,_0x156652[_0x3f5f46('0xecf')][_0x3f5f46('0x12d7')]({'id':_0x11b890[_0x3f5f46('0x1f2f')]['id']})[_0x3f5f46('0x1376')][_0x3f5f46('0x21ad')](function(_0x1d2f75){var _0x1829df=_0x3f5f46;return _0x11b890[_0x1829df('0x1033')]=_0x1d2f75[_0x1829df('0x1b33')]?_0x1d2f75['rows']:[],_0x156652[_0x1829df('0xecf')]['getDescriptions']({'id':_0x11b890['freshsalesConfiguration']['id']})[_0x1829df('0x1376')];})['then'](function(_0x40c0d8){var _0x2635f3=_0x3f5f46;return _0x11b890[_0x2635f3('0x2161')]=_0x40c0d8['rows']?_0x40c0d8['rows']:[],_0x156652[_0x2635f3('0xecf')][_0x2635f3('0x929')]({'id':_0x11b890[_0x2635f3('0x1f2f')]['id']})[_0x2635f3('0x1376')];})[_0x3f5f46('0x21ad')](function(_0x18b925){var _0x2e830a=_0x3f5f46;_0x11b890[_0x2e830a('0x181e')]=_0x18b925[_0x2e830a('0x1b33')]?_0x18b925[_0x2e830a('0x1b33')]:[];})[_0x3f5f46('0x1c1d')](function(_0x592027){var _0x272851=_0x3f5f46;_0x4eb0b7[_0x272851('0x2092')]({'title':_0x592027[_0x272851('0x209')]?_0x272851('0x22d')+_0x592027['status']+_0x272851('0xa99')+_0x592027['statusText']:_0x272851('0x172f'),'msg':_0x592027[_0x272851('0x11c2')]?JSON[_0x272851('0x25e')](_0x592027['data']):_0x592027[_0x272851('0x174f')]()});});}function _0x18f827(_0x40485f,_0x5c191a){var _0x39e556=_0x524f7b;_0x1f8196['show']({'controller':_0x39e556('0x936'),'controllerAs':'vm','templateUrl':_0x37a974,'parent':angular[_0x39e556('0x1676')](_0x440b25['body']),'targetEvent':_0x40485f,'clickOutsideToClose':!![],'locals':{'freshsalesConfiguration':_0x5c191a,'configurations':_0x11b890['configurations'],'license':null,'setting':null,'crudPermissions':_0x11b890[_0x39e556('0x5ed')]}})[_0x39e556('0x13e')](function(){var _0x130af2=_0x39e556;_0x11b890[_0x130af2('0x21a')](0x0);});}function _0x459929(_0x3c48da,_0x39baf3){var _0x24b61b=_0x524f7b,_0x475e28=_0x1f8196[_0x24b61b('0xa33')]()[_0x24b61b('0x4b4')](_0x24b61b('0xc41'))[_0x24b61b('0x276b')](_0x24b61b('0x622')+(_0x39baf3[_0x24b61b('0x19fe')]||_0x24b61b('0x1f2f'))+_0x24b61b('0x2135')+_0x24b61b('0x25e0'))[_0x24b61b('0x7a7')](_0x24b61b('0x14dc'))[_0x24b61b('0x1e6d')](_0x3c48da)['ok']('OK')['cancel'](_0x24b61b('0x284b'));_0x1f8196['show'](_0x475e28)[_0x24b61b('0x21ad')](function(){var _0x2be95e=_0x24b61b;_0x156652[_0x2be95e('0xecf')][_0x2be95e('0x1164')]({'id':_0x39baf3['id']})['$promise'][_0x2be95e('0x21ad')](function(){var _0x8631a1=_0x2be95e;_0x86640f()[_0x8631a1('0x16a2')](_0x11b890[_0x8631a1('0x1ca3')],{'id':_0x39baf3['id']}),_0x4eb0b7[_0x8631a1('0xdb1')]({'title':'FreshsalesConfiguration\x20deleted!','msg':_0x39baf3['name']?_0x39baf3[_0x8631a1('0x19fe')]+_0x8631a1('0xb4a'):''});})[_0x2be95e('0x1c1d')](function(_0x5d3e19){var _0x283c8a=_0x2be95e;_0x4eb0b7[_0x283c8a('0x2092')]({'title':_0x5d3e19['status']?_0x283c8a('0x22d')+_0x5d3e19[_0x283c8a('0x209')]+_0x283c8a('0xa99')+_0x5d3e19[_0x283c8a('0x1808')]:_0x283c8a('0x2336'),'msg':_0x5d3e19['data']?JSON[_0x283c8a('0x25e')](_0x5d3e19[_0x283c8a('0x11c2')]):_0x5d3e19[_0x283c8a('0x174f')]()});})[_0x2be95e('0x13e')](function(){var _0x5d9122=_0x2be95e;_0x11b890[_0x5d9122('0x21a')](0x0);});},function(){console['log']('CANCEL');});}_0x11b890[_0x524f7b('0x19ba')]=[],_0x11b890[_0x524f7b('0x11de')]=_0x3ef488,_0x11b890[_0x524f7b('0x2203')]=_0x40165e,_0x11b890['deleteSelectedSubjects']=_0x4acd99;function _0x3ef488(_0x57fe5b,_0x37e934){var _0x43d960=_0x524f7b;_0x1f8196['show']({'controller':_0x43d960('0x2151'),'controllerAs':'vm','templateUrl':_0xa61ff0,'parent':angular['element'](_0x440b25['body']),'targetEvent':_0x57fe5b,'clickOutsideToClose':!![],'locals':{'type':'subject','item':_0x37e934,'items':_0x11b890['subjects'],'configuration':_0x11b890[_0x43d960('0x1f2f')],'account':_0x11b890[_0x43d960('0xe97')],'license':null,'setting':null,'crudPermissions':_0x11b890[_0x43d960('0x5ed')]}});}function _0x561c7d(_0x2cf5a7){var _0x5cc708=_0x524f7b;_0x156652['intFreshsalesField'][_0x5cc708('0x1164')]({'id':_0x2cf5a7['id']})['$promise'][_0x5cc708('0x21ad')](function(){var _0x16de58=_0x5cc708;_0x86640f()['remove'](_0x11b890[_0x16de58('0x1033')],{'id':_0x2cf5a7['id']}),_0x4eb0b7[_0x16de58('0xdb1')]({'title':_0x16de58('0x17b8'),'msg':_0x16de58('0x2cf')});})[_0x5cc708('0x1c1d')](function(_0x3086ae){var _0x1359fe=_0x5cc708;_0x4eb0b7[_0x1359fe('0x2092')]({'title':_0x3086ae[_0x1359fe('0x209')]?_0x1359fe('0x22d')+_0x3086ae[_0x1359fe('0x209')]+_0x1359fe('0xa99')+_0x3086ae[_0x1359fe('0x1808')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x3086ae[_0x1359fe('0x11c2')]?JSON['stringify'](_0x3086ae[_0x1359fe('0x11c2')]):_0x3086ae[_0x1359fe('0x174f')]()});});}function _0x40165e(_0xf8876c,_0x20723a){var _0x35a56e=_0x524f7b,_0x345b45=_0x1f8196[_0x35a56e('0xa33')]()[_0x35a56e('0x4b4')](_0x35a56e('0xe3a'))[_0x35a56e('0x276b')](_0x35a56e('0x2031')+_0x35a56e('0x25e0'))[_0x35a56e('0x7a7')](_0x35a56e('0x566'))[_0x35a56e('0x1e6d')](_0xf8876c)['ok']('OK')[_0x35a56e('0x3b5')](_0x35a56e('0x284b'));_0x1f8196['show'](_0x345b45)[_0x35a56e('0x21ad')](function(){_0x561c7d(_0x20723a);},function(){var _0x541d29=_0x35a56e;console[_0x541d29('0x6fb')](_0x541d29('0x284b'));});}function _0x4acd99(_0x4fe675){var _0x4e9d8c=_0x524f7b,_0xa1cdf6=_0x1f8196[_0x4e9d8c('0xa33')]()[_0x4e9d8c('0x4b4')](_0x4e9d8c('0x6e8'))[_0x4e9d8c('0x276b')](''+_0x11b890[_0x4e9d8c('0x19ba')][_0x4e9d8c('0x577')]+_0x4e9d8c('0xd74')+_0x4e9d8c('0x25e0'))[_0x4e9d8c('0x7a7')](_0x4e9d8c('0x1828'))['targetEvent'](_0x4fe675)['ok']('OK')[_0x4e9d8c('0x3b5')]('CANCEL');_0x1f8196['show'](_0xa1cdf6)['then'](function(){var _0x19407a=_0x4e9d8c;_0x11b890['selectedSubjects'][_0x19407a('0x1a52')](function(_0xf7eae0){_0x561c7d(_0xf7eae0);}),_0x11b890[_0x19407a('0x19ba')]=[];});}_0x11b890[_0x524f7b('0xbdf')]=[],_0x11b890[_0x524f7b('0x1139')]=_0x33b778,_0x11b890[_0x524f7b('0x2378')]=_0x3f7a0d,_0x11b890[_0x524f7b('0x1f80')]=_0x5ecf37;function _0x33b778(_0x251267,_0x43a905){var _0x43aefd=_0x524f7b;_0x1f8196['show']({'controller':'CreateOrEditFreshsalesAccountItemDialogController','controllerAs':'vm','templateUrl':_0xa61ff0,'parent':angular['element'](_0x440b25[_0x43aefd('0x2452')]),'targetEvent':_0x251267,'clickOutsideToClose':!![],'locals':{'type':_0x43aefd('0x1137'),'item':_0x43a905,'items':_0x11b890[_0x43aefd('0x2161')],'configuration':_0x11b890[_0x43aefd('0x1f2f')],'account':_0x11b890[_0x43aefd('0xe97')],'license':null,'setting':null,'crudPermissions':_0x11b890[_0x43aefd('0x5ed')]}});}function _0x3848b2(_0x32143e){var _0x6dafde=_0x524f7b;_0x156652[_0x6dafde('0x1c44')]['delete']({'id':_0x32143e['id']})['$promise'][_0x6dafde('0x21ad')](function(){var _0xfa698c=_0x6dafde;_0x86640f()[_0xfa698c('0x16a2')](_0x11b890[_0xfa698c('0x2161')],{'id':_0x32143e['id']}),_0x4eb0b7[_0xfa698c('0xdb1')]({'title':_0xfa698c('0x1af8'),'msg':_0xfa698c('0x1ec6')});})['catch'](function(_0x5ed05d){var _0x2c7184=_0x6dafde;_0x4eb0b7['error']({'title':_0x5ed05d[_0x2c7184('0x209')]?_0x2c7184('0x22d')+_0x5ed05d[_0x2c7184('0x209')]+_0x2c7184('0xa99')+_0x5ed05d[_0x2c7184('0x1808')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x5ed05d[_0x2c7184('0x11c2')]?JSON['stringify'](_0x5ed05d[_0x2c7184('0x11c2')]):_0x5ed05d[_0x2c7184('0x174f')]()});});}function _0x3f7a0d(_0x5d3108,_0x2c48b8){var _0x2e1ba8=_0x524f7b,_0x27db10=_0x1f8196[_0x2e1ba8('0xa33')]()[_0x2e1ba8('0x4b4')](_0x2e1ba8('0x1d59'))[_0x2e1ba8('0x276b')](_0x2e1ba8('0x4e6')+'\x20will\x20be\x20deleted.')[_0x2e1ba8('0x7a7')](_0x2e1ba8('0xe67'))[_0x2e1ba8('0x1e6d')](_0x5d3108)['ok']('OK')[_0x2e1ba8('0x3b5')](_0x2e1ba8('0x284b'));_0x1f8196['show'](_0x27db10)[_0x2e1ba8('0x21ad')](function(){_0x3848b2(_0x2c48b8);},function(){var _0x41f253=_0x2e1ba8;console[_0x41f253('0x6fb')](_0x41f253('0x284b'));});}function _0x5ecf37(_0x5458c7){var _0x4bc5b4=_0x524f7b,_0x5aaf8e=_0x1f8196['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?')['htmlContent'](_0x4bc5b4('0x622')+_0x11b890[_0x4bc5b4('0xbdf')][_0x4bc5b4('0x577')]+'\x20selected'+_0x4bc5b4('0x25e0'))['ariaLabel'](_0x4bc5b4('0x211d'))[_0x4bc5b4('0x1e6d')](_0x5458c7)['ok']('OK')[_0x4bc5b4('0x3b5')](_0x4bc5b4('0x284b'));_0x1f8196[_0x4bc5b4('0x853')](_0x5aaf8e)[_0x4bc5b4('0x21ad')](function(){var _0x40b23c=_0x4bc5b4;_0x11b890[_0x40b23c('0xbdf')]['forEach'](function(_0x21e525){_0x3848b2(_0x21e525);}),_0x11b890[_0x40b23c('0xbdf')]=[];});}_0x11b890[_0x524f7b('0x21b0')]=[],_0x11b890['createOrEditField']=_0x4ad80e,_0x11b890[_0x524f7b('0x222e')]=_0x5ae614,_0x11b890[_0x524f7b('0xe52')]=_0x1d01ab;function _0x4ad80e(_0x3c2259,_0x28ce07){var _0x258c66=_0x524f7b;_0x1f8196[_0x258c66('0x853')]({'controller':_0x258c66('0x2151'),'controllerAs':'vm','templateUrl':_0xa61ff0,'parent':angular[_0x258c66('0x1676')](_0x440b25[_0x258c66('0x2452')]),'targetEvent':_0x3c2259,'clickOutsideToClose':!![],'locals':{'type':_0x258c66('0xff8'),'item':_0x28ce07,'items':_0x11b890[_0x258c66('0x181e')],'configuration':_0x11b890[_0x258c66('0x1f2f')],'account':_0x11b890[_0x258c66('0xe97')],'license':null,'setting':null,'crudPermissions':_0x11b890[_0x258c66('0x5ed')]}});}function _0xccbbe0(_0x428e21){var _0x1676c6=_0x524f7b;_0x156652[_0x1676c6('0x1c44')][_0x1676c6('0x1164')]({'id':_0x428e21['id']})[_0x1676c6('0x1376')][_0x1676c6('0x21ad')](function(){var _0x2de135=_0x1676c6;_0x86640f()[_0x2de135('0x16a2')](_0x11b890[_0x2de135('0x181e')],{'id':_0x428e21['id']}),_0x4eb0b7['success']({'title':_0x2de135('0x2321'),'msg':_0x2de135('0x2263')});})[_0x1676c6('0x1c1d')](function(_0x56e3f3){var _0x45a6f7=_0x1676c6;_0x4eb0b7[_0x45a6f7('0x2092')]({'title':_0x56e3f3['status']?_0x45a6f7('0x22d')+_0x56e3f3[_0x45a6f7('0x209')]+_0x45a6f7('0xa99')+_0x56e3f3[_0x45a6f7('0x1808')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x56e3f3[_0x45a6f7('0x11c2')]?JSON[_0x45a6f7('0x25e')](_0x56e3f3[_0x45a6f7('0x11c2')]):_0x56e3f3[_0x45a6f7('0x174f')]()});});}function _0x5ae614(_0x1ca6af,_0x4c2d43){var _0x1599a6=_0x524f7b,_0x495381=_0x1f8196[_0x1599a6('0xa33')]()['title'](_0x1599a6('0x2207'))['htmlContent'](_0x1599a6('0x171')+_0x1599a6('0x25e0'))[_0x1599a6('0x7a7')](_0x1599a6('0x238b'))[_0x1599a6('0x1e6d')](_0x1ca6af)['ok']('OK')[_0x1599a6('0x3b5')](_0x1599a6('0x284b'));_0x1f8196[_0x1599a6('0x853')](_0x495381)[_0x1599a6('0x21ad')](function(){_0xccbbe0(_0x4c2d43);},function(){var _0x2a51c2=_0x1599a6;console[_0x2a51c2('0x6fb')](_0x2a51c2('0x284b'));});}function _0x1d01ab(_0x5418e3){var _0x240714=_0x524f7b,_0x5d061a=_0x1f8196[_0x240714('0xa33')]()[_0x240714('0x4b4')](_0x240714('0x655'))[_0x240714('0x276b')](_0x240714('0x622')+_0x11b890['selectedFields'][_0x240714('0x577')]+_0x240714('0xd74')+_0x240714('0x25e0'))[_0x240714('0x7a7')](_0x240714('0x85f'))['targetEvent'](_0x5418e3)['ok']('OK')[_0x240714('0x3b5')](_0x240714('0x284b'));_0x1f8196[_0x240714('0x853')](_0x5d061a)[_0x240714('0x21ad')](function(){var _0xf59354=_0x240714;_0x11b890[_0xf59354('0x21b0')][_0xf59354('0x1a52')](function(_0x2d8ffd){_0xccbbe0(_0x2d8ffd);}),_0x11b890['selectedFields']=[];});}}const _0x195655=_0x153fb6;_0xd6b9da['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x1ca3'),_0x3877e3('0x1f2f'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'license',_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0xd6b9da(_0x134f05,_0x4e2954,_0x1d4988,_0x41a264,_0x59b51e,_0x117e66,_0x3fca4f,_0x4e0706,_0x4c24c6,_0x24126f,_0x479718,_0x3c655d,_0x10bcc5,_0x9ad61d){var _0x1ac399=_0x3877e3,_0x36f31c=this;_0x36f31c[_0x1ac399('0x123f')]=_0x479718[_0x1ac399('0x15ed')](),_0x36f31c['errors']=[],_0x36f31c['setting']=_0x10bcc5,_0x36f31c[_0x1ac399('0x2ff')]=_0x3c655d,_0x36f31c['crudPermissions']=_0x9ad61d,_0x36f31c[_0x1ac399('0x126a')]={},_0x36f31c[_0x1ac399('0x1432')]=_0x36f31c[_0x1ac399('0x21e')]&&_0x36f31c[_0x1ac399('0x21e')][_0x1ac399('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x36f31c['title']='INTEGRATIONS.EDIT_FRESHSALESCONFIGURATION',_0x36f31c[_0x1ac399('0x1f2f')]=angular[_0x1ac399('0xd75')](_0x4c24c6),_0x36f31c[_0x1ac399('0x1ca3')]=_0x4e0706,_0x36f31c['newFreshsalesConfiguration']=![];!_0x36f31c[_0x1ac399('0x1f2f')]&&(_0x36f31c[_0x1ac399('0x1f2f')]={'channel':_0x1ac399('0x8ed'),'type':'inbound'},_0x36f31c[_0x1ac399('0x4b4')]='INTEGRATIONS.NEW_FRESHSALESCONFIGURATION',_0x36f31c[_0x1ac399('0xc08')]=!![]);_0x36f31c[_0x1ac399('0xaa5')]=_0x1cc8f7,_0x36f31c[_0x1ac399('0x760')]=_0x364d96,_0x36f31c[_0x1ac399('0x17bc')]=_0x1f7d1d,_0x36f31c[_0x1ac399('0x279')]=_0x5abc56,_0x36f31c['closeDialog']=_0x58b572;function _0x1cc8f7(){var _0x465c90=_0x1ac399;_0x36f31c[_0x465c90('0x1a69')]=[],_0x24126f[_0x465c90('0xe7')][_0x465c90('0x1388')]({'id':_0x4e2954[_0x465c90('0x171b')]['id']},_0x36f31c[_0x465c90('0x1f2f')])[_0x465c90('0x1376')][_0x465c90('0x21ad')](function(_0x111160){var _0x447aa5=_0x465c90;_0x36f31c[_0x447aa5('0x1ca3')][_0x447aa5('0xd0c')](_0x111160[_0x447aa5('0x3bc')]()),_0x3fca4f[_0x447aa5('0xdb1')]({'title':_0x447aa5('0x366'),'msg':_0x36f31c['freshsalesConfiguration'][_0x447aa5('0x19fe')]?_0x36f31c[_0x447aa5('0x1f2f')]['name']+_0x447aa5('0x1694'):''}),_0x58b572(_0x111160);})[_0x465c90('0x1c1d')](function(_0x4fe7c7){var _0x4495e7=_0x465c90;if(_0x4fe7c7[_0x4495e7('0x11c2')]&&_0x4fe7c7[_0x4495e7('0x11c2')][_0x4495e7('0x1a69')]&&_0x4fe7c7[_0x4495e7('0x11c2')]['errors'][_0x4495e7('0x577')]){_0x36f31c[_0x4495e7('0x1a69')]=_0x4fe7c7['data'][_0x4495e7('0x1a69')]||[{'message':_0x4fe7c7[_0x4495e7('0x174f')](),'type':_0x4495e7('0x107b')}];for(var _0x4c79a5=0x0;_0x4c79a5<_0x4fe7c7['data'][_0x4495e7('0x1a69')][_0x4495e7('0x577')];_0x4c79a5+=0x1){_0x3fca4f[_0x4495e7('0x2092')]({'title':_0x4fe7c7['data'][_0x4495e7('0x1a69')][_0x4c79a5][_0x4495e7('0x7fa')],'msg':_0x4fe7c7[_0x4495e7('0x11c2')][_0x4495e7('0x1a69')][_0x4c79a5][_0x4495e7('0x1224')]});}}else _0x3fca4f[_0x4495e7('0x2092')]({'title':_0x4fe7c7[_0x4495e7('0x209')]?_0x4495e7('0x22d')+_0x4fe7c7[_0x4495e7('0x209')]+_0x4495e7('0xa99')+_0x4fe7c7[_0x4495e7('0x1808')]:_0x4495e7('0x107b'),'msg':_0x4fe7c7[_0x4495e7('0x11c2')]?JSON[_0x4495e7('0x25e')](_0x4fe7c7[_0x4495e7('0x11c2')][_0x4495e7('0x1224')]):_0x4fe7c7[_0x4495e7('0x174f')]()});});}function _0x364d96(){var _0x235bbd=_0x1ac399;_0x36f31c[_0x235bbd('0x1a69')]=[],_0x24126f[_0x235bbd('0xecf')][_0x235bbd('0x5ef')]({'id':_0x36f31c[_0x235bbd('0x1f2f')]['id']},_0x36f31c[_0x235bbd('0x1f2f')])[_0x235bbd('0x1376')]['then'](function(_0x5da980){var _0x5d6d25=_0x235bbd,_0xf8cb0a=_0x86640f()['find'](_0x36f31c[_0x5d6d25('0x1ca3')],{'id':_0x5da980['id']});_0xf8cb0a&&_0x86640f()[_0x5d6d25('0xd0e')](_0xf8cb0a,_0x86640f()['pick'](_0x5da980[_0x5d6d25('0x3bc')](),_0x86640f()[_0x5d6d25('0x223b')](_0xf8cb0a))),_0x3fca4f[_0x5d6d25('0xdb1')]({'title':'FreshsalesConfiguration\x20properly\x20saved!','msg':_0x36f31c[_0x5d6d25('0x1f2f')][_0x5d6d25('0x19fe')]?_0x36f31c[_0x5d6d25('0x1f2f')][_0x5d6d25('0x19fe')]+_0x5d6d25('0x2249'):''}),_0x58b572(_0x5da980);})[_0x235bbd('0x1c1d')](function(_0x1f8b59){var _0xdd80dc=_0x235bbd;if(_0x1f8b59[_0xdd80dc('0x11c2')]&&_0x1f8b59[_0xdd80dc('0x11c2')]['errors']&&_0x1f8b59[_0xdd80dc('0x11c2')][_0xdd80dc('0x1a69')][_0xdd80dc('0x577')]){_0x36f31c['errors']=_0x1f8b59[_0xdd80dc('0x11c2')]['errors']||[{'message':_0x1f8b59[_0xdd80dc('0x174f')](),'type':'api.intFreshsalesConfiguration.update'}];for(var _0x350b8a=0x0;_0x350b8a<_0x1f8b59[_0xdd80dc('0x11c2')][_0xdd80dc('0x1a69')][_0xdd80dc('0x577')];_0x350b8a++){_0x3fca4f[_0xdd80dc('0x2092')]({'title':_0x1f8b59[_0xdd80dc('0x11c2')][_0xdd80dc('0x1a69')][_0x350b8a][_0xdd80dc('0x7fa')],'msg':_0x1f8b59[_0xdd80dc('0x11c2')][_0xdd80dc('0x1a69')][_0x350b8a]['message']});}}else _0x3fca4f['error']({'title':_0x1f8b59[_0xdd80dc('0x209')]?_0xdd80dc('0x22d')+_0x1f8b59[_0xdd80dc('0x209')]+_0xdd80dc('0xa99')+_0x1f8b59[_0xdd80dc('0x1808')]:_0xdd80dc('0xd3c'),'msg':_0x1f8b59[_0xdd80dc('0x11c2')]?JSON['stringify'](_0x1f8b59[_0xdd80dc('0x11c2')][_0xdd80dc('0x1224')]):_0x1f8b59[_0xdd80dc('0x174f')]()});});}function _0x1f7d1d(_0x467d57){var _0x343490=_0x1ac399;_0x36f31c['errors']=[];var _0x51fc24=_0x41a264[_0x343490('0xa33')]()['title'](_0x343490('0x196b'))[_0x343490('0x13fb')](_0x343490('0x162f'))['ariaLabel'](_0x343490('0x1c71'))['ok'](_0x343490('0xbfd'))[_0x343490('0x3b5')](_0x343490('0x1f40'))[_0x343490('0x1e6d')](_0x467d57);_0x41a264[_0x343490('0x853')](_0x51fc24)['then'](function(){var _0x4100be=_0x343490;_0x24126f[_0x4100be('0xecf')][_0x4100be('0x1164')]({'id':_0x36f31c[_0x4100be('0x1f2f')]['id']})[_0x4100be('0x1376')][_0x4100be('0x21ad')](function(){var _0x471066=_0x4100be;_0x86640f()[_0x471066('0x16a2')](_0x36f31c[_0x471066('0x1ca3')],{'id':_0x36f31c[_0x471066('0x1f2f')]['id']}),_0x3fca4f['success']({'title':_0x471066('0x9d7'),'msg':(_0x36f31c[_0x471066('0x1f2f')][_0x471066('0x19fe')]||_0x471066('0x1f2f'))+'\x20has\x20been\x20deleted!'}),_0x58b572(_0x36f31c[_0x471066('0x1f2f')]);})[_0x4100be('0x1c1d')](function(_0x35300c){var _0x18c7da=_0x4100be;if(_0x35300c[_0x18c7da('0x11c2')]&&_0x35300c[_0x18c7da('0x11c2')]['errors']&&_0x35300c[_0x18c7da('0x11c2')][_0x18c7da('0x1a69')][_0x18c7da('0x577')]){_0x36f31c[_0x18c7da('0x1a69')]=_0x35300c[_0x18c7da('0x11c2')][_0x18c7da('0x1a69')]||[{'message':_0x35300c[_0x18c7da('0x174f')](),'type':_0x18c7da('0x513')}];for(var _0xb5b53e=0x0;_0xb5b53e<_0x35300c['data'][_0x18c7da('0x1a69')][_0x18c7da('0x577')];_0xb5b53e++){_0x3fca4f[_0x18c7da('0x2092')]({'title':_0x35300c[_0x18c7da('0x11c2')]['errors'][_0xb5b53e][_0x18c7da('0x7fa')],'msg':_0x35300c['data']['errors'][_0xb5b53e][_0x18c7da('0x1224')]});}}else _0x3fca4f[_0x18c7da('0x2092')]({'title':_0x35300c[_0x18c7da('0x209')]?_0x18c7da('0x22d')+_0x35300c[_0x18c7da('0x209')]+_0x18c7da('0xa99')+_0x35300c[_0x18c7da('0x1808')]:_0x18c7da('0x513'),'msg':_0x35300c['data']?JSON[_0x18c7da('0x25e')](_0x35300c[_0x18c7da('0x11c2')]['message']):_0x35300c[_0x18c7da('0x1224')]||_0x35300c['toString']()});});},function(){});}function _0x5abc56(_0x37ceb4){return _0x37ceb4===null?undefined:new Date(_0x37ceb4);}function _0x58b572(_0x3f87fc){var _0x36d20c=_0x1ac399;_0x41a264[_0x36d20c('0x1c24')](_0x3f87fc);}}const _0x31f018=_0xd6b9da;_0x450527[_0x3877e3('0x1a81')]=['$scope','$state','$location','$mdDialog',_0x3877e3('0x1908'),_0x3877e3('0xb4f'),'items','item',_0x3877e3('0x1fd3'),_0x3877e3('0x7fa'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'crudPermissions'];function _0x450527(_0x5c113d,_0x4fc4ec,_0x51a692,_0x145e4c,_0x3d01f1,_0x4e0180,_0x5b2653,_0x12a602,_0x4b0b60,_0x5e5df9,_0x36e21c,_0x8ecfe,_0x4b1089){var _0x120233=_0x3877e3,_0x266ec6=this;_0x266ec6[_0x120233('0x123f')]=_0x8ecfe['getCurrentUser'](),_0x266ec6[_0x120233('0x1a69')]=[],_0x266ec6['title']=_0x120233('0x177a')+_0x86640f()[_0x120233('0x7c1')](_0x5e5df9),_0x266ec6['item']=angular[_0x120233('0xd75')](_0x12a602),_0x266ec6[_0x120233('0x1b9a')]=_0x5b2653,_0x266ec6['type']=_0x5e5df9,_0x266ec6[_0x120233('0x5ed')]=_0x4b1089,_0x266ec6[_0x120233('0xf8')]=![];!_0x266ec6[_0x120233('0x19ca')]&&(_0x266ec6[_0x120233('0x19ca')]={'type':_0x120233('0x2638')},_0x266ec6[_0x120233('0x19ca')][_0x86640f()[_0x120233('0x1b7e')](_0x5e5df9)+'Id']=_0x4e0180['id'],_0x266ec6[_0x120233('0x4b4')]=_0x120233('0x1d99')+_0x86640f()[_0x120233('0x7c1')](_0x5e5df9),_0x266ec6[_0x120233('0xf8')]=!![]);_0x266ec6[_0x120233('0x1e89')]=_0x581dc0,_0x266ec6[_0x120233('0x1c97')]=_0x41825c,_0x266ec6[_0x120233('0x1c8')]=_0xf529f,_0x266ec6[_0x120233('0x23fe')]=_0xc2ed47,_0x266ec6[_0x120233('0x167')]=_0x1a4953,_0x36e21c[_0x120233('0x25bb')]['get']({'nolimit':!![]})[_0x120233('0x1376')][_0x120233('0x21ad')](function(_0x4aff2c){var _0x533003=_0x120233;return _0x266ec6[_0x533003('0x142d')]=_0x4aff2c['rows']?_0x4aff2c[_0x533003('0x1b33')]:[],_0x36e21c[_0x533003('0x9b6')][_0x533003('0x1219')]()['$promise'];})[_0x120233('0x21ad')](function(_0x4b2560){var _0x251d69=_0x120233;return _0x266ec6['voiceAgentReportColumns']=_0x86640f()['difference'](_0x86640f()['keys'](_0x4b2560),[_0x251d69('0x1376'),_0x251d69('0x9f8'),_0x251d69('0x23ae'),'updatedAt',_0x251d69('0x1bdd')]),_0x266ec6[_0x251d69('0x22eb')][_0x251d69('0x206c')](_0x251d69('0x250a')),_0x36e21c['voiceDialReport']['describe']()[_0x251d69('0x1376')];})[_0x120233('0x21ad')](function(_0x17fc2e){var _0x1e70d1=_0x120233;_0x266ec6[_0x1e70d1('0x1491')]=_0x86640f()[_0x1e70d1('0x5a8')](_0x86640f()['keys'](_0x17fc2e),[_0x1e70d1('0x1376'),_0x1e70d1('0x9f8'),_0x1e70d1('0x23ae'),_0x1e70d1('0x15af'),'sourceid']),_0x266ec6[_0x1e70d1('0x1491')][_0x1e70d1('0x206c')](_0x1e70d1('0x250a'));})['catch'](function(_0x2b540a){var _0x49f887=_0x120233;_0x3d01f1['error']({'title':_0x2b540a[_0x49f887('0x209')]?_0x49f887('0x22d')+_0x2b540a[_0x49f887('0x209')]+'\x20-\x20'+_0x2b540a[_0x49f887('0x1808')]:_0x49f887('0x8f3'),'msg':_0x2b540a[_0x49f887('0x11c2')]?JSON[_0x49f887('0x25e')](_0x2b540a[_0x49f887('0x11c2')]):_0x2b540a['toString']()});}),_0x36e21c['intFreshsalesAccount'][_0x120233('0x929')]({'id':_0x4b0b60['id'],'ticketType':_0x4e0180['ticketType']?_0x4e0180[_0x120233('0x257e')]:undefined})[_0x120233('0x1376')][_0x120233('0x21ad')](function(_0x5978bf){var _0x138cec=_0x120233;_0x266ec6['accountConnected']=!![],_0x266ec6[_0x138cec('0x181e')]=_0x5978bf['rows']?_0x5978bf['rows']:[],_0x266ec6['item'][_0x138cec('0x1830')]&&(_0x266ec6[_0x138cec('0x1fa7')]=_0x86640f()[_0x138cec('0x1d2e')](_0x266ec6[_0x138cec('0x181e')],{'id':_0x266ec6[_0x138cec('0x19ca')][_0x138cec('0x1830')]}));})[_0x120233('0x1c1d')](function(_0x46cc70){var _0x146cec=_0x120233;_0x266ec6['accountConnected']=![],console[_0x146cec('0x2092')](_0x46cc70);});function _0x581dc0(){var _0x12e41e=_0x120233;_0x266ec6[_0x12e41e('0x1a69')]=[],_0x266ec6['customField']&&(_0x266ec6[_0x12e41e('0x19ca')][_0x12e41e('0x1830')]=_0x266ec6[_0x12e41e('0x1fa7')]['id'],_0x266ec6[_0x12e41e('0x19ca')][_0x12e41e('0xb45')]=_0x266ec6[_0x12e41e('0x1fa7')][_0x12e41e('0x19fe')],_0x266ec6[_0x12e41e('0x19ca')]['customField']=_0x266ec6[_0x12e41e('0x1fa7')][_0x12e41e('0xf50')]),_0x36e21c[_0x12e41e('0x1c44')][_0x12e41e('0x186f')](_0x266ec6['item'])[_0x12e41e('0x1376')][_0x12e41e('0x21ad')](function(_0x4d5871){var _0x4d2195=_0x12e41e;_0x266ec6[_0x4d2195('0x1b9a')][_0x4d2195('0xd0c')](_0x4d5871),_0x3d01f1[_0x4d2195('0xdb1')]({'title':_0x86640f()[_0x4d2195('0x1b7e')](_0x5e5df9)+'\x20properly\x20created','msg':_0x86640f()[_0x4d2195('0x1b7e')](_0x5e5df9)+'\x20has\x20been\x20created!'}),_0x1a4953();})[_0x12e41e('0x1c1d')](function(_0x3d932e){var _0x4edd30=_0x12e41e;console[_0x4edd30('0x2092')](_0x3d932e),_0x266ec6[_0x4edd30('0x1a69')]=_0x3d932e[_0x4edd30('0x11c2')][_0x4edd30('0x1a69')]||[{'message':_0x3d932e[_0x4edd30('0x174f')](),'type':_0x4edd30('0x1a23')}];});}function _0x41825c(){var _0x37fd23=_0x120233;_0x266ec6[_0x37fd23('0x1a69')]=[],_0x266ec6['customField']&&(_0x266ec6[_0x37fd23('0x19ca')]['idField']=_0x266ec6[_0x37fd23('0x1fa7')]['id'],_0x266ec6[_0x37fd23('0x19ca')][_0x37fd23('0xb45')]=_0x266ec6[_0x37fd23('0x1fa7')][_0x37fd23('0x19fe')],_0x266ec6[_0x37fd23('0x19ca')][_0x37fd23('0x1fa7')]=_0x266ec6[_0x37fd23('0x1fa7')][_0x37fd23('0xf50')]),_0x36e21c[_0x37fd23('0x1c44')]['update']({'id':_0x266ec6['item']['id']},_0x266ec6[_0x37fd23('0x19ca')])[_0x37fd23('0x1376')][_0x37fd23('0x21ad')](function(_0xd41cb9){var _0x58b16b=_0x37fd23,_0x1114fb=_0x86640f()[_0x58b16b('0x1d2e')](_0x266ec6[_0x58b16b('0x1b9a')],{'id':_0xd41cb9['id']});_0x1114fb&&_0x86640f()['merge'](_0x1114fb,_0xd41cb9),_0x3d01f1['success']({'title':_0x86640f()[_0x58b16b('0x1b7e')](_0x5e5df9)+'\x20properly\x20saved!','msg':_0x86640f()[_0x58b16b('0x1b7e')](_0x5e5df9)+_0x58b16b('0x2249')}),_0x1a4953();})[_0x37fd23('0x1c1d')](function(_0xc0e2e){var _0x3509bc=_0x37fd23;console[_0x3509bc('0x2092')](_0xc0e2e),_0x266ec6['errors']=_0xc0e2e[_0x3509bc('0x11c2')][_0x3509bc('0x1a69')]||[{'message':_0xc0e2e['toString'](),'type':_0x3509bc('0x1488')}];});}function _0xf529f(_0x4242ec){var _0x43a522=_0x120233;_0x266ec6[_0x43a522('0x1a69')]=[];var _0x92de48=_0x145e4c[_0x43a522('0xa33')]()[_0x43a522('0x4b4')](_0x43a522('0x196b'))[_0x43a522('0x13fb')](_0x43a522('0x15f2')+_0x5e5df9+_0x43a522('0x25e0'))[_0x43a522('0x7a7')](_0x43a522('0x2e4')+_0x86640f()[_0x43a522('0x1b7e')](_0x5e5df9))['ok'](_0x43a522('0xbfd'))['cancel']('Cancel')['targetEvent'](_0x4242ec);_0x145e4c['show'](_0x92de48)['then'](function(){var _0x27bb8f=_0x43a522;_0x36e21c[_0x27bb8f('0x1c44')][_0x27bb8f('0x1164')]({'id':_0x266ec6['item']['id']})[_0x27bb8f('0x1376')][_0x27bb8f('0x21ad')](function(){var _0x553dc1=_0x27bb8f;_0x86640f()[_0x553dc1('0x16a2')](_0x266ec6['items'],{'id':_0x266ec6[_0x553dc1('0x19ca')]['id']}),_0x3d01f1[_0x553dc1('0xdb1')]({'title':_0x86640f()[_0x553dc1('0x1b7e')](_0x5e5df9)+'\x20properly\x20deleted!','msg':_0x86640f()[_0x553dc1('0x1b7e')](_0x5e5df9)+_0x553dc1('0xb4a')}),_0x1a4953();})[_0x27bb8f('0x1c1d')](function(_0x44db6c){var _0x5247ff=_0x27bb8f;console[_0x5247ff('0x2092')](_0x44db6c),_0x266ec6[_0x5247ff('0x1a69')]=_0x44db6c[_0x5247ff('0x11c2')]['errors']||[{'message':_0x44db6c[_0x5247ff('0x174f')](),'type':_0x5247ff('0x2175')}];});},function(){});}function _0xc2ed47(){var _0x293216=_0x120233;return _0x266ec6[_0x293216('0x19ca')][_0x293216('0x1651')]!==undefined?_0x266ec6[_0x293216('0x19ca')][_0x293216('0x1651')]:_0x293216('0x17f7');}function _0x1a4953(){var _0x233e4c=_0x120233;_0x145e4c[_0x233e4c('0x1c24')]();}}const _0x4f3865=_0x450527;_0x3a9f14[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),'$translate',_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0xe97'),_0x3877e3('0xab4')];function _0x3a9f14(_0x57196c,_0xa0d8c0,_0x2e6e93,_0x514e6d,_0x51eeb2,_0x325193,_0x1f51a3,_0x111daa,_0x1e2816,_0x9e8460,_0x32b920,_0x21691d){var _0x3c09c8=_0x3877e3,_0x5e0dff=this;_0x5e0dff['currentUser']=_0x9e8460[_0x3c09c8('0x15ed')](),_0x5e0dff[_0x3c09c8('0x2ff')]=_0x325193,_0x5e0dff[_0x3c09c8('0x21e')]=_0x1f51a3,_0x5e0dff['passwordPattern']=_0x5e0dff[_0x3c09c8('0x21e')][_0x3c09c8('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5e0dff[_0x3c09c8('0x626')]=_0xa0d8c0[_0x3c09c8('0x1162')]()+'://'+_0xa0d8c0[_0x3c09c8('0x1c01')](),_0x5e0dff[_0x3c09c8('0xe97')]=_0x32b920||_0x57196c[_0x3c09c8('0x171b')][_0x3c09c8('0xe97')]||{},_0x5e0dff[_0x3c09c8('0xab4')]=_0x21691d&&_0x21691d[_0x3c09c8('0x205f')]==0x1?_0x21691d[_0x3c09c8('0x1b33')][0x0]:null,_0x5e0dff[_0x3c09c8('0x5ed')]=_0x9e8460[_0x3c09c8('0x1778')](_0x5e0dff['userProfileSection']?_0x5e0dff[_0x3c09c8('0xab4')]['crudPermissions']:null),_0x5e0dff[_0x3c09c8('0x126a')]={},_0x5e0dff[_0x3c09c8('0x302')]=_0x57196c[_0x3c09c8('0x171b')][_0x3c09c8('0x12e1')]||0x0,_0x5e0dff[_0x3c09c8('0x95b')]=_0x1e2816['info'],_0x5e0dff[_0x3c09c8('0x1cab')]=_0x3be248,_0x5e0dff[_0x3c09c8('0x2640')]=_0x2179fd;function _0x3be248(){var _0x483fad=_0x3c09c8;_0x57196c['go'](_0x483fad('0x1849'),{},{'reload':_0x483fad('0x1849')});}function _0x2179fd(){var _0x491fda=_0x3c09c8;_0x111daa['intFreshsalesAccount'][_0x491fda('0x5ef')]({'id':_0x5e0dff[_0x491fda('0xe97')]['id']},_0x5e0dff[_0x491fda('0xe97')])['$promise'][_0x491fda('0x21ad')](function(){var _0x5390a6=_0x491fda;_0x1e2816[_0x5390a6('0xdb1')]({'title':_0x5390a6('0x7bf'),'msg':_0x5e0dff[_0x5390a6('0xe97')][_0x5390a6('0x19fe')]?_0x5e0dff[_0x5390a6('0xe97')][_0x5390a6('0x19fe')]+_0x5390a6('0xa8d'):''});})[_0x491fda('0x1c1d')](function(_0x43d361){var _0x3fd0b6=_0x491fda;_0x1e2816['error']({'title':_0x43d361[_0x3fd0b6('0x209')]?_0x3fd0b6('0x22d')+_0x43d361['status']+_0x3fd0b6('0xa99')+_0x43d361[_0x3fd0b6('0x1808')]:_0x3fd0b6('0x982'),'msg':_0x43d361['data']?JSON['stringify'](_0x43d361[_0x3fd0b6('0x11c2')]):_0x43d361[_0x3fd0b6('0x174f')]()});});}}const _0x3ed342=_0x3a9f14,_0x35c234=_0x398308['p']+_0x3877e3('0x2420');_0x5a8a95[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$window','$state',_0x3877e3('0x2828'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),'$translate',_0x3877e3('0x3d2'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),'msUtils',_0x3877e3('0x1908'),'Auth',_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x5a8a95(_0x275dcf,_0x377948,_0x352a7a,_0xc583fa,_0x54d3eb,_0x549101,_0xd624ef,_0x2629b0,_0x11311d,_0x32c032,_0x34b9fc,_0x1ccf07,_0x50d804,_0x17b223,_0x46a770,_0x374213,_0x49f12d){var _0x29a1e9=_0x3877e3,_0x474488=this;_0x474488[_0x29a1e9('0x2ff')]=_0x374213,_0x474488[_0x29a1e9('0x21e')]=_0x49f12d,_0x474488[_0x29a1e9('0x123f')]=_0x46a770[_0x29a1e9('0x15ed')](),_0x474488[_0x29a1e9('0x3d2')]=_0x11311d||{'count':0x0,'rows':[]},_0x474488[_0x29a1e9('0x758')]=_0x32c032,_0x474488['userProfileSection']=_0x34b9fc&&_0x34b9fc[_0x29a1e9('0x205f')]==0x1?_0x34b9fc[_0x29a1e9('0x1b33')][0x0]:null,_0x474488[_0x29a1e9('0x5ed')]=_0x46a770[_0x29a1e9('0x1778')](_0x474488['userProfileSection']?_0x474488[_0x29a1e9('0xab4')][_0x29a1e9('0x5ed')]:null),_0x474488[_0x29a1e9('0x1897')]='freshsalesAccounts',_0x474488[_0x29a1e9('0x11dc')]='',_0x474488['listOrderAsc']=null,_0x474488[_0x29a1e9('0x2508')]=[],_0x474488['query']={'fields':_0x29a1e9('0xe95'),'limit':0xa,'page':0x1},_0x474488[_0x29a1e9('0x1c88')]=_0x3830e0,_0x474488[_0x29a1e9('0x155c')]=_0x1aecb0,_0x474488[_0x29a1e9('0x2593')]=_0x18abcc,_0x474488[_0x29a1e9('0xdb1')]=_0x5ec52a,_0x474488[_0x29a1e9('0x103b')]=_0x3b328a,_0x474488[_0x29a1e9('0x1ea2')]=_0xd9dbc5,_0x474488[_0x29a1e9('0x201c')]=_0x5f44e4,_0x474488[_0x29a1e9('0x9')]=_0x2aef38,_0x474488[_0x29a1e9('0xc48')]=_0x1031a9,_0x474488[_0x29a1e9('0x1dea')]=_0x213897,_0x474488[_0x29a1e9('0x25fc')]=_0x597958;function _0x3830e0(_0x5b5ba3){var _0x183b3b=_0x29a1e9;_0x352a7a['go'](_0x183b3b('0x846'),{'id':_0x5b5ba3['id'],'freshsalesAccount':_0x5b5ba3,'crudPermissions':_0x474488[_0x183b3b('0x5ed')]});}function _0x1aecb0(_0x4ade27){var _0x34cc02=_0x29a1e9;return _0x1ccf07[_0x34cc02('0xe7')]['getFields']({'id':_0x4ade27['id'],'test':!![]})[_0x34cc02('0x1376')][_0x34cc02('0x21ad')](function(){var _0x303b1a=_0x34cc02;_0x17b223['success']({'title':_0x303b1a('0x2b4'),'msg':_0x303b1a('0x1c80')});})[_0x34cc02('0x1c1d')](function(_0x4f3e67){var _0x5a3966=_0x34cc02;_0x17b223[_0x5a3966('0x2092')]({'title':'FreshsalesAccount\x20properly\x20tested','msg':_0x4f3e67['data']?_0x4f3e67[_0x5a3966('0x11c2')]['message']?_0x4f3e67[_0x5a3966('0x11c2')][_0x5a3966('0x1224')]:JSON[_0x5a3966('0x25e')](_0x4f3e67[_0x5a3966('0x11c2')]):_0x4f3e67[_0x5a3966('0x174f')]()});});}function _0x18abcc(_0x4270e6,_0x392187){var _0x209098=_0x29a1e9,_0x934662=_0x54d3eb[_0x209098('0xa33')]()[_0x209098('0x4b4')](_0x209098('0x25b6')+_0x86640f()[_0x209098('0x2159')](_0x209098('0xe97'))+'?')[_0x209098('0x276b')](_0x209098('0x622')+(_0x4270e6[_0x209098('0x19fe')]||_0x209098('0xe97'))+_0x209098('0x2135')+_0x209098('0x25e0'))['ariaLabel'](_0x209098('0x1976'))[_0x209098('0x1e6d')](_0x392187)['ok']('OK')[_0x209098('0x3b5')]('CANCEL');_0x54d3eb[_0x209098('0x853')](_0x934662)[_0x209098('0x21ad')](function(){_0x5f44e4(_0x4270e6);},function(){console['log']('CANCEL');});}var _0x371ecf=!![],_0x46cf42=0x1;_0x275dcf[_0x29a1e9('0x10e8')]('vm.query.filter',function(_0x1f437b,_0x2c82a0){var _0x4533cb=_0x29a1e9;_0x371ecf?_0xd624ef(function(){_0x371ecf=![];}):(!_0x2c82a0&&(_0x46cf42=_0x474488[_0x4533cb('0x77')][_0x4533cb('0x2376')]),_0x1f437b!==_0x2c82a0&&(_0x474488[_0x4533cb('0x77')][_0x4533cb('0x2376')]=0x1),!_0x1f437b&&(_0x474488['query']['page']=_0x46cf42),_0x474488['getFreshsalesAccounts']());});function _0x5ec52a(_0x1c3a88){_0x474488['freshsalesAccounts']=_0x1c3a88||{'count':0x0,'rows':[]};}function _0x3b328a(){var _0x3cfb4b=_0x29a1e9;_0x474488['query'][_0x3cfb4b('0x15a5')]=(_0x474488[_0x3cfb4b('0x77')][_0x3cfb4b('0x2376')]-0x1)*_0x474488[_0x3cfb4b('0x77')][_0x3cfb4b('0x1f4a')],_0x46a770[_0x3cfb4b('0x21de')](_0x3cfb4b('0x1bd8'))?_0x474488[_0x3cfb4b('0x71b')]=_0x1ccf07[_0x3cfb4b('0xe7')][_0x3cfb4b('0x595')](_0x474488[_0x3cfb4b('0x77')],_0x5ec52a)['$promise']:(_0x474488[_0x3cfb4b('0x77')]['id']=_0x474488[_0x3cfb4b('0x758')]['id'],_0x474488[_0x3cfb4b('0x77')][_0x3cfb4b('0x26ad')]='FreshsalesAccounts',_0x474488['promise']=_0x1ccf07['userProfile'][_0x3cfb4b('0x321')](_0x474488[_0x3cfb4b('0x77')],_0x5ec52a)[_0x3cfb4b('0x1376')]);}function _0xd9dbc5(_0x589212,_0x38d06a){var _0x1c59c7=_0x29a1e9;_0x54d3eb[_0x1c59c7('0x853')]({'controller':_0x1c59c7('0x1cb2'),'controllerAs':'vm','templateUrl':_0x35c234,'parent':angular['element'](_0x549101[_0x1c59c7('0x2452')]),'targetEvent':_0x589212,'clickOutsideToClose':!![],'locals':{'freshsalesAccount':_0x38d06a,'freshsalesAccounts':_0x474488[_0x1c59c7('0x3d2')]['rows'],'license':_0x474488[_0x1c59c7('0x2ff')],'setting':_0x474488[_0x1c59c7('0x21e')],'crudPermissions':_0x474488[_0x1c59c7('0x5ed')]}});}function _0x5f44e4(_0x4152ad){var _0x142a50=_0x29a1e9;_0x1ccf07['intFreshsalesAccount'][_0x142a50('0x1164')]({'id':_0x4152ad['id']})[_0x142a50('0x1376')][_0x142a50('0x21ad')](function(){var _0x1d2f66=_0x142a50;_0x86640f()[_0x1d2f66('0x16a2')](_0x474488[_0x1d2f66('0x3d2')][_0x1d2f66('0x1b33')],{'id':_0x4152ad['id']}),_0x474488[_0x1d2f66('0x3d2')]['count']-=0x1,!_0x474488['freshsalesAccounts'][_0x1d2f66('0x1b33')][_0x1d2f66('0x577')]&&_0x474488[_0x1d2f66('0x103b')](),_0x17b223[_0x1d2f66('0xdb1')]({'title':_0x86640f()[_0x1d2f66('0x2159')](_0x1d2f66('0x251'))+_0x1d2f66('0xe64'),'msg':_0x4152ad[_0x1d2f66('0x19fe')]?_0x4152ad[_0x1d2f66('0x19fe')]+_0x1d2f66('0xb4a'):''});})['catch'](function(_0x4df9a3){var _0xa6d7af=_0x142a50;if(_0x4df9a3['data']&&_0x4df9a3['data'][_0xa6d7af('0x1a69')]&&_0x4df9a3['data'][_0xa6d7af('0x1a69')][_0xa6d7af('0x577')]){_0x474488['errors']=_0x4df9a3[_0xa6d7af('0x11c2')][_0xa6d7af('0x1a69')]||[{'message':_0x4df9a3[_0xa6d7af('0x174f')](),'type':_0xa6d7af('0x55')}];for(var _0x4240b2=0x0;_0x4240b2<_0x4df9a3[_0xa6d7af('0x11c2')][_0xa6d7af('0x1a69')]['length'];_0x4240b2++){_0x17b223[_0xa6d7af('0x2092')]({'title':_0x4df9a3[_0xa6d7af('0x11c2')][_0xa6d7af('0x1a69')][_0x4240b2][_0xa6d7af('0x7fa')],'msg':_0x4df9a3[_0xa6d7af('0x11c2')]['errors'][_0x4240b2][_0xa6d7af('0x1224')]});}}else _0x17b223[_0xa6d7af('0x2092')]({'title':_0x4df9a3[_0xa6d7af('0x209')]?_0xa6d7af('0x22d')+_0x4df9a3[_0xa6d7af('0x209')]+_0xa6d7af('0xa99')+_0x4df9a3[_0xa6d7af('0x1808')]:_0xa6d7af('0x55'),'msg':_0x4df9a3[_0xa6d7af('0x11c2')]?JSON[_0xa6d7af('0x25e')](_0x4df9a3[_0xa6d7af('0x11c2')][_0xa6d7af('0x1224')]):_0x4df9a3[_0xa6d7af('0x1224')]||_0x4df9a3[_0xa6d7af('0x174f')]()});});}function _0x2aef38(){var _0x33783e=_0x29a1e9,_0x83fe78=angular['copy'](_0x474488['selectedFreshsalesAccounts']);return _0x474488[_0x33783e('0x2508')]=[],_0x83fe78;}function _0x1031a9(_0x36aa40){var _0x3b4c54=_0x29a1e9,_0x2c5ad5=_0x54d3eb[_0x3b4c54('0xa33')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20freshsalesAccounts?')[_0x3b4c54('0x276b')](''+_0x474488[_0x3b4c54('0x2508')][_0x3b4c54('0x577')]+_0x3b4c54('0xd74')+_0x3b4c54('0x25e0'))[_0x3b4c54('0x7a7')]('delete\x20FreshsalesAccounts')[_0x3b4c54('0x1e6d')](_0x36aa40)['ok']('OK')[_0x3b4c54('0x3b5')](_0x3b4c54('0x284b'));_0x54d3eb['show'](_0x2c5ad5)[_0x3b4c54('0x21ad')](function(){var _0x3279f9=_0x3b4c54;_0x474488[_0x3279f9('0x2508')]['forEach'](function(_0x1234a2){_0x5f44e4(_0x1234a2);}),_0x474488[_0x3279f9('0x2508')]=[];});}function _0x213897(){_0x474488['selectedFreshsalesAccounts']=[];}function _0x597958(){var _0x50d0d3=_0x29a1e9;_0x474488[_0x50d0d3('0x2508')]=_0x474488[_0x50d0d3('0x3d2')][_0x50d0d3('0x1b33')];}}const _0x22f660=_0x5a8a95;_0x14c838[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$state',_0x3877e3('0x14c7'),'$mdDialog','$q',_0x3877e3('0x13c1'),'toasty',_0x3877e3('0x1080'),_0x3877e3('0x16da'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'license','setting',_0x3877e3('0x5ed')];function _0x14c838(_0x3893ca,_0x2faa5b,_0x566ff6,_0x5582ac,_0x1517f6,_0x57d142,_0x1eb2fc,_0x4929a7,_0x1c30b6,_0x4cebe4,_0x15566d,_0x3f417f,_0x4d8191,_0x31152f){var _0x2ce8ca=_0x3877e3,_0x1d1457=this;_0x1d1457[_0x2ce8ca('0x123f')]=_0x15566d[_0x2ce8ca('0x15ed')](),_0x1d1457['errors']=[],_0x1d1457[_0x2ce8ca('0x21e')]=_0x4d8191,_0x1d1457[_0x2ce8ca('0x2ff')]=_0x3f417f,_0x1d1457[_0x2ce8ca('0x5ed')]=_0x31152f,_0x1d1457[_0x2ce8ca('0x126a')]={},_0x1d1457['passwordPattern']=_0x1d1457['setting']&&_0x1d1457[_0x2ce8ca('0x21e')][_0x2ce8ca('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1d1457[_0x2ce8ca('0x4b4')]=_0x2ce8ca('0x153e'),_0x1d1457['salesforceAccount']=angular[_0x2ce8ca('0xd75')](_0x1c30b6),_0x1d1457[_0x2ce8ca('0x1080')]=_0x4929a7,_0x1d1457[_0x2ce8ca('0x3f9')]=![];!_0x1d1457[_0x2ce8ca('0x16da')]&&(_0x1d1457['salesforceAccount']={'type':_0x2ce8ca('0x1adf'),'serverUrl':_0x566ff6[_0x2ce8ca('0x1162')]()+_0x2ce8ca('0x22a9')+_0x566ff6['host']()+(_0x566ff6[_0x2ce8ca('0x24fe')]()?':'+_0x566ff6['port']():'')},_0x1d1457[_0x2ce8ca('0x4b4')]=_0x2ce8ca('0x2645'),_0x1d1457[_0x2ce8ca('0x3f9')]=!![]);_0x1d1457['addNewSalesforceAccount']=_0x10479e,_0x1d1457[_0x2ce8ca('0x284e')]=_0x36f426,_0x1d1457[_0x2ce8ca('0x1fe8')]=_0xad282,_0x1d1457[_0x2ce8ca('0x279')]=_0x57e476,_0x1d1457['closeDialog']=_0x274404;function _0x10479e(){var _0x157f39=_0x2ce8ca;_0x1d1457[_0x157f39('0x1a69')]=[],_0x4cebe4[_0x157f39('0x102a')][_0x157f39('0x186f')](_0x1d1457[_0x157f39('0x16da')])[_0x157f39('0x1376')]['then'](function(_0x258c60){var _0x18ccea=_0x157f39;_0x1d1457[_0x18ccea('0x1080')][_0x18ccea('0xd0c')](_0x258c60[_0x18ccea('0x3bc')]()),_0x1eb2fc[_0x18ccea('0xdb1')]({'title':_0x18ccea('0x8e4'),'msg':_0x1d1457[_0x18ccea('0x16da')][_0x18ccea('0x19fe')]?_0x1d1457['salesforceAccount']['name']+'\x20has\x20been\x20created!':''}),_0x274404(_0x258c60);})[_0x157f39('0x1c1d')](function(_0xe098c7){var _0x2c6dbb=_0x157f39;if(_0xe098c7[_0x2c6dbb('0x11c2')]&&_0xe098c7[_0x2c6dbb('0x11c2')]['errors']&&_0xe098c7[_0x2c6dbb('0x11c2')]['errors'][_0x2c6dbb('0x577')]){_0x1d1457[_0x2c6dbb('0x1a69')]=_0xe098c7['data'][_0x2c6dbb('0x1a69')]||[{'message':_0xe098c7[_0x2c6dbb('0x174f')](),'type':_0x2c6dbb('0x2786')}];for(var _0x318ba1=0x0;_0x318ba1<_0xe098c7[_0x2c6dbb('0x11c2')][_0x2c6dbb('0x1a69')][_0x2c6dbb('0x577')];_0x318ba1+=0x1){_0x1eb2fc[_0x2c6dbb('0x2092')]({'title':_0xe098c7['data']['errors'][_0x318ba1][_0x2c6dbb('0x7fa')],'msg':_0xe098c7['data']['errors'][_0x318ba1][_0x2c6dbb('0x1224')]});}}else _0x1eb2fc[_0x2c6dbb('0x2092')]({'title':_0xe098c7[_0x2c6dbb('0x209')]?_0x2c6dbb('0x22d')+_0xe098c7[_0x2c6dbb('0x209')]+'\x20-\x20'+_0xe098c7['statusText']:_0x2c6dbb('0x2786'),'msg':_0xe098c7[_0x2c6dbb('0x11c2')]?JSON[_0x2c6dbb('0x25e')](_0xe098c7[_0x2c6dbb('0x11c2')]['message']):_0xe098c7[_0x2c6dbb('0x174f')]()});});}function _0x36f426(){var _0x1cae9a=_0x2ce8ca;_0x1d1457[_0x1cae9a('0x1a69')]=[],_0x4cebe4[_0x1cae9a('0x102a')]['update']({'id':_0x1d1457[_0x1cae9a('0x16da')]['id']},_0x1d1457[_0x1cae9a('0x16da')])[_0x1cae9a('0x1376')]['then'](function(_0x17b3ab){var _0x51fc10=_0x1cae9a,_0x438e02=_0x86640f()[_0x51fc10('0x1d2e')](_0x1d1457[_0x51fc10('0x1080')],{'id':_0x17b3ab['id']});_0x438e02&&_0x86640f()['merge'](_0x438e02,_0x86640f()[_0x51fc10('0xc50')](_0x17b3ab[_0x51fc10('0x3bc')](),_0x86640f()[_0x51fc10('0x223b')](_0x438e02))),_0x1eb2fc[_0x51fc10('0xdb1')]({'title':'SalesforceAccount\x20properly\x20saved!','msg':_0x1d1457[_0x51fc10('0x16da')][_0x51fc10('0x19fe')]?_0x1d1457[_0x51fc10('0x16da')][_0x51fc10('0x19fe')]+_0x51fc10('0x2249'):''}),_0x274404(_0x17b3ab);})['catch'](function(_0x4f9aa3){var _0x5c0933=_0x1cae9a;if(_0x4f9aa3[_0x5c0933('0x11c2')]&&_0x4f9aa3[_0x5c0933('0x11c2')][_0x5c0933('0x1a69')]&&_0x4f9aa3[_0x5c0933('0x11c2')][_0x5c0933('0x1a69')][_0x5c0933('0x577')]){_0x1d1457[_0x5c0933('0x1a69')]=_0x4f9aa3[_0x5c0933('0x11c2')][_0x5c0933('0x1a69')]||[{'message':_0x4f9aa3[_0x5c0933('0x174f')](),'type':_0x5c0933('0x1d28')}];for(var _0x5a128c=0x0;_0x5a128c<_0x4f9aa3[_0x5c0933('0x11c2')][_0x5c0933('0x1a69')]['length'];_0x5a128c++){_0x1eb2fc[_0x5c0933('0x2092')]({'title':_0x4f9aa3[_0x5c0933('0x11c2')][_0x5c0933('0x1a69')][_0x5a128c]['type'],'msg':_0x4f9aa3[_0x5c0933('0x11c2')][_0x5c0933('0x1a69')][_0x5a128c][_0x5c0933('0x1224')]});}}else _0x1eb2fc[_0x5c0933('0x2092')]({'title':_0x4f9aa3['status']?'API:'+_0x4f9aa3[_0x5c0933('0x209')]+_0x5c0933('0xa99')+_0x4f9aa3['statusText']:_0x5c0933('0x1d28'),'msg':_0x4f9aa3[_0x5c0933('0x11c2')]?JSON[_0x5c0933('0x25e')](_0x4f9aa3[_0x5c0933('0x11c2')][_0x5c0933('0x1224')]):_0x4f9aa3[_0x5c0933('0x174f')]()});});}function _0xad282(_0x3c4e2d){var _0x27d0d8=_0x2ce8ca;_0x1d1457[_0x27d0d8('0x1a69')]=[];var _0x416518=_0x5582ac[_0x27d0d8('0xa33')]()['title'](_0x27d0d8('0x196b'))[_0x27d0d8('0x13fb')](_0x27d0d8('0x1438'))[_0x27d0d8('0x7a7')](_0x27d0d8('0x1de8'))['ok'](_0x27d0d8('0xbfd'))[_0x27d0d8('0x3b5')]('Cancel')[_0x27d0d8('0x1e6d')](_0x3c4e2d);_0x5582ac[_0x27d0d8('0x853')](_0x416518)[_0x27d0d8('0x21ad')](function(){var _0x39dc87=_0x27d0d8;_0x4cebe4[_0x39dc87('0x102a')][_0x39dc87('0x1164')]({'id':_0x1d1457[_0x39dc87('0x16da')]['id']})[_0x39dc87('0x1376')][_0x39dc87('0x21ad')](function(){var _0x34ee00=_0x39dc87;_0x86640f()[_0x34ee00('0x16a2')](_0x1d1457[_0x34ee00('0x1080')],{'id':_0x1d1457[_0x34ee00('0x16da')]['id']}),_0x1eb2fc['success']({'title':'SalesforceAccount\x20properly\x20deleted!','msg':(_0x1d1457[_0x34ee00('0x16da')][_0x34ee00('0x19fe')]||_0x34ee00('0x16da'))+_0x34ee00('0xb4a')}),_0x274404(_0x1d1457[_0x34ee00('0x16da')]);})[_0x39dc87('0x1c1d')](function(_0x4f70c1){var _0x392a22=_0x39dc87;if(_0x4f70c1[_0x392a22('0x11c2')]&&_0x4f70c1[_0x392a22('0x11c2')][_0x392a22('0x1a69')]&&_0x4f70c1[_0x392a22('0x11c2')]['errors']['length']){_0x1d1457[_0x392a22('0x1a69')]=_0x4f70c1[_0x392a22('0x11c2')][_0x392a22('0x1a69')]||[{'message':_0x4f70c1[_0x392a22('0x174f')](),'type':_0x392a22('0x15ff')}];for(var _0x31397e=0x0;_0x31397e<_0x4f70c1[_0x392a22('0x11c2')][_0x392a22('0x1a69')][_0x392a22('0x577')];_0x31397e++){_0x1eb2fc[_0x392a22('0x2092')]({'title':_0x4f70c1[_0x392a22('0x11c2')][_0x392a22('0x1a69')][_0x31397e]['type'],'msg':_0x4f70c1['data']['errors'][_0x31397e][_0x392a22('0x1224')]});}}else _0x1eb2fc[_0x392a22('0x2092')]({'title':_0x4f70c1[_0x392a22('0x209')]?_0x392a22('0x22d')+_0x4f70c1['status']+_0x392a22('0xa99')+_0x4f70c1['statusText']:'api.intSalesforceAccount.delete','msg':_0x4f70c1[_0x392a22('0x11c2')]?JSON[_0x392a22('0x25e')](_0x4f70c1[_0x392a22('0x11c2')][_0x392a22('0x1224')]):_0x4f70c1[_0x392a22('0x1224')]||_0x4f70c1[_0x392a22('0x174f')]()});});},function(){});}function _0x57e476(_0x36ee75){return _0x36ee75===null?undefined:new Date(_0x36ee75);}function _0x274404(_0x412997){var _0x1c6eec=_0x2ce8ca;_0x5582ac[_0x1c6eec('0x1c24')](_0x412997);}}const _0x27544b=_0x14c838,_0x4239da=_0x398308['p']+'src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/configurations/dialog.html/dialog-[chunkhash].html',_0x4a588d=_0x398308['p']+_0x3877e3('0x6ef');_0x5243e7[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x15bc')];function _0x5243e7(_0x20a865,_0x374862,_0xc01a35,_0x5aef4d,_0x1ce415){var _0x251e80=_0x3877e3,_0x45b870=this;_0x45b870[_0x251e80('0x123f')]=_0x1ce415[_0x251e80('0x15ed')](),_0x45b870[_0x251e80('0x16da')]={},_0x45b870[_0x251e80('0x78c')]={},_0x45b870[_0x251e80('0x1ca3')]=[],_0x45b870[_0x251e80('0x2181')]=-0x1,_0x45b870[_0x251e80('0x5ed')],_0x45b870[_0x251e80('0x1d75')]=_0x1e38df,_0x45b870[_0x251e80('0x345')]=_0x55991e,_0x45b870[_0x251e80('0x6bf')]=_0x42b58e,_0x45b870[_0x251e80('0x26e1')]=_0xd851fb,_0x45b870['selectChangedAdvanced']=_0x426e84;function _0x426e84(){var _0x4e2296=_0x251e80;return _0xc01a35[_0x4e2296('0x15cc')][_0x4e2296('0x5ef')]({'id':_0x45b870[_0x4e2296('0x78c')]['id']},_0x45b870['salesforceConfiguration'])['$promise'][_0x4e2296('0x21ad')](function(){var _0x398632=_0x4e2296;_0x5aef4d['success']({'title':_0x398632('0x1b87'),'msg':_0x398632('0xd9')});})['catch'](function(_0x41a5c3){var _0xb8c5f=_0x4e2296;_0x5aef4d[_0xb8c5f('0x2092')]({'title':_0x41a5c3[_0xb8c5f('0x209')]?'API:'+_0x41a5c3[_0xb8c5f('0x209')]+_0xb8c5f('0xa99')+_0x41a5c3[_0xb8c5f('0x1808')]:_0xb8c5f('0x1891'),'msg':_0x41a5c3[_0xb8c5f('0x11c2')]?JSON[_0xb8c5f('0x25e')](_0x41a5c3[_0xb8c5f('0x11c2')]):_0x41a5c3[_0xb8c5f('0x174f')]()});});}function _0x1e38df(_0x40c87b,_0x2f469b){var _0x5d79aa=_0x251e80;_0x45b870[_0x5d79aa('0x16da')]=_0x40c87b,_0x45b870[_0x5d79aa('0x5ed')]=typeof _0x2f469b!==_0x5d79aa('0xddc')?_0x2f469b:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xc01a35[_0x5d79aa('0x102a')][_0x5d79aa('0xc44')]({'id':_0x45b870[_0x5d79aa('0x16da')]['id'],'sort':'-updatedAt'})[_0x5d79aa('0x1376')]['then'](function(_0x5e043b){var _0x4e7d2c=_0x5d79aa;return _0x45b870[_0x4e7d2c('0x1ca3')]=_0x5e043b[_0x4e7d2c('0x1b33')]?_0x5e043b['rows']:[],_0x45b870[_0x4e7d2c('0x1ca3')]['length']&&_0x45b870['getSalesforceConfiguration'](0x0),_0xc01a35['variable'][_0x4e7d2c('0x595')]({'nolimit':!![],'sort':_0x4e7d2c('0x19fe')})[_0x4e7d2c('0x1376')];})[_0x5d79aa('0x21ad')](function(_0x90adb3){var _0x1e5e2c=_0x5d79aa;_0x45b870[_0x1e5e2c('0x142d')]=_0x90adb3[_0x1e5e2c('0x1b33')]?_0x90adb3['rows']:[],_0x45b870[_0x1e5e2c('0x5f')]=_0x86640f()[_0x1e5e2c('0xcde')](_0x45b870['variables'],'id');})[_0x5d79aa('0x1c1d')](function(_0x469353){var _0x14fe14=_0x5d79aa;_0x5aef4d[_0x14fe14('0x2092')]({'title':_0x469353[_0x14fe14('0x209')]?_0x14fe14('0x22d')+_0x469353[_0x14fe14('0x209')]+_0x14fe14('0xa99')+_0x469353[_0x14fe14('0x1808')]:_0x14fe14('0x1c4e'),'msg':_0x469353[_0x14fe14('0x11c2')]?JSON[_0x14fe14('0x25e')](_0x469353[_0x14fe14('0x11c2')]):_0x469353[_0x14fe14('0x174f')]()});});}function _0x55991e(_0x15951f){var _0x1da2ce=_0x251e80;_0x45b870['salesforceConfiguration']=_0x45b870[_0x1da2ce('0x1ca3')][_0x15951f],_0x45b870[_0x1da2ce('0x2181')]=_0x15951f,_0xc01a35[_0x1da2ce('0x15cc')][_0x1da2ce('0x12d7')]({'id':_0x45b870[_0x1da2ce('0x78c')]['id']})[_0x1da2ce('0x1376')]['then'](function(_0x4cfdc0){var _0x344e3f=_0x1da2ce;return _0x45b870['subjects']=_0x4cfdc0['rows']?_0x4cfdc0[_0x344e3f('0x1b33')]:[],_0xc01a35['intSalesforceConfiguration'][_0x344e3f('0x377')]({'id':_0x45b870[_0x344e3f('0x78c')]['id']})['$promise'];})[_0x1da2ce('0x21ad')](function(_0x48042b){var _0x5b5726=_0x1da2ce;return _0x45b870[_0x5b5726('0x2161')]=_0x48042b[_0x5b5726('0x1b33')]?_0x48042b['rows']:[],_0xc01a35[_0x5b5726('0x15cc')][_0x5b5726('0x929')]({'id':_0x45b870[_0x5b5726('0x78c')]['id']})[_0x5b5726('0x1376')];})['then'](function(_0x33ea5b){var _0x2b97b5=_0x1da2ce;_0x45b870[_0x2b97b5('0x181e')]=_0x33ea5b[_0x2b97b5('0x1b33')]?_0x33ea5b[_0x2b97b5('0x1b33')]:[];})[_0x1da2ce('0x1c1d')](function(_0x4a9254){var _0x58f0e3=_0x1da2ce;_0x5aef4d[_0x58f0e3('0x2092')]({'title':_0x4a9254['status']?'API:'+_0x4a9254[_0x58f0e3('0x209')]+'\x20-\x20'+_0x4a9254[_0x58f0e3('0x1808')]:'SYSTEM:GETConfigurations','msg':_0x4a9254[_0x58f0e3('0x11c2')]?JSON[_0x58f0e3('0x25e')](_0x4a9254[_0x58f0e3('0x11c2')]):_0x4a9254[_0x58f0e3('0x174f')]()});});}function _0x42b58e(_0x46925e,_0x1d6321){var _0x583f14=_0x251e80;_0x20a865[_0x583f14('0x853')]({'controller':_0x583f14('0x526'),'controllerAs':'vm','templateUrl':_0x4239da,'parent':angular[_0x583f14('0x1676')](_0x374862[_0x583f14('0x2452')]),'targetEvent':_0x46925e,'clickOutsideToClose':!![],'locals':{'salesforceConfiguration':_0x1d6321,'configurations':_0x45b870[_0x583f14('0x1ca3')],'license':null,'setting':null,'crudPermissions':_0x45b870[_0x583f14('0x5ed')]}})[_0x583f14('0x13e')](function(){var _0x90a6dc=_0x583f14;_0x45b870[_0x90a6dc('0x345')](0x0);});}function _0xd851fb(_0x4b7bc5,_0x2c1bc7){var _0x78c29a=_0x251e80,_0x8867d2=_0x20a865[_0x78c29a('0xa33')]()[_0x78c29a('0x4b4')](_0x78c29a('0xa43'))['htmlContent'](_0x78c29a('0x622')+(_0x2c1bc7[_0x78c29a('0x19fe')]||_0x78c29a('0x78c'))+_0x78c29a('0x2135')+_0x78c29a('0x25e0'))[_0x78c29a('0x7a7')](_0x78c29a('0x1e0e'))[_0x78c29a('0x1e6d')](_0x4b7bc5)['ok']('OK')[_0x78c29a('0x3b5')](_0x78c29a('0x284b'));_0x20a865[_0x78c29a('0x853')](_0x8867d2)['then'](function(){var _0x4ae47a=_0x78c29a;_0xc01a35[_0x4ae47a('0x15cc')][_0x4ae47a('0x1164')]({'id':_0x2c1bc7['id']})[_0x4ae47a('0x1376')][_0x4ae47a('0x21ad')](function(){var _0x3669f3=_0x4ae47a;_0x86640f()[_0x3669f3('0x16a2')](_0x45b870[_0x3669f3('0x1ca3')],{'id':_0x2c1bc7['id']}),_0x5aef4d[_0x3669f3('0xdb1')]({'title':_0x3669f3('0x17c4'),'msg':_0x2c1bc7[_0x3669f3('0x19fe')]?_0x2c1bc7['name']+'\x20has\x20been\x20deleted!':''});})[_0x4ae47a('0x1c1d')](function(_0x30bd79){var _0x483274=_0x4ae47a;_0x5aef4d[_0x483274('0x2092')]({'title':_0x30bd79[_0x483274('0x209')]?_0x483274('0x22d')+_0x30bd79[_0x483274('0x209')]+'\x20-\x20'+_0x30bd79[_0x483274('0x1808')]:_0x483274('0x2336'),'msg':_0x30bd79[_0x483274('0x11c2')]?JSON['stringify'](_0x30bd79[_0x483274('0x11c2')]):_0x30bd79[_0x483274('0x174f')]()});})[_0x4ae47a('0x13e')](function(){var _0x6d384=_0x4ae47a;_0x45b870[_0x6d384('0x345')](0x0);});},function(){var _0x1ee76c=_0x78c29a;console[_0x1ee76c('0x6fb')](_0x1ee76c('0x284b'));});}_0x45b870[_0x251e80('0x19ba')]=[],_0x45b870[_0x251e80('0x11de')]=_0x2955f9,_0x45b870[_0x251e80('0x2203')]=_0x11b358,_0x45b870[_0x251e80('0x858')]=_0x13de4b;function _0x2955f9(_0x5f517f,_0x43b89b){var _0x44b49b=_0x251e80;_0x20a865[_0x44b49b('0x853')]({'controller':_0x44b49b('0x216b'),'controllerAs':'vm','templateUrl':_0x4a588d,'parent':angular[_0x44b49b('0x1676')](_0x374862[_0x44b49b('0x2452')]),'targetEvent':_0x5f517f,'clickOutsideToClose':!![],'locals':{'type':_0x44b49b('0x32a'),'item':_0x43b89b,'items':_0x45b870[_0x44b49b('0x1033')],'configuration':_0x45b870[_0x44b49b('0x78c')],'account':_0x45b870['salesforceAccount'],'license':null,'setting':null,'crudPermissions':_0x45b870[_0x44b49b('0x5ed')]}});}function _0x4f2f67(_0x3638cf){var _0x45b7c6=_0x251e80;_0xc01a35[_0x45b7c6('0x124e')][_0x45b7c6('0x1164')]({'id':_0x3638cf['id']})['$promise'][_0x45b7c6('0x21ad')](function(){var _0x1cae3b=_0x45b7c6;_0x86640f()[_0x1cae3b('0x16a2')](_0x45b870[_0x1cae3b('0x1033')],{'id':_0x3638cf['id']}),_0x5aef4d['success']({'title':_0x1cae3b('0x17b8'),'msg':_0x1cae3b('0x2cf')});})[_0x45b7c6('0x1c1d')](function(_0x1c5276){var _0x24e41a=_0x45b7c6;_0x5aef4d[_0x24e41a('0x2092')]({'title':_0x1c5276[_0x24e41a('0x209')]?_0x24e41a('0x22d')+_0x1c5276[_0x24e41a('0x209')]+'\x20-\x20'+_0x1c5276[_0x24e41a('0x1808')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x1c5276[_0x24e41a('0x11c2')]?JSON['stringify'](_0x1c5276[_0x24e41a('0x11c2')]):_0x1c5276[_0x24e41a('0x174f')]()});});}function _0x11b358(_0x3baf48,_0x4d80c8){var _0x4b46ce=_0x251e80,_0x205047=_0x20a865[_0x4b46ce('0xa33')]()['title'](_0x4b46ce('0xe3a'))[_0x4b46ce('0x276b')](_0x4b46ce('0x2031')+_0x4b46ce('0x25e0'))[_0x4b46ce('0x7a7')](_0x4b46ce('0x566'))['targetEvent'](_0x3baf48)['ok']('OK')['cancel'](_0x4b46ce('0x284b'));_0x20a865[_0x4b46ce('0x853')](_0x205047)[_0x4b46ce('0x21ad')](function(){_0x4f2f67(_0x4d80c8);},function(){var _0x3f17aa=_0x4b46ce;console[_0x3f17aa('0x6fb')](_0x3f17aa('0x284b'));});}function _0x13de4b(_0x40ff32){var _0x4fea34=_0x251e80,_0x4b432e=_0x20a865[_0x4fea34('0xa33')]()[_0x4fea34('0x4b4')](_0x4fea34('0x6e8'))[_0x4fea34('0x276b')](_0x4fea34('0x622')+_0x45b870[_0x4fea34('0x19ba')][_0x4fea34('0x577')]+_0x4fea34('0xd74')+_0x4fea34('0x25e0'))[_0x4fea34('0x7a7')](_0x4fea34('0x1828'))[_0x4fea34('0x1e6d')](_0x40ff32)['ok']('OK')['cancel']('CANCEL');_0x20a865[_0x4fea34('0x853')](_0x4b432e)[_0x4fea34('0x21ad')](function(){var _0x4e1f15=_0x4fea34;_0x45b870[_0x4e1f15('0x19ba')]['forEach'](function(_0xc1a423){_0x4f2f67(_0xc1a423);}),_0x45b870['selectedSubjects']=[];});}_0x45b870[_0x251e80('0xbdf')]=[],_0x45b870['createOrEditDescription']=_0x25dce5,_0x45b870[_0x251e80('0x2378')]=_0x2d63ad,_0x45b870['deleteSelectedDescriptions']=_0x276a81;function _0x25dce5(_0x5db9ec,_0x1e8570){var _0x29a09f=_0x251e80;_0x20a865[_0x29a09f('0x853')]({'controller':_0x29a09f('0x216b'),'controllerAs':'vm','templateUrl':_0x4a588d,'parent':angular['element'](_0x374862[_0x29a09f('0x2452')]),'targetEvent':_0x5db9ec,'clickOutsideToClose':!![],'locals':{'type':_0x29a09f('0x1137'),'item':_0x1e8570,'items':_0x45b870[_0x29a09f('0x2161')],'configuration':_0x45b870[_0x29a09f('0x78c')],'account':_0x45b870[_0x29a09f('0x16da')],'license':null,'setting':null,'crudPermissions':_0x45b870[_0x29a09f('0x5ed')]}});}function _0x5e755a(_0x16e111){var _0x1e4a8b=_0x251e80;_0xc01a35[_0x1e4a8b('0x124e')][_0x1e4a8b('0x1164')]({'id':_0x16e111['id']})['$promise'][_0x1e4a8b('0x21ad')](function(){var _0x1dbc1b=_0x1e4a8b;_0x86640f()[_0x1dbc1b('0x16a2')](_0x45b870[_0x1dbc1b('0x2161')],{'id':_0x16e111['id']}),_0x5aef4d[_0x1dbc1b('0xdb1')]({'title':_0x1dbc1b('0x1af8'),'msg':'Description\x20has\x20been\x20deleted!'});})['catch'](function(_0x38d0ba){var _0x5600f4=_0x1e4a8b;_0x5aef4d['error']({'title':_0x38d0ba['status']?_0x5600f4('0x22d')+_0x38d0ba[_0x5600f4('0x209')]+_0x5600f4('0xa99')+_0x38d0ba[_0x5600f4('0x1808')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x38d0ba['data']?JSON[_0x5600f4('0x25e')](_0x38d0ba[_0x5600f4('0x11c2')]):_0x38d0ba['toString']()});});}function _0x2d63ad(_0x5d2069,_0x353c61){var _0x18b8f6=_0x251e80,_0x3e05f2=_0x20a865[_0x18b8f6('0xa33')]()[_0x18b8f6('0x4b4')](_0x18b8f6('0x1d59'))[_0x18b8f6('0x276b')]('Description'+_0x18b8f6('0x25e0'))[_0x18b8f6('0x7a7')](_0x18b8f6('0xe67'))[_0x18b8f6('0x1e6d')](_0x5d2069)['ok']('OK')[_0x18b8f6('0x3b5')]('CANCEL');_0x20a865['show'](_0x3e05f2)[_0x18b8f6('0x21ad')](function(){_0x5e755a(_0x353c61);},function(){var _0x18cbd4=_0x18b8f6;console[_0x18cbd4('0x6fb')](_0x18cbd4('0x284b'));});}function _0x276a81(_0x2909a9){var _0x28815e=_0x251e80,_0x20476a=_0x20a865[_0x28815e('0xa33')]()[_0x28815e('0x4b4')](_0x28815e('0x6e'))[_0x28815e('0x276b')](_0x28815e('0x622')+_0x45b870['selectedDescriptions'][_0x28815e('0x577')]+'\x20selected'+_0x28815e('0x25e0'))[_0x28815e('0x7a7')]('delete\x20descriptions')[_0x28815e('0x1e6d')](_0x2909a9)['ok']('OK')[_0x28815e('0x3b5')](_0x28815e('0x284b'));_0x20a865[_0x28815e('0x853')](_0x20476a)[_0x28815e('0x21ad')](function(){var _0x38681c=_0x28815e;_0x45b870[_0x38681c('0xbdf')][_0x38681c('0x1a52')](function(_0x361b09){_0x5e755a(_0x361b09);}),_0x45b870['selectedDescriptions']=[];});}_0x45b870['selectedFields']=[],_0x45b870[_0x251e80('0x97')]=_0x57d11c,_0x45b870[_0x251e80('0x222e')]=_0x502523,_0x45b870['deleteSelectedFields']=_0x42f263;function _0x57d11c(_0x5c3e87,_0x3b5fbb){var _0x54445c=_0x251e80;_0x20a865[_0x54445c('0x853')]({'controller':_0x54445c('0x216b'),'controllerAs':'vm','templateUrl':_0x4a588d,'parent':angular[_0x54445c('0x1676')](_0x374862['body']),'targetEvent':_0x5c3e87,'clickOutsideToClose':!![],'locals':{'type':'field','item':_0x3b5fbb,'items':_0x45b870[_0x54445c('0x181e')],'configuration':_0x45b870['salesforceConfiguration'],'account':_0x45b870[_0x54445c('0x16da')],'license':null,'setting':null,'crudPermissions':_0x45b870[_0x54445c('0x5ed')]}});}function _0x3e099b(_0x4789eb){var _0xa51b34=_0x251e80;_0xc01a35['intSalesforceField'][_0xa51b34('0x1164')]({'id':_0x4789eb['id']})['$promise'][_0xa51b34('0x21ad')](function(){var _0x5b5c2c=_0xa51b34;_0x86640f()[_0x5b5c2c('0x16a2')](_0x45b870[_0x5b5c2c('0x181e')],{'id':_0x4789eb['id']}),_0x5aef4d[_0x5b5c2c('0xdb1')]({'title':'Field\x20deleted!','msg':'Field\x20has\x20been\x20deleted!'});})[_0xa51b34('0x1c1d')](function(_0x33c022){var _0x10015f=_0xa51b34;_0x5aef4d[_0x10015f('0x2092')]({'title':_0x33c022[_0x10015f('0x209')]?'API:'+_0x33c022[_0x10015f('0x209')]+_0x10015f('0xa99')+_0x33c022[_0x10015f('0x1808')]:_0x10015f('0xede'),'msg':_0x33c022[_0x10015f('0x11c2')]?JSON['stringify'](_0x33c022[_0x10015f('0x11c2')]):_0x33c022[_0x10015f('0x174f')]()});});}function _0x502523(_0x209bd6,_0x3e54e3){var _0x115d33=_0x251e80,_0x103723=_0x20a865[_0x115d33('0xa33')]()[_0x115d33('0x4b4')](_0x115d33('0x2207'))[_0x115d33('0x276b')]('Field'+_0x115d33('0x25e0'))['ariaLabel']('delete\x20field')['targetEvent'](_0x209bd6)['ok']('OK')[_0x115d33('0x3b5')]('CANCEL');_0x20a865[_0x115d33('0x853')](_0x103723)['then'](function(){_0x3e099b(_0x3e54e3);},function(){var _0x3644af=_0x115d33;console[_0x3644af('0x6fb')]('CANCEL');});}function _0x42f263(_0x3cacda){var _0x1f9ac6=_0x251e80,_0x37b72b=_0x20a865[_0x1f9ac6('0xa33')]()[_0x1f9ac6('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')[_0x1f9ac6('0x276b')](_0x1f9ac6('0x622')+_0x45b870[_0x1f9ac6('0x21b0')][_0x1f9ac6('0x577')]+_0x1f9ac6('0xd74')+'\x20will\x20be\x20deleted.')[_0x1f9ac6('0x7a7')]('delete\x20fields')['targetEvent'](_0x3cacda)['ok']('OK')[_0x1f9ac6('0x3b5')](_0x1f9ac6('0x284b'));_0x20a865[_0x1f9ac6('0x853')](_0x37b72b)[_0x1f9ac6('0x21ad')](function(){var _0x545ff8=_0x1f9ac6;_0x45b870['selectedFields'][_0x545ff8('0x1a52')](function(_0x517f8c){_0x3e099b(_0x517f8c);}),_0x45b870[_0x545ff8('0x21b0')]=[];});}}const _0x3dfd93=_0x5243e7;_0x501e6f[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$location',_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x1ca3'),_0x3877e3('0x78c'),'api',_0x3877e3('0x15bc'),'license','setting',_0x3877e3('0x5ed')];function _0x501e6f(_0x44e085,_0x1ccea7,_0x3dc74d,_0x5f22c7,_0x215124,_0x259d36,_0x5801ed,_0x2bd037,_0x1c1ef1,_0x3d5e26,_0x63e2eb,_0x4b3058,_0x5afa71,_0x1adbf6){var _0x19b848=_0x3877e3,_0x5ca02c=this;_0x5ca02c[_0x19b848('0x123f')]=_0x63e2eb[_0x19b848('0x15ed')](),_0x5ca02c[_0x19b848('0x1a69')]=[],_0x5ca02c[_0x19b848('0x21e')]=_0x5afa71,_0x5ca02c[_0x19b848('0x2ff')]=_0x4b3058,_0x5ca02c[_0x19b848('0x5ed')]=_0x1adbf6,_0x5ca02c[_0x19b848('0x126a')]={},_0x5ca02c['passwordPattern']=_0x5ca02c[_0x19b848('0x21e')]&&_0x5ca02c[_0x19b848('0x21e')][_0x19b848('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5ca02c[_0x19b848('0x4b4')]='INTEGRATIONS.EDIT_SALESFORCECONFIGURATION',_0x5ca02c[_0x19b848('0x78c')]=angular[_0x19b848('0xd75')](_0x1c1ef1),_0x5ca02c[_0x19b848('0x1ca3')]=_0x2bd037,_0x5ca02c[_0x19b848('0x43a')]=![];!_0x5ca02c['salesforceConfiguration']&&(_0x5ca02c[_0x19b848('0x78c')]={'channel':_0x19b848('0x8ed'),'type':_0x19b848('0x923'),'ticketType':_0x19b848('0x1dc')},_0x5ca02c[_0x19b848('0x4b4')]=_0x19b848('0x285'),_0x5ca02c[_0x19b848('0x43a')]=!![]);_0x5ca02c[_0x19b848('0x472')]=_0x33f998,_0x5ca02c['saveSalesforceConfiguration']=_0x17383c,_0x5ca02c[_0x19b848('0x26e1')]=_0x16489b,_0x5ca02c[_0x19b848('0x279')]=_0x299903,_0x5ca02c[_0x19b848('0x167')]=_0xba2fa5;function _0x33f998(){var _0x5de9e4=_0x19b848;_0x5ca02c[_0x5de9e4('0x1a69')]=[],_0x3d5e26[_0x5de9e4('0x102a')][_0x5de9e4('0x1388')]({'id':_0x1ccea7[_0x5de9e4('0x171b')]['id']},_0x5ca02c[_0x5de9e4('0x78c')])[_0x5de9e4('0x1376')][_0x5de9e4('0x21ad')](function(_0x3ac496){var _0x37c0ae=_0x5de9e4;_0x5ca02c[_0x37c0ae('0x1ca3')]['unshift'](_0x3ac496[_0x37c0ae('0x3bc')]()),_0x5801ed[_0x37c0ae('0xdb1')]({'title':'SalesforceConfiguration\x20properly\x20created','msg':_0x5ca02c[_0x37c0ae('0x78c')][_0x37c0ae('0x19fe')]?_0x5ca02c[_0x37c0ae('0x78c')]['name']+_0x37c0ae('0x1694'):''}),_0xba2fa5(_0x3ac496);})['catch'](function(_0x31e358){var _0x55af40=_0x5de9e4;if(_0x31e358[_0x55af40('0x11c2')]&&_0x31e358[_0x55af40('0x11c2')][_0x55af40('0x1a69')]&&_0x31e358[_0x55af40('0x11c2')][_0x55af40('0x1a69')][_0x55af40('0x577')]){_0x5ca02c['errors']=_0x31e358['data'][_0x55af40('0x1a69')]||[{'message':_0x31e358[_0x55af40('0x174f')](),'type':_0x55af40('0x8fe')}];for(var _0x2bf236=0x0;_0x2bf236<_0x31e358[_0x55af40('0x11c2')][_0x55af40('0x1a69')][_0x55af40('0x577')];_0x2bf236+=0x1){_0x5801ed[_0x55af40('0x2092')]({'title':_0x31e358[_0x55af40('0x11c2')][_0x55af40('0x1a69')][_0x2bf236][_0x55af40('0x7fa')],'msg':_0x31e358[_0x55af40('0x11c2')][_0x55af40('0x1a69')][_0x2bf236][_0x55af40('0x1224')]});}}else _0x5801ed[_0x55af40('0x2092')]({'title':_0x31e358[_0x55af40('0x209')]?_0x55af40('0x22d')+_0x31e358[_0x55af40('0x209')]+_0x55af40('0xa99')+_0x31e358['statusText']:'api.intSalesforceConfiguration.save','msg':_0x31e358['data']?JSON[_0x55af40('0x25e')](_0x31e358[_0x55af40('0x11c2')]['message']):_0x31e358[_0x55af40('0x174f')]()});});}function _0x17383c(){var _0x5075ef=_0x19b848;_0x5ca02c[_0x5075ef('0x1a69')]=[],_0x3d5e26['intSalesforceConfiguration'][_0x5075ef('0x5ef')]({'id':_0x5ca02c['salesforceConfiguration']['id']},_0x5ca02c[_0x5075ef('0x78c')])[_0x5075ef('0x1376')]['then'](function(_0xce4c98){var _0x2824a6=_0x5075ef,_0x3f920b=_0x86640f()[_0x2824a6('0x1d2e')](_0x5ca02c[_0x2824a6('0x1ca3')],{'id':_0xce4c98['id']});_0x3f920b&&_0x86640f()[_0x2824a6('0xd0e')](_0x3f920b,_0x86640f()['pick'](_0xce4c98['toJSON'](),_0x86640f()['keys'](_0x3f920b))),_0x5801ed[_0x2824a6('0xdb1')]({'title':_0x2824a6('0x1d1c'),'msg':_0x5ca02c['salesforceConfiguration']['name']?_0x5ca02c[_0x2824a6('0x78c')][_0x2824a6('0x19fe')]+'\x20has\x20been\x20saved!':''}),_0xba2fa5(_0xce4c98);})[_0x5075ef('0x1c1d')](function(_0x38d5b9){var _0x4801b7=_0x5075ef;if(_0x38d5b9[_0x4801b7('0x11c2')]&&_0x38d5b9['data'][_0x4801b7('0x1a69')]&&_0x38d5b9[_0x4801b7('0x11c2')][_0x4801b7('0x1a69')][_0x4801b7('0x577')]){_0x5ca02c[_0x4801b7('0x1a69')]=_0x38d5b9['data'][_0x4801b7('0x1a69')]||[{'message':_0x38d5b9[_0x4801b7('0x174f')](),'type':'api.intSalesforceConfiguration.update'}];for(var _0x1feec9=0x0;_0x1feec9<_0x38d5b9[_0x4801b7('0x11c2')]['errors'][_0x4801b7('0x577')];_0x1feec9++){_0x5801ed[_0x4801b7('0x2092')]({'title':_0x38d5b9[_0x4801b7('0x11c2')][_0x4801b7('0x1a69')][_0x1feec9][_0x4801b7('0x7fa')],'msg':_0x38d5b9['data'][_0x4801b7('0x1a69')][_0x1feec9]['message']});}}else _0x5801ed[_0x4801b7('0x2092')]({'title':_0x38d5b9[_0x4801b7('0x209')]?_0x4801b7('0x22d')+_0x38d5b9[_0x4801b7('0x209')]+_0x4801b7('0xa99')+_0x38d5b9[_0x4801b7('0x1808')]:_0x4801b7('0x9b4'),'msg':_0x38d5b9[_0x4801b7('0x11c2')]?JSON[_0x4801b7('0x25e')](_0x38d5b9['data'][_0x4801b7('0x1224')]):_0x38d5b9[_0x4801b7('0x174f')]()});});}function _0x16489b(_0x40d4dd){var _0x329bbb=_0x19b848;_0x5ca02c[_0x329bbb('0x1a69')]=[];var _0x48ac81=_0x5f22c7[_0x329bbb('0xa33')]()['title'](_0x329bbb('0x196b'))[_0x329bbb('0x13fb')](_0x329bbb('0xe8'))[_0x329bbb('0x7a7')](_0x329bbb('0x15b2'))['ok'](_0x329bbb('0xbfd'))[_0x329bbb('0x3b5')]('Cancel')['targetEvent'](_0x40d4dd);_0x5f22c7[_0x329bbb('0x853')](_0x48ac81)[_0x329bbb('0x21ad')](function(){var _0x4fe703=_0x329bbb;_0x3d5e26['intSalesforceConfiguration']['delete']({'id':_0x5ca02c['salesforceConfiguration']['id']})[_0x4fe703('0x1376')][_0x4fe703('0x21ad')](function(){var _0x1a2df9=_0x4fe703;_0x86640f()[_0x1a2df9('0x16a2')](_0x5ca02c[_0x1a2df9('0x1ca3')],{'id':_0x5ca02c['salesforceConfiguration']['id']}),_0x5801ed[_0x1a2df9('0xdb1')]({'title':_0x1a2df9('0x896'),'msg':(_0x5ca02c[_0x1a2df9('0x78c')][_0x1a2df9('0x19fe')]||_0x1a2df9('0x78c'))+'\x20has\x20been\x20deleted!'}),_0xba2fa5(_0x5ca02c[_0x1a2df9('0x78c')]);})[_0x4fe703('0x1c1d')](function(_0x2f98c1){var _0x2e0429=_0x4fe703;if(_0x2f98c1[_0x2e0429('0x11c2')]&&_0x2f98c1[_0x2e0429('0x11c2')]['errors']&&_0x2f98c1['data'][_0x2e0429('0x1a69')][_0x2e0429('0x577')]){_0x5ca02c[_0x2e0429('0x1a69')]=_0x2f98c1[_0x2e0429('0x11c2')]['errors']||[{'message':_0x2f98c1[_0x2e0429('0x174f')](),'type':_0x2e0429('0x1bbb')}];for(var _0x2e569c=0x0;_0x2e569c<_0x2f98c1[_0x2e0429('0x11c2')][_0x2e0429('0x1a69')][_0x2e0429('0x577')];_0x2e569c++){_0x5801ed[_0x2e0429('0x2092')]({'title':_0x2f98c1[_0x2e0429('0x11c2')][_0x2e0429('0x1a69')][_0x2e569c][_0x2e0429('0x7fa')],'msg':_0x2f98c1['data'][_0x2e0429('0x1a69')][_0x2e569c][_0x2e0429('0x1224')]});}}else _0x5801ed['error']({'title':_0x2f98c1[_0x2e0429('0x209')]?_0x2e0429('0x22d')+_0x2f98c1[_0x2e0429('0x209')]+_0x2e0429('0xa99')+_0x2f98c1[_0x2e0429('0x1808')]:_0x2e0429('0x1bbb'),'msg':_0x2f98c1[_0x2e0429('0x11c2')]?JSON[_0x2e0429('0x25e')](_0x2f98c1[_0x2e0429('0x11c2')][_0x2e0429('0x1224')]):_0x2f98c1[_0x2e0429('0x1224')]||_0x2f98c1['toString']()});});},function(){});}function _0x299903(_0xb2462e){return _0xb2462e===null?undefined:new Date(_0xb2462e);}function _0xba2fa5(_0x149628){var _0x58014f=_0x19b848;_0x5f22c7[_0x58014f('0x1c24')](_0x149628);}}const _0x134a57=_0x501e6f;_0x375e2b[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),_0x3877e3('0x1908'),'configuration',_0x3877e3('0x1b9a'),_0x3877e3('0x19ca'),'account',_0x3877e3('0x7fa'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x375e2b(_0x502218,_0x4e3777,_0x36745a,_0x5ed391,_0x20b2ca,_0x35b185,_0x5b5d3b,_0x2c1b77,_0x52124c,_0x3ed35c,_0x26dae3,_0xe7d19a,_0x2897d3){var _0x165e55=_0x3877e3,_0x2b530e=this;_0x2b530e['currentUser']=_0xe7d19a[_0x165e55('0x15ed')](),_0x2b530e[_0x165e55('0x1a69')]=[],_0x2b530e['title']=_0x165e55('0x177a')+_0x86640f()[_0x165e55('0x7c1')](_0x3ed35c),_0x2b530e[_0x165e55('0x19ca')]=angular[_0x165e55('0xd75')](_0x2c1b77),_0x2b530e[_0x165e55('0x1b9a')]=_0x5b5d3b,_0x2b530e['type']=_0x3ed35c,_0x2b530e[_0x165e55('0x5ed')]=_0x2897d3,_0x2b530e['newItem']=![];!_0x2b530e[_0x165e55('0x19ca')]&&(_0x2b530e[_0x165e55('0x19ca')]={'type':_0x165e55('0x2638')},_0x2b530e['item'][_0x86640f()[_0x165e55('0x1b7e')](_0x3ed35c)+'Id']=_0x35b185['id'],_0x2b530e['title']=_0x165e55('0x1d99')+_0x86640f()[_0x165e55('0x7c1')](_0x3ed35c),_0x2b530e[_0x165e55('0xf8')]=!![]);_0x2b530e[_0x165e55('0x1e89')]=_0xc86d0e,_0x2b530e[_0x165e55('0x1c97')]=_0x32a87f,_0x2b530e[_0x165e55('0x1c8')]=_0x43a3db,_0x2b530e[_0x165e55('0x23fe')]=_0x2dadf8,_0x2b530e['closeDialog']=_0x13d5f5,_0x26dae3[_0x165e55('0x25bb')][_0x165e55('0x595')]({'nolimit':!![]})[_0x165e55('0x1376')][_0x165e55('0x21ad')](function(_0x32becc){var _0x19acae=_0x165e55;return _0x2b530e[_0x19acae('0x142d')]=_0x32becc[_0x19acae('0x1b33')]?_0x32becc[_0x19acae('0x1b33')]:[],_0x26dae3['voiceAgentReport'][_0x19acae('0x1219')]()[_0x19acae('0x1376')];})[_0x165e55('0x21ad')](function(_0x1b3cbd){var _0x2d8069=_0x165e55;return _0x2b530e[_0x2d8069('0x22eb')]=_0x86640f()[_0x2d8069('0x5a8')](_0x86640f()[_0x2d8069('0x223b')](_0x1b3cbd),[_0x2d8069('0x1376'),_0x2d8069('0x9f8'),_0x2d8069('0x23ae'),_0x2d8069('0x15af'),'sourceid']),_0x2b530e[_0x2d8069('0x22eb')][_0x2d8069('0x206c')](_0x2d8069('0x250a')),_0x26dae3[_0x2d8069('0x17bb')]['describe']()[_0x2d8069('0x1376')];})['then'](function(_0x48fe52){var _0x10775b=_0x165e55;_0x2b530e[_0x10775b('0x1491')]=_0x86640f()[_0x10775b('0x5a8')](_0x86640f()['keys'](_0x48fe52),[_0x10775b('0x1376'),_0x10775b('0x9f8'),_0x10775b('0x23ae'),'updatedAt','sourceid']),_0x2b530e['voiceDialReportColumns'][_0x10775b('0x206c')](_0x10775b('0x250a'));})[_0x165e55('0x1c1d')](function(_0x27a219){var _0x1c2c08=_0x165e55;_0x20b2ca['error']({'title':_0x27a219[_0x1c2c08('0x209')]?'API:'+_0x27a219[_0x1c2c08('0x209')]+_0x1c2c08('0xa99')+_0x27a219[_0x1c2c08('0x1808')]:'SYSTEM:GETVARIABLES','msg':_0x27a219[_0x1c2c08('0x11c2')]?JSON[_0x1c2c08('0x25e')](_0x27a219['data']):_0x27a219[_0x1c2c08('0x174f')]()});}),_0x26dae3['intSalesforceAccount'][_0x165e55('0x929')]({'id':_0x52124c['id'],'ticketType':_0x35b185['ticketType']?_0x35b185['ticketType']:undefined})['$promise'][_0x165e55('0x21ad')](function(_0x169078){var _0x4afa0a=_0x165e55;_0x2b530e[_0x4afa0a('0x2097')]=!![],_0x2b530e[_0x4afa0a('0x181e')]=_0x169078[_0x4afa0a('0x1b33')]?_0x169078[_0x4afa0a('0x1b33')]:[],_0x2b530e[_0x4afa0a('0x19ca')][_0x4afa0a('0x1830')]&&(_0x2b530e[_0x4afa0a('0x1fa7')]=_0x86640f()['find'](_0x2b530e[_0x4afa0a('0x181e')],{'id':_0x2b530e['item'][_0x4afa0a('0x1830')]}));})[_0x165e55('0x1c1d')](function(_0x51f4df){var _0x32d68f=_0x165e55;_0x2b530e[_0x32d68f('0x2097')]=![],console[_0x32d68f('0x2092')](_0x51f4df);});function _0xc86d0e(){var _0xe4a105=_0x165e55;_0x2b530e[_0xe4a105('0x1a69')]=[],_0x2b530e[_0xe4a105('0x1fa7')]&&(_0x2b530e['item']['idField']=_0x2b530e['customField']['id'],_0x2b530e['item']['nameField']=_0x2b530e[_0xe4a105('0x1fa7')][_0xe4a105('0x19fe')],_0x2b530e['item'][_0xe4a105('0x1fa7')]=_0x2b530e[_0xe4a105('0x1fa7')][_0xe4a105('0xf50')]),_0x26dae3[_0xe4a105('0x124e')]['save'](_0x2b530e['item'])[_0xe4a105('0x1376')][_0xe4a105('0x21ad')](function(_0x10814e){var _0x1102d1=_0xe4a105;_0x2b530e[_0x1102d1('0x1b9a')][_0x1102d1('0xd0c')](_0x10814e),_0x20b2ca['success']({'title':_0x86640f()[_0x1102d1('0x1b7e')](_0x3ed35c)+_0x1102d1('0x1de2'),'msg':_0x86640f()[_0x1102d1('0x1b7e')](_0x3ed35c)+_0x1102d1('0x1694')}),_0x13d5f5();})[_0xe4a105('0x1c1d')](function(_0x117baa){var _0x455edd=_0xe4a105;console['error'](_0x117baa),_0x2b530e[_0x455edd('0x1a69')]=_0x117baa['data']['errors']||[{'message':_0x117baa[_0x455edd('0x174f')](),'type':_0x455edd('0x1a23')}];});}function _0x32a87f(){var _0x589d6d=_0x165e55;_0x2b530e['errors']=[],_0x2b530e['customField']&&(_0x2b530e[_0x589d6d('0x19ca')][_0x589d6d('0x1830')]=_0x2b530e[_0x589d6d('0x1fa7')]['id'],_0x2b530e[_0x589d6d('0x19ca')]['nameField']=_0x2b530e[_0x589d6d('0x1fa7')][_0x589d6d('0x19fe')],_0x2b530e[_0x589d6d('0x19ca')]['customField']=_0x2b530e[_0x589d6d('0x1fa7')][_0x589d6d('0xf50')]),_0x26dae3['intSalesforceField'][_0x589d6d('0x5ef')]({'id':_0x2b530e[_0x589d6d('0x19ca')]['id']},_0x2b530e[_0x589d6d('0x19ca')])[_0x589d6d('0x1376')][_0x589d6d('0x21ad')](function(_0x268441){var _0x444ac5=_0x589d6d,_0x479933=_0x86640f()['find'](_0x2b530e['items'],{'id':_0x268441['id']});_0x479933&&_0x86640f()[_0x444ac5('0xd0e')](_0x479933,_0x268441),_0x20b2ca['success']({'title':_0x86640f()[_0x444ac5('0x1b7e')](_0x3ed35c)+_0x444ac5('0x2a3'),'msg':_0x86640f()['capitalize'](_0x3ed35c)+'\x20has\x20been\x20saved!'}),_0x13d5f5();})[_0x589d6d('0x1c1d')](function(_0x510309){var _0xc45d7f=_0x589d6d;console[_0xc45d7f('0x2092')](_0x510309),_0x2b530e['errors']=_0x510309['data'][_0xc45d7f('0x1a69')]||[{'message':_0x510309[_0xc45d7f('0x174f')](),'type':_0xc45d7f('0x1488')}];});}function _0x43a3db(_0x1a3b5d){var _0x3cabfa=_0x165e55;_0x2b530e[_0x3cabfa('0x1a69')]=[];var _0x40d01b=_0x5ed391[_0x3cabfa('0xa33')]()[_0x3cabfa('0x4b4')](_0x3cabfa('0x196b'))[_0x3cabfa('0x13fb')](_0x3cabfa('0x15f2')+_0x3ed35c+_0x3cabfa('0x25e0'))['ariaLabel']('Delete\x20'+_0x86640f()[_0x3cabfa('0x1b7e')](_0x3ed35c))['ok'](_0x3cabfa('0xbfd'))['cancel'](_0x3cabfa('0x1f40'))['targetEvent'](_0x1a3b5d);_0x5ed391['show'](_0x40d01b)[_0x3cabfa('0x21ad')](function(){var _0x461d3d=_0x3cabfa;_0x26dae3['intSalesforceField']['delete']({'id':_0x2b530e['item']['id']})['$promise'][_0x461d3d('0x21ad')](function(){var _0x346df3=_0x461d3d;_0x86640f()[_0x346df3('0x16a2')](_0x2b530e[_0x346df3('0x1b9a')],{'id':_0x2b530e['item']['id']}),_0x20b2ca[_0x346df3('0xdb1')]({'title':_0x86640f()[_0x346df3('0x1b7e')](_0x3ed35c)+_0x346df3('0x11b6'),'msg':_0x86640f()['capitalize'](_0x3ed35c)+_0x346df3('0xb4a')}),_0x13d5f5();})['catch'](function(_0x595d16){var _0x9da107=_0x461d3d;console[_0x9da107('0x2092')](_0x595d16),_0x2b530e[_0x9da107('0x1a69')]=_0x595d16[_0x9da107('0x11c2')][_0x9da107('0x1a69')]||[{'message':_0x595d16['toString'](),'type':'api.item.delete'}];});},function(){});}function _0x2dadf8(){var _0x486fee=_0x165e55;return _0x2b530e[_0x486fee('0x19ca')][_0x486fee('0x1651')]!==undefined?_0x2b530e[_0x486fee('0x19ca')]['variableName']:_0x486fee('0x17f7');}function _0x13d5f5(){var _0x3cf0d1=_0x165e55;_0x5ed391[_0x3cf0d1('0x1c24')]();}}const _0x21c703=_0x375e2b;_0x3ce9a3[_0x3877e3('0x1a81')]=['$state','$location','$mdDialog','$document',_0x3877e3('0x13c1'),'license','setting',_0x3877e3('0xccd'),'toasty',_0x3877e3('0x15bc'),_0x3877e3('0x16da'),_0x3877e3('0xab4')];function _0x3ce9a3(_0x2eea04,_0x117558,_0x262afe,_0x230529,_0x44991a,_0x4c1a2e,_0x2894a5,_0x4a363f,_0x311b25,_0x523d7e,_0x15aa5e,_0xa051b){var _0x522111=_0x3877e3,_0xe2799e=this;_0xe2799e[_0x522111('0x123f')]=_0x523d7e[_0x522111('0x15ed')](),_0xe2799e[_0x522111('0x2ff')]=_0x4c1a2e,_0xe2799e['setting']=_0x2894a5,_0xe2799e[_0x522111('0x1432')]=_0xe2799e['setting'][_0x522111('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xe2799e['location']=_0x117558[_0x522111('0x1162')]()+_0x522111('0x22a9')+_0x117558[_0x522111('0x1c01')](),_0xe2799e['salesforceAccount']=_0x15aa5e||_0x2eea04[_0x522111('0x171b')][_0x522111('0x16da')]||{},_0xe2799e[_0x522111('0xab4')]=_0xa051b&&_0xa051b['count']==0x1?_0xa051b[_0x522111('0x1b33')][0x0]:null,_0xe2799e[_0x522111('0x5ed')]=_0x523d7e[_0x522111('0x1778')](_0xe2799e[_0x522111('0xab4')]?_0xe2799e[_0x522111('0xab4')][_0x522111('0x5ed')]:null),_0xe2799e[_0x522111('0x126a')]={},_0xe2799e[_0x522111('0x302')]=_0x2eea04['params']['tab']||0x0,_0xe2799e[_0x522111('0x95b')]=_0x311b25[_0x522111('0x231c')],_0xe2799e[_0x522111('0x1d78')]=_0x50870e,_0xe2799e[_0x522111('0x284e')]=_0x25239a;function _0x50870e(){_0x2eea04['go']('app.integrations.salesforceAccounts',{},{'reload':'app.integrations.salesforceAccounts'});}function _0x25239a(){var _0x204707=_0x522111;_0x4a363f[_0x204707('0x102a')][_0x204707('0x5ef')]({'id':_0xe2799e[_0x204707('0x16da')]['id']},_0xe2799e[_0x204707('0x16da')])[_0x204707('0x1376')]['then'](function(){var _0x6dca11=_0x204707;_0x311b25[_0x6dca11('0xdb1')]({'title':_0x6dca11('0xa18'),'msg':_0xe2799e[_0x6dca11('0x16da')][_0x6dca11('0x19fe')]?_0xe2799e[_0x6dca11('0x16da')][_0x6dca11('0x19fe')]+'\x20has\x20been\x20updated!':''});})[_0x204707('0x1c1d')](function(_0x185113){var _0x12dfbb=_0x204707;_0x311b25['error']({'title':_0x185113['status']?'API:'+_0x185113[_0x12dfbb('0x209')]+_0x12dfbb('0xa99')+_0x185113['statusText']:_0x12dfbb('0x1f9e'),'msg':_0x185113[_0x12dfbb('0x11c2')]?JSON[_0x12dfbb('0x25e')](_0x185113['data']):_0x185113[_0x12dfbb('0x174f')]()});});}}const _0x479bf8=_0x3ce9a3,_0x217c74=_0x398308['p']+'src/js/modules/main/apps/integrations/views/salesforceAccounts/create/dialog.html/dialog-[chunkhash].html';_0x268ac8[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$window','$state',_0x3877e3('0x2828'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x13c1'),_0x3877e3('0x1080'),_0x3877e3('0x758'),'userProfileSection',_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting'];function _0x268ac8(_0x374550,_0x46c7ee,_0x13805c,_0x5e221e,_0x4edfde,_0x3f9fc1,_0x303d94,_0x1231f0,_0x2de55e,_0xe42a75,_0x1e4507,_0x372659,_0x13149e,_0x5c5e44,_0x4b7910,_0x4c290f,_0x135cab){var _0x263a4d=_0x3877e3,_0x4d3519=this;_0x4d3519[_0x263a4d('0x2ff')]=_0x4c290f,_0x4d3519[_0x263a4d('0x21e')]=_0x135cab,_0x4d3519[_0x263a4d('0x123f')]=_0x4b7910[_0x263a4d('0x15ed')](),_0x4d3519[_0x263a4d('0x1080')]=_0x2de55e||{'count':0x0,'rows':[]},_0x4d3519[_0x263a4d('0x758')]=_0xe42a75,_0x4d3519['userProfileSection']=_0x1e4507&&_0x1e4507[_0x263a4d('0x205f')]==0x1?_0x1e4507['rows'][0x0]:null,_0x4d3519['crudPermissions']=_0x4b7910[_0x263a4d('0x1778')](_0x4d3519[_0x263a4d('0xab4')]?_0x4d3519[_0x263a4d('0xab4')][_0x263a4d('0x5ed')]:null),_0x4d3519[_0x263a4d('0x1897')]=_0x263a4d('0x1080'),_0x4d3519[_0x263a4d('0x11dc')]='',_0x4d3519['listOrderAsc']=null,_0x4d3519[_0x263a4d('0x1107')]=[],_0x4d3519[_0x263a4d('0x77')]={'fields':_0x263a4d('0x22e0'),'limit':0xa,'page':0x1},_0x4d3519[_0x263a4d('0x179c')]=_0x86640f()['keyBy']([{'option':_0x263a4d('0x2611'),'value':_0x263a4d('0x1c92')},{'option':_0x263a4d('0x19c6'),'value':'\x27newTab\x27'}],function(_0x5cda8e){var _0x56f1ff=_0x263a4d;return _0x86640f()['replace'](_0x5cda8e[_0x56f1ff('0x2228')],new RegExp('\x27','g'),'');}),_0x4d3519[_0x263a4d('0x1c88')]=_0x52097d,_0x4d3519[_0x263a4d('0x155c')]=_0x42c298,_0x4d3519[_0x263a4d('0x2593')]=_0x279f42,_0x4d3519[_0x263a4d('0xdb1')]=_0x1e332c,_0x4d3519[_0x263a4d('0x6e1')]=_0x451536,_0x4d3519[_0x263a4d('0x1330')]=_0x28ef0b,_0x4d3519[_0x263a4d('0x1fe8')]=_0x1f09fa,_0x4d3519['exportSelectedSalesforceAccounts']=_0x45f9d6,_0x4d3519[_0x263a4d('0x2ba')]=_0x3cce07,_0x4d3519[_0x263a4d('0x14ff')]=_0x746f6e,_0x4d3519[_0x263a4d('0x2431')]=_0x494dc5;function _0x52097d(_0x4fdf57){var _0x558f23=_0x263a4d;_0x13805c['go'](_0x558f23('0x22c'),{'id':_0x4fdf57['id'],'salesforceAccount':_0x4fdf57,'crudPermissions':_0x4d3519[_0x558f23('0x5ed')]});}function _0x42c298(_0x19bf24){var _0x28e6a2=_0x263a4d;return _0x372659[_0x28e6a2('0x102a')][_0x28e6a2('0x929')]({'id':_0x19bf24['id'],'test':!![]})[_0x28e6a2('0x1376')][_0x28e6a2('0x21ad')](function(){var _0x1d5d72=_0x28e6a2;_0x5c5e44[_0x1d5d72('0xdb1')]({'title':_0x1d5d72('0x1798'),'msg':_0x1d5d72('0x1c80')});})[_0x28e6a2('0x1c1d')](function(_0x3042a7){var _0x250202=_0x28e6a2;_0x5c5e44[_0x250202('0x2092')]({'title':_0x250202('0x1798'),'msg':_0x3042a7[_0x250202('0x11c2')]?_0x3042a7[_0x250202('0x11c2')][_0x250202('0x1224')]?_0x3042a7[_0x250202('0x11c2')][_0x250202('0x1224')]:JSON[_0x250202('0x25e')](_0x3042a7[_0x250202('0x11c2')]):_0x3042a7[_0x250202('0x174f')]()});});}function _0x279f42(_0x2f6c5e,_0x2e2e74){var _0x2a8fc4=_0x263a4d,_0x5a02bb=_0x4edfde[_0x2a8fc4('0xa33')]()[_0x2a8fc4('0x4b4')](_0x2a8fc4('0x25b6')+_0x86640f()[_0x2a8fc4('0x2159')]('salesforceAccount')+'?')[_0x2a8fc4('0x276b')](_0x2a8fc4('0x622')+(_0x2f6c5e['name']||'salesforceAccount')+_0x2a8fc4('0x2135')+'\x20will\x20be\x20deleted.')[_0x2a8fc4('0x7a7')](_0x2a8fc4('0x1a7e'))[_0x2a8fc4('0x1e6d')](_0x2e2e74)['ok']('OK')[_0x2a8fc4('0x3b5')]('CANCEL');_0x4edfde[_0x2a8fc4('0x853')](_0x5a02bb)[_0x2a8fc4('0x21ad')](function(){_0x1f09fa(_0x2f6c5e);},function(){var _0x26e6d3=_0x2a8fc4;console['log'](_0x26e6d3('0x284b'));});}var _0x103180=!![],_0x4b5c7e=0x1;_0x374550['$watch']('vm.query.filter',function(_0x53a631,_0x389b2c){var _0x47799e=_0x263a4d;_0x103180?_0x303d94(function(){_0x103180=![];}):(!_0x389b2c&&(_0x4b5c7e=_0x4d3519[_0x47799e('0x77')][_0x47799e('0x2376')]),_0x53a631!==_0x389b2c&&(_0x4d3519[_0x47799e('0x77')][_0x47799e('0x2376')]=0x1),!_0x53a631&&(_0x4d3519[_0x47799e('0x77')][_0x47799e('0x2376')]=_0x4b5c7e),_0x4d3519[_0x47799e('0x6e1')]());});function _0x1e332c(_0x52b631){var _0x53776e=_0x263a4d;_0x4d3519[_0x53776e('0x1080')]=_0x52b631||{'count':0x0,'rows':[]};}function _0x451536(){var _0x510022=_0x263a4d;_0x4d3519[_0x510022('0x77')]['offset']=(_0x4d3519[_0x510022('0x77')][_0x510022('0x2376')]-0x1)*_0x4d3519['query']['limit'],_0x4b7910[_0x510022('0x21de')](_0x510022('0x1bd8'))?_0x4d3519[_0x510022('0x71b')]=_0x372659['intSalesforceAccount']['get'](_0x4d3519['query'],_0x1e332c)['$promise']:(_0x4d3519[_0x510022('0x77')]['id']=_0x4d3519[_0x510022('0x758')]['id'],_0x4d3519['query']['section']=_0x510022('0x8f8'),_0x4d3519[_0x510022('0x71b')]=_0x372659[_0x510022('0x758')][_0x510022('0x321')](_0x4d3519[_0x510022('0x77')],_0x1e332c)[_0x510022('0x1376')]);}function _0x28ef0b(_0x485ed8,_0x1a712f){var _0xd7dbcc=_0x263a4d;_0x4edfde[_0xd7dbcc('0x853')]({'controller':'CreateOrEditSalesforceAccountDialogController','controllerAs':'vm','templateUrl':_0x217c74,'parent':angular[_0xd7dbcc('0x1676')](_0x3f9fc1[_0xd7dbcc('0x2452')]),'targetEvent':_0x485ed8,'clickOutsideToClose':!![],'locals':{'salesforceAccount':_0x1a712f,'salesforceAccounts':_0x4d3519[_0xd7dbcc('0x1080')][_0xd7dbcc('0x1b33')],'license':_0x4d3519[_0xd7dbcc('0x2ff')],'setting':_0x4d3519[_0xd7dbcc('0x21e')],'crudPermissions':_0x4d3519[_0xd7dbcc('0x5ed')]}});}function _0x1f09fa(_0xc5beb2){var _0x3d5b68=_0x263a4d;_0x372659[_0x3d5b68('0x102a')][_0x3d5b68('0x1164')]({'id':_0xc5beb2['id']})['$promise']['then'](function(){var _0x5d4e03=_0x3d5b68;_0x86640f()[_0x5d4e03('0x16a2')](_0x4d3519[_0x5d4e03('0x1080')][_0x5d4e03('0x1b33')],{'id':_0xc5beb2['id']}),_0x4d3519[_0x5d4e03('0x1080')][_0x5d4e03('0x205f')]-=0x1,!_0x4d3519[_0x5d4e03('0x1080')]['rows']['length']&&_0x4d3519[_0x5d4e03('0x6e1')](),_0x5c5e44[_0x5d4e03('0xdb1')]({'title':_0x86640f()['startCase'](_0x5d4e03('0x2342'))+'\x20deleted!','msg':_0xc5beb2[_0x5d4e03('0x19fe')]?_0xc5beb2[_0x5d4e03('0x19fe')]+_0x5d4e03('0xb4a'):''});})['catch'](function(_0x12b3bc){var _0x23cd9b=_0x3d5b68;if(_0x12b3bc[_0x23cd9b('0x11c2')]&&_0x12b3bc[_0x23cd9b('0x11c2')]['errors']&&_0x12b3bc[_0x23cd9b('0x11c2')][_0x23cd9b('0x1a69')][_0x23cd9b('0x577')]){_0x4d3519['errors']=_0x12b3bc[_0x23cd9b('0x11c2')][_0x23cd9b('0x1a69')]||[{'message':_0x12b3bc[_0x23cd9b('0x174f')](),'type':_0x23cd9b('0x19fb')}];for(var _0xe1142d=0x0;_0xe1142d<_0x12b3bc[_0x23cd9b('0x11c2')]['errors'][_0x23cd9b('0x577')];_0xe1142d++){_0x5c5e44[_0x23cd9b('0x2092')]({'title':_0x12b3bc[_0x23cd9b('0x11c2')][_0x23cd9b('0x1a69')][_0xe1142d]['type'],'msg':_0x12b3bc[_0x23cd9b('0x11c2')]['errors'][_0xe1142d][_0x23cd9b('0x1224')]});}}else _0x5c5e44['error']({'title':_0x12b3bc[_0x23cd9b('0x209')]?_0x23cd9b('0x22d')+_0x12b3bc[_0x23cd9b('0x209')]+_0x23cd9b('0xa99')+_0x12b3bc[_0x23cd9b('0x1808')]:'SYSTEM:DELETEintSalesforceAccount','msg':_0x12b3bc[_0x23cd9b('0x11c2')]?JSON['stringify'](_0x12b3bc[_0x23cd9b('0x11c2')][_0x23cd9b('0x1224')]):_0x12b3bc[_0x23cd9b('0x1224')]||_0x12b3bc['toString']()});});}function _0x45f9d6(){var _0x4da2d9=_0x263a4d,_0x405be9=angular['copy'](_0x4d3519[_0x4da2d9('0x1107')]);return _0x4d3519[_0x4da2d9('0x1107')]=[],_0x405be9;}function _0x3cce07(_0x29cf95){var _0x1ead5b=_0x263a4d,_0x17cdc7=_0x4edfde[_0x1ead5b('0xa33')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20salesforceAccounts?')[_0x1ead5b('0x276b')](_0x1ead5b('0x622')+_0x4d3519[_0x1ead5b('0x1107')]['length']+'\x20selected'+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20SalesforceAccounts')['targetEvent'](_0x29cf95)['ok']('OK')[_0x1ead5b('0x3b5')](_0x1ead5b('0x284b'));_0x4edfde[_0x1ead5b('0x853')](_0x17cdc7)[_0x1ead5b('0x21ad')](function(){var _0x18fd94=_0x1ead5b;_0x4d3519['selectedSalesforceAccounts'][_0x18fd94('0x1a52')](function(_0x1ab747){_0x1f09fa(_0x1ab747);}),_0x4d3519['selectedSalesforceAccounts']=[];});}function _0x746f6e(){_0x4d3519['selectedSalesforceAccounts']=[];}function _0x494dc5(){var _0x2aaa41=_0x263a4d;_0x4d3519['selectedSalesforceAccounts']=_0x4d3519['salesforceAccounts'][_0x2aaa41('0x1b33')];}}const _0x1b1c6d=_0x268ac8;_0x17ab98[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),'servicenowAccounts',_0x3877e3('0x2801'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting',_0x3877e3('0x5ed')];function _0x17ab98(_0x4eaa82,_0x3ece5b,_0x2e8fd7,_0x510caa,_0x1eaae3,_0x588a95,_0x51a72a,_0x4c192f,_0x357cec,_0x445c1d,_0x430f23,_0xb6bd93,_0x4da75f,_0x261ae0){var _0xb7a202=_0x3877e3,_0xf3e6eb=this;_0xf3e6eb[_0xb7a202('0x123f')]=_0x430f23[_0xb7a202('0x15ed')](),_0xf3e6eb[_0xb7a202('0x1a69')]=[],_0xf3e6eb[_0xb7a202('0x21e')]=_0x4da75f,_0xf3e6eb['license']=_0xb6bd93,_0xf3e6eb[_0xb7a202('0x5ed')]=_0x261ae0,_0xf3e6eb[_0xb7a202('0x126a')]={},_0xf3e6eb[_0xb7a202('0x1432')]=_0xf3e6eb[_0xb7a202('0x21e')]&&_0xf3e6eb[_0xb7a202('0x21e')][_0xb7a202('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xf3e6eb[_0xb7a202('0x4b4')]=_0xb7a202('0x23b8'),_0xf3e6eb[_0xb7a202('0x2801')]=angular[_0xb7a202('0xd75')](_0x357cec),_0xf3e6eb[_0xb7a202('0x3e')]=_0x4c192f,_0xf3e6eb[_0xb7a202('0x169c')]=![];!_0xf3e6eb['servicenowAccount']&&(_0xf3e6eb[_0xb7a202('0x2801')]={'serverUrl':_0x2e8fd7[_0xb7a202('0x1162')]()+_0xb7a202('0x22a9')+_0x2e8fd7[_0xb7a202('0x1c01')]()+(_0x2e8fd7[_0xb7a202('0x24fe')]()?':'+_0x2e8fd7[_0xb7a202('0x24fe')]():'')},_0xf3e6eb[_0xb7a202('0x4b4')]=_0xb7a202('0x1862'),_0xf3e6eb[_0xb7a202('0x169c')]=!![]);_0xf3e6eb[_0xb7a202('0x2849')]=_0x2f9627,_0xf3e6eb[_0xb7a202('0x293')]=_0x3c60cd,_0xf3e6eb['deleteServicenowAccount']=_0x2d2890,_0xf3e6eb[_0xb7a202('0x279')]=_0x23f7f0,_0xf3e6eb[_0xb7a202('0x167')]=_0x265d1c;function _0x2f9627(){var _0x12e2a6=_0xb7a202;_0xf3e6eb['errors']=[],_0x445c1d['intServicenowAccount'][_0x12e2a6('0x186f')](_0xf3e6eb['servicenowAccount'])['$promise'][_0x12e2a6('0x21ad')](function(_0x2e0560){var _0x5d3865=_0x12e2a6;_0xf3e6eb[_0x5d3865('0x3e')]['unshift'](_0x2e0560[_0x5d3865('0x3bc')]()),_0x51a72a['success']({'title':_0x5d3865('0x18e8'),'msg':_0xf3e6eb[_0x5d3865('0x2801')][_0x5d3865('0x19fe')]?_0xf3e6eb[_0x5d3865('0x2801')][_0x5d3865('0x19fe')]+_0x5d3865('0x1694'):''}),_0x265d1c(_0x2e0560);})['catch'](function(_0x1ff4ac){var _0x5e1374=_0x12e2a6;if(_0x1ff4ac[_0x5e1374('0x11c2')]&&_0x1ff4ac[_0x5e1374('0x11c2')][_0x5e1374('0x1a69')]&&_0x1ff4ac[_0x5e1374('0x11c2')]['errors'][_0x5e1374('0x577')]){_0xf3e6eb[_0x5e1374('0x1a69')]=_0x1ff4ac[_0x5e1374('0x11c2')][_0x5e1374('0x1a69')]||[{'message':_0x1ff4ac[_0x5e1374('0x174f')](),'type':'api.intServicenowAccount.save'}];for(var _0x300a7e=0x0;_0x300a7e<_0x1ff4ac[_0x5e1374('0x11c2')]['errors'][_0x5e1374('0x577')];_0x300a7e+=0x1){_0x51a72a[_0x5e1374('0x2092')]({'title':_0x1ff4ac[_0x5e1374('0x11c2')][_0x5e1374('0x1a69')][_0x300a7e][_0x5e1374('0x7fa')],'msg':_0x1ff4ac[_0x5e1374('0x11c2')][_0x5e1374('0x1a69')][_0x300a7e][_0x5e1374('0x1224')]});}}else _0x51a72a['error']({'title':_0x1ff4ac[_0x5e1374('0x209')]?'API:'+_0x1ff4ac[_0x5e1374('0x209')]+_0x5e1374('0xa99')+_0x1ff4ac[_0x5e1374('0x1808')]:_0x5e1374('0x235c'),'msg':_0x1ff4ac['data']?JSON[_0x5e1374('0x25e')](_0x1ff4ac[_0x5e1374('0x11c2')]['message']):_0x1ff4ac[_0x5e1374('0x174f')]()});});}function _0x3c60cd(){var _0x1714cc=_0xb7a202;_0xf3e6eb[_0x1714cc('0x1a69')]=[],_0x445c1d[_0x1714cc('0x26f2')]['update']({'id':_0xf3e6eb[_0x1714cc('0x2801')]['id']},_0xf3e6eb[_0x1714cc('0x2801')])[_0x1714cc('0x1376')][_0x1714cc('0x21ad')](function(_0x23e2aa){var _0x42759c=_0x1714cc,_0x1264a2=_0x86640f()[_0x42759c('0x1d2e')](_0xf3e6eb[_0x42759c('0x3e')],{'id':_0x23e2aa['id']});_0x1264a2&&_0x86640f()[_0x42759c('0xd0e')](_0x1264a2,_0x86640f()[_0x42759c('0xc50')](_0x23e2aa[_0x42759c('0x3bc')](),_0x86640f()[_0x42759c('0x223b')](_0x1264a2))),_0x51a72a[_0x42759c('0xdb1')]({'title':_0x42759c('0xe6b'),'msg':_0xf3e6eb[_0x42759c('0x2801')][_0x42759c('0x19fe')]?_0xf3e6eb[_0x42759c('0x2801')][_0x42759c('0x19fe')]+_0x42759c('0x2249'):''}),_0x265d1c(_0x23e2aa);})[_0x1714cc('0x1c1d')](function(_0xd23f09){var _0x26b81e=_0x1714cc;if(_0xd23f09[_0x26b81e('0x11c2')]&&_0xd23f09[_0x26b81e('0x11c2')][_0x26b81e('0x1a69')]&&_0xd23f09[_0x26b81e('0x11c2')][_0x26b81e('0x1a69')][_0x26b81e('0x577')]){_0xf3e6eb['errors']=_0xd23f09[_0x26b81e('0x11c2')][_0x26b81e('0x1a69')]||[{'message':_0xd23f09['toString'](),'type':_0x26b81e('0x17df')}];for(var _0x43aeb2=0x0;_0x43aeb2<_0xd23f09[_0x26b81e('0x11c2')][_0x26b81e('0x1a69')][_0x26b81e('0x577')];_0x43aeb2++){_0x51a72a[_0x26b81e('0x2092')]({'title':_0xd23f09[_0x26b81e('0x11c2')][_0x26b81e('0x1a69')][_0x43aeb2][_0x26b81e('0x7fa')],'msg':_0xd23f09[_0x26b81e('0x11c2')][_0x26b81e('0x1a69')][_0x43aeb2][_0x26b81e('0x1224')]});}}else _0x51a72a[_0x26b81e('0x2092')]({'title':_0xd23f09[_0x26b81e('0x209')]?_0x26b81e('0x22d')+_0xd23f09['status']+_0x26b81e('0xa99')+_0xd23f09[_0x26b81e('0x1808')]:_0x26b81e('0x17df'),'msg':_0xd23f09['data']?JSON[_0x26b81e('0x25e')](_0xd23f09[_0x26b81e('0x11c2')][_0x26b81e('0x1224')]):_0xd23f09[_0x26b81e('0x174f')]()});});}function _0x2d2890(_0x377561){var _0x1cfd15=_0xb7a202;_0xf3e6eb['errors']=[];var _0x1fbcf6=_0x510caa[_0x1cfd15('0xa33')]()[_0x1cfd15('0x4b4')](_0x1cfd15('0x196b'))[_0x1cfd15('0x13fb')](_0x1cfd15('0x1708'))[_0x1cfd15('0x7a7')](_0x1cfd15('0x1678'))['ok'](_0x1cfd15('0xbfd'))[_0x1cfd15('0x3b5')]('Cancel')['targetEvent'](_0x377561);_0x510caa['show'](_0x1fbcf6)['then'](function(){var _0x544a8b=_0x1cfd15;_0x445c1d['intServicenowAccount'][_0x544a8b('0x1164')]({'id':_0xf3e6eb[_0x544a8b('0x2801')]['id']})[_0x544a8b('0x1376')]['then'](function(){var _0x43bd3c=_0x544a8b;_0x86640f()[_0x43bd3c('0x16a2')](_0xf3e6eb[_0x43bd3c('0x3e')],{'id':_0xf3e6eb[_0x43bd3c('0x2801')]['id']}),_0x51a72a['success']({'title':_0x43bd3c('0x1434'),'msg':(_0xf3e6eb[_0x43bd3c('0x2801')][_0x43bd3c('0x19fe')]||'servicenowAccount')+_0x43bd3c('0xb4a')}),_0x265d1c(_0xf3e6eb[_0x43bd3c('0x2801')]);})[_0x544a8b('0x1c1d')](function(_0x4ba973){var _0x4713dd=_0x544a8b;if(_0x4ba973[_0x4713dd('0x11c2')]&&_0x4ba973[_0x4713dd('0x11c2')]['errors']&&_0x4ba973['data'][_0x4713dd('0x1a69')][_0x4713dd('0x577')]){_0xf3e6eb[_0x4713dd('0x1a69')]=_0x4ba973[_0x4713dd('0x11c2')][_0x4713dd('0x1a69')]||[{'message':_0x4ba973[_0x4713dd('0x174f')](),'type':_0x4713dd('0x398')}];for(var _0x35a73f=0x0;_0x35a73f<_0x4ba973[_0x4713dd('0x11c2')][_0x4713dd('0x1a69')][_0x4713dd('0x577')];_0x35a73f++){_0x51a72a[_0x4713dd('0x2092')]({'title':_0x4ba973['data'][_0x4713dd('0x1a69')][_0x35a73f][_0x4713dd('0x7fa')],'msg':_0x4ba973[_0x4713dd('0x11c2')][_0x4713dd('0x1a69')][_0x35a73f][_0x4713dd('0x1224')]});}}else _0x51a72a[_0x4713dd('0x2092')]({'title':_0x4ba973[_0x4713dd('0x209')]?_0x4713dd('0x22d')+_0x4ba973[_0x4713dd('0x209')]+_0x4713dd('0xa99')+_0x4ba973['statusText']:_0x4713dd('0x398'),'msg':_0x4ba973['data']?JSON['stringify'](_0x4ba973['data']['message']):_0x4ba973[_0x4713dd('0x1224')]||_0x4ba973[_0x4713dd('0x174f')]()});});},function(){});}function _0x23f7f0(_0x2aa351){return _0x2aa351===null?undefined:new Date(_0x2aa351);}function _0x265d1c(_0x2f61ad){var _0x501777=_0xb7a202;_0x510caa[_0x501777('0x1c24')](_0x2f61ad);}}const _0x1c658c=_0x17ab98,_0x5d04ff=_0x398308['p']+_0x3877e3('0x1cc5'),_0x3897b9=_0x398308['p']+'src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/item/dialog.html/dialog-[chunkhash].html';_0x186e28[_0x3877e3('0x1a81')]=['$mdDialog',_0x3877e3('0x243f'),'api','toasty',_0x3877e3('0x15bc')];function _0x186e28(_0x1d899d,_0x3df544,_0x34753f,_0x92a38b,_0x14307e){var _0xcf199=_0x3877e3,_0x2bd3a5=this;_0x2bd3a5[_0xcf199('0x123f')]=_0x14307e[_0xcf199('0x15ed')](),_0x2bd3a5[_0xcf199('0x2801')]={},_0x2bd3a5[_0xcf199('0x2122')]={},_0x2bd3a5[_0xcf199('0x1ca3')]=[],_0x2bd3a5[_0xcf199('0x2511')]=-0x1,_0x2bd3a5[_0xcf199('0x5ed')],_0x2bd3a5[_0xcf199('0x1d75')]=_0xf99316,_0x2bd3a5[_0xcf199('0x2483')]=_0x1951a4,_0x2bd3a5[_0xcf199('0x1879')]=_0x54ed6b,_0x2bd3a5[_0xcf199('0x26df')]=_0x2da2a7;function _0xf99316(_0x31eae5,_0x9ad084){var _0x388848=_0xcf199;_0x2bd3a5[_0x388848('0x2801')]=_0x31eae5,_0x2bd3a5[_0x388848('0x5ed')]=typeof _0x9ad084!=='undefined'?_0x9ad084:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x34753f[_0x388848('0x26f2')][_0x388848('0xc44')]({'id':_0x2bd3a5[_0x388848('0x2801')]['id'],'sort':'-updatedAt'})['$promise'][_0x388848('0x21ad')](function(_0x31b012){var _0x1c76b3=_0x388848;return _0x2bd3a5[_0x1c76b3('0x1ca3')]=_0x31b012[_0x1c76b3('0x1b33')]?_0x31b012[_0x1c76b3('0x1b33')]:[],_0x2bd3a5[_0x1c76b3('0x1ca3')][_0x1c76b3('0x577')]&&_0x2bd3a5[_0x1c76b3('0x2483')](0x0),_0x34753f[_0x1c76b3('0x25bb')][_0x1c76b3('0x595')]({'nolimit':!![],'sort':_0x1c76b3('0x19fe')})[_0x1c76b3('0x1376')];})[_0x388848('0x21ad')](function(_0x13d347){var _0x197df2=_0x388848;_0x2bd3a5[_0x197df2('0x142d')]=_0x13d347['rows']?_0x13d347['rows']:[],_0x2bd3a5[_0x197df2('0x5f')]=_0x86640f()[_0x197df2('0xcde')](_0x2bd3a5['variables'],'id');})[_0x388848('0x1c1d')](function(_0x1c3814){var _0x771ecd=_0x388848;_0x92a38b[_0x771ecd('0x2092')]({'title':_0x1c3814[_0x771ecd('0x209')]?_0x771ecd('0x22d')+_0x1c3814[_0x771ecd('0x209')]+'\x20-\x20'+_0x1c3814[_0x771ecd('0x1808')]:_0x771ecd('0x1c4e'),'msg':_0x1c3814['data']?JSON[_0x771ecd('0x25e')](_0x1c3814[_0x771ecd('0x11c2')]):_0x1c3814[_0x771ecd('0x174f')]()});});}function _0x1951a4(_0x47c727){var _0x291a2b=_0xcf199;_0x2bd3a5[_0x291a2b('0x2122')]=_0x2bd3a5[_0x291a2b('0x1ca3')][_0x47c727],_0x2bd3a5['selectedServicenowConfiguration']=_0x47c727,_0x34753f[_0x291a2b('0x734')][_0x291a2b('0x12d7')]({'id':_0x2bd3a5[_0x291a2b('0x2122')]['id']})['$promise'][_0x291a2b('0x21ad')](function(_0x4751a0){var _0x4ea516=_0x291a2b;return _0x2bd3a5[_0x4ea516('0x1033')]=_0x4751a0[_0x4ea516('0x1b33')]?_0x4751a0['rows']:[],_0x34753f[_0x4ea516('0x734')][_0x4ea516('0x377')]({'id':_0x2bd3a5['servicenowConfiguration']['id']})[_0x4ea516('0x1376')];})['then'](function(_0x371a30){var _0x2f68d6=_0x291a2b;return _0x2bd3a5['descriptions']=_0x371a30[_0x2f68d6('0x1b33')]?_0x371a30[_0x2f68d6('0x1b33')]:[],_0x34753f[_0x2f68d6('0x734')][_0x2f68d6('0x929')]({'id':_0x2bd3a5[_0x2f68d6('0x2122')]['id']})[_0x2f68d6('0x1376')];})[_0x291a2b('0x21ad')](function(_0x213a1a){var _0x4fda2e=_0x291a2b;_0x2bd3a5[_0x4fda2e('0x181e')]=_0x213a1a[_0x4fda2e('0x1b33')]?_0x213a1a['rows']:[];})['catch'](function(_0x4f0287){var _0x47f0e9=_0x291a2b;_0x92a38b['error']({'title':_0x4f0287['status']?'API:'+_0x4f0287[_0x47f0e9('0x209')]+'\x20-\x20'+_0x4f0287[_0x47f0e9('0x1808')]:_0x47f0e9('0x172f'),'msg':_0x4f0287[_0x47f0e9('0x11c2')]?JSON[_0x47f0e9('0x25e')](_0x4f0287['data']):_0x4f0287['toString']()});});}function _0x54ed6b(_0x310dfc,_0x25b64b){var _0xa94243=_0xcf199;_0x1d899d['show']({'controller':_0xa94243('0xdb2'),'controllerAs':'vm','templateUrl':_0x5d04ff,'parent':angular['element'](_0x3df544[_0xa94243('0x2452')]),'targetEvent':_0x310dfc,'clickOutsideToClose':!![],'locals':{'servicenowConfiguration':_0x25b64b,'configurations':_0x2bd3a5['configurations'],'license':null,'setting':null,'crudPermissions':_0x2bd3a5['crudPermissions']}})['finally'](function(){var _0x22bfe5=_0xa94243;_0x2bd3a5[_0x22bfe5('0x2483')](0x0);});}function _0x2da2a7(_0x283eab,_0x2f1fe7){var _0x359cef=_0xcf199,_0x57f827=_0x1d899d[_0x359cef('0xa33')]()[_0x359cef('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20servicenowConfiguration?')[_0x359cef('0x276b')](_0x359cef('0x622')+(_0x2f1fe7['name']||_0x359cef('0x2122'))+_0x359cef('0x2135')+_0x359cef('0x25e0'))[_0x359cef('0x7a7')](_0x359cef('0x239f'))[_0x359cef('0x1e6d')](_0x283eab)['ok']('OK')[_0x359cef('0x3b5')]('CANCEL');_0x1d899d[_0x359cef('0x853')](_0x57f827)[_0x359cef('0x21ad')](function(){var _0x1825b1=_0x359cef;_0x34753f[_0x1825b1('0x734')][_0x1825b1('0x1164')]({'id':_0x2f1fe7['id']})[_0x1825b1('0x1376')]['then'](function(){var _0x53e2a9=_0x1825b1;_0x86640f()[_0x53e2a9('0x16a2')](_0x2bd3a5[_0x53e2a9('0x1ca3')],{'id':_0x2f1fe7['id']}),_0x92a38b[_0x53e2a9('0xdb1')]({'title':'ServicenowConfiguration\x20deleted!','msg':_0x2f1fe7[_0x53e2a9('0x19fe')]?_0x2f1fe7[_0x53e2a9('0x19fe')]+_0x53e2a9('0xb4a'):''});})[_0x1825b1('0x1c1d')](function(_0x2e917c){var _0x3088f1=_0x1825b1;_0x92a38b[_0x3088f1('0x2092')]({'title':_0x2e917c['status']?_0x3088f1('0x22d')+_0x2e917c[_0x3088f1('0x209')]+'\x20-\x20'+_0x2e917c[_0x3088f1('0x1808')]:_0x3088f1('0x2336'),'msg':_0x2e917c[_0x3088f1('0x11c2')]?JSON['stringify'](_0x2e917c[_0x3088f1('0x11c2')]):_0x2e917c['toString']()});})[_0x1825b1('0x13e')](function(){var _0x18831b=_0x1825b1;_0x2bd3a5[_0x18831b('0x2483')](0x0);});},function(){var _0xe5b7c7=_0x359cef;console[_0xe5b7c7('0x6fb')]('CANCEL');});}_0x2bd3a5['selectedSubjects']=[],_0x2bd3a5['createOrEditSubject']=_0x2c33e4,_0x2bd3a5['deleteSubjectConfirm']=_0x339174,_0x2bd3a5[_0xcf199('0x858')]=_0x13dd8a;function _0x2c33e4(_0x9d5361,_0x1ead4c){var _0x26e2a9=_0xcf199;_0x1d899d[_0x26e2a9('0x853')]({'controller':'CreateOrEditServicenowAccountItemDialogController','controllerAs':'vm','templateUrl':_0x3897b9,'parent':angular[_0x26e2a9('0x1676')](_0x3df544[_0x26e2a9('0x2452')]),'targetEvent':_0x9d5361,'clickOutsideToClose':!![],'locals':{'type':_0x26e2a9('0x32a'),'item':_0x1ead4c,'items':_0x2bd3a5[_0x26e2a9('0x1033')],'configuration':_0x2bd3a5[_0x26e2a9('0x2122')],'account':_0x2bd3a5[_0x26e2a9('0x2801')],'license':null,'setting':null,'crudPermissions':_0x2bd3a5[_0x26e2a9('0x5ed')]}});}function _0x17b1b1(_0x1ecc0d){var _0x307988=_0xcf199;_0x34753f[_0x307988('0x159c')][_0x307988('0x1164')]({'id':_0x1ecc0d['id']})[_0x307988('0x1376')]['then'](function(){var _0xf57e7b=_0x307988;_0x86640f()[_0xf57e7b('0x16a2')](_0x2bd3a5[_0xf57e7b('0x1033')],{'id':_0x1ecc0d['id']}),_0x92a38b['success']({'title':'Subject\x20deleted!','msg':'Subject\x20has\x20been\x20deleted!'});})[_0x307988('0x1c1d')](function(_0x4c3363){var _0x49d98d=_0x307988;_0x92a38b[_0x49d98d('0x2092')]({'title':_0x4c3363[_0x49d98d('0x209')]?'API:'+_0x4c3363[_0x49d98d('0x209')]+_0x49d98d('0xa99')+_0x4c3363[_0x49d98d('0x1808')]:_0x49d98d('0xede'),'msg':_0x4c3363[_0x49d98d('0x11c2')]?JSON[_0x49d98d('0x25e')](_0x4c3363[_0x49d98d('0x11c2')]):_0x4c3363[_0x49d98d('0x174f')]()});});}function _0x339174(_0x20f8c3,_0x4684c0){var _0x4cc822=_0xcf199,_0x3cd180=_0x1d899d[_0x4cc822('0xa33')]()[_0x4cc822('0x4b4')](_0x4cc822('0xe3a'))[_0x4cc822('0x276b')](_0x4cc822('0x2031')+_0x4cc822('0x25e0'))['ariaLabel'](_0x4cc822('0x566'))[_0x4cc822('0x1e6d')](_0x20f8c3)['ok']('OK')[_0x4cc822('0x3b5')]('CANCEL');_0x1d899d[_0x4cc822('0x853')](_0x3cd180)[_0x4cc822('0x21ad')](function(){_0x17b1b1(_0x4684c0);},function(){var _0x263055=_0x4cc822;console[_0x263055('0x6fb')](_0x263055('0x284b'));});}function _0x13dd8a(_0x386051){var _0x111a2e=_0xcf199,_0xe835b3=_0x1d899d[_0x111a2e('0xa33')]()[_0x111a2e('0x4b4')](_0x111a2e('0x6e8'))['htmlContent'](_0x111a2e('0x622')+_0x2bd3a5[_0x111a2e('0x19ba')][_0x111a2e('0x577')]+_0x111a2e('0xd74')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x111a2e('0x1828'))[_0x111a2e('0x1e6d')](_0x386051)['ok']('OK')[_0x111a2e('0x3b5')](_0x111a2e('0x284b'));_0x1d899d[_0x111a2e('0x853')](_0xe835b3)['then'](function(){var _0x9ef251=_0x111a2e;_0x2bd3a5['selectedSubjects']['forEach'](function(_0x5addf2){_0x17b1b1(_0x5addf2);}),_0x2bd3a5[_0x9ef251('0x19ba')]=[];});}_0x2bd3a5[_0xcf199('0xbdf')]=[],_0x2bd3a5[_0xcf199('0x1139')]=_0x10809e,_0x2bd3a5[_0xcf199('0x2378')]=_0x53647b,_0x2bd3a5[_0xcf199('0x1f80')]=_0x1264bf;function _0x10809e(_0x4fbd50,_0xc098c3){var _0x4147d5=_0xcf199;_0x1d899d[_0x4147d5('0x853')]({'controller':_0x4147d5('0x16dd'),'controllerAs':'vm','templateUrl':_0x3897b9,'parent':angular[_0x4147d5('0x1676')](_0x3df544[_0x4147d5('0x2452')]),'targetEvent':_0x4fbd50,'clickOutsideToClose':!![],'locals':{'type':_0x4147d5('0x1137'),'item':_0xc098c3,'items':_0x2bd3a5['descriptions'],'configuration':_0x2bd3a5[_0x4147d5('0x2122')],'account':_0x2bd3a5[_0x4147d5('0x2801')],'license':null,'setting':null,'crudPermissions':_0x2bd3a5[_0x4147d5('0x5ed')]}});}function _0x87bbaa(_0xebeeae){var _0x268252=_0xcf199;_0x34753f['intServicenowField'][_0x268252('0x1164')]({'id':_0xebeeae['id']})[_0x268252('0x1376')]['then'](function(){var _0x795315=_0x268252;_0x86640f()[_0x795315('0x16a2')](_0x2bd3a5[_0x795315('0x2161')],{'id':_0xebeeae['id']}),_0x92a38b[_0x795315('0xdb1')]({'title':_0x795315('0x1af8'),'msg':_0x795315('0x1ec6')});})[_0x268252('0x1c1d')](function(_0x228efc){var _0x229e75=_0x268252;_0x92a38b[_0x229e75('0x2092')]({'title':_0x228efc['status']?_0x229e75('0x22d')+_0x228efc[_0x229e75('0x209')]+'\x20-\x20'+_0x228efc[_0x229e75('0x1808')]:_0x229e75('0xede'),'msg':_0x228efc[_0x229e75('0x11c2')]?JSON[_0x229e75('0x25e')](_0x228efc[_0x229e75('0x11c2')]):_0x228efc[_0x229e75('0x174f')]()});});}function _0x53647b(_0x45b3ee,_0xe53990){var _0x33b4aa=_0xcf199,_0x282ae9=_0x1d899d['confirm']()[_0x33b4aa('0x4b4')](_0x33b4aa('0x1d59'))[_0x33b4aa('0x276b')]('Description'+_0x33b4aa('0x25e0'))['ariaLabel'](_0x33b4aa('0xe67'))[_0x33b4aa('0x1e6d')](_0x45b3ee)['ok']('OK')[_0x33b4aa('0x3b5')](_0x33b4aa('0x284b'));_0x1d899d[_0x33b4aa('0x853')](_0x282ae9)[_0x33b4aa('0x21ad')](function(){_0x87bbaa(_0xe53990);},function(){var _0xb92772=_0x33b4aa;console[_0xb92772('0x6fb')]('CANCEL');});}function _0x1264bf(_0x5b7876){var _0x598346=_0xcf199,_0x12f2c9=_0x1d899d[_0x598346('0xa33')]()[_0x598346('0x4b4')](_0x598346('0x6e'))[_0x598346('0x276b')](_0x598346('0x622')+_0x2bd3a5[_0x598346('0xbdf')][_0x598346('0x577')]+_0x598346('0xd74')+_0x598346('0x25e0'))[_0x598346('0x7a7')](_0x598346('0x211d'))[_0x598346('0x1e6d')](_0x5b7876)['ok']('OK')['cancel']('CANCEL');_0x1d899d[_0x598346('0x853')](_0x12f2c9)[_0x598346('0x21ad')](function(){var _0xa8118f=_0x598346;_0x2bd3a5[_0xa8118f('0xbdf')][_0xa8118f('0x1a52')](function(_0x201833){_0x87bbaa(_0x201833);}),_0x2bd3a5['selectedDescriptions']=[];});}_0x2bd3a5[_0xcf199('0x21b0')]=[],_0x2bd3a5[_0xcf199('0x97')]=_0x38778d,_0x2bd3a5['deleteFieldConfirm']=_0x30610d,_0x2bd3a5[_0xcf199('0xe52')]=_0x1adb18;function _0x38778d(_0xeb4793,_0x19852f){var _0x1b717a=_0xcf199;_0x1d899d[_0x1b717a('0x853')]({'controller':_0x1b717a('0x16dd'),'controllerAs':'vm','templateUrl':_0x3897b9,'parent':angular['element'](_0x3df544[_0x1b717a('0x2452')]),'targetEvent':_0xeb4793,'clickOutsideToClose':!![],'locals':{'type':_0x1b717a('0xff8'),'item':_0x19852f,'items':_0x2bd3a5[_0x1b717a('0x181e')],'configuration':_0x2bd3a5[_0x1b717a('0x2122')],'account':_0x2bd3a5[_0x1b717a('0x2801')],'license':null,'setting':null,'crudPermissions':_0x2bd3a5['crudPermissions']}});}function _0x2ee9e6(_0x1fd493){var _0x49882e=_0xcf199;_0x34753f[_0x49882e('0x159c')][_0x49882e('0x1164')]({'id':_0x1fd493['id']})[_0x49882e('0x1376')][_0x49882e('0x21ad')](function(){var _0x358598=_0x49882e;_0x86640f()[_0x358598('0x16a2')](_0x2bd3a5[_0x358598('0x181e')],{'id':_0x1fd493['id']}),_0x92a38b[_0x358598('0xdb1')]({'title':'Field\x20deleted!','msg':_0x358598('0x2263')});})[_0x49882e('0x1c1d')](function(_0x51f51f){var _0xfd412d=_0x49882e;_0x92a38b[_0xfd412d('0x2092')]({'title':_0x51f51f[_0xfd412d('0x209')]?_0xfd412d('0x22d')+_0x51f51f[_0xfd412d('0x209')]+_0xfd412d('0xa99')+_0x51f51f[_0xfd412d('0x1808')]:_0xfd412d('0xede'),'msg':_0x51f51f['data']?JSON['stringify'](_0x51f51f[_0xfd412d('0x11c2')]):_0x51f51f[_0xfd412d('0x174f')]()});});}function _0x30610d(_0x1f1cef,_0x5f3053){var _0x382df8=_0xcf199,_0xed61b5=_0x1d899d[_0x382df8('0xa33')]()['title'](_0x382df8('0x2207'))[_0x382df8('0x276b')](_0x382df8('0x171')+'\x20will\x20be\x20deleted.')[_0x382df8('0x7a7')]('delete\x20field')[_0x382df8('0x1e6d')](_0x1f1cef)['ok']('OK')[_0x382df8('0x3b5')](_0x382df8('0x284b'));_0x1d899d[_0x382df8('0x853')](_0xed61b5)[_0x382df8('0x21ad')](function(){_0x2ee9e6(_0x5f3053);},function(){var _0x3a5c1c=_0x382df8;console[_0x3a5c1c('0x6fb')]('CANCEL');});}function _0x1adb18(_0x177609){var _0x4f3a9b=_0xcf199,_0x34008d=_0x1d899d['confirm']()[_0x4f3a9b('0x4b4')](_0x4f3a9b('0x655'))[_0x4f3a9b('0x276b')](_0x4f3a9b('0x622')+_0x2bd3a5[_0x4f3a9b('0x21b0')]['length']+_0x4f3a9b('0xd74')+_0x4f3a9b('0x25e0'))[_0x4f3a9b('0x7a7')](_0x4f3a9b('0x85f'))[_0x4f3a9b('0x1e6d')](_0x177609)['ok']('OK')[_0x4f3a9b('0x3b5')]('CANCEL');_0x1d899d[_0x4f3a9b('0x853')](_0x34008d)['then'](function(){var _0x415a26=_0x4f3a9b;_0x2bd3a5[_0x415a26('0x21b0')]['forEach'](function(_0x3dfa10){_0x2ee9e6(_0x3dfa10);}),_0x2bd3a5[_0x415a26('0x21b0')]=[];});}}const _0x46c36b=_0x186e28;_0x1ac5ff[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),'$mdDialog','$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x1ca3'),'servicenowConfiguration',_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x1ac5ff(_0xdf9c46,_0x1725c2,_0x45df1a,_0x53d3d2,_0x3f12ca,_0x51dae8,_0x5e8333,_0x1987d2,_0x3baa56,_0x3a9233,_0x27cf29,_0x4b33e5,_0x54d3f8,_0x4c1c37){var _0x30ac12=_0x3877e3,_0x6cb89b=this;_0x6cb89b[_0x30ac12('0x123f')]=_0x27cf29[_0x30ac12('0x15ed')](),_0x6cb89b['errors']=[],_0x6cb89b[_0x30ac12('0x21e')]=_0x54d3f8,_0x6cb89b[_0x30ac12('0x2ff')]=_0x4b33e5,_0x6cb89b['crudPermissions']=_0x4c1c37,_0x6cb89b[_0x30ac12('0x126a')]={},_0x6cb89b[_0x30ac12('0x1432')]=_0x6cb89b['setting']&&_0x6cb89b['setting'][_0x30ac12('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x6cb89b[_0x30ac12('0x4b4')]=_0x30ac12('0xb4c'),_0x6cb89b['servicenowConfiguration']=angular['copy'](_0x3baa56),_0x6cb89b[_0x30ac12('0x1ca3')]=_0x1987d2,_0x6cb89b[_0x30ac12('0xd88')]=![];!_0x6cb89b[_0x30ac12('0x2122')]&&(_0x6cb89b[_0x30ac12('0x2122')]={'channel':_0x30ac12('0x8ed'),'type':'inbound'},_0x6cb89b[_0x30ac12('0x4b4')]=_0x30ac12('0x1547'),_0x6cb89b[_0x30ac12('0xd88')]=!![]);_0x6cb89b[_0x30ac12('0x6a7')]=_0x4447a5,_0x6cb89b[_0x30ac12('0x1b11')]=_0x15540c,_0x6cb89b[_0x30ac12('0x26df')]=_0x3386f7,_0x6cb89b[_0x30ac12('0x279')]=_0x31825b,_0x6cb89b[_0x30ac12('0x167')]=_0x4df9d3;function _0x4447a5(){var _0x21c448=_0x30ac12;_0x6cb89b[_0x21c448('0x1a69')]=[],_0x3a9233[_0x21c448('0x26f2')]['addConfiguration']({'id':_0x1725c2[_0x21c448('0x171b')]['id']},_0x6cb89b[_0x21c448('0x2122')])['$promise'][_0x21c448('0x21ad')](function(_0x3a6695){var _0x141728=_0x21c448;_0x6cb89b[_0x141728('0x1ca3')][_0x141728('0xd0c')](_0x3a6695[_0x141728('0x3bc')]()),_0x5e8333[_0x141728('0xdb1')]({'title':_0x141728('0x245b'),'msg':_0x6cb89b[_0x141728('0x2122')][_0x141728('0x19fe')]?_0x6cb89b[_0x141728('0x2122')][_0x141728('0x19fe')]+'\x20has\x20been\x20created!':''}),_0x4df9d3(_0x3a6695);})[_0x21c448('0x1c1d')](function(_0x417d36){var _0x3ab460=_0x21c448;if(_0x417d36[_0x3ab460('0x11c2')]&&_0x417d36[_0x3ab460('0x11c2')][_0x3ab460('0x1a69')]&&_0x417d36[_0x3ab460('0x11c2')][_0x3ab460('0x1a69')][_0x3ab460('0x577')]){_0x6cb89b[_0x3ab460('0x1a69')]=_0x417d36[_0x3ab460('0x11c2')][_0x3ab460('0x1a69')]||[{'message':_0x417d36[_0x3ab460('0x174f')](),'type':_0x3ab460('0x2597')}];for(var _0x380f6f=0x0;_0x380f6f<_0x417d36['data'][_0x3ab460('0x1a69')]['length'];_0x380f6f+=0x1){_0x5e8333[_0x3ab460('0x2092')]({'title':_0x417d36[_0x3ab460('0x11c2')][_0x3ab460('0x1a69')][_0x380f6f][_0x3ab460('0x7fa')],'msg':_0x417d36[_0x3ab460('0x11c2')][_0x3ab460('0x1a69')][_0x380f6f][_0x3ab460('0x1224')]});}}else _0x5e8333[_0x3ab460('0x2092')]({'title':_0x417d36[_0x3ab460('0x209')]?_0x3ab460('0x22d')+_0x417d36[_0x3ab460('0x209')]+_0x3ab460('0xa99')+_0x417d36[_0x3ab460('0x1808')]:_0x3ab460('0x2597'),'msg':_0x417d36['data']?JSON[_0x3ab460('0x25e')](_0x417d36[_0x3ab460('0x11c2')]['message']):_0x417d36[_0x3ab460('0x174f')]()});});}function _0x15540c(){var _0x577d79=_0x30ac12;_0x6cb89b[_0x577d79('0x1a69')]=[],_0x3a9233[_0x577d79('0x734')][_0x577d79('0x5ef')]({'id':_0x6cb89b[_0x577d79('0x2122')]['id']},_0x6cb89b[_0x577d79('0x2122')])[_0x577d79('0x1376')][_0x577d79('0x21ad')](function(_0x5d9490){var _0xb988c5=_0x577d79,_0xdda1a6=_0x86640f()['find'](_0x6cb89b[_0xb988c5('0x1ca3')],{'id':_0x5d9490['id']});_0xdda1a6&&_0x86640f()[_0xb988c5('0xd0e')](_0xdda1a6,_0x86640f()[_0xb988c5('0xc50')](_0x5d9490[_0xb988c5('0x3bc')](),_0x86640f()[_0xb988c5('0x223b')](_0xdda1a6))),_0x5e8333[_0xb988c5('0xdb1')]({'title':_0xb988c5('0x21fe'),'msg':_0x6cb89b[_0xb988c5('0x2122')]['name']?_0x6cb89b[_0xb988c5('0x2122')][_0xb988c5('0x19fe')]+_0xb988c5('0x2249'):''}),_0x4df9d3(_0x5d9490);})[_0x577d79('0x1c1d')](function(_0x128c3e){var _0x59fcf0=_0x577d79;if(_0x128c3e[_0x59fcf0('0x11c2')]&&_0x128c3e[_0x59fcf0('0x11c2')][_0x59fcf0('0x1a69')]&&_0x128c3e[_0x59fcf0('0x11c2')]['errors']['length']){_0x6cb89b[_0x59fcf0('0x1a69')]=_0x128c3e[_0x59fcf0('0x11c2')][_0x59fcf0('0x1a69')]||[{'message':_0x128c3e['toString'](),'type':_0x59fcf0('0x19b')}];for(var _0x4b13e7=0x0;_0x4b13e7<_0x128c3e[_0x59fcf0('0x11c2')]['errors'][_0x59fcf0('0x577')];_0x4b13e7++){_0x5e8333[_0x59fcf0('0x2092')]({'title':_0x128c3e[_0x59fcf0('0x11c2')][_0x59fcf0('0x1a69')][_0x4b13e7][_0x59fcf0('0x7fa')],'msg':_0x128c3e['data']['errors'][_0x4b13e7]['message']});}}else _0x5e8333[_0x59fcf0('0x2092')]({'title':_0x128c3e[_0x59fcf0('0x209')]?_0x59fcf0('0x22d')+_0x128c3e[_0x59fcf0('0x209')]+_0x59fcf0('0xa99')+_0x128c3e['statusText']:_0x59fcf0('0x19b'),'msg':_0x128c3e['data']?JSON[_0x59fcf0('0x25e')](_0x128c3e['data'][_0x59fcf0('0x1224')]):_0x128c3e[_0x59fcf0('0x174f')]()});});}function _0x3386f7(_0x19061a){var _0x2df79a=_0x30ac12;_0x6cb89b[_0x2df79a('0x1a69')]=[];var _0x24224b=_0x53d3d2[_0x2df79a('0xa33')]()[_0x2df79a('0x4b4')](_0x2df79a('0x196b'))[_0x2df79a('0x13fb')](_0x2df79a('0xf13'))[_0x2df79a('0x7a7')]('Delete\x20ServicenowConfiguration')['ok'](_0x2df79a('0xbfd'))['cancel'](_0x2df79a('0x1f40'))['targetEvent'](_0x19061a);_0x53d3d2[_0x2df79a('0x853')](_0x24224b)[_0x2df79a('0x21ad')](function(){var _0x55785e=_0x2df79a;_0x3a9233[_0x55785e('0x734')]['delete']({'id':_0x6cb89b[_0x55785e('0x2122')]['id']})[_0x55785e('0x1376')][_0x55785e('0x21ad')](function(){var _0x399915=_0x55785e;_0x86640f()['remove'](_0x6cb89b['configurations'],{'id':_0x6cb89b[_0x399915('0x2122')]['id']}),_0x5e8333[_0x399915('0xdb1')]({'title':_0x399915('0x211a'),'msg':(_0x6cb89b[_0x399915('0x2122')][_0x399915('0x19fe')]||_0x399915('0x2122'))+_0x399915('0xb4a')}),_0x4df9d3(_0x6cb89b[_0x399915('0x2122')]);})[_0x55785e('0x1c1d')](function(_0x31be0e){var _0x3ec72f=_0x55785e;if(_0x31be0e[_0x3ec72f('0x11c2')]&&_0x31be0e['data'][_0x3ec72f('0x1a69')]&&_0x31be0e[_0x3ec72f('0x11c2')][_0x3ec72f('0x1a69')][_0x3ec72f('0x577')]){_0x6cb89b['errors']=_0x31be0e[_0x3ec72f('0x11c2')][_0x3ec72f('0x1a69')]||[{'message':_0x31be0e[_0x3ec72f('0x174f')](),'type':'api.intServicenowConfiguration.delete'}];for(var _0x54cf16=0x0;_0x54cf16<_0x31be0e[_0x3ec72f('0x11c2')][_0x3ec72f('0x1a69')][_0x3ec72f('0x577')];_0x54cf16++){_0x5e8333[_0x3ec72f('0x2092')]({'title':_0x31be0e['data'][_0x3ec72f('0x1a69')][_0x54cf16][_0x3ec72f('0x7fa')],'msg':_0x31be0e[_0x3ec72f('0x11c2')][_0x3ec72f('0x1a69')][_0x54cf16]['message']});}}else _0x5e8333['error']({'title':_0x31be0e[_0x3ec72f('0x209')]?_0x3ec72f('0x22d')+_0x31be0e[_0x3ec72f('0x209')]+'\x20-\x20'+_0x31be0e[_0x3ec72f('0x1808')]:_0x3ec72f('0x1f48'),'msg':_0x31be0e[_0x3ec72f('0x11c2')]?JSON[_0x3ec72f('0x25e')](_0x31be0e['data'][_0x3ec72f('0x1224')]):_0x31be0e['message']||_0x31be0e[_0x3ec72f('0x174f')]()});});},function(){});}function _0x31825b(_0x1a23c5){return _0x1a23c5===null?undefined:new Date(_0x1a23c5);}function _0x4df9d3(_0x53c9fb){var _0x4d23bc=_0x30ac12;_0x53d3d2[_0x4d23bc('0x1c24')](_0x53c9fb);}}const _0x1de61e=_0x1ac5ff;_0x3b969d[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),_0x3877e3('0x1908'),_0x3877e3('0xb4f'),_0x3877e3('0x1b9a'),_0x3877e3('0x19ca'),_0x3877e3('0x1fd3'),_0x3877e3('0x7fa'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x3b969d(_0xa34bd0,_0x45e6cc,_0x479276,_0x13858c,_0x455466,_0xccb74d,_0x2dc712,_0xd9a241,_0x21a5a4,_0x482482,_0x42f3d9,_0x5c64eb,_0x2268c2){var _0x153097=_0x3877e3,_0x2b5fcf=this;_0x2b5fcf[_0x153097('0x123f')]=_0x5c64eb[_0x153097('0x15ed')](),_0x2b5fcf[_0x153097('0x1a69')]=[],_0x2b5fcf[_0x153097('0x4b4')]=_0x153097('0x177a')+_0x86640f()[_0x153097('0x7c1')](_0x482482),_0x2b5fcf[_0x153097('0x19ca')]=angular['copy'](_0xd9a241),_0x2b5fcf[_0x153097('0x1b9a')]=_0x2dc712,_0x2b5fcf[_0x153097('0x7fa')]=_0x482482,_0x2b5fcf[_0x153097('0x5ed')]=_0x2268c2,_0x2b5fcf['newItem']=![];!_0x2b5fcf[_0x153097('0x19ca')]&&(_0x2b5fcf[_0x153097('0x19ca')]={'type':_0x153097('0x2638')},_0x2b5fcf[_0x153097('0x19ca')][_0x86640f()['capitalize'](_0x482482)+'Id']=_0xccb74d['id'],_0x2b5fcf[_0x153097('0x4b4')]=_0x153097('0x1d99')+_0x86640f()[_0x153097('0x7c1')](_0x482482),_0x2b5fcf[_0x153097('0xf8')]=!![]);_0x2b5fcf['addNewItem']=_0x31d1f8,_0x2b5fcf[_0x153097('0x1c97')]=_0x4fd95d,_0x2b5fcf['deleteItem']=_0x364ead,_0x2b5fcf[_0x153097('0x23fe')]=_0x41b525,_0x2b5fcf[_0x153097('0x167')]=_0x4a1e4a,_0x42f3d9[_0x153097('0x25bb')][_0x153097('0x595')]({'nolimit':!![]})[_0x153097('0x1376')][_0x153097('0x21ad')](function(_0x1a3b7f){var _0x27d630=_0x153097;return _0x2b5fcf[_0x27d630('0x142d')]=_0x1a3b7f[_0x27d630('0x1b33')]?_0x1a3b7f['rows']:[],_0x42f3d9[_0x27d630('0x9b6')][_0x27d630('0x1219')]()[_0x27d630('0x1376')];})[_0x153097('0x21ad')](function(_0x30b2eb){var _0x18d3d4=_0x153097;return _0x2b5fcf[_0x18d3d4('0x22eb')]=_0x86640f()[_0x18d3d4('0x5a8')](_0x86640f()['keys'](_0x30b2eb),['$promise',_0x18d3d4('0x9f8'),_0x18d3d4('0x23ae'),_0x18d3d4('0x15af'),'sourceid']),_0x2b5fcf[_0x18d3d4('0x22eb')][_0x18d3d4('0x206c')](_0x18d3d4('0x250a')),_0x42f3d9[_0x18d3d4('0x17bb')][_0x18d3d4('0x1219')]()[_0x18d3d4('0x1376')];})[_0x153097('0x21ad')](function(_0x893d4){var _0x3a996d=_0x153097;_0x2b5fcf[_0x3a996d('0x1491')]=_0x86640f()[_0x3a996d('0x5a8')](_0x86640f()['keys'](_0x893d4),['$promise',_0x3a996d('0x9f8'),_0x3a996d('0x23ae'),_0x3a996d('0x15af'),'sourceid']),_0x2b5fcf['voiceDialReportColumns'][_0x3a996d('0x206c')](_0x3a996d('0x250a'));})[_0x153097('0x1c1d')](function(_0x3372d9){var _0x48e8b1=_0x153097;_0x455466[_0x48e8b1('0x2092')]({'title':_0x3372d9[_0x48e8b1('0x209')]?_0x48e8b1('0x22d')+_0x3372d9[_0x48e8b1('0x209')]+'\x20-\x20'+_0x3372d9[_0x48e8b1('0x1808')]:_0x48e8b1('0x8f3'),'msg':_0x3372d9['data']?JSON[_0x48e8b1('0x25e')](_0x3372d9[_0x48e8b1('0x11c2')]):_0x3372d9[_0x48e8b1('0x174f')]()});}),_0x42f3d9['intServicenowAccount'][_0x153097('0x929')]({'id':_0x21a5a4['id'],'ticketType':_0xccb74d['ticketType']?_0xccb74d[_0x153097('0x257e')]:undefined})[_0x153097('0x1376')][_0x153097('0x21ad')](function(_0x10c830){var _0x2241e5=_0x153097;_0x2b5fcf[_0x2241e5('0x2097')]=!![],_0x2b5fcf[_0x2241e5('0x181e')]=_0x10c830[_0x2241e5('0x1b33')]?_0x10c830[_0x2241e5('0x1b33')]:[],_0x2b5fcf[_0x2241e5('0x19ca')]['idField']&&(_0x2b5fcf[_0x2241e5('0x1fa7')]=_0x86640f()[_0x2241e5('0x1d2e')](_0x2b5fcf[_0x2241e5('0x181e')],{'id':_0x2b5fcf[_0x2241e5('0x19ca')][_0x2241e5('0x1830')]}));})['catch'](function(_0x5527e3){var _0x590637=_0x153097;_0x2b5fcf[_0x590637('0x2097')]=![],console[_0x590637('0x2092')](_0x5527e3);});function _0x31d1f8(){var _0x2f7165=_0x153097;_0x2b5fcf[_0x2f7165('0x1a69')]=[],_0x2b5fcf[_0x2f7165('0x1fa7')]&&(_0x2b5fcf['item']['idField']=_0x2b5fcf[_0x2f7165('0x1fa7')]['id'],_0x2b5fcf[_0x2f7165('0x19ca')][_0x2f7165('0xb45')]=_0x2b5fcf[_0x2f7165('0x1fa7')][_0x2f7165('0x19fe')],_0x2b5fcf['item']['customField']=_0x2b5fcf[_0x2f7165('0x1fa7')][_0x2f7165('0xf50')]),_0x42f3d9[_0x2f7165('0x159c')][_0x2f7165('0x186f')](_0x2b5fcf[_0x2f7165('0x19ca')])[_0x2f7165('0x1376')][_0x2f7165('0x21ad')](function(_0x2b8719){var _0x49cad2=_0x2f7165;_0x2b5fcf[_0x49cad2('0x1b9a')]['unshift'](_0x2b8719),_0x455466[_0x49cad2('0xdb1')]({'title':_0x86640f()[_0x49cad2('0x1b7e')](_0x482482)+_0x49cad2('0x1de2'),'msg':_0x86640f()['capitalize'](_0x482482)+'\x20has\x20been\x20created!'}),_0x4a1e4a();})[_0x2f7165('0x1c1d')](function(_0x40d90a){var _0x1c9ce2=_0x2f7165;console[_0x1c9ce2('0x2092')](_0x40d90a),_0x2b5fcf[_0x1c9ce2('0x1a69')]=_0x40d90a[_0x1c9ce2('0x11c2')]['errors']||[{'message':_0x40d90a[_0x1c9ce2('0x174f')](),'type':_0x1c9ce2('0x1a23')}];});}function _0x4fd95d(){var _0x21ec8c=_0x153097;_0x2b5fcf[_0x21ec8c('0x1a69')]=[],_0x2b5fcf['customField']&&(_0x2b5fcf['item'][_0x21ec8c('0x1830')]=_0x2b5fcf[_0x21ec8c('0x1fa7')]['id'],_0x2b5fcf[_0x21ec8c('0x19ca')]['nameField']=_0x2b5fcf['customField'][_0x21ec8c('0x19fe')],_0x2b5fcf['item'][_0x21ec8c('0x1fa7')]=_0x2b5fcf['customField'][_0x21ec8c('0xf50')]),_0x42f3d9[_0x21ec8c('0x159c')][_0x21ec8c('0x5ef')]({'id':_0x2b5fcf[_0x21ec8c('0x19ca')]['id']},_0x2b5fcf[_0x21ec8c('0x19ca')])[_0x21ec8c('0x1376')][_0x21ec8c('0x21ad')](function(_0x13921b){var _0x1859dc=_0x21ec8c,_0x46015c=_0x86640f()[_0x1859dc('0x1d2e')](_0x2b5fcf[_0x1859dc('0x1b9a')],{'id':_0x13921b['id']});_0x46015c&&_0x86640f()[_0x1859dc('0xd0e')](_0x46015c,_0x13921b),_0x455466['success']({'title':_0x86640f()['capitalize'](_0x482482)+_0x1859dc('0x2a3'),'msg':_0x86640f()[_0x1859dc('0x1b7e')](_0x482482)+'\x20has\x20been\x20saved!'}),_0x4a1e4a();})['catch'](function(_0x58fbd4){var _0x573e28=_0x21ec8c;console[_0x573e28('0x2092')](_0x58fbd4),_0x2b5fcf[_0x573e28('0x1a69')]=_0x58fbd4[_0x573e28('0x11c2')][_0x573e28('0x1a69')]||[{'message':_0x58fbd4[_0x573e28('0x174f')](),'type':_0x573e28('0x1488')}];});}function _0x364ead(_0x522b9d){var _0x5e970e=_0x153097;_0x2b5fcf['errors']=[];var _0x4856df=_0x13858c['confirm']()['title'](_0x5e970e('0x196b'))[_0x5e970e('0x13fb')]('The\x20'+_0x482482+_0x5e970e('0x25e0'))[_0x5e970e('0x7a7')](_0x5e970e('0x2e4')+_0x86640f()[_0x5e970e('0x1b7e')](_0x482482))['ok'](_0x5e970e('0xbfd'))[_0x5e970e('0x3b5')](_0x5e970e('0x1f40'))[_0x5e970e('0x1e6d')](_0x522b9d);_0x13858c['show'](_0x4856df)['then'](function(){var _0xaa59e=_0x5e970e;_0x42f3d9[_0xaa59e('0x159c')][_0xaa59e('0x1164')]({'id':_0x2b5fcf[_0xaa59e('0x19ca')]['id']})[_0xaa59e('0x1376')][_0xaa59e('0x21ad')](function(){var _0x413dc0=_0xaa59e;_0x86640f()[_0x413dc0('0x16a2')](_0x2b5fcf['items'],{'id':_0x2b5fcf[_0x413dc0('0x19ca')]['id']}),_0x455466[_0x413dc0('0xdb1')]({'title':_0x86640f()[_0x413dc0('0x1b7e')](_0x482482)+_0x413dc0('0x11b6'),'msg':_0x86640f()[_0x413dc0('0x1b7e')](_0x482482)+_0x413dc0('0xb4a')}),_0x4a1e4a();})['catch'](function(_0xf7519){var _0x4aa6af=_0xaa59e;console[_0x4aa6af('0x2092')](_0xf7519),_0x2b5fcf['errors']=_0xf7519[_0x4aa6af('0x11c2')][_0x4aa6af('0x1a69')]||[{'message':_0xf7519['toString'](),'type':'api.item.delete'}];});},function(){});}function _0x41b525(){var _0x31fcc9=_0x153097;return _0x2b5fcf[_0x31fcc9('0x19ca')]['variableName']!==undefined?_0x2b5fcf[_0x31fcc9('0x19ca')][_0x31fcc9('0x1651')]:_0x31fcc9('0x17f7');}function _0x4a1e4a(){_0x13858c['hide']();}}const _0x6b5125=_0x3b969d;_0x2b5449[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x13c1'),'license',_0x3877e3('0x21e'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2801'),_0x3877e3('0xab4')];function _0x2b5449(_0xe369a0,_0x352252,_0x9fa7ff,_0x138ce0,_0x2dffb2,_0x38de2a,_0x1df9e4,_0x56f349,_0x2f6fcf,_0x1b3b09,_0x4ca84d,_0x477c64){var _0x403d99=_0x3877e3,_0x383c39=this;_0x383c39['currentUser']=_0x1b3b09[_0x403d99('0x15ed')](),_0x383c39[_0x403d99('0x2ff')]=_0x38de2a,_0x383c39[_0x403d99('0x21e')]=_0x1df9e4,_0x383c39[_0x403d99('0x1432')]=_0x383c39[_0x403d99('0x21e')][_0x403d99('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x383c39['location']=_0x352252[_0x403d99('0x1162')]()+_0x403d99('0x22a9')+_0x352252[_0x403d99('0x1c01')](),_0x383c39[_0x403d99('0x2801')]=_0x4ca84d||_0xe369a0[_0x403d99('0x171b')][_0x403d99('0x2801')]||{},_0x383c39[_0x403d99('0xab4')]=_0x477c64&&_0x477c64[_0x403d99('0x205f')]==0x1?_0x477c64['rows'][0x0]:null,_0x383c39['crudPermissions']=_0x1b3b09[_0x403d99('0x1778')](_0x383c39[_0x403d99('0xab4')]?_0x383c39[_0x403d99('0xab4')]['crudPermissions']:null),_0x383c39[_0x403d99('0x126a')]={},_0x383c39[_0x403d99('0x302')]=_0xe369a0[_0x403d99('0x171b')]['tab']||0x0,_0x383c39[_0x403d99('0x95b')]=_0x2f6fcf[_0x403d99('0x231c')],_0x383c39[_0x403d99('0x1d8d')]=_0x2b523b,_0x383c39[_0x403d99('0x293')]=_0x56157c;function _0x2b523b(){var _0x7ca7f5=_0x403d99;_0xe369a0['go'](_0x7ca7f5('0x13b7'),{},{'reload':'app.integrations.servicenowAccounts'});}function _0x56157c(){var _0x1d488b=_0x403d99;_0x56f349['intServicenowAccount'][_0x1d488b('0x5ef')]({'id':_0x383c39['servicenowAccount']['id']},_0x383c39[_0x1d488b('0x2801')])[_0x1d488b('0x1376')][_0x1d488b('0x21ad')](function(){var _0x141992=_0x1d488b;_0x2f6fcf[_0x141992('0xdb1')]({'title':_0x141992('0x1cf6'),'msg':_0x383c39['servicenowAccount'][_0x141992('0x19fe')]?_0x383c39[_0x141992('0x2801')][_0x141992('0x19fe')]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0xb2e4b0){var _0x317299=_0x1d488b;_0x2f6fcf[_0x317299('0x2092')]({'title':_0xb2e4b0[_0x317299('0x209')]?_0x317299('0x22d')+_0xb2e4b0['status']+_0x317299('0xa99')+_0xb2e4b0[_0x317299('0x1808')]:_0x317299('0x913'),'msg':_0xb2e4b0[_0x317299('0x11c2')]?JSON[_0x317299('0x25e')](_0xb2e4b0['data']):_0xb2e4b0[_0x317299('0x174f')]()});});}}const _0x4cfacf=_0x2b5449,_0x4a1c6f=_0x398308['p']+'src/js/modules/main/apps/integrations/views/servicenowAccounts/create/dialog.html/dialog-[chunkhash].html';_0x401712[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),_0x3877e3('0x1850'),'$document',_0x3877e3('0x2313'),_0x3877e3('0x13c1'),_0x3877e3('0x3e'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),'license','setting'];function _0x401712(_0x3dd02e,_0x36aeac,_0x4084ce,_0x1b57a3,_0x5294c9,_0x11fb42,_0x4c2a20,_0x3d458b,_0x97f679,_0x1dea9b,_0x44777d,_0x5fbe51,_0x11a817,_0xb2f079,_0x2b8aa5,_0x36f53d,_0x180cd6){var _0x485a15=_0x3877e3,_0x5756ac=this;_0x5756ac['license']=_0x36f53d,_0x5756ac[_0x485a15('0x21e')]=_0x180cd6,_0x5756ac[_0x485a15('0x123f')]=_0x2b8aa5[_0x485a15('0x15ed')](),_0x5756ac[_0x485a15('0x3e')]=_0x97f679||{'count':0x0,'rows':[]},_0x5756ac[_0x485a15('0x758')]=_0x1dea9b,_0x5756ac['userProfileSection']=_0x44777d&&_0x44777d[_0x485a15('0x205f')]==0x1?_0x44777d['rows'][0x0]:null,_0x5756ac[_0x485a15('0x5ed')]=_0x2b8aa5[_0x485a15('0x1778')](_0x5756ac[_0x485a15('0xab4')]?_0x5756ac['userProfileSection'][_0x485a15('0x5ed')]:null),_0x5756ac['table']=_0x485a15('0x3e'),_0x5756ac['listOrder']='',_0x5756ac['listOrderAsc']=null,_0x5756ac[_0x485a15('0x1b59')]=[],_0x5756ac[_0x485a15('0x77')]={'fields':_0x485a15('0x2c'),'limit':0xa,'page':0x1},_0x5756ac[_0x485a15('0x1c88')]=_0x4bea13,_0x5756ac[_0x485a15('0x155c')]=_0x5b16cf,_0x5756ac[_0x485a15('0x2593')]=_0x3a0462,_0x5756ac[_0x485a15('0xdb1')]=_0x1cef7c,_0x5756ac[_0x485a15('0x1c7a')]=_0x594a0a,_0x5756ac['createOrEditServicenowAccount']=_0xcbda43,_0x5756ac[_0x485a15('0x200b')]=_0x28f756,_0x5756ac[_0x485a15('0x257')]=_0x34c73f,_0x5756ac[_0x485a15('0x1a2b')]=_0x86899e,_0x5756ac[_0x485a15('0x434')]=_0x6e2011,_0x5756ac[_0x485a15('0x151')]=_0x24b7e6;function _0x4bea13(_0x614773){var _0x1f9ca8=_0x485a15;_0x4084ce['go'](_0x1f9ca8('0x1508'),{'id':_0x614773['id'],'servicenowAccount':_0x614773,'crudPermissions':_0x5756ac[_0x1f9ca8('0x5ed')]});}function _0x5b16cf(_0x10d855){var _0x10e57f=_0x485a15;return _0x5fbe51['intServicenowAccount'][_0x10e57f('0x929')]({'id':_0x10d855['id'],'test':!![]})[_0x10e57f('0x1376')][_0x10e57f('0x21ad')](function(){var _0x1e0eb8=_0x10e57f;_0xb2f079['success']({'title':_0x1e0eb8('0xfa8'),'msg':'Connection\x20succeded!'});})['catch'](function(_0x4c6590){var _0x2b147e=_0x10e57f;_0xb2f079[_0x2b147e('0x2092')]({'title':_0x2b147e('0xfa8'),'msg':_0x4c6590[_0x2b147e('0x11c2')]?_0x4c6590[_0x2b147e('0x11c2')][_0x2b147e('0x1224')]?_0x4c6590['data'][_0x2b147e('0x1224')]:JSON[_0x2b147e('0x25e')](_0x4c6590[_0x2b147e('0x11c2')]):_0x4c6590['toString']()});});}function _0x3a0462(_0x4fca6a,_0x39e8e1){var _0x503243=_0x485a15,_0x5b7242=_0x5294c9['confirm']()[_0x503243('0x4b4')](_0x503243('0x25b6')+_0x86640f()[_0x503243('0x2159')](_0x503243('0x2801'))+'?')[_0x503243('0x276b')](_0x503243('0x622')+(_0x4fca6a['name']||_0x503243('0x2801'))+_0x503243('0x2135')+_0x503243('0x25e0'))[_0x503243('0x7a7')]('delete\x20servicenowAccount')['targetEvent'](_0x39e8e1)['ok']('OK')['cancel']('CANCEL');_0x5294c9[_0x503243('0x853')](_0x5b7242)[_0x503243('0x21ad')](function(){_0x28f756(_0x4fca6a);},function(){var _0x5c78f7=_0x503243;console[_0x5c78f7('0x6fb')](_0x5c78f7('0x284b'));});}var _0x549624=!![],_0x445c52=0x1;_0x3dd02e[_0x485a15('0x10e8')](_0x485a15('0x1948'),function(_0x1a2f10,_0x51cbf0){var _0x32f026=_0x485a15;_0x549624?_0x4c2a20(function(){_0x549624=![];}):(!_0x51cbf0&&(_0x445c52=_0x5756ac[_0x32f026('0x77')][_0x32f026('0x2376')]),_0x1a2f10!==_0x51cbf0&&(_0x5756ac['query'][_0x32f026('0x2376')]=0x1),!_0x1a2f10&&(_0x5756ac[_0x32f026('0x77')][_0x32f026('0x2376')]=_0x445c52),_0x5756ac['getServicenowAccounts']());});function _0x1cef7c(_0x55a1a2){var _0x21ec85=_0x485a15;_0x5756ac[_0x21ec85('0x3e')]=_0x55a1a2||{'count':0x0,'rows':[]};}function _0x594a0a(){var _0x2d525a=_0x485a15;_0x5756ac[_0x2d525a('0x77')][_0x2d525a('0x15a5')]=(_0x5756ac['query']['page']-0x1)*_0x5756ac['query']['limit'],_0x2b8aa5[_0x2d525a('0x21de')](_0x2d525a('0x1bd8'))?_0x5756ac[_0x2d525a('0x71b')]=_0x5fbe51[_0x2d525a('0x26f2')][_0x2d525a('0x595')](_0x5756ac[_0x2d525a('0x77')],_0x1cef7c)[_0x2d525a('0x1376')]:(_0x5756ac[_0x2d525a('0x77')]['id']=_0x5756ac['userProfile']['id'],_0x5756ac[_0x2d525a('0x77')][_0x2d525a('0x26ad')]=_0x2d525a('0xc94'),_0x5756ac[_0x2d525a('0x71b')]=_0x5fbe51[_0x2d525a('0x758')][_0x2d525a('0x321')](_0x5756ac[_0x2d525a('0x77')],_0x1cef7c)[_0x2d525a('0x1376')]);}function _0xcbda43(_0xe7cebd,_0x9b82cc){var _0x28836f=_0x485a15;_0x5294c9['show']({'controller':'CreateOrEditServicenowAccountDialogController','controllerAs':'vm','templateUrl':_0x4a1c6f,'parent':angular[_0x28836f('0x1676')](_0x11fb42['body']),'targetEvent':_0xe7cebd,'clickOutsideToClose':!![],'locals':{'servicenowAccount':_0x9b82cc,'servicenowAccounts':_0x5756ac[_0x28836f('0x3e')]['rows'],'license':_0x5756ac[_0x28836f('0x2ff')],'setting':_0x5756ac[_0x28836f('0x21e')],'crudPermissions':_0x5756ac[_0x28836f('0x5ed')]}});}function _0x28f756(_0x403c0b){var _0x1e5d63=_0x485a15;_0x5fbe51[_0x1e5d63('0x26f2')]['delete']({'id':_0x403c0b['id']})[_0x1e5d63('0x1376')][_0x1e5d63('0x21ad')](function(){var _0x31b340=_0x1e5d63;_0x86640f()[_0x31b340('0x16a2')](_0x5756ac[_0x31b340('0x3e')][_0x31b340('0x1b33')],{'id':_0x403c0b['id']}),_0x5756ac[_0x31b340('0x3e')][_0x31b340('0x205f')]-=0x1,!_0x5756ac[_0x31b340('0x3e')][_0x31b340('0x1b33')][_0x31b340('0x577')]&&_0x5756ac['getServicenowAccounts'](),_0xb2f079[_0x31b340('0xdb1')]({'title':_0x86640f()[_0x31b340('0x2159')](_0x31b340('0x14f7'))+_0x31b340('0xe64'),'msg':_0x403c0b['name']?_0x403c0b['name']+_0x31b340('0xb4a'):''});})[_0x1e5d63('0x1c1d')](function(_0x5f58a4){var _0x59f2e5=_0x1e5d63;if(_0x5f58a4[_0x59f2e5('0x11c2')]&&_0x5f58a4['data'][_0x59f2e5('0x1a69')]&&_0x5f58a4[_0x59f2e5('0x11c2')][_0x59f2e5('0x1a69')][_0x59f2e5('0x577')]){_0x5756ac[_0x59f2e5('0x1a69')]=_0x5f58a4[_0x59f2e5('0x11c2')]['errors']||[{'message':_0x5f58a4[_0x59f2e5('0x174f')](),'type':'SYSTEM:DELETEintServicenowAccount'}];for(var _0x398b2d=0x0;_0x398b2d<_0x5f58a4[_0x59f2e5('0x11c2')][_0x59f2e5('0x1a69')]['length'];_0x398b2d++){_0xb2f079[_0x59f2e5('0x2092')]({'title':_0x5f58a4[_0x59f2e5('0x11c2')][_0x59f2e5('0x1a69')][_0x398b2d]['type'],'msg':_0x5f58a4[_0x59f2e5('0x11c2')][_0x59f2e5('0x1a69')][_0x398b2d][_0x59f2e5('0x1224')]});}}else _0xb2f079[_0x59f2e5('0x2092')]({'title':_0x5f58a4[_0x59f2e5('0x209')]?'API:'+_0x5f58a4[_0x59f2e5('0x209')]+'\x20-\x20'+_0x5f58a4['statusText']:_0x59f2e5('0x3f'),'msg':_0x5f58a4[_0x59f2e5('0x11c2')]?JSON[_0x59f2e5('0x25e')](_0x5f58a4[_0x59f2e5('0x11c2')][_0x59f2e5('0x1224')]):_0x5f58a4[_0x59f2e5('0x1224')]||_0x5f58a4[_0x59f2e5('0x174f')]()});});}function _0x34c73f(){var _0x52da99=_0x485a15,_0x8edbc8=angular['copy'](_0x5756ac['selectedServicenowAccounts']);return _0x5756ac[_0x52da99('0x1b59')]=[],_0x8edbc8;}function _0x86899e(_0x57816a){var _0xed918d=_0x485a15,_0x1c8b1e=_0x5294c9[_0xed918d('0xa33')]()[_0xed918d('0x4b4')](_0xed918d('0x20a'))[_0xed918d('0x276b')](_0xed918d('0x622')+_0x5756ac[_0xed918d('0x1b59')]['length']+_0xed918d('0xd74')+_0xed918d('0x25e0'))[_0xed918d('0x7a7')](_0xed918d('0xc87'))[_0xed918d('0x1e6d')](_0x57816a)['ok']('OK')[_0xed918d('0x3b5')](_0xed918d('0x284b'));_0x5294c9[_0xed918d('0x853')](_0x1c8b1e)[_0xed918d('0x21ad')](function(){var _0x17ac26=_0xed918d;_0x5756ac[_0x17ac26('0x1b59')][_0x17ac26('0x1a52')](function(_0x5dd5f0){_0x28f756(_0x5dd5f0);}),_0x5756ac[_0x17ac26('0x1b59')]=[];});}function _0x6e2011(){_0x5756ac['selectedServicenowAccounts']=[];}function _0x24b7e6(){var _0x3ffa28=_0x485a15;_0x5756ac[_0x3ffa28('0x1b59')]=_0x5756ac[_0x3ffa28('0x3e')]['rows'];}}const _0x2d5d07=_0x401712;_0x2a80e6[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0xd61'),_0x3877e3('0x266f'),'api',_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting',_0x3877e3('0x5ed')];function _0x2a80e6(_0x52cb64,_0x1fd931,_0x50a1b4,_0x31b17e,_0x2261a0,_0x2e9f86,_0x220b5f,_0x23f1b1,_0x35ef1a,_0x26e8e8,_0x304594,_0x23ec55,_0x13daac,_0x4e34e){var _0x59887a=_0x3877e3,_0x359498=this;_0x359498[_0x59887a('0x123f')]=_0x304594[_0x59887a('0x15ed')](),_0x359498[_0x59887a('0x1a69')]=[],_0x359498['setting']=_0x13daac,_0x359498[_0x59887a('0x2ff')]=_0x23ec55,_0x359498['crudPermissions']=_0x4e34e,_0x359498[_0x59887a('0x126a')]={},_0x359498[_0x59887a('0x1432')]=_0x359498[_0x59887a('0x21e')]&&_0x359498['setting'][_0x59887a('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x359498['title']=_0x59887a('0x1664'),_0x359498[_0x59887a('0x266f')]=angular['copy'](_0x35ef1a),_0x359498[_0x59887a('0xd61')]=_0x23f1b1,_0x359498[_0x59887a('0x3ff')]=![];!_0x359498['sugarcrmAccount']&&(_0x359498[_0x59887a('0x266f')]={'serverUrl':_0x50a1b4[_0x59887a('0x1162')]()+'://'+_0x50a1b4[_0x59887a('0x1c01')]()+(_0x50a1b4[_0x59887a('0x24fe')]()?':'+_0x50a1b4['port']():'')},_0x359498['title']=_0x59887a('0xc'),_0x359498['newSugarcrmAccount']=!![]);_0x359498[_0x59887a('0x19af')]=_0x232bf3,_0x359498[_0x59887a('0x5cd')]=_0x35e548,_0x359498[_0x59887a('0xce0')]=_0x573e9c,_0x359498[_0x59887a('0x279')]=_0x5ac432,_0x359498[_0x59887a('0x167')]=_0x134013;function _0x232bf3(){var _0xbb731f=_0x59887a;_0x359498[_0xbb731f('0x1a69')]=[],_0x26e8e8[_0xbb731f('0xd7d')]['save'](_0x359498[_0xbb731f('0x266f')])[_0xbb731f('0x1376')][_0xbb731f('0x21ad')](function(_0x58ecb4){var _0x4df631=_0xbb731f;_0x359498['sugarcrmAccounts']['unshift'](_0x58ecb4[_0x4df631('0x3bc')]()),_0x220b5f[_0x4df631('0xdb1')]({'title':'SugarcrmAccount\x20properly\x20created','msg':_0x359498[_0x4df631('0x266f')][_0x4df631('0x19fe')]?_0x359498['sugarcrmAccount'][_0x4df631('0x19fe')]+_0x4df631('0x1694'):''}),_0x134013(_0x58ecb4);})['catch'](function(_0x1856af){var _0x351751=_0xbb731f;if(_0x1856af[_0x351751('0x11c2')]&&_0x1856af[_0x351751('0x11c2')]['errors']&&_0x1856af[_0x351751('0x11c2')][_0x351751('0x1a69')][_0x351751('0x577')]){_0x359498['errors']=_0x1856af[_0x351751('0x11c2')]['errors']||[{'message':_0x1856af['toString'](),'type':'api.intSugarcrmAccount.save'}];for(var _0xb4fcf1=0x0;_0xb4fcf1<_0x1856af[_0x351751('0x11c2')][_0x351751('0x1a69')][_0x351751('0x577')];_0xb4fcf1+=0x1){_0x220b5f[_0x351751('0x2092')]({'title':_0x1856af['data'][_0x351751('0x1a69')][_0xb4fcf1][_0x351751('0x7fa')],'msg':_0x1856af[_0x351751('0x11c2')][_0x351751('0x1a69')][_0xb4fcf1]['message']});}}else _0x220b5f[_0x351751('0x2092')]({'title':_0x1856af['status']?_0x351751('0x22d')+_0x1856af[_0x351751('0x209')]+_0x351751('0xa99')+_0x1856af['statusText']:_0x351751('0x15a4'),'msg':_0x1856af[_0x351751('0x11c2')]?JSON[_0x351751('0x25e')](_0x1856af['data'][_0x351751('0x1224')]):_0x1856af[_0x351751('0x174f')]()});});}function _0x35e548(){var _0x336b2e=_0x59887a;_0x359498[_0x336b2e('0x1a69')]=[],_0x26e8e8['intSugarcrmAccount'][_0x336b2e('0x5ef')]({'id':_0x359498[_0x336b2e('0x266f')]['id']},_0x359498[_0x336b2e('0x266f')])['$promise'][_0x336b2e('0x21ad')](function(_0x1ff96c){var _0x59ece2=_0x336b2e,_0x1973f0=_0x86640f()[_0x59ece2('0x1d2e')](_0x359498[_0x59ece2('0xd61')],{'id':_0x1ff96c['id']});_0x1973f0&&_0x86640f()[_0x59ece2('0xd0e')](_0x1973f0,_0x86640f()['pick'](_0x1ff96c[_0x59ece2('0x3bc')](),_0x86640f()[_0x59ece2('0x223b')](_0x1973f0))),_0x220b5f[_0x59ece2('0xdb1')]({'title':_0x59ece2('0x26d6'),'msg':_0x359498[_0x59ece2('0x266f')]['name']?_0x359498['sugarcrmAccount'][_0x59ece2('0x19fe')]+_0x59ece2('0x2249'):''}),_0x134013(_0x1ff96c);})['catch'](function(_0x1f9bdd){var _0x2b7047=_0x336b2e;if(_0x1f9bdd[_0x2b7047('0x11c2')]&&_0x1f9bdd['data'][_0x2b7047('0x1a69')]&&_0x1f9bdd[_0x2b7047('0x11c2')][_0x2b7047('0x1a69')]['length']){_0x359498[_0x2b7047('0x1a69')]=_0x1f9bdd[_0x2b7047('0x11c2')][_0x2b7047('0x1a69')]||[{'message':_0x1f9bdd[_0x2b7047('0x174f')](),'type':'api.intSugarcrmAccount.update'}];for(var _0x448375=0x0;_0x448375<_0x1f9bdd['data'][_0x2b7047('0x1a69')][_0x2b7047('0x577')];_0x448375++){_0x220b5f[_0x2b7047('0x2092')]({'title':_0x1f9bdd[_0x2b7047('0x11c2')][_0x2b7047('0x1a69')][_0x448375][_0x2b7047('0x7fa')],'msg':_0x1f9bdd[_0x2b7047('0x11c2')][_0x2b7047('0x1a69')][_0x448375][_0x2b7047('0x1224')]});}}else _0x220b5f[_0x2b7047('0x2092')]({'title':_0x1f9bdd[_0x2b7047('0x209')]?_0x2b7047('0x22d')+_0x1f9bdd[_0x2b7047('0x209')]+_0x2b7047('0xa99')+_0x1f9bdd[_0x2b7047('0x1808')]:_0x2b7047('0x2715'),'msg':_0x1f9bdd[_0x2b7047('0x11c2')]?JSON[_0x2b7047('0x25e')](_0x1f9bdd[_0x2b7047('0x11c2')][_0x2b7047('0x1224')]):_0x1f9bdd['toString']()});});}function _0x573e9c(_0x5e6c66){var _0x30b109=_0x59887a;_0x359498['errors']=[];var _0x3b8ad3=_0x31b17e[_0x30b109('0xa33')]()[_0x30b109('0x4b4')](_0x30b109('0x196b'))['content'](_0x30b109('0x153d'))['ariaLabel'](_0x30b109('0x1de1'))['ok'](_0x30b109('0xbfd'))[_0x30b109('0x3b5')](_0x30b109('0x1f40'))[_0x30b109('0x1e6d')](_0x5e6c66);_0x31b17e['show'](_0x3b8ad3)[_0x30b109('0x21ad')](function(){var _0x3ac007=_0x30b109;_0x26e8e8[_0x3ac007('0xd7d')][_0x3ac007('0x1164')]({'id':_0x359498[_0x3ac007('0x266f')]['id']})['$promise']['then'](function(){var _0x1a8315=_0x3ac007;_0x86640f()[_0x1a8315('0x16a2')](_0x359498[_0x1a8315('0xd61')],{'id':_0x359498[_0x1a8315('0x266f')]['id']}),_0x220b5f[_0x1a8315('0xdb1')]({'title':_0x1a8315('0x25b1'),'msg':(_0x359498[_0x1a8315('0x266f')][_0x1a8315('0x19fe')]||'sugarcrmAccount')+_0x1a8315('0xb4a')}),_0x134013(_0x359498[_0x1a8315('0x266f')]);})[_0x3ac007('0x1c1d')](function(_0x40e02e){var _0x37c2de=_0x3ac007;if(_0x40e02e[_0x37c2de('0x11c2')]&&_0x40e02e['data'][_0x37c2de('0x1a69')]&&_0x40e02e['data'][_0x37c2de('0x1a69')]['length']){_0x359498['errors']=_0x40e02e[_0x37c2de('0x11c2')][_0x37c2de('0x1a69')]||[{'message':_0x40e02e[_0x37c2de('0x174f')](),'type':'api.intSugarcrmAccount.delete'}];for(var _0x472dbb=0x0;_0x472dbb<_0x40e02e[_0x37c2de('0x11c2')][_0x37c2de('0x1a69')][_0x37c2de('0x577')];_0x472dbb++){_0x220b5f[_0x37c2de('0x2092')]({'title':_0x40e02e[_0x37c2de('0x11c2')]['errors'][_0x472dbb][_0x37c2de('0x7fa')],'msg':_0x40e02e['data'][_0x37c2de('0x1a69')][_0x472dbb][_0x37c2de('0x1224')]});}}else _0x220b5f[_0x37c2de('0x2092')]({'title':_0x40e02e[_0x37c2de('0x209')]?_0x37c2de('0x22d')+_0x40e02e[_0x37c2de('0x209')]+_0x37c2de('0xa99')+_0x40e02e[_0x37c2de('0x1808')]:_0x37c2de('0x12ef'),'msg':_0x40e02e['data']?JSON['stringify'](_0x40e02e['data']['message']):_0x40e02e['message']||_0x40e02e[_0x37c2de('0x174f')]()});});},function(){});}function _0x5ac432(_0x1e531f){return _0x1e531f===null?undefined:new Date(_0x1e531f);}function _0x134013(_0x59be45){var _0x277080=_0x59887a;_0x31b17e[_0x277080('0x1c24')](_0x59be45);}}const _0x3f9f26=_0x2a80e6,_0x2a1bfe=_0x398308['p']+_0x3877e3('0x2627'),_0x42aa4d=_0x398308['p']+_0x3877e3('0x1342');_0x326829['$inject']=['$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x15bc')];function _0x326829(_0x16ccb3,_0x8f6185,_0x22221f,_0x310f38,_0x468107){var _0x112bd0=_0x3877e3,_0x212bb9=this;_0x212bb9[_0x112bd0('0x123f')]=_0x468107['getCurrentUser'](),_0x212bb9[_0x112bd0('0x266f')]={},_0x212bb9[_0x112bd0('0x2071')]={},_0x212bb9['configurations']=[],_0x212bb9['selectedSugarcrmConfiguration']=-0x1,_0x212bb9[_0x112bd0('0x5ed')],_0x212bb9['init']=_0x3b956c,_0x212bb9[_0x112bd0('0x412')]=_0xdcacb8,_0x212bb9[_0x112bd0('0x1838')]=_0x4a1c29,_0x212bb9[_0x112bd0('0x243b')]=_0xd22a53;function _0x3b956c(_0x3eb268,_0x599c42){var _0x498553=_0x112bd0;_0x212bb9['sugarcrmAccount']=_0x3eb268,_0x212bb9[_0x498553('0x5ed')]=typeof _0x599c42!==_0x498553('0xddc')?_0x599c42:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x22221f[_0x498553('0xd7d')][_0x498553('0xc44')]({'id':_0x212bb9[_0x498553('0x266f')]['id'],'sort':_0x498553('0x33')})[_0x498553('0x1376')]['then'](function(_0x8d079f){var _0x5417ea=_0x498553;return _0x212bb9[_0x5417ea('0x1ca3')]=_0x8d079f['rows']?_0x8d079f[_0x5417ea('0x1b33')]:[],_0x212bb9[_0x5417ea('0x1ca3')][_0x5417ea('0x577')]&&_0x212bb9[_0x5417ea('0x412')](0x0),_0x22221f[_0x5417ea('0x25bb')]['get']({'nolimit':!![],'sort':'name'})[_0x5417ea('0x1376')];})['then'](function(_0x5e6bbb){var _0x3c8b9a=_0x498553;_0x212bb9[_0x3c8b9a('0x142d')]=_0x5e6bbb[_0x3c8b9a('0x1b33')]?_0x5e6bbb[_0x3c8b9a('0x1b33')]:[],_0x212bb9['variablesById']=_0x86640f()['keyBy'](_0x212bb9[_0x3c8b9a('0x142d')],'id');})['catch'](function(_0x28c782){var _0x28c4d5=_0x498553;_0x310f38[_0x28c4d5('0x2092')]({'title':_0x28c782[_0x28c4d5('0x209')]?_0x28c4d5('0x22d')+_0x28c782['status']+'\x20-\x20'+_0x28c782[_0x28c4d5('0x1808')]:'SYSTEM:GETCONFIGURATION','msg':_0x28c782[_0x28c4d5('0x11c2')]?JSON['stringify'](_0x28c782[_0x28c4d5('0x11c2')]):_0x28c782[_0x28c4d5('0x174f')]()});});}function _0xdcacb8(_0x394226){var _0x19c846=_0x112bd0;_0x212bb9['sugarcrmConfiguration']=_0x212bb9['configurations'][_0x394226],_0x212bb9[_0x19c846('0x1d61')]=_0x394226,_0x22221f[_0x19c846('0x20d0')]['getSubjects']({'id':_0x212bb9[_0x19c846('0x2071')]['id']})[_0x19c846('0x1376')][_0x19c846('0x21ad')](function(_0x540102){var _0xe6f969=_0x19c846;return _0x212bb9[_0xe6f969('0x1033')]=_0x540102['rows']?_0x540102[_0xe6f969('0x1b33')]:[],_0x22221f[_0xe6f969('0x20d0')][_0xe6f969('0x377')]({'id':_0x212bb9[_0xe6f969('0x2071')]['id']})['$promise'];})[_0x19c846('0x21ad')](function(_0x3888c5){var _0xfa1385=_0x19c846;return _0x212bb9[_0xfa1385('0x2161')]=_0x3888c5[_0xfa1385('0x1b33')]?_0x3888c5[_0xfa1385('0x1b33')]:[],_0x22221f[_0xfa1385('0x20d0')][_0xfa1385('0x929')]({'id':_0x212bb9['sugarcrmConfiguration']['id']})['$promise'];})[_0x19c846('0x21ad')](function(_0x5ae325){var _0xa18bd8=_0x19c846;_0x212bb9['fields']=_0x5ae325['rows']?_0x5ae325[_0xa18bd8('0x1b33')]:[];})['catch'](function(_0xfe7758){var _0x494289=_0x19c846;_0x310f38[_0x494289('0x2092')]({'title':_0xfe7758[_0x494289('0x209')]?_0x494289('0x22d')+_0xfe7758[_0x494289('0x209')]+'\x20-\x20'+_0xfe7758[_0x494289('0x1808')]:_0x494289('0x172f'),'msg':_0xfe7758[_0x494289('0x11c2')]?JSON[_0x494289('0x25e')](_0xfe7758['data']):_0xfe7758[_0x494289('0x174f')]()});});}function _0x4a1c29(_0x5745db,_0x2e7891){var _0x3f6a7c=_0x112bd0;_0x16ccb3[_0x3f6a7c('0x853')]({'controller':_0x3f6a7c('0x170'),'controllerAs':'vm','templateUrl':_0x2a1bfe,'parent':angular[_0x3f6a7c('0x1676')](_0x8f6185[_0x3f6a7c('0x2452')]),'targetEvent':_0x5745db,'clickOutsideToClose':!![],'locals':{'sugarcrmConfiguration':_0x2e7891,'configurations':_0x212bb9[_0x3f6a7c('0x1ca3')],'license':null,'setting':null,'crudPermissions':_0x212bb9[_0x3f6a7c('0x5ed')]}})[_0x3f6a7c('0x13e')](function(){_0x212bb9['getSugarcrmConfiguration'](0x0);});}function _0xd22a53(_0x2e9c40,_0x2b050b){var _0x4e0e0c=_0x112bd0,_0x5c1d75=_0x16ccb3[_0x4e0e0c('0xa33')]()[_0x4e0e0c('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20sugarcrmConfiguration?')['htmlContent'](_0x4e0e0c('0x622')+(_0x2b050b[_0x4e0e0c('0x19fe')]||_0x4e0e0c('0x2071'))+_0x4e0e0c('0x2135')+_0x4e0e0c('0x25e0'))[_0x4e0e0c('0x7a7')](_0x4e0e0c('0x971'))[_0x4e0e0c('0x1e6d')](_0x2e9c40)['ok']('OK')[_0x4e0e0c('0x3b5')](_0x4e0e0c('0x284b'));_0x16ccb3['show'](_0x5c1d75)[_0x4e0e0c('0x21ad')](function(){var _0x340d35=_0x4e0e0c;_0x22221f[_0x340d35('0x20d0')][_0x340d35('0x1164')]({'id':_0x2b050b['id']})[_0x340d35('0x1376')][_0x340d35('0x21ad')](function(){var _0x36fe10=_0x340d35;_0x86640f()[_0x36fe10('0x16a2')](_0x212bb9['configurations'],{'id':_0x2b050b['id']}),_0x310f38[_0x36fe10('0xdb1')]({'title':'SugarcrmConfiguration\x20deleted!','msg':_0x2b050b[_0x36fe10('0x19fe')]?_0x2b050b['name']+_0x36fe10('0xb4a'):''});})[_0x340d35('0x1c1d')](function(_0x5ded1b){var _0x226d9a=_0x340d35;_0x310f38['error']({'title':_0x5ded1b['status']?'API:'+_0x5ded1b[_0x226d9a('0x209')]+_0x226d9a('0xa99')+_0x5ded1b['statusText']:'SYSTEM:DELETECONFIGURATION','msg':_0x5ded1b[_0x226d9a('0x11c2')]?JSON[_0x226d9a('0x25e')](_0x5ded1b['data']):_0x5ded1b[_0x226d9a('0x174f')]()});})[_0x340d35('0x13e')](function(){_0x212bb9['getSugarcrmConfiguration'](0x0);});},function(){var _0x1d6e14=_0x4e0e0c;console['log'](_0x1d6e14('0x284b'));});}_0x212bb9[_0x112bd0('0x19ba')]=[],_0x212bb9[_0x112bd0('0x11de')]=_0x2a4ee3,_0x212bb9[_0x112bd0('0x2203')]=_0x5f44f3,_0x212bb9[_0x112bd0('0x858')]=_0x2a261e;function _0x2a4ee3(_0x2e1157,_0x2c7278){var _0x3bd64b=_0x112bd0;_0x16ccb3['show']({'controller':_0x3bd64b('0xfc1'),'controllerAs':'vm','templateUrl':_0x42aa4d,'parent':angular[_0x3bd64b('0x1676')](_0x8f6185[_0x3bd64b('0x2452')]),'targetEvent':_0x2e1157,'clickOutsideToClose':!![],'locals':{'type':_0x3bd64b('0x32a'),'item':_0x2c7278,'items':_0x212bb9['subjects'],'configuration':_0x212bb9[_0x3bd64b('0x2071')],'account':_0x212bb9[_0x3bd64b('0x266f')],'license':null,'setting':null,'crudPermissions':_0x212bb9[_0x3bd64b('0x5ed')]}});}function _0x124914(_0x1abc51){var _0xd84e52=_0x112bd0;_0x22221f['intSugarcrmField']['delete']({'id':_0x1abc51['id']})[_0xd84e52('0x1376')][_0xd84e52('0x21ad')](function(){var _0x213781=_0xd84e52;_0x86640f()[_0x213781('0x16a2')](_0x212bb9['subjects'],{'id':_0x1abc51['id']}),_0x310f38['success']({'title':'Subject\x20deleted!','msg':'Subject\x20has\x20been\x20deleted!'});})['catch'](function(_0x4c42dc){var _0x5e4c86=_0xd84e52;_0x310f38[_0x5e4c86('0x2092')]({'title':_0x4c42dc[_0x5e4c86('0x209')]?'API:'+_0x4c42dc['status']+_0x5e4c86('0xa99')+_0x4c42dc[_0x5e4c86('0x1808')]:_0x5e4c86('0xede'),'msg':_0x4c42dc[_0x5e4c86('0x11c2')]?JSON['stringify'](_0x4c42dc[_0x5e4c86('0x11c2')]):_0x4c42dc[_0x5e4c86('0x174f')]()});});}function _0x5f44f3(_0x47895d,_0x316f5e){var _0x3cf27f=_0x112bd0,_0x8a2ba3=_0x16ccb3[_0x3cf27f('0xa33')]()[_0x3cf27f('0x4b4')](_0x3cf27f('0xe3a'))[_0x3cf27f('0x276b')](_0x3cf27f('0x2031')+'\x20will\x20be\x20deleted.')[_0x3cf27f('0x7a7')](_0x3cf27f('0x566'))['targetEvent'](_0x47895d)['ok']('OK')[_0x3cf27f('0x3b5')](_0x3cf27f('0x284b'));_0x16ccb3[_0x3cf27f('0x853')](_0x8a2ba3)[_0x3cf27f('0x21ad')](function(){_0x124914(_0x316f5e);},function(){var _0x112782=_0x3cf27f;console['log'](_0x112782('0x284b'));});}function _0x2a261e(_0x5e7e1c){var _0x1dfdbe=_0x112bd0,_0x3e7700=_0x16ccb3['confirm']()[_0x1dfdbe('0x4b4')](_0x1dfdbe('0x6e8'))['htmlContent'](_0x1dfdbe('0x622')+_0x212bb9[_0x1dfdbe('0x19ba')][_0x1dfdbe('0x577')]+'\x20selected'+_0x1dfdbe('0x25e0'))['ariaLabel']('delete\x20subjects')['targetEvent'](_0x5e7e1c)['ok']('OK')[_0x1dfdbe('0x3b5')](_0x1dfdbe('0x284b'));_0x16ccb3[_0x1dfdbe('0x853')](_0x3e7700)[_0x1dfdbe('0x21ad')](function(){var _0x313f20=_0x1dfdbe;_0x212bb9[_0x313f20('0x19ba')][_0x313f20('0x1a52')](function(_0x44a302){_0x124914(_0x44a302);}),_0x212bb9['selectedSubjects']=[];});}_0x212bb9[_0x112bd0('0xbdf')]=[],_0x212bb9[_0x112bd0('0x1139')]=_0x4e3148,_0x212bb9[_0x112bd0('0x2378')]=_0x102aac,_0x212bb9[_0x112bd0('0x1f80')]=_0x1e55b9;function _0x4e3148(_0x3359d3,_0x549317){var _0x4423f6=_0x112bd0;_0x16ccb3[_0x4423f6('0x853')]({'controller':_0x4423f6('0xfc1'),'controllerAs':'vm','templateUrl':_0x42aa4d,'parent':angular[_0x4423f6('0x1676')](_0x8f6185[_0x4423f6('0x2452')]),'targetEvent':_0x3359d3,'clickOutsideToClose':!![],'locals':{'type':_0x4423f6('0x1137'),'item':_0x549317,'items':_0x212bb9[_0x4423f6('0x2161')],'configuration':_0x212bb9[_0x4423f6('0x2071')],'account':_0x212bb9[_0x4423f6('0x266f')],'license':null,'setting':null,'crudPermissions':_0x212bb9[_0x4423f6('0x5ed')]}});}function _0x435019(_0x4bfaba){var _0x1ff2e7=_0x112bd0;_0x22221f[_0x1ff2e7('0x1a95')][_0x1ff2e7('0x1164')]({'id':_0x4bfaba['id']})[_0x1ff2e7('0x1376')][_0x1ff2e7('0x21ad')](function(){var _0x1f51d7=_0x1ff2e7;_0x86640f()[_0x1f51d7('0x16a2')](_0x212bb9[_0x1f51d7('0x2161')],{'id':_0x4bfaba['id']}),_0x310f38['success']({'title':_0x1f51d7('0x1af8'),'msg':_0x1f51d7('0x1ec6')});})[_0x1ff2e7('0x1c1d')](function(_0x36cdce){var _0x13d68f=_0x1ff2e7;_0x310f38[_0x13d68f('0x2092')]({'title':_0x36cdce['status']?_0x13d68f('0x22d')+_0x36cdce[_0x13d68f('0x209')]+_0x13d68f('0xa99')+_0x36cdce[_0x13d68f('0x1808')]:_0x13d68f('0xede'),'msg':_0x36cdce['data']?JSON['stringify'](_0x36cdce[_0x13d68f('0x11c2')]):_0x36cdce[_0x13d68f('0x174f')]()});});}function _0x102aac(_0x4ddd07,_0x1d050f){var _0x441690=_0x112bd0,_0x2c74f5=_0x16ccb3['confirm']()['title'](_0x441690('0x1d59'))['htmlContent']('Description'+_0x441690('0x25e0'))[_0x441690('0x7a7')](_0x441690('0xe67'))[_0x441690('0x1e6d')](_0x4ddd07)['ok']('OK')[_0x441690('0x3b5')](_0x441690('0x284b'));_0x16ccb3[_0x441690('0x853')](_0x2c74f5)[_0x441690('0x21ad')](function(){_0x435019(_0x1d050f);},function(){var _0x21c00b=_0x441690;console[_0x21c00b('0x6fb')](_0x21c00b('0x284b'));});}function _0x1e55b9(_0x2500f2){var _0x259bec=_0x112bd0,_0x259673=_0x16ccb3[_0x259bec('0xa33')]()['title'](_0x259bec('0x6e'))[_0x259bec('0x276b')](''+_0x212bb9['selectedDescriptions'][_0x259bec('0x577')]+_0x259bec('0xd74')+_0x259bec('0x25e0'))[_0x259bec('0x7a7')](_0x259bec('0x211d'))[_0x259bec('0x1e6d')](_0x2500f2)['ok']('OK')[_0x259bec('0x3b5')](_0x259bec('0x284b'));_0x16ccb3[_0x259bec('0x853')](_0x259673)[_0x259bec('0x21ad')](function(){var _0x368bbe=_0x259bec;_0x212bb9[_0x368bbe('0xbdf')][_0x368bbe('0x1a52')](function(_0x16ffeb){_0x435019(_0x16ffeb);}),_0x212bb9[_0x368bbe('0xbdf')]=[];});}_0x212bb9['selectedFields']=[],_0x212bb9[_0x112bd0('0x97')]=_0x436ff2,_0x212bb9[_0x112bd0('0x222e')]=_0x5e6da4,_0x212bb9['deleteSelectedFields']=_0x3d32ca;function _0x436ff2(_0x1ecfbc,_0x2757a7){var _0x231c6a=_0x112bd0;_0x16ccb3[_0x231c6a('0x853')]({'controller':_0x231c6a('0xfc1'),'controllerAs':'vm','templateUrl':_0x42aa4d,'parent':angular[_0x231c6a('0x1676')](_0x8f6185['body']),'targetEvent':_0x1ecfbc,'clickOutsideToClose':!![],'locals':{'type':_0x231c6a('0xff8'),'item':_0x2757a7,'items':_0x212bb9[_0x231c6a('0x181e')],'configuration':_0x212bb9[_0x231c6a('0x2071')],'account':_0x212bb9[_0x231c6a('0x266f')],'license':null,'setting':null,'crudPermissions':_0x212bb9['crudPermissions']}});}function _0x41a65d(_0x56c77e){var _0x155a6b=_0x112bd0;_0x22221f[_0x155a6b('0x1a95')]['delete']({'id':_0x56c77e['id']})[_0x155a6b('0x1376')]['then'](function(){var _0x32a5e5=_0x155a6b;_0x86640f()[_0x32a5e5('0x16a2')](_0x212bb9[_0x32a5e5('0x181e')],{'id':_0x56c77e['id']}),_0x310f38[_0x32a5e5('0xdb1')]({'title':_0x32a5e5('0x2321'),'msg':_0x32a5e5('0x2263')});})[_0x155a6b('0x1c1d')](function(_0x42b45d){var _0x9e3383=_0x155a6b;_0x310f38[_0x9e3383('0x2092')]({'title':_0x42b45d['status']?'API:'+_0x42b45d[_0x9e3383('0x209')]+_0x9e3383('0xa99')+_0x42b45d[_0x9e3383('0x1808')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x42b45d[_0x9e3383('0x11c2')]?JSON['stringify'](_0x42b45d['data']):_0x42b45d[_0x9e3383('0x174f')]()});});}function _0x5e6da4(_0x3a99b7,_0x5b63f4){var _0xf3f9c0=_0x112bd0,_0x576c7c=_0x16ccb3['confirm']()['title'](_0xf3f9c0('0x2207'))[_0xf3f9c0('0x276b')]('Field'+_0xf3f9c0('0x25e0'))[_0xf3f9c0('0x7a7')](_0xf3f9c0('0x238b'))[_0xf3f9c0('0x1e6d')](_0x3a99b7)['ok']('OK')['cancel'](_0xf3f9c0('0x284b'));_0x16ccb3[_0xf3f9c0('0x853')](_0x576c7c)[_0xf3f9c0('0x21ad')](function(){_0x41a65d(_0x5b63f4);},function(){var _0x2f34bb=_0xf3f9c0;console[_0x2f34bb('0x6fb')](_0x2f34bb('0x284b'));});}function _0x3d32ca(_0x56321f){var _0x3d01b1=_0x112bd0,_0x10c1ca=_0x16ccb3[_0x3d01b1('0xa33')]()[_0x3d01b1('0x4b4')](_0x3d01b1('0x655'))[_0x3d01b1('0x276b')](_0x3d01b1('0x622')+_0x212bb9['selectedFields']['length']+_0x3d01b1('0xd74')+_0x3d01b1('0x25e0'))[_0x3d01b1('0x7a7')](_0x3d01b1('0x85f'))[_0x3d01b1('0x1e6d')](_0x56321f)['ok']('OK')[_0x3d01b1('0x3b5')](_0x3d01b1('0x284b'));_0x16ccb3[_0x3d01b1('0x853')](_0x10c1ca)[_0x3d01b1('0x21ad')](function(){var _0x363587=_0x3d01b1;_0x212bb9[_0x363587('0x21b0')][_0x363587('0x1a52')](function(_0x4936aa){_0x41a65d(_0x4936aa);}),_0x212bb9['selectedFields']=[];});}}const _0x395406=_0x326829;_0x2d7faa[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x1ca3'),_0x3877e3('0x2071'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x2d7faa(_0x3252e5,_0x4fc617,_0x3e2106,_0x451dd4,_0x409a84,_0x1694a1,_0x34d4c9,_0x35e8f5,_0xc9b5cb,_0x57b7d3,_0x315a75,_0x4024ee,_0x31a7c6,_0x19a452){var _0x5121c9=_0x3877e3,_0x2b0950=this;_0x2b0950['currentUser']=_0x315a75['getCurrentUser'](),_0x2b0950['errors']=[],_0x2b0950[_0x5121c9('0x21e')]=_0x31a7c6,_0x2b0950[_0x5121c9('0x2ff')]=_0x4024ee,_0x2b0950[_0x5121c9('0x5ed')]=_0x19a452,_0x2b0950['hasModulePermissions']={},_0x2b0950[_0x5121c9('0x1432')]=_0x2b0950[_0x5121c9('0x21e')]&&_0x2b0950[_0x5121c9('0x21e')][_0x5121c9('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2b0950['title']=_0x5121c9('0xe35'),_0x2b0950[_0x5121c9('0x2071')]=angular['copy'](_0xc9b5cb),_0x2b0950[_0x5121c9('0x1ca3')]=_0x35e8f5,_0x2b0950[_0x5121c9('0x24a6')]=![];!_0x2b0950[_0x5121c9('0x2071')]&&(_0x2b0950[_0x5121c9('0x2071')]={'channel':_0x5121c9('0x8ed'),'type':_0x5121c9('0x923')},_0x2b0950[_0x5121c9('0x4b4')]=_0x5121c9('0x256b'),_0x2b0950[_0x5121c9('0x24a6')]=!![]);_0x2b0950[_0x5121c9('0x25f5')]=_0x16419f,_0x2b0950[_0x5121c9('0xd35')]=_0x5aa23b,_0x2b0950[_0x5121c9('0x243b')]=_0xf7096b,_0x2b0950['getDateFromString']=_0x55588b,_0x2b0950[_0x5121c9('0x167')]=_0x1f2fd7;function _0x16419f(){var _0x566ebf=_0x5121c9;_0x2b0950[_0x566ebf('0x1a69')]=[],_0x57b7d3[_0x566ebf('0xd7d')][_0x566ebf('0x1388')]({'id':_0x4fc617['params']['id']},_0x2b0950[_0x566ebf('0x2071')])['$promise']['then'](function(_0x34293c){var _0x55912c=_0x566ebf;_0x2b0950[_0x55912c('0x1ca3')]['unshift'](_0x34293c[_0x55912c('0x3bc')]()),_0x34d4c9[_0x55912c('0xdb1')]({'title':_0x55912c('0x2582'),'msg':_0x2b0950[_0x55912c('0x2071')][_0x55912c('0x19fe')]?_0x2b0950['sugarcrmConfiguration'][_0x55912c('0x19fe')]+'\x20has\x20been\x20created!':''}),_0x1f2fd7(_0x34293c);})[_0x566ebf('0x1c1d')](function(_0x3dd8fa){var _0x27572a=_0x566ebf;if(_0x3dd8fa[_0x27572a('0x11c2')]&&_0x3dd8fa[_0x27572a('0x11c2')]['errors']&&_0x3dd8fa[_0x27572a('0x11c2')]['errors']['length']){_0x2b0950[_0x27572a('0x1a69')]=_0x3dd8fa[_0x27572a('0x11c2')][_0x27572a('0x1a69')]||[{'message':_0x3dd8fa[_0x27572a('0x174f')](),'type':_0x27572a('0x20a2')}];for(var _0xed4183=0x0;_0xed4183<_0x3dd8fa[_0x27572a('0x11c2')][_0x27572a('0x1a69')][_0x27572a('0x577')];_0xed4183+=0x1){_0x34d4c9[_0x27572a('0x2092')]({'title':_0x3dd8fa[_0x27572a('0x11c2')][_0x27572a('0x1a69')][_0xed4183][_0x27572a('0x7fa')],'msg':_0x3dd8fa[_0x27572a('0x11c2')]['errors'][_0xed4183]['message']});}}else _0x34d4c9[_0x27572a('0x2092')]({'title':_0x3dd8fa[_0x27572a('0x209')]?'API:'+_0x3dd8fa[_0x27572a('0x209')]+_0x27572a('0xa99')+_0x3dd8fa[_0x27572a('0x1808')]:'api.intSugarcrmConfiguration.save','msg':_0x3dd8fa[_0x27572a('0x11c2')]?JSON[_0x27572a('0x25e')](_0x3dd8fa[_0x27572a('0x11c2')][_0x27572a('0x1224')]):_0x3dd8fa[_0x27572a('0x174f')]()});});}function _0x5aa23b(){var _0x3d3fac=_0x5121c9;_0x2b0950['errors']=[],_0x57b7d3[_0x3d3fac('0x20d0')][_0x3d3fac('0x5ef')]({'id':_0x2b0950[_0x3d3fac('0x2071')]['id']},_0x2b0950['sugarcrmConfiguration'])[_0x3d3fac('0x1376')][_0x3d3fac('0x21ad')](function(_0xe22325){var _0x19abc9=_0x3d3fac,_0x39731f=_0x86640f()[_0x19abc9('0x1d2e')](_0x2b0950[_0x19abc9('0x1ca3')],{'id':_0xe22325['id']});_0x39731f&&_0x86640f()[_0x19abc9('0xd0e')](_0x39731f,_0x86640f()[_0x19abc9('0xc50')](_0xe22325[_0x19abc9('0x3bc')](),_0x86640f()[_0x19abc9('0x223b')](_0x39731f))),_0x34d4c9[_0x19abc9('0xdb1')]({'title':_0x19abc9('0x205'),'msg':_0x2b0950[_0x19abc9('0x2071')][_0x19abc9('0x19fe')]?_0x2b0950[_0x19abc9('0x2071')][_0x19abc9('0x19fe')]+_0x19abc9('0x2249'):''}),_0x1f2fd7(_0xe22325);})[_0x3d3fac('0x1c1d')](function(_0x43bfa2){var _0x5b0268=_0x3d3fac;if(_0x43bfa2[_0x5b0268('0x11c2')]&&_0x43bfa2[_0x5b0268('0x11c2')][_0x5b0268('0x1a69')]&&_0x43bfa2[_0x5b0268('0x11c2')]['errors'][_0x5b0268('0x577')]){_0x2b0950[_0x5b0268('0x1a69')]=_0x43bfa2['data'][_0x5b0268('0x1a69')]||[{'message':_0x43bfa2[_0x5b0268('0x174f')](),'type':_0x5b0268('0xe5b')}];for(var _0x3c5e74=0x0;_0x3c5e74<_0x43bfa2['data'][_0x5b0268('0x1a69')][_0x5b0268('0x577')];_0x3c5e74++){_0x34d4c9[_0x5b0268('0x2092')]({'title':_0x43bfa2[_0x5b0268('0x11c2')][_0x5b0268('0x1a69')][_0x3c5e74][_0x5b0268('0x7fa')],'msg':_0x43bfa2[_0x5b0268('0x11c2')][_0x5b0268('0x1a69')][_0x3c5e74][_0x5b0268('0x1224')]});}}else _0x34d4c9[_0x5b0268('0x2092')]({'title':_0x43bfa2[_0x5b0268('0x209')]?_0x5b0268('0x22d')+_0x43bfa2[_0x5b0268('0x209')]+'\x20-\x20'+_0x43bfa2['statusText']:_0x5b0268('0xe5b'),'msg':_0x43bfa2['data']?JSON['stringify'](_0x43bfa2[_0x5b0268('0x11c2')]['message']):_0x43bfa2[_0x5b0268('0x174f')]()});});}function _0xf7096b(_0xf8247d){var _0x14f8c2=_0x5121c9;_0x2b0950[_0x14f8c2('0x1a69')]=[];var _0x404765=_0x451dd4['confirm']()['title'](_0x14f8c2('0x196b'))[_0x14f8c2('0x13fb')]('The\x20sugarcrmConfiguration\x20will\x20be\x20deleted.')[_0x14f8c2('0x7a7')](_0x14f8c2('0x124d'))['ok'](_0x14f8c2('0xbfd'))['cancel'](_0x14f8c2('0x1f40'))[_0x14f8c2('0x1e6d')](_0xf8247d);_0x451dd4[_0x14f8c2('0x853')](_0x404765)[_0x14f8c2('0x21ad')](function(){var _0x2c6136=_0x14f8c2;_0x57b7d3['intSugarcrmConfiguration'][_0x2c6136('0x1164')]({'id':_0x2b0950['sugarcrmConfiguration']['id']})[_0x2c6136('0x1376')][_0x2c6136('0x21ad')](function(){var _0x5ffecd=_0x2c6136;_0x86640f()[_0x5ffecd('0x16a2')](_0x2b0950['configurations'],{'id':_0x2b0950[_0x5ffecd('0x2071')]['id']}),_0x34d4c9[_0x5ffecd('0xdb1')]({'title':_0x5ffecd('0x1645'),'msg':(_0x2b0950[_0x5ffecd('0x2071')]['name']||'sugarcrmConfiguration')+_0x5ffecd('0xb4a')}),_0x1f2fd7(_0x2b0950[_0x5ffecd('0x2071')]);})[_0x2c6136('0x1c1d')](function(_0x1b9bf4){var _0x23e169=_0x2c6136;if(_0x1b9bf4['data']&&_0x1b9bf4[_0x23e169('0x11c2')][_0x23e169('0x1a69')]&&_0x1b9bf4['data'][_0x23e169('0x1a69')][_0x23e169('0x577')]){_0x2b0950['errors']=_0x1b9bf4[_0x23e169('0x11c2')][_0x23e169('0x1a69')]||[{'message':_0x1b9bf4[_0x23e169('0x174f')](),'type':_0x23e169('0xfb3')}];for(var _0x17bc91=0x0;_0x17bc91<_0x1b9bf4[_0x23e169('0x11c2')]['errors']['length'];_0x17bc91++){_0x34d4c9['error']({'title':_0x1b9bf4[_0x23e169('0x11c2')][_0x23e169('0x1a69')][_0x17bc91][_0x23e169('0x7fa')],'msg':_0x1b9bf4[_0x23e169('0x11c2')][_0x23e169('0x1a69')][_0x17bc91][_0x23e169('0x1224')]});}}else _0x34d4c9[_0x23e169('0x2092')]({'title':_0x1b9bf4['status']?_0x23e169('0x22d')+_0x1b9bf4[_0x23e169('0x209')]+_0x23e169('0xa99')+_0x1b9bf4[_0x23e169('0x1808')]:'api.intSugarcrmConfiguration.delete','msg':_0x1b9bf4['data']?JSON[_0x23e169('0x25e')](_0x1b9bf4[_0x23e169('0x11c2')]['message']):_0x1b9bf4[_0x23e169('0x1224')]||_0x1b9bf4[_0x23e169('0x174f')]()});});},function(){});}function _0x55588b(_0x32151d){return _0x32151d===null?undefined:new Date(_0x32151d);}function _0x1f2fd7(_0xbefa40){_0x451dd4['hide'](_0xbefa40);}}const _0x2620eb=_0x2d7faa;_0x5b57ed['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),_0x3877e3('0x1908'),_0x3877e3('0xb4f'),'items','item',_0x3877e3('0x1fd3'),_0x3877e3('0x7fa'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x5b57ed(_0x4dd0d2,_0x1c2289,_0x18c806,_0x57864c,_0x52fcfa,_0x24dc25,_0x4a537d,_0x56b600,_0x31ec11,_0x29c6e9,_0x368422,_0x103960,_0x4319c5){var _0x374426=_0x3877e3,_0x39112f=this;_0x39112f[_0x374426('0x123f')]=_0x103960[_0x374426('0x15ed')](),_0x39112f[_0x374426('0x1a69')]=[],_0x39112f['title']=_0x374426('0x177a')+_0x86640f()['toUpper'](_0x29c6e9),_0x39112f[_0x374426('0x19ca')]=angular[_0x374426('0xd75')](_0x56b600),_0x39112f[_0x374426('0x1b9a')]=_0x4a537d,_0x39112f[_0x374426('0x7fa')]=_0x29c6e9,_0x39112f['crudPermissions']=_0x4319c5,_0x39112f[_0x374426('0xf8')]=![];!_0x39112f['item']&&(_0x39112f[_0x374426('0x19ca')]={'type':_0x374426('0x2638')},_0x39112f[_0x374426('0x19ca')][_0x86640f()[_0x374426('0x1b7e')](_0x29c6e9)+'Id']=_0x24dc25['id'],_0x39112f[_0x374426('0x4b4')]='INTEGRATIONS.NEW_'+_0x86640f()[_0x374426('0x7c1')](_0x29c6e9),_0x39112f[_0x374426('0xf8')]=!![]);_0x39112f[_0x374426('0x1e89')]=_0x44abc9,_0x39112f['saveItem']=_0x821dbd,_0x39112f[_0x374426('0x1c8')]=_0x202529,_0x39112f[_0x374426('0x23fe')]=_0x67022d,_0x39112f[_0x374426('0x167')]=_0xe096fb,_0x368422['variable'][_0x374426('0x595')]({'nolimit':!![]})['$promise'][_0x374426('0x21ad')](function(_0x3bea08){var _0x24797e=_0x374426;return _0x39112f[_0x24797e('0x142d')]=_0x3bea08['rows']?_0x3bea08[_0x24797e('0x1b33')]:[],_0x368422[_0x24797e('0x9b6')][_0x24797e('0x1219')]()[_0x24797e('0x1376')];})[_0x374426('0x21ad')](function(_0x6cb06a){var _0x3b22ae=_0x374426;return _0x39112f['voiceAgentReportColumns']=_0x86640f()[_0x3b22ae('0x5a8')](_0x86640f()[_0x3b22ae('0x223b')](_0x6cb06a),[_0x3b22ae('0x1376'),_0x3b22ae('0x9f8'),_0x3b22ae('0x23ae'),_0x3b22ae('0x15af'),_0x3b22ae('0x1bdd')]),_0x39112f[_0x3b22ae('0x22eb')][_0x3b22ae('0x206c')]('recordingURL'),_0x368422[_0x3b22ae('0x17bb')]['describe']()[_0x3b22ae('0x1376')];})[_0x374426('0x21ad')](function(_0x1c2d72){var _0x244758=_0x374426;_0x39112f['voiceDialReportColumns']=_0x86640f()[_0x244758('0x5a8')](_0x86640f()[_0x244758('0x223b')](_0x1c2d72),[_0x244758('0x1376'),'$resolved',_0x244758('0x23ae'),_0x244758('0x15af'),'sourceid']),_0x39112f[_0x244758('0x1491')][_0x244758('0x206c')](_0x244758('0x250a'));})[_0x374426('0x1c1d')](function(_0x36b110){var _0x39653e=_0x374426;_0x52fcfa[_0x39653e('0x2092')]({'title':_0x36b110[_0x39653e('0x209')]?_0x39653e('0x22d')+_0x36b110[_0x39653e('0x209')]+_0x39653e('0xa99')+_0x36b110[_0x39653e('0x1808')]:_0x39653e('0x8f3'),'msg':_0x36b110['data']?JSON[_0x39653e('0x25e')](_0x36b110[_0x39653e('0x11c2')]):_0x36b110[_0x39653e('0x174f')]()});}),_0x368422[_0x374426('0xd7d')][_0x374426('0x929')]({'id':_0x31ec11['id'],'ticketType':_0x24dc25['ticketType']?_0x24dc25['ticketType']:undefined})['$promise'][_0x374426('0x21ad')](function(_0x49b78c){var _0x3706b1=_0x374426;_0x39112f[_0x3706b1('0x2097')]=!![],_0x39112f['fields']=_0x49b78c['rows']?_0x49b78c[_0x3706b1('0x1b33')]:[],_0x39112f[_0x3706b1('0x19ca')][_0x3706b1('0x1830')]&&(_0x39112f['customField']=_0x86640f()['find'](_0x39112f[_0x3706b1('0x181e')],{'id':_0x39112f[_0x3706b1('0x19ca')]['idField']}));})[_0x374426('0x1c1d')](function(_0x54ac9e){var _0x51e917=_0x374426;_0x39112f[_0x51e917('0x2097')]=![],console[_0x51e917('0x2092')](_0x54ac9e);});function _0x44abc9(){var _0x420981=_0x374426;_0x39112f['errors']=[],_0x39112f['customField']&&(_0x39112f[_0x420981('0x19ca')][_0x420981('0x1830')]=_0x39112f['customField']['id'],_0x39112f[_0x420981('0x19ca')]['nameField']=_0x39112f[_0x420981('0x1fa7')][_0x420981('0x19fe')],_0x39112f[_0x420981('0x19ca')][_0x420981('0x1fa7')]=_0x39112f[_0x420981('0x1fa7')]['custom']),_0x368422[_0x420981('0x1a95')]['save'](_0x39112f[_0x420981('0x19ca')])[_0x420981('0x1376')][_0x420981('0x21ad')](function(_0xa8df48){var _0x3e4237=_0x420981;_0x39112f['items'][_0x3e4237('0xd0c')](_0xa8df48),_0x52fcfa[_0x3e4237('0xdb1')]({'title':_0x86640f()[_0x3e4237('0x1b7e')](_0x29c6e9)+'\x20properly\x20created','msg':_0x86640f()[_0x3e4237('0x1b7e')](_0x29c6e9)+_0x3e4237('0x1694')}),_0xe096fb();})[_0x420981('0x1c1d')](function(_0x1a32b0){var _0x5454bc=_0x420981;console[_0x5454bc('0x2092')](_0x1a32b0),_0x39112f[_0x5454bc('0x1a69')]=_0x1a32b0[_0x5454bc('0x11c2')]['errors']||[{'message':_0x1a32b0[_0x5454bc('0x174f')](),'type':_0x5454bc('0x1a23')}];});}function _0x821dbd(){var _0x16f3ed=_0x374426;_0x39112f[_0x16f3ed('0x1a69')]=[],_0x39112f['customField']&&(_0x39112f[_0x16f3ed('0x19ca')][_0x16f3ed('0x1830')]=_0x39112f[_0x16f3ed('0x1fa7')]['id'],_0x39112f['item'][_0x16f3ed('0xb45')]=_0x39112f[_0x16f3ed('0x1fa7')][_0x16f3ed('0x19fe')],_0x39112f[_0x16f3ed('0x19ca')][_0x16f3ed('0x1fa7')]=_0x39112f['customField'][_0x16f3ed('0xf50')]),_0x368422[_0x16f3ed('0x1a95')][_0x16f3ed('0x5ef')]({'id':_0x39112f[_0x16f3ed('0x19ca')]['id']},_0x39112f['item'])['$promise']['then'](function(_0x18fe68){var _0x2b7788=_0x16f3ed,_0x20a9a4=_0x86640f()[_0x2b7788('0x1d2e')](_0x39112f[_0x2b7788('0x1b9a')],{'id':_0x18fe68['id']});_0x20a9a4&&_0x86640f()['merge'](_0x20a9a4,_0x18fe68),_0x52fcfa['success']({'title':_0x86640f()[_0x2b7788('0x1b7e')](_0x29c6e9)+_0x2b7788('0x2a3'),'msg':_0x86640f()[_0x2b7788('0x1b7e')](_0x29c6e9)+_0x2b7788('0x2249')}),_0xe096fb();})['catch'](function(_0x1048ab){var _0x3aea7e=_0x16f3ed;console['error'](_0x1048ab),_0x39112f[_0x3aea7e('0x1a69')]=_0x1048ab[_0x3aea7e('0x11c2')][_0x3aea7e('0x1a69')]||[{'message':_0x1048ab['toString'](),'type':_0x3aea7e('0x1488')}];});}function _0x202529(_0x5a8584){var _0x5760d8=_0x374426;_0x39112f['errors']=[];var _0x4ab028=_0x57864c[_0x5760d8('0xa33')]()['title'](_0x5760d8('0x196b'))['content'](_0x5760d8('0x15f2')+_0x29c6e9+_0x5760d8('0x25e0'))[_0x5760d8('0x7a7')](_0x5760d8('0x2e4')+_0x86640f()[_0x5760d8('0x1b7e')](_0x29c6e9))['ok'](_0x5760d8('0xbfd'))[_0x5760d8('0x3b5')](_0x5760d8('0x1f40'))['targetEvent'](_0x5a8584);_0x57864c[_0x5760d8('0x853')](_0x4ab028)[_0x5760d8('0x21ad')](function(){var _0x1af4ba=_0x5760d8;_0x368422[_0x1af4ba('0x1a95')][_0x1af4ba('0x1164')]({'id':_0x39112f[_0x1af4ba('0x19ca')]['id']})[_0x1af4ba('0x1376')][_0x1af4ba('0x21ad')](function(){var _0x4c3039=_0x1af4ba;_0x86640f()[_0x4c3039('0x16a2')](_0x39112f[_0x4c3039('0x1b9a')],{'id':_0x39112f[_0x4c3039('0x19ca')]['id']}),_0x52fcfa[_0x4c3039('0xdb1')]({'title':_0x86640f()[_0x4c3039('0x1b7e')](_0x29c6e9)+_0x4c3039('0x11b6'),'msg':_0x86640f()[_0x4c3039('0x1b7e')](_0x29c6e9)+'\x20has\x20been\x20deleted!'}),_0xe096fb();})[_0x1af4ba('0x1c1d')](function(_0x1250c8){var _0x2a08ed=_0x1af4ba;console[_0x2a08ed('0x2092')](_0x1250c8),_0x39112f['errors']=_0x1250c8[_0x2a08ed('0x11c2')]['errors']||[{'message':_0x1250c8[_0x2a08ed('0x174f')](),'type':'api.item.delete'}];});},function(){});}function _0x67022d(){var _0x3c2dc1=_0x374426;return _0x39112f[_0x3c2dc1('0x19ca')]['variableName']!==undefined?_0x39112f[_0x3c2dc1('0x19ca')][_0x3c2dc1('0x1651')]:_0x3c2dc1('0x17f7');}function _0xe096fb(){var _0x1d3ea0=_0x374426;_0x57864c[_0x1d3ea0('0x1c24')]();}}const _0x3add8b=_0x5b57ed;_0x554365[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x13c1'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0xccd'),'toasty',_0x3877e3('0x15bc'),_0x3877e3('0x266f'),_0x3877e3('0xab4')];function _0x554365(_0x23ade5,_0x4bcd68,_0x1b24a7,_0x351d20,_0x228924,_0x29e65d,_0x4437fa,_0x5c2bd1,_0x452d52,_0x45a65b,_0x37892a,_0x3023b8){var _0x1fa7e1=_0x3877e3,_0x3ab3b3=this;_0x3ab3b3[_0x1fa7e1('0x123f')]=_0x45a65b[_0x1fa7e1('0x15ed')](),_0x3ab3b3[_0x1fa7e1('0x2ff')]=_0x29e65d,_0x3ab3b3[_0x1fa7e1('0x21e')]=_0x4437fa,_0x3ab3b3[_0x1fa7e1('0x1432')]=_0x3ab3b3[_0x1fa7e1('0x21e')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3ab3b3['location']=_0x4bcd68[_0x1fa7e1('0x1162')]()+'://'+_0x4bcd68[_0x1fa7e1('0x1c01')](),_0x3ab3b3['sugarcrmAccount']=_0x37892a||_0x23ade5[_0x1fa7e1('0x171b')][_0x1fa7e1('0x266f')]||{},_0x3ab3b3[_0x1fa7e1('0xab4')]=_0x3023b8&&_0x3023b8[_0x1fa7e1('0x205f')]==0x1?_0x3023b8[_0x1fa7e1('0x1b33')][0x0]:null,_0x3ab3b3['crudPermissions']=_0x45a65b[_0x1fa7e1('0x1778')](_0x3ab3b3['userProfileSection']?_0x3ab3b3[_0x1fa7e1('0xab4')][_0x1fa7e1('0x5ed')]:null),_0x3ab3b3[_0x1fa7e1('0x126a')]={},_0x3ab3b3[_0x1fa7e1('0x302')]=_0x23ade5[_0x1fa7e1('0x171b')]['tab']||0x0,_0x3ab3b3[_0x1fa7e1('0x95b')]=_0x452d52[_0x1fa7e1('0x231c')],_0x3ab3b3[_0x1fa7e1('0xc70')]=_0x2d45a2,_0x3ab3b3['saveSugarcrmAccount']=_0x338854;function _0x2d45a2(){var _0xa7ef20=_0x1fa7e1;_0x23ade5['go'](_0xa7ef20('0x19fa'),{},{'reload':_0xa7ef20('0x19fa')});}function _0x338854(){var _0x38eac3=_0x1fa7e1;_0x5c2bd1[_0x38eac3('0xd7d')]['update']({'id':_0x3ab3b3[_0x38eac3('0x266f')]['id']},_0x3ab3b3['sugarcrmAccount'])['$promise'][_0x38eac3('0x21ad')](function(){var _0x29043a=_0x38eac3;_0x452d52[_0x29043a('0xdb1')]({'title':'SugarcrmAccount\x20updated!','msg':_0x3ab3b3[_0x29043a('0x266f')][_0x29043a('0x19fe')]?_0x3ab3b3[_0x29043a('0x266f')][_0x29043a('0x19fe')]+_0x29043a('0xa8d'):''});})[_0x38eac3('0x1c1d')](function(_0x352335){var _0x175d82=_0x38eac3;_0x452d52['error']({'title':_0x352335[_0x175d82('0x209')]?_0x175d82('0x22d')+_0x352335[_0x175d82('0x209')]+_0x175d82('0xa99')+_0x352335[_0x175d82('0x1808')]:_0x175d82('0x7f8'),'msg':_0x352335[_0x175d82('0x11c2')]?JSON[_0x175d82('0x25e')](_0x352335['data']):_0x352335['toString']()});});}}const _0x49fef5=_0x554365,_0x4ea89c=_0x398308['p']+_0x3877e3('0x15a7');_0x177e4d[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),'$mdSidenav','$mdDialog','$document',_0x3877e3('0x2313'),'$translate',_0x3877e3('0xd61'),_0x3877e3('0x758'),_0x3877e3('0xab4'),'api',_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x177e4d(_0x52c4f9,_0x3b289d,_0x83b7be,_0x476a97,_0x500370,_0x1ee2d3,_0x576ae8,_0x5902a8,_0x569adb,_0x1fb678,_0x121d04,_0x2612e5,_0x3873dc,_0x106105,_0x391333,_0x37847b,_0x48476d){var _0x45411b=_0x3877e3,_0x5904f1=this;_0x5904f1[_0x45411b('0x2ff')]=_0x37847b,_0x5904f1[_0x45411b('0x21e')]=_0x48476d,_0x5904f1[_0x45411b('0x123f')]=_0x391333[_0x45411b('0x15ed')](),_0x5904f1['sugarcrmAccounts']=_0x569adb||{'count':0x0,'rows':[]},_0x5904f1['userProfile']=_0x1fb678,_0x5904f1[_0x45411b('0xab4')]=_0x121d04&&_0x121d04['count']==0x1?_0x121d04[_0x45411b('0x1b33')][0x0]:null,_0x5904f1[_0x45411b('0x5ed')]=_0x391333[_0x45411b('0x1778')](_0x5904f1['userProfileSection']?_0x5904f1[_0x45411b('0xab4')][_0x45411b('0x5ed')]:null),_0x5904f1['table']=_0x45411b('0xd61'),_0x5904f1[_0x45411b('0x11dc')]='',_0x5904f1[_0x45411b('0x18cf')]=null,_0x5904f1[_0x45411b('0xa5e')]=[],_0x5904f1['query']={'fields':_0x45411b('0xe58'),'limit':0xa,'page':0x1},_0x5904f1[_0x45411b('0x1c88')]=_0x56e7b7,_0x5904f1[_0x45411b('0x155c')]=_0x447dda,_0x5904f1[_0x45411b('0x2593')]=_0x4e619b,_0x5904f1['success']=_0x550b0d,_0x5904f1['getSugarcrmAccounts']=_0x1a9be7,_0x5904f1[_0x45411b('0x4e3')]=_0x4b1e31,_0x5904f1[_0x45411b('0xce0')]=_0x114dd3,_0x5904f1['exportSelectedSugarcrmAccounts']=_0x2a3617,_0x5904f1[_0x45411b('0x24f8')]=_0x2b9dd9,_0x5904f1[_0x45411b('0x24b8')]=_0x4ebc39,_0x5904f1['selectAllSugarcrmAccounts']=_0x554bc3;function _0x56e7b7(_0x397e97){var _0x17db27=_0x45411b;_0x83b7be['go'](_0x17db27('0xdcf'),{'id':_0x397e97['id'],'sugarcrmAccount':_0x397e97,'crudPermissions':_0x5904f1[_0x17db27('0x5ed')]});}function _0x447dda(_0x54ff8a){var _0x528cd3=_0x45411b;return _0x2612e5[_0x528cd3('0xd7d')]['getFields']({'id':_0x54ff8a['id'],'test':!![]})['$promise'][_0x528cd3('0x21ad')](function(){var _0x4550c9=_0x528cd3;_0x106105['success']({'title':_0x4550c9('0x1140'),'msg':_0x4550c9('0x1c80')});})['catch'](function(_0x5d1926){var _0xfcf34=_0x528cd3;_0x106105['error']({'title':_0xfcf34('0x1140'),'msg':_0x5d1926[_0xfcf34('0x11c2')]?_0x5d1926[_0xfcf34('0x11c2')][_0xfcf34('0x1224')]?_0x5d1926['data'][_0xfcf34('0x1224')]:JSON[_0xfcf34('0x25e')](_0x5d1926[_0xfcf34('0x11c2')]):_0x5d1926[_0xfcf34('0x174f')]()});});}function _0x4e619b(_0x5c2223,_0x2fa641){var _0x2cf5c7=_0x45411b,_0x576ee8=_0x500370[_0x2cf5c7('0xa33')]()[_0x2cf5c7('0x4b4')](_0x2cf5c7('0x25b6')+_0x86640f()[_0x2cf5c7('0x2159')](_0x2cf5c7('0x266f'))+'?')[_0x2cf5c7('0x276b')](_0x2cf5c7('0x622')+(_0x5c2223[_0x2cf5c7('0x19fe')]||_0x2cf5c7('0x266f'))+_0x2cf5c7('0x2135')+_0x2cf5c7('0x25e0'))[_0x2cf5c7('0x7a7')]('delete\x20sugarcrmAccount')['targetEvent'](_0x2fa641)['ok']('OK')[_0x2cf5c7('0x3b5')](_0x2cf5c7('0x284b'));_0x500370[_0x2cf5c7('0x853')](_0x576ee8)['then'](function(){_0x114dd3(_0x5c2223);},function(){var _0x12791b=_0x2cf5c7;console[_0x12791b('0x6fb')](_0x12791b('0x284b'));});}var _0x1a1076=!![],_0x3cd994=0x1;_0x52c4f9[_0x45411b('0x10e8')](_0x45411b('0x1948'),function(_0x5a730a,_0x3786c9){var _0x15f1b7=_0x45411b;_0x1a1076?_0x576ae8(function(){_0x1a1076=![];}):(!_0x3786c9&&(_0x3cd994=_0x5904f1[_0x15f1b7('0x77')][_0x15f1b7('0x2376')]),_0x5a730a!==_0x3786c9&&(_0x5904f1[_0x15f1b7('0x77')][_0x15f1b7('0x2376')]=0x1),!_0x5a730a&&(_0x5904f1['query']['page']=_0x3cd994),_0x5904f1[_0x15f1b7('0x28c')]());});function _0x550b0d(_0x355d7e){var _0x2ded7f=_0x45411b;_0x5904f1[_0x2ded7f('0xd61')]=_0x355d7e||{'count':0x0,'rows':[]};}function _0x1a9be7(){var _0xc20084=_0x45411b;_0x5904f1['query'][_0xc20084('0x15a5')]=(_0x5904f1[_0xc20084('0x77')]['page']-0x1)*_0x5904f1[_0xc20084('0x77')]['limit'],_0x391333[_0xc20084('0x21de')](_0xc20084('0x1bd8'))?_0x5904f1[_0xc20084('0x71b')]=_0x2612e5[_0xc20084('0xd7d')]['get'](_0x5904f1[_0xc20084('0x77')],_0x550b0d)[_0xc20084('0x1376')]:(_0x5904f1[_0xc20084('0x77')]['id']=_0x5904f1[_0xc20084('0x758')]['id'],_0x5904f1[_0xc20084('0x77')][_0xc20084('0x26ad')]=_0xc20084('0x24ec'),_0x5904f1['promise']=_0x2612e5[_0xc20084('0x758')][_0xc20084('0x321')](_0x5904f1[_0xc20084('0x77')],_0x550b0d)[_0xc20084('0x1376')]);}function _0x4b1e31(_0x59b186,_0x2f7543){var _0x1dd12b=_0x45411b;_0x500370['show']({'controller':_0x1dd12b('0x89f'),'controllerAs':'vm','templateUrl':_0x4ea89c,'parent':angular[_0x1dd12b('0x1676')](_0x1ee2d3[_0x1dd12b('0x2452')]),'targetEvent':_0x59b186,'clickOutsideToClose':!![],'locals':{'sugarcrmAccount':_0x2f7543,'sugarcrmAccounts':_0x5904f1[_0x1dd12b('0xd61')][_0x1dd12b('0x1b33')],'license':_0x5904f1[_0x1dd12b('0x2ff')],'setting':_0x5904f1[_0x1dd12b('0x21e')],'crudPermissions':_0x5904f1[_0x1dd12b('0x5ed')]}});}function _0x114dd3(_0x537c80){var _0x30de36=_0x45411b;_0x2612e5[_0x30de36('0xd7d')][_0x30de36('0x1164')]({'id':_0x537c80['id']})['$promise']['then'](function(){var _0xd40f40=_0x30de36;_0x86640f()[_0xd40f40('0x16a2')](_0x5904f1['sugarcrmAccounts'][_0xd40f40('0x1b33')],{'id':_0x537c80['id']}),_0x5904f1['sugarcrmAccounts'][_0xd40f40('0x205f')]-=0x1,!_0x5904f1[_0xd40f40('0xd61')][_0xd40f40('0x1b33')][_0xd40f40('0x577')]&&_0x5904f1['getSugarcrmAccounts'](),_0x106105[_0xd40f40('0xdb1')]({'title':_0x86640f()[_0xd40f40('0x2159')](_0xd40f40('0x1d3b'))+_0xd40f40('0xe64'),'msg':_0x537c80[_0xd40f40('0x19fe')]?_0x537c80[_0xd40f40('0x19fe')]+_0xd40f40('0xb4a'):''});})[_0x30de36('0x1c1d')](function(_0x4cd838){var _0x34c924=_0x30de36;if(_0x4cd838[_0x34c924('0x11c2')]&&_0x4cd838[_0x34c924('0x11c2')]['errors']&&_0x4cd838[_0x34c924('0x11c2')][_0x34c924('0x1a69')][_0x34c924('0x577')]){_0x5904f1[_0x34c924('0x1a69')]=_0x4cd838[_0x34c924('0x11c2')][_0x34c924('0x1a69')]||[{'message':_0x4cd838[_0x34c924('0x174f')](),'type':_0x34c924('0x1054')}];for(var _0x5b2991=0x0;_0x5b2991<_0x4cd838['data'][_0x34c924('0x1a69')]['length'];_0x5b2991++){_0x106105[_0x34c924('0x2092')]({'title':_0x4cd838[_0x34c924('0x11c2')][_0x34c924('0x1a69')][_0x5b2991][_0x34c924('0x7fa')],'msg':_0x4cd838[_0x34c924('0x11c2')][_0x34c924('0x1a69')][_0x5b2991]['message']});}}else _0x106105['error']({'title':_0x4cd838[_0x34c924('0x209')]?_0x34c924('0x22d')+_0x4cd838[_0x34c924('0x209')]+_0x34c924('0xa99')+_0x4cd838[_0x34c924('0x1808')]:_0x34c924('0x1054'),'msg':_0x4cd838['data']?JSON['stringify'](_0x4cd838[_0x34c924('0x11c2')][_0x34c924('0x1224')]):_0x4cd838[_0x34c924('0x1224')]||_0x4cd838[_0x34c924('0x174f')]()});});}function _0x2a3617(){var _0x196595=_0x45411b,_0xaf855e=angular[_0x196595('0xd75')](_0x5904f1[_0x196595('0xa5e')]);return _0x5904f1[_0x196595('0xa5e')]=[],_0xaf855e;}function _0x2b9dd9(_0x22d38f){var _0x464c27=_0x45411b,_0x21c9f1=_0x500370[_0x464c27('0xa33')]()['title'](_0x464c27('0x242b'))[_0x464c27('0x276b')](''+_0x5904f1['selectedSugarcrmAccounts'][_0x464c27('0x577')]+_0x464c27('0xd74')+_0x464c27('0x25e0'))['ariaLabel'](_0x464c27('0x1894'))[_0x464c27('0x1e6d')](_0x22d38f)['ok']('OK')[_0x464c27('0x3b5')](_0x464c27('0x284b'));_0x500370[_0x464c27('0x853')](_0x21c9f1)[_0x464c27('0x21ad')](function(){var _0x41e102=_0x464c27;_0x5904f1[_0x41e102('0xa5e')][_0x41e102('0x1a52')](function(_0x4e49a2){_0x114dd3(_0x4e49a2);}),_0x5904f1[_0x41e102('0xa5e')]=[];});}function _0x4ebc39(){var _0x1a5f0f=_0x45411b;_0x5904f1[_0x1a5f0f('0xa5e')]=[];}function _0x554bc3(){var _0xf22cb7=_0x45411b;_0x5904f1[_0xf22cb7('0xa5e')]=_0x5904f1[_0xf22cb7('0xd61')][_0xf22cb7('0x1b33')];}}const _0x4b52c8=_0x177e4d;_0x1d082a[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),'$mdDialog','$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x1813'),_0x3877e3('0x255b'),_0x3877e3('0xccd'),'Auth',_0x3877e3('0x2ff'),_0x3877e3('0x21e'),'crudPermissions'];function _0x1d082a(_0x26dd5b,_0x1ddaa1,_0x3bbe0f,_0x4d0d4a,_0x21c940,_0x180459,_0x4f05b4,_0x888ac7,_0x1b2e7d,_0x4457c3,_0x24b6e3,_0x4cc139,_0x500ba4,_0x49c196){var _0x4ecedb=_0x3877e3,_0xd64888=this;_0xd64888['currentUser']=_0x24b6e3['getCurrentUser'](),_0xd64888[_0x4ecedb('0x1a69')]=[],_0xd64888[_0x4ecedb('0x21e')]=_0x500ba4,_0xd64888[_0x4ecedb('0x2ff')]=_0x4cc139,_0xd64888[_0x4ecedb('0x5ed')]=_0x49c196,_0xd64888[_0x4ecedb('0x126a')]={},_0xd64888[_0x4ecedb('0x1432')]=_0xd64888[_0x4ecedb('0x21e')]&&_0xd64888['setting'][_0x4ecedb('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xd64888[_0x4ecedb('0x4b4')]=_0x4ecedb('0x1c7f'),_0xd64888[_0x4ecedb('0x255b')]=angular['copy'](_0x1b2e7d),_0xd64888[_0x4ecedb('0x1813')]=_0x888ac7,_0xd64888[_0x4ecedb('0x296')]=![];!_0xd64888[_0x4ecedb('0x255b')]&&(_0xd64888['vtigerAccount']={'serverUrl':_0x3bbe0f['protocol']()+_0x4ecedb('0x22a9')+_0x3bbe0f[_0x4ecedb('0x1c01')]()+(_0x3bbe0f[_0x4ecedb('0x24fe')]()?':'+_0x3bbe0f[_0x4ecedb('0x24fe')]():'')},_0xd64888[_0x4ecedb('0x4b4')]=_0x4ecedb('0xde5'),_0xd64888['newVtigerAccount']=!![]);_0xd64888[_0x4ecedb('0xd82')]=_0x21cec6,_0xd64888[_0x4ecedb('0x24a4')]=_0xb37192,_0xd64888[_0x4ecedb('0x191e')]=_0xed0f24,_0xd64888[_0x4ecedb('0x279')]=_0x3dd2ae,_0xd64888['closeDialog']=_0x963eb0;function _0x21cec6(){var _0x37f40d=_0x4ecedb;_0xd64888['errors']=[],_0x4457c3['intVtigerAccount'][_0x37f40d('0x186f')](_0xd64888[_0x37f40d('0x255b')])[_0x37f40d('0x1376')][_0x37f40d('0x21ad')](function(_0x4e1c4e){var _0x204360=_0x37f40d;_0xd64888[_0x204360('0x1813')][_0x204360('0xd0c')](_0x4e1c4e['toJSON']()),_0x4f05b4[_0x204360('0xdb1')]({'title':'VtigerAccount\x20properly\x20created','msg':_0xd64888[_0x204360('0x255b')][_0x204360('0x19fe')]?_0xd64888['vtigerAccount'][_0x204360('0x19fe')]+_0x204360('0x1694'):''}),_0x963eb0(_0x4e1c4e);})[_0x37f40d('0x1c1d')](function(_0x7ba0f4){var _0x484034=_0x37f40d;if(_0x7ba0f4[_0x484034('0x11c2')]&&_0x7ba0f4[_0x484034('0x11c2')][_0x484034('0x1a69')]&&_0x7ba0f4['data'][_0x484034('0x1a69')][_0x484034('0x577')]){_0xd64888[_0x484034('0x1a69')]=_0x7ba0f4[_0x484034('0x11c2')][_0x484034('0x1a69')]||[{'message':_0x7ba0f4[_0x484034('0x174f')](),'type':_0x484034('0x101a')}];for(var _0x635e41=0x0;_0x635e41<_0x7ba0f4[_0x484034('0x11c2')][_0x484034('0x1a69')][_0x484034('0x577')];_0x635e41+=0x1){_0x4f05b4[_0x484034('0x2092')]({'title':_0x7ba0f4['data']['errors'][_0x635e41][_0x484034('0x7fa')],'msg':_0x7ba0f4[_0x484034('0x11c2')][_0x484034('0x1a69')][_0x635e41]['message']});}}else _0x4f05b4[_0x484034('0x2092')]({'title':_0x7ba0f4[_0x484034('0x209')]?_0x484034('0x22d')+_0x7ba0f4[_0x484034('0x209')]+_0x484034('0xa99')+_0x7ba0f4['statusText']:'api.intVtigerAccount.save','msg':_0x7ba0f4[_0x484034('0x11c2')]?JSON['stringify'](_0x7ba0f4['data'][_0x484034('0x1224')]):_0x7ba0f4['toString']()});});}function _0xb37192(){var _0xb33006=_0x4ecedb;_0xd64888['errors']=[],_0x4457c3[_0xb33006('0x45b')][_0xb33006('0x5ef')]({'id':_0xd64888[_0xb33006('0x255b')]['id']},_0xd64888['vtigerAccount'])[_0xb33006('0x1376')][_0xb33006('0x21ad')](function(_0x3accac){var _0x4dedb0=_0xb33006,_0x577b45=_0x86640f()['find'](_0xd64888[_0x4dedb0('0x1813')],{'id':_0x3accac['id']});_0x577b45&&_0x86640f()[_0x4dedb0('0xd0e')](_0x577b45,_0x86640f()[_0x4dedb0('0xc50')](_0x3accac[_0x4dedb0('0x3bc')](),_0x86640f()[_0x4dedb0('0x223b')](_0x577b45))),_0x4f05b4[_0x4dedb0('0xdb1')]({'title':'VtigerAccount\x20properly\x20saved!','msg':_0xd64888['vtigerAccount'][_0x4dedb0('0x19fe')]?_0xd64888[_0x4dedb0('0x255b')][_0x4dedb0('0x19fe')]+'\x20has\x20been\x20saved!':''}),_0x963eb0(_0x3accac);})['catch'](function(_0x597180){var _0x28b933=_0xb33006;if(_0x597180[_0x28b933('0x11c2')]&&_0x597180[_0x28b933('0x11c2')]['errors']&&_0x597180[_0x28b933('0x11c2')]['errors'][_0x28b933('0x577')]){_0xd64888[_0x28b933('0x1a69')]=_0x597180[_0x28b933('0x11c2')][_0x28b933('0x1a69')]||[{'message':_0x597180[_0x28b933('0x174f')](),'type':_0x28b933('0x2445')}];for(var _0x527bb3=0x0;_0x527bb3<_0x597180[_0x28b933('0x11c2')]['errors'][_0x28b933('0x577')];_0x527bb3++){_0x4f05b4[_0x28b933('0x2092')]({'title':_0x597180[_0x28b933('0x11c2')][_0x28b933('0x1a69')][_0x527bb3][_0x28b933('0x7fa')],'msg':_0x597180[_0x28b933('0x11c2')][_0x28b933('0x1a69')][_0x527bb3][_0x28b933('0x1224')]});}}else _0x4f05b4[_0x28b933('0x2092')]({'title':_0x597180[_0x28b933('0x209')]?_0x28b933('0x22d')+_0x597180[_0x28b933('0x209')]+_0x28b933('0xa99')+_0x597180[_0x28b933('0x1808')]:_0x28b933('0x2445'),'msg':_0x597180['data']?JSON[_0x28b933('0x25e')](_0x597180[_0x28b933('0x11c2')][_0x28b933('0x1224')]):_0x597180[_0x28b933('0x174f')]()});});}function _0xed0f24(_0x2a0450){var _0x151494=_0x4ecedb;_0xd64888['errors']=[];var _0x40d4a2=_0x4d0d4a[_0x151494('0xa33')]()[_0x151494('0x4b4')](_0x151494('0x196b'))[_0x151494('0x13fb')](_0x151494('0x1333'))[_0x151494('0x7a7')]('Delete\x20VtigerAccount')['ok'](_0x151494('0xbfd'))[_0x151494('0x3b5')](_0x151494('0x1f40'))[_0x151494('0x1e6d')](_0x2a0450);_0x4d0d4a['show'](_0x40d4a2)[_0x151494('0x21ad')](function(){var _0x2043f6=_0x151494;_0x4457c3[_0x2043f6('0x45b')]['delete']({'id':_0xd64888[_0x2043f6('0x255b')]['id']})[_0x2043f6('0x1376')][_0x2043f6('0x21ad')](function(){var _0xe067b3=_0x2043f6;_0x86640f()['remove'](_0xd64888[_0xe067b3('0x1813')],{'id':_0xd64888['vtigerAccount']['id']}),_0x4f05b4[_0xe067b3('0xdb1')]({'title':'VtigerAccount\x20properly\x20deleted!','msg':(_0xd64888[_0xe067b3('0x255b')]['name']||_0xe067b3('0x255b'))+'\x20has\x20been\x20deleted!'}),_0x963eb0(_0xd64888['vtigerAccount']);})[_0x2043f6('0x1c1d')](function(_0x103f99){var _0x493184=_0x2043f6;if(_0x103f99['data']&&_0x103f99['data'][_0x493184('0x1a69')]&&_0x103f99[_0x493184('0x11c2')][_0x493184('0x1a69')][_0x493184('0x577')]){_0xd64888[_0x493184('0x1a69')]=_0x103f99[_0x493184('0x11c2')]['errors']||[{'message':_0x103f99[_0x493184('0x174f')](),'type':_0x493184('0x2327')}];for(var _0x30c927=0x0;_0x30c927<_0x103f99[_0x493184('0x11c2')][_0x493184('0x1a69')][_0x493184('0x577')];_0x30c927++){_0x4f05b4[_0x493184('0x2092')]({'title':_0x103f99[_0x493184('0x11c2')]['errors'][_0x30c927][_0x493184('0x7fa')],'msg':_0x103f99[_0x493184('0x11c2')][_0x493184('0x1a69')][_0x30c927]['message']});}}else _0x4f05b4[_0x493184('0x2092')]({'title':_0x103f99[_0x493184('0x209')]?_0x493184('0x22d')+_0x103f99['status']+_0x493184('0xa99')+_0x103f99[_0x493184('0x1808')]:_0x493184('0x2327'),'msg':_0x103f99[_0x493184('0x11c2')]?JSON[_0x493184('0x25e')](_0x103f99[_0x493184('0x11c2')][_0x493184('0x1224')]):_0x103f99['message']||_0x103f99[_0x493184('0x174f')]()});});},function(){});}function _0x3dd2ae(_0x3f5589){return _0x3f5589===null?undefined:new Date(_0x3f5589);}function _0x963eb0(_0x570be6){var _0x438bef=_0x4ecedb;_0x4d0d4a[_0x438bef('0x1c24')](_0x570be6);}}const _0x30d0f7=_0x1d082a,_0x539d36=_0x398308['p']+'src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/configurations/dialog.html/dialog-[chunkhash].html',_0x18fe66=_0x398308['p']+'src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/item/dialog.html/dialog-[chunkhash].html';_0x1d493d[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$document',_0x3877e3('0xccd'),'toasty','Auth'];function _0x1d493d(_0x2042f5,_0x1806d7,_0x421b95,_0x151ab6,_0x184744){var _0x28b8c1=_0x3877e3,_0x4f3fb0=this;_0x4f3fb0['currentUser']=_0x184744[_0x28b8c1('0x15ed')](),_0x4f3fb0[_0x28b8c1('0x255b')]={},_0x4f3fb0[_0x28b8c1('0x1795')]={},_0x4f3fb0[_0x28b8c1('0x1ca3')]=[],_0x4f3fb0[_0x28b8c1('0x230')]=-0x1,_0x4f3fb0[_0x28b8c1('0x5ed')],_0x4f3fb0[_0x28b8c1('0x1d75')]=_0x2efb02,_0x4f3fb0[_0x28b8c1('0x1113')]=_0x1a1dd3,_0x4f3fb0[_0x28b8c1('0x1c72')]=_0x4530bc,_0x4f3fb0['deleteVtigerConfiguration']=_0x50c3e1;function _0x2efb02(_0x4cda94,_0x1817e0){var _0xab17dc=_0x28b8c1;_0x4f3fb0['vtigerAccount']=_0x4cda94,_0x4f3fb0[_0xab17dc('0x5ed')]=typeof _0x1817e0!==_0xab17dc('0xddc')?_0x1817e0:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x421b95['intVtigerAccount'][_0xab17dc('0xc44')]({'id':_0x4f3fb0['vtigerAccount']['id'],'sort':_0xab17dc('0x33')})[_0xab17dc('0x1376')][_0xab17dc('0x21ad')](function(_0x472fac){var _0x531913=_0xab17dc;return _0x4f3fb0[_0x531913('0x1ca3')]=_0x472fac[_0x531913('0x1b33')]?_0x472fac[_0x531913('0x1b33')]:[],_0x4f3fb0[_0x531913('0x1ca3')]['length']&&_0x4f3fb0[_0x531913('0x1113')](0x0),_0x421b95['variable']['get']({'nolimit':!![],'sort':_0x531913('0x19fe')})[_0x531913('0x1376')];})['then'](function(_0x40bf2a){var _0x27d15c=_0xab17dc;_0x4f3fb0['variables']=_0x40bf2a[_0x27d15c('0x1b33')]?_0x40bf2a['rows']:[],_0x4f3fb0[_0x27d15c('0x5f')]=_0x86640f()[_0x27d15c('0xcde')](_0x4f3fb0[_0x27d15c('0x142d')],'id');})[_0xab17dc('0x1c1d')](function(_0x5a3e98){var _0x469832=_0xab17dc;_0x151ab6[_0x469832('0x2092')]({'title':_0x5a3e98[_0x469832('0x209')]?_0x469832('0x22d')+_0x5a3e98[_0x469832('0x209')]+_0x469832('0xa99')+_0x5a3e98['statusText']:_0x469832('0x1c4e'),'msg':_0x5a3e98[_0x469832('0x11c2')]?JSON['stringify'](_0x5a3e98[_0x469832('0x11c2')]):_0x5a3e98[_0x469832('0x174f')]()});});}function _0x1a1dd3(_0x7ed926){var _0x520c98=_0x28b8c1;_0x4f3fb0['vtigerConfiguration']=_0x4f3fb0[_0x520c98('0x1ca3')][_0x7ed926],_0x4f3fb0[_0x520c98('0x230')]=_0x7ed926,_0x421b95['intVtigerConfiguration'][_0x520c98('0x12d7')]({'id':_0x4f3fb0[_0x520c98('0x1795')]['id']})['$promise'][_0x520c98('0x21ad')](function(_0x484573){var _0x19ff56=_0x520c98;return _0x4f3fb0['subjects']=_0x484573[_0x19ff56('0x1b33')]?_0x484573[_0x19ff56('0x1b33')]:[],_0x421b95[_0x19ff56('0x1ce5')][_0x19ff56('0x377')]({'id':_0x4f3fb0[_0x19ff56('0x1795')]['id']})[_0x19ff56('0x1376')];})[_0x520c98('0x21ad')](function(_0xced5b5){var _0x1699f4=_0x520c98;return _0x4f3fb0[_0x1699f4('0x2161')]=_0xced5b5[_0x1699f4('0x1b33')]?_0xced5b5[_0x1699f4('0x1b33')]:[],_0x421b95[_0x1699f4('0x1ce5')][_0x1699f4('0x929')]({'id':_0x4f3fb0[_0x1699f4('0x1795')]['id']})['$promise'];})[_0x520c98('0x21ad')](function(_0x4efcfd){var _0x17ede3=_0x520c98;_0x4f3fb0[_0x17ede3('0x181e')]=_0x4efcfd[_0x17ede3('0x1b33')]?_0x4efcfd['rows']:[];})[_0x520c98('0x1c1d')](function(_0x2edecb){var _0x4da742=_0x520c98;_0x151ab6[_0x4da742('0x2092')]({'title':_0x2edecb[_0x4da742('0x209')]?_0x4da742('0x22d')+_0x2edecb['status']+_0x4da742('0xa99')+_0x2edecb[_0x4da742('0x1808')]:'SYSTEM:GETConfigurations','msg':_0x2edecb['data']?JSON[_0x4da742('0x25e')](_0x2edecb[_0x4da742('0x11c2')]):_0x2edecb['toString']()});});}function _0x4530bc(_0x4446ec,_0x15de99){var _0x57ea93=_0x28b8c1;_0x2042f5['show']({'controller':_0x57ea93('0x9cc'),'controllerAs':'vm','templateUrl':_0x539d36,'parent':angular['element'](_0x1806d7[_0x57ea93('0x2452')]),'targetEvent':_0x4446ec,'clickOutsideToClose':!![],'locals':{'vtigerConfiguration':_0x15de99,'configurations':_0x4f3fb0['configurations'],'license':null,'setting':null,'crudPermissions':_0x4f3fb0[_0x57ea93('0x5ed')]}})['finally'](function(){var _0x14b823=_0x57ea93;_0x4f3fb0[_0x14b823('0x1113')](0x0);});}function _0x50c3e1(_0xf86b1d,_0x3c58cc){var _0x578e64=_0x28b8c1,_0x11ee67=_0x2042f5[_0x578e64('0xa33')]()[_0x578e64('0x4b4')](_0x578e64('0xae5'))[_0x578e64('0x276b')](_0x578e64('0x622')+(_0x3c58cc['name']||_0x578e64('0x1795'))+_0x578e64('0x2135')+_0x578e64('0x25e0'))[_0x578e64('0x7a7')](_0x578e64('0xef2'))[_0x578e64('0x1e6d')](_0xf86b1d)['ok']('OK')[_0x578e64('0x3b5')](_0x578e64('0x284b'));_0x2042f5['show'](_0x11ee67)[_0x578e64('0x21ad')](function(){var _0x4e1361=_0x578e64;_0x421b95[_0x4e1361('0x1ce5')][_0x4e1361('0x1164')]({'id':_0x3c58cc['id']})[_0x4e1361('0x1376')][_0x4e1361('0x21ad')](function(){var _0x362d33=_0x4e1361;_0x86640f()[_0x362d33('0x16a2')](_0x4f3fb0[_0x362d33('0x1ca3')],{'id':_0x3c58cc['id']}),_0x151ab6['success']({'title':_0x362d33('0xa29'),'msg':_0x3c58cc[_0x362d33('0x19fe')]?_0x3c58cc[_0x362d33('0x19fe')]+'\x20has\x20been\x20deleted!':''});})[_0x4e1361('0x1c1d')](function(_0x4b7d58){var _0x32320a=_0x4e1361;_0x151ab6[_0x32320a('0x2092')]({'title':_0x4b7d58[_0x32320a('0x209')]?'API:'+_0x4b7d58[_0x32320a('0x209')]+_0x32320a('0xa99')+_0x4b7d58[_0x32320a('0x1808')]:_0x32320a('0x2336'),'msg':_0x4b7d58['data']?JSON[_0x32320a('0x25e')](_0x4b7d58['data']):_0x4b7d58['toString']()});})[_0x4e1361('0x13e')](function(){var _0x1b0eff=_0x4e1361;_0x4f3fb0[_0x1b0eff('0x1113')](0x0);});},function(){var _0x131703=_0x578e64;console['log'](_0x131703('0x284b'));});}_0x4f3fb0[_0x28b8c1('0x19ba')]=[],_0x4f3fb0[_0x28b8c1('0x11de')]=_0x25052b,_0x4f3fb0[_0x28b8c1('0x2203')]=_0x534329,_0x4f3fb0[_0x28b8c1('0x858')]=_0x5356e9;function _0x25052b(_0x5c6489,_0x273e59){var _0x3738e9=_0x28b8c1;_0x2042f5[_0x3738e9('0x853')]({'controller':'CreateOrEditVtigerAccountItemDialogController','controllerAs':'vm','templateUrl':_0x18fe66,'parent':angular[_0x3738e9('0x1676')](_0x1806d7[_0x3738e9('0x2452')]),'targetEvent':_0x5c6489,'clickOutsideToClose':!![],'locals':{'type':_0x3738e9('0x32a'),'item':_0x273e59,'items':_0x4f3fb0['subjects'],'configuration':_0x4f3fb0[_0x3738e9('0x1795')],'account':_0x4f3fb0[_0x3738e9('0x255b')],'license':null,'setting':null,'crudPermissions':_0x4f3fb0[_0x3738e9('0x5ed')]}});}function _0x5e7a6c(_0x696129){var _0x3b519f=_0x28b8c1;_0x421b95['intVtigerField'][_0x3b519f('0x1164')]({'id':_0x696129['id']})['$promise'][_0x3b519f('0x21ad')](function(){var _0x1c4795=_0x3b519f;_0x86640f()['remove'](_0x4f3fb0[_0x1c4795('0x1033')],{'id':_0x696129['id']}),_0x151ab6[_0x1c4795('0xdb1')]({'title':_0x1c4795('0x17b8'),'msg':'Subject\x20has\x20been\x20deleted!'});})[_0x3b519f('0x1c1d')](function(_0x270a0a){var _0x2303ec=_0x3b519f;_0x151ab6[_0x2303ec('0x2092')]({'title':_0x270a0a[_0x2303ec('0x209')]?_0x2303ec('0x22d')+_0x270a0a[_0x2303ec('0x209')]+_0x2303ec('0xa99')+_0x270a0a[_0x2303ec('0x1808')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x270a0a[_0x2303ec('0x11c2')]?JSON[_0x2303ec('0x25e')](_0x270a0a[_0x2303ec('0x11c2')]):_0x270a0a[_0x2303ec('0x174f')]()});});}function _0x534329(_0x364443,_0x27dded){var _0x1248e5=_0x28b8c1,_0x51218e=_0x2042f5[_0x1248e5('0xa33')]()[_0x1248e5('0x4b4')](_0x1248e5('0xe3a'))[_0x1248e5('0x276b')](_0x1248e5('0x2031')+'\x20will\x20be\x20deleted.')[_0x1248e5('0x7a7')]('delete\x20subject')[_0x1248e5('0x1e6d')](_0x364443)['ok']('OK')[_0x1248e5('0x3b5')]('CANCEL');_0x2042f5[_0x1248e5('0x853')](_0x51218e)[_0x1248e5('0x21ad')](function(){_0x5e7a6c(_0x27dded);},function(){var _0x47f06b=_0x1248e5;console[_0x47f06b('0x6fb')](_0x47f06b('0x284b'));});}function _0x5356e9(_0x48299e){var _0xcc03c=_0x28b8c1,_0x11d06f=_0x2042f5[_0xcc03c('0xa33')]()[_0xcc03c('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20subjects?')['htmlContent'](''+_0x4f3fb0[_0xcc03c('0x19ba')][_0xcc03c('0x577')]+_0xcc03c('0xd74')+'\x20will\x20be\x20deleted.')[_0xcc03c('0x7a7')]('delete\x20subjects')[_0xcc03c('0x1e6d')](_0x48299e)['ok']('OK')[_0xcc03c('0x3b5')](_0xcc03c('0x284b'));_0x2042f5[_0xcc03c('0x853')](_0x11d06f)[_0xcc03c('0x21ad')](function(){var _0x4866cd=_0xcc03c;_0x4f3fb0[_0x4866cd('0x19ba')][_0x4866cd('0x1a52')](function(_0x131890){_0x5e7a6c(_0x131890);}),_0x4f3fb0['selectedSubjects']=[];});}_0x4f3fb0[_0x28b8c1('0xbdf')]=[],_0x4f3fb0['createOrEditDescription']=_0x364b74,_0x4f3fb0['deleteDescriptionConfirm']=_0x20f015,_0x4f3fb0[_0x28b8c1('0x1f80')]=_0x3b6dad;function _0x364b74(_0x300f0d,_0x269c4e){var _0x3ca2a2=_0x28b8c1;_0x2042f5[_0x3ca2a2('0x853')]({'controller':_0x3ca2a2('0x8c8'),'controllerAs':'vm','templateUrl':_0x18fe66,'parent':angular['element'](_0x1806d7[_0x3ca2a2('0x2452')]),'targetEvent':_0x300f0d,'clickOutsideToClose':!![],'locals':{'type':_0x3ca2a2('0x1137'),'item':_0x269c4e,'items':_0x4f3fb0[_0x3ca2a2('0x2161')],'configuration':_0x4f3fb0[_0x3ca2a2('0x1795')],'account':_0x4f3fb0[_0x3ca2a2('0x255b')],'license':null,'setting':null,'crudPermissions':_0x4f3fb0[_0x3ca2a2('0x5ed')]}});}function _0x79b40a(_0x52e615){var _0x43431c=_0x28b8c1;_0x421b95[_0x43431c('0x2e1')][_0x43431c('0x1164')]({'id':_0x52e615['id']})[_0x43431c('0x1376')][_0x43431c('0x21ad')](function(){var _0x5cdff3=_0x43431c;_0x86640f()[_0x5cdff3('0x16a2')](_0x4f3fb0[_0x5cdff3('0x2161')],{'id':_0x52e615['id']}),_0x151ab6[_0x5cdff3('0xdb1')]({'title':_0x5cdff3('0x1af8'),'msg':_0x5cdff3('0x1ec6')});})[_0x43431c('0x1c1d')](function(_0x3f9dba){var _0x32f6f3=_0x43431c;_0x151ab6['error']({'title':_0x3f9dba[_0x32f6f3('0x209')]?_0x32f6f3('0x22d')+_0x3f9dba['status']+_0x32f6f3('0xa99')+_0x3f9dba['statusText']:_0x32f6f3('0xede'),'msg':_0x3f9dba['data']?JSON[_0x32f6f3('0x25e')](_0x3f9dba[_0x32f6f3('0x11c2')]):_0x3f9dba[_0x32f6f3('0x174f')]()});});}function _0x20f015(_0x439605,_0x4f8b09){var _0x3f209f=_0x28b8c1,_0x455ad1=_0x2042f5['confirm']()[_0x3f209f('0x4b4')](_0x3f209f('0x1d59'))[_0x3f209f('0x276b')](_0x3f209f('0x4e6')+'\x20will\x20be\x20deleted.')[_0x3f209f('0x7a7')]('delete\x20description')[_0x3f209f('0x1e6d')](_0x439605)['ok']('OK')[_0x3f209f('0x3b5')]('CANCEL');_0x2042f5[_0x3f209f('0x853')](_0x455ad1)[_0x3f209f('0x21ad')](function(){_0x79b40a(_0x4f8b09);},function(){var _0x21bdc0=_0x3f209f;console['log'](_0x21bdc0('0x284b'));});}function _0x3b6dad(_0x3ad15a){var _0xe8eab4=_0x28b8c1,_0x592b71=_0x2042f5[_0xe8eab4('0xa33')]()[_0xe8eab4('0x4b4')](_0xe8eab4('0x6e'))['htmlContent'](_0xe8eab4('0x622')+_0x4f3fb0[_0xe8eab4('0xbdf')][_0xe8eab4('0x577')]+_0xe8eab4('0xd74')+_0xe8eab4('0x25e0'))[_0xe8eab4('0x7a7')](_0xe8eab4('0x211d'))[_0xe8eab4('0x1e6d')](_0x3ad15a)['ok']('OK')['cancel'](_0xe8eab4('0x284b'));_0x2042f5[_0xe8eab4('0x853')](_0x592b71)[_0xe8eab4('0x21ad')](function(){var _0x483558=_0xe8eab4;_0x4f3fb0[_0x483558('0xbdf')]['forEach'](function(_0x1fca90){_0x79b40a(_0x1fca90);}),_0x4f3fb0[_0x483558('0xbdf')]=[];});}_0x4f3fb0[_0x28b8c1('0x21b0')]=[],_0x4f3fb0['createOrEditField']=_0x56e4ac,_0x4f3fb0[_0x28b8c1('0x222e')]=_0x3e6df8,_0x4f3fb0[_0x28b8c1('0xe52')]=_0x3a2da8;function _0x56e4ac(_0x51af68,_0x301c32){var _0x225a2d=_0x28b8c1;_0x2042f5[_0x225a2d('0x853')]({'controller':_0x225a2d('0x8c8'),'controllerAs':'vm','templateUrl':_0x18fe66,'parent':angular[_0x225a2d('0x1676')](_0x1806d7[_0x225a2d('0x2452')]),'targetEvent':_0x51af68,'clickOutsideToClose':!![],'locals':{'type':_0x225a2d('0xff8'),'item':_0x301c32,'items':_0x4f3fb0[_0x225a2d('0x181e')],'configuration':_0x4f3fb0[_0x225a2d('0x1795')],'account':_0x4f3fb0[_0x225a2d('0x255b')],'license':null,'setting':null,'crudPermissions':_0x4f3fb0['crudPermissions']}});}function _0x3cb00d(_0x2324d9){var _0x508baa=_0x28b8c1;_0x421b95[_0x508baa('0x2e1')][_0x508baa('0x1164')]({'id':_0x2324d9['id']})[_0x508baa('0x1376')][_0x508baa('0x21ad')](function(){var _0x175601=_0x508baa;_0x86640f()[_0x175601('0x16a2')](_0x4f3fb0[_0x175601('0x181e')],{'id':_0x2324d9['id']}),_0x151ab6[_0x175601('0xdb1')]({'title':'Field\x20deleted!','msg':_0x175601('0x2263')});})[_0x508baa('0x1c1d')](function(_0x458f84){var _0x496996=_0x508baa;_0x151ab6['error']({'title':_0x458f84['status']?_0x496996('0x22d')+_0x458f84[_0x496996('0x209')]+'\x20-\x20'+_0x458f84['statusText']:_0x496996('0xede'),'msg':_0x458f84[_0x496996('0x11c2')]?JSON[_0x496996('0x25e')](_0x458f84[_0x496996('0x11c2')]):_0x458f84[_0x496996('0x174f')]()});});}function _0x3e6df8(_0x5c41bb,_0x4565c1){var _0x43546d=_0x28b8c1,_0x19105a=_0x2042f5[_0x43546d('0xa33')]()[_0x43546d('0x4b4')](_0x43546d('0x2207'))[_0x43546d('0x276b')](_0x43546d('0x171')+_0x43546d('0x25e0'))['ariaLabel'](_0x43546d('0x238b'))[_0x43546d('0x1e6d')](_0x5c41bb)['ok']('OK')['cancel'](_0x43546d('0x284b'));_0x2042f5[_0x43546d('0x853')](_0x19105a)['then'](function(){_0x3cb00d(_0x4565c1);},function(){var _0x362cd2=_0x43546d;console[_0x362cd2('0x6fb')](_0x362cd2('0x284b'));});}function _0x3a2da8(_0x564191){var _0x18c6f6=_0x28b8c1,_0x921e77=_0x2042f5[_0x18c6f6('0xa33')]()[_0x18c6f6('0x4b4')](_0x18c6f6('0x655'))['htmlContent'](_0x18c6f6('0x622')+_0x4f3fb0[_0x18c6f6('0x21b0')][_0x18c6f6('0x577')]+'\x20selected'+_0x18c6f6('0x25e0'))[_0x18c6f6('0x7a7')](_0x18c6f6('0x85f'))[_0x18c6f6('0x1e6d')](_0x564191)['ok']('OK')[_0x18c6f6('0x3b5')](_0x18c6f6('0x284b'));_0x2042f5[_0x18c6f6('0x853')](_0x921e77)[_0x18c6f6('0x21ad')](function(){var _0x386ce7=_0x18c6f6;_0x4f3fb0[_0x386ce7('0x21b0')]['forEach'](function(_0x5d3a37){_0x3cb00d(_0x5d3a37);}),_0x4f3fb0[_0x386ce7('0x21b0')]=[];});}}const _0xffc1af=_0x1d493d;_0x1e9100[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q','$translate',_0x3877e3('0x1908'),_0x3877e3('0x1ca3'),_0x3877e3('0x1795'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),'crudPermissions'];function _0x1e9100(_0x407fb1,_0x203b65,_0x20bd3c,_0x1c73a7,_0x250f99,_0x2805c3,_0x27ab74,_0x5ca772,_0x614631,_0x4d0f2f,_0x4bb5f2,_0x125a0d,_0x2c5ac9,_0x40c366){var _0x5dfb5c=_0x3877e3,_0x566486=this;_0x566486[_0x5dfb5c('0x123f')]=_0x4bb5f2[_0x5dfb5c('0x15ed')](),_0x566486['errors']=[],_0x566486[_0x5dfb5c('0x21e')]=_0x2c5ac9,_0x566486['license']=_0x125a0d,_0x566486[_0x5dfb5c('0x5ed')]=_0x40c366,_0x566486['hasModulePermissions']={},_0x566486['passwordPattern']=_0x566486['setting']&&_0x566486[_0x5dfb5c('0x21e')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x566486[_0x5dfb5c('0x4b4')]=_0x5dfb5c('0x1987'),_0x566486[_0x5dfb5c('0x1795')]=angular[_0x5dfb5c('0xd75')](_0x614631),_0x566486['configurations']=_0x5ca772,_0x566486['newVtigerConfiguration']=![];!_0x566486['vtigerConfiguration']&&(_0x566486['vtigerConfiguration']={'channel':'voice','type':_0x5dfb5c('0x923')},_0x566486[_0x5dfb5c('0x4b4')]=_0x5dfb5c('0x211f'),_0x566486[_0x5dfb5c('0x125f')]=!![]);_0x566486[_0x5dfb5c('0xa0f')]=_0x2d2551,_0x566486[_0x5dfb5c('0x99a')]=_0x4d396b,_0x566486['deleteVtigerConfiguration']=_0x19dd94,_0x566486[_0x5dfb5c('0x279')]=_0x2a60e9,_0x566486[_0x5dfb5c('0x167')]=_0x3767b0;function _0x2d2551(){var _0x67af2a=_0x5dfb5c;_0x566486[_0x67af2a('0x1a69')]=[],_0x4d0f2f[_0x67af2a('0x45b')][_0x67af2a('0x1388')]({'id':_0x203b65[_0x67af2a('0x171b')]['id']},_0x566486[_0x67af2a('0x1795')])[_0x67af2a('0x1376')][_0x67af2a('0x21ad')](function(_0x32f8f2){var _0x2fa235=_0x67af2a;_0x566486[_0x2fa235('0x1ca3')]['unshift'](_0x32f8f2[_0x2fa235('0x3bc')]()),_0x27ab74[_0x2fa235('0xdb1')]({'title':_0x2fa235('0x1f6a'),'msg':_0x566486[_0x2fa235('0x1795')][_0x2fa235('0x19fe')]?_0x566486[_0x2fa235('0x1795')][_0x2fa235('0x19fe')]+_0x2fa235('0x1694'):''}),_0x3767b0(_0x32f8f2);})[_0x67af2a('0x1c1d')](function(_0x2bb9d2){var _0x2b8b9e=_0x67af2a;if(_0x2bb9d2[_0x2b8b9e('0x11c2')]&&_0x2bb9d2[_0x2b8b9e('0x11c2')]['errors']&&_0x2bb9d2[_0x2b8b9e('0x11c2')][_0x2b8b9e('0x1a69')][_0x2b8b9e('0x577')]){_0x566486[_0x2b8b9e('0x1a69')]=_0x2bb9d2[_0x2b8b9e('0x11c2')][_0x2b8b9e('0x1a69')]||[{'message':_0x2bb9d2[_0x2b8b9e('0x174f')](),'type':_0x2b8b9e('0x59a')}];for(var _0x1f2c1d=0x0;_0x1f2c1d<_0x2bb9d2['data']['errors']['length'];_0x1f2c1d+=0x1){_0x27ab74[_0x2b8b9e('0x2092')]({'title':_0x2bb9d2['data'][_0x2b8b9e('0x1a69')][_0x1f2c1d][_0x2b8b9e('0x7fa')],'msg':_0x2bb9d2[_0x2b8b9e('0x11c2')][_0x2b8b9e('0x1a69')][_0x1f2c1d][_0x2b8b9e('0x1224')]});}}else _0x27ab74[_0x2b8b9e('0x2092')]({'title':_0x2bb9d2[_0x2b8b9e('0x209')]?_0x2b8b9e('0x22d')+_0x2bb9d2[_0x2b8b9e('0x209')]+_0x2b8b9e('0xa99')+_0x2bb9d2[_0x2b8b9e('0x1808')]:_0x2b8b9e('0x59a'),'msg':_0x2bb9d2[_0x2b8b9e('0x11c2')]?JSON['stringify'](_0x2bb9d2[_0x2b8b9e('0x11c2')][_0x2b8b9e('0x1224')]):_0x2bb9d2[_0x2b8b9e('0x174f')]()});});}function _0x4d396b(){var _0xa58d95=_0x5dfb5c;_0x566486['errors']=[],_0x4d0f2f[_0xa58d95('0x1ce5')][_0xa58d95('0x5ef')]({'id':_0x566486['vtigerConfiguration']['id']},_0x566486[_0xa58d95('0x1795')])['$promise'][_0xa58d95('0x21ad')](function(_0x506cb6){var _0x3477d8=_0xa58d95,_0x29d417=_0x86640f()[_0x3477d8('0x1d2e')](_0x566486['configurations'],{'id':_0x506cb6['id']});_0x29d417&&_0x86640f()[_0x3477d8('0xd0e')](_0x29d417,_0x86640f()[_0x3477d8('0xc50')](_0x506cb6[_0x3477d8('0x3bc')](),_0x86640f()['keys'](_0x29d417))),_0x27ab74[_0x3477d8('0xdb1')]({'title':_0x3477d8('0x24fc'),'msg':_0x566486[_0x3477d8('0x1795')][_0x3477d8('0x19fe')]?_0x566486['vtigerConfiguration'][_0x3477d8('0x19fe')]+_0x3477d8('0x2249'):''}),_0x3767b0(_0x506cb6);})[_0xa58d95('0x1c1d')](function(_0x5b871b){var _0x530e09=_0xa58d95;if(_0x5b871b[_0x530e09('0x11c2')]&&_0x5b871b[_0x530e09('0x11c2')][_0x530e09('0x1a69')]&&_0x5b871b['data']['errors'][_0x530e09('0x577')]){_0x566486[_0x530e09('0x1a69')]=_0x5b871b[_0x530e09('0x11c2')][_0x530e09('0x1a69')]||[{'message':_0x5b871b[_0x530e09('0x174f')](),'type':_0x530e09('0xfc6')}];for(var _0x40363d=0x0;_0x40363d<_0x5b871b[_0x530e09('0x11c2')][_0x530e09('0x1a69')]['length'];_0x40363d++){_0x27ab74[_0x530e09('0x2092')]({'title':_0x5b871b[_0x530e09('0x11c2')][_0x530e09('0x1a69')][_0x40363d][_0x530e09('0x7fa')],'msg':_0x5b871b['data'][_0x530e09('0x1a69')][_0x40363d]['message']});}}else _0x27ab74[_0x530e09('0x2092')]({'title':_0x5b871b[_0x530e09('0x209')]?_0x530e09('0x22d')+_0x5b871b[_0x530e09('0x209')]+'\x20-\x20'+_0x5b871b[_0x530e09('0x1808')]:'api.intVtigerConfiguration.update','msg':_0x5b871b[_0x530e09('0x11c2')]?JSON['stringify'](_0x5b871b[_0x530e09('0x11c2')][_0x530e09('0x1224')]):_0x5b871b[_0x530e09('0x174f')]()});});}function _0x19dd94(_0x1379f7){var _0x54f17e=_0x5dfb5c;_0x566486[_0x54f17e('0x1a69')]=[];var _0x53c27d=_0x1c73a7[_0x54f17e('0xa33')]()[_0x54f17e('0x4b4')]('Are\x20you\x20sure?')['content']('The\x20vtigerConfiguration\x20will\x20be\x20deleted.')[_0x54f17e('0x7a7')](_0x54f17e('0x26f5'))['ok'](_0x54f17e('0xbfd'))[_0x54f17e('0x3b5')](_0x54f17e('0x1f40'))[_0x54f17e('0x1e6d')](_0x1379f7);_0x1c73a7[_0x54f17e('0x853')](_0x53c27d)[_0x54f17e('0x21ad')](function(){var _0x28b0e6=_0x54f17e;_0x4d0f2f[_0x28b0e6('0x1ce5')][_0x28b0e6('0x1164')]({'id':_0x566486[_0x28b0e6('0x1795')]['id']})[_0x28b0e6('0x1376')][_0x28b0e6('0x21ad')](function(){var _0x4a3575=_0x28b0e6;_0x86640f()[_0x4a3575('0x16a2')](_0x566486[_0x4a3575('0x1ca3')],{'id':_0x566486['vtigerConfiguration']['id']}),_0x27ab74[_0x4a3575('0xdb1')]({'title':_0x4a3575('0x9f9'),'msg':(_0x566486[_0x4a3575('0x1795')][_0x4a3575('0x19fe')]||_0x4a3575('0x1795'))+_0x4a3575('0xb4a')}),_0x3767b0(_0x566486[_0x4a3575('0x1795')]);})[_0x28b0e6('0x1c1d')](function(_0x5b06c2){var _0x4673ea=_0x28b0e6;if(_0x5b06c2[_0x4673ea('0x11c2')]&&_0x5b06c2[_0x4673ea('0x11c2')][_0x4673ea('0x1a69')]&&_0x5b06c2[_0x4673ea('0x11c2')][_0x4673ea('0x1a69')][_0x4673ea('0x577')]){_0x566486[_0x4673ea('0x1a69')]=_0x5b06c2[_0x4673ea('0x11c2')][_0x4673ea('0x1a69')]||[{'message':_0x5b06c2[_0x4673ea('0x174f')](),'type':_0x4673ea('0xc59')}];for(var _0x4d8bb2=0x0;_0x4d8bb2<_0x5b06c2[_0x4673ea('0x11c2')]['errors'][_0x4673ea('0x577')];_0x4d8bb2++){_0x27ab74['error']({'title':_0x5b06c2[_0x4673ea('0x11c2')][_0x4673ea('0x1a69')][_0x4d8bb2]['type'],'msg':_0x5b06c2[_0x4673ea('0x11c2')][_0x4673ea('0x1a69')][_0x4d8bb2][_0x4673ea('0x1224')]});}}else _0x27ab74['error']({'title':_0x5b06c2[_0x4673ea('0x209')]?_0x4673ea('0x22d')+_0x5b06c2[_0x4673ea('0x209')]+'\x20-\x20'+_0x5b06c2[_0x4673ea('0x1808')]:_0x4673ea('0xc59'),'msg':_0x5b06c2[_0x4673ea('0x11c2')]?JSON['stringify'](_0x5b06c2[_0x4673ea('0x11c2')][_0x4673ea('0x1224')]):_0x5b06c2[_0x4673ea('0x1224')]||_0x5b06c2[_0x4673ea('0x174f')]()});});},function(){});}function _0x2a60e9(_0x404b49){return _0x404b49===null?undefined:new Date(_0x404b49);}function _0x3767b0(_0xe1fd73){_0x1c73a7['hide'](_0xe1fd73);}}const _0x516add=_0x1e9100;_0x4af8b2[_0x3877e3('0x1a81')]=['$scope','$state',_0x3877e3('0x14c7'),_0x3877e3('0x1850'),_0x3877e3('0x1908'),_0x3877e3('0xb4f'),'items','item',_0x3877e3('0x1fd3'),'type',_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x4af8b2(_0xdc41c3,_0x2b3900,_0x1cd32f,_0x8881e3,_0x3b7682,_0x58c277,_0x28a00c,_0x3a9d84,_0x1c3e01,_0x1c1a25,_0x20129e,_0x240ba0,_0x8f5664){var _0x1cd7f=_0x3877e3,_0x441a27=this;_0x441a27[_0x1cd7f('0x123f')]=_0x240ba0['getCurrentUser'](),_0x441a27[_0x1cd7f('0x1a69')]=[],_0x441a27[_0x1cd7f('0x4b4')]='INTEGRATIONS.EDIT_'+_0x86640f()[_0x1cd7f('0x7c1')](_0x1c1a25),_0x441a27['item']=angular[_0x1cd7f('0xd75')](_0x3a9d84),_0x441a27[_0x1cd7f('0x1b9a')]=_0x28a00c,_0x441a27['type']=_0x1c1a25,_0x441a27[_0x1cd7f('0x5ed')]=_0x8f5664,_0x441a27[_0x1cd7f('0xf8')]=![];!_0x441a27[_0x1cd7f('0x19ca')]&&(_0x441a27[_0x1cd7f('0x19ca')]={'type':_0x1cd7f('0x2638')},_0x441a27[_0x1cd7f('0x19ca')][_0x86640f()[_0x1cd7f('0x1b7e')](_0x1c1a25)+'Id']=_0x58c277['id'],_0x441a27[_0x1cd7f('0x4b4')]=_0x1cd7f('0x1d99')+_0x86640f()[_0x1cd7f('0x7c1')](_0x1c1a25),_0x441a27[_0x1cd7f('0xf8')]=!![]);_0x441a27['addNewItem']=_0x2995df,_0x441a27[_0x1cd7f('0x1c97')]=_0x5eccbd,_0x441a27[_0x1cd7f('0x1c8')]=_0x961bc4,_0x441a27[_0x1cd7f('0x23fe')]=_0x27ee44,_0x441a27[_0x1cd7f('0x167')]=_0x404746,_0x20129e[_0x1cd7f('0x25bb')]['get']({'nolimit':!![]})['$promise']['then'](function(_0x580bad){var _0x42c0bd=_0x1cd7f;return _0x441a27['variables']=_0x580bad[_0x42c0bd('0x1b33')]?_0x580bad['rows']:[],_0x20129e[_0x42c0bd('0x9b6')][_0x42c0bd('0x1219')]()['$promise'];})[_0x1cd7f('0x21ad')](function(_0x503cb2){var _0x20bdf3=_0x1cd7f;return _0x441a27[_0x20bdf3('0x22eb')]=_0x86640f()['difference'](_0x86640f()['keys'](_0x503cb2),[_0x20bdf3('0x1376'),_0x20bdf3('0x9f8'),_0x20bdf3('0x23ae'),'updatedAt','sourceid']),_0x441a27['voiceAgentReportColumns'][_0x20bdf3('0x206c')](_0x20bdf3('0x250a')),_0x20129e['voiceDialReport']['describe']()[_0x20bdf3('0x1376')];})[_0x1cd7f('0x21ad')](function(_0x1cf747){var _0x53631a=_0x1cd7f;_0x441a27[_0x53631a('0x1491')]=_0x86640f()[_0x53631a('0x5a8')](_0x86640f()['keys'](_0x1cf747),['$promise',_0x53631a('0x9f8'),_0x53631a('0x23ae'),_0x53631a('0x15af'),_0x53631a('0x1bdd')]),_0x441a27['voiceDialReportColumns'][_0x53631a('0x206c')](_0x53631a('0x250a'));})[_0x1cd7f('0x1c1d')](function(_0x413328){var _0x1228f1=_0x1cd7f;_0x3b7682[_0x1228f1('0x2092')]({'title':_0x413328[_0x1228f1('0x209')]?'API:'+_0x413328[_0x1228f1('0x209')]+'\x20-\x20'+_0x413328[_0x1228f1('0x1808')]:_0x1228f1('0x8f3'),'msg':_0x413328[_0x1228f1('0x11c2')]?JSON['stringify'](_0x413328[_0x1228f1('0x11c2')]):_0x413328[_0x1228f1('0x174f')]()});}),_0x20129e[_0x1cd7f('0x45b')][_0x1cd7f('0x929')]({'id':_0x1c3e01['id'],'ticketType':_0x58c277['ticketType']?_0x58c277[_0x1cd7f('0x257e')]:undefined})[_0x1cd7f('0x1376')][_0x1cd7f('0x21ad')](function(_0x36483e){var _0x54fffa=_0x1cd7f;_0x441a27[_0x54fffa('0x2097')]=!![],_0x441a27[_0x54fffa('0x181e')]=_0x36483e[_0x54fffa('0x1b33')]?_0x36483e[_0x54fffa('0x1b33')]:[],_0x441a27[_0x54fffa('0x19ca')][_0x54fffa('0x1830')]&&(_0x441a27['customField']=_0x86640f()['find'](_0x441a27[_0x54fffa('0x181e')],{'id':_0x441a27[_0x54fffa('0x19ca')][_0x54fffa('0x1830')]}));})[_0x1cd7f('0x1c1d')](function(_0x4888f2){var _0x590ab2=_0x1cd7f;_0x441a27[_0x590ab2('0x2097')]=![],console['error'](_0x4888f2);});function _0x2995df(){var _0x233a0a=_0x1cd7f;_0x441a27['errors']=[],_0x441a27[_0x233a0a('0x1fa7')]&&(_0x441a27[_0x233a0a('0x19ca')][_0x233a0a('0x1830')]=_0x441a27[_0x233a0a('0x1fa7')]['id'],_0x441a27[_0x233a0a('0x19ca')]['nameField']=_0x441a27[_0x233a0a('0x1fa7')][_0x233a0a('0x19fe')],_0x441a27[_0x233a0a('0x19ca')][_0x233a0a('0x1fa7')]=_0x441a27['customField'][_0x233a0a('0xf50')]),_0x20129e['intVtigerField'][_0x233a0a('0x186f')](_0x441a27['item'])[_0x233a0a('0x1376')][_0x233a0a('0x21ad')](function(_0x3ded81){var _0x2e3338=_0x233a0a;_0x441a27[_0x2e3338('0x1b9a')]['unshift'](_0x3ded81),_0x3b7682['success']({'title':_0x86640f()[_0x2e3338('0x1b7e')](_0x1c1a25)+_0x2e3338('0x1de2'),'msg':_0x86640f()[_0x2e3338('0x1b7e')](_0x1c1a25)+_0x2e3338('0x1694')}),_0x404746();})[_0x233a0a('0x1c1d')](function(_0x16ebbf){var _0x57d529=_0x233a0a;console[_0x57d529('0x2092')](_0x16ebbf),_0x441a27[_0x57d529('0x1a69')]=_0x16ebbf[_0x57d529('0x11c2')][_0x57d529('0x1a69')]||[{'message':_0x16ebbf[_0x57d529('0x174f')](),'type':_0x57d529('0x1a23')}];});}function _0x5eccbd(){var _0x3ea6f4=_0x1cd7f;_0x441a27['errors']=[],_0x441a27[_0x3ea6f4('0x1fa7')]&&(_0x441a27[_0x3ea6f4('0x19ca')][_0x3ea6f4('0x1830')]=_0x441a27[_0x3ea6f4('0x1fa7')]['id'],_0x441a27[_0x3ea6f4('0x19ca')][_0x3ea6f4('0xb45')]=_0x441a27['customField']['name'],_0x441a27[_0x3ea6f4('0x19ca')][_0x3ea6f4('0x1fa7')]=_0x441a27['customField']['custom']),_0x20129e[_0x3ea6f4('0x2e1')]['update']({'id':_0x441a27[_0x3ea6f4('0x19ca')]['id']},_0x441a27['item'])[_0x3ea6f4('0x1376')][_0x3ea6f4('0x21ad')](function(_0x361e48){var _0x133ae7=_0x3ea6f4,_0x3c681c=_0x86640f()[_0x133ae7('0x1d2e')](_0x441a27[_0x133ae7('0x1b9a')],{'id':_0x361e48['id']});_0x3c681c&&_0x86640f()[_0x133ae7('0xd0e')](_0x3c681c,_0x361e48),_0x3b7682['success']({'title':_0x86640f()[_0x133ae7('0x1b7e')](_0x1c1a25)+_0x133ae7('0x2a3'),'msg':_0x86640f()[_0x133ae7('0x1b7e')](_0x1c1a25)+_0x133ae7('0x2249')}),_0x404746();})[_0x3ea6f4('0x1c1d')](function(_0x356876){var _0x26247e=_0x3ea6f4;console[_0x26247e('0x2092')](_0x356876),_0x441a27[_0x26247e('0x1a69')]=_0x356876[_0x26247e('0x11c2')][_0x26247e('0x1a69')]||[{'message':_0x356876[_0x26247e('0x174f')](),'type':_0x26247e('0x1488')}];});}function _0x961bc4(_0x1d7bf5){var _0x4f5a10=_0x1cd7f;_0x441a27[_0x4f5a10('0x1a69')]=[];var _0x1ad36e=_0x8881e3['confirm']()[_0x4f5a10('0x4b4')]('Are\x20you\x20sure?')[_0x4f5a10('0x13fb')](_0x4f5a10('0x15f2')+_0x1c1a25+_0x4f5a10('0x25e0'))['ariaLabel'](_0x4f5a10('0x2e4')+_0x86640f()[_0x4f5a10('0x1b7e')](_0x1c1a25))['ok'](_0x4f5a10('0xbfd'))[_0x4f5a10('0x3b5')](_0x4f5a10('0x1f40'))[_0x4f5a10('0x1e6d')](_0x1d7bf5);_0x8881e3['show'](_0x1ad36e)[_0x4f5a10('0x21ad')](function(){var _0x1cb32d=_0x4f5a10;_0x20129e[_0x1cb32d('0x2e1')]['delete']({'id':_0x441a27[_0x1cb32d('0x19ca')]['id']})[_0x1cb32d('0x1376')][_0x1cb32d('0x21ad')](function(){var _0x4d5d5f=_0x1cb32d;_0x86640f()['remove'](_0x441a27['items'],{'id':_0x441a27[_0x4d5d5f('0x19ca')]['id']}),_0x3b7682[_0x4d5d5f('0xdb1')]({'title':_0x86640f()[_0x4d5d5f('0x1b7e')](_0x1c1a25)+_0x4d5d5f('0x11b6'),'msg':_0x86640f()[_0x4d5d5f('0x1b7e')](_0x1c1a25)+'\x20has\x20been\x20deleted!'}),_0x404746();})[_0x1cb32d('0x1c1d')](function(_0x4625a8){var _0x231bf5=_0x1cb32d;console[_0x231bf5('0x2092')](_0x4625a8),_0x441a27['errors']=_0x4625a8[_0x231bf5('0x11c2')][_0x231bf5('0x1a69')]||[{'message':_0x4625a8[_0x231bf5('0x174f')](),'type':_0x231bf5('0x2175')}];});},function(){});}function _0x27ee44(){var _0x3c93cb=_0x1cd7f;return _0x441a27[_0x3c93cb('0x19ca')]['variableName']!==undefined?_0x441a27[_0x3c93cb('0x19ca')][_0x3c93cb('0x1651')]:_0x3c93cb('0x17f7');}function _0x404746(){var _0x38ef70=_0x1cd7f;_0x8881e3[_0x38ef70('0x1c24')]();}}const _0x591ce3=_0x4af8b2;_0x34fd18[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),'$translate',_0x3877e3('0x2ff'),'setting',_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),'vtigerAccount','userProfileSection'];function _0x34fd18(_0xe1d8a7,_0x9c5f5b,_0xa261a1,_0x49ec15,_0xdb471b,_0x2a6f98,_0x5d03af,_0x5db406,_0x2ccd92,_0x51fef2,_0x50168d,_0x50dc18){var _0x32533d=_0x3877e3,_0x30448c=this;_0x30448c[_0x32533d('0x123f')]=_0x51fef2[_0x32533d('0x15ed')](),_0x30448c[_0x32533d('0x2ff')]=_0x2a6f98,_0x30448c[_0x32533d('0x21e')]=_0x5d03af,_0x30448c[_0x32533d('0x1432')]=_0x30448c[_0x32533d('0x21e')][_0x32533d('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x30448c['location']=_0x9c5f5b['protocol']()+_0x32533d('0x22a9')+_0x9c5f5b[_0x32533d('0x1c01')](),_0x30448c[_0x32533d('0x255b')]=_0x50168d||_0xe1d8a7[_0x32533d('0x171b')][_0x32533d('0x255b')]||{},_0x30448c['userProfileSection']=_0x50dc18&&_0x50dc18[_0x32533d('0x205f')]==0x1?_0x50dc18[_0x32533d('0x1b33')][0x0]:null,_0x30448c[_0x32533d('0x5ed')]=_0x51fef2[_0x32533d('0x1778')](_0x30448c[_0x32533d('0xab4')]?_0x30448c[_0x32533d('0xab4')][_0x32533d('0x5ed')]:null),_0x30448c[_0x32533d('0x126a')]={},_0x30448c['selectedTab']=_0xe1d8a7['params'][_0x32533d('0x12e1')]||0x0,_0x30448c['alert']=_0x2ccd92[_0x32533d('0x231c')],_0x30448c[_0x32533d('0x5bb')]=_0x4d74da,_0x30448c['saveVtigerAccount']=_0x1e2aef;function _0x4d74da(){var _0x1d052e=_0x32533d;_0xe1d8a7['go'](_0x1d052e('0xb9f'),{},{'reload':_0x1d052e('0xb9f')});}function _0x1e2aef(){var _0x4034d9=_0x32533d;_0x5db406['intVtigerAccount']['update']({'id':_0x30448c[_0x4034d9('0x255b')]['id']},_0x30448c[_0x4034d9('0x255b')])[_0x4034d9('0x1376')][_0x4034d9('0x21ad')](function(){var _0x4f3e5e=_0x4034d9;_0x2ccd92[_0x4f3e5e('0xdb1')]({'title':_0x4f3e5e('0x1b56'),'msg':_0x30448c[_0x4f3e5e('0x255b')][_0x4f3e5e('0x19fe')]?_0x30448c[_0x4f3e5e('0x255b')][_0x4f3e5e('0x19fe')]+_0x4f3e5e('0xa8d'):''});})[_0x4034d9('0x1c1d')](function(_0x5f2406){var _0x2e38f6=_0x4034d9;_0x2ccd92[_0x2e38f6('0x2092')]({'title':_0x5f2406[_0x2e38f6('0x209')]?'API:'+_0x5f2406['status']+_0x2e38f6('0xa99')+_0x5f2406[_0x2e38f6('0x1808')]:_0x2e38f6('0x2087'),'msg':_0x5f2406[_0x2e38f6('0x11c2')]?JSON[_0x2e38f6('0x25e')](_0x5f2406[_0x2e38f6('0x11c2')]):_0x5f2406['toString']()});});}}const _0x348cba=_0x34fd18,_0x11a3ae=_0x398308['p']+_0x3877e3('0x5a');_0x43b04d[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$window',_0x3877e3('0xa9f'),_0x3877e3('0x2828'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),'$translate',_0x3877e3('0x1813'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),'msUtils',_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x43b04d(_0x4faa84,_0x4ab301,_0x399962,_0x9bdc23,_0x36e499,_0x3ff66c,_0x25639b,_0x1cf310,_0x3d2549,_0x11753b,_0x1e41df,_0x4cb1e6,_0x28a5d6,_0x59be89,_0x2f39e9,_0x47d597,_0x4f0bba){var _0x3d613b=_0x3877e3,_0x4b8dce=this;_0x4b8dce[_0x3d613b('0x2ff')]=_0x47d597,_0x4b8dce[_0x3d613b('0x21e')]=_0x4f0bba,_0x4b8dce[_0x3d613b('0x123f')]=_0x2f39e9['getCurrentUser'](),_0x4b8dce[_0x3d613b('0x1813')]=_0x3d2549||{'count':0x0,'rows':[]},_0x4b8dce[_0x3d613b('0x758')]=_0x11753b,_0x4b8dce[_0x3d613b('0xab4')]=_0x1e41df&&_0x1e41df[_0x3d613b('0x205f')]==0x1?_0x1e41df[_0x3d613b('0x1b33')][0x0]:null,_0x4b8dce[_0x3d613b('0x5ed')]=_0x2f39e9[_0x3d613b('0x1778')](_0x4b8dce[_0x3d613b('0xab4')]?_0x4b8dce[_0x3d613b('0xab4')][_0x3d613b('0x5ed')]:null),_0x4b8dce[_0x3d613b('0x1897')]=_0x3d613b('0x1813'),_0x4b8dce[_0x3d613b('0x11dc')]='',_0x4b8dce[_0x3d613b('0x18cf')]=null,_0x4b8dce['selectedVtigerAccounts']=[],_0x4b8dce[_0x3d613b('0x77')]={'fields':'createdAt,updatedAt,id,name,description,username,accessKey,remoteUri,serverUrl','limit':0xa,'page':0x1},_0x4b8dce['editstate']=_0x4a35a7,_0x4b8dce[_0x3d613b('0x155c')]=_0x376d30,_0x4b8dce[_0x3d613b('0x2593')]=_0xf226c8,_0x4b8dce[_0x3d613b('0xdb1')]=_0x49dd41,_0x4b8dce[_0x3d613b('0x7f1')]=_0x46b5ae,_0x4b8dce[_0x3d613b('0x1de4')]=_0x21709d,_0x4b8dce[_0x3d613b('0x191e')]=_0x1a3030,_0x4b8dce['exportSelectedVtigerAccounts']=_0x178088,_0x4b8dce['deleteSelectedVtigerAccounts']=_0x5117b4,_0x4b8dce[_0x3d613b('0x25ef')]=_0x1fa407,_0x4b8dce[_0x3d613b('0x1d22')]=_0xaa1c88;function _0x4a35a7(_0x1db349){var _0x244efd=_0x3d613b;_0x399962['go']('app.integrations.vtigerAccounts.edit',{'id':_0x1db349['id'],'vtigerAccount':_0x1db349,'crudPermissions':_0x4b8dce[_0x244efd('0x5ed')]});}function _0x376d30(_0x1d6c64){var _0x260186=_0x3d613b;return _0x4cb1e6[_0x260186('0x45b')][_0x260186('0x929')]({'id':_0x1d6c64['id'],'test':!![]})[_0x260186('0x1376')]['then'](function(){var _0x133482=_0x260186;_0x59be89[_0x133482('0xdb1')]({'title':_0x133482('0x23b1'),'msg':_0x133482('0x1c80')});})[_0x260186('0x1c1d')](function(_0x12056e){var _0x454f8d=_0x260186;_0x59be89[_0x454f8d('0x2092')]({'title':'VtigerAccount\x20properly\x20tested','msg':_0x12056e[_0x454f8d('0x11c2')]?_0x12056e[_0x454f8d('0x11c2')][_0x454f8d('0x1224')]?_0x12056e[_0x454f8d('0x11c2')][_0x454f8d('0x1224')]:JSON['stringify'](_0x12056e[_0x454f8d('0x11c2')]):_0x12056e[_0x454f8d('0x174f')]()});});}function _0xf226c8(_0x50d5eb,_0x1b3474){var _0x232ab3=_0x3d613b,_0x1cc7f9=_0x36e499['confirm']()[_0x232ab3('0x4b4')](_0x232ab3('0x25b6')+_0x86640f()[_0x232ab3('0x2159')](_0x232ab3('0x255b'))+'?')['htmlContent'](_0x232ab3('0x622')+(_0x50d5eb[_0x232ab3('0x19fe')]||_0x232ab3('0x255b'))+_0x232ab3('0x2135')+_0x232ab3('0x25e0'))['ariaLabel'](_0x232ab3('0x146'))[_0x232ab3('0x1e6d')](_0x1b3474)['ok']('OK')[_0x232ab3('0x3b5')]('CANCEL');_0x36e499['show'](_0x1cc7f9)['then'](function(){_0x1a3030(_0x50d5eb);},function(){var _0x4b6b31=_0x232ab3;console[_0x4b6b31('0x6fb')](_0x4b6b31('0x284b'));});}var _0x323b61=!![],_0x54fe00=0x1;_0x4faa84['$watch'](_0x3d613b('0x1948'),function(_0x4bb718,_0x164668){var _0x21671b=_0x3d613b;_0x323b61?_0x25639b(function(){_0x323b61=![];}):(!_0x164668&&(_0x54fe00=_0x4b8dce[_0x21671b('0x77')]['page']),_0x4bb718!==_0x164668&&(_0x4b8dce[_0x21671b('0x77')][_0x21671b('0x2376')]=0x1),!_0x4bb718&&(_0x4b8dce[_0x21671b('0x77')][_0x21671b('0x2376')]=_0x54fe00),_0x4b8dce[_0x21671b('0x7f1')]());});function _0x49dd41(_0x5b9368){var _0x418053=_0x3d613b;_0x4b8dce[_0x418053('0x1813')]=_0x5b9368||{'count':0x0,'rows':[]};}function _0x46b5ae(){var _0x2e422e=_0x3d613b;_0x4b8dce['query'][_0x2e422e('0x15a5')]=(_0x4b8dce['query'][_0x2e422e('0x2376')]-0x1)*_0x4b8dce['query'][_0x2e422e('0x1f4a')],_0x2f39e9[_0x2e422e('0x21de')](_0x2e422e('0x1bd8'))?_0x4b8dce[_0x2e422e('0x71b')]=_0x4cb1e6[_0x2e422e('0x45b')]['get'](_0x4b8dce[_0x2e422e('0x77')],_0x49dd41)[_0x2e422e('0x1376')]:(_0x4b8dce['query']['id']=_0x4b8dce['userProfile']['id'],_0x4b8dce[_0x2e422e('0x77')][_0x2e422e('0x26ad')]=_0x2e422e('0xb17'),_0x4b8dce[_0x2e422e('0x71b')]=_0x4cb1e6['userProfile'][_0x2e422e('0x321')](_0x4b8dce[_0x2e422e('0x77')],_0x49dd41)[_0x2e422e('0x1376')]);}function _0x21709d(_0x1813a2,_0x585311){var _0x36039f=_0x3d613b;_0x36e499[_0x36039f('0x853')]({'controller':_0x36039f('0x2700'),'controllerAs':'vm','templateUrl':_0x11a3ae,'parent':angular[_0x36039f('0x1676')](_0x3ff66c[_0x36039f('0x2452')]),'targetEvent':_0x1813a2,'clickOutsideToClose':!![],'locals':{'vtigerAccount':_0x585311,'vtigerAccounts':_0x4b8dce[_0x36039f('0x1813')]['rows'],'license':_0x4b8dce['license'],'setting':_0x4b8dce['setting'],'crudPermissions':_0x4b8dce['crudPermissions']}});}function _0x1a3030(_0x2863b9){var _0x8355ea=_0x3d613b;_0x4cb1e6[_0x8355ea('0x45b')]['delete']({'id':_0x2863b9['id']})[_0x8355ea('0x1376')]['then'](function(){var _0x20766b=_0x8355ea;_0x86640f()[_0x20766b('0x16a2')](_0x4b8dce[_0x20766b('0x1813')]['rows'],{'id':_0x2863b9['id']}),_0x4b8dce[_0x20766b('0x1813')][_0x20766b('0x205f')]-=0x1,!_0x4b8dce['vtigerAccounts'][_0x20766b('0x1b33')][_0x20766b('0x577')]&&_0x4b8dce[_0x20766b('0x7f1')](),_0x59be89[_0x20766b('0xdb1')]({'title':_0x86640f()[_0x20766b('0x2159')]('VtigerAccount')+_0x20766b('0xe64'),'msg':_0x2863b9['name']?_0x2863b9['name']+_0x20766b('0xb4a'):''});})['catch'](function(_0x5ef6ee){var _0x27f088=_0x8355ea;if(_0x5ef6ee[_0x27f088('0x11c2')]&&_0x5ef6ee['data'][_0x27f088('0x1a69')]&&_0x5ef6ee[_0x27f088('0x11c2')][_0x27f088('0x1a69')][_0x27f088('0x577')]){_0x4b8dce['errors']=_0x5ef6ee[_0x27f088('0x11c2')][_0x27f088('0x1a69')]||[{'message':_0x5ef6ee[_0x27f088('0x174f')](),'type':_0x27f088('0x4c0')}];for(var _0x2cb591=0x0;_0x2cb591<_0x5ef6ee[_0x27f088('0x11c2')]['errors'][_0x27f088('0x577')];_0x2cb591++){_0x59be89[_0x27f088('0x2092')]({'title':_0x5ef6ee[_0x27f088('0x11c2')][_0x27f088('0x1a69')][_0x2cb591][_0x27f088('0x7fa')],'msg':_0x5ef6ee['data'][_0x27f088('0x1a69')][_0x2cb591]['message']});}}else _0x59be89[_0x27f088('0x2092')]({'title':_0x5ef6ee[_0x27f088('0x209')]?_0x27f088('0x22d')+_0x5ef6ee[_0x27f088('0x209')]+_0x27f088('0xa99')+_0x5ef6ee[_0x27f088('0x1808')]:'SYSTEM:DELETEintVtigerAccount','msg':_0x5ef6ee['data']?JSON[_0x27f088('0x25e')](_0x5ef6ee[_0x27f088('0x11c2')][_0x27f088('0x1224')]):_0x5ef6ee[_0x27f088('0x1224')]||_0x5ef6ee[_0x27f088('0x174f')]()});});}function _0x178088(){var _0xe9ac14=_0x3d613b,_0x25f304=angular['copy'](_0x4b8dce[_0xe9ac14('0xa9d')]);return _0x4b8dce[_0xe9ac14('0xa9d')]=[],_0x25f304;}function _0x5117b4(_0xe4befb){var _0x4d7abf=_0x3d613b,_0x616baf=_0x36e499[_0x4d7abf('0xa33')]()[_0x4d7abf('0x4b4')](_0x4d7abf('0x1ae5'))[_0x4d7abf('0x276b')](_0x4d7abf('0x622')+_0x4b8dce[_0x4d7abf('0xa9d')][_0x4d7abf('0x577')]+_0x4d7abf('0xd74')+_0x4d7abf('0x25e0'))['ariaLabel'](_0x4d7abf('0x12b8'))[_0x4d7abf('0x1e6d')](_0xe4befb)['ok']('OK')[_0x4d7abf('0x3b5')](_0x4d7abf('0x284b'));_0x36e499[_0x4d7abf('0x853')](_0x616baf)[_0x4d7abf('0x21ad')](function(){var _0x56d8ce=_0x4d7abf;_0x4b8dce[_0x56d8ce('0xa9d')][_0x56d8ce('0x1a52')](function(_0x1df1e4){_0x1a3030(_0x1df1e4);}),_0x4b8dce[_0x56d8ce('0xa9d')]=[];});}function _0x1fa407(){_0x4b8dce['selectedVtigerAccounts']=[];}function _0xaa1c88(){var _0x4a7b01=_0x3d613b;_0x4b8dce[_0x4a7b01('0xa9d')]=_0x4b8dce[_0x4a7b01('0x1813')][_0x4a7b01('0x1b33')];}}const _0x3eab50=_0x43b04d;_0x3d735d['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$location',_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x162b'),_0x3877e3('0x84e'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'license',_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x3d735d(_0x20663e,_0x5e0f00,_0x401b5b,_0x96daef,_0x3d8fd5,_0x104c54,_0x538faa,_0x3bd997,_0x40b6f0,_0x19f7e9,_0x28386d,_0x3f1df3,_0x4edf5e,_0x3bcf69){var _0xd64f81=_0x3877e3,_0x50fe35=this;_0x50fe35[_0xd64f81('0x123f')]=_0x28386d['getCurrentUser'](),_0x50fe35[_0xd64f81('0x1a69')]=[],_0x50fe35[_0xd64f81('0x21e')]=_0x4edf5e,_0x50fe35[_0xd64f81('0x2ff')]=_0x3f1df3,_0x50fe35[_0xd64f81('0x5ed')]=_0x3bcf69,_0x50fe35['hasModulePermissions']={},_0x50fe35[_0xd64f81('0x1432')]=_0x50fe35[_0xd64f81('0x21e')]&&_0x50fe35[_0xd64f81('0x21e')][_0xd64f81('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x50fe35[_0xd64f81('0x4b4')]=_0xd64f81('0x456'),_0x50fe35[_0xd64f81('0x84e')]=angular[_0xd64f81('0xd75')](_0x40b6f0),_0x50fe35[_0xd64f81('0x162b')]=_0x3bd997,_0x50fe35[_0xd64f81('0x2656')]=![];!_0x50fe35[_0xd64f81('0x84e')]&&(_0x50fe35[_0xd64f81('0x84e')]={'type':_0xd64f81('0x1adf'),'authType':'password','serverUrl':_0x401b5b['protocol']()+'://'+_0x401b5b['host']()+(_0x401b5b[_0xd64f81('0x24fe')]()?':'+_0x401b5b['port']():'')},_0x50fe35[_0xd64f81('0x4b4')]=_0xd64f81('0xe28'),_0x50fe35[_0xd64f81('0x2656')]=!![]);_0x50fe35[_0xd64f81('0x16bf')]=_0x43d5ab,_0x50fe35[_0xd64f81('0x199c')]=_0x3e0eb6,_0x50fe35[_0xd64f81('0x11e2')]=_0x23bf1f,_0x50fe35['getDateFromString']=_0x376a81,_0x50fe35[_0xd64f81('0x167')]=_0xc4576f;function _0x43d5ab(){var _0x1522b6=_0xd64f81;_0x50fe35[_0x1522b6('0x1a69')]=[],_0x19f7e9[_0x1522b6('0x2352')][_0x1522b6('0x186f')](_0x50fe35[_0x1522b6('0x84e')])[_0x1522b6('0x1376')][_0x1522b6('0x21ad')](function(_0x5f2afb){var _0x1f3d54=_0x1522b6;_0x50fe35[_0x1f3d54('0x162b')][_0x1f3d54('0xd0c')](_0x5f2afb[_0x1f3d54('0x3bc')]()),_0x538faa[_0x1f3d54('0xdb1')]({'title':_0x1f3d54('0x17c'),'msg':_0x50fe35['zendeskAccount'][_0x1f3d54('0x19fe')]?_0x50fe35[_0x1f3d54('0x84e')][_0x1f3d54('0x19fe')]+_0x1f3d54('0x1694'):''}),_0xc4576f(_0x5f2afb);})[_0x1522b6('0x1c1d')](function(_0x2a2a6d){var _0x2f4233=_0x1522b6;if(_0x2a2a6d[_0x2f4233('0x11c2')]&&_0x2a2a6d['data'][_0x2f4233('0x1a69')]&&_0x2a2a6d[_0x2f4233('0x11c2')][_0x2f4233('0x1a69')]['length']){_0x50fe35[_0x2f4233('0x1a69')]=_0x2a2a6d[_0x2f4233('0x11c2')]['errors']||[{'message':_0x2a2a6d[_0x2f4233('0x174f')](),'type':_0x2f4233('0x1b76')}];for(var _0x4c2ec3=0x0;_0x4c2ec3<_0x2a2a6d[_0x2f4233('0x11c2')][_0x2f4233('0x1a69')][_0x2f4233('0x577')];_0x4c2ec3+=0x1){_0x538faa[_0x2f4233('0x2092')]({'title':_0x2a2a6d[_0x2f4233('0x11c2')][_0x2f4233('0x1a69')][_0x4c2ec3][_0x2f4233('0x7fa')],'msg':_0x2a2a6d[_0x2f4233('0x11c2')][_0x2f4233('0x1a69')][_0x4c2ec3][_0x2f4233('0x1224')]});}}else _0x538faa['error']({'title':_0x2a2a6d[_0x2f4233('0x209')]?_0x2f4233('0x22d')+_0x2a2a6d[_0x2f4233('0x209')]+'\x20-\x20'+_0x2a2a6d[_0x2f4233('0x1808')]:_0x2f4233('0x1b76'),'msg':_0x2a2a6d[_0x2f4233('0x11c2')]?JSON['stringify'](_0x2a2a6d[_0x2f4233('0x11c2')]['message']):_0x2a2a6d[_0x2f4233('0x174f')]()});});}function _0x3e0eb6(){var _0x5ded29=_0xd64f81;_0x50fe35[_0x5ded29('0x1a69')]=[],_0x19f7e9[_0x5ded29('0x2352')][_0x5ded29('0x5ef')]({'id':_0x50fe35['zendeskAccount']['id']},_0x50fe35[_0x5ded29('0x84e')])[_0x5ded29('0x1376')]['then'](function(_0xf8aa06){var _0x55e5ec=_0x5ded29,_0x4529c3=_0x86640f()[_0x55e5ec('0x1d2e')](_0x50fe35['zendeskAccounts'],{'id':_0xf8aa06['id']});_0x4529c3&&_0x86640f()[_0x55e5ec('0xd0e')](_0x4529c3,_0x86640f()[_0x55e5ec('0xc50')](_0xf8aa06[_0x55e5ec('0x3bc')](),_0x86640f()[_0x55e5ec('0x223b')](_0x4529c3))),_0x538faa['success']({'title':_0x55e5ec('0x94d'),'msg':_0x50fe35[_0x55e5ec('0x84e')][_0x55e5ec('0x19fe')]?_0x50fe35[_0x55e5ec('0x84e')][_0x55e5ec('0x19fe')]+_0x55e5ec('0x2249'):''}),_0xc4576f(_0xf8aa06);})[_0x5ded29('0x1c1d')](function(_0x47153e){var _0x17f415=_0x5ded29;if(_0x47153e[_0x17f415('0x11c2')]&&_0x47153e[_0x17f415('0x11c2')][_0x17f415('0x1a69')]&&_0x47153e[_0x17f415('0x11c2')][_0x17f415('0x1a69')][_0x17f415('0x577')]){_0x50fe35[_0x17f415('0x1a69')]=_0x47153e[_0x17f415('0x11c2')][_0x17f415('0x1a69')]||[{'message':_0x47153e[_0x17f415('0x174f')](),'type':'api.intZendeskAccount.update'}];for(var _0x375f9b=0x0;_0x375f9b<_0x47153e[_0x17f415('0x11c2')]['errors'][_0x17f415('0x577')];_0x375f9b++){_0x538faa['error']({'title':_0x47153e['data'][_0x17f415('0x1a69')][_0x375f9b][_0x17f415('0x7fa')],'msg':_0x47153e[_0x17f415('0x11c2')][_0x17f415('0x1a69')][_0x375f9b][_0x17f415('0x1224')]});}}else _0x538faa[_0x17f415('0x2092')]({'title':_0x47153e['status']?_0x17f415('0x22d')+_0x47153e[_0x17f415('0x209')]+'\x20-\x20'+_0x47153e[_0x17f415('0x1808')]:_0x17f415('0x2038'),'msg':_0x47153e[_0x17f415('0x11c2')]?JSON[_0x17f415('0x25e')](_0x47153e['data'][_0x17f415('0x1224')]):_0x47153e[_0x17f415('0x174f')]()});});}function _0x23bf1f(_0x3a6dc8){var _0x44a09b=_0xd64f81;_0x50fe35[_0x44a09b('0x1a69')]=[];var _0x1ecf22=_0x96daef[_0x44a09b('0xa33')]()[_0x44a09b('0x4b4')](_0x44a09b('0x196b'))['content'](_0x44a09b('0x1d24'))[_0x44a09b('0x7a7')]('Delete\x20ZendeskAccount')['ok'](_0x44a09b('0xbfd'))[_0x44a09b('0x3b5')]('Cancel')[_0x44a09b('0x1e6d')](_0x3a6dc8);_0x96daef[_0x44a09b('0x853')](_0x1ecf22)[_0x44a09b('0x21ad')](function(){var _0x57ec0d=_0x44a09b;_0x19f7e9[_0x57ec0d('0x2352')]['delete']({'id':_0x50fe35[_0x57ec0d('0x84e')]['id']})[_0x57ec0d('0x1376')][_0x57ec0d('0x21ad')](function(){var _0x127848=_0x57ec0d;_0x86640f()[_0x127848('0x16a2')](_0x50fe35['zendeskAccounts'],{'id':_0x50fe35[_0x127848('0x84e')]['id']}),_0x538faa['success']({'title':_0x127848('0x13e5'),'msg':(_0x50fe35[_0x127848('0x84e')][_0x127848('0x19fe')]||'zendeskAccount')+_0x127848('0xb4a')}),_0xc4576f(_0x50fe35[_0x127848('0x84e')]);})[_0x57ec0d('0x1c1d')](function(_0x4b7af4){var _0x381ceb=_0x57ec0d;if(_0x4b7af4[_0x381ceb('0x11c2')]&&_0x4b7af4['data']['errors']&&_0x4b7af4['data']['errors'][_0x381ceb('0x577')]){_0x50fe35[_0x381ceb('0x1a69')]=_0x4b7af4[_0x381ceb('0x11c2')][_0x381ceb('0x1a69')]||[{'message':_0x4b7af4[_0x381ceb('0x174f')](),'type':_0x381ceb('0x1001')}];for(var _0x5b91db=0x0;_0x5b91db<_0x4b7af4['data'][_0x381ceb('0x1a69')]['length'];_0x5b91db++){_0x538faa[_0x381ceb('0x2092')]({'title':_0x4b7af4[_0x381ceb('0x11c2')][_0x381ceb('0x1a69')][_0x5b91db][_0x381ceb('0x7fa')],'msg':_0x4b7af4[_0x381ceb('0x11c2')][_0x381ceb('0x1a69')][_0x5b91db]['message']});}}else _0x538faa[_0x381ceb('0x2092')]({'title':_0x4b7af4['status']?_0x381ceb('0x22d')+_0x4b7af4['status']+_0x381ceb('0xa99')+_0x4b7af4[_0x381ceb('0x1808')]:_0x381ceb('0x1001'),'msg':_0x4b7af4[_0x381ceb('0x11c2')]?JSON['stringify'](_0x4b7af4[_0x381ceb('0x11c2')]['message']):_0x4b7af4[_0x381ceb('0x1224')]||_0x4b7af4[_0x381ceb('0x174f')]()});});},function(){});}function _0x376a81(_0x32cf36){return _0x32cf36===null?undefined:new Date(_0x32cf36);}function _0xc4576f(_0x3c5bcd){var _0x4c4ab0=_0xd64f81;_0x96daef[_0x4c4ab0('0x1c24')](_0x3c5bcd);}}const _0x25edbe=_0x3d735d;_0x4b3b41[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),'$mdDialog','toasty',_0x3877e3('0xb4f'),_0x3877e3('0x1b9a'),'item',_0x3877e3('0x1fd3'),_0x3877e3('0x7fa'),'api',_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x4b3b41(_0x4d381d,_0x587766,_0x3a2ff0,_0x35e8f4,_0x3da3a9,_0x2ae48,_0x3ca20d,_0x4caf53,_0x5ed322,_0x494b0c,_0x2f3825,_0x1317ae,_0x13482c){var _0x4763b1=_0x3877e3,_0x53c7be=this;_0x53c7be['currentUser']=_0x1317ae[_0x4763b1('0x15ed')](),_0x53c7be[_0x4763b1('0x1a69')]=[],_0x53c7be['title']=_0x4763b1('0x177a')+_0x86640f()[_0x4763b1('0x7c1')](_0x494b0c),_0x53c7be['item']=angular['copy'](_0x4caf53),_0x53c7be[_0x4763b1('0x1b9a')]=_0x3ca20d,_0x53c7be['type']=_0x494b0c,_0x53c7be['crudPermissions']=_0x13482c,_0x53c7be['newItem']=![];!_0x53c7be[_0x4763b1('0x19ca')]&&(_0x53c7be['item']={'type':_0x4763b1('0x2638')},_0x53c7be['item'][_0x86640f()[_0x4763b1('0x1b7e')](_0x494b0c)+'Id']=_0x2ae48['id'],_0x53c7be[_0x4763b1('0x4b4')]=_0x4763b1('0x1d99')+_0x86640f()[_0x4763b1('0x7c1')](_0x494b0c),_0x53c7be['newItem']=!![]);_0x53c7be['addNewItem']=_0x4d6cc1,_0x53c7be[_0x4763b1('0x1c97')]=_0x48ad65,_0x53c7be[_0x4763b1('0x1c8')]=_0x7f0757,_0x53c7be[_0x4763b1('0x23fe')]=_0x539fa0,_0x53c7be['closeDialog']=_0xca4254,_0x2f3825[_0x4763b1('0x25bb')][_0x4763b1('0x595')]({'nolimit':!![]})[_0x4763b1('0x1376')]['then'](function(_0x5a8436){var _0x1b8db2=_0x4763b1;return _0x53c7be[_0x1b8db2('0x142d')]=_0x5a8436[_0x1b8db2('0x1b33')]?_0x5a8436[_0x1b8db2('0x1b33')]:[],_0x2f3825[_0x1b8db2('0x9b6')][_0x1b8db2('0x1219')]()[_0x1b8db2('0x1376')];})[_0x4763b1('0x21ad')](function(_0x281d62){var _0x25c6fe=_0x4763b1;return _0x53c7be[_0x25c6fe('0x22eb')]=_0x86640f()[_0x25c6fe('0x5a8')](_0x86640f()[_0x25c6fe('0x223b')](_0x281d62),[_0x25c6fe('0x1376'),'$resolved',_0x25c6fe('0x23ae'),_0x25c6fe('0x15af'),'sourceid']),_0x53c7be['voiceAgentReportColumns'][_0x25c6fe('0x206c')]('recordingURL'),_0x2f3825[_0x25c6fe('0x17bb')][_0x25c6fe('0x1219')]()[_0x25c6fe('0x1376')];})[_0x4763b1('0x21ad')](function(_0x30e90d){var _0x2b41fa=_0x4763b1;_0x53c7be[_0x2b41fa('0x1491')]=_0x86640f()['difference'](_0x86640f()[_0x2b41fa('0x223b')](_0x30e90d),[_0x2b41fa('0x1376'),'$resolved',_0x2b41fa('0x23ae'),_0x2b41fa('0x15af'),_0x2b41fa('0x1bdd')]),_0x53c7be[_0x2b41fa('0x1491')][_0x2b41fa('0x206c')]('recordingURL');})[_0x4763b1('0x1c1d')](function(_0x426dcd){var _0x524740=_0x4763b1;_0x3da3a9[_0x524740('0x2092')]({'title':_0x426dcd[_0x524740('0x209')]?_0x524740('0x22d')+_0x426dcd['status']+'\x20-\x20'+_0x426dcd[_0x524740('0x1808')]:_0x524740('0x8f3'),'msg':_0x426dcd[_0x524740('0x11c2')]?JSON['stringify'](_0x426dcd[_0x524740('0x11c2')]):_0x426dcd[_0x524740('0x174f')]()});}),_0x2f3825['intZendeskAccount'][_0x4763b1('0x929')]({'id':_0x5ed322['id'],'ticketType':_0x2ae48[_0x4763b1('0x257e')]?_0x2ae48[_0x4763b1('0x257e')]:undefined})[_0x4763b1('0x1376')][_0x4763b1('0x21ad')](function(_0x1d98f3){var _0x5cd838=_0x4763b1;_0x53c7be[_0x5cd838('0x2097')]=!![],_0x53c7be[_0x5cd838('0x181e')]=_0x1d98f3[_0x5cd838('0x1b33')]?_0x1d98f3['rows']:[],_0x53c7be[_0x5cd838('0x19ca')]['idField']&&(_0x53c7be[_0x5cd838('0x1fa7')]=_0x86640f()[_0x5cd838('0x1d2e')](_0x53c7be[_0x5cd838('0x181e')],{'id':_0x53c7be[_0x5cd838('0x19ca')][_0x5cd838('0x1830')]}));})[_0x4763b1('0x1c1d')](function(_0x79bcc5){var _0x2606ad=_0x4763b1;_0x53c7be[_0x2606ad('0x2097')]=![],console[_0x2606ad('0x2092')](_0x79bcc5);});function _0x4d6cc1(){var _0x5e82d0=_0x4763b1;_0x53c7be[_0x5e82d0('0x1a69')]=[],_0x53c7be[_0x5e82d0('0x1fa7')]&&(_0x53c7be[_0x5e82d0('0x19ca')][_0x5e82d0('0x1830')]=_0x53c7be[_0x5e82d0('0x1fa7')]['id'],_0x53c7be[_0x5e82d0('0x19ca')]['nameField']=_0x53c7be[_0x5e82d0('0x1fa7')][_0x5e82d0('0x19fe')],_0x53c7be[_0x5e82d0('0x19ca')]['customField']=_0x53c7be['customField']['custom']),_0x2f3825[_0x5e82d0('0x236')][_0x5e82d0('0x186f')](_0x53c7be[_0x5e82d0('0x19ca')])['$promise'][_0x5e82d0('0x21ad')](function(_0x592a4a){var _0x4ead3d=_0x5e82d0;_0x53c7be[_0x4ead3d('0x1b9a')]['unshift'](_0x592a4a),_0x3da3a9['success']({'title':_0x86640f()[_0x4ead3d('0x1b7e')](_0x494b0c)+_0x4ead3d('0x1de2'),'msg':_0x86640f()['capitalize'](_0x494b0c)+_0x4ead3d('0x1694')}),_0xca4254();})['catch'](function(_0x1cef3c){var _0x7c0703=_0x5e82d0;console[_0x7c0703('0x2092')](_0x1cef3c),_0x53c7be[_0x7c0703('0x1a69')]=_0x1cef3c[_0x7c0703('0x11c2')]['errors']||[{'message':_0x1cef3c[_0x7c0703('0x174f')](),'type':_0x7c0703('0x1a23')}];});}function _0x48ad65(){var _0x456924=_0x4763b1;_0x53c7be[_0x456924('0x1a69')]=[],_0x53c7be[_0x456924('0x1fa7')]&&(_0x53c7be[_0x456924('0x19ca')][_0x456924('0x1830')]=_0x53c7be[_0x456924('0x1fa7')]['id'],_0x53c7be[_0x456924('0x19ca')][_0x456924('0xb45')]=_0x53c7be[_0x456924('0x1fa7')][_0x456924('0x19fe')],_0x53c7be[_0x456924('0x19ca')][_0x456924('0x1fa7')]=_0x53c7be['customField']['custom']),_0x2f3825[_0x456924('0x236')]['update']({'id':_0x53c7be[_0x456924('0x19ca')]['id']},_0x53c7be[_0x456924('0x19ca')])[_0x456924('0x1376')][_0x456924('0x21ad')](function(_0x25ef77){var _0xdf5cba=_0x456924,_0x144d81=_0x86640f()[_0xdf5cba('0x1d2e')](_0x53c7be[_0xdf5cba('0x1b9a')],{'id':_0x25ef77['id']});_0x144d81&&_0x86640f()['merge'](_0x144d81,_0x25ef77),_0x3da3a9['success']({'title':_0x86640f()[_0xdf5cba('0x1b7e')](_0x494b0c)+_0xdf5cba('0x2a3'),'msg':_0x86640f()[_0xdf5cba('0x1b7e')](_0x494b0c)+_0xdf5cba('0x2249')}),_0xca4254();})['catch'](function(_0x4d36f5){var _0x350e60=_0x456924;console['error'](_0x4d36f5),_0x53c7be['errors']=_0x4d36f5[_0x350e60('0x11c2')][_0x350e60('0x1a69')]||[{'message':_0x4d36f5[_0x350e60('0x174f')](),'type':_0x350e60('0x1488')}];});}function _0x7f0757(_0x25b900){var _0x42b687=_0x4763b1;_0x53c7be['errors']=[];var _0x14de95=_0x35e8f4[_0x42b687('0xa33')]()[_0x42b687('0x4b4')](_0x42b687('0x196b'))[_0x42b687('0x13fb')](_0x42b687('0x15f2')+_0x494b0c+_0x42b687('0x25e0'))[_0x42b687('0x7a7')](_0x42b687('0x2e4')+_0x86640f()[_0x42b687('0x1b7e')](_0x494b0c))['ok']('Delete')[_0x42b687('0x3b5')](_0x42b687('0x1f40'))[_0x42b687('0x1e6d')](_0x25b900);_0x35e8f4[_0x42b687('0x853')](_0x14de95)['then'](function(){var _0x252c2a=_0x42b687;_0x2f3825['intZendeskField'][_0x252c2a('0x1164')]({'id':_0x53c7be[_0x252c2a('0x19ca')]['id']})[_0x252c2a('0x1376')][_0x252c2a('0x21ad')](function(){var _0x3eb590=_0x252c2a;_0x86640f()[_0x3eb590('0x16a2')](_0x53c7be[_0x3eb590('0x1b9a')],{'id':_0x53c7be[_0x3eb590('0x19ca')]['id']}),_0x3da3a9[_0x3eb590('0xdb1')]({'title':_0x86640f()[_0x3eb590('0x1b7e')](_0x494b0c)+_0x3eb590('0x11b6'),'msg':_0x86640f()[_0x3eb590('0x1b7e')](_0x494b0c)+'\x20has\x20been\x20deleted!'}),_0xca4254();})[_0x252c2a('0x1c1d')](function(_0x35fa45){var _0x4a8d30=_0x252c2a;console[_0x4a8d30('0x2092')](_0x35fa45),_0x53c7be[_0x4a8d30('0x1a69')]=_0x35fa45['data'][_0x4a8d30('0x1a69')]||[{'message':_0x35fa45['toString'](),'type':_0x4a8d30('0x2175')}];});},function(){});}function _0x539fa0(){var _0xc6bc09=_0x4763b1;return _0x53c7be[_0xc6bc09('0x19ca')][_0xc6bc09('0x1651')]!==undefined?_0x53c7be[_0xc6bc09('0x19ca')]['variableName']:_0xc6bc09('0x17f7');}function _0xca4254(){_0x35e8f4['hide']();}}const _0x4b3798=_0x4b3b41;_0x1aeede['$inject']=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x13c1'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),'api',_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x84e'),'userProfileSection'];function _0x1aeede(_0x4f5b03,_0x24b51b,_0x3c7df2,_0x26629b,_0x2fe2d2,_0x2e291c,_0x4a4cc2,_0x2e3d65,_0x8d0d55,_0xce17e5,_0x2979c7,_0x3fb33c){var _0x9d4b8b=_0x3877e3,_0x161592=this;_0x161592[_0x9d4b8b('0x123f')]=_0xce17e5[_0x9d4b8b('0x15ed')](),_0x161592[_0x9d4b8b('0x2ff')]=_0x2e291c,_0x161592[_0x9d4b8b('0x21e')]=_0x4a4cc2,_0x161592[_0x9d4b8b('0x1432')]=_0x161592[_0x9d4b8b('0x21e')][_0x9d4b8b('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x161592[_0x9d4b8b('0x626')]=_0x24b51b[_0x9d4b8b('0x1162')]()+_0x9d4b8b('0x22a9')+_0x24b51b[_0x9d4b8b('0x1c01')](),_0x161592[_0x9d4b8b('0x84e')]=_0x2979c7||_0x4f5b03['params'][_0x9d4b8b('0x84e')]||{},_0x161592[_0x9d4b8b('0xab4')]=_0x3fb33c&&_0x3fb33c[_0x9d4b8b('0x205f')]==0x1?_0x3fb33c[_0x9d4b8b('0x1b33')][0x0]:null,_0x161592['crudPermissions']=_0xce17e5[_0x9d4b8b('0x1778')](_0x161592[_0x9d4b8b('0xab4')]?_0x161592[_0x9d4b8b('0xab4')][_0x9d4b8b('0x5ed')]:null),_0x161592['hasModulePermissions']={},_0x161592[_0x9d4b8b('0x302')]=_0x4f5b03[_0x9d4b8b('0x171b')][_0x9d4b8b('0x12e1')]||0x0,_0x161592[_0x9d4b8b('0x95b')]=_0x8d0d55[_0x9d4b8b('0x231c')],_0x161592[_0x9d4b8b('0x8d5')]=_0x52074a,_0x161592['saveZendeskAccount']=_0x59cdb3;function _0x52074a(){var _0x436354=_0x9d4b8b;_0x4f5b03['go'](_0x436354('0x21e8'),{},{'reload':_0x436354('0x21e8')});}function _0x59cdb3(){var _0x5f3669=_0x9d4b8b;_0x2e3d65['intZendeskAccount'][_0x5f3669('0x5ef')]({'id':_0x161592['zendeskAccount']['id']},_0x161592[_0x5f3669('0x84e')])[_0x5f3669('0x1376')]['then'](function(){var _0x2be8a4=_0x5f3669;_0x8d0d55[_0x2be8a4('0xdb1')]({'title':_0x2be8a4('0x2439'),'msg':_0x161592[_0x2be8a4('0x84e')][_0x2be8a4('0x19fe')]?_0x161592[_0x2be8a4('0x84e')][_0x2be8a4('0x19fe')]+_0x2be8a4('0xa8d'):''});})['catch'](function(_0x15baa3){var _0x47f646=_0x5f3669;_0x8d0d55[_0x47f646('0x2092')]({'title':_0x15baa3[_0x47f646('0x209')]?'API:'+_0x15baa3[_0x47f646('0x209')]+'\x20-\x20'+_0x15baa3[_0x47f646('0x1808')]:_0x47f646('0x1703'),'msg':_0x15baa3[_0x47f646('0x11c2')]?JSON[_0x47f646('0x25e')](_0x15baa3[_0x47f646('0x11c2')]):_0x15baa3['toString']()});});}}const _0x2f0d47=_0x1aeede,_0x3f3f49=_0x398308['p']+_0x3877e3('0xc0d'),_0x3c6399=_0x398308['p']+_0x3877e3('0x1eb6');_0x3d3b93[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0xccd'),'toasty',_0x3877e3('0x15bc')];function _0x3d3b93(_0x2d8b6a,_0x15e5e3,_0x3507cd,_0x33c8d8,_0x2fb5cc){var _0x84b4d7=_0x3877e3,_0x46dff3=this;_0x46dff3['currentUser']=_0x2fb5cc['getCurrentUser'](),_0x46dff3[_0x84b4d7('0x84e')]={},_0x46dff3[_0x84b4d7('0x338')]={},_0x46dff3[_0x84b4d7('0x24d4')]=[],_0x46dff3[_0x84b4d7('0xac6')]=-0x1,_0x46dff3[_0x84b4d7('0x5ed')],_0x46dff3[_0x84b4d7('0x1d75')]=_0xc073d4,_0x46dff3[_0x84b4d7('0x11d1')]=_0x11e073,_0x46dff3[_0x84b4d7('0xd13')]=_0x47560c,_0x46dff3[_0x84b4d7('0x228c')]=_0x449a3f,_0x46dff3['selectedTags']=[],_0x46dff3[_0x84b4d7('0xeab')]=_0x2eb309,_0x3507cd[_0x84b4d7('0x907')]['get']({'nolimit':!![],'sort':_0x84b4d7('0x19fe')})[_0x84b4d7('0x1376')][_0x84b4d7('0x21ad')](function(_0x575ecf){var _0x2ade2d=_0x84b4d7;_0x46dff3[_0x2ade2d('0x1889')]=_0x575ecf['rows']?_0x575ecf[_0x2ade2d('0x1b33')]:[];})[_0x84b4d7('0x1c1d')](function(_0x22573a){var _0x3b1a57=_0x84b4d7;_0x33c8d8[_0x3b1a57('0x2092')]({'title':_0x22573a['status']?_0x3b1a57('0x22d')+_0x22573a[_0x3b1a57('0x209')]+_0x3b1a57('0xa99')+_0x22573a[_0x3b1a57('0x1808')]:_0x3b1a57('0x25ce'),'msg':_0x22573a['data']?JSON[_0x3b1a57('0x25e')](_0x22573a[_0x3b1a57('0x11c2')]):_0x22573a['toString']()});});function _0x2eb309(){var _0x2a446c=_0x84b4d7;_0x3507cd[_0x2a446c('0x2221')][_0x2a446c('0x87a')]({'id':_0x46dff3[_0x2a446c('0x338')]['id'],'ids':_0x46dff3[_0x2a446c('0xb86')]})[_0x2a446c('0x1376')][_0x2a446c('0x21ad')](function(){var _0x191cc1=_0x2a446c;_0x33c8d8[_0x191cc1('0xdb1')]({'title':_0x191cc1('0x25d4'),'msg':_0x191cc1('0x1528')});})[_0x2a446c('0x1c1d')](function(_0x35fb31){var _0x247763=_0x2a446c;_0x33c8d8[_0x247763('0x2092')]({'title':_0x35fb31['status']?_0x247763('0x22d')+_0x35fb31['status']+_0x247763('0xa99')+_0x35fb31[_0x247763('0x1808')]:_0x247763('0x20c4'),'msg':_0x35fb31[_0x247763('0x11c2')]?JSON['stringify'](_0x35fb31['data']):_0x35fb31[_0x247763('0x174f')]()});});}function _0xc073d4(_0x73b4e8,_0xabb252){var _0x5b397e=_0x84b4d7;_0x46dff3[_0x5b397e('0x84e')]=_0x73b4e8,_0x46dff3['crudPermissions']=typeof _0xabb252!==_0x5b397e('0xddc')?_0xabb252:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3507cd['intZendeskAccount']['getConfigurations']({'id':_0x46dff3['zendeskAccount']['id'],'sort':'-updatedAt'})[_0x5b397e('0x1376')][_0x5b397e('0x21ad')](function(_0x4647bb){var _0x15a763=_0x5b397e;return _0x46dff3[_0x15a763('0x24d4')]=_0x4647bb[_0x15a763('0x1b33')]?_0x4647bb['rows']:[],_0x46dff3['zendeskConfigurations']['length']&&_0x46dff3['getZendeskConfiguration'](0x0),_0x3507cd['variable'][_0x15a763('0x595')]({'nolimit':!![],'sort':_0x15a763('0x19fe')})[_0x15a763('0x1376')];})[_0x5b397e('0x21ad')](function(_0x3eb58c){var _0xa477bf=_0x5b397e;_0x46dff3[_0xa477bf('0x142d')]=_0x3eb58c[_0xa477bf('0x1b33')]?_0x3eb58c[_0xa477bf('0x1b33')]:[],_0x46dff3['variablesById']=_0x86640f()[_0xa477bf('0xcde')](_0x46dff3[_0xa477bf('0x142d')],'id');})[_0x5b397e('0x1c1d')](function(_0x57d814){var _0x2d5597=_0x5b397e;_0x33c8d8[_0x2d5597('0x2092')]({'title':_0x57d814[_0x2d5597('0x209')]?_0x2d5597('0x22d')+_0x57d814[_0x2d5597('0x209')]+_0x2d5597('0xa99')+_0x57d814[_0x2d5597('0x1808')]:_0x2d5597('0x1c4e'),'msg':_0x57d814[_0x2d5597('0x11c2')]?JSON[_0x2d5597('0x25e')](_0x57d814['data']):_0x57d814['toString']()});});}function _0x11e073(_0x1ac866){var _0x38276f=_0x84b4d7;_0x46dff3['zendeskConfiguration']=_0x46dff3[_0x38276f('0x24d4')][_0x1ac866],_0x46dff3['selectedZendeskConfiguration']=_0x1ac866,_0x3507cd['intZendeskConfiguration'][_0x38276f('0x12d7')]({'id':_0x46dff3['zendeskConfiguration']['id']})[_0x38276f('0x1376')][_0x38276f('0x21ad')](function(_0x88c629){var _0xeb34f1=_0x38276f;return _0x46dff3[_0xeb34f1('0x1033')]=_0x88c629[_0xeb34f1('0x1b33')]?_0x88c629[_0xeb34f1('0x1b33')]:[],_0x3507cd[_0xeb34f1('0x2221')][_0xeb34f1('0x377')]({'id':_0x46dff3[_0xeb34f1('0x338')]['id']})[_0xeb34f1('0x1376')];})[_0x38276f('0x21ad')](function(_0x117323){var _0x594220=_0x38276f;return _0x46dff3['descriptions']=_0x117323[_0x594220('0x1b33')]?_0x117323['rows']:[],_0x3507cd[_0x594220('0x2221')][_0x594220('0x929')]({'id':_0x46dff3[_0x594220('0x338')]['id']})[_0x594220('0x1376')];})['then'](function(_0x594c4e){var _0x23d7b7=_0x38276f;_0x46dff3[_0x23d7b7('0x181e')]=_0x594c4e[_0x23d7b7('0x1b33')]?_0x594c4e[_0x23d7b7('0x1b33')]:[];})[_0x38276f('0x1c1d')](function(_0x232561){var _0x5669c0=_0x38276f;_0x33c8d8['error']({'title':_0x232561[_0x5669c0('0x209')]?'API:'+_0x232561[_0x5669c0('0x209')]+_0x5669c0('0xa99')+_0x232561['statusText']:'SYSTEM:GETConfigurations','msg':_0x232561[_0x5669c0('0x11c2')]?JSON[_0x5669c0('0x25e')](_0x232561['data']):_0x232561[_0x5669c0('0x174f')]()});}),_0x3507cd[_0x38276f('0x2221')][_0x38276f('0x2590')]({'id':_0x46dff3['zendeskConfiguration']['id']})[_0x38276f('0x1376')][_0x38276f('0x21ad')](function(_0x34bbfd){var _0x1767f4=_0x38276f;_0x46dff3[_0x1767f4('0xb86')]=_0x34bbfd[_0x1767f4('0x1b33')]?_0x86640f()['map'](_0x34bbfd[_0x1767f4('0x1b33')],'id'):[];})['catch'](function(_0x29cc10){var _0x4df4e9=_0x38276f;_0x33c8d8['error']({'title':_0x29cc10['status']?_0x4df4e9('0x22d')+_0x29cc10['status']+_0x4df4e9('0xa99')+_0x29cc10[_0x4df4e9('0x1808')]:_0x4df4e9('0x25ce'),'msg':_0x29cc10['data']?JSON[_0x4df4e9('0x25e')](_0x29cc10['data']):_0x29cc10[_0x4df4e9('0x174f')]()});});}function _0x47560c(_0x1f0aab,_0x555da2){var _0x3f1289=_0x84b4d7;_0x2d8b6a[_0x3f1289('0x853')]({'controller':_0x3f1289('0x195e'),'controllerAs':'vm','templateUrl':_0x3f3f49,'parent':angular[_0x3f1289('0x1676')](_0x15e5e3[_0x3f1289('0x2452')]),'targetEvent':_0x1f0aab,'clickOutsideToClose':!![],'locals':{'zendeskConfiguration':_0x555da2,'zendeskConfigurations':_0x46dff3[_0x3f1289('0x24d4')],'license':null,'setting':null,'crudPermissions':_0x46dff3[_0x3f1289('0x5ed')]}})[_0x3f1289('0x13e')](function(){var _0x26dd22=_0x3f1289;_0x46dff3[_0x26dd22('0x11d1')](0x0);});}function _0x449a3f(_0x39ab37,_0x310a91){var _0xee5595=_0x84b4d7,_0x2e583b=_0x2d8b6a[_0xee5595('0xa33')]()[_0xee5595('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20zendeskConfiguration?')['htmlContent'](_0xee5595('0x622')+(_0x310a91[_0xee5595('0x19fe')]||_0xee5595('0x338'))+_0xee5595('0x2135')+_0xee5595('0x25e0'))[_0xee5595('0x7a7')](_0xee5595('0x1a73'))[_0xee5595('0x1e6d')](_0x39ab37)['ok']('OK')['cancel'](_0xee5595('0x284b'));_0x2d8b6a[_0xee5595('0x853')](_0x2e583b)[_0xee5595('0x21ad')](function(){var _0xae77c0=_0xee5595;_0x3507cd[_0xae77c0('0x2221')][_0xae77c0('0x1164')]({'id':_0x310a91['id']})[_0xae77c0('0x1376')]['then'](function(){var _0x1621d2=_0xae77c0;_0x86640f()[_0x1621d2('0x16a2')](_0x46dff3[_0x1621d2('0x24d4')],{'id':_0x310a91['id']}),_0x33c8d8[_0x1621d2('0xdb1')]({'title':_0x1621d2('0x2140'),'msg':_0x310a91[_0x1621d2('0x19fe')]?_0x310a91['name']+_0x1621d2('0xb4a'):''});})['catch'](function(_0x578f73){var _0x423707=_0xae77c0;_0x33c8d8[_0x423707('0x2092')]({'title':_0x578f73['status']?'API:'+_0x578f73[_0x423707('0x209')]+_0x423707('0xa99')+_0x578f73['statusText']:_0x423707('0x2336'),'msg':_0x578f73['data']?JSON[_0x423707('0x25e')](_0x578f73[_0x423707('0x11c2')]):_0x578f73[_0x423707('0x174f')]()});})['finally'](function(){_0x46dff3['getZendeskConfiguration'](0x0);});},function(){var _0x3a0db5=_0xee5595;console['log'](_0x3a0db5('0x284b'));});}_0x46dff3[_0x84b4d7('0x19ba')]=[],_0x46dff3[_0x84b4d7('0x11de')]=_0x345e8f,_0x46dff3[_0x84b4d7('0x2203')]=_0x3a8cf5,_0x46dff3[_0x84b4d7('0x858')]=_0x3d9761;function _0x345e8f(_0x3261c5,_0x389771){var _0x16c1da=_0x84b4d7;_0x2d8b6a['show']({'controller':_0x16c1da('0x1311'),'controllerAs':'vm','templateUrl':_0x3c6399,'parent':angular['element'](_0x15e5e3[_0x16c1da('0x2452')]),'targetEvent':_0x3261c5,'clickOutsideToClose':!![],'locals':{'type':'subject','item':_0x389771,'items':_0x46dff3[_0x16c1da('0x1033')],'configuration':_0x46dff3['zendeskConfiguration'],'account':_0x46dff3['zendeskAccount'],'license':null,'setting':null,'crudPermissions':_0x46dff3[_0x16c1da('0x5ed')]}});}function _0x515114(_0x213294){var _0x216405=_0x84b4d7;_0x3507cd[_0x216405('0x236')][_0x216405('0x1164')]({'id':_0x213294['id']})['$promise'][_0x216405('0x21ad')](function(){var _0x4eefc6=_0x216405;_0x86640f()[_0x4eefc6('0x16a2')](_0x46dff3[_0x4eefc6('0x1033')],{'id':_0x213294['id']}),_0x33c8d8[_0x4eefc6('0xdb1')]({'title':'Subject\x20deleted!','msg':'Subject\x20has\x20been\x20deleted!'});})[_0x216405('0x1c1d')](function(_0x3d4e26){var _0x2b8b93=_0x216405;_0x33c8d8[_0x2b8b93('0x2092')]({'title':_0x3d4e26[_0x2b8b93('0x209')]?_0x2b8b93('0x22d')+_0x3d4e26[_0x2b8b93('0x209')]+_0x2b8b93('0xa99')+_0x3d4e26[_0x2b8b93('0x1808')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x3d4e26[_0x2b8b93('0x11c2')]?JSON[_0x2b8b93('0x25e')](_0x3d4e26[_0x2b8b93('0x11c2')]):_0x3d4e26[_0x2b8b93('0x174f')]()});});}function _0x3a8cf5(_0x1facb6,_0x55d319){var _0x14586e=_0x84b4d7,_0x73d3f4=_0x2d8b6a[_0x14586e('0xa33')]()[_0x14586e('0x4b4')](_0x14586e('0xe3a'))['htmlContent'](_0x14586e('0x2031')+_0x14586e('0x25e0'))[_0x14586e('0x7a7')](_0x14586e('0x566'))[_0x14586e('0x1e6d')](_0x1facb6)['ok']('OK')[_0x14586e('0x3b5')](_0x14586e('0x284b'));_0x2d8b6a[_0x14586e('0x853')](_0x73d3f4)[_0x14586e('0x21ad')](function(){_0x515114(_0x55d319);},function(){var _0x1d88d6=_0x14586e;console['log'](_0x1d88d6('0x284b'));});}function _0x3d9761(_0x20c14e){var _0x5d392c=_0x84b4d7,_0x3ce90b=_0x2d8b6a[_0x5d392c('0xa33')]()[_0x5d392c('0x4b4')](_0x5d392c('0x6e8'))[_0x5d392c('0x276b')](_0x5d392c('0x622')+_0x46dff3[_0x5d392c('0x19ba')][_0x5d392c('0x577')]+_0x5d392c('0xd74')+'\x20will\x20be\x20deleted.')[_0x5d392c('0x7a7')](_0x5d392c('0x1828'))[_0x5d392c('0x1e6d')](_0x20c14e)['ok']('OK')[_0x5d392c('0x3b5')]('CANCEL');_0x2d8b6a[_0x5d392c('0x853')](_0x3ce90b)['then'](function(){var _0x261442=_0x5d392c;_0x46dff3['selectedSubjects'][_0x261442('0x1a52')](function(_0x58410a){_0x515114(_0x58410a);}),_0x46dff3['selectedSubjects']=[];});}_0x46dff3[_0x84b4d7('0xbdf')]=[],_0x46dff3['createOrEditDescription']=_0x46ca7b,_0x46dff3['deleteDescriptionConfirm']=_0x11614d,_0x46dff3['deleteSelectedDescriptions']=_0x23b4de;function _0x46ca7b(_0x2fa2b1,_0x25b180){var _0x2d496d=_0x84b4d7;_0x2d8b6a['show']({'controller':_0x2d496d('0x1311'),'controllerAs':'vm','templateUrl':_0x3c6399,'parent':angular[_0x2d496d('0x1676')](_0x15e5e3['body']),'targetEvent':_0x2fa2b1,'clickOutsideToClose':!![],'locals':{'type':'description','item':_0x25b180,'items':_0x46dff3['descriptions'],'configuration':_0x46dff3[_0x2d496d('0x338')],'account':_0x46dff3[_0x2d496d('0x84e')],'license':null,'setting':null,'crudPermissions':_0x46dff3[_0x2d496d('0x5ed')]}});}function _0x5b8e2e(_0x22293e){var _0x35a88a=_0x84b4d7;_0x3507cd['intZendeskField'][_0x35a88a('0x1164')]({'id':_0x22293e['id']})[_0x35a88a('0x1376')][_0x35a88a('0x21ad')](function(){var _0x5320c4=_0x35a88a;_0x86640f()[_0x5320c4('0x16a2')](_0x46dff3[_0x5320c4('0x2161')],{'id':_0x22293e['id']}),_0x33c8d8[_0x5320c4('0xdb1')]({'title':_0x5320c4('0x1af8'),'msg':_0x5320c4('0x1ec6')});})['catch'](function(_0x48b203){var _0x2f81c8=_0x35a88a;_0x33c8d8[_0x2f81c8('0x2092')]({'title':_0x48b203[_0x2f81c8('0x209')]?_0x2f81c8('0x22d')+_0x48b203[_0x2f81c8('0x209')]+_0x2f81c8('0xa99')+_0x48b203['statusText']:_0x2f81c8('0xede'),'msg':_0x48b203[_0x2f81c8('0x11c2')]?JSON[_0x2f81c8('0x25e')](_0x48b203[_0x2f81c8('0x11c2')]):_0x48b203[_0x2f81c8('0x174f')]()});});}function _0x11614d(_0x529e25,_0x1c8c97){var _0x2fb746=_0x84b4d7,_0x3db568=_0x2d8b6a[_0x2fb746('0xa33')]()[_0x2fb746('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20description?')[_0x2fb746('0x276b')](_0x2fb746('0x4e6')+_0x2fb746('0x25e0'))[_0x2fb746('0x7a7')](_0x2fb746('0xe67'))['targetEvent'](_0x529e25)['ok']('OK')[_0x2fb746('0x3b5')](_0x2fb746('0x284b'));_0x2d8b6a['show'](_0x3db568)[_0x2fb746('0x21ad')](function(){_0x5b8e2e(_0x1c8c97);},function(){var _0x17b3eb=_0x2fb746;console[_0x17b3eb('0x6fb')](_0x17b3eb('0x284b'));});}function _0x23b4de(_0x2f60a0){var _0x189768=_0x84b4d7,_0x31e701=_0x2d8b6a[_0x189768('0xa33')]()[_0x189768('0x4b4')](_0x189768('0x6e'))['htmlContent'](_0x189768('0x622')+_0x46dff3[_0x189768('0xbdf')][_0x189768('0x577')]+'\x20selected'+_0x189768('0x25e0'))[_0x189768('0x7a7')](_0x189768('0x211d'))['targetEvent'](_0x2f60a0)['ok']('OK')[_0x189768('0x3b5')](_0x189768('0x284b'));_0x2d8b6a[_0x189768('0x853')](_0x31e701)[_0x189768('0x21ad')](function(){var _0x6fc0b7=_0x189768;_0x46dff3[_0x6fc0b7('0xbdf')][_0x6fc0b7('0x1a52')](function(_0x175811){_0x5b8e2e(_0x175811);}),_0x46dff3['selectedDescriptions']=[];});}_0x46dff3[_0x84b4d7('0x21b0')]=[],_0x46dff3[_0x84b4d7('0x97')]=_0x44bdca,_0x46dff3[_0x84b4d7('0x222e')]=_0x235514,_0x46dff3[_0x84b4d7('0xe52')]=_0xab89a;function _0x44bdca(_0x4e018e,_0x1fc98d){var _0x578cec=_0x84b4d7;_0x2d8b6a[_0x578cec('0x853')]({'controller':_0x578cec('0x1311'),'controllerAs':'vm','templateUrl':_0x3c6399,'parent':angular[_0x578cec('0x1676')](_0x15e5e3['body']),'targetEvent':_0x4e018e,'clickOutsideToClose':!![],'locals':{'type':_0x578cec('0xff8'),'item':_0x1fc98d,'items':_0x46dff3[_0x578cec('0x181e')],'configuration':_0x46dff3[_0x578cec('0x338')],'account':_0x46dff3[_0x578cec('0x84e')],'license':null,'setting':null,'crudPermissions':_0x46dff3[_0x578cec('0x5ed')]}});}function _0x4977f3(_0x313deb){var _0x104fc2=_0x84b4d7;_0x3507cd[_0x104fc2('0x236')][_0x104fc2('0x1164')]({'id':_0x313deb['id']})[_0x104fc2('0x1376')]['then'](function(){var _0xd2e38=_0x104fc2;_0x86640f()[_0xd2e38('0x16a2')](_0x46dff3[_0xd2e38('0x181e')],{'id':_0x313deb['id']}),_0x33c8d8[_0xd2e38('0xdb1')]({'title':_0xd2e38('0x2321'),'msg':'Field\x20has\x20been\x20deleted!'});})['catch'](function(_0x120744){var _0x45397b=_0x104fc2;_0x33c8d8[_0x45397b('0x2092')]({'title':_0x120744['status']?'API:'+_0x120744[_0x45397b('0x209')]+_0x45397b('0xa99')+_0x120744[_0x45397b('0x1808')]:_0x45397b('0xede'),'msg':_0x120744[_0x45397b('0x11c2')]?JSON[_0x45397b('0x25e')](_0x120744['data']):_0x120744['toString']()});});}function _0x235514(_0x30b4f9,_0x40c892){var _0x1420f4=_0x84b4d7,_0x80c2f=_0x2d8b6a[_0x1420f4('0xa33')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?')['htmlContent']('Field'+_0x1420f4('0x25e0'))[_0x1420f4('0x7a7')](_0x1420f4('0x238b'))['targetEvent'](_0x30b4f9)['ok']('OK')[_0x1420f4('0x3b5')]('CANCEL');_0x2d8b6a[_0x1420f4('0x853')](_0x80c2f)[_0x1420f4('0x21ad')](function(){_0x4977f3(_0x40c892);},function(){var _0x1f3dac=_0x1420f4;console[_0x1f3dac('0x6fb')](_0x1f3dac('0x284b'));});}function _0xab89a(_0x3a7b21){var _0x13d4cf=_0x84b4d7,_0x4a3131=_0x2d8b6a[_0x13d4cf('0xa33')]()[_0x13d4cf('0x4b4')](_0x13d4cf('0x655'))['htmlContent'](_0x13d4cf('0x622')+_0x46dff3['selectedFields'][_0x13d4cf('0x577')]+'\x20selected'+_0x13d4cf('0x25e0'))['ariaLabel'](_0x13d4cf('0x85f'))[_0x13d4cf('0x1e6d')](_0x3a7b21)['ok']('OK')['cancel'](_0x13d4cf('0x284b'));_0x2d8b6a[_0x13d4cf('0x853')](_0x4a3131)[_0x13d4cf('0x21ad')](function(){var _0x11dc5f=_0x13d4cf;_0x46dff3['selectedFields'][_0x11dc5f('0x1a52')](function(_0x517a9f){_0x4977f3(_0x517a9f);}),_0x46dff3[_0x11dc5f('0x21b0')]=[];});}}const _0x28d7da=_0x3d3b93;_0x576786['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),'toasty',_0x3877e3('0x24d4'),_0x3877e3('0x338'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting',_0x3877e3('0x5ed')];function _0x576786(_0x3c82a5,_0x150b3f,_0x44f2c1,_0x203e0b,_0x828bda,_0x4eefa1,_0x3c9705,_0xda60e7,_0x21be5e,_0x155d70,_0x11e12e,_0x31ad2f,_0x3f6169,_0x49fbce){var _0x2a0b46=_0x3877e3,_0x5680c5=this;_0x5680c5[_0x2a0b46('0x123f')]=_0x11e12e[_0x2a0b46('0x15ed')](),_0x5680c5[_0x2a0b46('0x1a69')]=[],_0x5680c5[_0x2a0b46('0x21e')]=_0x3f6169,_0x5680c5[_0x2a0b46('0x2ff')]=_0x31ad2f,_0x5680c5['crudPermissions']=_0x49fbce,_0x5680c5[_0x2a0b46('0x126a')]={},_0x5680c5[_0x2a0b46('0x1432')]=_0x5680c5['setting']&&_0x5680c5['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5680c5[_0x2a0b46('0x4b4')]=_0x2a0b46('0x4ef'),_0x5680c5[_0x2a0b46('0x338')]=angular[_0x2a0b46('0xd75')](_0x21be5e),_0x5680c5[_0x2a0b46('0x24d4')]=_0xda60e7,_0x5680c5[_0x2a0b46('0x9fd')]=![];!_0x5680c5[_0x2a0b46('0x338')]&&(_0x5680c5[_0x2a0b46('0x338')]={'channel':_0x2a0b46('0x8ed'),'type':_0x2a0b46('0x923')},_0x5680c5[_0x2a0b46('0x4b4')]='INTEGRATIONS.NEW_ZENDESKCONFIGURATION',_0x5680c5[_0x2a0b46('0x9fd')]=!![]);_0x5680c5[_0x2a0b46('0x25ab')]=_0x270389,_0x5680c5[_0x2a0b46('0x2110')]=_0x1a6c1f,_0x5680c5[_0x2a0b46('0x228c')]=_0x53796a,_0x5680c5[_0x2a0b46('0x279')]=_0x39d31f,_0x5680c5['closeDialog']=_0x561090;function _0x270389(){var _0x579b4a=_0x2a0b46;_0x5680c5['errors']=[],_0x155d70[_0x579b4a('0x2352')][_0x579b4a('0x1388')]({'id':_0x150b3f[_0x579b4a('0x171b')]['id']},_0x5680c5[_0x579b4a('0x338')])[_0x579b4a('0x1376')][_0x579b4a('0x21ad')](function(_0x28296e){var _0x1dfd15=_0x579b4a;_0x5680c5[_0x1dfd15('0x24d4')][_0x1dfd15('0xd0c')](_0x28296e[_0x1dfd15('0x3bc')]()),_0x3c9705[_0x1dfd15('0xdb1')]({'title':_0x1dfd15('0x1e23'),'msg':_0x5680c5[_0x1dfd15('0x338')][_0x1dfd15('0x19fe')]?_0x5680c5[_0x1dfd15('0x338')][_0x1dfd15('0x19fe')]+_0x1dfd15('0x1694'):''}),_0x561090(_0x28296e);})[_0x579b4a('0x1c1d')](function(_0x4e4367){var _0x4c9869=_0x579b4a;if(_0x4e4367[_0x4c9869('0x11c2')]&&_0x4e4367[_0x4c9869('0x11c2')][_0x4c9869('0x1a69')]&&_0x4e4367[_0x4c9869('0x11c2')][_0x4c9869('0x1a69')][_0x4c9869('0x577')]){_0x5680c5['errors']=_0x4e4367[_0x4c9869('0x11c2')]['errors']||[{'message':_0x4e4367[_0x4c9869('0x174f')](),'type':_0x4c9869('0x2534')}];for(var _0x1456fa=0x0;_0x1456fa<_0x4e4367['data'][_0x4c9869('0x1a69')][_0x4c9869('0x577')];_0x1456fa+=0x1){_0x3c9705[_0x4c9869('0x2092')]({'title':_0x4e4367[_0x4c9869('0x11c2')][_0x4c9869('0x1a69')][_0x1456fa]['type'],'msg':_0x4e4367[_0x4c9869('0x11c2')][_0x4c9869('0x1a69')][_0x1456fa]['message']});}}else _0x3c9705[_0x4c9869('0x2092')]({'title':_0x4e4367[_0x4c9869('0x209')]?_0x4c9869('0x22d')+_0x4e4367[_0x4c9869('0x209')]+_0x4c9869('0xa99')+_0x4e4367['statusText']:_0x4c9869('0x2534'),'msg':_0x4e4367[_0x4c9869('0x11c2')]?JSON['stringify'](_0x4e4367['data']['message']):_0x4e4367[_0x4c9869('0x174f')]()});});}function _0x1a6c1f(){var _0x5200a2=_0x2a0b46;_0x5680c5[_0x5200a2('0x1a69')]=[],_0x155d70['intZendeskConfiguration']['update']({'id':_0x5680c5['zendeskConfiguration']['id']},_0x5680c5[_0x5200a2('0x338')])['$promise'][_0x5200a2('0x21ad')](function(_0x1537e4){var _0x3be8f1=_0x5200a2,_0x4e587a=_0x86640f()[_0x3be8f1('0x1d2e')](_0x5680c5[_0x3be8f1('0x24d4')],{'id':_0x1537e4['id']});_0x4e587a&&_0x86640f()['merge'](_0x4e587a,_0x86640f()['pick'](_0x1537e4[_0x3be8f1('0x3bc')](),_0x86640f()[_0x3be8f1('0x223b')](_0x4e587a))),_0x3c9705[_0x3be8f1('0xdb1')]({'title':_0x3be8f1('0x1d8c'),'msg':_0x5680c5[_0x3be8f1('0x338')][_0x3be8f1('0x19fe')]?_0x5680c5[_0x3be8f1('0x338')][_0x3be8f1('0x19fe')]+_0x3be8f1('0x2249'):''}),_0x561090(_0x1537e4);})['catch'](function(_0x1a1fc2){var _0x265924=_0x5200a2;if(_0x1a1fc2['data']&&_0x1a1fc2[_0x265924('0x11c2')][_0x265924('0x1a69')]&&_0x1a1fc2[_0x265924('0x11c2')]['errors'][_0x265924('0x577')]){_0x5680c5[_0x265924('0x1a69')]=_0x1a1fc2['data'][_0x265924('0x1a69')]||[{'message':_0x1a1fc2['toString'](),'type':_0x265924('0x227e')}];for(var _0x88cea8=0x0;_0x88cea8<_0x1a1fc2['data'][_0x265924('0x1a69')][_0x265924('0x577')];_0x88cea8++){_0x3c9705[_0x265924('0x2092')]({'title':_0x1a1fc2[_0x265924('0x11c2')][_0x265924('0x1a69')][_0x88cea8]['type'],'msg':_0x1a1fc2[_0x265924('0x11c2')][_0x265924('0x1a69')][_0x88cea8][_0x265924('0x1224')]});}}else _0x3c9705[_0x265924('0x2092')]({'title':_0x1a1fc2[_0x265924('0x209')]?'API:'+_0x1a1fc2[_0x265924('0x209')]+'\x20-\x20'+_0x1a1fc2['statusText']:_0x265924('0x227e'),'msg':_0x1a1fc2[_0x265924('0x11c2')]?JSON[_0x265924('0x25e')](_0x1a1fc2[_0x265924('0x11c2')][_0x265924('0x1224')]):_0x1a1fc2['toString']()});});}function _0x53796a(_0x262c48){var _0x335b39=_0x2a0b46;_0x5680c5[_0x335b39('0x1a69')]=[];var _0x3dbc65=_0x203e0b['confirm']()[_0x335b39('0x4b4')]('Are\x20you\x20sure?')[_0x335b39('0x13fb')](_0x335b39('0x259f'))[_0x335b39('0x7a7')](_0x335b39('0x191a'))['ok']('Delete')[_0x335b39('0x3b5')]('Cancel')[_0x335b39('0x1e6d')](_0x262c48);_0x203e0b[_0x335b39('0x853')](_0x3dbc65)[_0x335b39('0x21ad')](function(){var _0x56589c=_0x335b39;_0x155d70[_0x56589c('0x2221')]['delete']({'id':_0x5680c5['zendeskConfiguration']['id']})[_0x56589c('0x1376')]['then'](function(){var _0x501dc6=_0x56589c;_0x86640f()[_0x501dc6('0x16a2')](_0x5680c5[_0x501dc6('0x24d4')],{'id':_0x5680c5[_0x501dc6('0x338')]['id']}),_0x3c9705[_0x501dc6('0xdb1')]({'title':_0x501dc6('0xb91'),'msg':(_0x5680c5[_0x501dc6('0x338')][_0x501dc6('0x19fe')]||_0x501dc6('0x338'))+_0x501dc6('0xb4a')}),_0x561090(_0x5680c5['zendeskConfiguration']);})[_0x56589c('0x1c1d')](function(_0x492577){var _0x5d1441=_0x56589c;if(_0x492577[_0x5d1441('0x11c2')]&&_0x492577[_0x5d1441('0x11c2')][_0x5d1441('0x1a69')]&&_0x492577[_0x5d1441('0x11c2')][_0x5d1441('0x1a69')][_0x5d1441('0x577')]){_0x5680c5[_0x5d1441('0x1a69')]=_0x492577['data']['errors']||[{'message':_0x492577['toString'](),'type':_0x5d1441('0x25a9')}];for(var _0x2969eb=0x0;_0x2969eb<_0x492577['data'][_0x5d1441('0x1a69')][_0x5d1441('0x577')];_0x2969eb++){_0x3c9705[_0x5d1441('0x2092')]({'title':_0x492577[_0x5d1441('0x11c2')]['errors'][_0x2969eb]['type'],'msg':_0x492577[_0x5d1441('0x11c2')][_0x5d1441('0x1a69')][_0x2969eb][_0x5d1441('0x1224')]});}}else _0x3c9705['error']({'title':_0x492577[_0x5d1441('0x209')]?_0x5d1441('0x22d')+_0x492577['status']+_0x5d1441('0xa99')+_0x492577[_0x5d1441('0x1808')]:_0x5d1441('0x25a9'),'msg':_0x492577[_0x5d1441('0x11c2')]?JSON['stringify'](_0x492577[_0x5d1441('0x11c2')][_0x5d1441('0x1224')]):_0x492577['message']||_0x492577[_0x5d1441('0x174f')]()});});},function(){});}function _0x39d31f(_0x23796f){return _0x23796f===null?undefined:new Date(_0x23796f);}function _0x561090(_0x33d695){var _0x35962e=_0x2a0b46;_0x203e0b[_0x35962e('0x1c24')](_0x33d695);}}const _0x5d643b=_0x576786,_0x226d39=_0x398308['p']+'src/js/modules/main/apps/integrations/views/zendeskAccounts/create/dialog.html/dialog-[chunkhash].html';_0x32e6b8[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x13c1'),_0x3877e3('0x162b'),_0x3877e3('0x758'),_0x3877e3('0xab4'),'api','msUtils',_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x32e6b8(_0xb04868,_0x1590c2,_0x3f1fec,_0x54dcfc,_0x1907de,_0x194b85,_0x4f38fb,_0x75b0e4,_0x3bc0eb,_0x3e44fe,_0x395162,_0x49cf3f,_0x556004,_0x2250a6,_0x3aa2ff,_0x499fc1,_0x5a8cbc){var _0x261db0=_0x3877e3,_0x192994=this;_0x192994[_0x261db0('0x2ff')]=_0x499fc1,_0x192994[_0x261db0('0x21e')]=_0x5a8cbc,_0x192994[_0x261db0('0x123f')]=_0x3aa2ff[_0x261db0('0x15ed')](),_0x192994[_0x261db0('0x162b')]=_0x3bc0eb||{'count':0x0,'rows':[]},_0x192994[_0x261db0('0x758')]=_0x3e44fe,_0x192994[_0x261db0('0xab4')]=_0x395162&&_0x395162[_0x261db0('0x205f')]==0x1?_0x395162[_0x261db0('0x1b33')][0x0]:null,_0x192994[_0x261db0('0x5ed')]=_0x3aa2ff[_0x261db0('0x1778')](_0x192994[_0x261db0('0xab4')]?_0x192994[_0x261db0('0xab4')]['crudPermissions']:null),_0x192994[_0x261db0('0x1897')]=_0x261db0('0x162b'),_0x192994[_0x261db0('0x11dc')]='',_0x192994[_0x261db0('0x18cf')]=null,_0x192994['selectedZendeskAccounts']=[],_0x192994[_0x261db0('0x77')]={'fields':_0x261db0('0x22a8'),'limit':0xa,'page':0x1},_0x192994[_0x261db0('0x179c')]=_0x86640f()[_0x261db0('0xcde')]([{'option':_0x261db0('0x2611'),'value':_0x261db0('0x1c92')},{'option':_0x261db0('0x19c6'),'value':_0x261db0('0x13bd')}],function(_0x472494){return _0x86640f()['replace'](_0x472494['value'],new RegExp('\x27','g'),'');}),_0x192994[_0x261db0('0x253c')]=_0x86640f()[_0x261db0('0xcde')]([{'option':'Password','value':_0x261db0('0x1f39')},{'option':_0x261db0('0x2707'),'value':_0x261db0('0x2124')}],function(_0x5b6b38){var _0x177530=_0x261db0;return _0x86640f()[_0x177530('0x16e4')](_0x5b6b38[_0x177530('0x2228')],new RegExp('\x27','g'),'');}),_0x192994[_0x261db0('0x1c88')]=_0x49106d,_0x192994[_0x261db0('0x155c')]=_0x1acf08,_0x192994[_0x261db0('0x2593')]=_0x32caab,_0x192994['success']=_0x1a4867,_0x192994[_0x261db0('0x3d5')]=_0x4b7b71,_0x192994[_0x261db0('0x63a')]=_0x1a681a,_0x192994['deleteZendeskAccount']=_0x144f42,_0x192994['exportSelectedZendeskAccounts']=_0x385f94,_0x192994[_0x261db0('0x184c')]=_0xa9de26,_0x192994[_0x261db0('0x1a67')]=_0x38e557,_0x192994['selectAllZendeskAccounts']=_0x2fbd62;function _0x49106d(_0x46ce2d){var _0x4dfb54=_0x261db0;_0x3f1fec['go'](_0x4dfb54('0x1f64'),{'id':_0x46ce2d['id'],'zendeskAccount':_0x46ce2d,'crudPermissions':_0x192994[_0x4dfb54('0x5ed')]});}function _0x1acf08(_0x3d0a78){var _0x153145=_0x261db0;return _0x49cf3f['intZendeskAccount'][_0x153145('0x929')]({'id':_0x3d0a78['id'],'test':!![]})[_0x153145('0x1376')]['then'](function(){var _0x345f0d=_0x153145;_0x2250a6[_0x345f0d('0xdb1')]({'title':_0x345f0d('0xebe'),'msg':_0x345f0d('0x1c80')});})['catch'](function(_0x24bc27){var _0x523a5d=_0x153145;_0x2250a6['error']({'title':_0x523a5d('0xebe'),'msg':_0x24bc27[_0x523a5d('0x11c2')]?_0x24bc27[_0x523a5d('0x11c2')]['message']?_0x24bc27[_0x523a5d('0x11c2')][_0x523a5d('0x1224')]:JSON[_0x523a5d('0x25e')](_0x24bc27['data']):_0x24bc27[_0x523a5d('0x174f')]()});});}function _0x32caab(_0x295c31,_0x3628cf){var _0x33880f=_0x261db0,_0x47061f=_0x1907de[_0x33880f('0xa33')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x86640f()[_0x33880f('0x2159')](_0x33880f('0x84e'))+'?')['htmlContent'](''+(_0x295c31[_0x33880f('0x19fe')]||_0x33880f('0x84e'))+_0x33880f('0x2135')+_0x33880f('0x25e0'))[_0x33880f('0x7a7')](_0x33880f('0xa9a'))['targetEvent'](_0x3628cf)['ok']('OK')[_0x33880f('0x3b5')]('CANCEL');_0x1907de[_0x33880f('0x853')](_0x47061f)[_0x33880f('0x21ad')](function(){_0x144f42(_0x295c31);},function(){var _0x3d8fb9=_0x33880f;console[_0x3d8fb9('0x6fb')](_0x3d8fb9('0x284b'));});}var _0x3733b5=!![],_0x237192=0x1;_0xb04868['$watch']('vm.query.filter',function(_0x95c235,_0x4bb6cf){var _0x128e84=_0x261db0;_0x3733b5?_0x4f38fb(function(){_0x3733b5=![];}):(!_0x4bb6cf&&(_0x237192=_0x192994['query'][_0x128e84('0x2376')]),_0x95c235!==_0x4bb6cf&&(_0x192994[_0x128e84('0x77')][_0x128e84('0x2376')]=0x1),!_0x95c235&&(_0x192994['query'][_0x128e84('0x2376')]=_0x237192),_0x192994[_0x128e84('0x3d5')]());});function _0x1a4867(_0x4e5787){var _0x1bf79f=_0x261db0;_0x192994[_0x1bf79f('0x162b')]=_0x4e5787||{'count':0x0,'rows':[]};}function _0x4b7b71(){var _0x1c7ad4=_0x261db0;_0x192994[_0x1c7ad4('0x77')][_0x1c7ad4('0x15a5')]=(_0x192994[_0x1c7ad4('0x77')][_0x1c7ad4('0x2376')]-0x1)*_0x192994[_0x1c7ad4('0x77')][_0x1c7ad4('0x1f4a')],_0x3aa2ff[_0x1c7ad4('0x21de')](_0x1c7ad4('0x1bd8'))?_0x192994['promise']=_0x49cf3f['intZendeskAccount'][_0x1c7ad4('0x595')](_0x192994[_0x1c7ad4('0x77')],_0x1a4867)[_0x1c7ad4('0x1376')]:(_0x192994[_0x1c7ad4('0x77')]['id']=_0x192994['userProfile']['id'],_0x192994[_0x1c7ad4('0x77')][_0x1c7ad4('0x26ad')]=_0x1c7ad4('0x13e7'),_0x192994['promise']=_0x49cf3f[_0x1c7ad4('0x758')][_0x1c7ad4('0x321')](_0x192994[_0x1c7ad4('0x77')],_0x1a4867)[_0x1c7ad4('0x1376')]);}function _0x1a681a(_0x14a975,_0x581b2c){var _0x2ddfaf=_0x261db0;_0x1907de['show']({'controller':_0x2ddfaf('0x1ebf'),'controllerAs':'vm','templateUrl':_0x226d39,'parent':angular[_0x2ddfaf('0x1676')](_0x194b85[_0x2ddfaf('0x2452')]),'targetEvent':_0x14a975,'clickOutsideToClose':!![],'locals':{'zendeskAccount':_0x581b2c,'zendeskAccounts':_0x192994['zendeskAccounts']['rows'],'license':_0x192994[_0x2ddfaf('0x2ff')],'setting':_0x192994[_0x2ddfaf('0x21e')],'crudPermissions':_0x192994[_0x2ddfaf('0x5ed')]}});}function _0x144f42(_0x2e84a8){var _0x2e642a=_0x261db0;_0x49cf3f[_0x2e642a('0x2352')][_0x2e642a('0x1164')]({'id':_0x2e84a8['id']})[_0x2e642a('0x1376')][_0x2e642a('0x21ad')](function(){var _0x544b59=_0x2e642a;_0x86640f()['remove'](_0x192994[_0x544b59('0x162b')][_0x544b59('0x1b33')],{'id':_0x2e84a8['id']}),_0x192994[_0x544b59('0x162b')]['count']-=0x1,!_0x192994['zendeskAccounts'][_0x544b59('0x1b33')][_0x544b59('0x577')]&&_0x192994[_0x544b59('0x3d5')](),_0x2250a6[_0x544b59('0xdb1')]({'title':_0x86640f()['startCase'](_0x544b59('0xb0e'))+_0x544b59('0xe64'),'msg':_0x2e84a8[_0x544b59('0x19fe')]?_0x2e84a8[_0x544b59('0x19fe')]+_0x544b59('0xb4a'):''});})[_0x2e642a('0x1c1d')](function(_0x5bc0b9){var _0x1cda83=_0x2e642a;if(_0x5bc0b9[_0x1cda83('0x11c2')]&&_0x5bc0b9[_0x1cda83('0x11c2')]['errors']&&_0x5bc0b9[_0x1cda83('0x11c2')]['errors']['length']){_0x192994[_0x1cda83('0x1a69')]=_0x5bc0b9[_0x1cda83('0x11c2')][_0x1cda83('0x1a69')]||[{'message':_0x5bc0b9['toString'](),'type':_0x1cda83('0x6b7')}];for(var _0xb61827=0x0;_0xb61827<_0x5bc0b9[_0x1cda83('0x11c2')][_0x1cda83('0x1a69')][_0x1cda83('0x577')];_0xb61827++){_0x2250a6['error']({'title':_0x5bc0b9[_0x1cda83('0x11c2')][_0x1cda83('0x1a69')][_0xb61827][_0x1cda83('0x7fa')],'msg':_0x5bc0b9[_0x1cda83('0x11c2')]['errors'][_0xb61827]['message']});}}else _0x2250a6[_0x1cda83('0x2092')]({'title':_0x5bc0b9['status']?_0x1cda83('0x22d')+_0x5bc0b9[_0x1cda83('0x209')]+'\x20-\x20'+_0x5bc0b9[_0x1cda83('0x1808')]:_0x1cda83('0x6b7'),'msg':_0x5bc0b9[_0x1cda83('0x11c2')]?JSON[_0x1cda83('0x25e')](_0x5bc0b9[_0x1cda83('0x11c2')][_0x1cda83('0x1224')]):_0x5bc0b9[_0x1cda83('0x1224')]||_0x5bc0b9['toString']()});});}function _0x385f94(){var _0x346ec1=_0x261db0,_0x35ec86=angular[_0x346ec1('0xd75')](_0x192994[_0x346ec1('0x1635')]);return _0x192994[_0x346ec1('0x1635')]=[],_0x35ec86;}function _0xa9de26(_0x15d0eb){var _0x427cf9=_0x261db0,_0x3caac4=_0x1907de[_0x427cf9('0xa33')]()[_0x427cf9('0x4b4')](_0x427cf9('0x4dc'))['htmlContent'](''+_0x192994[_0x427cf9('0x1635')][_0x427cf9('0x577')]+_0x427cf9('0xd74')+_0x427cf9('0x25e0'))[_0x427cf9('0x7a7')](_0x427cf9('0x2751'))[_0x427cf9('0x1e6d')](_0x15d0eb)['ok']('OK')[_0x427cf9('0x3b5')](_0x427cf9('0x284b'));_0x1907de['show'](_0x3caac4)[_0x427cf9('0x21ad')](function(){var _0x32d469=_0x427cf9;_0x192994[_0x32d469('0x1635')][_0x32d469('0x1a52')](function(_0x32aae0){_0x144f42(_0x32aae0);}),_0x192994['selectedZendeskAccounts']=[];});}function _0x38e557(){var _0x37ae59=_0x261db0;_0x192994[_0x37ae59('0x1635')]=[];}function _0x2fbd62(){var _0x1834a5=_0x261db0;_0x192994['selectedZendeskAccounts']=_0x192994[_0x1834a5('0x162b')]['rows'];}}const _0xdd3928=_0x32e6b8;_0x507994[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$state','$location',_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0xc7e'),_0x3877e3('0x27cf'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x507994(_0x1143ba,_0x557076,_0x25ea57,_0x586692,_0x50bf61,_0xee0811,_0x3ef637,_0x4dd025,_0x1948cc,_0xecda6b,_0xb6ed67,_0x5367c5,_0x1d6c2f,_0x4f449c){var _0x441960=_0x3877e3,_0x4172b7=this;_0x4172b7[_0x441960('0x123f')]=_0xb6ed67[_0x441960('0x15ed')](),_0x4172b7[_0x441960('0x1a69')]=[],_0x4172b7['setting']=_0x1d6c2f,_0x4172b7[_0x441960('0x2ff')]=_0x5367c5,_0x4172b7[_0x441960('0x5ed')]=_0x4f449c,_0x4172b7[_0x441960('0x126a')]={},_0x4172b7[_0x441960('0x1432')]=_0x4172b7['setting']&&_0x4172b7['setting'][_0x441960('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4172b7[_0x441960('0x4b4')]='INTEGRATIONS.EDIT_ZOHOACCOUNT',_0x4172b7[_0x441960('0x27cf')]=angular[_0x441960('0xd75')](_0x1948cc),_0x4172b7[_0x441960('0xc7e')]=_0x4dd025,_0x4172b7[_0x441960('0x21c7')]=![];!_0x4172b7[_0x441960('0x27cf')]&&(_0x4172b7[_0x441960('0x27cf')]={'host':'zoho.com','zone':'EU','serverUrl':_0x25ea57[_0x441960('0x1162')]()+_0x441960('0x22a9')+_0x25ea57[_0x441960('0x1c01')]()+(_0x25ea57['port']()?':'+_0x25ea57['port']():'')},_0x4172b7[_0x441960('0x4b4')]='INTEGRATIONS.NEW_ZOHOACCOUNT',_0x4172b7[_0x441960('0x21c7')]=!![]);_0x4172b7[_0x441960('0x14ae')]=_0x471285,_0x4172b7[_0x441960('0x11af')]=_0x475756,_0x4172b7[_0x441960('0x25d9')]=_0x188974,_0x4172b7['getDateFromString']=_0x141f23,_0x4172b7[_0x441960('0x167')]=_0x4adbc2;function _0x471285(){var _0x504a73=_0x441960;_0x4172b7[_0x504a73('0x1a69')]=[],_0xecda6b[_0x504a73('0x19a4')][_0x504a73('0x186f')](_0x4172b7[_0x504a73('0x27cf')])['$promise']['then'](function(_0x5b3aab){var _0xfc42d8=_0x504a73;_0x4172b7['zohoAccounts'][_0xfc42d8('0xd0c')](_0x5b3aab[_0xfc42d8('0x3bc')]()),_0x3ef637[_0xfc42d8('0xdb1')]({'title':_0xfc42d8('0xd51'),'msg':_0x4172b7[_0xfc42d8('0x27cf')][_0xfc42d8('0x19fe')]?_0x4172b7[_0xfc42d8('0x27cf')][_0xfc42d8('0x19fe')]+_0xfc42d8('0x1694'):''}),_0x4adbc2(_0x5b3aab);})[_0x504a73('0x1c1d')](function(_0x4fa44f){var _0x39e3e9=_0x504a73;if(_0x4fa44f[_0x39e3e9('0x11c2')]&&_0x4fa44f[_0x39e3e9('0x11c2')][_0x39e3e9('0x1a69')]&&_0x4fa44f[_0x39e3e9('0x11c2')][_0x39e3e9('0x1a69')][_0x39e3e9('0x577')]){_0x4172b7[_0x39e3e9('0x1a69')]=_0x4fa44f[_0x39e3e9('0x11c2')][_0x39e3e9('0x1a69')]||[{'message':_0x4fa44f[_0x39e3e9('0x174f')](),'type':_0x39e3e9('0x1e24')}];for(var _0x576687=0x0;_0x576687<_0x4fa44f[_0x39e3e9('0x11c2')][_0x39e3e9('0x1a69')][_0x39e3e9('0x577')];_0x576687+=0x1){_0x3ef637[_0x39e3e9('0x2092')]({'title':_0x4fa44f[_0x39e3e9('0x11c2')][_0x39e3e9('0x1a69')][_0x576687][_0x39e3e9('0x7fa')],'msg':_0x4fa44f[_0x39e3e9('0x11c2')][_0x39e3e9('0x1a69')][_0x576687][_0x39e3e9('0x1224')]});}}else _0x3ef637[_0x39e3e9('0x2092')]({'title':_0x4fa44f[_0x39e3e9('0x209')]?_0x39e3e9('0x22d')+_0x4fa44f['status']+_0x39e3e9('0xa99')+_0x4fa44f[_0x39e3e9('0x1808')]:'api.intZohoAccount.save','msg':_0x4fa44f[_0x39e3e9('0x11c2')]?JSON[_0x39e3e9('0x25e')](_0x4fa44f[_0x39e3e9('0x11c2')]['message']):_0x4fa44f[_0x39e3e9('0x174f')]()});});}function _0x475756(){var _0x2824d0=_0x441960;_0x4172b7[_0x2824d0('0x1a69')]=[],_0xecda6b[_0x2824d0('0x19a4')][_0x2824d0('0x5ef')]({'id':_0x4172b7[_0x2824d0('0x27cf')]['id']},_0x4172b7[_0x2824d0('0x27cf')])[_0x2824d0('0x1376')][_0x2824d0('0x21ad')](function(_0x1778db){var _0x4d3927=_0x2824d0,_0x51dd71=_0x86640f()[_0x4d3927('0x1d2e')](_0x4172b7[_0x4d3927('0xc7e')],{'id':_0x1778db['id']});_0x51dd71&&_0x86640f()['merge'](_0x51dd71,_0x86640f()['pick'](_0x1778db['toJSON'](),_0x86640f()[_0x4d3927('0x223b')](_0x51dd71))),_0x3ef637[_0x4d3927('0xdb1')]({'title':_0x4d3927('0x24f1'),'msg':_0x4172b7['zohoAccount']['name']?_0x4172b7['zohoAccount'][_0x4d3927('0x19fe')]+_0x4d3927('0x2249'):''}),_0x4adbc2(_0x1778db);})['catch'](function(_0x5e6589){var _0x7a6f9b=_0x2824d0;if(_0x5e6589[_0x7a6f9b('0x11c2')]&&_0x5e6589[_0x7a6f9b('0x11c2')]['errors']&&_0x5e6589['data'][_0x7a6f9b('0x1a69')][_0x7a6f9b('0x577')]){_0x4172b7['errors']=_0x5e6589[_0x7a6f9b('0x11c2')][_0x7a6f9b('0x1a69')]||[{'message':_0x5e6589[_0x7a6f9b('0x174f')](),'type':_0x7a6f9b('0xdfc')}];for(var _0x37b33d=0x0;_0x37b33d<_0x5e6589[_0x7a6f9b('0x11c2')][_0x7a6f9b('0x1a69')]['length'];_0x37b33d++){_0x3ef637['error']({'title':_0x5e6589['data'][_0x7a6f9b('0x1a69')][_0x37b33d][_0x7a6f9b('0x7fa')],'msg':_0x5e6589['data'][_0x7a6f9b('0x1a69')][_0x37b33d][_0x7a6f9b('0x1224')]});}}else _0x3ef637[_0x7a6f9b('0x2092')]({'title':_0x5e6589[_0x7a6f9b('0x209')]?_0x7a6f9b('0x22d')+_0x5e6589[_0x7a6f9b('0x209')]+_0x7a6f9b('0xa99')+_0x5e6589['statusText']:'api.intZohoAccount.update','msg':_0x5e6589[_0x7a6f9b('0x11c2')]?JSON[_0x7a6f9b('0x25e')](_0x5e6589['data'][_0x7a6f9b('0x1224')]):_0x5e6589['toString']()});});}function _0x188974(_0x8a1cd8){var _0x282d53=_0x441960;_0x4172b7[_0x282d53('0x1a69')]=[];var _0xeca25e=_0x586692[_0x282d53('0xa33')]()[_0x282d53('0x4b4')](_0x282d53('0x196b'))[_0x282d53('0x13fb')](_0x282d53('0x2123'))[_0x282d53('0x7a7')](_0x282d53('0x226a'))['ok'](_0x282d53('0xbfd'))[_0x282d53('0x3b5')](_0x282d53('0x1f40'))[_0x282d53('0x1e6d')](_0x8a1cd8);_0x586692[_0x282d53('0x853')](_0xeca25e)[_0x282d53('0x21ad')](function(){var _0x10da19=_0x282d53;_0xecda6b[_0x10da19('0x19a4')][_0x10da19('0x1164')]({'id':_0x4172b7[_0x10da19('0x27cf')]['id']})[_0x10da19('0x1376')][_0x10da19('0x21ad')](function(){var _0x528b2e=_0x10da19;_0x86640f()['remove'](_0x4172b7[_0x528b2e('0xc7e')],{'id':_0x4172b7[_0x528b2e('0x27cf')]['id']}),_0x3ef637[_0x528b2e('0xdb1')]({'title':_0x528b2e('0x27d2'),'msg':(_0x4172b7[_0x528b2e('0x27cf')][_0x528b2e('0x19fe')]||_0x528b2e('0x27cf'))+_0x528b2e('0xb4a')}),_0x4adbc2(_0x4172b7[_0x528b2e('0x27cf')]);})[_0x10da19('0x1c1d')](function(_0x40c51a){var _0x246a15=_0x10da19;if(_0x40c51a[_0x246a15('0x11c2')]&&_0x40c51a['data'][_0x246a15('0x1a69')]&&_0x40c51a['data'][_0x246a15('0x1a69')][_0x246a15('0x577')]){_0x4172b7[_0x246a15('0x1a69')]=_0x40c51a[_0x246a15('0x11c2')][_0x246a15('0x1a69')]||[{'message':_0x40c51a[_0x246a15('0x174f')](),'type':_0x246a15('0x2232')}];for(var _0x1c5a9a=0x0;_0x1c5a9a<_0x40c51a[_0x246a15('0x11c2')][_0x246a15('0x1a69')][_0x246a15('0x577')];_0x1c5a9a++){_0x3ef637[_0x246a15('0x2092')]({'title':_0x40c51a[_0x246a15('0x11c2')][_0x246a15('0x1a69')][_0x1c5a9a][_0x246a15('0x7fa')],'msg':_0x40c51a[_0x246a15('0x11c2')][_0x246a15('0x1a69')][_0x1c5a9a][_0x246a15('0x1224')]});}}else _0x3ef637['error']({'title':_0x40c51a[_0x246a15('0x209')]?_0x246a15('0x22d')+_0x40c51a[_0x246a15('0x209')]+_0x246a15('0xa99')+_0x40c51a[_0x246a15('0x1808')]:_0x246a15('0x2232'),'msg':_0x40c51a['data']?JSON[_0x246a15('0x25e')](_0x40c51a[_0x246a15('0x11c2')]['message']):_0x40c51a[_0x246a15('0x1224')]||_0x40c51a[_0x246a15('0x174f')]()});});},function(){});}function _0x141f23(_0x2f2c70){return _0x2f2c70===null?undefined:new Date(_0x2f2c70);}function _0x4adbc2(_0x3eca30){var _0x3ceb98=_0x441960;_0x586692[_0x3ceb98('0x1c24')](_0x3eca30);}}const _0x36c38a=_0x507994,_0x27b4cf=_0x398308['p']+'src/js/modules/main/apps/integrations/views/zohoAccounts/edit/configurations/dialog.html/dialog-[chunkhash].html',_0xde9a70=_0x398308['p']+_0x3877e3('0x2132');_0x339294[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x15bc')];function _0x339294(_0x19f196,_0x5da414,_0xf4a68d,_0x52dd7b,_0x45b7d0){var _0x542681=_0x3877e3,_0x472810=this;_0x472810[_0x542681('0x123f')]=_0x45b7d0[_0x542681('0x15ed')](),_0x472810[_0x542681('0x27cf')]={},_0x472810[_0x542681('0x1633')]={},_0x472810[_0x542681('0x1ca3')]=[],_0x472810[_0x542681('0xbb2')]=-0x1,_0x472810[_0x542681('0x5ed')],_0x472810['init']=_0x94bc3d,_0x472810[_0x542681('0x14b2')]=_0x5f28b4,_0x472810[_0x542681('0x1211')]=_0x563218,_0x472810['deleteZohoConfiguration']=_0x1bd04b,_0x472810[_0x542681('0x15b0')]=_0x5de145;function _0x5de145(){var _0x2191c2=_0x542681;return _0xf4a68d[_0x2191c2('0xe96')][_0x2191c2('0x5ef')]({'id':_0x472810[_0x2191c2('0x1633')]['id']},_0x472810['zohoConfiguration'])[_0x2191c2('0x1376')]['then'](function(){var _0x2f09eb=_0x2191c2;_0x52dd7b[_0x2f09eb('0xdb1')]({'title':_0x2f09eb('0x1b87'),'msg':_0x2f09eb('0xd9')});})[_0x2191c2('0x1c1d')](function(_0x183ce6){var _0x571c35=_0x2191c2;_0x52dd7b[_0x571c35('0x2092')]({'title':_0x183ce6[_0x571c35('0x209')]?_0x571c35('0x22d')+_0x183ce6['status']+_0x571c35('0xa99')+_0x183ce6[_0x571c35('0x1808')]:'SYSTEM:UPDATECONFIGURATIONFIELD','msg':_0x183ce6[_0x571c35('0x11c2')]?JSON[_0x571c35('0x25e')](_0x183ce6[_0x571c35('0x11c2')]):_0x183ce6[_0x571c35('0x174f')]()});});}function _0x94bc3d(_0x2e039e,_0x28aa95){var _0x6e8daa=_0x542681;_0x472810[_0x6e8daa('0x27cf')]=_0x2e039e,_0x472810[_0x6e8daa('0x5ed')]=typeof _0x28aa95!==_0x6e8daa('0xddc')?_0x28aa95:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xf4a68d[_0x6e8daa('0x19a4')][_0x6e8daa('0xc44')]({'id':_0x472810[_0x6e8daa('0x27cf')]['id'],'sort':'-updatedAt'})[_0x6e8daa('0x1376')]['then'](function(_0x3b916b){var _0x4b5ded=_0x6e8daa;return _0x472810[_0x4b5ded('0x1ca3')]=_0x3b916b['rows']?_0x3b916b['rows']:[],_0x472810[_0x4b5ded('0x1ca3')][_0x4b5ded('0x577')]&&_0x472810[_0x4b5ded('0x14b2')](0x0),_0xf4a68d[_0x4b5ded('0x25bb')][_0x4b5ded('0x595')]({'nolimit':!![],'sort':'name'})[_0x4b5ded('0x1376')];})[_0x6e8daa('0x21ad')](function(_0x207a14){var _0x1a211c=_0x6e8daa;_0x472810['variables']=_0x207a14[_0x1a211c('0x1b33')]?_0x207a14['rows']:[],_0x472810['variablesById']=_0x86640f()[_0x1a211c('0xcde')](_0x472810[_0x1a211c('0x142d')],'id');})['catch'](function(_0x3f0a9c){var _0x1ff402=_0x6e8daa;_0x52dd7b[_0x1ff402('0x2092')]({'title':_0x3f0a9c[_0x1ff402('0x209')]?_0x1ff402('0x22d')+_0x3f0a9c[_0x1ff402('0x209')]+_0x1ff402('0xa99')+_0x3f0a9c['statusText']:'SYSTEM:GETCONFIGURATION','msg':_0x3f0a9c[_0x1ff402('0x11c2')]?JSON['stringify'](_0x3f0a9c[_0x1ff402('0x11c2')]):_0x3f0a9c[_0x1ff402('0x174f')]()});});}function _0x5f28b4(_0x4ee650){var _0x24e4c7=_0x542681;_0x472810[_0x24e4c7('0x1633')]=_0x472810[_0x24e4c7('0x1ca3')][_0x4ee650],_0x472810[_0x24e4c7('0xbb2')]=_0x4ee650,_0xf4a68d[_0x24e4c7('0xe96')]['getSubjects']({'id':_0x472810[_0x24e4c7('0x1633')]['id']})[_0x24e4c7('0x1376')][_0x24e4c7('0x21ad')](function(_0x42c392){var _0x177d90=_0x24e4c7;return _0x472810[_0x177d90('0x1033')]=_0x42c392[_0x177d90('0x1b33')]?_0x42c392[_0x177d90('0x1b33')]:[],_0xf4a68d[_0x177d90('0xe96')][_0x177d90('0x377')]({'id':_0x472810[_0x177d90('0x1633')]['id']})[_0x177d90('0x1376')];})['then'](function(_0x26176a){var _0x556e8f=_0x24e4c7;return _0x472810['descriptions']=_0x26176a[_0x556e8f('0x1b33')]?_0x26176a[_0x556e8f('0x1b33')]:[],_0xf4a68d[_0x556e8f('0xe96')][_0x556e8f('0x929')]({'id':_0x472810[_0x556e8f('0x1633')]['id']})[_0x556e8f('0x1376')];})[_0x24e4c7('0x21ad')](function(_0x1775a7){var _0x4aaa8b=_0x24e4c7;_0x472810['fields']=_0x1775a7[_0x4aaa8b('0x1b33')]?_0x1775a7['rows']:[];})[_0x24e4c7('0x1c1d')](function(_0x423d30){var _0x27cee9=_0x24e4c7;_0x52dd7b[_0x27cee9('0x2092')]({'title':_0x423d30[_0x27cee9('0x209')]?_0x27cee9('0x22d')+_0x423d30['status']+_0x27cee9('0xa99')+_0x423d30['statusText']:'SYSTEM:GETConfigurations','msg':_0x423d30['data']?JSON[_0x27cee9('0x25e')](_0x423d30['data']):_0x423d30[_0x27cee9('0x174f')]()});});}function _0x563218(_0x1fcc12,_0x727ac3){var _0x28c60c=_0x542681;_0x19f196[_0x28c60c('0x853')]({'controller':_0x28c60c('0x127e'),'controllerAs':'vm','templateUrl':_0x27b4cf,'parent':angular[_0x28c60c('0x1676')](_0x5da414[_0x28c60c('0x2452')]),'targetEvent':_0x1fcc12,'clickOutsideToClose':!![],'locals':{'zohoConfiguration':_0x727ac3,'configurations':_0x472810[_0x28c60c('0x1ca3')],'license':null,'setting':null,'crudPermissions':_0x472810['crudPermissions']}})[_0x28c60c('0x13e')](function(){var _0x579e18=_0x28c60c;_0x472810[_0x579e18('0x14b2')](0x0);});}function _0x1bd04b(_0x3778b4,_0x5a4dda){var _0x2bafea=_0x542681,_0xdc353b=_0x19f196['confirm']()[_0x2bafea('0x4b4')](_0x2bafea('0x1375'))[_0x2bafea('0x276b')](_0x2bafea('0x622')+(_0x5a4dda[_0x2bafea('0x19fe')]||_0x2bafea('0x1633'))+_0x2bafea('0x2135')+_0x2bafea('0x25e0'))[_0x2bafea('0x7a7')](_0x2bafea('0x86c'))[_0x2bafea('0x1e6d')](_0x3778b4)['ok']('OK')[_0x2bafea('0x3b5')]('CANCEL');_0x19f196[_0x2bafea('0x853')](_0xdc353b)[_0x2bafea('0x21ad')](function(){var _0x166a6b=_0x2bafea;_0xf4a68d[_0x166a6b('0xe96')][_0x166a6b('0x1164')]({'id':_0x5a4dda['id']})['$promise']['then'](function(){var _0x1ee447=_0x166a6b;_0x86640f()[_0x1ee447('0x16a2')](_0x472810[_0x1ee447('0x1ca3')],{'id':_0x5a4dda['id']}),_0x52dd7b[_0x1ee447('0xdb1')]({'title':_0x1ee447('0x5a7'),'msg':_0x5a4dda[_0x1ee447('0x19fe')]?_0x5a4dda['name']+_0x1ee447('0xb4a'):''});})[_0x166a6b('0x1c1d')](function(_0x1a5c8f){var _0x3c79f7=_0x166a6b;_0x52dd7b[_0x3c79f7('0x2092')]({'title':_0x1a5c8f['status']?_0x3c79f7('0x22d')+_0x1a5c8f[_0x3c79f7('0x209')]+_0x3c79f7('0xa99')+_0x1a5c8f['statusText']:_0x3c79f7('0x2336'),'msg':_0x1a5c8f[_0x3c79f7('0x11c2')]?JSON[_0x3c79f7('0x25e')](_0x1a5c8f[_0x3c79f7('0x11c2')]):_0x1a5c8f[_0x3c79f7('0x174f')]()});})[_0x166a6b('0x13e')](function(){var _0x837bd8=_0x166a6b;_0x472810[_0x837bd8('0x14b2')](0x0);});},function(){var _0x5999a5=_0x2bafea;console[_0x5999a5('0x6fb')](_0x5999a5('0x284b'));});}_0x472810[_0x542681('0x19ba')]=[],_0x472810[_0x542681('0x11de')]=_0x21713e,_0x472810[_0x542681('0x2203')]=_0x27b24f,_0x472810[_0x542681('0x858')]=_0x5569b6;function _0x21713e(_0x2aa8e5,_0x48000e){var _0x3a1655=_0x542681;_0x19f196[_0x3a1655('0x853')]({'controller':'CreateOrEditZohoAccountItemDialogController','controllerAs':'vm','templateUrl':_0xde9a70,'parent':angular['element'](_0x5da414['body']),'targetEvent':_0x2aa8e5,'clickOutsideToClose':!![],'locals':{'type':'subject','item':_0x48000e,'items':_0x472810[_0x3a1655('0x1033')],'configuration':_0x472810[_0x3a1655('0x1633')],'account':_0x472810[_0x3a1655('0x27cf')],'license':null,'setting':null,'crudPermissions':_0x472810[_0x3a1655('0x5ed')]}});}function _0x287835(_0x49d1ed){var _0xa673be=_0x542681;_0xf4a68d['intZohoField'][_0xa673be('0x1164')]({'id':_0x49d1ed['id']})['$promise'][_0xa673be('0x21ad')](function(){var _0x4058a1=_0xa673be;_0x86640f()[_0x4058a1('0x16a2')](_0x472810['subjects'],{'id':_0x49d1ed['id']}),_0x52dd7b[_0x4058a1('0xdb1')]({'title':_0x4058a1('0x17b8'),'msg':_0x4058a1('0x2cf')});})[_0xa673be('0x1c1d')](function(_0x4f90ca){var _0x3c6bcf=_0xa673be;_0x52dd7b[_0x3c6bcf('0x2092')]({'title':_0x4f90ca[_0x3c6bcf('0x209')]?_0x3c6bcf('0x22d')+_0x4f90ca['status']+'\x20-\x20'+_0x4f90ca[_0x3c6bcf('0x1808')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x4f90ca['data']?JSON[_0x3c6bcf('0x25e')](_0x4f90ca['data']):_0x4f90ca['toString']()});});}function _0x27b24f(_0x55691c,_0x27fd78){var _0x1c90e4=_0x542681,_0x58618d=_0x19f196[_0x1c90e4('0xa33')]()['title'](_0x1c90e4('0xe3a'))['htmlContent'](_0x1c90e4('0x2031')+_0x1c90e4('0x25e0'))[_0x1c90e4('0x7a7')](_0x1c90e4('0x566'))['targetEvent'](_0x55691c)['ok']('OK')[_0x1c90e4('0x3b5')](_0x1c90e4('0x284b'));_0x19f196[_0x1c90e4('0x853')](_0x58618d)['then'](function(){_0x287835(_0x27fd78);},function(){var _0x398862=_0x1c90e4;console['log'](_0x398862('0x284b'));});}function _0x5569b6(_0x38e0b6){var _0x1c5614=_0x542681,_0x10ecc3=_0x19f196[_0x1c5614('0xa33')]()[_0x1c5614('0x4b4')](_0x1c5614('0x6e8'))['htmlContent'](_0x1c5614('0x622')+_0x472810['selectedSubjects'][_0x1c5614('0x577')]+_0x1c5614('0xd74')+_0x1c5614('0x25e0'))[_0x1c5614('0x7a7')](_0x1c5614('0x1828'))[_0x1c5614('0x1e6d')](_0x38e0b6)['ok']('OK')['cancel']('CANCEL');_0x19f196[_0x1c5614('0x853')](_0x10ecc3)['then'](function(){var _0x29927f=_0x1c5614;_0x472810['selectedSubjects'][_0x29927f('0x1a52')](function(_0x22d6ce){_0x287835(_0x22d6ce);}),_0x472810[_0x29927f('0x19ba')]=[];});}_0x472810[_0x542681('0xbdf')]=[],_0x472810[_0x542681('0x1139')]=_0x1f435d,_0x472810[_0x542681('0x2378')]=_0x2400cc,_0x472810[_0x542681('0x1f80')]=_0x280923;function _0x1f435d(_0x91cd0a,_0x52cd05){var _0x74c80d=_0x542681;_0x19f196[_0x74c80d('0x853')]({'controller':_0x74c80d('0x2732'),'controllerAs':'vm','templateUrl':_0xde9a70,'parent':angular[_0x74c80d('0x1676')](_0x5da414['body']),'targetEvent':_0x91cd0a,'clickOutsideToClose':!![],'locals':{'type':_0x74c80d('0x1137'),'item':_0x52cd05,'items':_0x472810['descriptions'],'configuration':_0x472810['zohoConfiguration'],'account':_0x472810[_0x74c80d('0x27cf')],'license':null,'setting':null,'crudPermissions':_0x472810[_0x74c80d('0x5ed')]}});}function _0x425179(_0x3f4b4b){var _0x28bb56=_0x542681;_0xf4a68d[_0x28bb56('0x1af2')][_0x28bb56('0x1164')]({'id':_0x3f4b4b['id']})[_0x28bb56('0x1376')][_0x28bb56('0x21ad')](function(){var _0x1e403b=_0x28bb56;_0x86640f()[_0x1e403b('0x16a2')](_0x472810[_0x1e403b('0x2161')],{'id':_0x3f4b4b['id']}),_0x52dd7b[_0x1e403b('0xdb1')]({'title':_0x1e403b('0x1af8'),'msg':'Description\x20has\x20been\x20deleted!'});})[_0x28bb56('0x1c1d')](function(_0x46817f){var _0x2984aa=_0x28bb56;_0x52dd7b[_0x2984aa('0x2092')]({'title':_0x46817f[_0x2984aa('0x209')]?_0x2984aa('0x22d')+_0x46817f[_0x2984aa('0x209')]+'\x20-\x20'+_0x46817f['statusText']:_0x2984aa('0xede'),'msg':_0x46817f[_0x2984aa('0x11c2')]?JSON[_0x2984aa('0x25e')](_0x46817f[_0x2984aa('0x11c2')]):_0x46817f[_0x2984aa('0x174f')]()});});}function _0x2400cc(_0x3a1a12,_0x5c0876){var _0x44298d=_0x542681,_0x58de92=_0x19f196[_0x44298d('0xa33')]()[_0x44298d('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20description?')['htmlContent'](_0x44298d('0x4e6')+'\x20will\x20be\x20deleted.')[_0x44298d('0x7a7')]('delete\x20description')['targetEvent'](_0x3a1a12)['ok']('OK')['cancel'](_0x44298d('0x284b'));_0x19f196[_0x44298d('0x853')](_0x58de92)[_0x44298d('0x21ad')](function(){_0x425179(_0x5c0876);},function(){var _0x4fc41c=_0x44298d;console[_0x4fc41c('0x6fb')](_0x4fc41c('0x284b'));});}function _0x280923(_0x3fc5c0){var _0x501c44=_0x542681,_0x19b720=_0x19f196['confirm']()[_0x501c44('0x4b4')](_0x501c44('0x6e'))[_0x501c44('0x276b')](''+_0x472810[_0x501c44('0xbdf')][_0x501c44('0x577')]+'\x20selected'+_0x501c44('0x25e0'))[_0x501c44('0x7a7')](_0x501c44('0x211d'))[_0x501c44('0x1e6d')](_0x3fc5c0)['ok']('OK')[_0x501c44('0x3b5')]('CANCEL');_0x19f196[_0x501c44('0x853')](_0x19b720)[_0x501c44('0x21ad')](function(){var _0x4e80c9=_0x501c44;_0x472810[_0x4e80c9('0xbdf')][_0x4e80c9('0x1a52')](function(_0x90cd0b){_0x425179(_0x90cd0b);}),_0x472810[_0x4e80c9('0xbdf')]=[];});}_0x472810[_0x542681('0x21b0')]=[],_0x472810[_0x542681('0x97')]=_0x5c231f,_0x472810[_0x542681('0x222e')]=_0x24e348,_0x472810[_0x542681('0xe52')]=_0x27ae80;function _0x5c231f(_0x5c90bc,_0x3deec4){var _0x2550d1=_0x542681;_0x19f196['show']({'controller':'CreateOrEditZohoAccountItemDialogController','controllerAs':'vm','templateUrl':_0xde9a70,'parent':angular[_0x2550d1('0x1676')](_0x5da414['body']),'targetEvent':_0x5c90bc,'clickOutsideToClose':!![],'locals':{'type':'field','item':_0x3deec4,'items':_0x472810['fields'],'configuration':_0x472810[_0x2550d1('0x1633')],'account':_0x472810[_0x2550d1('0x27cf')],'license':null,'setting':null,'crudPermissions':_0x472810[_0x2550d1('0x5ed')]}});}function _0x45e094(_0xe02422){var _0x3f2f21=_0x542681;_0xf4a68d[_0x3f2f21('0x1af2')][_0x3f2f21('0x1164')]({'id':_0xe02422['id']})['$promise'][_0x3f2f21('0x21ad')](function(){var _0x45f716=_0x3f2f21;_0x86640f()[_0x45f716('0x16a2')](_0x472810[_0x45f716('0x181e')],{'id':_0xe02422['id']}),_0x52dd7b[_0x45f716('0xdb1')]({'title':_0x45f716('0x2321'),'msg':_0x45f716('0x2263')});})[_0x3f2f21('0x1c1d')](function(_0x5e2aa6){var _0x4bdb63=_0x3f2f21;_0x52dd7b[_0x4bdb63('0x2092')]({'title':_0x5e2aa6[_0x4bdb63('0x209')]?_0x4bdb63('0x22d')+_0x5e2aa6[_0x4bdb63('0x209')]+_0x4bdb63('0xa99')+_0x5e2aa6[_0x4bdb63('0x1808')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x5e2aa6[_0x4bdb63('0x11c2')]?JSON[_0x4bdb63('0x25e')](_0x5e2aa6[_0x4bdb63('0x11c2')]):_0x5e2aa6['toString']()});});}function _0x24e348(_0x4edf2e,_0x4bcd7c){var _0x59ff39=_0x542681,_0x271ac0=_0x19f196[_0x59ff39('0xa33')]()[_0x59ff39('0x4b4')](_0x59ff39('0x2207'))[_0x59ff39('0x276b')](_0x59ff39('0x171')+'\x20will\x20be\x20deleted.')[_0x59ff39('0x7a7')](_0x59ff39('0x238b'))[_0x59ff39('0x1e6d')](_0x4edf2e)['ok']('OK')[_0x59ff39('0x3b5')](_0x59ff39('0x284b'));_0x19f196[_0x59ff39('0x853')](_0x271ac0)[_0x59ff39('0x21ad')](function(){_0x45e094(_0x4bcd7c);},function(){var _0x3f22f6=_0x59ff39;console[_0x3f22f6('0x6fb')](_0x3f22f6('0x284b'));});}function _0x27ae80(_0x550934){var _0x3da9a8=_0x542681,_0x44d79e=_0x19f196['confirm']()[_0x3da9a8('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')[_0x3da9a8('0x276b')](_0x3da9a8('0x622')+_0x472810['selectedFields'][_0x3da9a8('0x577')]+_0x3da9a8('0xd74')+'\x20will\x20be\x20deleted.')[_0x3da9a8('0x7a7')](_0x3da9a8('0x85f'))['targetEvent'](_0x550934)['ok']('OK')['cancel'](_0x3da9a8('0x284b'));_0x19f196[_0x3da9a8('0x853')](_0x44d79e)[_0x3da9a8('0x21ad')](function(){var _0x12ca5e=_0x3da9a8;_0x472810[_0x12ca5e('0x21b0')]['forEach'](function(_0xde30){_0x45e094(_0xde30);}),_0x472810[_0x12ca5e('0x21b0')]=[];});}}const _0x13d93b=_0x339294;_0x3310f1['$inject']=['$scope',_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),'$mdDialog','$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),'configurations',_0x3877e3('0x1633'),'api',_0x3877e3('0x15bc'),'license',_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x3310f1(_0xe6cab3,_0x42bd6a,_0x57f035,_0x1dec22,_0x51ba3b,_0x146ab4,_0x4e58b6,_0xff5e9c,_0x4b8783,_0x402d6d,_0x4b2c55,_0x411a91,_0x2c9858,_0x7b669){var _0x579975=_0x3877e3,_0x5aa985=this;_0x5aa985[_0x579975('0x123f')]=_0x4b2c55['getCurrentUser'](),_0x5aa985[_0x579975('0x1a69')]=[],_0x5aa985['setting']=_0x2c9858,_0x5aa985[_0x579975('0x2ff')]=_0x411a91,_0x5aa985[_0x579975('0x5ed')]=_0x7b669,_0x5aa985['hasModulePermissions']={},_0x5aa985[_0x579975('0x1432')]=_0x5aa985[_0x579975('0x21e')]&&_0x5aa985[_0x579975('0x21e')][_0x579975('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5aa985[_0x579975('0x4b4')]=_0x579975('0xf32'),_0x5aa985[_0x579975('0x1633')]=angular[_0x579975('0xd75')](_0x4b8783),_0x5aa985[_0x579975('0x1ca3')]=_0xff5e9c,_0x5aa985[_0x579975('0xc9f')]=![];!_0x5aa985['zohoConfiguration']&&(_0x5aa985[_0x579975('0x1633')]={'channel':'voice','type':_0x579975('0x923')},_0x5aa985[_0x579975('0x4b4')]=_0x579975('0x818'),_0x5aa985[_0x579975('0xc9f')]=!![]);_0x5aa985['addNewZohoConfiguration']=_0x20a1bc,_0x5aa985[_0x579975('0x2749')]=_0x19a165,_0x5aa985[_0x579975('0x1ab9')]=_0x51116a,_0x5aa985[_0x579975('0x279')]=_0x4517eb,_0x5aa985[_0x579975('0x167')]=_0x2077f5;function _0x20a1bc(){var _0x50d053=_0x579975;_0x5aa985[_0x50d053('0x1a69')]=[],_0x402d6d[_0x50d053('0x19a4')][_0x50d053('0x1388')]({'id':_0x42bd6a['params']['id']},_0x5aa985['zohoConfiguration'])[_0x50d053('0x1376')][_0x50d053('0x21ad')](function(_0x4366cc){var _0x28378d=_0x50d053;_0x5aa985['configurations']['unshift'](_0x4366cc[_0x28378d('0x3bc')]()),_0x4e58b6[_0x28378d('0xdb1')]({'title':_0x28378d('0x16f2'),'msg':_0x5aa985[_0x28378d('0x1633')][_0x28378d('0x19fe')]?_0x5aa985[_0x28378d('0x1633')][_0x28378d('0x19fe')]+_0x28378d('0x1694'):''}),_0x2077f5(_0x4366cc);})[_0x50d053('0x1c1d')](function(_0xb13693){var _0x195851=_0x50d053;if(_0xb13693[_0x195851('0x11c2')]&&_0xb13693['data'][_0x195851('0x1a69')]&&_0xb13693[_0x195851('0x11c2')][_0x195851('0x1a69')][_0x195851('0x577')]){_0x5aa985['errors']=_0xb13693[_0x195851('0x11c2')]['errors']||[{'message':_0xb13693[_0x195851('0x174f')](),'type':_0x195851('0xa1f')}];for(var _0x3cb57f=0x0;_0x3cb57f<_0xb13693['data']['errors'][_0x195851('0x577')];_0x3cb57f+=0x1){_0x4e58b6[_0x195851('0x2092')]({'title':_0xb13693[_0x195851('0x11c2')][_0x195851('0x1a69')][_0x3cb57f][_0x195851('0x7fa')],'msg':_0xb13693[_0x195851('0x11c2')][_0x195851('0x1a69')][_0x3cb57f][_0x195851('0x1224')]});}}else _0x4e58b6[_0x195851('0x2092')]({'title':_0xb13693[_0x195851('0x209')]?_0x195851('0x22d')+_0xb13693[_0x195851('0x209')]+_0x195851('0xa99')+_0xb13693[_0x195851('0x1808')]:_0x195851('0xa1f'),'msg':_0xb13693['data']?JSON[_0x195851('0x25e')](_0xb13693[_0x195851('0x11c2')][_0x195851('0x1224')]):_0xb13693[_0x195851('0x174f')]()});});}function _0x19a165(){var _0x358563=_0x579975;_0x5aa985[_0x358563('0x1a69')]=[],_0x402d6d[_0x358563('0xe96')][_0x358563('0x5ef')]({'id':_0x5aa985[_0x358563('0x1633')]['id']},_0x5aa985[_0x358563('0x1633')])[_0x358563('0x1376')][_0x358563('0x21ad')](function(_0x10a05b){var _0x396926=_0x358563,_0x9f02e0=_0x86640f()['find'](_0x5aa985[_0x396926('0x1ca3')],{'id':_0x10a05b['id']});_0x9f02e0&&_0x86640f()[_0x396926('0xd0e')](_0x9f02e0,_0x86640f()[_0x396926('0xc50')](_0x10a05b['toJSON'](),_0x86640f()['keys'](_0x9f02e0))),_0x4e58b6['success']({'title':_0x396926('0x1eac'),'msg':_0x5aa985[_0x396926('0x1633')][_0x396926('0x19fe')]?_0x5aa985[_0x396926('0x1633')][_0x396926('0x19fe')]+_0x396926('0x2249'):''}),_0x2077f5(_0x10a05b);})['catch'](function(_0x3fc3d7){var _0x54c0d8=_0x358563;if(_0x3fc3d7[_0x54c0d8('0x11c2')]&&_0x3fc3d7['data'][_0x54c0d8('0x1a69')]&&_0x3fc3d7[_0x54c0d8('0x11c2')][_0x54c0d8('0x1a69')][_0x54c0d8('0x577')]){_0x5aa985[_0x54c0d8('0x1a69')]=_0x3fc3d7[_0x54c0d8('0x11c2')]['errors']||[{'message':_0x3fc3d7[_0x54c0d8('0x174f')](),'type':_0x54c0d8('0x1e41')}];for(var _0x2f3ecd=0x0;_0x2f3ecd<_0x3fc3d7[_0x54c0d8('0x11c2')][_0x54c0d8('0x1a69')][_0x54c0d8('0x577')];_0x2f3ecd++){_0x4e58b6[_0x54c0d8('0x2092')]({'title':_0x3fc3d7['data'][_0x54c0d8('0x1a69')][_0x2f3ecd][_0x54c0d8('0x7fa')],'msg':_0x3fc3d7[_0x54c0d8('0x11c2')]['errors'][_0x2f3ecd][_0x54c0d8('0x1224')]});}}else _0x4e58b6[_0x54c0d8('0x2092')]({'title':_0x3fc3d7[_0x54c0d8('0x209')]?'API:'+_0x3fc3d7[_0x54c0d8('0x209')]+'\x20-\x20'+_0x3fc3d7[_0x54c0d8('0x1808')]:_0x54c0d8('0x1e41'),'msg':_0x3fc3d7[_0x54c0d8('0x11c2')]?JSON[_0x54c0d8('0x25e')](_0x3fc3d7[_0x54c0d8('0x11c2')][_0x54c0d8('0x1224')]):_0x3fc3d7['toString']()});});}function _0x51116a(_0x555159){var _0x2c684e=_0x579975;_0x5aa985['errors']=[];var _0x2f7a85=_0x1dec22[_0x2c684e('0xa33')]()[_0x2c684e('0x4b4')](_0x2c684e('0x196b'))[_0x2c684e('0x13fb')](_0x2c684e('0xa14'))[_0x2c684e('0x7a7')](_0x2c684e('0x2862'))['ok'](_0x2c684e('0xbfd'))['cancel'](_0x2c684e('0x1f40'))[_0x2c684e('0x1e6d')](_0x555159);_0x1dec22[_0x2c684e('0x853')](_0x2f7a85)[_0x2c684e('0x21ad')](function(){var _0x3d44ea=_0x2c684e;_0x402d6d[_0x3d44ea('0xe96')][_0x3d44ea('0x1164')]({'id':_0x5aa985['zohoConfiguration']['id']})[_0x3d44ea('0x1376')][_0x3d44ea('0x21ad')](function(){var _0x50bd8a=_0x3d44ea;_0x86640f()[_0x50bd8a('0x16a2')](_0x5aa985[_0x50bd8a('0x1ca3')],{'id':_0x5aa985[_0x50bd8a('0x1633')]['id']}),_0x4e58b6[_0x50bd8a('0xdb1')]({'title':'ZohoConfiguration\x20properly\x20deleted!','msg':(_0x5aa985[_0x50bd8a('0x1633')]['name']||_0x50bd8a('0x1633'))+_0x50bd8a('0xb4a')}),_0x2077f5(_0x5aa985[_0x50bd8a('0x1633')]);})[_0x3d44ea('0x1c1d')](function(_0x1c0931){var _0x5bdc5d=_0x3d44ea;if(_0x1c0931[_0x5bdc5d('0x11c2')]&&_0x1c0931[_0x5bdc5d('0x11c2')][_0x5bdc5d('0x1a69')]&&_0x1c0931['data'][_0x5bdc5d('0x1a69')][_0x5bdc5d('0x577')]){_0x5aa985[_0x5bdc5d('0x1a69')]=_0x1c0931['data'][_0x5bdc5d('0x1a69')]||[{'message':_0x1c0931[_0x5bdc5d('0x174f')](),'type':'api.intZohoConfiguration.delete'}];for(var _0x1a40d7=0x0;_0x1a40d7<_0x1c0931['data'][_0x5bdc5d('0x1a69')][_0x5bdc5d('0x577')];_0x1a40d7++){_0x4e58b6[_0x5bdc5d('0x2092')]({'title':_0x1c0931[_0x5bdc5d('0x11c2')][_0x5bdc5d('0x1a69')][_0x1a40d7][_0x5bdc5d('0x7fa')],'msg':_0x1c0931[_0x5bdc5d('0x11c2')][_0x5bdc5d('0x1a69')][_0x1a40d7][_0x5bdc5d('0x1224')]});}}else _0x4e58b6['error']({'title':_0x1c0931['status']?'API:'+_0x1c0931[_0x5bdc5d('0x209')]+_0x5bdc5d('0xa99')+_0x1c0931[_0x5bdc5d('0x1808')]:_0x5bdc5d('0xf2b'),'msg':_0x1c0931[_0x5bdc5d('0x11c2')]?JSON[_0x5bdc5d('0x25e')](_0x1c0931[_0x5bdc5d('0x11c2')]['message']):_0x1c0931[_0x5bdc5d('0x1224')]||_0x1c0931['toString']()});});},function(){});}function _0x4517eb(_0x53ded7){return _0x53ded7===null?undefined:new Date(_0x53ded7);}function _0x2077f5(_0x3a3e48){var _0x436ec9=_0x579975;_0x1dec22[_0x436ec9('0x1c24')](_0x3a3e48);}}const _0x1ec3a1=_0x3310f1;_0x4ed202['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),_0x3877e3('0x1908'),_0x3877e3('0xb4f'),_0x3877e3('0x1b9a'),_0x3877e3('0x19ca'),_0x3877e3('0x1fd3'),_0x3877e3('0x7fa'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x4ed202(_0xece676,_0x3ee219,_0x29e27a,_0xdeb784,_0x3327d9,_0x4b97f0,_0x2e168d,_0x436ea8,_0x4ac3c8,_0x465046,_0x4a0a82,_0x172966,_0x482951){var _0x196c5f=_0x3877e3,_0x11feeb=this;_0x11feeb[_0x196c5f('0x123f')]=_0x172966[_0x196c5f('0x15ed')](),_0x11feeb['errors']=[],_0x11feeb['title']=_0x196c5f('0x177a')+_0x86640f()['toUpper'](_0x465046),_0x11feeb['item']=angular[_0x196c5f('0xd75')](_0x436ea8),_0x11feeb[_0x196c5f('0x1b9a')]=_0x2e168d,_0x11feeb[_0x196c5f('0x7fa')]=_0x465046,_0x11feeb[_0x196c5f('0x5ed')]=_0x482951,_0x11feeb[_0x196c5f('0xf8')]=![];!_0x11feeb[_0x196c5f('0x19ca')]&&(_0x11feeb[_0x196c5f('0x19ca')]={'type':_0x196c5f('0x2638')},_0x11feeb['item'][_0x86640f()[_0x196c5f('0x1b7e')](_0x465046)+'Id']=_0x4b97f0['id'],_0x11feeb[_0x196c5f('0x4b4')]='INTEGRATIONS.NEW_'+_0x86640f()[_0x196c5f('0x7c1')](_0x465046),_0x11feeb['newItem']=!![]);_0x11feeb['addNewItem']=_0x1e3e4c,_0x11feeb['saveItem']=_0x512c37,_0x11feeb[_0x196c5f('0x1c8')]=_0x5a5c24,_0x11feeb['getSelectedVariable']=_0x302c23,_0x11feeb[_0x196c5f('0x167')]=_0x283baf,_0x4a0a82['variable'][_0x196c5f('0x595')]({'nolimit':!![]})[_0x196c5f('0x1376')][_0x196c5f('0x21ad')](function(_0x32e675){var _0x2c682a=_0x196c5f;return _0x11feeb[_0x2c682a('0x142d')]=_0x32e675['rows']?_0x32e675[_0x2c682a('0x1b33')]:[],_0x4a0a82[_0x2c682a('0x9b6')]['describe']()['$promise'];})['then'](function(_0x4e1eb2){var _0x1cf14b=_0x196c5f;return _0x11feeb['voiceAgentReportColumns']=_0x86640f()['difference'](_0x86640f()[_0x1cf14b('0x223b')](_0x4e1eb2),[_0x1cf14b('0x1376'),_0x1cf14b('0x9f8'),_0x1cf14b('0x23ae'),_0x1cf14b('0x15af'),_0x1cf14b('0x1bdd')]),_0x11feeb[_0x1cf14b('0x22eb')][_0x1cf14b('0x206c')](_0x1cf14b('0x250a')),_0x4a0a82[_0x1cf14b('0x17bb')][_0x1cf14b('0x1219')]()[_0x1cf14b('0x1376')];})[_0x196c5f('0x21ad')](function(_0x410ec0){var _0x386b29=_0x196c5f;_0x11feeb[_0x386b29('0x1491')]=_0x86640f()['difference'](_0x86640f()[_0x386b29('0x223b')](_0x410ec0),[_0x386b29('0x1376'),_0x386b29('0x9f8'),_0x386b29('0x23ae'),_0x386b29('0x15af'),_0x386b29('0x1bdd')]),_0x11feeb[_0x386b29('0x1491')]['push'](_0x386b29('0x250a'));})[_0x196c5f('0x1c1d')](function(_0x420d20){var _0x539908=_0x196c5f;_0x3327d9['error']({'title':_0x420d20[_0x539908('0x209')]?_0x539908('0x22d')+_0x420d20[_0x539908('0x209')]+_0x539908('0xa99')+_0x420d20[_0x539908('0x1808')]:_0x539908('0x8f3'),'msg':_0x420d20[_0x539908('0x11c2')]?JSON['stringify'](_0x420d20[_0x539908('0x11c2')]):_0x420d20[_0x539908('0x174f')]()});}),_0x4a0a82[_0x196c5f('0x19a4')][_0x196c5f('0x929')]({'id':_0x4ac3c8['id'],'ticketType':_0x4b97f0['ticketType']?_0x4b97f0[_0x196c5f('0x257e')]:undefined})[_0x196c5f('0x1376')][_0x196c5f('0x21ad')](function(_0x70fbcf){var _0x148532=_0x196c5f;_0x11feeb[_0x148532('0x2097')]=!![],_0x11feeb[_0x148532('0x181e')]=_0x70fbcf[_0x148532('0x1b33')]?_0x70fbcf[_0x148532('0x1b33')]:[],_0x11feeb[_0x148532('0x19ca')]['idField']&&(_0x11feeb['customField']=_0x86640f()[_0x148532('0x1d2e')](_0x11feeb[_0x148532('0x181e')],{'id':_0x11feeb[_0x148532('0x19ca')][_0x148532('0x1830')]}));})[_0x196c5f('0x1c1d')](function(_0x5949c){var _0x1a38b7=_0x196c5f;_0x11feeb['accountConnected']=![],console[_0x1a38b7('0x2092')](_0x5949c);});function _0x1e3e4c(){var _0x23d08a=_0x196c5f;_0x11feeb['errors']=[],_0x11feeb[_0x23d08a('0x1fa7')]&&(_0x11feeb[_0x23d08a('0x19ca')][_0x23d08a('0x1830')]=_0x11feeb[_0x23d08a('0x1fa7')]['id'],_0x11feeb[_0x23d08a('0x19ca')]['nameField']=_0x11feeb['customField']['name'],_0x11feeb[_0x23d08a('0x19ca')][_0x23d08a('0x1fa7')]=_0x11feeb['customField'][_0x23d08a('0xf50')]),_0x4a0a82[_0x23d08a('0x1af2')][_0x23d08a('0x186f')](_0x11feeb[_0x23d08a('0x19ca')])[_0x23d08a('0x1376')][_0x23d08a('0x21ad')](function(_0x39fc11){var _0xa9c5e3=_0x23d08a;_0x11feeb[_0xa9c5e3('0x1b9a')][_0xa9c5e3('0xd0c')](_0x39fc11),_0x3327d9[_0xa9c5e3('0xdb1')]({'title':_0x86640f()[_0xa9c5e3('0x1b7e')](_0x465046)+'\x20properly\x20created','msg':_0x86640f()[_0xa9c5e3('0x1b7e')](_0x465046)+_0xa9c5e3('0x1694')}),_0x283baf();})[_0x23d08a('0x1c1d')](function(_0x10815c){var _0x1f42dc=_0x23d08a;console[_0x1f42dc('0x2092')](_0x10815c),_0x11feeb['errors']=_0x10815c[_0x1f42dc('0x11c2')][_0x1f42dc('0x1a69')]||[{'message':_0x10815c['toString'](),'type':'api.item.save'}];});}function _0x512c37(){var _0x1e9fcd=_0x196c5f;_0x11feeb['errors']=[],_0x11feeb[_0x1e9fcd('0x1fa7')]&&(_0x11feeb[_0x1e9fcd('0x19ca')][_0x1e9fcd('0x1830')]=_0x11feeb['customField']['id'],_0x11feeb[_0x1e9fcd('0x19ca')][_0x1e9fcd('0xb45')]=_0x11feeb[_0x1e9fcd('0x1fa7')]['name'],_0x11feeb[_0x1e9fcd('0x19ca')][_0x1e9fcd('0x1fa7')]=_0x11feeb['customField'][_0x1e9fcd('0xf50')]),_0x4a0a82[_0x1e9fcd('0x1af2')][_0x1e9fcd('0x5ef')]({'id':_0x11feeb[_0x1e9fcd('0x19ca')]['id']},_0x11feeb[_0x1e9fcd('0x19ca')])['$promise'][_0x1e9fcd('0x21ad')](function(_0x449947){var _0x2ef589=_0x1e9fcd,_0x25df40=_0x86640f()[_0x2ef589('0x1d2e')](_0x11feeb['items'],{'id':_0x449947['id']});_0x25df40&&_0x86640f()['merge'](_0x25df40,_0x449947),_0x3327d9[_0x2ef589('0xdb1')]({'title':_0x86640f()[_0x2ef589('0x1b7e')](_0x465046)+_0x2ef589('0x2a3'),'msg':_0x86640f()['capitalize'](_0x465046)+_0x2ef589('0x2249')}),_0x283baf();})[_0x1e9fcd('0x1c1d')](function(_0x2ea543){var _0x3f433a=_0x1e9fcd;console[_0x3f433a('0x2092')](_0x2ea543),_0x11feeb['errors']=_0x2ea543[_0x3f433a('0x11c2')]['errors']||[{'message':_0x2ea543[_0x3f433a('0x174f')](),'type':_0x3f433a('0x1488')}];});}function _0x5a5c24(_0x5ee0a6){var _0x13a177=_0x196c5f;_0x11feeb[_0x13a177('0x1a69')]=[];var _0x472cd2=_0xdeb784[_0x13a177('0xa33')]()[_0x13a177('0x4b4')](_0x13a177('0x196b'))[_0x13a177('0x13fb')](_0x13a177('0x15f2')+_0x465046+_0x13a177('0x25e0'))[_0x13a177('0x7a7')]('Delete\x20'+_0x86640f()['capitalize'](_0x465046))['ok'](_0x13a177('0xbfd'))[_0x13a177('0x3b5')](_0x13a177('0x1f40'))[_0x13a177('0x1e6d')](_0x5ee0a6);_0xdeb784[_0x13a177('0x853')](_0x472cd2)[_0x13a177('0x21ad')](function(){var _0x70e279=_0x13a177;_0x4a0a82['intZohoField'][_0x70e279('0x1164')]({'id':_0x11feeb[_0x70e279('0x19ca')]['id']})['$promise']['then'](function(){var _0x164f54=_0x70e279;_0x86640f()[_0x164f54('0x16a2')](_0x11feeb[_0x164f54('0x1b9a')],{'id':_0x11feeb[_0x164f54('0x19ca')]['id']}),_0x3327d9['success']({'title':_0x86640f()[_0x164f54('0x1b7e')](_0x465046)+_0x164f54('0x11b6'),'msg':_0x86640f()[_0x164f54('0x1b7e')](_0x465046)+'\x20has\x20been\x20deleted!'}),_0x283baf();})[_0x70e279('0x1c1d')](function(_0x1ace22){var _0x236182=_0x70e279;console[_0x236182('0x2092')](_0x1ace22),_0x11feeb[_0x236182('0x1a69')]=_0x1ace22[_0x236182('0x11c2')]['errors']||[{'message':_0x1ace22[_0x236182('0x174f')](),'type':_0x236182('0x2175')}];});},function(){});}function _0x302c23(){var _0x377c31=_0x196c5f;return _0x11feeb[_0x377c31('0x19ca')][_0x377c31('0x1651')]!==undefined?_0x11feeb[_0x377c31('0x19ca')][_0x377c31('0x1651')]:_0x377c31('0x17f7');}function _0x283baf(){var _0x15e1d2=_0x196c5f;_0xdeb784[_0x15e1d2('0x1c24')]();}}const _0x3c4c6f=_0x4ed202;_0x2c5e31['$inject']=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x13c1'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),'api',_0x3877e3('0x1908'),_0x3877e3('0x15bc'),'zohoAccount','userProfileSection'];function _0x2c5e31(_0xbde81c,_0x51df53,_0x399c7a,_0xfe9b0b,_0x50cba8,_0x2b26ab,_0x161d11,_0x17cfed,_0x3d301c,_0x40e7a,_0x4e9256,_0xd0b7ab){var _0x9e0e0d=_0x3877e3,_0x4e2439=this;_0x4e2439[_0x9e0e0d('0x123f')]=_0x40e7a[_0x9e0e0d('0x15ed')](),_0x4e2439[_0x9e0e0d('0x2ff')]=_0x2b26ab,_0x4e2439[_0x9e0e0d('0x21e')]=_0x161d11,_0x4e2439['passwordPattern']=_0x4e2439[_0x9e0e0d('0x21e')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4e2439[_0x9e0e0d('0x626')]=_0x51df53[_0x9e0e0d('0x1162')]()+_0x9e0e0d('0x22a9')+_0x51df53[_0x9e0e0d('0x1c01')](),_0x4e2439[_0x9e0e0d('0x27cf')]=_0x4e9256||_0xbde81c[_0x9e0e0d('0x171b')][_0x9e0e0d('0x27cf')]||{},_0x4e2439[_0x9e0e0d('0xab4')]=_0xd0b7ab&&_0xd0b7ab['count']==0x1?_0xd0b7ab['rows'][0x0]:null,_0x4e2439[_0x9e0e0d('0x5ed')]=_0x40e7a[_0x9e0e0d('0x1778')](_0x4e2439[_0x9e0e0d('0xab4')]?_0x4e2439[_0x9e0e0d('0xab4')][_0x9e0e0d('0x5ed')]:null),_0x4e2439['hasModulePermissions']={},_0x4e2439[_0x9e0e0d('0x302')]=_0xbde81c[_0x9e0e0d('0x171b')]['tab']||0x0,_0x4e2439[_0x9e0e0d('0x95b')]=_0x3d301c[_0x9e0e0d('0x231c')],_0x4e2439[_0x9e0e0d('0xc4b')]=_0x2dfc1d,_0x4e2439['saveZohoAccount']=_0x55cc96;function _0x2dfc1d(){var _0xd6327e=_0x9e0e0d;_0xbde81c['go'](_0xd6327e('0x76c'),{},{'reload':'app.integrations.zohoAccounts'});}function _0x55cc96(){var _0x23209a=_0x9e0e0d;_0x17cfed[_0x23209a('0x19a4')][_0x23209a('0x5ef')]({'id':_0x4e2439[_0x23209a('0x27cf')]['id']},_0x4e2439[_0x23209a('0x27cf')])[_0x23209a('0x1376')][_0x23209a('0x21ad')](function(){var _0x47d399=_0x23209a;_0x3d301c['success']({'title':_0x47d399('0xc9c'),'msg':_0x4e2439['zohoAccount'][_0x47d399('0x19fe')]?_0x4e2439[_0x47d399('0x27cf')][_0x47d399('0x19fe')]+_0x47d399('0xa8d'):''});})[_0x23209a('0x1c1d')](function(_0x24a7b4){var _0x53c23a=_0x23209a;_0x3d301c['error']({'title':_0x24a7b4['status']?_0x53c23a('0x22d')+_0x24a7b4['status']+'\x20-\x20'+_0x24a7b4[_0x53c23a('0x1808')]:_0x53c23a('0x21fc'),'msg':_0x24a7b4[_0x53c23a('0x11c2')]?JSON['stringify'](_0x24a7b4[_0x53c23a('0x11c2')]):_0x24a7b4['toString']()});});}}const _0x8e399d=_0x2c5e31,_0x177838=_0x398308['p']+_0x3877e3('0x1c74');_0x1e8d43[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$window',_0x3877e3('0xa9f'),_0x3877e3('0x2828'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),'$timeout',_0x3877e3('0x13c1'),_0x3877e3('0xc7e'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x1e8d43(_0x19a7a7,_0x3c1158,_0xb71a36,_0x31160d,_0xef6d01,_0x339036,_0x1765e8,_0x37a337,_0x5c61ba,_0x4bdbcb,_0x22f5fb,_0x2b8793,_0x1aba4,_0x418fe1,_0x406068,_0x28fabc,_0x3072ad){var _0x50dbb5=_0x3877e3,_0x5a8585=this;_0x5a8585[_0x50dbb5('0x2ff')]=_0x28fabc,_0x5a8585['setting']=_0x3072ad,_0x5a8585[_0x50dbb5('0x123f')]=_0x406068[_0x50dbb5('0x15ed')](),_0x5a8585[_0x50dbb5('0xc7e')]=_0x5c61ba||{'count':0x0,'rows':[]},_0x5a8585[_0x50dbb5('0x758')]=_0x4bdbcb,_0x5a8585[_0x50dbb5('0xab4')]=_0x22f5fb&&_0x22f5fb[_0x50dbb5('0x205f')]==0x1?_0x22f5fb[_0x50dbb5('0x1b33')][0x0]:null,_0x5a8585[_0x50dbb5('0x5ed')]=_0x406068[_0x50dbb5('0x1778')](_0x5a8585[_0x50dbb5('0xab4')]?_0x5a8585[_0x50dbb5('0xab4')][_0x50dbb5('0x5ed')]:null),_0x5a8585['table']=_0x50dbb5('0xc7e'),_0x5a8585['listOrder']='',_0x5a8585['listOrderAsc']=null,_0x5a8585['selectedZohoAccounts']=[],_0x5a8585[_0x50dbb5('0x77')]={'fields':_0x50dbb5('0x2316'),'limit':0xa,'page':0x1},_0x5a8585[_0x50dbb5('0x1b72')]=_0x86640f()[_0x50dbb5('0xcde')]([{'option':_0x50dbb5('0xb63'),'value':_0x50dbb5('0x1ca5')},{'option':_0x50dbb5('0x1c49'),'value':'\x27zoho.eu\x27'}],function(_0xe7316){var _0x17cafe=_0x50dbb5;return _0x86640f()[_0x17cafe('0x16e4')](_0xe7316[_0x17cafe('0x2228')],new RegExp('\x27','g'),'');}),_0x5a8585[_0x50dbb5('0xca1')]=_0x86640f()[_0x50dbb5('0xcde')]([{'option':'US','value':'\x27US\x27'},{'option':'AU','value':_0x50dbb5('0x25db')},{'option':'EU','value':'\x27EU\x27'},{'option':'IN','value':_0x50dbb5('0x23b2')},{'option':'CN','value':_0x50dbb5('0x2858')}],function(_0x189961){var _0x50827a=_0x50dbb5;return _0x86640f()[_0x50827a('0x16e4')](_0x189961[_0x50827a('0x2228')],new RegExp('\x27','g'),'');}),_0x5a8585[_0x50dbb5('0x1c88')]=_0x3594ae,_0x5a8585[_0x50dbb5('0x155c')]=_0x4179fd,_0x5a8585[_0x50dbb5('0x2593')]=_0x88986d,_0x5a8585[_0x50dbb5('0xdb1')]=_0x36f012,_0x5a8585['getZohoAccounts']=_0x4766b8,_0x5a8585['createOrEditZohoAccount']=_0x497e9f,_0x5a8585[_0x50dbb5('0x25d9')]=_0x59d8b1,_0x5a8585[_0x50dbb5('0x1b4a')]=_0x243891,_0x5a8585[_0x50dbb5('0x1b20')]=_0xd9ddcc,_0x5a8585[_0x50dbb5('0xb74')]=_0x5e7411,_0x5a8585['selectAllZohoAccounts']=_0x9986b7;function _0x3594ae(_0x5ee88e){var _0x5a81f3=_0x50dbb5;_0xb71a36['go'](_0x5a81f3('0x98b'),{'id':_0x5ee88e['id'],'zohoAccount':_0x5ee88e,'crudPermissions':_0x5a8585['crudPermissions']});}function _0x4179fd(_0x4a2b69){var _0x224cc9=_0x50dbb5;return _0x2b8793['intZohoAccount'][_0x224cc9('0x929')]({'id':_0x4a2b69['id'],'test':!![]})[_0x224cc9('0x1376')][_0x224cc9('0x21ad')](function(){var _0x4448fc=_0x224cc9;_0x418fe1[_0x4448fc('0xdb1')]({'title':_0x4448fc('0x5d7'),'msg':_0x4448fc('0x1c80')});})[_0x224cc9('0x1c1d')](function(_0xf861c8){var _0x3a6144=_0x224cc9;_0x418fe1[_0x3a6144('0x2092')]({'title':_0x3a6144('0x5d7'),'msg':_0xf861c8[_0x3a6144('0x11c2')]?_0xf861c8[_0x3a6144('0x11c2')][_0x3a6144('0x1224')]?_0xf861c8['data']['message']:JSON[_0x3a6144('0x25e')](_0xf861c8['data']):_0xf861c8['toString']()});});}function _0x88986d(_0x3bae5e,_0x4fdbe7){var _0x187125=_0x50dbb5,_0x5b1f77=_0xef6d01[_0x187125('0xa33')]()[_0x187125('0x4b4')](_0x187125('0x25b6')+_0x86640f()[_0x187125('0x2159')]('zohoAccount')+'?')['htmlContent'](_0x187125('0x622')+(_0x3bae5e[_0x187125('0x19fe')]||_0x187125('0x27cf'))+''+_0x187125('0x25e0'))['ariaLabel'](_0x187125('0xe1c'))['targetEvent'](_0x4fdbe7)['ok']('OK')[_0x187125('0x3b5')](_0x187125('0x284b'));_0xef6d01['show'](_0x5b1f77)[_0x187125('0x21ad')](function(){_0x59d8b1(_0x3bae5e);},function(){var _0x1bf28a=_0x187125;console[_0x1bf28a('0x6fb')](_0x1bf28a('0x284b'));});}var _0x55f792=!![],_0x5c0ac8=0x1;_0x19a7a7[_0x50dbb5('0x10e8')](_0x50dbb5('0x1948'),function(_0x23a99f,_0x37c294){var _0x17708d=_0x50dbb5;_0x55f792?_0x1765e8(function(){_0x55f792=![];}):(!_0x37c294&&(_0x5c0ac8=_0x5a8585['query'][_0x17708d('0x2376')]),_0x23a99f!==_0x37c294&&(_0x5a8585[_0x17708d('0x77')][_0x17708d('0x2376')]=0x1),!_0x23a99f&&(_0x5a8585['query'][_0x17708d('0x2376')]=_0x5c0ac8),_0x5a8585['getZohoAccounts']());});function _0x36f012(_0xd54ec4){_0x5a8585['zohoAccounts']=_0xd54ec4||{'count':0x0,'rows':[]};}function _0x4766b8(){var _0xcbb65e=_0x50dbb5;_0x5a8585[_0xcbb65e('0x77')][_0xcbb65e('0x15a5')]=(_0x5a8585[_0xcbb65e('0x77')][_0xcbb65e('0x2376')]-0x1)*_0x5a8585['query'][_0xcbb65e('0x1f4a')],_0x406068['hasRole'](_0xcbb65e('0x1bd8'))?_0x5a8585[_0xcbb65e('0x71b')]=_0x2b8793[_0xcbb65e('0x19a4')][_0xcbb65e('0x595')](_0x5a8585[_0xcbb65e('0x77')],_0x36f012)[_0xcbb65e('0x1376')]:(_0x5a8585[_0xcbb65e('0x77')]['id']=_0x5a8585[_0xcbb65e('0x758')]['id'],_0x5a8585[_0xcbb65e('0x77')][_0xcbb65e('0x26ad')]=_0xcbb65e('0xf28'),_0x5a8585['promise']=_0x2b8793['userProfile']['getResources'](_0x5a8585[_0xcbb65e('0x77')],_0x36f012)[_0xcbb65e('0x1376')]);}function _0x497e9f(_0x1e74d2,_0xb4af5e){var _0x82b7f5=_0x50dbb5;_0xef6d01[_0x82b7f5('0x853')]({'controller':_0x82b7f5('0x311'),'controllerAs':'vm','templateUrl':_0x177838,'parent':angular[_0x82b7f5('0x1676')](_0x339036[_0x82b7f5('0x2452')]),'targetEvent':_0x1e74d2,'clickOutsideToClose':!![],'locals':{'zohoAccount':_0xb4af5e,'zohoAccounts':_0x5a8585[_0x82b7f5('0xc7e')][_0x82b7f5('0x1b33')],'license':_0x5a8585[_0x82b7f5('0x2ff')],'setting':_0x5a8585['setting'],'crudPermissions':_0x5a8585[_0x82b7f5('0x5ed')]}});}function _0x59d8b1(_0x547b56){var _0x110224=_0x50dbb5;_0x2b8793['intZohoAccount'][_0x110224('0x1164')]({'id':_0x547b56['id']})['$promise'][_0x110224('0x21ad')](function(){var _0xd9e1f5=_0x110224;_0x86640f()['remove'](_0x5a8585[_0xd9e1f5('0xc7e')][_0xd9e1f5('0x1b33')],{'id':_0x547b56['id']}),_0x5a8585[_0xd9e1f5('0xc7e')][_0xd9e1f5('0x205f')]-=0x1,!_0x5a8585['zohoAccounts']['rows'][_0xd9e1f5('0x577')]&&_0x5a8585[_0xd9e1f5('0x178a')](),_0x418fe1[_0xd9e1f5('0xdb1')]({'title':_0x86640f()['startCase']('ZohoAccount')+_0xd9e1f5('0xe64'),'msg':_0x547b56[_0xd9e1f5('0x19fe')]?_0x547b56[_0xd9e1f5('0x19fe')]+_0xd9e1f5('0xb4a'):''});})[_0x110224('0x1c1d')](function(_0x3aa5d5){var _0xfd01a8=_0x110224;if(_0x3aa5d5[_0xfd01a8('0x11c2')]&&_0x3aa5d5['data'][_0xfd01a8('0x1a69')]&&_0x3aa5d5[_0xfd01a8('0x11c2')][_0xfd01a8('0x1a69')][_0xfd01a8('0x577')]){_0x5a8585[_0xfd01a8('0x1a69')]=_0x3aa5d5[_0xfd01a8('0x11c2')]['errors']||[{'message':_0x3aa5d5[_0xfd01a8('0x174f')](),'type':_0xfd01a8('0x242c')}];for(var _0x4963e2=0x0;_0x4963e2<_0x3aa5d5[_0xfd01a8('0x11c2')][_0xfd01a8('0x1a69')][_0xfd01a8('0x577')];_0x4963e2++){_0x418fe1['error']({'title':_0x3aa5d5[_0xfd01a8('0x11c2')][_0xfd01a8('0x1a69')][_0x4963e2][_0xfd01a8('0x7fa')],'msg':_0x3aa5d5['data'][_0xfd01a8('0x1a69')][_0x4963e2][_0xfd01a8('0x1224')]});}}else _0x418fe1['error']({'title':_0x3aa5d5[_0xfd01a8('0x209')]?_0xfd01a8('0x22d')+_0x3aa5d5['status']+_0xfd01a8('0xa99')+_0x3aa5d5['statusText']:_0xfd01a8('0x242c'),'msg':_0x3aa5d5['data']?JSON[_0xfd01a8('0x25e')](_0x3aa5d5[_0xfd01a8('0x11c2')]['message']):_0x3aa5d5['message']||_0x3aa5d5[_0xfd01a8('0x174f')]()});});}function _0x243891(){var _0x58a398=_0x50dbb5,_0x2f4645=angular[_0x58a398('0xd75')](_0x5a8585[_0x58a398('0x66f')]);return _0x5a8585[_0x58a398('0x66f')]=[],_0x2f4645;}function _0xd9ddcc(_0x122a69){var _0x25f599=_0x50dbb5,_0x22db92=_0xef6d01[_0x25f599('0xa33')]()[_0x25f599('0x4b4')](_0x25f599('0x2095'))[_0x25f599('0x276b')](''+_0x5a8585['selectedZohoAccounts'][_0x25f599('0x577')]+_0x25f599('0xd74')+'\x20will\x20be\x20deleted.')[_0x25f599('0x7a7')](_0x25f599('0x2143'))[_0x25f599('0x1e6d')](_0x122a69)['ok']('OK')[_0x25f599('0x3b5')](_0x25f599('0x284b'));_0xef6d01[_0x25f599('0x853')](_0x22db92)[_0x25f599('0x21ad')](function(){var _0x15d1a7=_0x25f599;_0x5a8585[_0x15d1a7('0x66f')]['forEach'](function(_0x1f2256){_0x59d8b1(_0x1f2256);}),_0x5a8585[_0x15d1a7('0x66f')]=[];});}function _0x5e7411(){var _0x34dd8e=_0x50dbb5;_0x5a8585[_0x34dd8e('0x66f')]=[];}function _0x9986b7(){var _0x10b4b6=_0x50dbb5;_0x5a8585['selectedZohoAccounts']=_0x5a8585[_0x10b4b6('0xc7e')]['rows'];}}const _0x12e171=_0x1e8d43;_0x596193[_0x3877e3('0x1a81')]=['$stateProvider',_0x3877e3('0x972')];function _0x596193(_0x1fafab,_0x2f164d){var _0x29b5bb=_0x3877e3;_0x1fafab[_0x29b5bb('0x27e')](_0x29b5bb('0x24e4'),{'abstract':!![],'url':_0x29b5bb('0x257f')})['state'](_0x29b5bb('0x21e8'),{'url':_0x29b5bb('0x256a'),'views':{'content@app':{'templateUrl':_0x5ba084,'controller':_0x29b5bb('0x1ea3')}},'resolve':{'zendeskAccounts':[_0x29b5bb('0x354'),'Auth',function _0x4032b4(_0x352fff,_0x188703){var _0x2f9a28=_0x29b5bb;return _0x188703['hasRole'](_0x2f9a28('0x1bd8'))?_0x352fff[_0x2f9a28('0x8ac')]('intZendeskAccount@get',{'fields':'createdAt,updatedAt,id,name,type,username,remoteUri,authType,password,token,serverUrl,description','limit':0xa,'offset':0x0}):_0x352fff[_0x2f9a28('0x8ac')](_0x2f9a28('0x52f'),{'id':_0x188703[_0x2f9a28('0x15ed')]()[_0x2f9a28('0x1618')],'section':_0x2f9a28('0x13e7'),'fields':_0x2f9a28('0x22a8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x29b5bb('0x354'),_0x29b5bb('0x15bc'),function _0x162dc0(_0x961c11,_0x59c859){var _0x13ddab=_0x29b5bb;return _0x59c859['hasRole']('admin')?null:_0x961c11['resolve']('userProfile@get',{'fields':_0x13ddab('0x1a00'),'id':_0x59c859[_0x13ddab('0x15ed')]()[_0x13ddab('0x1618')]});}],'userProfileSection':[_0x29b5bb('0x354'),_0x29b5bb('0x15bc'),function _0x16da51(_0xf0bef6,_0x2fd5f1){var _0x5ef829=_0x29b5bb;return _0x2fd5f1[_0x5ef829('0x21de')]('admin')?null:_0xf0bef6['resolve']('userProfileSection@get',{'fields':_0x5ef829('0x1852'),'userProfileId':_0x2fd5f1[_0x5ef829('0x15ed')]()[_0x5ef829('0x1618')],'sectionId':0x515});}]},'authenticate':!![],'permissionId':0x515,'bodyClass':_0x29b5bb('0x1756')})['state'](_0x29b5bb('0x1f64'),{'url':_0x29b5bb('0x17f5'),'params':{'zendeskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x40d2ae,'controller':'ZendeskAccountController\x20as\x20vm'}},'resolve':{'zendeskAccount':[_0x29b5bb('0x354'),'$stateParams',function _0x4cec48(_0x5d9ea8,_0x29807e){var _0x58f1e7=_0x29b5bb;return _0x5d9ea8[_0x58f1e7('0x8ac')](_0x58f1e7('0x2260'),{'fields':'createdAt,updatedAt,id,name,type,username,remoteUri,authType,password,token,serverUrl,description','id':_0x29807e['id']});}],'userProfileSection':['apiResolver','Auth',function _0x104749(_0x529ac0,_0x47a017){var _0xbd238f=_0x29b5bb;return _0x529ac0[_0xbd238f('0x8ac')](_0xbd238f('0x222f'),{'fields':_0xbd238f('0x1852'),'userProfileId':_0x47a017[_0xbd238f('0x15ed')]()[_0xbd238f('0x1618')],'sectionId':0x515});}]},'authenticate':!![],'permissionId':0x515,'bodyClass':_0x29b5bb('0x1756')})[_0x29b5bb('0x27e')](_0x29b5bb('0x396'),{'url':_0x29b5bb('0x1489'),'views':{'content@app':{'templateUrl':_0x3dda7e,'controller':'SalesforceAccountsController\x20as\x20vm'}},'resolve':{'salesforceAccounts':['apiResolver',_0x29b5bb('0x15bc'),function _0x2978f9(_0x2426e5,_0x37dd16){var _0x348dbc=_0x29b5bb;return _0x37dd16[_0x348dbc('0x21de')](_0x348dbc('0x1bd8'))?_0x2426e5[_0x348dbc('0x8ac')](_0x348dbc('0x26c7'),{'fields':_0x348dbc('0x22e0'),'limit':0xa,'offset':0x0}):_0x2426e5[_0x348dbc('0x8ac')]('userProfile@getResources',{'id':_0x37dd16['getCurrentUser']()[_0x348dbc('0x1618')],'section':'SalesforceAccounts','fields':_0x348dbc('0x22e0'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x29b5bb('0x15bc'),function _0x52f77d(_0x154677,_0x20239c){var _0x24eddd=_0x29b5bb;return _0x20239c[_0x24eddd('0x21de')](_0x24eddd('0x1bd8'))?null:_0x154677[_0x24eddd('0x8ac')](_0x24eddd('0x1e1d'),{'fields':'id,name,crudPermissions','id':_0x20239c['getCurrentUser']()[_0x24eddd('0x1618')]});}],'userProfileSection':[_0x29b5bb('0x354'),_0x29b5bb('0x15bc'),function _0x582a18(_0x206d68,_0xada240){var _0x4b7616=_0x29b5bb;return _0xada240[_0x4b7616('0x21de')](_0x4b7616('0x1bd8'))?null:_0x206d68[_0x4b7616('0x8ac')](_0x4b7616('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xada240[_0x4b7616('0x15ed')]()['userProfileId'],'sectionId':0x516});}]},'authenticate':!![],'permissionId':0x516,'bodyClass':_0x29b5bb('0x1756')})[_0x29b5bb('0x27e')](_0x29b5bb('0x22c'),{'url':_0x29b5bb('0x17f5'),'params':{'salesforceAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x320f8b,'controller':_0x29b5bb('0x2bc')}},'resolve':{'salesforceAccount':[_0x29b5bb('0x354'),_0x29b5bb('0x114e'),function _0x212518(_0x1040ef,_0x2f4ab2){var _0x13990c=_0x29b5bb;return _0x1040ef[_0x13990c('0x8ac')](_0x13990c('0x26c7'),{'fields':_0x13990c('0x22e0'),'id':_0x2f4ab2['id']});}],'userProfileSection':['apiResolver',_0x29b5bb('0x15bc'),function _0x9261b(_0x12ba0f,_0x2a6e89){var _0x4bc4d3=_0x29b5bb;return _0x12ba0f[_0x4bc4d3('0x8ac')](_0x4bc4d3('0x222f'),{'fields':_0x4bc4d3('0x1852'),'userProfileId':_0x2a6e89[_0x4bc4d3('0x15ed')]()['userProfileId'],'sectionId':0x516});}]},'authenticate':!![],'permissionId':0x516,'bodyClass':'integrations'})['state'](_0x29b5bb('0x27d5'),{'url':'/freshdeskAccounts','views':{'content@app':{'templateUrl':_0x2bbd39,'controller':_0x29b5bb('0x16b4')}},'resolve':{'freshdeskAccounts':[_0x29b5bb('0x354'),_0x29b5bb('0x15bc'),function _0x58c709(_0x263656,_0x13da56){var _0x2f2515=_0x29b5bb;return _0x13da56['hasRole'](_0x2f2515('0x1bd8'))?_0x263656[_0x2f2515('0x8ac')](_0x2f2515('0x16b2'),{'fields':_0x2f2515('0xe95'),'limit':0xa,'offset':0x0}):_0x263656['resolve']('userProfile@getResources',{'id':_0x13da56[_0x2f2515('0x15ed')]()[_0x2f2515('0x1618')],'section':_0x2f2515('0x523'),'fields':_0x2f2515('0xe95'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x29b5bb('0x354'),_0x29b5bb('0x15bc'),function _0x23c274(_0x2f7f32,_0x18fe0c){var _0x35ec50=_0x29b5bb;return _0x18fe0c['hasRole'](_0x35ec50('0x1bd8'))?null:_0x2f7f32[_0x35ec50('0x8ac')](_0x35ec50('0x1e1d'),{'fields':_0x35ec50('0x1a00'),'id':_0x18fe0c[_0x35ec50('0x15ed')]()['userProfileId']});}],'userProfileSection':[_0x29b5bb('0x354'),'Auth',function _0xabca10(_0x493861,_0x385b0d){var _0x3518ad=_0x29b5bb;return _0x385b0d['hasRole'](_0x3518ad('0x1bd8'))?null:_0x493861['resolve'](_0x3518ad('0x222f'),{'fields':_0x3518ad('0x1852'),'userProfileId':_0x385b0d[_0x3518ad('0x15ed')]()[_0x3518ad('0x1618')],'sectionId':0x517});}]},'authenticate':!![],'permissionId':0x517,'bodyClass':'integrations'})[_0x29b5bb('0x27e')](_0x29b5bb('0xd4'),{'url':_0x29b5bb('0x17f5'),'params':{'freshdeskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x11de1a,'controller':_0x29b5bb('0x19bb')}},'resolve':{'freshdeskAccount':['apiResolver',_0x29b5bb('0x114e'),function _0x46e003(_0x1f5c30,_0x14ffee){var _0x2085a4=_0x29b5bb;return _0x1f5c30['resolve'](_0x2085a4('0x16b2'),{'fields':'createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','id':_0x14ffee['id']});}],'userProfileSection':[_0x29b5bb('0x354'),'Auth',function _0x5989ef(_0x464003,_0x4e6ed2){var _0x539b0d=_0x29b5bb;return _0x464003['resolve'](_0x539b0d('0x222f'),{'fields':_0x539b0d('0x1852'),'userProfileId':_0x4e6ed2[_0x539b0d('0x15ed')]()['userProfileId'],'sectionId':0x517});}]},'authenticate':!![],'permissionId':0x517,'bodyClass':_0x29b5bb('0x1756')})[_0x29b5bb('0x27e')](_0x29b5bb('0x19fa'),{'url':_0x29b5bb('0x1691'),'views':{'content@app':{'templateUrl':_0x43f9d4,'controller':'SugarcrmAccountsController\x20as\x20vm'}},'resolve':{'sugarcrmAccounts':[_0x29b5bb('0x354'),_0x29b5bb('0x15bc'),function _0x46ae5c(_0x58b132,_0x26f35f){var _0x495ade=_0x29b5bb;return _0x26f35f['hasRole'](_0x495ade('0x1bd8'))?_0x58b132[_0x495ade('0x8ac')](_0x495ade('0x18d2'),{'fields':'createdAt,updatedAt,id,name,username,remoteUri,password,serverUrl,description','limit':0xa,'offset':0x0}):_0x58b132[_0x495ade('0x8ac')]('userProfile@getResources',{'id':_0x26f35f[_0x495ade('0x15ed')]()[_0x495ade('0x1618')],'section':_0x495ade('0x24ec'),'fields':_0x495ade('0xe58'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x29b5bb('0x354'),_0x29b5bb('0x15bc'),function _0x44813a(_0x5e5cce,_0x21b51d){var _0x569e2c=_0x29b5bb;return _0x21b51d[_0x569e2c('0x21de')](_0x569e2c('0x1bd8'))?null:_0x5e5cce[_0x569e2c('0x8ac')](_0x569e2c('0x1e1d'),{'fields':_0x569e2c('0x1a00'),'id':_0x21b51d['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x29b5bb('0x354'),'Auth',function _0xe375af(_0x3a9219,_0x4a19e4){var _0xb50779=_0x29b5bb;return _0x4a19e4[_0xb50779('0x21de')](_0xb50779('0x1bd8'))?null:_0x3a9219['resolve'](_0xb50779('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x4a19e4[_0xb50779('0x15ed')]()[_0xb50779('0x1618')],'sectionId':0x519});}]},'authenticate':!![],'permissionId':0x519,'bodyClass':'integrations'})[_0x29b5bb('0x27e')](_0x29b5bb('0xdcf'),{'url':_0x29b5bb('0x17f5'),'params':{'sugarcrmAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1e8bc7,'controller':_0x29b5bb('0x2068')}},'resolve':{'sugarcrmAccount':[_0x29b5bb('0x354'),'$stateParams',function _0x2c9ad5(_0x670d02,_0x39be3e){var _0x519992=_0x29b5bb;return _0x670d02[_0x519992('0x8ac')](_0x519992('0x18d2'),{'fields':_0x519992('0xe58'),'id':_0x39be3e['id']});}],'userProfileSection':['apiResolver',_0x29b5bb('0x15bc'),function _0x4bb98e(_0x4c0e2b,_0x35e48c){var _0x114b9f=_0x29b5bb;return _0x4c0e2b[_0x114b9f('0x8ac')](_0x114b9f('0x222f'),{'fields':_0x114b9f('0x1852'),'userProfileId':_0x35e48c['getCurrentUser']()[_0x114b9f('0x1618')],'sectionId':0x519});}]},'authenticate':!![],'permissionId':0x519,'bodyClass':_0x29b5bb('0x1756')})[_0x29b5bb('0x27e')](_0x29b5bb('0x1bc8'),{'url':_0x29b5bb('0x18e6'),'views':{'content@app':{'templateUrl':_0x4b8ca7,'controller':_0x29b5bb('0x8fa')}},'resolve':{'deskAccounts':['apiResolver',_0x29b5bb('0x15bc'),function _0x3967c4(_0x29818b,_0x218d3a){var _0x1a1585=_0x29b5bb;return _0x218d3a[_0x1a1585('0x21de')]('admin')?_0x29818b[_0x1a1585('0x8ac')]('intDeskAccount@get',{'fields':_0x1a1585('0x401'),'limit':0xa,'offset':0x0}):_0x29818b[_0x1a1585('0x8ac')](_0x1a1585('0x52f'),{'id':_0x218d3a['getCurrentUser']()[_0x1a1585('0x1618')],'section':'DeskAccounts','fields':_0x1a1585('0x401'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x29b5bb('0x354'),_0x29b5bb('0x15bc'),function _0x1a7cf6(_0x5bee8c,_0x2a538c){var _0xe49b4b=_0x29b5bb;return _0x2a538c[_0xe49b4b('0x21de')](_0xe49b4b('0x1bd8'))?null:_0x5bee8c[_0xe49b4b('0x8ac')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x2a538c[_0xe49b4b('0x15ed')]()[_0xe49b4b('0x1618')]});}],'userProfileSection':['apiResolver','Auth',function _0x27e03c(_0xad2cdc,_0x1db2c3){var _0x319fd4=_0x29b5bb;return _0x1db2c3[_0x319fd4('0x21de')](_0x319fd4('0x1bd8'))?null:_0xad2cdc[_0x319fd4('0x8ac')](_0x319fd4('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1db2c3['getCurrentUser']()['userProfileId'],'sectionId':0x51a});}]},'authenticate':!![],'permissionId':0x51a,'bodyClass':_0x29b5bb('0x1756')})[_0x29b5bb('0x27e')](_0x29b5bb('0x26a3'),{'url':_0x29b5bb('0x17f5'),'params':{'deskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xcc7a91,'controller':_0x29b5bb('0x447')}},'resolve':{'deskAccount':[_0x29b5bb('0x354'),_0x29b5bb('0x114e'),function _0x1ba927(_0x135788,_0x5c5e7c){var _0x2a057c=_0x29b5bb;return _0x135788[_0x2a057c('0x8ac')]('intDeskAccount@get',{'fields':_0x2a057c('0x401'),'id':_0x5c5e7c['id']});}],'userProfileSection':['apiResolver',_0x29b5bb('0x15bc'),function _0x53230a(_0x452192,_0xa7e4){var _0x1d9a8c=_0x29b5bb;return _0x452192[_0x1d9a8c('0x8ac')]('userProfileSection@get',{'fields':_0x1d9a8c('0x1852'),'userProfileId':_0xa7e4['getCurrentUser']()[_0x1d9a8c('0x1618')],'sectionId':0x51a});}]},'authenticate':!![],'permissionId':0x51a,'bodyClass':_0x29b5bb('0x1756')})['state'](_0x29b5bb('0x76c'),{'url':_0x29b5bb('0xaec'),'views':{'content@app':{'templateUrl':_0x12fd53,'controller':_0x29b5bb('0x1fcb')}},'resolve':{'zohoAccounts':[_0x29b5bb('0x354'),_0x29b5bb('0x15bc'),function _0x19bfd9(_0x2fbb13,_0x3ade0e){var _0x4da250=_0x29b5bb;return _0x3ade0e[_0x4da250('0x21de')](_0x4da250('0x1bd8'))?_0x2fbb13[_0x4da250('0x8ac')](_0x4da250('0x11e3'),{'fields':_0x4da250('0x2316'),'limit':0xa,'offset':0x0}):_0x2fbb13[_0x4da250('0x8ac')](_0x4da250('0x52f'),{'id':_0x3ade0e[_0x4da250('0x15ed')]()[_0x4da250('0x1618')],'section':_0x4da250('0xf28'),'fields':_0x4da250('0x2316'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x29b5bb('0x15bc'),function _0x304a93(_0x3c1f59,_0x543834){var _0x4d4127=_0x29b5bb;return _0x543834[_0x4d4127('0x21de')]('admin')?null:_0x3c1f59[_0x4d4127('0x8ac')](_0x4d4127('0x1e1d'),{'fields':_0x4d4127('0x1a00'),'id':_0x543834[_0x4d4127('0x15ed')]()[_0x4d4127('0x1618')]});}],'userProfileSection':[_0x29b5bb('0x354'),_0x29b5bb('0x15bc'),function _0x36f96d(_0x482a98,_0x54eea6){var _0x968bc4=_0x29b5bb;return _0x54eea6[_0x968bc4('0x21de')](_0x968bc4('0x1bd8'))?null:_0x482a98['resolve'](_0x968bc4('0x222f'),{'fields':_0x968bc4('0x1852'),'userProfileId':_0x54eea6[_0x968bc4('0x15ed')]()[_0x968bc4('0x1618')],'sectionId':0x51b});}]},'authenticate':!![],'permissionId':0x51b,'bodyClass':_0x29b5bb('0x1756')})[_0x29b5bb('0x27e')]('app.integrations.zohoAccounts.edit',{'url':'/:id?tab','params':{'zohoAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x80d3d5,'controller':_0x29b5bb('0x2795')}},'resolve':{'zohoAccount':[_0x29b5bb('0x354'),_0x29b5bb('0x114e'),function _0x59127b(_0x25534c,_0x1f9f3e){var _0x1d148f=_0x29b5bb;return _0x25534c[_0x1d148f('0x8ac')](_0x1d148f('0x11e3'),{'fields':_0x1d148f('0x2316'),'id':_0x1f9f3e['id']});}],'userProfileSection':['apiResolver',_0x29b5bb('0x15bc'),function _0x1a6d3f(_0x44121b,_0x343158){var _0x14e892=_0x29b5bb;return _0x44121b[_0x14e892('0x8ac')](_0x14e892('0x222f'),{'fields':_0x14e892('0x1852'),'userProfileId':_0x343158[_0x14e892('0x15ed')]()[_0x14e892('0x1618')],'sectionId':0x51b});}]},'authenticate':!![],'permissionId':0x51b,'bodyClass':_0x29b5bb('0x1756')})['state']('app.integrations.vtigerAccounts',{'url':'/vtigerAccounts','views':{'content@app':{'templateUrl':_0x4afde1,'controller':_0x29b5bb('0x9fb')}},'resolve':{'vtigerAccounts':[_0x29b5bb('0x354'),'Auth',function _0x3a91be(_0x298050,_0x174af8){var _0x33f4cf=_0x29b5bb;return _0x174af8[_0x33f4cf('0x21de')]('admin')?_0x298050['resolve']('intVtigerAccount@get',{'fields':_0x33f4cf('0x1e3d'),'limit':0xa,'offset':0x0}):_0x298050['resolve'](_0x33f4cf('0x52f'),{'id':_0x174af8[_0x33f4cf('0x15ed')]()[_0x33f4cf('0x1618')],'section':_0x33f4cf('0xb17'),'fields':_0x33f4cf('0x1e3d'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x29b5bb('0x354'),'Auth',function _0x5f260d(_0x3985a,_0x4310dc){var _0x54b6f5=_0x29b5bb;return _0x4310dc[_0x54b6f5('0x21de')](_0x54b6f5('0x1bd8'))?null:_0x3985a['resolve'](_0x54b6f5('0x1e1d'),{'fields':_0x54b6f5('0x1a00'),'id':_0x4310dc[_0x54b6f5('0x15ed')]()[_0x54b6f5('0x1618')]});}],'userProfileSection':[_0x29b5bb('0x354'),_0x29b5bb('0x15bc'),function _0xa34177(_0x1c4817,_0x3e5be3){var _0x57f526=_0x29b5bb;return _0x3e5be3[_0x57f526('0x21de')](_0x57f526('0x1bd8'))?null:_0x1c4817[_0x57f526('0x8ac')](_0x57f526('0x222f'),{'fields':_0x57f526('0x1852'),'userProfileId':_0x3e5be3['getCurrentUser']()[_0x57f526('0x1618')],'sectionId':0x51c});}]},'authenticate':!![],'permissionId':0x51c,'bodyClass':_0x29b5bb('0x1756')})['state'](_0x29b5bb('0x2651'),{'url':_0x29b5bb('0x17f5'),'params':{'vtigerAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xba0a28,'controller':_0x29b5bb('0x617')}},'resolve':{'vtigerAccount':[_0x29b5bb('0x354'),_0x29b5bb('0x114e'),function _0x2fcc0f(_0x4fa6aa,_0xca37b){var _0x3d1b6e=_0x29b5bb;return _0x4fa6aa[_0x3d1b6e('0x8ac')](_0x3d1b6e('0xa5d'),{'fields':_0x3d1b6e('0x1e3d'),'id':_0xca37b['id']});}],'userProfileSection':[_0x29b5bb('0x354'),_0x29b5bb('0x15bc'),function _0x5ae915(_0x5c27aa,_0x322a6c){var _0x4ac1e0=_0x29b5bb;return _0x5c27aa[_0x4ac1e0('0x8ac')]('userProfileSection@get',{'fields':_0x4ac1e0('0x1852'),'userProfileId':_0x322a6c['getCurrentUser']()[_0x4ac1e0('0x1618')],'sectionId':0x51c});}]},'authenticate':!![],'permissionId':0x51c,'bodyClass':'integrations'})['state'](_0x29b5bb('0x11cd'),{'url':_0x29b5bb('0x949'),'views':{'content@app':{'templateUrl':_0x18bf22,'controller':_0x29b5bb('0x2686')}},'resolve':{'dynamics365Accounts':[_0x29b5bb('0x354'),_0x29b5bb('0x15bc'),function _0x3cfeea(_0x1b7ebe,_0x4bae99){var _0x5b0f55=_0x29b5bb;return _0x4bae99['hasRole'](_0x5b0f55('0x1bd8'))?_0x1b7ebe['resolve']('intDynamics365Account@get',{'fields':_0x5b0f55('0x12ea'),'limit':0xa,'offset':0x0}):_0x1b7ebe[_0x5b0f55('0x8ac')](_0x5b0f55('0x52f'),{'id':_0x4bae99[_0x5b0f55('0x15ed')]()['userProfileId'],'section':_0x5b0f55('0x48'),'fields':'createdAt,updatedAt,id,name,username,password,remoteUri,tenantId,clientId,clientSecret,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':[_0x29b5bb('0x354'),_0x29b5bb('0x15bc'),function _0x44165e(_0x9d4572,_0x2ae68c){var _0x3eeb2a=_0x29b5bb;return _0x2ae68c[_0x3eeb2a('0x21de')]('admin')?null:_0x9d4572[_0x3eeb2a('0x8ac')](_0x3eeb2a('0x1e1d'),{'fields':_0x3eeb2a('0x1a00'),'id':_0x2ae68c[_0x3eeb2a('0x15ed')]()['userProfileId']});}],'userProfileSection':[_0x29b5bb('0x354'),_0x29b5bb('0x15bc'),function _0x1ed6bb(_0x34ef3b,_0x43657b){var _0x47e501=_0x29b5bb;return _0x43657b[_0x47e501('0x21de')](_0x47e501('0x1bd8'))?null:_0x34ef3b[_0x47e501('0x8ac')]('userProfileSection@get',{'fields':_0x47e501('0x1852'),'userProfileId':_0x43657b['getCurrentUser']()[_0x47e501('0x1618')],'sectionId':0x51d});}]},'authenticate':!![],'permissionId':0x51d,'bodyClass':_0x29b5bb('0x1756')})['state'](_0x29b5bb('0x21ee'),{'url':_0x29b5bb('0x17f5'),'params':{'dynamics365Account':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x471510,'controller':_0x29b5bb('0x6ea')}},'resolve':{'dynamics365Account':[_0x29b5bb('0x354'),'$stateParams',function _0x558274(_0x4dd9e0,_0x210974){var _0x3491f1=_0x29b5bb;return _0x4dd9e0[_0x3491f1('0x8ac')](_0x3491f1('0x736'),{'fields':_0x3491f1('0x12ea'),'id':_0x210974['id']});}],'userProfileSection':[_0x29b5bb('0x354'),_0x29b5bb('0x15bc'),function _0x498d13(_0x2ef31f,_0x4681c7){var _0x3726b0=_0x29b5bb;return _0x2ef31f[_0x3726b0('0x8ac')](_0x3726b0('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x4681c7[_0x3726b0('0x15ed')]()['userProfileId'],'sectionId':0x51d});}]},'authenticate':!![],'permissionId':0x51d,'bodyClass':_0x29b5bb('0x1756')})[_0x29b5bb('0x27e')](_0x29b5bb('0x13b7'),{'url':_0x29b5bb('0x13d7'),'views':{'content@app':{'templateUrl':_0x52c238,'controller':'ServicenowAccountsController\x20as\x20vm'}},'resolve':{'servicenowAccounts':[_0x29b5bb('0x354'),_0x29b5bb('0x15bc'),function _0xfbda93(_0x3c8fa,_0x3c17e8){var _0x8b3f90=_0x29b5bb;return _0x3c17e8['hasRole'](_0x8b3f90('0x1bd8'))?_0x3c8fa[_0x8b3f90('0x8ac')](_0x8b3f90('0x1d53'),{'fields':_0x8b3f90('0x2c'),'limit':0xa,'offset':0x0}):_0x3c8fa[_0x8b3f90('0x8ac')](_0x8b3f90('0x52f'),{'id':_0x3c17e8[_0x8b3f90('0x15ed')]()[_0x8b3f90('0x1618')],'section':'ServicenowAccounts','fields':_0x8b3f90('0x2c'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x29b5bb('0x354'),'Auth',function _0x46ff0c(_0x3dee27,_0x26d25f){var _0x5c4177=_0x29b5bb;return _0x26d25f[_0x5c4177('0x21de')]('admin')?null:_0x3dee27[_0x5c4177('0x8ac')](_0x5c4177('0x1e1d'),{'fields':_0x5c4177('0x1a00'),'id':_0x26d25f[_0x5c4177('0x15ed')]()[_0x5c4177('0x1618')]});}],'userProfileSection':[_0x29b5bb('0x354'),'Auth',function _0x4c3150(_0x4b3773,_0x550e6b){var _0x2788aa=_0x29b5bb;return _0x550e6b[_0x2788aa('0x21de')](_0x2788aa('0x1bd8'))?null:_0x4b3773['resolve']('userProfileSection@get',{'fields':_0x2788aa('0x1852'),'userProfileId':_0x550e6b['getCurrentUser']()[_0x2788aa('0x1618')],'sectionId':0x51e});}]},'authenticate':!![],'permissionId':0x51e,'bodyClass':_0x29b5bb('0x1756')})[_0x29b5bb('0x27e')](_0x29b5bb('0x1508'),{'url':_0x29b5bb('0x17f5'),'params':{'servicenowAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x36f1d9,'controller':_0x29b5bb('0x2827')}},'resolve':{'servicenowAccount':[_0x29b5bb('0x354'),_0x29b5bb('0x114e'),function _0x468a12(_0xbeda29,_0x2de6c0){var _0x40c284=_0x29b5bb;return _0xbeda29[_0x40c284('0x8ac')]('intServicenowAccount@get',{'fields':'createdAt,updatedAt,id,name,username,password,email,remoteUri,serverUrl,description','id':_0x2de6c0['id']});}],'userProfileSection':['apiResolver',_0x29b5bb('0x15bc'),function _0x1a2e81(_0x919b56,_0x316fbd){var _0x26d3bd=_0x29b5bb;return _0x919b56[_0x26d3bd('0x8ac')]('userProfileSection@get',{'fields':_0x26d3bd('0x1852'),'userProfileId':_0x316fbd[_0x26d3bd('0x15ed')]()[_0x26d3bd('0x1618')],'sectionId':0x51e});}]},'authenticate':!![],'permissionId':0x51e,'bodyClass':'integrations'})[_0x29b5bb('0x27e')](_0x29b5bb('0x1849'),{'url':_0x29b5bb('0x9b0'),'views':{'content@app':{'templateUrl':_0x9489a2,'controller':'FreshsalesAccountsController\x20as\x20vm'}},'resolve':{'freshsalesAccounts':[_0x29b5bb('0x354'),_0x29b5bb('0x15bc'),function _0x18926e(_0x524bbc,_0x4a5962){var _0x497ec2=_0x29b5bb;return _0x4a5962[_0x497ec2('0x21de')](_0x497ec2('0x1bd8'))?_0x524bbc[_0x497ec2('0x8ac')](_0x497ec2('0x294'),{'fields':'createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','limit':0xa,'offset':0x0}):_0x524bbc[_0x497ec2('0x8ac')](_0x497ec2('0x52f'),{'id':_0x4a5962[_0x497ec2('0x15ed')]()[_0x497ec2('0x1618')],'section':_0x497ec2('0x934'),'fields':_0x497ec2('0xe95'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x29b5bb('0x354'),_0x29b5bb('0x15bc'),function _0x30924c(_0x28ea5f,_0x29ef29){var _0x1fbdc4=_0x29b5bb;return _0x29ef29[_0x1fbdc4('0x21de')](_0x1fbdc4('0x1bd8'))?null:_0x28ea5f[_0x1fbdc4('0x8ac')](_0x1fbdc4('0x1e1d'),{'fields':'id,name,crudPermissions','id':_0x29ef29['getCurrentUser']()[_0x1fbdc4('0x1618')]});}],'userProfileSection':[_0x29b5bb('0x354'),_0x29b5bb('0x15bc'),function _0x4ab5a1(_0x2fb916,_0x25f916){var _0x391cb5=_0x29b5bb;return _0x25f916[_0x391cb5('0x21de')](_0x391cb5('0x1bd8'))?null:_0x2fb916[_0x391cb5('0x8ac')](_0x391cb5('0x222f'),{'fields':_0x391cb5('0x1852'),'userProfileId':_0x25f916['getCurrentUser']()['userProfileId'],'sectionId':0x518});}]},'authenticate':!![],'permissionId':0x518,'bodyClass':_0x29b5bb('0x1756')})[_0x29b5bb('0x27e')]('app.integrations.freshsalesAccounts.edit',{'url':_0x29b5bb('0x17f5'),'params':{'freshsalesAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1e6f66,'controller':_0x29b5bb('0x229c')}},'resolve':{'freshsalesAccount':[_0x29b5bb('0x354'),_0x29b5bb('0x114e'),function _0x2b5442(_0x3c0bcd,_0x507d1d){var _0x21040a=_0x29b5bb;return _0x3c0bcd['resolve'](_0x21040a('0x294'),{'fields':'createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','id':_0x507d1d['id']});}],'userProfileSection':[_0x29b5bb('0x354'),_0x29b5bb('0x15bc'),function _0x194244(_0x595d37,_0x468d2a){var _0x36af31=_0x29b5bb;return _0x595d37[_0x36af31('0x8ac')](_0x36af31('0x222f'),{'fields':_0x36af31('0x1852'),'userProfileId':_0x468d2a['getCurrentUser']()['userProfileId'],'sectionId':0x518});}]},'authenticate':!![],'permissionId':0x518,'bodyClass':'integrations'}),_0x2f164d[_0x29b5bb('0x20ab')](_0x29b5bb('0x90'));}angular[_0x3877e3('0x20d5')](_0x3877e3('0x24e4'),[_0x3877e3('0x240c'),_0x3877e3('0x1b0'),'md.data.table',_0x3877e3('0x1d76'),'mdColorPicker','ckeditor',_0x3877e3('0x1182'),'ngAria','ngAnimate',_0x3877e3('0x335'),_0x3877e3('0xc90'),_0x3877e3('0x56d'),_0x3877e3('0xe2f'),_0x3877e3('0x10c'),_0x3877e3('0xf61'),_0x3877e3('0xe39'),'angularMaterialFormBuilder',_0x3877e3('0x27ba'),_0x3877e3('0x9e0'),_0x3877e3('0x1c54')])['config'](_0x596193)[_0x3877e3('0x1d5a')]('CreateOrEditDeskAccountDialogController',_0x549980)[_0x3877e3('0x1d5a')](_0x3877e3('0xbf0'),_0x5397ff)[_0x3877e3('0x1d5a')]('DeskAccountConfigurationsController',_0x272741)['controller'](_0x3877e3('0x13a4'),_0x27a61a)[_0x3877e3('0x1d5a')]('CreateOrEditDeskAccountItemDialogController',_0x35d836)[_0x3877e3('0x1d5a')](_0x3877e3('0x240e'),_0x5d7586)[_0x3877e3('0x1d5a')](_0x3877e3('0x12f6'),_0x5749f7)['controller']('Dynamics365AccountsController',_0x1986c0)[_0x3877e3('0x1d5a')](_0x3877e3('0x1e58'),_0x26fe50)[_0x3877e3('0x1d5a')]('CreateOrEditDynamics365ConfigurationDialogController',_0x47e0ef)[_0x3877e3('0x1d5a')](_0x3877e3('0xf1a'),_0x32e75b)[_0x3877e3('0x1d5a')](_0x3877e3('0x204f'),_0x199379)[_0x3877e3('0x1d5a')](_0x3877e3('0x6b2'),_0x524e3f)[_0x3877e3('0x1d5a')](_0x3877e3('0x579'),_0x26adb7)[_0x3877e3('0x1d5a')](_0x3877e3('0x1b89'),_0x2723dc)['controller']('CreateOrEditFreshdeskAccountItemDialogController',_0x3e8e90)['controller']('FreshdeskAccountController',_0x42be5a)[_0x3877e3('0x1d5a')](_0x3877e3('0x1e48'),_0x566824)['controller'](_0x3877e3('0x1cb2'),_0x1fc376)[_0x3877e3('0x1d5a')](_0x3877e3('0x891'),_0x195655)[_0x3877e3('0x1d5a')](_0x3877e3('0x936'),_0x31f018)[_0x3877e3('0x1d5a')](_0x3877e3('0x2151'),_0x4f3865)[_0x3877e3('0x1d5a')]('FreshsalesAccountController',_0x3ed342)[_0x3877e3('0x1d5a')](_0x3877e3('0x1f4e'),_0x22f660)[_0x3877e3('0x1d5a')](_0x3877e3('0x1fe1'),_0x27544b)[_0x3877e3('0x1d5a')](_0x3877e3('0x26dd'),_0x3dfd93)['controller'](_0x3877e3('0x526'),_0x134a57)[_0x3877e3('0x1d5a')](_0x3877e3('0x216b'),_0x21c703)[_0x3877e3('0x1d5a')](_0x3877e3('0x1e40'),_0x479bf8)[_0x3877e3('0x1d5a')](_0x3877e3('0x195f'),_0x1b1c6d)['controller'](_0x3877e3('0x272c'),_0x1c658c)[_0x3877e3('0x1d5a')]('ServicenowAccountConfigurationsController',_0x46c36b)['controller']('CreateOrEditServicenowConfigurationDialogController',_0x1de61e)[_0x3877e3('0x1d5a')](_0x3877e3('0x16dd'),_0x6b5125)['controller'](_0x3877e3('0x1152'),_0x4cfacf)['controller'](_0x3877e3('0x115f'),_0x2d5d07)['controller'](_0x3877e3('0x89f'),_0x3f9f26)[_0x3877e3('0x1d5a')](_0x3877e3('0xa76'),_0x395406)[_0x3877e3('0x1d5a')](_0x3877e3('0x170'),_0x2620eb)['controller'](_0x3877e3('0xfc1'),_0x3add8b)[_0x3877e3('0x1d5a')](_0x3877e3('0x9e5'),_0x49fef5)[_0x3877e3('0x1d5a')](_0x3877e3('0x78d'),_0x4b52c8)[_0x3877e3('0x1d5a')](_0x3877e3('0x2700'),_0x30d0f7)[_0x3877e3('0x1d5a')]('VtigerAccountConfigurationsController',_0xffc1af)['controller'](_0x3877e3('0x9cc'),_0x516add)[_0x3877e3('0x1d5a')](_0x3877e3('0x8c8'),_0x591ce3)[_0x3877e3('0x1d5a')](_0x3877e3('0x167a'),_0x348cba)[_0x3877e3('0x1d5a')](_0x3877e3('0xc46'),_0x3eab50)[_0x3877e3('0x1d5a')](_0x3877e3('0x1ebf'),_0x25edbe)[_0x3877e3('0x1d5a')](_0x3877e3('0x1311'),_0x4b3798)['controller'](_0x3877e3('0x1700'),_0x2f0d47)[_0x3877e3('0x1d5a')]('ZendeskAccountConfigurationsController',_0x28d7da)[_0x3877e3('0x1d5a')](_0x3877e3('0x195e'),_0x5d643b)['controller']('ZendeskAccountsController',_0xdd3928)[_0x3877e3('0x1d5a')](_0x3877e3('0x311'),_0x36c38a)[_0x3877e3('0x1d5a')](_0x3877e3('0xb59'),_0x13d93b)['controller'](_0x3877e3('0x127e'),_0x1ec3a1)['controller'](_0x3877e3('0x2732'),_0x3c4c6f)['controller'](_0x3877e3('0x116b'),_0x8e399d)[_0x3877e3('0x1d5a')](_0x3877e3('0xf8f'),_0x12e171);const _0x94ade4=_0x398308['p']+_0x3877e3('0x1a31'),_0x5ca626=_0x398308['p']+'src/js/modules/main/apps/settings/views/license/update/dialog.html/dialog-[chunkhash].html',_0x7a416f=_0x398308['p']+_0x3877e3('0x7c6');_0x5a85f4[_0x3877e3('0x1a81')]=[_0x3877e3('0x243f'),_0x3877e3('0x1850'),_0x3877e3('0xa9f'),'license','toasty',_0x3877e3('0xccd')];function _0x5a85f4(_0x22d876,_0x48aa72,_0x1168c2,_0x3bf2ac,_0x1846ea,_0x3cbbf6){var _0x1fc5e5=_0x3877e3,_0x858ca1=this;_0x858ca1[_0x1fc5e5('0x2ff')]=_0x3bf2ac||{},_0x858ca1[_0x1fc5e5('0xcb5')]=0x0,_0x858ca1[_0x1fc5e5('0x188e')]=0x0,_0x858ca1[_0x1fc5e5('0x2197')]=0x0,_0x858ca1[_0x1fc5e5('0x1b8a')]=[{'name':_0x1fc5e5('0x8ed'),'icon':_0x1fc5e5('0x328')},{'name':_0x1fc5e5('0x1f65'),'icon':'icon-hangouts'},{'name':'mail','icon':'icon-email'},{'name':_0x1fc5e5('0xff6'),'icon':_0x1fc5e5('0x2750')},{'name':_0x1fc5e5('0x93f'),'icon':'icon-deskphone'},{'name':_0x1fc5e5('0xac9'),'icon':'icon-google-earth'},{'name':'whatsapp','icon':'icon-whatsapp'}],_0x858ca1[_0x1fc5e5('0x6b8')]=[{'name':'cm','icon':'icon-account-circle'},{'name':_0x1fc5e5('0xb6b'),'icon':'icon-crosshairs'},{'name':_0x1fc5e5('0x9c7'),'icon':_0x1fc5e5('0x565')}],_0x858ca1[_0x1fc5e5('0x1afa')]=[{'name':_0x1fc5e5('0xce3'),'icon':'icon-server-plus'},{'name':_0x1fc5e5('0x1124'),'icon':_0x1fc5e5('0x2270')},{'name':'custom','icon':_0x1fc5e5('0x621')},{'name':_0x1fc5e5('0x17f4'),'icon':_0x1fc5e5('0x201a')},{'name':'ai','icon':_0x1fc5e5('0x128')}],_0x858ca1[_0x1fc5e5('0x199d')]=[{'name':_0x1fc5e5('0x100b'),'icon':_0x1fc5e5('0x1c58'),'restart':!![],'label':_0x1fc5e5('0x1b8a'),'enabled':_0x1fc5e5('0x8ed')},{'name':'virtual','icon':'icon-dots-horizontal','restart':![],'label':_0x1fc5e5('0x199d'),'enabled':'chat'}],_0x858ca1[_0x1fc5e5('0x2e3')]=[{'name':_0x1fc5e5('0x5ef'),'icon':_0x1fc5e5('0x6b1')}],_0x3cbbf6[_0x1fc5e5('0x1775')][_0x1fc5e5('0x595')]({'fields':'id','role':'agent','online':!![]})[_0x1fc5e5('0x1376')][_0x1fc5e5('0x21ad')](function(_0x48bb64){var _0x4e97e9=_0x1fc5e5;return _0x858ca1[_0x4e97e9('0xcb5')]=_0x48bb64&&_0x48bb64[_0x4e97e9('0x205f')]?_0x48bb64['count']:0x0,_0x3cbbf6['user'][_0x4e97e9('0x595')]({'fields':'id','role':'user,admin'})['$promise'];})['then'](function(_0x2bc2ad){var _0x1de21a=_0x1fc5e5;return _0x858ca1['users']=_0x2bc2ad&&_0x2bc2ad['count']?_0x2bc2ad['count']:0x0,_0x3cbbf6[_0x1de21a('0x1775')][_0x1de21a('0x595')]({'fields':'id','role':_0x1de21a('0x13f4')})[_0x1de21a('0x1376')];})['then'](function(_0x474923){var _0x57d9e2=_0x1fc5e5;_0x858ca1[_0x57d9e2('0x2197')]=_0x474923&&_0x474923[_0x57d9e2('0x205f')]?_0x474923[_0x57d9e2('0x205f')]:0x0;})['catch'](function(_0x249cf9){console['log'](_0x249cf9);});function _0x573401(_0x53d547){var _0x1107e8=_0x1fc5e5;_0x48aa72[_0x1107e8('0x853')]({'controller':_0x1107e8('0x1ad9'),'controllerAs':'vm','templateUrl':_0x5ca626,'parent':angular['element'](_0x22d876['body']),'targetEvent':_0x53d547,'clickOutsideToClose':!![],'locals':{'license':_0x3bf2ac}});}function _0x328ba6(_0x4eb191){var _0xd30e0f=_0x1fc5e5;_0x48aa72[_0xd30e0f('0x853')]({'controller':'RequestLicenseDialogController','controllerAs':'vm','templateUrl':_0x7a416f,'parent':angular[_0xd30e0f('0x1676')](_0x22d876['body']),'targetEvent':_0x4eb191,'clickOutsideToClose':!![],'locals':{'license':_0x3bf2ac,'channels':_0x858ca1[_0xd30e0f('0x1b8a')],'modules':_0x858ca1[_0xd30e0f('0x6b8')],'addons':_0x858ca1[_0xd30e0f('0x1afa')],'sessions':_0x858ca1[_0xd30e0f('0x199d')],'others':_0x858ca1[_0xd30e0f('0x2e3')]}});}function _0x33be9f(){_0x1168c2['go']('app.settings.system',{'tab':0x1});}_0x858ca1[_0x1fc5e5('0x2d8')]=_0x328ba6,_0x858ca1[_0x1fc5e5('0x1f71')]=_0x573401,_0x858ca1['gotoProcess']=_0x33be9f;}const _0x560dd6=_0x5a85f4;_0x229a01[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),_0x3877e3('0x1908'),_0x3877e3('0x2ff'),_0x3877e3('0x1b8a'),_0x3877e3('0x6b8'),_0x3877e3('0x1afa'),'sessions','others','api',_0x3877e3('0x15bc'),_0x3877e3('0x13c1')];function _0x229a01(_0x16116d,_0x238521,_0x497be5,_0x990ce6,_0x2d2f16,_0x1e0028,_0x214ea2,_0x1e2d60,_0x48e62b,_0x4bf7aa,_0x308784){var _0x257bcf=_0x3877e3,_0x120101=this;_0x120101['errors']=[],_0x120101[_0x257bcf('0x1775')]=_0x4bf7aa['getCurrentUser'](),_0x120101[_0x257bcf('0x2ff')]=angular[_0x257bcf('0xd75')](_0x497be5),_0x120101[_0x257bcf('0x1b8a')]=_0x990ce6,_0x120101['modules']=_0x2d2f16,_0x120101[_0x257bcf('0x1afa')]=_0x1e0028,_0x120101['sessions']=_0x214ea2,_0x120101['others']=_0x1e2d60,_0x120101[_0x257bcf('0x2ff')]['name']=_0x120101[_0x257bcf('0x1775')]['fullname'],_0x120101[_0x257bcf('0x2ff')][_0x257bcf('0x2822')]=_0x120101[_0x257bcf('0x1775')][_0x257bcf('0x2822')],_0x120101['sendRequest']=_0x47da71,_0x120101[_0x257bcf('0x167')]=_0x14a035;function _0x47da71(){var _0x5085c1=_0x257bcf;_0x120101['errors']=[],_0x120101['table']='||FIELD||OLD||NEW||\x0a';for(var _0x4378f4 in _0x120101[_0x5085c1('0x2ff')]){typeof _0x120101[_0x5085c1('0x2ff')][_0x4378f4]!==_0x5085c1('0xddc')&&!_0x86640f()[_0x5085c1('0xb34')]([_0x5085c1('0x1376'),_0x5085c1('0x9f8')],_0x4378f4)&&(_0x497be5[_0x4378f4]===_0x120101[_0x5085c1('0x2ff')][_0x4378f4]?_0x120101['table']+='|'+_0x4378f4+'|'+(_0x497be5[_0x4378f4]!==undefined?_0x497be5[_0x4378f4]:'')+'|'+_0x120101[_0x5085c1('0x2ff')][_0x4378f4]+'|\x0a':_0x120101[_0x5085c1('0x1897')]+='|'+_0x4378f4+_0x5085c1('0x1fec')+(_0x497be5[_0x4378f4]!==undefined?_0x497be5[_0x4378f4]:'')+'{color}|*'+_0x120101[_0x5085c1('0x2ff')][_0x4378f4]+_0x5085c1('0x1bdf'));}_0x48e62b[_0x5085c1('0x9a8')]['save']({'key':_0x5085c1('0x133c'),'summary':_0x5085c1('0x2268'),'description':_0x120101[_0x5085c1('0x1897')],'issuetype':_0x5085c1('0x2108')})[_0x5085c1('0x1376')]['then'](function(){var _0xf0838c=_0x5085c1;_0x238521[_0xf0838c('0xdb1')]({'title':_0xf0838c('0x1dd0'),'msg':_0x308784[_0xf0838c('0x183e')](_0xf0838c('0x7e9')),'timeout':0x3a98}),_0x14a035();})[_0x5085c1('0x1c1d')](function(_0x4a9ead){var _0x2e37a8=_0x5085c1;console[_0x2e37a8('0x2092')](_0x4a9ead),_0x120101[_0x2e37a8('0x1a69')]=[{'message':_0x308784[_0x2e37a8('0x183e')](_0x2e37a8('0xeee')),'type':'api.jira'}];});}function _0x14a035(){var _0x15b4b5=_0x257bcf;_0x16116d[_0x15b4b5('0x1c24')]();}}const _0x428702=_0x229a01;_0x216354[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),_0x3877e3('0x1908'),'license',_0x3877e3('0xccd')];function _0x216354(_0x2c3008,_0x5d9c60,_0x40d856,_0x27e2cb){var _0x3fec16=_0x3877e3,_0x350492=this;_0x350492[_0x3fec16('0x1a69')]=[],_0x350492[_0x3fec16('0x2ff')]=angular['copy'](_0x40d856),_0x350492[_0x3fec16('0xcbf')],_0x350492[_0x3fec16('0x1f71')]=_0x423db8,_0x350492['closeDialog']=_0x43b09e;function _0x423db8(){var _0x54462b=_0x3fec16;return _0x27e2cb[_0x54462b('0x2ff')]['update']({'id':0x1,'key':_0x350492[_0x54462b('0xcbf')]})[_0x54462b('0x1376')][_0x54462b('0x21ad')](function(_0x33c5e0){var _0x5e7583=_0x54462b;_0x33c5e0&&(_0x33c5e0[_0x5e7583('0x11cc')]?_0x5d9c60[_0x5e7583('0x2092')]({'title':_0x5e7583('0x206e'),'msg':_0x5e7583('0x198d')}):_0x5d9c60[_0x5e7583('0xdb1')]({'title':_0x5e7583('0x47b'),'msg':_0x5e7583('0x1d21')}));})[_0x54462b('0x1c1d')](function(_0x395af9){var _0x5eb98b=_0x54462b;_0x5d9c60['error']({'title':_0x395af9[_0x5eb98b('0x209')]?'API:'+_0x395af9[_0x5eb98b('0x209')]+_0x5eb98b('0xa99')+_0x395af9[_0x5eb98b('0x1808')]:_0x5eb98b('0x8b3'),'msg':_0x395af9[_0x5eb98b('0x11c2')]?JSON[_0x5eb98b('0x25e')](_0x395af9[_0x5eb98b('0x11c2')]):_0x395af9[_0x5eb98b('0x174f')]()});});}function _0x43b09e(){var _0x1459d5=_0x3fec16;_0x2c3008[_0x1459d5('0x1c24')]();}}const _0x48d89f=_0x216354;_0x1b4e0f[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c')];function _0x1b4e0f(_0x329148){var _0x3f96f7=_0x3877e3;_0x329148['state']('app.settings.license',{'url':_0x3f96f7('0x880'),'views':{'content@app':{'templateUrl':_0x94ade4,'controller':_0x3f96f7('0xd20')}},'authenticate':!![],'permissionId':0x578,'bodyClass':'settings'});}angular['module'](_0x3877e3('0x171c'),[])['config'](_0x1b4e0f)[_0x3877e3('0x1d5a')]('LicenseController',_0x560dd6)[_0x3877e3('0x1d5a')](_0x3877e3('0x647'),_0x428702)['controller'](_0x3877e3('0x1ad9'),_0x48d89f);const _0x31e56f=_0x398308['p']+_0x3877e3('0xcd1');_0x5054c8[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x1e8d'),_0x3877e3('0x1850'),_0x3877e3('0xa9f'),_0x3877e3('0x12b1'),'processes',_0x3877e3('0x1908'),'api'];function _0x5054c8(_0x4171ee,_0x418658,_0x5241f6,_0x2f7226,_0x972de1,_0x438b21,_0x142a15,_0x434de8){var _0x4845b2=_0x3877e3,_0x4acf78=this,_0x31a722=null;_0x4acf78[_0x4845b2('0x12b1')]=_0x972de1||{},_0x4acf78[_0x4845b2('0x103c')]=_0x438b21?_0x438b21[_0x4845b2('0x1b33')]:[],_0x4acf78['processLimit']=0x7,_0x4acf78[_0x4845b2('0x302')]=_0x2f7226[_0x4845b2('0x171b')][_0x4845b2('0x12e1')]||0x0,_0x4acf78[_0x4845b2('0x23e3')]=_0x347a4a,_0x4acf78[_0x4845b2('0x210b')]=_0x4ee9d5,_0x4acf78[_0x4845b2('0x5fe')]=_0x1f1cbd,_0x4acf78[_0x4845b2('0x1fdf')]=_0x12861b;function _0x1f1cbd(){var _0x24802d=_0x4845b2;_0x418658[_0x24802d('0x3b5')](_0x31a722),_0x31a722=null;}function _0x12861b(_0x25c74b,_0x574d6d,_0x5ec341){var _0x3f212a=_0x4845b2,_0x2d38b2=_0x5241f6[_0x3f212a('0xa33')]()[_0x3f212a('0x4b4')](_0x3f212a('0x24db')+_0x574d6d+'?')[_0x3f212a('0x226d')](_0x3f212a('0x1cc8')+_0x5ec341[_0x3f212a('0x2e8')]())[_0x3f212a('0x7a7')]('Lucky\x20day')['targetEvent'](_0x25c74b)['ok']('Ok')[_0x3f212a('0x3b5')]('Cancel');_0x5241f6[_0x3f212a('0x853')](_0x2d38b2)['then'](function(){var _0x553012=_0x3f212a;return _0x434de8[_0x553012('0x6d4')][_0x553012('0x5ef')]({'id':_0x574d6d,'status':_0x5ec341});})['then'](function(){var _0x1a7cfe=_0x3f212a;_0x418658(_0x4acf78[_0x1a7cfe('0x210b')],0x3e8,0x1);})[_0x3f212a('0x21ad')](function(){var _0xb5a082=_0x3f212a;_0x142a15[_0xb5a082('0xdb1')]({'title':_0xb5a082('0x1781'),'msg':_0xb5a082('0x876')+_0x5ec341});});}function _0x347a4a(){var _0x5a1dd6=_0x4845b2;return _0x434de8['system']['get']()['$promise'][_0x5a1dd6('0x21ad')](function(_0x163214){var _0x799d84=_0x5a1dd6;_0x86640f()['merge'](_0x4acf78[_0x799d84('0x12b1')],_0x163214);})[_0x5a1dd6('0x1c1d')](_0x4acf78[_0x5a1dd6('0x5fe')]);}function _0x4ee9d5(){var _0x1c3e36=_0x4845b2;return _0x434de8[_0x1c3e36('0x6d4')][_0x1c3e36('0x595')]()[_0x1c3e36('0x1376')][_0x1c3e36('0x21ad')](function(_0x384905){var _0x14ef47=_0x1c3e36;_0x86640f()['merge'](_0x4acf78[_0x14ef47('0x103c')],_0x384905?_0x384905[_0x14ef47('0x1b33')]:[]);})[_0x1c3e36('0x1c1d')](_0x4acf78[_0x1c3e36('0x5fe')]);}_0x31a722=_0x418658(_0x4acf78['getInfo'],0x1388),_0x4171ee[_0x4845b2('0x1723')](_0x4845b2('0x1210'),function(){var _0x22a6ba=_0x4845b2;_0x4acf78[_0x22a6ba('0x5fe')]();});}const _0x47b73f=_0x5054c8;_0x2e7b61['$inject']=[_0x3877e3('0xd2c')];function _0x2e7b61(_0x3b8e75){var _0x2f80e2=_0x3877e3;_0x3b8e75[_0x2f80e2('0x27e')]('app.settings.system',{'url':_0x2f80e2('0x1baa'),'views':{'content@app':{'templateUrl':_0x31e56f,'controller':'SystemController\x20as\x20vm'}},'resolve':{'system':[_0x2f80e2('0x354'),function _0x3b7fb6(_0x2b9ee5){var _0x509fd3=_0x2f80e2;return _0x2b9ee5[_0x509fd3('0x8ac')](_0x509fd3('0x10b'));}],'processes':[_0x2f80e2('0x354'),function _0x1a7f53(_0x104e65){var _0x59ce51=_0x2f80e2;return _0x104e65[_0x59ce51('0x8ac')](_0x59ce51('0x2250'));}]},'authenticate':!![],'permissionId':0x578,'bodyClass':'settings'});}angular['module']('app.settings.system',[])[_0x3877e3('0x13')](_0x2e7b61)[_0x3877e3('0x1d5a')](_0x3877e3('0x21b1'),_0x47b73f);const _0x4dbad9=_0x398308['p']+_0x3877e3('0x24a2');_0x24fe73[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$interval',_0x3877e3('0x24e1'),_0x3877e3('0x2313'),_0x3877e3('0xccd')];function _0x24fe73(_0x33c710,_0x5444cb,_0x19a23b,_0x4a7806,_0x354094){var _0x8b701f=_0x3877e3,_0x343621=this;_0x343621[_0x8b701f('0x4b4')]=_0x8b701f('0x114d'),_0x343621[_0x8b701f('0x830')]=0x0,_0x343621[_0x8b701f('0x1f25')]=!![],_0x343621['output']='Waiting...',_0x343621[_0x8b701f('0xdb1')]=!![],_0x343621['interval']=_0x5444cb(function(){var _0x30f473=_0x8b701f;_0x343621[_0x30f473('0x830')]<0x5a&&(_0x343621[_0x30f473('0x830')]+=0x1);},0x3e8),_0x354094[_0x8b701f('0x161a')]['fetch']()[_0x8b701f('0x1376')]['then'](function(_0x20e118){var _0x25bb88=_0x8b701f;return _0x343621[_0x25bb88('0x1632')]=_0x20e118[_0x25bb88('0x1632')]+_0x25bb88('0x105f'),_0x354094[_0x25bb88('0x161a')]['reset']()[_0x25bb88('0x1376')];})[_0x8b701f('0x21ad')](function(_0x3b4d5a){var _0x5c105d=_0x8b701f;return _0x343621[_0x5c105d('0x1632')]=_0x3b4d5a[_0x5c105d('0x1632')]+_0x5c105d('0x105f'),_0x354094[_0x5c105d('0x161a')][_0x5c105d('0x1f17')]()[_0x5c105d('0x1376')];})['then'](function(_0x1234f6){var _0x5687d4=_0x8b701f;return _0x343621['output']=_0x1234f6['output']+_0x5687d4('0x105f'),_0x354094[_0x5687d4('0x161a')][_0x5687d4('0x9c6')]()[_0x5687d4('0x1376')];})['then'](function(_0x51d79d){var _0x72d826=_0x8b701f;return _0x343621[_0x72d826('0x1632')]=_0x51d79d[_0x72d826('0x1632')]+_0x72d826('0x105f'),_0x354094[_0x72d826('0x161a')]['restart']()[_0x72d826('0x1376')];})['then'](function(){var _0x895a78=_0x8b701f;_0x343621['output']=_0x895a78('0x25e4'),_0x4a7806(function(){var _0x28e423=_0x895a78;_0x343621[_0x28e423('0xb72')]();},0x7530);})[_0x8b701f('0x1c1d')](function(_0x5cf98d){var _0x3ac552=_0x8b701f;_0x343621[_0x3ac552('0xdb1')]=![],_0x343621['stopInterval'](),_0x343621[_0x3ac552('0x1632')]=JSON[_0x3ac552('0x25e')](_0x5cf98d);});function _0x38afa2(){var _0x36c5a8=_0x8b701f;angular[_0x36c5a8('0x1465')](_0x343621['interval'])&&(_0x5444cb[_0x36c5a8('0x3b5')](_0x343621[_0x36c5a8('0xa07')]),_0x343621['interval']=undefined),_0x343621[_0x36c5a8('0x830')]=0x64,_0x343621[_0x36c5a8('0x1f25')]=![];}function _0x5b6720(){var _0x1a7d21=_0x8b701f;_0x19a23b[_0x1a7d21('0x626')]['reload']();}function _0x296fa2(){var _0x3845e2=_0x8b701f;_0x33c710[_0x3845e2('0x1c24')]();}_0x343621[_0x8b701f('0x167')]=_0x296fa2,_0x343621[_0x8b701f('0x18a3')]=_0x5b6720,_0x343621['stopInterval']=_0x38afa2;}const _0x4dbb32=_0x24fe73,_0x30c75a=_0x398308['p']+_0x3877e3('0x6fe');_0x14bc82[_0x3877e3('0x1a81')]=['$mdDialog',_0x3877e3('0x1e8d'),_0x3877e3('0x243f'),_0x3877e3('0x161a')];function _0x14bc82(_0x1a7f48,_0x516a1c,_0x3e9a3b,_0x148f79){var _0x23c283=_0x3877e3,_0x4bc519=this;_0x4bc519['version']=_0x148f79||{};function _0x671fec(_0x1febd6){var _0x3c6a19=a0_0x2e7f,_0x4dfd63=_0x1a7f48['confirm']()[_0x3c6a19('0x4b4')](_0x3c6a19('0xe0c'))[_0x3c6a19('0x276b')]('The\x20system\x20request\x20time\x20for\x20the\x20update\x20should\x20be\x20below\x201\x20minute.

Do\x20you\x20agree\x20the\x20terms\x20of\x20this\x20End\x20User\x20License\x20Agreement?')[_0x3c6a19('0x7a7')]('')[_0x3c6a19('0x1e6d')](_0x1febd6)['clickOutsideToClose'](!![])['parent'](angular['element'](_0x3e9a3b[_0x3c6a19('0x2452')]))['ok'](_0x3c6a19('0x221f'))[_0x3c6a19('0x3b5')](_0x3c6a19('0x998'));_0x1a7f48[_0x3c6a19('0x853')](_0x4dfd63)['then'](function(){var _0x2ae8c9=_0x3c6a19;_0x1a7f48['show']({'controller':_0x2ae8c9('0x1013'),'controllerAs':'vm','templateUrl':_0x30c75a,'parent':angular[_0x2ae8c9('0x1676')](_0x3e9a3b[_0x2ae8c9('0x2452')]),'targetEvent':_0x1febd6,'clickOutsideToClose':![]});});}_0x4bc519[_0x23c283('0x254d')]=_0x671fec;}const _0x57b5fa=_0x14bc82;_0x446c9d[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c')];function _0x446c9d(_0x3448c3){var _0x3e43c2=_0x3877e3;_0x3448c3['state'](_0x3e43c2('0xe50'),{'url':_0x3e43c2('0x13e6'),'views':{'content@app':{'templateUrl':_0x4dbad9,'controller':_0x3e43c2('0x1b4e')}},'resolve':{'version':[_0x3e43c2('0x354'),function _0x548eb2(_0x2ccbb9){var _0xebf9c5=_0x3e43c2;return _0x2ccbb9[_0xebf9c5('0x8ac')](_0xebf9c5('0x95d'),{'latest':!![]});}],'userProfile':['apiResolver',_0x3e43c2('0x15bc'),function _0x1cefff(_0x562e85,_0x1dc97f){var _0x43f145=_0x3e43c2;return _0x562e85['resolve'](_0x43f145('0x1e1d'),{'fields':_0x43f145('0x1a00'),'id':_0x1dc97f[_0x43f145('0x15ed')]()['userProfileId']});}],'userProfileSection':[_0x3e43c2('0x354'),'Auth',function _0x26338b(_0x181410,_0x52cc87){var _0x147b2a=_0x3e43c2;return _0x181410[_0x147b2a('0x8ac')](_0x147b2a('0x222f'),{'fields':_0x147b2a('0x1852'),'userProfileId':_0x52cc87[_0x147b2a('0x15ed')]()[_0x147b2a('0x1618')],'sectionId':0x578});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x3e43c2('0x2277')});}angular[_0x3877e3('0x20d5')](_0x3877e3('0xe50'),[])[_0x3877e3('0x13')](_0x446c9d)[_0x3877e3('0x1d5a')](_0x3877e3('0x1013'),_0x4dbb32)[_0x3877e3('0x1d5a')](_0x3877e3('0xbd8'),_0x57b5fa);const _0x1876df=_0x398308['p']+_0x3877e3('0x8c9'),_0x23161b=_0x398308['p']+_0x3877e3('0x1d2c'),_0x453488=_0x398308['p']+_0x3877e3('0x22d9'),_0x3f40b7=_0x398308['p']+_0x3877e3('0x2484'),_0x1702a5=_0x398308['p']+_0x3877e3('0x11e4'),_0x5e4861=_0x398308['p']+_0x3877e3('0x55a');_0x44c06c[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),'$mdSidenav','$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x13c1'),'cloudProviders',_0x3877e3('0xccd'),'msUtils',_0x3877e3('0x1908'),'Auth',_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x44c06c(_0x543d9f,_0x4d9644,_0x274446,_0x22e097,_0x11f9e1,_0x5ecd32,_0x3f6f2d,_0x6e68ee,_0x17aa46,_0x3265b8,_0x2d7c58,_0x2e73c1,_0x1eda73,_0x136d22,_0xc5d7d){var _0x5887b1=_0x3877e3,_0x534518=this;_0x534518['license']=_0x136d22,_0x534518[_0x5887b1('0x21e')]=_0xc5d7d,_0x534518[_0x5887b1('0x123f')]=_0x1eda73['getCurrentUser'](),_0x534518['cloudProviders']=_0x17aa46||{'count':0x0,'rows':[]},_0x534518[_0x5887b1('0x1897')]=_0x5887b1('0xc6'),_0x534518['listOrder']='',_0x534518['listOrderAsc']=null,_0x534518['selectedAiTools']=[],_0x534518['query']={'fields':_0x5887b1('0x1e74'),'sort':_0x5887b1('0x33'),'limit':0xa,'page':0x1},_0x534518['arrayservice']=_0x86640f()[_0x5887b1('0xcde')]([{'option':_0x5887b1('0x1a90'),'value':'\x27AmazonAWS\x27'}],function(_0x3b2575){var _0x505d2b=_0x5887b1;return _0x86640f()[_0x505d2b('0x16e4')](_0x3b2575['value'],new RegExp('\x27','g'),'');}),_0x534518[_0x5887b1('0x1a97')]=_0x368844,_0x534518['deleteconfirm']=_0x37c622,_0x534518[_0x5887b1('0xdb1')]=_0x5810cf,_0x534518[_0x5887b1('0x1667')]=_0x33ea52,_0x534518['createOrEditCloudProvider']=_0x2962a2,_0x534518['deleteCloudProvider']=_0xb7fb3e,_0x534518['exportSelectedAiTools']=_0x17d860,_0x534518[_0x5887b1('0x24fb')]=_0x4a238b,_0x534518[_0x5887b1('0x19f1')]=_0x3f7c26,_0x534518[_0x5887b1('0x2ed')]=_0xf12619;function _0x368844(_0x353099,_0x3cd129){var _0x54ac55=_0x5887b1;_0x11f9e1[_0x54ac55('0x853')]({'controller':_0x54ac55('0xe22'),'controllerAs':'vm','templateUrl':_0x5e4861,'parent':angular[_0x54ac55('0x1676')](_0x5ecd32[_0x54ac55('0x2452')]),'targetEvent':_0x3cd129,'clickOutsideToClose':!![],'locals':{'cloudProvider':_0x353099,'cloudProviders':_0x534518[_0x54ac55('0xc6')][_0x54ac55('0x1b33')],'license':_0x534518['license'],'setting':null,'crudPermissions':_0x534518['crudPermissions']}});}function _0x37c622(_0x1c30e1,_0x1a3d50){var _0x4a2681=_0x5887b1,_0x36aae0=_0x11f9e1[_0x4a2681('0xa33')]()[_0x4a2681('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x86640f()[_0x4a2681('0x2159')](_0x4a2681('0x1cdb'))+'?')[_0x4a2681('0x276b')](_0x4a2681('0x622')+(_0x1c30e1[_0x4a2681('0x19fe')]||'cloudProvider')+'
'+_0x4a2681('0x25e0'))['ariaLabel'](_0x4a2681('0xf56'))[_0x4a2681('0x1e6d')](_0x1a3d50)['ok']('OK')['cancel'](_0x4a2681('0x284b'));_0x11f9e1[_0x4a2681('0x853')](_0x36aae0)[_0x4a2681('0x21ad')](function(){_0xb7fb3e(_0x1c30e1);},function(){var _0x3beb0b=_0x4a2681;console[_0x3beb0b('0x6fb')](_0x3beb0b('0x284b'));});}var _0x2034b3=!![],_0x3b5843=0x1;_0x543d9f['$watch'](_0x5887b1('0x1948'),function(_0x345a0e,_0x10ede2){var _0x32c079=_0x5887b1;_0x2034b3?_0x3f6f2d(function(){_0x2034b3=![];}):(!_0x10ede2&&(_0x3b5843=_0x534518['query'][_0x32c079('0x2376')]),_0x345a0e!==_0x10ede2&&(_0x534518['query'][_0x32c079('0x2376')]=0x1),!_0x345a0e&&(_0x534518[_0x32c079('0x77')]['page']=_0x3b5843),_0x534518[_0x32c079('0x1667')]());});function _0x5810cf(_0x3d86a0){var _0x1733a9=_0x5887b1;_0x534518[_0x1733a9('0xc6')]=_0x3d86a0||{'count':0x0,'rows':[]};}function _0x33ea52(){var _0xb0176a=_0x5887b1;_0x534518[_0xb0176a('0x77')][_0xb0176a('0x15a5')]=(_0x534518['query'][_0xb0176a('0x2376')]-0x1)*_0x534518[_0xb0176a('0x77')][_0xb0176a('0x1f4a')],_0x1eda73[_0xb0176a('0x21de')]('admin')?_0x534518['promise']=_0x3265b8['cloudProvider'][_0xb0176a('0x595')](_0x534518[_0xb0176a('0x77')],_0x5810cf)[_0xb0176a('0x1376')]:(_0x534518[_0xb0176a('0x77')]['id']=_0x534518['userProfile']['id'],_0x534518[_0xb0176a('0x77')][_0xb0176a('0x26ad')]=_0xb0176a('0x1d26'),_0x534518['promise']=_0x3265b8['userProfile']['getResources'](_0x534518['query'],_0x5810cf)[_0xb0176a('0x1376')]);}function _0x2962a2(_0x40e6bd,_0x2e79ab){var _0x220c20=_0x5887b1;_0x11f9e1[_0x220c20('0x853')]({'controller':_0x220c20('0xe22'),'controllerAs':'vm','templateUrl':_0x5e4861,'parent':angular[_0x220c20('0x1676')](_0x5ecd32[_0x220c20('0x2452')]),'targetEvent':_0x40e6bd,'clickOutsideToClose':!![],'locals':{'cloudProvider':_0x2e79ab,'cloudProviders':_0x534518[_0x220c20('0xc6')]['rows'],'license':_0x534518[_0x220c20('0x2ff')],'setting':_0x534518[_0x220c20('0x21e')],'crudPermissions':_0x534518[_0x220c20('0x5ed')]}});}function _0xb7fb3e(_0x3e9dcd){var _0x320f47=_0x5887b1;_0x3265b8[_0x320f47('0x1cdb')][_0x320f47('0x1164')]({'id':_0x3e9dcd['id']})[_0x320f47('0x1376')][_0x320f47('0x21ad')](function(){var _0xa03945=_0x320f47;_0x86640f()[_0xa03945('0x16a2')](_0x534518[_0xa03945('0xc6')][_0xa03945('0x1b33')],{'id':_0x3e9dcd['id']}),_0x534518[_0xa03945('0xc6')][_0xa03945('0x205f')]-=0x1,!_0x534518[_0xa03945('0xc6')]['rows'][_0xa03945('0x577')]&&_0x534518[_0xa03945('0x1667')](),_0x2e73c1[_0xa03945('0xdb1')]({'title':_0x86640f()['startCase'](_0xa03945('0x252'))+_0xa03945('0xe64'),'msg':_0x3e9dcd[_0xa03945('0x19fe')]?_0x3e9dcd[_0xa03945('0x19fe')]+_0xa03945('0xb4a'):''});})[_0x320f47('0x1c1d')](function(_0x278b82){var _0x2316ae=_0x320f47;if(_0x278b82[_0x2316ae('0x11c2')]&&_0x278b82[_0x2316ae('0x11c2')][_0x2316ae('0x1a69')]&&_0x278b82['data'][_0x2316ae('0x1a69')][_0x2316ae('0x577')]){_0x534518[_0x2316ae('0x1a69')]=_0x278b82[_0x2316ae('0x11c2')][_0x2316ae('0x1a69')]||[{'message':_0x278b82[_0x2316ae('0x174f')](),'type':'SYSTEM:DELETEcloudProvider'}];for(var _0x23a234=0x0;_0x23a234<_0x278b82[_0x2316ae('0x11c2')][_0x2316ae('0x1a69')][_0x2316ae('0x577')];_0x23a234++){_0x2e73c1[_0x2316ae('0x2092')]({'title':_0x278b82[_0x2316ae('0x11c2')][_0x2316ae('0x1a69')][_0x23a234][_0x2316ae('0x7fa')],'msg':_0x278b82[_0x2316ae('0x11c2')]['errors'][_0x23a234]['message']});}}else _0x2e73c1['error']({'title':_0x278b82[_0x2316ae('0x209')]?_0x2316ae('0x22d')+_0x278b82[_0x2316ae('0x209')]+_0x2316ae('0xa99')+_0x278b82[_0x2316ae('0x1808')]:_0x2316ae('0x9e6'),'msg':_0x278b82[_0x2316ae('0x11c2')]?JSON[_0x2316ae('0x25e')](_0x278b82['data'][_0x2316ae('0x1224')]):_0x278b82['message']||_0x278b82['toString']()});});}function _0x17d860(){var _0xde1353=_0x5887b1,_0x12dbd0=angular[_0xde1353('0xd75')](_0x534518[_0xde1353('0x2708')]);return _0x534518[_0xde1353('0x2708')]=[],_0x12dbd0;}function _0x4a238b(_0x1f8ca6){var _0x56fe73=_0x5887b1,_0xfeec63=_0x11f9e1['confirm']()[_0x56fe73('0x4b4')](_0x56fe73('0x14fc'))[_0x56fe73('0x276b')](_0x56fe73('0x622')+_0x534518['selectedAiTools']['length']+_0x56fe73('0xd74')+_0x56fe73('0x25e0'))[_0x56fe73('0x7a7')]('delete\x20CloudProviders')['targetEvent'](_0x1f8ca6)['ok']('OK')[_0x56fe73('0x3b5')](_0x56fe73('0x284b'));_0x11f9e1['show'](_0xfeec63)[_0x56fe73('0x21ad')](function(){var _0x5c4ea7=_0x56fe73;_0x534518[_0x5c4ea7('0x2708')]['forEach'](function(_0x26fd4f){_0xb7fb3e(_0x26fd4f);}),_0x534518[_0x5c4ea7('0x2708')]=[];});}function _0x3f7c26(){_0x534518['selectedAiTools']=[];}function _0xf12619(){var _0x102296=_0x5887b1;_0x534518[_0x102296('0x2708')]=_0x534518[_0x102296('0xc6')][_0x102296('0x1b33')];}}const _0x1fead8=_0x44c06c;_0x2b412f[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$state',_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0xc6'),_0x3877e3('0x1cdb'),'api',_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting'];function _0x2b412f(_0x158503,_0x6fdf56,_0x4b89f8,_0x392c2c,_0x11c83b,_0x2fe298,_0x2219ac,_0x435f03,_0x4dd34d,_0x3b2d73,_0x19601c,_0x3f3d14,_0x267a83){var _0x5c83e6=_0x3877e3,_0x16e51e=this;_0x16e51e[_0x5c83e6('0x123f')]=_0x19601c[_0x5c83e6('0x15ed')](),_0x16e51e[_0x5c83e6('0x1a69')]=[],_0x16e51e[_0x5c83e6('0x21e')]=_0x267a83,_0x16e51e[_0x5c83e6('0x2ff')]=_0x3f3d14,_0x16e51e['hasModulePermissions']={},_0x16e51e[_0x5c83e6('0x1432')]=_0x16e51e[_0x5c83e6('0x21e')]&&_0x16e51e[_0x5c83e6('0x21e')][_0x5c83e6('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x16e51e['title']='SETTINGS.EDIT_CLOUDPROVIDER',_0x16e51e[_0x5c83e6('0x1cdb')]=angular[_0x5c83e6('0xd75')](_0x4dd34d),_0x16e51e[_0x5c83e6('0xc6')]=_0x435f03,_0x16e51e[_0x5c83e6('0x244b')]=![];!_0x16e51e[_0x5c83e6('0x1cdb')]&&(_0x16e51e[_0x5c83e6('0x1cdb')]={},_0x16e51e[_0x5c83e6('0x4b4')]=_0x5c83e6('0x58e'),_0x16e51e['newCloudProvider']=!![]);_0x16e51e[_0x5c83e6('0x26f6')]=_0x1b3821,_0x16e51e['saveCloudProvider']=_0x3f197a,_0x16e51e[_0x5c83e6('0x2069')]=_0x2dc2d0,_0x16e51e[_0x5c83e6('0x279')]=_0x1207a0,_0x16e51e[_0x5c83e6('0x167')]=_0x1791a1;function _0x1b3821(){var _0x22fc7b=_0x5c83e6;_0x16e51e[_0x22fc7b('0x1a69')]=[],_0x3b2d73[_0x22fc7b('0x1cdb')]['save'](_0x16e51e[_0x22fc7b('0x1cdb')])['$promise']['then'](function(_0x1ce8ba){var _0x53c144=_0x22fc7b;_0x16e51e['cloudProviders'][_0x53c144('0xd0c')](_0x1ce8ba[_0x53c144('0x3bc')]()),_0x2219ac[_0x53c144('0xdb1')]({'title':_0x53c144('0x2823'),'msg':_0x16e51e[_0x53c144('0x1cdb')][_0x53c144('0x19fe')]?_0x16e51e['cloudProvider'][_0x53c144('0x19fe')]+_0x53c144('0x1694'):''}),_0x1791a1(_0x1ce8ba);})[_0x22fc7b('0x1c1d')](function(_0x1b7982){var _0x5991bf=_0x22fc7b;if(_0x1b7982['data']&&_0x1b7982['data'][_0x5991bf('0x1a69')]&&_0x1b7982['data'][_0x5991bf('0x1a69')]['length']){_0x16e51e[_0x5991bf('0x1a69')]=_0x1b7982['data']['errors']||[{'message':_0x1b7982['toString'](),'type':_0x5991bf('0xd27')}];for(var _0x4acd5e=0x0;_0x4acd5e<_0x1b7982['data']['errors'][_0x5991bf('0x577')];_0x4acd5e+=0x1){_0x2219ac[_0x5991bf('0x2092')]({'title':_0x1b7982[_0x5991bf('0x11c2')]['errors'][_0x4acd5e][_0x5991bf('0x7fa')],'msg':_0x1b7982['data'][_0x5991bf('0x1a69')][_0x4acd5e][_0x5991bf('0x1224')]});}}else _0x2219ac['error']({'title':_0x1b7982[_0x5991bf('0x209')]?'API:'+_0x1b7982[_0x5991bf('0x209')]+'\x20-\x20'+_0x1b7982[_0x5991bf('0x1808')]:_0x5991bf('0xd27'),'msg':_0x1b7982[_0x5991bf('0x11c2')]?JSON[_0x5991bf('0x25e')](_0x1b7982[_0x5991bf('0x11c2')][_0x5991bf('0x1224')]):_0x1b7982[_0x5991bf('0x174f')]()});});}function _0x3f197a(){var _0x5bce35=_0x5c83e6;_0x16e51e[_0x5bce35('0x1a69')]=[],_0x3b2d73[_0x5bce35('0x1cdb')][_0x5bce35('0x5ef')]({'id':_0x16e51e[_0x5bce35('0x1cdb')]['id']},_0x16e51e[_0x5bce35('0x1cdb')])[_0x5bce35('0x1376')][_0x5bce35('0x21ad')](function(_0x5530c6){var _0x1d3799=_0x5bce35,_0x2456cd=_0x86640f()[_0x1d3799('0x1d2e')](_0x16e51e['cloudProviders'],{'id':_0x5530c6['id']});_0x2456cd&&_0x86640f()[_0x1d3799('0xd0e')](_0x2456cd,_0x86640f()[_0x1d3799('0xc50')](_0x5530c6['toJSON'](),_0x86640f()[_0x1d3799('0x223b')](_0x2456cd))),_0x2219ac[_0x1d3799('0xdb1')]({'title':'CloudProvider\x20properly\x20saved!','msg':_0x16e51e[_0x1d3799('0x1cdb')]['name']?_0x16e51e[_0x1d3799('0x1cdb')]['name']+_0x1d3799('0x2249'):''}),_0x1791a1(_0x5530c6);})['catch'](function(_0x45123b){var _0x423258=_0x5bce35;if(_0x45123b[_0x423258('0x11c2')]&&_0x45123b[_0x423258('0x11c2')][_0x423258('0x1a69')]&&_0x45123b[_0x423258('0x11c2')][_0x423258('0x1a69')][_0x423258('0x577')]){_0x16e51e[_0x423258('0x1a69')]=_0x45123b[_0x423258('0x11c2')]['errors']||[{'message':_0x45123b[_0x423258('0x174f')](),'type':_0x423258('0x1bad')}];for(var _0xd1369d=0x0;_0xd1369d<_0x45123b[_0x423258('0x11c2')]['errors'][_0x423258('0x577')];_0xd1369d++){_0x2219ac[_0x423258('0x2092')]({'title':_0x45123b['data']['errors'][_0xd1369d][_0x423258('0x7fa')],'msg':_0x45123b[_0x423258('0x11c2')][_0x423258('0x1a69')][_0xd1369d][_0x423258('0x1224')]});}}else _0x2219ac['error']({'title':_0x45123b[_0x423258('0x209')]?_0x423258('0x22d')+_0x45123b[_0x423258('0x209')]+'\x20-\x20'+_0x45123b[_0x423258('0x1808')]:_0x423258('0x1bad'),'msg':_0x45123b[_0x423258('0x11c2')]?JSON[_0x423258('0x25e')](_0x45123b[_0x423258('0x11c2')][_0x423258('0x1224')]):_0x45123b[_0x423258('0x174f')]()});});}function _0x2dc2d0(_0x1b6167){var _0x276755=_0x5c83e6;_0x16e51e[_0x276755('0x1a69')]=[];var _0x2136ff=_0x392c2c[_0x276755('0xa33')]()[_0x276755('0x4b4')]('Are\x20you\x20sure?')[_0x276755('0x13fb')](_0x276755('0x300'))[_0x276755('0x7a7')](_0x276755('0x1f9b'))['ok'](_0x276755('0xbfd'))[_0x276755('0x3b5')](_0x276755('0x1f40'))[_0x276755('0x1e6d')](_0x1b6167);_0x392c2c[_0x276755('0x853')](_0x2136ff)['then'](function(){var _0x30a3bb=_0x276755;_0x3b2d73[_0x30a3bb('0x1cdb')][_0x30a3bb('0x1164')]({'id':_0x16e51e['cloudProvider']['id']})[_0x30a3bb('0x1376')][_0x30a3bb('0x21ad')](function(){var _0x246707=_0x30a3bb;_0x86640f()[_0x246707('0x16a2')](_0x16e51e[_0x246707('0xc6')],{'id':_0x16e51e[_0x246707('0x1cdb')]['id']}),_0x2219ac['success']({'title':_0x246707('0x2734'),'msg':(_0x16e51e[_0x246707('0x1cdb')][_0x246707('0x19fe')]||'cloudProvider')+_0x246707('0xb4a')}),_0x1791a1(_0x16e51e[_0x246707('0x1cdb')]);})[_0x30a3bb('0x1c1d')](function(_0x1198a4){var _0x4664a2=_0x30a3bb;if(_0x1198a4[_0x4664a2('0x11c2')]&&_0x1198a4[_0x4664a2('0x11c2')][_0x4664a2('0x1a69')]&&_0x1198a4[_0x4664a2('0x11c2')]['errors'][_0x4664a2('0x577')]){_0x16e51e[_0x4664a2('0x1a69')]=_0x1198a4['data'][_0x4664a2('0x1a69')]||[{'message':_0x1198a4['toString'](),'type':_0x4664a2('0x1138')}];for(var _0xae4f15=0x0;_0xae4f15<_0x1198a4[_0x4664a2('0x11c2')][_0x4664a2('0x1a69')]['length'];_0xae4f15++){_0x2219ac[_0x4664a2('0x2092')]({'title':_0x1198a4[_0x4664a2('0x11c2')][_0x4664a2('0x1a69')][_0xae4f15][_0x4664a2('0x7fa')],'msg':_0x1198a4['data'][_0x4664a2('0x1a69')][_0xae4f15]['message']});}}else _0x2219ac[_0x4664a2('0x2092')]({'title':_0x1198a4[_0x4664a2('0x209')]?_0x4664a2('0x22d')+_0x1198a4[_0x4664a2('0x209')]+_0x4664a2('0xa99')+_0x1198a4[_0x4664a2('0x1808')]:'api.cloudProvider.delete','msg':_0x1198a4[_0x4664a2('0x11c2')]?JSON[_0x4664a2('0x25e')](_0x1198a4[_0x4664a2('0x11c2')][_0x4664a2('0x1224')]):_0x1198a4[_0x4664a2('0x1224')]||_0x1198a4[_0x4664a2('0x174f')]()});});},function(){});}function _0x1207a0(_0x1d79f7){return _0x1d79f7===null?undefined:new Date(_0x1d79f7);}function _0x1791a1(_0x41899c){var _0x45dda5=_0x5c83e6;_0x392c2c[_0x45dda5('0x1c24')](_0x41899c);}}const _0x5c2c9e=_0x2b412f;_0x25b9ce[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0xf0d'),_0x3877e3('0xb73'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),'crudPermissions'];function _0x25b9ce(_0x53c952,_0x1fa34e,_0xbf9f3b,_0x104d08,_0x51ac51,_0x557739,_0x48c94d,_0x3b53c7,_0x1bcc86,_0x310b0d,_0x581010,_0x329402,_0x313ca0,_0x5be4e0){var _0x2629cf=_0x3877e3,_0x1eaa35=this;_0x1eaa35['currentUser']=_0x581010[_0x2629cf('0x15ed')](),_0x1eaa35[_0x2629cf('0x1a69')]=[],_0x1eaa35[_0x2629cf('0x21e')]=_0x313ca0,_0x1eaa35[_0x2629cf('0x2ff')]=_0x329402,_0x1eaa35[_0x2629cf('0x5ed')]=_0x5be4e0,_0x1eaa35[_0x2629cf('0x126a')]={},_0x1eaa35[_0x2629cf('0x1432')]=_0x1eaa35['setting']&&_0x1eaa35[_0x2629cf('0x21e')][_0x2629cf('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1eaa35['title']=_0x2629cf('0x1c45'),_0x1eaa35[_0x2629cf('0xb73')]=angular[_0x2629cf('0xd75')](_0x1bcc86),_0x1eaa35['customizations']=_0x3b53c7,_0x1eaa35['newCustomization']=![];!_0x1eaa35['customization']&&(_0x1eaa35[_0x2629cf('0xb73')]={},_0x1eaa35[_0x2629cf('0x4b4')]=_0x2629cf('0x263b'),_0x1eaa35[_0x2629cf('0x1334')]=!![]);_0x1eaa35[_0x2629cf('0x225f')]=_0x2b9d16,_0x1eaa35[_0x2629cf('0xfe1')]=_0xb1ba6f,_0x1eaa35[_0x2629cf('0x1202')]=_0x4b2fe2,_0x1eaa35[_0x2629cf('0x279')]=_0x387907,_0x1eaa35[_0x2629cf('0x167')]=_0xff73e1;function _0x2b9d16(){var _0x124336=_0x2629cf;_0x1eaa35[_0x124336('0x1a69')]=[],_0x310b0d[_0x124336('0x21e')][_0x124336('0x186f')](_0x1eaa35[_0x124336('0xb73')])[_0x124336('0x1376')]['then'](function(_0xd1aa19){var _0x477f4f=_0x124336;_0x1eaa35[_0x477f4f('0xf0d')][_0x477f4f('0xd0c')](_0xd1aa19[_0x477f4f('0x3bc')]()),_0x48c94d[_0x477f4f('0xdb1')]({'title':_0x477f4f('0x17d6'),'msg':_0x1eaa35[_0x477f4f('0xb73')][_0x477f4f('0x19fe')]?_0x1eaa35[_0x477f4f('0xb73')]['name']+_0x477f4f('0x1694'):''}),_0xff73e1(_0xd1aa19);})[_0x124336('0x1c1d')](function(_0x5394cb){var _0x3bc8ef=_0x124336;if(_0x5394cb[_0x3bc8ef('0x11c2')]&&_0x5394cb[_0x3bc8ef('0x11c2')][_0x3bc8ef('0x1a69')]&&_0x5394cb[_0x3bc8ef('0x11c2')]['errors']['length']){_0x1eaa35[_0x3bc8ef('0x1a69')]=_0x5394cb[_0x3bc8ef('0x11c2')][_0x3bc8ef('0x1a69')]||[{'message':_0x5394cb['toString'](),'type':_0x3bc8ef('0x41c')}];for(var _0x300179=0x0;_0x300179<_0x5394cb[_0x3bc8ef('0x11c2')][_0x3bc8ef('0x1a69')]['length'];_0x300179+=0x1){_0x48c94d['error']({'title':_0x5394cb[_0x3bc8ef('0x11c2')][_0x3bc8ef('0x1a69')][_0x300179][_0x3bc8ef('0x7fa')],'msg':_0x5394cb[_0x3bc8ef('0x11c2')][_0x3bc8ef('0x1a69')][_0x300179]['message']});}}else _0x48c94d[_0x3bc8ef('0x2092')]({'title':_0x5394cb[_0x3bc8ef('0x209')]?'API:'+_0x5394cb[_0x3bc8ef('0x209')]+_0x3bc8ef('0xa99')+_0x5394cb['statusText']:_0x3bc8ef('0x41c'),'msg':_0x5394cb[_0x3bc8ef('0x11c2')]?JSON['stringify'](_0x5394cb['data']['message']):_0x5394cb['toString']()});});}function _0xb1ba6f(){var _0xe1ae44=_0x2629cf;_0x1eaa35[_0xe1ae44('0x1a69')]=[],_0x310b0d[_0xe1ae44('0x21e')][_0xe1ae44('0x5ef')]({'id':_0x1eaa35[_0xe1ae44('0xb73')]['id']},_0x1eaa35['customization'])[_0xe1ae44('0x1376')][_0xe1ae44('0x21ad')](function(_0x3d4d25){var _0x577eb3=_0xe1ae44,_0x4322f6=_0x86640f()['find'](_0x1eaa35['customizations'],{'id':_0x3d4d25['id']});_0x4322f6&&_0x86640f()[_0x577eb3('0xd0e')](_0x4322f6,_0x86640f()[_0x577eb3('0xc50')](_0x3d4d25[_0x577eb3('0x3bc')](),_0x86640f()[_0x577eb3('0x223b')](_0x4322f6))),_0x48c94d[_0x577eb3('0xdb1')]({'title':_0x577eb3('0x2370'),'msg':_0x1eaa35[_0x577eb3('0xb73')]['name']?_0x1eaa35['customization'][_0x577eb3('0x19fe')]+_0x577eb3('0x2249'):''}),_0xff73e1(_0x3d4d25);})[_0xe1ae44('0x1c1d')](function(_0x2878b0){var _0x8234f9=_0xe1ae44;if(_0x2878b0['data']&&_0x2878b0[_0x8234f9('0x11c2')][_0x8234f9('0x1a69')]&&_0x2878b0[_0x8234f9('0x11c2')][_0x8234f9('0x1a69')][_0x8234f9('0x577')]){_0x1eaa35[_0x8234f9('0x1a69')]=_0x2878b0[_0x8234f9('0x11c2')]['errors']||[{'message':_0x2878b0['toString'](),'type':_0x8234f9('0x324')}];for(var _0xccdeef=0x0;_0xccdeef<_0x2878b0['data'][_0x8234f9('0x1a69')][_0x8234f9('0x577')];_0xccdeef++){_0x48c94d['error']({'title':_0x2878b0[_0x8234f9('0x11c2')][_0x8234f9('0x1a69')][_0xccdeef][_0x8234f9('0x7fa')],'msg':_0x2878b0['data']['errors'][_0xccdeef][_0x8234f9('0x1224')]});}}else _0x48c94d['error']({'title':_0x2878b0['status']?_0x8234f9('0x22d')+_0x2878b0[_0x8234f9('0x209')]+_0x8234f9('0xa99')+_0x2878b0[_0x8234f9('0x1808')]:_0x8234f9('0x324'),'msg':_0x2878b0[_0x8234f9('0x11c2')]?JSON['stringify'](_0x2878b0[_0x8234f9('0x11c2')][_0x8234f9('0x1224')]):_0x2878b0[_0x8234f9('0x174f')]()});});}function _0x4b2fe2(_0x2c32b9){var _0x25fba5=_0x2629cf;_0x1eaa35['errors']=[];var _0x19d1d6=_0x104d08['confirm']()[_0x25fba5('0x4b4')](_0x25fba5('0x196b'))[_0x25fba5('0x13fb')](_0x25fba5('0x210a'))['ariaLabel']('Delete\x20Customization')['ok']('Delete')[_0x25fba5('0x3b5')](_0x25fba5('0x1f40'))['targetEvent'](_0x2c32b9);_0x104d08[_0x25fba5('0x853')](_0x19d1d6)[_0x25fba5('0x21ad')](function(){var _0x4f2a2c=_0x25fba5;_0x310b0d[_0x4f2a2c('0x21e')][_0x4f2a2c('0x1164')]({'id':_0x1eaa35[_0x4f2a2c('0xb73')]['id']})[_0x4f2a2c('0x1376')][_0x4f2a2c('0x21ad')](function(){var _0xfe4105=_0x4f2a2c;_0x86640f()[_0xfe4105('0x16a2')](_0x1eaa35[_0xfe4105('0xf0d')],{'id':_0x1eaa35['customization']['id']}),_0x48c94d[_0xfe4105('0xdb1')]({'title':_0xfe4105('0x122a'),'msg':(_0x1eaa35['customization']['name']||_0xfe4105('0xb73'))+_0xfe4105('0xb4a')}),_0xff73e1(_0x1eaa35[_0xfe4105('0xb73')]);})[_0x4f2a2c('0x1c1d')](function(_0x5c5034){var _0x41afc8=_0x4f2a2c;if(_0x5c5034[_0x41afc8('0x11c2')]&&_0x5c5034[_0x41afc8('0x11c2')][_0x41afc8('0x1a69')]&&_0x5c5034[_0x41afc8('0x11c2')][_0x41afc8('0x1a69')][_0x41afc8('0x577')]){_0x1eaa35[_0x41afc8('0x1a69')]=_0x5c5034[_0x41afc8('0x11c2')][_0x41afc8('0x1a69')]||[{'message':_0x5c5034[_0x41afc8('0x174f')](),'type':_0x41afc8('0x831')}];for(var _0x4e62da=0x0;_0x4e62da<_0x5c5034[_0x41afc8('0x11c2')][_0x41afc8('0x1a69')]['length'];_0x4e62da++){_0x48c94d[_0x41afc8('0x2092')]({'title':_0x5c5034[_0x41afc8('0x11c2')][_0x41afc8('0x1a69')][_0x4e62da]['type'],'msg':_0x5c5034['data'][_0x41afc8('0x1a69')][_0x4e62da][_0x41afc8('0x1224')]});}}else _0x48c94d['error']({'title':_0x5c5034[_0x41afc8('0x209')]?_0x41afc8('0x22d')+_0x5c5034[_0x41afc8('0x209')]+_0x41afc8('0xa99')+_0x5c5034[_0x41afc8('0x1808')]:_0x41afc8('0x831'),'msg':_0x5c5034[_0x41afc8('0x11c2')]?JSON['stringify'](_0x5c5034[_0x41afc8('0x11c2')][_0x41afc8('0x1224')]):_0x5c5034['message']||_0x5c5034[_0x41afc8('0x174f')]()});});},function(){});}function _0x387907(_0x4923f7){return _0x4923f7===null?undefined:new Date(_0x4923f7);}function _0xff73e1(_0x19c8c9){var _0x280bf3=_0x2629cf;_0x104d08[_0x280bf3('0x1c24')](_0x19c8c9);}}const _0x3c9cf7=_0x25b9ce;_0x120f8b[_0x3877e3('0x1a81')]=[_0x3877e3('0xf0d'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x2ff'),'Auth'];function _0x120f8b(_0x5c8547,_0x18532e,_0xc3eb1e,_0xd561bb,_0x94021a){var _0x3ed041=_0x3877e3,_0x1e06a8=this;_0x1e06a8[_0x3ed041('0x123f')]=_0x94021a[_0x3ed041('0x15ed')](),_0x1e06a8[_0x3ed041('0x2ff')]=_0xd561bb,_0x1e06a8[_0x3ed041('0xf0d')]=_0x5c8547,_0x1e06a8['customization']={};_0x1e06a8[_0x3ed041('0xf0d')]&&_0x1e06a8[_0x3ed041('0xf0d')][_0x3ed041('0x1b33')]&&_0x1e06a8[_0x3ed041('0xf0d')][_0x3ed041('0x1b33')]['length']&&(_0x1e06a8['customization']=_0x1e06a8[_0x3ed041('0xf0d')][_0x3ed041('0x1b33')][0x0]);_0x1e06a8['saveCustomization']=_0x234107;function _0x234107(){var _0x2a9492=_0x3ed041;_0x1e06a8[_0x2a9492('0xb73')]['id']?_0x18532e[_0x2a9492('0x21e')][_0x2a9492('0x5ef')]({'id':_0x1e06a8['customization']['id']},_0x1e06a8[_0x2a9492('0xb73')])['$promise'][_0x2a9492('0x21ad')](function(){var _0x22fd2f=_0x2a9492;_0xc3eb1e[_0x22fd2f('0xdb1')]({'title':_0x22fd2f('0x7da'),'msg':_0x1e06a8['customization'][_0x22fd2f('0x19fe')]?_0x1e06a8[_0x22fd2f('0xb73')]['name']+_0x22fd2f('0xa8d'):''});})['catch'](function(_0x1d5cb5){var _0x3b817f=_0x2a9492;_0xc3eb1e[_0x3b817f('0x2092')]({'title':_0x1d5cb5['status']?_0x3b817f('0x22d')+_0x1d5cb5['status']+_0x3b817f('0xa99')+_0x1d5cb5['statusText']:_0x3b817f('0x278c'),'msg':_0x1d5cb5['data']?JSON[_0x3b817f('0x25e')](_0x1d5cb5['data']):_0x1d5cb5[_0x3b817f('0x174f')]()});}):_0x18532e[_0x2a9492('0x21e')][_0x2a9492('0x186f')](_0x1e06a8[_0x2a9492('0xb73')])['$promise']['then'](function(_0x4be135){var _0x2f8098=_0x2a9492;_0x86640f()[_0x2f8098('0xd0e')](_0x1e06a8['customization'],_0x4be135),_0xc3eb1e[_0x2f8098('0xdb1')]({'title':_0x2f8098('0x7da'),'msg':_0x1e06a8[_0x2f8098('0xb73')]['name']?_0x1e06a8[_0x2f8098('0xb73')][_0x2f8098('0x19fe')]+_0x2f8098('0xa8d'):''});})['catch'](function(_0x56382c){var _0x58d288=_0x2a9492;_0xc3eb1e[_0x58d288('0x2092')]({'title':_0x56382c['status']?_0x58d288('0x22d')+_0x56382c[_0x58d288('0x209')]+_0x58d288('0xa99')+_0x56382c[_0x58d288('0x1808')]:_0x58d288('0x278c'),'msg':_0x56382c[_0x58d288('0x11c2')]?JSON['stringify'](_0x56382c['data']):_0x56382c[_0x58d288('0x174f')]()});});}}const _0x181a72=_0x120f8b;_0x4368c3[_0x3877e3('0x1a81')]=['$cookies',_0x3877e3('0x1908')];function _0x4368c3(_0xc685c5,_0x319bbb){var _0x31ad0c=_0x3877e3,_0x21105c=this,_0x56cc24=0x8,_0xda7c3=_0x56cc24*0x400*0x400;_0x21105c['customization']={},_0x21105c[_0x31ad0c('0x467')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0xda7c3,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x21105c[_0x31ad0c('0x1413')]={'flow':{}},_0x21105c['dropping']=![],_0x21105c[_0x31ad0c('0x20d9')]=_0x26adc8,_0x21105c[_0x31ad0c('0x12d0')]=_0x29a665,_0x21105c['fileSuccess']=_0x44e639,_0x21105c[_0x31ad0c('0x1d75')]=_0x1ae94b;function _0x1ae94b(_0x33785b){var _0xb6a269=_0x31ad0c;_0x21105c[_0xb6a269('0xb73')]=angular[_0xb6a269('0xd75')](_0x33785b),_0x21105c['ngFlowOptions'][_0xb6a269('0x14a5')]=_0xb6a269('0x137f')[_0xb6a269('0x16e4')](_0xb6a269('0x1938'),_0x21105c[_0xb6a269('0xb73')]['id']),_0x21105c['customization'][_0xb6a269('0x851')]=[];}function _0x26adc8(_0x212c46){var _0x54ec3c=_0x31ad0c,_0xcc1b8a=['png',_0x54ec3c('0x13d2'),'ico'];if(!_0x86640f()[_0x54ec3c('0xb34')](_0xcc1b8a,_0x212c46['getExtension']()))return _0x319bbb['error']({'title':'Invalid\x20extension:\x20'+_0x212c46[_0x54ec3c('0x9bb')](),'msg':_0x54ec3c('0x156b')+_0xcc1b8a[_0x54ec3c('0x136')]()}),![];if(_0x212c46[_0x54ec3c('0x337')]>_0xda7c3)return _0x319bbb[_0x54ec3c('0x2092')]({'title':'File\x20too\x20big','msg':_0x54ec3c('0xc3a')+_0x56cc24+'MB'}),![];var _0x59e381={'id':_0x212c46[_0x54ec3c('0x25f6')],'file':_0x212c46,'type':'uploading'};return _0x21105c[_0x54ec3c('0xb73')][_0x54ec3c('0x851')][_0x54ec3c('0xd0c')](_0x59e381),!![];}function _0x29a665(){var _0x2ff997=_0x31ad0c;_0x21105c[_0x2ff997('0x1413')][_0x2ff997('0x1d76')]['opts'][_0x2ff997('0x4d8')]={'X-Requested-With':_0x2ff997('0x24ca'),'Authorization':_0x2ff997('0x5c8')+_0xc685c5[_0x2ff997('0x595')](_0x2ff997('0x863'))},_0x21105c[_0x2ff997('0x1413')][_0x2ff997('0x1d76')]['upload']();}function _0x44e639(_0x4f4ed0){var _0x4a98fe=_0x31ad0c;angular[_0x4a98fe('0x1a52')](_0x21105c[_0x4a98fe('0xb73')][_0x4a98fe('0x851')],function(_0x3bd906){var _0x71a563=_0x4a98fe;if(_0x3bd906['id']===_0x4f4ed0[_0x71a563('0x25f6')]){var _0x480743=new FileReader();_0x480743[_0x71a563('0x1e50')](_0x3bd906['file'][_0x71a563('0x18a9')]),_0x480743[_0x71a563('0x1efd')]=function(_0x3ef974){var _0x5c4fe4=_0x71a563;_0x3bd906[_0x5c4fe4('0x770')]=_0x3ef974[_0x5c4fe4('0x14a5')][_0x5c4fe4('0x8c7')];},_0x3bd906[_0x71a563('0x7fa')]=_0x71a563('0x1318');}});}}const _0x50cc92=_0x4368c3;_0xa92dfb[_0x3877e3('0x1a81')]=[_0x3877e3('0x26'),'toasty'];function _0xa92dfb(_0x58855f,_0x7b1a86){var _0x45b367=_0x3877e3,_0x3c7803=this,_0x13d4f8=0x8,_0x3d30d9=_0x13d4f8*0x400*0x400;_0x3c7803[_0x45b367('0xb73')]={},_0x3c7803[_0x45b367('0x467')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x3d30d9,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x3c7803[_0x45b367('0x1413')]={'flow':{}},_0x3c7803[_0x45b367('0x8c3')]=![],_0x3c7803[_0x45b367('0x20d9')]=_0xdafe9f,_0x3c7803['upload']=_0x2e1ec1,_0x3c7803[_0x45b367('0x27eb')]=_0x52aa45,_0x3c7803[_0x45b367('0x1d75')]=_0x47451b;function _0x47451b(_0x309415){var _0x34447d=_0x45b367;_0x3c7803[_0x34447d('0xb73')]=angular['copy'](_0x309415),_0x3c7803[_0x34447d('0x467')][_0x34447d('0x14a5')]=_0x34447d('0x2541')[_0x34447d('0x16e4')](':id',_0x3c7803[_0x34447d('0xb73')]['id']),_0x3c7803[_0x34447d('0xb73')][_0x34447d('0x851')]=[];}function _0xdafe9f(_0x3344ea){var _0x41f2c7=_0x45b367,_0x5863d6=[_0x41f2c7('0x14f5'),_0x41f2c7('0x13d2')];if(!_0x86640f()[_0x41f2c7('0xb34')](_0x5863d6,_0x3344ea[_0x41f2c7('0x9bb')]()))return _0x7b1a86['error']({'title':_0x41f2c7('0x397')+_0x3344ea['getExtension'](),'msg':_0x41f2c7('0x156b')+_0x5863d6[_0x41f2c7('0x136')]()}),![];if(_0x3344ea[_0x41f2c7('0x337')]>_0x3d30d9)return _0x7b1a86[_0x41f2c7('0x2092')]({'title':'File\x20too\x20big','msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x13d4f8+'MB'}),![];var _0xd5eda1={'id':_0x3344ea[_0x41f2c7('0x25f6')],'file':_0x3344ea,'type':_0x41f2c7('0x326')};return _0x3c7803[_0x41f2c7('0xb73')]['images']['unshift'](_0xd5eda1),!![];}function _0x2e1ec1(){var _0x52bd95=_0x45b367;_0x3c7803['ngFlow'][_0x52bd95('0x1d76')][_0x52bd95('0x1dd3')][_0x52bd95('0x4d8')]={'X-Requested-With':_0x52bd95('0x24ca'),'Authorization':_0x52bd95('0x5c8')+_0x58855f['get'](_0x52bd95('0x863'))},_0x3c7803[_0x52bd95('0x1413')][_0x52bd95('0x1d76')][_0x52bd95('0x12d0')]();}function _0x52aa45(_0x2565ae){var _0x30a3b4=_0x45b367;angular[_0x30a3b4('0x1a52')](_0x3c7803[_0x30a3b4('0xb73')][_0x30a3b4('0x851')],function(_0x584645){var _0x4fb002=_0x30a3b4;if(_0x584645['id']===_0x2565ae[_0x4fb002('0x25f6')]){var _0xade535=new FileReader();_0xade535[_0x4fb002('0x1e50')](_0x584645[_0x4fb002('0x18a9')][_0x4fb002('0x18a9')]),_0xade535[_0x4fb002('0x1efd')]=function(_0x5d44e8){var _0x34d1bc=_0x4fb002;_0x584645[_0x34d1bc('0x770')]=_0x5d44e8['target'][_0x34d1bc('0x8c7')];},_0x584645[_0x4fb002('0x7fa')]='image';}});}}const _0x25e9cb=_0xa92dfb;_0x139ce3['$inject']=[_0x3877e3('0x26'),_0x3877e3('0x1908')];function _0x139ce3(_0x465964,_0x1780fb){var _0x37b805=_0x3877e3,_0x41e187=this,_0x56caea=0x8,_0x1f1eb1=_0x56caea*0x400*0x400;_0x41e187[_0x37b805('0xb73')]={},_0x41e187[_0x37b805('0x467')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x1f1eb1,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x41e187[_0x37b805('0x1413')]={'flow':{}},_0x41e187[_0x37b805('0x8c3')]=![],_0x41e187['fileAdded']=_0x3c27f1,_0x41e187[_0x37b805('0x12d0')]=_0x2fcf61,_0x41e187[_0x37b805('0x27eb')]=_0x1637b3,_0x41e187[_0x37b805('0x1d75')]=_0x349465;function _0x349465(_0x2527bb){var _0x32c6d0=_0x37b805;_0x41e187[_0x32c6d0('0xb73')]=angular[_0x32c6d0('0xd75')](_0x2527bb),_0x41e187[_0x32c6d0('0x467')][_0x32c6d0('0x14a5')]=_0x32c6d0('0x1e5d')[_0x32c6d0('0x16e4')](':id',_0x41e187[_0x32c6d0('0xb73')]['id']),_0x41e187[_0x32c6d0('0xb73')]['images']=[];}function _0x3c27f1(_0x238e7c){var _0x1383ec=_0x37b805,_0x30bd14=[_0x1383ec('0x14f5'),_0x1383ec('0x13d2')];if(!_0x86640f()[_0x1383ec('0xb34')](_0x30bd14,_0x238e7c[_0x1383ec('0x9bb')]()))return _0x1780fb[_0x1383ec('0x2092')]({'title':_0x1383ec('0x397')+_0x238e7c[_0x1383ec('0x9bb')](),'msg':_0x1383ec('0x156b')+_0x30bd14[_0x1383ec('0x136')]()}),![];if(_0x238e7c[_0x1383ec('0x337')]>_0x1f1eb1)return _0x1780fb[_0x1383ec('0x2092')]({'title':_0x1383ec('0x8d1'),'msg':_0x1383ec('0xc3a')+_0x56caea+'MB'}),![];var _0x5374d6={'id':_0x238e7c[_0x1383ec('0x25f6')],'file':_0x238e7c,'type':_0x1383ec('0x326')};return _0x41e187[_0x1383ec('0xb73')]['images'][_0x1383ec('0xd0c')](_0x5374d6),!![];}function _0x2fcf61(){var _0x33b2e7=_0x37b805;_0x41e187['ngFlow'][_0x33b2e7('0x1d76')][_0x33b2e7('0x1dd3')][_0x33b2e7('0x4d8')]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x33b2e7('0x5c8')+_0x465964[_0x33b2e7('0x595')](_0x33b2e7('0x863'))},_0x41e187['ngFlow'][_0x33b2e7('0x1d76')]['upload']();}function _0x1637b3(_0x44cc9e){var _0x3e051f=_0x37b805;angular[_0x3e051f('0x1a52')](_0x41e187[_0x3e051f('0xb73')][_0x3e051f('0x851')],function(_0x547dd3){var _0x1b8e42=_0x3e051f;if(_0x547dd3['id']===_0x44cc9e['uniqueIdentifier']){var _0x1333a5=new FileReader();_0x1333a5[_0x1b8e42('0x1e50')](_0x547dd3[_0x1b8e42('0x18a9')][_0x1b8e42('0x18a9')]),_0x1333a5[_0x1b8e42('0x1efd')]=function(_0x32ef19){var _0x38345f=_0x1b8e42;_0x547dd3['url']=_0x32ef19[_0x38345f('0x14a5')]['result'];},_0x547dd3[_0x1b8e42('0x7fa')]=_0x1b8e42('0x1318');}});}}const _0x476003=_0x139ce3;_0x22b65d[_0x3877e3('0x1a81')]=[_0x3877e3('0x26'),_0x3877e3('0x1908')];function _0x22b65d(_0x142ee3,_0x2206d5){var _0x13fff2=_0x3877e3,_0x24e2f5=this,_0x41089f=0x8,_0x249ed5=_0x41089f*0x400*0x400;_0x24e2f5['customization']={},_0x24e2f5['ngFlowOptions']={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x249ed5,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x24e2f5[_0x13fff2('0x1413')]={'flow':{}},_0x24e2f5[_0x13fff2('0x8c3')]=![],_0x24e2f5[_0x13fff2('0x20d9')]=_0x3f3f80,_0x24e2f5['upload']=_0x3e5f82,_0x24e2f5[_0x13fff2('0x27eb')]=_0x189b9d,_0x24e2f5[_0x13fff2('0x1d75')]=_0x1f8a54;function _0x1f8a54(_0x4f056c){var _0x4a5d29=_0x13fff2;_0x24e2f5[_0x4a5d29('0xb73')]=angular[_0x4a5d29('0xd75')](_0x4f056c),_0x24e2f5[_0x4a5d29('0x467')][_0x4a5d29('0x14a5')]='/api/settings/1/preferred'['replace'](_0x4a5d29('0x1938'),_0x24e2f5['customization']['id']),_0x24e2f5[_0x4a5d29('0xb73')]['images']=[];}function _0x3f3f80(_0x539a72){var _0x5aaf78=_0x13fff2,_0x2a76bb=[_0x5aaf78('0x14f5'),'jpg'];if(!_0x86640f()[_0x5aaf78('0xb34')](_0x2a76bb,_0x539a72[_0x5aaf78('0x9bb')]()))return _0x2206d5[_0x5aaf78('0x2092')]({'title':_0x5aaf78('0x397')+_0x539a72[_0x5aaf78('0x9bb')](),'msg':'Supported\x20extension:\x20'+_0x2a76bb[_0x5aaf78('0x136')]()}),![];if(_0x539a72[_0x5aaf78('0x337')]>_0x249ed5)return _0x2206d5[_0x5aaf78('0x2092')]({'title':'File\x20too\x20big','msg':_0x5aaf78('0xc3a')+_0x41089f+'MB'}),![];var _0x50157c={'id':_0x539a72['uniqueIdentifier'],'file':_0x539a72,'type':_0x5aaf78('0x326')};return _0x24e2f5[_0x5aaf78('0xb73')]['images'][_0x5aaf78('0xd0c')](_0x50157c),!![];}function _0x3e5f82(){var _0x1902c4=_0x13fff2;_0x24e2f5[_0x1902c4('0x1413')]['flow']['opts'][_0x1902c4('0x4d8')]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x1902c4('0x5c8')+_0x142ee3[_0x1902c4('0x595')](_0x1902c4('0x863'))},_0x24e2f5[_0x1902c4('0x1413')][_0x1902c4('0x1d76')][_0x1902c4('0x12d0')]();}function _0x189b9d(_0x448cba){var _0x2d8220=_0x13fff2;angular[_0x2d8220('0x1a52')](_0x24e2f5[_0x2d8220('0xb73')][_0x2d8220('0x851')],function(_0x20c013){var _0x174170=_0x2d8220;if(_0x20c013['id']===_0x448cba['uniqueIdentifier']){var _0x24bdcf=new FileReader();_0x24bdcf[_0x174170('0x1e50')](_0x20c013[_0x174170('0x18a9')]['file']),_0x24bdcf[_0x174170('0x1efd')]=function(_0x10526e){var _0xc20ce4=_0x174170;_0x20c013[_0xc20ce4('0x770')]=_0x10526e[_0xc20ce4('0x14a5')][_0xc20ce4('0x8c7')];},_0x20c013['type']=_0x174170('0x1318');}});}}const _0xa21fcd=_0x22b65d;_0x16c83b[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),'$mdDialog','$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x3d1'),_0x3877e3('0x1a9b'),_0x3877e3('0xccd'),'Auth',_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x16c83b(_0x2589ed,_0x2c7c06,_0x4c1b66,_0x15f84d,_0x413ba8,_0x452e56,_0x33c502,_0xbd80da,_0x277e5a,_0x3686c5,_0x536241,_0x25df4e,_0x4f180e,_0x319567){var _0x77b924=_0x3877e3,_0x28ce5f=this;_0x28ce5f[_0x77b924('0x123f')]=_0x536241[_0x77b924('0x15ed')](),_0x28ce5f[_0x77b924('0x1a69')]=[],_0x28ce5f[_0x77b924('0x21e')]=_0x4f180e,_0x28ce5f[_0x77b924('0x2ff')]=_0x25df4e,_0x28ce5f[_0x77b924('0x5ed')]=_0x319567,_0x28ce5f[_0x77b924('0x126a')]={},_0x28ce5f[_0x77b924('0x1432')]=_0x28ce5f[_0x77b924('0x21e')]&&_0x28ce5f['setting'][_0x77b924('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x28ce5f['title']='SETTINGS.EDIT_GENERAL',_0x28ce5f[_0x77b924('0x1a9b')]=angular[_0x77b924('0xd75')](_0x277e5a),_0x28ce5f[_0x77b924('0x3d1')]=_0xbd80da,_0x28ce5f[_0x77b924('0x16be')]=![];!_0x28ce5f['general']&&(_0x28ce5f[_0x77b924('0x1a9b')]={'min_internal':0x3e8,'chatTimeout':0x1e,'phoneBarAutoUpdater':!![],'phoneBarAutoUpdaterUrl':_0x77b924('0x11d6'),'splitSizeCsv':0x1388,'splitSizePdf':0x3e8,'splitSizeXlsx':0x1388,'messagesAlignment':_0x77b924('0x886'),'phoneBarRememberMeEnabled':!![],'allowedLoginAttempts':0x5,'blockDuration':0xa,'loginMailFrequency':0xa,'enforcePasswordHistory':!![],'passwordHistoryLimit':0x3},_0x28ce5f['title']=_0x77b924('0x2387'),_0x28ce5f[_0x77b924('0x16be')]=!![]);_0x28ce5f[_0x77b924('0x60c')]=_0x1a6fae,_0x28ce5f[_0x77b924('0xeec')]=_0x4c0190,_0x28ce5f[_0x77b924('0x24b3')]=_0x3cb8ec,_0x28ce5f[_0x77b924('0x279')]=_0x83f63c,_0x28ce5f['closeDialog']=_0x13354c,_0x3686c5[_0x77b924('0x1cdb')][_0x77b924('0x595')]({'fields':_0x77b924('0x1aa8'),'sort':'name','nolimit':_0x77b924('0x19bd')})[_0x77b924('0x1376')][_0x77b924('0x21ad')](function(_0x53ec25){_0x28ce5f['cloudProviders']=_0x53ec25['rows']||[];})['catch'](function(_0x37fe03){var _0x282317=_0x77b924;_0x33c502['error']({'title':_0x37fe03[_0x282317('0x209')]?_0x282317('0x22d')+_0x37fe03[_0x282317('0x209')]+'\x20-\x20'+_0x37fe03['statusText']:'SYSTEM:GET_CLOUDPROVIDERS','msg':_0x37fe03[_0x282317('0x11c2')]?JSON[_0x282317('0x25e')](_0x37fe03['data']):_0x37fe03[_0x282317('0x174f')]()});});function _0x1a6fae(){var _0x3b5644=_0x77b924;_0x28ce5f[_0x3b5644('0x1a69')]=[],_0x3686c5[_0x3b5644('0x21e')][_0x3b5644('0x186f')](_0x28ce5f[_0x3b5644('0x1a9b')])['$promise'][_0x3b5644('0x21ad')](function(_0x546389){var _0x482e9d=_0x3b5644;_0x28ce5f[_0x482e9d('0x3d1')][_0x482e9d('0xd0c')](_0x546389['toJSON']()),_0x33c502[_0x482e9d('0xdb1')]({'title':_0x482e9d('0x119e'),'msg':_0x28ce5f[_0x482e9d('0x1a9b')][_0x482e9d('0x19fe')]?_0x28ce5f[_0x482e9d('0x1a9b')][_0x482e9d('0x19fe')]+_0x482e9d('0x1694'):''}),_0x13354c(_0x546389);})['catch'](function(_0x59a98f){var _0x159f76=_0x3b5644;if(_0x59a98f[_0x159f76('0x11c2')]&&_0x59a98f[_0x159f76('0x11c2')][_0x159f76('0x1a69')]&&_0x59a98f[_0x159f76('0x11c2')]['errors'][_0x159f76('0x577')]){_0x28ce5f[_0x159f76('0x1a69')]=_0x59a98f[_0x159f76('0x11c2')]['errors']||[{'message':_0x59a98f[_0x159f76('0x174f')](),'type':'api.setting.save'}];for(var _0x42098a=0x0;_0x42098a<_0x59a98f[_0x159f76('0x11c2')][_0x159f76('0x1a69')][_0x159f76('0x577')];_0x42098a+=0x1){_0x33c502[_0x159f76('0x2092')]({'title':_0x59a98f[_0x159f76('0x11c2')][_0x159f76('0x1a69')][_0x42098a][_0x159f76('0x7fa')],'msg':_0x59a98f[_0x159f76('0x11c2')][_0x159f76('0x1a69')][_0x42098a][_0x159f76('0x1224')]});}}else _0x33c502[_0x159f76('0x2092')]({'title':_0x59a98f['status']?'API:'+_0x59a98f[_0x159f76('0x209')]+_0x159f76('0xa99')+_0x59a98f['statusText']:_0x159f76('0x41c'),'msg':_0x59a98f['data']?JSON[_0x159f76('0x25e')](_0x59a98f[_0x159f76('0x11c2')][_0x159f76('0x1224')]):_0x59a98f[_0x159f76('0x174f')]()});});}function _0x4c0190(){var _0x133614=_0x77b924;_0x28ce5f['errors']=[],_0x3686c5[_0x133614('0x21e')][_0x133614('0x5ef')]({'id':_0x28ce5f[_0x133614('0x1a9b')]['id']},_0x28ce5f[_0x133614('0x1a9b')])[_0x133614('0x1376')][_0x133614('0x21ad')](function(_0x47f31a){var _0x4b45e0=_0x133614,_0x5565dd=_0x86640f()[_0x4b45e0('0x1d2e')](_0x28ce5f[_0x4b45e0('0x3d1')],{'id':_0x47f31a['id']});_0x5565dd&&_0x86640f()['merge'](_0x5565dd,_0x86640f()[_0x4b45e0('0xc50')](_0x47f31a[_0x4b45e0('0x3bc')](),_0x86640f()[_0x4b45e0('0x223b')](_0x5565dd))),_0x33c502[_0x4b45e0('0xdb1')]({'title':_0x4b45e0('0x1b12'),'msg':_0x28ce5f[_0x4b45e0('0x1a9b')][_0x4b45e0('0x19fe')]?_0x28ce5f[_0x4b45e0('0x1a9b')]['name']+_0x4b45e0('0x2249'):''}),_0x13354c(_0x47f31a);})[_0x133614('0x1c1d')](function(_0x859559){var _0x4b68d8=_0x133614;if(_0x859559[_0x4b68d8('0x11c2')]&&_0x859559[_0x4b68d8('0x11c2')][_0x4b68d8('0x1a69')]&&_0x859559[_0x4b68d8('0x11c2')][_0x4b68d8('0x1a69')][_0x4b68d8('0x577')]){_0x28ce5f[_0x4b68d8('0x1a69')]=_0x859559['data'][_0x4b68d8('0x1a69')]||[{'message':_0x859559[_0x4b68d8('0x174f')](),'type':_0x4b68d8('0x324')}];for(var _0x1611a2=0x0;_0x1611a2<_0x859559[_0x4b68d8('0x11c2')][_0x4b68d8('0x1a69')]['length'];_0x1611a2++){_0x33c502['error']({'title':_0x859559[_0x4b68d8('0x11c2')][_0x4b68d8('0x1a69')][_0x1611a2]['type'],'msg':_0x859559[_0x4b68d8('0x11c2')][_0x4b68d8('0x1a69')][_0x1611a2]['message']});}}else _0x33c502[_0x4b68d8('0x2092')]({'title':_0x859559['status']?_0x4b68d8('0x22d')+_0x859559['status']+_0x4b68d8('0xa99')+_0x859559[_0x4b68d8('0x1808')]:'api.setting.update','msg':_0x859559[_0x4b68d8('0x11c2')]?JSON['stringify'](_0x859559[_0x4b68d8('0x11c2')][_0x4b68d8('0x1224')]):_0x859559['toString']()});});}function _0x3cb8ec(_0x4981a6){var _0x22c9d4=_0x77b924;_0x28ce5f[_0x22c9d4('0x1a69')]=[];var _0x2ee96c=_0x15f84d[_0x22c9d4('0xa33')]()['title'](_0x22c9d4('0x196b'))[_0x22c9d4('0x13fb')](_0x22c9d4('0xa75'))[_0x22c9d4('0x7a7')]('Delete\x20General')['ok'](_0x22c9d4('0xbfd'))[_0x22c9d4('0x3b5')](_0x22c9d4('0x1f40'))['targetEvent'](_0x4981a6);_0x15f84d['show'](_0x2ee96c)[_0x22c9d4('0x21ad')](function(){var _0x2c15fa=_0x22c9d4;_0x3686c5[_0x2c15fa('0x21e')][_0x2c15fa('0x1164')]({'id':_0x28ce5f[_0x2c15fa('0x1a9b')]['id']})[_0x2c15fa('0x1376')][_0x2c15fa('0x21ad')](function(){var _0x4c0917=_0x2c15fa;_0x86640f()[_0x4c0917('0x16a2')](_0x28ce5f[_0x4c0917('0x3d1')],{'id':_0x28ce5f[_0x4c0917('0x1a9b')]['id']}),_0x33c502['success']({'title':'General\x20properly\x20deleted!','msg':(_0x28ce5f[_0x4c0917('0x1a9b')][_0x4c0917('0x19fe')]||_0x4c0917('0x1a9b'))+_0x4c0917('0xb4a')}),_0x13354c(_0x28ce5f[_0x4c0917('0x1a9b')]);})[_0x2c15fa('0x1c1d')](function(_0x1e5f93){var _0x382346=_0x2c15fa;if(_0x1e5f93[_0x382346('0x11c2')]&&_0x1e5f93['data']['errors']&&_0x1e5f93[_0x382346('0x11c2')]['errors']['length']){_0x28ce5f[_0x382346('0x1a69')]=_0x1e5f93[_0x382346('0x11c2')]['errors']||[{'message':_0x1e5f93[_0x382346('0x174f')](),'type':_0x382346('0x831')}];for(var _0x40cab0=0x0;_0x40cab0<_0x1e5f93['data'][_0x382346('0x1a69')][_0x382346('0x577')];_0x40cab0++){_0x33c502[_0x382346('0x2092')]({'title':_0x1e5f93['data'][_0x382346('0x1a69')][_0x40cab0][_0x382346('0x7fa')],'msg':_0x1e5f93[_0x382346('0x11c2')]['errors'][_0x40cab0][_0x382346('0x1224')]});}}else _0x33c502[_0x382346('0x2092')]({'title':_0x1e5f93[_0x382346('0x209')]?_0x382346('0x22d')+_0x1e5f93[_0x382346('0x209')]+_0x382346('0xa99')+_0x1e5f93[_0x382346('0x1808')]:_0x382346('0x831'),'msg':_0x1e5f93[_0x382346('0x11c2')]?JSON['stringify'](_0x1e5f93[_0x382346('0x11c2')]['message']):_0x1e5f93[_0x382346('0x1224')]||_0x1e5f93['toString']()});});},function(){});}function _0x83f63c(_0x46ca2f){return _0x46ca2f===null?undefined:new Date(_0x46ca2f);}function _0x13354c(_0x335549){_0x15f84d['hide'](_0x335549);}}const _0x3d0d2c=_0x16c83b;_0x2cd1f0[_0x3877e3('0x1a81')]=[_0x3877e3('0x3d1'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x2ff'),_0x3877e3('0x15bc')];function _0x2cd1f0(_0x12ce53,_0x270993,_0x41cf04,_0x4cdc0e,_0x29144d){var _0x49337b=_0x3877e3,_0x2cb33c=this;_0x2cb33c[_0x49337b('0x123f')]=_0x29144d[_0x49337b('0x15ed')](),_0x2cb33c['license']=_0x4cdc0e,_0x2cb33c[_0x49337b('0x3d1')]=_0x12ce53,_0x2cb33c['general']={};_0x2cb33c[_0x49337b('0x3d1')]&&_0x2cb33c[_0x49337b('0x3d1')][_0x49337b('0x1b33')]&&_0x2cb33c[_0x49337b('0x3d1')][_0x49337b('0x1b33')]['length']&&(_0x2cb33c['general']=_0x2cb33c[_0x49337b('0x3d1')][_0x49337b('0x1b33')][0x0]);_0x270993[_0x49337b('0x1cdb')]['get']({'fields':_0x49337b('0x1aa8'),'sort':_0x49337b('0x19fe'),'nolimit':_0x49337b('0x19bd')})[_0x49337b('0x1376')]['then'](function(_0x40a27d){var _0x538496=_0x49337b;_0x2cb33c[_0x538496('0xc6')]=_0x40a27d[_0x538496('0x1b33')]||[];})[_0x49337b('0x1c1d')](function(_0x238e36){var _0x3326ab=_0x49337b;_0x41cf04[_0x3326ab('0x2092')]({'title':_0x238e36[_0x3326ab('0x209')]?'API:'+_0x238e36[_0x3326ab('0x209')]+_0x3326ab('0xa99')+_0x238e36['statusText']:_0x3326ab('0x884'),'msg':_0x238e36[_0x3326ab('0x11c2')]?JSON[_0x3326ab('0x25e')](_0x238e36[_0x3326ab('0x11c2')]):_0x238e36[_0x3326ab('0x174f')]()});}),_0x2cb33c[_0x49337b('0xeec')]=_0x32312d;function _0x32312d(){var _0x4a40c2=_0x49337b;_0x2cb33c['general']['id']?_0x270993[_0x4a40c2('0x21e')][_0x4a40c2('0x5ef')]({'id':_0x2cb33c['general']['id']},_0x2cb33c[_0x4a40c2('0x1a9b')])[_0x4a40c2('0x1376')][_0x4a40c2('0x21ad')](function(){var _0xc0807c=_0x4a40c2;_0x41cf04[_0xc0807c('0xdb1')]({'title':_0xc0807c('0x1051'),'msg':_0x2cb33c['general']['name']?_0x2cb33c[_0xc0807c('0x1a9b')][_0xc0807c('0x19fe')]+'\x20has\x20been\x20updated!':''});})[_0x4a40c2('0x1c1d')](function(_0x40a2a2){var _0x2df1ab=_0x4a40c2;_0x41cf04[_0x2df1ab('0x2092')]({'title':_0x40a2a2[_0x2df1ab('0x209')]?'API:'+_0x40a2a2[_0x2df1ab('0x209')]+_0x2df1ab('0xa99')+_0x40a2a2[_0x2df1ab('0x1808')]:_0x2df1ab('0x278c'),'msg':_0x40a2a2[_0x2df1ab('0x11c2')]?JSON[_0x2df1ab('0x25e')](_0x40a2a2[_0x2df1ab('0x11c2')]):_0x40a2a2['toString']()});}):_0x270993['setting']['save'](_0x2cb33c['general'])[_0x4a40c2('0x1376')]['then'](function(_0xe4fded){var _0x26a253=_0x4a40c2;_0x86640f()[_0x26a253('0xd0e')](_0x2cb33c[_0x26a253('0x1a9b')],_0xe4fded),_0x41cf04[_0x26a253('0xdb1')]({'title':_0x26a253('0x1051'),'msg':_0x2cb33c[_0x26a253('0x1a9b')][_0x26a253('0x19fe')]?_0x2cb33c[_0x26a253('0x1a9b')][_0x26a253('0x19fe')]+_0x26a253('0xa8d'):''});})['catch'](function(_0x5aefd7){var _0xb54387=_0x4a40c2;_0x41cf04['error']({'title':_0x5aefd7[_0xb54387('0x209')]?_0xb54387('0x22d')+_0x5aefd7[_0xb54387('0x209')]+'\x20-\x20'+_0x5aefd7[_0xb54387('0x1808')]:_0xb54387('0x278c'),'msg':_0x5aefd7[_0xb54387('0x11c2')]?JSON[_0xb54387('0x25e')](_0x5aefd7[_0xb54387('0x11c2')]):_0x5aefd7[_0xb54387('0x174f')]()});});}}const _0x27186a=_0x2cd1f0;_0x450ce3[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x18cd'),_0x3877e3('0x1a37'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting'];function _0x450ce3(_0x5b6aa9,_0x5edf61,_0xcec34b,_0x3602c5,_0x1b403a,_0x5b56db,_0x264eba,_0x117908,_0xa5f4,_0x215eac,_0x5d4e10,_0x137c20,_0x3912c2){var _0x5d92fb=_0x3877e3,_0x29c89d=this;_0x29c89d[_0x5d92fb('0x123f')]=_0x5d4e10['getCurrentUser'](),_0x29c89d['errors']=[],_0x29c89d['setting']=_0x3912c2,_0x29c89d[_0x5d92fb('0x2ff')]=_0x137c20,_0x29c89d[_0x5d92fb('0x126a')]={},_0x29c89d[_0x5d92fb('0x1432')]=_0x29c89d[_0x5d92fb('0x21e')]&&_0x29c89d[_0x5d92fb('0x21e')][_0x5d92fb('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x29c89d['title']='SETTINGS.EDIT_NETWORK',_0x29c89d[_0x5d92fb('0x1a37')]=angular['copy'](_0xa5f4),_0x29c89d[_0x5d92fb('0x18cd')]=_0x117908,_0x29c89d[_0x5d92fb('0x817')]=![];!_0x29c89d[_0x5d92fb('0x1a37')]&&(_0x29c89d['network']={'type':_0x5d92fb('0x415')},_0x29c89d[_0x5d92fb('0x4b4')]=_0x5d92fb('0x62d'),_0x29c89d[_0x5d92fb('0x817')]=!![]);_0x29c89d[_0x5d92fb('0x22ea')]=_0x49b3f4,_0x29c89d[_0x5d92fb('0x26d3')]=_0x4dad20,_0x29c89d['deleteNetwork']=_0x55833c,_0x29c89d[_0x5d92fb('0x279')]=_0x3ec37e,_0x29c89d[_0x5d92fb('0x167')]=_0x394d73;function _0x49b3f4(){var _0x2d81eb=_0x5d92fb;_0x29c89d[_0x2d81eb('0x1a69')]=[],_0x215eac[_0x2d81eb('0x1a37')]['save'](_0x29c89d['network'])[_0x2d81eb('0x1376')][_0x2d81eb('0x21ad')](function(_0x386b3c){var _0x5bd9aa=_0x2d81eb;_0x29c89d[_0x5bd9aa('0x18cd')][_0x5bd9aa('0xd0c')](_0x386b3c[_0x5bd9aa('0x3bc')]()),_0x264eba[_0x5bd9aa('0xdb1')]({'title':_0x5bd9aa('0x1c30'),'msg':_0x29c89d[_0x5bd9aa('0x1a37')]['name']?_0x29c89d[_0x5bd9aa('0x1a37')][_0x5bd9aa('0x19fe')]+_0x5bd9aa('0x1694'):''}),_0x394d73(_0x386b3c);})[_0x2d81eb('0x1c1d')](function(_0x1ec865){var _0x47e45a=_0x2d81eb;if(_0x1ec865[_0x47e45a('0x11c2')]&&_0x1ec865['data'][_0x47e45a('0x1a69')]&&_0x1ec865[_0x47e45a('0x11c2')]['errors']['length']){_0x29c89d[_0x47e45a('0x1a69')]=_0x1ec865[_0x47e45a('0x11c2')][_0x47e45a('0x1a69')]||[{'message':_0x1ec865[_0x47e45a('0x174f')](),'type':_0x47e45a('0x1186')}];for(var _0x2dddc8=0x0;_0x2dddc8<_0x1ec865[_0x47e45a('0x11c2')][_0x47e45a('0x1a69')][_0x47e45a('0x577')];_0x2dddc8+=0x1){_0x264eba[_0x47e45a('0x2092')]({'title':_0x1ec865[_0x47e45a('0x11c2')][_0x47e45a('0x1a69')][_0x2dddc8][_0x47e45a('0x7fa')],'msg':_0x1ec865['data'][_0x47e45a('0x1a69')][_0x2dddc8][_0x47e45a('0x1224')]});}}else _0x264eba[_0x47e45a('0x2092')]({'title':_0x1ec865[_0x47e45a('0x209')]?_0x47e45a('0x22d')+_0x1ec865['status']+'\x20-\x20'+_0x1ec865[_0x47e45a('0x1808')]:_0x47e45a('0x1186'),'msg':_0x1ec865[_0x47e45a('0x11c2')]?JSON[_0x47e45a('0x25e')](_0x1ec865[_0x47e45a('0x11c2')][_0x47e45a('0x1224')]):_0x1ec865[_0x47e45a('0x174f')]()});});}function _0x4dad20(){var _0x49659d=_0x5d92fb;_0x29c89d[_0x49659d('0x1a69')]=[],_0x215eac['network'][_0x49659d('0x5ef')]({'id':_0x29c89d[_0x49659d('0x1a37')]['id']},_0x29c89d[_0x49659d('0x1a37')])[_0x49659d('0x1376')][_0x49659d('0x21ad')](function(_0x485d58){var _0x46bcc0=_0x49659d,_0x1ef9d4=_0x86640f()[_0x46bcc0('0x1d2e')](_0x29c89d[_0x46bcc0('0x18cd')],{'id':_0x485d58['id']});_0x1ef9d4&&_0x86640f()['merge'](_0x1ef9d4,_0x86640f()[_0x46bcc0('0xc50')](_0x485d58[_0x46bcc0('0x3bc')](),_0x86640f()['keys'](_0x1ef9d4))),_0x264eba[_0x46bcc0('0xdb1')]({'title':'Network\x20properly\x20saved!','msg':_0x29c89d['network'][_0x46bcc0('0x19fe')]?_0x29c89d['network']['name']+_0x46bcc0('0x2249'):''}),_0x394d73(_0x485d58);})[_0x49659d('0x1c1d')](function(_0x2c6191){var _0x3ac967=_0x49659d;if(_0x2c6191[_0x3ac967('0x11c2')]&&_0x2c6191[_0x3ac967('0x11c2')][_0x3ac967('0x1a69')]&&_0x2c6191['data']['errors'][_0x3ac967('0x577')]){_0x29c89d[_0x3ac967('0x1a69')]=_0x2c6191[_0x3ac967('0x11c2')][_0x3ac967('0x1a69')]||[{'message':_0x2c6191[_0x3ac967('0x174f')](),'type':_0x3ac967('0x3ca')}];for(var _0x4d0f59=0x0;_0x4d0f59<_0x2c6191[_0x3ac967('0x11c2')][_0x3ac967('0x1a69')][_0x3ac967('0x577')];_0x4d0f59++){_0x264eba['error']({'title':_0x2c6191['data'][_0x3ac967('0x1a69')][_0x4d0f59][_0x3ac967('0x7fa')],'msg':_0x2c6191['data'][_0x3ac967('0x1a69')][_0x4d0f59][_0x3ac967('0x1224')]});}}else _0x264eba['error']({'title':_0x2c6191[_0x3ac967('0x209')]?_0x3ac967('0x22d')+_0x2c6191['status']+_0x3ac967('0xa99')+_0x2c6191[_0x3ac967('0x1808')]:_0x3ac967('0x3ca'),'msg':_0x2c6191[_0x3ac967('0x11c2')]?JSON[_0x3ac967('0x25e')](_0x2c6191[_0x3ac967('0x11c2')][_0x3ac967('0x1224')]):_0x2c6191[_0x3ac967('0x174f')]()});});}function _0x55833c(_0x260a9f){var _0x478293=_0x5d92fb;_0x29c89d[_0x478293('0x1a69')]=[];var _0x1ec891=_0x3602c5['confirm']()[_0x478293('0x4b4')](_0x478293('0x196b'))['content'](_0x478293('0x14b4'))[_0x478293('0x7a7')](_0x478293('0x969'))['ok'](_0x478293('0xbfd'))[_0x478293('0x3b5')](_0x478293('0x1f40'))['targetEvent'](_0x260a9f);_0x3602c5[_0x478293('0x853')](_0x1ec891)[_0x478293('0x21ad')](function(){var _0x2aad7c=_0x478293;_0x215eac[_0x2aad7c('0x1a37')][_0x2aad7c('0x1164')]({'id':_0x29c89d[_0x2aad7c('0x1a37')]['id']})['$promise']['then'](function(){var _0x52e785=_0x2aad7c;_0x86640f()[_0x52e785('0x16a2')](_0x29c89d['networks'],{'id':_0x29c89d['network']['id']}),_0x264eba[_0x52e785('0xdb1')]({'title':'Network\x20properly\x20deleted!','msg':(_0x29c89d[_0x52e785('0x1a37')][_0x52e785('0x19fe')]||_0x52e785('0x1a37'))+'\x20has\x20been\x20deleted!'}),_0x394d73(_0x29c89d[_0x52e785('0x1a37')]);})[_0x2aad7c('0x1c1d')](function(_0x4f6986){var _0x5b211d=_0x2aad7c;if(_0x4f6986['data']&&_0x4f6986[_0x5b211d('0x11c2')][_0x5b211d('0x1a69')]&&_0x4f6986[_0x5b211d('0x11c2')][_0x5b211d('0x1a69')]['length']){_0x29c89d[_0x5b211d('0x1a69')]=_0x4f6986[_0x5b211d('0x11c2')][_0x5b211d('0x1a69')]||[{'message':_0x4f6986['toString'](),'type':_0x5b211d('0x2644')}];for(var _0x4a5dfb=0x0;_0x4a5dfb<_0x4f6986[_0x5b211d('0x11c2')][_0x5b211d('0x1a69')][_0x5b211d('0x577')];_0x4a5dfb++){_0x264eba['error']({'title':_0x4f6986[_0x5b211d('0x11c2')][_0x5b211d('0x1a69')][_0x4a5dfb]['type'],'msg':_0x4f6986[_0x5b211d('0x11c2')]['errors'][_0x4a5dfb][_0x5b211d('0x1224')]});}}else _0x264eba[_0x5b211d('0x2092')]({'title':_0x4f6986[_0x5b211d('0x209')]?'API:'+_0x4f6986[_0x5b211d('0x209')]+'\x20-\x20'+_0x4f6986[_0x5b211d('0x1808')]:_0x5b211d('0x2644'),'msg':_0x4f6986[_0x5b211d('0x11c2')]?JSON[_0x5b211d('0x25e')](_0x4f6986[_0x5b211d('0x11c2')][_0x5b211d('0x1224')]):_0x4f6986[_0x5b211d('0x1224')]||_0x4f6986[_0x5b211d('0x174f')]()});});},function(){});}function _0x3ec37e(_0x279074){return _0x279074===null?undefined:new Date(_0x279074);}function _0x394d73(_0x1549b6){var _0x84ea6a=_0x5d92fb;_0x3602c5[_0x84ea6a('0x1c24')](_0x1549b6);}}const _0x54f2c9=_0x450ce3,_0x45e7ec=_0x398308['p']+_0x3877e3('0x16e0');_0x704e5[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$window','$state',_0x3877e3('0x2828'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x13c1'),_0x3877e3('0x18cd'),'api',_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x704e5(_0x2b4453,_0x50dfd1,_0x43d287,_0x42343a,_0x2f51fd,_0x1f14bc,_0x503356,_0x284f5e,_0xd11002,_0xe75e36,_0x8f22a5,_0x2a17b4,_0x1a448d,_0x3a7540,_0x14a111){var _0x12724a=_0x3877e3,_0x2b171a=this;_0x2b171a[_0x12724a('0x2ff')]=_0x3a7540,_0x2b171a['setting']=_0x14a111,_0x2b171a[_0x12724a('0x123f')]=_0x1a448d[_0x12724a('0x15ed')](),_0x2b171a['networks']=_0xd11002||{'count':0x0,'rows':[]},_0x2b171a[_0x12724a('0x1897')]='networks',_0x2b171a[_0x12724a('0x11dc')]='',_0x2b171a['listOrderAsc']=null,_0x2b171a[_0x12724a('0x1c05')]=[],_0x2b171a[_0x12724a('0x77')]={'fields':_0x12724a('0x4d0'),'sort':_0x12724a('0x33'),'limit':0xa,'page':0x1},_0x2b171a[_0x12724a('0x179c')]=_0x86640f()[_0x12724a('0xcde')]([{'option':_0x12724a('0x1988'),'value':_0x12724a('0x1415')},{'option':_0x12724a('0x1f3e'),'value':_0x12724a('0x147b')},{'option':'Turn','value':_0x12724a('0x13af')},{'option':_0x12724a('0x228d'),'value':_0x12724a('0x1b8c')}],function(_0x2ca4d9){var _0x545026=_0x12724a;return _0x86640f()[_0x545026('0x16e4')](_0x2ca4d9[_0x545026('0x2228')],new RegExp('\x27','g'),'');}),_0x2b171a[_0x12724a('0x1a97')]=_0x54d59d,_0x2b171a[_0x12724a('0x2593')]=_0xb48d95,_0x2b171a[_0x12724a('0xdb1')]=_0x251a21,_0x2b171a[_0x12724a('0x16b8')]=_0x2a57e8,_0x2b171a[_0x12724a('0xd6c')]=_0x2bbc86,_0x2b171a[_0x12724a('0x4ed')]=_0x4f711d,_0x2b171a[_0x12724a('0x1642')]=_0x27b7b0,_0x2b171a['deleteSelectedNetworks']=_0x275f98,_0x2b171a[_0x12724a('0x2ca')]=_0x2cda35,_0x2b171a[_0x12724a('0xd3')]=_0xddcd7f;function _0x54d59d(_0x24fefa,_0x1e88d4){var _0x1a002f=_0x12724a;_0x2f51fd[_0x1a002f('0x853')]({'controller':_0x1a002f('0x120c'),'controllerAs':'vm','templateUrl':_0x45e7ec,'parent':angular[_0x1a002f('0x1676')](_0x1f14bc[_0x1a002f('0x2452')]),'targetEvent':_0x1e88d4,'clickOutsideToClose':!![],'locals':{'network':_0x24fefa,'networks':_0x2b171a[_0x1a002f('0x18cd')][_0x1a002f('0x1b33')],'license':_0x2b171a[_0x1a002f('0x2ff')],'setting':null,'crudPermissions':_0x2b171a[_0x1a002f('0x5ed')]}});}function _0xb48d95(_0x1b6ffb,_0x122370){var _0x2bb1e3=_0x12724a,_0x4b5301=_0x2f51fd[_0x2bb1e3('0xa33')]()['title'](_0x2bb1e3('0x25b6')+_0x86640f()[_0x2bb1e3('0x2159')](_0x2bb1e3('0x1a37'))+'?')[_0x2bb1e3('0x276b')](''+(_0x1b6ffb[_0x2bb1e3('0x19fe')]||'network')+_0x2bb1e3('0x2135')+'\x20will\x20be\x20deleted.')[_0x2bb1e3('0x7a7')](_0x2bb1e3('0xbcd'))['targetEvent'](_0x122370)['ok']('OK')[_0x2bb1e3('0x3b5')](_0x2bb1e3('0x284b'));_0x2f51fd[_0x2bb1e3('0x853')](_0x4b5301)['then'](function(){_0x4f711d(_0x1b6ffb);},function(){var _0x3fe5d8=_0x2bb1e3;console[_0x3fe5d8('0x6fb')](_0x3fe5d8('0x284b'));});}var _0x456df7=!![],_0x1a54cb=0x1;_0x2b4453['$watch'](_0x12724a('0x1948'),function(_0x38ab20,_0x509fb4){var _0x5b9dbf=_0x12724a;_0x456df7?_0x503356(function(){_0x456df7=![];}):(!_0x509fb4&&(_0x1a54cb=_0x2b171a[_0x5b9dbf('0x77')][_0x5b9dbf('0x2376')]),_0x38ab20!==_0x509fb4&&(_0x2b171a[_0x5b9dbf('0x77')][_0x5b9dbf('0x2376')]=0x1),!_0x38ab20&&(_0x2b171a[_0x5b9dbf('0x77')]['page']=_0x1a54cb),_0x2b171a[_0x5b9dbf('0x16b8')]());});function _0x251a21(_0x493470){var _0x327de8=_0x12724a;_0x2b171a[_0x327de8('0x18cd')]=_0x493470||{'count':0x0,'rows':[]};}function _0x2a57e8(){var _0x2ca781=_0x12724a;_0x2b171a[_0x2ca781('0x77')][_0x2ca781('0x15a5')]=(_0x2b171a['query']['page']-0x1)*_0x2b171a[_0x2ca781('0x77')][_0x2ca781('0x1f4a')],_0x1a448d['hasRole'](_0x2ca781('0x1bd8'))?_0x2b171a[_0x2ca781('0x71b')]=_0xe75e36[_0x2ca781('0x1a37')][_0x2ca781('0x595')](_0x2b171a['query'],_0x251a21)['$promise']:(_0x2b171a[_0x2ca781('0x77')]['id']=_0x2b171a[_0x2ca781('0x758')]['id'],_0x2b171a[_0x2ca781('0x77')][_0x2ca781('0x26ad')]=_0x2ca781('0x1639'),_0x2b171a[_0x2ca781('0x71b')]=_0xe75e36[_0x2ca781('0x758')][_0x2ca781('0x321')](_0x2b171a[_0x2ca781('0x77')],_0x251a21)[_0x2ca781('0x1376')]);}function _0x2bbc86(_0x266baf,_0x34f76c){var _0xc1eecc=_0x12724a;_0x2f51fd[_0xc1eecc('0x853')]({'controller':'CreateOrEditNetworkDialogController','controllerAs':'vm','templateUrl':_0x45e7ec,'parent':angular[_0xc1eecc('0x1676')](_0x1f14bc[_0xc1eecc('0x2452')]),'targetEvent':_0x266baf,'clickOutsideToClose':!![],'locals':{'network':_0x34f76c,'networks':_0x2b171a[_0xc1eecc('0x18cd')]['rows'],'license':_0x2b171a[_0xc1eecc('0x2ff')],'setting':_0x2b171a['setting'],'crudPermissions':_0x2b171a[_0xc1eecc('0x5ed')]}});}function _0x4f711d(_0x42067d){var _0x152c1e=_0x12724a;_0xe75e36[_0x152c1e('0x1a37')][_0x152c1e('0x1164')]({'id':_0x42067d['id']})[_0x152c1e('0x1376')]['then'](function(){var _0x1a92a9=_0x152c1e;_0x86640f()[_0x1a92a9('0x16a2')](_0x2b171a[_0x1a92a9('0x18cd')][_0x1a92a9('0x1b33')],{'id':_0x42067d['id']}),_0x2b171a[_0x1a92a9('0x18cd')][_0x1a92a9('0x205f')]-=0x1,!_0x2b171a['networks'][_0x1a92a9('0x1b33')][_0x1a92a9('0x577')]&&_0x2b171a[_0x1a92a9('0x16b8')](),_0x2a17b4[_0x1a92a9('0xdb1')]({'title':_0x86640f()[_0x1a92a9('0x2159')](_0x1a92a9('0x1e43'))+_0x1a92a9('0xe64'),'msg':_0x42067d['name']?_0x42067d['name']+_0x1a92a9('0xb4a'):''});})[_0x152c1e('0x1c1d')](function(_0x1539ae){var _0x175b09=_0x152c1e;if(_0x1539ae[_0x175b09('0x11c2')]&&_0x1539ae['data'][_0x175b09('0x1a69')]&&_0x1539ae['data'][_0x175b09('0x1a69')]['length']){_0x2b171a['errors']=_0x1539ae['data'][_0x175b09('0x1a69')]||[{'message':_0x1539ae[_0x175b09('0x174f')](),'type':_0x175b09('0x172e')}];for(var _0x5252c0=0x0;_0x5252c0<_0x1539ae[_0x175b09('0x11c2')][_0x175b09('0x1a69')][_0x175b09('0x577')];_0x5252c0++){_0x2a17b4[_0x175b09('0x2092')]({'title':_0x1539ae[_0x175b09('0x11c2')]['errors'][_0x5252c0][_0x175b09('0x7fa')],'msg':_0x1539ae['data']['errors'][_0x5252c0][_0x175b09('0x1224')]});}}else _0x2a17b4[_0x175b09('0x2092')]({'title':_0x1539ae[_0x175b09('0x209')]?_0x175b09('0x22d')+_0x1539ae['status']+_0x175b09('0xa99')+_0x1539ae[_0x175b09('0x1808')]:_0x175b09('0x172e'),'msg':_0x1539ae[_0x175b09('0x11c2')]?JSON[_0x175b09('0x25e')](_0x1539ae[_0x175b09('0x11c2')][_0x175b09('0x1224')]):_0x1539ae[_0x175b09('0x1224')]||_0x1539ae[_0x175b09('0x174f')]()});});}function _0x27b7b0(){var _0x381b87=_0x12724a,_0x16e0a0=angular[_0x381b87('0xd75')](_0x2b171a[_0x381b87('0x1c05')]);return _0x2b171a['selectedNetworks']=[],_0x16e0a0;}function _0x275f98(_0x3cead1){var _0x239173=_0x12724a,_0x50a7e1=_0x2f51fd[_0x239173('0xa33')]()[_0x239173('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20networks?')[_0x239173('0x276b')](_0x239173('0x622')+_0x2b171a['selectedNetworks'][_0x239173('0x577')]+_0x239173('0xd74')+_0x239173('0x25e0'))[_0x239173('0x7a7')](_0x239173('0x1c3d'))['targetEvent'](_0x3cead1)['ok']('OK')[_0x239173('0x3b5')](_0x239173('0x284b'));_0x2f51fd[_0x239173('0x853')](_0x50a7e1)[_0x239173('0x21ad')](function(){var _0x382c5f=_0x239173;_0x2b171a[_0x382c5f('0x1c05')]['forEach'](function(_0x12b6e0){_0x4f711d(_0x12b6e0);}),_0x2b171a[_0x382c5f('0x1c05')]=[];});}function _0x2cda35(){_0x2b171a['selectedNetworks']=[];}function _0xddcd7f(){var _0x344afd=_0x12724a;_0x2b171a[_0x344afd('0x1c05')]=_0x2b171a[_0x344afd('0x18cd')][_0x344afd('0x1b33')];}}const _0x59334c=_0x704e5;_0x1f0b34[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$state',_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),'smtps',_0x3877e3('0x11c3'),'api','Auth',_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x1f0b34(_0xd332d8,_0x169dbb,_0x220dbd,_0x1b3227,_0x358f70,_0x41829a,_0x55e0b8,_0x48c739,_0x5c0991,_0x42fff4,_0x307a30,_0x547fd4,_0x14e967,_0x5439f4){var _0x3c0c42=_0x3877e3,_0x32cc1b=this;_0x32cc1b[_0x3c0c42('0x123f')]=_0x307a30['getCurrentUser'](),_0x32cc1b[_0x3c0c42('0x1a69')]=[],_0x32cc1b[_0x3c0c42('0x21e')]=_0x14e967,_0x32cc1b['license']=_0x547fd4,_0x32cc1b[_0x3c0c42('0x5ed')]=_0x5439f4,_0x32cc1b[_0x3c0c42('0x126a')]={},_0x32cc1b[_0x3c0c42('0x1432')]=_0x32cc1b[_0x3c0c42('0x21e')]&&_0x32cc1b[_0x3c0c42('0x21e')][_0x3c0c42('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x32cc1b[_0x3c0c42('0x4b4')]=_0x3c0c42('0x1553'),_0x32cc1b['smtp']=angular['copy'](_0x5c0991),_0x32cc1b[_0x3c0c42('0x181')]=_0x48c739,_0x32cc1b[_0x3c0c42('0x2581')]=![];!_0x32cc1b[_0x3c0c42('0x11c3')]&&(_0x32cc1b[_0x3c0c42('0x11c3')]={'service':!![]},_0x32cc1b[_0x3c0c42('0x4b4')]='SETTINGS.NEW_SMTP',_0x32cc1b[_0x3c0c42('0x2581')]=!![]);_0x32cc1b['addNewSmtp']=_0x3a97a1,_0x32cc1b[_0x3c0c42('0x139e')]=_0x444cfc,_0x32cc1b[_0x3c0c42('0x6c2')]=_0x450729,_0x32cc1b[_0x3c0c42('0x279')]=_0x10b0ef,_0x32cc1b[_0x3c0c42('0x167')]=_0x3aca90;function _0x3a97a1(){var _0x3f6689=_0x3c0c42;_0x32cc1b['errors']=[],_0x42fff4[_0x3f6689('0x66')][_0x3f6689('0x186f')](_0x32cc1b['smtp'])[_0x3f6689('0x1376')][_0x3f6689('0x21ad')](function(_0x400a65){var _0x596f97=_0x3f6689;_0x32cc1b[_0x596f97('0x181')]['unshift'](_0x400a65['toJSON']()),_0x55e0b8[_0x596f97('0xdb1')]({'title':_0x596f97('0x1355'),'msg':_0x32cc1b[_0x596f97('0x11c3')]['name']?_0x32cc1b[_0x596f97('0x11c3')][_0x596f97('0x19fe')]+'\x20has\x20been\x20created!':''}),_0x3aca90(_0x400a65);})[_0x3f6689('0x1c1d')](function(_0x66f84b){var _0x48fa40=_0x3f6689;if(_0x66f84b[_0x48fa40('0x11c2')]&&_0x66f84b[_0x48fa40('0x11c2')][_0x48fa40('0x1a69')]&&_0x66f84b['data'][_0x48fa40('0x1a69')]['length']){_0x32cc1b[_0x48fa40('0x1a69')]=_0x66f84b[_0x48fa40('0x11c2')]['errors']||[{'message':_0x66f84b['toString'](),'type':'api.mailAccount.save'}];for(var _0x410356=0x0;_0x410356<_0x66f84b['data'][_0x48fa40('0x1a69')][_0x48fa40('0x577')];_0x410356+=0x1){_0x55e0b8['error']({'title':_0x66f84b['data'][_0x48fa40('0x1a69')][_0x410356][_0x48fa40('0x7fa')],'msg':_0x66f84b[_0x48fa40('0x11c2')][_0x48fa40('0x1a69')][_0x410356]['message']});}}else _0x55e0b8[_0x48fa40('0x2092')]({'title':_0x66f84b[_0x48fa40('0x209')]?'API:'+_0x66f84b[_0x48fa40('0x209')]+'\x20-\x20'+_0x66f84b[_0x48fa40('0x1808')]:_0x48fa40('0x100e'),'msg':_0x66f84b[_0x48fa40('0x11c2')]?JSON[_0x48fa40('0x25e')](_0x66f84b['data'][_0x48fa40('0x1224')]):_0x66f84b[_0x48fa40('0x174f')]()});});}function _0x444cfc(){var _0xc7f0f4=_0x3c0c42;_0x32cc1b['errors']=[],_0x42fff4['mailAccount'][_0xc7f0f4('0x5ef')]({'id':_0x32cc1b[_0xc7f0f4('0x11c3')]['id']},_0x32cc1b[_0xc7f0f4('0x11c3')])[_0xc7f0f4('0x1376')]['then'](function(_0x576cf8){var _0xb3ab40=_0xc7f0f4,_0x48904c=_0x86640f()[_0xb3ab40('0x1d2e')](_0x32cc1b[_0xb3ab40('0x181')],{'id':_0x576cf8['id']});_0x48904c&&_0x86640f()[_0xb3ab40('0xd0e')](_0x48904c,_0x86640f()['pick'](_0x576cf8[_0xb3ab40('0x3bc')](),_0x86640f()[_0xb3ab40('0x223b')](_0x48904c))),_0x55e0b8[_0xb3ab40('0xdb1')]({'title':_0xb3ab40('0x16d2'),'msg':_0x32cc1b[_0xb3ab40('0x11c3')][_0xb3ab40('0x19fe')]?_0x32cc1b[_0xb3ab40('0x11c3')][_0xb3ab40('0x19fe')]+_0xb3ab40('0x2249'):''}),_0x3aca90(_0x576cf8);})[_0xc7f0f4('0x1c1d')](function(_0x38122e){var _0x55e381=_0xc7f0f4;if(_0x38122e['data']&&_0x38122e[_0x55e381('0x11c2')][_0x55e381('0x1a69')]&&_0x38122e['data'][_0x55e381('0x1a69')]['length']){_0x32cc1b[_0x55e381('0x1a69')]=_0x38122e[_0x55e381('0x11c2')]['errors']||[{'message':_0x38122e[_0x55e381('0x174f')](),'type':_0x55e381('0x1ccd')}];for(var _0x3a0d1a=0x0;_0x3a0d1a<_0x38122e[_0x55e381('0x11c2')][_0x55e381('0x1a69')]['length'];_0x3a0d1a++){_0x55e0b8[_0x55e381('0x2092')]({'title':_0x38122e['data'][_0x55e381('0x1a69')][_0x3a0d1a][_0x55e381('0x7fa')],'msg':_0x38122e[_0x55e381('0x11c2')][_0x55e381('0x1a69')][_0x3a0d1a][_0x55e381('0x1224')]});}}else _0x55e0b8[_0x55e381('0x2092')]({'title':_0x38122e[_0x55e381('0x209')]?'API:'+_0x38122e[_0x55e381('0x209')]+_0x55e381('0xa99')+_0x38122e[_0x55e381('0x1808')]:'api.mailAccount.update','msg':_0x38122e[_0x55e381('0x11c2')]?JSON['stringify'](_0x38122e[_0x55e381('0x11c2')][_0x55e381('0x1224')]):_0x38122e[_0x55e381('0x174f')]()});});}function _0x450729(_0x570d63){var _0x428b88=_0x3c0c42;_0x32cc1b[_0x428b88('0x1a69')]=[];var _0x3a117d=_0x1b3227['confirm']()[_0x428b88('0x4b4')]('Are\x20you\x20sure?')[_0x428b88('0x13fb')](_0x428b88('0x1f82'))['ariaLabel'](_0x428b88('0x1874'))['ok'](_0x428b88('0xbfd'))[_0x428b88('0x3b5')](_0x428b88('0x1f40'))[_0x428b88('0x1e6d')](_0x570d63);_0x1b3227[_0x428b88('0x853')](_0x3a117d)[_0x428b88('0x21ad')](function(){var _0xc775a4=_0x428b88;_0x42fff4[_0xc775a4('0x66')][_0xc775a4('0x1164')]({'id':_0x32cc1b[_0xc775a4('0x11c3')]['id']})[_0xc775a4('0x1376')][_0xc775a4('0x21ad')](function(){var _0x280c7a=_0xc775a4;_0x86640f()[_0x280c7a('0x16a2')](_0x32cc1b[_0x280c7a('0x181')],{'id':_0x32cc1b[_0x280c7a('0x11c3')]['id']}),_0x55e0b8['success']({'title':'Smtp\x20properly\x20deleted!','msg':(_0x32cc1b[_0x280c7a('0x11c3')][_0x280c7a('0x19fe')]||'smtp')+'\x20has\x20been\x20deleted!'}),_0x3aca90(_0x32cc1b['smtp']);})[_0xc775a4('0x1c1d')](function(_0x3fabb4){var _0x1fe2fc=_0xc775a4;if(_0x3fabb4['data']&&_0x3fabb4['data'][_0x1fe2fc('0x1a69')]&&_0x3fabb4[_0x1fe2fc('0x11c2')][_0x1fe2fc('0x1a69')][_0x1fe2fc('0x577')]){_0x32cc1b[_0x1fe2fc('0x1a69')]=_0x3fabb4['data'][_0x1fe2fc('0x1a69')]||[{'message':_0x3fabb4['toString'](),'type':'api.mailAccount.delete'}];for(var _0x90116d=0x0;_0x90116d<_0x3fabb4['data'][_0x1fe2fc('0x1a69')]['length'];_0x90116d++){_0x55e0b8[_0x1fe2fc('0x2092')]({'title':_0x3fabb4[_0x1fe2fc('0x11c2')][_0x1fe2fc('0x1a69')][_0x90116d][_0x1fe2fc('0x7fa')],'msg':_0x3fabb4[_0x1fe2fc('0x11c2')][_0x1fe2fc('0x1a69')][_0x90116d][_0x1fe2fc('0x1224')]});}}else _0x55e0b8['error']({'title':_0x3fabb4[_0x1fe2fc('0x209')]?'API:'+_0x3fabb4['status']+_0x1fe2fc('0xa99')+_0x3fabb4[_0x1fe2fc('0x1808')]:'api.mailAccount.delete','msg':_0x3fabb4[_0x1fe2fc('0x11c2')]?JSON[_0x1fe2fc('0x25e')](_0x3fabb4['data'][_0x1fe2fc('0x1224')]):_0x3fabb4['message']||_0x3fabb4[_0x1fe2fc('0x174f')]()});});},function(){});}function _0x10b0ef(_0x39eb12){return _0x39eb12===null?undefined:new Date(_0x39eb12);}function _0x3aca90(_0x234464){var _0x33e40a=_0x3c0c42;_0x1b3227[_0x33e40a('0x1c24')](_0x234464);}}const _0x546f3e=_0x1f0b34;_0x1ade9e[_0x3877e3('0x1a81')]=[_0x3877e3('0x181'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x2ff'),'Auth'];function _0x1ade9e(_0x574444,_0x3f137f,_0x31d657,_0x336462,_0x1077ae){var _0x33e85f=_0x3877e3,_0xf46ea9=this;_0xf46ea9['currentUser']=_0x1077ae['getCurrentUser'](),_0xf46ea9[_0x33e85f('0x2ff')]=_0x336462,_0xf46ea9[_0x33e85f('0x181')]=_0x574444,_0xf46ea9[_0x33e85f('0x11c3')]={};_0xf46ea9[_0x33e85f('0x181')]&&_0xf46ea9['smtps'][_0x33e85f('0x1b33')]&&_0xf46ea9[_0x33e85f('0x181')][_0x33e85f('0x1b33')]['length']?_0xf46ea9[_0x33e85f('0x11c3')]=_0xf46ea9['smtps']['rows'][0x0]:_0xf46ea9[_0x33e85f('0x11c3')]={'service':!![],'Smtp':{'service':null}};_0xf46ea9['saveSmtp']=_0x30c34e,_0xf46ea9['verifySmtp']=_0x1eca54;function _0x1eca54(){var _0x2daa92=_0x33e85f;_0xf46ea9[_0x2daa92('0x11c3')]['id']&&_0x3f137f[_0x2daa92('0x66')]['verifySmtp']({'id':_0xf46ea9['smtp']['id']})['$promise'][_0x2daa92('0x21ad')](function(){var _0x17bb5e=_0x2daa92;_0x31d657['success']({'title':_0x17bb5e('0x114f'),'msg':_0xf46ea9[_0x17bb5e('0x11c3')][_0x17bb5e('0x19fe')]?_0xf46ea9['smtp'][_0x17bb5e('0x19fe')]+_0x17bb5e('0x1d50'):''});})[_0x2daa92('0x1c1d')](function(_0x2ffa74){var _0x4c8bfa=_0x2daa92;_0x31d657['error']({'title':_0x4c8bfa('0xff'),'msg':_0x2ffa74['data']?JSON[_0x4c8bfa('0x25e')](_0x2ffa74[_0x4c8bfa('0x11c2')]):_0x2ffa74['toString'](),'timeout':0x2710});});}function _0x30c34e(){var _0x168456=_0x33e85f;_0xf46ea9[_0x168456('0x11c3')]['id']?_0x3f137f[_0x168456('0x66')][_0x168456('0x5ef')]({'id':_0xf46ea9['smtp']['id']},_0xf46ea9['smtp'])[_0x168456('0x1376')][_0x168456('0x21ad')](function(){var _0x166052=_0x168456;_0x31d657[_0x166052('0xdb1')]({'title':'Smtp\x20updated!','msg':_0xf46ea9[_0x166052('0x11c3')]['name']?_0xf46ea9[_0x166052('0x11c3')][_0x166052('0x19fe')]+_0x166052('0xa8d'):''});})[_0x168456('0x1c1d')](function(_0x256653){var _0x2ed8de=_0x168456;_0x31d657[_0x2ed8de('0x2092')]({'title':_0x256653['status']?_0x2ed8de('0x22d')+_0x256653['status']+_0x2ed8de('0xa99')+_0x256653[_0x2ed8de('0x1808')]:_0x2ed8de('0x1ad8'),'msg':_0x256653[_0x2ed8de('0x11c2')]?JSON[_0x2ed8de('0x25e')](_0x256653[_0x2ed8de('0x11c2')]):_0x256653[_0x2ed8de('0x174f')]()});}):_0x3f137f[_0x168456('0x66')][_0x168456('0x186f')](_0xf46ea9['smtp'])[_0x168456('0x1376')]['then'](function(_0xc045eb){var _0x1cfd3f=_0x168456;_0x86640f()[_0x1cfd3f('0xd0e')](_0xf46ea9[_0x1cfd3f('0x11c3')],_0xc045eb),_0x31d657[_0x1cfd3f('0xdb1')]({'title':_0x1cfd3f('0xe2'),'msg':_0xf46ea9[_0x1cfd3f('0x11c3')]['name']?_0xf46ea9[_0x1cfd3f('0x11c3')][_0x1cfd3f('0x19fe')]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0xfca244){var _0xf6f3fd=_0x168456;_0x31d657[_0xf6f3fd('0x2092')]({'title':_0xfca244[_0xf6f3fd('0x209')]?'API:'+_0xfca244[_0xf6f3fd('0x209')]+_0xf6f3fd('0xa99')+_0xfca244[_0xf6f3fd('0x1808')]:_0xf6f3fd('0x1ad8'),'msg':_0xfca244[_0xf6f3fd('0x11c2')]?JSON[_0xf6f3fd('0x25e')](_0xfca244[_0xf6f3fd('0x11c2')]):_0xfca244['toString']()});});}}const _0x3816b2=_0x1ade9e;_0x5d02f3[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c'),_0x3877e3('0x972')];function _0x5d02f3(_0x5aba50,_0x7345f9){var _0x3c2dd5=_0x3877e3;_0x5aba50[_0x3c2dd5('0x27e')](_0x3c2dd5('0x215d'),{'abstract':!![],'url':_0x3c2dd5('0x2601')})['state'](_0x3c2dd5('0x121'),{'url':'/generals','views':{'content@app':{'templateUrl':_0x1876df,'controller':_0x3c2dd5('0x1f0c')}},'resolve':{'generals':['apiResolver',function _0x406922(_0x5feac6){var _0x5c7bd5=_0x3c2dd5;return _0x5feac6[_0x5c7bd5('0x8ac')](_0x5c7bd5('0x2726'),{'fields':_0x5c7bd5('0x1eb1'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x3c2dd5('0x2277')})[_0x3c2dd5('0x27e')](_0x3c2dd5('0x16b1'),{'url':'/smtps','views':{'content@app':{'templateUrl':_0x23161b,'controller':_0x3c2dd5('0x1bf')}},'resolve':{'smtps':[_0x3c2dd5('0x354'),function _0x2f5fe3(_0x44fc7e){var _0x2bdc3b=_0x3c2dd5;return _0x44fc7e['resolve'](_0x2bdc3b('0x1c56'),{'fields':_0x2bdc3b('0x1edf'),'service':'1','limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x3c2dd5('0x2277')})[_0x3c2dd5('0x27e')](_0x3c2dd5('0xfaa'),{'url':'/networks','views':{'content@app':{'templateUrl':_0x453488,'controller':'NetworksController\x20as\x20vm'}},'resolve':{'networks':[_0x3c2dd5('0x354'),function _0x1e5881(_0x59b31a){var _0x5bd907=_0x3c2dd5;return _0x59b31a[_0x5bd907('0x8ac')](_0x5bd907('0x220d'),{'fields':'createdAt,updatedAt,id,type,value,username,password','sort':'-updatedAt','limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x3c2dd5('0x2277')})[_0x3c2dd5('0x27e')](_0x3c2dd5('0x2054'),{'url':_0x3c2dd5('0xe81'),'views':{'content@app':{'templateUrl':_0x3f40b7,'controller':'CustomizationsController\x20as\x20vm'}},'resolve':{'customizations':[_0x3c2dd5('0x354'),function _0x4063f1(_0x1cc4b0){var _0x291477=_0x3c2dd5;return _0x1cc4b0[_0x291477('0x8ac')](_0x291477('0x2726'),{'fields':'createdAt,updatedAt,id,defaultLogo,defaultLoginLogo,defaultFavicon,defaultHeaderWhiteLabel,headerWhiteLabel,defaultPageTitle,pageTitle,defaultPreferred','limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':'settings'})[_0x3c2dd5('0x27e')](_0x3c2dd5('0x854'),{'url':_0x3c2dd5('0x15aa'),'views':{'content@app':{'templateUrl':_0x1702a5,'controller':_0x3c2dd5('0x1b8b')}},'resolve':{'cloudProviders':[_0x3c2dd5('0x354'),function _0x10dac3(_0x5d820a){var _0x5c8f3a=_0x3c2dd5;return _0x5d820a['resolve'](_0x5c8f3a('0x15ea'),{'fields':'createdAt,updatedAt,id,name,service,data2,data1','sort':_0x5c8f3a('0x33'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x3c2dd5('0x2277')}),_0x7345f9[_0x3c2dd5('0x20ab')](_0x3c2dd5('0x821'));}angular[_0x3877e3('0x20d5')](_0x3877e3('0x215d'),[_0x3877e3('0x240c'),_0x3877e3('0x1b0'),'md.data.table','flow',_0x3877e3('0x2437'),_0x3877e3('0x25c7'),_0x3877e3('0x1182'),_0x3877e3('0x264a'),_0x3877e3('0x19'),'mdPickers',_0x3877e3('0xc90'),_0x3877e3('0x56d'),'mwFormUtils',_0x3877e3('0x10c'),_0x3877e3('0xf61'),_0x3877e3('0xe39'),_0x3877e3('0x25a2'),_0x3877e3('0x27ba'),_0x3877e3('0x9e0'),_0x3877e3('0x1c54'),_0x3877e3('0xe50'),_0x3877e3('0x171c'),_0x3877e3('0xba5')])[_0x3877e3('0x13')](_0x5d02f3)[_0x3877e3('0x1d5a')](_0x3877e3('0x1761'),_0x1fead8)[_0x3877e3('0x1d5a')](_0x3877e3('0xe22'),_0x5c2c9e)[_0x3877e3('0x1d5a')](_0x3877e3('0x2178'),_0x3c9cf7)[_0x3877e3('0x1d5a')](_0x3877e3('0x20ae'),_0x181a72)[_0x3877e3('0x1d5a')]('CustomizationfaviconController',_0x50cc92)[_0x3877e3('0x1d5a')](_0x3877e3('0x2595'),_0x25e9cb)['controller']('CustomizationlogologinController',_0x476003)['controller']('CustomizationpreferredController',_0xa21fcd)[_0x3877e3('0x1d5a')](_0x3877e3('0x1b5a'),_0x3d0d2c)[_0x3877e3('0x1d5a')](_0x3877e3('0x1c60'),_0x27186a)[_0x3877e3('0x1d5a')](_0x3877e3('0x120c'),_0x54f2c9)['controller'](_0x3877e3('0x22d7'),_0x59334c)[_0x3877e3('0x1d5a')](_0x3877e3('0xa84'),_0x546f3e)[_0x3877e3('0x1d5a')]('SmtpController',_0x3816b2);const _0x64c94=_0x398308['p']+_0x3877e3('0x175e'),_0xf80a77=_0x398308['p']+_0x3877e3('0x183b'),_0x1d41f9=_0x398308['p']+_0x3877e3('0x20d3'),_0x597682=_0x398308['p']+'src/js/modules/main/apps/motiondialer/views/realtime/queue_calls/view.html/view-[chunkhash].html',_0x3de87a=_0x398308['p']+_0x3877e3('0x120d'),_0x11f260=_0x398308['p']+_0x3877e3('0x2361'),_0x42c44b=_0x398308['p']+'src/js/modules/main/apps/motiondialer/views/realtime/ivr_campaigns/view.html/view-[chunkhash].html',_0x152eaf=_0x398308['p']+_0x3877e3('0xde8');_0x2b1641[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$timeout','$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x24e1'),'$translate',_0x3877e3('0xccd'),'userProfile','userProfileSection','Auth',_0x3877e3('0x25d8'),_0x3877e3('0x1908'),'agents',_0x3877e3('0x10d0')];function _0x2b1641(_0x2d741f,_0x4eec03,_0x40f89a,_0x3d4011,_0x17da62,_0x15e19a,_0x120fcf,_0x3ad268,_0x37d096,_0x56ee58,_0x256741,_0x41cfe9,_0xb5826e,_0x2efdcd){var _0x5738af=_0x3877e3,_0x2f90f2=this;_0x2f90f2[_0x5738af('0x123f')]=_0x56ee58['getCurrentUser'](),_0x2f90f2[_0x5738af('0xcb5')]=_0xb5826e?_0xb5826e:[],_0x2f90f2[_0x5738af('0x10d0')]=_0x2efdcd,_0x2f90f2['abandonedCalls']={'count':0x0,'rows':[]},_0x2f90f2[_0x5738af('0x246f')]=![],_0x2f90f2[_0x5738af('0x14f')]=!![],_0x2f90f2[_0x5738af('0x758')]=_0x3ad268,_0x2f90f2[_0x5738af('0xab4')]=_0x37d096&&_0x37d096[_0x5738af('0x205f')]==0x1?_0x37d096[_0x5738af('0x1b33')][0x0]:null,_0x2f90f2[_0x5738af('0x5ed')]=_0x56ee58['parseCrudPermissions'](_0x2f90f2[_0x5738af('0xab4')]?_0x2f90f2[_0x5738af('0xab4')][_0x5738af('0x5ed')]:null),_0x2f90f2[_0x5738af('0x77')]={'fields':_0x5738af('0x7dc'),'type':_0x5738af('0x2300'),'queuecallerexitreason':'TIMEOUT'+','+'ABANDONED','sort':'-updatedAt','limit':0xa,'page':0x1},_0x2f90f2[_0x5738af('0x2796')]=_0x1cdb4c,_0x2f90f2['refreshAbandonedCalls']=_0x3f2df4,_0x2f90f2[_0x5738af('0xf45')]=_0x25349c,_0x2f90f2[_0x5738af('0x1ab7')]=_0x4277eb,_0x2f90f2[_0x5738af('0x6a8')]=_0x5dea2e,_0x2f90f2[_0x5738af('0x2202')]=_0x251cc2,_0x256741[_0x5738af('0x1487')](_0x5738af('0x1bf5'),_0x2f90f2[_0x5738af('0x6a8')]),_0x256741['on'](_0x5738af('0x1a3a'),_0x2f90f2[_0x5738af('0x2202')]),_0x3d4e9d();function _0x3d4e9d(){var _0x1cdff1=_0x5738af,_0x5ade34=_0x17da62[_0x1cdff1('0x161e')][_0x1cdff1('0x633')](_0x1cdff1('0x23c1')+_0x2f90f2[_0x1cdff1('0x123f')]['id']);if(_0x5ade34)_0x5ade34=JSON[_0x1cdff1('0x399')](_0x5ade34),_0x5ade34&&_0x5ade34[_0x1cdff1('0x77')]&&(_0x2f90f2['query']=_0x86640f()[_0x1cdff1('0xd0e')](_0x5ade34[_0x1cdff1('0x77')],_0x86640f()['omit'](_0x2f90f2[_0x1cdff1('0x77')],['sort',_0x1cdff1('0x1f4a'),_0x1cdff1('0x2376')])),_0x2f90f2[_0x1cdff1('0x77')]=_0x86640f()[_0x1cdff1('0x27b1')](_0x2f90f2['query'],_0x1cdff1('0x1503')));else{var _0x19eace={'$gte':_0x1088bc()()['startOf'](_0x1cdff1('0xb64'))[_0x1cdff1('0x215e')](0x0,!![])['format'](),'$lte':_0x1088bc()()[_0x1cdff1('0x117b')]('month')[_0x1cdff1('0x215e')](0x0,!![])['format']()};_0x2f90f2[_0x1cdff1('0x77')][_0x1cdff1('0x23ae')]=_0x19eace;}_0x56ee58[_0x1cdff1('0x21de')](_0x1cdff1('0x1bd8'))?_0x120fcf[_0x1cdff1('0x1775')][_0x1cdff1('0x71c')]({'id':_0x56ee58['getCurrentUser']()['id'],'fields':_0x1cdff1('0x1aa8'),'channel':_0x1cdff1('0x8ed'),'type':_0x1cdff1('0x2300'),'nolimit':!![]})[_0x1cdff1('0x1376')][_0x1cdff1('0x21ad')](function(_0x2cebca){var _0x3e2f7b=_0x1cdff1;_0x2f90f2[_0x3e2f7b('0xb7a')]=_0x2cebca||{'count':0x0,'rows':[]},_0x2f90f2['queuesMap']=_0x86640f()[_0x3e2f7b('0x9e7')](_0x86640f()['keyBy'](_0x2f90f2[_0x3e2f7b('0xb7a')][_0x3e2f7b('0x1b33')],_0x3e2f7b('0x19fe')),_0x3e2f7b('0x19fe'));})[_0x1cdff1('0x1c1d')](function(_0x2eba57){console['error'](_0x2eba57);})[_0x1cdff1('0x13e')](function(){_0x2f90f2['quickFilters']=_0x2686eb(),_0x2f90f2['getAbandonedCalls']();}):_0x120fcf[_0x1cdff1('0x758')][_0x1cdff1('0x321')]({'id':_0x2f90f2[_0x1cdff1('0x123f')][_0x1cdff1('0x1618')],'section':'QueueCampaigns','channel':'voice','type':_0x1cdff1('0x2300'),'sort':_0x1cdff1('0x33'),'nolimit':!![]})['$promise'][_0x1cdff1('0x21ad')](function(_0xa72b0e){var _0x187e97=_0x1cdff1;_0x2f90f2['queues']=_0xa72b0e||{'count':0x0,'rows':[]},_0x2f90f2['queuesMap']=_0x86640f()[_0x187e97('0x9e7')](_0x86640f()[_0x187e97('0xcde')](_0x2f90f2[_0x187e97('0xb7a')][_0x187e97('0x1b33')],_0x187e97('0x19fe')),_0x187e97('0x19fe'));})[_0x1cdff1('0x1c1d')](function(_0xab76b){var _0x568dcc=_0x1cdff1;console[_0x568dcc('0x2092')](_0xab76b);})['finally'](function(){var _0x4b31dd=_0x1cdff1;_0x2f90f2[_0x4b31dd('0x2255')]=_0x2686eb(),_0x2f90f2[_0x4b31dd('0x2796')]();});}function _0x2686eb(){var _0x24f236=_0x5738af;return[{'name':_0x24f236('0x18a1'),'key':_0x24f236('0x23ae'),'type':_0x24f236('0x2457'),'label':_0x24f236('0x1d04')},{'name':_0x24f236('0x1a44'),'key':_0x24f236('0xacf'),'type':_0x24f236('0x2844'),'label':_0x24f236('0x115d'),'options':_0x2f90f2[_0x24f236('0xcb5')][_0x24f236('0x1b33')],'customOptions':[{'value':_0x24f236('0x1015'),'translate':_0x24f236('0x1932')},{'value':undefined,'translate':_0x24f236('0x1ee5')}]},{'name':_0x24f236('0x1e93'),'key':'queue','type':_0x24f236('0x91f'),'label':'DASHBOARDS.SELECT_CAMPAIGN','options':_0x2f90f2['queues'][_0x24f236('0x1b33')]}];}function _0x1cdb4c(){var _0x599171=_0x5738af;_0x2f90f2[_0x599171('0x14f')]=![],_0x2f90f2[_0x599171('0xb7a')]['count']>0x0?(_0x2f90f2[_0x599171('0x77')]['queue']=_0x2f90f2[_0x599171('0xb7a')][_0x599171('0x205f')]===0x1?_0x2f90f2[_0x599171('0xb7a')][_0x599171('0x1b33')][0x0][_0x599171('0x19fe')]:_0x2f90f2[_0x599171('0x77')][_0x599171('0xbdd')],_0x2f90f2[_0x599171('0x77')][_0x599171('0x15a5')]=(_0x2f90f2[_0x599171('0x77')][_0x599171('0x2376')]-0x1)*_0x2f90f2[_0x599171('0x77')][_0x599171('0x1f4a')],_0x17da62[_0x599171('0x161e')][_0x599171('0x1014')](_0x599171('0x23c1')+_0x2f90f2[_0x599171('0x123f')]['id'],JSON['stringify']({'query':_0x86640f()['omit'](_0x2f90f2[_0x599171('0x77')],_0x599171('0xbdd'))})),_0x2f90f2[_0x599171('0x71b')]=_0x120fcf[_0x599171('0x1ac1')][_0x599171('0x2568')](_0x2f90f2[_0x599171('0x77')],_0x55999b)[_0x599171('0x1376')]):_0x55999b(null);}function _0x55999b(_0x9429b2){var _0x42559b=_0x5738af;_0x2f90f2[_0x42559b('0x156e')]=_0x9429b2||{'count':0x0,'rows':[]},_0x2f90f2[_0x42559b('0x14f')]=!![];}function _0x3f2df4(){var _0x5e466a=_0x5738af;_0x2f90f2[_0x5e466a('0x246f')]=![],_0x2f90f2[_0x5e466a('0x2796')]();}function _0x5dea2e(_0xcd0c2e){var _0x4e499a=_0x5738af,_0x1f85e5=_0x4e499a('0x2300');_0xcd0c2e&&_0x2f90f2[_0x4e499a('0x6d3')]&&_0xcd0c2e[_0x4e499a('0xbdd')]['type']===_0x1f85e5&&_0x2f90f2['queuesMap'][_0xcd0c2e[_0x4e499a('0xbdd')]]&&(_0x2f90f2[_0x4e499a('0x246f')]=!![]);}function _0x251cc2(_0x21a539){var _0x521b18=_0x5738af;if(_0x21a539){var _0x2112be=_0x86640f()['findIndex'](_0x2f90f2['abandonedCalls'][_0x521b18('0x1b33')],['id',_0x21a539['id']]);_0x2112be>=0x0&&_0x86640f()[_0x521b18('0xd0e')](_0x2f90f2[_0x521b18('0x156e')][_0x521b18('0x1b33')][_0x2112be],_0x21a539);}}function _0x25349c(_0x594a8c,_0x1de6dd){var _0x182c64=_0x5738af;_0x594a8c&&_0x120fcf[_0x182c64('0x1ac1')]['update']({'id':_0x594a8c['id'],'lastAssignedTo':_0x1de6dd?_0x1de6dd['name']:null,'assigned':_0x1de6dd?!![]:![]})[_0x182c64('0x1376')][_0x182c64('0x1c1d')](function(_0x5392f3){console['log'](_0x5392f3);});}function _0x4277eb(_0x3a0d1c){var _0x23fe5b=_0x5738af;_0x40f89a[_0x23fe5b('0x853')]({'controller':_0x23fe5b('0x1030'),'controllerAs':'vm','templateUrl':_0x152eaf,'parent':angular[_0x23fe5b('0x1676')](_0x3d4011[_0x23fe5b('0x2452')]),'targetEvent':_0x3a0d1c,'resolve':{'globalDispositions':[_0x23fe5b('0x354'),function _0x4e2783(_0x3a986d){var _0x5d55ef=_0x23fe5b;return _0x3a986d[_0x5d55ef('0x8ac')](_0x5d55ef('0x13a3'),{'MailAccountId':'null','FaxAccountId':_0x5d55ef('0x27a'),'SmsAccountId':'null','WhatsappAccountId':_0x5d55ef('0x27a'),'OpenchannelAccountId':'null','ChatWebsiteId':_0x5d55ef('0x27a'),'ListId':_0x5d55ef('0x27a')});}]},'locals':{'dispositions':_0x2f90f2['dispositions'],'call':_0x3a0d1c}})[_0x23fe5b('0x21ad')](function(_0xb7242a){var _0x4f3992=_0x23fe5b;if(_0xb7242a){var _0x21bc84={'id':_0x3a0d1c['id'],'disposition':_0xb7242a[_0x4f3992('0xedf')]||null,'secondDisposition':_0xb7242a[_0x4f3992('0x4a6')]||null,'thirdDisposition':_0xb7242a[_0x4f3992('0x2115')]||null};_0x120fcf['voiceQueueReport'][_0x4f3992('0x5ef')](_0x21bc84)[_0x4f3992('0x1376')][_0x4f3992('0x1c1d')](function(_0x46006b){console['log'](_0x46006b);});}});}var _0x3a48f7=!![],_0x16ff67=0x1;_0x2d741f[_0x5738af('0x10e8')]('vm.query.filter',function(_0x5f2a0b,_0x5c9657){var _0x55980f=_0x5738af;_0x3a48f7?_0x4eec03(function(){_0x3a48f7=![];}):(!_0x5c9657&&(_0x16ff67=_0x2f90f2[_0x55980f('0x77')][_0x55980f('0x2376')]),_0x5f2a0b!==_0x5c9657&&(_0x2f90f2[_0x55980f('0x77')][_0x55980f('0x2376')]=0x1),!_0x5f2a0b&&(_0x2f90f2[_0x55980f('0x77')][_0x55980f('0x2376')]=_0x16ff67),_0x2f90f2['getAbandonedCalls']());}),_0x2d741f[_0x5738af('0x1723')](_0x5738af('0x1210'),function(){var _0x15d6ca=_0x5738af;_0x256741[_0x15d6ca('0x16cc')](_0x15d6ca('0x1bf5')),_0x256741[_0x15d6ca('0x16cc')](_0x15d6ca('0x1a3a'));});}const _0x4db7bd=_0x2b1641;_0x20d181[_0x3877e3('0x1a81')]=['$scope','$q',_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),'$filter',_0x3877e3('0x1fc7'),_0x3877e3('0xcb5'),_0x3877e3('0x165c'),'api','socket',_0x3877e3('0x1908'),_0x3877e3('0x2703'),'userProfile',_0x3877e3('0xab4'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x1e8d')];function _0x20d181(_0xf8fd54,_0x4af6d2,_0x4bb5f1,_0x29219a,_0x53c8c0,_0x21087e,_0x7a2353,_0x1455a8,_0x547a5a,_0x355886,_0x1ca6e3,_0x3f9870,_0x500d18,_0x57fd34,_0x181230,_0x185126,_0x1a021a,_0x5c4a32){var _0x50edc0=_0x3877e3,_0x16595c=this,_0x42fc01=[_0x50edc0('0x2154'),_0x50edc0('0x1ecb'),_0x50edc0('0x190e'),_0x50edc0('0x1a2c'),_0x50edc0('0x1f37'),_0x50edc0('0x1a2c'),_0x50edc0('0x201f'),'address',_0x50edc0('0x1785'),_0x50edc0('0x2022'),_0x50edc0('0x1396'),_0x50edc0('0x2826'),_0x50edc0('0x14bf'),_0x50edc0('0x23f5'),_0x50edc0('0x1025'),_0x50edc0('0x1887'),'openchannelCapacity',_0x50edc0('0x10e4'),_0x50edc0('0xac0'),_0x50edc0('0x1570'),_0x50edc0('0xa28'),_0x50edc0('0x18a6'),_0x50edc0('0x1ce9'),'mailCurrentCapacity','smsCurrentCapacity',_0x50edc0('0xe1'),_0x50edc0('0x1317'),'chatStatus',_0x50edc0('0xf0'),_0x50edc0('0x1d70'),'smsStatus',_0x50edc0('0x1b28'),_0x50edc0('0x282'),'voiceStatus','chatStatusTime',_0x50edc0('0x116'),_0x50edc0('0xf73'),'smsStatusTime',_0x50edc0('0x18fb'),_0x50edc0('0x27b6'),'voiceStatusTime',_0x50edc0('0xbdd'),_0x50edc0('0xa70'),_0x50edc0('0x17f4'),_0x50edc0('0x1d44'),_0x50edc0('0x2422')],_0x37f648=[_0x50edc0('0x1785'),'openchannelPause',_0x50edc0('0x1396'),_0x50edc0('0x2826'),_0x50edc0('0x14bf'),_0x50edc0('0x23f5'),'voicePause',_0x50edc0('0x1ecb')];_0x16595c['currentUser']=_0x185126[_0x50edc0('0x15ed')](),_0x16595c['availableStates']=[_0x50edc0('0x200c'),'inuse',_0x50edc0('0x860'),_0x50edc0('0x22b1'),_0x50edc0('0x255e')],_0x16595c['pauses']=_0x7a2353||{'count':0x0,'rows':[]},_0x16595c['license']=_0x1a021a,_0x16595c[_0x50edc0('0x758')]=_0x57fd34,_0x16595c[_0x50edc0('0xab4')]=_0x181230&&_0x181230['count']==0x1?_0x181230['rows'][0x0]:null,_0x16595c[_0x50edc0('0x5ed')]=_0x185126[_0x50edc0('0x1778')](_0x16595c[_0x50edc0('0xab4')]?_0x16595c[_0x50edc0('0xab4')]['crudPermissions']:null),_0x16595c[_0x50edc0('0xcb5')]=_0x1455a8?_0x86640f()[_0x50edc0('0xcde')](_0x1455a8[_0x50edc0('0x1b33')]?_0x1455a8[_0x50edc0('0x1b33')]:[],'id'):{},_0x16595c[_0x50edc0('0x165c')]=_0x547a5a?_0x86640f()['keyBy'](_0x547a5a['rows']?_0x547a5a[_0x50edc0('0x1b33')]:[],'id'):{},_0x16595c[_0x50edc0('0x261a')]={},_0x16595c[_0x50edc0('0x20ad')]=![],_0x16595c[_0x50edc0('0x2752')]=[],_0x16595c[_0x50edc0('0x24ee')]={};for(var _0x5ac429 in _0x16595c[_0x50edc0('0xcb5')]){typeof _0x16595c[_0x50edc0('0xcb5')][_0x5ac429]!==_0x50edc0('0xddc')&&(_0x16595c[_0x50edc0('0xcb5')][_0x5ac429][_0x50edc0('0x1d75')]=!![]);}_0x16595c[_0x50edc0('0x77')]={'limit':0xa,'page':0x1,'order':'fullname','globalStatusFilter':'','pauseTypeFilter':''},_0x16595c[_0x50edc0('0xda3')]=_0x4c7d4d,_0x16595c[_0x50edc0('0x9e9')]=_0x3d022d,_0x16595c[_0x50edc0('0x1e26')]=_0x4d67f5,_0x16595c[_0x50edc0('0x17d')]=_0x5b2fe7,_0x16595c[_0x50edc0('0xa45')]=_0x826d57,_0x16595c[_0x50edc0('0x106')]=_0x277375,_0x16595c[_0x50edc0('0x694')]=_0x54d7b0,_0x16595c['isPause']=_0x3145fb,_0x16595c[_0x50edc0('0x1044')]=_0x37da00,_0x16595c[_0x50edc0('0x1ad7')]=_0x1fb633,_0x16595c[_0x50edc0('0x1b74')]=_0x2f3257,_0x16595c[_0x50edc0('0x27d7')]=_0x1edc96,_0x16595c['onInit']=_0x416413,_0x16595c['onConnect']=_0x194711,_0x16595c['onComplete']=_0x546938,_0x16595c[_0x50edc0('0xcf2')]=_0x19c6d1,_0x1ca6e3['on'](_0x50edc0('0x62b'),_0x16595c['onSave']),_0x1ca6e3['on']('user:update',_0x16595c[_0x50edc0('0x27d7')]),_0x1ca6e3['on']('user:agentconnect',_0x16595c[_0x50edc0('0x7e0')]),_0x1ca6e3['on'](_0x50edc0('0x1131'),_0x16595c['onComplete']),_0x416413();var _0x3ba12f=_0x5c4a32(function(){var _0x17d91f=_0x50edc0;_0x16595c[_0x17d91f('0x20ad')]&&(_0x16595c['load']=![],_0x416413());},0x3e7);function _0x416413(){var _0x1a46e5=_0x50edc0;_0x16595c[_0x1a46e5('0x20ad')]=![];var _0x169681=_0x4af6d2[_0x1a46e5('0xca9')]();_0x16595c['promise']=_0x169681[_0x1a46e5('0x71b')],_0x16595c[_0x1a46e5('0x1782')]=[],_0x16595c[_0x1a46e5('0x2752')]=[],_0x86640f()[_0x1a46e5('0xd54')](_0x16595c[_0x1a46e5('0xcb5')],function(_0x1e1235,_0x3821b4){var _0x1771c5=_0x1a46e5;_0x16595c[_0x1771c5('0x165c')][_0x3821b4]&&_0x86640f()[_0x1771c5('0xd0e')](_0x1e1235,_0x86640f()[_0x1771c5('0xc50')](_0x86640f()[_0x1771c5('0x27b1')](_0x16595c['rpcAgents'][_0x3821b4],_0x37f648),_0x42fc01)),_0x54d7b0(_0x1e1235),_0x1e1235[_0x1771c5('0x1ecb')]?(_0x16595c[_0x1771c5('0x1782')]['push'](_0x1e1235),_0x16595c[_0x1771c5('0x24ee')][_0x1e1235[_0x1771c5('0x201f')]]=_0x3821b4):_0x1e1235[_0x1771c5('0x1ea5')]=_0x86640f()[_0x1771c5('0x1662')](_0x1088bc()()[_0x1771c5('0x153')]('x'));});_0x16595c[_0x1a46e5('0x77')][_0x1a46e5('0xcfb')]&&_0x86640f()['remove'](_0x16595c[_0x1a46e5('0x1782')],function(_0x40009c){var _0x4fc9ae=_0x1a46e5;return _0x40009c[_0x4fc9ae('0x100f')]!==_0x16595c[_0x4fc9ae('0x77')][_0x4fc9ae('0xcfb')];});_0x16595c[_0x1a46e5('0x77')]['pauseTypeFilter']&&_0x86640f()['remove'](_0x16595c[_0x1a46e5('0x1782')],function(_0x17b13d){var _0x9eb44a=_0x1a46e5;return _0x17b13d[_0x9eb44a('0x1f37')]!==_0x16595c[_0x9eb44a('0x77')][_0x9eb44a('0x1024')];});_0x16595c[_0x1a46e5('0x77')][_0x1a46e5('0x1503')]&&_0x86640f()[_0x1a46e5('0x16a2')](_0x16595c[_0x1a46e5('0x1782')],function(_0x33b161){var _0x45aab6=_0x1a46e5;return _0x33b161[_0x45aab6('0x20f5')][_0x45aab6('0xac2')]()[_0x45aab6('0x2004')](_0x16595c[_0x45aab6('0x77')][_0x45aab6('0x1503')]['toLowerCase']())<0x0;});_0x16595c['filteredAgents']=_0x43ee93(_0x16595c[_0x1a46e5('0x1782')]);var _0x5a91d3=(_0x16595c[_0x1a46e5('0x77')][_0x1a46e5('0x2376')]-0x1)*_0x16595c[_0x1a46e5('0x77')][_0x1a46e5('0x1f4a')];_0x16595c[_0x1a46e5('0x261a')]=_0x86640f()[_0x1a46e5('0x2189')](_0x16595c[_0x1a46e5('0x1782')],_0x5a91d3)[_0x1a46e5('0xb3d')](0x0,_0x16595c[_0x1a46e5('0x77')][_0x1a46e5('0x1f4a')]);for(var _0x4f52f2=0x0;_0x4f52f2<_0x16595c[_0x1a46e5('0x261a')][_0x1a46e5('0x577')];_0x4f52f2+=0x1){_0x16595c[_0x1a46e5('0x2752')][_0x1a46e5('0x206c')](_0x16595c[_0x1a46e5('0x261a')][_0x4f52f2]['id']);}_0x169681['resolve'](),_0x16595c[_0x1a46e5('0x20ad')]=!![];}function _0x2f3257(_0x1cc759){var _0xec4c7=_0x50edc0;_0x16595c['agents'][_0x1cc759['id']]&&(_0x86640f()[_0xec4c7('0xd0e')](_0x16595c[_0xec4c7('0xcb5')][_0x1cc759['id']],_0x86640f()[_0xec4c7('0xc50')](_0x86640f()['omit'](_0x1cc759,_0x37f648),_0x42fc01)),_0x86640f()['merge'](_0x16595c[_0xec4c7('0x165c')][_0x1cc759['id']],_0x86640f()[_0xec4c7('0xc50')](_0x86640f()['omit'](_0x1cc759,_0x37f648),_0x42fc01)),_0x54d7b0(_0x16595c[_0xec4c7('0xcb5')][_0x1cc759['id']]));}function _0x1edc96(_0x3fbcad){var _0x3adca8=_0x50edc0;_0x16595c[_0x3adca8('0xcb5')][_0x3fbcad['id']]&&(_0x86640f()[_0x3adca8('0xd0e')](_0x16595c[_0x3adca8('0xcb5')][_0x3fbcad['id']],_0x86640f()['pick'](_0x3fbcad,_0x42fc01)),_0x86640f()[_0x3adca8('0xd0e')](_0x16595c[_0x3adca8('0x165c')][_0x3fbcad['id']],_0x86640f()[_0x3adca8('0xc50')](_0x3fbcad,_0x42fc01)),_0x3fbcad[_0x3adca8('0x1a2c')]&&(_0x16595c['agents'][_0x3fbcad['id']][_0x3adca8('0x1ea5')]=_0x3fbcad[_0x3adca8('0x1a2c')],_0x16595c[_0x3adca8('0x165c')][_0x3fbcad['id']][_0x3adca8('0x1ea5')]=_0x3fbcad[_0x3adca8('0x1a2c')]),_0x54d7b0(_0x16595c['agents'][_0x3fbcad['id']]));}function _0x194711(_0x206071){var _0x119bfa=_0x50edc0;_0x16595c['agents'][_0x16595c['agentInternal'][_0x206071[_0x119bfa('0xe4e')]]]&&(_0x86640f()['merge'](_0x16595c[_0x119bfa('0xcb5')][_0x16595c[_0x119bfa('0x24ee')][_0x206071['destaccountcode']]],_0x86640f()[_0x119bfa('0xc50')](_0x206071,[_0x119bfa('0xbdd'),_0x119bfa('0xa70')])),_0x86640f()[_0x119bfa('0xd0e')](_0x16595c[_0x119bfa('0x165c')][_0x16595c[_0x119bfa('0x24ee')][_0x206071[_0x119bfa('0xe4e')]]],_0x86640f()[_0x119bfa('0xc50')](_0x206071,[_0x119bfa('0xbdd'),_0x119bfa('0xa70')])));}function _0x546938(_0x45b0f7){var _0x3d8c52=_0x50edc0;_0x16595c['agents'][_0x16595c[_0x3d8c52('0x24ee')][_0x45b0f7[_0x3d8c52('0xe4e')]]]&&(_0x16595c[_0x3d8c52('0xcb5')][_0x16595c['agentInternal'][_0x45b0f7[_0x3d8c52('0xe4e')]]]=_0x86640f()[_0x3d8c52('0x27b1')](_0x16595c[_0x3d8c52('0xcb5')][_0x16595c[_0x3d8c52('0x24ee')][_0x45b0f7['destaccountcode']]],[_0x3d8c52('0xbdd'),_0x3d8c52('0xa70')]),_0x16595c[_0x3d8c52('0x165c')][_0x16595c[_0x3d8c52('0x24ee')][_0x45b0f7[_0x3d8c52('0xe4e')]]]=_0x86640f()[_0x3d8c52('0x27b1')](_0x16595c['rpcAgents'][_0x16595c[_0x3d8c52('0x24ee')][_0x45b0f7[_0x3d8c52('0xe4e')]]],[_0x3d8c52('0xbdd'),_0x3d8c52('0xa70')]));}function _0x4c7d4d(_0x53e40d){var _0x43aaf5=_0x50edc0;return _0x355886[_0x43aaf5('0x1775')][_0x43aaf5('0xda3')]({'id':_0x53e40d['id'],'device':_0x43aaf5('0x116a'),'agent_id':_0x53e40d['id'],'agent_name':_0x53e40d[_0x43aaf5('0x19fe')]})[_0x43aaf5('0x1376')][_0x43aaf5('0x21ad')](function(){var _0x38a3ba=_0x43aaf5;_0x3f9870[_0x38a3ba('0xdb1')]({'title':_0x38a3ba('0x4b2'),'msg':_0x53e40d[_0x38a3ba('0x20f5')]+_0x38a3ba('0x1f57')}),_0x16595c['agents'][_0x53e40d['id']]&&(_0x16595c[_0x38a3ba('0xcb5')][_0x53e40d['id']][_0x38a3ba('0x1ecb')]=![]),_0x16595c[_0x38a3ba('0x165c')][_0x53e40d['id']]&&(_0x16595c[_0x38a3ba('0x165c')][_0x53e40d['id']]['online']=![]),_0x416413();})[_0x43aaf5('0x1c1d')](function(_0x3a4c5b){var _0x349b44=_0x43aaf5;_0x3f9870['error']({'title':_0x3a4c5b['status']?_0x349b44('0x22d')+_0x3a4c5b[_0x349b44('0x209')]+'\x20-\x20'+_0x3a4c5b[_0x349b44('0x1808')]:_0x349b44('0x1df9'),'msg':_0x3a4c5b[_0x349b44('0x11c2')]?JSON[_0x349b44('0x25e')](_0x3a4c5b[_0x349b44('0x11c2')][_0x349b44('0x1224')]):_0x3a4c5b['toString']()});});}function _0x4d67f5(_0x24c1b4,_0x52be3e){var _0x5ac6d0=_0x50edc0;return _0x355886[_0x5ac6d0('0x1775')][_0x5ac6d0('0x1e26')]({'id':_0x24c1b4['id'],'type':_0x52be3e})['$promise']['then'](function(_0x28bb73){var _0x294808=_0x5ac6d0;_0x16595c[_0x294808('0xcb5')][_0x24c1b4['id']]&&_0x86640f()[_0x294808('0xd0e')](_0x16595c[_0x294808('0xcb5')][_0x24c1b4['id']],_0x86640f()[_0x294808('0xc50')](_0x28bb73,_0x42fc01)),_0x16595c[_0x294808('0x165c')][_0x24c1b4['id']]&&_0x86640f()['merge'](_0x16595c[_0x294808('0x165c')][_0x24c1b4['id']],_0x86640f()['pick'](_0x28bb73,_0x42fc01)),_0x54d7b0(_0x16595c['agents'][_0x24c1b4['id']]);})[_0x5ac6d0('0x1c1d')](function(_0x485f35){var _0x425beb=_0x5ac6d0;_0x3f9870[_0x425beb('0x2092')]({'title':_0x485f35['status']?_0x425beb('0x22d')+_0x485f35[_0x425beb('0x209')]+_0x425beb('0xa99')+_0x485f35[_0x425beb('0x1808')]:'api.staff.save','msg':_0x485f35[_0x425beb('0x11c2')]?JSON[_0x425beb('0x25e')](_0x485f35['data'][_0x425beb('0x1224')]):_0x485f35[_0x425beb('0x174f')]()});});}function _0x5b2fe7(_0x39aa8c){var _0x966135=_0x50edc0;return _0x355886[_0x966135('0x1775')][_0x966135('0xa8e')]({'id':_0x39aa8c['id']})[_0x966135('0x1376')][_0x966135('0x21ad')](function(_0x1ea8cf){var _0x41bbad=_0x966135;_0x16595c[_0x41bbad('0xcb5')][_0x39aa8c['id']]&&_0x86640f()[_0x41bbad('0xd0e')](_0x16595c[_0x41bbad('0xcb5')][_0x39aa8c['id']],_0x86640f()['pick'](_0x1ea8cf,_0x42fc01)),_0x16595c[_0x41bbad('0x165c')][_0x39aa8c['id']]&&_0x86640f()[_0x41bbad('0xd0e')](_0x16595c[_0x41bbad('0x165c')][_0x39aa8c['id']],_0x86640f()[_0x41bbad('0xc50')](_0x1ea8cf,_0x42fc01)),_0x54d7b0(_0x16595c[_0x41bbad('0xcb5')][_0x39aa8c['id']]);})['catch'](function(_0x1aa107){var _0x5b17d4=_0x966135;_0x3f9870[_0x5b17d4('0x2092')]({'title':_0x1aa107[_0x5b17d4('0x209')]?'API:'+_0x1aa107[_0x5b17d4('0x209')]+_0x5b17d4('0xa99')+_0x1aa107[_0x5b17d4('0x1808')]:_0x5b17d4('0x1df9'),'msg':_0x1aa107['data']?JSON[_0x5b17d4('0x25e')](_0x1aa107[_0x5b17d4('0x11c2')][_0x5b17d4('0x1224')]):_0x1aa107[_0x5b17d4('0x174f')]()});});}function _0x826d57(_0x25da8f){var _0x19c121=_0x50edc0;_0x29219a[_0x19c121('0x853')](_0x29219a[_0x19c121('0x95b')]()[_0x19c121('0x1226')](!![])[_0x19c121('0x4b4')](_0x19c121('0xcc0'))[_0x19c121('0x276b')](_0x19c121('0xfcf'))['ok']('Ok')[_0x19c121('0x1e6d')](_0x25da8f));}function _0x3d022d(_0x13c546,_0x53fd29){var _0x457ce1=_0x50edc0;_0x29219a['show']({'controller':_0x457ce1('0x213f'),'controllerAs':'vm','templateUrl':_0x287ed6,'parent':angular['element'](_0x53c8c0[_0x457ce1('0x2452')]),'targetEvent':_0x53fd29,'clickOutsideToClose':!![],'locals':{'agent':_0x13c546,'agents':[],'channel':_0x457ce1('0x8ed'),'direction':_0x457ce1('0x2300'),'crudPermissions':_0x16595c[_0x457ce1('0x5ed')]}});}function _0x3145fb(_0x492e78){var _0x2e04ef=_0x50edc0;return _0x492e78===_0x2e04ef('0x1e26')||_0x492e78==='*pause';}function _0x37da00(_0x535593){return _0x535593==='pause';}function _0x1fb633(_0x1b8574){var _0xb9b9da=_0x50edc0;return _0x1b8574===_0xb9b9da('0x1a4e');}function _0x44e9e9(_0x381b59){var _0x424069=_0x50edc0;return _0x381b59===_0x424069('0x219')||_0x381b59==='unknown'||_0x381b59===_0x424069('0x22fd')||_0x381b59==='ringing'||_0x86640f()[_0x424069('0x1c7')](_0x381b59);}function _0x277375(_0x1c5163,_0x19c1dc){var _0x2a0863=_0x50edc0;if(_0x19c1dc===_0x2a0863('0x8ed')){if(_0x1c5163[_0x19c1dc+_0x2a0863('0x843')]!==_0x2a0863('0x219'))return _0x1c5163[_0x19c1dc+_0x2a0863('0x843')];if(_0x1c5163[_0x19c1dc+'Pause'])return _0x1c5163[_0x19c1dc+_0x2a0863('0x843')]='pause','pause';return _0x2a0863('0x219');}else{if(_0x1c5163[_0x19c1dc+'Pause'])return _0x1c5163[_0x19c1dc+_0x2a0863('0x843')]=_0x2a0863('0x1e26'),'pause';return _0x1c5163[_0x19c1dc+_0x2a0863('0x843')];}}function _0x54d7b0(_0x1bbac3){var _0x3c69b2=_0x50edc0,_0x41edf2=_0x3c69b2('0x1a4f');if(_0x86640f()[_0x3c69b2('0xc74')]([_0x277375(_0x1bbac3,'voice'),_0x277375(_0x1bbac3,'chat'),_0x277375(_0x1bbac3,_0x3c69b2('0x1c8b')),_0x277375(_0x1bbac3,_0x3c69b2('0xac9')),_0x277375(_0x1bbac3,_0x3c69b2('0x3d0')),_0x277375(_0x1bbac3,_0x3c69b2('0x1ad4')),_0x277375(_0x1bbac3,_0x3c69b2('0x93f'))],_0x3145fb))_0x41edf2=_0x3c69b2('0x1e26');else{if(_0x86640f()[_0x3c69b2('0x2664')]([_0x277375(_0x1bbac3,_0x3c69b2('0x8ed')),_0x277375(_0x1bbac3,_0x3c69b2('0x1f65')),_0x277375(_0x1bbac3,'mail'),_0x277375(_0x1bbac3,'openchannel'),_0x277375(_0x1bbac3,_0x3c69b2('0x3d0')),_0x277375(_0x1bbac3,'whatsapp'),_0x277375(_0x1bbac3,'fax')],_0x3145fb))_0x41edf2='*pause';else _0x86640f()[_0x3c69b2('0xc74')]([_0x277375(_0x1bbac3,_0x3c69b2('0x8ed')),_0x277375(_0x1bbac3,_0x3c69b2('0x1f65')),_0x277375(_0x1bbac3,_0x3c69b2('0x1c8b')),_0x277375(_0x1bbac3,_0x3c69b2('0xac9')),_0x277375(_0x1bbac3,_0x3c69b2('0x3d0')),_0x277375(_0x1bbac3,'whatsapp'),_0x277375(_0x1bbac3,'fax')],_0x44e9e9)?_0x41edf2=_0x3c69b2('0x219'):_0x41edf2='busy';}_0x1bbac3['globalStatus']!==_0x41edf2&&(_0x1bbac3[_0x3c69b2('0x100f')]=_0x41edf2,_0x1bbac3['init']?(_0x1bbac3[_0x3c69b2('0x1d75')]=![],_0x1bbac3['globalStatusTime']=_0x3145fb(_0x41edf2)?_0x86640f()[_0x3c69b2('0x1662')](_0x1088bc()(_0x1bbac3[_0x3c69b2('0x1a2c')])['format']('x')):_0x86640f()[_0x3c69b2('0x1847')]([_0x1bbac3[_0x3c69b2('0xc0')],_0x1bbac3[_0x3c69b2('0x1ffc')],_0x1bbac3[_0x3c69b2('0xf73')],_0x1bbac3[_0x3c69b2('0x1a1')],_0x1bbac3[_0x3c69b2('0x18fb')],_0x1bbac3['openchannelStatusTime'],_0x1bbac3[_0x3c69b2('0x27b6')]])):_0x1bbac3[_0x3c69b2('0x1ea5')]=_0x86640f()[_0x3c69b2('0x1662')](_0x1088bc()()[_0x3c69b2('0x153')]('x')));}function _0x43ee93(_0x12772e){var _0xdcc0ef=_0x50edc0,_0x22ea6d=_0x86640f()[_0xdcc0ef('0x2837')](_0x16595c[_0xdcc0ef('0x77')][_0xdcc0ef('0x2752')],'-')?_0xdcc0ef('0x340'):'asc';return _0x86640f()[_0xdcc0ef('0x11df')](_0x12772e,[_0x16595c[_0xdcc0ef('0x77')][_0xdcc0ef('0x2752')][_0xdcc0ef('0x16e4')]('-','')],[_0x22ea6d]);}function _0x2eb96e(){_0x3ba12f&&(_0x5c4a32['cancel'](_0x3ba12f),_0x3ba12f=null);}function _0x19c6d1(_0x149b60,_0x13c7f4){var _0x3c872f=_0x50edc0;return _0x355886['user']['update']({'id':_0x149b60['id']},{'screenrecording':_0x13c7f4})[_0x3c872f('0x1376')][_0x3c872f('0x1c1d')](function(_0x3b00ba){var _0x3b472e=_0x3c872f;_0x3f9870[_0x3b472e('0x2092')]({'title':_0x3b00ba['status']?_0x3b472e('0x22d')+_0x3b00ba['status']+_0x3b472e('0xa99')+_0x3b00ba[_0x3b472e('0x1808')]:'api.user.update','msg':_0x3b00ba['data']?JSON['stringify'](_0x3b00ba['data'][_0x3b472e('0x1224')]):_0x3b00ba[_0x3b472e('0x174f')]()});});}_0xf8fd54['$on'](_0x50edc0('0x1210'),function(){var _0x566d2a=_0x50edc0;_0x1ca6e3[_0x566d2a('0x16cc')](_0x566d2a('0x62b')),_0x1ca6e3[_0x566d2a('0x16cc')](_0x566d2a('0x21f4')),_0x1ca6e3[_0x566d2a('0x16cc')](_0x566d2a('0x19a7')),_0x1ca6e3['removeAllListeners'](_0x566d2a('0x1131')),_0x2eb96e();});}const _0x811ec3=_0x20d181,_0x1c8c5f=_0x398308['p']+_0x3877e3('0x1df6');_0x4ceb9d['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0x2313'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x1e8d'),_0x3877e3('0xfc0'),_0x3877e3('0x13be'),_0x3877e3('0xccd'),_0x3877e3('0x25d8'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0x15bc')];function _0x4ceb9d(_0x494872,_0xd78c36,_0x47607a,_0x2f7c19,_0x905449,_0x153e43,_0x1d0afd,_0x10097c,_0x330713,_0x4d897c,_0x5b134a,_0x581f51){var _0x3b5797=_0x3877e3,_0x496000=this,_0x1a3448=[_0x3b5797('0x19fe'),_0x3b5797('0x695'),_0x3b5797('0x2212'),_0x3b5797('0x1224'),_0x3b5797('0x108'),_0x3b5797('0x1ac8'),'SquareProjectId',_0x3b5797('0x1e2e'),_0x3b5797('0x1026'),_0x3b5797('0x2b3'),_0x3b5797('0x17a6'),'ivrTotalCallsDays',_0x3b5797('0x1137')];_0x496000[_0x3b5797('0x123f')]=_0x581f51[_0x3b5797('0x15ed')](),_0x496000[_0x3b5797('0x205f')]=_0x1d0afd['count'],_0x496000['campaigns']=_0x1d0afd?_0x86640f()[_0x3b5797('0xcde')](_0x1d0afd['rows']?_0x1d0afd[_0x3b5797('0x1b33')]:[],'id'):{},_0x496000['rpcCampaigns']=_0x153e43?_0x86640f()['keyBy'](_0x153e43[_0x3b5797('0x1b33')]?_0x153e43[_0x3b5797('0x1b33')]:[],'id'):{},_0x496000['userProfile']=_0x4d897c,_0x496000[_0x3b5797('0xab4')]=_0x5b134a&&_0x5b134a[_0x3b5797('0x205f')]==0x1?_0x5b134a[_0x3b5797('0x1b33')][0x0]:null,_0x496000[_0x3b5797('0x5ed')]=_0x581f51[_0x3b5797('0x1778')](_0x496000[_0x3b5797('0xab4')]?_0x496000[_0x3b5797('0xab4')]['crudPermissions']:null),_0x496000[_0x3b5797('0x77')]={'sort':_0x3b5797('0x33'),'limit':0xa,'page':0x1},_0x496000[_0x3b5797('0xdb1')]=_0x51eb6a,_0x496000['getCampaigns']=_0xee8a61,_0x496000[_0x3b5797('0x1b74')]=_0x4b120a,_0x496000['$onInit']=_0x11d517,_0x496000[_0x3b5797('0x1a7d')]=_0x590774,_0x330713[_0x3b5797('0x1487')]('campaign:save',_0x496000[_0x3b5797('0x1b74')]),_0x496000[_0x3b5797('0xa07')]=_0x905449(function(){},0x3e7);function _0x11d517(){var _0x1e4fb6=_0x3b5797;_0x86640f()['forIn'](_0x496000[_0x1e4fb6('0x13be')],function(_0x4d8019,_0x2a5f8d){var _0x233dc4=_0x1e4fb6;_0x496000[_0x233dc4('0xfc0')][_0x2a5f8d]&&_0x86640f()['merge'](_0x4d8019,_0x86640f()[_0x233dc4('0xc50')](_0x496000[_0x233dc4('0xfc0')][_0x2a5f8d],_0x1a3448));});}function _0x4b120a(_0x433ad9){var _0x16b00d=_0x3b5797;_0x496000[_0x16b00d('0x13be')][_0x433ad9['id']]&&(_0x86640f()['merge'](_0x496000[_0x16b00d('0x13be')][_0x433ad9['id']],_0x86640f()[_0x16b00d('0xc50')](_0x433ad9,_0x1a3448)),_0x86640f()[_0x16b00d('0xd0e')](_0x496000[_0x16b00d('0xfc0')][_0x433ad9['id']],_0x86640f()[_0x16b00d('0xc50')](_0x433ad9,_0x1a3448)));}var _0x405998=!![],_0x5f382c=0x1;_0x494872[_0x3b5797('0x10e8')](_0x3b5797('0x1948'),function(_0x573ebf,_0x457804){var _0x4b89cf=_0x3b5797;_0x405998?_0xd78c36(function(){_0x405998=![];}):(!_0x457804&&(_0x5f382c=_0x496000[_0x4b89cf('0x77')][_0x4b89cf('0x2376')]),_0x573ebf!==_0x457804&&(_0x496000[_0x4b89cf('0x77')][_0x4b89cf('0x2376')]=0x1),!_0x573ebf&&(_0x496000[_0x4b89cf('0x77')][_0x4b89cf('0x2376')]=_0x5f382c),_0x496000[_0x4b89cf('0x25b3')]());});function _0x51eb6a(_0xf46cdc){var _0x27b585=_0x3b5797;_0x496000[_0x27b585('0x205f')]=_0xf46cdc[_0x27b585('0x205f')],_0x496000[_0x27b585('0x13be')]=_0xf46cdc?_0x86640f()[_0x27b585('0xcde')](_0xf46cdc[_0x27b585('0x1b33')]?_0xf46cdc[_0x27b585('0x1b33')]:[],'id'):{},_0x11d517();}function _0xee8a61(){var _0x505b66=_0x3b5797;_0x496000[_0x505b66('0x77')][_0x505b66('0x15a5')]=(_0x496000[_0x505b66('0x77')][_0x505b66('0x2376')]-0x1)*_0x496000[_0x505b66('0x77')]['limit'],_0x581f51[_0x505b66('0x21de')](_0x505b66('0x1bd8'))?_0x496000['promise']=_0x10097c['campaign'][_0x505b66('0x595')](_0x496000['query'],_0x51eb6a)[_0x505b66('0x1376')]:(_0x496000[_0x505b66('0x77')]['id']=_0x496000['userProfile']['id'],_0x496000[_0x505b66('0x77')]['section']=_0x505b66('0xc96'),_0x496000[_0x505b66('0x71b')]=_0x10097c[_0x505b66('0x758')][_0x505b66('0x321')](_0x496000[_0x505b66('0x77')],_0x51eb6a)['$promise']);}function _0x590774(_0x42095b,_0x3bdd4d){var _0x345e4c=_0x3b5797;_0x47607a[_0x345e4c('0x853')]({'controller':'CreateOrEditIvrCampaignDialogController','controllerAs':'vm','templateUrl':_0x1c8c5f,'parent':angular[_0x345e4c('0x1676')](_0x2f7c19[_0x345e4c('0x2452')]),'targetEvent':_0x42095b,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x3bdd4d,'ivrCampaigns':_0x86640f()['values'](_0x496000[_0x345e4c('0x13be')]),'license':null,'setting':null,'crudPermissions':_0x496000[_0x345e4c('0x5ed')]}});}_0x494872['$on'](_0x3b5797('0x1210'),function(){var _0x275581=_0x3b5797;_0x330713[_0x275581('0x16cc')](_0x275581('0x417')),_0x496000[_0x275581('0xa07')]&&_0x905449['cancel'](_0x496000[_0x275581('0xa07')]);});}const _0x166a33=_0x4ceb9d;_0x479052[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$timeout',_0x3877e3('0x1850'),_0x3877e3('0xcb5'),_0x3877e3('0xb7a'),_0x3877e3('0x3e3'),_0x3877e3('0xccd'),_0x3877e3('0x25d8'),'helperClasses',_0x3877e3('0x1908'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0x15bc')];function _0x479052(_0x335d4f,_0x43b328,_0x4770fb,_0x259154,_0x51eee7,_0xe72ac2,_0x35423a,_0x5b6537,_0x4d9f4a,_0x251c91,_0x51e41c,_0x41fb1b,_0x55e479){var _0x2c5467=_0x3877e3,_0x35b6f1=this;_0x35b6f1[_0x2c5467('0x123f')]=_0x55e479[_0x2c5467('0x15ed')](),_0x35b6f1[_0x2c5467('0xcb5')]=_0x259154||{'count':0x0,'rows':[]},_0x35b6f1[_0x2c5467('0xb7a')]=_0x51eee7?_0x86640f()[_0x2c5467('0xcde')](_0x51eee7['rows']?_0x51eee7[_0x2c5467('0x1b33')]:[],'name'):{},_0x35b6f1[_0x2c5467('0x15ef')]=_0xe72ac2?_0x86640f()[_0x2c5467('0xcde')](_0xe72ac2[_0x2c5467('0x1b33')]?_0x86640f()[_0x2c5467('0x1503')](_0xe72ac2['rows'],{'type':_0x2c5467('0x2300')}):[],'uniqueid'):{},_0x35b6f1[_0x2c5467('0x3e3')]={},_0x35b6f1[_0x2c5467('0x758')]=_0x51e41c,_0x35b6f1[_0x2c5467('0xab4')]=_0x41fb1b&&_0x41fb1b[_0x2c5467('0x205f')]==0x1?_0x41fb1b[_0x2c5467('0x1b33')][0x0]:null,_0x35b6f1[_0x2c5467('0x5ed')]=_0x55e479['parseCrudPermissions'](_0x35b6f1[_0x2c5467('0xab4')]?_0x35b6f1[_0x2c5467('0xab4')][_0x2c5467('0x5ed')]:null),_0x35b6f1['queryChannels']={'limit':0xa,'page':0x1},_0x35b6f1[_0x2c5467('0xd4e')]=_0x2d654b,_0x35b6f1['$onInit']=_0x2d7163,_0x35b6f1[_0x2c5467('0x1b74')]=_0x564c8d,_0x35b6f1[_0x2c5467('0x2345')]=_0x2ab5cf,_0x35b6f1[_0x2c5467('0xf7d')]=_0x892098,_0x35b6f1['redirectToAgent']=_0x36a9fd,_0x35b6f1['redirectToNumber']=_0x20add6,_0x5b6537['on'](_0x2c5467('0x17b3'),_0x35b6f1['onSave']),_0x5b6537['on'](_0x2c5467('0x1686'),_0x35b6f1['onRemove']);function _0x2d654b(_0xbf96fe){var _0x8127ec=_0x2c5467;return _0x86640f()[_0x8127ec('0x337')](_0xbf96fe);}function _0x2d7163(){var _0xc12ec6=_0x2c5467;_0x86640f()[_0xc12ec6('0xd54')](_0x35b6f1['rpcVoiceQueuesChannelsTmp'],function(_0x47d6ff,_0x4ae889){var _0x415e19=_0xc12ec6;_0x86640f()['find'](_0x35b6f1[_0x415e19('0xb7a')],{'name':_0x47d6ff[_0x415e19('0x19fe')]})&&(_0x35b6f1[_0x415e19('0x3e3')][_0x4ae889]=_0x47d6ff);});}function _0x564c8d(_0x57450c){var _0x43d0ae=_0x2c5467;_0x57450c[_0x43d0ae('0x7fa')]===_0x43d0ae('0x2300')&&(_0x86640f()['find'](_0x35b6f1[_0x43d0ae('0xb7a')],{'name':_0x57450c[_0x43d0ae('0x19fe')]})&&(_0x35b6f1[_0x43d0ae('0x3e3')][_0x57450c[_0x43d0ae('0x968')]]=_0x57450c));}function _0x2ab5cf(_0x4d8743){var _0x1f80b4=_0x2c5467;_0x35b6f1[_0x1f80b4('0x3e3')][_0x4d8743[_0x1f80b4('0x968')]]&&delete _0x35b6f1[_0x1f80b4('0x3e3')][_0x4d8743[_0x1f80b4('0x968')]];}function _0x892098(_0x2b5173){var _0x169e93=_0x2c5467;return _0x35423a[_0x169e93('0x9ac')][_0x169e93('0x3')]({'uniqueid':_0x2b5173})[_0x169e93('0x1376')]['then'](function(_0x3ebe44){var _0x2d9cd9=_0x169e93;_0x251c91[_0x2d9cd9('0xdb1')]({'title':_0x2d9cd9('0x1f11')+_0x2b5173+_0x2d9cd9('0x355'),'msg':_0x3ebe44[_0x2d9cd9('0x1224')]||''});})[_0x169e93('0x1c1d')](function(_0x73e8b3){var _0x1cf052=_0x169e93;_0x251c91[_0x1cf052('0x2092')]({'title':_0x73e8b3[_0x1cf052('0x209')]+_0x1cf052('0xa99')+_0x73e8b3[_0x1cf052('0x1808')],'msg':JSON[_0x1cf052('0x25e')](_0x73e8b3['data'])||_0x73e8b3['message']['join']('\x20')});});}function _0x36a9fd(_0x153b0b,_0x4f6a31,_0x3ec854){var _0x53050a=_0x2c5467;return _0x35423a[_0x53050a('0x9ac')][_0x53050a('0x22e1')]({'uniqueid':_0x153b0b,'exten':_0x4f6a31,'context':_0x3ec854})[_0x53050a('0x1376')][_0x53050a('0x21ad')](function(_0x524da9){var _0x5c437d=_0x53050a;_0x251c91[_0x5c437d('0xdb1')]({'title':_0x5c437d('0x1f11')+_0x153b0b+_0x5c437d('0x143'),'msg':_0x524da9[_0x5c437d('0x1224')]||''});})['catch'](function(_0x3625bc){var _0x509c96=_0x53050a;_0x251c91[_0x509c96('0x2092')]({'title':_0x3625bc['status']+_0x509c96('0xa99')+_0x3625bc['statusText'],'msg':JSON[_0x509c96('0x25e')](_0x3625bc[_0x509c96('0x11c2')])||_0x3625bc['message'][_0x509c96('0x136')]('\x20')});});}function _0x20add6(_0x509b3f,_0x356608){var _0x5d1006=_0x2c5467,_0x15ef1a=_0x4770fb[_0x5d1006('0xee8')]()[_0x5d1006('0x4b4')]('Which\x20number\x20do\x20you\x20want\x20transfer\x20the\x20call\x20to?')[_0x5d1006('0x5a2')]('Number')[_0x5d1006('0x1e6d')](_0x509b3f)['ok']('Ok')[_0x5d1006('0x3b5')](_0x5d1006('0x1f40'));return _0x4770fb[_0x5d1006('0x853')](_0x15ef1a)[_0x5d1006('0x21ad')](function(_0xa0709){var _0xf354e1=_0x5d1006;return _0x35423a['rpc'][_0xf354e1('0x22e1')]({'uniqueid':_0x356608,'exten':_0xa0709})[_0xf354e1('0x1376')];})[_0x5d1006('0x21ad')](function(_0x402db5){var _0x2d41f8=_0x5d1006;_0x251c91[_0x2d41f8('0xdb1')]({'title':_0x2d41f8('0x1f11')+_0x356608+'\x20properly\x20redirect!','msg':_0x402db5[_0x2d41f8('0x1224')]||''});})[_0x5d1006('0x1c1d')](function(_0x20eac1){var _0x26e263=_0x5d1006;_0x251c91['error']({'title':_0x20eac1['status']+_0x26e263('0xa99')+_0x20eac1['statusText'],'msg':JSON[_0x26e263('0x25e')](_0x20eac1[_0x26e263('0x11c2')])||_0x20eac1['message'][_0x26e263('0x136')]('\x20')});});}_0x335d4f[_0x2c5467('0x1723')](_0x2c5467('0x1210'),function(){var _0x410493=_0x2c5467;_0x5b6537[_0x410493('0x16cc')](_0x410493('0x17b3')),_0x5b6537[_0x410493('0x16cc')](_0x410493('0x1686'));});}const _0x532102=_0x479052;_0x494bf6[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x2313'),'$interval',_0x3877e3('0xb7a'),_0x3877e3('0x245'),'api',_0x3877e3('0x25d8'),_0x3877e3('0x758'),_0x3877e3('0xab4'),'Auth'];function _0x494bf6(_0x4430c3,_0x5349e2,_0x555f73,_0x9d2606,_0x284d71,_0x8f4c17,_0x512e6e,_0xbbc173,_0x50fb78,_0x10d484){var _0x399d6a=_0x3877e3,_0x21fc44=this,_0x51f811=[_0x399d6a('0x16f0'),_0x399d6a('0x24c7'),'sumHoldTime',_0x399d6a('0x486'),_0x399d6a('0x27f1'),_0x399d6a('0x14c5'),_0x399d6a('0x12f4'),'outboundCongestionCallsDay',_0x399d6a('0x201b'),_0x399d6a('0x1c4a'),_0x399d6a('0x1b0e'),_0x399d6a('0x1871'),_0x399d6a('0x238e'),'outboundOriginateFailureCallsDay','outboundAnswerAgiCallsDay',_0x399d6a('0x79f'),'outboundRejectCallsDay'];_0x21fc44[_0x399d6a('0x205f')]=_0x9d2606[_0x399d6a('0x205f')],_0x21fc44[_0x399d6a('0xb7a')]=_0x9d2606?_0x86640f()[_0x399d6a('0xcde')](_0x9d2606['rows']?_0x9d2606['rows']:[],'id'):{},_0x21fc44['rpcQueues']=_0x284d71?_0x86640f()['keyBy'](_0x284d71[_0x399d6a('0x1b33')]?_0x284d71[_0x399d6a('0x1b33')]:[],'id'):{},_0x21fc44['userProfile']=_0xbbc173,_0x21fc44['userProfileSection']=_0x50fb78&&_0x50fb78[_0x399d6a('0x205f')]==0x1?_0x50fb78[_0x399d6a('0x1b33')][0x0]:null,_0x21fc44[_0x399d6a('0x5ed')]=_0x10d484[_0x399d6a('0x1778')](_0x21fc44[_0x399d6a('0xab4')]?_0x21fc44[_0x399d6a('0xab4')][_0x399d6a('0x5ed')]:null);_0x10d484[_0x399d6a('0x21de')](_0x399d6a('0x1bd8'))?_0x21fc44[_0x399d6a('0x77')]={'type':_0x399d6a('0x2300'),'fields':_0x399d6a('0x1aa8'),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0x21fc44['query']={'id':_0x10d484[_0x399d6a('0x15ed')]()['id'],'channel':_0x399d6a('0x8ed'),'type':_0x399d6a('0x2300'),'fields':_0x399d6a('0x1aa8'),'sort':_0x399d6a('0x33'),'limit':0xa,'page':0x1};_0x21fc44['success']=_0x22de6d,_0x21fc44['getQueues']=_0x95b99e,_0x21fc44['onSave']=_0x3bc74d,_0x21fc44[_0x399d6a('0x14b')]=_0x24acaf,_0x512e6e[_0x399d6a('0x1487')](_0x399d6a('0x83e'),_0x21fc44[_0x399d6a('0x1b74')]),_0x21fc44[_0x399d6a('0xa07')]=_0x555f73(function(){},0x3e7);function _0x24acaf(){var _0x2ce95f=_0x399d6a;_0x86640f()[_0x2ce95f('0xd54')](_0x21fc44[_0x2ce95f('0xb7a')],function(_0xcdfc30,_0x1f0ce9){var _0x340fad=_0x2ce95f;_0x21fc44[_0x340fad('0x245')][_0x1f0ce9]&&_0x86640f()[_0x340fad('0xd0e')](_0xcdfc30,_0x86640f()[_0x340fad('0xc50')](_0x21fc44[_0x340fad('0x245')][_0x1f0ce9],_0x51f811));});}function _0x3bc74d(_0x1e577d){var _0x3d988d=_0x399d6a;_0x21fc44[_0x3d988d('0xb7a')][_0x1e577d['id']]&&_0x86640f()[_0x3d988d('0xd0e')](_0x21fc44[_0x3d988d('0xb7a')][_0x1e577d['id']],_0x86640f()[_0x3d988d('0xc50')](_0x1e577d,_0x51f811));}var _0x2377f1=!![],_0x1b1746=0x1;_0x4430c3[_0x399d6a('0x10e8')](_0x399d6a('0x1948'),function(_0x24d6f9,_0x48dbc4){var _0x3d8ce0=_0x399d6a;_0x2377f1?_0x5349e2(function(){_0x2377f1=![];}):(!_0x48dbc4&&(_0x1b1746=_0x21fc44['query'][_0x3d8ce0('0x2376')]),_0x24d6f9!==_0x48dbc4&&(_0x21fc44[_0x3d8ce0('0x77')][_0x3d8ce0('0x2376')]=0x1),!_0x24d6f9&&(_0x21fc44['query']['page']=_0x1b1746),_0x21fc44[_0x3d8ce0('0x71c')]());});function _0x22de6d(_0x156901){var _0x53078e=_0x399d6a;_0x21fc44[_0x53078e('0x205f')]=_0x156901[_0x53078e('0x205f')],_0x21fc44[_0x53078e('0xb7a')]=_0x156901?_0x86640f()['keyBy'](_0x156901[_0x53078e('0x1b33')]?_0x156901['rows']:[],'id'):{},_0x24acaf();}function _0x95b99e(){var _0x10dfa2=_0x399d6a;_0x21fc44[_0x10dfa2('0x77')][_0x10dfa2('0x15a5')]=(_0x21fc44[_0x10dfa2('0x77')][_0x10dfa2('0x2376')]-0x1)*_0x21fc44[_0x10dfa2('0x77')][_0x10dfa2('0x1f4a')],_0x10d484['hasRole']('admin')?_0x21fc44['promise']=_0x8f4c17[_0x10dfa2('0xb97')][_0x10dfa2('0x595')](_0x21fc44[_0x10dfa2('0x77')],_0x22de6d)[_0x10dfa2('0x1376')]:(_0x21fc44[_0x10dfa2('0x77')]['id']=_0x21fc44[_0x10dfa2('0x758')]['id'],_0x21fc44[_0x10dfa2('0x77')][_0x10dfa2('0x26ad')]=_0x10dfa2('0x1c8d'),_0x21fc44['promise']=_0x8f4c17[_0x10dfa2('0x758')][_0x10dfa2('0x321')](_0x21fc44['query'],_0x22de6d)['$promise']);}_0x4430c3[_0x399d6a('0x1723')](_0x399d6a('0x1210'),function(){var _0x84600c=_0x399d6a;_0x512e6e[_0x84600c('0x16cc')](_0x84600c('0x83e')),_0x21fc44[_0x84600c('0xa07')]&&_0x555f73[_0x84600c('0x3b5')](_0x21fc44['interval']);});}const _0x5a743c=_0x494bf6,_0x500887=_0x398308['p']+_0x3877e3('0x1c76'),_0x25e9b0=_0x398308['p']+_0x3877e3('0x20c5'),_0x409ee0=_0x398308['p']+_0x3877e3('0xd44');_0x484546[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0x2313'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x243f'),_0x3877e3('0x1e8d'),'queues',_0x3877e3('0x245'),_0x3877e3('0xccd'),_0x3877e3('0x25d8'),'toasty',_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0x15bc')];function _0x484546(_0x2081fd,_0xaaf800,_0x351c69,_0x5b3858,_0x10983a,_0x1dd466,_0x23a6ec,_0x34f0cc,_0x26fed2,_0x1b5655,_0x22e904,_0x394f28,_0x48a36f,_0x2a88f0){var _0x1d960d=_0x3877e3,_0x4117ff=this,_0x482641=['loggedIn',_0x1d960d('0x21ef'),'waiting',_0x1d960d('0x4f6'),_0x1d960d('0xc37'),_0x1d960d('0x108'),_0x1d960d('0x1224'),'dialActive',_0x1d960d('0x1c4b'),_0x1d960d('0x1e2e'),_0x1d960d('0x250c'),_0x1d960d('0x1310'),_0x1d960d('0x536'),_0x1d960d('0x30d'),'erlangCallToSecond',_0x1d960d('0xb31'),'erlangBusyFactor',_0x1d960d('0x2543'),_0x1d960d('0xd67'),_0x1d960d('0x226e'),_0x1d960d('0x2357'),'predictiveIntervalTotalCalls','predictiveIntervalAnsweredCalls',_0x1d960d('0x233c'),_0x1d960d('0xcc2'),_0x1d960d('0x1522'),_0x1d960d('0x35d')];_0x4117ff[_0x1d960d('0x123f')]=_0x2a88f0[_0x1d960d('0x15ed')](),_0x4117ff[_0x1d960d('0x205f')]=_0x23a6ec[_0x1d960d('0x205f')]?_0x23a6ec[_0x1d960d('0x205f')]:0x0,_0x4117ff[_0x1d960d('0xb7a')]=_0x23a6ec?_0x86640f()['keyBy'](_0x23a6ec[_0x1d960d('0x1b33')]?_0x23a6ec[_0x1d960d('0x1b33')]:[],'id'):{},_0x4117ff['rpcQueues']=_0x34f0cc?_0x86640f()[_0x1d960d('0xcde')](_0x34f0cc[_0x1d960d('0x1b33')]?_0x34f0cc[_0x1d960d('0x1b33')]:[],'id'):{},_0x4117ff[_0x1d960d('0x758')]=_0x394f28,_0x4117ff[_0x1d960d('0xab4')]=_0x48a36f&&_0x48a36f[_0x1d960d('0x205f')]==0x1?_0x48a36f[_0x1d960d('0x1b33')][0x0]:null,_0x4117ff[_0x1d960d('0x5ed')]=_0x2a88f0[_0x1d960d('0x1778')](_0x4117ff[_0x1d960d('0xab4')]?_0x4117ff[_0x1d960d('0xab4')][_0x1d960d('0x5ed')]:null);_0x2a88f0[_0x1d960d('0x21de')]('admin')?_0x4117ff[_0x1d960d('0x77')]={'type':_0x1d960d('0x2300'),'sort':_0x1d960d('0x33'),'limit':0xa,'page':0x1}:_0x4117ff['query']={'id':_0x4117ff[_0x1d960d('0x123f')]['id'],'channel':_0x1d960d('0x8ed'),'type':_0x1d960d('0x2300'),'sort':_0x1d960d('0x33'),'limit':0xa,'page':0x1};_0x4117ff[_0x1d960d('0xdb1')]=_0x204151,_0x4117ff[_0x1d960d('0x71c')]=_0x3a2e80,_0x4117ff[_0x1d960d('0x140')]=_0x65f0f6,_0x4117ff[_0x1d960d('0x1af1')]=_0x542bf3,_0x4117ff[_0x1d960d('0x40b')]=_0x4c562b,_0x4117ff[_0x1d960d('0x14c1')]=_0xdfdbe,_0x4117ff[_0x1d960d('0x1b74')]=_0x325a1d,_0x4117ff[_0x1d960d('0x7c7')]=_0x144475,_0x4117ff[_0x1d960d('0x22bf')]=_0x3627ba,_0x4117ff[_0x1d960d('0xf80')]=_0x48ea0c,_0x4117ff[_0x1d960d('0x27a5')]=_0x28ffd8,_0x4117ff[_0x1d960d('0x14b')]=_0x41ef90,_0x4117ff[_0x1d960d('0x2752')]=[],_0x86640f()[_0x1d960d('0xd54')](_0x4117ff['queues'],function(_0x4300bc){var _0x6bbef0=_0x1d960d;_0x4117ff[_0x6bbef0('0x2752')][_0x6bbef0('0x206c')](_0x4300bc['id']);}),_0x1b5655[_0x1d960d('0x1487')](_0x1d960d('0x83e'),_0x4117ff[_0x1d960d('0x1b74')]),_0x4117ff[_0x1d960d('0xa07')]=_0x1dd466(function(){},0x3e7),_0x1b5655['on']('userVoiceQueueRt:save',_0x4117ff['onSaveMember']),_0x1b5655['on'](_0x1d960d('0x21f4'),_0x4117ff[_0x1d960d('0x22bf')]),_0x1b5655['on']('userVoiceQueue:remove',_0x4117ff[_0x1d960d('0x27a5')]),_0x1b5655['on'](_0x1d960d('0x1595'),_0x4117ff['onLogin']);function _0x41ef90(){var _0x438240=_0x1d960d,_0x1e1aad=[];return _0x86640f()['forIn'](_0x4117ff[_0x438240('0xb7a')],function(_0x2e215f,_0x103f6b){var _0x2908f4=_0x438240;_0x2e215f[_0x2908f4('0x250c')]=0x0,_0x2e215f[_0x2908f4('0x29')]=0x0,_0x4117ff['queues'][_0x103f6b][_0x2908f4('0xcb5')]={},_0x1e1aad[_0x2908f4('0x206c')](_0x26fed2[_0x2908f4('0xb97')]['getMembers']({'id':_0x103f6b})[_0x2908f4('0x1376')]),_0x4117ff[_0x2908f4('0x245')][_0x103f6b]&&_0x86640f()[_0x2908f4('0xd0e')](_0x2e215f,_0x86640f()[_0x2908f4('0xc50')](_0x4117ff[_0x2908f4('0x245')][_0x103f6b],_0x482641));}),_0x5b3858[_0x438240('0x1ba7')](_0x1e1aad)[_0x438240('0x21ad')](function(_0x37df93){var _0x2e4f6f=_0x438240;for(var _0x13ea48=0x0;_0x13ea48<_0x37df93[_0x2e4f6f('0x577')];_0x13ea48+=0x1){for(var _0x526fe0=0x0;_0x526fe0<_0x37df93[_0x13ea48][_0x2e4f6f('0x1b33')][_0x2e4f6f('0x577')];_0x526fe0++){_0x37df93[_0x13ea48][_0x2e4f6f('0x1b33')][_0x526fe0][_0x2e4f6f('0x250c')]&&_0x4117ff[_0x2e4f6f('0xb7a')][_0x37df93[_0x13ea48][_0x2e4f6f('0x1b33')][_0x526fe0]['VoiceQueueId']][_0x2e4f6f('0x250c')]++,_0x4117ff[_0x2e4f6f('0xb7a')][_0x37df93[_0x13ea48]['rows'][_0x526fe0][_0x2e4f6f('0xe90')]][_0x2e4f6f('0x29')]++,_0x4117ff['queues'][_0x37df93[_0x13ea48][_0x2e4f6f('0x1b33')][_0x526fe0][_0x2e4f6f('0xe90')]][_0x2e4f6f('0xcb5')][_0x37df93[_0x13ea48][_0x2e4f6f('0x1b33')][_0x526fe0]['UserId']]=_0x37df93[_0x13ea48]['rows'][_0x526fe0][_0x2e4f6f('0xe90')];}}})[_0x438240('0x1c1d')](function(_0x5ed8e3){var _0x19919f=_0x438240;console[_0x19919f('0x2092')](_0x5ed8e3);});}function _0x325a1d(_0x4ca4d8){var _0x10d733=_0x1d960d;_0x4117ff[_0x10d733('0xb7a')][_0x4ca4d8['id']]&&(_0x86640f()['merge'](_0x4117ff['queues'][_0x4ca4d8['id']],_0x86640f()[_0x10d733('0xc50')](_0x4ca4d8,_0x482641)),_0x86640f()[_0x10d733('0x1c7')](_0x4ca4d8[_0x10d733('0x1310')])&&(_0x4117ff[_0x10d733('0xb7a')][_0x4ca4d8['id']][_0x10d733('0x1310')]=undefined));}function _0x144475(_0x3e594f){var _0x2f2265=_0x1d960d;_0x4117ff[_0x2f2265('0xb7a')][_0x3e594f[_0x2f2265('0x1f42')]]&&_0x4117ff[_0x2f2265('0xb7a')][_0x3e594f[_0x2f2265('0x1f42')]][_0x2f2265('0x29')]++;}function _0x3627ba(_0x3f50f4){var _0x29de25=_0x1d960d;console[_0x29de25('0x6fb')]('onPause',_0x3f50f4);if(_0x3f50f4[_0x29de25('0x1025')])_0x86640f()[_0x29de25('0xd54')](_0x4117ff[_0x29de25('0xb7a')],function(_0x597469){var _0x263a47=_0x29de25;_0x597469[_0x263a47('0xcb5')][_0x3f50f4['id']]&&(_0x597469[_0x263a47('0x250c')]+=0x1,console['log'](_0x263a47('0x1e26')));});else!_0x3f50f4[_0x29de25('0x1025')]&&_0x86640f()[_0x29de25('0xd54')](_0x4117ff[_0x29de25('0xb7a')],function(_0x113844){var _0x4ea9e9=_0x29de25;_0x113844[_0x4ea9e9('0xcb5')][_0x3f50f4['id']]&&(_0x113844[_0x4ea9e9('0x250c')]>0x0&&(_0x113844[_0x4ea9e9('0x250c')]-=0x1,console[_0x4ea9e9('0x6fb')](_0x4ea9e9('0xa8e'))));});}function _0x48ea0c(_0x327cf4){var _0x3c21f6=_0x1d960d;console[_0x3c21f6('0x6fb')](_0x3c21f6('0x1b6a'),_0x327cf4),_0x4117ff['queues'][_0x327cf4[_0x3c21f6('0xe90')]]&&(_0x4117ff['queues'][_0x327cf4[_0x3c21f6('0xe90')]][_0x3c21f6('0x29')]+=0x1,_0x4117ff['queues'][_0x327cf4[_0x3c21f6('0xe90')]][_0x3c21f6('0xcb5')][_0x327cf4['UserId']]=_0x327cf4['VoiceQueueId']);}function _0x28ffd8(_0x459235){var _0x43e14b=_0x1d960d;console['log'](_0x43e14b('0x27a5'),_0x459235),_0x4117ff['queues'][_0x459235[_0x43e14b('0xe90')]]&&_0x4117ff['queues'][_0x459235[_0x43e14b('0xe90')]][_0x43e14b('0x29')]>0x0&&(_0x4117ff['queues'][_0x459235[_0x43e14b('0xe90')]]['loggedInDb']-=0x1,delete _0x4117ff[_0x43e14b('0xb7a')][_0x459235[_0x43e14b('0xe90')]]['agents'][_0x459235[_0x43e14b('0x1dc6')]]);}var _0x402945=!![],_0x46961e=0x1;_0x2081fd[_0x1d960d('0x10e8')](_0x1d960d('0x1948'),function(_0x1161ed,_0xa65fe4){var _0x129360=_0x1d960d;_0x402945?_0xaaf800(function(){_0x402945=![];}):(!_0xa65fe4&&(_0x46961e=_0x4117ff['query'][_0x129360('0x2376')]),_0x1161ed!==_0xa65fe4&&(_0x4117ff[_0x129360('0x77')][_0x129360('0x2376')]=0x1),!_0x1161ed&&(_0x4117ff[_0x129360('0x77')][_0x129360('0x2376')]=_0x46961e),_0x4117ff[_0x129360('0x71c')]());});function _0x204151(_0x439b64){var _0x21838d=_0x1d960d;_0x4117ff[_0x21838d('0x205f')]=_0x439b64[_0x21838d('0x205f')],_0x4117ff[_0x21838d('0xb7a')]=_0x439b64?_0x86640f()[_0x21838d('0xcde')](_0x439b64['rows']?_0x439b64[_0x21838d('0x1b33')]:[],'id'):{};if(_0x439b64[_0x21838d('0x1b33')]){_0x4117ff[_0x21838d('0x2752')]=[];for(var _0x326573=0x0;_0x326573<_0x439b64[_0x21838d('0x1b33')][_0x21838d('0x577')];_0x326573++){_0x4117ff[_0x21838d('0x2752')][_0x21838d('0x206c')](_0x439b64[_0x21838d('0x1b33')][_0x326573]['id']);}}_0x41ef90();}function _0x3a2e80(){var _0x5d9195=_0x1d960d;_0x4117ff[_0x5d9195('0x77')][_0x5d9195('0x15a5')]=(_0x4117ff['query'][_0x5d9195('0x2376')]-0x1)*_0x4117ff[_0x5d9195('0x77')][_0x5d9195('0x1f4a')],_0x2a88f0[_0x5d9195('0x21de')]('admin')?_0x4117ff['promise']=_0x26fed2[_0x5d9195('0xb97')][_0x5d9195('0x595')](_0x4117ff['query'],_0x204151)[_0x5d9195('0x1376')]:(_0x4117ff[_0x5d9195('0x77')]['id']=_0x4117ff[_0x5d9195('0x758')]['id'],_0x4117ff[_0x5d9195('0x77')][_0x5d9195('0x26ad')]=_0x5d9195('0x1c8d'),_0x4117ff['promise']=_0x26fed2[_0x5d9195('0x758')]['getResources'](_0x4117ff['query'],_0x204151)[_0x5d9195('0x1376')]);}function _0x65f0f6(_0x1841e6,_0x23cfa1){var _0x458131=_0x1d960d;_0x351c69['show']({'controller':_0x458131('0x14fa'),'controllerAs':'vm','templateUrl':_0x500887,'parent':angular[_0x458131('0x1676')](_0x10983a[_0x458131('0x2452')]),'targetEvent':_0x1841e6,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x23cfa1,'queueCampaigns':_0x86640f()[_0x458131('0x1843')](_0x4117ff['queues']),'license':null,'setting':null,'crudPermissions':_0x4117ff[_0x458131('0x5ed')]}});}function _0x542bf3(_0x5d0e11,_0x4df828){var _0xdd25b7=_0x1d960d;_0x351c69[_0xdd25b7('0x853')]({'controller':_0xdd25b7('0x22c5'),'controllerAs':'vm','templateUrl':_0x25e9b0,'parent':angular[_0xdd25b7('0x1676')](_0x10983a[_0xdd25b7('0x2452')]),'targetEvent':_0x5d0e11,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x4df828}});}function _0x4c562b(_0x564777,_0x57009c){var _0x6227e1=_0x1d960d;_0x351c69[_0x6227e1('0x853')]({'controller':_0x6227e1('0x144a'),'controllerAs':'vm','templateUrl':_0x409ee0,'parent':angular[_0x6227e1('0x1676')](_0x10983a[_0x6227e1('0x2452')]),'targetEvent':_0x564777,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x57009c,'queueCampaigns':_0x4117ff[_0x6227e1('0xb7a')]?_0x4117ff[_0x6227e1('0xb7a')]['rows']:[],'realtime':!![],'crudPermissions':_0x4117ff[_0x6227e1('0x5ed')]}});}function _0xdfdbe(_0x51eab2){var _0x3aee25=_0x1d960d;return _0x26fed2[_0x3aee25('0xb97')][_0x3aee25('0x5ef')](_0x51eab2)[_0x3aee25('0x1376')][_0x3aee25('0x21ad')](function(){var _0x2c6269=_0x3aee25;_0x22e904[_0x2c6269('0xdb1')]({'title':_0x2c6269('0x12f9'),'msg':_0x51eab2[_0x2c6269('0x19fe')]?_0x51eab2[_0x2c6269('0x19fe')]+'\x20has\x20been\x20updated!':''});})[_0x3aee25('0x1c1d')](function(_0x574eaf){var _0x7ab838=_0x3aee25;_0x22e904[_0x7ab838('0x2092')]({'title':'Error\x20creating\x20queue!','msg':_0x574eaf['message']});});}_0x2081fd[_0x1d960d('0x1723')](_0x1d960d('0x1210'),function(){var _0x272204=_0x1d960d;_0x1b5655[_0x272204('0x16cc')](_0x272204('0x83e')),_0x4117ff[_0x272204('0xa07')]&&_0x1dd466[_0x272204('0x3b5')](_0x4117ff[_0x272204('0xa07')]),_0x1b5655[_0x272204('0x16cc')](_0x272204('0x69')),_0x1b5655[_0x272204('0x16cc')](_0x272204('0x21f4')),_0x1b5655['removeAllListeners'](_0x272204('0x3b0')),_0x1b5655[_0x272204('0x16cc')]('userVoiceQueue:save');});}const _0xd37f49=_0x484546;_0x272620['$inject']=[_0x3877e3('0x1850'),'$interval',_0x3877e3('0x1203')];function _0x272620(_0x40a1dd,_0x125d20,_0x16a2be){var _0x350f70=_0x3877e3,_0x3a6807=this;_0x3a6807[_0x350f70('0x1203')]=_0x16a2be,_0x3a6807['addMinutes']=_0x5a2896,_0x3a6807[_0x350f70('0xef0')]=_0x3ebb7e,_0x3a6807[_0x350f70('0x167')]=_0x19a035;function _0x5a2896(_0x8652ca,_0x4dcd27){var _0x36404f=_0x350f70;return _0x1088bc()(_0x8652ca)[_0x36404f('0x1842')]('m',_0x4dcd27)[_0x36404f('0x153')](_0x36404f('0x1e55'));}function _0x3ebb7e(_0xf57c35){var _0x58c441=_0x350f70;return _0x1088bc()(_0xf57c35)[_0x58c441('0x153')](_0x58c441('0x1e55'));}function _0x19a035(){var _0x291fe6=_0x350f70;_0x40a1dd[_0x291fe6('0x1c24')]();}}const _0x4d1aed=_0x272620;function _0x3377ca(){var _0x366e1a=_0x3877e3;return{'status':{'registered':_0x366e1a('0x23d9'),'unregistered':'red-300-fg\x20icon-close-circle','lagged':'red-300-fg\x20icon-close-circle','reachable':_0x366e1a('0x23d9'),'unreachable':_0x366e1a('0xf93'),'unknown':_0x366e1a('0x24e9')},'state':{'unknown':_0x366e1a('0x6b3'),'not_inuse':_0x366e1a('0x2468'),'inuse':_0x366e1a('0x270d'),'busy':_0x366e1a('0x20c'),'invalid':_0x366e1a('0x6b3'),'unavailable':_0x366e1a('0x6b3'),'ringing':_0x366e1a('0x540'),'ringinuse':_0x366e1a('0x540'),'onhold':'blue-300-fg\x20icon-phone-paused'},'channelStatus':{'ring':_0x366e1a('0x540'),'up':_0x366e1a('0x1dcd'),'hangup':'red-300-fg\x20icon-phone-hangup'},'channelStatusOut':{'ring':_0x366e1a('0x229b'),'up':_0x366e1a('0x1dcd'),'hangup':_0x366e1a('0xe0f')}};}const _0x4dcd33=_0x3377ca;_0x29c72b['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x25d8')];function _0x29c72b(_0x7d8489,_0x4f7fd4,_0x15e6d8){var _0x91d3a=_0x3877e3,_0x270581=this;_0x15e6d8[_0x91d3a('0x8d8')](),_0x15e6d8[_0x91d3a('0x663')](),_0x270581[_0x91d3a('0x302')]=0x0;switch(_0x4f7fd4[_0x91d3a('0x1ccb')][_0x91d3a('0x19fe')]){case _0x91d3a('0x273'):_0x270581[_0x91d3a('0x302')]=0x0;break;case _0x91d3a('0x864'):_0x270581[_0x91d3a('0x302')]=0x1;break;case _0x91d3a('0xa5f'):_0x270581['selectedTab']=0x2;break;case _0x91d3a('0xb50'):_0x270581['selectedTab']=0x3;break;case _0x91d3a('0x12b9'):_0x270581[_0x91d3a('0x302')]=0x4;break;case'app.motiondialer.realtime.ivr_campaigns':_0x270581['selectedTab']=0x5;break;default:_0x270581[_0x91d3a('0x302')]=0x0,_0x4f7fd4['go'](_0x91d3a('0x273'));}_0x7d8489[_0x91d3a('0x10e8')]('vm.selectedTab',function(_0x4b6479,_0x17e73b){var _0x305b3b=_0x91d3a;if(_0x4b6479!==_0x17e73b)switch(_0x4b6479){case 0x0:_0x4f7fd4['go'](_0x305b3b('0x273'));break;case 0x1:_0x4f7fd4['go']('app.motiondialer.realtime.queues');break;case 0x2:_0x4f7fd4['go'](_0x305b3b('0xa5f'));break;case 0x3:_0x4f7fd4['go'](_0x305b3b('0xb50'));break;case 0x4:_0x4f7fd4['go'](_0x305b3b('0x12b9'));break;case 0x5:_0x4f7fd4['go'](_0x305b3b('0x1476'));break;default:_0x4f7fd4['go']('app.motiondialer.realtime.agents');}});}const _0x4c26ff=_0x29c72b;_0x435db4['$inject']=[_0x3877e3('0xd2c')];function _0x435db4(_0x3eafb2){var _0x1272cf=_0x3877e3;_0x3eafb2[_0x1272cf('0x27e')](_0x1272cf('0xd52'),{'url':_0x1272cf('0x1b34'),'views':{'content@app':{'templateUrl':_0x64c94,'controller':_0x1272cf('0x15e6')}},'resolve':{'userProfile':[_0x1272cf('0x354'),_0x1272cf('0x15bc'),function _0x45c8df(_0x36ee0e,_0x4acd03){var _0x1547bf=_0x1272cf;return _0x4acd03[_0x1547bf('0x21de')]('admin')?null:_0x36ee0e[_0x1547bf('0x8ac')]('userProfile@get',{'fields':_0x1547bf('0x1a00'),'id':_0x4acd03[_0x1547bf('0x15ed')]()[_0x1547bf('0x1618')]});}],'userProfileSection':[_0x1272cf('0x354'),_0x1272cf('0x15bc'),function _0x7941f3(_0x5ba4f7,_0x288eaa){var _0x5972e5=_0x1272cf;return _0x288eaa[_0x5972e5('0x21de')]('admin')?null:_0x5ba4f7[_0x5972e5('0x8ac')](_0x5972e5('0x222f'),{'fields':_0x5972e5('0x1852'),'userProfileId':_0x288eaa['getCurrentUser']()[_0x5972e5('0x1618')],'sectionId':0x5e6});}]},'authenticate':!![],'permissionId':0x5e6})[_0x1272cf('0x27e')]('app.motiondialer.realtime.agents',{'url':_0x1272cf('0x69c'),'controller':_0x1272cf('0xdfe'),'templateUrl':_0xf80a77,'resolve':{'pauses':[_0x1272cf('0x354'),function _0x292377(_0x2e422d){var _0x55deee=_0x1272cf;return _0x2e422d[_0x55deee('0x8ac')](_0x55deee('0x12e0'),{'nolimit':!![]});}],'agents':[_0x1272cf('0x354'),_0x1272cf('0x15bc'),function _0x553573(_0x389dd4,_0x12b6fd){var _0x1c0749=_0x1272cf;return _0x12b6fd['hasRole'](_0x1c0749('0x1bd8'))?_0x389dd4['resolve'](_0x1c0749('0x1913'),{'fields':_0x1c0749('0x856'),'role':_0x1c0749('0x2402'),'sort':'fullname','nolimit':!![]}):_0x389dd4[_0x1c0749('0x8ac')]('userProfile@getResources',{'id':_0x12b6fd[_0x1c0749('0x15ed')]()[_0x1c0749('0x1618')],'section':_0x1c0749('0xfed'),'fields':_0x1c0749('0x856'),'role':_0x1c0749('0x2402'),'sort':_0x1c0749('0x20f5'),'nolimit':!![]});}],'userProfile':['apiResolver','Auth',function _0x4ffd53(_0x23eebc,_0x431e98){var _0x5cb0a2=_0x1272cf;return _0x431e98[_0x5cb0a2('0x21de')](_0x5cb0a2('0x1bd8'))?null:_0x23eebc[_0x5cb0a2('0x8ac')]('userProfile@get',{'fields':_0x5cb0a2('0x1a00'),'id':_0x431e98[_0x5cb0a2('0x15ed')]()[_0x5cb0a2('0x1618')]});}],'userProfileSection':[_0x1272cf('0x354'),_0x1272cf('0x15bc'),function _0x25a51b(_0x2cf62f,_0x5c8a2c){var _0x2a31eb=_0x1272cf;return _0x5c8a2c[_0x2a31eb('0x21de')](_0x2a31eb('0x1bd8'))?null:_0x2cf62f[_0x2a31eb('0x8ac')](_0x2a31eb('0x222f'),{'fields':_0x2a31eb('0x1852'),'userProfileId':_0x5c8a2c[_0x2a31eb('0x15ed')]()[_0x2a31eb('0x1618')],'sectionId':0xca});}],'rpcAgents':[_0x1272cf('0x354'),function _0x10d2be(_0x2e9b77){var _0x1fc7dd=_0x1272cf;return _0x2e9b77[_0x1fc7dd('0x8ac')](_0x1fc7dd('0x2685'));}]},'authenticate':!![],'permissionId':0x5e6})['state'](_0x1272cf('0x864'),{'url':'/queues','controller':_0x1272cf('0x1a0'),'templateUrl':_0x1d41f9,'resolve':{'queues':[_0x1272cf('0x354'),_0x1272cf('0x15bc'),function _0x10f1e8(_0x170912,_0x2e8c0e){var _0x3c7816=_0x1272cf;return _0x2e8c0e['hasRole'](_0x3c7816('0x1bd8'))?_0x170912[_0x3c7816('0x8ac')](_0x3c7816('0x10bb'),{'type':_0x3c7816('0x2300'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x170912['resolve'](_0x3c7816('0x52f'),{'id':_0x2e8c0e[_0x3c7816('0x15ed')]()[_0x3c7816('0x1618')],'section':'QueueCampaigns','channel':_0x3c7816('0x8ed'),'type':_0x3c7816('0x2300'),'sort':_0x3c7816('0x33'),'limit':0xa,'page':0x1});}],'userProfile':[_0x1272cf('0x354'),_0x1272cf('0x15bc'),function _0x31cd76(_0x3b4e56,_0x4f0bc3){var _0x4b73e3=_0x1272cf;return _0x4f0bc3[_0x4b73e3('0x21de')](_0x4b73e3('0x1bd8'))?null:_0x3b4e56['resolve'](_0x4b73e3('0x1e1d'),{'fields':_0x4b73e3('0x1a00'),'id':_0x4f0bc3[_0x4b73e3('0x15ed')]()[_0x4b73e3('0x1618')]});}],'userProfileSection':[_0x1272cf('0x354'),'Auth',function _0x4f392e(_0x3e9166,_0x2b3267){var _0x274656=_0x1272cf;return _0x2b3267[_0x274656('0x21de')](_0x274656('0x1bd8'))?null:_0x3e9166[_0x274656('0x8ac')](_0x274656('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2b3267['getCurrentUser']()[_0x274656('0x1618')],'sectionId':0x5dd});}],'rpcQueues':[_0x1272cf('0x354'),function _0x19a124(_0x4aefd4){var _0x2334d2=_0x1272cf;return _0x4aefd4[_0x2334d2('0x8ac')](_0x2334d2('0xa73'));}]},'authenticate':!![],'permissionId':0x5e6})[_0x1272cf('0x27e')]('app.motiondialer.realtime.queue_calls',{'url':_0x1272cf('0x1ef'),'controller':_0x1272cf('0x2030'),'templateUrl':_0x597682,'resolve':{'agents':[_0x1272cf('0x354'),_0x1272cf('0x15bc'),function _0x33f2d2(_0x2555ae,_0x3630dc){var _0x198454=_0x1272cf;return _0x3630dc[_0x198454('0x21de')](_0x198454('0x1bd8'))?_0x2555ae[_0x198454('0x8ac')](_0x198454('0x1913'),{'fields':_0x198454('0x15a6'),'role':_0x198454('0x2402'),'nolimit':!![]}):_0x2555ae[_0x198454('0x8ac')](_0x198454('0x52f'),{'id':_0x3630dc[_0x198454('0x15ed')]()['userProfileId'],'section':_0x198454('0xfed'),'fields':_0x198454('0x15a6'),'role':'agent','nolimit':!![]});}],'queues':['apiResolver',_0x1272cf('0x15bc'),function _0x180289(_0x4488d9,_0x500e8c){var _0x9a33ee=_0x1272cf;return _0x500e8c[_0x9a33ee('0x21de')](_0x9a33ee('0x1bd8'))?_0x4488d9[_0x9a33ee('0x8ac')]('voiceQueue@get',{'type':_0x9a33ee('0x2300'),'sort':_0x9a33ee('0x33'),'nolimit':!![]}):_0x4488d9[_0x9a33ee('0x8ac')](_0x9a33ee('0x52f'),{'id':_0x500e8c[_0x9a33ee('0x15ed')]()[_0x9a33ee('0x1618')],'section':_0x9a33ee('0x1c8d'),'channel':_0x9a33ee('0x8ed'),'type':'outbound','sort':_0x9a33ee('0x33'),'nolimit':!![]});}],'userProfile':[_0x1272cf('0x354'),_0x1272cf('0x15bc'),function _0x19a8c2(_0x38aa88,_0x1b803b){var _0x23ddcd=_0x1272cf;return _0x1b803b[_0x23ddcd('0x21de')](_0x23ddcd('0x1bd8'))?null:_0x38aa88[_0x23ddcd('0x8ac')]('userProfile@get',{'fields':_0x23ddcd('0x1a00'),'id':_0x1b803b[_0x23ddcd('0x15ed')]()[_0x23ddcd('0x1618')]});}],'userProfileSection':[_0x1272cf('0x354'),_0x1272cf('0x15bc'),function _0x277007(_0x74bf84,_0x5d02f9){var _0x256072=_0x1272cf;return _0x5d02f9[_0x256072('0x21de')]('admin')?null:_0x74bf84['resolve'](_0x256072('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5d02f9['getCurrentUser']()[_0x256072('0x1618')],'sectionId':0x5dd});}],'rpcVoiceQueuesChannels':['apiResolver',function _0x4edba0(_0x2b7e58){var _0x4905cf=_0x1272cf;return _0x2b7e58[_0x4905cf('0x8ac')](_0x4905cf('0x1e35'));}]},'authenticate':!![],'permissionId':0x5e6})[_0x1272cf('0x27e')](_0x1272cf('0xb50'),{'url':_0x1272cf('0x222a'),'controller':_0x1272cf('0x2451'),'templateUrl':_0x3de87a,'resolve':{'agents':[_0x1272cf('0x354'),_0x1272cf('0x15bc'),function _0x2399c6(_0x4d3115,_0x2b70ce){var _0x5907f4=_0x1272cf;return _0x2b70ce[_0x5907f4('0x21de')](_0x5907f4('0x1bd8'))?_0x4d3115[_0x5907f4('0x8ac')]('user@get',{'fields':'id,name,role,context','role':_0x5907f4('0x2402'),'nolimit':!![]}):_0x4d3115['resolve'](_0x5907f4('0x52f'),{'id':_0x2b70ce[_0x5907f4('0x15ed')]()['userProfileId'],'section':_0x5907f4('0xfed'),'fields':_0x5907f4('0x15a6'),'role':_0x5907f4('0x2402'),'nolimit':!![]});}],'queues':['apiResolver',_0x1272cf('0x15bc'),function _0x1d288f(_0x34ae29,_0x1f69ea){var _0x49de32=_0x1272cf;return _0x1f69ea[_0x49de32('0x21de')](_0x49de32('0x1bd8'))?_0x34ae29[_0x49de32('0x8ac')]('voiceQueue@get',{'type':_0x49de32('0x2300'),'sort':_0x49de32('0x33'),'nolimit':!![]}):_0x34ae29[_0x49de32('0x8ac')](_0x49de32('0x52f'),{'id':_0x1f69ea[_0x49de32('0x15ed')]()[_0x49de32('0x1618')],'section':_0x49de32('0x1c8d'),'channel':'voice','type':_0x49de32('0x2300'),'sort':'-updatedAt','nolimit':!![]});}],'dispositions':[_0x1272cf('0x354'),'Auth',function _0x5438f9(_0x5a89c7,_0x432a21){var _0x5a4c66=_0x1272cf;return _0x432a21[_0x5a4c66('0x21de')]('admin')?_0x5a89c7[_0x5a4c66('0x8ac')](_0x5a4c66('0x13a3'),{'fields':_0x5a4c66('0x521'),'sort':_0x5a4c66('0x33'),'MailAccountId':'null','FaxAccountId':_0x5a4c66('0x27a'),'SmsAccountId':_0x5a4c66('0x27a'),'WhatsappAccountId':_0x5a4c66('0x27a'),'OpenchannelAccountId':_0x5a4c66('0x27a'),'ChatWebsiteId':_0x5a4c66('0x27a'),'ListId':_0x5a4c66('0x27a'),'nolimit':!![]}):_0x5a89c7[_0x5a4c66('0x8ac')](_0x5a4c66('0x52f'),{'id':_0x432a21['getCurrentUser']()[_0x5a4c66('0x1618')],'section':_0x5a4c66('0x185'),'fields':_0x5a4c66('0x793'),'sort':_0x5a4c66('0x33'),'MailAccountId':_0x5a4c66('0x27a'),'FaxAccountId':_0x5a4c66('0x27a'),'SmsAccountId':_0x5a4c66('0x27a'),'WhatsappAccountId':_0x5a4c66('0x27a'),'OpenchannelAccountId':_0x5a4c66('0x27a'),'ChatWebsiteId':'null','ListId':'null','nolimit':!![]});}],'userProfile':[_0x1272cf('0x354'),_0x1272cf('0x15bc'),function _0xe3f63b(_0xf4711e,_0x31105a){var _0x13f38e=_0x1272cf;return _0x31105a['hasRole']('admin')?null:_0xf4711e['resolve'](_0x13f38e('0x1e1d'),{'fields':_0x13f38e('0x1a00'),'id':_0x31105a[_0x13f38e('0x15ed')]()[_0x13f38e('0x1618')]});}],'userProfileSection':[_0x1272cf('0x354'),'Auth',function _0x44a0a7(_0x2c2728,_0x37a028){var _0x4177dc=_0x1272cf;return _0x37a028[_0x4177dc('0x21de')](_0x4177dc('0x1bd8'))?null:_0x2c2728[_0x4177dc('0x8ac')](_0x4177dc('0x222f'),{'fields':_0x4177dc('0x1852'),'userProfileId':_0x37a028['getCurrentUser']()[_0x4177dc('0x1618')],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5e6})[_0x1272cf('0x27e')]('app.motiondialer.realtime.queue_params',{'url':_0x1272cf('0x1db1'),'controller':_0x1272cf('0x1338'),'templateUrl':_0x11f260,'resolve':{'queues':[_0x1272cf('0x354'),'Auth',function _0x5bb5c5(_0x2e62f9,_0x14789a){var _0x3de382=_0x1272cf;return _0x14789a[_0x3de382('0x21de')](_0x3de382('0x1bd8'))?_0x2e62f9[_0x3de382('0x8ac')](_0x3de382('0x10bb'),{'type':_0x3de382('0x2300'),'fields':'id,name','sort':_0x3de382('0x33'),'limit':0xa,'offset':0x0}):_0x2e62f9[_0x3de382('0x8ac')]('userProfile@getResources',{'id':_0x14789a[_0x3de382('0x15ed')]()[_0x3de382('0x1618')],'section':_0x3de382('0x1c8d'),'channel':_0x3de382('0x8ed'),'type':_0x3de382('0x2300'),'sort':'-updatedAt','nolimit':!![]});}],'userProfile':['apiResolver',_0x1272cf('0x15bc'),function _0x58afd0(_0x77a283,_0x373d26){var _0x1d45fb=_0x1272cf;return _0x373d26['hasRole'](_0x1d45fb('0x1bd8'))?null:_0x77a283[_0x1d45fb('0x8ac')](_0x1d45fb('0x1e1d'),{'fields':_0x1d45fb('0x1a00'),'id':_0x373d26[_0x1d45fb('0x15ed')]()[_0x1d45fb('0x1618')]});}],'userProfileSection':[_0x1272cf('0x354'),_0x1272cf('0x15bc'),function _0xfe3a73(_0x3b3deb,_0x4bbc4c){var _0x46581f=_0x1272cf;return _0x4bbc4c[_0x46581f('0x21de')]('admin')?null:_0x3b3deb[_0x46581f('0x8ac')](_0x46581f('0x222f'),{'fields':_0x46581f('0x1852'),'userProfileId':_0x4bbc4c['getCurrentUser']()[_0x46581f('0x1618')],'sectionId':0x5dd});}],'rpcQueues':[_0x1272cf('0x354'),function _0x5c802b(_0x27ece1){var _0x507aa4=_0x1272cf;return _0x27ece1[_0x507aa4('0x8ac')](_0x507aa4('0xa73'));}]},'authenticate':!![],'permissionId':0x5e6})[_0x1272cf('0x27e')](_0x1272cf('0x1476'),{'url':_0x1272cf('0x20ce'),'controller':'IvrCampaignsMotionDialerRealtimeController\x20as\x20vm','templateUrl':_0x42c44b,'resolve':{'campaigns':[_0x1272cf('0x354'),_0x1272cf('0x15bc'),function _0x51e890(_0x4cc075,_0x43f3f4){var _0x4e2b2f=_0x1272cf;return _0x43f3f4[_0x4e2b2f('0x21de')](_0x4e2b2f('0x1bd8'))?_0x4cc075[_0x4e2b2f('0x8ac')](_0x4e2b2f('0x47d'),{'sort':_0x4e2b2f('0x33'),'limit':0xa,'offset':0x0}):_0x4cc075['resolve']('userProfile@getResources',{'id':_0x43f3f4['getCurrentUser']()[_0x4e2b2f('0x1618')],'section':_0x4e2b2f('0xc96'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x1272cf('0x354'),_0x1272cf('0x15bc'),function _0x1ac16c(_0x426f8b,_0x346794){var _0x78e3a6=_0x1272cf;return _0x346794['hasRole'](_0x78e3a6('0x1bd8'))?null:_0x426f8b[_0x78e3a6('0x8ac')]('userProfile@get',{'fields':_0x78e3a6('0x1a00'),'id':_0x346794[_0x78e3a6('0x15ed')]()[_0x78e3a6('0x1618')]});}],'userProfileSection':[_0x1272cf('0x354'),_0x1272cf('0x15bc'),function _0x5e04cf(_0x59aa8f,_0x4b603c){var _0x4bd10c=_0x1272cf;return _0x4b603c['hasRole'](_0x4bd10c('0x1bd8'))?null:_0x59aa8f['resolve'](_0x4bd10c('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x4b603c[_0x4bd10c('0x15ed')]()[_0x4bd10c('0x1618')],'sectionId':0x5de});}],'rpcCampaigns':['apiResolver',function _0x4d14b2(_0x118272){var _0x271ebb=_0x1272cf;return _0x118272[_0x271ebb('0x8ac')](_0x271ebb('0x62a'));}]},'authenticate':!![],'permissionId':0x5e6});}angular[_0x3877e3('0x20d5')](_0x3877e3('0xd52'),[])[_0x3877e3('0x13')](_0x435db4)['controller']('AbandonedCallsMotionDialerRealtimeController',_0x4db7bd)[_0x3877e3('0x1d5a')](_0x3877e3('0xe5e'),_0x811ec3)['controller']('IvrCampaignsMotionDialerRealtimeController',_0x166a33)[_0x3877e3('0x1d5a')](_0x3877e3('0x3f8'),_0x532102)[_0x3877e3('0x1d5a')](_0x3877e3('0x1585'),_0x5a743c)['controller'](_0x3877e3('0x21e6'),_0xd37f49)[_0x3877e3('0x1d5a')](_0x3877e3('0x22c5'),_0x4d1aed)['factory']('helperClasses',_0x4dcd33)[_0x3877e3('0x1d5a')](_0x3877e3('0xe71'),_0x4c26ff);const _0x5b6731=_0x398308['p']+'src/js/modules/main/apps/motiondialer/views/queueCampaigns/queueCampaigns.html/queueCampaigns-[chunkhash].html',_0x36a12b=_0x398308['p']+'src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/view.html/view-[chunkhash].html',_0x116c4f=_0x398308['p']+'src/js/modules/main/apps/motiondialer/views/ivrCampaigns/ivrCampaigns.html/ivrCampaigns-[chunkhash].html',_0x56954e=_0x398308['p']+'src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/view.html/view-[chunkhash].html';_0x544206[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),'ivrCampaigns','ivrCampaign',_0x3877e3('0xccd'),'Auth',_0x3877e3('0x2ff'),'setting',_0x3877e3('0x5ed')];function _0x544206(_0x1181b6,_0x57c912,_0x3d25bc,_0x5a9567,_0x197db1,_0x34eb1b,_0x5b5698,_0x217f1b,_0x270353,_0x300c6a,_0x199488,_0x198207,_0x330692,_0xdb2346){var _0x2b79df=_0x3877e3,_0x589b83=this;_0x589b83[_0x2b79df('0x123f')]=_0x199488[_0x2b79df('0x15ed')](),_0x589b83[_0x2b79df('0x1a69')]=[],_0x589b83[_0x2b79df('0x21e')]=_0x330692,_0x589b83['license']=_0x198207,_0x589b83[_0x2b79df('0x5ed')]=_0xdb2346,_0x589b83[_0x2b79df('0x126a')]={},_0x589b83[_0x2b79df('0x1432')]=_0x589b83[_0x2b79df('0x21e')]&&_0x589b83[_0x2b79df('0x21e')][_0x2b79df('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x589b83[_0x2b79df('0x4b4')]=_0x2b79df('0x1aa0'),_0x589b83[_0x2b79df('0x1c21')]=angular[_0x2b79df('0xd75')](_0x270353),_0x589b83['ivrCampaigns']=_0x217f1b,_0x589b83[_0x2b79df('0x22b6')]=![];!_0x589b83['ivrCampaign']&&(_0x589b83[_0x2b79df('0x1c21')]={'active':!![],'type':_0x2b79df('0x9d8'),'dialCheckDuplicateType':_0x2b79df('0x869'),'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':'ASC','dialGlobalInterval':_0x2b79df('0x22e6'),'dialAMDInitialSilence':0x9c4,'dialAMDGreeting':0x5dc,'dialAMDAfterGreetingSilence':0x320,'dialAMDTotalAnalysisTime':0x1388,'dialAMDMinWordLength':0x64,'dialAMDBetweenWordsSilence':0x32,'dialAMDMaximumNumberOfWords':0x3,'dialAMDSilenceThreshold':0x100,'dialAMDMaximumWordLength':0x1388},_0x589b83[_0x2b79df('0x4b4')]=_0x2b79df('0x13da'),_0x589b83[_0x2b79df('0x22b6')]=!![]);_0x589b83[_0x2b79df('0x26fa')]=_0x40d364,_0x589b83[_0x2b79df('0x807')]=_0x279ce6,_0x589b83[_0x2b79df('0x1212')]=_0x7a0882,_0x589b83['getDateFromString']=_0x1c3de9,_0x589b83[_0x2b79df('0x167')]=_0x4fac7d,_0x199488[_0x2b79df('0x21de')](_0x2b79df('0x1bd8'))?_0x300c6a[_0x2b79df('0x1280')]['get']({'fields':_0x2b79df('0x1aa8'),'sort':_0x2b79df('0x19fe'),'table':'true'})['$promise']['then'](function(_0x1f5437){var _0x2b3191=_0x2b79df;_0x589b83[_0x2b3191('0x1593')]=_0x1f5437[_0x2b3191('0x1b33')]||[];})[_0x2b79df('0x1c1d')](function(_0x47c741){var _0x2f1a91=_0x2b79df;_0x5b5698['error']({'title':_0x47c741[_0x2f1a91('0x209')]?_0x2f1a91('0x22d')+_0x47c741['status']+_0x2f1a91('0xa99')+_0x47c741[_0x2f1a91('0x1808')]:_0x2f1a91('0x9ee'),'msg':_0x47c741['data']?JSON[_0x2f1a91('0x25e')](_0x47c741[_0x2f1a91('0x11c2')]):_0x47c741[_0x2f1a91('0x174f')]()});}):_0x300c6a[_0x2b79df('0x1280')][_0x2b79df('0x595')]({'fields':'id,name','sort':'name','table':_0x2b79df('0x19bd')})[_0x2b79df('0x1376')]['then'](function(_0x51942d){var _0x395648=_0x2b79df;_0x589b83[_0x395648('0x1593')]=_0x51942d[_0x395648('0x1b33')]||[];})[_0x2b79df('0x21ad')](function(){var _0x505a39=_0x2b79df;return _0x300c6a[_0x505a39('0xab4')][_0x505a39('0x595')]({'userProfileId':_0x589b83[_0x505a39('0x123f')][_0x505a39('0x1618')],'sectionId':0x3f3})[_0x505a39('0x1376')];})[_0x2b79df('0x21ad')](function(_0x38e32c){var _0xdca854=_0x2b79df,_0x254186=_0x38e32c&&_0x38e32c['rows']?_0x38e32c[_0xdca854('0x1b33')][0x0]:null;if(!_0x254186)_0x589b83[_0xdca854('0x1593')]=[];else{if(!_0x254186[_0xdca854('0x80c')])return _0x300c6a[_0xdca854('0x185e')][_0xdca854('0x595')]({'sectionId':_0x254186['id']})[_0xdca854('0x1376')][_0xdca854('0x21ad')](function(_0x22c4b0){var _0x17c93d=_0xdca854,_0x12fb0d=_0x86640f()[_0x17c93d('0x26c3')](_0x22c4b0[_0x17c93d('0x1b33')],function(_0x40bd88){var _0x2a58bd=_0x17c93d;return _0x86640f()[_0x2a58bd('0x1d2e')](_0x589b83[_0x2a58bd('0x1593')],{'id':_0x40bd88[_0x2a58bd('0x675')]});});_0x589b83[_0x17c93d('0x1593')][_0x17c93d('0x1a52')](function(_0x3076c1){var _0x132f1b=_0x17c93d;!_0x86640f()[_0x132f1b('0x2664')](_0x12fb0d,['id',_0x3076c1['id']])&&(_0x3076c1[_0x132f1b('0xba')]=![]),_0x12fb0d[_0x132f1b('0x206c')](_0x3076c1);}),_0x589b83[_0x17c93d('0x1593')]=_0x12fb0d;});}})['catch'](function(_0x226d28){var _0x4401de=_0x2b79df;_0x5b5698[_0x4401de('0x2092')]({'title':_0x226d28[_0x4401de('0x209')]?_0x4401de('0x22d')+_0x226d28[_0x4401de('0x209')]+_0x4401de('0xa99')+_0x226d28[_0x4401de('0x1808')]:_0x4401de('0x3ab'),'msg':_0x226d28[_0x4401de('0x11c2')]?JSON['stringify'](_0x226d28['data']):_0x226d28[_0x4401de('0x174f')]()});}),_0x199488[_0x2b79df('0x21de')]('admin')?_0x300c6a[_0x2b79df('0x1a41')][_0x2b79df('0x595')]({'fields':_0x2b79df('0x1aa8'),'sort':'name'})[_0x2b79df('0x1376')][_0x2b79df('0x21ad')](function(_0x485cf5){var _0x5d4da8=_0x2b79df;_0x589b83[_0x5d4da8('0xc0f')]=_0x485cf5[_0x5d4da8('0x1b33')]||[];})['catch'](function(_0x327f8c){var _0x581e8a=_0x2b79df;_0x5b5698[_0x581e8a('0x2092')]({'title':_0x327f8c[_0x581e8a('0x209')]?_0x581e8a('0x22d')+_0x327f8c[_0x581e8a('0x209')]+_0x581e8a('0xa99')+_0x327f8c[_0x581e8a('0x1808')]:'SYSTEM:GET_PROJECTS','msg':_0x327f8c[_0x581e8a('0x11c2')]?JSON[_0x581e8a('0x25e')](_0x327f8c['data']):_0x327f8c['toString']()});}):_0x300c6a[_0x2b79df('0x1a41')][_0x2b79df('0x595')]({'fields':_0x2b79df('0x1aa8'),'sort':'name'})[_0x2b79df('0x1376')][_0x2b79df('0x21ad')](function(_0x6f7740){var _0x1a4b7c=_0x2b79df;_0x589b83[_0x1a4b7c('0xc0f')]=_0x6f7740[_0x1a4b7c('0x1b33')]||[];})[_0x2b79df('0x21ad')](function(){var _0x10e557=_0x2b79df;return _0x300c6a[_0x10e557('0xab4')][_0x10e557('0x595')]({'userProfileId':_0x589b83[_0x10e557('0x123f')][_0x10e557('0x1618')],'sectionId':0x44f})[_0x10e557('0x1376')];})[_0x2b79df('0x21ad')](function(_0xf73462){var _0x3f7fac=_0x2b79df,_0x2a070a=_0xf73462&&_0xf73462['rows']?_0xf73462[_0x3f7fac('0x1b33')][0x0]:null;if(!_0x2a070a){var _0x7b4b8=[],_0x1b8852=null;_0x589b83[_0x3f7fac('0x1c21')]&&(_0x1b8852=_0x86640f()['find'](_0x589b83[_0x3f7fac('0xc0f')],{'id':Number(_0x589b83[_0x3f7fac('0x1c21')][_0x3f7fac('0xdc8')])}));for(var _0x346bdf=0x0;_0x346bdf<_0x589b83[_0x3f7fac('0xc0f')][_0x3f7fac('0x577')];_0x346bdf++){_0x1b8852&&_0x589b83[_0x3f7fac('0xc0f')][_0x346bdf]['id']===_0x1b8852['id']&&(_0x589b83[_0x3f7fac('0xc0f')][_0x346bdf][_0x3f7fac('0xba')]=![],_0x7b4b8[_0x3f7fac('0x206c')](_0x589b83[_0x3f7fac('0xc0f')][_0x346bdf]));}_0x589b83['projects']=_0x7b4b8;}else{if(!_0x2a070a['autoAssociation'])return _0x300c6a[_0x3f7fac('0x185e')]['get']({'sectionId':_0x2a070a['id']})['$promise'][_0x3f7fac('0x21ad')](function(_0xa2489a){var _0x1659d4=_0x3f7fac,_0x477dfa=_0x86640f()['map'](_0xa2489a['rows'],function(_0x337f95){var _0x4bf561=a0_0x2e7f;return _0x86640f()[_0x4bf561('0x1d2e')](_0x589b83[_0x4bf561('0xc0f')],{'id':_0x337f95[_0x4bf561('0x675')]});}),_0x3a9ea3=null;_0x589b83[_0x1659d4('0x1c21')]&&(_0x3a9ea3=_0x86640f()[_0x1659d4('0x1d2e')](_0x589b83[_0x1659d4('0xc0f')],{'id':Number(_0x589b83[_0x1659d4('0x1c21')][_0x1659d4('0xdc8')])}));if(_0x3a9ea3&&!_0x86640f()[_0x1659d4('0x2664')](_0x477dfa,['id',_0x3a9ea3['id']])){var _0x59b356=_0x86640f()[_0x1659d4('0x1d2e')](_0x589b83[_0x1659d4('0xc0f')],{'id':_0x3a9ea3['id']});_0x59b356[_0x1659d4('0xba')]=![],_0x477dfa['push'](_0x59b356);}_0x589b83[_0x1659d4('0xc0f')]=_0x477dfa;});}})[_0x2b79df('0x1c1d')](function(_0x1a6ca5){var _0x3862e9=_0x2b79df;_0x5b5698[_0x3862e9('0x2092')]({'title':_0x1a6ca5['status']?_0x3862e9('0x22d')+_0x1a6ca5['status']+_0x3862e9('0xa99')+_0x1a6ca5[_0x3862e9('0x1808')]:'SYSTEM:GETprojects','msg':_0x1a6ca5[_0x3862e9('0x11c2')]?JSON['stringify'](_0x1a6ca5[_0x3862e9('0x11c2')]):_0x1a6ca5[_0x3862e9('0x174f')]()});}),_0x199488[_0x2b79df('0x21de')]('admin')?_0x300c6a[_0x2b79df('0xa07')][_0x2b79df('0x595')]({'fields':_0x2b79df('0x1aa8'),'sort':_0x2b79df('0x19fe'),'IntervalId':_0x2b79df('0x27a')})[_0x2b79df('0x1376')]['then'](function(_0x33643b){var _0x161ef3=_0x2b79df;_0x589b83[_0x161ef3('0xa07')]=_0x33643b[_0x161ef3('0x1b33')]||[];})[_0x2b79df('0x1c1d')](function(_0x49af2a){var _0x1f5ae4=_0x2b79df;_0x5b5698[_0x1f5ae4('0x2092')]({'title':_0x49af2a['status']?'API:'+_0x49af2a[_0x1f5ae4('0x209')]+_0x1f5ae4('0xa99')+_0x49af2a['statusText']:_0x1f5ae4('0x1c18'),'msg':_0x49af2a['data']?JSON[_0x1f5ae4('0x25e')](_0x49af2a[_0x1f5ae4('0x11c2')]):_0x49af2a[_0x1f5ae4('0x174f')]()});}):_0x300c6a['interval']['get']({'fields':'id,name','sort':_0x2b79df('0x19fe'),'IntervalId':_0x2b79df('0x27a')})['$promise'][_0x2b79df('0x21ad')](function(_0x17350b){var _0x11afb2=_0x2b79df;_0x589b83[_0x11afb2('0xa07')]=_0x17350b[_0x11afb2('0x1b33')]||[];})[_0x2b79df('0x21ad')](function(){var _0x5b9de8=_0x2b79df;return _0x300c6a[_0x5b9de8('0xab4')][_0x5b9de8('0x595')]({'userProfileId':_0x589b83[_0x5b9de8('0x123f')][_0x5b9de8('0x1618')],'sectionId':0x3ec})['$promise'];})['then'](function(_0x51efde){var _0xa383bf=_0x2b79df,_0x2aa703=_0x51efde&&_0x51efde[_0xa383bf('0x1b33')]?_0x51efde[_0xa383bf('0x1b33')][0x0]:null;if(!_0x2aa703){var _0x3b6015=[],_0xde7384=null;_0x589b83[_0xa383bf('0x1c21')]&&(_0xde7384=_0x86640f()['find'](_0x589b83[_0xa383bf('0xa07')],{'id':Number(_0x589b83[_0xa383bf('0x1c21')][_0xa383bf('0x1ac8')])}));for(var _0x159d24=0x0;_0x159d24<_0x589b83['interval'][_0xa383bf('0x577')];_0x159d24++){_0xde7384&&_0x589b83[_0xa383bf('0xa07')][_0x159d24]['id']===_0xde7384['id']&&(_0x589b83['interval'][_0x159d24][_0xa383bf('0xba')]=![],_0x3b6015[_0xa383bf('0x206c')](_0x589b83[_0xa383bf('0xa07')][_0x159d24]));}_0x589b83[_0xa383bf('0xa07')]=_0x3b6015;}else{if(!_0x2aa703['autoAssociation'])return _0x300c6a['userProfileResource'][_0xa383bf('0x595')]({'sectionId':_0x2aa703['id']})['$promise'][_0xa383bf('0x21ad')](function(_0x3a2b94){var _0x2feca2=_0xa383bf,_0x597473=_0x86640f()[_0x2feca2('0x26c3')](_0x3a2b94['rows'],function(_0x283903){var _0x2bd084=_0x2feca2;return _0x86640f()[_0x2bd084('0x1d2e')](_0x589b83[_0x2bd084('0xa07')],{'id':_0x283903[_0x2bd084('0x675')]});}),_0x453171=null;_0x589b83[_0x2feca2('0x1c21')]&&(_0x453171=_0x86640f()[_0x2feca2('0x1d2e')](_0x589b83[_0x2feca2('0xa07')],{'id':Number(_0x589b83[_0x2feca2('0x1c21')][_0x2feca2('0x1ac8')])}));if(_0x453171&&!_0x86640f()['some'](_0x597473,['id',_0x453171['id']])){var _0xddde91=_0x86640f()['find'](_0x589b83['interval'],{'id':_0x453171['id']});_0xddde91[_0x2feca2('0xba')]=![],_0x597473[_0x2feca2('0x206c')](_0xddde91);}_0x589b83['interval']=_0x597473;});}})['catch'](function(_0x53a423){var _0x4ff905=_0x2b79df;_0x5b5698[_0x4ff905('0x2092')]({'title':_0x53a423[_0x4ff905('0x209')]?'API:'+_0x53a423['status']+_0x4ff905('0xa99')+_0x53a423[_0x4ff905('0x1808')]:_0x4ff905('0x259e'),'msg':_0x53a423['data']?JSON[_0x4ff905('0x25e')](_0x53a423[_0x4ff905('0x11c2')]):_0x53a423['toString']()});});function _0x40d364(){var _0x18bdfb=_0x2b79df;_0x589b83['errors']=[],_0x300c6a[_0x18bdfb('0xf67')][_0x18bdfb('0x186f')](_0x589b83[_0x18bdfb('0x1c21')])[_0x18bdfb('0x1376')][_0x18bdfb('0x21ad')](function(_0x2858f1){var _0x171378=_0x18bdfb;_0x589b83['ivrCampaigns'][_0x171378('0xd0c')](_0x2858f1['toJSON']()),_0x5b5698[_0x171378('0xdb1')]({'title':'IvrCampaign\x20properly\x20created','msg':_0x589b83[_0x171378('0x1c21')][_0x171378('0x19fe')]?_0x589b83[_0x171378('0x1c21')][_0x171378('0x19fe')]+'\x20has\x20been\x20created!':''}),_0x4fac7d(_0x2858f1);})[_0x18bdfb('0x1c1d')](function(_0x147aa4){var _0x7af4=_0x18bdfb;if(_0x147aa4[_0x7af4('0x11c2')]&&_0x147aa4[_0x7af4('0x11c2')]['errors']&&_0x147aa4[_0x7af4('0x11c2')]['errors'][_0x7af4('0x577')]){_0x589b83[_0x7af4('0x1a69')]=_0x147aa4['data']['errors']||[{'message':_0x147aa4[_0x7af4('0x174f')](),'type':_0x7af4('0x193d')}];for(var _0x3f0b45=0x0;_0x3f0b45<_0x147aa4[_0x7af4('0x11c2')]['errors'][_0x7af4('0x577')];_0x3f0b45+=0x1){_0x5b5698[_0x7af4('0x2092')]({'title':_0x147aa4['data'][_0x7af4('0x1a69')][_0x3f0b45]['type'],'msg':_0x147aa4['data'][_0x7af4('0x1a69')][_0x3f0b45][_0x7af4('0x1224')]});}}else _0x5b5698[_0x7af4('0x2092')]({'title':_0x147aa4[_0x7af4('0x209')]?'API:'+_0x147aa4['status']+_0x7af4('0xa99')+_0x147aa4['statusText']:'api.campaign.save','msg':_0x147aa4['data']?JSON[_0x7af4('0x25e')](_0x147aa4['data'][_0x7af4('0x1224')]):_0x147aa4[_0x7af4('0x174f')]()});});}function _0x279ce6(){var _0x5bd9d1=_0x2b79df;_0x589b83['errors']=[],_0x300c6a['campaign'][_0x5bd9d1('0x5ef')]({'id':_0x589b83[_0x5bd9d1('0x1c21')]['id']},_0x589b83['ivrCampaign'])[_0x5bd9d1('0x1376')]['then'](function(_0xc423f3){var _0x473fc7=_0x5bd9d1,_0x1512fb=_0x86640f()[_0x473fc7('0x1d2e')](_0x589b83[_0x473fc7('0x1497')],{'id':_0xc423f3['id']});_0x1512fb&&_0x86640f()[_0x473fc7('0xd0e')](_0x1512fb,_0x86640f()['pick'](_0xc423f3[_0x473fc7('0x3bc')](),_0x86640f()[_0x473fc7('0x223b')](_0x1512fb))),_0x5b5698[_0x473fc7('0xdb1')]({'title':'IvrCampaign\x20properly\x20saved!','msg':_0x589b83[_0x473fc7('0x1c21')]['name']?_0x589b83['ivrCampaign'][_0x473fc7('0x19fe')]+_0x473fc7('0x2249'):''}),_0x4fac7d(_0xc423f3);})['catch'](function(_0x2a2b40){var _0x3c6cf7=_0x5bd9d1;if(_0x2a2b40[_0x3c6cf7('0x11c2')]&&_0x2a2b40[_0x3c6cf7('0x11c2')][_0x3c6cf7('0x1a69')]&&_0x2a2b40[_0x3c6cf7('0x11c2')]['errors'][_0x3c6cf7('0x577')]){_0x589b83[_0x3c6cf7('0x1a69')]=_0x2a2b40[_0x3c6cf7('0x11c2')][_0x3c6cf7('0x1a69')]||[{'message':_0x2a2b40['toString'](),'type':_0x3c6cf7('0xf94')}];for(var _0x557895=0x0;_0x557895<_0x2a2b40[_0x3c6cf7('0x11c2')][_0x3c6cf7('0x1a69')][_0x3c6cf7('0x577')];_0x557895++){_0x5b5698['error']({'title':_0x2a2b40[_0x3c6cf7('0x11c2')]['errors'][_0x557895][_0x3c6cf7('0x7fa')],'msg':_0x2a2b40['data'][_0x3c6cf7('0x1a69')][_0x557895][_0x3c6cf7('0x1224')]});}}else _0x5b5698[_0x3c6cf7('0x2092')]({'title':_0x2a2b40[_0x3c6cf7('0x209')]?_0x3c6cf7('0x22d')+_0x2a2b40[_0x3c6cf7('0x209')]+_0x3c6cf7('0xa99')+_0x2a2b40[_0x3c6cf7('0x1808')]:_0x3c6cf7('0xf94'),'msg':_0x2a2b40[_0x3c6cf7('0x11c2')]?JSON[_0x3c6cf7('0x25e')](_0x2a2b40[_0x3c6cf7('0x11c2')][_0x3c6cf7('0x1224')]):_0x2a2b40['toString']()});});}function _0x7a0882(_0x595ef0){var _0x252ad=_0x2b79df;_0x589b83[_0x252ad('0x1a69')]=[];var _0x29a9f8=_0x5a9567[_0x252ad('0xa33')]()[_0x252ad('0x4b4')](_0x252ad('0x196b'))[_0x252ad('0x13fb')](_0x252ad('0x17b0'))[_0x252ad('0x7a7')](_0x252ad('0x139f'))['ok'](_0x252ad('0xbfd'))[_0x252ad('0x3b5')](_0x252ad('0x1f40'))[_0x252ad('0x1e6d')](_0x595ef0);_0x5a9567['show'](_0x29a9f8)[_0x252ad('0x21ad')](function(){var _0x334f10=_0x252ad;_0x300c6a[_0x334f10('0xf67')][_0x334f10('0x1164')]({'id':_0x589b83[_0x334f10('0x1c21')]['id']})['$promise'][_0x334f10('0x21ad')](function(){var _0x41f6da=_0x334f10;_0x86640f()[_0x41f6da('0x16a2')](_0x589b83[_0x41f6da('0x1497')],{'id':_0x589b83['ivrCampaign']['id']}),_0x5b5698['success']({'title':_0x41f6da('0xb96'),'msg':(_0x589b83[_0x41f6da('0x1c21')][_0x41f6da('0x19fe')]||'ivrCampaign')+'\x20has\x20been\x20deleted!'}),_0x4fac7d(_0x589b83[_0x41f6da('0x1c21')]);})[_0x334f10('0x1c1d')](function(_0x55b7a2){var _0x35abba=_0x334f10;if(_0x55b7a2[_0x35abba('0x11c2')]&&_0x55b7a2[_0x35abba('0x11c2')][_0x35abba('0x1a69')]&&_0x55b7a2[_0x35abba('0x11c2')][_0x35abba('0x1a69')][_0x35abba('0x577')]){_0x589b83[_0x35abba('0x1a69')]=_0x55b7a2[_0x35abba('0x11c2')][_0x35abba('0x1a69')]||[{'message':_0x55b7a2[_0x35abba('0x174f')](),'type':_0x35abba('0x22a6')}];for(var _0x11f86e=0x0;_0x11f86e<_0x55b7a2[_0x35abba('0x11c2')][_0x35abba('0x1a69')][_0x35abba('0x577')];_0x11f86e++){_0x5b5698[_0x35abba('0x2092')]({'title':_0x55b7a2[_0x35abba('0x11c2')][_0x35abba('0x1a69')][_0x11f86e]['type'],'msg':_0x55b7a2['data']['errors'][_0x11f86e][_0x35abba('0x1224')]});}}else _0x5b5698['error']({'title':_0x55b7a2[_0x35abba('0x209')]?_0x35abba('0x22d')+_0x55b7a2[_0x35abba('0x209')]+_0x35abba('0xa99')+_0x55b7a2[_0x35abba('0x1808')]:_0x35abba('0x22a6'),'msg':_0x55b7a2['data']?JSON['stringify'](_0x55b7a2[_0x35abba('0x11c2')]['message']):_0x55b7a2[_0x35abba('0x1224')]||_0x55b7a2[_0x35abba('0x174f')]()});});},function(){});}function _0x1c3de9(_0x54815a){return _0x54815a===null?undefined:new Date(_0x54815a);}function _0x4fac7d(_0x45cede){var _0x1ba23b=_0x2b79df;_0x5a9567[_0x1ba23b('0x1c24')](_0x45cede);}}const _0x4d65a9=_0x544206;_0x456102[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x1c21'),_0x3877e3('0x13c1'),_0x3877e3('0x2313'),_0x3877e3('0x15bc'),'crudPermissions'];function _0x456102(_0x21f2a6,_0x59f9b7,_0x2cc57f,_0x461852,_0x388ee7,_0x3d2dac,_0x5e1cb4,_0x26f5ac,_0x4364b4){var _0x50e680=_0x3877e3,_0x5649c3=this;_0x5649c3[_0x50e680('0x123f')]=_0x26f5ac[_0x50e680('0x15ed')](),_0x5649c3[_0x50e680('0x1c21')]=_0x388ee7,_0x5649c3[_0x50e680('0x5ed')]=_0x4364b4,_0x5649c3['apiRoute']=_0x50e680('0xb97'),_0x5649c3['getApi']=_0x50e680('0xab7'),_0x5649c3['addApi']=_0x50e680('0x182b'),_0x5649c3[_0x50e680('0x66a')]=_0x50e680('0xd6'),_0x5649c3[_0x50e680('0x1b9a')]=[],_0x5649c3[_0x50e680('0x1e09')]=[],_0x5649c3[_0x50e680('0x2629')]=[],_0x5649c3[_0x50e680('0x91b')]=[],_0x5649c3[_0x50e680('0x2584')]=[],_0x5649c3[_0x50e680('0x1bb9')]=![],_0x5649c3['loading']=![],_0x5649c3[_0x50e680('0x909')]={'readOnly':!_0x5649c3['crudPermissions'][_0x50e680('0x6e2')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':'name','line1':'name','line2':'','line3':'','labelAll':_0x3d2dac[_0x50e680('0x183e')](_0x50e680('0x189c')),'labelSelected':_0x3d2dac['instant']('MOTIONDIALER.SELECTED_LISTS'),'transferCallback':function _0x3d99ee(){var _0x1e5c02=_0x50e680,_0x1b5200=_0x86640f()[_0x1e5c02('0x1473')](_0x5649c3[_0x1e5c02('0x2584')],_0x5649c3[_0x1e5c02('0x2629')],'id');_0x5649c3['pendingChanges']=_0x86640f()['isEmpty'](_0x1b5200)?![]:!![];}},_0x5649c3[_0x50e680('0x1081')]=_0x4b45c6,_0x5649c3[_0x50e680('0x20a8')]=_0x55091b,_0x5649c3[_0x50e680('0x167')]=_0xdf85ca;function _0x4b45c6(){var _0x3912e7=_0x50e680;return _0x26f5ac['hasRole']('admin')?_0x119d04()[_0x3912e7('0x1c1d')](function(_0x41d46e){var _0x454f80=_0x3912e7;_0x2cc57f[_0x454f80('0x2092')]({'title':_0x41d46e['status']?_0x454f80('0x22d')+_0x41d46e[_0x454f80('0x209')]+'\x20-\x20'+_0x41d46e[_0x454f80('0x1808')]:'SYSTEM:GETLISTS','msg':_0x41d46e[_0x454f80('0x209')]?JSON[_0x454f80('0x25e')](_0x41d46e[_0x454f80('0x11c2')]):_0x41d46e[_0x454f80('0x174f')]()});}):_0x20643e()[_0x3912e7('0x21ad')](function(_0x3f27da){var _0x237418=_0x3912e7;return _0x5649c3[_0x237418('0x26ad')]=_0x3f27da,_0x119d04();})[_0x3912e7('0x1c1d')](function(_0x4ded04){var _0x937250=_0x3912e7;_0x2cc57f[_0x937250('0x2092')]({'title':_0x4ded04[_0x937250('0x209')]?'API:'+_0x4ded04['status']+_0x937250('0xa99')+_0x4ded04[_0x937250('0x1808')]:_0x937250('0xcc3'),'msg':_0x4ded04[_0x937250('0x209')]?JSON['stringify'](_0x4ded04[_0x937250('0x11c2')]):_0x4ded04[_0x937250('0x174f')]()});});}function _0x20643e(){return _0x59f9b7(function(_0x1e5173,_0x380eea){var _0x148b13=a0_0x2e7f;_0x461852[_0x148b13('0xab4')][_0x148b13('0x595')]({'userProfileId':_0x5649c3['currentUser']['userProfileId'],'name':_0x148b13('0xd8d')})[_0x148b13('0x1376')][_0x148b13('0x21ad')](function(_0x40ff06){var _0xce9928=_0x148b13,_0xbb76bd=_0x40ff06&&_0x40ff06[_0xce9928('0x1b33')]?_0x40ff06[_0xce9928('0x1b33')][0x0]:null;_0x1e5173(_0xbb76bd);})[_0x148b13('0x1c1d')](function(_0x2928ac){_0x380eea(_0x2928ac);});});}function _0x119d04(){return _0x59f9b7(function(_0x43a502,_0x31af90){var _0x1f9e39=a0_0x2e7f;return _0x50cd3b()['then'](function(_0x4cfbb8){var _0x25c7ac=a0_0x2e7f;return _0x5649c3['items']=_0x4cfbb8[_0x25c7ac('0x1b33')]?_0x4cfbb8['rows']:[],_0x26f5ac[_0x25c7ac('0x21de')](_0x25c7ac('0x1bd8'))?_0x4cfbb8:_0x5649c3[_0x25c7ac('0x26ad')]?_0x5649c3['section'][_0x25c7ac('0x80c')]?_0x4cfbb8:_0x14d12b():null;})[_0x1f9e39('0x21ad')](function(_0x1a3453){var _0x41f11f=_0x1f9e39,_0x3280ff=_0x1a3453&&_0x1a3453[_0x41f11f('0x1b33')]?_0x1a3453[_0x41f11f('0x1b33')]:[];return _0x5649c3[_0x41f11f('0x1e09')]=_0x86640f()[_0x41f11f('0x26c3')](_0x3280ff,function(_0x397bb9){var _0x10afce=_0x41f11f;return _0x86640f()['find'](_0x5649c3['items'],{'id':_0x26f5ac['hasRole'](_0x10afce('0x1bd8'))||_0x5649c3[_0x10afce('0x26ad')][_0x10afce('0x80c')]?_0x397bb9['id']:_0x397bb9[_0x10afce('0x675')]});}),_0x5649c3[_0x41f11f('0x91b')]=angular[_0x41f11f('0xd75')](_0x5649c3[_0x41f11f('0x1e09')]),_0x5649c3[_0x41f11f('0x1b9a')][_0x41f11f('0x1a52')](function(_0x1e3aaa){var _0x3c8036=_0x41f11f,_0x90395c=_0x86640f()[_0x3c8036('0x1d2e')](_0x5649c3[_0x3c8036('0x1e09')],{'id':_0x1e3aaa['id']});_0x5649c3[_0x3c8036('0x123f')][_0x3c8036('0x25c8')]===_0x3c8036('0x1bd8')?_0x1e3aaa['isValid']=!![]:_0x1e3aaa[_0x3c8036('0x118b')]=typeof _0x90395c!=='undefined'?!![]:![];}),_0x236be7();})['then'](function(_0x5596da){var _0x6107e1=_0x1f9e39,_0x2942a3=_0x5596da&&_0x5596da[_0x6107e1('0x1b33')]?_0x5596da[_0x6107e1('0x1b33')]:[];_0x5649c3[_0x6107e1('0x2629')]=_0x86640f()['map'](_0x2942a3,function(_0x1e77e3){var _0x44511e=_0x6107e1;return _0x86640f()[_0x44511e('0x1d2e')](_0x5649c3['items'],{'id':_0x1e77e3['id']});}),_0x5649c3['startingSelectedItems']=angular[_0x6107e1('0xd75')](_0x5649c3[_0x6107e1('0x2629')]),_0x5649c3['dualMultiselectOptions'][_0x6107e1('0x2629')]=_0x5649c3['selectedItems'],_0x5649c3[_0x6107e1('0x909')][_0x6107e1('0x1b9a')]=_0x86640f()['differenceBy'](_0x5649c3[_0x6107e1('0x1e09')],_0x5649c3[_0x6107e1('0x909')][_0x6107e1('0x2629')],'id'),_0x43a502();})['catch'](function(_0x58166b){_0x31af90(_0x58166b);});});}function _0x14d12b(){return _0x59f9b7(function(_0x3715ff,_0x2ad96e){var _0x11fb74=a0_0x2e7f;return _0x461852[_0x11fb74('0x185e')][_0x11fb74('0x595')]({'sectionId':_0x5649c3[_0x11fb74('0x26ad')]['id'],'nolimit':!![]})[_0x11fb74('0x1376')][_0x11fb74('0x21ad')](function(_0x389f2d){_0x3715ff(_0x389f2d);})[_0x11fb74('0x1c1d')](function(_0x2e78e8){_0x2ad96e(_0x2e78e8);});});}function _0x236be7(){return _0x59f9b7(function(_0x1fa50f,_0x36cbf4){var _0x2db44c=a0_0x2e7f,_0x5ef751=_0x461852[_0x5649c3[_0x2db44c('0x1fd5')]];return _0x5ef751[_0x5649c3[_0x2db44c('0x1d30')]]({'id':_0x5649c3['ivrCampaign']['id'],'fields':_0x2db44c('0x1aa8'),'nolimit':!![]})[_0x2db44c('0x1376')][_0x2db44c('0x21ad')](function(_0x1ad27d){_0x1fa50f(_0x1ad27d);})[_0x2db44c('0x1c1d')](function(_0x42f2ee){_0x36cbf4(_0x42f2ee);});});}function _0x50cd3b(){return _0x59f9b7(function(_0xcd3ab8,_0xdd0b73){var _0x56193e=a0_0x2e7f;return _0x461852['cmList'][_0x56193e('0x595')]({'fields':'id,name','nolimit':!![]})[_0x56193e('0x1376')][_0x56193e('0x21ad')](function(_0x385386){_0xcd3ab8(_0x385386);})[_0x56193e('0x1c1d')](function(_0x5942fe){_0xdd0b73(_0x5942fe);});});}function _0x44acf3(_0x22c50a){return _0x59f9b7(function(_0x22993b,_0x2308b9){var _0x2f8209=a0_0x2e7f;if(_0x86640f()[_0x2f8209('0x23aa')](_0x22c50a))_0x22993b();else{var _0x2622de=_0x461852[_0x5649c3[_0x2f8209('0x1fd5')]];_0x2622de[_0x5649c3['addApi']]({'id':_0x5649c3[_0x2f8209('0x1c21')]['id'],'ids':_0x86640f()[_0x2f8209('0x26c3')](_0x22c50a,'id')})[_0x2f8209('0x1376')][_0x2f8209('0x21ad')](function(){_0x22993b();})['catch'](function(_0x2803d7){_0x2308b9(_0x2803d7);});}});}function _0xa6148d(_0x5911ea){return _0x59f9b7(function(_0x550222,_0x18dd11){var _0x21f6ca=a0_0x2e7f;if(_0x86640f()[_0x21f6ca('0x23aa')](_0x5911ea))_0x550222();else{var _0x38b2a4=_0x461852[_0x5649c3[_0x21f6ca('0x1fd5')]];_0x38b2a4[_0x5649c3[_0x21f6ca('0x66a')]]({'id':_0x5649c3[_0x21f6ca('0x1c21')]['id'],'ids':_0x86640f()[_0x21f6ca('0x26c3')](_0x5911ea,'id')})[_0x21f6ca('0x1376')]['then'](function(){_0x550222();})[_0x21f6ca('0x1c1d')](function(_0x48c888){_0x18dd11(_0x48c888);});}});}function _0x55091b(){var _0x4af50c=_0x50e680;_0x5649c3[_0x4af50c('0x27c0')]=!![];var _0x3af5ea=_0x86640f()[_0x4af50c('0x1eab')](_0x5649c3[_0x4af50c('0x2584')],_0x5649c3[_0x4af50c('0x2629')],'id'),_0x319326=_0x86640f()[_0x4af50c('0x1eab')](_0x5649c3[_0x4af50c('0x2629')],_0x5649c3[_0x4af50c('0x2584')],'id');return _0xa6148d(_0x3af5ea)[_0x4af50c('0x21ad')](function(){return _0x44acf3(_0x319326);})[_0x4af50c('0x21ad')](function(){var _0x240eb2=_0x4af50c;_0x5649c3[_0x240eb2('0x1bb9')]=![],_0x5649c3[_0x240eb2('0x91b')]=angular[_0x240eb2('0xd75')](_0x5649c3['allowedItems']),_0x5649c3[_0x240eb2('0x2584')]=angular[_0x240eb2('0xd75')](_0x5649c3[_0x240eb2('0x2629')]),_0x2cc57f[_0x240eb2('0xdb1')]({'title':'SUCCESS','msg':_0x240eb2('0x267b')});})[_0x4af50c('0x1c1d')](function(_0xfc1be8){var _0x488b50=_0x4af50c;_0x2cc57f['error']({'title':_0xfc1be8['status']?_0x488b50('0x22d')+_0xfc1be8['status']+_0x488b50('0xa99')+_0xfc1be8[_0x488b50('0x1808')]:_0x488b50('0x1dd7'),'msg':_0xfc1be8[_0x488b50('0x209')]?JSON['stringify'](_0xfc1be8[_0x488b50('0x11c2')]):_0xfc1be8['toString']()});})[_0x4af50c('0x13e')](function(){_0x5649c3['loading']=![];});}function _0xdf85ca(){var _0x3e6f76=_0x50e680;_0x21f2a6[_0x3e6f76('0x1c24')]();}}const _0x5e0426=_0x456102;_0x3ad07d['$inject']=[_0x3877e3('0x1850'),_0x3877e3('0xa9f'),_0x3877e3('0x1908'),'api',_0x3877e3('0x1c21'),'ivrCampaigns',_0x3877e3('0x13c1')];function _0x3ad07d(_0x3de3cd,_0x24294e,_0x398cee,_0x594dad,_0x40c3cf,_0x5b8ad4,_0x50d044){var _0xdb2039=_0x3877e3,_0x4aaa2b=this;_0x4aaa2b[_0xdb2039('0x22b6')]=!![],_0x4aaa2b[_0xdb2039('0x1c21')]=angular[_0xdb2039('0xd75')](_0x40c3cf),_0x4aaa2b[_0xdb2039('0x1497')]=_0x5b8ad4,_0x4aaa2b[_0xdb2039('0x4b4')]=_0x50d044[_0xdb2039('0x183e')](_0xdb2039('0x20b0'));_0x40c3cf&&_0x40c3cf[_0xdb2039('0x19fe')]&&(_0x4aaa2b['title']+=':\x20'+_0x40c3cf[_0xdb2039('0x19fe')]);_0x4aaa2b[_0xdb2039('0x27d1')]=_0x45d33a,_0x4aaa2b[_0xdb2039('0x167')]=_0x365453;function _0x45d33a(){var _0x3f4cb9=_0xdb2039;return _0x594dad[_0x3f4cb9('0xf67')][_0x3f4cb9('0x1af0')]({'id':_0x40c3cf['id']},_0x4aaa2b[_0x3f4cb9('0x1c21')])[_0x3f4cb9('0x1376')][_0x3f4cb9('0x21ad')](function(_0x29c23c){var _0x1b4d24=_0x3f4cb9;_0x4aaa2b[_0x1b4d24('0x1497')][_0x1b4d24('0xd0c')](_0x29c23c[_0x1b4d24('0x3bc')]()),_0x398cee['success']({'title':_0x1b4d24('0x191f'),'msg':_0x4aaa2b[_0x1b4d24('0x1c21')][_0x1b4d24('0x19fe')]?_0x4aaa2b[_0x1b4d24('0x1c21')]['name']+_0x1b4d24('0x1e9f'):''}),_0x24294e['go'](_0x1b4d24('0x1f01'),{'id':_0x29c23c['id']}),_0x365453(_0x29c23c);})['catch'](function(_0x3f3ae3){var _0xdbc559=_0x3f4cb9;if(_0x3f3ae3[_0xdbc559('0x11c2')]&&_0x3f3ae3[_0xdbc559('0x11c2')][_0xdbc559('0x1a69')]&&_0x3f3ae3['data']['errors'][_0xdbc559('0x577')]){_0x4aaa2b[_0xdbc559('0x1a69')]=_0x3f3ae3[_0xdbc559('0x11c2')]['errors']||[{'message':_0x3f3ae3['toString'](),'type':'api.campaign.clone'}];for(var _0x2f2a02=0x0;_0x2f2a02<_0x3f3ae3['data'][_0xdbc559('0x1a69')][_0xdbc559('0x577')];_0x2f2a02+=0x1){_0x398cee[_0xdbc559('0x2092')]({'title':_0x3f3ae3[_0xdbc559('0x11c2')][_0xdbc559('0x1a69')][_0x2f2a02][_0xdbc559('0x7fa')],'msg':_0x3f3ae3['data'][_0xdbc559('0x1a69')][_0x2f2a02][_0xdbc559('0x1224')]});}}else _0x398cee[_0xdbc559('0x2092')]({'title':_0x3f3ae3[_0xdbc559('0x209')]?_0xdbc559('0x22d')+_0x3f3ae3[_0xdbc559('0x209')]+_0xdbc559('0xa99')+_0x3f3ae3[_0xdbc559('0x1808')]:_0xdbc559('0x27ff'),'msg':_0x3f3ae3[_0xdbc559('0x11c2')]?JSON[_0xdbc559('0x25e')](_0x3f3ae3['data']['message']):_0x3f3ae3[_0xdbc559('0x174f')]()});});}function _0x365453(_0x69e23b){var _0x298a7f=_0xdb2039;_0x3de3cd[_0x298a7f('0x1c24')](_0x69e23b);}}const _0x214bca=_0x3ad07d;_0x1b5de2['$inject']=[_0x3877e3('0x26'),_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),'toasty',_0x3877e3('0xccd'),'Auth'];function _0x1b5de2(_0x3f5697,_0x2bb98a,_0x2d815b,_0x5bdfaf,_0x4dd750,_0x185fcb,_0x2158b3,_0x15a757,_0x1e310a,_0x30a206,_0x8a4935){var _0x5a3b35=_0x3877e3,_0x1def9f=this;_0x1def9f['currentUser']=_0x8a4935[_0x5a3b35('0x15ed')](),_0x1def9f[_0x5a3b35('0x1c21')]={},_0x1def9f['ivrCampaignHopperBlacks']={'count':0x0,'rows':[]},_0x1def9f[_0x5a3b35('0x277b')]=[],_0x1def9f[_0x5a3b35('0x5ed')],_0x1def9f['query']={'fields':'createdAt,updatedAt,ContactId,phone','sort':'-id','limit':0xa,'page':0x1},_0x1def9f[_0x5a3b35('0x1d75')]=_0x341ac5,_0x1def9f[_0x5a3b35('0x15dc')]=_0x8d6a35,_0x1def9f['success']=_0x11d349,_0x1def9f[_0x5a3b35('0x1dbe')]=_0x30aa73,_0x1def9f[_0x5a3b35('0x2ad')]=_0x218495,_0x1def9f[_0x5a3b35('0x1b8')]=_0x33e782,_0x1def9f[_0x5a3b35('0x584')]=_0x219519;function _0x341ac5(_0x39ddb0,_0x36db79){var _0x1f48dd=_0x5a3b35;_0x1def9f['ivrCampaign']=_0x39ddb0,_0x1def9f[_0x1f48dd('0x5ed')]=typeof _0x36db79!=='undefined'?_0x36db79:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1def9f['query']['CampaignId']=_0x1def9f[_0x1f48dd('0x1c21')]['id'],_0x1def9f[_0x1f48dd('0x77')]['id']=_0x1def9f[_0x1f48dd('0x1c21')]['id'],_0x30aa73();}function _0x8d6a35(_0x11b3e2,_0x207725){var _0x344899=_0x5a3b35,_0xb0872e=_0x2158b3[_0x344899('0xa33')]()[_0x344899('0x4b4')](_0x344899('0x221b'))[_0x344899('0x276b')](_0x344899('0x622')+(_0x11b3e2[_0x344899('0x19fe')]||_0x11b3e2['id']&&_0x86640f()[_0x344899('0x22e')](_0x344899('0xf3e'))+_0x11b3e2['id']||_0x344899('0x877'))+_0x344899('0x2135')+_0x344899('0x25e0'))['ariaLabel'](_0x344899('0x2024'))[_0x344899('0x1e6d')](_0x207725)['ok']('OK')[_0x344899('0x3b5')](_0x344899('0x284b'));_0x2158b3['show'](_0xb0872e)[_0x344899('0x21ad')](function(){_0x33e782(_0x11b3e2);},function(){var _0xdc62a6=_0x344899;console[_0xdc62a6('0x6fb')](_0xdc62a6('0x284b'));});}function _0x11d349(_0x4cb6ac){var _0x43b50f=_0x5a3b35;_0x1def9f[_0x43b50f('0x1457')]=_0x4cb6ac||{'count':0x0,'rows':[]};}function _0x30aa73(){var _0xfbd0dc=_0x5a3b35;_0x1def9f[_0xfbd0dc('0x77')][_0xfbd0dc('0x15a5')]=(_0x1def9f[_0xfbd0dc('0x77')][_0xfbd0dc('0x2376')]-0x1)*_0x1def9f[_0xfbd0dc('0x77')]['limit'],_0x1def9f[_0xfbd0dc('0x71b')]=_0x30a206[_0xfbd0dc('0xf67')][_0xfbd0dc('0x23a')](_0x1def9f['query'],_0x11d349)['$promise'];}function _0x33e782(_0x494eee){var _0x4e9c3a=_0x5a3b35;_0x30a206['hopperBlack'][_0x4e9c3a('0x1164')]({'id':_0x494eee['id']})['$promise']['then'](function(){var _0x201be4=_0x4e9c3a;_0x86640f()[_0x201be4('0x16a2')](_0x1def9f[_0x201be4('0x1457')]['rows'],{'id':_0x494eee['id']}),_0x1def9f[_0x201be4('0x1457')][_0x201be4('0x205f')]-=0x1,!_0x1def9f['ivrCampaignHopperBlacks'][_0x201be4('0x1b33')][_0x201be4('0x577')]&&_0x30aa73(),_0x1e310a[_0x201be4('0xdb1')]({'title':_0x201be4('0x1650'),'msg':_0x494eee[_0x201be4('0x19fe')]?_0x494eee[_0x201be4('0x19fe')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x1d9d09){var _0x3fa9f4=_0x4e9c3a;if(_0x1d9d09[_0x3fa9f4('0x11c2')]&&_0x1d9d09[_0x3fa9f4('0x11c2')]['errors']&&_0x1d9d09[_0x3fa9f4('0x11c2')][_0x3fa9f4('0x1a69')][_0x3fa9f4('0x577')]){_0x1def9f[_0x3fa9f4('0x1a69')]=_0x1d9d09[_0x3fa9f4('0x11c2')][_0x3fa9f4('0x1a69')]||[{'message':_0x1d9d09['toString'](),'type':_0x3fa9f4('0x16ea')}];for(var _0x7ccf49=0x0;_0x7ccf49<_0x1d9d09[_0x3fa9f4('0x11c2')]['errors'][_0x3fa9f4('0x577')];_0x7ccf49++){_0x1e310a[_0x3fa9f4('0x2092')]({'title':_0x1d9d09[_0x3fa9f4('0x11c2')][_0x3fa9f4('0x1a69')][_0x7ccf49][_0x3fa9f4('0x7fa')],'msg':_0x1d9d09[_0x3fa9f4('0x11c2')][_0x3fa9f4('0x1a69')][_0x7ccf49][_0x3fa9f4('0x1224')]});}}else _0x1e310a['error']({'title':_0x1d9d09['status']?'API:'+_0x1d9d09[_0x3fa9f4('0x209')]+_0x3fa9f4('0xa99')+_0x1d9d09[_0x3fa9f4('0x1808')]:_0x3fa9f4('0x16ea'),'msg':_0x1d9d09[_0x3fa9f4('0x11c2')]?JSON[_0x3fa9f4('0x25e')](_0x1d9d09['data'][_0x3fa9f4('0x1224')]):_0x1d9d09[_0x3fa9f4('0x1224')]||_0x1d9d09['toString']()});});}function _0x218495(){var _0x38c6d8=_0x5a3b35,_0x577304=angular[_0x38c6d8('0xd75')](_0x1def9f[_0x38c6d8('0x277b')]);return _0x1def9f[_0x38c6d8('0x277b')]=[],_0x577304;}function _0x219519(_0x1fd7c1){var _0x35a39=_0x5a3b35,_0x5e036f=_0x2158b3[_0x35a39('0xa33')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperBlacks?')[_0x35a39('0x276b')](''+_0x1def9f['selectedIvrCampaignHopperBlacks']['length']+'\x20selected'+_0x35a39('0x25e0'))[_0x35a39('0x7a7')]('delete\x20hopperBlacks')['targetEvent'](_0x1fd7c1)['ok']('OK')[_0x35a39('0x3b5')](_0x35a39('0x284b'));_0x2158b3['show'](_0x5e036f)[_0x35a39('0x21ad')](function(){var _0x58e1b8=_0x35a39;_0x1def9f[_0x58e1b8('0x277b')][_0x58e1b8('0x1a52')](function(_0x4795fb){_0x33e782(_0x4795fb);}),_0x1def9f['selectedIvrCampaignHopperBlacks']=[];});}var _0x30a112=!![],_0x250366=0x1;_0x2bb98a[_0x5a3b35('0x10e8')]('vm_dc.query.filter',function(_0x3098fe,_0x57c2a3){var _0x7547ff=_0x5a3b35;_0x30a112?_0x185fcb(function(){_0x30a112=![];}):(!_0x57c2a3&&(_0x250366=_0x1def9f[_0x7547ff('0x77')][_0x7547ff('0x2376')]),_0x3098fe!==_0x57c2a3&&(_0x1def9f[_0x7547ff('0x77')][_0x7547ff('0x2376')]=0x1),!_0x3098fe&&(_0x1def9f[_0x7547ff('0x77')][_0x7547ff('0x2376')]=_0x250366),_0x30aa73());});}const _0x291933=_0x1b5de2;_0x201a78[_0x3877e3('0x1a81')]=[_0x3877e3('0x26'),_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),'toasty','api',_0x3877e3('0x15bc')];function _0x201a78(_0x2d3480,_0x2192a6,_0x340c1e,_0x416dc6,_0x3b2b7b,_0x13c485,_0x31e29b,_0x347e45,_0x5a2948,_0xd8e90d,_0x41b359){var _0x182181=_0x3877e3,_0x5b0d52=this;_0x5b0d52[_0x182181('0x123f')]=_0x41b359[_0x182181('0x15ed')](),_0x5b0d52[_0x182181('0x2814')]={},_0x5b0d52[_0x182181('0x1c21')]={},_0x5b0d52[_0x182181('0xc75')]={'count':0x0,'rows':[]},_0x5b0d52['selectedIvrCampaignHopperFinals']=[],_0x5b0d52[_0x182181('0x5ed')],_0x5b0d52[_0x182181('0x77')]={'fields':_0x182181('0x24cf'),'sort':_0x182181('0x51d'),'limit':0xa,'page':0x1},_0x5b0d52['init']=_0x116838,_0x5b0d52[_0x182181('0x15dc')]=_0x3a0bb7,_0x5b0d52[_0x182181('0xdb1')]=_0x5c8f72,_0x5b0d52[_0x182181('0x553')]=_0x521f4b,_0x5b0d52['exportSelectedIvrCampaignHopperFinals']=_0x5a9303,_0x5b0d52['deleteIvrCampaignHopperFinal']=_0x3aa025,_0x5b0d52[_0x182181('0x601')]=_0x2d80bc,_0x5b0d52['moveIvrCampaignHopperFinal']=_0x70fd6d,_0x5b0d52[_0x182181('0x2295')]=_0x1b388c,_0x5b0d52['countContactsIvrCampaignHopperFinal']=_0x32abe8,_0x5b0d52[_0x182181('0x2654')]=_0x5e13bb,_0x5b0d52['moveSelectedIvrCampaignHopperFinals']=_0x354e00;function _0x116838(_0x620cd5,_0x299dc2){var _0x3727c7=_0x182181;_0x5b0d52[_0x3727c7('0x1c21')]=_0x620cd5,_0x5b0d52[_0x3727c7('0x5ed')]=typeof _0x299dc2!==_0x3727c7('0xddc')?_0x299dc2:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5b0d52[_0x3727c7('0x77')][_0x3727c7('0x23b6')]=_0x5b0d52[_0x3727c7('0x1c21')]['id'],_0x5b0d52['query']['id']=_0x5b0d52[_0x3727c7('0x1c21')]['id'],_0x521f4b();}function _0x3a0bb7(_0x446359,_0x5a2301){var _0x265c93=_0x182181,_0x5e6864=_0x31e29b[_0x265c93('0xa33')]()[_0x265c93('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperFinal?')[_0x265c93('0x276b')](_0x265c93('0x622')+(_0x446359['name']||_0x446359['id']&&_0x86640f()['upperFirst'](_0x265c93('0x1910'))+_0x446359['id']||_0x265c93('0xc60'))+''+'\x20will\x20be\x20deleted.')[_0x265c93('0x7a7')](_0x265c93('0x1ced'))[_0x265c93('0x1e6d')](_0x5a2301)['ok']('OK')['cancel'](_0x265c93('0x284b'));_0x31e29b[_0x265c93('0x853')](_0x5e6864)[_0x265c93('0x21ad')](function(){_0x3aa025(_0x446359);},function(){var _0x278deb=_0x265c93;console[_0x278deb('0x6fb')](_0x278deb('0x284b'));});}function _0x5c8f72(_0x55fbf){var _0x28f698=_0x182181;_0x5b0d52[_0x28f698('0xc75')]=_0x55fbf||{'count':0x0,'rows':[]};}function _0x521f4b(){var _0x1d3e4e=_0x182181;_0x5b0d52[_0x1d3e4e('0x77')][_0x1d3e4e('0x15a5')]=(_0x5b0d52[_0x1d3e4e('0x77')][_0x1d3e4e('0x2376')]-0x1)*_0x5b0d52[_0x1d3e4e('0x77')][_0x1d3e4e('0x1f4a')],_0x5b0d52[_0x1d3e4e('0x71b')]=_0xd8e90d[_0x1d3e4e('0xf67')][_0x1d3e4e('0x180c')](_0x5b0d52[_0x1d3e4e('0x77')],_0x5c8f72)[_0x1d3e4e('0x1376')];}function _0x3aa025(_0xfe5a9c){var _0x29900c=_0x182181;_0xd8e90d[_0x29900c('0xc60')][_0x29900c('0x1164')]({'id':_0xfe5a9c['id']})[_0x29900c('0x1376')]['then'](function(){var _0x372626=_0x29900c;_0x86640f()[_0x372626('0x16a2')](_0x5b0d52[_0x372626('0xc75')][_0x372626('0x1b33')],{'id':_0xfe5a9c['id']}),_0x5b0d52[_0x372626('0xc75')][_0x372626('0x205f')]-=0x1,!_0x5b0d52['ivrCampaignHopperFinals'][_0x372626('0x1b33')][_0x372626('0x577')]&&_0x521f4b(),_0x5a2948['success']({'title':_0x372626('0x2811'),'msg':_0xfe5a9c[_0x372626('0x19fe')]?_0xfe5a9c[_0x372626('0x19fe')]+_0x372626('0xb4a'):''});})['catch'](function(_0x912b79){var _0x3505d4=_0x29900c;if(_0x912b79[_0x3505d4('0x11c2')]&&_0x912b79[_0x3505d4('0x11c2')][_0x3505d4('0x1a69')]&&_0x912b79['data'][_0x3505d4('0x1a69')][_0x3505d4('0x577')]){_0x5b0d52[_0x3505d4('0x1a69')]=_0x912b79['data'][_0x3505d4('0x1a69')]||[{'message':_0x912b79['toString'](),'type':'SYSTEM:GETcampaign'}];for(var _0x3d1a1b=0x0;_0x3d1a1b<_0x912b79[_0x3505d4('0x11c2')]['errors'][_0x3505d4('0x577')];_0x3d1a1b++){_0x5a2948[_0x3505d4('0x2092')]({'title':_0x912b79[_0x3505d4('0x11c2')][_0x3505d4('0x1a69')][_0x3d1a1b][_0x3505d4('0x7fa')],'msg':_0x912b79[_0x3505d4('0x11c2')][_0x3505d4('0x1a69')][_0x3d1a1b][_0x3505d4('0x1224')]});}}else _0x5a2948[_0x3505d4('0x2092')]({'title':_0x912b79['status']?_0x3505d4('0x22d')+_0x912b79[_0x3505d4('0x209')]+_0x3505d4('0xa99')+_0x912b79['statusText']:_0x3505d4('0x16ea'),'msg':_0x912b79[_0x3505d4('0x11c2')]?JSON[_0x3505d4('0x25e')](_0x912b79[_0x3505d4('0x11c2')][_0x3505d4('0x1224')]):_0x912b79['message']||_0x912b79[_0x3505d4('0x174f')]()});});}function _0x5a9303(){var _0x49fad0=_0x182181,_0x24e77c=angular[_0x49fad0('0xd75')](_0x5b0d52[_0x49fad0('0x1a53')]);return _0x5b0d52[_0x49fad0('0x1a53')]=[],_0x24e77c;}function _0x2d80bc(_0xb6d2b4){var _0x42ef84=_0x182181,_0x1076c2=_0x31e29b[_0x42ef84('0xa33')]()[_0x42ef84('0x4b4')](_0x42ef84('0xec7'))[_0x42ef84('0x276b')](_0x42ef84('0x622')+_0x5b0d52[_0x42ef84('0x1a53')][_0x42ef84('0x577')]+_0x42ef84('0xd74')+_0x42ef84('0x25e0'))[_0x42ef84('0x7a7')](_0x42ef84('0x253b'))[_0x42ef84('0x1e6d')](_0xb6d2b4)['ok']('OK')[_0x42ef84('0x3b5')]('CANCEL');_0x31e29b['show'](_0x1076c2)[_0x42ef84('0x21ad')](function(){var _0x37404a=_0x42ef84;_0x5b0d52[_0x37404a('0x1a53')][_0x37404a('0x1a52')](function(_0x490a8c){_0x3aa025(_0x490a8c);}),_0x5b0d52[_0x37404a('0x1a53')]=[];});}function _0x1b388c(_0x5517ca){var _0x232e81=_0x182181;_0xd8e90d['cmHopperFinal']['moveContactsIvrCampaignHopperFinal']({'id':_0x5b0d52['query']['id'],'state':_0x5517ca})[_0x232e81('0x1376')][_0x232e81('0x21ad')](function(_0x477e12){var _0x226c78=_0x232e81;_0x86640f()[_0x226c78('0x1c7')](_0x477e12)&&_0x86640f()['isNil'](_0x477e12[0x0])?_0x5a2948[_0x226c78('0x231c')]({'title':_0x226c78('0x22f7'),'msg':'0'}):_0x5a2948[_0x226c78('0x231c')]({'title':'Restored\x20Contacts','msg':JSON[_0x226c78('0x25e')](_0x477e12[0x0][_0x226c78('0x120a')])});})[_0x232e81('0x1c1d')](function(_0x4dcabc){var _0x224109=_0x232e81;_0x5a2948[_0x224109('0x2092')]({'title':_0x4dcabc[_0x224109('0x209')]?_0x224109('0x22d')+_0x4dcabc[_0x224109('0x209')]+_0x224109('0xa99')+_0x4dcabc[_0x224109('0x1808')]:'SYSTEM:GETvoiceQueue','msg':_0x4dcabc[_0x224109('0x11c2')]?JSON[_0x224109('0x25e')](_0x4dcabc['data'][_0x224109('0x1224')]):_0x4dcabc[_0x224109('0x1224')]||_0x4dcabc[_0x224109('0x174f')]()});});}function _0x32abe8(_0x3df13c){var _0x55848c=_0x182181;_0xd8e90d['cmHopperFinal'][_0x55848c('0x160e')]({'id':_0x3df13c})['$promise'][_0x55848c('0x21ad')](function(_0x42e254){var _0x9632db=_0x55848c;_0x86640f()[_0x9632db('0xd0e')](_0x5b0d52[_0x9632db('0x2814')],_0x42e254[0x0]);})[_0x55848c('0x1c1d')](function(_0x5acb3b){var _0x32c276=_0x55848c;_0x5a2948[_0x32c276('0x2092')]({'title':_0x5acb3b[_0x32c276('0x209')]?_0x32c276('0x22d')+_0x5acb3b[_0x32c276('0x209')]+_0x32c276('0xa99')+_0x5acb3b[_0x32c276('0x1808')]:_0x32c276('0x16ea'),'msg':_0x5acb3b['data']?JSON[_0x32c276('0x25e')](_0x5acb3b['data']['message']):_0x5acb3b[_0x32c276('0x1224')]||_0x5acb3b[_0x32c276('0x174f')]()});});}function _0x354e00(_0x39efe6){var _0x29f414=_0x182181,_0x4337c4=_0x31e29b[_0x29f414('0xa33')]()[_0x29f414('0x4b4')](_0x29f414('0x874'))['htmlContent'](_0x29f414('0x1d35')+'\x20will\x20be\x20restored.')[_0x29f414('0x7a7')](_0x29f414('0xe19'))[_0x29f414('0x1e6d')](_0x39efe6)['ok']('OK')[_0x29f414('0x3b5')]('CANCEL');_0x31e29b[_0x29f414('0x853')](_0x4337c4)[_0x29f414('0x21ad')](function(){var _0x29be5b=_0x29f414;_0x5b0d52[_0x29be5b('0x1a53')][_0x29be5b('0x1a52')](function(_0x27fbd7){_0x70fd6d(_0x27fbd7);}),_0x5b0d52['selectedIvrCampaignHopperFinals']=[];});}function _0x5e13bb(_0x481b22,_0x1de0ad){var _0x485ab6=_0x182181,_0x2faa74=_0x31e29b['confirm']()[_0x485ab6('0x4b4')](_0x485ab6('0x25cc'))[_0x485ab6('0x276b')](''+_0x485ab6('0x1d10')+_0x485ab6('0x2135')+_0x485ab6('0x169b'))[_0x485ab6('0x7a7')](_0x485ab6('0x18b4'))[_0x485ab6('0x1e6d')](_0x1de0ad)['ok']('OK')['cancel'](_0x485ab6('0x284b'));_0x31e29b[_0x485ab6('0x853')](_0x2faa74)[_0x485ab6('0x21ad')](function(){_0x70fd6d(_0x481b22);},function(){var _0x29d8a5=_0x485ab6;console[_0x29d8a5('0x6fb')]('CANCEL');});}function _0x3578ca(_0x17b68b){var _0x27913d=_0x182181,_0x143954={};return _0x143954['phone']=_0x17b68b[_0x27913d('0x5d4')],_0x143954['scheduledat']=_0x1088bc()()[_0x27913d('0x153')](_0x27913d('0x1e15')),_0x143954[_0x27913d('0x1228')]=0x0,_0x143954[_0x27913d('0x96c')]=0x0,_0x143954[_0x27913d('0x25f7')]=0x0,_0x143954['countglobal']=0x0,_0x143954[_0x27913d('0x2596')]=_0x17b68b['ContactId'],_0x143954[_0x27913d('0x815')]=_0x17b68b['ListId'],_0x143954[_0x27913d('0x1dc6')]=_0x17b68b[_0x27913d('0x27e3')]?null:_0x17b68b[_0x27913d('0x1dc6')],_0x143954[_0x27913d('0xe90')]=_0x17b68b['VoiceQueueId'],_0x143954['CampaignId']=_0x17b68b[_0x27913d('0x23b6')],_0x143954[_0x27913d('0xbe5')]=_0x17b68b[_0x27913d('0xe15')]?0x3:0x2,_0x143954[_0x27913d('0xe15')]=_0x17b68b[_0x27913d('0xe15')]?!![]:![],_0x143954;}function _0x10c2b1(_0x262dae){var _0x166b4c=_0x182181,_0xd1c597={};return _0xd1c597[_0x166b4c('0x5d4')]=_0x262dae['calleridnum'],_0xd1c597[_0x166b4c('0xec8')]=_0x262dae['calleridname'],_0xd1c597[_0x166b4c('0x141a')]=_0x1088bc()()[_0x166b4c('0x153')](_0x166b4c('0x1e15')),_0xd1c597[_0x166b4c('0x1228')]=_0x262dae[_0x166b4c('0x1228')],_0xd1c597[_0x166b4c('0x96c')]=_0x262dae['countcongestionretry'],_0xd1c597['countnoanswerretry']=_0x262dae[_0x166b4c('0x25f7')],_0xd1c597[_0x166b4c('0x97c')]=_0x262dae[_0x166b4c('0x97c')],_0xd1c597['ContactId']=_0x262dae[_0x166b4c('0x2596')],_0xd1c597['ListId']=_0x262dae['ListId'],_0xd1c597['UserId']=_0x41b359[_0x166b4c('0x15ed')]()['id'],_0xd1c597[_0x166b4c('0xe90')]=_0x262dae[_0x166b4c('0xe90')],_0xd1c597[_0x166b4c('0x23b6')]=_0x262dae['CampaignId'],_0xd1c597[_0x166b4c('0x187a')]=_0x1088bc()()[_0x166b4c('0x153')]('YYYY-MM-DD\x20HH:mm:ss'),_0xd1c597['edited']=!![],_0xd1c597[_0x166b4c('0x27e')]=0x19,_0xd1c597[_0x166b4c('0x12a8')]=_0x166b4c('0x1ce1'),_0xd1c597[_0x166b4c('0xf67')]=_0x262dae[_0x166b4c('0xf67')],_0xd1c597[_0x166b4c('0x251e')]=_0x262dae[_0x166b4c('0xe90')]?_0x166b4c('0xbdd'):_0x166b4c('0x9d8'),_0xd1c597;}function _0x70fd6d(_0x47e467){var _0x3dad6b=_0x182181;_0xd8e90d[_0x3dad6b('0x10d9')][_0x3dad6b('0x2458')](_0x47e467)[_0x3dad6b('0x1376')]['then'](function(_0x2c0883){var _0x3bdadf=_0x3dad6b;_0x5a2948[_0x3bdadf('0x231c')]({'title':_0x3bdadf('0x24e5'),'msg':_0x3bdadf('0xf3b')+_0x2c0883[_0x3bdadf('0x2596')]});})[_0x3dad6b('0x1c1d')](function(_0x49357c){var _0x3f5d1a=_0x3dad6b;_0x49357c['data']===_0x3f5d1a('0x1031')?_0xd8e90d[_0x3f5d1a('0x1b37')][_0x3f5d1a('0x186f')](_0x3578ca(_0x47e467))[_0x3f5d1a('0x1376')][_0x3f5d1a('0x21ad')](function(_0x176e26){var _0x2e0fbf=_0x3f5d1a;_0x5a2948['info']({'title':_0x2e0fbf('0xade'),'msg':_0x2e0fbf('0xf3b')+_0x176e26[_0x2e0fbf('0x2596')]}),_0x176e26['ContactId']&&_0xd8e90d[_0x2e0fbf('0x1ec7')]['save'](_0x10c2b1(_0x47e467));})[_0x3f5d1a('0x1c1d')](function(_0x3f826d){var _0x5693bc=_0x3f5d1a;!_0x86640f()['isNil'](_0x3f826d[_0x5693bc('0x11c2')])&&_0x3f826d['data'][_0x5693bc('0x1224')]===_0x5693bc('0x22fa')?_0x5a2948[_0x5693bc('0x231c')]({'title':_0x5693bc('0x24e5'),'msg':_0x5693bc('0xf3b')+_0x47e467[_0x5693bc('0x2596')]}):_0x5a2948[_0x5693bc('0x2092')]({'title':_0x3f826d[_0x5693bc('0x209')]?_0x5693bc('0x22d')+_0x3f826d[_0x5693bc('0x209')]+_0x5693bc('0xa99')+_0x3f826d[_0x5693bc('0x1808')]:_0x5693bc('0x20f4'),'msg':_0x3f826d[_0x5693bc('0x11c2')]?JSON[_0x5693bc('0x25e')](_0x3f826d[_0x5693bc('0x11c2')][_0x5693bc('0x1224')]):_0x3f826d[_0x5693bc('0x1224')]||_0x3f826d['toString']()});}):_0x5a2948[_0x3f5d1a('0x2092')]({'title':_0x49357c[_0x3f5d1a('0x209')]?_0x3f5d1a('0x22d')+_0x49357c[_0x3f5d1a('0x209')]+_0x3f5d1a('0xa99')+_0x49357c['statusText']:_0x3f5d1a('0x20f4'),'msg':_0x49357c['data']?JSON[_0x3f5d1a('0x25e')](_0x49357c[_0x3f5d1a('0x11c2')]['message']):_0x49357c[_0x3f5d1a('0x1224')]||_0x49357c[_0x3f5d1a('0x174f')]()});});}var _0x2347d3=!![],_0x3168e2=0x1;_0x2192a6[_0x182181('0x10e8')](_0x182181('0x10ff'),function(_0x398a70,_0x28a3b4){var _0x1ddfda=_0x182181;_0x2347d3?_0x13c485(function(){_0x2347d3=![];}):(!_0x28a3b4&&(_0x3168e2=_0x5b0d52[_0x1ddfda('0x77')][_0x1ddfda('0x2376')]),_0x398a70!==_0x28a3b4&&(_0x5b0d52[_0x1ddfda('0x77')][_0x1ddfda('0x2376')]=0x1),!_0x398a70&&(_0x5b0d52[_0x1ddfda('0x77')][_0x1ddfda('0x2376')]=_0x3168e2),_0x521f4b());});}const _0x2789a2=_0x201a78;_0x571f49[_0x3877e3('0x1a81')]=[_0x3877e3('0x26'),_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$q','$translate',_0x3877e3('0x2313'),_0x3877e3('0x1850'),'$document',_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x15bc')];function _0x571f49(_0x5db8bb,_0x529475,_0x37734a,_0xd699b3,_0x271b53,_0x1f40dc,_0x228182,_0x268ea1,_0x267493,_0x418900,_0x13a8e6){var _0x5f265e=_0x3877e3,_0x22fd51=this;_0x22fd51[_0x5f265e('0x123f')]=_0x13a8e6['getCurrentUser'](),_0x22fd51[_0x5f265e('0x1c21')]={},_0x22fd51['ivrCampaignHopperHistories']={'count':0x0,'rows':[]},_0x22fd51['selectedIvrCampaignHopperHistories']=[],_0x22fd51[_0x5f265e('0x5ed')],_0x22fd51['query']={'fields':_0x5f265e('0x203'),'sort':_0x5f265e('0x51d'),'limit':0xa,'page':0x1},_0x22fd51['init']=_0x5e4a56,_0x22fd51[_0x5f265e('0x15dc')]=_0x272bd0,_0x22fd51[_0x5f265e('0xdb1')]=_0x1baae1,_0x22fd51['getIvrCampaignHopperHistories']=_0x45285e,_0x22fd51[_0x5f265e('0xc80')]=_0xd890f3,_0x22fd51['deleteIvrCampaignHopperHistory']=_0x2c62fb,_0x22fd51['deleteSelectedIvrCampaignHopperHistories']=_0x39f824;function _0x5e4a56(_0x49fbac,_0x295c16){var _0x1030aa=_0x5f265e;_0x22fd51[_0x1030aa('0x1c21')]=_0x49fbac,_0x22fd51[_0x1030aa('0x5ed')]=typeof _0x295c16!==_0x1030aa('0xddc')?_0x295c16:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x22fd51['query']['CampaignId']=_0x22fd51[_0x1030aa('0x1c21')]['id'],_0x22fd51[_0x1030aa('0x77')]['id']=_0x22fd51[_0x1030aa('0x1c21')]['id'],_0x45285e();}function _0x272bd0(_0xec1407,_0x5a0788){var _0x149db1=_0x5f265e,_0x4394da=_0x228182['confirm']()[_0x149db1('0x4b4')](_0x149db1('0x18ff'))[_0x149db1('0x276b')](_0x149db1('0x622')+(_0xec1407[_0x149db1('0x19fe')]||_0xec1407['id']&&_0x86640f()[_0x149db1('0x22e')]('hopperHistory\x20#')+_0xec1407['id']||'hopperHistory')+_0x149db1('0x2135')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x149db1('0x207'))[_0x149db1('0x1e6d')](_0x5a0788)['ok']('OK')[_0x149db1('0x3b5')](_0x149db1('0x284b'));_0x228182[_0x149db1('0x853')](_0x4394da)['then'](function(){_0x2c62fb(_0xec1407);},function(){var _0x381553=_0x149db1;console[_0x381553('0x6fb')](_0x381553('0x284b'));});}function _0x1baae1(_0x166150){var _0x44aee9=_0x5f265e;_0x22fd51[_0x44aee9('0x619')]=_0x166150||{'count':0x0,'rows':[]};}function _0x45285e(){var _0x49d89e=_0x5f265e;_0x22fd51[_0x49d89e('0x77')][_0x49d89e('0x15a5')]=(_0x22fd51[_0x49d89e('0x77')][_0x49d89e('0x2376')]-0x1)*_0x22fd51[_0x49d89e('0x77')][_0x49d89e('0x1f4a')],_0x22fd51[_0x49d89e('0x71b')]=_0x418900[_0x49d89e('0xf67')][_0x49d89e('0x743')](_0x22fd51[_0x49d89e('0x77')],_0x1baae1)[_0x49d89e('0x1376')];}function _0x2c62fb(_0x337695){var _0x21f28f=_0x5f265e;_0x418900[_0x21f28f('0x1382')]['delete']({'id':_0x337695['id']})[_0x21f28f('0x1376')][_0x21f28f('0x21ad')](function(){var _0x889f4e=_0x21f28f;_0x86640f()[_0x889f4e('0x16a2')](_0x22fd51[_0x889f4e('0x619')][_0x889f4e('0x1b33')],{'id':_0x337695['id']}),_0x22fd51['ivrCampaignHopperHistories']['count']-=0x1,!_0x22fd51['ivrCampaignHopperHistories'][_0x889f4e('0x1b33')][_0x889f4e('0x577')]&&_0x45285e(),_0x267493[_0x889f4e('0xdb1')]({'title':_0x889f4e('0x1a3b'),'msg':_0x337695[_0x889f4e('0x19fe')]?_0x337695[_0x889f4e('0x19fe')]+_0x889f4e('0xb4a'):''});})[_0x21f28f('0x1c1d')](function(_0x28931f){var _0x4f7c1c=_0x21f28f;if(_0x28931f[_0x4f7c1c('0x11c2')]&&_0x28931f[_0x4f7c1c('0x11c2')][_0x4f7c1c('0x1a69')]&&_0x28931f[_0x4f7c1c('0x11c2')]['errors'][_0x4f7c1c('0x577')]){_0x22fd51[_0x4f7c1c('0x1a69')]=_0x28931f[_0x4f7c1c('0x11c2')][_0x4f7c1c('0x1a69')]||[{'message':_0x28931f['toString'](),'type':'SYSTEM:GETcampaign'}];for(var _0x372b10=0x0;_0x372b10<_0x28931f['data']['errors'][_0x4f7c1c('0x577')];_0x372b10++){_0x267493[_0x4f7c1c('0x2092')]({'title':_0x28931f[_0x4f7c1c('0x11c2')][_0x4f7c1c('0x1a69')][_0x372b10][_0x4f7c1c('0x7fa')],'msg':_0x28931f[_0x4f7c1c('0x11c2')][_0x4f7c1c('0x1a69')][_0x372b10][_0x4f7c1c('0x1224')]});}}else _0x267493['error']({'title':_0x28931f[_0x4f7c1c('0x209')]?_0x4f7c1c('0x22d')+_0x28931f['status']+_0x4f7c1c('0xa99')+_0x28931f[_0x4f7c1c('0x1808')]:_0x4f7c1c('0x16ea'),'msg':_0x28931f[_0x4f7c1c('0x11c2')]?JSON['stringify'](_0x28931f[_0x4f7c1c('0x11c2')]['message']):_0x28931f['message']||_0x28931f[_0x4f7c1c('0x174f')]()});});}function _0xd890f3(){var _0x1200a1=_0x5f265e,_0x427029=angular[_0x1200a1('0xd75')](_0x22fd51[_0x1200a1('0x279e')]);return _0x22fd51[_0x1200a1('0x279e')]=[],_0x427029;}function _0x39f824(_0x14a958){var _0x448875=_0x5f265e,_0x1a7dd2=_0x228182[_0x448875('0xa33')]()[_0x448875('0x4b4')](_0x448875('0x1d96'))[_0x448875('0x276b')](_0x448875('0x622')+_0x22fd51[_0x448875('0x279e')][_0x448875('0x577')]+_0x448875('0xd74')+_0x448875('0x25e0'))[_0x448875('0x7a7')](_0x448875('0x12a9'))[_0x448875('0x1e6d')](_0x14a958)['ok']('OK')[_0x448875('0x3b5')](_0x448875('0x284b'));_0x228182[_0x448875('0x853')](_0x1a7dd2)[_0x448875('0x21ad')](function(){var _0x235468=_0x448875;_0x22fd51[_0x235468('0x279e')][_0x235468('0x1a52')](function(_0x5e1617){_0x2c62fb(_0x5e1617);}),_0x22fd51[_0x235468('0x279e')]=[];});}var _0x21cca2=!![],_0x596b09=0x1;_0x529475[_0x5f265e('0x10e8')](_0x5f265e('0x10ff'),function(_0x4ce6ea,_0x3fb871){var _0xf939df=_0x5f265e;_0x21cca2?_0x1f40dc(function(){_0x21cca2=![];}):(!_0x3fb871&&(_0x596b09=_0x22fd51['query'][_0xf939df('0x2376')]),_0x4ce6ea!==_0x3fb871&&(_0x22fd51[_0xf939df('0x77')][_0xf939df('0x2376')]=0x1),!_0x4ce6ea&&(_0x22fd51[_0xf939df('0x77')][_0xf939df('0x2376')]=_0x596b09),_0x45285e());});}const _0x5a2e73=_0x571f49;_0x73795f[_0x3877e3('0x1a81')]=[_0x3877e3('0x26'),_0x3877e3('0x95a'),'$state','$q','$translate',_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x15bc')];function _0x73795f(_0x2407ce,_0x173cd2,_0xc55822,_0x45a82f,_0x3a39b7,_0x345caf,_0x2478cf,_0x2c88ac,_0x368a6b,_0x562d45,_0x547174){var _0x3d5e50=_0x3877e3,_0x5940c4=this;_0x5940c4[_0x3d5e50('0x123f')]=_0x547174['getCurrentUser'](),_0x5940c4[_0x3d5e50('0x1c21')]={},_0x5940c4['ivrCampaignHoppers']={'count':0x0,'rows':[]},_0x5940c4[_0x3d5e50('0x1d9c')]=[],_0x5940c4['crudPermissions'],_0x5940c4['query']={'fields':_0x3d5e50('0x1d2a'),'sort':_0x3d5e50('0x33'),'limit':0xa,'page':0x1},_0x5940c4[_0x3d5e50('0xcdf')]=_0x86640f()[_0x3d5e50('0xcde')]([{'option':'Highest','value':_0x3d5e50('0x18fa')},{'option':_0x3d5e50('0x26b9'),'value':_0x3d5e50('0x916')},{'option':_0x3d5e50('0x68f'),'value':_0x3d5e50('0x1365')},{'option':_0x3d5e50('0x1cbc'),'value':_0x3d5e50('0x1bf7')},{'option':_0x3d5e50('0x109b'),'value':_0x3d5e50('0xe41')}],function(_0x282179){var _0x64c9e7=_0x3d5e50;return _0x86640f()[_0x64c9e7('0x16e4')](_0x282179[_0x64c9e7('0x2228')],new RegExp('\x27','g'),'');}),_0x5940c4[_0x3d5e50('0x1d75')]=_0x47741c,_0x5940c4['deleteConfirm']=_0x46c4ae,_0x5940c4[_0x3d5e50('0xdb1')]=_0xb7ae9c,_0x5940c4[_0x3d5e50('0x567')]=_0x3102e5,_0x5940c4[_0x3d5e50('0xe46')]=_0x30825d,_0x5940c4[_0x3d5e50('0xb24')]=_0x341323,_0x5940c4['deleteIvrCampaignHopper']=_0x528c46,_0x5940c4[_0x3d5e50('0x202e')]=_0x44f314,_0x547174[_0x3d5e50('0x21de')](_0x3d5e50('0x1bd8'))?_0x562d45[_0x3d5e50('0x1775')][_0x3d5e50('0x595')]({'fields':_0x3d5e50('0x1aa8'),'role':_0x3d5e50('0x2402'),'sort':'name','nolimit':'true'})[_0x3d5e50('0x1376')][_0x3d5e50('0x21ad')](function(_0x5dbdd9){var _0x5bfad6=_0x3d5e50;_0x5940c4[_0x5bfad6('0xcb5')]=_0x5dbdd9[_0x5bfad6('0x1b33')]||[];})[_0x3d5e50('0x1c1d')](function(_0xd08428){var _0x1c6770=_0x3d5e50;_0x368a6b['error']({'title':_0xd08428['status']?_0x1c6770('0x22d')+_0xd08428[_0x1c6770('0x209')]+_0x1c6770('0xa99')+_0xd08428['statusText']:_0x1c6770('0x1381'),'msg':_0xd08428['data']?JSON[_0x1c6770('0x25e')](_0xd08428['data']):_0xd08428[_0x1c6770('0x174f')]()});}):_0x562d45[_0x3d5e50('0x1775')]['get']({'fields':'id,name','role':'agent','sort':_0x3d5e50('0x19fe'),'nolimit':_0x3d5e50('0x19bd')})[_0x3d5e50('0x1376')][_0x3d5e50('0x21ad')](function(_0x4b6058){var _0x24108c=_0x3d5e50;_0x5940c4[_0x24108c('0xcb5')]=_0x4b6058['rows']||[];})['then'](function(){var _0x4f89fe=_0x3d5e50;return _0x562d45[_0x4f89fe('0xab4')][_0x4f89fe('0x595')]({'userProfileId':_0x5940c4[_0x4f89fe('0x123f')]['userProfileId'],'sectionId':0xca})['$promise'];})[_0x3d5e50('0x21ad')](function(_0x48866f){var _0x4e75fc=_0x3d5e50,_0x2cd54f=_0x48866f&&_0x48866f[_0x4e75fc('0x1b33')]?_0x48866f[_0x4e75fc('0x1b33')][0x0]:null;if(!_0x2cd54f)_0x5940c4[_0x4e75fc('0xcb5')]=[];else{if(!_0x2cd54f[_0x4e75fc('0x80c')])return _0x562d45[_0x4e75fc('0x185e')][_0x4e75fc('0x595')]({'sectionId':_0x2cd54f['id']})[_0x4e75fc('0x1376')][_0x4e75fc('0x21ad')](function(_0x47171d){var _0x3aea63=_0x4e75fc,_0x4ebe64=_0x86640f()[_0x3aea63('0x26c3')](_0x47171d[_0x3aea63('0x1b33')],function(_0x35b997){var _0x573b1b=_0x3aea63;return _0x86640f()['find'](_0x5940c4[_0x573b1b('0xcb5')],{'id':_0x35b997[_0x573b1b('0x675')]});});_0x5940c4['agents'][_0x3aea63('0x1a52')](function(_0x4b022e){var _0xaadebe=_0x3aea63;!_0x86640f()[_0xaadebe('0x2664')](_0x4ebe64,['id',_0x4b022e['id']])&&(_0x4b022e[_0xaadebe('0xba')]=![]),_0x4ebe64[_0xaadebe('0x206c')](_0x4b022e);}),_0x5940c4[_0x3aea63('0xcb5')]=_0x4ebe64;});}})[_0x3d5e50('0x1c1d')](function(_0x11952b){var _0x219a11=_0x3d5e50;_0x368a6b[_0x219a11('0x2092')]({'title':_0x11952b[_0x219a11('0x209')]?'API:'+_0x11952b[_0x219a11('0x209')]+_0x219a11('0xa99')+_0x11952b[_0x219a11('0x1808')]:_0x219a11('0x2f9'),'msg':_0x11952b[_0x219a11('0x11c2')]?JSON['stringify'](_0x11952b[_0x219a11('0x11c2')]):_0x11952b[_0x219a11('0x174f')]()});});function _0x47741c(_0x360d31,_0x3278ba){var _0x4bb6b5=_0x3d5e50;_0x5940c4[_0x4bb6b5('0x1c21')]=_0x360d31,_0x5940c4[_0x4bb6b5('0x5ed')]=typeof _0x3278ba!==_0x4bb6b5('0xddc')?_0x3278ba:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5940c4['query'][_0x4bb6b5('0x23b6')]=_0x5940c4[_0x4bb6b5('0x1c21')]['id'],_0x5940c4[_0x4bb6b5('0x77')]['id']=_0x5940c4[_0x4bb6b5('0x1c21')]['id'],_0x3102e5();}function _0x46c4ae(_0x486904,_0x1dea67){var _0x4e2413=_0x3d5e50,_0x55a810=_0x2478cf['confirm']()[_0x4e2413('0x4b4')](_0x4e2413('0x86f'))[_0x4e2413('0x276b')](''+(_0x486904[_0x4e2413('0x19fe')]||_0x486904['id']&&_0x86640f()[_0x4e2413('0x22e')]('hopper\x20#')+_0x486904['id']||_0x4e2413('0x155d'))+''+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20hopper')['targetEvent'](_0x1dea67)['ok']('OK')['cancel'](_0x4e2413('0x284b'));_0x2478cf[_0x4e2413('0x853')](_0x55a810)[_0x4e2413('0x21ad')](function(){_0x528c46(_0x486904);},function(){var _0x2ffce8=_0x4e2413;console[_0x2ffce8('0x6fb')](_0x2ffce8('0x284b'));});}function _0xb7ae9c(_0x251223){var _0x91b0ef=_0x3d5e50;_0x5940c4[_0x91b0ef('0xec5')]=_0x251223||{'count':0x0,'rows':[]};}function _0x3102e5(){var _0x24f2ff=_0x3d5e50;_0x5940c4['query'][_0x24f2ff('0x15a5')]=(_0x5940c4[_0x24f2ff('0x77')]['page']-0x1)*_0x5940c4[_0x24f2ff('0x77')][_0x24f2ff('0x1f4a')],_0x5940c4[_0x24f2ff('0x71b')]=_0x562d45['campaign'][_0x24f2ff('0x252b')](_0x5940c4['query'],_0xb7ae9c)[_0x24f2ff('0x1376')];}function _0x30825d(_0x1c515d,_0x574783){var _0xe685d8=_0x3d5e50;_0x2478cf[_0xe685d8('0x853')]({'controller':_0xe685d8('0xe6f'),'controllerAs':'vm','templateUrl':_0x5b5704,'parent':angular[_0xe685d8('0x1676')](_0x2c88ac[_0xe685d8('0x2452')]),'targetEvent':_0x1c515d,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x5940c4[_0xe685d8('0x1c21')],'hopper':_0x574783,'hoppers':_0x5940c4[_0xe685d8('0xec5')]['rows'],'license':null,'setting':null,'crudPermissions':_0x5940c4[_0xe685d8('0x5ed')]}});}function _0x528c46(_0x40be65){var _0x46e70c=_0x3d5e50;_0x562d45[_0x46e70c('0x1b37')][_0x46e70c('0x1164')]({'id':_0x40be65['id']})[_0x46e70c('0x1376')][_0x46e70c('0x21ad')](function(){var _0x23603b=_0x46e70c;_0x86640f()[_0x23603b('0x16a2')](_0x5940c4[_0x23603b('0xec5')][_0x23603b('0x1b33')],{'id':_0x40be65['id']}),_0x5940c4[_0x23603b('0xec5')][_0x23603b('0x205f')]-=0x1,!_0x5940c4[_0x23603b('0xec5')][_0x23603b('0x1b33')]['length']&&_0x3102e5(),_0x368a6b[_0x23603b('0xdb1')]({'title':_0x23603b('0x1fb4'),'msg':_0x40be65['name']?_0x40be65['name']+_0x23603b('0xb4a'):''});})[_0x46e70c('0x1c1d')](function(_0x51c097){var _0x3309b1=_0x46e70c;if(_0x51c097[_0x3309b1('0x11c2')]&&_0x51c097[_0x3309b1('0x11c2')]['errors']&&_0x51c097[_0x3309b1('0x11c2')][_0x3309b1('0x1a69')][_0x3309b1('0x577')]){_0x5940c4[_0x3309b1('0x1a69')]=_0x51c097['data'][_0x3309b1('0x1a69')]||[{'message':_0x51c097[_0x3309b1('0x174f')](),'type':_0x3309b1('0x16ea')}];for(var _0x169811=0x0;_0x169811<_0x51c097[_0x3309b1('0x11c2')][_0x3309b1('0x1a69')][_0x3309b1('0x577')];_0x169811++){_0x368a6b[_0x3309b1('0x2092')]({'title':_0x51c097['data'][_0x3309b1('0x1a69')][_0x169811]['type'],'msg':_0x51c097[_0x3309b1('0x11c2')]['errors'][_0x169811]['message']});}}else _0x368a6b[_0x3309b1('0x2092')]({'title':_0x51c097[_0x3309b1('0x209')]?_0x3309b1('0x22d')+_0x51c097[_0x3309b1('0x209')]+_0x3309b1('0xa99')+_0x51c097[_0x3309b1('0x1808')]:_0x3309b1('0x16ea'),'msg':_0x51c097['data']?JSON['stringify'](_0x51c097[_0x3309b1('0x11c2')]['message']):_0x51c097[_0x3309b1('0x1224')]||_0x51c097[_0x3309b1('0x174f')]()});});}function _0x341323(){var _0x25cb3b=_0x3d5e50,_0x16b07a=angular[_0x25cb3b('0xd75')](_0x5940c4[_0x25cb3b('0x1d9c')]);return _0x5940c4['selectedIvrCampaignHoppers']=[],_0x16b07a;}function _0x44f314(_0x3a5d9d){var _0x17f681=_0x3d5e50,_0x40057e=_0x2478cf[_0x17f681('0xa33')]()[_0x17f681('0x4b4')](_0x17f681('0x14da'))[_0x17f681('0x276b')](_0x17f681('0x622')+_0x5940c4[_0x17f681('0x1d9c')]['length']+_0x17f681('0xd74')+_0x17f681('0x25e0'))['ariaLabel'](_0x17f681('0x21ae'))[_0x17f681('0x1e6d')](_0x3a5d9d)['ok']('OK')[_0x17f681('0x3b5')](_0x17f681('0x284b'));_0x2478cf[_0x17f681('0x853')](_0x40057e)['then'](function(){var _0x4a7175=_0x17f681;_0x5940c4['selectedIvrCampaignHoppers'][_0x4a7175('0x1a52')](function(_0x33d60c){_0x528c46(_0x33d60c);}),_0x5940c4[_0x4a7175('0x1d9c')]=[];});}var _0x382752=!![],_0x5553cd=0x1;_0x173cd2[_0x3d5e50('0x10e8')](_0x3d5e50('0x10ff'),function(_0x533a4d,_0x38904f){var _0xd2a550=_0x3d5e50;_0x382752?_0x345caf(function(){_0x382752=![];}):(!_0x38904f&&(_0x5553cd=_0x5940c4[_0xd2a550('0x77')]['page']),_0x533a4d!==_0x38904f&&(_0x5940c4['query']['page']=0x1),!_0x533a4d&&(_0x5940c4[_0xd2a550('0x77')][_0xd2a550('0x2376')]=_0x5553cd),_0x3102e5());});}const _0x2c8f9d=_0x73795f;_0x4a8b1a[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q','$translate','toasty',_0x3877e3('0x14b5'),_0x3877e3('0x155d'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting',_0x3877e3('0x5ed')];function _0x4a8b1a(_0x175ee0,_0x14908b,_0x66b745,_0x11f878,_0x3af93d,_0x5a3387,_0x1f385d,_0x596c4c,_0x20d623,_0x5bc9c3,_0x1eacfd,_0x3a0868,_0x45478c,_0xa380be){var _0x5989f7=_0x3877e3,_0x3035aa=this;_0x3035aa[_0x5989f7('0x123f')]=_0x1eacfd[_0x5989f7('0x15ed')](),_0x3035aa[_0x5989f7('0x1a69')]=[],_0x3035aa[_0x5989f7('0x21e')]=_0x45478c,_0x3035aa['license']=_0x3a0868,_0x3035aa[_0x5989f7('0x5ed')]=_0xa380be,_0x3035aa[_0x5989f7('0x126a')]={},_0x3035aa[_0x5989f7('0x1432')]=_0x3035aa[_0x5989f7('0x21e')]&&_0x3035aa[_0x5989f7('0x21e')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3035aa['title']=_0x5989f7('0x6e9'),_0x3035aa['hopper']=angular[_0x5989f7('0xd75')](_0x20d623),_0x3035aa[_0x5989f7('0x14b5')]=_0x596c4c,_0x3035aa['newHopper']=![];!_0x3035aa[_0x5989f7('0x155d')]&&(_0x3035aa[_0x5989f7('0x155d')]={},_0x3035aa['title']=_0x5989f7('0x2747'),_0x3035aa['newHopper']=!![]);_0x14908b['params']['id']&&(_0x3035aa[_0x5989f7('0x155d')]['CampaignId']=_0x14908b[_0x5989f7('0x171b')]['id']);_0x3035aa[_0x5989f7('0xa78')]=_0x5b059f,_0x3035aa[_0x5989f7('0x173d')]=_0x1df7b8,_0x3035aa[_0x5989f7('0x15d')]=_0x5232ee,_0x3035aa[_0x5989f7('0x279')]=_0x32f492,_0x3035aa[_0x5989f7('0x167')]=_0x4e1134,_0x1eacfd['hasRole'](_0x5989f7('0x1bd8'))?_0x5bc9c3['user'][_0x5989f7('0x595')]({'fields':_0x5989f7('0x1aa8'),'role':'agent','sort':_0x5989f7('0x19fe'),'nolimit':'true'})[_0x5989f7('0x1376')][_0x5989f7('0x21ad')](function(_0x15eaf3){var _0x3ae877=_0x5989f7;_0x3035aa[_0x3ae877('0xcb5')]=_0x15eaf3[_0x3ae877('0x1b33')]||[];})[_0x5989f7('0x1c1d')](function(_0x5c5ff6){var _0x45b0ac=_0x5989f7;_0x1f385d[_0x45b0ac('0x2092')]({'title':_0x5c5ff6['status']?_0x45b0ac('0x22d')+_0x5c5ff6[_0x45b0ac('0x209')]+_0x45b0ac('0xa99')+_0x5c5ff6[_0x45b0ac('0x1808')]:_0x45b0ac('0x1381'),'msg':_0x5c5ff6[_0x45b0ac('0x11c2')]?JSON['stringify'](_0x5c5ff6[_0x45b0ac('0x11c2')]):_0x5c5ff6['toString']()});}):_0x5bc9c3[_0x5989f7('0x1775')][_0x5989f7('0x595')]({'fields':_0x5989f7('0x1aa8'),'role':_0x5989f7('0x2402'),'sort':'name','nolimit':_0x5989f7('0x19bd')})[_0x5989f7('0x1376')][_0x5989f7('0x21ad')](function(_0x130e48){var _0x361744=_0x5989f7;_0x3035aa['agents']=_0x130e48[_0x361744('0x1b33')]||[];})[_0x5989f7('0x21ad')](function(){var _0x46c0e6=_0x5989f7;return _0x5bc9c3[_0x46c0e6('0xab4')][_0x46c0e6('0x595')]({'userProfileId':_0x3035aa['currentUser'][_0x46c0e6('0x1618')],'sectionId':0xca})[_0x46c0e6('0x1376')];})['then'](function(_0x42ff1f){var _0x476977=_0x5989f7,_0x5c5448=_0x42ff1f&&_0x42ff1f[_0x476977('0x1b33')]?_0x42ff1f['rows'][0x0]:null;if(!_0x5c5448)_0x3035aa[_0x476977('0xcb5')]=[];else{if(!_0x5c5448[_0x476977('0x80c')])return _0x5bc9c3[_0x476977('0x185e')][_0x476977('0x595')]({'sectionId':_0x5c5448['id']})[_0x476977('0x1376')][_0x476977('0x21ad')](function(_0x28cf43){var _0x2dd2bc=_0x476977,_0x3cd2a3=_0x86640f()[_0x2dd2bc('0x26c3')](_0x28cf43[_0x2dd2bc('0x1b33')],function(_0x2f7d12){var _0x11d5d8=_0x2dd2bc;return _0x86640f()['find'](_0x3035aa[_0x11d5d8('0xcb5')],{'id':_0x2f7d12['resourceId']});});_0x3035aa[_0x2dd2bc('0xcb5')][_0x2dd2bc('0x1a52')](function(_0x1a68f2){var _0x2b53e8=_0x2dd2bc;!_0x86640f()[_0x2b53e8('0x2664')](_0x3cd2a3,['id',_0x1a68f2['id']])&&(_0x1a68f2[_0x2b53e8('0xba')]=![]),_0x3cd2a3['push'](_0x1a68f2);}),_0x3035aa[_0x2dd2bc('0xcb5')]=_0x3cd2a3;});}})[_0x5989f7('0x1c1d')](function(_0x27bea7){var _0x595c12=_0x5989f7;_0x1f385d['error']({'title':_0x27bea7[_0x595c12('0x209')]?'API:'+_0x27bea7['status']+'\x20-\x20'+_0x27bea7['statusText']:_0x595c12('0x2f9'),'msg':_0x27bea7[_0x595c12('0x11c2')]?JSON[_0x595c12('0x25e')](_0x27bea7[_0x595c12('0x11c2')]):_0x27bea7[_0x595c12('0x174f')]()});});function _0x5b059f(){var _0x3d2049=_0x5989f7;_0x3035aa[_0x3d2049('0x1a69')]=[],_0x5bc9c3[_0x3d2049('0x1b37')]['save'](_0x3035aa[_0x3d2049('0x155d')])[_0x3d2049('0x1376')]['then'](function(_0x571f51){var _0x372724=_0x3d2049;_0x3035aa[_0x372724('0x14b5')][_0x372724('0xd0c')](_0x571f51[_0x372724('0x3bc')]()),_0x1f385d['success']({'title':_0x372724('0x1242'),'msg':_0x3035aa[_0x372724('0x155d')][_0x372724('0x19fe')]?_0x3035aa[_0x372724('0x155d')][_0x372724('0x19fe')]+_0x372724('0x1694'):''}),_0x4e1134(_0x571f51);})[_0x3d2049('0x1c1d')](function(_0x475bf8){var _0x3dda70=_0x3d2049;if(_0x475bf8[_0x3dda70('0x11c2')]&&_0x475bf8[_0x3dda70('0x11c2')][_0x3dda70('0x1a69')]&&_0x475bf8[_0x3dda70('0x11c2')]['errors'][_0x3dda70('0x577')]){_0x3035aa['errors']=_0x475bf8[_0x3dda70('0x11c2')][_0x3dda70('0x1a69')]||[{'message':_0x475bf8[_0x3dda70('0x174f')](),'type':_0x3dda70('0x178c')}];for(var _0x15d379=0x0;_0x15d379<_0x475bf8[_0x3dda70('0x11c2')][_0x3dda70('0x1a69')][_0x3dda70('0x577')];_0x15d379+=0x1){_0x1f385d[_0x3dda70('0x2092')]({'title':_0x475bf8[_0x3dda70('0x11c2')][_0x3dda70('0x1a69')][_0x15d379]['type'],'msg':_0x475bf8[_0x3dda70('0x11c2')][_0x3dda70('0x1a69')][_0x15d379][_0x3dda70('0x1224')]});}}else _0x1f385d[_0x3dda70('0x2092')]({'title':_0x475bf8[_0x3dda70('0x209')]?_0x3dda70('0x22d')+_0x475bf8[_0x3dda70('0x209')]+_0x3dda70('0xa99')+_0x475bf8[_0x3dda70('0x1808')]:_0x3dda70('0x178c'),'msg':_0x475bf8[_0x3dda70('0x11c2')]?JSON[_0x3dda70('0x25e')](_0x475bf8[_0x3dda70('0x11c2')]['message']):_0x475bf8[_0x3dda70('0x174f')]()});});}function _0x1df7b8(){var _0x5b9cf9=_0x5989f7;_0x3035aa[_0x5b9cf9('0x1a69')]=[];var _0x408ddc,_0x2f271a,_0x585b36,_0x400f20;_0x3035aa[_0x5b9cf9('0x155d')][_0x5b9cf9('0x1dc6')]=_0x3035aa[_0x5b9cf9('0x155d')][_0x5b9cf9('0xe15')]?_0x3035aa[_0x5b9cf9('0x155d')][_0x5b9cf9('0x1dc6')]:null,_0x3035aa[_0x5b9cf9('0x155d')][_0x5b9cf9('0x17f2')]=_0x1eacfd[_0x5b9cf9('0x15ed')]()['id'],_0x5bc9c3['cmHopper']['get']({'id':_0x3035aa[_0x5b9cf9('0x155d')]['id'],'attributes':[_0x5b9cf9('0x141a')]})[_0x5b9cf9('0x1376')][_0x5b9cf9('0x21ad')](function(_0x4b8069){var _0x2a18b8=_0x5b9cf9;_0x86640f()[_0x2a18b8('0x1c7')](_0x4b8069)||_0x86640f()['isEmpty'](_0x4b8069)?_0x408ddc=_0x1088bc()()[_0x2a18b8('0x153')](_0x2a18b8('0x1e15')):_0x408ddc=_0x4b8069['scheduledat'];})[_0x5b9cf9('0x13e')](function(){var _0x2d45aa=_0x5b9cf9;_0x5bc9c3[_0x2d45aa('0x1b37')][_0x2d45aa('0x5ef')]({'id':_0x3035aa[_0x2d45aa('0x155d')]['id']},_0x86640f()[_0x2d45aa('0x27b1')](_0x3035aa[_0x2d45aa('0x155d')],['VoiceQueueId','CampaignId',_0x2d45aa('0x2596'),'ListId']))[_0x2d45aa('0x1376')][_0x2d45aa('0x21ad')](function(_0x4c5db3){var _0x2364d7=_0x2d45aa;_0x2f271a=_0x4c5db3,_0x5bc9c3[_0x2364d7('0x25dc')][_0x2364d7('0x595')]({'id':_0x2f271a['ContactId'],'attributes':[_0x2364d7('0x992'),_0x2364d7('0x6d')]})[_0x2364d7('0x1376')][_0x2364d7('0x21ad')](function(_0x1e376c){var _0x1f9cc9=_0x2364d7;!_0x86640f()[_0x1f9cc9('0x1c7')](_0x1e376c)&&!_0x86640f()[_0x1f9cc9('0x1c7')](_0x1e376c[_0x1f9cc9('0x992')])&&(_0x585b36=_0x1e376c[_0x1f9cc9('0x992')],!_0x86640f()[_0x1f9cc9('0x1c7')](_0x1e376c[_0x1f9cc9('0x6d')])&&(_0x585b36+='\x20'+_0x1e376c['lastName']));})['catch'](function(){_0x585b36=undefined;})[_0x2364d7('0x13e')](function(){var _0x51d715=_0x2364d7;_0x5bc9c3[_0x51d715('0xf67')][_0x51d715('0x595')]({'raw':![],'id':_0x2f271a[_0x51d715('0x23b6')],'attributes':[_0x51d715('0x19fe')]})['$promise'][_0x51d715('0x21ad')](function(_0x3ded87){_0x400f20=_0x3ded87['name'];})[_0x51d715('0x1c1d')](function(){_0x400f20=undefined;})['finally'](function(){var _0x43169c=_0x51d715;_0x5bc9c3[_0x43169c('0x1ec7')][_0x43169c('0x186f')]({'state':0x18,'statedesc':'Edited','scheduledat':_0x408ddc,'calleridnum':_0x2f271a[_0x43169c('0x159e')],'calleridname':_0x585b36,'campaigntype':_0x2f271a[_0x43169c('0xe90')]?_0x43169c('0xbdd'):_0x43169c('0x9d8'),'campaign':_0x400f20,'editedat':_0x1088bc()()[_0x43169c('0x153')]('YYYY-MM-DD\x20HH:mm:ss'),'edited':!![],'ListId':_0x2f271a[_0x43169c('0x815')],'UserId':_0x1eacfd[_0x43169c('0x15ed')]()['id'],'VoiceQueueId':_0x2f271a[_0x43169c('0xe90')],'CampaignId':_0x2f271a['CampaignId'],'ContactId':_0x2f271a[_0x43169c('0x2596')],'callback':_0x2f271a['callback'],'callbackuniqueid':_0x2f271a['callbackuniqueid'],'countbusyretry':_0x2f271a[_0x43169c('0x1228')],'countcongestionretry':_0x2f271a['countcongestionretry'],'countglobal':_0x2f271a['countglobal'],'countnoanswerretry':_0x2f271a[_0x43169c('0x25f7')],'followuptime':_0x2f271a[_0x43169c('0x72e')],'recallme':_0x2f271a['recallme']});});});var _0x21d5cc=_0x86640f()[_0x2364d7('0x1d2e')](_0x3035aa['hoppers'],{'id':_0x4c5db3['id']});_0x21d5cc&&_0x86640f()[_0x2364d7('0xd0e')](_0x21d5cc,_0x86640f()[_0x2364d7('0xc50')](_0x4c5db3[_0x2364d7('0x3bc')](),_0x86640f()[_0x2364d7('0x223b')](_0x21d5cc))),_0x1f385d[_0x2364d7('0xdb1')]({'title':'Hopper\x20properly\x20saved!','msg':_0x3035aa[_0x2364d7('0x155d')]['name']?_0x3035aa[_0x2364d7('0x155d')][_0x2364d7('0x19fe')]+_0x2364d7('0x2249'):''}),_0x4e1134(_0x4c5db3);})[_0x2d45aa('0x1c1d')](function(_0x5924a2){var _0x2d612a=_0x2d45aa;if(_0x5924a2[_0x2d612a('0x11c2')]&&_0x5924a2[_0x2d612a('0x11c2')]['errors']&&_0x5924a2['data'][_0x2d612a('0x1a69')][_0x2d612a('0x577')]){_0x3035aa['errors']=_0x5924a2[_0x2d612a('0x11c2')][_0x2d612a('0x1a69')]||[{'message':_0x5924a2[_0x2d612a('0x174f')](),'type':_0x2d612a('0xbd6')}];for(var _0x588a92=0x0;_0x588a92<_0x5924a2[_0x2d612a('0x11c2')][_0x2d612a('0x1a69')][_0x2d612a('0x577')];_0x588a92++){_0x1f385d[_0x2d612a('0x2092')]({'title':_0x5924a2['data']['errors'][_0x588a92][_0x2d612a('0x7fa')],'msg':_0x5924a2[_0x2d612a('0x11c2')][_0x2d612a('0x1a69')][_0x588a92][_0x2d612a('0x1224')]});}}else _0x1f385d[_0x2d612a('0x2092')]({'title':_0x5924a2[_0x2d612a('0x209')]?_0x2d612a('0x22d')+_0x5924a2[_0x2d612a('0x209')]+_0x2d612a('0xa99')+_0x5924a2[_0x2d612a('0x1808')]:_0x2d612a('0xbd6'),'msg':_0x5924a2[_0x2d612a('0x11c2')]?JSON[_0x2d612a('0x25e')](_0x5924a2[_0x2d612a('0x11c2')][_0x2d612a('0x1224')]):_0x5924a2[_0x2d612a('0x174f')]()});});});}function _0x5232ee(_0x9fa8ba){var _0x40de4c=_0x5989f7;_0x3035aa[_0x40de4c('0x1a69')]=[];var _0x263609=_0x11f878[_0x40de4c('0xa33')]()['title'](_0x40de4c('0x196b'))[_0x40de4c('0x13fb')](_0x40de4c('0xfe6'))['ariaLabel'](_0x40de4c('0x263f'))['ok']('Delete')[_0x40de4c('0x3b5')](_0x40de4c('0x1f40'))[_0x40de4c('0x1e6d')](_0x9fa8ba);_0x11f878[_0x40de4c('0x853')](_0x263609)[_0x40de4c('0x21ad')](function(){var _0x233bce=_0x40de4c;_0x5bc9c3['cmHopper'][_0x233bce('0x1164')]({'id':_0x3035aa[_0x233bce('0x155d')]['id']})[_0x233bce('0x1376')][_0x233bce('0x21ad')](function(){var _0x2ab333=_0x233bce;_0x86640f()['remove'](_0x3035aa[_0x2ab333('0x14b5')],{'id':_0x3035aa[_0x2ab333('0x155d')]['id']}),_0x1f385d['success']({'title':'Hopper\x20properly\x20deleted!','msg':(_0x3035aa['hopper'][_0x2ab333('0x19fe')]||_0x2ab333('0x155d'))+'\x20has\x20been\x20deleted!'}),_0x4e1134(_0x3035aa[_0x2ab333('0x155d')]);})['catch'](function(_0x689ae7){var _0x484f51=_0x233bce;if(_0x689ae7[_0x484f51('0x11c2')]&&_0x689ae7[_0x484f51('0x11c2')][_0x484f51('0x1a69')]&&_0x689ae7['data'][_0x484f51('0x1a69')]['length']){_0x3035aa['errors']=_0x689ae7[_0x484f51('0x11c2')][_0x484f51('0x1a69')]||[{'message':_0x689ae7[_0x484f51('0x174f')](),'type':_0x484f51('0x73e')}];for(var _0x254935=0x0;_0x254935<_0x689ae7['data'][_0x484f51('0x1a69')][_0x484f51('0x577')];_0x254935++){_0x1f385d[_0x484f51('0x2092')]({'title':_0x689ae7['data'][_0x484f51('0x1a69')][_0x254935]['type'],'msg':_0x689ae7[_0x484f51('0x11c2')]['errors'][_0x254935][_0x484f51('0x1224')]});}}else _0x1f385d[_0x484f51('0x2092')]({'title':_0x689ae7[_0x484f51('0x209')]?_0x484f51('0x22d')+_0x689ae7[_0x484f51('0x209')]+_0x484f51('0xa99')+_0x689ae7[_0x484f51('0x1808')]:'api.cmHopper.delete','msg':_0x689ae7[_0x484f51('0x11c2')]?JSON[_0x484f51('0x25e')](_0x689ae7[_0x484f51('0x11c2')][_0x484f51('0x1224')]):_0x689ae7[_0x484f51('0x1224')]||_0x689ae7[_0x484f51('0x174f')]()});});},function(){});}function _0x32f492(_0x4591ea){return _0x4591ea===null?undefined:new Date(_0x4591ea);}function _0x4e1134(_0x3a4fa2){var _0x24f4bb=_0x5989f7;_0x11f878[_0x24f4bb('0x1c24')](_0x3a4fa2);}}const _0xf52634=_0x4a8b1a;_0x355936[_0x3877e3('0x1a81')]=['api','toasty'];function _0x355936(_0x507222,_0x18bab8){var _0x322aa1=_0x3877e3,_0x126fe8=this;_0x126fe8[_0x322aa1('0x1c21')]={},_0x126fe8[_0x322aa1('0x1d75')]=_0x1b645a;function _0x1b645a(_0x1f93f7){var _0x5977e5=_0x322aa1;_0x126fe8[_0x5977e5('0x1c21')]=_0x1f93f7,_0x507222['cmHopper'][_0x5977e5('0x595')]({'limit':0x0,'CampaignId':_0x1f93f7['id']})[_0x5977e5('0x1376')][_0x5977e5('0x21ad')](function(_0x499fa1){var _0x2382b6=_0x5977e5;return _0x126fe8[_0x2382b6('0x16f0')]=_0x499fa1[_0x2382b6('0x205f')]||0x0,_0x507222['cmHopper'][_0x2382b6('0x595')]({'limit':0x0,'CampaignId':_0x1f93f7['id'],'active':![],'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0})['$promise'];})['then'](function(_0x51bcdb){var _0x1395d3=_0x5977e5;return _0x126fe8[_0x1395d3('0x206f')]=_0x51bcdb[_0x1395d3('0x205f')]||0x0,_0x507222[_0x1395d3('0x10d9')]['get']({'limit':0x0,'CampaignId':_0x1f93f7['id']})[_0x1395d3('0x1376')];})['then'](function(_0x1d7e4e){var _0x5e1fad=_0x5977e5;_0x126fe8[_0x5e1fad('0x14ba')]=_0x1d7e4e[_0x5e1fad('0x205f')]||0x0;})[_0x5977e5('0x1c1d')](function(_0x4f8db4){var _0x5ac86e=_0x5977e5;_0x18bab8[_0x5ac86e('0x2092')]({'title':_0x4f8db4[_0x5ac86e('0x209')]?'API:'+_0x4f8db4['status']+_0x5ac86e('0xa99')+_0x4f8db4['statusText']:_0x5ac86e('0x25ce'),'msg':_0x4f8db4[_0x5ac86e('0x11c2')]?JSON[_0x5ac86e('0x25e')](_0x4f8db4[_0x5ac86e('0x11c2')]):_0x4f8db4[_0x5ac86e('0x174f')]()});});}}const _0x1f78d4=_0x355936;_0x28576a[_0x3877e3('0x1a81')]=['$mdDialog','$q',_0x3877e3('0x1908'),_0x3877e3('0xccd'),'ivrCampaign','$translate','$timeout',_0x3877e3('0x15bc'),'crudPermissions'];function _0x28576a(_0x579862,_0x5ccc65,_0x4be0db,_0x156315,_0x32ab02,_0x1a892a,_0x292ff2,_0x3b51de,_0x5eadde){var _0x185eea=_0x3877e3,_0x1abc81=this;_0x1abc81[_0x185eea('0x123f')]=_0x3b51de['getCurrentUser'](),_0x1abc81['ivrCampaign']=_0x32ab02,_0x1abc81[_0x185eea('0x5ed')]=_0x5eadde,_0x1abc81['apiRoute']=_0x185eea('0xf67'),_0x1abc81['getApi']='getLists',_0x1abc81['addApi']=_0x185eea('0x17fd'),_0x1abc81[_0x185eea('0x66a')]=_0x185eea('0xd92'),_0x1abc81[_0x185eea('0x1b9a')]=[],_0x1abc81['allowedItems']=[],_0x1abc81[_0x185eea('0x2629')]=[],_0x1abc81[_0x185eea('0x91b')]=[],_0x1abc81[_0x185eea('0x2584')]=[],_0x1abc81[_0x185eea('0x1bb9')]=![],_0x1abc81[_0x185eea('0x27c0')]=![],_0x1abc81[_0x185eea('0x909')]={'readOnly':!_0x1abc81[_0x185eea('0x5ed')][_0x185eea('0x6e2')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':_0x185eea('0x19fe'),'line1':'name','line2':'','line3':'','labelAll':_0x1a892a[_0x185eea('0x183e')](_0x185eea('0x189c')),'labelSelected':_0x1a892a['instant'](_0x185eea('0x986')),'transferCallback':function _0x4734d0(){var _0x359906=_0x185eea,_0x501e63=_0x86640f()['xorBy'](_0x1abc81[_0x359906('0x2584')],_0x1abc81[_0x359906('0x2629')],'id');_0x1abc81[_0x359906('0x1bb9')]=_0x86640f()['isEmpty'](_0x501e63)?![]:!![];}},_0x1abc81[_0x185eea('0x1081')]=_0x4b6feb,_0x1abc81[_0x185eea('0x20a8')]=_0x409c91,_0x1abc81[_0x185eea('0x167')]=_0x394b71;function _0x4b6feb(){var _0x238c30=_0x185eea;return _0x3b51de[_0x238c30('0x21de')](_0x238c30('0x1bd8'))?_0x111395()[_0x238c30('0x1c1d')](function(_0x34408b){var _0x52ed4a=_0x238c30;_0x4be0db[_0x52ed4a('0x2092')]({'title':_0x34408b['status']?'API:'+_0x34408b[_0x52ed4a('0x209')]+'\x20-\x20'+_0x34408b[_0x52ed4a('0x1808')]:_0x52ed4a('0xcc3'),'msg':_0x34408b['status']?JSON[_0x52ed4a('0x25e')](_0x34408b[_0x52ed4a('0x11c2')]):_0x34408b[_0x52ed4a('0x174f')]()});}):_0x4d756c()[_0x238c30('0x21ad')](function(_0x4771c3){var _0x1a2c5d=_0x238c30;return _0x1abc81[_0x1a2c5d('0x26ad')]=_0x4771c3,_0x111395();})['catch'](function(_0x5866db){var _0x4f3eb9=_0x238c30;_0x4be0db[_0x4f3eb9('0x2092')]({'title':_0x5866db['status']?_0x4f3eb9('0x22d')+_0x5866db[_0x4f3eb9('0x209')]+_0x4f3eb9('0xa99')+_0x5866db[_0x4f3eb9('0x1808')]:'SYSTEM:GETLISTS','msg':_0x5866db[_0x4f3eb9('0x209')]?JSON[_0x4f3eb9('0x25e')](_0x5866db[_0x4f3eb9('0x11c2')]):_0x5866db[_0x4f3eb9('0x174f')]()});});}function _0x4d756c(){return _0x5ccc65(function(_0x39b177,_0x1017ad){var _0x1ac8a7=a0_0x2e7f;_0x156315['userProfileSection'][_0x1ac8a7('0x595')]({'userProfileId':_0x1abc81['currentUser']['userProfileId'],'name':'Lists'})[_0x1ac8a7('0x1376')][_0x1ac8a7('0x21ad')](function(_0x4a0988){var _0x1fe4c3=_0x1ac8a7,_0x3b71c8=_0x4a0988&&_0x4a0988[_0x1fe4c3('0x1b33')]?_0x4a0988['rows'][0x0]:null;_0x39b177(_0x3b71c8);})['catch'](function(_0xdfdee9){_0x1017ad(_0xdfdee9);});});}function _0x111395(){return _0x5ccc65(function(_0x54aadd,_0x54bbf0){var _0x263abc=a0_0x2e7f;return _0x3f7f2b()['then'](function(_0x47fd9c){var _0x1e2857=a0_0x2e7f;return _0x1abc81['items']=_0x47fd9c[_0x1e2857('0x1b33')]?_0x47fd9c[_0x1e2857('0x1b33')]:[],_0x3b51de[_0x1e2857('0x21de')](_0x1e2857('0x1bd8'))?_0x47fd9c:_0x1abc81[_0x1e2857('0x26ad')]?_0x1abc81[_0x1e2857('0x26ad')][_0x1e2857('0x80c')]?_0x47fd9c:_0x5b04f1():null;})[_0x263abc('0x21ad')](function(_0x281bdf){var _0x286bcd=_0x263abc,_0x3ce1a6=_0x281bdf&&_0x281bdf['rows']?_0x281bdf[_0x286bcd('0x1b33')]:[];return _0x1abc81[_0x286bcd('0x1e09')]=_0x86640f()[_0x286bcd('0x26c3')](_0x3ce1a6,function(_0x14d577){var _0x3f4dc9=_0x286bcd;return _0x86640f()['find'](_0x1abc81[_0x3f4dc9('0x1b9a')],{'id':_0x3b51de[_0x3f4dc9('0x21de')](_0x3f4dc9('0x1bd8'))||_0x1abc81['section']['autoAssociation']?_0x14d577['id']:_0x14d577[_0x3f4dc9('0x675')]});}),_0x1abc81[_0x286bcd('0x91b')]=angular[_0x286bcd('0xd75')](_0x1abc81['allowedItems']),_0x1abc81[_0x286bcd('0x1b9a')][_0x286bcd('0x1a52')](function(_0x142766){var _0xd73c2e=_0x286bcd,_0x31ff43=_0x86640f()['find'](_0x1abc81[_0xd73c2e('0x1e09')],{'id':_0x142766['id']});_0x1abc81[_0xd73c2e('0x123f')][_0xd73c2e('0x25c8')]===_0xd73c2e('0x1bd8')?_0x142766[_0xd73c2e('0x118b')]=!![]:_0x142766['isValid']=typeof _0x31ff43!==_0xd73c2e('0xddc')?!![]:![];}),_0x2a38ce();})[_0x263abc('0x21ad')](function(_0x29a290){var _0x584553=_0x263abc,_0x25b47a=_0x29a290&&_0x29a290[_0x584553('0x1b33')]?_0x29a290[_0x584553('0x1b33')]:[];_0x1abc81['selectedItems']=_0x86640f()[_0x584553('0x26c3')](_0x25b47a,function(_0x420595){var _0x29e222=_0x584553;return _0x86640f()['find'](_0x1abc81[_0x29e222('0x1b9a')],{'id':_0x420595['id']});}),_0x1abc81[_0x584553('0x2584')]=angular[_0x584553('0xd75')](_0x1abc81[_0x584553('0x2629')]),_0x1abc81[_0x584553('0x909')]['selectedItems']=_0x1abc81[_0x584553('0x2629')],_0x1abc81[_0x584553('0x909')][_0x584553('0x1b9a')]=_0x86640f()[_0x584553('0x1eab')](_0x1abc81['allowedItems'],_0x1abc81[_0x584553('0x909')][_0x584553('0x2629')],'id'),_0x54aadd();})[_0x263abc('0x1c1d')](function(_0xc4412e){_0x54bbf0(_0xc4412e);});});}function _0x5b04f1(){return _0x5ccc65(function(_0x46716a,_0x58e5ff){var _0x4eb888=a0_0x2e7f;return _0x156315[_0x4eb888('0x185e')][_0x4eb888('0x595')]({'sectionId':_0x1abc81[_0x4eb888('0x26ad')]['id'],'nolimit':!![]})['$promise'][_0x4eb888('0x21ad')](function(_0xeb6abd){_0x46716a(_0xeb6abd);})[_0x4eb888('0x1c1d')](function(_0x1b34d3){_0x58e5ff(_0x1b34d3);});});}function _0x2a38ce(){return _0x5ccc65(function(_0x53e418,_0x5a603d){var _0x4573d6=a0_0x2e7f,_0x513ffc=_0x156315[_0x1abc81[_0x4573d6('0x1fd5')]];return _0x513ffc[_0x1abc81[_0x4573d6('0x1d30')]]({'id':_0x1abc81[_0x4573d6('0x1c21')]['id'],'fields':_0x4573d6('0x1aa8'),'nolimit':!![]})[_0x4573d6('0x1376')]['then'](function(_0x3d803a){_0x53e418(_0x3d803a);})['catch'](function(_0x524bed){_0x5a603d(_0x524bed);});});}function _0x3f7f2b(){return _0x5ccc65(function(_0x32d3ac,_0x215c9a){var _0x32b080=a0_0x2e7f;return _0x156315[_0x32b080('0x11e0')]['get']({'fields':_0x32b080('0x1aa8'),'nolimit':!![]})[_0x32b080('0x1376')]['then'](function(_0x311c90){_0x32d3ac(_0x311c90);})['catch'](function(_0x1fc8c4){_0x215c9a(_0x1fc8c4);});});}function _0x868ea2(_0x2a3cb1){return _0x5ccc65(function(_0x1f02e4,_0x353b1b){var _0x144516=a0_0x2e7f;if(_0x86640f()[_0x144516('0x23aa')](_0x2a3cb1))_0x1f02e4();else{var _0x5a02eb=_0x156315[_0x1abc81[_0x144516('0x1fd5')]];_0x5a02eb[_0x1abc81[_0x144516('0xbb3')]]({'id':_0x1abc81[_0x144516('0x1c21')]['id'],'ids':_0x86640f()['map'](_0x2a3cb1,'id')})['$promise'][_0x144516('0x21ad')](function(){_0x1f02e4();})[_0x144516('0x1c1d')](function(_0x1639c3){_0x353b1b(_0x1639c3);});}});}function _0xcb329b(_0x435222){return _0x5ccc65(function(_0x43f69f,_0x27e029){var _0x4b135f=a0_0x2e7f;if(_0x86640f()['isEmpty'](_0x435222))_0x43f69f();else{var _0xf3dc17=_0x156315[_0x1abc81[_0x4b135f('0x1fd5')]];_0xf3dc17[_0x1abc81[_0x4b135f('0x66a')]]({'id':_0x1abc81[_0x4b135f('0x1c21')]['id'],'ids':_0x86640f()[_0x4b135f('0x26c3')](_0x435222,'id')})[_0x4b135f('0x1376')][_0x4b135f('0x21ad')](function(){_0x43f69f();})[_0x4b135f('0x1c1d')](function(_0x45ad0e){_0x27e029(_0x45ad0e);});}});}function _0x409c91(){var _0x2f7a69=_0x185eea;_0x1abc81[_0x2f7a69('0x27c0')]=!![];var _0x359410=_0x86640f()[_0x2f7a69('0x1eab')](_0x1abc81['startingSelectedItems'],_0x1abc81[_0x2f7a69('0x2629')],'id'),_0x103863=_0x86640f()['differenceBy'](_0x1abc81[_0x2f7a69('0x2629')],_0x1abc81[_0x2f7a69('0x2584')],'id');return _0xcb329b(_0x359410)[_0x2f7a69('0x21ad')](function(){return _0x868ea2(_0x103863);})[_0x2f7a69('0x21ad')](function(){var _0x56fd57=_0x2f7a69;_0x1abc81[_0x56fd57('0x1bb9')]=![],_0x1abc81['startingAllowedItems']=angular[_0x56fd57('0xd75')](_0x1abc81[_0x56fd57('0x1e09')]),_0x1abc81['startingSelectedItems']=angular['copy'](_0x1abc81[_0x56fd57('0x2629')]),_0x4be0db[_0x56fd57('0xdb1')]({'title':_0x56fd57('0x2804'),'msg':'Lists\x20association\x20has\x20been\x20updated!'});})[_0x2f7a69('0x1c1d')](function(_0x1a8c7c){var _0x161674=_0x2f7a69;_0x4be0db[_0x161674('0x2092')]({'title':_0x1a8c7c[_0x161674('0x209')]?_0x161674('0x22d')+_0x1a8c7c['status']+_0x161674('0xa99')+_0x1a8c7c[_0x161674('0x1808')]:_0x161674('0x1dd7'),'msg':_0x1a8c7c[_0x161674('0x209')]?JSON['stringify'](_0x1a8c7c[_0x161674('0x11c2')]):_0x1a8c7c[_0x161674('0x174f')]()});})[_0x2f7a69('0x13e')](function(){var _0x3aa15b=_0x2f7a69;_0x1abc81[_0x3aa15b('0x27c0')]=![];});}function _0x394b71(){var _0x172adc=_0x185eea;_0x579862[_0x172adc('0x1c24')]();}}const _0x4c76a1=_0x28576a;_0x54b665[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x1850'),_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x1c21'),_0x3877e3('0x99f'),_0x3877e3('0x954'),'$q'];function _0x54b665(_0x32c5c8,_0x3e2f6f,_0x230aa5,_0x501ba6,_0x289422,_0x2cfb8d,_0x1b3a64,_0x1d7dee){var _0x2829b1=_0x3877e3,_0x2030dc=this;_0x2030dc['selected']=[],_0x2030dc[_0x2829b1('0x1b9a')]=_0x2cfb8d?_0x2cfb8d:[],_0x2030dc[_0x2829b1('0x27c0')]=![],_0x2030dc[_0x2829b1('0x167')]=_0x2fad6d,_0x2030dc[_0x2829b1('0x1587')]=_0x2f2913,_0x2030dc[_0x2829b1('0x170c')]=_0x4fe76c,_0x2030dc[_0x2829b1('0x20e9')]=_0x4448cd,_0x2030dc[_0x2829b1('0x241f')]=_0x49396f,_0x2030dc[_0x2829b1('0x96b')]=_0x1b2f36,_0x2030dc[_0x2829b1('0x1452')]=_0x16bf9a;function _0x4fe76c(_0x41f238,_0x2e8517){var _0x3ef531=_0x2829b1,_0x25d999=_0x2e8517[_0x3ef531('0x2004')](_0x41f238);_0x25d999>-0x1?_0x2e8517[_0x3ef531('0xafe')](_0x25d999,0x1):_0x2e8517[_0x3ef531('0x206c')](_0x41f238);}function _0x2f2913(_0x45364c,_0x1141f9){var _0x330f20=_0x2829b1;return _0x1141f9[_0x330f20('0x2004')](_0x45364c)>-0x1;}function _0x4448cd(){var _0x514a1b=_0x2829b1;return _0x2030dc[_0x514a1b('0xeb7')][_0x514a1b('0x577')]!==0x0&&_0x2030dc[_0x514a1b('0xeb7')][_0x514a1b('0x577')]!==_0x2030dc[_0x514a1b('0x1b9a')][_0x514a1b('0x577')];}function _0x49396f(){var _0x18e20e=_0x2829b1;return _0x2030dc['selected'][_0x18e20e('0x577')]===_0x2030dc['items']['length'];}function _0x1b2f36(){var _0x5180ae=_0x2829b1;if(_0x2030dc[_0x5180ae('0xeb7')]['length']===_0x2030dc['items'][_0x5180ae('0x577')])_0x2030dc[_0x5180ae('0xeb7')]=[];else(_0x2030dc[_0x5180ae('0xeb7')]['length']===0x0||_0x2030dc['selected']['length']>0x0)&&(_0x2030dc['selected']=_0x2030dc[_0x5180ae('0x1b9a')][_0x5180ae('0xb3d')](0x0));}function _0x2fad6d(){var _0x3b127c=_0x2829b1;_0x3e2f6f[_0x3b127c('0x1c24')]();}function _0x16bf9a(){var _0xaa8428=_0x2829b1;_0x2030dc['loading']=!![];var _0x48c828=_0x4a7c46();_0x48c828[_0xaa8428('0x13e')](function(){_0x2030dc['loading']=![],_0x2fad6d();});}function _0x4a7c46(){return _0x1d7dee(function(_0x387079){var _0x566c93=a0_0x2e7f;for(var _0x350394=0x0;_0x350394<_0x2030dc[_0x566c93('0xeb7')][_0x566c93('0x577')];_0x350394+=0x1){_0x4edeee(_0x289422['id'],_0x2030dc[_0x566c93('0xeb7')][_0x350394]);}_0x2fbc9c(_0x387079);});}function _0x4edeee(_0x100423,_0x1e082a){var _0xc1c1fd=_0x1e082a['id'];_0x1b3a64['enqueue'](function(){var _0x3f2f49=a0_0x2e7f;return _0x501ba6['campaign']['removeLists']({'id':_0x100423,'ids':_0xc1c1fd})[_0x3f2f49('0x1376')][_0x3f2f49('0x21ad')](function(){var _0x29280a=_0x3f2f49;return _0x501ba6[_0x29280a('0xf67')][_0x29280a('0x17fd')]({'id':_0x100423,'ids':_0xc1c1fd,'dialCheckDuplicateType':_0x29280a('0x4ba')})[_0x29280a('0x1376')];})[_0x3f2f49('0x21ad')](function(){var _0x118ec2=_0x3f2f49;_0x230aa5[_0x118ec2('0xdb1')]({'title':_0x118ec2('0x1738'),'msg':_0x118ec2('0xea')+_0x1e082a['name']+_0x118ec2('0xf25')});})['catch'](function(_0x47cf72){var _0x59d655=_0x3f2f49;_0x230aa5['error']({'title':_0x47cf72[_0x59d655('0x209')]?_0x59d655('0x22d')+_0x47cf72[_0x59d655('0x209')]+_0x59d655('0xa99')+_0x47cf72[_0x59d655('0x1808')]:_0x59d655('0x788'),'msg':_0x47cf72[_0x59d655('0x209')]?JSON[_0x59d655('0x25e')](_0x47cf72[_0x59d655('0x11c2')]):_0x47cf72['toString']()});});});}function _0x2fbc9c(_0x41f980){_0x1b3a64['enqueue'](function(){return _0x41f980();});}}const _0x8f8330=_0x54b665,_0x56b68b=_0x398308['p']+_0x3877e3('0x2266'),_0x1ff099=_0x398308['p']+_0x3877e3('0x1848'),_0x290141=_0x398308['p']+_0x3877e3('0xc7d'),_0x2ea99a=_0x398308['p']+'src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/resetlist/resetlist.html/resetlist-[chunkhash].html';_0x39954f[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),'$translate','license',_0x3877e3('0x21e'),'api',_0x3877e3('0x1908'),'Auth','ivrCampaign','userProfileSection'];function _0x39954f(_0x1a6cf8,_0x621ce5,_0x19d10b,_0x2978ac,_0xc71327,_0x58a2ec,_0x1e9cd9,_0x183351,_0x253ba6,_0x4f959a,_0xbb502a,_0x17ae5f){var _0x3de6ea=_0x3877e3,_0x1d8df6=this;_0x1d8df6[_0x3de6ea('0x123f')]=_0x4f959a[_0x3de6ea('0x15ed')](),_0x1d8df6['license']=_0x58a2ec,_0x1d8df6[_0x3de6ea('0x21e')]=_0x1e9cd9,_0x1d8df6[_0x3de6ea('0x1432')]=_0x1d8df6[_0x3de6ea('0x21e')][_0x3de6ea('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1d8df6['location']=_0x621ce5['protocol']()+_0x3de6ea('0x22a9')+_0x621ce5[_0x3de6ea('0x1c01')](),_0x1d8df6[_0x3de6ea('0x1c21')]=_0xbb502a||_0x1a6cf8[_0x3de6ea('0x171b')]['ivrCampaign']||{},_0x1d8df6['userProfileSection']=_0x17ae5f&&_0x17ae5f[_0x3de6ea('0x205f')]==0x1?_0x17ae5f[_0x3de6ea('0x1b33')][0x0]:null,_0x1d8df6['crudPermissions']=_0x4f959a[_0x3de6ea('0x1778')](_0x1d8df6[_0x3de6ea('0xab4')]?_0x1d8df6['userProfileSection'][_0x3de6ea('0x5ed')]:null),_0x1d8df6[_0x3de6ea('0x126a')]={},_0x1d8df6[_0x3de6ea('0x302')]=_0x1a6cf8[_0x3de6ea('0x171b')][_0x3de6ea('0x12e1')]||0x0,_0x1d8df6['clonedialog']=_0x18b308,_0x1d8df6['listadddialog']=_0x2dbfce,_0x1d8df6[_0x3de6ea('0x21c9')]=_0xff4709,_0x1d8df6[_0x3de6ea('0xbbe')]=_0x4e65dc,_0x1d8df6[_0x3de6ea('0x177f')]=_0x5d0255,_0x1d8df6[_0x3de6ea('0x95b')]=_0x253ba6['info'],_0x1d8df6['gotoIvrCampaigns']=_0x49d9ed,_0x1d8df6[_0x3de6ea('0x807')]=_0x508bfb,_0x4f959a[_0x3de6ea('0x21de')](_0x3de6ea('0x1bd8'))?_0x183351[_0x3de6ea('0x1280')][_0x3de6ea('0x595')]({'fields':'id,name','sort':_0x3de6ea('0x19fe')})[_0x3de6ea('0x1376')][_0x3de6ea('0x21ad')](function(_0x1a6388){var _0x49a3ee=_0x3de6ea;_0x1d8df6['trunks']=_0x1a6388[_0x49a3ee('0x1b33')]||[];})[_0x3de6ea('0x1c1d')](function(_0x576fdf){var _0x3288ed=_0x3de6ea;_0x253ba6[_0x3288ed('0x2092')]({'title':_0x576fdf['status']?_0x3288ed('0x22d')+_0x576fdf['status']+_0x3288ed('0xa99')+_0x576fdf[_0x3288ed('0x1808')]:_0x3288ed('0x9ee'),'msg':_0x576fdf[_0x3288ed('0x11c2')]?JSON[_0x3288ed('0x25e')](_0x576fdf[_0x3288ed('0x11c2')]):_0x576fdf[_0x3288ed('0x174f')]()});}):_0x183351[_0x3de6ea('0x1280')]['get']({'fields':'id,name','sort':_0x3de6ea('0x19fe')})[_0x3de6ea('0x1376')]['then'](function(_0x4248bd){var _0x2ca3e3=_0x3de6ea;_0x1d8df6[_0x2ca3e3('0x1593')]=_0x4248bd['rows']||[];})['then'](function(){var _0x57eae8=_0x3de6ea;return _0x183351[_0x57eae8('0xab4')][_0x57eae8('0x595')]({'userProfileId':_0x1d8df6[_0x57eae8('0x123f')][_0x57eae8('0x1618')],'sectionId':0x3f3})[_0x57eae8('0x1376')];})[_0x3de6ea('0x21ad')](function(_0x590681){var _0x18a9cb=_0x3de6ea,_0x3d8023=_0x590681&&_0x590681[_0x18a9cb('0x1b33')]?_0x590681[_0x18a9cb('0x1b33')][0x0]:null;if(!_0x3d8023)_0x1d8df6[_0x18a9cb('0x1593')]=[];else{if(!_0x3d8023[_0x18a9cb('0x80c')])return _0x183351['userProfileResource'][_0x18a9cb('0x595')]({'sectionId':_0x3d8023['id']})[_0x18a9cb('0x1376')][_0x18a9cb('0x21ad')](function(_0x20ca7b){var _0x4f92e7=_0x18a9cb,_0x2ab161=_0x86640f()[_0x4f92e7('0x26c3')](_0x20ca7b[_0x4f92e7('0x1b33')],function(_0x399920){var _0x194630=_0x4f92e7;return _0x86640f()['find'](_0x1d8df6[_0x194630('0x1593')],{'id':_0x399920[_0x194630('0x675')]});});_0x1d8df6[_0x4f92e7('0x1593')][_0x4f92e7('0x1a52')](function(_0x380eff){var _0x3a2b73=_0x4f92e7;!_0x86640f()['some'](_0x2ab161,['id',_0x380eff['id']])&&(_0x380eff[_0x3a2b73('0xba')]=![]),_0x2ab161['push'](_0x380eff);}),_0x1d8df6[_0x4f92e7('0x1593')]=_0x2ab161;});}})[_0x3de6ea('0x1c1d')](function(_0x14cd43){var _0x487640=_0x3de6ea;_0x253ba6[_0x487640('0x2092')]({'title':_0x14cd43[_0x487640('0x209')]?'API:'+_0x14cd43[_0x487640('0x209')]+_0x487640('0xa99')+_0x14cd43[_0x487640('0x1808')]:'SYSTEM:GETtrunks','msg':_0x14cd43[_0x487640('0x11c2')]?JSON['stringify'](_0x14cd43['data']):_0x14cd43[_0x487640('0x174f')]()});}),_0x4f959a[_0x3de6ea('0x21de')](_0x3de6ea('0x1bd8'))?_0x183351[_0x3de6ea('0x1a41')][_0x3de6ea('0x595')]({'fields':'id,name','sort':_0x3de6ea('0x19fe')})[_0x3de6ea('0x1376')][_0x3de6ea('0x21ad')](function(_0x200b85){var _0x173eaa=_0x3de6ea;_0x1d8df6[_0x173eaa('0xc0f')]=_0x200b85[_0x173eaa('0x1b33')]||[];})[_0x3de6ea('0x1c1d')](function(_0x1525a1){var _0x3c4df8=_0x3de6ea;_0x253ba6[_0x3c4df8('0x2092')]({'title':_0x1525a1[_0x3c4df8('0x209')]?_0x3c4df8('0x22d')+_0x1525a1[_0x3c4df8('0x209')]+_0x3c4df8('0xa99')+_0x1525a1[_0x3c4df8('0x1808')]:_0x3c4df8('0xca2'),'msg':_0x1525a1[_0x3c4df8('0x11c2')]?JSON[_0x3c4df8('0x25e')](_0x1525a1[_0x3c4df8('0x11c2')]):_0x1525a1['toString']()});}):_0x183351['squareProject']['get']({'fields':_0x3de6ea('0x1aa8'),'sort':_0x3de6ea('0x19fe')})[_0x3de6ea('0x1376')][_0x3de6ea('0x21ad')](function(_0x1c2cc9){var _0x452b5b=_0x3de6ea;_0x1d8df6[_0x452b5b('0xc0f')]=_0x1c2cc9[_0x452b5b('0x1b33')]||[];})[_0x3de6ea('0x21ad')](function(){var _0x43ecfe=_0x3de6ea;return _0x183351[_0x43ecfe('0xab4')][_0x43ecfe('0x595')]({'userProfileId':_0x1d8df6[_0x43ecfe('0x123f')]['userProfileId'],'sectionId':0x44f})[_0x43ecfe('0x1376')];})[_0x3de6ea('0x21ad')](function(_0x4fcd33){var _0x25761d=_0x3de6ea,_0x3baef8=_0x4fcd33&&_0x4fcd33['rows']?_0x4fcd33[_0x25761d('0x1b33')][0x0]:null;if(!_0x3baef8){var _0x599341=[],_0x4606f3=null;_0x1d8df6[_0x25761d('0x1c21')]&&(_0x4606f3=_0x86640f()[_0x25761d('0x1d2e')](_0x1d8df6['projects'],{'id':Number(_0x1d8df6[_0x25761d('0x1c21')][_0x25761d('0xdc8')])}));for(var _0x334fb4=0x0;_0x334fb4<_0x1d8df6[_0x25761d('0xc0f')][_0x25761d('0x577')];_0x334fb4++){_0x4606f3&&_0x1d8df6[_0x25761d('0xc0f')][_0x334fb4]['id']===_0x4606f3['id']&&(_0x1d8df6[_0x25761d('0xc0f')][_0x334fb4][_0x25761d('0xba')]=![],_0x599341[_0x25761d('0x206c')](_0x1d8df6[_0x25761d('0xc0f')][_0x334fb4]));}_0x1d8df6[_0x25761d('0xc0f')]=_0x599341;}else{if(!_0x3baef8['autoAssociation'])return _0x183351['userProfileResource']['get']({'sectionId':_0x3baef8['id']})[_0x25761d('0x1376')][_0x25761d('0x21ad')](function(_0x5b9baa){var _0x1407d0=_0x25761d,_0x267260=_0x86640f()[_0x1407d0('0x26c3')](_0x5b9baa[_0x1407d0('0x1b33')],function(_0x575d2e){var _0x510f0e=_0x1407d0;return _0x86640f()[_0x510f0e('0x1d2e')](_0x1d8df6['projects'],{'id':_0x575d2e[_0x510f0e('0x675')]});}),_0x1a349b=null;_0x1d8df6[_0x1407d0('0x1c21')]&&(_0x1a349b=_0x86640f()[_0x1407d0('0x1d2e')](_0x1d8df6[_0x1407d0('0xc0f')],{'id':Number(_0x1d8df6[_0x1407d0('0x1c21')][_0x1407d0('0xdc8')])}));if(_0x1a349b&&!_0x86640f()[_0x1407d0('0x2664')](_0x267260,['id',_0x1a349b['id']])){var _0x379ddf=_0x86640f()[_0x1407d0('0x1d2e')](_0x1d8df6['projects'],{'id':_0x1a349b['id']});_0x379ddf[_0x1407d0('0xba')]=![],_0x267260['push'](_0x379ddf);}_0x1d8df6[_0x1407d0('0xc0f')]=_0x267260;});}})['catch'](function(_0x45b548){var _0x4b04f6=_0x3de6ea;_0x253ba6[_0x4b04f6('0x2092')]({'title':_0x45b548[_0x4b04f6('0x209')]?_0x4b04f6('0x22d')+_0x45b548[_0x4b04f6('0x209')]+_0x4b04f6('0xa99')+_0x45b548['statusText']:_0x4b04f6('0x1859'),'msg':_0x45b548[_0x4b04f6('0x11c2')]?JSON[_0x4b04f6('0x25e')](_0x45b548[_0x4b04f6('0x11c2')]):_0x45b548[_0x4b04f6('0x174f')]()});}),_0x4f959a[_0x3de6ea('0x21de')](_0x3de6ea('0x1bd8'))?_0x183351[_0x3de6ea('0xa07')][_0x3de6ea('0x595')]({'fields':_0x3de6ea('0x1aa8'),'sort':'name','IntervalId':_0x3de6ea('0x27a')})['$promise']['then'](function(_0x3ff925){_0x1d8df6['interval']=_0x3ff925['rows']||[];})[_0x3de6ea('0x1c1d')](function(_0x2fd111){var _0x3a64f6=_0x3de6ea;_0x253ba6[_0x3a64f6('0x2092')]({'title':_0x2fd111[_0x3a64f6('0x209')]?_0x3a64f6('0x22d')+_0x2fd111[_0x3a64f6('0x209')]+'\x20-\x20'+_0x2fd111[_0x3a64f6('0x1808')]:_0x3a64f6('0x1c18'),'msg':_0x2fd111[_0x3a64f6('0x11c2')]?JSON[_0x3a64f6('0x25e')](_0x2fd111[_0x3a64f6('0x11c2')]):_0x2fd111[_0x3a64f6('0x174f')]()});}):_0x183351['interval'][_0x3de6ea('0x595')]({'fields':_0x3de6ea('0x1aa8'),'sort':'name','IntervalId':'null'})[_0x3de6ea('0x1376')]['then'](function(_0x19c684){var _0x174561=_0x3de6ea;_0x1d8df6[_0x174561('0xa07')]=_0x19c684[_0x174561('0x1b33')]||[];})[_0x3de6ea('0x21ad')](function(){var _0x2ec7ac=_0x3de6ea;return _0x183351[_0x2ec7ac('0xab4')][_0x2ec7ac('0x595')]({'userProfileId':_0x1d8df6['currentUser'][_0x2ec7ac('0x1618')],'sectionId':0x3ec})[_0x2ec7ac('0x1376')];})['then'](function(_0x2ea7ec){var _0x439290=_0x3de6ea,_0x497a95=_0x2ea7ec&&_0x2ea7ec[_0x439290('0x1b33')]?_0x2ea7ec[_0x439290('0x1b33')][0x0]:null;if(!_0x497a95){var _0x1ea00a=[],_0x36b011=null;_0x1d8df6[_0x439290('0x1c21')]&&(_0x36b011=_0x86640f()[_0x439290('0x1d2e')](_0x1d8df6['interval'],{'id':Number(_0x1d8df6[_0x439290('0x1c21')][_0x439290('0x1ac8')])}));for(var _0x4ef6f5=0x0;_0x4ef6f5<_0x1d8df6['interval'][_0x439290('0x577')];_0x4ef6f5++){_0x36b011&&_0x1d8df6[_0x439290('0xa07')][_0x4ef6f5]['id']===_0x36b011['id']&&(_0x1d8df6[_0x439290('0xa07')][_0x4ef6f5][_0x439290('0xba')]=![],_0x1ea00a[_0x439290('0x206c')](_0x1d8df6[_0x439290('0xa07')][_0x4ef6f5]));}_0x1d8df6[_0x439290('0xa07')]=_0x1ea00a;}else{if(!_0x497a95['autoAssociation'])return _0x183351['userProfileResource']['get']({'sectionId':_0x497a95['id']})[_0x439290('0x1376')][_0x439290('0x21ad')](function(_0x403cab){var _0x3b013c=_0x439290,_0x2fc46c=_0x86640f()['map'](_0x403cab[_0x3b013c('0x1b33')],function(_0x3b23cd){var _0x4b476f=_0x3b013c;return _0x86640f()['find'](_0x1d8df6[_0x4b476f('0xa07')],{'id':_0x3b23cd[_0x4b476f('0x675')]});}),_0x457802=null;_0x1d8df6[_0x3b013c('0x1c21')]&&(_0x457802=_0x86640f()['find'](_0x1d8df6['interval'],{'id':Number(_0x1d8df6['ivrCampaign'][_0x3b013c('0x1ac8')])}));if(_0x457802&&!_0x86640f()[_0x3b013c('0x2664')](_0x2fc46c,['id',_0x457802['id']])){var _0x3b941c=_0x86640f()[_0x3b013c('0x1d2e')](_0x1d8df6['interval'],{'id':_0x457802['id']});_0x3b941c[_0x3b013c('0xba')]=![],_0x2fc46c['push'](_0x3b941c);}_0x1d8df6['interval']=_0x2fc46c;});}})[_0x3de6ea('0x1c1d')](function(_0x481ff7){var _0x29e2b6=_0x3de6ea;_0x253ba6['error']({'title':_0x481ff7[_0x29e2b6('0x209')]?_0x29e2b6('0x22d')+_0x481ff7[_0x29e2b6('0x209')]+'\x20-\x20'+_0x481ff7['statusText']:_0x29e2b6('0x259e'),'msg':_0x481ff7['data']?JSON[_0x29e2b6('0x25e')](_0x481ff7['data']):_0x481ff7[_0x29e2b6('0x174f')]()});});function _0x18b308(_0x3da285,_0x397431){var _0x3bef65=_0x3de6ea;_0x19d10b[_0x3bef65('0x853')]({'controller':'IvrCampaigncloneController','controllerAs':'vm','templateUrl':_0x56b68b,'parent':angular[_0x3bef65('0x1676')](_0x2978ac['body']),'targetEvent':_0x397431,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x3da285,'ivrCampaigns':_0x1d8df6[_0x3bef65('0x1497')]?_0x1d8df6[_0x3bef65('0x1497')]['rows']:[],'crudPermissions':_0x1d8df6[_0x3bef65('0x5ed')]}});}function _0x2dbfce(_0x41ed63,_0x31e0c9){var _0x1c6d1d=_0x3de6ea;_0x19d10b[_0x1c6d1d('0x853')]({'controller':_0x1c6d1d('0x3c9'),'controllerAs':'vm','templateUrl':_0x1ff099,'parent':angular['element'](_0x2978ac['body']),'targetEvent':_0x31e0c9,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x41ed63,'ivrCampaigns':_0x1d8df6[_0x1c6d1d('0x1497')]?_0x1d8df6[_0x1c6d1d('0x1497')]['rows']:[],'crudPermissions':_0x1d8df6['crudPermissions']}});}function _0xff4709(_0x419231,_0x5d721c){var _0x3a5fb6=_0x3de6ea;_0x19d10b['show']({'controller':_0x3a5fb6('0x1fac'),'controllerAs':'vm','templateUrl':_0x290141,'parent':angular[_0x3a5fb6('0x1676')](_0x2978ac[_0x3a5fb6('0x2452')]),'targetEvent':_0x5d721c,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x419231,'ivrCampaigns':_0x1d8df6[_0x3a5fb6('0x1497')]?_0x1d8df6[_0x3a5fb6('0x1497')][_0x3a5fb6('0x1b33')]:[],'crudPermissions':_0x1d8df6[_0x3a5fb6('0x5ed')]}});}function _0x50a56f(_0x52ccfd,_0x8aa1fd){var _0x53fcee=_0x3de6ea,_0xdf6307=_0x8aa1fd['id'];_0x183351[_0x53fcee('0xf67')]['removeLists']({'id':_0x52ccfd,'ids':_0xdf6307})[_0x53fcee('0x1376')][_0x53fcee('0x21ad')](function(){var _0x10bf70=_0x53fcee;return _0x183351[_0x10bf70('0xf67')][_0x10bf70('0x17fd')]({'id':_0x52ccfd,'ids':_0xdf6307,'dialCheckDuplicateType':_0x10bf70('0x4ba')})[_0x10bf70('0x1376')];})[_0x53fcee('0x21ad')](function(){var _0x54bcf4=_0x53fcee;_0x253ba6['success']({'title':'Reset\x20Succesfull','msg':'List\x20'+_0x8aa1fd[_0x54bcf4('0x19fe')]+_0x54bcf4('0xf25')});})[_0x53fcee('0x1c1d')](function(_0x25d9da){var _0x136927=_0x53fcee;_0x253ba6[_0x136927('0x2092')]({'title':_0x25d9da[_0x136927('0x209')]?_0x136927('0x22d')+_0x25d9da[_0x136927('0x209')]+_0x136927('0xa99')+_0x25d9da[_0x136927('0x1808')]:_0x136927('0xbce'),'msg':_0x25d9da[_0x136927('0x209')]?JSON[_0x136927('0x25e')](_0x25d9da[_0x136927('0x11c2')]):_0x25d9da[_0x136927('0x174f')]()});});}function _0x4e65dc(_0x43729d,_0x314aab){var _0xb104df=_0x3de6ea;_0x183351['campaign'][_0xb104df('0x130')]({'id':_0x43729d['id'],'fields':'id,name','nolimit':!![]})[_0xb104df('0x1376')][_0xb104df('0x21ad')](function(_0x5720d1){var _0x30ab07=_0xb104df;if(_0x86640f()[_0x30ab07('0x1c7')](_0x5720d1['rows'])||_0x86640f()[_0x30ab07('0x23aa')](_0x5720d1[_0x30ab07('0x1b33')]))_0x253ba6[_0x30ab07('0x231c')]({'title':_0x30ab07('0x5c5')});else{if(_0x5720d1['rows'][_0x30ab07('0x577')]===0x1){var _0x13bf4a=_0x19d10b[_0x30ab07('0xa33')]()[_0x30ab07('0x4b4')](_0x30ab07('0x16f')+_0x5720d1[_0x30ab07('0x1b33')][0x0]['name']+'\x20?')['htmlContent'](_0x30ab07('0x622')+_0x5720d1[_0x30ab07('0x1b33')][0x0][_0x30ab07('0x19fe')]+''+_0x30ab07('0x568'))[_0x30ab07('0x7a7')]('Reset\x20List')[_0x30ab07('0x1e6d')](_0x314aab)['ok']('OK')[_0x30ab07('0x3b5')]('CANCEL');_0x19d10b['show'](_0x13bf4a)[_0x30ab07('0x21ad')](function(){var _0x1fee61=_0x30ab07;_0x50a56f(_0x1d8df6[_0x1fee61('0x1c21')]['id'],_0x5720d1[_0x1fee61('0x1b33')][0x0]);});}else _0x19d10b[_0x30ab07('0x853')]({'controller':_0x30ab07('0x9f7'),'controllerAs':'vm','templateUrl':_0x2ea99a,'parent':angular[_0x30ab07('0x1676')](_0x2978ac[_0x30ab07('0x2452')]),'targetEvent':_0x314aab,'clickOutsideToClose':![],'locals':{'ivrCampaign':_0x43729d,'listsCampaign':_0x5720d1?_0x5720d1['rows']:[]}});}})[_0xb104df('0x1c1d')](function(_0x297d10){var _0x25ca63=_0xb104df;_0x253ba6[_0x25ca63('0x2092')]({'title':_0x297d10[_0x25ca63('0x209')]?_0x25ca63('0x22d')+_0x297d10['status']+_0x25ca63('0xa99')+_0x297d10[_0x25ca63('0x1808')]:_0x25ca63('0x258a'),'msg':_0x297d10[_0x25ca63('0x209')]?JSON['stringify'](_0x297d10[_0x25ca63('0x11c2')]):_0x297d10[_0x25ca63('0x174f')]()});});}function _0x5d0255(){var _0x15b296=_0x3de6ea;if(_0x4f959a[_0x15b296('0x21de')](_0x15b296('0x1bd8')))_0x1a6cf8['go'](_0x15b296('0x1476'),{});else return _0x183351['userProfileSection']['get']({'userProfileId':_0x4f959a[_0x15b296('0x15ed')]()['userProfileId'],'sectionId':0x5e6})[_0x15b296('0x1376')][_0x15b296('0x21ad')](function(_0x212e96){var _0x4e82bb=_0x15b296,_0x59764b=_0x212e96&&_0x212e96[_0x4e82bb('0x1b33')]?_0x212e96[_0x4e82bb('0x1b33')][0x0]:null;_0x59764b&&_0x59764b[_0x4e82bb('0x2296')]?_0x1a6cf8['go'](_0x4e82bb('0x1476'),{}):_0x253ba6[_0x4e82bb('0x231c')]({'title':_0xc71327['instant'](_0x4e82bb('0x1adb')),'msg':_0xc71327[_0x4e82bb('0x183e')](_0x4e82bb('0x764'))});})['catch'](function(_0x27e8dd){var _0x77f08c=_0x15b296;_0x253ba6[_0x77f08c('0x2092')]({'title':_0x27e8dd['status']?_0x77f08c('0x22d')+_0x27e8dd['status']+_0x77f08c('0xa99')+_0x27e8dd[_0x77f08c('0x1808')]:_0x77f08c('0xb8'),'msg':_0x27e8dd[_0x77f08c('0x209')]?JSON[_0x77f08c('0x25e')](_0x27e8dd[_0x77f08c('0x11c2')]):_0x27e8dd[_0x77f08c('0x174f')]()});});}function _0x49d9ed(){var _0x10d1ce=_0x3de6ea;_0x1a6cf8['go'](_0x10d1ce('0x33d'),{},{'reload':_0x10d1ce('0x33d')});}function _0x508bfb(){var _0x1c1bd9=_0x3de6ea;_0x183351[_0x1c1bd9('0xf67')][_0x1c1bd9('0x5ef')]({'id':_0x1d8df6[_0x1c1bd9('0x1c21')]['id']},_0x1d8df6['ivrCampaign'])[_0x1c1bd9('0x1376')]['then'](function(){var _0x81f3e4=_0x1c1bd9;_0x253ba6['success']({'title':_0x81f3e4('0x17bd'),'msg':_0x1d8df6[_0x81f3e4('0x1c21')][_0x81f3e4('0x19fe')]?_0x1d8df6['ivrCampaign'][_0x81f3e4('0x19fe')]+'\x20has\x20been\x20updated!':''});})[_0x1c1bd9('0x1c1d')](function(_0x1b083f){var _0x337f01=_0x1c1bd9;_0x253ba6[_0x337f01('0x2092')]({'title':_0x1b083f[_0x337f01('0x209')]?_0x337f01('0x22d')+_0x1b083f[_0x337f01('0x209')]+_0x337f01('0xa99')+_0x1b083f[_0x337f01('0x1808')]:_0x337f01('0x16ea'),'msg':_0x1b083f[_0x337f01('0x11c2')]?JSON[_0x337f01('0x25e')](_0x1b083f[_0x337f01('0x11c2')]):_0x1b083f['toString']()});});}}const _0x59f09a=_0x39954f;_0x524567[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$window',_0x3877e3('0xa9f'),_0x3877e3('0x2828'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),'$translate',_0x3877e3('0x1497'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x524567(_0x566d5f,_0x1d31c7,_0x3dded1,_0x15b85a,_0x1f96f2,_0xc062ac,_0x789fcf,_0x5df88b,_0x5f2b59,_0x222e2f,_0x1d8d78,_0x57630c,_0x183fab,_0x3ee693,_0x31dea3,_0x2e14cd,_0x5e21b0){var _0x6ad73b=_0x3877e3,_0x384107=this;_0x384107['license']=_0x2e14cd,_0x384107[_0x6ad73b('0x21e')]=_0x5e21b0,_0x384107[_0x6ad73b('0x123f')]=_0x31dea3[_0x6ad73b('0x15ed')](),_0x384107['ivrCampaigns']=_0x5f2b59||{'count':0x0,'rows':[]},_0x384107[_0x6ad73b('0x758')]=_0x222e2f,_0x384107[_0x6ad73b('0xab4')]=_0x1d8d78&&_0x1d8d78[_0x6ad73b('0x205f')]==0x1?_0x1d8d78[_0x6ad73b('0x1b33')][0x0]:null,_0x384107[_0x6ad73b('0x5ed')]=_0x31dea3[_0x6ad73b('0x1778')](_0x384107[_0x6ad73b('0xab4')]?_0x384107[_0x6ad73b('0xab4')][_0x6ad73b('0x5ed')]:null),_0x384107[_0x6ad73b('0x1897')]='ivrCampaigns',_0x384107[_0x6ad73b('0x11dc')]='',_0x384107[_0x6ad73b('0x18cf')]=null,_0x384107[_0x6ad73b('0xb7')]=[],_0x384107[_0x6ad73b('0x77')]={'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':_0x6ad73b('0x9d8'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x384107[_0x6ad73b('0x17e7')]=_0x86640f()[_0x6ad73b('0xcde')]([{'option':_0x6ad73b('0x676'),'value':_0x6ad73b('0x1f6c')},{'option':_0x6ad73b('0x14c3'),'value':'\x27never\x27'},{'option':_0x6ad73b('0x9dd'),'value':_0x6ad73b('0x1f0d')}],function(_0x294c77){return _0x86640f()['replace'](_0x294c77['value'],new RegExp('\x27','g'),'');}),_0x384107[_0x6ad73b('0x1760')]=_0x86640f()['keyBy']([{'option':_0x6ad73b('0x1675'),'value':_0x6ad73b('0x1821')},{'option':_0x6ad73b('0xdcd'),'value':_0x6ad73b('0xea3')}],function(_0x3da4f9){var _0x2655b3=_0x6ad73b;return _0x86640f()[_0x2655b3('0x16e4')](_0x3da4f9['value'],new RegExp('\x27','g'),'');}),_0x384107[_0x6ad73b('0x1c88')]=_0x5e51ae,_0x384107[_0x6ad73b('0x1b5c')]=_0x3648e8,_0x384107[_0x6ad73b('0x2360')]=_0x10fc6b,_0x384107['blacklistadddialog']=_0x35b18c,_0x384107[_0x6ad73b('0x2593')]=_0x4aec07,_0x384107[_0x6ad73b('0x1db4')]=_0x864f95,_0x384107[_0x6ad73b('0xdb1')]=_0x523662,_0x384107[_0x6ad73b('0xf64')]=_0x293da1,_0x384107[_0x6ad73b('0x1a7d')]=_0x246453,_0x384107[_0x6ad73b('0x1212')]=_0x6e7cd2,_0x384107[_0x6ad73b('0x2622')]=_0x5249e7,_0x384107[_0x6ad73b('0x20fd')]=_0x4a76f8,_0x384107[_0x6ad73b('0x219c')]=_0x43ec5a,_0x384107[_0x6ad73b('0x5b3')]=_0x5ee569,_0x31dea3[_0x6ad73b('0x21de')]('admin')?_0x57630c[_0x6ad73b('0x1280')][_0x6ad73b('0x595')]({'fields':_0x6ad73b('0x1aa8'),'sort':_0x6ad73b('0x19fe'),'table':_0x6ad73b('0x19bd')})[_0x6ad73b('0x1376')][_0x6ad73b('0x21ad')](function(_0x124339){var _0x2d8c5c=_0x6ad73b;_0x384107['trunks']=_0x124339[_0x2d8c5c('0x1b33')]||[];})[_0x6ad73b('0x1c1d')](function(_0x17da05){var _0x4d328a=_0x6ad73b;_0x3ee693[_0x4d328a('0x2092')]({'title':_0x17da05[_0x4d328a('0x209')]?_0x4d328a('0x22d')+_0x17da05[_0x4d328a('0x209')]+_0x4d328a('0xa99')+_0x17da05[_0x4d328a('0x1808')]:'SYSTEM:GET_TRUNKS','msg':_0x17da05[_0x4d328a('0x11c2')]?JSON[_0x4d328a('0x25e')](_0x17da05[_0x4d328a('0x11c2')]):_0x17da05[_0x4d328a('0x174f')]()});}):_0x57630c['trunk'][_0x6ad73b('0x595')]({'fields':_0x6ad73b('0x1aa8'),'sort':'name','table':_0x6ad73b('0x19bd')})['$promise'][_0x6ad73b('0x21ad')](function(_0x85c36){_0x384107['trunks']=_0x85c36['rows']||[];})[_0x6ad73b('0x21ad')](function(){var _0x5c32e1=_0x6ad73b;return _0x57630c[_0x5c32e1('0xab4')][_0x5c32e1('0x595')]({'userProfileId':_0x384107[_0x5c32e1('0x123f')]['userProfileId'],'sectionId':0x3f3})['$promise'];})[_0x6ad73b('0x21ad')](function(_0xca69fb){var _0x106530=_0x6ad73b,_0x1c2690=_0xca69fb&&_0xca69fb[_0x106530('0x1b33')]?_0xca69fb[_0x106530('0x1b33')][0x0]:null;if(!_0x1c2690)_0x384107[_0x106530('0x1593')]=[];else{if(!_0x1c2690[_0x106530('0x80c')])return _0x57630c[_0x106530('0x185e')]['get']({'sectionId':_0x1c2690['id']})[_0x106530('0x1376')]['then'](function(_0x3ca7cc){var _0x30e844=_0x106530,_0x3f1e75=_0x86640f()[_0x30e844('0x26c3')](_0x3ca7cc['rows'],function(_0x3698cb){var _0x1d000e=_0x30e844;return _0x86640f()['find'](_0x384107[_0x1d000e('0x1593')],{'id':_0x3698cb[_0x1d000e('0x675')]});});_0x384107[_0x30e844('0x1593')][_0x30e844('0x1a52')](function(_0x3f757c){var _0x353c0b=_0x30e844;!_0x86640f()[_0x353c0b('0x2664')](_0x3f1e75,['id',_0x3f757c['id']])&&(_0x3f757c[_0x353c0b('0xba')]=![]),_0x3f1e75['push'](_0x3f757c);}),_0x384107[_0x30e844('0x1593')]=_0x3f1e75;});}})[_0x6ad73b('0x1c1d')](function(_0x1e6135){var _0x53f94f=_0x6ad73b;_0x3ee693[_0x53f94f('0x2092')]({'title':_0x1e6135[_0x53f94f('0x209')]?_0x53f94f('0x22d')+_0x1e6135[_0x53f94f('0x209')]+_0x53f94f('0xa99')+_0x1e6135[_0x53f94f('0x1808')]:_0x53f94f('0x3ab'),'msg':_0x1e6135[_0x53f94f('0x11c2')]?JSON[_0x53f94f('0x25e')](_0x1e6135['data']):_0x1e6135[_0x53f94f('0x174f')]()});}),_0x31dea3['hasRole']('admin')?_0x57630c[_0x6ad73b('0x1a41')]['get']({'fields':_0x6ad73b('0x1aa8'),'sort':_0x6ad73b('0x19fe')})[_0x6ad73b('0x1376')][_0x6ad73b('0x21ad')](function(_0x19cacb){var _0x4718ca=_0x6ad73b;_0x384107[_0x4718ca('0xc0f')]=_0x19cacb['rows']||[];})[_0x6ad73b('0x1c1d')](function(_0x5eaca1){var _0x135fe6=_0x6ad73b;_0x3ee693[_0x135fe6('0x2092')]({'title':_0x5eaca1[_0x135fe6('0x209')]?_0x135fe6('0x22d')+_0x5eaca1[_0x135fe6('0x209')]+_0x135fe6('0xa99')+_0x5eaca1['statusText']:_0x135fe6('0xca2'),'msg':_0x5eaca1[_0x135fe6('0x11c2')]?JSON[_0x135fe6('0x25e')](_0x5eaca1['data']):_0x5eaca1[_0x135fe6('0x174f')]()});}):_0x57630c['squareProject'][_0x6ad73b('0x595')]({'fields':_0x6ad73b('0x1aa8'),'sort':'name'})[_0x6ad73b('0x1376')][_0x6ad73b('0x21ad')](function(_0x1249f4){var _0x3df9b5=_0x6ad73b;_0x384107[_0x3df9b5('0xc0f')]=_0x1249f4[_0x3df9b5('0x1b33')]||[];})[_0x6ad73b('0x21ad')](function(){var _0x4d4806=_0x6ad73b;return _0x57630c[_0x4d4806('0xab4')][_0x4d4806('0x595')]({'userProfileId':_0x384107[_0x4d4806('0x123f')][_0x4d4806('0x1618')],'sectionId':0x44f})[_0x4d4806('0x1376')];})[_0x6ad73b('0x21ad')](function(_0x2e478d){var _0x1e4cab=_0x6ad73b,_0x3a41d6=_0x2e478d&&_0x2e478d[_0x1e4cab('0x1b33')]?_0x2e478d[_0x1e4cab('0x1b33')][0x0]:null;if(!_0x3a41d6){var _0xd89ba3=[],_0x329ad1=[];_0x384107[_0x1e4cab('0x1497')]['rows'][_0x1e4cab('0x1a52')](function(_0x1d9440){var _0x42707d=_0x1e4cab,_0x402c3b=_0x86640f()[_0x42707d('0x1d2e')](_0x384107[_0x42707d('0xc0f')],{'id':Number(_0x1d9440['SquareProjectId'])});_0x329ad1[_0x42707d('0x206c')](_0x402c3b);});for(var _0x4356e2=0x0;_0x4356e2<_0x384107['projects'][_0x1e4cab('0x577')];_0x4356e2++){var _0x4b0d5d=_0x86640f()[_0x1e4cab('0x2664')](_0x329ad1,{'id':_0x384107['projects'][_0x4356e2]['id']});_0x4b0d5d&&(_0x384107[_0x1e4cab('0xc0f')][_0x4356e2]['canSelect']=![],_0xd89ba3[_0x1e4cab('0x206c')](_0x384107[_0x1e4cab('0xc0f')][_0x4356e2]));}_0x384107[_0x1e4cab('0xc0f')]=_0xd89ba3;}else{if(!_0x3a41d6['autoAssociation'])return _0x57630c[_0x1e4cab('0x185e')][_0x1e4cab('0x595')]({'sectionId':_0x3a41d6['id']})[_0x1e4cab('0x1376')][_0x1e4cab('0x21ad')](function(_0x3e957b){var _0x1e541d=_0x1e4cab,_0x16a95f=_0x86640f()[_0x1e541d('0x26c3')](_0x3e957b[_0x1e541d('0x1b33')],function(_0x37777a){var _0x1b0dfc=_0x1e541d;return _0x86640f()[_0x1b0dfc('0x1d2e')](_0x384107[_0x1b0dfc('0xc0f')],{'id':_0x37777a[_0x1b0dfc('0x675')]});}),_0x496c3a=null;_0x496c3a=[],_0x384107[_0x1e541d('0x1497')][_0x1e541d('0x1b33')][_0x1e541d('0x1a52')](function(_0x42a365){var _0x203a59=_0x1e541d,_0x574b2c=_0x86640f()[_0x203a59('0x1d2e')](_0x384107[_0x203a59('0xc0f')],{'id':Number(_0x42a365[_0x203a59('0xdc8')])});_0x496c3a[_0x203a59('0x206c')](_0x574b2c);}),!_0x86640f()[_0x1e541d('0x23aa')](_0x496c3a)&&_0x496c3a[_0x1e541d('0x1a52')](function(_0x3e467c){var _0x187675=_0x1e541d;if(!_0x86640f()[_0x187675('0x2664')](_0x16a95f,['id',_0x3e467c['id']])){var _0x4273c7=_0x86640f()['find'](_0x384107['projects'],{'id':_0x3e467c['id']});_0x4273c7['canSelect']=![],_0x16a95f['push'](_0x4273c7);}}),_0x384107[_0x1e541d('0xc0f')]=_0x16a95f;});}})[_0x6ad73b('0x1c1d')](function(_0x389743){var _0x2c3922=_0x6ad73b;_0x3ee693[_0x2c3922('0x2092')]({'title':_0x389743['status']?_0x2c3922('0x22d')+_0x389743[_0x2c3922('0x209')]+_0x2c3922('0xa99')+_0x389743[_0x2c3922('0x1808')]:_0x2c3922('0x1859'),'msg':_0x389743[_0x2c3922('0x11c2')]?JSON['stringify'](_0x389743['data']):_0x389743['toString']()});}),_0x31dea3[_0x6ad73b('0x21de')](_0x6ad73b('0x1bd8'))?_0x57630c[_0x6ad73b('0xa07')][_0x6ad73b('0x595')]({'fields':_0x6ad73b('0x1aa8'),'sort':_0x6ad73b('0x19fe'),'IntervalId':_0x6ad73b('0x27a')})['$promise'][_0x6ad73b('0x21ad')](function(_0x27948f){_0x384107['interval']=_0x27948f['rows']||[];})[_0x6ad73b('0x1c1d')](function(_0xf5f1f5){var _0x158720=_0x6ad73b;_0x3ee693[_0x158720('0x2092')]({'title':_0xf5f1f5[_0x158720('0x209')]?_0x158720('0x22d')+_0xf5f1f5[_0x158720('0x209')]+_0x158720('0xa99')+_0xf5f1f5['statusText']:_0x158720('0x1c18'),'msg':_0xf5f1f5['data']?JSON['stringify'](_0xf5f1f5[_0x158720('0x11c2')]):_0xf5f1f5[_0x158720('0x174f')]()});}):_0x57630c['interval'][_0x6ad73b('0x595')]({'fields':'id,name','sort':_0x6ad73b('0x19fe'),'IntervalId':_0x6ad73b('0x27a')})[_0x6ad73b('0x1376')][_0x6ad73b('0x21ad')](function(_0xdb08b){var _0x230c28=_0x6ad73b;_0x384107[_0x230c28('0xa07')]=_0xdb08b[_0x230c28('0x1b33')]||[];})[_0x6ad73b('0x21ad')](function(){var _0x1b0e85=_0x6ad73b;return _0x57630c[_0x1b0e85('0xab4')]['get']({'userProfileId':_0x384107[_0x1b0e85('0x123f')][_0x1b0e85('0x1618')],'sectionId':0x3ec})[_0x1b0e85('0x1376')];})['then'](function(_0x511e12){var _0x54c1f5=_0x6ad73b,_0x1b552f=_0x511e12&&_0x511e12[_0x54c1f5('0x1b33')]?_0x511e12[_0x54c1f5('0x1b33')][0x0]:null;if(!_0x1b552f){var _0x2f7a37=[],_0xc30c70=null;_0x384107[_0x54c1f5('0x1c21')]&&(_0xc30c70=_0x86640f()['find'](_0x384107['interval'],{'id':Number(_0x384107['ivrCampaign'][_0x54c1f5('0x1ac8')])}));for(var _0x51748b=0x0;_0x51748b<_0x384107[_0x54c1f5('0xa07')]['length'];_0x51748b++){_0xc30c70&&_0x384107[_0x54c1f5('0xa07')][_0x51748b]['id']===_0xc30c70['id']&&(_0x384107[_0x54c1f5('0xa07')][_0x51748b][_0x54c1f5('0xba')]=![],_0x2f7a37[_0x54c1f5('0x206c')](_0x384107['interval'][_0x51748b]));}_0x384107['interval']=_0x2f7a37;}else{if(!_0x1b552f['autoAssociation'])return _0x57630c['userProfileResource'][_0x54c1f5('0x595')]({'sectionId':_0x1b552f['id']})[_0x54c1f5('0x1376')]['then'](function(_0x5cf5e6){var _0x48d756=_0x54c1f5,_0x185780=_0x86640f()[_0x48d756('0x26c3')](_0x5cf5e6[_0x48d756('0x1b33')],function(_0x3d133e){var _0x4a54da=_0x48d756;return _0x86640f()[_0x4a54da('0x1d2e')](_0x384107[_0x4a54da('0xa07')],{'id':_0x3d133e[_0x4a54da('0x675')]});}),_0x87d695=null;_0x384107[_0x48d756('0x1c21')]&&(_0x87d695=_0x86640f()['find'](_0x384107[_0x48d756('0xa07')],{'id':Number(_0x384107[_0x48d756('0x1c21')]['IntervalId'])}));if(_0x87d695&&!_0x86640f()[_0x48d756('0x2664')](_0x185780,['id',_0x87d695['id']])){var _0xa408ad=_0x86640f()[_0x48d756('0x1d2e')](_0x384107['interval'],{'id':_0x87d695['id']});_0xa408ad[_0x48d756('0xba')]=![],_0x185780[_0x48d756('0x206c')](_0xa408ad);}_0x384107[_0x48d756('0xa07')]=_0x185780;});}})[_0x6ad73b('0x1c1d')](function(_0x2ad59e){var _0x52aeb4=_0x6ad73b;_0x3ee693[_0x52aeb4('0x2092')]({'title':_0x2ad59e[_0x52aeb4('0x209')]?_0x52aeb4('0x22d')+_0x2ad59e[_0x52aeb4('0x209')]+_0x52aeb4('0xa99')+_0x2ad59e[_0x52aeb4('0x1808')]:_0x52aeb4('0x259e'),'msg':_0x2ad59e[_0x52aeb4('0x11c2')]?JSON['stringify'](_0x2ad59e[_0x52aeb4('0x11c2')]):_0x2ad59e['toString']()});});function _0x5e51ae(_0x3c8714){_0x3dded1['go']('app.motiondialer.ivrCampaigns.edit',{'id':_0x3c8714['id'],'ivrCampaign':_0x3c8714,'crudPermissions':_0x384107['crudPermissions']});}function _0x3648e8(_0x2f5b45,_0x40bd3c){var _0x544636=_0x6ad73b;_0x1f96f2[_0x544636('0x853')]({'controller':_0x544636('0x1931'),'controllerAs':'vm','templateUrl':_0x56b68b,'parent':angular[_0x544636('0x1676')](_0xc062ac['body']),'targetEvent':_0x40bd3c,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x2f5b45,'ivrCampaigns':_0x384107[_0x544636('0x1497')]?_0x384107[_0x544636('0x1497')][_0x544636('0x1b33')]:[],'crudPermissions':_0x384107[_0x544636('0x5ed')]}});}function _0x10fc6b(_0x26b5f7,_0x54718c){var _0x51e574=_0x6ad73b;_0x1f96f2[_0x51e574('0x853')]({'controller':_0x51e574('0x3c9'),'controllerAs':'vm','templateUrl':_0x1ff099,'parent':angular['element'](_0xc062ac[_0x51e574('0x2452')]),'targetEvent':_0x54718c,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x26b5f7,'ivrCampaigns':_0x384107['ivrCampaigns']?_0x384107[_0x51e574('0x1497')]['rows']:[],'crudPermissions':_0x384107[_0x51e574('0x5ed')]}});}function _0x35b18c(_0x252c5f,_0x29e958){var _0x1d8bb8=_0x6ad73b;_0x1f96f2[_0x1d8bb8('0x853')]({'controller':'IvrCampaignblacklistaddController','controllerAs':'vm','templateUrl':_0x290141,'parent':angular[_0x1d8bb8('0x1676')](_0xc062ac[_0x1d8bb8('0x2452')]),'targetEvent':_0x29e958,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x252c5f,'ivrCampaigns':_0x384107[_0x1d8bb8('0x1497')]?_0x384107[_0x1d8bb8('0x1497')]['rows']:[],'crudPermissions':_0x384107[_0x1d8bb8('0x5ed')]}});}function _0x4aec07(_0x162e87,_0x5ac084){var _0x5c9043=_0x6ad73b,_0x46a13f=_0x1f96f2[_0x5c9043('0xa33')]()[_0x5c9043('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x86640f()['startCase']('ivrCampaign')+'?')['htmlContent'](_0x5c9043('0x622')+(_0x162e87[_0x5c9043('0x19fe')]||_0x5c9043('0x1c21'))+'
'+_0x5c9043('0x25e0'))[_0x5c9043('0x7a7')](_0x5c9043('0x1483'))[_0x5c9043('0x1e6d')](_0x5ac084)['ok']('OK')[_0x5c9043('0x3b5')](_0x5c9043('0x284b'));_0x1f96f2[_0x5c9043('0x853')](_0x46a13f)['then'](function(){_0x6e7cd2(_0x162e87);},function(){var _0x36fee8=_0x5c9043;console[_0x36fee8('0x6fb')]('CANCEL');});}function _0x864f95(){var _0x1e4b70=_0x6ad73b;if(_0x31dea3[_0x1e4b70('0x21de')]('admin'))_0x3dded1['go'](_0x1e4b70('0x1476'),{});else return _0x57630c[_0x1e4b70('0xab4')][_0x1e4b70('0x595')]({'userProfileId':_0x31dea3['getCurrentUser']()['userProfileId'],'sectionId':0x5e6})[_0x1e4b70('0x1376')][_0x1e4b70('0x21ad')](function(_0x872d79){var _0x5d9d4f=_0x1e4b70,_0x66e42c=_0x872d79&&_0x872d79['rows']?_0x872d79[_0x5d9d4f('0x1b33')][0x0]:null;_0x66e42c&&_0x66e42c['enabled']?_0x3dded1['go'](_0x5d9d4f('0x1476'),{}):_0x3ee693['info']({'title':_0x5df88b[_0x5d9d4f('0x183e')](_0x5d9d4f('0x1adb')),'msg':_0x5df88b[_0x5d9d4f('0x183e')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x1e4b70('0x1c1d')](function(_0x4260a4){var _0x2d6527=_0x1e4b70;_0x3ee693[_0x2d6527('0x2092')]({'title':_0x4260a4[_0x2d6527('0x209')]?'API:'+_0x4260a4[_0x2d6527('0x209')]+_0x2d6527('0xa99')+_0x4260a4[_0x2d6527('0x1808')]:_0x2d6527('0xb8'),'msg':_0x4260a4[_0x2d6527('0x209')]?JSON[_0x2d6527('0x25e')](_0x4260a4[_0x2d6527('0x11c2')]):_0x4260a4[_0x2d6527('0x174f')]()});});}var _0xd31db4=!![],_0x245719=0x1;_0x566d5f[_0x6ad73b('0x10e8')](_0x6ad73b('0x1948'),function(_0xb30c5e,_0x4f11e6){var _0x18f994=_0x6ad73b;_0xd31db4?_0x789fcf(function(){_0xd31db4=![];}):(!_0x4f11e6&&(_0x245719=_0x384107['query']['page']),_0xb30c5e!==_0x4f11e6&&(_0x384107[_0x18f994('0x77')][_0x18f994('0x2376')]=0x1),!_0xb30c5e&&(_0x384107[_0x18f994('0x77')]['page']=_0x245719),_0x384107[_0x18f994('0xf64')]());});function _0x523662(_0x18ad1e){var _0x27b25d=_0x6ad73b;_0x384107[_0x27b25d('0x1497')]=_0x18ad1e||{'count':0x0,'rows':[]};}function _0x293da1(){var _0x2dbdcd=_0x6ad73b;_0x384107[_0x2dbdcd('0x77')][_0x2dbdcd('0x15a5')]=(_0x384107['query'][_0x2dbdcd('0x2376')]-0x1)*_0x384107[_0x2dbdcd('0x77')][_0x2dbdcd('0x1f4a')],_0x31dea3[_0x2dbdcd('0x21de')](_0x2dbdcd('0x1bd8'))?_0x384107[_0x2dbdcd('0x71b')]=_0x57630c[_0x2dbdcd('0xf67')][_0x2dbdcd('0x595')](_0x384107[_0x2dbdcd('0x77')],_0x523662)[_0x2dbdcd('0x1376')]:(_0x384107['query']['id']=_0x384107['userProfile']['id'],_0x384107[_0x2dbdcd('0x77')][_0x2dbdcd('0x26ad')]=_0x2dbdcd('0xc96'),_0x384107[_0x2dbdcd('0x71b')]=_0x57630c[_0x2dbdcd('0x758')][_0x2dbdcd('0x321')](_0x384107[_0x2dbdcd('0x77')],_0x523662)[_0x2dbdcd('0x1376')]);}function _0x246453(_0x5b1f9f,_0x43db66){var _0x4efccd=_0x6ad73b;_0x1f96f2[_0x4efccd('0x853')]({'controller':_0x4efccd('0x835'),'controllerAs':'vm','templateUrl':_0x1c8c5f,'parent':angular[_0x4efccd('0x1676')](_0xc062ac[_0x4efccd('0x2452')]),'targetEvent':_0x5b1f9f,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x43db66,'ivrCampaigns':_0x384107['ivrCampaigns'][_0x4efccd('0x1b33')],'license':_0x384107[_0x4efccd('0x2ff')],'setting':_0x384107['setting'],'crudPermissions':_0x384107[_0x4efccd('0x5ed')]}});}function _0x6e7cd2(_0x2b7c5b){var _0x143068=_0x6ad73b;_0x57630c[_0x143068('0xf67')][_0x143068('0x1164')]({'id':_0x2b7c5b['id']})['$promise'][_0x143068('0x21ad')](function(){var _0xd884ab=_0x143068;_0x86640f()[_0xd884ab('0x16a2')](_0x384107[_0xd884ab('0x1497')][_0xd884ab('0x1b33')],{'id':_0x2b7c5b['id']}),_0x384107[_0xd884ab('0x1497')][_0xd884ab('0x205f')]-=0x1,!_0x384107[_0xd884ab('0x1497')]['rows'][_0xd884ab('0x577')]&&_0x384107[_0xd884ab('0xf64')](),_0x3ee693[_0xd884ab('0xdb1')]({'title':_0x86640f()[_0xd884ab('0x2159')]('IvrCampaign')+'\x20deleted!','msg':_0x2b7c5b['name']?_0x2b7c5b[_0xd884ab('0x19fe')]+_0xd884ab('0xb4a'):''});})[_0x143068('0x1c1d')](function(_0x87df7){var _0xebce9a=_0x143068;if(_0x87df7[_0xebce9a('0x11c2')]&&_0x87df7[_0xebce9a('0x11c2')][_0xebce9a('0x1a69')]&&_0x87df7['data'][_0xebce9a('0x1a69')][_0xebce9a('0x577')]){_0x384107[_0xebce9a('0x1a69')]=_0x87df7[_0xebce9a('0x11c2')][_0xebce9a('0x1a69')]||[{'message':_0x87df7[_0xebce9a('0x174f')](),'type':_0xebce9a('0x18ed')}];for(var _0xf1bd04=0x0;_0xf1bd04<_0x87df7[_0xebce9a('0x11c2')][_0xebce9a('0x1a69')][_0xebce9a('0x577')];_0xf1bd04++){_0x3ee693[_0xebce9a('0x2092')]({'title':_0x87df7[_0xebce9a('0x11c2')][_0xebce9a('0x1a69')][_0xf1bd04][_0xebce9a('0x7fa')],'msg':_0x87df7[_0xebce9a('0x11c2')]['errors'][_0xf1bd04][_0xebce9a('0x1224')]});}}else _0x3ee693[_0xebce9a('0x2092')]({'title':_0x87df7[_0xebce9a('0x209')]?_0xebce9a('0x22d')+_0x87df7[_0xebce9a('0x209')]+'\x20-\x20'+_0x87df7[_0xebce9a('0x1808')]:_0xebce9a('0x18ed'),'msg':_0x87df7['data']?JSON[_0xebce9a('0x25e')](_0x87df7[_0xebce9a('0x11c2')][_0xebce9a('0x1224')]):_0x87df7[_0xebce9a('0x1224')]||_0x87df7[_0xebce9a('0x174f')]()});});}function _0x5249e7(){var _0x3b27c4=_0x6ad73b,_0x293a9c=angular[_0x3b27c4('0xd75')](_0x384107[_0x3b27c4('0xb7')]);return _0x384107['selectedIvrCampaigns']=[],_0x293a9c;}function _0x4a76f8(_0x3221f7){var _0x3ec3ac=_0x6ad73b,_0xa2e174=_0x1f96f2[_0x3ec3ac('0xa33')]()[_0x3ec3ac('0x4b4')](_0x3ec3ac('0x25d3'))[_0x3ec3ac('0x276b')](''+_0x384107[_0x3ec3ac('0xb7')][_0x3ec3ac('0x577')]+_0x3ec3ac('0xd74')+_0x3ec3ac('0x25e0'))[_0x3ec3ac('0x7a7')]('delete\x20IvrCampaigns')['targetEvent'](_0x3221f7)['ok']('OK')[_0x3ec3ac('0x3b5')](_0x3ec3ac('0x284b'));_0x1f96f2[_0x3ec3ac('0x853')](_0xa2e174)[_0x3ec3ac('0x21ad')](function(){var _0x19ef2f=_0x3ec3ac;_0x384107[_0x19ef2f('0xb7')][_0x19ef2f('0x1a52')](function(_0x5b5a7e){_0x6e7cd2(_0x5b5a7e);}),_0x384107[_0x19ef2f('0xb7')]=[];});}function _0x43ec5a(){var _0x134bfd=_0x6ad73b;_0x384107[_0x134bfd('0xb7')]=[];}function _0x5ee569(){var _0x2c50f9=_0x6ad73b;_0x384107['selectedIvrCampaigns']=_0x384107[_0x2c50f9('0x1497')]['rows'];}}const _0x58df8b=_0x524567;_0x400512[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0xa9f'),'$location',_0x3877e3('0x1850'),'$q','$translate',_0x3877e3('0x1908'),_0x3877e3('0xea5'),'queueCampaign',_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'license','setting',_0x3877e3('0x5ed')];function _0x400512(_0xcc6f45,_0x594795,_0xb38f1b,_0x142cf4,_0x3ea24c,_0x58afa7,_0x168e3b,_0x4c341f,_0x380154,_0x55d6a9,_0x9a7bc3,_0x33b540,_0x57ab1a,_0x1dde12){var _0xea92ab=_0x3877e3,_0x43553e=this;_0x43553e['currentUser']=_0x9a7bc3[_0xea92ab('0x15ed')](),_0x43553e[_0xea92ab('0x1a69')]=[],_0x43553e['setting']=_0x57ab1a,_0x43553e[_0xea92ab('0x2ff')]=_0x33b540,_0x43553e[_0xea92ab('0x5ed')]=_0x1dde12,_0x43553e[_0xea92ab('0x126a')]={},_0x43553e[_0xea92ab('0x1432')]=_0x43553e[_0xea92ab('0x21e')]&&_0x43553e[_0xea92ab('0x21e')][_0xea92ab('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x43553e['title']=_0xea92ab('0x1e33'),_0x43553e[_0xea92ab('0x1203')]=angular[_0xea92ab('0xd75')](_0x380154),_0x43553e[_0xea92ab('0xea5')]=_0x4c341f,_0x43553e['newQueueCampaign']=![];!_0x43553e[_0xea92ab('0x1203')]&&(_0x43553e[_0xea92ab('0x1203')]={'dialActive':!![],'type':'outbound','dialCheckDuplicateType':_0xea92ab('0x869'),'dialCutDigit':0x0,'autopause':'no','ringinuse':'no','timeoutrestart':'no','setinterfacevar':'no','setqueuevar':'no','setqueueentryvar':'no','dialOrderByScheduledAt':'ASC','dialGlobalInterval':_0xea92ab('0x22e6'),'dialAMDInitialSilence':0x9c4,'dialAMDGreeting':0x5dc,'dialAMDAfterGreetingSilence':0x320,'dialAMDTotalAnalysisTime':0x1388,'dialAMDMinWordLength':0x64,'dialAMDBetweenWordsSilence':0x32,'dialAMDMaximumNumberOfWords':0x3,'dialAMDSilenceThreshold':0x100,'dialAMDMaximumWordLength':0x1388,'dialMethod':_0xea92ab('0x1be6'),'dialPowerLevel':0x1,'dialPredictiveOptimization':_0xea92ab('0x449'),'dialPredictiveOptimizationPercentage':0x3,'dialPredictiveInterval':0xa,'dialLimitQueue':0x0,'dialRandomLastDigitCallerIdNumber':0x0,'dialOriginateTimeout':0x1e,'dialQueueOptions':_0xea92ab('0x2455'),'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},_0x43553e['title']='MOTIONDIALER.NEW_QUEUECAMPAIGN',_0x43553e[_0xea92ab('0x9e8')]=!![]);_0x43553e[_0xea92ab('0x1309')]=_0x65ece9,_0x43553e['saveQueueCampaign']=_0x297a2c,_0x43553e['deleteQueueCampaign']=_0x3d01dc,_0x43553e[_0xea92ab('0x279')]=_0x1c14af,_0x43553e[_0xea92ab('0x167')]=_0x7dfbff,_0x9a7bc3[_0xea92ab('0x21de')](_0xea92ab('0x1bd8'))?_0x55d6a9[_0xea92ab('0x1280')]['get']({'fields':_0xea92ab('0x1aa8'),'sort':_0xea92ab('0x19fe')})['$promise'][_0xea92ab('0x21ad')](function(_0x47f8c9){var _0x529493=_0xea92ab;_0x43553e[_0x529493('0x1593')]=_0x47f8c9[_0x529493('0x1b33')]||[];})[_0xea92ab('0x1c1d')](function(_0x4e053e){var _0x1bef5f=_0xea92ab;_0x168e3b[_0x1bef5f('0x2092')]({'title':_0x4e053e[_0x1bef5f('0x209')]?_0x1bef5f('0x22d')+_0x4e053e['status']+'\x20-\x20'+_0x4e053e[_0x1bef5f('0x1808')]:_0x1bef5f('0x9ee'),'msg':_0x4e053e[_0x1bef5f('0x11c2')]?JSON['stringify'](_0x4e053e[_0x1bef5f('0x11c2')]):_0x4e053e[_0x1bef5f('0x174f')]()});}):_0x55d6a9[_0xea92ab('0x1280')]['get']({'fields':_0xea92ab('0x1aa8'),'sort':_0xea92ab('0x19fe')})['$promise']['then'](function(_0x1fe32e){var _0x1063ea=_0xea92ab;_0x43553e[_0x1063ea('0x1593')]=_0x1fe32e['rows']||[];})[_0xea92ab('0x21ad')](function(){var _0x366912=_0xea92ab;return _0x55d6a9[_0x366912('0xab4')][_0x366912('0x595')]({'userProfileId':_0x43553e[_0x366912('0x123f')][_0x366912('0x1618')],'sectionId':0x3f3})[_0x366912('0x1376')];})[_0xea92ab('0x21ad')](function(_0x560a4f){var _0x16e78c=_0xea92ab,_0x3191de=_0x560a4f&&_0x560a4f['rows']?_0x560a4f[_0x16e78c('0x1b33')][0x0]:null;if(!_0x3191de){var _0x173e9d=[],_0x354887=null;_0x43553e[_0x16e78c('0x1203')]&&(_0x354887=_0x86640f()['find'](_0x43553e[_0x16e78c('0x1593')],{'id':Number(_0x43553e[_0x16e78c('0x1203')][_0x16e78c('0x1026')])}));for(var _0x4c6eb1=0x0;_0x4c6eb1<_0x43553e['trunks'][_0x16e78c('0x577')];_0x4c6eb1++){_0x354887&&_0x43553e[_0x16e78c('0x1593')][_0x4c6eb1]['id']===_0x354887['id']&&(_0x43553e[_0x16e78c('0x1593')][_0x4c6eb1]['canSelect']=![],_0x173e9d[_0x16e78c('0x206c')](_0x43553e[_0x16e78c('0x1593')][_0x4c6eb1]));}_0x43553e[_0x16e78c('0x1593')]=_0x173e9d;}else{if(!_0x3191de[_0x16e78c('0x80c')])return _0x55d6a9[_0x16e78c('0x185e')][_0x16e78c('0x595')]({'sectionId':_0x3191de['id']})[_0x16e78c('0x1376')]['then'](function(_0x1cc5d8){var _0x24400d=_0x16e78c,_0x84559d=_0x86640f()[_0x24400d('0x26c3')](_0x1cc5d8[_0x24400d('0x1b33')],function(_0x5cb092){var _0x1bd427=_0x24400d;return _0x86640f()[_0x1bd427('0x1d2e')](_0x43553e[_0x1bd427('0x1593')],{'id':_0x5cb092['resourceId']});}),_0x1b50d5=null;_0x43553e[_0x24400d('0x1203')]&&(_0x1b50d5=_0x86640f()[_0x24400d('0x1d2e')](_0x43553e['trunks'],{'id':Number(_0x43553e[_0x24400d('0x1203')]['TrunkId'])}));if(_0x1b50d5&&!_0x86640f()[_0x24400d('0x2664')](_0x84559d,['id',_0x1b50d5['id']])){var _0x37f341=_0x86640f()['find'](_0x43553e[_0x24400d('0x1593')],{'id':_0x1b50d5['id']});_0x37f341[_0x24400d('0xba')]=![],_0x84559d[_0x24400d('0x206c')](_0x37f341);}_0x43553e[_0x24400d('0x1593')]=_0x84559d;});}})[_0xea92ab('0x1c1d')](function(_0x4ab295){var _0x3801f8=_0xea92ab;_0x168e3b[_0x3801f8('0x2092')]({'title':_0x4ab295[_0x3801f8('0x209')]?'API:'+_0x4ab295[_0x3801f8('0x209')]+_0x3801f8('0xa99')+_0x4ab295[_0x3801f8('0x1808')]:_0x3801f8('0x3ab'),'msg':_0x4ab295[_0x3801f8('0x11c2')]?JSON[_0x3801f8('0x25e')](_0x4ab295[_0x3801f8('0x11c2')]):_0x4ab295[_0x3801f8('0x174f')]()});}),_0x9a7bc3[_0xea92ab('0x21de')](_0xea92ab('0x1bd8'))?_0x55d6a9[_0xea92ab('0xa07')]['get']({'fields':'id,name','sort':_0xea92ab('0x19fe'),'IntervalId':_0xea92ab('0x27a')})[_0xea92ab('0x1376')][_0xea92ab('0x21ad')](function(_0x3b2d22){var _0x177e67=_0xea92ab;_0x43553e['interval']=_0x3b2d22[_0x177e67('0x1b33')]||[];})['catch'](function(_0x22cbfe){var _0x2fe932=_0xea92ab;_0x168e3b[_0x2fe932('0x2092')]({'title':_0x22cbfe[_0x2fe932('0x209')]?_0x2fe932('0x22d')+_0x22cbfe[_0x2fe932('0x209')]+_0x2fe932('0xa99')+_0x22cbfe[_0x2fe932('0x1808')]:_0x2fe932('0x1c18'),'msg':_0x22cbfe[_0x2fe932('0x11c2')]?JSON[_0x2fe932('0x25e')](_0x22cbfe['data']):_0x22cbfe[_0x2fe932('0x174f')]()});}):_0x55d6a9[_0xea92ab('0xa07')]['get']({'fields':_0xea92ab('0x1aa8'),'sort':_0xea92ab('0x19fe'),'IntervalId':_0xea92ab('0x27a')})[_0xea92ab('0x1376')][_0xea92ab('0x21ad')](function(_0x25cc4c){_0x43553e['interval']=_0x25cc4c['rows']||[];})[_0xea92ab('0x21ad')](function(){var _0x6284d2=_0xea92ab;return _0x55d6a9[_0x6284d2('0xab4')][_0x6284d2('0x595')]({'userProfileId':_0x43553e[_0x6284d2('0x123f')][_0x6284d2('0x1618')],'sectionId':0x3ec})[_0x6284d2('0x1376')];})['then'](function(_0x5b1ece){var _0x3b8769=_0xea92ab,_0x56699a=_0x5b1ece&&_0x5b1ece[_0x3b8769('0x1b33')]?_0x5b1ece[_0x3b8769('0x1b33')][0x0]:null;if(!_0x56699a){var _0x479f09=[],_0x58aec2=null;_0x43553e[_0x3b8769('0x1203')]&&(_0x58aec2=_0x86640f()[_0x3b8769('0x1d2e')](_0x43553e[_0x3b8769('0xa07')],{'id':Number(_0x43553e[_0x3b8769('0x1203')]['IntervalId'])}));for(var _0x41b8a7=0x0;_0x41b8a7<_0x43553e['interval']['length'];_0x41b8a7++){_0x58aec2&&_0x43553e[_0x3b8769('0xa07')][_0x41b8a7]['id']===_0x58aec2['id']&&(_0x43553e[_0x3b8769('0xa07')][_0x41b8a7][_0x3b8769('0xba')]=![],_0x479f09[_0x3b8769('0x206c')](_0x43553e[_0x3b8769('0xa07')][_0x41b8a7]));}_0x43553e[_0x3b8769('0xa07')]=_0x479f09;}else{if(!_0x56699a[_0x3b8769('0x80c')])return _0x55d6a9[_0x3b8769('0x185e')][_0x3b8769('0x595')]({'sectionId':_0x56699a['id']})[_0x3b8769('0x1376')][_0x3b8769('0x21ad')](function(_0x2226b0){var _0x2875f5=_0x3b8769,_0x1c8f82=_0x86640f()[_0x2875f5('0x26c3')](_0x2226b0[_0x2875f5('0x1b33')],function(_0x581f85){var _0x18ac9b=_0x2875f5;return _0x86640f()[_0x18ac9b('0x1d2e')](_0x43553e[_0x18ac9b('0xa07')],{'id':_0x581f85[_0x18ac9b('0x675')]});}),_0x31aa57=null;_0x43553e[_0x2875f5('0x1203')]&&(_0x31aa57=_0x86640f()[_0x2875f5('0x1d2e')](_0x43553e[_0x2875f5('0xa07')],{'id':Number(_0x43553e['queueCampaign'][_0x2875f5('0x1ac8')])}));if(_0x31aa57&&!_0x86640f()[_0x2875f5('0x2664')](_0x1c8f82,['id',_0x31aa57['id']])){var _0x27e1fd=_0x86640f()[_0x2875f5('0x1d2e')](_0x43553e['interval'],{'id':_0x31aa57['id']});_0x27e1fd[_0x2875f5('0xba')]=![],_0x1c8f82[_0x2875f5('0x206c')](_0x27e1fd);}_0x43553e[_0x2875f5('0xa07')]=_0x1c8f82;});}})[_0xea92ab('0x1c1d')](function(_0x534335){var _0x166b5e=_0xea92ab;_0x168e3b['error']({'title':_0x534335['status']?_0x166b5e('0x22d')+_0x534335[_0x166b5e('0x209')]+'\x20-\x20'+_0x534335['statusText']:_0x166b5e('0x259e'),'msg':_0x534335[_0x166b5e('0x11c2')]?JSON[_0x166b5e('0x25e')](_0x534335[_0x166b5e('0x11c2')]):_0x534335[_0x166b5e('0x174f')]()});});function _0x65ece9(){var _0x2c0b41=_0xea92ab;_0x43553e[_0x2c0b41('0x1a69')]=[],_0x55d6a9['voiceQueue'][_0x2c0b41('0x186f')](_0x43553e['queueCampaign'])[_0x2c0b41('0x1376')][_0x2c0b41('0x21ad')](function(_0x11e402){var _0x4fc564=_0x2c0b41;_0x43553e[_0x4fc564('0xea5')]['unshift'](_0x11e402['toJSON']()),_0x168e3b['success']({'title':'QueueCampaign\x20properly\x20created','msg':_0x43553e[_0x4fc564('0x1203')][_0x4fc564('0x19fe')]?_0x43553e[_0x4fc564('0x1203')][_0x4fc564('0x19fe')]+_0x4fc564('0x1694'):''}),_0x7dfbff(_0x11e402);})[_0x2c0b41('0x1c1d')](function(_0x217d76){var _0x22a928=_0x2c0b41;if(_0x217d76[_0x22a928('0x11c2')]&&_0x217d76[_0x22a928('0x11c2')][_0x22a928('0x1a69')]&&_0x217d76['data'][_0x22a928('0x1a69')][_0x22a928('0x577')]){_0x43553e[_0x22a928('0x1a69')]=_0x217d76['data'][_0x22a928('0x1a69')]||[{'message':_0x217d76[_0x22a928('0x174f')](),'type':_0x22a928('0x2007')}];for(var _0x393c1a=0x0;_0x393c1a<_0x217d76[_0x22a928('0x11c2')][_0x22a928('0x1a69')][_0x22a928('0x577')];_0x393c1a+=0x1){_0x168e3b[_0x22a928('0x2092')]({'title':_0x217d76[_0x22a928('0x11c2')]['errors'][_0x393c1a]['type'],'msg':_0x217d76[_0x22a928('0x11c2')][_0x22a928('0x1a69')][_0x393c1a][_0x22a928('0x1224')]});}}else _0x168e3b['error']({'title':_0x217d76[_0x22a928('0x209')]?_0x22a928('0x22d')+_0x217d76[_0x22a928('0x209')]+_0x22a928('0xa99')+_0x217d76[_0x22a928('0x1808')]:_0x22a928('0x2007'),'msg':_0x217d76[_0x22a928('0x11c2')]?JSON[_0x22a928('0x25e')](_0x217d76[_0x22a928('0x11c2')]['message']):_0x217d76[_0x22a928('0x174f')]()});});}function _0x297a2c(){var _0x307c63=_0xea92ab;_0x43553e['errors']=[],_0x55d6a9[_0x307c63('0xb97')][_0x307c63('0x5ef')]({'id':_0x43553e[_0x307c63('0x1203')]['id']},_0x43553e['queueCampaign'])[_0x307c63('0x1376')]['then'](function(_0x5cdbd6){var _0x16e3a7=_0x307c63,_0x189a78=_0x86640f()[_0x16e3a7('0x1d2e')](_0x43553e[_0x16e3a7('0xea5')],{'id':_0x5cdbd6['id']});_0x189a78&&_0x86640f()[_0x16e3a7('0xd0e')](_0x189a78,_0x86640f()['pick'](_0x5cdbd6['toJSON'](),_0x86640f()[_0x16e3a7('0x223b')](_0x189a78))),_0x168e3b['success']({'title':_0x16e3a7('0x17d5'),'msg':_0x43553e[_0x16e3a7('0x1203')]['name']?_0x43553e[_0x16e3a7('0x1203')][_0x16e3a7('0x19fe')]+_0x16e3a7('0x2249'):''}),_0x7dfbff(_0x5cdbd6);})[_0x307c63('0x1c1d')](function(_0x508a5f){var _0x2e8f74=_0x307c63;if(_0x508a5f[_0x2e8f74('0x11c2')]&&_0x508a5f[_0x2e8f74('0x11c2')][_0x2e8f74('0x1a69')]&&_0x508a5f[_0x2e8f74('0x11c2')]['errors'][_0x2e8f74('0x577')]){_0x43553e[_0x2e8f74('0x1a69')]=_0x508a5f[_0x2e8f74('0x11c2')][_0x2e8f74('0x1a69')]||[{'message':_0x508a5f[_0x2e8f74('0x174f')](),'type':'api.voiceQueue.update'}];for(var _0x19e974=0x0;_0x19e974<_0x508a5f[_0x2e8f74('0x11c2')][_0x2e8f74('0x1a69')][_0x2e8f74('0x577')];_0x19e974++){_0x168e3b[_0x2e8f74('0x2092')]({'title':_0x508a5f[_0x2e8f74('0x11c2')][_0x2e8f74('0x1a69')][_0x19e974][_0x2e8f74('0x7fa')],'msg':_0x508a5f['data'][_0x2e8f74('0x1a69')][_0x19e974][_0x2e8f74('0x1224')]});}}else _0x168e3b[_0x2e8f74('0x2092')]({'title':_0x508a5f[_0x2e8f74('0x209')]?_0x2e8f74('0x22d')+_0x508a5f[_0x2e8f74('0x209')]+'\x20-\x20'+_0x508a5f[_0x2e8f74('0x1808')]:_0x2e8f74('0x2699'),'msg':_0x508a5f['data']?JSON[_0x2e8f74('0x25e')](_0x508a5f[_0x2e8f74('0x11c2')][_0x2e8f74('0x1224')]):_0x508a5f[_0x2e8f74('0x174f')]()});});}function _0x3d01dc(_0x3d6ca6){var _0x1d7548=_0xea92ab;_0x43553e[_0x1d7548('0x1a69')]=[];var _0x2df5c9=_0x142cf4[_0x1d7548('0xa33')]()[_0x1d7548('0x4b4')]('Are\x20you\x20sure?')[_0x1d7548('0x13fb')](_0x1d7548('0x623'))[_0x1d7548('0x7a7')](_0x1d7548('0xe55'))['ok'](_0x1d7548('0xbfd'))[_0x1d7548('0x3b5')](_0x1d7548('0x1f40'))[_0x1d7548('0x1e6d')](_0x3d6ca6);_0x142cf4['show'](_0x2df5c9)['then'](function(){var _0x29a716=_0x1d7548;_0x55d6a9[_0x29a716('0xb97')][_0x29a716('0x1164')]({'id':_0x43553e[_0x29a716('0x1203')]['id']})[_0x29a716('0x1376')][_0x29a716('0x21ad')](function(){var _0x42d76b=_0x29a716;_0x86640f()[_0x42d76b('0x16a2')](_0x43553e['queueCampaigns'],{'id':_0x43553e[_0x42d76b('0x1203')]['id']}),_0x168e3b[_0x42d76b('0xdb1')]({'title':_0x42d76b('0x10da'),'msg':(_0x43553e[_0x42d76b('0x1203')][_0x42d76b('0x19fe')]||_0x42d76b('0x1203'))+_0x42d76b('0xb4a')}),_0x7dfbff(_0x43553e[_0x42d76b('0x1203')]);})[_0x29a716('0x1c1d')](function(_0x1308b9){var _0x58ec17=_0x29a716;if(_0x1308b9['data']&&_0x1308b9[_0x58ec17('0x11c2')][_0x58ec17('0x1a69')]&&_0x1308b9['data']['errors'][_0x58ec17('0x577')]){_0x43553e[_0x58ec17('0x1a69')]=_0x1308b9['data'][_0x58ec17('0x1a69')]||[{'message':_0x1308b9[_0x58ec17('0x174f')](),'type':'api.voiceQueue.delete'}];for(var _0x249324=0x0;_0x249324<_0x1308b9['data']['errors'][_0x58ec17('0x577')];_0x249324++){_0x168e3b[_0x58ec17('0x2092')]({'title':_0x1308b9[_0x58ec17('0x11c2')][_0x58ec17('0x1a69')][_0x249324][_0x58ec17('0x7fa')],'msg':_0x1308b9['data']['errors'][_0x249324][_0x58ec17('0x1224')]});}}else _0x168e3b[_0x58ec17('0x2092')]({'title':_0x1308b9[_0x58ec17('0x209')]?_0x58ec17('0x22d')+_0x1308b9[_0x58ec17('0x209')]+'\x20-\x20'+_0x1308b9[_0x58ec17('0x1808')]:_0x58ec17('0x3c8'),'msg':_0x1308b9['data']?JSON[_0x58ec17('0x25e')](_0x1308b9[_0x58ec17('0x11c2')][_0x58ec17('0x1224')]):_0x1308b9[_0x58ec17('0x1224')]||_0x1308b9[_0x58ec17('0x174f')]()});});},function(){});}function _0x1c14af(_0x231cb8){return _0x231cb8===null?undefined:new Date(_0x231cb8);}function _0x7dfbff(_0x1b4aeb){var _0x146faf=_0xea92ab;_0x142cf4[_0x146faf('0x1c24')](_0x1b4aeb);}}const _0x5f4aec=_0x400512;_0x97f8e8['$inject']=['$mdDialog','$q','toasty',_0x3877e3('0xccd'),_0x3877e3('0x1203'),'queueCampaigns','realtime','$translate',_0x3877e3('0x15bc'),'crudPermissions'];function _0x97f8e8(_0x47d83b,_0x3fad1b,_0x505a54,_0x42efee,_0x4628a9,_0x3af109,_0x23bb17,_0x38b306,_0x274c56,_0x4c5f3f){var _0x285ffe=_0x3877e3,_0x2ca66f=this;_0x2ca66f['currentUser']=_0x274c56[_0x285ffe('0x15ed')](),_0x2ca66f[_0x285ffe('0x1203')]=_0x4628a9,_0x2ca66f[_0x285ffe('0x5ed')]=_0x4c5f3f,_0x2ca66f[_0x285ffe('0x1195')]=0x0,_0x2ca66f[_0x285ffe('0x116a')]=_0x23bb17,_0x2ca66f['items']=[],_0x2ca66f[_0x285ffe('0x1e09')]=[],_0x2ca66f[_0x285ffe('0x2629')]=[],_0x2ca66f['startingAllowedItems']=[],_0x2ca66f[_0x285ffe('0x2584')]=[],_0x2ca66f['pendingChanges']=![],_0x2ca66f[_0x285ffe('0x1081')]=_0x119eba,_0x2ca66f[_0x285ffe('0x265b')]=_0x48948e,_0x2ca66f[_0x285ffe('0x167')]=_0x5c7994,_0x2ca66f[_0x285ffe('0x909')]={'readOnly':!_0x2ca66f[_0x285ffe('0x5ed')]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x285ffe('0x19fe'),'line1':_0x285ffe('0x20f5'),'line2':[_0x285ffe('0x19fe'),'internal'],'line3':_0x285ffe('0x1195'),'labelAll':_0x38b306[_0x285ffe('0x183e')](_0x285ffe('0x730')),'labelSelected':_0x38b306['instant'](_0x285ffe('0xaaa')),'transferCallback':function _0xea91bf(_0x932a54,_0x187a82){var _0x5e5ffb=_0x285ffe;_0x187a82?_0x932a54['forEach'](function(_0x2199d2){_0x2199d2['penalty']=undefined;}):_0x932a54['forEach'](function(_0x417eb7){var _0x24cfc5=a0_0x2e7f;_0x417eb7['penalty']='penalty\x20'+_0x2ca66f[_0x24cfc5('0x1195')];});var _0x4d476d=_0x86640f()[_0x5e5ffb('0xb02')](_0x2ca66f[_0x5e5ffb('0x2584')],_0x2ca66f[_0x5e5ffb('0x2629')],function(_0x401a72,_0x5c68d7){var _0x2fd99a=_0x5e5ffb;return _0x401a72['id']===_0x5c68d7['id']&&_0x401a72[_0x2fd99a('0x1195')]===_0x5c68d7['penalty'];});_0x2ca66f[_0x5e5ffb('0x1bb9')]=_0x86640f()[_0x5e5ffb('0x23aa')](_0x4d476d)?![]:!![];}};function _0x119eba(){var _0x2ef18b=_0x285ffe;return _0x274c56[_0x2ef18b('0x21de')](_0x2ef18b('0x1bd8'))?_0x291e8c()[_0x2ef18b('0x1c1d')](function(_0x40fd8c){var _0x5c2fd7=_0x2ef18b;_0x505a54['error']({'title':_0x40fd8c['status']?_0x5c2fd7('0x22d')+_0x40fd8c[_0x5c2fd7('0x209')]+_0x5c2fd7('0xa99')+_0x40fd8c['statusText']:_0x5c2fd7('0x1381'),'msg':_0x40fd8c[_0x5c2fd7('0x209')]?JSON[_0x5c2fd7('0x25e')](_0x40fd8c[_0x5c2fd7('0x11c2')]):_0x40fd8c[_0x5c2fd7('0x174f')]()});}):_0x55d372()[_0x2ef18b('0x21ad')](function(_0x55d9d8){var _0x2c75e0=_0x2ef18b;return _0x2ca66f[_0x2c75e0('0x26ad')]=_0x55d9d8,_0x291e8c();})[_0x2ef18b('0x1c1d')](function(_0x1c4d5f){var _0x2fb630=_0x2ef18b;_0x505a54[_0x2fb630('0x2092')]({'title':_0x1c4d5f['status']?'API:'+_0x1c4d5f[_0x2fb630('0x209')]+'\x20-\x20'+_0x1c4d5f[_0x2fb630('0x1808')]:_0x2fb630('0x1381'),'msg':_0x1c4d5f[_0x2fb630('0x209')]?JSON[_0x2fb630('0x25e')](_0x1c4d5f['data']):_0x1c4d5f['toString']()});});}function _0x55d372(){return _0x3fad1b(function(_0x3632bd,_0x537767){var _0x29386b=a0_0x2e7f;_0x42efee['userProfileSection']['get']({'userProfileId':_0x2ca66f[_0x29386b('0x123f')]['userProfileId'],'name':_0x29386b('0xfed')})['$promise'][_0x29386b('0x21ad')](function(_0x4ea426){var _0x37a6e3=_0x29386b,_0x1f8209=_0x4ea426&&_0x4ea426[_0x37a6e3('0x1b33')]?_0x4ea426[_0x37a6e3('0x1b33')][0x0]:null;_0x3632bd(_0x1f8209);})[_0x29386b('0x1c1d')](function(_0x11d918){_0x537767(_0x11d918);});});}function _0x291e8c(){return _0x3fad1b(function(_0x55bf1c,_0x10fa70){var _0x2562bf=a0_0x2e7f;return _0x414737()[_0x2562bf('0x21ad')](function(_0x4ca545){var _0xcb2b28=_0x2562bf;return _0x2ca66f[_0xcb2b28('0x1b9a')]=_0x4ca545[_0xcb2b28('0x1b33')]?_0x4ca545[_0xcb2b28('0x1b33')]:[],_0x274c56[_0xcb2b28('0x21de')](_0xcb2b28('0x1bd8'))?_0x4ca545:_0x2ca66f['section']?_0x2ca66f[_0xcb2b28('0x26ad')][_0xcb2b28('0x80c')]?_0x4ca545:_0x179c0d():null;})[_0x2562bf('0x21ad')](function(_0x22b55e){var _0x3686e6=_0x2562bf,_0x5a45f2=_0x22b55e&&_0x22b55e['rows']?_0x22b55e[_0x3686e6('0x1b33')]:[];return _0x2ca66f[_0x3686e6('0x1e09')]=_0x86640f()['map'](_0x5a45f2,function(_0x236c4b){var _0x422247=_0x3686e6;return _0x86640f()['find'](_0x2ca66f[_0x422247('0x1b9a')],{'id':_0x274c56[_0x422247('0x21de')](_0x422247('0x1bd8'))||_0x2ca66f[_0x422247('0x26ad')][_0x422247('0x80c')]?_0x236c4b['id']:_0x236c4b['resourceId']});}),_0x2ca66f[_0x3686e6('0x91b')]=angular[_0x3686e6('0xd75')](_0x2ca66f['allowedItems']),_0x2ca66f['items'][_0x3686e6('0x1a52')](function(_0x23950d){var _0x10d1dc=_0x3686e6,_0x1040eb=_0x86640f()[_0x10d1dc('0x1d2e')](_0x2ca66f[_0x10d1dc('0x1e09')],{'id':_0x23950d['id']});_0x274c56[_0x10d1dc('0x21de')](_0x10d1dc('0x1bd8'))?_0x23950d['isValid']=!![]:_0x23950d[_0x10d1dc('0x118b')]=typeof _0x1040eb!==_0x10d1dc('0xddc')?!![]:![];}),_0x963bf3();})[_0x2562bf('0x21ad')](function(_0x2544a3){var _0x28243f=_0x2562bf,_0x525b91=_0x2544a3&&_0x2544a3[_0x28243f('0x1b33')]?_0x2544a3[_0x28243f('0x1b33')]:[];_0x2ca66f[_0x28243f('0x2629')]=_0x86640f()['map'](_0x525b91,function(_0x181618){var _0x4ed7d1=_0x28243f,_0x3646a5=_0x86640f()[_0x4ed7d1('0x1d2e')](_0x2ca66f[_0x4ed7d1('0x1b9a')],{'id':_0x181618['id']});return _0x3646a5[_0x4ed7d1('0x1195')]=_0x181618[_0x4ed7d1('0x1614')]?_0x4ed7d1('0x5c2')+_0x181618[_0x4ed7d1('0x1614')]['penalty']:'',_0x3646a5[_0x4ed7d1('0x201f')]=typeof _0x181618[_0x4ed7d1('0x201f')]!==_0x4ed7d1('0xddc')?'<'+_0x181618[_0x4ed7d1('0x201f')]+'>':'',_0x3646a5;}),_0x2ca66f[_0x28243f('0x2584')]=angular[_0x28243f('0xd75')](_0x2ca66f[_0x28243f('0x2629')]),_0x2ca66f[_0x28243f('0x909')][_0x28243f('0x2629')]=_0x2ca66f[_0x28243f('0x2629')],_0x2ca66f[_0x28243f('0x909')][_0x28243f('0x1b9a')]=_0x86640f()[_0x28243f('0x1eab')](_0x2ca66f[_0x28243f('0x1e09')],_0x2ca66f['dualMultiselectOptions'][_0x28243f('0x2629')],'id'),_0x55bf1c();})[_0x2562bf('0x1c1d')](function(_0x4f855f){_0x10fa70(_0x4f855f);});});}function _0x179c0d(){return _0x3fad1b(function(_0x50be34,_0x55f2b8){var _0x34730f=a0_0x2e7f;return _0x42efee[_0x34730f('0x185e')][_0x34730f('0x595')]({'sectionId':_0x2ca66f[_0x34730f('0x26ad')]['id'],'nolimit':!![]})[_0x34730f('0x1376')]['then'](function(_0x3735c9){_0x50be34(_0x3735c9);})['catch'](function(_0x3bfe96){_0x55f2b8(_0x3bfe96);});});}function _0x963bf3(){return _0x3fad1b(function(_0x492643,_0x555902){var _0x4ae91e=a0_0x2e7f;return _0x42efee['voiceQueue'][_0x4ae91e('0x13ad')]({'id':_0x2ca66f[_0x4ae91e('0x1203')]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x4ae91e('0x2402')})[_0x4ae91e('0x1376')][_0x4ae91e('0x21ad')](function(_0xab8b34){_0x492643(_0xab8b34);})['catch'](function(_0x407c7f){_0x555902(_0x407c7f);});});}function _0x414737(){return _0x3fad1b(function(_0x4a1aac,_0x53e63b){var _0x2b35ca=a0_0x2e7f;return _0x42efee['user'][_0x2b35ca('0x595')]({'fields':_0x2b35ca('0x1eea'),'nolimit':!![],'role':'agent'})['$promise'][_0x2b35ca('0x21ad')](function(_0x1b0b0e){_0x4a1aac(_0x1b0b0e);})[_0x2b35ca('0x1c1d')](function(_0x840bf6){_0x53e63b(_0x840bf6);});});}function _0x30f1ef(_0x4113a0){return _0x3fad1b(function(_0x5afacb,_0x4ee85d){var _0x1eec84=a0_0x2e7f;if(_0x86640f()[_0x1eec84('0x23aa')](_0x4113a0))_0x5afacb();else{var _0x345565=[],_0x1f749b=_0x86640f()['groupBy'](_0x4113a0,_0x1eec84('0x1195'));for(var _0x294918=0x0;_0x294918'+_0xe2c71f[_0x490801('0x190b')][_0x490801('0x577')]+'\x20selected'+_0x490801('0x25e0'))[_0x490801('0x7a7')](_0x490801('0x15b'))[_0x490801('0x1e6d')](_0x5a3e19)['ok']('OK')[_0x490801('0x3b5')]('CANCEL');_0x402e93[_0x490801('0x853')](_0x520d27)[_0x490801('0x21ad')](function(){var _0x46dd07=_0x490801;_0xe2c71f[_0x46dd07('0x190b')][_0x46dd07('0x1a52')](function(_0x4205b0){_0x5bdec9(_0x4205b0);}),_0xe2c71f[_0x46dd07('0x190b')]=[];});}var _0x55e637=!![],_0x478126=0x1;_0x3e6f6f['$watch'](_0x47580f('0x10ff'),function(_0x2df916,_0x582257){var _0xf05b5=_0x47580f;_0x55e637?_0x18e6ed(function(){_0x55e637=![];}):(!_0x582257&&(_0x478126=_0xe2c71f[_0xf05b5('0x77')][_0xf05b5('0x2376')]),_0x2df916!==_0x582257&&(_0xe2c71f[_0xf05b5('0x77')][_0xf05b5('0x2376')]=0x1),!_0x2df916&&(_0xe2c71f[_0xf05b5('0x77')][_0xf05b5('0x2376')]=_0x478126),_0x2de1d4());});}const _0x47e698=_0x56299f;_0x10cee1['$inject']=[_0x3877e3('0x26'),_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$q',_0x3877e3('0x13c1'),'$timeout',_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x15bc')];function _0x10cee1(_0x35ecd9,_0x55fe23,_0x43a1a7,_0x107908,_0x1c8da1,_0x2b8870,_0x874537,_0x5e3f7f,_0xdc3abb,_0x489828,_0x5064ae){var _0x39fb7f=_0x3877e3,_0xc3d845=this;_0xc3d845[_0x39fb7f('0x123f')]=_0x5064ae[_0x39fb7f('0x15ed')](),_0xc3d845[_0x39fb7f('0x2814')]={},_0xc3d845[_0x39fb7f('0x1203')]={},_0xc3d845[_0x39fb7f('0x116f')]={'count':0x0,'rows':[]},_0xc3d845[_0x39fb7f('0x221')]=[],_0xc3d845[_0x39fb7f('0x5ed')],_0xc3d845['query']={'fields':_0x39fb7f('0x24cf'),'sort':_0x39fb7f('0x51d'),'limit':0xa,'page':0x1},_0xc3d845['init']=_0x1e384d,_0xc3d845['deleteConfirm']=_0x11872f,_0xc3d845['success']=_0x1a0683,_0xc3d845[_0x39fb7f('0x1541')]=_0x15f9be,_0xc3d845['exportSelectedQueueCampaignHopperFinals']=_0x109e29,_0xc3d845[_0x39fb7f('0x67c')]=_0x42ebb5,_0xc3d845[_0x39fb7f('0x83d')]=_0x2bde87,_0xc3d845[_0x39fb7f('0x1829')]=_0x390f24,_0xc3d845[_0x39fb7f('0x11a0')]=_0x16639c,_0xc3d845[_0x39fb7f('0x173f')]=_0xd236fc,_0xc3d845[_0x39fb7f('0x2654')]=_0x1c1672,_0xc3d845[_0x39fb7f('0x1a57')]=_0x36a82b;function _0x1e384d(_0x324d40,_0x1f7fb4){var _0x363624=_0x39fb7f;_0xc3d845[_0x363624('0x1203')]=_0x324d40,_0xc3d845[_0x363624('0x5ed')]=typeof _0x1f7fb4!==_0x363624('0xddc')?_0x1f7fb4:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xc3d845[_0x363624('0x77')][_0x363624('0xe90')]=_0xc3d845[_0x363624('0x1203')]['id'],_0xc3d845[_0x363624('0x77')]['id']=_0xc3d845[_0x363624('0x1203')]['id'],_0x15f9be();}function _0x11872f(_0x54f036,_0x57bc36){var _0x3d7b6d=_0x39fb7f,_0x24e4b4=_0x874537[_0x3d7b6d('0xa33')]()[_0x3d7b6d('0x4b4')](_0x3d7b6d('0xa68'))[_0x3d7b6d('0x276b')](_0x3d7b6d('0x622')+(_0x54f036[_0x3d7b6d('0x19fe')]||_0x54f036['id']&&_0x86640f()[_0x3d7b6d('0x22e')](_0x3d7b6d('0x1910'))+_0x54f036['id']||_0x3d7b6d('0xc60'))+_0x3d7b6d('0x2135')+_0x3d7b6d('0x25e0'))[_0x3d7b6d('0x7a7')](_0x3d7b6d('0x1ced'))[_0x3d7b6d('0x1e6d')](_0x57bc36)['ok']('OK')[_0x3d7b6d('0x3b5')](_0x3d7b6d('0x284b'));_0x874537['show'](_0x24e4b4)['then'](function(){_0x42ebb5(_0x54f036);},function(){var _0x4ccd20=_0x3d7b6d;console[_0x4ccd20('0x6fb')](_0x4ccd20('0x284b'));});}function _0x1a0683(_0x2b5a38){var _0x1bd0a7=_0x39fb7f;_0xc3d845[_0x1bd0a7('0x116f')]=_0x2b5a38||{'count':0x0,'rows':[]};}function _0x15f9be(){var _0x192ed5=_0x39fb7f;_0xc3d845[_0x192ed5('0x77')][_0x192ed5('0x15a5')]=(_0xc3d845[_0x192ed5('0x77')][_0x192ed5('0x2376')]-0x1)*_0xc3d845['query']['limit'],_0xc3d845['promise']=_0x489828[_0x192ed5('0xb97')]['getHopperFinals'](_0xc3d845[_0x192ed5('0x77')],_0x1a0683)[_0x192ed5('0x1376')];}function _0x42ebb5(_0x560e53){var _0x311534=_0x39fb7f;_0x489828[_0x311534('0xc60')][_0x311534('0x1164')]({'id':_0x560e53['id']})[_0x311534('0x1376')]['then'](function(){var _0xb77c68=_0x311534;_0x86640f()[_0xb77c68('0x16a2')](_0xc3d845['queueCampaignHopperFinals'][_0xb77c68('0x1b33')],{'id':_0x560e53['id']}),_0xc3d845[_0xb77c68('0x116f')][_0xb77c68('0x205f')]-=0x1,!_0xc3d845[_0xb77c68('0x116f')][_0xb77c68('0x1b33')]['length']&&_0x15f9be(),_0xdc3abb[_0xb77c68('0xdb1')]({'title':'HopperFinal\x20deleted!','msg':_0x560e53[_0xb77c68('0x19fe')]?_0x560e53[_0xb77c68('0x19fe')]+_0xb77c68('0xb4a'):''});})[_0x311534('0x1c1d')](function(_0x388356){var _0x137042=_0x311534;if(_0x388356[_0x137042('0x11c2')]&&_0x388356[_0x137042('0x11c2')][_0x137042('0x1a69')]&&_0x388356[_0x137042('0x11c2')][_0x137042('0x1a69')][_0x137042('0x577')]){_0xc3d845[_0x137042('0x1a69')]=_0x388356['data'][_0x137042('0x1a69')]||[{'message':_0x388356[_0x137042('0x174f')](),'type':_0x137042('0x20f4')}];for(var _0x502df4=0x0;_0x502df4<_0x388356[_0x137042('0x11c2')]['errors'][_0x137042('0x577')];_0x502df4++){_0xdc3abb[_0x137042('0x2092')]({'title':_0x388356[_0x137042('0x11c2')][_0x137042('0x1a69')][_0x502df4][_0x137042('0x7fa')],'msg':_0x388356['data'][_0x137042('0x1a69')][_0x502df4][_0x137042('0x1224')]});}}else _0xdc3abb['error']({'title':_0x388356['status']?_0x137042('0x22d')+_0x388356[_0x137042('0x209')]+_0x137042('0xa99')+_0x388356[_0x137042('0x1808')]:_0x137042('0x20f4'),'msg':_0x388356['data']?JSON[_0x137042('0x25e')](_0x388356[_0x137042('0x11c2')][_0x137042('0x1224')]):_0x388356['message']||_0x388356['toString']()});});}function _0x109e29(){var _0x2e08d7=_0x39fb7f,_0x5395f6=angular[_0x2e08d7('0xd75')](_0xc3d845[_0x2e08d7('0x221')]);return _0xc3d845['selectedQueueCampaignHopperFinals']=[],_0x5395f6;}function _0x2bde87(_0x3bde76){var _0x4d29ae=_0x39fb7f,_0x5db030=_0x874537[_0x4d29ae('0xa33')]()[_0x4d29ae('0x4b4')](_0x4d29ae('0xec7'))[_0x4d29ae('0x276b')](''+_0xc3d845[_0x4d29ae('0x221')]['length']+_0x4d29ae('0xd74')+_0x4d29ae('0x25e0'))[_0x4d29ae('0x7a7')](_0x4d29ae('0x253b'))[_0x4d29ae('0x1e6d')](_0x3bde76)['ok']('OK')[_0x4d29ae('0x3b5')](_0x4d29ae('0x284b'));_0x874537[_0x4d29ae('0x853')](_0x5db030)[_0x4d29ae('0x21ad')](function(){var _0x29b575=_0x4d29ae;_0xc3d845['selectedQueueCampaignHopperFinals'][_0x29b575('0x1a52')](function(_0x29e7de){_0x42ebb5(_0x29e7de);}),_0xc3d845[_0x29b575('0x221')]=[];});}function _0x16639c(_0x233d52){var _0x4a4947=_0x39fb7f;_0x489828[_0x4a4947('0x10d9')][_0x4a4947('0x11a0')]({'id':_0xc3d845[_0x4a4947('0x77')]['id'],'state':_0x233d52})[_0x4a4947('0x1376')][_0x4a4947('0x21ad')](function(_0x1a2f1c){var _0x567d24=_0x4a4947;_0x86640f()['isNil'](_0x1a2f1c)&&_0x86640f()[_0x567d24('0x1c7')](_0x1a2f1c[0x0])?_0xdc3abb['info']({'title':'Restored\x20Contacts','msg':'0'}):_0xdc3abb[_0x567d24('0x231c')]({'title':'Restored\x20Contacts','msg':JSON[_0x567d24('0x25e')](_0x1a2f1c[0x0][_0x567d24('0x120a')])});})[_0x4a4947('0x1c1d')](function(_0xc479f){var _0xb95f05=_0x4a4947;_0xdc3abb[_0xb95f05('0x2092')]({'title':_0xc479f[_0xb95f05('0x209')]?_0xb95f05('0x22d')+_0xc479f[_0xb95f05('0x209')]+'\x20-\x20'+_0xc479f['statusText']:_0xb95f05('0x20f4'),'msg':_0xc479f['data']?JSON[_0xb95f05('0x25e')](_0xc479f[_0xb95f05('0x11c2')][_0xb95f05('0x1224')]):_0xc479f[_0xb95f05('0x1224')]||_0xc479f[_0xb95f05('0x174f')]()});});}function _0xd236fc(_0x2c1211){var _0x1fd864=_0x39fb7f;_0x489828[_0x1fd864('0x10d9')][_0x1fd864('0x173f')]({'id':_0x2c1211})[_0x1fd864('0x1376')][_0x1fd864('0x21ad')](function(_0x2bc3ee){var _0x527e97=_0x1fd864;_0x86640f()['merge'](_0xc3d845[_0x527e97('0x2814')],_0x2bc3ee[0x0]);})[_0x1fd864('0x1c1d')](function(_0x336d46){var _0x204ed4=_0x1fd864;_0xdc3abb[_0x204ed4('0x2092')]({'title':_0x336d46[_0x204ed4('0x209')]?_0x204ed4('0x22d')+_0x336d46[_0x204ed4('0x209')]+_0x204ed4('0xa99')+_0x336d46[_0x204ed4('0x1808')]:_0x204ed4('0x20f4'),'msg':_0x336d46[_0x204ed4('0x11c2')]?JSON[_0x204ed4('0x25e')](_0x336d46[_0x204ed4('0x11c2')]['message']):_0x336d46[_0x204ed4('0x1224')]||_0x336d46[_0x204ed4('0x174f')]()});});}function _0x36a82b(_0x4bbec8){var _0x387770=_0x39fb7f,_0x45d3d8=_0x874537[_0x387770('0xa33')]()[_0x387770('0x4b4')](_0x387770('0x874'))['htmlContent'](_0x387770('0x1d35')+_0x387770('0x169b'))['ariaLabel'](_0x387770('0xe19'))[_0x387770('0x1e6d')](_0x4bbec8)['ok']('OK')[_0x387770('0x3b5')]('CANCEL');_0x874537['show'](_0x45d3d8)[_0x387770('0x21ad')](function(){var _0x4618c8=_0x387770;_0xc3d845[_0x4618c8('0x221')][_0x4618c8('0x1a52')](function(_0x3276b6){_0x390f24(_0x3276b6);}),_0xc3d845[_0x4618c8('0x221')]=[];});}function _0x1c1672(_0x1ce63f,_0x32d9fc){var _0x465e53=_0x39fb7f,_0x3c650a=_0x874537[_0x465e53('0xa33')]()[_0x465e53('0x4b4')](_0x465e53('0x25cc'))[_0x465e53('0x276b')](_0x465e53('0x622')+_0x465e53('0x1d10')+_0x465e53('0x2135')+_0x465e53('0x169b'))[_0x465e53('0x7a7')](_0x465e53('0x18b4'))[_0x465e53('0x1e6d')](_0x32d9fc)['ok']('OK')[_0x465e53('0x3b5')](_0x465e53('0x284b'));_0x874537[_0x465e53('0x853')](_0x3c650a)[_0x465e53('0x21ad')](function(){_0x390f24(_0x1ce63f);},function(){var _0x25f204=_0x465e53;console[_0x25f204('0x6fb')]('CANCEL');});}function _0x60293c(_0x4cfe44){var _0x593a57=_0x39fb7f,_0x6655b6={};return _0x6655b6[_0x593a57('0x159e')]=_0x4cfe44[_0x593a57('0x5d4')],_0x6655b6[_0x593a57('0x141a')]=_0x1088bc()()['format'](_0x593a57('0x1e15')),_0x6655b6[_0x593a57('0x1228')]=0x0,_0x6655b6[_0x593a57('0x96c')]=0x0,_0x6655b6[_0x593a57('0x25f7')]=0x0,_0x6655b6[_0x593a57('0x97c')]=0x0,_0x6655b6[_0x593a57('0x2596')]=_0x4cfe44[_0x593a57('0x2596')],_0x6655b6[_0x593a57('0x815')]=_0x4cfe44[_0x593a57('0x815')],_0x6655b6[_0x593a57('0x1dc6')]=_0x4cfe44[_0x593a57('0x27e3')]?null:_0x4cfe44[_0x593a57('0x1dc6')],_0x6655b6[_0x593a57('0xe90')]=_0x4cfe44[_0x593a57('0xe90')],_0x6655b6['CampaignId']=_0x4cfe44[_0x593a57('0x23b6')],_0x6655b6[_0x593a57('0xbe5')]=_0x4cfe44[_0x593a57('0xe15')]?0x3:0x2,_0x6655b6['recallme']=_0x4cfe44[_0x593a57('0xe15')]?!![]:![],_0x6655b6;}function _0xdd5c21(_0x2257dc){var _0x3a26e3=_0x39fb7f,_0x13f49f={};return _0x13f49f[_0x3a26e3('0x5d4')]=_0x2257dc[_0x3a26e3('0x5d4')],_0x13f49f[_0x3a26e3('0xec8')]=_0x2257dc[_0x3a26e3('0xec8')],_0x13f49f['scheduledat']=_0x1088bc()()[_0x3a26e3('0x153')](_0x3a26e3('0x1e15')),_0x13f49f['countbusyretry']=_0x2257dc[_0x3a26e3('0x1228')],_0x13f49f['countcongestionretry']=_0x2257dc['countcongestionretry'],_0x13f49f[_0x3a26e3('0x25f7')]=_0x2257dc[_0x3a26e3('0x25f7')],_0x13f49f[_0x3a26e3('0x97c')]=_0x2257dc[_0x3a26e3('0x97c')],_0x13f49f[_0x3a26e3('0x2596')]=_0x2257dc['ContactId'],_0x13f49f[_0x3a26e3('0x815')]=_0x2257dc['ListId'],_0x13f49f[_0x3a26e3('0x1dc6')]=_0x5064ae[_0x3a26e3('0x15ed')]()['id'],_0x13f49f[_0x3a26e3('0xe90')]=_0x2257dc[_0x3a26e3('0xe90')],_0x13f49f['CampaignId']=_0x2257dc[_0x3a26e3('0x23b6')],_0x13f49f[_0x3a26e3('0x187a')]=_0x1088bc()()[_0x3a26e3('0x153')](_0x3a26e3('0x1e15')),_0x13f49f['edited']=!![],_0x13f49f['state']=0x19,_0x13f49f[_0x3a26e3('0x12a8')]=_0x3a26e3('0x1ce1'),_0x13f49f[_0x3a26e3('0xf67')]=_0x2257dc[_0x3a26e3('0xf67')],_0x13f49f[_0x3a26e3('0x251e')]=_0x2257dc[_0x3a26e3('0xe90')]?_0x3a26e3('0xbdd'):_0x3a26e3('0x9d8'),_0x13f49f;}function _0x390f24(_0x4a4517){var _0x512b60=_0x39fb7f;_0x489828[_0x512b60('0x10d9')][_0x512b60('0x2458')](_0x4a4517)[_0x512b60('0x1376')]['then'](function(_0x4cc8ee){var _0x5e326=_0x512b60;_0xdc3abb['info']({'title':_0x5e326('0x24e5'),'msg':_0x5e326('0xf3b')+_0x4cc8ee[_0x5e326('0x2596')]});})[_0x512b60('0x1c1d')](function(_0x328b17){var _0x420d9c=_0x512b60;_0x328b17['data']==='Not\x20Found'?_0x489828[_0x420d9c('0x1b37')][_0x420d9c('0x186f')](_0x60293c(_0x4a4517))[_0x420d9c('0x1376')][_0x420d9c('0x21ad')](function(_0xf1a84f){var _0x2a2d7c=_0x420d9c;_0xdc3abb[_0x2a2d7c('0x231c')]({'title':'Restored\x20Contact','msg':_0x2a2d7c('0xf3b')+_0xf1a84f[_0x2a2d7c('0x2596')]}),_0xf1a84f[_0x2a2d7c('0x2596')]&&_0x489828[_0x2a2d7c('0x1ec7')]['save'](_0xdd5c21(_0x4a4517));})['catch'](function(_0x4f597d){var _0x1dbd27=_0x420d9c;!_0x86640f()[_0x1dbd27('0x1c7')](_0x4f597d[_0x1dbd27('0x11c2')])&&_0x4f597d[_0x1dbd27('0x11c2')][_0x1dbd27('0x1224')]===_0x1dbd27('0x22fa')?_0xdc3abb[_0x1dbd27('0x231c')]({'title':_0x1dbd27('0x24e5'),'msg':'Contact\x20ID\x20'+_0x4a4517[_0x1dbd27('0x2596')]}):_0xdc3abb[_0x1dbd27('0x2092')]({'title':_0x4f597d[_0x1dbd27('0x209')]?_0x1dbd27('0x22d')+_0x4f597d[_0x1dbd27('0x209')]+_0x1dbd27('0xa99')+_0x4f597d[_0x1dbd27('0x1808')]:'SYSTEM:GETvoiceQueue','msg':_0x4f597d[_0x1dbd27('0x11c2')]?JSON[_0x1dbd27('0x25e')](_0x4f597d['data']['message']):_0x4f597d[_0x1dbd27('0x1224')]||_0x4f597d[_0x1dbd27('0x174f')]()});}):_0xdc3abb[_0x420d9c('0x2092')]({'title':_0x328b17[_0x420d9c('0x209')]?_0x420d9c('0x22d')+_0x328b17['status']+_0x420d9c('0xa99')+_0x328b17[_0x420d9c('0x1808')]:_0x420d9c('0x20f4'),'msg':_0x328b17['data']?JSON[_0x420d9c('0x25e')](_0x328b17['data'][_0x420d9c('0x1224')]):_0x328b17['message']||_0x328b17['toString']()});});}var _0x28a260=!![],_0x44b595=0x1;_0x55fe23[_0x39fb7f('0x10e8')](_0x39fb7f('0x10ff'),function(_0x1fb745,_0x2f9107){var _0x22e2a3=_0x39fb7f;_0x28a260?_0x2b8870(function(){_0x28a260=![];}):(!_0x2f9107&&(_0x44b595=_0xc3d845['query'][_0x22e2a3('0x2376')]),_0x1fb745!==_0x2f9107&&(_0xc3d845['query'][_0x22e2a3('0x2376')]=0x1),!_0x1fb745&&(_0xc3d845[_0x22e2a3('0x77')][_0x22e2a3('0x2376')]=_0x44b595),_0x15f9be());});}const _0xa6eeb6=_0x10cee1;_0x3d2275[_0x3877e3('0x1a81')]=[_0x3877e3('0x26'),_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x15bc')];function _0x3d2275(_0x2bed1c,_0x556d90,_0x13de7a,_0x5a7b4a,_0x27036d,_0xca815a,_0x3ca879,_0x4590b3,_0x470407,_0x286e44,_0x3ae6ae){var _0x2a2340=_0x3877e3,_0x260c0b=this;_0x260c0b[_0x2a2340('0x123f')]=_0x3ae6ae[_0x2a2340('0x15ed')](),_0x260c0b[_0x2a2340('0x1203')]={},_0x260c0b[_0x2a2340('0xfd1')]={'count':0x0,'rows':[]},_0x260c0b[_0x2a2340('0x24cc')]=[],_0x260c0b[_0x2a2340('0x5ed')],_0x260c0b['query']={'fields':_0x2a2340('0x203'),'sort':'-id','limit':0xa,'page':0x1},_0x260c0b['init']=_0x4bd9e9,_0x260c0b[_0x2a2340('0x15dc')]=_0x5e546f,_0x260c0b['success']=_0x271e59,_0x260c0b[_0x2a2340('0x2476')]=_0xffb32e,_0x260c0b[_0x2a2340('0x155b')]=_0x713e1,_0x260c0b[_0x2a2340('0x1cad')]=_0x49e138,_0x260c0b['deleteSelectedQueueCampaignHopperHistories']=_0x4e7a29;function _0x4bd9e9(_0x36f1f2,_0x5bf649){var _0x469db1=_0x2a2340;_0x260c0b[_0x469db1('0x1203')]=_0x36f1f2,_0x260c0b[_0x469db1('0x5ed')]=typeof _0x5bf649!==_0x469db1('0xddc')?_0x5bf649:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x260c0b[_0x469db1('0x77')][_0x469db1('0xe90')]=_0x260c0b[_0x469db1('0x1203')]['id'],_0x260c0b['query']['id']=_0x260c0b['queueCampaign']['id'],_0xffb32e();}function _0x5e546f(_0x3d54a4,_0x331104){var _0x134b2e=_0x2a2340,_0x514df7=_0x3ca879['confirm']()[_0x134b2e('0x4b4')](_0x134b2e('0x18ff'))[_0x134b2e('0x276b')](_0x134b2e('0x622')+(_0x3d54a4[_0x134b2e('0x19fe')]||_0x3d54a4['id']&&_0x86640f()[_0x134b2e('0x22e')](_0x134b2e('0x93d'))+_0x3d54a4['id']||_0x134b2e('0x1382'))+_0x134b2e('0x2135')+_0x134b2e('0x25e0'))[_0x134b2e('0x7a7')](_0x134b2e('0x207'))[_0x134b2e('0x1e6d')](_0x331104)['ok']('OK')[_0x134b2e('0x3b5')](_0x134b2e('0x284b'));_0x3ca879['show'](_0x514df7)[_0x134b2e('0x21ad')](function(){_0x49e138(_0x3d54a4);},function(){var _0x172e7d=_0x134b2e;console[_0x172e7d('0x6fb')](_0x172e7d('0x284b'));});}function _0x271e59(_0x384da7){var _0x168c74=_0x2a2340;_0x260c0b[_0x168c74('0xfd1')]=_0x384da7||{'count':0x0,'rows':[]};}function _0xffb32e(){var _0xe79ad2=_0x2a2340;_0x260c0b['query'][_0xe79ad2('0x15a5')]=(_0x260c0b['query']['page']-0x1)*_0x260c0b[_0xe79ad2('0x77')][_0xe79ad2('0x1f4a')],_0x260c0b[_0xe79ad2('0x71b')]=_0x286e44[_0xe79ad2('0xb97')]['getHopperHistories'](_0x260c0b[_0xe79ad2('0x77')],_0x271e59)[_0xe79ad2('0x1376')];}function _0x49e138(_0x2f0e05){var _0x59126a=_0x2a2340;_0x286e44[_0x59126a('0x1382')][_0x59126a('0x1164')]({'id':_0x2f0e05['id']})[_0x59126a('0x1376')]['then'](function(){var _0x364366=_0x59126a;_0x86640f()['remove'](_0x260c0b[_0x364366('0xfd1')][_0x364366('0x1b33')],{'id':_0x2f0e05['id']}),_0x260c0b['queueCampaignHopperHistories'][_0x364366('0x205f')]-=0x1,!_0x260c0b['queueCampaignHopperHistories'][_0x364366('0x1b33')][_0x364366('0x577')]&&_0xffb32e(),_0x470407['success']({'title':_0x364366('0x1a3b'),'msg':_0x2f0e05[_0x364366('0x19fe')]?_0x2f0e05[_0x364366('0x19fe')]+_0x364366('0xb4a'):''});})[_0x59126a('0x1c1d')](function(_0x1372fd){var _0x2a2c7e=_0x59126a;if(_0x1372fd[_0x2a2c7e('0x11c2')]&&_0x1372fd[_0x2a2c7e('0x11c2')][_0x2a2c7e('0x1a69')]&&_0x1372fd[_0x2a2c7e('0x11c2')][_0x2a2c7e('0x1a69')][_0x2a2c7e('0x577')]){_0x260c0b['errors']=_0x1372fd[_0x2a2c7e('0x11c2')][_0x2a2c7e('0x1a69')]||[{'message':_0x1372fd[_0x2a2c7e('0x174f')](),'type':_0x2a2c7e('0x20f4')}];for(var _0x7d6f64=0x0;_0x7d6f64<_0x1372fd[_0x2a2c7e('0x11c2')][_0x2a2c7e('0x1a69')][_0x2a2c7e('0x577')];_0x7d6f64++){_0x470407[_0x2a2c7e('0x2092')]({'title':_0x1372fd['data'][_0x2a2c7e('0x1a69')][_0x7d6f64][_0x2a2c7e('0x7fa')],'msg':_0x1372fd['data'][_0x2a2c7e('0x1a69')][_0x7d6f64]['message']});}}else _0x470407['error']({'title':_0x1372fd[_0x2a2c7e('0x209')]?_0x2a2c7e('0x22d')+_0x1372fd[_0x2a2c7e('0x209')]+_0x2a2c7e('0xa99')+_0x1372fd[_0x2a2c7e('0x1808')]:_0x2a2c7e('0x20f4'),'msg':_0x1372fd[_0x2a2c7e('0x11c2')]?JSON['stringify'](_0x1372fd[_0x2a2c7e('0x11c2')][_0x2a2c7e('0x1224')]):_0x1372fd[_0x2a2c7e('0x1224')]||_0x1372fd[_0x2a2c7e('0x174f')]()});});}function _0x713e1(){var _0x5608a7=_0x2a2340,_0x1ec967=angular[_0x5608a7('0xd75')](_0x260c0b['selectedQueueCampaignHopperHistories']);return _0x260c0b['selectedQueueCampaignHopperHistories']=[],_0x1ec967;}function _0x4e7a29(_0x3ae571){var _0x8266af=_0x2a2340,_0x426add=_0x3ca879['confirm']()[_0x8266af('0x4b4')](_0x8266af('0x1d96'))[_0x8266af('0x276b')](_0x8266af('0x622')+_0x260c0b[_0x8266af('0x24cc')][_0x8266af('0x577')]+_0x8266af('0xd74')+'\x20will\x20be\x20deleted.')[_0x8266af('0x7a7')](_0x8266af('0x12a9'))[_0x8266af('0x1e6d')](_0x3ae571)['ok']('OK')[_0x8266af('0x3b5')](_0x8266af('0x284b'));_0x3ca879[_0x8266af('0x853')](_0x426add)[_0x8266af('0x21ad')](function(){var _0xc040a8=_0x8266af;_0x260c0b[_0xc040a8('0x24cc')][_0xc040a8('0x1a52')](function(_0x3bdf8a){_0x49e138(_0x3bdf8a);}),_0x260c0b[_0xc040a8('0x24cc')]=[];});}var _0x3eb8cc=!![],_0x22eab1=0x1;_0x556d90[_0x2a2340('0x10e8')](_0x2a2340('0x10ff'),function(_0x3770c3,_0x34f804){var _0x4915c9=_0x2a2340;_0x3eb8cc?_0xca815a(function(){_0x3eb8cc=![];}):(!_0x34f804&&(_0x22eab1=_0x260c0b[_0x4915c9('0x77')]['page']),_0x3770c3!==_0x34f804&&(_0x260c0b[_0x4915c9('0x77')][_0x4915c9('0x2376')]=0x1),!_0x3770c3&&(_0x260c0b[_0x4915c9('0x77')][_0x4915c9('0x2376')]=_0x22eab1),_0xffb32e());});}const _0x43e9c7=_0x3d2275;_0x1cce14[_0x3877e3('0x1a81')]=[_0x3877e3('0x26'),_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x2313'),_0x3877e3('0x1850'),'$document',_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x15bc')];function _0x1cce14(_0x5e563d,_0x3df40a,_0x593a6e,_0x5a2fb3,_0x42a88b,_0x11c981,_0x423e57,_0xf2d8d6,_0x5eedda,_0x535a3a,_0x2e42d7){var _0x23ca9c=_0x3877e3,_0x14a742=this;_0x14a742[_0x23ca9c('0x123f')]=_0x2e42d7[_0x23ca9c('0x15ed')](),_0x14a742[_0x23ca9c('0x1203')]={},_0x14a742[_0x23ca9c('0x1190')]={'count':0x0,'rows':[]},_0x14a742['selectedQueueCampaignHoppers']=[],_0x14a742['crudPermissions'],_0x14a742[_0x23ca9c('0x77')]={'fields':_0x23ca9c('0x632'),'sort':_0x23ca9c('0x33'),'limit':0xa,'page':0x1},_0x14a742['arraypriority']=_0x86640f()[_0x23ca9c('0xcde')]([{'option':_0x23ca9c('0xfbf'),'value':_0x23ca9c('0x18fa')},{'option':'High','value':_0x23ca9c('0x916')},{'option':_0x23ca9c('0x68f'),'value':_0x23ca9c('0x1365')},{'option':'Low','value':_0x23ca9c('0x1bf7')},{'option':'Lowest','value':'\x270\x27'}],function(_0x452543){var _0x5390be=_0x23ca9c;return _0x86640f()[_0x5390be('0x16e4')](_0x452543[_0x5390be('0x2228')],new RegExp('\x27','g'),'');}),_0x14a742[_0x23ca9c('0x1d75')]=_0x4734f6,_0x14a742[_0x23ca9c('0x15dc')]=_0x12d5ee,_0x14a742[_0x23ca9c('0xdb1')]=_0x183ac5,_0x14a742['getQueueCampaignHoppers']=_0x8ac30c,_0x14a742['createOrEditQueueCampaignHopper']=_0x306896,_0x14a742[_0x23ca9c('0x115b')]=_0x15ad5d,_0x14a742['deleteQueueCampaignHopper']=_0x57562a,_0x14a742[_0x23ca9c('0x1c62')]=_0x5b73f4,_0x2e42d7[_0x23ca9c('0x21de')](_0x23ca9c('0x1bd8'))?_0x535a3a[_0x23ca9c('0x1775')][_0x23ca9c('0x595')]({'fields':_0x23ca9c('0x1aa8'),'role':'agent','sort':'name','nolimit':'true'})[_0x23ca9c('0x1376')][_0x23ca9c('0x21ad')](function(_0x42c8a3){var _0x5821e6=_0x23ca9c;_0x14a742[_0x5821e6('0xcb5')]=_0x42c8a3[_0x5821e6('0x1b33')]||[];})[_0x23ca9c('0x1c1d')](function(_0x2c5ab5){var _0x4c73d4=_0x23ca9c;_0x5eedda[_0x4c73d4('0x2092')]({'title':_0x2c5ab5['status']?_0x4c73d4('0x22d')+_0x2c5ab5[_0x4c73d4('0x209')]+_0x4c73d4('0xa99')+_0x2c5ab5[_0x4c73d4('0x1808')]:_0x4c73d4('0x1381'),'msg':_0x2c5ab5[_0x4c73d4('0x11c2')]?JSON[_0x4c73d4('0x25e')](_0x2c5ab5['data']):_0x2c5ab5['toString']()});}):_0x535a3a[_0x23ca9c('0x1775')][_0x23ca9c('0x595')]({'fields':_0x23ca9c('0x1aa8'),'role':'agent','sort':_0x23ca9c('0x19fe'),'nolimit':_0x23ca9c('0x19bd')})[_0x23ca9c('0x1376')][_0x23ca9c('0x21ad')](function(_0x2b07b2){var _0x13c55b=_0x23ca9c;_0x14a742[_0x13c55b('0xcb5')]=_0x2b07b2[_0x13c55b('0x1b33')]||[];})[_0x23ca9c('0x21ad')](function(){var _0x417d69=_0x23ca9c;return _0x535a3a[_0x417d69('0xab4')][_0x417d69('0x595')]({'userProfileId':_0x14a742[_0x417d69('0x123f')]['userProfileId'],'sectionId':0xca})['$promise'];})[_0x23ca9c('0x21ad')](function(_0x25a21d){var _0x19077d=_0x23ca9c,_0x4176c6=_0x25a21d&&_0x25a21d[_0x19077d('0x1b33')]?_0x25a21d[_0x19077d('0x1b33')][0x0]:null;if(!_0x4176c6){var _0x734f04=[],_0x25cc81=null;_0x14a742['queueCampaign']&&(_0x25cc81=_0x86640f()['find'](_0x14a742['agents'],{'id':Number(_0x14a742[_0x19077d('0x1203')][_0x19077d('0x1dc6')])}));for(var _0x2cc549=0x0;_0x2cc549<_0x14a742[_0x19077d('0xcb5')]['length'];_0x2cc549++){_0x25cc81&&_0x14a742['agents'][_0x2cc549]['id']===_0x25cc81['id']&&(_0x14a742[_0x19077d('0xcb5')][_0x2cc549][_0x19077d('0xba')]=![],_0x734f04[_0x19077d('0x206c')](_0x14a742[_0x19077d('0xcb5')][_0x2cc549]));}_0x14a742[_0x19077d('0xcb5')]=_0x734f04;}else{if(!_0x4176c6[_0x19077d('0x80c')])return _0x535a3a[_0x19077d('0x185e')]['get']({'sectionId':_0x4176c6['id']})[_0x19077d('0x1376')][_0x19077d('0x21ad')](function(_0x3c3a2b){var _0x5e179b=_0x19077d,_0x535ad7=_0x86640f()[_0x5e179b('0x26c3')](_0x3c3a2b[_0x5e179b('0x1b33')],function(_0xfe015c){var _0x11a379=_0x5e179b;return _0x86640f()[_0x11a379('0x1d2e')](_0x14a742[_0x11a379('0xcb5')],{'id':_0xfe015c[_0x11a379('0x675')]});}),_0x3bcd39=null;_0x14a742[_0x5e179b('0x1203')]&&(_0x3bcd39=_0x86640f()[_0x5e179b('0x1d2e')](_0x14a742[_0x5e179b('0xcb5')],{'id':Number(_0x14a742[_0x5e179b('0x1203')][_0x5e179b('0x1dc6')])}));if(_0x3bcd39&&!_0x86640f()[_0x5e179b('0x2664')](_0x535ad7,['id',_0x3bcd39['id']])){var _0x11499c=_0x86640f()[_0x5e179b('0x1d2e')](_0x14a742['agents'],{'id':_0x3bcd39['id']});_0x11499c[_0x5e179b('0xba')]=![],_0x535ad7['push'](_0x11499c);}_0x14a742[_0x5e179b('0xcb5')]=_0x535ad7;});}})[_0x23ca9c('0x1c1d')](function(_0x5ec207){var _0x3e923a=_0x23ca9c;_0x5eedda[_0x3e923a('0x2092')]({'title':_0x5ec207[_0x3e923a('0x209')]?'API:'+_0x5ec207['status']+_0x3e923a('0xa99')+_0x5ec207[_0x3e923a('0x1808')]:_0x3e923a('0x2f9'),'msg':_0x5ec207[_0x3e923a('0x11c2')]?JSON[_0x3e923a('0x25e')](_0x5ec207[_0x3e923a('0x11c2')]):_0x5ec207[_0x3e923a('0x174f')]()});});function _0x4734f6(_0x11fda3,_0x32eee2){var _0x1766f9=_0x23ca9c;_0x14a742[_0x1766f9('0x1203')]=_0x11fda3,_0x14a742[_0x1766f9('0x5ed')]=typeof _0x32eee2!==_0x1766f9('0xddc')?_0x32eee2:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x14a742[_0x1766f9('0x77')]['VoiceQueueId']=_0x14a742[_0x1766f9('0x1203')]['id'],_0x14a742['query']['id']=_0x14a742[_0x1766f9('0x1203')]['id'],_0x8ac30c();}function _0x12d5ee(_0x16e3ee,_0x2ee90e){var _0x3e6d36=_0x23ca9c,_0x1f0bed=_0x423e57[_0x3e6d36('0xa33')]()[_0x3e6d36('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopper?')['htmlContent'](''+(_0x16e3ee[_0x3e6d36('0x19fe')]||_0x16e3ee['id']&&_0x86640f()[_0x3e6d36('0x22e')](_0x3e6d36('0xd45'))+_0x16e3ee['id']||_0x3e6d36('0x155d'))+''+_0x3e6d36('0x25e0'))[_0x3e6d36('0x7a7')](_0x3e6d36('0xbb8'))[_0x3e6d36('0x1e6d')](_0x2ee90e)['ok']('OK')['cancel']('CANCEL');_0x423e57[_0x3e6d36('0x853')](_0x1f0bed)[_0x3e6d36('0x21ad')](function(){_0x57562a(_0x16e3ee);},function(){var _0x36852d=_0x3e6d36;console[_0x36852d('0x6fb')]('CANCEL');});}function _0x183ac5(_0x2c344e){_0x14a742['queueCampaignHoppers']=_0x2c344e||{'count':0x0,'rows':[]};}function _0x8ac30c(){var _0x5d9f9c=_0x23ca9c;_0x14a742[_0x5d9f9c('0x77')][_0x5d9f9c('0x15a5')]=(_0x14a742[_0x5d9f9c('0x77')]['page']-0x1)*_0x14a742[_0x5d9f9c('0x77')][_0x5d9f9c('0x1f4a')],_0x14a742[_0x5d9f9c('0x71b')]=_0x535a3a[_0x5d9f9c('0xb97')][_0x5d9f9c('0x252b')](_0x14a742[_0x5d9f9c('0x77')],_0x183ac5)[_0x5d9f9c('0x1376')];}function _0x306896(_0x1f3bee,_0x11d322){var _0x27aab9=_0x23ca9c;_0x423e57[_0x27aab9('0x853')]({'controller':_0x27aab9('0x10dc'),'controllerAs':'vm','templateUrl':_0x5e1b26,'parent':angular[_0x27aab9('0x1676')](_0xf2d8d6[_0x27aab9('0x2452')]),'targetEvent':_0x1f3bee,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x14a742[_0x27aab9('0x1203')],'hopper':_0x11d322,'hoppers':_0x14a742[_0x27aab9('0x1190')][_0x27aab9('0x1b33')],'license':null,'setting':null,'crudPermissions':_0x14a742['crudPermissions']}});}function _0x57562a(_0x5acd20){var _0x4047ff=_0x23ca9c;_0x535a3a[_0x4047ff('0x1b37')][_0x4047ff('0x1164')]({'id':_0x5acd20['id']})[_0x4047ff('0x1376')][_0x4047ff('0x21ad')](function(){var _0x11b3a3=_0x4047ff;_0x86640f()[_0x11b3a3('0x16a2')](_0x14a742[_0x11b3a3('0x1190')][_0x11b3a3('0x1b33')],{'id':_0x5acd20['id']}),_0x14a742[_0x11b3a3('0x1190')][_0x11b3a3('0x205f')]-=0x1,!_0x14a742[_0x11b3a3('0x1190')][_0x11b3a3('0x1b33')][_0x11b3a3('0x577')]&&_0x8ac30c(),_0x5eedda[_0x11b3a3('0xdb1')]({'title':_0x11b3a3('0x1fb4'),'msg':_0x5acd20[_0x11b3a3('0x19fe')]?_0x5acd20[_0x11b3a3('0x19fe')]+_0x11b3a3('0xb4a'):''});})['catch'](function(_0x5959af){var _0x4e3f5f=_0x4047ff;if(_0x5959af[_0x4e3f5f('0x11c2')]&&_0x5959af[_0x4e3f5f('0x11c2')][_0x4e3f5f('0x1a69')]&&_0x5959af[_0x4e3f5f('0x11c2')][_0x4e3f5f('0x1a69')]['length']){_0x14a742[_0x4e3f5f('0x1a69')]=_0x5959af[_0x4e3f5f('0x11c2')][_0x4e3f5f('0x1a69')]||[{'message':_0x5959af[_0x4e3f5f('0x174f')](),'type':_0x4e3f5f('0x20f4')}];for(var _0x455c13=0x0;_0x455c13<_0x5959af[_0x4e3f5f('0x11c2')]['errors'][_0x4e3f5f('0x577')];_0x455c13++){_0x5eedda[_0x4e3f5f('0x2092')]({'title':_0x5959af[_0x4e3f5f('0x11c2')][_0x4e3f5f('0x1a69')][_0x455c13]['type'],'msg':_0x5959af['data'][_0x4e3f5f('0x1a69')][_0x455c13]['message']});}}else _0x5eedda['error']({'title':_0x5959af[_0x4e3f5f('0x209')]?_0x4e3f5f('0x22d')+_0x5959af[_0x4e3f5f('0x209')]+_0x4e3f5f('0xa99')+_0x5959af[_0x4e3f5f('0x1808')]:_0x4e3f5f('0x20f4'),'msg':_0x5959af[_0x4e3f5f('0x11c2')]?JSON['stringify'](_0x5959af[_0x4e3f5f('0x11c2')]['message']):_0x5959af[_0x4e3f5f('0x1224')]||_0x5959af['toString']()});});}function _0x15ad5d(){var _0x4c7be=_0x23ca9c,_0x50faa2=angular[_0x4c7be('0xd75')](_0x14a742[_0x4c7be('0x23a1')]);return _0x14a742[_0x4c7be('0x23a1')]=[],_0x50faa2;}function _0x5b73f4(_0x19d45a){var _0x297a09=_0x23ca9c,_0x4565c5=_0x423e57[_0x297a09('0xa33')]()[_0x297a09('0x4b4')](_0x297a09('0x14da'))[_0x297a09('0x276b')](_0x297a09('0x622')+_0x14a742['selectedQueueCampaignHoppers'][_0x297a09('0x577')]+_0x297a09('0xd74')+_0x297a09('0x25e0'))[_0x297a09('0x7a7')]('delete\x20hoppers')[_0x297a09('0x1e6d')](_0x19d45a)['ok']('OK')[_0x297a09('0x3b5')](_0x297a09('0x284b'));_0x423e57['show'](_0x4565c5)['then'](function(){var _0x28d028=_0x297a09;_0x14a742['selectedQueueCampaignHoppers'][_0x28d028('0x1a52')](function(_0x4d65d2){_0x57562a(_0x4d65d2);}),_0x14a742[_0x28d028('0x23a1')]=[];});}var _0x37a4e0=!![],_0x2a8157=0x1;_0x3df40a[_0x23ca9c('0x10e8')](_0x23ca9c('0x10ff'),function(_0x380f8e,_0x3e8d8b){var _0x160889=_0x23ca9c;_0x37a4e0?_0x11c981(function(){_0x37a4e0=![];}):(!_0x3e8d8b&&(_0x2a8157=_0x14a742['query'][_0x160889('0x2376')]),_0x380f8e!==_0x3e8d8b&&(_0x14a742[_0x160889('0x77')][_0x160889('0x2376')]=0x1),!_0x380f8e&&(_0x14a742[_0x160889('0x77')][_0x160889('0x2376')]=_0x2a8157),_0x8ac30c());});}const _0x44ce76=_0x1cce14;_0x5bdb17[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),'toasty',_0x3877e3('0x14b5'),_0x3877e3('0x155d'),'api','Auth',_0x3877e3('0x2ff'),'setting',_0x3877e3('0x5ed')];function _0x5bdb17(_0x3cebe4,_0x3bb2d3,_0x422fb7,_0xf7fa7b,_0x1b543d,_0x559f0a,_0x59bff3,_0x19fc18,_0x258ff1,_0x51d951,_0x47233c,_0x5f3027,_0x28df2b,_0x3e4018){var _0x2eed7d=_0x3877e3,_0x5e321d=this;_0x5e321d[_0x2eed7d('0x123f')]=_0x47233c[_0x2eed7d('0x15ed')](),_0x5e321d[_0x2eed7d('0x1a69')]=[],_0x5e321d[_0x2eed7d('0x21e')]=_0x28df2b,_0x5e321d[_0x2eed7d('0x2ff')]=_0x5f3027,_0x5e321d[_0x2eed7d('0x5ed')]=_0x3e4018,_0x5e321d[_0x2eed7d('0x126a')]={},_0x5e321d[_0x2eed7d('0x1432')]=_0x5e321d[_0x2eed7d('0x21e')]&&_0x5e321d[_0x2eed7d('0x21e')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5e321d['title']=_0x2eed7d('0x6e9'),_0x5e321d[_0x2eed7d('0x155d')]=angular[_0x2eed7d('0xd75')](_0x258ff1),_0x5e321d[_0x2eed7d('0x14b5')]=_0x19fc18,_0x5e321d[_0x2eed7d('0x174c')]=![];!_0x5e321d[_0x2eed7d('0x155d')]&&(_0x5e321d[_0x2eed7d('0x155d')]={},_0x5e321d[_0x2eed7d('0x4b4')]=_0x2eed7d('0x2747'),_0x5e321d[_0x2eed7d('0x174c')]=!![]);_0x3bb2d3[_0x2eed7d('0x171b')]['id']&&(_0x5e321d[_0x2eed7d('0x155d')]['VoiceQueueId']=_0x3bb2d3[_0x2eed7d('0x171b')]['id']);_0x5e321d[_0x2eed7d('0xa78')]=_0x27bc6a,_0x5e321d[_0x2eed7d('0x173d')]=_0x376d09,_0x5e321d[_0x2eed7d('0x15d')]=_0x57ce74,_0x5e321d['getDateFromString']=_0x308baa,_0x5e321d[_0x2eed7d('0x167')]=_0x300515,_0x47233c['hasRole'](_0x2eed7d('0x1bd8'))?_0x51d951[_0x2eed7d('0x1775')][_0x2eed7d('0x595')]({'fields':_0x2eed7d('0x1aa8'),'role':'agent','sort':'name','nolimit':_0x2eed7d('0x19bd')})['$promise'][_0x2eed7d('0x21ad')](function(_0x287619){var _0x3b2a13=_0x2eed7d;_0x5e321d[_0x3b2a13('0xcb5')]=_0x287619[_0x3b2a13('0x1b33')]||[];})[_0x2eed7d('0x1c1d')](function(_0x1d0a55){var _0x1baeab=_0x2eed7d;_0x59bff3[_0x1baeab('0x2092')]({'title':_0x1d0a55[_0x1baeab('0x209')]?_0x1baeab('0x22d')+_0x1d0a55[_0x1baeab('0x209')]+_0x1baeab('0xa99')+_0x1d0a55['statusText']:_0x1baeab('0x1381'),'msg':_0x1d0a55[_0x1baeab('0x11c2')]?JSON[_0x1baeab('0x25e')](_0x1d0a55['data']):_0x1d0a55['toString']()});}):_0x51d951[_0x2eed7d('0x1775')][_0x2eed7d('0x595')]({'fields':_0x2eed7d('0x1aa8'),'role':_0x2eed7d('0x2402'),'sort':_0x2eed7d('0x19fe'),'nolimit':_0x2eed7d('0x19bd')})[_0x2eed7d('0x1376')][_0x2eed7d('0x21ad')](function(_0x43609c){var _0x572282=_0x2eed7d;_0x5e321d[_0x572282('0xcb5')]=_0x43609c[_0x572282('0x1b33')]||[];})[_0x2eed7d('0x21ad')](function(){var _0x5153c7=_0x2eed7d;return _0x51d951[_0x5153c7('0xab4')][_0x5153c7('0x595')]({'userProfileId':_0x5e321d[_0x5153c7('0x123f')][_0x5153c7('0x1618')],'sectionId':0xca})[_0x5153c7('0x1376')];})[_0x2eed7d('0x21ad')](function(_0x2a08d5){var _0x334c1e=_0x2eed7d,_0x27f40a=_0x2a08d5&&_0x2a08d5[_0x334c1e('0x1b33')]?_0x2a08d5[_0x334c1e('0x1b33')][0x0]:null;if(!_0x27f40a){var _0x436e7b=[],_0xd58f4=null;_0x5e321d['hopper']&&(_0xd58f4=_0x86640f()[_0x334c1e('0x1d2e')](_0x5e321d[_0x334c1e('0xcb5')],{'id':Number(_0x5e321d[_0x334c1e('0x155d')][_0x334c1e('0x1dc6')])}));for(var _0x4e711d=0x0;_0x4e711d<_0x5e321d[_0x334c1e('0xcb5')]['length'];_0x4e711d++){_0xd58f4&&_0x5e321d[_0x334c1e('0xcb5')][_0x4e711d]['id']===_0xd58f4['id']&&(_0x5e321d[_0x334c1e('0xcb5')][_0x4e711d]['canSelect']=![],_0x436e7b['push'](_0x5e321d[_0x334c1e('0xcb5')][_0x4e711d]));}_0x5e321d[_0x334c1e('0xcb5')]=_0x436e7b;}else{if(!_0x27f40a['autoAssociation'])return _0x51d951['userProfileResource'][_0x334c1e('0x595')]({'sectionId':_0x27f40a['id']})[_0x334c1e('0x1376')][_0x334c1e('0x21ad')](function(_0x5b6147){var _0x40342e=_0x334c1e,_0x30910b=_0x86640f()[_0x40342e('0x26c3')](_0x5b6147[_0x40342e('0x1b33')],function(_0x2d42aa){var _0x45c69e=_0x40342e;return _0x86640f()['find'](_0x5e321d[_0x45c69e('0xcb5')],{'id':_0x2d42aa[_0x45c69e('0x675')]});}),_0x41af27=null;_0x5e321d[_0x40342e('0x155d')]&&(_0x41af27=_0x86640f()['find'](_0x5e321d[_0x40342e('0xcb5')],{'id':Number(_0x5e321d[_0x40342e('0x155d')][_0x40342e('0x1dc6')])}));if(_0x41af27&&!_0x86640f()['some'](_0x30910b,['id',_0x41af27['id']])){var _0x25ee54=_0x86640f()[_0x40342e('0x1d2e')](_0x5e321d[_0x40342e('0xcb5')],{'id':_0x41af27['id']});_0x25ee54[_0x40342e('0xba')]=![],_0x30910b['push'](_0x25ee54);}_0x5e321d['agents']=_0x30910b;});}})[_0x2eed7d('0x1c1d')](function(_0x5b7b2c){var _0x404f4f=_0x2eed7d;_0x59bff3[_0x404f4f('0x2092')]({'title':_0x5b7b2c[_0x404f4f('0x209')]?_0x404f4f('0x22d')+_0x5b7b2c[_0x404f4f('0x209')]+_0x404f4f('0xa99')+_0x5b7b2c[_0x404f4f('0x1808')]:_0x404f4f('0x2f9'),'msg':_0x5b7b2c['data']?JSON[_0x404f4f('0x25e')](_0x5b7b2c[_0x404f4f('0x11c2')]):_0x5b7b2c[_0x404f4f('0x174f')]()});});function _0x27bc6a(){var _0x15b570=_0x2eed7d;_0x5e321d[_0x15b570('0x1a69')]=[],_0x51d951[_0x15b570('0x1b37')][_0x15b570('0x186f')](_0x5e321d[_0x15b570('0x155d')])['$promise']['then'](function(_0x37604b){var _0x13df44=_0x15b570;_0x5e321d['hoppers'][_0x13df44('0xd0c')](_0x37604b[_0x13df44('0x3bc')]()),_0x59bff3['success']({'title':'Hopper\x20properly\x20created','msg':_0x5e321d[_0x13df44('0x155d')][_0x13df44('0x19fe')]?_0x5e321d[_0x13df44('0x155d')]['name']+_0x13df44('0x1694'):''}),_0x300515(_0x37604b);})[_0x15b570('0x1c1d')](function(_0x129ac0){var _0x112ce8=_0x15b570;if(_0x129ac0['data']&&_0x129ac0[_0x112ce8('0x11c2')][_0x112ce8('0x1a69')]&&_0x129ac0['data'][_0x112ce8('0x1a69')][_0x112ce8('0x577')]){_0x5e321d[_0x112ce8('0x1a69')]=_0x129ac0[_0x112ce8('0x11c2')][_0x112ce8('0x1a69')]||[{'message':_0x129ac0[_0x112ce8('0x174f')](),'type':_0x112ce8('0x178c')}];for(var _0x45aa33=0x0;_0x45aa33<_0x129ac0[_0x112ce8('0x11c2')][_0x112ce8('0x1a69')][_0x112ce8('0x577')];_0x45aa33+=0x1){_0x59bff3['error']({'title':_0x129ac0[_0x112ce8('0x11c2')][_0x112ce8('0x1a69')][_0x45aa33]['type'],'msg':_0x129ac0[_0x112ce8('0x11c2')]['errors'][_0x45aa33][_0x112ce8('0x1224')]});}}else _0x59bff3[_0x112ce8('0x2092')]({'title':_0x129ac0[_0x112ce8('0x209')]?_0x112ce8('0x22d')+_0x129ac0['status']+_0x112ce8('0xa99')+_0x129ac0[_0x112ce8('0x1808')]:_0x112ce8('0x178c'),'msg':_0x129ac0['data']?JSON[_0x112ce8('0x25e')](_0x129ac0[_0x112ce8('0x11c2')]['message']):_0x129ac0['toString']()});});}function _0x376d09(){var _0x5f23f0=_0x2eed7d;_0x5e321d['errors']=[];var _0x388b1c,_0x5d74de,_0x34550a,_0x5a4135;_0x5e321d[_0x5f23f0('0x155d')][_0x5f23f0('0x1dc6')]=_0x5e321d[_0x5f23f0('0x155d')][_0x5f23f0('0xe15')]?_0x5e321d[_0x5f23f0('0x155d')][_0x5f23f0('0x1dc6')]:null,_0x5e321d[_0x5f23f0('0x155d')][_0x5f23f0('0x17f2')]=_0x47233c[_0x5f23f0('0x15ed')]()['id'],_0x51d951[_0x5f23f0('0x1b37')][_0x5f23f0('0x595')]({'id':_0x5e321d[_0x5f23f0('0x155d')]['id'],'attributes':['scheduledat']})[_0x5f23f0('0x1376')]['then'](function(_0x2844f1){var _0x3b0dad=_0x5f23f0;_0x86640f()['isNil'](_0x2844f1)||_0x86640f()['isEmpty'](_0x2844f1)?_0x388b1c=_0x1088bc()()[_0x3b0dad('0x153')](_0x3b0dad('0x1e15')):_0x388b1c=_0x2844f1[_0x3b0dad('0x141a')];})[_0x5f23f0('0x13e')](function(){var _0x256e9d=_0x5f23f0;_0x51d951[_0x256e9d('0x1b37')][_0x256e9d('0x5ef')]({'id':_0x5e321d[_0x256e9d('0x155d')]['id']},_0x86640f()[_0x256e9d('0x27b1')](_0x5e321d['hopper'],[_0x256e9d('0xe90'),_0x256e9d('0x23b6'),_0x256e9d('0x2596'),_0x256e9d('0x815')]))['$promise']['then'](function(_0x241d83){var _0x4d8fae=_0x256e9d;_0x5d74de=_0x241d83,_0x51d951[_0x4d8fae('0x25dc')][_0x4d8fae('0x595')]({'id':_0x5d74de[_0x4d8fae('0x2596')],'attributes':['firstName',_0x4d8fae('0x6d')]})[_0x4d8fae('0x1376')][_0x4d8fae('0x21ad')](function(_0x63b77e){var _0x477ee8=_0x4d8fae;!_0x86640f()[_0x477ee8('0x1c7')](_0x63b77e)&&!_0x86640f()['isNil'](_0x63b77e[_0x477ee8('0x992')])&&(_0x34550a=_0x63b77e[_0x477ee8('0x992')],!_0x86640f()['isNil'](_0x63b77e[_0x477ee8('0x6d')])&&(_0x34550a+='\x20'+_0x63b77e[_0x477ee8('0x6d')]));})[_0x4d8fae('0x1c1d')](function(){_0x34550a=undefined;})[_0x4d8fae('0x13e')](function(){var _0x516853=_0x4d8fae;_0x51d951[_0x516853('0xb97')][_0x516853('0x595')]({'raw':![],'id':_0x5d74de[_0x516853('0xe90')],'attributes':[_0x516853('0x19fe')]})[_0x516853('0x1376')][_0x516853('0x21ad')](function(_0x96c87a){var _0x450ad9=_0x516853;_0x5a4135=_0x96c87a[_0x450ad9('0x19fe')];})[_0x516853('0x1c1d')](function(){_0x5a4135=undefined;})[_0x516853('0x13e')](function(){var _0x3336b2=_0x516853;_0x51d951[_0x3336b2('0x1ec7')][_0x3336b2('0x186f')]({'state':0x18,'statedesc':_0x3336b2('0x1034'),'scheduledat':_0x388b1c,'calleridnum':_0x5d74de['phone'],'calleridname':_0x34550a,'campaigntype':_0x5d74de[_0x3336b2('0xe90')]?'queue':_0x3336b2('0x9d8'),'campaign':_0x5a4135,'editedat':_0x1088bc()()[_0x3336b2('0x153')](_0x3336b2('0x1e15')),'edited':!![],'ListId':_0x5d74de[_0x3336b2('0x815')],'UserId':_0x47233c[_0x3336b2('0x15ed')]()['id'],'VoiceQueueId':_0x5d74de['VoiceQueueId'],'CampaignId':_0x5d74de['CampaignId'],'ContactId':_0x5d74de['ContactId'],'callback':_0x5d74de[_0x3336b2('0xc21')],'callbackuniqueid':_0x5d74de['callbackuniqueid'],'countbusyretry':_0x5d74de[_0x3336b2('0x1228')],'countcongestionretry':_0x5d74de[_0x3336b2('0x96c')],'countglobal':_0x5d74de[_0x3336b2('0x97c')],'countnoanswerretry':_0x5d74de[_0x3336b2('0x25f7')],'followuptime':_0x5d74de[_0x3336b2('0x72e')],'recallme':_0x5d74de[_0x3336b2('0xe15')]});});});var _0x390265=_0x86640f()['find'](_0x5e321d[_0x4d8fae('0x14b5')],{'id':_0x241d83['id']});_0x390265&&_0x86640f()[_0x4d8fae('0xd0e')](_0x390265,_0x86640f()[_0x4d8fae('0xc50')](_0x241d83[_0x4d8fae('0x3bc')](),_0x86640f()[_0x4d8fae('0x223b')](_0x390265))),_0x59bff3[_0x4d8fae('0xdb1')]({'title':_0x4d8fae('0x1f05'),'msg':_0x5e321d[_0x4d8fae('0x155d')][_0x4d8fae('0x19fe')]?_0x5e321d[_0x4d8fae('0x155d')][_0x4d8fae('0x19fe')]+'\x20has\x20been\x20saved!':''}),_0x300515(_0x241d83);})[_0x256e9d('0x1c1d')](function(_0xc698ce){var _0x5d22f7=_0x256e9d;if(_0xc698ce[_0x5d22f7('0x11c2')]&&_0xc698ce[_0x5d22f7('0x11c2')][_0x5d22f7('0x1a69')]&&_0xc698ce['data'][_0x5d22f7('0x1a69')][_0x5d22f7('0x577')]){_0x5e321d['errors']=_0xc698ce['data']['errors']||[{'message':_0xc698ce[_0x5d22f7('0x174f')](),'type':_0x5d22f7('0xbd6')}];for(var _0x52ec2b=0x0;_0x52ec2b<_0xc698ce[_0x5d22f7('0x11c2')][_0x5d22f7('0x1a69')][_0x5d22f7('0x577')];_0x52ec2b++){_0x59bff3[_0x5d22f7('0x2092')]({'title':_0xc698ce[_0x5d22f7('0x11c2')][_0x5d22f7('0x1a69')][_0x52ec2b][_0x5d22f7('0x7fa')],'msg':_0xc698ce['data']['errors'][_0x52ec2b][_0x5d22f7('0x1224')]});}}else _0x59bff3[_0x5d22f7('0x2092')]({'title':_0xc698ce['status']?'API:'+_0xc698ce[_0x5d22f7('0x209')]+_0x5d22f7('0xa99')+_0xc698ce[_0x5d22f7('0x1808')]:_0x5d22f7('0xbd6'),'msg':_0xc698ce['data']?JSON[_0x5d22f7('0x25e')](_0xc698ce['data']['message']):_0xc698ce[_0x5d22f7('0x174f')]()});});});}function _0x57ce74(_0x59f15c){var _0x1363e5=_0x2eed7d;_0x5e321d[_0x1363e5('0x1a69')]=[];var _0x4cae4e=_0xf7fa7b['confirm']()[_0x1363e5('0x4b4')](_0x1363e5('0x196b'))[_0x1363e5('0x13fb')](_0x1363e5('0xfe6'))['ariaLabel']('Delete\x20Hopper')['ok'](_0x1363e5('0xbfd'))[_0x1363e5('0x3b5')](_0x1363e5('0x1f40'))['targetEvent'](_0x59f15c);_0xf7fa7b['show'](_0x4cae4e)['then'](function(){var _0x1e5618=_0x1363e5;_0x51d951[_0x1e5618('0x1b37')][_0x1e5618('0x1164')]({'id':_0x5e321d[_0x1e5618('0x155d')]['id']})[_0x1e5618('0x1376')][_0x1e5618('0x21ad')](function(){var _0x38324d=_0x1e5618;_0x86640f()[_0x38324d('0x16a2')](_0x5e321d[_0x38324d('0x14b5')],{'id':_0x5e321d[_0x38324d('0x155d')]['id']}),_0x59bff3['success']({'title':_0x38324d('0x236f'),'msg':(_0x5e321d['hopper'][_0x38324d('0x19fe')]||_0x38324d('0x155d'))+'\x20has\x20been\x20deleted!'}),_0x300515(_0x5e321d['hopper']);})[_0x1e5618('0x1c1d')](function(_0x52d424){var _0x141cfa=_0x1e5618;if(_0x52d424[_0x141cfa('0x11c2')]&&_0x52d424[_0x141cfa('0x11c2')]['errors']&&_0x52d424[_0x141cfa('0x11c2')][_0x141cfa('0x1a69')][_0x141cfa('0x577')]){_0x5e321d['errors']=_0x52d424[_0x141cfa('0x11c2')][_0x141cfa('0x1a69')]||[{'message':_0x52d424[_0x141cfa('0x174f')](),'type':_0x141cfa('0x73e')}];for(var _0x434689=0x0;_0x434689<_0x52d424['data'][_0x141cfa('0x1a69')][_0x141cfa('0x577')];_0x434689++){_0x59bff3[_0x141cfa('0x2092')]({'title':_0x52d424[_0x141cfa('0x11c2')][_0x141cfa('0x1a69')][_0x434689][_0x141cfa('0x7fa')],'msg':_0x52d424['data']['errors'][_0x434689][_0x141cfa('0x1224')]});}}else _0x59bff3[_0x141cfa('0x2092')]({'title':_0x52d424[_0x141cfa('0x209')]?_0x141cfa('0x22d')+_0x52d424['status']+'\x20-\x20'+_0x52d424['statusText']:'api.cmHopper.delete','msg':_0x52d424[_0x141cfa('0x11c2')]?JSON['stringify'](_0x52d424[_0x141cfa('0x11c2')]['message']):_0x52d424['message']||_0x52d424[_0x141cfa('0x174f')]()});});},function(){});}function _0x308baa(_0x5037dc){return _0x5037dc===null?undefined:new Date(_0x5037dc);}function _0x300515(_0x1128f3){var _0x18cb9b=_0x2eed7d;_0xf7fa7b[_0x18cb9b('0x1c24')](_0x1128f3);}}const _0x22e53a=_0x5bdb17;_0x294276['$inject']=[_0x3877e3('0xccd'),_0x3877e3('0x1908')];function _0x294276(_0x2a02e4,_0x116269){var _0x4c6c55=_0x3877e3,_0x39c844=this;_0x39c844[_0x4c6c55('0x1203')]={},_0x39c844['init']=_0x277b3e;function _0x277b3e(_0x140452){var _0x1cde46=_0x4c6c55;_0x39c844['queueCampaign']=_0x140452,_0x2a02e4[_0x1cde46('0x1b37')][_0x1cde46('0x595')]({'limit':0x0,'VoiceQueueId':_0x140452['id']})[_0x1cde46('0x1376')][_0x1cde46('0x21ad')](function(_0x35412a){var _0x338a15=_0x1cde46;return _0x39c844[_0x338a15('0x16f0')]=_0x35412a[_0x338a15('0x205f')]||0x0,_0x2a02e4[_0x338a15('0x1b37')]['get']({'limit':0x0,'VoiceQueueId':_0x140452['id'],'active':![],'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0})['$promise'];})[_0x1cde46('0x21ad')](function(_0x115e76){var _0x9200e3=_0x1cde46;return _0x39c844['fresh']=_0x115e76[_0x9200e3('0x205f')]||0x0,_0x2a02e4[_0x9200e3('0x10d9')][_0x9200e3('0x595')]({'limit':0x0,'VoiceQueueId':_0x140452['id']})[_0x9200e3('0x1376')];})[_0x1cde46('0x21ad')](function(_0x4a5e2a){var _0x5aea7d=_0x1cde46;_0x39c844['closed']=_0x4a5e2a[_0x5aea7d('0x205f')]||0x0;})[_0x1cde46('0x1c1d')](function(_0x5c795a){var _0xabb1ca=_0x1cde46;_0x116269['error']({'title':_0x5c795a['status']?'API:'+_0x5c795a[_0xabb1ca('0x209')]+_0xabb1ca('0xa99')+_0x5c795a[_0xabb1ca('0x1808')]:_0xabb1ca('0x25ce'),'msg':_0x5c795a[_0xabb1ca('0x11c2')]?JSON[_0xabb1ca('0x25e')](_0x5c795a[_0xabb1ca('0x11c2')]):_0x5c795a[_0xabb1ca('0x174f')]()});});}}const _0x19ca9d=_0x294276;_0x329759['$inject']=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x1203'),'$translate',_0x3877e3('0x2313'),'Auth',_0x3877e3('0x5ed')];function _0x329759(_0x1e1638,_0x45a627,_0x52d079,_0x456cd4,_0x2ff2ef,_0x3fff78,_0x43807a,_0x269494,_0x156e29){var _0x29e0ea=_0x3877e3,_0x5a2bda=this;_0x5a2bda[_0x29e0ea('0x123f')]=_0x269494[_0x29e0ea('0x15ed')](),_0x5a2bda[_0x29e0ea('0x1203')]=_0x2ff2ef,_0x5a2bda['crudPermissions']=_0x156e29,_0x5a2bda[_0x29e0ea('0x1fd5')]=_0x29e0ea('0xb97'),_0x5a2bda[_0x29e0ea('0x1d30')]=_0x29e0ea('0x130'),_0x5a2bda[_0x29e0ea('0xbb3')]='addLists',_0x5a2bda[_0x29e0ea('0x66a')]=_0x29e0ea('0xd92'),_0x5a2bda[_0x29e0ea('0x1b9a')]=[],_0x5a2bda['allowedItems']=[],_0x5a2bda[_0x29e0ea('0x2629')]=[],_0x5a2bda[_0x29e0ea('0x91b')]=[],_0x5a2bda[_0x29e0ea('0x2584')]=[],_0x5a2bda[_0x29e0ea('0x1bb9')]=![],_0x5a2bda[_0x29e0ea('0x27c0')]=![],_0x5a2bda[_0x29e0ea('0x909')]={'readOnly':!_0x5a2bda[_0x29e0ea('0x5ed')][_0x29e0ea('0x6e2')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':_0x29e0ea('0x19fe'),'line1':_0x29e0ea('0x19fe'),'line2':'','line3':'','labelAll':_0x3fff78[_0x29e0ea('0x183e')](_0x29e0ea('0x189c')),'labelSelected':_0x3fff78[_0x29e0ea('0x183e')]('MOTIONDIALER.SELECTED_LISTS'),'transferCallback':function _0xcb5b0b(){var _0x571e03=_0x29e0ea,_0xb8d8c3=_0x86640f()[_0x571e03('0x1473')](_0x5a2bda[_0x571e03('0x2584')],_0x5a2bda[_0x571e03('0x2629')],'id');_0x5a2bda[_0x571e03('0x1bb9')]=_0x86640f()[_0x571e03('0x23aa')](_0xb8d8c3)?![]:!![];}},_0x5a2bda[_0x29e0ea('0x1081')]=_0x3a12bd,_0x5a2bda['saveLists']=_0x462b09,_0x5a2bda[_0x29e0ea('0x167')]=_0x58edd8;function _0x3a12bd(){var _0x1854b1=_0x29e0ea;return _0x269494[_0x1854b1('0x21de')](_0x1854b1('0x1bd8'))?_0x5d596c()[_0x1854b1('0x1c1d')](function(_0x152392){var _0x2dc13d=_0x1854b1;_0x52d079[_0x2dc13d('0x2092')]({'title':_0x152392[_0x2dc13d('0x209')]?_0x2dc13d('0x22d')+_0x152392['status']+_0x2dc13d('0xa99')+_0x152392[_0x2dc13d('0x1808')]:_0x2dc13d('0xcc3'),'msg':_0x152392[_0x2dc13d('0x209')]?JSON['stringify'](_0x152392['data']):_0x152392['toString']()});}):_0x350779()[_0x1854b1('0x21ad')](function(_0x172f2b){var _0x1e91db=_0x1854b1;return _0x5a2bda[_0x1e91db('0x26ad')]=_0x172f2b,_0x5d596c();})['catch'](function(_0x3488e2){var _0x4f5b0d=_0x1854b1;_0x52d079[_0x4f5b0d('0x2092')]({'title':_0x3488e2[_0x4f5b0d('0x209')]?_0x4f5b0d('0x22d')+_0x3488e2[_0x4f5b0d('0x209')]+'\x20-\x20'+_0x3488e2['statusText']:'SYSTEM:GETLISTS','msg':_0x3488e2[_0x4f5b0d('0x209')]?JSON[_0x4f5b0d('0x25e')](_0x3488e2[_0x4f5b0d('0x11c2')]):_0x3488e2[_0x4f5b0d('0x174f')]()});});}function _0x350779(){return _0x45a627(function(_0x2580a5,_0x270433){var _0x3991fe=a0_0x2e7f;_0x456cd4['userProfileSection'][_0x3991fe('0x595')]({'userProfileId':_0x5a2bda[_0x3991fe('0x123f')][_0x3991fe('0x1618')],'name':'Lists'})[_0x3991fe('0x1376')][_0x3991fe('0x21ad')](function(_0x229d82){var _0x68e9c0=_0x3991fe,_0x4065cc=_0x229d82&&_0x229d82[_0x68e9c0('0x1b33')]?_0x229d82[_0x68e9c0('0x1b33')][0x0]:null;_0x2580a5(_0x4065cc);})[_0x3991fe('0x1c1d')](function(_0x30f28a){_0x270433(_0x30f28a);});});}function _0x5d596c(){return _0x45a627(function(_0x16337b,_0x40311e){var _0x3a9270=a0_0x2e7f;return _0x55e55a()[_0x3a9270('0x21ad')](function(_0x22e2de){var _0x360adc=_0x3a9270;return _0x5a2bda[_0x360adc('0x1b9a')]=_0x22e2de[_0x360adc('0x1b33')]?_0x22e2de[_0x360adc('0x1b33')]:[],_0x269494['hasRole'](_0x360adc('0x1bd8'))?_0x22e2de:_0x5a2bda[_0x360adc('0x26ad')]?_0x5a2bda[_0x360adc('0x26ad')][_0x360adc('0x80c')]?_0x22e2de:_0x5b5fa4():null;})[_0x3a9270('0x21ad')](function(_0x2de48c){var _0x120ee0=_0x3a9270,_0x2bed34=_0x2de48c&&_0x2de48c[_0x120ee0('0x1b33')]?_0x2de48c[_0x120ee0('0x1b33')]:[];return _0x5a2bda[_0x120ee0('0x1e09')]=_0x86640f()[_0x120ee0('0x26c3')](_0x2bed34,function(_0x3a6f6a){var _0x31b411=_0x120ee0;return _0x86640f()[_0x31b411('0x1d2e')](_0x5a2bda[_0x31b411('0x1b9a')],{'id':_0x269494[_0x31b411('0x21de')](_0x31b411('0x1bd8'))||_0x5a2bda[_0x31b411('0x26ad')][_0x31b411('0x80c')]?_0x3a6f6a['id']:_0x3a6f6a[_0x31b411('0x675')]});}),_0x5a2bda[_0x120ee0('0x91b')]=angular['copy'](_0x5a2bda[_0x120ee0('0x1e09')]),_0x5a2bda[_0x120ee0('0x1b9a')]['forEach'](function(_0x408fdf){var _0x89e80d=_0x120ee0,_0x394c18=_0x86640f()['find'](_0x5a2bda['allowedItems'],{'id':_0x408fdf['id']});_0x5a2bda[_0x89e80d('0x123f')][_0x89e80d('0x25c8')]===_0x89e80d('0x1bd8')?_0x408fdf[_0x89e80d('0x118b')]=!![]:_0x408fdf[_0x89e80d('0x118b')]=typeof _0x394c18!==_0x89e80d('0xddc')?!![]:![];}),_0x50e765();})[_0x3a9270('0x21ad')](function(_0x53a3d5){var _0xbf6f64=_0x3a9270,_0x54d196=_0x53a3d5&&_0x53a3d5[_0xbf6f64('0x1b33')]?_0x53a3d5['rows']:[];_0x5a2bda[_0xbf6f64('0x2629')]=_0x86640f()['map'](_0x54d196,function(_0x5028a2){var _0x3d9042=_0xbf6f64;return _0x86640f()[_0x3d9042('0x1d2e')](_0x5a2bda[_0x3d9042('0x1b9a')],{'id':_0x5028a2['id']});}),_0x5a2bda['startingSelectedItems']=angular['copy'](_0x5a2bda['selectedItems']),_0x5a2bda[_0xbf6f64('0x909')][_0xbf6f64('0x2629')]=_0x5a2bda['selectedItems'],_0x5a2bda['dualMultiselectOptions'][_0xbf6f64('0x1b9a')]=_0x86640f()[_0xbf6f64('0x1eab')](_0x5a2bda['allowedItems'],_0x5a2bda[_0xbf6f64('0x909')]['selectedItems'],'id'),_0x16337b();})[_0x3a9270('0x1c1d')](function(_0x1fb243){_0x40311e(_0x1fb243);});});}function _0x5b5fa4(){return _0x45a627(function(_0x107b79,_0x5deeac){var _0x4d2304=a0_0x2e7f;return _0x456cd4['userProfileResource'][_0x4d2304('0x595')]({'sectionId':_0x5a2bda[_0x4d2304('0x26ad')]['id'],'nolimit':!![]})[_0x4d2304('0x1376')][_0x4d2304('0x21ad')](function(_0x207619){_0x107b79(_0x207619);})[_0x4d2304('0x1c1d')](function(_0x51bc19){_0x5deeac(_0x51bc19);});});}function _0x50e765(){return _0x45a627(function(_0x2f2903,_0x1945d2){var _0x1099a3=a0_0x2e7f,_0x3da1dd=_0x456cd4[_0x5a2bda[_0x1099a3('0x1fd5')]];return _0x3da1dd[_0x5a2bda[_0x1099a3('0x1d30')]]({'id':_0x5a2bda['queueCampaign']['id'],'fields':_0x1099a3('0x1aa8'),'nolimit':!![]})[_0x1099a3('0x1376')]['then'](function(_0x5733b1){_0x2f2903(_0x5733b1);})['catch'](function(_0x49e105){_0x1945d2(_0x49e105);});});}function _0x55e55a(){return _0x45a627(function(_0x403c8a,_0x5ef869){var _0x50c6b8=a0_0x2e7f;return _0x456cd4[_0x50c6b8('0x11e0')][_0x50c6b8('0x595')]({'fields':_0x50c6b8('0x1aa8'),'nolimit':!![]})[_0x50c6b8('0x1376')]['then'](function(_0x4f082e){_0x403c8a(_0x4f082e);})['catch'](function(_0x4d5c98){_0x5ef869(_0x4d5c98);});});}function _0x47e4c1(_0x41319a){return _0x45a627(function(_0x319bd3,_0x5b2b28){var _0x112042=a0_0x2e7f;if(_0x86640f()[_0x112042('0x23aa')](_0x41319a))_0x319bd3();else{var _0x4fe9ec=_0x456cd4[_0x5a2bda[_0x112042('0x1fd5')]];_0x4fe9ec[_0x5a2bda[_0x112042('0xbb3')]]({'id':_0x5a2bda[_0x112042('0x1203')]['id'],'ids':_0x86640f()[_0x112042('0x26c3')](_0x41319a,'id')})['$promise'][_0x112042('0x21ad')](function(){_0x319bd3();})[_0x112042('0x1c1d')](function(_0x125fae){_0x5b2b28(_0x125fae);});}});}function _0x3e2cc5(_0x55dba4){return _0x45a627(function(_0x590bcd,_0x4c223e){var _0x383e4f=a0_0x2e7f;if(_0x86640f()['isEmpty'](_0x55dba4))_0x590bcd();else{var _0x406cee=_0x456cd4[_0x5a2bda['apiRoute']];_0x406cee[_0x5a2bda[_0x383e4f('0x66a')]]({'id':_0x5a2bda[_0x383e4f('0x1203')]['id'],'ids':_0x86640f()[_0x383e4f('0x26c3')](_0x55dba4,'id')})[_0x383e4f('0x1376')][_0x383e4f('0x21ad')](function(){_0x590bcd();})[_0x383e4f('0x1c1d')](function(_0x4291e8){_0x4c223e(_0x4291e8);});}});}function _0x462b09(){var _0xfa85c1=_0x29e0ea;_0x5a2bda[_0xfa85c1('0x27c0')]=!![];var _0x47e058=_0x86640f()[_0xfa85c1('0x1eab')](_0x5a2bda[_0xfa85c1('0x2584')],_0x5a2bda[_0xfa85c1('0x2629')],'id'),_0x28a8b2=_0x86640f()[_0xfa85c1('0x1eab')](_0x5a2bda[_0xfa85c1('0x2629')],_0x5a2bda[_0xfa85c1('0x2584')],'id');return _0x3e2cc5(_0x47e058)['then'](function(){return _0x47e4c1(_0x28a8b2);})[_0xfa85c1('0x21ad')](function(){var _0xf8b1ff=_0xfa85c1;_0x5a2bda[_0xf8b1ff('0x1bb9')]=![],_0x5a2bda[_0xf8b1ff('0x91b')]=angular[_0xf8b1ff('0xd75')](_0x5a2bda[_0xf8b1ff('0x1e09')]),_0x5a2bda[_0xf8b1ff('0x2584')]=angular[_0xf8b1ff('0xd75')](_0x5a2bda[_0xf8b1ff('0x2629')]),_0x52d079[_0xf8b1ff('0xdb1')]({'title':_0xf8b1ff('0x2804'),'msg':_0xf8b1ff('0x267b')});})[_0xfa85c1('0x1c1d')](function(_0x2ec014){var _0x4aff31=_0xfa85c1;_0x52d079[_0x4aff31('0x2092')]({'title':_0x2ec014['status']?_0x4aff31('0x22d')+_0x2ec014[_0x4aff31('0x209')]+_0x4aff31('0xa99')+_0x2ec014[_0x4aff31('0x1808')]:_0x4aff31('0x1dd7'),'msg':_0x2ec014[_0x4aff31('0x209')]?JSON[_0x4aff31('0x25e')](_0x2ec014[_0x4aff31('0x11c2')]):_0x2ec014['toString']()});})[_0xfa85c1('0x13e')](function(){var _0x3106a9=_0xfa85c1;_0x5a2bda[_0x3106a9('0x27c0')]=![];});}function _0x58edd8(){var _0x503c6e=_0x29e0ea;_0x1e1638[_0x503c6e('0x1c24')]();}}const _0x50052b=_0x329759;_0x58caa7[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x1850'),'toasty','api',_0x3877e3('0x1203'),_0x3877e3('0x99f'),_0x3877e3('0x954'),'$q'];function _0x58caa7(_0x19e607,_0xe95406,_0x55400d,_0x52d835,_0x23c541,_0x1685ec,_0x69a446,_0x2da5f9){var _0x26380c=_0x3877e3,_0x39d1a0=this;_0x39d1a0['selected']=[],_0x39d1a0[_0x26380c('0x1b9a')]=_0x1685ec?_0x1685ec:[],_0x39d1a0[_0x26380c('0x27c0')]=![],_0x39d1a0[_0x26380c('0x167')]=_0x582e61,_0x39d1a0[_0x26380c('0x1587')]=_0x118841,_0x39d1a0[_0x26380c('0x170c')]=_0x4365ec,_0x39d1a0[_0x26380c('0x20e9')]=_0x5006e0,_0x39d1a0['isChecked']=_0x45a555,_0x39d1a0['toggleAll']=_0x7055ca,_0x39d1a0[_0x26380c('0x1452')]=_0x49bbdd;function _0x4365ec(_0x4e8fd4,_0x506c83){var _0x516648=_0x26380c,_0x4fb96f=_0x506c83[_0x516648('0x2004')](_0x4e8fd4);_0x4fb96f>-0x1?_0x506c83[_0x516648('0xafe')](_0x4fb96f,0x1):_0x506c83[_0x516648('0x206c')](_0x4e8fd4);}function _0x118841(_0x32ccea,_0x53fc65){return _0x53fc65['indexOf'](_0x32ccea)>-0x1;}function _0x5006e0(){var _0x265d51=_0x26380c;return _0x39d1a0['selected'][_0x265d51('0x577')]!==0x0&&_0x39d1a0[_0x265d51('0xeb7')][_0x265d51('0x577')]!==_0x39d1a0[_0x265d51('0x1b9a')][_0x265d51('0x577')];}function _0x45a555(){var _0x58eff6=_0x26380c;return _0x39d1a0[_0x58eff6('0xeb7')][_0x58eff6('0x577')]===_0x39d1a0['items'][_0x58eff6('0x577')];}function _0x7055ca(){var _0x2ad9df=_0x26380c;if(_0x39d1a0[_0x2ad9df('0xeb7')][_0x2ad9df('0x577')]===_0x39d1a0[_0x2ad9df('0x1b9a')][_0x2ad9df('0x577')])_0x39d1a0[_0x2ad9df('0xeb7')]=[];else(_0x39d1a0[_0x2ad9df('0xeb7')][_0x2ad9df('0x577')]===0x0||_0x39d1a0[_0x2ad9df('0xeb7')][_0x2ad9df('0x577')]>0x0)&&(_0x39d1a0['selected']=_0x39d1a0[_0x2ad9df('0x1b9a')]['slice'](0x0));}function _0x582e61(){_0xe95406['hide']();}function _0x49bbdd(){var _0x2ead10=_0x26380c;_0x39d1a0[_0x2ead10('0x27c0')]=!![];var _0x55b1a1=_0x1d7730();_0x55b1a1['finally'](function(){var _0x100fe0=_0x2ead10;_0x39d1a0[_0x100fe0('0x27c0')]=![],_0x582e61();});}function _0x1d7730(){return _0x2da5f9(function(_0x4887a9){var _0x39177d=a0_0x2e7f;for(var _0x75cb00=0x0;_0x75cb00<_0x39d1a0['selected'][_0x39177d('0x577')];_0x75cb00+=0x1){_0x336311(_0x23c541['id'],_0x39d1a0[_0x39177d('0xeb7')][_0x75cb00]);}_0x59a125(_0x4887a9);});}function _0x336311(_0x343139,_0x40e1d5){var _0x20b363=_0x26380c,_0x25cabe=_0x40e1d5['id'];_0x69a446[_0x20b363('0xd71')](function(){var _0x1b9064=_0x20b363;return _0x52d835[_0x1b9064('0xb97')][_0x1b9064('0xd92')]({'id':_0x343139,'ids':_0x25cabe})[_0x1b9064('0x1376')][_0x1b9064('0x21ad')](function(){var _0xd3d9ac=_0x1b9064;return _0x52d835[_0xd3d9ac('0xb97')][_0xd3d9ac('0x17fd')]({'id':_0x343139,'ids':_0x25cabe,'dialCheckDuplicateType':'never'})[_0xd3d9ac('0x1376')];})[_0x1b9064('0x21ad')](function(){var _0x3d01c9=_0x1b9064;_0x55400d[_0x3d01c9('0xdb1')]({'title':_0x3d01c9('0x1738'),'msg':_0x3d01c9('0xea')+_0x40e1d5['name']+'\x20has\x20been\x20reset'});})[_0x1b9064('0x1c1d')](function(_0x2a61c9){var _0x210787=_0x1b9064;_0x55400d['error']({'title':_0x2a61c9['status']?_0x210787('0x22d')+_0x2a61c9[_0x210787('0x209')]+_0x210787('0xa99')+_0x2a61c9['statusText']:_0x210787('0x788'),'msg':_0x2a61c9[_0x210787('0x209')]?JSON[_0x210787('0x25e')](_0x2a61c9[_0x210787('0x11c2')]):_0x2a61c9['toString']()});});});}function _0x59a125(_0x2aab08){var _0x1f2d0d=_0x26380c;_0x69a446[_0x1f2d0d('0xd71')](function(){return _0x2aab08();});}}const _0x1348ff=_0x58caa7;_0xa9aad7[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q','toasty',_0x3877e3('0xccd'),_0x3877e3('0x1203'),_0x3877e3('0x13c1'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0xa9aad7(_0x2c4c89,_0x39e738,_0x38c8b9,_0x379b14,_0x31b044,_0x2005da,_0x5808a7,_0x4952d7){var _0x4a4f70=_0x3877e3,_0x4a7da9=this;_0x4a7da9[_0x4a4f70('0x123f')]=_0x5808a7['getCurrentUser'](),_0x4a7da9['queueCampaign']=_0x31b044,_0x4a7da9[_0x4a4f70('0x5ed')]=_0x4952d7,_0x4a7da9[_0x4a4f70('0x1195')]=0x0,_0x4a7da9['items']=[],_0x4a7da9['allowedItems']=[],_0x4a7da9[_0x4a4f70('0x2629')]=[],_0x4a7da9['startingAllowedItems']=[],_0x4a7da9['startingSelectedItems']=[],_0x4a7da9['pendingChanges']=![],_0x4a7da9[_0x4a4f70('0x909')]={'readOnly':!_0x4a7da9[_0x4a4f70('0x5ed')][_0x4a4f70('0x6e2')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':'name','line2':'','line3':'','labelAll':_0x2005da[_0x4a4f70('0x183e')](_0x4a4f70('0xa44')),'labelSelected':_0x2005da[_0x4a4f70('0x183e')](_0x4a4f70('0x245c')),'transferCallback':function _0x44179d(_0xc9e55e,_0x300cd5){var _0x394bee=_0x4a4f70;_0x300cd5?_0xc9e55e[_0x394bee('0x1a52')](function(_0x97bb35){_0x97bb35['penalty']=undefined;}):_0xc9e55e[_0x394bee('0x1a52')](function(_0x1ffc62){var _0x29ab2d=_0x394bee;_0x1ffc62[_0x29ab2d('0x1195')]='penalty\x20'+_0x4a7da9[_0x29ab2d('0x1195')];});var _0xba0e7f=_0x86640f()[_0x394bee('0x1473')](_0x4a7da9[_0x394bee('0x2584')],_0x4a7da9[_0x394bee('0x2629')],'id');_0x4a7da9[_0x394bee('0x1bb9')]=_0x86640f()[_0x394bee('0x23aa')](_0xba0e7f)?![]:!![];}},_0x4a7da9[_0x4a4f70('0x1081')]=_0x13df46,_0x4a7da9['saveTeams']=_0x3e35d4,_0x4a7da9[_0x4a4f70('0x167')]=_0x4346de;function _0x13df46(){var _0x55eb42=_0x4a4f70;return _0x5808a7['hasRole'](_0x55eb42('0x1bd8'))?_0x4ff31e()[_0x55eb42('0x1c1d')](function(_0x10aa10){var _0x185794=_0x55eb42;_0x38c8b9[_0x185794('0x2092')]({'title':_0x10aa10[_0x185794('0x209')]?_0x185794('0x22d')+_0x10aa10[_0x185794('0x209')]+_0x185794('0xa99')+_0x10aa10[_0x185794('0x1808')]:_0x185794('0x2479'),'msg':_0x10aa10[_0x185794('0x209')]?JSON[_0x185794('0x25e')](_0x10aa10[_0x185794('0x11c2')]):_0x10aa10[_0x185794('0x174f')]()});}):_0x4f7c48()['then'](function(_0x40618a){return _0x4a7da9['section']=_0x40618a,_0x4ff31e();})[_0x55eb42('0x1c1d')](function(_0x38b0c0){var _0x1c60c9=_0x55eb42;_0x38c8b9[_0x1c60c9('0x2092')]({'title':_0x38b0c0[_0x1c60c9('0x209')]?_0x1c60c9('0x22d')+_0x38b0c0[_0x1c60c9('0x209')]+_0x1c60c9('0xa99')+_0x38b0c0[_0x1c60c9('0x1808')]:'SYSTEM:GET_TEAMS','msg':_0x38b0c0[_0x1c60c9('0x209')]?JSON[_0x1c60c9('0x25e')](_0x38b0c0[_0x1c60c9('0x11c2')]):_0x38b0c0[_0x1c60c9('0x174f')]()});});}function _0x4f7c48(){return _0x39e738(function(_0x47bb5a,_0x1e545b){var _0x1d8c98=a0_0x2e7f;_0x379b14[_0x1d8c98('0xab4')][_0x1d8c98('0x595')]({'userProfileId':_0x4a7da9['currentUser'][_0x1d8c98('0x1618')],'name':_0x1d8c98('0xa27')})[_0x1d8c98('0x1376')]['then'](function(_0x383321){var _0x2dce50=_0x1d8c98,_0x2e6220=_0x383321&&_0x383321[_0x2dce50('0x1b33')]?_0x383321[_0x2dce50('0x1b33')][0x0]:null;_0x47bb5a(_0x2e6220);})[_0x1d8c98('0x1c1d')](function(_0xd4967b){_0x1e545b(_0xd4967b);});});}function _0x4ff31e(){return _0x39e738(function(_0xa13296,_0x4b7d2f){var _0xa18254=a0_0x2e7f;return _0x6d67df()[_0xa18254('0x21ad')](function(_0x46ca61){var _0x8d53e2=_0xa18254;return _0x4a7da9[_0x8d53e2('0x1b9a')]=_0x46ca61[_0x8d53e2('0x1b33')]?_0x46ca61[_0x8d53e2('0x1b33')]:[],_0x5808a7['hasRole'](_0x8d53e2('0x1bd8'))?_0x46ca61:_0x4a7da9[_0x8d53e2('0x26ad')]?_0x4a7da9[_0x8d53e2('0x26ad')][_0x8d53e2('0x80c')]?_0x46ca61:_0x4821d9():null;})[_0xa18254('0x21ad')](function(_0x4d97b8){var _0x18a437=_0xa18254,_0x22ddcd=_0x4d97b8&&_0x4d97b8['rows']?_0x4d97b8[_0x18a437('0x1b33')]:[];return _0x4a7da9[_0x18a437('0x1e09')]=_0x86640f()[_0x18a437('0x26c3')](_0x22ddcd,function(_0x932e){var _0x3c3a4b=_0x18a437;return _0x86640f()[_0x3c3a4b('0x1d2e')](_0x4a7da9[_0x3c3a4b('0x1b9a')],{'id':_0x5808a7[_0x3c3a4b('0x21de')]('admin')||_0x4a7da9[_0x3c3a4b('0x26ad')]['autoAssociation']?_0x932e['id']:_0x932e['resourceId']});}),_0x4a7da9['items'][_0x18a437('0x1a52')](function(_0x43ca69){var _0x29df75=_0x18a437,_0x3faedc=_0x86640f()[_0x29df75('0x1d2e')](_0x4a7da9['allowedItems'],{'id':_0x43ca69['id']});_0x5808a7[_0x29df75('0x21de')](_0x29df75('0x1bd8'))?_0x43ca69['isValid']=!![]:_0x43ca69[_0x29df75('0x118b')]=typeof _0x3faedc!==_0x29df75('0xddc')?!![]:![];}),_0x337714();})[_0xa18254('0x21ad')](function(_0x48539c){var _0x36cd90=_0xa18254,_0x225482=_0x48539c&&_0x48539c[_0x36cd90('0x1b33')]?_0x48539c[_0x36cd90('0x1b33')]:[];_0x4a7da9[_0x36cd90('0x2629')]=_0x86640f()[_0x36cd90('0x26c3')](_0x225482,function(_0x570ca4){var _0x156559=_0x36cd90;return _0x86640f()[_0x156559('0x1d2e')](_0x4a7da9['items'],{'id':_0x570ca4['id']});}),_0x4a7da9[_0x36cd90('0x2584')]=angular[_0x36cd90('0xd75')](_0x4a7da9[_0x36cd90('0x2629')]),_0x4a7da9[_0x36cd90('0x909')]['selectedItems']=_0x4a7da9['selectedItems'],_0x4a7da9[_0x36cd90('0x909')]['items']=_0x86640f()[_0x36cd90('0x1eab')](_0x4a7da9['allowedItems'],_0x4a7da9[_0x36cd90('0x909')][_0x36cd90('0x2629')],'id'),_0xa13296();})[_0xa18254('0x1c1d')](function(_0x479fb9){_0x4b7d2f(_0x479fb9);});});}function _0x4821d9(){return _0x39e738(function(_0x2a5e28,_0x4299df){var _0x469b99=a0_0x2e7f;return _0x379b14['userProfileResource'][_0x469b99('0x595')]({'sectionId':_0x4a7da9['section']['id'],'nolimit':!![]})[_0x469b99('0x1376')][_0x469b99('0x21ad')](function(_0x28d188){_0x2a5e28(_0x28d188);})[_0x469b99('0x1c1d')](function(_0x5badce){_0x4299df(_0x5badce);});});}function _0x337714(){return _0x39e738(function(_0x4a7ebb,_0x5033d0){var _0x5825e3=a0_0x2e7f;return _0x379b14[_0x5825e3('0xb97')][_0x5825e3('0x25df')]({'id':_0x4a7da9[_0x5825e3('0x1203')]['id'],'fields':_0x5825e3('0x1aa8'),'nolimit':!![]})[_0x5825e3('0x1376')][_0x5825e3('0x21ad')](function(_0x1434af){_0x4a7ebb(_0x1434af);})['catch'](function(_0x5ddfb8){_0x5033d0(_0x5ddfb8);});});}function _0x6d67df(){return _0x39e738(function(_0x3d87e1,_0x368d54){var _0x565ede=a0_0x2e7f;return _0x379b14[_0x565ede('0x1a9c')][_0x565ede('0x595')]({'fields':_0x565ede('0x1aa8'),'nolimit':!![]})[_0x565ede('0x1376')][_0x565ede('0x21ad')](function(_0x51973a){_0x3d87e1(_0x51973a);})[_0x565ede('0x1c1d')](function(_0xfbce17){_0x368d54(_0xfbce17);});});}function _0x496301(_0xe27be8){return _0x39e738(function(_0x169879,_0x48a3a6){var _0x1b588d=a0_0x2e7f;if(_0x86640f()[_0x1b588d('0x23aa')](_0xe27be8))_0x169879();else{var _0x4637ed=_0x86640f()['map'](_0xe27be8,function(_0x25330e){var _0x108965=_0x1b588d;return{'id':_0x25330e['id'],'penalty':_0x86640f()[_0x108965('0x2078')](_0x25330e[_0x108965('0x1195')],'penalty\x20')};});return _0x379b14['voiceQueue'][_0x1b588d('0x36c')]({'id':_0x4a7da9[_0x1b588d('0x1203')]['id'],'teams':_0x4637ed})[_0x1b588d('0x1376')]['then'](function(){_0x169879();})[_0x1b588d('0x1c1d')](function(_0x127f16){_0x48a3a6(_0x127f16);});}});}function _0x12fec1(_0x12ca2f){return _0x39e738(function(_0x34e666,_0x632833){var _0x4b13ca=a0_0x2e7f;_0x86640f()[_0x4b13ca('0x23aa')](_0x12ca2f)?_0x34e666():_0x379b14['voiceQueue'][_0x4b13ca('0xbc7')]({'id':_0x4a7da9[_0x4b13ca('0x1203')]['id'],'ids':_0x86640f()[_0x4b13ca('0x26c3')](_0x12ca2f,'id')})[_0x4b13ca('0x1376')][_0x4b13ca('0x21ad')](function(){_0x34e666();})[_0x4b13ca('0x1c1d')](function(_0x711041){_0x632833(_0x711041);});});}function _0x3e35d4(){var _0x19f186=_0x4a4f70,_0x48b318=_0x86640f()[_0x19f186('0x1eab')](_0x4a7da9['startingSelectedItems'],_0x4a7da9[_0x19f186('0x2629')],'id'),_0x3209cd=_0x86640f()[_0x19f186('0x1eab')](_0x4a7da9[_0x19f186('0x2629')],_0x4a7da9[_0x19f186('0x2584')],'id');return _0x12fec1(_0x48b318)[_0x19f186('0x21ad')](function(){return _0x496301(_0x3209cd);})['then'](function(){var _0x2fe593=_0x19f186;_0x4a7da9[_0x2fe593('0x1bb9')]=![],_0x4a7da9[_0x2fe593('0x91b')]=angular[_0x2fe593('0xd75')](_0x4a7da9['allowedItems']),_0x4a7da9[_0x2fe593('0x2584')]=angular['copy'](_0x4a7da9[_0x2fe593('0x2629')]),_0x38c8b9[_0x2fe593('0xdb1')]({'title':_0x2fe593('0x2804'),'msg':_0x2fe593('0x4c8')});})[_0x19f186('0x1c1d')](function(_0x19a099){var _0x2f4730=_0x19f186;_0x38c8b9[_0x2f4730('0x2092')]({'title':_0x19a099[_0x2f4730('0x209')]?_0x2f4730('0x22d')+_0x19a099[_0x2f4730('0x209')]+_0x2f4730('0xa99')+_0x19a099[_0x2f4730('0x1808')]:_0x2f4730('0x1dd7'),'msg':_0x19a099[_0x2f4730('0x209')]?JSON[_0x2f4730('0x25e')](_0x19a099[_0x2f4730('0x11c2')]):_0x19a099[_0x2f4730('0x174f')]()});});}function _0x4346de(){_0x2c4c89['hide']();}}const _0x406943=_0xa9aad7,_0x59a785=_0x398308['p']+_0x3877e3('0x403'),_0x10ed2a=_0x398308['p']+_0x3877e3('0x16cd'),_0x256f09=_0x398308['p']+'src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/blacklistadd/blacklistadd.html/blacklistadd-[chunkhash].html',_0x5a5b56=_0x398308['p']+_0x3877e3('0xcf5'),_0x1a5514=_0x398308['p']+_0x3877e3('0x255f');_0x1140b1[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),'$mdDialog','$document','$translate',_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),'Auth',_0x3877e3('0x1203'),_0x3877e3('0xab4')];function _0x1140b1(_0x2df443,_0x6a3e1d,_0x236ec8,_0x29e4ea,_0x11b003,_0x46e5e2,_0x3fee81,_0x1b95d3,_0x41d218,_0x492f06,_0x631d62,_0x24b00a){var _0x5664f3=_0x3877e3,_0x5459a9=this;_0x5459a9[_0x5664f3('0x123f')]=_0x492f06[_0x5664f3('0x15ed')](),_0x5459a9[_0x5664f3('0x2ff')]=_0x46e5e2,_0x5459a9['setting']=_0x3fee81,_0x5459a9['passwordPattern']=_0x5459a9[_0x5664f3('0x21e')][_0x5664f3('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5459a9[_0x5664f3('0x626')]=_0x6a3e1d[_0x5664f3('0x1162')]()+_0x5664f3('0x22a9')+_0x6a3e1d['host'](),_0x5459a9[_0x5664f3('0x1203')]=_0x631d62||_0x2df443['params'][_0x5664f3('0x1203')]||{},_0x5459a9[_0x5664f3('0xab4')]=_0x24b00a&&_0x24b00a[_0x5664f3('0x205f')]==0x1?_0x24b00a['rows'][0x0]:null,_0x5459a9['crudPermissions']=_0x492f06[_0x5664f3('0x1778')](_0x5459a9[_0x5664f3('0xab4')]?_0x5459a9['userProfileSection'][_0x5664f3('0x5ed')]:null),_0x5459a9['hasModulePermissions']={},_0x5459a9[_0x5664f3('0x302')]=_0x2df443[_0x5664f3('0x171b')][_0x5664f3('0x12e1')]||0x0,_0x5459a9[_0x5664f3('0x1b5c')]=_0x2b579b,_0x5459a9[_0x5664f3('0x2360')]=_0x15a773,_0x5459a9['blacklistadddialog']=_0x1edb1f,_0x5459a9[_0x5664f3('0x1111')]=_0x627839,_0x5459a9[_0x5664f3('0x1297')]=_0x4c9e0d,_0x5459a9[_0x5664f3('0xbbe')]=_0x38958b,_0x5459a9[_0x5664f3('0x177f')]=_0x2284b1,_0x5459a9[_0x5664f3('0x95b')]=_0x41d218[_0x5664f3('0x231c')],_0x5459a9['gotoQueueCampaigns']=_0x47317c,_0x5459a9[_0x5664f3('0x1095')]=_0x1c7fbe,_0x492f06[_0x5664f3('0x21de')](_0x5664f3('0x1bd8'))?_0x1b95d3[_0x5664f3('0x1bd9')]['get']({'fields':_0x5664f3('0x1aa8'),'nolimit':_0x5664f3('0x19bd')})[_0x5664f3('0x1376')][_0x5664f3('0x21ad')](function(_0x59a3ac){var _0x1d2f0f=_0x5664f3;_0x5459a9[_0x1d2f0f('0x1d07')]=_0x59a3ac['rows']||[];})[_0x5664f3('0x1c1d')](function(_0x4fea76){var _0x489638=_0x5664f3;_0x41d218[_0x489638('0x2092')]({'title':_0x4fea76[_0x489638('0x209')]?'API:'+_0x4fea76[_0x489638('0x209')]+_0x489638('0xa99')+_0x4fea76['statusText']:_0x489638('0x1817'),'msg':_0x4fea76[_0x489638('0x11c2')]?JSON[_0x489638('0x25e')](_0x4fea76[_0x489638('0x11c2')]):_0x4fea76['toString']()});}):_0x1b95d3[_0x5664f3('0x1bd9')][_0x5664f3('0x595')]({'fields':'id,name','nolimit':_0x5664f3('0x19bd')})[_0x5664f3('0x1376')][_0x5664f3('0x21ad')](function(_0x3357f7){var _0x1b86ce=_0x5664f3;_0x5459a9[_0x1b86ce('0x1d07')]=_0x3357f7[_0x1b86ce('0x1b33')]||[];})[_0x5664f3('0x21ad')](function(){var _0x552bc3=_0x5664f3;return _0x1b95d3[_0x552bc3('0xab4')][_0x552bc3('0x595')]({'userProfileId':_0x5459a9[_0x552bc3('0x123f')]['userProfileId'],'sectionId':0x197})[_0x552bc3('0x1376')];})[_0x5664f3('0x21ad')](function(_0x3efbad){var _0x57b937=_0x5664f3,_0x29d0a1=_0x3efbad&&_0x3efbad[_0x57b937('0x1b33')]?_0x3efbad[_0x57b937('0x1b33')][0x0]:null;if(!_0x29d0a1)return _0x1b95d3['voiceMusicOnHold'][_0x57b937('0x595')]({'fields':_0x57b937('0x1aa8'),'nolimit':_0x57b937('0x19bd'),'defaultEntry':0x1})[_0x57b937('0x1376')][_0x57b937('0x21ad')](function(_0x34859b){var _0x115bd3=_0x57b937;_0x5459a9[_0x115bd3('0x1d07')]=_0x34859b['rows']||[];});else{if(!_0x29d0a1[_0x57b937('0x80c')])return _0x1b95d3[_0x57b937('0x185e')][_0x57b937('0x595')]({'sectionId':_0x29d0a1['id']})['$promise']['then'](function(_0x2eba11){var _0x4dd279=_0x57b937,_0x36d4ce=_0x86640f()[_0x4dd279('0x26c3')](_0x2eba11[_0x4dd279('0x1b33')],function(_0x19fd86){var _0x2afd68=_0x4dd279;return _0x86640f()[_0x2afd68('0x1d2e')](_0x5459a9[_0x2afd68('0x1d07')],{'id':_0x19fd86['resourceId']});}),_0x192551=null;_0x5459a9[_0x4dd279('0x1203')]&&(_0x192551=_0x86640f()[_0x4dd279('0x1d2e')](_0x5459a9[_0x4dd279('0x1d07')],{'name':_0x5459a9[_0x4dd279('0x1203')][_0x4dd279('0x2165')]}));if(_0x192551&&!_0x86640f()['some'](_0x36d4ce,['id',_0x192551['id']])){var _0x1608b2=_0x86640f()[_0x4dd279('0x1d2e')](_0x5459a9[_0x4dd279('0x1d07')],{'id':_0x192551['id']});_0x1608b2['canSelect']=![],_0x36d4ce[_0x4dd279('0x206c')](_0x1608b2);}_0x5459a9[_0x4dd279('0x1d07')]=_0x36d4ce;});}})[_0x5664f3('0x1c1d')](function(_0x14e29a){var _0x115de3=_0x5664f3;_0x41d218[_0x115de3('0x2092')]({'title':_0x14e29a[_0x115de3('0x209')]?_0x115de3('0x22d')+_0x14e29a['status']+_0x115de3('0xa99')+_0x14e29a[_0x115de3('0x1808')]:_0x115de3('0x1c65'),'msg':_0x14e29a['data']?JSON[_0x115de3('0x25e')](_0x14e29a[_0x115de3('0x11c2')]):_0x14e29a[_0x115de3('0x174f')]()});}),_0x492f06['hasRole'](_0x5664f3('0x1bd8'))?_0x1b95d3['trunk'][_0x5664f3('0x595')]({'fields':_0x5664f3('0x1aa8'),'sort':_0x5664f3('0x19fe')})[_0x5664f3('0x1376')][_0x5664f3('0x21ad')](function(_0x5ebea9){var _0x5ed867=_0x5664f3;_0x5459a9[_0x5ed867('0x1593')]=_0x5ebea9[_0x5ed867('0x1b33')]||[];})['catch'](function(_0x4039f6){var _0x1ec854=_0x5664f3;_0x41d218[_0x1ec854('0x2092')]({'title':_0x4039f6[_0x1ec854('0x209')]?_0x1ec854('0x22d')+_0x4039f6[_0x1ec854('0x209')]+_0x1ec854('0xa99')+_0x4039f6[_0x1ec854('0x1808')]:_0x1ec854('0x9ee'),'msg':_0x4039f6[_0x1ec854('0x11c2')]?JSON[_0x1ec854('0x25e')](_0x4039f6[_0x1ec854('0x11c2')]):_0x4039f6[_0x1ec854('0x174f')]()});}):_0x1b95d3[_0x5664f3('0x1280')][_0x5664f3('0x595')]({'fields':_0x5664f3('0x1aa8'),'sort':'name'})[_0x5664f3('0x1376')][_0x5664f3('0x21ad')](function(_0x5cf33d){var _0xff0ac9=_0x5664f3;_0x5459a9['trunks']=_0x5cf33d[_0xff0ac9('0x1b33')]||[];})[_0x5664f3('0x21ad')](function(){var _0x2347e4=_0x5664f3;return _0x1b95d3[_0x2347e4('0xab4')][_0x2347e4('0x595')]({'userProfileId':_0x5459a9[_0x2347e4('0x123f')]['userProfileId'],'sectionId':0x3f3})['$promise'];})[_0x5664f3('0x21ad')](function(_0x1eeb76){var _0x34553e=_0x5664f3,_0x4263cc=_0x1eeb76&&_0x1eeb76[_0x34553e('0x1b33')]?_0x1eeb76[_0x34553e('0x1b33')][0x0]:null;if(!_0x4263cc){var _0x4b3ff2=[],_0x4fc05b=null;_0x5459a9[_0x34553e('0x1203')]&&(_0x4fc05b=_0x86640f()[_0x34553e('0x1d2e')](_0x5459a9[_0x34553e('0x1593')],{'id':Number(_0x5459a9[_0x34553e('0x1203')]['TrunkId'])}));for(var _0x262de5=0x0;_0x262de5<_0x5459a9[_0x34553e('0x1593')][_0x34553e('0x577')];_0x262de5++){_0x4fc05b&&_0x5459a9[_0x34553e('0x1593')][_0x262de5]['id']===_0x4fc05b['id']&&(_0x5459a9[_0x34553e('0x1593')][_0x262de5][_0x34553e('0xba')]=![],_0x4b3ff2[_0x34553e('0x206c')](_0x5459a9[_0x34553e('0x1593')][_0x262de5]));}_0x5459a9[_0x34553e('0x1593')]=_0x4b3ff2;}else{if(!_0x4263cc[_0x34553e('0x80c')])return _0x1b95d3['userProfileResource'][_0x34553e('0x595')]({'sectionId':_0x4263cc['id']})[_0x34553e('0x1376')][_0x34553e('0x21ad')](function(_0x1704fd){var _0x1ab0a9=_0x34553e,_0x89a61=_0x86640f()[_0x1ab0a9('0x26c3')](_0x1704fd[_0x1ab0a9('0x1b33')],function(_0x317f1b){var _0xd0d2c=_0x1ab0a9;return _0x86640f()[_0xd0d2c('0x1d2e')](_0x5459a9[_0xd0d2c('0x1593')],{'id':_0x317f1b[_0xd0d2c('0x675')]});}),_0xa4053e=null;_0x5459a9['queueCampaign']&&(_0xa4053e=_0x86640f()[_0x1ab0a9('0x1d2e')](_0x5459a9[_0x1ab0a9('0x1593')],{'id':Number(_0x5459a9[_0x1ab0a9('0x1203')]['TrunkId'])}));if(_0xa4053e&&!_0x86640f()[_0x1ab0a9('0x2664')](_0x89a61,['id',_0xa4053e['id']])){var _0x50e06c=_0x86640f()[_0x1ab0a9('0x1d2e')](_0x5459a9['trunks'],{'id':_0xa4053e['id']});_0x50e06c['canSelect']=![],_0x89a61[_0x1ab0a9('0x206c')](_0x50e06c);}_0x5459a9[_0x1ab0a9('0x1593')]=_0x89a61;});}})['catch'](function(_0x66a395){var _0x2194d6=_0x5664f3;_0x41d218['error']({'title':_0x66a395[_0x2194d6('0x209')]?_0x2194d6('0x22d')+_0x66a395[_0x2194d6('0x209')]+'\x20-\x20'+_0x66a395[_0x2194d6('0x1808')]:_0x2194d6('0x3ab'),'msg':_0x66a395[_0x2194d6('0x11c2')]?JSON['stringify'](_0x66a395[_0x2194d6('0x11c2')]):_0x66a395['toString']()});}),_0x492f06[_0x5664f3('0x21de')](_0x5664f3('0x1bd8'))?_0x1b95d3[_0x5664f3('0x1a41')][_0x5664f3('0x595')]({'fields':_0x5664f3('0x1aa8'),'sort':'name'})[_0x5664f3('0x1376')][_0x5664f3('0x21ad')](function(_0x380e68){_0x5459a9['projects']=_0x380e68['rows']||[];})[_0x5664f3('0x1c1d')](function(_0x21cfa8){var _0x390801=_0x5664f3;_0x41d218['error']({'title':_0x21cfa8['status']?_0x390801('0x22d')+_0x21cfa8[_0x390801('0x209')]+'\x20-\x20'+_0x21cfa8[_0x390801('0x1808')]:_0x390801('0xca2'),'msg':_0x21cfa8[_0x390801('0x11c2')]?JSON['stringify'](_0x21cfa8[_0x390801('0x11c2')]):_0x21cfa8[_0x390801('0x174f')]()});}):_0x1b95d3['squareProject']['get']({'fields':_0x5664f3('0x1aa8'),'sort':_0x5664f3('0x19fe')})[_0x5664f3('0x1376')][_0x5664f3('0x21ad')](function(_0x450fda){var _0x62dbb7=_0x5664f3;_0x5459a9[_0x62dbb7('0xc0f')]=_0x450fda[_0x62dbb7('0x1b33')]||[];})[_0x5664f3('0x21ad')](function(){var _0x6efb2d=_0x5664f3;return _0x1b95d3['userProfileSection'][_0x6efb2d('0x595')]({'userProfileId':_0x5459a9[_0x6efb2d('0x123f')][_0x6efb2d('0x1618')],'sectionId':0x44f})[_0x6efb2d('0x1376')];})[_0x5664f3('0x21ad')](function(_0x4410bb){var _0x10e84c=_0x5664f3,_0x57fa43=_0x4410bb&&_0x4410bb['rows']?_0x4410bb['rows'][0x0]:null;if(!_0x57fa43){var _0x15d734=[],_0x129e10=null;_0x5459a9[_0x10e84c('0x1203')]&&(_0x129e10=_0x86640f()[_0x10e84c('0x1d2e')](_0x5459a9['projects'],{'name':_0x5459a9[_0x10e84c('0x1203')]['dialQueueProject']}));for(var _0x498e8a=0x0;_0x498e8a<_0x5459a9[_0x10e84c('0xc0f')][_0x10e84c('0x577')];_0x498e8a++){_0x129e10&&_0x5459a9[_0x10e84c('0xc0f')][_0x498e8a]['id']===_0x129e10['id']&&(_0x5459a9[_0x10e84c('0xc0f')][_0x498e8a]['canSelect']=![],_0x15d734[_0x10e84c('0x206c')](_0x5459a9[_0x10e84c('0xc0f')][_0x498e8a]));}_0x5459a9[_0x10e84c('0xc0f')]=_0x15d734;}else{if(!_0x57fa43[_0x10e84c('0x80c')])return _0x1b95d3[_0x10e84c('0x185e')]['get']({'sectionId':_0x57fa43['id']})['$promise'][_0x10e84c('0x21ad')](function(_0x276cb1){var _0x7883d4=_0x10e84c,_0x4e9dfb=_0x86640f()[_0x7883d4('0x26c3')](_0x276cb1[_0x7883d4('0x1b33')],function(_0xd951d6){var _0x551816=_0x7883d4;return _0x86640f()[_0x551816('0x1d2e')](_0x5459a9['projects'],{'id':_0xd951d6['resourceId']});}),_0x1e73a1=null;_0x5459a9[_0x7883d4('0x1203')]&&(_0x1e73a1=_0x86640f()[_0x7883d4('0x1d2e')](_0x5459a9[_0x7883d4('0xc0f')],{'name':_0x5459a9[_0x7883d4('0x1203')]['dialQueueProject']}));if(_0x1e73a1&&!_0x86640f()[_0x7883d4('0x2664')](_0x4e9dfb,['id',_0x1e73a1['id']])){var _0x2b1d60=_0x86640f()['find'](_0x5459a9[_0x7883d4('0xc0f')],{'id':_0x1e73a1['id']});_0x2b1d60['canSelect']=![],_0x4e9dfb[_0x7883d4('0x206c')](_0x2b1d60);}_0x5459a9[_0x7883d4('0xc0f')]=_0x4e9dfb;});}})['catch'](function(_0x108315){var _0x398515=_0x5664f3;_0x41d218['error']({'title':_0x108315['status']?_0x398515('0x22d')+_0x108315[_0x398515('0x209')]+_0x398515('0xa99')+_0x108315[_0x398515('0x1808')]:_0x398515('0x1859'),'msg':_0x108315['data']?JSON[_0x398515('0x25e')](_0x108315[_0x398515('0x11c2')]):_0x108315['toString']()});}),_0x492f06[_0x5664f3('0x21de')](_0x5664f3('0x1bd8'))?_0x1b95d3[_0x5664f3('0xa07')][_0x5664f3('0x595')]({'fields':_0x5664f3('0x1aa8'),'sort':_0x5664f3('0x19fe'),'IntervalId':_0x5664f3('0x27a')})['$promise'][_0x5664f3('0x21ad')](function(_0x567fc9){var _0x643ec5=_0x5664f3;_0x5459a9[_0x643ec5('0xa07')]=_0x567fc9[_0x643ec5('0x1b33')]||[];})[_0x5664f3('0x1c1d')](function(_0x482a66){var _0x3c52e6=_0x5664f3;_0x41d218[_0x3c52e6('0x2092')]({'title':_0x482a66[_0x3c52e6('0x209')]?_0x3c52e6('0x22d')+_0x482a66[_0x3c52e6('0x209')]+_0x3c52e6('0xa99')+_0x482a66[_0x3c52e6('0x1808')]:_0x3c52e6('0x1c18'),'msg':_0x482a66[_0x3c52e6('0x11c2')]?JSON[_0x3c52e6('0x25e')](_0x482a66['data']):_0x482a66['toString']()});}):_0x1b95d3[_0x5664f3('0xa07')][_0x5664f3('0x595')]({'fields':'id,name','sort':_0x5664f3('0x19fe'),'IntervalId':_0x5664f3('0x27a')})[_0x5664f3('0x1376')]['then'](function(_0x3c1cb6){var _0x5f3048=_0x5664f3;_0x5459a9[_0x5f3048('0xa07')]=_0x3c1cb6[_0x5f3048('0x1b33')]||[];})[_0x5664f3('0x21ad')](function(){var _0x50e84e=_0x5664f3;return _0x1b95d3[_0x50e84e('0xab4')][_0x50e84e('0x595')]({'userProfileId':_0x5459a9[_0x50e84e('0x123f')][_0x50e84e('0x1618')],'sectionId':0x3ec})[_0x50e84e('0x1376')];})['then'](function(_0x38bea6){var _0x316ad5=_0x5664f3,_0x12e0d9=_0x38bea6&&_0x38bea6[_0x316ad5('0x1b33')]?_0x38bea6['rows'][0x0]:null;if(!_0x12e0d9){var _0xf77464=[],_0xc28702=null;_0x5459a9[_0x316ad5('0x1203')]&&(_0xc28702=_0x86640f()[_0x316ad5('0x1d2e')](_0x5459a9[_0x316ad5('0xa07')],{'id':Number(_0x5459a9[_0x316ad5('0x1203')][_0x316ad5('0x1ac8')])}));for(var _0x4a7634=0x0;_0x4a7634<_0x5459a9['interval']['length'];_0x4a7634++){_0xc28702&&_0x5459a9[_0x316ad5('0xa07')][_0x4a7634]['id']===_0xc28702['id']&&(_0x5459a9[_0x316ad5('0xa07')][_0x4a7634][_0x316ad5('0xba')]=![],_0xf77464[_0x316ad5('0x206c')](_0x5459a9['interval'][_0x4a7634]));}_0x5459a9[_0x316ad5('0xa07')]=_0xf77464;}else{if(!_0x12e0d9[_0x316ad5('0x80c')])return _0x1b95d3[_0x316ad5('0x185e')][_0x316ad5('0x595')]({'sectionId':_0x12e0d9['id']})[_0x316ad5('0x1376')][_0x316ad5('0x21ad')](function(_0x214ab3){var _0x442e55=_0x316ad5,_0x119f56=_0x86640f()[_0x442e55('0x26c3')](_0x214ab3[_0x442e55('0x1b33')],function(_0x4ebc88){var _0x281acc=_0x442e55;return _0x86640f()['find'](_0x5459a9['interval'],{'id':_0x4ebc88[_0x281acc('0x675')]});}),_0x2de8c4=null;_0x5459a9['queueCampaign']&&(_0x2de8c4=_0x86640f()[_0x442e55('0x1d2e')](_0x5459a9[_0x442e55('0xa07')],{'id':Number(_0x5459a9[_0x442e55('0x1203')][_0x442e55('0x1ac8')])}));if(_0x2de8c4&&!_0x86640f()[_0x442e55('0x2664')](_0x119f56,['id',_0x2de8c4['id']])){var _0xef0f96=_0x86640f()['find'](_0x5459a9['interval'],{'id':_0x2de8c4['id']});_0xef0f96['canSelect']=![],_0x119f56[_0x442e55('0x206c')](_0xef0f96);}_0x5459a9[_0x442e55('0xa07')]=_0x119f56;});}})[_0x5664f3('0x1c1d')](function(_0x2b8770){var _0x99e8e8=_0x5664f3;_0x41d218[_0x99e8e8('0x2092')]({'title':_0x2b8770[_0x99e8e8('0x209')]?_0x99e8e8('0x22d')+_0x2b8770[_0x99e8e8('0x209')]+_0x99e8e8('0xa99')+_0x2b8770[_0x99e8e8('0x1808')]:_0x99e8e8('0x259e'),'msg':_0x2b8770['data']?JSON[_0x99e8e8('0x25e')](_0x2b8770['data']):_0x2b8770[_0x99e8e8('0x174f')]()});}),_0x492f06['hasRole'](_0x5664f3('0x1bd8'))?_0x1b95d3[_0x5664f3('0x1e26')][_0x5664f3('0x595')]({'fields':_0x5664f3('0x14d5'),'sort':_0x5664f3('0x19fe'),'nolimit':_0x5664f3('0x19bd')})[_0x5664f3('0x1376')]['then'](function(_0x461894){var _0x1b8abb=_0x5664f3;_0x5459a9[_0x1b8abb('0x1fc7')]=_0x461894[_0x1b8abb('0x1b33')]||[];})[_0x5664f3('0x1c1d')](function(_0x9b699d){var _0x9034cb=_0x5664f3;_0x41d218[_0x9034cb('0x2092')]({'title':_0x9b699d['status']?'API:'+_0x9b699d[_0x9034cb('0x209')]+_0x9034cb('0xa99')+_0x9b699d[_0x9034cb('0x1808')]:_0x9034cb('0xb9b'),'msg':_0x9b699d[_0x9034cb('0x11c2')]?JSON[_0x9034cb('0x25e')](_0x9b699d[_0x9034cb('0x11c2')]):_0x9b699d[_0x9034cb('0x174f')]()});}):_0x1b95d3[_0x5664f3('0x1e26')][_0x5664f3('0x595')]({'fields':'name,id','sort':'name','nolimit':_0x5664f3('0x19bd')})[_0x5664f3('0x1376')][_0x5664f3('0x21ad')](function(_0x205201){var _0x2e7532=_0x5664f3;_0x5459a9[_0x2e7532('0x1fc7')]=_0x205201[_0x2e7532('0x1b33')]||[];})[_0x5664f3('0x21ad')](function(){var _0x36878f=_0x5664f3;return _0x1b95d3['userProfileSection'][_0x36878f('0x595')]({'userProfileId':_0x5459a9[_0x36878f('0x123f')]['userProfileId'],'sectionId':0x3ed})[_0x36878f('0x1376')];})[_0x5664f3('0x21ad')](function(_0x15f60c){var _0x1c43f0=_0x5664f3,_0x211cf8=_0x15f60c&&_0x15f60c[_0x1c43f0('0x1b33')]?_0x15f60c[_0x1c43f0('0x1b33')][0x0]:null;if(!_0x211cf8)_0x5459a9[_0x1c43f0('0x1fc7')]=[];else{if(!_0x211cf8[_0x1c43f0('0x80c')])return _0x1b95d3['userProfileResource'][_0x1c43f0('0x595')]({'sectionId':_0x211cf8['id']})[_0x1c43f0('0x1376')]['then'](function(_0x49434a){var _0x30dc3c=_0x1c43f0,_0x5e09b2=_0x86640f()[_0x30dc3c('0x26c3')](_0x49434a[_0x30dc3c('0x1b33')],function(_0x2150e3){var _0xda0782=_0x30dc3c;return _0x86640f()['find'](_0x5459a9['pauses'],{'id':_0x2150e3[_0xda0782('0x675')]});});_0x5459a9[_0x30dc3c('0x1fc7')][_0x30dc3c('0x1a52')](function(_0xf21771){var _0x379e17=_0x30dc3c;!_0x86640f()[_0x379e17('0x2664')](_0x5e09b2,['id',_0xf21771['id']])&&(_0xf21771[_0x379e17('0xba')]=![]),_0x5e09b2[_0x379e17('0x206c')](_0xf21771);}),_0x5459a9[_0x30dc3c('0x1fc7')]=_0x5e09b2;});}})['catch'](function(_0x593946){var _0xee68ed=_0x5664f3;_0x41d218[_0xee68ed('0x2092')]({'title':_0x593946['status']?_0xee68ed('0x22d')+_0x593946[_0xee68ed('0x209')]+_0xee68ed('0xa99')+_0x593946[_0xee68ed('0x1808')]:_0xee68ed('0x17ab'),'msg':_0x593946[_0xee68ed('0x11c2')]?JSON[_0xee68ed('0x25e')](_0x593946[_0xee68ed('0x11c2')]):_0x593946[_0xee68ed('0x174f')]()});});function _0x2b579b(_0x1c834b,_0x38c601){var _0x406fe2=_0x5664f3;_0x236ec8[_0x406fe2('0x853')]({'controller':_0x406fe2('0xcd3'),'controllerAs':'vm','templateUrl':_0x59a785,'parent':angular[_0x406fe2('0x1676')](_0x29e4ea[_0x406fe2('0x2452')]),'targetEvent':_0x38c601,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x1c834b,'queueCampaigns':_0x5459a9['queueCampaigns']?_0x5459a9[_0x406fe2('0xea5')][_0x406fe2('0x1b33')]:[],'crudPermissions':_0x5459a9['crudPermissions']}});}function _0x15a773(_0x842a55,_0x47d67c){var _0x136cc4=_0x5664f3;_0x236ec8[_0x136cc4('0x853')]({'controller':'QueueCampaignlistaddController','controllerAs':'vm','templateUrl':_0x10ed2a,'parent':angular['element'](_0x29e4ea[_0x136cc4('0x2452')]),'targetEvent':_0x47d67c,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x842a55,'queueCampaigns':_0x5459a9[_0x136cc4('0xea5')]?_0x5459a9['queueCampaigns'][_0x136cc4('0x1b33')]:[],'crudPermissions':_0x5459a9[_0x136cc4('0x5ed')]}});}function _0x1edb1f(_0x57e4bc,_0x12bceb){var _0x2aa163=_0x5664f3;_0x236ec8[_0x2aa163('0x853')]({'controller':_0x2aa163('0x1dba'),'controllerAs':'vm','templateUrl':_0x256f09,'parent':angular[_0x2aa163('0x1676')](_0x29e4ea[_0x2aa163('0x2452')]),'targetEvent':_0x12bceb,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x57e4bc,'queueCampaigns':_0x5459a9[_0x2aa163('0xea5')]?_0x5459a9[_0x2aa163('0xea5')][_0x2aa163('0x1b33')]:[],'crudPermissions':_0x5459a9[_0x2aa163('0x5ed')]}});}function _0x627839(_0x4dcd1e,_0x281fe7){var _0x279f68=_0x5664f3;_0x236ec8[_0x279f68('0x853')]({'controller':_0x279f68('0x1f7d'),'controllerAs':'vm','templateUrl':_0x5a5b56,'parent':angular[_0x279f68('0x1676')](_0x29e4ea['body']),'targetEvent':_0x281fe7,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x4dcd1e,'queueCampaigns':_0x5459a9['queueCampaigns']?_0x5459a9[_0x279f68('0xea5')]['rows']:[],'crudPermissions':_0x5459a9[_0x279f68('0x5ed')]}});}function _0x4c9e0d(_0x39be9f,_0x26e873){var _0x3ec284=_0x5664f3;_0x236ec8[_0x3ec284('0x853')]({'controller':'QueueCampaignagentaddController','controllerAs':'vm','templateUrl':_0x409ee0,'parent':angular[_0x3ec284('0x1676')](_0x29e4ea[_0x3ec284('0x2452')]),'targetEvent':_0x26e873,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x39be9f,'queueCampaigns':_0x5459a9[_0x3ec284('0xea5')]?_0x5459a9['queueCampaigns'][_0x3ec284('0x1b33')]:[],'crudPermissions':_0x5459a9[_0x3ec284('0x5ed')],'realtime':![]}});}function _0x1c2f15(_0x2a0014,_0x5c4326){var _0x2526ce=_0x5664f3,_0xc33bff=_0x5c4326['id'];_0x1b95d3[_0x2526ce('0xb97')][_0x2526ce('0xd92')]({'id':_0x2a0014,'ids':_0xc33bff})['$promise'][_0x2526ce('0x21ad')](function(){var _0x1bb690=_0x2526ce;return _0x1b95d3[_0x1bb690('0xb97')]['addLists']({'id':_0x2a0014,'ids':_0xc33bff,'dialCheckDuplicateType':_0x1bb690('0x4ba')})[_0x1bb690('0x1376')];})[_0x2526ce('0x21ad')](function(){var _0x2cc430=_0x2526ce;_0x41d218[_0x2cc430('0xdb1')]({'title':_0x2cc430('0x1738'),'msg':_0x2cc430('0xea')+_0x5c4326[_0x2cc430('0x19fe')]+_0x2cc430('0xf25')});})['catch'](function(_0x3fbb36){var _0x4fec4a=_0x2526ce;_0x41d218[_0x4fec4a('0x2092')]({'title':_0x3fbb36['status']?'API:'+_0x3fbb36['status']+_0x4fec4a('0xa99')+_0x3fbb36[_0x4fec4a('0x1808')]:'SYSTEM:queueCampaign.REMOVELIST','msg':_0x3fbb36[_0x4fec4a('0x209')]?JSON['stringify'](_0x3fbb36['data']):_0x3fbb36[_0x4fec4a('0x174f')]()});});}function _0x38958b(_0x528aae,_0x36e491){var _0xa7ff12=_0x5664f3;_0x1b95d3[_0xa7ff12('0xb97')][_0xa7ff12('0x130')]({'id':_0x528aae['id'],'fields':'id,name','nolimit':!![]})[_0xa7ff12('0x1376')][_0xa7ff12('0x21ad')](function(_0x29169b){var _0x378fc8=_0xa7ff12;if(_0x86640f()[_0x378fc8('0x1c7')](_0x29169b[_0x378fc8('0x1b33')])||_0x86640f()[_0x378fc8('0x23aa')](_0x29169b[_0x378fc8('0x1b33')]))_0x41d218[_0x378fc8('0x231c')]({'title':_0x378fc8('0x5c5')});else{if(_0x29169b[_0x378fc8('0x1b33')][_0x378fc8('0x577')]===0x1){var _0x7da715=_0x236ec8[_0x378fc8('0xa33')]()[_0x378fc8('0x4b4')](_0x378fc8('0x16f')+_0x29169b[_0x378fc8('0x1b33')][0x0]['name']+'\x20?')[_0x378fc8('0x276b')](_0x378fc8('0x622')+_0x29169b['rows'][0x0][_0x378fc8('0x19fe')]+_0x378fc8('0x2135')+_0x378fc8('0x568'))['ariaLabel'](_0x378fc8('0x308'))[_0x378fc8('0x1e6d')](_0x36e491)['ok']('OK')[_0x378fc8('0x3b5')](_0x378fc8('0x284b'));_0x236ec8[_0x378fc8('0x853')](_0x7da715)[_0x378fc8('0x21ad')](function(){var _0x1e93eb=_0x378fc8;_0x1c2f15(_0x5459a9[_0x1e93eb('0x1203')]['id'],_0x29169b[_0x1e93eb('0x1b33')][0x0]);});}else _0x236ec8[_0x378fc8('0x853')]({'controller':'QueueCampaignresetlistController','controllerAs':'vm','templateUrl':_0x1a5514,'parent':angular[_0x378fc8('0x1676')](_0x29e4ea['body']),'targetEvent':_0x36e491,'clickOutsideToClose':![],'locals':{'queueCampaign':_0x528aae,'listsCampaign':_0x29169b?_0x29169b[_0x378fc8('0x1b33')]:[]}});}})[_0xa7ff12('0x1c1d')](function(_0x3d986c){var _0x7860ab=_0xa7ff12;_0x41d218[_0x7860ab('0x2092')]({'title':_0x3d986c[_0x7860ab('0x209')]?_0x7860ab('0x22d')+_0x3d986c[_0x7860ab('0x209')]+_0x7860ab('0xa99')+_0x3d986c[_0x7860ab('0x1808')]:_0x7860ab('0x258a'),'msg':_0x3d986c[_0x7860ab('0x209')]?JSON['stringify'](_0x3d986c['data']):_0x3d986c[_0x7860ab('0x174f')]()});});}function _0x2284b1(){var _0x195b9a=_0x5664f3;if(_0x492f06[_0x195b9a('0x21de')](_0x195b9a('0x1bd8')))_0x2df443['go'](_0x195b9a('0x864'),{});else return _0x1b95d3[_0x195b9a('0xab4')][_0x195b9a('0x595')]({'userProfileId':_0x492f06[_0x195b9a('0x15ed')]()['userProfileId'],'sectionId':0x5e6})['$promise'][_0x195b9a('0x21ad')](function(_0x20ab0b){var _0x14b55a=_0x195b9a,_0x3ba244=_0x20ab0b&&_0x20ab0b['rows']?_0x20ab0b[_0x14b55a('0x1b33')][0x0]:null;_0x3ba244&&_0x3ba244[_0x14b55a('0x2296')]?_0x2df443['go'](_0x14b55a('0x864'),{}):_0x41d218[_0x14b55a('0x231c')]({'title':_0x11b003[_0x14b55a('0x183e')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x11b003[_0x14b55a('0x183e')](_0x14b55a('0x764'))});})[_0x195b9a('0x1c1d')](function(_0x40527b){var _0x4e4044=_0x195b9a;_0x41d218['error']({'title':_0x40527b[_0x4e4044('0x209')]?_0x4e4044('0x22d')+_0x40527b[_0x4e4044('0x209')]+_0x4e4044('0xa99')+_0x40527b[_0x4e4044('0x1808')]:'USERPROFILE:GET_SECTION','msg':_0x40527b[_0x4e4044('0x209')]?JSON['stringify'](_0x40527b[_0x4e4044('0x11c2')]):_0x40527b['toString']()});});}function _0x47317c(){var _0x14ef9f=_0x5664f3;_0x2df443['go']('app.motiondialer.queueCampaigns',{},{'reload':_0x14ef9f('0x1550')});}function _0x1c7fbe(){var _0x293f40=_0x5664f3;_0x1b95d3[_0x293f40('0xb97')][_0x293f40('0x5ef')]({'id':_0x5459a9[_0x293f40('0x1203')]['id']},_0x5459a9[_0x293f40('0x1203')])[_0x293f40('0x1376')][_0x293f40('0x21ad')](function(){var _0xd5682d=_0x293f40;_0x41d218[_0xd5682d('0xdb1')]({'title':_0xd5682d('0x20db'),'msg':_0x5459a9['queueCampaign'][_0xd5682d('0x19fe')]?_0x5459a9[_0xd5682d('0x1203')]['name']+_0xd5682d('0xa8d'):''});})[_0x293f40('0x1c1d')](function(_0xa0d092){var _0x5aa426=_0x293f40;_0x41d218[_0x5aa426('0x2092')]({'title':_0xa0d092[_0x5aa426('0x209')]?'API:'+_0xa0d092[_0x5aa426('0x209')]+_0x5aa426('0xa99')+_0xa0d092['statusText']:_0x5aa426('0x20f4'),'msg':_0xa0d092[_0x5aa426('0x11c2')]?JSON['stringify'](_0xa0d092[_0x5aa426('0x11c2')]):_0xa0d092[_0x5aa426('0x174f')]()});});}}const _0x1903d2=_0x1140b1;_0x24fb6c[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),'$state','$mdSidenav','$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x2313'),'$translate','queueCampaigns',_0x3877e3('0x758'),_0x3877e3('0xab4'),'api',_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),'license',_0x3877e3('0x21e')];function _0x24fb6c(_0xbbabef,_0x393206,_0x458b12,_0x19d7fd,_0x1b1a0e,_0x57fd61,_0x10ffa3,_0x2f0220,_0x447b30,_0x43e744,_0x937b9f,_0x2a18d7,_0x3b753c,_0x24effd,_0x1fdba5,_0x29eb08,_0x2548a5){var _0x3266f0=_0x3877e3,_0x21b7ec=this;_0x21b7ec[_0x3266f0('0x2ff')]=_0x29eb08,_0x21b7ec[_0x3266f0('0x21e')]=_0x2548a5,_0x21b7ec[_0x3266f0('0x123f')]=_0x1fdba5['getCurrentUser'](),_0x21b7ec['queueCampaigns']=_0x447b30||{'count':0x0,'rows':[]},_0x21b7ec[_0x3266f0('0x758')]=_0x43e744,_0x21b7ec['userProfileSection']=_0x937b9f&&_0x937b9f[_0x3266f0('0x205f')]==0x1?_0x937b9f[_0x3266f0('0x1b33')][0x0]:null,_0x21b7ec[_0x3266f0('0x5ed')]=_0x1fdba5[_0x3266f0('0x1778')](_0x21b7ec[_0x3266f0('0xab4')]?_0x21b7ec[_0x3266f0('0xab4')][_0x3266f0('0x5ed')]:null),_0x21b7ec['table']=_0x3266f0('0xea5'),_0x21b7ec[_0x3266f0('0x11dc')]='',_0x21b7ec[_0x3266f0('0x18cf')]=null,_0x21b7ec['selectedQueueCampaigns']=[],_0x21b7ec[_0x3266f0('0x77')]={'fields':_0x3266f0('0x9f5'),'type':'outbound','sort':'-updatedAt','channel':'voice','limit':0xa,'page':0x1},_0x21b7ec[_0x3266f0('0x17e7')]=_0x86640f()['keyBy']([{'option':_0x3266f0('0x676'),'value':_0x3266f0('0x1f6c')},{'option':_0x3266f0('0x14c3'),'value':_0x3266f0('0xc29')},{'option':_0x3266f0('0x9dd'),'value':_0x3266f0('0x1f0d')}],function(_0x166249){var _0x5b61cf=_0x3266f0;return _0x86640f()[_0x5b61cf('0x16e4')](_0x166249[_0x5b61cf('0x2228')],new RegExp('\x27','g'),'');}),_0x21b7ec['arrayautopause']=_0x86640f()['keyBy']([{'option':_0x3266f0('0x1fc6'),'value':_0x3266f0('0xd3e')},{'option':'No','value':_0x3266f0('0x1223')}],function(_0x1923f8){var _0x215b35=_0x3266f0;return _0x86640f()[_0x215b35('0x16e4')](_0x1923f8['value'],new RegExp('\x27','g'),'');}),_0x21b7ec[_0x3266f0('0x1f62')]=_0x86640f()[_0x3266f0('0xcde')]([{'option':_0x3266f0('0x1fc6'),'value':'\x27yes\x27'},{'option':'No','value':'\x27no\x27'}],function(_0x3dabc4){var _0x33cff5=_0x3266f0;return _0x86640f()[_0x33cff5('0x16e4')](_0x3dabc4[_0x33cff5('0x2228')],new RegExp('\x27','g'),'');}),_0x21b7ec['arraytimeoutrestart']=_0x86640f()[_0x3266f0('0xcde')]([{'option':_0x3266f0('0x1fc6'),'value':_0x3266f0('0x53f')},{'option':'No','value':_0x3266f0('0x1223')}],function(_0xec36d5){var _0xa48248=_0x3266f0;return _0x86640f()[_0xa48248('0x16e4')](_0xec36d5[_0xa48248('0x2228')],new RegExp('\x27','g'),'');}),_0x21b7ec[_0x3266f0('0xd3f')]=_0x86640f()[_0x3266f0('0xcde')]([{'option':_0x3266f0('0x348'),'value':'\x27\x27'},{'option':_0x3266f0('0x1292'),'value':_0x3266f0('0x5e9')},{'option':_0x3266f0('0x17a9'),'value':_0x3266f0('0x2794')},{'option':_0x3266f0('0xb95'),'value':_0x3266f0('0x1e90')}],function(_0x307868){var _0x56e1f1=_0x3266f0;return _0x86640f()[_0x56e1f1('0x16e4')](_0x307868['value'],new RegExp('\x27','g'),'');}),_0x21b7ec[_0x3266f0('0x266a')]=_0x86640f()[_0x3266f0('0xcde')]([{'option':_0x3266f0('0x1fc6'),'value':'\x27yes\x27'},{'option':'No','value':_0x3266f0('0x1223')}],function(_0x39cac8){var _0xd9d3c5=_0x3266f0;return _0x86640f()[_0xd9d3c5('0x16e4')](_0x39cac8['value'],new RegExp('\x27','g'),'');}),_0x21b7ec[_0x3266f0('0x2171')]=_0x86640f()[_0x3266f0('0xcde')]([{'option':_0x3266f0('0x1fc6'),'value':_0x3266f0('0x53f')},{'option':'No','value':_0x3266f0('0x1223')}],function(_0x4c3271){var _0x195c38=_0x3266f0;return _0x86640f()['replace'](_0x4c3271[_0x195c38('0x2228')],new RegExp('\x27','g'),'');}),_0x21b7ec[_0x3266f0('0x1525')]=_0x86640f()[_0x3266f0('0xcde')]([{'option':'Yes','value':'\x27yes\x27'},{'option':'No','value':_0x3266f0('0x1223')}],function(_0x4decde){var _0x4cbd44=_0x3266f0;return _0x86640f()[_0x4cbd44('0x16e4')](_0x4decde['value'],new RegExp('\x27','g'),'');}),_0x21b7ec[_0x3266f0('0x1760')]=_0x86640f()['keyBy']([{'option':_0x3266f0('0x1675'),'value':_0x3266f0('0x1821')},{'option':_0x3266f0('0xdcd'),'value':_0x3266f0('0xea3')}],function(_0xe3e1ab){var _0x8ae53c=_0x3266f0;return _0x86640f()[_0x8ae53c('0x16e4')](_0xe3e1ab[_0x8ae53c('0x2228')],new RegExp('\x27','g'),'');}),_0x21b7ec[_0x3266f0('0x8e')]=_0x86640f()[_0x3266f0('0xcde')]([{'option':_0x3266f0('0x128f'),'value':_0x3266f0('0xc1a')},{'option':_0x3266f0('0x1d7d'),'value':_0x3266f0('0xdb')},{'option':'Predictive','value':'\x27predictive\x27'},{'option':_0x3266f0('0xda8'),'value':_0x3266f0('0x19d3')},{'option':'BookedProgressive','value':_0x3266f0('0x157a')}],function(_0x5fc31b){var _0x53235d=_0x3266f0;return _0x86640f()[_0x53235d('0x16e4')](_0x5fc31b[_0x53235d('0x2228')],new RegExp('\x27','g'),'');}),_0x21b7ec['arraydialPredictiveOptimization']=_0x86640f()[_0x3266f0('0xcde')]([{'option':_0x3266f0('0x1750'),'value':_0x3266f0('0x11b2')},{'option':_0x3266f0('0xe79'),'value':_0x3266f0('0x4f7')}],function(_0x214a06){return _0x86640f()['replace'](_0x214a06['value'],new RegExp('\x27','g'),'');}),_0x21b7ec[_0x3266f0('0x556')]=_0x86640f()[_0x3266f0('0xcde')]([{'option':_0x3266f0('0xf14'),'value':'\x27rrmemory\x27'},{'option':_0x3266f0('0x275b'),'value':_0x3266f0('0xfa2'),'ngIf':_0x3266f0('0xe40')},{'option':_0x3266f0('0x2281'),'value':_0x3266f0('0x13f'),'ngIf':'vm.queueCampaign.dialMethod\x20!==\x20\x27booked\x27'},{'option':'Fewest\x20Calls','value':_0x3266f0('0x1b4d'),'ngIf':_0x3266f0('0x214b')},{'option':'Random','value':_0x3266f0('0xa8f'),'ngIf':'vm.queueCampaign.dialMethod\x20!==\x20\x27booked\x27'},{'option':_0x3266f0('0x2180'),'value':_0x3266f0('0x2769'),'ngIf':_0x3266f0('0x214b')},{'option':'Weight\x20Random','value':'\x27wrandom\x27','ngIf':_0x3266f0('0x214b')}],function(_0x1b8ea2){var _0x4dc1ca=_0x3266f0;return _0x86640f()[_0x4dc1ca('0x16e4')](_0x1b8ea2[_0x4dc1ca('0x2228')],new RegExp('\x27','g'),'');}),_0x21b7ec[_0x3266f0('0x1c88')]=_0x4ab728,_0x21b7ec['clonedialog']=_0x2e3199,_0x21b7ec[_0x3266f0('0x2360')]=_0x566c79,_0x21b7ec[_0x3266f0('0x21c9')]=_0x205b66,_0x21b7ec[_0x3266f0('0x1111')]=_0x16779e,_0x21b7ec['agentadddialog']=_0x179149,_0x21b7ec[_0x3266f0('0x2593')]=_0x408d0a,_0x21b7ec[_0x3266f0('0x1db4')]=_0x240ff9,_0x21b7ec[_0x3266f0('0xdb1')]=_0x18eca1,_0x21b7ec[_0x3266f0('0x2865')]=_0x1750b3,_0x21b7ec[_0x3266f0('0x1ca8')]=_0x1641e7,_0x21b7ec[_0x3266f0('0x2427')]=_0x3710d3,_0x21b7ec[_0x3266f0('0x27ca')]=_0x2d85ac,_0x21b7ec['deleteSelectedQueueCampaigns']=_0x5a9f84,_0x21b7ec[_0x3266f0('0x1464')]=_0x10eef6,_0x21b7ec[_0x3266f0('0x209e')]=_0x1808da,_0x1fdba5[_0x3266f0('0x21de')](_0x3266f0('0x1bd8'))?_0x2a18d7[_0x3266f0('0x1280')][_0x3266f0('0x595')]({'fields':_0x3266f0('0x1aa8'),'sort':'name'})[_0x3266f0('0x1376')][_0x3266f0('0x21ad')](function(_0x3dadda){var _0x5b02a0=_0x3266f0;_0x21b7ec[_0x5b02a0('0x1593')]=_0x3dadda[_0x5b02a0('0x1b33')]||[];})[_0x3266f0('0x1c1d')](function(_0x48898b){var _0x8e9313=_0x3266f0;_0x24effd[_0x8e9313('0x2092')]({'title':_0x48898b[_0x8e9313('0x209')]?_0x8e9313('0x22d')+_0x48898b[_0x8e9313('0x209')]+_0x8e9313('0xa99')+_0x48898b['statusText']:_0x8e9313('0x9ee'),'msg':_0x48898b[_0x8e9313('0x11c2')]?JSON[_0x8e9313('0x25e')](_0x48898b['data']):_0x48898b[_0x8e9313('0x174f')]()});}):_0x2a18d7[_0x3266f0('0x1280')][_0x3266f0('0x595')]({'fields':_0x3266f0('0x1aa8'),'sort':_0x3266f0('0x19fe')})[_0x3266f0('0x1376')]['then'](function(_0x4b22a1){var _0x8eb1a6=_0x3266f0;_0x21b7ec[_0x8eb1a6('0x1593')]=_0x4b22a1['rows']||[];})[_0x3266f0('0x21ad')](function(){var _0x19d93b=_0x3266f0;return _0x2a18d7[_0x19d93b('0xab4')][_0x19d93b('0x595')]({'userProfileId':_0x21b7ec[_0x19d93b('0x123f')][_0x19d93b('0x1618')],'sectionId':0x3f3})['$promise'];})[_0x3266f0('0x21ad')](function(_0x2e4fae){var _0x44b315=_0x3266f0,_0x287b1a=_0x2e4fae&&_0x2e4fae[_0x44b315('0x1b33')]?_0x2e4fae[_0x44b315('0x1b33')][0x0]:null;if(!_0x287b1a){var _0x13aaa9=[],_0x586911=[];_0x21b7ec[_0x44b315('0xea5')][_0x44b315('0x1b33')][_0x44b315('0x1a52')](function(_0x1881d2){var _0x3edc74=_0x44b315,_0x3ce990=_0x86640f()[_0x3edc74('0x1d2e')](_0x21b7ec[_0x3edc74('0x1593')],{'id':Number(_0x1881d2[_0x3edc74('0x1026')])});_0x586911[_0x3edc74('0x206c')](_0x3ce990);});for(var _0x44311c=0x0;_0x44311c<_0x21b7ec[_0x44b315('0x1593')][_0x44b315('0x577')];_0x44311c++){var _0x1afcef=_0x86640f()[_0x44b315('0x2664')](_0x586911,{'id':_0x21b7ec[_0x44b315('0x1593')][_0x44311c]['id']});_0x1afcef&&(_0x21b7ec['trunks'][_0x44311c][_0x44b315('0xba')]=![],_0x13aaa9['push'](_0x21b7ec[_0x44b315('0x1593')][_0x44311c]));}_0x21b7ec[_0x44b315('0x1593')]=_0x13aaa9;}else{if(!_0x287b1a[_0x44b315('0x80c')])return _0x2a18d7[_0x44b315('0x185e')][_0x44b315('0x595')]({'sectionId':_0x287b1a['id']})[_0x44b315('0x1376')]['then'](function(_0x53a373){var _0x1734d9=_0x44b315,_0x239d9d=_0x86640f()['map'](_0x53a373[_0x1734d9('0x1b33')],function(_0x431cf8){var _0x4d6bd2=_0x1734d9;return _0x86640f()['find'](_0x21b7ec[_0x4d6bd2('0x1593')],{'id':_0x431cf8[_0x4d6bd2('0x675')]});}),_0x36abbf=null;_0x36abbf=[],_0x21b7ec[_0x1734d9('0xea5')][_0x1734d9('0x1b33')][_0x1734d9('0x1a52')](function(_0x4f34bb){var _0x51fbc5=_0x1734d9,_0x36d214=_0x86640f()[_0x51fbc5('0x1d2e')](_0x21b7ec[_0x51fbc5('0x1593')],{'id':Number(_0x4f34bb['TrunkId'])});_0x36abbf[_0x51fbc5('0x206c')](_0x36d214);}),!_0x86640f()[_0x1734d9('0x23aa')](_0x36abbf)&&_0x36abbf['forEach'](function(_0x445d4b){var _0x1bac43=_0x1734d9;if(!_0x86640f()[_0x1bac43('0x2664')](_0x239d9d,['id',_0x445d4b['id']])){var _0x1e3111=_0x86640f()[_0x1bac43('0x1d2e')](_0x21b7ec[_0x1bac43('0x1593')],{'id':_0x445d4b['id']});_0x1e3111[_0x1bac43('0xba')]=![],_0x239d9d['push'](_0x1e3111);}}),_0x21b7ec['trunks']=_0x239d9d;});}})[_0x3266f0('0x1c1d')](function(_0x12dc83){var _0x3b1f61=_0x3266f0;_0x24effd[_0x3b1f61('0x2092')]({'title':_0x12dc83[_0x3b1f61('0x209')]?_0x3b1f61('0x22d')+_0x12dc83[_0x3b1f61('0x209')]+'\x20-\x20'+_0x12dc83['statusText']:'SYSTEM:GETtrunks','msg':_0x12dc83['data']?JSON['stringify'](_0x12dc83[_0x3b1f61('0x11c2')]):_0x12dc83[_0x3b1f61('0x174f')]()});}),_0x1fdba5[_0x3266f0('0x21de')](_0x3266f0('0x1bd8'))?_0x2a18d7[_0x3266f0('0xa07')][_0x3266f0('0x595')]({'fields':_0x3266f0('0x1aa8'),'sort':_0x3266f0('0x19fe'),'IntervalId':_0x3266f0('0x27a')})['$promise'][_0x3266f0('0x21ad')](function(_0x31cb88){var _0x50fb76=_0x3266f0;_0x21b7ec[_0x50fb76('0xa07')]=_0x31cb88['rows']||[];})[_0x3266f0('0x1c1d')](function(_0x2b710a){var _0x1c84d4=_0x3266f0;_0x24effd['error']({'title':_0x2b710a['status']?_0x1c84d4('0x22d')+_0x2b710a[_0x1c84d4('0x209')]+'\x20-\x20'+_0x2b710a[_0x1c84d4('0x1808')]:_0x1c84d4('0x1c18'),'msg':_0x2b710a[_0x1c84d4('0x11c2')]?JSON['stringify'](_0x2b710a[_0x1c84d4('0x11c2')]):_0x2b710a[_0x1c84d4('0x174f')]()});}):_0x2a18d7[_0x3266f0('0xa07')][_0x3266f0('0x595')]({'fields':_0x3266f0('0x1aa8'),'sort':'name','IntervalId':_0x3266f0('0x27a')})['$promise'][_0x3266f0('0x21ad')](function(_0x5af785){var _0x5474fe=_0x3266f0;_0x21b7ec['interval']=_0x5af785[_0x5474fe('0x1b33')]||[];})[_0x3266f0('0x21ad')](function(){var _0x29d04c=_0x3266f0;return _0x2a18d7[_0x29d04c('0xab4')]['get']({'userProfileId':_0x21b7ec[_0x29d04c('0x123f')][_0x29d04c('0x1618')],'sectionId':0x3ec})[_0x29d04c('0x1376')];})[_0x3266f0('0x21ad')](function(_0x4240b7){var _0x27bee2=_0x3266f0,_0x454def=_0x4240b7&&_0x4240b7[_0x27bee2('0x1b33')]?_0x4240b7[_0x27bee2('0x1b33')][0x0]:null;if(!_0x454def){var _0x5aadf5=[],_0xff8504=null;_0x21b7ec[_0x27bee2('0x1203')]&&(_0xff8504=_0x86640f()[_0x27bee2('0x1d2e')](_0x21b7ec['interval'],{'id':Number(_0x21b7ec[_0x27bee2('0x1203')][_0x27bee2('0x1ac8')])}));for(var _0x6a16c0=0x0;_0x6a16c0<_0x21b7ec[_0x27bee2('0xa07')][_0x27bee2('0x577')];_0x6a16c0++){_0xff8504&&_0x21b7ec['interval'][_0x6a16c0]['id']===_0xff8504['id']&&(_0x21b7ec[_0x27bee2('0xa07')][_0x6a16c0]['canSelect']=![],_0x5aadf5[_0x27bee2('0x206c')](_0x21b7ec[_0x27bee2('0xa07')][_0x6a16c0]));}_0x21b7ec[_0x27bee2('0xa07')]=_0x5aadf5;}else{if(!_0x454def[_0x27bee2('0x80c')])return _0x2a18d7[_0x27bee2('0x185e')][_0x27bee2('0x595')]({'sectionId':_0x454def['id']})[_0x27bee2('0x1376')][_0x27bee2('0x21ad')](function(_0x3e21b1){var _0x3fa63e=_0x27bee2,_0xc0bbd3=_0x86640f()[_0x3fa63e('0x26c3')](_0x3e21b1[_0x3fa63e('0x1b33')],function(_0x1530ef){var _0x1f6033=_0x3fa63e;return _0x86640f()['find'](_0x21b7ec[_0x1f6033('0xa07')],{'id':_0x1530ef[_0x1f6033('0x675')]});}),_0xa6110b=null;_0x21b7ec[_0x3fa63e('0x1203')]&&(_0xa6110b=_0x86640f()[_0x3fa63e('0x1d2e')](_0x21b7ec[_0x3fa63e('0xa07')],{'id':Number(_0x21b7ec[_0x3fa63e('0x1203')][_0x3fa63e('0x1ac8')])}));if(_0xa6110b&&!_0x86640f()[_0x3fa63e('0x2664')](_0xc0bbd3,['id',_0xa6110b['id']])){var _0x32613d=_0x86640f()[_0x3fa63e('0x1d2e')](_0x21b7ec[_0x3fa63e('0xa07')],{'id':_0xa6110b['id']});_0x32613d['canSelect']=![],_0xc0bbd3[_0x3fa63e('0x206c')](_0x32613d);}_0x21b7ec[_0x3fa63e('0xa07')]=_0xc0bbd3;});}})[_0x3266f0('0x1c1d')](function(_0x17219e){var _0x1e515b=_0x3266f0;_0x24effd['error']({'title':_0x17219e['status']?_0x1e515b('0x22d')+_0x17219e[_0x1e515b('0x209')]+'\x20-\x20'+_0x17219e[_0x1e515b('0x1808')]:_0x1e515b('0x259e'),'msg':_0x17219e[_0x1e515b('0x11c2')]?JSON['stringify'](_0x17219e[_0x1e515b('0x11c2')]):_0x17219e[_0x1e515b('0x174f')]()});});function _0x4ab728(_0x16b0ad){var _0x228563=_0x3266f0;_0x458b12['go'](_0x228563('0x1afe'),{'id':_0x16b0ad['id'],'queueCampaign':_0x16b0ad,'crudPermissions':_0x21b7ec['crudPermissions']});}function _0x2e3199(_0x123567,_0x37b3cc){var _0x359a51=_0x3266f0;_0x1b1a0e['show']({'controller':_0x359a51('0xcd3'),'controllerAs':'vm','templateUrl':_0x59a785,'parent':angular[_0x359a51('0x1676')](_0x57fd61[_0x359a51('0x2452')]),'targetEvent':_0x37b3cc,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x123567,'queueCampaigns':_0x21b7ec[_0x359a51('0xea5')]?_0x21b7ec[_0x359a51('0xea5')]['rows']:[],'crudPermissions':_0x21b7ec[_0x359a51('0x5ed')]}});}function _0x566c79(_0x1583b9,_0x5d8311){var _0x1e1660=_0x3266f0;_0x1b1a0e['show']({'controller':'QueueCampaignlistaddController','controllerAs':'vm','templateUrl':_0x10ed2a,'parent':angular[_0x1e1660('0x1676')](_0x57fd61[_0x1e1660('0x2452')]),'targetEvent':_0x5d8311,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x1583b9,'queueCampaigns':_0x21b7ec[_0x1e1660('0xea5')]?_0x21b7ec[_0x1e1660('0xea5')][_0x1e1660('0x1b33')]:[],'crudPermissions':_0x21b7ec[_0x1e1660('0x5ed')]}});}function _0x205b66(_0xa3a68e,_0x5f555a){var _0x130366=_0x3266f0;_0x1b1a0e[_0x130366('0x853')]({'controller':'QueueCampaignblacklistaddController','controllerAs':'vm','templateUrl':_0x256f09,'parent':angular[_0x130366('0x1676')](_0x57fd61[_0x130366('0x2452')]),'targetEvent':_0x5f555a,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0xa3a68e,'queueCampaigns':_0x21b7ec[_0x130366('0xea5')]?_0x21b7ec[_0x130366('0xea5')][_0x130366('0x1b33')]:[],'crudPermissions':_0x21b7ec['crudPermissions']}});}function _0x16779e(_0xf22988,_0x5a3f2a){var _0x58009b=_0x3266f0;_0x1b1a0e[_0x58009b('0x853')]({'controller':'QueueCampaignteamaddController','controllerAs':'vm','templateUrl':_0x5a5b56,'parent':angular[_0x58009b('0x1676')](_0x57fd61[_0x58009b('0x2452')]),'targetEvent':_0x5a3f2a,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0xf22988,'queueCampaigns':_0x21b7ec[_0x58009b('0xea5')]?_0x21b7ec[_0x58009b('0xea5')][_0x58009b('0x1b33')]:[],'crudPermissions':_0x21b7ec[_0x58009b('0x5ed')]}});}function _0x179149(_0x2f1156,_0x560aa1){var _0x404bb0=_0x3266f0;_0x1b1a0e['show']({'controller':_0x404bb0('0x144a'),'controllerAs':'vm','templateUrl':_0x409ee0,'parent':angular['element'](_0x57fd61[_0x404bb0('0x2452')]),'targetEvent':_0x560aa1,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x2f1156,'queueCampaigns':_0x21b7ec[_0x404bb0('0xea5')]?_0x21b7ec[_0x404bb0('0xea5')][_0x404bb0('0x1b33')]:[],'crudPermissions':_0x21b7ec[_0x404bb0('0x5ed')],'realtime':![]}});}function _0x408d0a(_0x4f172c,_0x595418){var _0x3fb33d=_0x3266f0,_0x297d77=_0x1b1a0e[_0x3fb33d('0xa33')]()[_0x3fb33d('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x86640f()['startCase'](_0x3fb33d('0x1203'))+'?')[_0x3fb33d('0x276b')](_0x3fb33d('0x622')+(_0x4f172c[_0x3fb33d('0x19fe')]||'queueCampaign')+_0x3fb33d('0x2135')+_0x3fb33d('0x25e0'))[_0x3fb33d('0x7a7')](_0x3fb33d('0x48f'))[_0x3fb33d('0x1e6d')](_0x595418)['ok']('OK')[_0x3fb33d('0x3b5')](_0x3fb33d('0x284b'));_0x1b1a0e[_0x3fb33d('0x853')](_0x297d77)[_0x3fb33d('0x21ad')](function(){_0x3710d3(_0x4f172c);},function(){var _0x12aeea=_0x3fb33d;console[_0x12aeea('0x6fb')](_0x12aeea('0x284b'));});}function _0x240ff9(){var _0x37865c=_0x3266f0;if(_0x1fdba5[_0x37865c('0x21de')]('admin'))_0x458b12['go'](_0x37865c('0x864'),{});else return _0x2a18d7[_0x37865c('0xab4')][_0x37865c('0x595')]({'userProfileId':_0x1fdba5['getCurrentUser']()[_0x37865c('0x1618')],'sectionId':0x5e6})['$promise'][_0x37865c('0x21ad')](function(_0x4252e9){var _0x2651e7=_0x37865c,_0xaefa88=_0x4252e9&&_0x4252e9['rows']?_0x4252e9[_0x2651e7('0x1b33')][0x0]:null;_0xaefa88&&_0xaefa88[_0x2651e7('0x2296')]?_0x458b12['go'](_0x2651e7('0x864'),{}):_0x24effd['info']({'title':_0x2f0220['instant'](_0x2651e7('0x1adb')),'msg':_0x2f0220[_0x2651e7('0x183e')](_0x2651e7('0x764'))});})['catch'](function(_0x342107){var _0x1cab28=_0x37865c;_0x24effd[_0x1cab28('0x2092')]({'title':_0x342107['status']?_0x1cab28('0x22d')+_0x342107[_0x1cab28('0x209')]+_0x1cab28('0xa99')+_0x342107[_0x1cab28('0x1808')]:'USERPROFILE:GET_SECTION','msg':_0x342107['status']?JSON['stringify'](_0x342107[_0x1cab28('0x11c2')]):_0x342107[_0x1cab28('0x174f')]()});});}var _0xdc535=!![],_0x4205e1=0x1;_0xbbabef[_0x3266f0('0x10e8')](_0x3266f0('0x1948'),function(_0x1b0873,_0x55b4b3){var _0x598326=_0x3266f0;_0xdc535?_0x10ffa3(function(){_0xdc535=![];}):(!_0x55b4b3&&(_0x4205e1=_0x21b7ec[_0x598326('0x77')][_0x598326('0x2376')]),_0x1b0873!==_0x55b4b3&&(_0x21b7ec[_0x598326('0x77')][_0x598326('0x2376')]=0x1),!_0x1b0873&&(_0x21b7ec[_0x598326('0x77')]['page']=_0x4205e1),_0x21b7ec[_0x598326('0x2865')]());});function _0x18eca1(_0x5d13e4){var _0x1d3e1f=_0x3266f0;_0x21b7ec[_0x1d3e1f('0xea5')]=_0x5d13e4||{'count':0x0,'rows':[]};}function _0x1750b3(){var _0x206f9a=_0x3266f0;_0x21b7ec[_0x206f9a('0x77')][_0x206f9a('0x15a5')]=(_0x21b7ec['query'][_0x206f9a('0x2376')]-0x1)*_0x21b7ec[_0x206f9a('0x77')][_0x206f9a('0x1f4a')],_0x1fdba5[_0x206f9a('0x21de')](_0x206f9a('0x1bd8'))?_0x21b7ec[_0x206f9a('0x71b')]=_0x2a18d7[_0x206f9a('0xb97')][_0x206f9a('0x595')](_0x21b7ec[_0x206f9a('0x77')],_0x18eca1)[_0x206f9a('0x1376')]:(_0x21b7ec['query']['id']=_0x21b7ec[_0x206f9a('0x758')]['id'],_0x21b7ec['query'][_0x206f9a('0x26ad')]=_0x206f9a('0x1c8d'),_0x21b7ec[_0x206f9a('0x71b')]=_0x2a18d7[_0x206f9a('0x758')][_0x206f9a('0x321')](_0x21b7ec[_0x206f9a('0x77')],_0x18eca1)[_0x206f9a('0x1376')]);}function _0x1641e7(_0x1dfd82,_0x18e5b3){var _0x1970f8=_0x3266f0;_0x1b1a0e[_0x1970f8('0x853')]({'controller':_0x1970f8('0x14fa'),'controllerAs':'vm','templateUrl':_0x500887,'parent':angular[_0x1970f8('0x1676')](_0x57fd61[_0x1970f8('0x2452')]),'targetEvent':_0x1dfd82,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x18e5b3,'queueCampaigns':_0x21b7ec[_0x1970f8('0xea5')][_0x1970f8('0x1b33')],'license':_0x21b7ec['license'],'setting':_0x21b7ec[_0x1970f8('0x21e')],'crudPermissions':_0x21b7ec[_0x1970f8('0x5ed')]}});}function _0x3710d3(_0x4829c8){var _0x2ebf3c=_0x3266f0;_0x2a18d7[_0x2ebf3c('0xb97')][_0x2ebf3c('0x1164')]({'id':_0x4829c8['id']})[_0x2ebf3c('0x1376')][_0x2ebf3c('0x21ad')](function(){var _0xccb3eb=_0x2ebf3c;_0x86640f()['remove'](_0x21b7ec[_0xccb3eb('0xea5')][_0xccb3eb('0x1b33')],{'id':_0x4829c8['id']}),_0x21b7ec['queueCampaigns'][_0xccb3eb('0x205f')]-=0x1,!_0x21b7ec[_0xccb3eb('0xea5')][_0xccb3eb('0x1b33')]['length']&&_0x21b7ec[_0xccb3eb('0x2865')](),_0x24effd[_0xccb3eb('0xdb1')]({'title':_0x86640f()[_0xccb3eb('0x2159')]('QueueCampaign')+_0xccb3eb('0xe64'),'msg':_0x4829c8['name']?_0x4829c8[_0xccb3eb('0x19fe')]+_0xccb3eb('0xb4a'):''});})[_0x2ebf3c('0x1c1d')](function(_0x4fdb71){var _0x2baacb=_0x2ebf3c;if(_0x4fdb71[_0x2baacb('0x11c2')]&&_0x4fdb71[_0x2baacb('0x11c2')][_0x2baacb('0x1a69')]&&_0x4fdb71[_0x2baacb('0x11c2')][_0x2baacb('0x1a69')][_0x2baacb('0x577')]){_0x21b7ec[_0x2baacb('0x1a69')]=_0x4fdb71[_0x2baacb('0x11c2')]['errors']||[{'message':_0x4fdb71[_0x2baacb('0x174f')](),'type':'SYSTEM:DELETEvoiceQueue'}];for(var _0x5bca8f=0x0;_0x5bca8f<_0x4fdb71[_0x2baacb('0x11c2')][_0x2baacb('0x1a69')][_0x2baacb('0x577')];_0x5bca8f++){_0x24effd[_0x2baacb('0x2092')]({'title':_0x4fdb71['data']['errors'][_0x5bca8f]['type'],'msg':_0x4fdb71[_0x2baacb('0x11c2')]['errors'][_0x5bca8f][_0x2baacb('0x1224')]});}}else _0x24effd[_0x2baacb('0x2092')]({'title':_0x4fdb71['status']?'API:'+_0x4fdb71[_0x2baacb('0x209')]+'\x20-\x20'+_0x4fdb71[_0x2baacb('0x1808')]:_0x2baacb('0xec1'),'msg':_0x4fdb71[_0x2baacb('0x11c2')]?JSON[_0x2baacb('0x25e')](_0x4fdb71[_0x2baacb('0x11c2')]['message']):_0x4fdb71['message']||_0x4fdb71[_0x2baacb('0x174f')]()});});}function _0x2d85ac(){var _0x579ed2=_0x3266f0,_0xd19f5e=angular['copy'](_0x21b7ec[_0x579ed2('0x483')]);return _0x21b7ec[_0x579ed2('0x483')]=[],_0xd19f5e;}function _0x5a9f84(_0x50a629){var _0x255676=_0x3266f0,_0x59ee26=_0x1b1a0e['confirm']()[_0x255676('0x4b4')](_0x255676('0x6f9'))['htmlContent'](_0x255676('0x622')+_0x21b7ec[_0x255676('0x483')][_0x255676('0x577')]+_0x255676('0xd74')+_0x255676('0x25e0'))[_0x255676('0x7a7')](_0x255676('0x1b69'))[_0x255676('0x1e6d')](_0x50a629)['ok']('OK')[_0x255676('0x3b5')]('CANCEL');_0x1b1a0e[_0x255676('0x853')](_0x59ee26)['then'](function(){var _0x35b99e=_0x255676;_0x21b7ec[_0x35b99e('0x483')][_0x35b99e('0x1a52')](function(_0xd553b8){_0x3710d3(_0xd553b8);}),_0x21b7ec[_0x35b99e('0x483')]=[];});}function _0x10eef6(){var _0x45b192=_0x3266f0;_0x21b7ec[_0x45b192('0x483')]=[];}function _0x1808da(){var _0x423cf7=_0x3266f0;_0x21b7ec[_0x423cf7('0x483')]=_0x21b7ec['queueCampaigns'][_0x423cf7('0x1b33')];}}const _0x1a9cda=_0x24fb6c;_0x468a63[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c'),_0x3877e3('0x972')];function _0x468a63(_0x1ca895,_0x2e9ba0){var _0x372460=_0x3877e3;_0x1ca895['state'](_0x372460('0x1954'),{'abstract':!![],'url':'/motiondialer'})['state'](_0x372460('0x1550'),{'url':_0x372460('0x11ba'),'views':{'content@app':{'templateUrl':_0x5b6731,'controller':'QueueCampaignsController\x20as\x20vm'}},'resolve':{'queueCampaigns':[_0x372460('0x354'),_0x372460('0x15bc'),function _0x4bcd2d(_0x36d858,_0x1b9f51){var _0x2f0b6e=_0x372460;return _0x1b9f51[_0x2f0b6e('0x21de')](_0x2f0b6e('0x1bd8'))?_0x36d858[_0x2f0b6e('0x8ac')](_0x2f0b6e('0x10bb'),{'fields':_0x2f0b6e('0x9f5'),'type':_0x2f0b6e('0x2300'),'sort':_0x2f0b6e('0x33'),'channel':'voice','limit':0xa,'offset':0x0}):_0x36d858[_0x2f0b6e('0x8ac')](_0x2f0b6e('0x52f'),{'id':_0x1b9f51[_0x2f0b6e('0x15ed')]()[_0x2f0b6e('0x1618')],'section':_0x2f0b6e('0x1c8d'),'fields':_0x2f0b6e('0x9f5'),'type':'outbound','sort':_0x2f0b6e('0x33'),'channel':_0x2f0b6e('0x8ed'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x372460('0x354'),_0x372460('0x15bc'),function _0x32dd0b(_0x5c2c2a,_0x506e36){var _0x281f65=_0x372460;return _0x506e36[_0x281f65('0x21de')]('admin')?null:_0x5c2c2a[_0x281f65('0x8ac')](_0x281f65('0x1e1d'),{'fields':_0x281f65('0x1a00'),'id':_0x506e36[_0x281f65('0x15ed')]()['userProfileId']});}],'userProfileSection':[_0x372460('0x354'),_0x372460('0x15bc'),function _0x391c0a(_0x50106d,_0x4be079){var _0x2aa20f=_0x372460;return _0x4be079['hasRole'](_0x2aa20f('0x1bd8'))?null:_0x50106d['resolve'](_0x2aa20f('0x222f'),{'fields':_0x2aa20f('0x1852'),'userProfileId':_0x4be079['getCurrentUser']()['userProfileId'],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5dd,'bodyClass':_0x372460('0x646')})[_0x372460('0x27e')](_0x372460('0x1afe'),{'url':_0x372460('0x17f5'),'params':{'queueCampaign':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x36a12b,'controller':'QueueCampaignController\x20as\x20vm'}},'resolve':{'queueCampaign':['apiResolver',_0x372460('0x114e'),function _0x53bb72(_0x4252fa,_0x376396){var _0x156a32=_0x372460;return _0x4252fa[_0x156a32('0x8ac')](_0x156a32('0x10bb'),{'fields':_0x156a32('0x9f5'),'id':_0x376396['id']});}],'userProfileSection':[_0x372460('0x354'),_0x372460('0x15bc'),function _0xac88a7(_0x4476b0,_0x1cfbd8){var _0x4bf86f=_0x372460;return _0x4476b0[_0x4bf86f('0x8ac')]('userProfileSection@get',{'fields':_0x4bf86f('0x1852'),'userProfileId':_0x1cfbd8[_0x4bf86f('0x15ed')]()[_0x4bf86f('0x1618')],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5dd,'bodyClass':_0x372460('0x646')})[_0x372460('0x27e')](_0x372460('0x33d'),{'url':'/ivrCampaigns','views':{'content@app':{'templateUrl':_0x116c4f,'controller':_0x372460('0x1991')}},'resolve':{'ivrCampaigns':['apiResolver',_0x372460('0x15bc'),function _0x56cc08(_0x499892,_0x3b73a3){var _0x21bedd=_0x372460;return _0x3b73a3['hasRole']('admin')?_0x499892[_0x21bedd('0x8ac')](_0x21bedd('0x47d'),{'fields':_0x21bedd('0x250b'),'type':'ivr','sort':_0x21bedd('0x33'),'limit':0xa,'offset':0x0}):_0x499892[_0x21bedd('0x8ac')]('userProfile@getResources',{'id':_0x3b73a3[_0x21bedd('0x15ed')]()[_0x21bedd('0x1618')],'section':'IvrCampaigns','fields':_0x21bedd('0x250b'),'type':'ivr','sort':_0x21bedd('0x33'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x372460('0x15bc'),function _0xa5c022(_0x19430c,_0x347735){var _0x4d1e8e=_0x372460;return _0x347735[_0x4d1e8e('0x21de')](_0x4d1e8e('0x1bd8'))?null:_0x19430c[_0x4d1e8e('0x8ac')](_0x4d1e8e('0x1e1d'),{'fields':'id,name,crudPermissions','id':_0x347735['getCurrentUser']()[_0x4d1e8e('0x1618')]});}],'userProfileSection':[_0x372460('0x354'),_0x372460('0x15bc'),function _0x499d3f(_0x3f878c,_0x5e6e0e){var _0xf6a05d=_0x372460;return _0x5e6e0e[_0xf6a05d('0x21de')](_0xf6a05d('0x1bd8'))?null:_0x3f878c['resolve'](_0xf6a05d('0x222f'),{'fields':_0xf6a05d('0x1852'),'userProfileId':_0x5e6e0e[_0xf6a05d('0x15ed')]()[_0xf6a05d('0x1618')],'sectionId':0x5de});}]},'authenticate':!![],'permissionId':0x5de,'bodyClass':_0x372460('0x646')})[_0x372460('0x27e')](_0x372460('0x1f01'),{'url':_0x372460('0x17f5'),'params':{'ivrCampaign':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x56954e,'controller':_0x372460('0x22fb')}},'resolve':{'ivrCampaign':[_0x372460('0x354'),_0x372460('0x114e'),function _0x33a899(_0x13d6be,_0x26ec5e){var _0x4b0441=_0x372460;return _0x13d6be[_0x4b0441('0x8ac')](_0x4b0441('0x47d'),{'fields':_0x4b0441('0x250b'),'id':_0x26ec5e['id']});}],'userProfileSection':[_0x372460('0x354'),'Auth',function _0x1cacf9(_0x5e35d3,_0x2f8c72){var _0x168d4c=_0x372460;return _0x5e35d3[_0x168d4c('0x8ac')](_0x168d4c('0x222f'),{'fields':_0x168d4c('0x1852'),'userProfileId':_0x2f8c72['getCurrentUser']()[_0x168d4c('0x1618')],'sectionId':0x5de});}]},'authenticate':!![],'permissionId':0x5de,'bodyClass':'motiondialer'}),_0x2e9ba0[_0x372460('0x20ab')]('app/main/apps/motiondialer');}angular[_0x3877e3('0x20d5')](_0x3877e3('0x1954'),[_0x3877e3('0x240c'),_0x3877e3('0x1b0'),'md.data.table',_0x3877e3('0x1d76'),_0x3877e3('0x2437'),_0x3877e3('0x25c7'),'ng-sortable','ngAria',_0x3877e3('0x19'),_0x3877e3('0x335'),_0x3877e3('0xc90'),'mwFormViewer',_0x3877e3('0xe2f'),'ngclipboard',_0x3877e3('0xf61'),_0x3877e3('0xe39'),_0x3877e3('0x25a2'),_0x3877e3('0x27ba'),_0x3877e3('0x9e0'),'angular.filter',_0x3877e3('0xd52')])[_0x3877e3('0x13')](_0x468a63)[_0x3877e3('0x1d5a')](_0x3877e3('0x835'),_0x4d65a9)[_0x3877e3('0x1d5a')](_0x3877e3('0x1fac'),_0x5e0426)['controller'](_0x3877e3('0x1931'),_0x214bca)[_0x3877e3('0x1d5a')]('IvrCampaignHopperBlacksController',_0x291933)['controller'](_0x3877e3('0x1fba'),_0x2789a2)[_0x3877e3('0x1d5a')](_0x3877e3('0x86a'),_0x5a2e73)[_0x3877e3('0x1d5a')]('IvrCampaignHoppersController',_0x2c8f9d)[_0x3877e3('0x1d5a')](_0x3877e3('0xe6f'),_0xf52634)['controller'](_0x3877e3('0x1e91'),_0x1f78d4)[_0x3877e3('0x1d5a')]('IvrCampaignlistaddController',_0x4c76a1)[_0x3877e3('0x1d5a')](_0x3877e3('0x9f7'),_0x8f8330)['controller'](_0x3877e3('0xfad'),_0x59f09a)[_0x3877e3('0x1d5a')]('IvrCampaignsController',_0x58df8b)['controller'](_0x3877e3('0x14fa'),_0x5f4aec)['controller'](_0x3877e3('0x144a'),_0x5777ae)[_0x3877e3('0x1d5a')]('QueueCampaignblacklistaddController',_0x11d836)['controller']('QueueCampaigncloneController',_0x128ae7)[_0x3877e3('0x1d5a')]('QueueCampaignHopperBlacksController',_0x47e698)[_0x3877e3('0x1d5a')](_0x3877e3('0x20a0'),_0xa6eeb6)[_0x3877e3('0x1d5a')](_0x3877e3('0x13c3'),_0x43e9c7)['controller']('QueueCampaignHoppersController',_0x44ce76)[_0x3877e3('0x1d5a')](_0x3877e3('0x10dc'),_0x22e53a)[_0x3877e3('0x1d5a')](_0x3877e3('0x9fe'),_0x19ca9d)['controller'](_0x3877e3('0xf05'),_0x50052b)[_0x3877e3('0x1d5a')](_0x3877e3('0x2253'),_0x1348ff)['controller']('QueueCampaignteamaddController',_0x406943)[_0x3877e3('0x1d5a')](_0x3877e3('0xcfd'),_0x1903d2)[_0x3877e3('0x1d5a')](_0x3877e3('0x1cb'),_0x1a9cda);const _0x269ac5=_0x398308['p']+_0x3877e3('0x90d');_0x495824[_0x3877e3('0x1a81')]=['info','license',_0x3877e3('0xccd')];function _0x495824(_0x5a8e78,_0x50c6a8,_0x36242a){var _0x4d3ee3=_0x3877e3,_0x302f9b=this;_0x302f9b[_0x4d3ee3('0x390')]=_0x36242a[_0x4d3ee3('0x390')],_0x302f9b[_0x4d3ee3('0x231c')]=_0x5a8e78,_0x302f9b[_0x4d3ee3('0x2ff')]=_0x50c6a8;}const _0x348985=_0x495824;_0x202850[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c')];function _0x202850(_0x53beb6){var _0x35d9a1=_0x3877e3;_0x53beb6[_0x35d9a1('0x27e')](_0x35d9a1('0x1a45'),{'url':_0x35d9a1('0x10de'),'views':{'content@app':{'templateUrl':_0x269ac5,'controller':_0x35d9a1('0x3a8')}},'resolve':{'info':['apiResolver',function _0x284025(_0x379e28){var _0xdb9c5f=_0x35d9a1;return _0x379e28[_0xdb9c5f('0x8ac')](_0xdb9c5f('0x95d'));}]},'authenticate':!![],'permissionId':0x640,'bodyClass':_0x35d9a1('0x1361')});}angular[_0x3877e3('0x20d5')](_0x3877e3('0x1a45'),[])['config'](_0x202850)[_0x3877e3('0x1d5a')](_0x3877e3('0x2050'),_0x348985),_0x204a33[_0x3877e3('0x1a81')]=['$stateProvider',_0x3877e3('0x972')];function _0x204a33(_0xf132bf,_0x10cc1f){var _0xd4db77=_0x3877e3;_0xf132bf[_0xd4db77('0x27e')]('app.help',{'abstract':!![],'url':_0xd4db77('0x186')}),_0x10cc1f[_0xd4db77('0x20ab')]('app/main/apps/help');}angular[_0x3877e3('0x20d5')]('app.help',[_0x3877e3('0x240c'),_0x3877e3('0x1b0'),_0x3877e3('0xca'),'flow',_0x3877e3('0x2437'),_0x3877e3('0x25c7'),_0x3877e3('0x1182'),_0x3877e3('0x264a'),_0x3877e3('0x19'),'mdPickers',_0x3877e3('0xc90'),_0x3877e3('0x56d'),_0x3877e3('0xe2f'),_0x3877e3('0x10c'),_0x3877e3('0xf61'),'ngEmbed',_0x3877e3('0x25a2'),_0x3877e3('0x27ba'),'chart.js',_0x3877e3('0x1c54'),'app.help.about'])['config'](_0x204a33);const _0x142674=_0x398308['p']+_0x3877e3('0x2433'),_0x3b771f=_0x398308['p']+'src/js/modules/main/apps/jscripty/views/projects/edit/view.html/view-[chunkhash].html';_0xc66e35[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$state',_0x3877e3('0x14c7'),'$mdDialog','$q','$translate',_0x3877e3('0x1908'),_0x3877e3('0xc0f'),_0x3877e3('0xbf8'),'api',_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0xc66e35(_0x87640a,_0x29172c,_0x340176,_0x1f3999,_0x2e675d,_0x394911,_0x431dcd,_0x3db00b,_0x987ca0,_0x4e51af,_0x472915,_0x4ad30b,_0x246248,_0x146180){var _0x194091=_0x3877e3,_0x25dc10=this;_0x25dc10[_0x194091('0x123f')]=_0x472915[_0x194091('0x15ed')](),_0x25dc10['errors']=[],_0x25dc10[_0x194091('0x21e')]=_0x246248,_0x25dc10['license']=_0x4ad30b,_0x25dc10[_0x194091('0x5ed')]=_0x146180,_0x25dc10['hasModulePermissions']={},_0x25dc10['passwordPattern']=_0x25dc10[_0x194091('0x21e')]&&_0x25dc10[_0x194091('0x21e')][_0x194091('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x25dc10[_0x194091('0x4b4')]=_0x194091('0x1315'),_0x25dc10['project']=angular[_0x194091('0xd75')](_0x987ca0),_0x25dc10[_0x194091('0xc0f')]=_0x3db00b,_0x25dc10[_0x194091('0x1340')]=![];!_0x25dc10[_0x194091('0xbf8')]&&(_0x25dc10[_0x194091('0xbf8')]={'enableUncompleteSave':!![],'sendUnpauseOnSubmit':!![]},_0x25dc10[_0x194091('0x4b4')]=_0x194091('0x1ead'),_0x25dc10[_0x194091('0x1340')]=!![]);_0x25dc10[_0x194091('0x1188')]=_0xc999c0,_0x25dc10[_0x194091('0x1a58')]=_0x31ae71,_0x25dc10[_0x194091('0x1379')]=_0x2cea4e,_0x25dc10[_0x194091('0x279')]=_0x15cec6,_0x25dc10[_0x194091('0x167')]=_0x5b10bc;function _0xc999c0(){var _0x494c9c=_0x194091;_0x25dc10[_0x494c9c('0x1a69')]=[],_0x4e51af['jscriptyProject'][_0x494c9c('0x186f')](_0x25dc10[_0x494c9c('0xbf8')])[_0x494c9c('0x1376')][_0x494c9c('0x21ad')](function(_0x272b94){var _0x2c2041=_0x494c9c;_0x25dc10['projects'][_0x2c2041('0xd0c')](_0x272b94['toJSON']()),_0x431dcd[_0x2c2041('0xdb1')]({'title':_0x2c2041('0x1409'),'msg':_0x25dc10['project'][_0x2c2041('0x19fe')]?_0x25dc10[_0x2c2041('0xbf8')][_0x2c2041('0x19fe')]+_0x2c2041('0x1694'):''}),_0x5b10bc(_0x272b94);})['catch'](function(_0x292830){var _0x14da14=_0x494c9c;if(_0x292830[_0x14da14('0x11c2')]&&_0x292830[_0x14da14('0x11c2')]['errors']&&_0x292830['data']['errors'][_0x14da14('0x577')]){_0x25dc10[_0x14da14('0x1a69')]=_0x292830[_0x14da14('0x11c2')][_0x14da14('0x1a69')]||[{'message':_0x292830[_0x14da14('0x174f')](),'type':_0x14da14('0x3c1')}];for(var _0x39a336=0x0;_0x39a336<_0x292830['data'][_0x14da14('0x1a69')]['length'];_0x39a336+=0x1){_0x431dcd[_0x14da14('0x2092')]({'title':_0x292830[_0x14da14('0x11c2')][_0x14da14('0x1a69')][_0x39a336]['type'],'msg':_0x292830[_0x14da14('0x11c2')]['errors'][_0x39a336][_0x14da14('0x1224')]});}}else _0x431dcd[_0x14da14('0x2092')]({'title':_0x292830[_0x14da14('0x209')]?_0x14da14('0x22d')+_0x292830[_0x14da14('0x209')]+_0x14da14('0xa99')+_0x292830[_0x14da14('0x1808')]:_0x14da14('0x3c1'),'msg':_0x292830[_0x14da14('0x11c2')]?JSON[_0x14da14('0x25e')](_0x292830[_0x14da14('0x11c2')][_0x14da14('0x1224')]):_0x292830[_0x14da14('0x174f')]()});});}function _0x31ae71(){var _0x11276a=_0x194091;_0x25dc10['errors']=[],_0x4e51af[_0x11276a('0xe61')][_0x11276a('0x5ef')]({'id':_0x25dc10[_0x11276a('0xbf8')]['id']},_0x25dc10[_0x11276a('0xbf8')])['$promise'][_0x11276a('0x21ad')](function(_0x1c17ca){var _0x44e56a=_0x11276a,_0xcdff44=_0x86640f()['find'](_0x25dc10[_0x44e56a('0xc0f')],{'id':_0x1c17ca['id']});_0xcdff44&&_0x86640f()[_0x44e56a('0xd0e')](_0xcdff44,_0x86640f()[_0x44e56a('0xc50')](_0x1c17ca[_0x44e56a('0x3bc')](),_0x86640f()[_0x44e56a('0x223b')](_0xcdff44))),_0x431dcd[_0x44e56a('0xdb1')]({'title':'Project\x20properly\x20saved!','msg':_0x25dc10['project'][_0x44e56a('0x19fe')]?_0x25dc10[_0x44e56a('0xbf8')][_0x44e56a('0x19fe')]+_0x44e56a('0x2249'):''}),_0x5b10bc(_0x1c17ca);})['catch'](function(_0xe74da4){var _0x2b5d91=_0x11276a;if(_0xe74da4[_0x2b5d91('0x11c2')]&&_0xe74da4['data'][_0x2b5d91('0x1a69')]&&_0xe74da4[_0x2b5d91('0x11c2')][_0x2b5d91('0x1a69')][_0x2b5d91('0x577')]){_0x25dc10[_0x2b5d91('0x1a69')]=_0xe74da4['data'][_0x2b5d91('0x1a69')]||[{'message':_0xe74da4['toString'](),'type':'api.jscriptyProject.update'}];for(var _0x9f5a41=0x0;_0x9f5a41<_0xe74da4[_0x2b5d91('0x11c2')][_0x2b5d91('0x1a69')]['length'];_0x9f5a41++){_0x431dcd[_0x2b5d91('0x2092')]({'title':_0xe74da4[_0x2b5d91('0x11c2')][_0x2b5d91('0x1a69')][_0x9f5a41]['type'],'msg':_0xe74da4[_0x2b5d91('0x11c2')]['errors'][_0x9f5a41][_0x2b5d91('0x1224')]});}}else _0x431dcd[_0x2b5d91('0x2092')]({'title':_0xe74da4['status']?'API:'+_0xe74da4[_0x2b5d91('0x209')]+_0x2b5d91('0xa99')+_0xe74da4[_0x2b5d91('0x1808')]:_0x2b5d91('0x1657'),'msg':_0xe74da4[_0x2b5d91('0x11c2')]?JSON[_0x2b5d91('0x25e')](_0xe74da4[_0x2b5d91('0x11c2')]['message']):_0xe74da4[_0x2b5d91('0x174f')]()});});}function _0x2cea4e(_0xd50a7e){var _0x3ca0d0=_0x194091;_0x25dc10[_0x3ca0d0('0x1a69')]=[];var _0x15c765=_0x1f3999[_0x3ca0d0('0xa33')]()[_0x3ca0d0('0x4b4')]('Are\x20you\x20sure?')[_0x3ca0d0('0x13fb')]('The\x20project\x20will\x20be\x20deleted.')[_0x3ca0d0('0x7a7')](_0x3ca0d0('0x283f'))['ok'](_0x3ca0d0('0xbfd'))[_0x3ca0d0('0x3b5')](_0x3ca0d0('0x1f40'))[_0x3ca0d0('0x1e6d')](_0xd50a7e);_0x1f3999[_0x3ca0d0('0x853')](_0x15c765)[_0x3ca0d0('0x21ad')](function(){var _0x126597=_0x3ca0d0;_0x4e51af['jscriptyProject'][_0x126597('0x1164')]({'id':_0x25dc10[_0x126597('0xbf8')]['id']})['$promise']['then'](function(){var _0x2bc32c=_0x126597;_0x86640f()[_0x2bc32c('0x16a2')](_0x25dc10[_0x2bc32c('0xc0f')],{'id':_0x25dc10[_0x2bc32c('0xbf8')]['id']}),_0x431dcd[_0x2bc32c('0xdb1')]({'title':_0x2bc32c('0x99d'),'msg':(_0x25dc10[_0x2bc32c('0xbf8')][_0x2bc32c('0x19fe')]||_0x2bc32c('0xbf8'))+_0x2bc32c('0xb4a')}),_0x5b10bc(_0x25dc10[_0x2bc32c('0xbf8')]);})[_0x126597('0x1c1d')](function(_0x3fb29d){var _0x44c080=_0x126597;if(_0x3fb29d[_0x44c080('0x11c2')]&&_0x3fb29d[_0x44c080('0x11c2')][_0x44c080('0x1a69')]&&_0x3fb29d[_0x44c080('0x11c2')][_0x44c080('0x1a69')]['length']){_0x25dc10['errors']=_0x3fb29d[_0x44c080('0x11c2')][_0x44c080('0x1a69')]||[{'message':_0x3fb29d[_0x44c080('0x174f')](),'type':_0x44c080('0x183c')}];for(var _0x40bb2a=0x0;_0x40bb2a<_0x3fb29d[_0x44c080('0x11c2')][_0x44c080('0x1a69')][_0x44c080('0x577')];_0x40bb2a++){_0x431dcd['error']({'title':_0x3fb29d[_0x44c080('0x11c2')][_0x44c080('0x1a69')][_0x40bb2a]['type'],'msg':_0x3fb29d[_0x44c080('0x11c2')][_0x44c080('0x1a69')][_0x40bb2a][_0x44c080('0x1224')]});}}else _0x431dcd[_0x44c080('0x2092')]({'title':_0x3fb29d[_0x44c080('0x209')]?'API:'+_0x3fb29d[_0x44c080('0x209')]+'\x20-\x20'+_0x3fb29d[_0x44c080('0x1808')]:_0x44c080('0x183c'),'msg':_0x3fb29d['data']?JSON[_0x44c080('0x25e')](_0x3fb29d[_0x44c080('0x11c2')][_0x44c080('0x1224')]):_0x3fb29d[_0x44c080('0x1224')]||_0x3fb29d['toString']()});});},function(){});}function _0x15cec6(_0x58741e){return _0x58741e===null?undefined:new Date(_0x58741e);}function _0x5b10bc(_0x30ddf9){var _0x33b413=_0x194091;_0x1f3999[_0x33b413('0x1c24')](_0x30ddf9);}}const _0x3ea223=_0xc66e35;_0x562bdd['$inject']=[_0x3877e3('0x1850'),_0x3877e3('0x243f'),'$window','api','toasty',_0x3877e3('0x23e7')];function _0x562bdd(_0x37ee05,_0x1eaa6c,_0x378648,_0x39a969,_0x564fb1,_0x16dadb){var _0xc26569=_0x3877e3,_0x1c7977=this;_0x1c7977[_0xc26569('0xbf8')]={},_0x1c7977[_0xc26569('0x1a9d')]=_0x16dadb;var _0x345245=new Date();_0x345245[_0xc26569('0xb0f')](0x0,0x0,0x0,0x0),_0x1c7977[_0xc26569('0x1fd2')]={'dateStart':new Date(_0x345245[_0xc26569('0x14bb')](),_0x345245[_0xc26569('0x40c')](),0x1),'dateEnd':new Date(_0x345245['getFullYear'](),_0x345245['getMonth']()+0x1,0x0),'selectedTemplate':'TM'},_0x1c7977['init']=_0x27cffe,_0x1c7977[_0xc26569('0x8bf')]=_0x579f34,_0x1c7977[_0xc26569('0x1250')]=_0x22ed1d;function _0x22ed1d(){var _0x4caad2=_0xc26569;return _0x1c7977[_0x4caad2('0x507')]=![],_0x39a969[_0x4caad2('0xe61')][_0x4caad2('0x1250')]({'id':_0x1c7977['project']['id'],'sort':'-createdAt,questionId','createdAt':{'$gte':_0x1088bc()(_0x1c7977[_0x4caad2('0x1fd2')][_0x4caad2('0x1dda')])[_0x4caad2('0x1842')](0x0,'hours')[_0x4caad2('0x1842')](0x0,'minutes')[_0x4caad2('0x1842')](0x0,_0x4caad2('0x22ac'))[_0x4caad2('0x215e')](0x0,!![])['format'](),'$lte':_0x1088bc()(_0x1c7977[_0x4caad2('0x1fd2')][_0x4caad2('0x1cc9')])['add'](0x17,_0x4caad2('0x2274'))[_0x4caad2('0x1842')](0x3b,_0x4caad2('0x1d2d'))[_0x4caad2('0x1842')](0x3b,_0x4caad2('0x22ac'))[_0x4caad2('0x215e')](0x0,!![])[_0x4caad2('0x153')]()},'nolimit':!![]})[_0x4caad2('0x1376')][_0x4caad2('0x21ad')](function(_0x14047c){var _0x3cb835=_0x4caad2;if(_0x14047c&&_0x14047c[_0x3cb835('0x1b33')]&&typeof _0x14047c[_0x3cb835('0x205f')]!==_0x3cb835('0xddc')){_0x1c7977['answers']={};for(var _0x13d9e6=0x0,_0x36c787=_0x14047c[_0x3cb835('0x205f')];_0x13d9e6<_0x36c787;_0x13d9e6++){_0x14047c[_0x3cb835('0x1b33')][_0x13d9e6][_0x3cb835('0x1cf7')]&&(_0x1c7977[_0x3cb835('0x507')]=!![],typeof _0x1c7977[_0x3cb835('0x13c4')][_0x14047c['rows'][_0x13d9e6][_0x3cb835('0x1cf7')]]===_0x3cb835('0xddc')&&(_0x1c7977[_0x3cb835('0x13c4')][_0x14047c['rows'][_0x13d9e6][_0x3cb835('0x1cf7')]]={'question':_0x14047c['rows'][_0x13d9e6][_0x3cb835('0x1779')],'answers':{},'sum':0x0}),_0x14047c[_0x3cb835('0x1b33')][_0x13d9e6]['answer']===''&&(_0x14047c['rows'][_0x13d9e6][_0x3cb835('0x1446')]=_0x3cb835('0x15eb')),_0x1c7977['answers'][_0x14047c[_0x3cb835('0x1b33')][_0x13d9e6]['questionId']][_0x3cb835('0x13c4')][_0x14047c[_0x3cb835('0x1b33')][_0x13d9e6]['answer']]?_0x1c7977[_0x3cb835('0x13c4')][_0x14047c[_0x3cb835('0x1b33')][_0x13d9e6][_0x3cb835('0x1cf7')]][_0x3cb835('0x13c4')][_0x14047c[_0x3cb835('0x1b33')][_0x13d9e6][_0x3cb835('0x1446')]]+=0x1:_0x1c7977[_0x3cb835('0x13c4')][_0x14047c['rows'][_0x13d9e6][_0x3cb835('0x1cf7')]][_0x3cb835('0x13c4')][_0x14047c[_0x3cb835('0x1b33')][_0x13d9e6][_0x3cb835('0x1446')]]=0x1,_0x1c7977['answers'][_0x14047c[_0x3cb835('0x1b33')][_0x13d9e6][_0x3cb835('0x1cf7')]][_0x3cb835('0x75a')]+=0x1);}}})[_0x4caad2('0x1c1d')](function(_0x268f1f){var _0x2d20a0=_0x4caad2;_0x564fb1[_0x2d20a0('0x2092')]({'title':_0x268f1f['status']?_0x2d20a0('0x22d')+_0x268f1f[_0x2d20a0('0x209')]+_0x2d20a0('0xa99')+_0x268f1f['statusText']:_0x2d20a0('0x245f'),'msg':_0x268f1f[_0x2d20a0('0x11c2')]?JSON[_0x2d20a0('0x25e')](_0x268f1f['data']):_0x268f1f['toString']()});});}function _0x27cffe(_0x1b7642){_0x1c7977['project']=_0x1b7642,_0x1c7977['getAnswers']();}function _0x579f34(){var _0xe019db=_0xc26569;return _0x39a969[_0xe019db('0xe61')][_0xe019db('0x8bf')]({'id':_0x1c7977[_0xe019db('0xbf8')]['id'],'startTime':{'$gte':_0x1c7977['pickerModel']['dateStart'],'$lte':_0x1088bc()(_0x1c7977[_0xe019db('0x1fd2')][_0xe019db('0x1cc9')])['add'](0x17,_0xe019db('0x2274'))[_0xe019db('0x1842')](0x3b,_0xe019db('0x1d2d'))[_0xe019db('0x1842')](0x3b,_0xe019db('0x22ac'))[_0xe019db('0x153')]()},'nolimit':!![]})[_0xe019db('0x1376')][_0xe019db('0x21ad')](function(_0x5a96ae){var _0xe7ef34=_0xe019db;if(typeof _0x5a96ae[_0xe7ef34('0x577')]!=='undefined'){var _0x3f5ef1=[_0x5a96ae[_0xe7ef34('0x3da')]],_0x49db6b=new Blob(_0x3f5ef1,{'type':_0x5a96ae[_0xe7ef34('0x7fa')]}),_0x55017a=window[_0xe7ef34('0x27c3')][_0xe7ef34('0x162e')]('a');_0x55017a[_0xe7ef34('0x127a')](_0xe7ef34('0x69e'),URL['createObjectURL'](_0x49db6b)),_0x55017a[_0xe7ef34('0x127a')](_0xe7ef34('0xb0'),_0xe7ef34('0x925')+_0x1c7977[_0xe7ef34('0xbf8')]['id']+_0xe7ef34('0x4b9')),_0x55017a[_0xe7ef34('0x997')]();}else _0x564fb1['info']({'title':'EXPORT','msg':'No\x20answers\x20available'});})[_0xe019db('0x1c1d')](function(_0x342a21){var _0x386035=_0xe019db;_0x564fb1[_0x386035('0x2092')]({'title':_0x342a21[_0x386035('0x209')]?'API:'+_0x342a21[_0x386035('0x209')]+'\x20-\x20'+_0x342a21[_0x386035('0x1808')]:'api.jscriptyProject.getSummary','msg':_0x342a21[_0x386035('0x11c2')]?JSON['stringify'](_0x342a21['data']):_0x342a21[_0x386035('0x174f')]()});});}}const _0x5b140f=_0x562bdd;;function _0x333fe5(){var _0x363db7=_0x3877e3,_0x4f0d6d=this;_0x4f0d6d[_0x363db7('0xbf8')]={},_0x4f0d6d[_0x363db7('0x8be')]={'questionTypes':['text','textarea',_0x363db7('0x2791'),_0x363db7('0x274e'),_0x363db7('0x2844'),'number',_0x363db7('0x2457'),_0x363db7('0x7a0'),_0x363db7('0x2822'),_0x363db7('0xa53'),'url'],'elementTypes':[_0x363db7('0x1779'),_0x363db7('0xf30')]},_0x4f0d6d[_0x363db7('0x1d75')]=_0x5db667,_0x4f0d6d[_0x363db7('0x179d')]=_0x17cd10;function _0x17cd10(_0xa24fa5){if(_0x86640f()['isNil'](_0xa24fa5))return![];try{JSON['parse'](_0xa24fa5);}catch(_0x5f3e40){return![];}return!![];}function _0x5db667(_0x1fed98){var _0x1ce708=_0x363db7;_0x4f0d6d[_0x1ce708('0xbf8')]=_0x1fed98;if(_0x86640f()[_0x1ce708('0x1370')](_0x1fed98[_0x1ce708('0x244a')]))_0x4f0d6d[_0x1ce708('0xbf8')][_0x1ce708('0x244a')]=_0x1fed98[_0x1ce708('0x244a')];else _0x4f0d6d[_0x1ce708('0x179d')](_0x1fed98[_0x1ce708('0x244a')])?_0x4f0d6d[_0x1ce708('0xbf8')]['formData']=JSON[_0x1ce708('0x399')](_0x1fed98[_0x1ce708('0x244a')]):_0x4f0d6d[_0x1ce708('0xbf8')][_0x1ce708('0x244a')]={};}}const _0x4a82b2=_0x333fe5;_0x682942[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),_0x3877e3('0xa9f'),'toasty',_0x3877e3('0xccd'),_0x3877e3('0xbf8'),_0x3877e3('0xc0f'),_0x3877e3('0x13c1')];function _0x682942(_0x492a4f,_0x3ea241,_0x147519,_0x407a29,_0x17ea69,_0x55eede,_0x2a78d7){var _0x451768=_0x3877e3,_0x4067a0=this;_0x4067a0[_0x451768('0x1340')]=!![],_0x4067a0[_0x451768('0xbf8')]=angular[_0x451768('0xd75')](_0x17ea69),_0x4067a0[_0x451768('0xc0f')]=_0x55eede,_0x4067a0[_0x451768('0x4b4')]=_0x2a78d7[_0x451768('0x183e')]('JSCRIPTY.CLONE_PROJECT');_0x17ea69&&_0x17ea69[_0x451768('0x19fe')]&&(_0x4067a0['title']+=':\x20'+_0x17ea69[_0x451768('0x19fe')]);_0x4067a0[_0x451768('0x1857')]=_0x1f83c4,_0x4067a0[_0x451768('0x167')]=_0x3f56c6;function _0x1f83c4(){var _0x468572=_0x451768;return _0x407a29[_0x468572('0xe61')][_0x468572('0x1af0')]({'id':_0x17ea69['id']},_0x4067a0[_0x468572('0xbf8')])[_0x468572('0x1376')][_0x468572('0x21ad')](function(_0x1dd25a){var _0x5a52f3=_0x468572;_0x4067a0[_0x5a52f3('0xc0f')]['unshift'](_0x1dd25a[_0x5a52f3('0x3bc')]()),_0x147519[_0x5a52f3('0xdb1')]({'title':_0x5a52f3('0x22ca'),'msg':_0x4067a0[_0x5a52f3('0xbf8')][_0x5a52f3('0x19fe')]?_0x4067a0[_0x5a52f3('0xbf8')]['name']+'\x20has\x20been\x20cloned!':''}),_0x3ea241['go'](_0x5a52f3('0x1d4b'),{'id':_0x1dd25a['id']}),_0x3f56c6(_0x1dd25a);})[_0x468572('0x1c1d')](function(_0x5e8b83){var _0x401af9=_0x468572;if(_0x5e8b83[_0x401af9('0x11c2')]&&_0x5e8b83[_0x401af9('0x11c2')][_0x401af9('0x1a69')]&&_0x5e8b83[_0x401af9('0x11c2')][_0x401af9('0x1a69')][_0x401af9('0x577')]){_0x4067a0[_0x401af9('0x1a69')]=_0x5e8b83[_0x401af9('0x11c2')][_0x401af9('0x1a69')]||[{'message':_0x5e8b83[_0x401af9('0x174f')](),'type':_0x401af9('0x4f5')}];for(var _0x1df91e=0x0;_0x1df91e<_0x5e8b83[_0x401af9('0x11c2')]['errors'][_0x401af9('0x577')];_0x1df91e+=0x1){_0x147519[_0x401af9('0x2092')]({'title':_0x5e8b83[_0x401af9('0x11c2')][_0x401af9('0x1a69')][_0x1df91e][_0x401af9('0x7fa')],'msg':_0x5e8b83[_0x401af9('0x11c2')][_0x401af9('0x1a69')][_0x1df91e]['message']});}}else _0x147519[_0x401af9('0x2092')]({'title':_0x5e8b83[_0x401af9('0x209')]?'API:'+_0x5e8b83[_0x401af9('0x209')]+'\x20-\x20'+_0x5e8b83['statusText']:_0x401af9('0x4f5'),'msg':_0x5e8b83['data']?JSON[_0x401af9('0x25e')](_0x5e8b83[_0x401af9('0x11c2')][_0x401af9('0x1224')]):_0x5e8b83['toString']()});});}function _0x3f56c6(_0xd4baf2){var _0x4b3465=_0x451768;_0x492a4f[_0x4b3465('0x1c24')](_0xd4baf2);}}const _0x57f4cf=_0x682942;_0x549425[_0x3877e3('0x1a81')]=['$q',_0x3877e3('0x1850'),'$scope'];function _0x549425(_0x25a18c,_0x45b903,_0x5a1c59){var _0x5b96de=_0x3877e3,_0x4d57f0=this;_0x4d57f0[_0x5b96de('0xbf8')]={},_0x4d57f0['responseData']={},_0x4d57f0['formViewer']={},_0x4d57f0[_0x5b96de('0x1d75')]=_0x1b997d,_0x4d57f0[_0x5b96de('0x7b0')]=_0x5c6da0,_0x4d57f0['resetViewer']=_0x1dea75;function _0x1b997d(_0x43e8ff){var _0x4801c5=_0x5b96de;_0x4d57f0[_0x4801c5('0xbf8')]=_0x43e8ff,_0x5a1c59[_0x4801c5('0x1723')](_0x4801c5('0x12ba'),function(_0x14aa9e,_0x53534a){var _0xc9de31=_0x4801c5;if(_0x53534a['currentPage']&&_0x4d57f0[_0xc9de31('0xbf8')]['formData']&&_0x4d57f0[_0xc9de31('0xbf8')][_0xc9de31('0x244a')][_0xc9de31('0x281c')])for(var _0x2688f3=0x0,_0x1cb3a4=_0x4d57f0[_0xc9de31('0xbf8')]['formData'][_0xc9de31('0x281c')][_0xc9de31('0x577')];_0x2688f3<_0x1cb3a4;_0x2688f3++){if(_0x53534a['currentPage'][_0xc9de31('0xed8')]<_0x2688f3+0x1&&_0x4d57f0['project'][_0xc9de31('0x244a')][_0xc9de31('0x281c')][_0x2688f3]['elements'])for(var _0x2fb4bd=0x0,_0x583f66=_0x4d57f0[_0xc9de31('0xbf8')]['formData']['pages'][_0x2688f3]['elements'][_0xc9de31('0x577')];_0x2fb4bd<_0x583f66;_0x2fb4bd++){_0x4d57f0[_0xc9de31('0xbf8')][_0xc9de31('0x244a')][_0xc9de31('0x281c')][_0x2688f3][_0xc9de31('0x5c3')][_0x2fb4bd][_0xc9de31('0x7fa')]===_0xc9de31('0x1779')&&_0x4d57f0['project']['formData']['pages'][_0x2688f3]['elements'][_0x2fb4bd][_0xc9de31('0x1779')]&&delete _0x4d57f0[_0xc9de31('0xc78')][_0x4d57f0[_0xc9de31('0xbf8')][_0xc9de31('0x244a')][_0xc9de31('0x281c')][_0x2688f3][_0xc9de31('0x5c3')][_0x2fb4bd][_0xc9de31('0x1779')]['id']];}}});}function _0x5c6da0(_0x486030){var _0x446820=_0x5b96de,_0x4b83e3=_0x25a18c[_0x446820('0xca9')](),_0x27e6f6=_0x45b903[_0x446820('0xa33')]()[_0x446820('0x4b4')](_0x446820('0x10b2'))[_0x446820('0x226d')]('')['ariaLabel'](_0x446820('0x1ce8'))[_0x446820('0x1e6d')](_0x486030)['ok']('SAVE')[_0x446820('0x3b5')](_0x446820('0x284b'));return _0x45b903[_0x446820('0x853')](_0x27e6f6)[_0x446820('0x21ad')](function(){var _0x58247d=_0x446820;_0x4b83e3[_0x58247d('0x8ac')](!![]);},function(){var _0x3cd2cb=_0x446820;_0x4b83e3[_0x3cd2cb('0x37a')]();}),_0x4b83e3[_0x446820('0x71b')];}function _0x1dea75(){var _0x3b7c3d=_0x5b96de;_0x4d57f0[_0x3b7c3d('0x2729')][_0x3b7c3d('0x21a8')]&&_0x4d57f0[_0x3b7c3d('0x2729')]['reset']();}}const _0x1097d3=_0x549425,_0x318a46=_0x398308['p']+_0x3877e3('0x12ad');_0x310299['$inject']=[_0x3877e3('0x26'),_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x2313'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),'toasty','api',_0x3877e3('0x15bc')];function _0x310299(_0x19444e,_0x434724,_0x7dd12b,_0x46103f,_0x40cf41,_0x4d3bf4,_0x71474a,_0x3397a0,_0x59f5e0,_0x10ecf8,_0x3d75c7){var _0x586b2f=_0x3877e3,_0x44a40e=this;_0x44a40e[_0x586b2f('0x123f')]=_0x3d75c7['getCurrentUser'](),_0x44a40e[_0x586b2f('0xbf8')]={},_0x44a40e[_0x586b2f('0x14df')]={'count':0x0,'rows':[]},_0x44a40e[_0x586b2f('0x4f2')]=[],_0x44a40e[_0x586b2f('0x5ed')],_0x44a40e['query']={'fields':_0x586b2f('0x171a'),'sort':_0x586b2f('0x1655'),'limit':0xa,'page':0x1},_0x44a40e[_0x586b2f('0x1d75')]=_0x2e3a7f,_0x44a40e[_0x586b2f('0x15dc')]=_0x12b214,_0x44a40e['success']=_0x5eb8ef,_0x44a40e[_0x586b2f('0x1217')]=_0x1c13ae,_0x44a40e[_0x586b2f('0xd89')]=_0x45ca76,_0x44a40e[_0x586b2f('0x14e1')]=_0x518636,_0x44a40e[_0x586b2f('0x13bf')]=_0x5dfda3,_0x44a40e['deleteProjectSession']=_0x7a3e79,_0x44a40e[_0x586b2f('0x21f7')]=_0x36c960;function _0x2e3a7f(_0x21bf79,_0xbc3080){var _0x2ab270=_0x586b2f;_0x44a40e['project']=_0x21bf79,_0x44a40e[_0x2ab270('0x5ed')]=typeof _0xbc3080!=='undefined'?_0xbc3080:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x44a40e[_0x2ab270('0x77')]['id']=_0x44a40e[_0x2ab270('0xbf8')]['id'],_0x1c13ae();}function _0x12b214(_0xd996df,_0x293d23){var _0x1647da=_0x586b2f,_0xd0e51f=_0x71474a['confirm']()[_0x1647da('0x4b4')](_0x1647da('0x1bf4'))[_0x1647da('0x276b')](_0x1647da('0x622')+(_0xd996df['name']||_0xd996df['id']&&_0x86640f()[_0x1647da('0x22e')](_0x1647da('0x32'))+_0xd996df['id']||'session')+_0x1647da('0x2135')+_0x1647da('0x25e0'))['ariaLabel'](_0x1647da('0x1568'))[_0x1647da('0x1e6d')](_0x293d23)['ok']('OK')[_0x1647da('0x3b5')](_0x1647da('0x284b'));_0x71474a[_0x1647da('0x853')](_0xd0e51f)['then'](function(){_0x7a3e79(_0xd996df);},function(){var _0x5d832e=_0x1647da;console[_0x5d832e('0x6fb')](_0x5d832e('0x284b'));});}function _0x5eb8ef(_0x2d43cf){var _0x1a0760=_0x586b2f;_0x44a40e[_0x1a0760('0x14df')]=_0x2d43cf||{'count':0x0,'rows':[]};}function _0x1c13ae(){var _0x3e87ca=_0x586b2f;_0x44a40e['query'][_0x3e87ca('0x15a5')]=(_0x44a40e['query'][_0x3e87ca('0x2376')]-0x1)*_0x44a40e[_0x3e87ca('0x77')][_0x3e87ca('0x1f4a')],_0x44a40e[_0x3e87ca('0x71b')]=_0x10ecf8[_0x3e87ca('0xe61')]['getSessions'](_0x44a40e['query'],_0x5eb8ef)[_0x3e87ca('0x1376')];}function _0x45ca76(_0x484dc6,_0x8f4b51){var _0x3e9742=_0x586b2f;_0x71474a['show']({'controller':_0x3e9742('0x1052'),'controllerAs':'vm','templateUrl':_0x318a46,'parent':angular[_0x3e9742('0x1676')](_0x3397a0[_0x3e9742('0x2452')]),'targetEvent':_0x484dc6,'clickOutsideToClose':!![],'locals':{'project':_0x44a40e[_0x3e9742('0xbf8')],'session':_0x8f4b51,'sessions':_0x44a40e[_0x3e9742('0x14df')][_0x3e9742('0x1b33')],'license':null,'setting':null,'crudPermissions':_0x44a40e['crudPermissions']}});}function _0x518636(_0xeda583,_0x328fe9){var _0x47b601=_0x586b2f;_0x71474a[_0x47b601('0x853')]({'controller':_0x47b601('0xcc6'),'controllerAs':'vm','templateUrl':_0x318a46,'parent':angular['element'](_0x3397a0[_0x47b601('0x2452')]),'targetEvent':_0xeda583,'clickOutsideToClose':!![],'resolve':{'questions':[_0x47b601('0x354'),function _0x2f7b11(_0x48ae2e){var _0xcc6f12=_0x47b601;return _0x48ae2e[_0xcc6f12('0x8ac')]('jscriptySessionReport@getQuestions',{'fields':_0xcc6f12('0xe0b'),'sort':'id','id':_0x328fe9['id']});}]},'locals':{'project':_0x44a40e['project'],'session':_0x328fe9}});}function _0x7a3e79(_0x108ab0){var _0xae19be=_0x586b2f;_0x10ecf8[_0xae19be('0x1ca9')][_0xae19be('0x1164')]({'id':_0x108ab0['id']})[_0xae19be('0x1376')][_0xae19be('0x21ad')](function(){var _0x2c6c84=_0xae19be;_0x86640f()[_0x2c6c84('0x16a2')](_0x44a40e[_0x2c6c84('0x14df')]['rows'],{'id':_0x108ab0['id']}),_0x44a40e[_0x2c6c84('0x14df')]['count']-=0x1,!_0x44a40e['projectSessions']['rows'][_0x2c6c84('0x577')]&&_0x1c13ae(),_0x59f5e0[_0x2c6c84('0xdb1')]({'title':'Session\x20deleted!','msg':_0x108ab0['name']?_0x108ab0[_0x2c6c84('0x19fe')]+_0x2c6c84('0xb4a'):''});})[_0xae19be('0x1c1d')](function(_0x469185){var _0x432765=_0xae19be;if(_0x469185[_0x432765('0x11c2')]&&_0x469185['data'][_0x432765('0x1a69')]&&_0x469185[_0x432765('0x11c2')][_0x432765('0x1a69')]['length']){_0x44a40e['errors']=_0x469185[_0x432765('0x11c2')]['errors']||[{'message':_0x469185[_0x432765('0x174f')](),'type':_0x432765('0x1906')}];for(var _0x767bf9=0x0;_0x767bf9<_0x469185[_0x432765('0x11c2')][_0x432765('0x1a69')][_0x432765('0x577')];_0x767bf9++){_0x59f5e0[_0x432765('0x2092')]({'title':_0x469185[_0x432765('0x11c2')][_0x432765('0x1a69')][_0x767bf9]['type'],'msg':_0x469185[_0x432765('0x11c2')][_0x432765('0x1a69')][_0x767bf9]['message']});}}else _0x59f5e0[_0x432765('0x2092')]({'title':_0x469185[_0x432765('0x209')]?_0x432765('0x22d')+_0x469185[_0x432765('0x209')]+_0x432765('0xa99')+_0x469185[_0x432765('0x1808')]:_0x432765('0x1906'),'msg':_0x469185[_0x432765('0x11c2')]?JSON[_0x432765('0x25e')](_0x469185[_0x432765('0x11c2')][_0x432765('0x1224')]):_0x469185['message']||_0x469185['toString']()});});}function _0x5dfda3(){var _0x2fc062=angular['copy'](_0x44a40e['selectedProjectSessions']);return _0x44a40e['selectedProjectSessions']=[],_0x2fc062;}function _0x36c960(_0x2ccb42){var _0x1c24f6=_0x586b2f,_0xf1d580=_0x71474a[_0x1c24f6('0xa33')]()[_0x1c24f6('0x4b4')](_0x1c24f6('0xd94'))['htmlContent'](''+_0x44a40e[_0x1c24f6('0x4f2')][_0x1c24f6('0x577')]+_0x1c24f6('0xd74')+_0x1c24f6('0x25e0'))[_0x1c24f6('0x7a7')](_0x1c24f6('0x1e46'))[_0x1c24f6('0x1e6d')](_0x2ccb42)['ok']('OK')[_0x1c24f6('0x3b5')](_0x1c24f6('0x284b'));_0x71474a[_0x1c24f6('0x853')](_0xf1d580)[_0x1c24f6('0x21ad')](function(){var _0x23394e=_0x1c24f6;_0x44a40e[_0x23394e('0x4f2')][_0x23394e('0x1a52')](function(_0x2ebeb1){_0x7a3e79(_0x2ebeb1);}),_0x44a40e[_0x23394e('0x4f2')]=[];});}var _0x44e0d3=!![],_0x5a4f6c=0x1;_0x434724[_0x586b2f('0x10e8')](_0x586b2f('0x10ff'),function(_0x4d96b4,_0x475f91){var _0xb5a11f=_0x586b2f;_0x44e0d3?_0x4d3bf4(function(){_0x44e0d3=![];}):(!_0x475f91&&(_0x5a4f6c=_0x44a40e['query'][_0xb5a11f('0x2376')]),_0x4d96b4!==_0x475f91&&(_0x44a40e[_0xb5a11f('0x77')][_0xb5a11f('0x2376')]=0x1),!_0x4d96b4&&(_0x44a40e[_0xb5a11f('0x77')][_0xb5a11f('0x2376')]=_0x5a4f6c),_0x1c13ae());});}const _0x3b8f98=_0x310299;_0x13d53c['$inject']=[_0x3877e3('0x95a'),'$state',_0x3877e3('0x14c7'),_0x3877e3('0x1850'),_0x3877e3('0x1908'),'session',_0x3877e3('0xa49'),_0x3877e3('0xbf8')];function _0x13d53c(_0x44b203,_0x298340,_0x29f5c1,_0x5509e8,_0x4cd1da,_0x328644,_0xd30e70,_0x2ffa0b){var _0x34bf1c=_0x3877e3,_0x5bedb7=this;_0x5bedb7[_0x34bf1c('0x4b4')]=_0x34bf1c('0x2660'),_0x5bedb7[_0x34bf1c('0x262d')]=_0x328644,_0x5bedb7[_0x34bf1c('0xa49')]=_0xd30e70,_0x5bedb7[_0x34bf1c('0xbf8')]=_0x2ffa0b;function _0x53f26f(_0x38ad22){var _0x151368=_0x34bf1c;_0x5509e8[_0x151368('0x1c24')](_0x38ad22);}_0x5bedb7[_0x34bf1c('0x167')]=_0x53f26f;}const _0x2ea716=_0x13d53c,_0x5c0076=_0x398308['p']+_0x3877e3('0x3c0');_0x5bd861['$inject']=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x13c1'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),'Auth',_0x3877e3('0xbf8'),_0x3877e3('0xab4')];function _0x5bd861(_0x221c75,_0x4aff89,_0x2ff076,_0x27a1e4,_0x20a1fc,_0x151aff,_0x23a7ea,_0x4c149b,_0x9ea2f4,_0x12f772,_0x557530,_0x101bde){var _0x520fd1=_0x3877e3,_0x127734=this;_0x127734[_0x520fd1('0x123f')]=_0x12f772['getCurrentUser'](),_0x127734[_0x520fd1('0x2ff')]=_0x151aff,_0x127734[_0x520fd1('0x21e')]=_0x23a7ea,_0x127734[_0x520fd1('0x1432')]=_0x127734[_0x520fd1('0x21e')][_0x520fd1('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x127734[_0x520fd1('0x626')]=_0x4aff89[_0x520fd1('0x1162')]()+_0x520fd1('0x22a9')+_0x4aff89['host'](),_0x127734['project']=_0x557530||_0x221c75['params']['project']||{},_0x127734[_0x520fd1('0xab4')]=_0x101bde&&_0x101bde['count']==0x1?_0x101bde[_0x520fd1('0x1b33')][0x0]:null,_0x127734[_0x520fd1('0x5ed')]=_0x12f772['parseCrudPermissions'](_0x127734['userProfileSection']?_0x127734[_0x520fd1('0xab4')]['crudPermissions']:null),_0x127734[_0x520fd1('0x126a')]={},_0x127734[_0x520fd1('0x302')]=_0x221c75[_0x520fd1('0x171b')][_0x520fd1('0x12e1')]||0x0,_0x127734['clonedialog']=_0x1dc06f,_0x127734['alert']=_0x9ea2f4[_0x520fd1('0x231c')],_0x127734[_0x520fd1('0x23e4')]=_0x5f3f4c,_0x127734[_0x520fd1('0x1a58')]=_0x47010d;function _0x1dc06f(_0x2be3ab,_0x4f045b){var _0xaf881=_0x520fd1;_0x2ff076[_0xaf881('0x853')]({'controller':'ProjectcloneController','controllerAs':'vm','templateUrl':_0x5c0076,'parent':angular[_0xaf881('0x1676')](_0x27a1e4['body']),'targetEvent':_0x4f045b,'clickOutsideToClose':!![],'locals':{'project':_0x2be3ab,'projects':_0x127734[_0xaf881('0xc0f')]?_0x127734[_0xaf881('0xc0f')][_0xaf881('0x1b33')]:[],'crudPermissions':_0x127734[_0xaf881('0x5ed')]}});}function _0x5f3f4c(){var _0x4fce3b=_0x520fd1;_0x221c75['go'](_0x4fce3b('0x8d6'),{},{'reload':_0x4fce3b('0x8d6')});}function _0x47010d(){var _0x1fc573=_0x520fd1;_0x4c149b[_0x1fc573('0xe61')][_0x1fc573('0x5ef')]({'id':_0x127734[_0x1fc573('0xbf8')]['id']},_0x127734[_0x1fc573('0xbf8')])[_0x1fc573('0x1376')][_0x1fc573('0x21ad')](function(){var _0x1cf2ae=_0x1fc573;_0x9ea2f4[_0x1cf2ae('0xdb1')]({'title':'Project\x20updated!','msg':_0x127734[_0x1cf2ae('0xbf8')][_0x1cf2ae('0x19fe')]?_0x127734[_0x1cf2ae('0xbf8')][_0x1cf2ae('0x19fe')]+_0x1cf2ae('0xa8d'):''});})[_0x1fc573('0x1c1d')](function(_0xee9ec7){var _0xcf7144=_0x1fc573;_0x9ea2f4['error']({'title':_0xee9ec7['status']?_0xcf7144('0x22d')+_0xee9ec7[_0xcf7144('0x209')]+'\x20-\x20'+_0xee9ec7[_0xcf7144('0x1808')]:_0xcf7144('0x1906'),'msg':_0xee9ec7[_0xcf7144('0x11c2')]?JSON[_0xcf7144('0x25e')](_0xee9ec7[_0xcf7144('0x11c2')]):_0xee9ec7[_0xcf7144('0x174f')]()});});}}const _0xee3d6b=_0x5bd861,_0x5607b0=_0x398308['p']+'src/js/modules/main/apps/jscripty/views/projects/create/dialog.html/dialog-[chunkhash].html';_0x279a33[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$window',_0x3877e3('0xa9f'),_0x3877e3('0x2828'),'$mdDialog',_0x3877e3('0x243f'),'$timeout',_0x3877e3('0x13c1'),'projects','userProfile','userProfileSection',_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0x279a33(_0x3fc23b,_0x49a38d,_0x57f304,_0x5d0329,_0x3e81a0,_0x51a5f9,_0x450977,_0x5750ab,_0x3404f4,_0x552894,_0x1be01e,_0x2b0ad1,_0x234c73,_0x2a66ac,_0x3519ee,_0x3d08e0,_0x582adf){var _0x5af7ee=_0x3877e3,_0x3b3e0c=this;_0x3b3e0c[_0x5af7ee('0x2ff')]=_0x3d08e0,_0x3b3e0c['setting']=_0x582adf,_0x3b3e0c[_0x5af7ee('0x123f')]=_0x3519ee[_0x5af7ee('0x15ed')](),_0x3b3e0c[_0x5af7ee('0xc0f')]=_0x3404f4||{'count':0x0,'rows':[]},_0x3b3e0c[_0x5af7ee('0x758')]=_0x552894,_0x3b3e0c[_0x5af7ee('0xab4')]=_0x1be01e&&_0x1be01e[_0x5af7ee('0x205f')]==0x1?_0x1be01e['rows'][0x0]:null,_0x3b3e0c['crudPermissions']=_0x3519ee['parseCrudPermissions'](_0x3b3e0c[_0x5af7ee('0xab4')]?_0x3b3e0c[_0x5af7ee('0xab4')][_0x5af7ee('0x5ed')]:null),_0x3b3e0c[_0x5af7ee('0x1897')]=_0x5af7ee('0xc0f'),_0x3b3e0c[_0x5af7ee('0x11dc')]='',_0x3b3e0c['listOrderAsc']=null,_0x3b3e0c[_0x5af7ee('0xa34')]=[],_0x3b3e0c[_0x5af7ee('0x77')]={'fields':_0x5af7ee('0x2273'),'sort':_0x5af7ee('0x33'),'limit':0xa,'page':0x1},_0x3b3e0c[_0x5af7ee('0x1c88')]=_0x2ca3f9,_0x3b3e0c[_0x5af7ee('0x1b5c')]=_0x2349d5,_0x3b3e0c[_0x5af7ee('0xceb')]=_0xd9c540,_0x3b3e0c['deleteconfirm']=_0x29e354,_0x3b3e0c[_0x5af7ee('0xdb1')]=_0x2ce4f8,_0x3b3e0c[_0x5af7ee('0xde')]=_0x5392ef,_0x3b3e0c[_0x5af7ee('0x1b08')]=_0x4565f3,_0x3b3e0c[_0x5af7ee('0x1379')]=_0x384247,_0x3b3e0c[_0x5af7ee('0x455')]=_0x57344d,_0x3b3e0c[_0x5af7ee('0x1414')]=_0x2b4121,_0x3b3e0c[_0x5af7ee('0x1d94')]=_0x2950f8,_0x3b3e0c['selectAllProjects']=_0x19ad35;function _0x2ca3f9(_0x413975){var _0x84464c=_0x5af7ee;_0x57f304['go'](_0x84464c('0x1d4b'),{'id':_0x413975['id'],'project':_0x413975,'crudPermissions':_0x3b3e0c['crudPermissions']});}function _0x2349d5(_0x5e2a09,_0x549c6c){var _0x14ec5c=_0x5af7ee;_0x3e81a0['show']({'controller':'ProjectcloneController','controllerAs':'vm','templateUrl':_0x5c0076,'parent':angular[_0x14ec5c('0x1676')](_0x51a5f9[_0x14ec5c('0x2452')]),'targetEvent':_0x549c6c,'clickOutsideToClose':!![],'locals':{'project':_0x5e2a09,'projects':_0x3b3e0c['projects']?_0x3b3e0c[_0x14ec5c('0xc0f')][_0x14ec5c('0x1b33')]:[],'crudPermissions':_0x3b3e0c[_0x14ec5c('0x5ed')]}});}function _0xd9c540(_0x5b1440){var _0x10ffa8=_0x5af7ee;_0x57f304['go'](_0x10ffa8('0x1d4b'),{'id':_0x5b1440['id'],'tab':0x3});}function _0x29e354(_0x800116,_0x3ee0f3){var _0x4674d7=_0x5af7ee,_0x2641fa=_0x3e81a0[_0x4674d7('0xa33')]()['title'](_0x4674d7('0x25b6')+_0x86640f()[_0x4674d7('0x2159')](_0x4674d7('0xbf8'))+'?')[_0x4674d7('0x276b')](_0x4674d7('0x622')+(_0x800116['name']||'project')+_0x4674d7('0x2135')+_0x4674d7('0x25e0'))[_0x4674d7('0x7a7')](_0x4674d7('0xd70'))['targetEvent'](_0x3ee0f3)['ok']('OK')[_0x4674d7('0x3b5')]('CANCEL');_0x3e81a0[_0x4674d7('0x853')](_0x2641fa)[_0x4674d7('0x21ad')](function(){_0x384247(_0x800116);},function(){var _0x43c49d=_0x4674d7;console[_0x43c49d('0x6fb')]('CANCEL');});}var _0x55315d=!![],_0x5098f6=0x1;_0x3fc23b[_0x5af7ee('0x10e8')](_0x5af7ee('0x1948'),function(_0x492b11,_0x3050f4){var _0x189a37=_0x5af7ee;_0x55315d?_0x450977(function(){_0x55315d=![];}):(!_0x3050f4&&(_0x5098f6=_0x3b3e0c[_0x189a37('0x77')]['page']),_0x492b11!==_0x3050f4&&(_0x3b3e0c['query'][_0x189a37('0x2376')]=0x1),!_0x492b11&&(_0x3b3e0c[_0x189a37('0x77')][_0x189a37('0x2376')]=_0x5098f6),_0x3b3e0c[_0x189a37('0xde')]());});function _0x2ce4f8(_0x1a4e41){var _0x2a8710=_0x5af7ee;_0x3b3e0c[_0x2a8710('0xc0f')]=_0x1a4e41||{'count':0x0,'rows':[]};}function _0x5392ef(){var _0x36ddf9=_0x5af7ee;_0x3b3e0c[_0x36ddf9('0x77')][_0x36ddf9('0x15a5')]=(_0x3b3e0c[_0x36ddf9('0x77')][_0x36ddf9('0x2376')]-0x1)*_0x3b3e0c[_0x36ddf9('0x77')][_0x36ddf9('0x1f4a')],_0x3519ee[_0x36ddf9('0x21de')](_0x36ddf9('0x1bd8'))?_0x3b3e0c[_0x36ddf9('0x71b')]=_0x2b0ad1[_0x36ddf9('0xe61')]['get'](_0x3b3e0c[_0x36ddf9('0x77')],_0x2ce4f8)[_0x36ddf9('0x1376')]:(_0x3b3e0c[_0x36ddf9('0x77')]['id']=_0x3b3e0c['userProfile']['id'],_0x3b3e0c[_0x36ddf9('0x77')][_0x36ddf9('0x26ad')]=_0x36ddf9('0x3d9'),_0x3b3e0c[_0x36ddf9('0x71b')]=_0x2b0ad1['userProfile'][_0x36ddf9('0x321')](_0x3b3e0c[_0x36ddf9('0x77')],_0x2ce4f8)[_0x36ddf9('0x1376')]);}function _0x4565f3(_0x30e097,_0x5ef7f2){var _0x54d684=_0x5af7ee;_0x3e81a0[_0x54d684('0x853')]({'controller':'CreateOrEditProjectDialogController','controllerAs':'vm','templateUrl':_0x5607b0,'parent':angular[_0x54d684('0x1676')](_0x51a5f9[_0x54d684('0x2452')]),'targetEvent':_0x30e097,'clickOutsideToClose':!![],'locals':{'project':_0x5ef7f2,'projects':_0x3b3e0c[_0x54d684('0xc0f')][_0x54d684('0x1b33')],'license':_0x3b3e0c[_0x54d684('0x2ff')],'setting':_0x3b3e0c['setting'],'crudPermissions':_0x3b3e0c['crudPermissions']}});}function _0x384247(_0x3a9b16){var _0x213aa4=_0x5af7ee;_0x2b0ad1['jscriptyProject'][_0x213aa4('0x1164')]({'id':_0x3a9b16['id']})[_0x213aa4('0x1376')][_0x213aa4('0x21ad')](function(){var _0x8121d4=_0x213aa4;_0x86640f()[_0x8121d4('0x16a2')](_0x3b3e0c[_0x8121d4('0xc0f')][_0x8121d4('0x1b33')],{'id':_0x3a9b16['id']}),_0x3b3e0c[_0x8121d4('0xc0f')][_0x8121d4('0x205f')]-=0x1,!_0x3b3e0c['projects']['rows'][_0x8121d4('0x577')]&&_0x3b3e0c[_0x8121d4('0xde')](),_0x2a66ac[_0x8121d4('0xdb1')]({'title':_0x86640f()[_0x8121d4('0x2159')](_0x8121d4('0x2294'))+_0x8121d4('0xe64'),'msg':_0x3a9b16['name']?_0x3a9b16[_0x8121d4('0x19fe')]+_0x8121d4('0xb4a'):''});})[_0x213aa4('0x1c1d')](function(_0x366d63){var _0xbf287e=_0x213aa4;if(_0x366d63[_0xbf287e('0x11c2')]&&_0x366d63[_0xbf287e('0x11c2')][_0xbf287e('0x1a69')]&&_0x366d63[_0xbf287e('0x11c2')][_0xbf287e('0x1a69')][_0xbf287e('0x577')]){_0x3b3e0c[_0xbf287e('0x1a69')]=_0x366d63[_0xbf287e('0x11c2')][_0xbf287e('0x1a69')]||[{'message':_0x366d63['toString'](),'type':_0xbf287e('0x13ee')}];for(var _0x3984a5=0x0;_0x3984a5<_0x366d63['data'][_0xbf287e('0x1a69')][_0xbf287e('0x577')];_0x3984a5++){_0x2a66ac[_0xbf287e('0x2092')]({'title':_0x366d63[_0xbf287e('0x11c2')]['errors'][_0x3984a5][_0xbf287e('0x7fa')],'msg':_0x366d63[_0xbf287e('0x11c2')][_0xbf287e('0x1a69')][_0x3984a5][_0xbf287e('0x1224')]});}}else _0x2a66ac['error']({'title':_0x366d63['status']?_0xbf287e('0x22d')+_0x366d63['status']+_0xbf287e('0xa99')+_0x366d63[_0xbf287e('0x1808')]:_0xbf287e('0x13ee'),'msg':_0x366d63[_0xbf287e('0x11c2')]?JSON[_0xbf287e('0x25e')](_0x366d63[_0xbf287e('0x11c2')]['message']):_0x366d63[_0xbf287e('0x1224')]||_0x366d63[_0xbf287e('0x174f')]()});});}function _0x57344d(){var _0x2aacd2=_0x5af7ee,_0x3dbc6d=angular['copy'](_0x3b3e0c[_0x2aacd2('0xa34')]);return _0x3b3e0c['selectedProjects']=[],_0x3dbc6d;}function _0x2b4121(_0xa03387){var _0x215693=_0x5af7ee,_0x2af56b=_0x3e81a0['confirm']()[_0x215693('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20projects?')[_0x215693('0x276b')](_0x215693('0x622')+_0x3b3e0c[_0x215693('0xa34')][_0x215693('0x577')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x215693('0x7a7')](_0x215693('0x1e67'))[_0x215693('0x1e6d')](_0xa03387)['ok']('OK')[_0x215693('0x3b5')]('CANCEL');_0x3e81a0[_0x215693('0x853')](_0x2af56b)[_0x215693('0x21ad')](function(){var _0x172df6=_0x215693;_0x3b3e0c[_0x172df6('0xa34')][_0x172df6('0x1a52')](function(_0x53d220){_0x384247(_0x53d220);}),_0x3b3e0c[_0x172df6('0xa34')]=[];});}function _0x2950f8(){var _0x2bf4a3=_0x5af7ee;_0x3b3e0c[_0x2bf4a3('0xa34')]=[];}function _0x19ad35(){var _0x5c3e0f=_0x5af7ee;_0x3b3e0c[_0x5c3e0f('0xa34')]=_0x3b3e0c[_0x5c3e0f('0xc0f')][_0x5c3e0f('0x1b33')];}}const _0x566a83=_0x279a33;_0xf1130a[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c'),_0x3877e3('0x972')];function _0xf1130a(_0x24c19b,_0x3444b8){var _0xd5adc8=_0x3877e3;_0x24c19b[_0xd5adc8('0x27e')](_0xd5adc8('0x23e6'),{'abstract':!![],'url':_0xd5adc8('0x17b1')})['state'](_0xd5adc8('0x8d6'),{'url':'/projects','views':{'content@app':{'templateUrl':_0x142674,'controller':_0xd5adc8('0x1d67')}},'resolve':{'projects':['apiResolver',_0xd5adc8('0x15bc'),function _0x35a919(_0x1368f1,_0x483c81){var _0x3b3c74=_0xd5adc8;return _0x483c81[_0x3b3c74('0x21de')](_0x3b3c74('0x1bd8'))?_0x1368f1[_0x3b3c74('0x8ac')](_0x3b3c74('0xa65'),{'fields':_0x3b3c74('0x2273'),'sort':_0x3b3c74('0x33'),'limit':0xa,'offset':0x0}):_0x1368f1[_0x3b3c74('0x8ac')]('userProfile@getResources',{'id':_0x483c81[_0x3b3c74('0x15ed')]()['userProfileId'],'section':_0x3b3c74('0x3d9'),'fields':_0x3b3c74('0x2273'),'sort':_0x3b3c74('0x33'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0xd5adc8('0x15bc'),function _0x3daa6a(_0x78505e,_0x45464f){var _0x2fa926=_0xd5adc8;return _0x45464f['hasRole'](_0x2fa926('0x1bd8'))?null:_0x78505e[_0x2fa926('0x8ac')]('userProfile@get',{'fields':_0x2fa926('0x1a00'),'id':_0x45464f[_0x2fa926('0x15ed')]()[_0x2fa926('0x1618')]});}],'userProfileSection':['apiResolver',_0xd5adc8('0x15bc'),function _0x24513b(_0x51d5ca,_0x5566e1){var _0x6ef7ce=_0xd5adc8;return _0x5566e1[_0x6ef7ce('0x21de')](_0x6ef7ce('0x1bd8'))?null:_0x51d5ca[_0x6ef7ce('0x8ac')](_0x6ef7ce('0x222f'),{'fields':_0x6ef7ce('0x1852'),'userProfileId':_0x5566e1[_0x6ef7ce('0x15ed')]()[_0x6ef7ce('0x1618')],'sectionId':0x6a5});}]},'authenticate':!![],'permissionId':0x6a5,'bodyClass':'jscripty'})[_0xd5adc8('0x27e')](_0xd5adc8('0x1d4b'),{'url':_0xd5adc8('0x17f5'),'params':{'project':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3b771f,'controller':_0xd5adc8('0xe3e')}},'resolve':{'project':[_0xd5adc8('0x354'),_0xd5adc8('0x114e'),function _0x4c1604(_0x2e1e03,_0x289c64){var _0x54b8bd=_0xd5adc8;return _0x2e1e03[_0x54b8bd('0x8ac')](_0x54b8bd('0xa65'),{'fields':_0x54b8bd('0x2273'),'id':_0x289c64['id']});}],'userProfileSection':['apiResolver',_0xd5adc8('0x15bc'),function _0x59a0a8(_0x157c50,_0x32e4ad){var _0x3f57f6=_0xd5adc8;return _0x157c50['resolve'](_0x3f57f6('0x222f'),{'fields':_0x3f57f6('0x1852'),'userProfileId':_0x32e4ad[_0x3f57f6('0x15ed')]()[_0x3f57f6('0x1618')],'sectionId':0x6a5});}]},'authenticate':!![],'permissionId':0x6a5,'bodyClass':_0xd5adc8('0x9c7')}),_0x3444b8[_0xd5adc8('0x20ab')](_0xd5adc8('0x140e'));}angular[_0x3877e3('0x20d5')]('app.jscripty',[_0x3877e3('0x240c'),'ngPassword','md.data.table','flow',_0x3877e3('0x2437'),_0x3877e3('0x25c7'),_0x3877e3('0x1182'),_0x3877e3('0x264a'),_0x3877e3('0x19'),_0x3877e3('0x335'),_0x3877e3('0xc90'),_0x3877e3('0x56d'),_0x3877e3('0xe2f'),_0x3877e3('0x10c'),'angular-cron-jobs','ngEmbed',_0x3877e3('0x25a2'),_0x3877e3('0x27ba'),_0x3877e3('0x9e0'),'angular.filter'])[_0x3877e3('0x13')](_0xf1130a)[_0x3877e3('0x1d5a')]('CreateOrEditProjectDialogController',_0x3ea223)['controller'](_0x3877e3('0x5e2'),_0x5b140f)[_0x3877e3('0x1d5a')]('ProjectBuilderController',_0x4a82b2)['controller'](_0x3877e3('0x1dbc'),_0x57f4cf)[_0x3877e3('0x1d5a')](_0x3877e3('0x22ed'),_0x1097d3)['controller'](_0x3877e3('0x1fa1'),_0x3b8f98)[_0x3877e3('0x1d5a')](_0x3877e3('0xcc6'),_0x2ea716)[_0x3877e3('0x1d5a')]('JscriptyProjectController',_0xee3d6b)['controller'](_0x3877e3('0xeb9'),_0x566a83);const _0x21875e=_0x398308['p']+_0x3877e3('0x18f2'),_0x4995e9=_0x398308['p']+_0x3877e3('0x1a63');_0x5b4869[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$state','$location',_0x3877e3('0x1850'),'$q','$translate','toasty',_0x3877e3('0x22fe'),_0x3877e3('0x2048'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'setting',_0x3877e3('0x5ed')];function _0x5b4869(_0x578574,_0x197dd9,_0x2d2026,_0x2804f9,_0x3aca6f,_0x332688,_0x1bb9b3,_0x42748a,_0x402a0a,_0x42a3a3,_0x54d6c1,_0x251817,_0x187426,_0x4a4caa){var _0xb547e2=_0x3877e3,_0x166655=this;_0x166655[_0xb547e2('0x123f')]=_0x54d6c1[_0xb547e2('0x15ed')](),_0x166655['errors']=[],_0x166655[_0xb547e2('0x21e')]=_0x187426,_0x166655[_0xb547e2('0x2ff')]=_0x251817,_0x166655[_0xb547e2('0x5ed')]=_0x4a4caa,_0x166655[_0xb547e2('0x126a')]={},_0x166655[_0xb547e2('0x1432')]=_0x166655['setting']&&_0x166655['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x166655[_0xb547e2('0x4b4')]=_0xb547e2('0x1004'),_0x166655[_0xb547e2('0x2048')]=angular['copy'](_0x402a0a),_0x166655['plugins']=_0x42748a,_0x166655[_0xb547e2('0x2105')]=![];!_0x166655['plugin']&&(_0x166655[_0xb547e2('0x2048')]={},_0x166655[_0xb547e2('0x4b4')]=_0xb547e2('0x1ff8'),_0x166655['newPlugin']=!![]);_0x166655[_0xb547e2('0x1028')]=_0x4c412d,_0x166655['savePlugin']=_0x217e14,_0x166655[_0xb547e2('0x1884')]=_0x17ecb9,_0x166655[_0xb547e2('0x279')]=_0x576a79,_0x166655['closeDialog']=_0x572352;function _0x4c412d(){var _0x134cb4=_0xb547e2;_0x166655[_0x134cb4('0x1a69')]=[],_0x42a3a3[_0x134cb4('0x2048')][_0x134cb4('0x186f')](_0x166655[_0x134cb4('0x2048')])[_0x134cb4('0x1376')][_0x134cb4('0x21ad')](function(_0x1f09b8){var _0x263f7b=_0x134cb4;_0x166655[_0x263f7b('0x22fe')][_0x263f7b('0xd0c')](_0x1f09b8[_0x263f7b('0x3bc')]()),_0x1bb9b3['success']({'title':'Plugin\x20properly\x20created','msg':_0x166655[_0x263f7b('0x2048')][_0x263f7b('0x19fe')]?_0x166655['plugin']['name']+'\x20has\x20been\x20created!':''}),_0x572352(_0x1f09b8);})[_0x134cb4('0x1c1d')](function(_0x29b196){var _0xa41998=_0x134cb4;if(_0x29b196[_0xa41998('0x11c2')]&&_0x29b196[_0xa41998('0x11c2')][_0xa41998('0x1a69')]&&_0x29b196[_0xa41998('0x11c2')][_0xa41998('0x1a69')][_0xa41998('0x577')]){_0x166655[_0xa41998('0x1a69')]=_0x29b196[_0xa41998('0x11c2')]['errors']||[{'message':_0x29b196[_0xa41998('0x174f')](),'type':_0xa41998('0x9f3')}];for(var _0x3d2390=0x0;_0x3d2390<_0x29b196['data'][_0xa41998('0x1a69')][_0xa41998('0x577')];_0x3d2390+=0x1){_0x1bb9b3[_0xa41998('0x2092')]({'title':_0x29b196[_0xa41998('0x11c2')]['errors'][_0x3d2390]['type'],'msg':_0x29b196[_0xa41998('0x11c2')][_0xa41998('0x1a69')][_0x3d2390][_0xa41998('0x1224')]});}}else _0x1bb9b3[_0xa41998('0x2092')]({'title':_0x29b196[_0xa41998('0x209')]?_0xa41998('0x22d')+_0x29b196[_0xa41998('0x209')]+'\x20-\x20'+_0x29b196[_0xa41998('0x1808')]:'api.plugin.save','msg':_0x29b196['data']?JSON[_0xa41998('0x25e')](_0x29b196['data']['message']):_0x29b196[_0xa41998('0x174f')]()});});}function _0x217e14(){var _0x2b3e43=_0xb547e2;_0x166655['errors']=[],_0x42a3a3[_0x2b3e43('0x2048')]['update']({'id':_0x166655['plugin']['id']},_0x166655['plugin'])['$promise'][_0x2b3e43('0x21ad')](function(_0x3ec275){var _0x1de51e=_0x2b3e43,_0x5ea424=_0x86640f()['find'](_0x166655[_0x1de51e('0x22fe')],{'id':_0x3ec275['id']});_0x5ea424&&_0x86640f()['merge'](_0x5ea424,_0x86640f()[_0x1de51e('0xc50')](_0x3ec275[_0x1de51e('0x3bc')](),_0x86640f()[_0x1de51e('0x223b')](_0x5ea424))),_0x1bb9b3[_0x1de51e('0xdb1')]({'title':_0x1de51e('0xf76'),'msg':_0x166655[_0x1de51e('0x2048')][_0x1de51e('0x19fe')]?_0x166655['plugin'][_0x1de51e('0x19fe')]+_0x1de51e('0x2249'):''}),_0x572352(_0x3ec275);})['catch'](function(_0x23b54a){var _0x471a29=_0x2b3e43;if(_0x23b54a[_0x471a29('0x11c2')]&&_0x23b54a[_0x471a29('0x11c2')][_0x471a29('0x1a69')]&&_0x23b54a[_0x471a29('0x11c2')]['errors'][_0x471a29('0x577')]){_0x166655[_0x471a29('0x1a69')]=_0x23b54a[_0x471a29('0x11c2')][_0x471a29('0x1a69')]||[{'message':_0x23b54a[_0x471a29('0x174f')](),'type':'api.plugin.update'}];for(var _0x5fa99e=0x0;_0x5fa99e<_0x23b54a[_0x471a29('0x11c2')]['errors'][_0x471a29('0x577')];_0x5fa99e++){_0x1bb9b3['error']({'title':_0x23b54a[_0x471a29('0x11c2')][_0x471a29('0x1a69')][_0x5fa99e][_0x471a29('0x7fa')],'msg':_0x23b54a[_0x471a29('0x11c2')][_0x471a29('0x1a69')][_0x5fa99e][_0x471a29('0x1224')]});}}else _0x1bb9b3['error']({'title':_0x23b54a[_0x471a29('0x209')]?_0x471a29('0x22d')+_0x23b54a[_0x471a29('0x209')]+'\x20-\x20'+_0x23b54a[_0x471a29('0x1808')]:_0x471a29('0x487'),'msg':_0x23b54a[_0x471a29('0x11c2')]?JSON['stringify'](_0x23b54a[_0x471a29('0x11c2')]['message']):_0x23b54a['toString']()});});}function _0x17ecb9(_0x17fc0f){var _0x1810c5=_0xb547e2;_0x166655[_0x1810c5('0x1a69')]=[];var _0x59d513=_0x2804f9[_0x1810c5('0xa33')]()['title'](_0x1810c5('0x196b'))['content']('The\x20plugin\x20will\x20be\x20deleted.')['ariaLabel'](_0x1810c5('0x22d5'))['ok'](_0x1810c5('0xbfd'))[_0x1810c5('0x3b5')](_0x1810c5('0x1f40'))['targetEvent'](_0x17fc0f);_0x2804f9[_0x1810c5('0x853')](_0x59d513)[_0x1810c5('0x21ad')](function(){var _0x19ff17=_0x1810c5;_0x42a3a3[_0x19ff17('0x2048')][_0x19ff17('0x1164')]({'id':_0x166655['plugin']['id']})['$promise']['then'](function(){var _0x5127b9=_0x19ff17;_0x86640f()[_0x5127b9('0x16a2')](_0x166655[_0x5127b9('0x22fe')],{'id':_0x166655[_0x5127b9('0x2048')]['id']}),_0x1bb9b3[_0x5127b9('0xdb1')]({'title':_0x5127b9('0x14ea'),'msg':(_0x166655[_0x5127b9('0x2048')][_0x5127b9('0x19fe')]||'plugin')+_0x5127b9('0xb4a')}),_0x572352(_0x166655[_0x5127b9('0x2048')]);})[_0x19ff17('0x1c1d')](function(_0x5749b8){var _0x3385b4=_0x19ff17;if(_0x5749b8['data']&&_0x5749b8[_0x3385b4('0x11c2')][_0x3385b4('0x1a69')]&&_0x5749b8[_0x3385b4('0x11c2')]['errors'][_0x3385b4('0x577')]){_0x166655[_0x3385b4('0x1a69')]=_0x5749b8[_0x3385b4('0x11c2')][_0x3385b4('0x1a69')]||[{'message':_0x5749b8['toString'](),'type':_0x3385b4('0x2f0')}];for(var _0x257e20=0x0;_0x257e20<_0x5749b8[_0x3385b4('0x11c2')][_0x3385b4('0x1a69')][_0x3385b4('0x577')];_0x257e20++){_0x1bb9b3[_0x3385b4('0x2092')]({'title':_0x5749b8[_0x3385b4('0x11c2')][_0x3385b4('0x1a69')][_0x257e20][_0x3385b4('0x7fa')],'msg':_0x5749b8['data'][_0x3385b4('0x1a69')][_0x257e20][_0x3385b4('0x1224')]});}}else _0x1bb9b3[_0x3385b4('0x2092')]({'title':_0x5749b8[_0x3385b4('0x209')]?_0x3385b4('0x22d')+_0x5749b8['status']+_0x3385b4('0xa99')+_0x5749b8[_0x3385b4('0x1808')]:_0x3385b4('0x2f0'),'msg':_0x5749b8['data']?JSON[_0x3385b4('0x25e')](_0x5749b8[_0x3385b4('0x11c2')][_0x3385b4('0x1224')]):_0x5749b8[_0x3385b4('0x1224')]||_0x5749b8['toString']()});});},function(){});}function _0x576a79(_0xc85017){return _0xc85017===null?undefined:new Date(_0xc85017);}function _0x572352(_0x3392fe){var _0x4ffc80=_0xb547e2;_0x2804f9[_0x4ffc80('0x1c24')](_0x3392fe);}}const _0x3f67df=_0x5b4869;_0x2c55ec[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),'$translate','license',_0x3877e3('0x21e'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2048'),_0x3877e3('0xab4')];function _0x2c55ec(_0x593a77,_0xe1c1a8,_0x20d3b3,_0x4ba0fa,_0x182c5e,_0x358d86,_0x3aaa53,_0x241f90,_0x1e676e,_0x552986,_0x1130f5,_0x4004d3){var _0x31839e=_0x3877e3,_0x3dd1bd=this;_0x3dd1bd[_0x31839e('0x123f')]=_0x552986[_0x31839e('0x15ed')](),_0x3dd1bd[_0x31839e('0x2ff')]=_0x358d86,_0x3dd1bd[_0x31839e('0x21e')]=_0x3aaa53,_0x3dd1bd['passwordPattern']=_0x3dd1bd['setting'][_0x31839e('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3dd1bd[_0x31839e('0x626')]=_0xe1c1a8[_0x31839e('0x1162')]()+_0x31839e('0x22a9')+_0xe1c1a8[_0x31839e('0x1c01')](),_0x3dd1bd[_0x31839e('0x2048')]=_0x1130f5||_0x593a77[_0x31839e('0x171b')][_0x31839e('0x2048')]||{},_0x3dd1bd['userProfileSection']=_0x4004d3&&_0x4004d3[_0x31839e('0x205f')]==0x1?_0x4004d3[_0x31839e('0x1b33')][0x0]:null,_0x3dd1bd[_0x31839e('0x5ed')]=_0x552986[_0x31839e('0x1778')](_0x3dd1bd[_0x31839e('0xab4')]?_0x3dd1bd['userProfileSection'][_0x31839e('0x5ed')]:null),_0x3dd1bd['hasModulePermissions']={},_0x3dd1bd[_0x31839e('0x302')]=_0x593a77[_0x31839e('0x171b')][_0x31839e('0x12e1')]||0x0,_0x3dd1bd['alert']=_0x1e676e[_0x31839e('0x231c')],_0x3dd1bd['gotoPlugins']=_0x296ad9,_0x3dd1bd['savePlugin']=_0x57ca04;function _0x296ad9(){var _0xe16a20=_0x31839e;_0x593a77['go'](_0xe16a20('0x63b'),{},{'reload':_0xe16a20('0x63b')});}function _0x57ca04(){var _0x4826fe=_0x31839e;_0x241f90[_0x4826fe('0x2048')][_0x4826fe('0x5ef')]({'id':_0x3dd1bd['plugin']['id']},_0x3dd1bd[_0x4826fe('0x2048')])[_0x4826fe('0x1376')][_0x4826fe('0x21ad')](function(){var _0x220d04=_0x4826fe;_0x1e676e[_0x220d04('0xdb1')]({'title':_0x220d04('0x38'),'msg':_0x3dd1bd[_0x220d04('0x2048')]['name']?_0x3dd1bd[_0x220d04('0x2048')]['name']+'\x20has\x20been\x20updated!':''});})[_0x4826fe('0x1c1d')](function(_0x57be1b){var _0x266a08=_0x4826fe;_0x1e676e[_0x266a08('0x2092')]({'title':_0x57be1b[_0x266a08('0x209')]?_0x266a08('0x22d')+_0x57be1b[_0x266a08('0x209')]+_0x266a08('0xa99')+_0x57be1b[_0x266a08('0x1808')]:_0x266a08('0x194b'),'msg':_0x57be1b[_0x266a08('0x11c2')]?JSON[_0x266a08('0x25e')](_0x57be1b[_0x266a08('0x11c2')]):_0x57be1b[_0x266a08('0x174f')]()});});}}const _0x5514e6=_0x2c55ec,_0x280d6f=_0x398308['p']+_0x3877e3('0xf99'),_0x41effa=_0x398308['p']+_0x3877e3('0x2771');_0x35353b['$inject']=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),_0x3877e3('0x1850'),'$document',_0x3877e3('0x2313'),_0x3877e3('0x13c1'),'plugins',_0x3877e3('0x758'),_0x3877e3('0xab4'),'api',_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),'license','setting'];function _0x35353b(_0x396b12,_0x42a5b6,_0x1c4b37,_0x4623e7,_0x32d3fe,_0x573a1c,_0x3dd734,_0xbca1d8,_0x40a988,_0x215292,_0x515c07,_0x241b57,_0x3c1188,_0x25cd4c,_0x2656df,_0x28609a,_0x35b2f9){var _0x6488c4=_0x3877e3,_0xc88964=this;_0xc88964[_0x6488c4('0x2ff')]=_0x28609a,_0xc88964['setting']=_0x35b2f9,_0xc88964[_0x6488c4('0x123f')]=_0x2656df[_0x6488c4('0x15ed')](),_0xc88964['plugins']=_0x40a988||{'count':0x0,'rows':[]},_0xc88964[_0x6488c4('0x758')]=_0x215292,_0xc88964[_0x6488c4('0xab4')]=_0x515c07&&_0x515c07[_0x6488c4('0x205f')]==0x1?_0x515c07[_0x6488c4('0x1b33')][0x0]:null,_0xc88964[_0x6488c4('0x5ed')]=_0x2656df[_0x6488c4('0x1778')](_0xc88964['userProfileSection']?_0xc88964[_0x6488c4('0xab4')][_0x6488c4('0x5ed')]:null),_0xc88964[_0x6488c4('0x1897')]=_0x6488c4('0x22fe'),_0xc88964[_0x6488c4('0x11dc')]='',_0xc88964[_0x6488c4('0x18cf')]=null,_0xc88964[_0x6488c4('0x250f')]=[],_0xc88964[_0x6488c4('0x77')]={'fields':_0x6488c4('0x1df7'),'sort':_0x6488c4('0x19fe'),'limit':0xa,'page':0x1},_0xc88964[_0x6488c4('0xd84')]=![],_0xc88964['arraysidebar']=_0x86640f()[_0x6488c4('0xcde')]([{'option':_0x6488c4('0x342'),'value':_0x6488c4('0x1f6c')},{'option':_0x6488c4('0x1690'),'value':_0x6488c4('0x1ecf')},{'option':'Agent\x20Only','value':'\x27agentOnly\x27'},{'option':_0x6488c4('0x1805'),'value':_0x6488c4('0xc29')}],function(_0x52f0fd){var _0x1e2140=_0x6488c4;return _0x86640f()[_0x1e2140('0x16e4')](_0x52f0fd[_0x1e2140('0x2228')],new RegExp('\x27','g'),'');}),_0xc88964[_0x6488c4('0x23fb')]=_0x2cb926,_0xc88964[_0x6488c4('0x1c88')]=_0x5de601,_0xc88964[_0x6488c4('0xd80')]=_0xb0d06a,_0xc88964['restartplugin']=_0x5e96c1,_0xc88964[_0x6488c4('0xf10')]=_0x4b0318,_0xc88964[_0x6488c4('0x1d65')]=_0x1e2a03,_0xc88964['deleteconfirm']=_0x2017ff,_0xc88964['success']=_0x4453d4,_0xc88964['getPlugins']=_0x4cd68e,_0xc88964[_0x6488c4('0x48a')]=_0x45aa94,_0xc88964[_0x6488c4('0x1884')]=_0x33ce10,_0xc88964[_0x6488c4('0xb1b')]=_0x2fd9e3,_0xc88964['deleteSelectedPlugins']=_0x47dfc8,_0xc88964[_0x6488c4('0x1ae3')]=_0x333115,_0xc88964['selectAllPlugins']=_0x38a59d,_0xc88964[_0x6488c4('0x60b')]=_0x2c661d;function _0x2cb926(_0x4289a8){var _0x521ed7=_0x6488c4;if(_0x4289a8[_0x521ed7('0x7fa')]===_0x521ed7('0x1e0b'))_0xc88964[_0x521ed7('0xd84')]=!![],_0x241b57[_0x521ed7('0x6d4')][_0x521ed7('0x186f')]({'name':_0x4289a8[_0x521ed7('0x1f95')],'script':_0x4289a8['path']+'/'+_0x4289a8[_0x521ed7('0x232c')]})['$promise'][_0x521ed7('0x21ad')](function(){var _0x333eee=_0x521ed7;return _0x4289a8[_0x333eee('0x695')]=!![],_0x241b57['plugin'][_0x333eee('0x5ef')]({'id':_0x4289a8['id']},_0x4289a8)[_0x333eee('0x1376')];})['then'](function(){var _0x2b89be=_0x521ed7;_0xc88964[_0x2b89be('0xd84')]=![],_0x25cd4c[_0x2b89be('0xdb1')]({'title':'Plugin\x20installed!','msg':_0x4289a8[_0x2b89be('0x19fe')]?_0x4289a8[_0x2b89be('0x19fe')]+_0x2b89be('0x1eae'):''});})[_0x521ed7('0x1c1d')](function(_0x5536e7){var _0x604531=_0x521ed7;if(_0x5536e7[_0x604531('0x11c2')]&&_0x5536e7[_0x604531('0x11c2')][_0x604531('0x1a69')]&&_0x5536e7[_0x604531('0x11c2')][_0x604531('0x1a69')][_0x604531('0x577')]){_0xc88964[_0x604531('0x1a69')]=_0x5536e7[_0x604531('0x11c2')]['errors']||[{'message':_0x5536e7['toString'](),'type':_0x604531('0xea6')}];for(var _0x58fbc9=0x0;_0x58fbc9<_0x5536e7[_0x604531('0x11c2')]['errors'][_0x604531('0x577')];_0x58fbc9++){_0x25cd4c[_0x604531('0x2092')]({'title':_0x5536e7[_0x604531('0x11c2')]['errors'][_0x58fbc9][_0x604531('0x7fa')],'msg':_0x5536e7[_0x604531('0x11c2')]['errors'][_0x58fbc9][_0x604531('0x1224')]});}}else _0x25cd4c['error']({'title':_0x5536e7['status']?_0x604531('0x22d')+_0x5536e7['status']+_0x604531('0xa99')+_0x5536e7[_0x604531('0x1808')]:_0x604531('0xea6'),'msg':_0x5536e7[_0x604531('0x11c2')]?JSON[_0x604531('0x25e')](_0x5536e7['data']['message']):_0x5536e7[_0x604531('0x1224')]||_0x5536e7[_0x604531('0x174f')]()});});else return _0x4289a8[_0x521ed7('0x695')]=!![],_0x241b57['plugin'][_0x521ed7('0x5ef')]({'id':_0x4289a8['id']},_0x4289a8)[_0x521ed7('0x1376')]['then'](function(){var _0x108527=_0x521ed7;_0x25cd4c[_0x108527('0xdb1')]({'title':'Plugin\x20installed!','msg':_0x4289a8[_0x108527('0x19fe')]?_0x4289a8[_0x108527('0x19fe')]+'\x20has\x20been\x20installed!':''});})[_0x521ed7('0x1c1d')](function(_0x5487fb){var _0x462a46=_0x521ed7;if(_0x5487fb['data']&&_0x5487fb['data'][_0x462a46('0x1a69')]&&_0x5487fb[_0x462a46('0x11c2')][_0x462a46('0x1a69')][_0x462a46('0x577')]){_0xc88964[_0x462a46('0x1a69')]=_0x5487fb['data']['errors']||[{'message':_0x5487fb[_0x462a46('0x174f')](),'type':_0x462a46('0x487')}];for(var _0xded2b9=0x0;_0xded2b9<_0x5487fb[_0x462a46('0x11c2')]['errors']['length'];_0xded2b9++){_0x25cd4c[_0x462a46('0x2092')]({'title':_0x5487fb[_0x462a46('0x11c2')][_0x462a46('0x1a69')][_0xded2b9]['type'],'msg':_0x5487fb[_0x462a46('0x11c2')]['errors'][_0xded2b9]['message']});}}else _0x25cd4c[_0x462a46('0x2092')]({'title':_0x5487fb[_0x462a46('0x209')]?'API:'+_0x5487fb[_0x462a46('0x209')]+_0x462a46('0xa99')+_0x5487fb[_0x462a46('0x1808')]:_0x462a46('0x487'),'msg':_0x5487fb[_0x462a46('0x11c2')]?JSON[_0x462a46('0x25e')](_0x5487fb[_0x462a46('0x11c2')][_0x462a46('0x1224')]):_0x5487fb['message']||_0x5487fb['toString']()});});}function _0x5de601(_0xde10be){var _0x1dde5d=_0x6488c4;_0x1c4b37['go'](_0x1dde5d('0x274'),{'id':_0xde10be['id'],'plugin':_0xde10be,'crudPermissions':_0xc88964['crudPermissions']});}function _0xb0d06a(_0x1fee52,_0x5901c8){var _0x2bd047=_0x6488c4,_0x90d047=_0x32d3fe[_0x2bd047('0xa33')]()['title']('Are\x20you\x20sure\x20want\x20to\x20stop\x20the\x20plugin\x20attached\x20process?')[_0x2bd047('0x276b')](_0x2bd047('0x622')+(_0x1fee52[_0x2bd047('0x19fe')]||'plugin')+_0x2bd047('0x2135')+_0x2bd047('0x1b1f'))[_0x2bd047('0x7a7')](_0x2bd047('0x205e'))[_0x2bd047('0x1e6d')](_0x5901c8)['ok']('OK')[_0x2bd047('0x3b5')]('CANCEL');_0x32d3fe['show'](_0x90d047)['then'](function(){_0xf16cfe(_0x1fee52);},function(){var _0xb721d4=_0x2bd047;console[_0xb721d4('0x6fb')](_0xb721d4('0x284b'));});}function _0xf16cfe(_0x24064a){var _0x4ffd16=_0x6488c4;_0x241b57[_0x4ffd16('0x6d4')]['get']()[_0x4ffd16('0x1376')][_0x4ffd16('0x21ad')](function(_0x2bb50b){var _0x1c5b31=_0x4ffd16;if(!_0x2bb50b||!_0x2bb50b[_0x1c5b31('0x1b33')])throw new Error(_0x1c5b31('0x1fd0'));var _0x5850a9=_0x86640f()[_0x1c5b31('0x1d2e')](_0x2bb50b[_0x1c5b31('0x1b33')],{'name':_0x24064a[_0x1c5b31('0x1f95')]});if(!_0x5850a9)throw new Error(_0x1c5b31('0x19a0'));_0x241b57['pm2'][_0x1c5b31('0x5ef')]({'id':_0x5850a9[_0x1c5b31('0xb93')],'status':'stopped'})[_0x1c5b31('0x1376')][_0x1c5b31('0x21ad')](function(){var _0x4811ff=_0x1c5b31;_0x25cd4c[_0x4811ff('0xdb1')]({'title':_0x4811ff('0xf0a'),'msg':'Attached\x20pm2\x20process\x20successfully\x20stopped'});});})['catch'](function(_0x2c519f){var _0x4004cf=_0x4ffd16;if(_0x2c519f[_0x4004cf('0x11c2')]&&_0x2c519f[_0x4004cf('0x11c2')]['errors']&&_0x2c519f['data']['errors'][_0x4004cf('0x577')]){_0xc88964['errors']=_0x2c519f[_0x4004cf('0x11c2')][_0x4004cf('0x1a69')]||[{'message':_0x2c519f[_0x4004cf('0x174f')](),'type':'api.pm2.update'}];for(var _0x45bd68=0x0;_0x45bd68<_0x2c519f[_0x4004cf('0x11c2')][_0x4004cf('0x1a69')][_0x4004cf('0x577')];_0x45bd68++){_0x25cd4c['error']({'title':_0x2c519f[_0x4004cf('0x11c2')]['errors'][_0x45bd68][_0x4004cf('0x7fa')],'msg':_0x2c519f[_0x4004cf('0x11c2')]['errors'][_0x45bd68][_0x4004cf('0x1224')]});}}else _0x25cd4c[_0x4004cf('0x2092')]({'title':_0x2c519f['status']?_0x4004cf('0x22d')+_0x2c519f[_0x4004cf('0x209')]+_0x4004cf('0xa99')+_0x2c519f['statusText']:_0x4004cf('0xee3'),'msg':_0x2c519f[_0x4004cf('0x11c2')]?JSON[_0x4004cf('0x25e')](_0x2c519f[_0x4004cf('0x11c2')][_0x4004cf('0x1224')]):_0x2c519f[_0x4004cf('0x1224')]||_0x2c519f[_0x4004cf('0x174f')]()});});}function _0x5e96c1(_0x53a066,_0x289594){var _0x53930b=_0x6488c4,_0x542995=_0x32d3fe[_0x53930b('0xa33')]()[_0x53930b('0x4b4')](_0x53930b('0x39a'))[_0x53930b('0x276b')](_0x53930b('0x622')+(_0x53a066[_0x53930b('0x19fe')]||_0x53930b('0x2048'))+_0x53930b('0x2135')+'\x20attached\x20process\x20will\x20be\x20restarted.')[_0x53930b('0x7a7')](_0x53930b('0x221d'))[_0x53930b('0x1e6d')](_0x289594)['ok']('OK')['cancel']('CANCEL');_0x32d3fe[_0x53930b('0x853')](_0x542995)['then'](function(){_0x45a6e3(_0x53a066);},function(){var _0x3ed321=_0x53930b;console[_0x3ed321('0x6fb')](_0x3ed321('0x284b'));});}function _0x45a6e3(_0xec1abf){var _0x2c4456=_0x6488c4;_0x241b57[_0x2c4456('0x6d4')][_0x2c4456('0x595')]()[_0x2c4456('0x1376')][_0x2c4456('0x21ad')](function(_0x382dff){var _0x39fdb7=_0x2c4456;if(!_0x382dff||!_0x382dff[_0x39fdb7('0x1b33')])throw new Error(_0x39fdb7('0x1fd0'));var _0x36c670=_0x86640f()[_0x39fdb7('0x1d2e')](_0x382dff[_0x39fdb7('0x1b33')],{'name':_0xec1abf['scriptName']});if(!_0x36c670)throw new Error('No\x20corresponding\x20process\x20found');_0x241b57[_0x39fdb7('0x6d4')][_0x39fdb7('0x5ef')]({'id':_0x36c670[_0x39fdb7('0xb93')],'status':'online'})[_0x39fdb7('0x1376')]['then'](function(){var _0x5ef965=_0x39fdb7;_0x25cd4c[_0x5ef965('0xdb1')]({'title':_0x5ef965('0x688'),'msg':_0x5ef965('0x18fc')});});})[_0x2c4456('0x1c1d')](function(_0x3ea03e){var _0x294793=_0x2c4456;if(_0x3ea03e['data']&&_0x3ea03e[_0x294793('0x11c2')]['errors']&&_0x3ea03e[_0x294793('0x11c2')][_0x294793('0x1a69')]['length']){_0xc88964[_0x294793('0x1a69')]=_0x3ea03e[_0x294793('0x11c2')]['errors']||[{'message':_0x3ea03e[_0x294793('0x174f')](),'type':_0x294793('0xee3')}];for(var _0x5c4c13=0x0;_0x5c4c13<_0x3ea03e['data']['errors'][_0x294793('0x577')];_0x5c4c13++){_0x25cd4c[_0x294793('0x2092')]({'title':_0x3ea03e[_0x294793('0x11c2')]['errors'][_0x5c4c13][_0x294793('0x7fa')],'msg':_0x3ea03e['data'][_0x294793('0x1a69')][_0x5c4c13]['message']});}}else _0x25cd4c['error']({'title':_0x3ea03e[_0x294793('0x209')]?_0x294793('0x22d')+_0x3ea03e['status']+_0x294793('0xa99')+_0x3ea03e[_0x294793('0x1808')]:_0x294793('0xee3'),'msg':_0x3ea03e[_0x294793('0x11c2')]?JSON['stringify'](_0x3ea03e['data'][_0x294793('0x1224')]):_0x3ea03e[_0x294793('0x1224')]||_0x3ea03e[_0x294793('0x174f')]()});});}function _0x4b0318(_0x49bee7){var _0x2713b9=_0x6488c4;return _0x241b57[_0x2713b9('0x2048')]['download']({'id':_0x49bee7['id']})['$promise']['then'](function(_0x42200b){var _0x2ba582=_0x2713b9,_0x29795b=[_0x42200b[_0x2ba582('0x3da')]],_0x467575=_0x2ba582('0xb0'),_0x2c4097=new Blob(_0x29795b,{'type':_0x42200b[_0x2ba582('0x7fa')]});_0x467575=_0x49bee7[_0x2ba582('0x19fe')][_0x2ba582('0x16e4')]('\x20','_')['toLowerCase']()+_0x2ba582('0x1622');var _0x52173a=window[_0x2ba582('0x27c3')]['createElement']('a');_0x52173a[_0x2ba582('0x127a')](_0x2ba582('0x69e'),URL['createObjectURL'](_0x2c4097)),_0x52173a['setAttribute']('download',_0x467575),document[_0x2ba582('0x2452')][_0x2ba582('0x14d0')](_0x52173a),_0x52173a[_0x2ba582('0x997')]();})[_0x2713b9('0x1c1d')](function(_0x35f021){var _0x272ac6=_0x2713b9;if(_0x35f021[_0x272ac6('0x11c2')]&&_0x35f021['data'][_0x272ac6('0x1a69')]&&_0x35f021[_0x272ac6('0x11c2')]['errors'][_0x272ac6('0x577')])for(var _0x34d53a=0x0;_0x34d53a<_0x35f021[_0x272ac6('0x11c2')][_0x272ac6('0x1a69')]['length'];_0x34d53a++){_0x25cd4c[_0x272ac6('0x2092')]({'title':_0x35f021[_0x272ac6('0x11c2')][_0x272ac6('0x1a69')][_0x34d53a][_0x272ac6('0x7fa')],'msg':_0x35f021['data']['errors'][_0x34d53a]['message']});}else _0x25cd4c[_0x272ac6('0x2092')]({'title':_0x35f021[_0x272ac6('0x209')]?_0x272ac6('0x22d')+_0x35f021[_0x272ac6('0x209')]+'\x20-\x20'+_0x35f021[_0x272ac6('0x1808')]:_0x272ac6('0x9f3'),'msg':_0x35f021['data']?JSON[_0x272ac6('0x25e')](_0x35f021[_0x272ac6('0x11c2')]['message']):_0x35f021[_0x272ac6('0x174f')]()});});}function _0x1e2a03(_0x57c165,_0x3a4dd4){var _0x4a5142=_0x6488c4,_0x5239f7=_0x32d3fe[_0x4a5142('0xa33')]()['title'](_0x4a5142('0x1f4f'))['htmlContent'](_0x4a5142('0x622')+(_0x57c165[_0x4a5142('0x19fe')]||'plugin')+_0x4a5142('0x2135')+_0x4a5142('0x18d8'))[_0x4a5142('0x7a7')](_0x4a5142('0xf8b'))[_0x4a5142('0x1e6d')](_0x3a4dd4)['ok']('OK')[_0x4a5142('0x3b5')](_0x4a5142('0x284b'));_0x32d3fe[_0x4a5142('0x853')](_0x5239f7)[_0x4a5142('0x21ad')](function(){_0x11a811(_0x57c165);},function(){console['log']('CANCEL');});}function _0x11a811(_0x5b99d0){var _0x3bdeee=_0x6488c4;return _0x5b99d0['type']===_0x3bdeee('0x1e0b')&&_0x241b57[_0x3bdeee('0x6d4')][_0x3bdeee('0x595')]()['$promise'][_0x3bdeee('0x21ad')](function(_0x46a331){var _0x1e669f=_0x3bdeee;if(!_0x46a331||!_0x46a331[_0x1e669f('0x1b33')])throw new Error(_0x1e669f('0x1fd0'));var _0x208f25=_0x86640f()[_0x1e669f('0x1d2e')](_0x46a331[_0x1e669f('0x1b33')],{'name':_0x5b99d0[_0x1e669f('0x1f95')]});if(!_0x208f25)throw new Error(_0x1e669f('0x19a0'));_0x241b57[_0x1e669f('0x6d4')][_0x1e669f('0x1164')]({'id':_0x208f25[_0x1e669f('0xb93')],'name':_0x5b99d0[_0x1e669f('0x1f95')]})['$promise'];})['catch'](function(_0x133004){var _0x769134=_0x3bdeee;_0x25cd4c[_0x769134('0x2092')]({'title':_0x133004['status']?_0x769134('0x22d')+_0x133004[_0x769134('0x209')]+_0x769134('0xa99')+_0x133004['statusText']:_0x769134('0x7ea'),'msg':_0x133004[_0x769134('0x11c2')]?JSON['stringify'](_0x133004['data'][_0x769134('0x1224')]):_0x133004[_0x769134('0x1224')]||_0x133004[_0x769134('0x174f')]()});}),_0x5b99d0[_0x3bdeee('0x695')]=![],_0x241b57[_0x3bdeee('0x2048')]['update']({'id':_0x5b99d0['id']},_0x5b99d0)['$promise']['then'](function(){var _0x31ff06=_0x3bdeee;_0x25cd4c[_0x31ff06('0xdb1')]({'title':_0x31ff06('0xf49'),'msg':_0x5b99d0[_0x31ff06('0x19fe')]?_0x5b99d0[_0x31ff06('0x19fe')]+_0x31ff06('0x240b'):''});})[_0x3bdeee('0x1c1d')](function(_0x45b15d){var _0x406b31=_0x3bdeee;if(_0x45b15d[_0x406b31('0x11c2')]&&_0x45b15d[_0x406b31('0x11c2')][_0x406b31('0x1a69')]&&_0x45b15d[_0x406b31('0x11c2')][_0x406b31('0x1a69')][_0x406b31('0x577')]){_0xc88964[_0x406b31('0x1a69')]=_0x45b15d[_0x406b31('0x11c2')][_0x406b31('0x1a69')]||[{'message':_0x45b15d[_0x406b31('0x174f')](),'type':_0x406b31('0x487')}];for(var _0x4f1732=0x0;_0x4f1732<_0x45b15d['data'][_0x406b31('0x1a69')][_0x406b31('0x577')];_0x4f1732++){_0x25cd4c[_0x406b31('0x2092')]({'title':_0x45b15d[_0x406b31('0x11c2')]['errors'][_0x4f1732][_0x406b31('0x7fa')],'msg':_0x45b15d[_0x406b31('0x11c2')][_0x406b31('0x1a69')][_0x4f1732][_0x406b31('0x1224')]});}}else _0x25cd4c[_0x406b31('0x2092')]({'title':_0x45b15d[_0x406b31('0x209')]?_0x406b31('0x22d')+_0x45b15d[_0x406b31('0x209')]+_0x406b31('0xa99')+_0x45b15d[_0x406b31('0x1808')]:_0x406b31('0x487'),'msg':_0x45b15d[_0x406b31('0x11c2')]?JSON['stringify'](_0x45b15d[_0x406b31('0x11c2')][_0x406b31('0x1224')]):_0x45b15d[_0x406b31('0x1224')]||_0x45b15d[_0x406b31('0x174f')]()});});}function _0x2017ff(_0x1afa4c,_0x21004b){var _0x1c71ab=_0x6488c4,_0x4ede8a=_0x32d3fe[_0x1c71ab('0xa33')]()[_0x1c71ab('0x4b4')](_0x1c71ab('0x25b6')+_0x86640f()[_0x1c71ab('0x2159')](_0x1c71ab('0x2048'))+'?')['htmlContent'](_0x1c71ab('0x622')+(_0x1afa4c[_0x1c71ab('0x19fe')]||'plugin')+_0x1c71ab('0x2135')+_0x1c71ab('0x25e0'))['ariaLabel']('delete\x20plugin')[_0x1c71ab('0x1e6d')](_0x21004b)['ok']('OK')[_0x1c71ab('0x3b5')](_0x1c71ab('0x284b'));_0x32d3fe[_0x1c71ab('0x853')](_0x4ede8a)[_0x1c71ab('0x21ad')](function(){_0x33ce10(_0x1afa4c);},function(){var _0x2fb49a=_0x1c71ab;console[_0x2fb49a('0x6fb')](_0x2fb49a('0x284b'));});}var _0x25497d=!![],_0xd4ddb7=0x1;_0x396b12[_0x6488c4('0x10e8')](_0x6488c4('0x1948'),function(_0x4be2fb,_0x1ff110){var _0x12a8f4=_0x6488c4;_0x25497d?_0x3dd734(function(){_0x25497d=![];}):(!_0x1ff110&&(_0xd4ddb7=_0xc88964[_0x12a8f4('0x77')]['page']),_0x4be2fb!==_0x1ff110&&(_0xc88964[_0x12a8f4('0x77')]['page']=0x1),!_0x4be2fb&&(_0xc88964[_0x12a8f4('0x77')][_0x12a8f4('0x2376')]=_0xd4ddb7),_0xc88964[_0x12a8f4('0xefc')]());});function _0x4453d4(_0x4c59aa){_0xc88964['plugins']=_0x4c59aa||{'count':0x0,'rows':[]};}function _0x4cd68e(){var _0x4bddec=_0x6488c4;_0xc88964[_0x4bddec('0x77')][_0x4bddec('0x15a5')]=(_0xc88964['query'][_0x4bddec('0x2376')]-0x1)*_0xc88964['query'][_0x4bddec('0x1f4a')],_0x2656df[_0x4bddec('0x21de')]('admin')?_0xc88964[_0x4bddec('0x71b')]=_0x241b57[_0x4bddec('0x2048')][_0x4bddec('0x595')](_0xc88964[_0x4bddec('0x77')],_0x4453d4)['$promise']:(_0xc88964[_0x4bddec('0x77')]['id']=_0xc88964[_0x4bddec('0x758')]['id'],_0xc88964[_0x4bddec('0x77')][_0x4bddec('0x26ad')]=_0x4bddec('0x1074'),_0xc88964[_0x4bddec('0x71b')]=_0x241b57['userProfile'][_0x4bddec('0x321')](_0xc88964[_0x4bddec('0x77')],_0x4453d4)[_0x4bddec('0x1376')]);}function _0x45aa94(_0x2c7724,_0x671aba){var _0x20f8ae=_0x6488c4;_0x32d3fe[_0x20f8ae('0x853')]({'controller':'CreateOrEditPluginDialogController','controllerAs':'vm','templateUrl':_0x280d6f,'parent':angular[_0x20f8ae('0x1676')](_0x573a1c[_0x20f8ae('0x2452')]),'targetEvent':_0x2c7724,'clickOutsideToClose':!![],'locals':{'plugin':_0x671aba,'plugins':_0xc88964[_0x20f8ae('0x22fe')][_0x20f8ae('0x1b33')],'license':_0xc88964['license'],'setting':_0xc88964[_0x20f8ae('0x21e')],'crudPermissions':_0xc88964[_0x20f8ae('0x5ed')]}});}function _0x33ce10(_0xa1743a){var _0x46e050=_0x6488c4;_0xa1743a[_0x46e050('0x695')]&&_0xa1743a['type']==_0x46e050('0x1e0b')&&_0x241b57[_0x46e050('0x6d4')][_0x46e050('0x595')]()['$promise']['then'](function(_0x107757){var _0x5094ca=_0x46e050;if(!_0x107757||!_0x107757[_0x5094ca('0x1b33')])return _0x25cd4c[_0x5094ca('0x2092')]({'title':_0x5094ca('0x1027'),'msg':_0x5094ca('0x1fd0')});var _0x453c5d=_0x86640f()[_0x5094ca('0x1d2e')](_0x107757[_0x5094ca('0x1b33')],{'name':_0xa1743a[_0x5094ca('0x1f95')]});if(!_0x453c5d){console[_0x5094ca('0x6fb')](_0x5094ca('0x28b'),_0xa1743a[_0x5094ca('0x1f95')]);return;}_0x241b57[_0x5094ca('0x6d4')]['delete']({'id':_0x453c5d[_0x5094ca('0xb93')],'name':_0xa1743a['scriptName']})[_0x5094ca('0x1376')];})[_0x46e050('0x1c1d')](function(){var _0x8ff0b4=_0x46e050;return _0x25cd4c[_0x8ff0b4('0x2092')]({'title':'PM2\x20process\x20not\x20found!','msg':_0x8ff0b4('0x930')});}),_0x241b57['plugin'][_0x46e050('0x1164')]({'id':_0xa1743a['id']})[_0x46e050('0x1376')]['then'](function(){var _0x1aab40=_0x46e050;_0x86640f()[_0x1aab40('0x16a2')](_0xc88964[_0x1aab40('0x22fe')]['rows'],{'id':_0xa1743a['id']}),_0xc88964[_0x1aab40('0x22fe')][_0x1aab40('0x205f')]-=0x1,!_0xc88964[_0x1aab40('0x22fe')][_0x1aab40('0x1b33')][_0x1aab40('0x577')]&&_0xc88964[_0x1aab40('0xefc')](),_0x25cd4c['success']({'title':_0x86640f()[_0x1aab40('0x2159')](_0x1aab40('0x27bf'))+_0x1aab40('0xe64'),'msg':_0xa1743a[_0x1aab40('0x19fe')]?_0xa1743a[_0x1aab40('0x19fe')]+_0x1aab40('0xb4a'):''});})[_0x46e050('0x1c1d')](function(_0x424ac9){var _0x3b37cc=_0x46e050;if(_0x424ac9['data']&&_0x424ac9[_0x3b37cc('0x11c2')][_0x3b37cc('0x1a69')]&&_0x424ac9[_0x3b37cc('0x11c2')][_0x3b37cc('0x1a69')]['length']){_0xc88964[_0x3b37cc('0x1a69')]=_0x424ac9['data']['errors']||[{'message':_0x424ac9[_0x3b37cc('0x174f')](),'type':_0x3b37cc('0x318')}];for(var _0x3edf57=0x0;_0x3edf57<_0x424ac9[_0x3b37cc('0x11c2')]['errors'][_0x3b37cc('0x577')];_0x3edf57++){_0x25cd4c[_0x3b37cc('0x2092')]({'title':_0x424ac9[_0x3b37cc('0x11c2')][_0x3b37cc('0x1a69')][_0x3edf57][_0x3b37cc('0x7fa')],'msg':_0x424ac9[_0x3b37cc('0x11c2')]['errors'][_0x3edf57]['message']});}}else _0x25cd4c[_0x3b37cc('0x2092')]({'title':_0x424ac9['status']?_0x3b37cc('0x22d')+_0x424ac9[_0x3b37cc('0x209')]+_0x3b37cc('0xa99')+_0x424ac9[_0x3b37cc('0x1808')]:_0x3b37cc('0x318'),'msg':_0x424ac9[_0x3b37cc('0x11c2')]?JSON['stringify'](_0x424ac9[_0x3b37cc('0x11c2')][_0x3b37cc('0x1224')]):_0x424ac9[_0x3b37cc('0x1224')]||_0x424ac9[_0x3b37cc('0x174f')]()});});}function _0x2fd9e3(){var _0x1231e2=_0x6488c4,_0x319e5b=angular[_0x1231e2('0xd75')](_0xc88964[_0x1231e2('0x250f')]);return _0xc88964[_0x1231e2('0x250f')]=[],_0x319e5b;}function _0x47dfc8(_0xc75a43){var _0x526f65=_0x6488c4,_0x208545=_0x32d3fe[_0x526f65('0xa33')]()[_0x526f65('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20plugins?')[_0x526f65('0x276b')](_0x526f65('0x622')+_0xc88964[_0x526f65('0x250f')][_0x526f65('0x577')]+'\x20selected'+_0x526f65('0x25e0'))[_0x526f65('0x7a7')](_0x526f65('0x81c'))['targetEvent'](_0xc75a43)['ok']('OK')[_0x526f65('0x3b5')](_0x526f65('0x284b'));_0x32d3fe['show'](_0x208545)[_0x526f65('0x21ad')](function(){_0xc88964['selectedPlugins']['forEach'](function(_0x40f8bc){_0x33ce10(_0x40f8bc);}),_0xc88964['selectedPlugins']=[];});}function _0x333115(){var _0x1aa432=_0x6488c4;_0xc88964[_0x1aa432('0x250f')]=[];}function _0x38a59d(){var _0x4ffd8a=_0x6488c4;_0xc88964[_0x4ffd8a('0x250f')]=_0xc88964[_0x4ffd8a('0x22fe')][_0x4ffd8a('0x1b33')];}function _0x2c661d(_0x238082){var _0x44ea1b=_0x6488c4;_0x32d3fe['show']({'controller':_0x44ea1b('0x1e70'),'controllerAs':'vm','templateUrl':_0x41effa,'parent':angular[_0x44ea1b('0x1676')](_0x573a1c[_0x44ea1b('0x2452')]),'targetEvent':_0x238082,'clickOutsideToClose':!![],'locals':{'plugins':_0xc88964[_0x44ea1b('0x22fe')][_0x44ea1b('0x1b33')]}});}}const _0x2bc4fd=_0x35353b;_0x251f54[_0x3877e3('0x1a81')]=[_0x3877e3('0x26'),_0x3877e3('0x1850'),'toasty',_0x3877e3('0x22fe'),'api',_0x3877e3('0x15bc')];function _0x251f54(_0x427fe6,_0xd55af2,_0x4822d,_0x1459c4,_0x195d88,_0x101808){var _0x389293=_0x3877e3,_0x20d0df=this,_0x4ba4df=0x2,_0x1cf0ce=_0x4ba4df*0x400*0x400;_0x20d0df['currentUser']=_0x101808[_0x389293('0x15ed')](),_0x20d0df['errors']=[],_0x20d0df[_0x389293('0x4b4')]='MARKETPLACE.UPLOAD_PLUGIN',_0x20d0df[_0x389293('0x22fe')]=_0x1459c4,_0x20d0df['uploadPlugins']=[],_0x20d0df['uploadState']=_0x389293('0x983'),_0x20d0df[_0x389293('0x2048')]={},_0x20d0df[_0x389293('0x467')]={'maxChunkRetries':0x1,'chunkSize':_0x1cf0ce,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![],'target':_0x389293('0xca8')},_0x20d0df[_0x389293('0x1413')]={'flow':{}},_0x20d0df[_0x389293('0x8c3')]=![],_0x20d0df[_0x389293('0x20d9')]=_0x589d5b,_0x20d0df[_0x389293('0x12d0')]=_0x40b00a,_0x20d0df['fileSuccess']=_0xf9d924,_0x20d0df['uploadError']=_0x3bdd58,_0x20d0df['uploadComplete']=_0x2e37ee,_0x20d0df[_0x389293('0x167')]=_0x405a83;function _0x589d5b(_0x2270b4){var _0xc697aa=_0x389293,_0x318c0a=[_0xc697aa('0x2723')];if(!_0x86640f()['includes'](_0x318c0a,_0x2270b4['getExtension']()))return _0x4822d[_0xc697aa('0x2092')]({'title':_0xc697aa('0x397')+_0x2270b4[_0xc697aa('0x9bb')](),'msg':_0xc697aa('0x156b')+_0x318c0a[_0xc697aa('0x136')]()}),![];if(_0x2270b4[_0xc697aa('0x337')]>_0x1cf0ce)return _0x4822d['error']({'title':'File\x20too\x20big','msg':_0xc697aa('0xc3a')+_0x4ba4df+'MB'}),![];return _0x20d0df[_0xc697aa('0x2048')]={'id':_0x2270b4['uniqueIdentifier'],'file':_0x2270b4},_0x20d0df['uploadPlugins'][_0xc697aa('0xd0c')](_0x20d0df[_0xc697aa('0x2048')]),!![];}function _0x40b00a(){var _0x4bf235=_0x389293;_0x20d0df[_0x4bf235('0x800')]=_0x4bf235('0x326'),_0x20d0df['ngFlow']['flow'][_0x4bf235('0x1dd3')][_0x4bf235('0x4d8')]={'X-Requested-With':'XMLHttpRequest','Authorization':'Bearer\x20'+_0x427fe6[_0x4bf235('0x595')]('motion.token')},_0x20d0df[_0x4bf235('0x1413')][_0x4bf235('0x1d76')][_0x4bf235('0x1dd3')][_0x4bf235('0x77')]={'role':_0x20d0df[_0x4bf235('0x123f')][_0x4bf235('0x25c8')],'userProfileId':_0x20d0df[_0x4bf235('0x123f')][_0x4bf235('0x1618')]},_0x20d0df[_0x4bf235('0x1413')][_0x4bf235('0x1d76')][_0x4bf235('0x12d0')]();}function _0xf9d924(_0x5808c4,_0x141cb3){var _0x1f3bf5=_0x389293;_0x20d0df[_0x1f3bf5('0x22fe')][_0x1f3bf5('0xd0c')](JSON[_0x1f3bf5('0x399')](_0x141cb3)),angular[_0x1f3bf5('0x1a52')](_0x20d0df['uploadPlugins'],function(_0x5dbb0d){var _0x5c3358=_0x1f3bf5;if(_0x5dbb0d['id']===_0x5808c4['uniqueIdentifier']){var _0x24f914=new FileReader();_0x24f914[_0x5c3358('0x1e50')](_0x5dbb0d[_0x5c3358('0x18a9')][_0x5c3358('0x18a9')]),_0x24f914[_0x5c3358('0x1efd')]=function(_0x19a0cf){var _0x1647b7=_0x5c3358;_0x5dbb0d[_0x1647b7('0x770')]=_0x19a0cf[_0x1647b7('0x14a5')][_0x1647b7('0x8c7')];};}});}function _0x3bdd58(){var _0x32cf93=_0x389293;_0x20d0df[_0x32cf93('0x1413')][_0x32cf93('0x1d76')][_0x32cf93('0x3b5')](),_0x4822d['error']({'title':_0x32cf93('0xd07'),'msg':_0x32cf93('0x1b66')}),_0x20d0df[_0x32cf93('0x800')]=_0x32cf93('0xf58');}function _0x2e37ee(){var _0x74040f=_0x389293;_0x20d0df[_0x74040f('0x800')]!==_0x74040f('0xf58')&&(_0x20d0df[_0x74040f('0x800')]=_0x74040f('0x352'),_0x4822d[_0x74040f('0xdb1')]({'title':_0x74040f('0x670'),'msg':_0x20d0df[_0x74040f('0x2048')][_0x74040f('0x18a9')][_0x74040f('0x19fe')]+'\x20uploaded\x20successfully'}));}function _0x405a83(){var _0x2e7c74=_0x389293;_0xd55af2[_0x2e7c74('0x1c24')]();}}const _0x273924=_0x251f54;_0x295d24[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c'),_0x3877e3('0x972')];function _0x295d24(_0x36a594,_0x469b2f){var _0xfe5a39=_0x3877e3;_0x36a594[_0xfe5a39('0x27e')](_0xfe5a39('0x1965'),{'abstract':!![],'url':_0xfe5a39('0xe2c')})['state'](_0xfe5a39('0x63b'),{'url':_0xfe5a39('0x1578'),'views':{'content@app':{'templateUrl':_0x21875e,'controller':'MarketplacePluginsController\x20as\x20vm'}},'resolve':{'plugins':[_0xfe5a39('0x354'),'Auth',function _0xef6a5(_0x1d30f5,_0x5ad21d){var _0x27fbbb=_0xfe5a39;return _0x5ad21d[_0x27fbbb('0x21de')](_0x27fbbb('0x1bd8'))?_0x1d30f5[_0x27fbbb('0x8ac')](_0x27fbbb('0xc79'),{'fields':_0x27fbbb('0x1df7'),'sort':_0x27fbbb('0x19fe'),'limit':0xa,'offset':0x0}):_0x1d30f5[_0x27fbbb('0x8ac')](_0x27fbbb('0x52f'),{'id':_0x5ad21d['getCurrentUser']()[_0x27fbbb('0x1618')],'section':'Plugins','fields':_0x27fbbb('0x1df7'),'sort':_0x27fbbb('0x19fe'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0xfe5a39('0x15bc'),function _0x3ad6f0(_0x2a0c55,_0x5e0d68){var _0x1d5728=_0xfe5a39;return _0x5e0d68[_0x1d5728('0x21de')](_0x1d5728('0x1bd8'))?null:_0x2a0c55[_0x1d5728('0x8ac')]('userProfile@get',{'fields':_0x1d5728('0x1a00'),'id':_0x5e0d68[_0x1d5728('0x15ed')]()[_0x1d5728('0x1618')]});}],'userProfileSection':[_0xfe5a39('0x354'),'Auth',function _0x23e249(_0xc7cd86,_0x48c56a){var _0x41a44e=_0xfe5a39;return _0x48c56a[_0x41a44e('0x21de')](_0x41a44e('0x1bd8'))?null:_0xc7cd86['resolve'](_0x41a44e('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x48c56a[_0x41a44e('0x15ed')]()[_0x41a44e('0x1618')],'sectionId':0x709});}]},'authenticate':!![],'permissionId':0x709,'bodyClass':_0xfe5a39('0x2635')})[_0xfe5a39('0x27e')](_0xfe5a39('0x274'),{'url':_0xfe5a39('0x17f5'),'params':{'plugin':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4995e9,'controller':_0xfe5a39('0x7a6')}},'resolve':{'plugin':['apiResolver',_0xfe5a39('0x114e'),function _0x2698e4(_0x486b09,_0x5a0fa3){var _0x58898d=_0xfe5a39;return _0x486b09['resolve'](_0x58898d('0xc79'),{'fields':'createdAt,updatedAt,id,name,type,active,description,icon,sidebar,path,adminUrl,agentUrl,scriptName,scriptPath,version','id':_0x5a0fa3['id']});}],'userProfileSection':['apiResolver',_0xfe5a39('0x15bc'),function _0x5ec07b(_0x2a8972,_0x799c65){var _0x1ca05b=_0xfe5a39;return _0x2a8972[_0x1ca05b('0x8ac')]('userProfileSection@get',{'fields':_0x1ca05b('0x1852'),'userProfileId':_0x799c65[_0x1ca05b('0x15ed')]()[_0x1ca05b('0x1618')],'sectionId':0x709});}]},'authenticate':!![],'permissionId':0x709,'bodyClass':_0xfe5a39('0x2635')}),_0x469b2f[_0xfe5a39('0x20ab')]('app/main/apps/marketplace');}angular[_0x3877e3('0x20d5')](_0x3877e3('0x1965'),[_0x3877e3('0x240c'),_0x3877e3('0x1b0'),_0x3877e3('0xca'),'flow',_0x3877e3('0x2437'),_0x3877e3('0x25c7'),_0x3877e3('0x1182'),_0x3877e3('0x264a'),_0x3877e3('0x19'),'mdPickers',_0x3877e3('0xc90'),_0x3877e3('0x56d'),_0x3877e3('0xe2f'),_0x3877e3('0x10c'),_0x3877e3('0xf61'),_0x3877e3('0xe39'),'angularMaterialFormBuilder',_0x3877e3('0x27ba'),'chart.js','angular.filter'])[_0x3877e3('0x13')](_0x295d24)[_0x3877e3('0x1d5a')](_0x3877e3('0xc8'),_0x3f67df)[_0x3877e3('0x1d5a')](_0x3877e3('0xa4b'),_0x5514e6)[_0x3877e3('0x1d5a')](_0x3877e3('0x1df'),_0x2bc4fd)[_0x3877e3('0x1d5a')](_0x3877e3('0x1e70'),_0x273924);const _0x2dece0=_0x398308['p']+_0x3877e3('0x11a9');_0x2af34d[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),_0x3877e3('0x95a'),_0x3877e3('0x73f'),_0x3877e3('0xccd'),_0x3877e3('0x25d8'),_0x3877e3('0x15bc')];function _0x2af34d(_0xc2617c,_0xa7eed7,_0x127746,_0x335e60,_0x433e07,_0x22f19f){var _0x522cf5=_0x3877e3,_0x91c4fd=this;_0x91c4fd[_0x522cf5('0x123f')]=_0x22f19f[_0x522cf5('0x15ed')](),_0x91c4fd[_0x522cf5('0x2048')]={},_0x91c4fd[_0x522cf5('0x271e')]=_0x1e1b9a,_0x335e60[_0x522cf5('0x2048')][_0x522cf5('0x595')]({'id':_0xc2617c[_0x522cf5('0x171b')]['id']})[_0x522cf5('0x1376')][_0x522cf5('0x21ad')](function(_0x2d898f){var _0x31d39c=_0x522cf5;if(_0x2d898f)return _0x91c4fd['plugin']=_0x2d898f,_0x335e60[_0x31d39c('0x2048')][_0x31d39c('0x595')]({'id':_0x91c4fd[_0x31d39c('0x2048')]['id']})[_0x31d39c('0x1376')];})[_0x522cf5('0x1c1d')](function(){var _0x130126=_0x522cf5;_0x91c4fd[_0x130126('0x2048')]=undefined;});function _0x1e1b9a(){var _0x36b547=_0x522cf5;return _0x127746[_0x36b547('0x2684')](_0x91c4fd[_0x36b547('0x2048')][_0x36b547('0x2371')]);}}const _0x4808ce=_0x2af34d;_0x460846[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c')];function _0x460846(_0x42e14d){var _0x3c557b=_0x3877e3;_0x42e14d['state'](_0x3c557b('0x2383'),{'url':'/plugin/:id','views':{'content@app':{'templateUrl':_0x2dece0,'controller':_0x3c557b('0x52')}},'resolve':{},'authenticate':!![],'bodyClass':_0x3c557b('0x22fe')});}angular['module'](_0x3877e3('0x2383'),[])[_0x3877e3('0x13')](_0x460846)[_0x3877e3('0x1d5a')]('PluginController',_0x4808ce),_0x4e1880[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c'),'$translatePartialLoaderProvider'];function _0x4e1880(_0x1ec19a,_0x3a5c0d){var _0x57b598=_0x3877e3;_0x1ec19a['state']('app.plugins',{'abstract':!![],'url':'/plugins'}),_0x3a5c0d[_0x57b598('0x20ab')](_0x57b598('0xbc0'));}angular[_0x3877e3('0x20d5')](_0x3877e3('0xe32'),[_0x3877e3('0x240c'),_0x3877e3('0x1b0'),_0x3877e3('0xca'),_0x3877e3('0x1d76'),_0x3877e3('0x2437'),_0x3877e3('0x25c7'),_0x3877e3('0x1182'),_0x3877e3('0x264a'),_0x3877e3('0x19'),_0x3877e3('0x335'),'mwFormBuilder',_0x3877e3('0x56d'),_0x3877e3('0xe2f'),_0x3877e3('0x10c'),_0x3877e3('0xf61'),'ngEmbed',_0x3877e3('0x25a2'),_0x3877e3('0x27ba'),_0x3877e3('0x9e0'),_0x3877e3('0x1c54'),_0x3877e3('0x2383')])['config'](_0x4e1880);const _0x329ce1=_0x398308['p']+'src/js/modules/main/apps/video/views/screenRecordings/screenRecordings.html/screenRecordings-[chunkhash].html';_0x3d0644[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$state',_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q','$translate',_0x3877e3('0x1908'),_0x3877e3('0x18e4'),_0x3877e3('0xcf2'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x3d0644(_0x38821c,_0x25dbe1,_0x4c8bbd,_0x20f491,_0x159c22,_0x3c6af7,_0x31af06,_0x576392,_0x946f03,_0xfa2f3e,_0x28e4ec,_0x5974f9,_0x1bc7e9,_0x3d7d5f){var _0x1e4a98=_0x3877e3,_0x2f40c4=this;_0x2f40c4[_0x1e4a98('0x123f')]=_0x28e4ec['getCurrentUser'](),_0x2f40c4[_0x1e4a98('0x1a69')]=[],_0x2f40c4['setting']=_0x1bc7e9,_0x2f40c4[_0x1e4a98('0x2ff')]=_0x5974f9,_0x2f40c4['crudPermissions']=_0x3d7d5f,_0x2f40c4['hasModulePermissions']={},_0x2f40c4[_0x1e4a98('0x1432')]=_0x2f40c4['setting']&&_0x2f40c4[_0x1e4a98('0x21e')][_0x1e4a98('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2f40c4[_0x1e4a98('0x4b4')]=_0x1e4a98('0x1832'),_0x2f40c4[_0x1e4a98('0xcf2')]=angular[_0x1e4a98('0xd75')](_0x946f03),_0x2f40c4[_0x1e4a98('0x18e4')]=_0x576392,_0x2f40c4[_0x1e4a98('0x1552')]=![];!_0x2f40c4[_0x1e4a98('0xcf2')]&&(_0x2f40c4[_0x1e4a98('0xcf2')]={},_0x2f40c4[_0x1e4a98('0x4b4')]=_0x1e4a98('0x1dae'),_0x2f40c4[_0x1e4a98('0x1552')]=!![]);_0x2f40c4[_0x1e4a98('0xe9c')]=_0x5c6567,_0x2f40c4['savescreenRecording']=_0x4eaf43,_0x2f40c4[_0x1e4a98('0x21cd')]=_0x1e200d,_0x2f40c4[_0x1e4a98('0x279')]=_0x423405,_0x2f40c4[_0x1e4a98('0x167')]=_0x2328a0,_0xfa2f3e[_0x1e4a98('0x1775')][_0x1e4a98('0x595')]({'fields':_0x1e4a98('0x2326'),'sort':_0x1e4a98('0x19fe'),'nolimit':_0x1e4a98('0x19bd')})[_0x1e4a98('0x1376')]['then'](function(_0x1b3573){var _0x2c2de0=_0x1e4a98;_0x2f40c4[_0x2c2de0('0x188e')]=_0x1b3573['rows']||[];})[_0x1e4a98('0x1c1d')](function(_0x423482){var _0x1bb10b=_0x1e4a98;_0x31af06['error']({'title':_0x423482[_0x1bb10b('0x209')]?_0x1bb10b('0x22d')+_0x423482[_0x1bb10b('0x209')]+_0x1bb10b('0xa99')+_0x423482[_0x1bb10b('0x1808')]:_0x1bb10b('0x2158'),'msg':_0x423482['data']?JSON[_0x1bb10b('0x25e')](_0x423482['data']):_0x423482[_0x1bb10b('0x174f')]()});});function _0x5c6567(){var _0x137f98=_0x1e4a98;_0x2f40c4[_0x137f98('0x1a69')]=[],_0xfa2f3e['screenRecording'][_0x137f98('0x186f')](_0x2f40c4[_0x137f98('0xcf2')])[_0x137f98('0x1376')][_0x137f98('0x21ad')](function(_0x56906d){var _0x127178=_0x137f98;_0x2f40c4[_0x127178('0x18e4')][_0x127178('0xd0c')](_0x56906d[_0x127178('0x3bc')]()),_0x31af06[_0x127178('0xdb1')]({'title':_0x127178('0x2391'),'msg':_0x2f40c4[_0x127178('0xcf2')][_0x127178('0x19fe')]?_0x2f40c4['screenRecording'][_0x127178('0x19fe')]+'\x20has\x20been\x20created!':''}),_0x2328a0(_0x56906d);})[_0x137f98('0x1c1d')](function(_0x49ae8a){var _0x11eefb=_0x137f98;if(_0x49ae8a[_0x11eefb('0x11c2')]&&_0x49ae8a[_0x11eefb('0x11c2')][_0x11eefb('0x1a69')]&&_0x49ae8a[_0x11eefb('0x11c2')][_0x11eefb('0x1a69')][_0x11eefb('0x577')]){_0x2f40c4[_0x11eefb('0x1a69')]=_0x49ae8a[_0x11eefb('0x11c2')]['errors']||[{'message':_0x49ae8a['toString'](),'type':_0x11eefb('0x2706')}];for(var _0x42f3ed=0x0;_0x42f3ed<_0x49ae8a[_0x11eefb('0x11c2')][_0x11eefb('0x1a69')][_0x11eefb('0x577')];_0x42f3ed+=0x1){_0x31af06[_0x11eefb('0x2092')]({'title':_0x49ae8a['data']['errors'][_0x42f3ed][_0x11eefb('0x7fa')],'msg':_0x49ae8a[_0x11eefb('0x11c2')][_0x11eefb('0x1a69')][_0x42f3ed][_0x11eefb('0x1224')]});}}else _0x31af06['error']({'title':_0x49ae8a['status']?'API:'+_0x49ae8a[_0x11eefb('0x209')]+_0x11eefb('0xa99')+_0x49ae8a[_0x11eefb('0x1808')]:'api.screenRecording.save','msg':_0x49ae8a[_0x11eefb('0x11c2')]?JSON[_0x11eefb('0x25e')](_0x49ae8a[_0x11eefb('0x11c2')]['message']):_0x49ae8a[_0x11eefb('0x174f')]()});});}function _0x4eaf43(){var _0x255d23=_0x1e4a98;_0x2f40c4[_0x255d23('0x1a69')]=[],_0xfa2f3e[_0x255d23('0xcf2')]['update']({'id':_0x2f40c4[_0x255d23('0xcf2')]['id']},_0x2f40c4[_0x255d23('0xcf2')])['$promise'][_0x255d23('0x21ad')](function(_0x4d69d3){var _0x4524ce=_0x255d23,_0xab30fe=_0x86640f()[_0x4524ce('0x1d2e')](_0x2f40c4[_0x4524ce('0x18e4')],{'id':_0x4d69d3['id']});_0xab30fe&&_0x86640f()['merge'](_0xab30fe,_0x86640f()['pick'](_0x4d69d3[_0x4524ce('0x3bc')](),_0x86640f()[_0x4524ce('0x223b')](_0xab30fe))),_0x31af06[_0x4524ce('0xdb1')]({'title':_0x4524ce('0x18b'),'msg':_0x2f40c4[_0x4524ce('0xcf2')][_0x4524ce('0x19fe')]?_0x2f40c4[_0x4524ce('0xcf2')][_0x4524ce('0x19fe')]+'\x20has\x20been\x20saved!':''}),_0x2328a0(_0x4d69d3);})[_0x255d23('0x1c1d')](function(_0x5b6ca1){var _0x344f12=_0x255d23;if(_0x5b6ca1[_0x344f12('0x11c2')]&&_0x5b6ca1['data'][_0x344f12('0x1a69')]&&_0x5b6ca1[_0x344f12('0x11c2')][_0x344f12('0x1a69')]['length']){_0x2f40c4['errors']=_0x5b6ca1[_0x344f12('0x11c2')][_0x344f12('0x1a69')]||[{'message':_0x5b6ca1['toString'](),'type':'api.screenRecording.update'}];for(var _0x5f1ff6=0x0;_0x5f1ff6<_0x5b6ca1[_0x344f12('0x11c2')][_0x344f12('0x1a69')][_0x344f12('0x577')];_0x5f1ff6++){_0x31af06[_0x344f12('0x2092')]({'title':_0x5b6ca1[_0x344f12('0x11c2')][_0x344f12('0x1a69')][_0x5f1ff6][_0x344f12('0x7fa')],'msg':_0x5b6ca1[_0x344f12('0x11c2')]['errors'][_0x5f1ff6][_0x344f12('0x1224')]});}}else _0x31af06[_0x344f12('0x2092')]({'title':_0x5b6ca1[_0x344f12('0x209')]?_0x344f12('0x22d')+_0x5b6ca1[_0x344f12('0x209')]+_0x344f12('0xa99')+_0x5b6ca1['statusText']:_0x344f12('0x21d7'),'msg':_0x5b6ca1[_0x344f12('0x11c2')]?JSON[_0x344f12('0x25e')](_0x5b6ca1[_0x344f12('0x11c2')][_0x344f12('0x1224')]):_0x5b6ca1[_0x344f12('0x174f')]()});});}function _0x1e200d(_0x407564){var _0x5646bf=_0x1e4a98;_0x2f40c4[_0x5646bf('0x1a69')]=[];var _0x50639d=_0x20f491[_0x5646bf('0xa33')]()['title'](_0x5646bf('0x196b'))['content'](_0x5646bf('0x1276'))['ariaLabel']('Delete\x20screenRecording')['ok']('Delete')[_0x5646bf('0x3b5')](_0x5646bf('0x1f40'))[_0x5646bf('0x1e6d')](_0x407564);_0x20f491['show'](_0x50639d)[_0x5646bf('0x21ad')](function(){var _0x3e1395=_0x5646bf;_0xfa2f3e[_0x3e1395('0xcf2')][_0x3e1395('0x1164')]({'id':_0x2f40c4[_0x3e1395('0xcf2')]['id']})['$promise'][_0x3e1395('0x21ad')](function(){var _0x49eb95=_0x3e1395;_0x86640f()[_0x49eb95('0x16a2')](_0x2f40c4[_0x49eb95('0x18e4')],{'id':_0x2f40c4['screenRecording']['id']}),_0x31af06[_0x49eb95('0xdb1')]({'title':_0x49eb95('0x225'),'msg':(_0x2f40c4[_0x49eb95('0xcf2')][_0x49eb95('0x19fe')]||_0x49eb95('0xcf2'))+_0x49eb95('0xb4a')}),_0x2328a0(_0x2f40c4[_0x49eb95('0xcf2')]);})['catch'](function(_0x7b5851){var _0x6cbb7b=_0x3e1395;if(_0x7b5851[_0x6cbb7b('0x11c2')]&&_0x7b5851['data'][_0x6cbb7b('0x1a69')]&&_0x7b5851[_0x6cbb7b('0x11c2')][_0x6cbb7b('0x1a69')][_0x6cbb7b('0x577')]){_0x2f40c4[_0x6cbb7b('0x1a69')]=_0x7b5851['data'][_0x6cbb7b('0x1a69')]||[{'message':_0x7b5851['toString'](),'type':_0x6cbb7b('0x9ad')}];for(var _0x1c422b=0x0;_0x1c422b<_0x7b5851['data'][_0x6cbb7b('0x1a69')][_0x6cbb7b('0x577')];_0x1c422b++){_0x31af06[_0x6cbb7b('0x2092')]({'title':_0x7b5851[_0x6cbb7b('0x11c2')][_0x6cbb7b('0x1a69')][_0x1c422b]['type'],'msg':_0x7b5851[_0x6cbb7b('0x11c2')]['errors'][_0x1c422b]['message']});}}else _0x31af06[_0x6cbb7b('0x2092')]({'title':_0x7b5851[_0x6cbb7b('0x209')]?_0x6cbb7b('0x22d')+_0x7b5851[_0x6cbb7b('0x209')]+_0x6cbb7b('0xa99')+_0x7b5851[_0x6cbb7b('0x1808')]:_0x6cbb7b('0x9ad'),'msg':_0x7b5851[_0x6cbb7b('0x11c2')]?JSON[_0x6cbb7b('0x25e')](_0x7b5851[_0x6cbb7b('0x11c2')]['message']):_0x7b5851[_0x6cbb7b('0x1224')]||_0x7b5851[_0x6cbb7b('0x174f')]()});});},function(){});}function _0x423405(_0x2c16df){return _0x2c16df===null?undefined:new Date(_0x2c16df);}function _0x2328a0(_0x44a30f){var _0x2394e0=_0x1e4a98;_0x20f491[_0x2394e0('0x1c24')](_0x44a30f);}}const _0x55962e=_0x3d0644;_0x28ed5b[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0x1850'),_0x3877e3('0x1908'),'api',_0x3877e3('0xab3'),_0x3877e3('0x5de'),_0x3877e3('0x214'),_0x3877e3('0x17d3'),'elementTag','$q'];function _0x28ed5b(_0x6a6324,_0x4b4302,_0x4ceeea,_0x1d7c99,_0x25ff48,_0x115db6,_0x3627ee,_0x4dd298,_0x1644a7,_0x5a35c7){var _0x59a3d6=_0x3877e3,_0x561b52=this;_0x561b52[_0x59a3d6('0x27c0')]=![],_0x561b52[_0x59a3d6('0xab3')]=Object[_0x59a3d6('0x1902')]({},_0x25ff48),_0x561b52[_0x59a3d6('0x25ee')]='screenRecording',_0x561b52[_0x59a3d6('0x1676')]=_0x1644a7,_0x561b52[_0x59a3d6('0x5de')]=Object[_0x59a3d6('0x1902')]({},_0x115db6),_0x561b52[_0x59a3d6('0x1d02')]=_0x4dd298,_0x561b52[_0x59a3d6('0x214')]=_0x3627ee,_0x561b52['app']='video',_0x561b52[_0x59a3d6('0x55d')]=_0x59a3d6('0xcf2'),console[_0x59a3d6('0x6fb')](_0x59a3d6('0x199b'),_0x561b52[_0x59a3d6('0x1d02')]),console[_0x59a3d6('0x6fb')](_0x59a3d6('0xb20'),_0x561b52[_0x59a3d6('0xab3')][_0x561b52[_0x59a3d6('0x1d02')]]),_0x561b52[_0x59a3d6('0x25a4')]=_0x561b52[_0x59a3d6('0xab3')][_0x561b52[_0x59a3d6('0x1d02')]][_0x59a3d6('0x2004')]('/')>-0x1?_0x561b52[_0x59a3d6('0xab3')][_0x561b52[_0x59a3d6('0x1d02')]][_0x59a3d6('0x166e')](_0x561b52['recording'][_0x561b52['path']][_0x59a3d6('0x4ff')]('/')+0x1):_0x561b52[_0x59a3d6('0xab3')][_0x561b52[_0x59a3d6('0x1d02')]][_0x59a3d6('0x2004')]('\x5c')>-0x1?_0x561b52[_0x59a3d6('0xab3')][_0x561b52['path']][_0x59a3d6('0x166e')](_0x561b52[_0x59a3d6('0xab3')][_0x561b52['path']][_0x59a3d6('0x4ff')]('\x5c')+0x1):_0x561b52[_0x59a3d6('0xab3')][_0x561b52[_0x59a3d6('0x1d02')]],_0x561b52[_0x59a3d6('0x153')]=![];_0x86640f()[_0x59a3d6('0x1c7')](_0x561b52[_0x59a3d6('0xab3')][_0x59a3d6('0x153')])&&(_0x561b52[_0x59a3d6('0xab3')]['format']=_0x561b52['filename']['slice'](_0x561b52[_0x59a3d6('0x25a4')]['lastIndexOf']('.')));(_0x561b52[_0x59a3d6('0xab3')][_0x59a3d6('0x153')]===_0x59a3d6('0x2220')&&_0x561b52[_0x59a3d6('0x1676')]===_0x59a3d6('0xf21')||_0x561b52[_0x59a3d6('0xab3')][_0x59a3d6('0x153')]===_0x59a3d6('0x129a')&&_0x561b52['element']===_0x59a3d6('0x2631'))&&(_0x561b52[_0x59a3d6('0x153')]=!![]);_0x561b52[_0x59a3d6('0x1625')]=!![];_0x561b52[_0x59a3d6('0x153')]&&_0x3b3f43();function _0x3b3f43(){var _0x29fc18=_0x59a3d6,_0x370313=_0x5a35c7['defer']();return _0x1d7c99[_0x29fc18('0xcf2')]['download']({'id':_0x561b52[_0x29fc18('0xab3')]['id'],'path':String(_0x561b52['path'])})[_0x29fc18('0x1376')][_0x29fc18('0x21ad')](function(){_0x561b52['format']=!![],_0x561b52['found']=!![],_0x370313['resolve']();})['catch'](function(){var _0x2dfb9e=_0x29fc18;console[_0x2dfb9e('0x6fb')](_0x2dfb9e('0xc8e')),_0x561b52[_0x2dfb9e('0x153')]=![],_0x561b52[_0x2dfb9e('0x1625')]=![],_0x370313[_0x2dfb9e('0x8ac')]();}),_0x370313['promise'];}if(!_0x86640f()['isNil'](_0x115db6[_0x59a3d6('0x156f')])&&_0x115db6['properties']){_0x561b52[_0x59a3d6('0x156f')]=Object[_0x59a3d6('0x1902')]({},_0x25ff48);var _0x5ddb24=Object['keys'](_0x25ff48);_0x5ddb24[_0x59a3d6('0x1a52')](function(_0x1c2402){var _0x1ff838=_0x59a3d6;String(_0x1c2402[0x0][_0x1ff838('0x2e8')]())===String(_0x1c2402[0x0])&&delete _0x561b52['properties'][_0x1c2402];}),_0x561b52[_0x59a3d6('0x46e')]={};if(!_0x86640f()[_0x59a3d6('0x1c7')](_0x115db6['propertiesList'])&&_0x115db6[_0x59a3d6('0x12a2')][_0x59a3d6('0x577')]>0x0){_0x561b52[_0x59a3d6('0x46e')]=Object[_0x59a3d6('0x1902')]({},_0x25ff48);var _0x482b1c=_0x115db6['propertiesList'],_0x41617d=Object[_0x59a3d6('0x223b')](_0x25ff48),_0x5f336b=!![];_0x41617d['forEach'](function(_0x583d35){var _0x577d48=_0x59a3d6;_0x5f336b=!![],_0x482b1c[_0x577d48('0x1a52')](function(_0x13e4a4){String(_0x583d35)===String(_0x13e4a4)&&(_0x5f336b=![]);}),_0x5f336b&&delete _0x561b52[_0x577d48('0x46e')][_0x583d35];}),_0x561b52[_0x59a3d6('0x156f')]=_0x561b52[_0x59a3d6('0x46e')];}if(!_0x86640f()['isNil'](_0x115db6[_0x59a3d6('0xbef')])&&_0x115db6[_0x59a3d6('0xbef')][_0x59a3d6('0x577')]>0x0){_0x561b52[_0x59a3d6('0x1d9')]={};var _0x5e6dde=_0x115db6[_0x59a3d6('0xbef')];for(var _0x3eb813=0x0;_0x3eb813<_0x5e6dde[_0x59a3d6('0x577')];_0x3eb813++){var _0x3c9c47=_0x5e6dde[_0x3eb813][_0x59a3d6('0x1843')],_0x34e88c=_0x5e6dde[_0x3eb813][_0x59a3d6('0x55d')];for(var _0x10c78f=0x0;_0x10c78f<_0x3c9c47[_0x59a3d6('0x577')];_0x10c78f++){_0x561b52[_0x59a3d6('0x1d9')][_0x3c9c47[_0x10c78f][_0x59a3d6('0xc1e')]]=_0x25ff48[_0x34e88c][_0x3c9c47[_0x10c78f][_0x59a3d6('0xddb')]];}}_0x561b52['properties']=Object[_0x59a3d6('0x1902')]({},_0x561b52[_0x59a3d6('0x46e')],_0x561b52[_0x59a3d6('0x1d9')]);}}_0x561b52['closeDialog']=_0x4fd51c;function _0x4fd51c(){var _0x2bbdbf=_0x59a3d6;_0x4b4302[_0x2bbdbf('0x1c24')]();}}const _0x530f11=_0x28ed5b,_0x2f9a96=_0x398308['p']+'src/js/modules/main/apps/video/views/screenRecordings/create/dialog.html/dialog-[chunkhash].html',_0xde412c=_0x398308['p']+_0x3877e3('0x1b81');_0xea29c[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),'$mdSidenav',_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x13c1'),_0x3877e3('0x18e4'),'userProfile',_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e')];function _0xea29c(_0x5c486e,_0x4c8803,_0x5ded46,_0x3716fe,_0x585026,_0x38effe,_0x142682,_0x4d4172,_0x2bad4a,_0x284def,_0x3d51d5,_0x2a28e3,_0x2117bb,_0x4b41d2,_0x143833,_0x19551c,_0x3f6e57){var _0x1cb81e=_0x3877e3,_0x515d81=this;_0x515d81[_0x1cb81e('0x2ff')]=_0x19551c,_0x515d81['setting']=_0x3f6e57,_0x515d81[_0x1cb81e('0x123f')]=_0x143833[_0x1cb81e('0x15ed')](),_0x515d81[_0x1cb81e('0x18e4')]=_0x2bad4a||{'count':0x0,'rows':[]},_0x515d81['userProfile']=_0x284def,_0x515d81[_0x1cb81e('0xab4')]=_0x3d51d5&&_0x3d51d5[_0x1cb81e('0x205f')]==0x1?_0x3d51d5[_0x1cb81e('0x1b33')][0x0]:null,_0x515d81['crudPermissions']=_0x143833[_0x1cb81e('0x1778')](_0x515d81['userProfileSection']?_0x515d81[_0x1cb81e('0xab4')]['crudPermissions']:null),_0x515d81['table']='screenRecordings',_0x515d81[_0x1cb81e('0x11dc')]='',_0x515d81[_0x1cb81e('0x18cf')]=null,_0x515d81[_0x1cb81e('0x1b6e')]=[],_0x515d81[_0x1cb81e('0x77')]={'fields':_0x1cb81e('0x1238'),'createdAt':_0x1cb81e('0x1da6'),'includeAll':_0x1cb81e('0x19bd'),'sort':_0x1cb81e('0x33'),'limit':0xa,'page':0x1},_0x515d81[_0x1cb81e('0x77')][_0x1cb81e('0x23ae')]=_0x2117bb[_0x1cb81e('0xe1b')](),_0x515d81['quickFilters']=_0x1e7c49();function _0x1e7c49(){var _0x54681f=_0x1cb81e;return[{'name':_0x54681f('0x18a1'),'key':_0x54681f('0x23ae'),'type':_0x54681f('0x2457'),'label':_0x54681f('0x1b2e')}];}_0x515d81[_0x1cb81e('0xfa6')]=_0x34b079,_0x515d81[_0x1cb81e('0xf10')]=_0x511b2c,_0x515d81['deleteconfirm']=_0x28f162,_0x515d81[_0x1cb81e('0xdb1')]=_0x5bd0ea,_0x515d81[_0x1cb81e('0x13ae')]=_0x4308be,_0x515d81['createOrEditscreenRecording']=_0x40d800,_0x515d81[_0x1cb81e('0x21cd')]=_0xaeebca,_0x515d81[_0x1cb81e('0x14c4')]=_0x9e0b6e,_0x515d81[_0x1cb81e('0xea4')]=_0x80f116,_0x515d81[_0x1cb81e('0x700')]=_0x443efe,_0x515d81[_0x1cb81e('0x404')]=_0x303e4b,_0x515d81[_0x1cb81e('0x1efe')]=_0x36f194,_0x2a28e3[_0x1cb81e('0x1775')]['get']({'fields':_0x1cb81e('0x2326'),'sort':_0x1cb81e('0x19fe'),'nolimit':'true'})[_0x1cb81e('0x1376')][_0x1cb81e('0x21ad')](function(_0x494562){var _0x27b796=_0x1cb81e;_0x515d81[_0x27b796('0x188e')]=_0x494562[_0x27b796('0x1b33')]||[];})['catch'](function(_0xe5f728){var _0x2427b3=_0x1cb81e;_0x4b41d2[_0x2427b3('0x2092')]({'title':_0xe5f728[_0x2427b3('0x209')]?_0x2427b3('0x22d')+_0xe5f728[_0x2427b3('0x209')]+_0x2427b3('0xa99')+_0xe5f728['statusText']:_0x2427b3('0x2158'),'msg':_0xe5f728[_0x2427b3('0x11c2')]?JSON[_0x2427b3('0x25e')](_0xe5f728['data']):_0xe5f728[_0x2427b3('0x174f')]()});});function _0x34b079(_0x2f2c89,_0x3ae03c,_0x3e6d46,_0x215c71,_0x393291){var _0x102dc4=_0x1cb81e,_0x1c338f={'upperTitle':![],'lowerTitle':!![],'properties':!![],'propertiesIcon':_0x102dc4('0x201a'),'propertiesList':[_0x102dc4('0x153'),_0x102dc4('0xd26'),_0x102dc4('0x79e'),_0x102dc4('0x367'),_0x102dc4('0x1cf1'),_0x102dc4('0x23ae')],'extraData':[{'model':_0x102dc4('0x6e4'),'values':[{'key':_0x102dc4('0x19fe'),'text':_0x102dc4('0x1357')}]}]},_0x3a628e={};_0x3a628e[_0x102dc4('0x25ee')]=_0x102dc4('0xcf2'),_0x3a628e[_0x102dc4('0x19fe')]=_0x102dc4('0x18e4'),_0x3a628e[_0x102dc4('0x55d')]='screenRecording',_0x3a628e[_0x102dc4('0x3a7')]=_0x102dc4('0xcf2'),_0x215c71=String(_0x215c71);var _0x1817d3=String(_0x3e6d46);console[_0x102dc4('0x6fb')](_0x102dc4('0x21c0'),String(_0x3e6d46)),_0x585026[_0x102dc4('0x853')]({'controller':'ScreenRecordingplayController','controllerAs':'vm','templateUrl':_0xde412c,'parent':angular[_0x102dc4('0x1676')](_0x38effe[_0x102dc4('0x2452')]),'targetEvent':_0x3ae03c,'clickOutsideToClose':!![],'locals':{'recording':_0x2f2c89,'recordings':_0x515d81[_0x102dc4('0x18e4')][_0x102dc4('0x1b33')],'license':_0x515d81[_0x102dc4('0x2ff')],'setting':null,'item':_0x3a628e,'actionOptions':_0x1c338f,'label':_0x215c71,'varPath':_0x1817d3,'elementTag':String(_0x393291)}});}function _0x511b2c(_0x2440c7){var _0x2fce6=_0x1cb81e,_0x464e39=![],_0x3c638e=!_0x86640f()[_0x2fce6('0x1c7')](_0x2440c7['format'])?_0x2440c7[_0x2fce6('0x153')]:_0x2440c7[_0x2fce6('0x2228')][_0x2fce6('0x166e')](_0x2440c7[_0x2fce6('0x2228')]['lastIndexOf']('.'));_0x464e39=_0x3c638e===_0x2fce6('0x129a')?!![]:![];var _0xf346f3=_0x2440c7['value'][_0x2fce6('0x4ff')]('/')>-0x1?_0x2440c7[_0x2fce6('0x2228')]['substring'](_0x2440c7['value'][_0x2fce6('0x4ff')]('/')+0x1):_0x2440c7[_0x2fce6('0x2228')]['lastIndexOf']('\x5c')>-0x1?_0x2440c7[_0x2fce6('0x2228')]['substring'](_0x2440c7[_0x2fce6('0x2228')]['lastIndexOf']('\x5c')+0x1):_0x2440c7[_0x2fce6('0x2228')];return _0x2a28e3[_0x2fce6('0xcf2')][_0x2fce6('0xb0')]({'id':_0x2440c7['id']})['$promise']['then'](function(_0x2cbd47){var _0x1a802d=_0x2fce6,_0x1f2982=[_0x2cbd47[_0x1a802d('0x3da')]],_0x29cc6e=_0x1a802d('0xb0'),_0x3c1ce7=new Blob(_0x1f2982,{'type':_0x2cbd47['type']});_0x29cc6e=_0xf346f3;var _0x3ee09e=window['document'][_0x1a802d('0x162e')]('a');_0x3ee09e[_0x1a802d('0x127a')](_0x1a802d('0x69e'),URL['createObjectURL'](_0x3c1ce7)),_0x3ee09e[_0x1a802d('0x127a')](_0x1a802d('0xb0'),_0x29cc6e),document[_0x1a802d('0x2452')][_0x1a802d('0x14d0')](_0x3ee09e),_0x3ee09e['click']();})['catch'](function(_0x5eeab3){var _0x5377f3=_0x2fce6;if(_0x5eeab3['data']&&_0x5eeab3[_0x5377f3('0x11c2')][_0x5377f3('0x1a69')]&&_0x5eeab3[_0x5377f3('0x11c2')][_0x5377f3('0x1a69')][_0x5377f3('0x577')])for(var _0x5ec023=0x0;_0x5ec023<_0x5eeab3['data'][_0x5377f3('0x1a69')][_0x5377f3('0x577')];_0x5ec023++){_0x4b41d2['error']({'title':_0x5eeab3[_0x5377f3('0x11c2')]['errors'][_0x5ec023][_0x5377f3('0x7fa')],'msg':_0x5eeab3[_0x5377f3('0x11c2')][_0x5377f3('0x1a69')][_0x5ec023][_0x5377f3('0x1224')]});}else{if(String(_0x5eeab3[_0x5377f3('0x209')])===_0x5377f3('0x1cc6')&&_0x464e39===![])_0x4b41d2[_0x5377f3('0x231c')]({'title':_0x4d4172[_0x5377f3('0x183e')](_0x5377f3('0xfa9')),'msg':_0x4d4172[_0x5377f3('0x183e')](_0x5377f3('0x26a4'))});else String(_0x5eeab3[_0x5377f3('0x209')])===_0x5377f3('0x1cc6')?_0x4b41d2[_0x5377f3('0x231c')]({'title':_0x4d4172['instant'](_0x5377f3('0xfa9')),'msg':_0x4d4172['instant'](_0x5377f3('0x2499'))}):_0x4b41d2[_0x5377f3('0x2092')]({'title':_0x5eeab3[_0x5377f3('0x209')]?'API:'+_0x5eeab3[_0x5377f3('0x209')]+_0x5377f3('0xa99')+_0x5eeab3[_0x5377f3('0x1808')]:'api.screenRecording.save','msg':_0x5eeab3[_0x5377f3('0x11c2')]?JSON['stringify'](_0x5eeab3[_0x5377f3('0x11c2')]['message']):_0x5eeab3[_0x5377f3('0x174f')]()});}});}function _0x28f162(_0xc401dd,_0x277fb5){var _0x4a1042=_0x1cb81e,_0x11fa37=_0x585026[_0x4a1042('0xa33')]()[_0x4a1042('0x4b4')](_0x4a1042('0x25b6')+_0x86640f()[_0x4a1042('0x2159')]('screenRecording')+'?')[_0x4a1042('0x276b')](_0x4a1042('0x622')+(_0xc401dd[_0x4a1042('0x19fe')]||_0x4a1042('0xcf2'))+_0x4a1042('0x2135')+_0x4a1042('0x25e0'))[_0x4a1042('0x7a7')](_0x4a1042('0xbff'))['targetEvent'](_0x277fb5)['ok']('OK')[_0x4a1042('0x3b5')](_0x4a1042('0x284b'));_0x585026[_0x4a1042('0x853')](_0x11fa37)[_0x4a1042('0x21ad')](function(){_0xaeebca(_0xc401dd);},function(){var _0xb22af5=_0x4a1042;console['log'](_0xb22af5('0x284b'));});}var _0x4f1cb2=!![],_0x17af47=0x1;_0x5c486e[_0x1cb81e('0x10e8')](_0x1cb81e('0x1948'),function(_0x4e0a29,_0x20ac8b){var _0x4d0a13=_0x1cb81e;_0x4f1cb2?_0x142682(function(){_0x4f1cb2=![];}):(!_0x20ac8b&&(_0x17af47=_0x515d81[_0x4d0a13('0x77')][_0x4d0a13('0x2376')]),_0x4e0a29!==_0x20ac8b&&(_0x515d81['query'][_0x4d0a13('0x2376')]=0x1),!_0x4e0a29&&(_0x515d81[_0x4d0a13('0x77')][_0x4d0a13('0x2376')]=_0x17af47),_0x515d81[_0x4d0a13('0x13ae')]());});function _0x36f194(_0x816564){var _0x46b993=_0x1cb81e,_0x486f7a=Math['floor'](_0x816564/0x3e8%0x3c),_0x4eae92=Math['floor'](_0x816564/(0x3e8*0x3c)%0x3c),_0x3c2251=Math[_0x46b993('0x1b3a')](_0x816564/(0x3e8*0x3c*0x3c)%0x18),_0x35ce94=_0x3c2251<0xa?'0'+String(_0x3c2251):String(_0x3c2251),_0x43d79a=_0x4eae92<0xa?'0'+String(_0x4eae92):String(_0x4eae92),_0x4648d3=_0x486f7a<0xa?'0'+String(_0x486f7a):String(_0x486f7a);return _0x35ce94+':'+_0x43d79a+':'+_0x4648d3;}function _0x5bd0ea(_0x19a338){var _0x3a1d4d=_0x1cb81e;_0x515d81[_0x3a1d4d('0x18e4')]=_0x19a338||{'count':0x0,'rows':[]};}function _0x4308be(){var _0x413542=_0x1cb81e;_0x515d81[_0x413542('0x77')][_0x413542('0x15a5')]=(_0x515d81['query'][_0x413542('0x2376')]-0x1)*_0x515d81[_0x413542('0x77')][_0x413542('0x1f4a')],_0x143833[_0x413542('0x21de')](_0x413542('0x1bd8'))?_0x515d81[_0x413542('0x71b')]=_0x2a28e3[_0x413542('0xcf2')][_0x413542('0x595')](_0x515d81[_0x413542('0x77')],_0x5bd0ea)['$promise']:(_0x515d81[_0x413542('0x77')]['id']=_0x515d81[_0x413542('0x758')]['id'],_0x515d81[_0x413542('0x77')]['section']=_0x413542('0xadb'),_0x515d81[_0x413542('0x71b')]=_0x2a28e3['userProfile'][_0x413542('0x321')](_0x515d81[_0x413542('0x77')],_0x5bd0ea)[_0x413542('0x1376')]);}function _0x40d800(_0x1d69af,_0xc1ddcd){var _0x22692e=_0x1cb81e;_0x585026['show']({'controller':_0x22692e('0x2724'),'controllerAs':'vm','templateUrl':_0x2f9a96,'parent':angular[_0x22692e('0x1676')](_0x38effe[_0x22692e('0x2452')]),'targetEvent':_0x1d69af,'clickOutsideToClose':!![],'locals':{'screenRecording':_0xc1ddcd,'screenRecordings':_0x515d81['screenRecordings'][_0x22692e('0x1b33')],'license':_0x515d81[_0x22692e('0x2ff')],'setting':_0x515d81[_0x22692e('0x21e')],'crudPermissions':_0x515d81[_0x22692e('0x5ed')]}});}function _0xaeebca(_0x2eaa38){var _0x59096b=_0x1cb81e;_0x2a28e3[_0x59096b('0xcf2')][_0x59096b('0x1164')]({'id':_0x2eaa38['id']})[_0x59096b('0x1376')][_0x59096b('0x21ad')](function(){var _0x247dda=_0x59096b;_0x86640f()[_0x247dda('0x16a2')](_0x515d81['screenRecordings'][_0x247dda('0x1b33')],{'id':_0x2eaa38['id']}),_0x515d81[_0x247dda('0x18e4')]['count']-=0x1,!_0x515d81[_0x247dda('0x18e4')][_0x247dda('0x1b33')]['length']&&_0x515d81[_0x247dda('0x13ae')](),_0x4b41d2[_0x247dda('0xdb1')]({'title':_0x86640f()['startCase']('screenRecording')+_0x247dda('0xe64'),'msg':_0x2eaa38[_0x247dda('0x19fe')]?_0x2eaa38['name']+_0x247dda('0xb4a'):''});})[_0x59096b('0x1c1d')](function(_0x3a5327){var _0xa98fa2=_0x59096b;if(_0x3a5327[_0xa98fa2('0x11c2')]&&_0x3a5327[_0xa98fa2('0x11c2')][_0xa98fa2('0x1a69')]&&_0x3a5327[_0xa98fa2('0x11c2')]['errors']['length']){_0x515d81['errors']=_0x3a5327[_0xa98fa2('0x11c2')][_0xa98fa2('0x1a69')]||[{'message':_0x3a5327[_0xa98fa2('0x174f')](),'type':_0xa98fa2('0x107e')}];for(var _0x2bfcb5=0x0;_0x2bfcb5<_0x3a5327[_0xa98fa2('0x11c2')][_0xa98fa2('0x1a69')][_0xa98fa2('0x577')];_0x2bfcb5++){_0x4b41d2['error']({'title':_0x3a5327[_0xa98fa2('0x11c2')]['errors'][_0x2bfcb5][_0xa98fa2('0x7fa')],'msg':_0x3a5327[_0xa98fa2('0x11c2')]['errors'][_0x2bfcb5][_0xa98fa2('0x1224')]});}}else _0x4b41d2[_0xa98fa2('0x2092')]({'title':_0x3a5327[_0xa98fa2('0x209')]?'API:'+_0x3a5327[_0xa98fa2('0x209')]+_0xa98fa2('0xa99')+_0x3a5327[_0xa98fa2('0x1808')]:'SYSTEM:DELETEscreenRecording','msg':_0x3a5327['data']?JSON['stringify'](_0x3a5327[_0xa98fa2('0x11c2')][_0xa98fa2('0x1224')]):_0x3a5327[_0xa98fa2('0x1224')]||_0x3a5327[_0xa98fa2('0x174f')]()});});}function _0x9e0b6e(){var _0x4e4949=_0x1cb81e,_0x5044d4=angular[_0x4e4949('0xd75')](_0x515d81[_0x4e4949('0x1b6e')]);return _0x515d81['selectedScreenRecordings']=[],_0x5044d4;}function _0x80f116(_0x1df62d){var _0x401e8f=_0x1cb81e,_0x2467df=_0x585026[_0x401e8f('0xa33')]()['title'](_0x401e8f('0x1895'))[_0x401e8f('0x276b')](_0x401e8f('0x622')+_0x515d81[_0x401e8f('0x1b6e')][_0x401e8f('0x577')]+_0x401e8f('0xd74')+_0x401e8f('0x25e0'))[_0x401e8f('0x7a7')](_0x401e8f('0x7'))[_0x401e8f('0x1e6d')](_0x1df62d)['ok']('OK')[_0x401e8f('0x3b5')](_0x401e8f('0x284b'));_0x585026['show'](_0x2467df)[_0x401e8f('0x21ad')](function(){var _0x4827df=_0x401e8f;_0x515d81[_0x4827df('0x1b6e')][_0x4827df('0x1a52')](function(_0x3dcaa8){_0xaeebca(_0x3dcaa8);}),_0x515d81[_0x4827df('0x1b6e')]=[];});}function _0x443efe(){var _0xca7010=_0x1cb81e;_0x515d81[_0xca7010('0x1b6e')]=[];}function _0x303e4b(){var _0x7b8f72=_0x1cb81e;_0x515d81['selectedScreenRecordings']=_0x515d81[_0x7b8f72('0x18e4')][_0x7b8f72('0x1b33')];}}const _0x513a46=_0xea29c;_0x3c544b[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c'),_0x3877e3('0x972')];function _0x3c544b(_0x270eed,_0x33c52e){var _0x487048=_0x3877e3;_0x270eed[_0x487048('0x27e')](_0x487048('0x1f73'),{'abstract':!![],'url':_0x487048('0x1e4f')})[_0x487048('0x27e')](_0x487048('0x2307'),{'url':_0x487048('0x1f76'),'views':{'content@app':{'templateUrl':_0x329ce1,'controller':_0x487048('0x110a')}},'resolve':{'screenRecordings':[_0x487048('0x354'),_0x487048('0x15bc'),'msUtils',function _0x1c8de9(_0x3622fb,_0x103aab,_0x2425ec){var _0x5cd953=_0x487048;return _0x103aab[_0x5cd953('0x21de')]('admin')?_0x3622fb[_0x5cd953('0x8ac')](_0x5cd953('0x190d'),{'fields':'createdAt,updatedAt,id,interactionid,channel,format,value,rating,UserId,duration,startedAt,closedAt','createdAt':_0x2425ec['firstLastDayMonth'](),'includeAll':_0x5cd953('0x19bd'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x3622fb[_0x5cd953('0x8ac')](_0x5cd953('0x52f'),{'id':_0x103aab['getCurrentUser']()[_0x5cd953('0x1618')],'section':_0x5cd953('0xadb'),'fields':_0x5cd953('0x1238'),'createdAt':_0x2425ec[_0x5cd953('0xe1b')](),'includeAll':_0x5cd953('0x19bd'),'sort':_0x5cd953('0x33'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x487048('0x354'),'Auth',function _0x7521ad(_0x273b5c,_0x4c466c){var _0x338b0b=_0x487048;return _0x4c466c[_0x338b0b('0x21de')](_0x338b0b('0x1bd8'))?null:_0x273b5c[_0x338b0b('0x8ac')](_0x338b0b('0x1e1d'),{'fields':'id,name,crudPermissions','id':_0x4c466c[_0x338b0b('0x15ed')]()[_0x338b0b('0x1618')]});}],'userProfileSection':[_0x487048('0x354'),_0x487048('0x15bc'),function _0x37299f(_0x359d8d,_0x181ba7){var _0x24c49c=_0x487048;return _0x181ba7[_0x24c49c('0x21de')](_0x24c49c('0x1bd8'))?null:_0x359d8d['resolve'](_0x24c49c('0x222f'),{'fields':_0x24c49c('0x1852'),'userProfileId':_0x181ba7[_0x24c49c('0x15ed')]()['userProfileId'],'sectionId':0x7d1});}]},'authenticate':!![],'permissionId':0x7d1,'bodyClass':_0x487048('0x2631')}),_0x33c52e[_0x487048('0x20ab')](_0x487048('0x26a9'));}angular[_0x3877e3('0x20d5')]('app.video',[_0x3877e3('0x240c'),_0x3877e3('0x1b0'),_0x3877e3('0xca'),_0x3877e3('0x1d76'),_0x3877e3('0x2437'),_0x3877e3('0x25c7'),_0x3877e3('0x1182'),_0x3877e3('0x264a'),'ngAnimate',_0x3877e3('0x335'),_0x3877e3('0xc90'),_0x3877e3('0x56d'),_0x3877e3('0xe2f'),_0x3877e3('0x10c'),'angular-cron-jobs',_0x3877e3('0xe39'),_0x3877e3('0x25a2'),_0x3877e3('0x27ba'),_0x3877e3('0x9e0'),_0x3877e3('0x1c54')])[_0x3877e3('0x13')](_0x3c544b)[_0x3877e3('0x1d5a')](_0x3877e3('0x2724'),_0x55962e)[_0x3877e3('0x1d5a')]('ScreenRecordingplayController',_0x530f11)[_0x3877e3('0x1d5a')](_0x3877e3('0x19e9'),_0x513a46);const _0x469c52=_0x398308['p']+_0x3877e3('0x1e77'),_0x10835c=_0x398308['p']+'src/js/modules/main/apps/whatsapp/views/realtime/agents/view.html/view-[chunkhash].html',_0x4b6078=_0x398308['p']+_0x3877e3('0x1947');_0x289c5e[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$q',_0x3877e3('0x2313'),'$mdDialog','$document',_0x3877e3('0x143b'),'pauses',_0x3877e3('0xcb5'),'rpcAgents',_0x3877e3('0xccd'),_0x3877e3('0x25d8'),_0x3877e3('0x1908'),_0x3877e3('0x2703'),'userProfile',_0x3877e3('0xab4'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),'$interval'];function _0x289c5e(_0xce4b29,_0x5c38fd,_0x17b0c4,_0x3a3a31,_0x6ec67,_0x3f9d45,_0x2669b1,_0x393120,_0x4abef6,_0xcb097e,_0x20b9d7,_0xcbdde6,_0x48431f,_0x3d6666,_0x136e0b,_0x3474db,_0xfe8fd2,_0x17b24b){var _0x484cdc=_0x3877e3,_0x16e2e6=this,_0x23a837=[_0x484cdc('0x2154'),_0x484cdc('0x1ecb'),_0x484cdc('0x190e'),'lastPauseAt',_0x484cdc('0x1f37'),'lastPauseAt','internal',_0x484cdc('0x1ba3'),_0x484cdc('0x1785'),'openchannelPause',_0x484cdc('0x1396'),_0x484cdc('0x2826'),_0x484cdc('0x14bf'),_0x484cdc('0x23f5'),_0x484cdc('0x1025'),_0x484cdc('0x1887'),_0x484cdc('0x9db'),_0x484cdc('0x10e4'),_0x484cdc('0xac0'),_0x484cdc('0x1570'),_0x484cdc('0xa28'),_0x484cdc('0x18a6'),_0x484cdc('0x1ce9'),_0x484cdc('0x4f9'),_0x484cdc('0x8db'),'whatsappCurrentCapacity',_0x484cdc('0x1317'),_0x484cdc('0x1cf9'),'openchannelStatus','mailStatus',_0x484cdc('0xe4'),_0x484cdc('0x1b28'),'faxStatus',_0x484cdc('0x27ea'),_0x484cdc('0x1ffc'),_0x484cdc('0x116'),'mailStatusTime',_0x484cdc('0x1a1'),_0x484cdc('0x18fb'),_0x484cdc('0x27b6'),'voiceStatusTime',_0x484cdc('0xbdd'),_0x484cdc('0xa70'),_0x484cdc('0x17f4'),'phoneBarEnableScreenRecordingByAgent','phoneBarEnableAutomaticScreenRecording'],_0x1dcb0d=[_0x484cdc('0x1785'),_0x484cdc('0x2022'),_0x484cdc('0x1396'),'smsPause',_0x484cdc('0x14bf'),_0x484cdc('0x23f5'),_0x484cdc('0x1025'),'online'];_0x16e2e6[_0x484cdc('0x123f')]=_0x3474db[_0x484cdc('0x15ed')](),_0x16e2e6[_0x484cdc('0x16b3')]=['ringing',_0x484cdc('0x1d37'),_0x484cdc('0x860'),_0x484cdc('0x22b1'),_0x484cdc('0x255e')],_0x16e2e6['pauses']=_0x2669b1||{'count':0x0,'rows':[]},_0x16e2e6[_0x484cdc('0x2ff')]=_0xfe8fd2,_0x16e2e6[_0x484cdc('0x758')]=_0x3d6666,_0x16e2e6['userProfileSection']=_0x136e0b&&_0x136e0b[_0x484cdc('0x205f')]==0x1?_0x136e0b[_0x484cdc('0x1b33')][0x0]:null,_0x16e2e6[_0x484cdc('0x5ed')]=_0x3474db[_0x484cdc('0x1778')](_0x16e2e6[_0x484cdc('0xab4')]?_0x16e2e6['userProfileSection'][_0x484cdc('0x5ed')]:null),_0x16e2e6[_0x484cdc('0xcb5')]=_0x393120?_0x86640f()[_0x484cdc('0xcde')](_0x393120[_0x484cdc('0x1b33')]?_0x393120[_0x484cdc('0x1b33')]:[],'id'):{},_0x16e2e6['rpcAgents']=_0x4abef6?_0x86640f()[_0x484cdc('0xcde')](_0x4abef6[_0x484cdc('0x1b33')]?_0x4abef6['rows']:[],'id'):{},_0x16e2e6[_0x484cdc('0x261a')]={},_0x16e2e6[_0x484cdc('0x20ad')]=![],_0x16e2e6[_0x484cdc('0x2752')]=[],_0x16e2e6['agentInternal']={};for(var _0x1c3003 in _0x16e2e6[_0x484cdc('0xcb5')]){typeof _0x16e2e6['agents'][_0x1c3003]!==_0x484cdc('0xddc')&&(_0x16e2e6[_0x484cdc('0xcb5')][_0x1c3003][_0x484cdc('0x1d75')]=!![]);}_0x16e2e6[_0x484cdc('0x77')]={'limit':0xa,'page':0x1,'order':_0x484cdc('0x20f5'),'globalStatusFilter':'','pauseTypeFilter':''},_0x16e2e6[_0x484cdc('0xda3')]=_0x4480d6,_0x16e2e6[_0x484cdc('0x9e9')]=_0x4d5eb9,_0x16e2e6[_0x484cdc('0x1e26')]=_0x2102f9,_0x16e2e6['unPause']=_0x3ac8c5,_0x16e2e6[_0x484cdc('0xa45')]=_0x5ad4ab,_0x16e2e6[_0x484cdc('0x106')]=_0x3dc847,_0x16e2e6[_0x484cdc('0x694')]=_0x125415,_0x16e2e6[_0x484cdc('0xca6')]=_0x4495d5,_0x16e2e6[_0x484cdc('0x1044')]=_0xf84902,_0x16e2e6['isPartialPause']=_0xb5dfb0,_0x16e2e6[_0x484cdc('0x1b74')]=_0x3a8142,_0x16e2e6[_0x484cdc('0x27d7')]=_0x39039f,_0x16e2e6['onInit']=_0x3bd665,_0x16e2e6['onConnect']=_0x56bcfb,_0x16e2e6[_0x484cdc('0xebf')]=_0x4828ea,_0x16e2e6[_0x484cdc('0xcf2')]=_0x5868cf,_0x20b9d7['on'](_0x484cdc('0x62b'),_0x16e2e6[_0x484cdc('0x1b74')]),_0x20b9d7['on'](_0x484cdc('0x21f4'),_0x16e2e6[_0x484cdc('0x27d7')]),_0x20b9d7['on'](_0x484cdc('0x19a7'),_0x16e2e6[_0x484cdc('0x7e0')]),_0x20b9d7['on']('user:agentcomplete',_0x16e2e6[_0x484cdc('0xebf')]),_0x3bd665();var _0x3fcfa2=_0x17b24b(function(){var _0x704e2e=_0x484cdc;_0x16e2e6[_0x704e2e('0x20ad')]&&(_0x16e2e6[_0x704e2e('0x20ad')]=![],_0x3bd665());},0x3e7);function _0x3bd665(){var _0x2e1a3e=_0x484cdc;_0x16e2e6[_0x2e1a3e('0x20ad')]=![];var _0x19b637=_0x5c38fd['defer']();_0x16e2e6[_0x2e1a3e('0x71b')]=_0x19b637[_0x2e1a3e('0x71b')],_0x16e2e6[_0x2e1a3e('0x1782')]=[],_0x16e2e6[_0x2e1a3e('0x2752')]=[],_0x86640f()['forIn'](_0x16e2e6[_0x2e1a3e('0xcb5')],function(_0x9d566b,_0x4eb69c){var _0x30984f=_0x2e1a3e;_0x16e2e6[_0x30984f('0x165c')][_0x4eb69c]&&_0x86640f()[_0x30984f('0xd0e')](_0x9d566b,_0x86640f()[_0x30984f('0xc50')](_0x86640f()[_0x30984f('0x27b1')](_0x16e2e6['rpcAgents'][_0x4eb69c],_0x1dcb0d),_0x23a837)),_0x125415(_0x9d566b),_0x9d566b[_0x30984f('0x1ecb')]?(_0x16e2e6['filteredAgents']['push'](_0x9d566b),_0x16e2e6[_0x30984f('0x24ee')][_0x9d566b[_0x30984f('0x201f')]]=_0x4eb69c):_0x9d566b[_0x30984f('0x1ea5')]=_0x86640f()[_0x30984f('0x1662')](_0x1088bc()()['format']('x'));});_0x16e2e6['query'][_0x2e1a3e('0xcfb')]&&_0x86640f()[_0x2e1a3e('0x16a2')](_0x16e2e6[_0x2e1a3e('0x1782')],function(_0x29a268){var _0x6b1bdc=_0x2e1a3e;return _0x29a268[_0x6b1bdc('0x100f')]!==_0x16e2e6[_0x6b1bdc('0x77')][_0x6b1bdc('0xcfb')];});_0x16e2e6[_0x2e1a3e('0x77')][_0x2e1a3e('0x1024')]&&_0x86640f()[_0x2e1a3e('0x16a2')](_0x16e2e6[_0x2e1a3e('0x1782')],function(_0x406d97){var _0x107b3a=_0x2e1a3e;return _0x406d97['pauseType']!==_0x16e2e6[_0x107b3a('0x77')][_0x107b3a('0x1024')];});_0x16e2e6[_0x2e1a3e('0x77')][_0x2e1a3e('0x1503')]&&_0x86640f()[_0x2e1a3e('0x16a2')](_0x16e2e6['filteredAgents'],function(_0x589015){var _0x59051a=_0x2e1a3e;return _0x589015['fullname'][_0x59051a('0xac2')]()[_0x59051a('0x2004')](_0x16e2e6['query']['filter']['toLowerCase']())<0x0;});_0x16e2e6[_0x2e1a3e('0x1782')]=_0x28bd66(_0x16e2e6[_0x2e1a3e('0x1782')]);var _0x3009c0=(_0x16e2e6[_0x2e1a3e('0x77')][_0x2e1a3e('0x2376')]-0x1)*_0x16e2e6[_0x2e1a3e('0x77')]['limit'];_0x16e2e6[_0x2e1a3e('0x261a')]=_0x86640f()[_0x2e1a3e('0x2189')](_0x16e2e6[_0x2e1a3e('0x1782')],_0x3009c0)[_0x2e1a3e('0xb3d')](0x0,_0x16e2e6[_0x2e1a3e('0x77')]['limit']);for(var _0x501361=0x0;_0x501361<_0x16e2e6['paginatedAgents'][_0x2e1a3e('0x577')];_0x501361+=0x1){_0x16e2e6[_0x2e1a3e('0x2752')][_0x2e1a3e('0x206c')](_0x16e2e6[_0x2e1a3e('0x261a')][_0x501361]['id']);}_0x19b637['resolve'](),_0x16e2e6[_0x2e1a3e('0x20ad')]=!![];}function _0x3a8142(_0x58894b){var _0x4ca832=_0x484cdc;_0x16e2e6[_0x4ca832('0xcb5')][_0x58894b['id']]&&(_0x86640f()[_0x4ca832('0xd0e')](_0x16e2e6['agents'][_0x58894b['id']],_0x86640f()['pick'](_0x86640f()[_0x4ca832('0x27b1')](_0x58894b,_0x1dcb0d),_0x23a837)),_0x86640f()['merge'](_0x16e2e6[_0x4ca832('0x165c')][_0x58894b['id']],_0x86640f()[_0x4ca832('0xc50')](_0x86640f()[_0x4ca832('0x27b1')](_0x58894b,_0x1dcb0d),_0x23a837)),_0x125415(_0x16e2e6[_0x4ca832('0xcb5')][_0x58894b['id']]));}function _0x39039f(_0x4d8e80){var _0x46d4c6=_0x484cdc;_0x16e2e6['agents'][_0x4d8e80['id']]&&(_0x86640f()[_0x46d4c6('0xd0e')](_0x16e2e6[_0x46d4c6('0xcb5')][_0x4d8e80['id']],_0x86640f()[_0x46d4c6('0xc50')](_0x4d8e80,_0x23a837)),_0x86640f()[_0x46d4c6('0xd0e')](_0x16e2e6[_0x46d4c6('0x165c')][_0x4d8e80['id']],_0x86640f()[_0x46d4c6('0xc50')](_0x4d8e80,_0x23a837)),_0x4d8e80[_0x46d4c6('0x1a2c')]&&(_0x16e2e6[_0x46d4c6('0xcb5')][_0x4d8e80['id']][_0x46d4c6('0x1ea5')]=_0x4d8e80['lastPauseAt'],_0x16e2e6['rpcAgents'][_0x4d8e80['id']][_0x46d4c6('0x1ea5')]=_0x4d8e80[_0x46d4c6('0x1a2c')]),_0x125415(_0x16e2e6[_0x46d4c6('0xcb5')][_0x4d8e80['id']]));}function _0x56bcfb(_0x2e8171){var _0x199e6d=_0x484cdc;_0x16e2e6[_0x199e6d('0xcb5')][_0x16e2e6['agentInternal'][_0x2e8171[_0x199e6d('0xe4e')]]]&&(_0x86640f()[_0x199e6d('0xd0e')](_0x16e2e6[_0x199e6d('0xcb5')][_0x16e2e6[_0x199e6d('0x24ee')][_0x2e8171[_0x199e6d('0xe4e')]]],_0x86640f()[_0x199e6d('0xc50')](_0x2e8171,['queue',_0x199e6d('0xa70')])),_0x86640f()[_0x199e6d('0xd0e')](_0x16e2e6[_0x199e6d('0x165c')][_0x16e2e6[_0x199e6d('0x24ee')][_0x2e8171['destaccountcode']]],_0x86640f()[_0x199e6d('0xc50')](_0x2e8171,['queue',_0x199e6d('0xa70')])));}function _0x4828ea(_0x18c307){var _0x5ae03a=_0x484cdc;_0x16e2e6['agents'][_0x16e2e6[_0x5ae03a('0x24ee')][_0x18c307['destaccountcode']]]&&(_0x16e2e6[_0x5ae03a('0xcb5')][_0x16e2e6[_0x5ae03a('0x24ee')][_0x18c307['destaccountcode']]]=_0x86640f()[_0x5ae03a('0x27b1')](_0x16e2e6[_0x5ae03a('0xcb5')][_0x16e2e6[_0x5ae03a('0x24ee')][_0x18c307[_0x5ae03a('0xe4e')]]],['queue','destconnectedlinenum']),_0x16e2e6[_0x5ae03a('0x165c')][_0x16e2e6[_0x5ae03a('0x24ee')][_0x18c307['destaccountcode']]]=_0x86640f()[_0x5ae03a('0x27b1')](_0x16e2e6[_0x5ae03a('0x165c')][_0x16e2e6[_0x5ae03a('0x24ee')][_0x18c307[_0x5ae03a('0xe4e')]]],['queue',_0x5ae03a('0xa70')]));}function _0x4480d6(_0x1fbfc8){var _0xe58baf=_0x484cdc;return _0xcb097e[_0xe58baf('0x1775')][_0xe58baf('0xda3')]({'id':_0x1fbfc8['id'],'device':_0xe58baf('0x116a'),'agent_id':_0x1fbfc8['id'],'agent_name':_0x1fbfc8['name']})['$promise']['then'](function(){var _0x374f2d=_0xe58baf;_0xcbdde6[_0x374f2d('0xdb1')]({'title':'Agent\x20logout','msg':_0x1fbfc8[_0x374f2d('0x20f5')]+'\x20\x20properly\x20logout'}),_0x16e2e6['agents'][_0x1fbfc8['id']]&&(_0x16e2e6[_0x374f2d('0xcb5')][_0x1fbfc8['id']][_0x374f2d('0x1ecb')]=![]),_0x16e2e6[_0x374f2d('0x165c')][_0x1fbfc8['id']]&&(_0x16e2e6[_0x374f2d('0x165c')][_0x1fbfc8['id']][_0x374f2d('0x1ecb')]=![]),_0x3bd665();})[_0xe58baf('0x1c1d')](function(_0x42a28d){var _0x3e09ef=_0xe58baf;_0xcbdde6[_0x3e09ef('0x2092')]({'title':_0x42a28d[_0x3e09ef('0x209')]?_0x3e09ef('0x22d')+_0x42a28d[_0x3e09ef('0x209')]+_0x3e09ef('0xa99')+_0x42a28d['statusText']:_0x3e09ef('0x1df9'),'msg':_0x42a28d['data']?JSON[_0x3e09ef('0x25e')](_0x42a28d[_0x3e09ef('0x11c2')][_0x3e09ef('0x1224')]):_0x42a28d[_0x3e09ef('0x174f')]()});});}function _0x2102f9(_0x4cae7d,_0x43aa8e){var _0x41f42d=_0x484cdc;return _0xcb097e[_0x41f42d('0x1775')][_0x41f42d('0x1e26')]({'id':_0x4cae7d['id'],'type':_0x43aa8e})[_0x41f42d('0x1376')][_0x41f42d('0x21ad')](function(_0xd9a215){var _0x52158a=_0x41f42d;_0x16e2e6[_0x52158a('0xcb5')][_0x4cae7d['id']]&&_0x86640f()[_0x52158a('0xd0e')](_0x16e2e6[_0x52158a('0xcb5')][_0x4cae7d['id']],_0x86640f()[_0x52158a('0xc50')](_0xd9a215,_0x23a837)),_0x16e2e6[_0x52158a('0x165c')][_0x4cae7d['id']]&&_0x86640f()['merge'](_0x16e2e6['rpcAgents'][_0x4cae7d['id']],_0x86640f()[_0x52158a('0xc50')](_0xd9a215,_0x23a837)),_0x125415(_0x16e2e6[_0x52158a('0xcb5')][_0x4cae7d['id']]);})[_0x41f42d('0x1c1d')](function(_0x227f32){var _0x2ac986=_0x41f42d;_0xcbdde6[_0x2ac986('0x2092')]({'title':_0x227f32[_0x2ac986('0x209')]?'API:'+_0x227f32[_0x2ac986('0x209')]+'\x20-\x20'+_0x227f32['statusText']:_0x2ac986('0x1df9'),'msg':_0x227f32[_0x2ac986('0x11c2')]?JSON['stringify'](_0x227f32[_0x2ac986('0x11c2')][_0x2ac986('0x1224')]):_0x227f32[_0x2ac986('0x174f')]()});});}function _0x3ac8c5(_0x33376d){var _0x50f3b5=_0x484cdc;return _0xcb097e['user'][_0x50f3b5('0xa8e')]({'id':_0x33376d['id']})[_0x50f3b5('0x1376')][_0x50f3b5('0x21ad')](function(_0x26bd93){var _0x357622=_0x50f3b5;_0x16e2e6[_0x357622('0xcb5')][_0x33376d['id']]&&_0x86640f()[_0x357622('0xd0e')](_0x16e2e6[_0x357622('0xcb5')][_0x33376d['id']],_0x86640f()[_0x357622('0xc50')](_0x26bd93,_0x23a837)),_0x16e2e6[_0x357622('0x165c')][_0x33376d['id']]&&_0x86640f()[_0x357622('0xd0e')](_0x16e2e6[_0x357622('0x165c')][_0x33376d['id']],_0x86640f()[_0x357622('0xc50')](_0x26bd93,_0x23a837)),_0x125415(_0x16e2e6[_0x357622('0xcb5')][_0x33376d['id']]);})[_0x50f3b5('0x1c1d')](function(_0x53f4e8){var _0x3879a1=_0x50f3b5;_0xcbdde6[_0x3879a1('0x2092')]({'title':_0x53f4e8[_0x3879a1('0x209')]?'API:'+_0x53f4e8['status']+_0x3879a1('0xa99')+_0x53f4e8[_0x3879a1('0x1808')]:_0x3879a1('0x1df9'),'msg':_0x53f4e8[_0x3879a1('0x11c2')]?JSON[_0x3879a1('0x25e')](_0x53f4e8[_0x3879a1('0x11c2')][_0x3879a1('0x1224')]):_0x53f4e8[_0x3879a1('0x174f')]()});});}function _0x5ad4ab(_0x73768a){var _0x4fd4c6=_0x484cdc;_0x3a3a31[_0x4fd4c6('0x853')](_0x3a3a31[_0x4fd4c6('0x95b')]()[_0x4fd4c6('0x1226')](!![])[_0x4fd4c6('0x4b4')]('Legend')[_0x4fd4c6('0x276b')](_0x4fd4c6('0xfcf'))['ok']('Ok')[_0x4fd4c6('0x1e6d')](_0x73768a));}function _0x4d5eb9(_0x2479fd,_0x4e2eb4){var _0x598ae9=_0x484cdc;_0x3a3a31[_0x598ae9('0x853')]({'controller':_0x598ae9('0x213f'),'controllerAs':'vm','templateUrl':_0x287ed6,'parent':angular[_0x598ae9('0x1676')](_0x6ec67['body']),'targetEvent':_0x4e2eb4,'clickOutsideToClose':!![],'locals':{'agent':_0x2479fd,'agents':[],'channel':'whatsapp','direction':'inbound','crudPermissions':_0x16e2e6[_0x598ae9('0x5ed')]}});}function _0x4495d5(_0x3d500d){return _0x3d500d==='pause'||_0x3d500d==='*pause';}function _0xf84902(_0x10ba58){return _0x10ba58==='pause';}function _0xb5dfb0(_0x46c31b){var _0x526454=_0x484cdc;return _0x46c31b===_0x526454('0x1a4e');}function _0x2950f6(_0x227ac1){var _0x5f0806=_0x484cdc;return _0x227ac1===_0x5f0806('0x219')||_0x227ac1===_0x5f0806('0x1a4f')||_0x227ac1===_0x5f0806('0x22fd')||_0x227ac1===_0x5f0806('0x200c')||_0x86640f()[_0x5f0806('0x1c7')](_0x227ac1);}function _0x3dc847(_0x2d2e85,_0x1e94c0){var _0x190366=_0x484cdc;if(_0x1e94c0===_0x190366('0x8ed')){if(_0x2d2e85[_0x1e94c0+_0x190366('0x843')]!=='idle')return _0x2d2e85[_0x1e94c0+_0x190366('0x843')];if(_0x2d2e85[_0x1e94c0+_0x190366('0xc77')])return _0x2d2e85[_0x1e94c0+_0x190366('0x843')]=_0x190366('0x1e26'),'pause';return _0x190366('0x219');}else{if(_0x2d2e85[_0x1e94c0+_0x190366('0xc77')])return _0x2d2e85[_0x1e94c0+_0x190366('0x843')]=_0x190366('0x1e26'),_0x190366('0x1e26');return _0x2d2e85[_0x1e94c0+_0x190366('0x843')];}}function _0x125415(_0x5b6669){var _0x333c54=_0x484cdc,_0x4862e6=_0x333c54('0x1a4f');if(_0x86640f()['every']([_0x3dc847(_0x5b6669,_0x333c54('0x8ed')),_0x3dc847(_0x5b6669,_0x333c54('0x1f65')),_0x3dc847(_0x5b6669,_0x333c54('0x1c8b')),_0x3dc847(_0x5b6669,_0x333c54('0xac9')),_0x3dc847(_0x5b6669,_0x333c54('0x3d0')),_0x3dc847(_0x5b6669,_0x333c54('0x1ad4')),_0x3dc847(_0x5b6669,'fax')],_0x4495d5))_0x4862e6='pause';else{if(_0x86640f()['some']([_0x3dc847(_0x5b6669,_0x333c54('0x8ed')),_0x3dc847(_0x5b6669,_0x333c54('0x1f65')),_0x3dc847(_0x5b6669,_0x333c54('0x1c8b')),_0x3dc847(_0x5b6669,_0x333c54('0xac9')),_0x3dc847(_0x5b6669,_0x333c54('0x3d0')),_0x3dc847(_0x5b6669,_0x333c54('0x1ad4')),_0x3dc847(_0x5b6669,_0x333c54('0x93f'))],_0x4495d5))_0x4862e6=_0x333c54('0x1a4e');else _0x86640f()[_0x333c54('0xc74')]([_0x3dc847(_0x5b6669,'voice'),_0x3dc847(_0x5b6669,_0x333c54('0x1f65')),_0x3dc847(_0x5b6669,_0x333c54('0x1c8b')),_0x3dc847(_0x5b6669,_0x333c54('0xac9')),_0x3dc847(_0x5b6669,'sms'),_0x3dc847(_0x5b6669,_0x333c54('0x1ad4')),_0x3dc847(_0x5b6669,_0x333c54('0x93f'))],_0x2950f6)?_0x4862e6=_0x333c54('0x219'):_0x4862e6=_0x333c54('0x860');}_0x5b6669[_0x333c54('0x100f')]!==_0x4862e6&&(_0x5b6669['globalStatus']=_0x4862e6,_0x5b6669[_0x333c54('0x1d75')]?(_0x5b6669[_0x333c54('0x1d75')]=![],_0x5b6669[_0x333c54('0x1ea5')]=_0x4495d5(_0x4862e6)?_0x86640f()[_0x333c54('0x1662')](_0x1088bc()(_0x5b6669['lastPauseAt'])['format']('x')):_0x86640f()['max']([_0x5b6669['voiceStatusTime'],_0x5b6669['chatStatusTime'],_0x5b6669[_0x333c54('0xf73')],_0x5b6669[_0x333c54('0x1a1')],_0x5b6669[_0x333c54('0x18fb')],_0x5b6669[_0x333c54('0x116')],_0x5b6669[_0x333c54('0x27b6')]])):_0x5b6669[_0x333c54('0x1ea5')]=_0x86640f()['toNumber'](_0x1088bc()()[_0x333c54('0x153')]('x')));}function _0x28bd66(_0x601f15){var _0x7ea1b0=_0x484cdc,_0x45fc09=_0x86640f()[_0x7ea1b0('0x2837')](_0x16e2e6[_0x7ea1b0('0x77')][_0x7ea1b0('0x2752')],'-')?'desc':'asc';return _0x86640f()[_0x7ea1b0('0x11df')](_0x601f15,[_0x16e2e6[_0x7ea1b0('0x77')][_0x7ea1b0('0x2752')][_0x7ea1b0('0x16e4')]('-','')],[_0x45fc09]);}function _0x5d3ac2(){var _0x4ae51c=_0x484cdc;_0x3fcfa2&&(_0x17b24b[_0x4ae51c('0x3b5')](_0x3fcfa2),_0x3fcfa2=null);}function _0x5868cf(_0x5b2843,_0x2d0afa){var _0x566ff5=_0x484cdc;return _0xcb097e[_0x566ff5('0x1775')][_0x566ff5('0x5ef')]({'id':_0x5b2843['id']},{'screenrecording':_0x2d0afa})['$promise']['catch'](function(_0x1e6b15){var _0x537b69=_0x566ff5;_0xcbdde6[_0x537b69('0x2092')]({'title':_0x1e6b15['status']?_0x537b69('0x22d')+_0x1e6b15[_0x537b69('0x209')]+_0x537b69('0xa99')+_0x1e6b15[_0x537b69('0x1808')]:_0x537b69('0x14b6'),'msg':_0x1e6b15[_0x537b69('0x11c2')]?JSON['stringify'](_0x1e6b15[_0x537b69('0x11c2')][_0x537b69('0x1224')]):_0x1e6b15['toString']()});});}_0xce4b29[_0x484cdc('0x1723')]('$destroy',function(){var _0x5400e4=_0x484cdc;_0x20b9d7['removeAllListeners']('user:save'),_0x20b9d7['removeAllListeners']('user:update'),_0x20b9d7[_0x5400e4('0x16cc')](_0x5400e4('0x19a7')),_0x20b9d7['removeAllListeners'](_0x5400e4('0x1131')),_0x5d3ac2();});}const _0xbdd734=_0x289c5e,_0x3ce3c4=_0x398308['p']+'src/js/modules/main/apps/whatsapp/views/whatsappQueues/create/dialog.html/dialog-[chunkhash].html',_0x192f88=_0x398308['p']+_0x3877e3('0x113e');_0x36ba32[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x2313'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x243f'),_0x3877e3('0x1e8d'),_0x3877e3('0xb7a'),'rpcQueues',_0x3877e3('0xccd'),_0x3877e3('0x25d8'),_0x3877e3('0x1908'),_0x3877e3('0x758'),_0x3877e3('0xab4'),'Auth'];function _0x36ba32(_0x47b719,_0x33f450,_0x27b768,_0x27c012,_0x3266bd,_0x14205e,_0x2a0c9b,_0x276eb8,_0x589af5,_0x58cf98,_0x5873c1,_0x26a5fe,_0x6c1e83,_0x3e980d){var _0x46397b=_0x3877e3,_0x1b56a8=this,_0x2c6ff7=[_0x46397b('0x1efa'),_0x46397b('0x21ef'),_0x46397b('0x8b6'),_0x46397b('0x4f6'),_0x46397b('0xc37'),'originated',_0x46397b('0x1224'),_0x46397b('0x13dc'),_0x46397b('0x1c4b'),_0x46397b('0x1e2e'),_0x46397b('0x250c')];_0x1b56a8[_0x46397b('0x123f')]=_0x3e980d[_0x46397b('0x15ed')](),_0x1b56a8[_0x46397b('0x205f')]=_0x2a0c9b[_0x46397b('0x205f')]?_0x2a0c9b[_0x46397b('0x205f')]:0x0,_0x1b56a8[_0x46397b('0xb7a')]=_0x2a0c9b?_0x86640f()['keyBy'](_0x2a0c9b['rows']?_0x2a0c9b['rows']:[],'id'):{},_0x1b56a8[_0x46397b('0x245')]=_0x276eb8?_0x86640f()[_0x46397b('0xcde')](_0x276eb8[_0x46397b('0x1b33')]?_0x276eb8[_0x46397b('0x1b33')]:[],'id'):{},_0x1b56a8['userProfile']=_0x26a5fe,_0x1b56a8[_0x46397b('0xab4')]=_0x6c1e83&&_0x6c1e83['count']==0x1?_0x6c1e83[_0x46397b('0x1b33')][0x0]:null,_0x1b56a8[_0x46397b('0x5ed')]=_0x3e980d[_0x46397b('0x1778')](_0x1b56a8[_0x46397b('0xab4')]?_0x1b56a8[_0x46397b('0xab4')]['crudPermissions']:null);_0x3e980d[_0x46397b('0x21de')]('admin')?_0x1b56a8[_0x46397b('0x77')]={'type':_0x46397b('0x923'),'sort':_0x46397b('0x33'),'limit':0xa,'page':0x1}:_0x1b56a8[_0x46397b('0x77')]={'id':_0x1b56a8[_0x46397b('0x123f')]['id'],'channel':'whatsapp','type':_0x46397b('0x923'),'sort':_0x46397b('0x33'),'limit':0xa,'page':0x1};_0x1b56a8['success']=_0x3b0136,_0x1b56a8[_0x46397b('0x71c')]=_0xa93b05,_0x1b56a8[_0x46397b('0xf78')]=_0x10c2a7,_0x1b56a8[_0x46397b('0x40b')]=_0x478707,_0x1b56a8[_0x46397b('0x14c1')]=_0xddf406,_0x1b56a8[_0x46397b('0x1b74')]=_0x4aa2ce,_0x1b56a8[_0x46397b('0x7c7')]=_0x4971f,_0x1b56a8[_0x46397b('0xc32')]=_0x173715,_0x1b56a8['onPause']=_0x2dbdf7,_0x1b56a8['onLogin']=_0x1b0a0d,_0x1b56a8[_0x46397b('0x27a5')]=_0x30e89e,_0x1b56a8[_0x46397b('0x14b')]=_0x1a45b8,_0x1b56a8[_0x46397b('0x2752')]=[],_0x86640f()[_0x46397b('0xd54')](_0x1b56a8[_0x46397b('0xb7a')],function(_0x3f54ab){var _0x222bdd=_0x46397b;_0x1b56a8[_0x222bdd('0x2752')]['push'](_0x3f54ab['id']);}),_0x58cf98['on']('whatsapp_queue:save',_0x1b56a8[_0x46397b('0x1b74')]),_0x58cf98['on'](_0x46397b('0xa3'),_0x1b56a8[_0x46397b('0x7c7')]),_0x58cf98['on'](_0x46397b('0x442'),_0x1b56a8[_0x46397b('0xc32')]),_0x58cf98['on'](_0x46397b('0x21f4'),_0x1b56a8[_0x46397b('0x22bf')]),_0x58cf98['on'](_0x46397b('0x3b0'),_0x1b56a8[_0x46397b('0x27a5')]),_0x58cf98['on'](_0x46397b('0x1595'),_0x1b56a8[_0x46397b('0xf80')]);function _0x1a45b8(){var _0x22707e=_0x46397b,_0x1ab116=[];return _0x86640f()[_0x22707e('0xd54')](_0x1b56a8[_0x22707e('0xb7a')],function(_0x13d31b,_0x613fa1){var _0x2989f0=_0x22707e;_0x13d31b[_0x2989f0('0x250c')]=0x0,_0x13d31b[_0x2989f0('0x29')]=0x0,_0x1b56a8[_0x2989f0('0xb7a')][_0x613fa1]['agents']={},_0x1ab116[_0x2989f0('0x206c')](_0x589af5[_0x2989f0('0x1f8f')][_0x2989f0('0xad6')]({'id':_0x613fa1})[_0x2989f0('0x1376')]),_0x1b56a8[_0x2989f0('0x245')][_0x613fa1]&&_0x86640f()['merge'](_0x13d31b,_0x86640f()[_0x2989f0('0xc50')](_0x1b56a8[_0x2989f0('0x245')][_0x613fa1],_0x2c6ff7));}),_0x27c012[_0x22707e('0x1ba7')](_0x1ab116)['then'](function(_0x325457){var _0x1d2be1=_0x22707e;for(var _0x1ad3fc=0x0;_0x1ad3fc<_0x325457['length'];_0x1ad3fc+=0x1){for(var _0x596a29=0x0;_0x596a29<_0x325457[_0x1ad3fc][_0x1d2be1('0x1b33')][_0x1d2be1('0x577')];_0x596a29++){_0x325457[_0x1ad3fc]['rows'][_0x596a29][_0x1d2be1('0x250c')]&&_0x1b56a8[_0x1d2be1('0xb7a')][_0x325457[_0x1ad3fc][_0x1d2be1('0x1b33')][_0x596a29][_0x1d2be1('0x1097')]][_0x1d2be1('0x250c')]++,_0x1b56a8[_0x1d2be1('0xb7a')][_0x325457[_0x1ad3fc][_0x1d2be1('0x1b33')][_0x596a29]['WhatsappQueueId']][_0x1d2be1('0x29')]++,_0x1b56a8[_0x1d2be1('0xb7a')][_0x325457[_0x1ad3fc][_0x1d2be1('0x1b33')][_0x596a29][_0x1d2be1('0x1097')]][_0x1d2be1('0xcb5')][_0x325457[_0x1ad3fc][_0x1d2be1('0x1b33')][_0x596a29][_0x1d2be1('0x1dc6')]]=_0x325457[_0x1ad3fc][_0x1d2be1('0x1b33')][_0x596a29][_0x1d2be1('0x1097')];}}})[_0x22707e('0x1c1d')](function(_0x3ff589){console['error'](_0x3ff589);});}function _0x4aa2ce(_0x5c69df){var _0x238a4a=_0x46397b;_0x1b56a8[_0x238a4a('0xb7a')][_0x5c69df['id']]&&_0x86640f()['merge'](_0x1b56a8['queues'][_0x5c69df['id']],_0x86640f()[_0x238a4a('0xc50')](_0x5c69df,_0x2c6ff7));}function _0x4971f(_0x46ef92){var _0x1cc080=_0x46397b;_0x1b56a8['queues'][_0x46ef92['WhatsappQueueId']]&&_0x1b56a8[_0x1cc080('0xb7a')][_0x46ef92[_0x1cc080('0x1097')]]['loggedInDb']++;}function _0x173715(_0x35d071){var _0x12bbce=_0x46397b;_0x1b56a8['queues'][_0x35d071['WhatsappQueueId']]&&_0x1b56a8[_0x12bbce('0xb7a')][_0x35d071[_0x12bbce('0x1097')]][_0x12bbce('0x29')]--;}function _0x2dbdf7(_0x53daf0){var _0x360ef1=_0x46397b;console['log'](_0x360ef1('0x22bf'),_0x53daf0);if(_0x53daf0['voicePause'])_0x86640f()[_0x360ef1('0xd54')](_0x1b56a8[_0x360ef1('0xb7a')],function(_0x4ad029){var _0x42d355=_0x360ef1;_0x4ad029[_0x42d355('0xcb5')][_0x53daf0['id']]&&(_0x4ad029[_0x42d355('0x250c')]+=0x1,console['log']('pause'));});else!_0x53daf0['voicePause']&&_0x86640f()['forIn'](_0x1b56a8[_0x360ef1('0xb7a')],function(_0xc637c2){var _0x131e2b=_0x360ef1;_0xc637c2[_0x131e2b('0xcb5')][_0x53daf0['id']]&&(_0xc637c2[_0x131e2b('0x250c')]>0x0&&(_0xc637c2['paused']-=0x1,console['log'](_0x131e2b('0xa8e'))));});}function _0x1b0a0d(_0x42f0ab){var _0x52019a=_0x46397b;console['log'](_0x52019a('0x1b6a'),_0x42f0ab),_0x1b56a8['queues'][_0x42f0ab[_0x52019a('0x1097')]]&&(_0x1b56a8[_0x52019a('0xb7a')][_0x42f0ab[_0x52019a('0x1097')]][_0x52019a('0x29')]+=0x1,_0x1b56a8[_0x52019a('0xb7a')][_0x42f0ab[_0x52019a('0x1097')]][_0x52019a('0xcb5')][_0x42f0ab[_0x52019a('0x1dc6')]]=_0x42f0ab[_0x52019a('0x1097')]);}function _0x30e89e(_0x123887){var _0x3a56fe=_0x46397b;console[_0x3a56fe('0x6fb')](_0x3a56fe('0x27a5'),_0x123887),_0x1b56a8[_0x3a56fe('0xb7a')][_0x123887[_0x3a56fe('0x1097')]]&&_0x1b56a8[_0x3a56fe('0xb7a')][_0x123887[_0x3a56fe('0x1097')]][_0x3a56fe('0x29')]>0x0&&(_0x1b56a8[_0x3a56fe('0xb7a')][_0x123887[_0x3a56fe('0x1097')]][_0x3a56fe('0x29')]-=0x1,delete _0x1b56a8[_0x3a56fe('0xb7a')][_0x123887[_0x3a56fe('0x1097')]][_0x3a56fe('0xcb5')][_0x123887[_0x3a56fe('0x1dc6')]]);}var _0x44d7c9=!![],_0x2836c8=0x1;_0x47b719['$watch']('vm.query.filter',function(_0x3cdb86,_0x1474c6){var _0x4be41c=_0x46397b;_0x44d7c9?_0x33f450(function(){_0x44d7c9=![];}):(!_0x1474c6&&(_0x2836c8=_0x1b56a8[_0x4be41c('0x77')][_0x4be41c('0x2376')]),_0x3cdb86!==_0x1474c6&&(_0x1b56a8[_0x4be41c('0x77')]['page']=0x1),!_0x3cdb86&&(_0x1b56a8[_0x4be41c('0x77')][_0x4be41c('0x2376')]=_0x2836c8),_0x1b56a8['getQueues']());});function _0x3b0136(_0x2504db){var _0x18c9fb=_0x46397b;_0x1b56a8[_0x18c9fb('0x205f')]=_0x2504db[_0x18c9fb('0x205f')],_0x1b56a8[_0x18c9fb('0xb7a')]=_0x2504db?_0x86640f()[_0x18c9fb('0xcde')](_0x2504db[_0x18c9fb('0x1b33')]?_0x2504db[_0x18c9fb('0x1b33')]:[],'id'):{};if(_0x2504db['rows']){_0x1b56a8[_0x18c9fb('0x2752')]=[];for(var _0x3fd4f0=0x0;_0x3fd4f0<_0x2504db['rows'][_0x18c9fb('0x577')];_0x3fd4f0++){_0x1b56a8[_0x18c9fb('0x2752')][_0x18c9fb('0x206c')](_0x2504db['rows'][_0x3fd4f0]['id']);}}_0x1a45b8();}function _0xa93b05(){var _0x311211=_0x46397b;_0x1b56a8[_0x311211('0x77')][_0x311211('0x15a5')]=(_0x1b56a8[_0x311211('0x77')]['page']-0x1)*_0x1b56a8['query'][_0x311211('0x1f4a')],_0x3e980d[_0x311211('0x21de')]('admin')?_0x1b56a8[_0x311211('0x71b')]=_0x589af5[_0x311211('0x1f8f')]['get'](_0x1b56a8[_0x311211('0x77')],_0x3b0136)[_0x311211('0x1376')]:(_0x1b56a8[_0x311211('0x77')]['id']=_0x1b56a8[_0x311211('0x758')]['id'],_0x1b56a8[_0x311211('0x77')]['section']='WhatsappQueues',_0x1b56a8[_0x311211('0x71b')]=_0x589af5[_0x311211('0x758')][_0x311211('0x321')](_0x1b56a8['query'],_0x3b0136)[_0x311211('0x1376')]);}function _0x10c2a7(_0xac5e2b,_0x6d6b44){var _0x31af9e=_0x46397b;_0x27b768[_0x31af9e('0x853')]({'controller':_0x31af9e('0x812'),'controllerAs':'vm','templateUrl':_0x3ce3c4,'parent':angular[_0x31af9e('0x1676')](_0x3266bd['body']),'targetEvent':_0xac5e2b,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x6d6b44,'whatsappQueues':_0x86640f()[_0x31af9e('0x1843')](_0x1b56a8[_0x31af9e('0xb7a')]),'license':null,'setting':null,'crudPermissions':_0x1b56a8[_0x31af9e('0x5ed')]}});}function _0x478707(_0x7e3718,_0x458470){var _0x32249e=_0x46397b;_0x27b768[_0x32249e('0x853')]({'controller':'WhatsappQueueagentaddController','controllerAs':'vm','templateUrl':_0x192f88,'parent':angular['element'](_0x3266bd[_0x32249e('0x2452')]),'targetEvent':_0x7e3718,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x458470,'whatsappQueues':_0x1b56a8['queues']?_0x1b56a8[_0x32249e('0xb7a')][_0x32249e('0x1b33')]:[],'realtime':![],'crudPermissions':_0x1b56a8[_0x32249e('0x5ed')]}});}function _0xddf406(_0x496dd3){var _0x1ec93a=_0x46397b;return _0x589af5[_0x1ec93a('0x1f8f')][_0x1ec93a('0x5ef')](_0x496dd3)[_0x1ec93a('0x1376')][_0x1ec93a('0x21ad')](function(){var _0x5219a4=_0x1ec93a;_0x5873c1[_0x5219a4('0xdb1')]({'title':'Queue\x20properly\x20updated!','msg':_0x496dd3['name']?_0x496dd3['name']+_0x5219a4('0xa8d'):''});})[_0x1ec93a('0x1c1d')](function(_0x60938b){var _0x3997f6=_0x1ec93a;_0x5873c1[_0x3997f6('0x2092')]({'title':_0x3997f6('0xa52'),'msg':_0x60938b[_0x3997f6('0x1224')]});});}_0x47b719[_0x46397b('0x1723')]('$destroy',function(){var _0x49a3c8=_0x46397b;_0x58cf98[_0x49a3c8('0x16cc')]('whatsapp_queue:save'),_0x58cf98[_0x49a3c8('0x16cc')](_0x49a3c8('0x442')),_0x58cf98[_0x49a3c8('0x16cc')](_0x49a3c8('0xa3')),_0x58cf98[_0x49a3c8('0x16cc')]('user:update'),_0x58cf98['removeAllListeners']('userVoiceQueue:remove'),_0x58cf98[_0x49a3c8('0x16cc')](_0x49a3c8('0x1595'));});}const _0x4b27fb=_0x36ba32;function _0xecc02b(){var _0x2e34b7=_0x3877e3;return{'status':{'registered':_0x2e34b7('0x23d9'),'unregistered':_0x2e34b7('0xf93'),'lagged':_0x2e34b7('0xf93'),'reachable':_0x2e34b7('0x23d9'),'unreachable':_0x2e34b7('0xf93'),'unknown':'grey-fg\x20icon-minus-circle'},'state':{'unknown':_0x2e34b7('0x6b3'),'not_inuse':_0x2e34b7('0x2468'),'inuse':'red-300-fg\x20icon-phone-in-talk','busy':_0x2e34b7('0x20c'),'invalid':_0x2e34b7('0x6b3'),'unavailable':_0x2e34b7('0x6b3'),'ringing':_0x2e34b7('0x540'),'ringinuse':'blue-300-fg\x20icon-phone-incoming','onhold':_0x2e34b7('0x273a')},'channelStatus':{'ring':_0x2e34b7('0x540'),'up':_0x2e34b7('0x1dcd'),'hangup':'red-300-fg\x20icon-phone-hangup'},'channelStatusOut':{'ring':_0x2e34b7('0x229b'),'up':_0x2e34b7('0x1dcd'),'hangup':_0x2e34b7('0xe0f')}};}const _0x2fd179=_0xecc02b;_0x1ed704['$inject']=['$scope',_0x3877e3('0xa9f'),_0x3877e3('0x25d8')];function _0x1ed704(_0x54bf60,_0x4f5c61,_0x52e1c7){var _0x4cac4b=_0x3877e3,_0x242c5e=this;_0x52e1c7[_0x4cac4b('0x8d8')](),_0x52e1c7[_0x4cac4b('0x663')](),_0x242c5e[_0x4cac4b('0x302')]=0x0;switch(_0x4f5c61[_0x4cac4b('0x1ccb')]['name']){case _0x4cac4b('0xd3b'):_0x242c5e[_0x4cac4b('0x302')]=0x0;break;case'app.whatsapp.realtime.queues':_0x242c5e[_0x4cac4b('0x302')]=0x1;break;default:_0x242c5e[_0x4cac4b('0x302')]=0x0,_0x4f5c61['go']('app.whatsapp.realtime.agents');}_0x54bf60[_0x4cac4b('0x10e8')](_0x4cac4b('0xc2'),function(_0x5f1402,_0x4e9acf){var _0x4f7017=_0x4cac4b;if(_0x5f1402!==_0x4e9acf)switch(_0x5f1402){case 0x0:_0x4f5c61['go'](_0x4f7017('0xd3b'));break;case 0x1:_0x4f5c61['go'](_0x4f7017('0x2531'));break;default:_0x4f5c61['go']('app.whatsapp.realtime.agents');break;}});}const _0x2e83ea=_0x1ed704;_0x50b716[_0x3877e3('0x1a81')]=['$stateProvider'];function _0x50b716(_0x2d2eef){var _0x572c4e=_0x3877e3;_0x2d2eef[_0x572c4e('0x27e')]('app.whatsapp.realtime',{'url':_0x572c4e('0x1b34'),'views':{'content@app':{'templateUrl':_0x469c52,'controller':_0x572c4e('0x2473')}},'resolve':{'userProfile':[_0x572c4e('0x354'),_0x572c4e('0x15bc'),function _0x566aa2(_0x8d7c6,_0x2c6a06){var _0x52a850=_0x572c4e;return _0x2c6a06[_0x52a850('0x21de')](_0x52a850('0x1bd8'))?null:_0x8d7c6[_0x52a850('0x8ac')]('userProfile@get',{'fields':_0x52a850('0x1a00'),'id':_0x2c6a06[_0x52a850('0x15ed')]()[_0x52a850('0x1618')]});}],'userProfileSection':['apiResolver','Auth',function _0x118fc4(_0x49f5e0,_0xe20ca7){var _0x47ffa9=_0x572c4e;return _0xe20ca7['hasRole'](_0x47ffa9('0x1bd8'))?null:_0x49f5e0[_0x47ffa9('0x8ac')](_0x47ffa9('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xe20ca7[_0x47ffa9('0x15ed')]()[_0x47ffa9('0x1618')],'sectionId':0x83e});}]},'authenticate':!![],'permissionId':0x83e})[_0x572c4e('0x27e')](_0x572c4e('0xd3b'),{'url':_0x572c4e('0x69c'),'controller':_0x572c4e('0x1ebd'),'templateUrl':_0x10835c,'resolve':{'pauses':['apiResolver',function _0x11942a(_0x43755b){var _0x1ee396=_0x572c4e;return _0x43755b['resolve'](_0x1ee396('0x12e0'),{'nolimit':!![]});}],'agents':[_0x572c4e('0x354'),_0x572c4e('0x15bc'),function _0x1a2842(_0x260424,_0x42bc6a){var _0x3fdec3=_0x572c4e;return _0x42bc6a[_0x3fdec3('0x21de')](_0x3fdec3('0x1bd8'))?_0x260424[_0x3fdec3('0x8ac')](_0x3fdec3('0x1913'),{'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':_0x3fdec3('0x2402'),'sort':'fullname','nolimit':!![]}):_0x260424[_0x3fdec3('0x8ac')](_0x3fdec3('0x52f'),{'id':_0x42bc6a['getCurrentUser']()[_0x3fdec3('0x1618')],'section':_0x3fdec3('0xfed'),'fields':_0x3fdec3('0x856'),'role':_0x3fdec3('0x2402'),'sort':_0x3fdec3('0x20f5'),'nolimit':!![]});}],'userProfile':[_0x572c4e('0x354'),_0x572c4e('0x15bc'),function _0x251ebc(_0x332515,_0x47be3c){var _0x12f05c=_0x572c4e;return _0x47be3c[_0x12f05c('0x21de')](_0x12f05c('0x1bd8'))?null:_0x332515[_0x12f05c('0x8ac')](_0x12f05c('0x1e1d'),{'fields':'id,name,crudPermissions','id':_0x47be3c[_0x12f05c('0x15ed')]()[_0x12f05c('0x1618')]});}],'userProfileSection':[_0x572c4e('0x354'),_0x572c4e('0x15bc'),function _0x1c203b(_0x247c50,_0x367321){var _0x4a3b5a=_0x572c4e;return _0x367321['hasRole']('admin')?null:_0x247c50[_0x4a3b5a('0x8ac')](_0x4a3b5a('0x222f'),{'fields':_0x4a3b5a('0x1852'),'userProfileId':_0x367321[_0x4a3b5a('0x15ed')]()[_0x4a3b5a('0x1618')],'sectionId':0xca});}],'rpcAgents':[_0x572c4e('0x354'),function _0x37d9cc(_0x255e54){var _0x371bcc=_0x572c4e;return _0x255e54[_0x371bcc('0x8ac')]('rpc@getAgents');}]},'authenticate':!![],'permissionId':0x83e})[_0x572c4e('0x27e')]('app.whatsapp.realtime.queues',{'url':_0x572c4e('0x13e2'),'controller':_0x572c4e('0x2659'),'templateUrl':_0x4b6078,'resolve':{'queues':[_0x572c4e('0x354'),'Auth',function _0x5e3056(_0x19d78c,_0x1b5b21){var _0x38fe24=_0x572c4e;return _0x1b5b21[_0x38fe24('0x21de')]('admin')?_0x19d78c['resolve'](_0x38fe24('0x175d'),{'type':'inbound','sort':_0x38fe24('0x33'),'limit':0xa,'offset':0x0}):_0x19d78c[_0x38fe24('0x8ac')](_0x38fe24('0x52f'),{'id':_0x1b5b21['getCurrentUser']()['userProfileId'],'section':_0x38fe24('0x2424'),'channel':'whatsapp','type':_0x38fe24('0x923'),'sort':_0x38fe24('0x33'),'limit':0xa,'page':0x1});}],'userProfile':[_0x572c4e('0x354'),_0x572c4e('0x15bc'),function _0xca22d4(_0x826688,_0x500c97){var _0x4fab5a=_0x572c4e;return _0x500c97[_0x4fab5a('0x21de')](_0x4fab5a('0x1bd8'))?null:_0x826688[_0x4fab5a('0x8ac')]('userProfile@get',{'fields':_0x4fab5a('0x1a00'),'id':_0x500c97['getCurrentUser']()[_0x4fab5a('0x1618')]});}],'userProfileSection':[_0x572c4e('0x354'),'Auth',function _0x497889(_0x5c799c,_0x503da){var _0x3717a1=_0x572c4e;return _0x503da['hasRole'](_0x3717a1('0x1bd8'))?null:_0x5c799c[_0x3717a1('0x8ac')](_0x3717a1('0x222f'),{'fields':_0x3717a1('0x1852'),'userProfileId':_0x503da['getCurrentUser']()[_0x3717a1('0x1618')],'sectionId':0x835});}],'rpcQueues':[_0x572c4e('0x354'),function _0x3ea3cb(_0x241cfc){var _0x343d58=_0x572c4e;return _0x241cfc['resolve'](_0x343d58('0x15b9'));}]},'authenticate':!![],'permissionId':0x83e});}angular[_0x3877e3('0x20d5')]('app.whatsapp.realtime',[])[_0x3877e3('0x13')](_0x50b716)[_0x3877e3('0x1d5a')](_0x3877e3('0x17ea'),_0xbdd734)[_0x3877e3('0x1d5a')]('QueuesWhatsappRealtimeController',_0x4b27fb)[_0x3877e3('0x1551')](_0x3877e3('0x2703'),_0x2fd179)[_0x3877e3('0x1d5a')]('WhatsappRealtimeController',_0x2e83ea);const _0x302c34=_0x398308['p']+_0x3877e3('0xfca'),_0x537277=_0x398308['p']+_0x3877e3('0x60e'),_0x5d4c25=_0x398308['p']+_0x3877e3('0x16df'),_0x42bc69=_0x398308['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/view.html/view-[chunkhash].html';_0x5a275b[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),'$mdDialog','$q',_0x3877e3('0x13c1'),'toasty',_0x3877e3('0x46a'),_0x3877e3('0x1b5d'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),_0x3877e3('0x5ed')];function _0x5a275b(_0x3a0f74,_0x4ce83b,_0x19be85,_0x45109e,_0x117cce,_0x35d2a2,_0x17967a,_0x30ce29,_0x1c62a3,_0x1e78ef,_0x1a41f2,_0x2a99e8,_0x4ebb2a,_0x378245){var _0x50e9ec=_0x3877e3,_0x1152f9=this;_0x1152f9[_0x50e9ec('0x123f')]=_0x1a41f2['getCurrentUser'](),_0x1152f9[_0x50e9ec('0x1a69')]=[],_0x1152f9[_0x50e9ec('0x21e')]=_0x4ebb2a,_0x1152f9[_0x50e9ec('0x2ff')]=_0x2a99e8,_0x1152f9[_0x50e9ec('0x5ed')]=_0x378245,_0x1152f9['hasModulePermissions']={},_0x1152f9[_0x50e9ec('0x1432')]=_0x1152f9[_0x50e9ec('0x21e')]&&_0x1152f9[_0x50e9ec('0x21e')][_0x50e9ec('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1152f9[_0x50e9ec('0x4b4')]=_0x50e9ec('0x1bb4'),_0x1152f9['whatsappAccount']=angular[_0x50e9ec('0xd75')](_0x1c62a3),_0x1152f9[_0x50e9ec('0x46a')]=_0x30ce29,_0x1152f9[_0x50e9ec('0x9a4')]=![];!_0x1152f9[_0x50e9ec('0x1b5d')]&&(_0x1152f9['whatsappAccount']={'remote':_0x19be85['protocol']()+_0x50e9ec('0x22a9')+_0x19be85[_0x50e9ec('0x1c01')]()+(_0x19be85[_0x50e9ec('0x24fe')]()?':'+_0x19be85[_0x50e9ec('0x24fe')]():''),'type':'twilio','notificationSound':!![],'queueTransferTimeout':0x12c,'waitForTheAssignedAgent':0xa,'agentTransferTimeout':0x12c},_0x1152f9[_0x50e9ec('0x4b4')]=_0x50e9ec('0xd65'),_0x1152f9['newWhatsappAccount']=!![]);_0x4ce83b[_0x50e9ec('0x171b')]['id']&&(_0x1152f9[_0x50e9ec('0x1b5d')]['WhatsappAccountId']=_0x4ce83b[_0x50e9ec('0x171b')]['id']);_0x1152f9[_0x50e9ec('0x1621')]=_0x5be485,_0x1152f9[_0x50e9ec('0x12df')]=_0x4ae5d5,_0x1152f9[_0x50e9ec('0x2856')]=_0x2d1eff,_0x1152f9[_0x50e9ec('0x279')]=_0x2538ee,_0x1152f9['closeDialog']=_0x57830c,_0x1a41f2[_0x50e9ec('0x21de')](_0x50e9ec('0x1bd8'))?_0x1e78ef[_0x50e9ec('0x11e0')][_0x50e9ec('0x595')]({'fields':_0x50e9ec('0x1aa8'),'sort':_0x50e9ec('0x19fe')})['$promise'][_0x50e9ec('0x21ad')](function(_0x22e553){var _0x55a711=_0x50e9ec;_0x1152f9[_0x55a711('0x1972')]=_0x22e553[_0x55a711('0x1b33')]||[];})[_0x50e9ec('0x1c1d')](function(_0x407929){var _0x5bc10e=_0x50e9ec;_0x17967a[_0x5bc10e('0x2092')]({'title':_0x407929[_0x5bc10e('0x209')]?_0x5bc10e('0x22d')+_0x407929[_0x5bc10e('0x209')]+_0x5bc10e('0xa99')+_0x407929[_0x5bc10e('0x1808')]:_0x5bc10e('0xf59'),'msg':_0x407929['data']?JSON[_0x5bc10e('0x25e')](_0x407929[_0x5bc10e('0x11c2')]):_0x407929[_0x5bc10e('0x174f')]()});}):_0x1e78ef[_0x50e9ec('0x11e0')]['get']({'fields':_0x50e9ec('0x1aa8'),'sort':_0x50e9ec('0x19fe')})[_0x50e9ec('0x1376')][_0x50e9ec('0x21ad')](function(_0x459da4){var _0x4e6a53=_0x50e9ec;_0x1152f9[_0x4e6a53('0x1972')]=_0x459da4[_0x4e6a53('0x1b33')]||[];})[_0x50e9ec('0x21ad')](function(){var _0x45d109=_0x50e9ec;return _0x1e78ef[_0x45d109('0xab4')][_0x45d109('0x595')]({'userProfileId':_0x1152f9[_0x45d109('0x123f')]['userProfileId'],'sectionId':0x12d})[_0x45d109('0x1376')];})[_0x50e9ec('0x21ad')](function(_0x492d63){var _0x596161=_0x50e9ec,_0x402f9a=_0x492d63&&_0x492d63[_0x596161('0x1b33')]?_0x492d63[_0x596161('0x1b33')][0x0]:null;if(!_0x402f9a){var _0x556a65=[],_0x18fd08=null;_0x1152f9['whatsappAccount']&&(_0x18fd08=_0x86640f()['find'](_0x1152f9[_0x596161('0x1972')],{'id':Number(_0x1152f9[_0x596161('0x1b5d')][_0x596161('0x815')])}));for(var _0x5ca659=0x0;_0x5ca659<_0x1152f9[_0x596161('0x1972')][_0x596161('0x577')];_0x5ca659++){_0x18fd08&&_0x1152f9[_0x596161('0x1972')][_0x5ca659]['id']===_0x18fd08['id']&&(_0x1152f9['lists'][_0x5ca659]['canSelect']=![],_0x556a65[_0x596161('0x206c')](_0x1152f9[_0x596161('0x1972')][_0x5ca659]));}_0x1152f9[_0x596161('0x1972')]=_0x556a65;}else{if(!_0x402f9a[_0x596161('0x80c')])return _0x1e78ef[_0x596161('0x185e')][_0x596161('0x595')]({'sectionId':_0x402f9a['id']})[_0x596161('0x1376')]['then'](function(_0xf59334){var _0x421c02=_0x596161,_0x1e855c=_0x86640f()[_0x421c02('0x26c3')](_0xf59334['rows'],function(_0x55cc8f){var _0x4cb220=_0x421c02;return _0x86640f()[_0x4cb220('0x1d2e')](_0x1152f9[_0x4cb220('0x1972')],{'id':_0x55cc8f['resourceId']});}),_0x464a7a=null;_0x1152f9[_0x421c02('0x1b5d')]&&(_0x464a7a=_0x86640f()[_0x421c02('0x1d2e')](_0x1152f9[_0x421c02('0x1972')],{'id':Number(_0x1152f9['whatsappAccount'][_0x421c02('0x815')])}));if(_0x464a7a&&!_0x86640f()[_0x421c02('0x2664')](_0x1e855c,['id',_0x464a7a['id']])){var _0x2866fb=_0x86640f()['find'](_0x1152f9[_0x421c02('0x1972')],{'id':_0x464a7a['id']});_0x2866fb[_0x421c02('0xba')]=![],_0x1e855c['push'](_0x2866fb);}_0x1152f9[_0x421c02('0x1972')]=_0x1e855c;});}})[_0x50e9ec('0x1c1d')](function(_0x1bf4c4){var _0x947ca1=_0x50e9ec;_0x17967a[_0x947ca1('0x2092')]({'title':_0x1bf4c4['status']?_0x947ca1('0x22d')+_0x1bf4c4['status']+_0x947ca1('0xa99')+_0x1bf4c4[_0x947ca1('0x1808')]:_0x947ca1('0xa92'),'msg':_0x1bf4c4['data']?JSON['stringify'](_0x1bf4c4[_0x947ca1('0x11c2')]):_0x1bf4c4['toString']()});}),_0x1a41f2['hasRole']('admin')?_0x1e78ef[_0x50e9ec('0x1e26')][_0x50e9ec('0x595')]({'fields':'name,id','sort':'name','nolimit':_0x50e9ec('0x19bd')})[_0x50e9ec('0x1376')]['then'](function(_0x137c1c){var _0x547465=_0x50e9ec;_0x1152f9[_0x547465('0x1fc7')]=_0x137c1c[_0x547465('0x1b33')]||[];})[_0x50e9ec('0x1c1d')](function(_0x2d35ba){var _0x366abe=_0x50e9ec;_0x17967a[_0x366abe('0x2092')]({'title':_0x2d35ba[_0x366abe('0x209')]?_0x366abe('0x22d')+_0x2d35ba[_0x366abe('0x209')]+_0x366abe('0xa99')+_0x2d35ba['statusText']:'SYSTEM:GET_PAUSES','msg':_0x2d35ba[_0x366abe('0x11c2')]?JSON[_0x366abe('0x25e')](_0x2d35ba[_0x366abe('0x11c2')]):_0x2d35ba[_0x366abe('0x174f')]()});}):_0x1e78ef['pause'][_0x50e9ec('0x595')]({'fields':_0x50e9ec('0x14d5'),'sort':_0x50e9ec('0x19fe'),'nolimit':_0x50e9ec('0x19bd')})[_0x50e9ec('0x1376')][_0x50e9ec('0x21ad')](function(_0x271a1e){var _0x40cf43=_0x50e9ec;_0x1152f9[_0x40cf43('0x1fc7')]=_0x271a1e[_0x40cf43('0x1b33')]||[];})[_0x50e9ec('0x21ad')](function(){var _0x53384b=_0x50e9ec;return _0x1e78ef[_0x53384b('0xab4')][_0x53384b('0x595')]({'userProfileId':_0x1152f9[_0x53384b('0x123f')]['userProfileId'],'sectionId':0x3ed})[_0x53384b('0x1376')];})[_0x50e9ec('0x21ad')](function(_0x139e4e){var _0x41d20b=_0x50e9ec,_0x372e9e=_0x139e4e&&_0x139e4e['rows']?_0x139e4e[_0x41d20b('0x1b33')][0x0]:null;if(!_0x372e9e)_0x1152f9[_0x41d20b('0x1fc7')]=[];else{if(!_0x372e9e[_0x41d20b('0x80c')])return _0x1e78ef['userProfileResource'][_0x41d20b('0x595')]({'sectionId':_0x372e9e['id']})[_0x41d20b('0x1376')]['then'](function(_0x55a89a){var _0x510a78=_0x41d20b,_0x35b300=_0x86640f()[_0x510a78('0x26c3')](_0x55a89a[_0x510a78('0x1b33')],function(_0x2f9822){var _0x4c33f2=_0x510a78;return _0x86640f()['find'](_0x1152f9[_0x4c33f2('0x1fc7')],{'id':_0x2f9822[_0x4c33f2('0x675')]});});_0x1152f9[_0x510a78('0x1fc7')][_0x510a78('0x1a52')](function(_0x1ccccd){var _0x97a676=_0x510a78;!_0x86640f()['some'](_0x35b300,['id',_0x1ccccd['id']])&&(_0x1ccccd[_0x97a676('0xba')]=![]),_0x35b300['push'](_0x1ccccd);}),_0x1152f9[_0x510a78('0x1fc7')]=_0x35b300;});}})[_0x50e9ec('0x1c1d')](function(_0x4a3203){var _0x476adb=_0x50e9ec;_0x17967a[_0x476adb('0x2092')]({'title':_0x4a3203[_0x476adb('0x209')]?_0x476adb('0x22d')+_0x4a3203[_0x476adb('0x209')]+'\x20-\x20'+_0x4a3203['statusText']:_0x476adb('0x17ab'),'msg':_0x4a3203[_0x476adb('0x11c2')]?JSON[_0x476adb('0x25e')](_0x4a3203[_0x476adb('0x11c2')]):_0x4a3203[_0x476adb('0x174f')]()});});function _0x5be485(){var _0x3a9f40=_0x50e9ec;_0x1152f9[_0x3a9f40('0x1a69')]=[],_0x1e78ef[_0x3a9f40('0x1b5d')][_0x3a9f40('0x186f')](_0x1152f9['whatsappAccount'])[_0x3a9f40('0x1376')]['then'](function(_0x52dd71){var _0xf87bc8=_0x3a9f40;_0x1152f9[_0xf87bc8('0x46a')][_0xf87bc8('0xd0c')](_0x52dd71[_0xf87bc8('0x3bc')]()),_0x17967a[_0xf87bc8('0xdb1')]({'title':_0xf87bc8('0xed5'),'msg':_0x1152f9[_0xf87bc8('0x1b5d')][_0xf87bc8('0x19fe')]?_0x1152f9[_0xf87bc8('0x1b5d')][_0xf87bc8('0x19fe')]+_0xf87bc8('0x1694'):''}),_0x57830c(_0x52dd71);})[_0x3a9f40('0x1c1d')](function(_0x2d724f){var _0x37e339=_0x3a9f40;if(_0x2d724f[_0x37e339('0x11c2')]&&_0x2d724f['data'][_0x37e339('0x1a69')]&&_0x2d724f[_0x37e339('0x11c2')][_0x37e339('0x1a69')][_0x37e339('0x577')]){_0x1152f9['errors']=_0x2d724f[_0x37e339('0x11c2')][_0x37e339('0x1a69')]||[{'message':_0x2d724f[_0x37e339('0x174f')](),'type':_0x37e339('0x1132')}];for(var _0x53a38d=0x0;_0x53a38d<_0x2d724f[_0x37e339('0x11c2')][_0x37e339('0x1a69')]['length'];_0x53a38d+=0x1){_0x17967a['error']({'title':_0x2d724f[_0x37e339('0x11c2')][_0x37e339('0x1a69')][_0x53a38d][_0x37e339('0x7fa')],'msg':_0x2d724f[_0x37e339('0x11c2')][_0x37e339('0x1a69')][_0x53a38d][_0x37e339('0x1224')]});}}else _0x17967a['error']({'title':_0x2d724f[_0x37e339('0x209')]?_0x37e339('0x22d')+_0x2d724f['status']+_0x37e339('0xa99')+_0x2d724f[_0x37e339('0x1808')]:'api.whatsappAccount.save','msg':_0x2d724f[_0x37e339('0x11c2')]?JSON[_0x37e339('0x25e')](_0x2d724f[_0x37e339('0x11c2')][_0x37e339('0x1224')]):_0x2d724f[_0x37e339('0x174f')]()});});}function _0x4ae5d5(){var _0x2ff6d1=_0x50e9ec;_0x1152f9[_0x2ff6d1('0x1a69')]=[],_0x1e78ef[_0x2ff6d1('0x1b5d')]['update']({'id':_0x1152f9[_0x2ff6d1('0x1b5d')]['id']},_0x1152f9[_0x2ff6d1('0x1b5d')])[_0x2ff6d1('0x1376')][_0x2ff6d1('0x21ad')](function(_0x434e21){var _0x99bd4a=_0x2ff6d1,_0x46233f=_0x86640f()[_0x99bd4a('0x1d2e')](_0x1152f9[_0x99bd4a('0x46a')],{'id':_0x434e21['id']});_0x46233f&&_0x86640f()[_0x99bd4a('0xd0e')](_0x46233f,_0x86640f()[_0x99bd4a('0xc50')](_0x434e21[_0x99bd4a('0x3bc')](),_0x86640f()[_0x99bd4a('0x223b')](_0x46233f))),_0x17967a[_0x99bd4a('0xdb1')]({'title':_0x99bd4a('0x1d15'),'msg':_0x1152f9[_0x99bd4a('0x1b5d')][_0x99bd4a('0x19fe')]?_0x1152f9['whatsappAccount'][_0x99bd4a('0x19fe')]+_0x99bd4a('0x2249'):''}),_0x57830c(_0x434e21);})[_0x2ff6d1('0x1c1d')](function(_0x10afe0){var _0x84844=_0x2ff6d1;if(_0x10afe0[_0x84844('0x11c2')]&&_0x10afe0[_0x84844('0x11c2')]['errors']&&_0x10afe0[_0x84844('0x11c2')]['errors'][_0x84844('0x577')]){_0x1152f9[_0x84844('0x1a69')]=_0x10afe0[_0x84844('0x11c2')][_0x84844('0x1a69')]||[{'message':_0x10afe0[_0x84844('0x174f')](),'type':'api.whatsappAccount.update'}];for(var _0x585f28=0x0;_0x585f28<_0x10afe0['data']['errors'][_0x84844('0x577')];_0x585f28++){_0x17967a[_0x84844('0x2092')]({'title':_0x10afe0[_0x84844('0x11c2')][_0x84844('0x1a69')][_0x585f28][_0x84844('0x7fa')],'msg':_0x10afe0[_0x84844('0x11c2')]['errors'][_0x585f28][_0x84844('0x1224')]});}}else _0x17967a[_0x84844('0x2092')]({'title':_0x10afe0[_0x84844('0x209')]?_0x84844('0x22d')+_0x10afe0[_0x84844('0x209')]+_0x84844('0xa99')+_0x10afe0['statusText']:_0x84844('0x1076'),'msg':_0x10afe0['data']?JSON[_0x84844('0x25e')](_0x10afe0[_0x84844('0x11c2')][_0x84844('0x1224')]):_0x10afe0[_0x84844('0x174f')]()});});}function _0x2d1eff(_0x57f25d){var _0x1c4704=_0x50e9ec;_0x1152f9[_0x1c4704('0x1a69')]=[];var _0x14573b=_0x45109e[_0x1c4704('0xa33')]()[_0x1c4704('0x4b4')](_0x1c4704('0x196b'))[_0x1c4704('0x13fb')](_0x1c4704('0x2653'))[_0x1c4704('0x7a7')](_0x1c4704('0x62c'))['ok'](_0x1c4704('0xbfd'))[_0x1c4704('0x3b5')]('Cancel')[_0x1c4704('0x1e6d')](_0x57f25d);_0x45109e[_0x1c4704('0x853')](_0x14573b)[_0x1c4704('0x21ad')](function(){var _0x31a3b6=_0x1c4704;_0x1e78ef[_0x31a3b6('0x1b5d')]['delete']({'id':_0x1152f9[_0x31a3b6('0x1b5d')]['id']})['$promise'][_0x31a3b6('0x21ad')](function(){var _0x22e85a=_0x31a3b6;_0x86640f()[_0x22e85a('0x16a2')](_0x1152f9[_0x22e85a('0x46a')],{'id':_0x1152f9[_0x22e85a('0x1b5d')]['id']}),_0x17967a['success']({'title':_0x22e85a('0x1145'),'msg':(_0x1152f9[_0x22e85a('0x1b5d')][_0x22e85a('0x19fe')]||_0x22e85a('0x1b5d'))+'\x20has\x20been\x20deleted!'}),_0x57830c(_0x1152f9[_0x22e85a('0x1b5d')]);})[_0x31a3b6('0x1c1d')](function(_0x297bb4){var _0x118e9e=_0x31a3b6;if(_0x297bb4[_0x118e9e('0x11c2')]&&_0x297bb4[_0x118e9e('0x11c2')]['errors']&&_0x297bb4['data']['errors'][_0x118e9e('0x577')]){_0x1152f9[_0x118e9e('0x1a69')]=_0x297bb4[_0x118e9e('0x11c2')]['errors']||[{'message':_0x297bb4[_0x118e9e('0x174f')](),'type':_0x118e9e('0x2682')}];for(var _0x1630ca=0x0;_0x1630ca<_0x297bb4[_0x118e9e('0x11c2')][_0x118e9e('0x1a69')][_0x118e9e('0x577')];_0x1630ca++){_0x17967a[_0x118e9e('0x2092')]({'title':_0x297bb4[_0x118e9e('0x11c2')][_0x118e9e('0x1a69')][_0x1630ca][_0x118e9e('0x7fa')],'msg':_0x297bb4[_0x118e9e('0x11c2')][_0x118e9e('0x1a69')][_0x1630ca][_0x118e9e('0x1224')]});}}else _0x17967a[_0x118e9e('0x2092')]({'title':_0x297bb4[_0x118e9e('0x209')]?_0x118e9e('0x22d')+_0x297bb4[_0x118e9e('0x209')]+_0x118e9e('0xa99')+_0x297bb4[_0x118e9e('0x1808')]:'api.whatsappAccount.delete','msg':_0x297bb4[_0x118e9e('0x11c2')]?JSON[_0x118e9e('0x25e')](_0x297bb4[_0x118e9e('0x11c2')][_0x118e9e('0x1224')]):_0x297bb4[_0x118e9e('0x1224')]||_0x297bb4[_0x118e9e('0x174f')]()});});},function(){});}function _0x2538ee(_0x15e418){return _0x15e418===null?undefined:new Date(_0x15e418);}function _0x57830c(_0x111122){var _0x4ac53b=_0x50e9ec;_0x45109e[_0x4ac53b('0x1c24')](_0x111122);}}const _0x8ffcbd=_0x5a275b,_0x2e4ec3=_0x398308['p']+_0x3877e3('0x1d01'),_0x4c016d=_0x398308['p']+_0x3877e3('0x1406'),_0x1514ae=_0x398308['p']+_0x3877e3('0x188d'),_0x16dcd8=_0x398308['p']+_0x3877e3('0x7d4'),_0x5837e6=_0x398308['p']+_0x3877e3('0x1a59'),_0x191f49=_0x398308['p']+_0x3877e3('0x12a'),_0x303f76=_0x398308['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/gotop/dialog.html/dialog-[chunkhash].html',_0x376c64=_0x398308['p']+_0x3877e3('0xa1d'),_0x473c75=_0x398308['p']+_0x3877e3('0xbee'),_0x5bcbc9=_0x398308['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/queue/dialog.html/dialog-[chunkhash].html',_0x1d7966=_0x398308['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/system/dialog.html/dialog-[chunkhash].html',_0x5f3f2b=_0x398308['p']+_0x3877e3('0x1cfd');_0x54d26b['$inject']=[_0x3877e3('0xccd'),_0x3877e3('0x1850'),'$document',_0x3877e3('0x1908'),_0x3877e3('0x15bc')];var _0x4a618a={'agent':_0x2e4ec3,'amazonlex':_0x4c016d,'autoreply':_0x1514ae,'close':_0x16dcd8,'dialogflow':_0x5837e6,'gotoif':_0x191f49,'gotop':_0x303f76,'interval':_0x376c64,'noop':_0x473c75,'queue':_0x5bcbc9,'system':_0x1d7966,'tag':_0x5f3f2b};function _0x54d26b(_0x267919,_0x29c56e,_0x5a35a5,_0x1c6cc5,_0x177d45){var _0xed5a11=_0x3877e3,_0x5d0d7a=this;_0x5d0d7a[_0xed5a11('0x123f')]=_0x177d45[_0xed5a11('0x15ed')](),_0x5d0d7a[_0xed5a11('0x1b5d')]={},_0x5d0d7a[_0xed5a11('0x1a4d')]={'count':0x0,'rows':[]},_0x5d0d7a[_0xed5a11('0x24a1')]=[],_0x5d0d7a[_0xed5a11('0x5ed')],_0x5d0d7a['query']={'sort':_0xed5a11('0xbe5')},_0x5d0d7a[_0xed5a11('0x69a')]=_0x86640f()[_0xed5a11('0x37a')](_0x86640f()[_0xed5a11('0x203e')]([{'app':'Interval','appType':_0xed5a11('0xa07'),'types':[_0xed5a11('0x869'),_0xed5a11('0xf50'),_0xed5a11('0x17fe')],'fields':[],'isApp':![]},{'app':_0xed5a11('0x2101'),'appType':_0xed5a11('0x2101'),'type':'noop','icon':_0xed5a11('0x1da4'),'interval':'*,*,*,*','required':!![],'isApp':!![],'fields':[{'title':_0xed5a11('0x17a0'),'name':_0xed5a11('0x2228'),'type':_0xed5a11('0xc1e'),'param':0x0}]},{'app':'system','appType':_0xed5a11('0x12b1'),'type':'system','icon':_0xed5a11('0x1da4'),'interval':_0xed5a11('0x1cc4'),'required':!![],'isApp':!![],'extraApi':[{'name':'variables','field':{'name':_0xed5a11('0x25bb'),'key':_0xed5a11('0x19fe')},'route':_0xed5a11('0x25bb'),'filters':{'fields':_0xed5a11('0x1aa8'),'sort':'name','nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0xed5a11('0x669'),'name':'command','type':_0xed5a11('0xc1e'),'required':!![],'param':0x0},{'title':_0xed5a11('0x2200'),'name':_0xed5a11('0x25bb'),'type':_0xed5a11('0x15e9'),'values':_0xed5a11('0x142d'),'value':_0xed5a11('0x1958'),'option':'variable.name','defaultValues':[{'value':'\x27\x27','option':_0xed5a11('0x2405')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0xed5a11('0x23ef'),'appType':'gotop','type':_0xed5a11('0x12ec'),'icon':_0xed5a11('0x1da4'),'interval':_0xed5a11('0x1cc4'),'isApp':!![],'fields':[{'title':_0xed5a11('0x168e'),'name':_0xed5a11('0xbe5'),'type':_0xed5a11('0xed8'),'required':!![],'min':0x0,'param':0x0}]},{'app':_0xed5a11('0x262'),'appType':_0xed5a11('0x262'),'type':'gotoif','icon':'icon-apps','interval':_0xed5a11('0x1cc4'),'isApp':!![],'fields':[{'title':_0xed5a11('0x16d8'),'name':'condition','type':'text','required':!![],'param':0x0},{'title':_0xed5a11('0x1a25'),'name':_0xed5a11('0x1a25'),'type':_0xed5a11('0xed8'),'min':0x1,'required':!![],'param':0x1},{'title':'falsepriority','name':_0xed5a11('0xe4c'),'type':_0xed5a11('0xed8'),'min':0x1,'required':!![],'param':0x2}]},{'app':'queue','appType':_0xed5a11('0xbdd'),'foreignKey':_0xed5a11('0x1097'),'type':'queue','icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0xed5a11('0xb7a'),'field':{'name':_0xed5a11('0xbdd'),'key':_0xed5a11('0x19fe')},'route':_0xed5a11('0x1f8f'),'filters':{'fields':_0xed5a11('0xfa'),'sort':_0xed5a11('0x19fe'),'nolimit':!![]},'permissions':{'section':0x836}}],'fields':[{'title':_0xed5a11('0x1da'),'name':_0xed5a11('0xbdd'),'type':_0xed5a11('0x15e9'),'values':_0xed5a11('0xb7a'),'value':'queue.name','option':'queue.name','defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0xed5a11('0x1149'),'name':'timeout','type':_0xed5a11('0xed8'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0xed5a11('0x2402'),'appType':'agent','type':_0xed5a11('0x2402'),'foreignKey':'UserId','icon':_0xed5a11('0x1da4'),'interval':_0xed5a11('0x1cc4'),'isApp':!![],'extraApi':[{'name':'agents','field':{'name':'agent','key':_0xed5a11('0x19fe')},'route':_0xed5a11('0x1775'),'filters':{'fields':_0xed5a11('0x1aa8'),'sort':_0xed5a11('0x19fe'),'nolimit':!![],'role':'agent'},'permissions':{'section':0xca}}],'fields':[{'title':'Agent','name':'agent','type':_0xed5a11('0x15e9'),'values':'agents','value':_0xed5a11('0x2797'),'option':'agent.name','required':!![],'param':0x0},{'title':_0xed5a11('0x1149'),'name':'timeout','type':_0xed5a11('0xed8'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0xed5a11('0x1b98'),'appType':_0xed5a11('0x1b98'),'type':'autoreply','icon':_0xed5a11('0x1da4'),'interval':_0xed5a11('0x1cc4'),'isApp':!![],'fields':[{'title':_0xed5a11('0x13b6'),'name':_0xed5a11('0x13b6'),'type':'select','defaultValue':'1','values':[{'option':_0xed5a11('0xafd'),'value':'1'},{'option':'Always','value':'0'}],'required':!![],'param':0x0},{'title':_0xed5a11('0x1d81'),'name':_0xed5a11('0xc1e'),'type':'textarea','required':!![],'param':0x1}]},{'app':'close','appType':'close','type':'close','icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0xed5a11('0x1d3d'),'name':_0xed5a11('0x22c8'),'type':'text','required':!![],'param':0x0}]},{'app':_0xed5a11('0x907'),'appType':_0xed5a11('0x907'),'type':_0xed5a11('0x907'),'foreignKey':_0xed5a11('0x4ab'),'icon':_0xed5a11('0x1da4'),'interval':_0xed5a11('0x1cc4'),'isApp':!![],'extraApi':[{'name':_0xed5a11('0x1889'),'field':{'name':'tag','key':_0xed5a11('0x19fe')},'route':'tag','filters':{'fields':'id,name','sort':_0xed5a11('0x19fe'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':'Tag','name':'tag','type':_0xed5a11('0x15e9'),'values':_0xed5a11('0x1889'),'value':_0xed5a11('0x1706'),'option':'tag.name','required':!![],'param':0x0}]},{'app':'dialogflow','appType':'dialogflow','type':'dialogflow','icon':_0xed5a11('0x1da4'),'interval':_0xed5a11('0x1cc4'),'isApp':!![],'fields':[{'title':'Key','name':_0xed5a11('0xddb'),'type':_0xed5a11('0xc1e'),'required':!![],'param':0x0},{'title':_0xed5a11('0x10f'),'name':_0xed5a11('0x10f'),'type':_0xed5a11('0x2844'),'defaultValue':'\x27en\x27','values':[{'option':_0xed5a11('0xaa1'),'value':_0xed5a11('0x1119')},{'option':_0xed5a11('0x2733'),'value':'\x27en\x27'},{'option':_0xed5a11('0x2a'),'value':_0xed5a11('0x1e5f')},{'option':_0xed5a11('0xda4'),'value':_0xed5a11('0x1151')},{'option':'Spanish','value':_0xed5a11('0x931')},{'option':_0xed5a11('0x1ada'),'value':_0xed5a11('0x1407')},{'option':_0xed5a11('0x4c'),'value':'\x27id\x27'},{'option':_0xed5a11('0x1aa6'),'value':_0xed5a11('0x1405')},{'option':'Korean\x20(South\x20Korea)','value':_0xed5a11('0xf4d')},{'option':_0xed5a11('0x1513'),'value':_0xed5a11('0x14b9')},{'option':'Norwegian','value':_0xed5a11('0x1223')},{'option':_0xed5a11('0x1732'),'value':'\x27pt\x27'},{'option':_0xed5a11('0x132c'),'value':'\x27pt-br\x27'},{'option':_0xed5a11('0x410'),'value':_0xed5a11('0xf1d')},{'option':_0xed5a11('0x15e7'),'value':_0xed5a11('0x1d3e')},{'option':'Thai','value':_0xed5a11('0xb3a')},{'option':_0xed5a11('0x27e2'),'value':_0xed5a11('0x1077')},{'option':'Chinese\x20(Simplified)','value':_0xed5a11('0x22b3')},{'option':'Chinese\x20(Hong\x20Kong)','value':'\x27zh-HK\x27'},{'option':'Chinese\x20(Traditional)','value':'\x27zh-TW\x27'}],'required':!![],'param':0x1},{'title':'welcomemessage','name':_0xed5a11('0x1cce'),'type':_0xed5a11('0x20f9'),'maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':_0xed5a11('0x1c22'),'appType':_0xed5a11('0x1c22'),'type':'amazonlex','icon':'icon-apps','interval':_0xed5a11('0x1cc4'),'isApp':!![],'fields':[{'title':_0xed5a11('0x21c6'),'name':_0xed5a11('0x21c6'),'type':_0xed5a11('0xc1e'),'required':!![],'param':0x0},{'title':_0xed5a11('0x797'),'name':_0xed5a11('0x797'),'type':_0xed5a11('0xc1e'),'required':!![],'param':0x1},{'title':_0xed5a11('0x20a3'),'name':_0xed5a11('0x20a3'),'type':'select','defaultValue':_0xed5a11('0x20c7'),'values':[{'option':_0xed5a11('0x1a91'),'value':_0xed5a11('0x20c7')},{'option':_0xed5a11('0x1b2a'),'value':_0xed5a11('0x2335')},{'option':_0xed5a11('0x1844'),'value':_0xed5a11('0x1cd5')},{'option':'Asia\x20Pacific\x20(Sydney)','value':'\x27ap-southeast-2\x27'}],'required':!![],'param':0x2},{'title':_0xed5a11('0x15fe'),'name':_0xed5a11('0x15fe'),'type':_0xed5a11('0xc1e'),'required':!![],'param':0x3},{'title':_0xed5a11('0x1cce'),'name':_0xed5a11('0x1cce'),'type':_0xed5a11('0x20f9'),'maxlength':0xff,'required':![],'param':0x4,'help':!![]}]}],[_0xed5a11('0x1f94')]),{'isApp':![]}),_0x5d0d7a['list']={'group':{'name':_0xed5a11('0xcd'),'pull':_0xed5a11('0x1af0')},'animation':0x64,'sort':![]},_0x5d0d7a[_0xed5a11('0x21d8')]={'group':{'name':_0xed5a11('0x1627'),'put':_0xed5a11('0xcd')},'animation':0x64,'onAdd':function _0x52c31e(_0x50dfcd){var _0x1cfc29=_0xed5a11;_0x5e3c44(_0x50dfcd,_0x50dfcd[_0x1cfc29('0x5b8')]);},'onSort':function _0x358f7b(){_0x54eac7();}},_0x5d0d7a[_0xed5a11('0x1d75')]=_0x32432f,_0x5d0d7a[_0xed5a11('0x15dc')]=_0xc885e8,_0x5d0d7a['getWhatsappAccountApps']=_0x18f7e5,_0x5d0d7a[_0xed5a11('0x105d')]=_0x5e3c44,_0x5d0d7a[_0xed5a11('0xb14')]=_0x45bac7,_0x5d0d7a[_0xed5a11('0x1b93')]=_0xc12055,_0x5d0d7a[_0xed5a11('0xfff')]=_0x5ee16c,_0x5d0d7a['rewriteRouting']=_0x54eac7,_0x5d0d7a[_0xed5a11('0x1ceb')]=_0xdf733e;function _0x32432f(_0x292efa,_0x1780d5){var _0x15cc45=_0xed5a11;_0x5d0d7a[_0x15cc45('0x1b5d')]=_0x292efa,_0x5d0d7a['crudPermissions']=typeof _0x1780d5!=='undefined'?_0x1780d5:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5d0d7a['applications']['disabled']=!_0x5d0d7a[_0x15cc45('0x5ed')][_0x15cc45('0x6e2')]?!![]:![],_0x5d0d7a[_0x15cc45('0x77')]['id']=_0x292efa['id'],_0x5d0d7a['query'][_0x15cc45('0x9f2')]=!![],_0x5d0d7a[_0x15cc45('0x77')][_0x15cc45('0x1dc3')]=!![],_0x5d0d7a['getWhatsappAccountApps'](),_0x5d0d7a['getIntervals']();}function _0xc885e8(_0x56956d,_0xe1d61c,_0x416e6f){var _0x4095c6=_0xed5a11,_0x4cab5d=_0x29c56e[_0x4095c6('0xa33')]()[_0x4095c6('0x4b4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')[_0x4095c6('0x276b')](_0x4095c6('0x622')+_0x56956d[_0x4095c6('0x1f94')]+_0x4095c6('0x2135')+_0x4095c6('0x25e0'))[_0x4095c6('0x7a7')](_0x4095c6('0x1b99'))[_0x4095c6('0x1e6d')](_0x416e6f)['ok']('OK')[_0x4095c6('0x3b5')](_0x4095c6('0x284b'));_0x29c56e[_0x4095c6('0x853')](_0x4cab5d)[_0x4095c6('0x21ad')](function(){var _0x508a01=_0x4095c6;_0x5d0d7a['whatsappAccountApps'][_0x508a01('0x1b33')][_0x508a01('0xafe')](_0xe1d61c,0x1),_0x54eac7();},function(){var _0x4c2d85=_0x4095c6;console[_0x4c2d85('0x6fb')]('CANCEL');});}function _0x5e3c44(_0x1358e2,_0x9bceb5){var _0x51a92b=_0xed5a11;if(_0x5d0d7a[_0x51a92b('0x1a4d')]['rows']['length']){var _0xc3e960=_0x5d0d7a[_0x51a92b('0x1a4d')]['rows'][_0x9bceb5]?_0x5d0d7a['whatsappAccountApps']['rows'][_0x9bceb5]:_0x5d0d7a['whatsappAccountApps'][_0x51a92b('0x1b33')][0x0],_0x1ab9f0=(_0xc3e960[_0x51a92b('0x522')]||_0xc3e960[_0x51a92b('0x1f94')])[_0x51a92b('0xac2')]();_0x29c56e[_0x51a92b('0x853')]({'controller':_0x51a92b('0xf6e')['concat'](_0x1ab9f0,_0x51a92b('0x19d9')),'controllerAs':'vm','templateUrl':_0x4a618a[_0x1ab9f0],'parent':angular['element'](_0x5a35a5[_0x51a92b('0x2452')]),'targetEvent':_0x1358e2,'clickOutsideToClose':!![],'locals':{'whatsappAccountApp':_0xc3e960,'whatsappAccount':_0x5d0d7a[_0x51a92b('0x1b5d')],'crudPermissions':_0x5d0d7a['crudPermissions']}})[_0x51a92b('0x21ad')](function(_0x66d7d5){var _0x43a5c1=_0x51a92b;_0x66d7d5&&(_0x66d7d5['id']?_0x5d0d7a[_0x43a5c1('0x1a4d')]['rows'][_0x9bceb5]=_0x66d7d5:_0x5d0d7a[_0x43a5c1('0x1a4d')][_0x43a5c1('0x1b33')][_0x43a5c1('0xafe')](_0x9bceb5,0x0,_0x66d7d5),_0x54eac7());})[_0x51a92b('0x1c1d')](function(_0x5d2c7f){var _0x2823f8=_0x51a92b;_0x5d2c7f&&_0x1c6cc5['error']({'title':_0x5d2c7f[_0x2823f8('0x209')]?_0x2823f8('0x22d')+_0x5d2c7f['status']+_0x2823f8('0xa99')+_0x5d2c7f['statusText']:_0x2823f8('0x20b3'),'msg':_0x5d2c7f[_0x2823f8('0x11c2')]?JSON[_0x2823f8('0x25e')](_0x5d2c7f[_0x2823f8('0x11c2')]):_0x5d2c7f[_0x2823f8('0x174f')]()});});}}function _0x45bac7(_0x4e171c,_0x29ddec){var _0x3277af=_0xed5a11;if(_0x5d0d7a['whatsappAccountApps'][_0x3277af('0x1b33')]['length']){var _0x36ae6c=_0x5d0d7a[_0x3277af('0x1a4d')]['rows'][_0x29ddec]?_0x5d0d7a['whatsappAccountApps'][_0x3277af('0x1b33')][_0x29ddec]:_0x5d0d7a[_0x3277af('0x1a4d')][_0x3277af('0x1b33')][0x0];_0x29c56e['show']({'controller':_0x3277af('0x154a'),'controllerAs':'vm','templateUrl':_0x376c64,'parent':angular['element'](_0x5a35a5[_0x3277af('0x2452')]),'targetEvent':_0x4e171c,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x36ae6c['interval'],'IntervalId':_0x36ae6c[_0x3277af('0x1ac8')],'application':!![]},'intervals':[],'crudPermissions':_0x5d0d7a[_0x3277af('0x5ed')]}})[_0x3277af('0x21ad')](function(_0x14c87c){var _0x4fd4c7=_0x3277af;_0x14c87c&&(_0x36ae6c[_0x4fd4c7('0xa07')]=_0x14c87c[_0x4fd4c7('0xa07')]||_0x4fd4c7('0x1cc4'),_0x36ae6c[_0x4fd4c7('0x1ac8')]=_0x14c87c['IntervalId']||null,_0x54eac7());});}}function _0x54eac7(){var _0x350232=_0xed5a11,_0x4cc036=0x1,_0x229466=[];for(var _0x3329bb=0x0;_0x3329bb<_0x5d0d7a[_0x350232('0x1a4d')]['rows'][_0x350232('0x577')];_0x3329bb++){var _0x4f010c=_0x5d0d7a['whatsappAccountApps']['rows'][_0x3329bb],_0x241ede=[],_0x3166e6=[];_0x4f010c[_0x350232('0x2530')]=_0x4f010c[_0x350232('0xa07')]!==_0x350232('0x1cc4')?[_0x4f010c[_0x350232('0xa07')]]:_0x4f010c[_0x350232('0x1ac8')]?_0x86640f()['map'](_0x86640f()[_0x350232('0x1503')](_0x5d0d7a['intervals']['rows'],{'IntervalId':_0x4f010c[_0x350232('0x1ac8')]}),_0x350232('0xa07')):[],_0x4f010c[_0x350232('0x244c')]=_0x5d0d7a[_0x350232('0x1b5d')][_0x350232('0x244c')],_0x4f010c[_0x350232('0x24b7')]=_0x5d0d7a[_0x350232('0x1b5d')]['exten'],_0x4f010c[_0x350232('0x7fa')]&&(_0x4f010c[_0x350232('0x7fa')]=_0x4f010c['type'][_0x350232('0xac2')]()),_0x4f010c[_0x350232('0xbe5')]=_0x241ede['length']?_0x86640f()[_0x350232('0x25d5')](_0x241ede)[_0x350232('0xbe5')]+0x1:_0x4cc036,_0x4cc036=(_0x3166e6['length']?_0x86640f()[_0x350232('0x25d5')](_0x3166e6)['priority']:_0x4f010c['priority'])+0x1,_0x229466=_0x86640f()[_0x350232('0x1877')](_0x229466,_0x241ede,[_0x4f010c],_0x3166e6);}_0x267919[_0x350232('0x1b5d')][_0x350232('0x69f')]({'id':_0x5d0d7a[_0x350232('0x1b5d')]['id']},_0x86640f()[_0x350232('0x203e')](_0x229466,_0x350232('0xbe5')))['$promise'][_0x350232('0x21ad')](function(_0x430541){var _0x60b2ac=_0x350232;_0x5d0d7a[_0x60b2ac('0x1a4d')][_0x60b2ac('0x1b33')]=_0x430541['rows'];})['catch'](function(_0x15761f){var _0x30cb9e=_0x350232;console[_0x30cb9e('0x2092')](_0x15761f);});}function _0x21022a(_0x10b2f2){var _0x159dab=_0xed5a11;_0x5d0d7a[_0x159dab('0x1a4d')]=_0x10b2f2||{'count':0x0,'rows':[]};}function _0xdf733e(){var _0x52e1bf=_0xed5a11;return _0x267919[_0x52e1bf('0xa07')][_0x52e1bf('0x595')]({'fields':_0x52e1bf('0x7b5')})[_0x52e1bf('0x1376')][_0x52e1bf('0x21ad')](function(_0xebc96e){var _0xe4306d=_0x52e1bf;_0x5d0d7a[_0xe4306d('0x2530')]=_0xebc96e;})['catch'](function(_0x336b1a){console['error'](_0x336b1a);});}function _0x18f7e5(){var _0x404e0a=_0xed5a11;_0x5d0d7a['promise']=_0x267919[_0x404e0a('0x1b5d')][_0x404e0a('0x1290')](_0x5d0d7a[_0x404e0a('0x77')],_0x21022a)[_0x404e0a('0x1376')];}function _0xc12055(_0x5cf8b5){var _0x401e01=_0xed5a11;_0x86640f()[_0x401e01('0x16a2')](_0x5d0d7a[_0x401e01('0x1a4d')][_0x401e01('0x1b33')],{'id':_0x5cf8b5['id']}),_0x54eac7(),_0x1c6cc5[_0x401e01('0xdb1')]({'title':_0x401e01('0x1922'),'msg':_0x5cf8b5[_0x401e01('0x1f94')]?_0x5cf8b5[_0x401e01('0x1f94')]+'\x20has\x20been\x20deleted!':''});}function _0x5ee16c(_0x2ab7eb){var _0xa7be03=_0xed5a11,_0x23e481=_0x29c56e[_0xa7be03('0xa33')]()[_0xa7be03('0x4b4')](_0xa7be03('0x152a'))[_0xa7be03('0x276b')](_0xa7be03('0x622')+_0x5d0d7a[_0xa7be03('0x24a1')]['length']+_0xa7be03('0xd74')+_0xa7be03('0x25e0'))[_0xa7be03('0x7a7')](_0xa7be03('0x89d'))[_0xa7be03('0x1e6d')](_0x2ab7eb)['ok']('OK')[_0xa7be03('0x3b5')](_0xa7be03('0x284b'));_0x29c56e[_0xa7be03('0x853')](_0x23e481)[_0xa7be03('0x21ad')](function(){var _0x288e91=_0xa7be03;_0x5d0d7a[_0x288e91('0x24a1')][_0x288e91('0x1a52')](function(_0x1799b3){var _0x3dc6ab=_0x288e91;_0x86640f()[_0x3dc6ab('0x16a2')](_0x5d0d7a['whatsappAccountApps'][_0x3dc6ab('0x1b33')],{'id':_0x1799b3['id']});}),_0x5d0d7a['selectedWhatsappAccountApps']=[],_0x54eac7();});}}const _0x45dcef=_0x54d26b;_0x6c6b96[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q','toasty',_0x3877e3('0xccd'),_0x3877e3('0x1b5d'),_0x3877e3('0x46a'),_0x3877e3('0x116a'),_0x3877e3('0x13c1'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x6c6b96(_0x454200,_0x455853,_0x3f3542,_0x111b6a,_0x24f5b0,_0x502865,_0x2a5762,_0x3ff570,_0x132840,_0x32d70a){var _0xa5c65d=_0x3877e3,_0x5f32fb=this;_0x5f32fb[_0xa5c65d('0x123f')]=_0x132840[_0xa5c65d('0x15ed')](),_0x5f32fb[_0xa5c65d('0x1b5d')]=_0x24f5b0,_0x5f32fb[_0xa5c65d('0x5ed')]=_0x32d70a,_0x5f32fb[_0xa5c65d('0x116a')]=_0x2a5762,_0x5f32fb[_0xa5c65d('0x1b9a')]=[],_0x5f32fb[_0xa5c65d('0x1e09')]=[],_0x5f32fb['selectedItems']=[],_0x5f32fb[_0xa5c65d('0x91b')]=[],_0x5f32fb[_0xa5c65d('0x2584')]=[],_0x5f32fb['pendingChanges']=![],_0x5f32fb[_0xa5c65d('0x1081')]=_0x1629c0,_0x5f32fb[_0xa5c65d('0x265b')]=_0x27e29c,_0x5f32fb[_0xa5c65d('0x167')]=_0x4619b,_0x5f32fb[_0xa5c65d('0x909')]={'readOnly':!_0x5f32fb[_0xa5c65d('0x5ed')][_0xa5c65d('0x6e2')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':'fullname','line2':[_0xa5c65d('0x19fe'),_0xa5c65d('0x201f')],'line3':'','labelAll':_0x3ff570[_0xa5c65d('0x183e')](_0xa5c65d('0x24c4')),'labelSelected':_0x3ff570[_0xa5c65d('0x183e')]('WHATSAPP.SELECTED_AGENTS'),'transferCallback':function _0x1dd0d9(){var _0x18c88f=_0xa5c65d,_0x5ea33f=_0x86640f()[_0x18c88f('0x1473')](_0x5f32fb[_0x18c88f('0x2584')],_0x5f32fb['selectedItems'],'id');_0x5f32fb[_0x18c88f('0x1bb9')]=_0x86640f()[_0x18c88f('0x23aa')](_0x5ea33f)?![]:!![];}};function _0x1629c0(){var _0x5ac415=_0xa5c65d;return _0x132840['hasRole'](_0x5ac415('0x1bd8'))?_0x272562()[_0x5ac415('0x1c1d')](function(_0x1a1b18){var _0x397145=_0x5ac415;_0x3f3542[_0x397145('0x2092')]({'title':_0x1a1b18['status']?_0x397145('0x22d')+_0x1a1b18[_0x397145('0x209')]+_0x397145('0xa99')+_0x1a1b18[_0x397145('0x1808')]:_0x397145('0x1381'),'msg':_0x1a1b18[_0x397145('0x209')]?JSON['stringify'](_0x1a1b18[_0x397145('0x11c2')]):_0x1a1b18['toString']()});}):_0x5c3ac1()['then'](function(_0x7bd5d6){var _0x3199f8=_0x5ac415;return _0x5f32fb[_0x3199f8('0x26ad')]=_0x7bd5d6,_0x272562();})[_0x5ac415('0x1c1d')](function(_0x5990bb){var _0x504f9f=_0x5ac415;_0x3f3542[_0x504f9f('0x2092')]({'title':_0x5990bb[_0x504f9f('0x209')]?_0x504f9f('0x22d')+_0x5990bb['status']+_0x504f9f('0xa99')+_0x5990bb[_0x504f9f('0x1808')]:_0x504f9f('0x1381'),'msg':_0x5990bb[_0x504f9f('0x209')]?JSON[_0x504f9f('0x25e')](_0x5990bb['data']):_0x5990bb[_0x504f9f('0x174f')]()});});}function _0x5c3ac1(){return _0x455853(function(_0x365aca,_0x29a347){var _0x561d8c=a0_0x2e7f;_0x111b6a[_0x561d8c('0xab4')][_0x561d8c('0x595')]({'userProfileId':_0x5f32fb[_0x561d8c('0x123f')][_0x561d8c('0x1618')],'name':_0x561d8c('0xfed')})[_0x561d8c('0x1376')][_0x561d8c('0x21ad')](function(_0x25195a){var _0x4aaad2=_0x561d8c,_0x47b040=_0x25195a&&_0x25195a[_0x4aaad2('0x1b33')]?_0x25195a[_0x4aaad2('0x1b33')][0x0]:null;_0x365aca(_0x47b040);})[_0x561d8c('0x1c1d')](function(_0x34c1e3){_0x29a347(_0x34c1e3);});});}function _0x272562(){return _0x455853(function(_0x23f21e,_0x1299e2){var _0x449e31=a0_0x2e7f;return _0x5dbb54()['then'](function(_0x105a1f){var _0x4fa546=a0_0x2e7f;return _0x5f32fb['items']=_0x105a1f[_0x4fa546('0x1b33')]?_0x105a1f[_0x4fa546('0x1b33')]:[],_0x132840[_0x4fa546('0x21de')](_0x4fa546('0x1bd8'))?_0x105a1f:_0x5f32fb[_0x4fa546('0x26ad')]?_0x5f32fb['section']['autoAssociation']?_0x105a1f:_0x66ed2a():null;})[_0x449e31('0x21ad')](function(_0xca7f67){var _0x38917b=_0x449e31,_0x49e10d=_0xca7f67&&_0xca7f67[_0x38917b('0x1b33')]?_0xca7f67[_0x38917b('0x1b33')]:[];return _0x5f32fb[_0x38917b('0x1e09')]=_0x86640f()[_0x38917b('0x26c3')](_0x49e10d,function(_0x5d2e58){var _0x453296=_0x38917b;return _0x86640f()[_0x453296('0x1d2e')](_0x5f32fb[_0x453296('0x1b9a')],{'id':_0x132840['hasRole'](_0x453296('0x1bd8'))||_0x5f32fb[_0x453296('0x26ad')][_0x453296('0x80c')]?_0x5d2e58['id']:_0x5d2e58[_0x453296('0x675')]});}),_0x5f32fb['startingAllowedItems']=angular[_0x38917b('0xd75')](_0x5f32fb[_0x38917b('0x1e09')]),_0x5f32fb[_0x38917b('0x1b9a')][_0x38917b('0x1a52')](function(_0x5dd2dc){var _0x70d0e=_0x38917b,_0x12defe=_0x86640f()[_0x70d0e('0x1d2e')](_0x5f32fb['allowedItems'],{'id':_0x5dd2dc['id']});_0x132840['hasRole'](_0x70d0e('0x1bd8'))?_0x5dd2dc['isValid']=!![]:_0x5dd2dc[_0x70d0e('0x118b')]=typeof _0x12defe!==_0x70d0e('0xddc')?!![]:![];}),_0x4c4702();})[_0x449e31('0x21ad')](function(_0x58fe6b){var _0x2977cc=_0x449e31,_0x47669f=_0x58fe6b&&_0x58fe6b[_0x2977cc('0x1b33')]?_0x58fe6b[_0x2977cc('0x1b33')]:[];_0x5f32fb[_0x2977cc('0x2629')]=_0x86640f()['map'](_0x47669f,function(_0x2b28c){var _0x1ac4b4=_0x2977cc,_0x4a5542=_0x86640f()['find'](_0x5f32fb['items'],{'id':_0x2b28c['id']});return _0x4a5542[_0x1ac4b4('0x1195')]=_0x2b28c[_0x1ac4b4('0x1dfa')]?'penalty\x20'+_0x2b28c[_0x1ac4b4('0x1dfa')][_0x1ac4b4('0x1195')]:'',_0x4a5542[_0x1ac4b4('0x201f')]=typeof _0x2b28c[_0x1ac4b4('0x201f')]!==_0x1ac4b4('0xddc')?'<'+_0x2b28c['internal']+'>':'',_0x4a5542;}),_0x5f32fb[_0x2977cc('0x2584')]=angular[_0x2977cc('0xd75')](_0x5f32fb[_0x2977cc('0x2629')]),_0x5f32fb[_0x2977cc('0x909')][_0x2977cc('0x2629')]=_0x5f32fb['selectedItems'],_0x5f32fb[_0x2977cc('0x909')]['items']=_0x86640f()[_0x2977cc('0x1eab')](_0x5f32fb['allowedItems'],_0x5f32fb[_0x2977cc('0x909')]['selectedItems'],'id'),_0x23f21e();})[_0x449e31('0x1c1d')](function(_0x4cd127){_0x1299e2(_0x4cd127);});});}function _0x66ed2a(){return _0x455853(function(_0xaa160b,_0x29a70b){var _0x25e2d0=a0_0x2e7f;return _0x111b6a[_0x25e2d0('0x185e')][_0x25e2d0('0x595')]({'sectionId':_0x5f32fb[_0x25e2d0('0x26ad')]['id'],'nolimit':!![]})['$promise'][_0x25e2d0('0x21ad')](function(_0x1ac286){_0xaa160b(_0x1ac286);})['catch'](function(_0x521e71){_0x29a70b(_0x521e71);});});}function _0x4c4702(){return _0x455853(function(_0x1c5074,_0x2ae4e9){var _0x459b85=a0_0x2e7f;return _0x111b6a[_0x459b85('0x1b5d')][_0x459b85('0x13ad')]({'id':_0x5f32fb[_0x459b85('0x1b5d')]['id'],'fields':_0x459b85('0x1eea'),'nolimit':!![],'role':'agent'})[_0x459b85('0x1376')][_0x459b85('0x21ad')](function(_0x1fe39a){_0x1c5074(_0x1fe39a);})['catch'](function(_0x5bfdb6){_0x2ae4e9(_0x5bfdb6);});});}function _0x5dbb54(){return _0x455853(function(_0x5a6380,_0x3c03d8){var _0x355137=a0_0x2e7f;return _0x111b6a['user'][_0x355137('0x595')]({'fields':_0x355137('0x1eea'),'nolimit':!![],'role':_0x355137('0x2402')})[_0x355137('0x1376')][_0x355137('0x21ad')](function(_0x2e8e72){_0x5a6380(_0x2e8e72);})[_0x355137('0x1c1d')](function(_0x3c50c4){_0x3c03d8(_0x3c50c4);});});}function _0x23dfeb(_0x3898cd){return _0x455853(function(_0x143a83,_0x6136f6){var _0x251103=a0_0x2e7f;_0x86640f()[_0x251103('0x23aa')](_0x3898cd)?_0x143a83():_0x111b6a['whatsappAccount'][_0x251103('0x1116')]({'id':_0x5f32fb[_0x251103('0x1b5d')]['id'],'ids':_0x86640f()[_0x251103('0x26c3')](_0x3898cd,'id')})[_0x251103('0x1376')][_0x251103('0x21ad')](function(){_0x143a83();})[_0x251103('0x1c1d')](function(_0x5d2fba){_0x6136f6(_0x5d2fba);});});}function _0xfb38ba(_0x78332e){return _0x455853(function(_0x5528b5,_0x5066ec){var _0x5018fa=a0_0x2e7f;_0x86640f()[_0x5018fa('0x23aa')](_0x78332e)?_0x5528b5():_0x111b6a[_0x5018fa('0x1b5d')][_0x5018fa('0x59e')]({'id':_0x5f32fb[_0x5018fa('0x1b5d')]['id'],'ids':_0x86640f()['map'](_0x78332e,'id')})[_0x5018fa('0x1376')][_0x5018fa('0x21ad')](function(){_0x5528b5();})[_0x5018fa('0x1c1d')](function(_0x584433){_0x5066ec(_0x584433);});});}function _0x27e29c(){var _0x20f39c=_0xa5c65d,_0x2b4720=_0x86640f()[_0x20f39c('0x1eab')](_0x5f32fb[_0x20f39c('0x2584')],_0x5f32fb['selectedItems'],'id'),_0x43fba2=_0x86640f()[_0x20f39c('0x1eab')](_0x5f32fb[_0x20f39c('0x2629')],_0x5f32fb[_0x20f39c('0x2584')],'id');return _0xfb38ba(_0x2b4720)[_0x20f39c('0x21ad')](function(){return _0x23dfeb(_0x43fba2);})['then'](function(){var _0x26ff4a=_0x20f39c;_0x5f32fb[_0x26ff4a('0x1bb9')]=![],_0x5f32fb['startingAllowedItems']=angular[_0x26ff4a('0xd75')](_0x5f32fb['allowedItems']),_0x5f32fb[_0x26ff4a('0x2584')]=angular[_0x26ff4a('0xd75')](_0x5f32fb[_0x26ff4a('0x2629')]),_0x3f3542['success']({'title':_0x26ff4a('0x2804'),'msg':_0x26ff4a('0x2239')});})['catch'](function(_0x2bd6b3){var _0x4d5c8c=_0x20f39c;_0x3f3542[_0x4d5c8c('0x2092')]({'title':_0x2bd6b3[_0x4d5c8c('0x209')]?_0x4d5c8c('0x22d')+_0x2bd6b3[_0x4d5c8c('0x209')]+'\x20-\x20'+_0x2bd6b3['statusText']:_0x4d5c8c('0x1dd7'),'msg':_0x2bd6b3['status']?JSON[_0x4d5c8c('0x25e')](_0x2bd6b3[_0x4d5c8c('0x11c2')]):_0x2bd6b3['toString']()});});}function _0x4619b(){var _0x4c48e1=_0xa5c65d;_0x454200[_0x4c48e1('0x1c24')]();}}const _0x364e48=_0x6c6b96;_0x45eaf4[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q','toasty',_0x3877e3('0x1b9c'),'whatsappAccount',_0x3877e3('0xccd'),'Auth','crudPermissions'];function _0x45eaf4(_0x35a7fb,_0x438f80,_0xf47dae,_0x2dde18,_0xbf79ff,_0x3b846d,_0x2d42fc,_0xb93386){var _0x23eedd=_0x3877e3,_0x4a33db=this;_0x4a33db[_0x23eedd('0x123f')]=_0x2d42fc[_0x23eedd('0x15ed')](),_0x4a33db['errors']=[],_0x4a33db[_0x23eedd('0x4b4')]=_0x23eedd('0x1442')+(_0x2dde18[_0x23eedd('0x522')]||_0x2dde18[_0x23eedd('0x1f94')])[_0x23eedd('0x2e8')](),_0x4a33db[_0x23eedd('0x2402')]=angular[_0x23eedd('0xd75')](_0x2dde18),_0x4a33db[_0x23eedd('0x5ed')]=_0xb93386,_0x4a33db[_0x23eedd('0x126a')]={};if(_0x4a33db[_0x23eedd('0x2402')][_0x23eedd('0x23c2')])switch(_0x4a33db[_0x23eedd('0x2402')][_0x23eedd('0x522')]?_0x4a33db[_0x23eedd('0x2402')]['appType'][_0x23eedd('0xac2')]():_0x4a33db['agent']['app']['toLowerCase']()){case _0x23eedd('0xf50'):break;case _0x23eedd('0xc72'):{var _0x3af5f8=_0x4a33db[_0x23eedd('0x2402')]['appdata']['split'](',');_0x4a33db[_0x23eedd('0x2402')][_0x23eedd('0xddb')]=_0x3af5f8[0x0],_0x4a33db['agent']['language']=_0x3af5f8[0x1],_0x4a33db[_0x23eedd('0x2402')][_0x23eedd('0x1cce')]=_0x3af5f8['slice'](0x2,_0x3af5f8['length'])[_0x23eedd('0x136')](',');}break;case _0x23eedd('0x1c22'):{var _0x140902=_0x4a33db[_0x23eedd('0x2402')][_0x23eedd('0x23c2')][_0x23eedd('0x1af5')](',');_0x4a33db['agent'][_0x23eedd('0x21c6')]=_0x140902[0x0],_0x4a33db['agent'][_0x23eedd('0x797')]=_0x140902[0x1],_0x4a33db[_0x23eedd('0x2402')][_0x23eedd('0x20a3')]=_0x140902[0x2],_0x4a33db[_0x23eedd('0x2402')][_0x23eedd('0x15fe')]=_0x140902[0x3],_0x4a33db['agent'][_0x23eedd('0x1cce')]=_0x140902[_0x23eedd('0xb3d')](0x4,_0x140902['length'])['join'](',');}break;case _0x23eedd('0x1b98'):{var _0x347dc9=_0x4a33db['agent'][_0x23eedd('0x23c2')]['split'](',');_0x4a33db['agent'][_0x23eedd('0x13b6')]=isNaN(_0x347dc9[0x0])?_0x347dc9[0x0]:parseInt(_0x347dc9[0x0],0xa),_0x4a33db[_0x23eedd('0x2402')][_0x23eedd('0xc1e')]=_0x347dc9[_0x23eedd('0xb3d')](0x1,_0x347dc9[_0x23eedd('0x577')])[_0x23eedd('0x136')](',');}break;case _0x23eedd('0x1224'):_0x4a33db[_0x23eedd('0x2402')]['text']=_0x4a33db[_0x23eedd('0x2402')][_0x23eedd('0x23c2')];break;case _0x23eedd('0x1125'):_0x4a33db[_0x23eedd('0x2402')]['name']=_0x4a33db[_0x23eedd('0x2402')][_0x23eedd('0x23c2')][_0x23eedd('0x1af5')]('=')[0x0],_0x4a33db[_0x23eedd('0x2402')][_0x23eedd('0x2228')]=_0x4a33db[_0x23eedd('0x2402')][_0x23eedd('0x23c2')][_0x23eedd('0x1af5')]('=')[0x1];break;case _0x23eedd('0x2356'):_0x4a33db['agent'][_0x23eedd('0xbf8')]=_0x4a33db[_0x23eedd('0x2402')][_0x23eedd('0x23c2')];break;default:{var _0x4bdacd=_0x4a33db['agent'][_0x23eedd('0x23c2')][_0x23eedd('0x1af5')](',');_0x4a33db[_0x23eedd('0x2402')]['agent']=_0x86640f()[_0x23eedd('0x23aa')](_0x4bdacd[0x0])?_0x4bdacd[0x0]:isNaN(_0x4bdacd[0x0])?_0x4bdacd[0x0]:parseInt(_0x4bdacd[0x0],0xa),_0x4a33db[_0x23eedd('0x2402')][_0x23eedd('0x2133')]=_0x86640f()[_0x23eedd('0x23aa')](_0x4bdacd[0x1])?_0x4bdacd[0x1]:isNaN(_0x4bdacd[0x1])?_0x4bdacd[0x1]:parseInt(_0x4bdacd[0x1],0xa);}break;}else _0x4a33db[_0x23eedd('0x2402')][_0x23eedd('0x2133')]=0x1e;_0x4a33db['agent'][_0x23eedd('0x7fa')]&&_0x4a33db[_0x23eedd('0x2402')]['type'][_0x23eedd('0xac2')]()===_0x23eedd('0x2300')&&_0x4a33db[_0x23eedd('0x2402')]['appType'][_0x23eedd('0xac2')]()===_0x23eedd('0x2363')&&(_0x4a33db['agent']['prefix']=_0x4a33db[_0x23eedd('0x2402')][_0x23eedd('0x159e')]?_0x4a33db[_0x23eedd('0x2402')]['phone']['split']('$')[0x0]:undefined,_0x4a33db[_0x23eedd('0x2402')]['callerId']=_0x4a33db['agent']['callerID']?'CALLERID(all)='+_0x4a33db['agent'][_0x23eedd('0x1f5a')]:undefined);_0x4a33db[_0x23eedd('0xaa7')]=_0x23689f,_0x4a33db[_0x23eedd('0x167')]=_0x166675,_0x2d42fc[_0x23eedd('0x21de')](_0x23eedd('0x1bd8'))?_0x3b846d['user']['get']({'fields':_0x23eedd('0x1aa8'),'sort':'name','nolimit':_0x23eedd('0x19bd'),'role':_0x23eedd('0x2402')})[_0x23eedd('0x1376')][_0x23eedd('0x21ad')](function(_0x539a1a){var _0x43fb4e=_0x23eedd;_0x4a33db[_0x43fb4e('0xcb5')]=_0x539a1a[_0x43fb4e('0x1b33')]||[];})[_0x23eedd('0x1c1d')](function(_0x416f30){var _0x4d4869=_0x23eedd;_0xf47dae[_0x4d4869('0x2092')]({'title':_0x416f30[_0x4d4869('0x209')]?_0x4d4869('0x22d')+_0x416f30['status']+_0x4d4869('0xa99')+_0x416f30[_0x4d4869('0x1808')]:_0x4d4869('0x1381'),'msg':_0x416f30[_0x4d4869('0x11c2')]?JSON[_0x4d4869('0x25e')](_0x416f30[_0x4d4869('0x11c2')]):_0x416f30['toString']()});}):_0x3b846d[_0x23eedd('0x1775')][_0x23eedd('0x595')]({'fields':'id,name','sort':_0x23eedd('0x19fe'),'nolimit':'true','role':'agent'})['$promise']['then'](function(_0x14495b){var _0x53b9ae=_0x23eedd;_0x4a33db['agents']=_0x14495b[_0x53b9ae('0x1b33')]||[];})[_0x23eedd('0x21ad')](function(){var _0x5a299d=_0x23eedd;return _0x3b846d[_0x5a299d('0xab4')]['get']({'userProfileId':_0x4a33db['currentUser'][_0x5a299d('0x1618')],'sectionId':0xca})[_0x5a299d('0x1376')];})[_0x23eedd('0x21ad')](function(_0x543404){var _0x230c43=_0x23eedd,_0xe7f3cf=_0x543404&&_0x543404[_0x230c43('0x1b33')]?_0x543404[_0x230c43('0x1b33')][0x0]:null;if(!_0xe7f3cf){var _0x2a0b65=[],_0x89f14e=null;_0x4a33db[_0x230c43('0x2402')]&&(_0x89f14e=_0x86640f()[_0x230c43('0x1d2e')](_0x4a33db['agents'],{'name':_0x4a33db['agent'][_0x230c43('0x2402')]}));for(var _0x413f68=0x0;_0x413f68<_0x4a33db[_0x230c43('0xcb5')][_0x230c43('0x577')];_0x413f68++){_0x89f14e&&_0x4a33db[_0x230c43('0xcb5')][_0x413f68]['id']===_0x89f14e['id']&&(_0x4a33db['agents'][_0x413f68][_0x230c43('0xba')]=![],_0x2a0b65[_0x230c43('0x206c')](_0x4a33db['agents'][_0x413f68]));}_0x4a33db[_0x230c43('0xcb5')]=_0x2a0b65;}else{if(!_0xe7f3cf['autoAssociation'])return _0x3b846d[_0x230c43('0x185e')][_0x230c43('0x595')]({'sectionId':_0xe7f3cf['id']})['$promise'][_0x230c43('0x21ad')](function(_0x4e2a7b){var _0x5ccc29=_0x230c43,_0x456bc2=_0x86640f()[_0x5ccc29('0x26c3')](_0x4e2a7b[_0x5ccc29('0x1b33')],function(_0x2c5e0a){var _0x408d2a=_0x5ccc29;return _0x86640f()[_0x408d2a('0x1d2e')](_0x4a33db[_0x408d2a('0xcb5')],{'id':_0x2c5e0a[_0x408d2a('0x675')]});}),_0x20fd21=null;_0x4a33db['agent']&&(_0x20fd21=_0x86640f()[_0x5ccc29('0x1d2e')](_0x4a33db[_0x5ccc29('0xcb5')],{'name':_0x4a33db[_0x5ccc29('0x2402')][_0x5ccc29('0x2402')]}));if(_0x20fd21&&!_0x86640f()[_0x5ccc29('0x2664')](_0x456bc2,['id',_0x20fd21['id']])){var _0x94b967=_0x86640f()['find'](_0x4a33db['agents'],{'id':_0x20fd21['id']});_0x94b967[_0x5ccc29('0xba')]=![],_0x456bc2['push'](_0x94b967);}_0x4a33db['agents']=_0x456bc2;});}})[_0x23eedd('0x1c1d')](function(_0x2d7a10){var _0x2a848e=_0x23eedd;_0xf47dae[_0x2a848e('0x2092')]({'title':_0x2d7a10['status']?_0x2a848e('0x22d')+_0x2d7a10[_0x2a848e('0x209')]+'\x20-\x20'+_0x2d7a10[_0x2a848e('0x1808')]:'SYSTEM:GETagents','msg':_0x2d7a10[_0x2a848e('0x11c2')]?JSON['stringify'](_0x2d7a10[_0x2a848e('0x11c2')]):_0x2d7a10[_0x2a848e('0x174f')]()});});function _0x23689f(){var _0x4e6faa=_0x23eedd;_0x4a33db['errors']=[];var _0x488ac0=[];_0x4a33db[_0x4e6faa('0x2402')][_0x4e6faa('0x7fa')]&&_0x4a33db[_0x4e6faa('0x2402')][_0x4e6faa('0x7fa')][_0x4e6faa('0xac2')]()===_0x4e6faa('0x2300')&&_0x4a33db[_0x4e6faa('0x2402')][_0x4e6faa('0x522')]===_0x4e6faa('0x4ea')&&(_0x4a33db['agent'][_0x4e6faa('0x159e')]=_0xbf79ff[_0x4e6faa('0x988')]?(_0x4a33db['agent'][_0x4e6faa('0x1995')]||'')+'${EXTEN:'+_0xbf79ff['cutdigits']+'}':(_0x4a33db[_0x4e6faa('0x2402')][_0x4e6faa('0x1995')]||'')+_0x4e6faa('0x2560'),_0xbf79ff['recordingFormat']!==_0x4e6faa('0x983')?_0x4a33db[_0x4e6faa('0x2402')][_0x4e6faa('0x26a0')][_0x4e6faa('0x2004')](_0x4e6faa('0x478'))<0x0&&(_0x4a33db[_0x4e6faa('0x2402')][_0x4e6faa('0x26a0')]+='U(xcally-mixmonitor-context)'):_0x4a33db['agent']['options']=_0x4a33db[_0x4e6faa('0x2402')][_0x4e6faa('0x26a0')]['replace']('U(xcally-mixmonitor-context)',''));var _0xf70fae=_0x86640f()[_0x4e6faa('0x1d2e')](_0x4a33db['agents'],{'name':_0x4a33db[_0x4e6faa('0x2402')]['agent']});_0xf70fae&&(_0x4a33db[_0x4e6faa('0x2402')]['UserId']=_0xf70fae['id']);if(_0x4a33db[_0x4e6faa('0x2402')]['appType']&&_0x4a33db[_0x4e6faa('0x2402')][_0x4e6faa('0x522')]===_0x4e6faa('0xf50')){}else switch((_0x4a33db[_0x4e6faa('0x2402')][_0x4e6faa('0x1f94')]||_0x4a33db['agent'][_0x4e6faa('0x522')])[_0x4e6faa('0xac2')]()){case _0x4e6faa('0x1125'):_0x4a33db[_0x4e6faa('0x2402')][_0x4e6faa('0x23c2')]=_0x4a33db[_0x4e6faa('0x2402')][_0x4e6faa('0x19fe')]+'='+_0x4a33db[_0x4e6faa('0x2402')]['value'];break;case _0x4e6faa('0xf50'):break;default:_0x488ac0[0x0]=_0x4a33db[_0x4e6faa('0x2402')][_0x4e6faa('0x2402')],_0x488ac0[0x1]=_0x4a33db[_0x4e6faa('0x2402')]['timeout'],_0x4a33db[_0x4e6faa('0x2402')][_0x4e6faa('0x23c2')]=_0x488ac0['join'](',');}_0x166675(_0x4a33db[_0x4e6faa('0x2402')]);}function _0x166675(_0x446f44){var _0x27e09e=_0x23eedd;_0x35a7fb[_0x27e09e('0x1c24')](_0x446f44);}}const _0x214c05=_0x45eaf4;_0x2a0957[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x1b9c'),_0x3877e3('0x1b5d'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x2a0957(_0x25307a,_0x26af81,_0x4bf3cc,_0x474678,_0x352eb5,_0x166dc2,_0x439ee4,_0x5f0109){var _0xb38297=_0x3877e3,_0x3aaacc=this;_0x3aaacc[_0xb38297('0x123f')]=_0x439ee4[_0xb38297('0x15ed')](),_0x3aaacc[_0xb38297('0x1a69')]=[],_0x3aaacc['title']=_0xb38297('0x1442')+(_0x474678[_0xb38297('0x522')]||_0x474678[_0xb38297('0x1f94')])['toUpperCase'](),_0x3aaacc['amazonlex']=angular[_0xb38297('0xd75')](_0x474678),_0x3aaacc[_0xb38297('0x5ed')]=_0x5f0109,_0x3aaacc[_0xb38297('0x126a')]={};if(_0x3aaacc['amazonlex']['appdata'])switch(_0x3aaacc[_0xb38297('0x1c22')][_0xb38297('0x522')]?_0x3aaacc['amazonlex'][_0xb38297('0x522')][_0xb38297('0xac2')]():_0x3aaacc[_0xb38297('0x1c22')][_0xb38297('0x1f94')]['toLowerCase']()){case _0xb38297('0xf50'):break;case _0xb38297('0xc72'):{var _0x4633d1=_0x3aaacc[_0xb38297('0x1c22')][_0xb38297('0x23c2')][_0xb38297('0x1af5')](',');_0x3aaacc[_0xb38297('0x1c22')][_0xb38297('0xddb')]=_0x4633d1[0x0],_0x3aaacc[_0xb38297('0x1c22')][_0xb38297('0x10f')]=_0x4633d1[0x1],_0x3aaacc[_0xb38297('0x1c22')][_0xb38297('0x1cce')]=_0x4633d1[_0xb38297('0xb3d')](0x2,_0x4633d1['length'])[_0xb38297('0x136')](',');}break;case _0xb38297('0x1c22'):{var _0x527858=_0x3aaacc[_0xb38297('0x1c22')]['appdata']['split'](',');_0x3aaacc['amazonlex'][_0xb38297('0x21c6')]=_0x527858[0x0],_0x3aaacc['amazonlex'][_0xb38297('0x797')]=_0x527858[0x1],_0x3aaacc[_0xb38297('0x1c22')][_0xb38297('0x20a3')]=_0x527858[0x2],_0x3aaacc[_0xb38297('0x1c22')][_0xb38297('0x15fe')]=_0x527858[0x3],_0x3aaacc[_0xb38297('0x1c22')][_0xb38297('0x1cce')]=_0x527858[_0xb38297('0xb3d')](0x4,_0x527858[_0xb38297('0x577')])[_0xb38297('0x136')](',');}break;case _0xb38297('0x1b98'):{var _0x4375f5=_0x3aaacc[_0xb38297('0x1c22')][_0xb38297('0x23c2')]['split'](',');_0x3aaacc[_0xb38297('0x1c22')][_0xb38297('0x13b6')]=isNaN(_0x4375f5[0x0])?_0x4375f5[0x0]:parseInt(_0x4375f5[0x0],0xa),_0x3aaacc[_0xb38297('0x1c22')]['text']=_0x4375f5[_0xb38297('0xb3d')](0x1,_0x4375f5[_0xb38297('0x577')])[_0xb38297('0x136')](',');}break;case'message':_0x3aaacc[_0xb38297('0x1c22')]['text']=_0x3aaacc[_0xb38297('0x1c22')]['appdata'];break;case'set':_0x3aaacc[_0xb38297('0x1c22')]['name']=_0x3aaacc['amazonlex'][_0xb38297('0x23c2')][_0xb38297('0x1af5')]('=')[0x0],_0x3aaacc[_0xb38297('0x1c22')][_0xb38297('0x2228')]=_0x3aaacc['amazonlex']['appdata'][_0xb38297('0x1af5')]('=')[0x1];break;case _0xb38297('0x2356'):_0x3aaacc['amazonlex'][_0xb38297('0xbf8')]=_0x3aaacc[_0xb38297('0x1c22')][_0xb38297('0x23c2')];break;default:{var _0xe418e6=_0x3aaacc['amazonlex'][_0xb38297('0x23c2')]['split'](',');_0x3aaacc[_0xb38297('0x1c22')]['accesskeyid']=_0x86640f()[_0xb38297('0x23aa')](_0xe418e6[0x0])?_0xe418e6[0x0]:isNaN(_0xe418e6[0x0])?_0xe418e6[0x0]:parseInt(_0xe418e6[0x0],0xa),_0x3aaacc[_0xb38297('0x1c22')][_0xb38297('0x797')]=_0x86640f()['isEmpty'](_0xe418e6[0x1])?_0xe418e6[0x1]:isNaN(_0xe418e6[0x1])?_0xe418e6[0x1]:parseInt(_0xe418e6[0x1],0xa),_0x3aaacc[_0xb38297('0x1c22')][_0xb38297('0x20a3')]=_0x86640f()[_0xb38297('0x23aa')](_0xe418e6[0x2])?_0xe418e6[0x2]:isNaN(_0xe418e6[0x2])?_0xe418e6[0x2]:parseInt(_0xe418e6[0x2],0xa),_0x3aaacc[_0xb38297('0x1c22')][_0xb38297('0x15fe')]=_0x86640f()[_0xb38297('0x23aa')](_0xe418e6[0x3])?_0xe418e6[0x3]:isNaN(_0xe418e6[0x3])?_0xe418e6[0x3]:parseInt(_0xe418e6[0x3],0xa),_0x3aaacc[_0xb38297('0x1c22')][_0xb38297('0x1cce')]=_0x86640f()['isEmpty'](_0xe418e6[0x4])?_0xe418e6[0x4]:isNaN(_0xe418e6[0x4])?_0xe418e6[0x4]:parseInt(_0xe418e6[0x4],0xa);}break;}else _0x3aaacc[_0xb38297('0x1c22')][_0xb38297('0x20a3')]='us-east-1';_0x3aaacc[_0xb38297('0x1c22')]['type']&&_0x3aaacc[_0xb38297('0x1c22')][_0xb38297('0x7fa')][_0xb38297('0xac2')]()===_0xb38297('0x2300')&&_0x3aaacc['amazonlex'][_0xb38297('0x522')]['toLowerCase']()===_0xb38297('0x2363')&&(_0x3aaacc['amazonlex'][_0xb38297('0x1995')]=_0x3aaacc[_0xb38297('0x1c22')]['phone']?_0x3aaacc[_0xb38297('0x1c22')][_0xb38297('0x159e')][_0xb38297('0x1af5')]('$')[0x0]:undefined,_0x3aaacc[_0xb38297('0x1c22')][_0xb38297('0x26f7')]=_0x3aaacc[_0xb38297('0x1c22')][_0xb38297('0x1f5a')]?_0xb38297('0x587')+_0x3aaacc['amazonlex'][_0xb38297('0x1f5a')]:undefined);_0x3aaacc[_0xb38297('0xaa7')]=_0x50f553,_0x3aaacc[_0xb38297('0x167')]=_0x2f0c3b;function _0x50f553(){var _0x5329f3=_0xb38297;_0x3aaacc[_0x5329f3('0x1a69')]=[];var _0x193ad6=[];_0x3aaacc[_0x5329f3('0x1c22')][_0x5329f3('0x7fa')]&&_0x3aaacc[_0x5329f3('0x1c22')]['type']['toLowerCase']()===_0x5329f3('0x2300')&&_0x3aaacc['amazonlex'][_0x5329f3('0x522')]===_0x5329f3('0x4ea')&&(_0x3aaacc[_0x5329f3('0x1c22')]['phone']=_0x352eb5[_0x5329f3('0x988')]?(_0x3aaacc[_0x5329f3('0x1c22')]['prefix']||'')+_0x5329f3('0x349')+_0x352eb5[_0x5329f3('0x988')]+'}':(_0x3aaacc[_0x5329f3('0x1c22')][_0x5329f3('0x1995')]||'')+_0x5329f3('0x2560'),_0x352eb5['recordingFormat']!=='none'?_0x3aaacc[_0x5329f3('0x1c22')][_0x5329f3('0x26a0')][_0x5329f3('0x2004')]('U(xcally-mixmonitor-context)')<0x0&&(_0x3aaacc[_0x5329f3('0x1c22')][_0x5329f3('0x26a0')]+='U(xcally-mixmonitor-context)'):_0x3aaacc[_0x5329f3('0x1c22')][_0x5329f3('0x26a0')]=_0x3aaacc['amazonlex']['options'][_0x5329f3('0x16e4')]('U(xcally-mixmonitor-context)',''));if(_0x3aaacc['amazonlex'][_0x5329f3('0x522')]&&_0x3aaacc[_0x5329f3('0x1c22')]['appType']===_0x5329f3('0xf50')){}else switch((_0x3aaacc[_0x5329f3('0x1c22')][_0x5329f3('0x1f94')]||_0x3aaacc[_0x5329f3('0x1c22')]['appType'])['toLowerCase']()){case _0x5329f3('0x1125'):_0x3aaacc[_0x5329f3('0x1c22')]['appdata']=_0x3aaacc[_0x5329f3('0x1c22')][_0x5329f3('0x19fe')]+'='+_0x3aaacc[_0x5329f3('0x1c22')][_0x5329f3('0x2228')];break;case _0x5329f3('0xf50'):break;default:_0x193ad6[0x0]=_0x3aaacc[_0x5329f3('0x1c22')][_0x5329f3('0x21c6')],_0x193ad6[0x1]=_0x3aaacc[_0x5329f3('0x1c22')][_0x5329f3('0x797')],_0x193ad6[0x2]=_0x3aaacc[_0x5329f3('0x1c22')][_0x5329f3('0x20a3')],_0x193ad6[0x3]=_0x3aaacc[_0x5329f3('0x1c22')]['botname'],_0x193ad6[0x4]=_0x3aaacc[_0x5329f3('0x1c22')][_0x5329f3('0x1cce')],_0x3aaacc[_0x5329f3('0x1c22')]['appdata']=_0x193ad6['join'](',');}_0x2f0c3b(_0x3aaacc[_0x5329f3('0x1c22')]);}function _0x2f0c3b(_0x2eceda){_0x25307a['hide'](_0x2eceda);}}const _0xf719cc=_0x2a0957;_0x457eb8['$inject']=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x1b9c'),_0x3877e3('0x1b5d'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),'crudPermissions'];function _0x457eb8(_0x29c61e,_0x3ffdd3,_0x17c15b,_0x2ebd72,_0x70f0d4,_0x109f1d,_0xdbc802,_0x252787){var _0x1af58a=_0x3877e3,_0x193371=this;_0x193371[_0x1af58a('0x123f')]=_0xdbc802['getCurrentUser'](),_0x193371[_0x1af58a('0x1a69')]=[],_0x193371[_0x1af58a('0x4b4')]=_0x1af58a('0x1442')+(_0x2ebd72['appType']||_0x2ebd72[_0x1af58a('0x1f94')])['toUpperCase'](),_0x193371[_0x1af58a('0x1b98')]=angular[_0x1af58a('0xd75')](_0x2ebd72),_0x193371[_0x1af58a('0x5ed')]=_0x252787,_0x193371[_0x1af58a('0x126a')]={};if(_0x193371['autoreply'][_0x1af58a('0x23c2')])switch(_0x193371[_0x1af58a('0x1b98')][_0x1af58a('0x522')]?_0x193371[_0x1af58a('0x1b98')][_0x1af58a('0x522')][_0x1af58a('0xac2')]():_0x193371[_0x1af58a('0x1b98')][_0x1af58a('0x1f94')][_0x1af58a('0xac2')]()){case _0x1af58a('0xf50'):break;case _0x1af58a('0xc72'):{var _0x2b5f65=_0x193371[_0x1af58a('0x1b98')][_0x1af58a('0x23c2')][_0x1af58a('0x1af5')](',');_0x193371['autoreply']['key']=_0x2b5f65[0x0],_0x193371[_0x1af58a('0x1b98')][_0x1af58a('0x10f')]=_0x2b5f65[0x1],_0x193371[_0x1af58a('0x1b98')]['welcomemessage']=_0x2b5f65[_0x1af58a('0xb3d')](0x2,_0x2b5f65[_0x1af58a('0x577')])[_0x1af58a('0x136')](',');}break;case _0x1af58a('0x1c22'):{var _0x379953=_0x193371['autoreply']['appdata'][_0x1af58a('0x1af5')](',');_0x193371[_0x1af58a('0x1b98')][_0x1af58a('0x21c6')]=_0x379953[0x0],_0x193371[_0x1af58a('0x1b98')]['secretaccesskey']=_0x379953[0x1],_0x193371[_0x1af58a('0x1b98')]['lexregion']=_0x379953[0x2],_0x193371['autoreply']['botname']=_0x379953[0x3],_0x193371[_0x1af58a('0x1b98')][_0x1af58a('0x1cce')]=_0x379953[_0x1af58a('0xb3d')](0x4,_0x379953['length'])[_0x1af58a('0x136')](',');}break;case _0x1af58a('0x1b98'):{var _0x3435fa=_0x193371[_0x1af58a('0x1b98')][_0x1af58a('0x23c2')][_0x1af58a('0x1af5')](',');_0x193371[_0x1af58a('0x1b98')][_0x1af58a('0x13b6')]=isNaN(_0x3435fa[0x0])?_0x3435fa[0x0]:parseInt(_0x3435fa[0x0],0xa),_0x193371[_0x1af58a('0x1b98')]['text']=_0x3435fa[_0x1af58a('0xb3d')](0x1,_0x3435fa[_0x1af58a('0x577')])[_0x1af58a('0x136')](',');}break;case'message':_0x193371[_0x1af58a('0x1b98')]['text']=_0x193371[_0x1af58a('0x1b98')][_0x1af58a('0x23c2')];break;case _0x1af58a('0x1125'):_0x193371['autoreply']['name']=_0x193371[_0x1af58a('0x1b98')][_0x1af58a('0x23c2')]['split']('=')[0x0],_0x193371[_0x1af58a('0x1b98')][_0x1af58a('0x2228')]=_0x193371[_0x1af58a('0x1b98')][_0x1af58a('0x23c2')][_0x1af58a('0x1af5')]('=')[0x1];break;case _0x1af58a('0x2356'):_0x193371[_0x1af58a('0x1b98')][_0x1af58a('0xbf8')]=_0x193371[_0x1af58a('0x1b98')][_0x1af58a('0x23c2')];break;default:{var _0x2603a4=_0x193371['autoreply']['appdata'][_0x1af58a('0x1af5')](',');_0x193371[_0x1af58a('0x1b98')][_0x1af58a('0x13b6')]=_0x86640f()[_0x1af58a('0x23aa')](_0x2603a4[0x0])?_0x2603a4[0x0]:isNaN(_0x2603a4[0x0])?_0x2603a4[0x0]:parseInt(_0x2603a4[0x0],0xa),_0x193371[_0x1af58a('0x1b98')][_0x1af58a('0xc1e')]=_0x86640f()[_0x1af58a('0x23aa')](_0x2603a4[0x1])?_0x2603a4[0x1]:isNaN(_0x2603a4[0x1])?_0x2603a4[0x1]:parseInt(_0x2603a4[0x1],0xa);}break;}else _0x193371[_0x1af58a('0x1b98')][_0x1af58a('0x13b6')]=0x1;_0x193371[_0x1af58a('0x1b98')][_0x1af58a('0x7fa')]&&_0x193371['autoreply']['type'][_0x1af58a('0xac2')]()===_0x1af58a('0x2300')&&_0x193371['autoreply'][_0x1af58a('0x522')][_0x1af58a('0xac2')]()===_0x1af58a('0x2363')&&(_0x193371[_0x1af58a('0x1b98')]['prefix']=_0x193371[_0x1af58a('0x1b98')][_0x1af58a('0x159e')]?_0x193371['autoreply'][_0x1af58a('0x159e')][_0x1af58a('0x1af5')]('$')[0x0]:undefined,_0x193371[_0x1af58a('0x1b98')][_0x1af58a('0x26f7')]=_0x193371['autoreply']['callerID']?'CALLERID(all)='+_0x193371[_0x1af58a('0x1b98')][_0x1af58a('0x1f5a')]:undefined);_0x193371[_0x1af58a('0xaa7')]=_0x683e85,_0x193371[_0x1af58a('0x167')]=_0xf78bb9;function _0x683e85(){var _0x2fb44f=_0x1af58a;_0x193371[_0x2fb44f('0x1a69')]=[];var _0x4c44e7=[];_0x193371[_0x2fb44f('0x1b98')][_0x2fb44f('0x7fa')]&&_0x193371[_0x2fb44f('0x1b98')]['type'][_0x2fb44f('0xac2')]()==='outbound'&&_0x193371[_0x2fb44f('0x1b98')]['appType']===_0x2fb44f('0x4ea')&&(_0x193371['autoreply'][_0x2fb44f('0x159e')]=_0x70f0d4['cutdigits']?(_0x193371[_0x2fb44f('0x1b98')][_0x2fb44f('0x1995')]||'')+'${EXTEN:'+_0x70f0d4['cutdigits']+'}':(_0x193371[_0x2fb44f('0x1b98')][_0x2fb44f('0x1995')]||'')+_0x2fb44f('0x2560'),_0x70f0d4[_0x2fb44f('0xad1')]!=='none'?_0x193371['autoreply'][_0x2fb44f('0x26a0')][_0x2fb44f('0x2004')]('U(xcally-mixmonitor-context)')<0x0&&(_0x193371[_0x2fb44f('0x1b98')][_0x2fb44f('0x26a0')]+=_0x2fb44f('0x478')):_0x193371[_0x2fb44f('0x1b98')][_0x2fb44f('0x26a0')]=_0x193371['autoreply'][_0x2fb44f('0x26a0')]['replace'](_0x2fb44f('0x478'),''));if(_0x193371[_0x2fb44f('0x1b98')][_0x2fb44f('0x522')]&&_0x193371[_0x2fb44f('0x1b98')][_0x2fb44f('0x522')]===_0x2fb44f('0xf50')){}else switch((_0x193371[_0x2fb44f('0x1b98')][_0x2fb44f('0x1f94')]||_0x193371['autoreply'][_0x2fb44f('0x522')])['toLowerCase']()){case _0x2fb44f('0x1125'):_0x193371[_0x2fb44f('0x1b98')][_0x2fb44f('0x23c2')]=_0x193371['autoreply']['name']+'='+_0x193371[_0x2fb44f('0x1b98')][_0x2fb44f('0x2228')];break;case _0x2fb44f('0xf50'):break;default:_0x4c44e7[0x0]=_0x193371['autoreply'][_0x2fb44f('0x13b6')],_0x4c44e7[0x1]=_0x193371[_0x2fb44f('0x1b98')][_0x2fb44f('0xc1e')],_0x193371['autoreply'][_0x2fb44f('0x23c2')]=_0x4c44e7['join'](',');}_0xf78bb9(_0x193371[_0x2fb44f('0x1b98')]);}function _0xf78bb9(_0x229de6){var _0x30a7df=_0x1af58a;_0x29c61e[_0x30a7df('0x1c24')](_0x229de6);}}const _0x1645a8=_0x457eb8;_0x26af20[_0x3877e3('0x1a81')]=['$mdDialog','$q',_0x3877e3('0x1908'),'whatsappAccountApp',_0x3877e3('0x1b5d'),'api','Auth',_0x3877e3('0x5ed')];function _0x26af20(_0x347da0,_0x52e0c8,_0x423b98,_0x417065,_0x5321e3,_0x16a078,_0x463246,_0x1309be){var _0x1f9791=_0x3877e3,_0x1f1ded=this;_0x1f1ded[_0x1f9791('0x123f')]=_0x463246[_0x1f9791('0x15ed')](),_0x1f1ded[_0x1f9791('0x1a69')]=[],_0x1f1ded[_0x1f9791('0x4b4')]='WHATSAPP.EDIT_'+(_0x417065[_0x1f9791('0x522')]||_0x417065[_0x1f9791('0x1f94')])[_0x1f9791('0x2e8')](),_0x1f1ded[_0x1f9791('0x22f')]=angular[_0x1f9791('0xd75')](_0x417065),_0x1f1ded[_0x1f9791('0x5ed')]=_0x1309be,_0x1f1ded[_0x1f9791('0x126a')]={};if(_0x1f1ded[_0x1f9791('0x22f')][_0x1f9791('0x23c2')])switch(_0x1f1ded[_0x1f9791('0x22f')][_0x1f9791('0x522')]?_0x1f1ded[_0x1f9791('0x22f')][_0x1f9791('0x522')][_0x1f9791('0xac2')]():_0x1f1ded[_0x1f9791('0x22f')][_0x1f9791('0x1f94')][_0x1f9791('0xac2')]()){case _0x1f9791('0xf50'):break;case _0x1f9791('0xc72'):{var _0x11418e=_0x1f1ded['close'][_0x1f9791('0x23c2')]['split'](',');_0x1f1ded[_0x1f9791('0x22f')][_0x1f9791('0xddb')]=_0x11418e[0x0],_0x1f1ded[_0x1f9791('0x22f')]['language']=_0x11418e[0x1],_0x1f1ded[_0x1f9791('0x22f')][_0x1f9791('0x1cce')]=_0x11418e[_0x1f9791('0xb3d')](0x2,_0x11418e[_0x1f9791('0x577')])['join'](',');}break;case _0x1f9791('0x1c22'):{var _0x251a49=_0x1f1ded['close'][_0x1f9791('0x23c2')][_0x1f9791('0x1af5')](',');_0x1f1ded[_0x1f9791('0x22f')]['accesskeyid']=_0x251a49[0x0],_0x1f1ded['close'][_0x1f9791('0x797')]=_0x251a49[0x1],_0x1f1ded[_0x1f9791('0x22f')][_0x1f9791('0x20a3')]=_0x251a49[0x2],_0x1f1ded['close'][_0x1f9791('0x15fe')]=_0x251a49[0x3],_0x1f1ded[_0x1f9791('0x22f')][_0x1f9791('0x1cce')]=_0x251a49[_0x1f9791('0xb3d')](0x4,_0x251a49[_0x1f9791('0x577')])[_0x1f9791('0x136')](',');}break;case _0x1f9791('0x1b98'):{var _0x2086de=_0x1f1ded[_0x1f9791('0x22f')][_0x1f9791('0x23c2')][_0x1f9791('0x1af5')](',');_0x1f1ded[_0x1f9791('0x22f')][_0x1f9791('0x13b6')]=isNaN(_0x2086de[0x0])?_0x2086de[0x0]:parseInt(_0x2086de[0x0],0xa),_0x1f1ded[_0x1f9791('0x22f')][_0x1f9791('0xc1e')]=_0x2086de[_0x1f9791('0xb3d')](0x1,_0x2086de[_0x1f9791('0x577')])[_0x1f9791('0x136')](',');}break;case _0x1f9791('0x1224'):_0x1f1ded[_0x1f9791('0x22f')][_0x1f9791('0xc1e')]=_0x1f1ded[_0x1f9791('0x22f')]['appdata'];break;case _0x1f9791('0x1125'):_0x1f1ded[_0x1f9791('0x22f')][_0x1f9791('0x19fe')]=_0x1f1ded['close'][_0x1f9791('0x23c2')][_0x1f9791('0x1af5')]('=')[0x0],_0x1f1ded['close']['value']=_0x1f1ded[_0x1f9791('0x22f')][_0x1f9791('0x23c2')][_0x1f9791('0x1af5')]('=')[0x1];break;case _0x1f9791('0x2356'):_0x1f1ded[_0x1f9791('0x22f')][_0x1f9791('0xbf8')]=_0x1f1ded[_0x1f9791('0x22f')][_0x1f9791('0x23c2')];break;default:{var _0x1262bc=_0x1f1ded['close'][_0x1f9791('0x23c2')][_0x1f9791('0x1af5')](',');_0x1f1ded[_0x1f9791('0x22f')][_0x1f9791('0x22c8')]=_0x86640f()[_0x1f9791('0x23aa')](_0x1262bc[0x0])?_0x1262bc[0x0]:isNaN(_0x1262bc[0x0])?_0x1262bc[0x0]:parseInt(_0x1262bc[0x0],0xa);}break;}else{}_0x1f1ded[_0x1f9791('0x22f')][_0x1f9791('0x7fa')]&&_0x1f1ded[_0x1f9791('0x22f')][_0x1f9791('0x7fa')]['toLowerCase']()===_0x1f9791('0x2300')&&_0x1f1ded[_0x1f9791('0x22f')][_0x1f9791('0x522')][_0x1f9791('0xac2')]()===_0x1f9791('0x2363')&&(_0x1f1ded[_0x1f9791('0x22f')][_0x1f9791('0x1995')]=_0x1f1ded['close'][_0x1f9791('0x159e')]?_0x1f1ded['close']['phone'][_0x1f9791('0x1af5')]('$')[0x0]:undefined,_0x1f1ded[_0x1f9791('0x22f')][_0x1f9791('0x26f7')]=_0x1f1ded[_0x1f9791('0x22f')][_0x1f9791('0x1f5a')]?_0x1f9791('0x587')+_0x1f1ded[_0x1f9791('0x22f')]['callerID']:undefined);_0x1f1ded[_0x1f9791('0xaa7')]=_0x15a2e4,_0x1f1ded[_0x1f9791('0x167')]=_0x12af54;function _0x15a2e4(){var _0x2b50a6=_0x1f9791;_0x1f1ded[_0x2b50a6('0x1a69')]=[];var _0x3cfe40=[];_0x1f1ded[_0x2b50a6('0x22f')][_0x2b50a6('0x7fa')]&&_0x1f1ded['close']['type'][_0x2b50a6('0xac2')]()===_0x2b50a6('0x2300')&&_0x1f1ded[_0x2b50a6('0x22f')][_0x2b50a6('0x522')]===_0x2b50a6('0x4ea')&&(_0x1f1ded[_0x2b50a6('0x22f')][_0x2b50a6('0x159e')]=_0x5321e3[_0x2b50a6('0x988')]?(_0x1f1ded[_0x2b50a6('0x22f')][_0x2b50a6('0x1995')]||'')+_0x2b50a6('0x349')+_0x5321e3[_0x2b50a6('0x988')]+'}':(_0x1f1ded['close'][_0x2b50a6('0x1995')]||'')+_0x2b50a6('0x2560'),_0x5321e3[_0x2b50a6('0xad1')]!==_0x2b50a6('0x983')?_0x1f1ded[_0x2b50a6('0x22f')]['options'][_0x2b50a6('0x2004')]('U(xcally-mixmonitor-context)')<0x0&&(_0x1f1ded['close'][_0x2b50a6('0x26a0')]+=_0x2b50a6('0x478')):_0x1f1ded[_0x2b50a6('0x22f')][_0x2b50a6('0x26a0')]=_0x1f1ded[_0x2b50a6('0x22f')][_0x2b50a6('0x26a0')][_0x2b50a6('0x16e4')](_0x2b50a6('0x478'),''));if(_0x1f1ded[_0x2b50a6('0x22f')][_0x2b50a6('0x522')]&&_0x1f1ded[_0x2b50a6('0x22f')]['appType']===_0x2b50a6('0xf50')){}else switch((_0x1f1ded[_0x2b50a6('0x22f')]['app']||_0x1f1ded['close'][_0x2b50a6('0x522')])['toLowerCase']()){case _0x2b50a6('0x1125'):_0x1f1ded[_0x2b50a6('0x22f')]['appdata']=_0x1f1ded['close'][_0x2b50a6('0x19fe')]+'='+_0x1f1ded[_0x2b50a6('0x22f')]['value'];break;case _0x2b50a6('0xf50'):break;default:_0x3cfe40[0x0]=_0x1f1ded['close'][_0x2b50a6('0x22c8')],_0x1f1ded[_0x2b50a6('0x22f')][_0x2b50a6('0x23c2')]=_0x3cfe40[_0x2b50a6('0x136')](',');}_0x12af54(_0x1f1ded[_0x2b50a6('0x22f')]);}function _0x12af54(_0x5a35d8){_0x347da0['hide'](_0x5a35d8);}}const _0x1351c4=_0x26af20;_0x45be1a[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q','toasty','whatsappAccountApp',_0x3877e3('0x1b5d'),'api','Auth',_0x3877e3('0x5ed')];function _0x45be1a(_0x5328a8,_0x1132b4,_0x1f0d74,_0x456815,_0x23a7a8,_0xbaf370,_0x265689,_0x35035c){var _0xfb9eb1=_0x3877e3,_0xa2c092=this;_0xa2c092[_0xfb9eb1('0x123f')]=_0x265689[_0xfb9eb1('0x15ed')](),_0xa2c092[_0xfb9eb1('0x1a69')]=[],_0xa2c092[_0xfb9eb1('0x4b4')]='WHATSAPP.EDIT_'+(_0x456815[_0xfb9eb1('0x522')]||_0x456815[_0xfb9eb1('0x1f94')])[_0xfb9eb1('0x2e8')](),_0xa2c092[_0xfb9eb1('0xc72')]=angular[_0xfb9eb1('0xd75')](_0x456815),_0xa2c092[_0xfb9eb1('0x5ed')]=_0x35035c,_0xa2c092[_0xfb9eb1('0x126a')]={};if(_0xa2c092[_0xfb9eb1('0xc72')][_0xfb9eb1('0x23c2')])switch(_0xa2c092[_0xfb9eb1('0xc72')][_0xfb9eb1('0x522')]?_0xa2c092['dialogflow'][_0xfb9eb1('0x522')][_0xfb9eb1('0xac2')]():_0xa2c092[_0xfb9eb1('0xc72')]['app'][_0xfb9eb1('0xac2')]()){case'custom':break;case _0xfb9eb1('0xc72'):{var _0x1e488d=_0xa2c092[_0xfb9eb1('0xc72')][_0xfb9eb1('0x23c2')][_0xfb9eb1('0x1af5')](',');_0xa2c092[_0xfb9eb1('0xc72')][_0xfb9eb1('0xddb')]=_0x1e488d[0x0],_0xa2c092[_0xfb9eb1('0xc72')][_0xfb9eb1('0x10f')]=_0x1e488d[0x1],_0xa2c092[_0xfb9eb1('0xc72')][_0xfb9eb1('0x1cce')]=_0x1e488d[_0xfb9eb1('0xb3d')](0x2,_0x1e488d['length'])[_0xfb9eb1('0x136')](',');}break;case _0xfb9eb1('0x1c22'):{var _0x5b5e96=_0xa2c092['dialogflow'][_0xfb9eb1('0x23c2')][_0xfb9eb1('0x1af5')](',');_0xa2c092[_0xfb9eb1('0xc72')][_0xfb9eb1('0x21c6')]=_0x5b5e96[0x0],_0xa2c092['dialogflow'][_0xfb9eb1('0x797')]=_0x5b5e96[0x1],_0xa2c092[_0xfb9eb1('0xc72')]['lexregion']=_0x5b5e96[0x2],_0xa2c092[_0xfb9eb1('0xc72')][_0xfb9eb1('0x15fe')]=_0x5b5e96[0x3],_0xa2c092['dialogflow']['welcomemessage']=_0x5b5e96['slice'](0x4,_0x5b5e96[_0xfb9eb1('0x577')])[_0xfb9eb1('0x136')](',');}break;case _0xfb9eb1('0x1b98'):{var _0x2bc9f8=_0xa2c092['dialogflow'][_0xfb9eb1('0x23c2')][_0xfb9eb1('0x1af5')](',');_0xa2c092[_0xfb9eb1('0xc72')][_0xfb9eb1('0x13b6')]=isNaN(_0x2bc9f8[0x0])?_0x2bc9f8[0x0]:parseInt(_0x2bc9f8[0x0],0xa),_0xa2c092[_0xfb9eb1('0xc72')][_0xfb9eb1('0xc1e')]=_0x2bc9f8[_0xfb9eb1('0xb3d')](0x1,_0x2bc9f8[_0xfb9eb1('0x577')])[_0xfb9eb1('0x136')](',');}break;case'message':_0xa2c092[_0xfb9eb1('0xc72')][_0xfb9eb1('0xc1e')]=_0xa2c092[_0xfb9eb1('0xc72')]['appdata'];break;case'set':_0xa2c092['dialogflow'][_0xfb9eb1('0x19fe')]=_0xa2c092[_0xfb9eb1('0xc72')][_0xfb9eb1('0x23c2')][_0xfb9eb1('0x1af5')]('=')[0x0],_0xa2c092['dialogflow'][_0xfb9eb1('0x2228')]=_0xa2c092[_0xfb9eb1('0xc72')][_0xfb9eb1('0x23c2')][_0xfb9eb1('0x1af5')]('=')[0x1];break;case _0xfb9eb1('0x2356'):_0xa2c092[_0xfb9eb1('0xc72')][_0xfb9eb1('0xbf8')]=_0xa2c092['dialogflow'][_0xfb9eb1('0x23c2')];break;default:{var _0x3eb687=_0xa2c092[_0xfb9eb1('0xc72')][_0xfb9eb1('0x23c2')][_0xfb9eb1('0x1af5')](',');_0xa2c092['dialogflow']['key']=_0x86640f()['isEmpty'](_0x3eb687[0x0])?_0x3eb687[0x0]:isNaN(_0x3eb687[0x0])?_0x3eb687[0x0]:parseInt(_0x3eb687[0x0],0xa),_0xa2c092[_0xfb9eb1('0xc72')][_0xfb9eb1('0x10f')]=_0x86640f()[_0xfb9eb1('0x23aa')](_0x3eb687[0x1])?_0x3eb687[0x1]:isNaN(_0x3eb687[0x1])?_0x3eb687[0x1]:parseInt(_0x3eb687[0x1],0xa),_0xa2c092[_0xfb9eb1('0xc72')]['welcomemessage']=_0x86640f()['isEmpty'](_0x3eb687[0x2])?_0x3eb687[0x2]:isNaN(_0x3eb687[0x2])?_0x3eb687[0x2]:parseInt(_0x3eb687[0x2],0xa);}break;}else _0xa2c092['dialogflow'][_0xfb9eb1('0x10f')]='en';_0xa2c092[_0xfb9eb1('0xc72')][_0xfb9eb1('0x7fa')]&&_0xa2c092[_0xfb9eb1('0xc72')]['type'][_0xfb9eb1('0xac2')]()===_0xfb9eb1('0x2300')&&_0xa2c092[_0xfb9eb1('0xc72')][_0xfb9eb1('0x522')][_0xfb9eb1('0xac2')]()==='outbounddial'&&(_0xa2c092['dialogflow']['prefix']=_0xa2c092[_0xfb9eb1('0xc72')][_0xfb9eb1('0x159e')]?_0xa2c092[_0xfb9eb1('0xc72')][_0xfb9eb1('0x159e')][_0xfb9eb1('0x1af5')]('$')[0x0]:undefined,_0xa2c092['dialogflow'][_0xfb9eb1('0x26f7')]=_0xa2c092[_0xfb9eb1('0xc72')][_0xfb9eb1('0x1f5a')]?'CALLERID(all)='+_0xa2c092[_0xfb9eb1('0xc72')][_0xfb9eb1('0x1f5a')]:undefined);_0xa2c092['saveWhatsappAccountApp']=_0x307a7f,_0xa2c092[_0xfb9eb1('0x167')]=_0x167755;function _0x307a7f(){var _0x20cd93=_0xfb9eb1;_0xa2c092[_0x20cd93('0x1a69')]=[];var _0x5ca788=[];_0xa2c092[_0x20cd93('0xc72')][_0x20cd93('0x7fa')]&&_0xa2c092[_0x20cd93('0xc72')]['type'][_0x20cd93('0xac2')]()===_0x20cd93('0x2300')&&_0xa2c092['dialogflow'][_0x20cd93('0x522')]===_0x20cd93('0x4ea')&&(_0xa2c092[_0x20cd93('0xc72')]['phone']=_0x23a7a8[_0x20cd93('0x988')]?(_0xa2c092[_0x20cd93('0xc72')][_0x20cd93('0x1995')]||'')+'${EXTEN:'+_0x23a7a8[_0x20cd93('0x988')]+'}':(_0xa2c092[_0x20cd93('0xc72')][_0x20cd93('0x1995')]||'')+_0x20cd93('0x2560'),_0x23a7a8[_0x20cd93('0xad1')]!==_0x20cd93('0x983')?_0xa2c092[_0x20cd93('0xc72')][_0x20cd93('0x26a0')][_0x20cd93('0x2004')](_0x20cd93('0x478'))<0x0&&(_0xa2c092['dialogflow'][_0x20cd93('0x26a0')]+=_0x20cd93('0x478')):_0xa2c092['dialogflow'][_0x20cd93('0x26a0')]=_0xa2c092[_0x20cd93('0xc72')][_0x20cd93('0x26a0')]['replace']('U(xcally-mixmonitor-context)',''));if(_0xa2c092['dialogflow']['appType']&&_0xa2c092[_0x20cd93('0xc72')]['appType']==='custom'){}else switch((_0xa2c092['dialogflow'][_0x20cd93('0x1f94')]||_0xa2c092['dialogflow'][_0x20cd93('0x522')])['toLowerCase']()){case _0x20cd93('0x1125'):_0xa2c092[_0x20cd93('0xc72')][_0x20cd93('0x23c2')]=_0xa2c092['dialogflow'][_0x20cd93('0x19fe')]+'='+_0xa2c092[_0x20cd93('0xc72')][_0x20cd93('0x2228')];break;case _0x20cd93('0xf50'):break;default:_0x5ca788[0x0]=_0xa2c092[_0x20cd93('0xc72')][_0x20cd93('0xddb')],_0x5ca788[0x1]=_0xa2c092[_0x20cd93('0xc72')][_0x20cd93('0x10f')],_0x5ca788[0x2]=_0xa2c092[_0x20cd93('0xc72')][_0x20cd93('0x1cce')],_0xa2c092[_0x20cd93('0xc72')][_0x20cd93('0x23c2')]=_0x5ca788[_0x20cd93('0x136')](',');}_0x167755(_0xa2c092[_0x20cd93('0xc72')]);}function _0x167755(_0x26c9f7){var _0x4a2608=_0xfb9eb1;_0x5328a8[_0x4a2608('0x1c24')](_0x26c9f7);}}const _0x4f3193=_0x45be1a;_0x3a3d9e[_0x3877e3('0x1a81')]=['$mdDialog','$q',_0x3877e3('0x1908'),_0x3877e3('0x1b9c'),'whatsappAccount','api',_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x3a3d9e(_0x13c742,_0x2e618c,_0x5df1de,_0x469188,_0x421107,_0x3c49c4,_0x3c34a8,_0x281c77){var _0x610e79=_0x3877e3,_0x1f4cad=this;_0x1f4cad[_0x610e79('0x123f')]=_0x3c34a8['getCurrentUser'](),_0x1f4cad[_0x610e79('0x1a69')]=[],_0x1f4cad['title']=_0x610e79('0x1442')+(_0x469188[_0x610e79('0x522')]||_0x469188[_0x610e79('0x1f94')])['toUpperCase'](),_0x1f4cad['gotoif']=angular[_0x610e79('0xd75')](_0x469188),_0x1f4cad[_0x610e79('0x5ed')]=_0x281c77,_0x1f4cad['hasModulePermissions']={};if(_0x1f4cad['gotoif']['appdata'])switch(_0x1f4cad['gotoif']['appType']?_0x1f4cad[_0x610e79('0x262')][_0x610e79('0x522')][_0x610e79('0xac2')]():_0x1f4cad[_0x610e79('0x262')][_0x610e79('0x1f94')][_0x610e79('0xac2')]()){case _0x610e79('0xf50'):break;case _0x610e79('0xc72'):{var _0x5943e9=_0x1f4cad[_0x610e79('0x262')]['appdata']['split'](',');_0x1f4cad[_0x610e79('0x262')][_0x610e79('0xddb')]=_0x5943e9[0x0],_0x1f4cad[_0x610e79('0x262')][_0x610e79('0x10f')]=_0x5943e9[0x1],_0x1f4cad[_0x610e79('0x262')][_0x610e79('0x1cce')]=_0x5943e9[_0x610e79('0xb3d')](0x2,_0x5943e9[_0x610e79('0x577')])[_0x610e79('0x136')](',');}break;case _0x610e79('0x1c22'):{var _0x39c6cf=_0x1f4cad[_0x610e79('0x262')][_0x610e79('0x23c2')][_0x610e79('0x1af5')](',');_0x1f4cad[_0x610e79('0x262')][_0x610e79('0x21c6')]=_0x39c6cf[0x0],_0x1f4cad['gotoif'][_0x610e79('0x797')]=_0x39c6cf[0x1],_0x1f4cad[_0x610e79('0x262')]['lexregion']=_0x39c6cf[0x2],_0x1f4cad[_0x610e79('0x262')][_0x610e79('0x15fe')]=_0x39c6cf[0x3],_0x1f4cad['gotoif'][_0x610e79('0x1cce')]=_0x39c6cf['slice'](0x4,_0x39c6cf[_0x610e79('0x577')])[_0x610e79('0x136')](',');}break;case _0x610e79('0x1b98'):{var _0x5edd03=_0x1f4cad[_0x610e79('0x262')][_0x610e79('0x23c2')][_0x610e79('0x1af5')](',');_0x1f4cad[_0x610e79('0x262')][_0x610e79('0x13b6')]=isNaN(_0x5edd03[0x0])?_0x5edd03[0x0]:parseInt(_0x5edd03[0x0],0xa),_0x1f4cad[_0x610e79('0x262')][_0x610e79('0xc1e')]=_0x5edd03[_0x610e79('0xb3d')](0x1,_0x5edd03[_0x610e79('0x577')])[_0x610e79('0x136')](',');}break;case _0x610e79('0x1224'):_0x1f4cad[_0x610e79('0x262')][_0x610e79('0xc1e')]=_0x1f4cad[_0x610e79('0x262')][_0x610e79('0x23c2')];break;case _0x610e79('0x1125'):_0x1f4cad[_0x610e79('0x262')][_0x610e79('0x19fe')]=_0x1f4cad[_0x610e79('0x262')]['appdata'][_0x610e79('0x1af5')]('=')[0x0],_0x1f4cad['gotoif'][_0x610e79('0x2228')]=_0x1f4cad[_0x610e79('0x262')][_0x610e79('0x23c2')][_0x610e79('0x1af5')]('=')[0x1];break;case _0x610e79('0x2356'):_0x1f4cad[_0x610e79('0x262')][_0x610e79('0xbf8')]=_0x1f4cad[_0x610e79('0x262')][_0x610e79('0x23c2')];break;default:{var _0x2b4c1c=_0x1f4cad[_0x610e79('0x262')]['appdata'][_0x610e79('0x1af5')](',');_0x1f4cad['gotoif'][_0x610e79('0x271c')]=_0x86640f()[_0x610e79('0x23aa')](_0x2b4c1c[0x0])?_0x2b4c1c[0x0]:isNaN(_0x2b4c1c[0x0])?_0x2b4c1c[0x0]:parseInt(_0x2b4c1c[0x0],0xa),_0x1f4cad['gotoif'][_0x610e79('0x1a25')]=_0x86640f()[_0x610e79('0x23aa')](_0x2b4c1c[0x1])?_0x2b4c1c[0x1]:isNaN(_0x2b4c1c[0x1])?_0x2b4c1c[0x1]:parseInt(_0x2b4c1c[0x1],0xa),_0x1f4cad['gotoif'][_0x610e79('0xe4c')]=_0x86640f()[_0x610e79('0x23aa')](_0x2b4c1c[0x2])?_0x2b4c1c[0x2]:isNaN(_0x2b4c1c[0x2])?_0x2b4c1c[0x2]:parseInt(_0x2b4c1c[0x2],0xa);}break;}else{}_0x1f4cad[_0x610e79('0x262')][_0x610e79('0x7fa')]&&_0x1f4cad[_0x610e79('0x262')]['type'][_0x610e79('0xac2')]()==='outbound'&&_0x1f4cad['gotoif'][_0x610e79('0x522')][_0x610e79('0xac2')]()===_0x610e79('0x2363')&&(_0x1f4cad[_0x610e79('0x262')]['prefix']=_0x1f4cad['gotoif'][_0x610e79('0x159e')]?_0x1f4cad[_0x610e79('0x262')][_0x610e79('0x159e')][_0x610e79('0x1af5')]('$')[0x0]:undefined,_0x1f4cad['gotoif']['callerId']=_0x1f4cad['gotoif'][_0x610e79('0x1f5a')]?_0x610e79('0x587')+_0x1f4cad[_0x610e79('0x262')][_0x610e79('0x1f5a')]:undefined);_0x1f4cad[_0x610e79('0xaa7')]=_0x591af0,_0x1f4cad[_0x610e79('0x167')]=_0x573ad9;function _0x591af0(){var _0x2c5c43=_0x610e79;_0x1f4cad['errors']=[];var _0x371857=[];_0x1f4cad[_0x2c5c43('0x262')]['type']&&_0x1f4cad[_0x2c5c43('0x262')]['type']['toLowerCase']()===_0x2c5c43('0x2300')&&_0x1f4cad[_0x2c5c43('0x262')][_0x2c5c43('0x522')]===_0x2c5c43('0x4ea')&&(_0x1f4cad['gotoif'][_0x2c5c43('0x159e')]=_0x421107['cutdigits']?(_0x1f4cad[_0x2c5c43('0x262')]['prefix']||'')+_0x2c5c43('0x349')+_0x421107[_0x2c5c43('0x988')]+'}':(_0x1f4cad[_0x2c5c43('0x262')]['prefix']||'')+'${EXTEN}',_0x421107[_0x2c5c43('0xad1')]!==_0x2c5c43('0x983')?_0x1f4cad['gotoif'][_0x2c5c43('0x26a0')][_0x2c5c43('0x2004')](_0x2c5c43('0x478'))<0x0&&(_0x1f4cad[_0x2c5c43('0x262')][_0x2c5c43('0x26a0')]+=_0x2c5c43('0x478')):_0x1f4cad[_0x2c5c43('0x262')][_0x2c5c43('0x26a0')]=_0x1f4cad[_0x2c5c43('0x262')]['options'][_0x2c5c43('0x16e4')]('U(xcally-mixmonitor-context)',''));if(_0x1f4cad[_0x2c5c43('0x262')]['appType']&&_0x1f4cad[_0x2c5c43('0x262')]['appType']==='custom'){}else switch((_0x1f4cad[_0x2c5c43('0x262')][_0x2c5c43('0x1f94')]||_0x1f4cad[_0x2c5c43('0x262')]['appType'])['toLowerCase']()){case _0x2c5c43('0x1125'):_0x1f4cad[_0x2c5c43('0x262')][_0x2c5c43('0x23c2')]=_0x1f4cad[_0x2c5c43('0x262')][_0x2c5c43('0x19fe')]+'='+_0x1f4cad[_0x2c5c43('0x262')][_0x2c5c43('0x2228')];break;case _0x2c5c43('0xf50'):break;default:_0x371857[0x0]=_0x1f4cad[_0x2c5c43('0x262')][_0x2c5c43('0x271c')],_0x371857[0x1]=_0x1f4cad[_0x2c5c43('0x262')][_0x2c5c43('0x1a25')],_0x371857[0x2]=_0x1f4cad[_0x2c5c43('0x262')][_0x2c5c43('0xe4c')],_0x1f4cad[_0x2c5c43('0x262')][_0x2c5c43('0x23c2')]=_0x371857['join'](',');}_0x573ad9(_0x1f4cad[_0x2c5c43('0x262')]);}function _0x573ad9(_0x3bc09e){var _0x3228b5=_0x610e79;_0x13c742[_0x3228b5('0x1c24')](_0x3bc09e);}}const _0x49fa89=_0x3a3d9e;_0x35c680['$inject']=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x1b9c'),_0x3877e3('0x1b5d'),'api',_0x3877e3('0x15bc'),'crudPermissions'];function _0x35c680(_0x457178,_0x173dd0,_0x5bc041,_0x54dcbd,_0x1fc66c,_0x350b6c,_0x18585b,_0xcd6076){var _0x2927cf=_0x3877e3,_0x126d5a=this;_0x126d5a[_0x2927cf('0x123f')]=_0x18585b[_0x2927cf('0x15ed')](),_0x126d5a['errors']=[],_0x126d5a[_0x2927cf('0x4b4')]=_0x2927cf('0x1442')+(_0x54dcbd[_0x2927cf('0x522')]||_0x54dcbd[_0x2927cf('0x1f94')])['toUpperCase'](),_0x126d5a['gotop']=angular['copy'](_0x54dcbd),_0x126d5a[_0x2927cf('0x5ed')]=_0xcd6076,_0x126d5a[_0x2927cf('0x126a')]={};if(_0x126d5a['gotop']['appdata'])switch(_0x126d5a[_0x2927cf('0x23ef')]['appType']?_0x126d5a[_0x2927cf('0x23ef')][_0x2927cf('0x522')][_0x2927cf('0xac2')]():_0x126d5a[_0x2927cf('0x23ef')][_0x2927cf('0x1f94')][_0x2927cf('0xac2')]()){case _0x2927cf('0xf50'):break;case'dialogflow':{var _0x54ae05=_0x126d5a[_0x2927cf('0x23ef')][_0x2927cf('0x23c2')][_0x2927cf('0x1af5')](',');_0x126d5a['gotop'][_0x2927cf('0xddb')]=_0x54ae05[0x0],_0x126d5a[_0x2927cf('0x23ef')][_0x2927cf('0x10f')]=_0x54ae05[0x1],_0x126d5a['gotop'][_0x2927cf('0x1cce')]=_0x54ae05['slice'](0x2,_0x54ae05[_0x2927cf('0x577')])[_0x2927cf('0x136')](',');}break;case _0x2927cf('0x1c22'):{var _0x3842d5=_0x126d5a['gotop'][_0x2927cf('0x23c2')][_0x2927cf('0x1af5')](',');_0x126d5a[_0x2927cf('0x23ef')]['accesskeyid']=_0x3842d5[0x0],_0x126d5a[_0x2927cf('0x23ef')]['secretaccesskey']=_0x3842d5[0x1],_0x126d5a[_0x2927cf('0x23ef')][_0x2927cf('0x20a3')]=_0x3842d5[0x2],_0x126d5a[_0x2927cf('0x23ef')][_0x2927cf('0x15fe')]=_0x3842d5[0x3],_0x126d5a[_0x2927cf('0x23ef')][_0x2927cf('0x1cce')]=_0x3842d5['slice'](0x4,_0x3842d5[_0x2927cf('0x577')])['join'](',');}break;case _0x2927cf('0x1b98'):{var _0x1f47a4=_0x126d5a[_0x2927cf('0x23ef')][_0x2927cf('0x23c2')]['split'](',');_0x126d5a[_0x2927cf('0x23ef')][_0x2927cf('0x13b6')]=isNaN(_0x1f47a4[0x0])?_0x1f47a4[0x0]:parseInt(_0x1f47a4[0x0],0xa),_0x126d5a['gotop']['text']=_0x1f47a4[_0x2927cf('0xb3d')](0x1,_0x1f47a4[_0x2927cf('0x577')])[_0x2927cf('0x136')](',');}break;case _0x2927cf('0x1224'):_0x126d5a[_0x2927cf('0x23ef')][_0x2927cf('0xc1e')]=_0x126d5a[_0x2927cf('0x23ef')]['appdata'];break;case _0x2927cf('0x1125'):_0x126d5a[_0x2927cf('0x23ef')][_0x2927cf('0x19fe')]=_0x126d5a[_0x2927cf('0x23ef')][_0x2927cf('0x23c2')][_0x2927cf('0x1af5')]('=')[0x0],_0x126d5a[_0x2927cf('0x23ef')][_0x2927cf('0x2228')]=_0x126d5a[_0x2927cf('0x23ef')][_0x2927cf('0x23c2')][_0x2927cf('0x1af5')]('=')[0x1];break;case _0x2927cf('0x2356'):_0x126d5a[_0x2927cf('0x23ef')][_0x2927cf('0xbf8')]=_0x126d5a[_0x2927cf('0x23ef')][_0x2927cf('0x23c2')];break;default:{var _0x136303=_0x126d5a[_0x2927cf('0x23ef')][_0x2927cf('0x23c2')]['split'](',');_0x126d5a[_0x2927cf('0x23ef')][_0x2927cf('0xbe5')]=_0x86640f()[_0x2927cf('0x23aa')](_0x136303[0x0])?_0x136303[0x0]:isNaN(_0x136303[0x0])?_0x136303[0x0]:parseInt(_0x136303[0x0],0xa);}break;}else{}_0x126d5a['gotop'][_0x2927cf('0x7fa')]&&_0x126d5a[_0x2927cf('0x23ef')][_0x2927cf('0x7fa')][_0x2927cf('0xac2')]()===_0x2927cf('0x2300')&&_0x126d5a[_0x2927cf('0x23ef')]['appType']['toLowerCase']()===_0x2927cf('0x2363')&&(_0x126d5a[_0x2927cf('0x23ef')][_0x2927cf('0x1995')]=_0x126d5a['gotop'][_0x2927cf('0x159e')]?_0x126d5a['gotop'][_0x2927cf('0x159e')][_0x2927cf('0x1af5')]('$')[0x0]:undefined,_0x126d5a[_0x2927cf('0x23ef')]['callerId']=_0x126d5a[_0x2927cf('0x23ef')][_0x2927cf('0x1f5a')]?_0x2927cf('0x587')+_0x126d5a[_0x2927cf('0x23ef')]['callerID']:undefined);_0x126d5a['saveWhatsappAccountApp']=_0x3ca5f5,_0x126d5a[_0x2927cf('0x167')]=_0x5e9c9a;function _0x3ca5f5(){var _0xe8fc96=_0x2927cf;_0x126d5a[_0xe8fc96('0x1a69')]=[];var _0x12581a=[];_0x126d5a[_0xe8fc96('0x23ef')][_0xe8fc96('0x7fa')]&&_0x126d5a[_0xe8fc96('0x23ef')][_0xe8fc96('0x7fa')][_0xe8fc96('0xac2')]()==='outbound'&&_0x126d5a['gotop'][_0xe8fc96('0x522')]===_0xe8fc96('0x4ea')&&(_0x126d5a[_0xe8fc96('0x23ef')]['phone']=_0x1fc66c[_0xe8fc96('0x988')]?(_0x126d5a[_0xe8fc96('0x23ef')]['prefix']||'')+_0xe8fc96('0x349')+_0x1fc66c[_0xe8fc96('0x988')]+'}':(_0x126d5a['gotop']['prefix']||'')+'${EXTEN}',_0x1fc66c[_0xe8fc96('0xad1')]!==_0xe8fc96('0x983')?_0x126d5a[_0xe8fc96('0x23ef')]['options'][_0xe8fc96('0x2004')](_0xe8fc96('0x478'))<0x0&&(_0x126d5a['gotop'][_0xe8fc96('0x26a0')]+=_0xe8fc96('0x478')):_0x126d5a[_0xe8fc96('0x23ef')][_0xe8fc96('0x26a0')]=_0x126d5a['gotop'][_0xe8fc96('0x26a0')][_0xe8fc96('0x16e4')](_0xe8fc96('0x478'),''));if(_0x126d5a[_0xe8fc96('0x23ef')]['appType']&&_0x126d5a[_0xe8fc96('0x23ef')][_0xe8fc96('0x522')]===_0xe8fc96('0xf50')){}else switch((_0x126d5a[_0xe8fc96('0x23ef')]['app']||_0x126d5a[_0xe8fc96('0x23ef')][_0xe8fc96('0x522')])['toLowerCase']()){case _0xe8fc96('0x1125'):_0x126d5a[_0xe8fc96('0x23ef')]['appdata']=_0x126d5a[_0xe8fc96('0x23ef')][_0xe8fc96('0x19fe')]+'='+_0x126d5a[_0xe8fc96('0x23ef')][_0xe8fc96('0x2228')];break;case _0xe8fc96('0xf50'):break;default:_0x12581a[0x0]=_0x126d5a[_0xe8fc96('0x23ef')]['priority'],_0x126d5a[_0xe8fc96('0x23ef')]['appdata']=_0x12581a[_0xe8fc96('0x136')](',');}_0x5e9c9a(_0x126d5a[_0xe8fc96('0x23ef')]);}function _0x5e9c9a(_0x4e72bd){var _0x2dc3fd=_0x2927cf;_0x457178[_0x2dc3fd('0x1c24')](_0x4e72bd);}}const _0xcf8b74=_0x35c680;_0x11df1d[_0x3877e3('0x1a81')]=['$state',_0x3877e3('0x1850'),'$mdToast',_0x3877e3('0x2086'),_0x3877e3('0xa07'),'intervals',_0x3877e3('0x1908'),_0x3877e3('0xccd'),'Auth',_0x3877e3('0x5ed')];function _0x11df1d(_0x457655,_0x26ae2e,_0x2cc9c6,_0x98253e,_0x12312c,_0x27b6fa,_0x49757f,_0x32ff9d,_0x406085,_0x1a90af){var _0x554a3a=_0x3877e3,_0x5e16f9=this;_0x5e16f9[_0x554a3a('0x123f')]=_0x406085[_0x554a3a('0x15ed')](),_0x5e16f9[_0x554a3a('0x1a69')]=[],_0x5e16f9[_0x554a3a('0x4b4')]=_0x554a3a('0x130e'),_0x5e16f9[_0x554a3a('0xa07')]=angular[_0x554a3a('0xd75')](_0x12312c),_0x5e16f9['intervals']=_0x27b6fa,_0x5e16f9[_0x554a3a('0x1c3e')]=![],_0x5e16f9[_0x554a3a('0x4ca')]=[_0x554a3a('0x869'),'custom',_0x554a3a('0x17fe')],_0x5e16f9[_0x554a3a('0x5ed')]=_0x1a90af,_0x5e16f9['daysOfWeek']=_0x98253e['getDaysOfWeek'](),_0x5e16f9[_0x554a3a('0x6fd')]=_0x98253e[_0x554a3a('0x439')](),_0x5e16f9['monthName']=_0x98253e[_0x554a3a('0x1f1f')](),_0x5e16f9['daysOfMonth']=_0x98253e[_0x554a3a('0x200e')]();if(!_0x5e16f9[_0x554a3a('0xa07')])_0x5e16f9[_0x554a3a('0xa07')]={'interval':_0x554a3a('0x1cc4')},_0x5e16f9[_0x554a3a('0x7fa')]=_0x554a3a('0x869'),_0x5e16f9[_0x554a3a('0x4b4')]=_0x554a3a('0xe33'),_0x5e16f9[_0x554a3a('0x1c3e')]=!![];else{if(_0x5e16f9[_0x554a3a('0xa07')][_0x554a3a('0xa07')]!==_0x554a3a('0x1cc4')){_0x5e16f9[_0x554a3a('0x7fa')]=_0x554a3a('0xf50');var _0x2faaf3=_0x5e16f9[_0x554a3a('0xa07')][_0x554a3a('0xa07')][_0x554a3a('0x1af5')](','),_0x205381=_0x2faaf3[0x0],_0x20a45c=_0x2faaf3[0x1],_0x5a15ed=_0x2faaf3[0x2],_0x54245f=_0x2faaf3[0x3];if(_0x205381!=='*'){var _0x213735=_0x205381[_0x554a3a('0x1af5')]('-')[0x0],_0x403b40=_0x205381[_0x554a3a('0x1af5')]('-')[0x1],_0x348018;_0x348018=new Date(),_0x348018[_0x554a3a('0xb0f')](Number(_0x213735[_0x554a3a('0x1af5')](':')[0x0])),_0x348018[_0x554a3a('0x119c')](Number(_0x213735[_0x554a3a('0x1af5')](':')[0x1])),_0x5e16f9[_0x554a3a('0x3e8')]=_0x348018,_0x348018=new Date(),_0x348018[_0x554a3a('0xb0f')](Number(_0x403b40[_0x554a3a('0x1af5')](':')[0x0])),_0x348018[_0x554a3a('0x119c')](Number(_0x403b40[_0x554a3a('0x1af5')](':')[0x1])),_0x5e16f9['timeRangeTo']=_0x348018;}_0x20a45c!=='*'&&(_0x5e16f9[_0x554a3a('0x21a5')]=_0x20a45c[_0x554a3a('0x1af5')]('-')[0x0],_0x5e16f9[_0x554a3a('0x1556')]=_0x20a45c[_0x554a3a('0x1af5')]('-')[0x1]),_0x5a15ed!=='*'&&(_0x5e16f9[_0x554a3a('0x14ec')]=_0x5a15ed['split']('-')[0x0],_0x5e16f9['monthDayTo']=_0x5a15ed[_0x554a3a('0x1af5')]('-')[0x1]),_0x54245f!=='*'&&(_0x5e16f9[_0x554a3a('0xded')]=_0x54245f[_0x554a3a('0x1af5')]('-')[0x0],_0x5e16f9[_0x554a3a('0x2633')]=_0x54245f[_0x554a3a('0x1af5')]('-')[0x1]);}else _0x5e16f9[_0x554a3a('0x7fa')]='always';}_0x457655['params']['id']&&!_0x5e16f9[_0x554a3a('0xa07')][_0x554a3a('0xd7f')]&&(_0x5e16f9['interval']['IntervalId']=_0x457655['params']['id']);_0x5e16f9['interval']['IntervalId']&&_0x5e16f9['interval'][_0x554a3a('0xd7f')]&&(_0x5e16f9[_0x554a3a('0x7fa')]=_0x554a3a('0x17fe'));_0x5e16f9[_0x554a3a('0x2bb')]=_0x1c2ab2,_0x5e16f9[_0x554a3a('0xc2e')]=_0x54ee26,_0x5e16f9[_0x554a3a('0x167')]=_0x4d7df3;_0x5e16f9[_0x554a3a('0xa07')][_0x554a3a('0xd7f')]&&(_0x406085[_0x554a3a('0x21de')](_0x554a3a('0x1bd8'))?_0x32ff9d['interval'][_0x554a3a('0x595')]({'fields':_0x554a3a('0xaaf'),'IntervalId':_0x554a3a('0x27a'),'nolimit':!![]})[_0x554a3a('0x1376')]['then'](function(_0x1b0386){var _0x124170=_0x554a3a;_0x5e16f9[_0x124170('0x2530')]=_0x1b0386['rows']||[];})[_0x554a3a('0x1c1d')](function(_0x113fb6){var _0x294d08=_0x554a3a;_0x49757f[_0x294d08('0x2092')]({'title':_0x113fb6[_0x294d08('0x209')]?_0x294d08('0x22d')+_0x113fb6[_0x294d08('0x209')]+_0x294d08('0xa99')+_0x113fb6[_0x294d08('0x1808')]:_0x294d08('0xdc5'),'msg':_0x113fb6[_0x294d08('0x11c2')]?JSON[_0x294d08('0x25e')](_0x113fb6[_0x294d08('0x11c2')]):_0x113fb6[_0x294d08('0x174f')]()});}):_0x32ff9d[_0x554a3a('0xa07')][_0x554a3a('0x595')]({'fields':_0x554a3a('0xaaf'),'IntervalId':_0x554a3a('0x27a'),'nolimit':!![]})[_0x554a3a('0x1376')][_0x554a3a('0x21ad')](function(_0x5ab315){var _0x5c3ec5=_0x554a3a;_0x5e16f9['intervals']=_0x5ab315[_0x5c3ec5('0x1b33')]||[];})[_0x554a3a('0x21ad')](function(){var _0x3d3a51=_0x554a3a;return _0x32ff9d[_0x3d3a51('0xab4')]['get']({'userProfileId':_0x5e16f9[_0x3d3a51('0x123f')][_0x3d3a51('0x1618')],'sectionId':0x3ec})['$promise'];})['then'](function(_0x7a1f1d){var _0x173e0a=_0x554a3a,_0xab5418=_0x7a1f1d&&_0x7a1f1d[_0x173e0a('0x1b33')]?_0x7a1f1d[_0x173e0a('0x1b33')][0x0]:null;if(!_0xab5418)_0x5e16f9[_0x173e0a('0x2530')]=[];else{if(!_0xab5418['autoAssociation'])return _0x32ff9d[_0x173e0a('0x185e')][_0x173e0a('0x595')]({'sectionId':_0xab5418['id']})['$promise'][_0x173e0a('0x21ad')](function(_0xdeea99){var _0x4ac138=_0x173e0a,_0x2b2329=_0xdeea99&&_0xdeea99[_0x4ac138('0x1b33')]?_0xdeea99[_0x4ac138('0x1b33')]:[],_0x28f073=[],_0x3bc79f=null;_0x5e16f9[_0x4ac138('0xa07')]&&(_0x3bc79f=_0x86640f()['find'](_0x5e16f9[_0x4ac138('0x2530')],{'name':_0x5e16f9[_0x4ac138('0xa07')]['IntervalId']})),_0x3bc79f&&!_0x86640f()['some'](_0x2b2329,['resourceId',_0x3bc79f['id']])&&_0x5e16f9[_0x4ac138('0x2530')]['forEach'](function(_0x2d7bcf){var _0x6dccb6=_0x4ac138;_0x2d7bcf['id']===_0x3bc79f['id']&&(_0x2d7bcf[_0x6dccb6('0xba')]=![],_0x28f073[_0x6dccb6('0x206c')](_0x2d7bcf));}),_0x5e16f9['intervals']=_0x28f073;});}})[_0x554a3a('0x1c1d')](function(_0x8d7b20){var _0xbd779a=_0x554a3a;_0x49757f['error']({'title':_0x8d7b20[_0xbd779a('0x209')]?_0xbd779a('0x22d')+_0x8d7b20[_0xbd779a('0x209')]+_0xbd779a('0xa99')+_0x8d7b20[_0xbd779a('0x1808')]:_0xbd779a('0xdc5'),'msg':_0x8d7b20['data']?JSON[_0xbd779a('0x25e')](_0x8d7b20['data']):_0x8d7b20[_0xbd779a('0x174f')]()});}));function _0x3eb311(){var _0x47f712=_0x554a3a;switch(_0x5e16f9[_0x47f712('0x7fa')]){case _0x47f712('0x869'):case _0x47f712('0x17fe'):return _0x47f712('0x1cc4');case _0x47f712('0xf50'):{var _0x2a8697=[];if(_0x5e16f9[_0x47f712('0x3e8')]!=='*'&&_0x5e16f9[_0x47f712('0x3e8')]&&_0x5e16f9['timeRangeTo']){var _0x5684db=(_0x5e16f9[_0x47f712('0x3e8')][_0x47f712('0x10c1')]()<0xa?'0':'')+_0x5e16f9['timeRangeFrom']['getHours']()+':'+((_0x5e16f9['timeRangeFrom'][_0x47f712('0x27ee')]()<0xa?'0':'')+_0x5e16f9['timeRangeFrom'][_0x47f712('0x27ee')]()),_0xa7cc16=(_0x5e16f9['timeRangeTo'][_0x47f712('0x10c1')]()<0xa?'0':'')+_0x5e16f9[_0x47f712('0x1fbc')][_0x47f712('0x10c1')]()+':'+((_0x5e16f9[_0x47f712('0x1fbc')]['getMinutes']()<0xa?'0':'')+_0x5e16f9[_0x47f712('0x1fbc')]['getMinutes']());_0x2a8697['push'](_0x5684db+'-'+_0xa7cc16);}else _0x2a8697['push']('*');return _0x5e16f9[_0x47f712('0x21a5')]?_0x5e16f9[_0x47f712('0x1556')]?_0x2a8697[_0x47f712('0x206c')](_0x5e16f9[_0x47f712('0x21a5')]+'-'+_0x5e16f9['dayOfWeekTo']):_0x2a8697[_0x47f712('0x206c')](_0x5e16f9['dayOfWeekFrom']):_0x2a8697['push']('*'),_0x5e16f9['monthDayFrom']?_0x5e16f9[_0x47f712('0x3bf')]?_0x2a8697[_0x47f712('0x206c')](_0x5e16f9[_0x47f712('0x14ec')]+'-'+_0x5e16f9[_0x47f712('0x3bf')]):_0x2a8697[_0x47f712('0x206c')](_0x5e16f9[_0x47f712('0x14ec')]):_0x2a8697[_0x47f712('0x206c')]('*'),_0x5e16f9['monthFrom']?_0x5e16f9[_0x47f712('0x2633')]?_0x2a8697[_0x47f712('0x206c')](_0x5e16f9['monthFrom']+'-'+_0x5e16f9[_0x47f712('0x2633')]):_0x2a8697[_0x47f712('0x206c')](_0x5e16f9['monthFrom']):_0x2a8697[_0x47f712('0x206c')]('*'),_0x2a8697['join']();}}}function _0x1c2ab2(){var _0x4582d7=_0x554a3a;_0x5e16f9[_0x4582d7('0x1a69')]=[],_0x5e16f9[_0x4582d7('0xa07')][_0x4582d7('0xa07')]=_0x3eb311(),_0x32ff9d['interval']['save'](_0x5e16f9[_0x4582d7('0xa07')])[_0x4582d7('0x1376')][_0x4582d7('0x21ad')](function(_0x5436a0){var _0x1e648a=_0x4582d7;_0x5e16f9[_0x1e648a('0x2530')][_0x1e648a('0x206c')](_0x5436a0),_0x49757f[_0x1e648a('0xdb1')]({'title':'Interval\x20properly\x20created','msg':_0x5e16f9[_0x1e648a('0xa07')][_0x1e648a('0x19fe')]?_0x5e16f9[_0x1e648a('0xa07')][_0x1e648a('0x19fe')]+'\x20has\x20been\x20created!':''}),_0x4d7df3();})['catch'](function(_0x140c05){var _0x298a55=_0x4582d7;console[_0x298a55('0x2092')](_0x140c05),_0x5e16f9['errors']=_0x140c05[_0x298a55('0x11c2')][_0x298a55('0x1a69')]||[{'message':_0x140c05[_0x298a55('0x174f')](),'type':_0x298a55('0x27de')}];});}function _0x54ee26(){var _0x19203d=_0x554a3a;_0x5e16f9[_0x19203d('0x1a69')]=[],_0x5e16f9[_0x19203d('0xa07')][_0x19203d('0xa07')]=_0x3eb311(),_0x5e16f9[_0x19203d('0xa07')][_0x19203d('0xd7f')]?(_0x5e16f9[_0x19203d('0x7fa')]!=='list'&&(_0x5e16f9[_0x19203d('0xa07')][_0x19203d('0x1ac8')]=null),_0x4d7df3(_0x5e16f9['interval'])):_0x32ff9d[_0x19203d('0xa07')][_0x19203d('0x5ef')]({'id':_0x5e16f9[_0x19203d('0xa07')]['id']},_0x5e16f9[_0x19203d('0xa07')])[_0x19203d('0x1376')][_0x19203d('0x21ad')](function(_0x21a57c){var _0x1293fd=_0x19203d,_0x42b723=_0x86640f()[_0x1293fd('0x1d2e')](_0x5e16f9[_0x1293fd('0x2530')],{'id':_0x21a57c['id']});_0x42b723&&_0x86640f()['merge'](_0x42b723,_0x21a57c),_0x49757f[_0x1293fd('0xdb1')]({'title':'Interval\x20properly\x20saved!','msg':'Interval\x20has\x20been\x20saved!'}),_0x4d7df3();})[_0x19203d('0x1c1d')](function(_0x4bc623){var _0x3bab26=_0x19203d;console[_0x3bab26('0x2092')](_0x4bc623),_0x5e16f9[_0x3bab26('0x1a69')]=_0x4bc623['data'][_0x3bab26('0x1a69')]||[{'message':_0x4bc623['toString'](),'type':_0x3bab26('0x13fa')}];});}function _0x4d7df3(_0x2b3ce1){var _0x4b7390=_0x554a3a;_0x26ae2e[_0x4b7390('0x1c24')](_0x2b3ce1);}}const _0x484941=_0x11df1d;_0x137f52[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x1b9c'),'whatsappAccount',_0x3877e3('0xccd'),'Auth',_0x3877e3('0x5ed')];function _0x137f52(_0x5ca222,_0xc13b26,_0x4a8272,_0x380cc2,_0x235973,_0x32fb17,_0x4679e1,_0x1b22a2){var _0x940cb9=_0x3877e3,_0x1c4a52=this;_0x1c4a52[_0x940cb9('0x123f')]=_0x4679e1[_0x940cb9('0x15ed')](),_0x1c4a52[_0x940cb9('0x1a69')]=[],_0x1c4a52['title']='WHATSAPP.EDIT_'+(_0x380cc2[_0x940cb9('0x522')]||_0x380cc2[_0x940cb9('0x1f94')])['toUpperCase'](),_0x1c4a52[_0x940cb9('0x2101')]=angular['copy'](_0x380cc2),_0x1c4a52[_0x940cb9('0x5ed')]=_0x1b22a2,_0x1c4a52[_0x940cb9('0x126a')]={};if(_0x1c4a52[_0x940cb9('0x2101')][_0x940cb9('0x23c2')])switch(_0x1c4a52[_0x940cb9('0x2101')]['appType']?_0x1c4a52[_0x940cb9('0x2101')][_0x940cb9('0x522')][_0x940cb9('0xac2')]():_0x1c4a52[_0x940cb9('0x2101')][_0x940cb9('0x1f94')][_0x940cb9('0xac2')]()){case'custom':break;case _0x940cb9('0xc72'):{var _0x4ca76f=_0x1c4a52[_0x940cb9('0x2101')][_0x940cb9('0x23c2')][_0x940cb9('0x1af5')](',');_0x1c4a52[_0x940cb9('0x2101')][_0x940cb9('0xddb')]=_0x4ca76f[0x0],_0x1c4a52[_0x940cb9('0x2101')]['language']=_0x4ca76f[0x1],_0x1c4a52[_0x940cb9('0x2101')]['welcomemessage']=_0x4ca76f[_0x940cb9('0xb3d')](0x2,_0x4ca76f['length'])[_0x940cb9('0x136')](',');}break;case _0x940cb9('0x1c22'):{var _0x515a71=_0x1c4a52[_0x940cb9('0x2101')][_0x940cb9('0x23c2')][_0x940cb9('0x1af5')](',');_0x1c4a52[_0x940cb9('0x2101')]['accesskeyid']=_0x515a71[0x0],_0x1c4a52[_0x940cb9('0x2101')][_0x940cb9('0x797')]=_0x515a71[0x1],_0x1c4a52[_0x940cb9('0x2101')][_0x940cb9('0x20a3')]=_0x515a71[0x2],_0x1c4a52['noop'][_0x940cb9('0x15fe')]=_0x515a71[0x3],_0x1c4a52[_0x940cb9('0x2101')][_0x940cb9('0x1cce')]=_0x515a71[_0x940cb9('0xb3d')](0x4,_0x515a71[_0x940cb9('0x577')])[_0x940cb9('0x136')](',');}break;case _0x940cb9('0x1b98'):{var _0x741cd2=_0x1c4a52[_0x940cb9('0x2101')][_0x940cb9('0x23c2')][_0x940cb9('0x1af5')](',');_0x1c4a52[_0x940cb9('0x2101')][_0x940cb9('0x13b6')]=isNaN(_0x741cd2[0x0])?_0x741cd2[0x0]:parseInt(_0x741cd2[0x0],0xa),_0x1c4a52[_0x940cb9('0x2101')]['text']=_0x741cd2[_0x940cb9('0xb3d')](0x1,_0x741cd2[_0x940cb9('0x577')])['join'](',');}break;case'message':_0x1c4a52[_0x940cb9('0x2101')]['text']=_0x1c4a52['noop'][_0x940cb9('0x23c2')];break;case _0x940cb9('0x1125'):_0x1c4a52[_0x940cb9('0x2101')]['name']=_0x1c4a52[_0x940cb9('0x2101')]['appdata']['split']('=')[0x0],_0x1c4a52[_0x940cb9('0x2101')][_0x940cb9('0x2228')]=_0x1c4a52[_0x940cb9('0x2101')]['appdata'][_0x940cb9('0x1af5')]('=')[0x1];break;case _0x940cb9('0x2356'):_0x1c4a52[_0x940cb9('0x2101')]['project']=_0x1c4a52[_0x940cb9('0x2101')][_0x940cb9('0x23c2')];break;default:{var _0x43c528=_0x1c4a52[_0x940cb9('0x2101')][_0x940cb9('0x23c2')]['split'](',');_0x1c4a52['noop'][_0x940cb9('0x2228')]=_0x86640f()['isEmpty'](_0x43c528[0x0])?_0x43c528[0x0]:isNaN(_0x43c528[0x0])?_0x43c528[0x0]:parseInt(_0x43c528[0x0],0xa);}break;}else{}_0x1c4a52['noop'][_0x940cb9('0x7fa')]&&_0x1c4a52['noop'][_0x940cb9('0x7fa')][_0x940cb9('0xac2')]()===_0x940cb9('0x2300')&&_0x1c4a52['noop'][_0x940cb9('0x522')][_0x940cb9('0xac2')]()===_0x940cb9('0x2363')&&(_0x1c4a52[_0x940cb9('0x2101')][_0x940cb9('0x1995')]=_0x1c4a52['noop'][_0x940cb9('0x159e')]?_0x1c4a52['noop'][_0x940cb9('0x159e')][_0x940cb9('0x1af5')]('$')[0x0]:undefined,_0x1c4a52[_0x940cb9('0x2101')][_0x940cb9('0x26f7')]=_0x1c4a52['noop'][_0x940cb9('0x1f5a')]?'CALLERID(all)='+_0x1c4a52[_0x940cb9('0x2101')]['callerID']:undefined);_0x1c4a52['saveWhatsappAccountApp']=_0x128619,_0x1c4a52[_0x940cb9('0x167')]=_0x3df840;function _0x128619(){var _0x361599=_0x940cb9;_0x1c4a52[_0x361599('0x1a69')]=[];var _0x44e732=[];_0x1c4a52[_0x361599('0x2101')]['type']&&_0x1c4a52['noop']['type'][_0x361599('0xac2')]()==='outbound'&&_0x1c4a52[_0x361599('0x2101')][_0x361599('0x522')]===_0x361599('0x4ea')&&(_0x1c4a52[_0x361599('0x2101')][_0x361599('0x159e')]=_0x235973['cutdigits']?(_0x1c4a52[_0x361599('0x2101')]['prefix']||'')+'${EXTEN:'+_0x235973[_0x361599('0x988')]+'}':(_0x1c4a52['noop'][_0x361599('0x1995')]||'')+_0x361599('0x2560'),_0x235973[_0x361599('0xad1')]!==_0x361599('0x983')?_0x1c4a52[_0x361599('0x2101')][_0x361599('0x26a0')][_0x361599('0x2004')](_0x361599('0x478'))<0x0&&(_0x1c4a52[_0x361599('0x2101')][_0x361599('0x26a0')]+=_0x361599('0x478')):_0x1c4a52[_0x361599('0x2101')][_0x361599('0x26a0')]=_0x1c4a52[_0x361599('0x2101')][_0x361599('0x26a0')][_0x361599('0x16e4')](_0x361599('0x478'),''));if(_0x1c4a52[_0x361599('0x2101')][_0x361599('0x522')]&&_0x1c4a52[_0x361599('0x2101')][_0x361599('0x522')]===_0x361599('0xf50')){}else switch((_0x1c4a52['noop'][_0x361599('0x1f94')]||_0x1c4a52['noop'][_0x361599('0x522')])[_0x361599('0xac2')]()){case _0x361599('0x1125'):_0x1c4a52[_0x361599('0x2101')][_0x361599('0x23c2')]=_0x1c4a52[_0x361599('0x2101')][_0x361599('0x19fe')]+'='+_0x1c4a52[_0x361599('0x2101')][_0x361599('0x2228')];break;case _0x361599('0xf50'):break;default:_0x44e732[0x0]=_0x1c4a52[_0x361599('0x2101')][_0x361599('0x2228')],_0x1c4a52[_0x361599('0x2101')][_0x361599('0x23c2')]=_0x44e732[_0x361599('0x136')](',');}_0x3df840(_0x1c4a52[_0x361599('0x2101')]);}function _0x3df840(_0x13b13b){var _0x483a46=_0x940cb9;_0x5ca222[_0x483a46('0x1c24')](_0x13b13b);}}const _0x31dd35=_0x137f52;_0xedc4d9[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q','toasty',_0x3877e3('0x1b9c'),_0x3877e3('0x1b5d'),_0x3877e3('0xccd'),'Auth',_0x3877e3('0x5ed')];function _0xedc4d9(_0x5035cd,_0x2b4a34,_0x14d46e,_0x304e58,_0x53cc33,_0x38e8d4,_0x1359c1,_0x105f85){var _0x1a6a45=_0x3877e3,_0x238c1f=this;_0x238c1f['currentUser']=_0x1359c1['getCurrentUser'](),_0x238c1f[_0x1a6a45('0x1a69')]=[],_0x238c1f[_0x1a6a45('0x4b4')]=_0x1a6a45('0x1442')+(_0x304e58['appType']||_0x304e58['app'])['toUpperCase'](),_0x238c1f[_0x1a6a45('0xbdd')]=angular[_0x1a6a45('0xd75')](_0x304e58),_0x238c1f[_0x1a6a45('0x5ed')]=_0x105f85,_0x238c1f[_0x1a6a45('0x126a')]={};if(_0x238c1f[_0x1a6a45('0xbdd')]['appdata'])switch(_0x238c1f['queue'][_0x1a6a45('0x522')]?_0x238c1f[_0x1a6a45('0xbdd')][_0x1a6a45('0x522')][_0x1a6a45('0xac2')]():_0x238c1f['queue']['app'][_0x1a6a45('0xac2')]()){case'custom':break;case _0x1a6a45('0xc72'):{var _0x4a2094=_0x238c1f[_0x1a6a45('0xbdd')][_0x1a6a45('0x23c2')][_0x1a6a45('0x1af5')](',');_0x238c1f[_0x1a6a45('0xbdd')]['key']=_0x4a2094[0x0],_0x238c1f[_0x1a6a45('0xbdd')]['language']=_0x4a2094[0x1],_0x238c1f['queue'][_0x1a6a45('0x1cce')]=_0x4a2094[_0x1a6a45('0xb3d')](0x2,_0x4a2094['length'])[_0x1a6a45('0x136')](',');}break;case _0x1a6a45('0x1c22'):{var _0x4f8494=_0x238c1f[_0x1a6a45('0xbdd')]['appdata'][_0x1a6a45('0x1af5')](',');_0x238c1f[_0x1a6a45('0xbdd')][_0x1a6a45('0x21c6')]=_0x4f8494[0x0],_0x238c1f[_0x1a6a45('0xbdd')][_0x1a6a45('0x797')]=_0x4f8494[0x1],_0x238c1f['queue'][_0x1a6a45('0x20a3')]=_0x4f8494[0x2],_0x238c1f[_0x1a6a45('0xbdd')]['botname']=_0x4f8494[0x3],_0x238c1f[_0x1a6a45('0xbdd')][_0x1a6a45('0x1cce')]=_0x4f8494['slice'](0x4,_0x4f8494[_0x1a6a45('0x577')])[_0x1a6a45('0x136')](',');}break;case'autoreply':{var _0x4e0671=_0x238c1f[_0x1a6a45('0xbdd')][_0x1a6a45('0x23c2')][_0x1a6a45('0x1af5')](',');_0x238c1f[_0x1a6a45('0xbdd')][_0x1a6a45('0x13b6')]=isNaN(_0x4e0671[0x0])?_0x4e0671[0x0]:parseInt(_0x4e0671[0x0],0xa),_0x238c1f[_0x1a6a45('0xbdd')][_0x1a6a45('0xc1e')]=_0x4e0671['slice'](0x1,_0x4e0671[_0x1a6a45('0x577')])[_0x1a6a45('0x136')](',');}break;case'message':_0x238c1f[_0x1a6a45('0xbdd')][_0x1a6a45('0xc1e')]=_0x238c1f[_0x1a6a45('0xbdd')]['appdata'];break;case _0x1a6a45('0x1125'):_0x238c1f['queue']['name']=_0x238c1f[_0x1a6a45('0xbdd')]['appdata'][_0x1a6a45('0x1af5')]('=')[0x0],_0x238c1f[_0x1a6a45('0xbdd')][_0x1a6a45('0x2228')]=_0x238c1f['queue'][_0x1a6a45('0x23c2')]['split']('=')[0x1];break;case _0x1a6a45('0x2356'):_0x238c1f[_0x1a6a45('0xbdd')]['project']=_0x238c1f['queue'][_0x1a6a45('0x23c2')];break;default:{var _0x2a55e8=_0x238c1f[_0x1a6a45('0xbdd')][_0x1a6a45('0x23c2')]['split'](',');_0x238c1f[_0x1a6a45('0xbdd')]['queue']=_0x86640f()[_0x1a6a45('0x23aa')](_0x2a55e8[0x0])?_0x2a55e8[0x0]:isNaN(_0x2a55e8[0x0])?_0x2a55e8[0x0]:parseInt(_0x2a55e8[0x0],0xa),_0x238c1f['queue']['timeout']=_0x86640f()[_0x1a6a45('0x23aa')](_0x2a55e8[0x1])?_0x2a55e8[0x1]:isNaN(_0x2a55e8[0x1])?_0x2a55e8[0x1]:parseInt(_0x2a55e8[0x1],0xa);}break;}else _0x238c1f[_0x1a6a45('0xbdd')]['queue']=0x12c,_0x238c1f[_0x1a6a45('0xbdd')][_0x1a6a45('0x2133')]=0x12c;_0x238c1f[_0x1a6a45('0xbdd')][_0x1a6a45('0x7fa')]&&_0x238c1f[_0x1a6a45('0xbdd')]['type']['toLowerCase']()==='outbound'&&_0x238c1f[_0x1a6a45('0xbdd')]['appType'][_0x1a6a45('0xac2')]()===_0x1a6a45('0x2363')&&(_0x238c1f['queue']['prefix']=_0x238c1f[_0x1a6a45('0xbdd')][_0x1a6a45('0x159e')]?_0x238c1f[_0x1a6a45('0xbdd')][_0x1a6a45('0x159e')][_0x1a6a45('0x1af5')]('$')[0x0]:undefined,_0x238c1f[_0x1a6a45('0xbdd')][_0x1a6a45('0x26f7')]=_0x238c1f[_0x1a6a45('0xbdd')][_0x1a6a45('0x1f5a')]?_0x1a6a45('0x587')+_0x238c1f[_0x1a6a45('0xbdd')][_0x1a6a45('0x1f5a')]:undefined);_0x238c1f[_0x1a6a45('0xaa7')]=_0xb3fc4b,_0x238c1f[_0x1a6a45('0x167')]=_0x3e6288,_0x1359c1[_0x1a6a45('0x21de')](_0x1a6a45('0x1bd8'))?_0x38e8d4[_0x1a6a45('0x1f8f')][_0x1a6a45('0x595')]({'fields':_0x1a6a45('0xfa'),'sort':_0x1a6a45('0x19fe'),'nolimit':'true'})[_0x1a6a45('0x1376')][_0x1a6a45('0x21ad')](function(_0x4a5dec){var _0x135721=_0x1a6a45;_0x238c1f[_0x135721('0xb7a')]=_0x4a5dec[_0x135721('0x1b33')]||[];})[_0x1a6a45('0x1c1d')](function(_0x12abb8){var _0x2b0f02=_0x1a6a45;_0x14d46e['error']({'title':_0x12abb8['status']?_0x2b0f02('0x22d')+_0x12abb8[_0x2b0f02('0x209')]+'\x20-\x20'+_0x12abb8[_0x2b0f02('0x1808')]:_0x2b0f02('0x1612'),'msg':_0x12abb8[_0x2b0f02('0x11c2')]?JSON[_0x2b0f02('0x25e')](_0x12abb8[_0x2b0f02('0x11c2')]):_0x12abb8[_0x2b0f02('0x174f')]()});}):_0x38e8d4[_0x1a6a45('0x1f8f')][_0x1a6a45('0x595')]({'fields':_0x1a6a45('0xfa'),'sort':_0x1a6a45('0x19fe'),'nolimit':'true'})[_0x1a6a45('0x1376')][_0x1a6a45('0x21ad')](function(_0x161988){var _0x3badaa=_0x1a6a45;_0x238c1f[_0x3badaa('0xb7a')]=_0x161988[_0x3badaa('0x1b33')]||[];})[_0x1a6a45('0x21ad')](function(){var _0xd0666b=_0x1a6a45;return _0x38e8d4[_0xd0666b('0xab4')][_0xd0666b('0x595')]({'userProfileId':_0x238c1f[_0xd0666b('0x123f')][_0xd0666b('0x1618')],'sectionId':0x836})['$promise'];})['then'](function(_0x1a51b0){var _0x1b3214=_0x1a6a45,_0x1e3199=_0x1a51b0&&_0x1a51b0['rows']?_0x1a51b0[_0x1b3214('0x1b33')][0x0]:null;if(!_0x1e3199){var _0x3433ee=[],_0x43de61=null;_0x238c1f[_0x1b3214('0xbdd')]&&(_0x43de61=_0x86640f()[_0x1b3214('0x1d2e')](_0x238c1f[_0x1b3214('0xb7a')],{'name':_0x238c1f[_0x1b3214('0xbdd')][_0x1b3214('0xbdd')]}));for(var _0x2da41b=0x0;_0x2da41b<_0x238c1f['queues'][_0x1b3214('0x577')];_0x2da41b++){_0x43de61&&_0x238c1f[_0x1b3214('0xb7a')][_0x2da41b]['id']===_0x43de61['id']&&(_0x238c1f['queues'][_0x2da41b][_0x1b3214('0xba')]=![],_0x3433ee[_0x1b3214('0x206c')](_0x238c1f[_0x1b3214('0xb7a')][_0x2da41b]));}_0x238c1f['queues']=_0x3433ee;}else{if(!_0x1e3199[_0x1b3214('0x80c')])return _0x38e8d4[_0x1b3214('0x185e')][_0x1b3214('0x595')]({'sectionId':_0x1e3199['id']})['$promise'][_0x1b3214('0x21ad')](function(_0x42e0d2){var _0x2689f9=_0x1b3214,_0xd6b381=_0x86640f()[_0x2689f9('0x26c3')](_0x42e0d2['rows'],function(_0x12fd5b){var _0x2612fc=_0x2689f9;return _0x86640f()[_0x2612fc('0x1d2e')](_0x238c1f[_0x2612fc('0xb7a')],{'id':_0x12fd5b['resourceId']});}),_0x3a2f73=null;_0x238c1f[_0x2689f9('0xbdd')]&&(_0x3a2f73=_0x86640f()[_0x2689f9('0x1d2e')](_0x238c1f['queues'],{'name':_0x238c1f[_0x2689f9('0xbdd')]['queue']}));if(_0x3a2f73&&!_0x86640f()[_0x2689f9('0x2664')](_0xd6b381,['id',_0x3a2f73['id']])){var _0x40eff8=_0x86640f()['find'](_0x238c1f[_0x2689f9('0xb7a')],{'id':_0x3a2f73['id']});_0x40eff8['canSelect']=![],_0xd6b381[_0x2689f9('0x206c')](_0x40eff8);}_0x238c1f['queues']=_0xd6b381;});}})[_0x1a6a45('0x1c1d')](function(_0x47bc53){var _0x4f87b1=_0x1a6a45;_0x14d46e[_0x4f87b1('0x2092')]({'title':_0x47bc53[_0x4f87b1('0x209')]?'API:'+_0x47bc53[_0x4f87b1('0x209')]+_0x4f87b1('0xa99')+_0x47bc53[_0x4f87b1('0x1808')]:_0x4f87b1('0x1b46'),'msg':_0x47bc53[_0x4f87b1('0x11c2')]?JSON[_0x4f87b1('0x25e')](_0x47bc53[_0x4f87b1('0x11c2')]):_0x47bc53['toString']()});});function _0xb3fc4b(){var _0x595b2e=_0x1a6a45;_0x238c1f[_0x595b2e('0x1a69')]=[];var _0x28ba7c=[];_0x238c1f['queue'][_0x595b2e('0x7fa')]&&_0x238c1f[_0x595b2e('0xbdd')][_0x595b2e('0x7fa')][_0x595b2e('0xac2')]()===_0x595b2e('0x2300')&&_0x238c1f[_0x595b2e('0xbdd')][_0x595b2e('0x522')]===_0x595b2e('0x4ea')&&(_0x238c1f[_0x595b2e('0xbdd')][_0x595b2e('0x159e')]=_0x53cc33[_0x595b2e('0x988')]?(_0x238c1f['queue'][_0x595b2e('0x1995')]||'')+'${EXTEN:'+_0x53cc33[_0x595b2e('0x988')]+'}':(_0x238c1f[_0x595b2e('0xbdd')]['prefix']||'')+_0x595b2e('0x2560'),_0x53cc33[_0x595b2e('0xad1')]!==_0x595b2e('0x983')?_0x238c1f[_0x595b2e('0xbdd')][_0x595b2e('0x26a0')]['indexOf'](_0x595b2e('0x478'))<0x0&&(_0x238c1f[_0x595b2e('0xbdd')]['options']+=_0x595b2e('0x478')):_0x238c1f[_0x595b2e('0xbdd')][_0x595b2e('0x26a0')]=_0x238c1f[_0x595b2e('0xbdd')][_0x595b2e('0x26a0')][_0x595b2e('0x16e4')](_0x595b2e('0x478'),''));var _0x154d6a=_0x86640f()['find'](_0x238c1f[_0x595b2e('0xb7a')],{'name':_0x238c1f[_0x595b2e('0xbdd')][_0x595b2e('0xbdd')]});_0x154d6a&&(_0x238c1f[_0x595b2e('0xbdd')][_0x86640f()['capitalize'](_0x595b2e('0x1ad4'))+'QueueId']=_0x154d6a['id']);if(_0x238c1f[_0x595b2e('0xbdd')][_0x595b2e('0x522')]&&_0x238c1f['queue'][_0x595b2e('0x522')]==='custom'){}else switch((_0x238c1f[_0x595b2e('0xbdd')][_0x595b2e('0x1f94')]||_0x238c1f[_0x595b2e('0xbdd')][_0x595b2e('0x522')])[_0x595b2e('0xac2')]()){case _0x595b2e('0x1125'):_0x238c1f['queue'][_0x595b2e('0x23c2')]=_0x238c1f[_0x595b2e('0xbdd')][_0x595b2e('0x19fe')]+'='+_0x238c1f['queue']['value'];break;case _0x595b2e('0xf50'):break;default:_0x28ba7c[0x0]=_0x238c1f[_0x595b2e('0xbdd')]['queue'],_0x28ba7c[0x1]=_0x238c1f[_0x595b2e('0xbdd')][_0x595b2e('0x2133')],_0x238c1f['queue'][_0x595b2e('0x23c2')]=_0x28ba7c[_0x595b2e('0x136')](',');}_0x3e6288(_0x238c1f[_0x595b2e('0xbdd')]);}function _0x3e6288(_0x1580bd){_0x5035cd['hide'](_0x1580bd);}}const _0x8ba70f=_0xedc4d9;_0x2d99a8[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x1b9c'),_0x3877e3('0x1b5d'),_0x3877e3('0xccd'),'Auth',_0x3877e3('0x5ed')];function _0x2d99a8(_0x28886f,_0x47246e,_0x33c4c7,_0x4328fd,_0x4c174f,_0x106bcc,_0x4cc260,_0x12c9d9){var _0x4e5b12=_0x3877e3,_0x160119=this;_0x160119[_0x4e5b12('0x123f')]=_0x4cc260[_0x4e5b12('0x15ed')](),_0x160119['errors']=[],_0x160119[_0x4e5b12('0x4b4')]='WHATSAPP.EDIT_'+(_0x4328fd[_0x4e5b12('0x522')]||_0x4328fd[_0x4e5b12('0x1f94')])['toUpperCase'](),_0x160119[_0x4e5b12('0x12b1')]=angular[_0x4e5b12('0xd75')](_0x4328fd),_0x160119[_0x4e5b12('0x5ed')]=_0x12c9d9,_0x160119[_0x4e5b12('0x126a')]={};if(_0x160119[_0x4e5b12('0x12b1')][_0x4e5b12('0x23c2')])switch(_0x160119[_0x4e5b12('0x12b1')][_0x4e5b12('0x522')]?_0x160119[_0x4e5b12('0x12b1')][_0x4e5b12('0x522')][_0x4e5b12('0xac2')]():_0x160119['system'][_0x4e5b12('0x1f94')]['toLowerCase']()){case'custom':break;case _0x4e5b12('0xc72'):{var _0xdc31ed=_0x160119['system'][_0x4e5b12('0x23c2')][_0x4e5b12('0x1af5')](',');_0x160119['system']['key']=_0xdc31ed[0x0],_0x160119[_0x4e5b12('0x12b1')]['language']=_0xdc31ed[0x1],_0x160119[_0x4e5b12('0x12b1')][_0x4e5b12('0x1cce')]=_0xdc31ed['slice'](0x2,_0xdc31ed[_0x4e5b12('0x577')])[_0x4e5b12('0x136')](',');}break;case _0x4e5b12('0x1c22'):{var _0x1b78d1=_0x160119[_0x4e5b12('0x12b1')][_0x4e5b12('0x23c2')]['split'](',');_0x160119[_0x4e5b12('0x12b1')]['accesskeyid']=_0x1b78d1[0x0],_0x160119[_0x4e5b12('0x12b1')][_0x4e5b12('0x797')]=_0x1b78d1[0x1],_0x160119[_0x4e5b12('0x12b1')][_0x4e5b12('0x20a3')]=_0x1b78d1[0x2],_0x160119[_0x4e5b12('0x12b1')][_0x4e5b12('0x15fe')]=_0x1b78d1[0x3],_0x160119[_0x4e5b12('0x12b1')][_0x4e5b12('0x1cce')]=_0x1b78d1[_0x4e5b12('0xb3d')](0x4,_0x1b78d1['length'])[_0x4e5b12('0x136')](',');}break;case _0x4e5b12('0x1b98'):{var _0x19b236=_0x160119[_0x4e5b12('0x12b1')][_0x4e5b12('0x23c2')][_0x4e5b12('0x1af5')](',');_0x160119[_0x4e5b12('0x12b1')]['times']=isNaN(_0x19b236[0x0])?_0x19b236[0x0]:parseInt(_0x19b236[0x0],0xa),_0x160119[_0x4e5b12('0x12b1')][_0x4e5b12('0xc1e')]=_0x19b236[_0x4e5b12('0xb3d')](0x1,_0x19b236[_0x4e5b12('0x577')])[_0x4e5b12('0x136')](',');}break;case _0x4e5b12('0x1224'):_0x160119[_0x4e5b12('0x12b1')]['text']=_0x160119[_0x4e5b12('0x12b1')][_0x4e5b12('0x23c2')];break;case _0x4e5b12('0x1125'):_0x160119[_0x4e5b12('0x12b1')][_0x4e5b12('0x19fe')]=_0x160119['system']['appdata'][_0x4e5b12('0x1af5')]('=')[0x0],_0x160119[_0x4e5b12('0x12b1')][_0x4e5b12('0x2228')]=_0x160119[_0x4e5b12('0x12b1')][_0x4e5b12('0x23c2')]['split']('=')[0x1];break;case _0x4e5b12('0x2356'):_0x160119[_0x4e5b12('0x12b1')][_0x4e5b12('0xbf8')]=_0x160119[_0x4e5b12('0x12b1')]['appdata'];break;default:{var _0xb09acd=_0x160119[_0x4e5b12('0x12b1')][_0x4e5b12('0x23c2')]['split'](',');_0x160119[_0x4e5b12('0x12b1')][_0x4e5b12('0xbf3')]=_0x86640f()[_0x4e5b12('0x23aa')](_0xb09acd[0x0])?_0xb09acd[0x0]:isNaN(_0xb09acd[0x0])?_0xb09acd[0x0]:parseInt(_0xb09acd[0x0],0xa),_0x160119[_0x4e5b12('0x12b1')][_0x4e5b12('0x25bb')]=_0x86640f()[_0x4e5b12('0x23aa')](_0xb09acd[0x1])?_0xb09acd[0x1]:isNaN(_0xb09acd[0x1])?_0xb09acd[0x1]:parseInt(_0xb09acd[0x1],0xa);}break;}else _0x160119['system'][_0x4e5b12('0x25bb')]='';_0x160119[_0x4e5b12('0x12b1')]['type']&&_0x160119[_0x4e5b12('0x12b1')][_0x4e5b12('0x7fa')][_0x4e5b12('0xac2')]()===_0x4e5b12('0x2300')&&_0x160119[_0x4e5b12('0x12b1')]['appType'][_0x4e5b12('0xac2')]()===_0x4e5b12('0x2363')&&(_0x160119[_0x4e5b12('0x12b1')][_0x4e5b12('0x1995')]=_0x160119[_0x4e5b12('0x12b1')][_0x4e5b12('0x159e')]?_0x160119[_0x4e5b12('0x12b1')][_0x4e5b12('0x159e')]['split']('$')[0x0]:undefined,_0x160119[_0x4e5b12('0x12b1')]['callerId']=_0x160119[_0x4e5b12('0x12b1')][_0x4e5b12('0x1f5a')]?_0x4e5b12('0x587')+_0x160119[_0x4e5b12('0x12b1')][_0x4e5b12('0x1f5a')]:undefined);_0x160119[_0x4e5b12('0xaa7')]=_0x2691fe,_0x160119['closeDialog']=_0x512c62,_0x4cc260['hasRole']('admin')?_0x106bcc['variable']['get']({'fields':_0x4e5b12('0x1aa8'),'sort':_0x4e5b12('0x19fe'),'nolimit':_0x4e5b12('0x19bd')})[_0x4e5b12('0x1376')][_0x4e5b12('0x21ad')](function(_0x5608c6){var _0x574c57=_0x4e5b12;_0x160119[_0x574c57('0x142d')]=_0x5608c6[_0x574c57('0x1b33')]||[];})[_0x4e5b12('0x1c1d')](function(_0x522104){var _0x10e655=_0x4e5b12;_0x33c4c7[_0x10e655('0x2092')]({'title':_0x522104[_0x10e655('0x209')]?_0x10e655('0x22d')+_0x522104[_0x10e655('0x209')]+_0x10e655('0xa99')+_0x522104['statusText']:_0x10e655('0xc0c'),'msg':_0x522104[_0x10e655('0x11c2')]?JSON[_0x10e655('0x25e')](_0x522104[_0x10e655('0x11c2')]):_0x522104[_0x10e655('0x174f')]()});}):_0x106bcc[_0x4e5b12('0x25bb')][_0x4e5b12('0x595')]({'fields':_0x4e5b12('0x1aa8'),'sort':'name','nolimit':_0x4e5b12('0x19bd')})[_0x4e5b12('0x1376')][_0x4e5b12('0x21ad')](function(_0x224bdf){var _0x2d34df=_0x4e5b12;_0x160119[_0x2d34df('0x142d')]=_0x224bdf[_0x2d34df('0x1b33')]||[];})[_0x4e5b12('0x21ad')](function(){var _0x59e651=_0x4e5b12;return _0x106bcc[_0x59e651('0xab4')][_0x59e651('0x595')]({'userProfileId':_0x160119[_0x59e651('0x123f')]['userProfileId'],'sectionId':0x3f4})[_0x59e651('0x1376')];})[_0x4e5b12('0x21ad')](function(_0x51340f){var _0x24d3f7=_0x4e5b12,_0xd5d529=_0x51340f&&_0x51340f[_0x24d3f7('0x1b33')]?_0x51340f[_0x24d3f7('0x1b33')][0x0]:null;if(!_0xd5d529){var _0x510d42=[],_0x2346c8=null;_0x160119['system']&&(_0x2346c8=_0x86640f()[_0x24d3f7('0x1d2e')](_0x160119['variables'],{'name':_0x160119['system']['variable']}));for(var _0x2ac3d8=0x0;_0x2ac3d8<_0x160119['variables'][_0x24d3f7('0x577')];_0x2ac3d8++){_0x2346c8&&_0x160119[_0x24d3f7('0x142d')][_0x2ac3d8]['id']===_0x2346c8['id']&&(_0x160119[_0x24d3f7('0x142d')][_0x2ac3d8]['canSelect']=![],_0x510d42[_0x24d3f7('0x206c')](_0x160119[_0x24d3f7('0x142d')][_0x2ac3d8]));}_0x160119[_0x24d3f7('0x142d')]=_0x510d42;}else{if(!_0xd5d529['autoAssociation'])return _0x106bcc[_0x24d3f7('0x185e')]['get']({'sectionId':_0xd5d529['id']})[_0x24d3f7('0x1376')][_0x24d3f7('0x21ad')](function(_0x5f10c8){var _0x1140c6=_0x24d3f7,_0x1c3ddb=_0x86640f()['map'](_0x5f10c8[_0x1140c6('0x1b33')],function(_0x53dda8){var _0x4c68e8=_0x1140c6;return _0x86640f()[_0x4c68e8('0x1d2e')](_0x160119[_0x4c68e8('0x142d')],{'id':_0x53dda8[_0x4c68e8('0x675')]});}),_0x4577ca=null;_0x160119[_0x1140c6('0x12b1')]&&(_0x4577ca=_0x86640f()['find'](_0x160119[_0x1140c6('0x142d')],{'name':_0x160119[_0x1140c6('0x12b1')]['variable']}));if(_0x4577ca&&!_0x86640f()[_0x1140c6('0x2664')](_0x1c3ddb,['id',_0x4577ca['id']])){var _0x5810bb=_0x86640f()[_0x1140c6('0x1d2e')](_0x160119[_0x1140c6('0x142d')],{'id':_0x4577ca['id']});_0x5810bb[_0x1140c6('0xba')]=![],_0x1c3ddb[_0x1140c6('0x206c')](_0x5810bb);}_0x160119[_0x1140c6('0x142d')]=_0x1c3ddb;});}})['catch'](function(_0x3b63c1){var _0x36283b=_0x4e5b12;_0x33c4c7[_0x36283b('0x2092')]({'title':_0x3b63c1['status']?_0x36283b('0x22d')+_0x3b63c1[_0x36283b('0x209')]+'\x20-\x20'+_0x3b63c1['statusText']:_0x36283b('0x1a26'),'msg':_0x3b63c1['data']?JSON[_0x36283b('0x25e')](_0x3b63c1[_0x36283b('0x11c2')]):_0x3b63c1[_0x36283b('0x174f')]()});});function _0x2691fe(){var _0x400095=_0x4e5b12;_0x160119[_0x400095('0x1a69')]=[];var _0x1fa24b=[];_0x160119[_0x400095('0x12b1')][_0x400095('0x7fa')]&&_0x160119['system'][_0x400095('0x7fa')]['toLowerCase']()==='outbound'&&_0x160119[_0x400095('0x12b1')][_0x400095('0x522')]===_0x400095('0x4ea')&&(_0x160119[_0x400095('0x12b1')]['phone']=_0x4c174f['cutdigits']?(_0x160119[_0x400095('0x12b1')][_0x400095('0x1995')]||'')+_0x400095('0x349')+_0x4c174f[_0x400095('0x988')]+'}':(_0x160119[_0x400095('0x12b1')][_0x400095('0x1995')]||'')+_0x400095('0x2560'),_0x4c174f[_0x400095('0xad1')]!=='none'?_0x160119[_0x400095('0x12b1')][_0x400095('0x26a0')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x160119[_0x400095('0x12b1')][_0x400095('0x26a0')]+=_0x400095('0x478')):_0x160119[_0x400095('0x12b1')][_0x400095('0x26a0')]=_0x160119[_0x400095('0x12b1')]['options'][_0x400095('0x16e4')](_0x400095('0x478'),''));if(_0x160119[_0x400095('0x12b1')][_0x400095('0x522')]&&_0x160119[_0x400095('0x12b1')][_0x400095('0x522')]===_0x400095('0xf50')){}else switch((_0x160119[_0x400095('0x12b1')][_0x400095('0x1f94')]||_0x160119[_0x400095('0x12b1')][_0x400095('0x522')])[_0x400095('0xac2')]()){case _0x400095('0x1125'):_0x160119['system'][_0x400095('0x23c2')]=_0x160119[_0x400095('0x12b1')]['name']+'='+_0x160119[_0x400095('0x12b1')]['value'];break;case'custom':break;default:_0x1fa24b[0x0]=_0x160119[_0x400095('0x12b1')][_0x400095('0xbf3')],_0x1fa24b[0x1]=_0x160119['system'][_0x400095('0x25bb')],_0x160119[_0x400095('0x12b1')][_0x400095('0x23c2')]=_0x1fa24b[_0x400095('0x136')](',');}_0x512c62(_0x160119[_0x400095('0x12b1')]);}function _0x512c62(_0x24b2eb){var _0x27d8f8=_0x4e5b12;_0x28886f[_0x27d8f8('0x1c24')](_0x24b2eb);}}const _0x2cf3b5=_0x2d99a8;_0x3d9033[_0x3877e3('0x1a81')]=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0x1b9c'),'whatsappAccount',_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x5ed')];function _0x3d9033(_0x387432,_0x8ab434,_0x309d54,_0x7f9ead,_0x4f4a85,_0x2c99b0,_0x3df684,_0x479187){var _0x3b1254=_0x3877e3,_0x3567bc=this;_0x3567bc['currentUser']=_0x3df684[_0x3b1254('0x15ed')](),_0x3567bc[_0x3b1254('0x1a69')]=[],_0x3567bc[_0x3b1254('0x4b4')]=_0x3b1254('0x1442')+(_0x7f9ead['appType']||_0x7f9ead['app'])[_0x3b1254('0x2e8')](),_0x3567bc[_0x3b1254('0x907')]=angular['copy'](_0x7f9ead),_0x3567bc[_0x3b1254('0x5ed')]=_0x479187,_0x3567bc['hasModulePermissions']={};if(_0x3567bc['tag'][_0x3b1254('0x23c2')])switch(_0x3567bc[_0x3b1254('0x907')]['appType']?_0x3567bc[_0x3b1254('0x907')]['appType']['toLowerCase']():_0x3567bc[_0x3b1254('0x907')]['app'][_0x3b1254('0xac2')]()){case'custom':break;case _0x3b1254('0xc72'):{var _0xb73711=_0x3567bc[_0x3b1254('0x907')][_0x3b1254('0x23c2')]['split'](',');_0x3567bc[_0x3b1254('0x907')]['key']=_0xb73711[0x0],_0x3567bc[_0x3b1254('0x907')][_0x3b1254('0x10f')]=_0xb73711[0x1],_0x3567bc[_0x3b1254('0x907')][_0x3b1254('0x1cce')]=_0xb73711[_0x3b1254('0xb3d')](0x2,_0xb73711[_0x3b1254('0x577')])[_0x3b1254('0x136')](',');}break;case _0x3b1254('0x1c22'):{var _0x5f1fc1=_0x3567bc[_0x3b1254('0x907')][_0x3b1254('0x23c2')]['split'](',');_0x3567bc['tag'][_0x3b1254('0x21c6')]=_0x5f1fc1[0x0],_0x3567bc['tag']['secretaccesskey']=_0x5f1fc1[0x1],_0x3567bc[_0x3b1254('0x907')]['lexregion']=_0x5f1fc1[0x2],_0x3567bc[_0x3b1254('0x907')][_0x3b1254('0x15fe')]=_0x5f1fc1[0x3],_0x3567bc['tag'][_0x3b1254('0x1cce')]=_0x5f1fc1[_0x3b1254('0xb3d')](0x4,_0x5f1fc1[_0x3b1254('0x577')])[_0x3b1254('0x136')](',');}break;case _0x3b1254('0x1b98'):{var _0x5ed869=_0x3567bc[_0x3b1254('0x907')][_0x3b1254('0x23c2')][_0x3b1254('0x1af5')](',');_0x3567bc[_0x3b1254('0x907')][_0x3b1254('0x13b6')]=isNaN(_0x5ed869[0x0])?_0x5ed869[0x0]:parseInt(_0x5ed869[0x0],0xa),_0x3567bc[_0x3b1254('0x907')][_0x3b1254('0xc1e')]=_0x5ed869[_0x3b1254('0xb3d')](0x1,_0x5ed869[_0x3b1254('0x577')])[_0x3b1254('0x136')](',');}break;case _0x3b1254('0x1224'):_0x3567bc[_0x3b1254('0x907')][_0x3b1254('0xc1e')]=_0x3567bc[_0x3b1254('0x907')][_0x3b1254('0x23c2')];break;case _0x3b1254('0x1125'):_0x3567bc[_0x3b1254('0x907')][_0x3b1254('0x19fe')]=_0x3567bc[_0x3b1254('0x907')][_0x3b1254('0x23c2')][_0x3b1254('0x1af5')]('=')[0x0],_0x3567bc[_0x3b1254('0x907')]['value']=_0x3567bc[_0x3b1254('0x907')][_0x3b1254('0x23c2')][_0x3b1254('0x1af5')]('=')[0x1];break;case _0x3b1254('0x2356'):_0x3567bc[_0x3b1254('0x907')][_0x3b1254('0xbf8')]=_0x3567bc['tag'][_0x3b1254('0x23c2')];break;default:{var _0x77471f=_0x3567bc[_0x3b1254('0x907')][_0x3b1254('0x23c2')][_0x3b1254('0x1af5')](',');_0x3567bc[_0x3b1254('0x907')][_0x3b1254('0x907')]=_0x86640f()[_0x3b1254('0x23aa')](_0x77471f[0x0])?_0x77471f[0x0]:isNaN(_0x77471f[0x0])?_0x77471f[0x0]:parseInt(_0x77471f[0x0],0xa);}break;}else{}_0x3567bc[_0x3b1254('0x907')][_0x3b1254('0x7fa')]&&_0x3567bc[_0x3b1254('0x907')][_0x3b1254('0x7fa')][_0x3b1254('0xac2')]()===_0x3b1254('0x2300')&&_0x3567bc[_0x3b1254('0x907')][_0x3b1254('0x522')]['toLowerCase']()===_0x3b1254('0x2363')&&(_0x3567bc[_0x3b1254('0x907')][_0x3b1254('0x1995')]=_0x3567bc[_0x3b1254('0x907')][_0x3b1254('0x159e')]?_0x3567bc['tag'][_0x3b1254('0x159e')][_0x3b1254('0x1af5')]('$')[0x0]:undefined,_0x3567bc['tag'][_0x3b1254('0x26f7')]=_0x3567bc[_0x3b1254('0x907')][_0x3b1254('0x1f5a')]?_0x3b1254('0x587')+_0x3567bc[_0x3b1254('0x907')][_0x3b1254('0x1f5a')]:undefined);_0x3567bc['saveWhatsappAccountApp']=_0x41aaa4,_0x3567bc['closeDialog']=_0x44603e,_0x3df684[_0x3b1254('0x21de')](_0x3b1254('0x1bd8'))?_0x2c99b0[_0x3b1254('0x907')][_0x3b1254('0x595')]({'fields':'id,name','sort':_0x3b1254('0x19fe'),'nolimit':_0x3b1254('0x19bd')})[_0x3b1254('0x1376')][_0x3b1254('0x21ad')](function(_0x33a530){var _0x44d4cb=_0x3b1254;_0x3567bc[_0x44d4cb('0x1889')]=_0x33a530[_0x44d4cb('0x1b33')]||[];})[_0x3b1254('0x1c1d')](function(_0x21c560){var _0xc9b734=_0x3b1254;_0x309d54[_0xc9b734('0x2092')]({'title':_0x21c560[_0xc9b734('0x209')]?_0xc9b734('0x22d')+_0x21c560['status']+_0xc9b734('0xa99')+_0x21c560['statusText']:_0xc9b734('0xcd4'),'msg':_0x21c560[_0xc9b734('0x11c2')]?JSON[_0xc9b734('0x25e')](_0x21c560[_0xc9b734('0x11c2')]):_0x21c560[_0xc9b734('0x174f')]()});}):_0x2c99b0[_0x3b1254('0x907')]['get']({'fields':_0x3b1254('0x1aa8'),'sort':_0x3b1254('0x19fe'),'nolimit':_0x3b1254('0x19bd')})[_0x3b1254('0x1376')]['then'](function(_0xca7123){_0x3567bc['tags']=_0xca7123['rows']||[];})[_0x3b1254('0x21ad')](function(){var _0x382fc2=_0x3b1254;return _0x2c99b0[_0x382fc2('0xab4')][_0x382fc2('0x595')]({'userProfileId':_0x3567bc['currentUser'][_0x382fc2('0x1618')],'sectionId':0x3f0})['$promise'];})[_0x3b1254('0x21ad')](function(_0x4a731c){var _0x42817b=_0x3b1254,_0xe91582=_0x4a731c&&_0x4a731c['rows']?_0x4a731c[_0x42817b('0x1b33')][0x0]:null;if(!_0xe91582){var _0x37d223=[],_0x50a483=null;_0x3567bc[_0x42817b('0x907')]&&(_0x50a483=_0x86640f()[_0x42817b('0x1d2e')](_0x3567bc['tags'],{'name':_0x3567bc['tag']['tag']}));for(var _0x4591f0=0x0;_0x4591f0<_0x3567bc[_0x42817b('0x1889')][_0x42817b('0x577')];_0x4591f0++){_0x50a483&&_0x3567bc[_0x42817b('0x1889')][_0x4591f0]['id']===_0x50a483['id']&&(_0x3567bc[_0x42817b('0x1889')][_0x4591f0][_0x42817b('0xba')]=![],_0x37d223[_0x42817b('0x206c')](_0x3567bc['tags'][_0x4591f0]));}_0x3567bc['tags']=_0x37d223;}else{if(!_0xe91582['autoAssociation'])return _0x2c99b0[_0x42817b('0x185e')][_0x42817b('0x595')]({'sectionId':_0xe91582['id']})[_0x42817b('0x1376')][_0x42817b('0x21ad')](function(_0x1f69bc){var _0x3078d0=_0x42817b,_0x31acfb=_0x86640f()[_0x3078d0('0x26c3')](_0x1f69bc[_0x3078d0('0x1b33')],function(_0x268fcb){var _0x12cfc0=_0x3078d0;return _0x86640f()[_0x12cfc0('0x1d2e')](_0x3567bc[_0x12cfc0('0x1889')],{'id':_0x268fcb['resourceId']});}),_0x36f1b2=null;_0x3567bc['tag']&&(_0x36f1b2=_0x86640f()[_0x3078d0('0x1d2e')](_0x3567bc[_0x3078d0('0x1889')],{'name':_0x3567bc[_0x3078d0('0x907')]['tag']}));if(_0x36f1b2&&!_0x86640f()['some'](_0x31acfb,['id',_0x36f1b2['id']])){var _0x12ad8a=_0x86640f()[_0x3078d0('0x1d2e')](_0x3567bc[_0x3078d0('0x1889')],{'id':_0x36f1b2['id']});_0x12ad8a[_0x3078d0('0xba')]=![],_0x31acfb[_0x3078d0('0x206c')](_0x12ad8a);}_0x3567bc[_0x3078d0('0x1889')]=_0x31acfb;});}})['catch'](function(_0x4d7f34){var _0x54c02b=_0x3b1254;_0x309d54[_0x54c02b('0x2092')]({'title':_0x4d7f34['status']?'API:'+_0x4d7f34[_0x54c02b('0x209')]+'\x20-\x20'+_0x4d7f34[_0x54c02b('0x1808')]:'SYSTEM:GETtags','msg':_0x4d7f34['data']?JSON[_0x54c02b('0x25e')](_0x4d7f34['data']):_0x4d7f34[_0x54c02b('0x174f')]()});});function _0x41aaa4(){var _0x17c596=_0x3b1254;_0x3567bc['errors']=[];var _0xa7b17a=[];_0x3567bc['tag'][_0x17c596('0x7fa')]&&_0x3567bc[_0x17c596('0x907')][_0x17c596('0x7fa')][_0x17c596('0xac2')]()===_0x17c596('0x2300')&&_0x3567bc[_0x17c596('0x907')][_0x17c596('0x522')]===_0x17c596('0x4ea')&&(_0x3567bc['tag'][_0x17c596('0x159e')]=_0x4f4a85[_0x17c596('0x988')]?(_0x3567bc[_0x17c596('0x907')]['prefix']||'')+_0x17c596('0x349')+_0x4f4a85[_0x17c596('0x988')]+'}':(_0x3567bc[_0x17c596('0x907')][_0x17c596('0x1995')]||'')+_0x17c596('0x2560'),_0x4f4a85['recordingFormat']!==_0x17c596('0x983')?_0x3567bc[_0x17c596('0x907')]['options'][_0x17c596('0x2004')](_0x17c596('0x478'))<0x0&&(_0x3567bc[_0x17c596('0x907')]['options']+=_0x17c596('0x478')):_0x3567bc[_0x17c596('0x907')][_0x17c596('0x26a0')]=_0x3567bc['tag']['options'][_0x17c596('0x16e4')](_0x17c596('0x478'),''));var _0xbe6cf4=_0x86640f()[_0x17c596('0x1d2e')](_0x3567bc[_0x17c596('0x1889')],{'name':_0x3567bc[_0x17c596('0x907')][_0x17c596('0x907')]});_0xbe6cf4&&(_0x3567bc['tag']['TagId']=_0xbe6cf4['id']);if(_0x3567bc[_0x17c596('0x907')][_0x17c596('0x522')]&&_0x3567bc[_0x17c596('0x907')][_0x17c596('0x522')]===_0x17c596('0xf50')){}else switch((_0x3567bc[_0x17c596('0x907')]['app']||_0x3567bc[_0x17c596('0x907')][_0x17c596('0x522')])['toLowerCase']()){case _0x17c596('0x1125'):_0x3567bc[_0x17c596('0x907')][_0x17c596('0x23c2')]=_0x3567bc[_0x17c596('0x907')]['name']+'='+_0x3567bc[_0x17c596('0x907')][_0x17c596('0x2228')];break;case _0x17c596('0xf50'):break;default:_0xa7b17a[0x0]=_0x3567bc['tag']['tag'],_0x3567bc['tag'][_0x17c596('0x23c2')]=_0xa7b17a[_0x17c596('0x136')](',');}_0x44603e(_0x3567bc['tag']);}function _0x44603e(_0x13e69d){var _0x4d8697=_0x3b1254;_0x387432[_0x4d8697('0x1c24')](_0x13e69d);}}const _0x2ee8ea=_0x3d9033;_0xe7d79f[_0x3877e3('0x1a81')]=[_0x3877e3('0x26'),_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x2313'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x15bc')];function _0xe7d79f(_0x20a8e9,_0x352d93,_0x283ec9,_0xa5719b,_0x2a9233,_0x9befc2,_0x57c1a0,_0x3d2956,_0x304f28,_0xb24923,_0x5e1492){var _0x2fd8f9=_0x3877e3,_0x52793e=this;_0x52793e['currentUser']=_0x5e1492[_0x2fd8f9('0x15ed')](),_0x52793e['whatsappAccount']={},_0x52793e[_0x2fd8f9('0x1d6c')]={'count':0x0,'rows':[]},_0x52793e[_0x2fd8f9('0xf4e')]=[],_0x52793e[_0x2fd8f9('0x5ed')],_0x52793e[_0x2fd8f9('0x77')]={'read':_0x2fd8f9('0x27a'),'closed':_0x2fd8f9('0x27a'),'sort':_0x2fd8f9('0xfef'),'includeAll':_0x2fd8f9('0x19bd'),'limit':0xa,'page':0x1},_0x52793e[_0x2fd8f9('0x1d75')]=_0xf9073f,_0x52793e[_0x2fd8f9('0x15dc')]=_0x3b3467,_0x52793e[_0x2fd8f9('0x18dd')]=_0x3c13cf,_0x52793e[_0x2fd8f9('0xdb1')]=_0x29e6eb,_0x52793e['getWhatsappAccountInteractions']=_0x2fee64,_0x52793e['spywhatsappInteraction']=_0x36a6cb,_0x52793e[_0x2fd8f9('0x7e3')]=_0x53d19d,_0x52793e[_0x2fd8f9('0x1dd5')]=_0x3dd4e7,_0x52793e[_0x2fd8f9('0xb62')]=_0x19f816,_0x52793e[_0x2fd8f9('0x7ce')]=_0x944ba3;function _0xf9073f(_0x42423e,_0x3393fa){var _0xf8c3a3=_0x2fd8f9;_0x52793e['whatsappAccount']=_0x42423e,_0x52793e[_0xf8c3a3('0x5ed')]=typeof _0x3393fa!==_0xf8c3a3('0xddc')?_0x3393fa:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x52793e[_0xf8c3a3('0x77')][_0xf8c3a3('0x2127')]=_0x52793e[_0xf8c3a3('0x1b5d')]['id'],_0x52793e[_0xf8c3a3('0x2211')]={'fields':_0x3abcbd()},_0x4c3109();}function _0x4c3109(){var _0xa82ccd=_0x2fd8f9;return _0xb24923[_0xa82ccd('0x907')]['get']()[_0xa82ccd('0x1376')][_0xa82ccd('0x21ad')](function(_0x51e16f){var _0x3d47f5=_0xa82ccd;_0x52793e[_0x3d47f5('0x1889')]=_0x51e16f||{'count':0x0,'rows':[]};})[_0xa82ccd('0x21ad')](function(){var _0x43f9bf=_0xa82ccd;_0x52793e[_0x43f9bf('0x2255')]=_0x9d6092();});}function _0x9d6092(){var _0x30e785=_0x2fd8f9;return[{'name':_0x30e785('0x18a1'),'key':_0x30e785('0x23ae'),'type':_0x30e785('0x2457'),'label':_0x30e785('0x1d04')},{'name':_0x30e785('0x5d'),'key':_0x30e785('0x14ee'),'type':_0x30e785('0x2844'),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':_0x30e785('0x1799')},{'value':0x1,'translate':_0x30e785('0x629')},{'value':null,'translate':_0x30e785('0x1ee5')}]},{'name':'Status','key':'closed','type':_0x30e785('0x2844'),'label':_0x30e785('0x2204'),'customOptions':[{'value':0x0,'translate':_0x30e785('0x19e2')},{'value':0x1,'translate':_0x30e785('0x11d2')},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x30e785('0x1a44'),'key':'UserId','type':'select','label':_0x30e785('0x115d'),'customOptions':[{'value':_0x30e785('0x27a'),'translate':_0x30e785('0x1932')},{'value':undefined,'translate':_0x30e785('0x1ee5')}]},{'name':'Tag','key':_0x30e785('0x907'),'type':_0x30e785('0x91f'),'label':'DASHBOARDS.SELECT_TAG','options':_0x52793e[_0x30e785('0x1889')]['rows'],'placeholder':_0x30e785('0xb1c')}];}function _0x3abcbd(){var _0x122363=_0x2fd8f9;return[{'name':'Id','column':'id','type':_0x122363('0xed8')},{'name':'Contact','column':_0x122363('0x1d10'),'type':_0x122363('0x175c'),'options':{'searchFields':[_0x122363('0x992'),'lastName',_0x122363('0x2822')],'route':{'model':_0x122363('0x25dc'),'action':_0x122363('0x595'),'params':{'fields':_0x122363('0x2704'),'Contact':_0x122363('0x169e'),'nolimit':!![]}},'extraOperators':[_0x122363('0xb58')],'excludedOperators':['$ne']}},{'name':'Subject','column':_0x122363('0x32a'),'type':_0x122363('0xc1e'),'options':{'excludedOperators':[_0x122363('0x940'),_0x122363('0x3fe')]}},{'name':_0x122363('0x1108'),'column':_0x122363('0x11e5'),'type':_0x122363('0xc1e'),'options':{'excludedOperators':[_0x122363('0x940'),_0x122363('0x3fe')]}},{'name':_0x122363('0x843'),'column':_0x122363('0x14ba'),'type':_0x122363('0x2844'),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x122363('0x11d2')}],'options':{'excludedOperators':[_0x122363('0x3fe')]}},{'name':_0x122363('0x1a44'),'column':_0x122363('0x6e4'),'type':'autocomplete','options':{'table':'i','route':{'model':_0x122363('0x1775'),'action':_0x122363('0x595'),'params':{'role':_0x122363('0x2402'),'fields':_0x122363('0x2326'),'nolimit':!![]}},'searchFields':['fullname','name'],'extraOperators':[_0x122363('0xb58')],'excludedOperators':['$ne']}},{'name':_0x122363('0x557'),'column':_0x122363('0x295'),'type':_0x122363('0x91f'),'options':{'route':{'model':'tag','action':_0x122363('0x595'),'params':{'nolimit':!![]}},'excludedOperators':[_0x122363('0x23')]}},{'name':_0x122363('0x18a1'),'column':_0x122363('0x23ae'),'type':'date','options':{'excludedOperators':[_0x122363('0x3fe')]}},{'name':_0x122363('0x1715'),'column':'unreadMessages','type':_0x122363('0x2844'),'values':[{'id':0x1,'translate':_0x122363('0x629')},{'id':0x0,'translate':_0x122363('0x1799')}],'options':{'excludedOperators':[_0x122363('0x3fe')]}}];}function _0x53d19d(){var _0x405d77=_0x2fd8f9;_0x57c1a0[_0x405d77('0x853')]({'controller':_0x405d77('0xde1'),'controllerAs':'vm','templateUrl':_0x44f47e,'parent':angular[_0x405d77('0x1676')](_0x3d2956[_0x405d77('0x2452')]),'clickOutsideToClose':![],'locals':{'fields':_0x52793e[_0x405d77('0x2211')][_0x405d77('0x181e')],'color':undefined,'storagePath':_0x405d77('0xb6')},'fullscreen':!![]})[_0x405d77('0x21ad')](function(_0x1008d2){var _0x17a702=_0x405d77;_0x52793e[_0x17a702('0x77')][_0x17a702('0x24e7')]=_0x1008d2===![]?undefined:_0x1008d2;if(_0x52793e[_0x17a702('0x77')][_0x17a702('0x24e7')])_0x2fee64();else _0x1008d2===![]&&_0x2fee64();})[_0x405d77('0x1c1d')](function(_0x282d69){var _0x4f5bbf=_0x405d77;_0x304f28[_0x4f5bbf('0x2092')]({'title':_0x4f5bbf('0x1399'),'msg':_0x282d69[_0x4f5bbf('0x11c2')]?JSON[_0x4f5bbf('0x25e')](_0x282d69[_0x4f5bbf('0x11c2')][_0x4f5bbf('0x1224')]):_0x282d69[_0x4f5bbf('0x174f')]()});});}function _0x3c13cf(_0x23d327,_0x28964a,_0x3687df){var _0x57a53e=_0x2fd8f9;return _0xb24923[_0x57a53e('0xe4a')][_0x57a53e('0xb0')]({'id':_0x23d327['id'],'exists':!![],'attachments':_0x3687df})['$promise'][_0x57a53e('0x21ad')](function(_0x5d38ae){var _0x349131=_0x57a53e,_0x1954e3=[_0x5d38ae[_0x349131('0x3da')]],_0x50172e=_0x349131('0x1d23')+_0x23d327['id'],_0x2bdffe=new Blob(_0x1954e3,{'type':_0x5d38ae['type']});_0x50172e=_0x349131('0x6ca')+_0x23d327['id']+'.zip';var _0x39981b=window[_0x349131('0x27c3')]['createElement']('a');_0x39981b[_0x349131('0x127a')](_0x349131('0x69e'),URL[_0x349131('0x167b')](_0x2bdffe)),_0x39981b[_0x349131('0x127a')](_0x349131('0xb0'),_0x50172e),document['body'][_0x349131('0x14d0')](_0x39981b),_0x39981b[_0x349131('0x997')]();})[_0x57a53e('0x1c1d')](function(_0x1e9285){var _0x2ae12c=_0x57a53e;if(_0x1e9285[_0x2ae12c('0x11c2')]&&_0x1e9285['data'][_0x2ae12c('0x1a69')]&&_0x1e9285[_0x2ae12c('0x11c2')][_0x2ae12c('0x1a69')][_0x2ae12c('0x577')])for(var _0x193ec2=0x0;_0x193ec2<_0x1e9285[_0x2ae12c('0x11c2')][_0x2ae12c('0x1a69')][_0x2ae12c('0x577')];_0x193ec2+=0x1){_0x304f28['error']({'title':_0x1e9285[_0x2ae12c('0x11c2')][_0x2ae12c('0x1a69')][_0x193ec2]['type'],'msg':_0x1e9285['data'][_0x2ae12c('0x1a69')][_0x193ec2][_0x2ae12c('0x1224')]});}else _0x304f28[_0x2ae12c('0x2092')]({'title':_0x1e9285[_0x2ae12c('0x209')]?'API:'+_0x1e9285[_0x2ae12c('0x209')]+_0x2ae12c('0xa99')+_0x1e9285[_0x2ae12c('0x1808')]:_0x2ae12c('0x1132'),'msg':_0x1e9285[_0x2ae12c('0x11c2')]?JSON['stringify'](_0x1e9285[_0x2ae12c('0x11c2')][_0x2ae12c('0x1224')]):_0x1e9285[_0x2ae12c('0x174f')]()});});}function _0x3b3467(_0x5501db,_0x3285e5){var _0xeb62a5=_0x2fd8f9,_0x3bebbf=_0x57c1a0[_0xeb62a5('0xa33')]()[_0xeb62a5('0x4b4')](_0xeb62a5('0x6'))['htmlContent'](_0xeb62a5('0x622')+(_0x5501db['name']||_0x5501db['id']&&_0x86640f()[_0xeb62a5('0x22e')]('interaction\x20#')+_0x5501db['id']||_0xeb62a5('0x1d23'))+_0xeb62a5('0x2135')+_0xeb62a5('0x25e0'))['ariaLabel'](_0xeb62a5('0x16bb'))['targetEvent'](_0x3285e5)['ok']('OK')[_0xeb62a5('0x3b5')]('CANCEL');_0x57c1a0[_0xeb62a5('0x853')](_0x3bebbf)[_0xeb62a5('0x21ad')](function(){_0x19f816(_0x5501db);},function(){var _0x4dbcc1=_0xeb62a5;console[_0x4dbcc1('0x6fb')](_0x4dbcc1('0x284b'));});}function _0x29e6eb(_0x55b45b){var _0x1a7468=_0x2fd8f9;_0x52793e[_0x1a7468('0x1d6c')]=_0x55b45b||{'count':0x0,'rows':[]};for(var _0x2edb26=0x0;_0x2edb26<_0x52793e[_0x1a7468('0x1d6c')][_0x1a7468('0x1b33')][_0x1a7468('0x577')];_0x2edb26+=0x1){var _0x1d3d1c=_0x52793e['whatsappAccountInteractions'][_0x1a7468('0x1b33')][_0x2edb26];_0x250df3(_0x1d3d1c),_0x1d3d1c[_0x1a7468('0x11a8')]['name']=_0x712809(_0x1d3d1c);}}function _0x2fee64(){var _0xc4d551=_0x2fd8f9;_0x52793e[_0xc4d551('0x77')][_0xc4d551('0x15a5')]=(_0x52793e[_0xc4d551('0x77')][_0xc4d551('0x2376')]-0x1)*_0x52793e[_0xc4d551('0x77')][_0xc4d551('0x1f4a')],_0x52793e[_0xc4d551('0x71b')]=_0xb24923['whatsappInteraction'][_0xc4d551('0x595')](_0x52793e[_0xc4d551('0x77')],_0x29e6eb)[_0xc4d551('0x1376')];}function _0x36a6cb(_0x4cc723,_0x413b91){var _0x5e5ea3=_0x2fd8f9;_0x57c1a0[_0x5e5ea3('0x853')]({'controller':_0x5e5ea3('0xbd1'),'controllerAs':'vm','templateUrl':_0x421fef,'parent':angular[_0x5e5ea3('0x1676')](_0x3d2956[_0x5e5ea3('0x2452')]),'targetEvent':_0x4cc723,'clickOutsideToClose':!![],'onShowing':function _0x3d346b(_0x3cfd4f){var _0x31aa1d=_0x5e5ea3;_0x3cfd4f['vm'][_0x31aa1d('0x1d75')]({'id':0x1,'channel':_0x31aa1d('0x1ad4'),'interaction':_0x413b91,'spy':!![]},_0x352d93['$parent']['vm'][_0x31aa1d('0x21e')]);}});}function _0x19f816(_0x1c0922){var _0x4aeb90=_0x2fd8f9;_0xb24923['whatsappInteraction'][_0x4aeb90('0x1164')]({'id':_0x1c0922['id']})[_0x4aeb90('0x1376')][_0x4aeb90('0x21ad')](function(){var _0x21b702=_0x4aeb90;_0x86640f()[_0x21b702('0x16a2')](_0x52793e['whatsappAccountInteractions'][_0x21b702('0x1b33')],{'id':_0x1c0922['id']}),_0x52793e['whatsappAccountInteractions'][_0x21b702('0x205f')]-=0x1,!_0x52793e[_0x21b702('0x1d6c')][_0x21b702('0x1b33')]['length']&&_0x2fee64(),_0x304f28[_0x21b702('0xdb1')]({'title':_0x21b702('0x1eb4'),'msg':_0x1c0922['name']?_0x1c0922[_0x21b702('0x19fe')]+'\x20has\x20been\x20deleted!':''});})[_0x4aeb90('0x1c1d')](function(_0x252c15){var _0x9a3f01=_0x4aeb90;if(_0x252c15[_0x9a3f01('0x11c2')]&&_0x252c15['data']['errors']&&_0x252c15[_0x9a3f01('0x11c2')][_0x9a3f01('0x1a69')][_0x9a3f01('0x577')]){_0x52793e['errors']=_0x252c15[_0x9a3f01('0x11c2')]['errors']||[{'message':_0x252c15[_0x9a3f01('0x174f')](),'type':_0x9a3f01('0x14a1')}];for(var _0x22770=0x0;_0x22770<_0x252c15[_0x9a3f01('0x11c2')][_0x9a3f01('0x1a69')][_0x9a3f01('0x577')];_0x22770++){_0x304f28[_0x9a3f01('0x2092')]({'title':_0x252c15['data'][_0x9a3f01('0x1a69')][_0x22770]['type'],'msg':_0x252c15[_0x9a3f01('0x11c2')][_0x9a3f01('0x1a69')][_0x22770][_0x9a3f01('0x1224')]});}}else _0x304f28['error']({'title':_0x252c15[_0x9a3f01('0x209')]?_0x9a3f01('0x22d')+_0x252c15[_0x9a3f01('0x209')]+'\x20-\x20'+_0x252c15[_0x9a3f01('0x1808')]:_0x9a3f01('0x14a1'),'msg':_0x252c15[_0x9a3f01('0x11c2')]?JSON['stringify'](_0x252c15['data'][_0x9a3f01('0x1224')]):_0x252c15[_0x9a3f01('0x1224')]||_0x252c15[_0x9a3f01('0x174f')]()});});}function _0x3dd4e7(){var _0x27e01a=_0x2fd8f9,_0x1aaf6d=angular[_0x27e01a('0xd75')](_0x52793e[_0x27e01a('0xf4e')]);return _0x52793e['selectedWhatsappAccountInteractions']=[],_0x1aaf6d;}function _0x944ba3(_0x344865){var _0x5b9877=_0x2fd8f9,_0x4ec178=_0x57c1a0['confirm']()['title'](_0x5b9877('0x1ad2'))[_0x5b9877('0x276b')](_0x5b9877('0x622')+_0x52793e['selectedWhatsappAccountInteractions'][_0x5b9877('0x577')]+_0x5b9877('0xd74')+'\x20will\x20be\x20deleted.')[_0x5b9877('0x7a7')](_0x5b9877('0x263e'))[_0x5b9877('0x1e6d')](_0x344865)['ok']('OK')[_0x5b9877('0x3b5')](_0x5b9877('0x284b'));_0x57c1a0[_0x5b9877('0x853')](_0x4ec178)[_0x5b9877('0x21ad')](function(){var _0x405fd5=_0x5b9877;_0x52793e[_0x405fd5('0xf4e')]['forEach'](function(_0x49a015){_0x19f816(_0x49a015);}),_0x52793e[_0x405fd5('0xf4e')]=[];});}function _0x250df3(_0x545e21){var _0x31b1fd=_0x2fd8f9;_0x545e21[_0x31b1fd('0x1d10')]?_0x545e21[_0x31b1fd('0x1717')]=(_0x545e21[_0x31b1fd('0x1d10')][_0x31b1fd('0x992')]||'')+'\x20'+(_0x545e21[_0x31b1fd('0x1d10')]['lastName']||''):_0x545e21[_0x31b1fd('0x1717')]=_0x2a9233[_0x31b1fd('0x183e')]('DASHBOARDS.UNKNOWN');}function _0x712809(_0x29b397){var _0x47b31c=_0x2fd8f9;if(_0x29b397[_0x47b31c('0x1dc6')])return _0x29b397['UserId']===_0x52793e[_0x47b31c('0x123f')]['id']?_0x2a9233[_0x47b31c('0x183e')](_0x47b31c('0x4db')):_0x29b397[_0x47b31c('0x11a8')][_0x47b31c('0x20f5')]+'\x20<'+_0x29b397[_0x47b31c('0x11a8')][_0x47b31c('0x201f')]+'>';return _0x2a9233[_0x47b31c('0x183e')]('DASHBOARDS.NOT_ASSIGNED');}var _0x230e40=!![],_0x1fa574=0x1;_0x352d93['$watch']('vm_dc.query.filter',function(_0x1511ae,_0xa08fc1){var _0x3e6eec=_0x2fd8f9;_0x230e40?_0x9befc2(function(){_0x230e40=![];}):(!_0xa08fc1&&(_0x1fa574=_0x52793e['query'][_0x3e6eec('0x2376')]),_0x1511ae!==_0xa08fc1&&(_0x52793e[_0x3e6eec('0x77')][_0x3e6eec('0x2376')]=0x1),!_0x1511ae&&(_0x52793e[_0x3e6eec('0x77')][_0x3e6eec('0x2376')]=_0x1fa574),_0x2fee64());});}const _0x4f84cc=_0xe7d79f,_0x48920a=_0x398308['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/agentadd/agentadd.html/agentadd-[chunkhash].html';_0x461ca5['$inject']=[_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x13c1'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),'api',_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x1b5d'),'userProfileSection'];function _0x461ca5(_0x504aca,_0x3b790c,_0x1751b2,_0x28bbf0,_0x4c921c,_0x4d7915,_0x16c6d4,_0x2de3b9,_0x2c5d7d,_0x4d3725,_0x4edda2,_0x5e0cb2){var _0x3c9775=_0x3877e3,_0x59914b=this;_0x59914b['currentUser']=_0x4d3725[_0x3c9775('0x15ed')](),_0x59914b[_0x3c9775('0x2ff')]=_0x4d7915,_0x59914b[_0x3c9775('0x21e')]=_0x16c6d4,_0x59914b[_0x3c9775('0x1432')]=_0x59914b['setting'][_0x3c9775('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x59914b[_0x3c9775('0x626')]=_0x3b790c[_0x3c9775('0x1162')]()+'://'+_0x3b790c[_0x3c9775('0x1c01')](),_0x59914b['whatsappAccount']=_0x4edda2||_0x504aca['params'][_0x3c9775('0x1b5d')]||{},_0x59914b['userProfileSection']=_0x5e0cb2&&_0x5e0cb2[_0x3c9775('0x205f')]==0x1?_0x5e0cb2['rows'][0x0]:null,_0x59914b[_0x3c9775('0x5ed')]=_0x4d3725[_0x3c9775('0x1778')](_0x59914b['userProfileSection']?_0x59914b[_0x3c9775('0xab4')][_0x3c9775('0x5ed')]:null),_0x59914b[_0x3c9775('0x126a')]={},_0x59914b[_0x3c9775('0x302')]=_0x504aca[_0x3c9775('0x171b')][_0x3c9775('0x12e1')]||0x0,_0x59914b[_0x3c9775('0x1297')]=_0x1ab1f0,_0x59914b['alert']=_0x2c5d7d[_0x3c9775('0x231c')],_0x59914b[_0x3c9775('0x18c5')]=_0x4b34b0,_0x59914b[_0x3c9775('0x12df')]=_0x2eb336,_0x4d3725[_0x3c9775('0x21de')]('admin')?_0x2de3b9[_0x3c9775('0x11e0')][_0x3c9775('0x595')]({'fields':_0x3c9775('0x1aa8'),'sort':_0x3c9775('0x19fe')})[_0x3c9775('0x1376')][_0x3c9775('0x21ad')](function(_0xc0351b){var _0x152bd9=_0x3c9775;_0x59914b['lists']=_0xc0351b[_0x152bd9('0x1b33')]||[];})[_0x3c9775('0x1c1d')](function(_0x20d360){var _0x48e4eb=_0x3c9775;_0x2c5d7d['error']({'title':_0x20d360['status']?_0x48e4eb('0x22d')+_0x20d360[_0x48e4eb('0x209')]+_0x48e4eb('0xa99')+_0x20d360['statusText']:_0x48e4eb('0xf59'),'msg':_0x20d360['data']?JSON[_0x48e4eb('0x25e')](_0x20d360[_0x48e4eb('0x11c2')]):_0x20d360[_0x48e4eb('0x174f')]()});}):_0x2de3b9[_0x3c9775('0x11e0')][_0x3c9775('0x595')]({'fields':_0x3c9775('0x1aa8'),'sort':_0x3c9775('0x19fe')})[_0x3c9775('0x1376')][_0x3c9775('0x21ad')](function(_0x216682){var _0x1dfeab=_0x3c9775;_0x59914b[_0x1dfeab('0x1972')]=_0x216682[_0x1dfeab('0x1b33')]||[];})['then'](function(){var _0x4832b9=_0x3c9775;return _0x2de3b9['userProfileSection'][_0x4832b9('0x595')]({'userProfileId':_0x59914b[_0x4832b9('0x123f')][_0x4832b9('0x1618')],'sectionId':0x12d})[_0x4832b9('0x1376')];})['then'](function(_0x531589){var _0x4d34a2=_0x3c9775,_0xc7b5d8=_0x531589&&_0x531589[_0x4d34a2('0x1b33')]?_0x531589[_0x4d34a2('0x1b33')][0x0]:null;if(!_0xc7b5d8){var _0x29b01f=[],_0x5c7080=null;_0x59914b['whatsappAccount']&&(_0x5c7080=_0x86640f()['find'](_0x59914b[_0x4d34a2('0x1972')],{'id':Number(_0x59914b[_0x4d34a2('0x1b5d')][_0x4d34a2('0x815')])}));for(var _0x29b59c=0x0;_0x29b59c<_0x59914b['lists'][_0x4d34a2('0x577')];_0x29b59c++){_0x5c7080&&_0x59914b[_0x4d34a2('0x1972')][_0x29b59c]['id']===_0x5c7080['id']&&(_0x59914b[_0x4d34a2('0x1972')][_0x29b59c][_0x4d34a2('0xba')]=![],_0x29b01f[_0x4d34a2('0x206c')](_0x59914b[_0x4d34a2('0x1972')][_0x29b59c]));}_0x59914b[_0x4d34a2('0x1972')]=_0x29b01f;}else{if(!_0xc7b5d8[_0x4d34a2('0x80c')])return _0x2de3b9[_0x4d34a2('0x185e')][_0x4d34a2('0x595')]({'sectionId':_0xc7b5d8['id']})[_0x4d34a2('0x1376')][_0x4d34a2('0x21ad')](function(_0x57ed44){var _0x373bb3=_0x4d34a2,_0xb28d34=_0x86640f()[_0x373bb3('0x26c3')](_0x57ed44[_0x373bb3('0x1b33')],function(_0x282d07){var _0x1ca02c=_0x373bb3;return _0x86640f()['find'](_0x59914b[_0x1ca02c('0x1972')],{'id':_0x282d07[_0x1ca02c('0x675')]});}),_0x3f9179=null;_0x59914b[_0x373bb3('0x1b5d')]&&(_0x3f9179=_0x86640f()[_0x373bb3('0x1d2e')](_0x59914b['lists'],{'id':Number(_0x59914b['whatsappAccount'][_0x373bb3('0x815')])}));if(_0x3f9179&&!_0x86640f()[_0x373bb3('0x2664')](_0xb28d34,['id',_0x3f9179['id']])){var _0x102e14=_0x86640f()[_0x373bb3('0x1d2e')](_0x59914b[_0x373bb3('0x1972')],{'id':_0x3f9179['id']});_0x102e14['canSelect']=![],_0xb28d34[_0x373bb3('0x206c')](_0x102e14);}_0x59914b[_0x373bb3('0x1972')]=_0xb28d34;});}})['catch'](function(_0x304908){var _0x3840a3=_0x3c9775;_0x2c5d7d[_0x3840a3('0x2092')]({'title':_0x304908[_0x3840a3('0x209')]?_0x3840a3('0x22d')+_0x304908['status']+_0x3840a3('0xa99')+_0x304908[_0x3840a3('0x1808')]:_0x3840a3('0xa92'),'msg':_0x304908[_0x3840a3('0x11c2')]?JSON[_0x3840a3('0x25e')](_0x304908['data']):_0x304908[_0x3840a3('0x174f')]()});}),_0x4d3725[_0x3c9775('0x21de')](_0x3c9775('0x1bd8'))?_0x2de3b9[_0x3c9775('0x1e26')][_0x3c9775('0x595')]({'fields':_0x3c9775('0x14d5'),'sort':_0x3c9775('0x19fe'),'nolimit':_0x3c9775('0x19bd')})[_0x3c9775('0x1376')][_0x3c9775('0x21ad')](function(_0x4ac59e){var _0x344700=_0x3c9775;_0x59914b[_0x344700('0x1fc7')]=_0x4ac59e[_0x344700('0x1b33')]||[];})[_0x3c9775('0x1c1d')](function(_0x4b2bf4){var _0x4a94c1=_0x3c9775;_0x2c5d7d['error']({'title':_0x4b2bf4['status']?'API:'+_0x4b2bf4['status']+_0x4a94c1('0xa99')+_0x4b2bf4[_0x4a94c1('0x1808')]:_0x4a94c1('0xb9b'),'msg':_0x4b2bf4[_0x4a94c1('0x11c2')]?JSON[_0x4a94c1('0x25e')](_0x4b2bf4[_0x4a94c1('0x11c2')]):_0x4b2bf4[_0x4a94c1('0x174f')]()});}):_0x2de3b9[_0x3c9775('0x1e26')]['get']({'fields':'name,id','sort':_0x3c9775('0x19fe'),'nolimit':_0x3c9775('0x19bd')})[_0x3c9775('0x1376')][_0x3c9775('0x21ad')](function(_0x22d5b3){var _0x4103d4=_0x3c9775;_0x59914b[_0x4103d4('0x1fc7')]=_0x22d5b3[_0x4103d4('0x1b33')]||[];})[_0x3c9775('0x21ad')](function(){var _0x3040aa=_0x3c9775;return _0x2de3b9['userProfileSection']['get']({'userProfileId':_0x59914b[_0x3040aa('0x123f')]['userProfileId'],'sectionId':0x3ed})[_0x3040aa('0x1376')];})[_0x3c9775('0x21ad')](function(_0x429098){var _0x19c837=_0x3c9775,_0xe639c6=_0x429098&&_0x429098[_0x19c837('0x1b33')]?_0x429098[_0x19c837('0x1b33')][0x0]:null;if(!_0xe639c6)_0x59914b[_0x19c837('0x1fc7')]=[];else{if(!_0xe639c6[_0x19c837('0x80c')])return _0x2de3b9[_0x19c837('0x185e')][_0x19c837('0x595')]({'sectionId':_0xe639c6['id']})['$promise'][_0x19c837('0x21ad')](function(_0x3933d8){var _0x5a7880=_0x19c837,_0x1f851f=_0x86640f()[_0x5a7880('0x26c3')](_0x3933d8['rows'],function(_0x233422){var _0x4c8ab9=_0x5a7880;return _0x86640f()['find'](_0x59914b[_0x4c8ab9('0x1fc7')],{'id':_0x233422[_0x4c8ab9('0x675')]});});_0x59914b['pauses'][_0x5a7880('0x1a52')](function(_0x26a519){var _0x22c2a1=_0x5a7880;!_0x86640f()['some'](_0x1f851f,['id',_0x26a519['id']])&&(_0x26a519[_0x22c2a1('0xba')]=![]),_0x1f851f[_0x22c2a1('0x206c')](_0x26a519);}),_0x59914b[_0x5a7880('0x1fc7')]=_0x1f851f;});}})[_0x3c9775('0x1c1d')](function(_0x81b302){var _0x275b10=_0x3c9775;_0x2c5d7d[_0x275b10('0x2092')]({'title':_0x81b302[_0x275b10('0x209')]?_0x275b10('0x22d')+_0x81b302[_0x275b10('0x209')]+_0x275b10('0xa99')+_0x81b302[_0x275b10('0x1808')]:_0x275b10('0x17ab'),'msg':_0x81b302[_0x275b10('0x11c2')]?JSON[_0x275b10('0x25e')](_0x81b302['data']):_0x81b302[_0x275b10('0x174f')]()});});function _0x1ab1f0(_0x5c368c,_0x38e592){var _0x4188fd=_0x3c9775;_0x1751b2[_0x4188fd('0x853')]({'controller':_0x4188fd('0xb29'),'controllerAs':'vm','templateUrl':_0x48920a,'parent':angular['element'](_0x28bbf0[_0x4188fd('0x2452')]),'targetEvent':_0x38e592,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x5c368c,'whatsappAccounts':_0x59914b[_0x4188fd('0x46a')]?_0x59914b[_0x4188fd('0x46a')][_0x4188fd('0x1b33')]:[],'crudPermissions':_0x59914b[_0x4188fd('0x5ed')],'realtime':![]}});}function _0x4b34b0(){var _0x53898a=_0x3c9775;_0x504aca['go'](_0x53898a('0x8cd'),{},{'reload':'app.whatsapp.whatsappAccounts'});}function _0x2eb336(){var _0xb0c5b=_0x3c9775;_0x2de3b9[_0xb0c5b('0x1b5d')][_0xb0c5b('0x5ef')]({'id':_0x59914b['whatsappAccount']['id']},_0x59914b[_0xb0c5b('0x1b5d')])[_0xb0c5b('0x1376')][_0xb0c5b('0x21ad')](function(){var _0x7acd50=_0xb0c5b;_0x2c5d7d[_0x7acd50('0xdb1')]({'title':_0x7acd50('0x1b5b'),'msg':_0x59914b['whatsappAccount'][_0x7acd50('0x19fe')]?_0x59914b[_0x7acd50('0x1b5d')][_0x7acd50('0x19fe')]+'\x20has\x20been\x20updated!':''});})[_0xb0c5b('0x1c1d')](function(_0x202f7b){var _0x98873a=_0xb0c5b;_0x2c5d7d[_0x98873a('0x2092')]({'title':_0x202f7b['status']?_0x98873a('0x22d')+_0x202f7b[_0x98873a('0x209')]+_0x98873a('0xa99')+_0x202f7b[_0x98873a('0x1808')]:_0x98873a('0x14a1'),'msg':_0x202f7b[_0x98873a('0x11c2')]?JSON[_0x98873a('0x25e')](_0x202f7b['data']):_0x202f7b[_0x98873a('0x174f')]()});});}}const _0x4d89c0=_0x461ca5,_0x2e4f2e=_0x398308['p']+_0x3877e3('0x24d9');_0x30b784[_0x3877e3('0x1a81')]=['$cookies',_0x3877e3('0x95a'),_0x3877e3('0xa9f'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x2313'),'$mdDialog','$document',_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x15bc')];function _0x30b784(_0x238343,_0x17c29e,_0x3fbd10,_0x2d779c,_0x204679,_0x380df5,_0x2aadf4,_0x1dce6f,_0x3f5aca,_0x545724,_0x5aa5df){var _0x4366a3=_0x3877e3,_0x400cf1=this;_0x400cf1[_0x4366a3('0x123f')]=_0x5aa5df['getCurrentUser'](),_0x400cf1['whatsappAccount']={},_0x400cf1['whatsappAccountWhatsappCannedAnswers']={'count':0x0,'rows':[]},_0x400cf1['selectedWhatsappAccountWhatsappCannedAnswers']=[],_0x400cf1[_0x4366a3('0x5ed')],_0x400cf1[_0x4366a3('0x77')]={'fields':_0x4366a3('0x1674'),'limit':0xa,'page':0x1},_0x400cf1[_0x4366a3('0x1d75')]=_0x4c3814,_0x400cf1[_0x4366a3('0x15dc')]=_0x411023,_0x400cf1[_0x4366a3('0xdb1')]=_0x5338c8,_0x400cf1['getWhatsappAccountWhatsappCannedAnswers']=_0x1c5727,_0x400cf1[_0x4366a3('0x604')]=_0x5f368e,_0x400cf1[_0x4366a3('0x50')]=_0x2cafad,_0x400cf1[_0x4366a3('0x2805')]=_0x275c96,_0x400cf1[_0x4366a3('0x138a')]=_0x3104d5;function _0x4c3814(_0x5b3d7a,_0xb7b295){var _0x245d1a=_0x4366a3;_0x400cf1[_0x245d1a('0x1b5d')]=_0x5b3d7a,_0x400cf1[_0x245d1a('0x5ed')]=typeof _0xb7b295!==_0x245d1a('0xddc')?_0xb7b295:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x400cf1[_0x245d1a('0x77')][_0x245d1a('0x2127')]=_0x400cf1['whatsappAccount']['id'],_0x400cf1[_0x245d1a('0x77')]['id']=_0x400cf1['whatsappAccount']['id'],_0x1c5727();}function _0x411023(_0x12b00a,_0x12a93b){var _0x98c7b1=_0x4366a3,_0x49a07e=_0x2aadf4[_0x98c7b1('0xa33')]()[_0x98c7b1('0x4b4')](_0x98c7b1('0x283c'))[_0x98c7b1('0x276b')](_0x98c7b1('0x622')+(_0x12b00a[_0x98c7b1('0x19fe')]||_0x12b00a['id']&&_0x86640f()[_0x98c7b1('0x22e')](_0x98c7b1('0x164a'))+_0x12b00a['id']||_0x98c7b1('0x7dd'))+_0x98c7b1('0x2135')+_0x98c7b1('0x25e0'))[_0x98c7b1('0x7a7')]('delete\x20whatsappCannedAnswer')['targetEvent'](_0x12a93b)['ok']('OK')['cancel']('CANCEL');_0x2aadf4['show'](_0x49a07e)['then'](function(){_0x275c96(_0x12b00a);},function(){var _0x37feec=_0x98c7b1;console[_0x37feec('0x6fb')](_0x37feec('0x284b'));});}function _0x5338c8(_0xbed8fc){var _0x1fe677=_0x4366a3;_0x400cf1[_0x1fe677('0x1b49')]=_0xbed8fc||{'count':0x0,'rows':[]};}function _0x1c5727(){var _0x346730=_0x4366a3;_0x400cf1['query']['offset']=(_0x400cf1[_0x346730('0x77')][_0x346730('0x2376')]-0x1)*_0x400cf1[_0x346730('0x77')]['limit'],_0x400cf1[_0x346730('0x71b')]=_0x545724[_0x346730('0x1b5d')][_0x346730('0x1250')](_0x400cf1['query'],_0x5338c8)[_0x346730('0x1376')];}function _0x5f368e(_0x42428a,_0x1619fe){var _0x5de162=_0x4366a3;_0x2aadf4[_0x5de162('0x853')]({'controller':_0x5de162('0x23c'),'controllerAs':'vm','templateUrl':_0x2e4f2e,'parent':angular[_0x5de162('0x1676')](_0x1dce6f['body']),'targetEvent':_0x42428a,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x400cf1[_0x5de162('0x1b5d')],'whatsappCannedAnswer':_0x1619fe,'whatsappCannedAnswers':_0x400cf1[_0x5de162('0x1b49')][_0x5de162('0x1b33')],'license':null,'setting':null,'crudPermissions':_0x400cf1[_0x5de162('0x5ed')]}});}function _0x275c96(_0x52b5ed){var _0x3afd19=_0x4366a3;_0x545724[_0x3afd19('0x25e5')][_0x3afd19('0x1164')]({'id':_0x52b5ed['id']})[_0x3afd19('0x1376')][_0x3afd19('0x21ad')](function(){var _0x53ecda=_0x3afd19;_0x86640f()[_0x53ecda('0x16a2')](_0x400cf1[_0x53ecda('0x1b49')]['rows'],{'id':_0x52b5ed['id']}),_0x400cf1[_0x53ecda('0x1b49')][_0x53ecda('0x205f')]-=0x1,!_0x400cf1[_0x53ecda('0x1b49')][_0x53ecda('0x1b33')][_0x53ecda('0x577')]&&_0x1c5727(),_0x3f5aca[_0x53ecda('0xdb1')]({'title':_0x53ecda('0x1763'),'msg':_0x52b5ed[_0x53ecda('0x19fe')]?_0x52b5ed[_0x53ecda('0x19fe')]+_0x53ecda('0xb4a'):''});})[_0x3afd19('0x1c1d')](function(_0x5b8b81){var _0x1df0ff=_0x3afd19;if(_0x5b8b81['data']&&_0x5b8b81[_0x1df0ff('0x11c2')][_0x1df0ff('0x1a69')]&&_0x5b8b81[_0x1df0ff('0x11c2')][_0x1df0ff('0x1a69')][_0x1df0ff('0x577')]){_0x400cf1['errors']=_0x5b8b81['data'][_0x1df0ff('0x1a69')]||[{'message':_0x5b8b81[_0x1df0ff('0x174f')](),'type':_0x1df0ff('0x14a1')}];for(var _0x2d5859=0x0;_0x2d5859<_0x5b8b81[_0x1df0ff('0x11c2')][_0x1df0ff('0x1a69')][_0x1df0ff('0x577')];_0x2d5859++){_0x3f5aca[_0x1df0ff('0x2092')]({'title':_0x5b8b81[_0x1df0ff('0x11c2')][_0x1df0ff('0x1a69')][_0x2d5859][_0x1df0ff('0x7fa')],'msg':_0x5b8b81['data'][_0x1df0ff('0x1a69')][_0x2d5859][_0x1df0ff('0x1224')]});}}else _0x3f5aca[_0x1df0ff('0x2092')]({'title':_0x5b8b81[_0x1df0ff('0x209')]?_0x1df0ff('0x22d')+_0x5b8b81[_0x1df0ff('0x209')]+'\x20-\x20'+_0x5b8b81[_0x1df0ff('0x1808')]:_0x1df0ff('0x14a1'),'msg':_0x5b8b81['data']?JSON[_0x1df0ff('0x25e')](_0x5b8b81[_0x1df0ff('0x11c2')][_0x1df0ff('0x1224')]):_0x5b8b81[_0x1df0ff('0x1224')]||_0x5b8b81[_0x1df0ff('0x174f')]()});});}function _0x2cafad(){var _0x2576ac=_0x4366a3,_0x5484f8=angular[_0x2576ac('0xd75')](_0x400cf1[_0x2576ac('0x26ec')]);return _0x400cf1[_0x2576ac('0x26ec')]=[],_0x5484f8;}function _0x3104d5(_0x2d14c1){var _0x14ea6e=_0x4366a3,_0x192f37=_0x2aadf4[_0x14ea6e('0xa33')]()['title'](_0x14ea6e('0xbd'))[_0x14ea6e('0x276b')](_0x14ea6e('0x622')+_0x400cf1[_0x14ea6e('0x26ec')]['length']+_0x14ea6e('0xd74')+'\x20will\x20be\x20deleted.')[_0x14ea6e('0x7a7')](_0x14ea6e('0x23ed'))[_0x14ea6e('0x1e6d')](_0x2d14c1)['ok']('OK')['cancel']('CANCEL');_0x2aadf4[_0x14ea6e('0x853')](_0x192f37)[_0x14ea6e('0x21ad')](function(){var _0x26102b=_0x14ea6e;_0x400cf1[_0x26102b('0x26ec')]['forEach'](function(_0x307a6f){_0x275c96(_0x307a6f);}),_0x400cf1[_0x26102b('0x26ec')]=[];});}var _0x1304fe=!![],_0x462e8f=0x1;_0x17c29e[_0x4366a3('0x10e8')]('vm_dc.query.filter',function(_0x51e4f3,_0x280651){var _0x81b56c=_0x4366a3;_0x1304fe?_0x380df5(function(){_0x1304fe=![];}):(!_0x280651&&(_0x462e8f=_0x400cf1[_0x81b56c('0x77')][_0x81b56c('0x2376')]),_0x51e4f3!==_0x280651&&(_0x400cf1[_0x81b56c('0x77')][_0x81b56c('0x2376')]=0x1),!_0x51e4f3&&(_0x400cf1[_0x81b56c('0x77')][_0x81b56c('0x2376')]=_0x462e8f),_0x1c5727());});}const _0x2e8d55=_0x30b784;_0x23c2e1[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$state',_0x3877e3('0x14c7'),_0x3877e3('0x1850'),'$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),_0x3877e3('0x1907'),_0x3877e3('0x7dd'),_0x3877e3('0xccd'),_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),'crudPermissions'];function _0x23c2e1(_0x4134c3,_0x3246dc,_0x2cbb9f,_0x362386,_0x202a1a,_0x3b22ca,_0x4a9f79,_0x278e72,_0x36e177,_0x49a798,_0x2920b5,_0x493ac4,_0x377954,_0x397b33){var _0x56f189=_0x3877e3,_0x1e4275=this;_0x1e4275[_0x56f189('0x123f')]=_0x2920b5['getCurrentUser'](),_0x1e4275['errors']=[],_0x1e4275['setting']=_0x377954,_0x1e4275[_0x56f189('0x2ff')]=_0x493ac4,_0x1e4275[_0x56f189('0x5ed')]=_0x397b33,_0x1e4275['hasModulePermissions']={},_0x1e4275['passwordPattern']=_0x1e4275[_0x56f189('0x21e')]&&_0x1e4275[_0x56f189('0x21e')][_0x56f189('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1e4275[_0x56f189('0x4b4')]=_0x56f189('0x226b'),_0x1e4275[_0x56f189('0x7dd')]=angular[_0x56f189('0xd75')](_0x36e177),_0x1e4275[_0x56f189('0x1907')]=_0x278e72,_0x1e4275[_0x56f189('0x17de')]=![];!_0x1e4275[_0x56f189('0x7dd')]&&(_0x1e4275['whatsappCannedAnswer']={},_0x1e4275[_0x56f189('0x4b4')]='WHATSAPP.NEW_WHATSAPPCANNEDANSWER',_0x1e4275[_0x56f189('0x17de')]=!![]);_0x3246dc[_0x56f189('0x171b')]['id']&&(_0x1e4275[_0x56f189('0x7dd')][_0x56f189('0x2127')]=_0x3246dc[_0x56f189('0x171b')]['id']);_0x1e4275['addNewWhatsappCannedAnswer']=_0x4015d5,_0x1e4275['saveWhatsappCannedAnswer']=_0x5a12f0,_0x1e4275['deleteWhatsappCannedAnswer']=_0x51ab03,_0x1e4275[_0x56f189('0x279')]=_0x4d582f,_0x1e4275['closeDialog']=_0x463ad0;function _0x4015d5(){var _0x5d9fa4=_0x56f189;_0x1e4275['errors']=[],_0x49a798[_0x5d9fa4('0x25e5')][_0x5d9fa4('0x186f')](_0x1e4275[_0x5d9fa4('0x7dd')])['$promise']['then'](function(_0x4ff74a){var _0x5c8ce5=_0x5d9fa4;_0x1e4275['whatsappCannedAnswers']['unshift'](_0x4ff74a['toJSON']()),_0x4a9f79[_0x5c8ce5('0xdb1')]({'title':_0x5c8ce5('0x990'),'msg':_0x1e4275['whatsappCannedAnswer'][_0x5c8ce5('0x19fe')]?_0x1e4275[_0x5c8ce5('0x7dd')][_0x5c8ce5('0x19fe')]+'\x20has\x20been\x20created!':''}),_0x463ad0(_0x4ff74a);})[_0x5d9fa4('0x1c1d')](function(_0x1557aa){var _0x3d20cd=_0x5d9fa4;if(_0x1557aa[_0x3d20cd('0x11c2')]&&_0x1557aa[_0x3d20cd('0x11c2')]['errors']&&_0x1557aa[_0x3d20cd('0x11c2')][_0x3d20cd('0x1a69')][_0x3d20cd('0x577')]){_0x1e4275[_0x3d20cd('0x1a69')]=_0x1557aa[_0x3d20cd('0x11c2')][_0x3d20cd('0x1a69')]||[{'message':_0x1557aa[_0x3d20cd('0x174f')](),'type':_0x3d20cd('0x545')}];for(var _0x52bf53=0x0;_0x52bf53<_0x1557aa[_0x3d20cd('0x11c2')]['errors']['length'];_0x52bf53+=0x1){_0x4a9f79[_0x3d20cd('0x2092')]({'title':_0x1557aa['data'][_0x3d20cd('0x1a69')][_0x52bf53][_0x3d20cd('0x7fa')],'msg':_0x1557aa[_0x3d20cd('0x11c2')][_0x3d20cd('0x1a69')][_0x52bf53][_0x3d20cd('0x1224')]});}}else _0x4a9f79['error']({'title':_0x1557aa['status']?_0x3d20cd('0x22d')+_0x1557aa[_0x3d20cd('0x209')]+'\x20-\x20'+_0x1557aa[_0x3d20cd('0x1808')]:'api.cannedAnswer.save','msg':_0x1557aa[_0x3d20cd('0x11c2')]?JSON[_0x3d20cd('0x25e')](_0x1557aa[_0x3d20cd('0x11c2')][_0x3d20cd('0x1224')]):_0x1557aa['toString']()});});}function _0x5a12f0(){var _0x2dc5e1=_0x56f189;_0x1e4275[_0x2dc5e1('0x1a69')]=[],_0x49a798[_0x2dc5e1('0x25e5')][_0x2dc5e1('0x5ef')]({'id':_0x1e4275[_0x2dc5e1('0x7dd')]['id']},_0x1e4275[_0x2dc5e1('0x7dd')])['$promise'][_0x2dc5e1('0x21ad')](function(_0x474086){var _0x43a017=_0x2dc5e1,_0x112e3a=_0x86640f()[_0x43a017('0x1d2e')](_0x1e4275[_0x43a017('0x1907')],{'id':_0x474086['id']});_0x112e3a&&_0x86640f()[_0x43a017('0xd0e')](_0x112e3a,_0x86640f()[_0x43a017('0xc50')](_0x474086[_0x43a017('0x3bc')](),_0x86640f()['keys'](_0x112e3a))),_0x4a9f79[_0x43a017('0xdb1')]({'title':'WhatsappCannedAnswer\x20properly\x20saved!','msg':_0x1e4275[_0x43a017('0x7dd')][_0x43a017('0x19fe')]?_0x1e4275[_0x43a017('0x7dd')][_0x43a017('0x19fe')]+'\x20has\x20been\x20saved!':''}),_0x463ad0(_0x474086);})['catch'](function(_0x1c5586){var _0x18071b=_0x2dc5e1;if(_0x1c5586[_0x18071b('0x11c2')]&&_0x1c5586['data'][_0x18071b('0x1a69')]&&_0x1c5586[_0x18071b('0x11c2')][_0x18071b('0x1a69')]['length']){_0x1e4275[_0x18071b('0x1a69')]=_0x1c5586[_0x18071b('0x11c2')][_0x18071b('0x1a69')]||[{'message':_0x1c5586[_0x18071b('0x174f')](),'type':'api.cannedAnswer.update'}];for(var _0x44d57e=0x0;_0x44d57e<_0x1c5586[_0x18071b('0x11c2')]['errors'][_0x18071b('0x577')];_0x44d57e++){_0x4a9f79[_0x18071b('0x2092')]({'title':_0x1c5586[_0x18071b('0x11c2')][_0x18071b('0x1a69')][_0x44d57e][_0x18071b('0x7fa')],'msg':_0x1c5586[_0x18071b('0x11c2')][_0x18071b('0x1a69')][_0x44d57e][_0x18071b('0x1224')]});}}else _0x4a9f79[_0x18071b('0x2092')]({'title':_0x1c5586[_0x18071b('0x209')]?_0x18071b('0x22d')+_0x1c5586[_0x18071b('0x209')]+_0x18071b('0xa99')+_0x1c5586[_0x18071b('0x1808')]:_0x18071b('0x129c'),'msg':_0x1c5586[_0x18071b('0x11c2')]?JSON[_0x18071b('0x25e')](_0x1c5586[_0x18071b('0x11c2')]['message']):_0x1c5586['toString']()});});}function _0x51ab03(_0xaff3ab){var _0x5ebc4a=_0x56f189;_0x1e4275['errors']=[];var _0x2f7617=_0x362386['confirm']()['title']('Are\x20you\x20sure?')[_0x5ebc4a('0x13fb')]('The\x20whatsappCannedAnswer\x20will\x20be\x20deleted.')[_0x5ebc4a('0x7a7')]('Delete\x20WhatsappCannedAnswer')['ok'](_0x5ebc4a('0xbfd'))[_0x5ebc4a('0x3b5')]('Cancel')['targetEvent'](_0xaff3ab);_0x362386[_0x5ebc4a('0x853')](_0x2f7617)[_0x5ebc4a('0x21ad')](function(){var _0x3f4bbe=_0x5ebc4a;_0x49a798[_0x3f4bbe('0x25e5')][_0x3f4bbe('0x1164')]({'id':_0x1e4275['whatsappCannedAnswer']['id']})['$promise'][_0x3f4bbe('0x21ad')](function(){var _0x434dd0=_0x3f4bbe;_0x86640f()[_0x434dd0('0x16a2')](_0x1e4275[_0x434dd0('0x1907')],{'id':_0x1e4275[_0x434dd0('0x7dd')]['id']}),_0x4a9f79['success']({'title':'WhatsappCannedAnswer\x20properly\x20deleted!','msg':(_0x1e4275[_0x434dd0('0x7dd')][_0x434dd0('0x19fe')]||_0x434dd0('0x7dd'))+_0x434dd0('0xb4a')}),_0x463ad0(_0x1e4275[_0x434dd0('0x7dd')]);})[_0x3f4bbe('0x1c1d')](function(_0x52781f){var _0x2c6385=_0x3f4bbe;if(_0x52781f[_0x2c6385('0x11c2')]&&_0x52781f[_0x2c6385('0x11c2')][_0x2c6385('0x1a69')]&&_0x52781f[_0x2c6385('0x11c2')][_0x2c6385('0x1a69')][_0x2c6385('0x577')]){_0x1e4275[_0x2c6385('0x1a69')]=_0x52781f[_0x2c6385('0x11c2')][_0x2c6385('0x1a69')]||[{'message':_0x52781f['toString'](),'type':_0x2c6385('0x2545')}];for(var _0xbd8f23=0x0;_0xbd8f23<_0x52781f[_0x2c6385('0x11c2')]['errors'][_0x2c6385('0x577')];_0xbd8f23++){_0x4a9f79['error']({'title':_0x52781f[_0x2c6385('0x11c2')][_0x2c6385('0x1a69')][_0xbd8f23][_0x2c6385('0x7fa')],'msg':_0x52781f[_0x2c6385('0x11c2')][_0x2c6385('0x1a69')][_0xbd8f23][_0x2c6385('0x1224')]});}}else _0x4a9f79[_0x2c6385('0x2092')]({'title':_0x52781f['status']?_0x2c6385('0x22d')+_0x52781f[_0x2c6385('0x209')]+_0x2c6385('0xa99')+_0x52781f[_0x2c6385('0x1808')]:_0x2c6385('0x2545'),'msg':_0x52781f[_0x2c6385('0x11c2')]?JSON['stringify'](_0x52781f[_0x2c6385('0x11c2')][_0x2c6385('0x1224')]):_0x52781f[_0x2c6385('0x1224')]||_0x52781f[_0x2c6385('0x174f')]()});});},function(){});}function _0x4d582f(_0x52a5e4){return _0x52a5e4===null?undefined:new Date(_0x52a5e4);}function _0x463ad0(_0x2d232e){var _0x1c1ec6=_0x56f189;_0x362386[_0x1c1ec6('0x1c24')](_0x2d232e);}}const _0x1823df=_0x23c2e1;_0x38a952[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),'$window','$state',_0x3877e3('0x2828'),'$mdDialog',_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x13c1'),_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x15bc')];function _0x38a952(_0x1c9967,_0x57566f,_0x428e65,_0x3e1e4e,_0x3567fc,_0x136923,_0x149c21,_0x57b1e1,_0x13a3fe,_0x3b9814,_0x58d04f){var _0x4aeb28=_0x3877e3,_0xd10b95=this;_0xd10b95['currentUser']=_0x58d04f[_0x4aeb28('0x15ed')](),_0xd10b95['dispositions']={'count':0x0,'rows':[]},_0xd10b95[_0x4aeb28('0xa9')]=[],_0xd10b95[_0x4aeb28('0x5ed')],_0xd10b95[_0x4aeb28('0x2525')]={'first':_0x4aeb28('0xd08'),'second':_0x4aeb28('0x2846'),'third':_0x4aeb28('0x176b')},_0xd10b95[_0x4aeb28('0x77')]={'fields':_0x4aeb28('0x277'),'sort':_0x4aeb28('0x33'),'limit':0xa,'page':0x1},_0xd10b95['init']=_0xa021ac,_0xd10b95[_0x4aeb28('0x15dc')]=_0x505071,_0xd10b95['success']=_0x34ca59,_0xd10b95['getDispositions']=_0x539f19,_0xd10b95[_0x4aeb28('0x25e1')]=_0x3e2bdd,_0xd10b95[_0x4aeb28('0x132f')]=_0x3bce78,_0xd10b95[_0x4aeb28('0xec6')]=_0x37fac8,_0xd10b95[_0x4aeb28('0x250')]=_0xcd48d,_0xd10b95[_0x4aeb28('0x2061')]=_0x5ace00,_0xd10b95[_0x4aeb28('0x2332')]=_0x3aa8ee;function _0xa021ac(_0xa6c9d7,_0x35b628){var _0x160a41=_0x4aeb28;_0xd10b95[_0x160a41('0x1b5d')]=_0xa6c9d7||{},_0xd10b95['crudPermissions']=typeof _0x35b628!==_0x160a41('0xddc')?_0x35b628:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xd10b95['query'][_0x160a41('0x2127')]=_0xd10b95[_0x160a41('0x1b5d')]['id'],_0xd10b95[_0x160a41('0x77')]['id']=_0xd10b95[_0x160a41('0x1b5d')]['id'],_0x539f19();}function _0x3e2bdd(_0x580459,_0x29a260){var _0x468554=_0x4aeb28;_0x3567fc[_0x468554('0x853')]({'controller':_0x468554('0xdd9'),'controllerAs':'vm','templateUrl':_0x3e2462,'parent':angular[_0x468554('0x1676')](_0x136923[_0x468554('0x2452')]),'targetEvent':_0x580459,'clickOutsideToClose':!![],'locals':{'disposition':_0x29a260,'dispositions':_0xd10b95['dispositions']['rows'],'model':{'id':_0xd10b95[_0x468554('0x1b5d')]['id'],'field':_0x468554('0x2127')},'license':null,'setting':null,'crudPermissions':_0xd10b95[_0x468554('0x5ed')]}})[_0x468554('0x21ad')](function(_0x275b68){if(_0x275b68)_0x539f19();});}function _0x505071(_0x3a49f1,_0xa18d90){var _0x4c1634=_0x4aeb28,_0x6389ce=_0x86640f()['some'](_0xd10b95['dispositions'][_0x4c1634('0x1b33')],['ParentId',_0x3a49f1['id']]),_0x2ef8d4=_0x3567fc['confirm']()[_0x4c1634('0x4b4')](_0x57b1e1[_0x4c1634('0x183e')](_0x4c1634('0x17b4')))['content'](_0x57b1e1['instant'](_0x4c1634('0x18ec')+(_0x6389ce?_0x4c1634('0x636'):_0x4c1634('0x1019')),{'name':_0x3a49f1['name']}))[_0x4c1634('0x7a7')](_0x4c1634('0x2448'))[_0x4c1634('0x1e6d')](_0xa18d90)['ok']('OK')[_0x4c1634('0x3b5')](_0x57b1e1[_0x4c1634('0x183e')](_0x4c1634('0x20ea')));_0x3567fc[_0x4c1634('0x853')](_0x2ef8d4)['then'](function(){_0x3bce78(_0x3a49f1);});}function _0x34ca59(_0x2fcf39){var _0x3aed56=_0x4aeb28;_0xd10b95[_0x3aed56('0x10d0')]=_0x2fcf39||{'count':0x0,'rows':[]};}function _0x539f19(){var _0x3bac2c=_0x4aeb28;_0xd10b95[_0x3bac2c('0x77')]['offset']=(_0xd10b95[_0x3bac2c('0x77')][_0x3bac2c('0x2376')]-0x1)*_0xd10b95[_0x3bac2c('0x77')]['limit'],_0xd10b95[_0x3bac2c('0x71b')]=_0x13a3fe[_0x3bac2c('0x1b5d')][_0x3bac2c('0x1235')](_0xd10b95[_0x3bac2c('0x77')],_0x34ca59)[_0x3bac2c('0x1376')];}function _0x3bce78(_0x5421f1){var _0x597ca2=_0x4aeb28;_0x13a3fe[_0x597ca2('0x22c8')][_0x597ca2('0x1164')]({'id':_0x5421f1['id']})['$promise']['then'](function(){var _0x44b160=_0x597ca2;_0x539f19(),_0x3b9814[_0x44b160('0xdb1')]({'title':_0x57b1e1[_0x44b160('0x183e')](_0x44b160('0x42a'))});})[_0x597ca2('0x1c1d')](function(_0x29c4b2){var _0x73061f=_0x597ca2;if(_0x29c4b2[_0x73061f('0x11c2')]&&_0x29c4b2[_0x73061f('0x11c2')]['errors']&&_0x29c4b2[_0x73061f('0x11c2')][_0x73061f('0x1a69')][_0x73061f('0x577')]){_0xd10b95[_0x73061f('0x1a69')]=_0x29c4b2[_0x73061f('0x11c2')][_0x73061f('0x1a69')]||[{'message':_0x29c4b2['toString'](),'type':_0x73061f('0x10d3')}];for(var _0x5a18fd=0x0;_0x5a18fd<_0x29c4b2[_0x73061f('0x11c2')]['errors'][_0x73061f('0x577')];_0x5a18fd++){_0x3b9814[_0x73061f('0x2092')]({'title':_0x29c4b2[_0x73061f('0x11c2')]['errors'][_0x5a18fd][_0x73061f('0x7fa')],'msg':_0x29c4b2[_0x73061f('0x11c2')][_0x73061f('0x1a69')][_0x5a18fd]['message']});}}else _0x3b9814[_0x73061f('0x2092')]({'title':_0x29c4b2['status']?_0x73061f('0x22d')+_0x29c4b2[_0x73061f('0x209')]+_0x73061f('0xa99')+_0x29c4b2[_0x73061f('0x1808')]:'SYSTEM:DELETEdisposition','msg':_0x29c4b2['data']?JSON[_0x73061f('0x25e')](_0x29c4b2['data'][_0x73061f('0x1224')]):_0x29c4b2[_0x73061f('0x1224')]||_0x29c4b2[_0x73061f('0x174f')]()});});}function _0x37fac8(){var _0x4d80e5=_0x4aeb28,_0x1f73f7=angular[_0x4d80e5('0xd75')](_0xd10b95[_0x4d80e5('0xa9')]);return _0xd10b95[_0x4d80e5('0xa9')]=[],_0x1f73f7;}function _0xcd48d(_0x24754a){var _0x132491=_0x4aeb28,_0x47b584=_0x3567fc[_0x132491('0xa33')]()[_0x132491('0x4b4')](_0x57b1e1[_0x132491('0x183e')](_0x132491('0x1477')))[_0x132491('0x13fb')](_0x57b1e1['instant'](_0x132491('0x212d'),{'total':_0xd10b95[_0x132491('0xa9')]['length']}))[_0x132491('0x7a7')](_0x132491('0xad9'))['targetEvent'](_0x24754a)['ok']('OK')[_0x132491('0x3b5')](_0x57b1e1[_0x132491('0x183e')]('TOOLS.CANCEL'));_0x3567fc[_0x132491('0x853')](_0x47b584)['then'](function(){var _0xb1a02c=_0x132491;_0xd10b95[_0xb1a02c('0xa9')][_0xb1a02c('0x1a52')](function(_0x54a535){_0x3bce78(_0x54a535);}),_0xd10b95[_0xb1a02c('0xa9')]=[];});}function _0x5ace00(){var _0x3b6091=_0x4aeb28;_0xd10b95[_0x3b6091('0xa9')]=[];}function _0x3aa8ee(){var _0x241615=_0x4aeb28;_0xd10b95[_0x241615('0xa9')]=_0xd10b95['dispositions']['rows'];}var _0x1f76d9=!![],_0x77cb1=0x1;_0x1c9967[_0x4aeb28('0x10e8')](_0x4aeb28('0x10ff'),function(_0x12f953,_0xdf7479){var _0x5c35d1=_0x4aeb28;_0x1f76d9?_0x149c21(function(){_0x1f76d9=![];}):(!_0xdf7479&&(_0x77cb1=_0xd10b95['query'][_0x5c35d1('0x2376')]),_0x12f953!==_0xdf7479&&(_0xd10b95[_0x5c35d1('0x77')][_0x5c35d1('0x2376')]=0x1),!_0x12f953&&(_0xd10b95[_0x5c35d1('0x77')]['page']=_0x77cb1),_0x539f19());});}const _0x47f3be=_0x38a952,_0x441343=_0x398308['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/create/dialog.html/dialog-[chunkhash].html';_0x10a66e[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0x24e1'),'$state',_0x3877e3('0x2828'),_0x3877e3('0x1850'),_0x3877e3('0x243f'),_0x3877e3('0x2313'),_0x3877e3('0x13c1'),'whatsappAccounts',_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),'license',_0x3877e3('0x21e')];function _0x10a66e(_0x4c5d1c,_0x9e918,_0x511675,_0x1620c8,_0xacf860,_0x4832e8,_0x166369,_0xa5185d,_0x72a07d,_0x52753f,_0x1daeeb,_0xb17c6,_0x468e71,_0x545120,_0x4dcdcb,_0x19391f,_0x52f43e){var _0x3fda33=_0x3877e3,_0x31aa23=this;_0x31aa23[_0x3fda33('0x2ff')]=_0x19391f,_0x31aa23[_0x3fda33('0x21e')]=_0x52f43e,_0x31aa23['currentUser']=_0x4dcdcb[_0x3fda33('0x15ed')](),_0x31aa23[_0x3fda33('0x46a')]=_0x72a07d||{'count':0x0,'rows':[]},_0x31aa23[_0x3fda33('0x758')]=_0x52753f,_0x31aa23[_0x3fda33('0xab4')]=_0x1daeeb&&_0x1daeeb['count']==0x1?_0x1daeeb[_0x3fda33('0x1b33')][0x0]:null,_0x31aa23['crudPermissions']=_0x4dcdcb[_0x3fda33('0x1778')](_0x31aa23[_0x3fda33('0xab4')]?_0x31aa23[_0x3fda33('0xab4')][_0x3fda33('0x5ed')]:null),_0x31aa23[_0x3fda33('0x1897')]=_0x3fda33('0x46a'),_0x31aa23[_0x3fda33('0x11dc')]='',_0x31aa23[_0x3fda33('0x18cf')]=null,_0x31aa23[_0x3fda33('0x15cd')]=[],_0x31aa23[_0x3fda33('0x77')]={'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':_0x3fda33('0x33'),'limit':0xa,'page':0x1},_0x31aa23[_0x3fda33('0x179c')]=_0x86640f()[_0x3fda33('0xcde')]([{'option':_0x3fda33('0x12ab'),'value':_0x3fda33('0x16e9')}],function(_0x46e37f){return _0x86640f()['replace'](_0x46e37f['value'],new RegExp('\x27','g'),'');}),_0x31aa23[_0x3fda33('0x1c88')]=_0x5b8845,_0x31aa23[_0x3fda33('0x40f')]=_0x24208f,_0x31aa23['agentadddialog']=_0x59106d,_0x31aa23[_0x3fda33('0x2593')]=_0xab49f0,_0x31aa23[_0x3fda33('0xdb1')]=_0x4449bb,_0x31aa23[_0x3fda33('0x86b')]=_0x27ac44,_0x31aa23[_0x3fda33('0x1da7')]=_0x82b595,_0x31aa23[_0x3fda33('0x2856')]=_0x5750e3,_0x31aa23[_0x3fda33('0x2702')]=_0xb7da92,_0x31aa23[_0x3fda33('0x808')]=_0x4f835d,_0x31aa23['deselectWhatsappAccounts']=_0xeca2e5,_0x31aa23[_0x3fda33('0x25b4')]=_0x1f2734,_0x4dcdcb[_0x3fda33('0x21de')](_0x3fda33('0x1bd8'))?_0xb17c6[_0x3fda33('0x11e0')][_0x3fda33('0x595')]({'fields':_0x3fda33('0x1aa8'),'sort':_0x3fda33('0x19fe')})[_0x3fda33('0x1376')][_0x3fda33('0x21ad')](function(_0x387275){var _0x31b748=_0x3fda33;_0x31aa23[_0x31b748('0x1972')]=_0x387275['rows']||[];})[_0x3fda33('0x1c1d')](function(_0x1300cb){var _0x197118=_0x3fda33;_0x545120[_0x197118('0x2092')]({'title':_0x1300cb[_0x197118('0x209')]?_0x197118('0x22d')+_0x1300cb['status']+_0x197118('0xa99')+_0x1300cb['statusText']:_0x197118('0xf59'),'msg':_0x1300cb[_0x197118('0x11c2')]?JSON[_0x197118('0x25e')](_0x1300cb[_0x197118('0x11c2')]):_0x1300cb['toString']()});}):_0xb17c6[_0x3fda33('0x11e0')][_0x3fda33('0x595')]({'fields':'id,name','sort':_0x3fda33('0x19fe')})['$promise'][_0x3fda33('0x21ad')](function(_0x4c1bf9){var _0xe3cf0e=_0x3fda33;_0x31aa23[_0xe3cf0e('0x1972')]=_0x4c1bf9[_0xe3cf0e('0x1b33')]||[];})['then'](function(){var _0x36d840=_0x3fda33;return _0xb17c6[_0x36d840('0xab4')]['get']({'userProfileId':_0x31aa23['currentUser'][_0x36d840('0x1618')],'sectionId':0x12d})[_0x36d840('0x1376')];})[_0x3fda33('0x21ad')](function(_0xa23df9){var _0x35cba1=_0x3fda33,_0x30e36d=_0xa23df9&&_0xa23df9['rows']?_0xa23df9[_0x35cba1('0x1b33')][0x0]:null;if(!_0x30e36d){var _0x226615=[],_0x3ce4fe=null;_0x31aa23['whatsappAccount']&&(_0x3ce4fe=_0x86640f()[_0x35cba1('0x1d2e')](_0x31aa23[_0x35cba1('0x1972')],{'id':Number(_0x31aa23[_0x35cba1('0x1b5d')][_0x35cba1('0x815')])}));for(var _0x45a9c0=0x0;_0x45a9c0<_0x31aa23[_0x35cba1('0x1972')][_0x35cba1('0x577')];_0x45a9c0++){_0x3ce4fe&&_0x31aa23['lists'][_0x45a9c0]['id']===_0x3ce4fe['id']&&(_0x31aa23['lists'][_0x45a9c0][_0x35cba1('0xba')]=![],_0x226615[_0x35cba1('0x206c')](_0x31aa23['lists'][_0x45a9c0]));}_0x31aa23[_0x35cba1('0x1972')]=_0x226615;}else{if(!_0x30e36d[_0x35cba1('0x80c')])return _0xb17c6[_0x35cba1('0x185e')]['get']({'sectionId':_0x30e36d['id']})[_0x35cba1('0x1376')]['then'](function(_0x54d23d){var _0x18d3ba=_0x35cba1,_0x1c57c4=_0x86640f()[_0x18d3ba('0x26c3')](_0x54d23d[_0x18d3ba('0x1b33')],function(_0x355e4b){var _0x1d3c2b=_0x18d3ba;return _0x86640f()[_0x1d3c2b('0x1d2e')](_0x31aa23[_0x1d3c2b('0x1972')],{'id':_0x355e4b[_0x1d3c2b('0x675')]});}),_0x296179=null;_0x31aa23[_0x18d3ba('0x1b5d')]&&(_0x296179=_0x86640f()[_0x18d3ba('0x1d2e')](_0x31aa23[_0x18d3ba('0x1972')],{'id':Number(_0x31aa23['whatsappAccount'][_0x18d3ba('0x815')])}));if(_0x296179&&!_0x86640f()['some'](_0x1c57c4,['id',_0x296179['id']])){var _0x4f92a5=_0x86640f()[_0x18d3ba('0x1d2e')](_0x31aa23['lists'],{'id':_0x296179['id']});_0x4f92a5[_0x18d3ba('0xba')]=![],_0x1c57c4[_0x18d3ba('0x206c')](_0x4f92a5);}_0x31aa23[_0x18d3ba('0x1972')]=_0x1c57c4;});}})[_0x3fda33('0x1c1d')](function(_0x509f01){var _0x12154b=_0x3fda33;_0x545120['error']({'title':_0x509f01[_0x12154b('0x209')]?_0x12154b('0x22d')+_0x509f01[_0x12154b('0x209')]+_0x12154b('0xa99')+_0x509f01[_0x12154b('0x1808')]:_0x12154b('0xa92'),'msg':_0x509f01[_0x12154b('0x11c2')]?JSON[_0x12154b('0x25e')](_0x509f01[_0x12154b('0x11c2')]):_0x509f01[_0x12154b('0x174f')]()});}),_0x4dcdcb[_0x3fda33('0x21de')](_0x3fda33('0x1bd8'))?_0xb17c6[_0x3fda33('0x1e26')][_0x3fda33('0x595')]({'fields':_0x3fda33('0x14d5'),'sort':_0x3fda33('0x19fe'),'nolimit':'true'})[_0x3fda33('0x1376')][_0x3fda33('0x21ad')](function(_0x39693c){var _0x2661d6=_0x3fda33;_0x31aa23[_0x2661d6('0x1fc7')]=_0x39693c[_0x2661d6('0x1b33')]||[];})[_0x3fda33('0x1c1d')](function(_0x472094){var _0x136284=_0x3fda33;_0x545120[_0x136284('0x2092')]({'title':_0x472094[_0x136284('0x209')]?_0x136284('0x22d')+_0x472094[_0x136284('0x209')]+_0x136284('0xa99')+_0x472094[_0x136284('0x1808')]:_0x136284('0xb9b'),'msg':_0x472094[_0x136284('0x11c2')]?JSON[_0x136284('0x25e')](_0x472094[_0x136284('0x11c2')]):_0x472094[_0x136284('0x174f')]()});}):_0xb17c6['pause'][_0x3fda33('0x595')]({'fields':'name,id','sort':_0x3fda33('0x19fe'),'nolimit':_0x3fda33('0x19bd')})[_0x3fda33('0x1376')][_0x3fda33('0x21ad')](function(_0x4c1503){_0x31aa23['pauses']=_0x4c1503['rows']||[];})['then'](function(){var _0x4900d8=_0x3fda33;return _0xb17c6['userProfileSection'][_0x4900d8('0x595')]({'userProfileId':_0x31aa23['currentUser'][_0x4900d8('0x1618')],'sectionId':0x3ed})[_0x4900d8('0x1376')];})['then'](function(_0x12879e){var _0x3bd8c7=_0x3fda33,_0x468fa0=_0x12879e&&_0x12879e['rows']?_0x12879e['rows'][0x0]:null;if(!_0x468fa0)_0x31aa23[_0x3bd8c7('0x1fc7')]=[];else{if(!_0x468fa0['autoAssociation'])return _0xb17c6['userProfileResource'][_0x3bd8c7('0x595')]({'sectionId':_0x468fa0['id']})[_0x3bd8c7('0x1376')][_0x3bd8c7('0x21ad')](function(_0x3f64cb){var _0x6d70fc=_0x3bd8c7,_0x103da5=_0x86640f()[_0x6d70fc('0x26c3')](_0x3f64cb[_0x6d70fc('0x1b33')],function(_0x47852b){var _0x4f5813=_0x6d70fc;return _0x86640f()[_0x4f5813('0x1d2e')](_0x31aa23[_0x4f5813('0x1fc7')],{'id':_0x47852b[_0x4f5813('0x675')]});});_0x31aa23[_0x6d70fc('0x1fc7')][_0x6d70fc('0x1a52')](function(_0x403173){var _0x315073=_0x6d70fc;!_0x86640f()[_0x315073('0x2664')](_0x103da5,['id',_0x403173['id']])&&(_0x403173['canSelect']=![]),_0x103da5['push'](_0x403173);}),_0x31aa23['pauses']=_0x103da5;});}})[_0x3fda33('0x1c1d')](function(_0x12fa8f){var _0x1b944a=_0x3fda33;_0x545120[_0x1b944a('0x2092')]({'title':_0x12fa8f['status']?_0x1b944a('0x22d')+_0x12fa8f[_0x1b944a('0x209')]+_0x1b944a('0xa99')+_0x12fa8f[_0x1b944a('0x1808')]:_0x1b944a('0x17ab'),'msg':_0x12fa8f[_0x1b944a('0x11c2')]?JSON[_0x1b944a('0x25e')](_0x12fa8f[_0x1b944a('0x11c2')]):_0x12fa8f[_0x1b944a('0x174f')]()});});function _0x5b8845(_0x1e44e0){var _0x270f2e=_0x3fda33;_0x511675['go'](_0x270f2e('0x2759'),{'id':_0x1e44e0['id'],'whatsappAccount':_0x1e44e0,'crudPermissions':_0x31aa23[_0x270f2e('0x5ed')]});}function _0x24208f(_0x3a23a5){var _0x110f28=_0x3fda33;_0x511675['go'](_0x110f28('0x2759'),{'id':_0x3a23a5['id'],'tab':0x5});}function _0x59106d(_0x495994,_0x185277){var _0x2e3613=_0x3fda33;_0xacf860[_0x2e3613('0x853')]({'controller':_0x2e3613('0xb29'),'controllerAs':'vm','templateUrl':_0x48920a,'parent':angular['element'](_0x4832e8[_0x2e3613('0x2452')]),'targetEvent':_0x185277,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x495994,'whatsappAccounts':_0x31aa23[_0x2e3613('0x46a')]?_0x31aa23['whatsappAccounts'][_0x2e3613('0x1b33')]:[],'crudPermissions':_0x31aa23[_0x2e3613('0x5ed')],'realtime':![]}});}function _0xab49f0(_0x3eea80,_0xd5bd49){var _0x3b079a=_0x3fda33,_0x5af083=_0xacf860['confirm']()[_0x3b079a('0x4b4')](_0x3b079a('0x25b6')+_0x86640f()[_0x3b079a('0x2159')](_0x3b079a('0x1b5d'))+'?')[_0x3b079a('0x276b')](_0x3b079a('0x622')+(_0x3eea80[_0x3b079a('0x19fe')]||_0x3b079a('0x1b5d'))+_0x3b079a('0x2135')+_0x3b079a('0x25e0'))[_0x3b079a('0x7a7')]('delete\x20whatsappAccount')[_0x3b079a('0x1e6d')](_0xd5bd49)['ok']('OK')[_0x3b079a('0x3b5')](_0x3b079a('0x284b'));_0xacf860[_0x3b079a('0x853')](_0x5af083)[_0x3b079a('0x21ad')](function(){_0x5750e3(_0x3eea80);},function(){var _0x469deb=_0x3b079a;console[_0x469deb('0x6fb')](_0x469deb('0x284b'));});}var _0x2f22fd=!![],_0x554ab9=0x1;_0x4c5d1c[_0x3fda33('0x10e8')](_0x3fda33('0x1948'),function(_0x56d862,_0x3fab39){var _0x4ef6a3=_0x3fda33;_0x2f22fd?_0x166369(function(){_0x2f22fd=![];}):(!_0x3fab39&&(_0x554ab9=_0x31aa23[_0x4ef6a3('0x77')][_0x4ef6a3('0x2376')]),_0x56d862!==_0x3fab39&&(_0x31aa23[_0x4ef6a3('0x77')][_0x4ef6a3('0x2376')]=0x1),!_0x56d862&&(_0x31aa23[_0x4ef6a3('0x77')]['page']=_0x554ab9),_0x31aa23[_0x4ef6a3('0x86b')]());});function _0x4449bb(_0x2a66c4){_0x31aa23['whatsappAccounts']=_0x2a66c4||{'count':0x0,'rows':[]};}function _0x27ac44(){var _0x1d3beb=_0x3fda33;_0x31aa23[_0x1d3beb('0x77')]['offset']=(_0x31aa23['query'][_0x1d3beb('0x2376')]-0x1)*_0x31aa23[_0x1d3beb('0x77')]['limit'],_0x4dcdcb[_0x1d3beb('0x21de')]('admin')?_0x31aa23['promise']=_0xb17c6[_0x1d3beb('0x1b5d')][_0x1d3beb('0x595')](_0x31aa23[_0x1d3beb('0x77')],_0x4449bb)[_0x1d3beb('0x1376')]:(_0x31aa23[_0x1d3beb('0x77')]['id']=_0x31aa23['userProfile']['id'],_0x31aa23[_0x1d3beb('0x77')]['section']=_0x1d3beb('0x1641'),_0x31aa23[_0x1d3beb('0x71b')]=_0xb17c6['userProfile']['getResources'](_0x31aa23[_0x1d3beb('0x77')],_0x4449bb)['$promise']);}function _0x82b595(_0x203eab,_0x33ada1){var _0xdc88b4=_0x3fda33;_0xacf860[_0xdc88b4('0x853')]({'controller':_0xdc88b4('0x1c4c'),'controllerAs':'vm','templateUrl':_0x441343,'parent':angular[_0xdc88b4('0x1676')](_0x4832e8[_0xdc88b4('0x2452')]),'targetEvent':_0x203eab,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x33ada1,'whatsappAccounts':_0x31aa23[_0xdc88b4('0x46a')][_0xdc88b4('0x1b33')],'license':_0x31aa23[_0xdc88b4('0x2ff')],'setting':_0x31aa23['setting'],'crudPermissions':_0x31aa23['crudPermissions']}});}function _0x5750e3(_0x1ca348){var _0x49d7fb=_0x3fda33;_0xb17c6['whatsappAccount'][_0x49d7fb('0x1164')]({'id':_0x1ca348['id']})['$promise'][_0x49d7fb('0x21ad')](function(){var _0x3835d5=_0x49d7fb;_0x86640f()[_0x3835d5('0x16a2')](_0x31aa23[_0x3835d5('0x46a')]['rows'],{'id':_0x1ca348['id']}),_0x31aa23[_0x3835d5('0x46a')][_0x3835d5('0x205f')]-=0x1,!_0x31aa23[_0x3835d5('0x46a')][_0x3835d5('0x1b33')][_0x3835d5('0x577')]&&_0x31aa23['getWhatsappAccounts'](),_0x545120['success']({'title':_0x86640f()[_0x3835d5('0x2159')]('WhatsappAccount')+_0x3835d5('0xe64'),'msg':_0x1ca348[_0x3835d5('0x19fe')]?_0x1ca348[_0x3835d5('0x19fe')]+_0x3835d5('0xb4a'):''});})[_0x49d7fb('0x1c1d')](function(_0x5a146b){var _0x142795=_0x49d7fb;if(_0x5a146b[_0x142795('0x11c2')]&&_0x5a146b[_0x142795('0x11c2')]['errors']&&_0x5a146b['data'][_0x142795('0x1a69')][_0x142795('0x577')]){_0x31aa23[_0x142795('0x1a69')]=_0x5a146b[_0x142795('0x11c2')][_0x142795('0x1a69')]||[{'message':_0x5a146b[_0x142795('0x174f')](),'type':_0x142795('0x1e75')}];for(var _0x218ab7=0x0;_0x218ab7<_0x5a146b['data'][_0x142795('0x1a69')][_0x142795('0x577')];_0x218ab7++){_0x545120[_0x142795('0x2092')]({'title':_0x5a146b[_0x142795('0x11c2')]['errors'][_0x218ab7][_0x142795('0x7fa')],'msg':_0x5a146b['data'][_0x142795('0x1a69')][_0x218ab7][_0x142795('0x1224')]});}}else _0x545120['error']({'title':_0x5a146b[_0x142795('0x209')]?_0x142795('0x22d')+_0x5a146b['status']+'\x20-\x20'+_0x5a146b[_0x142795('0x1808')]:_0x142795('0x1e75'),'msg':_0x5a146b['data']?JSON[_0x142795('0x25e')](_0x5a146b['data'][_0x142795('0x1224')]):_0x5a146b['message']||_0x5a146b['toString']()});});}function _0xb7da92(){var _0x3f0f6c=_0x3fda33,_0x27eaab=angular[_0x3f0f6c('0xd75')](_0x31aa23[_0x3f0f6c('0x15cd')]);return _0x31aa23[_0x3f0f6c('0x15cd')]=[],_0x27eaab;}function _0x4f835d(_0x273598){var _0x4212ae=_0x3fda33,_0x1ab61e=_0xacf860[_0x4212ae('0xa33')]()['title'](_0x4212ae('0xef'))['htmlContent'](_0x4212ae('0x622')+_0x31aa23[_0x4212ae('0x15cd')][_0x4212ae('0x577')]+_0x4212ae('0xd74')+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20WhatsappAccounts')[_0x4212ae('0x1e6d')](_0x273598)['ok']('OK')[_0x4212ae('0x3b5')](_0x4212ae('0x284b'));_0xacf860['show'](_0x1ab61e)['then'](function(){var _0x478bd1=_0x4212ae;_0x31aa23[_0x478bd1('0x15cd')][_0x478bd1('0x1a52')](function(_0x179e83){_0x5750e3(_0x179e83);}),_0x31aa23[_0x478bd1('0x15cd')]=[];});}function _0xeca2e5(){var _0x210552=_0x3fda33;_0x31aa23[_0x210552('0x15cd')]=[];}function _0x1f2734(){var _0x506c65=_0x3fda33;_0x31aa23[_0x506c65('0x15cd')]=_0x31aa23['whatsappAccounts'][_0x506c65('0x1b33')];}}const _0x5e80f6=_0x10a66e;_0x109a00[_0x3877e3('0x1a81')]=[_0x3877e3('0x95a'),_0x3877e3('0xa9f'),_0x3877e3('0x14c7'),'$mdDialog','$q',_0x3877e3('0x13c1'),_0x3877e3('0x1908'),'whatsappQueues',_0x3877e3('0x1f8f'),'api',_0x3877e3('0x15bc'),_0x3877e3('0x2ff'),_0x3877e3('0x21e'),'crudPermissions'];function _0x109a00(_0x6b7cc,_0x42fb21,_0x1788aa,_0x54ef30,_0x1d842e,_0x4b39dd,_0x3e4119,_0x3381ed,_0x30aae4,_0x2efd1a,_0x4a312a,_0x445952,_0x4b32d4,_0xdfc9f4){var _0x12011f=_0x3877e3,_0x20f9c2=this;_0x20f9c2['currentUser']=_0x4a312a[_0x12011f('0x15ed')](),_0x20f9c2['errors']=[],_0x20f9c2[_0x12011f('0x21e')]=_0x4b32d4,_0x20f9c2[_0x12011f('0x2ff')]=_0x445952,_0x20f9c2[_0x12011f('0x5ed')]=_0xdfc9f4,_0x20f9c2[_0x12011f('0x126a')]={},_0x20f9c2[_0x12011f('0x1432')]=_0x20f9c2['setting']&&_0x20f9c2['setting'][_0x12011f('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x20f9c2[_0x12011f('0x4b4')]=_0x12011f('0x149f'),_0x20f9c2[_0x12011f('0x1f8f')]=angular[_0x12011f('0xd75')](_0x30aae4),_0x20f9c2['whatsappQueues']=_0x3381ed,_0x20f9c2[_0x12011f('0x17e9')]=![];!_0x20f9c2[_0x12011f('0x1f8f')]&&(_0x20f9c2[_0x12011f('0x1f8f')]={'strategy':_0x12011f('0x2106'),'timeout':0xa},_0x20f9c2['title']=_0x12011f('0x2561'),_0x20f9c2[_0x12011f('0x17e9')]=!![]);_0x20f9c2['addNewWhatsappQueue']=_0x2daf50,_0x20f9c2[_0x12011f('0x19dc')]=_0x23fbf2,_0x20f9c2['deleteWhatsappQueue']=_0x6db0a4,_0x20f9c2[_0x12011f('0x279')]=_0x2aee66,_0x20f9c2[_0x12011f('0x167')]=_0x245d6b;function _0x2daf50(){var _0x2ac8b1=_0x12011f;_0x20f9c2[_0x2ac8b1('0x1a69')]=[],_0x2efd1a[_0x2ac8b1('0x1f8f')][_0x2ac8b1('0x186f')](_0x20f9c2[_0x2ac8b1('0x1f8f')])[_0x2ac8b1('0x1376')][_0x2ac8b1('0x21ad')](function(_0x168dbe){var _0x1e434a=_0x2ac8b1;_0x20f9c2[_0x1e434a('0x203f')][_0x1e434a('0xd0c')](_0x168dbe[_0x1e434a('0x3bc')]()),_0x3e4119['success']({'title':_0x1e434a('0x18f1'),'msg':_0x20f9c2['whatsappQueue']['name']?_0x20f9c2[_0x1e434a('0x1f8f')][_0x1e434a('0x19fe')]+_0x1e434a('0x1694'):''}),_0x245d6b(_0x168dbe);})['catch'](function(_0x3590b9){var _0x348f11=_0x2ac8b1;if(_0x3590b9[_0x348f11('0x11c2')]&&_0x3590b9[_0x348f11('0x11c2')][_0x348f11('0x1a69')]&&_0x3590b9[_0x348f11('0x11c2')]['errors'][_0x348f11('0x577')]){_0x20f9c2[_0x348f11('0x1a69')]=_0x3590b9[_0x348f11('0x11c2')][_0x348f11('0x1a69')]||[{'message':_0x3590b9[_0x348f11('0x174f')](),'type':_0x348f11('0x1ed4')}];for(var _0x36c601=0x0;_0x36c601<_0x3590b9[_0x348f11('0x11c2')][_0x348f11('0x1a69')][_0x348f11('0x577')];_0x36c601+=0x1){_0x3e4119['error']({'title':_0x3590b9[_0x348f11('0x11c2')]['errors'][_0x36c601][_0x348f11('0x7fa')],'msg':_0x3590b9[_0x348f11('0x11c2')][_0x348f11('0x1a69')][_0x36c601][_0x348f11('0x1224')]});}}else _0x3e4119['error']({'title':_0x3590b9[_0x348f11('0x209')]?_0x348f11('0x22d')+_0x3590b9['status']+_0x348f11('0xa99')+_0x3590b9[_0x348f11('0x1808')]:_0x348f11('0x1ed4'),'msg':_0x3590b9[_0x348f11('0x11c2')]?JSON['stringify'](_0x3590b9[_0x348f11('0x11c2')][_0x348f11('0x1224')]):_0x3590b9['toString']()});});}function _0x23fbf2(){var _0xd1b8ae=_0x12011f;_0x20f9c2[_0xd1b8ae('0x1a69')]=[],_0x2efd1a[_0xd1b8ae('0x1f8f')][_0xd1b8ae('0x5ef')]({'id':_0x20f9c2[_0xd1b8ae('0x1f8f')]['id']},_0x20f9c2[_0xd1b8ae('0x1f8f')])['$promise'][_0xd1b8ae('0x21ad')](function(_0x3dae6d){var _0x548dea=_0xd1b8ae,_0x1fbe1b=_0x86640f()[_0x548dea('0x1d2e')](_0x20f9c2['whatsappQueues'],{'id':_0x3dae6d['id']});_0x1fbe1b&&_0x86640f()[_0x548dea('0xd0e')](_0x1fbe1b,_0x86640f()[_0x548dea('0xc50')](_0x3dae6d[_0x548dea('0x3bc')](),_0x86640f()[_0x548dea('0x223b')](_0x1fbe1b))),_0x3e4119[_0x548dea('0xdb1')]({'title':'WhatsappQueue\x20properly\x20saved!','msg':_0x20f9c2['whatsappQueue']['name']?_0x20f9c2[_0x548dea('0x1f8f')][_0x548dea('0x19fe')]+_0x548dea('0x2249'):''}),_0x245d6b(_0x3dae6d);})['catch'](function(_0x317b25){var _0x3c4de7=_0xd1b8ae;if(_0x317b25['data']&&_0x317b25['data']['errors']&&_0x317b25['data']['errors'][_0x3c4de7('0x577')]){_0x20f9c2[_0x3c4de7('0x1a69')]=_0x317b25[_0x3c4de7('0x11c2')]['errors']||[{'message':_0x317b25['toString'](),'type':_0x3c4de7('0x188a')}];for(var _0x28880e=0x0;_0x28880e<_0x317b25[_0x3c4de7('0x11c2')]['errors']['length'];_0x28880e++){_0x3e4119['error']({'title':_0x317b25[_0x3c4de7('0x11c2')]['errors'][_0x28880e]['type'],'msg':_0x317b25[_0x3c4de7('0x11c2')][_0x3c4de7('0x1a69')][_0x28880e][_0x3c4de7('0x1224')]});}}else _0x3e4119[_0x3c4de7('0x2092')]({'title':_0x317b25[_0x3c4de7('0x209')]?_0x3c4de7('0x22d')+_0x317b25[_0x3c4de7('0x209')]+_0x3c4de7('0xa99')+_0x317b25['statusText']:_0x3c4de7('0x188a'),'msg':_0x317b25[_0x3c4de7('0x11c2')]?JSON[_0x3c4de7('0x25e')](_0x317b25[_0x3c4de7('0x11c2')][_0x3c4de7('0x1224')]):_0x317b25[_0x3c4de7('0x174f')]()});});}function _0x6db0a4(_0x2b8963){var _0x1cead4=_0x12011f;_0x20f9c2['errors']=[];var _0xf4e3e7=_0x54ef30['confirm']()[_0x1cead4('0x4b4')]('Are\x20you\x20sure?')[_0x1cead4('0x13fb')](_0x1cead4('0xdf5'))['ariaLabel'](_0x1cead4('0x667'))['ok']('Delete')[_0x1cead4('0x3b5')]('Cancel')[_0x1cead4('0x1e6d')](_0x2b8963);_0x54ef30['show'](_0xf4e3e7)[_0x1cead4('0x21ad')](function(){var _0x461ae7=_0x1cead4;_0x2efd1a[_0x461ae7('0x1f8f')][_0x461ae7('0x1164')]({'id':_0x20f9c2[_0x461ae7('0x1f8f')]['id']})[_0x461ae7('0x1376')][_0x461ae7('0x21ad')](function(){var _0x4e6d59=_0x461ae7;_0x86640f()[_0x4e6d59('0x16a2')](_0x20f9c2[_0x4e6d59('0x203f')],{'id':_0x20f9c2[_0x4e6d59('0x1f8f')]['id']}),_0x3e4119['success']({'title':_0x4e6d59('0x279f'),'msg':(_0x20f9c2['whatsappQueue'][_0x4e6d59('0x19fe')]||'whatsappQueue')+_0x4e6d59('0xb4a')}),_0x245d6b(_0x20f9c2[_0x4e6d59('0x1f8f')]);})[_0x461ae7('0x1c1d')](function(_0xf332da){var _0x101f2c=_0x461ae7;if(_0xf332da['data']&&_0xf332da[_0x101f2c('0x11c2')][_0x101f2c('0x1a69')]&&_0xf332da[_0x101f2c('0x11c2')][_0x101f2c('0x1a69')][_0x101f2c('0x577')]){_0x20f9c2['errors']=_0xf332da[_0x101f2c('0x11c2')][_0x101f2c('0x1a69')]||[{'message':_0xf332da[_0x101f2c('0x174f')](),'type':'api.whatsappQueue.delete'}];for(var _0x4a2f9f=0x0;_0x4a2f9f<_0xf332da[_0x101f2c('0x11c2')][_0x101f2c('0x1a69')]['length'];_0x4a2f9f++){_0x3e4119[_0x101f2c('0x2092')]({'title':_0xf332da['data']['errors'][_0x4a2f9f][_0x101f2c('0x7fa')],'msg':_0xf332da[_0x101f2c('0x11c2')][_0x101f2c('0x1a69')][_0x4a2f9f][_0x101f2c('0x1224')]});}}else _0x3e4119[_0x101f2c('0x2092')]({'title':_0xf332da[_0x101f2c('0x209')]?_0x101f2c('0x22d')+_0xf332da[_0x101f2c('0x209')]+'\x20-\x20'+_0xf332da[_0x101f2c('0x1808')]:_0x101f2c('0x1df4'),'msg':_0xf332da['data']?JSON[_0x101f2c('0x25e')](_0xf332da[_0x101f2c('0x11c2')][_0x101f2c('0x1224')]):_0xf332da[_0x101f2c('0x1224')]||_0xf332da[_0x101f2c('0x174f')]()});});},function(){});}function _0x2aee66(_0x17e5f8){return _0x17e5f8===null?undefined:new Date(_0x17e5f8);}function _0x245d6b(_0x516e90){var _0x111c61=_0x12011f;_0x54ef30[_0x111c61('0x1c24')](_0x516e90);}}const _0x4e7b24=_0x109a00;_0x2ed08f['$inject']=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),'api',_0x3877e3('0x1f8f'),_0x3877e3('0x203f'),_0x3877e3('0x116a'),_0x3877e3('0x13c1'),_0x3877e3('0x15bc'),'crudPermissions'];function _0x2ed08f(_0x59aa49,_0x4d6100,_0x342e74,_0x5a418c,_0x3b8cf4,_0x4a296c,_0x58d248,_0x454f09,_0x428f2c,_0x59de84){var _0xe47d7b=_0x3877e3,_0x45123f=this;_0x45123f[_0xe47d7b('0x123f')]=_0x428f2c['getCurrentUser'](),_0x45123f[_0xe47d7b('0x1f8f')]=_0x3b8cf4,_0x45123f[_0xe47d7b('0x5ed')]=_0x59de84,_0x45123f[_0xe47d7b('0x116a')]=_0x58d248,_0x45123f[_0xe47d7b('0x1b9a')]=[],_0x45123f[_0xe47d7b('0x1e09')]=[],_0x45123f['selectedItems']=[],_0x45123f[_0xe47d7b('0x91b')]=[],_0x45123f['startingSelectedItems']=[],_0x45123f[_0xe47d7b('0x1bb9')]=![],_0x45123f[_0xe47d7b('0x1081')]=_0x3cd680,_0x45123f[_0xe47d7b('0x265b')]=_0x556625,_0x45123f[_0xe47d7b('0x167')]=_0x947320,_0x45123f['dualMultiselectOptions']={'readOnly':!_0x45123f[_0xe47d7b('0x5ed')]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0xe47d7b('0x20f5'),'line2':[_0xe47d7b('0x19fe'),_0xe47d7b('0x201f')],'line3':'','labelAll':_0x454f09[_0xe47d7b('0x183e')](_0xe47d7b('0x24c4')),'labelSelected':_0x454f09[_0xe47d7b('0x183e')]('WHATSAPP.SELECTED_AGENTS'),'transferCallback':function _0x16bb43(){var _0x464c80=_0xe47d7b,_0x472323=_0x86640f()['xorBy'](_0x45123f[_0x464c80('0x2584')],_0x45123f[_0x464c80('0x2629')],'id');_0x45123f[_0x464c80('0x1bb9')]=_0x86640f()[_0x464c80('0x23aa')](_0x472323)?![]:!![];}};function _0x3cd680(){var _0x4e0afb=_0xe47d7b;return _0x428f2c[_0x4e0afb('0x21de')](_0x4e0afb('0x1bd8'))?_0x592eca()['catch'](function(_0x4034cf){var _0x1806ef=_0x4e0afb;_0x342e74[_0x1806ef('0x2092')]({'title':_0x4034cf[_0x1806ef('0x209')]?_0x1806ef('0x22d')+_0x4034cf[_0x1806ef('0x209')]+'\x20-\x20'+_0x4034cf['statusText']:'SYSTEM:GET_AGENTS','msg':_0x4034cf['status']?JSON[_0x1806ef('0x25e')](_0x4034cf['data']):_0x4034cf['toString']()});}):_0x18c2d9()[_0x4e0afb('0x21ad')](function(_0x11d55f){var _0xa04bc2=_0x4e0afb;return _0x45123f[_0xa04bc2('0x26ad')]=_0x11d55f,_0x592eca();})[_0x4e0afb('0x1c1d')](function(_0x123b7f){var _0x539470=_0x4e0afb;_0x342e74['error']({'title':_0x123b7f[_0x539470('0x209')]?_0x539470('0x22d')+_0x123b7f[_0x539470('0x209')]+_0x539470('0xa99')+_0x123b7f['statusText']:_0x539470('0x1381'),'msg':_0x123b7f[_0x539470('0x209')]?JSON[_0x539470('0x25e')](_0x123b7f[_0x539470('0x11c2')]):_0x123b7f['toString']()});});}function _0x18c2d9(){return _0x4d6100(function(_0x7a3ecf,_0x36f1c0){var _0x309165=a0_0x2e7f;_0x5a418c['userProfileSection'][_0x309165('0x595')]({'userProfileId':_0x45123f[_0x309165('0x123f')][_0x309165('0x1618')],'name':_0x309165('0xfed')})[_0x309165('0x1376')][_0x309165('0x21ad')](function(_0x4dc537){var _0x1c7704=_0x309165,_0x3be50c=_0x4dc537&&_0x4dc537[_0x1c7704('0x1b33')]?_0x4dc537[_0x1c7704('0x1b33')][0x0]:null;_0x7a3ecf(_0x3be50c);})[_0x309165('0x1c1d')](function(_0x5f2b15){_0x36f1c0(_0x5f2b15);});});}function _0x592eca(){return _0x4d6100(function(_0x42ee11,_0x571999){var _0x26c15f=a0_0x2e7f;return _0x24dbf4()[_0x26c15f('0x21ad')](function(_0x5d1f2c){var _0x35f14e=_0x26c15f;return _0x45123f['items']=_0x5d1f2c[_0x35f14e('0x1b33')]?_0x5d1f2c['rows']:[],_0x428f2c[_0x35f14e('0x21de')](_0x35f14e('0x1bd8'))?_0x5d1f2c:_0x45123f[_0x35f14e('0x26ad')]?_0x45123f[_0x35f14e('0x26ad')][_0x35f14e('0x80c')]?_0x5d1f2c:_0x118620():null;})[_0x26c15f('0x21ad')](function(_0x3a2ed4){var _0x4c7463=_0x26c15f,_0x4e3217=_0x3a2ed4&&_0x3a2ed4['rows']?_0x3a2ed4['rows']:[];return _0x45123f[_0x4c7463('0x1e09')]=_0x86640f()[_0x4c7463('0x26c3')](_0x4e3217,function(_0x4c77d2){var _0x45a8cd=_0x4c7463;return _0x86640f()[_0x45a8cd('0x1d2e')](_0x45123f[_0x45a8cd('0x1b9a')],{'id':_0x428f2c[_0x45a8cd('0x21de')]('admin')||_0x45123f[_0x45a8cd('0x26ad')][_0x45a8cd('0x80c')]?_0x4c77d2['id']:_0x4c77d2['resourceId']});}),_0x45123f[_0x4c7463('0x91b')]=angular['copy'](_0x45123f[_0x4c7463('0x1e09')]),_0x45123f[_0x4c7463('0x1b9a')]['forEach'](function(_0x3b5914){var _0x362437=_0x4c7463,_0x47939c=_0x86640f()['find'](_0x45123f[_0x362437('0x1e09')],{'id':_0x3b5914['id']});_0x428f2c[_0x362437('0x21de')](_0x362437('0x1bd8'))?_0x3b5914[_0x362437('0x118b')]=!![]:_0x3b5914[_0x362437('0x118b')]=typeof _0x47939c!==_0x362437('0xddc')?!![]:![];}),_0x59b286();})[_0x26c15f('0x21ad')](function(_0x426864){var _0x3ad490=_0x26c15f,_0x52bd3d=_0x426864&&_0x426864['rows']?_0x426864['rows']:[];_0x45123f[_0x3ad490('0x2629')]=_0x86640f()[_0x3ad490('0x26c3')](_0x52bd3d,function(_0x18a951){var _0x3585fa=_0x3ad490,_0x267b8a=_0x86640f()[_0x3585fa('0x1d2e')](_0x45123f[_0x3585fa('0x1b9a')],{'id':_0x18a951['id']});return _0x267b8a['penalty']=_0x18a951['UserWhatsappQueue']?_0x3585fa('0x5c2')+_0x18a951['UserWhatsappQueue'][_0x3585fa('0x1195')]:'',_0x267b8a[_0x3585fa('0x201f')]=typeof _0x18a951['internal']!==_0x3585fa('0xddc')?'<'+_0x18a951['internal']+'>':'',_0x267b8a;}),_0x45123f[_0x3ad490('0x2584')]=angular[_0x3ad490('0xd75')](_0x45123f['selectedItems']),_0x45123f[_0x3ad490('0x909')][_0x3ad490('0x2629')]=_0x45123f[_0x3ad490('0x2629')],_0x45123f['dualMultiselectOptions']['items']=_0x86640f()[_0x3ad490('0x1eab')](_0x45123f[_0x3ad490('0x1e09')],_0x45123f['dualMultiselectOptions']['selectedItems'],'id'),_0x42ee11();})[_0x26c15f('0x1c1d')](function(_0x48b25c){_0x571999(_0x48b25c);});});}function _0x118620(){return _0x4d6100(function(_0x25223d,_0x3926d4){var _0xec67c5=a0_0x2e7f;return _0x5a418c[_0xec67c5('0x185e')]['get']({'sectionId':_0x45123f[_0xec67c5('0x26ad')]['id'],'nolimit':!![]})['$promise'][_0xec67c5('0x21ad')](function(_0x10df85){_0x25223d(_0x10df85);})[_0xec67c5('0x1c1d')](function(_0x5c2133){_0x3926d4(_0x5c2133);});});}function _0x59b286(){return _0x4d6100(function(_0x1fe960,_0x51b6cf){var _0x418109=a0_0x2e7f;return _0x5a418c[_0x418109('0x1f8f')][_0x418109('0x13ad')]({'id':_0x45123f[_0x418109('0x1f8f')]['id'],'fields':_0x418109('0x1eea'),'nolimit':!![],'role':_0x418109('0x2402')})['$promise']['then'](function(_0x476416){_0x1fe960(_0x476416);})[_0x418109('0x1c1d')](function(_0xb71c62){_0x51b6cf(_0xb71c62);});});}function _0x24dbf4(){return _0x4d6100(function(_0x4cf8ec,_0x27c215){var _0x29482e=a0_0x2e7f;return _0x5a418c[_0x29482e('0x1775')][_0x29482e('0x595')]({'fields':_0x29482e('0x1eea'),'nolimit':!![],'role':_0x29482e('0x2402')})[_0x29482e('0x1376')][_0x29482e('0x21ad')](function(_0x1859c9){_0x4cf8ec(_0x1859c9);})['catch'](function(_0x5f1273){_0x27c215(_0x5f1273);});});}function _0x2b47ea(_0x31c361){return _0x4d6100(function(_0x4d0060,_0x255ec8){var _0x295c71=a0_0x2e7f;_0x86640f()[_0x295c71('0x23aa')](_0x31c361)?_0x4d0060():_0x5a418c[_0x295c71('0x1f8f')][_0x295c71('0x1116')]({'id':_0x45123f[_0x295c71('0x1f8f')]['id'],'ids':_0x86640f()[_0x295c71('0x26c3')](_0x31c361,'id')})[_0x295c71('0x1376')][_0x295c71('0x21ad')](function(){_0x4d0060();})[_0x295c71('0x1c1d')](function(_0x40d107){_0x255ec8(_0x40d107);});});}function _0x4c3a33(_0x10f3c5){return _0x4d6100(function(_0x19fb54,_0x29985f){var _0x2be114=a0_0x2e7f;_0x86640f()['isEmpty'](_0x10f3c5)?_0x19fb54():_0x5a418c[_0x2be114('0x1f8f')][_0x2be114('0x59e')]({'id':_0x45123f[_0x2be114('0x1f8f')]['id'],'ids':_0x86640f()[_0x2be114('0x26c3')](_0x10f3c5,'id')})['$promise'][_0x2be114('0x21ad')](function(){_0x19fb54();})[_0x2be114('0x1c1d')](function(_0x4d72d3){_0x29985f(_0x4d72d3);});});}function _0x556625(){var _0xc58422=_0xe47d7b,_0x1181c4=_0x86640f()[_0xc58422('0x1eab')](_0x45123f[_0xc58422('0x2584')],_0x45123f['selectedItems'],'id'),_0x229271=_0x86640f()[_0xc58422('0x1eab')](_0x45123f[_0xc58422('0x2629')],_0x45123f[_0xc58422('0x2584')],'id');return _0x4c3a33(_0x1181c4)[_0xc58422('0x21ad')](function(){return _0x2b47ea(_0x229271);})[_0xc58422('0x21ad')](function(){var _0x389530=_0xc58422;_0x45123f[_0x389530('0x1bb9')]=![],_0x45123f[_0x389530('0x91b')]=angular[_0x389530('0xd75')](_0x45123f[_0x389530('0x1e09')]),_0x45123f[_0x389530('0x2584')]=angular['copy'](_0x45123f[_0x389530('0x2629')]),_0x342e74[_0x389530('0xdb1')]({'title':_0x389530('0x2804'),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})[_0xc58422('0x1c1d')](function(_0x57e034){var _0x14ed88=_0xc58422;_0x342e74[_0x14ed88('0x2092')]({'title':_0x57e034[_0x14ed88('0x209')]?_0x14ed88('0x22d')+_0x57e034['status']+'\x20-\x20'+_0x57e034[_0x14ed88('0x1808')]:_0x14ed88('0x1dd7'),'msg':_0x57e034[_0x14ed88('0x209')]?JSON[_0x14ed88('0x25e')](_0x57e034[_0x14ed88('0x11c2')]):_0x57e034[_0x14ed88('0x174f')]()});});}function _0x947320(){var _0x272906=_0xe47d7b;_0x59aa49[_0x272906('0x1c24')]();}}const _0x31d3d5=_0x2ed08f;_0x42cfaa['$inject']=[_0x3877e3('0x1850'),'$q',_0x3877e3('0x1908'),_0x3877e3('0xccd'),_0x3877e3('0x1f8f'),_0x3877e3('0x13c1'),_0x3877e3('0x15bc'),'crudPermissions'];function _0x42cfaa(_0x4c1c78,_0x30fc61,_0x18c81b,_0x8c910b,_0x3bc4e,_0x5d3ec0,_0x1ab452,_0x49f6d5){var _0x2942e5=_0x3877e3,_0x258c1c=this;_0x258c1c['currentUser']=_0x1ab452[_0x2942e5('0x15ed')](),_0x258c1c[_0x2942e5('0x1f8f')]=_0x3bc4e,_0x258c1c[_0x2942e5('0x5ed')]=_0x49f6d5,_0x258c1c[_0x2942e5('0x1b9a')]=[],_0x258c1c[_0x2942e5('0x1e09')]=[],_0x258c1c[_0x2942e5('0x2629')]=[],_0x258c1c[_0x2942e5('0x91b')]=[],_0x258c1c[_0x2942e5('0x2584')]=[],_0x258c1c[_0x2942e5('0x1bb9')]=![],_0x258c1c[_0x2942e5('0x909')]={'readOnly':!_0x258c1c[_0x2942e5('0x5ed')][_0x2942e5('0x6e2')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x2942e5('0x19fe'),'line2':'','line3':'','labelAll':_0x5d3ec0[_0x2942e5('0x183e')](_0x2942e5('0x1aae')),'labelSelected':_0x5d3ec0['instant']('WHATSAPP.SELECTED_TEAMS'),'transferCallback':function _0x43cead(){var _0x533dc2=_0x2942e5,_0x58fada=_0x86640f()[_0x533dc2('0x1473')](_0x258c1c[_0x533dc2('0x2584')],_0x258c1c[_0x533dc2('0x2629')],'id');_0x258c1c[_0x533dc2('0x1bb9')]=_0x86640f()['isEmpty'](_0x58fada)?![]:!![];}},_0x258c1c[_0x2942e5('0x1081')]=_0x46e813,_0x258c1c[_0x2942e5('0x2359')]=_0x17cb44,_0x258c1c[_0x2942e5('0x167')]=_0x5638b4;function _0x46e813(){var _0x1a357d=_0x2942e5;return _0x1ab452[_0x1a357d('0x21de')]('admin')?_0x24e97f()[_0x1a357d('0x1c1d')](function(_0xbe21b2){var _0x426e41=_0x1a357d;_0x18c81b[_0x426e41('0x2092')]({'title':_0xbe21b2[_0x426e41('0x209')]?_0x426e41('0x22d')+_0xbe21b2['status']+_0x426e41('0xa99')+_0xbe21b2[_0x426e41('0x1808')]:_0x426e41('0x2479'),'msg':_0xbe21b2[_0x426e41('0x209')]?JSON[_0x426e41('0x25e')](_0xbe21b2[_0x426e41('0x11c2')]):_0xbe21b2[_0x426e41('0x174f')]()});}):_0x2e2459()['then'](function(_0x1394d8){var _0x5edaed=_0x1a357d;return _0x258c1c[_0x5edaed('0x26ad')]=_0x1394d8,_0x24e97f();})['catch'](function(_0x2e2065){var _0x2903dc=_0x1a357d;_0x18c81b[_0x2903dc('0x2092')]({'title':_0x2e2065[_0x2903dc('0x209')]?_0x2903dc('0x22d')+_0x2e2065[_0x2903dc('0x209')]+_0x2903dc('0xa99')+_0x2e2065[_0x2903dc('0x1808')]:_0x2903dc('0x2479'),'msg':_0x2e2065['status']?JSON[_0x2903dc('0x25e')](_0x2e2065[_0x2903dc('0x11c2')]):_0x2e2065['toString']()});});}function _0x2e2459(){return _0x30fc61(function(_0x234c75,_0x4884c7){var _0x2a0389=a0_0x2e7f;_0x8c910b[_0x2a0389('0xab4')][_0x2a0389('0x595')]({'userProfileId':_0x258c1c[_0x2a0389('0x123f')][_0x2a0389('0x1618')],'name':_0x2a0389('0xa27')})[_0x2a0389('0x1376')][_0x2a0389('0x21ad')](function(_0x240a98){var _0x5bac56=_0x2a0389,_0x5e1083=_0x240a98&&_0x240a98['rows']?_0x240a98[_0x5bac56('0x1b33')][0x0]:null;_0x234c75(_0x5e1083);})[_0x2a0389('0x1c1d')](function(_0x2e771){_0x4884c7(_0x2e771);});});}function _0x24e97f(){return _0x30fc61(function(_0x305098,_0x49abf9){var _0x5736aa=a0_0x2e7f;return _0x1ad81f()[_0x5736aa('0x21ad')](function(_0x542df7){var _0x4d785c=_0x5736aa;return _0x258c1c[_0x4d785c('0x1b9a')]=_0x542df7['rows']?_0x542df7['rows']:[],_0x1ab452[_0x4d785c('0x21de')](_0x4d785c('0x1bd8'))?_0x542df7:_0x258c1c[_0x4d785c('0x26ad')]?_0x258c1c[_0x4d785c('0x26ad')]['autoAssociation']?_0x542df7:_0x2c32f6():null;})['then'](function(_0xcc1925){var _0x26c8cd=_0x5736aa,_0x542b62=_0xcc1925&&_0xcc1925[_0x26c8cd('0x1b33')]?_0xcc1925[_0x26c8cd('0x1b33')]:[];return _0x258c1c['allowedItems']=_0x86640f()[_0x26c8cd('0x26c3')](_0x542b62,function(_0x196aa4){var _0x31e334=_0x26c8cd;return _0x86640f()['find'](_0x258c1c[_0x31e334('0x1b9a')],{'id':_0x1ab452['hasRole'](_0x31e334('0x1bd8'))||_0x258c1c[_0x31e334('0x26ad')]['autoAssociation']?_0x196aa4['id']:_0x196aa4['resourceId']});}),_0x258c1c[_0x26c8cd('0x1b9a')]['forEach'](function(_0xf12422){var _0x35e8a3=_0x26c8cd,_0x5d14fa=_0x86640f()[_0x35e8a3('0x1d2e')](_0x258c1c[_0x35e8a3('0x1e09')],{'id':_0xf12422['id']});_0x1ab452[_0x35e8a3('0x21de')](_0x35e8a3('0x1bd8'))?_0xf12422[_0x35e8a3('0x118b')]=!![]:_0xf12422['isValid']=typeof _0x5d14fa!==_0x35e8a3('0xddc')?!![]:![];}),_0x106ba7();})[_0x5736aa('0x21ad')](function(_0x1591a4){var _0x5ef3be=_0x5736aa,_0x1f0a20=_0x1591a4&&_0x1591a4[_0x5ef3be('0x1b33')]?_0x1591a4[_0x5ef3be('0x1b33')]:[];_0x258c1c[_0x5ef3be('0x2629')]=_0x86640f()[_0x5ef3be('0x26c3')](_0x1f0a20,function(_0x3c0aa5){var _0x9419b7=_0x5ef3be;return _0x86640f()['find'](_0x258c1c[_0x9419b7('0x1b9a')],{'id':_0x3c0aa5['id']});}),_0x258c1c[_0x5ef3be('0x2584')]=angular[_0x5ef3be('0xd75')](_0x258c1c[_0x5ef3be('0x2629')]),_0x258c1c['dualMultiselectOptions']['selectedItems']=_0x258c1c[_0x5ef3be('0x2629')],_0x258c1c[_0x5ef3be('0x909')][_0x5ef3be('0x1b9a')]=_0x86640f()['differenceBy'](_0x258c1c[_0x5ef3be('0x1e09')],_0x258c1c[_0x5ef3be('0x909')]['selectedItems'],'id'),_0x305098();})[_0x5736aa('0x1c1d')](function(_0x124d99){_0x49abf9(_0x124d99);});});}function _0x2c32f6(){return _0x30fc61(function(_0x2eaf4c,_0x244259){var _0x1ce362=a0_0x2e7f;return _0x8c910b[_0x1ce362('0x185e')][_0x1ce362('0x595')]({'sectionId':_0x258c1c[_0x1ce362('0x26ad')]['id'],'nolimit':!![]})[_0x1ce362('0x1376')][_0x1ce362('0x21ad')](function(_0xba816e){_0x2eaf4c(_0xba816e);})[_0x1ce362('0x1c1d')](function(_0x453905){_0x244259(_0x453905);});});}function _0x106ba7(){return _0x30fc61(function(_0xf6a4e1,_0x537cb1){var _0x405f80=a0_0x2e7f;return _0x8c910b[_0x405f80('0x1f8f')][_0x405f80('0x25df')]({'id':_0x258c1c[_0x405f80('0x1f8f')]['id'],'fields':_0x405f80('0x1aa8'),'nolimit':!![]})['$promise'][_0x405f80('0x21ad')](function(_0x1d1a95){_0xf6a4e1(_0x1d1a95);})['catch'](function(_0x4bd8ab){_0x537cb1(_0x4bd8ab);});});}function _0x1ad81f(){return _0x30fc61(function(_0x57458c,_0x1d74b2){var _0x449112=a0_0x2e7f;return _0x8c910b[_0x449112('0x1a9c')][_0x449112('0x595')]({'fields':_0x449112('0x1aa8'),'nolimit':!![]})['$promise'][_0x449112('0x21ad')](function(_0xe389e7){_0x57458c(_0xe389e7);})[_0x449112('0x1c1d')](function(_0x139158){_0x1d74b2(_0x139158);});});}function _0x5ddac1(_0x285cd0){return _0x30fc61(function(_0x58423d,_0x57318d){var _0x41af58=a0_0x2e7f;_0x86640f()['isEmpty'](_0x285cd0)?_0x58423d():_0x8c910b[_0x41af58('0x1f8f')][_0x41af58('0x36c')]({'id':_0x258c1c['whatsappQueue']['id'],'ids':_0x86640f()[_0x41af58('0x26c3')](_0x285cd0,'id')})[_0x41af58('0x1376')]['then'](function(){_0x58423d();})[_0x41af58('0x1c1d')](function(_0xa58499){_0x57318d(_0xa58499);});});}function _0x3dd8da(_0x5efb48){return _0x30fc61(function(_0x2f2ab8,_0x56f844){var _0x4d04ea=a0_0x2e7f;_0x86640f()['isEmpty'](_0x5efb48)?_0x2f2ab8():_0x8c910b[_0x4d04ea('0x1f8f')][_0x4d04ea('0xbc7')]({'id':_0x258c1c['whatsappQueue']['id'],'ids':_0x86640f()[_0x4d04ea('0x26c3')](_0x5efb48,'id')})[_0x4d04ea('0x1376')][_0x4d04ea('0x21ad')](function(){_0x2f2ab8();})['catch'](function(_0x70a6c5){_0x56f844(_0x70a6c5);});});}function _0x17cb44(){var _0x5e05d3=_0x2942e5,_0x40b207=_0x86640f()['differenceBy'](_0x258c1c[_0x5e05d3('0x2584')],_0x258c1c[_0x5e05d3('0x2629')],'id'),_0x321b25=_0x86640f()['differenceBy'](_0x258c1c[_0x5e05d3('0x2629')],_0x258c1c[_0x5e05d3('0x2584')],'id');return _0x3dd8da(_0x40b207)[_0x5e05d3('0x21ad')](function(){return _0x5ddac1(_0x321b25);})[_0x5e05d3('0x21ad')](function(){var _0x258733=_0x5e05d3;_0x258c1c[_0x258733('0x1bb9')]=![],_0x258c1c[_0x258733('0x91b')]=angular['copy'](_0x258c1c['allowedItems']),_0x258c1c[_0x258733('0x2584')]=angular[_0x258733('0xd75')](_0x258c1c[_0x258733('0x2629')]),_0x18c81b['success']({'title':_0x258733('0x2804'),'msg':_0x258733('0x4c8')});})['catch'](function(_0x4e46a9){var _0x11ba21=_0x5e05d3;_0x18c81b[_0x11ba21('0x2092')]({'title':_0x4e46a9[_0x11ba21('0x209')]?_0x11ba21('0x22d')+_0x4e46a9['status']+'\x20-\x20'+_0x4e46a9[_0x11ba21('0x1808')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x4e46a9['status']?JSON[_0x11ba21('0x25e')](_0x4e46a9[_0x11ba21('0x11c2')]):_0x4e46a9[_0x11ba21('0x174f')]()});});}function _0x5638b4(){var _0x476b15=_0x2942e5;_0x4c1c78[_0x476b15('0x1c24')]();}}const _0x48a60c=_0x42cfaa,_0x42aff8=_0x398308['p']+'src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/teamadd/teamadd.html/teamadd-[chunkhash].html';_0x294641['$inject']=[_0x3877e3('0xa9f'),'$location',_0x3877e3('0x1850'),_0x3877e3('0x243f'),'$translate','license','setting',_0x3877e3('0xccd'),_0x3877e3('0x1908'),_0x3877e3('0x15bc'),_0x3877e3('0x1f8f'),_0x3877e3('0xab4')];function _0x294641(_0x179807,_0x5944fb,_0x1a1927,_0x1fa4a1,_0x409e8f,_0x36c107,_0x1d251e,_0x1e0515,_0x4b52cd,_0x9a7712,_0x969f28,_0x377c33){var _0x126bbb=_0x3877e3,_0x4c340f=this;_0x4c340f[_0x126bbb('0x123f')]=_0x9a7712['getCurrentUser'](),_0x4c340f['license']=_0x36c107,_0x4c340f['setting']=_0x1d251e,_0x4c340f[_0x126bbb('0x1432')]=_0x4c340f[_0x126bbb('0x21e')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4c340f['location']=_0x5944fb['protocol']()+_0x126bbb('0x22a9')+_0x5944fb[_0x126bbb('0x1c01')](),_0x4c340f[_0x126bbb('0x1f8f')]=_0x969f28||_0x179807[_0x126bbb('0x171b')][_0x126bbb('0x1f8f')]||{},_0x4c340f[_0x126bbb('0xab4')]=_0x377c33&&_0x377c33[_0x126bbb('0x205f')]==0x1?_0x377c33[_0x126bbb('0x1b33')][0x0]:null,_0x4c340f[_0x126bbb('0x5ed')]=_0x9a7712[_0x126bbb('0x1778')](_0x4c340f[_0x126bbb('0xab4')]?_0x4c340f[_0x126bbb('0xab4')][_0x126bbb('0x5ed')]:null),_0x4c340f[_0x126bbb('0x126a')]={},_0x4c340f['selectedTab']=_0x179807['params'][_0x126bbb('0x12e1')]||0x0,_0x4c340f['teamadddialog']=_0xfeffbe,_0x4c340f[_0x126bbb('0x1297')]=_0x300edd,_0x4c340f[_0x126bbb('0x95b')]=_0x4b52cd[_0x126bbb('0x231c')],_0x4c340f[_0x126bbb('0x12b0')]=_0xe660b3,_0x4c340f['saveWhatsappQueue']=_0x45a42b;function _0xfeffbe(_0x5ab0f4,_0x1f973d){var _0x2b33e4=_0x126bbb;_0x1a1927['show']({'controller':'WhatsappQueueteamaddController','controllerAs':'vm','templateUrl':_0x42aff8,'parent':angular[_0x2b33e4('0x1676')](_0x1fa4a1[_0x2b33e4('0x2452')]),'targetEvent':_0x1f973d,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x5ab0f4,'whatsappQueues':_0x4c340f[_0x2b33e4('0x203f')]?_0x4c340f[_0x2b33e4('0x203f')][_0x2b33e4('0x1b33')]:[],'crudPermissions':_0x4c340f['crudPermissions']}});}function _0x300edd(_0x57b018,_0x21703c){var _0x3587ba=_0x126bbb;_0x1a1927[_0x3587ba('0x853')]({'controller':_0x3587ba('0x1f55'),'controllerAs':'vm','templateUrl':_0x192f88,'parent':angular[_0x3587ba('0x1676')](_0x1fa4a1['body']),'targetEvent':_0x21703c,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x57b018,'whatsappQueues':_0x4c340f['whatsappQueues']?_0x4c340f[_0x3587ba('0x203f')]['rows']:[],'crudPermissions':_0x4c340f[_0x3587ba('0x5ed')],'realtime':![]}});}function _0xe660b3(){var _0x182b66=_0x126bbb;_0x179807['go']('app.whatsapp.whatsappQueues',{},{'reload':_0x182b66('0xf7e')});}function _0x45a42b(){var _0x17be79=_0x126bbb;_0x1e0515['whatsappQueue']['update']({'id':_0x4c340f[_0x17be79('0x1f8f')]['id']},_0x4c340f[_0x17be79('0x1f8f')])['$promise'][_0x17be79('0x21ad')](function(){var _0x6c1a25=_0x17be79;_0x4b52cd[_0x6c1a25('0xdb1')]({'title':'WhatsappQueue\x20updated!','msg':_0x4c340f[_0x6c1a25('0x1f8f')][_0x6c1a25('0x19fe')]?_0x4c340f[_0x6c1a25('0x1f8f')][_0x6c1a25('0x19fe')]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x583d96){var _0x303e1d=_0x17be79;_0x4b52cd['error']({'title':_0x583d96[_0x303e1d('0x209')]?_0x303e1d('0x22d')+_0x583d96[_0x303e1d('0x209')]+_0x303e1d('0xa99')+_0x583d96[_0x303e1d('0x1808')]:_0x303e1d('0x1f61'),'msg':_0x583d96[_0x303e1d('0x11c2')]?JSON[_0x303e1d('0x25e')](_0x583d96[_0x303e1d('0x11c2')]):_0x583d96[_0x303e1d('0x174f')]()});});}}const _0x48a46f=_0x294641;_0x592133[_0x3877e3('0x1a81')]=['$scope',_0x3877e3('0x24e1'),_0x3877e3('0xa9f'),_0x3877e3('0x2828'),_0x3877e3('0x1850'),'$document',_0x3877e3('0x2313'),'$translate',_0x3877e3('0x203f'),_0x3877e3('0x758'),_0x3877e3('0xab4'),_0x3877e3('0xccd'),_0x3877e3('0x12d9'),_0x3877e3('0x1908'),'Auth','license',_0x3877e3('0x21e')];function _0x592133(_0x5766e2,_0x236bff,_0x3c5621,_0x4790da,_0x3f232d,_0x5cf5e8,_0x1b742e,_0x59c6e4,_0x247186,_0x1acc08,_0xfab7c7,_0x442d37,_0x1f2b14,_0x392519,_0x325978,_0x9b6a0e,_0x15d7d5){var _0x4f4ca7=_0x3877e3,_0x240dba=this;_0x240dba[_0x4f4ca7('0x2ff')]=_0x9b6a0e,_0x240dba[_0x4f4ca7('0x21e')]=_0x15d7d5,_0x240dba[_0x4f4ca7('0x123f')]=_0x325978[_0x4f4ca7('0x15ed')](),_0x240dba[_0x4f4ca7('0x203f')]=_0x247186||{'count':0x0,'rows':[]},_0x240dba[_0x4f4ca7('0x758')]=_0x1acc08,_0x240dba[_0x4f4ca7('0xab4')]=_0xfab7c7&&_0xfab7c7[_0x4f4ca7('0x205f')]==0x1?_0xfab7c7['rows'][0x0]:null,_0x240dba[_0x4f4ca7('0x5ed')]=_0x325978[_0x4f4ca7('0x1778')](_0x240dba['userProfileSection']?_0x240dba[_0x4f4ca7('0xab4')]['crudPermissions']:null),_0x240dba[_0x4f4ca7('0x1897')]='whatsappQueues',_0x240dba['listOrder']='',_0x240dba[_0x4f4ca7('0x18cf')]=null,_0x240dba[_0x4f4ca7('0x1fc3')]=[],_0x240dba['query']={'fields':_0x4f4ca7('0x87f'),'sort':'-updatedAt','channel':_0x4f4ca7('0x1ad4'),'limit':0xa,'page':0x1},_0x240dba[_0x4f4ca7('0x556')]=_0x86640f()[_0x4f4ca7('0xcde')]([{'option':_0x4f4ca7('0x5a0'),'value':_0x4f4ca7('0x11a3')},{'option':'RR\x20Memory','value':_0x4f4ca7('0xa6b')}],function(_0x31d502){var _0x5d32c5=_0x4f4ca7;return _0x86640f()[_0x5d32c5('0x16e4')](_0x31d502[_0x5d32c5('0x2228')],new RegExp('\x27','g'),'');}),_0x240dba['editstate']=_0x708839,_0x240dba[_0x4f4ca7('0x1111')]=_0x2f2bbd,_0x240dba[_0x4f4ca7('0x1297')]=_0x130c02,_0x240dba[_0x4f4ca7('0x2593')]=_0x18a770,_0x240dba[_0x4f4ca7('0x1db4')]=_0x251cb9,_0x240dba[_0x4f4ca7('0xdb1')]=_0x1cf072,_0x240dba['getWhatsappQueues']=_0x5ecab0,_0x240dba[_0x4f4ca7('0xf78')]=_0x291cf3,_0x240dba[_0x4f4ca7('0x13b8')]=_0x2b7603,_0x240dba[_0x4f4ca7('0x147f')]=_0x34de9d,_0x240dba[_0x4f4ca7('0x1a2d')]=_0x1a3127,_0x240dba['deselectWhatsappQueues']=_0x3c3b5b,_0x240dba[_0x4f4ca7('0x1a2a')]=_0x542ed8;function _0x708839(_0x425c1b){var _0x16f0bd=_0x4f4ca7;_0x3c5621['go'](_0x16f0bd('0x1c64'),{'id':_0x425c1b['id'],'whatsappQueue':_0x425c1b,'crudPermissions':_0x240dba[_0x16f0bd('0x5ed')]});}function _0x2f2bbd(_0x42e47f,_0x22285a){var _0x208130=_0x4f4ca7;_0x3f232d['show']({'controller':_0x208130('0x42c'),'controllerAs':'vm','templateUrl':_0x42aff8,'parent':angular[_0x208130('0x1676')](_0x5cf5e8[_0x208130('0x2452')]),'targetEvent':_0x22285a,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x42e47f,'whatsappQueues':_0x240dba[_0x208130('0x203f')]?_0x240dba[_0x208130('0x203f')]['rows']:[],'crudPermissions':_0x240dba[_0x208130('0x5ed')]}});}function _0x130c02(_0x4915ca,_0x5eece2){var _0x24fdd4=_0x4f4ca7;_0x3f232d['show']({'controller':_0x24fdd4('0x1f55'),'controllerAs':'vm','templateUrl':_0x192f88,'parent':angular[_0x24fdd4('0x1676')](_0x5cf5e8[_0x24fdd4('0x2452')]),'targetEvent':_0x5eece2,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x4915ca,'whatsappQueues':_0x240dba[_0x24fdd4('0x203f')]?_0x240dba[_0x24fdd4('0x203f')]['rows']:[],'crudPermissions':_0x240dba['crudPermissions'],'realtime':![]}});}function _0x18a770(_0x59409d,_0x22b611){var _0x3c9a37=_0x4f4ca7,_0x468998=_0x3f232d['confirm']()['title'](_0x3c9a37('0x25b6')+_0x86640f()[_0x3c9a37('0x2159')](_0x3c9a37('0x1f8f'))+'?')[_0x3c9a37('0x276b')](_0x3c9a37('0x622')+(_0x59409d['name']||_0x3c9a37('0x1f8f'))+_0x3c9a37('0x2135')+_0x3c9a37('0x25e0'))[_0x3c9a37('0x7a7')](_0x3c9a37('0x1e21'))['targetEvent'](_0x22b611)['ok']('OK')['cancel']('CANCEL');_0x3f232d[_0x3c9a37('0x853')](_0x468998)[_0x3c9a37('0x21ad')](function(){_0x2b7603(_0x59409d);},function(){var _0x21aec7=_0x3c9a37;console[_0x21aec7('0x6fb')]('CANCEL');});}function _0x251cb9(){var _0x3ae8a6=_0x4f4ca7;if(_0x325978[_0x3ae8a6('0x21de')]('admin'))_0x3c5621['go']('app.whatsapp.realtime.queues',{});else return _0x442d37[_0x3ae8a6('0xab4')][_0x3ae8a6('0x595')]({'userProfileId':_0x325978['getCurrentUser']()[_0x3ae8a6('0x1618')],'sectionId':0x83e})[_0x3ae8a6('0x1376')]['then'](function(_0x59b63c){var _0x1cd007=_0x3ae8a6,_0x16968f=_0x59b63c&&_0x59b63c[_0x1cd007('0x1b33')]?_0x59b63c[_0x1cd007('0x1b33')][0x0]:null;_0x16968f&&_0x16968f[_0x1cd007('0x2296')]?_0x3c5621['go'](_0x1cd007('0x2531'),{}):_0x392519[_0x1cd007('0x231c')]({'title':_0x59c6e4[_0x1cd007('0x183e')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x59c6e4[_0x1cd007('0x183e')](_0x1cd007('0x764'))});})[_0x3ae8a6('0x1c1d')](function(_0x5da983){var _0x662279=_0x3ae8a6;_0x392519[_0x662279('0x2092')]({'title':_0x5da983['status']?_0x662279('0x22d')+_0x5da983[_0x662279('0x209')]+_0x662279('0xa99')+_0x5da983[_0x662279('0x1808')]:_0x662279('0xb8'),'msg':_0x5da983[_0x662279('0x209')]?JSON[_0x662279('0x25e')](_0x5da983['data']):_0x5da983[_0x662279('0x174f')]()});});}var _0x38cf36=!![],_0x35467c=0x1;_0x5766e2[_0x4f4ca7('0x10e8')](_0x4f4ca7('0x1948'),function(_0x57bb56,_0x3b4b11){var _0x2ed63a=_0x4f4ca7;_0x38cf36?_0x1b742e(function(){_0x38cf36=![];}):(!_0x3b4b11&&(_0x35467c=_0x240dba[_0x2ed63a('0x77')][_0x2ed63a('0x2376')]),_0x57bb56!==_0x3b4b11&&(_0x240dba[_0x2ed63a('0x77')][_0x2ed63a('0x2376')]=0x1),!_0x57bb56&&(_0x240dba[_0x2ed63a('0x77')][_0x2ed63a('0x2376')]=_0x35467c),_0x240dba[_0x2ed63a('0xf9b')]());});function _0x1cf072(_0x40e6b9){var _0x317828=_0x4f4ca7;_0x240dba[_0x317828('0x203f')]=_0x40e6b9||{'count':0x0,'rows':[]};}function _0x5ecab0(){var _0x484bb3=_0x4f4ca7;_0x240dba['query'][_0x484bb3('0x15a5')]=(_0x240dba['query']['page']-0x1)*_0x240dba[_0x484bb3('0x77')]['limit'],_0x325978['hasRole']('admin')?_0x240dba[_0x484bb3('0x71b')]=_0x442d37[_0x484bb3('0x1f8f')][_0x484bb3('0x595')](_0x240dba['query'],_0x1cf072)[_0x484bb3('0x1376')]:(_0x240dba[_0x484bb3('0x77')]['id']=_0x240dba['userProfile']['id'],_0x240dba['query'][_0x484bb3('0x26ad')]=_0x484bb3('0x2424'),_0x240dba[_0x484bb3('0x71b')]=_0x442d37[_0x484bb3('0x758')][_0x484bb3('0x321')](_0x240dba[_0x484bb3('0x77')],_0x1cf072)[_0x484bb3('0x1376')]);}function _0x291cf3(_0x14357f,_0x13a16d){var _0x28664f=_0x4f4ca7;_0x3f232d[_0x28664f('0x853')]({'controller':_0x28664f('0x812'),'controllerAs':'vm','templateUrl':_0x3ce3c4,'parent':angular['element'](_0x5cf5e8['body']),'targetEvent':_0x14357f,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x13a16d,'whatsappQueues':_0x240dba[_0x28664f('0x203f')][_0x28664f('0x1b33')],'license':_0x240dba[_0x28664f('0x2ff')],'setting':_0x240dba[_0x28664f('0x21e')],'crudPermissions':_0x240dba[_0x28664f('0x5ed')]}});}function _0x2b7603(_0x2a16ff){var _0x4b3414=_0x4f4ca7;_0x442d37[_0x4b3414('0x1f8f')]['delete']({'id':_0x2a16ff['id']})[_0x4b3414('0x1376')]['then'](function(){var _0x549d4f=_0x4b3414;_0x86640f()['remove'](_0x240dba[_0x549d4f('0x203f')]['rows'],{'id':_0x2a16ff['id']}),_0x240dba[_0x549d4f('0x203f')][_0x549d4f('0x205f')]-=0x1,!_0x240dba[_0x549d4f('0x203f')]['rows'][_0x549d4f('0x577')]&&_0x240dba[_0x549d4f('0xf9b')](),_0x392519['success']({'title':_0x86640f()[_0x549d4f('0x2159')](_0x549d4f('0x27bc'))+'\x20deleted!','msg':_0x2a16ff[_0x549d4f('0x19fe')]?_0x2a16ff[_0x549d4f('0x19fe')]+_0x549d4f('0xb4a'):''});})['catch'](function(_0x2ad036){var _0x22205c=_0x4b3414;if(_0x2ad036[_0x22205c('0x11c2')]&&_0x2ad036[_0x22205c('0x11c2')][_0x22205c('0x1a69')]&&_0x2ad036[_0x22205c('0x11c2')][_0x22205c('0x1a69')][_0x22205c('0x577')]){_0x240dba[_0x22205c('0x1a69')]=_0x2ad036[_0x22205c('0x11c2')][_0x22205c('0x1a69')]||[{'message':_0x2ad036['toString'](),'type':'SYSTEM:DELETEwhatsappQueue'}];for(var _0x29f1fd=0x0;_0x29f1fd<_0x2ad036[_0x22205c('0x11c2')][_0x22205c('0x1a69')][_0x22205c('0x577')];_0x29f1fd++){_0x392519[_0x22205c('0x2092')]({'title':_0x2ad036[_0x22205c('0x11c2')]['errors'][_0x29f1fd][_0x22205c('0x7fa')],'msg':_0x2ad036[_0x22205c('0x11c2')][_0x22205c('0x1a69')][_0x29f1fd][_0x22205c('0x1224')]});}}else _0x392519['error']({'title':_0x2ad036[_0x22205c('0x209')]?'API:'+_0x2ad036['status']+'\x20-\x20'+_0x2ad036[_0x22205c('0x1808')]:_0x22205c('0x1860'),'msg':_0x2ad036[_0x22205c('0x11c2')]?JSON[_0x22205c('0x25e')](_0x2ad036[_0x22205c('0x11c2')][_0x22205c('0x1224')]):_0x2ad036[_0x22205c('0x1224')]||_0x2ad036[_0x22205c('0x174f')]()});});}function _0x34de9d(){var _0x18ff43=_0x4f4ca7,_0x346f9f=angular['copy'](_0x240dba['selectedWhatsappQueues']);return _0x240dba[_0x18ff43('0x1fc3')]=[],_0x346f9f;}function _0x1a3127(_0x4850d4){var _0x1a01de=_0x4f4ca7,_0x4de89f=_0x3f232d[_0x1a01de('0xa33')]()[_0x1a01de('0x4b4')](_0x1a01de('0xbab'))[_0x1a01de('0x276b')](_0x1a01de('0x622')+_0x240dba['selectedWhatsappQueues']['length']+_0x1a01de('0xd74')+_0x1a01de('0x25e0'))[_0x1a01de('0x7a7')](_0x1a01de('0x910'))[_0x1a01de('0x1e6d')](_0x4850d4)['ok']('OK')[_0x1a01de('0x3b5')]('CANCEL');_0x3f232d[_0x1a01de('0x853')](_0x4de89f)[_0x1a01de('0x21ad')](function(){var _0x107f5a=_0x1a01de;_0x240dba[_0x107f5a('0x1fc3')][_0x107f5a('0x1a52')](function(_0xcdddf9){_0x2b7603(_0xcdddf9);}),_0x240dba[_0x107f5a('0x1fc3')]=[];});}function _0x3c3b5b(){_0x240dba['selectedWhatsappQueues']=[];}function _0x542ed8(){var _0x1b854f=_0x4f4ca7;_0x240dba[_0x1b854f('0x1fc3')]=_0x240dba[_0x1b854f('0x203f')]['rows'];}}const _0x5233a4=_0x592133;_0x2f93a4[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c'),_0x3877e3('0x972')];function _0x2f93a4(_0x51b7f5,_0x2cce57){var _0x406ad2=_0x3877e3;_0x51b7f5[_0x406ad2('0x27e')](_0x406ad2('0x2412'),{'abstract':!![],'url':_0x406ad2('0x23b3')})[_0x406ad2('0x27e')](_0x406ad2('0xf7e'),{'url':_0x406ad2('0x151e'),'views':{'content@app':{'templateUrl':_0x302c34,'controller':_0x406ad2('0x16e8')}},'resolve':{'whatsappQueues':['apiResolver',_0x406ad2('0x15bc'),function _0x3f5cc5(_0x559d0d,_0x499ee0){var _0xf90f7a=_0x406ad2;return _0x499ee0['hasRole'](_0xf90f7a('0x1bd8'))?_0x559d0d[_0xf90f7a('0x8ac')](_0xf90f7a('0x175d'),{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0xf90f7a('0x33'),'channel':_0xf90f7a('0x1ad4'),'limit':0xa,'offset':0x0}):_0x559d0d['resolve'](_0xf90f7a('0x52f'),{'id':_0x499ee0[_0xf90f7a('0x15ed')]()[_0xf90f7a('0x1618')],'section':_0xf90f7a('0x2424'),'fields':_0xf90f7a('0x87f'),'sort':_0xf90f7a('0x33'),'channel':_0xf90f7a('0x1ad4'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x406ad2('0x15bc'),function _0x416288(_0xc89526,_0x673bff){var _0x4f3a96=_0x406ad2;return _0x673bff['hasRole'](_0x4f3a96('0x1bd8'))?null:_0xc89526['resolve'](_0x4f3a96('0x1e1d'),{'fields':'id,name,crudPermissions','id':_0x673bff[_0x4f3a96('0x15ed')]()[_0x4f3a96('0x1618')]});}],'userProfileSection':[_0x406ad2('0x354'),'Auth',function _0x186351(_0x25a14f,_0x3107cd){var _0x5b46da=_0x406ad2;return _0x3107cd[_0x5b46da('0x21de')]('admin')?null:_0x25a14f[_0x5b46da('0x8ac')](_0x5b46da('0x222f'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3107cd[_0x5b46da('0x15ed')]()[_0x5b46da('0x1618')],'sectionId':0x835});}]},'authenticate':!![],'permissionId':0x835,'bodyClass':_0x406ad2('0x1ad4')})[_0x406ad2('0x27e')]('app.whatsapp.whatsappQueues.edit',{'url':_0x406ad2('0x17f5'),'params':{'whatsappQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x537277,'controller':_0x406ad2('0x15e1')}},'resolve':{'whatsappQueue':['apiResolver',_0x406ad2('0x114e'),function _0x5d481b(_0x3980fb,_0x4b0a74){var _0x101f77=_0x406ad2;return _0x3980fb[_0x101f77('0x8ac')](_0x101f77('0x175d'),{'fields':_0x101f77('0x87f'),'id':_0x4b0a74['id']});}],'userProfileSection':[_0x406ad2('0x354'),_0x406ad2('0x15bc'),function _0x4c2a4a(_0x4202cb,_0x2099d1){var _0x382c50=_0x406ad2;return _0x4202cb['resolve']('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2099d1[_0x382c50('0x15ed')]()[_0x382c50('0x1618')],'sectionId':0x835});}]},'authenticate':!![],'permissionId':0x835,'bodyClass':'whatsapp'})['state']('app.whatsapp.whatsappAccounts',{'url':_0x406ad2('0x25ac'),'views':{'content@app':{'templateUrl':_0x5d4c25,'controller':_0x406ad2('0x941')}},'resolve':{'whatsappAccounts':[_0x406ad2('0x354'),_0x406ad2('0x15bc'),function _0x559869(_0x3cd99a,_0x56e6d3){var _0x38f318=_0x406ad2;return _0x56e6d3['hasRole'](_0x38f318('0x1bd8'))?_0x3cd99a[_0x38f318('0x8ac')](_0x38f318('0xcd8'),{'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':_0x38f318('0x33'),'limit':0xa,'offset':0x0}):_0x3cd99a['resolve'](_0x38f318('0x52f'),{'id':_0x56e6d3[_0x38f318('0x15ed')]()[_0x38f318('0x1618')],'section':_0x38f318('0x1641'),'fields':_0x38f318('0x1486'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x406ad2('0x354'),_0x406ad2('0x15bc'),function _0x50398a(_0x40b800,_0x5eb124){var _0x2ecb14=_0x406ad2;return _0x5eb124[_0x2ecb14('0x21de')](_0x2ecb14('0x1bd8'))?null:_0x40b800[_0x2ecb14('0x8ac')](_0x2ecb14('0x1e1d'),{'fields':_0x2ecb14('0x1a00'),'id':_0x5eb124['getCurrentUser']()['userProfileId']});}],'userProfileSection':['apiResolver',_0x406ad2('0x15bc'),function _0x2c51a0(_0x112c2c,_0x3054a3){var _0x283ce5=_0x406ad2;return _0x3054a3[_0x283ce5('0x21de')]('admin')?null:_0x112c2c['resolve']('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3054a3[_0x283ce5('0x15ed')]()[_0x283ce5('0x1618')],'sectionId':0x836});}]},'authenticate':!![],'permissionId':0x836,'bodyClass':_0x406ad2('0x1ad4')})[_0x406ad2('0x27e')]('app.whatsapp.whatsappAccounts.edit',{'url':_0x406ad2('0x17f5'),'params':{'whatsappAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x42bc69,'controller':'WhatsappAccountController\x20as\x20vm'}},'resolve':{'whatsappAccount':['apiResolver',_0x406ad2('0x114e'),function _0x1fa1e7(_0x3bc7bc,_0x3b56db){var _0x54d01a=_0x406ad2;return _0x3bc7bc[_0x54d01a('0x8ac')]('whatsappAccount@get',{'fields':_0x54d01a('0x1486'),'id':_0x3b56db['id']});}],'userProfileSection':['apiResolver','Auth',function _0x1d069d(_0x25d71c,_0x26fdad){var _0x5b47ee=_0x406ad2;return _0x25d71c[_0x5b47ee('0x8ac')](_0x5b47ee('0x222f'),{'fields':_0x5b47ee('0x1852'),'userProfileId':_0x26fdad[_0x5b47ee('0x15ed')]()[_0x5b47ee('0x1618')],'sectionId':0x836});}]},'authenticate':!![],'permissionId':0x836,'bodyClass':'whatsapp'}),_0x2cce57[_0x406ad2('0x20ab')]('app/main/apps/whatsapp');}angular[_0x3877e3('0x20d5')](_0x3877e3('0x2412'),[_0x3877e3('0x240c'),_0x3877e3('0x1b0'),_0x3877e3('0xca'),'flow',_0x3877e3('0x2437'),_0x3877e3('0x25c7'),'ng-sortable',_0x3877e3('0x264a'),'ngAnimate',_0x3877e3('0x335'),_0x3877e3('0xc90'),_0x3877e3('0x56d'),_0x3877e3('0xe2f'),_0x3877e3('0x10c'),_0x3877e3('0xf61'),'ngEmbed','angularMaterialFormBuilder',_0x3877e3('0x27ba'),_0x3877e3('0x9e0'),'angular.filter',_0x3877e3('0x2042')])[_0x3877e3('0x13')](_0x2f93a4)[_0x3877e3('0x1d5a')](_0x3877e3('0x1c4c'),_0x8ffcbd)[_0x3877e3('0x1d5a')](_0x3877e3('0xad7'),_0x45dcef)['controller'](_0x3877e3('0xb29'),_0x364e48)['controller'](_0x3877e3('0xc6d'),_0x214c05)[_0x3877e3('0x1d5a')](_0x3877e3('0xc84'),_0xf719cc)['controller'](_0x3877e3('0x555'),_0x1645a8)['controller'](_0x3877e3('0x12af'),_0x1351c4)['controller'](_0x3877e3('0x18d1'),_0x4f3193)[_0x3877e3('0x1d5a')](_0x3877e3('0x19cd'),_0x49fa89)[_0x3877e3('0x1d5a')](_0x3877e3('0x317'),_0xcf8b74)['controller']('EditWhatsappAccountAppintervalDialogController',_0x484941)[_0x3877e3('0x1d5a')](_0x3877e3('0x1aa1'),_0x31dd35)[_0x3877e3('0x1d5a')](_0x3877e3('0xed3'),_0x8ba70f)['controller'](_0x3877e3('0x16d0'),_0x2cf3b5)[_0x3877e3('0x1d5a')](_0x3877e3('0x86d'),_0x2ee8ea)['controller'](_0x3877e3('0x2309'),_0x4f84cc)['controller'](_0x3877e3('0xa89'),_0x4d89c0)[_0x3877e3('0x1d5a')](_0x3877e3('0x137c'),_0x2e8d55)[_0x3877e3('0x1d5a')]('CreateOrEditWhatsappCannedAnswerDialogController',_0x1823df)['controller'](_0x3877e3('0x111c'),_0x47f3be)[_0x3877e3('0x1d5a')](_0x3877e3('0x16b6'),_0x5e80f6)[_0x3877e3('0x1d5a')](_0x3877e3('0x812'),_0x4e7b24)['controller'](_0x3877e3('0x1f55'),_0x31d3d5)[_0x3877e3('0x1d5a')](_0x3877e3('0x42c'),_0x48a60c)[_0x3877e3('0x1d5a')](_0x3877e3('0x14ef'),_0x48a46f)['controller'](_0x3877e3('0x2410'),_0x5233a4);const _0x24de70=_0x398308['p']+_0x3877e3('0x5fd'),_0x100fa7=_0x398308['p']+_0x3877e3('0x91e'),_0x3d00b3=_0x398308['p']+_0x3877e3('0x5c7'),_0x437957=_0x398308['p']+'src/js/modules/core/layouts/horizontal-navigation.html/horizontal-navigation-[chunkhash].html',_0x2227e6=_0x398308['p']+'src/js/modules/core/layouts/vertical-navigation-fullwidth-toolbar-2.html/vertical-navigation-fullwidth-toolbar-2-[chunkhash].html',_0x2bb540=_0x398308['p']+_0x3877e3('0x19ac'),_0x260b93=_0x398308['p']+_0x3877e3('0x20d');_0xc0bc0f[_0x3877e3('0x1a81')]=['$state',_0x3877e3('0x24e1'),_0x3877e3('0x26'),_0x3877e3('0x2313'),'api',_0x3877e3('0x15bc'),_0x3877e3('0x21e')];function _0xc0bc0f(_0x2ae899,_0x5a01f7,_0x2d8469,_0x33d6b8,_0x13101c,_0x2bfc5e,_0x4655da){var _0x18f533=_0x3877e3,_0x2f4f25=this;_0x2f4f25[_0x18f533('0xab9')]=![],_0x2f4f25[_0x18f533('0x26d4')]=![],_0x2f4f25[_0x18f533('0x390')]=_0x13101c[_0x18f533('0x390')];function _0x19e055(){var _0x3d52e1=_0x18f533;if(_0x2ae899[_0x3d52e1('0x171b')][_0x3d52e1('0x1797')]&&_0x2ae899[_0x3d52e1('0x171b')][_0x3d52e1('0x2339')])return _0x2bfc5e[_0x3d52e1('0x1c47')](),_0x2f4f25[_0x3d52e1('0xab9')]=!![],_0x2d8469[_0x3d52e1('0x8c4')](_0x3d52e1('0x863'),_0x2ae899['params']['token']),_0x13101c[_0x3d52e1('0x1775')]['get']({'id':_0x2ae899[_0x3d52e1('0x171b')][_0x3d52e1('0x2339')]})['$promise']['then'](function(_0x16d98f){var _0x509572=_0x3d52e1;_0x16d98f&&(_0x2bfc5e[_0x509572('0x12ca')](_0x16d98f),_0x2ae899['go'](_0x509572('0x143c')));})['finally'](function(){_0x2f4f25['progresslogin']=![];});else _0x2bfc5e[_0x3d52e1('0x121c')]()&&_0x2ae899['go'](_0x3d52e1('0x143c'));_0x2f4f25[_0x3d52e1('0x26d4')]=_0x4655da['googleSsoEnabled'];}function _0x1fccfe(){var _0x409407=_0x18f533;return _0x2f4f25[_0x409407('0xab9')]=!![],_0x2f4f25[_0x409407('0x1224')]='',_0x2bfc5e['login'](_0x2f4f25[_0x409407('0x85e')])[_0x409407('0x21ad')](function(){var _0x1486aa=_0x409407;return _0x2ae899['go'](_0x1486aa('0x143c'));})['catch'](function(_0x1bad2f){var _0x9dbc10=_0x409407;_0x2f4f25[_0x9dbc10('0x1224')]=_0x1bad2f[_0x9dbc10('0x11c2')]?_0x1bad2f[_0x9dbc10('0x11c2')][_0x9dbc10('0x1224')]:_0x1bad2f[_0x9dbc10('0x1224')];})[_0x409407('0x13e')](function(){var _0x3d5b0d=_0x409407;_0x2f4f25[_0x3d5b0d('0xab9')]=![];});}function _0x20c0cc(_0x507da2){var _0x36c3fd=_0x18f533;_0x2f4f25[_0x36c3fd('0x1224')]='',_0x5a01f7[_0x36c3fd('0x626')][_0x36c3fd('0x69e')]=_0x2bfc5e[_0x36c3fd('0x4c6')](_0x507da2);}_0x2f4f25[_0x18f533('0xe38')]=_0x1fccfe,_0x2f4f25[_0x18f533('0x26c8')]=_0x20c0cc,_0x2f4f25['onInit']=_0x19e055,_0x2f4f25[_0x18f533('0x1081')]();}const _0x2eb64a=_0xc0bc0f;_0x58ce79[_0x3877e3('0x1a81')]=['$stateProvider',_0x3877e3('0x972')];function _0x58ce79(_0x33b2fd,_0x4002eb){var _0x187dd6=_0x3877e3;_0x33b2fd[_0x187dd6('0x27e')](_0x187dd6('0xab'),{'url':_0x187dd6('0x135b'),'views':{'main@':{'templateUrl':_0x100fa7,'controller':_0x187dd6('0x649')},'content@app.login':{'templateUrl':_0x24de70,'controller':_0x187dd6('0xa83')}},'bodyClass':_0x187dd6('0xe38')}),_0x4002eb[_0x187dd6('0x20ab')]('app/login');}angular['module'](_0x3877e3('0xab'),[])[_0x3877e3('0x13')](_0x58ce79)[_0x3877e3('0x1d5a')](_0x3877e3('0xa19'),_0x2eb64a);const _0x1ae05f=_0x398308['p']+_0x3877e3('0xad8');_0x25a77a['$inject']=[_0x3877e3('0x15bc'),_0x3877e3('0x1908'),_0x3877e3('0x13c1'),_0x3877e3('0xa9f'),_0x3877e3('0xccd')];function _0x25a77a(_0x55138a,_0x46c78d,_0x3940bb,_0x25d659,_0x5ecc6f){var _0x358176=_0x3877e3,_0x5c4325=this;_0x5c4325[_0x358176('0x85e')]={},_0x5c4325[_0x358176('0x390')]=_0x5ecc6f[_0x358176('0x390')];function _0x57a7b5(){_0x55138a['isLoggedIn']()&&_0x25d659['go']('app.dashboards.general');}function _0x42c948(){var _0x3c5189=_0x358176;return _0x5ecc6f[_0x3c5189('0xa15')][_0x3c5189('0x833')](_0x5c4325['form'])[_0x3c5189('0x1376')]['then'](function(){var _0x365350=_0x3c5189;_0x46c78d[_0x365350('0xdb1')]({'title':_0x3940bb[_0x365350('0x183e')](_0x365350('0xc4f')),'msg':_0x3940bb[_0x365350('0x183e')](_0x365350('0x1134'))});})[_0x3c5189('0x1c1d')](function(_0xfea8c8){var _0x12dc33=_0x3c5189;_0xfea8c8&&_0x46c78d['error']({'title':_0x3940bb['instant'](_0x12dc33('0x2002')),'msg':_0xfea8c8[_0x12dc33('0x11c2')]?_0xfea8c8[_0x12dc33('0x11c2')][_0x12dc33('0x1224')]||_0xfea8c8['message']||_0xfea8c8:_0xfea8c8[_0x12dc33('0x1224')]||_0xfea8c8});});}_0x5c4325[_0x358176('0x1088')]=_0x42c948,_0x5c4325[_0x358176('0x1081')]=_0x57a7b5;}const _0x4c165a=_0x25a77a;_0x2a87cc[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c'),'$translatePartialLoaderProvider'];function _0x2a87cc(_0x364ed1,_0x5c7a9b){var _0x313965=_0x3877e3;_0x364ed1[_0x313965('0x27e')](_0x313965('0x1bf1'),{'url':_0x313965('0x12e3'),'views':{'main@':{'templateUrl':_0x100fa7,'controller':'MainController\x20as\x20vm'},'content@app.forgot':{'templateUrl':_0x1ae05f,'controller':_0x313965('0x1b30')}},'bodyClass':'forgot'}),_0x5c7a9b[_0x313965('0x20ab')](_0x313965('0x2c6'));}angular[_0x3877e3('0x20d5')](_0x3877e3('0x1bf1'),[])[_0x3877e3('0x13')](_0x2a87cc)[_0x3877e3('0x1d5a')]('ForgotPasswordController',_0x4c165a);const _0xbc262e=_0x398308['p']+_0x3877e3('0x2470');_0x3f6f3f[_0x3877e3('0x1a81')]=[_0x3877e3('0x15bc'),'toasty',_0x3877e3('0x13c1'),_0x3877e3('0xa9f'),'api',_0x3877e3('0x114e')];function _0x3f6f3f(_0x257d0d,_0x2edf81,_0x53c794,_0x1e976e,_0x173015,_0x3beb53){var _0x10db09=_0x3877e3,_0x243e32=this;_0x243e32[_0x10db09('0x85e')]={'token':_0x3beb53[_0x10db09('0x1797')]},_0x243e32[_0x10db09('0x21e')]={},_0x243e32['baseUrl']=_0x173015['baseUrl'];function _0x38d156(){var _0x333059=_0x10db09;return _0x257d0d[_0x333059('0x121c')]()&&_0x1e976e['go'](_0x333059('0x143c')),_0x173015[_0x333059('0x21e')][_0x333059('0x11b')]({'id':0x1})[_0x333059('0x1376')][_0x333059('0x21ad')](function(_0x4ba7d4){var _0x1df290=_0x333059;_0x243e32['setting']=_0x4ba7d4,_0x243e32[_0x1df290('0x1432')]=_0x243e32[_0x1df290('0x21e')][_0x1df290('0x1426')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'';})[_0x333059('0x1c1d')](function(_0x413adf){var _0x247f84=_0x333059;_0x413adf&&_0x2edf81['error']({'title':'Error','msg':_0x413adf[_0x247f84('0x11c2')]?_0x413adf[_0x247f84('0x11c2')][_0x247f84('0x1224')]||_0x413adf['message']||_0x413adf:_0x413adf[_0x247f84('0x1224')]||_0x413adf});});}function _0x5ee53a(){var _0x19ad30=_0x10db09;return _0x173015['auth'][_0x19ad30('0x21a8')](_0x243e32[_0x19ad30('0x85e')])[_0x19ad30('0x1376')]['then'](function(){var _0x5c862f=_0x19ad30;_0x2edf81['success']({'title':_0x53c794['instant'](_0x5c862f('0x1cb0')),'msg':_0x53c794[_0x5c862f('0x183e')](_0x5c862f('0x1eaf'))}),_0x1e976e['go']('app.login');})[_0x19ad30('0x1c1d')](function(_0x5c2f81){var _0x2f8f4b=_0x19ad30;_0x5c2f81&&_0x2edf81[_0x2f8f4b('0x2092')]({'title':_0x53c794['instant'](_0x2f8f4b('0x3d')),'msg':_0x5c2f81['data']?_0x5c2f81[_0x2f8f4b('0x11c2')][_0x2f8f4b('0x1224')]||_0x5c2f81[_0x2f8f4b('0x1224')]||_0x5c2f81:_0x5c2f81['message']||_0x5c2f81});});}_0x243e32[_0x10db09('0x1cf8')]=_0x5ee53a,_0x243e32[_0x10db09('0x1081')]=_0x38d156;}const _0x1bb4b6=_0x3f6f3f;_0x543ef3[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c'),'$translatePartialLoaderProvider'];function _0x543ef3(_0x35f9d2,_0x2c080b){var _0x2a6e66=_0x3877e3;_0x35f9d2[_0x2a6e66('0x27e')]('app.reset',{'url':_0x2a6e66('0x1564'),'views':{'main@':{'templateUrl':_0x100fa7,'controller':_0x2a6e66('0x649')},'content@app.reset':{'templateUrl':_0xbc262e,'controller':_0x2a6e66('0x21c')}},'bodyClass':_0x2a6e66('0x21a8')}),_0x2c080b['addPart'](_0x2a6e66('0x130d'));}angular[_0x3877e3('0x20d5')](_0x3877e3('0xfe3'),[])[_0x3877e3('0x13')](_0x543ef3)[_0x3877e3('0x1d5a')](_0x3877e3('0x1cea'),_0x1bb4b6);const _0x42ff93=_0x398308['p']+_0x3877e3('0xe0d');_0x246126[_0x3877e3('0x1a81')]=[_0x3877e3('0xa9f'),'$timeout','$q','msNavigationService'];function _0x246126(_0x1d9535,_0x5352f9,_0x5de9e8,_0xb1148){var _0x484254=_0x3877e3,_0x3b3161=this;function _0x360f15(_0xc4d632){var _0x164bdf=a0_0x2e7f,_0x30caac=[],_0x53ce4f=_0xb1148['getFlatNavigation'](),_0x18781f=_0x5de9e8[_0x164bdf('0xca9')]();for(var _0x408be9=0x0;_0x408be9<_0x53ce4f['length'];_0x408be9+=0x1){_0x53ce4f[_0x408be9][_0x164bdf('0x1ff0')]&&_0x30caac[_0x164bdf('0x206c')](_0x53ce4f[_0x408be9]);}return _0xc4d632&&(_0x30caac=_0x30caac[_0x164bdf('0x1503')](function(_0x3f693e){var _0x4481c0=_0x164bdf;if(_0x3f693e[_0x4481c0('0x4b4')][_0x4481c0('0xac2')]()[_0x4481c0('0xb34')](_0xc4d632[_0x4481c0('0xac2')]()))return!![];})),_0x5352f9(function(){_0x18781f['resolve'](_0x30caac);},0x3e8),_0x18781f['promise'];}function _0x18d85f(_0x576bb8){var _0x4dd245=a0_0x2e7f;_0x576bb8[_0x4dd245('0x1ff0')]&&(_0x576bb8[_0x4dd245('0x15c2')]?_0x1d9535['go'](_0x576bb8[_0x4dd245('0x27e')],_0x576bb8[_0x4dd245('0x15c2')]):_0x1d9535['go'](_0x576bb8['state']));}_0x3b3161[_0x484254('0x24e7')]=_0x360f15,_0x3b3161['searchResultClick']=_0x18d85f;}const _0x5e3849=_0x246126;_0x3047e0['$inject']=['$stateProvider',_0x3877e3('0x972')];function _0x3047e0(_0x27b194,_0x511b5f){var _0x85f8c6=_0x3877e3;_0x27b194[_0x85f8c6('0x27e')](_0x85f8c6('0x1161'),{'url':'/errors/error-404','views':{'main@':{'templateUrl':_0x100fa7,'controller':_0x85f8c6('0x649')},'content@app.errors_error-404':{'templateUrl':_0x42ff93,'controller':_0x85f8c6('0x1c9b')}},'params':{'status':0x194,'statusText':'','data':{},'config':{}},'bodyClass':'error-404'}),_0x511b5f['addPart'](_0x85f8c6('0xb07'));}angular[_0x3877e3('0x20d5')](_0x3877e3('0x1594'),[])['config'](_0x3047e0)['controller'](_0x3877e3('0x131d'),_0x5e3849);const _0x5f0c62=_0x398308['p']+'src/js/modules/errors/500/error-500.html/error-500-[chunkhash].html';_0x27266c['$inject']=['$state',_0x3877e3('0x7ae')];function _0x27266c(_0x435a8d,_0x416d14){var _0x40631=_0x3877e3,_0x4c810f=this;function _0x1683c3(){var _0x3fb80e=a0_0x2e7f;_0x416d14['post'](_0x3fb80e('0x197b'),_0x4c810f['error'])[_0x3fb80e('0x21ad')](function(_0x19c3b2){var _0x2fa4e1=_0x3fb80e;_0x4c810f['send']=!![],_0x19c3b2[_0x2fa4e1('0x11c2')]&&(_0x4c810f[_0x2fa4e1('0x17e8')]=_0x19c3b2['data']['id']);},function(){_0x4c810f['send']=![];});}_0x4c810f[_0x40631('0x17e8')]='',_0x4c810f[_0x40631('0x2471')]=![],_0x4c810f[_0x40631('0x2092')]=_0x435a8d['params'],_0x4c810f[_0x40631('0x1a48')]=_0x1683c3;}const _0x1a69b5=_0x27266c;_0x340ce7[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c'),_0x3877e3('0x972')];function _0x340ce7(_0x362522,_0x4a4dde){var _0x25ab75=_0x3877e3;_0x362522[_0x25ab75('0x27e')](_0x25ab75('0x110e'),{'url':_0x25ab75('0x1605'),'views':{'main@':{'templateUrl':_0x100fa7,'controller':'MainController\x20as\x20vm'},'content@app.errors_error-500':{'templateUrl':_0x5f0c62,'controller':_0x25ab75('0x21d')}},'params':{'status':0x1f4,'statusText':'','data':{},'config':{}},'bodyClass':_0x25ab75('0x7ef')}),_0x4a4dde[_0x25ab75('0x20ab')](_0x25ab75('0xd56'));}angular[_0x3877e3('0x20d5')](_0x3877e3('0x1758'),[])[_0x3877e3('0x13')](_0x340ce7)[_0x3877e3('0x1d5a')](_0x3877e3('0x1460'),_0x1a69b5);;angular[_0x3877e3('0x20d5')](_0x3877e3('0x14f3'),[_0x3877e3('0x1594'),_0x3877e3('0x1758')]),_0x23f340['$inject']=[_0x3877e3('0x1144')];function _0x23f340(_0x1c8317){var _0x1c5317=_0x3877e3,_0x5d5d2c={};return _0x5d5d2c[_0x1c5317('0x390')]=!![]?_0x1c5317('0x1826'):0x0,_0x5d5d2c[_0x1c5317('0xa15')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xeca'),{},{'local':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xeca')},'forgot':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0xd9a')},'reset':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xf31'),'params':{'token':_0x1c5317('0xaa3')}},'user':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x21a2'),'params':{'token':'@token'}},'google':{'method':'post','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1f87')}}),_0x5d5d2c['jira']=_0x1c8317(_0x5d5d2c['baseUrl']+'jira'),_0x5d5d2c['rpc']=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'rpc',{},{'startMonitor':{'method':'get','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x15ab'),'params':{'uniqueid':_0x1c5317('0x109d')}},'stopMonitor':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+'rpc/voice/channels/:uniqueid/stopmixmonitor','params':{'uniqueid':'@uniqueid'}},'getVoiceChannels':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1615')},'getVoiceQueues':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x2474')},'getChatQueues':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0xe91')},'getMailQueues':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'rpc/mail/queues'},'getSmsQueues':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x27b')},'getWhatsappQueues':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+'rpc/sms/queues'},'getOpenchannelQueues':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xdd6')},'getFaxQueues':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x2231')},'getVoiceQueuesPreview':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x248b')},'getVoiceQueuesChannels':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1020')},'getVoiceQueuesChannel':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x210f')},'getVoiceQueuesChannelHangup':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'rpc/voice/queues/channels/:uniqueid/hangup'},'getVoiceQueuesChannelRedirect':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xebc')},'getOutbound':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x101f')},'getOutboundChannels':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x12d3')},'getAgents':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x151c')},'setAgentCapacity':{'method':_0x1c5317('0x8c4'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xd93'),'params':{'id':_0x1c5317('0x251a')}},'getTelephones':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x24')},'getTrunks':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'rpc/trunks'},'getCampaigns':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x26a7')},'getMailAccounts':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+'rpc/mail/accounts'},'getFaxAccounts':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1679')},'getChatQueuesWaitingInteractions':{'method':'get','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x236a')},'getMailQueuesWaitingInteractions':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2578')},'getOpenchannelQueuesWaitingInteractions':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x8d2')},'getOpenchannelQueuesIdWaitingInteractions':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x223c')},'getSmsQueuesWaitingInteractions':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1fd4')},'getFaxQueuesWaitingInteractions':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xbd9')},'getWhatsappQueuesWaitingInteractions':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x6a0')},'mailQueueNotify':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+'rpc/mail/queues/:id/notify','params':{'id':_0x1c5317('0x251a')}},'chatQueueNotify':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xb36'),'params':{'id':_0x1c5317('0x251a')}},'faxQueueNotify':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x225b'),'params':{'id':'@id'}},'smsQueueNotify':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x82e'),'params':{'id':_0x1c5317('0x251a')}},'openchannelQueueNotify':{'method':'post','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x202'),'params':{'id':_0x1c5317('0x251a')}},'agentNotify':{'method':'post','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1537'),'params':{'id':_0x1c5317('0x251a')}}}),_0x5d5d2c[_0x1c5317('0x161a')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'version',{},{'fetch':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xe48')},'reset':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'version/reset'},'pull':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+'version/pull'},'restart':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'version/restart'},'migrations':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'version/migrations'}}),_0x5d5d2c[_0x1c5317('0x12b1')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x12b1'),{},{'killProcess':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x104d'),'params':{'pid':_0x1c5317('0x241e')}}}),_0x5d5d2c['pm2']=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x49c'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4'),'isArray':!![]}}),_0x5d5d2c[_0x1c5317('0x1775')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'users/:id',{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xe93')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1036'),'params':{'includeAll':'@includeAll'}},'bulkCreate':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x3d4'),'isArray':!![]},'addContacts':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'users/:id/contacts'},'changePassword':{'isArray':![],'method':_0x1c5317('0x8c4'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'users/:id/password'},'addQueues':{'isArray':!![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1a93')},'removeQueues':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1a93')},'addAvatar':{'isArray':![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1f2b')},'getAvatar':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'users/:id/avatar'},'getContacts':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xd39')},'getQueues':{'isArray':![],'method':'get','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1a93')},'getVoiceQueuesRt':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'users/:id/queues_rt'},'getGroups':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xc83')},'getRecordings':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x233a')},'getScreenRecordings':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xaeb')},'getChatInteractions':{'isArray':![],'method':'get','url':_0x5d5d2c['baseUrl']+'users/:id/chat/interactions'},'getOpenchannelInteractions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x9d2')},'getMailInteractions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'users/:id/mail/interactions'},'getSmsInteractions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'users/:id/sms/interactions'},'getFaxInteractions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x47e')},'getWhatsappInteractions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'users/:id/whatsapp/interactions'},'login':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x452')},'logout':{'isArray':![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x131')},'pause':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'users/:id/pause'},'unpause':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xb39')},'getTeams':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1fcc')},'addTeams':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1fcc')},'removeTeams':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1fcc')},'getLists':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'users/:id/lists'},'getAgents':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x20ca')},'addChatInteractions':{'isArray':!![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x23a5')},'removeChatInteractions':{'isArray':![],'method':'delete','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x23a5')},'addMailInteractions':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'users/:id/mail_interactions'},'removeMailInteractions':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'users/:id/mail_interactions'},'addFaxInteractions':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x23cc')},'removeFaxInteractions':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x23cc')},'addSmsInteractions':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+'users/:id/sms_interactions'},'removeSmsInteractions':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'users/:id/sms_interactions'},'addOpenchannelInteractions':{'isArray':!![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1d62')},'removeOpenchannelInteractions':{'isArray':![],'method':'delete','url':_0x5d5d2c['baseUrl']+'users/:id/openchannel_interactions'},'addWhatsappInteractions':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x13f3')},'removeWhatsappInteractions':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x13f3')},'getVoicePrefixes':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1bff')},'getFaxAccounts':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x15')},'addFaxAccounts':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x15')},'removeFaxAccounts':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x15')},'getMailAccounts':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x15c0')},'addMailAccounts':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x15c0')},'removeMailAccounts':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x15c0')},'getOpenchannelAccounts':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xc69')},'addOpenchannelAccounts':{'isArray':!![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+'users/:id/openchannel_accounts'},'removeOpenchannelAccounts':{'isArray':![],'method':'delete','url':_0x5d5d2c[_0x1c5317('0x390')]+'users/:id/openchannel_accounts'},'getSmsAccounts':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1acc')},'addSmsAccounts':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1acc')},'removeSmsAccounts':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1acc')},'getChatWebsites':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+'users/:id/chat_websites'},'addChatWebsites':{'isArray':!![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2026')},'removeChatWebsites':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'users/:id/chat_websites'},'getWhatsappAccounts':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xcac')},'addWhatsappAccounts':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xcac')},'removeWhatsappAccounts':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xcac')},'getSquareProjects':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+'users/:id/square_projects'},'addSquareProjects':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'users/:id/square_projects'},'removeSquareProjects':{'isArray':![],'method':'delete','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x535')},'getScheduledCalls':{'isArray':![],'method':'get','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x12ce')},'getApiKey':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x49b')},'createApiKey':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+'users/:id/api_key'},'removeApiKey':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x49b')},'whoami':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+'users/whoami'}}),_0x5d5d2c[_0x1c5317('0x52a')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x4de'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+'voice/chanspy/describe'},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x8b8'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x608')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x35'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0xecb')},'clone':{'method':'post','url':_0x5d5d2c['baseUrl']+'voice/contexts/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x1b0c')]=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x2429'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x11ce')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'voice/extensions/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}},'addApplications':{'isArray':![],'method':'post','url':_0x5d5d2c['baseUrl']+'voice/extensions/:id/applications'}}),_0x5d5d2c[_0x1c5317('0x1bd9')]=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x1f5b'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x2f7')},'clone':{'method':'post','url':_0x5d5d2c['baseUrl']+'voice/mohs/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}},'addSound':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x12e6')},'removeSound':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1b18')},'getSounds':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x12e6')}}),_0x5d5d2c[_0x1c5317('0xb97')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'voice/queues/:id',{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1f84')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'voice/queues/:id/clone','params':{'includeAll':'@includeAll'}},'getHoppers':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'voice/queues/:id/hoppers'},'getHopperHistories':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x239b')},'getHopperFinals':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'voice/queues/:id/hopper_finals'},'getHopperBlacks':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+'voice/queues/:id/hopper_black'},'getTeams':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x8af')},'addTeams':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x8af')},'removeTeams':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'voice/queues/:id/teams'},'addAgents':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1ccc')},'removeAgents':{'isArray':![],'method':'delete','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1ccc')},'getAgents':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1ccc')},'getMembers':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x261c')},'getLists':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x27f4')},'addLists':{'isArray':!![],'method':'post','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x27f4')},'removeLists':{'isArray':!![],'method':'delete','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x27f4')},'getBlackLists':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+'voice/queues/:id/blacklists'},'addBlackLists':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'voice/queues/:id/blacklists'},'removeBlackLists':{'isArray':!![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x883')}}),_0x5d5d2c['voiceRecording']=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x938'),{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1f02')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+'voice/recordings/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}},'download':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+'voice/recordings/:id/download','responseType':_0x1c5317('0xce1'),'cache':![],'transformResponse':function _0x3c6380(_0x3a9de2,_0x693c28){var _0x3fc6ed=_0x1c5317,_0x16f6da=_0x693c28();return{'type':_0x16f6da[_0x3fc6ed('0x16cb')],'length':_0x16f6da[_0x3fc6ed('0x5ba')],'buffer':_0x3a9de2};}},'downloads':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x271a')},'runTranscribe':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1109')},'downloadTranscribe':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1109'),'responseType':'arraybuffer','cache':![],'transformResponse':function _0x162895(_0x1fceed,_0x485c2a){var _0x2cb864=_0x1c5317,_0x38abc5=_0x485c2a();return{'type':_0x38abc5[_0x2cb864('0x16cb')],'length':_0x38abc5['content-length'],'buffer':_0x1fceed};}}}),_0x5d5d2c['screenRecording']=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x14a7'),{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xa26')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x19aa'),'params':{'includeAll':_0x1c5317('0x63e')}},'download':{'isArray':![],'method':'get','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x127c'),'responseType':'arraybuffer','cache':![],'transformResponse':function _0xe6ee46(_0x132618,_0x43c151){var _0x15a972=_0x1c5317,_0x13ecd9=_0x43c151();return{'type':_0x13ecd9[_0x15a972('0x16cb')],'length':_0x13ecd9[_0x15a972('0x5ba')],'buffer':_0x132618};}}}),_0x5d5d2c['voiceMail']=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xb05'),{'id':_0x1c5317('0x251a')},{'update':{'method':'put'},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x549')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x10eb'),'params':{'includeAll':_0x1c5317('0x63e')}},'getMessages':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x18b3')}}),_0x5d5d2c[_0x1c5317('0x1602')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x27fa'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'voice/mails/messages/describe'},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'voice/mails/messages/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}},'download':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0xd9c'),'responseType':'arraybuffer','cache':![],'transformResponse':function _0x4dc7ec(_0xe1031a,_0x470060){var _0x58d920=_0x1c5317,_0x599f88=_0x470060();return{'type':_0x599f88[_0x58d920('0x16cb')],'length':_0x599f88[_0x58d920('0x5ba')],'buffer':_0xe1031a};}}}),_0x5d5d2c['voiceCallReport']=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x50e'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x136d')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2628'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c['voiceDialReport']=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'voice/dials/reports/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2672')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x384'),'params':{'includeAll':'@includeAll'}}}),_0x5d5d2c[_0x1c5317('0x9b6')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xf38'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xf69')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x803'),'params':{'includeAll':'@includeAll'}}}),_0x5d5d2c[_0x1c5317('0x1ac1')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'voice/queues/reports/:id',{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1018')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1ea4'),'params':{'includeAll':_0x1c5317('0x63e')}},'getVoiceQueuesReport':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'voice/queues/reports/index'}}),_0x5d5d2c[_0x1c5317('0x222b')]=_0x1c8317(_0x5d5d2c['baseUrl']+'members/reports/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1d43')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'members/reports/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x1280')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x435'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'trunks/describe'},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x242d'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x40')]=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0xa1b'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x89')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x163b'),'params':{'includeAll':'@includeAll'}}}),_0x5d5d2c[_0x1c5317('0x1729')]=_0x1c8317(_0x5d5d2c['baseUrl']+'mail/out_servers/:id',{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x2757')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1d48'),'params':{'includeAll':'@includeAll'}}}),_0x5d5d2c[_0x1c5317('0x66')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x22bd'),{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1e32')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1f6d'),'params':{'includeAll':_0x1c5317('0x63e')}},'addDisposition':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x281e')},'getDispositions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x281e')},'removeDispositions':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x281e')},'addAnswer':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1086')},'getAnswers':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1086')},'removeAnswers':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'mail/accounts/:id/canned_answers'},'getImap':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x26f8')},'addImap':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x26f8')},'removeImap':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x26f8')},'getSmtp':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xcef')},'addSmtp':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0xcef')},'removeSmtp':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xcef')},'addInteraction':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x26db')},'getInteractions':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x26db')},'addApplications':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'mail/accounts/:id/applications'},'getApplications':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2372')},'getMessages':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x14a9')},'send':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1d0c')},'verifySmtp':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1638')},'addAgents':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1f9a')},'removeAgents':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1f9a')},'getAgents':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1f9a')}}),_0x5d5d2c[_0x1c5317('0xb3')]=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0xbea'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'mail/queues/describe'},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1ce'),'params':{'includeAll':'@includeAll'}},'getMembers':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2011')},'getTeams':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xd7e')},'addTeams':{'isArray':!![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xd7e')},'removeTeams':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xd7e')},'addAgents':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x7f4')},'removeAgents':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'mail/queues/:id/users'},'getAgents':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'mail/queues/:id/users'}}),_0x5d5d2c[_0x1c5317('0xa94')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xbcb'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x124c')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1935'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x57')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'mail/interactions/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'mail/interactions/describe'},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x142c'),'params':{'includeAll':_0x1c5317('0x63e')}},'addMessage':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1170')},'getMessages':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1170')},'addTags':{'isArray':![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x13e1')},'removeTags':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x13e1')},'download':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1d83'),'responseType':_0x1c5317('0xce1'),'cache':![],'transformResponse':function _0x4b613f(_0x20adef,_0x3e631d){var _0x1545e8=_0x1c5317,_0x3bc473=_0x3e631d();return{'type':_0x3bc473[_0x1545e8('0x16cb')],'length':_0x3bc473[_0x1545e8('0x5ba')],'buffer':_0x20adef};}}}),_0x5d5d2c[_0x1c5317('0x4cd')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x763'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x23eb')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x8a5'),'params':{'includeAll':_0x1c5317('0x63e')}},'accept':{'isArray':![],'method':_0x1c5317('0x8c4'),'url':_0x5d5d2c['baseUrl']+'mail/messages/:id/accept'},'reject':{'isArray':![],'method':_0x1c5317('0x8c4'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xd79')},'download':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x19e6'),'responseType':'arraybuffer','cache':![],'transformResponse':function _0x2cd756(_0x5972e2,_0x45ae7b){var _0x5f07dd=_0x1c5317,_0x26a515=_0x45ae7b();return{'type':_0x26a515[_0x5f07dd('0x16cb')],'length':_0x26a515[_0x5f07dd('0x5ba')],'buffer':_0x5972e2};}}}),_0x5d5d2c[_0x1c5317('0x209c')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1b02'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x2001')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+'mail/applications/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c['mailQueueReport']=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xd98'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1742')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2504'),'params':{'includeAll':'@includeAll'}}}),_0x5d5d2c['dashboard']=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'dashboards/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1f89')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x12fd'),'params':{'includeAll':'@includeAll'}},'addItem':{'isArray':![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+'dashboards/:id/items'},'getItems':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'dashboards/:id/items'}}),_0x5d5d2c[_0x1c5317('0x1e08')]=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x156c'),{'id':_0x1c5317('0x251a')},{'update':{'method':'put'},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'dashboards/items/describe'},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1d4'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c['faxAccount']=_0x1c8317(_0x5d5d2c['baseUrl']+'fax/accounts/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x11cf')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1cba'),'params':{'includeAll':_0x1c5317('0x63e')}},'addDisposition':{'isArray':![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2196')},'getDispositions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2196')},'removeDispositions':{'isArray':![],'method':'delete','url':_0x5d5d2c['baseUrl']+'fax/accounts/:id/dispositions'},'addAnswer':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'fax/accounts/:id/canned_answers'},'getAnswers':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'fax/accounts/:id/canned_answers'},'removeAnswers':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'fax/accounts/:id/canned_answers'},'addInteraction':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x208c')},'getInteractions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x208c')},'addApplications':{'isArray':![],'method':'post','url':_0x5d5d2c['baseUrl']+'fax/accounts/:id/applications'},'getApplications':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'fax/accounts/:id/applications'},'addAccountApplications':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1037')},'updateAccountApplications':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x53a')},'getMessages':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+'fax/accounts/:id/messages'},'send':{'isArray':![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xcb2')},'addAgents':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x810')},'removeAgents':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x810')},'getAgents':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'fax/accounts/:id/users'}}),_0x5d5d2c['faxApplication']=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1ed0'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'fax/applications/describe'},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x224b'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x2592')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'fax/interactions/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'fax/interactions/describe'},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'fax/interactions/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}},'addMessage':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2848')},'getMessages':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'fax/interactions/:id/messages'},'addTags':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'fax/interactions/:id/tags'},'removeTags':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1d90')},'download':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x8e2'),'responseType':_0x1c5317('0xce1'),'cache':![],'transformResponse':function _0x47dfe2(_0x3453b3,_0x41199f){var _0x264fb1=_0x1c5317,_0x431d9f=_0x41199f();return{'type':_0x431d9f[_0x264fb1('0x16cb')],'length':_0x431d9f['content-length'],'buffer':_0x3453b3};}}}),_0x5d5d2c[_0x1c5317('0x825')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x9ce'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x18e7')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x13a8'),'params':{'includeAll':_0x1c5317('0x63e')}},'accept':{'isArray':![],'method':_0x1c5317('0x8c4'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x9c2')},'reject':{'isArray':![],'method':_0x1c5317('0x8c4'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x284d')},'download':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'fax/messages/:id/download','responseType':'arraybuffer','cache':![],'transformResponse':function _0xe7f866(_0x536c0d,_0x577b8f){var _0x224c86=_0x1c5317,_0xef48dd=_0x577b8f();return{'type':_0xef48dd[_0x224c86('0x16cb')],'length':_0xef48dd[_0x224c86('0x5ba')],'buffer':_0x536c0d};}}}),_0x5d5d2c[_0x1c5317('0x1cb7')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'fax/queues/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x25c0')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x2623'),'params':{'includeAll':_0x1c5317('0x63e')}},'getMembers':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x643')},'getTeams':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1699')},'addTeams':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'fax/queues/:id/teams'},'removeTeams':{'isArray':![],'method':'delete','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1699')},'addAgents':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x17ae')},'removeAgents':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'fax/queues/:id/users'},'getAgents':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x17ae')}}),_0x5d5d2c[_0x1c5317('0x101')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x15b3'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x57e')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'fax/reports/queue/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0xa10')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xa66'),{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+'sms/accounts/describe'},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'sms/accounts/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}},'addDisposition':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1bef')},'getDispositions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1bef')},'removeDispositions':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1bef')},'addAnswer':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+'sms/accounts/:id/canned_answers'},'getAnswers':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x18fd')},'removeAnswers':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x18fd')},'notify':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xa03')},'addApplications':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'sms/accounts/:id/applications'},'getApplications':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xd9f')},'getInteractions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1792')},'send':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x375')},'status':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x18af')},'statusGet':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x18af')},'addAgents':{'isArray':!![],'method':'post','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x14b3')},'removeAgents':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x14b3')},'getAgents':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x14b3')}}),_0x5d5d2c[_0x1c5317('0x1f72')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2098'),{'id':_0x1c5317('0x251a')},{'update':{'method':'put'},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1c91')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x210d'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x11f1')]=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x141'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0xd40')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1b06'),'params':{'includeAll':_0x1c5317('0x63e')}},'addMessage':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'sms/interactions/:id/messages'},'getMessages':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1788')},'addTags':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x159f')},'removeTags':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x159f')},'download':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1af9'),'responseType':_0x1c5317('0xce1'),'cache':![],'transformResponse':function _0x334caa(_0x43713d,_0x4929d5){var _0x162ee8=_0x1c5317,_0x12ba44=_0x4929d5();return{'type':_0x12ba44[_0x162ee8('0x16cb')],'length':_0x12ba44['content-length'],'buffer':_0x43713d};}}}),_0x5d5d2c[_0x1c5317('0x1393')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x8d0'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x956')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x272b'),'params':{'includeAll':_0x1c5317('0x63e')}},'accept':{'isArray':![],'method':_0x1c5317('0x8c4'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x2278')},'reject':{'isArray':![],'method':_0x1c5317('0x8c4'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x21bc')},'status':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2821')}}),_0x5d5d2c[_0x1c5317('0x754')]=_0x1c8317(_0x5d5d2c['baseUrl']+'sms/queues/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x466')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xcf'),'params':{'includeAll':_0x1c5317('0x63e')}},'getMembers':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1ec5')},'getTeams':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x227d')},'addTeams':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x227d')},'removeTeams':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'sms/queues/:id/teams'},'addAgents':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x13cc')},'removeAgents':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x13cc')},'getAgents':{'isArray':![],'method':'get','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x13cc')}}),_0x5d5d2c[_0x1c5317('0x151f')]=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x1496'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xd7a')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+'openchannel/accounts/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}},'addDisposition':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+'openchannel/accounts/:id/dispositions'},'getDispositions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2614')},'removeDispositions':{'isArray':![],'method':'delete','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x2614')},'addAnswer':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+'openchannel/accounts/:id/canned_answers'},'getAnswers':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xa91')},'removeAnswers':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xa91')},'notify':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x36d')},'addApplications':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'openchannel/accounts/:id/applications'},'getApplications':{'isArray':![],'method':'get','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x45')},'getInteractions':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2195')},'addAgents':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'openchannel/accounts/:id/users'},'removeAgents':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xb75')},'getAgents':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xb75')},'send':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xf02')}}),_0x5d5d2c[_0x1c5317('0x5c6')]=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x7c3'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x108e')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x215'),'params':{'includeAll':'@includeAll'}}}),_0x5d5d2c[_0x1c5317('0xb01')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1745'),{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x19ce')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1cbd'),'params':{'includeAll':_0x1c5317('0x63e')}},'addMessage':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'openchannel/interactions/:id/messages'},'getMessages':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'openchannel/interactions/:id/messages'},'addTags':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1cc')},'removeTags':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1cc')},'download':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'openchannel/interactions/:id/download','responseType':_0x1c5317('0xce1'),'cache':![],'transformResponse':function _0x22f76a(_0x39f698,_0x385747){var _0x1ca818=_0x1c5317,_0x57693b=_0x385747();return{'type':_0x57693b[_0x1ca818('0x16cb')],'length':_0x57693b[_0x1ca818('0x5ba')],'buffer':_0x39f698};}}}),_0x5d5d2c[_0x1c5317('0x172d')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1a75'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'openchannel/messages/describe'},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x14de'),'params':{'includeAll':_0x1c5317('0x63e')}},'accept':{'isArray':![],'method':_0x1c5317('0x8c4'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'openchannel/messages/:id/accept'},'reject':{'isArray':![],'method':'put','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1007')}}),_0x5d5d2c['openchannelQueue']=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xda0'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+'openchannel/queues/describe'},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x79c'),'params':{'includeAll':_0x1c5317('0x63e')}},'getMembers':{'isArray':![],'method':'get','url':_0x5d5d2c['baseUrl']+'openchannel/queues/:id/members'},'getTeams':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x3cf')},'addTeams':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x3cf')},'removeTeams':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x3cf')},'addAgents':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0xace')},'removeAgents':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xace')},'getAgents':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'openchannel/queues/:id/users'}}),_0x5d5d2c[_0x1c5317('0xe3c')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x237d'),{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1136')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'chat/websites/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}},'addDisposition':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x157c')},'getDispositions':{'isArray':![],'method':'get','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x157c')},'removeDispositions':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'chat/websites/:id/dispositions'},'addAnswer':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'chat/websites/:id/canned_answers'},'getAnswers':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xc9e')},'removeAnswers':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0xc9e')},'addLogo':{'isArray':![],'method':'post','url':_0x5d5d2c['baseUrl']+'chat/websites/:id/logo'},'addAvatar':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x15fd')},'addCustomerAvatar':{'isArray':![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1253')},'addSystemAvatar':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'chat/websites/:id/system_avatar'},'getLogo':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x98')},'getAvatar':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+'chat/websites/:id/avatar'},'getCustomerAvatar':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1253')},'getSystemAvatar':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x552')},'notify':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1e56')},'offline':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x19f6')},'addInteraction':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x13fc')},'getInteractions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x13fc')},'getSnippet':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0xdda')},'addApplications':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0xb5')},'getApplications':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'chat/websites/:id/applications'},'addProactiveActions':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'chat/websites/:id/proactive_actions'},'getProactiveActions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'chat/websites/:id/proactive_actions'},'getFields':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1225')},'getOfflineMessages':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1d51')},'addAgents':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1d06')},'removeAgents':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c['baseUrl']+'chat/websites/:id/users'},'getAgents':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+'chat/websites/:id/users'}}),_0x5d5d2c[_0x1c5317('0x18f6')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1f51'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+'openchannel/reports/queue/describe'},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+'openchannel/reports/queue/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x5d5d2c[_0x1c5317('0x1bf0')]=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x199a'),{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x15f8')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x9fa'),'params':{'includeAll':'@includeAll'}}}),_0x5d5d2c[_0x1c5317('0xc06')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xc2a'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+'chat/interactions/describe'},'clone':{'method':'post','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x102f'),'params':{'includeAll':_0x1c5317('0x63e')}},'createVidaooSession':{'isArray':![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x18c1')},'customUpdate':{'isArray':![],'method':'put','url':_0x5d5d2c[_0x1c5317('0x390')]+'chat/interactions/:id/custom_update'},'abandon':{'isArray':![],'method':'put','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2600')},'attachmentUpload':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x207f')},'attachmentDownload':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1bf8')},'close':{'isArray':![],'method':_0x1c5317('0x8c4'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'chat/interactions/:id/close'},'addMessage':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1e3a')},'getMessages':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1e3a')},'getMyMessages':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1e7d')},'addTags':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'chat/interactions/:id/tags'},'removeTags':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x6b')},'download':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x197d'),'responseType':'arraybuffer','cache':![],'transformResponse':function _0x499308(_0x507480,_0x5adfe3){var _0x433db5=_0x1c5317,_0x518e4d=_0x5adfe3();return{'type':_0x518e4d[_0x433db5('0x16cb')],'length':_0x518e4d[_0x433db5('0x5ba')],'buffer':_0x507480};}}}),_0x5d5d2c[_0x1c5317('0x237c')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'chat/messages/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x26d')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2809'),'params':{'includeAll':'@includeAll'}},'accept':{'isArray':![],'method':_0x1c5317('0x8c4'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x90e')},'reject':{'isArray':![],'method':_0x1c5317('0x8c4'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x598')}}),_0x5d5d2c[_0x1c5317('0x1f83')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x169d'),{'id':_0x1c5317('0x251a')},{'update':{'method':'put'},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+'chat/offline_messages/describe'},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1bb1'),'params':{'includeAll':'@includeAll'}}}),_0x5d5d2c[_0x1c5317('0x6b5')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x11c1'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x214a')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x685'),'params':{'includeAll':_0x1c5317('0x63e')}},'getMembers':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+'chat/queues/:id/members'},'getTeams':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x465')},'addTeams':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x465')},'removeTeams':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x465')},'addAgents':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1199')},'removeAgents':{'isArray':![],'method':'delete','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1199')},'getAgents':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1199')}}),_0x5d5d2c[_0x1c5317('0x14f9')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xf8d'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x339')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1728'),'params':{'includeAll':_0x1c5317('0x63e')}},'getUnread':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x5aa')},'addMembers':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x26b4')},'getMembers':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x26b4')},'removeMembers':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'chat/groups/:id/members'},'addMessage':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xb6d')},'getMessages':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xb6d')}}),_0x5d5d2c[_0x1c5317('0x7b1')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x420'),{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0xe12')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1c11'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x2725')]=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x8d9'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+'cm/companies/describe'},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1a8d'),'params':{'includeAll':'@includeAll'}},'addContacts':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'cm/companies/:id/contacts'},'getContacts':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'cm/companies/:id/contacts'}}),_0x5d5d2c[_0x1c5317('0x25dc')]=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x20c3'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'cm/contacts/describe'},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1736'),'params':{'includeAll':'@includeAll'}},'merge':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xb84')},'bulkCreate':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2570')},'getTags':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x3f2')},'setTags':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x3f2')},'getHoppers':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'cm/contacts/:id/hoppers'},'getHopperHistories':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1772')},'getHopperFinals':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'cm/contacts/:id/hopper_finals'},'getJscriptySessions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'cm/contacts/:id/jscripty_sessions'},'uploadCsv':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x2735')},'upload':{'isArray':![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+'cm/contacts/upload'},'import':{'isArray':![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x6f3')}}),_0x5d5d2c['cmHopper']=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'cm/hopper/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x5b7')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x25f8'),'params':{'includeAll':'@includeAll'}},'getPreview':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x12c7')},'getOpenContacts':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xeed')}}),_0x5d5d2c[_0x1c5317('0x1586')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1193'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x233e')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1e45'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x10d9')]=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x1427'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x221a')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1d92'),'params':{'includeAll':_0x1c5317('0x63e')}},'countContactsQueueCampaignHopperFinal':{'isArray':!![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x7b9')},'countContactsIvrCampaignHopperFinal':{'isArray':!![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+'cm/hopper_final/campaign/countAttributes/:id'},'moveContactsQueueCampaignHopperFinal':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'cm/hopper_final/voice/queue/moveContacts/:id'},'moveContactsIvrCampaignHopperFinal':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1494')},'checkContactHopper':{'isArray':![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x499')}}),_0x5d5d2c[_0x1c5317('0x1ec7')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x27b8'),{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'cm/hopper_history/describe'},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x18d5'),'params':{'includeAll':'@includeAll'}}}),_0x5d5d2c[_0x1c5317('0x1851')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xfe7'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+'cm/custom_fields/describe'},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x5ae'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c['action']=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x10c0'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x156a')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'actions/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x21c1')]=_0x1c8317(_0x5d5d2c['baseUrl']+'automations/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'automations/describe'},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x725'),'params':{'includeAll':'@includeAll'}},'addConditions':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xef1')},'getConditions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xef1')},'addActions':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1096')},'getActions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1096')}}),_0x5d5d2c['cannedAnswer']=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x8bc'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x282a')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1a40'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x22c8')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'dispositions/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1475')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'dispositions/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c['condition']=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x21f0'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1e2b')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x527'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0xa07')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'intervals/:id',{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1bc2')},'clone':{'method':'post','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x657'),'params':{'includeAll':_0x1c5317('0x63e')}},'addInterval':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+'intervals/:id/sub_intervals'},'getIntervals':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x316')},'addIntervals':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1741')}}),_0x5d5d2c[_0x1c5317('0x1e26')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'pauses/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xde6')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x44d'),'params':{'includeAll':'@includeAll'}}}),_0x5d5d2c[_0x1c5317('0xc4')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x3a9'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1609')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1861'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c['voiceQueuesLog']=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2168'),{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1ac5')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xd19'),'params':{'includeAll':'@includeAll'}}}),_0x5d5d2c[_0x1c5317('0x11f4')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xab0'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1681')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+'schedules/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}},'run':{'isArray':![],'method':'get','url':_0x5d5d2c['baseUrl']+_0x1c5317('0xa3e')}}),_0x5d5d2c[_0x1c5317('0x2397')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'sounds/:id',{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+'sounds/describe'},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0xdaa'),'params':{'includeAll':_0x1c5317('0x63e')}},'download':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'sounds/:id/download','responseType':'arraybuffer','cache':![],'transformResponse':function _0x128592(_0xc860ef,_0x31ca20){var _0x479447=_0x1c5317,_0x312b44=_0x31ca20();return{'type':_0x312b44['content-type'],'length':_0x312b44[_0x479447('0x5ba')],'buffer':_0xc860ef};}},'delete':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xe6a')}}),_0x5d5d2c['tag']=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x21a4'),{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x239a')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'tags/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x1a51')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x226f'),{'id':_0x1c5317('0x251a')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x277a')},'clone':{'method':'post','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x12da'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x23b9')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'triggers/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1774')},'clone':{'method':'post','url':_0x5d5d2c['baseUrl']+'triggers/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}},'addAllCondition':{'isArray':![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x135')},'addAnyCondition':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x216a')},'getAllConditions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x135')},'getAnyConditions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x216a')},'addAction':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x418')},'getActions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x418')}}),_0x5d5d2c[_0x1c5317('0x25bb')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'variables/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x482')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xe24'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x4bf')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x762'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1bc3')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1903'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x278d')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xc53'),{'id':_0x1c5317('0x251a')},{'update':{'method':'put'},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1f78')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0xd01'),'params':{'includeAll':'@includeAll'}}}),_0x5d5d2c[_0x1c5317('0x2041')]=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x57a'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1e0')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xb8f'),'params':{'includeAll':_0x1c5317('0x63e')}},'preview':{'isArray':!![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x13b9')},'run':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xcb4')},'query':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'analytics/custom_reports/:id/query'}}),_0x5d5d2c[_0x1c5317('0xc42')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'analytics/default_reports/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'analytics/default_reports/describe'},'clone':{'method':'post','url':_0x5d5d2c['baseUrl']+_0x1c5317('0xe98'),'params':{'includeAll':_0x1c5317('0x63e')}},'preview':{'isArray':!![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2099')},'run':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x213')},'query':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x184b')}}),_0x5d5d2c[_0x1c5317('0x27a4')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1604'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x17fc')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1516'),'params':{'includeAll':_0x1c5317('0x63e')}},'download':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1c36'),'responseType':_0x1c5317('0xce1'),'cache':![],'transformResponse':function _0x460602(_0x16f94a,_0x355a42){var _0x32713b=_0x1c5317,_0x3fe105=_0x355a42();return{'type':_0x3fe105[_0x32713b('0x16cb')],'length':_0x3fe105[_0x32713b('0x5ba')],'buffer':_0x16f94a};}}}),_0x5d5d2c[_0x1c5317('0x14bc')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1312'),{'id':_0x1c5317('0x251a')},{'update':{'method':'put'},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1301')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2a9'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c['analyticFieldReport']=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0xe49'),{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x275d')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'analytics/field_reports/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}},'bulkCreate':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1edd'),'isArray':!![]},'bulkDestroy':{'method':_0x1c5317('0x1164'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x164e'),'isArray':!![]},'addFields':{'isArray':!![],'method':'post','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1ca7')}}),_0x5d5d2c[_0x1c5317('0x1148')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xd17'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2384')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1ca'),'params':{'includeAll':'@includeAll'}}}),_0x5d5d2c[_0x1c5317('0x102a')]=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x1865'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x715')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+'integrations/salesforce/accounts/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}},'getConfigurations':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1e4e')},'addConfiguration':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1e4e')},'getFields':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'integrations/salesforce/accounts/:id/fields'}}),_0x5d5d2c[_0x1c5317('0x15cc')]=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x1fa'),{'id':_0x1c5317('0x251a')},{'update':{'method':'put'},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1f99')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x124'),'params':{'includeAll':_0x1c5317('0x63e')}},'getFields':{'isArray':![],'method':'get','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x18a')},'getSubjects':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'integrations/salesforce/configurations/:id/subjects'},'getDescriptions':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+'integrations/salesforce/configurations/:id/descriptions'}}),_0x5d5d2c[_0x1c5317('0x124e')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x967'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x208e')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x11e6'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0xd7d')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xc4a'),{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x266e')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'integrations/sugarcrm/accounts/:id/clone','params':{'includeAll':'@includeAll'}},'getConfigurations':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'integrations/sugarcrm/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2839')},'getFields':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x189b')}}),_0x5d5d2c[_0x1c5317('0x20d0')]=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x16f5'),{'id':_0x1c5317('0x251a')},{'update':{'method':'put'},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2229')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'integrations/sugarcrm/configurations/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}},'getFields':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x23bc')},'getSubjects':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1038')},'getDescriptions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x383')}}),_0x5d5d2c[_0x1c5317('0x1a95')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x7b'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'integrations/sugarcrm/fields/describe'},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+'integrations/sugarcrm/fields/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x5d5d2c[_0x1c5317('0x2012')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x8a9'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x745')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x251b'),'params':{'includeAll':_0x1c5317('0x63e')}},'getConfigurations':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xae7')},'addConfiguration':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'integrations/desk/accounts/:id/configurations'},'getFields':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xba1')}}),_0x5d5d2c['intDeskConfiguration']=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'integrations/desk/configurations/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1c8e')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1998'),'params':{'includeAll':_0x1c5317('0x63e')}},'getFields':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x4f')},'getSubjects':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x9bd')},'getDescriptions':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+'integrations/desk/configurations/:id/descriptions'},'getTags':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1c08')},'setTags':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1c08')}}),_0x5d5d2c[_0x1c5317('0x23bf')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2465'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1a83')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xcc5'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x19a4')]=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x1f7c'),{'id':_0x1c5317('0x251a')},{'update':{'method':'put'},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0xf43')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2859'),'params':{'includeAll':_0x1c5317('0x63e')}},'getConfigurations':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xffb')},'addConfiguration':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xffb')},'getFields':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x6e3')}}),_0x5d5d2c[_0x1c5317('0xe96')]=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x580'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x11fa')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x80e'),'params':{'includeAll':_0x1c5317('0x63e')}},'getFields':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'integrations/zoho/configurations/:id/fields'},'getSubjects':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'integrations/zoho/configurations/:id/subjects'},'getDescriptions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xeb8')}}),_0x5d5d2c[_0x1c5317('0x1af2')]=_0x1c8317(_0x5d5d2c['baseUrl']+'integrations/zoho/fields/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x64e')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1783'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x2352')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x867'),{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0xeae')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xb55'),'params':{'includeAll':_0x1c5317('0x63e')}},'getConfigurations':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1423')},'addConfiguration':{'isArray':![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1423')},'getFields':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1bfc')}}),_0x5d5d2c['intZendeskConfiguration']=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2349'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x15f6')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x22c0'),'params':{'includeAll':_0x1c5317('0x63e')}},'getFields':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x53')},'getSubjects':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x29b')},'getDescriptions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x6c8')},'getTags':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1229')},'setTags':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+'integrations/zendesk/configurations/:id/tags'}}),_0x5d5d2c[_0x1c5317('0x236')]=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x1245'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x229')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1836'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x64f')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'integrations/freshdesk/accounts/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xa4a')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'integrations/freshdesk/accounts/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}},'getConfigurations':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xaba')},'addConfiguration':{'isArray':![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xaba')},'getFields':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x24f')}}),_0x5d5d2c[_0x1c5317('0x1a5')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x157b'),{'id':_0x1c5317('0x251a')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x100')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x108d'),'params':{'includeAll':_0x1c5317('0x63e')}},'getFields':{'isArray':![],'method':'get','url':_0x5d5d2c['baseUrl']+_0x1c5317('0xfd0')},'getSubjects':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+'integrations/freshdesk/configurations/:id/subjects'},'getDescriptions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x93c')},'getTags':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x25b0')},'setTags':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x25b0')}}),_0x5d5d2c[_0x1c5317('0x2230')]=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x17fb'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+'integrations/freshdesk/fields/describe'},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2236'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c['intVtigerAccount']=_0x1c8317(_0x5d5d2c['baseUrl']+'integrations/vtiger/accounts/:id',{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0xad3')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x219d'),'params':{'includeAll':'@includeAll'}},'getConfigurations':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+'integrations/vtiger/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x198c')},'getFields':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x893')}}),_0x5d5d2c[_0x1c5317('0x1ce5')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'integrations/vtiger/configurations/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'integrations/vtiger/configurations/describe'},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1815'),'params':{'includeAll':_0x1c5317('0x63e')}},'getFields':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x22d8')},'getSubjects':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'integrations/vtiger/configurations/:id/subjects'},'getDescriptions':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x7cc')}}),_0x5d5d2c[_0x1c5317('0x2e1')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'integrations/vtiger/fields/:id',{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x11bc')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+'integrations/vtiger/fields/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x5d5d2c[_0x1c5317('0x26f2')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'integrations/servicenow/accounts/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2537')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x17b9'),'params':{'includeAll':_0x1c5317('0x63e')}},'getConfigurations':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xd16')},'addConfiguration':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xd16')},'getFields':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x10aa')}}),_0x5d5d2c[_0x1c5317('0x734')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'integrations/servicenow/configurations/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x24eb')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x29e'),'params':{'includeAll':_0x1c5317('0x63e')}},'getFields':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x599')},'getSubjects':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1075')},'getDescriptions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x958')}}),_0x5d5d2c[_0x1c5317('0x159c')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1893'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xf7b')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1b35'),'params':{'includeAll':'@includeAll'}}}),_0x5d5d2c[_0x1c5317('0x824')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x957'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2121')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x283'),'params':{'includeAll':'@includeAll'}},'getConfigurations':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'integrations/dynamics365/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1abd')},'getFields':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x278')}}),_0x5d5d2c['intDynamics365Configuration']=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1ef4'),{'id':_0x1c5317('0x251a')},{'update':{'method':'put'},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1555')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xdcb'),'params':{'includeAll':_0x1c5317('0x63e')}},'getFields':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x16ce')},'getSubjects':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1951')},'getDescriptions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x27a1')}}),_0x5d5d2c[_0x1c5317('0x2557')]=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x178f'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1dc1')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x2117'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c['intFreshsalesAccount']=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x1929'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'integrations/freshsales/accounts/describe'},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'integrations/freshsales/accounts/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}},'getConfigurations':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'integrations/freshsales/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x38b')},'getFields':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1d93')}}),_0x5d5d2c[_0x1c5317('0xecf')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1ba2'),{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x137e')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1d3'),'params':{'includeAll':'@includeAll'}},'getSubjects':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xced')},'getDescriptions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'integrations/freshsales/configurations/:id/descriptions'},'getFields':{'isArray':![],'method':'get','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x706')}}),_0x5d5d2c[_0x1c5317('0x1c44')]=_0x1c8317(_0x5d5d2c['baseUrl']+'integrations/freshsales/fields/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1f5e')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x206a'),'params':{'includeAll':'@includeAll'}}}),_0x5d5d2c[_0x1c5317('0x1a37')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x172a'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x10cf')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1469'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x232a')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1548'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2045')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x811'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x8cc')]=_0x1c8317(_0x5d5d2c['baseUrl']+'chat/internal/messages/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':'put'},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1704')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1722'),'params':{'includeAll':'@includeAll'}},'getUsers':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'chat/internal/messages/users'}}),_0x5d5d2c[_0x1c5317('0xf15')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x10e6'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'jscripty/answers/reports/describe'},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'jscripty/answers/reports/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x18f7')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'jscripty/questions/reports/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+'jscripty/questions/reports/describe'},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'jscripty/questions/reports/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x1ca9')]=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x1302'),{'id':_0x1c5317('0x251a')},{'update':{'method':'put'},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x19c5')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x26d8'),'params':{'includeAll':'@includeAll'}},'getQuestions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x11f0')}}),_0x5d5d2c[_0x1c5317('0x23e5')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'sms/reports/queue/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x226')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1a32'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c['squareReport']=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x187'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'square/reports/describe'},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x27db'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x25b9')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x21b8'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1304')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x18f8'),'params':{'includeAll':'@includeAll'}}}),_0x5d5d2c['jscriptyProject']=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x12cb'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x22d0')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1c37'),'params':{'includeAll':_0x1c5317('0x63e')}},'getSessions':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2434')},'getAnswers':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xb4b')},'getSummary':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x189e'),'responseType':_0x1c5317('0xce1'),'cache':![],'transformResponse':function _0x14d0c1(_0x5c4fd0,_0x9e6195){var _0x279830=_0x1c5317,_0x443202=_0x9e6195();return{'type':_0x443202[_0x279830('0x16cb')],'length':_0x443202[_0x279830('0x5ba')],'buffer':_0x5c4fd0};}}}),_0x5d5d2c['setting']=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x148a'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x2634')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x121d'),'params':{'includeAll':'@includeAll'}},'addLogo':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x2435')},'addLogoLogin':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1d89')},'getLogo':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2435')},'getLogoLogin':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1d89')},'gdpr':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x7fe')},'addPreferred':{'isArray':![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+'settings/:id/preferred'},'getPreferred':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'settings/:id/preferred'},'addFavicon':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+'settings/:id/favicon'},'getFavicon':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1be8')}}),_0x5d5d2c[_0x1c5317('0xc45')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x119b'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2177')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x22a3'),'params':{'includeAll':_0x1c5317('0x63e')}},'test':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xe8b')}}),_0x5d5d2c[_0x1c5317('0x1a41')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1f79'),{'id':_0x1c5317('0x251a')},{'update':{'method':'put'},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x5e7')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1443'),'params':{'includeAll':_0x1c5317('0x63e')}},'addUsers':{'isArray':!![],'method':'post','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1542')},'removeUsers':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'square/projects/:id/users'},'getUsers':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+'square/projects/:id/users'}}),_0x5d5d2c[_0x1c5317('0x238f')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1c6a'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'square/recordings/describe'},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0xb9c'),'params':{'includeAll':_0x1c5317('0x63e')}},'download':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1aef'),'responseType':_0x1c5317('0xce1'),'cache':![],'transformResponse':function _0x5bf960(_0x1f6800,_0x1052e9){var _0x2fcaa3=_0x1c5317,_0x19ff1c=_0x1052e9();return{'type':_0x19ff1c[_0x2fcaa3('0x16cb')],'length':_0x19ff1c[_0x2fcaa3('0x5ba')],'buffer':_0x1f6800};}}}),_0x5d5d2c['squareMessage']=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1544'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'square/messages/describe'},'clone':{'method':'post','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x2730'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c['team']=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x19d0'),{'id':_0x1c5317('0x251a')},{'update':{'method':'put'},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xef3')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+'teams/:id/clone','params':{'includeAll':'@includeAll'}},'getQueues':{'isArray':!![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x41')},'addQueues':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'teams/:id/queues'},'removeQueues':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x41')},'addAgents':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'teams/:id/users'},'removeAgents':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1ac')},'getAgents':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1ac')}}),_0x5d5d2c[_0x1c5317('0x2ff')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xdcc'),{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xa35')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1435'),'params':{'includeAll':'@includeAll'}}}),_0x5d5d2c[_0x1c5317('0xf67')]=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x683'),{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+'campaigns/describe'},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x138e'),'params':{'includeAll':_0x1c5317('0x63e')}},'getHoppers':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'campaigns/:id/hoppers'},'getHopperHistories':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x25af')},'getHopperFinals':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'campaigns/:id/hopper_finals'},'getHopperBlacks':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'campaigns/:id/hopper_black'},'getLists':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xd53')},'addLists':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'campaigns/:id/lists'},'removeLists':{'isArray':!![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xd53')},'getBlackLists':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+'campaigns/:id/blacklists'},'addBlackLists':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x125b')},'removeBlackLists':{'isArray':!![],'method':'delete','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x125b')}}),_0x5d5d2c['migration']=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x260c'),{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1449')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x14a4'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c['attachment']=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0xdf3'),{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x106a')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x12fc'),'params':{'includeAll':'@includeAll'}},'download':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x8ad'),'responseType':_0x1c5317('0xce1'),'cache':![],'transformResponse':function _0x45304c(_0x4f03de,_0x7a796e){var _0x487a76=_0x1c5317,_0x308cc1=_0x7a796e();return{'type':_0x308cc1['content-type'],'length':_0x308cc1[_0x487a76('0x5ba')],'buffer':_0x4f03de};}}}),_0x5d5d2c[_0x1c5317('0x2048')]=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x219f'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x24ba')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'plugins/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}},'download':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1061'),'responseType':_0x1c5317('0xce1'),'cache':![],'transformResponse':function _0x2a632a(_0x3be979,_0x553d57){var _0x3cdfa2=_0x1c5317,_0x248803=_0x553d57();return{'type':_0x248803[_0x3cdfa2('0x16cb')],'length':_0x248803['content-length'],'buffer':_0x3be979};}},'upload':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+'plugins/'},'delete':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x219f')},'webhookGet':{'isArray':![],'method':'get','url':_0x5d5d2c['baseUrl']+'plugins/webhook'},'webhookPost':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x11d8')}}),_0x5d5d2c[_0x1c5317('0x606')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x27c7'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x22f4')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1e1c'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x1a9a')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x10c3'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x17cd')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x141c'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x1ab5')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1624'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0xb7d')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x104'),'params':{'includeAll':'@includeAll'}}}),_0x5d5d2c[_0x1c5317('0x3a6')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x26e6'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x10fe')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+'openchannel/reports/transfer/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x379')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xe4f'),{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1085')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x118a'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x11e0')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1bb0'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2701')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1538'),'params':{'includeAll':_0x1c5317('0x63e')}},'addDisposition':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x7b6')},'getDispositions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x7b6')},'removeDispositions':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x7b6')},'addContacts':{'isArray':![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2579')},'getContacts':{'isArray':!![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2579')},'getContactsCsv':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x107f'),'responseType':_0x1c5317('0xce1'),'cache':![],'transformResponse':function _0x456026(_0x292a52,_0x5f28e0){var _0x366f39=_0x1c5317,_0x468f8d=_0x5f28e0();return{'type':_0x468f8d[_0x366f39('0x16cb')],'length':_0x468f8d[_0x366f39('0x5ba')],'buffer':_0x292a52};}},'addCustomField':{'isArray':![],'method':'post','url':_0x5d5d2c['baseUrl']+'cm/lists/:id/fields'},'getCustomFields':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1754')},'addAgents':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x16ef')},'removeAgents':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x16ef')},'getAgents':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'cm/lists/:id/users'}}),_0x5d5d2c['voicePrefix']=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x278f'),{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xabb')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x14a8'),'params':{'includeAll':_0x1c5317('0x63e')}},'addAgents':{'isArray':!![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2265')},'removeAgents':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'voice/prefixes/:id/users'},'getAgents':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2265')}}),_0x5d5d2c[_0x1c5317('0x758')]=_0x1c8317(_0x5d5d2c['baseUrl']+'userProfiles/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x5d5d2c['baseUrl']+'userProfiles/describe'},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x393'),'params':{'includeAll':'@includeAll'}},'addSections':{'isArray':!![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x11d')},'removeSections':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x11d')},'getSections':{'isArray':!![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x11d')},'addResources':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'userProfiles/:id/resources'},'removeResources':{'isArray':![],'method':'delete','url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1c28')},'getResources':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1c28')}}),_0x5d5d2c[_0x1c5317('0xab4')]=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x22f0'),{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'userProfile/sections/describe'},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0xf39'),'params':{'includeAll':'@includeAll'}}}),_0x5d5d2c[_0x1c5317('0x185e')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'userProfile/resources/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x117')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x7be'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c['notification']=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xe3b'),{'id':_0x1c5317('0x251a')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x7d7')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x9cd'),'params':{'includeAll':_0x1c5317('0x63e')}},'sendNotification':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2e9')}}),_0x5d5d2c[_0x1c5317('0x1b5d')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+'whatsapp/accounts/:id',{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xa20')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xd42'),'params':{'includeAll':'@includeAll'}},'addDisposition':{'isArray':![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x31b')},'getDispositions':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x31b')},'removeDispositions':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x31b')},'addAnswer':{'isArray':![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2395')},'getAnswers':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x2395')},'removeAnswers':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2395')},'addAgents':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x7ba')},'removeAgents':{'isArray':![],'method':'delete','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x7ba')},'getAgents':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x7ba')},'addApplications':{'isArray':![],'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+'whatsapp/accounts/:id/applications'},'getApplications':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'whatsapp/accounts/:id/applications'},'notify':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xc6b')},'send':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'whatsapp/accounts/:id/send'}}),_0x5d5d2c[_0x1c5317('0x34e')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x177e'),{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1ca2')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'whatsapp/applications/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0xe4a')]=_0x1c8317(_0x5d5d2c['baseUrl']+_0x1c5317('0x82'),{'id':'@id'},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1be1')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x25dd'),'params':{'includeAll':_0x1c5317('0x63e')}},'addMessage':{'isArray':![],'method':'post','url':_0x5d5d2c['baseUrl']+_0x1c5317('0xecc')},'getMessages':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xecc')},'addTags':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x4bb')},'removeTags':{'isArray':![],'method':'delete','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x4bb')},'download':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0xffd'),'responseType':_0x1c5317('0xce1'),'cache':![],'transformResponse':function _0x15820e(_0x4cd004,_0x5eb538){var _0x1161d6=_0x1c5317,_0x4b7162=_0x5eb538();return{'type':_0x4b7162[_0x1161d6('0x16cb')],'length':_0x4b7162[_0x1161d6('0x5ba')],'buffer':_0x4cd004};}}}),_0x5d5d2c[_0x1c5317('0x19a2')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1983'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1e1b')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'whatsapp/messages/:id/clone','params':{'includeAll':_0x1c5317('0x63e')}},'accept':{'isArray':![],'method':_0x1c5317('0x8c4'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1a15')},'reject':{'isArray':![],'method':_0x1c5317('0x8c4'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x124a')},'status':{'isArray':![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1274')}}),_0x5d5d2c[_0x1c5317('0x6a1')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1bcf'),{'id':_0x1c5317('0x251a')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1644')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x904'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c[_0x1c5317('0x1cfa')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1feb'),{'id':_0x1c5317('0x251a')},{'update':{'method':'put'},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x19bc')},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x996'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c['whatsappQueue']=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x25c9'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+'whatsapp/queues/describe'},'clone':{'method':'post','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x220a'),'params':{'includeAll':_0x1c5317('0x63e')}},'getMembers':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x10bc')},'getTeams':{'isArray':![],'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1b1b')},'addTeams':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1b1b')},'removeTeams':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c['baseUrl']+_0x1c5317('0x1b1b')},'addAgents':{'isArray':!![],'method':_0x1c5317('0xd2'),'url':_0x5d5d2c['baseUrl']+'whatsapp/queues/:id/users'},'removeAgents':{'isArray':![],'method':_0x1c5317('0x1164'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1f4d')},'getAgents':{'isArray':![],'method':'get','url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x1f4d')}}),_0x5d5d2c[_0x1c5317('0x1cdb')]=_0x1c8317(_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x142e'),{'id':_0x1c5317('0x251a')},{'update':{'method':_0x1c5317('0x8c4')},'describe':{'method':_0x1c5317('0x595'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0x2679')},'clone':{'method':_0x1c5317('0xd2'),'url':_0x5d5d2c[_0x1c5317('0x390')]+_0x1c5317('0xf07'),'params':{'includeAll':_0x1c5317('0x63e')}}}),_0x5d5d2c;}const _0x1cb33a=_0x23f340;_0x2586b2['$inject']=[_0x3877e3('0x5db'),_0x3877e3('0x2062')];function _0x2586b2(_0x1435db,_0xe49844){var _0x41c02b=_0x3877e3;_0xe49844[_0x41c02b('0x8f')]({'position':_0x41c02b('0x1f7f'),'sound':![],'html':!![],'theme':'material'}),_0x1435db[_0x41c02b('0x12dd')](_0x41c02b('0x13ec'),{'urlTemplate':_0x41c02b('0xedb')}),_0x1435db['preferredLanguage']('en'),_0x1435db[_0x41c02b('0x832')](null);}const _0x1173d1=_0x2586b2;_0x201a2f[_0x3877e3('0x1a81')]=[_0x3877e3('0x2187'),_0x3877e3('0x13c1'),_0x3877e3('0x26'),_0x3877e3('0xccd'),_0x3877e3('0x1908')];function _0x201a2f(_0x181519,_0x54e662,_0x4ad3d1,_0x5011e6,_0x51f5af){var _0x2f58c7=_0x3877e3,_0xdcfca3=this;_0xdcfca3[_0x2f58c7('0xbc3')]=_0x181519[_0x2f58c7('0xbc3')],_0xdcfca3[_0x2f58c7('0xfab')]=_0x2f58c7('0x7af');var _0x279b9e=['ar','fa','he'],_0x391101=_0x4ad3d1[_0x2f58c7('0x595')]('motion.language');_0x391101&&(_0x54e662[_0x2f58c7('0xfc9')](_0x391101),_0x279b9e[_0x2f58c7('0x2004')](_0x391101)>=0x0&&_0x5011e6[_0x2f58c7('0x21e')][_0x2f58c7('0x595')]({'id':0x1})[_0x2f58c7('0x1376')][_0x2f58c7('0x21ad')](function(_0x5288ad){var _0x411ea0=_0x2f58c7;_0x5288ad&&_0x5288ad[_0x411ea0('0x1f6e')]&&(_0xdcfca3[_0x411ea0('0xfab')]=_0x411ea0('0x79b'));})[_0x2f58c7('0x1c1d')](function(_0xb100a5){var _0x691bcd=_0x2f58c7;_0xb100a5&&_0x51f5af[_0x691bcd('0x2092')]({'title':'Error','msg':_0xb100a5['data']?_0xb100a5[_0x691bcd('0x11c2')][_0x691bcd('0x1224')]||_0xb100a5['message']||_0xb100a5:_0xb100a5[_0x691bcd('0x1224')]||_0xb100a5});}));}const _0x558043=_0x201a2f;_0x59a33a[_0x3877e3('0x1a81')]=[_0x3877e3('0x13c1')],_0xfbbdab[_0x3877e3('0x1a81')]=[_0x3877e3('0x143b'),_0x3877e3('0x13c1')];function _0xfbbdab(_0x292b9f,_0x1688b3){return function(_0x389cbb){var _0x1dcc6b=a0_0x2e7f,_0x8f0c97=new Date(),_0x2da065=new Date(_0x389cbb);if(_0x2da065[_0x1dcc6b('0x2131')]()===_0x8f0c97[_0x1dcc6b('0x2131')]()&&_0x2da065[_0x1dcc6b('0x40c')]()===_0x8f0c97[_0x1dcc6b('0x40c')]()&&_0x2da065[_0x1dcc6b('0x14bb')]()===_0x8f0c97[_0x1dcc6b('0x14bb')]())return _0x292b9f(_0x1dcc6b('0x2457'))(_0x2da065[_0x1dcc6b('0xb9d')](),'shortTime');if(_0x2da065[_0x1dcc6b('0x2131')]()===_0x8f0c97[_0x1dcc6b('0x2131')]()-0x1&&_0x2da065[_0x1dcc6b('0x40c')]()===_0x8f0c97['getMonth']()&&_0x2da065[_0x1dcc6b('0x14bb')]()===_0x8f0c97[_0x1dcc6b('0x14bb')]())return _0x1688b3[_0x1dcc6b('0x183e')]('DASHBOARDS.YESTERDAY')+'\x20'+_0x292b9f(_0x1dcc6b('0x2457'))(_0x2da065[_0x1dcc6b('0xb9d')](),'shortTime');return _0x292b9f(_0x1dcc6b('0x2457'))(_0x2da065['getTime'](),_0x1dcc6b('0x1deb'));};}function _0x478010(){return function(_0x3b3d28,_0x180158,_0x4e977a){var _0x205fe6={},_0x50ed9c=0x0,_0x58c7ba;for(_0x58c7ba in _0x3b3d28){_0x50ed9c>=_0x4e977a&&(_0x205fe6[_0x58c7ba]=_0x3b3d28[_0x58c7ba]);if(++_0x50ed9c===_0x4e977a+_0x180158)break;}return _0x205fe6;};}function _0x985358(){var _0x308b88=_0x3877e3,_0x229b1d=[{'value':_0x308b88('0x1d0e')},{'value':_0x308b88('0x494')},{'value':_0x308b88('0x15d1')},{'value':_0x308b88('0x1185')},{'value':_0x308b88('0x1600')},{'value':_0x308b88('0x1689')},{'value':_0x308b88('0x96')},{'value':_0x308b88('0x22a7')},{'value':_0x308b88('0x1c09')},{'value':_0x308b88('0x1e06')},{'value':_0x308b88('0x753')},{'value':'dec'}],_0x3c49b6=[{'value':'1'},{'value':'2'},{'value':'3'},{'value':'4'},{'value':'5'},{'value':'6'},{'value':'7'},{'value':'8'},{'value':'9'},{'value':'10'},{'value':'11'},{'value':'12'}],_0xda4d72=[{'value':_0x308b88('0x2502')},{'value':_0x308b88('0xe82')},{'value':_0x308b88('0x143a')},{'value':_0x308b88('0x1ab')},{'value':'fri'},{'value':_0x308b88('0x5ac')},{'value':_0x308b88('0xa0a')}],_0x1ad517=[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 _0x12ea34(){return _0x229b1d;},'getMonthNumber':function _0x237e54(){return _0x3c49b6;},'getDaysOfWeek':function _0x4bfd09(){return _0xda4d72;},'getDaysOfMonth':function _0x498da1(){return _0x1ad517;}};}function _0x59a33a(_0x517e11){var _0x663afa=_0x3877e3;return{'Today':_0x517e11[_0x663afa('0x183e')]('DASHBOARDS.TODAY'),'Yesterday':_0x517e11[_0x663afa('0x183e')]('DASHBOARDS.YESTERDAY'),'This\x20Week':_0x517e11[_0x663afa('0x183e')]('DASHBOARDS.THIS_WEEK'),'Last\x20Week':_0x517e11[_0x663afa('0x183e')]('DASHBOARDS.LAST_WEEK'),'This\x20Month':_0x517e11[_0x663afa('0x183e')](_0x663afa('0x615')),'Last\x20Month':_0x517e11[_0x663afa('0x183e')](_0x663afa('0xcc1')),'This\x20Year':_0x517e11['instant'](_0x663afa('0x75d')),'Last\x20Year':_0x517e11['instant'](_0x663afa('0x137')),'January':_0x517e11['instant']('DASHBOARDS.JANUARY'),'February':_0x517e11[_0x663afa('0x183e')](_0x663afa('0x1c84')),'March':_0x517e11[_0x663afa('0x183e')](_0x663afa('0x1023')),'April':_0x517e11[_0x663afa('0x183e')](_0x663afa('0x1425')),'May':_0x517e11[_0x663afa('0x183e')](_0x663afa('0x492')),'June':_0x517e11[_0x663afa('0x183e')](_0x663afa('0x112')),'July':_0x517e11['instant'](_0x663afa('0x23a6')),'August':_0x517e11[_0x663afa('0x183e')](_0x663afa('0xde7')),'September':_0x517e11['instant'](_0x663afa('0x25f3')),'October':_0x517e11[_0x663afa('0x183e')](_0x663afa('0xda5')),'November':_0x517e11['instant'](_0x663afa('0x26dc')),'December':_0x517e11['instant'](_0x663afa('0x2da')),'Mon':_0x517e11[_0x663afa('0x183e')]('DASHBOARDS.MON'),'Tue':_0x517e11['instant'](_0x663afa('0x2847')),'Wed':_0x517e11[_0x663afa('0x183e')]('DASHBOARDS.WED'),'Thu':_0x517e11['instant']('DASHBOARDS.THU'),'Fri':_0x517e11[_0x663afa('0x183e')](_0x663afa('0x1c1c')),'Sat':_0x517e11[_0x663afa('0x183e')](_0x663afa('0x585')),'Sun':_0x517e11[_0x663afa('0x183e')](_0x663afa('0x1867'))};}function _0x2c2989(){return{'enqueue':function _0x15df84(_0x24d83e){var _0x4861c9=a0_0x2e7f;this['tail']=this['tail']?this[_0x4861c9('0xe94')][_0x4861c9('0x13e')](_0x24d83e):_0x24d83e();}};}const _0xca4b2f=_0x398308['p']+'src/js/modules/toolbar/layouts/vertical-navigation/toolbar.html/toolbar-[chunkhash].html',_0x2bff0a=_0x398308['p']+_0x3877e3('0x150b'),_0x47e189=_0x398308['p']+'src/js/modules/navigation/layouts/vertical-navigation/navigation.html/navigation-[chunkhash].html',_0x2d9f56=_0x398308['p']+_0x3877e3('0x1533'),_0x4d4526=_0x398308['p']+_0x3877e3('0x1b31'),_0x372969=_0x398308['p']+_0x3877e3('0xc71'),_0x5852b9=_0x398308['p']+'src/js/modules/quick-panel/quick-panel.html/quick-panel-[chunkhash].html';_0x4f1d2e[_0x3877e3('0x1a81')]=[_0x3877e3('0xd2c'),_0x3877e3('0x23f2'),'$locationProvider'];function _0x4f1d2e(_0x545793,_0x41428b,_0x20feed){var _0x4fafbb=_0x3877e3;_0x20feed['html5Mode'](!![]),_0x41428b['otherwise']('/dashboards/general');var _0x12cfd6;angular[_0x4fafbb('0x914')]([_0x4fafbb('0x1f45')])[_0x4fafbb('0xde2')]([_0x4fafbb('0x26'),function(_0x1d4723){_0x12cfd6=_0x1d4723;}]);var _0x1b40d8=_0x12cfd6[_0x4fafbb('0x595')](_0x4fafbb('0x68c'))||'verticalNavigation',_0x3ee7d8={'verticalNavigation':{'main':_0x260b93,'toolbar':_0xca4b2f,'navigation':_0x47e189,'header':_0x4d4526,'footer':_0x372969},'verticalNavigationFullwidthToolbar':{'main':_0x2bb540,'toolbar':'','navigation':_0x47e189},'verticalNavigationFullwidthToolbar2':{'main':_0x2227e6,'toolbar':'','navigation':_0x2d9f56},'horizontalNavigation':{'main':_0x437957,'toolbar':'','navigation':_0x2bff0a},'contentOnly':{'main':_0x100fa7,'toolbar':'','navigation':''},'contentWithToolbar':{'main':_0x3d00b3,'toolbar':'','navigation':''}};_0x545793[_0x4fafbb('0x27e')]('app',{'abstract':!![],'views':{'main@':{'templateUrl':_0x3ee7d8[_0x1b40d8][_0x4fafbb('0x7a')],'controller':'MainController\x20as\x20vm'},'toolbar@app':{'templateUrl':_0x3ee7d8[_0x1b40d8][_0x4fafbb('0x25bc')],'controller':_0x4fafbb('0x127d')},'navigation@app':{'templateUrl':_0x3ee7d8[_0x1b40d8][_0x4fafbb('0xa9c')],'controller':_0x4fafbb('0x35a')},'quickPanel@app':{'templateUrl':_0x5852b9,'controller':'QuickPanelController\x20as\x20vm'},'header@app':{'templateUrl':_0x3ee7d8[_0x1b40d8][_0x4fafbb('0xae2')],'controller':_0x4fafbb('0x2851')},'footer@app':{'templateUrl':_0x3ee7d8[_0x1b40d8][_0x4fafbb('0x1f93')],'controller':_0x4fafbb('0x2810')}},'resolve':{'license':[_0x4fafbb('0x354'),function _0x40a97d(_0x2c4477){var _0x2b6862=_0x4fafbb;return _0x2c4477[_0x2b6862('0x8ac')](_0x2b6862('0x1ae6'));}],'setting':[_0x4fafbb('0x354'),function _0x218f1a(_0xe3ac50){var _0x156648=_0x4fafbb;return _0xe3ac50[_0x156648('0x8ac')](_0x156648('0x2726'),{'id':0x1});}]}});}const _0x525b37=_0x4f1d2e;_0x24841a[_0x3877e3('0x1a81')]=[_0x3877e3('0xbc4'),_0x3877e3('0x23ba')];function _0x24841a(_0x387af3,_0x1a0088){var _0x55385b=_0x3877e3;_0x387af3['onStart']({},_0x1a0088[_0x55385b('0x2021')]),_0x387af3[_0x55385b('0x1d0b')]({},_0x1a0088[_0x55385b('0x5c')]);}const _0x10d6e5=_0x24841a;var _0x2d3fc8=_0x398308(0x1a99);_0x22c23b[_0x3877e3('0x1a81')]=[_0x3877e3('0x25ff'),'Auth'];function _0x22c23b(_0x267c13,_0x20f478){var _0x54889c;function _0x1c06f4(){var _0x5470c0=a0_0x2e7f,_0x78ee74=!![]?window['io']:0x0,_0x241811={'query':_0x5470c0('0x155f')+_0x20f478[_0x5470c0('0x15ed')]()['id'],'transports':[_0x5470c0('0x26b0'),_0x5470c0('0x152b')]};_0x54889c=!![]?_0x78ee74(_0x241811):0x0;}return{'connect':_0x1c06f4,'on':function _0x321925(_0x322900,_0x3fe323){var _0x4b9ec1=a0_0x2e7f;_0x3fe323=_0x3fe323||angular[_0x4b9ec1('0x2101')],!_0x54889c&&_0x1c06f4(),_0x54889c['on'](_0x322900,function(){var _0x3a458e=_0x4b9ec1,_0x241260=arguments;_0x267c13[_0x3a458e('0x34c')](function(){var _0x5973e9=_0x3a458e;_0x3fe323[_0x5973e9('0x1010')](_0x54889c,_0x241260);});});},'onWithoutApply':function _0x78c89b(_0x118f12,_0x529ec0){var _0x1c71ed=a0_0x2e7f;_0x529ec0=_0x529ec0||angular[_0x1c71ed('0x2101')],!_0x54889c&&_0x1c06f4(),_0x54889c['on'](_0x118f12,function(){_0x529ec0['apply'](_0x54889c,arguments);});},'emit':function _0x3252b6(_0x38fbfb,_0x1e5c3a,_0x566077){var _0x29a305=a0_0x2e7f;_0x566077=_0x566077||angular[_0x29a305('0x2101')],!_0x54889c&&_0x1c06f4(),_0x54889c['emit'](_0x38fbfb,_0x1e5c3a,function(){var _0x1d9b57=_0x29a305,_0x32afce=arguments;_0x267c13[_0x1d9b57('0x34c')](function(){var _0x185f27=_0x1d9b57;_0x566077[_0x185f27('0x1010')](_0x54889c,_0x32afce);});});},'removeAllListeners':function _0x868027(_0x22c63e){var _0xfc0a3d=a0_0x2e7f;!_0x54889c&&_0x1c06f4(),_0x54889c[_0xfc0a3d('0x16cc')](_0x22c63e);},'removeListener':function _0x5e886e(_0x5d21e2,_0x5a22ca){var _0x25c68e=a0_0x2e7f;!_0x54889c&&_0x1c06f4(),_0x54889c[_0x25c68e('0x7cb')](_0x5d21e2,_0x5a22ca);},'disconnect':function _0x57eb9f(){var _0x5aacc0=a0_0x2e7f;!_0x54889c&&_0x1c06f4(),_0x54889c[_0x5aacc0('0x8d8')]();}};}const _0x1f7bd2=_0x22c23b;_0x336698['$inject']=['$scope','$rootScope',_0x3877e3('0x13c1'),'msNavigationService',_0x3877e3('0x22b5'),'Auth','toasty','license','api',_0x3877e3('0x21e')];function _0x336698(_0x345e39,_0x50ac02,_0x412621,_0x4f35bb,_0x6fc925,_0x47b21f,_0x3cb31f,_0x40e081,_0x4c6ee7,_0x450d5b){var _0x255c64=_0x3877e3,_0x36fad4=this;_0x3cb31f['clear']();function _0x5e23bf(){var _0xe11a01=a0_0x2e7f;return _0x47b21f[_0xe11a01('0x15ed')]()&&_0x47b21f[_0xe11a01('0x21de')](_0xe11a01('0x2402'));}_0x36fad4[_0x255c64('0x1add')]=_0x5e23bf;function _0x5168e2(_0x47bebd,_0x55fd86){var _0x3b8c5b=_0x255c64;return{'id':_0x47bebd,'title':_0x55fd86[_0x3b8c5b('0x19fe')]||_0x3b8c5b('0x33e'),'state':_0x3b8c5b('0x12c6'),'stateParams':_0x55fd86,'weight':0x2,'hidden':function _0x4f4ae9(){var _0x1b2258=_0x3b8c5b;return _0x47b21f[_0x1b2258('0x21de')]('agent')||!_0x47b21f[_0x1b2258('0xc35')](_0x47bebd)&&!_0x47b21f[_0x1b2258('0x21de')](_0x1b2258('0x1bd8'));}};}function _0x3c1f51(_0x3852d7,_0x26bbf0){var _0x482e25=_0x255c64;return{'id':_0x3852d7,'title':_0x26bbf0['name']||_0x482e25('0x33e'),'state':_0x482e25('0x2383'),'stateParams':_0x26bbf0,'weight':0x2,'hidden':function _0xd5660d(){var _0x57a08b=_0x482e25;return _0x47b21f[_0x57a08b('0x21de')]('agent')||!_0x47b21f['hasPermission'](_0x3852d7)&&!_0x47b21f[_0x57a08b('0x21de')](_0x57a08b('0x1bd8'));}};}function _0x318080(_0x5646b9,_0xa7f5bb){var _0x234b7a=_0x255c64,_0x21171c={'user':_0x86640f()[_0x234b7a('0xc50')](_0x47b21f[_0x234b7a('0x15ed')](),['id','name','fullname',_0x234b7a('0x2822'),_0x234b7a('0x25c8'),_0x234b7a('0x201f'),_0x234b7a('0x1f47')])};_0xa7f5bb[_0x234b7a('0x5e5')]=_0x3b4181()[_0x234b7a('0x10af')](_0xa7f5bb['agentUrl'],_0x21171c),_0x6fc925['saveItem']('apps.home.plugin_'+_0x5646b9,{'id':_0x5646b9,'title':_0xa7f5bb[_0x234b7a('0x19fe')],'translate':_0xa7f5bb[_0x234b7a('0x19fe')],'state':'plugin_'+_0xa7f5bb['id'],'stateParams':_0xa7f5bb,'view':_0x234b7a('0x2048'),'icon':_0xa7f5bb[_0x234b7a('0x2620')],'weight':0xc,'hidden':function _0xbd64d1(){var _0x273002=_0x234b7a;return!_0x47b21f[_0x273002('0xc35')](_0x5646b9);}});}_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x69a'),{'title':'APPS','group':!![],'weight':0x1,'hidden':function _0x2160c9(){var _0x245b0d=_0x255c64;return _0x47b21f[_0x245b0d('0x21de')](_0x245b0d('0x2402'));}}),_0x4c6ee7[_0x255c64('0x161a')][_0x255c64('0x595')]()[_0x255c64('0x1376')]['then'](function(_0x218232){var _0x3c98d3=_0x255c64;_0x36fad4[_0x3c98d3('0x161a')]=_0x218232&&_0x218232['current']?_0x218232[_0x3c98d3('0x1ccb')]:_0x3c98d3('0xc10');})[_0x255c64('0x1c1d')](function(){var _0xd0e903=_0x255c64;_0x36fad4[_0xd0e903('0x161a')]=_0xd0e903('0xc10');})[_0x255c64('0x13e')](function(){var _0x11549e=_0x255c64;_0x4f35bb['saveItem'](_0x11549e('0x161a'),{'title':_0x11549e('0x20d1')+_0x36fad4['version'],'group':!![],'weight':0x2,'hidden':function _0x578cdd(){var _0x160462=_0x11549e;return _0x47b21f['hasRole'](_0x160462('0x2402'));}});});function _0x3dabb5(_0x3ce586){var _0x1286b2=_0x255c64;return _0x86640f()[_0x1286b2('0x26c3')](_0x3ce586['children'],function(_0x529967){return _0x529967['id'];});}_0x47b21f['isLoggedIn']()&&(_0x40e081[_0x255c64('0x249c')]&&_0x3cb31f['warning']({'msg':_0x412621['instant'](_0x255c64('0x6d1')),'showClose':!![],'timeout':![]}),_0x4c6ee7[_0x255c64('0xaff')]['get']()['$promise'][_0x255c64('0x21ad')](function(_0x2f7ce9){var _0x30b5d6=_0x255c64,_0x1a90f1=0x0;for(var _0x4b175e=0x0;_0x4b175e<_0x2f7ce9['rows'][_0x30b5d6('0x577')];_0x4b175e+=0x1){_0x1a90f1=0x1869f+_0x2f7ce9[_0x30b5d6('0x1b33')][_0x4b175e]['id'],_0x4f35bb[_0x30b5d6('0x1c97')]('apps.dashboards.custom_'+_0x1a90f1,_0x5168e2(_0x1a90f1,_0x2f7ce9[_0x30b5d6('0x1b33')][_0x4b175e]));}}),_0x4c6ee7[_0x255c64('0x2048')][_0x255c64('0x595')]({'active':!![]})[_0x255c64('0x1376')][_0x255c64('0x21ad')](function(_0x301cf5){var _0x5271a7=_0x255c64,_0x1c0d36=0x0;if(_0x301cf5[_0x5271a7('0x205f')]){var _0x418aa8=_0x86640f()[_0x5271a7('0x1503')](_0x301cf5[_0x5271a7('0x1b33')],function(_0x4701c0){var _0x4df688=_0x5271a7;return _0x4701c0[_0x4df688('0x238c')]!=_0x4df688('0x4ba')&&_0x4701c0['sidebar']!=_0x4df688('0x2322');});if(_0x418aa8[_0x5271a7('0x577')]>0x0){_0x4f35bb['saveItem']('apps.plugins',{'id':0x76c,'title':'Plugins','translate':_0x5271a7('0x10db'),'icon':'icon-apps','permissions':{'hidden':!![]},'weight':0x11,'hidden':function _0x2aef5f(){var _0x519d65=_0x5271a7;return _0x47b21f[_0x519d65('0x21de')](_0x519d65('0x2402'))||!_0x47b21f['hasChildrenPermissions'](_0x3dabb5(this))&&!_0x47b21f['hasRole'](_0x519d65('0x1bd8'));}});for(var _0x2c902f=0x0;_0x2c902f<_0x418aa8['length'];_0x2c902f+=0x1){_0x1c0d36=0x15b38+_0x418aa8[_0x2c902f]['id'],_0x4f35bb[_0x5271a7('0x1c97')](_0x5271a7('0x16af')+_0x1c0d36,_0x3c1f51(_0x1c0d36,_0x418aa8[_0x2c902f]));}_0x4f35bb[_0x5271a7('0x1944')]();}var _0x2cb875=_0x86640f()[_0x5271a7('0x1503')](_0x301cf5[_0x5271a7('0x1b33')],function(_0x485878){var _0x300125=_0x5271a7;return _0x485878[_0x300125('0x238c')]!=_0x300125('0x4ba')&&_0x485878[_0x300125('0x238c')]!=_0x300125('0x769');});if(_0x2cb875[_0x5271a7('0x577')]>0x0)for(var _0x287c9d=0x0;_0x287c9d<_0x2cb875['length'];_0x287c9d+=0x1){_0x1c0d36=0x15b38+_0x2cb875[_0x287c9d]['id'],_0x318080(_0x1c0d36,_0x2cb875[_0x287c9d]);}}})),_0x40e081[_0x255c64('0xf50')]&&!_0x450d5b['defaultPageTitle']&&_0x450d5b['pageTitle']&&angular['element']('#pageTitle')[_0x255c64('0x8b')](_0x450d5b[_0x255c64('0x445')]),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0xabc'),{'id':0x64,'title':'Dashboards','translate':_0x255c64('0x5b'),'icon':_0x255c64('0xa8'),'weight':0x2,'hidden':function _0x473147(){var _0x442589=_0x255c64;return _0x47b21f[_0x442589('0x21de')](_0x442589('0x2402'))||!_0x47b21f[_0x442589('0x18c0')](_0x3dabb5(this))&&!_0x47b21f['hasRole'](_0x442589('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x2738'),{'id':0x65,'title':_0x255c64('0xb37'),'route':'','translate':_0x255c64('0xb66'),'state':'app.dashboards.general','weight':0x1,'hidden':function _0x29c9c0(){var _0x18879f=_0x255c64;return _0x47b21f['hasRole']('agent')||!_0x47b21f[_0x18879f('0xc35')](0x65)&&!_0x47b21f['hasRole'](_0x18879f('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')]('apps.staff',{'id':0xc8,'title':_0x255c64('0xf5f'),'translate':'STAFF.STAFF','icon':_0x255c64('0x1ff5'),'weight':0x3,'hidden':function _0x21d6ec(){var _0x41536a=_0x255c64;return _0x47b21f[_0x41536a('0x21de')](_0x41536a('0x2402'))||!_0x47b21f['hasChildrenPermissions'](_0x3dabb5(this))&&!_0x47b21f[_0x41536a('0x21de')]('admin');}}),_0x4f35bb[_0x255c64('0x1c97')]('apps.staff.users',{'id':0xc9,'title':_0x255c64('0x6cc'),'route':_0x255c64('0x1775'),'translate':_0x255c64('0x184'),'state':_0x255c64('0x26ae'),'weight':0x1,'permissions':{'hidden':!![]},'hidden':function _0x85fe10(){var _0x387cff=_0x255c64;return _0x47b21f[_0x387cff('0x21de')](_0x387cff('0x2402'))||_0x47b21f[_0x387cff('0x21de')](_0x387cff('0x1775'))||!_0x47b21f[_0x387cff('0xc35')](0xc9)&&!_0x47b21f[_0x387cff('0x21de')](_0x387cff('0x1bd8'));}}),_0x4f35bb['saveItem']('apps.staff.agents',{'id':0xca,'title':'Agents','route':'user','translate':_0x255c64('0xb60'),'state':_0x255c64('0x27c8'),'weight':0x1,'hidden':function _0x597e71(){var _0x54a19b=_0x255c64;return _0x47b21f[_0x54a19b('0x21de')]('agent')||!_0x47b21f[_0x54a19b('0xc35')](0xca)&&!_0x47b21f[_0x54a19b('0x21de')](_0x54a19b('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')]('apps.staff.telephones',{'id':0xcb,'title':_0x255c64('0x1955'),'route':_0x255c64('0x1775'),'translate':_0x255c64('0x1559'),'state':'app.staff.telephones','weight':0x1,'hidden':function _0x30a8c7(){var _0x10e5fe=_0x255c64;return _0x47b21f[_0x10e5fe('0x21de')](_0x10e5fe('0x2402'))||!_0x47b21f[_0x10e5fe('0xc35')](0xcb)&&!_0x47b21f['hasRole'](_0x10e5fe('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x10d4'),{'id':0xcc,'title':'Teams','route':'team','translate':'STAFF.TEAMS','state':_0x255c64('0x2492'),'weight':0x1,'hidden':function _0x3072dd(){var _0x24e3b9=_0x255c64;return _0x47b21f[_0x24e3b9('0x21de')](_0x24e3b9('0x2402'))||!_0x47b21f[_0x24e3b9('0xc35')](0xcc)&&!_0x47b21f[_0x24e3b9('0x21de')]('admin');}}),_0x4f35bb[_0x255c64('0x1c97')]('apps.staff.userProfiles',{'id':0xcd,'title':_0x255c64('0x9d1'),'route':_0x255c64('0x758'),'translate':_0x255c64('0x25d6'),'state':'app.staff.userProfiles','weight':0x1,'permissions':{'hidden':!![]},'hidden':function _0x56507f(){var _0x42facc=_0x255c64;return _0x47b21f['hasRole'](_0x42facc('0x2402'))||!_0x47b21f[_0x42facc('0xc35')](0xcd)&&!_0x47b21f[_0x42facc('0x21de')](_0x42facc('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x144b'),{'id':0x12c,'title':'ContactManager','translate':'CONTACTMANAGER.CONTACTMANAGER','icon':'icon-account-circle','weight':0x4,'license':'cm','hidden':function _0x481a54(){var _0x35496a=_0x255c64;return!_0x40e081['cm']||_0x47b21f['hasRole'](_0x35496a('0x2402'))||!_0x47b21f[_0x35496a('0x18c0')](_0x3dabb5(this))&&!_0x47b21f[_0x35496a('0x21de')](_0x35496a('0x1bd8'));}}),_0x4f35bb['saveItem'](_0x255c64('0x1c81'),{'id':0x12d,'title':_0x255c64('0xd8d'),'route':_0x255c64('0x11e0'),'translate':'CONTACTMANAGER.LISTS','state':'app.contactmanager.lists','weight':0x2,'hidden':function _0x4f8129(){var _0x44b0e1=_0x255c64;return _0x47b21f[_0x44b0e1('0x21de')]('agent')||!_0x47b21f['hasPermission'](0x12d)&&!_0x47b21f['hasRole'](_0x44b0e1('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0xd09'),{'id':0x12e,'title':'Companies','route':'cmCompany','translate':_0x255c64('0xe2a'),'state':_0x255c64('0x1c9e'),'weight':0x3,'hidden':function _0x452c09(){var _0x23214c=_0x255c64;return _0x47b21f[_0x23214c('0x21de')](_0x23214c('0x2402'))||!_0x47b21f[_0x23214c('0xc35')](0x12e)&&!_0x47b21f[_0x23214c('0x21de')]('admin');}}),_0x4f35bb['saveItem']('apps.contactmanager.globalCustomFields',{'id':0x130,'title':'GlobalCustomFields','route':_0x255c64('0x1851'),'translate':_0x255c64('0x177'),'state':'app.contactmanager.globalCustomFields','weight':0x4,'permissions':{'association':![]},'hidden':function _0x25ab83(){var _0x4e4495=_0x255c64;return _0x47b21f['hasRole']('agent')||!_0x47b21f[_0x4e4495('0xc35')](0x130)&&!_0x47b21f[_0x4e4495('0x21de')]('admin');}}),_0x4f35bb[_0x255c64('0x1c97')]('apps.contactmanager.contacts',{'id':0x12f,'title':_0x255c64('0x780'),'route':'','translate':_0x255c64('0x2456'),'state':_0x255c64('0xc19'),'weight':0x1,'permissions':{'association':![]},'hidden':function _0x30f021(){var _0x38f2ce=_0x255c64;return _0x47b21f[_0x38f2ce('0x21de')](_0x38f2ce('0x2402'))||!_0x47b21f[_0x38f2ce('0xc35')](0x12f)&&!_0x47b21f['hasRole'](_0x38f2ce('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x16aa'),{'id':0x190,'title':_0x255c64('0x1d8e'),'translate':'VOICE.VOICE','icon':_0x255c64('0x328'),'weight':0x5,'license':'voice','hidden':function _0x361824(){var _0x3643af=_0x255c64;return!_0x40e081[_0x3643af('0x8ed')]||_0x47b21f[_0x3643af('0x21de')]('agent')||!_0x47b21f[_0x3643af('0x18c0')](_0x3dabb5(this))&&!_0x47b21f[_0x3643af('0x21de')](_0x3643af('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x819'),{'id':0x191,'title':_0x255c64('0x1c14'),'route':'voiceQueue','translate':_0x255c64('0x1786'),'state':'app.voice.voiceQueues','weight':0x1,'channel':'voice','hidden':function _0x3d2c8b(){var _0x525c52=_0x255c64;return _0x47b21f[_0x525c52('0x21de')](_0x525c52('0x2402'))||!_0x47b21f[_0x525c52('0xc35')](0x191)&&!_0x47b21f[_0x525c52('0x21de')](_0x525c52('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x19a9'),{'id':0x192,'title':_0x255c64('0x1f22'),'route':'voiceExtension','translate':_0x255c64('0x27c4'),'state':_0x255c64('0x2485'),'weight':0x1,'hidden':function _0x2c14c2(){var _0x1a6287=_0x255c64;return _0x47b21f[_0x1a6287('0x21de')]('agent')||!_0x47b21f[_0x1a6287('0xc35')](0x192)&&!_0x47b21f[_0x1a6287('0x21de')]('admin');}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x239d'),{'id':0x193,'title':'OutboundRoutes','route':_0x255c64('0x1b0c'),'translate':_0x255c64('0x82d'),'state':'app.voice.outboundroutes','weight':0x1,'hidden':function _0xd963cf(){var _0x34169e=_0x255c64;return _0x47b21f['hasRole'](_0x34169e('0x2402'))||!_0x47b21f[_0x34169e('0xc35')](0x193)&&!_0x47b21f['hasRole']('admin');}}),_0x4f35bb['saveItem']('apps.voice.internalroutes',{'id':0x194,'title':_0x255c64('0x1b43'),'route':_0x255c64('0x1b0c'),'translate':_0x255c64('0x2619'),'state':_0x255c64('0x1c7c'),'weight':0x1,'hidden':function _0x16b402(){var _0xa48bbc=_0x255c64;return _0x47b21f[_0xa48bbc('0x21de')](_0xa48bbc('0x2402'))||!_0x47b21f[_0xa48bbc('0xc35')](0x194)&&!_0x47b21f['hasRole'](_0xa48bbc('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x1fdb'),{'id':0x195,'title':_0x255c64('0xe4d'),'route':_0x255c64('0x608'),'translate':'VOICE.CONTEXTS','state':_0x255c64('0x1d3c'),'weight':0x1,'hidden':function _0x175208(){var _0x4fffb8=_0x255c64;return _0x47b21f[_0x4fffb8('0x21de')](_0x4fffb8('0x2402'))||!_0x47b21f['hasPermission'](0x195)&&!_0x47b21f[_0x4fffb8('0x21de')](_0x4fffb8('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x254c'),{'id':0x196,'title':_0x255c64('0x1390'),'route':_0x255c64('0x554'),'translate':'VOICE.VOICEMAILS','state':_0x255c64('0x4fb'),'weight':0x1,'hidden':function _0x21a37d(){var _0x3750b9=_0x255c64;return _0x47b21f['hasRole'](_0x3750b9('0x2402'))||!_0x47b21f[_0x3750b9('0xc35')](0x196)&&!_0x47b21f[_0x3750b9('0x21de')]('admin');}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0xcdd'),{'id':0x197,'title':_0x255c64('0xfeb'),'route':_0x255c64('0x1bd9'),'translate':_0x255c64('0x1cca'),'state':'app.voice.musiconholds','weight':0x1,'hidden':function _0x5a2d56(){var _0x23e7aa=_0x255c64;return _0x47b21f[_0x23e7aa('0x21de')]('agent')||!_0x47b21f['hasPermission'](0x197)&&!_0x47b21f[_0x23e7aa('0x21de')](_0x23e7aa('0x1bd8'));}}),_0x4f35bb['saveItem']('apps.voice.voiceRecordings',{'id':0x198,'title':'VoiceRecordings','route':_0x255c64('0x9b8'),'translate':_0x255c64('0x1cee'),'state':_0x255c64('0x4fe'),'weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function _0x5a803a(){var _0x29fb1a=_0x255c64;return _0x47b21f[_0x29fb1a('0x21de')](_0x29fb1a('0x2402'))||!_0x47b21f[_0x29fb1a('0xc35')](0x198)&&!_0x47b21f[_0x29fb1a('0x21de')](_0x29fb1a('0x1bd8'));}}),_0x4f35bb['saveItem'](_0x255c64('0x1411'),{'id':0x199,'title':_0x255c64('0x96f'),'route':_0x255c64('0x52a'),'translate':'VOICE.CHANSPIES','state':'app.voice.chanSpies','weight':0x1,'hidden':function _0x4cf158(){var _0x330240=_0x255c64;return _0x47b21f['hasRole']('agent')||!_0x47b21f[_0x330240('0xc35')](0x199)&&!_0x47b21f[_0x330240('0x21de')](_0x330240('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x17dd'),{'id':0x19a,'title':'VoicePrefixes','route':_0x255c64('0x19b3'),'translate':_0x255c64('0x1dfc'),'state':_0x255c64('0xe77'),'weight':0x1,'hidden':function _0x3a9a7e(){var _0x1079ff=_0x255c64;return _0x47b21f[_0x1079ff('0x21de')](_0x1079ff('0x2402'))||!_0x47b21f[_0x1079ff('0xc35')](0x19a)&&!_0x47b21f[_0x1079ff('0x21de')]('admin');}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x21af'),{'id':0x19b,'title':'Realtime','route':'','translate':_0x255c64('0x26c9'),'state':'app.voice.realtime','weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function _0x17aa7a(){var _0x1ddc3d=_0x255c64;return _0x47b21f[_0x1ddc3d('0x21de')]('agent')||!_0x47b21f[_0x1ddc3d('0xc35')](0x19b)&&!_0x47b21f[_0x1ddc3d('0x21de')](_0x1ddc3d('0x1bd8'));}}),_0x4f35bb['saveItem']('apps.chat',{'id':0x1f4,'title':_0x255c64('0x1068'),'translate':'CHAT.CHAT','icon':_0x255c64('0x244f'),'weight':0x6,'license':_0x255c64('0x1f65'),'hidden':function _0x51c8fb(){var _0x21597a=_0x255c64;return!_0x40e081['chat']||_0x47b21f[_0x21597a('0x21de')](_0x21597a('0x2402'))||!_0x47b21f['hasChildrenPermissions'](_0x3dabb5(this))&&!_0x47b21f[_0x21597a('0x21de')](_0x21597a('0x1bd8'));}}),_0x4f35bb['saveItem'](_0x255c64('0x1571'),{'id':0x1f5,'title':_0x255c64('0xf82'),'route':'chatQueue','translate':_0x255c64('0x44b'),'state':_0x255c64('0x11cb'),'weight':0x1,'channel':_0x255c64('0x1f65'),'hidden':function _0x52b963(){var _0x302c19=_0x255c64;return _0x47b21f[_0x302c19('0x21de')]('agent')||!_0x47b21f['hasPermission'](0x1f5)&&!_0x47b21f[_0x302c19('0x21de')](_0x302c19('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x181c'),{'id':0x1f6,'title':_0x255c64('0x1b53'),'route':'chatWebsite','translate':_0x255c64('0x429'),'state':'app.chat.chatWebsites','weight':0x1,'channel':'chat','hidden':function _0x505ff0(){var _0x2c0aff=_0x255c64;return _0x47b21f['hasRole'](_0x2c0aff('0x2402'))||!_0x47b21f[_0x2c0aff('0xc35')](0x1f6)&&!_0x47b21f[_0x2c0aff('0x21de')](_0x2c0aff('0x1bd8'));}}),_0x4f35bb['saveItem'](_0x255c64('0x1746'),{'id':0x1fe,'title':_0x255c64('0x1a61'),'route':'','translate':_0x255c64('0x88a'),'state':_0x255c64('0x1062'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function _0x161ac2(){var _0x4f70ee=_0x255c64;return _0x47b21f['hasRole'](_0x4f70ee('0x2402'))||!_0x47b21f[_0x4f70ee('0xc35')](0x1fe)&&!_0x47b21f[_0x4f70ee('0x21de')]('admin');}}),_0x4f35bb['saveItem'](_0x255c64('0x5a1'),{'id':0x258,'title':_0x255c64('0x2fa'),'translate':_0x255c64('0x1b45'),'icon':_0x255c64('0xc39'),'weight':0x7,'license':_0x255c64('0x1c8b'),'hidden':function _0x3cd0e9(){var _0x51f97f=_0x255c64;return!_0x40e081[_0x51f97f('0x1c8b')]||_0x47b21f['hasRole'](_0x51f97f('0x2402'))||!_0x47b21f[_0x51f97f('0x18c0')](_0x3dabb5(this))&&!_0x47b21f[_0x51f97f('0x21de')](_0x51f97f('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0xeac'),{'id':0x259,'title':_0x255c64('0x451'),'route':_0x255c64('0xb3'),'translate':_0x255c64('0x1179'),'state':'app.mail.mailQueues','weight':0x1,'channel':_0x255c64('0x1c8b'),'hidden':function _0x494251(){var _0x1c25e9=_0x255c64;return _0x47b21f[_0x1c25e9('0x21de')](_0x1c25e9('0x2402'))||!_0x47b21f[_0x1c25e9('0xc35')](0x259)&&!_0x47b21f[_0x1c25e9('0x21de')](_0x1c25e9('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x1fea'),{'id':0x25a,'title':_0x255c64('0x230d'),'route':_0x255c64('0x66'),'translate':'MAIL.MAILACCOUNTS','state':'app.mail.mailAccounts','weight':0x1,'channel':'mail','hidden':function _0x3b701c(){var _0x1665f3=_0x255c64;return _0x47b21f[_0x1665f3('0x21de')]('agent')||!_0x47b21f[_0x1665f3('0xc35')](0x25a)&&!_0x47b21f[_0x1665f3('0x21de')]('admin');}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x1819'),{'id':0x25b,'title':_0x255c64('0xf89'),'route':_0x255c64('0xa94'),'translate':'MAIL.MAILSUBSTATUSES','state':_0x255c64('0x572'),'weight':0x1,'channel':_0x255c64('0x1c8b'),'permissions':{'association':![]},'hidden':function _0x12804e(){var _0x570ba9=_0x255c64;return _0x47b21f[_0x570ba9('0x21de')](_0x570ba9('0x2402'))||!_0x47b21f[_0x570ba9('0xc35')](0x25b)&&!_0x47b21f['hasRole'](_0x570ba9('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x267a'),{'id':0x262,'title':_0x255c64('0x1a61'),'route':'','translate':_0x255c64('0x144d'),'state':_0x255c64('0x13d5'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function _0x37c9e5(){var _0x5db623=_0x255c64;return _0x47b21f[_0x5db623('0x21de')](_0x5db623('0x2402'))||!_0x47b21f[_0x5db623('0xc35')](0x262)&&!_0x47b21f[_0x5db623('0x21de')](_0x5db623('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x98f'),{'id':0x2bc,'title':'Sms','translate':_0x255c64('0x196d'),'icon':_0x255c64('0x2750'),'weight':0x8,'license':_0x255c64('0xff6'),'hidden':function _0x4de9a7(){var _0x406268=_0x255c64;return!_0x40e081['messaging']||_0x47b21f[_0x406268('0x21de')]('agent')||!_0x47b21f['hasChildrenPermissions'](_0x3dabb5(this))&&!_0x47b21f[_0x406268('0x21de')](_0x406268('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')]('apps.sms.smsQueues',{'id':0x2bd,'title':_0x255c64('0x280a'),'route':_0x255c64('0x754'),'translate':_0x255c64('0x12f'),'state':'app.sms.smsQueues','weight':0x1,'channel':_0x255c64('0x3d0'),'hidden':function _0x4b2354(){var _0x3dfd03=_0x255c64;return _0x47b21f[_0x3dfd03('0x21de')]('agent')||!_0x47b21f['hasPermission'](0x2bd)&&!_0x47b21f[_0x3dfd03('0x21de')](_0x3dfd03('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')]('apps.sms.smsAccounts',{'id':0x2be,'title':_0x255c64('0x1fed'),'route':_0x255c64('0xa10'),'translate':_0x255c64('0x7c9'),'state':'app.sms.smsAccounts','weight':0x1,'channel':'sms','hidden':function _0xc2d359(){var _0x46a202=_0x255c64;return _0x47b21f[_0x46a202('0x21de')](_0x46a202('0x2402'))||!_0x47b21f[_0x46a202('0xc35')](0x2be)&&!_0x47b21f[_0x46a202('0x21de')](_0x46a202('0x1bd8'));}}),_0x4f35bb['saveItem']('apps.sms.realtime',{'id':0x2c6,'title':_0x255c64('0x1a61'),'route':'','translate':_0x255c64('0x13a5'),'state':_0x255c64('0x288'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function _0x21a3ac(){var _0x9a2441=_0x255c64;return _0x47b21f[_0x9a2441('0x21de')](_0x9a2441('0x2402'))||!_0x47b21f['hasPermission'](0x2c6)&&!_0x47b21f['hasRole'](_0x9a2441('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x169f'),{'id':0x320,'title':_0x255c64('0x2bd'),'translate':_0x255c64('0x1d00'),'icon':'icon-google-earth','weight':0x9,'license':_0x255c64('0xac9'),'hidden':function _0x18db7e(){var _0x5d01be=_0x255c64;return!_0x40e081[_0x5d01be('0xac9')]||_0x47b21f[_0x5d01be('0x21de')](_0x5d01be('0x2402'))||!_0x47b21f['hasChildrenPermissions'](_0x3dabb5(this))&&!_0x47b21f['hasRole'](_0x5d01be('0x1bd8'));}}),_0x4f35bb['saveItem']('apps.openchannel.openchannelQueues',{'id':0x321,'title':_0x255c64('0xb6c'),'route':_0x255c64('0x1c'),'translate':_0x255c64('0x1b3e'),'state':'app.openchannel.openchannelQueues','weight':0x1,'channel':_0x255c64('0x247f'),'hidden':function _0x3dcc25(){var _0x374b7d=_0x255c64;return _0x47b21f[_0x374b7d('0x21de')]('agent')||!_0x47b21f['hasPermission'](0x321)&&!_0x47b21f[_0x374b7d('0x21de')](_0x374b7d('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')]('apps.openchannel.openchannelAccounts',{'id':0x322,'title':'OpenchannelAccounts','route':_0x255c64('0x151f'),'translate':_0x255c64('0x14e7'),'state':'app.openchannel.openchannelAccounts','weight':0x1,'channel':_0x255c64('0x247f'),'hidden':function _0x2a6fda(){var _0x297cf9=_0x255c64;return _0x47b21f['hasRole']('agent')||!_0x47b21f[_0x297cf9('0xc35')](0x322)&&!_0x47b21f[_0x297cf9('0x21de')](_0x297cf9('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x1daa'),{'id':0x32a,'title':_0x255c64('0x1a61'),'route':'','translate':'OPENCHANNEL.REALTIME','state':_0x255c64('0x10ea'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function _0x39a74a(){var _0x4aba99=_0x255c64;return _0x47b21f[_0x4aba99('0x21de')](_0x4aba99('0x2402'))||!_0x47b21f[_0x4aba99('0xc35')](0x32a)&&!_0x47b21f[_0x4aba99('0x21de')](_0x4aba99('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x1fd7'),{'id':0x384,'title':_0x255c64('0x6d8'),'translate':_0x255c64('0x20e8'),'icon':_0x255c64('0xb78'),'weight':0xa,'license':_0x255c64('0x93f'),'hidden':function _0x46c5de(){var _0x4fb86e=_0x255c64;return!_0x40e081[_0x4fb86e('0x93f')]||_0x47b21f[_0x4fb86e('0x21de')]('agent')||!_0x47b21f[_0x4fb86e('0x18c0')](_0x3dabb5(this))&&!_0x47b21f[_0x4fb86e('0x21de')](_0x4fb86e('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')]('apps.fax.faxQueues',{'id':0x385,'title':_0x255c64('0x20f7'),'route':_0x255c64('0x1cb7'),'translate':_0x255c64('0xb68'),'state':_0x255c64('0x74a'),'weight':0x1,'channel':'fax','hidden':function _0x246181(){var _0x1a358f=_0x255c64;return _0x47b21f[_0x1a358f('0x21de')](_0x1a358f('0x2402'))||!_0x47b21f[_0x1a358f('0xc35')](0x385)&&!_0x47b21f['hasRole'](_0x1a358f('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x1a66'),{'id':0x386,'title':_0x255c64('0xbe8'),'route':_0x255c64('0xeb2'),'translate':'FAX.FAXACCOUNTS','state':_0x255c64('0x181b'),'weight':0x1,'channel':_0x255c64('0x93f'),'hidden':function _0x15d8e9(){var _0x157d03=_0x255c64;return _0x47b21f[_0x157d03('0x21de')](_0x157d03('0x2402'))||!_0x47b21f[_0x157d03('0xc35')](0x386)&&!_0x47b21f[_0x157d03('0x21de')](_0x157d03('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')]('apps.fax.realtime',{'id':0x38e,'title':_0x255c64('0x1a61'),'route':'','translate':_0x255c64('0x114a'),'state':_0x255c64('0x1ad0'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function _0x3e1b5e(){var _0x517862=_0x255c64;return _0x47b21f[_0x517862('0x21de')](_0x517862('0x2402'))||!_0x47b21f[_0x517862('0xc35')](0x38e)&&!_0x47b21f[_0x517862('0x21de')](_0x517862('0x1bd8'));}}),_0x4f35bb['saveItem']('apps.tools',{'id':0x3e8,'title':'Tools','translate':_0x255c64('0x152e'),'icon':_0x255c64('0x477'),'weight':0xf,'hidden':function _0x1561f2(){var _0x1f683e=_0x255c64;return _0x47b21f['hasRole'](_0x1f683e('0x2402'))||!_0x47b21f[_0x1f683e('0x18c0')](_0x3dabb5(this))&&!_0x47b21f[_0x1f683e('0x21de')]('admin');}}),_0x4f35bb['saveItem'](_0x255c64('0x2784'),{'id':0x3e9,'title':_0x255c64('0x23ab'),'route':'cannedAnswer','translate':_0x255c64('0xff7'),'state':_0x255c64('0x1bb2'),'weight':0x1,'hidden':function _0x6925af(){var _0x3da31e=_0x255c64;return _0x47b21f[_0x3da31e('0x21de')]('agent')||!_0x47b21f[_0x3da31e('0xc35')](0x3e9)&&!_0x47b21f[_0x3da31e('0x21de')](_0x3da31e('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x26bd'),{'id':0x3eb,'title':'CustomDashboards','route':_0x255c64('0xaff'),'translate':_0x255c64('0x2eb'),'state':_0x255c64('0x129b'),'weight':0x3,'hidden':function _0x626de1(){var _0x4530d8=_0x255c64;return _0x47b21f[_0x4530d8('0x21de')]('agent')||!_0x47b21f[_0x4530d8('0xc35')](0x3eb)&&!_0x47b21f[_0x4530d8('0x21de')](_0x4530d8('0x1bd8'));}}),_0x4f35bb['saveItem'](_0x255c64('0xbf5'),{'id':0x3ec,'title':_0x255c64('0x148c'),'route':_0x255c64('0xa07'),'translate':_0x255c64('0x1f0a'),'state':_0x255c64('0x1e12'),'weight':0x4,'hidden':function _0x4a0dc6(){var _0x33a601=_0x255c64;return _0x47b21f[_0x33a601('0x21de')](_0x33a601('0x2402'))||!_0x47b21f[_0x33a601('0xc35')](0x3ec)&&!_0x47b21f['hasRole'](_0x33a601('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x5c4'),{'id':0x3ed,'title':_0x255c64('0x1249'),'route':_0x255c64('0x1e26'),'translate':_0x255c64('0x34a'),'state':'app.tools.pauses','weight':0x5,'hidden':function _0x36d4a2(){var _0x1c14cc=_0x255c64;return _0x47b21f[_0x1c14cc('0x21de')]('agent')||!_0x47b21f[_0x1c14cc('0xc35')](0x3ed)&&!_0x47b21f['hasRole'](_0x1c14cc('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')]('apps.tools.schedules',{'id':0x3ee,'title':_0x255c64('0x1a5a'),'route':_0x255c64('0x11f4'),'translate':_0x255c64('0x11d3'),'state':_0x255c64('0x10a0'),'weight':0x6,'hidden':function _0x42129a(){var _0x5b3402=_0x255c64;return _0x47b21f[_0x5b3402('0x21de')](_0x5b3402('0x2402'))||!_0x47b21f['hasPermission'](0x3ee)&&!_0x47b21f[_0x5b3402('0x21de')](_0x5b3402('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')]('apps.tools.sounds',{'id':0x3ef,'title':_0x255c64('0x4a4'),'route':_0x255c64('0x2397'),'translate':_0x255c64('0x1dec'),'state':_0x255c64('0x65e'),'weight':0x7,'hidden':function _0x550767(){var _0x53071d=_0x255c64;return _0x47b21f[_0x53071d('0x21de')](_0x53071d('0x2402'))||!_0x47b21f['hasPermission'](0x3ef)&&!_0x47b21f[_0x53071d('0x21de')](_0x53071d('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')]('apps.tools.tags',{'id':0x3f0,'title':'Tags','route':'tag','translate':_0x255c64('0x216d'),'state':_0x255c64('0x943'),'weight':0x8,'hidden':function _0x572476(){var _0x4ea1b5=_0x255c64;return _0x47b21f['hasRole']('agent')||!_0x47b21f['hasPermission'](0x3f0)&&!_0x47b21f[_0x4ea1b5('0x21de')](_0x4ea1b5('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x975'),{'id':0x3f1,'title':_0x255c64('0x19b9'),'route':_0x255c64('0x1a51'),'translate':_0x255c64('0x1953'),'state':_0x255c64('0x140b'),'weight':0x9,'hidden':function _0x224d8d(){var _0x3bf0bc=_0x255c64;return _0x47b21f[_0x3bf0bc('0x21de')](_0x3bf0bc('0x2402'))||!_0x47b21f[_0x3bf0bc('0xc35')](0x3f1)&&!_0x47b21f[_0x3bf0bc('0x21de')](_0x3bf0bc('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x2857'),{'id':0x3f3,'title':_0x255c64('0x616'),'route':_0x255c64('0x1280'),'translate':_0x255c64('0x475'),'state':_0x255c64('0x1264'),'weight':0xb,'hidden':function _0x268548(){var _0x30e9d2=_0x255c64;return _0x47b21f[_0x30e9d2('0x21de')](_0x30e9d2('0x2402'))||!_0x47b21f[_0x30e9d2('0xc35')](0x3f3)&&!_0x47b21f[_0x30e9d2('0x21de')](_0x30e9d2('0x1bd8'));}}),_0x4f35bb['saveItem'](_0x255c64('0x34'),{'id':0x3f4,'title':_0x255c64('0x103a'),'route':_0x255c64('0x25bb'),'translate':_0x255c64('0x6a6'),'state':_0x255c64('0x21e5'),'weight':0xc,'hidden':function _0x3b6d05(){var _0x1c345f=_0x255c64;return _0x47b21f[_0x1c345f('0x21de')](_0x1c345f('0x2402'))||!_0x47b21f[_0x1c345f('0xc35')](0x3f4)&&!_0x47b21f[_0x1c345f('0x21de')](_0x1c345f('0x1bd8'));}}),_0x4f35bb['saveItem'](_0x255c64('0x265e'),{'id':0x3ea,'title':_0x255c64('0x185'),'route':_0x255c64('0x22c8'),'translate':_0x255c64('0xe6e'),'state':_0x255c64('0x8e8'),'weight':0x2,'hidden':function _0x34e3a8(){var _0x39d321=_0x255c64;return _0x47b21f[_0x39d321('0x21de')]('agent')||!_0x47b21f['hasPermission'](0x3ea)&&!_0x47b21f[_0x39d321('0x21de')]('admin');}}),_0x4f35bb[_0x255c64('0x1c97')]('apps.tools.triggers',{'id':0x3f2,'title':_0x255c64('0x1b1d'),'route':'','translate':_0x255c64('0xbcf'),'state':'app.tools.triggers','weight':0xa,'hidden':function _0x139691(){var _0x4fdc9f=_0x255c64;return _0x47b21f[_0x4fdc9f('0x21de')](_0x4fdc9f('0x2402'))||!_0x47b21f[_0x4fdc9f('0xc35')](0x3f2)&&!_0x47b21f[_0x4fdc9f('0x21de')](_0x4fdc9f('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x15b6'),{'id':0x44c,'title':'CallySquare','translate':_0x255c64('0xbac'),'icon':_0x255c64('0x1c58'),'weight':0xd,'license':_0x255c64('0x8ed'),'hidden':function _0x3603a3(){var _0x4ea223=_0x255c64;return!_0x40e081[_0x4ea223('0x8ed')]||_0x47b21f[_0x4ea223('0x21de')](_0x4ea223('0x2402'))||!_0x47b21f[_0x4ea223('0x18c0')](_0x3dabb5(this))&&!_0x47b21f[_0x4ea223('0x21de')](_0x4ea223('0x1bd8'));}}),_0x4f35bb['saveItem'](_0x255c64('0x2853'),{'id':0x44d,'title':'ODBC','route':'squareOdbc','translate':'CALLYSQUARE.ODBC','state':'app.callysquare.odbcs','weight':0x2,'hidden':function _0x1de914(){var _0x46064d=_0x255c64;return _0x47b21f[_0x46064d('0x21de')](_0x46064d('0x2402'))||!_0x47b21f[_0x46064d('0xc35')](0x44d)&&!_0x47b21f[_0x46064d('0x21de')](_0x46064d('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x12cc'),{'id':0x44e,'title':_0x255c64('0x23de'),'route':_0x255c64('0x238f'),'translate':_0x255c64('0x2621'),'state':_0x255c64('0x1d16'),'weight':0x3,'permissions':{'association':![],'loading':!![]},'hidden':function _0x2a19ec(){var _0x599fe5=_0x255c64;return _0x47b21f[_0x599fe5('0x21de')](_0x599fe5('0x2402'))||!_0x47b21f[_0x599fe5('0xc35')](0x44e)&&!_0x47b21f[_0x599fe5('0x21de')](_0x599fe5('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0xc68'),{'id':0x44f,'title':_0x255c64('0x3d9'),'route':_0x255c64('0x1a41'),'translate':_0x255c64('0xa96'),'state':_0x255c64('0x1b63'),'weight':0x1,'hidden':function _0x44536d(){var _0x4d4007=_0x255c64;return _0x47b21f[_0x4d4007('0x21de')](_0x4d4007('0x2402'))||!_0x47b21f[_0x4d4007('0xc35')](0x44f)&&!_0x47b21f[_0x4d4007('0x21de')]('admin');}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0xb2e'),{'id':0x4b0,'title':_0x255c64('0x2029'),'translate':_0x255c64('0xd77'),'icon':_0x255c64('0x146b'),'weight':0x10,'hidden':function _0x5c2e5c(){var _0x3a6cf1=_0x255c64;return _0x47b21f[_0x3a6cf1('0x21de')](_0x3a6cf1('0x2402'))||!_0x47b21f[_0x3a6cf1('0x18c0')](_0x3dabb5(this))&&!_0x47b21f[_0x3a6cf1('0x21de')](_0x3a6cf1('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')]('apps.analytics.metrics',{'id':0x4b1,'title':_0x255c64('0x208'),'route':'analyticMetric','translate':_0x255c64('0xcdc'),'state':_0x255c64('0x1319'),'weight':0x3,'hidden':function _0x43a34b(){var _0x1362d7=_0x255c64;return _0x47b21f[_0x1362d7('0x21de')]('agent')||!_0x47b21f[_0x1362d7('0xc35')](0x4b1)&&!_0x47b21f[_0x1362d7('0x21de')](_0x1362d7('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x14e8'),{'id':0x4b2,'title':_0x255c64('0x1450'),'route':_0x255c64('0x27a4'),'translate':'ANALYTICS.EXTRACTEDREPORTS','state':_0x255c64('0x2718'),'weight':0x2,'permissions':{'association':![],'loading':!![]},'hidden':function _0x290190(){var _0x51de5c=_0x255c64;return _0x47b21f[_0x51de5c('0x21de')]('agent')||!_0x47b21f[_0x51de5c('0xc35')](0x4b2)&&!_0x47b21f['hasRole'](_0x51de5c('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x68e'),{'id':0x4b3,'title':_0x255c64('0xdef'),'route':'','translate':_0x255c64('0x37b'),'state':_0x255c64('0x17d9'),'weight':0x1,'hidden':function _0x3eb769(){var _0x1bc60a=_0x255c64;return _0x47b21f['hasRole'](_0x1bc60a('0x2402'))||!_0x47b21f[_0x1bc60a('0xc35')](0x4b3)&&!_0x47b21f['hasRole'](_0x1bc60a('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')]('apps.integrations',{'id':0x514,'title':_0x255c64('0x1417'),'translate':'INTEGRATIONS.INTEGRATIONS','icon':_0x255c64('0x12e7'),'weight':0x11,'hidden':function _0x2cb5c8(){var _0x42d65c=_0x255c64;return _0x47b21f[_0x42d65c('0x21de')](_0x42d65c('0x2402'))||!_0x47b21f[_0x42d65c('0x18c0')](_0x3dabb5(this))&&!_0x47b21f['hasRole'](_0x42d65c('0x1bd8'));}}),_0x4f35bb['saveItem']('apps.integrations.zendeskAccounts',{'id':0x515,'title':'ZendeskAccounts','route':_0x255c64('0x2352'),'translate':_0x255c64('0xde9'),'state':_0x255c64('0x21e8'),'weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function _0x55cfb2(){var _0x1300ef=_0x255c64;return _0x47b21f[_0x1300ef('0x21de')](_0x1300ef('0x2402'))||!_0x47b21f['hasPermission'](0x515)&&!_0x47b21f['hasRole'](_0x1300ef('0x1bd8'));}}),_0x4f35bb['saveItem'](_0x255c64('0x26a2'),{'id':0x516,'title':_0x255c64('0x8f8'),'route':_0x255c64('0x102a'),'translate':_0x255c64('0x17f9'),'state':'app.integrations.salesforceAccounts','weight':0x2,'permissions':{'association':![],'loading':!![]},'hidden':function _0x3a39bb(){var _0x3b14f5=_0x255c64;return _0x47b21f['hasRole']('agent')||!_0x47b21f[_0x3b14f5('0xc35')](0x516)&&!_0x47b21f[_0x3b14f5('0x21de')]('admin');}}),_0x4f35bb['saveItem'](_0x255c64('0x14fd'),{'id':0x517,'title':'FreshdeskAccounts','route':_0x255c64('0x64f'),'translate':_0x255c64('0x26c1'),'state':'app.integrations.freshdeskAccounts','weight':0x3,'permissions':{'association':![],'loading':!![]},'hidden':function _0x206c7c(){var _0x3b7deb=_0x255c64;return _0x47b21f['hasRole'](_0x3b7deb('0x2402'))||!_0x47b21f['hasPermission'](0x517)&&!_0x47b21f[_0x3b7deb('0x21de')](_0x3b7deb('0x1bd8'));}}),_0x4f35bb['saveItem']('apps.integrations.sugarcrmAccounts',{'id':0x519,'title':_0x255c64('0x24ec'),'route':'intSugarcrmAccount','translate':_0x255c64('0x1b9d'),'state':_0x255c64('0x19fa'),'weight':0x4,'permissions':{'association':![],'loading':!![]},'hidden':function _0x2693bd(){var _0x5db0fa=_0x255c64;return _0x47b21f['hasRole']('agent')||!_0x47b21f[_0x5db0fa('0xc35')](0x519)&&!_0x47b21f['hasRole'](_0x5db0fa('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x25b'),{'id':0x51a,'title':'DeskAccounts','route':_0x255c64('0x2012'),'translate':_0x255c64('0x2710'),'state':_0x255c64('0x1bc8'),'weight':0x5,'permissions':{'association':![],'loading':!![]},'hidden':function _0x10608d(){var _0x639911=_0x255c64;return _0x47b21f[_0x639911('0x21de')]('agent')||!_0x47b21f[_0x639911('0xc35')](0x51a)&&!_0x47b21f[_0x639911('0x21de')]('admin');}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0xc3f'),{'id':0x51b,'title':'ZohoAccounts','route':_0x255c64('0x19a4'),'translate':_0x255c64('0x9ca'),'state':_0x255c64('0x76c'),'weight':0x6,'permissions':{'association':![],'loading':!![]},'hidden':function _0xb5ec51(){var _0x314c48=_0x255c64;return _0x47b21f[_0x314c48('0x21de')](_0x314c48('0x2402'))||!_0x47b21f[_0x314c48('0xc35')](0x51b)&&!_0x47b21f[_0x314c48('0x21de')](_0x314c48('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')]('apps.integrations.vtigerAccounts',{'id':0x51c,'title':_0x255c64('0xb17'),'route':_0x255c64('0x45b'),'translate':_0x255c64('0x242'),'state':_0x255c64('0xb9f'),'weight':0x7,'permissions':{'association':![],'loading':!![]},'hidden':function _0x4ff310(){var _0x535288=_0x255c64;return _0x47b21f[_0x535288('0x21de')](_0x535288('0x2402'))||!_0x47b21f[_0x535288('0xc35')](0x51c)&&!_0x47b21f[_0x535288('0x21de')](_0x535288('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x2713'),{'id':0x51d,'title':'Dynamics365Accounts','route':_0x255c64('0x824'),'translate':_0x255c64('0x1f3a'),'state':_0x255c64('0x11cd'),'weight':0x8,'permissions':{'association':![],'loading':!![]},'hidden':function _0x1eaaf7(){var _0x485418=_0x255c64;return _0x47b21f[_0x485418('0x21de')](_0x485418('0x2402'))||!_0x47b21f[_0x485418('0xc35')](0x51d)&&!_0x47b21f[_0x485418('0x21de')](_0x485418('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0xc7c'),{'id':0x51e,'title':_0x255c64('0xc94'),'route':'intServicenowAccount','translate':_0x255c64('0x1c2d'),'state':_0x255c64('0x13b7'),'weight':0x9,'permissions':{'association':![],'loading':!![]},'hidden':function _0x1922f6(){var _0x4a4154=_0x255c64;return _0x47b21f[_0x4a4154('0x21de')]('agent')||!_0x47b21f[_0x4a4154('0xc35')](0x51e)&&!_0x47b21f[_0x4a4154('0x21de')]('admin');}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x2089'),{'id':0x518,'title':'FreshsalesAccounts','route':'intFreshsalesAccount','translate':_0x255c64('0x2f'),'state':_0x255c64('0x1849'),'weight':0xa,'permissions':{'association':![],'loading':!![]},'hidden':function _0x288791(){var _0x5b31aa=_0x255c64;return _0x47b21f[_0x5b31aa('0x21de')](_0x5b31aa('0x2402'))||!_0x47b21f[_0x5b31aa('0xc35')](0x518)&&!_0x47b21f[_0x5b31aa('0x21de')](_0x5b31aa('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0xc18'),{'id':0x578,'title':'Settings','translate':_0x255c64('0x1f53'),'icon':_0x255c64('0x169a'),'weight':0x14,'permissions':{'hidden':!![]},'hidden':function _0x4862e4(){var _0x106811=_0x255c64;return _0x47b21f[_0x106811('0x21de')]('agent')||!_0x47b21f[_0x106811('0xc35')](0x578)&&!_0x47b21f[_0x106811('0x21de')]('admin')||_0x47b21f[_0x106811('0x21de')]('admin')&&!_0x47b21f[_0x106811('0x15ed')]()[_0x106811('0x8fb')];}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0xf8e'),{'id':0x579,'title':_0x255c64('0xb37'),'route':_0x255c64('0x21e'),'translate':_0x255c64('0x2cd'),'state':'app.settings.generals','weight':0x1,'hidden':function _0x3b13cb(){var _0x26ff44=_0x255c64;return _0x47b21f[_0x26ff44('0x21de')]('agent')||!_0x47b21f[_0x26ff44('0xc35')](0x578)&&!_0x47b21f[_0x26ff44('0x21de')](_0x26ff44('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')]('apps.settings.smtps',{'id':0x57a,'title':'Smtp','route':_0x255c64('0x66'),'translate':_0x255c64('0x2546'),'state':'app.settings.smtps','weight':0x1,'hidden':function _0xe0760(){var _0x237e74=_0x255c64;return _0x47b21f[_0x237e74('0x21de')](_0x237e74('0x2402'))||!_0x47b21f[_0x237e74('0xc35')](0x578)&&!_0x47b21f['hasRole'](_0x237e74('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0xf54'),{'id':0x57b,'title':_0x255c64('0x1639'),'route':_0x255c64('0x1a37'),'translate':'SETTINGS.NETWORKS','state':_0x255c64('0xfaa'),'weight':0x1,'hidden':function _0x4040cc(){var _0x3010c4=_0x255c64;return _0x47b21f[_0x3010c4('0x21de')](_0x3010c4('0x2402'))||!_0x47b21f['hasPermission'](0x578)&&!_0x47b21f[_0x3010c4('0x21de')]('admin');}}),_0x4f35bb['saveItem']('apps.settings.customizations',{'id':0x57f,'title':_0x255c64('0x18bb'),'route':'setting','translate':'SETTINGS.CUSTOMIZATIONS','state':'app.settings.customizations','weight':0x1,'hidden':function _0x71fcd8(){var _0x19ed45=_0x255c64;return!_0x40e081['custom']||_0x47b21f[_0x19ed45('0x21de')](_0x19ed45('0x2402'))||!_0x47b21f[_0x19ed45('0xc35')](0x578)&&!_0x47b21f[_0x19ed45('0x21de')](_0x19ed45('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x16b9'),{'id':0x580,'title':_0x255c64('0x1d26'),'route':_0x255c64('0x1cdb'),'translate':_0x255c64('0x20b4'),'state':'app.settings.cloudProviders','weight':0x1,'hidden':function _0x51f012(){var _0x4b895e=_0x255c64;return!_0x40e081['ai']||_0x47b21f[_0x4b895e('0x21de')](_0x4b895e('0x2402'))||!_0x47b21f[_0x4b895e('0xc35')](0x578)&&!_0x47b21f['hasRole']('admin');}}),_0x4f35bb['saveItem'](_0x255c64('0x15da'),{'id':0x57c,'title':_0x255c64('0x1a21'),'route':'','translate':_0x255c64('0x20dd'),'state':_0x255c64('0xe50'),'weight':0x1,'hidden':function _0xdd103d(){var _0x4adc1a=_0x255c64;return!_0x40e081[_0x4adc1a('0x5ef')]||_0x47b21f['hasRole'](_0x4adc1a('0x2402'))||!_0x47b21f['hasPermission'](0x578)&&!_0x47b21f[_0x4adc1a('0x21de')]('admin');}}),_0x4f35bb[_0x255c64('0x1c97')]('apps.settings.license',{'id':0x57d,'title':_0x255c64('0x1e18'),'route':'','translate':_0x255c64('0x1f8d'),'state':_0x255c64('0x171c'),'weight':0x1,'hidden':function _0x44ebf0(){var _0x299697=_0x255c64;return _0x47b21f['hasRole'](_0x299697('0x2402'))||!_0x47b21f[_0x299697('0xc35')](0x578)&&!_0x47b21f['hasRole'](_0x299697('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')]('apps.settings.system',{'id':0x57e,'title':_0x255c64('0x223e'),'route':'','translate':_0x255c64('0x165e'),'state':_0x255c64('0xba5'),'weight':0x1,'hidden':function _0xc689bc(){var _0x314b24=_0x255c64;return _0x47b21f[_0x314b24('0x21de')](_0x314b24('0x2402'))||!_0x47b21f[_0x314b24('0xc35')](0x578)&&!_0x47b21f[_0x314b24('0x21de')]('admin');}}),_0x4f35bb[_0x255c64('0x1c97')]('apps.motiondialer',{'id':0x5dc,'title':_0x255c64('0x1edb'),'translate':_0x255c64('0x9a0'),'icon':_0x255c64('0x1534'),'weight':0x5,'license':_0x255c64('0xb6b'),'hidden':function _0x2a6f6f(){var _0x5f11e0=_0x255c64;return!_0x40e081[_0x5f11e0('0xb6b')]||_0x47b21f[_0x5f11e0('0x21de')](_0x5f11e0('0x2402'))||!_0x47b21f[_0x5f11e0('0x18c0')](_0x3dabb5(this))&&!_0x47b21f[_0x5f11e0('0x21de')](_0x5f11e0('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0xc3'),{'id':0x5dd,'title':_0x255c64('0x1c8d'),'route':_0x255c64('0xb97'),'translate':_0x255c64('0x15f1'),'state':_0x255c64('0x1550'),'weight':0x1,'channel':_0x255c64('0x207a'),'hidden':function _0x278ab9(){var _0x1644a5=_0x255c64;return _0x47b21f[_0x1644a5('0x21de')]('agent')||!_0x47b21f[_0x1644a5('0xc35')](0x5dd)&&!_0x47b21f['hasRole'](_0x1644a5('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x220e'),{'id':0x5de,'title':_0x255c64('0xc96'),'route':_0x255c64('0xf67'),'translate':_0x255c64('0xbe7'),'state':_0x255c64('0x33d'),'weight':0x1,'hidden':function _0x287e59(){var _0x4d2e89=_0x255c64;return _0x47b21f[_0x4d2e89('0x21de')](_0x4d2e89('0x2402'))||!_0x47b21f[_0x4d2e89('0xc35')](0x5de)&&!_0x47b21f[_0x4d2e89('0x21de')](_0x4d2e89('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x1b6d'),{'id':0x5e6,'title':_0x255c64('0x1a61'),'route':'','translate':_0x255c64('0x1edc'),'state':_0x255c64('0xd52'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function _0x2c9f75(){var _0x4ad01b=_0x255c64;return _0x47b21f['hasRole'](_0x4ad01b('0x2402'))||!_0x47b21f[_0x4ad01b('0xc35')](0x5e6)&&!_0x47b21f[_0x4ad01b('0x21de')]('admin');}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x438'),{'id':0x640,'title':'Help','translate':_0x255c64('0x64b'),'icon':_0x255c64('0x1512'),'weight':0x15,'permissions':{'association':![]},'hidden':function _0x44a62f(){var _0x2e334e=_0x255c64;return _0x47b21f['hasRole'](_0x2e334e('0x2402'))||!_0x47b21f[_0x2e334e('0xc35')](0x640)&&!_0x47b21f[_0x2e334e('0x21de')](_0x2e334e('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')]('apps.help.about',{'id':0x641,'title':_0x255c64('0xe89'),'route':'','translate':_0x255c64('0x23e'),'state':'app.help.about','weight':0x1,'hidden':function _0x2f761a(){var _0x45260c=_0x255c64;return _0x47b21f['hasRole']('agent')||!_0x47b21f['hasPermission'](0x640)&&!_0x47b21f['hasRole'](_0x45260c('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')]('apps.jscripty',{'id':0x6a4,'title':_0x255c64('0x9c7'),'translate':_0x255c64('0x1fe0'),'icon':'icon-script','weight':0xe,'license':_0x255c64('0x9c7'),'hidden':function _0x2cd4b7(){var _0x2e854a=_0x255c64;return!_0x40e081[_0x2e854a('0x9c7')]||_0x47b21f['hasRole'](_0x2e854a('0x2402'))||!_0x47b21f['hasChildrenPermissions'](_0x3dabb5(this))&&!_0x47b21f[_0x2e854a('0x21de')]('admin');}}),_0x4f35bb['saveItem'](_0x255c64('0xc56'),{'id':0x6a5,'title':_0x255c64('0x3d9'),'route':_0x255c64('0xe61'),'translate':_0x255c64('0x2369'),'state':'app.jscripty.projects','weight':0x1,'hidden':function _0x36908c(){var _0x42d068=_0x255c64;return _0x47b21f['hasRole'](_0x42d068('0x2402'))||!_0x47b21f['hasPermission'](0x6a5)&&!_0x47b21f[_0x42d068('0x21de')](_0x42d068('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x1660'),{'id':0x708,'title':'Marketplace','translate':_0x255c64('0x13de'),'icon':'icon-cart','weight':0x12,'hidden':function _0x21fbd8(){var _0x4a6b07=_0x255c64;return _0x47b21f[_0x4a6b07('0x21de')](_0x4a6b07('0x2402'))||!_0x47b21f[_0x4a6b07('0x18c0')](_0x3dabb5(this))&&!_0x47b21f[_0x4a6b07('0x21de')](_0x4a6b07('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x1df3'),{'id':0x709,'title':_0x255c64('0x1074'),'route':_0x255c64('0x2048'),'translate':_0x255c64('0x77e'),'state':_0x255c64('0x63b'),'weight':0x1,'hidden':function _0x283a92(){var _0x44b7a6=_0x255c64;return _0x47b21f[_0x44b7a6('0x21de')](_0x44b7a6('0x2402'))||!_0x47b21f[_0x44b7a6('0xc35')](0x709)&&!_0x47b21f['hasRole'](_0x44b7a6('0x1bd8'));}}),_0x4f35bb['saveItem'](_0x255c64('0x27d6'),{'id':0x7d0,'title':_0x255c64('0x216'),'translate':'VIDEO.VIDEO','icon':_0x255c64('0x201a'),'weight':0xc,'license':_0x255c64('0x17f4'),'hidden':function _0x1c1d2b(){var _0x4c86c1=_0x255c64;return!_0x40e081[_0x4c86c1('0x17f4')]||_0x47b21f[_0x4c86c1('0x21de')](_0x4c86c1('0x2402'))||!_0x47b21f[_0x4c86c1('0x18c0')](_0x3dabb5(this))&&!_0x47b21f['hasRole']('admin');}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x11b7'),{'id':0x7d1,'title':'ScreenRecordings','route':_0x255c64('0xcf2'),'translate':'VIDEO.SCREENRECORDINGS','state':_0x255c64('0x2307'),'weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function _0x35e874(){var _0x304e54=_0x255c64;return _0x47b21f[_0x304e54('0x21de')](_0x304e54('0x2402'))||!_0x47b21f[_0x304e54('0xc35')](0x7d1)&&!_0x47b21f[_0x304e54('0x21de')](_0x304e54('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x25f4'),{'id':0x834,'title':'Whatsapp','translate':'WHATSAPP.WHATSAPP','icon':_0x255c64('0x1d88'),'weight':0xb,'license':_0x255c64('0x1ad4'),'hidden':function _0x33d673(){var _0x5528c7=_0x255c64;return!_0x40e081[_0x5528c7('0x1ad4')]||_0x47b21f[_0x5528c7('0x21de')](_0x5528c7('0x2402'))||!_0x47b21f[_0x5528c7('0x18c0')](_0x3dabb5(this))&&!_0x47b21f[_0x5528c7('0x21de')]('admin');}}),_0x4f35bb[_0x255c64('0x1c97')]('apps.whatsapp.whatsappQueues',{'id':0x835,'title':_0x255c64('0x2424'),'route':_0x255c64('0x1f8f'),'translate':_0x255c64('0x1251'),'state':_0x255c64('0xf7e'),'weight':0x1,'channel':_0x255c64('0x1ad4'),'hidden':function _0x54e5f4(){var _0x1bc9f3=_0x255c64;return _0x47b21f['hasRole']('agent')||!_0x47b21f[_0x1bc9f3('0xc35')](0x835)&&!_0x47b21f['hasRole'](_0x1bc9f3('0x1bd8'));}}),_0x4f35bb[_0x255c64('0x1c97')](_0x255c64('0x5a5'),{'id':0x836,'title':_0x255c64('0x1641'),'route':_0x255c64('0x1b5d'),'translate':_0x255c64('0x784'),'state':_0x255c64('0x8cd'),'weight':0x1,'channel':'whatsapp','hidden':function _0x4f379f(){var _0x4a08ea=_0x255c64;return _0x47b21f[_0x4a08ea('0x21de')](_0x4a08ea('0x2402'))||!_0x47b21f[_0x4a08ea('0xc35')](0x836)&&!_0x47b21f[_0x4a08ea('0x21de')](_0x4a08ea('0x1bd8'));}}),_0x4f35bb['saveItem'](_0x255c64('0x12e'),{'id':0x83e,'title':_0x255c64('0x1a61'),'route':'','translate':'WHATSAPP.REALTIME','state':_0x255c64('0x2042'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function _0x27be74(){var _0x2a54c0=_0x255c64;return _0x47b21f[_0x2a54c0('0x21de')](_0x2a54c0('0x2402'))||!_0x47b21f['hasPermission'](0x83e)&&!_0x47b21f[_0x2a54c0('0x21de')]('admin');}}),_0x4f35bb['sort'](),_0x6fc925[_0x255c64('0x1c97')]('apps',{'title':_0x255c64('0x1a05'),'group':!![],'weight':0x1}),_0x6fc925[_0x255c64('0x1c97')]('apps.home',{'id':0x64,'title':_0x255c64('0x1c0'),'translate':'DASHBOARDS.HOME','icon':'icon-home','weight':0x1}),_0x6fc925[_0x255c64('0x1c97')](_0x255c64('0x18eb'),{'id':0x65,'title':_0x255c64('0x252c'),'translate':_0x255c64('0x196e'),'state':_0x255c64('0xaff'),'view':_0x255c64('0xaff'),'icon':_0x255c64('0xa8'),'iconClass':_0x255c64('0x989'),'weight':0x1,'hidden':function _0x3a5f05(){return!_0x47b21f['hasPermission'](0x65);}}),_0x6fc925['saveItem'](_0x255c64('0x1d12'),{'id':0x66,'title':_0x255c64('0x780'),'translate':_0x255c64('0x7f9'),'state':'contacts','view':_0x255c64('0x2814'),'icon':_0x255c64('0x6c9'),'iconClass':_0x255c64('0x1617'),'weight':0x2,'hidden':function _0x3fd06a(){var _0x19d58f=_0x255c64;return!_0x40e081['cm']||!_0x47b21f[_0x19d58f('0xc35')](0x66);}}),_0x6fc925[_0x255c64('0x1c97')](_0x255c64('0x1082'),{'id':0x67,'title':_0x255c64('0x780'),'translate':_0x255c64('0x21'),'state':_0x255c64('0x2075'),'view':_0x255c64('0x2075'),'icon':_0x255c64('0x1ff5'),'iconClass':_0x255c64('0x1617'),'weight':0x3,'hidden':function _0x4b1ddc(){var _0x362bb3=_0x255c64;return!_0x40e081['cm']||!_0x47b21f[_0x362bb3('0xc35')](0x67);}}),_0x6fc925[_0x255c64('0x1c97')](_0x255c64('0x277c'),{'id':0x71,'title':_0x255c64('0x1f6b'),'translate':'DASHBOARDS.SCHEDULED_CALLS','state':_0x255c64('0x150'),'view':'scheduled','icon':_0x255c64('0x2ab'),'iconClass':_0x255c64('0x1fe3'),'weight':0x3,'hidden':function _0x3dbe93(){var _0x495fdc=_0x255c64;return!_0x40e081[_0x495fdc('0xb6b')]||!_0x47b21f[_0x495fdc('0xc35')](0x71);}}),_0x6fc925[_0x255c64('0x1c97')](_0x255c64('0x7b8'),{'id':0x6e,'title':_0x255c64('0x1d8e'),'translate':_0x255c64('0xf18'),'state':_0x255c64('0x8ed'),'view':'voice','icon':'icon-phone','iconClass':'blue-A700-fg','weight':0x4,'hidden':function _0x1cf992(){var _0x53a30a=_0x255c64;return!_0x40e081[_0x53a30a('0x8ed')]||!_0x47b21f[_0x53a30a('0xc35')](0x6e);}}),_0x6fc925[_0x255c64('0x1c97')]('apps.home.abandoned',{'id':0x6f,'title':_0x255c64('0x1841'),'translate':_0x255c64('0x1630'),'state':'abandoned','view':_0x255c64('0x1f4'),'icon':_0x255c64('0x9c'),'iconClass':_0x255c64('0x1459'),'weight':0x5,'hidden':function _0x8774a7(){var _0x1175be=_0x255c64;return!_0x40e081[_0x1175be('0x8ed')]||!_0x47b21f[_0x1175be('0xc35')](0x6f);}}),_0x6fc925[_0x255c64('0x1c97')](_0x255c64('0x668'),{'id':0x68,'title':_0x255c64('0x5f5'),'translate':_0x255c64('0x2443'),'state':_0x255c64('0x14f8'),'view':_0x255c64('0x14f8'),'icon':_0x255c64('0x1557'),'iconClass':'indigo-A100-fg','weight':0x6,'hidden':function _0x39c0b2(){var _0x388fdc=_0x255c64;return!_0x40e081[_0x388fdc('0x8ed')]||!_0x47b21f[_0x388fdc('0xc35')](0x68);}}),_0x6fc925[_0x255c64('0x1c97')](_0x255c64('0x862'),{'id':0x69,'title':_0x255c64('0x1068'),'translate':_0x255c64('0x2542'),'state':_0x255c64('0x1f65'),'view':_0x255c64('0x1f65'),'icon':_0x255c64('0x244f'),'iconClass':_0x255c64('0x1888'),'weight':0x7,'hidden':function _0x1ad4f2(){var _0x4dad5d=_0x255c64;return!_0x40e081[_0x4dad5d('0x1f65')]||!_0x47b21f['hasPermission'](0x69);}}),_0x6fc925[_0x255c64('0x1c97')](_0x255c64('0x264f'),{'id':0x6a,'title':'Mail','translate':'DASHBOARDS.MAIL','state':_0x255c64('0x1c8b'),'view':_0x255c64('0x1c8b'),'icon':'icon-email','iconClass':_0x255c64('0x23b5'),'weight':0x8,'hidden':function _0x1d05b7(){var _0x1dd531=_0x255c64;return!_0x40e081[_0x1dd531('0x1c8b')]||!_0x47b21f[_0x1dd531('0xc35')](0x6a);}}),_0x6fc925[_0x255c64('0x1c97')](_0x255c64('0x223f'),{'id':0x6b,'title':_0x255c64('0xbd2'),'translate':'DASHBOARDS.SMS','state':_0x255c64('0x3d0'),'view':_0x255c64('0x3d0'),'icon':'icon-message-text','iconClass':'orange-fg','weight':0x9,'hidden':function _0x5bdc7b(){var _0x3e0944=_0x255c64;return!_0x40e081['messaging']||!_0x47b21f[_0x3e0944('0xc35')](0x6b);}}),_0x6fc925[_0x255c64('0x1c97')](_0x255c64('0x24f4'),{'id':0x6c,'title':'Openchannel','translate':'DASHBOARDS.OPENCHANNEL','state':_0x255c64('0xac9'),'view':'openchannel','icon':_0x255c64('0x1eb'),'iconClass':_0x255c64('0x2334'),'weight':0xa,'hidden':function _0x586ee0(){var _0x428f61=_0x255c64;return!_0x40e081[_0x428f61('0xac9')]||!_0x47b21f[_0x428f61('0xc35')](0x6c);}}),_0x6fc925['saveItem']('apps.home.fax',{'id':0x6d,'title':_0x255c64('0x6d8'),'translate':_0x255c64('0x2193'),'state':_0x255c64('0x93f'),'view':_0x255c64('0x93f'),'icon':_0x255c64('0xb78'),'iconClass':_0x255c64('0xec4'),'weight':0xb,'hidden':function _0x58a694(){var _0x9b3201=_0x255c64;return!_0x40e081[_0x9b3201('0x93f')]||!_0x47b21f[_0x9b3201('0xc35')](0x6d);}}),_0x6fc925['saveItem'](_0x255c64('0xdbd'),{'id':0x72,'title':'Whatsapp','translate':_0x255c64('0x184f'),'state':'whatsapp','view':_0x255c64('0x1ad4'),'icon':_0x255c64('0x1d88'),'iconClass':_0x255c64('0x22df'),'weight':0xc,'hidden':function _0x2007c9(){var _0xab5a92=_0x255c64;return!_0x40e081[_0xab5a92('0x1ad4')]||!_0x47b21f[_0xab5a92('0xc35')](0x72);}}),_0x345e39['$on'](_0x255c64('0x546'),function(_0x266830){var _0x1a5792=_0x255c64;_0x266830[_0x1a5792('0x278a')]['$id']===_0x345e39['$id']&&_0x50ac02[_0x1a5792('0x149a')](_0x1a5792('0x27df'));});}const _0x380e6f=_0x336698;;var _0x41266f=[_0x3877e3('0x269a'),'app.core','app.auth',_0x3877e3('0xa32'),_0x3877e3('0x23e1'),_0x3877e3('0x2556'),_0x3877e3('0xfee'),_0x3877e3('0x1155'),'app.dashboards',_0x3877e3('0x49'),_0x3877e3('0xf0f'),_0x3877e3('0xf47'),_0x3877e3('0x1dd8'),_0x3877e3('0x1dc8'),_0x3877e3('0x652'),_0x3877e3('0xaf3'),'app.fax',_0x3877e3('0x20cb'),'app.callysquare','app.analytics',_0x3877e3('0x24e4'),_0x3877e3('0x215d'),'app.motiondialer','app.help','app.jscripty',_0x3877e3('0x1965'),'app.plugins',_0x3877e3('0x1f73'),_0x3877e3('0x2412'),'app.login','app.forgot',_0x3877e3('0xfe3'),_0x3877e3('0x14f3')];angular[_0x3877e3('0x20d5')]('motion',_0x41266f)[_0x3877e3('0x1551')](_0x3877e3('0xccd'),_0x1cb33a)[_0x3877e3('0x13')](_0x1173d1)[_0x3877e3('0x1d5a')](_0x3877e3('0x790'),_0x558043)[_0x3877e3('0x1503')](_0x3877e3('0xe66'),_0x478010)[_0x3877e3('0x1503')](_0x3877e3('0x1c12'),_0xfbbdab)[_0x3877e3('0x1551')](_0x3877e3('0x2086'),_0x985358)[_0x3877e3('0x1551')](_0x3877e3('0x23e7'),_0x59a33a)[_0x3877e3('0x1551')](_0x3877e3('0x954'),_0x2c2989)[_0x3877e3('0x13')](_0x525b37)[_0x3877e3('0x2362')](_0x10d6e5)['factory'](_0x3877e3('0x25d8'),_0x1f7bd2)[_0x3877e3('0x1d5a')]('MainController',_0x380e6f);},0x1a2c:(_0x2377a6,_0x449f83,_0xad16c2)=>{var _0x2c42b3=_0x553250,_0x5321fb={'./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 _0x2dfe75(_0x2868ad){var _0x542285=_0x194d3e(_0x2868ad);return _0xad16c2(_0x542285);}function _0x194d3e(_0x4721c6){var _0x280828=a0_0x2e7f;if(!_0xad16c2['o'](_0x5321fb,_0x4721c6)){var _0x39afda=new Error(_0x280828('0x1977')+_0x4721c6+'\x27');_0x39afda[_0x280828('0x17e8')]='MODULE_NOT_FOUND';throw _0x39afda;}return _0x5321fb[_0x4721c6];}_0x2dfe75[_0x2c42b3('0x223b')]=function _0x40e4b6(){var _0x4ad370=_0x2c42b3;return Object[_0x4ad370('0x223b')](_0x5321fb);},_0x2dfe75[_0x2c42b3('0x8ac')]=_0x194d3e,_0x2377a6['exports']=_0x2dfe75,_0x2dfe75['id']=0x1a2c;},0x1666:_0x5ef0dc=>{var _0x5e6f9b=_0x553250;'use strict';_0x5ef0dc[_0x5e6f9b('0x58')]=angular;},0x1a2:()=>{}},0x0,[[0x1efd,0x29a,0x12]]]); \ No newline at end of file +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','
\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
','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/runtime-89c4abf5a8034ab62e48.js b/public/runtime-89c4abf5a8034ab62e48.js index 427dfe8..6c55bfb 100644 --- a/public/runtime-89c4abf5a8034ab62e48.js +++ b/public/runtime-89c4abf5a8034ab62e48.js @@ -1 +1 @@ -var a1_0x57e5=['prototype','length','webpackChunkmotion_frontend','children','paths','object','__esModule','return\x20this','hasOwnProperty','amdD','call','exports','apply','loaded','defineProperty','push'];(function(_0x3a519f,_0x57e597){var _0x5d090d=function(_0x5c2088){while(--_0x5c2088){_0x3a519f['push'](_0x3a519f['shift']());}};_0x5d090d(++_0x57e597);}(a1_0x57e5,0x150));var a1_0x5d09=function(_0x3a519f,_0x57e597){_0x3a519f=_0x3a519f-0x0;var _0x5d090d=a1_0x57e5[_0x3a519f];return _0x5d090d;};(()=>{var _0x35f931=a1_0x5d09;'use strict';var _0x5c2088={},_0x2132d5={};function _0x18c474(_0x3e0ad1){var _0x2d718b=a1_0x5d09;if(_0x2132d5[_0x3e0ad1])return _0x2132d5[_0x3e0ad1]['exports'];var _0x30bedf=_0x2132d5[_0x3e0ad1]={'id':_0x3e0ad1,'loaded':!0x1,'exports':{}};return _0x5c2088[_0x3e0ad1][_0x2d718b('0xa')](_0x30bedf[_0x2d718b('0xb')],_0x30bedf,_0x30bedf[_0x2d718b('0xb')],_0x18c474),_0x30bedf[_0x2d718b('0xd')]=!0x0,_0x30bedf[_0x2d718b('0xb')];}_0x18c474['m']=_0x5c2088,_0x18c474[_0x35f931('0x9')]=function(){throw new Error('define\x20cannot\x20be\x20used\x20indirect');},_0x18c474['n']=_0x3dab56=>{var _0x1cf114=_0x35f931,_0xe54b1a=_0x3dab56&&_0x3dab56[_0x1cf114('0x6')]?()=>_0x3dab56['default']:()=>_0x3dab56;return _0x18c474['d'](_0xe54b1a,{'a':_0xe54b1a}),_0xe54b1a;},_0x18c474['d']=(_0x33f425,_0x27e7e6)=>{var _0x3e0d69=_0x35f931;for(var _0x100a12 in _0x27e7e6)_0x18c474['o'](_0x27e7e6,_0x100a12)&&!_0x18c474['o'](_0x33f425,_0x100a12)&&Object[_0x3e0d69('0xe')](_0x33f425,_0x100a12,{'enumerable':!0x0,'get':_0x27e7e6[_0x100a12]});},_0x18c474['g']=function(){var _0x45f62b=_0x35f931;if('object'==typeof globalThis)return globalThis;try{return this||new Function(_0x45f62b('0x7'))();}catch(_0x37438a){if(_0x45f62b('0x5')==typeof window)return window;}}(),_0x18c474['o']=(_0x97dcd8,_0xc7b02c)=>Object[_0x35f931('0x0')][_0x35f931('0x8')]['call'](_0x97dcd8,_0xc7b02c),_0x18c474['nmd']=_0x2b11e6=>(_0x2b11e6[_0x35f931('0x4')]=[],_0x2b11e6[_0x35f931('0x3')]||(_0x2b11e6[_0x35f931('0x3')]=[]),_0x2b11e6),_0x18c474['p']='/',(()=>{var _0x87afa6=_0x35f931,_0x90a07b={0x29a:0x0},_0x2466b6=[],_0xa0b495=()=>{};function _0x42ce73(){var _0x407012=a1_0x5d09;for(var _0x569628,_0x5717ca=0x0;_0x5717ca<_0x2466b6[_0x407012('0x1')];_0x5717ca++){for(var _0x31d98f=_0x2466b6[_0x5717ca],_0x5dd23b=!0x0,_0x2a2a5f=0x1;_0x2a2a5f<_0x31d98f[_0x407012('0x1')];_0x2a2a5f++){var _0x1e24d7=_0x31d98f[_0x2a2a5f];0x0!==_0x90a07b[_0x1e24d7]&&(_0x5dd23b=!0x1);}_0x5dd23b&&(_0x2466b6['splice'](_0x5717ca--,0x1),_0x569628=_0x18c474(_0x18c474['s']=_0x31d98f[0x0]));}return 0x0===_0x2466b6[_0x407012('0x1')]&&(_0x18c474['x'](),_0x18c474['x']=()=>{}),_0x569628;}_0x18c474['x']=()=>{var _0xf75233=a1_0x5d09;_0x18c474['x']=()=>{},_0x327f38=_0x327f38['slice']();for(var _0x3abc28=0x0;_0x3abc28<_0x327f38[_0xf75233('0x1')];_0x3abc28++)_0x206dc6(_0x327f38[_0x3abc28]);return(_0xa0b495=_0x42ce73)();};var _0x206dc6=_0x396729=>{var _0x33a815=a1_0x5d09;for(var _0x3a4572,_0x1723f3,[_0x4eef4b,_0x3660fa,_0x59d10d,_0x5caf74]=_0x396729,_0x2f8d0b=0x0,_0x442fde=[];_0x2f8d0b<_0x4eef4b[_0x33a815('0x1')];_0x2f8d0b++)_0x1723f3=_0x4eef4b[_0x2f8d0b],_0x18c474['o'](_0x90a07b,_0x1723f3)&&_0x90a07b[_0x1723f3]&&_0x442fde[_0x33a815('0xf')](_0x90a07b[_0x1723f3][0x0]),_0x90a07b[_0x1723f3]=0x0;for(_0x3a4572 in _0x3660fa)_0x18c474['o'](_0x3660fa,_0x3a4572)&&(_0x18c474['m'][_0x3a4572]=_0x3660fa[_0x3a4572]);for(_0x59d10d&&_0x59d10d(_0x18c474),_0x308384(_0x396729);_0x442fde[_0x33a815('0x1')];)_0x442fde['shift']()();return _0x5caf74&&_0x2466b6[_0x33a815('0xf')][_0x33a815('0xc')](_0x2466b6,_0x5caf74),_0xa0b495();},_0x327f38=self[_0x87afa6('0x2')]=self[_0x87afa6('0x2')]||[],_0x308384=_0x327f38[_0x87afa6('0xf')]['bind'](_0x327f38);_0x327f38['push']=_0x206dc6;})(),_0x18c474['x']();})(); \ No newline at end of file +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 diff --git a/public/service-worker.js b/public/service-worker.js index e35b4fe..a2289c7 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
- logo_login + logo_login

diff --git a/server/api/action/action.attributes.js b/server/api/action/action.attributes.js index f3902f4..108cf32 100644 --- a/server/api/action/action.attributes.js +++ b/server/api/action/action.attributes.js @@ -1 +1 @@ -const a0_0x20f8=['script','sequelize','jscripty','STRING','VIRTUAL','TEXT','bot','exports','motionbar','urlForward','contactManager[ListId],\x20integration[intName(zendesk)],\x20motionbar[Popup(0),URL(1),WinApp(2)],\x20urlForward[GET,POST],\x20browser[TemplateId(0),URL(1)]','browser','Allowed\x20values:\x20contactManager,\x20integration,\x20motionbar,\x20jscripty,\x20urlForward,\x20browser,\x20bot,\x20script'];(function(_0x5df5d9,_0x20f8f7){const _0x102a76=function(_0x65c1b4){while(--_0x65c1b4){_0x5df5d9['push'](_0x5df5d9['shift']());}};_0x102a76(++_0x20f8f7);}(a0_0x20f8,0x148));const a0_0x102a=function(_0x5df5d9,_0x20f8f7){_0x5df5d9=_0x5df5d9-0x0;let _0x102a76=a0_0x20f8[_0x5df5d9];return _0x102a76;};const _0x22e96e=a0_0x102a;'use strict';const Sequelize=require(_0x22e96e('0xb'));module[_0x22e96e('0x4')]={'name':{'type':Sequelize[_0x22e96e('0x1')],'get':function(){return this['getDataValue']('action');}},'action':{'type':Sequelize[_0x22e96e('0x0')],'allowNull':![],'validate':{'isIn':{'args':[['contactManager','integration',_0x22e96e('0x5'),_0x22e96e('0xc'),_0x22e96e('0x6'),_0x22e96e('0x8'),_0x22e96e('0x3'),_0x22e96e('0xa')]],'msg':_0x22e96e('0x9')}},'comment':'Allowed\x20values:\x20contactManager,\x20integration,\x20motionbar,\x20jscripty,\x20urlForward,\x20browser,\x20bot,\x20script'},'data1':{'type':Sequelize[_0x22e96e('0x0')](0x1000),'comment':_0x22e96e('0x7')},'data2':{'type':Sequelize[_0x22e96e('0x0')](0x1000),'comment':'integration[AccountId],\x20motionbar[TemplateId,URL,WinAppPath],\x20urlForward[URL]'},'data3':{'type':Sequelize[_0x22e96e('0x0')](0x1000),'comment':'motionbar[NULL,NULL,WinAppArguments]'},'data4':{'type':Sequelize[_0x22e96e('0x0')](0x1000)},'data5':{'type':Sequelize[_0x22e96e('0x0')](0x1000)},'data6':{'type':Sequelize[_0x22e96e('0x0')]},'data7':{'type':Sequelize[_0x22e96e('0x2')]}}; \ No newline at end of file +const a0_0x174c=['integration','motionbar[NULL,NULL,WinAppArguments]','contactManager[ListId],\x20integration[intName(zendesk)],\x20motionbar[Popup(0),URL(1),WinApp(2)],\x20urlForward[GET,POST],\x20browser[TemplateId(0),URL(1)]','Allowed\x20values:\x20contactManager,\x20integration,\x20motionbar,\x20jscripty,\x20urlForward,\x20browser,\x20bot,\x20script','action','integration[AccountId],\x20motionbar[TemplateId,URL,WinAppPath],\x20urlForward[URL]','exports','contactManager','urlForward','sequelize','script','STRING','browser','TEXT','getDataValue','VIRTUAL'];(function(_0x261d82,_0x174c1d){const _0x124072=function(_0x17b48f){while(--_0x17b48f){_0x261d82['push'](_0x261d82['shift']());}};_0x124072(++_0x174c1d);}(a0_0x174c,0x86));const a0_0x1240=function(_0x261d82,_0x174c1d){_0x261d82=_0x261d82-0x0;let _0x124072=a0_0x174c[_0x261d82];return _0x124072;};const _0x476392=a0_0x1240;'use strict';const Sequelize=require(_0x476392('0x3'));module[_0x476392('0x0')]={'name':{'type':Sequelize[_0x476392('0x9')],'get':function(){const _0x3573af=_0x476392;return this[_0x3573af('0x8')](_0x3573af('0xe'));}},'action':{'type':Sequelize[_0x476392('0x5')],'allowNull':![],'validate':{'isIn':{'args':[[_0x476392('0x1'),_0x476392('0xa'),'motionbar','jscripty',_0x476392('0x2'),_0x476392('0x6'),'bot',_0x476392('0x4')]],'msg':_0x476392('0xd')}},'comment':_0x476392('0xd')},'data1':{'type':Sequelize[_0x476392('0x5')](0x1000),'comment':_0x476392('0xc')},'data2':{'type':Sequelize[_0x476392('0x5')](0x1000),'comment':_0x476392('0xf')},'data3':{'type':Sequelize[_0x476392('0x5')](0x1000),'comment':_0x476392('0xb')},'data4':{'type':Sequelize[_0x476392('0x5')](0x1000)},'data5':{'type':Sequelize['STRING'](0x1000)},'data6':{'type':Sequelize['STRING']},'data7':{'type':Sequelize[_0x476392('0x7')]}}; \ No newline at end of file diff --git a/server/api/action/action.controller.js b/server/api/action/action.controller.js index 4f0135a..fb77486 100644 --- a/server/api/action/action.controller.js +++ b/server/api/action/action.controller.js @@ -1 +1 @@ -const a1_0x45a6=['end','../../config/logger','update','destroy','catch','stack','params','then','api','status','../../mysqldb','Action','name','findOne','body'];(function(_0x5b6919,_0x45a654){const _0x43e601=function(_0x52a623){while(--_0x52a623){_0x5b6919['push'](_0x5b6919['shift']());}};_0x43e601(++_0x45a654);}(a1_0x45a6,0x124));const a1_0x43e6=function(_0x5b6919,_0x45a654){_0x5b6919=_0x5b6919-0x0;let _0x43e601=a1_0x45a6[_0x5b6919];return _0x43e601;};const _0x5b64a=a1_0x43e6;'use strict';const logger=require(_0x5b64a('0x9'))(_0x5b64a('0x1')),db=require(_0x5b64a('0x3'))['db'];function respondWithResult(_0x52a623,_0x170eed){return _0x170eed=_0x170eed||0xc8,function(_0x357e5b){const _0x10f8d4=a1_0x43e6;if(_0x357e5b)return _0x52a623[_0x10f8d4('0x2')](_0x170eed)['json'](_0x357e5b);};}function saveUpdates(_0x12ae6b){return function(_0x4cc06b){const _0x37a992=a1_0x43e6;if(_0x4cc06b)return _0x4cc06b[_0x37a992('0xa')](_0x12ae6b)[_0x37a992('0x0')](function(_0x4cb225){return _0x4cb225;});return null;};}function removeEntity(_0x247749){return function(_0x4d8a4d){const _0x268dd5=a1_0x43e6;if(_0x4d8a4d)return _0x4d8a4d['destroy']()[_0x268dd5('0x0')](function(){const _0x3a12ed=_0x268dd5;_0x247749[_0x3a12ed('0x2')](0xcc)[_0x3a12ed('0x8')]();});};}function handleEntityNotFound(_0x1983b4){return function(_0x19179d){return!_0x19179d&&_0x1983b4['sendStatus'](0x194),_0x19179d;};}function handleError(_0x28ca71,_0x4e369a){return _0x4e369a=_0x4e369a||0x1f4,function(_0x35d4d5){const _0x596404=a1_0x43e6;logger['error'](_0x35d4d5[_0x596404('0xd')]),_0x35d4d5[_0x596404('0x5')]&&delete _0x35d4d5[_0x596404('0x5')],_0x28ca71[_0x596404('0x2')](_0x4e369a)['send'](_0x35d4d5);};}exports[_0x5b64a('0xa')]=function(_0x417cad,_0x4ef971){const _0x2c8e65=_0x5b64a;return _0x417cad[_0x2c8e65('0x7')]['id']&&delete _0x417cad[_0x2c8e65('0x7')]['id'],db[_0x2c8e65('0x4')][_0x2c8e65('0x6')]({'where':{'id':_0x417cad[_0x2c8e65('0xe')]['id']}})[_0x2c8e65('0x0')](handleEntityNotFound(_0x4ef971))[_0x2c8e65('0x0')](saveUpdates(_0x417cad[_0x2c8e65('0x7')]))[_0x2c8e65('0x0')](respondWithResult(_0x4ef971,null))['catch'](handleError(_0x4ef971,null));},exports[_0x5b64a('0xb')]=function(_0xdcf465,_0x59a677){const _0x3ac180=_0x5b64a;return db['Action'][_0x3ac180('0x6')]({'where':{'id':_0xdcf465['params']['id']}})[_0x3ac180('0x0')](handleEntityNotFound(_0x59a677))[_0x3ac180('0x0')](removeEntity(_0x59a677))[_0x3ac180('0xc')](handleError(_0x59a677,null));}; \ No newline at end of file +const a1_0xfc23=['findOne','update','stack','catch','end','destroy','sendStatus','status','params','name','then','json','error','body','../../config/logger','Action','api'];(function(_0x4d74ad,_0xfc23d8){const _0x5761f8=function(_0x577d33){while(--_0x577d33){_0x4d74ad['push'](_0x4d74ad['shift']());}};_0x5761f8(++_0xfc23d8);}(a1_0xfc23,0xe9));const a1_0x5761=function(_0x4d74ad,_0xfc23d8){_0x4d74ad=_0x4d74ad-0x0;let _0x5761f8=a1_0xfc23[_0x4d74ad];return _0x5761f8;};const _0x31f05b=a1_0x5761;'use strict';const logger=require(_0x31f05b('0x2'))(_0x31f05b('0x4')),db=require('../../mysqldb')['db'];function respondWithResult(_0x577d33,_0x1940f4){return _0x1940f4=_0x1940f4||0xc8,function(_0x19085c){const _0x35224=a1_0x5761;if(_0x19085c)return _0x577d33['status'](_0x1940f4)[_0x35224('0x10')](_0x19085c);};}function saveUpdates(_0x190c77){return function(_0x58d6e6){const _0x3d68be=a1_0x5761;if(_0x58d6e6)return _0x58d6e6[_0x3d68be('0x6')](_0x190c77)[_0x3d68be('0xf')](function(_0x4b5cce){return _0x4b5cce;});return null;};}function removeEntity(_0x312a87){return function(_0x517885){const _0x393b4f=a1_0x5761;if(_0x517885)return _0x517885[_0x393b4f('0xa')]()[_0x393b4f('0xf')](function(){const _0x485c80=_0x393b4f;_0x312a87[_0x485c80('0xc')](0xcc)[_0x485c80('0x9')]();});};}function handleEntityNotFound(_0x3ba7fa){return function(_0x3ffa7b){const _0x291475=a1_0x5761;return!_0x3ffa7b&&_0x3ba7fa[_0x291475('0xb')](0x194),_0x3ffa7b;};}function handleError(_0x315dc4,_0x165f3e){return _0x165f3e=_0x165f3e||0x1f4,function(_0x3e32cc){const _0x5dd0e9=a1_0x5761;logger[_0x5dd0e9('0x0')](_0x3e32cc[_0x5dd0e9('0x7')]),_0x3e32cc['name']&&delete _0x3e32cc[_0x5dd0e9('0xe')],_0x315dc4[_0x5dd0e9('0xc')](_0x165f3e)['send'](_0x3e32cc);};}exports[_0x31f05b('0x6')]=function(_0x4c512c,_0x789b19){const _0x2827dc=_0x31f05b;return _0x4c512c[_0x2827dc('0x1')]['id']&&delete _0x4c512c[_0x2827dc('0x1')]['id'],db['Action'][_0x2827dc('0x5')]({'where':{'id':_0x4c512c['params']['id']}})[_0x2827dc('0xf')](handleEntityNotFound(_0x789b19))[_0x2827dc('0xf')](saveUpdates(_0x4c512c['body']))['then'](respondWithResult(_0x789b19,null))[_0x2827dc('0x8')](handleError(_0x789b19,null));},exports[_0x31f05b('0xa')]=function(_0x15177b,_0x5ec302){const _0x36698b=_0x31f05b;return db[_0x36698b('0x3')]['findOne']({'where':{'id':_0x15177b[_0x36698b('0xd')]['id']}})['then'](handleEntityNotFound(_0x5ec302))['then'](removeEntity(_0x5ec302))['catch'](handleError(_0x5ec302,null));}; \ No newline at end of file diff --git a/server/api/action/action.model.js b/server/api/action/action.model.js index c024115..d0b238f 100644 --- a/server/api/action/action.model.js +++ b/server/api/action/action.model.js @@ -1 +1 @@ -const a2_0x3b00=['exports','define','Action','./action.attributes'];(function(_0x24f729,_0x3b006b){const _0x1818d4=function(_0x2d14bc){while(--_0x2d14bc){_0x24f729['push'](_0x24f729['shift']());}};_0x1818d4(++_0x3b006b);}(a2_0x3b00,0x11d));const a2_0x1818=function(_0x24f729,_0x3b006b){_0x24f729=_0x24f729-0x0;let _0x1818d4=a2_0x3b00[_0x24f729];return _0x1818d4;};const _0x2c72a5=a2_0x1818;'use strict';const attributes=require(_0x2c72a5('0x2'));module[_0x2c72a5('0x3')]=function(_0x2d14bc){const _0x18a377=_0x2c72a5,_0x4eb944=_0x2d14bc[_0x18a377('0x0')](_0x18a377('0x1'),attributes,{'tableName':'tools_actions','paranoid':![],'indexes':[],'timestamps':!![]});return _0x4eb944;}; \ No newline at end of file +const a2_0x1944=['Action','./action.attributes','define','exports','tools_actions'];(function(_0x586ee6,_0x194483){const _0x406f20=function(_0x2cbb87){while(--_0x2cbb87){_0x586ee6['push'](_0x586ee6['shift']());}};_0x406f20(++_0x194483);}(a2_0x1944,0xd1));const a2_0x406f=function(_0x586ee6,_0x194483){_0x586ee6=_0x586ee6-0x0;let _0x406f20=a2_0x1944[_0x586ee6];return _0x406f20;};const _0xba1183=a2_0x406f;'use strict';const attributes=require(_0xba1183('0x2'));module[_0xba1183('0x4')]=function(_0x2cbb87){const _0x1768a5=_0xba1183,_0x2c4721=_0x2cbb87[_0x1768a5('0x3')](_0x1768a5('0x1'),attributes,{'tableName':_0x1768a5('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2c4721;}; \ No newline at end of file diff --git a/server/api/action/index.js b/server/api/action/index.js index 8e784a2..306d0e6 100644 --- a/server/api/action/index.js +++ b/server/api/action/index.js @@ -1 +1 @@ -const a3_0x3a77=['isAuthenticated','exports','delete','update','Router','../../components/auth/service','destroy','/:id'];(function(_0x2bdd42,_0x3a77bb){const _0x1402e6=function(_0x583ff8){while(--_0x583ff8){_0x2bdd42['push'](_0x2bdd42['shift']());}};_0x1402e6(++_0x3a77bb);}(a3_0x3a77,0x12b));const a3_0x1402=function(_0x2bdd42,_0x3a77bb){_0x2bdd42=_0x2bdd42-0x0;let _0x1402e6=a3_0x3a77[_0x2bdd42];return _0x1402e6;};const _0x3beea0=a3_0x1402;'use strict';const express=require('express'),router=express[_0x3beea0('0x1')](),auth=require(_0x3beea0('0x2')),controller=require('./action.controller');router['put'](_0x3beea0('0x4'),auth['isAuthenticated'](),controller[_0x3beea0('0x0')]),router[_0x3beea0('0x7')]('/:id',auth[_0x3beea0('0x5')](),controller[_0x3beea0('0x3')]),module[_0x3beea0('0x6')]=router; \ No newline at end of file +const a3_0x4c56=['./action.controller','update','Router','delete','/:id','../../components/auth/service','isAuthenticated'];(function(_0x52ff2b,_0x4c56ab){const _0x4ec8c3=function(_0x4da8b8){while(--_0x4da8b8){_0x52ff2b['push'](_0x52ff2b['shift']());}};_0x4ec8c3(++_0x4c56ab);}(a3_0x4c56,0x174));const a3_0x4ec8=function(_0x52ff2b,_0x4c56ab){_0x52ff2b=_0x52ff2b-0x0;let _0x4ec8c3=a3_0x4c56[_0x52ff2b];return _0x4ec8c3;};const _0xd174c6=a3_0x4ec8;'use strict';const express=require('express'),router=express[_0xd174c6('0x1')](),auth=require(_0xd174c6('0x4')),controller=require(_0xd174c6('0x6'));router['put'](_0xd174c6('0x3'),auth[_0xd174c6('0x5')](),controller[_0xd174c6('0x0')]),router[_0xd174c6('0x2')](_0xd174c6('0x3'),auth[_0xd174c6('0x5')](),controller['destroy']),module['exports']=router; \ No newline at end of file diff --git a/server/api/analyticCustomReport/analyticCustomReport.attributes.js b/server/api/analyticCustomReport/analyticCustomReport.attributes.js index e5552f8..927fa66 100644 --- a/server/api/analyticCustomReport/analyticCustomReport.attributes.js +++ b/server/api/analyticCustomReport/analyticCustomReport.attributes.js @@ -1 +1 @@ -const a4_0x2a98=['STRING','TEXT','exports'];(function(_0x51503c,_0x2a983b){const _0x5eaff1=function(_0x5c6c53){while(--_0x5c6c53){_0x51503c['push'](_0x51503c['shift']());}};_0x5eaff1(++_0x2a983b);}(a4_0x2a98,0x1aa));const a4_0x5eaf=function(_0x51503c,_0x2a983b){_0x51503c=_0x51503c-0x0;let _0x5eaff1=a4_0x2a98[_0x51503c];return _0x5eaff1;};const _0x298459=a4_0x5eaf;'use strict';const Sequelize=require('sequelize');module[_0x298459('0x2')]={'name':{'type':Sequelize[_0x298459('0x0')],'allowNull':![]},'description':{'type':Sequelize[_0x298459('0x0')]},'parent':{'type':Sequelize['STRING']},'table':{'type':Sequelize['STRING']},'conditions':{'type':Sequelize[_0x298459('0x1')]},'joins':{'type':Sequelize[_0x298459('0x1')]}}; \ No newline at end of file +const a4_0x7dc6=['TEXT','exports','STRING'];(function(_0x3215c5,_0x7dc65){const _0x2a0e03=function(_0x55dd75){while(--_0x55dd75){_0x3215c5['push'](_0x3215c5['shift']());}};_0x2a0e03(++_0x7dc65);}(a4_0x7dc6,0xf0));const a4_0x2a0e=function(_0x3215c5,_0x7dc65){_0x3215c5=_0x3215c5-0x0;let _0x2a0e03=a4_0x7dc6[_0x3215c5];return _0x2a0e03;};const _0x29c6c4=a4_0x2a0e;'use strict';const Sequelize=require('sequelize');module[_0x29c6c4('0x1')]={'name':{'type':Sequelize[_0x29c6c4('0x2')],'allowNull':![]},'description':{'type':Sequelize['STRING']},'parent':{'type':Sequelize[_0x29c6c4('0x2')]},'table':{'type':Sequelize['STRING']},'conditions':{'type':Sequelize['TEXT']},'joins':{'type':Sequelize[_0x29c6c4('0x0')]}}; \ No newline at end of file diff --git a/server/api/analyticCustomReport/analyticCustomReport.controller.js b/server/api/analyticCustomReport/analyticCustomReport.controller.js index b7b7908..9a0641e 100644 --- a/server/api/analyticCustomReport/analyticCustomReport.controller.js +++ b/server/api/analyticCustomReport/analyticCustomReport.controller.js @@ -1 +1 @@ -const a5_0x53ee=['CustomReports','Please\x20insert\x20at\x20least\x20one\x20field','startDate','length','sequelize','value','AVG(%s)','update','cross_join','name','SELECT','body','AnalyticCustomReport','set','GROUP_CONCAT(%s)','pick','IS\x20NULL','generate','keyBy','join','includeAll','operator','UserProfileResource','IS\x20NOT\x20EMPTY','keys','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','role','path','filters','findOne','include','right_join','%s-%s.%s','fields','merge','.calldate\x20BETWEEN\x20?\x20AND\x20?','savename','Reports','output','countTable','toString','table','debug','Run\x20Query:','get','../../config/logger','orderBy','create','QueryTypes','IS\x20EMPTY','undefined','field','sort','limit','where','UserProfileSection','No\x20available\x20data','lodash','error','filter','options','randomstring','COUNT(%s)','VIRTUAL','MAX(%s)','UNIX_TIMESTAMP(%s)','stack','SEC_TO_TIME(%s)','group','send','model','foreignKey','AnalyticMetric','condition','foreignTable','type','HOUR(%s)','getFields','Limited\x20Query:','COUNT(*)','MIN(%s)','Content-Range','includes','params','status','run','rules','alias','attributes','metric','runReport','endDate','clone','info','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)','ROUND(%s)','conditions','SUM(%s)','Sequelize','Unable\x20to\x20retrieve\x20the\x20current\x20user','joins','offset','then','json','rawAttributes','catch','from','intersection','%s.%s\x20=\x20%s.%s','AnalyticExtractedReport','IS\x20NOT\x20NULL','sendStatus','COUNT(DISTINCT\x20%s)','key','parse','index','web','map','select','replace','MetricId','autoAssociation','parentKey','function','rows','ValidationErrorItem','../../components/export/','query','cdr','user','order','findAll','left_join','format','DATE(%s)','destroy','count','DESC','squel'];(function(_0xd79f2,_0x53ee28){const _0x4ee015=function(_0x118ecc){while(--_0x118ecc){_0xd79f2['push'](_0xd79f2['shift']());}};_0x4ee015(++_0x53ee28);}(a5_0x53ee,0x148));const a5_0x4ee0=function(_0xd79f2,_0x53ee28){_0xd79f2=_0xd79f2-0x0;let _0x4ee015=a5_0x53ee[_0xd79f2];return _0x4ee015;};const _0x22f0ed=a5_0x4ee0;'use strict';const util=require('util'),path=require(_0x22f0ed('0x74')),_=require(_0x22f0ed('0x7')),squel=require(_0x22f0ed('0x58')),qs=require('../../components/parsers/qs'),logger=require(_0x22f0ed('0x86'))('api'),db=require('../../mysqldb')['db'],dbH=require('../../mysqldb')['dbH'],{Op}=require('sequelize');function respondWithResult(_0x118ecc,_0x43319d){return _0x43319d=_0x43319d||0xc8,function(_0x167242){const _0x4822e1=a5_0x4ee0;if(_0x167242)return _0x118ecc[_0x4822e1('0x22')](_0x43319d)[_0x4822e1('0x35')](_0x167242);};}function respondWithFilteredResult(_0x202917,_0x197d3a){return function(_0x917117){const _0x5d1614=a5_0x4ee0;if(_0x917117){const _0x5626e9=_0x917117[_0x5d1614('0x56')],_0x588ccf=_0x197d3a[_0x5d1614('0x33')];let _0x1762b7=_0x197d3a[_0x5d1614('0x33')]+_0x197d3a[_0x5d1614('0x3')],_0x474967;return _0x1762b7>=_0x5626e9?(_0x1762b7=_0x5626e9,_0x474967=0xc8):_0x474967=0xce,_0x202917[_0x5d1614('0x22')](_0x474967),_0x202917[_0x5d1614('0x66')](_0x5d1614('0x1f'),_0x588ccf+'-'+_0x1762b7+'/'+_0x5626e9)[_0x5d1614('0x35')](_0x917117);}return null;};}function saveUpdates(_0x490dc7){return function(_0x2a8d0a){const _0x47fba8=a5_0x4ee0;if(_0x2a8d0a)return _0x2a8d0a[_0x47fba8('0x60')](_0x490dc7)[_0x47fba8('0x34')](function(_0x376f17){return _0x376f17;});return null;};}function removeEntity(_0x55e113){return function(_0x3efe6f){if(_0x3efe6f)return _0x3efe6f['destroy']()['then'](function(){const _0x63eb16=a5_0x4ee0,_0x2114e2=_0x3efe6f[_0x63eb16('0x85')]({'plain':!![]}),_0x30f157=_0x63eb16('0x59');return db[_0x63eb16('0x6f')][_0x63eb16('0x55')]({'where':{'type':_0x30f157,'resourceId':_0x2114e2['id']}})[_0x63eb16('0x34')](function(){return _0x3efe6f;});})['then'](function(){const _0x349a2b=a5_0x4ee0;_0x55e113[_0x349a2b('0x22')](0xcc)['end']();});};}function handleEntityNotFound(_0x5d7417){return function(_0x534808){const _0x464e75=a5_0x4ee0;return!_0x534808&&_0x5d7417[_0x464e75('0x3d')](0x194),_0x534808;};}function handleError(_0x34c744,_0x1c9543){return _0x1c9543=_0x1c9543||0x1f4,function(_0x31753c){const _0x4cd020=a5_0x4ee0;logger[_0x4cd020('0x8')](_0x31753c[_0x4cd020('0x10')]),_0x31753c[_0x4cd020('0x62')]&&delete _0x31753c['name'],_0x34c744[_0x4cd020('0x22')](_0x1c9543)[_0x4cd020('0x13')](_0x31753c);};}exports[_0x22f0ed('0x41')]=function(_0x53a3b0,_0x855011){const _0x588f75=_0x22f0ed;let _0x282118={};const _0x1cc546={},_0x4cc74d={'count':0x0,'rows':[]},_0x1bc210=_['map'](db[_0x588f75('0x65')][_0x588f75('0x36')],function(_0x29a155){const _0x288450=_0x588f75;return{'name':_0x29a155['fieldName'],'type':_0x29a155[_0x288450('0x19')][_0x288450('0x3f')]};});_0x1cc546[_0x588f75('0x14')]=_[_0x588f75('0x43')](_0x1bc210,_0x588f75('0x62')),_0x1cc546[_0x588f75('0x4d')]=_['keys'](_0x53a3b0[_0x588f75('0x4d')]),_0x1cc546['filters']=_[_0x588f75('0x39')](_0x1cc546['model'],_0x1cc546[_0x588f75('0x4d')]),_0x282118['attributes']=_[_0x588f75('0x39')](_0x1cc546['model'],qs[_0x588f75('0x7a')](_0x53a3b0[_0x588f75('0x4d')]['fields'])),_0x282118[_0x588f75('0x26')]=_0x282118['attributes'][_0x588f75('0x5c')]?_0x282118[_0x588f75('0x26')]:_0x1cc546[_0x588f75('0x14')];typeof _0x53a3b0[_0x588f75('0x4d')]['nolimit']===_0x588f75('0x0')&&(_0x282118[_0x588f75('0x3')]=qs[_0x588f75('0x3')](_0x53a3b0[_0x588f75('0x4d')]['limit']),_0x282118['offset']=qs['offset'](_0x53a3b0[_0x588f75('0x4d')][_0x588f75('0x33')]));_0x282118['order']=qs[_0x588f75('0x2')](_0x53a3b0[_0x588f75('0x4d')][_0x588f75('0x2')]),_0x282118[_0x588f75('0x4')]=qs[_0x588f75('0x75')](_[_0x588f75('0x68')](_0x53a3b0['query'],_0x1cc546[_0x588f75('0x75')]),_0x1bc210);_0x53a3b0['query']['filter']&&(_0x282118[_0x588f75('0x4')]=_[_0x588f75('0x7b')](_0x282118['where'],{[Op['or']]:_['map'](_0x1bc210,function(_0x2f556f){const _0x31a6d9=_0x588f75;if(_0x2f556f[_0x31a6d9('0x19')]!==_0x31a6d9('0xd')){const _0x21c566={};return _0x21c566[_0x2f556f[_0x31a6d9('0x62')]]={[Op['like']]:'%'+_0x53a3b0[_0x31a6d9('0x4d')][_0x31a6d9('0x9')]+'%'},_0x21c566;}})}));_0x282118=_['merge']({},_0x282118,_0x53a3b0['options']);const _0x59bb3b={'where':_0x282118[_0x588f75('0x4')]};return db[_0x588f75('0x65')]['count'](_0x59bb3b)[_0x588f75('0x34')](function(_0x442065){const _0x5d57d1=_0x588f75;return _0x4cc74d[_0x5d57d1('0x56')]=_0x442065,_0x53a3b0[_0x5d57d1('0x4d')][_0x5d57d1('0x6d')]&&(_0x282118['include']=[{'all':!![]}]),db[_0x5d57d1('0x65')][_0x5d57d1('0x51')](_0x282118);})[_0x588f75('0x34')](function(_0x164269){const _0x1178e9=_0x588f75;return _0x4cc74d[_0x1178e9('0x4a')]=_0x164269,_0x4cc74d;})['then'](respondWithFilteredResult(_0x855011,_0x282118))[_0x588f75('0x37')](handleError(_0x855011,null));},exports['show']=function(_0xf0cd83,_0x125921){const _0x5cb869=_0x22f0ed;let _0x2986a3={'raw':![],'where':{'id':_0xf0cd83[_0x5cb869('0x21')]['id']}};const _0x460957={};return _0x460957['model']=_[_0x5cb869('0x71')](db[_0x5cb869('0x65')]['rawAttributes']),_0x460957[_0x5cb869('0x4d')]=_[_0x5cb869('0x71')](_0xf0cd83['query']),_0x460957[_0x5cb869('0x75')]=_[_0x5cb869('0x39')](_0x460957[_0x5cb869('0x14')],_0x460957['query']),_0x2986a3[_0x5cb869('0x26')]=_['intersection'](_0x460957[_0x5cb869('0x14')],qs[_0x5cb869('0x7a')](_0xf0cd83[_0x5cb869('0x4d')]['fields'])),_0x2986a3[_0x5cb869('0x26')]=_0x2986a3['attributes'][_0x5cb869('0x5c')]?_0x2986a3[_0x5cb869('0x26')]:_0x460957['model'],_0xf0cd83['query'][_0x5cb869('0x6d')]&&(_0x2986a3[_0x5cb869('0x77')]=[{'all':!![]}]),_0x2986a3=_[_0x5cb869('0x7b')]({},_0x2986a3,_0xf0cd83[_0x5cb869('0xa')]),db[_0x5cb869('0x65')]['findOne'](_0x2986a3)[_0x5cb869('0x34')](handleEntityNotFound(_0x125921,null))['then'](respondWithResult(_0x125921,null))[_0x5cb869('0x37')](handleError(_0x125921,null));},exports['create']=function(_0x50d2a1,_0xa8e924){const _0x1f2c86=_0x22f0ed;return db[_0x1f2c86('0x65')][_0x1f2c86('0x88')](_0x50d2a1['body'],{})['then'](function(_0xeb2997){const _0x33ed4e=_0x1f2c86,_0x54cae1=_0x50d2a1[_0x33ed4e('0x4f')]['get']({'plain':!![]});if(!_0x54cae1)throw new Error(_0x33ed4e('0x31'));if(_0x54cae1[_0x33ed4e('0x73')]===_0x33ed4e('0x4f')){const _0x3d2f4c=_0xeb2997[_0x33ed4e('0x85')]({'plain':!![]}),_0x74e9a7=_0x33ed4e('0x7e');return db[_0x33ed4e('0x5')][_0x33ed4e('0x76')]({'where':{'name':_0x74e9a7,'userProfileId':_0x54cae1['userProfileId']},'raw':!![]})['then'](function(_0x524389){const _0x27691f=_0x33ed4e;return _0x524389&&_0x524389[_0x27691f('0x47')]===0x0?db[_0x27691f('0x6f')][_0x27691f('0x88')]({'name':_0x3d2f4c[_0x27691f('0x62')],'resourceId':_0x3d2f4c['id'],'type':_0x27691f('0x59'),'sectionId':_0x524389['id']},{})[_0x27691f('0x34')](function(){return _0xeb2997;}):_0xeb2997;})['catch'](function(_0x48c9d6){const _0x9600e6=_0x33ed4e;logger[_0x9600e6('0x8')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x48c9d6);throw _0x48c9d6;});}return _0xeb2997;})[_0x1f2c86('0x34')](respondWithResult(_0xa8e924,0xc9))[_0x1f2c86('0x37')](handleError(_0xa8e924,null));},exports[_0x22f0ed('0x60')]=function(_0xb258cd,_0x21e3b0){const _0x339d24=_0x22f0ed;return _0xb258cd[_0x339d24('0x64')]['id']&&delete _0xb258cd[_0x339d24('0x64')]['id'],db['AnalyticCustomReport']['findOne']({'where':{'id':_0xb258cd[_0x339d24('0x21')]['id']}})[_0x339d24('0x34')](handleEntityNotFound(_0x21e3b0,null))[_0x339d24('0x34')](saveUpdates(_0xb258cd[_0x339d24('0x64')],null))['then'](respondWithResult(_0x21e3b0,null))['catch'](handleError(_0x21e3b0,null));},exports[_0x22f0ed('0x55')]=function(_0x1473b7,_0x373109){const _0x43cb0a=_0x22f0ed;return db['AnalyticCustomReport'][_0x43cb0a('0x76')]({'where':{'id':_0x1473b7['params']['id']}})[_0x43cb0a('0x34')](handleEntityNotFound(_0x373109,null))[_0x43cb0a('0x34')](removeEntity(_0x373109,null))[_0x43cb0a('0x37')](handleError(_0x373109,null));},exports['preview']=function(_0x2447e7,_0x274319){const _0x592c76=_0x22f0ed,_0x91890a=0xa,_0x4c9349=[_0x592c76('0x6c'),_0x592c76('0x52'),_0x592c76('0x78'),'cross_join'],_0x4b7ff5={'SUM':'SUM(%s)','COUNT':_0x592c76('0xc'),'COUNT\x20DISTINCT':_0x592c76('0x3e'),'MAX':_0x592c76('0xe'),'MIN':_0x592c76('0x1e'),'AVG':_0x592c76('0x5f'),'GROUP_CONCAT':_0x592c76('0x67'),'GROUP_CONCAT\x20ASC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','GROUP_CONCAT\x20DESC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)'},_0x1f3dbc={'SEC_TO_TIME':_0x592c76('0x11'),'DATE':'DATE(%s)','HOUR':'HOUR(%s)','ROUND':_0x592c76('0x2d'),'UNIX_TIMESTAMP':_0x592c76('0xf')},_0x16d8d7=function(_0x3c1c9a){const _0x2ccd24=_0x592c76;return!_['includes']([_0x2ccd24('0x69'),_0x2ccd24('0x3c'),_0x2ccd24('0x8a'),'IS\x20NOT\x20EMPTY'],_0x3c1c9a);},_0x10f09e=function(_0x3d8347){const _0x40977a=_0x592c76;if(!_0x3d8347||!_0x3d8347[_0x40977a('0x24')][_0x40977a('0x5c')])return'';let _0x52b209='(';for(let _0x5c6fa5=0x0;_0x5c6fa5<_0x3d8347[_0x40977a('0x24')][_0x40977a('0x5c')];_0x5c6fa5+=0x1){_0x5c6fa5>0x0&&(_0x52b209+='\x20'+_0x3d8347[_0x40977a('0x6e')]+'\x20'),_0x52b209+=_0x3d8347['rules'][_0x5c6fa5]['group']?_0x10f09e(_0x3d8347['rules'][_0x5c6fa5][_0x40977a('0x12')]):_0x3d8347[_0x40977a('0x24')][_0x5c6fa5][_0x40977a('0x1')]+'\x20'+_0x3d8347[_0x40977a('0x24')][_0x5c6fa5][_0x40977a('0x17')]+(_0x16d8d7(_0x3d8347[_0x40977a('0x24')][_0x5c6fa5][_0x40977a('0x17')])?'\x20'+_0x3d8347[_0x40977a('0x24')][_0x5c6fa5][_0x40977a('0x5e')]:'');}return _0x52b209+')';};let _0x2079f8={'where':{'id':_0x2447e7[_0x592c76('0x21')]['id']}},_0x3d0824,_0x455228,_0x3e5c30;return _0x2079f8=_['merge']({},_0x2079f8,_0x2447e7['options']),db[_0x592c76('0x65')][_0x592c76('0x76')](_0x2079f8)[_0x592c76('0x34')](function(_0x210c62){const _0x3770=_0x592c76;if(_0x210c62)return _0x3d0824=_0x210c62,_0x210c62[_0x3770('0x1b')]();return null;})[_0x592c76('0x34')](function(_0x507e7f){const _0x416817=_0x592c76;if(_0x507e7f){if(!_0x507e7f[_0x416817('0x5c')])throw new db['Sequelize']['ValidationErrorItem'](_0x416817('0x5a'),0x193);return _0x455228=_0x507e7f,db['AnalyticMetric']['findAll']({'raw':!![]});}return null;})['then'](function(_0x519cfd){const _0x39cdb9=_0x592c76;if(_0x519cfd){_0x3e5c30=_[_0x39cdb9('0x6b')](_0x519cfd,'id');let _0x408c5a;const _0x5352a7=squel['select']();_0x5352a7[_0x39cdb9('0x38')](_0x3d0824[_0x39cdb9('0x82')]);for(let _0x4e7da8=0x0;_0x4e7da8<_0x455228['length'];_0x4e7da8+=0x1){_0x408c5a=_0x455228[_0x4e7da8][_0x39cdb9('0x46')]?_0x3e5c30[_0x455228[_0x4e7da8][_0x39cdb9('0x46')]][_0x39cdb9('0x27')]:_0x455228[_0x4e7da8]['field'],_0x408c5a=_0x455228[_0x4e7da8][_0x39cdb9('0x49')]?_[_0x39cdb9('0x45')](_0x4b7ff5[_0x455228[_0x4e7da8][_0x39cdb9('0x49')]],'%s',_0x408c5a):_0x408c5a,_0x408c5a=_0x455228[_0x4e7da8][_0x39cdb9('0x53')]?_[_0x39cdb9('0x45')](_0x1f3dbc[_0x455228[_0x4e7da8][_0x39cdb9('0x53')]],'%s',_0x408c5a):_0x408c5a,_0x455228[_0x4e7da8]['groupBy']&&_0x5352a7[_0x39cdb9('0x12')](_0x408c5a),_0x455228[_0x4e7da8][_0x39cdb9('0x87')]&&_0x5352a7[_0x39cdb9('0x50')](_0x408c5a,_0x455228[_0x4e7da8][_0x39cdb9('0x87')]===_0x39cdb9('0x57')?![]:!![]),_0x5352a7[_0x39cdb9('0x1')](_0x408c5a,_0x455228[_0x4e7da8][_0x39cdb9('0x25')]||_0x408c5a);}if(_0x3d0824[_0x39cdb9('0x32')]){_0x3d0824[_0x39cdb9('0x32')]=JSON[_0x39cdb9('0x40')](_0x3d0824[_0x39cdb9('0x32')]);for(let _0x3386c4=0x0;_0x3386c4<_0x3d0824[_0x39cdb9('0x32')][_0x39cdb9('0x5c')];_0x3386c4+=0x1){_0x3d0824[_0x39cdb9('0x32')][_0x3386c4][_0x39cdb9('0x19')]&&_[_0x39cdb9('0x20')](_0x4c9349,_0x3d0824[_0x39cdb9('0x32')][_0x3386c4]['type'])&&_0x3d0824[_0x39cdb9('0x32')][_0x3386c4]['parentKey']&&_0x3d0824['joins'][_0x3386c4]['foreignTable']&&_0x3d0824[_0x39cdb9('0x32')][_0x3386c4][_0x39cdb9('0x15')]&&_0x5352a7[_0x3d0824[_0x39cdb9('0x32')][_0x3386c4][_0x39cdb9('0x19')]](_0x3d0824[_0x39cdb9('0x32')][_0x3386c4]['foreignTable'],null,util['format'](_0x39cdb9('0x3a'),_0x3d0824[_0x39cdb9('0x82')],_0x3d0824[_0x39cdb9('0x32')][_0x3386c4][_0x39cdb9('0x48')],_0x3d0824['joins'][_0x3386c4][_0x39cdb9('0x18')],_0x3d0824[_0x39cdb9('0x32')][_0x3386c4][_0x39cdb9('0x15')]));}}return _0x3d0824[_0x39cdb9('0x2e')]&&(_0x3d0824['conditions']=JSON[_0x39cdb9('0x40')](_0x3d0824[_0x39cdb9('0x2e')]),_0x5352a7[_0x39cdb9('0x4')](_0x10f09e(_0x3d0824[_0x39cdb9('0x2e')]['group']))),_0x5352a7['limit'](_0x91890a),_0x5352a7['offset'](0x0),logger[_0x39cdb9('0x83')](_0x39cdb9('0x1c'),_0x5352a7[_0x39cdb9('0x81')]()),db[_0x39cdb9('0x5d')][_0x39cdb9('0x4d')](_0x5352a7[_0x39cdb9('0x81')](),{'type':db['sequelize'][_0x39cdb9('0x89')]['SELECT']});}})[_0x592c76('0x34')](respondWithResult(_0x274319,null))[_0x592c76('0x37')](handleError(_0x274319,null));};function runReport(_0x3fb596,_0x5a1256,_0xc7743e){const _0x19aeea=_0x22f0ed,_0x4ad324=_0x5a1256[_0x19aeea('0x62')],_0x419e84=0xa,_0x111a6e=[_0x19aeea('0x6c'),_0x19aeea('0x52'),_0x19aeea('0x78'),'cross_join'],_0xc7f12c={'SUM':_0x19aeea('0x2f'),'COUNT':_0x19aeea('0xc'),'COUNT\x20DISTINCT':_0x19aeea('0x3e'),'MAX':_0x19aeea('0xe'),'MIN':_0x19aeea('0x1e'),'AVG':_0x19aeea('0x5f'),'GROUP_CONCAT':_0x19aeea('0x67'),'GROUP_CONCAT\x20ASC':_0x19aeea('0x72'),'GROUP_CONCAT\x20DESC':_0x19aeea('0x2c')},_0x3262d2={'SEC_TO_TIME':_0x19aeea('0x11'),'DATE':_0x19aeea('0x54'),'HOUR':_0x19aeea('0x1a'),'ROUND':_0x19aeea('0x2d'),'UNIX_TIMESTAMP':_0x19aeea('0xf')},_0x1856fe=function(_0x440baa){const _0x50bcaf=_0x19aeea;return!_[_0x50bcaf('0x20')]([_0x50bcaf('0x69'),'IS\x20NOT\x20NULL',_0x50bcaf('0x8a'),_0x50bcaf('0x70')],_0x440baa);},_0x1eff4c=function(_0x1e16e4){const _0x4f56e1=_0x19aeea;if(!_0x1e16e4||!_0x1e16e4[_0x4f56e1('0x24')][_0x4f56e1('0x5c')])return'';let _0x266465='(';for(let _0x5ef6ad=0x0;_0x5ef6ad<_0x1e16e4['rules']['length'];_0x5ef6ad+=0x1){_0x5ef6ad>0x0&&(_0x266465+='\x20'+_0x1e16e4[_0x4f56e1('0x6e')]+'\x20'),_0x266465+=_0x1e16e4['rules'][_0x5ef6ad][_0x4f56e1('0x12')]?_0x1eff4c(_0x1e16e4['rules'][_0x5ef6ad][_0x4f56e1('0x12')]):_0x1e16e4[_0x4f56e1('0x24')][_0x5ef6ad][_0x4f56e1('0x1')]+'\x20'+_0x1e16e4[_0x4f56e1('0x24')][_0x5ef6ad][_0x4f56e1('0x17')]+(_0x1856fe(_0x1e16e4[_0x4f56e1('0x24')][_0x5ef6ad][_0x4f56e1('0x17')])?'\x20'+_0x1e16e4[_0x4f56e1('0x24')][_0x5ef6ad][_0x4f56e1('0x5e')]:'');}return _0x266465+')';};let _0x26d0e1={'where':{'id':_0x3fb596['id']}},_0x34a87a,_0x20fdf5,_0x1cb91b,_0xc0ee33,_0x2ccdac;return _0x26d0e1=_[_0x19aeea('0x7b')]({},_0x26d0e1,_0xc7743e),db['AnalyticCustomReport']['findOne'](_0x26d0e1)[_0x19aeea('0x34')](function(_0x573099){const _0x40eb95=_0x19aeea;if(_0x573099)return _0x34a87a=_0x573099,_0x573099[_0x40eb95('0x1b')]();return null;})[_0x19aeea('0x34')](function(_0x2cb4d0){const _0x38cd54=_0x19aeea;if(_0x2cb4d0){if(!_0x2cb4d0['length'])throw new db[(_0x38cd54('0x30'))]['ValidationErrorItem']('Please\x20insert\x20at\x20least\x20one\x20field',0x193);return _0x20fdf5=_0x2cb4d0,db[_0x38cd54('0x16')][_0x38cd54('0x51')]({'raw':!![]});}return null;})[_0x19aeea('0x34')](function(_0x47ec42){const _0x474e8d=_0x19aeea;if(_0x47ec42){_0x1cb91b=_['keyBy'](_0x47ec42,'id');let _0x50bf28;const _0x4df779=squel[_0x474e8d('0x44')]();_0x4df779[_0x474e8d('0x38')](_0x34a87a[_0x474e8d('0x82')]);for(let _0x6bd64e=0x0;_0x6bd64e<_0x20fdf5[_0x474e8d('0x5c')];_0x6bd64e+=0x1){_0x50bf28=_0x20fdf5[_0x6bd64e][_0x474e8d('0x46')]?_0x1cb91b[_0x20fdf5[_0x6bd64e][_0x474e8d('0x46')]][_0x474e8d('0x27')]:_0x20fdf5[_0x6bd64e][_0x474e8d('0x1')],_0x50bf28=_0x20fdf5[_0x6bd64e][_0x474e8d('0x49')]?_[_0x474e8d('0x45')](_0xc7f12c[_0x20fdf5[_0x6bd64e][_0x474e8d('0x49')]],'%s',_0x50bf28):_0x50bf28,_0x50bf28=_0x20fdf5[_0x6bd64e][_0x474e8d('0x53')]?_[_0x474e8d('0x45')](_0x3262d2[_0x20fdf5[_0x6bd64e][_0x474e8d('0x53')]],'%s',_0x50bf28):_0x50bf28,_0x20fdf5[_0x6bd64e]['groupBy']&&_0x4df779[_0x474e8d('0x12')](_0x50bf28),_0x20fdf5[_0x6bd64e][_0x474e8d('0x87')]&&_0x4df779[_0x474e8d('0x50')](_0x50bf28,_0x20fdf5[_0x6bd64e][_0x474e8d('0x87')]===_0x474e8d('0x57')?![]:!![]),_0x4df779[_0x474e8d('0x1')](_0x50bf28,_0x20fdf5[_0x6bd64e][_0x474e8d('0x25')]||_0x50bf28);}if(_0x34a87a['joins']){_0x34a87a[_0x474e8d('0x32')]=JSON[_0x474e8d('0x40')](_0x34a87a[_0x474e8d('0x32')]);for(let _0x5ea107=0x0;_0x5ea107<_0x34a87a['joins'][_0x474e8d('0x5c')];_0x5ea107+=0x1){_0x34a87a[_0x474e8d('0x32')][_0x5ea107]['type']&&_[_0x474e8d('0x20')](_0x111a6e,_0x34a87a[_0x474e8d('0x32')][_0x5ea107][_0x474e8d('0x19')])&&_0x34a87a['joins'][_0x5ea107][_0x474e8d('0x48')]&&_0x34a87a[_0x474e8d('0x32')][_0x5ea107]['foreignTable']&&_0x34a87a[_0x474e8d('0x32')][_0x5ea107][_0x474e8d('0x15')]&&_0x4df779[_0x34a87a[_0x474e8d('0x32')][_0x5ea107]['type']](_0x34a87a[_0x474e8d('0x32')][_0x5ea107][_0x474e8d('0x18')],null,util[_0x474e8d('0x53')]('%s.%s\x20=\x20%s.%s',_0x34a87a[_0x474e8d('0x82')],_0x34a87a[_0x474e8d('0x32')][_0x5ea107][_0x474e8d('0x48')],_0x34a87a[_0x474e8d('0x32')][_0x5ea107]['foreignTable'],_0x34a87a[_0x474e8d('0x32')][_0x5ea107][_0x474e8d('0x15')]));}}return _0x34a87a[_0x474e8d('0x2e')]&&(_0x34a87a[_0x474e8d('0x2e')]=JSON[_0x474e8d('0x40')](_0x34a87a[_0x474e8d('0x2e')]),_0x4df779['where'](_0x1eff4c(_0x34a87a[_0x474e8d('0x2e')]['group']))),_0x2ccdac=_0x4df779[_0x474e8d('0x2a')](),_0x4df779[_0x474e8d('0x3')](_0x419e84),_0x4df779[_0x474e8d('0x33')](0x0),logger[_0x474e8d('0x83')](_0x474e8d('0x1c'),_0x4df779[_0x474e8d('0x81')]()),db[_0x474e8d('0x5d')][_0x474e8d('0x4d')](_0x4df779[_0x474e8d('0x81')](),{'type':db['sequelize'][_0x474e8d('0x89')][_0x474e8d('0x63')]});}})['then'](function(_0x5060f4){const _0x27a590=_0x19aeea;if(!_0x5060f4['length'])throw new db[(_0x27a590('0x30'))][(_0x27a590('0x4b'))](_0x27a590('0x6'),0xcc);if(_0x5a1256[_0x27a590('0x7f')]===_0x27a590('0x42'))return null;const _0x3aff2f=_[_0x27a590('0x7b')](_0x5a1256,{'name':_0x5a1256['fullPath']||_0x5a1256['name']||_0x34a87a[_0x27a590('0x62')],'basename':_0x4ad324,'savename':util[_0x27a590('0x53')](_0x27a590('0x79'),_0x5a1256[_0x27a590('0x62')]||_0x34a87a[_0x27a590('0x62')],require(_0x27a590('0xb'))[_0x27a590('0x6a')](0x4),_0x5a1256[_0x27a590('0x7f')]||'csv'),'reportId':_0x34a87a['id'],'reportType':'custom'});return db[_0x27a590('0x3b')][_0x27a590('0x88')](_0x3aff2f,{'raw':!![]});})[_0x19aeea('0x34')](function(_0x4c9c4f){const _0xed0769=_0x19aeea;_0x34a87a[_0xed0769('0x82')]===_0xed0769('0x4e')?_0x2ccdac[_0xed0769('0x4')](_0x34a87a[_0xed0769('0x82')]+_0xed0769('0x7c'),_0x5a1256[_0xed0769('0x5b')],_0x5a1256[_0xed0769('0x29')]):_0x2ccdac[_0xed0769('0x4')](_0x34a87a['table']+'.createdAt\x20BETWEEN\x20?\x20AND\x20?',_0x5a1256[_0xed0769('0x5b')],_0x5a1256[_0xed0769('0x29')]);if(_0x4c9c4f)return logger[_0xed0769('0x2b')](_0xed0769('0x84'),_0x2ccdac[_0xed0769('0x81')]()),require('child_process')['fork'](path[_0xed0769('0x6c')](__dirname,_0xed0769('0x4c'),_0x4c9c4f[_0xed0769('0x7f')]),[_0x4c9c4f['id'],_0x2ccdac['toString'](),path[_0xed0769('0x6c')](__dirname,'../../files/reports',_0x4c9c4f[_0xed0769('0x7d')]),_0x4ad324]),_0x4c9c4f;else{const _0x5b57a6=squel[_0xed0769('0x44')]();return _0x5b57a6['from']('('+_0x2ccdac[_0xed0769('0x81')]()+')',_0xed0769('0x80')),_0x5b57a6[_0xed0769('0x1')](_0xed0769('0x1d'),_0xed0769('0x56')),_0x2ccdac['limit'](_0x5a1256[_0xed0769('0x3')]||_0x419e84),_0x2ccdac[_0xed0769('0x33')](_0x5a1256[_0xed0769('0x33')]||0x0),dbH[_0xed0769('0x5d')][_0xed0769('0x4d')](_0x5b57a6['toString'](),{'type':dbH[_0xed0769('0x5d')]['QueryTypes'][_0xed0769('0x63')]})[_0xed0769('0x34')](function(_0x5a0165){const _0x429f3f=_0xed0769;return!_0x5a0165[_0x429f3f('0x5c')]?_0xc0ee33=0x0:_0xc0ee33=_0x5a0165[0x0][_0x429f3f('0x56')]||0x0,dbH[_0x429f3f('0x5d')][_0x429f3f('0x4d')](_0x2ccdac['toString'](),{'type':dbH['sequelize'][_0x429f3f('0x89')][_0x429f3f('0x63')]});})['then'](function(_0x12cb26){return{'rows':_0x12cb26||[],'count':_0xc0ee33};});}});}exports[_0x22f0ed('0x23')]=function(_0x1bd6a2,_0x1f243f){const _0x3a6d59=_0x22f0ed;return runReport(_0x1bd6a2[_0x3a6d59('0x21')],_0x1bd6a2[_0x3a6d59('0x4d')],_0x1bd6a2[_0x3a6d59('0xa')])['then'](respondWithResult(_0x1f243f,null))[_0x3a6d59('0x37')](handleError(_0x1f243f,null));},exports[_0x22f0ed('0x28')]=runReport,exports[_0x22f0ed('0x4d')]=function(_0x446dac,_0x27b4ed){const _0x22ed6e=_0x22f0ed,_0x28f46a=0xa,_0x154839=[_0x22ed6e('0x6c'),'left_join','right_join',_0x22ed6e('0x61')],_0xce2350={'SUM':_0x22ed6e('0x2f'),'COUNT':_0x22ed6e('0xc'),'COUNT\x20DISTINCT':_0x22ed6e('0x3e'),'MAX':_0x22ed6e('0xe'),'MIN':_0x22ed6e('0x1e'),'AVG':_0x22ed6e('0x5f'),'GROUP_CONCAT':_0x22ed6e('0x67'),'GROUP_CONCAT\x20ASC':_0x22ed6e('0x72'),'GROUP_CONCAT\x20DESC':_0x22ed6e('0x2c')},_0x244c8a={'SEC_TO_TIME':'SEC_TO_TIME(%s)','DATE':_0x22ed6e('0x54'),'HOUR':_0x22ed6e('0x1a'),'ROUND':_0x22ed6e('0x2d'),'UNIX_TIMESTAMP':_0x22ed6e('0xf')},_0x4e352b=function(_0xc92be5){const _0x5924ff=_0x22ed6e;return!_[_0x5924ff('0x20')](['IS\x20NULL',_0x5924ff('0x3c'),'IS\x20EMPTY','IS\x20NOT\x20EMPTY'],_0xc92be5);},_0x28c7ab=function(_0x307dca){const _0xf6f8bb=_0x22ed6e;if(!_0x307dca||!_0x307dca[_0xf6f8bb('0x24')]['length'])return'';let _0x5870bb='(';for(let _0x4679be=0x0;_0x4679be<_0x307dca['rules']['length'];_0x4679be+=0x1){_0x4679be>0x0&&(_0x5870bb+='\x20'+_0x307dca[_0xf6f8bb('0x6e')]+'\x20'),_0x5870bb+=_0x307dca[_0xf6f8bb('0x24')][_0x4679be][_0xf6f8bb('0x12')]?_0x28c7ab(_0x307dca['rules'][_0x4679be][_0xf6f8bb('0x12')]):_0x307dca['rules'][_0x4679be][_0xf6f8bb('0x1')]+'\x20'+_0x307dca[_0xf6f8bb('0x24')][_0x4679be][_0xf6f8bb('0x17')]+(_0x4e352b(_0x307dca[_0xf6f8bb('0x24')][_0x4679be][_0xf6f8bb('0x17')])?'\x20'+_0x307dca[_0xf6f8bb('0x24')][_0x4679be]['value']:'');}return _0x5870bb+')';};let _0x2603e5={'where':{'id':_0x446dac[_0x22ed6e('0x21')]['id']}},_0x199ad5,_0x3496cd,_0x3f916f,_0x54942f;return _0x2603e5=_['merge']({},_0x2603e5,_0x446dac[_0x22ed6e('0xa')]),db[_0x22ed6e('0x65')]['findOne'](_0x2603e5)[_0x22ed6e('0x34')](function(_0x4d5566){const _0x401aa4=_0x22ed6e;if(_0x4d5566)return _0x199ad5=_0x4d5566,_0x4d5566[_0x401aa4('0x1b')]();return null;})[_0x22ed6e('0x34')](function(_0x325f36){const _0x4c73e5=_0x22ed6e;if(_0x325f36){if(!_0x325f36['length'])throw new db[(_0x4c73e5('0x30'))][(_0x4c73e5('0x4b'))](_0x4c73e5('0x5a'),0x193);return _0x3496cd=_0x325f36,db[_0x4c73e5('0x16')][_0x4c73e5('0x51')]({'raw':!![]});}return null;})[_0x22ed6e('0x34')](function(_0x56d0d5){const _0x464cfc=_0x22ed6e;if(_0x56d0d5){_0x3f916f=_['keyBy'](_0x56d0d5,'id');let _0x27afa3;const _0x3ce88e=squel['select']();_0x3ce88e['from'](_0x199ad5['table']);for(let _0x206078=0x0;_0x206078<_0x3496cd[_0x464cfc('0x5c')];_0x206078+=0x1){_0x27afa3=_0x3496cd[_0x206078]['MetricId']?_0x3f916f[_0x3496cd[_0x206078][_0x464cfc('0x46')]][_0x464cfc('0x27')]:_0x3496cd[_0x206078]['field'],_0x27afa3=_0x3496cd[_0x206078][_0x464cfc('0x49')]?_[_0x464cfc('0x45')](_0xce2350[_0x3496cd[_0x206078][_0x464cfc('0x49')]],'%s',_0x27afa3):_0x27afa3,_0x27afa3=_0x3496cd[_0x206078]['format']?_['replace'](_0x244c8a[_0x3496cd[_0x206078][_0x464cfc('0x53')]],'%s',_0x27afa3):_0x27afa3,_0x3496cd[_0x206078]['groupBy']&&_0x3ce88e[_0x464cfc('0x12')](_0x27afa3),_0x3496cd[_0x206078][_0x464cfc('0x87')]&&_0x3ce88e[_0x464cfc('0x50')](_0x27afa3,_0x3496cd[_0x206078][_0x464cfc('0x87')]===_0x464cfc('0x57')?![]:!![]),_0x3ce88e[_0x464cfc('0x1')](_0x27afa3,_0x3496cd[_0x206078][_0x464cfc('0x25')]||_0x27afa3);}if(_0x199ad5[_0x464cfc('0x32')]){_0x199ad5[_0x464cfc('0x32')]=JSON['parse'](_0x199ad5[_0x464cfc('0x32')]);for(let _0x13d8ec=0x0;_0x13d8ec<_0x199ad5['joins'][_0x464cfc('0x5c')];_0x13d8ec+=0x1){_0x199ad5[_0x464cfc('0x32')][_0x13d8ec][_0x464cfc('0x19')]&&_[_0x464cfc('0x20')](_0x154839,_0x199ad5[_0x464cfc('0x32')][_0x13d8ec][_0x464cfc('0x19')])&&_0x199ad5[_0x464cfc('0x32')][_0x13d8ec][_0x464cfc('0x48')]&&_0x199ad5[_0x464cfc('0x32')][_0x13d8ec][_0x464cfc('0x18')]&&_0x199ad5[_0x464cfc('0x32')][_0x13d8ec]['foreignKey']&&_0x3ce88e[_0x199ad5[_0x464cfc('0x32')][_0x13d8ec][_0x464cfc('0x19')]](_0x199ad5[_0x464cfc('0x32')][_0x13d8ec][_0x464cfc('0x18')],null,util[_0x464cfc('0x53')](_0x464cfc('0x3a'),_0x199ad5[_0x464cfc('0x82')],_0x199ad5[_0x464cfc('0x32')][_0x13d8ec][_0x464cfc('0x48')],_0x199ad5['joins'][_0x13d8ec][_0x464cfc('0x18')],_0x199ad5[_0x464cfc('0x32')][_0x13d8ec][_0x464cfc('0x15')]));}}return _0x199ad5['conditions']&&(_0x199ad5[_0x464cfc('0x2e')]=JSON['parse'](_0x199ad5[_0x464cfc('0x2e')]),_0x3ce88e[_0x464cfc('0x4')](_0x28c7ab(_0x199ad5[_0x464cfc('0x2e')]['group']))),_0x54942f=_0x3ce88e[_0x464cfc('0x2a')](),_0x3ce88e['limit'](_0x28f46a),_0x3ce88e[_0x464cfc('0x33')](0x0),logger[_0x464cfc('0x83')]('Limited\x20Query:',_0x3ce88e[_0x464cfc('0x81')]()),db['sequelize'][_0x464cfc('0x4d')](_0x3ce88e[_0x464cfc('0x81')](),{'type':db[_0x464cfc('0x5d')]['QueryTypes']['SELECT']});}})[_0x22ed6e('0x34')](function(){const _0x535a3e=_0x22ed6e;return{'sql':_0x54942f[_0x535a3e('0x81')]()};})[_0x22ed6e('0x34')](respondWithResult(_0x27b4ed,null))[_0x22ed6e('0x37')](handleError(_0x27b4ed,null));}; \ No newline at end of file +const a5_0x8d64=['attributes','sequelize','table','../../mysqldb','pick','where','group','update','web','No\x20available\x20data','startDate','countTable','info','join','json','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','SELECT','filter','catch','alias','value','status','randomstring','groupBy','fork','include','count','clone','condition','AnalyticMetric','like','rows','Unable\x20to\x20retrieve\x20the\x20current\x20user','toString','COUNT(%s)','options','operator','parentKey','foreignKey','query','findAll','create','merge','sendStatus','SEC_TO_TIME(%s)','../../components/export/','../../components/parsers/qs','error','user','custom','IS\x20NOT\x20EMPTY','includes','%s.%s\x20=\x20%s.%s','preview','intersection','get','QueryTypes','body','path','offset','autoAssociation','HOUR(%s)','fields','AVG(%s)','IS\x20EMPTY','keys','model','ROUND(%s)','GROUP_CONCAT(%s)','MetricId','MIN(%s)','.createdAt\x20BETWEEN\x20?\x20AND\x20?','ValidationErrorItem','UserProfileResource','keyBy','left_join','map','select','destroy','Limited\x20Query:','replace','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)','output','fieldName','AnalyticCustomReport','savename','CustomReports','orderBy','getFields','runReport','nolimit','COUNT(*)','UserProfileSection','Run\x20Query:','endDate','conditions','limit','child_process','name','show','generate','Please\x20insert\x20at\x20least\x20one\x20field','right_join','params','DATE(%s)','rawAttributes','set','from','Reports','function','AnalyticExtractedReport','length','metric','index','filters','rules','debug','sort','includeAll','parse','api','field','role','DESC','UNIX_TIMESTAMP(%s)','foreignTable','csv','IS\x20NULL','userProfileId','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','IS\x20NOT\x20NULL','../../files/reports','util','fullPath','SUM(%s)','COUNT(DISTINCT\x20%s)','order','Sequelize','cross_join','type','findOne','format','MAX(%s)','then','joins'];(function(_0x42d787,_0x8d6490){const _0x70a0f6=function(_0x580f8c){while(--_0x580f8c){_0x42d787['push'](_0x42d787['shift']());}};_0x70a0f6(++_0x8d6490);}(a5_0x8d64,0x8e));const a5_0x70a0=function(_0x42d787,_0x8d6490){_0x42d787=_0x42d787-0x0;let _0x70a0f6=a5_0x8d64[_0x42d787];return _0x70a0f6;};const _0x1f691b=a5_0x70a0;'use strict';const util=require(_0x1f691b('0x87')),path=require(_0x1f691b('0x3d')),_=require('lodash'),squel=require('squel'),qs=require(_0x1f691b('0x31')),logger=require('../../config/logger')(_0x1f691b('0x7b')),db=require(_0x1f691b('0x6'))['db'],dbH=require(_0x1f691b('0x6'))['dbH'],{Op}=require(_0x1f691b('0x4'));function respondWithResult(_0x580f8c,_0x288a0a){return _0x288a0a=_0x288a0a||0xc8,function(_0x216ec4){const _0x44f3a7=a5_0x70a0;if(_0x216ec4)return _0x580f8c[_0x44f3a7('0x18')](_0x288a0a)[_0x44f3a7('0x11')](_0x216ec4);};}function respondWithFilteredResult(_0x1a25ba,_0x5da178){return function(_0x33b942){const _0x5ecc9a=a5_0x70a0;if(_0x33b942){const _0x13a39f=_0x33b942[_0x5ecc9a('0x1d')],_0x3c5b63=_0x5da178[_0x5ecc9a('0x3e')];let _0x1ed0ca=_0x5da178[_0x5ecc9a('0x3e')]+_0x5da178['limit'],_0x179e45;return _0x1ed0ca>=_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 diff --git a/server/api/analyticCustomReport/analyticCustomReport.model.js b/server/api/analyticCustomReport/analyticCustomReport.model.js index ff80017..8c08b41 100644 --- a/server/api/analyticCustomReport/analyticCustomReport.model.js +++ b/server/api/analyticCustomReport/analyticCustomReport.model.js @@ -1 +1 @@ -const a6_0x105a=['define','analytics_custom_reports','./analyticCustomReport.attributes','exports'];(function(_0x3fd7e0,_0x105a0f){const _0x541742=function(_0x5d13c6){while(--_0x5d13c6){_0x3fd7e0['push'](_0x3fd7e0['shift']());}};_0x541742(++_0x105a0f);}(a6_0x105a,0xa3));const a6_0x5417=function(_0x3fd7e0,_0x105a0f){_0x3fd7e0=_0x3fd7e0-0x0;let _0x541742=a6_0x105a[_0x3fd7e0];return _0x541742;};const _0x1f816f=a6_0x5417;'use strict';const attributes=require(_0x1f816f('0x3'));module[_0x1f816f('0x0')]=function(_0x5d13c6){const _0x379699=_0x1f816f,_0x4d8914=_0x5d13c6[_0x379699('0x1')]('AnalyticCustomReport',attributes,{'tableName':_0x379699('0x2'),'paranoid':!![],'indexes':[],'timestamps':!![]});return _0x4d8914;}; \ No newline at end of file +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 diff --git a/server/api/analyticCustomReport/index.js b/server/api/analyticCustomReport/index.js index b6454e8..a847c15 100644 --- a/server/api/analyticCustomReport/index.js +++ b/server/api/analyticCustomReport/index.js @@ -1 +1 @@ -const a7_0x5486=['put','isAuthenticated','query','/:id','/:id/query','create','show','update','get','express','/:id/preview','post','delete','exports','/:id/run','./analyticCustomReport.controller','index'];(function(_0x7aa6cc,_0x5486c5){const _0x464355=function(_0x1408ed){while(--_0x1408ed){_0x7aa6cc['push'](_0x7aa6cc['shift']());}};_0x464355(++_0x5486c5);}(a7_0x5486,0x141));const a7_0x4643=function(_0x7aa6cc,_0x5486c5){_0x7aa6cc=_0x7aa6cc-0x0;let _0x464355=a7_0x5486[_0x7aa6cc];return _0x464355;};const _0xed4d6e=a7_0x4643;'use strict';const express=require(_0xed4d6e('0xb')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0xed4d6e('0x0'));router['get']('/',auth[_0xed4d6e('0x3')](),controller[_0xed4d6e('0x1')]),router[_0xed4d6e('0xa')](_0xed4d6e('0x5'),auth[_0xed4d6e('0x3')](),controller[_0xed4d6e('0x8')]),router[_0xed4d6e('0xa')](_0xed4d6e('0xc'),auth['isAuthenticated'](),controller['preview']),router['get'](_0xed4d6e('0x10'),auth[_0xed4d6e('0x3')](),controller['run']),router['get'](_0xed4d6e('0x6'),auth[_0xed4d6e('0x3')](),controller[_0xed4d6e('0x4')]),router[_0xed4d6e('0xd')]('/',auth[_0xed4d6e('0x3')](),controller[_0xed4d6e('0x7')]),router[_0xed4d6e('0x2')](_0xed4d6e('0x5'),auth[_0xed4d6e('0x3')](),controller[_0xed4d6e('0x9')]),router[_0xed4d6e('0xe')](_0xed4d6e('0x5'),auth['isAuthenticated'](),controller['destroy']),module[_0xed4d6e('0xf')]=router; \ No newline at end of file +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 diff --git a/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js b/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js index 8225b43..1e1f4a8 100644 --- a/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js +++ b/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js @@ -1 +1 @@ -const a8_0x3291=['exports','STRING','sequelize','TEXT'];(function(_0x13acd7,_0x329180){const _0x225a19=function(_0x414451){while(--_0x414451){_0x13acd7['push'](_0x13acd7['shift']());}};_0x225a19(++_0x329180);}(a8_0x3291,0x1da));const a8_0x225a=function(_0x13acd7,_0x329180){_0x13acd7=_0x13acd7-0x0;let _0x225a19=a8_0x3291[_0x13acd7];return _0x225a19;};const _0x4845e8=a8_0x225a;'use strict';const Sequelize=require(_0x4845e8('0x0'));module[_0x4845e8('0x2')]={'name':{'type':Sequelize[_0x4845e8('0x3')],'allowNull':![]},'description':{'type':Sequelize['STRING']},'parent':{'type':Sequelize['STRING']},'table':{'type':Sequelize[_0x4845e8('0x3')]},'conditions':{'type':Sequelize[_0x4845e8('0x1')]},'joins':{'type':Sequelize[_0x4845e8('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/analyticDefaultReport/analyticDefaultReport.controller.js b/server/api/analyticDefaultReport/analyticDefaultReport.controller.js index 449c570..f09a65e 100644 --- a/server/api/analyticDefaultReport/analyticDefaultReport.controller.js +++ b/server/api/analyticDefaultReport/analyticDefaultReport.controller.js @@ -1 +1 @@ -const a9_0x1fb6=['json','IS\x20EMPTY','attributes','GROUP_CONCAT(%s)','Unable\x20to\x20retrieve\x20the\x20current\x20user','AnalyticExtractedReport','length','end','DESC','COUNT(%s)','role','run','nolimit','../../mysqldb','table','join','type','operator','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)','from','query','format','condition','parse','sequelize','where','.calldate\x20BETWEEN\x20?\x20AND\x20?','HOUR(%s)','endDate','count','destroy','preview','userProfileId','order','rows','SUM(%s)','info','parentKey','IS\x20NOT\x20EMPTY','joins','limit','like','util','QueryTypes','stack','keys','AnalyticMetric','groupBy','AnalyticDefaultReport','%s.%s\x20=\x20%s.%s','SELECT','IS\x20NULL','undefined','foreignKey','getFields','UserProfileResource','merge','generate','field','UserProfileSection','send','conditions','alias','autoAssociation','fullPath','map','VIRTUAL','SEC_TO_TIME(%s)','MAX(%s)','left_join','findAll','key','filter','Please\x20insert\x20at\x20least\x20one\x20field','countTable','fork','status','Reports','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','MetricId','rules','sort','create','No\x20available\x20data','UNIX_TIMESTAMP(%s)','runReport','ValidationErrorItem','model','lodash','DefaultReports','value','sendStatus','options','keyBy','Limited\x20Query:','show','replace','startDate','body','Run\x20Query:','includes','error','name','../../files/reports','IS\x20NOT\x20NULL','includeAll','function','cross_join','offset','api','fields','../../components/parsers/qs','then','orderBy','MIN(%s)','index','foreignTable','dbH','select','metric','catch','include','toString','web','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','COUNT(DISTINCT\x20%s)','user','Content-Range','../../components/export/','params','intersection','fieldName','cdr','AVG(%s)','randomstring','DATE(%s)','debug','clone','findOne','right_join','ROUND(%s)','rawAttributes','savename','group','filters','set','path','get','Sequelize'];(function(_0x362484,_0x1fb6c5){const _0x2e7593=function(_0x131751){while(--_0x131751){_0x362484['push'](_0x362484['shift']());}};_0x2e7593(++_0x1fb6c5);}(a9_0x1fb6,0x17c));const a9_0x2e75=function(_0x362484,_0x1fb6c5){_0x362484=_0x362484-0x0;let _0x2e7593=a9_0x1fb6[_0x362484];return _0x2e7593;};const _0x1e95c1=a9_0x2e75;'use strict';const util=require(_0x1e95c1('0x6d')),path=require(_0x1e95c1('0x40')),_=require(_0x1e95c1('0x6')),squel=require('squel'),qs=require(_0x1e95c1('0x1d')),logger=require('../../config/logger')(_0x1e95c1('0x1b')),db=require(_0x1e95c1('0x50'))['db'],dbH=require(_0x1e95c1('0x50'))[_0x1e95c1('0x23')],{Op}=require('sequelize');function respondWithResult(_0x131751,_0x3a20ea){return _0x3a20ea=_0x3a20ea||0xc8,function(_0x646547){const _0x32569b=a9_0x2e75;if(_0x646547)return _0x131751['status'](_0x3a20ea)[_0x32569b('0x43')](_0x646547);};}function respondWithFilteredResult(_0x8f7493,_0x3fc1b7){return function(_0x3fe78c){const _0x373788=a9_0x2e75;if(_0x3fe78c){const _0x6d3b69=_0x3fe78c[_0x373788('0x60')],_0x25a233=_0x3fc1b7[_0x373788('0x1a')];let _0x55003e=_0x3fc1b7[_0x373788('0x1a')]+_0x3fc1b7['limit'],_0x4fc719;return _0x55003e>=_0x6d3b69?(_0x55003e=_0x6d3b69,_0x4fc719=0xc8):_0x4fc719=0xce,_0x8f7493[_0x373788('0x8f')](_0x4fc719),_0x8f7493[_0x373788('0x3f')](_0x373788('0x2d'),_0x25a233+'-'+_0x55003e+'/'+_0x6d3b69)[_0x373788('0x43')](_0x3fe78c);}return null;};}function saveUpdates(_0x223513){return function(_0x274296){const _0x14475d=a9_0x2e75;if(_0x274296)return _0x274296['update'](_0x223513)[_0x14475d('0x1e')](function(_0x7f98a8){return _0x7f98a8;});return null;};}function removeEntity(_0x2875b7){return function(_0x424bc7){const _0x1b5fc4=a9_0x2e75;if(_0x424bc7)return _0x424bc7[_0x1b5fc4('0x61')]()['then'](function(){const _0x5418b1=_0x1b5fc4,_0x16e9a8=_0x424bc7['get']({'plain':!![]}),_0x383467=_0x5418b1('0x7');return db[_0x5418b1('0x7a')]['destroy']({'where':{'type':_0x383467,'resourceId':_0x16e9a8['id']}})['then'](function(){return _0x424bc7;});})['then'](function(){const _0x3d12df=_0x1b5fc4;_0x2875b7[_0x3d12df('0x8f')](0xcc)[_0x3d12df('0x4a')]();});};}function handleEntityNotFound(_0x1be796){return function(_0x23b5d8){const _0x5d2ced=a9_0x2e75;return!_0x23b5d8&&_0x1be796[_0x5d2ced('0x9')](0x194),_0x23b5d8;};}function handleError(_0x5b1cef,_0x5547bf){return _0x5547bf=_0x5547bf||0x1f4,function(_0x1bd7ad){const _0x464063=a9_0x2e75;logger['error'](_0x1bd7ad[_0x464063('0x6f')]),_0x1bd7ad['name']&&delete _0x1bd7ad[_0x464063('0x14')],_0x5b1cef[_0x464063('0x8f')](_0x5547bf)[_0x464063('0x7f')](_0x1bd7ad);};}exports[_0x1e95c1('0x21')]=function(_0x12c157,_0x1a01b7){const _0x1f4a05=_0x1e95c1;let _0x152b93={};const _0x4c1ec9={},_0x48a65a={'count':0x0,'rows':[]},_0x27f787=_['map'](db[_0x1f4a05('0x73')][_0x1f4a05('0x3b')],function(_0x18bc5d){const _0x249231=_0x1f4a05;return{'name':_0x18bc5d[_0x249231('0x31')],'type':_0x18bc5d[_0x249231('0x53')][_0x249231('0x8a')]};});_0x4c1ec9['model']=_[_0x1f4a05('0x84')](_0x27f787,_0x1f4a05('0x14')),_0x4c1ec9['query']=_[_0x1f4a05('0x70')](_0x12c157['query']),_0x4c1ec9[_0x1f4a05('0x3e')]=_[_0x1f4a05('0x30')](_0x4c1ec9[_0x1f4a05('0x5')],_0x4c1ec9[_0x1f4a05('0x57')]),_0x152b93[_0x1f4a05('0x45')]=_[_0x1f4a05('0x30')](_0x4c1ec9[_0x1f4a05('0x5')],qs[_0x1f4a05('0x1c')](_0x12c157['query'][_0x1f4a05('0x1c')])),_0x152b93['attributes']=_0x152b93[_0x1f4a05('0x45')][_0x1f4a05('0x49')]?_0x152b93[_0x1f4a05('0x45')]:_0x4c1ec9['model'];typeof _0x12c157[_0x1f4a05('0x57')][_0x1f4a05('0x4f')]===_0x1f4a05('0x77')&&(_0x152b93[_0x1f4a05('0x6b')]=qs[_0x1f4a05('0x6b')](_0x12c157['query'][_0x1f4a05('0x6b')]),_0x152b93[_0x1f4a05('0x1a')]=qs['offset'](_0x12c157[_0x1f4a05('0x57')][_0x1f4a05('0x1a')]));_0x152b93['order']=qs[_0x1f4a05('0x94')](_0x12c157[_0x1f4a05('0x57')][_0x1f4a05('0x94')]),_0x152b93[_0x1f4a05('0x5c')]=qs[_0x1f4a05('0x3e')](_['pick'](_0x12c157[_0x1f4a05('0x57')],_0x4c1ec9[_0x1f4a05('0x3e')]),_0x27f787);_0x12c157[_0x1f4a05('0x57')]['filter']&&(_0x152b93[_0x1f4a05('0x5c')]=_['merge'](_0x152b93[_0x1f4a05('0x5c')],{[Op['or']]:_[_0x1f4a05('0x84')](_0x27f787,function(_0x264b14){const _0x73eaef=_0x1f4a05;if(_0x264b14[_0x73eaef('0x53')]!==_0x73eaef('0x85')){const _0x247159={};return _0x247159[_0x264b14[_0x73eaef('0x14')]]={[Op[_0x73eaef('0x6c')]]:'%'+_0x12c157[_0x73eaef('0x57')][_0x73eaef('0x8b')]+'%'},_0x247159;}})}));_0x152b93=_['merge']({},_0x152b93,_0x12c157[_0x1f4a05('0xa')]);const _0x1a643a={'where':_0x152b93['where']};return db[_0x1f4a05('0x73')][_0x1f4a05('0x60')](_0x1a643a)[_0x1f4a05('0x1e')](function(_0x573c51){const _0x3f7817=_0x1f4a05;return _0x48a65a['count']=_0x573c51,_0x12c157[_0x3f7817('0x57')][_0x3f7817('0x17')]&&(_0x152b93[_0x3f7817('0x27')]=[{'all':!![]}]),db[_0x3f7817('0x73')]['findAll'](_0x152b93);})[_0x1f4a05('0x1e')](function(_0x7e1e2f){const _0x4c7a4e=_0x1f4a05;return _0x48a65a[_0x4c7a4e('0x65')]=_0x7e1e2f,_0x48a65a;})[_0x1f4a05('0x1e')](respondWithFilteredResult(_0x1a01b7,_0x152b93))['catch'](handleError(_0x1a01b7,null));},exports[_0x1e95c1('0xd')]=function(_0x4a8b47,_0x3dce21){const _0x5c1b1f=_0x1e95c1;let _0x3936f8={'raw':!![],'where':{'id':_0x4a8b47[_0x5c1b1f('0x2f')]['id']}};const _0x8b7620={};return _0x8b7620[_0x5c1b1f('0x5')]=_['keys'](db[_0x5c1b1f('0x73')]['rawAttributes']),_0x8b7620[_0x5c1b1f('0x57')]=_[_0x5c1b1f('0x70')](_0x4a8b47[_0x5c1b1f('0x57')]),_0x8b7620[_0x5c1b1f('0x3e')]=_[_0x5c1b1f('0x30')](_0x8b7620[_0x5c1b1f('0x5')],_0x8b7620[_0x5c1b1f('0x57')]),_0x3936f8['attributes']=_[_0x5c1b1f('0x30')](_0x8b7620['model'],qs[_0x5c1b1f('0x1c')](_0x4a8b47['query'][_0x5c1b1f('0x1c')])),_0x3936f8[_0x5c1b1f('0x45')]=_0x3936f8['attributes'][_0x5c1b1f('0x49')]?_0x3936f8['attributes']:_0x8b7620[_0x5c1b1f('0x5')],_0x4a8b47[_0x5c1b1f('0x57')][_0x5c1b1f('0x17')]&&(_0x3936f8['include']=[{'all':!![]}]),_0x3936f8=_[_0x5c1b1f('0x7b')]({},_0x3936f8,_0x4a8b47['options']),db[_0x5c1b1f('0x73')][_0x5c1b1f('0x38')](_0x3936f8)[_0x5c1b1f('0x1e')](handleEntityNotFound(_0x3dce21,null))[_0x5c1b1f('0x1e')](respondWithResult(_0x3dce21,null))[_0x5c1b1f('0x26')](handleError(_0x3dce21,null));},exports[_0x1e95c1('0x0')]=function(_0x77efd4,_0x10a84c){const _0x243bea=_0x1e95c1;return db[_0x243bea('0x73')]['create'](_0x77efd4[_0x243bea('0x10')],{})['then'](function(_0x4f7442){const _0x1f07e8=_0x243bea,_0x16f7bb=_0x77efd4[_0x1f07e8('0x2c')]['get']({'plain':!![]});if(!_0x16f7bb)throw new Error(_0x1f07e8('0x47'));if(_0x16f7bb[_0x1f07e8('0x4d')]===_0x1f07e8('0x2c')){const _0x4f136a=_0x4f7442[_0x1f07e8('0x41')]({'plain':!![]}),_0x4280c9=_0x1f07e8('0x90');return db[_0x1f07e8('0x7e')][_0x1f07e8('0x38')]({'where':{'name':_0x4280c9,'userProfileId':_0x16f7bb[_0x1f07e8('0x63')]},'raw':!![]})[_0x1f07e8('0x1e')](function(_0x20c136){const _0x5dc68e=_0x1f07e8;return _0x20c136&&_0x20c136[_0x5dc68e('0x82')]===0x0?db[_0x5dc68e('0x7a')]['create']({'name':_0x4f136a[_0x5dc68e('0x14')],'resourceId':_0x4f136a['id'],'type':'DefaultReports','sectionId':_0x20c136['id']},{})['then'](function(){return _0x4f7442;}):_0x4f7442;})['catch'](function(_0x11c227){const _0x111261=_0x1f07e8;logger[_0x111261('0x13')](_0x111261('0x2a'),_0x11c227);throw _0x11c227;});}return _0x4f7442;})[_0x243bea('0x1e')](respondWithResult(_0x10a84c,0xc9))[_0x243bea('0x26')](handleError(_0x10a84c,null));},exports['update']=function(_0x4542d5,_0xcd168c){const _0x215006=_0x1e95c1;return _0x4542d5[_0x215006('0x10')]['id']&&delete _0x4542d5[_0x215006('0x10')]['id'],db[_0x215006('0x73')][_0x215006('0x38')]({'where':{'id':_0x4542d5['params']['id']}})[_0x215006('0x1e')](handleEntityNotFound(_0xcd168c,null))['then'](saveUpdates(_0x4542d5[_0x215006('0x10')],null))[_0x215006('0x1e')](respondWithResult(_0xcd168c,null))['catch'](handleError(_0xcd168c,null));},exports['destroy']=function(_0xaed26c,_0x2e2582){const _0x3063e4=_0x1e95c1;return db[_0x3063e4('0x73')]['findOne']({'where':{'id':_0xaed26c[_0x3063e4('0x2f')]['id']}})[_0x3063e4('0x1e')](handleEntityNotFound(_0x2e2582,null))[_0x3063e4('0x1e')](removeEntity(_0x2e2582,null))[_0x3063e4('0x26')](handleError(_0x2e2582,null));},exports[_0x1e95c1('0x62')]=function(_0xeda480,_0x3bd95f){const _0x3a345d=_0x1e95c1,_0x5800b9=0xa,_0x23e9c2=[_0x3a345d('0x52'),_0x3a345d('0x88'),_0x3a345d('0x39'),_0x3a345d('0x19')],_0x5386d0={'SUM':_0x3a345d('0x66'),'COUNT':_0x3a345d('0x4c'),'COUNT\x20DISTINCT':_0x3a345d('0x2b'),'MAX':_0x3a345d('0x87'),'MIN':_0x3a345d('0x20'),'AVG':_0x3a345d('0x33'),'GROUP_CONCAT':'GROUP_CONCAT(%s)','GROUP_CONCAT\x20ASC':_0x3a345d('0x91'),'GROUP_CONCAT\x20DESC':_0x3a345d('0x55')},_0x27d8f9={'SEC_TO_TIME':_0x3a345d('0x86'),'DATE':_0x3a345d('0x35'),'HOUR':_0x3a345d('0x5e'),'ROUND':_0x3a345d('0x3a'),'UNIX_TIMESTAMP':_0x3a345d('0x2')},_0x1bf398=function(_0x5e08b9){const _0x40d31c=_0x3a345d;return!_['includes'](['IS\x20NULL',_0x40d31c('0x16'),_0x40d31c('0x44'),_0x40d31c('0x69')],_0x5e08b9);},_0x26dee6=function(_0x5a9049){const _0x103427=_0x3a345d;if(!_0x5a9049||!_0x5a9049['rules'][_0x103427('0x49')])return'';let _0x41e952='(';for(let _0x151753=0x0;_0x151753<_0x5a9049[_0x103427('0x93')]['length'];_0x151753+=0x1){_0x151753>0x0&&(_0x41e952+='\x20'+_0x5a9049[_0x103427('0x54')]+'\x20'),_0x41e952+=_0x5a9049[_0x103427('0x93')][_0x151753][_0x103427('0x3d')]?_0x26dee6(_0x5a9049[_0x103427('0x93')][_0x151753][_0x103427('0x3d')]):_0x5a9049[_0x103427('0x93')][_0x151753][_0x103427('0x7d')]+'\x20'+_0x5a9049[_0x103427('0x93')][_0x151753][_0x103427('0x59')]+(_0x1bf398(_0x5a9049[_0x103427('0x93')][_0x151753][_0x103427('0x59')])?'\x20'+_0x5a9049[_0x103427('0x93')][_0x151753][_0x103427('0x8')]:'');}return _0x41e952+')';};let _0x224d53={'where':{'id':_0xeda480[_0x3a345d('0x2f')]['id']}},_0x56c070,_0x24cb34,_0x20e822;return _0x224d53=_[_0x3a345d('0x7b')]({},_0x224d53,_0xeda480[_0x3a345d('0xa')]),db[_0x3a345d('0x73')][_0x3a345d('0x38')](_0x224d53)[_0x3a345d('0x1e')](function(_0x5e579b){const _0x36bf41=_0x3a345d;if(_0x5e579b)return _0x56c070=_0x5e579b,_0x5e579b[_0x36bf41('0x79')]();return null;})['then'](function(_0xfb16e){const _0x22ba41=_0x3a345d;if(_0xfb16e){if(!_0xfb16e['length'])throw new db['Sequelize'][(_0x22ba41('0x4'))](_0x22ba41('0x8c'),0x193);return _0x24cb34=_0xfb16e,db[_0x22ba41('0x71')][_0x22ba41('0x89')]({'raw':!![]});}return null;})['then'](function(_0x37e3a5){const _0x894f37=_0x3a345d;if(_0x37e3a5){_0x20e822=_[_0x894f37('0xb')](_0x37e3a5,'id');let _0x8815bb;const _0x3e93cb=squel[_0x894f37('0x24')]();_0x3e93cb['from'](_0x56c070[_0x894f37('0x51')]);for(let _0x53346f=0x0;_0x53346f<_0x24cb34['length'];_0x53346f+=0x1){_0x8815bb=_0x24cb34[_0x53346f]['MetricId']?_0x20e822[_0x24cb34[_0x53346f]['MetricId']][_0x894f37('0x25')]:_0x24cb34[_0x53346f]['field'],_0x8815bb=_0x24cb34[_0x53346f][_0x894f37('0x18')]?_[_0x894f37('0xe')](_0x5386d0[_0x24cb34[_0x53346f]['function']],'%s',_0x8815bb):_0x8815bb,_0x8815bb=_0x24cb34[_0x53346f]['format']?_[_0x894f37('0xe')](_0x27d8f9[_0x24cb34[_0x53346f][_0x894f37('0x58')]],'%s',_0x8815bb):_0x8815bb,_0x24cb34[_0x53346f]['groupBy']&&_0x3e93cb[_0x894f37('0x3d')](_0x8815bb),_0x24cb34[_0x53346f][_0x894f37('0x1f')]&&_0x3e93cb[_0x894f37('0x64')](_0x8815bb,_0x24cb34[_0x53346f]['orderBy']===_0x894f37('0x4b')?![]:!![]),_0x3e93cb[_0x894f37('0x7d')](_0x8815bb,_0x24cb34[_0x53346f][_0x894f37('0x81')]||_0x8815bb);}if(_0x56c070[_0x894f37('0x6a')]){_0x56c070['joins']=JSON['parse'](_0x56c070[_0x894f37('0x6a')]);for(let _0xd9edc=0x0;_0xd9edc<_0x56c070[_0x894f37('0x6a')][_0x894f37('0x49')];_0xd9edc+=0x1){_0x56c070[_0x894f37('0x6a')][_0xd9edc][_0x894f37('0x53')]&&_[_0x894f37('0x12')](_0x23e9c2,_0x56c070[_0x894f37('0x6a')][_0xd9edc][_0x894f37('0x53')])&&_0x56c070[_0x894f37('0x6a')][_0xd9edc]['parentKey']&&_0x56c070[_0x894f37('0x6a')][_0xd9edc]['foreignTable']&&_0x56c070[_0x894f37('0x6a')][_0xd9edc][_0x894f37('0x78')]&&_0x3e93cb[_0x56c070[_0x894f37('0x6a')][_0xd9edc]['type']](_0x56c070[_0x894f37('0x6a')][_0xd9edc][_0x894f37('0x22')],null,util[_0x894f37('0x58')](_0x894f37('0x74'),_0x56c070[_0x894f37('0x51')],_0x56c070['joins'][_0xd9edc][_0x894f37('0x68')],_0x56c070['joins'][_0xd9edc][_0x894f37('0x22')],_0x56c070[_0x894f37('0x6a')][_0xd9edc]['foreignKey']));}}return _0x56c070[_0x894f37('0x80')]&&(_0x56c070[_0x894f37('0x80')]=JSON[_0x894f37('0x5a')](_0x56c070[_0x894f37('0x80')]),_0x3e93cb[_0x894f37('0x5c')](_0x26dee6(_0x56c070[_0x894f37('0x80')]['group']))),_0x3e93cb[_0x894f37('0x6b')](_0x5800b9),_0x3e93cb['offset'](0x0),logger['debug'](_0x894f37('0xc'),_0x3e93cb[_0x894f37('0x28')]()),db[_0x894f37('0x5b')][_0x894f37('0x57')](_0x3e93cb[_0x894f37('0x28')](),{'type':db[_0x894f37('0x5b')][_0x894f37('0x6e')][_0x894f37('0x75')]});}})[_0x3a345d('0x1e')](respondWithResult(_0x3bd95f,null))[_0x3a345d('0x26')](handleError(_0x3bd95f,null));};function runReport(_0x1396ff,_0x2dc777,_0x4b9489){const _0x3b638a=_0x1e95c1,_0x40918c=_0x2dc777[_0x3b638a('0x14')],_0x5f45d5=0xa,_0x11bd0d=['join',_0x3b638a('0x88'),_0x3b638a('0x39'),_0x3b638a('0x19')],_0x1a63fd={'SUM':'SUM(%s)','COUNT':_0x3b638a('0x4c'),'COUNT\x20DISTINCT':_0x3b638a('0x2b'),'MAX':_0x3b638a('0x87'),'MIN':_0x3b638a('0x20'),'AVG':_0x3b638a('0x33'),'GROUP_CONCAT':_0x3b638a('0x46'),'GROUP_CONCAT\x20ASC':_0x3b638a('0x91'),'GROUP_CONCAT\x20DESC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)'},_0x2c1817={'SEC_TO_TIME':_0x3b638a('0x86'),'DATE':_0x3b638a('0x35'),'HOUR':'HOUR(%s)','ROUND':'ROUND(%s)','UNIX_TIMESTAMP':'UNIX_TIMESTAMP(%s)'},_0xfe469e=function(_0x41d0c1){const _0x31ce31=_0x3b638a;return!_[_0x31ce31('0x12')]([_0x31ce31('0x76'),'IS\x20NOT\x20NULL',_0x31ce31('0x44'),_0x31ce31('0x69')],_0x41d0c1);},_0x1f0932=function(_0x4717a7){const _0x2a43a5=_0x3b638a;if(!_0x4717a7||!_0x4717a7[_0x2a43a5('0x93')][_0x2a43a5('0x49')])return'';let _0x5b4654='(';for(let _0x298713=0x0;_0x298713<_0x4717a7[_0x2a43a5('0x93')]['length'];_0x298713+=0x1){_0x298713>0x0&&(_0x5b4654+='\x20'+_0x4717a7['operator']+'\x20'),_0x5b4654+=_0x4717a7[_0x2a43a5('0x93')][_0x298713][_0x2a43a5('0x3d')]?_0x1f0932(_0x4717a7[_0x2a43a5('0x93')][_0x298713]['group']):_0x4717a7['rules'][_0x298713][_0x2a43a5('0x7d')]+'\x20'+_0x4717a7[_0x2a43a5('0x93')][_0x298713]['condition']+(_0xfe469e(_0x4717a7[_0x2a43a5('0x93')][_0x298713][_0x2a43a5('0x59')])?'\x20'+_0x4717a7[_0x2a43a5('0x93')][_0x298713][_0x2a43a5('0x8')]:'');}return _0x5b4654+')';};let _0x153c0d={'where':{'id':_0x1396ff['id']}},_0x55011a,_0x181661,_0x2d698d,_0x559f0a,_0x2d07ee;return _0x153c0d=_[_0x3b638a('0x7b')]({},_0x153c0d,_0x4b9489),db[_0x3b638a('0x73')][_0x3b638a('0x38')](_0x153c0d)[_0x3b638a('0x1e')](function(_0x50c4c2){const _0x418fa9=_0x3b638a;if(_0x50c4c2)return _0x55011a=_0x50c4c2,_0x50c4c2[_0x418fa9('0x79')]();return null;})['then'](function(_0x1635df){const _0x366604=_0x3b638a;if(_0x1635df){if(!_0x1635df[_0x366604('0x49')])throw new db[(_0x366604('0x42'))]['ValidationErrorItem'](_0x366604('0x8c'),0x193);return _0x181661=_0x1635df,db[_0x366604('0x71')][_0x366604('0x89')]({'raw':!![]});}return null;})['then'](function(_0x3ae8a9){const _0x58bafb=_0x3b638a;if(_0x3ae8a9){_0x2d698d=_[_0x58bafb('0xb')](_0x3ae8a9,'id');let _0x32babc;const _0x186352=squel['select']();_0x186352[_0x58bafb('0x56')](_0x55011a['table']);for(let _0x4e38c1=0x0;_0x4e38c1<_0x181661[_0x58bafb('0x49')];_0x4e38c1+=0x1){_0x32babc=_0x181661[_0x4e38c1][_0x58bafb('0x92')]?_0x2d698d[_0x181661[_0x4e38c1][_0x58bafb('0x92')]][_0x58bafb('0x25')]:_0x181661[_0x4e38c1][_0x58bafb('0x7d')],_0x32babc=_0x181661[_0x4e38c1][_0x58bafb('0x18')]?_[_0x58bafb('0xe')](_0x1a63fd[_0x181661[_0x4e38c1][_0x58bafb('0x18')]],'%s',_0x32babc):_0x32babc,_0x32babc=_0x181661[_0x4e38c1][_0x58bafb('0x58')]?_[_0x58bafb('0xe')](_0x2c1817[_0x181661[_0x4e38c1][_0x58bafb('0x58')]],'%s',_0x32babc):_0x32babc,_0x181661[_0x4e38c1][_0x58bafb('0x72')]&&_0x186352[_0x58bafb('0x3d')](_0x32babc),_0x181661[_0x4e38c1][_0x58bafb('0x1f')]&&_0x186352['order'](_0x32babc,_0x181661[_0x4e38c1]['orderBy']===_0x58bafb('0x4b')?![]:!![]),_0x186352[_0x58bafb('0x7d')](_0x32babc,_0x181661[_0x4e38c1][_0x58bafb('0x81')]||_0x32babc);}if(_0x55011a[_0x58bafb('0x6a')]){_0x55011a[_0x58bafb('0x6a')]=JSON['parse'](_0x55011a[_0x58bafb('0x6a')]);for(let _0x119613=0x0;_0x119613<_0x55011a[_0x58bafb('0x6a')][_0x58bafb('0x49')];_0x119613+=0x1){_0x55011a[_0x58bafb('0x6a')][_0x119613][_0x58bafb('0x53')]&&_['includes'](_0x11bd0d,_0x55011a[_0x58bafb('0x6a')][_0x119613]['type'])&&_0x55011a[_0x58bafb('0x6a')][_0x119613][_0x58bafb('0x68')]&&_0x55011a[_0x58bafb('0x6a')][_0x119613][_0x58bafb('0x22')]&&_0x55011a['joins'][_0x119613][_0x58bafb('0x78')]&&_0x186352[_0x55011a[_0x58bafb('0x6a')][_0x119613]['type']](_0x55011a[_0x58bafb('0x6a')][_0x119613][_0x58bafb('0x22')],null,util[_0x58bafb('0x58')]('%s.%s\x20=\x20%s.%s',_0x55011a[_0x58bafb('0x51')],_0x55011a[_0x58bafb('0x6a')][_0x119613][_0x58bafb('0x68')],_0x55011a[_0x58bafb('0x6a')][_0x119613][_0x58bafb('0x22')],_0x55011a['joins'][_0x119613]['foreignKey']));}}return _0x55011a[_0x58bafb('0x80')]&&(_0x55011a[_0x58bafb('0x80')]=JSON[_0x58bafb('0x5a')](_0x55011a['conditions']),_0x186352[_0x58bafb('0x5c')](_0x1f0932(_0x55011a[_0x58bafb('0x80')]['group']))),_0x2d07ee=_0x186352[_0x58bafb('0x37')](),_0x186352['limit'](_0x5f45d5),_0x186352[_0x58bafb('0x1a')](0x0),logger[_0x58bafb('0x36')](_0x58bafb('0xc'),_0x186352['toString']()),db[_0x58bafb('0x5b')][_0x58bafb('0x57')](_0x186352['toString'](),{'type':db[_0x58bafb('0x5b')][_0x58bafb('0x6e')][_0x58bafb('0x75')]});}})['then'](function(_0x115df9){const _0x143c37=_0x3b638a;if(!_0x115df9[_0x143c37('0x49')])throw new db[(_0x143c37('0x42'))][(_0x143c37('0x4'))](_0x143c37('0x1'),0xcc);if(_0x2dc777['output']===_0x143c37('0x29'))return null;const _0x174a1a=_['merge'](_0x2dc777,{'name':_0x2dc777[_0x143c37('0x83')]||_0x2dc777['name']||_0x55011a['name'],'basename':_0x40918c,'savename':util['format']('%s-%s.%s',_0x2dc777[_0x143c37('0x14')]||_0x55011a[_0x143c37('0x14')],require(_0x143c37('0x34'))[_0x143c37('0x7c')](0x4),_0x2dc777['output']||'csv'),'reportId':_0x55011a['id'],'reportType':'default'});return db[_0x143c37('0x48')]['create'](_0x174a1a,{'raw':!![]});})[_0x3b638a('0x1e')](function(_0xd1cf9d){const _0x40cd90=_0x3b638a;_0x55011a[_0x40cd90('0x51')]===_0x40cd90('0x32')?_0x2d07ee['where'](_0x55011a[_0x40cd90('0x51')]+_0x40cd90('0x5d'),_0x2dc777[_0x40cd90('0xf')],_0x2dc777[_0x40cd90('0x5f')]):_0x2d07ee[_0x40cd90('0x5c')](_0x55011a[_0x40cd90('0x51')]+'.createdAt\x20BETWEEN\x20?\x20AND\x20?',_0x2dc777[_0x40cd90('0xf')],_0x2dc777[_0x40cd90('0x5f')]);if(_0xd1cf9d)return logger[_0x40cd90('0x67')](_0x40cd90('0x11'),_0x2d07ee[_0x40cd90('0x28')]()),require('child_process')[_0x40cd90('0x8e')](path[_0x40cd90('0x52')](__dirname,_0x40cd90('0x2e'),_0xd1cf9d['output']),[_0xd1cf9d['id'],_0x2d07ee['toString'](),path[_0x40cd90('0x52')](__dirname,_0x40cd90('0x15'),_0xd1cf9d[_0x40cd90('0x3c')]),_0x40918c]),_0xd1cf9d;else{const _0x556847=squel[_0x40cd90('0x24')]();return _0x556847[_0x40cd90('0x56')]('('+_0x2d07ee['toString']()+')',_0x40cd90('0x8d')),_0x556847[_0x40cd90('0x7d')]('COUNT(*)','count'),_0x2d07ee[_0x40cd90('0x6b')](_0x2dc777[_0x40cd90('0x6b')]||_0x5f45d5),_0x2d07ee[_0x40cd90('0x1a')](_0x2dc777[_0x40cd90('0x1a')]||0x0),dbH[_0x40cd90('0x5b')][_0x40cd90('0x57')](_0x556847['toString'](),{'type':dbH[_0x40cd90('0x5b')][_0x40cd90('0x6e')]['SELECT']})[_0x40cd90('0x1e')](function(_0x5a95a){const _0x4f9ff2=_0x40cd90;return!_0x5a95a[_0x4f9ff2('0x49')]?_0x559f0a=0x0:_0x559f0a=_0x5a95a[0x0][_0x4f9ff2('0x60')]||0x0,dbH[_0x4f9ff2('0x5b')][_0x4f9ff2('0x57')](_0x2d07ee[_0x4f9ff2('0x28')](),{'type':dbH[_0x4f9ff2('0x5b')]['QueryTypes'][_0x4f9ff2('0x75')]});})[_0x40cd90('0x1e')](function(_0xd3f0a1){return{'rows':_0xd3f0a1||[],'count':_0x559f0a};});}});}exports[_0x1e95c1('0x4e')]=function(_0x2996c2,_0x1be1d9){const _0x1ad27f=_0x1e95c1;return runReport(_0x2996c2['params'],_0x2996c2['query'],_0x2996c2[_0x1ad27f('0xa')])[_0x1ad27f('0x1e')](respondWithResult(_0x1be1d9,null))[_0x1ad27f('0x26')](handleError(_0x1be1d9,null));},exports[_0x1e95c1('0x3')]=runReport,exports['query']=function(_0x31e811,_0x121e90){const _0x4d4b1d=_0x1e95c1,_0x38125b=0xa,_0x3b30e2=[_0x4d4b1d('0x52'),'left_join',_0x4d4b1d('0x39'),_0x4d4b1d('0x19')],_0x30e9c3={'SUM':_0x4d4b1d('0x66'),'COUNT':'COUNT(%s)','COUNT\x20DISTINCT':'COUNT(DISTINCT\x20%s)','MAX':_0x4d4b1d('0x87'),'MIN':_0x4d4b1d('0x20'),'AVG':_0x4d4b1d('0x33'),'GROUP_CONCAT':_0x4d4b1d('0x46'),'GROUP_CONCAT\x20ASC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','GROUP_CONCAT\x20DESC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)'},_0x2f17f8={'SEC_TO_TIME':_0x4d4b1d('0x86'),'DATE':_0x4d4b1d('0x35'),'HOUR':_0x4d4b1d('0x5e'),'ROUND':_0x4d4b1d('0x3a'),'UNIX_TIMESTAMP':_0x4d4b1d('0x2')},_0x2ad96c=function(_0x102df5){const _0x2465ce=_0x4d4b1d;return!_[_0x2465ce('0x12')]([_0x2465ce('0x76'),_0x2465ce('0x16'),'IS\x20EMPTY',_0x2465ce('0x69')],_0x102df5);},_0x344066=function(_0x327b94){const _0x1969e3=_0x4d4b1d;if(!_0x327b94||!_0x327b94[_0x1969e3('0x93')]['length'])return'';let _0x55abdf='(';for(let _0x183302=0x0;_0x183302<_0x327b94[_0x1969e3('0x93')][_0x1969e3('0x49')];_0x183302+=0x1){_0x183302>0x0&&(_0x55abdf+='\x20'+_0x327b94[_0x1969e3('0x54')]+'\x20'),_0x55abdf+=_0x327b94[_0x1969e3('0x93')][_0x183302][_0x1969e3('0x3d')]?_0x344066(_0x327b94[_0x1969e3('0x93')][_0x183302][_0x1969e3('0x3d')]):_0x327b94[_0x1969e3('0x93')][_0x183302][_0x1969e3('0x7d')]+'\x20'+_0x327b94[_0x1969e3('0x93')][_0x183302]['condition']+(_0x2ad96c(_0x327b94[_0x1969e3('0x93')][_0x183302][_0x1969e3('0x59')])?'\x20'+_0x327b94['rules'][_0x183302]['value']:'');}return _0x55abdf+')';};let _0x5eeee0={'where':{'id':_0x31e811[_0x4d4b1d('0x2f')]['id']}},_0x1f87e4,_0x26888a,_0xbfcea1,_0x4123b8;return _0x5eeee0=_[_0x4d4b1d('0x7b')]({},_0x5eeee0,_0x31e811[_0x4d4b1d('0xa')]),db[_0x4d4b1d('0x73')]['findOne'](_0x5eeee0)['then'](function(_0x3d5585){if(_0x3d5585)return _0x1f87e4=_0x3d5585,_0x3d5585['getFields']();return null;})[_0x4d4b1d('0x1e')](function(_0x1867a1){const _0x591c41=_0x4d4b1d;if(_0x1867a1){if(!_0x1867a1[_0x591c41('0x49')])throw new db[(_0x591c41('0x42'))]['ValidationErrorItem'](_0x591c41('0x8c'),0x193);return _0x26888a=_0x1867a1,db[_0x591c41('0x71')][_0x591c41('0x89')]({'raw':!![]});}return null;})[_0x4d4b1d('0x1e')](function(_0x21fc7c){const _0x25aab9=_0x4d4b1d;if(_0x21fc7c){_0xbfcea1=_[_0x25aab9('0xb')](_0x21fc7c,'id');let _0x373400;const _0x13b6f4=squel[_0x25aab9('0x24')]();_0x13b6f4[_0x25aab9('0x56')](_0x1f87e4[_0x25aab9('0x51')]);for(let _0x462607=0x0;_0x462607<_0x26888a[_0x25aab9('0x49')];_0x462607+=0x1){_0x373400=_0x26888a[_0x462607][_0x25aab9('0x92')]?_0xbfcea1[_0x26888a[_0x462607][_0x25aab9('0x92')]][_0x25aab9('0x25')]:_0x26888a[_0x462607][_0x25aab9('0x7d')],_0x373400=_0x26888a[_0x462607][_0x25aab9('0x18')]?_[_0x25aab9('0xe')](_0x30e9c3[_0x26888a[_0x462607]['function']],'%s',_0x373400):_0x373400,_0x373400=_0x26888a[_0x462607][_0x25aab9('0x58')]?_[_0x25aab9('0xe')](_0x2f17f8[_0x26888a[_0x462607][_0x25aab9('0x58')]],'%s',_0x373400):_0x373400,_0x26888a[_0x462607]['groupBy']&&_0x13b6f4[_0x25aab9('0x3d')](_0x373400),_0x26888a[_0x462607][_0x25aab9('0x1f')]&&_0x13b6f4[_0x25aab9('0x64')](_0x373400,_0x26888a[_0x462607][_0x25aab9('0x1f')]==='DESC'?![]:!![]),_0x13b6f4[_0x25aab9('0x7d')](_0x373400,_0x26888a[_0x462607]['alias']||_0x373400);}if(_0x1f87e4[_0x25aab9('0x6a')]){_0x1f87e4[_0x25aab9('0x6a')]=JSON[_0x25aab9('0x5a')](_0x1f87e4['joins']);for(let _0x5b7a98=0x0;_0x5b7a98<_0x1f87e4[_0x25aab9('0x6a')][_0x25aab9('0x49')];_0x5b7a98+=0x1){_0x1f87e4[_0x25aab9('0x6a')][_0x5b7a98]['type']&&_[_0x25aab9('0x12')](_0x3b30e2,_0x1f87e4['joins'][_0x5b7a98]['type'])&&_0x1f87e4[_0x25aab9('0x6a')][_0x5b7a98][_0x25aab9('0x68')]&&_0x1f87e4[_0x25aab9('0x6a')][_0x5b7a98][_0x25aab9('0x22')]&&_0x1f87e4[_0x25aab9('0x6a')][_0x5b7a98][_0x25aab9('0x78')]&&_0x13b6f4[_0x1f87e4[_0x25aab9('0x6a')][_0x5b7a98][_0x25aab9('0x53')]](_0x1f87e4[_0x25aab9('0x6a')][_0x5b7a98][_0x25aab9('0x22')],null,util[_0x25aab9('0x58')](_0x25aab9('0x74'),_0x1f87e4[_0x25aab9('0x51')],_0x1f87e4['joins'][_0x5b7a98]['parentKey'],_0x1f87e4[_0x25aab9('0x6a')][_0x5b7a98][_0x25aab9('0x22')],_0x1f87e4[_0x25aab9('0x6a')][_0x5b7a98][_0x25aab9('0x78')]));}}return _0x1f87e4[_0x25aab9('0x80')]&&(_0x1f87e4[_0x25aab9('0x80')]=JSON[_0x25aab9('0x5a')](_0x1f87e4[_0x25aab9('0x80')]),_0x13b6f4[_0x25aab9('0x5c')](_0x344066(_0x1f87e4[_0x25aab9('0x80')]['group']))),_0x4123b8=_0x13b6f4[_0x25aab9('0x37')](),_0x13b6f4[_0x25aab9('0x6b')](_0x38125b),_0x13b6f4[_0x25aab9('0x1a')](0x0),logger['debug'](_0x25aab9('0xc'),_0x13b6f4['toString']()),db['sequelize'][_0x25aab9('0x57')](_0x13b6f4[_0x25aab9('0x28')](),{'type':db['sequelize'][_0x25aab9('0x6e')][_0x25aab9('0x75')]});}})[_0x4d4b1d('0x1e')](function(){const _0xc78f45=_0x4d4b1d;return{'sql':_0x4123b8[_0xc78f45('0x28')]()};})['then'](respondWithResult(_0x121e90,null))[_0x4d4b1d('0x26')](handleError(_0x121e90,null));}; \ No newline at end of file +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 diff --git a/server/api/analyticDefaultReport/analyticDefaultReport.model.js b/server/api/analyticDefaultReport/analyticDefaultReport.model.js index 3b7a66f..83a00d2 100644 --- a/server/api/analyticDefaultReport/analyticDefaultReport.model.js +++ b/server/api/analyticDefaultReport/analyticDefaultReport.model.js @@ -1 +1 @@ -const a10_0x1667=['./analyticDefaultReport.attributes','define','AnalyticDefaultReport','analytics_default_reports','exports'];(function(_0x2d3cfb,_0x16675c){const _0x32cb1f=function(_0x43970d){while(--_0x43970d){_0x2d3cfb['push'](_0x2d3cfb['shift']());}};_0x32cb1f(++_0x16675c);}(a10_0x1667,0x1ee));const a10_0x32cb=function(_0x2d3cfb,_0x16675c){_0x2d3cfb=_0x2d3cfb-0x0;let _0x32cb1f=a10_0x1667[_0x2d3cfb];return _0x32cb1f;};const _0x13aeb4=a10_0x32cb;'use strict';const attributes=require(_0x13aeb4('0x1'));module[_0x13aeb4('0x0')]=function(_0x43970d){const _0x5e909a=_0x13aeb4,_0x2dd996=_0x43970d[_0x5e909a('0x2')](_0x5e909a('0x3'),attributes,{'tableName':_0x5e909a('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2dd996;}; \ No newline at end of file +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 diff --git a/server/api/analyticDefaultReport/index.js b/server/api/analyticDefaultReport/index.js index c1cd0e8..64179a0 100644 --- a/server/api/analyticDefaultReport/index.js +++ b/server/api/analyticDefaultReport/index.js @@ -1 +1 @@ -const a11_0x1fbd=['/:id/preview','show','index','/:id','get','isAuthenticated','update','preview','query','./analyticDefaultReport.controller','exports','post','../../components/auth/service','Router','/:id/run','delete'];(function(_0x228f8,_0x1fbd1a){const _0x3ec141=function(_0x4c83e2){while(--_0x4c83e2){_0x228f8['push'](_0x228f8['shift']());}};_0x3ec141(++_0x1fbd1a);}(a11_0x1fbd,0x101));const a11_0x3ec1=function(_0x228f8,_0x1fbd1a){_0x228f8=_0x228f8-0x0;let _0x3ec141=a11_0x1fbd[_0x228f8];return _0x3ec141;};const _0x2bd4b8=a11_0x3ec1;'use strict';const express=require('express'),router=express[_0x2bd4b8('0xc')](),auth=require(_0x2bd4b8('0xb')),controller=require(_0x2bd4b8('0x8'));router[_0x2bd4b8('0x3')]('/',auth['isAuthenticated'](),controller[_0x2bd4b8('0x1')]),router['get'](_0x2bd4b8('0x2'),auth[_0x2bd4b8('0x4')](),controller[_0x2bd4b8('0x0')]),router[_0x2bd4b8('0x3')](_0x2bd4b8('0xf'),auth[_0x2bd4b8('0x4')](),controller[_0x2bd4b8('0x6')]),router['get'](_0x2bd4b8('0xd'),auth[_0x2bd4b8('0x4')](),controller['run']),router[_0x2bd4b8('0x3')]('/:id/query',auth[_0x2bd4b8('0x4')](),controller[_0x2bd4b8('0x7')]),router[_0x2bd4b8('0xa')]('/',auth[_0x2bd4b8('0x4')](),controller['create']),router['put'](_0x2bd4b8('0x2'),auth[_0x2bd4b8('0x4')](),controller[_0x2bd4b8('0x5')]),router[_0x2bd4b8('0xe')](_0x2bd4b8('0x2'),auth[_0x2bd4b8('0x4')](),controller['destroy']),module[_0x2bd4b8('0x9')]=router; \ No newline at end of file +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 diff --git a/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js b/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js index f3cccab..8b0c15e 100644 --- a/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js +++ b/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js @@ -1 +1 @@ -const a12_0x6bbc=['UNSIGNED','exports','csv','INTEGER','scheduled','xlsx','STRING','pdf','sequelize','Loading','ENUM','DATE','manual'];(function(_0xf167a9,_0x6bbcc5){const _0x383e4e=function(_0x23240b){while(--_0x23240b){_0xf167a9['push'](_0xf167a9['shift']());}};_0x383e4e(++_0x6bbcc5);}(a12_0x6bbc,0x73));const a12_0x383e=function(_0xf167a9,_0x6bbcc5){_0xf167a9=_0xf167a9-0x0;let _0x383e4e=a12_0x6bbc[_0xf167a9];return _0x383e4e;};const _0x51c4c3=a12_0x383e;'use strict';const Sequelize=require(_0x51c4c3('0xa'));module[_0x51c4c3('0x3')]={'name':{'type':Sequelize[_0x51c4c3('0x8')],'allowNull':![]},'basename':{'type':Sequelize['STRING'],'allowNull':![]},'output':{'type':Sequelize[_0x51c4c3('0xc')](_0x51c4c3('0x4'),_0x51c4c3('0x9'),_0x51c4c3('0x7')),'allowNull':![],'defaultValue':_0x51c4c3('0x4')},'savename':{'type':Sequelize[_0x51c4c3('0x8')],'allowNull':![]},'startDate':{'type':Sequelize[_0x51c4c3('0x0')]},'endDate':{'type':Sequelize['DATE']},'status':{'type':Sequelize['STRING'],'defaultValue':_0x51c4c3('0xb')},'type':{'type':Sequelize[_0x51c4c3('0xc')](_0x51c4c3('0x1'),_0x51c4c3('0x6')),'allowNull':![],'defaultValue':_0x51c4c3('0x1')},'reportId':{'type':Sequelize[_0x51c4c3('0x5')](0xb)[_0x51c4c3('0x2')]},'reportType':{'type':Sequelize['STRING']}}; \ No newline at end of file +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 diff --git a/server/api/analyticExtractedReport/analyticExtractedReport.controller.js b/server/api/analyticExtractedReport/analyticExtractedReport.controller.js index 680d404..371dfe6 100644 --- a/server/api/analyticExtractedReport/analyticExtractedReport.controller.js +++ b/server/api/analyticExtractedReport/analyticExtractedReport.controller.js @@ -1 +1 @@ -const a13_0x4323=['query','get','existsSync','key','status','rawAttributes','lodash','index','VIRTUAL','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','api','end','savename','then','AnalyticExtractedReport','ExtractedReports','UserProfileSection','nolimit','destroy','includeAll','userProfileId','format','findOne','rows','keys','params','order','../../config/logger','model','path','update','../../components/parsers/qs','json','download','where','merge','offset','Report\x20not\x20found\x20or\x20empty','root','map','create','fields','include','sort','filter','limit','Unable\x20to\x20retrieve\x20the\x20current\x20user','exists','stack','basename','Content-Range','attributes','intersection','fieldName','sendStatus','catch','sequelize','length','type','pick','send','util','join','output','error','UserProfileResource','name','ValidationError','count','server/files/reports','body','set','options','filters','user'];(function(_0x5cc599,_0x4323a4){const _0x2e7c4f=function(_0x51e626){while(--_0x51e626){_0x5cc599['push'](_0x5cc599['shift']());}};_0x2e7c4f(++_0x4323a4);}(a13_0x4323,0x1c8));const a13_0x2e7c=function(_0x5cc599,_0x4323a4){_0x5cc599=_0x5cc599-0x0;let _0x2e7c4f=a13_0x4323[_0x5cc599];return _0x2e7c4f;};const _0x1eb60e=a13_0x2e7c;'use strict';const util=require(_0x1eb60e('0x37')),path=require(_0x1eb60e('0x17')),fs=require('fs'),_=require(_0x1eb60e('0x0')),qs=require(_0x1eb60e('0x19')),logger=require(_0x1eb60e('0x15'))(_0x1eb60e('0x4')),config=require('../../config/environment'),db=require('../../mysqldb')['db'],{Op}=require(_0x1eb60e('0x32'));function respondWithResult(_0x51e626,_0x3ff290){return _0x3ff290=_0x3ff290||0xc8,function(_0x26b625){const _0x261748=a13_0x2e7c;if(_0x26b625)return _0x51e626['status'](_0x3ff290)[_0x261748('0x1a')](_0x26b625);};}function respondWithFilteredResult(_0x3c4eea,_0x498e02){return function(_0x2ff687){const _0x180061=a13_0x2e7c;if(_0x2ff687){const _0x54fda3=_0x2ff687['count'],_0x3064ef=_0x498e02[_0x180061('0x1e')];let _0x55fbb3=_0x498e02[_0x180061('0x1e')]+_0x498e02[_0x180061('0x27')],_0x2fe717;return _0x55fbb3>=_0x54fda3?(_0x55fbb3=_0x54fda3,_0x2fe717=0xc8):_0x2fe717=0xce,_0x3c4eea[_0x180061('0x49')](_0x2fe717),_0x3c4eea[_0x180061('0x41')](_0x180061('0x2c'),_0x3064ef+'-'+_0x55fbb3+'/'+_0x54fda3)[_0x180061('0x1a')](_0x2ff687);}return null;};}function saveUpdates(_0x40931e){return function(_0x224000){const _0x234c66=a13_0x2e7c;if(_0x224000)return _0x224000[_0x234c66('0x18')](_0x40931e)[_0x234c66('0x7')](function(_0x4d0ed3){return _0x4d0ed3;});return null;};}function removeEntity(_0x1e92b6){return function(_0x486378){const _0x33b160=a13_0x2e7c;if(_0x486378)return _0x486378[_0x33b160('0xc')]()[_0x33b160('0x7')](function(){const _0x34c726=_0x33b160,_0x69fedf=_0x486378[_0x34c726('0x46')]({'plain':!![]}),_0x2420ef='ExtractedReports';return db[_0x34c726('0x3b')][_0x34c726('0xc')]({'where':{'type':_0x2420ef,'resourceId':_0x69fedf['id']}})[_0x34c726('0x7')](function(){return _0x486378;});})[_0x33b160('0x7')](function(){const _0x5dadf7=_0x33b160;_0x1e92b6['status'](0xcc)[_0x5dadf7('0x5')]();});};}function handleEntityNotFound(_0x5ac248){return function(_0x510971){const _0x58a93d=a13_0x2e7c;return!_0x510971&&_0x5ac248[_0x58a93d('0x30')](0x194),_0x510971;};}function handleError(_0x48ba09,_0x15b879){return _0x15b879=_0x15b879||0x1f4,function(_0x522e8e){const _0x5490ba=a13_0x2e7c;logger[_0x5490ba('0x3a')](_0x522e8e[_0x5490ba('0x2a')]),_0x522e8e[_0x5490ba('0x3c')]&&delete _0x522e8e[_0x5490ba('0x3c')],_0x48ba09['status'](_0x15b879)[_0x5490ba('0x36')](_0x522e8e);};}exports[_0x1eb60e('0x1')]=function(_0x3128d1,_0xe6bbe8){const _0xd5d29a=_0x1eb60e;let _0x22d050={};const _0x2522f5={},_0x3ae0bf={'count':0x0,'rows':[]},_0x554630=_[_0xd5d29a('0x21')](db[_0xd5d29a('0x8')][_0xd5d29a('0x4a')],function(_0x8e224f){const _0x392354=_0xd5d29a;return{'name':_0x8e224f[_0x392354('0x2f')],'type':_0x8e224f[_0x392354('0x34')][_0x392354('0x48')]};});_0x2522f5['model']=_['map'](_0x554630,_0xd5d29a('0x3c')),_0x2522f5[_0xd5d29a('0x45')]=_[_0xd5d29a('0x12')](_0x3128d1['query']),_0x2522f5['filters']=_[_0xd5d29a('0x2e')](_0x2522f5['model'],_0x2522f5[_0xd5d29a('0x45')]),_0x22d050[_0xd5d29a('0x2d')]=_['intersection'](_0x2522f5[_0xd5d29a('0x16')],qs['fields'](_0x3128d1['query'][_0xd5d29a('0x23')])),_0x22d050[_0xd5d29a('0x2d')]=_0x22d050[_0xd5d29a('0x2d')][_0xd5d29a('0x33')]?_0x22d050[_0xd5d29a('0x2d')]:_0x2522f5[_0xd5d29a('0x16')];typeof _0x3128d1[_0xd5d29a('0x45')][_0xd5d29a('0xb')]==='undefined'&&(_0x22d050['limit']=qs[_0xd5d29a('0x27')](_0x3128d1[_0xd5d29a('0x45')][_0xd5d29a('0x27')]),_0x22d050[_0xd5d29a('0x1e')]=qs['offset'](_0x3128d1[_0xd5d29a('0x45')][_0xd5d29a('0x1e')]));_0x22d050[_0xd5d29a('0x14')]=qs[_0xd5d29a('0x25')](_0x3128d1[_0xd5d29a('0x45')]['sort']),_0x22d050[_0xd5d29a('0x1c')]=qs['filters'](_[_0xd5d29a('0x35')](_0x3128d1[_0xd5d29a('0x45')],_0x2522f5['filters']),_0x554630);_0x3128d1['query'][_0xd5d29a('0x26')]&&(_0x22d050[_0xd5d29a('0x1c')]=_[_0xd5d29a('0x1d')](_0x22d050[_0xd5d29a('0x1c')],{[Op['or']]:_['map'](_0x554630,function(_0x3b7144){const _0x3d6cf6=_0xd5d29a;if(_0x3b7144[_0x3d6cf6('0x34')]!==_0x3d6cf6('0x2')){const _0x121c2c={};return _0x121c2c[_0x3b7144[_0x3d6cf6('0x3c')]]={[Op['like']]:'%'+_0x3128d1[_0x3d6cf6('0x45')]['filter']+'%'},_0x121c2c;}})}));_0x22d050=_[_0xd5d29a('0x1d')]({},_0x22d050,_0x3128d1[_0xd5d29a('0x42')]);const _0x26c9be={'where':_0x22d050[_0xd5d29a('0x1c')]};return db[_0xd5d29a('0x8')][_0xd5d29a('0x3e')](_0x26c9be)[_0xd5d29a('0x7')](function(_0x51b695){const _0x320963=_0xd5d29a;return _0x3ae0bf[_0x320963('0x3e')]=_0x51b695,_0x3128d1['query'][_0x320963('0xd')]&&(_0x22d050[_0x320963('0x24')]=[{'all':!![]}]),db[_0x320963('0x8')]['findAll'](_0x22d050);})[_0xd5d29a('0x7')](function(_0xb60f8a){const _0x375523=_0xd5d29a;return _0x3ae0bf[_0x375523('0x11')]=_0xb60f8a,_0x3ae0bf;})['then'](respondWithFilteredResult(_0xe6bbe8,_0x22d050))[_0xd5d29a('0x31')](handleError(_0xe6bbe8,null));},exports['show']=function(_0x569983,_0x61987a){const _0x313d87=_0x1eb60e;let _0x35096c={'raw':!![],'where':{'id':_0x569983['params']['id']}};const _0x3f4731={};return _0x3f4731[_0x313d87('0x16')]=_['keys'](db[_0x313d87('0x8')][_0x313d87('0x4a')]),_0x3f4731['query']=_[_0x313d87('0x12')](_0x569983[_0x313d87('0x45')]),_0x3f4731[_0x313d87('0x43')]=_['intersection'](_0x3f4731[_0x313d87('0x16')],_0x3f4731[_0x313d87('0x45')]),_0x35096c['attributes']=_[_0x313d87('0x2e')](_0x3f4731['model'],qs[_0x313d87('0x23')](_0x569983[_0x313d87('0x45')][_0x313d87('0x23')])),_0x35096c[_0x313d87('0x2d')]=_0x35096c[_0x313d87('0x2d')]['length']?_0x35096c[_0x313d87('0x2d')]:_0x3f4731[_0x313d87('0x16')],_0x569983[_0x313d87('0x45')][_0x313d87('0xd')]&&(_0x35096c[_0x313d87('0x24')]=[{'all':!![]}]),_0x35096c=_['merge']({},_0x35096c,_0x569983['options']),db[_0x313d87('0x8')]['findOne'](_0x35096c)[_0x313d87('0x7')](handleEntityNotFound(_0x61987a,null))[_0x313d87('0x7')](respondWithResult(_0x61987a,null))['catch'](handleError(_0x61987a,null));},exports[_0x1eb60e('0x22')]=function(_0x441b25,_0x463005){const _0x38bbf8=_0x1eb60e;return db[_0x38bbf8('0x8')]['create'](_0x441b25['body'],{})['then'](function(_0x5a51b0){const _0x4f3c85=_0x38bbf8,_0x59535c=_0x441b25[_0x4f3c85('0x44')][_0x4f3c85('0x46')]({'plain':!![]});if(!_0x59535c)throw new Error(_0x4f3c85('0x28'));if(_0x59535c['role']==='user'){const _0x50be7d=_0x5a51b0[_0x4f3c85('0x46')]({'plain':!![]}),_0x31d45f=_0x4f3c85('0x9');return db[_0x4f3c85('0xa')][_0x4f3c85('0x10')]({'where':{'name':_0x31d45f,'userProfileId':_0x59535c[_0x4f3c85('0xe')]},'raw':!![]})['then'](function(_0x31e75d){const _0x154d0b=_0x4f3c85;return _0x31e75d&&_0x31e75d['autoAssociation']===0x0?db[_0x154d0b('0x3b')][_0x154d0b('0x22')]({'name':_0x50be7d[_0x154d0b('0x3c')],'resourceId':_0x50be7d['id'],'type':_0x31e75d['name'],'sectionId':_0x31e75d['id']},{})[_0x154d0b('0x7')](function(){return _0x5a51b0;}):_0x5a51b0;})[_0x4f3c85('0x31')](function(_0x149523){const _0x39f58f=_0x4f3c85;logger[_0x39f58f('0x3a')](_0x39f58f('0x3'),_0x149523);throw _0x149523;});}return _0x5a51b0;})[_0x38bbf8('0x7')](respondWithResult(_0x463005,0xc9))[_0x38bbf8('0x31')](handleError(_0x463005,null));},exports[_0x1eb60e('0x18')]=function(_0x5edf4e,_0x146912){const _0x3c12ff=_0x1eb60e;return _0x5edf4e[_0x3c12ff('0x40')]['id']&&delete _0x5edf4e['body']['id'],db[_0x3c12ff('0x8')]['findOne']({'where':{'id':_0x5edf4e[_0x3c12ff('0x13')]['id']}})[_0x3c12ff('0x7')](handleEntityNotFound(_0x146912,null))['then'](saveUpdates(_0x5edf4e[_0x3c12ff('0x40')],null))[_0x3c12ff('0x7')](respondWithResult(_0x146912,null))['catch'](handleError(_0x146912,null));},exports['destroy']=function(_0x2b09a2,_0x23ab8c){const _0x1f3c13=_0x1eb60e;return db[_0x1f3c13('0x8')][_0x1f3c13('0x10')]({'where':{'id':_0x2b09a2['params']['id']}})['then'](handleEntityNotFound(_0x23ab8c,null))[_0x1f3c13('0x7')](removeEntity(_0x23ab8c,null))[_0x1f3c13('0x31')](handleError(_0x23ab8c,null));},exports[_0x1eb60e('0x1b')]=function(_0x24b3dc,_0xbe5789){const _0x1e8856=_0x1eb60e;return db[_0x1e8856('0x8')][_0x1e8856('0x10')]({'where':{'id':_0x24b3dc[_0x1e8856('0x13')]['id']},'attributes':['name',_0x1e8856('0x2b'),_0x1e8856('0x6'),_0x1e8856('0x39')],'raw':!![]})[_0x1e8856('0x7')](handleEntityNotFound(_0xbe5789,null))[_0x1e8856('0x7')](function(_0x5c04a5){const _0xace49e=_0x1e8856;if(_0x5c04a5){if(!fs[_0xace49e('0x47')](path[_0xace49e('0x38')](config['root'],_0xace49e('0x3f'),_0x5c04a5[_0xace49e('0x6')])))throw new db['Sequelize'][(_0xace49e('0x3d'))](_0xace49e('0x1f'));if(_0x24b3dc[_0xace49e('0x45')][_0xace49e('0x29')])return _0xbe5789['sendStatus'](0xc8);return _0xbe5789[_0xace49e('0x1b')](path[_0xace49e('0x38')](config[_0xace49e('0x20')],'server/files/reports',_0x5c04a5[_0xace49e('0x6')]),util[_0xace49e('0xf')]('%s.%s',_0x5c04a5[_0xace49e('0x2b')]||_0x5c04a5[_0xace49e('0x3c')],_0x5c04a5[_0xace49e('0x39')]['toLowerCase']()));}})[_0x1e8856('0x31')](handleError(_0xbe5789,null));}; \ No newline at end of file +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 diff --git a/server/api/analyticExtractedReport/analyticExtractedReport.model.js b/server/api/analyticExtractedReport/analyticExtractedReport.model.js index 7328f29..8683a58 100644 --- a/server/api/analyticExtractedReport/analyticExtractedReport.model.js +++ b/server/api/analyticExtractedReport/analyticExtractedReport.model.js @@ -1 +1 @@ -const a14_0x4164=['exports','./analyticExtractedReport.attributes','define','AnalyticExtractedReport','analytics_extracted_reports'];(function(_0x3b1d7a,_0x4164dc){const _0x567a69=function(_0x28a70e){while(--_0x28a70e){_0x3b1d7a['push'](_0x3b1d7a['shift']());}};_0x567a69(++_0x4164dc);}(a14_0x4164,0x89));const a14_0x567a=function(_0x3b1d7a,_0x4164dc){_0x3b1d7a=_0x3b1d7a-0x0;let _0x567a69=a14_0x4164[_0x3b1d7a];return _0x567a69;};const _0x5e6745=a14_0x567a;'use strict';const attributes=require(_0x5e6745('0x4'));module[_0x5e6745('0x3')]=function(_0x28a70e){const _0x5ad808=_0x5e6745,_0x59125d=_0x28a70e[_0x5ad808('0x0')](_0x5ad808('0x1'),attributes,{'tableName':_0x5ad808('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x59125d;}; \ No newline at end of file +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 diff --git a/server/api/analyticExtractedReport/index.js b/server/api/analyticExtractedReport/index.js index 7218366..7a1e1e4 100644 --- a/server/api/analyticExtractedReport/index.js +++ b/server/api/analyticExtractedReport/index.js @@ -1 +1 @@ -const a15_0x2435=['get','put','express','download','update','create','/:id/download','isAuthenticated','post','destroy','Router','index','exports','delete','/:id'];(function(_0x439128,_0x243579){const _0xf07b20=function(_0x44d770){while(--_0x44d770){_0x439128['push'](_0x439128['shift']());}};_0xf07b20(++_0x243579);}(a15_0x2435,0x87));const a15_0xf07b=function(_0x439128,_0x243579){_0x439128=_0x439128-0x0;let _0xf07b20=a15_0x2435[_0x439128];return _0xf07b20;};const _0x5c0410=a15_0xf07b;'use strict';const express=require(_0x5c0410('0x2')),router=express[_0x5c0410('0xa')](),auth=require('../../components/auth/service'),controller=require('./analyticExtractedReport.controller');router[_0x5c0410('0x0')]('/',auth[_0x5c0410('0x7')](),controller[_0x5c0410('0xb')]),router['get'](_0x5c0410('0xe'),auth['isAuthenticated'](),controller['show']),router[_0x5c0410('0x0')](_0x5c0410('0x6'),auth['isAuthenticated'](),controller[_0x5c0410('0x3')]),router[_0x5c0410('0x8')]('/',auth[_0x5c0410('0x7')](),controller[_0x5c0410('0x5')]),router[_0x5c0410('0x1')](_0x5c0410('0xe'),auth[_0x5c0410('0x7')](),controller[_0x5c0410('0x4')]),router[_0x5c0410('0xd')](_0x5c0410('0xe'),auth['isAuthenticated'](),controller[_0x5c0410('0x9')]),module[_0x5c0410('0xc')]=router; \ No newline at end of file +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 diff --git a/server/api/analyticFieldReport/analyticFieldReport.attributes.js b/server/api/analyticFieldReport/analyticFieldReport.attributes.js index f773f4d..52b2bbf 100644 --- a/server/api/analyticFieldReport/analyticFieldReport.attributes.js +++ b/server/api/analyticFieldReport/analyticFieldReport.attributes.js @@ -1 +1 @@ -const a16_0x2a53=['TEXT','sequelize','STRING','BOOLEAN','exports'];(function(_0x25e9d9,_0x2a5392){const _0x24f75b=function(_0x1e14c0){while(--_0x1e14c0){_0x25e9d9['push'](_0x25e9d9['shift']());}};_0x24f75b(++_0x2a5392);}(a16_0x2a53,0xdf));const a16_0x24f7=function(_0x25e9d9,_0x2a5392){_0x25e9d9=_0x25e9d9-0x0;let _0x24f75b=a16_0x2a53[_0x25e9d9];return _0x24f75b;};const _0x3d6481=a16_0x24f7;'use strict';const Sequelize=require(_0x3d6481('0x3'));module[_0x3d6481('0x1')]={'field':{'type':Sequelize[_0x3d6481('0x2')]},'alias':{'type':Sequelize[_0x3d6481('0x4')]},'function':{'type':Sequelize[_0x3d6481('0x4')]},'format':{'type':Sequelize[_0x3d6481('0x4')]},'groupBy':{'type':Sequelize[_0x3d6481('0x0')],'defaultValue':![]},'orderBy':{'type':Sequelize[_0x3d6481('0x4')]},'custom':{'type':Sequelize[_0x3d6481('0x0')],'defaultValue':![]}}; \ No newline at end of file +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 diff --git a/server/api/analyticFieldReport/analyticFieldReport.controller.js b/server/api/analyticFieldReport/analyticFieldReport.controller.js index aeb3930..3cb1901 100644 --- a/server/api/analyticFieldReport/analyticFieldReport.controller.js +++ b/server/api/analyticFieldReport/analyticFieldReport.controller.js @@ -1 +1 @@ -const a17_0x5cab=['json','nolimit','type','sequelize','then','api','catch','../../components/parsers/qs','status','fields','../../mysqldb','intersection','lodash','model','show','merge','filter','update','bulkCreate','count','CustomReportId','rawAttributes','index','VIRTUAL','where','destroy','query','error','undefined','include','stack','pick','like','findOne','send','map','includeAll','body','set','options','rows','attributes','sort','end','params','limit','AnalyticFieldReport','../../config/logger','findAll','name','filters','offset','length'];(function(_0x342d84,_0x5cabf8){const _0x5b452a=function(_0x472aad){while(--_0x472aad){_0x342d84['push'](_0x342d84['shift']());}};_0x5b452a(++_0x5cabf8);}(a17_0x5cab,0x17c));const a17_0x5b45=function(_0x342d84,_0x5cabf8){_0x342d84=_0x342d84-0x0;let _0x5b452a=a17_0x5cab[_0x342d84];return _0x5b452a;};const _0x37062e=a17_0x5b45;'use strict';const _=require(_0x37062e('0x3')),qs=require(_0x37062e('0x33')),logger=require(_0x37062e('0x26'))(_0x37062e('0x31')),db=require(_0x37062e('0x1'))['db'],{Op}=require(_0x37062e('0x2f'));function respondWithResult(_0x472aad,_0x239658){return _0x239658=_0x239658||0xc8,function(_0xda41d1){const _0x455a79=a17_0x5b45;if(_0xda41d1)return _0x472aad['status'](_0x239658)[_0x455a79('0x2c')](_0xda41d1);};}function respondWithFilteredResult(_0x21c4c6,_0x28952f){return function(_0x40122c){const _0x5645ce=a17_0x5b45;if(_0x40122c){const _0x1e189c=_0x40122c['count'],_0x35ab0a=_0x28952f[_0x5645ce('0x2a')];let _0x3ede38=_0x28952f[_0x5645ce('0x2a')]+_0x28952f[_0x5645ce('0x24')],_0x4c8b84;return _0x3ede38>=_0x1e189c?(_0x3ede38=_0x1e189c,_0x4c8b84=0xc8):_0x4c8b84=0xce,_0x21c4c6[_0x5645ce('0x34')](_0x4c8b84),_0x21c4c6[_0x5645ce('0x1d')]('Content-Range',_0x35ab0a+'-'+_0x3ede38+'/'+_0x1e189c)[_0x5645ce('0x2c')](_0x40122c);}return null;};}function saveUpdates(_0xa15403){return function(_0xbd1a98){const _0x3b96b7=a17_0x5b45;if(_0xbd1a98)return _0xbd1a98[_0x3b96b7('0x8')](_0xa15403)[_0x3b96b7('0x30')](function(_0x3b5aa6){return _0x3b5aa6;});return null;};}function removeEntity(_0x355a97){return function(_0x483fb4){const _0x558090=a17_0x5b45;if(_0x483fb4)return _0x483fb4[_0x558090('0x10')]()[_0x558090('0x30')](function(){const _0x4416f2=_0x558090;_0x355a97[_0x4416f2('0x34')](0xcc)[_0x4416f2('0x22')]();});};}function handleEntityNotFound(_0x471c60){return function(_0xf8458c){return!_0xf8458c&&_0x471c60['sendStatus'](0x194),_0xf8458c;};}function handleError(_0x1aa017,_0x2ca6f5){return _0x2ca6f5=_0x2ca6f5||0x1f4,function(_0x44d6a7){const _0x4f1b07=a17_0x5b45;logger[_0x4f1b07('0x12')](_0x44d6a7[_0x4f1b07('0x15')]),_0x44d6a7[_0x4f1b07('0x28')]&&delete _0x44d6a7['name'],_0x1aa017[_0x4f1b07('0x34')](_0x2ca6f5)[_0x4f1b07('0x19')](_0x44d6a7);};}exports[_0x37062e('0xd')]=function(_0x4eb1ef,_0x5e8331){const _0x5f28b5=_0x37062e;let _0x4d1f66={};const _0x4c9bbe={},_0x232fb9={'count':0x0,'rows':[]},_0x1a72a7=_['map'](db[_0x5f28b5('0x25')][_0x5f28b5('0xc')],function(_0x205bba){return{'name':_0x205bba['fieldName'],'type':_0x205bba['type']['key']};});_0x4c9bbe['model']=_['map'](_0x1a72a7,'name'),_0x4c9bbe[_0x5f28b5('0x11')]=_['keys'](_0x4eb1ef[_0x5f28b5('0x11')]),_0x4c9bbe['filters']=_[_0x5f28b5('0x2')](_0x4c9bbe['model'],_0x4c9bbe[_0x5f28b5('0x11')]),_0x4d1f66[_0x5f28b5('0x20')]=_['intersection'](_0x4c9bbe[_0x5f28b5('0x4')],qs[_0x5f28b5('0x0')](_0x4eb1ef[_0x5f28b5('0x11')][_0x5f28b5('0x0')])),_0x4d1f66[_0x5f28b5('0x20')]=_0x4d1f66[_0x5f28b5('0x20')][_0x5f28b5('0x2b')]?_0x4d1f66[_0x5f28b5('0x20')]:_0x4c9bbe[_0x5f28b5('0x4')];typeof _0x4eb1ef['query'][_0x5f28b5('0x2d')]===_0x5f28b5('0x13')&&(_0x4d1f66[_0x5f28b5('0x24')]=qs[_0x5f28b5('0x24')](_0x4eb1ef[_0x5f28b5('0x11')]['limit']),_0x4d1f66[_0x5f28b5('0x2a')]=qs[_0x5f28b5('0x2a')](_0x4eb1ef[_0x5f28b5('0x11')][_0x5f28b5('0x2a')]));_0x4d1f66['order']=qs['sort'](_0x4eb1ef[_0x5f28b5('0x11')][_0x5f28b5('0x21')]),_0x4d1f66[_0x5f28b5('0xf')]=qs[_0x5f28b5('0x29')](_[_0x5f28b5('0x16')](_0x4eb1ef[_0x5f28b5('0x11')],_0x4c9bbe[_0x5f28b5('0x29')]),_0x1a72a7);_0x4eb1ef[_0x5f28b5('0x11')][_0x5f28b5('0x7')]&&(_0x4d1f66[_0x5f28b5('0xf')]=_['merge'](_0x4d1f66[_0x5f28b5('0xf')],{[Op['or']]:_['map'](_0x1a72a7,function(_0x4b84ca){const _0x8ba5cb=_0x5f28b5;if(_0x4b84ca[_0x8ba5cb('0x2e')]!==_0x8ba5cb('0xe')){const _0x2f75bf={};return _0x2f75bf[_0x4b84ca['name']]={[Op[_0x8ba5cb('0x17')]]:'%'+_0x4eb1ef[_0x8ba5cb('0x11')][_0x8ba5cb('0x7')]+'%'},_0x2f75bf;}})}));_0x4d1f66=_[_0x5f28b5('0x6')]({},_0x4d1f66,_0x4eb1ef['options']);const _0x54f29e={'where':_0x4d1f66[_0x5f28b5('0xf')]};return db['AnalyticFieldReport']['count'](_0x54f29e)['then'](function(_0x12d859){const _0x47af5b=_0x5f28b5;return _0x232fb9[_0x47af5b('0xa')]=_0x12d859,_0x4eb1ef[_0x47af5b('0x11')][_0x47af5b('0x1b')]&&(_0x4d1f66['include']=[{'all':!![]}]),db[_0x47af5b('0x25')][_0x47af5b('0x27')](_0x4d1f66);})['then'](function(_0xb54ccc){const _0x2c623d=_0x5f28b5;return _0x232fb9[_0x2c623d('0x1f')]=_0xb54ccc,_0x232fb9;})[_0x5f28b5('0x30')](respondWithFilteredResult(_0x5e8331,_0x4d1f66))[_0x5f28b5('0x32')](handleError(_0x5e8331,null));},exports[_0x37062e('0x5')]=function(_0xa0524f,_0x33a7bf){const _0x118c9c=_0x37062e;let _0x45a9de={'raw':![],'where':{'id':_0xa0524f[_0x118c9c('0x23')]['id']}};const _0x4402ba={};return _0x4402ba['model']=_['keys'](db[_0x118c9c('0x25')][_0x118c9c('0xc')]),_0x4402ba[_0x118c9c('0x11')]=_['keys'](_0xa0524f[_0x118c9c('0x11')]),_0x4402ba[_0x118c9c('0x29')]=_[_0x118c9c('0x2')](_0x4402ba[_0x118c9c('0x4')],_0x4402ba[_0x118c9c('0x11')]),_0x45a9de[_0x118c9c('0x20')]=_[_0x118c9c('0x2')](_0x4402ba[_0x118c9c('0x4')],qs[_0x118c9c('0x0')](_0xa0524f['query'][_0x118c9c('0x0')])),_0x45a9de[_0x118c9c('0x20')]=_0x45a9de[_0x118c9c('0x20')]['length']?_0x45a9de[_0x118c9c('0x20')]:_0x4402ba[_0x118c9c('0x4')],_0xa0524f[_0x118c9c('0x11')][_0x118c9c('0x1b')]&&(_0x45a9de[_0x118c9c('0x14')]=[{'all':!![]}]),_0x45a9de=_[_0x118c9c('0x6')]({},_0x45a9de,_0xa0524f[_0x118c9c('0x1e')]),db[_0x118c9c('0x25')][_0x118c9c('0x18')](_0x45a9de)[_0x118c9c('0x30')](handleEntityNotFound(_0x33a7bf,null))['then'](respondWithResult(_0x33a7bf,null))['catch'](handleError(_0x33a7bf,null));},exports['create']=function(_0x5af6b4,_0x117d75){const _0x41ad35=_0x37062e;return db[_0x41ad35('0x25')]['create'](_0x5af6b4[_0x41ad35('0x1c')],{})[_0x41ad35('0x30')](respondWithResult(_0x117d75,0xc9))[_0x41ad35('0x32')](handleError(_0x117d75,null));},exports['bulkCreate']=function(_0x4fe0e5,_0xdea4e6){const _0xf7ad66=_0x37062e;return db[_0xf7ad66('0x25')][_0xf7ad66('0x9')](_0x4fe0e5[_0xf7ad66('0x1c')],{'raw':![],'individualHooks':!![]})[_0xf7ad66('0x30')](respondWithResult(_0xdea4e6,0xc9))[_0xf7ad66('0x32')](handleError(_0xdea4e6,null));},exports[_0x37062e('0x8')]=function(_0x4b8be1,_0x41fa4e){const _0x28eea1=_0x37062e;return _0x4b8be1[_0x28eea1('0x1c')]['id']&&delete _0x4b8be1['body']['id'],db[_0x28eea1('0x25')][_0x28eea1('0x18')]({'where':{'id':_0x4b8be1[_0x28eea1('0x23')]['id']}})[_0x28eea1('0x30')](handleEntityNotFound(_0x41fa4e,null))[_0x28eea1('0x30')](saveUpdates(_0x4b8be1['body'],null))[_0x28eea1('0x30')](respondWithResult(_0x41fa4e,null))['catch'](handleError(_0x41fa4e,null));},exports[_0x37062e('0x10')]=function(_0x1d767,_0x4f9b0d){const _0x25d32c=_0x37062e;return db['AnalyticFieldReport'][_0x25d32c('0x18')]({'where':{'id':_0x1d767[_0x25d32c('0x23')]['id']}})[_0x25d32c('0x30')](handleEntityNotFound(_0x4f9b0d,null))['then'](removeEntity(_0x4f9b0d,null))['catch'](handleError(_0x4f9b0d,null));},exports['bulkDestroy']=function(_0x1b803f,_0x3939f6){const _0x29e35a=_0x37062e;return db['AnalyticFieldReport'][_0x29e35a('0x10')]({'where':{'id':_0x1b803f[_0x29e35a('0x11')]['ids']||[]},'raw':![],'individualHooks':!![]})[_0x29e35a('0x30')](respondWithResult(_0x3939f6,0xcc))['catch'](handleError(_0x3939f6,null));},exports['addFields']=function(_0x47735b,_0x25e47d){const _0x486117=_0x37062e;return db['AnalyticCustomReport'][_0x486117('0x18')]({'where':{'id':_0x47735b[_0x486117('0x23')]['id']}})[_0x486117('0x30')](handleEntityNotFound(_0x25e47d,null))[_0x486117('0x30')](function(_0x2b9dbf){const _0x2fe0fd=_0x486117;if(_0x2b9dbf)return db[_0x2fe0fd('0x2f')]['transaction'](function(_0x54cf83){const _0x59bc19=_0x2fe0fd;return db[_0x59bc19('0x25')]['destroy']({'where':{'CustomReportId':_0x47735b[_0x59bc19('0x23')]['id']},'transaction':_0x54cf83})['then'](function(){const _0x4bc9e4=_0x59bc19,_0x1cfeb=_[_0x4bc9e4('0x1a')](_0x47735b[_0x4bc9e4('0x1c')],function(_0x585308){const _0x1dcba8=_0x4bc9e4;return delete _0x585308['id'],_0x585308[_0x1dcba8('0xb')]=_0x47735b[_0x1dcba8('0x23')]['id'],_0x585308;});return db[_0x4bc9e4('0x25')][_0x4bc9e4('0x9')](_0x1cfeb,{'transaction':_0x54cf83});});})['then'](function(){const _0x26de82=_0x2fe0fd;return db['AnalyticFieldReport'][_0x26de82('0x27')]({'where':{'CustomReportId':_0x47735b[_0x26de82('0x23')]['id']}});});})[_0x486117('0x30')](respondWithResult(_0x25e47d,null))[_0x486117('0x32')](handleError(_0x25e47d,null));}; \ No newline at end of file +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 diff --git a/server/api/analyticFieldReport/analyticFieldReport.model.js b/server/api/analyticFieldReport/analyticFieldReport.model.js index 818e0be..3d0ab25 100644 --- a/server/api/analyticFieldReport/analyticFieldReport.model.js +++ b/server/api/analyticFieldReport/analyticFieldReport.model.js @@ -1 +1 @@ -const a18_0x252f=['define','./analyticFieldReport.attributes','exports','analytics_report_fields','AnalyticFieldReport'];(function(_0x21ff11,_0x252f32){const _0x3d56c3=function(_0x6ec60e){while(--_0x6ec60e){_0x21ff11['push'](_0x21ff11['shift']());}};_0x3d56c3(++_0x252f32);}(a18_0x252f,0xc0));const a18_0x3d56=function(_0x21ff11,_0x252f32){_0x21ff11=_0x21ff11-0x0;let _0x3d56c3=a18_0x252f[_0x21ff11];return _0x3d56c3;};const _0x45966c=a18_0x3d56;'use strict';const attributes=require(_0x45966c('0x4'));module[_0x45966c('0x0')]=function(_0x6ec60e){const _0x38bff7=_0x45966c,_0x909869=_0x6ec60e[_0x38bff7('0x3')](_0x38bff7('0x2'),attributes,{'tableName':_0x38bff7('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x909869;}; \ No newline at end of file +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 diff --git a/server/api/analyticFieldReport/index.js b/server/api/analyticFieldReport/index.js index 1aecd89..efc6a6e 100644 --- a/server/api/analyticFieldReport/index.js +++ b/server/api/analyticFieldReport/index.js @@ -1 +1 @@ -const a19_0x2a08=['create','bulkDestroy','isAuthenticated','Router','delete','/:id','post','/destroy_many','express','./analyticFieldReport.controller','get','exports','/create_many','addFields','put','show','bulkCreate','/:id/create_many'];(function(_0x4199ed,_0x2a08c8){const _0x564e25=function(_0xd098a1){while(--_0xd098a1){_0x4199ed['push'](_0x4199ed['shift']());}};_0x564e25(++_0x2a08c8);}(a19_0x2a08,0x175));const a19_0x564e=function(_0x4199ed,_0x2a08c8){_0x4199ed=_0x4199ed-0x0;let _0x564e25=a19_0x2a08[_0x4199ed];return _0x564e25;};const _0x130408=a19_0x564e;'use strict';const express=require(_0x130408('0xd')),router=express[_0x130408('0x8')](),auth=require('../../components/auth/service'),controller=require(_0x130408('0xe'));router[_0x130408('0xf')]('/',auth['isAuthenticated'](),controller['index']),router[_0x130408('0xf')](_0x130408('0xa'),auth[_0x130408('0x7')](),controller[_0x130408('0x2')]),router[_0x130408('0xb')]('/',auth[_0x130408('0x7')](),controller[_0x130408('0x5')]),router[_0x130408('0xb')](_0x130408('0x11'),auth[_0x130408('0x7')](),controller[_0x130408('0x3')]),router[_0x130408('0xb')](_0x130408('0x4'),auth[_0x130408('0x7')](),controller[_0x130408('0x0')]),router[_0x130408('0x1')](_0x130408('0xa'),auth[_0x130408('0x7')](),controller['update']),router[_0x130408('0x9')](_0x130408('0xc'),auth[_0x130408('0x7')](),controller[_0x130408('0x6')]),router['delete']('/:id',auth[_0x130408('0x7')](),controller['destroy']),module[_0x130408('0x10')]=router; \ No newline at end of file +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 diff --git a/server/api/analyticMetric/analyticMetric.attributes.js b/server/api/analyticMetric/analyticMetric.attributes.js index 107db2e..d23895a 100644 --- a/server/api/analyticMetric/analyticMetric.attributes.js +++ b/server/api/analyticMetric/analyticMetric.attributes.js @@ -1 +1 @@ -const a20_0x1b34=['TEXT','name','exports','sequelize','STRING'];(function(_0x3b41fd,_0x1b3498){const _0x898029=function(_0x999c2c){while(--_0x999c2c){_0x3b41fd['push'](_0x3b41fd['shift']());}};_0x898029(++_0x1b3498);}(a20_0x1b34,0xc4));const a20_0x8980=function(_0x3b41fd,_0x1b3498){_0x3b41fd=_0x3b41fd-0x0;let _0x898029=a20_0x1b34[_0x3b41fd];return _0x898029;};const _0x1e32ea=a20_0x8980;'use strict';const Sequelize=require(_0x1e32ea('0x2'));module[_0x1e32ea('0x1')]={'name':{'type':Sequelize['STRING'],'allowNull':![],'unique':_0x1e32ea('0x0')},'table':{'type':Sequelize[_0x1e32ea('0x3')]},'metric':{'type':Sequelize[_0x1e32ea('0x4')]},'description':{'type':Sequelize[_0x1e32ea('0x3')]}}; \ No newline at end of file +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 diff --git a/server/api/analyticMetric/analyticMetric.controller.js b/server/api/analyticMetric/analyticMetric.controller.js index 71c3caa..aa8f051 100644 --- a/server/api/analyticMetric/analyticMetric.controller.js +++ b/server/api/analyticMetric/analyticMetric.controller.js @@ -1 +1 @@ -const a21_0xf42c=['keys','intersection','index','rawAttributes','name','key','include','../../components/parsers/qs','count','catch','Metrics','error','AnalyticMetric','update','offset','set','api','get','fields','includeAll','filters','../../mysqldb','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','merge','order','status','sequelize','json','../../config/logger','type','destroy','VIRTUAL','create','limit','pick','show','userProfileId','model','query','UserProfileResource','undefined','options','attributes','params','length','autoAssociation','then','UserProfileSection','where','send','sort','Unable\x20to\x20retrieve\x20the\x20current\x20user','findOne','nolimit','end','body','user'];(function(_0x17c8cf,_0xf42c95){const _0x17993a=function(_0x10dd54){while(--_0x10dd54){_0x17c8cf['push'](_0x17c8cf['shift']());}};_0x17993a(++_0xf42c95);}(a21_0xf42c,0x1e7));const a21_0x1799=function(_0x17c8cf,_0xf42c95){_0x17c8cf=_0x17c8cf-0x0;let _0x17993a=a21_0xf42c[_0x17c8cf];return _0x17993a;};const _0x493668=a21_0x1799;'use strict';const _=require('lodash'),qs=require(_0x493668('0x21')),logger=require(_0x493668('0x36'))(_0x493668('0x2a')),db=require(_0x493668('0x2f'))['db'],{Op}=require(_0x493668('0x34'));function respondWithResult(_0x10dd54,_0x5008fd){return _0x5008fd=_0x5008fd||0xc8,function(_0x10948e){const _0x851a46=a21_0x1799;if(_0x10948e)return _0x10dd54[_0x851a46('0x33')](_0x5008fd)[_0x851a46('0x35')](_0x10948e);};}function respondWithFilteredResult(_0x45da43,_0x303712){return function(_0x1edcf6){const _0x3c5d54=a21_0x1799;if(_0x1edcf6){const _0x452832=_0x1edcf6['count'],_0x5e0086=_0x303712[_0x3c5d54('0x28')];let _0x320ed6=_0x303712[_0x3c5d54('0x28')]+_0x303712[_0x3c5d54('0x2')],_0x187378;return _0x320ed6>=_0x452832?(_0x320ed6=_0x452832,_0x187378=0xc8):_0x187378=0xce,_0x45da43['status'](_0x187378),_0x45da43[_0x3c5d54('0x29')]('Content-Range',_0x5e0086+'-'+_0x320ed6+'/'+_0x452832)[_0x3c5d54('0x35')](_0x1edcf6);}return null;};}function saveUpdates(_0x11a0ec){return function(_0x2d695c){const _0x40305a=a21_0x1799;if(_0x2d695c)return _0x2d695c[_0x40305a('0x27')](_0x11a0ec)[_0x40305a('0xf')](function(_0x124594){return _0x124594;});return null;};}function removeEntity(_0x3099c5){return function(_0x2840a9){const _0x1cda66=a21_0x1799;if(_0x2840a9)return _0x2840a9['destroy']()[_0x1cda66('0xf')](function(){const _0x5d274f=_0x1cda66,_0x266070=_0x2840a9[_0x5d274f('0x2b')]({'plain':!![]}),_0x49245b=_0x5d274f('0x24');return db[_0x5d274f('0x8')][_0x5d274f('0x38')]({'where':{'type':_0x49245b,'resourceId':_0x266070['id']}})[_0x5d274f('0xf')](function(){return _0x2840a9;});})[_0x1cda66('0xf')](function(){const _0x3e73b6=_0x1cda66;_0x3099c5[_0x3e73b6('0x33')](0xcc)[_0x3e73b6('0x17')]();});};}function handleEntityNotFound(_0x407e31){return function(_0x50b7d2){return!_0x50b7d2&&_0x407e31['sendStatus'](0x194),_0x50b7d2;};}function handleError(_0x20e195,_0x3e4bf1){return _0x3e4bf1=_0x3e4bf1||0x1f4,function(_0x2dc4f6){const _0x343cd7=a21_0x1799;logger[_0x343cd7('0x25')](_0x2dc4f6['stack']),_0x2dc4f6['name']&&delete _0x2dc4f6[_0x343cd7('0x1e')],_0x20e195['status'](_0x3e4bf1)[_0x343cd7('0x12')](_0x2dc4f6);};}exports[_0x493668('0x1c')]=function(_0x38312a,_0x244aec){const _0x20636=_0x493668;let _0x1f37ba={};const _0x51756d={},_0x3ce532={'count':0x0,'rows':[]},_0x23206f=_['map'](db[_0x20636('0x26')][_0x20636('0x1d')],function(_0x308f8f){const _0x1db99c=_0x20636;return{'name':_0x308f8f['fieldName'],'type':_0x308f8f[_0x1db99c('0x37')][_0x1db99c('0x1f')]};});_0x51756d[_0x20636('0x6')]=_['map'](_0x23206f,'name'),_0x51756d[_0x20636('0x7')]=_['keys'](_0x38312a['query']),_0x51756d[_0x20636('0x2e')]=_[_0x20636('0x1b')](_0x51756d['model'],_0x51756d[_0x20636('0x7')]),_0x1f37ba[_0x20636('0xb')]=_[_0x20636('0x1b')](_0x51756d[_0x20636('0x6')],qs[_0x20636('0x2c')](_0x38312a[_0x20636('0x7')][_0x20636('0x2c')])),_0x1f37ba[_0x20636('0xb')]=_0x1f37ba[_0x20636('0xb')]['length']?_0x1f37ba[_0x20636('0xb')]:_0x51756d['model'];typeof _0x38312a['query'][_0x20636('0x16')]===_0x20636('0x9')&&(_0x1f37ba[_0x20636('0x2')]=qs[_0x20636('0x2')](_0x38312a[_0x20636('0x7')][_0x20636('0x2')]),_0x1f37ba[_0x20636('0x28')]=qs['offset'](_0x38312a[_0x20636('0x7')][_0x20636('0x28')]));_0x1f37ba[_0x20636('0x32')]=qs[_0x20636('0x13')](_0x38312a['query'][_0x20636('0x13')]),_0x1f37ba[_0x20636('0x11')]=qs[_0x20636('0x2e')](_[_0x20636('0x3')](_0x38312a['query'],_0x51756d['filters']),_0x23206f);_0x38312a[_0x20636('0x7')]['filter']&&(_0x1f37ba[_0x20636('0x11')]=_[_0x20636('0x31')](_0x1f37ba[_0x20636('0x11')],{[Op['or']]:_['map'](_0x23206f,function(_0x250917){const _0x567041=_0x20636;if(_0x250917[_0x567041('0x37')]!==_0x567041('0x0')){const _0x2ea06c={};return _0x2ea06c[_0x250917[_0x567041('0x1e')]]={[Op['like']]:'%'+_0x38312a[_0x567041('0x7')]['filter']+'%'},_0x2ea06c;}})}));_0x1f37ba=_[_0x20636('0x31')]({},_0x1f37ba,_0x38312a['options']);const _0x4b11ac={'where':_0x1f37ba[_0x20636('0x11')]};return db[_0x20636('0x26')][_0x20636('0x22')](_0x4b11ac)[_0x20636('0xf')](function(_0x50f6af){const _0x33f8b2=_0x20636;return _0x3ce532[_0x33f8b2('0x22')]=_0x50f6af,_0x38312a[_0x33f8b2('0x7')][_0x33f8b2('0x2d')]&&(_0x1f37ba[_0x33f8b2('0x20')]=[{'all':!![]}]),db[_0x33f8b2('0x26')]['findAll'](_0x1f37ba);})[_0x20636('0xf')](function(_0x48e865){return _0x3ce532['rows']=_0x48e865,_0x3ce532;})[_0x20636('0xf')](respondWithFilteredResult(_0x244aec,_0x1f37ba))[_0x20636('0x23')](handleError(_0x244aec,null));},exports[_0x493668('0x4')]=function(_0x563190,_0x49fa4e){const _0x196236=_0x493668;let _0x3aa75a={'raw':!![],'where':{'id':_0x563190[_0x196236('0xc')]['id']}};const _0x2718c6={};return _0x2718c6[_0x196236('0x6')]=_[_0x196236('0x1a')](db[_0x196236('0x26')][_0x196236('0x1d')]),_0x2718c6[_0x196236('0x7')]=_[_0x196236('0x1a')](_0x563190['query']),_0x2718c6['filters']=_[_0x196236('0x1b')](_0x2718c6[_0x196236('0x6')],_0x2718c6['query']),_0x3aa75a[_0x196236('0xb')]=_[_0x196236('0x1b')](_0x2718c6[_0x196236('0x6')],qs['fields'](_0x563190[_0x196236('0x7')][_0x196236('0x2c')])),_0x3aa75a['attributes']=_0x3aa75a[_0x196236('0xb')][_0x196236('0xd')]?_0x3aa75a['attributes']:_0x2718c6['model'],_0x563190[_0x196236('0x7')][_0x196236('0x2d')]&&(_0x3aa75a[_0x196236('0x20')]=[{'all':!![]}]),_0x3aa75a=_[_0x196236('0x31')]({},_0x3aa75a,_0x563190[_0x196236('0xa')]),db['AnalyticMetric'][_0x196236('0x15')](_0x3aa75a)[_0x196236('0xf')](handleEntityNotFound(_0x49fa4e,null))['then'](respondWithResult(_0x49fa4e,null))[_0x196236('0x23')](handleError(_0x49fa4e,null));},exports[_0x493668('0x1')]=function(_0x236d71,_0xe12f95){const _0x37769c=_0x493668;return db[_0x37769c('0x26')][_0x37769c('0x1')](_0x236d71[_0x37769c('0x18')],{})['then'](function(_0xf200c9){const _0x3fd28=_0x37769c,_0x491b5c=_0x236d71['user'][_0x3fd28('0x2b')]({'plain':!![]});if(!_0x491b5c)throw new Error(_0x3fd28('0x14'));if(_0x491b5c['role']===_0x3fd28('0x19')){const _0x24215b=_0xf200c9[_0x3fd28('0x2b')]({'plain':!![]}),_0x544722='Metrics';return db[_0x3fd28('0x10')][_0x3fd28('0x15')]({'where':{'name':_0x544722,'userProfileId':_0x491b5c[_0x3fd28('0x5')]},'raw':!![]})[_0x3fd28('0xf')](function(_0x4b563e){const _0x5c4d2c=_0x3fd28;return _0x4b563e&&_0x4b563e[_0x5c4d2c('0xe')]===0x0?db['UserProfileResource'][_0x5c4d2c('0x1')]({'name':_0x24215b[_0x5c4d2c('0x1e')],'resourceId':_0x24215b['id'],'type':_0x4b563e[_0x5c4d2c('0x1e')],'sectionId':_0x4b563e['id']},{})[_0x5c4d2c('0xf')](function(){return _0xf200c9;}):_0xf200c9;})[_0x3fd28('0x23')](function(_0x59bd77){const _0x5a4fbe=_0x3fd28;logger[_0x5a4fbe('0x25')](_0x5a4fbe('0x30'),_0x59bd77);throw _0x59bd77;});}return _0xf200c9;})[_0x37769c('0xf')](respondWithResult(_0xe12f95,0xc9))[_0x37769c('0x23')](handleError(_0xe12f95,null));},exports['update']=function(_0x265d55,_0xbe2dde){const _0x44f7a2=_0x493668;return _0x265d55[_0x44f7a2('0x18')]['id']&&delete _0x265d55[_0x44f7a2('0x18')]['id'],db[_0x44f7a2('0x26')][_0x44f7a2('0x15')]({'where':{'id':_0x265d55['params']['id']}})['then'](handleEntityNotFound(_0xbe2dde,null))[_0x44f7a2('0xf')](saveUpdates(_0x265d55[_0x44f7a2('0x18')],null))[_0x44f7a2('0xf')](respondWithResult(_0xbe2dde,null))[_0x44f7a2('0x23')](handleError(_0xbe2dde,null));},exports[_0x493668('0x38')]=function(_0x3ab6a4,_0x428d7f){const _0x54b9a0=_0x493668;return db[_0x54b9a0('0x26')][_0x54b9a0('0x15')]({'where':{'id':_0x3ab6a4['params']['id']}})['then'](handleEntityNotFound(_0x428d7f,null))['then'](removeEntity(_0x428d7f,null))[_0x54b9a0('0x23')](handleError(_0x428d7f,null));}; \ No newline at end of file +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 diff --git a/server/api/analyticMetric/analyticMetric.model.js b/server/api/analyticMetric/analyticMetric.model.js index f8cdb1c..63ed3fb 100644 --- a/server/api/analyticMetric/analyticMetric.model.js +++ b/server/api/analyticMetric/analyticMetric.model.js @@ -1 +1 @@ -const a22_0x1541=['./analyticMetric.attributes','define','AnalyticMetric','analytics_metrics'];(function(_0x3ac205,_0x154148){const _0x217bda=function(_0x2e2dd9){while(--_0x2e2dd9){_0x3ac205['push'](_0x3ac205['shift']());}};_0x217bda(++_0x154148);}(a22_0x1541,0x1eb));const a22_0x217b=function(_0x3ac205,_0x154148){_0x3ac205=_0x3ac205-0x0;let _0x217bda=a22_0x1541[_0x3ac205];return _0x217bda;};const _0x55c6f1=a22_0x217b;'use strict';const attributes=require(_0x55c6f1('0x1'));module['exports']=function(_0x2e2dd9){const _0x343e69=_0x55c6f1,_0x1a889a=_0x2e2dd9[_0x343e69('0x2')](_0x343e69('0x3'),attributes,{'tableName':_0x343e69('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1a889a;}; \ No newline at end of file +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 diff --git a/server/api/analyticMetric/index.js b/server/api/analyticMetric/index.js index d971bdb..8619f3f 100644 --- a/server/api/analyticMetric/index.js +++ b/server/api/analyticMetric/index.js @@ -1 +1 @@ -const a23_0x5c4b=['./analyticMetric.controller','exports','/:id','isAuthenticated','Router','get','destroy','create','index','express','post','put'];(function(_0x28066b,_0x5c4b2b){const _0x59d523=function(_0x32fc8e){while(--_0x32fc8e){_0x28066b['push'](_0x28066b['shift']());}};_0x59d523(++_0x5c4b2b);}(a23_0x5c4b,0x13e));const a23_0x59d5=function(_0x28066b,_0x5c4b2b){_0x28066b=_0x28066b-0x0;let _0x59d523=a23_0x5c4b[_0x28066b];return _0x59d523;};const _0x2cf3d8=a23_0x59d5;'use strict';const express=require(_0x2cf3d8('0x3')),router=express[_0x2cf3d8('0xa')](),auth=require('../../components/auth/service'),controller=require(_0x2cf3d8('0x6'));router[_0x2cf3d8('0xb')]('/',auth[_0x2cf3d8('0x9')](),controller[_0x2cf3d8('0x2')]),router[_0x2cf3d8('0xb')](_0x2cf3d8('0x8'),auth[_0x2cf3d8('0x9')](),controller['show']),router[_0x2cf3d8('0x4')]('/',auth[_0x2cf3d8('0x9')](),controller[_0x2cf3d8('0x1')]),router[_0x2cf3d8('0x5')]('/:id',auth[_0x2cf3d8('0x9')](),controller['update']),router['delete'](_0x2cf3d8('0x8'),auth[_0x2cf3d8('0x9')](),controller[_0x2cf3d8('0x0')]),module[_0x2cf3d8('0x7')]=router; \ No newline at end of file +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 diff --git a/server/api/analyticTreeReport/analyticTreeReport.attributes.js b/server/api/analyticTreeReport/analyticTreeReport.attributes.js index a4aa013..fc57479 100644 --- a/server/api/analyticTreeReport/analyticTreeReport.attributes.js +++ b/server/api/analyticTreeReport/analyticTreeReport.attributes.js @@ -1 +1 @@ -const a24_0x3224=['exports','TEXT','sequelize'];(function(_0x27228a,_0x322497){const _0x36e73a=function(_0x354676){while(--_0x354676){_0x27228a['push'](_0x27228a['shift']());}};_0x36e73a(++_0x322497);}(a24_0x3224,0xac));const a24_0x36e7=function(_0x27228a,_0x322497){_0x27228a=_0x27228a-0x0;let _0x36e73a=a24_0x3224[_0x27228a];return _0x36e73a;};const _0x45131c=a24_0x36e7;'use strict';const Sequelize=require(_0x45131c('0x1'));module[_0x45131c('0x2')]={'tree':{'type':Sequelize[_0x45131c('0x0')],'allowNull':![]}}; \ No newline at end of file +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 diff --git a/server/api/analyticTreeReport/analyticTreeReport.controller.js b/server/api/analyticTreeReport/analyticTreeReport.controller.js index e0d664b..4472129 100644 --- a/server/api/analyticTreeReport/analyticTreeReport.controller.js +++ b/server/api/analyticTreeReport/analyticTreeReport.controller.js @@ -1 +1 @@ -const a25_0x5605=['type','map','nolimit','AnalyticTreeReport','rawAttributes','Content-Range','pick','../../components/parsers/qs','filter','then','set','order','../../mysqldb','includeAll','offset','where','sendStatus','name','catch','attributes','findAll','end','filters','destroy','intersection','VIRTUAL','status','lodash','keys','show','json','body','error','undefined','length','query','count','model','key','limit','create','include','api','rows','fields','stack','../../config/logger','params','send','update','merge','sort','findOne'];(function(_0x393707,_0x56050c){const _0xb2afc5=function(_0x4886e3){while(--_0x4886e3){_0x393707['push'](_0x393707['shift']());}};_0xb2afc5(++_0x56050c);}(a25_0x5605,0x1c4));const a25_0xb2af=function(_0x393707,_0x56050c){_0x393707=_0x393707-0x0;let _0xb2afc5=a25_0x5605[_0x393707];return _0xb2afc5;};const _0xb684d9=a25_0xb2af;'use strict';const _=require(_0xb684d9('0x34')),qs=require(_0xb684d9('0x20')),logger=require(_0xb684d9('0x12'))(_0xb684d9('0xe')),db=require(_0xb684d9('0x25'))['db'],{Op}=require('sequelize');function respondWithResult(_0x4886e3,_0x56914c){return _0x56914c=_0x56914c||0xc8,function(_0x4f2e45){const _0x392549=a25_0xb2af;if(_0x4f2e45)return _0x4886e3[_0x392549('0x33')](_0x56914c)[_0x392549('0x2')](_0x4f2e45);};}function respondWithFilteredResult(_0xda38a1,_0x21295a){return function(_0x55c47d){const _0x408d96=a25_0xb2af;if(_0x55c47d){const _0x6b405=_0x55c47d[_0x408d96('0x8')],_0x4679bd=_0x21295a['offset'];let _0x4357cc=_0x21295a[_0x408d96('0x27')]+_0x21295a[_0x408d96('0xb')],_0x146ca5;return _0x4357cc>=_0x6b405?(_0x4357cc=_0x6b405,_0x146ca5=0xc8):_0x146ca5=0xce,_0xda38a1[_0x408d96('0x33')](_0x146ca5),_0xda38a1[_0x408d96('0x23')](_0x408d96('0x1e'),_0x4679bd+'-'+_0x4357cc+'/'+_0x6b405)['json'](_0x55c47d);}return null;};}function saveUpdates(_0x371e9e){return function(_0x532367){const _0x4f4850=a25_0xb2af;if(_0x532367)return _0x532367[_0x4f4850('0x15')](_0x371e9e)['then'](function(_0x6a730d){return _0x6a730d;});return null;};}function removeEntity(_0x49c9a4){return function(_0x4de847){const _0x2f63e8=a25_0xb2af;if(_0x4de847)return _0x4de847[_0x2f63e8('0x30')]()[_0x2f63e8('0x22')](function(){const _0x28fd66=_0x2f63e8;_0x49c9a4[_0x28fd66('0x33')](0xcc)[_0x28fd66('0x2e')]();});};}function handleEntityNotFound(_0x4f2414){return function(_0x7e24db){const _0x144d61=a25_0xb2af;return!_0x7e24db&&_0x4f2414[_0x144d61('0x29')](0x194),_0x7e24db;};}function handleError(_0x4f8310,_0x9f6950){return _0x9f6950=_0x9f6950||0x1f4,function(_0x5abdd8){const _0x3dcd74=a25_0xb2af;logger[_0x3dcd74('0x4')](_0x5abdd8[_0x3dcd74('0x11')]),_0x5abdd8['name']&&delete _0x5abdd8['name'],_0x4f8310[_0x3dcd74('0x33')](_0x9f6950)[_0x3dcd74('0x14')](_0x5abdd8);};}exports['index']=function(_0x287694,_0x42f88a){const _0x3f1002=_0xb684d9;let _0x1bc584={};const _0x16b3bb={},_0x30bde9={'count':0x0,'rows':[]},_0x2148d7=_['map'](db[_0x3f1002('0x1c')][_0x3f1002('0x1d')],function(_0x1dd5e9){const _0x5b2e52=_0x3f1002;return{'name':_0x1dd5e9['fieldName'],'type':_0x1dd5e9[_0x5b2e52('0x19')][_0x5b2e52('0xa')]};});_0x16b3bb['model']=_[_0x3f1002('0x1a')](_0x2148d7,_0x3f1002('0x2a')),_0x16b3bb[_0x3f1002('0x7')]=_[_0x3f1002('0x0')](_0x287694['query']),_0x16b3bb[_0x3f1002('0x2f')]=_[_0x3f1002('0x31')](_0x16b3bb['model'],_0x16b3bb[_0x3f1002('0x7')]),_0x1bc584['attributes']=_[_0x3f1002('0x31')](_0x16b3bb['model'],qs[_0x3f1002('0x10')](_0x287694[_0x3f1002('0x7')]['fields'])),_0x1bc584[_0x3f1002('0x2c')]=_0x1bc584[_0x3f1002('0x2c')][_0x3f1002('0x6')]?_0x1bc584[_0x3f1002('0x2c')]:_0x16b3bb[_0x3f1002('0x9')];typeof _0x287694[_0x3f1002('0x7')][_0x3f1002('0x1b')]===_0x3f1002('0x5')&&(_0x1bc584[_0x3f1002('0xb')]=qs['limit'](_0x287694[_0x3f1002('0x7')]['limit']),_0x1bc584[_0x3f1002('0x27')]=qs[_0x3f1002('0x27')](_0x287694[_0x3f1002('0x7')][_0x3f1002('0x27')]));_0x1bc584[_0x3f1002('0x24')]=qs[_0x3f1002('0x17')](_0x287694['query']['sort']),_0x1bc584[_0x3f1002('0x28')]=qs[_0x3f1002('0x2f')](_[_0x3f1002('0x1f')](_0x287694[_0x3f1002('0x7')],_0x16b3bb['filters']),_0x2148d7);_0x287694[_0x3f1002('0x7')]['filter']&&(_0x1bc584[_0x3f1002('0x28')]=_[_0x3f1002('0x16')](_0x1bc584[_0x3f1002('0x28')],{[Op['or']]:_[_0x3f1002('0x1a')](_0x2148d7,function(_0x26210a){const _0x4c6659=_0x3f1002;if(_0x26210a[_0x4c6659('0x19')]!==_0x4c6659('0x32')){const _0x4c02b4={};return _0x4c02b4[_0x26210a[_0x4c6659('0x2a')]]={[Op['like']]:'%'+_0x287694[_0x4c6659('0x7')][_0x4c6659('0x21')]+'%'},_0x4c02b4;}})}));_0x1bc584=_['merge']({},_0x1bc584,_0x287694['options']);const _0x2bd92d={'where':_0x1bc584[_0x3f1002('0x28')]};return db['AnalyticTreeReport'][_0x3f1002('0x8')](_0x2bd92d)[_0x3f1002('0x22')](function(_0x270cc5){const _0x5e652f=_0x3f1002;return _0x30bde9[_0x5e652f('0x8')]=_0x270cc5,_0x287694[_0x5e652f('0x7')]['includeAll']&&(_0x1bc584['include']=[{'all':!![]}]),db[_0x5e652f('0x1c')][_0x5e652f('0x2d')](_0x1bc584);})[_0x3f1002('0x22')](function(_0xbb7f1b){const _0x20082a=_0x3f1002;return _0x30bde9[_0x20082a('0xf')]=_0xbb7f1b,_0x30bde9;})['then'](respondWithFilteredResult(_0x42f88a,_0x1bc584))[_0x3f1002('0x2b')](handleError(_0x42f88a,null));},exports[_0xb684d9('0x1')]=function(_0x332b4d,_0x4a13f9){const _0x2111d5=_0xb684d9;let _0x4e92a2={'raw':!![],'where':{'id':_0x332b4d['params']['id']}};const _0x571fae={};return _0x571fae[_0x2111d5('0x9')]=_['keys'](db['AnalyticTreeReport'][_0x2111d5('0x1d')]),_0x571fae[_0x2111d5('0x7')]=_['keys'](_0x332b4d[_0x2111d5('0x7')]),_0x571fae[_0x2111d5('0x2f')]=_[_0x2111d5('0x31')](_0x571fae['model'],_0x571fae[_0x2111d5('0x7')]),_0x4e92a2[_0x2111d5('0x2c')]=_[_0x2111d5('0x31')](_0x571fae[_0x2111d5('0x9')],qs[_0x2111d5('0x10')](_0x332b4d['query'][_0x2111d5('0x10')])),_0x4e92a2['attributes']=_0x4e92a2[_0x2111d5('0x2c')][_0x2111d5('0x6')]?_0x4e92a2[_0x2111d5('0x2c')]:_0x571fae[_0x2111d5('0x9')],_0x332b4d[_0x2111d5('0x7')][_0x2111d5('0x26')]&&(_0x4e92a2[_0x2111d5('0xd')]=[{'all':!![]}]),_0x4e92a2=_[_0x2111d5('0x16')]({},_0x4e92a2,_0x332b4d['options']),db[_0x2111d5('0x1c')][_0x2111d5('0x18')](_0x4e92a2)[_0x2111d5('0x22')](handleEntityNotFound(_0x4a13f9,null))[_0x2111d5('0x22')](respondWithResult(_0x4a13f9,null))[_0x2111d5('0x2b')](handleError(_0x4a13f9,null));},exports[_0xb684d9('0xc')]=function(_0x252d50,_0x2965d3){const _0x55f83e=_0xb684d9;return db[_0x55f83e('0x1c')][_0x55f83e('0xc')](_0x252d50[_0x55f83e('0x3')],{})['then'](respondWithResult(_0x2965d3,0xc9))[_0x55f83e('0x2b')](handleError(_0x2965d3,null));},exports['update']=function(_0x4540e2,_0x582a2b){const _0x5665b2=_0xb684d9;return _0x4540e2['body']['id']&&delete _0x4540e2[_0x5665b2('0x3')]['id'],db[_0x5665b2('0x1c')][_0x5665b2('0x18')]({'where':{'id':_0x4540e2[_0x5665b2('0x13')]['id']}})[_0x5665b2('0x22')](handleEntityNotFound(_0x582a2b,null))[_0x5665b2('0x22')](saveUpdates(_0x4540e2[_0x5665b2('0x3')],null))[_0x5665b2('0x22')](respondWithResult(_0x582a2b,null))[_0x5665b2('0x2b')](handleError(_0x582a2b,null));},exports[_0xb684d9('0x30')]=function(_0x37cce1,_0x57680e){const _0x484802=_0xb684d9;return db['AnalyticTreeReport'][_0x484802('0x18')]({'where':{'id':_0x37cce1[_0x484802('0x13')]['id']}})[_0x484802('0x22')](handleEntityNotFound(_0x57680e,null))[_0x484802('0x22')](removeEntity(_0x57680e,null))[_0x484802('0x2b')](handleError(_0x57680e,null));}; \ No newline at end of file +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 diff --git a/server/api/analyticTreeReport/analyticTreeReport.model.js b/server/api/analyticTreeReport/analyticTreeReport.model.js index 87759c7..a782a31 100644 --- a/server/api/analyticTreeReport/analyticTreeReport.model.js +++ b/server/api/analyticTreeReport/analyticTreeReport.model.js @@ -1 +1 @@ -const a26_0x2bdc=['./analyticTreeReport.attributes','AnalyticTreeReport','define'];(function(_0x1152af,_0x2bdc7f){const _0x209002=function(_0x49e753){while(--_0x49e753){_0x1152af['push'](_0x1152af['shift']());}};_0x209002(++_0x2bdc7f);}(a26_0x2bdc,0xf9));const a26_0x2090=function(_0x1152af,_0x2bdc7f){_0x1152af=_0x1152af-0x0;let _0x209002=a26_0x2bdc[_0x1152af];return _0x209002;};const _0x30dfc6=a26_0x2090;'use strict';const attributes=require(_0x30dfc6('0x0'));module['exports']=function(_0x49e753){const _0x1a3f2b=_0x30dfc6,_0x578d28=_0x49e753[_0x1a3f2b('0x2')](_0x1a3f2b('0x1'),attributes,{'tableName':'analytics_report_trees','paranoid':![],'indexes':[],'timestamps':!![]});return _0x578d28;}; \ No newline at end of file +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 diff --git a/server/api/analyticTreeReport/index.js b/server/api/analyticTreeReport/index.js index cdefa77..b3152da 100644 --- a/server/api/analyticTreeReport/index.js +++ b/server/api/analyticTreeReport/index.js @@ -1 +1 @@ -const a27_0x7ecc=['isAuthenticated','destroy','show','express','../../components/auth/service','update','./analyticTreeReport.controller','create','/:id','index','delete','exports','post','get'];(function(_0x4d99e4,_0x7ecc1e){const _0x134d6b=function(_0x44bdcc){while(--_0x44bdcc){_0x4d99e4['push'](_0x4d99e4['shift']());}};_0x134d6b(++_0x7ecc1e);}(a27_0x7ecc,0x139));const a27_0x134d=function(_0x4d99e4,_0x7ecc1e){_0x4d99e4=_0x4d99e4-0x0;let _0x134d6b=a27_0x7ecc[_0x4d99e4];return _0x134d6b;};const _0x163ae8=a27_0x134d;'use strict';const express=require(_0x163ae8('0xc')),router=express['Router'](),auth=require(_0x163ae8('0xd')),controller=require(_0x163ae8('0x1'));router[_0x163ae8('0x8')]('/',auth['isAuthenticated'](),controller[_0x163ae8('0x4')]),router[_0x163ae8('0x8')](_0x163ae8('0x3'),auth[_0x163ae8('0x9')](),controller[_0x163ae8('0xb')]),router[_0x163ae8('0x7')]('/',auth[_0x163ae8('0x9')](),controller[_0x163ae8('0x2')]),router['put'](_0x163ae8('0x3'),auth[_0x163ae8('0x9')](),controller[_0x163ae8('0x0')]),router[_0x163ae8('0x5')](_0x163ae8('0x3'),auth[_0x163ae8('0x9')](),controller[_0x163ae8('0xa')]),module[_0x163ae8('0x6')]=router; \ No newline at end of file +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 diff --git a/server/api/attachment/attachment.attributes.js b/server/api/attachment/attachment.attributes.js index a46dd52..5086deb 100644 --- a/server/api/attachment/attachment.attributes.js +++ b/server/api/attachment/attachment.attributes.js @@ -1 +1 @@ -const a28_0x12bc=['sequelize','exports','STRING'];(function(_0x34459a,_0x12bcc9){const _0x3e325e=function(_0x10a613){while(--_0x10a613){_0x34459a['push'](_0x34459a['shift']());}};_0x3e325e(++_0x12bcc9);}(a28_0x12bc,0x1e8));const a28_0x3e32=function(_0x34459a,_0x12bcc9){_0x34459a=_0x34459a-0x0;let _0x3e325e=a28_0x12bc[_0x34459a];return _0x3e325e;};const _0x39a7bf=a28_0x3e32;'use strict';const Sequelize=require(_0x39a7bf('0x1'));module[_0x39a7bf('0x2')]={'name':{'type':Sequelize[_0x39a7bf('0x0')]},'basename':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x39a7bf('0x0')]}}; \ No newline at end of file +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 diff --git a/server/api/attachment/attachment.controller.js b/server/api/attachment/attachment.controller.js index 7bc640b..aababe4 100644 --- a/server/api/attachment/attachment.controller.js +++ b/server/api/attachment/attachment.controller.js @@ -1 +1 @@ -const a29_0x3c95=['attributes','show','filters','index','file','then','options','server/files/attachments/','destroy','intersection','path','offset','send','error','model','lodash','mimetype','count','undefined','sort','includeAll','updatedAt','rawAttributes','../../mysqldb','merge','filename','keys','api','fields','map','where','sequelize','name','VIRTUAL','include','set','../../components/parsers/qs','params','update','catch','createdAt','join','originalname','length','Attachment','clone','stack','create','download','findOne','like','status','limit','type','get','json','fieldName','query','nolimit','body','../../config/logger','omit'];(function(_0xdb0424,_0x3c958a){const _0x160485=function(_0xbb72af){while(--_0xbb72af){_0xdb0424['push'](_0xdb0424['shift']());}};_0x160485(++_0x3c958a);}(a29_0x3c95,0xa5));const a29_0x1604=function(_0xdb0424,_0x3c958a){_0xdb0424=_0xdb0424-0x0;let _0x160485=a29_0x3c95[_0xdb0424];return _0x160485;};const _0x577481=a29_0x1604;'use strict';const path=require(_0x577481('0x1f')),_=require(_0x577481('0x24')),qs=require(_0x577481('0x39')),logger=require(_0x577481('0x13'))(_0x577481('0x30')),config=require('../../config/environment'),db=require(_0x577481('0x2c'))['db'],{Op}=require(_0x577481('0x34'));function respondWithResult(_0xbb72af,_0x5c22f4){return _0x5c22f4=_0x5c22f4||0xc8,function(_0x192815){const _0x40153c=a29_0x1604;if(_0x192815)return _0xbb72af[_0x40153c('0xa')](_0x5c22f4)['json'](_0x192815);};}function respondWithFilteredResult(_0xcf2b91,_0x135442){return function(_0x3632af){const _0x1c58a0=a29_0x1604;if(_0x3632af){const _0x49b169=_0x3632af[_0x1c58a0('0x26')],_0x2f7807=_0x135442[_0x1c58a0('0x20')];let _0x49bb7f=_0x135442[_0x1c58a0('0x20')]+_0x135442[_0x1c58a0('0xb')],_0x3b766f;return _0x49bb7f>=_0x49b169?(_0x49bb7f=_0x49b169,_0x3b766f=0xc8):_0x3b766f=0xce,_0xcf2b91[_0x1c58a0('0xa')](_0x3b766f),_0xcf2b91[_0x1c58a0('0x38')]('Content-Range',_0x2f7807+'-'+_0x49bb7f+'/'+_0x49b169)[_0x1c58a0('0xe')](_0x3632af);}return null;};}function saveUpdates(_0x3d212c){return function(_0x5301a5){const _0xbf6526=a29_0x1604;if(_0x5301a5)return _0x5301a5[_0xbf6526('0x3b')](_0x3d212c)[_0xbf6526('0x1a')](function(_0xeefbf6){return _0xeefbf6;});return null;};}function removeEntity(_0x5b5be7){return function(_0x329db4){const _0x5698ba=a29_0x1604;if(_0x329db4)return _0x329db4['destroy']()[_0x5698ba('0x1a')](function(){const _0x279cc1=_0x5698ba;_0x5b5be7[_0x279cc1('0xa')](0xcc)['end']();});};}function handleEntityNotFound(_0x39f4fb){return function(_0x158206){return!_0x158206&&_0x39f4fb['sendStatus'](0x194),_0x158206;};}function handleError(_0x5baacf,_0x58236c){return _0x58236c=_0x58236c||0x1f4,function(_0x2aec1e){const _0x471d30=a29_0x1604;logger[_0x471d30('0x22')](_0x2aec1e[_0x471d30('0x5')]),_0x2aec1e['name']&&delete _0x2aec1e[_0x471d30('0x35')],_0x5baacf[_0x471d30('0xa')](_0x58236c)[_0x471d30('0x21')](_0x2aec1e);};}exports[_0x577481('0x18')]=function(_0x431bcf,_0x21ed47){const _0x1bc5fa=_0x577481;let _0x1effce={};const _0x2449ff={},_0x12f883={'count':0x0,'rows':[]},_0x2bbeba=_['map'](db[_0x1bc5fa('0x3')][_0x1bc5fa('0x2b')],function(_0x516929){const _0x4a09fe=_0x1bc5fa;return{'name':_0x516929[_0x4a09fe('0xf')],'type':_0x516929[_0x4a09fe('0xc')]['key']};});_0x2449ff[_0x1bc5fa('0x23')]=_[_0x1bc5fa('0x32')](_0x2bbeba,_0x1bc5fa('0x35')),_0x2449ff[_0x1bc5fa('0x10')]=_[_0x1bc5fa('0x2f')](_0x431bcf[_0x1bc5fa('0x10')]),_0x2449ff['filters']=_[_0x1bc5fa('0x1e')](_0x2449ff['model'],_0x2449ff[_0x1bc5fa('0x10')]),_0x1effce['attributes']=_[_0x1bc5fa('0x1e')](_0x2449ff[_0x1bc5fa('0x23')],qs[_0x1bc5fa('0x31')](_0x431bcf[_0x1bc5fa('0x10')][_0x1bc5fa('0x31')])),_0x1effce['attributes']=_0x1effce[_0x1bc5fa('0x15')][_0x1bc5fa('0x2')]?_0x1effce[_0x1bc5fa('0x15')]:_0x2449ff[_0x1bc5fa('0x23')];typeof _0x431bcf[_0x1bc5fa('0x10')][_0x1bc5fa('0x11')]===_0x1bc5fa('0x27')&&(_0x1effce[_0x1bc5fa('0xb')]=qs['limit'](_0x431bcf[_0x1bc5fa('0x10')][_0x1bc5fa('0xb')]),_0x1effce[_0x1bc5fa('0x20')]=qs[_0x1bc5fa('0x20')](_0x431bcf[_0x1bc5fa('0x10')][_0x1bc5fa('0x20')]));_0x1effce['order']=qs[_0x1bc5fa('0x28')](_0x431bcf[_0x1bc5fa('0x10')][_0x1bc5fa('0x28')]),_0x1effce[_0x1bc5fa('0x33')]=qs[_0x1bc5fa('0x17')](_['pick'](_0x431bcf[_0x1bc5fa('0x10')],_0x2449ff['filters']),_0x2bbeba);_0x431bcf['query']['filter']&&(_0x1effce[_0x1bc5fa('0x33')]=_[_0x1bc5fa('0x2d')](_0x1effce[_0x1bc5fa('0x33')],{[Op['or']]:_[_0x1bc5fa('0x32')](_0x2bbeba,function(_0x1125a4){const _0xf751=_0x1bc5fa;if(_0x1125a4['type']!==_0xf751('0x36')){const _0x577a24={};return _0x577a24[_0x1125a4[_0xf751('0x35')]]={[Op[_0xf751('0x9')]]:'%'+_0x431bcf[_0xf751('0x10')]['filter']+'%'},_0x577a24;}})}));_0x1effce=_['merge']({},_0x1effce,_0x431bcf['options']);const _0xac7181={'where':_0x1effce[_0x1bc5fa('0x33')]};return db[_0x1bc5fa('0x3')][_0x1bc5fa('0x26')](_0xac7181)['then'](function(_0x433de4){const _0x5f2567=_0x1bc5fa;return _0x12f883[_0x5f2567('0x26')]=_0x433de4,_0x431bcf['query'][_0x5f2567('0x29')]&&(_0x1effce[_0x5f2567('0x37')]=[{'all':!![]}]),db['Attachment']['findAll'](_0x1effce);})[_0x1bc5fa('0x1a')](function(_0x802c17){return _0x12f883['rows']=_0x802c17,_0x12f883;})[_0x1bc5fa('0x1a')](respondWithFilteredResult(_0x21ed47,_0x1effce))[_0x1bc5fa('0x3c')](handleError(_0x21ed47,null));},exports[_0x577481('0x16')]=function(_0x527bb4,_0x5aef10){const _0x19eff9=_0x577481;let _0x2b9702={'raw':!![],'where':{'id':_0x527bb4[_0x19eff9('0x3a')]['id']}};const _0x372d88={};return _0x372d88[_0x19eff9('0x23')]=_[_0x19eff9('0x2f')](db[_0x19eff9('0x3')][_0x19eff9('0x2b')]),_0x372d88[_0x19eff9('0x10')]=_[_0x19eff9('0x2f')](_0x527bb4[_0x19eff9('0x10')]),_0x372d88[_0x19eff9('0x17')]=_[_0x19eff9('0x1e')](_0x372d88[_0x19eff9('0x23')],_0x372d88[_0x19eff9('0x10')]),_0x2b9702[_0x19eff9('0x15')]=_[_0x19eff9('0x1e')](_0x372d88[_0x19eff9('0x23')],qs['fields'](_0x527bb4[_0x19eff9('0x10')][_0x19eff9('0x31')])),_0x2b9702[_0x19eff9('0x15')]=_0x2b9702[_0x19eff9('0x15')]['length']?_0x2b9702['attributes']:_0x372d88[_0x19eff9('0x23')],_0x527bb4[_0x19eff9('0x10')][_0x19eff9('0x29')]&&(_0x2b9702[_0x19eff9('0x37')]=[{'all':!![]}]),_0x2b9702=_['merge']({},_0x2b9702,_0x527bb4[_0x19eff9('0x1b')]),db['Attachment'][_0x19eff9('0x8')](_0x2b9702)['then'](handleEntityNotFound(_0x5aef10,null))[_0x19eff9('0x1a')](respondWithResult(_0x5aef10,null))[_0x19eff9('0x3c')](handleError(_0x5aef10,null));},exports[_0x577481('0x4')]=function(_0x36e123,_0x470e95){const _0x4a1c1c=_0x577481;let _0x831b26={'where':{'id':_0x36e123[_0x4a1c1c('0x3a')]['id']}};const _0x2d81cf={};return _0x2d81cf[_0x4a1c1c('0x23')]=_['keys'](db[_0x4a1c1c('0x3')]['rawAttributes']),_0x831b26[_0x4a1c1c('0x15')]=_[_0x4a1c1c('0x1e')](_0x2d81cf['model'],qs['fields'](_0x36e123[_0x4a1c1c('0x10')][_0x4a1c1c('0x31')])),_0x831b26[_0x4a1c1c('0x15')]=_0x831b26[_0x4a1c1c('0x15')][_0x4a1c1c('0x2')]?_0x831b26[_0x4a1c1c('0x15')]:_0x2d81cf[_0x4a1c1c('0x23')],_0x36e123[_0x4a1c1c('0x10')]['includeAll']&&(_0x831b26[_0x4a1c1c('0x37')]=[{'all':!![]}]),_0x831b26=_[_0x4a1c1c('0x2d')]({},_0x831b26,_0x36e123[_0x4a1c1c('0x1b')]),db[_0x4a1c1c('0x3')][_0x4a1c1c('0x8')](_0x831b26)[_0x4a1c1c('0x1a')](handleEntityNotFound(_0x470e95,null))[_0x4a1c1c('0x1a')](function(_0x30f5ca){const _0x1b1463=_0x4a1c1c;if(_0x30f5ca){let _0x225880=_0x30f5ca[_0x1b1463('0xd')]({'plain':!![]});return _0x225880=qs[_0x1b1463('0x14')](_0x225880,['id','createdAt',_0x1b1463('0x2a')]),_0x36e123[_0x1b1463('0x12')]=_[_0x1b1463('0x14')](_0x36e123[_0x1b1463('0x12')],['id',_0x1b1463('0x3d'),'updatedAt']),db['Attachment']['create'](_[_0x1b1463('0x2d')](_0x225880,_0x36e123['body']),{'include':_0x36e123[_0x1b1463('0x10')][_0x1b1463('0x29')]?[{'all':!![]}]:undefined});}})[_0x4a1c1c('0x1a')](respondWithResult(_0x470e95,0xc9))[_0x4a1c1c('0x3c')](handleError(_0x470e95,null));},exports[_0x577481('0x3b')]=function(_0x69a48,_0x3fdcf8){const _0x24c961=_0x577481;return _0x69a48[_0x24c961('0x12')]['id']&&delete _0x69a48[_0x24c961('0x12')]['id'],db[_0x24c961('0x3')][_0x24c961('0x8')]({'where':{'id':_0x69a48['params']['id']}})[_0x24c961('0x1a')](handleEntityNotFound(_0x3fdcf8,null))[_0x24c961('0x1a')](saveUpdates(_0x69a48[_0x24c961('0x12')],null))[_0x24c961('0x1a')](respondWithResult(_0x3fdcf8,null))[_0x24c961('0x3c')](handleError(_0x3fdcf8,null));},exports[_0x577481('0x1d')]=function(_0x2171f2,_0x4f6eb5){const _0x2153ed=_0x577481;return db['Attachment'][_0x2153ed('0x8')]({'where':{'id':_0x2171f2['params']['id']}})[_0x2153ed('0x1a')](handleEntityNotFound(_0x4f6eb5,null))[_0x2153ed('0x1a')](removeEntity(_0x4f6eb5,null))[_0x2153ed('0x3c')](handleError(_0x4f6eb5,null));},exports['create']=function(_0x3c472b,_0x362eff){const _0x26e39d=_0x577481;return _0x3c472b[_0x26e39d('0x12')]['name']=_0x3c472b[_0x26e39d('0x19')][_0x26e39d('0x1')],_0x3c472b[_0x26e39d('0x12')]['basename']=_0x3c472b[_0x26e39d('0x19')][_0x26e39d('0x2e')],_0x3c472b['body'][_0x26e39d('0xc')]=_0x3c472b[_0x26e39d('0x19')][_0x26e39d('0x25')],db[_0x26e39d('0x3')][_0x26e39d('0x6')](_0x3c472b[_0x26e39d('0x12')])['then'](respondWithResult(_0x362eff,0xc9))[_0x26e39d('0x3c')](handleError(_0x362eff,null));},exports[_0x577481('0x7')]=function(_0x4f2bea,_0x3ae38f){const _0x45aeb0=_0x577481;return db[_0x45aeb0('0x3')]['findOne']({'where':{'id':_0x4f2bea[_0x45aeb0('0x3a')]['id']},'raw':!![]})[_0x45aeb0('0x1a')](handleEntityNotFound(_0x3ae38f,null))['then'](function(_0x5424db){const _0x26ac3a=_0x45aeb0;if(_0x5424db)return _0x3ae38f[_0x26ac3a('0x7')](path[_0x26ac3a('0x0')](config['root'],_0x26ac3a('0x1c'),_0x5424db['basename']));})[_0x45aeb0('0x3c')](handleError(_0x3ae38f,null));}; \ No newline at end of file +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 diff --git a/server/api/attachment/attachment.model.js b/server/api/attachment/attachment.model.js index 0bc9af9..e4ea15b 100644 --- a/server/api/attachment/attachment.model.js +++ b/server/api/attachment/attachment.model.js @@ -1 +1 @@ -const a30_0x2970=['define','./attachment.attributes','exports','Attachment','attachments'];(function(_0x3951a5,_0x2970b9){const _0x2a422c=function(_0x4a0285){while(--_0x4a0285){_0x3951a5['push'](_0x3951a5['shift']());}};_0x2a422c(++_0x2970b9);}(a30_0x2970,0xc4));const a30_0x2a42=function(_0x3951a5,_0x2970b9){_0x3951a5=_0x3951a5-0x0;let _0x2a422c=a30_0x2970[_0x3951a5];return _0x2a422c;};const _0x2cd811=a30_0x2a42;'use strict';const attributes=require(_0x2cd811('0x0'));module[_0x2cd811('0x1')]=function(_0x4a0285){const _0x481230=_0x2cd811,_0x2506f8=_0x4a0285[_0x481230('0x4')](_0x481230('0x2'),attributes,{'tableName':_0x481230('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2506f8;}; \ No newline at end of file +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 diff --git a/server/api/attachment/attachment.rpc.js b/server/api/attachment/attachment.rpc.js index 6f78ecd..beb3ab4 100644 --- a/server/api/attachment/attachment.rpc.js +++ b/server/api/attachment/attachment.rpc.js @@ -1 +1 @@ -const a31_0x329a=['error','raw','message','body','CreateAttachment','../../mysqldb','then','rpc','Attachment','debug','create','options'];(function(_0xeaeafe,_0x329ab7){const _0x126551=function(_0x57b85f){while(--_0x57b85f){_0xeaeafe['push'](_0xeaeafe['shift']());}};_0x126551(++_0x329ab7);}(a31_0x329a,0xb2));const a31_0x1265=function(_0xeaeafe,_0x329ab7){_0xeaeafe=_0xeaeafe-0x0;let _0x126551=a31_0x329a[_0xeaeafe];return _0x126551;};const _0x1c6c41=a31_0x1265;'use strict';const db=require(_0x1c6c41('0x7'))['db'],logger=require('../../config/logger')(_0x1c6c41('0x9'));exports[_0x1c6c41('0x6')]=function(_0x57b85f){const _0x502c20=this;return new Promise(function(_0x362f1c,_0x472a6c){const _0x4976c0=a31_0x1265;return db[_0x4976c0('0xa')][_0x4976c0('0x0')](_0x57b85f[_0x4976c0('0x5')],{'raw':_0x57b85f[_0x4976c0('0x1')]?_0x57b85f[_0x4976c0('0x1')][_0x4976c0('0x3')]===undefined?!![]:![]:!![]})[_0x4976c0('0x8')](function(_0x4ae1c4){const _0x29a19f=_0x4976c0;logger['info'](_0x29a19f('0x6'),_0x57b85f),logger[_0x29a19f('0xb')](_0x29a19f('0x6'),_0x57b85f,JSON['stringify'](_0x4ae1c4)),_0x362f1c(_0x4ae1c4);})['catch'](function(_0x4be165){const _0x28d7dc=_0x4976c0;logger[_0x28d7dc('0x2')](_0x28d7dc('0x6'),_0x4be165[_0x28d7dc('0x4')],_0x57b85f),_0x472a6c(_0x502c20[_0x28d7dc('0x2')](0x1f4,_0x4be165[_0x28d7dc('0x4')]));});});}; \ No newline at end of file +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 diff --git a/server/api/attachment/index.js b/server/api/attachment/index.js index e8c9c62..9e5ad2f 100644 --- a/server/api/attachment/index.js +++ b/server/api/attachment/index.js @@ -1 +1 @@ -const a32_0x1681=['originalname','Router','single','post','destroy','replace','/:id/clone','server/files/attachments/','path','/:id','../../config/environment','root','create','multer','index','show','util','isAuthenticated','file','delete','./attachment.controller','download','put','format','get','../../components/auth/service','exports'];(function(_0x4ed352,_0x16813c){const _0x7591a5=function(_0x1ff6f4){while(--_0x1ff6f4){_0x4ed352['push'](_0x4ed352['shift']());}};_0x7591a5(++_0x16813c);}(a32_0x1681,0x16c));const a32_0x7591=function(_0x4ed352,_0x16813c){_0x4ed352=_0x4ed352-0x0;let _0x7591a5=a32_0x1681[_0x4ed352];return _0x7591a5;};const _0x4dd22e=a32_0x7591;'use strict';const multer=require(_0x4dd22e('0x0')),util=require(_0x4dd22e('0x3')),path=require(_0x4dd22e('0x16')),express=require('express'),router=express[_0x4dd22e('0xf')](),auth=require(_0x4dd22e('0xc')),config=require(_0x4dd22e('0x18')),controller=require(_0x4dd22e('0x7'));router[_0x4dd22e('0xb')]('/',auth[_0x4dd22e('0x4')](),controller[_0x4dd22e('0x1')]),router[_0x4dd22e('0xb')](_0x4dd22e('0x17'),auth[_0x4dd22e('0x4')](),controller[_0x4dd22e('0x2')]),router[_0x4dd22e('0xb')]('/:id/download',auth[_0x4dd22e('0x4')](),controller[_0x4dd22e('0x8')]),router['post'](_0x4dd22e('0x14'),auth[_0x4dd22e('0x4')](),controller['clone']);const upload=multer({'storage':multer['diskStorage']({'destination':function(_0x1ff6f4,_0x1feb0a,_0x45f491){const _0x484155=_0x4dd22e;_0x45f491(null,path['join'](config[_0x484155('0x19')],_0x484155('0x15')));},'filename':function(_0xed21c5,_0x455c2c,_0x943863){const _0x28390f=_0x4dd22e;_0x943863(null,util[_0x28390f('0xa')]('%s-%s',Date['now'](),_0x455c2c[_0x28390f('0xe')][_0x28390f('0x13')](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x4dd22e('0x11')]('/',upload[_0x4dd22e('0x10')](_0x4dd22e('0x5')),controller[_0x4dd22e('0x1a')]),router[_0x4dd22e('0x9')](_0x4dd22e('0x17'),auth[_0x4dd22e('0x4')](),controller['update']),router[_0x4dd22e('0x6')](_0x4dd22e('0x17'),auth[_0x4dd22e('0x4')](),controller[_0x4dd22e('0x12')]),module[_0x4dd22e('0xd')]=router; \ No newline at end of file +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 diff --git a/server/api/authGoogle/authGoogle.controller.js b/server/api/authGoogle/authGoogle.controller.js index f4a0e17..cb66d89 100644 --- a/server/api/authGoogle/authGoogle.controller.js +++ b/server/api/authGoogle/authGoogle.controller.js @@ -1 +1 @@ -const a33_0xe256=['getLicense','../../mysqldb','profile','Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.','clientSecret','passport','blockDuration','../../config/environment','disabled','clientID','catch','Strategy','../../config/utils','callbackURL','google','email','blocked','value','then','passport-google-oauth20','user','/login','sequelize'];(function(_0xfa3f6a,_0xe2567a){const _0x47bd3d=function(_0x14f1ab){while(--_0x14f1ab){_0xfa3f6a['push'](_0xfa3f6a['shift']());}};_0x47bd3d(++_0xe2567a);}(a33_0xe256,0xc1));const a33_0x47bd=function(_0xfa3f6a,_0xe2567a){_0xfa3f6a=_0xfa3f6a-0x0;let _0x47bd3d=a33_0xe256[_0xfa3f6a];return _0x47bd3d;};const _0x5a564f=a33_0x47bd;'use strict';const _=require('lodash'),passport=require(_0x5a564f('0x13')),GoogleStrategy=require(_0x5a564f('0xa'))[_0x5a564f('0x2')],moment=require('moment'),db=require(_0x5a564f('0xf'))['db'],config=require(_0x5a564f('0x15')),utils=require(_0x5a564f('0x3')),{Op}=require(_0x5a564f('0xd'));exports['login']=passport['authenticate']('google',{'failureRedirect':'/login','scope':[_0x5a564f('0x10'),_0x5a564f('0x6')],'session':![]}),exports['callback']=passport['authenticate'](_0x5a564f('0x5'),{'failureRedirect':_0x5a564f('0xc'),'session':![]}),passport['use'](new GoogleStrategy({'clientID':config[_0x5a564f('0x5')]?config[_0x5a564f('0x5')][_0x5a564f('0x0')]:'id','clientSecret':config[_0x5a564f('0x5')]?config[_0x5a564f('0x5')][_0x5a564f('0x12')]:'secret','callbackURL':config[_0x5a564f('0x5')]?config[_0x5a564f('0x5')][_0x5a564f('0x4')]:''},function(_0x14f1ab,_0x29f4b3,_0x507fb4,_0x3b31ec){const _0x54c4da=_0x5a564f;let _0x4c3cbe,_0x30b667;return db['Setting']['findOne']({'where':{'id':0x1},'attributes':['allowedLoginAttempts',_0x54c4da('0x14')],'raw':!![]})[_0x54c4da('0x9')](function(_0x442d40){const _0x230ee8=_0x54c4da;return _0x4c3cbe=_0x442d40,db['Use']['findOne']({'where':{'email':_['map'](_0x507fb4['emails'],_0x230ee8('0x8')),'role':{[Op['or']]:['admin',_0x230ee8('0xb'),'agent']}}});})['then'](function(_0x5e1c2c){const _0xc5f630=_0x54c4da;_0x30b667=_0x5e1c2c;if(_0x30b667){if(_0x30b667[_0xc5f630('0x16')])return _0x3b31ec(_0xc5f630('0x11'));else return _0x4c3cbe['blockDuration']>0x0?_0x30b667[_0xc5f630('0x7')]?moment(_0x30b667['blockedAt'])['add'](_0x4c3cbe[_0xc5f630('0x14')],'minutes')>moment()?_0x3b31ec('Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'):utils['clearBlockUser'](_0x30b667,0x0,![],null)[_0xc5f630('0x9')](function(){const _0x338263=_0xc5f630;return utils[_0x338263('0xe')](_0x30b667);})['then'](function(){return _0x3b31ec(null,_0x30b667);}):utils[_0xc5f630('0xe')](_0x30b667)[_0xc5f630('0x9')](function(){return _0x3b31ec(null,_0x30b667);}):utils[_0xc5f630('0xe')](_0x30b667)[_0xc5f630('0x9')](function(){return _0x3b31ec(null,_0x30b667);});}return _0x3b31ec(_0xc5f630('0x11'));})[_0x54c4da('0x1')](function(_0x587b8c){_0x3b31ec(_0x587b8c);});})); \ No newline at end of file +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 diff --git a/server/api/authGoogle/index.js b/server/api/authGoogle/index.js index 0dbf93a..e9aa106 100644 --- a/server/api/authGoogle/index.js +++ b/server/api/authGoogle/index.js @@ -1 +1 @@ -const a34_0x50d5=['Router','../../components/auth/service','isMiddleware','setTokenCookie','exports','../user/user.controller.js','login','callback','./authGoogle.controller','get'];(function(_0x5285e7,_0x50d5b2){const _0x5c3efd=function(_0x504c6c){while(--_0x504c6c){_0x5285e7['push'](_0x5285e7['shift']());}};_0x5c3efd(++_0x50d5b2);}(a34_0x50d5,0x1c2));const a34_0x5c3e=function(_0x5285e7,_0x50d5b2){_0x5285e7=_0x5285e7-0x0;let _0x5c3efd=a34_0x50d5[_0x5285e7];return _0x5c3efd;};const _0x2de78b=a34_0x5c3e;'use strict';const express=require('express'),router=express[_0x2de78b('0x0')](),controller=require(_0x2de78b('0x8')),userController=require(_0x2de78b('0x5')),authService=require(_0x2de78b('0x1'));router[_0x2de78b('0x9')]('/',controller[_0x2de78b('0x6')]),router[_0x2de78b('0x9')]('/callback',controller[_0x2de78b('0x7')],authService[_0x2de78b('0x2')],userController[_0x2de78b('0x6')],authService[_0x2de78b('0x3')]),module[_0x2de78b('0x4')]=router; \ No newline at end of file +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 diff --git a/server/api/authLocal/authLocal.controller.js b/server/api/authLocal/authLocal.controller.js index 59df54c..745ca2e 100644 --- a/server/api/authLocal/authLocal.controller.js +++ b/server/api/authLocal/authLocal.controller.js @@ -1 +1 @@ -const a35_0x5af3=['agent','auth','body','You\x20are\x20receiving\x20this\x20because\x20you\x20(or\x20someone\x20else)\x20have\x20requested\x20the\x20reset\x20of\x20the\x20password\x20for\x20your\x20account.\x0a\x0a','This\x20email\x20is\x20not\x20registered.','minutes','Use','signToken','online','http','reset','admin','allowedLoginAttempts','passwordHistoryLimit','resetPasswordExpires','Something\x20went\x20wrong,\x20please\x20try\x20again.','sequelize','local','xCally\x20Motion\x20Password\x20Reset','SendMail\x20error:\x20%s.\x20Please\x20contact\x20your\x20Administrator!','resetPasswordToken','Smtp','now','blockDuration','Please\x20click\x20on\x20the\x20following\x20link,\x20or\x20paste\x20this\x20into\x20your\x20browser\x20to\x20complete\x20the\x20process:\x0a\x0a','params','loginAttempts','lodash','getLicense','jayson/promise','generate','client','catch','../../mysqldb','authentication','User','../../config/utils','SendMail','host','The\x20user\x20is\x20disabled.\x20Please\x20contact\x20the\x20administrator.','validatePasswordHistory','passport','enforcePasswordHistory','securePassword','MailServerOut','Reset\x20Email\x20sent!','send','request','stringify','Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.','json','login','token','Password\x20reset\x20token\x20is\x20invalid\x20or\x20has\x20expired.','disabled','util','passport-local','save','Email\x20parameter\x20is\x20missing','salt','port','use','previousPasswords','name','pass','message','service','authenticate','blocked','blockedAt','The\x20user\x20is\x20blocked.\x20Please\x20contact\x20the\x20administrator.','randomstring','user','findOne','moment','status','../../components/auth/service','error','password','merge','If\x20you\x20did\x20not\x20request\x20this,\x20please\x20ignore\x20this\x20email\x20and\x20your\x20password\x20will\x20remain\x20unchanged.\x0a','Setting','clearBlockUser','email','Strategy','then','format','secure','add','forgot'];(function(_0x4bb8ce,_0x5af323){const _0x4ed99f=function(_0x5a261d){while(--_0x5a261d){_0x4bb8ce['push'](_0x4bb8ce['shift']());}};_0x4ed99f(++_0x5af323);}(a35_0x5af3,0x1cb));const a35_0x4ed9=function(_0x4bb8ce,_0x5af323){_0x4bb8ce=_0x4bb8ce-0x0;let _0x4ed99f=a35_0x5af3[_0x4bb8ce];return _0x4ed99f;};const _0x1e03f0=a35_0x4ed9;'use strict';const util=require(_0x1e03f0('0x2e')),passport=require(_0x1e03f0('0x20')),LocalStrategy=require(_0x1e03f0('0x2f'))[_0x1e03f0('0x4b')],jayson=require(_0x1e03f0('0x14')),_=require(_0x1e03f0('0x12')),rs=require(_0x1e03f0('0x3e')),moment=require(_0x1e03f0('0x41')),db=require(_0x1e03f0('0x18'))['db'],{Op}=require(_0x1e03f0('0x7')),authService=require(_0x1e03f0('0x43')),utils=require(_0x1e03f0('0x1b')),client=jayson[_0x1e03f0('0x16')][_0x1e03f0('0x0')]({'port':0x232b});function localAuthenticate(_0x5a261d,_0x38b4f0,_0x367a1a,_0xde87ec){const _0x371fa6=_0x1e03f0;let _0x365f80,_0x3ee600;return db[_0x371fa6('0x48')][_0x371fa6('0x40')]({'where':{'id':0x1},'attributes':[_0x371fa6('0x3'),'blockDuration'],'raw':!![]})[_0x371fa6('0x4c')](function(_0x14a6ef){const _0x1ccaf1=_0x371fa6;return _0x365f80=_0x14a6ef,_0x5a261d['findOne']({'attributes':['id',_0x1ccaf1('0x36'),'password',_0x1ccaf1('0x32'),'role',_0x1ccaf1('0x2d'),_0x1ccaf1('0x3b'),_0x1ccaf1('0x3c'),_0x1ccaf1('0x11')],'where':{'name':_0x38b4f0,'role':{[Op['or']]:[_0x1ccaf1('0x2'),'user',_0x1ccaf1('0x51')]}}});})[_0x371fa6('0x4c')](function(_0x13f19a){const _0x469192=_0x371fa6;if(!_0x13f19a||_0x13f19a&&_0x13f19a[_0x469192('0x36')]!==_0x38b4f0)throw new Error('Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.');else return _0x3ee600=_0x13f19a,_0x3ee600;})['then'](function(){_0x3ee600['authenticate'](_0x367a1a,function(_0x4c9cb3,_0x3d4c30){const _0x16130a=a35_0x4ed9,_0x1dd170=_0x3ee600['loginAttempts']+0x1;if(_0x4c9cb3)return _0xde87ec(_0x4c9cb3);else{if(!_0x3d4c30){if(_0x3ee600[_0x16130a('0x2d')])return _0xde87ec(null,![],{'message':_0x16130a('0x28')});else return _0x365f80[_0x16130a('0x3')]>0x0?_0x3ee600[_0x16130a('0x3b')]?_0x365f80[_0x16130a('0xe')]>0x0?moment(_0x3ee600['blockedAt'])[_0x16130a('0x4f')](_0x365f80[_0x16130a('0xe')],_0x16130a('0x56'))>moment()?_0xde87ec(null,![],{'message':_0x16130a('0x28')}):utils[_0x16130a('0x49')](_0x3ee600,_0x1dd170,![],null)[_0x16130a('0x4c')](function(){const _0x3e4802=_0x16130a;return _0xde87ec(null,![],{'message':_0x3e4802('0x28')});}):_0xde87ec(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'}):_0x1dd170>=_0x365f80['allowedLoginAttempts']?utils[_0x16130a('0x49')](_0x3ee600,0x0,!![],moment())[_0x16130a('0x4c')](function(){const _0x5baf06=_0x16130a;return _0xde87ec(null,![],{'message':_0x5baf06('0x28')});}):utils[_0x16130a('0x49')](_0x3ee600,_0x1dd170,![],null)['then'](function(){return _0xde87ec(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'});}):_0xde87ec(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'});}else{if(_0x3ee600[_0x16130a('0x2d')])return _0xde87ec(null,![],{'message':_0x16130a('0x28')});else return _0x365f80[_0x16130a('0x3')]>0x0?_0x3ee600[_0x16130a('0x3b')]?_0x365f80['blockDuration']>0x0?moment(_0x3ee600[_0x16130a('0x3c')])[_0x16130a('0x4f')](_0x365f80['blockDuration'],_0x16130a('0x56'))>moment()?_0xde87ec(null,![],{'message':_0x16130a('0x28')}):utils[_0x16130a('0x49')](_0x3ee600,0x0,![],null)[_0x16130a('0x4c')](function(){const _0x3a39a5=_0x16130a;return utils[_0x3a39a5('0x13')](_0x3ee600);})['then'](function(){return _0xde87ec(null,_0x3ee600);}):_0xde87ec(null,![],{'message':_0x16130a('0x28')}):utils['clearBlockUser'](_0x3ee600,0x0,![],null)['then'](function(){const _0x5c8e98=_0x16130a;return utils[_0x5c8e98('0x13')](_0x3ee600);})[_0x16130a('0x4c')](function(){return _0xde87ec(null,_0x3ee600);})[_0x16130a('0x17')](function(_0x1c0f8c){return _0xde87ec(null,![],_0x1c0f8c);}):_0x3ee600[_0x16130a('0x3b')]?_0xde87ec(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'}):utils['getLicense'](_0x3ee600)[_0x16130a('0x4c')](function(){return _0xde87ec(null,_0x3ee600);});}}});})['catch'](function(_0x2794f1){return _0xde87ec(null,![],_0x2794f1);});}function sendServiceMail(_0x4d4c4c){const _0x2d3a23=_0x1e03f0;return db['MailAccount']['findOne']({'where':{'service':!![]},'attributes':['id',_0x2d3a23('0x36'),'email'],'include':[{'model':db[_0x2d3a23('0x23')],'as':_0x2d3a23('0xc')}]})[_0x2d3a23('0x4c')](function(_0x3abe80){const _0x2f1c32=_0x2d3a23;if(!_0x3abe80)throw new Error('Unable\x20to\x20find\x20a\x20configured\x20SMTP\x20service!');const _0x5a79d8={'tls':{'rejectUnauthorized':![]}};_0x3abe80[_0x2f1c32('0xc')][_0x2f1c32('0x39')]?_0x5a79d8['service']=_0x3abe80[_0x2f1c32('0xc')][_0x2f1c32('0x39')]:(_0x5a79d8['host']=_0x3abe80[_0x2f1c32('0xc')][_0x2f1c32('0x1d')],_0x5a79d8[_0x2f1c32('0x33')]=_0x3abe80['Smtp']['port'],_0x5a79d8[_0x2f1c32('0x4e')]=_0x3abe80[_0x2f1c32('0xc')]['secure']);_0x3abe80[_0x2f1c32('0xc')][_0x2f1c32('0x19')]&&(_0x5a79d8[_0x2f1c32('0x52')]={'user':_0x3abe80[_0x2f1c32('0xc')][_0x2f1c32('0x3f')],'pass':_0x3abe80['Smtp'][_0x2f1c32('0x37')]});const _0x111da9={'account':_0x5a79d8,'message':_[_0x2f1c32('0x46')]({'from':util[_0x2f1c32('0x4d')]('\x22%s\x22\x20<%s>',_0x3abe80['name'],_0x3abe80['email']||_0x3abe80[_0x2f1c32('0xc')][_0x2f1c32('0x3f')])},_0x4d4c4c)};return client[_0x2f1c32('0x26')](_0x2f1c32('0x1c'),_0x111da9);})[_0x2d3a23('0x4c')](function(_0x390e93){const _0x43d559=_0x2d3a23;if(_0x390e93[_0x43d559('0x44')])throw new Error(util[_0x43d559('0x4d')](_0x43d559('0xa'),_0x390e93[_0x43d559('0x44')][_0x43d559('0x38')]||JSON[_0x43d559('0x27')](_0x390e93['error'])));return!![];});}function handleError(_0x33a633,_0xb05bc5,_0x58ebc7){const _0x3a4bc6=_0x1e03f0;return _0x33a633[_0x3a4bc6('0x42')](_0xb05bc5||0x1f4)[_0x3a4bc6('0x25')]({'message':_0x58ebc7?_0x58ebc7['message']||_0x58ebc7:''});}exports[_0x1e03f0('0x2a')]=function(_0x33d155,_0x2ff41c,_0x20c7e0){const _0x2bd1d8=_0x1e03f0;passport[_0x2bd1d8('0x3a')](_0x2bd1d8('0x8'),function(_0x1cea08,_0x1d89c5,_0x3b4cbd){const _0x37c7c2=_0x2bd1d8,_0x481cb6=_0x1cea08||_0x3b4cbd;if(_0x481cb6)return handleError(_0x2ff41c,0x191,_0x481cb6);if(!_0x1d89c5)return handleError(_0x2ff41c,0x194,{'message':_0x37c7c2('0x6')});else{const _0x51dd7e={'payload':{'id':_0x1d89c5['id'],'role':_0x1d89c5['role']},'options':{'expiresIn':0x15180}};return authService[_0x37c7c2('0x58')](_0x51dd7e)[_0x37c7c2('0x4c')](function(_0x17ba08){const _0xb2d8c2=_0x37c7c2;_0x2ff41c[_0xb2d8c2('0x29')]({'id':_0x1d89c5['id'],'token':_0x17ba08,'statusCall':'','isAlreadyLogged':_0x1d89c5[_0xb2d8c2('0x59')]});});}})(_0x33d155,_0x2ff41c,_0x20c7e0);},exports[_0x1e03f0('0x50')]=function(_0x185b46,_0x4326aa){const _0x3805c7=_0x1e03f0;if(!_0x185b46[_0x3805c7('0x53')]['email'])return handleError(_0x4326aa,0x1f4,{'message':_0x3805c7('0x31')});const _0x522b7b=rs[_0x3805c7('0x15')]();_0x185b46[_0x3805c7('0x53')][_0x3805c7('0x4a')]=_0x185b46[_0x3805c7('0x53')]['email']['trim']()['toLowerCase']();let _0x22bbe6;return db[_0x3805c7('0x48')][_0x3805c7('0x40')]({'where':{'id':0x1},'attributes':[_0x3805c7('0x3'),_0x3805c7('0xe')],'raw':!![]})[_0x3805c7('0x4c')](function(_0x2833e0){const _0x7331b5=_0x3805c7;return _0x22bbe6=_0x2833e0,db[_0x7331b5('0x57')][_0x7331b5('0x40')]({'where':{'email':_0x185b46[_0x7331b5('0x53')][_0x7331b5('0x4a')]}});})[_0x3805c7('0x4c')](function(_0x238cd0){const _0x3d7534=_0x3805c7;if(!_0x238cd0)throw new Error(_0x3d7534('0x55'));if(_0x238cd0[_0x3d7534('0x2d')])throw new Error(_0x3d7534('0x1e'));if(_0x238cd0[_0x3d7534('0x3b')]){if(moment(_0x238cd0[_0x3d7534('0x3c')])['add'](_0x22bbe6['blockDuration'],_0x3d7534('0x56'))>moment())throw new Error(_0x3d7534('0x3d'));else _0x238cd0[_0x3d7534('0x3b')]=![],_0x238cd0[_0x3d7534('0x3c')]=null;}return _0x238cd0['resetPasswordToken']=_0x522b7b,_0x238cd0[_0x3d7534('0x5')]=Date[_0x3d7534('0xd')]()+0x36ee80,_0x238cd0['save']();})[_0x3805c7('0x4c')](function(){const _0x4f9138=_0x3805c7;return sendServiceMail({'to':_0x185b46[_0x4f9138('0x53')][_0x4f9138('0x4a')],'subject':_0x4f9138('0x9'),'text':_0x4f9138('0x54')+_0x4f9138('0xf')+'http://'+_0x185b46['headers']['host']+'/reset/'+_0x522b7b+'\x0a\x0a'+_0x4f9138('0x47')});})['then'](function(){const _0x248384=_0x3805c7;_0x4326aa['status'](0xc8)['send']({'message':_0x248384('0x24')});})[_0x3805c7('0x17')](function(_0x29700e){return handleError(_0x4326aa,0x1f4,_0x29700e);});},exports[_0x1e03f0('0x1')]=function(_0x39d4eb,_0x39b424){const _0xa385cd=_0x1e03f0;return db[_0xa385cd('0x1a')][_0xa385cd('0x40')]({'where':{'resetPasswordToken':_0x39d4eb[_0xa385cd('0x10')][_0xa385cd('0x2b')],'resetPasswordExpires':{[Op['gt']]:Date[_0xa385cd('0xd')]()}}})[_0xa385cd('0x4c')](function(_0x1fa43a){const _0x4aeef1=_0xa385cd;if(!_0x1fa43a)throw new Error(_0x4aeef1('0x2c'));return db[_0x4aeef1('0x48')]['findOne']({'attributes':['id',_0x4aeef1('0x22'),_0x4aeef1('0x21'),_0x4aeef1('0x4')]})[_0x4aeef1('0x4c')](function(_0x327690){const _0x6b5b2d=_0x4aeef1;if(_0x327690[_0x6b5b2d('0x22')])authService['validatePasswordPattern'](_0x39d4eb[_0x6b5b2d('0x53')]['password']);if(!_0x327690['enforcePasswordHistory']||!_0x1fa43a['previousPasswords'])return _0x1fa43a;return authService[_0x6b5b2d('0x1f')](_0x39d4eb[_0x6b5b2d('0x53')][_0x6b5b2d('0x45')],_0x1fa43a[_0x6b5b2d('0x35')],_0x327690[_0x6b5b2d('0x4')]),_0x1fa43a;})[_0x4aeef1('0x4c')](function(){const _0x23ad33=_0x4aeef1;return _0x1fa43a[_0x23ad33('0x45')]=_0x39d4eb['body'][_0x23ad33('0x45')],_0x1fa43a[_0x23ad33('0xb')]=null,_0x1fa43a[_0x23ad33('0x5')]=null,_0x1fa43a[_0x23ad33('0x30')]();});})[_0xa385cd('0x4c')](function(){_0x39b424['status'](0xc8)['send']({'message':'Password\x20reset!'});})[_0xa385cd('0x17')](function(_0x12be5f){return handleError(_0x39b424,0x1f4,_0x12be5f);});},passport[_0x1e03f0('0x34')](new LocalStrategy({'usernameField':_0x1e03f0('0x36'),'passwordField':_0x1e03f0('0x45')},function(_0x490c75,_0x5f7f7b,_0x188b77){return localAuthenticate(db['User'],_0x490c75,_0x5f7f7b,_0x188b77);})); \ No newline at end of file +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 diff --git a/server/api/authLocal/index.js b/server/api/authLocal/index.js index b4fe116..086fb75 100644 --- a/server/api/authLocal/index.js +++ b/server/api/authLocal/index.js @@ -1 +1 @@ -const a36_0x4d4a=['./authLocal.controller','reset','/reset/:token','post','Router','exports','forgot'];(function(_0x1f3cf1,_0x4d4a2f){const _0x73e9a5=function(_0x522620){while(--_0x522620){_0x1f3cf1['push'](_0x1f3cf1['shift']());}};_0x73e9a5(++_0x4d4a2f);}(a36_0x4d4a,0x147));const a36_0x73e9=function(_0x1f3cf1,_0x4d4a2f){_0x1f3cf1=_0x1f3cf1-0x0;let _0x73e9a5=a36_0x4d4a[_0x1f3cf1];return _0x73e9a5;};const _0x271ca3=a36_0x73e9;'use strict';const express=require('express'),router=express[_0x271ca3('0x6')](),controller=require(_0x271ca3('0x2'));router[_0x271ca3('0x5')]('/',controller['login']),router[_0x271ca3('0x5')]('/forgot',controller[_0x271ca3('0x1')]),router[_0x271ca3('0x5')](_0x271ca3('0x4'),controller[_0x271ca3('0x3')]),module[_0x271ca3('0x0')]=router; \ No newline at end of file +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 diff --git a/server/api/automation/automation.attributes.js b/server/api/automation/automation.attributes.js index 85485b4..dedc8c1 100644 --- a/server/api/automation/automation.attributes.js +++ b/server/api/automation/automation.attributes.js @@ -1 +1 @@ -const a37_0x1576=['sequelize','exports','STRING','INTEGER','BOOLEAN'];(function(_0xd09ab8,_0x1576f9){const _0x1188ac=function(_0x21ba71){while(--_0x21ba71){_0xd09ab8['push'](_0xd09ab8['shift']());}};_0x1188ac(++_0x1576f9);}(a37_0x1576,0x139));const a37_0x1188=function(_0xd09ab8,_0x1576f9){_0xd09ab8=_0xd09ab8-0x0;let _0x1188ac=a37_0x1576[_0xd09ab8];return _0x1188ac;};const _0x428dbb=a37_0x1188;'use strict';const Sequelize=require(_0x428dbb('0x2'));module[_0x428dbb('0x3')]={'name':{'type':Sequelize[_0x428dbb('0x4')],'allowNull':![]},'channel':{'type':Sequelize[_0x428dbb('0x4')]},'description':{'type':Sequelize[_0x428dbb('0x4')]},'status':{'type':Sequelize[_0x428dbb('0x1')],'defaultValue':![]},'timeout':{'type':Sequelize[_0x428dbb('0x0')],'defaultValue':0xa}}; \ No newline at end of file +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 diff --git a/server/api/automation/automation.controller.js b/server/api/automation/automation.controller.js index f0ce70d..6f6c727 100644 --- a/server/api/automation/automation.controller.js +++ b/server/api/automation/automation.controller.js @@ -1 +1 @@ -const a38_0x2570=['send','intersection','end','rawAttributes','then','catch','merge','count','map','include','options','params','findOne','status','create','addActions','like','show','model','attributes','../../mysqldb','findAll','fields','ids','rows','sort','Condition','sendStatus','body','destroy','pick','length','keys','nolimit','order','Content-Range','limit','update','VIRTUAL','../../config/logger','filters','lodash','json','includeAll','offset','where','filter','undefined','set','Action','fieldName','name','../../components/parsers/qs','omit','getActions','stack','type','Automation','addConditions','getConditions','query'];(function(_0x2e7a87,_0x25704b){const _0x52f60b=function(_0x4bd928){while(--_0x4bd928){_0x2e7a87['push'](_0x2e7a87['shift']());}};_0x52f60b(++_0x25704b);}(a38_0x2570,0x172));const a38_0x52f6=function(_0x2e7a87,_0x25704b){_0x2e7a87=_0x2e7a87-0x0;let _0x52f60b=a38_0x2570[_0x2e7a87];return _0x52f60b;};const _0x8c3b29=a38_0x52f6;'use strict';const _=require(_0x8c3b29('0x25')),qs=require(_0x8c3b29('0x30')),logger=require(_0x8c3b29('0x23'))('api'),db=require(_0x8c3b29('0x10'))['db'],{Op}=require('sequelize');function respondWithResult(_0x4bd928,_0x1ebe44){return _0x1ebe44=_0x1ebe44||0xc8,function(_0x39755e){const _0x2e0eaf=a38_0x52f6;if(_0x39755e)return _0x4bd928[_0x2e0eaf('0x9')](_0x1ebe44)[_0x2e0eaf('0x26')](_0x39755e);};}function respondWithFilteredResult(_0x4784a7,_0x2ccfb5){return function(_0x111450){const _0x4b60cb=a38_0x52f6;if(_0x111450){const _0x292099=_0x111450[_0x4b60cb('0x3')],_0xd48a8d=_0x2ccfb5[_0x4b60cb('0x28')];let _0x145cd3=_0x2ccfb5[_0x4b60cb('0x28')]+_0x2ccfb5['limit'],_0x101f15;return _0x145cd3>=_0x292099?(_0x145cd3=_0x292099,_0x101f15=0xc8):_0x101f15=0xce,_0x4784a7[_0x4b60cb('0x9')](_0x101f15),_0x4784a7[_0x4b60cb('0x2c')](_0x4b60cb('0x1f'),_0xd48a8d+'-'+_0x145cd3+'/'+_0x292099)['json'](_0x111450);}return null;};}function saveUpdates(_0x40cd87){return function(_0xd39d89){const _0x308f75=a38_0x52f6;if(_0xd39d89)return _0xd39d89[_0x308f75('0x21')](_0x40cd87)[_0x308f75('0x0')](function(_0x39c2d1){return _0x39c2d1;});return null;};}function removeEntity(_0x1f651d){return function(_0x441099){const _0x5f2d26=a38_0x52f6;if(_0x441099)return _0x441099['destroy']()[_0x5f2d26('0x0')](function(){const _0x122ddd=_0x5f2d26;_0x1f651d['status'](0xcc)[_0x122ddd('0x3b')]();});};}function handleEntityNotFound(_0xdb57b3){return function(_0x3f88d6){const _0x51d834=a38_0x52f6;return!_0x3f88d6&&_0xdb57b3[_0x51d834('0x17')](0x194),_0x3f88d6;};}function handleError(_0x2380a0,_0x36077d){return _0x36077d=_0x36077d||0x1f4,function(_0x574a6a){const _0x1352b4=a38_0x52f6;logger['error'](_0x574a6a[_0x1352b4('0x33')]),_0x574a6a[_0x1352b4('0x2f')]&&delete _0x574a6a[_0x1352b4('0x2f')],_0x2380a0['status'](_0x36077d)[_0x1352b4('0x39')](_0x574a6a);};}exports['index']=function(_0x4ddb2,_0x4197af){const _0x414c61=_0x8c3b29;let _0x363540={};const _0x42bcf1={},_0xaa4a29={'count':0x0,'rows':[]},_0x202f21=_[_0x414c61('0x4')](db[_0x414c61('0x35')][_0x414c61('0x3c')],function(_0x1385b7){const _0x5bb73e=_0x414c61;return{'name':_0x1385b7[_0x5bb73e('0x2e')],'type':_0x1385b7[_0x5bb73e('0x34')]['key']};});_0x42bcf1[_0x414c61('0xe')]=_[_0x414c61('0x4')](_0x202f21,_0x414c61('0x2f')),_0x42bcf1[_0x414c61('0x38')]=_[_0x414c61('0x1c')](_0x4ddb2[_0x414c61('0x38')]),_0x42bcf1['filters']=_[_0x414c61('0x3a')](_0x42bcf1[_0x414c61('0xe')],_0x42bcf1[_0x414c61('0x38')]),_0x363540[_0x414c61('0xf')]=_[_0x414c61('0x3a')](_0x42bcf1[_0x414c61('0xe')],qs['fields'](_0x4ddb2['query'][_0x414c61('0x12')])),_0x363540[_0x414c61('0xf')]=_0x363540[_0x414c61('0xf')]['length']?_0x363540['attributes']:_0x42bcf1[_0x414c61('0xe')];typeof _0x4ddb2[_0x414c61('0x38')][_0x414c61('0x1d')]===_0x414c61('0x2b')&&(_0x363540[_0x414c61('0x20')]=qs[_0x414c61('0x20')](_0x4ddb2[_0x414c61('0x38')][_0x414c61('0x20')]),_0x363540[_0x414c61('0x28')]=qs[_0x414c61('0x28')](_0x4ddb2[_0x414c61('0x38')]['offset']));_0x363540['order']=qs[_0x414c61('0x15')](_0x4ddb2[_0x414c61('0x38')]['sort']),_0x363540[_0x414c61('0x29')]=qs[_0x414c61('0x24')](_[_0x414c61('0x1a')](_0x4ddb2[_0x414c61('0x38')],_0x42bcf1[_0x414c61('0x24')]),_0x202f21);_0x4ddb2[_0x414c61('0x38')][_0x414c61('0x2a')]&&(_0x363540[_0x414c61('0x29')]=_[_0x414c61('0x2')](_0x363540['where'],{[Op['or']]:_['map'](_0x202f21,function(_0x5719a0){const _0x57e6ff=_0x414c61;if(_0x5719a0['type']!==_0x57e6ff('0x22')){const _0xba7437={};return _0xba7437[_0x5719a0['name']]={[Op[_0x57e6ff('0xc')]]:'%'+_0x4ddb2[_0x57e6ff('0x38')][_0x57e6ff('0x2a')]+'%'},_0xba7437;}})}));_0x363540=_['merge']({},_0x363540,_0x4ddb2[_0x414c61('0x6')]);const _0x1644d4={'where':_0x363540['where']};return db[_0x414c61('0x35')][_0x414c61('0x3')](_0x1644d4)[_0x414c61('0x0')](function(_0x53a69f){const _0x489224=_0x414c61;return _0xaa4a29[_0x489224('0x3')]=_0x53a69f,_0x4ddb2[_0x489224('0x38')][_0x489224('0x27')]&&(_0x363540[_0x489224('0x5')]=[{'all':!![]}]),db[_0x489224('0x35')][_0x489224('0x11')](_0x363540);})[_0x414c61('0x0')](function(_0x53483d){const _0xf40de1=_0x414c61;return _0xaa4a29[_0xf40de1('0x14')]=_0x53483d,_0xaa4a29;})[_0x414c61('0x0')](respondWithFilteredResult(_0x4197af,_0x363540))[_0x414c61('0x1')](handleError(_0x4197af,null));},exports[_0x8c3b29('0xd')]=function(_0x3eb6b1,_0x58235a){const _0x248a44=_0x8c3b29;let _0x807b1b={'raw':![],'where':{'id':_0x3eb6b1['params']['id']}};const _0x39593e={};return _0x39593e[_0x248a44('0xe')]=_['keys'](db[_0x248a44('0x35')]['rawAttributes']),_0x39593e[_0x248a44('0x38')]=_[_0x248a44('0x1c')](_0x3eb6b1['query']),_0x39593e['filters']=_['intersection'](_0x39593e[_0x248a44('0xe')],_0x39593e[_0x248a44('0x38')]),_0x807b1b[_0x248a44('0xf')]=_[_0x248a44('0x3a')](_0x39593e[_0x248a44('0xe')],qs[_0x248a44('0x12')](_0x3eb6b1[_0x248a44('0x38')][_0x248a44('0x12')])),_0x807b1b['attributes']=_0x807b1b[_0x248a44('0xf')][_0x248a44('0x1b')]?_0x807b1b[_0x248a44('0xf')]:_0x39593e[_0x248a44('0xe')],_0x3eb6b1[_0x248a44('0x38')][_0x248a44('0x27')]&&(_0x807b1b[_0x248a44('0x5')]=[{'all':!![]}]),_0x807b1b=_['merge']({},_0x807b1b,_0x3eb6b1[_0x248a44('0x6')]),db[_0x248a44('0x35')][_0x248a44('0x8')](_0x807b1b)[_0x248a44('0x0')](handleEntityNotFound(_0x58235a,null))['then'](respondWithResult(_0x58235a,null))['catch'](handleError(_0x58235a,null));},exports[_0x8c3b29('0xa')]=function(_0x571d76,_0x169eb3){const _0x41f1fb=_0x8c3b29;return db['Automation'][_0x41f1fb('0xa')](_0x571d76['body'],{})[_0x41f1fb('0x0')](respondWithResult(_0x169eb3,0xc9))['catch'](handleError(_0x169eb3,null));},exports[_0x8c3b29('0x21')]=function(_0x36b62e,_0x52de0f){const _0x110c1a=_0x8c3b29;return _0x36b62e['body']['id']&&delete _0x36b62e['body']['id'],db['Automation'][_0x110c1a('0x8')]({'where':{'id':_0x36b62e[_0x110c1a('0x7')]['id']}})['then'](handleEntityNotFound(_0x52de0f,null))[_0x110c1a('0x0')](saveUpdates(_0x36b62e['body'],null))[_0x110c1a('0x0')](respondWithResult(_0x52de0f,null))[_0x110c1a('0x1')](handleError(_0x52de0f,null));},exports[_0x8c3b29('0x19')]=function(_0x28233c,_0x3e99ce){const _0x5ba3d6=_0x8c3b29;return db[_0x5ba3d6('0x35')][_0x5ba3d6('0x8')]({'where':{'id':_0x28233c['params']['id']}})[_0x5ba3d6('0x0')](handleEntityNotFound(_0x3e99ce,null))[_0x5ba3d6('0x0')](removeEntity(_0x3e99ce,null))[_0x5ba3d6('0x1')](handleError(_0x3e99ce,null));},exports[_0x8c3b29('0x36')]=function(_0xbb9795,_0x29371b){const _0x5a4e5c=_0x8c3b29;return db[_0x5a4e5c('0x16')][_0x5a4e5c('0x8')]({'where':{'id':_0xbb9795['params']['id']}})[_0x5a4e5c('0x0')](function(_0x46be42){const _0x13b358=_0x5a4e5c;if(_0x46be42)return _0x46be42[_0x13b358('0x36')](_0xbb9795['body'][_0x13b358('0x13')],{'through':_['omit'](_0xbb9795[_0x13b358('0x18')],[_0x13b358('0x13'),'id'])});})['then'](respondWithResult(_0x29371b,null))['catch'](handleError(_0x29371b,null));},exports[_0x8c3b29('0x37')]=function(_0x9cdd61,_0x348b12){const _0x2d61ba=_0x8c3b29;let _0x4be9ea={};const _0xae96d4={};let _0x222d34,_0x396532;return db[_0x2d61ba('0x35')]['findOne']({'where':{'id':_0x9cdd61[_0x2d61ba('0x7')]['id']}})[_0x2d61ba('0x0')](handleEntityNotFound(_0x348b12,null))[_0x2d61ba('0x0')](function(_0x406f2c){const _0xdeae82=_0x2d61ba;if(_0x406f2c)return _0x222d34=_0x406f2c,_0xae96d4[_0xdeae82('0xe')]=_[_0xdeae82('0x1c')](db['Condition']['rawAttributes']),_0xae96d4[_0xdeae82('0x38')]=_[_0xdeae82('0x1c')](_0x9cdd61['query']),_0xae96d4['filters']=_[_0xdeae82('0x3a')](_0xae96d4[_0xdeae82('0xe')],_0xae96d4['query']),_0x4be9ea[_0xdeae82('0xf')]=_['intersection'](_0xae96d4[_0xdeae82('0xe')],qs['fields'](_0x9cdd61['query']['fields'])),_0x4be9ea[_0xdeae82('0xf')]=_0x4be9ea[_0xdeae82('0xf')][_0xdeae82('0x1b')]?_0x4be9ea[_0xdeae82('0xf')]:_0xae96d4[_0xdeae82('0xe')],_0x4be9ea[_0xdeae82('0x1e')]=qs[_0xdeae82('0x15')](_0x9cdd61[_0xdeae82('0x38')]['sort']),_0x4be9ea[_0xdeae82('0x29')]=qs[_0xdeae82('0x24')](_[_0xdeae82('0x1a')](_0x9cdd61[_0xdeae82('0x38')],_0xae96d4[_0xdeae82('0x24')])),_0x9cdd61[_0xdeae82('0x38')]['filter']&&(_0x4be9ea[_0xdeae82('0x29')]=_[_0xdeae82('0x2')](_0x4be9ea[_0xdeae82('0x29')],{[Op['or']]:_['map'](_0x4be9ea[_0xdeae82('0xf')],function(_0x1e65a6){const _0x3eafbc=_0xdeae82,_0x6e95e4={};return _0x6e95e4[_0x1e65a6]={[Op[_0x3eafbc('0xc')]]:'%'+_0x9cdd61['query'][_0x3eafbc('0x2a')]+'%'},_0x6e95e4;})})),_0x4be9ea=_['merge']({},_0x4be9ea,_0x9cdd61[_0xdeae82('0x6')]),_0x222d34['getConditions'](_0x4be9ea);})[_0x2d61ba('0x0')](function(_0x2b8749){const _0x19ecfc=_0x2d61ba;if(_0x2b8749)return _0x396532=_0x2b8749[_0x19ecfc('0x1b')],typeof _0x9cdd61[_0x19ecfc('0x38')][_0x19ecfc('0x1d')]===_0x19ecfc('0x2b')&&(_0x4be9ea[_0x19ecfc('0x20')]=qs[_0x19ecfc('0x20')](_0x9cdd61[_0x19ecfc('0x38')][_0x19ecfc('0x20')]),_0x4be9ea['offset']=qs['offset'](_0x9cdd61[_0x19ecfc('0x38')][_0x19ecfc('0x28')])),_0x222d34[_0x19ecfc('0x37')](_0x4be9ea);})[_0x2d61ba('0x0')](function(_0x5f5aae){if(_0x5f5aae)return _0x5f5aae?{'count':_0x396532,'rows':_0x5f5aae}:null;})[_0x2d61ba('0x0')](respondWithResult(_0x348b12,null))[_0x2d61ba('0x1')](handleError(_0x348b12,null));},exports[_0x8c3b29('0xb')]=function(_0x371d46,_0x10744f){const _0xcb8b6c=_0x8c3b29;return db['Action'][_0xcb8b6c('0x8')]({'where':{'id':_0x371d46['params']['id']}})[_0xcb8b6c('0x0')](function(_0x38bf2d){const _0x39a806=_0xcb8b6c;if(_0x38bf2d)return _0x38bf2d[_0x39a806('0xb')](_0x371d46[_0x39a806('0x18')]['ids'],{'through':_[_0x39a806('0x31')](_0x371d46[_0x39a806('0x18')],['ids','id'])});})[_0xcb8b6c('0x0')](respondWithResult(_0x10744f,null))[_0xcb8b6c('0x1')](handleError(_0x10744f,null));},exports['getActions']=function(_0x20f636,_0x5e5037){const _0x491ac9=_0x8c3b29;let _0x542bec={};const _0x355a23={};let _0x256d95,_0x41ad9c;return db[_0x491ac9('0x35')][_0x491ac9('0x8')]({'where':{'id':_0x20f636[_0x491ac9('0x7')]['id']}})[_0x491ac9('0x0')](handleEntityNotFound(_0x5e5037,null))[_0x491ac9('0x0')](function(_0x168ae8){const _0x599e60=_0x491ac9;if(_0x168ae8)return _0x256d95=_0x168ae8,_0x355a23['model']=_[_0x599e60('0x1c')](db[_0x599e60('0x2d')]['rawAttributes']),_0x355a23['query']=_[_0x599e60('0x1c')](_0x20f636[_0x599e60('0x38')]),_0x355a23[_0x599e60('0x24')]=_[_0x599e60('0x3a')](_0x355a23[_0x599e60('0xe')],_0x355a23[_0x599e60('0x38')]),_0x542bec[_0x599e60('0xf')]=_[_0x599e60('0x3a')](_0x355a23[_0x599e60('0xe')],qs[_0x599e60('0x12')](_0x20f636['query'][_0x599e60('0x12')])),_0x542bec['attributes']=_0x542bec['attributes']['length']?_0x542bec[_0x599e60('0xf')]:_0x355a23[_0x599e60('0xe')],_0x542bec[_0x599e60('0x1e')]=qs[_0x599e60('0x15')](_0x20f636[_0x599e60('0x38')][_0x599e60('0x15')]),_0x542bec[_0x599e60('0x29')]=qs[_0x599e60('0x24')](_[_0x599e60('0x1a')](_0x20f636[_0x599e60('0x38')],_0x355a23[_0x599e60('0x24')])),_0x20f636[_0x599e60('0x38')]['filter']&&(_0x542bec[_0x599e60('0x29')]=_['merge'](_0x542bec['where'],{[Op['or']]:_[_0x599e60('0x4')](_0x542bec['attributes'],function(_0x301214){const _0x550b47=_0x599e60,_0x3f18d9={};return _0x3f18d9[_0x301214]={[Op[_0x550b47('0xc')]]:'%'+_0x20f636[_0x550b47('0x38')][_0x550b47('0x2a')]+'%'},_0x3f18d9;})})),_0x542bec=_[_0x599e60('0x2')]({},_0x542bec,_0x20f636[_0x599e60('0x6')]),_0x256d95[_0x599e60('0x32')](_0x542bec);})[_0x491ac9('0x0')](function(_0xa18714){const _0x359134=_0x491ac9;if(_0xa18714)return _0x41ad9c=_0xa18714['length'],typeof _0x20f636[_0x359134('0x38')][_0x359134('0x1d')]===_0x359134('0x2b')&&(_0x542bec[_0x359134('0x20')]=qs[_0x359134('0x20')](_0x20f636[_0x359134('0x38')][_0x359134('0x20')]),_0x542bec['offset']=qs['offset'](_0x20f636[_0x359134('0x38')][_0x359134('0x28')])),_0x256d95[_0x359134('0x32')](_0x542bec);})['then'](function(_0x269d6f){if(_0x269d6f)return _0x269d6f?{'count':_0x41ad9c,'rows':_0x269d6f}:null;})[_0x491ac9('0x0')](respondWithResult(_0x5e5037,null))[_0x491ac9('0x1')](handleError(_0x5e5037,null));}; \ No newline at end of file +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 diff --git a/server/api/automation/automation.model.js b/server/api/automation/automation.model.js index 6b26f41..53c6661 100644 --- a/server/api/automation/automation.model.js +++ b/server/api/automation/automation.model.js @@ -1 +1 @@ -const a39_0x51dd=['exports','tools_automations','./automation.attributes','define'];(function(_0x53bc42,_0x51dd9b){const _0x2e6be7=function(_0x3eac39){while(--_0x3eac39){_0x53bc42['push'](_0x53bc42['shift']());}};_0x2e6be7(++_0x51dd9b);}(a39_0x51dd,0x14e));const a39_0x2e6b=function(_0x53bc42,_0x51dd9b){_0x53bc42=_0x53bc42-0x0;let _0x2e6be7=a39_0x51dd[_0x53bc42];return _0x2e6be7;};const _0x48180e=a39_0x2e6b;'use strict';const attributes=require(_0x48180e('0x0'));module[_0x48180e('0x2')]=function(_0x3eac39){const _0x1a7be8=_0x48180e,_0x1c2aa0=_0x3eac39[_0x1a7be8('0x1')]('Automation',attributes,{'tableName':_0x1a7be8('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1c2aa0;}; \ No newline at end of file +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 diff --git a/server/api/automation/index.js b/server/api/automation/index.js index 64a03ba..b3111f0 100644 --- a/server/api/automation/index.js +++ b/server/api/automation/index.js @@ -1 +1 @@ -const a40_0x291e=['update','addActions','put','getConditions','index','exports','delete','/:id','show','/:id/conditions','/:id/actions','isAuthenticated','./automation.controller','getActions','addConditions','../../components/auth/service','post','express','get'];(function(_0x172176,_0x291e4c){const _0x1b880b=function(_0x285c07){while(--_0x285c07){_0x172176['push'](_0x172176['shift']());}};_0x1b880b(++_0x291e4c);}(a40_0x291e,0x137));const a40_0x1b88=function(_0x172176,_0x291e4c){_0x172176=_0x172176-0x0;let _0x1b880b=a40_0x291e[_0x172176];return _0x1b880b;};const _0x1ce99e=a40_0x1b88;'use strict';const express=require(_0x1ce99e('0xa')),router=express['Router'](),auth=require(_0x1ce99e('0x8')),controller=require(_0x1ce99e('0x5'));router[_0x1ce99e('0xb')]('/',auth[_0x1ce99e('0x4')](),controller[_0x1ce99e('0x10')]),router[_0x1ce99e('0xb')]('/:id',auth[_0x1ce99e('0x4')](),controller[_0x1ce99e('0x1')]),router[_0x1ce99e('0xb')](_0x1ce99e('0x2'),auth[_0x1ce99e('0x4')](),controller[_0x1ce99e('0xf')]),router[_0x1ce99e('0xb')](_0x1ce99e('0x3'),auth[_0x1ce99e('0x4')](),controller[_0x1ce99e('0x6')]),router['post']('/',auth['isAuthenticated'](),controller['create']),router[_0x1ce99e('0x9')](_0x1ce99e('0x2'),auth[_0x1ce99e('0x4')](),controller[_0x1ce99e('0x7')]),router['post']('/:id/actions',auth[_0x1ce99e('0x4')](),controller[_0x1ce99e('0xd')]),router[_0x1ce99e('0xe')]('/:id',auth[_0x1ce99e('0x4')](),controller[_0x1ce99e('0xc')]),router[_0x1ce99e('0x12')](_0x1ce99e('0x0'),auth[_0x1ce99e('0x4')](),controller['destroy']),module[_0x1ce99e('0x11')]=router; \ No newline at end of file +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 diff --git a/server/api/campaign/campaign.attributes.js b/server/api/campaign/campaign.attributes.js index 25af148..57e72cc 100644 --- a/server/api/campaign/campaign.attributes.js +++ b/server/api/campaign/campaign.attributes.js @@ -1 +1 @@ -const a41_0x4934=['BOOLEAN','name','Congestion\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','Random\x20Last\x20Digit\x20(min:1,\x20max:15)','always','Originate\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','#Machine\x20Retry\x20(min:1,\x20max:999)','Active/Disactive\x20Campaign','#AMD\x20Maximum\x20Number\x20Of\x20Words','onlyIfOpen','#Abandoned\x20Retry\x20(min:1,\x20max:999)','#AMD\x20Initial\x20Silence','exports','ENUM','#AMD\x20Between\x20Words\x20Silence','AgentReject\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','Drop\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','UNSIGNED','Machine\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','DESC','sequelize','#AMD\x20After\x20Greeting\x20Silence','ASC','Max\x20200\x20calls.','Active/Disactive\x20AMD','#NoSuchNumber\x20Retry\x20(min:1,\x20max:999)','NoSuchNumber\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#Congestion\x20Retry\x20(min:1,\x20max:999)','#AgentReject\x20Retry\x20(min:1,\x20max:999)','INTEGER','STRING','#AMD\x20Maximum\x20Word\x20Length','NoAnswer\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#Busy\x20Retry\x20(min:1,\x20max:999)','#AMD\x20Total\x20Analysis\x20Time'];(function(_0x223399,_0x49348c){const _0x53871f=function(_0x654944){while(--_0x654944){_0x223399['push'](_0x223399['shift']());}};_0x53871f(++_0x49348c);}(a41_0x4934,0x165));const a41_0x5387=function(_0x223399,_0x49348c){_0x223399=_0x223399-0x0;let _0x53871f=a41_0x4934[_0x223399];return _0x53871f;};const _0x400eaa=a41_0x5387;'use strict';const Sequelize=require(_0x400eaa('0xd'));module[_0x400eaa('0x5')]={'name':{'type':Sequelize[_0x400eaa('0x17')],'unique':_0x400eaa('0x1d'),'allowNull':![],'validate':{'is':/[A-Za-z0-9._\\+*!-]+/,'notEmpty':!![]}},'type':{'type':Sequelize[_0x400eaa('0x6')]('ivr'),'allowNull':![],'defaultValue':'ivr'},'description':{'type':Sequelize['STRING']},'active':{'type':Sequelize['BOOLEAN'],'defaultValue':0x0,'comment':_0x400eaa('0x0')},'limitCalls':{'type':Sequelize[_0x400eaa('0x16')](0x4)[_0x400eaa('0xa')],'defaultValue':0x1e,'validate':{'min':0x1,'max':0xc8},'comment':_0x400eaa('0x10')},'dialOriginateCallerIdName':{'type':Sequelize['STRING']},'dialOriginateCallerIdNumber':{'type':Sequelize['STRING']},'dialOriginateTimeout':{'type':Sequelize['INTEGER'](0x3)[_0x400eaa('0xa')],'defaultValue':0x1e,'validate':{'min':0x1,'max':0x3e7},'comment':_0x400eaa('0x21')},'dialCongestionMaxRetry':{'type':Sequelize[_0x400eaa('0x16')](0x3)[_0x400eaa('0xa')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x400eaa('0x14')},'dialCongestionRetryFrequency':{'type':Sequelize[_0x400eaa('0x16')](0x5)[_0x400eaa('0xa')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x400eaa('0x1e')},'dialBusyMaxRetry':{'type':Sequelize[_0x400eaa('0x16')](0x3)[_0x400eaa('0xa')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x400eaa('0x1a')},'dialBusyRetryFrequency':{'type':Sequelize[_0x400eaa('0x16')](0x5)['UNSIGNED'],'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':'#NoAnswer\x20Retry\x20(min:1,\x20max:999)'},'dialNoAnswerRetryFrequency':{'type':Sequelize[_0x400eaa('0x16')](0x5)[_0x400eaa('0xa')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x400eaa('0x19')},'dialGlobalMaxRetry':{'type':Sequelize[_0x400eaa('0x16')](0x3)['UNSIGNED'],'validate':{'min':0x1,'max':0x3e7},'defaultValue':0x4,'comment':'#Global\x20Max\x20Retry\x20(min:1,\x20max:999)'},'dialTimezone':{'type':Sequelize[_0x400eaa('0x17')],'defaultValue':null},'dialGlobalInterval':{'type':Sequelize[_0x400eaa('0x17')],'defaultValue':'07:00-22:00,*,*,*'},'dialCheckDuplicateType':{'type':Sequelize['ENUM']('always','never',_0x400eaa('0x2')),'defaultValue':_0x400eaa('0x20')},'dialAMDActive':{'type':Sequelize[_0x400eaa('0x1c')],'defaultValue':0x0,'comment':_0x400eaa('0x11')},'dialAMDInitialSilence':{'type':Sequelize[_0x400eaa('0x16')](0x9)[_0x400eaa('0xa')],'defaultValue':0x9c4,'validate':{'min':0x0},'comment':_0x400eaa('0x4')},'dialAMDGreeting':{'type':Sequelize[_0x400eaa('0x16')](0x9)[_0x400eaa('0xa')],'defaultValue':0x5dc,'validate':{'min':0x0},'comment':'#AMD\x20Greeting'},'dialAMDAfterGreetingSilence':{'type':Sequelize[_0x400eaa('0x16')](0x9)[_0x400eaa('0xa')],'defaultValue':0x320,'validate':{'min':0x0},'comment':_0x400eaa('0xe')},'dialAMDTotalAnalysisTime':{'type':Sequelize[_0x400eaa('0x16')](0x9)['UNSIGNED'],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0x400eaa('0x1b')},'dialAMDMinWordLength':{'type':Sequelize[_0x400eaa('0x16')](0x9)['UNSIGNED'],'defaultValue':0x64,'validate':{'min':0x0},'comment':'#AMD\x20Min\x20Word\x20Length'},'dialAMDBetweenWordsSilence':{'type':Sequelize[_0x400eaa('0x16')](0x9)['UNSIGNED'],'defaultValue':0x32,'validate':{'min':0x0},'comment':_0x400eaa('0x7')},'dialAMDMaximumNumberOfWords':{'type':Sequelize[_0x400eaa('0x16')](0x9)[_0x400eaa('0xa')],'defaultValue':0x3,'validate':{'min':0x0},'comment':_0x400eaa('0x1')},'dialAMDSilenceThreshold':{'type':Sequelize['INTEGER'](0x5)[_0x400eaa('0xa')],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':'#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)'},'dialAMDMaximumWordLength':{'type':Sequelize[_0x400eaa('0x16')](0x9)[_0x400eaa('0xa')],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0x400eaa('0x18')},'dialOrderByScheduledAt':{'type':Sequelize[_0x400eaa('0x6')]('DESC',_0x400eaa('0xf')),'defaultValue':_0x400eaa('0xc')},'dialPrefix':{'type':Sequelize['STRING'],'defaultValue':null},'dialRandomLastDigitCallerIdNumber':{'type':Sequelize[_0x400eaa('0x16')](0x3)['UNSIGNED'],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0x400eaa('0x1f')},'dialCutDigit':{'type':Sequelize[_0x400eaa('0x16')](0x3)[_0x400eaa('0xa')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':'Cut\x20Digit\x20(min:1,\x20max:15)'},'dialNoSuchNumberMaxRetry':{'type':Sequelize[_0x400eaa('0x16')](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x400eaa('0x12')},'dialNoSuchNumberRetryFrequency':{'type':Sequelize[_0x400eaa('0x16')](0x5)[_0x400eaa('0xa')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x400eaa('0x13')},'dialDropMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0x400eaa('0xa')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Drop\x20Retry\x20(min:1,\x20max:999)'},'dialDropRetryFrequency':{'type':Sequelize['INTEGER'](0x5)[_0x400eaa('0xa')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x400eaa('0x9')},'dialAbandonedMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0x400eaa('0xa')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x400eaa('0x3')},'dialAbandonedRetryFrequency':{'type':Sequelize[_0x400eaa('0x16')](0x5)[_0x400eaa('0xa')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'Abandoned\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialMachineMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0x400eaa('0xa')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x400eaa('0x22')},'dialMachineRetryFrequency':{'type':Sequelize[_0x400eaa('0x16')](0x5)[_0x400eaa('0xa')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x400eaa('0xb')},'dialAgentRejectMaxRetry':{'type':Sequelize[_0x400eaa('0x16')](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x400eaa('0x15')},'dialAgentRejectRetryFrequency':{'type':Sequelize[_0x400eaa('0x16')](0x5)[_0x400eaa('0xa')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x400eaa('0x8')}}; \ No newline at end of file +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 diff --git a/server/api/campaign/campaign.controller.js b/server/api/campaign/campaign.controller.js index c2b8928..328d529 100644 --- a/server/api/campaign/campaign.controller.js +++ b/server/api/campaign/campaign.controller.js @@ -1 +1 @@ -const a42_0x381e=['COALESCE(phone,\x27\x27)','json','updatedAt','attributes','filters','offset','insert','include','length','api','where','rawAttributes','send','push','getBlackLists','IvrCampaigns','count','getLists','sequelize','toString','findOne','keys','always','all','then','undefined','cm_contacts','CmHopperFinal','omit','update','CampaignId','lodash','addBlackLists','createdAt','addLists','filter','includeAll','sort','map','show','intersection','cm_hopper_black','key','nolimit','status','getHoppers','phone\x20NOT\x20IN\x20(?)','fields','dialCheckDuplicateType','body','pick','CmHopperBlack','phone\x20IS\x20NOT\x20NULL','like','CmListId','getHopperFinals','type','CampaignId\x20=\x20?','cm_hopper','userProfileId','sendStatus','Content-Range','ListId','ContactId','scheduledAt','CmHopperHistory','create','from','params','limit','get','into','role','getHopperHistories','clone','NOW()','ListId\x20=\x20?','phone','findAll','removeLists','../../mysqldb','name','UserProfileResource','rows','field','fromQuery','ids','select','CmList','query','fieldName','squel','removeBlackLists','user','../../config/logger','getHopperBlacks','UserProfileSection','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','Campaign','destroy','end','CmHopper','merge','model','error','order','index','deletedAt\x20IS\x20NULL','Unable\x20to\x20retrieve\x20the\x20current\x20user','catch','options'];(function(_0x530728,_0x381ebb){const _0x3ebd26=function(_0x41dc73){while(--_0x41dc73){_0x530728['push'](_0x530728['shift']());}};_0x3ebd26(++_0x381ebb);}(a42_0x381e,0xde));const a42_0x3ebd=function(_0x530728,_0x381ebb){_0x530728=_0x530728-0x0;let _0x3ebd26=a42_0x381e[_0x530728];return _0x3ebd26;};const _0x449d2a=a42_0x3ebd;'use strict';const _=require(_0x449d2a('0x1f')),squel=require(_0x449d2a('0x5b')),qs=require('../../components/parsers/qs'),logger=require(_0x449d2a('0x5e'))(_0x449d2a('0x9')),db=require(_0x449d2a('0x50'))['db'],{Op}=require(_0x449d2a('0x12'));function respondWithStatusCode(_0x41dc73,_0xd4ec0e){return _0xd4ec0e=_0xd4ec0e||0xcc,function(_0x31b6f1){const _0x42cae5=a42_0x3ebd;if(_0x31b6f1)return _0x41dc73[_0x42cae5('0x3c')](_0xd4ec0e);return _0x41dc73['status'](_0xd4ec0e)[_0x42cae5('0x64')]();};}function respondWithResult(_0x5656b1,_0x5decc6){return _0x5decc6=_0x5decc6||0xc8,function(_0x3cee9b){const _0x556cd1=a42_0x3ebd;if(_0x3cee9b)return _0x5656b1['status'](_0x5decc6)[_0x556cd1('0x1')](_0x3cee9b);};}function respondWithFilteredResult(_0x2d3313,_0x3a44aa){return function(_0x21fffa){const _0x505a61=a42_0x3ebd;if(_0x21fffa){const _0x34713d=_0x21fffa['count'],_0x152fb8=_0x3a44aa['offset'];let _0x28f920=_0x3a44aa[_0x505a61('0x5')]+_0x3a44aa[_0x505a61('0x45')],_0x3c05d1;return _0x28f920>=_0x34713d?(_0x28f920=_0x34713d,_0x3c05d1=0xc8):_0x3c05d1=0xce,_0x2d3313[_0x505a61('0x2c')](_0x3c05d1),_0x2d3313['set'](_0x505a61('0x3d'),_0x152fb8+'-'+_0x28f920+'/'+_0x34713d)[_0x505a61('0x1')](_0x21fffa);}return null;};}function saveUpdates(_0xad3591){return function(_0x111cd2){const _0x3788a7=a42_0x3ebd;if(_0x111cd2)return _0x111cd2[_0x3788a7('0x1d')](_0xad3591)[_0x3788a7('0x18')](function(_0x5d2c47){return _0x5d2c47;});return null;};}function removeEntity(_0xd87a9b){return function(_0x45c95d){const _0x153bc7=a42_0x3ebd;if(_0x45c95d)return _0x45c95d[_0x153bc7('0x63')]()[_0x153bc7('0x18')](function(){const _0x1a60d6=_0x153bc7,_0x3d54aa=_0x45c95d[_0x1a60d6('0x46')]({'plain':!![]}),_0x3f0f59=_0x1a60d6('0xf');return db[_0x1a60d6('0x52')][_0x1a60d6('0x63')]({'where':{'type':_0x3f0f59,'resourceId':_0x3d54aa['id']}})[_0x1a60d6('0x18')](function(){return _0x45c95d;});})['then'](function(){const _0x3cd121=_0x153bc7;_0xd87a9b[_0x3cd121('0x2c')](0xcc)[_0x3cd121('0x64')]();});};}function handleEntityNotFound(_0x2a1a2e){return function(_0x5bd2a8){const _0x897cb=a42_0x3ebd;return!_0x5bd2a8&&_0x2a1a2e[_0x897cb('0x3c')](0x194),_0x5bd2a8;};}function handleError(_0xe22a63,_0x6e838c){return _0x6e838c=_0x6e838c||0x1f4,function(_0x2a8136){const _0x11ed39=a42_0x3ebd;logger[_0x11ed39('0x68')](_0x2a8136['stack']),_0x2a8136[_0x11ed39('0x51')]&&delete _0x2a8136[_0x11ed39('0x51')],_0xe22a63[_0x11ed39('0x2c')](_0x6e838c)[_0x11ed39('0xc')](_0x2a8136);};}exports[_0x449d2a('0x6a')]=function(_0x543bd4,_0x25b2bc){const _0x29d78a=_0x449d2a;let _0x3ab12c={};const _0x413273={},_0x318d44={'count':0x0,'rows':[]},_0x314bbd=_[_0x29d78a('0x26')](db[_0x29d78a('0x62')]['rawAttributes'],function(_0x505d32){const _0x5c9186=_0x29d78a;return{'name':_0x505d32[_0x5c9186('0x5a')],'type':_0x505d32[_0x5c9186('0x38')][_0x5c9186('0x2a')]};});_0x413273[_0x29d78a('0x67')]=_[_0x29d78a('0x26')](_0x314bbd,_0x29d78a('0x51')),_0x413273[_0x29d78a('0x59')]=_['keys'](_0x543bd4[_0x29d78a('0x59')]),_0x413273['filters']=_['intersection'](_0x413273[_0x29d78a('0x67')],_0x413273['query']),_0x3ab12c[_0x29d78a('0x3')]=_[_0x29d78a('0x28')](_0x413273['model'],qs[_0x29d78a('0x2f')](_0x543bd4[_0x29d78a('0x59')][_0x29d78a('0x2f')])),_0x3ab12c[_0x29d78a('0x3')]=_0x3ab12c['attributes'][_0x29d78a('0x8')]?_0x3ab12c[_0x29d78a('0x3')]:_0x413273[_0x29d78a('0x67')];typeof _0x543bd4['query'][_0x29d78a('0x2b')]==='undefined'&&(_0x3ab12c[_0x29d78a('0x45')]=qs[_0x29d78a('0x45')](_0x543bd4['query'][_0x29d78a('0x45')]),_0x3ab12c[_0x29d78a('0x5')]=qs[_0x29d78a('0x5')](_0x543bd4[_0x29d78a('0x59')][_0x29d78a('0x5')]));_0x3ab12c[_0x29d78a('0x69')]=qs['sort'](_0x543bd4[_0x29d78a('0x59')][_0x29d78a('0x25')]),_0x3ab12c[_0x29d78a('0xa')]=qs[_0x29d78a('0x4')](_['pick'](_0x543bd4['query'],_0x413273[_0x29d78a('0x4')]),_0x314bbd);_0x543bd4['query'][_0x29d78a('0x23')]&&(_0x3ab12c['where']=_[_0x29d78a('0x66')](_0x3ab12c['where'],{[Op['or']]:_[_0x29d78a('0x26')](_0x314bbd,function(_0x47982d){const _0x2b243f=_0x29d78a;if(_0x47982d['type']!=='VIRTUAL'){const _0x44c7d0={};return _0x44c7d0[_0x47982d[_0x2b243f('0x51')]]={[Op[_0x2b243f('0x35')]]:'%'+_0x543bd4['query'][_0x2b243f('0x23')]+'%'},_0x44c7d0;}})}));_0x3ab12c=_['merge']({},_0x3ab12c,_0x543bd4['options']);const _0x2c9d6f={'where':_0x3ab12c[_0x29d78a('0xa')]};return db[_0x29d78a('0x62')]['count'](_0x2c9d6f)[_0x29d78a('0x18')](function(_0x47d5c2){const _0x213f7f=_0x29d78a;return _0x318d44[_0x213f7f('0x10')]=_0x47d5c2,_0x543bd4[_0x213f7f('0x59')][_0x213f7f('0x24')]&&(_0x3ab12c[_0x213f7f('0x7')]=[{'all':!![]}]),db[_0x213f7f('0x62')][_0x213f7f('0x4e')](_0x3ab12c);})['then'](function(_0x5a85bc){return _0x318d44['rows']=_0x5a85bc,_0x318d44;})[_0x29d78a('0x18')](respondWithFilteredResult(_0x25b2bc,_0x3ab12c))['catch'](handleError(_0x25b2bc,null));},exports[_0x449d2a('0x27')]=function(_0x3f033c,_0x3f763e){const _0x184267=_0x449d2a;let _0x4919fa={'raw':![],'where':{'id':_0x3f033c[_0x184267('0x44')]['id']}};const _0x1c7579={};return _0x1c7579['model']=_['keys'](db['Campaign'][_0x184267('0xb')]),_0x1c7579[_0x184267('0x59')]=_[_0x184267('0x15')](_0x3f033c[_0x184267('0x59')]),_0x1c7579[_0x184267('0x4')]=_['intersection'](_0x1c7579[_0x184267('0x67')],_0x1c7579[_0x184267('0x59')]),_0x4919fa[_0x184267('0x3')]=_['intersection'](_0x1c7579[_0x184267('0x67')],qs[_0x184267('0x2f')](_0x3f033c[_0x184267('0x59')][_0x184267('0x2f')])),_0x4919fa[_0x184267('0x3')]=_0x4919fa[_0x184267('0x3')][_0x184267('0x8')]?_0x4919fa['attributes']:_0x1c7579[_0x184267('0x67')],_0x3f033c[_0x184267('0x59')][_0x184267('0x24')]&&(_0x4919fa[_0x184267('0x7')]=[{'all':!![]}]),_0x4919fa=_[_0x184267('0x66')]({},_0x4919fa,_0x3f033c[_0x184267('0x6e')]),db['Campaign'][_0x184267('0x14')](_0x4919fa)[_0x184267('0x18')](handleEntityNotFound(_0x3f763e,null))[_0x184267('0x18')](respondWithResult(_0x3f763e,null))['catch'](handleError(_0x3f763e,null));},exports[_0x449d2a('0x42')]=function(_0x3c2bf3,_0x2c5f6c){const _0x1551de=_0x449d2a;return db[_0x1551de('0x62')][_0x1551de('0x42')](_0x3c2bf3[_0x1551de('0x31')],{})[_0x1551de('0x18')](function(_0x44a6b9){const _0x44603d=_0x1551de,_0x3d7e89=_0x3c2bf3['user'][_0x44603d('0x46')]({'plain':!![]});if(!_0x3d7e89)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x3d7e89['role']==='user'){const _0x18e507=_0x44a6b9['get']({'plain':!![]}),_0x2604f5=_0x44603d('0xf');return db['UserProfileSection'][_0x44603d('0x14')]({'where':{'name':_0x2604f5,'userProfileId':_0x3d7e89[_0x44603d('0x3b')]},'raw':!![]})[_0x44603d('0x18')](function(_0xc74cab){const _0x2d4bf7=_0x44603d;return _0xc74cab&&_0xc74cab['autoAssociation']===0x0?db[_0x2d4bf7('0x52')][_0x2d4bf7('0x42')]({'name':_0x18e507[_0x2d4bf7('0x51')],'resourceId':_0x18e507['id'],'type':_0xc74cab[_0x2d4bf7('0x51')],'sectionId':_0xc74cab['id']},{})[_0x2d4bf7('0x18')](function(){return _0x44a6b9;}):_0x44a6b9;})['catch'](function(_0x5e6ea0){const _0x34af12=_0x44603d;logger['error'](_0x34af12('0x61'),_0x5e6ea0);throw _0x5e6ea0;});}return _0x44a6b9;})['then'](respondWithResult(_0x2c5f6c,0xc9))['catch'](handleError(_0x2c5f6c,null));},exports[_0x449d2a('0x4a')]=function(_0x232a4a,_0x17775a){const _0x34a2eb=_0x449d2a;let _0x474f3a={'where':{'id':_0x232a4a[_0x34a2eb('0x44')]['id']}};const _0x41ccda={};return _0x41ccda[_0x34a2eb('0x67')]=_[_0x34a2eb('0x15')](db[_0x34a2eb('0x62')][_0x34a2eb('0xb')]),_0x474f3a[_0x34a2eb('0x3')]=_['intersection'](_0x41ccda[_0x34a2eb('0x67')],qs['fields'](_0x232a4a[_0x34a2eb('0x59')][_0x34a2eb('0x2f')])),_0x474f3a['attributes']=_0x474f3a[_0x34a2eb('0x3')][_0x34a2eb('0x8')]?_0x474f3a[_0x34a2eb('0x3')]:_0x41ccda[_0x34a2eb('0x67')],_0x232a4a['query'][_0x34a2eb('0x24')]&&(_0x474f3a[_0x34a2eb('0x7')]=[{'all':!![]}]),_0x474f3a=_['merge']({},_0x474f3a,_0x232a4a[_0x34a2eb('0x6e')]),db['Campaign'][_0x34a2eb('0x14')](_0x474f3a)[_0x34a2eb('0x18')](handleEntityNotFound(_0x17775a,null))['then'](function(_0xafd8bb){const _0x2c706f=_0x34a2eb;if(_0xafd8bb){let _0xddc68d=_0xafd8bb[_0x2c706f('0x46')]({'plain':!![]});return _0xddc68d=qs['omit'](_0xddc68d,['id',_0x2c706f('0x21'),_0x2c706f('0x2')]),_0x232a4a[_0x2c706f('0x31')]=_[_0x2c706f('0x1c')](_0x232a4a['body'],['id',_0x2c706f('0x21'),_0x2c706f('0x2')]),db[_0x2c706f('0x62')][_0x2c706f('0x42')](_[_0x2c706f('0x66')](_0xddc68d,_0x232a4a[_0x2c706f('0x31')]),{'include':_0x232a4a[_0x2c706f('0x59')][_0x2c706f('0x24')]?[{'all':!![]}]:undefined})[_0x2c706f('0x18')](function(_0x2dfcf4){const _0x43e972=_0x2c706f,_0xf7d342=_0x232a4a[_0x43e972('0x5d')][_0x43e972('0x46')]({'plain':!![]});if(!_0xf7d342)throw new Error(_0x43e972('0x6c'));if(_0xf7d342[_0x43e972('0x48')]===_0x43e972('0x5d')){const _0x200999=_0x2dfcf4['get']({'plain':!![]}),_0x12f39b=_0x43e972('0xf');return db[_0x43e972('0x60')]['findOne']({'where':{'name':_0x12f39b,'userProfileId':_0xf7d342['userProfileId']},'raw':!![]})[_0x43e972('0x18')](function(_0x257df1){const _0x4eb291=_0x43e972;return _0x257df1&&_0x257df1['autoAssociation']===0x0?db[_0x4eb291('0x52')][_0x4eb291('0x42')]({'name':_0x200999[_0x4eb291('0x51')],'resourceId':_0x200999['id'],'type':_0x257df1[_0x4eb291('0x51')],'sectionId':_0x257df1['id']},{})[_0x4eb291('0x18')](function(){return _0x2dfcf4;}):_0x2dfcf4;})[_0x43e972('0x6d')](function(_0x35442b){const _0x5bc3ae=_0x43e972;logger['error'](_0x5bc3ae('0x61'),_0x35442b);throw _0x35442b;});}return _0x2dfcf4;});}})['then'](respondWithResult(_0x17775a,0xc9))['catch'](handleError(_0x17775a,null));},exports[_0x449d2a('0x1d')]=function(_0x3607d9,_0x4b6187){const _0x23c3f5=_0x449d2a;return _0x3607d9[_0x23c3f5('0x31')]['id']&&delete _0x3607d9[_0x23c3f5('0x31')]['id'],db[_0x23c3f5('0x62')][_0x23c3f5('0x14')]({'where':{'id':_0x3607d9[_0x23c3f5('0x44')]['id']}})['then'](handleEntityNotFound(_0x4b6187,null))['then'](saveUpdates(_0x3607d9['body'],null))[_0x23c3f5('0x18')](respondWithResult(_0x4b6187,null))[_0x23c3f5('0x6d')](handleError(_0x4b6187,null));},exports[_0x449d2a('0x63')]=function(_0x2abe56,_0x427440){const _0x1eb9b0=_0x449d2a;return db[_0x1eb9b0('0x62')]['findOne']({'where':{'id':_0x2abe56['params']['id']}})['then'](handleEntityNotFound(_0x427440,null))[_0x1eb9b0('0x18')](removeEntity(_0x427440,null))[_0x1eb9b0('0x6d')](handleError(_0x427440,null));},exports[_0x449d2a('0x2d')]=function(_0x3c76d7,_0x538051){const _0x4ffa4a=_0x449d2a;let _0x164419={'raw':!![],'where':{}};const _0x59773c={},_0xda9bb8={'count':0x0,'rows':[]};return db[_0x4ffa4a('0x62')][_0x4ffa4a('0x14')]({'where':{'id':_0x3c76d7[_0x4ffa4a('0x44')]['id']}})[_0x4ffa4a('0x18')](handleEntityNotFound(_0x538051,null))[_0x4ffa4a('0x18')](function(_0x17d68f){const _0x383b69=_0x4ffa4a;if(_0x17d68f)return _0x59773c[_0x383b69('0x67')]=_[_0x383b69('0x15')](db[_0x383b69('0x65')]['rawAttributes']),_0x59773c[_0x383b69('0x59')]=_['keys'](_0x3c76d7[_0x383b69('0x59')]),_0x59773c['filters']=_[_0x383b69('0x28')](_0x59773c['model'],_0x59773c[_0x383b69('0x59')]),_0x164419[_0x383b69('0x3')]=_['intersection'](_0x59773c[_0x383b69('0x67')],qs['fields'](_0x3c76d7['query'][_0x383b69('0x2f')])),_0x164419[_0x383b69('0x3')]=_0x164419['attributes'][_0x383b69('0x8')]?_0x164419[_0x383b69('0x3')]:_0x59773c[_0x383b69('0x67')],typeof _0x3c76d7[_0x383b69('0x59')][_0x383b69('0x2b')]===_0x383b69('0x19')&&(_0x164419['limit']=qs[_0x383b69('0x45')](_0x3c76d7['query'][_0x383b69('0x45')]),_0x164419[_0x383b69('0x5')]=qs[_0x383b69('0x5')](_0x3c76d7['query'][_0x383b69('0x5')])),_0x164419[_0x383b69('0x69')]=qs[_0x383b69('0x25')](_0x3c76d7[_0x383b69('0x59')][_0x383b69('0x25')]),_0x164419[_0x383b69('0xa')]=qs['filters'](_[_0x383b69('0x32')](_0x3c76d7[_0x383b69('0x59')],_0x59773c['filters'])),_0x164419['where'][_0x383b69('0x1e')]=_0x17d68f['id'],_0x3c76d7[_0x383b69('0x59')]['filter']&&(_0x164419[_0x383b69('0xa')]=_[_0x383b69('0x66')](_0x164419[_0x383b69('0xa')],{[Op['or']]:_[_0x383b69('0x26')](_0x164419[_0x383b69('0x3')],function(_0x40a56b){const _0x17fc49=_0x383b69,_0x206b8f={};return _0x206b8f[_0x40a56b]={[Op[_0x17fc49('0x35')]]:'%'+_0x3c76d7[_0x17fc49('0x59')][_0x17fc49('0x23')]+'%'},_0x206b8f;})})),_0x164419=_[_0x383b69('0x66')]({},_0x164419,_0x3c76d7[_0x383b69('0x6e')]),db[_0x383b69('0x65')]['count']({'where':_0x164419['where']})[_0x383b69('0x18')](function(_0x4498b4){const _0x4bdd74=_0x383b69;return _0xda9bb8[_0x4bdd74('0x10')]=_0x4498b4,_0x3c76d7[_0x4bdd74('0x59')][_0x4bdd74('0x24')]&&(_0x164419['include']=[{'all':!![]}]),db[_0x4bdd74('0x65')][_0x4bdd74('0x4e')](_0x164419);})[_0x383b69('0x18')](function(_0x196875){return _0xda9bb8['rows']=_0x196875,_0xda9bb8;});})[_0x4ffa4a('0x18')](respondWithFilteredResult(_0x538051,_0x164419))[_0x4ffa4a('0x6d')](handleError(_0x538051,null));},exports[_0x449d2a('0x49')]=function(_0x23170c,_0x927db0){const _0x3cbd39=_0x449d2a;let _0x1cc634={'raw':!![],'where':{}};const _0xe6818e={},_0x1baf8b={'count':0x0,'rows':[]};return db[_0x3cbd39('0x62')][_0x3cbd39('0x14')]({'where':{'id':_0x23170c[_0x3cbd39('0x44')]['id']}})[_0x3cbd39('0x18')](handleEntityNotFound(_0x927db0,null))[_0x3cbd39('0x18')](function(_0x16748a){const _0x58e903=_0x3cbd39;if(_0x16748a)return _0xe6818e['model']=_[_0x58e903('0x15')](db[_0x58e903('0x41')][_0x58e903('0xb')]),_0xe6818e[_0x58e903('0x59')]=_[_0x58e903('0x15')](_0x23170c['query']),_0xe6818e[_0x58e903('0x4')]=_['intersection'](_0xe6818e[_0x58e903('0x67')],_0xe6818e[_0x58e903('0x59')]),_0x1cc634['attributes']=_[_0x58e903('0x28')](_0xe6818e[_0x58e903('0x67')],qs[_0x58e903('0x2f')](_0x23170c['query'][_0x58e903('0x2f')])),_0x1cc634[_0x58e903('0x3')]=_0x1cc634[_0x58e903('0x3')][_0x58e903('0x8')]?_0x1cc634['attributes']:_0xe6818e[_0x58e903('0x67')],typeof _0x23170c[_0x58e903('0x59')][_0x58e903('0x2b')]===_0x58e903('0x19')&&(_0x1cc634['limit']=qs['limit'](_0x23170c[_0x58e903('0x59')]['limit']),_0x1cc634[_0x58e903('0x5')]=qs['offset'](_0x23170c[_0x58e903('0x59')]['offset'])),_0x1cc634['order']=qs[_0x58e903('0x25')](_0x23170c[_0x58e903('0x59')][_0x58e903('0x25')]),_0x1cc634[_0x58e903('0xa')]=qs[_0x58e903('0x4')](_[_0x58e903('0x32')](_0x23170c[_0x58e903('0x59')],_0xe6818e[_0x58e903('0x4')])),_0x1cc634['where'][_0x58e903('0x1e')]=_0x16748a['id'],_0x23170c[_0x58e903('0x59')][_0x58e903('0x23')]&&(_0x1cc634[_0x58e903('0xa')]=_[_0x58e903('0x66')](_0x1cc634[_0x58e903('0xa')],{[Op['or']]:_['map'](_0x1cc634['attributes'],function(_0x1d8cb7){const _0x2e1a97=_0x58e903,_0x52e732={};return _0x52e732[_0x1d8cb7]={[Op[_0x2e1a97('0x35')]]:'%'+_0x23170c['query'][_0x2e1a97('0x23')]+'%'},_0x52e732;})})),_0x1cc634=_[_0x58e903('0x66')]({},_0x1cc634,_0x23170c['options']),db[_0x58e903('0x41')][_0x58e903('0x10')]({'where':_0x1cc634['where']})['then'](function(_0x46dd76){const _0x420571=_0x58e903;return _0x1baf8b[_0x420571('0x10')]=_0x46dd76,_0x23170c[_0x420571('0x59')][_0x420571('0x24')]&&(_0x1cc634[_0x420571('0x7')]=[{'all':!![]}]),db[_0x420571('0x41')][_0x420571('0x4e')](_0x1cc634);})[_0x58e903('0x18')](function(_0x3bebdd){return _0x1baf8b['rows']=_0x3bebdd,_0x1baf8b;});})[_0x3cbd39('0x18')](respondWithFilteredResult(_0x927db0,_0x1cc634))[_0x3cbd39('0x6d')](handleError(_0x927db0,null));},exports[_0x449d2a('0x37')]=function(_0x50e76b,_0x48c92b){const _0xb8a7f3=_0x449d2a;let _0x1628ff={'raw':!![],'where':{}};const _0x2a8467={},_0x439fbe={'count':0x0,'rows':[]};return db[_0xb8a7f3('0x62')]['findOne']({'where':{'id':_0x50e76b[_0xb8a7f3('0x44')]['id']}})[_0xb8a7f3('0x18')](handleEntityNotFound(_0x48c92b,null))[_0xb8a7f3('0x18')](function(_0x195c99){const _0x59c829=_0xb8a7f3;if(_0x195c99)return _0x2a8467[_0x59c829('0x67')]=_['keys'](db[_0x59c829('0x1b')]['rawAttributes']),_0x2a8467[_0x59c829('0x59')]=_['keys'](_0x50e76b[_0x59c829('0x59')]),_0x2a8467[_0x59c829('0x4')]=_[_0x59c829('0x28')](_0x2a8467['model'],_0x2a8467['query']),_0x1628ff[_0x59c829('0x3')]=_[_0x59c829('0x28')](_0x2a8467[_0x59c829('0x67')],qs[_0x59c829('0x2f')](_0x50e76b[_0x59c829('0x59')][_0x59c829('0x2f')])),_0x1628ff[_0x59c829('0x3')]=_0x1628ff[_0x59c829('0x3')][_0x59c829('0x8')]?_0x1628ff[_0x59c829('0x3')]:_0x2a8467[_0x59c829('0x67')],typeof _0x50e76b[_0x59c829('0x59')][_0x59c829('0x2b')]===_0x59c829('0x19')&&(_0x1628ff[_0x59c829('0x45')]=qs[_0x59c829('0x45')](_0x50e76b['query']['limit']),_0x1628ff[_0x59c829('0x5')]=qs[_0x59c829('0x5')](_0x50e76b[_0x59c829('0x59')][_0x59c829('0x5')])),_0x1628ff[_0x59c829('0x69')]=qs['sort'](_0x50e76b[_0x59c829('0x59')][_0x59c829('0x25')]),_0x1628ff[_0x59c829('0xa')]=qs[_0x59c829('0x4')](_['pick'](_0x50e76b[_0x59c829('0x59')],_0x2a8467[_0x59c829('0x4')])),_0x1628ff['where']['CampaignId']=_0x195c99['id'],_0x50e76b[_0x59c829('0x59')]['filter']&&(_0x1628ff[_0x59c829('0xa')]=_[_0x59c829('0x66')](_0x1628ff[_0x59c829('0xa')],{[Op['or']]:_['map'](_0x1628ff[_0x59c829('0x3')],function(_0x30d962){const _0x3e5e7b=_0x59c829,_0x392dbc={};return _0x392dbc[_0x30d962]={[Op[_0x3e5e7b('0x35')]]:'%'+_0x50e76b[_0x3e5e7b('0x59')][_0x3e5e7b('0x23')]+'%'},_0x392dbc;})})),_0x1628ff=_[_0x59c829('0x66')]({},_0x1628ff,_0x50e76b[_0x59c829('0x6e')]),db[_0x59c829('0x1b')][_0x59c829('0x10')]({'where':_0x1628ff[_0x59c829('0xa')]})[_0x59c829('0x18')](function(_0xbcf609){const _0x47241d=_0x59c829;return _0x439fbe[_0x47241d('0x10')]=_0xbcf609,_0x50e76b['query'][_0x47241d('0x24')]&&(_0x1628ff[_0x47241d('0x7')]=[{'all':!![]}]),db['CmHopperFinal']['findAll'](_0x1628ff);})[_0x59c829('0x18')](function(_0x53d6b6){return _0x439fbe['rows']=_0x53d6b6,_0x439fbe;});})['then'](respondWithFilteredResult(_0x48c92b,_0x1628ff))[_0xb8a7f3('0x6d')](handleError(_0x48c92b,null));},exports[_0x449d2a('0x5f')]=function(_0x191889,_0x5b8347){const _0x2d8850=_0x449d2a;let _0x301511={'raw':!![],'where':{}};const _0x406b9f={},_0x102a04={'count':0x0,'rows':[]};return db[_0x2d8850('0x62')][_0x2d8850('0x14')]({'where':{'id':_0x191889[_0x2d8850('0x44')]['id']}})[_0x2d8850('0x18')](handleEntityNotFound(_0x5b8347,null))['then'](function(_0x4e45f4){const _0x198c72=_0x2d8850;if(_0x4e45f4)return _0x406b9f[_0x198c72('0x67')]=_[_0x198c72('0x15')](db[_0x198c72('0x33')][_0x198c72('0xb')]),_0x406b9f[_0x198c72('0x59')]=_[_0x198c72('0x15')](_0x191889[_0x198c72('0x59')]),_0x406b9f[_0x198c72('0x4')]=_[_0x198c72('0x28')](_0x406b9f[_0x198c72('0x67')],_0x406b9f[_0x198c72('0x59')]),_0x301511['attributes']=_[_0x198c72('0x28')](_0x406b9f[_0x198c72('0x67')],qs[_0x198c72('0x2f')](_0x191889[_0x198c72('0x59')][_0x198c72('0x2f')])),_0x301511[_0x198c72('0x3')]=_0x301511[_0x198c72('0x3')][_0x198c72('0x8')]?_0x301511[_0x198c72('0x3')]:_0x406b9f[_0x198c72('0x67')],typeof _0x191889[_0x198c72('0x59')][_0x198c72('0x2b')]===_0x198c72('0x19')&&(_0x301511[_0x198c72('0x45')]=qs['limit'](_0x191889[_0x198c72('0x59')]['limit']),_0x301511['offset']=qs['offset'](_0x191889[_0x198c72('0x59')][_0x198c72('0x5')])),_0x301511[_0x198c72('0x69')]=qs[_0x198c72('0x25')](_0x191889[_0x198c72('0x59')][_0x198c72('0x25')]),_0x301511[_0x198c72('0xa')]=qs[_0x198c72('0x4')](_['pick'](_0x191889[_0x198c72('0x59')],_0x406b9f[_0x198c72('0x4')])),_0x301511[_0x198c72('0xa')][_0x198c72('0x1e')]=_0x4e45f4['id'],_0x191889[_0x198c72('0x59')][_0x198c72('0x23')]&&(_0x301511[_0x198c72('0xa')]=_[_0x198c72('0x66')](_0x301511[_0x198c72('0xa')],{[Op['or']]:_['map'](_0x301511[_0x198c72('0x3')],function(_0x37c00f){const _0xfbcdf6=_0x198c72,_0x4658d4={};return _0x4658d4[_0x37c00f]={[Op['like']]:'%'+_0x191889['query'][_0xfbcdf6('0x23')]+'%'},_0x4658d4;})})),_0x301511=_[_0x198c72('0x66')]({},_0x301511,_0x191889[_0x198c72('0x6e')]),db['CmHopperBlack'][_0x198c72('0x10')]({'where':_0x301511['where']})['then'](function(_0x1f6fa8){const _0x426b0c=_0x198c72;return _0x102a04[_0x426b0c('0x10')]=_0x1f6fa8,_0x191889[_0x426b0c('0x59')][_0x426b0c('0x24')]&&(_0x301511[_0x426b0c('0x7')]=[{'all':!![]}]),db[_0x426b0c('0x33')][_0x426b0c('0x4e')](_0x301511);})['then'](function(_0x548728){const _0x5e8b5c=_0x198c72;return _0x102a04[_0x5e8b5c('0x53')]=_0x548728,_0x102a04;});})[_0x2d8850('0x18')](respondWithFilteredResult(_0x5b8347,_0x301511))[_0x2d8850('0x6d')](handleError(_0x5b8347,null));},exports[_0x449d2a('0x11')]=function(_0x4fceab,_0x3e8c79){const _0x2d2e88=_0x449d2a;let _0x2d60f4={};const _0x3a867b={};let _0x2d34f1,_0x345a04;return db[_0x2d2e88('0x62')][_0x2d2e88('0x14')]({'where':{'id':_0x4fceab[_0x2d2e88('0x44')]['id']}})[_0x2d2e88('0x18')](handleEntityNotFound(_0x3e8c79,null))['then'](function(_0x202aa2){const _0x2290a1=_0x2d2e88;if(_0x202aa2)return _0x2d34f1=_0x202aa2,_0x3a867b['model']=_[_0x2290a1('0x15')](db[_0x2290a1('0x58')][_0x2290a1('0xb')]),_0x3a867b[_0x2290a1('0x59')]=_[_0x2290a1('0x15')](_0x4fceab[_0x2290a1('0x59')]),_0x3a867b['filters']=_[_0x2290a1('0x28')](_0x3a867b[_0x2290a1('0x67')],_0x3a867b[_0x2290a1('0x59')]),_0x2d60f4[_0x2290a1('0x3')]=_['intersection'](_0x3a867b[_0x2290a1('0x67')],qs[_0x2290a1('0x2f')](_0x4fceab['query'][_0x2290a1('0x2f')])),_0x2d60f4[_0x2290a1('0x3')]=_0x2d60f4['attributes'][_0x2290a1('0x8')]?_0x2d60f4[_0x2290a1('0x3')]:_0x3a867b[_0x2290a1('0x67')],_0x2d60f4[_0x2290a1('0x69')]=qs[_0x2290a1('0x25')](_0x4fceab['query']['sort']),_0x2d60f4[_0x2290a1('0xa')]=qs['filters'](_[_0x2290a1('0x32')](_0x4fceab['query'],_0x3a867b['filters'])),_0x4fceab[_0x2290a1('0x59')][_0x2290a1('0x23')]&&(_0x2d60f4[_0x2290a1('0xa')]=_['merge'](_0x2d60f4[_0x2290a1('0xa')],{[Op['or']]:_['map'](_0x2d60f4[_0x2290a1('0x3')],function(_0x1a7233){const _0xdcceb9=_0x2290a1,_0x37e18e={};return _0x37e18e[_0x1a7233]={[Op[_0xdcceb9('0x35')]]:'%'+_0x4fceab[_0xdcceb9('0x59')][_0xdcceb9('0x23')]+'%'},_0x37e18e;})})),_0x2d60f4=_[_0x2290a1('0x66')]({},_0x2d60f4,_0x4fceab[_0x2290a1('0x6e')]),_0x2d34f1[_0x2290a1('0x11')](_0x2d60f4);})[_0x2d2e88('0x18')](function(_0x43a761){const _0x1b0af5=_0x2d2e88;if(_0x43a761)return _0x345a04=_0x43a761[_0x1b0af5('0x8')],typeof _0x4fceab['query'][_0x1b0af5('0x2b')]===_0x1b0af5('0x19')&&(_0x2d60f4[_0x1b0af5('0x45')]=qs[_0x1b0af5('0x45')](_0x4fceab[_0x1b0af5('0x59')][_0x1b0af5('0x45')]),_0x2d60f4[_0x1b0af5('0x5')]=qs['offset'](_0x4fceab[_0x1b0af5('0x59')][_0x1b0af5('0x5')])),_0x2d34f1[_0x1b0af5('0x11')](_0x2d60f4);})[_0x2d2e88('0x18')](function(_0x2bb187){if(_0x2bb187)return _0x2bb187?{'count':_0x345a04,'rows':_0x2bb187}:null;})[_0x2d2e88('0x18')](respondWithResult(_0x3e8c79,null))[_0x2d2e88('0x6d')](handleError(_0x3e8c79,null));},exports[_0x449d2a('0x22')]=function(_0x1d0a31,_0x41f6d0){const _0x796992=_0x449d2a;let _0x460f17,_0x3f8d75;return db[_0x796992('0x62')][_0x796992('0x14')]({'where':{'id':_0x1d0a31[_0x796992('0x44')]['id']}})[_0x796992('0x18')](handleEntityNotFound(_0x41f6d0,null))[_0x796992('0x18')](function(_0x3684ec){const _0x5c923c=_0x796992;if(_0x3684ec)return _0x3f8d75=_0x3684ec,_0x3684ec[_0x5c923c('0x22')](_0x1d0a31[_0x5c923c('0x31')]['ids'],{'through':_[_0x5c923c('0x1c')](_0x1d0a31[_0x5c923c('0x31')],[_0x5c923c('0x56'),'id'])});return null;})['then'](function(_0x2a291f){const _0x15bda8=_0x796992;let _0x1e513b;_0x460f17=_0x2a291f||[];const _0x3dcd22=[];if(_0x2a291f){for(let _0x2e8e9b=0x0;_0x2e8e9b<_0x2a291f[_0x15bda8('0x8')];_0x2e8e9b+=0x1){const _0x107f54=_0x2a291f[_0x2e8e9b][_0x15bda8('0x46')]({'plain':!![]});_0x3f8d75[_0x15bda8('0x30')]=_0x1d0a31[_0x15bda8('0x31')][_0x15bda8('0x30')]?_0x1d0a31['body'][_0x15bda8('0x30')]:_0x3f8d75[_0x15bda8('0x30')];switch(_0x3f8d75[_0x15bda8('0x30')]){case _0x15bda8('0x16'):_0x1e513b=squel['insert']()['into'](_0x15bda8('0x3a'))[_0x15bda8('0x55')]([_0x15bda8('0x4d'),_0x15bda8('0x40'),'ContactId',_0x15bda8('0x3e'),_0x15bda8('0x1e'),'createdAt',_0x15bda8('0x2')],squel[_0x15bda8('0x57')]()[_0x15bda8('0x54')](_0x15bda8('0x4d'),_0x15bda8('0x4d'))[_0x15bda8('0x54')](_0x15bda8('0x4b'),_0x15bda8('0x40'))['field']('id',_0x15bda8('0x3f'))[_0x15bda8('0x54')](_0x107f54['CmListId'][_0x15bda8('0x13')](),_0x15bda8('0x3e'))[_0x15bda8('0x54')](_0x1d0a31[_0x15bda8('0x44')]['id']['toString'](),_0x15bda8('0x1e'))[_0x15bda8('0x54')](_0x15bda8('0x4b'),_0x15bda8('0x21'))['field'](_0x15bda8('0x4b'),_0x15bda8('0x2'))[_0x15bda8('0x43')]('cm_contacts')[_0x15bda8('0xa')](_0x15bda8('0x6b'))[_0x15bda8('0xa')](_0x15bda8('0x4c'),_0x107f54[_0x15bda8('0x36')]['toString']())[_0x15bda8('0xa')](_0x15bda8('0x34'))[_0x15bda8('0xa')]('phone\x20NOT\x20IN\x20(?)',squel[_0x15bda8('0x57')]()[_0x15bda8('0x54')]('COALESCE(calleridnum,\x27\x27)')[_0x15bda8('0x43')]('cm_hopper_final')[_0x15bda8('0xa')](_0x15bda8('0x39'),_0x1d0a31[_0x15bda8('0x44')]['id'][_0x15bda8('0x13')]()))[_0x15bda8('0xa')]('phone\x20NOT\x20IN\x20(?)',squel[_0x15bda8('0x57')]()[_0x15bda8('0x54')](_0x15bda8('0x0'))['from'](_0x15bda8('0x3a'))[_0x15bda8('0xa')](_0x15bda8('0x39'),_0x1d0a31[_0x15bda8('0x44')]['id'][_0x15bda8('0x13')]())))[_0x15bda8('0x13')]();break;case'onlyIfOpen':_0x1e513b=squel['insert']()[_0x15bda8('0x47')](_0x15bda8('0x3a'))[_0x15bda8('0x55')]([_0x15bda8('0x4d'),_0x15bda8('0x40'),_0x15bda8('0x3f'),_0x15bda8('0x3e'),_0x15bda8('0x1e'),_0x15bda8('0x21'),_0x15bda8('0x2')],squel[_0x15bda8('0x57')]()[_0x15bda8('0x54')](_0x15bda8('0x4d'),_0x15bda8('0x4d'))['field']('NOW()',_0x15bda8('0x40'))[_0x15bda8('0x54')]('id','ContactId')[_0x15bda8('0x54')](_0x107f54[_0x15bda8('0x36')][_0x15bda8('0x13')](),_0x15bda8('0x3e'))[_0x15bda8('0x54')](_0x1d0a31[_0x15bda8('0x44')]['id'][_0x15bda8('0x13')](),_0x15bda8('0x1e'))[_0x15bda8('0x54')](_0x15bda8('0x4b'),'createdAt')[_0x15bda8('0x54')](_0x15bda8('0x4b'),_0x15bda8('0x2'))[_0x15bda8('0x43')](_0x15bda8('0x1a'))[_0x15bda8('0xa')](_0x15bda8('0x6b'))[_0x15bda8('0xa')]('ListId\x20=\x20?',_0x107f54[_0x15bda8('0x36')][_0x15bda8('0x13')]())[_0x15bda8('0xa')]('phone\x20IS\x20NOT\x20NULL')[_0x15bda8('0xa')](_0x15bda8('0x2e'),squel[_0x15bda8('0x57')]()[_0x15bda8('0x54')](_0x15bda8('0x0'))[_0x15bda8('0x43')]('cm_hopper')['where'](_0x15bda8('0x39'),_0x1d0a31[_0x15bda8('0x44')]['id'][_0x15bda8('0x13')]())))['toString']();break;default:_0x1e513b=squel['insert']()[_0x15bda8('0x47')](_0x15bda8('0x3a'))[_0x15bda8('0x55')](['phone','scheduledAt','ContactId',_0x15bda8('0x3e'),'CampaignId',_0x15bda8('0x21'),_0x15bda8('0x2')],squel[_0x15bda8('0x57')]()[_0x15bda8('0x54')](_0x15bda8('0x4d'),_0x15bda8('0x4d'))[_0x15bda8('0x54')](_0x15bda8('0x4b'),'scheduledAt')[_0x15bda8('0x54')]('id',_0x15bda8('0x3f'))[_0x15bda8('0x54')](_0x107f54[_0x15bda8('0x36')][_0x15bda8('0x13')](),_0x15bda8('0x3e'))[_0x15bda8('0x54')](_0x1d0a31['params']['id'][_0x15bda8('0x13')](),_0x15bda8('0x1e'))[_0x15bda8('0x54')](_0x15bda8('0x4b'),_0x15bda8('0x21'))[_0x15bda8('0x54')](_0x15bda8('0x4b'),'updatedAt')[_0x15bda8('0x43')]('cm_contacts')[_0x15bda8('0xa')](_0x15bda8('0x6b'))[_0x15bda8('0xa')]('ListId\x20=\x20?',_0x107f54[_0x15bda8('0x36')]['toString']())[_0x15bda8('0xa')]('phone\x20IS\x20NOT\x20NULL'))[_0x15bda8('0x13')]();}_0x3dcd22[_0x15bda8('0xd')](db[_0x15bda8('0x12')]['query'](_0x1e513b));}return Promise[_0x15bda8('0x17')](_0x3dcd22);}})['then'](function(){return _0x460f17;})['then'](respondWithResult(_0x41f6d0,null))['catch'](handleError(_0x41f6d0,null));},exports['removeLists']=function(_0x2cd3a5,_0x578ca8){const _0x22fe86=_0x449d2a;return db[_0x22fe86('0x62')][_0x22fe86('0x14')]({'where':{'id':_0x2cd3a5['params']['id']}})[_0x22fe86('0x18')](handleEntityNotFound(_0x578ca8,null))[_0x22fe86('0x18')](function(_0x4bf6c4){const _0xffe9e3=_0x22fe86;if(_0x4bf6c4)return _0x4bf6c4[_0xffe9e3('0x4f')](_0x2cd3a5[_0xffe9e3('0x59')]['ids']);})['then'](function(_0x3cdb26){const _0x59fcc9=_0x22fe86;if(_0x3cdb26)return db['CmHopper'][_0x59fcc9('0x63')]({'where':{'ListId':_0x2cd3a5[_0x59fcc9('0x59')][_0x59fcc9('0x56')],'CampaignId':_0x2cd3a5[_0x59fcc9('0x44')]['id']}})[_0x59fcc9('0x18')](function(){return _0x3cdb26;});})[_0x22fe86('0x18')](respondWithStatusCode(_0x578ca8,null))[_0x22fe86('0x6d')](handleError(_0x578ca8,null));},exports[_0x449d2a('0xe')]=function(_0x4d02e7,_0x3671f6){const _0x229d6b=_0x449d2a;let _0x264cbd={'raw':!![],'where':{}};const _0x58a9a1={},_0xe2ce54={'count':0x0,'rows':[]};return db[_0x229d6b('0x62')]['findOne']({'where':{'id':_0x4d02e7[_0x229d6b('0x44')]['id']}})[_0x229d6b('0x18')](handleEntityNotFound(_0x3671f6,null))[_0x229d6b('0x18')](function(_0x277015){const _0x1b2133=_0x229d6b;if(_0x277015)return _0x58a9a1['model']=_[_0x1b2133('0x15')](db['CmList'][_0x1b2133('0xb')]),_0x58a9a1[_0x1b2133('0x59')]=_[_0x1b2133('0x15')](_0x4d02e7[_0x1b2133('0x59')]),_0x58a9a1[_0x1b2133('0x4')]=_['intersection'](_0x58a9a1[_0x1b2133('0x67')],_0x58a9a1['query']),_0x264cbd[_0x1b2133('0x3')]=_[_0x1b2133('0x28')](_0x58a9a1[_0x1b2133('0x67')],qs[_0x1b2133('0x2f')](_0x4d02e7[_0x1b2133('0x59')][_0x1b2133('0x2f')])),_0x264cbd[_0x1b2133('0x3')]=_0x264cbd[_0x1b2133('0x3')][_0x1b2133('0x8')]?_0x264cbd[_0x1b2133('0x3')]:_0x58a9a1[_0x1b2133('0x67')],typeof _0x4d02e7[_0x1b2133('0x59')][_0x1b2133('0x2b')]==='undefined'&&(_0x264cbd[_0x1b2133('0x45')]=qs[_0x1b2133('0x45')](_0x4d02e7[_0x1b2133('0x59')][_0x1b2133('0x45')]),_0x264cbd[_0x1b2133('0x5')]=qs['offset'](_0x4d02e7[_0x1b2133('0x59')][_0x1b2133('0x5')])),_0x264cbd['order']=qs['sort'](_0x4d02e7['query'][_0x1b2133('0x25')]),_0x264cbd[_0x1b2133('0xa')]=qs[_0x1b2133('0x4')](_[_0x1b2133('0x32')](_0x4d02e7[_0x1b2133('0x59')],_0x58a9a1[_0x1b2133('0x4')])),_0x264cbd[_0x1b2133('0xa')][_0x1b2133('0x1e')]=_0x277015['id'],_0x4d02e7['query']['filter']&&(_0x264cbd[_0x1b2133('0xa')]=_[_0x1b2133('0x66')](_0x264cbd[_0x1b2133('0xa')],{[Op['or']]:_[_0x1b2133('0x26')](_0x264cbd[_0x1b2133('0x3')],function(_0x3206b0){const _0x5f26c5=_0x1b2133,_0x3784fe={};return _0x3784fe[_0x3206b0]={[Op[_0x5f26c5('0x35')]]:'%'+_0x4d02e7[_0x5f26c5('0x59')][_0x5f26c5('0x23')]+'%'},_0x3784fe;})})),_0x264cbd=_[_0x1b2133('0x66')]({},_0x264cbd,_0x4d02e7[_0x1b2133('0x6e')]),db[_0x1b2133('0x58')][_0x1b2133('0x10')]({'where':_0x264cbd[_0x1b2133('0xa')]})['then'](function(_0x68a656){const _0x5f33a8=_0x1b2133;return _0xe2ce54[_0x5f33a8('0x10')]=_0x68a656,_0x4d02e7[_0x5f33a8('0x59')]['includeAll']&&(_0x264cbd[_0x5f33a8('0x7')]=[{'all':!![]}]),db[_0x5f33a8('0x58')][_0x5f33a8('0x4e')](_0x264cbd);})[_0x1b2133('0x18')](function(_0x4dca1b){const _0x2ac4c1=_0x1b2133;return _0xe2ce54[_0x2ac4c1('0x53')]=_0x4dca1b,_0xe2ce54;});})[_0x229d6b('0x18')](respondWithFilteredResult(_0x3671f6,_0x264cbd))[_0x229d6b('0x6d')](handleError(_0x3671f6,null));},exports['addBlackLists']=function(_0x3dc0e0,_0x13e4cc){const _0x1d644c=_0x449d2a;let _0x32f870;return db[_0x1d644c('0x62')][_0x1d644c('0x14')]({'where':{'id':_0x3dc0e0[_0x1d644c('0x44')]['id']}})['then'](handleEntityNotFound(_0x13e4cc,null))[_0x1d644c('0x18')](function(_0x2201b0){const _0x4b6a07=_0x1d644c;if(_0x2201b0)return _0x2201b0[_0x4b6a07('0x20')](_0x3dc0e0[_0x4b6a07('0x31')]['ids'],{'through':_[_0x4b6a07('0x1c')](_0x3dc0e0['body'],[_0x4b6a07('0x56'),'id'])});return null;})[_0x1d644c('0x18')](function(_0x526ac8){const _0x4d92a2=_0x1d644c;let _0x4978c1;_0x32f870=_0x526ac8||[];const _0x29943f=[];if(_0x526ac8){for(let _0x375d12=0x0;_0x375d12<_0x526ac8[_0x4d92a2('0x8')];_0x375d12+=0x1){const _0x519872=_0x526ac8[_0x375d12]['get']({'plain':!![]});_0x4978c1=squel[_0x4d92a2('0x6')]()[_0x4d92a2('0x47')](_0x4d92a2('0x29'))[_0x4d92a2('0x55')](['phone','ContactId',_0x4d92a2('0x3e'),_0x4d92a2('0x1e'),'createdAt',_0x4d92a2('0x2')],squel[_0x4d92a2('0x57')]()['field'](_0x4d92a2('0x4d'),_0x4d92a2('0x4d'))['field']('id',_0x4d92a2('0x3f'))[_0x4d92a2('0x54')](_0x519872['CmListId'][_0x4d92a2('0x13')](),_0x4d92a2('0x3e'))[_0x4d92a2('0x54')](_0x3dc0e0[_0x4d92a2('0x44')]['id'][_0x4d92a2('0x13')](),'CampaignId')[_0x4d92a2('0x54')](_0x4d92a2('0x4b'),'createdAt')['field'](_0x4d92a2('0x4b'),_0x4d92a2('0x2'))['from']('cm_contacts')[_0x4d92a2('0xa')](_0x4d92a2('0x6b'))[_0x4d92a2('0xa')](_0x4d92a2('0x4c'),_0x519872[_0x4d92a2('0x36')]['toString']())[_0x4d92a2('0xa')](_0x4d92a2('0x34')))[_0x4d92a2('0x13')](),_0x29943f[_0x4d92a2('0xd')](db[_0x4d92a2('0x12')][_0x4d92a2('0x59')](_0x4978c1));}return Promise[_0x4d92a2('0x17')](_0x29943f);}})[_0x1d644c('0x18')](function(){return _0x32f870;})[_0x1d644c('0x18')](respondWithResult(_0x13e4cc,null))[_0x1d644c('0x6d')](handleError(_0x13e4cc,null));},exports[_0x449d2a('0x5c')]=function(_0x4afa5d,_0x22f54e){const _0x34c84e=_0x449d2a;return db[_0x34c84e('0x62')][_0x34c84e('0x14')]({'where':{'id':_0x4afa5d['params']['id']}})['then'](handleEntityNotFound(_0x22f54e,null))[_0x34c84e('0x18')](function(_0x3e711e){const _0x44cbc4=_0x34c84e;if(_0x3e711e)return _0x3e711e['removeBlackLists'](_0x4afa5d[_0x44cbc4('0x59')][_0x44cbc4('0x56')]);})[_0x34c84e('0x18')](function(_0x25ddf9){const _0x1c5236=_0x34c84e;if(_0x25ddf9)return db[_0x1c5236('0x33')][_0x1c5236('0x63')]({'where':{'ListId':_0x4afa5d[_0x1c5236('0x59')][_0x1c5236('0x56')],'CampaignId':_0x4afa5d[_0x1c5236('0x44')]['id']}})[_0x1c5236('0x18')](function(){return _0x25ddf9;});})[_0x34c84e('0x18')](respondWithStatusCode(_0x22f54e,null))[_0x34c84e('0x6d')](handleError(_0x22f54e,null));}; \ No newline at end of file +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 diff --git a/server/api/campaign/campaign.model.js b/server/api/campaign/campaign.model.js index bb4bdb1..835ed1f 100644 --- a/server/api/campaign/campaign.model.js +++ b/server/api/campaign/campaign.model.js @@ -1 +1 @@ -const a43_0x218c=['define','Campaign','./campaign.attributes'];(function(_0x5064bd,_0x218cd5){const _0x407e04=function(_0x301df4){while(--_0x301df4){_0x5064bd['push'](_0x5064bd['shift']());}};_0x407e04(++_0x218cd5);}(a43_0x218c,0x13c));const a43_0x407e=function(_0x5064bd,_0x218cd5){_0x5064bd=_0x5064bd-0x0;let _0x407e04=a43_0x218c[_0x5064bd];return _0x407e04;};const _0x2e4d3e=a43_0x407e;'use strict';const attributes=require(_0x2e4d3e('0x1'));module['exports']=function(_0x301df4){const _0x29ad8c=_0x2e4d3e,_0xc6eb7f=_0x301df4[_0x29ad8c('0x2')](_0x29ad8c('0x0'),attributes,{'tableName':'campaigns','paranoid':![],'indexes':[],'timestamps':!![]});return _0xc6eb7f;}; \ No newline at end of file +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 diff --git a/server/api/campaign/campaign.rpc.js b/server/api/campaign/campaign.rpc.js index 61d0155..6b0110e 100644 --- a/server/api/campaign/campaign.rpc.js +++ b/server/api/campaign/campaign.rpc.js @@ -1 +1 @@ -const a44_0x23ab=['options','map','include','../../config/logger','GetCampaign','error','attributes','../../mysqldb','Campaign','limit','where','catch','stringify','message','findAll','debug','model'];(function(_0x10c757,_0x23ab6a){const _0x354536=function(_0x51c95f){while(--_0x51c95f){_0x10c757['push'](_0x10c757['shift']());}};_0x354536(++_0x23ab6a);}(a44_0x23ab,0x1db));const a44_0x3545=function(_0x10c757,_0x23ab6a){_0x10c757=_0x10c757-0x0;let _0x354536=a44_0x23ab[_0x10c757];return _0x354536;};const _0x47dab8=a44_0x3545;'use strict';const _=require('lodash'),db=require(_0x47dab8('0x8'))['db'],logger=require(_0x47dab8('0x4'))('rpc');exports[_0x47dab8('0x5')]=function(_0x51c95f){const _0x2346e9=this;return new Promise(function(_0x3bc975,_0x480684){const _0x27076f=a44_0x3545;return db[_0x27076f('0x9')][_0x27076f('0xf')]({'raw':_0x51c95f[_0x27076f('0x1')]?_0x51c95f[_0x27076f('0x1')]['raw']===undefined?!![]:![]:!![],'where':_0x51c95f[_0x27076f('0x1')]?_0x51c95f['options'][_0x27076f('0xb')]||null:null,'attributes':_0x51c95f[_0x27076f('0x1')]?_0x51c95f[_0x27076f('0x1')]['attributes']||null:null,'limit':_0x51c95f[_0x27076f('0x1')]?_0x51c95f['options'][_0x27076f('0xa')]||null:null,'include':_0x51c95f['options']?_0x51c95f['options'][_0x27076f('0x3')]?_['map'](_0x51c95f[_0x27076f('0x1')]['include'],function(_0x1558f3){const _0x150e9f=_0x27076f;return{'model':db[_0x1558f3['model']],'as':_0x1558f3['as'],'attributes':_0x1558f3[_0x150e9f('0x7')],'include':_0x1558f3['include']?_[_0x150e9f('0x2')](_0x1558f3[_0x150e9f('0x3')],function(_0x538787){const _0x14d7d1=_0x150e9f;return{'model':db[_0x538787[_0x14d7d1('0x0')]],'as':_0x538787['as'],'attributes':_0x538787[_0x14d7d1('0x7')],'include':_0x538787[_0x14d7d1('0x3')]?_[_0x14d7d1('0x2')](_0x538787[_0x14d7d1('0x3')],function(_0xbea3b1){const _0x31c778=_0x14d7d1;return{'model':db[_0xbea3b1[_0x31c778('0x0')]],'as':_0xbea3b1['as'],'attributes':_0xbea3b1['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x188bea){const _0x3d2a09=_0x27076f;logger['info'](_0x3d2a09('0x5'),_0x51c95f),logger[_0x3d2a09('0x10')](_0x3d2a09('0x5'),_0x51c95f,JSON[_0x3d2a09('0xd')](_0x188bea)),_0x3bc975(_0x188bea);})[_0x27076f('0xc')](function(_0x2dbd42){const _0x44fe4f=_0x27076f;logger['error'](_0x44fe4f('0x5'),_0x2dbd42[_0x44fe4f('0xe')],_0x51c95f),_0x480684(_0x2346e9[_0x44fe4f('0x6')](0x1f4,_0x2dbd42[_0x44fe4f('0xe')]));});});}; \ No newline at end of file +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 diff --git a/server/api/campaign/index.js b/server/api/campaign/index.js index 302acc8..d843331 100644 --- a/server/api/campaign/index.js +++ b/server/api/campaign/index.js @@ -1 +1 @@ -const a45_0x8456=['getHopperBlacks','getHoppers','../../components/auth/service','put','addBlackLists','getHopperHistories','isAuthenticated','exports','removeLists','/:id/hopper_histories','create','/:id/hopper_finals','post','/:id/lists','clone','update','/:id','show','get','getBlackLists','index','removeBlackLists','/:id/hoppers','addLists','delete','/:id/blacklists'];(function(_0x282f6f,_0x84562d){const _0x40cc8c=function(_0x5adb04){while(--_0x5adb04){_0x282f6f['push'](_0x282f6f['shift']());}};_0x40cc8c(++_0x84562d);}(a45_0x8456,0x176));const a45_0x40cc=function(_0x282f6f,_0x84562d){_0x282f6f=_0x282f6f-0x0;let _0x40cc8c=a45_0x8456[_0x282f6f];return _0x40cc8c;};const _0x182df9=a45_0x40cc;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x182df9('0x12')),controller=require('./campaign.controller');router[_0x182df9('0x8')]('/',auth[_0x182df9('0x16')](),controller[_0x182df9('0xa')]),router[_0x182df9('0x8')]('/:id',auth[_0x182df9('0x16')](),controller[_0x182df9('0x7')]),router[_0x182df9('0x8')](_0x182df9('0xc'),auth[_0x182df9('0x16')](),controller[_0x182df9('0x11')]),router[_0x182df9('0x8')](_0x182df9('0x19'),auth[_0x182df9('0x16')](),controller[_0x182df9('0x15')]),router[_0x182df9('0x8')](_0x182df9('0x1'),auth[_0x182df9('0x16')](),controller['getHopperFinals']),router['get']('/:id/hopper_black',auth[_0x182df9('0x16')](),controller[_0x182df9('0x10')]),router[_0x182df9('0x8')](_0x182df9('0x3'),auth[_0x182df9('0x16')](),controller['getLists']),router[_0x182df9('0x8')](_0x182df9('0xf'),auth['isAuthenticated'](),controller[_0x182df9('0x9')]),router['post']('/',auth['isAuthenticated'](),controller[_0x182df9('0x0')]),router[_0x182df9('0x2')]('/:id/clone',auth[_0x182df9('0x16')](),controller[_0x182df9('0x4')]),router['post'](_0x182df9('0x3'),auth[_0x182df9('0x16')](),controller[_0x182df9('0xd')]),router[_0x182df9('0x2')](_0x182df9('0xf'),auth['isAuthenticated'](),controller[_0x182df9('0x14')]),router[_0x182df9('0x13')](_0x182df9('0x6'),auth[_0x182df9('0x16')](),controller[_0x182df9('0x5')]),router[_0x182df9('0xe')](_0x182df9('0x6'),auth[_0x182df9('0x16')](),controller['destroy']),router[_0x182df9('0xe')](_0x182df9('0x3'),auth['isAuthenticated'](),controller[_0x182df9('0x18')]),router[_0x182df9('0xe')]('/:id/blacklists',auth[_0x182df9('0x16')](),controller[_0x182df9('0xb')]),module[_0x182df9('0x17')]=router; \ No newline at end of file +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 diff --git a/server/api/cannedAnswer/cannedAnswer.attributes.js b/server/api/cannedAnswer/cannedAnswer.attributes.js index 9330694..9b5e8da 100644 --- a/server/api/cannedAnswer/cannedAnswer.attributes.js +++ b/server/api/cannedAnswer/cannedAnswer.attributes.js @@ -1 +1 @@ -const a46_0x459d=['TEXT','exports','key','VIRTUAL','sequelize','STRING'];(function(_0x1d00d8,_0x459da5){const _0xe684be=function(_0x14e3f8){while(--_0x14e3f8){_0x1d00d8['push'](_0x1d00d8['shift']());}};_0xe684be(++_0x459da5);}(a46_0x459d,0x6a));const a46_0xe684=function(_0x1d00d8,_0x459da5){_0x1d00d8=_0x1d00d8-0x0;let _0xe684be=a46_0x459d[_0x1d00d8];return _0xe684be;};const _0x2bcecb=a46_0xe684;'use strict';const Sequelize=require(_0x2bcecb('0x0'));module[_0x2bcecb('0x3')]={'key':{'type':Sequelize[_0x2bcecb('0x1')],'allowNull':![]},'value':{'type':Sequelize[_0x2bcecb('0x2')],'allowNull':![]},'description':{'type':Sequelize[_0x2bcecb('0x1')]},'name':{'type':Sequelize[_0x2bcecb('0x5')],'get':function(){const _0x14eace=_0x2bcecb;return this['getDataValue'](_0x14eace('0x4'));}}}; \ No newline at end of file +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 diff --git a/server/api/cannedAnswer/cannedAnswer.controller.js b/server/api/cannedAnswer/cannedAnswer.controller.js index a59f4e0..822308f 100644 --- a/server/api/cannedAnswer/cannedAnswer.controller.js +++ b/server/api/cannedAnswer/cannedAnswer.controller.js @@ -1 +1 @@ -const a47_0x524c=['create','intersection','api','fields','CannedAnswers','sort','count','query','undefined','offset','ValidationError','rawAttributes','model','attributes','map','destroy','CannedAnswer','keys','SmsAccountId','where','status','name','nolimit','ChatWebsiteId','../../config/logger','pick','options','findOne','show','Sequelize','UserProfileSection','send','key','../../components/parsers/qs','MailAccountId','fieldName','length','role','index','type','sequelize','get','Unable\x20to\x20retrieve\x20the\x20current\x20user','catch','error','merge','Content-Range','body','then','OpenchannelAccountId','json','update','user','order','UserProfileResource','params','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','../../mysqldb','filters','autoAssociation','limit','end','filter','The\x20inserted\x20key\x20already\x20exists.','userProfileId'];(function(_0x18dc3c,_0x524c70){const _0x3ffe1f=function(_0x31dce1){while(--_0x31dce1){_0x18dc3c['push'](_0x18dc3c['shift']());}};_0x3ffe1f(++_0x524c70);}(a47_0x524c,0xd2));const a47_0x3ffe=function(_0x18dc3c,_0x524c70){_0x18dc3c=_0x18dc3c-0x0;let _0x3ffe1f=a47_0x524c[_0x18dc3c];return _0x3ffe1f;};const _0x3da71a=a47_0x3ffe;'use strict';const _=require('lodash'),qs=require(_0x3da71a('0x12')),logger=require(_0x3da71a('0x9'))(_0x3da71a('0x34')),db=require(_0x3da71a('0x2a'))['db'],{Op}=require(_0x3da71a('0x19'));function respondWithResult(_0x31dce1,_0x1c33f6){return _0x1c33f6=_0x1c33f6||0xc8,function(_0x370b6c){const _0x3d268c=a47_0x3ffe;if(_0x370b6c)return _0x31dce1[_0x3d268c('0x5')](_0x1c33f6)[_0x3d268c('0x23')](_0x370b6c);};}function respondWithFilteredResult(_0x2f4429,_0xd43760){return function(_0xf7b97){const _0x5ec717=a47_0x3ffe;if(_0xf7b97){const _0x42acde=_0xf7b97[_0x5ec717('0x38')],_0xbe9a73=_0xd43760[_0x5ec717('0x3b')];let _0x1708fe=_0xd43760[_0x5ec717('0x3b')]+_0xd43760[_0x5ec717('0x2d')],_0x360abc;return _0x1708fe>=_0x42acde?(_0x1708fe=_0x42acde,_0x360abc=0xc8):_0x360abc=0xce,_0x2f4429['status'](_0x360abc),_0x2f4429['set'](_0x5ec717('0x1f'),_0xbe9a73+'-'+_0x1708fe+'/'+_0x42acde)['json'](_0xf7b97);}return null;};}function saveUpdates(_0x1633a5){return function(_0x1fa518){const _0x232045=a47_0x3ffe;if(_0x1fa518)return _0x1fa518[_0x232045('0x24')](_0x1633a5)['then'](function(_0x51bb51){return _0x51bb51;});return null;};}function removeEntity(_0x105bee){return function(_0x2d20e3){const _0x4d31a7=a47_0x3ffe;if(_0x2d20e3)return _0x2d20e3[_0x4d31a7('0x0')]()[_0x4d31a7('0x21')](function(){const _0x337f42=_0x4d31a7,_0x1bb517=_0x2d20e3[_0x337f42('0x1a')]({'plain':!![]}),_0x317975=_0x337f42('0x36');return db['UserProfileResource'][_0x337f42('0x0')]({'where':{'type':_0x317975,'resourceId':_0x1bb517['id']}})[_0x337f42('0x21')](function(){return _0x2d20e3;});})[_0x4d31a7('0x21')](function(){const _0x264158=_0x4d31a7;_0x105bee[_0x264158('0x5')](0xcc)[_0x264158('0x2e')]();});};}function handleEntityNotFound(_0xcdc936){return function(_0x9f6345){return!_0x9f6345&&_0xcdc936['sendStatus'](0x194),_0x9f6345;};}function handleError(_0x3ad23d,_0x31e8cb){return _0x31e8cb=_0x31e8cb||0x1f4,function(_0x1d27f5){const _0x42379e=a47_0x3ffe;logger[_0x42379e('0x1d')](_0x1d27f5['stack']),_0x1d27f5[_0x42379e('0x6')]&&delete _0x1d27f5[_0x42379e('0x6')],_0x3ad23d[_0x42379e('0x5')](_0x31e8cb)[_0x42379e('0x10')](_0x1d27f5);};}exports[_0x3da71a('0x17')]=function(_0x4ae03a,_0x4c2a45){const _0x10ce73=_0x3da71a;let _0x4814d7={};const _0x1bd4a1={},_0x33b154={'count':0x0,'rows':[]},_0x4360ab=_[_0x10ce73('0x40')](db[_0x10ce73('0x1')][_0x10ce73('0x3d')],function(_0x5ac16c){const _0x314799=_0x10ce73;return{'name':_0x5ac16c[_0x314799('0x14')],'type':_0x5ac16c[_0x314799('0x18')][_0x314799('0x11')]};});_0x1bd4a1[_0x10ce73('0x3e')]=_[_0x10ce73('0x40')](_0x4360ab,_0x10ce73('0x6')),_0x1bd4a1[_0x10ce73('0x39')]=_[_0x10ce73('0x2')](_0x4ae03a['query']),_0x1bd4a1[_0x10ce73('0x2b')]=_[_0x10ce73('0x33')](_0x1bd4a1[_0x10ce73('0x3e')],_0x1bd4a1['query']),_0x4814d7['attributes']=_['intersection'](_0x1bd4a1[_0x10ce73('0x3e')],qs['fields'](_0x4ae03a['query']['fields'])),_0x4814d7[_0x10ce73('0x3f')]=_0x4814d7['attributes'][_0x10ce73('0x15')]?_0x4814d7[_0x10ce73('0x3f')]:_0x1bd4a1[_0x10ce73('0x3e')];typeof _0x4ae03a[_0x10ce73('0x39')][_0x10ce73('0x7')]===_0x10ce73('0x3a')&&(_0x4814d7[_0x10ce73('0x2d')]=qs[_0x10ce73('0x2d')](_0x4ae03a[_0x10ce73('0x39')][_0x10ce73('0x2d')]),_0x4814d7[_0x10ce73('0x3b')]=qs[_0x10ce73('0x3b')](_0x4ae03a['query'][_0x10ce73('0x3b')]));_0x4814d7[_0x10ce73('0x26')]=qs[_0x10ce73('0x37')](_0x4ae03a[_0x10ce73('0x39')][_0x10ce73('0x37')]),_0x4814d7[_0x10ce73('0x4')]=qs[_0x10ce73('0x2b')](_[_0x10ce73('0xa')](_0x4ae03a[_0x10ce73('0x39')],_0x1bd4a1['filters']),_0x4360ab);_0x4ae03a[_0x10ce73('0x39')][_0x10ce73('0x2f')]&&(_0x4814d7[_0x10ce73('0x4')]=_[_0x10ce73('0x1e')](_0x4814d7['where'],{[Op['or']]:_[_0x10ce73('0x40')](_0x4360ab,function(_0x3a5f92){const _0x4285c3=_0x10ce73;if(_0x3a5f92['type']!=='VIRTUAL'){const _0x397d4e={};return _0x397d4e[_0x3a5f92[_0x4285c3('0x6')]]={[Op['like']]:'%'+_0x4ae03a['query'][_0x4285c3('0x2f')]+'%'},_0x397d4e;}})}));_0x4814d7=_['merge']({},_0x4814d7,_0x4ae03a[_0x10ce73('0xb')]);const _0x323daf={'where':_0x4814d7[_0x10ce73('0x4')]};return db[_0x10ce73('0x1')][_0x10ce73('0x38')](_0x323daf)[_0x10ce73('0x21')](function(_0x803035){const _0x1ed7cd=_0x10ce73;return _0x33b154[_0x1ed7cd('0x38')]=_0x803035,_0x4ae03a[_0x1ed7cd('0x39')]['includeAll']&&(_0x4814d7['include']=[{'all':!![]}]),db[_0x1ed7cd('0x1')]['findAll'](_0x4814d7);})[_0x10ce73('0x21')](function(_0x5ead35){return _0x33b154['rows']=_0x5ead35,_0x33b154;})['then'](respondWithFilteredResult(_0x4c2a45,_0x4814d7))[_0x10ce73('0x1c')](handleError(_0x4c2a45,null));},exports[_0x3da71a('0xd')]=function(_0x117897,_0x3283bf){const _0x23fc24=_0x3da71a;let _0xcc35cc={'raw':!![],'where':{'id':_0x117897['params']['id']}};const _0x4d0b10={};return _0x4d0b10[_0x23fc24('0x3e')]=_[_0x23fc24('0x2')](db[_0x23fc24('0x1')]['rawAttributes']),_0x4d0b10[_0x23fc24('0x39')]=_[_0x23fc24('0x2')](_0x117897[_0x23fc24('0x39')]),_0x4d0b10[_0x23fc24('0x2b')]=_[_0x23fc24('0x33')](_0x4d0b10[_0x23fc24('0x3e')],_0x4d0b10[_0x23fc24('0x39')]),_0xcc35cc[_0x23fc24('0x3f')]=_[_0x23fc24('0x33')](_0x4d0b10['model'],qs[_0x23fc24('0x35')](_0x117897[_0x23fc24('0x39')][_0x23fc24('0x35')])),_0xcc35cc[_0x23fc24('0x3f')]=_0xcc35cc[_0x23fc24('0x3f')][_0x23fc24('0x15')]?_0xcc35cc['attributes']:_0x4d0b10[_0x23fc24('0x3e')],_0x117897[_0x23fc24('0x39')]['includeAll']&&(_0xcc35cc['include']=[{'all':!![]}]),_0xcc35cc=_[_0x23fc24('0x1e')]({},_0xcc35cc,_0x117897[_0x23fc24('0xb')]),db[_0x23fc24('0x1')][_0x23fc24('0xc')](_0xcc35cc)['then'](handleEntityNotFound(_0x3283bf,null))[_0x23fc24('0x21')](respondWithResult(_0x3283bf,null))[_0x23fc24('0x1c')](handleError(_0x3283bf,null));},exports[_0x3da71a('0x24')]=function(_0x5d1c1d,_0x10cf02){const _0x1eb585=_0x3da71a;return _0x5d1c1d[_0x1eb585('0x20')]['id']&&delete _0x5d1c1d[_0x1eb585('0x20')]['id'],db['CannedAnswer'][_0x1eb585('0xc')]({'where':{'id':_0x5d1c1d[_0x1eb585('0x28')]['id']}})[_0x1eb585('0x21')](handleEntityNotFound(_0x10cf02,null))[_0x1eb585('0x21')](saveUpdates(_0x5d1c1d[_0x1eb585('0x20')],null))[_0x1eb585('0x21')](respondWithResult(_0x10cf02,null))[_0x1eb585('0x1c')](handleError(_0x10cf02,null));},exports[_0x3da71a('0x0')]=function(_0x19d73a,_0x17ba9f){const _0x4c979e=_0x3da71a;return db[_0x4c979e('0x1')][_0x4c979e('0xc')]({'where':{'id':_0x19d73a[_0x4c979e('0x28')]['id']}})[_0x4c979e('0x21')](handleEntityNotFound(_0x17ba9f,null))[_0x4c979e('0x21')](removeEntity(_0x17ba9f,null))[_0x4c979e('0x1c')](handleError(_0x17ba9f,null));},exports[_0x3da71a('0x32')]=function(_0x2824f3,_0x2bfb7c){const _0x186b4c=_0x3da71a,_0x5edb7e={'key':_0x2824f3['body'][_0x186b4c('0x11')]};if(_0x2824f3[_0x186b4c('0x20')][_0x186b4c('0x13')])_0x5edb7e[_0x186b4c('0x13')]=_0x2824f3[_0x186b4c('0x20')]['MailAccountId'];else{if(_0x2824f3['body']['SmsAccountId'])_0x5edb7e['SmsAccountId']=_0x2824f3[_0x186b4c('0x20')][_0x186b4c('0x3')];else{if(_0x2824f3[_0x186b4c('0x20')][_0x186b4c('0x22')])_0x5edb7e[_0x186b4c('0x22')]=_0x2824f3[_0x186b4c('0x20')][_0x186b4c('0x22')];else _0x2824f3['body'][_0x186b4c('0x8')]&&(_0x5edb7e[_0x186b4c('0x8')]=_0x2824f3['body']['ChatWebsiteId']);}}return db[_0x186b4c('0x1')]['findOne']({'where':_0x5edb7e})[_0x186b4c('0x21')](function(_0x20a691){const _0x12b014=_0x186b4c;if(_0x20a691)throw new db[(_0x12b014('0xe'))][(_0x12b014('0x3c'))](_0x12b014('0x30'));return db[_0x12b014('0x1')][_0x12b014('0x32')](_0x2824f3[_0x12b014('0x20')]);})[_0x186b4c('0x21')](function(_0x30592c){const _0x3d9cb7=_0x186b4c,_0x1aa7b2=_0x2824f3[_0x3d9cb7('0x25')][_0x3d9cb7('0x1a')]({'plain':!![]});if(!_0x1aa7b2)throw new Error(_0x3d9cb7('0x1b'));if(_0x1aa7b2[_0x3d9cb7('0x16')]===_0x3d9cb7('0x25')){const _0x47e4a2=_0x30592c[_0x3d9cb7('0x1a')]({'plain':!![]});return db[_0x3d9cb7('0xf')][_0x3d9cb7('0xc')]({'where':{'name':_0x3d9cb7('0x36'),'userProfileId':_0x1aa7b2[_0x3d9cb7('0x31')]},'raw':!![]})['then'](function(_0x409905){const _0x291745=_0x3d9cb7;return _0x409905&&_0x409905[_0x291745('0x2c')]===0x0?db[_0x291745('0x27')][_0x291745('0x32')]({'name':_0x47e4a2[_0x291745('0x6')],'resourceId':_0x47e4a2['id'],'type':_0x409905[_0x291745('0x6')],'sectionId':_0x409905['id']},{})[_0x291745('0x21')](function(){return _0x30592c;}):_0x30592c;})[_0x3d9cb7('0x1c')](function(_0x4721ac){const _0x3dc0c0=_0x3d9cb7;logger['error'](_0x3dc0c0('0x29'),_0x4721ac);throw _0x4721ac;});}return _0x30592c;})[_0x186b4c('0x21')](respondWithResult(_0x2bfb7c,0xc9))[_0x186b4c('0x1c')](handleError(_0x2bfb7c,null));}; \ No newline at end of file +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 diff --git a/server/api/cannedAnswer/cannedAnswer.model.js b/server/api/cannedAnswer/cannedAnswer.model.js index 6cb9d1f..c627ecf 100644 --- a/server/api/cannedAnswer/cannedAnswer.model.js +++ b/server/api/cannedAnswer/cannedAnswer.model.js @@ -1 +1 @@ -const a48_0x18ee=['./cannedAnswer.attributes','tools_canned_answers','define','CannedAnswer','utf8mb4_unicode_ci'];(function(_0x42aed4,_0x18eead){const _0x2af3d5=function(_0x1cbd7d){while(--_0x1cbd7d){_0x42aed4['push'](_0x42aed4['shift']());}};_0x2af3d5(++_0x18eead);}(a48_0x18ee,0x142));const a48_0x2af3=function(_0x42aed4,_0x18eead){_0x42aed4=_0x42aed4-0x0;let _0x2af3d5=a48_0x18ee[_0x42aed4];return _0x2af3d5;};const _0x91968b=a48_0x2af3;'use strict';const attributes=require(_0x91968b('0x3'));module['exports']=function(_0x1cbd7d){const _0x55c384=_0x91968b,_0x6c34fd=_0x1cbd7d[_0x55c384('0x0')](_0x55c384('0x1'),attributes,{'tableName':_0x55c384('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x55c384('0x2')});return _0x6c34fd;}; \ No newline at end of file +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 diff --git a/server/api/cannedAnswer/index.js b/server/api/cannedAnswer/index.js index f4e311b..7f463b2 100644 --- a/server/api/cannedAnswer/index.js +++ b/server/api/cannedAnswer/index.js @@ -1 +1 @@ -const a49_0x320f=['show','Router','create','index','./cannedAnswer.controller','post','/:id','update','isAuthenticated','get','../../components/auth/service','put','destroy'];(function(_0x2f1d04,_0x320f0c){const _0x3b6de7=function(_0x55c650){while(--_0x55c650){_0x2f1d04['push'](_0x2f1d04['shift']());}};_0x3b6de7(++_0x320f0c);}(a49_0x320f,0x6b));const a49_0x3b6d=function(_0x2f1d04,_0x320f0c){_0x2f1d04=_0x2f1d04-0x0;let _0x3b6de7=a49_0x320f[_0x2f1d04];return _0x3b6de7;};const _0x2bada8=a49_0x3b6d;'use strict';const express=require('express'),router=express[_0x2bada8('0xb')](),auth=require(_0x2bada8('0x7')),controller=require(_0x2bada8('0x1'));router[_0x2bada8('0x6')]('/',auth['isAuthenticated'](),controller[_0x2bada8('0x0')]),router[_0x2bada8('0x6')]('/:id',auth[_0x2bada8('0x5')](),controller[_0x2bada8('0xa')]),router[_0x2bada8('0x2')]('/',auth['isAuthenticated'](),controller[_0x2bada8('0xc')]),router[_0x2bada8('0x8')](_0x2bada8('0x3'),auth['isAuthenticated'](),controller[_0x2bada8('0x4')]),router['delete'](_0x2bada8('0x3'),auth[_0x2bada8('0x5')](),controller[_0x2bada8('0x9')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/cdr/cdr.attributes.js b/server/api/cdr/cdr.attributes.js index 31bff7a..c245c48 100644 --- a/server/api/cdr/cdr.attributes.js +++ b/server/api/cdr/cdr.attributes.js @@ -1 +1 @@ -const a50_0x2b24=['sequelize','STRING','exports','INTEGER'];(function(_0x2968b9,_0x2b2453){const _0x202a57=function(_0x39e595){while(--_0x39e595){_0x2968b9['push'](_0x2968b9['shift']());}};_0x202a57(++_0x2b2453);}(a50_0x2b24,0x18c));const a50_0x202a=function(_0x2968b9,_0x2b2453){_0x2968b9=_0x2968b9-0x0;let _0x202a57=a50_0x2b24[_0x2968b9];return _0x202a57;};const _0x330e44=a50_0x202a;'use strict';const Sequelize=require(_0x330e44('0x0'));module[_0x330e44('0x2')]={'calldate':{'type':Sequelize['DATE'],'allowNull':![],'defaultValue':'1970-01-01\x2000:00:01'},'clid':{'type':Sequelize[_0x330e44('0x1')]},'src':{'type':Sequelize['STRING']},'dst':{'type':Sequelize[_0x330e44('0x1')]},'dcontext':{'type':Sequelize[_0x330e44('0x1')]},'channel':{'type':Sequelize[_0x330e44('0x1')]},'dstchannel':{'type':Sequelize[_0x330e44('0x1')]},'lastapp':{'type':Sequelize[_0x330e44('0x1')]},'lastdata':{'type':Sequelize['STRING']},'duration':{'type':Sequelize[_0x330e44('0x3')],'allowNull':![],'defaultValue':0x0},'billsec':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x0},'disposition':{'type':Sequelize[_0x330e44('0x1')]},'amaflags':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x0},'accountcode':{'type':Sequelize[_0x330e44('0x1')]},'userfield':{'type':Sequelize[_0x330e44('0x1')]},'uniqueid':{'type':Sequelize[_0x330e44('0x1')]},'linkedid':{'type':Sequelize[_0x330e44('0x1')]},'sequence':{'type':Sequelize[_0x330e44('0x1')]},'peeraccount':{'type':Sequelize[_0x330e44('0x1')]},'type':{'type':Sequelize['STRING']},'tag':{'type':Sequelize[_0x330e44('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/cdr/cdr.controller.js b/server/api/cdr/cdr.controller.js index bf1e8d5..604b48f 100644 --- a/server/api/cdr/cdr.controller.js +++ b/server/api/cdr/cdr.controller.js @@ -1 +1 @@ -const a51_0x1d0e=['count','rawAttributes','body','describe','VIRTUAL','query','includeAll','map','nolimit','create','filter','then','end','merge','params','filters','Cdr','where','intersection','destroy','sort','error','type','send','pick','name','index','length','include','fields','undefined','status','../../config/logger','key','api','../../components/parsers/qs','rows','model','set','limit','catch','options','../../mysqldb','findOne','attributes','offset','json','keys'];(function(_0x25d943,_0x1d0ed9){const _0x33108e=function(_0x244f41){while(--_0x244f41){_0x25d943['push'](_0x25d943['shift']());}};_0x33108e(++_0x1d0ed9);}(a51_0x1d0e,0x74));const a51_0x3310=function(_0x25d943,_0x1d0ed9){_0x25d943=_0x25d943-0x0;let _0x33108e=a51_0x1d0e[_0x25d943];return _0x33108e;};const _0x3a61db=a51_0x3310;'use strict';const _=require('lodash'),qs=require(_0x3a61db('0xf')),logger=require(_0x3a61db('0xc'))(_0x3a61db('0xe')),db=require(_0x3a61db('0x16'))['db'],{Op}=require('sequelize');function respondWithResult(_0x244f41,_0x14fd4){return _0x14fd4=_0x14fd4||0xc8,function(_0x399b58){const _0x3751f5=a51_0x3310;if(_0x399b58)return _0x244f41[_0x3751f5('0xb')](_0x14fd4)[_0x3751f5('0x1a')](_0x399b58);};}function respondWithFilteredResult(_0x501bf9,_0x39d36a){return function(_0x489a11){const _0x28d770=a51_0x3310;if(_0x489a11){const _0x264825=_0x489a11[_0x28d770('0x1c')],_0x40f1b0=_0x39d36a[_0x28d770('0x19')];let _0x5958b0=_0x39d36a[_0x28d770('0x19')]+_0x39d36a['limit'],_0x1ddc89;return _0x5958b0>=_0x264825?(_0x5958b0=_0x264825,_0x1ddc89=0xc8):_0x1ddc89=0xce,_0x501bf9[_0x28d770('0xb')](_0x1ddc89),_0x501bf9[_0x28d770('0x12')]('Content-Range',_0x40f1b0+'-'+_0x5958b0+'/'+_0x264825)[_0x28d770('0x1a')](_0x489a11);}return null;};}function saveUpdates(_0x618d13){return function(_0x52dd65){const _0x518e22=a51_0x3310;if(_0x52dd65)return _0x52dd65['update'](_0x618d13)[_0x518e22('0x27')](function(_0x40af7a){return _0x40af7a;});return null;};}function removeEntity(_0xca5f07){return function(_0x31c0a2){const _0x14604f=a51_0x3310;if(_0x31c0a2)return _0x31c0a2['destroy']()[_0x14604f('0x27')](function(){const _0x1382ca=_0x14604f;_0xca5f07[_0x1382ca('0xb')](0xcc)[_0x1382ca('0x28')]();});};}function handleEntityNotFound(_0x56a0aa){return function(_0x173298){return!_0x173298&&_0x56a0aa['sendStatus'](0x194),_0x173298;};}function handleError(_0x79645e,_0x51836a){return _0x51836a=_0x51836a||0x1f4,function(_0x3748c2){const _0x31fc5a=a51_0x3310;logger[_0x31fc5a('0x1')](_0x3748c2['stack']),_0x3748c2[_0x31fc5a('0x5')]&&delete _0x3748c2['name'],_0x79645e['status'](_0x51836a)[_0x31fc5a('0x3')](_0x3748c2);};}exports[_0x3a61db('0x6')]=function(_0x2d1fdc,_0x78a214){const _0x587de4=_0x3a61db;let _0x36850={};const _0x47f07a={},_0x320a87={'count':0x0,'rows':[]},_0x2f472b=_['map'](db['Cdr']['rawAttributes'],function(_0x2d2e4c){const _0x2de9d0=a51_0x3310;return{'name':_0x2d2e4c['fieldName'],'type':_0x2d2e4c[_0x2de9d0('0x2')][_0x2de9d0('0xd')]};});_0x47f07a[_0x587de4('0x11')]=_[_0x587de4('0x23')](_0x2f472b,'name'),_0x47f07a[_0x587de4('0x21')]=_[_0x587de4('0x1b')](_0x2d1fdc['query']),_0x47f07a[_0x587de4('0x2b')]=_['intersection'](_0x47f07a[_0x587de4('0x11')],_0x47f07a[_0x587de4('0x21')]),_0x36850['attributes']=_['intersection'](_0x47f07a[_0x587de4('0x11')],qs[_0x587de4('0x9')](_0x2d1fdc[_0x587de4('0x21')][_0x587de4('0x9')])),_0x36850[_0x587de4('0x18')]=_0x36850['attributes']['length']?_0x36850[_0x587de4('0x18')]:_0x47f07a[_0x587de4('0x11')];typeof _0x2d1fdc['query'][_0x587de4('0x24')]===_0x587de4('0xa')&&(_0x36850[_0x587de4('0x13')]=qs['limit'](_0x2d1fdc[_0x587de4('0x21')][_0x587de4('0x13')]),_0x36850['offset']=qs['offset'](_0x2d1fdc[_0x587de4('0x21')][_0x587de4('0x19')]));_0x36850['order']=qs[_0x587de4('0x0')](_0x2d1fdc['query'][_0x587de4('0x0')]),_0x36850['where']=qs[_0x587de4('0x2b')](_[_0x587de4('0x4')](_0x2d1fdc[_0x587de4('0x21')],_0x47f07a[_0x587de4('0x2b')]),_0x2f472b);_0x2d1fdc['query'][_0x587de4('0x26')]&&(_0x36850['where']=_['merge'](_0x36850['where'],{[Op['or']]:_[_0x587de4('0x23')](_0x2f472b,function(_0x20c9ed){const _0x2fb369=_0x587de4;if(_0x20c9ed['type']!==_0x2fb369('0x20')){const _0x58d41b={};return _0x58d41b[_0x20c9ed[_0x2fb369('0x5')]]={[Op['like']]:'%'+_0x2d1fdc['query']['filter']+'%'},_0x58d41b;}})}));_0x36850=_[_0x587de4('0x29')]({},_0x36850,_0x2d1fdc[_0x587de4('0x15')]);const _0x8e66d9={'where':_0x36850[_0x587de4('0x2d')]};return db[_0x587de4('0x2c')][_0x587de4('0x1c')](_0x8e66d9)[_0x587de4('0x27')](function(_0x4501d0){const _0x270470=_0x587de4;return _0x320a87[_0x270470('0x1c')]=_0x4501d0,_0x2d1fdc[_0x270470('0x21')][_0x270470('0x22')]&&(_0x36850[_0x270470('0x8')]=[{'all':!![]}]),db[_0x270470('0x2c')]['findAll'](_0x36850);})[_0x587de4('0x27')](function(_0x36bc33){const _0x47ef43=_0x587de4;return _0x320a87[_0x47ef43('0x10')]=_0x36bc33,_0x320a87;})[_0x587de4('0x27')](respondWithFilteredResult(_0x78a214,_0x36850))[_0x587de4('0x14')](handleError(_0x78a214,null));},exports['show']=function(_0x54239e,_0x460e71){const _0x2a24ca=_0x3a61db;let _0x1520db={'raw':!![],'where':{'id':_0x54239e[_0x2a24ca('0x2a')]['id']}};const _0x2873c5={};return _0x2873c5[_0x2a24ca('0x11')]=_[_0x2a24ca('0x1b')](db[_0x2a24ca('0x2c')][_0x2a24ca('0x1d')]),_0x2873c5[_0x2a24ca('0x21')]=_[_0x2a24ca('0x1b')](_0x54239e[_0x2a24ca('0x21')]),_0x2873c5[_0x2a24ca('0x2b')]=_[_0x2a24ca('0x2e')](_0x2873c5['model'],_0x2873c5['query']),_0x1520db['attributes']=_[_0x2a24ca('0x2e')](_0x2873c5['model'],qs['fields'](_0x54239e[_0x2a24ca('0x21')]['fields'])),_0x1520db[_0x2a24ca('0x18')]=_0x1520db[_0x2a24ca('0x18')][_0x2a24ca('0x7')]?_0x1520db[_0x2a24ca('0x18')]:_0x2873c5[_0x2a24ca('0x11')],_0x54239e['query'][_0x2a24ca('0x22')]&&(_0x1520db[_0x2a24ca('0x8')]=[{'all':!![]}]),_0x1520db=_['merge']({},_0x1520db,_0x54239e[_0x2a24ca('0x15')]),db[_0x2a24ca('0x2c')]['findOne'](_0x1520db)[_0x2a24ca('0x27')](handleEntityNotFound(_0x460e71,null))[_0x2a24ca('0x27')](respondWithResult(_0x460e71,null))['catch'](handleError(_0x460e71,null));},exports[_0x3a61db('0x25')]=function(_0x225942,_0x531764){const _0x5e6465=_0x3a61db;return db['Cdr']['create'](_0x225942[_0x5e6465('0x1e')],{})[_0x5e6465('0x27')](respondWithResult(_0x531764,0xc9))[_0x5e6465('0x14')](handleError(_0x531764,null));},exports['update']=function(_0x1c97a5,_0x1cfcc3){const _0x49b093=_0x3a61db;return _0x1c97a5[_0x49b093('0x1e')]['id']&&delete _0x1c97a5[_0x49b093('0x1e')]['id'],db[_0x49b093('0x2c')][_0x49b093('0x17')]({'where':{'id':_0x1c97a5[_0x49b093('0x2a')]['id']}})[_0x49b093('0x27')](handleEntityNotFound(_0x1cfcc3,null))[_0x49b093('0x27')](saveUpdates(_0x1c97a5[_0x49b093('0x1e')],null))[_0x49b093('0x27')](respondWithResult(_0x1cfcc3,null))[_0x49b093('0x14')](handleError(_0x1cfcc3,null));},exports[_0x3a61db('0x2f')]=function(_0x1c510c,_0x4f5648){const _0x49d262=_0x3a61db;return db[_0x49d262('0x2c')][_0x49d262('0x17')]({'where':{'id':_0x1c510c['params']['id']}})[_0x49d262('0x27')](handleEntityNotFound(_0x4f5648,null))[_0x49d262('0x27')](removeEntity(_0x4f5648,null))[_0x49d262('0x14')](handleError(_0x4f5648,null));},exports[_0x3a61db('0x1f')]=function(_0x12f6e9,_0x18cf97){const _0x1bba24=_0x3a61db;return db[_0x1bba24('0x2c')]['describe']()[_0x1bba24('0x27')](respondWithResult(_0x18cf97,null))['catch'](handleError(_0x18cf97,null));}; \ No newline at end of file +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 diff --git a/server/api/cdr/cdr.model.js b/server/api/cdr/cdr.model.js index 6c9bc55..5296682 100644 --- a/server/api/cdr/cdr.model.js +++ b/server/api/cdr/cdr.model.js @@ -1 +1 @@ -const a52_0x515c=['exports','src','cdr','dst','accountcode','calldate','uniqueid','define','./cdr.attributes'];(function(_0x212279,_0x515c0e){const _0xffa525=function(_0x4a71f8){while(--_0x4a71f8){_0x212279['push'](_0x212279['shift']());}};_0xffa525(++_0x515c0e);}(a52_0x515c,0xd8));const a52_0xffa5=function(_0x212279,_0x515c0e){_0x212279=_0x212279-0x0;let _0xffa525=a52_0x515c[_0x212279];return _0xffa525;};const _0xce16dc=a52_0xffa5;'use strict';const attributes=require(_0xce16dc('0x8'));module[_0xce16dc('0x0')]=function(_0x4a71f8){const _0x26830e=_0xce16dc,_0x4ae3c2=_0x4a71f8[_0x26830e('0x7')]('Cdr',attributes,{'tableName':_0x26830e('0x2'),'paranoid':![],'indexes':[{'name':'accountcode','fields':[_0x26830e('0x4')]},{'name':_0x26830e('0x5'),'fields':[_0x26830e('0x5')]},{'name':'disposition','fields':['disposition']},{'name':_0x26830e('0x3'),'fields':[_0x26830e('0x3')]},{'name':_0x26830e('0x1'),'fields':[_0x26830e('0x1')]},{'name':_0x26830e('0x6'),'fields':['uniqueid']}],'timestamps':![]});return _0x4ae3c2;}; \ No newline at end of file +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 diff --git a/server/api/cdr/index.js b/server/api/cdr/index.js index ce5394c..4479250 100644 --- a/server/api/cdr/index.js +++ b/server/api/cdr/index.js @@ -1 +1 @@ -const a53_0x379d=['show','./cdr.controller','isAuthenticated','Router','exports','destroy','get','put','express','index','/:id','create','post','update','delete','/describe'];(function(_0x14cf78,_0x379d47){const _0x3f81a9=function(_0x34ad5){while(--_0x34ad5){_0x14cf78['push'](_0x14cf78['shift']());}};_0x3f81a9(++_0x379d47);}(a53_0x379d,0x1d5));const a53_0x3f81=function(_0x14cf78,_0x379d47){_0x14cf78=_0x14cf78-0x0;let _0x3f81a9=a53_0x379d[_0x14cf78];return _0x3f81a9;};const _0x2274f3=a53_0x3f81;'use strict';const express=require(_0x2274f3('0x3')),router=express[_0x2274f3('0xe')](),auth=require('../../components/auth/service'),controller=require(_0x2274f3('0xc'));router[_0x2274f3('0x1')]('/',auth[_0x2274f3('0xd')](),controller[_0x2274f3('0x4')]),router['get'](_0x2274f3('0xa'),auth['isAuthenticated'](),controller['describe']),router[_0x2274f3('0x1')](_0x2274f3('0x5'),auth[_0x2274f3('0xd')](),controller[_0x2274f3('0xb')]),router[_0x2274f3('0x7')]('/',auth[_0x2274f3('0xd')](),controller[_0x2274f3('0x6')]),router[_0x2274f3('0x2')](_0x2274f3('0x5'),auth['isAuthenticated'](),controller[_0x2274f3('0x8')]),router[_0x2274f3('0x9')](_0x2274f3('0x5'),auth[_0x2274f3('0xd')](),controller[_0x2274f3('0x0')]),module[_0x2274f3('0xf')]=router; \ No newline at end of file +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 diff --git a/server/api/chatApplication/chatApplication.attributes.js b/server/api/chatApplication/chatApplication.attributes.js index e289e73..4a4228e 100644 --- a/server/api/chatApplication/chatApplication.attributes.js +++ b/server/api/chatApplication/chatApplication.attributes.js @@ -1 +1 @@ -const a54_0x1ad1=['noop','*,*,*,*','STRING','exports'];(function(_0x45bbcb,_0x1ad1c2){const _0x1a81f8=function(_0x55a6a1){while(--_0x55a6a1){_0x45bbcb['push'](_0x45bbcb['shift']());}};_0x1a81f8(++_0x1ad1c2);}(a54_0x1ad1,0x130));const a54_0x1a81=function(_0x45bbcb,_0x1ad1c2){_0x45bbcb=_0x45bbcb-0x0;let _0x1a81f8=a54_0x1ad1[_0x45bbcb];return _0x1a81f8;};const _0x1d5e77=a54_0x1a81;'use strict';const Sequelize=require('sequelize');module[_0x1d5e77('0x3')]={'priority':{'type':Sequelize['INTEGER'],'allowNull':![]},'app':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x1d5e77('0x0')},'appdata':{'type':Sequelize['TEXT']()},'description':{'type':Sequelize['STRING']},'interval':{'type':Sequelize[_0x1d5e77('0x2')],'defaultValue':_0x1d5e77('0x1')}}; \ No newline at end of file +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 diff --git a/server/api/chatApplication/chatApplication.controller.js b/server/api/chatApplication/chatApplication.controller.js index 3a18cfc..2b9ba1f 100644 --- a/server/api/chatApplication/chatApplication.controller.js +++ b/server/api/chatApplication/chatApplication.controller.js @@ -1 +1 @@ -const a55_0x444a=['status','sendStatus','model','end','catch','destroy','fields','lodash','params','include','api','stack','merge','includeAll','error','rawAttributes','then','query','ChatApplication','options','findOne','attributes','name','body','keys','intersection','json','length','update','../../mysqldb'];(function(_0x4294fd,_0x444afb){const _0x5c2715=function(_0x42048b){while(--_0x42048b){_0x4294fd['push'](_0x4294fd['shift']());}};_0x5c2715(++_0x444afb);}(a55_0x444a,0x183));const a55_0x5c27=function(_0x4294fd,_0x444afb){_0x4294fd=_0x4294fd-0x0;let _0x5c2715=a55_0x444a[_0x4294fd];return _0x5c2715;};const _0x5b011f=a55_0x5c27;'use strict';const _=require(_0x5b011f('0xa')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x5b011f('0xd')),db=require(_0x5b011f('0x2'))['db'];function respondWithResult(_0x42048b,_0x48c020){return _0x48c020=_0x48c020||0xc8,function(_0x47a04b){const _0x46df00=a55_0x5c27;if(_0x47a04b)return _0x42048b[_0x46df00('0x3')](_0x48c020)[_0x46df00('0x1d')](_0x47a04b);};}function saveUpdates(_0x51b044){return function(_0x1db933){const _0xd7bda1=a55_0x5c27;if(_0x1db933)return _0x1db933[_0xd7bda1('0x1')](_0x51b044)[_0xd7bda1('0x13')](function(_0x2c7422){return _0x2c7422;});return null;};}function removeEntity(_0x564fe8){return function(_0x600b9e){const _0x171886=a55_0x5c27;if(_0x600b9e)return _0x600b9e[_0x171886('0x8')]()[_0x171886('0x13')](function(){const _0x223a92=_0x171886;_0x564fe8[_0x223a92('0x3')](0xcc)[_0x223a92('0x6')]();});};}function handleEntityNotFound(_0x34c496){return function(_0x202cc5){const _0x379e9b=a55_0x5c27;return!_0x202cc5&&_0x34c496[_0x379e9b('0x4')](0x194),_0x202cc5;};}function handleError(_0x133b32,_0x1ff432){return _0x1ff432=_0x1ff432||0x1f4,function(_0x13b912){const _0x2f316f=a55_0x5c27;logger[_0x2f316f('0x11')](_0x13b912[_0x2f316f('0xe')]),_0x13b912['name']&&delete _0x13b912[_0x2f316f('0x19')],_0x133b32[_0x2f316f('0x3')](_0x1ff432)['send'](_0x13b912);};}exports['show']=function(_0x3e0a2b,_0x4a6ffc){const _0x4fd5a3=_0x5b011f;let _0x58a74f={'raw':!![],'where':{'id':_0x3e0a2b[_0x4fd5a3('0xb')]['id']}};const _0xaa2fa2={};return _0xaa2fa2[_0x4fd5a3('0x5')]=_[_0x4fd5a3('0x1b')](db[_0x4fd5a3('0x15')][_0x4fd5a3('0x12')]),_0xaa2fa2['query']=_['keys'](_0x3e0a2b[_0x4fd5a3('0x14')]),_0xaa2fa2['filters']=_[_0x4fd5a3('0x1c')](_0xaa2fa2['model'],_0xaa2fa2['query']),_0x58a74f[_0x4fd5a3('0x18')]=_[_0x4fd5a3('0x1c')](_0xaa2fa2[_0x4fd5a3('0x5')],qs[_0x4fd5a3('0x9')](_0x3e0a2b[_0x4fd5a3('0x14')][_0x4fd5a3('0x9')])),_0x58a74f['attributes']=_0x58a74f[_0x4fd5a3('0x18')][_0x4fd5a3('0x0')]?_0x58a74f[_0x4fd5a3('0x18')]:_0xaa2fa2[_0x4fd5a3('0x5')],_0x3e0a2b[_0x4fd5a3('0x14')][_0x4fd5a3('0x10')]&&(_0x58a74f[_0x4fd5a3('0xc')]=[{'all':!![]}]),_0x58a74f=_[_0x4fd5a3('0xf')]({},_0x58a74f,_0x3e0a2b[_0x4fd5a3('0x16')]),db[_0x4fd5a3('0x15')][_0x4fd5a3('0x17')](_0x58a74f)['then'](handleEntityNotFound(_0x4a6ffc,null))['then'](respondWithResult(_0x4a6ffc,null))[_0x4fd5a3('0x7')](handleError(_0x4a6ffc,null));},exports[_0x5b011f('0x1')]=function(_0x5e2481,_0x2cf484){const _0x52674a=_0x5b011f;return _0x5e2481[_0x52674a('0x1a')]['id']&&delete _0x5e2481['body']['id'],db[_0x52674a('0x15')][_0x52674a('0x17')]({'where':{'id':_0x5e2481[_0x52674a('0xb')]['id']}})[_0x52674a('0x13')](handleEntityNotFound(_0x2cf484,null))[_0x52674a('0x13')](saveUpdates(_0x5e2481[_0x52674a('0x1a')],null))[_0x52674a('0x13')](respondWithResult(_0x2cf484,null))[_0x52674a('0x7')](handleError(_0x2cf484,null));},exports['destroy']=function(_0x1159e0,_0x2db397){const _0x34320b=_0x5b011f;return db[_0x34320b('0x15')][_0x34320b('0x17')]({'where':{'id':_0x1159e0[_0x34320b('0xb')]['id']}})[_0x34320b('0x13')](handleEntityNotFound(_0x2db397,null))[_0x34320b('0x13')](removeEntity(_0x2db397,null))[_0x34320b('0x7')](handleError(_0x2db397,null));}; \ No newline at end of file +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 diff --git a/server/api/chatApplication/chatApplication.model.js b/server/api/chatApplication/chatApplication.model.js index fd4e1a8..0afe505 100644 --- a/server/api/chatApplication/chatApplication.model.js +++ b/server/api/chatApplication/chatApplication.model.js @@ -1 +1 @@ -const a56_0x141b=['chat_applications','ChatApplication','define','utf8mb4_unicode_ci','utf8mb4','exports','./chatApplication.attributes'];(function(_0x238b3a,_0x141bd4){const _0x2fb111=function(_0x6f308d){while(--_0x6f308d){_0x238b3a['push'](_0x238b3a['shift']());}};_0x2fb111(++_0x141bd4);}(a56_0x141b,0xb7));const a56_0x2fb1=function(_0x238b3a,_0x141bd4){_0x238b3a=_0x238b3a-0x0;let _0x2fb111=a56_0x141b[_0x238b3a];return _0x2fb111;};const _0x145d47=a56_0x2fb1;'use strict';const attributes=require(_0x145d47('0x5'));module[_0x145d47('0x4')]=function(_0x6f308d){const _0x3d4a35=_0x145d47,_0x575e4e=_0x6f308d[_0x3d4a35('0x1')](_0x3d4a35('0x0'),attributes,{'tableName':_0x3d4a35('0x6'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x3d4a35('0x3'),'collate':_0x3d4a35('0x2')});return _0x575e4e;}; \ No newline at end of file +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 diff --git a/server/api/chatApplication/index.js b/server/api/chatApplication/index.js index 68f1546..72ab372 100644 --- a/server/api/chatApplication/index.js +++ b/server/api/chatApplication/index.js @@ -1 +1 @@ -const a57_0x26e0=['./chatApplication.controller','/:id','get','update','Router','express','show','put','delete','isAuthenticated'];(function(_0x30b849,_0x26e00a){const _0x58c7c4=function(_0x29bc82){while(--_0x29bc82){_0x30b849['push'](_0x30b849['shift']());}};_0x58c7c4(++_0x26e00a);}(a57_0x26e0,0xf1));const a57_0x58c7=function(_0x30b849,_0x26e00a){_0x30b849=_0x30b849-0x0;let _0x58c7c4=a57_0x26e0[_0x30b849];return _0x58c7c4;};const _0x322c54=a57_0x58c7;'use strict';const express=require(_0x322c54('0x4')),router=express[_0x322c54('0x3')](),auth=require('../../components/auth/service'),controller=require(_0x322c54('0x9'));router[_0x322c54('0x1')](_0x322c54('0x0'),auth[_0x322c54('0x8')](),controller[_0x322c54('0x5')]),router[_0x322c54('0x6')]('/:id',auth[_0x322c54('0x8')](),controller[_0x322c54('0x2')]),router[_0x322c54('0x7')](_0x322c54('0x0'),auth[_0x322c54('0x8')](),controller['destroy']),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/chatGroup/chatGroup.attributes.js b/server/api/chatGroup/chatGroup.attributes.js index 10242c7..75fb61e 100644 --- a/server/api/chatGroup/chatGroup.attributes.js +++ b/server/api/chatGroup/chatGroup.attributes.js @@ -1 +1 @@ -const a58_0x3db1=['STRING'];(function(_0x415766,_0x3db108){const _0x24e9e9=function(_0x53a309){while(--_0x53a309){_0x415766['push'](_0x415766['shift']());}};_0x24e9e9(++_0x3db108);}(a58_0x3db1,0x163));const a58_0x24e9=function(_0x415766,_0x3db108){_0x415766=_0x415766-0x0;let _0x24e9e9=a58_0x3db1[_0x415766];return _0x24e9e9;};const _0xffeae0=a58_0x24e9;'use strict';const Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0xffeae0('0x0')],'allowNull':![]},'description':{'type':Sequelize[_0xffeae0('0x0')]},'write':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]}}; \ No newline at end of file +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 diff --git a/server/api/chatGroup/chatGroup.controller.js b/server/api/chatGroup/chatGroup.controller.js index bd88768..19e62c7 100644 --- a/server/api/chatGroup/chatGroup.controller.js +++ b/server/api/chatGroup/chatGroup.controller.js @@ -1 +1 @@ -const a59_0x399f=['user','./chatGroup.socket','json','api','show','undefined','getMembers','../../rediscache','findOne','params','../../components/parsers/qs','key','then','ChatInternalMessage','../../config/logger','like','where','ChatGroup','keys','$gte','destroy','limit','rawAttributes','filters','body','end','sendStatus','update','addMessage','describe','fieldName','options','intersection','merge','query','nolimit','Content-Range','attributes','stack','include','findAll','set','moment','offset','length','includeAll','split','pick','name','toInteger','gte','map','../../mysqldb','catch','sort','type','VIRTUAL','ids','getUnread','fields','error','filter','order','removeMembers','addMembers','getMessages','model','create','format','count','status','rows'];(function(_0x3e2e6e,_0x399f14){const _0x58350a=function(_0x4904ce){while(--_0x4904ce){_0x3e2e6e['push'](_0x3e2e6e['shift']());}};_0x58350a(++_0x399f14);}(a59_0x399f,0xa9));const a59_0x5835=function(_0x3e2e6e,_0x399f14){_0x3e2e6e=_0x3e2e6e-0x0;let _0x58350a=a59_0x399f[_0x3e2e6e];return _0x58350a;};const _0x24d2ad=a59_0x5835;'use strict';const moment=require(_0x24d2ad('0x11')),_=require('lodash'),{getSocket}=require(_0x24d2ad('0x36')),qs=require(_0x24d2ad('0x39')),logger=require(_0x24d2ad('0x3d'))(_0x24d2ad('0x32')),db=require(_0x24d2ad('0x1b'))['db'],{Op}=require('sequelize'),socket=getSocket();require(_0x24d2ad('0x30'))['register'](socket);function respondWithStatusCode(_0x4904ce,_0x1eedbe){return _0x1eedbe=_0x1eedbe||0xcc,function(_0x4a2326){const _0x412091=a59_0x5835;if(_0x4a2326)return _0x4904ce[_0x412091('0x1')](_0x1eedbe);return _0x4904ce[_0x412091('0x2d')](_0x1eedbe)['end']();};}function respondWithResult(_0x2b3b02,_0x5bc73e){return _0x5bc73e=_0x5bc73e||0xc8,function(_0x3bf287){const _0xbd5f8d=a59_0x5835;if(_0x3bf287)return _0x2b3b02[_0xbd5f8d('0x2d')](_0x5bc73e)['json'](_0x3bf287);};}function respondWithFilteredResult(_0x3fa701,_0x1abc90){return function(_0x39222c){const _0x3f033a=a59_0x5835;if(_0x39222c){const _0x154b5e=_0x39222c[_0x3f033a('0x2c')],_0x3ec68a=_0x1abc90[_0x3f033a('0x12')];let _0x41ebb5=_0x1abc90[_0x3f033a('0x12')]+_0x1abc90[_0x3f033a('0x44')],_0x4ebc86;return _0x41ebb5>=_0x154b5e?(_0x41ebb5=_0x154b5e,_0x4ebc86=0xc8):_0x4ebc86=0xce,_0x3fa701[_0x3f033a('0x2d')](_0x4ebc86),_0x3fa701[_0x3f033a('0x10')](_0x3f033a('0xb'),_0x3ec68a+'-'+_0x41ebb5+'/'+_0x154b5e)[_0x3f033a('0x31')](_0x39222c);}return null;};}function saveUpdates(_0x317311){return function(_0x1c85e6){const _0x1645fc=a59_0x5835;if(_0x1c85e6)return _0x1c85e6[_0x1645fc('0x2')](_0x317311)[_0x1645fc('0x3b')](function(_0x1af9f6){return _0x1af9f6;});return null;};}function removeEntity(_0x3ff060){return function(_0x284c45){const _0xe26686=a59_0x5835;if(_0x284c45)return _0x284c45[_0xe26686('0x43')]()[_0xe26686('0x3b')](function(){const _0x44ef43=_0xe26686;_0x3ff060[_0x44ef43('0x2d')](0xcc)[_0x44ef43('0x0')]();});};}function handleEntityNotFound(_0x8bd2a6){return function(_0x474c86){return!_0x474c86&&_0x8bd2a6['sendStatus'](0x194),_0x474c86;};}function handleError(_0x11db09,_0xf3afa9){return _0xf3afa9=_0xf3afa9||0x1f4,function(_0x1e8459){const _0x29fc5f=a59_0x5835;logger[_0x29fc5f('0x23')](_0x1e8459[_0x29fc5f('0xd')]),_0x1e8459[_0x29fc5f('0x17')]&&delete _0x1e8459[_0x29fc5f('0x17')],_0x11db09[_0x29fc5f('0x2d')](_0xf3afa9)['send'](_0x1e8459);};}exports['index']=function(_0x28650f,_0x1519c5){const _0x13f352=_0x24d2ad;let _0x17c67d={};const _0x4e16bf={},_0x5098a8={'count':0x0,'rows':[]},_0x4f0f08=_['map'](db[_0x13f352('0x40')][_0x13f352('0x45')],function(_0x19475a){const _0x14b8b2=_0x13f352;return{'name':_0x19475a[_0x14b8b2('0x5')],'type':_0x19475a[_0x14b8b2('0x1e')][_0x14b8b2('0x3a')]};});_0x4e16bf[_0x13f352('0x29')]=_[_0x13f352('0x1a')](_0x4f0f08,'name'),_0x4e16bf['query']=_[_0x13f352('0x41')](_0x28650f[_0x13f352('0x9')]),_0x4e16bf['filters']=_[_0x13f352('0x7')](_0x4e16bf['model'],_0x4e16bf[_0x13f352('0x9')]),_0x17c67d[_0x13f352('0xc')]=_['intersection'](_0x4e16bf[_0x13f352('0x29')],qs[_0x13f352('0x22')](_0x28650f[_0x13f352('0x9')][_0x13f352('0x22')])),_0x17c67d[_0x13f352('0xc')]=_0x17c67d[_0x13f352('0xc')][_0x13f352('0x13')]?_0x17c67d[_0x13f352('0xc')]:_0x4e16bf['model'];typeof _0x28650f[_0x13f352('0x9')][_0x13f352('0xa')]==='undefined'&&(_0x17c67d['limit']=qs[_0x13f352('0x44')](_0x28650f[_0x13f352('0x9')][_0x13f352('0x44')]),_0x17c67d[_0x13f352('0x12')]=qs[_0x13f352('0x12')](_0x28650f['query'][_0x13f352('0x12')]));_0x17c67d[_0x13f352('0x25')]=qs[_0x13f352('0x1d')](_0x28650f[_0x13f352('0x9')][_0x13f352('0x1d')]),_0x17c67d['where']=qs[_0x13f352('0x46')](_['pick'](_0x28650f[_0x13f352('0x9')],_0x4e16bf[_0x13f352('0x46')]),_0x4f0f08);_0x28650f[_0x13f352('0x9')][_0x13f352('0x24')]&&(_0x17c67d[_0x13f352('0x3f')]=_['merge'](_0x17c67d[_0x13f352('0x3f')],{[Op['or']]:_[_0x13f352('0x1a')](_0x4f0f08,function(_0x2e3e8b){const _0x3d1171=_0x13f352;if(_0x2e3e8b[_0x3d1171('0x1e')]!==_0x3d1171('0x1f')){const _0x3559d1={};return _0x3559d1[_0x2e3e8b['name']]={[Op['like']]:'%'+_0x28650f[_0x3d1171('0x9')]['filter']+'%'},_0x3559d1;}})}));_0x17c67d=_['merge']({},_0x17c67d,_0x28650f['options']);const _0xd17958={'where':_0x17c67d[_0x13f352('0x3f')]};return db['ChatGroup']['count'](_0xd17958)['then'](function(_0x1f2249){const _0x44d127=_0x13f352;return _0x5098a8['count']=_0x1f2249,_0x28650f['query'][_0x44d127('0x14')]&&(_0x17c67d['include']=[{'all':!![]}]),db['ChatGroup'][_0x44d127('0xf')](_0x17c67d);})[_0x13f352('0x3b')](function(_0xc1aa73){const _0x32da7b=_0x13f352;return _0x5098a8[_0x32da7b('0x2e')]=_0xc1aa73,_0x5098a8;})[_0x13f352('0x3b')](respondWithFilteredResult(_0x1519c5,_0x17c67d))['catch'](handleError(_0x1519c5,null));},exports[_0x24d2ad('0x33')]=function(_0x4edd8d,_0xad07ba){const _0x13588b=_0x24d2ad;let _0x17ef1d={'raw':!![],'where':{'id':_0x4edd8d[_0x13588b('0x38')]['id']}};const _0x12178e={};return _0x12178e['model']=_[_0x13588b('0x41')](db[_0x13588b('0x40')][_0x13588b('0x45')]),_0x12178e['query']=_['keys'](_0x4edd8d['query']),_0x12178e['filters']=_['intersection'](_0x12178e['model'],_0x12178e[_0x13588b('0x9')]),_0x17ef1d['attributes']=_[_0x13588b('0x7')](_0x12178e[_0x13588b('0x29')],qs['fields'](_0x4edd8d['query'][_0x13588b('0x22')])),_0x17ef1d['attributes']=_0x17ef1d[_0x13588b('0xc')][_0x13588b('0x13')]?_0x17ef1d[_0x13588b('0xc')]:_0x12178e['model'],_0x4edd8d['query'][_0x13588b('0x14')]&&(_0x17ef1d[_0x13588b('0xe')]=[{'all':!![]}]),_0x17ef1d=_['merge']({},_0x17ef1d,_0x4edd8d[_0x13588b('0x6')]),db[_0x13588b('0x40')]['findOne'](_0x17ef1d)['then'](handleEntityNotFound(_0xad07ba,null))[_0x13588b('0x3b')](respondWithResult(_0xad07ba,null))[_0x13588b('0x1c')](handleError(_0xad07ba,null));},exports[_0x24d2ad('0x2a')]=function(_0x50f5e8,_0x44a632){const _0x93b86=_0x24d2ad;return db[_0x93b86('0x40')]['create'](_0x50f5e8[_0x93b86('0x47')],{})['then'](respondWithResult(_0x44a632,0xc9))[_0x93b86('0x1c')](handleError(_0x44a632,null));},exports[_0x24d2ad('0x2')]=function(_0x96980,_0x150a48){const _0x39d744=_0x24d2ad;return _0x96980[_0x39d744('0x47')]['id']&&delete _0x96980[_0x39d744('0x47')]['id'],db['ChatGroup'][_0x39d744('0x37')]({'where':{'id':_0x96980[_0x39d744('0x38')]['id']}})[_0x39d744('0x3b')](handleEntityNotFound(_0x150a48,null))[_0x39d744('0x3b')](saveUpdates(_0x96980[_0x39d744('0x47')],null))[_0x39d744('0x3b')](respondWithResult(_0x150a48,null))[_0x39d744('0x1c')](handleError(_0x150a48,null));},exports[_0x24d2ad('0x43')]=function(_0x4c629d,_0x5d00f4){const _0x5841dd=_0x24d2ad;return db[_0x5841dd('0x40')][_0x5841dd('0x37')]({'where':{'id':_0x4c629d['params']['id']}})[_0x5841dd('0x3b')](handleEntityNotFound(_0x5d00f4,null))[_0x5841dd('0x3b')](removeEntity(_0x5d00f4,null))[_0x5841dd('0x1c')](handleError(_0x5d00f4,null));},exports[_0x24d2ad('0x4')]=function(_0x381bf4,_0x1c4da1){const _0x44efc9=_0x24d2ad;return db[_0x44efc9('0x40')][_0x44efc9('0x4')]()[_0x44efc9('0x3b')](respondWithResult(_0x1c4da1,null))[_0x44efc9('0x1c')](handleError(_0x1c4da1,null));},exports[_0x24d2ad('0x21')]=function(_0xdd5027,_0x1f09b3){const _0x599f23=_0x24d2ad;return db[_0x599f23('0x3c')][_0x599f23('0x2c')]({'where':{'ChatGroupId':_0xdd5027[_0x599f23('0x38')]['id'],'ToId':_0xdd5027[_0x599f23('0x2f')]['id'],'read':![]}})[_0x599f23('0x3b')](function(_0x91974a){const _0x2a2cc4=_0x599f23;return{'id':_[_0x2a2cc4('0x18')](_0xdd5027['params']['id']),'count':_0x91974a};})[_0x599f23('0x3b')](respondWithResult(_0x1f09b3,null))[_0x599f23('0x1c')](handleError(_0x1f09b3,null));},exports[_0x24d2ad('0x27')]=function(_0xa09751,_0xcbd19d){const _0x433fff=_0x24d2ad;return db[_0x433fff('0x40')]['findOne']({'where':{'id':_0xa09751[_0x433fff('0x38')]['id']}})[_0x433fff('0x3b')](function(_0x1c3693){const _0x531352=_0x433fff;if(_0x1c3693)return _0x1c3693[_0x531352('0x27')](_0xa09751[_0x531352('0x47')]['ids'],{'through':_['omit'](_0xa09751['body'],[_0x531352('0x20'),'id'])});})[_0x433fff('0x3b')](respondWithResult(_0xcbd19d,null))['catch'](handleError(_0xcbd19d,null));},exports[_0x24d2ad('0x35')]=function(_0x12abc,_0x44465a){const _0x2f53a1=_0x24d2ad;let _0x5c4cc3={};const _0x4dfe16={};let _0x2144dd,_0x429b9e;return db['ChatGroup']['findOne']({'where':{'id':_0x12abc['params']['id']}})['then'](handleEntityNotFound(_0x44465a,null))['then'](function(_0x3be08e){const _0x5d1dc6=a59_0x5835;if(_0x3be08e)return _0x2144dd=_0x3be08e,_0x4dfe16[_0x5d1dc6('0x29')]=_[_0x5d1dc6('0x41')](db['User']['rawAttributes']),_0x4dfe16[_0x5d1dc6('0x9')]=_[_0x5d1dc6('0x41')](_0x12abc[_0x5d1dc6('0x9')]),_0x4dfe16[_0x5d1dc6('0x46')]=_[_0x5d1dc6('0x7')](_0x4dfe16['model'],_0x4dfe16[_0x5d1dc6('0x9')]),_0x5c4cc3[_0x5d1dc6('0xc')]=_[_0x5d1dc6('0x7')](_0x4dfe16['model'],qs[_0x5d1dc6('0x22')](_0x12abc[_0x5d1dc6('0x9')][_0x5d1dc6('0x22')])),_0x5c4cc3[_0x5d1dc6('0xc')]=_0x5c4cc3[_0x5d1dc6('0xc')][_0x5d1dc6('0x13')]?_0x5c4cc3[_0x5d1dc6('0xc')]:_0x4dfe16[_0x5d1dc6('0x29')],_0x5c4cc3[_0x5d1dc6('0x25')]=qs['sort'](_0x12abc['query'][_0x5d1dc6('0x1d')]),_0x5c4cc3['where']=qs[_0x5d1dc6('0x46')](_[_0x5d1dc6('0x16')](_0x12abc[_0x5d1dc6('0x9')],_0x4dfe16['filters'])),_0x12abc[_0x5d1dc6('0x9')][_0x5d1dc6('0x24')]&&(_0x5c4cc3['where']=_[_0x5d1dc6('0x8')](_0x5c4cc3['where'],{[Op['or']]:_[_0x5d1dc6('0x1a')](_0x5c4cc3[_0x5d1dc6('0xc')],function(_0x15147d){const _0x29cf9d=_0x5d1dc6,_0x13973a={};return _0x13973a[_0x15147d]={[Op['like']]:'%'+_0x12abc[_0x29cf9d('0x9')][_0x29cf9d('0x24')]+'%'},_0x13973a;})})),_0x5c4cc3=_[_0x5d1dc6('0x8')]({},_0x5c4cc3,_0x12abc[_0x5d1dc6('0x6')]),_0x2144dd[_0x5d1dc6('0x35')](_0x5c4cc3);})[_0x2f53a1('0x3b')](function(_0x4757f5){const _0x3cd453=_0x2f53a1;if(_0x4757f5)return _0x429b9e=_0x4757f5[_0x3cd453('0x13')],typeof _0x12abc[_0x3cd453('0x9')][_0x3cd453('0xa')]===_0x3cd453('0x34')&&(_0x5c4cc3['limit']=qs[_0x3cd453('0x44')](_0x12abc[_0x3cd453('0x9')][_0x3cd453('0x44')]),_0x5c4cc3['offset']=qs['offset'](_0x12abc[_0x3cd453('0x9')]['offset'])),_0x2144dd[_0x3cd453('0x35')](_0x5c4cc3);})[_0x2f53a1('0x3b')](function(_0x46b8e0){if(_0x46b8e0)return _0x46b8e0?{'count':_0x429b9e,'rows':_0x46b8e0}:null;})[_0x2f53a1('0x3b')](respondWithResult(_0x44465a,null))[_0x2f53a1('0x1c')](handleError(_0x44465a,null));},exports[_0x24d2ad('0x26')]=function(_0x3980e2,_0xc1ee6e){const _0x127994=_0x24d2ad;return db['ChatGroup'][_0x127994('0x37')]({'where':{'id':_0x3980e2[_0x127994('0x38')]['id']}})[_0x127994('0x3b')](handleEntityNotFound(_0xc1ee6e,null))['then'](function(_0x2c1fa9){const _0x72a6b4=_0x127994;if(_0x2c1fa9)return _0x2c1fa9['removeMembers'](_0x3980e2[_0x72a6b4('0x9')]['ids']);})[_0x127994('0x3b')](respondWithStatusCode(_0xc1ee6e,null))[_0x127994('0x1c')](handleError(_0xc1ee6e,null));},exports[_0x24d2ad('0x3')]=function(_0x5d558c,_0xad23a2){const _0x18e609=_0x24d2ad;return _0x5d558c[_0x18e609('0x47')]['id']&&delete _0x5d558c[_0x18e609('0x47')]['id'],db[_0x18e609('0x40')][_0x18e609('0x37')]({'where':{'id':_0x5d558c['params']['id']}})[_0x18e609('0x3b')](handleEntityNotFound(_0xad23a2,null))[_0x18e609('0x3b')](function(_0xb31b5f){const _0x1782a9=_0x18e609;if(_0xb31b5f)return _0x5d558c[_0x1782a9('0x47')]['ChatGroupId']=_0xb31b5f['id'],db[_0x1782a9('0x3c')][_0x1782a9('0x2a')](_0x5d558c[_0x1782a9('0x47')]);})[_0x18e609('0x3b')](respondWithResult(_0xad23a2,null))['catch'](handleError(_0xad23a2,null));},exports[_0x24d2ad('0x28')]=function(_0x2d73f7,_0x3941e9){const _0x57e9e3=_0x24d2ad;let _0x1b38a3={};const _0x56b52c={};let _0x239672,_0x340bd9;return db['ChatGroup']['findOne']({'where':{'id':_0x2d73f7[_0x57e9e3('0x38')]['id']}})[_0x57e9e3('0x3b')](handleEntityNotFound(_0x3941e9,null))[_0x57e9e3('0x3b')](function(_0x575b0f){const _0x2f491c=_0x57e9e3;if(_0x575b0f){_0x239672=_0x575b0f,_0x56b52c[_0x2f491c('0x29')]=_['keys'](db[_0x2f491c('0x3c')][_0x2f491c('0x45')]),_0x56b52c[_0x2f491c('0x9')]=_[_0x2f491c('0x41')](_0x2d73f7[_0x2f491c('0x9')]),_0x56b52c[_0x2f491c('0x46')]=_[_0x2f491c('0x7')](_0x56b52c['model'],_0x56b52c[_0x2f491c('0x9')]),_0x1b38a3[_0x2f491c('0xc')]=_[_0x2f491c('0x7')](_0x56b52c[_0x2f491c('0x29')],qs[_0x2f491c('0x22')](_0x2d73f7['query'][_0x2f491c('0x22')])),_0x1b38a3[_0x2f491c('0xc')]=_0x1b38a3['attributes'][_0x2f491c('0x13')]?_0x1b38a3['attributes']:_0x56b52c[_0x2f491c('0x29')],_0x1b38a3['order']=qs['sort'](_0x2d73f7['query'][_0x2f491c('0x1d')]),_0x1b38a3[_0x2f491c('0x3f')]=qs[_0x2f491c('0x46')](_['pick'](_0x2d73f7[_0x2f491c('0x9')],_0x56b52c['filters']));_0x2d73f7[_0x2f491c('0x9')][_0x2f491c('0x24')]&&(_0x1b38a3[_0x2f491c('0x3f')]=_[_0x2f491c('0x8')](_0x1b38a3['where'],{[Op['or']]:_[_0x2f491c('0x1a')](_0x1b38a3[_0x2f491c('0xc')],function(_0xc70cdb){const _0x2ca4c0=_0x2f491c,_0x12ce5a={};return _0x12ce5a[_0xc70cdb]={[Op[_0x2ca4c0('0x3e')]]:'%'+_0x2d73f7[_0x2ca4c0('0x9')][_0x2ca4c0('0x24')]+'%'},_0x12ce5a;})}));if(_0x2d73f7['query']['$gte']){const _0x5a6cce=_0x2d73f7[_0x2f491c('0x9')][_0x2f491c('0x42')][_0x2f491c('0x15')](','),_0x4f57e6={};_0x4f57e6[_0x5a6cce[0x0]]={[Op[_0x2f491c('0x19')]]:moment(_0x5a6cce[0x1])[_0x2f491c('0x2b')]('YYYY-MM-DD\x20HH:mm:ss')},_0x1b38a3['where']=_[_0x2f491c('0x8')](_0x1b38a3['where'],_0x4f57e6);}return _0x1b38a3=_[_0x2f491c('0x8')]({},_0x1b38a3,_0x2d73f7[_0x2f491c('0x6')]),_0x239672['getMessages'](_0x1b38a3);}})[_0x57e9e3('0x3b')](function(_0xdb7256){const _0x4250e2=_0x57e9e3;if(_0xdb7256)return _0x340bd9=_0xdb7256[_0x4250e2('0x13')],typeof _0x2d73f7['query'][_0x4250e2('0xa')]==='undefined'&&(_0x1b38a3[_0x4250e2('0x44')]=qs[_0x4250e2('0x44')](_0x2d73f7[_0x4250e2('0x9')]['limit']),_0x1b38a3[_0x4250e2('0x12')]=qs['offset'](_0x2d73f7[_0x4250e2('0x9')][_0x4250e2('0x12')])),_0x239672[_0x4250e2('0x28')](_0x1b38a3);})[_0x57e9e3('0x3b')](function(_0x221396){if(_0x221396)return _0x221396?{'count':_0x340bd9,'rows':_0x221396}:null;})[_0x57e9e3('0x3b')](respondWithResult(_0x3941e9,null))[_0x57e9e3('0x1c')](handleError(_0x3941e9,null));}; \ No newline at end of file +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 diff --git a/server/api/chatGroup/chatGroup.events.js b/server/api/chatGroup/chatGroup.events.js index 08e0970..f38f71e 100644 --- a/server/api/chatGroup/chatGroup.events.js +++ b/server/api/chatGroup/chatGroup.events.js @@ -1 +1 @@ -const a60_0x7fc2=['update','emit','remove','events','save','ChatGroup','undefined'];(function(_0x21b302,_0x7fc277){const _0x2e33d9=function(_0x576f96){while(--_0x576f96){_0x21b302['push'](_0x21b302['shift']());}};_0x2e33d9(++_0x7fc277);}(a60_0x7fc2,0x18d));const a60_0x2e33=function(_0x21b302,_0x7fc277){_0x21b302=_0x21b302-0x0;let _0x2e33d9=a60_0x7fc2[_0x21b302];return _0x2e33d9;};const _0x324f9c=a60_0x2e33;'use strict';const EventEmitter=require(_0x324f9c('0x5')),ChatGroup=require('../../mysqldb')['db'][_0x324f9c('0x0')],ChatGroupEvents=new EventEmitter();ChatGroupEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x324f9c('0x6'),'afterUpdate':_0x324f9c('0x2'),'afterDestroy':_0x324f9c('0x4')};function emitEvent(_0x576f96){return function(_0x2b809d){const _0x12cd98=a60_0x2e33;ChatGroupEvents[_0x12cd98('0x3')](_0x576f96+':'+_0x2b809d['id'],_0x2b809d),ChatGroupEvents['emit'](_0x576f96,_0x2b809d);};}for(const e in events){if(typeof events[e]!==_0x324f9c('0x1')){const event=events[e];ChatGroup['addHook'](e,emitEvent(event));}}module['exports']=ChatGroupEvents; \ No newline at end of file +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 diff --git a/server/api/chatGroup/chatGroup.model.js b/server/api/chatGroup/chatGroup.model.js index 1b59b57..7feaa2d 100644 --- a/server/api/chatGroup/chatGroup.model.js +++ b/server/api/chatGroup/chatGroup.model.js @@ -1 +1 @@ -const a61_0x2ea5=['chat_groups','define','exports','./chatGroup.attributes','ChatGroup'];(function(_0x595405,_0x2ea5ed){const _0x2ce109=function(_0x38813f){while(--_0x38813f){_0x595405['push'](_0x595405['shift']());}};_0x2ce109(++_0x2ea5ed);}(a61_0x2ea5,0x113));const a61_0x2ce1=function(_0x595405,_0x2ea5ed){_0x595405=_0x595405-0x0;let _0x2ce109=a61_0x2ea5[_0x595405];return _0x2ce109;};const _0x1005ee=a61_0x2ce1;'use strict';const attributes=require(_0x1005ee('0x3'));module[_0x1005ee('0x2')]=function(_0x38813f){const _0x2a5637=_0x1005ee,_0x1ed4ce=_0x38813f[_0x2a5637('0x1')](_0x2a5637('0x4'),attributes,{'tableName':_0x2a5637('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1ed4ce;}; \ No newline at end of file +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 diff --git a/server/api/chatGroup/chatGroup.rpc.js b/server/api/chatGroup/chatGroup.rpc.js index 345d23f..989c6a1 100644 --- a/server/api/chatGroup/chatGroup.rpc.js +++ b/server/api/chatGroup/chatGroup.rpc.js @@ -1 +1 @@ -const a62_0x29ce=['./chatGroup.socket','register'];(function(_0x121ae3,_0x29ce6f){const _0x536c77=function(_0x4ae786){while(--_0x4ae786){_0x121ae3['push'](_0x121ae3['shift']());}};_0x536c77(++_0x29ce6f);}(a62_0x29ce,0x19f));const a62_0x536c=function(_0x121ae3,_0x29ce6f){_0x121ae3=_0x121ae3-0x0;let _0x536c77=a62_0x29ce[_0x121ae3];return _0x536c77;};const _0x281eb7=a62_0x536c;'use strict';const {getSocket}=require('../../rediscache'),socket=getSocket();require(_0x281eb7('0x1'))[_0x281eb7('0x0')](socket); \ No newline at end of file +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 diff --git a/server/api/chatGroup/chatGroup.socket.js b/server/api/chatGroup/chatGroup.socket.js index da4013d..fc78680 100644 --- a/server/api/chatGroup/chatGroup.socket.js +++ b/server/api/chatGroup/chatGroup.socket.js @@ -1 +1 @@ -const a63_0x213c=['remove','update','save'];(function(_0x512fd0,_0x213cfb){const _0x257cb5=function(_0x4f71a1){while(--_0x4f71a1){_0x512fd0['push'](_0x512fd0['shift']());}};_0x257cb5(++_0x213cfb);}(a63_0x213c,0x134));const a63_0x257c=function(_0x512fd0,_0x213cfb){_0x512fd0=_0x512fd0-0x0;let _0x257cb5=a63_0x213c[_0x512fd0];return _0x257cb5;};const _0x16b554=a63_0x257c;'use strict';const ChatGroupEvents=require('./chatGroup.events'),events=[_0x16b554('0x0'),_0x16b554('0x1'),_0x16b554('0x2')];function createListener(_0x4f71a1,_0x10e02e){return function(_0x110306){_0x10e02e['emit'](_0x4f71a1,_0x110306);};}exports['register']=function(_0x161d0d){for(let _0x585590=0x0,_0x5b23d9=events['length'];_0x585590<_0x5b23d9;_0x585590++){const _0x4925ab=events[_0x585590],_0x5346e8=createListener('chatGroup:'+_0x4925ab,_0x161d0d);ChatGroupEvents['on'](_0x4925ab,_0x5346e8);}}; \ No newline at end of file +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 diff --git a/server/api/chatGroup/index.js b/server/api/chatGroup/index.js index 57336bf..a32a0ce 100644 --- a/server/api/chatGroup/index.js +++ b/server/api/chatGroup/index.js @@ -1 +1 @@ -const a64_0x4bd1=['express','destroy','/:id/members','addMembers','delete','post','/:id/messages','../../components/auth/service','getMembers','getMessages','./chatGroup.controller','get','update','describe','index','getUnread','isAuthenticated','/describe','removeMembers','/:id','addMessage','show','Router'];(function(_0x961b63,_0x4bd1d0){const _0x829733=function(_0x38909b){while(--_0x38909b){_0x961b63['push'](_0x961b63['shift']());}};_0x829733(++_0x4bd1d0);}(a64_0x4bd1,0x140));const a64_0x8297=function(_0x961b63,_0x4bd1d0){_0x961b63=_0x961b63-0x0;let _0x829733=a64_0x4bd1[_0x961b63];return _0x829733;};const _0x1665e0=a64_0x8297;'use strict';const express=require(_0x1665e0('0x2')),router=express[_0x1665e0('0x1')](),auth=require(_0x1665e0('0x9')),controller=require(_0x1665e0('0xc'));router[_0x1665e0('0xd')]('/',auth[_0x1665e0('0x12')](),controller[_0x1665e0('0x10')]),router[_0x1665e0('0xd')](_0x1665e0('0x13'),auth['isAuthenticated'](),controller[_0x1665e0('0xf')]),router[_0x1665e0('0xd')](_0x1665e0('0x15'),auth[_0x1665e0('0x12')](),controller[_0x1665e0('0x0')]),router[_0x1665e0('0xd')]('/:id/unread',auth[_0x1665e0('0x12')](),controller[_0x1665e0('0x11')]),router[_0x1665e0('0xd')](_0x1665e0('0x4'),auth[_0x1665e0('0x12')](),controller[_0x1665e0('0xa')]),router[_0x1665e0('0xd')](_0x1665e0('0x8'),auth[_0x1665e0('0x12')](),controller[_0x1665e0('0xb')]),router[_0x1665e0('0x7')]('/',auth[_0x1665e0('0x12')](),controller['create']),router[_0x1665e0('0x7')]('/:id/members',auth['isAuthenticated'](),controller[_0x1665e0('0x5')]),router[_0x1665e0('0x7')](_0x1665e0('0x8'),auth[_0x1665e0('0x12')](),controller[_0x1665e0('0x16')]),router['put'](_0x1665e0('0x15'),auth[_0x1665e0('0x12')](),controller[_0x1665e0('0xe')]),router[_0x1665e0('0x6')](_0x1665e0('0x15'),auth[_0x1665e0('0x12')](),controller[_0x1665e0('0x3')]),router[_0x1665e0('0x6')]('/:id/members',auth['isAuthenticated'](),controller[_0x1665e0('0x14')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/chatInteraction/chatInteraction.attributes.js b/server/api/chatInteraction/chatInteraction.attributes.js index 5722138..3c78f6c 100644 --- a/server/api/chatInteraction/chatInteraction.attributes.js +++ b/server/api/chatInteraction/chatInteraction.attributes.js @@ -1 +1 @@ -const a65_0x5e51=['out','thumb','BOOLEAN','STRING','TEXT','INTEGER','star','long','sequelize','ENUM','exports','DATE'];(function(_0x58e7db,_0x5e51){const _0x4e7991=function(_0x6fb0d0){while(--_0x6fb0d0){_0x58e7db['push'](_0x58e7db['shift']());}};_0x4e7991(++_0x5e51);}(a65_0x5e51,0xc6));const a65_0x4e79=function(_0x58e7db,_0x5e51){_0x58e7db=_0x58e7db-0x0;let _0x4e7991=a65_0x5e51[_0x58e7db];return _0x4e7991;};const _0x8b081c=a65_0x4e79;'use strict';const Sequelize=require(_0x8b081c('0x2'));module[_0x8b081c('0x4')]={'closed':{'type':Sequelize[_0x8b081c('0x8')],'defaultValue':![]},'ratingValue':{'type':Sequelize[_0x8b081c('0xb')]},'ratingType':{'type':Sequelize[_0x8b081c('0x3')](_0x8b081c('0x0'),_0x8b081c('0x7')),'defaultValue':_0x8b081c('0x0')},'ratingMessage':{'type':Sequelize['TEXT']},'pathTranscript':{'type':Sequelize[_0x8b081c('0xa')]},'mailTranscript':{'type':Sequelize[_0x8b081c('0x9')],'validate':{'isEmail':!![]}},'closedAt':{'type':Sequelize[_0x8b081c('0x5')]},'disposition':{'type':Sequelize[_0x8b081c('0x9')]},'secondDisposition':{'type':Sequelize[_0x8b081c('0x9')]},'thirdDisposition':{'type':Sequelize[_0x8b081c('0x9')]},'note':{'type':Sequelize[_0x8b081c('0x9')]},'browserName':{'type':Sequelize['STRING']},'browserVersion':{'type':Sequelize['STRING']},'osName':{'type':Sequelize[_0x8b081c('0x9')]},'osVersion':{'type':Sequelize[_0x8b081c('0x9')]},'deviceModel':{'type':Sequelize[_0x8b081c('0x9')]},'deviceVendor':{'type':Sequelize[_0x8b081c('0x9')]},'deviceType':{'type':Sequelize['STRING']},'referer':{'type':Sequelize[_0x8b081c('0xa')]},'customerIp':{'type':Sequelize[_0x8b081c('0x9')]},'formData':{'type':Sequelize[_0x8b081c('0xa')](_0x8b081c('0x1'))},'read1stAt':{'type':Sequelize[_0x8b081c('0x5')]},'lastMsgAt':{'type':Sequelize[_0x8b081c('0x5')]},'lastMsgDirection':{'type':Sequelize[_0x8b081c('0x3')]('in',_0x8b081c('0x6')),'defaultValue':'in','allowNull':![]},'closeReason':{'type':Sequelize[_0x8b081c('0x9')]},'customerPort':{'type':Sequelize['STRING']},'vidaooSessionId':{'type':Sequelize['TEXT']}}; \ No newline at end of file +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 diff --git a/server/api/chatInteraction/chatInteraction.controller.js b/server/api/chatInteraction/chatInteraction.controller.js index f3c9bd7..e4785a3 100644 --- a/server/api/chatInteraction/chatInteraction.controller.js +++ b/server/api/chatInteraction/chatInteraction.controller.js @@ -1 +1 @@ -const a66_0x4733=['Contact.lastName','i.id\x20LIKE\x20?','clone','Contact','entity\x20not\x20found','customerPort','count','ejs','o.internal','toString','select','$lte','Owner.internal','Contact.phone','ChatInteraction,\x20%s,\x20%s,\x20%s','forEach','Tag','chat_websites','$gte','value','\x20IS\x20NULL','secure','port','union','Account.mandatoryDisposition','users','map','30px','u.fullname','cm_contacts','addMessage','Contact.email','body','$substring','SELECT','unlinkSync','Visitor','UserId','i.ChatWebsiteId\x20IS\x20NULL','includeAll','fullname','register','stack','error','addTags','%s\x20#%d','vidaooApiKey','offset','direction','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','type','ChatWebsiteId','fields','ValidationError','../../mysqldb','jayson/promise','options','appendFileSync','server','request-promise-native','Contact.firstName','QueryTypes','Contact.fax','server/files/chat/upload/','Attachment','gte','find','getChatWebsites','order','attachments','closed','color','i.ChatWebsiteId\x20IS\x20NOT\x20NULL','isEmpty','toFile','parseSearch','findAll','u.id','send','authentication','merge','result','sendStatus','text','Smtp','Error\x20in\x20Vidaoo\x20configuration','pick','a.id\x20=\x20i.ChatWebsiteId','c.lastName','getMessages','%s%d','host','osName','filter','agent_fullname','intersection','firstName','replace','attachmentDownload','transcript-%d-%s.zip','root','SendMail','\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
','sequelize','Tags','i.id','ChatWebsite','TagIds','https://api-vidaoo.xcally.com/api/v1/sessions','downloadInteraction.html','includeAgent','chat_messages','existsSync','undefined','ui.ChatInteractionId','basename','a.mandatoryDisposition','tools_tags','customerIp','some','N.A.','length','CmContact','chat_interactions','name','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','left_join','it.ChatInteractionId\x20=\x20i.id','get','setTags','MM/DD/YYYY\x20HH:mm:ss','10px','push','abandon','transcript-%s.txt','Owner','agentIdentifier','join','Owner.fullname','removeTags','params','search','request\x20sent','end','files','operator','../../config/logger','createReadStream','transcript-','like','isNumeric','Account','having','concat','\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','i.*','from','message','me.ChatInteractionId\x20=\x20i.id','c.firstName','moment','sort','destroy','website_alias','customUpdate','json','join_url','filters','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','lastName','now','index','keyBy','create','query','AbandonInteraction','YYYY-MM-DD\x20HH:mm:ss','html-pdf','pipe','Unable\x20to\x20create\x20Vidaoo\x20session','Chat','./chatInteraction.socket','format','where','download','GROUP_CONCAT(DISTINCT\x20t.id)','u.id\x20=\x20ui.UserId','include','rimraf','model','split','.pdf','mkdirSync','mailTranscript','rawAttributes','../../components/parsers/qs','attachId','http','attributes','Content-Range','auth','ChatMessage','createWriteStream','t.id\x20=\x20it.TagId','ChatInteraction','out','rows','`unreadMessages`\x20>\x200','ContactId','update','o.id\x20=\x20i.UserId','[%s]\x20%s:\x20%s\x0a','secret','c.mobile','service','status','group','squel','groupBy','err','user_has_chat_interactions','MailServerOut','file','Mail\x20Transcript','limit','Hi\x20%s,\x20attached\x20you\x20can\x20find\x20your\x20transcript\x20file.\x20\x0a\x0aRegards.\x20\x0a\x0a','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','omit','customer','read','a.key','pass','System','emit','client','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','ids','keys','lodash','describe','ChatInteraction,\x20%s,\x20%s','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','getMyMessages','expr','nolimit','chatInteractionTags:save','catch','info','unreadMessages','originalname','closedAt','\x22%s\x22\x20<%s>','tag','null','createdAt','email','findOne','getFullTextValue','c.fax','Sequelize','user','ChatInteractionId','tmp','User','compact','buildExpression','then','referer','attachmentUpload','pathTranscript','../../rediscache','request','alias','o.fullname','conditions','Interaction\x20already\x20assigned','Unauthorized','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','filename','agentAlias','c.phone','start','field','api','Messages'];(function(_0x230e40,_0x473375){const _0x29fa14=function(_0x50effe){while(--_0x50effe){_0x230e40['push'](_0x230e40['shift']());}};_0x29fa14(++_0x473375);}(a66_0x4733,0x118));const a66_0x29fa=function(_0x230e40,_0x473375){_0x230e40=_0x230e40-0x0;let _0x29fa14=a66_0x4733[_0x230e40];return _0x29fa14;};const _0x16f486=a66_0x29fa;'use strict';const pdf=require(_0x16f486('0xb6')),rimraf=require(_0x16f486('0xc1')),zipdir=require('zip-dir'),rp=require(_0x16f486('0x40')),moment=require(_0x16f486('0xa5')),util=require('util'),path=require('path'),ejs=require(_0x16f486('0xc')),fs=require('fs'),_=require(_0x16f486('0xf3')),squel=require(_0x16f486('0xde')),{getSocket}=require(_0x16f486('0x113')),qs=require(_0x16f486('0xc8')),as=require('../../components/parsers/advancedSearch'),logger=require(_0x16f486('0x97'))(_0x16f486('0x3')),config=require('../../config/environment'),db=require(_0x16f486('0x3b'))['db'],{Op}=require(_0x16f486('0x6c')),socket=getSocket();require(_0x16f486('0xba'))[_0x16f486('0x2e')](socket);const jayson=require(_0x16f486('0x3c')),client=jayson[_0x16f486('0xef')][_0x16f486('0xca')]({'port':0x232b}),client9004=jayson[_0x16f486('0xef')][_0x16f486('0xca')]({'port':0x232c});function respondWithRpcPromise(_0x50effe,_0x40ba98,_0x55868e,_0x25c175){return new Promise(function(_0x50c9bb,_0x7589d3){const _0x5b0869=a66_0x29fa,_0x3540bb=_0x25c175||client;return _0x3540bb[_0x5b0869('0x114')](_0x50effe,_0x55868e)['then'](function(_0x3a1c0a){const _0x597188=_0x5b0869;logger[_0x597188('0xfc')](_0x597188('0xf5'),_0x40ba98,'request\x20sent'),logger['debug'](_0x597188('0x13'),_0x40ba98,_0x597188('0x93'),JSON['stringify'](_0x3a1c0a));if(_0x3a1c0a[_0x597188('0x30')]){if(_0x3a1c0a[_0x597188('0x30')]['code']===0x1f4)return logger[_0x597188('0x30')](_0x597188('0xf5'),_0x40ba98,_0x3a1c0a['error'][_0x597188('0xa2')]),_0x7589d3(_0x3a1c0a[_0x597188('0x30')]['message']);return logger[_0x597188('0x30')]('ChatInteraction,\x20%s,\x20%s',_0x40ba98,_0x3a1c0a[_0x597188('0x30')][_0x597188('0xa2')]),_0x50c9bb(_0x3a1c0a[_0x597188('0x30')][_0x597188('0xa2')]);}else logger[_0x597188('0xfc')](_0x597188('0xf5'),_0x40ba98,_0x597188('0x93')),_0x50c9bb(_0x3a1c0a[_0x597188('0x56')]['message']);})[_0x5b0869('0xfb')](function(_0x5edd29){const _0x3adb26=_0x5b0869;logger[_0x3adb26('0x30')](_0x3adb26('0xf5'),_0x40ba98,_0x5edd29),_0x7589d3(_0x5edd29);});});}function respondWithStatusCode(_0x5188af,_0x76b1c1){return _0x76b1c1=_0x76b1c1||0xcc,function(_0x469650){if(_0x469650)return _0x5188af['sendStatus'](_0x76b1c1);return _0x5188af['status'](_0x76b1c1)['end']();};}function respondWithResult(_0x245238,_0x8daf87){return _0x8daf87=_0x8daf87||0xc8,function(_0x596e1f){const _0x3fe03c=a66_0x29fa;if(_0x596e1f)return _0x245238[_0x3fe03c('0xdc')](_0x8daf87)[_0x3fe03c('0xaa')](_0x596e1f);};}function respondWithFilteredResult(_0x35ec00,_0x1ed307){return function(_0x13f0f0){const _0x5f4a42=a66_0x29fa;if(_0x13f0f0){const _0xfaa7b6=_0x13f0f0['count'],_0x53c7fa=_0x1ed307['offset'];let _0x5ee4c2=_0x1ed307['offset']+_0x1ed307[_0x5f4a42('0xe5')],_0x492af5;return _0x5ee4c2>=_0xfaa7b6?(_0x5ee4c2=_0xfaa7b6,_0x492af5=0xc8):_0x492af5=0xce,_0x35ec00[_0x5f4a42('0xdc')](_0x492af5),_0x35ec00['set'](_0x5f4a42('0xcc'),_0x53c7fa+'-'+_0x5ee4c2+'/'+_0xfaa7b6)[_0x5f4a42('0xaa')](_0x13f0f0);}return null;};}function saveUpdates(_0x401f9a){return function(_0x403b88){const _0x5a74f9=a66_0x29fa;if(_0x403b88)return _0x403b88[_0x5a74f9('0xd6')](_0x401f9a)[_0x5a74f9('0x10f')](function(_0x2e243e){return _0x2e243e;});return null;};}function removeEntity(_0x2f9627){return function(_0x3a5422){const _0x150db5=a66_0x29fa;if(_0x3a5422)return _0x3a5422[_0x150db5('0xa7')]()[_0x150db5('0x10f')](function(){const _0x3164c0=_0x150db5;_0x2f9627['status'](0xcc)[_0x3164c0('0x94')]();});};}function handleEntityNotFound(_0x30e088){return function(_0x14c0e1){const _0x1361a3=a66_0x29fa;return!_0x14c0e1&&_0x30e088[_0x1361a3('0x57')](0x194),_0x14c0e1;};}function handleError(_0x56d61d,_0x3b3a85){return _0x3b3a85=_0x3b3a85||0x1f4,function(_0x1185c3){const _0xe88bb9=a66_0x29fa;logger[_0xe88bb9('0x30')](_0x1185c3[_0xe88bb9('0x2f')]),_0x1185c3[_0xe88bb9('0x81')]&&delete _0x1185c3[_0xe88bb9('0x81')],_0x56d61d[_0xe88bb9('0xdc')](_0x3b3a85)[_0xe88bb9('0x53')](_0x1185c3);};}function getInteractionUsers(_0x2fe625,_0x2a3d93){return new Promise(function(_0x534a8f,_0x3437cd){const _0x4b4482=a66_0x29fa;try{_0x2a3d93[_0x2fe625['id']]&&(_0x2fe625['Users']=_[_0x4b4482('0x1f')](_0x2a3d93[_0x2fe625['id']],function(_0x316efa){const _0x43109e=_0x4b4482;return{'id':_0x316efa['id'],'fullname':_0x316efa[_0x43109e('0x2d')]};}));}catch(_0x111369){_0x3437cd(_0x111369);}_0x534a8f(_0x2fe625);});}function getInteractionTags(_0x26bafa,_0x31dcb7){return new Promise(function(_0x3130e6,_0x520e9d){const _0xa1acac=a66_0x29fa;try{_0x26bafa['TagIds']&&(_0x26bafa[_0xa1acac('0x6d')]=[],_0x26bafa[_0xa1acac('0x70')]['split'](',')[_0xa1acac('0x14')](function(_0x445b1a){const _0x15ed76=_0xa1acac;_0x26bafa[_0x15ed76('0x6d')][_0x15ed76('0x89')](_0x31dcb7[_0x445b1a]);})),delete _0x26bafa[_0xa1acac('0x70')];}catch(_0x120383){_0x520e9d(_0x120383);}_0x3130e6(_0x26bafa);});}function updateChatInteraction(_0x297a10,_0x1e221a,_0x37659a){return new Promise(function(_0x56dced,_0x3668f6){const _0x400506=a66_0x29fa;return getInteractionUsers(_0x297a10,_0x37659a)[_0x400506('0x10f')](function(_0xcf3761){return getInteractionTags(_0xcf3761,_0x1e221a);})[_0x400506('0x10f')](function(_0x40c7ee){_0x56dced(_0x40c7ee);})[_0x400506('0xfb')](function(_0x116110){_0x3668f6(_0x116110);});});}exports[_0x16f486('0xb0')]=function(_0xc0fdc2,_0x1641ef){const _0x19f827=_0x16f486,_0x404bda={},_0x334d61={},_0x23cc75={'count':0x0,'rows':[]},_0x2c0976=_['map'](db['ChatInteraction'][_0x19f827('0xc7')],function(_0x421eaa){const _0x37e97e=_0x19f827;return{'name':_0x421eaa['fieldName'],'type':_0x421eaa[_0x37e97e('0x37')]['key']};});_0x334d61[_0x19f827('0xc2')]=_['map'](_0x2c0976,_0x19f827('0x81')),_0x334d61['query']=_[_0x19f827('0xf2')](_0xc0fdc2[_0x19f827('0xb3')]),_0x334d61[_0x19f827('0xac')]=_['intersection'](_0x334d61[_0x19f827('0xc2')],_0x334d61[_0x19f827('0xb3')]),_0x404bda[_0x19f827('0xcb')]=_[_0x19f827('0x64')](_0x334d61[_0x19f827('0xc2')],qs[_0x19f827('0x39')](_0xc0fdc2['query'][_0x19f827('0x39')])),_0x404bda[_0x19f827('0xcb')]=_0x404bda[_0x19f827('0xcb')][_0x19f827('0x7e')]?_0x404bda['attributes']:_0x334d61[_0x19f827('0xc2')];typeof _0xc0fdc2[_0x19f827('0xb3')][_0x19f827('0xf9')]==='undefined'&&(_0x404bda[_0x19f827('0xe5')]=qs[_0x19f827('0xe5')](_0xc0fdc2['query'][_0x19f827('0xe5')]),_0x404bda['offset']=qs[_0x19f827('0x34')](_0xc0fdc2[_0x19f827('0xb3')][_0x19f827('0x34')]));_0x404bda['order']=qs[_0x19f827('0xa6')](_0xc0fdc2[_0x19f827('0xb3')]['sort']),_0x404bda[_0x19f827('0xbc')]=qs['filters'](_[_0x19f827('0x5b')](_0xc0fdc2[_0x19f827('0xb3')],_0x334d61[_0x19f827('0xac')]),_0x2c0976);let _0x339a03=[];const _0x4c2b95=squel[_0x19f827('0xf')]()[_0x19f827('0x2')]('id')[_0x19f827('0x2')](_0x19f827('0x81'))[_0x19f827('0x2')]('color')[_0x19f827('0xa1')]('tools_tags'),_0x1a9679=squel[_0x19f827('0xf')]()[_0x19f827('0x2')](_0x19f827('0x52'))['field'](_0x19f827('0x21'))[_0x19f827('0x2')](_0x19f827('0x77'))['from'](_0x19f827('0xe1'),'ui')[_0x19f827('0x83')](_0x19f827('0x1e'),'u',_0x19f827('0xbf')),_0x305f9e=squel[_0x19f827('0xf')]()[_0x19f827('0xa1')](_0x19f827('0x80'),'i')['left_join'](_0x19f827('0x22'),'c','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL')[_0x19f827('0x83')](_0x19f827('0x1e'),'o',_0x19f827('0xd7'))['left_join'](_0x19f827('0x16'),'a',_0x19f827('0x5c'))[_0x19f827('0x83')](_0x19f827('0x74'),'me',_0x19f827('0xa3'))[_0x19f827('0x83')]('chat_interaction_has_tags','it',_0x19f827('0x84'))['left_join'](_0x19f827('0x7a'),'t',_0x19f827('0xd0')),_0x346d06=squel[_0x19f827('0xf8')]();let _0x1e5bc7=[];const _0x2c8bf7=squel[_0x19f827('0xf8')]();let _0x2d0a54;if(_0xc0fdc2[_0x19f827('0xb3')][_0x19f827('0x92')]){_0x2d0a54=as[_0x19f827('0x50')](_0xc0fdc2['query'][_0x19f827('0x92')]);const _0x58fe0d=_0x2d0a54['sqlOperator'];for(let _0x3d1fc8=0x0;_0x3d1fc8<_0x2d0a54[_0x19f827('0x117')][_0x19f827('0x7e')];_0x3d1fc8++){const _0xe4e659=_0x2d0a54[_0x19f827('0x117')][_0x3d1fc8],_0x4e936e='i';let _0xf3894a,_0x2bbd6b=_['find'](_0x2c0976,[_0x19f827('0x81'),_0xe4e659[_0x19f827('0x2')]]);if(!_0x2bbd6b)switch(_0xe4e659['field']){case _0x19f827('0xfd'):_0xe4e659['value']==0x1?_0x305f9e[_0x19f827('0x9d')]('`'+_0xe4e659['field']+'`\x20=\x200'):_0x305f9e['having']('`'+_0xe4e659[_0x19f827('0x2')]+'`\x20>\x200');break;case _0x19f827('0x8'):if(_0xe4e659[_0x19f827('0x96')]===_0x19f827('0x26')){if(_0xe4e659[_0x19f827('0x18')][_0x19f827('0xc3')]('\x20')[_0x19f827('0x7e')]>0x1)_0x346d06[_0x58fe0d](_0x19f827('0x11a'),qs[_0x19f827('0x106')](_0xe4e659[_0x19f827('0x18')]),null);else{const _0x5d8431='%'+_0xe4e659[_0x19f827('0x18')]+'%';_0x346d06[_0x58fe0d](_0x19f827('0xf0'),_0x5d8431,_0x5d8431,_0x5d8431);}}else _0x2bbd6b=_[_0x19f827('0x47')](_0x2c0976,['name',_0x19f827('0xd5')]),_0xe4e659[_0x19f827('0x2')]=_0x19f827('0xd5'),_0xf3894a=as[_0x19f827('0x10e')](_0x4e936e,_0x2bbd6b['type'],_0xe4e659),_0x346d06[_0x58fe0d](_0xf3894a['text'],_0xf3894a['value'][_0x19f827('0x1')],_0xf3894a[_0x19f827('0x18')][_0x19f827('0x94')]);break;case'Tag':{const _0x557b1a=_0xe4e659[_0x19f827('0x18')][_0x19f827('0xc3')](',')[_0x19f827('0x1f')](function(_0x24f072){return Number(_0x24f072);});_0x557b1a[_0x19f827('0x14')](function(_0x9aec37){_0x2c8bf7['or']('CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','%,'+_0x9aec37+',%');}),_0x1e5bc7=_[_0x19f827('0x1c')](_0x1e5bc7,_0x557b1a);}break;case'User':_0xe4e659[_0x19f827('0x96')]===_0x19f827('0x26')?_0x346d06[_0x58fe0d](_0x19f827('0x82'),'%'+_0xe4e659[_0x19f827('0x18')]+'%',null):(_0x2bbd6b=_[_0x19f827('0x47')](_0x2c0976,[_0x19f827('0x81'),_0x19f827('0x2a')]),_0xe4e659['field']=_0x19f827('0x2a'),_0xf3894a=as[_0x19f827('0x10e')](_0x4e936e,_0x2bbd6b[_0x19f827('0x37')],_0xe4e659),_0x346d06[_0x58fe0d](_0xf3894a['text'],_0xf3894a[_0x19f827('0x18')][_0x19f827('0x1')],_0xf3894a['value'][_0x19f827('0x94')]));break;case _0x19f827('0x25'):_0xf3894a=as[_0x19f827('0x10e')]('me',null,_0xe4e659),_0x346d06[_0x58fe0d](_0xf3894a[_0x19f827('0x58')],_0xf3894a[_0x19f827('0x18')][_0x19f827('0x1')],_0xf3894a[_0x19f827('0x18')]['end']);break;}else _0xf3894a=as[_0x19f827('0x10e')](_0x4e936e,_0x2bbd6b[_0x19f827('0x37')],_0xe4e659),_0x346d06[_0x58fe0d](_0xf3894a[_0x19f827('0x58')],_0xf3894a['value'][_0x19f827('0x1')],_0xf3894a[_0x19f827('0x18')][_0x19f827('0x94')]);}}else{const _0x1e9163=_(_0xc0fdc2['query'])[_0x19f827('0xf2')]()[_0x19f827('0x1f')](function(_0x3e9ab0){const _0x1ee5d8=_0x19f827;return _[_0x1ee5d8('0x7c')](_0x2c0976,[_0x1ee5d8('0x81'),_0x3e9ab0])?_0x3e9ab0:undefined;})[_0x19f827('0x10d')]()['value']();!_[_0x19f827('0x4e')](_0x1e9163)&&_0x1e9163[_0x19f827('0x14')](function(_0x52896e){const _0x52870c=_0x19f827;if(_0x52896e===_0x52870c('0x38'))_0x305f9e['where']('i.ChatWebsiteId\x20IN\x20?',[][_0x52870c('0x9e')](_0xc0fdc2['query'][_0x52896e]));else{if(_0x52896e===_0x52870c('0x103')){const _0x47cf05=JSON['parse'](_0xc0fdc2[_0x52870c('0xb3')][_0x52896e])[_0x52870c('0x17')],_0x26ad84=JSON['parse'](_0xc0fdc2[_0x52870c('0xb3')][_0x52896e])[_0x52870c('0x10')];_0x305f9e[_0x52870c('0xbc')]('i.createdAt\x20BETWEEN\x20?\x20AND\x20?',_0x47cf05,_0x26ad84);}else _0xc0fdc2[_0x52870c('0xb3')][_0x52896e]===_0x52870c('0x102')?_0x305f9e[_0x52870c('0xbc')]('i.'+_0x52896e+_0x52870c('0x19')):_0x305f9e[_0x52870c('0xbc')]('i.'+_0x52896e+'\x20=\x20?',_0xc0fdc2[_0x52870c('0xb3')][_0x52896e]);}});_0xc0fdc2[_0x19f827('0xb3')][_0x19f827('0xea')]&&(_0xc0fdc2[_0x19f827('0xb3')][_0x19f827('0xea')]==0x1?_0x305f9e[_0x19f827('0x9d')]('`unreadMessages`\x20=\x200'):_0x305f9e[_0x19f827('0x9d')](_0x19f827('0xd4')));_0xc0fdc2[_0x19f827('0xb3')][_0x19f827('0x101')]&&(_0x1e5bc7=_['isArray'](_0xc0fdc2[_0x19f827('0xb3')]['tag'])?_0xc0fdc2[_0x19f827('0xb3')][_0x19f827('0x101')]:new Array(_0xc0fdc2[_0x19f827('0xb3')][_0x19f827('0x101')]),_0x1e5bc7['forEach'](function(_0x38f9cc){const _0xe4a8e8=_0x19f827;_0x2c8bf7['or'](_0xe4a8e8('0xe7'),'%,'+_0x38f9cc+',%');}));if(_0xc0fdc2[_0x19f827('0xb3')][_0x19f827('0x62')]){const _0xf3dfbb=_0xc0fdc2[_0x19f827('0xb3')][_0x19f827('0x62')][_0x19f827('0x66')]('\x5c','\x5c\x5c')['replace']('\x27\x27','\x27\x27\x27\x27');qs[_0x19f827('0x9b')](_0xf3dfbb)?_0x346d06['or'](_0x19f827('0x6'),_0xf3dfbb+'%'):_0x346d06['or'](_0x19f827('0xad'),qs[_0x19f827('0x106')](_0xf3dfbb))['or'](_0x19f827('0xf6'),_0xf3dfbb+'%');}}_0x305f9e[_0x19f827('0xbc')](_0x346d06),_0x305f9e[_0x19f827('0xdd')](_0x19f827('0x6e'));let _0x121430={'type':db['Sequelize'][_0x19f827('0x42')][_0x19f827('0x27')],'raw':!![]};const _0x1c48d3=_0x305f9e[_0x19f827('0x7')]();_0x1c48d3[_0x19f827('0x2')]('i.id'),_0x1c48d3[_0x19f827('0x2')](_0x19f827('0x36'),_0x19f827('0xfd')),_0x404bda['order']&&_0x404bda[_0x19f827('0x49')][_0x19f827('0x14')](function(_0x31bc1c){const _0x4c7b27=_0x19f827;_0x305f9e[_0x4c7b27('0x49')]('i.'+_0x31bc1c[0x0],_0x31bc1c[0x1]==='DESC'?![]:!![]);}),!_['isEmpty'](_0x1e5bc7)&&(_0x305f9e[_0x19f827('0x9d')](_0x2c8bf7),_0x1c48d3[_0x19f827('0xbc')]('t.id\x20IN\x20?',_0x1e5bc7)),Promise['resolve']()[_0x19f827('0x10f')](function(){const _0x3d538d=_0x19f827;if(!_0x2d0a54){if(_0xc0fdc2[_0x3d538d('0xb3')][_0x3d538d('0x38')]||_0xc0fdc2[_0x3d538d('0xb3')]['journey'])return;_0x1c48d3[_0x3d538d('0xbc')](_0x3d538d('0x4d')),_0x305f9e[_0x3d538d('0xbc')]('i.ChatWebsiteId\x20IS\x20NOT\x20NULL');return;}return _0xc0fdc2[_0x3d538d('0x109')][_0x3d538d('0x48')]({'attributes':['id'],'raw':!![]})['then'](function(_0x557c7d){const _0x7b74b2=_0x3d538d;_[_0x7b74b2('0x4e')](_0x557c7d)?(_0x1c48d3[_0x7b74b2('0xbc')](_0x7b74b2('0x2b')),_0x305f9e[_0x7b74b2('0xbc')]('i.ChatWebsiteId\x20IS\x20NULL')):(_0x1c48d3[_0x7b74b2('0xbc')]('i.ChatWebsiteId\x20IN\x20?',_['map'](_0x557c7d,'id')),_0x305f9e[_0x7b74b2('0xbc')]('i.ChatWebsiteId\x20IN\x20?',_[_0x7b74b2('0x1f')](_0x557c7d,'id')));});})[_0x19f827('0x10f')](function(){const _0x5ee69e=_0x19f827;db[_0x5ee69e('0x6c')]['query'](_0x1c48d3[_0x5ee69e('0xe')](),_0x121430)[_0x5ee69e('0x10f')](function(_0x565a8b){const _0x1a1df8=_0x5ee69e;_0x23cc75[_0x1a1df8('0xb')]=_0x565a8b[_0x1a1df8('0x7e')];if(_0x23cc75[_0x1a1df8('0xb')]===0x0)return[];return db[_0x1a1df8('0x6c')]['query'](_0x4c2b95[_0x1a1df8('0xe')](),_0x121430)[_0x1a1df8('0x10f')](function(_0x2d41e1){const _0x4978cf=_0x1a1df8;_0x339a03=_[_0x4978cf('0xb1')](_0x2d41e1,'id'),_0x121430=_[_0x4978cf('0x55')](_0x121430,{'model':db[_0x4978cf('0xd1')],'mapToModel':!![],'raw':!![],'nest':!![]});_0xc0fdc2[_0x4978cf('0xb3')]['fields']?_0x404bda[_0x4978cf('0xcb')][_0x4978cf('0x14')](function(_0x2b7aad){const _0x27f1f2=_0x4978cf;_0x305f9e[_0x27f1f2('0x2')]('i.'+_0x2b7aad);}):(_0x305f9e['field'](_0x4978cf('0x36'),'unreadMessages'),_0x305f9e[_0x4978cf('0x2')](_0x4978cf('0xeb'),'Account.key'),_0x305f9e[_0x4978cf('0x2')](_0x4978cf('0x79'),_0x4978cf('0x1d')),_0x305f9e[_0x4978cf('0x2')](_0x4978cf('0xa0')),_0x305f9e[_0x4978cf('0x2')](_0x4978cf('0xa4'),_0x4978cf('0x41')),_0x305f9e[_0x4978cf('0x2')](_0x4978cf('0x5d'),_0x4978cf('0x5')),_0x305f9e[_0x4978cf('0x2')]('c.email',_0x4978cf('0x24')),_0x305f9e[_0x4978cf('0x2')](_0x4978cf('0x0'),_0x4978cf('0x12')),_0x305f9e['field'](_0x4978cf('0xda'),'Contact.mobile'),_0x305f9e[_0x4978cf('0x2')](_0x4978cf('0x107'),_0x4978cf('0x43')),_0x305f9e['field'](_0x4978cf('0x116'),_0x4978cf('0x8f')),_0x305f9e[_0x4978cf('0x2')](_0x4978cf('0xd'),_0x4978cf('0x11')),_0x305f9e[_0x4978cf('0x2')](_0x4978cf('0xbe'),_0x4978cf('0x70')));if(_0x404bda[_0x4978cf('0xe5')])_0x305f9e[_0x4978cf('0xe5')](_0x404bda[_0x4978cf('0xe5')]);if(_0x404bda[_0x4978cf('0x34')])_0x305f9e[_0x4978cf('0x34')](_0x404bda[_0x4978cf('0x34')]);return db[_0x4978cf('0x6c')][_0x4978cf('0xb3')](_0x305f9e['toString'](),_0x121430);})[_0x1a1df8('0x10f')](function(_0x10aed0){const _0x7edad2=_0x1a1df8;return _0x1a9679[_0x7edad2('0xbc')]('ui.ChatInteractionId\x20IN\x20?',_['map'](_0x10aed0,'id')),db[_0x7edad2('0x6c')][_0x7edad2('0xb3')](_0x1a9679[_0x7edad2('0xe')](),_0x121430)['then'](function(_0x33f706){const _0x44e705=_0x7edad2,_0x35e3ab=_[_0x44e705('0xdf')](_0x33f706,'ChatInteractionId'),_0x3d4b4a=[];return _0x10aed0['forEach'](function(_0x53d717){const _0xf54404=_0x44e705;_0x3d4b4a[_0xf54404('0x89')](updateChatInteraction(_0x53d717,_0x339a03,_0x35e3ab));}),Promise['all'](_0x3d4b4a);});});})['then'](function(_0x2924fb){return _0x23cc75['rows']=_0x2924fb,_0x23cc75;})[_0x5ee69e('0x10f')](respondWithFilteredResult(_0x1641ef,_0x404bda));})[_0x19f827('0xfb')](handleError(_0x1641ef,null));},exports['show']=function(_0xd9d660,_0x412f85){const _0x39c82d=_0x16f486;let _0xd51a07={'raw':![],'where':{'id':_0xd9d660[_0x39c82d('0x91')]['id']}};const _0x428ae7={};return _0x428ae7['model']=_[_0x39c82d('0xf2')](db[_0x39c82d('0xd1')][_0x39c82d('0xc7')]),_0x428ae7[_0x39c82d('0xb3')]=_['keys'](_0xd9d660[_0x39c82d('0xb3')]),_0x428ae7[_0x39c82d('0xac')]=_[_0x39c82d('0x64')](_0x428ae7[_0x39c82d('0xc2')],_0x428ae7[_0x39c82d('0xb3')]),_0xd51a07['attributes']=_['intersection'](_0x428ae7[_0x39c82d('0xc2')],qs[_0x39c82d('0x39')](_0xd9d660['query'][_0x39c82d('0x39')])),_0xd51a07[_0x39c82d('0xcb')]=_0xd51a07[_0x39c82d('0xcb')][_0x39c82d('0x7e')]?_0xd51a07['attributes']:_0x428ae7['model'],_0xd9d660['query']['includeAll']&&(_0xd51a07['include']=[{'all':!![]}]),_0xd51a07=_[_0x39c82d('0x55')]({},_0xd51a07,_0xd9d660[_0x39c82d('0x3d')]),db['ChatInteraction'][_0x39c82d('0x105')](_0xd51a07)[_0x39c82d('0x10f')](handleEntityNotFound(_0x412f85,null))[_0x39c82d('0x10f')](respondWithResult(_0x412f85,null))[_0x39c82d('0xfb')](handleError(_0x412f85,null));},exports[_0x16f486('0xb2')]=function(_0x4ab95d,_0x4fe1f7){const _0x13759f=_0x16f486;return db[_0x13759f('0xd1')][_0x13759f('0xb2')](_0x4ab95d[_0x13759f('0x25')],{})['then'](respondWithResult(_0x4fe1f7,0xc9))[_0x13759f('0xfb')](handleError(_0x4fe1f7,null));},exports[_0x16f486('0xd6')]=function(_0x3cee68,_0x1730e5){const _0x57fb81=_0x16f486;return _0x3cee68[_0x57fb81('0x25')]['id']&&delete _0x3cee68[_0x57fb81('0x25')]['id'],db['ChatInteraction'][_0x57fb81('0x105')]({'where':{'id':_0x3cee68[_0x57fb81('0x91')]['id']}})[_0x57fb81('0x10f')](handleEntityNotFound(_0x1730e5,null))[_0x57fb81('0x10f')](saveUpdates(_0x3cee68['body'],null))[_0x57fb81('0x10f')](respondWithResult(_0x1730e5,null))[_0x57fb81('0xfb')](handleError(_0x1730e5,null));},exports[_0x16f486('0xa7')]=function(_0x2efade,_0xb6b1eb){const _0xfe2634=_0x16f486;return db[_0xfe2634('0xd1')][_0xfe2634('0x105')]({'where':{'id':_0x2efade['params']['id']}})[_0xfe2634('0x10f')](handleEntityNotFound(_0xb6b1eb,null))[_0xfe2634('0x10f')](removeEntity(_0xb6b1eb,null))[_0xfe2634('0xfb')](handleError(_0xb6b1eb,null));},exports[_0x16f486('0xf4')]=function(_0x1b4e92,_0x5eb0d7){const _0x961048=_0x16f486;return db[_0x961048('0xd1')][_0x961048('0xf4')]()[_0x961048('0x10f')](respondWithResult(_0x5eb0d7,null))[_0x961048('0xfb')](handleError(_0x5eb0d7,null));},exports['createVidaooSession']=function(_0x27dfa2,_0x595afb){const _0x240155=_0x16f486,_0xe9f2ca=_0x27dfa2['params']['id'];let _0x428487,_0x435e13,_0x274c04;return db[_0x240155('0xd1')][_0x240155('0x105')]({'where':{'id':_0xe9f2ca}})[_0x240155('0x10f')](function(_0x3e3090){const _0x2abd2a=_0x240155;return _0x428487=_0x3e3090,db[_0x2abd2a('0x6f')][_0x2abd2a('0x105')]({'where':{'id':_0x3e3090[_0x2abd2a('0x38')]},'attributes':['id','vidaooApiKey','vidaooEscalation'],'raw':!![]});})['then'](function(_0x596392){const _0x13e672=_0x240155;if(_0x596392&&_0x596392[_0x13e672('0x33')]&&_0x596392['vidaooEscalation']){_0x435e13=_0x596392;const _0x398045={'rejectUnauthorized':![],'method':'POST','uri':_0x13e672('0x71'),'headers':{'X-APIKEY':_0x596392['vidaooApiKey']},'body':{'name':'MotionCWB:'+_0xe9f2ca},'redirect':'follow','json':!![]};return rp(_0x398045);}else throw new db[(_0x13e672('0x108'))][(_0x13e672('0x3a'))](_0x13e672('0x5a'));})[_0x240155('0x10f')](function(_0x577bff){const _0x124cd9=_0x240155;_0x274c04=_0x577bff;if(_0x274c04['id']){const _0xa830ac={'body':_0x274c04[_0x124cd9('0xab')],'ChatWebsiteId':_0x435e13['id'],'ChatInteractionId':_0x428487['id'],'direction':_0x124cd9('0xd2'),'UserId':_0x27dfa2[_0x124cd9('0x109')]['id']};return db[_0x124cd9('0xce')]['create'](_0xa830ac,{});}else throw new db['Sequelize'][(_0x124cd9('0x3a'))](_0x124cd9('0xb8'));})['then'](function(){const _0x32933c=_0x240155;return _0x428487[_0x32933c('0xd6')]({'vidaooSessionId':_0x274c04['id']});})[_0x240155('0x10f')](respondWithResult(_0x595afb,null))[_0x240155('0xfb')](handleError(_0x595afb,null));},exports[_0x16f486('0xa9')]=function(_0x227387,_0x5377d8){const _0x166854=_0x16f486;return _0x227387[_0x166854('0x25')]['id']&&delete _0x227387['body']['id'],db[_0x166854('0xd1')][_0x166854('0x105')]({'where':{'id':_0x227387[_0x166854('0x91')]['id']}})[_0x166854('0x10f')](handleEntityNotFound(_0x5377d8,null))[_0x166854('0x10f')](saveUpdates(_0x227387['body'],null))['then'](respondWithResult(_0x5377d8,null))[_0x166854('0xfb')](handleError(_0x5377d8,null));},exports[_0x16f486('0x8a')]=function(_0x15b0d7,_0x40ce28){const _0x8f8658=_0x16f486;return _0x15b0d7['body']['id']&&delete _0x15b0d7[_0x8f8658('0x25')]['id'],db[_0x8f8658('0xd1')][_0x8f8658('0x105')]({'where':{'id':_0x15b0d7['params']['id']}})['then'](function(_0x4dd81e){const _0x4d12f9=_0x8f8658;if(!_0x4dd81e)logger[_0x4d12f9('0x30')]('abandonInteraction,\x20%s,\x20%s,\x20%s',_0x4d12f9('0x8a'),0x194,_0x4d12f9('0x9')),_0x40ce28[_0x4d12f9('0x57')](0x194);else{if(_0x4dd81e['UserId'])throw new db[(_0x4d12f9('0x108'))][(_0x4d12f9('0x3a'))](_0x4d12f9('0x118'));}return _0x4dd81e;})[_0x8f8658('0x10f')](function(_0xe202c0){const _0x21fb5d=_0x8f8658;if(_0xe202c0)return _0xe202c0['update']({'closed':_0x15b0d7['body'][_0x21fb5d('0x4b')],'disposition':_0x15b0d7[_0x21fb5d('0x25')]['disposition']})[_0x21fb5d('0x10f')](function(_0x2ad292){return _0x2ad292;});})[_0x8f8658('0x10f')](function(){const _0x1267a3=_0x8f8658;return respondWithRpcPromise(_0x1267a3('0xb4'),_0x1267a3('0x8a'),_0x15b0d7[_0x1267a3('0x25')],client9004);})['then'](respondWithResult(_0x40ce28,null))[_0x8f8658('0xfb')](handleError(_0x40ce28,null));},exports[_0x16f486('0x111')]=function(_0x5c5fb9,_0x35a41a){const _0x1355ec=_0x16f486;return _0x5c5fb9['body'][_0x1355ec('0x81')]=_0x5c5fb9[_0x1355ec('0xe3')][_0x1355ec('0xfe')],_0x5c5fb9[_0x1355ec('0x25')]['basename']=_0x5c5fb9['file'][_0x1355ec('0x11b')],_0x5c5fb9[_0x1355ec('0x25')][_0x1355ec('0x37')]=_0x5c5fb9[_0x1355ec('0xe3')]['mimetype'],db[_0x1355ec('0x45')][_0x1355ec('0xb2')](_0x5c5fb9[_0x1355ec('0x25')])[_0x1355ec('0x10f')](respondWithResult(_0x35a41a,0xc9))[_0x1355ec('0xfb')](handleError(_0x35a41a,null));},exports[_0x16f486('0x67')]=function(_0x594a37,_0x29d060){const _0x4bff8e=_0x16f486;return db[_0x4bff8e('0xd1')][_0x4bff8e('0x105')]({'where':{'id':_0x594a37[_0x4bff8e('0x91')]['id']},'raw':!![]})[_0x4bff8e('0x10f')](handleEntityNotFound(_0x29d060,null))[_0x4bff8e('0x10f')](function(_0x11741b){const _0x13e033=_0x4bff8e;if(_0x11741b){if(_0x11741b[_0x13e033('0x4b')])return _0x29d060[_0x13e033('0xdc')](0x193)[_0x13e033('0xaa')]({'status':0x193,'message':_0x13e033('0x119')});return db[_0x13e033('0x45')][_0x13e033('0x105')]({'where':{'id':_0x594a37[_0x13e033('0xb3')][_0x13e033('0xc9')]},'raw':!![]})[_0x13e033('0x10f')](handleEntityNotFound(_0x29d060,null));}})['then'](function(_0x163d80){const _0xa03519=_0x4bff8e;if(_0x163d80)return _0x29d060[_0xa03519('0xbd')](path[_0xa03519('0x8e')](config[_0xa03519('0x69')],'server/files/attachments/',_0x163d80[_0xa03519('0x78')]));})[_0x4bff8e('0xfb')](handleError(_0x29d060,null));},exports['close']=function(_0xbf0dc3,_0x24e24a){const _0x51fec4=_0x16f486;let _0xfa1699=null,_0x1bc54f=null,_0x220574=null;return _0xbf0dc3[_0x51fec4('0x25')]['id']&&delete _0xbf0dc3[_0x51fec4('0x25')]['id'],_0xbf0dc3[_0x51fec4('0x25')][_0x51fec4('0xc6')]&&(_0x220574=path['join'](config['root'],_0x51fec4('0x44'),util[_0x51fec4('0xbb')](_0x51fec4('0x8b'),Date[_0x51fec4('0xaf')]())),_0xbf0dc3[_0x51fec4('0x25')][_0x51fec4('0x112')]=_0x220574),db['ChatInteraction'][_0x51fec4('0x105')]({'where':{'id':_0xbf0dc3[_0x51fec4('0x91')]['id']},'include':[{'model':db[_0x51fec4('0xce')],'as':_0x51fec4('0x4'),'include':[{'model':db[_0x51fec4('0x10c')],'as':_0x51fec4('0x10c')}]}]})[_0x51fec4('0x10f')](handleEntityNotFound(_0x24e24a,null))[_0x51fec4('0x10f')](saveUpdates(_0xbf0dc3[_0x51fec4('0x25')],null))[_0x51fec4('0x10f')](function(_0x3178cc){const _0x46208d=_0x51fec4;if(_0x3178cc)return _0xfa1699=_0x3178cc,db[_0x46208d('0x6f')][_0x46208d('0x105')]({'where':{'id':_0xfa1699['ChatWebsiteId']}});})[_0x51fec4('0x10f')](function(_0x568972){const _0x4a24c9=_0x51fec4;if(_0x568972)return _0x1bc54f=_0x568972,db[_0x4a24c9('0x7f')][_0x4a24c9('0x105')]({'where':{'id':_0xfa1699[_0x4a24c9('0xd5')]}});})['then'](function(_0x3db4c3){const _0x15c68f=_0x51fec4;if(_0x3db4c3){if(_0x220574){let _0x3be878=null;for(let _0x3b53bb=0x1;_0x3b53bb<_0xfa1699['Messages'][_0x15c68f('0x7e')];++_0x3b53bb){_0x3be878=_0xfa1699[_0x15c68f('0x4')][_0x3b53bb];let _0x19b909=_0x3be878[_0x15c68f('0x2a')]?util[_0x15c68f('0xbb')](_0x15c68f('0x5f'),_0x1bc54f[_0x15c68f('0x11c')],_0x3be878[_0x15c68f('0x2a')]):_0x15c68f('0xed');const _0x2bd849=_0xbf0dc3[_0x15c68f('0x25')][_0x15c68f('0xe9')]||util['format']('%s%d',_0x15c68f('0x29'),_0x3be878[_0x15c68f('0xd5')]);switch(_0x1bc54f[_0x15c68f('0x8d')]){case _0x15c68f('0xa8'):_0x19b909=_0x3be878[_0x15c68f('0x2a')]?util[_0x15c68f('0xbb')](_0x15c68f('0x5f'),_0x1bc54f[_0x15c68f('0x11c')],_0x3be878[_0x15c68f('0x2a')]):_0x15c68f('0xed');break;case'agent_alias':_0x19b909=_0x3be878[_0x15c68f('0x2a')]?_0x3be878[_0x15c68f('0x10c')]['alias']||_0x3be878[_0x15c68f('0x10c')][_0x15c68f('0x2d')]:_0x15c68f('0xed');break;case _0x15c68f('0x63'):_0x19b909=_0x3be878[_0x15c68f('0x2a')]?_0x3be878['User']['fullname']:_0x15c68f('0xed');break;default:_0x19b909=_0x3be878['UserId']?util[_0x15c68f('0xbb')]('%s%d',_0x1bc54f['agentAlias'],_0x3be878[_0x15c68f('0x2a')]):_0x15c68f('0xed');}const _0x4f17fe=util[_0x15c68f('0xbb')](_0x15c68f('0xd8'),moment(_0x3be878[_0x15c68f('0x103')])[_0x15c68f('0xbb')](_0x15c68f('0x87')),_0x3be878[_0x15c68f('0x35')]==='in'?_0x2bd849:_0x19b909,_0x3be878['body']);!_0x3be878[_0x15c68f('0xd9')]&&fs[_0x15c68f('0x3e')](_0x220574,_0x4f17fe);}return db['MailAccount'][_0x15c68f('0x105')]({'where':{'service':!![]},'include':[{'model':db[_0x15c68f('0xe2')],'as':'Smtp','raw':!![]}]});}}})[_0x51fec4('0x10f')](function(_0x1e2235){const _0xdab385=_0x51fec4;if(_0x1e2235&&_0x1e2235[_0xdab385('0x59')]&&_0xbf0dc3[_0xdab385('0x25')]){const _0x1728b0={'tls':{'rejectUnauthorized':![]}};return _0x1e2235[_0xdab385('0x59')][_0xdab385('0xdb')]?_0x1728b0['service']=_0x1e2235['Smtp']['service']:(_0x1728b0[_0xdab385('0x60')]=_0x1e2235['Smtp'][_0xdab385('0x60')],_0x1728b0[_0xdab385('0x1b')]=_0x1e2235['Smtp'][_0xdab385('0x1b')],_0x1728b0['secure']=_0x1e2235[_0xdab385('0x59')][_0xdab385('0x1a')]),_0x1e2235[_0xdab385('0x59')][_0xdab385('0x54')]&&(_0x1728b0[_0xdab385('0xcd')]={'user':_0x1e2235[_0xdab385('0x59')]['user'],'pass':_0x1e2235[_0xdab385('0x59')][_0xdab385('0xec')]}),respondWithRpcPromise(_0xdab385('0x6a'),'sendMail',{'account':_0x1728b0,'message':{'from':util[_0xdab385('0xbb')](_0xdab385('0x100'),_0x1e2235[_0xdab385('0x81')],_0x1e2235[_0xdab385('0x104')]||_0x1e2235[_0xdab385('0x59')][_0xdab385('0x109')]),'to':_0xbf0dc3['body'][_0xdab385('0xc6')],'subject':_0xdab385('0xe4'),'text':util[_0xdab385('0xbb')](_0xdab385('0xe6'),_0xbf0dc3[_0xdab385('0x25')][_0xdab385('0xc6')]),'attachments':[{'path':_0x220574}]}})['then'](function(){return _0xfa1699;})[_0xdab385('0xfb')](function(_0x34951b){console['error'](_0x34951b);});}else return _0xfa1699;})['then'](respondWithStatusCode(_0x24e24a,0xc8))[_0x51fec4('0xfb')](handleError(_0x24e24a,null));},exports[_0x16f486('0x23')]=function(_0x55554e,_0x273732){const _0x5bc7df=_0x16f486;return db[_0x5bc7df('0xce')][_0x5bc7df('0x105')]({'where':{'id':_0x55554e['params']['id']}})[_0x5bc7df('0x10f')](function(_0x5e4b7e){const _0x1cd1d8=_0x5bc7df;if(_0x5e4b7e)return _0x5e4b7e[_0x1cd1d8('0x23')](_0x55554e[_0x1cd1d8('0x25')][_0x1cd1d8('0xf1')],{'through':_[_0x1cd1d8('0xe8')](_0x55554e[_0x1cd1d8('0x25')],[_0x1cd1d8('0xf1'),'id'])});})[_0x5bc7df('0x10f')](respondWithResult(_0x273732,null))['catch'](handleError(_0x273732,null));},exports[_0x16f486('0x5e')]=function(_0x52b6bb,_0x355f59){const _0x400621=_0x16f486;let _0x90e88f={'raw':![],'where':{}};const _0x4ce127={},_0x285a88={'count':0x0,'rows':[]};return db[_0x400621('0xd1')][_0x400621('0x105')]({'where':{'id':_0x52b6bb['params']['id']}})[_0x400621('0x10f')](handleEntityNotFound(_0x355f59,null))[_0x400621('0x10f')](function(_0x136688){const _0x3011a9=_0x400621;if(_0x136688){_0x4ce127[_0x3011a9('0xc2')]=_['keys'](db[_0x3011a9('0xce')][_0x3011a9('0xc7')]),_0x4ce127[_0x3011a9('0xb3')]=_[_0x3011a9('0xf2')](_0x52b6bb[_0x3011a9('0xb3')]),_0x4ce127['filters']=_['intersection'](_0x4ce127['model'],_0x4ce127[_0x3011a9('0xb3')]),_0x90e88f[_0x3011a9('0xcb')]=_[_0x3011a9('0x64')](_0x4ce127['model'],qs['fields'](_0x52b6bb[_0x3011a9('0xb3')]['fields'])),_0x90e88f[_0x3011a9('0xcb')]=_0x90e88f[_0x3011a9('0xcb')][_0x3011a9('0x7e')]?_0x90e88f[_0x3011a9('0xcb')]:_0x4ce127[_0x3011a9('0xc2')];typeof _0x52b6bb[_0x3011a9('0xb3')]['nolimit']===_0x3011a9('0x76')&&(_0x90e88f[_0x3011a9('0xe5')]=qs['limit'](_0x52b6bb[_0x3011a9('0xb3')][_0x3011a9('0xe5')]),_0x90e88f[_0x3011a9('0x34')]=qs[_0x3011a9('0x34')](_0x52b6bb[_0x3011a9('0xb3')][_0x3011a9('0x34')]));_0x90e88f[_0x3011a9('0x49')]=qs['sort'](_0x52b6bb[_0x3011a9('0xb3')][_0x3011a9('0xa6')]),_0x90e88f[_0x3011a9('0xbc')]=qs[_0x3011a9('0xac')](_['pick'](_0x52b6bb['query'],_0x4ce127[_0x3011a9('0xac')])),_0x90e88f[_0x3011a9('0xbc')]['ChatInteractionId']=_0x136688['id'];_0x52b6bb[_0x3011a9('0xb3')][_0x3011a9('0x62')]&&(_0x90e88f[_0x3011a9('0xbc')]=_[_0x3011a9('0x55')](_0x90e88f[_0x3011a9('0xbc')],{[Op['or']]:_[_0x3011a9('0x1f')](_0x90e88f[_0x3011a9('0xcb')],function(_0x4ba838){const _0x104536=_0x3011a9,_0x202379={};return _0x202379[_0x4ba838]={[Op[_0x104536('0x9a')]]:'%'+_0x52b6bb[_0x104536('0xb3')][_0x104536('0x62')]+'%'},_0x202379;})}));if(_0x52b6bb[_0x3011a9('0xb3')][_0x3011a9('0x17')]){const _0x2ff7c9=_0x52b6bb[_0x3011a9('0xb3')][_0x3011a9('0x17')][_0x3011a9('0xc3')](','),_0x447571={};_0x447571[_0x2ff7c9[0x0]]={[Op[_0x3011a9('0x46')]]:moment(_0x2ff7c9[0x1])[_0x3011a9('0xbb')](_0x3011a9('0xb5'))},_0x90e88f[_0x3011a9('0xbc')]=_[_0x3011a9('0x55')](_0x90e88f[_0x3011a9('0xbc')],_0x447571);}return _0x90e88f=_[_0x3011a9('0x55')]({},_0x90e88f,_0x52b6bb[_0x3011a9('0x3d')]),db['ChatMessage'][_0x3011a9('0xb')]({'where':_0x90e88f[_0x3011a9('0xbc')]})['then'](function(_0x1369ed){const _0x2e6e70=_0x3011a9;return _0x285a88[_0x2e6e70('0xb')]=_0x1369ed,_0x52b6bb[_0x2e6e70('0xb3')][_0x2e6e70('0x2c')]&&(_0x90e88f[_0x2e6e70('0xc0')]=[{'all':!![]}]),db[_0x2e6e70('0xce')][_0x2e6e70('0x51')](_0x90e88f);})[_0x3011a9('0x10f')](function(_0x3b99cb){const _0x2114b1=_0x3011a9;return _0x285a88[_0x2114b1('0xd3')]=_0x3b99cb,_0x285a88;});}})['then'](respondWithFilteredResult(_0x355f59,_0x90e88f))[_0x400621('0xfb')](handleError(_0x355f59,null));},exports[_0x16f486('0xf7')]=function(_0x1816fe,_0xef721c){const _0x1cd9e8=_0x16f486;let _0x49761e={'where':{}};const _0x3570aa={},_0x59d17f={'count':0x0,'rows':[]};return db[_0x1cd9e8('0xd1')]['findOne']({'where':{'id':_0x1816fe[_0x1cd9e8('0x91')]['id']}})[_0x1cd9e8('0x10f')](handleEntityNotFound(_0xef721c,null))[_0x1cd9e8('0x10f')](function(_0x272a73){const _0x4680cc=_0x1cd9e8;if(_0x272a73)return _0x3570aa[_0x4680cc('0xc2')]=_['keys'](db[_0x4680cc('0xce')][_0x4680cc('0xc7')]),_0x3570aa['query']=_[_0x4680cc('0xf2')](_0x1816fe[_0x4680cc('0xb3')]),_0x3570aa[_0x4680cc('0xac')]=_['intersection'](_0x3570aa[_0x4680cc('0xc2')],_0x3570aa[_0x4680cc('0xb3')]),_0x49761e['attributes']=_[_0x4680cc('0x64')](_0x3570aa[_0x4680cc('0xc2')],qs['fields'](_0x1816fe[_0x4680cc('0xb3')][_0x4680cc('0x39')])),_0x49761e[_0x4680cc('0xcb')]=_0x49761e[_0x4680cc('0xcb')]['length']?_0x49761e['attributes']:_0x3570aa[_0x4680cc('0xc2')],typeof _0x1816fe['query'][_0x4680cc('0xf9')]===_0x4680cc('0x76')&&(_0x49761e[_0x4680cc('0xe5')]=qs[_0x4680cc('0xe5')](_0x1816fe[_0x4680cc('0xb3')][_0x4680cc('0xe5')]),_0x49761e[_0x4680cc('0x34')]=qs[_0x4680cc('0x34')](_0x1816fe[_0x4680cc('0xb3')]['offset'])),_0x49761e[_0x4680cc('0x49')]=qs[_0x4680cc('0xa6')](_0x1816fe[_0x4680cc('0xb3')][_0x4680cc('0xa6')]),_0x49761e['where']=qs['filters'](_[_0x4680cc('0x5b')](_0x1816fe[_0x4680cc('0xb3')],_0x3570aa[_0x4680cc('0xac')])),_0x49761e[_0x4680cc('0xbc')][_0x4680cc('0x10a')]=_0x272a73['id'],_0x1816fe[_0x4680cc('0xb3')][_0x4680cc('0x62')]&&(_0x49761e['where']=_[_0x4680cc('0x55')](_0x49761e[_0x4680cc('0xbc')],{[Op['or']]:_[_0x4680cc('0x1f')](_0x49761e[_0x4680cc('0xcb')],function(_0x5b5907){const _0xc82660=_0x4680cc,_0x3d1236={};return _0x3d1236[_0x5b5907]={[Op[_0xc82660('0x9a')]]:'%'+_0x1816fe[_0xc82660('0xb3')][_0xc82660('0x62')]+'%'},_0x3d1236;})})),_0x49761e[_0x4680cc('0xbc')][_0x4680cc('0xd9')]=![],_0x1816fe[_0x4680cc('0xb3')]['id']&&(_0x49761e[_0x4680cc('0xbc')]['id']={[Op['gt']]:_0x1816fe[_0x4680cc('0xb3')]['id']}),_0x49761e=_['merge']({},_0x49761e,_0x1816fe[_0x4680cc('0x3d')]),db[_0x4680cc('0xce')][_0x4680cc('0xb')]({'where':_0x49761e[_0x4680cc('0xbc')]})[_0x4680cc('0x10f')](function(_0x36c19d){const _0x58fc5c=_0x4680cc;return _0x59d17f[_0x58fc5c('0xb')]=_0x36c19d,_0x49761e[_0x58fc5c('0xc0')]=[],_0x1816fe['query'][_0x58fc5c('0x73')]&&_0x49761e[_0x58fc5c('0xc0')][_0x58fc5c('0x89')]({'model':db[_0x58fc5c('0x10c')],'as':_0x58fc5c('0x10c'),'attributes':['id',_0x58fc5c('0x2d'),_0x58fc5c('0x115')]}),_0x1816fe[_0x58fc5c('0xb3')][_0x58fc5c('0x2c')]&&(_0x49761e[_0x58fc5c('0xc0')]=[{'all':!![]}]),db[_0x58fc5c('0xce')][_0x58fc5c('0x51')](_0x49761e);})[_0x4680cc('0x10f')](function(_0x18032e){return _0x59d17f['rows']=_0x18032e,_0x59d17f;});})[_0x1cd9e8('0x10f')](respondWithFilteredResult(_0xef721c,_0x49761e))[_0x1cd9e8('0xfb')](handleError(_0xef721c,null));},exports[_0x16f486('0x31')]=function(_0x1b9987,_0x5cdcc4){const _0x18dd34=_0x16f486;return db['ChatInteraction']['findOne']({'where':{'id':_0x1b9987[_0x18dd34('0x91')]['id']}})['then'](function(_0xef6f57){const _0x4662fa=_0x18dd34;if(_0xef6f57)return _0xef6f57[_0x4662fa('0x86')](_0x1b9987[_0x4662fa('0x25')]['ids'],{'through':_['omit'](_0x1b9987['body'],['ids','id'])})[_0x4662fa('0x10f')](function(){const _0x1049e2=_0x4662fa;return db[_0x1049e2('0x15')]['findAll']({'attributes':['id',_0x1049e2('0x81'),_0x1049e2('0x4c')],'where':{'id':_0x1b9987[_0x1049e2('0x25')]['ids']}});})[_0x4662fa('0x10f')](function(_0x8a8a11){const _0x1471a3=_0x4662fa;return socket[_0x1471a3('0xee')](_0x1471a3('0xfa'),{'id':Number(_0x1b9987[_0x1471a3('0x91')]['id']),'tags':_0x8a8a11||[]}),{'id':Number(_0x1b9987['params']['id']),'tags':_0x8a8a11||[]};});})[_0x18dd34('0x10f')](respondWithResult(_0x5cdcc4,null))[_0x18dd34('0xfb')](handleError(_0x5cdcc4,null));},exports[_0x16f486('0x90')]=function(_0x2f95fd,_0x11809a){const _0xf570e1=_0x16f486;return db['ChatInteraction']['findOne']({'where':{'id':_0x2f95fd[_0xf570e1('0x91')]['id']}})[_0xf570e1('0x10f')](handleEntityNotFound(_0x11809a,null))[_0xf570e1('0x10f')](function(_0x3f5fee){const _0xd07803=_0xf570e1;if(_0x3f5fee)return _0x3f5fee[_0xd07803('0x90')](_0x2f95fd[_0xd07803('0xb3')]['ids']);})[_0xf570e1('0x10f')](respondWithStatusCode(_0x11809a,null))[_0xf570e1('0xfb')](handleError(_0x11809a,null));},exports[_0x16f486('0xbd')]=function(_0x5ad8bb,_0x2c15af){const _0x58e4df=_0x16f486,_0x2c52ae=moment()['unix']()[_0x58e4df('0xe')](),_0x44bd5d=path[_0x58e4df('0x8e')](config[_0x58e4df('0x69')],_0x58e4df('0x3f'),_0x58e4df('0x95'),_0x58e4df('0x10b')),_0x1eba91=path[_0x58e4df('0x8e')](config[_0x58e4df('0x69')],'server',_0x58e4df('0x95'),_0x58e4df('0x4a')),_0x4618a5=path[_0x58e4df('0x8e')](_0x44bd5d,_0x2c52ae),_0x58458c=util[_0x58e4df('0xbb')](_0x58e4df('0x68'),_0x5ad8bb[_0x58e4df('0x91')]['id'],_0x2c52ae),_0x5cfb98=path[_0x58e4df('0x8e')](_0x44bd5d,_0x58458c),_0x18a50b=[];_0x18a50b[_0x58e4df('0x89')]({'model':db['User'],'as':_0x58e4df('0x10c'),'attributes':['id','fullname'],'raw':!![]}),_0x18a50b[_0x58e4df('0x89')]({'model':db[_0x58e4df('0x7f')],'as':_0x58e4df('0x8'),'attributes':['id',_0x58e4df('0x65'),_0x58e4df('0xae')],'raw':!![]});_0x5ad8bb[_0x58e4df('0xb3')][_0x58e4df('0x4a')]&&_0x18a50b[_0x58e4df('0x89')]({'model':db[_0x58e4df('0x45')],'as':_0x58e4df('0x45'),'raw':!![]});const _0x24dd71=[{'model':db[_0x58e4df('0xce')],'as':_0x58e4df('0x4'),'attributes':['id',_0x58e4df('0x25'),_0x58e4df('0x103'),_0x58e4df('0x35'),_0x58e4df('0xd9'),_0x58e4df('0xea')],'include':_0x18a50b}];return _0x24dd71['push']({'model':db['ChatWebsite'],'as':'Account','attributes':['id',_0x58e4df('0x81')]}),_0x24dd71[_0x58e4df('0x89')]({'model':db['User'],'as':_0x58e4df('0x8c'),'attributes':['id','fullname']}),db[_0x58e4df('0xd1')][_0x58e4df('0x105')]({'where':{'id':_0x5ad8bb['params']['id']},'include':_0x24dd71})[_0x58e4df('0x10f')](handleEntityNotFound(_0x2c15af,null))[_0x58e4df('0x10f')](function(_0x3d35b5){const _0x34f87e=_0x58e4df;if(_0x3d35b5){const _0x515418=_0x3d35b5[_0x34f87e('0x85')]({'plain':!![]});fs[_0x34f87e('0xc5')](_0x4618a5);const _0x550c07={'format':'A4','border':_0x34f87e('0x88'),'header':{'height':'40px','contents':{'first':_0x34f87e('0x6b')}},'footer':{'height':_0x34f87e('0x20'),'contents':{'default':util[_0x34f87e('0xbb')](_0x34f87e('0x9f'),util[_0x34f87e('0xbb')](_0x34f87e('0x32'),_0x34f87e('0xb9'),_0x515418['id']),moment()[_0x34f87e('0xbb')]('YYYY-MM-DD')['toString']())}}},_0x1cd35e={'channel':_0x34f87e('0xb9'),'account':_0x515418[_0x34f87e('0x9c')][_0x34f87e('0x81')],'agent':_0x515418[_0x34f87e('0x8c')]?_0x515418[_0x34f87e('0x8c')]['fullname']:_0x34f87e('0x7d'),'createdAt':moment(_0x515418[_0x34f87e('0x103')])[_0x34f87e('0xbb')](_0x34f87e('0xb5'))[_0x34f87e('0xe')](),'closedAt':_0x515418[_0x34f87e('0x4b')]?moment(_0x515418[_0x34f87e('0xff')])[_0x34f87e('0xbb')](_0x34f87e('0xb5'))['toString']():'','disposition':_0x515418['disposition'],'chatInfo':{'browser':_0x515418['browserName'],'os':_0x515418[_0x34f87e('0x61')],'referer':_0x515418[_0x34f87e('0x110')],'customerIp':_0x515418[_0x34f87e('0x7b')],'customerPort':_0x515418[_0x34f87e('0xa')]?_0x515418[_0x34f87e('0xa')]:_0x34f87e('0x7d')},'messages':_(_0x515418[_0x34f87e('0x4')])['tail']()[_0x34f87e('0x62')]({'secret':![]})['map'](function(_0x1f1f9b){const _0x24c28e=_0x34f87e;if(_0x1f1f9b[_0x24c28e('0x45')]){const _0x496299=path[_0x24c28e('0x8e')](_0x1eba91,_0x1f1f9b[_0x24c28e('0x45')][_0x24c28e('0x78')]);fs[_0x24c28e('0x75')](_0x496299)&&fs[_0x24c28e('0x98')](_0x496299)[_0x24c28e('0xb7')](fs[_0x24c28e('0xcf')](path[_0x24c28e('0x8e')](_0x4618a5,_0x1f1f9b['Attachment']['basename'])));}return{'date':moment(_0x1f1f9b['createdAt'])[_0x24c28e('0xbb')](_0x24c28e('0xb5'))[_0x24c28e('0xe')](),'sender':_0x1f1f9b[_0x24c28e('0x35')]===_0x24c28e('0xd2')?_0x1f1f9b[_0x24c28e('0x10c')]?_0x1f1f9b['User']['fullname']:_0x24c28e('0xed'):_0x1f1f9b[_0x24c28e('0x8')][_0x24c28e('0x65')]+(_0x1f1f9b['Contact'][_0x24c28e('0xae')]?'\x20'+_0x1f1f9b[_0x24c28e('0x8')][_0x24c28e('0xae')]:''),'body':_0x1f1f9b[_0x24c28e('0x45')]?_0x1f1f9b[_0x24c28e('0x45')][_0x24c28e('0x78')]:_0x1f1f9b['body'],'direction':_0x1f1f9b[_0x24c28e('0x35')]==='out'?'A':'C','secret':_0x1f1f9b['secret'],'read':_0x1f1f9b[_0x24c28e('0xea')],'attachment':_0x1f1f9b['Attachment']};})[_0x34f87e('0x18')]()};return ejs['renderFile'](path[_0x34f87e('0x8e')](config['root'],_0x34f87e('0x3f'),'views',_0x34f87e('0x72')),{'interaction':_0x1cd35e})[_0x34f87e('0x10f')](function(_0x5c6864){return new Promise(function(_0x3aa360,_0x45231d){const _0x13824b=a66_0x29fa;pdf['create'](_0x5c6864,_0x550c07)[_0x13824b('0x4f')](path[_0x13824b('0x8e')](_0x4618a5,_0x13824b('0x99')+_0x515418['id']+'-'+_0x2c52ae+_0x13824b('0xc4')),function(_0x4a31e6,_0x5a0ff4){if(_0x4a31e6)return _0x45231d(_0x4a31e6);_0x3aa360(_0x5a0ff4);});});})['then'](function(){const _0x4bbb57=_0x34f87e;return new Promise(function(_0x390e72,_0x2290b3){zipdir(_0x4618a5,{'saveTo':_0x5cfb98},function(_0x5ef55d,_0x1605f2){if(_0x5ef55d)return _0x2290b3(_0x5ef55d);return _0x390e72(_0x1605f2);});})[_0x4bbb57('0x10f')](function(){return new Promise(function(_0x21923b,_0x401ac4){rimraf(_0x4618a5,function(_0x34e49b){if(_0x34e49b)_0x401ac4(_0x34e49b);return _0x21923b();});});})[_0x4bbb57('0x10f')](function(){const _0x260552=_0x4bbb57;return _0x2c15af[_0x260552('0xbd')](_0x5cfb98,_0x58458c,function(_0x104f00){const _0x4c0af1=_0x260552;_0x104f00?console['log'](_0x4c0af1('0xe0'),_0x104f00):fs[_0x4c0af1('0x28')](_0x5cfb98);});});});}else return _0x2c15af[_0x34f87e('0x57')](0xc8);})['catch'](handleError(_0x2c15af,null));}; \ No newline at end of file +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 diff --git a/server/api/chatInteraction/chatInteraction.events.js b/server/api/chatInteraction/chatInteraction.events.js index 5347d5b..1e5ce2d 100644 --- a/server/api/chatInteraction/chatInteraction.events.js +++ b/server/api/chatInteraction/chatInteraction.events.js @@ -1 +1 @@ -const a67_0x2a2a=['addHook','../../mysqldb','getUsers','emit','events','ChatInteraction','Users','setDataValue','findAll','then','undefined','ChatMessage','save','unreadMessages','catch','setMaxListeners'];(function(_0x5d6ac0,_0x2a2af3){const _0x937697=function(_0x310c67){while(--_0x310c67){_0x5d6ac0['push'](_0x5d6ac0['shift']());}};_0x937697(++_0x2a2af3);}(a67_0x2a2a,0x71));const a67_0x9376=function(_0x5d6ac0,_0x2a2af3){_0x5d6ac0=_0x5d6ac0-0x0;let _0x937697=a67_0x2a2a[_0x5d6ac0];return _0x937697;};const _0x16ebc8=a67_0x9376;'use strict';const EventEmitter=require(_0x16ebc8('0x3')),ChatInteraction=require(_0x16ebc8('0x0'))['db'][_0x16ebc8('0x4')],ChatMessage=require(_0x16ebc8('0x0'))['db'][_0x16ebc8('0xa')],ChatInteractionEvents=new EventEmitter();ChatInteractionEvents[_0x16ebc8('0xe')](0x0);const events={'afterCreate':_0x16ebc8('0xb'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x310c67){return function(_0x4ef488){const _0x438068=a67_0x9376;_0x4ef488[_0x438068('0x1')]({'attributes':['id'],'raw':!![]})[_0x438068('0x8')](function(_0x1fd399){const _0xedd5c9=_0x438068;return _0x4ef488[_0xedd5c9('0x6')](_0xedd5c9('0x5'),_0x1fd399['map'](function(_0x1d7958){return{'id':_0x1d7958['id']};})),ChatMessage[_0xedd5c9('0x7')]({'where':{'ChatInteractionId':_0x4ef488['id'],'direction':'in','read':![]},'raw':!![]});})[_0x438068('0x8')](function(_0x40c775){const _0x37247f=_0x438068;_0x4ef488[_0x37247f('0x6')](_0x37247f('0xc'),_0x40c775['length']),ChatInteractionEvents[_0x37247f('0x2')](_0x310c67+':'+_0x4ef488['id'],_0x4ef488),ChatInteractionEvents[_0x37247f('0x2')](_0x310c67,_0x4ef488);})[_0x438068('0xd')](()=>{});};}for(const e in events){if(typeof events[e]!==_0x16ebc8('0x9')){const event=events[e];ChatInteraction[_0x16ebc8('0xf')](e,emitEvent(event));}}module['exports']=ChatInteractionEvents; \ No newline at end of file +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 diff --git a/server/api/chatInteraction/chatInteraction.model.js b/server/api/chatInteraction/chatInteraction.model.js index 9b9df77..6229132 100644 --- a/server/api/chatInteraction/chatInteraction.model.js +++ b/server/api/chatInteraction/chatInteraction.model.js @@ -1 +1 @@ -const a68_0xcd98=['chat_interactions','format','utf8mb4_unicode_ci','define','closedAt','exports','YYYY-MM-DD\x20HH:mm:ss','ChatInteraction','changed'];(function(_0x101b6b,_0xcd98ad){const _0x41c3e5=function(_0x425897){while(--_0x425897){_0x101b6b['push'](_0x101b6b['shift']());}};_0x41c3e5(++_0xcd98ad);}(a68_0xcd98,0x1dc));const a68_0x41c3=function(_0x101b6b,_0xcd98ad){_0x101b6b=_0x101b6b-0x0;let _0x41c3e5=a68_0xcd98[_0x101b6b];return _0x41c3e5;};const _0x14ee28=a68_0x41c3;'use strict';const moment=require('moment'),attributes=require('./chatInteraction.attributes');module[_0x14ee28('0x6')]=function(_0x425897){const _0x260701=_0x14ee28,_0x4c1b15=_0x425897[_0x260701('0x4')](_0x260701('0x8'),attributes,{'tableName':_0x260701('0x1'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x617b5e){const _0x53fad2=_0x260701;_0x617b5e[_0x53fad2('0x0')]('closed')&&(_0x617b5e[_0x53fad2('0x5')]=moment()[_0x53fad2('0x2')](_0x53fad2('0x7')));}},'charset':'utf8mb4','collate':_0x260701('0x3')});return _0x4c1b15;}; \ No newline at end of file +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 diff --git a/server/api/chatInteraction/chatInteraction.rpc.js b/server/api/chatInteraction/chatInteraction.rpc.js index bb65c22..de9b885 100644 --- a/server/api/chatInteraction/chatInteraction.rpc.js +++ b/server/api/chatInteraction/chatInteraction.rpc.js @@ -1 +1 @@ -const a69_0x2c89=['debug','where','lodash','ids','body','update','rpc','message','options','../../mysqldb','./chatInteraction.socket','omit','UpdateChatInteraction','attributes','info','register','catch','limit','stringify','ChatInteraction','error','AddTags','then'];(function(_0x5d7dc8,_0x2c8966){const _0x301191=function(_0x1e79da){while(--_0x1e79da){_0x5d7dc8['push'](_0x5d7dc8['shift']());}};_0x301191(++_0x2c8966);}(a69_0x2c89,0xf7));const a69_0x3011=function(_0x5d7dc8,_0x2c8966){_0x5d7dc8=_0x5d7dc8-0x0;let _0x301191=a69_0x2c89[_0x5d7dc8];return _0x301191;};const _0x29f5dd=a69_0x3011;'use strict';const _=require(_0x29f5dd('0x8')),db=require(_0x29f5dd('0xf'))['db'],logger=require('../../config/logger')(_0x29f5dd('0xc')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x29f5dd('0x10'))[_0x29f5dd('0x15')](socket),exports[_0x29f5dd('0x12')]=function(_0x1e79da){const _0xf89483=this;return new Promise(function(_0x441b7a,_0x475d13){const _0x5d0ef0=a69_0x3011;return db['ChatInteraction'][_0x5d0ef0('0xb')](_0x1e79da[_0x5d0ef0('0xa')],{'raw':_0x1e79da[_0x5d0ef0('0xe')]?_0x1e79da[_0x5d0ef0('0xe')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1e79da[_0x5d0ef0('0xe')]?_0x1e79da[_0x5d0ef0('0xe')][_0x5d0ef0('0x7')]||null:null,'attributes':_0x1e79da[_0x5d0ef0('0xe')]?_0x1e79da[_0x5d0ef0('0xe')][_0x5d0ef0('0x13')]||null:null,'limit':_0x1e79da[_0x5d0ef0('0xe')]?_0x1e79da[_0x5d0ef0('0xe')][_0x5d0ef0('0x0')]||null:null})['then'](function(_0x333d3a){const _0x4615dd=_0x5d0ef0;logger[_0x4615dd('0x14')](_0x4615dd('0x12'),_0x1e79da),logger[_0x4615dd('0x6')](_0x4615dd('0x12'),_0x1e79da,JSON[_0x4615dd('0x1')](_0x333d3a)),_0x441b7a(_0x333d3a);})['catch'](function(_0xb17204){const _0x7b8b5d=_0x5d0ef0;logger['error'](_0x7b8b5d('0x12'),_0xb17204['message'],_0x1e79da),_0x475d13(_0xf89483['error'](0x1f4,_0xb17204[_0x7b8b5d('0xd')]));});});},exports['AddTagsToChatInteraction']=function(_0x29dafd){const _0x9b105=this;return new Promise(function(_0x547e77,_0x2f852e){const _0x2ae7bf=a69_0x3011;return db[_0x2ae7bf('0x2')]['findOne']({'where':_0x29dafd[_0x2ae7bf('0xe')]?_0x29dafd[_0x2ae7bf('0xe')]['where']||null:null})['then'](function(_0x3f8742){const _0x559e46=_0x2ae7bf;if(_0x3f8742)return _0x3f8742['addTags'](_0x29dafd['body'][_0x559e46('0x9')],{'through':_[_0x559e46('0x11')](_0x29dafd[_0x559e46('0xa')],[_0x559e46('0x9'),'id'])});})[_0x2ae7bf('0x5')](function([_0xc896db]){const _0x211ddf=_0x2ae7bf;logger[_0x211ddf('0x14')](_0x211ddf('0x4'),_0x29dafd),logger[_0x211ddf('0x6')](_0x211ddf('0x4'),_0x29dafd,JSON['stringify'](_0xc896db)),_0x547e77(_0xc896db);})[_0x2ae7bf('0x16')](function(_0x5d94a0){const _0x2f059b=_0x2ae7bf;logger[_0x2f059b('0x3')](_0x2f059b('0x4'),_0x5d94a0[_0x2f059b('0xd')],_0x29dafd),_0x2f852e(_0x9b105[_0x2f059b('0x3')](0x1f4,_0x5d94a0[_0x2f059b('0xd')]));});});}; \ No newline at end of file +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 diff --git a/server/api/chatInteraction/chatInteraction.socket.js b/server/api/chatInteraction/chatInteraction.socket.js index 1b1c93f..155fca4 100644 --- a/server/api/chatInteraction/chatInteraction.socket.js +++ b/server/api/chatInteraction/chatInteraction.socket.js @@ -1 +1 @@ -const a70_0x33f5=['remove','./chatInteraction.events','update','register','save','emit'];(function(_0x1c3f35,_0x33f59d){const _0x55b7af=function(_0x18b5c7){while(--_0x18b5c7){_0x1c3f35['push'](_0x1c3f35['shift']());}};_0x55b7af(++_0x33f59d);}(a70_0x33f5,0xf6));const a70_0x55b7=function(_0x1c3f35,_0x33f59d){_0x1c3f35=_0x1c3f35-0x0;let _0x55b7af=a70_0x33f5[_0x1c3f35];return _0x55b7af;};const _0x1340fa=a70_0x55b7;'use strict';const ChatInteractionEvents=require(_0x1340fa('0x1')),events=[_0x1340fa('0x4'),_0x1340fa('0x0'),_0x1340fa('0x2')];function createListener(_0x18b5c7,_0x57ba1c){return function(_0x415851){const _0x2a6734=a70_0x55b7;_0x57ba1c[_0x2a6734('0x5')](_0x18b5c7,_0x415851);};}exports[_0x1340fa('0x3')]=function(_0x56e14b){for(let _0x52ef3b=0x0,_0x3d005d=events['length'];_0x52ef3b<_0x3d005d;_0x52ef3b++){const _0x3ac357=events[_0x52ef3b],_0xfd16dd=createListener('chatInteraction:'+_0x3ac357,_0x56e14b);ChatInteractionEvents['on'](_0x3ac357,_0xfd16dd);}}; \ No newline at end of file +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 diff --git a/server/api/chatInteraction/index.js b/server/api/chatInteraction/index.js index e1d7b40..eba9960 100644 --- a/server/api/chatInteraction/index.js +++ b/server/api/chatInteraction/index.js @@ -1 +1 @@ -const a71_0x329f=['index','post','/:id/download','/:id/attachment_download','single','chat','../../config/environment','put','path','tracked','addMessage','isChatInteractionAuthorized','exports','getMyMessages','%s-%s','describe','create','/:id','get','file','/:id/tags','createVidaooSession','root','replace','Router','/:id/my_messages','abandon','diskStorage','/:id/vidaoo','/describe','customUpdate','./chatInteraction.controller','server/files/attachments/','format','download','isAuthenticated','util','getMessages','multer','/:id/close','originalname','show','now','attachmentDownload','/:id/abandon','chatinteraction:update','express','delete','close'];(function(_0x433e75,_0x329fcb){const _0x3a8e2b=function(_0x4625fc){while(--_0x4625fc){_0x433e75['push'](_0x433e75['shift']());}};_0x3a8e2b(++_0x329fcb);}(a71_0x329f,0x15b));const a71_0x3a8e=function(_0x433e75,_0x329fcb){_0x433e75=_0x433e75-0x0;let _0x3a8e2b=a71_0x329f[_0x433e75];return _0x3a8e2b;};const _0x4b1d16=a71_0x3a8e;'use strict';const multer=require(_0x4b1d16('0x22')),util=require(_0x4b1d16('0x20')),path=require(_0x4b1d16('0x4')),express=require(_0x4b1d16('0x2a')),router=express[_0x4b1d16('0x14')](),auth=require('../../components/auth/service'),interaction=require('../../components/interaction/service'),config=require(_0x4b1d16('0x2')),controller=require(_0x4b1d16('0x1b'));router['get']('/',auth[_0x4b1d16('0x1f')](),controller[_0x4b1d16('0x2d')]),router[_0x4b1d16('0xe')](_0x4b1d16('0x19'),auth[_0x4b1d16('0x1f')](),controller[_0x4b1d16('0xb')]),router['get'](_0x4b1d16('0xd'),auth['isChatInteractionAuthorized'](),controller[_0x4b1d16('0x25')]),router['get'](_0x4b1d16('0x30'),auth[_0x4b1d16('0x7')](),controller[_0x4b1d16('0x27')]),router['get']('/:id/messages',auth[_0x4b1d16('0x1f')](),controller[_0x4b1d16('0x21')]),router['get'](_0x4b1d16('0x15'),auth[_0x4b1d16('0x7')](),controller[_0x4b1d16('0x9')]),router[_0x4b1d16('0xe')](_0x4b1d16('0x2f'),auth[_0x4b1d16('0x1f')](),controller[_0x4b1d16('0x1e')]),router['post']('/',auth['isAuthenticated'](),controller[_0x4b1d16('0xc')]),router[_0x4b1d16('0x2e')](_0x4b1d16('0x18'),auth['isAuthenticated'](),controller[_0x4b1d16('0x11')]);const upload=multer({'storage':multer[_0x4b1d16('0x17')]({'destination':function(_0x4625fc,_0x97519c,_0x5b74b4){const _0x58d062=_0x4b1d16;_0x5b74b4(null,path['join'](config[_0x58d062('0x12')],_0x58d062('0x1c')));},'filename':function(_0x2fc01c,_0xf2c610,_0x3e3f32){const _0x32a72b=_0x4b1d16;_0x3e3f32(null,util[_0x32a72b('0x1d')](_0x32a72b('0xa'),Date[_0x32a72b('0x26')](),_0xf2c610[_0x32a72b('0x24')][_0x32a72b('0x13')](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x4b1d16('0x2e')]('/:id/attachment_upload',upload[_0x4b1d16('0x0')](_0x4b1d16('0xf')),controller['attachmentUpload']),router[_0x4b1d16('0x2e')]('/:id/messages',auth[_0x4b1d16('0x7')](),controller[_0x4b1d16('0x6')]),router['post'](_0x4b1d16('0x10'),auth[_0x4b1d16('0x1f')](),interaction['tracked'](_0x4b1d16('0x1'),'chatinteraction:addtags'),controller['addTags']),router[_0x4b1d16('0x3')](_0x4b1d16('0xd'),auth[_0x4b1d16('0x1f')](),interaction[_0x4b1d16('0x5')](_0x4b1d16('0x1'),_0x4b1d16('0x29')),controller['update']),router[_0x4b1d16('0x3')]('/:id/custom_update',controller[_0x4b1d16('0x1a')]),router[_0x4b1d16('0x3')](_0x4b1d16('0x28'),auth['isChatInteractionAuthorized'](),controller[_0x4b1d16('0x16')]),router[_0x4b1d16('0x3')](_0x4b1d16('0x23'),controller[_0x4b1d16('0x2c')]),router['delete']('/:id',auth['isAuthenticated'](),interaction[_0x4b1d16('0x5')]('chat','chatinteraction:destroy'),controller['destroy']),router[_0x4b1d16('0x2b')](_0x4b1d16('0x10'),auth['isAuthenticated'](),controller['removeTags']),module[_0x4b1d16('0x8')]=router; \ No newline at end of file +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 diff --git a/server/api/chatInternalMessage/chatInternalMessage.attributes.js b/server/api/chatInternalMessage/chatInternalMessage.attributes.js index 9046235..7039473 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.attributes.js +++ b/server/api/chatInternalMessage/chatInternalMessage.attributes.js @@ -1 +1 @@ -const a72_0x4688=['exports','TEXT','INTEGER'];(function(_0x3a8a4a,_0x46889e){const _0x528d2a=function(_0x533d30){while(--_0x533d30){_0x3a8a4a['push'](_0x3a8a4a['shift']());}};_0x528d2a(++_0x46889e);}(a72_0x4688,0xaf));const a72_0x528d=function(_0x3a8a4a,_0x46889e){_0x3a8a4a=_0x3a8a4a-0x0;let _0x528d2a=a72_0x4688[_0x3a8a4a];return _0x528d2a;};const _0x5b79d0=a72_0x528d;'use strict';const Sequelize=require('sequelize');module[_0x5b79d0('0x2')]={'body':{'type':Sequelize[_0x5b79d0('0x0')]('medium'),'allowNull':![]},'read':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'ChatInternalMessageId':{'type':Sequelize[_0x5b79d0('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/chatInternalMessage/chatInternalMessage.controller.js b/server/api/chatInternalMessage/chatInternalMessage.controller.js index 867317a..8b08a7e 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.controller.js +++ b/server/api/chatInternalMessage/chatInternalMessage.controller.js @@ -1 +1 @@ -const a73_0x82b7=['read','internal','offset','then','send','where','lastLoginAt','../../rediscache','get','../../config/logger','../../mysqldb','limit','Agents','count','map','key','pick','length','describe','update','lastMessageAt','body','UserProfileSection','destroy','order','createdAt','set','userpic','intersection','allowmessenger','find','Content-Range','like','fieldName','lodash','api','create','name','findOne','options','sort','sendStatus','findAll','YYYY-MM-DD\x20HH:mm:ss','include','push','user','ChatInternalMessage','fields','-createdAt','resourceId','json','getUsers','includeAll','model','-online','status','filters','Unable\x20to\x20retrieve\x20the\x20current\x20user','messages','UserProfileResource','role','VIRTUAL','keys','agent','attributes','rows','FromId','index','sequelize','query','ToId','merge','../../components/parsers/qs','type','catch','moment','userProfileId','VoiceQueue','show','filter','end','stack','params','lastMessage'];(function(_0x364b2f,_0x82b744){const _0x372631=function(_0x1c8182){while(--_0x1c8182){_0x364b2f['push'](_0x364b2f['shift']());}};_0x372631(++_0x82b744);}(a73_0x82b7,0x11f));const a73_0x3726=function(_0x364b2f,_0x82b744){_0x364b2f=_0x364b2f-0x0;let _0x372631=a73_0x82b7[_0x364b2f];return _0x372631;};const _0x515dd5=a73_0x3726;'use strict';const moment=require(_0x515dd5('0x2c')),_=require(_0x515dd5('0x2')),qs=require(_0x515dd5('0x29')),logger=require(_0x515dd5('0x3e'))(_0x515dd5('0x3')),{getSocket}=require(_0x515dd5('0x3c')),db=require(_0x515dd5('0x3f'))['db'],{Op}=require(_0x515dd5('0x25')),socket=getSocket();require('./chatInternalMessage.socket')['register'](socket);function respondWithResult(_0x1c8182,_0x21f260){return _0x21f260=_0x21f260||0xc8,function(_0x4b16fe){const _0x146692=a73_0x3726;if(_0x4b16fe)return _0x1c8182[_0x146692('0x18')](_0x21f260)['json'](_0x4b16fe);};}function respondWithFilteredResult(_0x2412b7,_0x26d17f){return function(_0x2caf9f){const _0x3aa504=a73_0x3726;if(_0x2caf9f){const _0x1bca46=_0x2caf9f[_0x3aa504('0x42')],_0x50a041=_0x26d17f[_0x3aa504('0x37')];let _0x2a0aa5=_0x26d17f[_0x3aa504('0x37')]+_0x26d17f[_0x3aa504('0x40')],_0x35e916;return _0x2a0aa5>=_0x1bca46?(_0x2a0aa5=_0x1bca46,_0x35e916=0xc8):_0x35e916=0xce,_0x2412b7[_0x3aa504('0x18')](_0x35e916),_0x2412b7[_0x3aa504('0x4f')](_0x3aa504('0x54'),_0x50a041+'-'+_0x2a0aa5+'/'+_0x1bca46)[_0x3aa504('0x13')](_0x2caf9f);}return null;};}function saveUpdates(_0x170c20){return function(_0x1cd7e9){const _0x1c0057=a73_0x3726;if(_0x1cd7e9)return _0x1cd7e9[_0x1c0057('0x48')](_0x170c20)['then'](function(_0x4d140f){return _0x4d140f;});return null;};}function removeEntity(_0x3e9008){return function(_0x4fb28e){const _0x558a67=a73_0x3726;if(_0x4fb28e)return _0x4fb28e[_0x558a67('0x4c')]()[_0x558a67('0x38')](function(){const _0x3e5c5e=_0x558a67;_0x3e9008[_0x3e5c5e('0x18')](0xcc)[_0x3e5c5e('0x31')]();});};}function handleEntityNotFound(_0x3e2b26){return function(_0x5773b9){const _0x213adc=a73_0x3726;return!_0x5773b9&&_0x3e2b26[_0x213adc('0x9')](0x194),_0x5773b9;};}function handleError(_0x2c82e5,_0x532b4b){return _0x532b4b=_0x532b4b||0x1f4,function(_0x5c097e){const _0x328e66=a73_0x3726;logger['error'](_0x5c097e[_0x328e66('0x32')]),_0x5c097e[_0x328e66('0x5')]&&delete _0x5c097e['name'],_0x2c82e5['status'](_0x532b4b)[_0x328e66('0x39')](_0x5c097e);};}exports[_0x515dd5('0x24')]=function(_0x353baf,_0x78a71f){const _0x26b95b=_0x515dd5;let _0x514ada={};const _0x969093={},_0x3b144e={'count':0x0,'rows':[]},_0x4ea8b2=_[_0x26b95b('0x43')](db[_0x26b95b('0xf')]['rawAttributes'],function(_0x1a2f4a){const _0x2242fb=_0x26b95b;return{'name':_0x1a2f4a[_0x2242fb('0x1')],'type':_0x1a2f4a[_0x2242fb('0x2a')][_0x2242fb('0x44')]};});_0x969093[_0x26b95b('0x16')]=_[_0x26b95b('0x43')](_0x4ea8b2,_0x26b95b('0x5')),_0x969093[_0x26b95b('0x26')]=_[_0x26b95b('0x1f')](_0x353baf[_0x26b95b('0x26')]),_0x969093[_0x26b95b('0x19')]=_[_0x26b95b('0x51')](_0x969093['model'],_0x969093[_0x26b95b('0x26')]),_0x514ada[_0x26b95b('0x21')]=_[_0x26b95b('0x51')](_0x969093[_0x26b95b('0x16')],qs[_0x26b95b('0x10')](_0x353baf['query'][_0x26b95b('0x10')])),_0x514ada['attributes']=_0x514ada[_0x26b95b('0x21')][_0x26b95b('0x46')]?_0x514ada[_0x26b95b('0x21')]:_0x969093[_0x26b95b('0x16')];typeof _0x353baf['query']['nolimit']==='undefined'&&(_0x514ada[_0x26b95b('0x40')]=qs[_0x26b95b('0x40')](_0x353baf[_0x26b95b('0x26')][_0x26b95b('0x40')]),_0x514ada['offset']=qs['offset'](_0x353baf['query']['offset']));_0x514ada[_0x26b95b('0x4d')]=qs[_0x26b95b('0x8')](_0x353baf[_0x26b95b('0x26')][_0x26b95b('0x8')]),_0x514ada[_0x26b95b('0x3a')]=qs['filters'](_[_0x26b95b('0x45')](_0x353baf[_0x26b95b('0x26')],_0x969093['filters']),_0x4ea8b2);_0x353baf[_0x26b95b('0x26')]['filter']&&(_0x514ada['where']=_[_0x26b95b('0x28')](_0x514ada['where'],{[Op['or']]:_['map'](_0x4ea8b2,function(_0x34c466){const _0x350e4b=_0x26b95b;if(_0x34c466['type']!==_0x350e4b('0x1e')){const _0x2371bd={};return _0x2371bd[_0x34c466[_0x350e4b('0x5')]]={[Op[_0x350e4b('0x0')]]:'%'+_0x353baf[_0x350e4b('0x26')][_0x350e4b('0x30')]+'%'},_0x2371bd;}})}));_0x514ada=_['merge']({},_0x514ada,_0x353baf[_0x26b95b('0x7')]);const _0x2a579f={'where':_0x514ada[_0x26b95b('0x3a')]};return db[_0x26b95b('0xf')][_0x26b95b('0x42')](_0x2a579f)['then'](function(_0x1079bc){const _0x3df6b5=_0x26b95b;return _0x3b144e['count']=_0x1079bc,_0x353baf['query']['includeAll']&&(_0x514ada['include']=[{'all':!![]}]),db[_0x3df6b5('0xf')][_0x3df6b5('0xa')](_0x514ada);})[_0x26b95b('0x38')](function(_0x4d0096){const _0x3e8d8a=_0x26b95b;return _0x3b144e[_0x3e8d8a('0x22')]=_0x4d0096,_0x3b144e;})['then'](respondWithFilteredResult(_0x78a71f,_0x514ada))[_0x26b95b('0x2b')](handleError(_0x78a71f,null));},exports[_0x515dd5('0x2f')]=function(_0x622586,_0x470e54){const _0x3c77d7=_0x515dd5;let _0x4305cd={'raw':!![],'where':{'id':_0x622586['params']['id']}};const _0x2c0d56={};return _0x2c0d56['model']=_['keys'](db[_0x3c77d7('0xf')]['rawAttributes']),_0x2c0d56[_0x3c77d7('0x26')]=_[_0x3c77d7('0x1f')](_0x622586['query']),_0x2c0d56[_0x3c77d7('0x19')]=_['intersection'](_0x2c0d56[_0x3c77d7('0x16')],_0x2c0d56[_0x3c77d7('0x26')]),_0x4305cd[_0x3c77d7('0x21')]=_['intersection'](_0x2c0d56['model'],qs[_0x3c77d7('0x10')](_0x622586[_0x3c77d7('0x26')][_0x3c77d7('0x10')])),_0x4305cd[_0x3c77d7('0x21')]=_0x4305cd[_0x3c77d7('0x21')][_0x3c77d7('0x46')]?_0x4305cd[_0x3c77d7('0x21')]:_0x2c0d56['model'],_0x622586[_0x3c77d7('0x26')][_0x3c77d7('0x15')]&&(_0x4305cd[_0x3c77d7('0xc')]=[{'all':!![]}]),_0x4305cd=_[_0x3c77d7('0x28')]({},_0x4305cd,_0x622586['options']),db[_0x3c77d7('0xf')][_0x3c77d7('0x6')](_0x4305cd)['then'](handleEntityNotFound(_0x470e54,null))[_0x3c77d7('0x38')](respondWithResult(_0x470e54,null))['catch'](handleError(_0x470e54,null));},exports[_0x515dd5('0x4')]=function(_0x6bd655,_0x45abd8){const _0xae96a0=_0x515dd5;return db['ChatInternalMessage'][_0xae96a0('0x4')](_0x6bd655[_0xae96a0('0x4a')],{})[_0xae96a0('0x38')](respondWithResult(_0x45abd8,0xc9))[_0xae96a0('0x2b')](handleError(_0x45abd8,null));},exports[_0x515dd5('0x48')]=function(_0x5b1f06,_0x4179e0){const _0x253a90=_0x515dd5;return _0x5b1f06[_0x253a90('0x4a')]['id']&&delete _0x5b1f06[_0x253a90('0x4a')]['id'],db[_0x253a90('0xf')][_0x253a90('0x6')]({'where':{'id':_0x5b1f06[_0x253a90('0x33')]['id']}})[_0x253a90('0x38')](handleEntityNotFound(_0x4179e0,null))['then'](saveUpdates(_0x5b1f06[_0x253a90('0x4a')],null))[_0x253a90('0x38')](respondWithResult(_0x4179e0,null))['catch'](handleError(_0x4179e0,null));},exports[_0x515dd5('0x4c')]=function(_0x5c2ab5,_0x178348){const _0xd9c961=_0x515dd5;return db['ChatInternalMessage']['findOne']({'where':{'id':_0x5c2ab5[_0xd9c961('0x33')]['id']}})[_0xd9c961('0x38')](handleEntityNotFound(_0x178348,null))['then'](removeEntity(_0x178348,null))[_0xd9c961('0x2b')](handleError(_0x178348,null));},exports[_0x515dd5('0x47')]=function(_0x5ccb7b,_0x37be85){const _0x3bb1dd=_0x515dd5;return db['ChatInternalMessage'][_0x3bb1dd('0x47')]()[_0x3bb1dd('0x38')](respondWithResult(_0x37be85,null))[_0x3bb1dd('0x2b')](handleError(_0x37be85,null));};function wrapUser(_0x5e332f){return function(_0x54360f){const _0x1b9723=a73_0x3726,_0x3c5333=_0x5e332f[_0x1b9723('0x3d')]({'plain':!![]});return _0x3c5333[_0x1b9723('0x1b')]=[],_0x54360f?(_0x3c5333[_0x1b9723('0x49')]=_0x54360f[_0x1b9723('0x4e')],_0x3c5333[_0x1b9723('0x34')]=_0x54360f):(_0x3c5333[_0x1b9723('0x49')]=moment(0x0)['format'](_0x1b9723('0xb')),_0x3c5333[_0x1b9723('0x34')]={}),_0x3c5333;};}exports[_0x515dd5('0x14')]=function(_0x9f2abd,_0x3fb908){const _0x4d0fec=_0x515dd5;let _0x5d50a8=[];return db['User'][_0x4d0fec('0xa')]({'where':{'role':[_0x4d0fec('0x20'),'admin',_0x4d0fec('0xe')]},'attributes':['id','fullname',_0x4d0fec('0x5'),_0x4d0fec('0x1d'),_0x4d0fec('0x50'),_0x4d0fec('0x36'),'online',_0x4d0fec('0x3b'),_0x4d0fec('0x52'),'showWebBar'],'order':qs[_0x4d0fec('0x8')](_0x4d0fec('0x17')),'include':[{'model':db[_0x4d0fec('0x2e')],'as':'VoiceQueues','attributes':['id',_0x4d0fec('0x5'),'type'],'through':{'attributes':[]}}]})[_0x4d0fec('0x38')](function(_0x9d6606){const _0x389d45=_0x4d0fec;if(_0x9d6606){const _0x19e712=_0x9f2abd[_0x389d45('0xe')][_0x389d45('0x3d')]({'plain':!![]});if(!_0x19e712)throw new Error(_0x389d45('0x1a'));return _0x19e712[_0x389d45('0x1d')]===_0x389d45('0xe')?db[_0x389d45('0x4b')]['findOne']({'where':{'name':_0x389d45('0x41'),'userProfileId':_0x19e712[_0x389d45('0x2d')]},'raw':!![]})[_0x389d45('0x38')](function(_0x3bdc2e){const _0x5a94ce=_0x389d45;if(_0x3bdc2e)return _0x3bdc2e['autoAssociation']===0x0?db[_0x5a94ce('0x1c')][_0x5a94ce('0xa')]({'where':{'sectionId':_0x3bdc2e['id']},'raw':!![]})[_0x5a94ce('0x38')](function(_0x42dc8c){const _0x377072=_0x5a94ce;let _0x548fcf=[];if(_['isEmpty'](_0x42dc8c))return _0x548fcf=_[_0x377072('0x30')](_0x9d6606,function(_0x554feb){const _0x5615aa=_0x377072;if(_0x554feb[_0x5615aa('0x1d')]!==_0x5615aa('0x20'))return _0x554feb;}),_0x548fcf;else{for(let _0x58e472=0x0;_0x58e472<_0x9d6606['length'];_0x58e472++){const _0x38bb5a=_0x9d6606[_0x58e472];if(_0x38bb5a[_0x377072('0x1d')]===_0x377072('0x20')){const _0x5b5f79=_[_0x377072('0x53')](_0x42dc8c,function(_0x19c6ee){const _0x32633f=_0x377072;return _0x19c6ee[_0x32633f('0x12')]===_0x38bb5a['id'];});if(_0x5b5f79)_0x548fcf[_0x377072('0xd')](_0x38bb5a);}else _0x548fcf[_0x377072('0xd')](_0x38bb5a);}return _0x548fcf;}}):_0x9d6606;else{const _0x2007f6=_[_0x5a94ce('0x30')](_0x9d6606,function(_0x3aa9bf){const _0x4b55e1=_0x5a94ce;if(_0x3aa9bf[_0x4b55e1('0x1d')]!==_0x4b55e1('0x20'))return _0x3aa9bf;});return _0x2007f6;}}):_0x9d6606;}})[_0x4d0fec('0x38')](function(_0x4f666b){const _0x9e2969=_0x4d0fec,_0x3c377f=[];if(_0x4f666b){_0x5d50a8=_0x4f666b;for(let _0x4f9fa0=0x0;_0x4f9fa0<_0x4f666b[_0x9e2969('0x46')];_0x4f9fa0+=0x1){_0x5d50a8[_0x4f9fa0]['messages']=[],_0x3c377f[_0x9e2969('0xd')](db[_0x9e2969('0xf')][_0x9e2969('0x6')]({'where':{'FromId':[_0x9f2abd[_0x9e2969('0xe')]['id'],_0x4f666b[_0x4f9fa0]['id']],'ToId':[_0x9f2abd[_0x9e2969('0xe')]['id'],_0x4f666b[_0x4f9fa0]['id']],'ChatGroupId':null},'attributes':['id','createdAt',_0x9e2969('0x23'),_0x9e2969('0x27'),_0x9e2969('0x35'),_0x9e2969('0x4a')],'order':qs[_0x9e2969('0x8')](_0x9e2969('0x11')),'limit':0x1,'offset':0x0,'raw':!![]})['then'](wrapUser(_0x4f666b[_0x4f9fa0])));}return Promise['all'](_0x3c377f);}return[];})['then'](function(_0x3aa349){const _0x36bc6d=_0x4d0fec;return{'rows':_0x3aa349,'count':_0x3aa349[_0x36bc6d('0x46')]};})[_0x4d0fec('0x38')](respondWithResult(_0x3fb908,null))[_0x4d0fec('0x2b')](handleError(_0x3fb908,null));}; \ No newline at end of file +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 diff --git a/server/api/chatInternalMessage/chatInternalMessage.events.js b/server/api/chatInternalMessage/chatInternalMessage.events.js index b9ec7f2..6f02490 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.events.js +++ b/server/api/chatInternalMessage/chatInternalMessage.events.js @@ -1 +1 @@ -const a74_0x4c90=['remove','exports','undefined','addHook','emit','../../mysqldb','events'];(function(_0x41b062,_0x4c909a){const _0xffd9b8=function(_0x1a8af3){while(--_0x1a8af3){_0x41b062['push'](_0x41b062['shift']());}};_0xffd9b8(++_0x4c909a);}(a74_0x4c90,0x17a));const a74_0xffd9=function(_0x41b062,_0x4c909a){_0x41b062=_0x41b062-0x0;let _0xffd9b8=a74_0x4c90[_0x41b062];return _0xffd9b8;};const _0x39c1cc=a74_0xffd9;'use strict';const EventEmitter=require(_0x39c1cc('0x6')),ChatInternalMessage=require(_0x39c1cc('0x5'))['db']['ChatInternalMessage'],ChatInternalMessageEvents=new EventEmitter();ChatInternalMessageEvents['setMaxListeners'](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':_0x39c1cc('0x0')};function emitEvent(_0x1a8af3){return function(_0x58645d){const _0xa3e821=a74_0xffd9;ChatInternalMessageEvents[_0xa3e821('0x4')](_0x1a8af3+':'+_0x58645d['id'],_0x58645d),ChatInternalMessageEvents['emit'](_0x1a8af3,_0x58645d);};}for(const e in events){if(typeof events[e]!==_0x39c1cc('0x2')){const event=events[e];ChatInternalMessage[_0x39c1cc('0x3')](e,emitEvent(event));}}module[_0x39c1cc('0x1')]=ChatInternalMessageEvents; \ No newline at end of file +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 diff --git a/server/api/chatInternalMessage/chatInternalMessage.model.js b/server/api/chatInternalMessage/chatInternalMessage.model.js index 0f81cfc..7e757da 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.model.js +++ b/server/api/chatInternalMessage/chatInternalMessage.model.js @@ -1 +1 @@ -const a75_0x3c69=['chat_internal_messages','define','utf8mb4'];(function(_0x499b86,_0x3c696e){const _0x51e863=function(_0x940605){while(--_0x940605){_0x499b86['push'](_0x499b86['shift']());}};_0x51e863(++_0x3c696e);}(a75_0x3c69,0xcf));const a75_0x51e8=function(_0x499b86,_0x3c696e){_0x499b86=_0x499b86-0x0;let _0x51e863=a75_0x3c69[_0x499b86];return _0x51e863;};'use strict';const attributes=require('./chatInternalMessage.attributes');module['exports']=function(_0x940605){const _0x46a8d5=a75_0x51e8,_0x256f0a=_0x940605[_0x46a8d5('0x1')]('ChatInternalMessage',attributes,{'tableName':_0x46a8d5('0x0'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x46a8d5('0x2'),'collate':'utf8mb4_unicode_ci'});return _0x256f0a;}; \ No newline at end of file +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 diff --git a/server/api/chatInternalMessage/chatInternalMessage.rpc.js b/server/api/chatInternalMessage/chatInternalMessage.rpc.js index 14e0c22..f2884b4 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.rpc.js +++ b/server/api/chatInternalMessage/chatInternalMessage.rpc.js @@ -1 +1 @@ -const a76_0x2932=['../../rediscache','./chatInternalMessage.socket'];(function(_0x3d6d0,_0x29329d){const _0x22468e=function(_0x185a1e){while(--_0x185a1e){_0x3d6d0['push'](_0x3d6d0['shift']());}};_0x22468e(++_0x29329d);}(a76_0x2932,0xaf));const a76_0x2246=function(_0x3d6d0,_0x29329d){_0x3d6d0=_0x3d6d0-0x0;let _0x22468e=a76_0x2932[_0x3d6d0];return _0x22468e;};const _0x5e97b7=a76_0x2246;'use strict';const {getSocket}=require(_0x5e97b7('0x1')),socket=getSocket();require(_0x5e97b7('0x0'))['register'](socket); \ No newline at end of file +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 diff --git a/server/api/chatInternalMessage/chatInternalMessage.socket.js b/server/api/chatInternalMessage/chatInternalMessage.socket.js index 7ab877a..62a1fc1 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.socket.js +++ b/server/api/chatInternalMessage/chatInternalMessage.socket.js @@ -1 +1 @@ -const a77_0x5a1b=['./chatInternalMessage.events','register','update','remove','length','emit','save','chatInternalMessage:'];(function(_0x4edc35,_0x5a1be0){const _0x570942=function(_0x306d9f){while(--_0x306d9f){_0x4edc35['push'](_0x4edc35['shift']());}};_0x570942(++_0x5a1be0);}(a77_0x5a1b,0x18a));const a77_0x5709=function(_0x4edc35,_0x5a1be0){_0x4edc35=_0x4edc35-0x0;let _0x570942=a77_0x5a1b[_0x4edc35];return _0x570942;};const _0x54f4a7=a77_0x5709;'use strict';const ChatInternalMessageEvents=require(_0x54f4a7('0x6')),events=[_0x54f4a7('0x4'),_0x54f4a7('0x1'),_0x54f4a7('0x0')];function createListener(_0x306d9f,_0x142c54){return function(_0x4ee739){const _0x518a5f=a77_0x5709;_0x142c54[_0x518a5f('0x3')](_0x306d9f,_0x4ee739);};}exports[_0x54f4a7('0x7')]=function(_0x1cd96d){const _0x315226=_0x54f4a7;for(let _0x113123=0x0,_0x5bd79f=events[_0x315226('0x2')];_0x113123<_0x5bd79f;_0x113123++){const _0x3197f6=events[_0x113123],_0x5c4563=createListener(_0x315226('0x5')+_0x3197f6,_0x1cd96d);ChatInternalMessageEvents['on'](_0x3197f6,_0x5c4563);}}; \ No newline at end of file +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 diff --git a/server/api/chatInternalMessage/index.js b/server/api/chatInternalMessage/index.js index 3ef804b..4cccd5d 100644 --- a/server/api/chatInternalMessage/index.js +++ b/server/api/chatInternalMessage/index.js @@ -1 +1 @@ -const a78_0x3f47=['express','./chatInternalMessage.controller','getUsers','show','/describe','describe','create','isAuthenticated','update','put','get','delete','Router','exports','/users','/:id','destroy'];(function(_0x334f1f,_0x3f4708){const _0x37ade5=function(_0x32f186){while(--_0x32f186){_0x334f1f['push'](_0x334f1f['shift']());}};_0x37ade5(++_0x3f4708);}(a78_0x3f47,0x139));const a78_0x37ad=function(_0x334f1f,_0x3f4708){_0x334f1f=_0x334f1f-0x0;let _0x37ade5=a78_0x3f47[_0x334f1f];return _0x37ade5;};const _0x5a7133=a78_0x37ad;'use strict';const express=require(_0x5a7133('0xa')),router=express[_0x5a7133('0x5')](),auth=require('../../components/auth/service'),controller=require(_0x5a7133('0xb'));router[_0x5a7133('0x3')]('/',auth[_0x5a7133('0x0')](),controller['index']),router[_0x5a7133('0x3')](_0x5a7133('0xe'),auth[_0x5a7133('0x0')](),controller[_0x5a7133('0xf')]),router['get'](_0x5a7133('0x7'),auth[_0x5a7133('0x0')](),controller[_0x5a7133('0xc')]),router[_0x5a7133('0x3')](_0x5a7133('0x8'),auth[_0x5a7133('0x0')](),controller[_0x5a7133('0xd')]),router['post']('/',auth[_0x5a7133('0x0')](),controller[_0x5a7133('0x10')]),router[_0x5a7133('0x2')]('/:id',controller[_0x5a7133('0x1')]),router[_0x5a7133('0x4')](_0x5a7133('0x8'),auth[_0x5a7133('0x0')](),controller[_0x5a7133('0x9')]),module[_0x5a7133('0x6')]=router; \ No newline at end of file +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 diff --git a/server/api/chatMessage/chatMessage.attributes.js b/server/api/chatMessage/chatMessage.attributes.js index fa9617a..2f0497b 100644 --- a/server/api/chatMessage/chatMessage.attributes.js +++ b/server/api/chatMessage/chatMessage.attributes.js @@ -1 +1 @@ -const a79_0x4dae=['BOOLEAN','TEXT','DATE','sequelize','ENUM'];(function(_0x499417,_0x4daef3){const _0x230fa1=function(_0x2a02c9){while(--_0x2a02c9){_0x499417['push'](_0x499417['shift']());}};_0x230fa1(++_0x4daef3);}(a79_0x4dae,0x137));const a79_0x230f=function(_0x499417,_0x4daef3){_0x499417=_0x499417-0x0;let _0x230fa1=a79_0x4dae[_0x499417];return _0x230fa1;};const _0xfbed22=a79_0x230f;'use strict';const Sequelize=require(_0xfbed22('0x2'));module['exports']={'body':{'type':Sequelize[_0xfbed22('0x0')]('medium'),'allowNull':![]},'read':{'type':Sequelize[_0xfbed22('0x4')],'defaultValue':![]},'secret':{'type':Sequelize[_0xfbed22('0x4')],'defaultValue':![]},'direction':{'type':Sequelize[_0xfbed22('0x3')]('in','out'),'defaultValue':'out','allowNull':![]},'readAt':{'type':Sequelize[_0xfbed22('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/chatMessage/chatMessage.controller.js b/server/api/chatMessage/chatMessage.controller.js index ac3a8bf..54a986c 100644 --- a/server/api/chatMessage/chatMessage.controller.js +++ b/server/api/chatMessage/chatMessage.controller.js @@ -1 +1 @@ -const a80_0x3138=['channel','formData','sendStatus','ChatInteraction','chat-interactions','ChatMessage,\x20%s,\x20%s,\x20%s','null','../../rediscache','like','filters','undefined','role','read','name','reject','ChatMessage,\x20%s,\x20%s','ChatMessage','code','parse','user','show','stack','count','body','EventManager','catch','length','filter','isNil','../../components/parsers/qs','info','../../config/logger','get','include','type','./chatMessage.socket','format','YYYY-MM-DD\x20HH:mm:ss','error','status','interaction','ChatInteractionId','api','query','includeAll','merge','where','readAt','fields','[CHATMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','options','rows','params','accept','../../mysqldb','sort','sequelize','chat','result','jayson/promise','stringify','util','findAll','agent','fieldName','event','rawAttributes','destroy','rejectmessage','then','acceptmessage','json','interface','AcceptMessage','UserId','read1stAt','findOne','model','keys','send','index','message','request\x20sent','moment','lodash','SIP/%s','http','order','update','create','debug','describe','client','acceptMessage','end','map','attributes','offset','intersection'];(function(_0x105a01,_0x31384c){const _0x1b5130=function(_0x3b6488){while(--_0x3b6488){_0x105a01['push'](_0x105a01['shift']());}};_0x1b5130(++_0x31384c);}(a80_0x3138,0x14f));const a80_0x1b51=function(_0x105a01,_0x31384c){_0x105a01=_0x105a01-0x0;let _0x1b5130=a80_0x3138[_0x105a01];return _0x1b5130;};const _0x4ba0a2=a80_0x1b51;'use strict';const moment=require(_0x4ba0a2('0x2d')),util=require(_0x4ba0a2('0x17')),_=require(_0x4ba0a2('0x2e')),qs=require(_0x4ba0a2('0x5a')),logger=require(_0x4ba0a2('0x5c'))(_0x4ba0a2('0x4')),{getSocket}=require(_0x4ba0a2('0x44')),db=require(_0x4ba0a2('0x10'))['db'],{Op}=require(_0x4ba0a2('0x12')),interaction_log=require(_0x4ba0a2('0x5c'))(_0x4ba0a2('0x41')),socket=getSocket();require(_0x4ba0a2('0x60'))['register'](socket);const jayson=require(_0x4ba0a2('0x15')),client=jayson['client'][_0x4ba0a2('0x30')]({'port':0x232c}),client9002=jayson[_0x4ba0a2('0x36')][_0x4ba0a2('0x30')]({'port':0x232a});function respondWithRpcPromise(_0x3b6488,_0x3c984f,_0x236b9e,_0x120cac){return new Promise(function(_0x1e457a,_0x27b600){const _0x4d1149=a80_0x1b51,_0x245e81=_0x120cac||client;return _0x245e81['request'](_0x3b6488,_0x236b9e)[_0x4d1149('0x1f')](function(_0x207e4b){const _0x38ecc=_0x4d1149;logger[_0x38ecc('0x5b')](_0x38ecc('0x4c'),_0x3c984f,_0x38ecc('0x2c')),logger[_0x38ecc('0x34')](_0x38ecc('0x42'),_0x3c984f,_0x38ecc('0x2c'),JSON[_0x38ecc('0x16')](_0x207e4b));if(_0x207e4b['error']){if(_0x207e4b['error'][_0x38ecc('0x4e')]===0x1f4)return logger[_0x38ecc('0x0')](_0x38ecc('0x4c'),_0x3c984f,_0x207e4b['error']['message']),_0x27b600(_0x207e4b[_0x38ecc('0x0')]['message']);return logger[_0x38ecc('0x0')]('ChatMessage,\x20%s,\x20%s',_0x3c984f,_0x207e4b[_0x38ecc('0x0')]['message']),_0x1e457a(_0x207e4b[_0x38ecc('0x0')][_0x38ecc('0x2b')]);}else logger[_0x38ecc('0x5b')]('ChatMessage,\x20%s,\x20%s',_0x3c984f,_0x38ecc('0x2c')),_0x1e457a(_0x207e4b[_0x38ecc('0x14')][_0x38ecc('0x2b')]);})[_0x4d1149('0x56')](function(_0x2a6b9e){const _0x539e0e=_0x4d1149;logger[_0x539e0e('0x0')](_0x539e0e('0x4c'),_0x3c984f,_0x2a6b9e),_0x27b600(_0x2a6b9e);});});}function respondWithResult(_0xa41d83,_0x36d38d){return _0x36d38d=_0x36d38d||0xc8,function(_0x30b5d6){const _0x360109=a80_0x1b51;if(_0x30b5d6)return _0xa41d83['status'](_0x36d38d)[_0x360109('0x21')](_0x30b5d6);};}function respondWithFilteredResult(_0x4c9385,_0x45e6bd){return function(_0x14b3a3){const _0x3fcb32=a80_0x1b51;if(_0x14b3a3){const _0x3899a3=_0x14b3a3[_0x3fcb32('0x53')],_0x9d0f4f=_0x45e6bd[_0x3fcb32('0x3b')];let _0x237a1b=_0x45e6bd[_0x3fcb32('0x3b')]+_0x45e6bd['limit'],_0x4d933b;return _0x237a1b>=_0x3899a3?(_0x237a1b=_0x3899a3,_0x4d933b=0xc8):_0x4d933b=0xce,_0x4c9385['status'](_0x4d933b),_0x4c9385['set']('Content-Range',_0x9d0f4f+'-'+_0x237a1b+'/'+_0x3899a3)[_0x3fcb32('0x21')](_0x14b3a3);}return null;};}function saveUpdates(_0x2bc7ae){return function(_0x5c2f96){const _0x400815=a80_0x1b51;if(_0x5c2f96)return _0x5c2f96['update'](_0x2bc7ae)[_0x400815('0x1f')](function(_0xfa6528){return _0xfa6528;});return null;};}function removeEntity(_0x12834f){return function(_0x559965){const _0x2105c2=a80_0x1b51;if(_0x559965)return _0x559965[_0x2105c2('0x1d')]()[_0x2105c2('0x1f')](function(){const _0x362683=_0x2105c2;_0x12834f[_0x362683('0x1')](0xcc)[_0x362683('0x38')]();});};}function handleEntityNotFound(_0x1910e3){return function(_0x59fb25){const _0x3ca441=a80_0x1b51;return!_0x59fb25&&_0x1910e3[_0x3ca441('0x3f')](0x194),_0x59fb25;};}function handleError(_0x5e8972,_0x5a6d0d){return _0x5a6d0d=_0x5a6d0d||0x1f4,function(_0x138658){const _0x3af7d3=a80_0x1b51;logger['error'](_0x138658[_0x3af7d3('0x52')]),_0x138658[_0x3af7d3('0x4a')]&&delete _0x138658[_0x3af7d3('0x4a')],_0x5e8972[_0x3af7d3('0x1')](_0x5a6d0d)[_0x3af7d3('0x29')](_0x138658);};}exports[_0x4ba0a2('0x2a')]=function(_0x42fa0a,_0xfdf84){const _0x1ecf99=_0x4ba0a2;let _0x4a6675={};const _0x514b98={},_0x2e50ed={'count':0x0,'rows':[]},_0x315102=_[_0x1ecf99('0x39')](db[_0x1ecf99('0x4d')][_0x1ecf99('0x1c')],function(_0x36dc5c){const _0x424f9b=_0x1ecf99;return{'name':_0x36dc5c[_0x424f9b('0x1a')],'type':_0x36dc5c[_0x424f9b('0x5f')]['key']};});_0x514b98[_0x1ecf99('0x27')]=_[_0x1ecf99('0x39')](_0x315102,'name'),_0x514b98[_0x1ecf99('0x5')]=_[_0x1ecf99('0x28')](_0x42fa0a[_0x1ecf99('0x5')]),_0x514b98[_0x1ecf99('0x46')]=_[_0x1ecf99('0x3c')](_0x514b98[_0x1ecf99('0x27')],_0x514b98['query']),_0x4a6675['attributes']=_[_0x1ecf99('0x3c')](_0x514b98['model'],qs[_0x1ecf99('0xa')](_0x42fa0a['query'][_0x1ecf99('0xa')])),_0x4a6675[_0x1ecf99('0x3a')]=_0x4a6675[_0x1ecf99('0x3a')][_0x1ecf99('0x57')]?_0x4a6675[_0x1ecf99('0x3a')]:_0x514b98[_0x1ecf99('0x27')];typeof _0x42fa0a['query']['nolimit']===_0x1ecf99('0x47')&&(_0x4a6675['limit']=qs['limit'](_0x42fa0a[_0x1ecf99('0x5')]['limit']),_0x4a6675[_0x1ecf99('0x3b')]=qs[_0x1ecf99('0x3b')](_0x42fa0a[_0x1ecf99('0x5')][_0x1ecf99('0x3b')]));_0x4a6675[_0x1ecf99('0x31')]=qs[_0x1ecf99('0x11')](_0x42fa0a['query']['sort']),_0x4a6675['where']=qs[_0x1ecf99('0x46')](_['pick'](_0x42fa0a[_0x1ecf99('0x5')],_0x514b98[_0x1ecf99('0x46')]),_0x315102);_0x42fa0a['query'][_0x1ecf99('0x58')]&&(_0x4a6675[_0x1ecf99('0x8')]=_[_0x1ecf99('0x7')](_0x4a6675['where'],{[Op['or']]:_[_0x1ecf99('0x39')](_0x315102,function(_0x425996){const _0x1115b0=_0x1ecf99;if(_0x425996[_0x1115b0('0x5f')]!=='VIRTUAL'){const _0x3fe010={};return _0x3fe010[_0x425996[_0x1115b0('0x4a')]]={[Op[_0x1115b0('0x45')]]:'%'+_0x42fa0a[_0x1115b0('0x5')][_0x1115b0('0x58')]+'%'},_0x3fe010;}})}));_0x4a6675=_[_0x1ecf99('0x7')]({},_0x4a6675,_0x42fa0a[_0x1ecf99('0xc')]);const _0x383ae1={'where':_0x4a6675['where']};return db[_0x1ecf99('0x4d')][_0x1ecf99('0x53')](_0x383ae1)[_0x1ecf99('0x1f')](function(_0x4d1507){const _0x5561a5=_0x1ecf99;return _0x2e50ed[_0x5561a5('0x53')]=_0x4d1507,_0x42fa0a[_0x5561a5('0x5')][_0x5561a5('0x6')]&&(_0x4a6675['include']=[{'all':!![]}]),db[_0x5561a5('0x4d')][_0x5561a5('0x18')](_0x4a6675);})['then'](function(_0x535db1){const _0x539d04=_0x1ecf99;return _0x2e50ed[_0x539d04('0xd')]=_0x535db1,_0x2e50ed;})[_0x1ecf99('0x1f')](respondWithFilteredResult(_0xfdf84,_0x4a6675))[_0x1ecf99('0x56')](handleError(_0xfdf84,null));},exports[_0x4ba0a2('0x51')]=function(_0x193626,_0x26cf3c){const _0x49ed3a=_0x4ba0a2;let _0x41a949={'raw':!![],'where':{'id':_0x193626[_0x49ed3a('0xe')]['id']}};const _0x3237c2={};return _0x3237c2[_0x49ed3a('0x27')]=_[_0x49ed3a('0x28')](db[_0x49ed3a('0x4d')][_0x49ed3a('0x1c')]),_0x3237c2[_0x49ed3a('0x5')]=_[_0x49ed3a('0x28')](_0x193626['query']),_0x3237c2[_0x49ed3a('0x46')]=_[_0x49ed3a('0x3c')](_0x3237c2[_0x49ed3a('0x27')],_0x3237c2[_0x49ed3a('0x5')]),_0x41a949[_0x49ed3a('0x3a')]=_['intersection'](_0x3237c2[_0x49ed3a('0x27')],qs[_0x49ed3a('0xa')](_0x193626['query'][_0x49ed3a('0xa')])),_0x41a949[_0x49ed3a('0x3a')]=_0x41a949['attributes'][_0x49ed3a('0x57')]?_0x41a949['attributes']:_0x3237c2[_0x49ed3a('0x27')],_0x193626[_0x49ed3a('0x5')]['includeAll']&&(_0x41a949[_0x49ed3a('0x5e')]=[{'all':!![]}]),_0x41a949=_['merge']({},_0x41a949,_0x193626[_0x49ed3a('0xc')]),db[_0x49ed3a('0x4d')]['findOne'](_0x41a949)[_0x49ed3a('0x1f')](handleEntityNotFound(_0x26cf3c,null))[_0x49ed3a('0x1f')](respondWithResult(_0x26cf3c,null))[_0x49ed3a('0x56')](handleError(_0x26cf3c,null));},exports[_0x4ba0a2('0x33')]=function(_0xb65bae,_0x2a4fd4){const _0x38a313=_0x4ba0a2;return db[_0x38a313('0x4d')][_0x38a313('0x33')](_0xb65bae[_0x38a313('0x54')],{})[_0x38a313('0x1f')](respondWithResult(_0x2a4fd4,0xc9))['catch'](handleError(_0x2a4fd4,null));},exports[_0x4ba0a2('0x32')]=function(_0x40aa48,_0x5b7fe1){const _0x1baf1e=_0x4ba0a2;return _0x40aa48['body']['id']&&delete _0x40aa48[_0x1baf1e('0x54')]['id'],db['ChatMessage'][_0x1baf1e('0x26')]({'where':{'id':_0x40aa48[_0x1baf1e('0xe')]['id']}})[_0x1baf1e('0x1f')](handleEntityNotFound(_0x5b7fe1,null))['then'](saveUpdates(_0x40aa48[_0x1baf1e('0x54')],null))['then'](respondWithResult(_0x5b7fe1,null))['catch'](handleError(_0x5b7fe1,null));},exports['destroy']=function(_0x501f38,_0x507b84){const _0x1611b7=_0x4ba0a2;return db[_0x1611b7('0x4d')]['findOne']({'where':{'id':_0x501f38[_0x1611b7('0xe')]['id']}})['then'](handleEntityNotFound(_0x507b84,null))[_0x1611b7('0x1f')](removeEntity(_0x507b84,null))['catch'](handleError(_0x507b84,null));},exports[_0x4ba0a2('0x35')]=function(_0x511510,_0x1f57f8){const _0xe765d2=_0x4ba0a2;return db['ChatMessage'][_0xe765d2('0x35')]()['then'](respondWithResult(_0x1f57f8,null))[_0xe765d2('0x56')](handleError(_0x1f57f8,null));},exports['accept']=function(_0x2725d1,_0x1ac94d){const _0x533bf0=_0x4ba0a2,_0x1d05ab={'channel':_0x533bf0('0x13')};return _0x2725d1['body']['id']&&delete _0x2725d1[_0x533bf0('0x54')]['id'],_0x2725d1[_0x533bf0('0x54')][_0x533bf0('0x49')]=!![],_0x2725d1['body'][_0x533bf0('0x9')]=moment()[_0x533bf0('0x61')]('YYYY-MM-DD\x20HH:mm:ss'),_0x2725d1['body'][_0x533bf0('0x24')]=_0x2725d1[_0x533bf0('0x54')][_0x533bf0('0x24')]||_0x2725d1['user']['id'],db[_0x533bf0('0x4d')]['findOne']({'where':{'id':_0x2725d1[_0x533bf0('0xe')]['id'],'UserId':null},'include':[{'model':db['CmContact'],'as':'Contact'}]})['then'](handleEntityNotFound(_0x1ac94d,null))[_0x533bf0('0x1f')](saveUpdates(_0x2725d1[_0x533bf0('0x54')],null))[_0x533bf0('0x1f')](function(_0x392d51){const _0x4a4543=_0x533bf0;if(_0x392d51)return _0x1d05ab[_0x4a4543('0x2b')]=_0x392d51[_0x4a4543('0x5d')]({'plain':!![]}),db[_0x4a4543('0x40')]['findOne']({'where':{'id':_0x392d51[_0x4a4543('0x3')]}});return null;})[_0x533bf0('0x1f')](handleEntityNotFound(_0x1ac94d,null))[_0x533bf0('0x1f')](function(_0x53762b){const _0x97e554=_0x533bf0;if(_0x53762b)return _0x53762b[_0x97e554('0x32')]({'UserId':_0x2725d1[_0x97e554('0x54')][_0x97e554('0x24')],'read1stAt':_[_0x97e554('0x59')](_0x53762b[_0x97e554('0x25')])?moment()['format'](_0x97e554('0x62')):undefined});return null;})['then'](function(_0x46acea){const _0xc4596b=_0x533bf0;if(_0x46acea)return _0x1d05ab['interaction']=_0x46acea[_0xc4596b('0x5d')]({'plain':!![]}),interaction_log[_0xc4596b('0x5b')]('[CHATMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x2725d1[_0xc4596b('0x50')]['id'],_0x2725d1[_0xc4596b('0x50')][_0xc4596b('0x4a')],_0x2725d1[_0xc4596b('0x50')]['role'],_0x1d05ab[_0xc4596b('0x2')]['id'],_0x2725d1[_0xc4596b('0x54')]?JSON[_0xc4596b('0x16')](_0x2725d1['body']):_0xc4596b('0x43')),respondWithRpcPromise(_0xc4596b('0x23'),_0xc4596b('0x37'),_0x1d05ab);return null;})[_0x533bf0('0x1f')](function(_0x4508bb){const _0x74c129=_0x533bf0;if(_0x4508bb){if(_0x2725d1['body']['manual'])return _0x1d05ab['message'][_0x74c129('0x22')]=util['format'](_0x74c129('0x2f'),_0x2725d1[_0x74c129('0x50')][_0x74c129('0x4a')]),_0x1d05ab['message'][_0x74c129('0x3d')]=_0x1d05ab[_0x74c129('0x3d')],_0x1d05ab[_0x74c129('0x2b')][_0x74c129('0x1b')]=_0x74c129('0xf'),respondWithRpcPromise(_0x74c129('0x55'),_0x74c129('0x55'),{'event':_0x74c129('0x20'),'message':_['merge'](_0x1d05ab[_0x74c129('0x2b')],JSON[_0x74c129('0x4f')](_0x1d05ab[_0x74c129('0x2')][_0x74c129('0x3e')]))},client9002)[_0x74c129('0x1f')](function(){return _0x1d05ab;});return _0x1d05ab;}return null;})[_0x533bf0('0x1f')](respondWithResult(_0x1ac94d,null))[_0x533bf0('0x56')](handleError(_0x1ac94d,null));},exports[_0x4ba0a2('0x4b')]=function(_0x27daa4,_0x41cdaf){const _0x1bf9e9=_0x4ba0a2,_0x2fd311={'agent':{},'channel':_0x1bf9e9('0x13')};return _0x27daa4[_0x1bf9e9('0x54')]['id']&&delete _0x27daa4['body']['id'],_0x27daa4[_0x1bf9e9('0x54')][_0x1bf9e9('0x24')]=_0x27daa4[_0x1bf9e9('0x54')][_0x1bf9e9('0x24')]||_0x27daa4[_0x1bf9e9('0x50')]['id'],_0x2fd311[_0x1bf9e9('0x19')]['id']=_0x27daa4[_0x1bf9e9('0x54')][_0x1bf9e9('0x24')],db['ChatMessage'][_0x1bf9e9('0x26')]({'where':{'id':_0x27daa4[_0x1bf9e9('0xe')]['id'],'UserId':null}})[_0x1bf9e9('0x1f')](handleEntityNotFound(_0x41cdaf,null))[_0x1bf9e9('0x1f')](function(_0x2cd096){const _0x438ad1=_0x1bf9e9;if(_0x2cd096)return _0x2fd311[_0x438ad1('0x2b')]=_0x2cd096[_0x438ad1('0x5d')]({'plain':!![]}),db[_0x438ad1('0x40')]['findOne']({'where':{'id':_0x2cd096[_0x438ad1('0x3')]}});return null;})['then'](handleEntityNotFound(_0x41cdaf,null))[_0x1bf9e9('0x1f')](function(_0x4ff7fa){const _0x4219e9=_0x1bf9e9;if(_0x4ff7fa)return _0x2fd311['interaction']=_0x4ff7fa[_0x4219e9('0x5d')]({'plain':!![]}),interaction_log['info'](_0x4219e9('0xb'),_0x27daa4['user']['id'],_0x27daa4[_0x4219e9('0x50')][_0x4219e9('0x4a')],_0x27daa4[_0x4219e9('0x50')][_0x4219e9('0x48')],_0x2fd311[_0x4219e9('0x2')]['id'],_0x27daa4[_0x4219e9('0x54')]?JSON[_0x4219e9('0x16')](_0x27daa4[_0x4219e9('0x54')]):'null'),respondWithRpcPromise('RejectMessage','rejectMessage',_0x2fd311);return null;})['then'](function(_0x37fd00){const _0x27db94=_0x1bf9e9;if(_0x37fd00)return _0x37fd00[_0x27db94('0x2b')][_0x27db94('0x22')]=util[_0x27db94('0x61')](_0x27db94('0x2f'),_0x27daa4['user']['name']),_0x37fd00[_0x27db94('0x2b')][_0x27db94('0x3d')]=_0x2fd311[_0x27db94('0x3d')],_0x37fd00[_0x27db94('0x2b')][_0x27db94('0x1b')]=_0x27db94('0x4b'),respondWithRpcPromise('EventManager',_0x27db94('0x55'),{'event':_0x27db94('0x1e'),'message':_0x37fd00[_0x27db94('0x2b')]},client9002),_0x2fd311;return null;})[_0x1bf9e9('0x1f')](respondWithResult(_0x41cdaf,null))[_0x1bf9e9('0x56')](handleError(_0x41cdaf,null));}; \ No newline at end of file +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 diff --git a/server/api/chatMessage/chatMessage.events.js b/server/api/chatMessage/chatMessage.events.js index 23c3ab9..832e911 100644 --- a/server/api/chatMessage/chatMessage.events.js +++ b/server/api/chatMessage/chatMessage.events.js @@ -1 +1 @@ -const a81_0x3e29=['addHook','setMaxListeners','undefined','exports','events','update'];(function(_0x3d77e7,_0x3e29d0){const _0x3131d4=function(_0x30d2ca){while(--_0x30d2ca){_0x3d77e7['push'](_0x3d77e7['shift']());}};_0x3131d4(++_0x3e29d0);}(a81_0x3e29,0x81));const a81_0x3131=function(_0x3d77e7,_0x3e29d0){_0x3d77e7=_0x3d77e7-0x0;let _0x3131d4=a81_0x3e29[_0x3d77e7];return _0x3131d4;};const _0x1aaa50=a81_0x3131;'use strict';const EventEmitter=require(_0x1aaa50('0x1')),ChatMessage=require('../../mysqldb')['db']['ChatMessage'],ChatMessageEvents=new EventEmitter();ChatMessageEvents[_0x1aaa50('0x4')](0x0);const events={'afterCreate':'save','afterUpdate':_0x1aaa50('0x2'),'afterDestroy':'remove'};function emitEvent(_0x30d2ca){return function(_0x766c37){ChatMessageEvents['emit'](_0x30d2ca+':'+_0x766c37['id'],_0x766c37),ChatMessageEvents['emit'](_0x30d2ca,_0x766c37);};}for(const e in events){if(typeof events[e]!==_0x1aaa50('0x5')){const event=events[e];ChatMessage[_0x1aaa50('0x3')](e,emitEvent(event));}}module[_0x1aaa50('0x0')]=ChatMessageEvents; \ No newline at end of file +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 diff --git a/server/api/chatMessage/chatMessage.model.js b/server/api/chatMessage/chatMessage.model.js index f64753d..3914e3d 100644 --- a/server/api/chatMessage/chatMessage.model.js +++ b/server/api/chatMessage/chatMessage.model.js @@ -1 +1 @@ -const a82_0x22f8=['direction','get','ChatInteraction','FULLTEXT','utf8mb4_unicode_ci','body','define','models','error','fti_chat_messages','secret','utf8mb4','catch','ChatInteractionId','./chatMessage.attributes','then','update','UserId','chat_messages','out','isNil','createdAt','findOne','toLowerCase'];(function(_0x154109,_0x22f8d1){const _0x34344b=function(_0x33ae12){while(--_0x33ae12){_0x154109['push'](_0x154109['shift']());}};_0x34344b(++_0x22f8d1);}(a82_0x22f8,0x162));const a82_0x3434=function(_0x154109,_0x22f8d1){_0x154109=_0x154109-0x0;let _0x34344b=a82_0x22f8[_0x154109];return _0x34344b;};const _0x3d0530=a82_0x3434;'use strict';const _=require('lodash'),attributes=require(_0x3d0530('0x14'));module['exports']=function(_0x33ae12){const _0x48300c=_0x3d0530,_0x588558=_0x33ae12[_0x48300c('0xd')],_0x28b324=_0x33ae12[_0x48300c('0xc')]('ChatMessage',attributes,{'tableName':_0x48300c('0x0'),'paranoid':![],'indexes':[{'name':_0x48300c('0xf'),'fields':[_0x48300c('0xb')],'type':_0x48300c('0x9')}],'timestamps':!![],'hooks':{'afterCreate':function(_0x1bd34b){const _0x14a761=_0x48300c,_0x15e31d=_0x1bd34b[_0x14a761('0x7')]({'plain':!![]});(_0x15e31d['direction'][_0x14a761('0x5')]()==='in'||_0x15e31d[_0x14a761('0x6')][_0x14a761('0x5')]()===_0x14a761('0x1')&&!_0x15e31d[_0x14a761('0x10')]&&!_[_0x14a761('0x2')](_0x15e31d[_0x14a761('0x17')]))&&_0x588558[_0x14a761('0x8')][_0x14a761('0x4')]({'where':{'id':_0x15e31d[_0x14a761('0x13')]}})[_0x14a761('0x15')](function(_0xaa11be){const _0x1cc826=_0x14a761;_0xaa11be&&_0xaa11be[_0x1cc826('0x16')]({'lastMsgAt':_0x15e31d[_0x1cc826('0x3')],'lastMsgDirection':_0x15e31d['direction'][_0x1cc826('0x5')]()});})[_0x14a761('0x12')](function(_0x53c6a3){const _0x4dc766=_0x14a761;console[_0x4dc766('0xe')](_0x53c6a3);});}},'charset':_0x48300c('0x11'),'collate':_0x48300c('0xa')});return _0x28b324;}; \ No newline at end of file +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 diff --git a/server/api/chatMessage/chatMessage.rpc.js b/server/api/chatMessage/chatMessage.rpc.js index bb7a159..ef15cc8 100644 --- a/server/api/chatMessage/chatMessage.rpc.js +++ b/server/api/chatMessage/chatMessage.rpc.js @@ -1 +1 @@ -const a83_0x1cb7=['options','info','rpc','message','register','create','../../config/logger','raw','CreateChatMessage','stringify','./chatMessage.socket','error','../../mysqldb'];(function(_0x2873a8,_0x1cb784){const _0xb340ea=function(_0x1472b2){while(--_0x1472b2){_0x2873a8['push'](_0x2873a8['shift']());}};_0xb340ea(++_0x1cb784);}(a83_0x1cb7,0xf2));const a83_0xb340=function(_0x2873a8,_0x1cb784){_0x2873a8=_0x2873a8-0x0;let _0xb340ea=a83_0x1cb7[_0x2873a8];return _0xb340ea;};const _0xde6484=a83_0xb340;'use strict';const db=require(_0xde6484('0x4'))['db'],logger=require(_0xde6484('0xb'))(_0xde6484('0x7')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0xde6484('0x2'))[_0xde6484('0x9')](socket),exports[_0xde6484('0x0')]=function(_0x1472b2){const _0xde79f2=this;return new Promise(function(_0x1f9567,_0x5ee8f0){const _0x3d11eb=a83_0xb340;return db['ChatMessage'][_0x3d11eb('0xa')](_0x1472b2['body'],{'raw':_0x1472b2[_0x3d11eb('0x5')]?_0x1472b2[_0x3d11eb('0x5')][_0x3d11eb('0xc')]===undefined?!![]:![]:!![]})['then'](function(_0x1b42c1){const _0x3df070=_0x3d11eb;logger[_0x3df070('0x6')](_0x3df070('0x0'),_0x1472b2),logger['debug'](_0x3df070('0x0'),_0x1472b2,JSON[_0x3df070('0x1')](_0x1b42c1)),_0x1f9567(_0x1b42c1);})['catch'](function(_0x2bba19){const _0x383f29=_0x3d11eb;logger[_0x383f29('0x3')](_0x383f29('0x0'),_0x2bba19[_0x383f29('0x8')],_0x1472b2),_0x5ee8f0(_0xde79f2[_0x383f29('0x3')](0x1f4,_0x2bba19[_0x383f29('0x8')]));});});}; \ No newline at end of file +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 diff --git a/server/api/chatMessage/chatMessage.socket.js b/server/api/chatMessage/chatMessage.socket.js index abab5e8..95691f6 100644 --- a/server/api/chatMessage/chatMessage.socket.js +++ b/server/api/chatMessage/chatMessage.socket.js @@ -1 +1 @@ -const a84_0x25af=['update','register','save','emit','remove','./chatMessage.events','chatMessage:'];(function(_0x239f6c,_0x25af12){const _0x3a0b5a=function(_0x332a6e){while(--_0x332a6e){_0x239f6c['push'](_0x239f6c['shift']());}};_0x3a0b5a(++_0x25af12);}(a84_0x25af,0x16d));const a84_0x3a0b=function(_0x239f6c,_0x25af12){_0x239f6c=_0x239f6c-0x0;let _0x3a0b5a=a84_0x25af[_0x239f6c];return _0x3a0b5a;};const _0x5f138a=a84_0x3a0b;'use strict';const ChatMessageEvents=require(_0x5f138a('0x4')),events=[_0x5f138a('0x1'),_0x5f138a('0x3'),_0x5f138a('0x6')];function createListener(_0x332a6e,_0x113af9){return function(_0x1bbde7){const _0x45ceff=a84_0x3a0b;_0x113af9[_0x45ceff('0x2')](_0x332a6e,_0x1bbde7);};}exports[_0x5f138a('0x0')]=function(_0x35f6a4){const _0x280cbd=_0x5f138a;for(let _0x5c672f=0x0,_0x3b8f8e=events['length'];_0x5c672f<_0x3b8f8e;_0x5c672f++){const _0x2d7827=events[_0x5c672f],_0x2f8a77=createListener(_0x280cbd('0x5')+_0x2d7827,_0x35f6a4);ChatMessageEvents['on'](_0x2d7827,_0x2f8a77);}}; \ No newline at end of file +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 diff --git a/server/api/chatMessage/index.js b/server/api/chatMessage/index.js index 709a0d4..2a087f4 100644 --- a/server/api/chatMessage/index.js +++ b/server/api/chatMessage/index.js @@ -1 +1 @@ -const a85_0x512e=['/:id/accept','delete','index','create','show','describe','exports','../../components/interaction/service','destroy','Router','post','/:id/reject','chat','put','update','accept','get','tracked','isAuthenticated','chatmessage:create','./chatMessage.controller','/describe','/:id'];(function(_0x4f4714,_0x512eba){const _0x4001fd=function(_0x498f9c){while(--_0x498f9c){_0x4f4714['push'](_0x4f4714['shift']());}};_0x4001fd(++_0x512eba);}(a85_0x512e,0xe2));const a85_0x4001=function(_0x4f4714,_0x512eba){_0x4f4714=_0x4f4714-0x0;let _0x4001fd=a85_0x512e[_0x4f4714];return _0x4001fd;};const _0x5cedc9=a85_0x4001;'use strict';const express=require('express'),router=express[_0x5cedc9('0xd')](),auth=require('../../components/auth/service'),interaction=require(_0x5cedc9('0xb')),controller=require(_0x5cedc9('0x1'));router[_0x5cedc9('0x14')]('/',auth[_0x5cedc9('0x16')](),controller[_0x5cedc9('0x6')]),router['get'](_0x5cedc9('0x2'),auth[_0x5cedc9('0x16')](),controller[_0x5cedc9('0x9')]),router[_0x5cedc9('0x14')](_0x5cedc9('0x3'),auth[_0x5cedc9('0x16')](),controller[_0x5cedc9('0x8')]),router[_0x5cedc9('0xe')]('/',auth[_0x5cedc9('0x16')](),interaction[_0x5cedc9('0x15')](_0x5cedc9('0x10'),_0x5cedc9('0x0')),controller[_0x5cedc9('0x7')]),router['put'](_0x5cedc9('0x3'),controller[_0x5cedc9('0x12')]),router[_0x5cedc9('0x11')](_0x5cedc9('0x4'),auth[_0x5cedc9('0x16')](),controller[_0x5cedc9('0x13')]),router[_0x5cedc9('0x11')](_0x5cedc9('0xf'),auth['isAuthenticated'](),controller['reject']),router[_0x5cedc9('0x5')](_0x5cedc9('0x3'),auth[_0x5cedc9('0x16')](),controller[_0x5cedc9('0xc')]),module[_0x5cedc9('0xa')]=router; \ No newline at end of file +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 diff --git a/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js b/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js index 51085cd..2e50f12 100644 --- a/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js +++ b/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js @@ -1 +1 @@ -const a86_0x398c=['exports','medium','sequelize'];(function(_0x2a4fcc,_0x398c20){const _0x2ef876=function(_0x3592df){while(--_0x3592df){_0x2a4fcc['push'](_0x2a4fcc['shift']());}};_0x2ef876(++_0x398c20);}(a86_0x398c,0x8c));const a86_0x2ef8=function(_0x2a4fcc,_0x398c20){_0x2a4fcc=_0x2a4fcc-0x0;let _0x2ef876=a86_0x398c[_0x2a4fcc];return _0x2ef876;};const _0x2a4938=a86_0x2ef8;'use strict';const Sequelize=require(_0x2a4938('0x0'));module[_0x2a4938('0x1')]={'body':{'type':Sequelize['TEXT'](_0x2a4938('0x2')),'allowNull':![]}}; \ No newline at end of file +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 diff --git a/server/api/chatOfflineMessage/chatOfflineMessage.controller.js b/server/api/chatOfflineMessage/chatOfflineMessage.controller.js index d397f63..816429d 100644 --- a/server/api/chatOfflineMessage/chatOfflineMessage.controller.js +++ b/server/api/chatOfflineMessage/chatOfflineMessage.controller.js @@ -1 +1 @@ -const a87_0x1f0e=['findOne','includeAll','filter','body','count','name','options','index','catch','destroy','keys','../../mysqldb','pick','type','VIRTUAL','show','ChatOfflineMessage','rows','create','limit','model','length','set','describe','nolimit','map','update','attributes','like','../../components/parsers/qs','fields','status','where','json','merge','offset','api','then','key','query','../../config/logger','send','lodash','intersection','sort','order','rawAttributes','filters','Content-Range','params','undefined'];(function(_0x51bd75,_0x1f0ea3){const _0x466902=function(_0x5cc58e){while(--_0x5cc58e){_0x51bd75['push'](_0x51bd75['shift']());}};_0x466902(++_0x1f0ea3);}(a87_0x1f0e,0xd2));const a87_0x4669=function(_0x51bd75,_0x1f0ea3){_0x51bd75=_0x51bd75-0x0;let _0x466902=a87_0x1f0e[_0x51bd75];return _0x466902;};const _0x5c8fa3=a87_0x4669;'use strict';const _=require(_0x5c8fa3('0x24')),qs=require(_0x5c8fa3('0x17')),logger=require(_0x5c8fa3('0x22'))(_0x5c8fa3('0x1e')),db=require(_0x5c8fa3('0x5'))['db'],{Op}=require('sequelize');function respondWithResult(_0x5cc58e,_0x4017ae){return _0x4017ae=_0x4017ae||0xc8,function(_0x5a4c59){const _0x195711=a87_0x4669;if(_0x5a4c59)return _0x5cc58e[_0x195711('0x19')](_0x4017ae)[_0x195711('0x1b')](_0x5a4c59);};}function respondWithFilteredResult(_0x547f87,_0x229815){return function(_0x524a48){const _0x904504=a87_0x4669;if(_0x524a48){const _0x198007=_0x524a48['count'],_0x539634=_0x229815[_0x904504('0x1d')];let _0x492098=_0x229815[_0x904504('0x1d')]+_0x229815[_0x904504('0xd')],_0xda37eb;return _0x492098>=_0x198007?(_0x492098=_0x198007,_0xda37eb=0xc8):_0xda37eb=0xce,_0x547f87['status'](_0xda37eb),_0x547f87[_0x904504('0x10')](_0x904504('0x2a'),_0x539634+'-'+_0x492098+'/'+_0x198007)['json'](_0x524a48);}return null;};}function saveUpdates(_0x4cd1b5){return function(_0x574ff5){const _0x35230a=a87_0x4669;if(_0x574ff5)return _0x574ff5[_0x35230a('0x14')](_0x4cd1b5)['then'](function(_0x4181bc){return _0x4181bc;});return null;};}function removeEntity(_0x599c7f){return function(_0x5bf5fc){const _0x26ccc5=a87_0x4669;if(_0x5bf5fc)return _0x5bf5fc[_0x26ccc5('0x3')]()[_0x26ccc5('0x1f')](function(){_0x599c7f['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x3ffac8){return function(_0xa6e520){return!_0xa6e520&&_0x3ffac8['sendStatus'](0x194),_0xa6e520;};}function handleError(_0x4dbf1f,_0xc6265b){return _0xc6265b=_0xc6265b||0x1f4,function(_0x2f0f5b){const _0x4321da=a87_0x4669;logger['error'](_0x2f0f5b['stack']),_0x2f0f5b[_0x4321da('0x32')]&&delete _0x2f0f5b[_0x4321da('0x32')],_0x4dbf1f[_0x4321da('0x19')](_0xc6265b)[_0x4321da('0x23')](_0x2f0f5b);};}exports[_0x5c8fa3('0x1')]=function(_0x2232c4,_0x67e7bc){const _0x3028fe=_0x5c8fa3;let _0x37983f={};const _0x15f7f9={},_0xf50496={'count':0x0,'rows':[]},_0x125b51=_[_0x3028fe('0x13')](db[_0x3028fe('0xa')][_0x3028fe('0x28')],function(_0x39fb0a){const _0x528852=_0x3028fe;return{'name':_0x39fb0a['fieldName'],'type':_0x39fb0a[_0x528852('0x7')][_0x528852('0x20')]};});_0x15f7f9[_0x3028fe('0xe')]=_[_0x3028fe('0x13')](_0x125b51,_0x3028fe('0x32')),_0x15f7f9[_0x3028fe('0x21')]=_[_0x3028fe('0x4')](_0x2232c4[_0x3028fe('0x21')]),_0x15f7f9['filters']=_[_0x3028fe('0x25')](_0x15f7f9[_0x3028fe('0xe')],_0x15f7f9[_0x3028fe('0x21')]),_0x37983f[_0x3028fe('0x15')]=_['intersection'](_0x15f7f9[_0x3028fe('0xe')],qs[_0x3028fe('0x18')](_0x2232c4[_0x3028fe('0x21')][_0x3028fe('0x18')])),_0x37983f['attributes']=_0x37983f[_0x3028fe('0x15')][_0x3028fe('0xf')]?_0x37983f[_0x3028fe('0x15')]:_0x15f7f9[_0x3028fe('0xe')];typeof _0x2232c4[_0x3028fe('0x21')][_0x3028fe('0x12')]===_0x3028fe('0x2c')&&(_0x37983f[_0x3028fe('0xd')]=qs[_0x3028fe('0xd')](_0x2232c4['query'][_0x3028fe('0xd')]),_0x37983f[_0x3028fe('0x1d')]=qs[_0x3028fe('0x1d')](_0x2232c4['query'][_0x3028fe('0x1d')]));_0x37983f[_0x3028fe('0x27')]=qs[_0x3028fe('0x26')](_0x2232c4[_0x3028fe('0x21')][_0x3028fe('0x26')]),_0x37983f[_0x3028fe('0x1a')]=qs[_0x3028fe('0x29')](_[_0x3028fe('0x6')](_0x2232c4[_0x3028fe('0x21')],_0x15f7f9[_0x3028fe('0x29')]),_0x125b51);_0x2232c4[_0x3028fe('0x21')][_0x3028fe('0x2f')]&&(_0x37983f[_0x3028fe('0x1a')]=_['merge'](_0x37983f[_0x3028fe('0x1a')],{[Op['or']]:_[_0x3028fe('0x13')](_0x125b51,function(_0x227831){const _0x1e811a=_0x3028fe;if(_0x227831['type']!==_0x1e811a('0x8')){const _0x5b2ee8={};return _0x5b2ee8[_0x227831[_0x1e811a('0x32')]]={[Op[_0x1e811a('0x16')]]:'%'+_0x2232c4['query'][_0x1e811a('0x2f')]+'%'},_0x5b2ee8;}})}));_0x37983f=_[_0x3028fe('0x1c')]({},_0x37983f,_0x2232c4[_0x3028fe('0x0')]);const _0x5c8086={'where':_0x37983f[_0x3028fe('0x1a')]};return db['ChatOfflineMessage']['count'](_0x5c8086)['then'](function(_0x42e3ef){const _0x33c0c5=_0x3028fe;return _0xf50496[_0x33c0c5('0x31')]=_0x42e3ef,_0x2232c4[_0x33c0c5('0x21')][_0x33c0c5('0x2e')]&&(_0x37983f['include']=[{'all':!![]}]),db['ChatOfflineMessage']['findAll'](_0x37983f);})[_0x3028fe('0x1f')](function(_0x53f3a1){const _0x46bff8=_0x3028fe;return _0xf50496[_0x46bff8('0xb')]=_0x53f3a1,_0xf50496;})[_0x3028fe('0x1f')](respondWithFilteredResult(_0x67e7bc,_0x37983f))['catch'](handleError(_0x67e7bc,null));},exports[_0x5c8fa3('0x9')]=function(_0x5c631f,_0x38f160){const _0x3558e9=_0x5c8fa3;let _0x42dcec={'raw':!![],'where':{'id':_0x5c631f[_0x3558e9('0x2b')]['id']}};const _0x4d28d0={};return _0x4d28d0['model']=_[_0x3558e9('0x4')](db[_0x3558e9('0xa')]['rawAttributes']),_0x4d28d0[_0x3558e9('0x21')]=_['keys'](_0x5c631f[_0x3558e9('0x21')]),_0x4d28d0['filters']=_['intersection'](_0x4d28d0[_0x3558e9('0xe')],_0x4d28d0['query']),_0x42dcec[_0x3558e9('0x15')]=_[_0x3558e9('0x25')](_0x4d28d0[_0x3558e9('0xe')],qs[_0x3558e9('0x18')](_0x5c631f[_0x3558e9('0x21')][_0x3558e9('0x18')])),_0x42dcec[_0x3558e9('0x15')]=_0x42dcec[_0x3558e9('0x15')][_0x3558e9('0xf')]?_0x42dcec[_0x3558e9('0x15')]:_0x4d28d0[_0x3558e9('0xe')],_0x5c631f['query'][_0x3558e9('0x2e')]&&(_0x42dcec['include']=[{'all':!![]}]),_0x42dcec=_[_0x3558e9('0x1c')]({},_0x42dcec,_0x5c631f[_0x3558e9('0x0')]),db['ChatOfflineMessage']['findOne'](_0x42dcec)[_0x3558e9('0x1f')](handleEntityNotFound(_0x38f160,null))[_0x3558e9('0x1f')](respondWithResult(_0x38f160,null))[_0x3558e9('0x2')](handleError(_0x38f160,null));},exports[_0x5c8fa3('0xc')]=function(_0x42ec12,_0x27db87){const _0x5eb564=_0x5c8fa3;return db[_0x5eb564('0xa')]['create'](_0x42ec12[_0x5eb564('0x30')],{})['then'](respondWithResult(_0x27db87,0xc9))[_0x5eb564('0x2')](handleError(_0x27db87,null));},exports[_0x5c8fa3('0x14')]=function(_0x37e70f,_0x4999f1){const _0x11ad72=_0x5c8fa3;return _0x37e70f[_0x11ad72('0x30')]['id']&&delete _0x37e70f[_0x11ad72('0x30')]['id'],db[_0x11ad72('0xa')]['findOne']({'where':{'id':_0x37e70f['params']['id']}})['then'](handleEntityNotFound(_0x4999f1,null))['then'](saveUpdates(_0x37e70f[_0x11ad72('0x30')],null))[_0x11ad72('0x1f')](respondWithResult(_0x4999f1,null))[_0x11ad72('0x2')](handleError(_0x4999f1,null));},exports['destroy']=function(_0x504d7c,_0x2e3e2c){const _0x451be0=_0x5c8fa3;return db[_0x451be0('0xa')][_0x451be0('0x2d')]({'where':{'id':_0x504d7c[_0x451be0('0x2b')]['id']}})[_0x451be0('0x1f')](handleEntityNotFound(_0x2e3e2c,null))[_0x451be0('0x1f')](removeEntity(_0x2e3e2c,null))[_0x451be0('0x2')](handleError(_0x2e3e2c,null));},exports['describe']=function(_0x4b603f,_0x140bf4){const _0x340dd4=_0x5c8fa3;return db[_0x340dd4('0xa')][_0x340dd4('0x11')]()[_0x340dd4('0x1f')](respondWithResult(_0x140bf4,null))[_0x340dd4('0x2')](handleError(_0x140bf4,null));}; \ No newline at end of file +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 diff --git a/server/api/chatOfflineMessage/chatOfflineMessage.model.js b/server/api/chatOfflineMessage/chatOfflineMessage.model.js index f1180d9..8a0625f 100644 --- a/server/api/chatOfflineMessage/chatOfflineMessage.model.js +++ b/server/api/chatOfflineMessage/chatOfflineMessage.model.js @@ -1 +1 @@ -const a88_0xbf07=['define','chat_offline_messages','utf8mb4_unicode_ci','exports','./chatOfflineMessage.attributes','ChatOfflineMessage'];(function(_0x36dde4,_0xbf0705){const _0x51d4b5=function(_0x2d8b74){while(--_0x2d8b74){_0x36dde4['push'](_0x36dde4['shift']());}};_0x51d4b5(++_0xbf0705);}(a88_0xbf07,0x195));const a88_0x51d4=function(_0x36dde4,_0xbf0705){_0x36dde4=_0x36dde4-0x0;let _0x51d4b5=a88_0xbf07[_0x36dde4];return _0x51d4b5;};const _0x147f32=a88_0x51d4;'use strict';const attributes=require(_0x147f32('0x1'));module[_0x147f32('0x0')]=function(_0x2d8b74){const _0x533355=_0x147f32,_0x11cd2d=_0x2d8b74[_0x533355('0x3')](_0x533355('0x2'),attributes,{'tableName':_0x533355('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x533355('0x5')});return _0x11cd2d;}; \ No newline at end of file +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 diff --git a/server/api/chatOfflineMessage/index.js b/server/api/chatOfflineMessage/index.js index 684a33d..c95746a 100644 --- a/server/api/chatOfflineMessage/index.js +++ b/server/api/chatOfflineMessage/index.js @@ -1 +1 @@ -const a89_0x2d6c=['destroy','isAuthenticated','/describe','delete','create','post','update','show','index','./chatOfflineMessage.controller','get','put','/:id','../../components/auth/service'];(function(_0x1f6b1d,_0x2d6c35){const _0x24e63a=function(_0x54923f){while(--_0x54923f){_0x1f6b1d['push'](_0x1f6b1d['shift']());}};_0x24e63a(++_0x2d6c35);}(a89_0x2d6c,0x1ed));const a89_0x24e6=function(_0x1f6b1d,_0x2d6c35){_0x1f6b1d=_0x1f6b1d-0x0;let _0x24e63a=a89_0x2d6c[_0x1f6b1d];return _0x24e63a;};const _0x2d0dd6=a89_0x24e6;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x2d0dd6('0xa')),controller=require(_0x2d0dd6('0x6'));router[_0x2d0dd6('0x7')]('/',auth[_0x2d0dd6('0xc')](),controller[_0x2d0dd6('0x5')]),router[_0x2d0dd6('0x7')](_0x2d0dd6('0xd'),auth['isAuthenticated'](),controller['describe']),router[_0x2d0dd6('0x7')]('/:id',auth[_0x2d0dd6('0xc')](),controller[_0x2d0dd6('0x4')]),router[_0x2d0dd6('0x2')]('/',auth['isAuthenticated'](),controller[_0x2d0dd6('0x1')]),router[_0x2d0dd6('0x8')](_0x2d0dd6('0x9'),auth[_0x2d0dd6('0xc')](),controller[_0x2d0dd6('0x3')]),router[_0x2d0dd6('0x0')](_0x2d0dd6('0x9'),auth[_0x2d0dd6('0xc')](),controller[_0x2d0dd6('0xb')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/chatProactiveAction/chatProactiveAction.attributes.js b/server/api/chatProactiveAction/chatProactiveAction.attributes.js index 387d41d..435f457 100644 --- a/server/api/chatProactiveAction/chatProactiveAction.attributes.js +++ b/server/api/chatProactiveAction/chatProactiveAction.attributes.js @@ -1 +1 @@ -const a90_0x26f5=['STRING','exports','INTEGER','mouseOver','sequelize'];(function(_0x4bef29,_0x26f53e){const _0x485ac4=function(_0x19809f){while(--_0x19809f){_0x4bef29['push'](_0x4bef29['shift']());}};_0x485ac4(++_0x26f53e);}(a90_0x26f5,0xfa));const a90_0x485a=function(_0x4bef29,_0x26f53e){_0x4bef29=_0x4bef29-0x0;let _0x485ac4=a90_0x26f5[_0x4bef29];return _0x485ac4;};const _0x4ff175=a90_0x485a;'use strict';const Sequelize=require(_0x4ff175('0x4'));module[_0x4ff175('0x1')]={'name':{'type':Sequelize[_0x4ff175('0x0')],'allowNull':![]},'type':{'type':Sequelize['ENUM'](_0x4ff175('0x3'),'timeout'),'defaultValue':_0x4ff175('0x3')},'selector':{'type':Sequelize[_0x4ff175('0x0')]},'timeout':{'type':Sequelize[_0x4ff175('0x2')]}}; \ No newline at end of file +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 diff --git a/server/api/chatProactiveAction/chatProactiveAction.controller.js b/server/api/chatProactiveAction/chatProactiveAction.controller.js index ac0473c..bad368d 100644 --- a/server/api/chatProactiveAction/chatProactiveAction.controller.js +++ b/server/api/chatProactiveAction/chatProactiveAction.controller.js @@ -1 +1 @@ -const a91_0x162d=['api','findOne','body','intersection','attributes','model','options','../../components/parsers/qs','query','lodash','json','ChatProactiveAction','../../config/logger','stack','create','catch','then','destroy','merge','fields','../../mysqldb','update','keys','status','include','rawAttributes','params','send','end','sendStatus'];(function(_0x115add,_0x162da5){const _0x26916c=function(_0x59001b){while(--_0x59001b){_0x115add['push'](_0x115add['shift']());}};_0x26916c(++_0x162da5);}(a91_0x162d,0x11c));const a91_0x2691=function(_0x115add,_0x162da5){_0x115add=_0x115add-0x0;let _0x26916c=a91_0x162d[_0x115add];return _0x26916c;};const _0x1367d0=a91_0x2691;'use strict';const _=require(_0x1367d0('0x19')),qs=require(_0x1367d0('0x17')),logger=require(_0x1367d0('0x1c'))(_0x1367d0('0x10')),db=require(_0x1367d0('0x6'))['db'];function respondWithResult(_0x59001b,_0x3f95b4){return _0x3f95b4=_0x3f95b4||0xc8,function(_0x95c634){const _0x22bf81=a91_0x2691;if(_0x95c634)return _0x59001b[_0x22bf81('0x9')](_0x3f95b4)[_0x22bf81('0x1a')](_0x95c634);};}function saveUpdates(_0x29f440){return function(_0x106cfd){const _0x1280f8=a91_0x2691;if(_0x106cfd)return _0x106cfd['update'](_0x29f440)[_0x1280f8('0x2')](function(_0x4dc27a){return _0x4dc27a;});return null;};}function removeEntity(_0x4e8b2a){return function(_0x1d1a4c){const _0x573cf0=a91_0x2691;if(_0x1d1a4c)return _0x1d1a4c[_0x573cf0('0x3')]()[_0x573cf0('0x2')](function(){const _0x3c0ca1=_0x573cf0;_0x4e8b2a[_0x3c0ca1('0x9')](0xcc)[_0x3c0ca1('0xe')]();});};}function handleEntityNotFound(_0x5331ef){return function(_0x2e06f5){const _0xa479cf=a91_0x2691;return!_0x2e06f5&&_0x5331ef[_0xa479cf('0xf')](0x194),_0x2e06f5;};}function handleError(_0x114b44,_0x4b7c90){return _0x4b7c90=_0x4b7c90||0x1f4,function(_0x251991){const _0x43cf95=a91_0x2691;logger['error'](_0x251991[_0x43cf95('0x1d')]),_0x251991['name']&&delete _0x251991['name'],_0x114b44[_0x43cf95('0x9')](_0x4b7c90)[_0x43cf95('0xd')](_0x251991);};}exports['show']=function(_0x480068,_0xdfe446){const _0x5d8254=_0x1367d0;let _0x6458d5={'raw':!![],'where':{'id':_0x480068[_0x5d8254('0xc')]['id']}};const _0x2e967c={};return _0x2e967c[_0x5d8254('0x15')]=_[_0x5d8254('0x8')](db['ChatProactiveAction'][_0x5d8254('0xb')]),_0x2e967c[_0x5d8254('0x18')]=_['keys'](_0x480068[_0x5d8254('0x18')]),_0x2e967c['filters']=_['intersection'](_0x2e967c[_0x5d8254('0x15')],_0x2e967c[_0x5d8254('0x18')]),_0x6458d5[_0x5d8254('0x14')]=_[_0x5d8254('0x13')](_0x2e967c[_0x5d8254('0x15')],qs[_0x5d8254('0x5')](_0x480068[_0x5d8254('0x18')][_0x5d8254('0x5')])),_0x6458d5['attributes']=_0x6458d5[_0x5d8254('0x14')]['length']?_0x6458d5[_0x5d8254('0x14')]:_0x2e967c[_0x5d8254('0x15')],_0x480068[_0x5d8254('0x18')]['includeAll']&&(_0x6458d5[_0x5d8254('0xa')]=[{'all':!![]}]),_0x6458d5=_[_0x5d8254('0x4')]({},_0x6458d5,_0x480068[_0x5d8254('0x16')]),db[_0x5d8254('0x1b')][_0x5d8254('0x11')](_0x6458d5)[_0x5d8254('0x2')](handleEntityNotFound(_0xdfe446,null))['then'](respondWithResult(_0xdfe446,null))[_0x5d8254('0x1')](handleError(_0xdfe446,null));},exports['create']=function(_0x28f341,_0x512044){const _0x38b170=_0x1367d0;return db[_0x38b170('0x1b')][_0x38b170('0x0')](_0x28f341[_0x38b170('0x12')],{})[_0x38b170('0x2')](respondWithResult(_0x512044,0xc9))['catch'](handleError(_0x512044,null));},exports[_0x1367d0('0x7')]=function(_0x4e6178,_0x140ee3){const _0x5ed8cc=_0x1367d0;return _0x4e6178[_0x5ed8cc('0x12')]['id']&&delete _0x4e6178[_0x5ed8cc('0x12')]['id'],db[_0x5ed8cc('0x1b')][_0x5ed8cc('0x11')]({'where':{'id':_0x4e6178[_0x5ed8cc('0xc')]['id']}})[_0x5ed8cc('0x2')](handleEntityNotFound(_0x140ee3,null))['then'](saveUpdates(_0x4e6178['body'],null))[_0x5ed8cc('0x2')](respondWithResult(_0x140ee3,null))[_0x5ed8cc('0x1')](handleError(_0x140ee3,null));},exports[_0x1367d0('0x3')]=function(_0x279f6a,_0x48f892){const _0x3de98e=_0x1367d0;return db[_0x3de98e('0x1b')][_0x3de98e('0x11')]({'where':{'id':_0x279f6a[_0x3de98e('0xc')]['id']}})[_0x3de98e('0x2')](handleEntityNotFound(_0x48f892,null))[_0x3de98e('0x2')](removeEntity(_0x48f892,null))['catch'](handleError(_0x48f892,null));}; \ No newline at end of file +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 diff --git a/server/api/chatProactiveAction/chatProactiveAction.model.js b/server/api/chatProactiveAction/chatProactiveAction.model.js index de5b80a..9e6398a 100644 --- a/server/api/chatProactiveAction/chatProactiveAction.model.js +++ b/server/api/chatProactiveAction/chatProactiveAction.model.js @@ -1 +1 @@ -const a92_0x1fae=['./chatProactiveAction.attributes','exports','ChatProactiveAction','chat_proactive_actions','define'];(function(_0x362001,_0x1fae0f){const _0x5a5526=function(_0x2fbb24){while(--_0x2fbb24){_0x362001['push'](_0x362001['shift']());}};_0x5a5526(++_0x1fae0f);}(a92_0x1fae,0x181));const a92_0x5a55=function(_0x362001,_0x1fae0f){_0x362001=_0x362001-0x0;let _0x5a5526=a92_0x1fae[_0x362001];return _0x5a5526;};const _0x444c01=a92_0x5a55;'use strict';const attributes=require(_0x444c01('0x0'));module[_0x444c01('0x1')]=function(_0x2fbb24){const _0x4c14ec=_0x444c01,_0x56cdf8=_0x2fbb24[_0x4c14ec('0x4')](_0x4c14ec('0x2'),attributes,{'tableName':_0x4c14ec('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x56cdf8;}; \ No newline at end of file +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 diff --git a/server/api/chatProactiveAction/index.js b/server/api/chatProactiveAction/index.js index 1b1b3e1..4209279 100644 --- a/server/api/chatProactiveAction/index.js +++ b/server/api/chatProactiveAction/index.js @@ -1 +1 @@ -const a93_0x5869=['update','create','Router','put','show','get','destroy','/:id','express','post','isAuthenticated','./chatProactiveAction.controller'];(function(_0x1221c6,_0x586979){const _0x161224=function(_0x22c6ad){while(--_0x22c6ad){_0x1221c6['push'](_0x1221c6['shift']());}};_0x161224(++_0x586979);}(a93_0x5869,0x1b1));const a93_0x1612=function(_0x1221c6,_0x586979){_0x1221c6=_0x1221c6-0x0;let _0x161224=a93_0x5869[_0x1221c6];return _0x161224;};const _0x300b98=a93_0x1612;'use strict';const express=require(_0x300b98('0x7')),router=express[_0x300b98('0x1')](),auth=require('../../components/auth/service'),controller=require(_0x300b98('0xa'));router[_0x300b98('0x4')](_0x300b98('0x6'),auth[_0x300b98('0x9')](),controller[_0x300b98('0x3')]),router[_0x300b98('0x8')]('/',auth[_0x300b98('0x9')](),controller[_0x300b98('0x0')]),router[_0x300b98('0x2')](_0x300b98('0x6'),auth[_0x300b98('0x9')](),controller[_0x300b98('0xb')]),router['delete'](_0x300b98('0x6'),auth[_0x300b98('0x9')](),controller[_0x300b98('0x5')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/chatQueue/chatQueue.attributes.js b/server/api/chatQueue/chatQueue.attributes.js index 75cc72f..c066527 100644 --- a/server/api/chatQueue/chatQueue.attributes.js +++ b/server/api/chatQueue/chatQueue.attributes.js @@ -1 +1 @@ -const a94_0x2b24=['beepall','name','sequelize','rrmemory','ENUM','INTEGER','roundrobin','STRING','exports'];(function(_0x433302,_0x2b24fb){const _0x248b7c=function(_0x1a798){while(--_0x1a798){_0x433302['push'](_0x433302['shift']());}};_0x248b7c(++_0x2b24fb);}(a94_0x2b24,0xdb));const a94_0x248b=function(_0x433302,_0x2b24fb){_0x433302=_0x433302-0x0;let _0x248b7c=a94_0x2b24[_0x433302];return _0x248b7c;};const _0x1c408d=a94_0x248b;'use strict';const Sequelize=require(_0x1c408d('0x8'));module[_0x1c408d('0x5')]={'name':{'type':Sequelize['STRING'],'unique':_0x1c408d('0x7'),'allowNull':![],'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x1c408d('0x4')]},'timeout':{'type':Sequelize[_0x1c408d('0x2')],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x1c408d('0x1')](_0x1c408d('0x0'),_0x1c408d('0x6'),_0x1c408d('0x3'))}}; \ No newline at end of file +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 diff --git a/server/api/chatQueue/chatQueue.controller.js b/server/api/chatQueue/chatQueue.controller.js index 12ab603..d59e649 100644 --- a/server/api/chatQueue/chatQueue.controller.js +++ b/server/api/chatQueue/chatQueue.controller.js @@ -1 +1 @@ -const a95_0x2973=['online','findAndCountAll','transaction','catch','type','UserProfileSection','removeTeams','../../components/parsers/qs','intersection','filter','attributes','nolimit','findOrCreate','%s/%s','sequelize','includes','model','filters','end','rows','ut.TeamId\x20=\x20tq.TeamId','stack','findOne','rawAttributes','getAgents','addTeams','userChatQueue:save','emit','undefined','offset','util','describe','role','merge','all','push','../../rediscache','get','body','lodash','index','agent','Unable\x20to\x20retrieve\x20the\x20current\x20user','keys','userChatQueue:remove','include','key','user_has_teams','chatPause','SELECT','QueryTypes','from','addAgents','updatedAt','create','limit','sendStatus','flatMap','where','ids','options','findAll','squel','error','voicePause','format','isArray','Team','ChatQueues','ChatQueueId','ChatQueue','like','map','interface','getTeams','getMembers','sort','removeAgents','team_has_chat_queues','register','SIP','createdAt','TeamId','count','User','every','omit','then','name','ChatQueueId\x20=\x20?','set','user','tq.TeamId','pick','fields','forEach','params','includeAll','json','isEmpty','./chatQueue.socket','Agents','toString','select','query','length','UserChatQueue','UserProfileResource','join','ut.UserId\x20=\x20?','update','destroy','status','show','order'];(function(_0x3f988e,_0x2973a4){const _0x4b91ae=function(_0x276a8e){while(--_0x276a8e){_0x3f988e['push'](_0x3f988e['shift']());}};_0x4b91ae(++_0x2973a4);}(a95_0x2973,0xfd));const a95_0x4b91=function(_0x3f988e,_0x2973a4){_0x3f988e=_0x3f988e-0x0;let _0x4b91ae=a95_0x2973[_0x3f988e];return _0x4b91ae;};const _0x44bd16=a95_0x4b91;'use strict';const util=require(_0x44bd16('0x7')),_=require(_0x44bd16('0x10')),squel=require(_0x44bd16('0x27')),qs=require(_0x44bd16('0x63')),logger=require('../../config/logger')('api'),{getSocket}=require(_0x44bd16('0xd')),db=require('../../mysqldb')['db'],{Op}=require(_0x44bd16('0x6a')),socket=getSocket();require(_0x44bd16('0x4d'))[_0x44bd16('0x38')](socket);function respondWithStatusCode(_0x276a8e,_0x2326b5){return _0x2326b5=_0x2326b5||0xcc,function(_0x447dfe){const _0x24c53b=a95_0x4b91;if(_0x447dfe)return _0x276a8e[_0x24c53b('0x21')](_0x2326b5);return _0x276a8e[_0x24c53b('0x59')](_0x2326b5)['end']();};}function respondWithResult(_0x4451bf,_0xf55c75){return _0xf55c75=_0xf55c75||0xc8,function(_0x5b788c){const _0x12c4ff=a95_0x4b91;if(_0x5b788c)return _0x4451bf[_0x12c4ff('0x59')](_0xf55c75)[_0x12c4ff('0x4b')](_0x5b788c);};}function respondWithFilteredResult(_0x4b03fc,_0x582c31){return function(_0x18b80e){const _0x168e55=a95_0x4b91;if(_0x18b80e){const _0x2f8482=_0x18b80e[_0x168e55('0x3c')],_0xd31e0b=_0x582c31[_0x168e55('0x6')];let _0x134d48=_0x582c31[_0x168e55('0x6')]+_0x582c31[_0x168e55('0x20')],_0x228a67;return _0x134d48>=_0x2f8482?(_0x134d48=_0x2f8482,_0x228a67=0xc8):_0x228a67=0xce,_0x4b03fc[_0x168e55('0x59')](_0x228a67),_0x4b03fc[_0x168e55('0x43')]('Content-Range',_0xd31e0b+'-'+_0x134d48+'/'+_0x2f8482)[_0x168e55('0x4b')](_0x18b80e);}return null;};}function saveUpdates(_0x14b990){return function(_0x2141d0){const _0x19cfe9=a95_0x4b91;if(_0x2141d0)return _0x2141d0[_0x19cfe9('0x57')](_0x14b990)[_0x19cfe9('0x40')](function(_0x2690a0){return _0x2690a0;});return null;};}function removeEntity(_0xba9b9c){return function(_0x17a236){const _0x556b7d=a95_0x4b91;if(_0x17a236)return _0x17a236[_0x556b7d('0x58')]()[_0x556b7d('0x40')](function(){const _0x25f490=_0x556b7d,_0x202223=_0x17a236[_0x25f490('0xe')]({'plain':!![]}),_0x554f71=_0x25f490('0x2d');return db[_0x25f490('0x54')][_0x25f490('0x58')]({'where':{'type':_0x554f71,'resourceId':_0x202223['id']}})[_0x25f490('0x40')](function(){return _0x17a236;});})[_0x556b7d('0x40')](function(){const _0x340213=_0x556b7d;_0xba9b9c[_0x340213('0x59')](0xcc)[_0x340213('0x6e')]();});};}function handleEntityNotFound(_0x1a57b9){return function(_0x721dec){return!_0x721dec&&_0x1a57b9['sendStatus'](0x194),_0x721dec;};}function handleError(_0xa693c,_0x283a93){return _0x283a93=_0x283a93||0x1f4,function(_0x4d6748){const _0x9259a4=a95_0x4b91;logger[_0x9259a4('0x28')](_0x4d6748[_0x9259a4('0x71')]),_0x4d6748['name']&&delete _0x4d6748[_0x9259a4('0x41')],_0xa693c[_0x9259a4('0x59')](_0x283a93)['send'](_0x4d6748);};}exports[_0x44bd16('0x11')]=function(_0x24baea,_0x3b473f){const _0xa8122e=_0x44bd16;let _0x1b5060={};const _0x3fca14={},_0x1c0fa9={'count':0x0,'rows':[]},_0x2078cc=_[_0xa8122e('0x31')](db[_0xa8122e('0x2f')]['rawAttributes'],function(_0x1fd6e2){const _0x3e9948=_0xa8122e;return{'name':_0x1fd6e2['fieldName'],'type':_0x1fd6e2[_0x3e9948('0x60')][_0x3e9948('0x17')]};});_0x3fca14[_0xa8122e('0x6c')]=_['map'](_0x2078cc,_0xa8122e('0x41')),_0x3fca14[_0xa8122e('0x51')]=_[_0xa8122e('0x14')](_0x24baea['query']),_0x3fca14[_0xa8122e('0x6d')]=_['intersection'](_0x3fca14[_0xa8122e('0x6c')],_0x3fca14[_0xa8122e('0x51')]),_0x1b5060[_0xa8122e('0x66')]=_[_0xa8122e('0x64')](_0x3fca14[_0xa8122e('0x6c')],qs[_0xa8122e('0x47')](_0x24baea['query'][_0xa8122e('0x47')])),_0x1b5060[_0xa8122e('0x66')]=_0x1b5060[_0xa8122e('0x66')][_0xa8122e('0x52')]?_0x1b5060[_0xa8122e('0x66')]:_0x3fca14['model'];typeof _0x24baea['query'][_0xa8122e('0x67')]===_0xa8122e('0x5')&&(_0x1b5060[_0xa8122e('0x20')]=qs[_0xa8122e('0x20')](_0x24baea['query']['limit']),_0x1b5060[_0xa8122e('0x6')]=qs[_0xa8122e('0x6')](_0x24baea[_0xa8122e('0x51')][_0xa8122e('0x6')]));_0x1b5060[_0xa8122e('0x5b')]=qs[_0xa8122e('0x35')](_0x24baea[_0xa8122e('0x51')][_0xa8122e('0x35')]),_0x1b5060[_0xa8122e('0x23')]=qs[_0xa8122e('0x6d')](_[_0xa8122e('0x46')](_0x24baea[_0xa8122e('0x51')],_0x3fca14[_0xa8122e('0x6d')]),_0x2078cc);_0x24baea[_0xa8122e('0x51')][_0xa8122e('0x65')]&&(_0x1b5060[_0xa8122e('0x23')]=_[_0xa8122e('0xa')](_0x1b5060[_0xa8122e('0x23')],{[Op['or']]:_[_0xa8122e('0x31')](_0x2078cc,function(_0x38ecce){const _0x3c9494=_0xa8122e;if(_0x38ecce[_0x3c9494('0x60')]!=='VIRTUAL'){const _0x6d6f1e={};return _0x6d6f1e[_0x38ecce[_0x3c9494('0x41')]]={[Op[_0x3c9494('0x30')]]:'%'+_0x24baea[_0x3c9494('0x51')][_0x3c9494('0x65')]+'%'},_0x6d6f1e;}})}));_0x1b5060=_[_0xa8122e('0xa')]({},_0x1b5060,_0x24baea['options']);const _0x2f4294={'where':_0x1b5060['where']};return db[_0xa8122e('0x2f')][_0xa8122e('0x3c')](_0x2f4294)[_0xa8122e('0x40')](function(_0x4b045c){const _0x373302=_0xa8122e;return _0x1c0fa9['count']=_0x4b045c,_0x24baea[_0x373302('0x51')][_0x373302('0x4a')]&&(_0x1b5060[_0x373302('0x16')]=[{'all':!![]}]),db[_0x373302('0x2f')]['findAll'](_0x1b5060);})[_0xa8122e('0x40')](function(_0x5602b9){const _0x338843=_0xa8122e;return _0x1c0fa9[_0x338843('0x6f')]=_0x5602b9,_0x1c0fa9;})[_0xa8122e('0x40')](respondWithFilteredResult(_0x3b473f,_0x1b5060))['catch'](handleError(_0x3b473f,null));},exports[_0x44bd16('0x5a')]=function(_0x580ec6,_0x19fdf5){const _0x1a48be=_0x44bd16;let _0x45d92e={'raw':!![],'where':{'id':_0x580ec6[_0x1a48be('0x49')]['id']}};const _0x5d3890={};return _0x5d3890[_0x1a48be('0x6c')]=_[_0x1a48be('0x14')](db[_0x1a48be('0x2f')]['rawAttributes']),_0x5d3890[_0x1a48be('0x51')]=_[_0x1a48be('0x14')](_0x580ec6[_0x1a48be('0x51')]),_0x5d3890['filters']=_[_0x1a48be('0x64')](_0x5d3890[_0x1a48be('0x6c')],_0x5d3890[_0x1a48be('0x51')]),_0x45d92e['attributes']=_[_0x1a48be('0x64')](_0x5d3890[_0x1a48be('0x6c')],qs[_0x1a48be('0x47')](_0x580ec6[_0x1a48be('0x51')][_0x1a48be('0x47')])),_0x45d92e[_0x1a48be('0x66')]=_0x45d92e['attributes']['length']?_0x45d92e[_0x1a48be('0x66')]:_0x5d3890['model'],_0x580ec6[_0x1a48be('0x51')]['includeAll']&&(_0x45d92e['include']=[{'all':!![]}]),_0x45d92e=_[_0x1a48be('0xa')]({},_0x45d92e,_0x580ec6['options']),db[_0x1a48be('0x2f')]['findOne'](_0x45d92e)[_0x1a48be('0x40')](handleEntityNotFound(_0x19fdf5,null))[_0x1a48be('0x40')](respondWithResult(_0x19fdf5,null))[_0x1a48be('0x5f')](handleError(_0x19fdf5,null));},exports[_0x44bd16('0x1f')]=function(_0x370963,_0x3a0016){const _0x52bdbd=_0x44bd16;return db[_0x52bdbd('0x2f')][_0x52bdbd('0x1f')](_0x370963['body'],{})[_0x52bdbd('0x40')](function(_0x4d8e37){const _0x57ea19=_0x52bdbd,_0x17f00a=_0x370963['user'][_0x57ea19('0xe')]({'plain':!![]});if(!_0x17f00a)throw new Error(_0x57ea19('0x13'));if(_0x17f00a[_0x57ea19('0x9')]===_0x57ea19('0x44')){const _0xed81f7=_0x4d8e37[_0x57ea19('0xe')]({'plain':!![]}),_0x2eaa9e='ChatQueues';return db[_0x57ea19('0x61')][_0x57ea19('0x72')]({'where':{'name':_0x2eaa9e,'userProfileId':_0x17f00a['userProfileId']},'raw':!![]})[_0x57ea19('0x40')](function(_0x57950a){const _0x3cacf4=_0x57ea19;return _0x57950a&&_0x57950a['autoAssociation']===0x0?db[_0x3cacf4('0x54')][_0x3cacf4('0x1f')]({'name':_0xed81f7[_0x3cacf4('0x41')],'resourceId':_0xed81f7['id'],'type':_0x57950a[_0x3cacf4('0x41')],'sectionId':_0x57950a['id']},{})[_0x3cacf4('0x40')](function(){return _0x4d8e37;}):_0x4d8e37;})[_0x57ea19('0x5f')](function(_0x480385){const _0x5b662b=_0x57ea19;logger[_0x5b662b('0x28')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x480385);throw _0x480385;});}return _0x4d8e37;})[_0x52bdbd('0x40')](respondWithResult(_0x3a0016,0xc9))['catch'](handleError(_0x3a0016,null));},exports['update']=function(_0x39ad7c,_0x56be58){const _0x117892=_0x44bd16;return _0x39ad7c[_0x117892('0xf')]['id']&&delete _0x39ad7c['body']['id'],db[_0x117892('0x2f')][_0x117892('0x72')]({'where':{'id':_0x39ad7c[_0x117892('0x49')]['id']}})[_0x117892('0x40')](handleEntityNotFound(_0x56be58,null))[_0x117892('0x40')](saveUpdates(_0x39ad7c[_0x117892('0xf')],null))['then'](respondWithResult(_0x56be58,null))[_0x117892('0x5f')](handleError(_0x56be58,null));},exports['destroy']=function(_0x41729f,_0x5162ba){const _0x47dc40=_0x44bd16;return db['ChatQueue'][_0x47dc40('0x72')]({'where':{'id':_0x41729f[_0x47dc40('0x49')]['id']}})[_0x47dc40('0x40')](handleEntityNotFound(_0x5162ba,null))[_0x47dc40('0x40')](removeEntity(_0x5162ba,null))[_0x47dc40('0x5f')](handleError(_0x5162ba,null));},exports[_0x44bd16('0x8')]=function(_0x338732,_0xfb3a01){const _0x38483c=_0x44bd16;return db[_0x38483c('0x2f')]['describe']()[_0x38483c('0x40')](respondWithResult(_0xfb3a01,null))['catch'](handleError(_0xfb3a01,null));},exports[_0x44bd16('0x34')]=function(_0x3b4ea1,_0x3a6107){const _0x20dae8=_0x44bd16;let _0x44a6e4={'raw':!![],'where':{}};const _0x3a3a46={};let _0x14507d;return db[_0x20dae8('0x2f')]['findOne']({'where':{'id':_0x3b4ea1[_0x20dae8('0x49')]['id']}})['then'](handleEntityNotFound(_0x3a6107,null))[_0x20dae8('0x40')](function(_0x335346){const _0x53ca4c=_0x20dae8;if(_0x335346)return _0x14507d=_0x335346[_0x53ca4c('0xe')]({'plain':!![]}),_0x3a3a46[_0x53ca4c('0x6c')]=_[_0x53ca4c('0x14')](db[_0x53ca4c('0x53')][_0x53ca4c('0x0')]),_0x3a3a46['query']=_[_0x53ca4c('0x14')](_0x3b4ea1[_0x53ca4c('0x51')]),_0x3a3a46[_0x53ca4c('0x6d')]=_[_0x53ca4c('0x64')](_0x3a3a46[_0x53ca4c('0x6c')],_0x3a3a46[_0x53ca4c('0x51')]),_0x44a6e4['attributes']=_[_0x53ca4c('0x64')](_0x3a3a46[_0x53ca4c('0x6c')],qs['fields'](_0x3b4ea1[_0x53ca4c('0x51')][_0x53ca4c('0x47')])),_0x44a6e4[_0x53ca4c('0x66')]=_0x44a6e4[_0x53ca4c('0x66')][_0x53ca4c('0x52')]?_0x44a6e4[_0x53ca4c('0x66')]:_0x3a3a46['model'],typeof _0x3b4ea1[_0x53ca4c('0x51')][_0x53ca4c('0x67')]===_0x53ca4c('0x5')&&(_0x44a6e4[_0x53ca4c('0x20')]=qs[_0x53ca4c('0x20')](_0x3b4ea1[_0x53ca4c('0x51')][_0x53ca4c('0x20')]),_0x44a6e4['offset']=qs[_0x53ca4c('0x6')](_0x3b4ea1[_0x53ca4c('0x51')][_0x53ca4c('0x6')])),_0x44a6e4[_0x53ca4c('0x5b')]=qs[_0x53ca4c('0x35')](_0x3b4ea1[_0x53ca4c('0x51')][_0x53ca4c('0x35')]),_0x44a6e4[_0x53ca4c('0x23')]=qs['filters'](_[_0x53ca4c('0x46')](_0x3b4ea1['query'],_0x3a3a46['filters'])),_0x44a6e4[_0x53ca4c('0x23')][_0x53ca4c('0x2e')]=_0x335346['id'],_0x3b4ea1['query'][_0x53ca4c('0x65')]&&(_0x44a6e4[_0x53ca4c('0x23')]=_[_0x53ca4c('0xa')](_0x44a6e4[_0x53ca4c('0x23')],{[Op['or']]:_[_0x53ca4c('0x31')](_0x44a6e4[_0x53ca4c('0x66')],function(_0x294ae3){const _0x42f5d7=_0x53ca4c,_0x12487b={};return _0x12487b[_0x294ae3]={[Op[_0x42f5d7('0x30')]]:'%'+_0x3b4ea1[_0x42f5d7('0x51')][_0x42f5d7('0x65')]+'%'},_0x12487b;})})),_0x44a6e4=_[_0x53ca4c('0xa')]({},_0x44a6e4,_0x3b4ea1[_0x53ca4c('0x25')]),db[_0x53ca4c('0x53')][_0x53ca4c('0x26')](_0x44a6e4);})['then'](function(_0x2ec523){const _0x3f1954=_0x20dae8;if(_0x2ec523)return db[_0x3f1954('0x3d')][_0x3f1954('0x5d')]({'where':{'id':_[_0x3f1954('0x31')](_0x2ec523,'UserId'),'role':_0x3f1954('0x12')},'attributes':['id',_0x3f1954('0x41'),_0x3f1954('0x19'),_0x3f1954('0x1e'),'createdAt']});})[_0x20dae8('0x40')](function(_0x129aa6){const _0xc53f21=_0x20dae8;return _0x129aa6?{'count':_0x129aa6[_0xc53f21('0x3c')],'rows':_[_0xc53f21('0x31')](_0x129aa6[_0xc53f21('0x6f')],function(_0x1e8c04){const _0x546817=_0xc53f21;return{'membername':_0x1e8c04[_0x546817('0x41')],'UserId':_0x1e8c04['id'],'queue_name':_0x14507d['name'],'ChatQueueId':_0x14507d['id'],'interface':util[_0x546817('0x2a')](_0x546817('0x69'),_0x546817('0x39'),_0x1e8c04[_0x546817('0x41')]),'penalty':0x0,'paused':_0x1e8c04['chatPause'],'createdAt':_0x1e8c04[_0x546817('0x3a')],'updatedAt':_0x1e8c04['updatedAt']};})}:{'count':0x0,'rows':[]};})[_0x20dae8('0x40')](respondWithFilteredResult(_0x3a6107,_0x44a6e4))[_0x20dae8('0x5f')](handleError(_0x3a6107,null));},exports[_0x44bd16('0x33')]=function(_0x2fe0a7,_0xc3ca2b){const _0x4509a7=_0x44bd16;let _0x136d2f={};const _0x38900f={};let _0x295c6a,_0x2e6e7f;return db['ChatQueue'][_0x4509a7('0x72')]({'where':{'id':_0x2fe0a7[_0x4509a7('0x49')]['id']}})[_0x4509a7('0x40')](handleEntityNotFound(_0xc3ca2b,null))['then'](function(_0x5ab77f){const _0x4ac3ab=_0x4509a7;if(_0x5ab77f)return _0x295c6a=_0x5ab77f,_0x38900f[_0x4ac3ab('0x6c')]=_['keys'](db[_0x4ac3ab('0x2c')][_0x4ac3ab('0x0')]),_0x38900f[_0x4ac3ab('0x51')]=_[_0x4ac3ab('0x14')](_0x2fe0a7[_0x4ac3ab('0x51')]),_0x38900f[_0x4ac3ab('0x6d')]=_[_0x4ac3ab('0x64')](_0x38900f['model'],_0x38900f[_0x4ac3ab('0x51')]),_0x136d2f['attributes']=_['intersection'](_0x38900f['model'],qs[_0x4ac3ab('0x47')](_0x2fe0a7['query']['fields'])),_0x136d2f[_0x4ac3ab('0x66')]=_0x136d2f[_0x4ac3ab('0x66')][_0x4ac3ab('0x52')]?_0x136d2f[_0x4ac3ab('0x66')]:_0x38900f[_0x4ac3ab('0x6c')],_0x136d2f['order']=qs[_0x4ac3ab('0x35')](_0x2fe0a7['query'][_0x4ac3ab('0x35')]),_0x136d2f[_0x4ac3ab('0x23')]=qs[_0x4ac3ab('0x6d')](_['pick'](_0x2fe0a7[_0x4ac3ab('0x51')],_0x38900f[_0x4ac3ab('0x6d')])),_0x2fe0a7['query'][_0x4ac3ab('0x65')]&&(_0x136d2f[_0x4ac3ab('0x23')]=_['merge'](_0x136d2f[_0x4ac3ab('0x23')],{[Op['or']]:_[_0x4ac3ab('0x31')](_0x136d2f[_0x4ac3ab('0x66')],function(_0x493c64){const _0x26bae5=_0x4ac3ab,_0x305cb0={};return _0x305cb0[_0x493c64]={[Op['like']]:'%'+_0x2fe0a7['query'][_0x26bae5('0x65')]+'%'},_0x305cb0;})})),_0x136d2f=_[_0x4ac3ab('0xa')]({},_0x136d2f,_0x2fe0a7[_0x4ac3ab('0x25')]),_0x295c6a[_0x4ac3ab('0x33')](_0x136d2f);})[_0x4509a7('0x40')](function(_0x2ff00d){const _0x46a999=_0x4509a7;if(_0x2ff00d)return _0x2e6e7f=_0x2ff00d[_0x46a999('0x52')],typeof _0x2fe0a7[_0x46a999('0x51')][_0x46a999('0x67')]===_0x46a999('0x5')&&(_0x136d2f[_0x46a999('0x20')]=qs[_0x46a999('0x20')](_0x2fe0a7[_0x46a999('0x51')][_0x46a999('0x20')]),_0x136d2f['offset']=qs[_0x46a999('0x6')](_0x2fe0a7[_0x46a999('0x51')][_0x46a999('0x6')])),_0x295c6a[_0x46a999('0x33')](_0x136d2f);})[_0x4509a7('0x40')](function(_0x597670){if(_0x597670)return _0x597670?{'count':_0x2e6e7f,'rows':_0x597670}:null;})[_0x4509a7('0x40')](respondWithResult(_0xc3ca2b,null))[_0x4509a7('0x5f')](handleError(_0xc3ca2b,null));},exports['addTeams']=function(_0x47d952,_0x1f43ce){const _0x239122=_0x44bd16,_0x441cd9=_0x47d952[_0x239122('0xf')]['ids'];return db[_0x239122('0x2c')][_0x239122('0x26')]({'where':{'id':_0x441cd9},'attributes':['id'],'include':[{'model':db[_0x239122('0x3d')],'as':'Agents','attributes':['id',_0x239122('0x41'),_0x239122('0x5c'),_0x239122('0x29'),_0x239122('0x32')],'raw':!![]}]})['then'](function(_0x7ed487){const _0x4f9e6f=_0x239122;if(_0x7ed487){const _0x527f83=_[_0x4f9e6f('0x22')](_0x7ed487,function(_0x4198d9){const _0x37908b=_0x4f9e6f,_0x3deba1=_0x4198d9[_0x37908b('0xe')]({'plain':!![]});return _0x3deba1['Agents'];});return db[_0x4f9e6f('0x2f')][_0x4f9e6f('0x72')]({'where':{'id':_0x47d952[_0x4f9e6f('0x49')]['id']}})[_0x4f9e6f('0x40')](function(_0x5df64e){const _0x2a5a7a=_0x4f9e6f;return db[_0x2a5a7a('0x6a')][_0x2a5a7a('0x5e')](function(_0x325994){const _0x269d2a=_0x2a5a7a;return _0x5df64e[_0x269d2a('0x2')](_0x441cd9,{'transaction':_0x325994})[_0x269d2a('0x40')](function(){return Promise['each'](_0x527f83,function(_0x488a94){const _0x1c9cdf=a95_0x4b91;return db[_0x1c9cdf('0x53')][_0x1c9cdf('0x68')]({'where':{'UserId':_0x488a94['id'],'ChatQueueId':_0x47d952['params']['id']},'transaction':_0x325994});});})['then'](function(){const _0x51cd43=_0x269d2a;_0x527f83[_0x51cd43('0x48')](function(_0x1fccee){const _0x5e0bd8=_0x51cd43;socket[_0x5e0bd8('0x4')](_0x5e0bd8('0x3'),{'UserId':_0x1fccee['id'],'ChatQueueId':_0x5df64e['id']});});});});});}})['then'](respondWithStatusCode(_0x1f43ce,null))[_0x239122('0x5f')](handleError(_0x1f43ce,null));},exports['removeTeams']=function(_0x3be6c7,_0x394cf0){const _0xffeff8=_0x44bd16;return db[_0xffeff8('0x2c')][_0xffeff8('0x26')]({'where':{'id':_0x3be6c7[_0xffeff8('0x51')][_0xffeff8('0x24')]},'attributes':['id'],'include':[{'model':db[_0xffeff8('0x3d')],'as':_0xffeff8('0x4e'),'attributes':['id'],'raw':!![]}]})[_0xffeff8('0x40')](handleEntityNotFound(_0x394cf0,null))['then'](function(_0x24731d){const _0x4412c6=_0xffeff8,_0x3d26f6=_[_0x4412c6('0x31')](_0x24731d,'id');let _0x50e49a=[];const _0x19abb6=[],_0xf816d2=squel[_0x4412c6('0x50')]();_0xf816d2['field'](_0x4412c6('0x45'))[_0x4412c6('0x1c')](_0x4412c6('0x37'),'tq')[_0x4412c6('0x55')](_0x4412c6('0x18'),'ut',_0x4412c6('0x70'))[_0x4412c6('0x23')](_0x4412c6('0x42'),_0x3be6c7['params']['id']);for(let _0x18d23c=0x0;_0x18d23c<_0x24731d[_0x4412c6('0x52')];_0x18d23c+=0x1){const _0x2c5c21=_0x24731d[_0x18d23c];for(let _0x23b43a=0x0;_0x23b43a<_0x2c5c21[_0x4412c6('0x4e')][_0x4412c6('0x52')];_0x23b43a+=0x1){const _0x15dd2f=_0x2c5c21[_0x4412c6('0x4e')][_0x23b43a],_0x1f3cf5=_0xf816d2['clone']();_0x1f3cf5['where'](_0x4412c6('0x56'),_0x15dd2f['id']),_0x19abb6[_0x4412c6('0xc')](db[_0x4412c6('0x6a')]['query'](_0x1f3cf5[_0x4412c6('0x4f')](),{'type':db[_0x4412c6('0x6a')][_0x4412c6('0x1b')][_0x4412c6('0x1a')]})[_0x4412c6('0x40')](function(_0x18cd79){const _0x42153a=_0x4412c6;if(_0x18cd79[_0x42153a('0x52')]===0x1)return _0x15dd2f['id'];else{const _0x22525e=_[_0x42153a('0x3e')](_[_0x42153a('0x31')](_0x18cd79,_0x42153a('0x3b')),function(_0x5e54f4){const _0x4b9175=_0x42153a;return _[_0x4b9175('0x6b')](_0x3d26f6,_0x5e54f4);});if(_0x22525e)return _0x15dd2f['id'];}}));}}return Promise[_0x4412c6('0xb')](_0x19abb6)[_0x4412c6('0x40')](function(_0x573e47){const _0xfdf144=_0x4412c6;return _0x50e49a=_(_0x50e49a)['union'](_0x573e47)['compact']()['value'](),db[_0xfdf144('0x2f')][_0xfdf144('0x72')]({'where':{'id':_0x3be6c7[_0xfdf144('0x49')]['id']}})[_0xfdf144('0x40')](function(_0x4a19a6){const _0x3d4056=_0xfdf144;return db[_0x3d4056('0x6a')][_0x3d4056('0x5e')](function(_0x6c2de0){const _0x174d5a=_0x3d4056;return _0x4a19a6[_0x174d5a('0x62')](_0x3be6c7['query']['ids'],{'transaction':_0x6c2de0})[_0x174d5a('0x40')](function(){const _0xf9e149=_0x174d5a;if(!_[_0xf9e149('0x4c')](_0x50e49a))return _0x4a19a6[_0xf9e149('0x36')](_0x50e49a,{'transaction':_0x6c2de0});})['then'](function(){_0x50e49a['forEach'](function(_0x4c2ed8){const _0x2d8abe=a95_0x4b91;socket[_0x2d8abe('0x4')]('userChatQueue:remove',{'UserId':_0x4c2ed8,'ChatQueueId':_0x4a19a6['id']});});});});});});})[_0xffeff8('0x40')](respondWithStatusCode(_0x394cf0,null))[_0xffeff8('0x5f')](handleError(_0x394cf0,null));},exports[_0x44bd16('0x1d')]=function(_0x3a158d,_0x43e4e6){const _0x496234=_0x44bd16;return db[_0x496234('0x2f')][_0x496234('0x72')]({'where':{'id':_0x3a158d[_0x496234('0x49')]['id']}})[_0x496234('0x40')](function(_0xdd06b0){const _0x1727a2=_0x496234;if(_0xdd06b0)return _0xdd06b0[_0x1727a2('0x1d')](_0x3a158d[_0x1727a2('0xf')][_0x1727a2('0x24')],{'through':_[_0x1727a2('0x3f')](_0x3a158d[_0x1727a2('0xf')],[_0x1727a2('0x24'),'id'])})[_0x1727a2('0x40')](function(_0x26ceb9){const _0x583658=_0x1727a2;for(let _0x464cb7=0x0;_0x464cb7<_0x3a158d[_0x583658('0xf')][_0x583658('0x24')][_0x583658('0x52')];_0x464cb7+=0x1){socket[_0x583658('0x4')](_0x583658('0x3'),{'UserId':_0x3a158d[_0x583658('0xf')][_0x583658('0x24')][_0x464cb7],'ChatQueueId':_0x3a158d[_0x583658('0x49')]['id']});}return _0x26ceb9;});})[_0x496234('0x40')](respondWithResult(_0x43e4e6,null))[_0x496234('0x5f')](handleError(_0x43e4e6,null));},exports[_0x44bd16('0x36')]=function(_0x4f9ae7,_0x5947d3){const _0x6be73=_0x44bd16;return db['ChatQueue'][_0x6be73('0x72')]({'where':{'id':_0x4f9ae7['params']['id']}})[_0x6be73('0x40')](handleEntityNotFound(_0x5947d3,null))[_0x6be73('0x40')](function(_0x5a4bd2){const _0x3985a7=_0x6be73;if(_0x5a4bd2)return _0x5a4bd2[_0x3985a7('0x36')](_0x4f9ae7['query']['ids'])[_0x3985a7('0x40')](function(){const _0x5ea730=_0x3985a7;if(_[_0x5ea730('0x2b')](_0x4f9ae7[_0x5ea730('0x51')][_0x5ea730('0x24')]))for(let _0x25c9a6=0x0;_0x25c9a6<_0x4f9ae7[_0x5ea730('0x51')]['ids']['length'];_0x25c9a6+=0x1){socket[_0x5ea730('0x4')](_0x5ea730('0x15'),{'UserId':Number(_0x4f9ae7[_0x5ea730('0x51')][_0x5ea730('0x24')][_0x25c9a6]),'ChatQueueId':Number(_0x4f9ae7[_0x5ea730('0x49')]['id'])});}else socket['emit'](_0x5ea730('0x15'),{'UserId':Number(_0x4f9ae7[_0x5ea730('0x51')][_0x5ea730('0x24')]),'ChatQueueId':Number(_0x4f9ae7[_0x5ea730('0x49')]['id'])});});})[_0x6be73('0x40')](respondWithStatusCode(_0x5947d3,null))[_0x6be73('0x5f')](handleError(_0x5947d3,null));},exports[_0x44bd16('0x1')]=function(_0x2544b6,_0x4549c4){const _0x32c187=_0x44bd16;let _0x15c263={};const _0x45ddf3={};let _0x5b482f,_0x41eca7;return db[_0x32c187('0x2f')][_0x32c187('0x72')]({'where':{'id':_0x2544b6[_0x32c187('0x49')]['id']}})[_0x32c187('0x40')](handleEntityNotFound(_0x4549c4,null))[_0x32c187('0x40')](function(_0x123019){const _0x170691=_0x32c187;if(_0x123019)return _0x5b482f=_0x123019,_0x45ddf3[_0x170691('0x6c')]=_[_0x170691('0x14')](db[_0x170691('0x3d')][_0x170691('0x0')]),_0x45ddf3['query']=_[_0x170691('0x14')](_0x2544b6['query']),_0x45ddf3[_0x170691('0x6d')]=_[_0x170691('0x64')](_0x45ddf3[_0x170691('0x6c')],_0x45ddf3[_0x170691('0x51')]),_0x15c263[_0x170691('0x66')]=_[_0x170691('0x64')](_0x45ddf3[_0x170691('0x6c')],qs[_0x170691('0x47')](_0x2544b6['query'][_0x170691('0x47')])),_0x15c263[_0x170691('0x66')]=_0x15c263[_0x170691('0x66')][_0x170691('0x52')]?_0x15c263[_0x170691('0x66')]:_0x45ddf3[_0x170691('0x6c')],_0x15c263['order']=qs[_0x170691('0x35')](_0x2544b6[_0x170691('0x51')][_0x170691('0x35')]),_0x15c263[_0x170691('0x23')]=qs['filters'](_[_0x170691('0x46')](_0x2544b6[_0x170691('0x51')],_0x45ddf3['filters'])),_0x2544b6[_0x170691('0x51')][_0x170691('0x65')]&&(_0x15c263[_0x170691('0x23')]=_[_0x170691('0xa')](_0x15c263[_0x170691('0x23')],{[Op['or']]:_[_0x170691('0x31')](_0x15c263[_0x170691('0x66')],function(_0x377b43){const _0x1bae5f=_0x170691,_0x3f78c7={};return _0x3f78c7[_0x377b43]={[Op[_0x1bae5f('0x30')]]:'%'+_0x2544b6[_0x1bae5f('0x51')][_0x1bae5f('0x65')]+'%'},_0x3f78c7;})})),_0x15c263=_[_0x170691('0xa')]({},_0x15c263,_0x2544b6[_0x170691('0x25')]),_0x5b482f[_0x170691('0x1')](_0x15c263);})[_0x32c187('0x40')](function(_0xdb1e4a){const _0x1b7bb2=_0x32c187;if(_0xdb1e4a)return _0x41eca7=_0xdb1e4a['length'],typeof _0x2544b6[_0x1b7bb2('0x51')]['nolimit']===_0x1b7bb2('0x5')&&(_0x15c263[_0x1b7bb2('0x20')]=qs[_0x1b7bb2('0x20')](_0x2544b6[_0x1b7bb2('0x51')][_0x1b7bb2('0x20')]),_0x15c263[_0x1b7bb2('0x6')]=qs[_0x1b7bb2('0x6')](_0x2544b6[_0x1b7bb2('0x51')][_0x1b7bb2('0x6')])),_0x5b482f[_0x1b7bb2('0x1')](_0x15c263);})[_0x32c187('0x40')](function(_0x366826){if(_0x366826)return _0x366826?{'count':_0x41eca7,'rows':_0x366826}:null;})[_0x32c187('0x40')](respondWithResult(_0x4549c4,null))[_0x32c187('0x5f')](handleError(_0x4549c4,null));}; \ No newline at end of file +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 diff --git a/server/api/chatQueue/chatQueue.events.js b/server/api/chatQueue/chatQueue.events.js index cf20c73..9120fa1 100644 --- a/server/api/chatQueue/chatQueue.events.js +++ b/server/api/chatQueue/chatQueue.events.js @@ -1 +1 @@ -const a96_0x480d=['setMaxListeners','events','update','emit','../../mysqldb','save'];(function(_0x37109d,_0x480d52){const _0x1e1f97=function(_0x4767f8){while(--_0x4767f8){_0x37109d['push'](_0x37109d['shift']());}};_0x1e1f97(++_0x480d52);}(a96_0x480d,0x11d));const a96_0x1e1f=function(_0x37109d,_0x480d52){_0x37109d=_0x37109d-0x0;let _0x1e1f97=a96_0x480d[_0x37109d];return _0x1e1f97;};const _0xa0ade2=a96_0x1e1f;'use strict';const EventEmitter=require(_0xa0ade2('0x4')),ChatQueue=require(_0xa0ade2('0x1'))['db']['ChatQueue'],ChatQueueEvents=new EventEmitter();ChatQueueEvents[_0xa0ade2('0x3')](0x0);const events={'afterCreate':_0xa0ade2('0x2'),'afterUpdate':_0xa0ade2('0x5'),'afterDestroy':'remove'};function emitEvent(_0x4767f8){return function(_0x3f49a8){const _0x532534=a96_0x1e1f;ChatQueueEvents[_0x532534('0x0')](_0x4767f8+':'+_0x3f49a8['id'],_0x3f49a8),ChatQueueEvents[_0x532534('0x0')](_0x4767f8,_0x3f49a8);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];ChatQueue['addHook'](e,emitEvent(event));}}module['exports']=ChatQueueEvents; \ No newline at end of file +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 diff --git a/server/api/chatQueue/chatQueue.model.js b/server/api/chatQueue/chatQueue.model.js index 215b93d..33c7e58 100644 --- a/server/api/chatQueue/chatQueue.model.js +++ b/server/api/chatQueue/chatQueue.model.js @@ -1 +1 @@ -const a97_0x408e=['ChatQueue','chat_queues','exports','./chatQueue.attributes','define'];(function(_0x2005d9,_0x408e72){const _0x159a7f=function(_0xb27c30){while(--_0xb27c30){_0x2005d9['push'](_0x2005d9['shift']());}};_0x159a7f(++_0x408e72);}(a97_0x408e,0x1c3));const a97_0x159a=function(_0x2005d9,_0x408e72){_0x2005d9=_0x2005d9-0x0;let _0x159a7f=a97_0x408e[_0x2005d9];return _0x159a7f;};const _0x5cfd47=a97_0x159a;'use strict';const attributes=require(_0x5cfd47('0x2'));module[_0x5cfd47('0x1')]=function(_0xb27c30){const _0x563d00=_0x5cfd47,_0xd18ddb=_0xb27c30[_0x563d00('0x3')](_0x563d00('0x4'),attributes,{'tableName':_0x563d00('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xd18ddb;}; \ No newline at end of file +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 diff --git a/server/api/chatQueue/chatQueue.rpc.js b/server/api/chatQueue/chatQueue.rpc.js index bd8a967..485cae0 100644 --- a/server/api/chatQueue/chatQueue.rpc.js +++ b/server/api/chatQueue/chatQueue.rpc.js @@ -1 +1 @@ -const a98_0x3697=['../../mysqldb','ChatQueue','attributes','where','GetChatQueue','debug','info','catch','map','ShowChatQueue','limit','options','stringify','findOne','./chatQueue.socket','then','raw','include','lodash','error','message','model','register','findAll','../../rediscache'];(function(_0x6ec566,_0x369756){const _0x4defcd=function(_0x305b9b){while(--_0x305b9b){_0x6ec566['push'](_0x6ec566['shift']());}};_0x4defcd(++_0x369756);}(a98_0x3697,0x13b));const a98_0x4def=function(_0x6ec566,_0x369756){_0x6ec566=_0x6ec566-0x0;let _0x4defcd=a98_0x3697[_0x6ec566];return _0x4defcd;};const _0x2653e5=a98_0x4def;'use strict';const _=require(_0x2653e5('0x3')),db=require(_0x2653e5('0xa'))['db'],logger=require('../../config/logger')('rpc'),{getSocket}=require(_0x2653e5('0x9')),socket=getSocket();require(_0x2653e5('0x18'))[_0x2653e5('0x7')](socket),exports[_0x2653e5('0xe')]=function(_0x305b9b){const _0x366a3d=this;return new Promise(function(_0xe0f566,_0x152908){const _0x284f4c=a98_0x4def;return db[_0x284f4c('0xb')][_0x284f4c('0x8')]({'raw':_0x305b9b[_0x284f4c('0x15')]?_0x305b9b['options'][_0x284f4c('0x1')]===undefined?!![]:![]:!![],'where':_0x305b9b[_0x284f4c('0x15')]?_0x305b9b[_0x284f4c('0x15')]['where']||null:null,'attributes':_0x305b9b[_0x284f4c('0x15')]?_0x305b9b[_0x284f4c('0x15')][_0x284f4c('0xc')]||null:null,'limit':_0x305b9b[_0x284f4c('0x15')]?_0x305b9b[_0x284f4c('0x15')][_0x284f4c('0x14')]||null:null,'include':_0x305b9b[_0x284f4c('0x15')]?_0x305b9b[_0x284f4c('0x15')][_0x284f4c('0x2')]?_[_0x284f4c('0x12')](_0x305b9b['options']['include'],function(_0x40e8dc){const _0x98fb2e=_0x284f4c;return{'model':db[_0x40e8dc[_0x98fb2e('0x6')]],'as':_0x40e8dc['as'],'attributes':_0x40e8dc[_0x98fb2e('0xc')],'include':_0x40e8dc['include']?_[_0x98fb2e('0x12')](_0x40e8dc[_0x98fb2e('0x2')],function(_0x5d2fea){const _0x2473f7=_0x98fb2e;return{'model':db[_0x5d2fea[_0x2473f7('0x6')]],'as':_0x5d2fea['as'],'attributes':_0x5d2fea['attributes'],'include':_0x5d2fea['include']?_['map'](_0x5d2fea[_0x2473f7('0x2')],function(_0x397e27){const _0x1d61ec=_0x2473f7;return{'model':db[_0x397e27['model']],'as':_0x397e27['as'],'attributes':_0x397e27[_0x1d61ec('0xc')]};}):[]};}):[]};}):[]:[]})[_0x284f4c('0x0')](function(_0xd9d4be){const _0x49c543=_0x284f4c;logger['info'](_0x49c543('0xe'),_0x305b9b),logger[_0x49c543('0xf')](_0x49c543('0xe'),_0x305b9b,JSON['stringify'](_0xd9d4be)),_0xe0f566(_0xd9d4be);})[_0x284f4c('0x11')](function(_0x592557){const _0x49b383=_0x284f4c;logger[_0x49b383('0x4')]('GetChatQueue',_0x592557[_0x49b383('0x5')],_0x305b9b),_0x152908(_0x366a3d[_0x49b383('0x4')](0x1f4,_0x592557[_0x49b383('0x5')]));});});},exports[_0x2653e5('0x13')]=function(_0x1b97ca){const _0x421030=this;return new Promise(function(_0x4890e4,_0x31b81c){const _0x45233e=a98_0x4def;return db['ChatQueue'][_0x45233e('0x17')]({'raw':_0x1b97ca[_0x45233e('0x15')]?_0x1b97ca['options'][_0x45233e('0x1')]===undefined?!![]:![]:!![],'where':_0x1b97ca['options']?_0x1b97ca[_0x45233e('0x15')][_0x45233e('0xd')]||null:null,'attributes':_0x1b97ca[_0x45233e('0x15')]?_0x1b97ca[_0x45233e('0x15')][_0x45233e('0xc')]||null:null,'include':_0x1b97ca[_0x45233e('0x15')]?_0x1b97ca[_0x45233e('0x15')][_0x45233e('0x2')]?_['map'](_0x1b97ca[_0x45233e('0x15')][_0x45233e('0x2')],function(_0x144261){const _0x4daa86=_0x45233e;return{'model':db[_0x144261[_0x4daa86('0x6')]],'as':_0x144261['as'],'attributes':_0x144261['attributes'],'include':_0x144261['include']?_[_0x4daa86('0x12')](_0x144261[_0x4daa86('0x2')],function(_0x29ce24){const _0x42d7c8=_0x4daa86;return{'model':db[_0x29ce24[_0x42d7c8('0x6')]],'as':_0x29ce24['as'],'attributes':_0x29ce24[_0x42d7c8('0xc')],'include':_0x29ce24[_0x42d7c8('0x2')]?_[_0x42d7c8('0x12')](_0x29ce24['include'],function(_0x1389ae){const _0x31d955=_0x42d7c8;return{'model':db[_0x1389ae[_0x31d955('0x6')]],'as':_0x1389ae['as'],'attributes':_0x1389ae[_0x31d955('0xc')]};}):[]};}):[]};}):[]:[]})[_0x45233e('0x0')](function(_0x3c91b2){const _0x1fb958=_0x45233e;logger[_0x1fb958('0x10')](_0x1fb958('0x13'),_0x1b97ca),logger[_0x1fb958('0xf')](_0x1fb958('0x13'),_0x1b97ca,JSON[_0x1fb958('0x16')](_0x3c91b2)),_0x4890e4(_0x3c91b2);})[_0x45233e('0x11')](function(_0x3119e4){const _0x1417e5=_0x45233e;logger[_0x1417e5('0x4')](_0x1417e5('0x13'),_0x3119e4[_0x1417e5('0x5')],_0x1b97ca),_0x31b81c(_0x421030[_0x1417e5('0x4')](0x1f4,_0x3119e4['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/chatQueue/chatQueue.socket.js b/server/api/chatQueue/chatQueue.socket.js index 26a9f79..1c4bba1 100644 --- a/server/api/chatQueue/chatQueue.socket.js +++ b/server/api/chatQueue/chatQueue.socket.js @@ -1 +1 @@ -const a99_0x4d0f=['remove','update','register','length','save','emit'];(function(_0x5de3f1,_0x4d0fc3){const _0x1f3e40=function(_0x305732){while(--_0x305732){_0x5de3f1['push'](_0x5de3f1['shift']());}};_0x1f3e40(++_0x4d0fc3);}(a99_0x4d0f,0x13e));const a99_0x1f3e=function(_0x5de3f1,_0x4d0fc3){_0x5de3f1=_0x5de3f1-0x0;let _0x1f3e40=a99_0x4d0f[_0x5de3f1];return _0x1f3e40;};const _0x182e2c=a99_0x1f3e;'use strict';const ChatQueueEvents=require('./chatQueue.events'),events=[_0x182e2c('0x4'),_0x182e2c('0x0'),_0x182e2c('0x1')];function createListener(_0x305732,_0x3dd374){return function(_0x7ba9d1){const _0x51fc84=a99_0x1f3e;_0x3dd374[_0x51fc84('0x5')](_0x305732,_0x7ba9d1);};}exports[_0x182e2c('0x2')]=function(_0x1a52d5){const _0x153313=_0x182e2c;for(let _0x2c0266=0x0,_0x383968=events[_0x153313('0x3')];_0x2c0266<_0x383968;_0x2c0266++){const _0x1aa0fa=events[_0x2c0266],_0x1b9f2a=createListener('chatQueue:'+_0x1aa0fa,_0x1a52d5);ChatQueueEvents['on'](_0x1aa0fa,_0x1b9f2a);}}; \ No newline at end of file +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 diff --git a/server/api/chatQueue/index.js b/server/api/chatQueue/index.js index fce4aea..f50a8da 100644 --- a/server/api/chatQueue/index.js +++ b/server/api/chatQueue/index.js @@ -1 +1 @@ -const a100_0x29dc=['addAgents','isAuthenticated','delete','addTeams','Router','create','express','show','get','/:id/members','/:id/users','getMembers','removeAgents','exports','removeTeams','put','describe','getAgents','/:id','../../components/auth/service','destroy','getTeams','post'];(function(_0x153bcc,_0x29dc35){const _0x2b6a94=function(_0x2eb363){while(--_0x2eb363){_0x153bcc['push'](_0x153bcc['shift']());}};_0x2b6a94(++_0x29dc35);}(a100_0x29dc,0x196));const a100_0x2b6a=function(_0x153bcc,_0x29dc35){_0x153bcc=_0x153bcc-0x0;let _0x2b6a94=a100_0x29dc[_0x153bcc];return _0x2b6a94;};const _0x591df3=a100_0x2b6a;'use strict';const express=require(_0x591df3('0xe')),router=express[_0x591df3('0xc')](),auth=require(_0x591df3('0x4')),controller=require('./chatQueue.controller');router[_0x591df3('0x10')]('/',auth[_0x591df3('0x9')](),controller['index']),router['get']('/describe',auth['isAuthenticated'](),controller[_0x591df3('0x1')]),router['get'](_0x591df3('0x3'),auth[_0x591df3('0x9')](),controller[_0x591df3('0xf')]),router['get'](_0x591df3('0x11'),auth[_0x591df3('0x9')](),controller[_0x591df3('0x13')]),router[_0x591df3('0x10')]('/:id/teams',auth['isAuthenticated'](),controller[_0x591df3('0x6')]),router[_0x591df3('0x10')](_0x591df3('0x12'),auth[_0x591df3('0x9')](),controller[_0x591df3('0x2')]),router[_0x591df3('0x7')]('/',auth['isAuthenticated'](),controller[_0x591df3('0xd')]),router[_0x591df3('0x7')]('/:id/teams',auth[_0x591df3('0x9')](),controller[_0x591df3('0xb')]),router[_0x591df3('0x7')](_0x591df3('0x12'),auth[_0x591df3('0x9')](),controller[_0x591df3('0x8')]),router[_0x591df3('0x0')]('/:id',auth[_0x591df3('0x9')](),controller['update']),router[_0x591df3('0xa')](_0x591df3('0x3'),auth[_0x591df3('0x9')](),controller[_0x591df3('0x5')]),router['delete']('/:id/teams',auth[_0x591df3('0x9')](),controller[_0x591df3('0x16')]),router['delete'](_0x591df3('0x12'),auth[_0x591df3('0x9')](),controller[_0x591df3('0x14')]),module[_0x591df3('0x15')]=router; \ No newline at end of file +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 diff --git a/server/api/chatQueueReport/chatQueueReport.attributes.js b/server/api/chatQueueReport/chatQueueReport.attributes.js index 7edbbc1..68c1f35 100644 --- a/server/api/chatQueueReport/chatQueueReport.attributes.js +++ b/server/api/chatQueueReport/chatQueueReport.attributes.js @@ -1 +1 @@ -const a101_0x4693=['sequelize','DATE','exports','STRING'];(function(_0x546a51,_0x4693fb){const _0x5d88fe=function(_0x129fba){while(--_0x129fba){_0x546a51['push'](_0x546a51['shift']());}};_0x5d88fe(++_0x4693fb);}(a101_0x4693,0x13c));const a101_0x5d88=function(_0x546a51,_0x4693fb){_0x546a51=_0x546a51-0x0;let _0x5d88fe=a101_0x4693[_0x546a51];return _0x5d88fe;};const _0x4c410d=a101_0x5d88;'use strict';const Sequelize=require(_0x4c410d('0x0'));module[_0x4c410d('0x2')]={'uniqueid':{'type':Sequelize[_0x4c410d('0x3')],'allowNull':![]},'from':{'type':Sequelize[_0x4c410d('0x3')]},'joinAt':{'type':Sequelize[_0x4c410d('0x1')]},'leaveAt':{'type':Sequelize[_0x4c410d('0x1')]},'acceptAt':{'type':Sequelize['DATE']},'exitAt':{'type':Sequelize[_0x4c410d('0x1')]},'reason':{'type':Sequelize[_0x4c410d('0x3')]}}; \ No newline at end of file +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 diff --git a/server/api/chatQueueReport/chatQueueReport.controller.js b/server/api/chatQueueReport/chatQueueReport.controller.js index 696fd6e..0c8d697 100644 --- a/server/api/chatQueueReport/chatQueueReport.controller.js +++ b/server/api/chatQueueReport/chatQueueReport.controller.js @@ -1 +1 @@ -const a102_0x101a=['include','merge','../../components/parsers/qs','keys','ChatQueueReport','then','rawAttributes','status','catch','fieldName','attributes','sort','where','stack','filters','filter','show','fields','name','send','model','body','end','length','findOne','rows','../../mysqldb','includeAll','like','update','lodash','key','limit','map','intersection','params','json','type','create','count','offset','Content-Range','query','options','../../config/logger','destroy','nolimit','sequelize','order','error'];(function(_0xb33052,_0x101a38){const _0x45ed3=function(_0x58bc00){while(--_0x58bc00){_0xb33052['push'](_0xb33052['shift']());}};_0x45ed3(++_0x101a38);}(a102_0x101a,0xa1));const a102_0x45ed=function(_0xb33052,_0x101a38){_0xb33052=_0xb33052-0x0;let _0x45ed3=a102_0x101a[_0xb33052];return _0x45ed3;};const _0xe72607=a102_0x45ed;'use strict';const _=require(_0xe72607('0x13')),qs=require(_0xe72607('0x29')),logger=require(_0xe72607('0x21'))('api'),db=require(_0xe72607('0xf'))['db'],{Op}=require(_0xe72607('0x24'));function respondWithResult(_0x58bc00,_0x34354e){return _0x34354e=_0x34354e||0xc8,function(_0x105c35){const _0x4f5e74=a102_0x45ed;if(_0x105c35)return _0x58bc00[_0x4f5e74('0x2e')](_0x34354e)[_0x4f5e74('0x19')](_0x105c35);};}function respondWithFilteredResult(_0x189842,_0x1ae4e4){return function(_0x3e9265){const _0x56d6ff=a102_0x45ed;if(_0x3e9265){const _0x21f211=_0x3e9265[_0x56d6ff('0x1c')],_0x254d6d=_0x1ae4e4[_0x56d6ff('0x1d')];let _0x1471f2=_0x1ae4e4[_0x56d6ff('0x1d')]+_0x1ae4e4[_0x56d6ff('0x15')],_0x447442;return _0x1471f2>=_0x21f211?(_0x1471f2=_0x21f211,_0x447442=0xc8):_0x447442=0xce,_0x189842['status'](_0x447442),_0x189842['set'](_0x56d6ff('0x1e'),_0x254d6d+'-'+_0x1471f2+'/'+_0x21f211)[_0x56d6ff('0x19')](_0x3e9265);}return null;};}function saveUpdates(_0x597406){return function(_0x16e22f){const _0x5882f2=a102_0x45ed;if(_0x16e22f)return _0x16e22f[_0x5882f2('0x12')](_0x597406)[_0x5882f2('0x2c')](function(_0x477a77){return _0x477a77;});return null;};}function removeEntity(_0x27524c){return function(_0x4c9a64){const _0x341f73=a102_0x45ed;if(_0x4c9a64)return _0x4c9a64[_0x341f73('0x22')]()[_0x341f73('0x2c')](function(){const _0x12da55=_0x341f73;_0x27524c[_0x12da55('0x2e')](0xcc)[_0x12da55('0xb')]();});};}function handleEntityNotFound(_0x1ffe14){return function(_0x29f3d0){return!_0x29f3d0&&_0x1ffe14['sendStatus'](0x194),_0x29f3d0;};}function handleError(_0x49baaf,_0x216fd4){return _0x216fd4=_0x216fd4||0x1f4,function(_0x1771f7){const _0x1ee9af=a102_0x45ed;logger[_0x1ee9af('0x26')](_0x1771f7[_0x1ee9af('0x2')]),_0x1771f7[_0x1ee9af('0x7')]&&delete _0x1771f7[_0x1ee9af('0x7')],_0x49baaf[_0x1ee9af('0x2e')](_0x216fd4)[_0x1ee9af('0x8')](_0x1771f7);};}exports['index']=function(_0x4e8871,_0x246d75){const _0x1ed714=_0xe72607;let _0x41b572={};const _0x51b2ad={},_0x5dba45={'count':0x0,'rows':[]},_0x2b6ddd=_[_0x1ed714('0x16')](db['ChatQueueReport'][_0x1ed714('0x2d')],function(_0x1923b8){const _0x44fd53=_0x1ed714;return{'name':_0x1923b8[_0x44fd53('0x30')],'type':_0x1923b8['type'][_0x44fd53('0x14')]};});_0x51b2ad[_0x1ed714('0x9')]=_['map'](_0x2b6ddd,'name'),_0x51b2ad[_0x1ed714('0x1f')]=_[_0x1ed714('0x2a')](_0x4e8871[_0x1ed714('0x1f')]),_0x51b2ad[_0x1ed714('0x3')]=_['intersection'](_0x51b2ad['model'],_0x51b2ad[_0x1ed714('0x1f')]),_0x41b572['attributes']=_[_0x1ed714('0x17')](_0x51b2ad[_0x1ed714('0x9')],qs[_0x1ed714('0x6')](_0x4e8871[_0x1ed714('0x1f')][_0x1ed714('0x6')])),_0x41b572[_0x1ed714('0x31')]=_0x41b572[_0x1ed714('0x31')][_0x1ed714('0xc')]?_0x41b572[_0x1ed714('0x31')]:_0x51b2ad[_0x1ed714('0x9')];typeof _0x4e8871['query'][_0x1ed714('0x23')]==='undefined'&&(_0x41b572[_0x1ed714('0x15')]=qs['limit'](_0x4e8871[_0x1ed714('0x1f')][_0x1ed714('0x15')]),_0x41b572[_0x1ed714('0x1d')]=qs['offset'](_0x4e8871['query'][_0x1ed714('0x1d')]));_0x41b572[_0x1ed714('0x25')]=qs[_0x1ed714('0x0')](_0x4e8871['query'][_0x1ed714('0x0')]),_0x41b572[_0x1ed714('0x1')]=qs[_0x1ed714('0x3')](_['pick'](_0x4e8871[_0x1ed714('0x1f')],_0x51b2ad[_0x1ed714('0x3')]),_0x2b6ddd);_0x4e8871[_0x1ed714('0x1f')][_0x1ed714('0x4')]&&(_0x41b572[_0x1ed714('0x1')]=_[_0x1ed714('0x28')](_0x41b572[_0x1ed714('0x1')],{[Op['or']]:_[_0x1ed714('0x16')](_0x2b6ddd,function(_0x5cd237){const _0x209689=_0x1ed714;if(_0x5cd237[_0x209689('0x1a')]!=='VIRTUAL'){const _0x24b2e1={};return _0x24b2e1[_0x5cd237[_0x209689('0x7')]]={[Op[_0x209689('0x11')]]:'%'+_0x4e8871[_0x209689('0x1f')][_0x209689('0x4')]+'%'},_0x24b2e1;}})}));_0x41b572=_['merge']({},_0x41b572,_0x4e8871[_0x1ed714('0x20')]);const _0x18ca2c={'where':_0x41b572['where']};return db['ChatQueueReport'][_0x1ed714('0x1c')](_0x18ca2c)[_0x1ed714('0x2c')](function(_0x26ca48){const _0x5b5339=_0x1ed714;return _0x5dba45['count']=_0x26ca48,_0x4e8871['query'][_0x5b5339('0x10')]&&(_0x41b572[_0x5b5339('0x27')]=[{'all':!![]}]),db[_0x5b5339('0x2b')]['findAll'](_0x41b572);})[_0x1ed714('0x2c')](function(_0x46a008){const _0x197e0b=_0x1ed714;return _0x5dba45[_0x197e0b('0xe')]=_0x46a008,_0x5dba45;})[_0x1ed714('0x2c')](respondWithFilteredResult(_0x246d75,_0x41b572))[_0x1ed714('0x2f')](handleError(_0x246d75,null));},exports[_0xe72607('0x5')]=function(_0x1ae7df,_0x13fde2){const _0x2597b2=_0xe72607;let _0x2dd550={'raw':!![],'where':{'id':_0x1ae7df[_0x2597b2('0x18')]['id']}};const _0x4fa30b={};return _0x4fa30b[_0x2597b2('0x9')]=_[_0x2597b2('0x2a')](db[_0x2597b2('0x2b')]['rawAttributes']),_0x4fa30b[_0x2597b2('0x1f')]=_['keys'](_0x1ae7df[_0x2597b2('0x1f')]),_0x4fa30b[_0x2597b2('0x3')]=_[_0x2597b2('0x17')](_0x4fa30b[_0x2597b2('0x9')],_0x4fa30b[_0x2597b2('0x1f')]),_0x2dd550[_0x2597b2('0x31')]=_['intersection'](_0x4fa30b[_0x2597b2('0x9')],qs['fields'](_0x1ae7df[_0x2597b2('0x1f')][_0x2597b2('0x6')])),_0x2dd550[_0x2597b2('0x31')]=_0x2dd550[_0x2597b2('0x31')][_0x2597b2('0xc')]?_0x2dd550[_0x2597b2('0x31')]:_0x4fa30b[_0x2597b2('0x9')],_0x1ae7df[_0x2597b2('0x1f')][_0x2597b2('0x10')]&&(_0x2dd550[_0x2597b2('0x27')]=[{'all':!![]}]),_0x2dd550=_[_0x2597b2('0x28')]({},_0x2dd550,_0x1ae7df['options']),db[_0x2597b2('0x2b')][_0x2597b2('0xd')](_0x2dd550)[_0x2597b2('0x2c')](handleEntityNotFound(_0x13fde2,null))[_0x2597b2('0x2c')](respondWithResult(_0x13fde2,null))[_0x2597b2('0x2f')](handleError(_0x13fde2,null));},exports[_0xe72607('0x1b')]=function(_0x8a958c,_0x4c5858){const _0x2ad143=_0xe72607;return db['ChatQueueReport'][_0x2ad143('0x1b')](_0x8a958c[_0x2ad143('0xa')],{})[_0x2ad143('0x2c')](respondWithResult(_0x4c5858,0xc9))[_0x2ad143('0x2f')](handleError(_0x4c5858,null));},exports[_0xe72607('0x12')]=function(_0x1c939f,_0x365073){const _0x4dca8d=_0xe72607;return _0x1c939f['body']['id']&&delete _0x1c939f[_0x4dca8d('0xa')]['id'],db['ChatQueueReport'][_0x4dca8d('0xd')]({'where':{'id':_0x1c939f[_0x4dca8d('0x18')]['id']}})['then'](handleEntityNotFound(_0x365073,null))[_0x4dca8d('0x2c')](saveUpdates(_0x1c939f['body'],null))[_0x4dca8d('0x2c')](respondWithResult(_0x365073,null))[_0x4dca8d('0x2f')](handleError(_0x365073,null));},exports[_0xe72607('0x22')]=function(_0x431d5d,_0x4753e7){const _0x2f6f35=_0xe72607;return db[_0x2f6f35('0x2b')][_0x2f6f35('0xd')]({'where':{'id':_0x431d5d[_0x2f6f35('0x18')]['id']}})[_0x2f6f35('0x2c')](handleEntityNotFound(_0x4753e7,null))[_0x2f6f35('0x2c')](removeEntity(_0x4753e7,null))['catch'](handleError(_0x4753e7,null));},exports['describe']=function(_0x4bc43a,_0x9002f2){const _0x52de84=_0xe72607;return db['ChatQueueReport']['describe']()[_0x52de84('0x2c')](respondWithResult(_0x9002f2,null))[_0x52de84('0x2f')](handleError(_0x9002f2,null));}; \ No newline at end of file +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 diff --git a/server/api/chatQueueReport/chatQueueReport.model.js b/server/api/chatQueueReport/chatQueueReport.model.js index 640c701..8693677 100644 --- a/server/api/chatQueueReport/chatQueueReport.model.js +++ b/server/api/chatQueueReport/chatQueueReport.model.js @@ -1 +1 @@ -const a103_0x531b=['./chatQueueReport.attributes','uniqueid','define','report_chat_queue','exports'];(function(_0x1fe7bd,_0x531b6b){const _0x3cfb53=function(_0x1793d0){while(--_0x1793d0){_0x1fe7bd['push'](_0x1fe7bd['shift']());}};_0x3cfb53(++_0x531b6b);}(a103_0x531b,0x1c3));const a103_0x3cfb=function(_0x1fe7bd,_0x531b6b){_0x1fe7bd=_0x1fe7bd-0x0;let _0x3cfb53=a103_0x531b[_0x1fe7bd];return _0x3cfb53;};const _0x42d6d4=a103_0x3cfb;'use strict';const attributes=require(_0x42d6d4('0x4'));module[_0x42d6d4('0x3')]=function(_0x1793d0){const _0x124d5d=_0x42d6d4,_0x5a53a2=_0x1793d0[_0x124d5d('0x1')]('ChatQueueReport',attributes,{'tableName':_0x124d5d('0x2'),'paranoid':![],'indexes':[{'name':_0x124d5d('0x0'),'fields':['uniqueid']}],'timestamps':!![]});return _0x5a53a2;}; \ No newline at end of file +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 diff --git a/server/api/chatQueueReport/chatQueueReport.rpc.js b/server/api/chatQueueReport/chatQueueReport.rpc.js index b9004e5..c787e0d 100644 --- a/server/api/chatQueueReport/chatQueueReport.rpc.js +++ b/server/api/chatQueueReport/chatQueueReport.rpc.js @@ -1 +1 @@ -const a104_0x423b=['../../config/logger','CreateChatQueueReport','where','ChatQueueReport','raw','body','../../mysqldb','error','options','catch','UpdateChatQueueReport','limit','then','stringify','attributes','message','debug','info','update'];(function(_0xc86017,_0x423bb5){const _0x539452=function(_0xdb2aee){while(--_0xdb2aee){_0xc86017['push'](_0xc86017['shift']());}};_0x539452(++_0x423bb5);}(a104_0x423b,0x13b));const a104_0x5394=function(_0xc86017,_0x423bb5){_0xc86017=_0xc86017-0x0;let _0x539452=a104_0x423b[_0xc86017];return _0x539452;};const _0x56156b=a104_0x5394;'use strict';const db=require(_0x56156b('0xe'))['db'],logger=require(_0x56156b('0x8'))('rpc');exports[_0x56156b('0x9')]=function(_0xdb2aee){const _0x256c60=this;return new Promise(function(_0x5207af,_0x5cd85e){const _0x58b2f3=a104_0x5394;return db[_0x58b2f3('0xb')]['create'](_0xdb2aee[_0x58b2f3('0xd')],{'raw':_0xdb2aee[_0x58b2f3('0x10')]?_0xdb2aee['options']['raw']===undefined?!![]:![]:!![]})[_0x58b2f3('0x1')](function(_0x119f92){const _0x8a33c1=_0x58b2f3;logger[_0x8a33c1('0x6')](_0x8a33c1('0x9'),_0xdb2aee),logger[_0x8a33c1('0x5')](_0x8a33c1('0x9'),_0xdb2aee,JSON[_0x8a33c1('0x2')](_0x119f92)),_0x5207af(_0x119f92);})[_0x58b2f3('0x11')](function(_0x2fb5e8){const _0x35ea52=_0x58b2f3;logger['error'](_0x35ea52('0x9'),_0x2fb5e8[_0x35ea52('0x4')],_0xdb2aee),_0x5cd85e(_0x256c60[_0x35ea52('0xf')](0x1f4,_0x2fb5e8['message']));});});},exports[_0x56156b('0x12')]=function(_0x1a79c1){const _0x3f9610=this;return new Promise(function(_0x25a5de,_0x52a17c){const _0x58f324=a104_0x5394;return db[_0x58f324('0xb')][_0x58f324('0x7')](_0x1a79c1[_0x58f324('0xd')],{'raw':_0x1a79c1['options']?_0x1a79c1[_0x58f324('0x10')][_0x58f324('0xc')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1a79c1['options']?_0x1a79c1[_0x58f324('0x10')][_0x58f324('0xa')]||null:null,'attributes':_0x1a79c1[_0x58f324('0x10')]?_0x1a79c1[_0x58f324('0x10')][_0x58f324('0x3')]||null:null,'limit':_0x1a79c1[_0x58f324('0x10')]?_0x1a79c1[_0x58f324('0x10')][_0x58f324('0x0')]||null:null})[_0x58f324('0x1')](function(_0x1e1847){const _0x3b3106=_0x58f324;logger[_0x3b3106('0x6')](_0x3b3106('0x12'),_0x1a79c1),logger[_0x3b3106('0x5')](_0x3b3106('0x12'),_0x1a79c1,JSON['stringify'](_0x1e1847)),_0x25a5de(_0x1e1847);})[_0x58f324('0x11')](function(_0x1f6d26){const _0x5a4b66=_0x58f324;logger[_0x5a4b66('0xf')](_0x5a4b66('0x12'),_0x1f6d26[_0x5a4b66('0x4')],_0x1a79c1),_0x52a17c(_0x3f9610[_0x5a4b66('0xf')](0x1f4,_0x1f6d26[_0x5a4b66('0x4')]));});});}; \ No newline at end of file +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 diff --git a/server/api/chatQueueReport/index.js b/server/api/chatQueueReport/index.js index 9bceb7d..1fe9fc1 100644 --- a/server/api/chatQueueReport/index.js +++ b/server/api/chatQueueReport/index.js @@ -1 +1 @@ -const a105_0x315b=['/describe','update','../../components/auth/service','put','./chatQueueReport.controller','/:id','isAuthenticated','get','delete','create','post','index','destroy','exports','describe','express'];(function(_0x13e62b,_0x315b05){const _0x392e5a=function(_0x696ab){while(--_0x696ab){_0x13e62b['push'](_0x13e62b['shift']());}};_0x392e5a(++_0x315b05);}(a105_0x315b,0x1a0));const a105_0x392e=function(_0x13e62b,_0x315b05){_0x13e62b=_0x13e62b-0x0;let _0x392e5a=a105_0x315b[_0x13e62b];return _0x392e5a;};const _0x1388ed=a105_0x392e;'use strict';const express=require(_0x1388ed('0xf')),router=express['Router'](),auth=require(_0x1388ed('0x2')),controller=require(_0x1388ed('0x4'));router[_0x1388ed('0x7')]('/',auth[_0x1388ed('0x6')](),controller[_0x1388ed('0xb')]),router[_0x1388ed('0x7')](_0x1388ed('0x0'),auth[_0x1388ed('0x6')](),controller[_0x1388ed('0xe')]),router[_0x1388ed('0x7')](_0x1388ed('0x5'),auth[_0x1388ed('0x6')](),controller['show']),router[_0x1388ed('0xa')]('/',auth['isAuthenticated'](),controller[_0x1388ed('0x9')]),router[_0x1388ed('0x3')]('/:id',auth[_0x1388ed('0x6')](),controller[_0x1388ed('0x1')]),router[_0x1388ed('0x8')](_0x1388ed('0x5'),auth[_0x1388ed('0x6')](),controller[_0x1388ed('0xc')]),module[_0x1388ed('0xd')]=router; \ No newline at end of file +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 diff --git a/server/api/chatTransferReport/chatTransferReport.attributes.js b/server/api/chatTransferReport/chatTransferReport.attributes.js index 0415434..f70b93e 100644 --- a/server/api/chatTransferReport/chatTransferReport.attributes.js +++ b/server/api/chatTransferReport/chatTransferReport.attributes.js @@ -1 +1 @@ -const a106_0x24af=['ENUM','account','agent','exports','NOW','queue','sequelize'];(function(_0x957e5b,_0x24aff8){const _0x35e3f9=function(_0x1fe519){while(--_0x1fe519){_0x957e5b['push'](_0x957e5b['shift']());}};_0x35e3f9(++_0x24aff8);}(a106_0x24af,0xc4));const a106_0x35e3=function(_0x957e5b,_0x24aff8){_0x957e5b=_0x957e5b-0x0;let _0x35e3f9=a106_0x24af[_0x957e5b];return _0x35e3f9;};const _0x5c6c99=a106_0x35e3;'use strict';const Sequelize=require(_0x5c6c99('0x6'));module[_0x5c6c99('0x3')]={'uniqueid':{'type':Sequelize['STRING'],'allowNull':![]},'type':{'type':Sequelize[_0x5c6c99('0x0')](_0x5c6c99('0x1'),_0x5c6c99('0x2'),'queue'),'allowNull':![],'defaultValue':_0x5c6c99('0x5')},'transferredAt':{'type':Sequelize['DATE'],'allowNull':![],'defaultValue':Sequelize[_0x5c6c99('0x4')]}}; \ No newline at end of file +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 diff --git a/server/api/chatTransferReport/chatTransferReport.controller.js b/server/api/chatTransferReport/chatTransferReport.controller.js index a239801..4fc9990 100644 --- a/server/api/chatTransferReport/chatTransferReport.controller.js +++ b/server/api/chatTransferReport/chatTransferReport.controller.js @@ -1 +1 @@ -const a107_0x25c0=['query','../../mysqldb','lodash','count','filters','fields','name','findAll','body','model','keys','attributes','then','includeAll','params','sort','limit','merge','describe','json','include','update','length','VIRTUAL','undefined','order','offset','rawAttributes','end','error','where','../../config/logger','create','api','catch','intersection','destroy','type','show','like','status','filter','Content-Range','map','set','ChatTransferReport','pick','findOne','stack','nolimit','options'];(function(_0x578dac,_0x25c090){const _0x9bad40=function(_0x20892e){while(--_0x20892e){_0x578dac['push'](_0x578dac['shift']());}};_0x9bad40(++_0x25c090);}(a107_0x25c0,0x11b));const a107_0x9bad=function(_0x578dac,_0x25c090){_0x578dac=_0x578dac-0x0;let _0x9bad40=a107_0x25c0[_0x578dac];return _0x9bad40;};const _0x4d5969=a107_0x9bad;'use strict';const _=require(_0x4d5969('0x19')),qs=require('../../components/parsers/qs'),logger=require(_0x4d5969('0x3'))(_0x4d5969('0x5')),db=require(_0x4d5969('0x18'))['db'],{Op}=require('sequelize');function respondWithResult(_0x20892e,_0x654298){return _0x654298=_0x654298||0xc8,function(_0x45fcea){const _0xde2203=a107_0x9bad;if(_0x45fcea)return _0x20892e['status'](_0x654298)[_0xde2203('0x2a')](_0x45fcea);};}function respondWithFilteredResult(_0x2982b7,_0x2d8f77){return function(_0x3f063d){const _0x6869a2=a107_0x9bad;if(_0x3f063d){const _0x3df953=_0x3f063d[_0x6869a2('0x1a')],_0x26fa2d=_0x2d8f77[_0x6869a2('0x31')];let _0x259941=_0x2d8f77[_0x6869a2('0x31')]+_0x2d8f77['limit'],_0x10cff8;return _0x259941>=_0x3df953?(_0x259941=_0x3df953,_0x10cff8=0xc8):_0x10cff8=0xce,_0x2982b7[_0x6869a2('0xc')](_0x10cff8),_0x2982b7[_0x6869a2('0x10')](_0x6869a2('0xe'),_0x26fa2d+'-'+_0x259941+'/'+_0x3df953)[_0x6869a2('0x2a')](_0x3f063d);}return null;};}function saveUpdates(_0x2e99da){return function(_0x5d2263){const _0x2cd84f=a107_0x9bad;if(_0x5d2263)return _0x5d2263[_0x2cd84f('0x2c')](_0x2e99da)['then'](function(_0x2000f6){return _0x2000f6;});return null;};}function removeEntity(_0x42734e){return function(_0x36654e){const _0x495099=a107_0x9bad;if(_0x36654e)return _0x36654e[_0x495099('0x8')]()[_0x495099('0x23')](function(){const _0x2b7067=_0x495099;_0x42734e['status'](0xcc)[_0x2b7067('0x0')]();});};}function handleEntityNotFound(_0x3d0c07){return function(_0xd3da0a){return!_0xd3da0a&&_0x3d0c07['sendStatus'](0x194),_0xd3da0a;};}function handleError(_0x922ec9,_0x5981c4){return _0x5981c4=_0x5981c4||0x1f4,function(_0x39121e){const _0x31182d=a107_0x9bad;logger[_0x31182d('0x1')](_0x39121e[_0x31182d('0x14')]),_0x39121e[_0x31182d('0x1d')]&&delete _0x39121e['name'],_0x922ec9['status'](_0x5981c4)['send'](_0x39121e);};}exports['index']=function(_0x974fa5,_0x50b8e3){const _0x34edd0=_0x4d5969;let _0x1a824c={};const _0x405d71={},_0x15dfe0={'count':0x0,'rows':[]},_0x2f88cb=_[_0x34edd0('0xf')](db['ChatTransferReport'][_0x34edd0('0x32')],function(_0x5c6fd3){return{'name':_0x5c6fd3['fieldName'],'type':_0x5c6fd3['type']['key']};});_0x405d71[_0x34edd0('0x20')]=_[_0x34edd0('0xf')](_0x2f88cb,_0x34edd0('0x1d')),_0x405d71[_0x34edd0('0x17')]=_[_0x34edd0('0x21')](_0x974fa5[_0x34edd0('0x17')]),_0x405d71['filters']=_[_0x34edd0('0x7')](_0x405d71[_0x34edd0('0x20')],_0x405d71['query']),_0x1a824c[_0x34edd0('0x22')]=_[_0x34edd0('0x7')](_0x405d71[_0x34edd0('0x20')],qs['fields'](_0x974fa5[_0x34edd0('0x17')]['fields'])),_0x1a824c[_0x34edd0('0x22')]=_0x1a824c['attributes'][_0x34edd0('0x2d')]?_0x1a824c[_0x34edd0('0x22')]:_0x405d71[_0x34edd0('0x20')];typeof _0x974fa5[_0x34edd0('0x17')][_0x34edd0('0x15')]===_0x34edd0('0x2f')&&(_0x1a824c['limit']=qs[_0x34edd0('0x27')](_0x974fa5['query'][_0x34edd0('0x27')]),_0x1a824c[_0x34edd0('0x31')]=qs[_0x34edd0('0x31')](_0x974fa5[_0x34edd0('0x17')][_0x34edd0('0x31')]));_0x1a824c[_0x34edd0('0x30')]=qs[_0x34edd0('0x26')](_0x974fa5[_0x34edd0('0x17')]['sort']),_0x1a824c['where']=qs[_0x34edd0('0x1b')](_[_0x34edd0('0x12')](_0x974fa5['query'],_0x405d71[_0x34edd0('0x1b')]),_0x2f88cb);_0x974fa5[_0x34edd0('0x17')][_0x34edd0('0xd')]&&(_0x1a824c[_0x34edd0('0x2')]=_[_0x34edd0('0x28')](_0x1a824c[_0x34edd0('0x2')],{[Op['or']]:_[_0x34edd0('0xf')](_0x2f88cb,function(_0x1600bd){const _0x346828=_0x34edd0;if(_0x1600bd[_0x346828('0x9')]!==_0x346828('0x2e')){const _0x3bdae0={};return _0x3bdae0[_0x1600bd[_0x346828('0x1d')]]={[Op[_0x346828('0xb')]]:'%'+_0x974fa5['query'][_0x346828('0xd')]+'%'},_0x3bdae0;}})}));_0x1a824c=_['merge']({},_0x1a824c,_0x974fa5[_0x34edd0('0x16')]);const _0x4635d6={'where':_0x1a824c[_0x34edd0('0x2')]};return db[_0x34edd0('0x11')]['count'](_0x4635d6)[_0x34edd0('0x23')](function(_0x2e23f0){const _0x66f010=_0x34edd0;return _0x15dfe0[_0x66f010('0x1a')]=_0x2e23f0,_0x974fa5['query'][_0x66f010('0x24')]&&(_0x1a824c[_0x66f010('0x2b')]=[{'all':!![]}]),db['ChatTransferReport'][_0x66f010('0x1e')](_0x1a824c);})[_0x34edd0('0x23')](function(_0x1274c1){return _0x15dfe0['rows']=_0x1274c1,_0x15dfe0;})[_0x34edd0('0x23')](respondWithFilteredResult(_0x50b8e3,_0x1a824c))[_0x34edd0('0x6')](handleError(_0x50b8e3,null));},exports[_0x4d5969('0xa')]=function(_0x2a7b82,_0x107a81){const _0x2fc72b=_0x4d5969;let _0x4626be={'raw':!![],'where':{'id':_0x2a7b82['params']['id']}};const _0x152154={};return _0x152154[_0x2fc72b('0x20')]=_[_0x2fc72b('0x21')](db[_0x2fc72b('0x11')][_0x2fc72b('0x32')]),_0x152154[_0x2fc72b('0x17')]=_[_0x2fc72b('0x21')](_0x2a7b82[_0x2fc72b('0x17')]),_0x152154[_0x2fc72b('0x1b')]=_[_0x2fc72b('0x7')](_0x152154[_0x2fc72b('0x20')],_0x152154[_0x2fc72b('0x17')]),_0x4626be[_0x2fc72b('0x22')]=_[_0x2fc72b('0x7')](_0x152154['model'],qs[_0x2fc72b('0x1c')](_0x2a7b82[_0x2fc72b('0x17')][_0x2fc72b('0x1c')])),_0x4626be[_0x2fc72b('0x22')]=_0x4626be[_0x2fc72b('0x22')][_0x2fc72b('0x2d')]?_0x4626be[_0x2fc72b('0x22')]:_0x152154[_0x2fc72b('0x20')],_0x2a7b82[_0x2fc72b('0x17')]['includeAll']&&(_0x4626be[_0x2fc72b('0x2b')]=[{'all':!![]}]),_0x4626be=_[_0x2fc72b('0x28')]({},_0x4626be,_0x2a7b82[_0x2fc72b('0x16')]),db[_0x2fc72b('0x11')][_0x2fc72b('0x13')](_0x4626be)[_0x2fc72b('0x23')](handleEntityNotFound(_0x107a81,null))['then'](respondWithResult(_0x107a81,null))[_0x2fc72b('0x6')](handleError(_0x107a81,null));},exports['create']=function(_0x3592a8,_0x308443){const _0x33e0fc=_0x4d5969;return db['ChatTransferReport'][_0x33e0fc('0x4')](_0x3592a8[_0x33e0fc('0x1f')],{})[_0x33e0fc('0x23')](respondWithResult(_0x308443,0xc9))[_0x33e0fc('0x6')](handleError(_0x308443,null));},exports[_0x4d5969('0x2c')]=function(_0x2961ab,_0x1f2105){const _0x33ba4c=_0x4d5969;return _0x2961ab['body']['id']&&delete _0x2961ab[_0x33ba4c('0x1f')]['id'],db['ChatTransferReport'][_0x33ba4c('0x13')]({'where':{'id':_0x2961ab[_0x33ba4c('0x25')]['id']}})[_0x33ba4c('0x23')](handleEntityNotFound(_0x1f2105,null))[_0x33ba4c('0x23')](saveUpdates(_0x2961ab['body'],null))[_0x33ba4c('0x23')](respondWithResult(_0x1f2105,null))['catch'](handleError(_0x1f2105,null));},exports[_0x4d5969('0x8')]=function(_0x6bfb8a,_0x59c1c4){const _0x22a0fd=_0x4d5969;return db[_0x22a0fd('0x11')][_0x22a0fd('0x13')]({'where':{'id':_0x6bfb8a[_0x22a0fd('0x25')]['id']}})[_0x22a0fd('0x23')](handleEntityNotFound(_0x59c1c4,null))[_0x22a0fd('0x23')](removeEntity(_0x59c1c4,null))[_0x22a0fd('0x6')](handleError(_0x59c1c4,null));},exports[_0x4d5969('0x29')]=function(_0x308420,_0xc19a0){const _0x288a81=_0x4d5969;return db[_0x288a81('0x11')][_0x288a81('0x29')]()[_0x288a81('0x23')](respondWithResult(_0xc19a0,null))[_0x288a81('0x6')](handleError(_0xc19a0,null));}; \ No newline at end of file +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 diff --git a/server/api/chatTransferReport/chatTransferReport.model.js b/server/api/chatTransferReport/chatTransferReport.model.js index fbee85b..e60721b 100644 --- a/server/api/chatTransferReport/chatTransferReport.model.js +++ b/server/api/chatTransferReport/chatTransferReport.model.js @@ -1 +1 @@ -const a108_0x57b4=['./chatTransferReport.attributes','report_chat_transfer','uniqueid','define'];(function(_0x4e5958,_0x57b4ac){const _0x11cc38=function(_0x54405f){while(--_0x54405f){_0x4e5958['push'](_0x4e5958['shift']());}};_0x11cc38(++_0x57b4ac);}(a108_0x57b4,0x18e));const a108_0x11cc=function(_0x4e5958,_0x57b4ac){_0x4e5958=_0x4e5958-0x0;let _0x11cc38=a108_0x57b4[_0x4e5958];return _0x11cc38;};const _0x4a47f1=a108_0x11cc;'use strict';const attributes=require(_0x4a47f1('0x2'));module['exports']=function(_0x54405f){const _0xd1b60d=_0x4a47f1,_0x117969=_0x54405f[_0xd1b60d('0x1')]('ChatTransferReport',attributes,{'tableName':_0xd1b60d('0x3'),'paranoid':![],'indexes':[{'name':_0xd1b60d('0x0'),'fields':[_0xd1b60d('0x0')]}],'timestamps':!![]});return _0x117969;}; \ No newline at end of file +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 diff --git a/server/api/chatTransferReport/index.js b/server/api/chatTransferReport/index.js index 3bc7e4e..4dfebe6 100644 --- a/server/api/chatTransferReport/index.js +++ b/server/api/chatTransferReport/index.js @@ -1 +1 @@ -const a109_0x53f0=['./chatTransferReport.controller','exports','get','express','/:id','isAuthenticated','create','put','delete','post','index','Router','../../components/auth/service'];(function(_0x145537,_0x53f06d){const _0x4d2809=function(_0x4445bb){while(--_0x4445bb){_0x145537['push'](_0x145537['shift']());}};_0x4d2809(++_0x53f06d);}(a109_0x53f0,0x9b));const a109_0x4d28=function(_0x145537,_0x53f06d){_0x145537=_0x145537-0x0;let _0x4d2809=a109_0x53f0[_0x145537];return _0x4d2809;};const _0x25495b=a109_0x4d28;'use strict';const express=require(_0x25495b('0x4')),router=express[_0x25495b('0xc')](),auth=require(_0x25495b('0x0')),controller=require(_0x25495b('0x1'));router[_0x25495b('0x3')]('/',auth[_0x25495b('0x6')](),controller[_0x25495b('0xb')]),router['get']('/describe',auth[_0x25495b('0x6')](),controller['describe']),router[_0x25495b('0x3')](_0x25495b('0x5'),auth[_0x25495b('0x6')](),controller['show']),router[_0x25495b('0xa')]('/',auth[_0x25495b('0x6')](),controller[_0x25495b('0x7')]),router[_0x25495b('0x8')]('/:id',auth[_0x25495b('0x6')](),controller['update']),router[_0x25495b('0x9')]('/:id',auth[_0x25495b('0x6')](),controller['destroy']),module[_0x25495b('0x2')]=router; \ No newline at end of file +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 diff --git a/server/api/chatWebsite/chatWebsite.attributes.js b/server/api/chatWebsite/chatWebsite.attributes.js index 24ec827..f57bf1a 100644 --- a/server/api/chatWebsite/chatWebsite.attributes.js +++ b/server/api/chatWebsite/chatWebsite.attributes.js @@ -1 +1 @@ -const a110_0x4cf7=['thumb','Contact\x20us','#011F6A','alternate','exports','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','ENUM','Comments','Note','Form\x20properly\x20submitted','star','Your\x20request\x20has\x20not\x20been\x20processed.','website_alias','Send','bottom_right','New\x20offline\x20message\x20from\x20websiteName','Powered\x20by\x20xCALLY','Form\x20submission\x20error','textarea','offlineForm','Feedback','input','We\x20are\x20here!','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','setDataValue','STRING','Do\x20you\x20want\x20to\x20close\x20the\x20interaction?','stringify','INTEGER','Please\x20hold\x20and\x20we\x20will\x20answer\x20your\x20request\x20as\x20soon\x20as\x20possible.','System','mandatoryDispositionPauseId','name','squared','Type\x20a\x20message','getDataValue','mandatoryDisposition','All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.','Leave\x20your\x20comments','generate','onlineForm','#fafafa','email','TEXT','Skip','#ffffff','sequelize','text','BOOLEAN','Thanks\x20you\x20for\x20your\x20time!','You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:'];(function(_0x3a0f14,_0x4cf7b4){const _0x4259df=function(_0x378c77){while(--_0x378c77){_0x3a0f14['push'](_0x3a0f14['shift']());}};_0x4259df(++_0x4cf7b4);}(a110_0x4cf7,0x1ac));const a110_0x4259=function(_0x3a0f14,_0x4cf7b4){_0x3a0f14=_0x3a0f14-0x0;let _0x4259df=a110_0x4cf7[_0x3a0f14];return _0x4259df;};const _0x69194d=a110_0x4259;'use strict';const Sequelize=require(_0x69194d('0x1a')),rs=require('randomstring');module[_0x69194d('0x23')]={'name':{'type':Sequelize[_0x69194d('0x5')],'allowNull':![]},'address':{'type':Sequelize['STRING'],'allowNull':![],'unique':'address'},'description':{'type':Sequelize['STRING']},'mapKey':{'type':Sequelize[_0x69194d('0x5')],'defaultValue':'email'},'mapKeyOffline':{'type':Sequelize[_0x69194d('0x5')],'defaultValue':_0x69194d('0x16')},'key':{'type':Sequelize[_0x69194d('0x5')],'allowNull':![]},'agentAlias':{'type':Sequelize['STRING'],'defaultValue':'Agent'},'customerAlias':{'type':Sequelize['STRING'],'defaultValue':'Me'},'color':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x69194d('0x21'),'validate':{'notEmpty':!![]}},'color_button':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x69194d('0x21'),'validate':{'notEmpty':!![]}},'textColor':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x69194d('0x19'),'validate':{'notEmpty':!![]}},'fontSize':{'type':Sequelize['INTEGER'],'defaultValue':0xf},'remote':{'type':Sequelize[_0x69194d('0x5')]},'animation':{'type':Sequelize[_0x69194d('0x1c')],'defaultValue':!![]},'header_shape':{'type':Sequelize[_0x69194d('0x25')]('rounded',_0x69194d('0xd')),'defaultValue':'rounded'},'header_online':{'type':Sequelize[_0x69194d('0x5')],'defaultValue':_0x69194d('0x2')},'start_chat_button':{'type':Sequelize['STRING'],'defaultValue':'Chat'},'offline_chat_button':{'type':Sequelize['STRING'],'defaultValue':'Send'},'header_offline':{'type':Sequelize[_0x69194d('0x5')],'defaultValue':_0x69194d('0x20')},'download_transcript':{'type':Sequelize[_0x69194d('0x1c')],'defaultValue':!![]},'timeout':{'type':Sequelize[_0x69194d('0x8')],'defaultValue':0x0},'whiteLabel':{'type':Sequelize[_0x69194d('0x5')],'defaultValue':_0x69194d('0x2f')},'defaultWhiteLabel':{'type':Sequelize[_0x69194d('0x1c')],'defaultValue':!![]},'sitepic':{'type':Sequelize[_0x69194d('0x17')]},'closingQuestion':{'type':Sequelize['STRING'],'defaultValue':_0x69194d('0x6')},'formSubmitSuccessMessage':{'type':Sequelize['STRING'],'defaultValue':_0x69194d('0x28')},'formSubmitFailureMessage':{'type':Sequelize[_0x69194d('0x5')],'defaultValue':_0x69194d('0x30')},'noteTitle':{'type':Sequelize[_0x69194d('0x5')],'defaultValue':_0x69194d('0x27')},'placeholderMessage':{'type':Sequelize['STRING'],'defaultValue':_0x69194d('0xe')},'closingMessage':{'type':Sequelize['STRING'],'defaultValue':_0x69194d('0x1d')},'closingMessageButton':{'type':Sequelize[_0x69194d('0x5')],'defaultValue':_0x69194d('0x2c')},'skipMessageButton':{'type':Sequelize[_0x69194d('0x5')],'defaultValue':_0x69194d('0x18')},'conditionAgreement':{'type':Sequelize[_0x69194d('0x1c')],'defaultValue':![]},'enableRating':{'type':Sequelize[_0x69194d('0x1c')],'defaultValue':![]},'enableFeedback':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'enableSendButton':{'type':Sequelize[_0x69194d('0x1c')],'defaultValue':![]},'feedbackTitle':{'type':Sequelize[_0x69194d('0x5')],'defaultValue':_0x69194d('0x0')},'ratingType':{'type':Sequelize[_0x69194d('0x25')](_0x69194d('0x29'),_0x69194d('0x1f')),'defaultValue':_0x69194d('0x29')},'ratingStarsNumber':{'type':Sequelize['INTEGER'],'defaultValue':0x5},'onlineForm':{'type':Sequelize[_0x69194d('0x17')],'defaultValue':function(){const _0x2c7823=_0x69194d;return JSON[_0x2c7823('0x7')]({'items':[{'type':_0x2c7823('0x1'),'variable':null,'config':{'placeholder':_0x2c7823('0xc'),'type':_0x2c7823('0x1b'),'required':!![]},'props':{'title':_0x2c7823('0xc'),'helpText':''}},{'type':'input','props':{'title':_0x2c7823('0x16'),'helpText':''},'config':{'required':!![],'placeholder':_0x2c7823('0x16'),'type':'email'},'variable':null}],'fromKey':0x1});},'get':function(){const _0x26e258=_0x69194d;return this[_0x26e258('0xf')](_0x26e258('0x14'))?JSON['parse'](this[_0x26e258('0xf')](_0x26e258('0x14'))):{};},'set':function(_0x378c77){const _0x483f12=_0x69194d;return this['setDataValue'](_0x483f12('0x14'),JSON[_0x483f12('0x7')](_0x378c77));}},'offlineForm':{'type':Sequelize[_0x69194d('0x17')],'defaultValue':function(){const _0x2ab55f=_0x69194d;return JSON[_0x2ab55f('0x7')]({'items':[{'type':_0x2ab55f('0x1'),'props':{'title':'email','helpText':''},'config':{'required':!![],'placeholder':_0x2ab55f('0x16'),'type':_0x2ab55f('0x16')},'variable':null},{'type':_0x2ab55f('0x31'),'config':{'placeholder':_0x2ab55f('0x26')},'props':{'title':_0x2ab55f('0x26'),'helpText':_0x2ab55f('0x12')}}],'fromKey':0x0});},'get':function(){const _0x1f844d=_0x69194d;return this[_0x1f844d('0xf')](_0x1f844d('0x32'))?JSON['parse'](this[_0x1f844d('0xf')](_0x1f844d('0x32'))):{};},'set':function(_0x3f4514){const _0x25ea88=_0x69194d;return this[_0x25ea88('0x4')]('offlineForm',JSON['stringify'](_0x3f4514));}},'token':{'type':Sequelize[_0x69194d('0x5')],'defaultValue':function(){const _0x167585=_0x69194d;return rs[_0x167585('0x13')]();}},'autoclose':{'type':Sequelize[_0x69194d('0x1c')],'defaultValue':!![]},'enableCustomerWriting':{'type':Sequelize[_0x69194d('0x1c')],'defaultValue':![]},'forwardTranscript':{'type':Sequelize[_0x69194d('0x1c')],'defaultValue':![]},'forwardTranscriptMessage':{'type':Sequelize[_0x69194d('0x5')]},'forwardOffline':{'type':Sequelize[_0x69194d('0x1c')],'defaultValue':![]},'forwardOfflineAddress':{'type':Sequelize[_0x69194d('0x5')]},'waitingTitle':{'type':Sequelize[_0x69194d('0x5')],'defaultValue':_0x69194d('0x11')},'waitingMessage':{'type':Sequelize[_0x69194d('0x5')],'defaultValue':_0x69194d('0x9')},'offlineMessageSubject':{'type':Sequelize[_0x69194d('0x5')],'defaultValue':_0x69194d('0x2e')},'offlineMessageBody':{'type':Sequelize['STRING'],'defaultValue':_0x69194d('0x1e')},'enableUnmanagedNote':{'type':Sequelize[_0x69194d('0x1c')],'defaultValue':!![]},'unmanagedMessage':{'type':Sequelize[_0x69194d('0x5')],'defaultValue':_0x69194d('0x2a')},'skipUnmanaged':{'type':Sequelize['STRING'],'defaultValue':'Skip'},'sendUnmanaged':{'type':Sequelize[_0x69194d('0x5')],'defaultValue':_0x69194d('0x2c')},'enableCustomerAttachment':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'enableCustomerCheckmarks':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentAvatar':{'type':Sequelize[_0x69194d('0x17')]},'showAgentAvatar':{'type':Sequelize[_0x69194d('0x1c')],'defaultValue':![]},'timezone':{'type':Sequelize[_0x69194d('0x5')]},'notificationTemplate':{'type':Sequelize[_0x69194d('0x17')],'defaultValue':function(){const _0x4911db=_0x69194d;return _0x4911db('0x3');}},'notificationSound':{'type':Sequelize[_0x69194d('0x1c')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x69194d('0x1c')],'defaultValue':![]},'hideWhenOffline':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentIdentifier':{'type':Sequelize[_0x69194d('0x5')],'defaultValue':_0x69194d('0x2b')},'waitForTheAssignedAgent':{'type':Sequelize[_0x69194d('0x8')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'alignment':{'type':Sequelize[_0x69194d('0x5')],'defaultValue':_0x69194d('0x2d')},'verticalAlignment':{'type':Sequelize[_0x69194d('0x8')],'defaultValue':0x1e},'messagesAlignment':{'type':Sequelize[_0x69194d('0x5')],'defaultValue':_0x69194d('0x22')},'defaultTitle':{'type':Sequelize[_0x69194d('0x5')]},'customerAvatar':{'type':Sequelize[_0x69194d('0x17')]},'showCustomerAvatar':{'type':Sequelize[_0x69194d('0x1c')],'defaultValue':![]},'messageFontSize':{'type':Sequelize['INTEGER'],'defaultValue':0xc},'backgroundColor':{'type':Sequelize[_0x69194d('0x5')],'allowNull':![],'defaultValue':_0x69194d('0x15'),'validate':{'notEmpty':!![]}},'queueTransfer':{'type':Sequelize[_0x69194d('0x1c')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x69194d('0x8')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x69194d('0x1c')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x69194d('0x8')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'systemAlias':{'type':Sequelize[_0x69194d('0x5')],'defaultValue':_0x69194d('0xa')},'systemAvatar':{'type':Sequelize[_0x69194d('0x17')]},'mandatoryDispositionPauseId':{'type':Sequelize['INTEGER'],'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize[_0x69194d('0x1c')],'defaultValue':![],'comment':_0x69194d('0x24'),'set':function(_0x5569ec){const _0x471285=_0x69194d;if(!_0x5569ec)this['setDataValue'](_0x471285('0xb'),null);this['setDataValue'](_0x471285('0x10'),_0x5569ec);}},'vidaooEscalation':{'type':Sequelize[_0x69194d('0x1c')],'defaultValue':![]},'vidaooApiKey':{'type':Sequelize['STRING'],'defaultValue':![]}}; \ No newline at end of file +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 diff --git a/server/api/chatWebsite/chatWebsite.controller.js b/server/api/chatWebsite/chatWebsite.controller.js index 281119d..9551222 100644 --- a/server/api/chatWebsite/chatWebsite.controller.js +++ b/server/api/chatWebsite/chatWebsite.controller.js @@ -1 +1 @@ -const a111_0x33c3=['index','virtual','x-real-port','isNil','server/files/images/avatars/default_avatar.png','offlineForm','contact','remoteAddress','length','Disposition','waitForTheAssignedAgent','removeAnswers','defaults','unshift','removeAgents','ChatWebsite,\x20%s,\x20%s,\x20%s','CompanyId','update','interval','pick','request\x20sent','name','format','toPairs','false','server/files/templates/chatOfflineMessage.ejs','undefined','inspect','asc','limit','customerIp','addCustomerAvatar','auth','count','[%s][INTERVAL][%s]\x20%s\x20%s\x20(%s)','Contact','sendStatus','map','mapKeyOffline\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','server/files/images/logos/default_logo.svg','sitepic','unmanaged','offlineMessageSubject','addLogo','Start','browser','order','request','*,*,*,*','params','get','server/files/images/avatars/system_avatar.png','cf-connecting-ip','ContactId','lodash','mapKeyOffline','addAvatar','split','keys','offset','bulkCreate','user-agent-parser','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','Pause','externalUrl','./chatWebsite.socket','download','CmList','threadId','addSystemAvatar','unknown','utf8','intersection','DESC','difference','../../components/parsers/qs','created','UserId','findAll','info','Unable\x20to\x20retrieve\x20the\x20current\x20user','forcedOwnership','ChatWebsiteId','account','destroy','Interval','getDispositions','List','CannedAnswer','custom','server/files/chat/iframe.js','first','includeAll','headers','addProactiveActions','host','emit','forwardOfflineAddress','getSnippet','getInteractions','autoclose','filter','body','ids','agent','from','Applications','priority','ChatProactiveAction','Sequelize','offline','from\x20is\x20mandatory','License','set','sort','type','chat','filename','OFFLINE','json','send','error','MailServerOut','root','MailAccount','include','addDisposition','user','getProactiveActions','code','push','getResult','verticalAlignment','version','register','close','path','lastName','mustache','rawAttributes','join','sequelize','authentication','ChatApplication','iftime\x20%s','CmContact','chatProactiveAction','service','referer','server/files/images/avatars/','render','tag','stack','\x22%s\x22\x20<%s>','Intervals','ChatWebsite','mandatoryDispositionPause','querystring','fieldName','timezone','notify','No\x20timezone','where','omit','getApplications','ChatWebsite,\x20%s,\x20%s','ListId','showCustomerAvatar','model','User','Smtp','client','messageId','ChatInteraction','ChatMessage','http','getSystemAvatar','filters','key','findOne','remote','result','Content-Range','jayson/promise','interaction','server/files/images/logos/','userProfileId','fullname','getFields','ValidationError','startRouting','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','rows','mapKeyOffline\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','role','existsSync','getAnswers','updatedAt','getAvatar','AttachmentId','transaction','show','agentAvatar','readdirSync','attributes','util','debug','secure','addInteraction','applications','query','increment','systemAvatar','merge','Tag','catch','readFileSync','file','end','customerAvatar','server/files/images/avatars/customer_avatar.png','nolimit','ChatOfflineMessage','then','x-forwarded-for','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','items','port','getLogo','getAgents','stringify','isArray','describe','includes','like','body\x20is\x20mandatory\x20and\x20not\x20empty','Contacts','createdAt','device','online','%s\x20%s','email','vendor','ChatWebsites','mapKey','fromKey','VIRTUAL','message','options','userChatWebsite:remove','status','%s\x20%s\x20%s','create','../../config/license/util','api','getCustomerAvatar','UserProfileResource','fields','SendMail','firstName','Owner','../../mysqldb','list','snippets'];(function(_0x21a5d5,_0x33c34f){const _0xe86a7d=function(_0x5aee2c){while(--_0x5aee2c){_0x21a5d5['push'](_0x21a5d5['shift']());}};_0xe86a7d(++_0x33c34f);}(a111_0x33c3,0x128));const a111_0xe86a=function(_0x21a5d5,_0x33c34f){_0x21a5d5=_0x21a5d5-0x0;let _0xe86a7d=a111_0x33c3[_0x21a5d5];return _0xe86a7d;};const _0x203e3b=a111_0xe86a;'use strict';const Mustache=require(_0x203e3b('0x6a')),util=require(_0x203e3b('0xad')),path=require(_0x203e3b('0x68')),ejs=require('ejs'),fs=require('fs'),_=require(_0x203e3b('0x16')),querystring=require(_0x203e3b('0x7d')),qs=require(_0x203e3b('0x2b')),logger=require('../../config/logger')(_0x203e3b('0xde')),config=require('../../config/environment'),db=require(_0x203e3b('0xe5'))['db'],{Op}=require(_0x203e3b('0x6d')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x203e3b('0x21'))[_0x203e3b('0x66')](socket);const jayson=require(_0x203e3b('0x97')),client=jayson[_0x203e3b('0x8b')][_0x203e3b('0x8f')]({'port':0x232c}),client9002=jayson[_0x203e3b('0x8b')]['http']({'port':0x232a}),client9003=jayson['client']['http']({'port':0x232b});function respondWithRpcPromise(_0x5aee2c,_0x23c61d,_0x1a99b0,_0xb0599e){return new Promise(function(_0x205493,_0x52d40b){const _0x115e8b=a111_0xe86a,_0x37560b=_0xb0599e||client;return _0x37560b[_0x115e8b('0xf')](_0x5aee2c,_0x1a99b0)[_0x115e8b('0xbf')](function(_0x3e7e4a){const _0x3b2a91=_0x115e8b;logger[_0x3b2a91('0x2f')]('ChatWebsite,\x20%s,\x20%s',_0x23c61d,'request\x20sent'),logger[_0x3b2a91('0xae')](_0x3b2a91('0xf7'),_0x23c61d,_0x3b2a91('0xfc'),JSON[_0x3b2a91('0xc6')](_0x3e7e4a));if(_0x3e7e4a[_0x3b2a91('0x59')]){if(_0x3e7e4a[_0x3b2a91('0x59')][_0x3b2a91('0x61')]===0x1f4)return logger[_0x3b2a91('0x59')]('ChatWebsite,\x20%s,\x20%s',_0x23c61d,_0x3e7e4a['error'][_0x3b2a91('0xd7')]),_0x52d40b(_0x3e7e4a[_0x3b2a91('0x59')][_0x3b2a91('0xd7')]);return logger[_0x3b2a91('0x59')](_0x3b2a91('0x85'),_0x23c61d,_0x3e7e4a[_0x3b2a91('0x59')][_0x3b2a91('0xd7')]),_0x205493(_0x3e7e4a['error']['message']);}else logger[_0x3b2a91('0x2f')](_0x3b2a91('0x85'),_0x23c61d,_0x3b2a91('0xfc')),_0x205493(_0x3e7e4a[_0x3b2a91('0x95')][_0x3b2a91('0xd7')]);})[_0x115e8b('0xb7')](function(_0x48291f){const _0x266289=_0x115e8b;logger[_0x266289('0x59')]('ChatWebsite,\x20%s,\x20%s',_0x23c61d,_0x48291f),_0x52d40b(_0x48291f);});});}function respondWithStatusCode(_0x9ef3c7,_0x202c7b){return _0x202c7b=_0x202c7b||0xcc,function(_0x365dfa){const _0x5adcd6=a111_0xe86a;if(_0x365dfa)return _0x9ef3c7[_0x5adcd6('0x4')](_0x202c7b);return _0x9ef3c7[_0x5adcd6('0xda')](_0x202c7b)[_0x5adcd6('0xba')]();};}function respondWithResult(_0x14d702,_0x5e48a9){return _0x5e48a9=_0x5e48a9||0xc8,function(_0x394660){if(_0x394660)return _0x14d702['status'](_0x5e48a9)['json'](_0x394660);};}function respondWithFilteredResult(_0x6c1b00,_0x1b6918){return function(_0x46b632){const _0x3368e4=a111_0xe86a;if(_0x46b632){const _0x425d93=_0x46b632['count'],_0x3f54ef=_0x1b6918[_0x3368e4('0x1b')];let _0xfbed23=_0x1b6918[_0x3368e4('0x1b')]+_0x1b6918[_0x3368e4('0x105')],_0x37c94e;return _0xfbed23>=_0x425d93?(_0xfbed23=_0x425d93,_0x37c94e=0xc8):_0x37c94e=0xce,_0x6c1b00[_0x3368e4('0xda')](_0x37c94e),_0x6c1b00[_0x3368e4('0x51')](_0x3368e4('0x96'),_0x3f54ef+'-'+_0xfbed23+'/'+_0x425d93)[_0x3368e4('0x57')](_0x46b632);}return null;};}function saveUpdates(_0x52885e){return function(_0x4326c3){const _0x437be3=a111_0xe86a;if(_0x4326c3)return _0x4326c3[_0x437be3('0xf9')](_0x52885e)[_0x437be3('0xbf')](function(_0x28ba83){return _0x28ba83;});return null;};}function removeEntity(_0x8c361b){return function(_0x4f11d9){const _0x29edec=a111_0xe86a;if(_0x4f11d9)return _0x4f11d9[_0x29edec('0x34')]()['then'](function(){const _0x29e1d3=_0x29edec,_0x275d63=_0x4f11d9['get']({'plain':!![]}),_0x3a1e89=_0x29e1d3('0xd3');return db[_0x29e1d3('0xe0')][_0x29e1d3('0x34')]({'where':{'type':_0x3a1e89,'resourceId':_0x275d63['id']}})[_0x29e1d3('0xbf')](function(){return _0x4f11d9;});})[_0x29edec('0xbf')](function(){const _0x3c7ca5=_0x29edec;_0x8c361b[_0x3c7ca5('0xda')](0xcc)['end']();});};}function handleEntityNotFound(_0x365d88){return function(_0x4feddb){const _0x143f20=a111_0xe86a;return!_0x4feddb&&_0x365d88[_0x143f20('0x4')](0x194),_0x4feddb;};}function handleError(_0x4d31fd,_0xb63f4e){return _0xb63f4e=_0xb63f4e||0x1f4,function(_0x1ba249){const _0x1e33f7=a111_0xe86a;logger[_0x1e33f7('0x59')](_0x1ba249[_0x1e33f7('0x78')]),_0x1ba249['name']&&delete _0x1ba249[_0x1e33f7('0xfd')],_0x4d31fd[_0x1e33f7('0xda')](_0xb63f4e)[_0x1e33f7('0x58')](_0x1ba249);};}exports[_0x203e3b('0xe8')]=function(_0x461194,_0x3f8328){const _0x30929e=_0x203e3b;let _0x33cf47={'include':[{'model':db[_0x30929e('0x1f')],'as':_0x30929e('0x7c')}]};const _0x8d235d={},_0x565246={'count':0x0,'rows':[]},_0x942ffb=_[_0x30929e('0x5')](db[_0x30929e('0x7b')]['rawAttributes'],function(_0x4121c0){const _0x1161fc=_0x30929e;return{'name':_0x4121c0[_0x1161fc('0x7e')],'type':_0x4121c0[_0x1161fc('0x53')][_0x1161fc('0x92')]};});_0x8d235d[_0x30929e('0x88')]=_[_0x30929e('0x5')](_0x942ffb,_0x30929e('0xfd')),_0x8d235d[_0x30929e('0xb2')]=_['keys'](_0x461194[_0x30929e('0xb2')]),_0x8d235d[_0x30929e('0x91')]=_[_0x30929e('0x28')](_0x8d235d[_0x30929e('0x88')],_0x8d235d[_0x30929e('0xb2')]),_0x33cf47[_0x30929e('0xac')]=_['intersection'](_0x8d235d[_0x30929e('0x88')],qs[_0x30929e('0xe1')](_0x461194['query']['fields'])),_0x33cf47[_0x30929e('0xac')]=_0x33cf47['attributes'][_0x30929e('0xf0')]?_0x33cf47[_0x30929e('0xac')]:_0x8d235d[_0x30929e('0x88')];typeof _0x461194[_0x30929e('0xb2')][_0x30929e('0xbd')]===_0x30929e('0x102')&&(_0x33cf47[_0x30929e('0x105')]=qs['limit'](_0x461194[_0x30929e('0xb2')]['limit']),_0x33cf47[_0x30929e('0x1b')]=qs[_0x30929e('0x1b')](_0x461194['query']['offset']));_0x33cf47[_0x30929e('0xe')]=qs[_0x30929e('0x52')](_0x461194['query'][_0x30929e('0x52')]),_0x33cf47[_0x30929e('0x82')]=qs[_0x30929e('0x91')](_[_0x30929e('0xfb')](_0x461194[_0x30929e('0xb2')],_0x8d235d['filters']),_0x942ffb);_0x461194[_0x30929e('0xb2')][_0x30929e('0x45')]&&(_0x33cf47['where']=_[_0x30929e('0xb5')](_0x33cf47[_0x30929e('0x82')],{[Op['or']]:_[_0x30929e('0x5')](_0x942ffb,function(_0x1c221b){const _0x1dbf0d=_0x30929e;if(_0x1c221b[_0x1dbf0d('0x53')]!==_0x1dbf0d('0xd6')){const _0x59fb27={};return _0x59fb27[_0x1c221b[_0x1dbf0d('0xfd')]]={[Op[_0x1dbf0d('0xca')]]:'%'+_0x461194[_0x1dbf0d('0xb2')]['filter']+'%'},_0x59fb27;}})}));_0x33cf47=_[_0x30929e('0xb5')]({},_0x33cf47,_0x461194[_0x30929e('0xd8')]);const _0x4e8380={'where':_0x33cf47[_0x30929e('0x82')]};return db[_0x30929e('0x7b')][_0x30929e('0x1')](_0x4e8380)[_0x30929e('0xbf')](function(_0x4e7228){const _0x15a23a=_0x30929e;return _0x565246[_0x15a23a('0x1')]=_0x4e7228,_0x461194['query']['includeAll']&&(_0x33cf47['include']=[{'all':!![]}]),db[_0x15a23a('0x7b')][_0x15a23a('0x2e')](_0x33cf47);})[_0x30929e('0xbf')](function(_0x8020f5){const _0x3b9e5f=_0x30929e;return _0x565246[_0x3b9e5f('0xa0')]=_0x8020f5,_0x565246;})[_0x30929e('0xbf')](respondWithFilteredResult(_0x3f8328,_0x33cf47))[_0x30929e('0xb7')](handleError(_0x3f8328,null));},exports[_0x203e3b('0xa9')]=function(_0x114da8,_0x4423c1){const _0x28800f=_0x203e3b;let _0x533676={'raw':![],'where':{'id':_0x114da8[_0x28800f('0x11')]['id']},'include':[{'model':db['Pause'],'as':'mandatoryDispositionPause'}]};const _0x3fc70c={};return _0x3fc70c[_0x28800f('0x88')]=_[_0x28800f('0x1a')](db['ChatWebsite']['rawAttributes']),_0x3fc70c['query']=_[_0x28800f('0x1a')](_0x114da8[_0x28800f('0xb2')]),_0x3fc70c[_0x28800f('0x91')]=_[_0x28800f('0x28')](_0x3fc70c['model'],_0x3fc70c[_0x28800f('0xb2')]),_0x533676[_0x28800f('0xac')]=_['intersection'](_0x3fc70c[_0x28800f('0x88')],qs[_0x28800f('0xe1')](_0x114da8[_0x28800f('0xb2')][_0x28800f('0xe1')])),_0x533676['attributes']=_0x533676[_0x28800f('0xac')][_0x28800f('0xf0')]?_0x533676['attributes']:_0x3fc70c[_0x28800f('0x88')],_0x114da8[_0x28800f('0xb2')][_0x28800f('0x3c')]&&(_0x533676[_0x28800f('0x5d')]=[{'all':!![]}]),_0x533676=_[_0x28800f('0xb5')]({},_0x533676,_0x114da8[_0x28800f('0xd8')]),db[_0x28800f('0x7b')][_0x28800f('0x93')](_0x533676)[_0x28800f('0xbf')](handleEntityNotFound(_0x4423c1,null))[_0x28800f('0xbf')](respondWithResult(_0x4423c1,null))['catch'](handleError(_0x4423c1,null));},exports[_0x203e3b('0xdc')]=function(_0x16501a,_0x16ef29){const _0x527f58=_0x203e3b;return db[_0x527f58('0x7b')][_0x527f58('0xdc')](_0x16501a['body'],{})[_0x527f58('0xbf')](function(_0x41e704){const _0x3ef443=_0x527f58,_0xc43737=_0x16501a[_0x3ef443('0x5f')][_0x3ef443('0x12')]({'plain':!![]});if(!_0xc43737)throw new Error(_0x3ef443('0x30'));if(_0xc43737[_0x3ef443('0xa2')]==='user'){const _0x2c3825=_0x41e704[_0x3ef443('0x12')]({'plain':!![]}),_0x459bf=_0x3ef443('0xd3');return db['UserProfileSection'][_0x3ef443('0x93')]({'where':{'name':_0x459bf,'userProfileId':_0xc43737[_0x3ef443('0x9a')]},'raw':!![]})[_0x3ef443('0xbf')](function(_0x5002c9){const _0x3b7726=_0x3ef443;return _0x5002c9&&_0x5002c9['autoAssociation']===0x0?db['UserProfileResource'][_0x3b7726('0xdc')]({'name':_0x2c3825[_0x3b7726('0xfd')],'resourceId':_0x2c3825['id'],'type':_0x5002c9[_0x3b7726('0xfd')],'sectionId':_0x5002c9['id']},{})[_0x3b7726('0xbf')](function(){return _0x41e704;}):_0x41e704;})['catch'](function(_0x395df5){const _0x4c2d18=_0x3ef443;logger[_0x4c2d18('0x59')](_0x4c2d18('0xc1'),_0x395df5);throw _0x395df5;});}return _0x41e704;})[_0x527f58('0xbf')](respondWithResult(_0x16ef29,0xc9))[_0x527f58('0xb7')](handleError(_0x16ef29,null));},exports['update']=function(_0x4dcf62,_0x1e3ea1){const _0x204b1e=_0x203e3b;return _0x4dcf62[_0x204b1e('0x46')]['id']&&delete _0x4dcf62[_0x204b1e('0x46')]['id'],db[_0x204b1e('0x7b')]['findOne']({'where':{'id':_0x4dcf62['params']['id']},'include':[{'model':db[_0x204b1e('0x1f')],'as':_0x204b1e('0x7c')}]})[_0x204b1e('0xbf')](handleEntityNotFound(_0x1e3ea1,null))[_0x204b1e('0xbf')](saveUpdates(_0x4dcf62[_0x204b1e('0x46')],null))[_0x204b1e('0xbf')](respondWithResult(_0x1e3ea1,null))[_0x204b1e('0xb7')](handleError(_0x1e3ea1,null));},exports['destroy']=function(_0x1948af,_0x2d7908){const _0x4bf643=_0x203e3b;return db['ChatWebsite'][_0x4bf643('0x93')]({'where':{'id':_0x1948af['params']['id']}})[_0x4bf643('0xbf')](handleEntityNotFound(_0x2d7908,null))[_0x4bf643('0xbf')](removeEntity(_0x2d7908,null))[_0x4bf643('0xb7')](handleError(_0x2d7908,null));},exports['describe']=function(_0x56eabb,_0x15dc47){const _0x1fe140=_0x203e3b;return db[_0x1fe140('0x7b')][_0x1fe140('0xc8')]()[_0x1fe140('0xbf')](respondWithResult(_0x15dc47,null))[_0x1fe140('0xb7')](handleError(_0x15dc47,null));},exports[_0x203e3b('0x5e')]=function(_0xb09d32,_0x9642f){const _0x3039ba=_0x203e3b;return _0xb09d32[_0x3039ba('0x46')]['id']&&delete _0xb09d32[_0x3039ba('0x46')]['id'],db[_0x3039ba('0x7b')][_0x3039ba('0x93')]({'where':{'id':_0xb09d32[_0x3039ba('0x11')]['id']}})[_0x3039ba('0xbf')](handleEntityNotFound(_0x9642f,null))[_0x3039ba('0xbf')](function(_0x3e622b){const _0x5aaf17=_0x3039ba;if(_0x3e622b)return _0xb09d32[_0x5aaf17('0x46')][_0x5aaf17('0x32')]=_0x3e622b['id'],db[_0x5aaf17('0xf1')][_0x5aaf17('0xdc')](_0xb09d32[_0x5aaf17('0x46')]);})[_0x3039ba('0xbf')](respondWithResult(_0x9642f,null))[_0x3039ba('0xb7')](handleError(_0x9642f,null));},exports[_0x203e3b('0x36')]=function(_0x5389db,_0x3ccc02){const _0x1f0b69=_0x203e3b;let _0x71bc46={'raw':![],'where':{}};const _0x1743fb={},_0x12400a={'count':0x0,'rows':[]};return db[_0x1f0b69('0x7b')]['findOne']({'where':{'id':_0x5389db['params']['id']}})[_0x1f0b69('0xbf')](handleEntityNotFound(_0x3ccc02,null))[_0x1f0b69('0xbf')](function(_0x51c9b9){const _0x2131a5=_0x1f0b69;if(_0x51c9b9)return _0x1743fb['model']=_[_0x2131a5('0x1a')](db['Disposition'][_0x2131a5('0x6b')]),_0x1743fb[_0x2131a5('0xb2')]=_[_0x2131a5('0x1a')](_0x5389db[_0x2131a5('0xb2')]),_0x1743fb[_0x2131a5('0x91')]=_[_0x2131a5('0x28')](_0x1743fb[_0x2131a5('0x88')],_0x1743fb[_0x2131a5('0xb2')]),_0x71bc46[_0x2131a5('0xac')]=_[_0x2131a5('0x28')](_0x1743fb[_0x2131a5('0x88')],qs[_0x2131a5('0xe1')](_0x5389db[_0x2131a5('0xb2')][_0x2131a5('0xe1')])),_0x71bc46[_0x2131a5('0xac')]=_0x71bc46[_0x2131a5('0xac')][_0x2131a5('0xf0')]?_0x71bc46[_0x2131a5('0xac')]:_0x1743fb['model'],typeof _0x5389db[_0x2131a5('0xb2')][_0x2131a5('0xbd')]===_0x2131a5('0x102')&&(_0x71bc46[_0x2131a5('0x105')]=qs[_0x2131a5('0x105')](_0x5389db['query']['limit']),_0x71bc46[_0x2131a5('0x1b')]=qs['offset'](_0x5389db[_0x2131a5('0xb2')][_0x2131a5('0x1b')])),_0x71bc46['order']=qs[_0x2131a5('0x52')](_0x5389db['query']['sort']),_0x71bc46[_0x2131a5('0x82')]=qs[_0x2131a5('0x91')](_[_0x2131a5('0xfb')](_0x5389db[_0x2131a5('0xb2')],_0x1743fb['filters'])),_0x71bc46[_0x2131a5('0x82')]['ChatWebsiteId']=_0x51c9b9['id'],_0x5389db[_0x2131a5('0xb2')][_0x2131a5('0x45')]&&(_0x71bc46[_0x2131a5('0x82')]=_[_0x2131a5('0xb5')](_0x71bc46[_0x2131a5('0x82')],{[Op['or']]:_['map'](_0x71bc46['attributes'],function(_0x150d51){const _0x24186d=_0x2131a5,_0x1af8e1={};return _0x1af8e1[_0x150d51]={[Op[_0x24186d('0xca')]]:'%'+_0x5389db[_0x24186d('0xb2')][_0x24186d('0x45')]+'%'},_0x1af8e1;})})),_0x71bc46=_['merge']({},_0x71bc46,_0x5389db[_0x2131a5('0xd8')]),db[_0x2131a5('0xf1')][_0x2131a5('0x1')]({'where':_0x71bc46[_0x2131a5('0x82')]})['then'](function(_0xdf7977){const _0x17d95f=_0x2131a5;return _0x12400a[_0x17d95f('0x1')]=_0xdf7977,_0x5389db[_0x17d95f('0xb2')]['includeAll']&&(_0x71bc46[_0x17d95f('0x5d')]=[{'all':!![]}]),db[_0x17d95f('0xf1')][_0x17d95f('0x2e')](_0x71bc46);})[_0x2131a5('0xbf')](function(_0x32ef19){return _0x12400a['rows']=_0x32ef19,_0x12400a;});})[_0x1f0b69('0xbf')](respondWithFilteredResult(_0x3ccc02,_0x71bc46))['catch'](handleError(_0x3ccc02,null));},exports['removeDispositions']=function(_0x2c9cd0,_0x16ceeb){const _0x3484e2=_0x203e3b;return db[_0x3484e2('0x7b')]['findOne']({'where':{'id':_0x2c9cd0['params']['id']}})[_0x3484e2('0xbf')](handleEntityNotFound(_0x16ceeb,null))[_0x3484e2('0xbf')](function(_0x1cefe6){const _0xc3ce3a=_0x3484e2;if(_0x1cefe6)return _0x1cefe6['removeDispositions'](_0x2c9cd0[_0xc3ce3a('0xb2')][_0xc3ce3a('0x47')]);})[_0x3484e2('0xbf')](respondWithStatusCode(_0x16ceeb,null))['catch'](handleError(_0x16ceeb,null));},exports['addAnswer']=function(_0x307c32,_0x50b512){const _0x53c13b=_0x203e3b;return _0x307c32['body']['id']&&delete _0x307c32[_0x53c13b('0x46')]['id'],db[_0x53c13b('0x7b')][_0x53c13b('0x93')]({'where':{'id':_0x307c32[_0x53c13b('0x11')]['id']}})[_0x53c13b('0xbf')](handleEntityNotFound(_0x50b512,null))[_0x53c13b('0xbf')](function(_0x5ac18d){const _0x46ae39=_0x53c13b;if(_0x5ac18d)return _0x307c32[_0x46ae39('0x46')]['ChatWebsiteId']=_0x5ac18d['id'],db[_0x46ae39('0x38')][_0x46ae39('0xdc')](_0x307c32['body']);})[_0x53c13b('0xbf')](respondWithResult(_0x50b512,null))[_0x53c13b('0xb7')](handleError(_0x50b512,null));},exports[_0x203e3b('0xa4')]=function(_0x39801a,_0x44ccfe){const _0x5283ae=_0x203e3b;let _0x3820dd={'raw':![],'where':{}};const _0x445321={},_0x4c589b={'count':0x0,'rows':[]};return db['ChatWebsite'][_0x5283ae('0x93')]({'where':{'id':_0x39801a[_0x5283ae('0x11')]['id']}})['then'](handleEntityNotFound(_0x44ccfe,null))[_0x5283ae('0xbf')](function(_0x34c4d2){const _0x9dbefc=_0x5283ae;if(_0x34c4d2)return _0x445321[_0x9dbefc('0x88')]=_[_0x9dbefc('0x1a')](db[_0x9dbefc('0x38')][_0x9dbefc('0x6b')]),_0x445321[_0x9dbefc('0xb2')]=_[_0x9dbefc('0x1a')](_0x39801a[_0x9dbefc('0xb2')]),_0x445321['filters']=_[_0x9dbefc('0x28')](_0x445321[_0x9dbefc('0x88')],_0x445321[_0x9dbefc('0xb2')]),_0x3820dd[_0x9dbefc('0xac')]=_['intersection'](_0x445321['model'],qs[_0x9dbefc('0xe1')](_0x39801a[_0x9dbefc('0xb2')][_0x9dbefc('0xe1')])),_0x3820dd['attributes']=_0x3820dd[_0x9dbefc('0xac')][_0x9dbefc('0xf0')]?_0x3820dd[_0x9dbefc('0xac')]:_0x445321[_0x9dbefc('0x88')],typeof _0x39801a['query']['nolimit']==='undefined'&&(_0x3820dd[_0x9dbefc('0x105')]=qs[_0x9dbefc('0x105')](_0x39801a[_0x9dbefc('0xb2')]['limit']),_0x3820dd[_0x9dbefc('0x1b')]=qs['offset'](_0x39801a[_0x9dbefc('0xb2')]['offset'])),_0x3820dd[_0x9dbefc('0xe')]=qs['sort'](_0x39801a[_0x9dbefc('0xb2')][_0x9dbefc('0x52')]),_0x3820dd[_0x9dbefc('0x82')]=qs[_0x9dbefc('0x91')](_[_0x9dbefc('0xfb')](_0x39801a[_0x9dbefc('0xb2')],_0x445321[_0x9dbefc('0x91')])),_0x3820dd['where']['ChatWebsiteId']=_0x34c4d2['id'],_0x39801a[_0x9dbefc('0xb2')]['filter']&&(_0x3820dd[_0x9dbefc('0x82')]=_[_0x9dbefc('0xb5')](_0x3820dd[_0x9dbefc('0x82')],{[Op['or']]:_['map'](_0x3820dd[_0x9dbefc('0xac')],function(_0x2972c7){const _0x55de02=_0x9dbefc,_0x1498d4={};return _0x1498d4[_0x2972c7]={[Op['like']]:'%'+_0x39801a[_0x55de02('0xb2')][_0x55de02('0x45')]+'%'},_0x1498d4;})})),_0x3820dd=_['merge']({},_0x3820dd,_0x39801a['options']),db['CannedAnswer'][_0x9dbefc('0x1')]({'where':_0x3820dd[_0x9dbefc('0x82')]})['then'](function(_0x3ce671){const _0x310678=_0x9dbefc;return _0x4c589b[_0x310678('0x1')]=_0x3ce671,_0x39801a[_0x310678('0xb2')]['includeAll']&&(_0x3820dd[_0x310678('0x5d')]=[{'all':!![]}]),db[_0x310678('0x38')][_0x310678('0x2e')](_0x3820dd);})[_0x9dbefc('0xbf')](function(_0x5be35c){const _0x4c8eca=_0x9dbefc;return _0x4c589b[_0x4c8eca('0xa0')]=_0x5be35c,_0x4c589b;});})['then'](respondWithFilteredResult(_0x44ccfe,_0x3820dd))[_0x5283ae('0xb7')](handleError(_0x44ccfe,null));},exports['removeAnswers']=function(_0x407123,_0x315adc){const _0x40b3db=_0x203e3b;return db['ChatWebsite'][_0x40b3db('0x93')]({'where':{'id':_0x407123[_0x40b3db('0x11')]['id']}})['then'](handleEntityNotFound(_0x315adc,null))[_0x40b3db('0xbf')](function(_0x2a3662){const _0x41ad27=_0x40b3db;if(_0x2a3662)return _0x2a3662[_0x41ad27('0xf3')](_0x407123[_0x41ad27('0xb2')][_0x41ad27('0x47')]);})['then'](respondWithStatusCode(_0x315adc,null))['catch'](handleError(_0x315adc,null));},exports[_0x203e3b('0xb')]=function(_0x5d0e03,_0x1af57e){const _0x39c06a=_0x203e3b;return _0x5d0e03['body']['sitepic']=_0x5d0e03[_0x39c06a('0xb9')][_0x39c06a('0x55')],db['ChatWebsite'][_0x39c06a('0x93')]({'where':{'id':_0x5d0e03[_0x39c06a('0x11')]['id']}})[_0x39c06a('0xbf')](handleEntityNotFound(_0x1af57e,null))[_0x39c06a('0xbf')](saveUpdates(_0x5d0e03[_0x39c06a('0x46')],null))['then'](respondWithResult(_0x1af57e,null))[_0x39c06a('0xb7')](handleError(_0x1af57e,null));},exports[_0x203e3b('0x18')]=function(_0x154196,_0x33b524){const _0x173f54=_0x203e3b;return _0x154196[_0x173f54('0x46')][_0x173f54('0xaa')]=_0x154196[_0x173f54('0xb9')]['filename'],db[_0x173f54('0x7b')][_0x173f54('0x93')]({'where':{'id':_0x154196[_0x173f54('0x11')]['id']}})[_0x173f54('0xbf')](handleEntityNotFound(_0x33b524,null))[_0x173f54('0xbf')](saveUpdates(_0x154196['body'],null))[_0x173f54('0xbf')](respondWithResult(_0x33b524,null))[_0x173f54('0xb7')](handleError(_0x33b524,null));},exports[_0x203e3b('0x107')]=function(_0x7dc991,_0x3877e0){const _0x39f961=_0x203e3b;return _0x7dc991['body']['customerAvatar']=_0x7dc991[_0x39f961('0xb9')][_0x39f961('0x55')],db[_0x39f961('0x7b')]['findOne']({'where':{'id':_0x7dc991[_0x39f961('0x11')]['id']}})[_0x39f961('0xbf')](handleEntityNotFound(_0x3877e0,null))[_0x39f961('0xbf')](saveUpdates(_0x7dc991[_0x39f961('0x46')],null))[_0x39f961('0xbf')](respondWithResult(_0x3877e0,null))[_0x39f961('0xb7')](handleError(_0x3877e0,null));},exports[_0x203e3b('0x25')]=function(_0x17ca36,_0x242fdb){const _0xf18e6b=_0x203e3b;return _0x17ca36[_0xf18e6b('0x46')][_0xf18e6b('0xb4')]=_0x17ca36['file'][_0xf18e6b('0x55')],db[_0xf18e6b('0x7b')][_0xf18e6b('0x93')]({'where':{'id':_0x17ca36[_0xf18e6b('0x11')]['id']}})[_0xf18e6b('0xbf')](handleEntityNotFound(_0x242fdb,null))[_0xf18e6b('0xbf')](saveUpdates(_0x17ca36['body'],null))[_0xf18e6b('0xbf')](respondWithResult(_0x242fdb,null))['catch'](handleError(_0x242fdb,null));},exports[_0x203e3b('0xc4')]=function(_0x89289c,_0x3a5d14){const _0x21d31a=_0x203e3b;let _0xd0f822=path[_0x21d31a('0x6c')](config[_0x21d31a('0x5b')],_0x21d31a('0x7'));const _0x3da9cc={'where':{'id':_0x89289c[_0x21d31a('0x11')]['id']},'attributes':['id',_0x21d31a('0x8')],'raw':!![]};let _0x10d31c=![];return require(_0x21d31a('0xdd'))['getLicense']()[_0x21d31a('0xbf')](function(_0x451e75){const _0x40ff33=_0x21d31a;_0x451e75&&(_0x10d31c=_0x451e75[_0x40ff33('0x39')]);})[_0x21d31a('0xbf')](function(){const _0x556218=_0x21d31a;return db['ChatWebsite'][_0x556218('0x93')](_0x3da9cc);})['then'](handleEntityNotFound(_0x3a5d14,null))['then'](function(_0x3bf27d){const _0x1860af=_0x21d31a;if(_0x3bf27d)return!_[_0x1860af('0xeb')](_0x3bf27d[_0x1860af('0x8')])&&(fs[_0x1860af('0xa3')](path[_0x1860af('0x6c')](config[_0x1860af('0x5b')],_0x1860af('0x99'),_0x3bf27d[_0x1860af('0x8')]))&&_0x10d31c&&(_0xd0f822=path[_0x1860af('0x6c')](config[_0x1860af('0x5b')],_0x1860af('0x99'),_0x3bf27d[_0x1860af('0x8')]))),_0x3a5d14[_0x1860af('0x22')](_0xd0f822);})['catch'](handleError(_0x3a5d14,null));},exports[_0x203e3b('0xa6')]=function(_0x6bcc4d,_0x4de87c){const _0x4cbeeb=_0x203e3b;let _0x3340e3=path[_0x4cbeeb('0x6c')](config[_0x4cbeeb('0x5b')],_0x4cbeeb('0xec'));const _0x275d49={'where':{'id':_0x6bcc4d[_0x4cbeeb('0x11')]['id']},'attributes':['id','agentAvatar'],'raw':!![]};return db[_0x4cbeeb('0x7b')]['findOne'](_0x275d49)['then'](handleEntityNotFound(_0x4de87c,null))[_0x4cbeeb('0xbf')](function(_0x4bdb68){const _0x227ad2=_0x4cbeeb;if(_0x4bdb68)return!_[_0x227ad2('0xeb')](_0x4bdb68[_0x227ad2('0xaa')])&&(fs[_0x227ad2('0xa3')](path[_0x227ad2('0x6c')](config[_0x227ad2('0x5b')],_0x227ad2('0x75'),_0x4bdb68[_0x227ad2('0xaa')]))&&(_0x3340e3=path['join'](config[_0x227ad2('0x5b')],_0x227ad2('0x75'),_0x4bdb68[_0x227ad2('0xaa')]))),_0x4de87c[_0x227ad2('0x22')](_0x3340e3);})[_0x4cbeeb('0xb7')](handleError(_0x4de87c,null));},exports[_0x203e3b('0xdf')]=function(_0x28ef90,_0x5cf9ba){const _0x722c6c=_0x203e3b;let _0x52f96b=path[_0x722c6c('0x6c')](config[_0x722c6c('0x5b')],_0x722c6c('0xbc'));const _0x2dedfa={'where':{'id':_0x28ef90['params']['id']},'attributes':['id',_0x722c6c('0xbb'),'showCustomerAvatar'],'raw':!![]};return db['ChatWebsite']['findOne'](_0x2dedfa)[_0x722c6c('0xbf')](handleEntityNotFound(_0x5cf9ba,null))[_0x722c6c('0xbf')](function(_0xeef364){const _0x5b8fae=_0x722c6c;if(_0xeef364)return!_['isNil'](_0xeef364[_0x5b8fae('0xbb')])&&(fs[_0x5b8fae('0xa3')](path[_0x5b8fae('0x6c')](config[_0x5b8fae('0x5b')],_0x5b8fae('0x75'),_0xeef364[_0x5b8fae('0xbb')]))&&_0xeef364[_0x5b8fae('0x87')]&&(_0x52f96b=path[_0x5b8fae('0x6c')](config['root'],_0x5b8fae('0x75'),_0xeef364[_0x5b8fae('0xbb')]))),_0x5cf9ba[_0x5b8fae('0x22')](_0x52f96b);})[_0x722c6c('0xb7')](handleError(_0x5cf9ba,null));},exports[_0x203e3b('0x90')]=function(_0x1e998b,_0x24d33e){const _0x24c516=_0x203e3b;let _0x47ee31=path[_0x24c516('0x6c')](config[_0x24c516('0x5b')],_0x24c516('0x13'));const _0x26e96c={'where':{'id':_0x1e998b[_0x24c516('0x11')]['id']},'attributes':['id',_0x24c516('0xb4')],'raw':!![]};return db[_0x24c516('0x7b')][_0x24c516('0x93')](_0x26e96c)['then'](handleEntityNotFound(_0x24d33e,null))['then'](function(_0x1265b6){const _0x1033b0=_0x24c516;if(_0x1265b6)return!_[_0x1033b0('0xeb')](_0x1265b6[_0x1033b0('0xb4')])&&(fs[_0x1033b0('0xa3')](path[_0x1033b0('0x6c')](config[_0x1033b0('0x5b')],_0x1033b0('0x75'),_0x1265b6[_0x1033b0('0xb4')]))&&(_0x47ee31=path[_0x1033b0('0x6c')](config[_0x1033b0('0x5b')],_0x1033b0('0x75'),_0x1265b6['systemAvatar']))),_0x24d33e[_0x1033b0('0x22')](_0x47ee31);})[_0x24c516('0xb7')](handleError(_0x24d33e,null));},exports['notify']=function(_0x57878d,_0x335621){const _0x2e7090=_0x203e3b,_0x8f0c6d=require(_0x2e7090('0x1d')),_0x3c21f7=new _0x8f0c6d(),_0x13689a=_0x3c21f7['setUA'](_0x57878d[_0x2e7090('0x3d')]['user-agent'])[_0x2e7090('0x63')](),_0x42c24f={'body':_0x57878d[_0x2e7090('0x46')],'channel':_0x2e7090('0x54')};let _0x37c6c5=[],_0x22e2c3=[];const _0x5213e9={};let _0x172360=![];return db['CmContact'][_0x2e7090('0xc8')]()[_0x2e7090('0xbf')](function(_0x155d5f){const _0x152d9a=_0x2e7090;if(!_0x155d5f)throw new db[(_0x152d9a('0x4d'))][(_0x152d9a('0x9d'))]('no\x20available\x20attributes');_0x37c6c5=_[_0x152d9a('0x2a')](_[_0x152d9a('0x1a')](_0x155d5f),[_0x152d9a('0xcd'),_0x152d9a('0xa5')]),_0x22e2c3=_[_0x152d9a('0x2a')](_[_0x152d9a('0x1a')](_0x155d5f),[_0x152d9a('0xcd'),_0x152d9a('0xa5'),_0x152d9a('0xf8'),_0x152d9a('0x86')]);_0x57878d[_0x152d9a('0x46')]['id']&&delete _0x57878d[_0x152d9a('0x46')]['id'];if(_['isNil'](_0x57878d['body'][_0x152d9a('0x49')]))throw new db[(_0x152d9a('0x4d'))][(_0x152d9a('0x9d'))](_0x152d9a('0x4f'));if(_[_0x152d9a('0xeb')](_0x57878d[_0x152d9a('0x46')][_0x152d9a('0x46')])||_0x57878d[_0x152d9a('0x46')][_0x152d9a('0x46')]==='')throw new db[(_0x152d9a('0x4d'))][(_0x152d9a('0x9d'))](_0x152d9a('0xcb'));if(_[_0x152d9a('0xeb')](_0x57878d[_0x152d9a('0x46')][_0x152d9a('0xd4')]))throw new db[(_0x152d9a('0x4d'))]['ValidationError'](_0x152d9a('0x1e')+_0x22e2c3);if(!_[_0x152d9a('0xc9')](_0x22e2c3,_0x57878d[_0x152d9a('0x46')][_0x152d9a('0xd4')]))throw new db['Sequelize'][(_0x152d9a('0x9d'))](_0x152d9a('0x9f')+_0x22e2c3);_0x5213e9[_0x57878d[_0x152d9a('0x46')]['mapKey']]=_0x57878d[_0x152d9a('0x46')][_0x152d9a('0x49')];})[_0x2e7090('0xbf')](function(){const _0x5223c1=_0x2e7090;return db['ChatWebsite']['findOne']({'where':{'id':_0x57878d[_0x5223c1('0x11')]['id']},'include':[{'model':db[_0x5223c1('0x23')],'as':_0x5223c1('0x37'),'include':[{'model':db[_0x5223c1('0x71')],'as':_0x5223c1('0xcc'),'where':_0x5213e9,'limit':0x1,'order':[[_0x5223c1('0xa5'),_0x5223c1('0x29')]]}]},{'model':db[_0x5223c1('0x6f')],'as':_0x5223c1('0x4a')}]});})[_0x2e7090('0xbf')](handleEntityNotFound(_0x335621,null))[_0x2e7090('0xbf')](function(_0x1f6ec5){const _0x394451=_0x2e7090;if(_0x1f6ec5&&_0x1f6ec5['List']){_0x42c24f[_0x394451('0x33')]=_0x1f6ec5,_0x42c24f[_0x394451('0xb1')]=_0x1f6ec5[_0x394451('0x4a')],_0x42c24f[_0x394451('0xe6')]=_0x1f6ec5['List'],_0x42c24f[_0x394451('0xb1')]=_['orderBy'](_0x42c24f[_0x394451('0xb1')],[_0x394451('0x4b')],[_0x394451('0x104')]);_0x42c24f[_0x394451('0x33')][_0x394451('0x4a')]&&delete _0x42c24f['account'][_0x394451('0x4a')];if(_0x42c24f[_0x394451('0x33')][_0x394451('0x37')]&&_0x42c24f[_0x394451('0x33')]['List'][_0x394451('0xcc')][_0x394451('0xf0')])return _0x42c24f['account'][_0x394451('0x37')]['Contacts'][0x0];const _0x4a0b13=_[_0x394451('0xf4')](_0x57878d[_0x394451('0x46')],{'firstName':_0x57878d[_0x394451('0x46')]['from'],'ListId':_0x1f6ec5[_0x394451('0x86')]});return _0x4a0b13[_0x57878d['body'][_0x394451('0xd4')]]=_0x57878d['body'][_0x394451('0x49')],db[_0x394451('0x71')][_0x394451('0xdc')](_0x4a0b13,{'fields':_0x37c6c5,'raw':!![]});}})[_0x2e7090('0xbf')](handleEntityNotFound(_0x335621,null))[_0x2e7090('0xbf')](function(_0x10a5ae){const _0x35805c=_0x2e7090;_0x42c24f[_0x35805c('0xee')]=_0x10a5ae;let _0x486832=_0x57878d[_0x35805c('0x46')][_0x35805c('0x106')];if(_0x57878d[_0x35805c('0x3d')]['cf-connecting-ip'])_0x486832=_0x57878d[_0x35805c('0x3d')][_0x35805c('0x14')];else _0x57878d[_0x35805c('0x3d')]['x-forwarded-for']&&(_0x486832=_[_0x35805c('0x3b')](_0x57878d[_0x35805c('0x3d')]['x-forwarded-for'][_0x35805c('0x19')](',')));if(_0x10a5ae){const _0x44df4b={'ContactId':_0x10a5ae['id'],'ChatWebsiteId':_0x57878d['params']['id'],'from':(_0x10a5ae[_0x35805c('0xe3')]||'')+'\x20'+(_0x10a5ae['lastName']||''),'customerIp':_0x486832,'customerPort':_0x57878d[_0x35805c('0x3d')][_0x35805c('0xea')]?_0x57878d[_0x35805c('0x3d')][_0x35805c('0xea')]:null,'referer':_0x57878d['body'][_0x35805c('0x74')],'browserName':_0x13689a['browser'][_0x35805c('0xfd')]&&_0x13689a['browser'][_0x35805c('0x65')]?util[_0x35805c('0xfe')](_0x35805c('0xd0'),_0x13689a[_0x35805c('0xd')]['name'],_0x13689a[_0x35805c('0xd')][_0x35805c('0x65')]):_0x35805c('0x26'),'browserVersion':_0x13689a[_0x35805c('0xd')][_0x35805c('0x65')]||'unknown','osName':util[_0x35805c('0xfe')](_0x35805c('0xd0'),_0x13689a['os'][_0x35805c('0xfd')],_0x13689a['os'][_0x35805c('0x65')]),'osVersion':_0x13689a['os'][_0x35805c('0x65')],'deviceModel':_0x13689a['device'][_0x35805c('0x88')]&&_0x13689a['device'][_0x35805c('0xd2')]?util['format'](_0x35805c('0xdb'),_0x13689a[_0x35805c('0xce')]['model'],_0x13689a['device'][_0x35805c('0xd2')],_0x13689a[_0x35805c('0xce')]['type']):null,'deviceVendor':_0x13689a['device']['vendor'],'deviceType':_0x13689a[_0x35805c('0xce')][_0x35805c('0x53')],'formData':JSON[_0x35805c('0xc6')](_0x57878d['body'])},_0x2b133b={'ChatWebsiteId':_0x57878d['params']['id'],'closed':![]};if(_0x57878d['body']['threadId'])return _0x2b133b[_0x35805c('0x24')]=_0x57878d[_0x35805c('0x46')][_0x35805c('0x24')],db[_0x35805c('0x8d')][_0x35805c('0x93')]({'where':_0x2b133b})['then'](function(_0x2acfd6){const _0x51d1ec=_0x35805c;if(_0x2acfd6)return[_0x2acfd6,![]];return _0x44df4b['threadId']=_0x57878d[_0x51d1ec('0x46')][_0x51d1ec('0x24')],_0x44df4b['externalUrl']=_0x57878d[_0x51d1ec('0x46')][_0x51d1ec('0x20')],db[_0x51d1ec('0x8d')][_0x51d1ec('0xdc')](_0x44df4b)[_0x51d1ec('0xbf')](function(_0x238eb7){return[_0x238eb7,!![]];});});_0x2b133b[_0x35805c('0x15')]=_0x10a5ae['id'];if(_0x57878d[_0x35805c('0x46')][_0x35805c('0x98')]&&_0x57878d[_0x35805c('0x46')][_0x35805c('0x98')]['id'])return _0x2b133b['id']=_0x57878d[_0x35805c('0x46')]['interaction']['id'],db[_0x35805c('0x8d')][_0x35805c('0x93')]({'where':_0x2b133b})[_0x35805c('0xbf')](function(_0x4cea9c){const _0x2ffc5a=_0x35805c;if(_0x4cea9c)return[_0x4cea9c,![]];return db[_0x2ffc5a('0x8d')][_0x2ffc5a('0xdc')](_0x44df4b)[_0x2ffc5a('0xbf')](function(_0x103b88){return[_0x103b88,!![]];});});return db[_0x35805c('0x8d')][_0x35805c('0xdc')](_0x44df4b)['then'](function(_0x4854d4){return[_0x4854d4,!![]];});}})[_0x2e7090('0xbf')](function([_0x500cef,_0x111603]){const _0x4b78c0=_0x2e7090;if(_0x500cef){_0x172360=_0x111603;if(!_0x111603){const _0x3f1d7c={'from':(_0x42c24f[_0x4b78c0('0xee')][_0x4b78c0('0xe3')]||'')+'\x20'+(_0x42c24f[_0x4b78c0('0xee')][_0x4b78c0('0x69')]||'')};return _0x57878d[_0x4b78c0('0x46')][_0x4b78c0('0x24')]&&_0x57878d[_0x4b78c0('0x46')][_0x4b78c0('0x8c')]&&_0x57878d['body'][_0x4b78c0('0x24')]!=_0x57878d[_0x4b78c0('0x46')][_0x4b78c0('0x8c')]&&(_0x3f1d7c[_0x4b78c0('0x24')]=_0x57878d[_0x4b78c0('0x46')][_0x4b78c0('0x8c')]),_0x500cef[_0x4b78c0('0xf9')](_0x3f1d7c);}else return _0x500cef;}})[_0x2e7090('0xbf')](function(_0x258888){const _0x4a6ff3=_0x2e7090;return _0x42c24f[_0x4a6ff3('0x98')]=_0x258888[_0x4a6ff3('0x12')]({'plain':!![]}),_0x42c24f['interaction'][_0x4a6ff3('0x2c')]=_0x172360,_0x42c24f['interaction'][_0x4a6ff3('0x2c')]&&(_0x42c24f['account'][_0x4a6ff3('0x44')]&&_0x42c24f[_0x4a6ff3('0xb1')][_0x4a6ff3('0x62')]({'id':0x0,'priority':_0x42c24f[_0x4a6ff3('0xb1')][_0x4a6ff3('0xf0')]+0x1,'app':_0x4a6ff3('0x67'),'appdata':_0x4a6ff3('0x9'),'interval':'*,*,*,*'})),db[_0x4a6ff3('0x8e')][_0x4a6ff3('0xdc')]({'body':_0x57878d[_0x4a6ff3('0x46')][_0x4a6ff3('0x46')],'ChatWebsiteId':_0x57878d[_0x4a6ff3('0x11')]['id'],'ChatInteractionId':_0x258888['id'],'direction':'in','ContactId':_0x42c24f[_0x4a6ff3('0xee')]['id'],'AttachmentId':_0x57878d['body'][_0x4a6ff3('0xa7')]});})[_0x2e7090('0xbf')](function(_0x1272ab){const _0x1af9f9=_0x2e7090;_0x42c24f['message']=_0x1272ab;if(_0x42c24f[_0x1af9f9('0x98')][_0x1af9f9('0x2d')])return db[_0x1af9f9('0x89')][_0x1af9f9('0x93')]({'attributes':['id',_0x1af9f9('0xfd')],'where':{'id':_0x42c24f[_0x1af9f9('0x98')]['UserId']}})[_0x1af9f9('0xbf')](function(_0x507785){const _0x22d855=_0x1af9f9;return _0x507785&&(_0x42c24f[_0x22d855('0xb1')][_0x22d855('0xf5')]({'id':0x0,'priority':0x0,'app':_0x22d855('0x48'),'appdata':_0x507785[_0x22d855('0xfd')]+','+(_0x42c24f['account'][_0x22d855('0xf2')]||0xa),'interval':_0x22d855('0x10')}),_0x42c24f[_0x22d855('0x31')]=!![]),respondWithRpcPromise('Start',_0x22d855('0x9e'),_0x42c24f);});return respondWithRpcPromise(_0x1af9f9('0xc'),'startRouting',_0x42c24f);})[_0x2e7090('0xbf')](function(_0x604ddb){const _0x1cccd1=_0x2e7090;return respondWithRpcPromise('EventManager','EventManager',{'event':_0x1cccd1('0x80'),'message':_0x604ddb},client9002),_0x604ddb;})[_0x2e7090('0xbf')](respondWithResult(_0x335621,null))['catch'](handleError(_0x335621,null));},exports[_0x203e3b('0x4e')]=function(_0x2de363,_0x57cf72){const _0x225cad=_0x203e3b;let _0x3b5239,_0x219b1d,_0x42c53f=[];const _0x29b922={};return db[_0x225cad('0x71')][_0x225cad('0xc8')]()['then'](function(_0x418fe9){const _0x42b737=_0x225cad;if(!_0x418fe9)throw new db[(_0x42b737('0x4d'))][(_0x42b737('0x9d'))]('no\x20available\x20attributes');_0x42c53f=_[_0x42b737('0x2a')](_[_0x42b737('0x1a')](_0x418fe9),[_0x42b737('0xcd'),_0x42b737('0xa5'),_0x42b737('0xf8'),_0x42b737('0x86')]);_0x2de363[_0x42b737('0x46')]['id']&&delete _0x2de363[_0x42b737('0x46')]['id'];if(_[_0x42b737('0xeb')](_0x2de363[_0x42b737('0x46')][_0x42b737('0x49')]))throw _0x57cf72[_0x42b737('0xda')](0x1f4)['send'](new db[(_0x42b737('0x4d'))][(_0x42b737('0x9d'))](_0x42b737('0x4f')));if(_[_0x42b737('0xeb')](_0x2de363[_0x42b737('0x46')][_0x42b737('0x46')])||_0x2de363[_0x42b737('0x46')][_0x42b737('0x46')]==='')throw _0x57cf72[_0x42b737('0xda')](0x1f4)[_0x42b737('0x58')](new db[(_0x42b737('0x4d'))][(_0x42b737('0x9d'))](_0x42b737('0xcb')));if(_[_0x42b737('0xeb')](_0x2de363[_0x42b737('0x46')][_0x42b737('0x17')]))throw _0x57cf72[_0x42b737('0xda')](0x1f4)[_0x42b737('0x58')](new db['Sequelize'][(_0x42b737('0x9d'))](_0x42b737('0x6')+_0x42c53f));if(!_[_0x42b737('0xc9')](_0x42c53f,_0x2de363['body'][_0x42b737('0x17')]))throw _0x57cf72['status'](0x1f4)['send'](new db[(_0x42b737('0x4d'))]['ValidationError'](_0x42b737('0xa1')+_0x42c53f));_0x29b922[_0x2de363[_0x42b737('0x46')][_0x42b737('0x17')]]=_0x2de363[_0x42b737('0x46')]['from'];})['then'](function(){const _0x58a5ab=_0x225cad;return db[_0x58a5ab('0x7b')][_0x58a5ab('0x93')]({'where':{'id':_0x2de363[_0x58a5ab('0x11')]['id']},'include':[{'model':db[_0x58a5ab('0x23')],'as':_0x58a5ab('0x37')}]});})[_0x225cad('0xbf')](handleEntityNotFound(_0x57cf72,null))['then'](function(_0x2b6b61){const _0xaa4d12=_0x225cad;if(_0x2b6b61&&_0x2b6b61[_0xaa4d12('0x37')]){_0x219b1d=_0x2b6b61;const _0x12f442=_[_0xaa4d12('0xf4')](_0x2de363[_0xaa4d12('0x46')],{'firstName':_0x2de363[_0xaa4d12('0x46')][_0xaa4d12('0x49')],'phone':_0x2de363['body'][_0xaa4d12('0x49')],'ListId':_0x2b6b61[_0xaa4d12('0x86')]});return _0x12f442[_0x2de363[_0xaa4d12('0x46')][_0xaa4d12('0x17')]]=_0x2de363[_0xaa4d12('0x46')][_0xaa4d12('0x49')],db[_0xaa4d12('0x71')]['findOrCreate']({'where':_0x29b922,'defaults':_0x12f442});}})[_0x225cad('0xbf')](function([_0xf41016]){const _0x47b9c8=_0x225cad;if(_0xf41016){const _0x5a0585=fs[_0x47b9c8('0xb8')](path['join'](config[_0x47b9c8('0x5b')],_0x47b9c8('0x101')),_0x47b9c8('0x27')),_0x18a075=ejs[_0x47b9c8('0x76')](_0x5a0585,{'body':_[_0x47b9c8('0xff')](_0x2de363[_0x47b9c8('0x46')]['body']),'bodyTitle':_0x219b1d['offlineMessageBody']});return db[_0x47b9c8('0xbe')][_0x47b9c8('0xdc')]({'body':_0x18a075,'ContactId':_0xf41016['id'],'ChatWebsiteId':_0x219b1d['id']});}})[_0x225cad('0xbf')](function(_0x3b80ae){const _0x3effe8=_0x225cad;if(_0x3b80ae)return _0x3b5239=_0x3b80ae,db[_0x3effe8('0x5c')][_0x3effe8('0x93')]({'where':{'service':!![]},'include':[{'model':db[_0x3effe8('0x5a')],'as':_0x3effe8('0x8a'),'raw':!![]}]});})[_0x225cad('0xbf')](function(_0x191917){const _0x2e12dc=_0x225cad;if(_0x191917&&_0x191917['Smtp']&&_0x219b1d[_0x2e12dc('0x41')]){const _0x29d7d5={'tls':{'rejectUnauthorized':![]}};return _0x191917['Smtp'][_0x2e12dc('0x73')]?_0x29d7d5[_0x2e12dc('0x73')]=_0x191917[_0x2e12dc('0x8a')][_0x2e12dc('0x73')]:(_0x29d7d5[_0x2e12dc('0x3f')]=_0x191917['Smtp'][_0x2e12dc('0x3f')],_0x29d7d5[_0x2e12dc('0xc3')]=_0x191917['Smtp'][_0x2e12dc('0xc3')],_0x29d7d5[_0x2e12dc('0xaf')]=_0x191917[_0x2e12dc('0x8a')][_0x2e12dc('0xaf')]),_0x191917[_0x2e12dc('0x8a')][_0x2e12dc('0x6e')]&&(_0x29d7d5[_0x2e12dc('0x0')]={'user':_0x191917[_0x2e12dc('0x8a')][_0x2e12dc('0x5f')],'pass':_0x191917[_0x2e12dc('0x8a')]['pass']}),respondWithRpcPromise(_0x2e12dc('0xe2'),'sendMail',{'account':_0x29d7d5,'message':{'from':util['format'](_0x2e12dc('0x79'),_0x191917[_0x2e12dc('0xfd')],_0x191917[_0x2e12dc('0xd1')]||_0x191917[_0x2e12dc('0x8a')][_0x2e12dc('0x5f')]),'to':_0x219b1d[_0x2e12dc('0x41')],'subject':_0x219b1d[_0x2e12dc('0xa')],'text':_0x3b5239[_0x2e12dc('0x46')]}},client9003)['then'](function(){return _0x3b5239;})[_0x2e12dc('0xb7')](function(_0x29cb68){console['error'](_0x29cb68);});}})[_0x225cad('0xbf')](function(){if(_0x3b5239)return _0x3b5239;})[_0x225cad('0xbf')](respondWithResult(_0x57cf72,null))['catch'](handleError(_0x57cf72,null));},exports[_0x203e3b('0xb0')]=function(_0x2ac982,_0x303aec){const _0x1f7885=_0x203e3b;return db['ChatInteraction'][_0x1f7885('0x93')]({'where':{'id':_0x2ac982[_0x1f7885('0x11')]['id']}})[_0x1f7885('0xbf')](function(_0x27f8c5){const _0x45b883=_0x1f7885;if(_0x27f8c5)return _0x27f8c5[_0x45b883('0xb0')](_0x2ac982['body'][_0x45b883('0x47')],{'through':_[_0x45b883('0x83')](_0x2ac982[_0x45b883('0x46')],['ids','id'])});})[_0x1f7885('0xbf')](respondWithResult(_0x303aec,null))['catch'](handleError(_0x303aec,null));},exports[_0x203e3b('0x43')]=function(_0x14707c,_0x2cd278){const _0x37eacf=_0x203e3b;let _0x1acf80={'raw':![],'where':{}};const _0x48b087={},_0x293eb4={'count':0x0,'rows':[]};return db[_0x37eacf('0x7b')][_0x37eacf('0x93')]({'where':{'id':_0x14707c[_0x37eacf('0x11')]['id']}})[_0x37eacf('0xbf')](handleEntityNotFound(_0x2cd278,null))[_0x37eacf('0xbf')](function(_0x39970d){const _0xbe6edd=_0x37eacf;if(_0x39970d)return _0x48b087[_0xbe6edd('0x88')]=_[_0xbe6edd('0x1a')](db[_0xbe6edd('0x8d')][_0xbe6edd('0x6b')]),_0x48b087['query']=_[_0xbe6edd('0x1a')](_0x14707c['query']),_0x48b087['filters']=_[_0xbe6edd('0x28')](_0x48b087['model'],_0x48b087[_0xbe6edd('0xb2')]),_0x1acf80['attributes']=_[_0xbe6edd('0x28')](_0x48b087['model'],qs['fields'](_0x14707c[_0xbe6edd('0xb2')][_0xbe6edd('0xe1')])),_0x1acf80[_0xbe6edd('0xac')]=_0x1acf80['attributes'][_0xbe6edd('0xf0')]?_0x1acf80[_0xbe6edd('0xac')]:_0x48b087[_0xbe6edd('0x88')],typeof _0x14707c[_0xbe6edd('0xb2')]['nolimit']==='undefined'&&(_0x1acf80[_0xbe6edd('0x105')]=qs[_0xbe6edd('0x105')](_0x14707c['query'][_0xbe6edd('0x105')]),_0x1acf80[_0xbe6edd('0x1b')]=qs[_0xbe6edd('0x1b')](_0x14707c[_0xbe6edd('0xb2')][_0xbe6edd('0x1b')])),_0x1acf80[_0xbe6edd('0xe')]=qs[_0xbe6edd('0x52')](_0x14707c['query']['sort']),_0x1acf80[_0xbe6edd('0x82')]=qs[_0xbe6edd('0x91')](_['pick'](_0x14707c['query'],_0x48b087['filters'])),_0x1acf80['where'][_0xbe6edd('0x32')]=_0x39970d['id'],_0x14707c[_0xbe6edd('0xb2')][_0xbe6edd('0x45')]&&(_0x1acf80[_0xbe6edd('0x82')]=_[_0xbe6edd('0xb5')](_0x1acf80['where'],{[Op['or']]:_[_0xbe6edd('0x5')](_0x1acf80['attributes'],function(_0xcf5eef){const _0x42b4d9=_0xbe6edd,_0x38b3cd={};return _0x38b3cd[_0xcf5eef]={[Op['like']]:'%'+_0x14707c[_0x42b4d9('0xb2')]['filter']+'%'},_0x38b3cd;})})),_0x1acf80=_[_0xbe6edd('0xb5')]({},_0x1acf80,_0x14707c[_0xbe6edd('0xd8')]),db['ChatInteraction'][_0xbe6edd('0x1')]({'where':_0x1acf80[_0xbe6edd('0x82')]})[_0xbe6edd('0xbf')](function(_0x47df2b){const _0x1d83ca=_0xbe6edd;return _0x293eb4[_0x1d83ca('0x1')]=_0x47df2b,_0x14707c[_0x1d83ca('0xb2')]['includeAll']&&(_0x1acf80[_0x1d83ca('0x5d')]=[{'model':db[_0x1d83ca('0x71')],'as':_0x1d83ca('0x3'),'required':![]},{'model':db[_0x1d83ca('0x89')],'as':_0x1d83ca('0xe4'),'attributes':[_0x1d83ca('0xfd'),_0x1d83ca('0x9b'),'internal'],'required':![]},{'model':db[_0x1d83ca('0xb6')],'as':'Tags','attributes':['id',_0x1d83ca('0xfd'),'color'],'where':_0x14707c[_0x1d83ca('0xb2')][_0x1d83ca('0x77')]?{'id':_0x14707c[_0x1d83ca('0xb2')]['tag']}:undefined,'required':_0x14707c[_0x1d83ca('0xb2')][_0x1d83ca('0x77')]?!![]:![]}]),db[_0x1d83ca('0x8d')]['findAll'](_0x1acf80);})[_0xbe6edd('0xbf')](function(_0x281deb){const _0x3f4ff9=_0xbe6edd;return _0x293eb4[_0x3f4ff9('0xa0')]=_0x281deb,_0x293eb4;});})['then'](respondWithFilteredResult(_0x2cd278,_0x1acf80))[_0x37eacf('0xb7')](handleError(_0x2cd278,null));};function iftimePromise(_0x2764ef,_0x5b0439){const _0x4c2853=_0x203e3b;return respondWithRpcPromise('Command',_0x4c2853('0x42'),{'command':_0x5b0439[_0x4c2853('0x7f')]?util[_0x4c2853('0xfe')]('iftime\x20%s,%s',_0x2764ef[_0x4c2853('0xfa')],_0x5b0439[_0x4c2853('0x7f')]):util[_0x4c2853('0xfe')](_0x4c2853('0x70'),_0x2764ef['interval'])},client9002)[_0x4c2853('0xbf')](function(_0x15aeab){const _0x4479f8=_0x4c2853,_0x1fe897=_0x15aeab&&_0x15aeab['indexOf']('true')>=0x0?!![]:![];return logger[_0x4479f8('0x2f')](_0x4479f8('0x2'),_0x5b0439['id'],_0x2764ef['id'],_0x2764ef[_0x4479f8('0xfa')],_0x1fe897?'ONLINE':_0x4479f8('0x56'),_0x5b0439[_0x4479f8('0x7f')]?_0x5b0439[_0x4479f8('0x7f')]:_0x4479f8('0x81')),_0x1fe897;})[_0x4c2853('0xb7')](function(_0x44daf6){const _0x51e956=_0x4c2853;return logger['error'](_0x51e956('0x2'),_0x5b0439['id'],_0x2764ef['id'],_0x2764ef[_0x51e956('0xfa')],util[_0x51e956('0x103')](_0x44daf6,{'showHidden':![],'depth':null}),_0x5b0439['timezone']?_0x5b0439['timezone']:'No\x20timezone'),![];});}exports['getSnippet']=function(_0x8617ad,_0x3dbc47){const _0x24922c=_0x203e3b;let _0x3bb86c=0x0,_0xaf3a93=0x0,_0x55f2b6=![],_0x5ef055,_0x46fae3;return db[_0x24922c('0x7b')][_0x24922c('0x93')]({'where':{'id':_0x8617ad['params']['id']},'include':[{'model':db[_0x24922c('0x35')],'as':_0x24922c('0x35'),'include':[{'model':db['Interval'],'as':_0x24922c('0x7a'),'attributes':['id','interval'],'raw':!![]}]}]})[_0x24922c('0xbf')](handleEntityNotFound(_0x3dbc47,null))[_0x24922c('0xbf')](function(_0xc7ca3c){const _0x111c32=_0x24922c;if(_0xc7ca3c)return _0x5ef055=_0xc7ca3c,_0xc7ca3c[_0x111c32('0x60')]({'raw':!![]});})[_0x24922c('0xbf')](function(_0x5ca602){return _0x5ef055&&(_0x5ca602&&(_0x46fae3=_0x5ca602)),require('../../config/license/util')['getLicense']();})[_0x24922c('0xbf')](function(_0x51b007){const _0x3818c6=_0x24922c;_0x51b007&&(_0xaf3a93=_0x51b007[_0x3818c6('0xe9')],_0x55f2b6=_0x51b007['custom']);})[_0x24922c('0xbf')](function(){const _0x5643bf=_0x24922c;return db['ChatInteraction'][_0x5643bf('0x1')]({'where':{'closed':![]}});})['then'](function(_0x53e6e6){const _0x224667=_0x24922c;_0x3bb86c=_0x53e6e6;if(_0xaf3a93&&_0x53e6e6>_0xaf3a93)return db[_0x224667('0x50')][_0x224667('0x93')]({'where':{'id':0x1}})[_0x224667('0xbf')](function(_0x50189e){const _0x232a11=_0x224667;_0x50189e&&_0x50189e[_0x232a11('0xb3')]('chatLicenseExceeded');});})['then'](function(){const _0x403081=_0x24922c;if(_0x5ef055['Interval']&&_0x5ef055['Interval'][_0x403081('0x7a')]){const _0x1c3f03=[];for(let _0x393fa6=0x0;_0x393fa6<_0x5ef055[_0x403081('0x35')][_0x403081('0x7a')][_0x403081('0xf0')];_0x393fa6++){const _0x4a1821=_0x5ef055[_0x403081('0x35')][_0x403081('0x7a')][_0x393fa6][_0x403081('0x12')]({'plain':!![]});_0x1c3f03['push'](iftimePromise(_0x4a1821,_0x5ef055));}return Promise['all'](_0x1c3f03)[_0x403081('0xbf')](function(_0x395f33){return _['some'](_0x395f33);});}else return!![];})[_0x24922c('0xbf')](function(_0xcbbfa4){const _0x512829=_0x24922c,_0x112cbf=fs[_0x512829('0xab')](path[_0x512829('0x6c')](config['root'],_0x512829('0xe7'))),_0x937b2a=_0x112cbf[0x0]||'unknown',_0x356e46=fs[_0x512829('0xb8')](path['join'](config[_0x512829('0x5b')],_0x512829('0x3a')),'utf8'),_0x3d440a={'chatVersion':_0x937b2a,'remote':_0x5ef055[_0x512829('0x94')],'query':querystring['stringify'](_[_0x512829('0xb5')](_0x5ef055[_0x512829('0x12')]({'plain':!![]}),{'customerIp':_0x8617ad[_0x512829('0x3d')][_0x512829('0xc0')]||_0x8617ad[_0x512829('0x3d')]['x-real-ip']||_0x8617ad['connection'][_0x512829('0xef')]||_0x8617ad['ip'],'referer':_0x8617ad[_0x512829('0x3d')]['referer'],'openedInteractions':_0x3bb86c,'maxInteractions':_0xaf3a93,'virtual':_0x55f2b6['virtual'],'online':_0xcbbfa4,'custom':_0x55f2b6}))['replace'](/'/g,'\x5c\x27')};_0x3dbc47[_0x512829('0x58')](ejs['render'](Mustache[_0x512829('0x76')](_0x356e46,_0x3d440a),{'proactiveActions':_0x46fae3,'alignment':_0x5ef055['alignment'],'verticalAlignment':_0x5ef055[_0x512829('0x64')],'div_color':_0x5ef055['color'],'text_color':_0x5ef055['textColor']}));})[_0x24922c('0xb7')](handleError(_0x3dbc47,null));},exports['addApplications']=function(_0x14b39c,_0x4636a8){const _0x5e5143=_0x203e3b;return db[_0x5e5143('0x7b')][_0x5e5143('0x93')]({'where':{'id':_0x14b39c[_0x5e5143('0x11')]['id']}})['then'](handleEntityNotFound(_0x4636a8,null))[_0x5e5143('0xbf')](function(_0x32f048){const _0x54d059=_0x5e5143;if(_0x32f048)return db[_0x54d059('0x6d')][_0x54d059('0xa8')](function(_0x2c6fb){const _0x481c1e=_0x54d059;return db['ChatApplication'][_0x481c1e('0x34')]({'where':{'ChatWebsiteId':_0x14b39c['params']['id']},'transaction':_0x2c6fb})[_0x481c1e('0xbf')](function(){const _0x33377d=_0x481c1e,_0x17585b=_[_0x33377d('0x5')](_0x14b39c['body'],function(_0x5ab699){const _0x237351=_0x33377d;return _0x5ab699[_0x237351('0x32')]=_0x14b39c[_0x237351('0x11')]['id'],_0x5ab699;});return db[_0x33377d('0x6f')][_0x33377d('0x1c')](_0x17585b,{'transaction':_0x2c6fb});});})['then'](function(){const _0x2b6a79=_0x54d059;return db[_0x2b6a79('0x6f')]['findAndCountAll']({'where':{'ChatWebsiteId':_0x14b39c[_0x2b6a79('0x11')]['id']},'order':'priority'});});})[_0x5e5143('0xbf')](respondWithResult(_0x4636a8,null))['catch'](handleError(_0x4636a8,null));},exports[_0x203e3b('0x84')]=function(_0x2843a2,_0x27fbbe){const _0x46ba06=_0x203e3b;let _0x68b236={};const _0x5d688e={};let _0x3da0d1,_0x190677;return db['ChatWebsite'][_0x46ba06('0x93')]({'where':{'id':_0x2843a2[_0x46ba06('0x11')]['id']}})[_0x46ba06('0xbf')](handleEntityNotFound(_0x27fbbe,null))[_0x46ba06('0xbf')](function(_0x57e06a){const _0x1b2905=_0x46ba06;if(_0x57e06a)return _0x3da0d1=_0x57e06a,_0x5d688e['model']=_['keys'](db[_0x1b2905('0x6f')][_0x1b2905('0x6b')]),_0x5d688e[_0x1b2905('0xb2')]=_['keys'](_0x2843a2[_0x1b2905('0xb2')]),_0x5d688e[_0x1b2905('0x91')]=_[_0x1b2905('0x28')](_0x5d688e[_0x1b2905('0x88')],_0x5d688e[_0x1b2905('0xb2')]),_0x68b236[_0x1b2905('0xac')]=_['intersection'](_0x5d688e[_0x1b2905('0x88')],qs[_0x1b2905('0xe1')](_0x2843a2['query']['fields'])),_0x68b236['attributes']=_0x68b236[_0x1b2905('0xac')][_0x1b2905('0xf0')]?_0x68b236['attributes']:_0x5d688e[_0x1b2905('0x88')],_0x68b236['order']=qs[_0x1b2905('0x52')](_0x2843a2['query'][_0x1b2905('0x52')]),_0x68b236[_0x1b2905('0x82')]=qs[_0x1b2905('0x91')](_[_0x1b2905('0xfb')](_0x2843a2[_0x1b2905('0xb2')],_0x5d688e[_0x1b2905('0x91')])),_0x2843a2['query'][_0x1b2905('0x45')]&&(_0x68b236['where']=_[_0x1b2905('0xb5')](_0x68b236[_0x1b2905('0x82')],{[Op['or']]:_[_0x1b2905('0x5')](_0x68b236[_0x1b2905('0xac')],function(_0x9894de){const _0x29fce9=_0x1b2905,_0x4471f0={};return _0x4471f0[_0x9894de]={[Op[_0x29fce9('0xca')]]:'%'+_0x2843a2[_0x29fce9('0xb2')][_0x29fce9('0x45')]+'%'},_0x4471f0;})})),_0x68b236=_['merge']({},_0x68b236,_0x2843a2['options']),_0x3da0d1['getApplications'](_0x68b236);})['then'](function(_0x5cad68){const _0x4ddd0c=_0x46ba06;if(_0x5cad68)return _0x190677=_0x5cad68['length'],typeof _0x2843a2[_0x4ddd0c('0xb2')]['nolimit']===_0x4ddd0c('0x102')&&(_0x68b236['limit']=qs[_0x4ddd0c('0x105')](_0x2843a2[_0x4ddd0c('0xb2')][_0x4ddd0c('0x105')]),_0x68b236[_0x4ddd0c('0x1b')]=qs[_0x4ddd0c('0x1b')](_0x2843a2[_0x4ddd0c('0xb2')]['offset'])),_0x3da0d1['getApplications'](_0x68b236);})['then'](function(_0x5589f0){if(_0x5589f0)return _0x5589f0?{'count':_0x190677,'rows':_0x5589f0}:null;})[_0x46ba06('0xbf')](respondWithResult(_0x27fbbe,null))['catch'](handleError(_0x27fbbe,null));},exports['addProactiveActions']=function(_0x54f901,_0x3944f3){const _0xac9b4=_0x203e3b;return db[_0xac9b4('0x72')][_0xac9b4('0x93')]({'where':{'id':_0x54f901[_0xac9b4('0x11')]['id']}})[_0xac9b4('0xbf')](function(_0x5e4146){const _0x2a8fad=_0xac9b4;if(_0x5e4146)return _0x5e4146[_0x2a8fad('0x3e')](_0x54f901[_0x2a8fad('0x46')][_0x2a8fad('0x47')],{'through':_[_0x2a8fad('0x83')](_0x54f901[_0x2a8fad('0x46')],[_0x2a8fad('0x47'),'id'])});})[_0xac9b4('0xbf')](respondWithResult(_0x3944f3,null))['catch'](handleError(_0x3944f3,null));},exports[_0x203e3b('0x60')]=function(_0x1e9fde,_0x191116){const _0x28a5ef=_0x203e3b;let _0x1ae63b={};const _0x33f414={};let _0x486d9a,_0x3ad55b;return db[_0x28a5ef('0x7b')][_0x28a5ef('0x93')]({'where':{'id':_0x1e9fde[_0x28a5ef('0x11')]['id']}})[_0x28a5ef('0xbf')](handleEntityNotFound(_0x191116,null))[_0x28a5ef('0xbf')](function(_0x229be5){const _0x57ee88=_0x28a5ef;if(_0x229be5)return _0x486d9a=_0x229be5,_0x33f414[_0x57ee88('0x88')]=_[_0x57ee88('0x1a')](db[_0x57ee88('0x4c')]['rawAttributes']),_0x33f414['query']=_[_0x57ee88('0x1a')](_0x1e9fde[_0x57ee88('0xb2')]),_0x33f414[_0x57ee88('0x91')]=_[_0x57ee88('0x28')](_0x33f414['model'],_0x33f414['query']),_0x1ae63b[_0x57ee88('0xac')]=_[_0x57ee88('0x28')](_0x33f414[_0x57ee88('0x88')],qs[_0x57ee88('0xe1')](_0x1e9fde[_0x57ee88('0xb2')][_0x57ee88('0xe1')])),_0x1ae63b[_0x57ee88('0xac')]=_0x1ae63b[_0x57ee88('0xac')]['length']?_0x1ae63b[_0x57ee88('0xac')]:_0x33f414[_0x57ee88('0x88')],_0x1ae63b[_0x57ee88('0xe')]=qs[_0x57ee88('0x52')](_0x1e9fde[_0x57ee88('0xb2')][_0x57ee88('0x52')]),_0x1ae63b[_0x57ee88('0x82')]=qs[_0x57ee88('0x91')](_['pick'](_0x1e9fde['query'],_0x33f414[_0x57ee88('0x91')])),_0x1e9fde['query'][_0x57ee88('0x45')]&&(_0x1ae63b[_0x57ee88('0x82')]=_[_0x57ee88('0xb5')](_0x1ae63b[_0x57ee88('0x82')],{[Op['or']]:_['map'](_0x1ae63b['attributes'],function(_0x43aebe){const _0x329980=_0x57ee88,_0x6f84ba={};return _0x6f84ba[_0x43aebe]={[Op[_0x329980('0xca')]]:'%'+_0x1e9fde[_0x329980('0xb2')]['filter']+'%'},_0x6f84ba;})})),_0x1ae63b=_[_0x57ee88('0xb5')]({},_0x1ae63b,_0x1e9fde[_0x57ee88('0xd8')]),_0x486d9a['getProactiveActions'](_0x1ae63b);})['then'](function(_0x575bf6){const _0x182d47=_0x28a5ef;if(_0x575bf6)return _0x3ad55b=_0x575bf6[_0x182d47('0xf0')],typeof _0x1e9fde[_0x182d47('0xb2')][_0x182d47('0xbd')]==='undefined'&&(_0x1ae63b[_0x182d47('0x105')]=qs[_0x182d47('0x105')](_0x1e9fde[_0x182d47('0xb2')][_0x182d47('0x105')]),_0x1ae63b[_0x182d47('0x1b')]=qs['offset'](_0x1e9fde[_0x182d47('0xb2')][_0x182d47('0x1b')])),_0x486d9a['getProactiveActions'](_0x1ae63b);})[_0x28a5ef('0xbf')](function(_0x201800){if(_0x201800)return _0x201800?{'count':_0x3ad55b,'rows':_0x201800}:null;})[_0x28a5ef('0xbf')](respondWithResult(_0x191116,null))[_0x28a5ef('0xb7')](handleError(_0x191116,null));},exports[_0x203e3b('0x9c')]=function(_0x429efd,_0x3dc73b){const _0x552e3c=_0x203e3b,_0x1382a5=_0x429efd[_0x552e3c('0xb2')][_0x552e3c('0xcf')]===_0x552e3c('0x100')?_0x552e3c('0xed'):'onlineForm';return db[_0x552e3c('0x7b')][_0x552e3c('0x93')]({'attributes':['id',_0x1382a5],'where':{'id':_0x429efd[_0x552e3c('0x11')]['id']}})['then'](handleEntityNotFound(_0x3dc73b,null))[_0x552e3c('0xbf')](function(_0x3c5827){const _0x1d78a3=_0x552e3c;if(_0x3c5827){const _0x2b106d=_0x3c5827[_0x1382a5],_0xa8532c=_0x2b106d&&_0x2b106d[_0x1d78a3('0xc2')]?_0x2b106d[_0x1d78a3('0xc2')]:[];_0x3dc73b['send']({'fromKey':_[_0x1d78a3('0xeb')](_0x2b106d[_0x1d78a3('0xd5')])?undefined:_0x2b106d['fromKey'],'count':_0xa8532c[_0x1d78a3('0xf0')],'rows':_0xa8532c});}})[_0x552e3c('0xb7')](handleError(_0x3dc73b,null));},exports['getOfflineMessages']=function(_0x4a38db,_0x4f08f4){const _0x1737b2=_0x203e3b;let _0x2ca652={'raw':![],'where':{}};const _0x550845={},_0x4767aa={'count':0x0,'rows':[]};return db[_0x1737b2('0x7b')]['findOne']({'where':{'id':_0x4a38db[_0x1737b2('0x11')]['id']}})[_0x1737b2('0xbf')](handleEntityNotFound(_0x4f08f4,null))[_0x1737b2('0xbf')](function(_0x14846f){const _0x1fc0ba=_0x1737b2;if(_0x14846f)return _0x550845[_0x1fc0ba('0x88')]=_['keys'](db['ChatOfflineMessage'][_0x1fc0ba('0x6b')]),_0x550845[_0x1fc0ba('0xb2')]=_[_0x1fc0ba('0x1a')](_0x4a38db['query']),_0x550845[_0x1fc0ba('0x91')]=_['intersection'](_0x550845[_0x1fc0ba('0x88')],_0x550845[_0x1fc0ba('0xb2')]),_0x2ca652[_0x1fc0ba('0xac')]=_[_0x1fc0ba('0x28')](_0x550845['model'],qs[_0x1fc0ba('0xe1')](_0x4a38db[_0x1fc0ba('0xb2')]['fields'])),_0x2ca652[_0x1fc0ba('0xac')]=_0x2ca652[_0x1fc0ba('0xac')]['length']?_0x2ca652[_0x1fc0ba('0xac')]:_0x550845[_0x1fc0ba('0x88')],typeof _0x4a38db['query'][_0x1fc0ba('0xbd')]==='undefined'&&(_0x2ca652[_0x1fc0ba('0x105')]=qs[_0x1fc0ba('0x105')](_0x4a38db[_0x1fc0ba('0xb2')][_0x1fc0ba('0x105')]),_0x2ca652[_0x1fc0ba('0x1b')]=qs[_0x1fc0ba('0x1b')](_0x4a38db['query'][_0x1fc0ba('0x1b')])),_0x2ca652[_0x1fc0ba('0xe')]=qs[_0x1fc0ba('0x52')](_0x4a38db[_0x1fc0ba('0xb2')][_0x1fc0ba('0x52')]),_0x2ca652['where']=qs['filters'](_[_0x1fc0ba('0xfb')](_0x4a38db[_0x1fc0ba('0xb2')],_0x550845[_0x1fc0ba('0x91')])),_0x2ca652['where'][_0x1fc0ba('0x32')]=_0x14846f['id'],_0x4a38db[_0x1fc0ba('0xb2')][_0x1fc0ba('0x45')]&&(_0x2ca652[_0x1fc0ba('0x82')]=_[_0x1fc0ba('0xb5')](_0x2ca652['where'],{[Op['or']]:_['map'](_0x2ca652['attributes'],function(_0x50ae21){const _0x16bc97=_0x1fc0ba,_0x1b9c79={};return _0x1b9c79[_0x50ae21]={[Op['like']]:'%'+_0x4a38db[_0x16bc97('0xb2')][_0x16bc97('0x45')]+'%'},_0x1b9c79;})})),_0x2ca652=_[_0x1fc0ba('0xb5')]({},_0x2ca652,_0x4a38db[_0x1fc0ba('0xd8')]),db['ChatOfflineMessage'][_0x1fc0ba('0x1')]({'where':_0x2ca652['where']})[_0x1fc0ba('0xbf')](function(_0x140782){const _0x3f9481=_0x1fc0ba;return _0x4767aa['count']=_0x140782,_0x4a38db[_0x3f9481('0xb2')][_0x3f9481('0x3c')]?_0x2ca652[_0x3f9481('0x5d')]=[{'all':!![]}]:_0x2ca652[_0x3f9481('0x5d')]=[{'model':db[_0x3f9481('0x71')],'as':_0x3f9481('0x3'),'required':![]}],db[_0x3f9481('0xbe')]['findAll'](_0x2ca652);})['then'](function(_0x111a4b){const _0x48dc4d=_0x1fc0ba;return _0x4767aa[_0x48dc4d('0xa0')]=_0x111a4b,_0x4767aa;});})[_0x1737b2('0xbf')](respondWithFilteredResult(_0x4f08f4,_0x2ca652))[_0x1737b2('0xb7')](handleError(_0x4f08f4,null));},exports['addAgents']=function(_0x2145b0,_0x46f75d){const _0xd5056c=_0x203e3b;return db[_0xd5056c('0x7b')][_0xd5056c('0x93')]({'where':{'id':_0x2145b0[_0xd5056c('0x11')]['id']}})[_0xd5056c('0xbf')](function(_0x2c85ba){const _0x23dcf2=_0xd5056c;if(_0x2c85ba)return _0x2c85ba['addAgents'](_0x2145b0[_0x23dcf2('0x46')][_0x23dcf2('0x47')],{'through':_['omit'](_0x2145b0[_0x23dcf2('0x46')],[_0x23dcf2('0x47'),'id'])})[_0x23dcf2('0xbf')](function(_0x59860e){const _0x1d855e=_0x23dcf2;for(let _0x1f918a=0x0;_0x1f918a<_0x2145b0[_0x1d855e('0x46')]['ids'][_0x1d855e('0xf0')];_0x1f918a+=0x1){socket[_0x1d855e('0x40')]('userChatWebsite:save',{'UserId':_0x2145b0[_0x1d855e('0x46')]['ids'][_0x1f918a],'ChatWebsiteId':_0x2145b0['params']['id']});}return _0x59860e;});})[_0xd5056c('0xbf')](respondWithResult(_0x46f75d,null))[_0xd5056c('0xb7')](handleError(_0x46f75d,null));},exports[_0x203e3b('0xf6')]=function(_0x1fed0a,_0x3803e7){const _0x23730f=_0x203e3b;return db['ChatWebsite'][_0x23730f('0x93')]({'where':{'id':_0x1fed0a['params']['id']}})['then'](handleEntityNotFound(_0x3803e7,null))[_0x23730f('0xbf')](function(_0x169dcf){const _0x48efa9=_0x23730f;if(_0x169dcf)return _0x169dcf[_0x48efa9('0xf6')](_0x1fed0a['query']['ids'])[_0x48efa9('0xbf')](function(){const _0x3f3832=_0x48efa9;if(_[_0x3f3832('0xc7')](_0x1fed0a[_0x3f3832('0xb2')][_0x3f3832('0x47')]))for(let _0x176363=0x0;_0x176363<_0x1fed0a[_0x3f3832('0xb2')][_0x3f3832('0x47')][_0x3f3832('0xf0')];_0x176363+=0x1){socket['emit'](_0x3f3832('0xd9'),{'UserId':Number(_0x1fed0a[_0x3f3832('0xb2')][_0x3f3832('0x47')][_0x176363]),'ChatWebsiteId':Number(_0x1fed0a['params']['id'])});}else socket[_0x3f3832('0x40')]('userChatWebsite:remove',{'UserId':Number(_0x1fed0a[_0x3f3832('0xb2')][_0x3f3832('0x47')]),'ChatWebsiteId':Number(_0x1fed0a['params']['id'])});});})['then'](respondWithStatusCode(_0x3803e7,null))['catch'](handleError(_0x3803e7,null));},exports[_0x203e3b('0xc5')]=function(_0x3a4261,_0x125af6){const _0xefbb22=_0x203e3b;let _0x1f0250={};const _0x1de15e={};let _0x1d5bd9,_0x31d3c4;return db['ChatWebsite'][_0xefbb22('0x93')]({'where':{'id':_0x3a4261['params']['id']}})[_0xefbb22('0xbf')](handleEntityNotFound(_0x125af6,null))[_0xefbb22('0xbf')](function(_0x2abbca){const _0x2aca4b=_0xefbb22;if(_0x2abbca)return _0x1d5bd9=_0x2abbca,_0x1de15e[_0x2aca4b('0x88')]=_['keys'](db['User'][_0x2aca4b('0x6b')]),_0x1de15e[_0x2aca4b('0xb2')]=_[_0x2aca4b('0x1a')](_0x3a4261[_0x2aca4b('0xb2')]),_0x1de15e[_0x2aca4b('0x91')]=_['intersection'](_0x1de15e[_0x2aca4b('0x88')],_0x1de15e[_0x2aca4b('0xb2')]),_0x1f0250[_0x2aca4b('0xac')]=_['intersection'](_0x1de15e[_0x2aca4b('0x88')],qs['fields'](_0x3a4261[_0x2aca4b('0xb2')][_0x2aca4b('0xe1')])),_0x1f0250[_0x2aca4b('0xac')]=_0x1f0250[_0x2aca4b('0xac')][_0x2aca4b('0xf0')]?_0x1f0250[_0x2aca4b('0xac')]:_0x1de15e[_0x2aca4b('0x88')],_0x1f0250[_0x2aca4b('0xe')]=qs[_0x2aca4b('0x52')](_0x3a4261['query'][_0x2aca4b('0x52')]),_0x1f0250[_0x2aca4b('0x82')]=qs['filters'](_[_0x2aca4b('0xfb')](_0x3a4261[_0x2aca4b('0xb2')],_0x1de15e[_0x2aca4b('0x91')])),_0x3a4261[_0x2aca4b('0xb2')][_0x2aca4b('0x45')]&&(_0x1f0250['where']=_[_0x2aca4b('0xb5')](_0x1f0250['where'],{[Op['or']]:_['map'](_0x1f0250[_0x2aca4b('0xac')],function(_0x173386){const _0x5237c5=_0x2aca4b,_0x405030={};return _0x405030[_0x173386]={[Op[_0x5237c5('0xca')]]:'%'+_0x3a4261[_0x5237c5('0xb2')][_0x5237c5('0x45')]+'%'},_0x405030;})})),_0x1f0250=_[_0x2aca4b('0xb5')]({},_0x1f0250,_0x3a4261[_0x2aca4b('0xd8')]),_0x1d5bd9['getAgents'](_0x1f0250);})[_0xefbb22('0xbf')](function(_0x59fb4){const _0x52f3fb=_0xefbb22;if(_0x59fb4)return _0x31d3c4=_0x59fb4[_0x52f3fb('0xf0')],typeof _0x3a4261[_0x52f3fb('0xb2')][_0x52f3fb('0xbd')]===_0x52f3fb('0x102')&&(_0x1f0250[_0x52f3fb('0x105')]=qs[_0x52f3fb('0x105')](_0x3a4261[_0x52f3fb('0xb2')][_0x52f3fb('0x105')]),_0x1f0250[_0x52f3fb('0x1b')]=qs['offset'](_0x3a4261[_0x52f3fb('0xb2')][_0x52f3fb('0x1b')])),_0x1d5bd9['getAgents'](_0x1f0250);})['then'](function(_0x45bcc9){if(_0x45bcc9)return _0x45bcc9?{'count':_0x31d3c4,'rows':_0x45bcc9}:null;})[_0xefbb22('0xbf')](respondWithResult(_0x125af6,null))[_0xefbb22('0xb7')](handleError(_0x125af6,null));}; \ No newline at end of file +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 diff --git a/server/api/chatWebsite/chatWebsite.events.js b/server/api/chatWebsite/chatWebsite.events.js index 779f19f..5c355fd 100644 --- a/server/api/chatWebsite/chatWebsite.events.js +++ b/server/api/chatWebsite/chatWebsite.events.js @@ -1 +1 @@ -const a112_0x1704=['emit','save','events','ChatWebsite','addHook','setMaxListeners','../../mysqldb','update'];(function(_0x369bf8,_0x1704d8){const _0x592aa6=function(_0x177b50){while(--_0x177b50){_0x369bf8['push'](_0x369bf8['shift']());}};_0x592aa6(++_0x1704d8);}(a112_0x1704,0x1a6));const a112_0x592a=function(_0x369bf8,_0x1704d8){_0x369bf8=_0x369bf8-0x0;let _0x592aa6=a112_0x1704[_0x369bf8];return _0x592aa6;};const _0x3afcec=a112_0x592a;'use strict';const EventEmitter=require(_0x3afcec('0x4')),ChatWebsite=require(_0x3afcec('0x0'))['db'][_0x3afcec('0x5')],ChatWebsiteEvents=new EventEmitter();ChatWebsiteEvents[_0x3afcec('0x7')](0x0);const events={'afterCreate':_0x3afcec('0x3'),'afterUpdate':_0x3afcec('0x1'),'afterDestroy':'remove'};function emitEvent(_0x177b50){return function(_0x23973d){const _0x19aee3=a112_0x592a;ChatWebsiteEvents['emit'](_0x177b50+':'+_0x23973d['id'],_0x23973d),ChatWebsiteEvents[_0x19aee3('0x2')](_0x177b50,_0x23973d);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];ChatWebsite[_0x3afcec('0x6')](e,emitEvent(event));}}module['exports']=ChatWebsiteEvents; \ No newline at end of file +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 diff --git a/server/api/chatWebsite/chatWebsite.model.js b/server/api/chatWebsite/chatWebsite.model.js index 6c6a2f4..a09a3b7 100644 --- a/server/api/chatWebsite/chatWebsite.model.js +++ b/server/api/chatWebsite/chatWebsite.model.js @@ -1 +1 @@ -const a113_0x163d=['./chatWebsite.attributes','exports','define','ChatWebsite','chat_websites'];(function(_0x42ac95,_0x163d05){const _0x5d4382=function(_0x18faf3){while(--_0x18faf3){_0x42ac95['push'](_0x42ac95['shift']());}};_0x5d4382(++_0x163d05);}(a113_0x163d,0xb8));const a113_0x5d43=function(_0x42ac95,_0x163d05){_0x42ac95=_0x42ac95-0x0;let _0x5d4382=a113_0x163d[_0x42ac95];return _0x5d4382;};const _0x3446c3=a113_0x5d43;'use strict';const attributes=require(_0x3446c3('0x1'));module[_0x3446c3('0x2')]=function(_0x18faf3){const _0x3f9c79=_0x3446c3,_0x3fb5a9=_0x18faf3[_0x3f9c79('0x3')](_0x3f9c79('0x4'),attributes,{'tableName':_0x3f9c79('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3fb5a9;}; \ No newline at end of file +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 diff --git a/server/api/chatWebsite/chatWebsite.rpc.js b/server/api/chatWebsite/chatWebsite.rpc.js index 6d8d5a3..f3f3996 100644 --- a/server/api/chatWebsite/chatWebsite.rpc.js +++ b/server/api/chatWebsite/chatWebsite.rpc.js @@ -1 +1 @@ -const a114_0x3bb0=['../../rediscache','register'];(function(_0x42a00d,_0x3bb000){const _0x2a2c1f=function(_0x16c2b5){while(--_0x16c2b5){_0x42a00d['push'](_0x42a00d['shift']());}};_0x2a2c1f(++_0x3bb000);}(a114_0x3bb0,0x14c));const a114_0x2a2c=function(_0x42a00d,_0x3bb000){_0x42a00d=_0x42a00d-0x0;let _0x2a2c1f=a114_0x3bb0[_0x42a00d];return _0x2a2c1f;};const _0xb4ecc5=a114_0x2a2c;'use strict';const {getSocket}=require(_0xb4ecc5('0x0')),socket=getSocket();require('./chatWebsite.socket')[_0xb4ecc5('0x1')](socket); \ No newline at end of file +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 diff --git a/server/api/chatWebsite/chatWebsite.socket.js b/server/api/chatWebsite/chatWebsite.socket.js index fb5cc4a..197cbb6 100644 --- a/server/api/chatWebsite/chatWebsite.socket.js +++ b/server/api/chatWebsite/chatWebsite.socket.js @@ -1 +1 @@ -const a115_0x5bc2=['save','update','length','register','remove','chatWebsite:','emit'];(function(_0x5f2f59,_0x5bc287){const _0x207b89=function(_0x49b3bb){while(--_0x49b3bb){_0x5f2f59['push'](_0x5f2f59['shift']());}};_0x207b89(++_0x5bc287);}(a115_0x5bc2,0x9a));const a115_0x207b=function(_0x5f2f59,_0x5bc287){_0x5f2f59=_0x5f2f59-0x0;let _0x207b89=a115_0x5bc2[_0x5f2f59];return _0x207b89;};const _0x1f97d6=a115_0x207b;'use strict';const ChatWebsiteEvents=require('./chatWebsite.events'),events=[_0x1f97d6('0x0'),_0x1f97d6('0x4'),_0x1f97d6('0x1')];function createListener(_0x49b3bb,_0xdff8e4){return function(_0x49d145){const _0x1cd7e9=a115_0x207b;_0xdff8e4[_0x1cd7e9('0x6')](_0x49b3bb,_0x49d145);};}exports[_0x1f97d6('0x3')]=function(_0x4b30ef){const _0x4700ca=_0x1f97d6;for(let _0x5916ef=0x0,_0xb15aca=events[_0x4700ca('0x2')];_0x5916ef<_0xb15aca;_0x5916ef++){const _0x342e12=events[_0x5916ef],_0x14a318=createListener(_0x4700ca('0x5')+_0x342e12,_0x4b30ef);ChatWebsiteEvents['on'](_0x342e12,_0x14a318);}}; \ No newline at end of file +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 diff --git a/server/api/chatWebsite/index.js b/server/api/chatWebsite/index.js index 3cab981..756d130 100644 --- a/server/api/chatWebsite/index.js +++ b/server/api/chatWebsite/index.js @@ -1 +1 @@ -const a116_0x1d0d=['../../components/auth/service','diskStorage','../../config/environment','getSnippet','/:id/applications','/:id/fields','getCustomerAvatar','getAvatar','/:id/logo','update','/:id/users','addAvatar','/:id/notify','delete','util','addInteraction','removeAgents','Router','/:id/interactions','multer','destroy','/:id/dispositions','server/files/images/','getDispositions','/:id','getOfflineMessages','getFields','offline','describe','single','put','get','post','getAgents','%s-%s','./chatWebsite.controller','getLogo','/:id/avatar','addProactiveActions','path','getSystemAvatar','file','format','show','/:id/customer_avatar','addApplications','addLogo','/:id/proactive_actions','now','originalname','removeAnswers','create','isAuthenticated','/:id/system_avatar','/:id/snippet','exports'];(function(_0x2318f9,_0x1d0d21){const _0x504536=function(_0x3cf7c4){while(--_0x3cf7c4){_0x2318f9['push'](_0x2318f9['shift']());}};_0x504536(++_0x1d0d21);}(a116_0x1d0d,0x10b));const a116_0x5045=function(_0x2318f9,_0x1d0d21){_0x2318f9=_0x2318f9-0x0;let _0x504536=a116_0x1d0d[_0x2318f9];return _0x504536;};const _0x4462e9=a116_0x5045;'use strict';const multer=require(_0x4462e9('0x20')),util=require(_0x4462e9('0x1b')),path=require(_0x4462e9('0x34')),express=require('express'),router=express[_0x4462e9('0x1e')](),auth=require(_0x4462e9('0xd')),config=require(_0x4462e9('0xf')),controller=require(_0x4462e9('0x30')),upload=_0x3cf7c4=>multer({'storage':multer[_0x4462e9('0xe')]({'destination':function(_0x57082c,_0xa2889d,_0x57f767){const _0x33195c=_0x4462e9;_0x57f767(null,path['join'](config['root'],_0x33195c('0x23'),_0x3cf7c4));},'filename':function(_0x5e835d,_0x2fd40e,_0x169673){const _0x56e988=_0x4462e9;_0x169673(null,util[_0x56e988('0x37')](_0x56e988('0x2f'),Date[_0x56e988('0x5')](),_0x2fd40e[_0x56e988('0x6')]));}})});router[_0x4462e9('0x2c')]('/',auth[_0x4462e9('0x9')](),controller['index']),router[_0x4462e9('0x2c')]('/describe',auth['isAuthenticated'](),controller[_0x4462e9('0x29')]),router['get'](_0x4462e9('0x25'),auth[_0x4462e9('0x9')](),controller[_0x4462e9('0x0')]),router['get'](_0x4462e9('0x22'),auth[_0x4462e9('0x9')](),controller[_0x4462e9('0x24')]),router[_0x4462e9('0x2c')]('/:id/canned_answers',auth[_0x4462e9('0x9')](),controller['getAnswers']),router[_0x4462e9('0x2c')]('/:id/logo',controller[_0x4462e9('0x31')]),router[_0x4462e9('0x2c')](_0x4462e9('0x32'),controller[_0x4462e9('0x14')]),router['get'](_0x4462e9('0x1'),controller[_0x4462e9('0x13')]),router[_0x4462e9('0x2c')](_0x4462e9('0xa'),controller[_0x4462e9('0x35')]),router[_0x4462e9('0x2c')](_0x4462e9('0x1f'),auth[_0x4462e9('0x9')](),controller['getInteractions']),router['get'](_0x4462e9('0xb'),controller[_0x4462e9('0x10')]),router[_0x4462e9('0x2c')](_0x4462e9('0x11'),auth[_0x4462e9('0x9')](),controller['getApplications']),router[_0x4462e9('0x2c')](_0x4462e9('0x4'),auth[_0x4462e9('0x9')](),controller['getProactiveActions']),router['get'](_0x4462e9('0x12'),controller[_0x4462e9('0x27')]),router[_0x4462e9('0x2c')]('/:id/offline_messages',auth[_0x4462e9('0x9')](),controller[_0x4462e9('0x26')]),router['get'](_0x4462e9('0x17'),auth[_0x4462e9('0x9')](),controller[_0x4462e9('0x2e')]),router['post']('/',auth[_0x4462e9('0x9')](),controller[_0x4462e9('0x8')]),router['post'](_0x4462e9('0x22'),auth[_0x4462e9('0x9')](),controller['addDisposition']),router[_0x4462e9('0x2d')]('/:id/canned_answers',auth[_0x4462e9('0x9')](),controller['addAnswer']),router[_0x4462e9('0x2d')](_0x4462e9('0x15'),upload('logos')['single']('file'),controller[_0x4462e9('0x3')]),router['post'](_0x4462e9('0x32'),upload('avatars')[_0x4462e9('0x2a')](_0x4462e9('0x36')),controller[_0x4462e9('0x18')]),router[_0x4462e9('0x2d')](_0x4462e9('0x1'),upload('avatars')['single'](_0x4462e9('0x36')),controller['addCustomerAvatar']),router[_0x4462e9('0x2d')](_0x4462e9('0xa'),upload('avatars')['single'](_0x4462e9('0x36')),controller['addSystemAvatar']),router[_0x4462e9('0x2d')](_0x4462e9('0x19'),controller['notify']),router['post']('/:id/offline',controller[_0x4462e9('0x28')]),router[_0x4462e9('0x2d')](_0x4462e9('0x1f'),auth[_0x4462e9('0x9')](),controller[_0x4462e9('0x1c')]),router[_0x4462e9('0x2d')]('/:id/applications',auth[_0x4462e9('0x9')](),controller[_0x4462e9('0x2')]),router[_0x4462e9('0x2d')](_0x4462e9('0x4'),auth[_0x4462e9('0x9')](),controller[_0x4462e9('0x33')]),router['post'](_0x4462e9('0x17'),auth[_0x4462e9('0x9')](),controller['addAgents']),router[_0x4462e9('0x2b')](_0x4462e9('0x25'),auth['isAuthenticated'](),controller[_0x4462e9('0x16')]),router[_0x4462e9('0x1a')](_0x4462e9('0x25'),auth[_0x4462e9('0x9')](),controller[_0x4462e9('0x21')]),router['delete'](_0x4462e9('0x22'),auth[_0x4462e9('0x9')](),controller['removeDispositions']),router[_0x4462e9('0x1a')]('/:id/canned_answers',auth[_0x4462e9('0x9')](),controller[_0x4462e9('0x7')]),router[_0x4462e9('0x1a')](_0x4462e9('0x17'),auth['isAuthenticated'](),controller[_0x4462e9('0x1d')]),module[_0x4462e9('0xc')]=router; \ No newline at end of file +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 diff --git a/server/api/cloudProvider/cloudProvider.attributes.js b/server/api/cloudProvider/cloudProvider.attributes.js index d92b003..9f0dcdb 100644 --- a/server/api/cloudProvider/cloudProvider.attributes.js +++ b/server/api/cloudProvider/cloudProvider.attributes.js @@ -1 +1 @@ -const a117_0x1d61=['STRING','ENUM','exports','AmazonAWS','Google'];(function(_0xe91f9c,_0x1d617e){const _0xb1ff7b=function(_0x4b6bf6){while(--_0x4b6bf6){_0xe91f9c['push'](_0xe91f9c['shift']());}};_0xb1ff7b(++_0x1d617e);}(a117_0x1d61,0xa6));const a117_0xb1ff=function(_0xe91f9c,_0x1d617e){_0xe91f9c=_0xe91f9c-0x0;let _0xb1ff7b=a117_0x1d61[_0xe91f9c];return _0xb1ff7b;};const _0x1b5d6f=a117_0xb1ff;'use strict';const Sequelize=require('sequelize');module[_0x1b5d6f('0x1')]={'name':{'type':Sequelize['STRING'],'allowNull':![],'validate':{'notEmpty':!![]}},'service':{'type':Sequelize[_0x1b5d6f('0x0')](_0x1b5d6f('0x2'),_0x1b5d6f('0x3')),'allowNull':![],'validate':{'notEmpty':!![]}},'data1':{'type':Sequelize[_0x1b5d6f('0x4')]},'data2':{'type':Sequelize['STRING']}}; \ No newline at end of file +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 diff --git a/server/api/cloudProvider/cloudProvider.controller.js b/server/api/cloudProvider/cloudProvider.controller.js index 14457b8..cb51e77 100644 --- a/server/api/cloudProvider/cloudProvider.controller.js +++ b/server/api/cloudProvider/cloudProvider.controller.js @@ -1 +1 @@ -const a118_0x1a8a=['filters','intersection','destroy','where','query','set','end','attributes','type','rawAttributes','json','rows','merge','stack','body','key','VIRTUAL','nolimit','sort','api','fields','model','keys','../../config/logger','findAll','options','include','show','limit','fieldName','create','status','map','includeAll','sendStatus','CloudProvider','index','Content-Range','like','error','params','lodash','count','offset','order','catch','pick','length','findOne','update','name','then'];(function(_0x287ea1,_0x1a8aac){const _0x2ccb22=function(_0x341b3d){while(--_0x341b3d){_0x287ea1['push'](_0x287ea1['shift']());}};_0x2ccb22(++_0x1a8aac);}(a118_0x1a8a,0x17e));const a118_0x2ccb=function(_0x287ea1,_0x1a8aac){_0x287ea1=_0x287ea1-0x0;let _0x2ccb22=a118_0x1a8a[_0x287ea1];return _0x2ccb22;};const _0x1b1b40=a118_0x2ccb;'use strict';const _=require(_0x1b1b40('0x17')),qs=require('../../components/parsers/qs'),logger=require(_0x1b1b40('0x5'))(_0x1b1b40('0x1')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x341b3d,_0x135747){return _0x135747=_0x135747||0xc8,function(_0x5ac051){const _0x2b1a55=a118_0x2ccb;if(_0x5ac051)return _0x341b3d[_0x2b1a55('0xd')](_0x135747)[_0x2b1a55('0x2c')](_0x5ac051);};}function respondWithFilteredResult(_0x4b7c35,_0xd230f){return function(_0x16736c){const _0x39eb7d=a118_0x2ccb;if(_0x16736c){const _0x512e6f=_0x16736c['count'],_0x23eaa1=_0xd230f[_0x39eb7d('0x19')];let _0xbc7fe9=_0xd230f[_0x39eb7d('0x19')]+_0xd230f[_0x39eb7d('0xa')],_0x314e98;return _0xbc7fe9>=_0x512e6f?(_0xbc7fe9=_0x512e6f,_0x314e98=0xc8):_0x314e98=0xce,_0x4b7c35[_0x39eb7d('0xd')](_0x314e98),_0x4b7c35[_0x39eb7d('0x27')](_0x39eb7d('0x13'),_0x23eaa1+'-'+_0xbc7fe9+'/'+_0x512e6f)[_0x39eb7d('0x2c')](_0x16736c);}return null;};}function saveUpdates(_0x4309a5){return function(_0x2e2c26){const _0x27a4ab=a118_0x2ccb;if(_0x2e2c26)return _0x2e2c26[_0x27a4ab('0x1f')](_0x4309a5)[_0x27a4ab('0x21')](function(_0x362184){return _0x362184;});return null;};}function removeEntity(_0x20ae20){return function(_0x543455){const _0x3c6d6a=a118_0x2ccb;if(_0x543455)return _0x543455[_0x3c6d6a('0x24')]()[_0x3c6d6a('0x21')](function(){const _0x1d5e2d=_0x3c6d6a;_0x20ae20[_0x1d5e2d('0xd')](0xcc)[_0x1d5e2d('0x28')]();});};}function handleEntityNotFound(_0x9b1dfb){return function(_0x1c11b8){const _0x479b64=a118_0x2ccb;return!_0x1c11b8&&_0x9b1dfb[_0x479b64('0x10')](0x194),_0x1c11b8;};}function handleError(_0x570abd,_0x5e0d4d){return _0x5e0d4d=_0x5e0d4d||0x1f4,function(_0x2d1f88){const _0x146f54=a118_0x2ccb;logger[_0x146f54('0x15')](_0x2d1f88[_0x146f54('0x2f')]),_0x2d1f88['name']&&delete _0x2d1f88[_0x146f54('0x20')],_0x570abd[_0x146f54('0xd')](_0x5e0d4d)['send'](_0x2d1f88);};}exports[_0x1b1b40('0x12')]=function(_0x48f0c1,_0x2f580f){const _0x4bf8bc=_0x1b1b40;let _0x31357a={};const _0x44b7e={},_0x13a7f6={'count':0x0,'rows':[]},_0x3f5237=_[_0x4bf8bc('0xe')](db['CloudProvider'][_0x4bf8bc('0x2b')],function(_0x3d0a3f){const _0x22b773=_0x4bf8bc;return{'name':_0x3d0a3f[_0x22b773('0xb')],'type':_0x3d0a3f[_0x22b773('0x2a')][_0x22b773('0x31')]};});_0x44b7e[_0x4bf8bc('0x3')]=_[_0x4bf8bc('0xe')](_0x3f5237,_0x4bf8bc('0x20')),_0x44b7e[_0x4bf8bc('0x26')]=_[_0x4bf8bc('0x4')](_0x48f0c1['query']),_0x44b7e[_0x4bf8bc('0x22')]=_['intersection'](_0x44b7e[_0x4bf8bc('0x3')],_0x44b7e['query']),_0x31357a[_0x4bf8bc('0x29')]=_[_0x4bf8bc('0x23')](_0x44b7e['model'],qs['fields'](_0x48f0c1[_0x4bf8bc('0x26')][_0x4bf8bc('0x2')])),_0x31357a[_0x4bf8bc('0x29')]=_0x31357a[_0x4bf8bc('0x29')][_0x4bf8bc('0x1d')]?_0x31357a[_0x4bf8bc('0x29')]:_0x44b7e['model'];typeof _0x48f0c1[_0x4bf8bc('0x26')][_0x4bf8bc('0x33')]==='undefined'&&(_0x31357a[_0x4bf8bc('0xa')]=qs[_0x4bf8bc('0xa')](_0x48f0c1[_0x4bf8bc('0x26')][_0x4bf8bc('0xa')]),_0x31357a['offset']=qs[_0x4bf8bc('0x19')](_0x48f0c1['query'][_0x4bf8bc('0x19')]));_0x31357a[_0x4bf8bc('0x1a')]=qs[_0x4bf8bc('0x0')](_0x48f0c1[_0x4bf8bc('0x26')]['sort']),_0x31357a[_0x4bf8bc('0x25')]=qs[_0x4bf8bc('0x22')](_[_0x4bf8bc('0x1c')](_0x48f0c1[_0x4bf8bc('0x26')],_0x44b7e[_0x4bf8bc('0x22')]),_0x3f5237);_0x48f0c1[_0x4bf8bc('0x26')]['filter']&&(_0x31357a[_0x4bf8bc('0x25')]=_[_0x4bf8bc('0x2e')](_0x31357a[_0x4bf8bc('0x25')],{[Op['or']]:_[_0x4bf8bc('0xe')](_0x3f5237,function(_0x4b5777){const _0x307fcf=_0x4bf8bc;if(_0x4b5777[_0x307fcf('0x2a')]!==_0x307fcf('0x32')){const _0x144ce3={};return _0x144ce3[_0x4b5777[_0x307fcf('0x20')]]={[Op[_0x307fcf('0x14')]]:'%'+_0x48f0c1[_0x307fcf('0x26')]['filter']+'%'},_0x144ce3;}})}));_0x31357a=_[_0x4bf8bc('0x2e')]({},_0x31357a,_0x48f0c1[_0x4bf8bc('0x7')]);const _0x438e41={'where':_0x31357a['where']};return db[_0x4bf8bc('0x11')][_0x4bf8bc('0x18')](_0x438e41)[_0x4bf8bc('0x21')](function(_0x514c2f){const _0xc8e553=_0x4bf8bc;return _0x13a7f6[_0xc8e553('0x18')]=_0x514c2f,_0x48f0c1[_0xc8e553('0x26')][_0xc8e553('0xf')]&&(_0x31357a[_0xc8e553('0x8')]=[{'all':!![]}]),db['CloudProvider'][_0xc8e553('0x6')](_0x31357a);})['then'](function(_0x2fbcce){const _0x106b96=_0x4bf8bc;return _0x13a7f6[_0x106b96('0x2d')]=_0x2fbcce,_0x13a7f6;})[_0x4bf8bc('0x21')](respondWithFilteredResult(_0x2f580f,_0x31357a))[_0x4bf8bc('0x1b')](handleError(_0x2f580f,null));},exports[_0x1b1b40('0x9')]=function(_0x6056d,_0x523e3f){const _0x1e97dc=_0x1b1b40;let _0x47488b={'raw':!![],'where':{'id':_0x6056d['params']['id']}};const _0x5e1c38={};return _0x5e1c38[_0x1e97dc('0x3')]=_[_0x1e97dc('0x4')](db['CloudProvider']['rawAttributes']),_0x5e1c38[_0x1e97dc('0x26')]=_['keys'](_0x6056d[_0x1e97dc('0x26')]),_0x5e1c38[_0x1e97dc('0x22')]=_[_0x1e97dc('0x23')](_0x5e1c38[_0x1e97dc('0x3')],_0x5e1c38[_0x1e97dc('0x26')]),_0x47488b['attributes']=_['intersection'](_0x5e1c38[_0x1e97dc('0x3')],qs[_0x1e97dc('0x2')](_0x6056d[_0x1e97dc('0x26')][_0x1e97dc('0x2')])),_0x47488b[_0x1e97dc('0x29')]=_0x47488b[_0x1e97dc('0x29')][_0x1e97dc('0x1d')]?_0x47488b[_0x1e97dc('0x29')]:_0x5e1c38['model'],_0x6056d[_0x1e97dc('0x26')][_0x1e97dc('0xf')]&&(_0x47488b[_0x1e97dc('0x8')]=[{'all':!![]}]),_0x47488b=_['merge']({},_0x47488b,_0x6056d[_0x1e97dc('0x7')]),db['CloudProvider'][_0x1e97dc('0x1e')](_0x47488b)[_0x1e97dc('0x21')](handleEntityNotFound(_0x523e3f,null))[_0x1e97dc('0x21')](respondWithResult(_0x523e3f,null))[_0x1e97dc('0x1b')](handleError(_0x523e3f,null));},exports[_0x1b1b40('0xc')]=function(_0x2c3747,_0xb4c5f1){const _0x128fd4=_0x1b1b40;return db[_0x128fd4('0x11')][_0x128fd4('0xc')](_0x2c3747[_0x128fd4('0x30')],{})[_0x128fd4('0x21')](respondWithResult(_0xb4c5f1,0xc9))['catch'](handleError(_0xb4c5f1,null));},exports[_0x1b1b40('0x1f')]=function(_0x126747,_0xc74d48){const _0x3a17e4=_0x1b1b40;return _0x126747[_0x3a17e4('0x30')]['id']&&delete _0x126747[_0x3a17e4('0x30')]['id'],db[_0x3a17e4('0x11')][_0x3a17e4('0x1e')]({'where':{'id':_0x126747[_0x3a17e4('0x16')]['id']}})['then'](handleEntityNotFound(_0xc74d48,null))[_0x3a17e4('0x21')](saveUpdates(_0x126747[_0x3a17e4('0x30')],null))[_0x3a17e4('0x21')](respondWithResult(_0xc74d48,null))['catch'](handleError(_0xc74d48,null));},exports['destroy']=function(_0xfc1075,_0x329170){const _0x4af5da=_0x1b1b40;return db[_0x4af5da('0x11')][_0x4af5da('0x1e')]({'where':{'id':_0xfc1075[_0x4af5da('0x16')]['id']}})[_0x4af5da('0x21')](handleEntityNotFound(_0x329170,null))['then'](removeEntity(_0x329170,null))[_0x4af5da('0x1b')](handleError(_0x329170,null));}; \ No newline at end of file +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 diff --git a/server/api/cloudProvider/cloudProvider.model.js b/server/api/cloudProvider/cloudProvider.model.js index 8fc6313..cbebd89 100644 --- a/server/api/cloudProvider/cloudProvider.model.js +++ b/server/api/cloudProvider/cloudProvider.model.js @@ -1 +1 @@ -const a119_0x2c2e=['exports'];(function(_0x944488,_0x2c2e89){const _0x5ec774=function(_0x191010){while(--_0x191010){_0x944488['push'](_0x944488['shift']());}};_0x5ec774(++_0x2c2e89);}(a119_0x2c2e,0x108));const a119_0x5ec7=function(_0x944488,_0x2c2e89){_0x944488=_0x944488-0x0;let _0x5ec774=a119_0x2c2e[_0x944488];return _0x5ec774;};const _0x405803=a119_0x5ec7;'use strict';const attributes=require('./cloudProvider.attributes');module[_0x405803('0x0')]=function(_0x191010){const _0x31fa43=_0x191010['define']('CloudProvider',attributes,{'tableName':'cloud_providers','paranoid':![],'indexes':[],'timestamps':!![]});return _0x31fa43;}; \ No newline at end of file +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 diff --git a/server/api/cloudProvider/index.js b/server/api/cloudProvider/index.js index feed20a..c4906b4 100644 --- a/server/api/cloudProvider/index.js +++ b/server/api/cloudProvider/index.js @@ -1 +1 @@ -const a120_0x337f=['/:id','express','index','destroy','create','isAuthenticated','update','delete','put','../../components/auth/service','post','get','./cloudProvider.controller','exports'];(function(_0x5c0555,_0x337f31){const _0x900c43=function(_0x46f816){while(--_0x46f816){_0x5c0555['push'](_0x5c0555['shift']());}};_0x900c43(++_0x337f31);}(a120_0x337f,0xa5));const a120_0x900c=function(_0x5c0555,_0x337f31){_0x5c0555=_0x5c0555-0x0;let _0x900c43=a120_0x337f[_0x5c0555];return _0x900c43;};const _0x273325=a120_0x900c;'use strict';const express=require(_0x273325('0x4')),router=express['Router'](),auth=require(_0x273325('0xc')),controller=require(_0x273325('0x1'));router[_0x273325('0x0')]('/',auth['isAuthenticated'](),controller[_0x273325('0x5')]),router[_0x273325('0x0')](_0x273325('0x3'),auth[_0x273325('0x8')](),controller['show']),router[_0x273325('0xd')]('/',auth[_0x273325('0x8')](),controller[_0x273325('0x7')]),router[_0x273325('0xb')]('/:id',auth[_0x273325('0x8')](),controller[_0x273325('0x9')]),router[_0x273325('0xa')]('/:id',auth[_0x273325('0x8')](),controller[_0x273325('0x6')]),module[_0x273325('0x2')]=router; \ No newline at end of file +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 diff --git a/server/api/cmCompany/cmCompany.attributes.js b/server/api/cmCompany/cmCompany.attributes.js index febe2d3..8e114bc 100644 --- a/server/api/cmCompany/cmCompany.attributes.js +++ b/server/api/cmCompany/cmCompany.attributes.js @@ -1 +1 @@ -const a121_0x2ecd=['exports','name','sequelize','STRING'];(function(_0x19d6ea,_0x2ecd2e){const _0x4cb087=function(_0x45b752){while(--_0x45b752){_0x19d6ea['push'](_0x19d6ea['shift']());}};_0x4cb087(++_0x2ecd2e);}(a121_0x2ecd,0xed));const a121_0x4cb0=function(_0x19d6ea,_0x2ecd2e){_0x19d6ea=_0x19d6ea-0x0;let _0x4cb087=a121_0x2ecd[_0x19d6ea];return _0x4cb087;};const _0x1e212d=a121_0x4cb0;'use strict';const Sequelize=require(_0x1e212d('0x1'));module[_0x1e212d('0x3')]={'name':{'type':Sequelize['STRING'],'unique':_0x1e212d('0x0'),'allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':Sequelize[_0x1e212d('0x2')]},'companyId':{'type':Sequelize[_0x1e212d('0x2')]},'website':{'type':Sequelize['STRING']},'phone':{'type':Sequelize[_0x1e212d('0x2')]},'fax':{'type':Sequelize[_0x1e212d('0x2')]},'type':{'type':Sequelize[_0x1e212d('0x2')]},'street':{'type':Sequelize[_0x1e212d('0x2')]},'postalCode':{'type':Sequelize[_0x1e212d('0x2')]},'city':{'type':Sequelize[_0x1e212d('0x2')]},'country':{'type':Sequelize[_0x1e212d('0x2')]},'email':{'type':Sequelize[_0x1e212d('0x2')],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize[_0x1e212d('0x2')]},'sStreet':{'type':Sequelize['STRING']},'sPostalCode':{'type':Sequelize[_0x1e212d('0x2')]},'sCity':{'type':Sequelize['STRING']},'sCountry':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x1e212d('0x2')]}}; \ No newline at end of file +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 diff --git a/server/api/cmCompany/cmCompany.controller.js b/server/api/cmCompany/cmCompany.controller.js index adaa4f5..5793bac 100644 --- a/server/api/cmCompany/cmCompany.controller.js +++ b/server/api/cmCompany/cmCompany.controller.js @@ -1 +1 @@ -const a122_0x21d3=['length','filter','Unable\x20to\x20retrieve\x20the\x20current\x20user','keys','body','get','UserProfileResource','userProfileId','includeAll','options','limit','rawAttributes','offset','role','getContacts','addContacts','sort','catch','query','status','intersection','model','name','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','error','sequelize','destroy','findOne','like','then','omit','merge','findAll','api','../../mysqldb','order','attributes','undefined','where','user','describe','CmCompany','fields','show','filters','params','CmContact','map','index','include','update','create','sendStatus','autoAssociation','ids','Companies','pick','json','count','../../config/logger','rows'];(function(_0x51d4ed,_0x21d351){const _0x1bc3ed=function(_0x2f4764){while(--_0x2f4764){_0x51d4ed['push'](_0x51d4ed['shift']());}};_0x1bc3ed(++_0x21d351);}(a122_0x21d3,0x199));const a122_0x1bc3=function(_0x51d4ed,_0x21d351){_0x51d4ed=_0x51d4ed-0x0;let _0x1bc3ed=a122_0x21d3[_0x51d4ed];return _0x1bc3ed;};const _0x1cad60=a122_0x1bc3;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x1cad60('0x10'))(_0x1cad60('0x33')),db=require(_0x1cad60('0x34'))['db'],{Op}=require(_0x1cad60('0x2b'));function respondWithResult(_0x2f4764,_0x50d156){return _0x50d156=_0x50d156||0xc8,function(_0x33c9a6){const _0x3832d8=a122_0x1bc3;if(_0x33c9a6)return _0x2f4764[_0x3832d8('0x25')](_0x50d156)[_0x3832d8('0xe')](_0x33c9a6);};}function respondWithFilteredResult(_0x54a79b,_0x20701d){return function(_0x32e2a7){const _0x134a1c=a122_0x1bc3;if(_0x32e2a7){const _0x5d8c55=_0x32e2a7['count'],_0x3d7549=_0x20701d[_0x134a1c('0x1e')];let _0x43d925=_0x20701d[_0x134a1c('0x1e')]+_0x20701d[_0x134a1c('0x1c')],_0x14ceae;return _0x43d925>=_0x5d8c55?(_0x43d925=_0x5d8c55,_0x14ceae=0xc8):_0x14ceae=0xce,_0x54a79b['status'](_0x14ceae),_0x54a79b['set']('Content-Range',_0x3d7549+'-'+_0x43d925+'/'+_0x5d8c55)['json'](_0x32e2a7);}return null;};}function saveUpdates(_0x496a97){return function(_0x300d79){if(_0x300d79)return _0x300d79['update'](_0x496a97)['then'](function(_0x1c7645){return _0x1c7645;});return null;};}function removeEntity(_0xd9c2ff){return function(_0x3e32d1){const _0x34812b=a122_0x1bc3;if(_0x3e32d1)return _0x3e32d1[_0x34812b('0x2c')]()[_0x34812b('0x2f')](function(){const _0x4c6cdf=_0x34812b,_0x2eb923=_0x3e32d1['get']({'plain':!![]}),_0x1c97cb=_0x4c6cdf('0xc');return db['UserProfileResource']['destroy']({'where':{'type':_0x1c97cb,'resourceId':_0x2eb923['id']}})[_0x4c6cdf('0x2f')](function(){return _0x3e32d1;});})['then'](function(){const _0xb8e7ab=_0x34812b;_0xd9c2ff[_0xb8e7ab('0x25')](0xcc)['end']();});};}function handleEntityNotFound(_0x42044b){return function(_0xd9adb9){const _0x5070bc=a122_0x1bc3;return!_0xd9adb9&&_0x42044b[_0x5070bc('0x9')](0x194),_0xd9adb9;};}function handleError(_0x344221,_0x529a21){return _0x529a21=_0x529a21||0x1f4,function(_0x20b13e){const _0x332a3b=a122_0x1bc3;logger[_0x332a3b('0x2a')](_0x20b13e['stack']),_0x20b13e[_0x332a3b('0x28')]&&delete _0x20b13e[_0x332a3b('0x28')],_0x344221[_0x332a3b('0x25')](_0x529a21)['send'](_0x20b13e);};}exports[_0x1cad60('0x5')]=function(_0x50bf18,_0x2ed5dd){const _0x15b914=_0x1cad60;let _0x3ccade={};const _0xa9c6ad={},_0x4e85d8={'count':0x0,'rows':[]};return db['CmCompany'][_0x15b914('0x3a')]()[_0x15b914('0x2f')](function(_0x2eed95){const _0x295167=_0x15b914;_0xa9c6ad[_0x295167('0x27')]=_['keys'](_0x2eed95),_0xa9c6ad[_0x295167('0x24')]=_['keys'](_0x50bf18[_0x295167('0x24')]),_0xa9c6ad[_0x295167('0x1')]=_[_0x295167('0x26')](_0xa9c6ad[_0x295167('0x27')],_0xa9c6ad[_0x295167('0x24')]),_0x3ccade[_0x295167('0x36')]=_[_0x295167('0x26')](_0xa9c6ad[_0x295167('0x27')],qs[_0x295167('0x3c')](_0x50bf18[_0x295167('0x24')]['fields'])),_0x3ccade[_0x295167('0x36')]=_0x3ccade[_0x295167('0x36')]['length']?_0x3ccade[_0x295167('0x36')]:_0xa9c6ad[_0x295167('0x27')];typeof _0x50bf18['query']['nolimit']===_0x295167('0x37')&&(_0x3ccade[_0x295167('0x1c')]=qs[_0x295167('0x1c')](_0x50bf18['query'][_0x295167('0x1c')]),_0x3ccade[_0x295167('0x1e')]=qs['offset'](_0x50bf18[_0x295167('0x24')]['offset']));_0x3ccade[_0x295167('0x35')]=qs[_0x295167('0x22')](_0x50bf18[_0x295167('0x24')][_0x295167('0x22')]),_0x3ccade[_0x295167('0x38')]=qs[_0x295167('0x1')](_[_0x295167('0xd')](_0x50bf18['query'],_0xa9c6ad[_0x295167('0x1')]),_0x2eed95);_0x50bf18[_0x295167('0x24')]['filter']&&(_0x3ccade[_0x295167('0x38')]=_[_0x295167('0x31')](_0x3ccade['where'],{[Op['or']]:_[_0x295167('0x4')](_0x3ccade[_0x295167('0x36')],function(_0x54f83c){const _0x198883=_0x295167,_0x2e7796={};return _0x2e7796[_0x54f83c]={[Op[_0x198883('0x2e')]]:'%'+_0x50bf18[_0x198883('0x24')][_0x198883('0x13')]+'%'},_0x2e7796;})}));_0x3ccade=_[_0x295167('0x31')]({},_0x3ccade,_0x50bf18[_0x295167('0x1b')]);const _0x7223bf={'where':_0x3ccade['where']};return db[_0x295167('0x3b')][_0x295167('0xf')](_0x7223bf)[_0x295167('0x2f')](function(_0x11a2e7){const _0x24644a=_0x295167;return _0x4e85d8[_0x24644a('0xf')]=_0x11a2e7,_0x50bf18[_0x24644a('0x24')][_0x24644a('0x1a')]&&(_0x3ccade[_0x24644a('0x6')]=[{'all':!![]}]),db['CmCompany'][_0x24644a('0x32')](_0x3ccade);})[_0x295167('0x2f')](function(_0x548e1d){const _0xad8e5=_0x295167;return _0x4e85d8[_0xad8e5('0x11')]=_0x548e1d,_0x4e85d8;})[_0x295167('0x2f')](respondWithFilteredResult(_0x2ed5dd,_0x3ccade))[_0x295167('0x23')](handleError(_0x2ed5dd,null));})[_0x15b914('0x23')](handleError(_0x2ed5dd,null));},exports[_0x1cad60('0x0')]=function(_0x35ef90,_0xea0899){const _0x3f15b1=_0x1cad60;let _0x41786b={'raw':![],'where':{'id':_0x35ef90[_0x3f15b1('0x2')]['id']}};const _0x40d69a={};return _0x40d69a[_0x3f15b1('0x27')]=_[_0x3f15b1('0x15')](db[_0x3f15b1('0x3b')][_0x3f15b1('0x1d')]),_0x40d69a[_0x3f15b1('0x24')]=_[_0x3f15b1('0x15')](_0x35ef90[_0x3f15b1('0x24')]),_0x40d69a[_0x3f15b1('0x1')]=_['intersection'](_0x40d69a[_0x3f15b1('0x27')],_0x40d69a[_0x3f15b1('0x24')]),_0x41786b[_0x3f15b1('0x36')]=_[_0x3f15b1('0x26')](_0x40d69a[_0x3f15b1('0x27')],qs['fields'](_0x35ef90[_0x3f15b1('0x24')][_0x3f15b1('0x3c')])),_0x41786b[_0x3f15b1('0x36')]=_0x41786b[_0x3f15b1('0x36')][_0x3f15b1('0x12')]?_0x41786b['attributes']:_0x40d69a[_0x3f15b1('0x27')],_0x35ef90['query'][_0x3f15b1('0x1a')]&&(_0x41786b[_0x3f15b1('0x6')]=[{'all':!![]}]),_0x41786b=_[_0x3f15b1('0x31')]({},_0x41786b,_0x35ef90['options']),db[_0x3f15b1('0x3b')][_0x3f15b1('0x2d')](_0x41786b)[_0x3f15b1('0x2f')](handleEntityNotFound(_0xea0899,null))[_0x3f15b1('0x2f')](respondWithResult(_0xea0899,null))[_0x3f15b1('0x23')](handleError(_0xea0899,null));},exports['create']=function(_0xc19e8d,_0x131026){const _0x2abd36=_0x1cad60;return db['CmCompany']['create'](_0xc19e8d['body'],{})[_0x2abd36('0x2f')](function(_0x17fa01){const _0x28a906=_0x2abd36,_0x11da9f=_0xc19e8d[_0x28a906('0x39')][_0x28a906('0x17')]({'plain':!![]});if(!_0x11da9f)throw new Error(_0x28a906('0x14'));if(_0x11da9f[_0x28a906('0x1f')]===_0x28a906('0x39')){const _0x48be10=_0x17fa01[_0x28a906('0x17')]({'plain':!![]}),_0x54ea6e=_0x28a906('0xc');return db['UserProfileSection'][_0x28a906('0x2d')]({'where':{'name':_0x54ea6e,'userProfileId':_0x11da9f[_0x28a906('0x19')]},'raw':!![]})[_0x28a906('0x2f')](function(_0x325835){const _0xabcd06=_0x28a906;return _0x325835&&_0x325835[_0xabcd06('0xa')]===0x0?db[_0xabcd06('0x18')][_0xabcd06('0x8')]({'name':_0x48be10[_0xabcd06('0x28')],'resourceId':_0x48be10['id'],'type':_0x325835['name'],'sectionId':_0x325835['id']},{})[_0xabcd06('0x2f')](function(){return _0x17fa01;}):_0x17fa01;})[_0x28a906('0x23')](function(_0x51dd25){const _0x212bab=_0x28a906;logger[_0x212bab('0x2a')](_0x212bab('0x29'),_0x51dd25);throw _0x51dd25;});}return _0x17fa01;})[_0x2abd36('0x2f')](respondWithResult(_0x131026,0xc9))['catch'](handleError(_0x131026,null));},exports[_0x1cad60('0x7')]=function(_0xb68419,_0x4c5fe2){const _0x26b94a=_0x1cad60;return _0xb68419[_0x26b94a('0x16')]['id']&&delete _0xb68419[_0x26b94a('0x16')]['id'],db[_0x26b94a('0x3b')][_0x26b94a('0x2d')]({'where':{'id':_0xb68419[_0x26b94a('0x2')]['id']}})[_0x26b94a('0x2f')](handleEntityNotFound(_0x4c5fe2,null))[_0x26b94a('0x2f')](saveUpdates(_0xb68419['body'],null))['then'](respondWithResult(_0x4c5fe2,null))[_0x26b94a('0x23')](handleError(_0x4c5fe2,null));},exports[_0x1cad60('0x2c')]=function(_0xcbfea7,_0xe6380d){const _0x38c602=_0x1cad60;return db['CmCompany'][_0x38c602('0x2d')]({'where':{'id':_0xcbfea7['params']['id']}})[_0x38c602('0x2f')](handleEntityNotFound(_0xe6380d,null))[_0x38c602('0x2f')](removeEntity(_0xe6380d,null))[_0x38c602('0x23')](handleError(_0xe6380d,null));},exports[_0x1cad60('0x3a')]=function(_0x376596,_0x17d55f){const _0x210811=_0x1cad60;return db['CmCompany'][_0x210811('0x3a')]()[_0x210811('0x2f')](respondWithResult(_0x17d55f,null))[_0x210811('0x23')](handleError(_0x17d55f,null));},exports['addContacts']=function(_0x18bfc1,_0x27dbf2){const _0x5e05a4=_0x1cad60;return db['CmContact'][_0x5e05a4('0x2d')]({'where':{'id':_0x18bfc1[_0x5e05a4('0x2')]['id']}})[_0x5e05a4('0x2f')](function(_0x287885){const _0xa79a41=_0x5e05a4;if(_0x287885)return _0x287885[_0xa79a41('0x21')](_0x18bfc1[_0xa79a41('0x16')][_0xa79a41('0xb')],{'through':_[_0xa79a41('0x30')](_0x18bfc1['body'],['ids','id'])});})[_0x5e05a4('0x2f')](respondWithResult(_0x27dbf2,null))[_0x5e05a4('0x23')](handleError(_0x27dbf2,null));},exports['getContacts']=function(_0x184562,_0x5edc98){const _0x3ca9d7=_0x1cad60;let _0x1858f9={};const _0x29235c={};let _0x28a6af,_0x504ff3;return db[_0x3ca9d7('0x3b')][_0x3ca9d7('0x2d')]({'where':{'id':_0x184562[_0x3ca9d7('0x2')]['id']}})[_0x3ca9d7('0x2f')](handleEntityNotFound(_0x5edc98,null))['then'](function(_0x2ae086){const _0x41c770=_0x3ca9d7;if(_0x2ae086)return _0x28a6af=_0x2ae086,_0x29235c['model']=_[_0x41c770('0x15')](db[_0x41c770('0x3')][_0x41c770('0x1d')]),_0x29235c[_0x41c770('0x24')]=_[_0x41c770('0x15')](_0x184562['query']),_0x29235c[_0x41c770('0x1')]=_[_0x41c770('0x26')](_0x29235c['model'],_0x29235c[_0x41c770('0x24')]),_0x1858f9[_0x41c770('0x36')]=_[_0x41c770('0x26')](_0x29235c['model'],qs[_0x41c770('0x3c')](_0x184562[_0x41c770('0x24')][_0x41c770('0x3c')])),_0x1858f9['attributes']=_0x1858f9[_0x41c770('0x36')][_0x41c770('0x12')]?_0x1858f9[_0x41c770('0x36')]:_0x29235c[_0x41c770('0x27')],_0x1858f9[_0x41c770('0x35')]=qs[_0x41c770('0x22')](_0x184562[_0x41c770('0x24')][_0x41c770('0x22')]),_0x1858f9[_0x41c770('0x38')]=qs[_0x41c770('0x1')](_[_0x41c770('0xd')](_0x184562[_0x41c770('0x24')],_0x29235c['filters'])),_0x184562[_0x41c770('0x24')][_0x41c770('0x13')]&&(_0x1858f9['where']=_[_0x41c770('0x31')](_0x1858f9['where'],{[Op['or']]:_[_0x41c770('0x4')](_0x1858f9[_0x41c770('0x36')],function(_0x1e992b){const _0x3b0ced=_0x41c770,_0x3560f8={};return _0x3560f8[_0x1e992b]={[Op[_0x3b0ced('0x2e')]]:'%'+_0x184562[_0x3b0ced('0x24')]['filter']+'%'},_0x3560f8;})})),_0x1858f9=_[_0x41c770('0x31')]({},_0x1858f9,_0x184562['options']),_0x28a6af[_0x41c770('0x20')](_0x1858f9);})['then'](function(_0x501b50){const _0x7e4b50=_0x3ca9d7;if(_0x501b50)return _0x504ff3=_0x501b50['length'],typeof _0x184562[_0x7e4b50('0x24')]['nolimit']==='undefined'&&(_0x1858f9[_0x7e4b50('0x1c')]=qs[_0x7e4b50('0x1c')](_0x184562[_0x7e4b50('0x24')][_0x7e4b50('0x1c')]),_0x1858f9[_0x7e4b50('0x1e')]=qs['offset'](_0x184562[_0x7e4b50('0x24')][_0x7e4b50('0x1e')])),_0x28a6af['getContacts'](_0x1858f9);})['then'](function(_0xc1f427){if(_0xc1f427)return _0xc1f427?{'count':_0x504ff3,'rows':_0xc1f427}:null;})[_0x3ca9d7('0x2f')](respondWithResult(_0x5edc98,null))[_0x3ca9d7('0x23')](handleError(_0x5edc98,null));}; \ No newline at end of file +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 diff --git a/server/api/cmCompany/cmCompany.model.js b/server/api/cmCompany/cmCompany.model.js index 0b19a8d..a4c66ec 100644 --- a/server/api/cmCompany/cmCompany.model.js +++ b/server/api/cmCompany/cmCompany.model.js @@ -1 +1 @@ -const a123_0x52d6=['cm_companies','./cmCompany.attributes','exports'];(function(_0x499ec0,_0x52d6ed){const _0x4c54f3=function(_0x5749b8){while(--_0x5749b8){_0x499ec0['push'](_0x499ec0['shift']());}};_0x4c54f3(++_0x52d6ed);}(a123_0x52d6,0xf9));const a123_0x4c54=function(_0x499ec0,_0x52d6ed){_0x499ec0=_0x499ec0-0x0;let _0x4c54f3=a123_0x52d6[_0x499ec0];return _0x4c54f3;};const _0x299da9=a123_0x4c54;'use strict';const attributes=require(_0x299da9('0x1'));module[_0x299da9('0x2')]=function(_0x5749b8){const _0x346b14=_0x299da9,_0x55b8bc=_0x5749b8['define']('CmCompany',attributes,{'tableName':_0x346b14('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x55b8bc;}; \ No newline at end of file +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 diff --git a/server/api/cmCompany/index.js b/server/api/cmCompany/index.js index e943824..4208109 100644 --- a/server/api/cmCompany/index.js +++ b/server/api/cmCompany/index.js @@ -1 +1 @@ -const a124_0x22ed=['addContacts','put','exports','destroy','delete','show','create','../../components/auth/service','update','index','/:id/contacts','isAuthenticated','express','post','get','/:id','describe','getContacts','/describe','Router'];(function(_0x2d1f5d,_0x22edca){const _0x4045b6=function(_0x299967){while(--_0x299967){_0x2d1f5d['push'](_0x2d1f5d['shift']());}};_0x4045b6(++_0x22edca);}(a124_0x22ed,0xfc));const a124_0x4045=function(_0x2d1f5d,_0x22edca){_0x2d1f5d=_0x2d1f5d-0x0;let _0x4045b6=a124_0x22ed[_0x2d1f5d];return _0x4045b6;};const _0x3c0ba6=a124_0x4045;'use strict';const express=require(_0x3c0ba6('0x0')),router=express[_0x3c0ba6('0x7')](),auth=require(_0x3c0ba6('0xf')),controller=require('./cmCompany.controller');router[_0x3c0ba6('0x2')]('/',auth['isAuthenticated'](),controller[_0x3c0ba6('0x11')]),router[_0x3c0ba6('0x2')](_0x3c0ba6('0x6'),auth['isAuthenticated'](),controller[_0x3c0ba6('0x4')]),router[_0x3c0ba6('0x2')](_0x3c0ba6('0x3'),auth[_0x3c0ba6('0x13')](),controller[_0x3c0ba6('0xd')]),router[_0x3c0ba6('0x2')](_0x3c0ba6('0x12'),auth[_0x3c0ba6('0x13')](),controller[_0x3c0ba6('0x5')]),router[_0x3c0ba6('0x1')]('/',auth[_0x3c0ba6('0x13')](),controller[_0x3c0ba6('0xe')]),router[_0x3c0ba6('0x1')](_0x3c0ba6('0x12'),auth[_0x3c0ba6('0x13')](),controller[_0x3c0ba6('0x8')]),router[_0x3c0ba6('0x9')](_0x3c0ba6('0x3'),auth['isAuthenticated'](),controller[_0x3c0ba6('0x10')]),router[_0x3c0ba6('0xc')]('/:id',auth['isAuthenticated'](),controller[_0x3c0ba6('0xb')]),module[_0x3c0ba6('0xa')]=router; \ No newline at end of file +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 diff --git a/server/api/cmContact/cmContact.attributes.js b/server/api/cmContact/cmContact.attributes.js index 5590d97..fd3ba95 100644 --- a/server/api/cmContact/cmContact.attributes.js +++ b/server/api/cmContact/cmContact.attributes.js @@ -1 +1 @@ -const a125_0x4412=['NOW','STRING','UNSIGNED','INTEGER','DATE'];(function(_0xbf7574,_0x4412a8){const _0x396902=function(_0x542ac1){while(--_0x542ac1){_0xbf7574['push'](_0xbf7574['shift']());}};_0x396902(++_0x4412a8);}(a125_0x4412,0x1cf));const a125_0x3969=function(_0xbf7574,_0x4412a8){_0xbf7574=_0xbf7574-0x0;let _0x396902=a125_0x4412[_0xbf7574];return _0x396902;};const _0x20d08e=a125_0x3969;'use strict';const Sequelize=require('sequelize');module['exports']={'firstName':{'type':Sequelize[_0x20d08e('0x3')],'allowNull':![]},'lastName':{'type':Sequelize[_0x20d08e('0x3')]},'street':{'type':Sequelize['STRING']},'postalCode':{'type':Sequelize[_0x20d08e('0x3')]},'city':{'type':Sequelize[_0x20d08e('0x3')]},'country':{'type':Sequelize[_0x20d08e('0x3')]},'dateOfBirth':{'type':Sequelize[_0x20d08e('0x3')]},'description':{'type':Sequelize['TEXT']},'phone':{'type':Sequelize[_0x20d08e('0x3')]},'mobile':{'type':Sequelize['STRING']},'fax':{'type':Sequelize['STRING']},'email':{'type':Sequelize[_0x20d08e('0x3')]},'url':{'type':Sequelize[_0x20d08e('0x3')]},'facebook':{'type':Sequelize[_0x20d08e('0x3')]},'fb_data':{'type':Sequelize[_0x20d08e('0x3')]},'twitter':{'type':Sequelize['STRING']},'skype':{'type':Sequelize[_0x20d08e('0x3')]},'teams':{'type':Sequelize[_0x20d08e('0x3')]},'viber':{'type':Sequelize['STRING']},'line':{'type':Sequelize[_0x20d08e('0x3')]},'wechat':{'type':Sequelize[_0x20d08e('0x3')]},'telegram':{'type':Sequelize[_0x20d08e('0x3')]},'UserId':{'type':Sequelize[_0x20d08e('0x0')]},'priority':{'type':Sequelize['INTEGER'](0x2)[_0x20d08e('0x4')],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}},'scheduledat':{'type':Sequelize[_0x20d08e('0x1')],'defaultValue':Sequelize[_0x20d08e('0x2')]}}; \ No newline at end of file +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 diff --git a/server/api/cmContact/cmContact.controller.js b/server/api/cmContact/cmContact.controller.js index 6b1617b..413ce25 100644 --- a/server/api/cmContact/cmContact.controller.js +++ b/server/api/cmContact/cmContact.controller.js @@ -1 +1 @@ -const a126_0x1703=['ids','binding','and','duplicates','Tags','FaxQueueReport','../../components/parsers/advancedSearch','$and','intersection','[CmContact][merge][destroy][CmHopperBlack],\x20%s','end','rawAttributes','createReadStream','like','c.mobile\x20LIKE\x20?','Incorrect\x20binding\x20parameters\x20passed!','stringify','import','path','No\x20ListId\x20specified','set','cf_','resolve','zipObject','error','include','c.id','child_process','cm_contact_has_tags','c.lastName\x20LIKE\x20?','some','VoiceCallReport','FaxMessage','rows','filename','phone','json','sort','uc.CmContactId\x20=\x20c.id','all','c.firstName','user','params','mergeWith','tags','push','conditions','tools_tags','Unable\x20to\x20synchronize\x20socket,\x20no\x20timestamp\x20passed','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','options','type','cm_contacts','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','table','values','find','setTags','having','../../config/environment','Contact','keyBy','squel','left_join','clone','where','parse','t.id\x20=\x20ct.TagId','cm_user_has_contacts','startsWith','search','\x27\x27\x27\x27','SmsInteraction','\x20=\x20?','custom','color','filters','User','QueryTypes','isArray','upload','No\x20association\x20keys\x20specified!','filter','exit','../../components/parsers/qs','No\x20phone\x20column\x20specified','update','Tag','chmodSync','binding_values','ChatOfflineMessage','get','findOne','c.phone\x20LIKE\x20?','CmHopperBlack','CmHopperFinal','index','toParam','firstName','uploadCsv','offset','lodash','omit','cf_%d','c.id\x20LIKE\x20?','expr','attributes','destroy','info','pid','group','isEmail','../../rediscache','length','describe','count','getTags','Content-Range','c.ListId\x20IN\x20?','OpenchannelMessage','join','value','stack','CmHopperHistory','c.lastName','[CmContact][merge]\x20to\x20%s\x20from\x20%s','create','./cmContact.socket','CmCustomField','SELECT','MailMessage','util','getHoppers','c.email','body','File\x20uploaded\x20correctly!','[CmContact][merge][destroy][CmHopper],\x20%s','TagIds','toString','socket_timestamp','c.fax','then','ListId','CmContact','split','c.ListId','binding_keys','nolimit','catch','getLists','root','order','show','sequelize','alias','fieldType','CompanyId','pickBy','start','send','replace','file','t.id\x20IN\x20?','MailQueueReport','CmHopper','forEach','query','keys','c.fax\x20LIKE\x20?','findAll','text','server/files/tmp','OpenchannelQueueReport','start\x20child\x20process\x20correctly!','getHopperHistories','bulkCreate','pick','tag','fields','message','SmsQueueReport','CONCAT_WS(\x27\x20\x27,\x20c.firstName,\x20c.lastName,\x20c.email)\x20LIKE\x20?','c.mobile','undefined','status','c.ListId\x20IS\x20NULL','papaparse','No\x20firstName\x20column\x20specified','ChatQueueReport','SmsMessage','model','Sequelize','sendStatus','map','ReportAgentPreview','displayName','select','name','field','findOrCreate','format','concat','limit','JscriptySessionReport','c.email\x20LIKE\x20?','ChatMessage','ChatInteraction','getFullTextValue','0777','from','isEmpty','register','FaxInteraction','merge','columnName','getHopperFinals','ContactId','isNil'];(function(_0x301898,_0x170313){const _0x580013=function(_0x1720f1){while(--_0x1720f1){_0x301898['push'](_0x301898['shift']());}};_0x580013(++_0x170313);}(a126_0x1703,0x17c));const a126_0x5800=function(_0x301898,_0x170313){_0x301898=_0x301898-0x0;let _0x580013=a126_0x1703[_0x301898];return _0x580013;};const _0x29ccda=a126_0x5800;'use strict';const util=require(_0x29ccda('0xbb')),path=require(_0x29ccda('0x4a')),fs=require('fs'),_=require(_0x29ccda('0x9d')),squel=require(_0x29ccda('0x76')),Papa=require(_0x29ccda('0x18')),{getSocket}=require(_0x29ccda('0xa8')),socket=getSocket(),qs=require(_0x29ccda('0x8c')),as=require(_0x29ccda('0x3e')),logger=require('../../config/logger')('api'),config=require(_0x29ccda('0x73')),db=require('../../mysqldb')['db'],{Op}=require(_0x29ccda('0xd1'));require(_0x29ccda('0xb7'))[_0x29ccda('0x31')](socket);function respondWithResult(_0x1720f1,_0x2b7053){return _0x2b7053=_0x2b7053||0xc8,function(_0x43eac9){const _0x33a333=a126_0x5800;if(_0x43eac9)return _0x1720f1[_0x33a333('0x16')](_0x2b7053)[_0x33a333('0x5c')](_0x43eac9);};}function respondWithFilteredResult(_0x53d150,_0x2bb46b){return function(_0x3546d2){const _0x5db3f6=a126_0x5800;if(_0x3546d2){const _0x997d21=_0x3546d2['count'],_0x5a955f=_0x2bb46b[_0x5db3f6('0x9c')];let _0x1b836c=_0x2bb46b[_0x5db3f6('0x9c')]+_0x2bb46b[_0x5db3f6('0x28')],_0x3205b2;return _0x1b836c>=_0x997d21?(_0x1b836c=_0x997d21,_0x3205b2=0xc8):_0x3205b2=0xce,_0x53d150[_0x5db3f6('0x16')](_0x3205b2),_0x53d150[_0x5db3f6('0x4c')](_0x5db3f6('0xad'),_0x5a955f+'-'+_0x1b836c+'/'+_0x997d21)[_0x5db3f6('0x5c')](_0x3546d2);}return null;};}function saveUpdates(_0xa374ec){return function(_0x26c6af){const _0x3e759d=a126_0x5800;if(_0x26c6af)return _0x26c6af[_0x3e759d('0x8e')](_0xa374ec)[_0x3e759d('0xc5')](function(_0xd526ca){return _0xd526ca;});return null;};}function removeEntity(_0x1f07b3){return function(_0x3d6d10){const _0x88f3ec=a126_0x5800;if(_0x3d6d10)return _0x3d6d10['destroy']()[_0x88f3ec('0xc5')](function(){const _0x55bf53=_0x88f3ec;_0x1f07b3[_0x55bf53('0x16')](0xcc)[_0x55bf53('0x42')]();});};}function handleEntityNotFound(_0xdb9148){return function(_0x415fb5){const _0x454f8e=a126_0x5800;return!_0x415fb5&&_0xdb9148[_0x454f8e('0x1e')](0x194),_0x415fb5;};}function handleError(_0xc25303,_0x4507f1){return _0x4507f1=_0x4507f1||0x1f4,function(_0x203436){const _0x338ae4=a126_0x5800;logger['error'](_0x203436[_0x338ae4('0xb2')]),_0x203436['name']&&delete _0x203436[_0x338ae4('0x23')],_0xc25303[_0x338ae4('0x16')](_0x4507f1)['send'](_0x203436);};}exports[_0x29ccda('0x98')]=function(_0x133d21,_0x2fc783){const _0x59e38d=_0x29ccda,_0x4643eb={},_0x449683={},_0x334778={'count':0x0,'rows':[]};return db[_0x59e38d('0xc7')]['describe']()[_0x59e38d('0xc5')](function(_0x5a399b){const _0x2d81c4=_0x59e38d,_0x227c3e=[];for(let _0x3f2f5b=0x0;_0x3f2f5b0x1)_0x5194c4['or'](_0x6a319e('0x69'),qs[_0x6a319e('0x2d')](_0x344fe4),null);else{if(qs['isNumeric'](_0x344fe4))_0x5194c4['or'](_0x6a319e('0xa0'),_0x344fe4+'%'),_0x5194c4['or'](_0x6a319e('0x95'),_0x344fe4+'%'),_0x5194c4['or'](_0x6a319e('0x46'),_0x344fe4+'%'),_0x5194c4['or'](_0x6a319e('0x6'),_0x344fe4+'%');else qs[_0x6a319e('0xa7')](_0x344fe4)?_0x5194c4['or'](_0x6a319e('0x2a'),_0x344fe4+'%'):(_0x5194c4['or']('c.firstName\x20LIKE\x20?','%'+_0x344fe4+'%'),_0x5194c4['or'](_0x6a319e('0x55'),'%'+_0x344fe4+'%'),_0x5194c4['or'](_0x6a319e('0x2a'),'%'+_0x344fe4+'%'));}}}_0x18e84e[_0x6a319e('0x79')](_0x5194c4),_0x18e84e[_0x6a319e('0xa6')](_0x6a319e('0x52'));let _0x619bfb={'type':db[_0x6a319e('0x1d')][_0x6a319e('0x86')][_0x6a319e('0xb9')],'raw':!![]};const _0x32235f=_0x18e84e[_0x6a319e('0x78')]()[_0x6a319e('0x24')](_0x6a319e('0x52'));_0x4643eb[_0x6a319e('0xcf')]&&_0x4643eb[_0x6a319e('0xcf')]['forEach'](function(_0x2df210){const _0x533912=_0x6a319e;_0x18e84e[_0x533912('0xcf')]('c.'+_0x2df210[0x0],_0x2df210[0x1]==='DESC'?![]:!![]);}),!_[_0x6a319e('0x30')](_0x223a37)&&(_0x18e84e[_0x6a319e('0x72')](_0x3aee1f),_0x32235f[_0x6a319e('0x79')](_0x6a319e('0x0'),_0x223a37)),Promise[_0x6a319e('0x4e')]()['then'](function(){const _0x3c91f6=_0x6a319e;if(_0x9fec59&&!_[_0x3c91f6('0x56')](_0x9fec59[_0x3c91f6('0x66')],['field',_0x3c91f6('0x85')]))return _0x133d21[_0x3c91f6('0x61')][_0x3c91f6('0xcd')]({'attributes':['id'],'raw':!![]})['then'](function(_0x54d828){const _0x35f43a=_0x3c91f6;_[_0x35f43a('0x30')](_0x54d828)?(_0x32235f['where']('c.ListId\x20IS\x20NULL'),_0x18e84e[_0x35f43a('0x79')](_0x35f43a('0x17'))):(_0x32235f[_0x35f43a('0x79')](_0x35f43a('0xae'),_['map'](_0x54d828,'id')),_0x18e84e['where'](_0x35f43a('0xae'),_[_0x35f43a('0x1f')](_0x54d828,'id')));});else return;})[_0x6a319e('0xc5')](function(){const _0xd3f7b4=_0x6a319e;db[_0xd3f7b4('0xd1')]['query'](_0x32235f[_0xd3f7b4('0xc2')](),_0x619bfb)[_0xd3f7b4('0xc5')](function(_0x5426ee){const _0x112a9c=_0xd3f7b4;_0x334778[_0x112a9c('0xab')]=_0x5426ee['length'];if(_0x334778[_0x112a9c('0xab')]===0x0)return[];return db[_0x112a9c('0xd1')][_0x112a9c('0x4')](_0x4b868a[_0x112a9c('0xc2')](),_0x619bfb);})[_0xd3f7b4('0xc5')](function(_0xeddc62){const _0x2549bd=_0xd3f7b4;_0x456031=_[_0x2549bd('0x75')](_0xeddc62,'id'),_0x619bfb=_['merge'](_0x619bfb,{'model':db[_0x2549bd('0xc7')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x133d21[_0x2549bd('0x4')][_0x2549bd('0x10')]?_0x4643eb[_0x2549bd('0xa2')][_0x2549bd('0x3')](function(_0xbca1ae){const _0x53230a=_0x2549bd;_0x18e84e[_0x53230a('0x24')]('c.'+_0xbca1ae);}):(_0x18e84e['field'](_0x2549bd('0x52')),_0x18e84e['field'](_0x2549bd('0x60')),_0x18e84e[_0x2549bd('0x24')](_0x2549bd('0xb4')),_0x18e84e['field']('c.phone'),_0x18e84e[_0x2549bd('0x24')](_0x2549bd('0x14')),_0x18e84e[_0x2549bd('0x24')](_0x2549bd('0xc4')),_0x18e84e[_0x2549bd('0x24')](_0x2549bd('0xbd')),_0x18e84e[_0x2549bd('0x24')](_0x2549bd('0xc9')),_0x18e84e['field']('c.deletedAt'),_0x18e84e[_0x2549bd('0x24')]('GROUP_CONCAT(DISTINCT\x20t.id)',_0x2549bd('0xc1')));if(_0x4643eb[_0x2549bd('0x28')])_0x18e84e[_0x2549bd('0x28')](_0x4643eb[_0x2549bd('0x28')]);if(_0x4643eb[_0x2549bd('0x9c')])_0x18e84e['offset'](_0x4643eb[_0x2549bd('0x9c')]);return db[_0x2549bd('0xd1')]['query'](_0x18e84e[_0x2549bd('0xc2')](),_0x619bfb);})[_0xd3f7b4('0xc5')](function(_0x10bd90){const _0x3a0305=_0xd3f7b4;return _0x10bd90[_0x3a0305('0x3')](function(_0x488324){const _0x5b055b=_0x3a0305;_0x488324['TagIds']&&(_0x488324['Tags']=[],_0x488324[_0x5b055b('0xc1')]['split'](',')['forEach'](function(_0x54f635){const _0x3084cc=_0x5b055b;_0x488324[_0x3084cc('0x3c')][_0x3084cc('0x65')](_0x456031[_0x54f635]);})),delete _0x488324[_0x5b055b('0xc1')];}),_0x334778[_0x3a0305('0x59')]=_0x10bd90,_0x334778;})[_0xd3f7b4('0xc5')](respondWithFilteredResult(_0x2fc783,_0x4643eb));});})['catch'](handleError(_0x2fc783,null));},exports[_0x29ccda('0xa3')]=function(_0x4e183c,_0x10440e){const _0x4501bc=_0x29ccda;return db[_0x4501bc('0xc7')][_0x4501bc('0x94')]({'where':{'id':_0x4e183c[_0x4501bc('0x62')]['id']}})['then'](handleEntityNotFound(_0x10440e,null))[_0x4501bc('0xc5')](removeEntity(_0x10440e,null))['catch'](handleError(_0x10440e,null));},exports['describe']=function(_0x1441b8,_0x26c9ad){const _0x28d1fb=_0x29ccda;return db[_0x28d1fb('0xc7')][_0x28d1fb('0xaa')]()[_0x28d1fb('0xc5')](function(_0x1c9249){const _0x425c89=_0x28d1fb;delete _0x1c9249[_0x425c89('0x64')];for(let _0x2c0b44=0x0;_0x2c0b44=_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{}\s\\|]/g,'-'),_0x346431(null,util['format']('%s-%s%s',path['basename'](_0x37ff93[_0x287a9a('0x4')],path[_0x287a9a('0x1')](_0x37ff93['originalname'])),Date[_0x287a9a('0x5')](),path[_0x287a9a('0x1')](_0x37ff93[_0x287a9a('0x4')])));}})});router[_0x2702e8('0x1d')]('/',auth[_0x2702e8('0x13')](),controller[_0x2702e8('0xc')]),router[_0x2702e8('0x1d')]('/describe',auth[_0x2702e8('0x13')](),controller[_0x2702e8('0xe')]),router[_0x2702e8('0x1d')](_0x2702e8('0x1e'),auth[_0x2702e8('0x13')](),controller[_0x2702e8('0xb')]),router[_0x2702e8('0x1d')](_0x2702e8('0x1f'),auth[_0x2702e8('0x13')](),controller[_0x2702e8('0x1c')]),router[_0x2702e8('0x1d')](_0x2702e8('0xa'),auth[_0x2702e8('0x13')](),controller['getHoppers']),router['get'](_0x2702e8('0xf'),auth['isAuthenticated'](),controller['getHopperHistories']),router[_0x2702e8('0x1d')]('/:id/hopper_finals',auth['isAuthenticated'](),controller[_0x2702e8('0x1a')]),router[_0x2702e8('0x1d')]('/:id/jscripty_sessions',auth[_0x2702e8('0x13')](),controller[_0x2702e8('0x1b')]),router['post'](_0x2702e8('0x12'),auth[_0x2702e8('0x13')](),controller[_0x2702e8('0x24')]),router['post']('/',auth[_0x2702e8('0x13')](),controller['create']),router[_0x2702e8('0x16')]('/create_many',auth['isAuthenticated'](),controller['bulkCreate']),router[_0x2702e8('0x16')]('/:id/tags',auth['isAuthenticated'](),controller[_0x2702e8('0x17')]),router[_0x2702e8('0x16')](_0x2702e8('0x11'),upload['single'](_0x2702e8('0x10')),controller[_0x2702e8('0x0')]),router['post'](_0x2702e8('0x14'),upload['single'](_0x2702e8('0x10')),controller[_0x2702e8('0x6')]),router[_0x2702e8('0x16')]('/upload/:id',auth[_0x2702e8('0x13')](),controller[_0x2702e8('0x8')]),router[_0x2702e8('0x22')]('/:id',auth['isAuthenticated'](),controller[_0x2702e8('0x9')]),router['delete']('/:id',auth['isAuthenticated'](),controller[_0x2702e8('0x15')]),module['exports']=router; \ No newline at end of file +const a131_0x804e=['/describe','isAuthenticated','file','/upload','diskStorage','/:id','put','/:id/jscripty_sessions','getHoppers','Router','/merge','uploadCsv','/create_many','getHopperFinals','getHopperHistories','single','root','%s-%s%s','util','express','server/files/tmp','/csv','now','get','basename','format','describe','extname','bulkCreate','delete','/:id/tags','show','post','getJscriptySessions','/:id/hopper_finals','getTags','merge','upload','/:id/hopper_histories','create','join','originalname','setTags','index','replace'];(function(_0x55aa65,_0x804e7e){const _0x347ae8=function(_0x2da817){while(--_0x2da817){_0x55aa65['push'](_0x55aa65['shift']());}};_0x347ae8(++_0x804e7e);}(a131_0x804e,0x15f));const a131_0x347a=function(_0x55aa65,_0x804e7e){_0x55aa65=_0x55aa65-0x0;let _0x347ae8=a131_0x804e[_0x55aa65];return _0x347ae8;};const _0xef6563=a131_0x347a;'use strict';const multer=require('multer'),util=require(_0xef6563('0x1b')),path=require('path'),express=require(_0xef6563('0x1c')),router=express[_0xef6563('0x12')](),auth=require('../../components/auth/service'),config=require('../../config/environment'),controller=require('./cmContact.controller'),upload=multer({'storage':multer[_0xef6563('0xd')]({'destination':function(_0x2da817,_0x187d17,_0x515a14){const _0x26e944=_0xef6563;_0x515a14(null,path[_0x26e944('0x4')](config[_0x26e944('0x19')],_0x26e944('0x1d')));},'filename':function(_0x18b436,_0x198535,_0x23e92e){const _0x333ccf=_0xef6563;_0x198535[_0x333ccf('0x5')]=_0x198535[_0x333ccf('0x5')][_0x333ccf('0x8')](/[+@&-/\\#,+()$~%'":*?<>{}\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 diff --git a/server/api/cmCustomField/cmCustomField.attributes.js b/server/api/cmCustomField/cmCustomField.attributes.js index 4c3a8f3..d59d6a4 100644 --- a/server/api/cmCustomField/cmCustomField.attributes.js +++ b/server/api/cmCustomField/cmCustomField.attributes.js @@ -1 +1 @@ -const a132_0x20e5=['TEXT','VIRTUAL','BOOLEAN','getDataValue','select','exports','type','parse','STRING','values','isArray','ENUM','setDataValue','sequelize','name','stringify'];(function(_0x259df2,_0x20e588){const _0x5b7a44=function(_0x2892e9){while(--_0x2892e9){_0x259df2['push'](_0x259df2['shift']());}};_0x5b7a44(++_0x20e588);}(a132_0x20e5,0x120));const a132_0x5b7a=function(_0x259df2,_0x20e588){_0x259df2=_0x259df2-0x0;let _0x5b7a44=a132_0x20e5[_0x259df2];return _0x5b7a44;};const _0x1b18f9=a132_0x5b7a;'use strict';const Sequelize=require(_0x1b18f9('0xd'));module[_0x1b18f9('0x5')]={'name':{'type':Sequelize[_0x1b18f9('0x1')],'get':function(){return this['getDataValue']('alias');}},'alias':{'type':Sequelize[_0x1b18f9('0x8')],'allowNull':![],'set':function(_0x2892e9){const _0x28abd4=_0x1b18f9;this[_0x28abd4('0xc')]('alias',_0x2892e9?_0x2892e9:this[_0x28abd4('0x3')](_0x28abd4('0xe')));}},'type':{'type':Sequelize[_0x1b18f9('0x8')],'allowNull':![]},'values':{'type':Sequelize[_0x1b18f9('0x0')]('long'),'get':function(){const _0x22059f=_0x1b18f9;return this[_0x22059f('0x3')](_0x22059f('0x6'))===_0x22059f('0x4')?JSON[_0x22059f('0x7')](this['getDataValue'](_0x22059f('0x9'))):this[_0x22059f('0x3')](_0x22059f('0x9'));},'set':function(_0x374450){const _0x3cd3a2=_0x1b18f9;Array[_0x3cd3a2('0xa')](_0x374450)?this[_0x3cd3a2('0xc')](_0x3cd3a2('0x9'),JSON[_0x3cd3a2('0xf')](_0x374450)):this[_0x3cd3a2('0xc')](_0x3cd3a2('0x9'),_0x374450);}},'required':{'type':Sequelize[_0x1b18f9('0x2')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x1b18f9('0x2')],'defaultValue':![]},'actionType':{'type':Sequelize[_0x1b18f9('0xb')]('voice')}}; \ No newline at end of file +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 diff --git a/server/api/cmCustomField/cmCustomField.controller.js b/server/api/cmCustomField/cmCustomField.controller.js index 4ff18be..0a59203 100644 --- a/server/api/cmCustomField/cmCustomField.controller.js +++ b/server/api/cmCustomField/cmCustomField.controller.js @@ -1 +1 @@ -const a133_0x567c=['body','query','pick','set','util','format','destroy','rows','index','TEXT','CmCustomField','show','filter','findOne','status','where','merge','queryInterface','BOOLEAN','undefined','fields','count','keys','sendStatus','sort','send','cm_contacts','../../mysqldb','../../config/logger','error','attributes','map','defaultValue','create','Sequelize','json','update','type','order','VIRTUAL','key','rawAttributes','model','transaction','filters','params','cf_%d','Content-Range','length','lodash','like','then','limit','sequelize','intersection','offset','catch','options','include','findAll','name','includeAll','addColumn','INTEGER'];(function(_0x5e65f8,_0x567c42){const _0x4baee3=function(_0x4ae2b9){while(--_0x4ae2b9){_0x5e65f8['push'](_0x5e65f8['shift']());}};_0x4baee3(++_0x567c42);}(a133_0x567c,0x14b));const a133_0x4bae=function(_0x5e65f8,_0x567c42){_0x5e65f8=_0x5e65f8-0x0;let _0x4baee3=a133_0x567c[_0x5e65f8];return _0x4baee3;};const _0x27c9dc=a133_0x4bae;'use strict';const util=require(_0x27c9dc('0x39')),_=require(_0x27c9dc('0x26')),qs=require('../../components/parsers/qs'),logger=require(_0x27c9dc('0x11'))('api'),db=require(_0x27c9dc('0x10'))['db'],{Op}=require(_0x27c9dc('0x2a'));function respondWithResult(_0x4ae2b9,_0x22b1e1){return _0x22b1e1=_0x22b1e1||0xc8,function(_0x1dff87){const _0x1fa032=a133_0x4bae;if(_0x1dff87)return _0x4ae2b9[_0x1fa032('0x3')](_0x22b1e1)[_0x1fa032('0x18')](_0x1dff87);};}function respondWithFilteredResult(_0x2e6d7f,_0x596b3a){return function(_0x238442){const _0x498aaf=a133_0x4bae;if(_0x238442){const _0x44f566=_0x238442[_0x498aaf('0xa')],_0x139653=_0x596b3a['offset'];let _0x151f50=_0x596b3a[_0x498aaf('0x2c')]+_0x596b3a[_0x498aaf('0x29')],_0x5326c0;return _0x151f50>=_0x44f566?(_0x151f50=_0x44f566,_0x5326c0=0xc8):_0x5326c0=0xce,_0x2e6d7f['status'](_0x5326c0),_0x2e6d7f[_0x498aaf('0x38')](_0x498aaf('0x24'),_0x139653+'-'+_0x151f50+'/'+_0x44f566)[_0x498aaf('0x18')](_0x238442);}return null;};}function saveUpdates(_0x2e631c){return function(_0x3366cf){const _0x5b732b=a133_0x4bae;if(_0x3366cf)return _0x3366cf[_0x5b732b('0x19')](_0x2e631c)[_0x5b732b('0x28')](function(_0xf9df8a){return _0xf9df8a;});return null;};}function removeEntity(_0x104b3d){return function(_0x37ffe9){const _0x5d02e6=a133_0x4bae;if(_0x37ffe9)return _0x37ffe9[_0x5d02e6('0x3b')]()['then'](function(){_0x104b3d['status'](0xcc)['end']();});};}function handleEntityNotFound(_0xe91e3e){return function(_0x5b88d8){const _0x146059=a133_0x4bae;return!_0x5b88d8&&_0xe91e3e[_0x146059('0xc')](0x194),_0x5b88d8;};}function handleError(_0x2dd54f,_0x3905d7){return _0x3905d7=_0x3905d7||0x1f4,function(_0x1dd49b){const _0x253e50=a133_0x4bae;logger[_0x253e50('0x12')](_0x1dd49b['stack']),_0x1dd49b[_0x253e50('0x31')]&&delete _0x1dd49b[_0x253e50('0x31')],_0x2dd54f[_0x253e50('0x3')](_0x3905d7)[_0x253e50('0xe')](_0x1dd49b);};}exports[_0x27c9dc('0x3d')]=function(_0x368168,_0x4d9883){const _0x52a9a6=_0x27c9dc;let _0x526379={};const _0x7ed833={},_0x585be4={'count':0x0,'rows':[]},_0x2a4a05=_['map'](db[_0x52a9a6('0x3f')][_0x52a9a6('0x1e')],function(_0x19ad78){const _0x338f9b=_0x52a9a6;return{'name':_0x19ad78['fieldName'],'type':_0x19ad78['type'][_0x338f9b('0x1d')]};});_0x7ed833[_0x52a9a6('0x1f')]=_['differenceBy'](_['map'](_0x2a4a05,'name'),[_0x52a9a6('0x31')]),_0x7ed833[_0x52a9a6('0x36')]=_[_0x52a9a6('0xb')](_0x368168['query']),_0x7ed833['filters']=_[_0x52a9a6('0x2b')](_0x7ed833[_0x52a9a6('0x1f')],_0x7ed833['query']),_0x526379[_0x52a9a6('0x13')]=_[_0x52a9a6('0x2b')](_0x7ed833[_0x52a9a6('0x1f')],qs['fields'](_0x368168[_0x52a9a6('0x36')]['fields'])),_0x526379[_0x52a9a6('0x13')]=_0x526379[_0x52a9a6('0x13')]['length']?_0x526379['attributes']:_0x7ed833['model'];typeof _0x368168[_0x52a9a6('0x36')]['nolimit']===_0x52a9a6('0x8')&&(_0x526379['limit']=qs['limit'](_0x368168[_0x52a9a6('0x36')][_0x52a9a6('0x29')]),_0x526379[_0x52a9a6('0x2c')]=qs['offset'](_0x368168['query'][_0x52a9a6('0x2c')]));_0x526379[_0x52a9a6('0x1b')]=qs[_0x52a9a6('0xd')](_0x368168[_0x52a9a6('0x36')]['sort']),_0x526379[_0x52a9a6('0x4')]=qs[_0x52a9a6('0x21')](_[_0x52a9a6('0x37')](_0x368168[_0x52a9a6('0x36')],_0x7ed833[_0x52a9a6('0x21')]),_0x2a4a05);_0x368168[_0x52a9a6('0x36')][_0x52a9a6('0x1')]&&(_0x526379[_0x52a9a6('0x4')]=_[_0x52a9a6('0x5')](_0x526379['where'],{[Op['or']]:_[_0x52a9a6('0x14')](_0x2a4a05,function(_0x2c83d4){const _0x59219b=_0x52a9a6;if(_0x2c83d4['type']!==_0x59219b('0x1c')){const _0x355f3f={};return _0x355f3f[_0x2c83d4['name']]={[Op[_0x59219b('0x27')]]:'%'+_0x368168[_0x59219b('0x36')][_0x59219b('0x1')]+'%'},_0x355f3f;}})}));_0x526379=_[_0x52a9a6('0x5')]({},_0x526379,_0x368168[_0x52a9a6('0x2e')]);const _0x5e6255={'where':_0x526379[_0x52a9a6('0x4')]};return db['CmCustomField'][_0x52a9a6('0xa')](_0x5e6255)[_0x52a9a6('0x28')](function(_0x2541fb){const _0x4cece0=_0x52a9a6;return _0x585be4[_0x4cece0('0xa')]=_0x2541fb,_0x368168['query'][_0x4cece0('0x32')]&&(_0x526379[_0x4cece0('0x2f')]=[{'all':!![]}]),db[_0x4cece0('0x3f')][_0x4cece0('0x30')](_0x526379);})[_0x52a9a6('0x28')](function(_0x2e186d){const _0x11c9e4=_0x52a9a6;return _0x585be4[_0x11c9e4('0x3c')]=_0x2e186d,_0x585be4;})[_0x52a9a6('0x28')](respondWithFilteredResult(_0x4d9883,_0x526379))['catch'](handleError(_0x4d9883,null));},exports[_0x27c9dc('0x0')]=function(_0x3c3826,_0x35a41e){const _0x656e58=_0x27c9dc;let _0x33005e={'raw':!![],'where':{'id':_0x3c3826['params']['id']}};const _0xb7fefe={};return _0xb7fefe[_0x656e58('0x1f')]=_[_0x656e58('0xb')](db[_0x656e58('0x3f')]['rawAttributes']),_0xb7fefe['query']=_[_0x656e58('0xb')](_0x3c3826[_0x656e58('0x36')]),_0xb7fefe[_0x656e58('0x21')]=_[_0x656e58('0x2b')](_0xb7fefe[_0x656e58('0x1f')],_0xb7fefe[_0x656e58('0x36')]),_0x33005e[_0x656e58('0x13')]=_[_0x656e58('0x2b')](_0xb7fefe[_0x656e58('0x1f')],qs[_0x656e58('0x9')](_0x3c3826[_0x656e58('0x36')][_0x656e58('0x9')])),_0x33005e[_0x656e58('0x13')]=_0x33005e[_0x656e58('0x13')][_0x656e58('0x25')]?_0x33005e[_0x656e58('0x13')]:_0xb7fefe['model'],_0x3c3826[_0x656e58('0x36')][_0x656e58('0x32')]&&(_0x33005e[_0x656e58('0x2f')]=[{'all':!![]}]),_0x33005e=_[_0x656e58('0x5')]({},_0x33005e,_0x3c3826[_0x656e58('0x2e')]),db[_0x656e58('0x3f')]['findOne'](_0x33005e)[_0x656e58('0x28')](handleEntityNotFound(_0x35a41e,null))[_0x656e58('0x28')](respondWithResult(_0x35a41e,null))['catch'](handleError(_0x35a41e,null));},exports[_0x27c9dc('0x19')]=function(_0xb0da5b,_0x10bbf3){const _0x55e5b9=_0x27c9dc;return _0xb0da5b[_0x55e5b9('0x35')]['id']&&delete _0xb0da5b[_0x55e5b9('0x35')]['id'],db[_0x55e5b9('0x3f')][_0x55e5b9('0x2')]({'where':{'id':_0xb0da5b[_0x55e5b9('0x22')]['id']}})[_0x55e5b9('0x28')](handleEntityNotFound(_0x10bbf3,null))[_0x55e5b9('0x28')](saveUpdates(_0xb0da5b[_0x55e5b9('0x35')],null))[_0x55e5b9('0x28')](respondWithResult(_0x10bbf3,null))[_0x55e5b9('0x2d')](handleError(_0x10bbf3,null));},exports[_0x27c9dc('0x3b')]=function(_0x403e84,_0x3cdb9e){const _0x13133b=_0x27c9dc;return db[_0x13133b('0x3f')][_0x13133b('0x2')]({'where':{'id':_0x403e84[_0x13133b('0x22')]['id']}})[_0x13133b('0x28')](handleEntityNotFound(_0x3cdb9e,null))[_0x13133b('0x28')](removeEntity(_0x3cdb9e,null))[_0x13133b('0x2d')](handleError(_0x3cdb9e,null));},exports[_0x27c9dc('0x16')]=function(_0x172817,_0x3b4543){const _0x3c4be1=_0x27c9dc;let _0x4ba7a4;return db[_0x3c4be1('0x2a')][_0x3c4be1('0x20')](function(_0x2461e3){const _0x2df615=_0x3c4be1;return db[_0x2df615('0x3f')][_0x2df615('0x16')](_0x172817[_0x2df615('0x35')],{'transaction':_0x2461e3})[_0x2df615('0x28')](function(_0x552da1){const _0x46e1b8=_0x2df615;_0x4ba7a4=_0x552da1;const _0x313b1a={'type':db[_0x46e1b8('0x17')][_0x46e1b8('0x3e')],'transaction':_0x2461e3};switch(_0x172817[_0x46e1b8('0x35')][_0x46e1b8('0x1a')]){case'text':_0x313b1a[_0x46e1b8('0x1a')]=db[_0x46e1b8('0x17')][_0x46e1b8('0x3e')];break;case'number':_0x313b1a[_0x46e1b8('0x1a')]=db[_0x46e1b8('0x17')][_0x46e1b8('0x34')];break;case'switch':_0x313b1a['type']=db[_0x46e1b8('0x17')][_0x46e1b8('0x7')],_0x313b1a[_0x46e1b8('0x15')]=![];break;default:}return db[_0x46e1b8('0x2a')][_0x46e1b8('0x6')][_0x46e1b8('0x33')](_0x46e1b8('0xf'),util[_0x46e1b8('0x3a')](_0x46e1b8('0x23'),_0x4ba7a4['id']),_0x313b1a);})[_0x2df615('0x28')](function(){return _0x4ba7a4;});})[_0x3c4be1('0x28')](respondWithResult(_0x3b4543,0xc9))['catch'](handleError(_0x3b4543,null));}; \ No newline at end of file +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 diff --git a/server/api/cmCustomField/cmCustomField.model.js b/server/api/cmCustomField/cmCustomField.model.js index 036b276..ac6ddf9 100644 --- a/server/api/cmCustomField/cmCustomField.model.js +++ b/server/api/cmCustomField/cmCustomField.model.js @@ -1 +1 @@ -const a134_0x3d84=['exports','CmCustomField','define','./cmCustomField.attributes','cm_custom_fields'];(function(_0x63ab2,_0x3d843a){const _0xfdc81c=function(_0x5f56f0){while(--_0x5f56f0){_0x63ab2['push'](_0x63ab2['shift']());}};_0xfdc81c(++_0x3d843a);}(a134_0x3d84,0x17d));const a134_0xfdc8=function(_0x63ab2,_0x3d843a){_0x63ab2=_0x63ab2-0x0;let _0xfdc81c=a134_0x3d84[_0x63ab2];return _0xfdc81c;};const _0x2b4445=a134_0xfdc8;'use strict';const attributes=require(_0x2b4445('0x2'));module[_0x2b4445('0x4')]=function(_0x5f56f0){const _0x492be8=_0x2b4445,_0x184430=_0x5f56f0[_0x492be8('0x1')](_0x492be8('0x0'),attributes,{'tableName':_0x492be8('0x3'),'paranoid':!![],'indexes':[],'timestamps':!![]});return _0x184430;}; \ No newline at end of file +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 diff --git a/server/api/cmCustomField/index.js b/server/api/cmCustomField/index.js index e264486..1e22e82 100644 --- a/server/api/cmCustomField/index.js +++ b/server/api/cmCustomField/index.js @@ -1 +1 @@ -const a135_0x5346=['show','exports','post','./cmCustomField.controller','delete','get','/:id','express','create','put','isAuthenticated','destroy','../../components/auth/service','update','Router'];(function(_0x2b68cb,_0x534617){const _0x4e0fbf=function(_0xa6030e){while(--_0xa6030e){_0x2b68cb['push'](_0x2b68cb['shift']());}};_0x4e0fbf(++_0x534617);}(a135_0x5346,0x1a0));const a135_0x4e0f=function(_0x2b68cb,_0x534617){_0x2b68cb=_0x2b68cb-0x0;let _0x4e0fbf=a135_0x5346[_0x2b68cb];return _0x4e0fbf;};const _0x3ccb6d=a135_0x4e0f;'use strict';const express=require(_0x3ccb6d('0xb')),router=express[_0x3ccb6d('0x3')](),auth=require(_0x3ccb6d('0x1')),controller=require(_0x3ccb6d('0x7'));router[_0x3ccb6d('0x9')]('/',auth[_0x3ccb6d('0xe')](),controller['index']),router[_0x3ccb6d('0x9')](_0x3ccb6d('0xa'),auth['isAuthenticated'](),controller[_0x3ccb6d('0x4')]),router[_0x3ccb6d('0x6')]('/',auth[_0x3ccb6d('0xe')](),controller[_0x3ccb6d('0xc')]),router[_0x3ccb6d('0xd')](_0x3ccb6d('0xa'),auth['isAuthenticated'](),controller[_0x3ccb6d('0x2')]),router[_0x3ccb6d('0x8')](_0x3ccb6d('0xa'),auth[_0x3ccb6d('0xe')](),controller[_0x3ccb6d('0x0')]),module[_0x3ccb6d('0x5')]=router; \ No newline at end of file +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 diff --git a/server/api/cmHopper/cmHopper.attributes.js b/server/api/cmHopper/cmHopper.attributes.js index a991fc6..d97f774 100644 --- a/server/api/cmHopper/cmHopper.attributes.js +++ b/server/api/cmHopper/cmHopper.attributes.js @@ -1 +1 @@ -const a136_0x99ef=['format','STRING','BOOLEAN','DATE','contactListQueue','INTEGER','moment'];(function(_0x5835b3,_0x99ef7d){const _0x29f0c4=function(_0x212ee3){while(--_0x212ee3){_0x5835b3['push'](_0x5835b3['shift']());}};_0x29f0c4(++_0x99ef7d);}(a136_0x99ef,0x6c));const a136_0x29f0=function(_0x5835b3,_0x99ef7d){_0x5835b3=_0x5835b3-0x0;let _0x29f0c4=a136_0x99ef[_0x5835b3];return _0x29f0c4;};const _0x379f93=a136_0x29f0;'use strict';const moment=require(_0x379f93('0x3')),Sequelize=require('sequelize');module['exports']={'phone':{'type':Sequelize[_0x379f93('0x5')],'allowNull':![]},'active':{'type':Sequelize[_0x379f93('0x6')],'defaultValue':![]},'scheduledat':{'type':Sequelize[_0x379f93('0x0')],'defaultValue':moment()[_0x379f93('0x4')]('YYYY-MM-DD\x20HH:mm:ss')},'countbusyretry':{'type':Sequelize[_0x379f93('0x2')],'defaultValue':0x0},'countcongestionretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countnoanswerretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'callback':{'type':Sequelize[_0x379f93('0x6')],'defaultValue':![]},'callbackuniqueid':{'type':Sequelize[_0x379f93('0x5')],'defaultValue':null},'callbackat':{'type':Sequelize[_0x379f93('0x0')]},'priority':{'type':Sequelize[_0x379f93('0x2')](0x2)['UNSIGNED'],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}},'recallme':{'type':Sequelize[_0x379f93('0x6')],'defaultValue':![]},'ContactId':{'type':Sequelize['INTEGER'],'unique':_0x379f93('0x1')},'ListId':{'type':Sequelize[_0x379f93('0x2')],'unique':_0x379f93('0x1')},'UserId':{'type':Sequelize[_0x379f93('0x2')]},'VoiceQueueId':{'type':Sequelize['INTEGER'],'unique':_0x379f93('0x1')},'CampaignId':{'type':Sequelize[_0x379f93('0x2')]},'countnosuchnumberretry':{'type':Sequelize[_0x379f93('0x2')],'defaultValue':0x0},'countdropretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countabandonedretry':{'type':Sequelize[_0x379f93('0x2')],'defaultValue':0x0},'countmachineretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countagentrejectretry':{'type':Sequelize[_0x379f93('0x2')],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/cmHopper/cmHopper.controller.js b/server/api/cmHopper/cmHopper.controller.js index 0481651..a6c241f 100644 --- a/server/api/cmHopper/cmHopper.controller.js +++ b/server/api/cmHopper/cmHopper.controller.js @@ -1 +1 @@ -const a137_0xc38d=['$lte','$notLike','ASC','attributes','lte','finally','update','direction','outbound','CmCompany','describe','scheduledat','List','ivr','priority','createdAt','catch','Company','../../mysqldb','$contains','$any','Queue','CmList','isNumber','$overlap','length','VoiceQueue','options','dataValues','fieldName','sequelize','nolimit','stack','$notILike','$like','status','rows','../../components/parsers/qs','sort','key','include','Campaign','includeAll','YYYY-MM-DD\x20HH:mm:ss','type','literal','pick','calleridnum','user','getPreview','body','keys','UserId','create','state','scheduledAt','../../config/logger','lastName','CmContac','limit','$contained','VoiceQueueId','campaigntype','sendStatus','filter','getVoiceQueues','lodash','prev','$not','offset','ContactId','error','intersection','name','getOpenContacts','$or','$eq','destroy','index','calleridname','phone','firstName','CampaignId','UPDATE','$in','CmHopper','show','CmHopperFinal','model','fields','omit','dialOrderByScheduledAt','findOne','Contact','format','params','findAll','filters','json','queue','$and','$lt','order','end','map','api','concat','CmContact','$gte','updatedAt','merge','entity\x20not\x20found','query','count','then','deleted','send','isNil','$notBetween','CmHopper,\x20%s,\x20%s,\x20%s','where','$gt','DESC','isEmpty','hopperIds'];(function(_0x1d2000,_0xc38d91){const _0x5adb9e=function(_0x5e49b3){while(--_0x5e49b3){_0x1d2000['push'](_0x1d2000['shift']());}};_0x5adb9e(++_0xc38d91);}(a137_0xc38d,0x13e));const a137_0x5adb=function(_0x1d2000,_0xc38d91){_0x1d2000=_0x1d2000-0x0;let _0x5adb9e=a137_0xc38d[_0x1d2000];return _0x5adb9e;};const _0x5c07b3=a137_0x5adb;'use strict';const moment=require('moment'),_=require(_0x5c07b3('0x7b')),qs=require(_0x5c07b3('0x5e')),logger=require(_0x5c07b3('0x71'))(_0x5c07b3('0x25')),db=require(_0x5c07b3('0x4b'))['db'],{Op}=require(_0x5c07b3('0x57'));function respondWithResult(_0x5e49b3,_0xe84f5f){return _0xe84f5f=_0xe84f5f||0xc8,function(_0x367cf5){const _0x4cdead=a137_0x5adb;if(_0x367cf5)return _0x5e49b3['status'](_0xe84f5f)[_0x4cdead('0x1e')](_0x367cf5);};}function respondWithFilteredResult(_0x516ae5,_0x1c8cf9){return function(_0x2cc9b1){const _0x1054fe=a137_0x5adb;if(_0x2cc9b1){const _0xd5a4a1=_0x2cc9b1['count'],_0x2ec776=_0x1c8cf9['offset'];let _0x1c27a2=_0x1c8cf9['offset']+_0x1c8cf9[_0x1054fe('0x74')],_0x1a442f;return _0x1c27a2>=_0xd5a4a1?(_0x1c27a2=_0xd5a4a1,_0x1a442f=0xc8):_0x1a442f=0xce,_0x516ae5[_0x1054fe('0x5c')](_0x1a442f),_0x516ae5['set']('Content-Range',_0x2ec776+'-'+_0x1c27a2+'/'+_0xd5a4a1)['json'](_0x2cc9b1);}return null;};}function saveUpdates(_0x474a92){return function(_0x4e0355){const _0x3fdcb2=a137_0x5adb;if(_0x4e0355)return _0x4e0355[_0x3fdcb2('0x3f')](_0x474a92)['then'](function(_0x423d35){return _0x423d35;});return null;};}function handleEntityNotFound(_0x3fff41){return function(_0x420b07){const _0x23ddfc=a137_0x5adb;return!_0x420b07&&_0x3fff41[_0x23ddfc('0x78')](0x194),_0x420b07;};}function handleError(_0x2ad448,_0x46d405){return _0x46d405=_0x46d405||0x1f4,function(_0x8a4c98){const _0x431a12=a137_0x5adb;logger['error'](_0x8a4c98[_0x431a12('0x59')]),_0x8a4c98[_0x431a12('0x5')]&&delete _0x8a4c98['name'],_0x2ad448[_0x431a12('0x5c')](_0x46d405)[_0x431a12('0x30')](_0x8a4c98);};}exports[_0x5c07b3('0xa')]=function(_0x525656,_0x383952){const _0x5b12ef=_0x5c07b3;let _0x30a0db={};const _0x2ffaf3={},_0x40dec5={'count':0x0,'rows':[]},_0xbc3d9b=_[_0x5b12ef('0x24')](db['CmHopper']['rawAttributes'],function(_0x34ac4e){const _0x22e6fe=_0x5b12ef;return{'name':_0x34ac4e[_0x22e6fe('0x56')],'type':_0x34ac4e[_0x22e6fe('0x65')][_0x22e6fe('0x60')]};});_0x2ffaf3['model']=_[_0x5b12ef('0x24')](_0xbc3d9b,'name'),_0x2ffaf3[_0x5b12ef('0x2c')]=_['keys'](_0x525656[_0x5b12ef('0x2c')]),_0x2ffaf3[_0x5b12ef('0x1d')]=_[_0x5b12ef('0x4')](_0x2ffaf3[_0x5b12ef('0x14')],_0x2ffaf3[_0x5b12ef('0x2c')]),_0x2ffaf3[_0x5b12ef('0x1d')]=_[_0x5b12ef('0x26')](_0x2ffaf3[_0x5b12ef('0x1d')],[_0x5b12ef('0x20'),_0x5b12ef('0x7'),_0x5b12ef('0x35'),_0x5b12ef('0x28'),_0x5b12ef('0x21'),_0x5b12ef('0x39'),'$ne',_0x5b12ef('0x8'),_0x5b12ef('0x0'),'$between',_0x5b12ef('0x32'),_0x5b12ef('0x10'),'$notIn',_0x5b12ef('0x5b'),_0x5b12ef('0x3a'),'$iLike',_0x5b12ef('0x5a'),_0x5b12ef('0x5b'),_0x5b12ef('0x51'),_0x5b12ef('0x4c'),_0x5b12ef('0x75'),_0x5b12ef('0x4d')]),_0x30a0db[_0x5b12ef('0x3c')]=_[_0x5b12ef('0x4')](_0x2ffaf3[_0x5b12ef('0x14')],qs[_0x5b12ef('0x15')](_0x525656[_0x5b12ef('0x2c')][_0x5b12ef('0x15')])),_0x30a0db[_0x5b12ef('0x3c')]=_0x30a0db['attributes']['length']?_0x30a0db[_0x5b12ef('0x3c')]:_0x2ffaf3[_0x5b12ef('0x14')];typeof _0x525656[_0x5b12ef('0x2c')][_0x5b12ef('0x58')]==='undefined'&&(_0x30a0db['limit']=qs[_0x5b12ef('0x74')](_0x525656[_0x5b12ef('0x2c')]['limit']),_0x30a0db['offset']=qs[_0x5b12ef('0x1')](_0x525656['query'][_0x5b12ef('0x1')]));_0x30a0db[_0x5b12ef('0x22')]=qs[_0x5b12ef('0x5f')](_0x525656[_0x5b12ef('0x2c')][_0x5b12ef('0x5f')]),_0x30a0db[_0x5b12ef('0x34')]=qs[_0x5b12ef('0x1d')](_[_0x5b12ef('0x67')](_0x525656[_0x5b12ef('0x2c')],_0x2ffaf3[_0x5b12ef('0x1d')]),_0xbc3d9b);_0x525656[_0x5b12ef('0x2c')]['filter']&&(_0x30a0db[_0x5b12ef('0x34')]=_['merge'](_0x30a0db['where'],{[Op['or']]:_[_0x5b12ef('0x24')](_0xbc3d9b,function(_0xdfde64){const _0x5ac8a3=_0x5b12ef;if(_0xdfde64[_0x5ac8a3('0x65')]!=='VIRTUAL'){const _0x2f3678={};return _0x2f3678[_0xdfde64[_0x5ac8a3('0x5')]]={[Op['like']]:'%'+_0x525656['query'][_0x5ac8a3('0x79')]+'%'},_0x2f3678;}})}));_0x30a0db=_[_0x5b12ef('0x2a')]({},_0x30a0db,_0x525656[_0x5b12ef('0x54')]);const _0x2fce72={'where':_0x30a0db[_0x5b12ef('0x34')]};return db[_0x5b12ef('0x11')][_0x5b12ef('0x2d')](_0x2fce72)['then'](function(_0x4461e1){const _0x3b058e=_0x5b12ef;return _0x40dec5[_0x3b058e('0x2d')]=_0x4461e1,_0x525656['query']['includeAll']&&(_0x30a0db[_0x3b058e('0x61')]=[{'all':!![]}]),db[_0x3b058e('0x11')][_0x3b058e('0x1c')](_0x30a0db);})[_0x5b12ef('0x2e')](function(_0x84f9ab){const _0xc182bf=_0x5b12ef;return _0x40dec5[_0xc182bf('0x5d')]=_0x84f9ab,_0x40dec5;})[_0x5b12ef('0x2e')](respondWithFilteredResult(_0x383952,_0x30a0db))['catch'](handleError(_0x383952,null));},exports[_0x5c07b3('0x12')]=function(_0x48d5e5,_0x31bd26){const _0x6e16c5=_0x5c07b3;let _0x234377={'raw':!![],'where':{'id':_0x48d5e5['params']['id']}};const _0x3cec8f={};return _0x3cec8f['model']=_['keys'](db[_0x6e16c5('0x11')]['rawAttributes']),_0x3cec8f['query']=_[_0x6e16c5('0x6c')](_0x48d5e5[_0x6e16c5('0x2c')]),_0x3cec8f[_0x6e16c5('0x1d')]=_[_0x6e16c5('0x4')](_0x3cec8f[_0x6e16c5('0x14')],_0x3cec8f[_0x6e16c5('0x2c')]),_0x234377[_0x6e16c5('0x3c')]=_[_0x6e16c5('0x4')](_0x3cec8f[_0x6e16c5('0x14')],qs['fields'](_0x48d5e5['query']['fields'])),_0x234377[_0x6e16c5('0x3c')]=_0x234377[_0x6e16c5('0x3c')][_0x6e16c5('0x52')]?_0x234377[_0x6e16c5('0x3c')]:_0x3cec8f['model'],_0x48d5e5[_0x6e16c5('0x2c')][_0x6e16c5('0x63')]&&(_0x234377[_0x6e16c5('0x61')]=[{'all':!![]}]),_0x234377=_[_0x6e16c5('0x2a')]({},_0x234377,_0x48d5e5['options']),db[_0x6e16c5('0x11')][_0x6e16c5('0x18')](_0x234377)[_0x6e16c5('0x2e')](handleEntityNotFound(_0x31bd26,null))[_0x6e16c5('0x2e')](respondWithResult(_0x31bd26,null))['catch'](handleError(_0x31bd26,null));},exports['create']=function(_0x2b9d43,_0x239f73){const _0x55aa8f=_0x5c07b3;return db[_0x55aa8f('0x11')][_0x55aa8f('0x6e')](_0x2b9d43[_0x55aa8f('0x6b')],{})['then'](respondWithResult(_0x239f73,0xc9))[_0x55aa8f('0x49')](handleError(_0x239f73,null));},exports['update']=function(_0x49aa75,_0x434924){const _0x55d173=_0x5c07b3;return _0x49aa75['body']['id']&&delete _0x49aa75['body']['id'],db[_0x55d173('0x11')][_0x55d173('0x18')]({'where':{'id':_0x49aa75[_0x55d173('0x1b')]['id']}})['then'](handleEntityNotFound(_0x434924,null))[_0x55d173('0x2e')](saveUpdates(_0x49aa75[_0x55d173('0x6b')],null))[_0x55d173('0x2e')](respondWithResult(_0x434924,null))[_0x55d173('0x49')](handleError(_0x434924,null));},exports['describe']=function(_0x21e435,_0x4785ee){const _0x331541=_0x5c07b3;return db['CmHopper'][_0x331541('0x43')]()[_0x331541('0x2e')](respondWithResult(_0x4785ee,null))['catch'](handleError(_0x4785ee,null));},exports[_0x5c07b3('0x9')]=function(_0x4cc6ce,_0x1426c9){const _0x376bae=_0x5c07b3;let _0xd0caa2;return db[_0x376bae('0x11')][_0x376bae('0x18')]({'where':{'id':_0x4cc6ce[_0x376bae('0x1b')]['id']}})[_0x376bae('0x2e')](handleEntityNotFound(_0x1426c9,null))[_0x376bae('0x2e')](function(_0x4bb1a7){const _0x486b50=_0x376bae;if(_0x4bb1a7)return _0x4bb1a7[_0x486b50('0x9')]()[_0x486b50('0x2e')](function(_0x54e719){return _0x54e719;});})[_0x376bae('0x2e')](function(_0x50554b){const _0x40164d=_0x376bae;_0xd0caa2=_0x50554b;if(_0x50554b){if(_0x50554b[_0x40164d('0x76')]||_0x50554b[_0x40164d('0xe')])return db[_0x50554b[_0x40164d('0x76')]?'VoiceQueue':_0x40164d('0x62')][_0x40164d('0x18')]({'where':{'id':_0x50554b[_0x40164d('0x76')]?_0x50554b[_0x40164d('0x76')]:_0x50554b[_0x40164d('0xe')]},'attributes':['id',_0x40164d('0x5')],'raw':!![]});}})[_0x376bae('0x2e')](function(_0x4e0e73){const _0x4dda1e=_0x376bae,_0x9c90d4={};if(_0x4e0e73)return _[_0x4dda1e('0x2a')](_0x9c90d4,_[_0x4dda1e('0x16')](_0xd0caa2[_0x4dda1e('0x55')],[_0x4dda1e('0x48'),_0x4dda1e('0x29'),'id'])),_0x9c90d4[_0x4dda1e('0x6f')]=0x15,_0x9c90d4['statedesc']=_0x4dda1e('0x2f'),_0x9c90d4['campaign']=_0x4e0e73['name'],_0x9c90d4['membername']=_0x4cc6ce[_0x4dda1e('0x69')][_0x4dda1e('0x5')],_0x9c90d4[_0x4dda1e('0x6d')]=_0x4cc6ce[_0x4dda1e('0x69')]['id'],_0x9c90d4[_0x4dda1e('0x2f')]=!![],_0x9c90d4['deletedat']=moment()['format'](_0x4dda1e('0x64')),_0x9c90d4[_0x4dda1e('0x68')]=_0xd0caa2[_0x4dda1e('0xc')],_0x9c90d4[_0x4dda1e('0x77')]=_0xd0caa2[_0x4dda1e('0x76')]?_0x4dda1e('0x1f'):_0x4dda1e('0x46'),db[_0x4dda1e('0x73')][_0x4dda1e('0x18')]({'where':{'id':_0x9c90d4[_0x4dda1e('0x2')]},'attributes':['firstName',_0x4dda1e('0x72')]})[_0x4dda1e('0x2e')](function(_0x51d0bf){const _0x2d7512=_0x4dda1e;!_[_0x2d7512('0x31')](_0x1426c9)&&!_[_0x2d7512('0x31')](_0x51d0bf[_0x2d7512('0xd')])&&(_0x9c90d4[_0x2d7512('0xb')]=_0x51d0bf[_0x2d7512('0xd')],!_[_0x2d7512('0x31')](_0x51d0bf['lastName'])&&(_0x9c90d4[_0x2d7512('0xb')]+='\x20'+_0x51d0bf[_0x2d7512('0x72')]));})[_0x4dda1e('0x3e')](function(){const _0x58d0eb=_0x4dda1e;return db[_0x58d0eb('0x13')]['create'](_0x9c90d4);});})[_0x376bae('0x2e')](function(){const _0x1e1415=_0x376bae;return _0x1426c9[_0x1e1415('0x5c')](0xcc)[_0x1e1415('0x23')]();})[_0x376bae('0x49')](handleError(_0x1426c9,null));},exports[_0x5c07b3('0x6a')]=function(_0x5cd4ea,_0x3853f7){const _0x3332db=_0x5c07b3;let _0x339b33=[];return db['CmContact'][_0x3332db('0x43')]()[_0x3332db('0x2e')](function(_0x181883){const _0x4e2414=_0x3332db;return _0x339b33=_['keys'](_0x181883),_0x5cd4ea['user'][_0x4e2414('0x7a')]({'where':{'type':_0x4e2414('0x41'),'dialActive':!![],'dialMethod':'preview'},'attributes':['id',_0x4e2414('0x17')],'raw':!![]});})[_0x3332db('0x2e')](function(_0x1c3a56){const _0x12b62a=_0x3332db;if(_0x1c3a56&&_0x1c3a56[_0x12b62a('0x52')])return db[_0x12b62a('0x57')]['transaction'](function(_0x23db47){const _0x52f8e3=_0x12b62a,_0x138262={'active':![],'recallme':![],'scheduledAt':{[Op['lte']]:moment()[_0x52f8e3('0x1a')](_0x52f8e3('0x64'))},'VoiceQueueId':{[Op['in']]:_[_0x52f8e3('0x24')](_0x1c3a56,'id')},[Op['or']]:[{'UserId':null},{'UserId':_0x5cd4ea[_0x52f8e3('0x69')]['id']}]};let _0xf02796=[];return _0x5cd4ea['body']['direction']&&_0x5cd4ea[_0x52f8e3('0x6b')][_0x52f8e3('0x40')]===_0x52f8e3('0x7c')?(!_[_0x52f8e3('0x37')](_0x5cd4ea['body'][_0x52f8e3('0x38')])&&(_0x138262['id']={'$in':_0x5cd4ea[_0x52f8e3('0x6b')][_0x52f8e3('0x38')]}),_0xf02796=[[_0x52f8e3('0x47'),_0x52f8e3('0x3b')],[_0x52f8e3('0x70'),_0x1c3a56[0x0][_0x52f8e3('0x17')]===_0x52f8e3('0x3b')?_0x52f8e3('0x36'):_0x52f8e3('0x3b')],db[_0x52f8e3('0x57')][_0x52f8e3('0x66')]('COALESCE(CmHopper.UserId,\x200)\x20ASC'),['id','DESC']]):(!_['isEmpty'](_0x5cd4ea[_0x52f8e3('0x6b')][_0x52f8e3('0x38')])&&(_0x138262['id']={'$notIn':_0x5cd4ea['body']['hopperIds']}),_0xf02796=[[_0x52f8e3('0x47'),_0x52f8e3('0x36')],[_0x52f8e3('0x70'),_0x1c3a56[0x0]['dialOrderByScheduledAt']],db[_0x52f8e3('0x57')][_0x52f8e3('0x66')]('COALESCE(CmHopper.UserId,\x200)\x20DESC'),['id',_0x52f8e3('0x3b')]]),db[_0x52f8e3('0x11')][_0x52f8e3('0x18')]({'attributes':['id',_0x52f8e3('0x44')],'where':_0x138262,'order':_0xf02796,'transaction':_0x23db47,'lock':_0x23db47['LOCK'][_0x52f8e3('0xf')],'include':[{'model':db[_0x52f8e3('0x27')],'as':_0x52f8e3('0x19'),'attributes':_0x339b33,'include':[{'model':db[_0x52f8e3('0x42')],'as':_0x52f8e3('0x4a'),'attributes':['id',_0x52f8e3('0x5')]}]},{'model':db[_0x52f8e3('0x4f')],'as':_0x52f8e3('0x45'),'attributes':['id',_0x52f8e3('0x5')]},{'model':db[_0x52f8e3('0x53')],'as':_0x52f8e3('0x4e'),'attributes':['id','name','dialActive']}]})[_0x52f8e3('0x2e')](function(_0xe35cf8){const _0x13d95c=_0x52f8e3;if(_0xe35cf8)return _0xe35cf8[_0x13d95c('0x3f')]({'UserId':_0x5cd4ea['user']['id']},{'transaction':_0x23db47});});});})[_0x3332db('0x2e')](handleEntityNotFound(_0x3853f7,null))['then'](respondWithResult(_0x3853f7,null))[_0x3332db('0x49')](handleError(_0x3853f7,null));},exports[_0x5c07b3('0x6')]=function(_0x4be51a,_0x2cf69d){const _0x3e1d29=_0x5c07b3;return _0x4be51a[_0x3e1d29('0x69')]['getVoiceQueues']({'where':{'type':_0x3e1d29('0x41'),'dialActive':!![],'dialMethod':'preview'},'attributes':['id'],'raw':!![]})[_0x3e1d29('0x2e')](function(_0x376977){const _0x1c3cf3=_0x3e1d29;if(_0x376977&&_0x376977[_0x1c3cf3('0x52')])return db[_0x1c3cf3('0x11')]['count']({'where':{'active':![],'recallme':![],'scheduledAt':{[Op[_0x1c3cf3('0x3d')]]:moment()['format'](_0x1c3cf3('0x64'))},'VoiceQueueId':{[Op['in']]:_[_0x1c3cf3('0x24')](_0x376977,'id')},[Op['or']]:[{'UserId':null},{'UserId':_0x4be51a[_0x1c3cf3('0x69')]['id']}]}});return 0x0;})[_0x3e1d29('0x2e')](function(_0x715a79){const _0x5026f5=_0x3e1d29;if(!_[_0x5026f5('0x31')](_0x715a79)&&_[_0x5026f5('0x50')](_0x715a79))return _0x2cf69d[_0x5026f5('0x5c')](0xc8)[_0x5026f5('0x1e')]({'contacts':_0x715a79});else logger[_0x5026f5('0x3')](_0x5026f5('0x33'),_0x5026f5('0x6'),0x194,_0x5026f5('0x2b')),_0x2cf69d['sendStatus'](0x194);})[_0x3e1d29('0x49')](handleError(_0x2cf69d,null));}; \ No newline at end of file +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 diff --git a/server/api/cmHopper/cmHopper.model.js b/server/api/cmHopper/cmHopper.model.js index 38c9f25..ba2cc42 100644 --- a/server/api/cmHopper/cmHopper.model.js +++ b/server/api/cmHopper/cmHopper.model.js @@ -1 +1 @@ -const a138_0x36bf=['scheduledat','cm_hopper','phone','define','priority','CmHopper'];(function(_0x90bbdf,_0x36bf29){const _0x508dad=function(_0x5eb51f){while(--_0x5eb51f){_0x90bbdf['push'](_0x90bbdf['shift']());}};_0x508dad(++_0x36bf29);}(a138_0x36bf,0xfd));const a138_0x508d=function(_0x90bbdf,_0x36bf29){_0x90bbdf=_0x90bbdf-0x0;let _0x508dad=a138_0x36bf[_0x90bbdf];return _0x508dad;};'use strict';const attributes=require('./cmHopper.attributes');module['exports']=function(_0x5eb51f){const _0x359b69=a138_0x508d,_0x4dc6e1=_0x5eb51f[_0x359b69('0x2')](_0x359b69('0x4'),attributes,{'tableName':_0x359b69('0x0'),'paranoid':![],'indexes':[{'name':_0x359b69('0x5'),'fields':[_0x359b69('0x5')]},{'name':_0x359b69('0x1'),'fields':[_0x359b69('0x1')]},{'name':_0x359b69('0x3'),'fields':[_0x359b69('0x3')]}],'timestamps':!![]});return _0x4dc6e1;}; \ No newline at end of file +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 diff --git a/server/api/cmHopper/cmHopper.rpc.js b/server/api/cmHopper/cmHopper.rpc.js index 41b1b2f..0795c9c 100644 --- a/server/api/cmHopper/cmHopper.rpc.js +++ b/server/api/cmHopper/cmHopper.rpc.js @@ -1 +1 @@ -const a139_0x17f6=['map','length','CmContact','update','GetCmHopper','GetCmHopperPreview','all','includes','CountReScheduled','UPDATE','info','Agent','rpc','UpdateCmHopper','keys','MoveContactManagedDialer','DestroyCmHopper','format','include','findOne','raw','CreateCmHopper','findAll','\x20,\x201,\x20null','Contact','../../config/logger','create','../../mysqldb','attributes','message','GetContactDialer','`scheduledat`\x20>=\x20','push','catch','order','describe','stringify','name','ShowCmHopper','body','then','literal','error','model','sequelize','moment','\x22%s\x22','GetContactRecallMe','where','options','destroy','debug','lodash','CmHopper','transaction','CmHopperFinal','YYYY-MM-DD\x20HH:mm:ss','limit','voicePause','UserId','LOCK'];(function(_0x3d97f6,_0x17f63d){const _0x49aa38=function(_0x29523d){while(--_0x29523d){_0x3d97f6['push'](_0x3d97f6['shift']());}};_0x49aa38(++_0x17f63d);}(a139_0x17f6,0x15e));const a139_0x49aa=function(_0x3d97f6,_0x17f63d){_0x3d97f6=_0x3d97f6-0x0;let _0x49aa38=a139_0x17f6[_0x3d97f6];return _0x49aa38;};const _0x1392cd=a139_0x49aa;'use strict';const _=require(_0x1392cd('0x7')),util=require('util'),moment=require(_0x1392cd('0x0')),db=require(_0x1392cd('0x2b'))['db'],logger=require(_0x1392cd('0x29'))(_0x1392cd('0x1c'));exports[_0x1392cd('0x14')]=function(_0x29523d){const _0x16b000=this;return new Promise(function(_0x5f150c,_0x28768c){const _0x3428d6=a139_0x49aa;return db[_0x3428d6('0x8')][_0x3428d6('0x26')]({'raw':_0x29523d[_0x3428d6('0x4')]?_0x29523d[_0x3428d6('0x4')][_0x3428d6('0x24')]===undefined?!![]:![]:!![],'where':_0x29523d[_0x3428d6('0x4')]?_0x29523d['options'][_0x3428d6('0x3')]||null:null,'attributes':_0x29523d['options']?_0x29523d['options']['attributes']||null:null,'limit':_0x29523d[_0x3428d6('0x4')]?_0x29523d[_0x3428d6('0x4')][_0x3428d6('0xc')]||null:null,'include':_0x29523d[_0x3428d6('0x4')]?_0x29523d[_0x3428d6('0x4')][_0x3428d6('0x22')]?_['map'](_0x29523d[_0x3428d6('0x4')][_0x3428d6('0x22')],function(_0x28f8b0){const _0x31075b=_0x3428d6;return{'model':db[_0x28f8b0[_0x31075b('0x3b')]],'as':_0x28f8b0['as'],'attributes':_0x28f8b0[_0x31075b('0x2c')],'include':_0x28f8b0[_0x31075b('0x22')]?_['map'](_0x28f8b0[_0x31075b('0x22')],function(_0x1f5ad1){const _0x114c53=_0x31075b;return{'model':db[_0x1f5ad1[_0x114c53('0x3b')]],'as':_0x1f5ad1['as'],'attributes':_0x1f5ad1['attributes'],'include':_0x1f5ad1[_0x114c53('0x22')]?_[_0x114c53('0x10')](_0x1f5ad1[_0x114c53('0x22')],function(_0xc92c58){const _0x491dbd=_0x114c53;return{'model':db[_0xc92c58['model']],'as':_0xc92c58['as'],'attributes':_0xc92c58[_0x491dbd('0x2c')]};}):[]};}):[]};}):[]:[]})[_0x3428d6('0x38')](function(_0x47a664){const _0x5d2d6e=_0x3428d6;logger[_0x5d2d6e('0x1a')](_0x5d2d6e('0x14'),_0x29523d),logger[_0x5d2d6e('0x6')](_0x5d2d6e('0x14'),_0x29523d,JSON[_0x5d2d6e('0x34')](_0x47a664)),_0x5f150c(_0x47a664);})[_0x3428d6('0x31')](function(_0x3892bc){const _0x3bdeb5=_0x3428d6;logger[_0x3bdeb5('0x3a')](_0x3bdeb5('0x14'),_0x3892bc[_0x3bdeb5('0x2d')],_0x29523d),_0x28768c(_0x16b000[_0x3bdeb5('0x3a')](0x1f4,_0x3892bc[_0x3bdeb5('0x2d')]));});});},exports[_0x1392cd('0x36')]=function(_0x5cd3cf){const _0x10473f=this;return new Promise(function(_0x38e707,_0x52a009){const _0x1a6e25=a139_0x49aa;return db[_0x1a6e25('0x8')][_0x1a6e25('0x23')]({'raw':_0x5cd3cf['options']?_0x5cd3cf['options'][_0x1a6e25('0x24')]===undefined?!![]:![]:!![],'where':_0x5cd3cf['options']?_0x5cd3cf[_0x1a6e25('0x4')][_0x1a6e25('0x3')]||null:null,'attributes':_0x5cd3cf[_0x1a6e25('0x4')]?_0x5cd3cf[_0x1a6e25('0x4')][_0x1a6e25('0x2c')]||null:null,'include':_0x5cd3cf[_0x1a6e25('0x4')]?_0x5cd3cf['options'][_0x1a6e25('0x22')]?_[_0x1a6e25('0x10')](_0x5cd3cf['options'][_0x1a6e25('0x22')],function(_0x551ba6){const _0x29ffe0=_0x1a6e25;return{'model':db[_0x551ba6[_0x29ffe0('0x3b')]],'as':_0x551ba6['as'],'attributes':_0x551ba6['attributes'],'include':_0x551ba6['include']?_[_0x29ffe0('0x10')](_0x551ba6[_0x29ffe0('0x22')],function(_0x9e103e){const _0x501d0d=_0x29ffe0;return{'model':db[_0x9e103e[_0x501d0d('0x3b')]],'as':_0x9e103e['as'],'attributes':_0x9e103e['attributes'],'include':_0x9e103e[_0x501d0d('0x22')]?_[_0x501d0d('0x10')](_0x9e103e['include'],function(_0x254add){const _0x56b3dd=_0x501d0d;return{'model':db[_0x254add[_0x56b3dd('0x3b')]],'as':_0x254add['as'],'attributes':_0x254add[_0x56b3dd('0x2c')]};}):[]};}):[]};}):[]:[]})[_0x1a6e25('0x38')](function(_0x1673c8){const _0x2aab36=_0x1a6e25;logger[_0x2aab36('0x1a')](_0x2aab36('0x36'),_0x5cd3cf),logger[_0x2aab36('0x6')](_0x2aab36('0x36'),_0x5cd3cf,JSON[_0x2aab36('0x34')](_0x1673c8)),_0x38e707(_0x1673c8);})['catch'](function(_0x3e7c45){const _0x26300e=_0x1a6e25;logger[_0x26300e('0x3a')](_0x26300e('0x36'),_0x3e7c45['message'],_0x5cd3cf),_0x52a009(_0x10473f['error'](0x1f4,_0x3e7c45[_0x26300e('0x2d')]));});});},exports[_0x1392cd('0x25')]=function(_0x278be7){const _0x1237e8=this;return new Promise(function(_0x531bd3,_0x4f7028){const _0x3a55b0=a139_0x49aa;return db['CmHopper'][_0x3a55b0('0x2a')](_0x278be7[_0x3a55b0('0x37')],{'raw':_0x278be7[_0x3a55b0('0x4')]?_0x278be7[_0x3a55b0('0x4')][_0x3a55b0('0x24')]===undefined?!![]:![]:!![]})[_0x3a55b0('0x38')](function(_0x5042b0){const _0x45bca6=_0x3a55b0;logger[_0x45bca6('0x1a')]('CreateCmHopper',_0x278be7),logger[_0x45bca6('0x6')](_0x45bca6('0x25'),_0x278be7,JSON[_0x45bca6('0x34')](_0x5042b0)),_0x531bd3(_0x5042b0);})[_0x3a55b0('0x31')](function(_0x34c15b){const _0x334cac=_0x3a55b0;logger[_0x334cac('0x3a')](_0x334cac('0x25'),_0x34c15b[_0x334cac('0x2d')],_0x278be7),_0x4f7028(_0x1237e8['error'](0x1f4,_0x34c15b[_0x334cac('0x2d')]));});});},exports[_0x1392cd('0x1d')]=function(_0x33d1b6){const _0x1863f2=this;return new Promise(function(_0x42745d,_0x437c9c){const _0x13d4f7=a139_0x49aa;return db[_0x13d4f7('0x8')][_0x13d4f7('0x13')](_0x33d1b6['body'],{'raw':_0x33d1b6[_0x13d4f7('0x4')]?_0x33d1b6[_0x13d4f7('0x4')][_0x13d4f7('0x24')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x33d1b6[_0x13d4f7('0x4')]?_0x33d1b6['options'][_0x13d4f7('0x3')]||null:null,'attributes':_0x33d1b6['options']?_0x33d1b6[_0x13d4f7('0x4')][_0x13d4f7('0x2c')]||null:null,'limit':_0x33d1b6[_0x13d4f7('0x4')]?_0x33d1b6[_0x13d4f7('0x4')][_0x13d4f7('0xc')]||null:null})[_0x13d4f7('0x38')](function(_0x580c39){const _0x5cf96a=_0x13d4f7;logger['info']('UpdateCmHopper',_0x33d1b6),logger[_0x5cf96a('0x6')](_0x5cf96a('0x1d'),_0x33d1b6,JSON['stringify'](_0x580c39)),_0x42745d(_0x580c39);})[_0x13d4f7('0x31')](function(_0x160271){const _0x46118f=_0x13d4f7;logger[_0x46118f('0x3a')](_0x46118f('0x1d'),_0x160271[_0x46118f('0x2d')],_0x33d1b6),_0x437c9c(_0x1863f2[_0x46118f('0x3a')](0x1f4,_0x160271[_0x46118f('0x2d')]));});});},exports['DestroyCmHopper']=function(_0x16d4d3){const _0x1dbfff=this;return new Promise(function(_0x51e720,_0x12cd21){const _0x14f81a=a139_0x49aa;return db[_0x14f81a('0x8')][_0x14f81a('0x5')]({'where':_0x16d4d3[_0x14f81a('0x4')]?_0x16d4d3[_0x14f81a('0x4')][_0x14f81a('0x3')]||null:null})[_0x14f81a('0x38')](function(_0x38d20b){const _0x42c224=_0x14f81a;logger[_0x42c224('0x1a')](_0x42c224('0x20'),_0x16d4d3),logger['debug'](_0x42c224('0x20'),_0x16d4d3,JSON[_0x42c224('0x34')](_0x38d20b)),_0x51e720(_0x38d20b);})[_0x14f81a('0x31')](function(_0x2334ce){const _0xc31dd0=_0x14f81a;logger[_0xc31dd0('0x3a')](_0xc31dd0('0x20'),_0x2334ce[_0xc31dd0('0x2d')],_0x16d4d3),_0x12cd21(_0x1dbfff[_0xc31dd0('0x3a')](0x1f4,_0x2334ce[_0xc31dd0('0x2d')]));});});},exports['GetContactDialer']=function(_0x135910){const _0x49576f=this;return new Promise(function(_0x6a5d20,_0x289707){const _0x2b053a=a139_0x49aa;return db[_0x2b053a('0x12')][_0x2b053a('0x33')]()[_0x2b053a('0x38')](function(_0x1b4b35){const _0x4ad494=_0x2b053a;return db[_0x4ad494('0x3c')][_0x4ad494('0x9')](function(_0x46de55){const _0xec5a01=_0x4ad494;return db[_0xec5a01('0x8')][_0xec5a01('0x26')]({'where':_0x135910[_0xec5a01('0x4')]?_0x135910[_0xec5a01('0x4')][_0xec5a01('0x3')]||null:null,'attributes':_0x135910['options']?_0x135910[_0xec5a01('0x4')][_0xec5a01('0x2c')]||null:null,'limit':_0x135910[_0xec5a01('0x4')]?_0x135910['options'][_0xec5a01('0xc')]||null:null,'order':_0x135910['options']?_0x135910[_0xec5a01('0x4')][_0xec5a01('0x32')]||null:null,'transaction':_0x46de55,'lock':_0x46de55[_0xec5a01('0xf')][_0xec5a01('0x19')],'include':[{'model':db[_0xec5a01('0x12')],'as':_0xec5a01('0x28'),'attributes':_[_0xec5a01('0x1e')](_0x1b4b35)},{'model':db['User'],'as':_0xec5a01('0x1b'),'attributes':['id',_0xec5a01('0x35'),_0xec5a01('0xd')]}]})[_0xec5a01('0x38')](function(_0x17422d){const _0x87789c=_0xec5a01,_0x5bfb77=[],_0x45a16e=[];for(let _0xc5117f=0x0;_0xc5117f<_0x17422d[_0x87789c('0x11')];_0xc5117f+=0x1){!_0x45a16e[_0x87789c('0x17')](_0x17422d[_0xc5117f][_0x87789c('0xe')])&&(_0x45a16e[_0x87789c('0x30')](_0x17422d[_0xc5117f]['UserId']),_0x5bfb77[_0x87789c('0x30')](_0x17422d[_0xc5117f][_0x87789c('0x13')](_0x135910[_0x87789c('0x37')],{'transaction':_0x46de55})));}return Promise[_0x87789c('0x16')](_0x5bfb77);});})[_0x4ad494('0x38')](function(_0x12ba27){const _0x571734=_0x4ad494;logger['info'](_0x571734('0x2e'),_0x135910),logger[_0x571734('0x6')](_0x571734('0x2e'),_0x135910,JSON[_0x571734('0x34')](_0x12ba27)),_0x6a5d20(_0x12ba27);})[_0x4ad494('0x31')](function(_0x15d8fb){const _0x1f0339=_0x4ad494;logger[_0x1f0339('0x3a')](_0x1f0339('0x2e'),_0x15d8fb[_0x1f0339('0x2d')],_0x135910),_0x289707(_0x49576f[_0x1f0339('0x3a')](0x1f4,_0x15d8fb[_0x1f0339('0x2d')]));});});});},exports['MoveContactManagedDialer']=function(_0x21a741){const _0x327e9e=this;return new Promise(function(_0x61d78e,_0x4c041f){const _0x10686a=a139_0x49aa;return db['sequelize'][_0x10686a('0x9')](function(_0x5cac71){const _0x1e22c7=_0x10686a;return db[_0x1e22c7('0xa')]['create'](_0x21a741[_0x1e22c7('0x37')],{'raw':_0x21a741[_0x1e22c7('0x4')]?_0x21a741[_0x1e22c7('0x4')]['raw']===undefined?!![]:![]:!![],'transaction':_0x5cac71})[_0x1e22c7('0x38')](function(){const _0x122344=_0x1e22c7;return db['CmHopper'][_0x122344('0x5')]({'where':_0x21a741['options']?_0x21a741[_0x122344('0x4')][_0x122344('0x3')]||null:null,'transaction':_0x5cac71});});})[_0x10686a('0x38')](function(_0x3b15c9){const _0x13cc8c=_0x10686a;logger['info'](_0x13cc8c('0x1f'),_0x21a741),logger[_0x13cc8c('0x6')](_0x13cc8c('0x1f'),_0x21a741,JSON[_0x13cc8c('0x34')](_0x3b15c9)),_0x61d78e(_0x3b15c9);})[_0x10686a('0x31')](function(_0x3415a9){const _0x21c931=_0x10686a;logger[_0x21c931('0x3a')](_0x21c931('0x1f'),_0x3415a9[_0x21c931('0x2d')],_0x21a741),_0x4c041f(_0x327e9e['error'](0x1f4,_0x3415a9[_0x21c931('0x2d')]));});});},exports[_0x1392cd('0x18')]=function(_0x13bcd5){const _0x4c52e1=this;return new Promise(function(_0x2fe04d,_0x45b88a){const _0x57ea19=a139_0x49aa;return db[_0x57ea19('0x8')][_0x57ea19('0x26')]({'raw':_0x13bcd5[_0x57ea19('0x4')]?_0x13bcd5[_0x57ea19('0x4')][_0x57ea19('0x24')]===undefined?!![]:![]:!![],'where':_0x13bcd5[_0x57ea19('0x4')]?_0x13bcd5[_0x57ea19('0x4')][_0x57ea19('0x3')]||null:null,'attributes':[[db[_0x57ea19('0x3c')]['fn']('COUNT',db[_0x57ea19('0x3c')]['fn']('IF',db['sequelize'][_0x57ea19('0x39')](_0x57ea19('0x2f')+util[_0x57ea19('0x21')](_0x57ea19('0x1'),moment()[_0x57ea19('0x21')](_0x57ea19('0xb')))+_0x57ea19('0x27')))),'contactsRescheduled']]})[_0x57ea19('0x38')](function(_0x2e3d5){const _0x4caa69=_0x57ea19;logger[_0x4caa69('0x1a')](_0x4caa69('0x18'),_0x13bcd5),logger[_0x4caa69('0x6')]('CountReScheduled',_0x13bcd5,JSON[_0x4caa69('0x34')](_0x2e3d5)),_0x2fe04d(_0x2e3d5);})[_0x57ea19('0x31')](function(_0x1212e9){const _0x215ee2=_0x57ea19;logger[_0x215ee2('0x3a')](_0x215ee2('0x18'),_0x1212e9[_0x215ee2('0x2d')],_0x13bcd5),_0x45b88a(_0x4c52e1['error'](0x1f4,_0x1212e9['message']));});});},exports[_0x1392cd('0x2')]=function(_0x4dd000){const _0x28298=this;return new Promise(function(_0x3374fa,_0x44e311){const _0x58486e=a139_0x49aa;return db[_0x58486e('0x12')][_0x58486e('0x33')]()[_0x58486e('0x38')](function(){const _0x303e77=_0x58486e;return db[_0x303e77('0x3c')]['transaction'](function(_0x1cc7b3){const _0x3b197a=_0x303e77;return db[_0x3b197a('0x8')][_0x3b197a('0x26')]({'where':_0x4dd000[_0x3b197a('0x4')]?_0x4dd000[_0x3b197a('0x4')][_0x3b197a('0x3')]||null:null,'attributes':_0x4dd000[_0x3b197a('0x4')]?_0x4dd000[_0x3b197a('0x4')]['attributes']||null:null,'limit':0x1,'order':_0x4dd000[_0x3b197a('0x4')]?_0x4dd000[_0x3b197a('0x4')][_0x3b197a('0x32')]||null:null,'group':db[_0x3b197a('0x8')][_0x3b197a('0xe')],'transaction':_0x1cc7b3,'lock':_0x1cc7b3[_0x3b197a('0xf')][_0x3b197a('0x19')],'include':_0x4dd000[_0x3b197a('0x4')]?_0x4dd000[_0x3b197a('0x4')][_0x3b197a('0x22')]?_[_0x3b197a('0x10')](_0x4dd000[_0x3b197a('0x4')]['include'],function(_0x4c98c5){const _0x4dcba7=_0x3b197a;return{'model':db[_0x4c98c5['model']],'as':_0x4c98c5['as'],'attributes':_0x4c98c5['attributes'],'include':_0x4c98c5['include']?_[_0x4dcba7('0x10')](_0x4c98c5[_0x4dcba7('0x22')],function(_0x5a0add){const _0x32c8fa=_0x4dcba7;return{'model':db[_0x5a0add[_0x32c8fa('0x3b')]],'as':_0x5a0add['as'],'attributes':_0x5a0add['attributes'],'include':_0x5a0add[_0x32c8fa('0x22')]?_[_0x32c8fa('0x10')](_0x5a0add[_0x32c8fa('0x22')],function(_0x1b2dc9){const _0x1f6fa6=_0x32c8fa;return{'model':db[_0x1b2dc9[_0x1f6fa6('0x3b')]],'as':_0x1b2dc9['as'],'attributes':_0x1b2dc9[_0x1f6fa6('0x2c')]};}):[]};}):[]};}):[]:[]})[_0x3b197a('0x38')](function(_0x5df58e){const _0x5f2924=_0x3b197a,_0x3a88cb=[];for(let _0x211736=0x0;_0x211736<_0x5df58e['length'];_0x211736+=0x1){_0x3a88cb[_0x5f2924('0x30')](_0x5df58e[_0x211736]['update'](_0x4dd000['body'],{'transaction':_0x1cc7b3}));}return Promise[_0x5f2924('0x16')](_0x3a88cb);});})[_0x303e77('0x38')](function(_0x3b86e7){const _0x33ca15=_0x303e77;logger['info'](_0x33ca15('0x2'),_0x4dd000),logger['debug'](_0x33ca15('0x2'),_0x4dd000,JSON[_0x33ca15('0x34')](_0x3b86e7)),_0x3374fa(_0x3b86e7);})['catch'](function(_0x3cc78b){const _0x1bbc32=_0x303e77;logger[_0x1bbc32('0x3a')]('GetContactRecallMe',_0x3cc78b['message'],_0x4dd000),_0x44e311(_0x28298[_0x1bbc32('0x3a')](0x1f4,_0x3cc78b[_0x1bbc32('0x2d')]));});});});},exports[_0x1392cd('0x15')]=function(_0x9e45b){const _0x55d0d4=this;return new Promise(function(_0x1fc72b,_0x14fc30){const _0x3f24f8=a139_0x49aa;db[_0x3f24f8('0x12')][_0x3f24f8('0x33')]()['then'](function(_0x46e320){const _0x56e3bc=_0x3f24f8;return db[_0x56e3bc('0x8')][_0x56e3bc('0x26')]({'raw':_0x9e45b['options']?_0x9e45b[_0x56e3bc('0x4')][_0x56e3bc('0x24')]===undefined?!![]:![]:!![],'where':_0x9e45b['options']?_0x9e45b['options']['where']||null:null,'attributes':_0x9e45b['options']?_0x9e45b[_0x56e3bc('0x4')][_0x56e3bc('0x2c')]||null:null,'limit':_0x9e45b[_0x56e3bc('0x4')]?_0x9e45b[_0x56e3bc('0x4')][_0x56e3bc('0xc')]||null:null,'include':_0x9e45b[_0x56e3bc('0x4')]?_0x9e45b['options']['include']?_[_0x56e3bc('0x10')](_0x9e45b[_0x56e3bc('0x4')][_0x56e3bc('0x22')],function(_0x4e6a30){const _0x3e9683=_0x56e3bc;return{'model':db[_0x4e6a30[_0x3e9683('0x3b')]],'as':_0x4e6a30['as'],'attributes':_0x4e6a30['as']==='Contact'?_['keys'](_0x46e320):_0x4e6a30['attributes'],'include':_0x4e6a30[_0x3e9683('0x22')]?_[_0x3e9683('0x10')](_0x4e6a30[_0x3e9683('0x22')],function(_0x3f14d0){const _0xa18053=_0x3e9683;return{'model':db[_0x3f14d0['model']],'as':_0x3f14d0['as'],'attributes':_0x3f14d0[_0xa18053('0x2c')],'include':_0x3f14d0[_0xa18053('0x22')]?_[_0xa18053('0x10')](_0x3f14d0['include'],function(_0x10751a){const _0x1302d0=_0xa18053;return{'model':db[_0x10751a[_0x1302d0('0x3b')]],'as':_0x10751a['as'],'attributes':_0x10751a[_0x1302d0('0x2c')]};}):[]};}):[]};}):[]:[]})[_0x56e3bc('0x38')](function(_0xdb9370){const _0xf96de1=_0x56e3bc;logger['info'](_0xf96de1('0x14'),_0x9e45b),logger[_0xf96de1('0x6')](_0xf96de1('0x14'),_0x9e45b,JSON['stringify'](_0xdb9370)),_0x1fc72b(_0xdb9370);})['catch'](function(_0x162399){const _0x28db19=_0x56e3bc;logger[_0x28db19('0x3a')](_0x28db19('0x14'),_0x162399[_0x28db19('0x2d')],_0x9e45b),_0x14fc30(_0x55d0d4[_0x28db19('0x3a')](0x1f4,_0x162399['message']));});});});}; \ No newline at end of file +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 diff --git a/server/api/cmHopper/index.js b/server/api/cmHopper/index.js index 29966d5..2e495f1 100644 --- a/server/api/cmHopper/index.js +++ b/server/api/cmHopper/index.js @@ -1 +1 @@ -const a140_0x27fc=['destroy','index','put','describe','show','/preview','/:id','isAuthenticated','/opencontacts','/describe','get','../../components/auth/service','post','update','./cmHopper.controller','getPreview','delete','create'];(function(_0x2c4608,_0x27fc84){const _0x58a17d=function(_0x4ae748){while(--_0x4ae748){_0x2c4608['push'](_0x2c4608['shift']());}};_0x58a17d(++_0x27fc84);}(a140_0x27fc,0x1ec));const a140_0x58a1=function(_0x2c4608,_0x27fc84){_0x2c4608=_0x2c4608-0x0;let _0x58a17d=a140_0x27fc[_0x2c4608];return _0x58a17d;};const _0x15cd74=a140_0x58a1;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x15cd74('0x5')),controller=require(_0x15cd74('0x8'));router['get']('/',auth[_0x15cd74('0x1')](),controller[_0x15cd74('0xd')]),router['get'](_0x15cd74('0x3'),auth['isAuthenticated'](),controller[_0x15cd74('0xf')]),router[_0x15cd74('0x4')](_0x15cd74('0x2'),auth[_0x15cd74('0x1')](),controller['getOpenContacts']),router[_0x15cd74('0x4')](_0x15cd74('0x0'),auth[_0x15cd74('0x1')](),controller[_0x15cd74('0x10')]),router[_0x15cd74('0x6')]('/',auth[_0x15cd74('0x1')](),controller[_0x15cd74('0xb')]),router['post'](_0x15cd74('0x11'),auth[_0x15cd74('0x1')](),controller[_0x15cd74('0x9')]),router[_0x15cd74('0xe')]('/:id',auth[_0x15cd74('0x1')](),controller[_0x15cd74('0x7')]),router[_0x15cd74('0xa')](_0x15cd74('0x0'),auth[_0x15cd74('0x1')](),controller[_0x15cd74('0xc')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/cmHopperBlack/cmHopperBlack.attributes.js b/server/api/cmHopperBlack/cmHopperBlack.attributes.js index 08fd261..7ac1d9b 100644 --- a/server/api/cmHopperBlack/cmHopperBlack.attributes.js +++ b/server/api/cmHopperBlack/cmHopperBlack.attributes.js @@ -1 +1 @@ -const a141_0x3c8d=['STRING','INTEGER','contactListQueue','sequelize','exports'];(function(_0xefb0f3,_0x3c8dda){const _0x27126a=function(_0xf1dee7){while(--_0xf1dee7){_0xefb0f3['push'](_0xefb0f3['shift']());}};_0x27126a(++_0x3c8dda);}(a141_0x3c8d,0x6e));const a141_0x2712=function(_0xefb0f3,_0x3c8dda){_0xefb0f3=_0xefb0f3-0x0;let _0x27126a=a141_0x3c8d[_0xefb0f3];return _0x27126a;};const _0x35c923=a141_0x2712;'use strict';const Sequelize=require(_0x35c923('0x3'));module[_0x35c923('0x4')]={'phone':{'type':Sequelize[_0x35c923('0x0')],'allowNull':![]},'ContactId':{'type':Sequelize[_0x35c923('0x1')],'unique':_0x35c923('0x2')},'ListId':{'type':Sequelize[_0x35c923('0x1')],'unique':_0x35c923('0x2')},'VoiceQueueId':{'type':Sequelize[_0x35c923('0x1')],'unique':_0x35c923('0x2')}}; \ No newline at end of file +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 diff --git a/server/api/cmHopperBlack/cmHopperBlack.controller.js b/server/api/cmHopperBlack/cmHopperBlack.controller.js index eae8f2d..50b1fc6 100644 --- a/server/api/cmHopperBlack/cmHopperBlack.controller.js +++ b/server/api/cmHopperBlack/cmHopperBlack.controller.js @@ -1 +1 @@ -const a142_0x5d32=['pick','includeAll','CmHopperBlack','sort','offset','name','filters','attributes','then','merge','where','intersection','keys','count','length','query','findOne','options','type','api','rawAttributes','catch','limit','update','status','fields','rows','json','map','destroy','send','../../config/logger','../../mysqldb','filter','params','like','stack','include','../../components/parsers/qs','key','show','VIRTUAL','error','set','order','body','model'];(function(_0x20fbb0,_0x5d326d){const _0x3eda9c=function(_0x1087a7){while(--_0x1087a7){_0x20fbb0['push'](_0x20fbb0['shift']());}};_0x3eda9c(++_0x5d326d);}(a142_0x5d32,0x1ed));const a142_0x3eda=function(_0x20fbb0,_0x5d326d){_0x20fbb0=_0x20fbb0-0x0;let _0x3eda9c=a142_0x5d32[_0x20fbb0];return _0x3eda9c;};const _0x1b3952=a142_0x3eda;'use strict';const _=require('lodash'),qs=require(_0x1b3952('0xf')),logger=require(_0x1b3952('0x8'))(_0x1b3952('0x2b')),db=require(_0x1b3952('0x9'))['db'],{Op}=require('sequelize');function respondWithResult(_0x1087a7,_0x5bea13){return _0x5bea13=_0x5bea13||0xc8,function(_0x2739ff){const _0x3bb113=a142_0x3eda;if(_0x2739ff)return _0x1087a7[_0x3bb113('0x1')](_0x5bea13)[_0x3bb113('0x4')](_0x2739ff);};}function respondWithFilteredResult(_0x19d821,_0x20b171){return function(_0x45fba0){const _0x206f72=a142_0x3eda;if(_0x45fba0){const _0x1942b0=_0x45fba0[_0x206f72('0x25')],_0x46bfe0=_0x20b171['offset'];let _0xd91c1d=_0x20b171[_0x206f72('0x1c')]+_0x20b171[_0x206f72('0x2e')],_0x505ad8;return _0xd91c1d>=_0x1942b0?(_0xd91c1d=_0x1942b0,_0x505ad8=0xc8):_0x505ad8=0xce,_0x19d821[_0x206f72('0x1')](_0x505ad8),_0x19d821[_0x206f72('0x14')]('Content-Range',_0x46bfe0+'-'+_0xd91c1d+'/'+_0x1942b0)[_0x206f72('0x4')](_0x45fba0);}return null;};}function saveUpdates(_0xb04db6){return function(_0x466012){const _0x23a85f=a142_0x3eda;if(_0x466012)return _0x466012[_0x23a85f('0x0')](_0xb04db6)[_0x23a85f('0x20')](function(_0xa14dd2){return _0xa14dd2;});return null;};}function removeEntity(_0x3065a0){return function(_0x34a6f5){const _0x1194c5=a142_0x3eda;if(_0x34a6f5)return _0x34a6f5[_0x1194c5('0x6')]()[_0x1194c5('0x20')](function(){const _0xb80412=_0x1194c5;_0x3065a0[_0xb80412('0x1')](0xcc)['end']();});};}function handleEntityNotFound(_0xe7180e){return function(_0x180cdb){return!_0x180cdb&&_0xe7180e['sendStatus'](0x194),_0x180cdb;};}function handleError(_0x5e7a99,_0x3b78bc){return _0x3b78bc=_0x3b78bc||0x1f4,function(_0x483a1e){const _0x5eca4a=a142_0x3eda;logger[_0x5eca4a('0x13')](_0x483a1e[_0x5eca4a('0xd')]),_0x483a1e['name']&&delete _0x483a1e[_0x5eca4a('0x1d')],_0x5e7a99[_0x5eca4a('0x1')](_0x3b78bc)[_0x5eca4a('0x7')](_0x483a1e);};}exports['index']=function(_0x4ccc22,_0x1e2abe){const _0x5f1280=_0x1b3952;let _0x5ef775={};const _0x422305={},_0x96480e={'count':0x0,'rows':[]},_0x50c99d=_[_0x5f1280('0x5')](db[_0x5f1280('0x1a')][_0x5f1280('0x2c')],function(_0x378e82){const _0x462620=_0x5f1280;return{'name':_0x378e82['fieldName'],'type':_0x378e82[_0x462620('0x2a')][_0x462620('0x10')]};});_0x422305[_0x5f1280('0x17')]=_[_0x5f1280('0x5')](_0x50c99d,'name'),_0x422305[_0x5f1280('0x27')]=_[_0x5f1280('0x24')](_0x4ccc22[_0x5f1280('0x27')]),_0x422305[_0x5f1280('0x1e')]=_[_0x5f1280('0x23')](_0x422305[_0x5f1280('0x17')],_0x422305[_0x5f1280('0x27')]),_0x5ef775[_0x5f1280('0x1f')]=_[_0x5f1280('0x23')](_0x422305[_0x5f1280('0x17')],qs[_0x5f1280('0x2')](_0x4ccc22[_0x5f1280('0x27')][_0x5f1280('0x2')])),_0x5ef775[_0x5f1280('0x1f')]=_0x5ef775[_0x5f1280('0x1f')][_0x5f1280('0x26')]?_0x5ef775['attributes']:_0x422305[_0x5f1280('0x17')];typeof _0x4ccc22[_0x5f1280('0x27')]['nolimit']==='undefined'&&(_0x5ef775['limit']=qs['limit'](_0x4ccc22['query'][_0x5f1280('0x2e')]),_0x5ef775[_0x5f1280('0x1c')]=qs[_0x5f1280('0x1c')](_0x4ccc22['query'][_0x5f1280('0x1c')]));_0x5ef775[_0x5f1280('0x15')]=qs[_0x5f1280('0x1b')](_0x4ccc22[_0x5f1280('0x27')]['sort']),_0x5ef775[_0x5f1280('0x22')]=qs[_0x5f1280('0x1e')](_[_0x5f1280('0x18')](_0x4ccc22[_0x5f1280('0x27')],_0x422305[_0x5f1280('0x1e')]),_0x50c99d);_0x4ccc22[_0x5f1280('0x27')][_0x5f1280('0xa')]&&(_0x5ef775[_0x5f1280('0x22')]=_[_0x5f1280('0x21')](_0x5ef775[_0x5f1280('0x22')],{[Op['or']]:_['map'](_0x50c99d,function(_0x350645){const _0xa71f6f=_0x5f1280;if(_0x350645[_0xa71f6f('0x2a')]!==_0xa71f6f('0x12')){const _0x378759={};return _0x378759[_0x350645[_0xa71f6f('0x1d')]]={[Op[_0xa71f6f('0xc')]]:'%'+_0x4ccc22[_0xa71f6f('0x27')][_0xa71f6f('0xa')]+'%'},_0x378759;}})}));_0x5ef775=_['merge']({},_0x5ef775,_0x4ccc22[_0x5f1280('0x29')]);const _0x30ba8c={'where':_0x5ef775['where']};return db['CmHopperBlack'][_0x5f1280('0x25')](_0x30ba8c)[_0x5f1280('0x20')](function(_0x515c0d){const _0x412b48=_0x5f1280;return _0x96480e[_0x412b48('0x25')]=_0x515c0d,_0x4ccc22[_0x412b48('0x27')][_0x412b48('0x19')]&&(_0x5ef775[_0x412b48('0xe')]=[{'all':!![]}]),db['CmHopperBlack']['findAll'](_0x5ef775);})[_0x5f1280('0x20')](function(_0x32ca97){const _0x1bae36=_0x5f1280;return _0x96480e[_0x1bae36('0x3')]=_0x32ca97,_0x96480e;})[_0x5f1280('0x20')](respondWithFilteredResult(_0x1e2abe,_0x5ef775))[_0x5f1280('0x2d')](handleError(_0x1e2abe,null));},exports[_0x1b3952('0x11')]=function(_0x3f69c4,_0x204e8a){const _0x57657a=_0x1b3952;let _0x41ce44={'raw':!![],'where':{'id':_0x3f69c4[_0x57657a('0xb')]['id']}};const _0x27d105={};return _0x27d105['model']=_[_0x57657a('0x24')](db[_0x57657a('0x1a')][_0x57657a('0x2c')]),_0x27d105[_0x57657a('0x27')]=_['keys'](_0x3f69c4[_0x57657a('0x27')]),_0x27d105[_0x57657a('0x1e')]=_[_0x57657a('0x23')](_0x27d105[_0x57657a('0x17')],_0x27d105[_0x57657a('0x27')]),_0x41ce44[_0x57657a('0x1f')]=_['intersection'](_0x27d105[_0x57657a('0x17')],qs[_0x57657a('0x2')](_0x3f69c4[_0x57657a('0x27')][_0x57657a('0x2')])),_0x41ce44['attributes']=_0x41ce44['attributes'][_0x57657a('0x26')]?_0x41ce44[_0x57657a('0x1f')]:_0x27d105['model'],_0x3f69c4[_0x57657a('0x27')]['includeAll']&&(_0x41ce44['include']=[{'all':!![]}]),_0x41ce44=_[_0x57657a('0x21')]({},_0x41ce44,_0x3f69c4[_0x57657a('0x29')]),db[_0x57657a('0x1a')][_0x57657a('0x28')](_0x41ce44)[_0x57657a('0x20')](handleEntityNotFound(_0x204e8a,null))['then'](respondWithResult(_0x204e8a,null))[_0x57657a('0x2d')](handleError(_0x204e8a,null));},exports[_0x1b3952('0x0')]=function(_0x40f67b,_0xb48517){const _0x631650=_0x1b3952;return _0x40f67b[_0x631650('0x16')]['id']&&delete _0x40f67b['body']['id'],db[_0x631650('0x1a')][_0x631650('0x28')]({'where':{'id':_0x40f67b[_0x631650('0xb')]['id']}})['then'](handleEntityNotFound(_0xb48517,null))['then'](saveUpdates(_0x40f67b[_0x631650('0x16')],null))[_0x631650('0x20')](respondWithResult(_0xb48517,null))[_0x631650('0x2d')](handleError(_0xb48517,null));},exports[_0x1b3952('0x6')]=function(_0x1b60b0,_0xdb410a){const _0x5dd825=_0x1b3952;return db[_0x5dd825('0x1a')][_0x5dd825('0x28')]({'where':{'id':_0x1b60b0[_0x5dd825('0xb')]['id']}})[_0x5dd825('0x20')](handleEntityNotFound(_0xdb410a,null))[_0x5dd825('0x20')](removeEntity(_0xdb410a,null))[_0x5dd825('0x2d')](handleError(_0xdb410a,null));},exports['describe']=function(_0x3950d5,_0x4e2af2){const _0x3a7a23=_0x1b3952;return db['CmHopperBlack']['describe']()['then'](respondWithResult(_0x4e2af2,null))[_0x3a7a23('0x2d')](handleError(_0x4e2af2,null));}; \ No newline at end of file +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 diff --git a/server/api/cmHopperBlack/cmHopperBlack.model.js b/server/api/cmHopperBlack/cmHopperBlack.model.js index 5f7bd9e..0f5e30f 100644 --- a/server/api/cmHopperBlack/cmHopperBlack.model.js +++ b/server/api/cmHopperBlack/cmHopperBlack.model.js @@ -1 +1 @@ -const a143_0x10fe=['exports','./cmHopperBlack.attributes','CmHopperBlack','cm_hopper_black','define'];(function(_0x4dfb92,_0x10fe3b){const _0x5110dc=function(_0x338c08){while(--_0x338c08){_0x4dfb92['push'](_0x4dfb92['shift']());}};_0x5110dc(++_0x10fe3b);}(a143_0x10fe,0xb6));const a143_0x5110=function(_0x4dfb92,_0x10fe3b){_0x4dfb92=_0x4dfb92-0x0;let _0x5110dc=a143_0x10fe[_0x4dfb92];return _0x5110dc;};const _0x185f6c=a143_0x5110;'use strict';const attributes=require(_0x185f6c('0x4'));module[_0x185f6c('0x3')]=function(_0x338c08){const _0x4eb76c=_0x185f6c,_0x8d5045=_0x338c08[_0x4eb76c('0x2')](_0x4eb76c('0x0'),attributes,{'tableName':_0x4eb76c('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x8d5045;}; \ No newline at end of file +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 diff --git a/server/api/cmHopperBlack/cmHopperBlack.rpc.js b/server/api/cmHopperBlack/cmHopperBlack.rpc.js index 5f7c585..f4884ca 100644 --- a/server/api/cmHopperBlack/cmHopperBlack.rpc.js +++ b/server/api/cmHopperBlack/cmHopperBlack.rpc.js @@ -1 +1 @@ -const a144_0x4358=['raw','options','limit','message','../../mysqldb','include','UpdateCmHopperBlack','lodash','map','info','body','stringify','CmHopperBlack','catch','GetCmHopperBlack','attributes','error','model','rpc','DestroyCmHopperBlack','update','debug','where','then'];(function(_0x2c2e29,_0x435854){const _0x43845a=function(_0x30c44d){while(--_0x30c44d){_0x2c2e29['push'](_0x2c2e29['shift']());}};_0x43845a(++_0x435854);}(a144_0x4358,0x162));const a144_0x4384=function(_0x2c2e29,_0x435854){_0x2c2e29=_0x2c2e29-0x0;let _0x43845a=a144_0x4358[_0x2c2e29];return _0x43845a;};const _0x33fc71=a144_0x4384;'use strict';const _=require(_0x33fc71('0xd')),db=require(_0x33fc71('0xa'))['db'],logger=require('../../config/logger')(_0x33fc71('0x0'));exports[_0x33fc71('0x14')]=function(_0x30c44d){const _0x408f0e=this;return new Promise(function(_0x2904cb,_0x1c239c){const _0x255b39=a144_0x4384;return db[_0x255b39('0x12')]['findAll']({'raw':_0x30c44d[_0x255b39('0x7')]?_0x30c44d['options'][_0x255b39('0x6')]===undefined?!![]:![]:!![],'where':_0x30c44d['options']?_0x30c44d[_0x255b39('0x7')][_0x255b39('0x4')]||null:null,'attributes':_0x30c44d[_0x255b39('0x7')]?_0x30c44d[_0x255b39('0x7')][_0x255b39('0x15')]||null:null,'limit':_0x30c44d[_0x255b39('0x7')]?_0x30c44d[_0x255b39('0x7')][_0x255b39('0x8')]||null:null,'include':_0x30c44d[_0x255b39('0x7')]?_0x30c44d['options'][_0x255b39('0xb')]?_[_0x255b39('0xe')](_0x30c44d[_0x255b39('0x7')]['include'],function(_0xaff1ad){const _0x18dd34=_0x255b39;return{'model':db[_0xaff1ad['model']],'as':_0xaff1ad['as'],'attributes':_0xaff1ad['attributes'],'include':_0xaff1ad[_0x18dd34('0xb')]?_[_0x18dd34('0xe')](_0xaff1ad[_0x18dd34('0xb')],function(_0x442cb8){const _0x2d7852=_0x18dd34;return{'model':db[_0x442cb8[_0x2d7852('0x17')]],'as':_0x442cb8['as'],'attributes':_0x442cb8[_0x2d7852('0x15')],'include':_0x442cb8[_0x2d7852('0xb')]?_[_0x2d7852('0xe')](_0x442cb8['include'],function(_0x1b855c){const _0x5347cb=_0x2d7852;return{'model':db[_0x1b855c[_0x5347cb('0x17')]],'as':_0x1b855c['as'],'attributes':_0x1b855c['attributes']};}):[]};}):[]};}):[]:[]})[_0x255b39('0x5')](function(_0x3ecf28){const _0x182c83=_0x255b39;logger['info']('GetCmHopperBlack',_0x30c44d),logger['debug'](_0x182c83('0x14'),_0x30c44d,JSON[_0x182c83('0x11')](_0x3ecf28)),_0x2904cb(_0x3ecf28);})[_0x255b39('0x13')](function(_0x2ea6dd){const _0x3d2cd2=_0x255b39;logger[_0x3d2cd2('0x16')](_0x3d2cd2('0x14'),_0x2ea6dd['message'],_0x30c44d),_0x1c239c(_0x408f0e[_0x3d2cd2('0x16')](0x1f4,_0x2ea6dd['message']));});});},exports[_0x33fc71('0xc')]=function(_0x2c3c7a){const _0x456f08=this;return new Promise(function(_0x2d48bb,_0xf06002){const _0x2fd7fe=a144_0x4384;return db[_0x2fd7fe('0x12')][_0x2fd7fe('0x2')](_0x2c3c7a[_0x2fd7fe('0x10')],{'raw':_0x2c3c7a[_0x2fd7fe('0x7')]?_0x2c3c7a[_0x2fd7fe('0x7')][_0x2fd7fe('0x6')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2c3c7a[_0x2fd7fe('0x7')]?_0x2c3c7a[_0x2fd7fe('0x7')][_0x2fd7fe('0x4')]||null:null,'attributes':_0x2c3c7a[_0x2fd7fe('0x7')]?_0x2c3c7a[_0x2fd7fe('0x7')][_0x2fd7fe('0x15')]||null:null,'limit':_0x2c3c7a[_0x2fd7fe('0x7')]?_0x2c3c7a[_0x2fd7fe('0x7')][_0x2fd7fe('0x8')]||null:null})[_0x2fd7fe('0x5')](function(_0x521db6){const _0x5515f7=_0x2fd7fe;logger['info'](_0x5515f7('0xc'),_0x2c3c7a),logger[_0x5515f7('0x3')](_0x5515f7('0xc'),_0x2c3c7a,JSON[_0x5515f7('0x11')](_0x521db6)),_0x2d48bb(_0x521db6);})[_0x2fd7fe('0x13')](function(_0x577b18){const _0x4817a9=_0x2fd7fe;logger[_0x4817a9('0x16')]('UpdateCmHopperBlack',_0x577b18[_0x4817a9('0x9')],_0x2c3c7a),_0xf06002(_0x456f08[_0x4817a9('0x16')](0x1f4,_0x577b18[_0x4817a9('0x9')]));});});},exports[_0x33fc71('0x1')]=function(_0x17cdd7){const _0x32ceec=this;return new Promise(function(_0x1e73ac,_0x5f59f3){const _0x1a2fce=a144_0x4384;return db[_0x1a2fce('0x12')]['destroy']({'where':_0x17cdd7[_0x1a2fce('0x7')]?_0x17cdd7[_0x1a2fce('0x7')][_0x1a2fce('0x4')]||null:null})[_0x1a2fce('0x5')](function(_0x6a738c){const _0x57d04e=_0x1a2fce;logger[_0x57d04e('0xf')](_0x57d04e('0x1'),_0x17cdd7),logger[_0x57d04e('0x3')](_0x57d04e('0x1'),_0x17cdd7,JSON['stringify'](_0x6a738c)),_0x1e73ac(_0x6a738c);})['catch'](function(_0x19932c){const _0x331901=_0x1a2fce;logger[_0x331901('0x16')]('DestroyCmHopperBlack',_0x19932c['message'],_0x17cdd7),_0x5f59f3(_0x32ceec[_0x331901('0x16')](0x1f4,_0x19932c[_0x331901('0x9')]));});});}; \ No newline at end of file +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 diff --git a/server/api/cmHopperBlack/index.js b/server/api/cmHopperBlack/index.js index 1bbe93d..51911b3 100644 --- a/server/api/cmHopperBlack/index.js +++ b/server/api/cmHopperBlack/index.js @@ -1 +1 @@ -const a145_0x5834=['show','exports','isAuthenticated','/:id','Router','express','index','./cmHopperBlack.controller','../../components/auth/service','destroy','put','describe','/describe','delete','get'];(function(_0x42ce56,_0x58341){const _0x3a6b35=function(_0x38a33c){while(--_0x38a33c){_0x42ce56['push'](_0x42ce56['shift']());}};_0x3a6b35(++_0x58341);}(a145_0x5834,0x7d));const a145_0x3a6b=function(_0x42ce56,_0x58341){_0x42ce56=_0x42ce56-0x0;let _0x3a6b35=a145_0x5834[_0x42ce56];return _0x3a6b35;};const _0x39dd43=a145_0x3a6b;'use strict';const express=require(_0x39dd43('0x0')),router=express[_0x39dd43('0xe')](),auth=require(_0x39dd43('0x3')),controller=require(_0x39dd43('0x2'));router[_0x39dd43('0x9')]('/',auth[_0x39dd43('0xc')](),controller[_0x39dd43('0x1')]),router[_0x39dd43('0x9')](_0x39dd43('0x7'),auth[_0x39dd43('0xc')](),controller[_0x39dd43('0x6')]),router[_0x39dd43('0x9')](_0x39dd43('0xd'),auth[_0x39dd43('0xc')](),controller[_0x39dd43('0xa')]),router[_0x39dd43('0x5')](_0x39dd43('0xd'),auth[_0x39dd43('0xc')](),controller['update']),router[_0x39dd43('0x8')](_0x39dd43('0xd'),auth['isAuthenticated'](),controller[_0x39dd43('0x4')]),module[_0x39dd43('0xb')]=router; \ No newline at end of file +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 diff --git a/server/api/cmHopperFinal/cmHopperFinal.attributes.js b/server/api/cmHopperFinal/cmHopperFinal.attributes.js index 34975d5..af212c1 100644 --- a/server/api/cmHopperFinal/cmHopperFinal.attributes.js +++ b/server/api/cmHopperFinal/cmHopperFinal.attributes.js @@ -1 +1 @@ -const a146_0x1c88=['sequelize','followuptime','DATE','dispositionat','setDataValue','STRING','moment','seconds','exports','INTEGER','diff','BOOLEAN'];(function(_0x4fee34,_0x1c88d5){const _0x4da17a=function(_0x1d5121){while(--_0x1d5121){_0x4fee34['push'](_0x4fee34['shift']());}};_0x4da17a(++_0x1c88d5);}(a146_0x1c88,0xf3));const a146_0x4da1=function(_0x4fee34,_0x1c88d5){_0x4fee34=_0x4fee34-0x0;let _0x4da17a=a146_0x1c88[_0x4fee34];return _0x4da17a;};const _0x33b389=a146_0x4da1;'use strict';const Sequelize=require(_0x33b389('0x9')),moment=require(_0x33b389('0x3'));module[_0x33b389('0x5')]={'state':{'type':Sequelize['INTEGER'](0x2)},'statedesc':{'type':Sequelize['STRING']},'scheduledat':{'type':Sequelize['DATE']},'countbusyretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countcongestionretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countnoanswerretry':{'type':Sequelize[_0x33b389('0x6')],'defaultValue':0x0},'countglobal':{'type':Sequelize[_0x33b389('0x6')],'defaultValue':0x0},'uniqueid':{'type':Sequelize[_0x33b389('0x2')]},'originatecalleridnum':{'type':Sequelize[_0x33b389('0x2')]},'originatecalleridname':{'type':Sequelize[_0x33b389('0x2')]},'calleridnum':{'type':Sequelize['STRING']},'calleridname':{'type':Sequelize[_0x33b389('0x2')]},'starttime':{'type':Sequelize[_0x33b389('0xb')]},'responsetime':{'type':Sequelize[_0x33b389('0xb')]},'answertime':{'type':Sequelize[_0x33b389('0xb')]},'droptime':{'type':Sequelize[_0x33b389('0xb')]},'endtime':{'type':Sequelize[_0x33b389('0xb')]},'ringtime':{'type':Sequelize[_0x33b389('0x6')],'defaultValue':0x0},'holdtime':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'talktime':{'type':Sequelize[_0x33b389('0x6')],'defaultValue':0x0},'followuptime':{'type':Sequelize[_0x33b389('0x6')],'defaultValue':0x0},'dropreason':{'type':Sequelize[_0x33b389('0x2')]},'campaign':{'type':Sequelize['STRING']},'campaigntype':{'type':Sequelize[_0x33b389('0x2')]},'membername':{'type':Sequelize[_0x33b389('0x2')]},'reason':{'type':Sequelize['STRING']},'disposition':{'type':Sequelize[_0x33b389('0x2')]},'secondDisposition':{'type':Sequelize['STRING']},'thirdDisposition':{'type':Sequelize[_0x33b389('0x2')]},'dispositionat':{'type':Sequelize[_0x33b389('0xb')],'set':function(_0x1d5121){const _0x4e5174=_0x33b389,_0x19807c=this['getDataValue']('endtime');return _0x19807c&&_0x1d5121&&this[_0x4e5174('0x1')](_0x4e5174('0xa'),moment(_0x1d5121)[_0x4e5174('0x7')](moment(_0x19807c),_0x4e5174('0x4'))),this[_0x4e5174('0x1')](_0x4e5174('0x0'),_0x1d5121);}},'amd':{'type':Sequelize[_0x33b389('0x8')],'defaultValue':![]},'fax':{'type':Sequelize[_0x33b389('0x8')],'defaultValue':![]},'blacklist':{'type':Sequelize[_0x33b389('0x8')],'defaultValue':![]},'rescheduled':{'type':Sequelize[_0x33b389('0x8')],'defaultValue':![]},'rescheduledat':{'type':Sequelize[_0x33b389('0xb')]},'callback':{'type':Sequelize[_0x33b389('0x8')],'defaultValue':![]},'callbackuniqueid':{'type':Sequelize[_0x33b389('0x2')],'defaultValue':null},'callbackat':{'type':Sequelize[_0x33b389('0xb')]},'deleted':{'type':Sequelize[_0x33b389('0x2')],'defaultValue':null},'deletedat':{'type':Sequelize[_0x33b389('0xb')]},'recallme':{'type':Sequelize[_0x33b389('0x8')],'defaultValue':![]},'agiafterat':{'type':Sequelize['DATE']},'countnosuchnumberretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countdropretry':{'type':Sequelize[_0x33b389('0x6')],'defaultValue':0x0},'countabandonedretry':{'type':Sequelize[_0x33b389('0x6')],'defaultValue':0x0},'countmachineretry':{'type':Sequelize[_0x33b389('0x6')],'defaultValue':0x0},'countagentrejectretry':{'type':Sequelize[_0x33b389('0x6')],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/cmHopperFinal/cmHopperFinal.controller.js b/server/api/cmHopperFinal/cmHopperFinal.controller.js index 1cc4457..741a0cf 100644 --- a/server/api/cmHopperFinal/cmHopperFinal.controller.js +++ b/server/api/cmHopperFinal/cmHopperFinal.controller.js @@ -1 +1 @@ -const a147_0x1b45=['COUNT','api','createdAt','type','then','where','intersection','VIRTUAL','map','group','index','findAll','state\x20=\x204','CmHopperFinal','updatedAt','stack','merge','count','name','CampaignId','sort','ContactId','fields','keys','ANY_VALUE(calleridnum)','filter','body','query','findOne','params','includeAll','undefined','Campaign','into','cm_hopper','NOW()','from','filters','attributes','VoiceQueueId','calleridnum\x20IS\x20NOT\x20NULL','insert','ANY_VALUE(ListId)','Content-Range','offset','scheduledAt','sequelize','literal','like','`state`\x20=\x2011\x20,\x201,\x20null','include','rows','key','length','../../config/logger','describe','catch','`state`\x20=\x205,\x201,\x20null','ANY_VALUE(VoiceQueueId)','uniqueid','`state`\x20=\x203,\x201,\x20null','rawAttributes','status','model','CmHopper','json','VoiceQueueId\x20=\x20?','state\x20=\x20?','order','update','noAnswerContacts','ANY_VALUE(ContactId)','calleridnum','toString','reCallContacts','cm_hopper_final','select','`state`\x20=\x200,\x201,\x20null','`state`\x20=\x208,\x201,\x20null','congestionContacts','pick','answeringMachine','fieldName','fromQuery','abandonedContacts','show','noSuchContacts','`state`\x20=\x2022,\x201,\x20null','field','moveContactsIvrCampaignHopperFinal','../../mysqldb','dropContacts','CampaignId\x20=\x20?','phone','ListId','calleridnum\x20NOT\x20IN\x20(?)','lodash','limit','`state`\x20=\x2019,\x201,\x20null','`state`\x20=\x2010\x20,\x201,\x20null','ANY_VALUE(CampaignId)','squel'];(function(_0x4c838c,_0x1b45f3){const _0x1d5283=function(_0x2962d5){while(--_0x2962d5){_0x4c838c['push'](_0x4c838c['shift']());}};_0x1d5283(++_0x1b45f3);}(a147_0x1b45,0xba));const a147_0x1d52=function(_0x4c838c,_0x1b45f3){_0x4c838c=_0x4c838c-0x0;let _0x1d5283=a147_0x1b45[_0x4c838c];return _0x1d5283;};const _0x25ea3c=a147_0x1d52;'use strict';const _=require(_0x25ea3c('0xc')),squel=require(_0x25ea3c('0x11')),qs=require('../../components/parsers/qs'),logger=require(_0x25ea3c('0x48'))(_0x25ea3c('0x13')),db=require(_0x25ea3c('0x6'))['db'],{Op}=require('sequelize');function respondWithResult(_0x2962d5,_0x12169a){return _0x12169a=_0x12169a||0xc8,function(_0x183df4){if(_0x183df4)return _0x2962d5['status'](_0x12169a)['json'](_0x183df4);};}function respondWithFilteredResult(_0x2d1027,_0x4ceb7d){return function(_0x298ab3){const _0x311339=a147_0x1d52;if(_0x298ab3){const _0x4c95dd=_0x298ab3[_0x311339('0x23')],_0x206532=_0x4ceb7d['offset'];let _0x3f7657=_0x4ceb7d[_0x311339('0x3e')]+_0x4ceb7d[_0x311339('0xd')],_0x1977a2;return _0x3f7657>=_0x4c95dd?(_0x3f7657=_0x4c95dd,_0x1977a2=0xc8):_0x1977a2=0xce,_0x2d1027[_0x311339('0x50')](_0x1977a2),_0x2d1027['set'](_0x311339('0x3d'),_0x206532+'-'+_0x3f7657+'/'+_0x4c95dd)[_0x311339('0x53')](_0x298ab3);}return null;};}function saveUpdates(_0x2d3a36){return function(_0x322fcf){const _0x5cff5a=a147_0x1d52;if(_0x322fcf)return _0x322fcf['update'](_0x2d3a36)[_0x5cff5a('0x16')](function(_0x526f6c){return _0x526f6c;});return null;};}function handleEntityNotFound(_0x132292){return function(_0x1af997){return!_0x1af997&&_0x132292['sendStatus'](0x194),_0x1af997;};}function handleError(_0x12a1bc,_0x144741){return _0x144741=_0x144741||0x1f4,function(_0x2b7de1){const _0x10c6b5=a147_0x1d52;logger['error'](_0x2b7de1[_0x10c6b5('0x21')]),_0x2b7de1['name']&&delete _0x2b7de1[_0x10c6b5('0x24')],_0x12a1bc[_0x10c6b5('0x50')](_0x144741)['send'](_0x2b7de1);};}exports[_0x25ea3c('0x1c')]=function(_0x1df2b1,_0x2f21c1){const _0x3fbaef=_0x25ea3c;let _0x1a25b6={};const _0x44a85a={},_0x176436={'count':0x0,'rows':[]},_0xfd5276=_[_0x3fbaef('0x1a')](db[_0x3fbaef('0x1f')][_0x3fbaef('0x4f')],function(_0x4a70c9){const _0x4df432=_0x3fbaef;return{'name':_0x4a70c9[_0x4df432('0x64')],'type':_0x4a70c9[_0x4df432('0x15')][_0x4df432('0x46')]};});_0x44a85a['model']=_[_0x3fbaef('0x1a')](_0xfd5276,_0x3fbaef('0x24')),_0x44a85a[_0x3fbaef('0x2d')]=_[_0x3fbaef('0x29')](_0x1df2b1[_0x3fbaef('0x2d')]),_0x44a85a['filters']=_['intersection'](_0x44a85a[_0x3fbaef('0x51')],_0x44a85a[_0x3fbaef('0x2d')]),_0x1a25b6[_0x3fbaef('0x38')]=_[_0x3fbaef('0x18')](_0x44a85a['model'],qs['fields'](_0x1df2b1['query'][_0x3fbaef('0x28')])),_0x1a25b6[_0x3fbaef('0x38')]=_0x1a25b6['attributes'][_0x3fbaef('0x47')]?_0x1a25b6[_0x3fbaef('0x38')]:_0x44a85a[_0x3fbaef('0x51')];typeof _0x1df2b1[_0x3fbaef('0x2d')]['nolimit']===_0x3fbaef('0x31')&&(_0x1a25b6[_0x3fbaef('0xd')]=qs[_0x3fbaef('0xd')](_0x1df2b1['query'][_0x3fbaef('0xd')]),_0x1a25b6['offset']=qs[_0x3fbaef('0x3e')](_0x1df2b1[_0x3fbaef('0x2d')][_0x3fbaef('0x3e')]));_0x1a25b6[_0x3fbaef('0x56')]=qs[_0x3fbaef('0x26')](_0x1df2b1[_0x3fbaef('0x2d')]['sort']),_0x1a25b6[_0x3fbaef('0x17')]=qs[_0x3fbaef('0x37')](_[_0x3fbaef('0x62')](_0x1df2b1[_0x3fbaef('0x2d')],_0x44a85a[_0x3fbaef('0x37')]),_0xfd5276);_0x1df2b1[_0x3fbaef('0x2d')][_0x3fbaef('0x2b')]&&(_0x1a25b6[_0x3fbaef('0x17')]=_[_0x3fbaef('0x22')](_0x1a25b6[_0x3fbaef('0x17')],{[Op['or']]:_[_0x3fbaef('0x1a')](_0xfd5276,function(_0x194447){const _0x34952e=_0x3fbaef;if(_0x194447[_0x34952e('0x15')]!==_0x34952e('0x19')){const _0x59cf54={};return _0x59cf54[_0x194447[_0x34952e('0x24')]]={[Op[_0x34952e('0x42')]]:'%'+_0x1df2b1['query'][_0x34952e('0x2b')]+'%'},_0x59cf54;}})}));_0x1a25b6=_[_0x3fbaef('0x22')]({},_0x1a25b6,_0x1df2b1['options']);const _0x2bcda4={'where':_0x1a25b6[_0x3fbaef('0x17')]};return db[_0x3fbaef('0x1f')][_0x3fbaef('0x23')](_0x2bcda4)[_0x3fbaef('0x16')](function(_0x49968d){const _0x446441=_0x3fbaef;return _0x176436[_0x446441('0x23')]=_0x49968d,_0x1df2b1[_0x446441('0x2d')][_0x446441('0x30')]&&(_0x1a25b6[_0x446441('0x44')]=[{'all':!![]}]),db[_0x446441('0x1f')][_0x446441('0x1d')](_0x1a25b6);})[_0x3fbaef('0x16')](function(_0x302e55){const _0xc5673e=_0x3fbaef;return _0x176436[_0xc5673e('0x45')]=_0x302e55,_0x176436;})[_0x3fbaef('0x16')](respondWithFilteredResult(_0x2f21c1,_0x1a25b6))[_0x3fbaef('0x4a')](handleError(_0x2f21c1,null));},exports[_0x25ea3c('0x1')]=function(_0x2af974,_0x23eac5){const _0x2c6e49=_0x25ea3c;let _0x7a66e8={'raw':!![],'where':{'id':_0x2af974[_0x2c6e49('0x2f')]['id']}};const _0xd50565={};return _0xd50565['model']=_['keys'](db[_0x2c6e49('0x1f')][_0x2c6e49('0x4f')]),_0xd50565[_0x2c6e49('0x2d')]=_[_0x2c6e49('0x29')](_0x2af974[_0x2c6e49('0x2d')]),_0xd50565['filters']=_['intersection'](_0xd50565['model'],_0xd50565[_0x2c6e49('0x2d')]),_0x7a66e8[_0x2c6e49('0x38')]=_[_0x2c6e49('0x18')](_0xd50565[_0x2c6e49('0x51')],qs[_0x2c6e49('0x28')](_0x2af974['query'][_0x2c6e49('0x28')])),_0x7a66e8[_0x2c6e49('0x38')]=_0x7a66e8[_0x2c6e49('0x38')][_0x2c6e49('0x47')]?_0x7a66e8['attributes']:_0xd50565[_0x2c6e49('0x51')],_0x2af974[_0x2c6e49('0x2d')][_0x2c6e49('0x30')]&&(_0x7a66e8[_0x2c6e49('0x44')]=[{'all':!![]}]),_0x7a66e8=_['merge']({},_0x7a66e8,_0x2af974['options']),db['CmHopperFinal'][_0x2c6e49('0x2e')](_0x7a66e8)['then'](handleEntityNotFound(_0x23eac5,null))['then'](respondWithResult(_0x23eac5,null))[_0x2c6e49('0x4a')](handleError(_0x23eac5,null));},exports['describe']=function(_0x16f53b,_0x2d2973){const _0x209d6d=_0x25ea3c;return db[_0x209d6d('0x1f')][_0x209d6d('0x49')]()[_0x209d6d('0x16')](respondWithResult(_0x2d2973,null))[_0x209d6d('0x4a')](handleError(_0x2d2973,null));},exports[_0x25ea3c('0x57')]=function(_0xf3a679,_0x14c135){const _0x581b8f=_0x25ea3c;return _0xf3a679[_0x581b8f('0x2c')][_0x581b8f('0x4d')]&&delete _0xf3a679[_0x581b8f('0x2c')][_0x581b8f('0x4d')],db[_0x581b8f('0x1f')][_0x581b8f('0x2e')]({'where':{'uniqueid':_0xf3a679[_0x581b8f('0x2f')]['id']}})[_0x581b8f('0x16')](handleEntityNotFound(_0x14c135,null))['then'](saveUpdates(_0xf3a679[_0x581b8f('0x2c')],null))[_0x581b8f('0x16')](respondWithResult(_0x14c135,null))['catch'](handleError(_0x14c135,null));},exports['countContactsQueueCampaignHopperFinal']=function(_0x5318b1,_0x5831b5){const _0x5f7e47=_0x25ea3c;return db[_0x5f7e47('0x1f')][_0x5f7e47('0x1d')]({'raw':![],'where':{'VoiceQueueId':_0x5318b1[_0x5f7e47('0x2f')]['id']},'attributes':[[db[_0x5f7e47('0x40')]['fn'](_0x5f7e47('0x12'),db['sequelize']['fn']('IF',db[_0x5f7e47('0x40')][_0x5f7e47('0x41')](_0x5f7e47('0x5f')))),_0x5f7e47('0x2')],[db[_0x5f7e47('0x40')]['fn'](_0x5f7e47('0x12'),db[_0x5f7e47('0x40')]['fn']('IF',db[_0x5f7e47('0x40')][_0x5f7e47('0x41')](_0x5f7e47('0x4e')))),'noAnswerContacts'],[db[_0x5f7e47('0x40')]['fn'](_0x5f7e47('0x12'),db['sequelize']['fn']('IF',db[_0x5f7e47('0x40')][_0x5f7e47('0x41')](_0x5f7e47('0x4b')))),'busyContacts'],[db[_0x5f7e47('0x40')]['fn'](_0x5f7e47('0x12'),db[_0x5f7e47('0x40')]['fn']('IF',db[_0x5f7e47('0x40')]['literal']('`state`\x20=\x208,\x201,\x20null'))),_0x5f7e47('0x61')],[db[_0x5f7e47('0x40')]['fn']('COUNT',db['sequelize']['fn']('IF',db[_0x5f7e47('0x40')][_0x5f7e47('0x41')]('`state`\x20=\x2010\x20,\x201,\x20null'))),_0x5f7e47('0x7')],[db[_0x5f7e47('0x40')]['fn'](_0x5f7e47('0x12'),db['sequelize']['fn']('IF',db[_0x5f7e47('0x40')]['literal']('`state`\x20=\x2011\x20,\x201,\x20null'))),_0x5f7e47('0x0')],[db[_0x5f7e47('0x40')]['fn'](_0x5f7e47('0x12'),db['sequelize']['fn']('IF',db[_0x5f7e47('0x40')][_0x5f7e47('0x41')]('`state`\x20=\x2022,\x201,\x20null'))),_0x5f7e47('0x5c')],[db['sequelize']['fn'](_0x5f7e47('0x12'),db[_0x5f7e47('0x40')]['fn']('IF',db[_0x5f7e47('0x40')][_0x5f7e47('0x41')](_0x5f7e47('0xe')))),_0x5f7e47('0x63')]]})[_0x5f7e47('0x16')](handleEntityNotFound(_0x5831b5,null))[_0x5f7e47('0x16')](respondWithResult(_0x5831b5,null))['catch'](handleError(_0x5831b5,null));},exports['countContactsIvrCampaignHopperFinal']=function(_0x1aed29,_0x12e86f){const _0x567aa6=_0x25ea3c;return db['CmHopperFinal'][_0x567aa6('0x1d')]({'raw':![],'where':{'CampaignId':_0x1aed29['params']['id']},'attributes':[[db[_0x567aa6('0x40')]['fn'](_0x567aa6('0x12'),db[_0x567aa6('0x40')]['fn']('IF',db[_0x567aa6('0x40')][_0x567aa6('0x41')]('`state`\x20=\x200,\x201,\x20null'))),_0x567aa6('0x2')],[db['sequelize']['fn'](_0x567aa6('0x12'),db[_0x567aa6('0x40')]['fn']('IF',db[_0x567aa6('0x40')][_0x567aa6('0x41')]('`state`\x20=\x203,\x201,\x20null'))),_0x567aa6('0x58')],[db['sequelize']['fn'](_0x567aa6('0x12'),db[_0x567aa6('0x40')]['fn']('IF',db[_0x567aa6('0x40')][_0x567aa6('0x41')](_0x567aa6('0x4b')))),'busyContacts'],[db['sequelize']['fn'](_0x567aa6('0x12'),db[_0x567aa6('0x40')]['fn']('IF',db['sequelize'][_0x567aa6('0x41')](_0x567aa6('0x60')))),_0x567aa6('0x61')],[db[_0x567aa6('0x40')]['fn'](_0x567aa6('0x12'),db['sequelize']['fn']('IF',db[_0x567aa6('0x40')][_0x567aa6('0x41')](_0x567aa6('0xf')))),_0x567aa6('0x7')],[db[_0x567aa6('0x40')]['fn']('COUNT',db[_0x567aa6('0x40')]['fn']('IF',db[_0x567aa6('0x40')]['literal'](_0x567aa6('0x43')))),_0x567aa6('0x0')],[db['sequelize']['fn'](_0x567aa6('0x12'),db[_0x567aa6('0x40')]['fn']('IF',db['sequelize']['literal'](_0x567aa6('0x3')))),_0x567aa6('0x5c')],[db[_0x567aa6('0x40')]['fn'](_0x567aa6('0x12'),db[_0x567aa6('0x40')]['fn']('IF',db[_0x567aa6('0x40')]['literal'](_0x567aa6('0xe')))),'answeringMachine']]})[_0x567aa6('0x16')](handleEntityNotFound(_0x12e86f,null))[_0x567aa6('0x16')](respondWithResult(_0x12e86f,null))['catch'](handleError(_0x12e86f,null));},exports['moveContactsQueueCampaignHopperFinal']=function(_0x466d3b,_0x392da9){const _0x11c27d=_0x25ea3c;return db['VoiceQueue']['findOne']({'where':{'id':_0x466d3b[_0x11c27d('0x2f')]['id']}})[_0x11c27d('0x16')](handleEntityNotFound(_0x392da9,null))['then'](function(_0x42e1b9){const _0x46e219=_0x11c27d;let _0x47ada9;if(_0x42e1b9)return _0x47ada9=squel[_0x46e219('0x3b')]()[_0x46e219('0x33')]('cm_hopper')[_0x46e219('0x65')]([_0x46e219('0x9'),_0x46e219('0x3f'),_0x46e219('0x27'),_0x46e219('0xa'),_0x46e219('0x39'),'createdAt',_0x46e219('0x20')],squel['select']()[_0x46e219('0x4')](_0x46e219('0x2a'),'phone')['field'](_0x46e219('0x35'),_0x46e219('0x3f'))['field'](_0x46e219('0x59'),_0x46e219('0x27'))['field']('ANY_VALUE(ListId)','ListId')[_0x46e219('0x4')](_0x46e219('0x4c'),_0x46e219('0x39'))[_0x46e219('0x4')](_0x46e219('0x35'),'createdAt')[_0x46e219('0x4')](_0x46e219('0x35'),_0x46e219('0x20'))[_0x46e219('0x36')](_0x46e219('0x5d'))[_0x46e219('0x17')](_0x46e219('0x54'),_0x466d3b['params']['id'][_0x46e219('0x5b')]())[_0x46e219('0x17')](_0x46e219('0x55'),_0x466d3b[_0x46e219('0x2c')]['state'][_0x46e219('0x5b')]())[_0x46e219('0x17')]('calleridnum\x20IS\x20NOT\x20NULL')[_0x46e219('0x17')]('calleridnum\x20NOT\x20IN\x20(?)',squel[_0x46e219('0x5e')]()[_0x46e219('0x4')]('phone')[_0x46e219('0x36')](_0x46e219('0x34'))[_0x46e219('0x17')](_0x46e219('0x54'),_0x466d3b['params']['id']['toString']()))[_0x46e219('0x17')](_0x46e219('0xb'),squel['select']()[_0x46e219('0x4')]('calleridnum')[_0x46e219('0x36')](_0x46e219('0x5d'))[_0x46e219('0x17')]('VoiceQueueId\x20=\x20?',_0x466d3b[_0x46e219('0x2f')]['id'][_0x46e219('0x5b')]())['where']('state\x20=\x204'))[_0x46e219('0x1b')](_0x46e219('0x27')))[_0x46e219('0x5b')](),db[_0x46e219('0x40')][_0x46e219('0x2d')](_0x47ada9);return[];})[_0x11c27d('0x16')](respondWithResult(_0x392da9,null))[_0x11c27d('0x4a')](handleError(_0x392da9,null));},exports[_0x25ea3c('0x5')]=function(_0x1dba37,_0x2ea4de){const _0x3e1a92=_0x25ea3c;return db[_0x3e1a92('0x32')]['findOne']({'where':{'id':_0x1dba37[_0x3e1a92('0x2f')]['id']}})[_0x3e1a92('0x16')](handleEntityNotFound(_0x2ea4de,null))[_0x3e1a92('0x16')](function(_0x4c5128){const _0x10ebfe=_0x3e1a92;let _0x39fd08;if(_0x4c5128)return _0x39fd08=squel[_0x10ebfe('0x3b')]()[_0x10ebfe('0x33')](_0x10ebfe('0x34'))[_0x10ebfe('0x65')](['phone',_0x10ebfe('0x3f'),_0x10ebfe('0x27'),_0x10ebfe('0xa'),_0x10ebfe('0x25'),_0x10ebfe('0x14'),_0x10ebfe('0x20')],squel[_0x10ebfe('0x5e')]()['field'](_0x10ebfe('0x2a'),_0x10ebfe('0x9'))[_0x10ebfe('0x4')](_0x10ebfe('0x35'),_0x10ebfe('0x3f'))[_0x10ebfe('0x4')](_0x10ebfe('0x59'),'ContactId')[_0x10ebfe('0x4')](_0x10ebfe('0x3c'),'ListId')[_0x10ebfe('0x4')](_0x10ebfe('0x10'),_0x10ebfe('0x25'))['field'](_0x10ebfe('0x35'),_0x10ebfe('0x14'))[_0x10ebfe('0x4')]('NOW()',_0x10ebfe('0x20'))['from'](_0x10ebfe('0x5d'))[_0x10ebfe('0x17')]('CampaignId\x20=\x20?',_0x1dba37[_0x10ebfe('0x2f')]['id'][_0x10ebfe('0x5b')]())[_0x10ebfe('0x17')](_0x10ebfe('0x55'),_0x1dba37[_0x10ebfe('0x2c')]['state'][_0x10ebfe('0x5b')]())['where'](_0x10ebfe('0x3a'))[_0x10ebfe('0x17')]('calleridnum\x20NOT\x20IN\x20(?)',squel[_0x10ebfe('0x5e')]()['field'](_0x10ebfe('0x9'))[_0x10ebfe('0x36')]('cm_hopper')[_0x10ebfe('0x17')](_0x10ebfe('0x8'),_0x1dba37[_0x10ebfe('0x2f')]['id'][_0x10ebfe('0x5b')]()))[_0x10ebfe('0x17')](_0x10ebfe('0xb'),squel[_0x10ebfe('0x5e')]()[_0x10ebfe('0x4')](_0x10ebfe('0x5a'))['from'](_0x10ebfe('0x5d'))['where'](_0x10ebfe('0x8'),_0x1dba37['params']['id'][_0x10ebfe('0x5b')]())[_0x10ebfe('0x17')](_0x10ebfe('0x1e')))[_0x10ebfe('0x1b')](_0x10ebfe('0x27')))[_0x10ebfe('0x5b')](),db[_0x10ebfe('0x40')]['query'](_0x39fd08);return[];})[_0x3e1a92('0x16')](respondWithResult(_0x2ea4de,null))['catch'](handleError(_0x2ea4de,null));},exports['checkContactHopper']=function(_0x37ddc5,_0x1a99b1){const _0x5e27e1=_0x25ea3c;return db[_0x5e27e1('0x52')][_0x5e27e1('0x2e')]({'where':{'VoiceQueueId':_0x37ddc5[_0x5e27e1('0x2c')][_0x5e27e1('0x39')],'CampaignId':_0x37ddc5['body'][_0x5e27e1('0x25')],'ContactId':_0x37ddc5[_0x5e27e1('0x2c')][_0x5e27e1('0x27')]}})[_0x5e27e1('0x16')](handleEntityNotFound(_0x1a99b1,null))[_0x5e27e1('0x16')](function(_0x2662b0){if(_0x2662b0)return _0x2662b0;return null;})[_0x5e27e1('0x16')](respondWithResult(_0x1a99b1,null))[_0x5e27e1('0x4a')](handleError(_0x1a99b1,null));}; \ No newline at end of file +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 diff --git a/server/api/cmHopperFinal/cmHopperFinal.model.js b/server/api/cmHopperFinal/cmHopperFinal.model.js index 70a874c..1408500 100644 --- a/server/api/cmHopperFinal/cmHopperFinal.model.js +++ b/server/api/cmHopperFinal/cmHopperFinal.model.js @@ -1 +1 @@ -const a148_0x5a0f=['exports','calleridnum','./cmHopperFinal.attributes','define','uniqueid'];(function(_0x4289dd,_0x5a0fe8){const _0x1f4b3f=function(_0x26fa1d){while(--_0x26fa1d){_0x4289dd['push'](_0x4289dd['shift']());}};_0x1f4b3f(++_0x5a0fe8);}(a148_0x5a0f,0x12f));const a148_0x1f4b=function(_0x4289dd,_0x5a0fe8){_0x4289dd=_0x4289dd-0x0;let _0x1f4b3f=a148_0x5a0f[_0x4289dd];return _0x1f4b3f;};const _0x259cb8=a148_0x1f4b;'use strict';const attributes=require(_0x259cb8('0x4'));module[_0x259cb8('0x2')]=function(_0x26fa1d){const _0x45d271=_0x259cb8,_0x42bd8f=_0x26fa1d[_0x45d271('0x0')]('CmHopperFinal',attributes,{'tableName':'cm_hopper_final','paranoid':![],'indexes':[{'name':_0x45d271('0x3'),'fields':[_0x45d271('0x3')]},{'name':_0x45d271('0x1'),'fields':[_0x45d271('0x1')]}],'timestamps':!![]});return _0x42bd8f;}; \ No newline at end of file +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 diff --git a/server/api/cmHopperFinal/cmHopperFinal.rpc.js b/server/api/cmHopperFinal/cmHopperFinal.rpc.js index aa50c28..44ecb68 100644 --- a/server/api/cmHopperFinal/cmHopperFinal.rpc.js +++ b/server/api/cmHopperFinal/cmHopperFinal.rpc.js @@ -1 +1 @@ -const a149_0x1e47=['../../mysqldb','CreateCmHopperFinal','../../config/logger','options','create','then','CmHopperFinal','error','rpc','message','stringify'];(function(_0x44bec7,_0x1e47e2){const _0x1e866a=function(_0x3a62c0){while(--_0x3a62c0){_0x44bec7['push'](_0x44bec7['shift']());}};_0x1e866a(++_0x1e47e2);}(a149_0x1e47,0x14a));const a149_0x1e86=function(_0x44bec7,_0x1e47e2){_0x44bec7=_0x44bec7-0x0;let _0x1e866a=a149_0x1e47[_0x44bec7];return _0x1e866a;};const _0x318810=a149_0x1e86;'use strict';const db=require(_0x318810('0x0'))['db'],logger=require(_0x318810('0x2'))(_0x318810('0x8'));exports[_0x318810('0x1')]=function(_0x3a62c0){const _0x351293=this;return new Promise(function(_0x5121ff,_0x4d6073){const _0x3af5bd=a149_0x1e86;return db[_0x3af5bd('0x6')][_0x3af5bd('0x4')](_0x3a62c0['body'],{'raw':_0x3a62c0[_0x3af5bd('0x3')]?_0x3a62c0[_0x3af5bd('0x3')]['raw']===undefined?!![]:![]:!![]})[_0x3af5bd('0x5')](function(_0x50ded3){const _0x27ad91=_0x3af5bd;logger['info']('CreateCmHopperFinal',_0x3a62c0),logger['debug'](_0x27ad91('0x1'),_0x3a62c0,JSON[_0x27ad91('0xa')](_0x50ded3)),_0x5121ff(_0x50ded3);})['catch'](function(_0x23f5e3){const _0x2e8cd5=_0x3af5bd;logger[_0x2e8cd5('0x7')](_0x2e8cd5('0x1'),_0x23f5e3['message'],_0x3a62c0),_0x4d6073(_0x351293[_0x2e8cd5('0x7')](0x1f4,_0x23f5e3[_0x2e8cd5('0x9')]));});});}; \ No newline at end of file +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 diff --git a/server/api/cmHopperFinal/index.js b/server/api/cmHopperFinal/index.js index 3af7da5..53bf898 100644 --- a/server/api/cmHopperFinal/index.js +++ b/server/api/cmHopperFinal/index.js @@ -1 +1 @@ -const a150_0x37b4=['moveContactsIvrCampaignHopperFinal','update','show','/voice/campaign/moveContacts/:id','/campaign/countAttributes/:id','/voice/queue/countAttributes/:id','get','Router','post','./cmHopperFinal.controller','/:id','countContactsQueueCampaignHopperFinal','/checkContactHopper','countContactsIvrCampaignHopperFinal','express','checkContactHopper','describe','isAuthenticated','exports','../../components/auth/service'];(function(_0xe703b7,_0x37b43d){const _0x1b2c39=function(_0x268846){while(--_0x268846){_0xe703b7['push'](_0xe703b7['shift']());}};_0x1b2c39(++_0x37b43d);}(a150_0x37b4,0xb7));const a150_0x1b2c=function(_0xe703b7,_0x37b43d){_0xe703b7=_0xe703b7-0x0;let _0x1b2c39=a150_0x37b4[_0xe703b7];return _0x1b2c39;};const _0x18c7ed=a150_0x1b2c;'use strict';const express=require(_0x18c7ed('0xb')),router=express[_0x18c7ed('0x4')](),auth=require(_0x18c7ed('0x10')),controller=require(_0x18c7ed('0x6'));router['get']('/',auth[_0x18c7ed('0xe')](),controller['index']),router[_0x18c7ed('0x3')]('/describe',auth[_0x18c7ed('0xe')](),controller[_0x18c7ed('0xd')]),router[_0x18c7ed('0x3')](_0x18c7ed('0x7'),auth[_0x18c7ed('0xe')](),controller[_0x18c7ed('0x13')]),router['get'](_0x18c7ed('0x2'),auth[_0x18c7ed('0xe')](),controller[_0x18c7ed('0x8')]),router[_0x18c7ed('0x3')](_0x18c7ed('0x1'),auth[_0x18c7ed('0xe')](),controller[_0x18c7ed('0xa')]),router[_0x18c7ed('0x5')]('/voice/queue/moveContacts/:id',auth[_0x18c7ed('0xe')](),controller['moveContactsQueueCampaignHopperFinal']),router[_0x18c7ed('0x5')](_0x18c7ed('0x0'),auth['isAuthenticated'](),controller[_0x18c7ed('0x11')]),router[_0x18c7ed('0x5')](_0x18c7ed('0x9'),auth[_0x18c7ed('0xe')](),controller[_0x18c7ed('0xc')]),router['put'](_0x18c7ed('0x7'),auth[_0x18c7ed('0xe')](),controller[_0x18c7ed('0x12')]),module[_0x18c7ed('0xf')]=router; \ No newline at end of file +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 diff --git a/server/api/cmHopperHistory/cmHopperHistory.attributes.js b/server/api/cmHopperHistory/cmHopperHistory.attributes.js index 948468b..38990cd 100644 --- a/server/api/cmHopperHistory/cmHopperHistory.attributes.js +++ b/server/api/cmHopperHistory/cmHopperHistory.attributes.js @@ -1 +1 @@ -const a151_0x89a2=['exports','INTEGER','DATE','STRING','sequelize','BOOLEAN'];(function(_0x52b23e,_0x89a296){const _0x7de0ed=function(_0x2a0c1c){while(--_0x2a0c1c){_0x52b23e['push'](_0x52b23e['shift']());}};_0x7de0ed(++_0x89a296);}(a151_0x89a2,0x12d));const a151_0x7de0=function(_0x52b23e,_0x89a296){_0x52b23e=_0x52b23e-0x0;let _0x7de0ed=a151_0x89a2[_0x52b23e];return _0x7de0ed;};const _0x7c89c0=a151_0x7de0;'use strict';const Sequelize=require(_0x7c89c0('0x3'));module[_0x7c89c0('0x5')]={'state':{'type':Sequelize['INTEGER'](0x2)},'statedesc':{'type':Sequelize[_0x7c89c0('0x2')]},'scheduledat':{'type':Sequelize[_0x7c89c0('0x1')]},'countbusyretry':{'type':Sequelize[_0x7c89c0('0x0')],'defaultValue':0x0},'countcongestionretry':{'type':Sequelize[_0x7c89c0('0x0')],'defaultValue':0x0},'countnoanswerretry':{'type':Sequelize[_0x7c89c0('0x0')],'defaultValue':0x0},'countglobal':{'type':Sequelize[_0x7c89c0('0x0')],'defaultValue':0x0},'uniqueid':{'type':Sequelize[_0x7c89c0('0x2')]},'originatecalleridnum':{'type':Sequelize[_0x7c89c0('0x2')]},'originatecalleridname':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize['STRING']},'calleridname':{'type':Sequelize['STRING']},'starttime':{'type':Sequelize[_0x7c89c0('0x1')]},'responsetime':{'type':Sequelize['DATE']},'answertime':{'type':Sequelize[_0x7c89c0('0x1')]},'droptime':{'type':Sequelize[_0x7c89c0('0x1')]},'endtime':{'type':Sequelize[_0x7c89c0('0x1')]},'ringtime':{'type':Sequelize[_0x7c89c0('0x0')],'defaultValue':0x0},'holdtime':{'type':Sequelize[_0x7c89c0('0x0')],'defaultValue':0x0},'talktime':{'type':Sequelize[_0x7c89c0('0x0')],'defaultValue':0x0},'followuptime':{'type':Sequelize[_0x7c89c0('0x0')],'defaultValue':0x0},'dropreason':{'type':Sequelize[_0x7c89c0('0x2')]},'campaign':{'type':Sequelize[_0x7c89c0('0x2')]},'campaigntype':{'type':Sequelize[_0x7c89c0('0x2')]},'membername':{'type':Sequelize[_0x7c89c0('0x2')]},'reason':{'type':Sequelize['STRING']},'amd':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'fax':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'callback':{'type':Sequelize[_0x7c89c0('0x4')],'defaultValue':![]},'callbackuniqueid':{'type':Sequelize['STRING'],'defaultValue':null},'callbackat':{'type':Sequelize[_0x7c89c0('0x1')]},'recallme':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'editedat':{'type':Sequelize[_0x7c89c0('0x1')]},'edited':{'type':Sequelize[_0x7c89c0('0x4')],'defaultValue':![]},'countnosuchnumberretry':{'type':Sequelize[_0x7c89c0('0x0')],'defaultValue':0x0},'countdropretry':{'type':Sequelize[_0x7c89c0('0x0')],'defaultValue':0x0},'countabandonedretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countmachineretry':{'type':Sequelize[_0x7c89c0('0x0')],'defaultValue':0x0},'countagentrejectretry':{'type':Sequelize[_0x7c89c0('0x0')],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/cmHopperHistory/cmHopperHistory.controller.js b/server/api/cmHopperHistory/cmHopperHistory.controller.js index f802a0b..a05bbef 100644 --- a/server/api/cmHopperHistory/cmHopperHistory.controller.js +++ b/server/api/cmHopperHistory/cmHopperHistory.controller.js @@ -1 +1 @@ -const a152_0x3664=['api','include','lodash','findOne','set','json','VIRTUAL','status','filters','update','catch','show','where','body','sort','params','count','type','undefined','fields','intersection','merge','query','options','order','Content-Range','uniqueid','../../config/logger','then','includeAll','sendStatus','rawAttributes','model','CmHopperHistory','limit','index','../../components/parsers/qs','create','filter','attributes','map','rows','stack','offset','like','name','describe','length','keys'];(function(_0x5c3a4e,_0x3664c4){const _0x1aa36f=function(_0x33d7f3){while(--_0x33d7f3){_0x5c3a4e['push'](_0x5c3a4e['shift']());}};_0x1aa36f(++_0x3664c4);}(a152_0x3664,0x8f));const a152_0x1aa3=function(_0x5c3a4e,_0x3664c4){_0x5c3a4e=_0x5c3a4e-0x0;let _0x1aa36f=a152_0x3664[_0x5c3a4e];return _0x1aa36f;};const _0x3acab1=a152_0x1aa3;'use strict';const _=require(_0x3acab1('0x6')),qs=require(_0x3acab1('0x28')),logger=require(_0x3acab1('0x1f'))(_0x3acab1('0x4')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x33d7f3,_0x229be1){return _0x229be1=_0x229be1||0xc8,function(_0x267027){const _0x4809be=a152_0x1aa3;if(_0x267027)return _0x33d7f3[_0x4809be('0xb')](_0x229be1)[_0x4809be('0x9')](_0x267027);};}function respondWithFilteredResult(_0x3f29af,_0x3e1447){return function(_0x3acd95){const _0x2be15=a152_0x1aa3;if(_0x3acd95){const _0x309646=_0x3acd95[_0x2be15('0x14')],_0x12eb68=_0x3e1447[_0x2be15('0x2f')];let _0x47f7af=_0x3e1447['offset']+_0x3e1447[_0x2be15('0x26')],_0x5a5f08;return _0x47f7af>=_0x309646?(_0x47f7af=_0x309646,_0x5a5f08=0xc8):_0x5a5f08=0xce,_0x3f29af[_0x2be15('0xb')](_0x5a5f08),_0x3f29af[_0x2be15('0x8')](_0x2be15('0x1d'),_0x12eb68+'-'+_0x47f7af+'/'+_0x309646)[_0x2be15('0x9')](_0x3acd95);}return null;};}function saveUpdates(_0x59b12a){return function(_0x21a009){const _0x12e31d=a152_0x1aa3;if(_0x21a009)return _0x21a009[_0x12e31d('0xd')](_0x59b12a)[_0x12e31d('0x20')](function(_0x13e1a5){return _0x13e1a5;});return null;};}function handleEntityNotFound(_0x1e8956){return function(_0x1405a6){const _0x58d8c4=a152_0x1aa3;return!_0x1405a6&&_0x1e8956[_0x58d8c4('0x22')](0x194),_0x1405a6;};}function handleError(_0x366080,_0x242d39){return _0x242d39=_0x242d39||0x1f4,function(_0x359c65){const _0x1991f7=a152_0x1aa3;logger['error'](_0x359c65[_0x1991f7('0x2e')]),_0x359c65[_0x1991f7('0x0')]&&delete _0x359c65[_0x1991f7('0x0')],_0x366080[_0x1991f7('0xb')](_0x242d39)['send'](_0x359c65);};}exports[_0x3acab1('0x27')]=function(_0x4911e5,_0x6849ca){const _0x56191f=_0x3acab1;let _0x8d605d={};const _0x5bfba1={},_0x4d28f7={'count':0x0,'rows':[]},_0x35aec9=_[_0x56191f('0x2c')](db[_0x56191f('0x25')][_0x56191f('0x23')],function(_0x73311c){return{'name':_0x73311c['fieldName'],'type':_0x73311c['type']['key']};});_0x5bfba1[_0x56191f('0x24')]=_[_0x56191f('0x2c')](_0x35aec9,_0x56191f('0x0')),_0x5bfba1[_0x56191f('0x1a')]=_[_0x56191f('0x3')](_0x4911e5[_0x56191f('0x1a')]),_0x5bfba1['filters']=_['intersection'](_0x5bfba1[_0x56191f('0x24')],_0x5bfba1[_0x56191f('0x1a')]),_0x8d605d[_0x56191f('0x2b')]=_[_0x56191f('0x18')](_0x5bfba1[_0x56191f('0x24')],qs['fields'](_0x4911e5[_0x56191f('0x1a')][_0x56191f('0x17')])),_0x8d605d[_0x56191f('0x2b')]=_0x8d605d[_0x56191f('0x2b')][_0x56191f('0x2')]?_0x8d605d[_0x56191f('0x2b')]:_0x5bfba1[_0x56191f('0x24')];typeof _0x4911e5[_0x56191f('0x1a')]['nolimit']===_0x56191f('0x16')&&(_0x8d605d[_0x56191f('0x26')]=qs[_0x56191f('0x26')](_0x4911e5[_0x56191f('0x1a')]['limit']),_0x8d605d['offset']=qs[_0x56191f('0x2f')](_0x4911e5[_0x56191f('0x1a')][_0x56191f('0x2f')]));_0x8d605d[_0x56191f('0x1c')]=qs['sort'](_0x4911e5[_0x56191f('0x1a')][_0x56191f('0x12')]),_0x8d605d[_0x56191f('0x10')]=qs[_0x56191f('0xc')](_['pick'](_0x4911e5[_0x56191f('0x1a')],_0x5bfba1['filters']),_0x35aec9);_0x4911e5[_0x56191f('0x1a')][_0x56191f('0x2a')]&&(_0x8d605d[_0x56191f('0x10')]=_[_0x56191f('0x19')](_0x8d605d[_0x56191f('0x10')],{[Op['or']]:_[_0x56191f('0x2c')](_0x35aec9,function(_0x4ca75e){const _0x2a6634=_0x56191f;if(_0x4ca75e[_0x2a6634('0x15')]!==_0x2a6634('0xa')){const _0x527e9f={};return _0x527e9f[_0x4ca75e[_0x2a6634('0x0')]]={[Op[_0x2a6634('0x30')]]:'%'+_0x4911e5[_0x2a6634('0x1a')][_0x2a6634('0x2a')]+'%'},_0x527e9f;}})}));_0x8d605d=_['merge']({},_0x8d605d,_0x4911e5['options']);const _0x3b8e11={'where':_0x8d605d['where']};return db[_0x56191f('0x25')][_0x56191f('0x14')](_0x3b8e11)[_0x56191f('0x20')](function(_0x46870e){const _0x17db58=_0x56191f;return _0x4d28f7[_0x17db58('0x14')]=_0x46870e,_0x4911e5[_0x17db58('0x1a')][_0x17db58('0x21')]&&(_0x8d605d['include']=[{'all':!![]}]),db[_0x17db58('0x25')]['findAll'](_0x8d605d);})['then'](function(_0x24906d){const _0xf4c1cb=_0x56191f;return _0x4d28f7[_0xf4c1cb('0x2d')]=_0x24906d,_0x4d28f7;})[_0x56191f('0x20')](respondWithFilteredResult(_0x6849ca,_0x8d605d))[_0x56191f('0xe')](handleError(_0x6849ca,null));},exports[_0x3acab1('0xf')]=function(_0x1adf79,_0x2ab3b5){const _0x546f9b=_0x3acab1;let _0x547986={'raw':!![],'where':{'id':_0x1adf79[_0x546f9b('0x13')]['id']}};const _0x4e7e29={};return _0x4e7e29[_0x546f9b('0x24')]=_[_0x546f9b('0x3')](db['CmHopperHistory'][_0x546f9b('0x23')]),_0x4e7e29[_0x546f9b('0x1a')]=_[_0x546f9b('0x3')](_0x1adf79[_0x546f9b('0x1a')]),_0x4e7e29['filters']=_[_0x546f9b('0x18')](_0x4e7e29[_0x546f9b('0x24')],_0x4e7e29[_0x546f9b('0x1a')]),_0x547986[_0x546f9b('0x2b')]=_[_0x546f9b('0x18')](_0x4e7e29['model'],qs['fields'](_0x1adf79['query'][_0x546f9b('0x17')])),_0x547986[_0x546f9b('0x2b')]=_0x547986['attributes'][_0x546f9b('0x2')]?_0x547986[_0x546f9b('0x2b')]:_0x4e7e29[_0x546f9b('0x24')],_0x1adf79[_0x546f9b('0x1a')]['includeAll']&&(_0x547986[_0x546f9b('0x5')]=[{'all':!![]}]),_0x547986=_[_0x546f9b('0x19')]({},_0x547986,_0x1adf79[_0x546f9b('0x1b')]),db[_0x546f9b('0x25')][_0x546f9b('0x7')](_0x547986)[_0x546f9b('0x20')](handleEntityNotFound(_0x2ab3b5,null))['then'](respondWithResult(_0x2ab3b5,null))['catch'](handleError(_0x2ab3b5,null));},exports[_0x3acab1('0x29')]=function(_0xa92a65,_0x3abc90){const _0x3479a8=_0x3acab1;return db[_0x3479a8('0x25')][_0x3479a8('0x29')](_0xa92a65['body'],{})[_0x3479a8('0x20')](respondWithResult(_0x3abc90,0xc9))[_0x3479a8('0xe')](handleError(_0x3abc90,null));},exports[_0x3acab1('0x1')]=function(_0x11a37b,_0x25a21b){const _0x5d7707=_0x3acab1;return db[_0x5d7707('0x25')][_0x5d7707('0x1')]()[_0x5d7707('0x20')](respondWithResult(_0x25a21b,null))[_0x5d7707('0xe')](handleError(_0x25a21b,null));},exports['update']=function(_0x2978d8,_0x301266){const _0xe67a67=_0x3acab1;return _0x2978d8['body']['uniqueid']&&delete _0x2978d8['body'][_0xe67a67('0x1e')],db['CmHopperHistory'][_0xe67a67('0x7')]({'where':{'uniqueid':_0x2978d8[_0xe67a67('0x13')]['id']}})[_0xe67a67('0x20')](handleEntityNotFound(_0x301266,null))[_0xe67a67('0x20')](saveUpdates(_0x2978d8[_0xe67a67('0x11')],null))['then'](respondWithResult(_0x301266,null))[_0xe67a67('0xe')](handleError(_0x301266,null));}; \ No newline at end of file +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 diff --git a/server/api/cmHopperHistory/cmHopperHistory.model.js b/server/api/cmHopperHistory/cmHopperHistory.model.js index 746c892..ba20f6d 100644 --- a/server/api/cmHopperHistory/cmHopperHistory.model.js +++ b/server/api/cmHopperHistory/cmHopperHistory.model.js @@ -1 +1 @@ -const a153_0x1f34=['./cmHopperHistory.attributes','exports','cm_hopper_history','endtime','uniqueid','CmHopperHistory'];(function(_0x5419a0,_0x1f34d4){const _0x94dcaf=function(_0x229235){while(--_0x229235){_0x5419a0['push'](_0x5419a0['shift']());}};_0x94dcaf(++_0x1f34d4);}(a153_0x1f34,0xfb));const a153_0x94dc=function(_0x5419a0,_0x1f34d4){_0x5419a0=_0x5419a0-0x0;let _0x94dcaf=a153_0x1f34[_0x5419a0];return _0x94dcaf;};const _0x1d4449=a153_0x94dc;'use strict';const attributes=require(_0x1d4449('0x1'));module[_0x1d4449('0x2')]=function(_0x229235){const _0x834d57=_0x1d4449,_0x3cc91c=_0x229235['define'](_0x834d57('0x0'),attributes,{'tableName':_0x834d57('0x3'),'paranoid':![],'indexes':[{'name':_0x834d57('0x4'),'fields':['endtime']},{'name':_0x834d57('0x5'),'fields':[_0x834d57('0x5')]}],'timestamps':!![]});return _0x3cc91c;}; \ No newline at end of file +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 diff --git a/server/api/cmHopperHistory/cmHopperHistory.rpc.js b/server/api/cmHopperHistory/cmHopperHistory.rpc.js index c8c9064..83f8395 100644 --- a/server/api/cmHopperHistory/cmHopperHistory.rpc.js +++ b/server/api/cmHopperHistory/cmHopperHistory.rpc.js @@ -1 +1 @@ -const a154_0x4284=['ivrTotalCallsDays','outboundAnswerCallsDay','rpc','predictiveIntervalTotalCalls','outboundDropCallsDayCallersExit','`state`\x20=\x2018,\x201,\x20null','col','AvgHandleTime','`state`\x20=\x205,\x201,\x20null','outboundNoAnswerCallsDay','`state`\x20=\x2016,\x201,\x20null','`state`\x20=\x2022\x20or\x20`state`\x20=\x2023,\x201,\x20null','`state`\x20=\x2012,\x201,\x20null','`state`\x20=\x2014,\x201,\x20null','catch','predictiveIntervalDroppedCallsCallersExit','ivrAnswerCallsDay','outboundRejectCallsDay','AVG','literal','findAll','outboundUnknownCallsDay','predictiveIntervalAvgHoldtime','body','stringify','../../config/logger','info','options','CmHopperHistory','outboundDropCallsDayTimeout','`state`\x20=\x2013,\x201,\x20null','GetVoiceQueueHopperHistory','COUNT','predictiveIntervalDroppedCallsTimeout','`state`\x20=\x204,\x201,\x20null','then','raw','`state`\x20=\x2011\x20,\x201,\x20null','outboundOriginateFailureCallsDay','GetCampaignHopperHistory','where','name','outboundNoSuchCallsDay','outboundBusyCallsDay','campaign','sequelize','CreateCmHopperHistory','message','../../mysqldb','predictiveIntervalAnsweredCalls','debug','error'];(function(_0x530c02,_0x4284a9){const _0x34994a=function(_0x16de5f){while(--_0x16de5f){_0x530c02['push'](_0x530c02['shift']());}};_0x34994a(++_0x4284a9);}(a154_0x4284,0xa0));const a154_0x3499=function(_0x530c02,_0x4284a9){_0x530c02=_0x530c02-0x0;let _0x34994a=a154_0x4284[_0x530c02];return _0x34994a;};const _0x53a9df=a154_0x3499;'use strict';const db=require(_0x53a9df('0x2c'))['db'],logger=require(_0x53a9df('0x15'))(_0x53a9df('0x32'));exports[_0x53a9df('0x2a')]=function(_0x16de5f){const _0x1edad4=this;return new Promise(function(_0x1b20f3,_0x1cc17c){const _0xe8cb7c=a154_0x3499;return db[_0xe8cb7c('0x18')]['create'](_0x16de5f[_0xe8cb7c('0x13')],{'raw':_0x16de5f[_0xe8cb7c('0x17')]?_0x16de5f['options'][_0xe8cb7c('0x20')]===undefined?!![]:![]:!![]})[_0xe8cb7c('0x1f')](function(_0x28ddb5){const _0x5b9fbf=_0xe8cb7c;logger['info'](_0x5b9fbf('0x2a'),_0x16de5f),logger[_0x5b9fbf('0x2e')](_0x5b9fbf('0x2a'),_0x16de5f,JSON[_0x5b9fbf('0x14')](_0x28ddb5)),_0x1b20f3(_0x28ddb5);})[_0xe8cb7c('0xa')](function(_0x4e2b88){const _0x5d1014=_0xe8cb7c;logger['error']('CreateCmHopperHistory',_0x4e2b88[_0x5d1014('0x2b')],_0x16de5f),_0x1cc17c(_0x1edad4[_0x5d1014('0x2f')](0x1f4,_0x4e2b88['message']));});});},exports[_0x53a9df('0x3')]=function(_0x423d6b){const _0x1af801=this;return new Promise(function(_0x510382,_0x3a38a1){const _0x569926=a154_0x3499;return db['CmHopperHistory'][_0x569926('0x10')]({'raw':_0x423d6b[_0x569926('0x17')]?_0x423d6b[_0x569926('0x17')][_0x569926('0x20')]===undefined?!![]:![]:!![],'where':_0x423d6b[_0x569926('0x17')]?_0x423d6b[_0x569926('0x17')][_0x569926('0x24')]||null:null,'attributes':[[db['sequelize']['fn'](_0x569926('0x1c'),db[_0x569926('0x29')][_0x569926('0x2')]('id')),_0x569926('0x33')],[db[_0x569926('0x29')]['fn'](_0x569926('0x1c'),db[_0x569926('0x29')]['fn']('IF',db['sequelize'][_0x569926('0xf')](_0x569926('0x1e')))),_0x569926('0x2d')],[db['sequelize']['fn']('COUNT',db['sequelize']['fn']('IF',db[_0x569926('0x29')][_0x569926('0xf')]('`state`\x20=\x2010,\x201,\x20null'))),_0x569926('0x1d')],[db[_0x569926('0x29')]['fn'](_0x569926('0x1c'),db[_0x569926('0x29')]['fn']('IF',db['sequelize']['literal']('`state`\x20=\x2011,\x201,\x20null'))),_0x569926('0xb')],[db[_0x569926('0x29')]['fn']('AVG',db['sequelize']['fn']('IF',db[_0x569926('0x29')][_0x569926('0xf')]('`state`\x20=\x204,\x20`holdtime`,\x20null'))),_0x569926('0x12')],[db['sequelize']['fn'](_0x569926('0xe'),db[_0x569926('0x29')]['fn']('IF',db['sequelize'][_0x569926('0xf')]('`state`\x20=\x204,\x20`talktime`,\x20null'))),'predictiveIntervalAvgTalktime']]})['then'](function(_0xf896fa){const _0x266d5b=_0x569926;logger['info'](_0x266d5b('0x3'),_0x423d6b),logger[_0x266d5b('0x2e')](_0x266d5b('0x3'),_0x423d6b,JSON[_0x266d5b('0x14')](_0xf896fa)),_0x510382(_0xf896fa);})[_0x569926('0xa')](function(_0x326faf){const _0x20668b=_0x569926;logger[_0x20668b('0x2f')](_0x20668b('0x3'),_0x326faf[_0x20668b('0x2b')],_0x423d6b),_0x3a38a1(_0x1af801[_0x20668b('0x2f')](0x1f4,_0x326faf[_0x20668b('0x2b')]));});});},exports['GetVoiceQueueHopperHistory']=function(_0x1c42ba){const _0x57a382=this;return new Promise(function(_0x27f4df,_0x5c0743){const _0x3d50=a154_0x3499;return db['CmHopperHistory']['findAll']({'raw':_0x1c42ba[_0x3d50('0x17')]?_0x1c42ba[_0x3d50('0x17')][_0x3d50('0x20')]===undefined?!![]:![]:!![],'where':_0x1c42ba[_0x3d50('0x17')]?_0x1c42ba[_0x3d50('0x17')]['where']||null:null,'attributes':[[_0x3d50('0x28'),_0x3d50('0x25')],[db['sequelize']['fn'](_0x3d50('0x1c'),db['sequelize']['fn']('IF',db[_0x3d50('0x29')]['literal']('`state`\x20=\x200,\x201,\x20null'))),_0x3d50('0x26')],[db[_0x3d50('0x29')]['fn'](_0x3d50('0x1c'),db[_0x3d50('0x29')]['fn']('IF',db[_0x3d50('0x29')][_0x3d50('0xf')]('`state`\x20=\x203,\x201,\x20null'))),_0x3d50('0x5')],[db['sequelize']['fn'](_0x3d50('0x1c'),db[_0x3d50('0x29')]['fn']('IF',db[_0x3d50('0x29')][_0x3d50('0xf')](_0x3d50('0x1e')))),_0x3d50('0x31')],[db[_0x3d50('0x29')]['fn']('COUNT',db['sequelize']['fn']('IF',db[_0x3d50('0x29')][_0x3d50('0xf')](_0x3d50('0x4')))),_0x3d50('0x27')],[db[_0x3d50('0x29')]['fn'](_0x3d50('0x1c'),db[_0x3d50('0x29')]['fn']('IF',db[_0x3d50('0x29')][_0x3d50('0xf')]('`state`\x20=\x208,\x201,\x20null'))),'outboundCongestionCallsDay'],[db[_0x3d50('0x29')]['fn'](_0x3d50('0x1c'),db[_0x3d50('0x29')]['fn']('IF',db[_0x3d50('0x29')][_0x3d50('0xf')]('`state`\x20=\x2010\x20,\x201,\x20null'))),_0x3d50('0x19')],[db[_0x3d50('0x29')]['fn'](_0x3d50('0x1c'),db[_0x3d50('0x29')]['fn']('IF',db['sequelize'][_0x3d50('0xf')](_0x3d50('0x21')))),_0x3d50('0x0')],[db['sequelize']['fn'](_0x3d50('0x1c'),db[_0x3d50('0x29')]['fn']('IF',db[_0x3d50('0x29')][_0x3d50('0xf')](_0x3d50('0x8')))),_0x3d50('0x11')],[db[_0x3d50('0x29')]['fn'](_0x3d50('0x1c'),db[_0x3d50('0x29')]['fn']('IF',db[_0x3d50('0x29')]['literal'](_0x3d50('0x1a')))),'outboundBlacklistCallsDay'],[db[_0x3d50('0x29')]['fn'](_0x3d50('0x1c'),db[_0x3d50('0x29')]['fn']('IF',db[_0x3d50('0x29')]['literal'](_0x3d50('0x9')))),_0x3d50('0x22')],[db['sequelize']['fn'](_0x3d50('0x1c'),db[_0x3d50('0x29')]['fn']('IF',db[_0x3d50('0x29')][_0x3d50('0xf')](_0x3d50('0x1')))),_0x3d50('0xd')],[db[_0x3d50('0x29')]['fn']('COUNT',db['sequelize']['fn']('IF',db['sequelize'][_0x3d50('0xf')](_0x3d50('0x6')))),'outboundAnswerAgiCallsDay'],[db['sequelize']['fn'](_0x3d50('0x1c'),db['sequelize']['fn']('IF',db['sequelize'][_0x3d50('0xf')]('`state`\x20=\x2020,\x201,\x20null'))),_0x3d50('0xd')],[db[_0x3d50('0x29')]['fn']('COUNT',db[_0x3d50('0x29')]['fn']('IF',db[_0x3d50('0x29')][_0x3d50('0xf')](_0x3d50('0x7')))),'outboundReCallsDay']],'group':[_0x3d50('0x28')]})[_0x3d50('0x1f')](function(_0x436a31){const _0x5ca121=_0x3d50;logger[_0x5ca121('0x16')](_0x5ca121('0x1b'),_0x1c42ba),logger[_0x5ca121('0x2e')](_0x5ca121('0x1b'),_0x1c42ba,JSON[_0x5ca121('0x14')](_0x436a31)),_0x27f4df(_0x436a31);})[_0x3d50('0xa')](function(_0x516f1d){const _0x59dbd4=_0x3d50;logger[_0x59dbd4('0x2f')](_0x59dbd4('0x1b'),_0x516f1d['message'],_0x1c42ba),_0x5c0743(_0x57a382['error'](0x1f4,_0x516f1d['message']));});});},exports[_0x53a9df('0x23')]=function(_0x3b3024){const _0x2a09f3=this;return new Promise(function(_0x4b95d8,_0x358ca7){const _0x349558=a154_0x3499;return db[_0x349558('0x18')][_0x349558('0x10')]({'raw':_0x3b3024[_0x349558('0x17')]?_0x3b3024[_0x349558('0x17')][_0x349558('0x20')]===undefined?!![]:![]:!![],'where':_0x3b3024[_0x349558('0x17')]?_0x3b3024[_0x349558('0x17')][_0x349558('0x24')]||null:null,'attributes':[[_0x349558('0x28'),_0x349558('0x25')],[db[_0x349558('0x29')]['fn'](_0x349558('0x1c'),db[_0x349558('0x29')][_0x349558('0x2')]('id')),_0x349558('0x30')],[db[_0x349558('0x29')]['fn'](_0x349558('0x1c'),db['sequelize']['fn']('IF',db[_0x349558('0x29')][_0x349558('0xf')]('`state`\x20=\x204,\x201,\x20null'))),_0x349558('0xc')]],'group':[_0x349558('0x28')]})[_0x349558('0x1f')](function(_0x4197a4){const _0x42d2eb=_0x349558;logger[_0x42d2eb('0x16')](_0x42d2eb('0x23'),_0x3b3024),logger[_0x42d2eb('0x2e')]('GetCampaignHopperHistory',_0x3b3024,JSON[_0x42d2eb('0x14')](_0x4197a4)),_0x4b95d8(_0x4197a4);})[_0x349558('0xa')](function(_0x4f7bb0){const _0x49ac16=_0x349558;logger['error']('GetCampaignHopperHistory',_0x4f7bb0[_0x49ac16('0x2b')],_0x3b3024),_0x358ca7(_0x2a09f3[_0x49ac16('0x2f')](0x1f4,_0x4f7bb0[_0x49ac16('0x2b')]));});});}; \ No newline at end of file +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 diff --git a/server/api/cmHopperHistory/index.js b/server/api/cmHopperHistory/index.js index 18b5dc0..82d75d2 100644 --- a/server/api/cmHopperHistory/index.js +++ b/server/api/cmHopperHistory/index.js @@ -1 +1 @@ -const a155_0x3466=['update','get','../../components/auth/service','isAuthenticated','exports','/describe','/:id','express','describe','index'];(function(_0x543b38,_0x346677){const _0x265dda=function(_0x38e430){while(--_0x38e430){_0x543b38['push'](_0x543b38['shift']());}};_0x265dda(++_0x346677);}(a155_0x3466,0x16f));const a155_0x265d=function(_0x543b38,_0x346677){_0x543b38=_0x543b38-0x0;let _0x265dda=a155_0x3466[_0x543b38];return _0x265dda;};const _0x2ed622=a155_0x265d;'use strict';const express=require(_0x2ed622('0x0')),router=express['Router'](),auth=require(_0x2ed622('0x5')),controller=require('./cmHopperHistory.controller');router[_0x2ed622('0x4')]('/',auth['isAuthenticated'](),controller[_0x2ed622('0x2')]),router[_0x2ed622('0x4')](_0x2ed622('0x8'),auth[_0x2ed622('0x6')](),controller[_0x2ed622('0x1')]),router[_0x2ed622('0x4')](_0x2ed622('0x9'),auth[_0x2ed622('0x6')](),controller['show']),router['post']('/',auth[_0x2ed622('0x6')](),controller['create']),router['put']('/:id',auth[_0x2ed622('0x6')](),controller[_0x2ed622('0x3')]),module[_0x2ed622('0x7')]=router; \ No newline at end of file +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 diff --git a/server/api/cmList/cmList.attributes.js b/server/api/cmList/cmList.attributes.js index 5e8f5f8..afda2f2 100644 --- a/server/api/cmList/cmList.attributes.js +++ b/server/api/cmList/cmList.attributes.js @@ -1 +1 @@ -const a156_0x8f5a=['sequelize','name','STRING','exports'];(function(_0x3f7148,_0x8f5a89){const _0x151e18=function(_0x3acce8){while(--_0x3acce8){_0x3f7148['push'](_0x3f7148['shift']());}};_0x151e18(++_0x8f5a89);}(a156_0x8f5a,0x15c));const a156_0x151e=function(_0x3f7148,_0x8f5a89){_0x3f7148=_0x3f7148-0x0;let _0x151e18=a156_0x8f5a[_0x3f7148];return _0x151e18;};const _0x1f9492=a156_0x151e;'use strict';const Sequelize=require(_0x1f9492('0x0'));module[_0x1f9492('0x3')]={'name':{'type':Sequelize['STRING'],'unique':_0x1f9492('0x1'),'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize[_0x1f9492('0x2')]},'dialPrefix':{'type':Sequelize[_0x1f9492('0x2')]}}; \ No newline at end of file +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 diff --git a/server/api/cmList/cmList.controller.js b/server/api/cmList/cmList.controller.js index b5a4b99..d8c4e32 100644 --- a/server/api/cmList/cmList.controller.js +++ b/server/api/cmList/cmList.controller.js @@ -1 +1 @@ -const a157_0x1188=['ids','Content-disposition','offset','Malformed\x20request\x20syntax','addColumn','success','omit','key','model','getAgents','/tmp/list_%d_%s.csv','limit','../../components/parsers/qs','get','sort','getContacts','raw','count','type','UserProfileSection','undefined','fieldName','then','userCmList:remove','errors','body','transaction','pick','Sequelize','catch','util','emit','addDisposition','params','ListId','autoAssociation','error','Content-Range','send','writeFileSync','userCmList:save','text','sendStatus','list_%d_%s.csv','TEXT','nolimit','attachment;\x20filename=','dataValues','show','sequelize','order','CmList','getContactsCsv','number','CmCustomField','VIRTUAL','like','include','getCustomFields','length','Disposition','INTEGER','includeAll','query','destroy','switch','rows','text/csv','push','removeAgents','rawAttributes','userProfileId','addCustomField','User','addAgents','map','tags','filters','user','isArray','update','where','end','removeDispositions','set','index','filter','merge','status','download','setHeader','cf_%s','cf_%d','intersection','isEmpty','attributes','CmContact','UserProfileResource','message','cm_contacts','each','../../config/logger','Unable\x20to\x20retrieve\x20the\x20current\x20user','lodash','addCustomFields','json','name','options','role','findOne','fields','format','CustomFields','create','describe','keys','concat','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','join'];(function(_0x329275,_0x1188fe){const _0x1d67b7=function(_0xf55f0b){while(--_0xf55f0b){_0x329275['push'](_0x329275['shift']());}};_0x1d67b7(++_0x1188fe);}(a157_0x1188,0x120));const a157_0x1d67=function(_0x329275,_0x1188fe){_0x329275=_0x329275-0x0;let _0x1d67b7=a157_0x1188[_0x329275];return _0x1d67b7;};const _0x1cdb71=a157_0x1d67;'use strict';const util=require(_0x1cdb71('0x63')),fs=require('fs'),_=require(_0x1cdb71('0x35')),toCsv=require('to-csv'),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require(_0x1cdb71('0x51')),logger=require(_0x1cdb71('0x33'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x1cdb71('0x76'));require('./cmList.socket')['register'](socket);function respondWithStatusCode(_0xf55f0b,_0x1b8a8a){return _0x1b8a8a=_0x1b8a8a||0xcc,function(_0x53499a){const _0x41df73=a157_0x1d67;if(_0x53499a)return _0xf55f0b['sendStatus'](_0x1b8a8a);return _0xf55f0b[_0x41df73('0x26')](_0x1b8a8a)[_0x41df73('0x20')]();};}function respondWithResult(_0x4705d7,_0x5762b6){return _0x5762b6=_0x5762b6||0xc8,function(_0x36017d){const _0x2de985=a157_0x1d67;if(_0x36017d)return _0x4705d7['status'](_0x5762b6)[_0x2de985('0x37')](_0x36017d);};}function respondWithFilteredResult(_0x475c06,_0x221b77){return function(_0x11298c){const _0x80bb6a=a157_0x1d67;if(_0x11298c){const _0x24ee64=_0x11298c['count'],_0x39e2c2=_0x221b77['offset'];let _0x56aab7=_0x221b77['offset']+_0x221b77[_0x80bb6a('0x50')],_0x336857;return _0x56aab7>=_0x24ee64?(_0x56aab7=_0x24ee64,_0x336857=0xc8):_0x336857=0xce,_0x475c06[_0x80bb6a('0x26')](_0x336857),_0x475c06[_0x80bb6a('0x22')](_0x80bb6a('0x6a'),_0x39e2c2+'-'+_0x56aab7+'/'+_0x24ee64)[_0x80bb6a('0x37')](_0x11298c);}return null;};}function saveUpdates(_0x20a5b3){return function(_0x459487){const _0x40e0a0=a157_0x1d67;if(_0x459487)return _0x459487[_0x40e0a0('0x1e')](_0x20a5b3)[_0x40e0a0('0x5b')](function(_0x2519fd){return _0x2519fd;});return null;};}function removeEntity(_0x671af9){return function(_0x4ab005){const _0x303536=a157_0x1d67;if(_0x4ab005)return _0x4ab005[_0x303536('0xe')]()[_0x303536('0x5b')](function(){const _0x22e144=_0x303536,_0xc0a835=_0x4ab005[_0x22e144('0x52')]({'plain':!![]}),_0x3cb884='Lists';return db['UserProfileResource'][_0x22e144('0xe')]({'where':{'type':_0x3cb884,'resourceId':_0xc0a835['id']}})[_0x22e144('0x5b')](function(){return _0x4ab005;});})[_0x303536('0x5b')](function(){const _0x4a6cff=_0x303536;_0x671af9[_0x4a6cff('0x26')](0xcc)[_0x4a6cff('0x20')]();});};}function handleEntityNotFound(_0x401109){return function(_0x8a3bc1){const _0x1d4b05=a157_0x1d67;return!_0x8a3bc1&&_0x401109[_0x1d4b05('0x6f')](0x194),_0x8a3bc1;};}function handleError(_0x4cb66a,_0x1fd235){return _0x1fd235=_0x1fd235||0x1f4,function(_0x3c520c){const _0x1d1f01=a157_0x1d67;logger['error'](_0x3c520c['stack']),_0x3c520c[_0x1d1f01('0x38')]&&delete _0x3c520c[_0x1d1f01('0x38')],_0x4cb66a[_0x1d1f01('0x26')](_0x1fd235)[_0x1d1f01('0x6b')](_0x3c520c);};}exports[_0x1cdb71('0x23')]=function(_0x4d7110,_0x2a1730){const _0x4ee3ec=_0x1cdb71;let _0x2ad380={};const _0x255f10={},_0x5a9039={'count':0x0,'rows':[]},_0x326bc1=_[_0x4ee3ec('0x19')](db[_0x4ee3ec('0x1')][_0x4ee3ec('0x14')],function(_0x4d9d79){const _0x124c38=_0x4ee3ec;return{'name':_0x4d9d79[_0x124c38('0x5a')],'type':_0x4d9d79[_0x124c38('0x57')][_0x124c38('0x4c')]};});_0x255f10[_0x4ee3ec('0x4d')]=_[_0x4ee3ec('0x19')](_0x326bc1,_0x4ee3ec('0x38')),_0x255f10[_0x4ee3ec('0xd')]=_[_0x4ee3ec('0x41')](_0x4d7110[_0x4ee3ec('0xd')]),_0x255f10[_0x4ee3ec('0x1b')]=_['intersection'](_0x255f10[_0x4ee3ec('0x4d')],_0x255f10[_0x4ee3ec('0xd')]),_0x2ad380[_0x4ee3ec('0x2d')]=_[_0x4ee3ec('0x2b')](_0x255f10[_0x4ee3ec('0x4d')],qs[_0x4ee3ec('0x3c')](_0x4d7110[_0x4ee3ec('0xd')]['fields'])),_0x2ad380[_0x4ee3ec('0x2d')]=_0x2ad380['attributes'][_0x4ee3ec('0x9')]?_0x2ad380[_0x4ee3ec('0x2d')]:_0x255f10[_0x4ee3ec('0x4d')];typeof _0x4d7110[_0x4ee3ec('0xd')][_0x4ee3ec('0x72')]==='undefined'&&(_0x2ad380['limit']=qs[_0x4ee3ec('0x50')](_0x4d7110[_0x4ee3ec('0xd')][_0x4ee3ec('0x50')]),_0x2ad380[_0x4ee3ec('0x47')]=qs[_0x4ee3ec('0x47')](_0x4d7110['query'][_0x4ee3ec('0x47')]));_0x2ad380['order']=qs[_0x4ee3ec('0x53')](_0x4d7110[_0x4ee3ec('0xd')][_0x4ee3ec('0x53')]),_0x2ad380[_0x4ee3ec('0x1f')]=qs['filters'](_[_0x4ee3ec('0x60')](_0x4d7110[_0x4ee3ec('0xd')],_0x255f10[_0x4ee3ec('0x1b')]),_0x326bc1);_0x4d7110[_0x4ee3ec('0xd')][_0x4ee3ec('0x24')]&&(_0x2ad380[_0x4ee3ec('0x1f')]=_[_0x4ee3ec('0x25')](_0x2ad380['where'],{[Op['or']]:_[_0x4ee3ec('0x19')](_0x326bc1,function(_0xaa2e7d){const _0x1ae62f=_0x4ee3ec;if(_0xaa2e7d[_0x1ae62f('0x57')]!==_0x1ae62f('0x5')){const _0xee061a={};return _0xee061a[_0xaa2e7d[_0x1ae62f('0x38')]]={[Op[_0x1ae62f('0x6')]]:'%'+_0x4d7110['query'][_0x1ae62f('0x24')]+'%'},_0xee061a;}})}));_0x2ad380=_[_0x4ee3ec('0x25')]({},_0x2ad380,_0x4d7110[_0x4ee3ec('0x39')]);const _0x409474={'where':_0x2ad380[_0x4ee3ec('0x1f')]};return db['CmList'][_0x4ee3ec('0x56')](_0x409474)['then'](function(_0x51959b){const _0x1553dc=_0x4ee3ec;return _0x5a9039[_0x1553dc('0x56')]=_0x51959b,_0x4d7110[_0x1553dc('0xd')][_0x1553dc('0xc')]&&(_0x2ad380['include']=[{'all':!![]}]),db['CmList']['findAll'](_0x2ad380);})[_0x4ee3ec('0x5b')](function(_0x37a4f1){const _0x228008=_0x4ee3ec;return _0x5a9039[_0x228008('0x10')]=_0x37a4f1,_0x5a9039;})[_0x4ee3ec('0x5b')](respondWithFilteredResult(_0x2a1730,_0x2ad380))['catch'](handleError(_0x2a1730,null));},exports[_0x1cdb71('0x75')]=function(_0x2325f0,_0x573e4c){const _0x30a70c=_0x1cdb71;let _0xf122a7={'raw':![],'where':{'id':_0x2325f0[_0x30a70c('0x66')]['id']}};const _0x4010ea={};return _0x4010ea[_0x30a70c('0x4d')]=_[_0x30a70c('0x41')](db[_0x30a70c('0x1')][_0x30a70c('0x14')]),_0x4010ea['query']=_[_0x30a70c('0x41')](_0x2325f0[_0x30a70c('0xd')]),_0x4010ea['filters']=_[_0x30a70c('0x2b')](_0x4010ea[_0x30a70c('0x4d')],_0x4010ea[_0x30a70c('0xd')]),_0xf122a7[_0x30a70c('0x2d')]=_[_0x30a70c('0x2b')](_0x4010ea[_0x30a70c('0x4d')],qs['fields'](_0x2325f0[_0x30a70c('0xd')]['fields'])),_0xf122a7[_0x30a70c('0x2d')]=_0xf122a7['attributes'][_0x30a70c('0x9')]?_0xf122a7['attributes']:_0x4010ea[_0x30a70c('0x4d')],_0x2325f0[_0x30a70c('0xd')][_0x30a70c('0xc')]&&(_0xf122a7[_0x30a70c('0x7')]=[{'all':!![]}]),_0xf122a7=_[_0x30a70c('0x25')]({},_0xf122a7,_0x2325f0[_0x30a70c('0x39')]),db[_0x30a70c('0x1')]['findOne'](_0xf122a7)['then'](handleEntityNotFound(_0x573e4c,null))[_0x30a70c('0x5b')](respondWithResult(_0x573e4c,null))['catch'](handleError(_0x573e4c,null));},exports[_0x1cdb71('0x3f')]=function(_0x427bc7,_0x4dd33b){const _0x15bc2d=_0x1cdb71;return db[_0x15bc2d('0x1')][_0x15bc2d('0x3f')](_0x427bc7['body'],{})[_0x15bc2d('0x5b')](function(_0x279924){const _0x4b5544=_0x15bc2d,_0x19cece=_0x427bc7[_0x4b5544('0x1c')]['get']({'plain':!![]});if(!_0x19cece)throw new Error(_0x4b5544('0x34'));if(_0x19cece[_0x4b5544('0x3a')]===_0x4b5544('0x1c')){const _0x45ffb9=_0x279924[_0x4b5544('0x52')]({'plain':!![]}),_0x5aaf12='Lists';return db[_0x4b5544('0x58')][_0x4b5544('0x3b')]({'where':{'name':_0x5aaf12,'userProfileId':_0x19cece[_0x4b5544('0x15')]},'raw':!![]})[_0x4b5544('0x5b')](function(_0x11108d){const _0x18183e=_0x4b5544;return _0x11108d&&_0x11108d[_0x18183e('0x68')]===0x0?db[_0x18183e('0x2f')][_0x18183e('0x3f')]({'name':_0x45ffb9[_0x18183e('0x38')],'resourceId':_0x45ffb9['id'],'type':_0x11108d[_0x18183e('0x38')],'sectionId':_0x11108d['id']},{})['then'](function(){return _0x279924;}):_0x279924;})[_0x4b5544('0x62')](function(_0x1a1ef8){const _0x2d1bd9=_0x4b5544;logger[_0x2d1bd9('0x69')](_0x2d1bd9('0x43'),_0x1a1ef8);throw _0x1a1ef8;});}return _0x279924;})[_0x15bc2d('0x5b')](respondWithResult(_0x4dd33b,0xc9))[_0x15bc2d('0x62')](handleError(_0x4dd33b,null));},exports[_0x1cdb71('0x1e')]=function(_0x59d652,_0x33024e){const _0x500b9b=_0x1cdb71;return _0x59d652['body']['id']&&delete _0x59d652['body']['id'],db[_0x500b9b('0x1')][_0x500b9b('0x3b')]({'where':{'id':_0x59d652[_0x500b9b('0x66')]['id']}})[_0x500b9b('0x5b')](handleEntityNotFound(_0x33024e,null))[_0x500b9b('0x5b')](saveUpdates(_0x59d652[_0x500b9b('0x5e')],null))['then'](respondWithResult(_0x33024e,null))['catch'](handleError(_0x33024e,null));},exports[_0x1cdb71('0xe')]=function(_0x451e69,_0x151e82){const _0x2ceba4=_0x1cdb71;return db[_0x2ceba4('0x1')][_0x2ceba4('0x3b')]({'where':{'id':_0x451e69['params']['id']}})[_0x2ceba4('0x5b')](handleEntityNotFound(_0x151e82,null))[_0x2ceba4('0x5b')](removeEntity(_0x151e82,null))['catch'](handleError(_0x151e82,null));},exports[_0x1cdb71('0x40')]=function(_0x5d3849,_0x497be7){const _0x5392f5=_0x1cdb71;return db[_0x5392f5('0x1')][_0x5392f5('0x40')]()[_0x5392f5('0x5b')](respondWithResult(_0x497be7,null))['catch'](handleError(_0x497be7,null));},exports[_0x1cdb71('0x65')]=function(_0x3e4016,_0x5e8f05){const _0x40da35=_0x1cdb71;return _0x3e4016[_0x40da35('0x5e')]['id']&&delete _0x3e4016[_0x40da35('0x5e')]['id'],db['CmList'][_0x40da35('0x3b')]({'where':{'id':_0x3e4016[_0x40da35('0x66')]['id']}})[_0x40da35('0x5b')](handleEntityNotFound(_0x5e8f05,null))['then'](function(_0xffb4bb){const _0x363ff4=_0x40da35;if(_0xffb4bb)return _0x3e4016[_0x363ff4('0x5e')][_0x363ff4('0x67')]=_0xffb4bb['id'],db[_0x363ff4('0xa')][_0x363ff4('0x3f')](_0x3e4016[_0x363ff4('0x5e')]);})['then'](respondWithResult(_0x5e8f05,null))[_0x40da35('0x62')](handleError(_0x5e8f05,null));},exports['getDispositions']=function(_0x362cd7,_0x4e30a7){const _0x38b7df=_0x1cdb71;let _0xdbe8a3={'raw':![],'where':{}};const _0x17bc17={},_0x2dd704={'count':0x0,'rows':[]};return db[_0x38b7df('0x1')][_0x38b7df('0x3b')]({'where':{'id':_0x362cd7[_0x38b7df('0x66')]['id']}})[_0x38b7df('0x5b')](handleEntityNotFound(_0x4e30a7,null))[_0x38b7df('0x5b')](function(_0x25fa29){const _0x562989=_0x38b7df;if(_0x25fa29)return _0x17bc17[_0x562989('0x4d')]=_['keys'](db[_0x562989('0xa')][_0x562989('0x14')]),_0x17bc17[_0x562989('0xd')]=_[_0x562989('0x41')](_0x362cd7['query']),_0x17bc17[_0x562989('0x1b')]=_[_0x562989('0x2b')](_0x17bc17[_0x562989('0x4d')],_0x17bc17[_0x562989('0xd')]),_0xdbe8a3['attributes']=_['intersection'](_0x17bc17[_0x562989('0x4d')],qs[_0x562989('0x3c')](_0x362cd7[_0x562989('0xd')][_0x562989('0x3c')])),_0xdbe8a3[_0x562989('0x2d')]=_0xdbe8a3['attributes']['length']?_0xdbe8a3[_0x562989('0x2d')]:_0x17bc17[_0x562989('0x4d')],typeof _0x362cd7[_0x562989('0xd')][_0x562989('0x72')]==='undefined'&&(_0xdbe8a3[_0x562989('0x50')]=qs[_0x562989('0x50')](_0x362cd7[_0x562989('0xd')]['limit']),_0xdbe8a3[_0x562989('0x47')]=qs[_0x562989('0x47')](_0x362cd7[_0x562989('0xd')]['offset'])),_0xdbe8a3['order']=qs[_0x562989('0x53')](_0x362cd7['query'][_0x562989('0x53')]),_0xdbe8a3[_0x562989('0x1f')]=qs[_0x562989('0x1b')](_['pick'](_0x362cd7[_0x562989('0xd')],_0x17bc17[_0x562989('0x1b')])),_0xdbe8a3[_0x562989('0x1f')][_0x562989('0x67')]=_0x25fa29['id'],_0x362cd7['query']['filter']&&(_0xdbe8a3[_0x562989('0x1f')]=_[_0x562989('0x25')](_0xdbe8a3[_0x562989('0x1f')],{[Op['or']]:_['map'](_0xdbe8a3[_0x562989('0x2d')],function(_0x210d83){const _0x8f2b9c=_0x562989,_0x4c559d={};return _0x4c559d[_0x210d83]={[Op[_0x8f2b9c('0x6')]]:'%'+_0x362cd7[_0x8f2b9c('0xd')]['filter']+'%'},_0x4c559d;})})),_0xdbe8a3=_[_0x562989('0x25')]({},_0xdbe8a3,_0x362cd7['options']),db[_0x562989('0xa')][_0x562989('0x56')]({'where':_0xdbe8a3[_0x562989('0x1f')]})[_0x562989('0x5b')](function(_0x22afb7){const _0xc6b589=_0x562989;return _0x2dd704['count']=_0x22afb7,_0x362cd7[_0xc6b589('0xd')][_0xc6b589('0xc')]&&(_0xdbe8a3[_0xc6b589('0x7')]=[{'all':!![]}]),db[_0xc6b589('0xa')]['findAll'](_0xdbe8a3);})[_0x562989('0x5b')](function(_0x322327){return _0x2dd704['rows']=_0x322327,_0x2dd704;});})['then'](respondWithFilteredResult(_0x4e30a7,_0xdbe8a3))[_0x38b7df('0x62')](handleError(_0x4e30a7,null));},exports[_0x1cdb71('0x21')]=function(_0xbf3236,_0x4bcf67){const _0x4ffc12=_0x1cdb71;return db[_0x4ffc12('0x1')][_0x4ffc12('0x3b')]({'where':{'id':_0xbf3236[_0x4ffc12('0x66')]['id']}})[_0x4ffc12('0x5b')](handleEntityNotFound(_0x4bcf67,null))[_0x4ffc12('0x5b')](function(_0x49cf4d){const _0x1546e9=_0x4ffc12;if(_0x49cf4d)return _0x49cf4d['removeDispositions'](_0xbf3236[_0x1546e9('0xd')]['ids']);})[_0x4ffc12('0x5b')](respondWithStatusCode(_0x4bcf67,null))[_0x4ffc12('0x62')](handleError(_0x4bcf67,null));},exports['addContacts']=function(_0xdd892f,_0x5b00f7){const _0x19eb4c=_0x1cdb71;return db[_0x19eb4c('0x1')][_0x19eb4c('0x3b')]({'where':{'id':_0xdd892f[_0x19eb4c('0x66')]['id']}})[_0x19eb4c('0x5b')](handleEntityNotFound(_0x5b00f7,null))['then'](function(_0x17e1a2){const _0xb882a1=_0x19eb4c;if(_0x17e1a2){const _0x1327ca=[],_0x27f029={'success':[],'errors':[]};return db['CmContact']['describe']()[_0xb882a1('0x5b')](function(_0xd6f76b){const _0x42e99f=_0xb882a1;_0xdd892f['body'][_0x42e99f('0x1a')]&&_[_0x42e99f('0x1d')](_0xdd892f[_0x42e99f('0x5e')][_0x42e99f('0x1a')])?_0xdd892f[_0x42e99f('0x5e')][_0x42e99f('0x1a')][_0x42e99f('0x9')]?_0xdd892f[_0x42e99f('0x5e')]['tags']=_0xdd892f[_0x42e99f('0x5e')][_0x42e99f('0x1a')][_0x42e99f('0x44')](';')+';':_0xdd892f[_0x42e99f('0x5e')][_0x42e99f('0x1a')]=null:_0xdd892f[_0x42e99f('0x5e')][_0x42e99f('0x1a')]=null;if(_0xdd892f[_0x42e99f('0x5e')]&&_[_0x42e99f('0x1d')](_0xdd892f[_0x42e99f('0x5e')])){for(let _0x521834=0x0;_0x521834<_0xdd892f[_0x42e99f('0x5e')][_0x42e99f('0x9')];_0x521834+=0x1){_0xdd892f[_0x42e99f('0x5e')][_0x521834][_0x42e99f('0x67')]=_0xdd892f['params']['id'],_0x1327ca[_0x42e99f('0x12')](_0xdd892f['body'][_0x521834]);}return Promise[_0x42e99f('0x32')](_0x1327ca,function(_0x4d6f07){const _0x3b4898=_0x42e99f;return db['CmContact'][_0x3b4898('0x3f')](_[_0x3b4898('0x4b')](_0x4d6f07,[_0x3b4898('0x45'),'id'])||{},{'fields':_[_0x3b4898('0x41')](_0xd6f76b),'raw':!![]})[_0x3b4898('0x5b')](function(_0x579b32){const _0x5c4771=_0x3b4898;_0x27f029[_0x5c4771('0x4a')]['push'](_0x579b32[_0x5c4771('0x74')]);})[_0x3b4898('0x62')](function(_0x5ea9d5){const _0x35a875=_0x3b4898;_0x27f029[_0x35a875('0x5d')][_0x35a875('0x12')]({'data':_0x4d6f07,'error':_0x5ea9d5[_0x35a875('0x30')]});});})[_0x42e99f('0x5b')](function(){return _0x27f029;})[_0x42e99f('0x62')](function(_0x2e9192){return _0x2e9192;});}else _0x5b00f7[_0x42e99f('0x26')](0x190)[_0x42e99f('0x37')]({'message':_0x42e99f('0x48')});});}})['then'](respondWithResult(_0x5b00f7,null))['catch'](handleError(_0x5b00f7,null));},exports[_0x1cdb71('0x54')]=function(_0x4ef28e,_0xa19dfd){const _0x5500b4=_0x1cdb71;let _0x16587;return db[_0x5500b4('0x1')]['findOne']({'where':{'id':_0x4ef28e[_0x5500b4('0x66')]['id']},'include':[{'model':db[_0x5500b4('0x4')],'as':_0x5500b4('0x3e')}]})[_0x5500b4('0x5b')](handleEntityNotFound(_0xa19dfd,null))['then'](function(_0xa09ff1){const _0xfbb7d6=_0x5500b4;if(_0xa09ff1)return _0x16587=_0xa09ff1,db['CmContact'][_0xfbb7d6('0x14')];})[_0x5500b4('0x5b')](function(_0x34df69){const _0x15ee6b=_0x5500b4;if(_0x34df69){let _0x40bdfa={};const _0x3e6b98={};return _0x3e6b98['model']=_['concat'](_['keys'](_0x34df69),_[_0x15ee6b('0x19')](_0x16587[_0x15ee6b('0x3e')],function(_0x1a5308){const _0x5c6819=_0x15ee6b;return util[_0x5c6819('0x3d')](_0x5c6819('0x2a'),_0x1a5308['id']);})),_0x3e6b98[_0x15ee6b('0xd')]=_['keys'](_0x4ef28e[_0x15ee6b('0xd')]),_0x3e6b98[_0x15ee6b('0x1b')]=_[_0x15ee6b('0x2b')](_0x3e6b98[_0x15ee6b('0x4d')],_0x3e6b98[_0x15ee6b('0xd')]),_0x40bdfa['attributes']=_[_0x15ee6b('0x2b')](_0x3e6b98[_0x15ee6b('0x4d')],qs[_0x15ee6b('0x3c')](_0x4ef28e[_0x15ee6b('0xd')][_0x15ee6b('0x3c')])),_0x40bdfa[_0x15ee6b('0x2d')]=_0x40bdfa[_0x15ee6b('0x2d')][_0x15ee6b('0x9')]?_0x40bdfa['attributes']:_0x3e6b98['model'],typeof _0x4ef28e['query']['nolimit']==='undefined'&&(_0x40bdfa[_0x15ee6b('0x50')]=qs[_0x15ee6b('0x50')](_0x4ef28e[_0x15ee6b('0xd')]['limit']),_0x40bdfa[_0x15ee6b('0x47')]=qs[_0x15ee6b('0x47')](_0x4ef28e[_0x15ee6b('0xd')][_0x15ee6b('0x47')])),_0x40bdfa[_0x15ee6b('0x0')]=qs[_0x15ee6b('0x53')](_0x4ef28e[_0x15ee6b('0xd')]['sort']),_0x40bdfa[_0x15ee6b('0x1f')]=qs[_0x15ee6b('0x1b')](_[_0x15ee6b('0x60')](_0x4ef28e[_0x15ee6b('0xd')],_0x3e6b98[_0x15ee6b('0x1b')])),_0x40bdfa[_0x15ee6b('0x55')]=!![],_0x4ef28e[_0x15ee6b('0xd')]['filter']&&(_0x40bdfa[_0x15ee6b('0x1f')]=_[_0x15ee6b('0x25')](_0x40bdfa[_0x15ee6b('0x1f')],{[Op['or']]:_[_0x15ee6b('0x19')](_0x40bdfa[_0x15ee6b('0x2d')],function(_0x1f95ac){const _0x185c46=_0x15ee6b,_0x15af59={};return _0x15af59[_0x1f95ac]={[Op[_0x185c46('0x6')]]:'%'+_0x4ef28e['query']['filter']+'%'},_0x15af59;})})),_0x40bdfa=_[_0x15ee6b('0x25')]({},_0x40bdfa,_0x4ef28e['options']),_0x16587[_0x15ee6b('0x54')](_0x40bdfa);}})['then'](respondWithResult(_0xa19dfd,null))[_0x5500b4('0x62')](handleError(_0xa19dfd,null));},exports[_0x1cdb71('0x2')]=function(_0x5e3dd5,_0xb48f27){const _0x1a74d0=_0x1cdb71;let _0x191955;return db[_0x1a74d0('0x1')][_0x1a74d0('0x3b')]({'where':{'id':_0x5e3dd5[_0x1a74d0('0x66')]['id']},'include':[{'model':db['CmCustomField'],'as':_0x1a74d0('0x3e')}]})['then'](handleEntityNotFound(_0xb48f27,null))['then'](function(_0x25154a){const _0x14aa6c=_0x1a74d0;if(_0x25154a)return _0x191955=_0x25154a,db[_0x14aa6c('0x2e')][_0x14aa6c('0x14')];})['then'](function(_0x3c044c){const _0x555efd=_0x1a74d0;if(_0x3c044c){let _0x2c158d={};const _0x427815={};return _0x427815[_0x555efd('0x4d')]=_[_0x555efd('0x42')](_[_0x555efd('0x41')](_0x3c044c),_[_0x555efd('0x19')](_0x191955[_0x555efd('0x3e')],function(_0x1ed7f6){const _0x544d60=_0x555efd;return util[_0x544d60('0x3d')](_0x544d60('0x2a'),_0x1ed7f6['id']);})),_0x427815[_0x555efd('0xd')]=_[_0x555efd('0x41')](_0x5e3dd5['query']),_0x427815[_0x555efd('0x1b')]=_[_0x555efd('0x2b')](_0x427815[_0x555efd('0x4d')],_0x427815[_0x555efd('0xd')]),_0x2c158d[_0x555efd('0x2d')]=_[_0x555efd('0x2b')](_0x427815['model'],qs[_0x555efd('0x3c')](_0x5e3dd5['query'][_0x555efd('0x3c')])),_0x2c158d[_0x555efd('0x2d')]=_0x2c158d[_0x555efd('0x2d')][_0x555efd('0x9')]?_0x2c158d[_0x555efd('0x2d')]:_0x427815[_0x555efd('0x4d')],typeof _0x5e3dd5[_0x555efd('0xd')][_0x555efd('0x72')]===_0x555efd('0x59')&&(_0x2c158d['limit']=qs[_0x555efd('0x50')](_0x5e3dd5[_0x555efd('0xd')][_0x555efd('0x50')]),_0x2c158d[_0x555efd('0x47')]=qs['offset'](_0x5e3dd5[_0x555efd('0xd')][_0x555efd('0x47')])),_0x2c158d[_0x555efd('0x0')]=qs['sort'](_0x5e3dd5['query'][_0x555efd('0x53')]),_0x2c158d[_0x555efd('0x1f')]=qs['filters'](_[_0x555efd('0x60')](_0x5e3dd5[_0x555efd('0xd')],_0x427815[_0x555efd('0x1b')])),_0x2c158d[_0x555efd('0x55')]=!![],_0x5e3dd5[_0x555efd('0xd')][_0x555efd('0x24')]&&(_0x2c158d['where']=_[_0x555efd('0x25')](_0x2c158d['where'],{[Op['or']]:_[_0x555efd('0x19')](_0x2c158d[_0x555efd('0x2d')],function(_0xdd1d17){const _0x4da559=_0x555efd,_0x29ad7d={};return _0x29ad7d[_0xdd1d17]={[Op['like']]:'%'+_0x5e3dd5[_0x4da559('0xd')]['filter']+'%'},_0x29ad7d;})})),_0x2c158d=_[_0x555efd('0x25')]({},_0x2c158d,_0x5e3dd5['options']),_0x191955['getContacts'](_0x2c158d);}})[_0x1a74d0('0x5b')](function(_0x4dd36a){const _0x1f675b=_0x1a74d0;if(!_[_0x1f675b('0x2c')](_0x4dd36a)){const _0x453284=toCsv(_0x4dd36a),_0x1fd491=Date['now']();return fs[_0x1f675b('0x6c')](util[_0x1f675b('0x3d')](_0x1f675b('0x4f'),_0x191955['id'],_0x1fd491),_0x453284),_0xb48f27[_0x1f675b('0x28')](_0x1f675b('0x46'),_0x1f675b('0x73')+util['format'](_0x1f675b('0x70'),_0x191955['id'],_0x1fd491)),_0xb48f27[_0x1f675b('0x28')]('Content-type',_0x1f675b('0x11')),_0xb48f27[_0x1f675b('0x27')](util['format'](_0x1f675b('0x4f'),_0x191955['id'],_0x1fd491));}else return _0xb48f27[_0x1f675b('0x6f')](0xcc);})['catch'](handleError(_0xb48f27,null));},exports[_0x1cdb71('0x16')]=function(_0x31b017,_0x2f4551){const _0x16e9b8=_0x1cdb71;let _0x1f6ad5;return delete _0x31b017['body']['id'],db['CmList']['findOne']({'where':{'id':_0x31b017['params']['id']}})[_0x16e9b8('0x5b')](handleEntityNotFound(_0x2f4551,null))['then'](function(_0x1c033b){const _0x5e5e8a=_0x16e9b8;if(_0x1c033b)return db[_0x5e5e8a('0x76')][_0x5e5e8a('0x5f')](function(_0x48f0f1){const _0x3a64b0=_0x5e5e8a;return db[_0x3a64b0('0x4')]['create'](_0x31b017['body'],{'transaction':_0x48f0f1})[_0x3a64b0('0x5b')](function(_0x4d4e60){const _0x5bcc98=_0x3a64b0;return _0x1f6ad5=_0x4d4e60,_0x1c033b[_0x5bcc98('0x36')](_0x4d4e60,{'transaction':_0x48f0f1});})[_0x3a64b0('0x5b')](function(){const _0x50417d=_0x3a64b0,_0x4b36e5={'type':db['Sequelize'][_0x50417d('0x71')],'transaction':_0x48f0f1};switch(_0x31b017[_0x50417d('0x5e')][_0x50417d('0x57')]){case _0x50417d('0x6e'):_0x4b36e5[_0x50417d('0x57')]=db[_0x50417d('0x61')][_0x50417d('0x71')];break;case _0x50417d('0x3'):_0x4b36e5['type']=db['Sequelize'][_0x50417d('0xb')];break;case _0x50417d('0xf'):_0x4b36e5[_0x50417d('0x57')]=db[_0x50417d('0x61')]['BOOLEAN'],_0x4b36e5['defaultValue']=![];break;default:}return db[_0x50417d('0x76')]['queryInterface'][_0x50417d('0x49')](_0x50417d('0x31'),util['format'](_0x50417d('0x29'),_0x1f6ad5['id']),_0x4b36e5);})['then'](function(){return _0x1f6ad5;});});})['then'](respondWithResult(_0x2f4551,null))[_0x16e9b8('0x62')](handleError(_0x2f4551,null));},exports[_0x1cdb71('0x8')]=function(_0x27cec3,_0x4ea2c5){const _0x5ceafb=_0x1cdb71;let _0x11590c={};const _0x164f6e={};return db[_0x5ceafb('0x1')]['findOne']({'where':{'id':_0x27cec3[_0x5ceafb('0x66')]['id']}})['then'](handleEntityNotFound(_0x4ea2c5,null))[_0x5ceafb('0x5b')](function(_0x1eb4e1){const _0x3c8e74=_0x5ceafb;if(_0x1eb4e1)return _0x164f6e[_0x3c8e74('0x4d')]=_[_0x3c8e74('0x41')](db[_0x3c8e74('0x4')][_0x3c8e74('0x14')]),_0x164f6e[_0x3c8e74('0xd')]=_[_0x3c8e74('0x41')](_0x27cec3[_0x3c8e74('0xd')]),_0x164f6e['filters']=_[_0x3c8e74('0x2b')](_0x164f6e[_0x3c8e74('0x4d')],_0x164f6e[_0x3c8e74('0xd')]),_0x11590c[_0x3c8e74('0x2d')]=_['intersection'](_0x164f6e[_0x3c8e74('0x4d')],qs[_0x3c8e74('0x3c')](_0x27cec3[_0x3c8e74('0xd')][_0x3c8e74('0x3c')])),_0x11590c[_0x3c8e74('0x2d')]=_0x11590c[_0x3c8e74('0x2d')][_0x3c8e74('0x9')]?_0x11590c[_0x3c8e74('0x2d')]:_0x164f6e[_0x3c8e74('0x4d')],_0x11590c[_0x3c8e74('0x0')]=qs[_0x3c8e74('0x53')](_0x27cec3[_0x3c8e74('0xd')][_0x3c8e74('0x53')]),_0x11590c[_0x3c8e74('0x1f')]=qs[_0x3c8e74('0x1b')](_[_0x3c8e74('0x60')](_0x27cec3[_0x3c8e74('0xd')],_0x164f6e[_0x3c8e74('0x1b')])),_0x11590c[_0x3c8e74('0x1f')]=_['merge'](_0x11590c[_0x3c8e74('0x1f')],{[Op['or']]:[{'ListId':_0x1eb4e1['id']},{'ListId':null}]}),_0x27cec3[_0x3c8e74('0xd')][_0x3c8e74('0x24')]&&(_0x11590c[_0x3c8e74('0x1f')]=_['merge'](_0x11590c[_0x3c8e74('0x1f')],{[Op['or']]:_['map'](_0x11590c[_0x3c8e74('0x2d')],function(_0x5d75bc){const _0x2e5e90=_0x3c8e74,_0x116230={};return _0x116230[_0x5d75bc]={[Op[_0x2e5e90('0x6')]]:'%'+_0x27cec3[_0x2e5e90('0xd')][_0x2e5e90('0x24')]+'%'},_0x116230;})})),_0x11590c=_[_0x3c8e74('0x25')]({},_0x11590c,_0x27cec3[_0x3c8e74('0x39')]),db['CmCustomField']['findAndCountAll'](_0x11590c);})[_0x5ceafb('0x5b')](respondWithResult(_0x4ea2c5,null))[_0x5ceafb('0x62')](handleError(_0x4ea2c5,null));},exports[_0x1cdb71('0x18')]=function(_0x13745f,_0x1e1d0e){const _0x495abf=_0x1cdb71;return db[_0x495abf('0x1')][_0x495abf('0x3b')]({'where':{'id':_0x13745f[_0x495abf('0x66')]['id']}})[_0x495abf('0x5b')](function(_0x32aaff){const _0x2eeeed=_0x495abf;if(_0x32aaff)return _0x32aaff['addAgents'](_0x13745f[_0x2eeeed('0x5e')][_0x2eeeed('0x45')],{'through':_['omit'](_0x13745f[_0x2eeeed('0x5e')],[_0x2eeeed('0x45'),'id'])})[_0x2eeeed('0x5b')](function(_0xd99e4b){const _0x5c0e34=_0x2eeeed;for(let _0x309ac9=0x0;_0x309ac9<_0x13745f[_0x5c0e34('0x5e')][_0x5c0e34('0x45')]['length'];_0x309ac9+=0x1){socket[_0x5c0e34('0x64')](_0x5c0e34('0x6d'),{'UserId':_0x13745f['body'][_0x5c0e34('0x45')][_0x309ac9],'CmListId':_0x13745f[_0x5c0e34('0x66')]['id']});}return _0xd99e4b;});})[_0x495abf('0x5b')](respondWithResult(_0x1e1d0e,null))[_0x495abf('0x62')](handleError(_0x1e1d0e,null));},exports['removeAgents']=function(_0x4051c4,_0x1eea26){const _0x3d6211=_0x1cdb71;return db[_0x3d6211('0x1')][_0x3d6211('0x3b')]({'where':{'id':_0x4051c4[_0x3d6211('0x66')]['id']}})['then'](handleEntityNotFound(_0x1eea26,null))['then'](function(_0x5ae468){const _0xcd4751=_0x3d6211;if(_0x5ae468)return _0x5ae468[_0xcd4751('0x13')](_0x4051c4[_0xcd4751('0xd')][_0xcd4751('0x45')])[_0xcd4751('0x5b')](function(){const _0x22b826=_0xcd4751;if(_[_0x22b826('0x1d')](_0x4051c4['query'][_0x22b826('0x45')]))for(let _0x4a0946=0x0;_0x4a0946<_0x4051c4['query']['ids'][_0x22b826('0x9')];_0x4a0946+=0x1){socket[_0x22b826('0x64')](_0x22b826('0x5c'),{'UserId':Number(_0x4051c4[_0x22b826('0xd')]['ids'][_0x4a0946]),'CmListId':Number(_0x4051c4[_0x22b826('0x66')]['id'])});}else socket['emit']('userCmList:remove',{'UserId':Number(_0x4051c4[_0x22b826('0xd')][_0x22b826('0x45')]),'CmListId':Number(_0x4051c4[_0x22b826('0x66')]['id'])});});})[_0x3d6211('0x5b')](respondWithStatusCode(_0x1eea26,null))['catch'](handleError(_0x1eea26,null));},exports[_0x1cdb71('0x4e')]=function(_0x1a7627,_0x5191ee){const _0x5f97ff=_0x1cdb71;let _0x548648={};const _0x53f3a5={};let _0x27f05a,_0x29186c;return db[_0x5f97ff('0x1')][_0x5f97ff('0x3b')]({'where':{'id':_0x1a7627[_0x5f97ff('0x66')]['id']}})[_0x5f97ff('0x5b')](handleEntityNotFound(_0x5191ee,null))[_0x5f97ff('0x5b')](function(_0x428c44){const _0x7f12fa=_0x5f97ff;if(_0x428c44)return _0x27f05a=_0x428c44,_0x53f3a5[_0x7f12fa('0x4d')]=_[_0x7f12fa('0x41')](db[_0x7f12fa('0x17')][_0x7f12fa('0x14')]),_0x53f3a5[_0x7f12fa('0xd')]=_[_0x7f12fa('0x41')](_0x1a7627[_0x7f12fa('0xd')]),_0x53f3a5[_0x7f12fa('0x1b')]=_[_0x7f12fa('0x2b')](_0x53f3a5[_0x7f12fa('0x4d')],_0x53f3a5[_0x7f12fa('0xd')]),_0x548648[_0x7f12fa('0x2d')]=_[_0x7f12fa('0x2b')](_0x53f3a5[_0x7f12fa('0x4d')],qs['fields'](_0x1a7627['query'][_0x7f12fa('0x3c')])),_0x548648[_0x7f12fa('0x2d')]=_0x548648[_0x7f12fa('0x2d')][_0x7f12fa('0x9')]?_0x548648['attributes']:_0x53f3a5[_0x7f12fa('0x4d')],_0x548648[_0x7f12fa('0x0')]=qs[_0x7f12fa('0x53')](_0x1a7627[_0x7f12fa('0xd')][_0x7f12fa('0x53')]),_0x548648[_0x7f12fa('0x1f')]=qs[_0x7f12fa('0x1b')](_[_0x7f12fa('0x60')](_0x1a7627[_0x7f12fa('0xd')],_0x53f3a5[_0x7f12fa('0x1b')])),_0x1a7627[_0x7f12fa('0xd')][_0x7f12fa('0x24')]&&(_0x548648[_0x7f12fa('0x1f')]=_[_0x7f12fa('0x25')](_0x548648[_0x7f12fa('0x1f')],{[Op['or']]:_['map'](_0x548648['attributes'],function(_0x5dd401){const _0x35b0f2=_0x7f12fa,_0x36a590={};return _0x36a590[_0x5dd401]={[Op[_0x35b0f2('0x6')]]:'%'+_0x1a7627[_0x35b0f2('0xd')][_0x35b0f2('0x24')]+'%'},_0x36a590;})})),_0x548648=_[_0x7f12fa('0x25')]({},_0x548648,_0x1a7627[_0x7f12fa('0x39')]),_0x27f05a[_0x7f12fa('0x4e')](_0x548648);})[_0x5f97ff('0x5b')](function(_0x40248b){const _0x38366e=_0x5f97ff;if(_0x40248b)return _0x29186c=_0x40248b[_0x38366e('0x9')],typeof _0x1a7627[_0x38366e('0xd')][_0x38366e('0x72')]===_0x38366e('0x59')&&(_0x548648[_0x38366e('0x50')]=qs[_0x38366e('0x50')](_0x1a7627[_0x38366e('0xd')]['limit']),_0x548648[_0x38366e('0x47')]=qs['offset'](_0x1a7627[_0x38366e('0xd')][_0x38366e('0x47')])),_0x27f05a['getAgents'](_0x548648);})[_0x5f97ff('0x5b')](function(_0x5a6793){if(_0x5a6793)return _0x5a6793?{'count':_0x29186c,'rows':_0x5a6793}:null;})[_0x5f97ff('0x5b')](respondWithResult(_0x5191ee,null))[_0x5f97ff('0x62')](handleError(_0x5191ee,null));}; \ No newline at end of file +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 diff --git a/server/api/cmList/cmList.events.js b/server/api/cmList/cmList.events.js index 4d8f4a3..5f427fb 100644 --- a/server/api/cmList/cmList.events.js +++ b/server/api/cmList/cmList.events.js @@ -1 +1 @@ -const a158_0x1098=['emit','remove','setMaxListeners','addHook','exports','update','undefined','CmList','../../mysqldb'];(function(_0x490086,_0x109861){const _0x100e1f=function(_0x33a9ef){while(--_0x33a9ef){_0x490086['push'](_0x490086['shift']());}};_0x100e1f(++_0x109861);}(a158_0x1098,0x17c));const a158_0x100e=function(_0x490086,_0x109861){_0x490086=_0x490086-0x0;let _0x100e1f=a158_0x1098[_0x490086];return _0x100e1f;};const _0x3bb60f=a158_0x100e;'use strict';const EventEmitter=require('events'),CmList=require(_0x3bb60f('0x6'))['db'][_0x3bb60f('0x5')],CmListEvents=new EventEmitter();CmListEvents[_0x3bb60f('0x0')](0x0);const events={'afterCreate':'save','afterUpdate':_0x3bb60f('0x3'),'afterDestroy':_0x3bb60f('0x8')};function emitEvent(_0x33a9ef){return function(_0xc5eb90){const _0x594ade=a158_0x100e;CmListEvents['emit'](_0x33a9ef+':'+_0xc5eb90['id'],_0xc5eb90),CmListEvents[_0x594ade('0x7')](_0x33a9ef,_0xc5eb90);};}for(const e in events){if(typeof events[e]!==_0x3bb60f('0x4')){const event=events[e];CmList[_0x3bb60f('0x1')](e,emitEvent(event));}}module[_0x3bb60f('0x2')]=CmListEvents; \ No newline at end of file +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 diff --git a/server/api/cmList/cmList.model.js b/server/api/cmList/cmList.model.js index 9ce8680..c59fd3e 100644 --- a/server/api/cmList/cmList.model.js +++ b/server/api/cmList/cmList.model.js @@ -1 +1 @@ -const a159_0x5b0b=['exports','cm_lists','CmList','./cmList.attributes'];(function(_0x55e5a4,_0x5b0b1c){const _0x38b136=function(_0x4f3e7a){while(--_0x4f3e7a){_0x55e5a4['push'](_0x55e5a4['shift']());}};_0x38b136(++_0x5b0b1c);}(a159_0x5b0b,0xff));const a159_0x38b1=function(_0x55e5a4,_0x5b0b1c){_0x55e5a4=_0x55e5a4-0x0;let _0x38b136=a159_0x5b0b[_0x55e5a4];return _0x38b136;};const _0x5573ed=a159_0x38b1;'use strict';const attributes=require(_0x5573ed('0x0'));module[_0x5573ed('0x1')]=function(_0x4f3e7a){const _0x2d64a0=_0x5573ed,_0x523fd6=_0x4f3e7a['define'](_0x2d64a0('0x3'),attributes,{'tableName':_0x2d64a0('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x523fd6;}; \ No newline at end of file +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 diff --git a/server/api/cmList/cmList.rpc.js b/server/api/cmList/cmList.rpc.js index b8293e3..1c922ac 100644 --- a/server/api/cmList/cmList.rpc.js +++ b/server/api/cmList/cmList.rpc.js @@ -1 +1 @@ -const a160_0x1e3a=['../../rediscache','register','./cmList.socket'];(function(_0xafd1b0,_0x1e3a8c){const _0xf0ede4=function(_0x260bed){while(--_0x260bed){_0xafd1b0['push'](_0xafd1b0['shift']());}};_0xf0ede4(++_0x1e3a8c);}(a160_0x1e3a,0x68));const a160_0xf0ed=function(_0xafd1b0,_0x1e3a8c){_0xafd1b0=_0xafd1b0-0x0;let _0xf0ede4=a160_0x1e3a[_0xafd1b0];return _0xf0ede4;};const _0x14ec1b=a160_0xf0ed;'use strict';const {getSocket}=require(_0x14ec1b('0x1')),socket=getSocket();require(_0x14ec1b('0x0'))[_0x14ec1b('0x2')](socket); \ No newline at end of file +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 diff --git a/server/api/cmList/cmList.socket.js b/server/api/cmList/cmList.socket.js index e49e77c..a4d92b4 100644 --- a/server/api/cmList/cmList.socket.js +++ b/server/api/cmList/cmList.socket.js @@ -1 +1 @@ -const a161_0x3cc9=['update','register','emit','cmList:','remove','save'];(function(_0x19c72f,_0x3cc96b){const _0x4f9ca5=function(_0x339d1e){while(--_0x339d1e){_0x19c72f['push'](_0x19c72f['shift']());}};_0x4f9ca5(++_0x3cc96b);}(a161_0x3cc9,0x1e5));const a161_0x4f9c=function(_0x19c72f,_0x3cc96b){_0x19c72f=_0x19c72f-0x0;let _0x4f9ca5=a161_0x3cc9[_0x19c72f];return _0x4f9ca5;};const _0xe3d11a=a161_0x4f9c;'use strict';const CmListEvents=require('./cmList.events'),events=[_0xe3d11a('0x0'),_0xe3d11a('0x5'),_0xe3d11a('0x1')];function createListener(_0x339d1e,_0x1a547c){return function(_0x1a8e5c){const _0x100572=a161_0x4f9c;_0x1a547c[_0x100572('0x3')](_0x339d1e,_0x1a8e5c);};}exports[_0xe3d11a('0x2')]=function(_0x21e337){const _0x503de8=_0xe3d11a;for(let _0x46d3c3=0x0,_0x2b9c39=events['length'];_0x46d3c3<_0x2b9c39;_0x46d3c3++){const _0x402c4b=events[_0x46d3c3],_0xa434ad=createListener(_0x503de8('0x4')+_0x402c4b,_0x21e337);CmListEvents['on'](_0x402c4b,_0xa434ad);}}; \ No newline at end of file +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 diff --git a/server/api/cmList/index.js b/server/api/cmList/index.js index d9c8bbc..555faec 100644 --- a/server/api/cmList/index.js +++ b/server/api/cmList/index.js @@ -1 +1 @@ -const a162_0x37ba=['/:id/dispositions','/:id','/:id/fields','show','/:id/users','update','getContacts','/:id/contacts/csv','isAuthenticated','Router','index','getDispositions','removeAgents','addCustomField','/:id/contacts','delete','put','addContacts','destroy','express','../../components/auth/service','post','./cmList.controller','removeDispositions','addAgents','/describe','getCustomFields','get','addDisposition'];(function(_0x34f8a7,_0x37ba79){const _0x296c1f=function(_0x1628ea){while(--_0x1628ea){_0x34f8a7['push'](_0x34f8a7['shift']());}};_0x296c1f(++_0x37ba79);}(a162_0x37ba,0x17c));const a162_0x296c=function(_0x34f8a7,_0x37ba79){_0x34f8a7=_0x34f8a7-0x0;let _0x296c1f=a162_0x37ba[_0x34f8a7];return _0x296c1f;};const _0x1b0575=a162_0x296c;'use strict';const express=require(_0x1b0575('0x10')),router=express[_0x1b0575('0x6')](),auth=require(_0x1b0575('0x11')),controller=require(_0x1b0575('0x13'));router[_0x1b0575('0x18')]('/',auth['isAuthenticated'](),controller[_0x1b0575('0x7')]),router[_0x1b0575('0x18')](_0x1b0575('0x16'),auth[_0x1b0575('0x5')](),controller['describe']),router[_0x1b0575('0x18')](_0x1b0575('0x1b'),auth[_0x1b0575('0x5')](),controller[_0x1b0575('0x0')]),router[_0x1b0575('0x18')](_0x1b0575('0x1a'),auth[_0x1b0575('0x5')](),controller[_0x1b0575('0x8')]),router['get'](_0x1b0575('0xb'),auth[_0x1b0575('0x5')](),controller[_0x1b0575('0x3')]),router[_0x1b0575('0x18')](_0x1b0575('0x4'),auth[_0x1b0575('0x5')](),controller['getContactsCsv']),router['get'](_0x1b0575('0x1c'),auth[_0x1b0575('0x5')](),controller[_0x1b0575('0x17')]),router['get'](_0x1b0575('0x1'),auth[_0x1b0575('0x5')](),controller['getAgents']),router[_0x1b0575('0x12')]('/',auth[_0x1b0575('0x5')](),controller['create']),router['post']('/:id/dispositions',auth['isAuthenticated'](),controller[_0x1b0575('0x19')]),router[_0x1b0575('0x12')](_0x1b0575('0xb'),auth['isAuthenticated'](),controller[_0x1b0575('0xe')]),router[_0x1b0575('0x12')](_0x1b0575('0x1c'),auth['isAuthenticated'](),controller[_0x1b0575('0xa')]),router[_0x1b0575('0x12')]('/:id/users',auth[_0x1b0575('0x5')](),controller[_0x1b0575('0x15')]),router[_0x1b0575('0xd')](_0x1b0575('0x1b'),auth[_0x1b0575('0x5')](),controller[_0x1b0575('0x2')]),router[_0x1b0575('0xc')](_0x1b0575('0x1b'),auth[_0x1b0575('0x5')](),controller[_0x1b0575('0xf')]),router[_0x1b0575('0xc')](_0x1b0575('0x1a'),auth[_0x1b0575('0x5')](),controller[_0x1b0575('0x14')]),router[_0x1b0575('0xc')](_0x1b0575('0x1'),auth['isAuthenticated'](),controller[_0x1b0575('0x9')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/condition/condition.attributes.js b/server/api/condition/condition.attributes.js index 8dca0cb..3662c1e 100644 --- a/server/api/condition/condition.attributes.js +++ b/server/api/condition/condition.attributes.js @@ -1 +1 @@ -const a163_0x10d5=['sequelize','getDataValue','VIRTUAL','exports','STRING'];(function(_0x48b5c2,_0x10d554){const _0x1a88d1=function(_0x2b937c){while(--_0x2b937c){_0x48b5c2['push'](_0x48b5c2['shift']());}};_0x1a88d1(++_0x10d554);}(a163_0x10d5,0x1a2));const a163_0x1a88=function(_0x48b5c2,_0x10d554){_0x48b5c2=_0x48b5c2-0x0;let _0x1a88d1=a163_0x10d5[_0x48b5c2];return _0x1a88d1;};const _0x21b421=a163_0x1a88;'use strict';const Sequelize=require(_0x21b421('0x2'));module[_0x21b421('0x0')]={'name':{'type':Sequelize[_0x21b421('0x4')],'get':function(){const _0x4885d2=_0x21b421;return this[_0x4885d2('0x3')]('field');}},'field':{'type':Sequelize[_0x21b421('0x1')],'allowNull':![]},'operator':{'type':Sequelize[_0x21b421('0x1')],'allowNull':![]},'value':{'type':Sequelize[_0x21b421('0x1')],'allowNull':![]}}; \ No newline at end of file +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 diff --git a/server/api/condition/condition.controller.js b/server/api/condition/condition.controller.js index f243698..1839a3a 100644 --- a/server/api/condition/condition.controller.js +++ b/server/api/condition/condition.controller.js @@ -1 +1 @@ -const a164_0x297c=['api','then','findOne','body','error','Condition','../../config/logger','end','params','stack','update','json','catch','status','name','send','../../mysqldb','destroy'];(function(_0x24f9ee,_0x297ca9){const _0x110cf1=function(_0x3a8975){while(--_0x3a8975){_0x24f9ee['push'](_0x24f9ee['shift']());}};_0x110cf1(++_0x297ca9);}(a164_0x297c,0x1db));const a164_0x110c=function(_0x24f9ee,_0x297ca9){_0x24f9ee=_0x24f9ee-0x0;let _0x110cf1=a164_0x297c[_0x24f9ee];return _0x110cf1;};const _0x5c6fd4=a164_0x110c;'use strict';const logger=require(_0x5c6fd4('0x11'))(_0x5c6fd4('0xb')),db=require(_0x5c6fd4('0x9'))['db'];function respondWithResult(_0x3a8975,_0x4b165e){return _0x4b165e=_0x4b165e||0xc8,function(_0x50be20){const _0x456c90=a164_0x110c;if(_0x50be20)return _0x3a8975[_0x456c90('0x6')](_0x4b165e)[_0x456c90('0x4')](_0x50be20);};}function saveUpdates(_0x4b90fa){return function(_0xf35e62){const _0x24355c=a164_0x110c;if(_0xf35e62)return _0xf35e62[_0x24355c('0x3')](_0x4b90fa)[_0x24355c('0xc')](function(_0x5b699c){return _0x5b699c;});return null;};}function removeEntity(_0x729525){return function(_0x1b5507){const _0x4fef2f=a164_0x110c;if(_0x1b5507)return _0x1b5507['destroy']()[_0x4fef2f('0xc')](function(){const _0x4c6750=_0x4fef2f;_0x729525[_0x4c6750('0x6')](0xcc)[_0x4c6750('0x0')]();});};}function handleEntityNotFound(_0x92aeef){return function(_0x4d239f){return!_0x4d239f&&_0x92aeef['sendStatus'](0x194),_0x4d239f;};}function handleError(_0x20ca68,_0x1eac41){return _0x1eac41=_0x1eac41||0x1f4,function(_0x5df4ae){const _0xa375a8=a164_0x110c;logger[_0xa375a8('0xf')](_0x5df4ae[_0xa375a8('0x2')]),_0x5df4ae[_0xa375a8('0x7')]&&delete _0x5df4ae[_0xa375a8('0x7')],_0x20ca68['status'](_0x1eac41)[_0xa375a8('0x8')](_0x5df4ae);};}exports[_0x5c6fd4('0x3')]=function(_0x345136,_0x2ffa5b){const _0x54c766=_0x5c6fd4;return _0x345136[_0x54c766('0xe')]['id']&&delete _0x345136['body']['id'],db[_0x54c766('0x10')][_0x54c766('0xd')]({'where':{'id':_0x345136['params']['id']}})[_0x54c766('0xc')](handleEntityNotFound(_0x2ffa5b,null))[_0x54c766('0xc')](saveUpdates(_0x345136[_0x54c766('0xe')],null))['then'](respondWithResult(_0x2ffa5b,null))[_0x54c766('0x5')](handleError(_0x2ffa5b,null));},exports[_0x5c6fd4('0xa')]=function(_0x113902,_0x2bbcd3){const _0x40279c=_0x5c6fd4;return db[_0x40279c('0x10')]['findOne']({'where':{'id':_0x113902[_0x40279c('0x1')]['id']}})[_0x40279c('0xc')](handleEntityNotFound(_0x2bbcd3,null))['then'](removeEntity(_0x2bbcd3,null))[_0x40279c('0x5')](handleError(_0x2bbcd3,null));}; \ No newline at end of file +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 diff --git a/server/api/condition/condition.model.js b/server/api/condition/condition.model.js index d3c135a..83de9c4 100644 --- a/server/api/condition/condition.model.js +++ b/server/api/condition/condition.model.js @@ -1 +1 @@ -const a165_0x1476=['./condition.attributes','tools_conditions','exports','Condition'];(function(_0x4e186f,_0x1476e7){const _0x550de1=function(_0x2d8ac4){while(--_0x2d8ac4){_0x4e186f['push'](_0x4e186f['shift']());}};_0x550de1(++_0x1476e7);}(a165_0x1476,0x19c));const a165_0x550d=function(_0x4e186f,_0x1476e7){_0x4e186f=_0x4e186f-0x0;let _0x550de1=a165_0x1476[_0x4e186f];return _0x550de1;};const _0x5b0e9a=a165_0x550d;'use strict';const attributes=require(_0x5b0e9a('0x0'));module[_0x5b0e9a('0x2')]=function(_0x2d8ac4){const _0x2260a0=_0x5b0e9a,_0x230178=_0x2d8ac4['define'](_0x2260a0('0x3'),attributes,{'tableName':_0x2260a0('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x230178;}; \ No newline at end of file +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 diff --git a/server/api/condition/index.js b/server/api/condition/index.js index 5d2085c..30d7a63 100644 --- a/server/api/condition/index.js +++ b/server/api/condition/index.js @@ -1 +1 @@ -const a166_0x11eb=['../../components/auth/service','update','isAuthenticated','/:id','./condition.controller','delete','exports','destroy','put'];(function(_0x4000b1,_0x11eb78){const _0x5ad15b=function(_0x511b72){while(--_0x511b72){_0x4000b1['push'](_0x4000b1['shift']());}};_0x5ad15b(++_0x11eb78);}(a166_0x11eb,0xfd));const a166_0x5ad1=function(_0x4000b1,_0x11eb78){_0x4000b1=_0x4000b1-0x0;let _0x5ad15b=a166_0x11eb[_0x4000b1];return _0x5ad15b;};const _0x2be226=a166_0x5ad1;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x2be226('0x8')),controller=require(_0x2be226('0x3'));router[_0x2be226('0x7')](_0x2be226('0x2'),auth[_0x2be226('0x1')](),controller[_0x2be226('0x0')]),router[_0x2be226('0x4')](_0x2be226('0x2'),auth['isAuthenticated'](),controller[_0x2be226('0x6')]),module[_0x2be226('0x5')]=router; \ No newline at end of file +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 diff --git a/server/api/dashboard/dashboard.attributes.js b/server/api/dashboard/dashboard.attributes.js index ee03d58..0aec9e9 100644 --- a/server/api/dashboard/dashboard.attributes.js +++ b/server/api/dashboard/dashboard.attributes.js @@ -1 +1 @@ -const a167_0x85d7=['STRING','name','sequelize'];(function(_0x3e42b5,_0x85d741){const _0x3a8fb5=function(_0x1a3412){while(--_0x1a3412){_0x3e42b5['push'](_0x3e42b5['shift']());}};_0x3a8fb5(++_0x85d741);}(a167_0x85d7,0x13f));const a167_0x3a8f=function(_0x3e42b5,_0x85d741){_0x3e42b5=_0x3e42b5-0x0;let _0x3a8fb5=a167_0x85d7[_0x3e42b5];return _0x3a8fb5;};const _0x27db31=a167_0x3a8f;'use strict';const Sequelize=require(_0x27db31('0x1'));module['exports']={'name':{'type':Sequelize[_0x27db31('0x2')],'allowNull':![],'unique':_0x27db31('0x0')},'description':{'type':Sequelize[_0x27db31('0x2')]}}; \ No newline at end of file +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 diff --git a/server/api/dashboard/dashboard.controller.js b/server/api/dashboard/dashboard.controller.js index c1a6580..c22c150 100644 --- a/server/api/dashboard/dashboard.controller.js +++ b/server/api/dashboard/dashboard.controller.js @@ -1 +1 @@ -const a168_0x1179=['model','name','register','custom','limit','error','order','user','rawAttributes','autoAssociation','create','api','filters','query','merge','options','includeAll','UserProfileSection','include','counter','type','fields','keys','intersection','show','length','iframe','Dashboard','attrMetric','../../rediscache','count','attrRefresh','attributes','params','pie-chart','../../config/logger','createdAt','findAll','undefined','sort','findOne','offset','attrPath','map','status','value','fieldName','Unable\x20to\x20retrieve\x20the\x20current\x20user','https://','body','attrs','json','filter','attrSerie3','stack','attrUrl','attrFontSize','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','send','attrSerie2','DashboardItem','VIRTUAL','reportType','widgetAttributes:\x20%s','get','nolimit','rows','Content-Range','0.00','UserProfileResource','attrSerie1','CustomDashboards','lodash','web-report','catch','attrVoiceQueues','total','userProfileId','clock','../../mysqldb','pick','role','getItems','update','key','HH:mm:ss','updatedAt','then','attrHourFormat','attrTimezone','attrReport','like','set','omit','where','multibar-chart','destroy'];(function(_0x1aef0c,_0x1179c0){const _0x1ed28d=function(_0x39d8f7){while(--_0x39d8f7){_0x1aef0c['push'](_0x1aef0c['shift']());}};_0x1ed28d(++_0x1179c0);}(a168_0x1179,0xea));const a168_0x1ed2=function(_0x1aef0c,_0x1179c0){_0x1aef0c=_0x1aef0c-0x0;let _0x1ed28d=a168_0x1179[_0x1aef0c];return _0x1ed28d;};const _0x85f9cd=a168_0x1ed2;'use strict';const _=require(_0x85f9cd('0x20')),qs=require('../../components/parsers/qs'),logger=require(_0x85f9cd('0x5c'))(_0x85f9cd('0x44')),{getSocket}=require(_0x85f9cd('0x56')),socket=getSocket(),db=require(_0x85f9cd('0x27'))['db'],{Op}=require('sequelize');require('./dashboard.socket')[_0x85f9cd('0x3b')](socket);function respondWithResult(_0x39d8f7,_0x4b9820){return _0x4b9820=_0x4b9820||0xc8,function(_0x5c1785){const _0x437564=a168_0x1ed2;if(_0x5c1785)return _0x39d8f7[_0x437564('0x4')](_0x4b9820)[_0x437564('0xb')](_0x5c1785);};}function respondWithFilteredResult(_0x2b1cf8,_0x51a501){return function(_0x1bd813){const _0x2c9c08=a168_0x1ed2;if(_0x1bd813){const _0x36f60e=_0x1bd813[_0x2c9c08('0x57')],_0x32a9ee=_0x51a501['offset'];let _0x35a594=_0x51a501['offset']+_0x51a501[_0x2c9c08('0x3d')],_0x159dbd;return _0x35a594>=_0x36f60e?(_0x35a594=_0x36f60e,_0x159dbd=0xc8):_0x159dbd=0xce,_0x2b1cf8[_0x2c9c08('0x4')](_0x159dbd),_0x2b1cf8[_0x2c9c08('0x34')](_0x2c9c08('0x1b'),_0x32a9ee+'-'+_0x35a594+'/'+_0x36f60e)[_0x2c9c08('0xb')](_0x1bd813);}return null;};}function saveUpdates(_0x13c3f9){return function(_0x5b3cfd){const _0x115dd4=a168_0x1ed2;if(_0x5b3cfd)return _0x5b3cfd['update'](_0x13c3f9)[_0x115dd4('0x2f')](function(_0x5e8455){return _0x5e8455;});return null;};}function removeEntity(_0x20ecd8){return function(_0x3cc6eb){const _0x2c4b1e=a168_0x1ed2;if(_0x3cc6eb)return _0x3cc6eb[_0x2c4b1e('0x38')]()[_0x2c4b1e('0x2f')](function(){const _0x42286b=_0x2c4b1e,_0x232723=_0x3cc6eb[_0x42286b('0x18')]({'plain':!![]}),_0x4400c1='CustomDashboards';return db[_0x42286b('0x1d')][_0x42286b('0x38')]({'where':{'type':_0x4400c1,'resourceId':_0x232723['id']}})[_0x42286b('0x2f')](function(){return _0x3cc6eb;});})['then'](function(){const _0x5cab31=_0x2c4b1e;_0x20ecd8[_0x5cab31('0x4')](0xcc)['end']();});};}function handleEntityNotFound(_0x19bdf9){return function(_0x37f4f5){return!_0x37f4f5&&_0x19bdf9['sendStatus'](0x194),_0x37f4f5;};}function handleError(_0x5243f4,_0x543cba){return _0x543cba=_0x543cba||0x1f4,function(_0x22f0d4){const _0x2b685b=a168_0x1ed2;logger[_0x2b685b('0x3e')](_0x22f0d4[_0x2b685b('0xe')]),_0x22f0d4[_0x2b685b('0x3a')]&&delete _0x22f0d4[_0x2b685b('0x3a')],_0x5243f4[_0x2b685b('0x4')](_0x543cba)[_0x2b685b('0x12')](_0x22f0d4);};}exports['index']=function(_0xd7bc19,_0x301eb0){const _0x5ddf85=_0x85f9cd;let _0x527040={};const _0x466039={},_0x346227={'count':0x0,'rows':[]},_0x26f7b5=_[_0x5ddf85('0x3')](db[_0x5ddf85('0x54')]['rawAttributes'],function(_0x470b32){const _0x3b7a9f=_0x5ddf85;return{'name':_0x470b32[_0x3b7a9f('0x6')],'type':_0x470b32['type'][_0x3b7a9f('0x2c')]};});_0x466039['model']=_[_0x5ddf85('0x3')](_0x26f7b5,_0x5ddf85('0x3a')),_0x466039[_0x5ddf85('0x46')]=_[_0x5ddf85('0x4f')](_0xd7bc19[_0x5ddf85('0x46')]),_0x466039[_0x5ddf85('0x45')]=_[_0x5ddf85('0x50')](_0x466039[_0x5ddf85('0x39')],_0x466039['query']),_0x527040['attributes']=_[_0x5ddf85('0x50')](_0x466039[_0x5ddf85('0x39')],qs[_0x5ddf85('0x4e')](_0xd7bc19[_0x5ddf85('0x46')]['fields'])),_0x527040[_0x5ddf85('0x59')]=_0x527040[_0x5ddf85('0x59')][_0x5ddf85('0x52')]?_0x527040[_0x5ddf85('0x59')]:_0x466039[_0x5ddf85('0x39')];typeof _0xd7bc19['query'][_0x5ddf85('0x19')]===_0x5ddf85('0x5f')&&(_0x527040[_0x5ddf85('0x3d')]=qs[_0x5ddf85('0x3d')](_0xd7bc19[_0x5ddf85('0x46')][_0x5ddf85('0x3d')]),_0x527040['offset']=qs['offset'](_0xd7bc19['query']['offset']));_0x527040[_0x5ddf85('0x3f')]=qs[_0x5ddf85('0x60')](_0xd7bc19[_0x5ddf85('0x46')][_0x5ddf85('0x60')]),_0x527040['where']=qs[_0x5ddf85('0x45')](_[_0x5ddf85('0x28')](_0xd7bc19[_0x5ddf85('0x46')],_0x466039[_0x5ddf85('0x45')]),_0x26f7b5);_0xd7bc19[_0x5ddf85('0x46')][_0x5ddf85('0xc')]&&(_0x527040['where']=_['merge'](_0x527040['where'],{[Op['or']]:_['map'](_0x26f7b5,function(_0x42ba8a){const _0x1abd53=_0x5ddf85;if(_0x42ba8a[_0x1abd53('0x4d')]!==_0x1abd53('0x15')){const _0x1b5ea3={};return _0x1b5ea3[_0x42ba8a[_0x1abd53('0x3a')]]={[Op['like']]:'%'+_0xd7bc19[_0x1abd53('0x46')]['filter']+'%'},_0x1b5ea3;}})}));_0x527040=_[_0x5ddf85('0x47')]({},_0x527040,_0xd7bc19['options']);const _0xd446ed={'where':_0x527040[_0x5ddf85('0x36')]};return db[_0x5ddf85('0x54')][_0x5ddf85('0x57')](_0xd446ed)[_0x5ddf85('0x2f')](function(_0x3de8d8){const _0x55f61e=_0x5ddf85;return _0x346227['count']=_0x3de8d8,_0xd7bc19[_0x55f61e('0x46')][_0x55f61e('0x49')]&&(_0x527040[_0x55f61e('0x4b')]=[{'all':!![]}]),db[_0x55f61e('0x54')][_0x55f61e('0x5e')](_0x527040);})[_0x5ddf85('0x2f')](function(_0x33e2d9){const _0x5dcb64=_0x5ddf85;return _0x346227[_0x5dcb64('0x1a')]=_0x33e2d9,_0x346227;})[_0x5ddf85('0x2f')](respondWithFilteredResult(_0x301eb0,_0x527040))[_0x5ddf85('0x22')](handleError(_0x301eb0,null));},exports[_0x85f9cd('0x51')]=function(_0xd57473,_0x2edb8c){const _0x372a11=_0x85f9cd;let _0x759be1={'raw':![],'where':{'id':_0xd57473['params']['id']}};const _0x567219={};return _0x567219[_0x372a11('0x39')]=_[_0x372a11('0x4f')](db[_0x372a11('0x54')]['rawAttributes']),_0x567219[_0x372a11('0x46')]=_[_0x372a11('0x4f')](_0xd57473[_0x372a11('0x46')]),_0x567219[_0x372a11('0x45')]=_[_0x372a11('0x50')](_0x567219[_0x372a11('0x39')],_0x567219[_0x372a11('0x46')]),_0x759be1['attributes']=_[_0x372a11('0x50')](_0x567219[_0x372a11('0x39')],qs[_0x372a11('0x4e')](_0xd57473['query'][_0x372a11('0x4e')])),_0x759be1[_0x372a11('0x59')]=_0x759be1[_0x372a11('0x59')][_0x372a11('0x52')]?_0x759be1['attributes']:_0x567219['model'],_0xd57473[_0x372a11('0x46')][_0x372a11('0x49')]&&(_0x759be1[_0x372a11('0x4b')]=[{'all':!![]}]),_0x759be1=_[_0x372a11('0x47')]({},_0x759be1,_0xd57473['options']),db[_0x372a11('0x54')][_0x372a11('0x0')](_0x759be1)[_0x372a11('0x2f')](handleEntityNotFound(_0x2edb8c,null))[_0x372a11('0x2f')](respondWithResult(_0x2edb8c,null))[_0x372a11('0x22')](handleError(_0x2edb8c,null));},exports[_0x85f9cd('0x43')]=function(_0x23126a,_0x479869){const _0x282519=_0x85f9cd;return db['Dashboard'][_0x282519('0x43')](_0x23126a['body'],{})['then'](function(_0x29bece){const _0x328d41=_0x282519,_0x811ef6=_0x23126a['user'][_0x328d41('0x18')]({'plain':!![]});if(!_0x811ef6)throw new Error(_0x328d41('0x7'));if(_0x811ef6[_0x328d41('0x29')]===_0x328d41('0x40')){const _0x3c4ca8=_0x29bece[_0x328d41('0x18')]({'plain':!![]}),_0x59cb58=_0x328d41('0x1f');return db[_0x328d41('0x4a')]['findOne']({'where':{'name':_0x59cb58,'userProfileId':_0x811ef6[_0x328d41('0x25')]},'raw':!![]})[_0x328d41('0x2f')](function(_0x433623){const _0xf31f94=_0x328d41;return _0x433623&&_0x433623[_0xf31f94('0x42')]===0x0?db['UserProfileResource'][_0xf31f94('0x43')]({'name':_0x3c4ca8[_0xf31f94('0x3a')],'resourceId':_0x3c4ca8['id'],'type':_0x433623[_0xf31f94('0x3a')],'sectionId':_0x433623['id']},{})[_0xf31f94('0x2f')](function(){return _0x29bece;}):_0x29bece;})['catch'](function(_0x2a096c){const _0x25c831=_0x328d41;logger[_0x25c831('0x3e')](_0x25c831('0x11'),_0x2a096c);throw _0x2a096c;});}return _0x29bece;})[_0x282519('0x2f')](respondWithResult(_0x479869,0xc9))[_0x282519('0x22')](handleError(_0x479869,null));},exports['clone']=function(_0x336f6a,_0x586dee){const _0x6706f0=_0x85f9cd;let _0x5b4251={'where':{'id':_0x336f6a[_0x6706f0('0x5a')]['id']}};const _0x520e08={};return _0x520e08[_0x6706f0('0x39')]=_[_0x6706f0('0x4f')](db[_0x6706f0('0x54')][_0x6706f0('0x41')]),_0x5b4251[_0x6706f0('0x59')]=_['intersection'](_0x520e08[_0x6706f0('0x39')],qs[_0x6706f0('0x4e')](_0x336f6a[_0x6706f0('0x46')][_0x6706f0('0x4e')])),_0x5b4251[_0x6706f0('0x59')]=_0x5b4251['attributes'][_0x6706f0('0x52')]?_0x5b4251['attributes']:_0x520e08[_0x6706f0('0x39')],_0x336f6a['query']['includeAll']&&(_0x5b4251[_0x6706f0('0x4b')]=[{'all':!![]}]),_0x5b4251=_[_0x6706f0('0x47')]({},_0x5b4251,_0x336f6a[_0x6706f0('0x48')]),db[_0x6706f0('0x54')]['findOne'](_0x5b4251)['then'](handleEntityNotFound(_0x586dee,null))['then'](function(_0x1b860f){const _0xa188c7=_0x6706f0;if(_0x1b860f){let _0x2529af=_0x1b860f[_0xa188c7('0x18')]({'plain':!![]});return _0x2529af=qs[_0xa188c7('0x35')](_0x2529af,['id',_0xa188c7('0x5d'),_0xa188c7('0x2e')]),_0x336f6a[_0xa188c7('0x9')]=_[_0xa188c7('0x35')](_0x336f6a[_0xa188c7('0x9')],['id',_0xa188c7('0x5d'),_0xa188c7('0x2e')]),db['Dashboard'][_0xa188c7('0x43')](_[_0xa188c7('0x47')](_0x2529af,_0x336f6a['body']),{'include':_0x336f6a['query'][_0xa188c7('0x49')]?[{'all':!![]}]:undefined})[_0xa188c7('0x2f')](function(_0x52bb14){const _0x95ea1=_0xa188c7,_0x235eba=_0x336f6a[_0x95ea1('0x40')]['get']({'plain':!![]});if(!_0x235eba)throw new Error(_0x95ea1('0x7'));if(_0x235eba[_0x95ea1('0x29')]===_0x95ea1('0x40')){const _0x541675=_0x52bb14['get']({'plain':!![]}),_0x4980a3='CustomDashboards';return db['UserProfileSection'][_0x95ea1('0x0')]({'where':{'name':_0x4980a3,'userProfileId':_0x235eba[_0x95ea1('0x25')]},'raw':!![]})[_0x95ea1('0x2f')](function(_0x36be6a){const _0x13f2e1=_0x95ea1;return _0x36be6a&&_0x36be6a['autoAssociation']===0x0?db[_0x13f2e1('0x1d')]['create']({'name':_0x541675[_0x13f2e1('0x3a')],'resourceId':_0x541675['id'],'type':_0x36be6a[_0x13f2e1('0x3a')],'sectionId':_0x36be6a['id']},{})['then'](function(){return _0x52bb14;}):_0x52bb14;})[_0x95ea1('0x22')](function(_0x4519aa){const _0x1edd19=_0x95ea1;logger[_0x1edd19('0x3e')](_0x1edd19('0x11'),_0x4519aa);throw _0x4519aa;});}return _0x52bb14;});}})[_0x6706f0('0x2f')](respondWithResult(_0x586dee,0xc9))['catch'](handleError(_0x586dee,null));},exports[_0x85f9cd('0x2b')]=function(_0x2de274,_0x539876){const _0x5c5775=_0x85f9cd;return _0x2de274[_0x5c5775('0x9')]['id']&&delete _0x2de274['body']['id'],db['Dashboard'][_0x5c5775('0x0')]({'where':{'id':_0x2de274['params']['id']}})[_0x5c5775('0x2f')](handleEntityNotFound(_0x539876,null))[_0x5c5775('0x2f')](saveUpdates(_0x2de274[_0x5c5775('0x9')],null))['then'](respondWithResult(_0x539876,null))['catch'](handleError(_0x539876,null));},exports[_0x85f9cd('0x38')]=function(_0x507301,_0xd5b205){const _0xf4ef6c=_0x85f9cd;return db['Dashboard'][_0xf4ef6c('0x0')]({'where':{'id':_0x507301['params']['id']}})[_0xf4ef6c('0x2f')](handleEntityNotFound(_0xd5b205,null))[_0xf4ef6c('0x2f')](removeEntity(_0xd5b205,null))['catch'](handleError(_0xd5b205,null));};function widgetAttributes(_0x32677a){const _0x187de1=_0x85f9cd;try{switch(_0x32677a[_0x187de1('0x4d')]){case _0x187de1('0x53'):return[{'name':_0x187de1('0xf'),'value':_0x32677a[_0x187de1('0xf')]||(_0x32677a[_0x187de1('0xa')]&&_0x32677a[_0x187de1('0xa')][0x0]?_0x32677a[_0x187de1('0xa')][0x0][_0x187de1('0x5')]:undefined)||_0x187de1('0x8')}];case _0x187de1('0x3c'):return[{'name':'attrPath','value':_0x32677a[_0x187de1('0x2')]||(_0x32677a[_0x187de1('0xa')]&&_0x32677a['attrs'][0x0]?_0x32677a[_0x187de1('0xa')][0x0]['value']:undefined)||''}];case _0x187de1('0x26'):return[{'name':_0x187de1('0x30'),'value':_0x32677a[_0x187de1('0x30')]||(_0x32677a['attrs']&&_0x32677a[_0x187de1('0xa')][0x0]?_0x32677a['attrs'][0x0][_0x187de1('0x5')]:undefined)||_0x187de1('0x2d')},{'name':_0x187de1('0x31'),'value':_0x32677a[_0x187de1('0x31')]||(_0x32677a['attrs']&&_0x32677a[_0x187de1('0xa')][0x1]?_0x32677a[_0x187de1('0xa')][0x1][_0x187de1('0x5')]:undefined)||_0x187de1('0x1c')},{'name':'attrFontSize','value':_0x32677a[_0x187de1('0x10')]||(_0x32677a[_0x187de1('0xa')]&&_0x32677a[_0x187de1('0xa')][0x2]?_0x32677a['attrs'][0x2][_0x187de1('0x5')]:undefined)||0xc}];case _0x187de1('0x4c'):return[{'name':_0x187de1('0x55'),'value':_0x32677a['attrMetric']||(_0x32677a['attrs']&&_0x32677a['attrs'][0x0]?_0x32677a[_0x187de1('0xa')][0x0][_0x187de1('0x5')]:undefined)||_0x187de1('0x24')},{'name':_0x187de1('0x23'),'value':_0x32677a['attrVoiceQueues']||(_0x32677a['attrs']&&_0x32677a[_0x187de1('0xa')][0x1]?_0x32677a[_0x187de1('0xa')][0x1][_0x187de1('0x5')]:undefined)||[]},{'name':'attrFontSize','value':_0x32677a[_0x187de1('0x10')]||(_0x32677a['attrs']&&_0x32677a[_0x187de1('0xa')][0x2]?_0x32677a[_0x187de1('0xa')][0x2][_0x187de1('0x5')]:undefined)||0x14}];case _0x187de1('0x37'):case _0x187de1('0x5b'):return[{'name':'attrSerie1','value':_0x32677a[_0x187de1('0x1e')]||(_0x32677a[_0x187de1('0xa')]&&_0x32677a[_0x187de1('0xa')][0x0]?_0x32677a[_0x187de1('0xa')][0x0][_0x187de1('0x5')]:undefined)||_0x187de1('0x24')},{'name':_0x187de1('0x13'),'value':_0x32677a['attrSerie2']||(_0x32677a[_0x187de1('0xa')]&&_0x32677a[_0x187de1('0xa')][0x1]?_0x32677a[_0x187de1('0xa')][0x1]['value']:undefined)||null},{'name':_0x187de1('0xd'),'value':_0x32677a[_0x187de1('0xd')]||(_0x32677a['attrs']&&_0x32677a[_0x187de1('0xa')][0x2]?_0x32677a[_0x187de1('0xa')][0x2][_0x187de1('0x5')]:undefined)||null},{'name':_0x187de1('0x23'),'value':_0x32677a['attrVoiceQueues']||(_0x32677a[_0x187de1('0xa')]&&_0x32677a[_0x187de1('0xa')][0x3]?_0x32677a['attrs'][0x3]['value']:undefined)||[]}];case _0x187de1('0x21'):return[{'name':_0x187de1('0x32'),'type':_0x32677a[_0x187de1('0x16')]||(_0x32677a['attrs']&&_0x32677a[_0x187de1('0xa')][0x0]?_0x32677a[_0x187de1('0xa')][0x0]['type']:undefined)||null,'value':_0x32677a[_0x187de1('0x32')]||(_0x32677a['attrs']&&_0x32677a[_0x187de1('0xa')][0x0]?_0x32677a[_0x187de1('0xa')][0x0]['value']:undefined)||null},{'name':'attrRefresh','value':_0x32677a[_0x187de1('0x58')]||(_0x32677a[_0x187de1('0xa')]&&_0x32677a[_0x187de1('0xa')][0x1]?_0x32677a[_0x187de1('0xa')][0x1][_0x187de1('0x5')]:undefined)||0x0}];default:return[];}}catch(_0x2f2f72){return logger[_0x187de1('0x3e')](_0x187de1('0x17'),JSON['stringify'](_0x2f2f72)),[];}}exports['addItem']=function(_0x37258e,_0x2c4d43){const _0x51d88a=_0x85f9cd;return _0x37258e[_0x51d88a('0x9')]['id']&&delete _0x37258e[_0x51d88a('0x9')]['id'],db[_0x51d88a('0x54')]['findOne']({'where':{'id':_0x37258e[_0x51d88a('0x5a')]['id']}})[_0x51d88a('0x2f')](handleEntityNotFound(_0x2c4d43,null))['then'](function(_0x15bfb5){const _0x11bba6=_0x51d88a;if(_0x15bfb5)return _0x37258e[_0x11bba6('0x9')]['DashboardId']=_0x15bfb5['id'],_0x37258e['body'][_0x11bba6('0xa')]=widgetAttributes(_0x37258e[_0x11bba6('0x9')]),db[_0x11bba6('0x14')][_0x11bba6('0x43')](_0x37258e['body']);})[_0x51d88a('0x2f')](respondWithResult(_0x2c4d43,null))[_0x51d88a('0x22')](handleError(_0x2c4d43,null));},exports[_0x85f9cd('0x2a')]=function(_0x3d9733,_0x53895a){const _0x198195=_0x85f9cd;let _0x1121c7={};const _0x4817a0={};let _0x591da5,_0x1cdf49;return db[_0x198195('0x54')][_0x198195('0x0')]({'where':{'id':_0x3d9733['params']['id']}})[_0x198195('0x2f')](handleEntityNotFound(_0x53895a,null))['then'](function(_0x153319){const _0x26b492=_0x198195;if(_0x153319)return _0x591da5=_0x153319,_0x4817a0['model']=_[_0x26b492('0x4f')](db[_0x26b492('0x14')][_0x26b492('0x41')]),_0x4817a0[_0x26b492('0x46')]=_['keys'](_0x3d9733[_0x26b492('0x46')]),_0x4817a0[_0x26b492('0x45')]=_[_0x26b492('0x50')](_0x4817a0[_0x26b492('0x39')],_0x4817a0[_0x26b492('0x46')]),_0x1121c7[_0x26b492('0x59')]=_[_0x26b492('0x50')](_0x4817a0[_0x26b492('0x39')],qs[_0x26b492('0x4e')](_0x3d9733[_0x26b492('0x46')][_0x26b492('0x4e')])),_0x1121c7[_0x26b492('0x59')]=_0x1121c7[_0x26b492('0x59')][_0x26b492('0x52')]?_0x1121c7[_0x26b492('0x59')]:_0x4817a0[_0x26b492('0x39')],_0x1121c7[_0x26b492('0x3f')]=qs[_0x26b492('0x60')](_0x3d9733['query'][_0x26b492('0x60')]),_0x1121c7[_0x26b492('0x36')]=qs['filters'](_[_0x26b492('0x28')](_0x3d9733['query'],_0x4817a0[_0x26b492('0x45')])),_0x3d9733[_0x26b492('0x46')]['filter']&&(_0x1121c7['where']=_['merge'](_0x1121c7[_0x26b492('0x36')],{[Op['or']]:_['map'](_0x1121c7[_0x26b492('0x59')],function(_0x86e247){const _0x5c0df5=_0x26b492,_0x1d9f73={};return _0x1d9f73[_0x86e247]={[Op[_0x5c0df5('0x33')]]:'%'+_0x3d9733['query']['filter']+'%'},_0x1d9f73;})})),_0x1121c7=_[_0x26b492('0x47')]({},_0x1121c7,_0x3d9733[_0x26b492('0x48')]),_0x591da5['getItems'](_0x1121c7);})[_0x198195('0x2f')](function(_0x34812d){const _0x2dc2a5=_0x198195;if(_0x34812d)return _0x1cdf49=_0x34812d[_0x2dc2a5('0x52')],typeof _0x3d9733[_0x2dc2a5('0x46')]['nolimit']===_0x2dc2a5('0x5f')&&(_0x1121c7[_0x2dc2a5('0x3d')]=qs[_0x2dc2a5('0x3d')](_0x3d9733['query'][_0x2dc2a5('0x3d')]),_0x1121c7[_0x2dc2a5('0x1')]=qs[_0x2dc2a5('0x1')](_0x3d9733[_0x2dc2a5('0x46')][_0x2dc2a5('0x1')])),_0x591da5['getItems'](_0x1121c7);})['then'](function(_0x1a7f0f){if(_0x1a7f0f)return _0x1a7f0f?{'count':_0x1cdf49,'rows':_0x1a7f0f}:null;})[_0x198195('0x2f')](respondWithResult(_0x53895a,null))[_0x198195('0x22')](handleError(_0x53895a,null));}; \ No newline at end of file +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 diff --git a/server/api/dashboard/dashboard.events.js b/server/api/dashboard/dashboard.events.js index d35557e..6a42e41 100644 --- a/server/api/dashboard/dashboard.events.js +++ b/server/api/dashboard/dashboard.events.js @@ -1 +1 @@ -const a169_0x288c=['exports','../../mysqldb','undefined','emit','events','update','setMaxListeners','Dashboard'];(function(_0x3f4683,_0x288caf){const _0x32816b=function(_0x1dc493){while(--_0x1dc493){_0x3f4683['push'](_0x3f4683['shift']());}};_0x32816b(++_0x288caf);}(a169_0x288c,0x1d3));const a169_0x3281=function(_0x3f4683,_0x288caf){_0x3f4683=_0x3f4683-0x0;let _0x32816b=a169_0x288c[_0x3f4683];return _0x32816b;};const _0x3b97cc=a169_0x3281;'use strict';const EventEmitter=require(_0x3b97cc('0x1')),Dashboard=require(_0x3b97cc('0x6'))['db'][_0x3b97cc('0x4')],DashboardEvents=new EventEmitter();DashboardEvents[_0x3b97cc('0x3')](0x0);const events={'afterCreate':'save','afterUpdate':_0x3b97cc('0x2'),'afterDestroy':'remove'};function emitEvent(_0x1dc493){return function(_0x33b76e){const _0x36d767=a169_0x3281;DashboardEvents['emit'](_0x1dc493+':'+_0x33b76e['id'],_0x33b76e),DashboardEvents[_0x36d767('0x0')](_0x1dc493,_0x33b76e);};}for(const e in events){if(typeof events[e]!==_0x3b97cc('0x7')){const event=events[e];Dashboard['addHook'](e,emitEvent(event));}}module[_0x3b97cc('0x5')]=DashboardEvents; \ No newline at end of file +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 diff --git a/server/api/dashboard/dashboard.model.js b/server/api/dashboard/dashboard.model.js index a6a5f91..0830149 100644 --- a/server/api/dashboard/dashboard.model.js +++ b/server/api/dashboard/dashboard.model.js @@ -1 +1 @@ -const a170_0x3036=['exports','./dashboard.attributes','dashboards'];(function(_0x13d4b5,_0x303660){const _0x14f51a=function(_0x23bfb7){while(--_0x23bfb7){_0x13d4b5['push'](_0x13d4b5['shift']());}};_0x14f51a(++_0x303660);}(a170_0x3036,0xeb));const a170_0x14f5=function(_0x13d4b5,_0x303660){_0x13d4b5=_0x13d4b5-0x0;let _0x14f51a=a170_0x3036[_0x13d4b5];return _0x14f51a;};const _0x3950bb=a170_0x14f5;'use strict';const attributes=require(_0x3950bb('0x0'));module[_0x3950bb('0x2')]=function(_0x23bfb7){const _0x42833d=_0x3950bb,_0x5c9fec=_0x23bfb7['define']('Dashboard',attributes,{'tableName':_0x42833d('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5c9fec;}; \ No newline at end of file +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 diff --git a/server/api/dashboard/dashboard.rpc.js b/server/api/dashboard/dashboard.rpc.js index ae0b191..953e9e4 100644 --- a/server/api/dashboard/dashboard.rpc.js +++ b/server/api/dashboard/dashboard.rpc.js @@ -1 +1 @@ -const a171_0xc6cf=['register','../../rediscache'];(function(_0xf74fd4,_0xc6cf0){const _0x392c57=function(_0x3dcfff){while(--_0x3dcfff){_0xf74fd4['push'](_0xf74fd4['shift']());}};_0x392c57(++_0xc6cf0);}(a171_0xc6cf,0x80));const a171_0x392c=function(_0xf74fd4,_0xc6cf0){_0xf74fd4=_0xf74fd4-0x0;let _0x392c57=a171_0xc6cf[_0xf74fd4];return _0x392c57;};const _0x5ec0bc=a171_0x392c;'use strict';const {getSocket}=require(_0x5ec0bc('0x1')),socket=getSocket();require('./dashboard.socket')[_0x5ec0bc('0x0')](socket); \ No newline at end of file +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 diff --git a/server/api/dashboard/dashboard.socket.js b/server/api/dashboard/dashboard.socket.js index a61a827..f8c79ab 100644 --- a/server/api/dashboard/dashboard.socket.js +++ b/server/api/dashboard/dashboard.socket.js @@ -1 +1 @@ -const a172_0x27cd=['emit','length','register'];(function(_0x18ed3e,_0x27cd74){const _0x42e6fe=function(_0x37706c){while(--_0x37706c){_0x18ed3e['push'](_0x18ed3e['shift']());}};_0x42e6fe(++_0x27cd74);}(a172_0x27cd,0x184));const a172_0x42e6=function(_0x18ed3e,_0x27cd74){_0x18ed3e=_0x18ed3e-0x0;let _0x42e6fe=a172_0x27cd[_0x18ed3e];return _0x42e6fe;};const _0x46384d=a172_0x42e6;'use strict';const DashboardEvents=require('./dashboard.events'),events=['save','remove','update'];function createListener(_0x37706c,_0x30e312){return function(_0x5398c4){const _0x39d4a1=a172_0x42e6;_0x30e312[_0x39d4a1('0x2')](_0x37706c,_0x5398c4);};}exports[_0x46384d('0x1')]=function(_0x1fb69d){const _0x528d10=_0x46384d;for(let _0x5c879f=0x0,_0x51840c=events[_0x528d10('0x0')];_0x5c879f<_0x51840c;_0x5c879f++){const _0x4a83ef=events[_0x5c879f],_0x17b29a=createListener('dashboard:'+_0x4a83ef,_0x1fb69d);DashboardEvents['on'](_0x4a83ef,_0x17b29a);}}; \ No newline at end of file +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 diff --git a/server/api/dashboard/index.js b/server/api/dashboard/index.js index 8a37520..722af85 100644 --- a/server/api/dashboard/index.js +++ b/server/api/dashboard/index.js @@ -1 +1 @@ -const a173_0x3000=['exports','put','/:id','delete','addItem','isAuthenticated','/:id/clone','show','Router','get','clone','/:id/items','destroy','getItems','update','post','create'];(function(_0x20c83a,_0x3000b9){const _0x3d6ff8=function(_0x478f8d){while(--_0x478f8d){_0x20c83a['push'](_0x20c83a['shift']());}};_0x3d6ff8(++_0x3000b9);}(a173_0x3000,0x178));const a173_0x3d6f=function(_0x20c83a,_0x3000b9){_0x20c83a=_0x20c83a-0x0;let _0x3d6ff8=a173_0x3000[_0x20c83a];return _0x3d6ff8;};const _0x2da6aa=a173_0x3d6f;'use strict';const express=require('express'),router=express[_0x2da6aa('0x6')](),auth=require('../../components/auth/service'),controller=require('./dashboard.controller');router[_0x2da6aa('0x7')]('/',auth['isAuthenticated'](),controller['index']),router['get'](_0x2da6aa('0x0'),auth[_0x2da6aa('0x3')](),controller[_0x2da6aa('0x5')]),router[_0x2da6aa('0x7')]('/:id/items',auth[_0x2da6aa('0x3')](),controller[_0x2da6aa('0xb')]),router[_0x2da6aa('0xd')]('/',auth[_0x2da6aa('0x3')](),controller[_0x2da6aa('0xe')]),router[_0x2da6aa('0xd')](_0x2da6aa('0x4'),auth[_0x2da6aa('0x3')](),controller[_0x2da6aa('0x8')]),router['post'](_0x2da6aa('0x9'),auth[_0x2da6aa('0x3')](),controller[_0x2da6aa('0x2')]),router[_0x2da6aa('0x10')](_0x2da6aa('0x0'),auth[_0x2da6aa('0x3')](),controller[_0x2da6aa('0xc')]),router[_0x2da6aa('0x1')]('/:id',auth[_0x2da6aa('0x3')](),controller[_0x2da6aa('0xa')]),module[_0x2da6aa('0xf')]=router; \ No newline at end of file +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 diff --git a/server/api/dashboardItem/dashboardItem.attributes.js b/server/api/dashboardItem/dashboardItem.attributes.js index 702d136..9989750 100644 --- a/server/api/dashboardItem/dashboardItem.attributes.js +++ b/server/api/dashboardItem/dashboardItem.attributes.js @@ -1 +1 @@ -const a174_0x1a14=['parse','#ffffff','getDataValue','exports','sequelize','stringify','attrs','INTEGER','setDataValue','STRING'];(function(_0x262f40,_0x1a145a){const _0x4505aa=function(_0x183867){while(--_0x183867){_0x262f40['push'](_0x262f40['shift']());}};_0x4505aa(++_0x1a145a);}(a174_0x1a14,0x1b4));const a174_0x4505=function(_0x262f40,_0x1a145a){_0x262f40=_0x262f40-0x0;let _0x4505aa=a174_0x1a14[_0x262f40];return _0x4505aa;};const _0x4e22e8=a174_0x4505;'use strict';const Sequelize=require(_0x4e22e8('0x8'));module[_0x4e22e8('0x7')]={'title':{'type':Sequelize[_0x4e22e8('0x3')],'allowNull':![]},'type':{'type':Sequelize[_0x4e22e8('0x3')](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':Sequelize['TEXT']('long'),'get':function(){const _0x355188=_0x4e22e8;try{return JSON[_0x355188('0x4')](this[_0x355188('0x6')]('attrs'));}catch(_0x183867){return[];}},'set':function(_0x36c9cf){const _0xde4b2c=_0x4e22e8;try{this[_0xde4b2c('0x2')]('attrs',JSON[_0xde4b2c('0x9')](_0x36c9cf));}catch(_0x51ccde){this[_0xde4b2c('0x2')](_0xde4b2c('0x0'),JSON[_0xde4b2c('0x9')]([]));}}},'sizeX':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':Sequelize[_0x4e22e8('0x1')],'allowNull':![],'defaultValue':0x1},'row':{'type':Sequelize[_0x4e22e8('0x1')]},'col':{'type':Sequelize[_0x4e22e8('0x1')]},'background':{'type':Sequelize[_0x4e22e8('0x3')],'allowNull':![],'defaultValue':_0x4e22e8('0x5'),'validate':{'notEmpty':!![]}},'foreground':{'type':Sequelize[_0x4e22e8('0x3')],'allowNull':![],'defaultValue':'#2196f3','validate':{'notEmpty':!![]}},'link':{'type':Sequelize[_0x4e22e8('0x3')]}}; \ No newline at end of file +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 diff --git a/server/api/dashboardItem/dashboardItem.controller.js b/server/api/dashboardItem/dashboardItem.controller.js index 1828f88..d0dce79 100644 --- a/server/api/dashboardItem/dashboardItem.controller.js +++ b/server/api/dashboardItem/dashboardItem.controller.js @@ -1 +1 @@ -const a175_0x4ee6=['pie-chart','attrSerie2','attrs','../../components/parsers/qs','catch','lodash','params','length','custom','name','update','include','intersection','attrMetric','fields','register','sendStatus','attrTimezone','https://','./dashboardItem.socket','stringify','attributes','value','attrRefresh','merge','counter','keys','DashboardItem','clock','0.00','reportType','model','total','end','api','attrSerie1','then','attrHourFormat','body','multibar-chart','destroy','../../rediscache','attrSerie3','send','web-report','error','rawAttributes','attrVoiceQueues','attrFontSize','type','attrUrl','status','attrReport','query','../../config/logger','json','show','findOne'];(function(_0x3d84fb,_0x4ee6ed){const _0x1412d3=function(_0x245c5f){while(--_0x245c5f){_0x3d84fb['push'](_0x3d84fb['shift']());}};_0x1412d3(++_0x4ee6ed);}(a175_0x4ee6,0x1d2));const a175_0x1412=function(_0x3d84fb,_0x4ee6ed){_0x3d84fb=_0x3d84fb-0x0;let _0x1412d3=a175_0x4ee6[_0x3d84fb];return _0x1412d3;};const _0x13e1d5=a175_0x1412;'use strict';const _=require(_0x13e1d5('0x3')),qs=require(_0x13e1d5('0x1')),logger=require(_0x13e1d5('0x34'))(_0x13e1d5('0x20')),{getSocket}=require(_0x13e1d5('0x27')),socket=getSocket(),db=require('../../mysqldb')['db'];require(_0x13e1d5('0x11'))[_0x13e1d5('0xd')](socket);function respondWithResult(_0x245c5f,_0x4a862d){return _0x4a862d=_0x4a862d||0xc8,function(_0x4bd023){const _0x58877d=a175_0x1412;if(_0x4bd023)return _0x245c5f[_0x58877d('0x31')](_0x4a862d)[_0x58877d('0x35')](_0x4bd023);};}function saveUpdates(_0x292c80){return function(_0xf41205){const _0x489079=a175_0x1412;if(_0xf41205)return _0xf41205[_0x489079('0x8')](_0x292c80)[_0x489079('0x22')](function(_0x1e9180){return _0x1e9180;});return null;};}function removeEntity(_0x33d5dc){return function(_0x26373f){if(_0x26373f)return _0x26373f['destroy']()['then'](function(){const _0x540d28=a175_0x1412;_0x33d5dc[_0x540d28('0x31')](0xcc)[_0x540d28('0x1f')]();});};}function handleEntityNotFound(_0x45b69f){return function(_0x4b7598){const _0x3e9c9b=a175_0x1412;return!_0x4b7598&&_0x45b69f[_0x3e9c9b('0xe')](0x194),_0x4b7598;};}function handleError(_0x38c274,_0x3a211d){return _0x3a211d=_0x3a211d||0x1f4,function(_0x3c03f2){const _0x3604dc=a175_0x1412;logger[_0x3604dc('0x2b')](_0x3c03f2['stack']),_0x3c03f2[_0x3604dc('0x7')]&&delete _0x3c03f2[_0x3604dc('0x7')],_0x38c274[_0x3604dc('0x31')](_0x3a211d)[_0x3604dc('0x29')](_0x3c03f2);};}exports[_0x13e1d5('0x36')]=function(_0x443314,_0x13755b){const _0x3d6a33=_0x13e1d5;let _0x126a13={'raw':![],'where':{'id':_0x443314[_0x3d6a33('0x4')]['id']}};const _0x289cdd={};return _0x289cdd[_0x3d6a33('0x1d')]=_[_0x3d6a33('0x18')](db[_0x3d6a33('0x19')][_0x3d6a33('0x2c')]),_0x289cdd[_0x3d6a33('0x33')]=_[_0x3d6a33('0x18')](_0x443314['query']),_0x289cdd['filters']=_[_0x3d6a33('0xa')](_0x289cdd[_0x3d6a33('0x1d')],_0x289cdd['query']),_0x126a13[_0x3d6a33('0x13')]=_['intersection'](_0x289cdd[_0x3d6a33('0x1d')],qs['fields'](_0x443314[_0x3d6a33('0x33')][_0x3d6a33('0xc')])),_0x126a13[_0x3d6a33('0x13')]=_0x126a13[_0x3d6a33('0x13')][_0x3d6a33('0x5')]?_0x126a13[_0x3d6a33('0x13')]:_0x289cdd['model'],_0x443314['query']['includeAll']&&(_0x126a13[_0x3d6a33('0x9')]=[{'all':!![]}]),_0x126a13=_[_0x3d6a33('0x16')]({},_0x126a13,_0x443314['options']),db['DashboardItem'][_0x3d6a33('0x37')](_0x126a13)['then'](handleEntityNotFound(_0x13755b,null))[_0x3d6a33('0x22')](respondWithResult(_0x13755b,null))['catch'](handleError(_0x13755b,null));},exports[_0x13e1d5('0x26')]=function(_0xaf5b5,_0x272dde){const _0x20dbcd=_0x13e1d5;return db[_0x20dbcd('0x19')][_0x20dbcd('0x37')]({'where':{'id':_0xaf5b5[_0x20dbcd('0x4')]['id']}})[_0x20dbcd('0x22')](handleEntityNotFound(_0x272dde,null))[_0x20dbcd('0x22')](removeEntity(_0x272dde,null))[_0x20dbcd('0x2')](handleError(_0x272dde,null));};function widgetAttributes(_0x228cce){const _0x40868f=_0x13e1d5;try{switch(_0x228cce['type']){case'iframe':return[{'name':_0x40868f('0x30'),'value':_0x228cce[_0x40868f('0x30')]||(_0x228cce[_0x40868f('0x0')]&&_0x228cce[_0x40868f('0x0')][0x0]?_0x228cce[_0x40868f('0x0')][0x0][_0x40868f('0x14')]:undefined)||_0x40868f('0x10')}];case _0x40868f('0x6'):return[{'name':'attrPath','value':_0x228cce['attrPath']||(_0x228cce['attrs']&&_0x228cce[_0x40868f('0x0')][0x0]?_0x228cce['attrs'][0x0][_0x40868f('0x14')]:undefined)||''}];case _0x40868f('0x1a'):return[{'name':_0x40868f('0x23'),'value':_0x228cce[_0x40868f('0x23')]||(_0x228cce['attrs']&&_0x228cce[_0x40868f('0x0')][0x0]?_0x228cce[_0x40868f('0x0')][0x0][_0x40868f('0x14')]:undefined)||'HH:mm:ss'},{'name':_0x40868f('0xf'),'value':_0x228cce[_0x40868f('0xf')]||(_0x228cce[_0x40868f('0x0')]&&_0x228cce[_0x40868f('0x0')][0x1]?_0x228cce[_0x40868f('0x0')][0x1][_0x40868f('0x14')]:undefined)||_0x40868f('0x1b')},{'name':'attrFontSize','value':_0x228cce['attrFontSize']||(_0x228cce['attrs']&&_0x228cce[_0x40868f('0x0')][0x2]?_0x228cce[_0x40868f('0x0')][0x2][_0x40868f('0x14')]:undefined)||0xc}];case _0x40868f('0x17'):return[{'name':'attrMetric','value':_0x228cce[_0x40868f('0xb')]||(_0x228cce[_0x40868f('0x0')]&&_0x228cce['attrs'][0x0]?_0x228cce['attrs'][0x0][_0x40868f('0x14')]:undefined)||_0x40868f('0x1e')},{'name':_0x40868f('0x2d'),'value':_0x228cce[_0x40868f('0x2d')]||(_0x228cce[_0x40868f('0x0')]&&_0x228cce['attrs'][0x1]?_0x228cce[_0x40868f('0x0')][0x1][_0x40868f('0x14')]:undefined)||[]},{'name':'attrFontSize','value':_0x228cce[_0x40868f('0x2e')]||(_0x228cce['attrs']&&_0x228cce[_0x40868f('0x0')][0x2]?_0x228cce[_0x40868f('0x0')][0x2]['value']:undefined)||0x14}];case _0x40868f('0x25'):case _0x40868f('0x38'):return[{'name':_0x40868f('0x21'),'value':_0x228cce[_0x40868f('0x21')]||(_0x228cce['attrs']&&_0x228cce['attrs'][0x0]?_0x228cce[_0x40868f('0x0')][0x0][_0x40868f('0x14')]:undefined)||_0x40868f('0x1e')},{'name':_0x40868f('0x39'),'value':_0x228cce[_0x40868f('0x39')]||(_0x228cce[_0x40868f('0x0')]&&_0x228cce['attrs'][0x1]?_0x228cce[_0x40868f('0x0')][0x1][_0x40868f('0x14')]:undefined)||null},{'name':_0x40868f('0x28'),'value':_0x228cce[_0x40868f('0x28')]||(_0x228cce['attrs']&&_0x228cce[_0x40868f('0x0')][0x2]?_0x228cce[_0x40868f('0x0')][0x2][_0x40868f('0x14')]:undefined)||null},{'name':_0x40868f('0x2d'),'value':_0x228cce[_0x40868f('0x2d')]||(_0x228cce['attrs']&&_0x228cce[_0x40868f('0x0')][0x3]?_0x228cce['attrs'][0x3][_0x40868f('0x14')]:undefined)||[]}];case _0x40868f('0x2a'):return[{'name':_0x40868f('0x32'),'type':_0x228cce[_0x40868f('0x1c')]||(_0x228cce[_0x40868f('0x0')]&&_0x228cce[_0x40868f('0x0')][0x0]?_0x228cce[_0x40868f('0x0')][0x0][_0x40868f('0x2f')]:undefined)||null,'value':_0x228cce['attrReport']||(_0x228cce[_0x40868f('0x0')]&&_0x228cce[_0x40868f('0x0')][0x0]?_0x228cce['attrs'][0x0][_0x40868f('0x14')]:undefined)||null},{'name':'attrRefresh','value':_0x228cce[_0x40868f('0x15')]||(_0x228cce[_0x40868f('0x0')]&&_0x228cce[_0x40868f('0x0')][0x1]?_0x228cce['attrs'][0x1][_0x40868f('0x14')]:undefined)||0x0}];default:return[];}}catch(_0x1cc47b){return logger[_0x40868f('0x2b')]('widgetAttributes:\x20%s',JSON[_0x40868f('0x12')](_0x1cc47b)),[];}}exports['create']=function(_0x317ca1,_0x1d4b25){const _0x5d4906=_0x13e1d5;return _0x317ca1[_0x5d4906('0x24')]&&(_0x317ca1[_0x5d4906('0x24')]['attrs']=widgetAttributes(_0x317ca1[_0x5d4906('0x24')])),db['DashboardItem']['create'](_0x317ca1[_0x5d4906('0x24')],{})[_0x5d4906('0x22')](respondWithResult(_0x1d4b25,0xc9))[_0x5d4906('0x2')](handleError(_0x1d4b25,null));},exports['update']=function(_0x15ff47,_0x240d1e){const _0x4b5748=_0x13e1d5;return _0x15ff47['body']['id']&&delete _0x15ff47[_0x4b5748('0x24')]['id'],_0x15ff47['body']['attrs']=widgetAttributes(_0x15ff47[_0x4b5748('0x24')]),db['DashboardItem'][_0x4b5748('0x37')]({'where':{'id':_0x15ff47['params']['id']}})[_0x4b5748('0x22')](handleEntityNotFound(_0x240d1e,null))[_0x4b5748('0x22')](saveUpdates(_0x15ff47['body'],null))['then'](respondWithResult(_0x240d1e,null))[_0x4b5748('0x2')](handleError(_0x240d1e,null));}; \ No newline at end of file +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 diff --git a/server/api/dashboardItem/dashboardItem.events.js b/server/api/dashboardItem/dashboardItem.events.js index e114474..c33be8b 100644 --- a/server/api/dashboardItem/dashboardItem.events.js +++ b/server/api/dashboardItem/dashboardItem.events.js @@ -1 +1 @@ -const a176_0x47a3=['emit','setMaxListeners','remove','events','undefined','update','DashboardItem','exports','../../mysqldb'];(function(_0xfaa9d6,_0x47a3de){const _0x11a278=function(_0x129c43){while(--_0x129c43){_0xfaa9d6['push'](_0xfaa9d6['shift']());}};_0x11a278(++_0x47a3de);}(a176_0x47a3,0x1c7));const a176_0x11a2=function(_0xfaa9d6,_0x47a3de){_0xfaa9d6=_0xfaa9d6-0x0;let _0x11a278=a176_0x47a3[_0xfaa9d6];return _0x11a278;};const _0x3f1285=a176_0x11a2;'use strict';const EventEmitter=require(_0x3f1285('0x7')),DashboardItem=require(_0x3f1285('0x3'))['db'][_0x3f1285('0x1')],DashboardItemEvents=new EventEmitter();DashboardItemEvents[_0x3f1285('0x5')](0x0);const events={'afterCreate':'save','afterUpdate':_0x3f1285('0x0'),'afterDestroy':_0x3f1285('0x6')};function emitEvent(_0x129c43){return function(_0x776537){const _0x1741a7=a176_0x11a2;DashboardItemEvents[_0x1741a7('0x4')](_0x129c43+':'+_0x776537['id'],_0x776537),DashboardItemEvents[_0x1741a7('0x4')](_0x129c43,_0x776537);};}for(const e in events){if(typeof events[e]!==_0x3f1285('0x8')){const event=events[e];DashboardItem['addHook'](e,emitEvent(event));}}module[_0x3f1285('0x2')]=DashboardItemEvents; \ No newline at end of file +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 diff --git a/server/api/dashboardItem/dashboardItem.model.js b/server/api/dashboardItem/dashboardItem.model.js index 69429e8..ed7ce1a 100644 --- a/server/api/dashboardItem/dashboardItem.model.js +++ b/server/api/dashboardItem/dashboardItem.model.js @@ -1 +1 @@ -const a177_0x54f5=['./dashboardItem.attributes','dashboard_items','DashboardItem','define'];(function(_0x3ce2a7,_0x54f57c){const _0x306106=function(_0x37c8bc){while(--_0x37c8bc){_0x3ce2a7['push'](_0x3ce2a7['shift']());}};_0x306106(++_0x54f57c);}(a177_0x54f5,0x72));const a177_0x3061=function(_0x3ce2a7,_0x54f57c){_0x3ce2a7=_0x3ce2a7-0x0;let _0x306106=a177_0x54f5[_0x3ce2a7];return _0x306106;};const _0x783e1b=a177_0x3061;'use strict';const attributes=require(_0x783e1b('0x2'));module['exports']=function(_0x37c8bc){const _0x2f43eb=_0x783e1b,_0x54b7f1=_0x37c8bc[_0x2f43eb('0x1')](_0x2f43eb('0x0'),attributes,{'tableName':_0x2f43eb('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x54b7f1;}; \ No newline at end of file +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 diff --git a/server/api/dashboardItem/dashboardItem.rpc.js b/server/api/dashboardItem/dashboardItem.rpc.js index 1c69440..ca2cc5e 100644 --- a/server/api/dashboardItem/dashboardItem.rpc.js +++ b/server/api/dashboardItem/dashboardItem.rpc.js @@ -1 +1 @@ -const a178_0x5232=['../../rediscache','./dashboardItem.socket','register'];(function(_0x2c6ae,_0x5232c4){const _0x56b617=function(_0x6d37cc){while(--_0x6d37cc){_0x2c6ae['push'](_0x2c6ae['shift']());}};_0x56b617(++_0x5232c4);}(a178_0x5232,0x132));const a178_0x56b6=function(_0x2c6ae,_0x5232c4){_0x2c6ae=_0x2c6ae-0x0;let _0x56b617=a178_0x5232[_0x2c6ae];return _0x56b617;};const _0x318644=a178_0x56b6;'use strict';const {getSocket}=require(_0x318644('0x0')),socket=getSocket();require(_0x318644('0x1'))[_0x318644('0x2')](socket); \ No newline at end of file +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 diff --git a/server/api/dashboardItem/dashboardItem.socket.js b/server/api/dashboardItem/dashboardItem.socket.js index d1ba59a..08f3e49 100644 --- a/server/api/dashboardItem/dashboardItem.socket.js +++ b/server/api/dashboardItem/dashboardItem.socket.js @@ -1 +1 @@ -const a179_0x5de9=['emit','register','save','./dashboardItem.events','length','dashboardItem:','update'];(function(_0x4e80c6,_0x5de984){const _0x286916=function(_0x5797d3){while(--_0x5797d3){_0x4e80c6['push'](_0x4e80c6['shift']());}};_0x286916(++_0x5de984);}(a179_0x5de9,0x1b7));const a179_0x2869=function(_0x4e80c6,_0x5de984){_0x4e80c6=_0x4e80c6-0x0;let _0x286916=a179_0x5de9[_0x4e80c6];return _0x286916;};const _0xec81b2=a179_0x2869;'use strict';const DashboardItemEvents=require(_0xec81b2('0x5')),events=[_0xec81b2('0x4'),'remove',_0xec81b2('0x1')];function createListener(_0x5797d3,_0x358b40){return function(_0x1d4ed8){const _0xea62f2=a179_0x2869;_0x358b40[_0xea62f2('0x2')](_0x5797d3,_0x1d4ed8);};}exports[_0xec81b2('0x3')]=function(_0x1662fe){const _0x3d7b0b=_0xec81b2;for(let _0x3b7eea=0x0,_0x1f1d68=events[_0x3d7b0b('0x6')];_0x3b7eea<_0x1f1d68;_0x3b7eea++){const _0x5bb854=events[_0x3b7eea],_0x3b134f=createListener(_0x3d7b0b('0x0')+_0x5bb854,_0x1662fe);DashboardItemEvents['on'](_0x5bb854,_0x3b134f);}}; \ No newline at end of file +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 diff --git a/server/api/dashboardItem/index.js b/server/api/dashboardItem/index.js index 445d11b..3ea562e 100644 --- a/server/api/dashboardItem/index.js +++ b/server/api/dashboardItem/index.js @@ -1 +1 @@ -const a180_0x5699=['destroy','exports','post','isAuthenticated','../../components/auth/service','update','Router','get','./dashboardItem.controller','delete','express','show','/:id','create'];(function(_0x4e6ea7,_0x5699a4){const _0x50e3b4=function(_0x1f5280){while(--_0x1f5280){_0x4e6ea7['push'](_0x4e6ea7['shift']());}};_0x50e3b4(++_0x5699a4);}(a180_0x5699,0x187));const a180_0x50e3=function(_0x4e6ea7,_0x5699a4){_0x4e6ea7=_0x4e6ea7-0x0;let _0x50e3b4=a180_0x5699[_0x4e6ea7];return _0x50e3b4;};const _0x313f77=a180_0x50e3;'use strict';const express=require(_0x313f77('0xb')),router=express[_0x313f77('0x7')](),auth=require(_0x313f77('0x5')),controller=require(_0x313f77('0x9'));router[_0x313f77('0x8')]('/:id',auth[_0x313f77('0x4')](),controller[_0x313f77('0xc')]),router[_0x313f77('0x3')]('/',auth['isAuthenticated'](),controller[_0x313f77('0x0')]),router['put']('/:id',auth[_0x313f77('0x4')](),controller[_0x313f77('0x6')]),router[_0x313f77('0xa')](_0x313f77('0xd'),auth[_0x313f77('0x4')](),controller[_0x313f77('0x1')]),module[_0x313f77('0x2')]=router; \ No newline at end of file +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 diff --git a/server/api/disposition/disposition.attributes.js b/server/api/disposition/disposition.attributes.js index 81ee420..3798c10 100644 --- a/server/api/disposition/disposition.attributes.js +++ b/server/api/disposition/disposition.attributes.js @@ -1 +1 @@ -const a181_0x1a35=['ENUM','second','third','STRING','exports','first','sequelize'];(function(_0x78403b,_0x1a35c3){const _0x3edb6f=function(_0x1d2a8d){while(--_0x1d2a8d){_0x78403b['push'](_0x78403b['shift']());}};_0x3edb6f(++_0x1a35c3);}(a181_0x1a35,0x16a));const a181_0x3edb=function(_0x78403b,_0x1a35c3){_0x78403b=_0x78403b-0x0;let _0x3edb6f=a181_0x1a35[_0x78403b];return _0x3edb6f;};const _0x273ece=a181_0x3edb;'use strict';const Sequelize=require(_0x273ece('0x1'));module[_0x273ece('0x6')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'level':{'type':Sequelize[_0x273ece('0x2')]('first',_0x273ece('0x3'),_0x273ece('0x4')),'allowNull':![],'defaultValue':_0x273ece('0x0')},'description':{'type':Sequelize[_0x273ece('0x5')]}}; \ No newline at end of file +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 diff --git a/server/api/disposition/disposition.controller.js b/server/api/disposition/disposition.controller.js index 392b5f3..dbc2fd6 100644 --- a/server/api/disposition/disposition.controller.js +++ b/server/api/disposition/disposition.controller.js @@ -1 +1 @@ -const a182_0x59af=['type','offset','count','query','rawAttributes','map','filters','order','where','Dispositions','set','nolimit','api','limit','intersection','VIRTUAL','name','role','../../components/parsers/qs','fieldName','Unable\x20to\x20retrieve\x20the\x20current\x20user','status','merge','create','rows','Disposition','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','includeAll','filter','fields','options','catch','key','update','sort','send','user','undefined','body','json','../../config/logger','Content-Range','attributes','params','keys','length','error','get','sendStatus','UserProfileResource','findOne','UserProfileSection','include','../../mysqldb','then','autoAssociation','like','model','sequelize','index','destroy'];(function(_0x1d1625,_0x59afb0){const _0x29b859=function(_0x29638d){while(--_0x29638d){_0x1d1625['push'](_0x1d1625['shift']());}};_0x29b859(++_0x59afb0);}(a182_0x59af,0x85));const a182_0x29b8=function(_0x1d1625,_0x59afb0){_0x1d1625=_0x1d1625-0x0;let _0x29b859=a182_0x59af[_0x1d1625];return _0x29b859;};const _0x361a22=a182_0x29b8;'use strict';const _=require('lodash'),qs=require(_0x361a22('0x7')),logger=require(_0x361a22('0x1d'))(_0x361a22('0x1')),db=require(_0x361a22('0x2a'))['db'],{Op}=require(_0x361a22('0x2f'));function respondWithResult(_0x29638d,_0x314616){return _0x314616=_0x314616||0xc8,function(_0xa7b6ff){const _0x1692b9=a182_0x29b8;if(_0xa7b6ff)return _0x29638d['status'](_0x314616)[_0x1692b9('0x1c')](_0xa7b6ff);};}function respondWithFilteredResult(_0x30cbf6,_0x16eb1f){return function(_0x341301){const _0x46e498=a182_0x29b8;if(_0x341301){const _0x22589e=_0x341301[_0x46e498('0x34')],_0x4c844d=_0x16eb1f[_0x46e498('0x33')];let _0x3d1f79=_0x16eb1f['offset']+_0x16eb1f[_0x46e498('0x2')],_0x482139;return _0x3d1f79>=_0x22589e?(_0x3d1f79=_0x22589e,_0x482139=0xc8):_0x482139=0xce,_0x30cbf6[_0x46e498('0xa')](_0x482139),_0x30cbf6[_0x46e498('0x3c')](_0x46e498('0x1e'),_0x4c844d+'-'+_0x3d1f79+'/'+_0x22589e)[_0x46e498('0x1c')](_0x341301);}return null;};}function saveUpdates(_0x541fc5){return function(_0x19263b){const _0x37c9b1=a182_0x29b8;if(_0x19263b)return _0x19263b[_0x37c9b1('0x16')](_0x541fc5)[_0x37c9b1('0x2b')](function(_0x3cb065){return _0x3cb065;});return null;};}function removeEntity(_0x5348a0){return function(_0x3c661e){const _0x362d4a=a182_0x29b8;if(_0x3c661e)return _0x3c661e[_0x362d4a('0x31')]()[_0x362d4a('0x2b')](function(){const _0x4eff77=_0x362d4a,_0x42f5a3=_0x3c661e[_0x4eff77('0x24')]({'plain':!![]}),_0x17f1c6=_0x4eff77('0x3b');return db[_0x4eff77('0x26')][_0x4eff77('0x31')]({'where':{'type':_0x17f1c6,'resourceId':_0x42f5a3['id']}})[_0x4eff77('0x2b')](function(){return _0x3c661e;});})[_0x362d4a('0x2b')](function(){const _0x12f23f=_0x362d4a;_0x5348a0[_0x12f23f('0xa')](0xcc)['end']();});};}function handleEntityNotFound(_0x40d1f7){return function(_0x1de848){const _0x22fcc1=a182_0x29b8;return!_0x1de848&&_0x40d1f7[_0x22fcc1('0x25')](0x194),_0x1de848;};}function handleError(_0x5d4591,_0x447b3e){return _0x447b3e=_0x447b3e||0x1f4,function(_0x283670){const _0x37dbb8=a182_0x29b8;logger[_0x37dbb8('0x23')](_0x283670['stack']),_0x283670[_0x37dbb8('0x5')]&&delete _0x283670[_0x37dbb8('0x5')],_0x5d4591['status'](_0x447b3e)[_0x37dbb8('0x18')](_0x283670);};}exports[_0x361a22('0x30')]=function(_0x4804ef,_0x1f6078){const _0x2eb0b4=_0x361a22;let _0x3e56f2={};const _0x3056b9={},_0x4d8c23={'count':0x0,'rows':[]},_0x51f8b4=_[_0x2eb0b4('0x37')](db[_0x2eb0b4('0xe')][_0x2eb0b4('0x36')],function(_0x4cc9e4){const _0x8b0f16=_0x2eb0b4;return{'name':_0x4cc9e4[_0x8b0f16('0x8')],'type':_0x4cc9e4[_0x8b0f16('0x32')][_0x8b0f16('0x15')]};});_0x3056b9[_0x2eb0b4('0x2e')]=_[_0x2eb0b4('0x37')](_0x51f8b4,_0x2eb0b4('0x5')),_0x3056b9[_0x2eb0b4('0x35')]=_['keys'](_0x4804ef['query']),_0x3056b9['filters']=_[_0x2eb0b4('0x3')](_0x3056b9[_0x2eb0b4('0x2e')],_0x3056b9['query']),_0x3e56f2[_0x2eb0b4('0x1f')]=_['intersection'](_0x3056b9['model'],qs[_0x2eb0b4('0x12')](_0x4804ef['query']['fields'])),_0x3e56f2['attributes']=_0x3e56f2['attributes']['length']?_0x3e56f2[_0x2eb0b4('0x1f')]:_0x3056b9['model'];typeof _0x4804ef[_0x2eb0b4('0x35')][_0x2eb0b4('0x0')]===_0x2eb0b4('0x1a')&&(_0x3e56f2[_0x2eb0b4('0x2')]=qs[_0x2eb0b4('0x2')](_0x4804ef[_0x2eb0b4('0x35')][_0x2eb0b4('0x2')]),_0x3e56f2[_0x2eb0b4('0x33')]=qs[_0x2eb0b4('0x33')](_0x4804ef[_0x2eb0b4('0x35')]['offset']));_0x3e56f2[_0x2eb0b4('0x39')]=qs['sort'](_0x4804ef['query'][_0x2eb0b4('0x17')]),_0x3e56f2[_0x2eb0b4('0x3a')]=qs[_0x2eb0b4('0x38')](_['pick'](_0x4804ef[_0x2eb0b4('0x35')],_0x3056b9[_0x2eb0b4('0x38')]),_0x51f8b4);_0x4804ef[_0x2eb0b4('0x35')][_0x2eb0b4('0x11')]&&(_0x3e56f2[_0x2eb0b4('0x3a')]=_[_0x2eb0b4('0xb')](_0x3e56f2[_0x2eb0b4('0x3a')],{[Op['or']]:_[_0x2eb0b4('0x37')](_0x51f8b4,function(_0x2b4c23){const _0x3e7005=_0x2eb0b4;if(_0x2b4c23[_0x3e7005('0x32')]!==_0x3e7005('0x4')){const _0x2aaa87={};return _0x2aaa87[_0x2b4c23[_0x3e7005('0x5')]]={[Op[_0x3e7005('0x2d')]]:'%'+_0x4804ef[_0x3e7005('0x35')][_0x3e7005('0x11')]+'%'},_0x2aaa87;}})}));_0x3e56f2=_[_0x2eb0b4('0xb')]({},_0x3e56f2,_0x4804ef[_0x2eb0b4('0x13')]);const _0x43f3ef={'where':_0x3e56f2[_0x2eb0b4('0x3a')]};return db['Disposition']['count'](_0x43f3ef)['then'](function(_0x285ab0){const _0x426783=_0x2eb0b4;return _0x4d8c23[_0x426783('0x34')]=_0x285ab0,_0x4804ef[_0x426783('0x35')][_0x426783('0x10')]&&(_0x3e56f2[_0x426783('0x29')]=[{'all':!![]}]),db[_0x426783('0xe')]['findAll'](_0x3e56f2);})[_0x2eb0b4('0x2b')](function(_0x242990){const _0x4ae95d=_0x2eb0b4;return _0x4d8c23[_0x4ae95d('0xd')]=_0x242990,_0x4d8c23;})[_0x2eb0b4('0x2b')](respondWithFilteredResult(_0x1f6078,_0x3e56f2))[_0x2eb0b4('0x14')](handleError(_0x1f6078,null));},exports['show']=function(_0x13767d,_0x2945c9){const _0x22134b=_0x361a22;let _0x502957={'raw':!![],'where':{'id':_0x13767d[_0x22134b('0x20')]['id']}};const _0x51686f={};return _0x51686f[_0x22134b('0x2e')]=_[_0x22134b('0x21')](db['Disposition']['rawAttributes']),_0x51686f[_0x22134b('0x35')]=_[_0x22134b('0x21')](_0x13767d[_0x22134b('0x35')]),_0x51686f[_0x22134b('0x38')]=_['intersection'](_0x51686f[_0x22134b('0x2e')],_0x51686f[_0x22134b('0x35')]),_0x502957['attributes']=_[_0x22134b('0x3')](_0x51686f[_0x22134b('0x2e')],qs[_0x22134b('0x12')](_0x13767d[_0x22134b('0x35')][_0x22134b('0x12')])),_0x502957[_0x22134b('0x1f')]=_0x502957[_0x22134b('0x1f')][_0x22134b('0x22')]?_0x502957[_0x22134b('0x1f')]:_0x51686f[_0x22134b('0x2e')],_0x13767d[_0x22134b('0x35')]['includeAll']&&(_0x502957[_0x22134b('0x29')]=[{'all':!![]}]),_0x502957=_[_0x22134b('0xb')]({},_0x502957,_0x13767d[_0x22134b('0x13')]),db[_0x22134b('0xe')][_0x22134b('0x27')](_0x502957)[_0x22134b('0x2b')](handleEntityNotFound(_0x2945c9,null))['then'](respondWithResult(_0x2945c9,null))[_0x22134b('0x14')](handleError(_0x2945c9,null));},exports[_0x361a22('0xc')]=function(_0x1be04e,_0x32beba){const _0x1c0fd4=_0x361a22;return db['Disposition'][_0x1c0fd4('0xc')](_0x1be04e[_0x1c0fd4('0x1b')],{})[_0x1c0fd4('0x2b')](function(_0x21f615){const _0x240cc6=_0x1c0fd4,_0x296814=_0x1be04e[_0x240cc6('0x19')]['get']({'plain':!![]});if(!_0x296814)throw new Error(_0x240cc6('0x9'));if(_0x296814[_0x240cc6('0x6')]===_0x240cc6('0x19')){const _0x4eb252=_0x21f615[_0x240cc6('0x24')]({'plain':!![]}),_0x2974ed=_0x240cc6('0x3b');return db[_0x240cc6('0x28')]['findOne']({'where':{'name':_0x2974ed,'userProfileId':_0x296814['userProfileId']},'raw':!![]})[_0x240cc6('0x2b')](function(_0x522b2e){const _0x322bc1=_0x240cc6;return _0x522b2e&&_0x522b2e[_0x322bc1('0x2c')]===0x0?db['UserProfileResource'][_0x322bc1('0xc')]({'name':_0x4eb252[_0x322bc1('0x5')],'resourceId':_0x4eb252['id'],'type':_0x522b2e['name'],'sectionId':_0x522b2e['id']},{})[_0x322bc1('0x2b')](function(){return _0x21f615;}):_0x21f615;})[_0x240cc6('0x14')](function(_0x32a913){const _0x43a9e3=_0x240cc6;logger['error'](_0x43a9e3('0xf'),_0x32a913);throw _0x32a913;});}return _0x21f615;})[_0x1c0fd4('0x2b')](respondWithResult(_0x32beba,0xc9))[_0x1c0fd4('0x14')](handleError(_0x32beba,null));},exports[_0x361a22('0x16')]=function(_0x1e6df4,_0x11fdf9){const _0x1a4323=_0x361a22;return _0x1e6df4['body']['id']&&delete _0x1e6df4[_0x1a4323('0x1b')]['id'],db['Disposition'][_0x1a4323('0x27')]({'where':{'id':_0x1e6df4[_0x1a4323('0x20')]['id']}})[_0x1a4323('0x2b')](handleEntityNotFound(_0x11fdf9,null))['then'](saveUpdates(_0x1e6df4[_0x1a4323('0x1b')],null))[_0x1a4323('0x2b')](respondWithResult(_0x11fdf9,null))[_0x1a4323('0x14')](handleError(_0x11fdf9,null));},exports['destroy']=function(_0x428cc4,_0x13d0d7){const _0x3c08aa=_0x361a22;return db['Disposition'][_0x3c08aa('0x27')]({'where':{'id':_0x428cc4[_0x3c08aa('0x20')]['id']}})['then'](handleEntityNotFound(_0x13d0d7,null))['then'](removeEntity(_0x13d0d7,null))[_0x3c08aa('0x14')](handleError(_0x13d0d7,null));}; \ No newline at end of file +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 diff --git a/server/api/disposition/disposition.model.js b/server/api/disposition/disposition.model.js index f802e50..550d2ed 100644 --- a/server/api/disposition/disposition.model.js +++ b/server/api/disposition/disposition.model.js @@ -1 +1 @@ -const a183_0x135b=['name_voice','name','Disposition','name_mail','MailAccountId','tools_dispositions','exports','OpenchannelAccountId','name_whatsapp','ListId','SmsAccountId','name_sms','FaxAccountId','WhatsappAccountId'];(function(_0x5d58dc,_0x135bdd){const _0xba3186=function(_0x5e5e12){while(--_0x5e5e12){_0x5d58dc['push'](_0x5d58dc['shift']());}};_0xba3186(++_0x135bdd);}(a183_0x135b,0xa8));const a183_0xba31=function(_0x5d58dc,_0x135bdd){_0x5d58dc=_0x5d58dc-0x0;let _0xba3186=a183_0x135b[_0x5d58dc];return _0xba3186;};const _0x4e2e7a=a183_0xba31;'use strict';const attributes=require('./disposition.attributes');module[_0x4e2e7a('0x6')]=function(_0x5e5e12){const _0x129cb0=_0x4e2e7a,_0x5b021c=_0x5e5e12['define'](_0x129cb0('0x2'),attributes,{'tableName':_0x129cb0('0x5'),'paranoid':![],'indexes':[{'unique':!![],'name':_0x129cb0('0x0'),'fields':[_0x129cb0('0x1'),_0x129cb0('0x9')]},{'unique':!![],'name':'name_chat','fields':['name','ChatWebsiteId']},{'unique':!![],'name':_0x129cb0('0x3'),'fields':['name',_0x129cb0('0x4')]},{'unique':!![],'name':_0x129cb0('0xb'),'fields':[_0x129cb0('0x1'),_0x129cb0('0xa')]},{'unique':!![],'name':'name_fax','fields':[_0x129cb0('0x1'),_0x129cb0('0xc')]},{'unique':!![],'name':'name_openchannel','fields':['name',_0x129cb0('0x7')]},{'unique':!![],'name':_0x129cb0('0x8'),'fields':[_0x129cb0('0x1'),_0x129cb0('0xd')]}],'timestamps':!![]});return _0x5b021c;}; \ No newline at end of file +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 diff --git a/server/api/disposition/index.js b/server/api/disposition/index.js index 833555b..26e4014 100644 --- a/server/api/disposition/index.js +++ b/server/api/disposition/index.js @@ -1 +1 @@ -const a184_0x4e78=['express','create','index','post','delete','exports','destroy','../../components/auth/service','/:id','show','isAuthenticated','update','put','get'];(function(_0x2fa33e,_0x4e7849){const _0x4cdf03=function(_0x355333){while(--_0x355333){_0x2fa33e['push'](_0x2fa33e['shift']());}};_0x4cdf03(++_0x4e7849);}(a184_0x4e78,0x1db));const a184_0x4cdf=function(_0x2fa33e,_0x4e7849){_0x2fa33e=_0x2fa33e-0x0;let _0x4cdf03=a184_0x4e78[_0x2fa33e];return _0x4cdf03;};const _0x3f2888=a184_0x4cdf;'use strict';const express=require(_0x3f2888('0x1')),router=express['Router'](),auth=require(_0x3f2888('0x8')),controller=require('./disposition.controller');router[_0x3f2888('0x0')]('/',auth['isAuthenticated'](),controller[_0x3f2888('0x3')]),router[_0x3f2888('0x0')](_0x3f2888('0x9'),auth[_0x3f2888('0xb')](),controller[_0x3f2888('0xa')]),router[_0x3f2888('0x4')]('/',auth[_0x3f2888('0xb')](),controller[_0x3f2888('0x2')]),router[_0x3f2888('0xd')](_0x3f2888('0x9'),auth[_0x3f2888('0xb')](),controller[_0x3f2888('0xc')]),router[_0x3f2888('0x5')](_0x3f2888('0x9'),auth[_0x3f2888('0xb')](),controller[_0x3f2888('0x7')]),module[_0x3f2888('0x6')]=router; \ No newline at end of file +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 diff --git a/server/api/faxAccount/faxAccount.attributes.js b/server/api/faxAccount/faxAccount.attributes.js index 31891ed..8d4c527 100644 --- a/server/api/faxAccount/faxAccount.attributes.js +++ b/server/api/faxAccount/faxAccount.attributes.js @@ -1 +1 @@ -const a185_0x5279=['INTEGER','DADHI','KHOMP','yes','IAX','12000','setDataValue','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','14400','4800','sequelize','ENUM','9600','BOOLEAN','xCALLY\x20Motion\x20Fax','SIP','2400','STRING','localstationid','exports'];(function(_0x4d3b14,_0x527951){const _0x50c2c5=function(_0x5bb1e6){while(--_0x5bb1e6){_0x4d3b14['push'](_0x4d3b14['shift']());}};_0x50c2c5(++_0x527951);}(a185_0x5279,0x1d3));const a185_0x50c2=function(_0x4d3b14,_0x527951){_0x4d3b14=_0x4d3b14-0x0;let _0x50c2c5=a185_0x5279[_0x4d3b14];return _0x50c2c5;};const _0x520401=a185_0x50c2;'use strict';const Sequelize=require(_0x520401('0x3'));module[_0x520401('0xc')]={'name':{'type':Sequelize['STRING'],'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize[_0x520401('0xa')]},'ecm':{'type':Sequelize[_0x520401('0x4')](_0x520401('0x10'),'no'),'defaultValue':_0x520401('0x10')},'headerinfo':{'type':Sequelize[_0x520401('0xa')],'defaultValue':_0x520401('0x7')},'localstationid':{'type':Sequelize[_0x520401('0xa')],'unique':_0x520401('0xb')},'minrate':{'type':Sequelize['ENUM'](_0x520401('0x9'),_0x520401('0x2'),'7200',_0x520401('0x5'),'12000',_0x520401('0x1')),'defaultValue':_0x520401('0x2')},'maxrate':{'type':Sequelize[_0x520401('0x4')](_0x520401('0x9'),_0x520401('0x2'),'7200',_0x520401('0x5'),_0x520401('0x12'),'14400'),'defaultValue':_0x520401('0x1')},'modem':{'type':Sequelize[_0x520401('0xa')],'defaultValue':'v17,v27,v29'},'gateway':{'type':Sequelize[_0x520401('0xa')],'defaultValue':'no','validate':{'is':/^(?:yes|no|[0-9]+)$/}},'faxdetect':{'type':Sequelize[_0x520401('0xa')],'defaultValue':'no','validate':{'is':/^(?:yes|no|t38|cng|[0-9]+)$/}},'t38timeout':{'type':Sequelize[_0x520401('0xd')],'defaultValue':0x1388,'validate':{'min':0x3e8}},'tech':{'type':Sequelize['ENUM'](_0x520401('0x8'),_0x520401('0x11'),_0x520401('0xe'),_0x520401('0xf')),'defaultValue':_0x520401('0x8')},'key':{'type':Sequelize['STRING'],'allowNull':![]},'notificationTemplate':{'type':Sequelize['TEXT'],'defaultValue':function(){const _0x25e553=_0x520401;return _0x25e553('0x0');}},'notificationSound':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x520401('0xd')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x520401('0x6')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x520401('0xd')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x520401('0xd')],'allowNull':!![],'defaultValue':null,'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize[_0x520401('0x6')],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x5bb1e6){const _0x21909e=_0x520401;if(!_0x5bb1e6)this['setDataValue']('mandatoryDispositionPauseId',null);this[_0x21909e('0x13')]('mandatoryDisposition',_0x5bb1e6);}}}; \ No newline at end of file +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 diff --git a/server/api/faxAccount/faxAccount.controller.js b/server/api/faxAccount/faxAccount.controller.js index a6c4d57..242f765 100644 --- a/server/api/faxAccount/faxAccount.controller.js +++ b/server/api/faxAccount/faxAccount.controller.js @@ -1 +1 @@ -const a186_0x1eed=['map','user','../../components/parsers/qs','keys','order','filename','format','getApplications','update','error','index','rows','destroy','ReceiveFax','headerinfo','then','debug','removeDispositions','out','defaults','stack','sendStatus','modem','Tags','VIRTUAL','SendFax','key','basename','attachments','DESC','isArray','Fax\x20Extension','info','merge','updateAccountApplications','push','/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','gateway','isNil','set','Set','intersection','Disposition','findByPk','Content-Range','end','localstationid','CmContact','FaxApplication','bulkCreate','lodash','exten','options','userProfileId','ContactId','fields','gte','undefined','FaxInteraction','offset','$gte','FaxMessage','Unable\x20to\x20retrieve\x20the\x20current\x20user','addAgents','Messages','internal','dataValues','UserProfileResource','filters','status','User','get','getInteractions','like','nolimit','omit','body','FaxAccount,\x20%s,\x20%s,\x20%s','addApplications','path','Owner','include','rawAttributes','moment','app','Answer','Send\x20Fax\x20failed','Tag','ecm','SendFaxRpc,\x20%s','server/files/attachments','includeAll','client','filter','./faxAccount.socket','where','Contact','getAgents','sequelize','code','name','removeAnswers','t38timeout','root','appdata','CheckAfterSend','json','params','attributes','findAll','color','emit','Wait','YYYY-MM-DD\x20HH:mm:ss','\x22%s\x22\x20<%s>','message','tech','CannedAnswer','role','catch','findOne','addDisposition','updatedAt','Contacts','getMessages','context','request','createdAt','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','pick','FaxAccount','count','List','sort','../../config/environment','ids','Pause','stringify','describe','transaction','from','model','type','../../config/logger','getAnswers','description','limit','create','autoAssociation','FaxAccountId','userFaxAccount:remove','Contact\x20not\x20found','http','request\x20sent','join','CDR(type)=inbound-fax','mandatoryDispositionPause','addAccountApplications','length','VoiceExtension','../../rediscache','from-voip-provider','ListId','FaxAccount,\x20%s,\x20%s','send','FaxAccounts','FAXOPT(','tag','util','query','addInteraction'];(function(_0x13037e,_0x1eedeb){const _0x54cf64=function(_0xdf5637){while(--_0xdf5637){_0x13037e['push'](_0x13037e['shift']());}};_0x54cf64(++_0x1eedeb);}(a186_0x1eed,0x8b));const a186_0x54cf=function(_0x13037e,_0x1eedeb){_0x13037e=_0x13037e-0x0;let _0x54cf64=a186_0x1eed[_0x13037e];return _0x54cf64;};const _0xfde3c0=a186_0x54cf;'use strict';const moment=require(_0xfde3c0('0x73')),util=require(_0xfde3c0('0x1d')),path=require('path'),_=require(_0xfde3c0('0x52')),{getSocket}=require(_0xfde3c0('0x15')),socket=getSocket(),qs=require(_0xfde3c0('0x22')),logger=require(_0xfde3c0('0x4'))('api'),config=require(_0xfde3c0('0xa6')),db=require('../../mysqldb')['db'],{Op}=require(_0xfde3c0('0x82'));require(_0xfde3c0('0x7e'))['register'](socket);const jayson=require('jayson/promise'),client=jayson[_0xfde3c0('0x7c')][_0xfde3c0('0xd')]({'port':0x232c}),client9002=jayson[_0xfde3c0('0x7c')][_0xfde3c0('0xd')]({'port':0x232a});function respondWithRpcPromise(_0xdf5637,_0x3fff9c,_0x4edbc2,_0x3248a9){return new Promise(function(_0x1e6fe3,_0x144730){const _0x1a879d=a186_0x54cf,_0x144a6e=_0x3248a9||client;return _0x144a6e[_0x1a879d('0x9e')](_0xdf5637,_0x4edbc2)[_0x1a879d('0x2f')](function(_0x2b9abe){const _0xa7ce19=_0x1a879d;logger['info']('FaxAccount,\x20%s,\x20%s',_0x3fff9c,_0xa7ce19('0xe')),logger[_0xa7ce19('0x30')](_0xa7ce19('0x6d'),_0x3fff9c,'request\x20sent',JSON[_0xa7ce19('0xa9')](_0x2b9abe));if(_0x2b9abe[_0xa7ce19('0x29')]){if(_0x2b9abe[_0xa7ce19('0x29')][_0xa7ce19('0x83')]===0x1f4)return logger[_0xa7ce19('0x29')](_0xa7ce19('0x18'),_0x3fff9c,_0x2b9abe[_0xa7ce19('0x29')][_0xa7ce19('0x93')]),_0x144730(_0x2b9abe[_0xa7ce19('0x29')][_0xa7ce19('0x93')]);return logger['error'](_0xa7ce19('0x18'),_0x3fff9c,_0x2b9abe[_0xa7ce19('0x29')][_0xa7ce19('0x93')]),_0x1e6fe3(_0x2b9abe[_0xa7ce19('0x29')][_0xa7ce19('0x93')]);}else logger[_0xa7ce19('0x40')]('FaxAccount,\x20%s,\x20%s',_0x3fff9c,'request\x20sent'),_0x1e6fe3(_0x2b9abe['result']['message']);})['catch'](function(_0x5868d5){const _0x5d6a9e=_0x1a879d;logger[_0x5d6a9e('0x29')]('FaxAccount,\x20%s,\x20%s',_0x3fff9c,_0x5868d5),_0x144730(_0x5868d5);});});}function respondWithStatusCode(_0x333333,_0x2dcb86){return _0x2dcb86=_0x2dcb86||0xcc,function(_0x337072){const _0x2231a5=a186_0x54cf;if(_0x337072)return _0x333333['sendStatus'](_0x2dcb86);return _0x333333[_0x2231a5('0x65')](_0x2dcb86)[_0x2231a5('0x4d')]();};}function respondWithResult(_0x50466d,_0x34a820){return _0x34a820=_0x34a820||0xc8,function(_0x3221e3){const _0x5fc22=a186_0x54cf;if(_0x3221e3)return _0x50466d[_0x5fc22('0x65')](_0x34a820)[_0x5fc22('0x8a')](_0x3221e3);};}function respondWithFilteredResult(_0x407241,_0x4ed56c){return function(_0xd5b612){const _0xe11a4b=a186_0x54cf;if(_0xd5b612){const _0x26823a=_0xd5b612[_0xe11a4b('0xa3')],_0x30e307=_0x4ed56c[_0xe11a4b('0x5b')];let _0x5e569a=_0x4ed56c[_0xe11a4b('0x5b')]+_0x4ed56c[_0xe11a4b('0x7')],_0x266d6e;return _0x5e569a>=_0x26823a?(_0x5e569a=_0x26823a,_0x266d6e=0xc8):_0x266d6e=0xce,_0x407241[_0xe11a4b('0x65')](_0x266d6e),_0x407241[_0xe11a4b('0x47')](_0xe11a4b('0x4c'),_0x30e307+'-'+_0x5e569a+'/'+_0x26823a)[_0xe11a4b('0x8a')](_0xd5b612);}return null;};}function saveUpdates(_0x3f91a5){return function(_0x2b19bc){const _0x27e88a=a186_0x54cf;if(_0x2b19bc)return _0x2b19bc[_0x27e88a('0x28')](_0x3f91a5)['then'](function(_0x2ae1e5){return _0x2ae1e5;});return null;};}function removeEntity(_0x22c116){return function(_0x220c2c){const _0x6cbb54=a186_0x54cf;if(_0x220c2c)return _0x220c2c[_0x6cbb54('0x2c')]()[_0x6cbb54('0x2f')](function(){const _0x3e9866=_0x6cbb54,_0x34c2b0=_0x220c2c[_0x3e9866('0x67')]({'plain':!![]}),_0x36ecae=_0x3e9866('0x1a');return db[_0x3e9866('0x63')]['destroy']({'where':{'type':_0x36ecae,'resourceId':_0x34c2b0['id']}})['then'](function(){return _0x220c2c;});})[_0x6cbb54('0x2f')](function(){const _0x4e90f0=_0x6cbb54;_0x22c116[_0x4e90f0('0x65')](0xcc)[_0x4e90f0('0x4d')]();});};}function handleEntityNotFound(_0x374004){return function(_0x1ac2b0){const _0x237cf7=a186_0x54cf;return!_0x1ac2b0&&_0x374004[_0x237cf7('0x35')](0x194),_0x1ac2b0;};}function handleError(_0xc9cfed,_0x651b78){return _0x651b78=_0x651b78||0x1f4,function(_0x2354e5){const _0x205fd4=a186_0x54cf;logger[_0x205fd4('0x29')](_0x2354e5[_0x205fd4('0x34')]),_0x2354e5[_0x205fd4('0x84')]&&delete _0x2354e5['name'],_0xc9cfed[_0x205fd4('0x65')](_0x651b78)[_0x205fd4('0x19')](_0x2354e5);};}exports[_0xfde3c0('0x2a')]=function(_0x5cbe3e,_0x4e9ec8){const _0x172236=_0xfde3c0;let _0x10fc6a={'include':[{'model':db['Pause'],'as':_0x172236('0x11')}]};const _0x1c99d7={},_0x59046f={'count':0x0,'rows':[]},_0x3724bb=_[_0x172236('0x20')](db[_0x172236('0xa2')][_0x172236('0x72')],function(_0x538022){const _0x542b9b=_0x172236;return{'name':_0x538022['fieldName'],'type':_0x538022[_0x542b9b('0x3')][_0x542b9b('0x3a')]};});_0x1c99d7[_0x172236('0x2')]=_[_0x172236('0x20')](_0x3724bb,_0x172236('0x84')),_0x1c99d7['query']=_[_0x172236('0x23')](_0x5cbe3e['query']),_0x1c99d7[_0x172236('0x64')]=_['intersection'](_0x1c99d7['model'],_0x1c99d7['query']),_0x10fc6a['attributes']=_[_0x172236('0x49')](_0x1c99d7['model'],qs[_0x172236('0x57')](_0x5cbe3e['query'][_0x172236('0x57')])),_0x10fc6a['attributes']=_0x10fc6a[_0x172236('0x8c')][_0x172236('0x13')]?_0x10fc6a[_0x172236('0x8c')]:_0x1c99d7[_0x172236('0x2')];typeof _0x5cbe3e[_0x172236('0x1e')][_0x172236('0x6a')]==='undefined'&&(_0x10fc6a['limit']=qs[_0x172236('0x7')](_0x5cbe3e[_0x172236('0x1e')][_0x172236('0x7')]),_0x10fc6a[_0x172236('0x5b')]=qs[_0x172236('0x5b')](_0x5cbe3e['query'][_0x172236('0x5b')]));_0x10fc6a[_0x172236('0x24')]=qs[_0x172236('0xa5')](_0x5cbe3e[_0x172236('0x1e')][_0x172236('0xa5')]),_0x10fc6a['where']=qs[_0x172236('0x64')](_[_0x172236('0xa1')](_0x5cbe3e['query'],_0x1c99d7['filters']),_0x3724bb);_0x5cbe3e['query'][_0x172236('0x7d')]&&(_0x10fc6a[_0x172236('0x7f')]=_['merge'](_0x10fc6a[_0x172236('0x7f')],{[Op['or']]:_['map'](_0x3724bb,function(_0x217db7){const _0x2a8f8f=_0x172236;if(_0x217db7[_0x2a8f8f('0x3')]!==_0x2a8f8f('0x38')){const _0x44b8bc={};return _0x44b8bc[_0x217db7[_0x2a8f8f('0x84')]]={[Op[_0x2a8f8f('0x69')]]:'%'+_0x5cbe3e['query']['filter']+'%'},_0x44b8bc;}})}));_0x10fc6a=_[_0x172236('0x41')]({},_0x10fc6a,_0x5cbe3e[_0x172236('0x54')]);const _0x2edb52={'where':_0x10fc6a['where']};return db[_0x172236('0xa2')][_0x172236('0xa3')](_0x2edb52)['then'](function(_0x15548a){const _0x98d4cc=_0x172236;return _0x59046f[_0x98d4cc('0xa3')]=_0x15548a,_0x5cbe3e[_0x98d4cc('0x1e')][_0x98d4cc('0x7b')]&&(_0x10fc6a[_0x98d4cc('0x71')]=[{'all':!![]}]),db[_0x98d4cc('0xa2')][_0x98d4cc('0x8d')](_0x10fc6a);})[_0x172236('0x2f')](function(_0x5ef78e){const _0x4fa7ea=_0x172236;return _0x59046f[_0x4fa7ea('0x2b')]=_0x5ef78e,_0x59046f;})[_0x172236('0x2f')](respondWithFilteredResult(_0x4e9ec8,_0x10fc6a))[_0x172236('0x97')](handleError(_0x4e9ec8,null));},exports['show']=function(_0x55d46b,_0x37cf53){const _0x5f5cab=_0xfde3c0;let _0x10f921={'raw':![],'where':{'id':_0x55d46b[_0x5f5cab('0x8b')]['id']},'include':[{'model':db[_0x5f5cab('0xa8')],'as':_0x5f5cab('0x11')}]};const _0x5db07c={};return _0x5db07c['model']=_[_0x5f5cab('0x23')](db['FaxAccount']['rawAttributes']),_0x5db07c[_0x5f5cab('0x1e')]=_['keys'](_0x55d46b['query']),_0x5db07c['filters']=_[_0x5f5cab('0x49')](_0x5db07c[_0x5f5cab('0x2')],_0x5db07c[_0x5f5cab('0x1e')]),_0x10f921[_0x5f5cab('0x8c')]=_[_0x5f5cab('0x49')](_0x5db07c[_0x5f5cab('0x2')],qs[_0x5f5cab('0x57')](_0x55d46b[_0x5f5cab('0x1e')]['fields'])),_0x10f921[_0x5f5cab('0x8c')]=_0x10f921[_0x5f5cab('0x8c')]['length']?_0x10f921[_0x5f5cab('0x8c')]:_0x5db07c[_0x5f5cab('0x2')],_0x55d46b[_0x5f5cab('0x1e')][_0x5f5cab('0x7b')]&&(_0x10f921[_0x5f5cab('0x71')]=[{'all':!![]}]),_0x10f921=_[_0x5f5cab('0x41')]({},_0x10f921,_0x55d46b[_0x5f5cab('0x54')]),db[_0x5f5cab('0xa2')][_0x5f5cab('0x98')](_0x10f921)['then'](handleEntityNotFound(_0x37cf53,null))[_0x5f5cab('0x2f')](respondWithResult(_0x37cf53,null))['catch'](handleError(_0x37cf53,null));},exports[_0xfde3c0('0x8')]=function(_0x45137b,_0x2e097b){const _0xa08233=_0xfde3c0;return db['FaxAccount']['create'](_0x45137b[_0xa08233('0x6c')],{})[_0xa08233('0x2f')](function(_0x443c87){const _0x46d3f7=_0xa08233,_0x4ef6ea=_0x45137b[_0x46d3f7('0x21')]['get']({'plain':!![]});if(!_0x4ef6ea)throw new Error(_0x46d3f7('0x5e'));if(_0x4ef6ea[_0x46d3f7('0x96')]===_0x46d3f7('0x21')){const _0x32da7e=_0x443c87[_0x46d3f7('0x67')]({'plain':!![]}),_0x2c901b=_0x46d3f7('0x1a');return db['UserProfileSection']['findOne']({'where':{'name':_0x2c901b,'userProfileId':_0x4ef6ea[_0x46d3f7('0x55')]},'raw':!![]})[_0x46d3f7('0x2f')](function(_0x23866d){const _0x54f9e9=_0x46d3f7;return _0x23866d&&_0x23866d[_0x54f9e9('0x9')]===0x0?db['UserProfileResource'][_0x54f9e9('0x8')]({'name':_0x32da7e[_0x54f9e9('0x84')],'resourceId':_0x32da7e['id'],'type':_0x23866d[_0x54f9e9('0x84')],'sectionId':_0x23866d['id']},{})['then'](function(){return _0x443c87;}):_0x443c87;})['catch'](function(_0x512fe7){const _0x5a3693=_0x46d3f7;logger[_0x5a3693('0x29')](_0x5a3693('0xa0'),_0x512fe7);throw _0x512fe7;});}return _0x443c87;})[_0xa08233('0x2f')](respondWithResult(_0x2e097b,0xc9))[_0xa08233('0x97')](handleError(_0x2e097b,null));},exports['update']=function(_0x2c1463,_0x1e1099){const _0x5ece85=_0xfde3c0;return _0x2c1463[_0x5ece85('0x6c')]['id']&&delete _0x2c1463[_0x5ece85('0x6c')]['id'],db['FaxAccount'][_0x5ece85('0x98')]({'where':{'id':_0x2c1463['params']['id']},'include':[{'model':db[_0x5ece85('0xa8')],'as':_0x5ece85('0x11')}]})[_0x5ece85('0x2f')](handleEntityNotFound(_0x1e1099,null))[_0x5ece85('0x2f')](saveUpdates(_0x2c1463[_0x5ece85('0x6c')],null))[_0x5ece85('0x2f')](respondWithResult(_0x1e1099,null))[_0x5ece85('0x97')](handleError(_0x1e1099,null));},exports[_0xfde3c0('0x2c')]=function(_0x3ea089,_0x4e8691){const _0x16432a=_0xfde3c0;return db[_0x16432a('0xa2')][_0x16432a('0x98')]({'where':{'id':_0x3ea089['params']['id']}})['then'](handleEntityNotFound(_0x4e8691,null))['then'](removeEntity(_0x4e8691,null))[_0x16432a('0x97')](handleError(_0x4e8691,null));},exports[_0xfde3c0('0xaa')]=function(_0x292cc0,_0x390ecb){const _0x3f45e4=_0xfde3c0;return db[_0x3f45e4('0xa2')][_0x3f45e4('0xaa')]()[_0x3f45e4('0x2f')](respondWithResult(_0x390ecb,null))['catch'](handleError(_0x390ecb,null));},exports[_0xfde3c0('0x99')]=function(_0x3af33c,_0x85f4ea){const _0xd25874=_0xfde3c0;return _0x3af33c[_0xd25874('0x6c')]['id']&&delete _0x3af33c[_0xd25874('0x6c')]['id'],db['FaxAccount'][_0xd25874('0x98')]({'where':{'id':_0x3af33c[_0xd25874('0x8b')]['id']}})[_0xd25874('0x2f')](handleEntityNotFound(_0x85f4ea,null))[_0xd25874('0x2f')](function(_0x3af313){const _0x23aa5a=_0xd25874;if(_0x3af313)return _0x3af33c[_0x23aa5a('0x6c')][_0x23aa5a('0xa')]=_0x3af313['id'],db[_0x23aa5a('0x4a')][_0x23aa5a('0x8')](_0x3af33c[_0x23aa5a('0x6c')]);})[_0xd25874('0x2f')](respondWithResult(_0x85f4ea,null))[_0xd25874('0x97')](handleError(_0x85f4ea,null));},exports['getDispositions']=function(_0x4255c9,_0x40fa4f){const _0x27eabf=_0xfde3c0;let _0x2e3d5a={'raw':![],'where':{}};const _0x34478c={},_0x11becf={'count':0x0,'rows':[]};return db[_0x27eabf('0xa2')][_0x27eabf('0x98')]({'where':{'id':_0x4255c9[_0x27eabf('0x8b')]['id']}})['then'](handleEntityNotFound(_0x40fa4f,null))[_0x27eabf('0x2f')](function(_0x301331){const _0x414dba=_0x27eabf;if(_0x301331)return _0x34478c['model']=_[_0x414dba('0x23')](db[_0x414dba('0x4a')][_0x414dba('0x72')]),_0x34478c[_0x414dba('0x1e')]=_[_0x414dba('0x23')](_0x4255c9[_0x414dba('0x1e')]),_0x34478c[_0x414dba('0x64')]=_[_0x414dba('0x49')](_0x34478c['model'],_0x34478c['query']),_0x2e3d5a[_0x414dba('0x8c')]=_[_0x414dba('0x49')](_0x34478c[_0x414dba('0x2')],qs[_0x414dba('0x57')](_0x4255c9[_0x414dba('0x1e')][_0x414dba('0x57')])),_0x2e3d5a[_0x414dba('0x8c')]=_0x2e3d5a[_0x414dba('0x8c')][_0x414dba('0x13')]?_0x2e3d5a[_0x414dba('0x8c')]:_0x34478c['model'],typeof _0x4255c9[_0x414dba('0x1e')]['nolimit']===_0x414dba('0x59')&&(_0x2e3d5a[_0x414dba('0x7')]=qs[_0x414dba('0x7')](_0x4255c9['query'][_0x414dba('0x7')]),_0x2e3d5a[_0x414dba('0x5b')]=qs[_0x414dba('0x5b')](_0x4255c9[_0x414dba('0x1e')][_0x414dba('0x5b')])),_0x2e3d5a[_0x414dba('0x24')]=qs[_0x414dba('0xa5')](_0x4255c9[_0x414dba('0x1e')]['sort']),_0x2e3d5a[_0x414dba('0x7f')]=qs[_0x414dba('0x64')](_[_0x414dba('0xa1')](_0x4255c9[_0x414dba('0x1e')],_0x34478c[_0x414dba('0x64')])),_0x2e3d5a[_0x414dba('0x7f')][_0x414dba('0xa')]=_0x301331['id'],_0x4255c9[_0x414dba('0x1e')][_0x414dba('0x7d')]&&(_0x2e3d5a[_0x414dba('0x7f')]=_[_0x414dba('0x41')](_0x2e3d5a[_0x414dba('0x7f')],{[Op['or']]:_[_0x414dba('0x20')](_0x2e3d5a['attributes'],function(_0x13d788){const _0x578e8c=_0x414dba,_0x23a956={};return _0x23a956[_0x13d788]={[Op[_0x578e8c('0x69')]]:'%'+_0x4255c9['query']['filter']+'%'},_0x23a956;})})),_0x2e3d5a=_[_0x414dba('0x41')]({},_0x2e3d5a,_0x4255c9[_0x414dba('0x54')]),db[_0x414dba('0x4a')][_0x414dba('0xa3')]({'where':_0x2e3d5a[_0x414dba('0x7f')]})[_0x414dba('0x2f')](function(_0x3ebcc2){const _0x460f0c=_0x414dba;return _0x11becf['count']=_0x3ebcc2,_0x4255c9[_0x460f0c('0x1e')][_0x460f0c('0x7b')]&&(_0x2e3d5a[_0x460f0c('0x71')]=[{'all':!![]}]),db[_0x460f0c('0x4a')][_0x460f0c('0x8d')](_0x2e3d5a);})['then'](function(_0x5160b4){const _0x36c819=_0x414dba;return _0x11becf[_0x36c819('0x2b')]=_0x5160b4,_0x11becf;});})[_0x27eabf('0x2f')](respondWithFilteredResult(_0x40fa4f,_0x2e3d5a))[_0x27eabf('0x97')](handleError(_0x40fa4f,null));},exports['removeDispositions']=function(_0xa8742c,_0x5fc2ee){const _0x56822a=_0xfde3c0;return db['FaxAccount'][_0x56822a('0x98')]({'where':{'id':_0xa8742c['params']['id']}})[_0x56822a('0x2f')](handleEntityNotFound(_0x5fc2ee,null))[_0x56822a('0x2f')](function(_0x23b38d){const _0x472e6d=_0x56822a;if(_0x23b38d)return _0x23b38d[_0x472e6d('0x31')](_0xa8742c['query'][_0x472e6d('0xa7')]);})['then'](respondWithStatusCode(_0x5fc2ee,null))['catch'](handleError(_0x5fc2ee,null));},exports['addAnswer']=function(_0xb606ed,_0x1fcb88){const _0x15370d=_0xfde3c0;return _0xb606ed[_0x15370d('0x6c')]['id']&&delete _0xb606ed[_0x15370d('0x6c')]['id'],db[_0x15370d('0xa2')]['findOne']({'where':{'id':_0xb606ed[_0x15370d('0x8b')]['id']}})[_0x15370d('0x2f')](handleEntityNotFound(_0x1fcb88,null))['then'](function(_0x5dea79){const _0x4c86d4=_0x15370d;if(_0x5dea79)return _0xb606ed[_0x4c86d4('0x6c')]['FaxAccountId']=_0x5dea79['id'],db[_0x4c86d4('0x95')][_0x4c86d4('0x8')](_0xb606ed[_0x4c86d4('0x6c')]);})[_0x15370d('0x2f')](respondWithResult(_0x1fcb88,null))[_0x15370d('0x97')](handleError(_0x1fcb88,null));},exports[_0xfde3c0('0x5')]=function(_0x13c06a,_0x59a847){const _0x2876c1=_0xfde3c0;let _0x1b678f={'raw':![],'where':{}};const _0xdc8cef={},_0x10ece0={'count':0x0,'rows':[]};return db[_0x2876c1('0xa2')][_0x2876c1('0x98')]({'where':{'id':_0x13c06a[_0x2876c1('0x8b')]['id']}})[_0x2876c1('0x2f')](handleEntityNotFound(_0x59a847,null))['then'](function(_0x9bad63){const _0x57cd09=_0x2876c1;if(_0x9bad63)return _0xdc8cef['model']=_['keys'](db[_0x57cd09('0x95')]['rawAttributes']),_0xdc8cef[_0x57cd09('0x1e')]=_[_0x57cd09('0x23')](_0x13c06a[_0x57cd09('0x1e')]),_0xdc8cef[_0x57cd09('0x64')]=_[_0x57cd09('0x49')](_0xdc8cef['model'],_0xdc8cef[_0x57cd09('0x1e')]),_0x1b678f[_0x57cd09('0x8c')]=_[_0x57cd09('0x49')](_0xdc8cef[_0x57cd09('0x2')],qs[_0x57cd09('0x57')](_0x13c06a[_0x57cd09('0x1e')][_0x57cd09('0x57')])),_0x1b678f[_0x57cd09('0x8c')]=_0x1b678f['attributes'][_0x57cd09('0x13')]?_0x1b678f[_0x57cd09('0x8c')]:_0xdc8cef[_0x57cd09('0x2')],typeof _0x13c06a[_0x57cd09('0x1e')][_0x57cd09('0x6a')]==='undefined'&&(_0x1b678f[_0x57cd09('0x7')]=qs[_0x57cd09('0x7')](_0x13c06a[_0x57cd09('0x1e')][_0x57cd09('0x7')]),_0x1b678f[_0x57cd09('0x5b')]=qs[_0x57cd09('0x5b')](_0x13c06a[_0x57cd09('0x1e')][_0x57cd09('0x5b')])),_0x1b678f['order']=qs[_0x57cd09('0xa5')](_0x13c06a[_0x57cd09('0x1e')][_0x57cd09('0xa5')]),_0x1b678f['where']=qs['filters'](_[_0x57cd09('0xa1')](_0x13c06a['query'],_0xdc8cef[_0x57cd09('0x64')])),_0x1b678f['where'][_0x57cd09('0xa')]=_0x9bad63['id'],_0x13c06a['query']['filter']&&(_0x1b678f[_0x57cd09('0x7f')]=_[_0x57cd09('0x41')](_0x1b678f['where'],{[Op['or']]:_[_0x57cd09('0x20')](_0x1b678f['attributes'],function(_0x3a0ae8){const _0x12b80e=_0x57cd09,_0xbf9a53={};return _0xbf9a53[_0x3a0ae8]={[Op['like']]:'%'+_0x13c06a[_0x12b80e('0x1e')]['filter']+'%'},_0xbf9a53;})})),_0x1b678f=_[_0x57cd09('0x41')]({},_0x1b678f,_0x13c06a[_0x57cd09('0x54')]),db['CannedAnswer'][_0x57cd09('0xa3')]({'where':_0x1b678f[_0x57cd09('0x7f')]})[_0x57cd09('0x2f')](function(_0x18e47a){const _0x44dd40=_0x57cd09;return _0x10ece0['count']=_0x18e47a,_0x13c06a['query'][_0x44dd40('0x7b')]&&(_0x1b678f['include']=[{'all':!![]}]),db['CannedAnswer'][_0x44dd40('0x8d')](_0x1b678f);})[_0x57cd09('0x2f')](function(_0x2d9c45){const _0x897273=_0x57cd09;return _0x10ece0[_0x897273('0x2b')]=_0x2d9c45,_0x10ece0;});})[_0x2876c1('0x2f')](respondWithFilteredResult(_0x59a847,_0x1b678f))[_0x2876c1('0x97')](handleError(_0x59a847,null));},exports[_0xfde3c0('0x85')]=function(_0x28d27e,_0x14608b){const _0x582db8=_0xfde3c0;return db[_0x582db8('0xa2')]['findOne']({'where':{'id':_0x28d27e['params']['id']}})[_0x582db8('0x2f')](handleEntityNotFound(_0x14608b,null))[_0x582db8('0x2f')](function(_0x5f0199){const _0xc0438e=_0x582db8;if(_0x5f0199)return _0x5f0199[_0xc0438e('0x85')](_0x28d27e[_0xc0438e('0x1e')][_0xc0438e('0xa7')]);})[_0x582db8('0x2f')](respondWithStatusCode(_0x14608b,null))[_0x582db8('0x97')](handleError(_0x14608b,null));},exports[_0xfde3c0('0x1f')]=function(_0x309397,_0x4765bd){const _0x2795a3=_0xfde3c0;return db[_0x2795a3('0x5a')][_0x2795a3('0x98')]({'where':{'id':_0x309397[_0x2795a3('0x8b')]['id']}})[_0x2795a3('0x2f')](function(_0x324762){const _0x29b1db=_0x2795a3;if(_0x324762)return _0x324762[_0x29b1db('0x1f')](_0x309397[_0x29b1db('0x6c')][_0x29b1db('0xa7')],{'through':_['omit'](_0x309397[_0x29b1db('0x6c')],[_0x29b1db('0xa7'),'id'])});})['then'](respondWithResult(_0x4765bd,null))[_0x2795a3('0x97')](handleError(_0x4765bd,null));},exports[_0xfde3c0('0x68')]=function(_0x3c5cf6,_0x547cfa){const _0x4d6559=_0xfde3c0;let _0x4d3879={'raw':![],'where':{}};const _0x54eed5={},_0x4104ff={'count':0x0,'rows':[]};return db[_0x4d6559('0xa2')][_0x4d6559('0x98')]({'where':{'id':_0x3c5cf6[_0x4d6559('0x8b')]['id']}})[_0x4d6559('0x2f')](handleEntityNotFound(_0x547cfa,null))[_0x4d6559('0x2f')](function(_0x3599a8){const _0xfaa131=_0x4d6559;if(_0x3599a8)return _0x54eed5[_0xfaa131('0x2')]=_[_0xfaa131('0x23')](db[_0xfaa131('0x5a')][_0xfaa131('0x72')]),_0x54eed5[_0xfaa131('0x1e')]=_[_0xfaa131('0x23')](_0x3c5cf6[_0xfaa131('0x1e')]),_0x54eed5[_0xfaa131('0x64')]=_['intersection'](_0x54eed5[_0xfaa131('0x2')],_0x54eed5[_0xfaa131('0x1e')]),_0x4d3879[_0xfaa131('0x8c')]=_[_0xfaa131('0x49')](_0x54eed5[_0xfaa131('0x2')],qs[_0xfaa131('0x57')](_0x3c5cf6['query']['fields'])),_0x4d3879[_0xfaa131('0x8c')]=_0x4d3879[_0xfaa131('0x8c')][_0xfaa131('0x13')]?_0x4d3879['attributes']:_0x54eed5[_0xfaa131('0x2')],typeof _0x3c5cf6[_0xfaa131('0x1e')][_0xfaa131('0x6a')]===_0xfaa131('0x59')&&(_0x4d3879[_0xfaa131('0x7')]=qs['limit'](_0x3c5cf6[_0xfaa131('0x1e')][_0xfaa131('0x7')]),_0x4d3879[_0xfaa131('0x5b')]=qs[_0xfaa131('0x5b')](_0x3c5cf6[_0xfaa131('0x1e')][_0xfaa131('0x5b')])),_0x4d3879[_0xfaa131('0x24')]=qs['sort'](_0x3c5cf6[_0xfaa131('0x1e')][_0xfaa131('0xa5')]),_0x4d3879[_0xfaa131('0x7f')]=qs['filters'](_[_0xfaa131('0xa1')](_0x3c5cf6['query'],_0x54eed5[_0xfaa131('0x64')])),_0x4d3879[_0xfaa131('0x7f')][_0xfaa131('0xa')]=_0x3599a8['id'],_0x3c5cf6['query']['filter']&&(_0x4d3879[_0xfaa131('0x7f')]=_[_0xfaa131('0x41')](_0x4d3879[_0xfaa131('0x7f')],{[Op['or']]:_[_0xfaa131('0x20')](_0x4d3879[_0xfaa131('0x8c')],function(_0x26ccd3){const _0x51c2d1=_0xfaa131,_0x4893d8={};return _0x4893d8[_0x26ccd3]={[Op['like']]:'%'+_0x3c5cf6[_0x51c2d1('0x1e')][_0x51c2d1('0x7d')]+'%'},_0x4893d8;})})),_0x4d3879=_[_0xfaa131('0x41')]({},_0x4d3879,_0x3c5cf6[_0xfaa131('0x54')]),db[_0xfaa131('0x5a')][_0xfaa131('0xa3')]({'where':_0x4d3879[_0xfaa131('0x7f')]})[_0xfaa131('0x2f')](function(_0x2e699d){const _0x1c35de=_0xfaa131;return _0x4104ff[_0x1c35de('0xa3')]=_0x2e699d,_0x3c5cf6[_0x1c35de('0x1e')]['includeAll']&&(_0x4d3879[_0x1c35de('0x71')]=[{'model':db[_0x1c35de('0x4f')],'as':_0x1c35de('0x80'),'required':![]},{'model':db[_0x1c35de('0x66')],'as':_0x1c35de('0x70'),'attributes':[_0x1c35de('0x84'),'fullname',_0x1c35de('0x61')],'required':![]},{'model':db[_0x1c35de('0x77')],'as':_0x1c35de('0x37'),'attributes':['id',_0x1c35de('0x84'),_0x1c35de('0x8e')],'where':_0x3c5cf6[_0x1c35de('0x1e')]['tag']?{'id':_0x3c5cf6['query'][_0x1c35de('0x1c')]}:undefined,'required':_0x3c5cf6[_0x1c35de('0x1e')]['tag']?!![]:![]}]),db[_0x1c35de('0x5a')][_0x1c35de('0x8d')](_0x4d3879);})[_0xfaa131('0x2f')](function(_0x16124a){return _0x4104ff['rows']=_0x16124a,_0x4104ff;});})[_0x4d6559('0x2f')](respondWithFilteredResult(_0x547cfa,_0x4d3879))[_0x4d6559('0x97')](handleError(_0x547cfa,null));},exports[_0xfde3c0('0x6e')]=function(_0x1be3c3,_0x422abb){const _0x53534=_0xfde3c0;return db[_0x53534('0xa2')][_0x53534('0x98')]({'where':{'id':_0x1be3c3[_0x53534('0x8b')]['id']}})[_0x53534('0x2f')](handleEntityNotFound(_0x422abb,null))[_0x53534('0x2f')](function(_0x45f9df){const _0x362615=_0x53534;if(_0x45f9df)return db[_0x362615('0x82')]['transaction'](function(_0x6ba8f1){const _0x4ce3f0=_0x362615;return db['FaxApplication']['destroy']({'where':{'FaxAccountId':_0x1be3c3[_0x4ce3f0('0x8b')]['id']},'transaction':_0x6ba8f1})[_0x4ce3f0('0x2f')](function(){const _0x2ef62e=_0x4ce3f0,_0x45fe77=_[_0x2ef62e('0x20')](_0x1be3c3[_0x2ef62e('0x6c')],function(_0x535dc1){const _0x5595c0=_0x2ef62e;return _0x535dc1['FaxAccountId']=_0x1be3c3[_0x5595c0('0x8b')]['id'],_0x535dc1;});return db['FaxApplication'][_0x2ef62e('0x51')](_0x45fe77,{'transaction':_0x6ba8f1});});})[_0x362615('0x2f')](function(){const _0x246988=_0x362615;return db[_0x246988('0x50')]['findAndCountAll']({'where':{'FaxAccountId':_0x1be3c3[_0x246988('0x8b')]['id']},'order':'priority'});});})['then'](respondWithResult(_0x422abb,null))['catch'](handleError(_0x422abb,null));},exports[_0xfde3c0('0x27')]=function(_0x5b434e,_0x225b0e){const _0x1ecaca=_0xfde3c0;let _0x47a9a7={};const _0x458cb1={};let _0x153980,_0x47bc5c;return db[_0x1ecaca('0xa2')]['findOne']({'where':{'id':_0x5b434e['params']['id']}})[_0x1ecaca('0x2f')](handleEntityNotFound(_0x225b0e,null))['then'](function(_0xe65e78){const _0x3cf122=_0x1ecaca;if(_0xe65e78)return _0x153980=_0xe65e78,_0x458cb1[_0x3cf122('0x2')]=_[_0x3cf122('0x23')](db['FaxApplication']['rawAttributes']),_0x458cb1[_0x3cf122('0x1e')]=_[_0x3cf122('0x23')](_0x5b434e[_0x3cf122('0x1e')]),_0x458cb1[_0x3cf122('0x64')]=_[_0x3cf122('0x49')](_0x458cb1[_0x3cf122('0x2')],_0x458cb1[_0x3cf122('0x1e')]),_0x47a9a7[_0x3cf122('0x8c')]=_[_0x3cf122('0x49')](_0x458cb1[_0x3cf122('0x2')],qs[_0x3cf122('0x57')](_0x5b434e['query'][_0x3cf122('0x57')])),_0x47a9a7[_0x3cf122('0x8c')]=_0x47a9a7[_0x3cf122('0x8c')]['length']?_0x47a9a7[_0x3cf122('0x8c')]:_0x458cb1[_0x3cf122('0x2')],_0x47a9a7['order']=qs[_0x3cf122('0xa5')](_0x5b434e['query'][_0x3cf122('0xa5')]),_0x47a9a7[_0x3cf122('0x7f')]=qs[_0x3cf122('0x64')](_[_0x3cf122('0xa1')](_0x5b434e[_0x3cf122('0x1e')],_0x458cb1[_0x3cf122('0x64')])),_0x5b434e[_0x3cf122('0x1e')][_0x3cf122('0x7d')]&&(_0x47a9a7[_0x3cf122('0x7f')]=_[_0x3cf122('0x41')](_0x47a9a7[_0x3cf122('0x7f')],{[Op['or']]:_['map'](_0x47a9a7[_0x3cf122('0x8c')],function(_0x1e6239){const _0x54427e=_0x3cf122,_0x537e90={};return _0x537e90[_0x1e6239]={[Op[_0x54427e('0x69')]]:'%'+_0x5b434e[_0x54427e('0x1e')][_0x54427e('0x7d')]+'%'},_0x537e90;})})),_0x47a9a7=_['merge']({},_0x47a9a7,_0x5b434e[_0x3cf122('0x54')]),_0x153980[_0x3cf122('0x27')](_0x47a9a7);})['then'](function(_0x5e5d56){const _0x794e0b=_0x1ecaca;if(_0x5e5d56)return _0x47bc5c=_0x5e5d56[_0x794e0b('0x13')],typeof _0x5b434e['query']['nolimit']==='undefined'&&(_0x47a9a7['limit']=qs['limit'](_0x5b434e[_0x794e0b('0x1e')]['limit']),_0x47a9a7[_0x794e0b('0x5b')]=qs[_0x794e0b('0x5b')](_0x5b434e['query'][_0x794e0b('0x5b')])),_0x153980[_0x794e0b('0x27')](_0x47a9a7);})[_0x1ecaca('0x2f')](function(_0x34bf34){if(_0x34bf34)return _0x34bf34?{'count':_0x47bc5c,'rows':_0x34bf34}:null;})[_0x1ecaca('0x2f')](respondWithResult(_0x225b0e,null))[_0x1ecaca('0x97')](handleError(_0x225b0e,null));};function Extension(_0x597b83,_0x16b41f,_0x8138b3,_0x4cca46){const _0x5648b4=_0xfde3c0;this[_0x5648b4('0x9d')]=_0x5648b4('0x16'),this[_0x5648b4('0x53')]=_0x597b83[_0x5648b4('0x4e')],this[_0x5648b4('0x74')]=_0x4cca46,this['type']='system',this[_0x5648b4('0x6')]=_0x5648b4('0x3f'),this[_0x5648b4('0xa')]=_0x597b83['id'],this['priority']=_0x16b41f,this[_0x5648b4('0x88')]=_0x8138b3;}function createExtensionsReciveFax(_0x561a84){const _0x4ff7f3=_0xfde3c0;let _0x27d0f0=0x1;const _0x178e0a=[];_0x178e0a['push'](new Extension(_0x561a84,_0x27d0f0,'',_0x4ff7f3('0x75'))),_0x27d0f0+=0x1,_0x178e0a[_0x4ff7f3('0x43')](new Extension(_0x561a84,_0x27d0f0,_0x4ff7f3('0x10'),_0x4ff7f3('0x48'))),_0x27d0f0+=0x1;for(const _0x4b72b4 in _0x561a84){typeof _0x561a84[_0x4b72b4]!==_0x4ff7f3('0x59')&&(_0x4b72b4===_0x4ff7f3('0x78')||_0x4b72b4==='localstationid'||_0x4b72b4===_0x4ff7f3('0x45')||_0x4b72b4==='faxdetect'||_0x4b72b4===_0x4ff7f3('0x2e')||_0x4b72b4==='maxrate'||_0x4b72b4==='minrate'||_0x4b72b4===_0x4ff7f3('0x36')||_0x4b72b4===_0x4ff7f3('0x86'))&&(_0x178e0a[_0x4ff7f3('0x43')](new Extension(_0x561a84,_0x27d0f0,_0x4ff7f3('0x1b')+_0x4b72b4+')='+_0x561a84[_0x4b72b4],_0x4ff7f3('0x48'))),_0x27d0f0+=0x1);}return _0x178e0a[_0x4ff7f3('0x43')](new Extension(_0x561a84,_0x27d0f0,'6',_0x4ff7f3('0x90'))),_0x27d0f0+=0x1,_0x178e0a[_0x4ff7f3('0x43')](new Extension(_0x561a84,_0x27d0f0,_0x4ff7f3('0x44'),_0x4ff7f3('0x2d'))),_0x27d0f0=0x0,_0x178e0a;}exports[_0xfde3c0('0x12')]=function(_0xbe65c1,_0x429e1d){const _0x1edebc=_0xfde3c0;let _0x208442;return db[_0x1edebc('0x82')][_0x1edebc('0x0')](function(_0x1be451){const _0x345403=_0x1edebc;return db[_0x345403('0xa2')][_0x345403('0x8')](_0xbe65c1[_0x345403('0x6c')],{'transaction':_0x1be451})[_0x345403('0x2f')](function(_0x2b28d8){const _0x1f9910=_0x345403;return _0x208442=_0x2b28d8[_0x1f9910('0x67')]({'plain':!![]}),db[_0x1f9910('0x14')]['bulkCreate'](createExtensionsReciveFax(_0x208442),{'transaction':_0x1be451});});})['then'](function(){return _0x208442;})['then'](respondWithResult(_0x429e1d,null))[_0x1edebc('0x97')](handleError(_0x429e1d,null));},exports[_0xfde3c0('0x42')]=function(_0x5f4ba7,_0xe4340){const _0x3843c6=_0xfde3c0;return db[_0x3843c6('0x82')][_0x3843c6('0x0')](function(_0x2dab7e){const _0x54313c=_0x3843c6;return db[_0x54313c('0xa2')][_0x54313c('0x28')](_0x5f4ba7[_0x54313c('0x6c')],{'where':{'id':_0x5f4ba7[_0x54313c('0x6c')]['id']},'transaction':_0x2dab7e})[_0x54313c('0x2f')](function(){const _0x576cfa=_0x54313c;return db[_0x576cfa('0x14')][_0x576cfa('0x2c')]({'where':{'FaxAccountId':_0x5f4ba7[_0x576cfa('0x6c')]['id']},'transaction':_0x2dab7e})[_0x576cfa('0x2f')](function(){const _0x23b01f=_0x576cfa;return db[_0x23b01f('0x14')][_0x23b01f('0x51')](createExtensionsReciveFax(_[_0x23b01f('0x6b')](_0x5f4ba7[_0x23b01f('0x6c')],[_0x23b01f('0x94'),'key',_0x23b01f('0x9f'),'updatedAt','TrunkId',_0x23b01f('0x17')])),{'transaction':_0x2dab7e});});});})['then'](function(){const _0x5a219a=_0x3843c6;return db[_0x5a219a('0xa2')][_0x5a219a('0x4b')](_0x5f4ba7[_0x5a219a('0x6c')]['id']);})[_0x3843c6('0x2f')](respondWithResult(_0xe4340,null))[_0x3843c6('0x97')](handleError(_0xe4340,null));},exports[_0xfde3c0('0x9c')]=function(_0x3373cf,_0x35bbf4){const _0x154e67=_0xfde3c0;let _0x36ff78={'raw':!![],'where':{}};const _0x3bac8b={},_0x8e0d74={'count':0x0,'rows':[]};return db[_0x154e67('0xa2')][_0x154e67('0x98')]({'where':{'id':_0x3373cf[_0x154e67('0x8b')]['id']}})[_0x154e67('0x2f')](handleEntityNotFound(_0x35bbf4,null))[_0x154e67('0x2f')](function(_0x290a2e){const _0x356c64=_0x154e67;if(_0x290a2e){_0x3bac8b[_0x356c64('0x2')]=_[_0x356c64('0x23')](db[_0x356c64('0x5d')][_0x356c64('0x72')]),_0x3bac8b[_0x356c64('0x1e')]=_[_0x356c64('0x23')](_0x3373cf['query']),_0x3bac8b[_0x356c64('0x64')]=_[_0x356c64('0x49')](_0x3bac8b[_0x356c64('0x2')],_0x3bac8b[_0x356c64('0x1e')]),_0x36ff78['attributes']=_['intersection'](_0x3bac8b[_0x356c64('0x2')],qs[_0x356c64('0x57')](_0x3373cf[_0x356c64('0x1e')][_0x356c64('0x57')])),_0x36ff78[_0x356c64('0x8c')]=_0x36ff78[_0x356c64('0x8c')][_0x356c64('0x13')]?_0x36ff78['attributes']:_0x3bac8b[_0x356c64('0x2')];typeof _0x3373cf[_0x356c64('0x1e')][_0x356c64('0x6a')]===_0x356c64('0x59')&&(_0x36ff78[_0x356c64('0x7')]=qs[_0x356c64('0x7')](_0x3373cf[_0x356c64('0x1e')]['limit']),_0x36ff78['offset']=qs['offset'](_0x3373cf[_0x356c64('0x1e')][_0x356c64('0x5b')]));_0x36ff78[_0x356c64('0x24')]=qs[_0x356c64('0xa5')](_0x3373cf[_0x356c64('0x1e')][_0x356c64('0xa5')]),_0x36ff78[_0x356c64('0x7f')]=qs[_0x356c64('0x64')](_[_0x356c64('0xa1')](_0x3373cf[_0x356c64('0x1e')],_0x3bac8b['filters'])),_0x36ff78['where'][_0x356c64('0xa')]=_0x290a2e['id'];_0x3373cf['query'][_0x356c64('0x7d')]&&(_0x36ff78[_0x356c64('0x7f')]=_[_0x356c64('0x41')](_0x36ff78[_0x356c64('0x7f')],{[Op['or']]:_[_0x356c64('0x20')](_0x36ff78[_0x356c64('0x8c')],function(_0xc6cc87){const _0xb883c3=_0x356c64,_0x9f2261={};return _0x9f2261[_0xc6cc87]={[Op[_0xb883c3('0x69')]]:'%'+_0x3373cf[_0xb883c3('0x1e')][_0xb883c3('0x7d')]+'%'},_0x9f2261;})}));if(_0x3373cf['query'][_0x356c64('0x5c')]){const _0x592c3a=_0x3373cf[_0x356c64('0x1e')][_0x356c64('0x5c')]['split'](','),_0x4b37de={};_0x4b37de[_0x592c3a[0x0]]={[Op[_0x356c64('0x58')]]:moment(_0x592c3a[0x1])[_0x356c64('0x26')](_0x356c64('0x91'))},_0x36ff78[_0x356c64('0x7f')]=_[_0x356c64('0x41')](_0x36ff78['where'],_0x4b37de);}return _0x36ff78=_[_0x356c64('0x41')]({},_0x36ff78,_0x3373cf[_0x356c64('0x54')]),db[_0x356c64('0x5d')]['count']({'where':_0x36ff78['where']})[_0x356c64('0x2f')](function(_0x4730cb){const _0x37e491=_0x356c64;return _0x8e0d74[_0x37e491('0xa3')]=_0x4730cb,_0x3373cf[_0x37e491('0x1e')][_0x37e491('0x7b')]&&(_0x36ff78[_0x37e491('0x71')]=[{'all':!![]}]),db[_0x37e491('0x5d')]['findAll'](_0x36ff78);})['then'](function(_0x3306d0){const _0x1713f3=_0x356c64;return _0x8e0d74[_0x1713f3('0x2b')]=_0x3306d0,_0x8e0d74;});}})[_0x154e67('0x2f')](respondWithFilteredResult(_0x35bbf4,_0x36ff78))['catch'](handleError(_0x35bbf4,null));},exports[_0xfde3c0('0x19')]=function(_0x3e6653,_0x4b53c5){const _0x2603a7=_0xfde3c0;let _0x123d08,_0x129a3d;return _0x3e6653[_0x2603a7('0x6c')]['to']&&(_0x129a3d=_0x3e6653['body']['to'][0x0]),db[_0x2603a7('0xa2')][_0x2603a7('0x98')]({'where':{'id':_0x3e6653[_0x2603a7('0x8b')]['id']},'include':[{'model':db['CmList'],'as':_0x2603a7('0xa4'),'include':[{'model':db[_0x2603a7('0x4f')],'as':_0x2603a7('0x9b'),'where':{'fax':_0x129a3d},'limit':0x1,'order':[[_0x2603a7('0x9a'),_0x2603a7('0x3d')]]}]}]})[_0x2603a7('0x2f')](handleEntityNotFound(_0x4b53c5,null))['then'](function(_0x2bcf23){const _0x495c94=_0x2603a7;_0x123d08=_0x2bcf23;if(_0x3e6653[_0x495c94('0x6c')][_0x495c94('0x3c')]&&_0x3e6653['body'][_0x495c94('0x3c')]['length'])for(let _0x345c61=0x0;_0x345c61<_0x3e6653[_0x495c94('0x6c')][_0x495c94('0x3c')][_0x495c94('0x13')];_0x345c61+=0x1){_0x3e6653[_0x495c94('0x6c')][_0x495c94('0x3c')][_0x345c61]={'filename':_0x3e6653[_0x495c94('0x6c')][_0x495c94('0x3c')][_0x345c61][_0x495c94('0x84')],'id':_0x3e6653[_0x495c94('0x6c')][_0x495c94('0x3c')][_0x345c61]['id'],'path':path[_0x495c94('0xf')](config[_0x495c94('0x87')],_0x495c94('0x7a'),_0x3e6653[_0x495c94('0x6c')][_0x495c94('0x3c')][_0x345c61][_0x495c94('0x3b')])};}return respondWithRpcPromise(_0x495c94('0x89'),_0x495c94('0x89'),{'FaxAccountId':_[_0x495c94('0x46')](_0x3e6653[_0x495c94('0x8b')]['id'])?undefined:_0x3e6653['params']['id'],'path':_[_0x495c94('0x46')](_0x3e6653[_0x495c94('0x6c')]['attachments'][0x0][_0x495c94('0x6f')])?undefined:_0x3e6653[_0x495c94('0x6c')]['attachments'][0x0][_0x495c94('0x6f')],'fax':_[_0x495c94('0x46')](_0x3e6653[_0x495c94('0x6c')]['to'][0x0])?undefined:_0x3e6653[_0x495c94('0x6c')]['to'][0x0]},client9002);})[_0x2603a7('0x2f')](function(){const _0x1e6a5c=_0x2603a7;if(_0x123d08){_['isNil'](_0x3e6653[_0x1e6a5c('0x6c')][_0x1e6a5c('0x1')])&&(_0x3e6653[_0x1e6a5c('0x6c')][_0x1e6a5c('0x1')]=util['format'](_0x1e6a5c('0x92'),_0x123d08[_0x1e6a5c('0x84')],_0x123d08['fax']));if(_0x123d08[_0x1e6a5c('0xa4')])return _0x123d08[_0x1e6a5c('0xa4')][_0x1e6a5c('0x9b')][_0x1e6a5c('0x13')]?_0x123d08[_0x1e6a5c('0xa4')][_0x1e6a5c('0x9b')][0x0]:db[_0x1e6a5c('0x4f')][_0x1e6a5c('0x8')](_[_0x1e6a5c('0x33')](_0x3e6653[_0x1e6a5c('0x6c')],{'firstName':_0x3e6653[_0x1e6a5c('0x6c')]['to'][0x0],'phone':_0x3e6653['body']['to'][0x0],'fax':_0x3e6653[_0x1e6a5c('0x6c')]['to'][0x0],'ListId':_0x123d08[_0x1e6a5c('0x17')]}));else throw new Error('List\x20not\x20found');}else throw new Error(_0x1e6a5c('0x76'));})[_0x2603a7('0x2f')](function(_0x384b41){const _0x543c5=_0x2603a7;if(_0x384b41)return db[_0x543c5('0x5a')][_0x543c5('0x98')]({'where':{'ContactId':_0x384b41['id'],'closed':![],'FaxAccountId':_0x123d08['id']}})[_0x543c5('0x2f')](function(_0x2de3a5){const _0x320c2d=_0x543c5;if(_0x2de3a5)return[_0x2de3a5,![]];return db[_0x320c2d('0x5a')][_0x320c2d('0x8')]({'UserId':_0x3e6653[_0x320c2d('0x21')]['id'],'ContactId':_0x384b41['id'],'FaxAccountId':_0x123d08['id'],'fax':_0x3e6653[_0x320c2d('0x6c')]['to'][0x0],'firstMsgDirection':_0x320c2d('0x32'),'Messages':[_[_0x320c2d('0x41')](_0x3e6653[_0x320c2d('0x6c')],{'read':![],'body':_0x3e6653['body'][_0x320c2d('0x3c')][0x0][_0x320c2d('0x25')],'FaxAccountId':_0x123d08['id'],'UserId':_0x3e6653[_0x320c2d('0x21')]['id'],'ContactId':_0x384b41['id'],'AttachmentId':_0x3e6653[_0x320c2d('0x6c')][_0x320c2d('0x3c')][0x0]['id']})]},{'include':[{'model':db[_0x320c2d('0x5d')],'as':_0x320c2d('0x60')}]})['then'](function(_0x3b18e4){return[_0x3b18e4,!![]];});});else throw new Error(_0x543c5('0xc'));})['then'](function([_0x11c977,_0x553a01]){const _0x33055c=_0x2603a7;if(_0x553a01)return _0x11c977;return db[_0x33055c('0x5d')][_0x33055c('0x8')]({'direction':_0x33055c('0x32'),'read':![],'body':_0x3e6653['body'][_0x33055c('0x3c')][0x0][_0x33055c('0x25')],'FaxAccountId':_0x123d08['id'],'FaxInteractionId':_0x11c977['id'],'UserId':_0x3e6653[_0x33055c('0x21')]['id'],'ContactId':_0x11c977[_0x33055c('0x56')],'AttachmentId':_0x3e6653[_0x33055c('0x6c')][_0x33055c('0x3c')][0x0]['id']})[_0x33055c('0x2f')](function(_0x2d8f84){const _0x2e49e4=_0x33055c;return _0x11c977[_0x2e49e4('0x62')]['Messages']=[],_0x11c977[_0x2e49e4('0x62')]['Messages']['push'](_0x2d8f84[_0x2e49e4('0x62')]),_0x11c977;});})[_0x2603a7('0x2f')](function(_0x171b38){const _0x1f9f1f=_0x2603a7;return respondWithRpcPromise('SendFax',_0x1f9f1f('0x39'),{'FaxAccountId':_[_0x1f9f1f('0x46')](_0x3e6653[_0x1f9f1f('0x8b')]['id'])?undefined:_0x3e6653[_0x1f9f1f('0x8b')]['id'],'path':_[_0x1f9f1f('0x46')](_0x3e6653[_0x1f9f1f('0x6c')][_0x1f9f1f('0x3c')][0x0][_0x1f9f1f('0x6f')])?undefined:_0x3e6653['body'][_0x1f9f1f('0x3c')][0x0][_0x1f9f1f('0x6f')],'fax':_['isNil'](_0x3e6653['body']['to'][0x0])?undefined:_0x3e6653[_0x1f9f1f('0x6c')]['to'][0x0],'AttachmentId':_0x3e6653[_0x1f9f1f('0x6c')][_0x1f9f1f('0x3c')][0x0]['id']},client9002)[_0x1f9f1f('0x2f')](function(_0x403218){const _0x29a826=_0x1f9f1f;logger['info'](_0x29a826('0x79'),_0x403218);})[_0x1f9f1f('0x97')](function(_0x366d8e){const _0x2e5c7b=_0x1f9f1f;logger[_0x2e5c7b('0x40')](_0x2e5c7b('0x79'),_0x366d8e);}),_0x171b38;})[_0x2603a7('0x2f')](respondWithResult(_0x4b53c5,null))[_0x2603a7('0x97')](handleError(_0x4b53c5,null));},exports[_0xfde3c0('0x5f')]=function(_0x59e251,_0x1bddfc){const _0x440c15=_0xfde3c0;return db[_0x440c15('0xa2')][_0x440c15('0x98')]({'where':{'id':_0x59e251['params']['id']}})[_0x440c15('0x2f')](function(_0x254c9c){const _0x35b3ca=_0x440c15;if(_0x254c9c)return _0x254c9c[_0x35b3ca('0x5f')](_0x59e251['body'][_0x35b3ca('0xa7')],{'through':_[_0x35b3ca('0x6b')](_0x59e251[_0x35b3ca('0x6c')],[_0x35b3ca('0xa7'),'id'])})[_0x35b3ca('0x2f')](function(_0x5f43ee){const _0x3db9ce=_0x35b3ca;for(let _0x4aa1ba=0x0;_0x4aa1ba<_0x59e251['body']['ids']['length'];_0x4aa1ba+=0x1){socket[_0x3db9ce('0x8f')]('userFaxAccount:save',{'UserId':_0x59e251[_0x3db9ce('0x6c')][_0x3db9ce('0xa7')][_0x4aa1ba],'FaxAccountId':_0x59e251[_0x3db9ce('0x8b')]['id']});}return _0x5f43ee;});})[_0x440c15('0x2f')](respondWithResult(_0x1bddfc,null))[_0x440c15('0x97')](handleError(_0x1bddfc,null));},exports['removeAgents']=function(_0x5a5920,_0x2db3ba){const _0x2dac1e=_0xfde3c0;return db[_0x2dac1e('0xa2')][_0x2dac1e('0x98')]({'where':{'id':_0x5a5920[_0x2dac1e('0x8b')]['id']}})[_0x2dac1e('0x2f')](handleEntityNotFound(_0x2db3ba,null))[_0x2dac1e('0x2f')](function(_0x48259b){const _0x20738a=_0x2dac1e;if(_0x48259b)return _0x48259b['removeAgents'](_0x5a5920[_0x20738a('0x1e')][_0x20738a('0xa7')])[_0x20738a('0x2f')](function(){const _0x5c0393=_0x20738a;if(_[_0x5c0393('0x3e')](_0x5a5920[_0x5c0393('0x1e')][_0x5c0393('0xa7')]))for(let _0x4ac8dc=0x0;_0x4ac8dc<_0x5a5920['query'][_0x5c0393('0xa7')][_0x5c0393('0x13')];_0x4ac8dc+=0x1){socket[_0x5c0393('0x8f')](_0x5c0393('0xb'),{'UserId':Number(_0x5a5920['query'][_0x5c0393('0xa7')][_0x4ac8dc]),'FaxAccountId':Number(_0x5a5920[_0x5c0393('0x8b')]['id'])});}else socket[_0x5c0393('0x8f')](_0x5c0393('0xb'),{'UserId':Number(_0x5a5920[_0x5c0393('0x1e')][_0x5c0393('0xa7')]),'FaxAccountId':Number(_0x5a5920[_0x5c0393('0x8b')]['id'])});});})[_0x2dac1e('0x2f')](respondWithStatusCode(_0x2db3ba,null))['catch'](handleError(_0x2db3ba,null));},exports[_0xfde3c0('0x81')]=function(_0x1bbd41,_0x44dad1){const _0x177ff0=_0xfde3c0;let _0x27b40e={};const _0x189b2a={};let _0x2413e9,_0xd9b050;return db[_0x177ff0('0xa2')][_0x177ff0('0x98')]({'where':{'id':_0x1bbd41[_0x177ff0('0x8b')]['id']}})[_0x177ff0('0x2f')](handleEntityNotFound(_0x44dad1,null))[_0x177ff0('0x2f')](function(_0x22a4d7){const _0x2318ba=_0x177ff0;if(_0x22a4d7)return _0x2413e9=_0x22a4d7,_0x189b2a[_0x2318ba('0x2')]=_[_0x2318ba('0x23')](db[_0x2318ba('0x66')][_0x2318ba('0x72')]),_0x189b2a[_0x2318ba('0x1e')]=_['keys'](_0x1bbd41[_0x2318ba('0x1e')]),_0x189b2a[_0x2318ba('0x64')]=_[_0x2318ba('0x49')](_0x189b2a[_0x2318ba('0x2')],_0x189b2a[_0x2318ba('0x1e')]),_0x27b40e[_0x2318ba('0x8c')]=_['intersection'](_0x189b2a[_0x2318ba('0x2')],qs[_0x2318ba('0x57')](_0x1bbd41[_0x2318ba('0x1e')][_0x2318ba('0x57')])),_0x27b40e[_0x2318ba('0x8c')]=_0x27b40e[_0x2318ba('0x8c')][_0x2318ba('0x13')]?_0x27b40e[_0x2318ba('0x8c')]:_0x189b2a[_0x2318ba('0x2')],_0x27b40e[_0x2318ba('0x24')]=qs[_0x2318ba('0xa5')](_0x1bbd41[_0x2318ba('0x1e')][_0x2318ba('0xa5')]),_0x27b40e[_0x2318ba('0x7f')]=qs[_0x2318ba('0x64')](_[_0x2318ba('0xa1')](_0x1bbd41[_0x2318ba('0x1e')],_0x189b2a[_0x2318ba('0x64')])),_0x1bbd41[_0x2318ba('0x1e')][_0x2318ba('0x7d')]&&(_0x27b40e[_0x2318ba('0x7f')]=_[_0x2318ba('0x41')](_0x27b40e['where'],{[Op['or']]:_[_0x2318ba('0x20')](_0x27b40e[_0x2318ba('0x8c')],function(_0x4774e2){const _0x2ae562=_0x2318ba,_0x50a877={};return _0x50a877[_0x4774e2]={[Op[_0x2ae562('0x69')]]:'%'+_0x1bbd41[_0x2ae562('0x1e')][_0x2ae562('0x7d')]+'%'},_0x50a877;})})),_0x27b40e=_[_0x2318ba('0x41')]({},_0x27b40e,_0x1bbd41[_0x2318ba('0x54')]),_0x2413e9[_0x2318ba('0x81')](_0x27b40e);})['then'](function(_0x503cdd){const _0xe6b074=_0x177ff0;if(_0x503cdd)return _0xd9b050=_0x503cdd[_0xe6b074('0x13')],typeof _0x1bbd41[_0xe6b074('0x1e')][_0xe6b074('0x6a')]===_0xe6b074('0x59')&&(_0x27b40e['limit']=qs['limit'](_0x1bbd41[_0xe6b074('0x1e')][_0xe6b074('0x7')]),_0x27b40e[_0xe6b074('0x5b')]=qs[_0xe6b074('0x5b')](_0x1bbd41[_0xe6b074('0x1e')][_0xe6b074('0x5b')])),_0x2413e9[_0xe6b074('0x81')](_0x27b40e);})[_0x177ff0('0x2f')](function(_0x1e8d40){if(_0x1e8d40)return _0x1e8d40?{'count':_0xd9b050,'rows':_0x1e8d40}:null;})[_0x177ff0('0x2f')](respondWithResult(_0x44dad1,null))['catch'](handleError(_0x44dad1,null));}; \ No newline at end of file +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 diff --git a/server/api/faxAccount/faxAccount.events.js b/server/api/faxAccount/faxAccount.events.js index 9123dd4..a6c2f1d 100644 --- a/server/api/faxAccount/faxAccount.events.js +++ b/server/api/faxAccount/faxAccount.events.js @@ -1 +1 @@ -const a187_0x550b=['save','addHook','../../mysqldb','setMaxListeners','emit','undefined','exports','FaxAccount'];(function(_0x3338c9,_0x550b2f){const _0x1e325e=function(_0x41fcfc){while(--_0x41fcfc){_0x3338c9['push'](_0x3338c9['shift']());}};_0x1e325e(++_0x550b2f);}(a187_0x550b,0x159));const a187_0x1e32=function(_0x3338c9,_0x550b2f){_0x3338c9=_0x3338c9-0x0;let _0x1e325e=a187_0x550b[_0x3338c9];return _0x1e325e;};const _0x52caec=a187_0x1e32;'use strict';const EventEmitter=require('events'),FaxAccount=require(_0x52caec('0x1'))['db'][_0x52caec('0x6')],FaxAccountEvents=new EventEmitter();FaxAccountEvents[_0x52caec('0x2')](0x0);const events={'afterCreate':_0x52caec('0x7'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x41fcfc){return function(_0x54916e){const _0x58e81a=a187_0x1e32;FaxAccountEvents[_0x58e81a('0x3')](_0x41fcfc+':'+_0x54916e['id'],_0x54916e),FaxAccountEvents[_0x58e81a('0x3')](_0x41fcfc,_0x54916e);};}for(const e in events){if(typeof events[e]!==_0x52caec('0x4')){const event=events[e];FaxAccount[_0x52caec('0x0')](e,emitEvent(event));}}module[_0x52caec('0x5')]=FaxAccountEvents; \ No newline at end of file +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 diff --git a/server/api/faxAccount/faxAccount.model.js b/server/api/faxAccount/faxAccount.model.js index 18cee0a..3870c5d 100644 --- a/server/api/faxAccount/faxAccount.model.js +++ b/server/api/faxAccount/faxAccount.model.js @@ -1 +1 @@ -const a188_0x5624=['define','exports','./faxAccount.attributes','fax_accounts'];(function(_0x5ed773,_0x562473){const _0x4a34c1=function(_0x346cb0){while(--_0x346cb0){_0x5ed773['push'](_0x5ed773['shift']());}};_0x4a34c1(++_0x562473);}(a188_0x5624,0x1d1));const a188_0x4a34=function(_0x5ed773,_0x562473){_0x5ed773=_0x5ed773-0x0;let _0x4a34c1=a188_0x5624[_0x5ed773];return _0x4a34c1;};const _0xc8306=a188_0x4a34;'use strict';const attributes=require(_0xc8306('0x1'));module[_0xc8306('0x0')]=function(_0x346cb0){const _0x3ba1ed=_0xc8306,_0x5d4864=_0x346cb0[_0x3ba1ed('0x3')]('FaxAccount',attributes,{'tableName':_0x3ba1ed('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5d4864;}; \ No newline at end of file +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 diff --git a/server/api/faxAccount/faxAccount.rpc.js b/server/api/faxAccount/faxAccount.rpc.js index 54bcc10..1ffec29 100644 --- a/server/api/faxAccount/faxAccount.rpc.js +++ b/server/api/faxAccount/faxAccount.rpc.js @@ -1 +1 @@ -const a189_0xd5b0=['request','FaxAccount,\x20%s,\x20%s,\x20%s','isNil','jayson/promise','created','close','name','asc','create','from\x20is\x20mandatory','UserId','List','attributes','body\x20is\x20mandatory\x20and\x20not\x20empty','DESC','catch','ContactId','Start','FaxAccount,\x20%s,\x20%s','waitForTheAssignedAgent','then','error','client','Contact\x20not\x20found','length','./faxAccount.socket','body','includes','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','account','from','*,*,*,*','GetFaxAccount','createdAt','model','include','../../config/logger','debug','code','findOne','updatedAt','where','result','findAll','autoclose','stringify','CompanyId','unshift','Applications','map','message','FaxAccount','info','list','raw','FaxInteraction','agent','FaxMessage','Contacts','applications','User','Sequelize','startRouting','contact','interaction','AttachmentId','keys','CmContact','ValidationError','no\x20available\x20attributes','difference','request\x20sent','FaxApplication','options','get','defaults','NotifyFaxAccount','ListId','orderBy','fax','mapKey'];(function(_0xd0ad2b,_0xd5b04e){const _0x59ac48=function(_0x28f12f){while(--_0x28f12f){_0xd0ad2b['push'](_0xd0ad2b['shift']());}};_0x59ac48(++_0xd5b04e);}(a189_0xd5b0,0x1c2));const a189_0x59ac=function(_0xd0ad2b,_0xd5b04e){_0xd0ad2b=_0xd0ad2b-0x0;let _0x59ac48=a189_0xd5b0[_0xd0ad2b];return _0x59ac48;};const _0x579d5e=a189_0x59ac;'use strict';const _=require('lodash'),db=require('../../mysqldb')['db'],logger=require(_0x579d5e('0x48'))('rpc'),{getSocket}=require('../../rediscache'),socket=getSocket(),jayson=require(_0x579d5e('0x27')),client=jayson[_0x579d5e('0x3a')]['http']({'port':0x232c});require(_0x579d5e('0x3d'))['register'](socket);function respondWithRpcPromise(_0x28f12f,_0x297d81,_0x3c6128){return new Promise(function(_0x31f97a,_0x317eb5){const _0x346beb=a189_0x59ac;return client[_0x346beb('0x24')](_0x28f12f,_0x3c6128)['then'](function(_0x10b2d2){const _0x3b4ea5=_0x346beb;logger[_0x3b4ea5('0x7')](_0x3b4ea5('0x36'),_0x297d81,'request\x20sent'),logger[_0x3b4ea5('0x49')](_0x3b4ea5('0x25'),_0x297d81,'request\x20sent',JSON[_0x3b4ea5('0x0')](_0x10b2d2));if(_0x10b2d2[_0x3b4ea5('0x39')]){if(_0x10b2d2['error'][_0x3b4ea5('0x4a')]===0x1f4)return logger['error'](_0x3b4ea5('0x36'),_0x297d81,_0x10b2d2['error'][_0x3b4ea5('0x5')]),_0x317eb5(_0x10b2d2[_0x3b4ea5('0x39')][_0x3b4ea5('0x5')]);return logger[_0x3b4ea5('0x39')]('FaxAccount,\x20%s,\x20%s',_0x297d81,_0x10b2d2[_0x3b4ea5('0x39')][_0x3b4ea5('0x5')]),_0x31f97a(_0x10b2d2[_0x3b4ea5('0x39')][_0x3b4ea5('0x5')]);}else logger[_0x3b4ea5('0x7')]('FaxAccount,\x20%s,\x20%s',_0x297d81,_0x3b4ea5('0x1a')),_0x31f97a(_0x10b2d2[_0x3b4ea5('0x4e')][_0x3b4ea5('0x5')]);})[_0x346beb('0x33')](function(_0x3848ca){const _0x44942a=_0x346beb;logger[_0x44942a('0x39')](_0x44942a('0x36'),_0x297d81,_0x3848ca),_0x317eb5(_0x3848ca);});});}exports[_0x579d5e('0x44')]=function(_0x52cec9){const _0x4279b2=this;return new Promise(function(_0x427212,_0x1fc3a3){const _0x2b8bc1=a189_0x59ac;return db[_0x2b8bc1('0x6')][_0x2b8bc1('0x4f')]({'raw':_0x52cec9[_0x2b8bc1('0x1c')]?_0x52cec9[_0x2b8bc1('0x1c')][_0x2b8bc1('0x9')]===undefined?!![]:![]:!![],'where':_0x52cec9[_0x2b8bc1('0x1c')]?_0x52cec9[_0x2b8bc1('0x1c')][_0x2b8bc1('0x4d')]||null:null,'attributes':_0x52cec9[_0x2b8bc1('0x1c')]?_0x52cec9[_0x2b8bc1('0x1c')][_0x2b8bc1('0x30')]||null:null,'limit':_0x52cec9[_0x2b8bc1('0x1c')]?_0x52cec9[_0x2b8bc1('0x1c')]['limit']||null:null,'include':_0x52cec9[_0x2b8bc1('0x1c')]?_0x52cec9[_0x2b8bc1('0x1c')][_0x2b8bc1('0x47')]?_[_0x2b8bc1('0x4')](_0x52cec9[_0x2b8bc1('0x1c')]['include'],function(_0xb295ce){const _0x5f5d27=_0x2b8bc1;return{'model':db[_0xb295ce['model']],'as':_0xb295ce['as'],'attributes':_0xb295ce['attributes'],'include':_0xb295ce[_0x5f5d27('0x47')]?_[_0x5f5d27('0x4')](_0xb295ce[_0x5f5d27('0x47')],function(_0x538c82){const _0x489f76=_0x5f5d27;return{'model':db[_0x538c82[_0x489f76('0x46')]],'as':_0x538c82['as'],'attributes':_0x538c82['attributes'],'include':_0x538c82[_0x489f76('0x47')]?_[_0x489f76('0x4')](_0x538c82[_0x489f76('0x47')],function(_0x364d97){const _0x1fbcec=_0x489f76;return{'model':db[_0x364d97['model']],'as':_0x364d97['as'],'attributes':_0x364d97[_0x1fbcec('0x30')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x128199){const _0x56319c=_0x2b8bc1;logger[_0x56319c('0x7')](_0x56319c('0x44'),_0x52cec9),logger[_0x56319c('0x49')](_0x56319c('0x44'),_0x52cec9,JSON[_0x56319c('0x0')](_0x128199)),_0x427212(_0x128199);})[_0x2b8bc1('0x33')](function(_0xffda02){const _0x182187=_0x2b8bc1;logger[_0x182187('0x39')](_0x182187('0x44'),_0xffda02[_0x182187('0x5')],_0x52cec9),_0x1fc3a3(_0x4279b2['error'](0x1f4,_0xffda02['message']));});});},exports[_0x579d5e('0x1f')]=function(_0x1c1021){const _0x5df0c0=this;return new Promise(function(_0x2ac949,_0x2cf9d3){const _0x2d957a=a189_0x59ac,_0x1d1418={'body':_0x1c1021[_0x2d957a('0x3e')],'channel':'fax'};let _0x2a2a8c=[],_0x62380d=[];const _0xeddc69={};return db[_0x2d957a('0x16')]['describe']()['then'](function(_0x11d807){const _0x5afc80=_0x2d957a;if(!_0x11d807)throw new db[(_0x5afc80('0x10'))]['ValidationError'](_0x5afc80('0x18'));_0x2a2a8c=_[_0x5afc80('0x19')](_[_0x5afc80('0x15')](_0x11d807),[_0x5afc80('0x45'),_0x5afc80('0x4c')]),_0x62380d=_['difference'](_['keys'](_0x11d807),[_0x5afc80('0x45'),_0x5afc80('0x4c'),_0x5afc80('0x1'),_0x5afc80('0x20')]);_0x1c1021[_0x5afc80('0x3e')]['id']&&delete _0x1c1021[_0x5afc80('0x3e')]['id'];if(_[_0x5afc80('0x26')](_0x1c1021['body'][_0x5afc80('0x42')]))throw new db[(_0x5afc80('0x10'))][(_0x5afc80('0x17'))](_0x5afc80('0x2d'));if(_['isNil'](_0x1c1021[_0x5afc80('0x3e')][_0x5afc80('0x3e')])||_0x1c1021['body'][_0x5afc80('0x3e')]==='')throw new db[(_0x5afc80('0x10'))][(_0x5afc80('0x17'))](_0x5afc80('0x31'));if(_[_0x5afc80('0x26')](_0x1c1021[_0x5afc80('0x3e')]['mapKey']))throw new db[(_0x5afc80('0x10'))][(_0x5afc80('0x17'))](_0x5afc80('0x40')+_0x62380d);if(!_[_0x5afc80('0x3f')](_0x62380d,_0x1c1021[_0x5afc80('0x3e')][_0x5afc80('0x23')]))throw new db[(_0x5afc80('0x10'))][(_0x5afc80('0x17'))]('mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x62380d);_0xeddc69[_0x1c1021[_0x5afc80('0x3e')][_0x5afc80('0x23')]]=_0x1c1021[_0x5afc80('0x3e')][_0x5afc80('0x42')];})[_0x2d957a('0x38')](function(){const _0x17d65c=_0x2d957a;return db[_0x17d65c('0x6')][_0x17d65c('0x4b')]({'where':{'id':_0x1c1021[_0x17d65c('0x41')]['id']},'include':[{'model':db['CmList'],'as':_0x17d65c('0x2f'),'include':[{'model':db[_0x17d65c('0x16')],'as':_0x17d65c('0xd'),'where':_0xeddc69,'limit':0x1,'order':[['updatedAt',_0x17d65c('0x32')]]}]},{'model':db[_0x17d65c('0x1b')],'as':_0x17d65c('0x3')}]});})[_0x2d957a('0x38')](function(_0x1e1bf7){const _0x21f33f=_0x2d957a;if(_0x1e1bf7&&_0x1e1bf7[_0x21f33f('0x2f')]){const _0x169233=_0x1e1bf7[_0x21f33f('0x1d')]({'plain':!![]});_0x1d1418['account']=_0x169233,_0x1d1418[_0x21f33f('0xe')]=_0x169233[_0x21f33f('0x3')],_0x1d1418[_0x21f33f('0x8')]=_0x169233[_0x21f33f('0x2f')],_0x1d1418[_0x21f33f('0xe')]=_[_0x21f33f('0x21')](_0x1d1418['applications'],['priority'],[_0x21f33f('0x2b')]);_0x1d1418[_0x21f33f('0x41')][_0x21f33f('0x3')]&&delete _0x1d1418['account'][_0x21f33f('0x3')];if(_0x1d1418[_0x21f33f('0x41')][_0x21f33f('0x2f')]&&_0x1d1418[_0x21f33f('0x41')]['List']['Contacts'][_0x21f33f('0x3c')])return _0x1d1418['account'][_0x21f33f('0x2f')][_0x21f33f('0xd')][0x0];const _0x29d0d7=_[_0x21f33f('0x1e')](_0x1c1021['body'],{'firstName':_0x1c1021['body']['from'],'ListId':_0x169233[_0x21f33f('0x20')]});return _0x29d0d7[_0x1c1021[_0x21f33f('0x3e')][_0x21f33f('0x23')]]=_0x1c1021['body'][_0x21f33f('0x42')],db[_0x21f33f('0x16')][_0x21f33f('0x2c')](_0x29d0d7,{'fields':_0x2a2a8c,'raw':!![]});}})[_0x2d957a('0x38')](function(_0x3e4fc1){const _0x299773=_0x2d957a;_0x1d1418[_0x299773('0x12')]=_0x3e4fc1;if(_0x3e4fc1){const _0x1a594e={'ContactId':_0x3e4fc1['id'],'FaxAccountId':_0x1c1021['account']['id'],'fax':_0x3e4fc1[_0x299773('0x22')]};return db[_0x299773('0xa')][_0x299773('0x4b')]({'where':{'ContactId':_0x3e4fc1['id'],'closed':![],'FaxAccountId':_0x1c1021['account']['id']}})[_0x299773('0x38')](function(_0x150ab2){const _0x4271a5=_0x299773;if(_0x150ab2)return[_0x150ab2,![]];return db[_0x4271a5('0xa')][_0x4271a5('0x2c')](_0x1a594e)[_0x4271a5('0x38')](function(_0x13b191){return[_0x13b191,!![]];});});}else throw new Error(_0x299773('0x3b'));})[_0x2d957a('0x38')](function([_0x5763f4,_0x4866c5]){const _0x1c5cf5=_0x2d957a,_0x1edbb0=_0x5763f4[_0x1c5cf5('0x1d')]({'plain':!![]});return _0x4866c5?(_0x1d1418['account'][_0x1c5cf5('0x50')]&&_0x1d1418['applications']['push']({'id':0x0,'priority':_0x1d1418['applications'][_0x1c5cf5('0x3c')]+0x1,'app':_0x1c5cf5('0x29'),'appdata':'unmanaged','interval':'*,*,*,*'}),_0x1edbb0[_0x1c5cf5('0x28')]=!![]):_0x1edbb0[_0x1c5cf5('0x28')]=![],_0x1d1418[_0x1c5cf5('0x13')]=_0x1edbb0,db[_0x1c5cf5('0xc')]['create']({'body':_0x1c1021[_0x1c5cf5('0x3e')][_0x1c5cf5('0x3e')],'FaxAccountId':_0x1c1021[_0x1c5cf5('0x41')]['id'],'FaxInteractionId':_0x5763f4['id'],'direction':'in','ContactId':_0x5763f4[_0x1c5cf5('0x34')],'AttachmentId':_0x1c1021[_0x1c5cf5('0x3e')][_0x1c5cf5('0x14')]});})['then'](function(_0x2a5bb1){const _0x3677d4=_0x2d957a;_0x1d1418[_0x3677d4('0x5')]=_0x2a5bb1;if(_0x1d1418[_0x3677d4('0x13')][_0x3677d4('0x2e')])return db[_0x3677d4('0xf')]['findOne']({'attributes':['id',_0x3677d4('0x2a')],'where':{'id':_0x1d1418[_0x3677d4('0x13')][_0x3677d4('0x2e')]}})[_0x3677d4('0x38')](function(_0x157390){const _0x5f36cc=_0x3677d4;return _0x157390&&_0x1d1418[_0x5f36cc('0xe')][_0x5f36cc('0x2')]({'id':0x0,'priority':0x0,'app':_0x5f36cc('0xb'),'appdata':_0x157390[_0x5f36cc('0x2a')]+','+(_0x1d1418[_0x5f36cc('0x41')][_0x5f36cc('0x37')]||0xa),'interval':_0x5f36cc('0x43')}),respondWithRpcPromise(_0x5f36cc('0x35'),'startRouting',_0x1d1418);});return respondWithRpcPromise('Start',_0x3677d4('0x11'),_0x1d1418);})[_0x2d957a('0x38')](function(_0x52e88a){_0x2ac949(_0x52e88a);})[_0x2d957a('0x33')](function(_0x14cdc5){const _0x35e4fa=_0x2d957a;_0x2cf9d3(_0x5df0c0[_0x35e4fa('0x39')](0x1f4,_0x14cdc5['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/faxAccount/faxAccount.socket.js b/server/api/faxAccount/faxAccount.socket.js index b54c631..d0b6b4d 100644 --- a/server/api/faxAccount/faxAccount.socket.js +++ b/server/api/faxAccount/faxAccount.socket.js @@ -1 +1 @@ -const a190_0x1597=['register','remove','save','length','update','./faxAccount.events'];(function(_0xf30af8,_0x159778){const _0x5583cc=function(_0x31d885){while(--_0x31d885){_0xf30af8['push'](_0xf30af8['shift']());}};_0x5583cc(++_0x159778);}(a190_0x1597,0x1bd));const a190_0x5583=function(_0xf30af8,_0x159778){_0xf30af8=_0xf30af8-0x0;let _0x5583cc=a190_0x1597[_0xf30af8];return _0x5583cc;};const _0x5db06c=a190_0x5583;'use strict';const FaxAccountEvents=require(_0x5db06c('0x4')),events=[_0x5db06c('0x1'),_0x5db06c('0x0'),_0x5db06c('0x3')];function createListener(_0x31d885,_0xfc6255){return function(_0x5c69b1){_0xfc6255['emit'](_0x31d885,_0x5c69b1);};}exports[_0x5db06c('0x5')]=function(_0x5a6147){const _0x56ab4a=_0x5db06c;for(let _0x1e2ddc=0x0,_0x8ecef4=events[_0x56ab4a('0x2')];_0x1e2ddc<_0x8ecef4;_0x1e2ddc++){const _0x30c257=events[_0x1e2ddc],_0x3596eb=createListener('faxAccount:'+_0x30c257,_0x5a6147);FaxAccountEvents['on'](_0x30c257,_0x3596eb);}}; \ No newline at end of file +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 diff --git a/server/api/faxAccount/index.js b/server/api/faxAccount/index.js index 609d1e6..60f14fb 100644 --- a/server/api/faxAccount/index.js +++ b/server/api/faxAccount/index.js @@ -1 +1 @@ -const a191_0x3b8e=['show','/updateaccountapplications','create','destroy','update','/:id/users','/:id','/:id/messages','getApplications','/:id/interactions','/:id/canned_answers','addApplications','/:id/dispositions','/:id/send','updateAccountApplications','express','removeAnswers','describe','send','put','getInteractions','get','../../components/auth/service','addAnswer','index','isAuthenticated','addInteraction','addAccountApplications','delete','/:id/applications','post'];(function(_0x14be6f,_0x3b8e8f){const _0x452a39=function(_0x1c90de){while(--_0x1c90de){_0x14be6f['push'](_0x14be6f['shift']());}};_0x452a39(++_0x3b8e8f);}(a191_0x3b8e,0x134));const a191_0x452a=function(_0x14be6f,_0x3b8e8f){_0x14be6f=_0x14be6f-0x0;let _0x452a39=a191_0x3b8e[_0x14be6f];return _0x452a39;};const _0x5033e0=a191_0x452a;'use strict';const express=require(_0x5033e0('0x11')),router=express['Router'](),auth=require(_0x5033e0('0x18')),controller=require('./faxAccount.controller');router[_0x5033e0('0x17')]('/',auth['isAuthenticated'](),controller[_0x5033e0('0x1a')]),router[_0x5033e0('0x17')]('/describe',auth['isAuthenticated'](),controller[_0x5033e0('0x13')]),router[_0x5033e0('0x17')](_0x5033e0('0x8'),auth[_0x5033e0('0x1b')](),controller[_0x5033e0('0x2')]),router['get'](_0x5033e0('0xe'),auth['isAuthenticated'](),controller['getDispositions']),router[_0x5033e0('0x17')](_0x5033e0('0xc'),auth[_0x5033e0('0x1b')](),controller['getAnswers']),router[_0x5033e0('0x17')](_0x5033e0('0xb'),auth[_0x5033e0('0x1b')](),controller[_0x5033e0('0x16')]),router[_0x5033e0('0x17')](_0x5033e0('0x0'),auth[_0x5033e0('0x1b')](),controller[_0x5033e0('0xa')]),router[_0x5033e0('0x17')](_0x5033e0('0x9'),auth[_0x5033e0('0x1b')](),controller['getMessages']),router[_0x5033e0('0x17')](_0x5033e0('0x7'),auth[_0x5033e0('0x1b')](),controller['getAgents']),router[_0x5033e0('0x1')]('/',auth[_0x5033e0('0x1b')](),controller[_0x5033e0('0x4')]),router[_0x5033e0('0x1')](_0x5033e0('0xe'),auth[_0x5033e0('0x1b')](),controller['addDisposition']),router[_0x5033e0('0x1')](_0x5033e0('0xc'),auth[_0x5033e0('0x1b')](),controller[_0x5033e0('0x19')]),router[_0x5033e0('0x1')](_0x5033e0('0xb'),auth[_0x5033e0('0x1b')](),controller[_0x5033e0('0x1c')]),router[_0x5033e0('0x1')](_0x5033e0('0x0'),auth[_0x5033e0('0x1b')](),controller[_0x5033e0('0xd')]),router[_0x5033e0('0x1')]('/addaccountapplications',auth['isAuthenticated'](),controller[_0x5033e0('0x1d')]),router[_0x5033e0('0x1')](_0x5033e0('0x3'),auth[_0x5033e0('0x1b')](),controller[_0x5033e0('0x10')]),router[_0x5033e0('0x1')](_0x5033e0('0xf'),auth[_0x5033e0('0x1b')](),controller[_0x5033e0('0x14')]),router[_0x5033e0('0x1')](_0x5033e0('0x7'),auth[_0x5033e0('0x1b')](),controller['addAgents']),router[_0x5033e0('0x15')]('/:id',auth[_0x5033e0('0x1b')](),controller[_0x5033e0('0x6')]),router[_0x5033e0('0x1e')]('/:id',auth[_0x5033e0('0x1b')](),controller[_0x5033e0('0x5')]),router[_0x5033e0('0x1e')]('/:id/dispositions',auth[_0x5033e0('0x1b')](),controller['removeDispositions']),router[_0x5033e0('0x1e')](_0x5033e0('0xc'),auth[_0x5033e0('0x1b')](),controller[_0x5033e0('0x12')]),router[_0x5033e0('0x1e')]('/:id/users',auth['isAuthenticated'](),controller['removeAgents']),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/faxApplication/faxApplication.attributes.js b/server/api/faxApplication/faxApplication.attributes.js index ee87fe1..c2dff99 100644 --- a/server/api/faxApplication/faxApplication.attributes.js +++ b/server/api/faxApplication/faxApplication.attributes.js @@ -1 +1 @@ -const a192_0x1fb8=['sequelize','exports','noop','INTEGER','STRING','TEXT'];(function(_0x32e4a1,_0x1fb8da){const _0x498bb5=function(_0x82be26){while(--_0x82be26){_0x32e4a1['push'](_0x32e4a1['shift']());}};_0x498bb5(++_0x1fb8da);}(a192_0x1fb8,0x65));const a192_0x498b=function(_0x32e4a1,_0x1fb8da){_0x32e4a1=_0x32e4a1-0x0;let _0x498bb5=a192_0x1fb8[_0x32e4a1];return _0x498bb5;};const _0x2a10bf=a192_0x498b;'use strict';const Sequelize=require(_0x2a10bf('0x1'));module[_0x2a10bf('0x2')]={'priority':{'type':Sequelize[_0x2a10bf('0x4')],'allowNull':![]},'app':{'type':Sequelize[_0x2a10bf('0x5')],'allowNull':![],'defaultValue':_0x2a10bf('0x3')},'appdata':{'type':Sequelize[_0x2a10bf('0x0')]()},'description':{'type':Sequelize[_0x2a10bf('0x5')]},'interval':{'type':Sequelize['STRING'],'defaultValue':'*,*,*,*'}}; \ No newline at end of file +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 diff --git a/server/api/faxApplication/faxApplication.controller.js b/server/api/faxApplication/faxApplication.controller.js index f759011..e6789f4 100644 --- a/server/api/faxApplication/faxApplication.controller.js +++ b/server/api/faxApplication/faxApplication.controller.js @@ -1 +1 @@ -const a193_0x2b4e=['body','rawAttributes','intersection','where','map','options','destroy','fields','keys','send','then','type','filters','Content-Range','stack','length','../../components/parsers/qs','update','limit','status','sort','findOne','create','pick','api','count','query','FaxApplication','undefined','includeAll','catch','filter','name','params','index','findAll','show','../../mysqldb','sequelize','rows','offset','include','VIRTUAL','json','../../config/logger','attributes','merge','model','like'];(function(_0xab3092,_0x2b4ebe){const _0x242a6d=function(_0x574aff){while(--_0x574aff){_0xab3092['push'](_0xab3092['shift']());}};_0x242a6d(++_0x2b4ebe);}(a193_0x2b4e,0xe7));const a193_0x242a=function(_0xab3092,_0x2b4ebe){_0xab3092=_0xab3092-0x0;let _0x242a6d=a193_0x2b4e[_0xab3092];return _0x242a6d;};const _0x57142d=a193_0x242a;'use strict';const _=require('lodash'),qs=require(_0x57142d('0x1e')),logger=require(_0x57142d('0x9'))(_0x57142d('0x26')),db=require(_0x57142d('0x2'))['db'],{Op}=require(_0x57142d('0x3'));function respondWithResult(_0x574aff,_0x463df2){return _0x463df2=_0x463df2||0xc8,function(_0x3d90aa){if(_0x3d90aa)return _0x574aff['status'](_0x463df2)['json'](_0x3d90aa);};}function respondWithFilteredResult(_0xa98549,_0x31bbc0){return function(_0x4b3926){const _0x4ea7f6=a193_0x242a;if(_0x4b3926){const _0x6a0c5a=_0x4b3926['count'],_0x4e783e=_0x31bbc0[_0x4ea7f6('0x5')];let _0x4d0036=_0x31bbc0[_0x4ea7f6('0x5')]+_0x31bbc0[_0x4ea7f6('0x20')],_0x4d84d6;return _0x4d0036>=_0x6a0c5a?(_0x4d0036=_0x6a0c5a,_0x4d84d6=0xc8):_0x4d84d6=0xce,_0xa98549[_0x4ea7f6('0x21')](_0x4d84d6),_0xa98549['set'](_0x4ea7f6('0x1b'),_0x4e783e+'-'+_0x4d0036+'/'+_0x6a0c5a)[_0x4ea7f6('0x8')](_0x4b3926);}return null;};}function saveUpdates(_0x20026d){return function(_0x23a618){const _0x36148c=a193_0x242a;if(_0x23a618)return _0x23a618[_0x36148c('0x1f')](_0x20026d)[_0x36148c('0x18')](function(_0x3dc201){return _0x3dc201;});return null;};}function removeEntity(_0x5f48de){return function(_0x5a3e79){const _0x28f07e=a193_0x242a;if(_0x5a3e79)return _0x5a3e79[_0x28f07e('0x14')]()['then'](function(){const _0x24d029=_0x28f07e;_0x5f48de[_0x24d029('0x21')](0xcc)['end']();});};}function handleEntityNotFound(_0x17b0fe){return function(_0x1b7ebb){return!_0x1b7ebb&&_0x17b0fe['sendStatus'](0x194),_0x1b7ebb;};}function handleError(_0xfdaf38,_0x5308b6){return _0x5308b6=_0x5308b6||0x1f4,function(_0x35963e){const _0x4021a9=a193_0x242a;logger['error'](_0x35963e[_0x4021a9('0x1c')]),_0x35963e[_0x4021a9('0x2e')]&&delete _0x35963e['name'],_0xfdaf38['status'](_0x5308b6)[_0x4021a9('0x17')](_0x35963e);};}exports[_0x57142d('0x30')]=function(_0x1b384a,_0x40e9c1){const _0x32637f=_0x57142d;let _0x5a7b06={};const _0x36717f={},_0x44609b={'count':0x0,'rows':[]},_0x496ad0=_['map'](db['FaxApplication']['rawAttributes'],function(_0x48ae53){const _0x38f152=a193_0x242a;return{'name':_0x48ae53['fieldName'],'type':_0x48ae53[_0x38f152('0x19')]['key']};});_0x36717f[_0x32637f('0xc')]=_[_0x32637f('0x12')](_0x496ad0,'name'),_0x36717f[_0x32637f('0x28')]=_[_0x32637f('0x16')](_0x1b384a['query']),_0x36717f[_0x32637f('0x1a')]=_[_0x32637f('0x10')](_0x36717f[_0x32637f('0xc')],_0x36717f[_0x32637f('0x28')]),_0x5a7b06[_0x32637f('0xa')]=_[_0x32637f('0x10')](_0x36717f['model'],qs[_0x32637f('0x15')](_0x1b384a[_0x32637f('0x28')]['fields'])),_0x5a7b06[_0x32637f('0xa')]=_0x5a7b06['attributes']['length']?_0x5a7b06[_0x32637f('0xa')]:_0x36717f[_0x32637f('0xc')];typeof _0x1b384a['query']['nolimit']===_0x32637f('0x2a')&&(_0x5a7b06[_0x32637f('0x20')]=qs['limit'](_0x1b384a[_0x32637f('0x28')][_0x32637f('0x20')]),_0x5a7b06[_0x32637f('0x5')]=qs[_0x32637f('0x5')](_0x1b384a[_0x32637f('0x28')][_0x32637f('0x5')]));_0x5a7b06['order']=qs['sort'](_0x1b384a[_0x32637f('0x28')][_0x32637f('0x22')]),_0x5a7b06[_0x32637f('0x11')]=qs[_0x32637f('0x1a')](_[_0x32637f('0x25')](_0x1b384a[_0x32637f('0x28')],_0x36717f[_0x32637f('0x1a')]),_0x496ad0);_0x1b384a['query'][_0x32637f('0x2d')]&&(_0x5a7b06[_0x32637f('0x11')]=_[_0x32637f('0xb')](_0x5a7b06[_0x32637f('0x11')],{[Op['or']]:_['map'](_0x496ad0,function(_0x24e2c7){const _0x435679=_0x32637f;if(_0x24e2c7['type']!==_0x435679('0x7')){const _0x21ae2a={};return _0x21ae2a[_0x24e2c7[_0x435679('0x2e')]]={[Op[_0x435679('0xd')]]:'%'+_0x1b384a[_0x435679('0x28')][_0x435679('0x2d')]+'%'},_0x21ae2a;}})}));_0x5a7b06=_[_0x32637f('0xb')]({},_0x5a7b06,_0x1b384a[_0x32637f('0x13')]);const _0xbd46df={'where':_0x5a7b06['where']};return db[_0x32637f('0x29')][_0x32637f('0x27')](_0xbd46df)['then'](function(_0x3956fd){const _0x274143=_0x32637f;return _0x44609b[_0x274143('0x27')]=_0x3956fd,_0x1b384a[_0x274143('0x28')][_0x274143('0x2b')]&&(_0x5a7b06[_0x274143('0x6')]=[{'all':!![]}]),db[_0x274143('0x29')][_0x274143('0x0')](_0x5a7b06);})[_0x32637f('0x18')](function(_0x2840a8){const _0x207875=_0x32637f;return _0x44609b[_0x207875('0x4')]=_0x2840a8,_0x44609b;})[_0x32637f('0x18')](respondWithFilteredResult(_0x40e9c1,_0x5a7b06))[_0x32637f('0x2c')](handleError(_0x40e9c1,null));},exports[_0x57142d('0x1')]=function(_0x26e3b7,_0x29ca0f){const _0x2abed1=_0x57142d;let _0x5a3a29={'raw':!![],'where':{'id':_0x26e3b7['params']['id']}};const _0x2b3d08={};return _0x2b3d08['model']=_[_0x2abed1('0x16')](db[_0x2abed1('0x29')][_0x2abed1('0xf')]),_0x2b3d08[_0x2abed1('0x28')]=_[_0x2abed1('0x16')](_0x26e3b7[_0x2abed1('0x28')]),_0x2b3d08['filters']=_[_0x2abed1('0x10')](_0x2b3d08[_0x2abed1('0xc')],_0x2b3d08['query']),_0x5a3a29[_0x2abed1('0xa')]=_[_0x2abed1('0x10')](_0x2b3d08[_0x2abed1('0xc')],qs[_0x2abed1('0x15')](_0x26e3b7[_0x2abed1('0x28')]['fields'])),_0x5a3a29['attributes']=_0x5a3a29['attributes'][_0x2abed1('0x1d')]?_0x5a3a29[_0x2abed1('0xa')]:_0x2b3d08['model'],_0x26e3b7[_0x2abed1('0x28')][_0x2abed1('0x2b')]&&(_0x5a3a29[_0x2abed1('0x6')]=[{'all':!![]}]),_0x5a3a29=_[_0x2abed1('0xb')]({},_0x5a3a29,_0x26e3b7['options']),db[_0x2abed1('0x29')][_0x2abed1('0x23')](_0x5a3a29)[_0x2abed1('0x18')](handleEntityNotFound(_0x29ca0f,null))[_0x2abed1('0x18')](respondWithResult(_0x29ca0f,null))[_0x2abed1('0x2c')](handleError(_0x29ca0f,null));},exports[_0x57142d('0x24')]=function(_0x239a08,_0xde2c8f){const _0x476cfa=_0x57142d;return db[_0x476cfa('0x29')][_0x476cfa('0x24')](_0x239a08['body'],{})['then'](respondWithResult(_0xde2c8f,0xc9))[_0x476cfa('0x2c')](handleError(_0xde2c8f,null));},exports[_0x57142d('0x1f')]=function(_0x1707b8,_0x145bc3){const _0x5505da=_0x57142d;return _0x1707b8['body']['id']&&delete _0x1707b8[_0x5505da('0xe')]['id'],db[_0x5505da('0x29')][_0x5505da('0x23')]({'where':{'id':_0x1707b8[_0x5505da('0x2f')]['id']}})[_0x5505da('0x18')](handleEntityNotFound(_0x145bc3,null))['then'](saveUpdates(_0x1707b8['body'],null))['then'](respondWithResult(_0x145bc3,null))[_0x5505da('0x2c')](handleError(_0x145bc3,null));},exports[_0x57142d('0x14')]=function(_0x57847d,_0x3e8a3a){const _0x43918d=_0x57142d;return db[_0x43918d('0x29')][_0x43918d('0x23')]({'where':{'id':_0x57847d[_0x43918d('0x2f')]['id']}})['then'](handleEntityNotFound(_0x3e8a3a,null))[_0x43918d('0x18')](removeEntity(_0x3e8a3a,null))['catch'](handleError(_0x3e8a3a,null));}; \ No newline at end of file +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 diff --git a/server/api/faxApplication/faxApplication.model.js b/server/api/faxApplication/faxApplication.model.js index 693e634..0b3bf36 100644 --- a/server/api/faxApplication/faxApplication.model.js +++ b/server/api/faxApplication/faxApplication.model.js @@ -1 +1 @@ -const a194_0x4638=['utf8mb4_unicode_ci','define','exports','fax_applications'];(function(_0x484a3a,_0x4638ee){const _0xcee153=function(_0x2dfa7a){while(--_0x2dfa7a){_0x484a3a['push'](_0x484a3a['shift']());}};_0xcee153(++_0x4638ee);}(a194_0x4638,0x156));const a194_0xcee1=function(_0x484a3a,_0x4638ee){_0x484a3a=_0x484a3a-0x0;let _0xcee153=a194_0x4638[_0x484a3a];return _0xcee153;};const _0x14ef30=a194_0xcee1;'use strict';const attributes=require('./faxApplication.attributes');module[_0x14ef30('0x0')]=function(_0x2dfa7a){const _0x3041a9=_0x14ef30,_0x260b7d=_0x2dfa7a[_0x3041a9('0x3')]('FaxApplication',attributes,{'tableName':_0x3041a9('0x1'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x3041a9('0x2')});return _0x260b7d;}; \ No newline at end of file +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 diff --git a/server/api/faxApplication/faxApplication.rpc.js b/server/api/faxApplication/faxApplication.rpc.js index 1133343..8fc1869 100644 --- a/server/api/faxApplication/faxApplication.rpc.js +++ b/server/api/faxApplication/faxApplication.rpc.js @@ -1 +1 @@ -const a195_0xc47f=['UpdateFaxApplication','raw','rpc','error','../../config/logger','update','stringify','../../mysqldb','body','info','debug','then','message','options'];(function(_0x3ccddb,_0xc47f7b){const _0x261a1f=function(_0x39001c){while(--_0x39001c){_0x3ccddb['push'](_0x3ccddb['shift']());}};_0x261a1f(++_0xc47f7b);}(a195_0xc47f,0x157));const a195_0x261a=function(_0x3ccddb,_0xc47f7b){_0x3ccddb=_0x3ccddb-0x0;let _0x261a1f=a195_0xc47f[_0x3ccddb];return _0x261a1f;};const _0xa36d99=a195_0x261a;'use strict';const db=require(_0xa36d99('0x0'))['db'],logger=require(_0xa36d99('0xb'))(_0xa36d99('0x9'));exports[_0xa36d99('0x7')]=function(_0x39001c){const _0x12f392=this;return new Promise(function(_0x177f4d,_0x3d7b87){const _0x17f314=a195_0x261a;return db['FaxApplication'][_0x17f314('0xc')](_0x39001c[_0x17f314('0x1')],{'raw':_0x39001c['options']?_0x39001c[_0x17f314('0x6')][_0x17f314('0x8')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x39001c[_0x17f314('0x6')]?_0x39001c[_0x17f314('0x6')]['where']||null:null,'attributes':_0x39001c[_0x17f314('0x6')]?_0x39001c[_0x17f314('0x6')]['attributes']||null:null,'limit':_0x39001c['options']?_0x39001c[_0x17f314('0x6')]['limit']||null:null})[_0x17f314('0x4')](function(_0x3e0f49){const _0xdda569=_0x17f314;logger[_0xdda569('0x2')](_0xdda569('0x7'),_0x39001c),logger[_0xdda569('0x3')](_0xdda569('0x7'),_0x39001c,JSON[_0xdda569('0xd')](_0x3e0f49)),_0x177f4d(_0x3e0f49);})['catch'](function(_0x4d4526){const _0x548e83=_0x17f314;logger[_0x548e83('0xa')](_0x548e83('0x7'),_0x4d4526[_0x548e83('0x5')],_0x39001c),_0x3d7b87(_0x12f392[_0x548e83('0xa')](0x1f4,_0x4d4526['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/faxApplication/index.js b/server/api/faxApplication/index.js index 01482fb..339f692 100644 --- a/server/api/faxApplication/index.js +++ b/server/api/faxApplication/index.js @@ -1 +1 @@ -const a196_0x54fc=['express','Router','destroy','./faxApplication.controller','show','create','../../components/auth/service','delete','get','put','isAuthenticated','/:id'];(function(_0x6aa0f9,_0x54fc70){const _0x585672=function(_0x3c6c62){while(--_0x3c6c62){_0x6aa0f9['push'](_0x6aa0f9['shift']());}};_0x585672(++_0x54fc70);}(a196_0x54fc,0xbe));const a196_0x5856=function(_0x6aa0f9,_0x54fc70){_0x6aa0f9=_0x6aa0f9-0x0;let _0x585672=a196_0x54fc[_0x6aa0f9];return _0x585672;};const _0x178541=a196_0x5856;'use strict';const express=require(_0x178541('0x2')),router=express[_0x178541('0x3')](),auth=require(_0x178541('0x8')),controller=require(_0x178541('0x5'));router[_0x178541('0xa')]('/',auth[_0x178541('0x0')](),controller['index']),router[_0x178541('0xa')]('/:id',auth['isAuthenticated'](),controller[_0x178541('0x6')]),router['post']('/',auth[_0x178541('0x0')](),controller[_0x178541('0x7')]),router[_0x178541('0xb')](_0x178541('0x1'),auth['isAuthenticated'](),controller['update']),router[_0x178541('0x9')](_0x178541('0x1'),auth['isAuthenticated'](),controller[_0x178541('0x4')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/faxInteraction/faxInteraction.attributes.js b/server/api/faxInteraction/faxInteraction.attributes.js index 2bf6b18..dd81142 100644 --- a/server/api/faxInteraction/faxInteraction.attributes.js +++ b/server/api/faxInteraction/faxInteraction.attributes.js @@ -1 +1 @@ -const a197_0x2858=['DATE','STRING','out','exports','BOOLEAN','ENUM'];(function(_0x3da749,_0x285831){const _0x184e91=function(_0x4ab9d8){while(--_0x4ab9d8){_0x3da749['push'](_0x3da749['shift']());}};_0x184e91(++_0x285831);}(a197_0x2858,0x11e));const a197_0x184e=function(_0x3da749,_0x285831){_0x3da749=_0x3da749-0x0;let _0x184e91=a197_0x2858[_0x3da749];return _0x184e91;};const _0x45ba32=a197_0x184e;'use strict';const Sequelize=require('sequelize');module[_0x45ba32('0x5')]={'closed':{'type':Sequelize[_0x45ba32('0x0')],'defaultValue':![]},'closedAt':{'type':Sequelize['DATE']},'disposition':{'type':Sequelize[_0x45ba32('0x3')]},'secondDisposition':{'type':Sequelize[_0x45ba32('0x3')]},'thirdDisposition':{'type':Sequelize[_0x45ba32('0x3')]},'note':{'type':Sequelize[_0x45ba32('0x3')]},'read1stAt':{'type':Sequelize[_0x45ba32('0x2')]},'fax':{'type':Sequelize[_0x45ba32('0x3')]},'firstMsgDirection':{'type':Sequelize[_0x45ba32('0x1')]('in',_0x45ba32('0x4')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x45ba32('0x2')]},'lastMsgDirection':{'type':Sequelize[_0x45ba32('0x1')]('in',_0x45ba32('0x4')),'defaultValue':'in','allowNull':![]}}; \ No newline at end of file +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 diff --git a/server/api/faxInteraction/faxInteraction.controller.js b/server/api/faxInteraction/faxInteraction.controller.js index 8726642..f6fdef8 100644 --- a/server/api/faxInteraction/faxInteraction.controller.js +++ b/server/api/faxInteraction/faxInteraction.controller.js @@ -1 +1 @@ -const a198_0x52fd=['Contact.firstName','i.FaxAccountId\x20IN\x20?','FaxInteractionId','a.id\x20=\x20i.FaxAccountId','start','i.id\x20LIKE\x20?','union','offset','lodash','join','rimraf','removeTags','c.fax','concat','GROUP_CONCAT(DISTINCT\x20t.id)','json','YYYY-MM-DD\x20HH:mm:ss','c.email','FaxMessage','filter','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','user','parseSearch','nolimit','Attachment','`unreadMessages`\x20>\x200','$substring','./faxInteraction.socket','select','ids','pipe','stack','options','download','zip-dir','o.internal','addTags','left_join','limit','params','some','from','forEach','create','like','query','push','fax_accounts','keyBy','../../config/environment','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','unix','../../components/parsers/advancedSearch','fax_interactions','ContactId','mkdirSync','root','files','u.fullname','$gte','basename','group','text','squel','body','journey','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','key','me.FaxInteractionId\x20=\x20i.id','includeAll','order','merge','replace','\x20IS\x20NULL','gte','parse','isNumeric','c.firstName','\x27\x27\x27\x27','a.mandatoryDisposition','user_has_fax_interactions','operator','faxInteractionTags:save','length','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','field','map','fullname','util','sequelize','findAll','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','i.*','unlinkSync','`\x20>\x200','read','fax_interaction_has_tags','get','count','createdAt','path','\x20=\x20?','filters','server','FaxAccountId','i.fax\x20LIKE\x20?','search','addMessage','resolve','keys','color','groupBy','Tag','Contact.mobile','buildExpression','update','omit','isEmpty','User','FaxInteraction','Contact.fax','Contact.email','u.id\x20=\x20ui.UserId','sendStatus','i.id','error','attributes','`unreadMessages`\x20=\x200','../../config/logger','transcript-%d-%s.zip','fields','send','Users','Messages','rawAttributes','model','name','o.fullname','tag','status','i.FaxAccountId\x20IS\x20NOT\x20NULL','TagIds','err','fax_messages','getFaxAccounts','getMessages','i.FaxAccountId\x20IS\x20NULL','register','pick','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','Owner.internal','it.FaxInteractionId\x20=\x20i.id','QueryTypes','unreadMessages','rows','UserId','null','log','ui.FaxInteractionId','emit','catch','intersection','find','Tags','split','where','tools_tags','cm_contacts','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','sort','expr','$lte','destroy','api','../../mysqldb','toString','Account.mandatoryDisposition','setTags','SELECT','compact','having','createReadStream','c.phone','t.id\x20=\x20it.TagId','getFullTextValue','describe','Sequelize','undefined','value','users','include','show','../../rediscache','u.id','Contact.phone','../../components/parsers/qs','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','type','end','then','index','format','findOne'];(function(_0x93c4bb,_0x52fd6a){const _0x47152f=function(_0x2788f4){while(--_0x2788f4){_0x93c4bb['push'](_0x93c4bb['shift']());}};_0x47152f(++_0x52fd6a);}(a198_0x52fd,0x80));const a198_0x4715=function(_0x93c4bb,_0x52fd6a){_0x93c4bb=_0x93c4bb-0x0;let _0x47152f=a198_0x52fd[_0x93c4bb];return _0x47152f;};const _0x1fcc06=a198_0x4715;'use strict';const rimraf=require(_0x1fcc06('0x55')),zipdir=require(_0x1fcc06('0x6d')),moment=require('moment'),util=require(_0x1fcc06('0xa3')),path=require(_0x1fcc06('0xaf')),fs=require('fs'),_=require(_0x1fcc06('0x53')),squel=require(_0x1fcc06('0x8a')),{getSocket}=require(_0x1fcc06('0x40')),socket=getSocket(),qs=require(_0x1fcc06('0x43')),as=require(_0x1fcc06('0x7f')),logger=require(_0x1fcc06('0x0'))(_0x1fcc06('0x2d')),config=require(_0x1fcc06('0x7c')),db=require(_0x1fcc06('0x2e'))['db'],{Op}=require(_0x1fcc06('0xa4'));require(_0x1fcc06('0x66'))[_0x1fcc06('0x13')](socket);function respondWithStatusCode(_0x2788f4,_0x2958d4){return _0x2958d4=_0x2958d4||0xcc,function(_0x39e7c8){const _0x3f1f5d=a198_0x4715;if(_0x39e7c8)return _0x2788f4[_0x3f1f5d('0xc6')](_0x2958d4);return _0x2788f4['status'](_0x2958d4)[_0x3f1f5d('0x46')]();};}function respondWithResult(_0x3ee6d2,_0x19c504){return _0x19c504=_0x19c504||0xc8,function(_0x29d8c6){const _0x31e737=a198_0x4715;if(_0x29d8c6)return _0x3ee6d2[_0x31e737('0xb')](_0x19c504)[_0x31e737('0x5a')](_0x29d8c6);};}function respondWithFilteredResult(_0x48c10f,_0x24ac2e){return function(_0x37201c){const _0x57e294=a198_0x4715;if(_0x37201c){const _0x3bdda0=_0x37201c['count'],_0x20848b=_0x24ac2e[_0x57e294('0x52')];let _0x493fa0=_0x24ac2e[_0x57e294('0x52')]+_0x24ac2e[_0x57e294('0x71')],_0x352011;return _0x493fa0>=_0x3bdda0?(_0x493fa0=_0x3bdda0,_0x352011=0xc8):_0x352011=0xce,_0x48c10f[_0x57e294('0xb')](_0x352011),_0x48c10f['set']('Content-Range',_0x20848b+'-'+_0x493fa0+'/'+_0x3bdda0)[_0x57e294('0x5a')](_0x37201c);}return null;};}function saveUpdates(_0x370787){return function(_0x16fd1c){const _0x3b81fe=a198_0x4715;if(_0x16fd1c)return _0x16fd1c[_0x3b81fe('0xbe')](_0x370787)[_0x3b81fe('0x47')](function(_0x26fb34){return _0x26fb34;});return null;};}function removeEntity(_0x59b1b6){return function(_0x545b1c){const _0x53a9ff=a198_0x4715;if(_0x545b1c)return _0x545b1c[_0x53a9ff('0x2c')]()['then'](function(){const _0x4dc5bc=_0x53a9ff;_0x59b1b6[_0x4dc5bc('0xb')](0xcc)[_0x4dc5bc('0x46')]();});};}function handleEntityNotFound(_0x2bd802){return function(_0x553523){return!_0x553523&&_0x2bd802['sendStatus'](0x194),_0x553523;};}function handleError(_0x2f117e,_0x864d76){return _0x864d76=_0x864d76||0x1f4,function(_0x56eda8){const _0xc04c18=a198_0x4715;logger[_0xc04c18('0xc8')](_0x56eda8[_0xc04c18('0x6a')]),_0x56eda8['name']&&delete _0x56eda8[_0xc04c18('0x8')],_0x2f117e[_0xc04c18('0xb')](_0x864d76)[_0xc04c18('0x3')](_0x56eda8);};}function getInteractionUsers(_0x143776,_0x8c9956){return new Promise(function(_0x4d0965,_0x5ecb06){const _0x14475e=a198_0x4715;try{_0x8c9956[_0x143776['id']]&&(_0x143776[_0x14475e('0x4')]=_['map'](_0x8c9956[_0x143776['id']],function(_0x1a435f){const _0x324d9d=_0x14475e;return{'id':_0x1a435f['id'],'fullname':_0x1a435f[_0x324d9d('0xa2')]};}));}catch(_0x4f0d0b){_0x5ecb06(_0x4f0d0b);}_0x4d0965(_0x143776);});}function getInteractionTags(_0x1bbe4b,_0x119247){return new Promise(function(_0x20756d,_0x40242e){const _0x101f86=a198_0x4715;try{_0x1bbe4b[_0x101f86('0xd')]&&(_0x1bbe4b['Tags']=[],_0x1bbe4b[_0x101f86('0xd')][_0x101f86('0x24')](',')[_0x101f86('0x75')](function(_0x249522){const _0x2465e0=_0x101f86;_0x1bbe4b[_0x2465e0('0x23')][_0x2465e0('0x79')](_0x119247[_0x249522]);})),delete _0x1bbe4b['TagIds'];}catch(_0x232f5a){_0x40242e(_0x232f5a);}_0x20756d(_0x1bbe4b);});}function updateFaxInteraction(_0xe5a66a,_0x5a7c33,_0x1e1a4b){return new Promise(function(_0x577f97,_0x4f9ea3){const _0x575b96=a198_0x4715;return getInteractionUsers(_0xe5a66a,_0x1e1a4b)['then'](function(_0x3fdba7){return getInteractionTags(_0x3fdba7,_0x5a7c33);})['then'](function(_0x10206c){_0x577f97(_0x10206c);})[_0x575b96('0x20')](function(_0x5cdb7d){_0x4f9ea3(_0x5cdb7d);});});}exports[_0x1fcc06('0x48')]=function(_0x155390,_0x5984cd){const _0x2eb36b=_0x1fcc06,_0x584c3f={},_0x262e60={},_0x1c6f7d={'count':0x0,'rows':[]},_0x736e97=_[_0x2eb36b('0xa1')](db[_0x2eb36b('0xc2')][_0x2eb36b('0x6')],function(_0x426e40){const _0xe6b4ce=_0x2eb36b;return{'name':_0x426e40['fieldName'],'type':_0x426e40['type'][_0xe6b4ce('0x8e')]};});_0x262e60[_0x2eb36b('0x7')]=_[_0x2eb36b('0xa1')](_0x736e97,'name'),_0x262e60[_0x2eb36b('0x78')]=_['keys'](_0x155390['query']),_0x262e60[_0x2eb36b('0xb1')]=_[_0x2eb36b('0x21')](_0x262e60[_0x2eb36b('0x7')],_0x262e60['query']),_0x584c3f['attributes']=_[_0x2eb36b('0x21')](_0x262e60[_0x2eb36b('0x7')],qs['fields'](_0x155390[_0x2eb36b('0x78')][_0x2eb36b('0x2')])),_0x584c3f[_0x2eb36b('0xc9')]=_0x584c3f[_0x2eb36b('0xc9')]['length']?_0x584c3f['attributes']:_0x262e60['model'];typeof _0x155390[_0x2eb36b('0x78')]['nolimit']===_0x2eb36b('0x3b')&&(_0x584c3f[_0x2eb36b('0x71')]=qs[_0x2eb36b('0x71')](_0x155390[_0x2eb36b('0x78')][_0x2eb36b('0x71')]),_0x584c3f['offset']=qs[_0x2eb36b('0x52')](_0x155390[_0x2eb36b('0x78')][_0x2eb36b('0x52')]));_0x584c3f['order']=qs[_0x2eb36b('0x29')](_0x155390[_0x2eb36b('0x78')][_0x2eb36b('0x29')]),_0x584c3f['where']=qs[_0x2eb36b('0xb1')](_[_0x2eb36b('0x14')](_0x155390[_0x2eb36b('0x78')],_0x262e60[_0x2eb36b('0xb1')]),_0x736e97);let _0x165810=[];const _0x53ee61=squel[_0x2eb36b('0x67')]()[_0x2eb36b('0xa0')]('id')[_0x2eb36b('0xa0')]('name')[_0x2eb36b('0xa0')](_0x2eb36b('0xb9'))[_0x2eb36b('0x74')]('tools_tags'),_0x1eed86=squel[_0x2eb36b('0x67')]()[_0x2eb36b('0xa0')](_0x2eb36b('0x41'))[_0x2eb36b('0xa0')](_0x2eb36b('0x85'))[_0x2eb36b('0xa0')](_0x2eb36b('0x1e'))[_0x2eb36b('0x74')](_0x2eb36b('0x9b'),'ui')[_0x2eb36b('0x70')](_0x2eb36b('0x3d'),'u',_0x2eb36b('0xc5')),_0x3d205d=squel[_0x2eb36b('0x67')]()[_0x2eb36b('0x74')](_0x2eb36b('0x80'),'i')[_0x2eb36b('0x70')](_0x2eb36b('0x27'),'c',_0x2eb36b('0x7d'))[_0x2eb36b('0x70')](_0x2eb36b('0x3d'),'o','o.id\x20=\x20i.UserId')[_0x2eb36b('0x70')](_0x2eb36b('0x7a'),'a',_0x2eb36b('0x4e'))['left_join'](_0x2eb36b('0xf'),'me',_0x2eb36b('0x8f'))[_0x2eb36b('0x70')](_0x2eb36b('0xab'),'it',_0x2eb36b('0x17'))[_0x2eb36b('0x70')](_0x2eb36b('0x26'),'t',_0x2eb36b('0x37')),_0x10697f=squel[_0x2eb36b('0x2a')]();let _0x35ca57=[];const _0x4905a4=squel[_0x2eb36b('0x2a')]();let _0x36c978;if(_0x155390['query'][_0x2eb36b('0xb5')]){_0x36c978=as[_0x2eb36b('0x61')](_0x155390[_0x2eb36b('0x78')][_0x2eb36b('0xb5')]);const _0x2ba6e7=_0x36c978['sqlOperator'];for(let _0x54b35b=0x0;_0x54b35b<_0x36c978['conditions'][_0x2eb36b('0x9e')];_0x54b35b++){const _0x200220=_0x36c978['conditions'][_0x54b35b],_0x1009d3='i';let _0x43218e,_0x364a1c=_[_0x2eb36b('0x22')](_0x736e97,[_0x2eb36b('0x8'),_0x200220['field']]);if(!_0x364a1c)switch(_0x200220[_0x2eb36b('0xa0')]){case _0x2eb36b('0x19'):_0x200220['value']==0x1?_0x3d205d[_0x2eb36b('0x34')]('`'+_0x200220[_0x2eb36b('0xa0')]+'`\x20=\x200'):_0x3d205d[_0x2eb36b('0x34')]('`'+_0x200220[_0x2eb36b('0xa0')]+_0x2eb36b('0xa9'));break;case'Contact':if(_0x200220[_0x2eb36b('0x9c')]===_0x2eb36b('0x65')){if(_0x200220[_0x2eb36b('0x3c')][_0x2eb36b('0x24')]('\x20')['length']>0x1)_0x10697f[_0x2ba6e7](_0x2eb36b('0x9f'),qs[_0x2eb36b('0x38')](_0x200220[_0x2eb36b('0x3c')]),null);else{const _0x4c3f13='%'+_0x200220[_0x2eb36b('0x3c')]+'%';_0x10697f[_0x2ba6e7](_0x2eb36b('0x15'),_0x4c3f13,_0x4c3f13,_0x4c3f13);}}else _0x364a1c=_[_0x2eb36b('0x22')](_0x736e97,[_0x2eb36b('0x8'),_0x2eb36b('0x81')]),_0x200220['field']=_0x2eb36b('0x81'),_0x43218e=as[_0x2eb36b('0xbd')](_0x1009d3,_0x364a1c[_0x2eb36b('0x45')],_0x200220),_0x10697f[_0x2ba6e7](_0x43218e[_0x2eb36b('0x89')],_0x43218e['value'][_0x2eb36b('0x4f')],_0x43218e[_0x2eb36b('0x3c')][_0x2eb36b('0x46')]);break;case _0x2eb36b('0xbb'):{const _0x3580f8=_0x200220[_0x2eb36b('0x3c')][_0x2eb36b('0x24')](',')[_0x2eb36b('0xa1')](function(_0x221988){return Number(_0x221988);});_0x3580f8[_0x2eb36b('0x75')](function(_0x1c3e66){_0x4905a4['or']('CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','%,'+_0x1c3e66+',%');}),_0x35ca57=_[_0x2eb36b('0x51')](_0x35ca57,_0x3580f8);}break;case _0x2eb36b('0xc1'):_0x200220[_0x2eb36b('0x9c')]===_0x2eb36b('0x65')?_0x10697f[_0x2ba6e7](_0x2eb36b('0x8d'),'%'+_0x200220[_0x2eb36b('0x3c')]+'%',null):(_0x364a1c=_[_0x2eb36b('0x22')](_0x736e97,['name',_0x2eb36b('0x1b')]),_0x200220[_0x2eb36b('0xa0')]=_0x2eb36b('0x1b'),_0x43218e=as[_0x2eb36b('0xbd')](_0x1009d3,_0x364a1c[_0x2eb36b('0x45')],_0x200220),_0x10697f[_0x2ba6e7](_0x43218e[_0x2eb36b('0x89')],_0x43218e[_0x2eb36b('0x3c')][_0x2eb36b('0x4f')],_0x43218e[_0x2eb36b('0x3c')]['end']));break;case _0x2eb36b('0x8b'):_0x43218e=as[_0x2eb36b('0xbd')]('me',null,_0x200220),_0x10697f[_0x2ba6e7](_0x43218e[_0x2eb36b('0x89')],_0x43218e[_0x2eb36b('0x3c')]['start'],_0x43218e[_0x2eb36b('0x3c')][_0x2eb36b('0x46')]);break;}else _0x43218e=as[_0x2eb36b('0xbd')](_0x1009d3,_0x364a1c[_0x2eb36b('0x45')],_0x200220),_0x10697f[_0x2ba6e7](_0x43218e[_0x2eb36b('0x89')],_0x43218e['value'][_0x2eb36b('0x4f')],_0x43218e['value']['end']);}}else{const _0x426251=_(_0x155390[_0x2eb36b('0x78')])[_0x2eb36b('0xb8')]()[_0x2eb36b('0xa1')](function(_0x380eeb){const _0x3ccec1=_0x2eb36b;return _[_0x3ccec1('0x73')](_0x736e97,[_0x3ccec1('0x8'),_0x380eeb])?_0x380eeb:undefined;})[_0x2eb36b('0x33')]()[_0x2eb36b('0x3c')]();!_['isEmpty'](_0x426251)&&_0x426251[_0x2eb36b('0x75')](function(_0x4eec09){const _0x464fd0=_0x2eb36b;if(_0x4eec09===_0x464fd0('0xb3'))_0x3d205d[_0x464fd0('0x25')](_0x464fd0('0x4c'),[][_0x464fd0('0x58')](_0x155390[_0x464fd0('0x78')][_0x4eec09]));else{if(_0x4eec09===_0x464fd0('0xae')){const _0x4e94f4=JSON[_0x464fd0('0x96')](_0x155390[_0x464fd0('0x78')][_0x4eec09])[_0x464fd0('0x86')],_0x5aac21=JSON[_0x464fd0('0x96')](_0x155390[_0x464fd0('0x78')][_0x4eec09])[_0x464fd0('0x2b')];_0x3d205d[_0x464fd0('0x25')](_0x464fd0('0x5f'),_0x4e94f4,_0x5aac21);}else _0x155390['query'][_0x4eec09]===_0x464fd0('0x1c')?_0x3d205d['where']('i.'+_0x4eec09+_0x464fd0('0x94')):_0x3d205d[_0x464fd0('0x25')]('i.'+_0x4eec09+_0x464fd0('0xb0'),_0x155390['query'][_0x4eec09]);}});_0x155390['query'][_0x2eb36b('0xaa')]&&(_0x155390[_0x2eb36b('0x78')][_0x2eb36b('0xaa')]==0x1?_0x3d205d[_0x2eb36b('0x34')](_0x2eb36b('0xca')):_0x3d205d[_0x2eb36b('0x34')](_0x2eb36b('0x64')));_0x155390['query'][_0x2eb36b('0xa')]&&(_0x35ca57=_['isArray'](_0x155390['query']['tag'])?_0x155390[_0x2eb36b('0x78')][_0x2eb36b('0xa')]:new Array(_0x155390[_0x2eb36b('0x78')][_0x2eb36b('0xa')]),_0x35ca57[_0x2eb36b('0x75')](function(_0x4da5ce){const _0x258bc3=_0x2eb36b;_0x4905a4['or'](_0x258bc3('0x28'),'%,'+_0x4da5ce+',%');}));if(_0x155390[_0x2eb36b('0x78')]['filter']){const _0x557987=_0x155390['query'][_0x2eb36b('0x5e')]['replace']('\x5c','\x5c\x5c')[_0x2eb36b('0x93')]('\x27\x27',_0x2eb36b('0x99'));qs[_0x2eb36b('0x97')](_0x557987)&&_0x10697f['or'](_0x2eb36b('0x50'),_0x557987+'%')['or'](_0x2eb36b('0xb4'),_0x557987+'%'),_0x10697f['or'](_0x2eb36b('0x44'),_0x557987+'%');}}_0x3d205d['where'](_0x10697f),_0x3d205d[_0x2eb36b('0x88')](_0x2eb36b('0xc7'));let _0x1d3b03={'type':db[_0x2eb36b('0x3a')][_0x2eb36b('0x18')][_0x2eb36b('0x32')],'raw':!![]};const _0xe25745=_0x3d205d['clone']();_0xe25745['field']('i.id'),_0xe25745['field'](_0x2eb36b('0xa6'),_0x2eb36b('0x19')),_0x584c3f[_0x2eb36b('0x91')]&&_0x584c3f[_0x2eb36b('0x91')][_0x2eb36b('0x75')](function(_0x4c4a49){const _0x18659b=_0x2eb36b;_0x3d205d[_0x18659b('0x91')]('i.'+_0x4c4a49[0x0],_0x4c4a49[0x1]==='DESC'?![]:!![]);}),!_[_0x2eb36b('0xc0')](_0x35ca57)&&(_0x3d205d[_0x2eb36b('0x34')](_0x4905a4),_0xe25745[_0x2eb36b('0x25')]('t.id\x20IN\x20?',_0x35ca57)),Promise[_0x2eb36b('0xb7')]()[_0x2eb36b('0x47')](function(){const _0x3ecbaf=_0x2eb36b;if(!_0x36c978){if(_0x155390['query']['FaxAccountId']||_0x155390[_0x3ecbaf('0x78')][_0x3ecbaf('0x8c')])return;_0xe25745[_0x3ecbaf('0x25')](_0x3ecbaf('0xc')),_0x3d205d[_0x3ecbaf('0x25')](_0x3ecbaf('0xc'));return;}return _0x155390[_0x3ecbaf('0x60')][_0x3ecbaf('0x10')]({'attributes':['id'],'raw':!![]})[_0x3ecbaf('0x47')](function(_0x24eb6a){const _0x49df17=_0x3ecbaf;_[_0x49df17('0xc0')](_0x24eb6a)?(_0xe25745['where']('i.FaxAccountId\x20IS\x20NULL'),_0x3d205d[_0x49df17('0x25')](_0x49df17('0x12'))):(_0xe25745[_0x49df17('0x25')](_0x49df17('0x4c'),_[_0x49df17('0xa1')](_0x24eb6a,'id')),_0x3d205d['where'](_0x49df17('0x4c'),_[_0x49df17('0xa1')](_0x24eb6a,'id')));});})[_0x2eb36b('0x47')](function(){const _0x191858=_0x2eb36b;db['sequelize'][_0x191858('0x78')](_0xe25745['toString'](),_0x1d3b03)[_0x191858('0x47')](function(_0x1b6829){const _0x1bb6a=_0x191858;_0x1c6f7d[_0x1bb6a('0xad')]=_0x1b6829[_0x1bb6a('0x9e')];if(_0x1c6f7d[_0x1bb6a('0xad')]===0x0)return[];return db[_0x1bb6a('0xa4')]['query'](_0x53ee61[_0x1bb6a('0x2f')](),_0x1d3b03)[_0x1bb6a('0x47')](function(_0x506c5d){const _0x2628cd=_0x1bb6a;_0x165810=_[_0x2628cd('0x7b')](_0x506c5d,'id'),_0x1d3b03=_[_0x2628cd('0x92')](_0x1d3b03,{'model':db[_0x2628cd('0xc2')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x155390[_0x2628cd('0x78')]['fields']?_0x584c3f[_0x2628cd('0xc9')][_0x2628cd('0x75')](function(_0x5bfabb){_0x3d205d['field']('i.'+_0x5bfabb);}):(_0x3d205d[_0x2628cd('0xa0')](_0x2628cd('0xa6'),_0x2628cd('0x19')),_0x3d205d[_0x2628cd('0xa0')]('a.key','Account.key'),_0x3d205d['field'](_0x2628cd('0x9a'),_0x2628cd('0x30')),_0x3d205d[_0x2628cd('0xa0')](_0x2628cd('0xa7')),_0x3d205d[_0x2628cd('0xa0')](_0x2628cd('0x98'),_0x2628cd('0x4b')),_0x3d205d[_0x2628cd('0xa0')]('c.lastName','Contact.lastName'),_0x3d205d[_0x2628cd('0xa0')](_0x2628cd('0x5c'),_0x2628cd('0xc4')),_0x3d205d[_0x2628cd('0xa0')](_0x2628cd('0x36'),_0x2628cd('0x42')),_0x3d205d['field']('c.mobile',_0x2628cd('0xbc')),_0x3d205d[_0x2628cd('0xa0')](_0x2628cd('0x57'),_0x2628cd('0xc3')),_0x3d205d['field'](_0x2628cd('0x9'),'Owner.fullname'),_0x3d205d[_0x2628cd('0xa0')](_0x2628cd('0x6e'),_0x2628cd('0x16')),_0x3d205d[_0x2628cd('0xa0')](_0x2628cd('0x59'),_0x2628cd('0xd')));if(_0x584c3f[_0x2628cd('0x71')])_0x3d205d[_0x2628cd('0x71')](_0x584c3f['limit']);if(_0x584c3f['offset'])_0x3d205d[_0x2628cd('0x52')](_0x584c3f[_0x2628cd('0x52')]);return db[_0x2628cd('0xa4')][_0x2628cd('0x78')](_0x3d205d[_0x2628cd('0x2f')](),_0x1d3b03);})[_0x1bb6a('0x47')](function(_0x235b6f){const _0x22b8cd=_0x1bb6a;return _0x1eed86[_0x22b8cd('0x25')]('ui.FaxInteractionId\x20IN\x20?',_[_0x22b8cd('0xa1')](_0x235b6f,'id')),db['sequelize'][_0x22b8cd('0x78')](_0x1eed86['toString'](),_0x1d3b03)['then'](function(_0x5b977a){const _0x27df9a=_0x22b8cd,_0x1635a0=_[_0x27df9a('0xba')](_0x5b977a,_0x27df9a('0x4d')),_0x35795d=[];return _0x235b6f[_0x27df9a('0x75')](function(_0x4d747a){const _0x2c55bf=_0x27df9a;_0x35795d[_0x2c55bf('0x79')](updateFaxInteraction(_0x4d747a,_0x165810,_0x1635a0));}),Promise['all'](_0x35795d);});});})['then'](function(_0x58e7fb){const _0x4f8717=_0x191858;return _0x1c6f7d[_0x4f8717('0x1a')]=_0x58e7fb,_0x1c6f7d;})['then'](respondWithFilteredResult(_0x5984cd,_0x584c3f));})['catch'](handleError(_0x5984cd,null));},exports[_0x1fcc06('0x3f')]=function(_0x550727,_0x117f0b){const _0x42d79f=_0x1fcc06;let _0x891d7e={'raw':![],'where':{'id':_0x550727[_0x42d79f('0x72')]['id']}};const _0xea461e={};return _0xea461e['model']=_[_0x42d79f('0xb8')](db[_0x42d79f('0xc2')][_0x42d79f('0x6')]),_0xea461e[_0x42d79f('0x78')]=_[_0x42d79f('0xb8')](_0x550727['query']),_0xea461e[_0x42d79f('0xb1')]=_[_0x42d79f('0x21')](_0xea461e[_0x42d79f('0x7')],_0xea461e[_0x42d79f('0x78')]),_0x891d7e['attributes']=_[_0x42d79f('0x21')](_0xea461e[_0x42d79f('0x7')],qs['fields'](_0x550727[_0x42d79f('0x78')][_0x42d79f('0x2')])),_0x891d7e[_0x42d79f('0xc9')]=_0x891d7e[_0x42d79f('0xc9')][_0x42d79f('0x9e')]?_0x891d7e[_0x42d79f('0xc9')]:_0xea461e['model'],_0x550727[_0x42d79f('0x78')]['includeAll']&&(_0x891d7e[_0x42d79f('0x3e')]=[{'all':!![]}]),_0x891d7e=_[_0x42d79f('0x92')]({},_0x891d7e,_0x550727['options']),db['FaxInteraction'][_0x42d79f('0x4a')](_0x891d7e)[_0x42d79f('0x47')](handleEntityNotFound(_0x117f0b,null))[_0x42d79f('0x47')](respondWithResult(_0x117f0b,null))['catch'](handleError(_0x117f0b,null));},exports[_0x1fcc06('0x76')]=function(_0x102aac,_0x11127b){const _0x4d3b2e=_0x1fcc06;return db[_0x4d3b2e('0xc2')]['create'](_0x102aac[_0x4d3b2e('0x8b')],{})[_0x4d3b2e('0x47')](respondWithResult(_0x11127b,0xc9))[_0x4d3b2e('0x20')](handleError(_0x11127b,null));},exports['update']=function(_0x56596d,_0x39b5ae){const _0x4a1f32=_0x1fcc06;return _0x56596d[_0x4a1f32('0x8b')]['id']&&delete _0x56596d[_0x4a1f32('0x8b')]['id'],db[_0x4a1f32('0xc2')][_0x4a1f32('0x4a')]({'where':{'id':_0x56596d[_0x4a1f32('0x72')]['id']}})[_0x4a1f32('0x47')](handleEntityNotFound(_0x39b5ae,null))[_0x4a1f32('0x47')](saveUpdates(_0x56596d[_0x4a1f32('0x8b')],null))[_0x4a1f32('0x47')](respondWithResult(_0x39b5ae,null))[_0x4a1f32('0x20')](handleError(_0x39b5ae,null));},exports['destroy']=function(_0x4e04fc,_0xc9a912){const _0xd0fa33=_0x1fcc06;return db['FaxInteraction'][_0xd0fa33('0x4a')]({'where':{'id':_0x4e04fc[_0xd0fa33('0x72')]['id']}})[_0xd0fa33('0x47')](handleEntityNotFound(_0xc9a912,null))[_0xd0fa33('0x47')](removeEntity(_0xc9a912,null))['catch'](handleError(_0xc9a912,null));},exports[_0x1fcc06('0x39')]=function(_0x5c247f,_0xaf588){const _0x40794b=_0x1fcc06;return db[_0x40794b('0xc2')]['describe']()[_0x40794b('0x47')](respondWithResult(_0xaf588,null))['catch'](handleError(_0xaf588,null));},exports[_0x1fcc06('0xb6')]=function(_0x4e36ea,_0x526c73){const _0x570cf4=_0x1fcc06;return db[_0x570cf4('0x5d')][_0x570cf4('0x4a')]({'where':{'id':_0x4e36ea[_0x570cf4('0x72')]['id']}})[_0x570cf4('0x47')](function(_0x48d0e2){const _0x4caf3c=_0x570cf4;if(_0x48d0e2)return _0x48d0e2[_0x4caf3c('0xb6')](_0x4e36ea[_0x4caf3c('0x8b')][_0x4caf3c('0x68')],{'through':_[_0x4caf3c('0xbf')](_0x4e36ea[_0x4caf3c('0x8b')],[_0x4caf3c('0x68'),'id'])});})[_0x570cf4('0x47')](respondWithResult(_0x526c73,null))[_0x570cf4('0x20')](handleError(_0x526c73,null));},exports[_0x1fcc06('0x11')]=function(_0x1d5300,_0x1c6cd2){const _0x4e00ef=_0x1fcc06;let _0x3aa133={'raw':![],'where':{}};const _0x355c34={},_0x5b821c={'count':0x0,'rows':[]};return db[_0x4e00ef('0xc2')]['findOne']({'where':{'id':_0x1d5300[_0x4e00ef('0x72')]['id']}})['then'](handleEntityNotFound(_0x1c6cd2,null))[_0x4e00ef('0x47')](function(_0x1e9cfa){const _0x523600=_0x4e00ef;if(_0x1e9cfa){_0x355c34[_0x523600('0x7')]=_['keys'](db[_0x523600('0x5d')][_0x523600('0x6')]),_0x355c34[_0x523600('0x78')]=_[_0x523600('0xb8')](_0x1d5300['query']),_0x355c34[_0x523600('0xb1')]=_[_0x523600('0x21')](_0x355c34['model'],_0x355c34['query']),_0x3aa133['attributes']=_[_0x523600('0x21')](_0x355c34[_0x523600('0x7')],qs[_0x523600('0x2')](_0x1d5300[_0x523600('0x78')][_0x523600('0x2')])),_0x3aa133['attributes']=_0x3aa133[_0x523600('0xc9')][_0x523600('0x9e')]?_0x3aa133[_0x523600('0xc9')]:_0x355c34[_0x523600('0x7')];typeof _0x1d5300[_0x523600('0x78')][_0x523600('0x62')]===_0x523600('0x3b')&&(_0x3aa133['limit']=qs[_0x523600('0x71')](_0x1d5300[_0x523600('0x78')][_0x523600('0x71')]),_0x3aa133[_0x523600('0x52')]=qs['offset'](_0x1d5300[_0x523600('0x78')][_0x523600('0x52')]));_0x3aa133[_0x523600('0x91')]=qs[_0x523600('0x29')](_0x1d5300[_0x523600('0x78')]['sort']),_0x3aa133['where']=qs['filters'](_[_0x523600('0x14')](_0x1d5300[_0x523600('0x78')],_0x355c34[_0x523600('0xb1')])),_0x3aa133[_0x523600('0x25')]['FaxInteractionId']=_0x1e9cfa['id'];_0x1d5300[_0x523600('0x78')][_0x523600('0x5e')]&&(_0x3aa133[_0x523600('0x25')]=_[_0x523600('0x92')](_0x3aa133[_0x523600('0x25')],{[Op['or']]:_['map'](_0x3aa133['attributes'],function(_0x54f4ac){const _0x19b5e3=_0x523600,_0x28f846={};return _0x28f846[_0x54f4ac]={[Op[_0x19b5e3('0x77')]]:'%'+_0x1d5300[_0x19b5e3('0x78')]['filter']+'%'},_0x28f846;})}));if(_0x1d5300[_0x523600('0x78')][_0x523600('0x86')]){const _0xca83ca=_0x1d5300[_0x523600('0x78')][_0x523600('0x86')][_0x523600('0x24')](','),_0x12c2b2={};_0x12c2b2[_0xca83ca[0x0]]={[Op[_0x523600('0x95')]]:moment(_0xca83ca[0x1])[_0x523600('0x49')](_0x523600('0x5b'))},_0x3aa133[_0x523600('0x25')]=_[_0x523600('0x92')](_0x3aa133[_0x523600('0x25')],_0x12c2b2);}return _0x3aa133=_['merge']({},_0x3aa133,_0x1d5300[_0x523600('0x6b')]),db[_0x523600('0x5d')][_0x523600('0xad')]({'where':_0x3aa133[_0x523600('0x25')]})[_0x523600('0x47')](function(_0x560f15){const _0x1f18cf=_0x523600;return _0x5b821c['count']=_0x560f15,_0x1d5300[_0x1f18cf('0x78')][_0x1f18cf('0x90')]&&(_0x3aa133[_0x1f18cf('0x3e')]=[{'all':!![]}]),db[_0x1f18cf('0x5d')][_0x1f18cf('0xa5')](_0x3aa133);})[_0x523600('0x47')](function(_0x332156){const _0x123a2d=_0x523600;return _0x5b821c[_0x123a2d('0x1a')]=_0x332156,_0x5b821c;});}})[_0x4e00ef('0x47')](respondWithFilteredResult(_0x1c6cd2,_0x3aa133))['catch'](handleError(_0x1c6cd2,null));},exports[_0x1fcc06('0x6f')]=function(_0x196977,_0x499dd6){const _0x1eb980=_0x1fcc06;return db[_0x1eb980('0xc2')][_0x1eb980('0x4a')]({'where':{'id':_0x196977[_0x1eb980('0x72')]['id']}})['then'](function(_0x54d0e1){const _0x387b0b=_0x1eb980;if(_0x54d0e1)return _0x54d0e1[_0x387b0b('0x31')](_0x196977['body'][_0x387b0b('0x68')],{'through':_['omit'](_0x196977[_0x387b0b('0x8b')],[_0x387b0b('0x68'),'id'])})[_0x387b0b('0x47')](function(){const _0x4cca34=_0x387b0b;return db[_0x4cca34('0xbb')][_0x4cca34('0xa5')]({'attributes':['id',_0x4cca34('0x8'),'color'],'where':{'id':_0x196977[_0x4cca34('0x8b')][_0x4cca34('0x68')]}});})[_0x387b0b('0x47')](function(_0x4f1d8c){const _0x332476=_0x387b0b;return socket[_0x332476('0x1f')](_0x332476('0x9d'),{'id':Number(_0x196977[_0x332476('0x72')]['id']),'tags':_0x4f1d8c||[]}),{'id':Number(_0x196977['params']['id']),'tags':_0x4f1d8c||[]};});})[_0x1eb980('0x47')](respondWithResult(_0x499dd6,null))[_0x1eb980('0x20')](handleError(_0x499dd6,null));},exports[_0x1fcc06('0x56')]=function(_0x351eaa,_0xa7e272){const _0x56a302=_0x1fcc06;return db[_0x56a302('0xc2')][_0x56a302('0x4a')]({'where':{'id':_0x351eaa['params']['id']}})[_0x56a302('0x47')](handleEntityNotFound(_0xa7e272,null))['then'](function(_0x5b6e84){const _0x1b6336=_0x56a302;if(_0x5b6e84)return _0x5b6e84[_0x1b6336('0x56')](_0x351eaa[_0x1b6336('0x78')][_0x1b6336('0x68')]);})[_0x56a302('0x47')](respondWithStatusCode(_0xa7e272,null))[_0x56a302('0x20')](handleError(_0xa7e272,null));},exports[_0x1fcc06('0x6c')]=function(_0x391166,_0x1694b9){const _0x7eb453=_0x1fcc06,_0x25967e=moment()[_0x7eb453('0x7e')]()[_0x7eb453('0x2f')](),_0x168902=path[_0x7eb453('0x54')](config['root'],_0x7eb453('0xb2'),_0x7eb453('0x84'),'tmp'),_0x4585f6=path['join'](config[_0x7eb453('0x83')],_0x7eb453('0xb2'),_0x7eb453('0x84'),'attachments'),_0x5504cf=path['join'](_0x168902,_0x25967e),_0x2fe453=util[_0x7eb453('0x49')](_0x7eb453('0x1'),_0x391166[_0x7eb453('0x72')]['id'],_0x25967e),_0x433a59=path[_0x7eb453('0x54')](_0x168902,_0x2fe453),_0x353f8c=[];_0x353f8c['push']({'model':db['Attachment'],'as':_0x7eb453('0x63'),'raw':!![]});const _0x16bc8e=[{'model':db['FaxMessage'],'as':_0x7eb453('0x5'),'attributes':['id','body','createdAt'],'include':_0x353f8c}];return db[_0x7eb453('0xc2')][_0x7eb453('0x4a')]({'where':{'id':_0x391166[_0x7eb453('0x72')]['id']},'include':_0x16bc8e})[_0x7eb453('0x47')](handleEntityNotFound(_0x1694b9,null))[_0x7eb453('0x47')](function(_0x3c0b12){const _0x474b11=_0x7eb453;if(_0x3c0b12&&_0x3c0b12[_0x474b11('0x5')]){const _0x3fb3aa=_0x3c0b12[_0x474b11('0xac')]({'plain':!![]});fs[_0x474b11('0x82')](_0x5504cf);for(let _0x19d4e4=0x0;_0x19d4e4<_0x3fb3aa[_0x474b11('0x5')][_0x474b11('0x9e')];_0x19d4e4++){const _0x28831e=_0x3fb3aa[_0x474b11('0x5')][_0x19d4e4][_0x474b11('0x63')];if(_0x28831e){const _0x55d41a=path[_0x474b11('0x54')](_0x4585f6,_0x28831e[_0x474b11('0x87')]);fs['existsSync'](_0x55d41a)&&fs[_0x474b11('0x35')](_0x55d41a)[_0x474b11('0x69')](fs['createWriteStream'](path[_0x474b11('0x54')](_0x5504cf,_0x28831e[_0x474b11('0x87')])));}}return Promise[_0x474b11('0xb7')]()['then'](function(){const _0x2c9852=_0x474b11;return new Promise(function(_0x500540,_0x1d1941){zipdir(_0x5504cf,{'saveTo':_0x433a59},function(_0x1557fc,_0x8a764a){if(_0x1557fc)return _0x1d1941(_0x1557fc);return _0x500540(_0x8a764a);});})[_0x2c9852('0x47')](function(){return new Promise(function(_0x5b5965,_0x477034){rimraf(_0x5504cf,function(_0xac45c6){if(_0xac45c6)_0x477034(_0xac45c6);return _0x5b5965();});});})['then'](function(){const _0x36b085=_0x2c9852;return _0x1694b9[_0x36b085('0x6c')](_0x433a59,_0x2fe453,function(_0x56b0ac){const _0x5b62f4=_0x36b085;_0x56b0ac?console[_0x5b62f4('0x1d')](_0x5b62f4('0xe'),_0x56b0ac):fs[_0x5b62f4('0xa8')](_0x433a59);});});});}else return _0x1694b9[_0x474b11('0xc6')](0xc8);})[_0x7eb453('0x20')](handleError(_0x1694b9,null));}; \ No newline at end of file +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 diff --git a/server/api/faxInteraction/faxInteraction.events.js b/server/api/faxInteraction/faxInteraction.events.js index fae48e6..b7a4d2f 100644 --- a/server/api/faxInteraction/faxInteraction.events.js +++ b/server/api/faxInteraction/faxInteraction.events.js @@ -1 +1 @@ -const a199_0x15bd=['update','then','save','setDataValue','FaxInteraction','events','catch','FaxMessage','findAll','exports','../../mysqldb','remove','emit','undefined','length','Users','map','unreadMessages'];(function(_0x20894e,_0x15bd8c){const _0x14fb5b=function(_0x12d2b8){while(--_0x12d2b8){_0x20894e['push'](_0x20894e['shift']());}};_0x14fb5b(++_0x15bd8c);}(a199_0x15bd,0xbb));const a199_0x14fb=function(_0x20894e,_0x15bd8c){_0x20894e=_0x20894e-0x0;let _0x14fb5b=a199_0x15bd[_0x20894e];return _0x14fb5b;};const _0x3a744c=a199_0x14fb;'use strict';const EventEmitter=require(_0x3a744c('0x10')),FaxInteraction=require(_0x3a744c('0x3'))['db'][_0x3a744c('0xf')],FaxMessage=require(_0x3a744c('0x3'))['db'][_0x3a744c('0x0')],FaxInteractionEvents=new EventEmitter();FaxInteractionEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x3a744c('0xd'),'afterUpdate':_0x3a744c('0xb'),'afterDestroy':_0x3a744c('0x4')};function emitEvent(_0x12d2b8){return function(_0x258846){const _0x4d5797=a199_0x14fb;_0x258846['getUsers']({'attributes':['id'],'raw':!![]})[_0x4d5797('0xc')](function(_0x431558){const _0x1e4096=_0x4d5797;return _0x258846[_0x1e4096('0xe')](_0x1e4096('0x8'),_0x431558[_0x1e4096('0x9')](function(_0x5acf68){return{'id':_0x5acf68['id']};})),FaxMessage[_0x1e4096('0x1')]({'where':{'FaxInteractionId':_0x258846['id'],'direction':'in','read':![]},'raw':!![]});})['then'](function(_0x4f59f7){const _0x48527a=_0x4d5797;_0x258846[_0x48527a('0xe')](_0x48527a('0xa'),_0x4f59f7[_0x48527a('0x7')]),FaxInteractionEvents['emit'](_0x12d2b8+':'+_0x258846['id'],_0x258846),FaxInteractionEvents[_0x48527a('0x5')](_0x12d2b8,_0x258846);})[_0x4d5797('0x11')](()=>{});};}for(const e in events){if(typeof events[e]!==_0x3a744c('0x6')){const event=events[e];FaxInteraction['addHook'](e,emitEvent(event));}}module[_0x3a744c('0x2')]=FaxInteractionEvents; \ No newline at end of file +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 diff --git a/server/api/faxInteraction/faxInteraction.model.js b/server/api/faxInteraction/faxInteraction.model.js index 86533f6..f3cdb89 100644 --- a/server/api/faxInteraction/faxInteraction.model.js +++ b/server/api/faxInteraction/faxInteraction.model.js @@ -1 +1 @@ -const a200_0x1482=['./faxInteraction.attributes','fax_interactions','closed','exports','define','format','closedAt','moment','YYYY-MM-DD\x20HH:mm:ss'];(function(_0x125bd4,_0x148228){const _0x3478ff=function(_0x39dfdd){while(--_0x39dfdd){_0x125bd4['push'](_0x125bd4['shift']());}};_0x3478ff(++_0x148228);}(a200_0x1482,0x156));const a200_0x3478=function(_0x125bd4,_0x148228){_0x125bd4=_0x125bd4-0x0;let _0x3478ff=a200_0x1482[_0x125bd4];return _0x3478ff;};const _0x317a77=a200_0x3478;'use strict';const moment=require(_0x317a77('0x7')),attributes=require(_0x317a77('0x0'));module[_0x317a77('0x3')]=function(_0x39dfdd){const _0x355772=_0x317a77,_0x58455c=_0x39dfdd[_0x355772('0x4')]('FaxInteraction',attributes,{'tableName':_0x355772('0x1'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x2ce6f2){const _0x4394d7=_0x355772;_0x2ce6f2['changed'](_0x4394d7('0x2'))&&(_0x2ce6f2[_0x4394d7('0x6')]=moment()[_0x4394d7('0x5')](_0x4394d7('0x8')));}}});return _0x58455c;}; \ No newline at end of file +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 diff --git a/server/api/faxInteraction/faxInteraction.rpc.js b/server/api/faxInteraction/faxInteraction.rpc.js index 1c93b47..1a7a256 100644 --- a/server/api/faxInteraction/faxInteraction.rpc.js +++ b/server/api/faxInteraction/faxInteraction.rpc.js @@ -1 +1 @@ -const a201_0xff59=['ids','register','then','limit','lodash','./faxInteraction.socket','AddTagsToFaxInteraction','../../rediscache','info','UpdateFaxInteraction','catch','stringify','addTags','findOne','rpc','../../mysqldb','AddTags','debug','FaxInteraction','options','where','message','body','error'];(function(_0xf57c32,_0xff593){const _0x1e20ed=function(_0x48a5b3){while(--_0x48a5b3){_0xf57c32['push'](_0xf57c32['shift']());}};_0x1e20ed(++_0xff593);}(a201_0xff59,0x64));const a201_0x1e20=function(_0xf57c32,_0xff593){_0xf57c32=_0xf57c32-0x0;let _0x1e20ed=a201_0xff59[_0xf57c32];return _0x1e20ed;};const _0x533144=a201_0x1e20;'use strict';const _=require(_0x533144('0x0')),db=require(_0x533144('0xb'))['db'],logger=require('../../config/logger')(_0x533144('0xa')),{getSocket}=require(_0x533144('0x3')),socket=getSocket();require(_0x533144('0x1'))[_0x533144('0x15')](socket),exports[_0x533144('0x5')]=function(_0x48a5b3){const _0x2ddf24=this;return new Promise(function(_0x3b00a9,_0x4f0198){const _0x2fcee1=a201_0x1e20;return db[_0x2fcee1('0xe')]['update'](_0x48a5b3[_0x2fcee1('0x12')],{'raw':_0x48a5b3[_0x2fcee1('0xf')]?_0x48a5b3['options']['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x48a5b3[_0x2fcee1('0xf')]?_0x48a5b3[_0x2fcee1('0xf')][_0x2fcee1('0x10')]||null:null,'attributes':_0x48a5b3[_0x2fcee1('0xf')]?_0x48a5b3[_0x2fcee1('0xf')]['attributes']||null:null,'limit':_0x48a5b3[_0x2fcee1('0xf')]?_0x48a5b3['options'][_0x2fcee1('0x17')]||null:null})[_0x2fcee1('0x16')](function(_0x1b762c){const _0x1958fa=_0x2fcee1;logger[_0x1958fa('0x4')](_0x1958fa('0x5'),_0x48a5b3),logger[_0x1958fa('0xd')](_0x1958fa('0x5'),_0x48a5b3,JSON[_0x1958fa('0x7')](_0x1b762c)),_0x3b00a9(_0x1b762c);})['catch'](function(_0x29d4b6){const _0x5d0c6c=_0x2fcee1;logger[_0x5d0c6c('0x13')]('UpdateFaxInteraction',_0x29d4b6[_0x5d0c6c('0x11')],_0x48a5b3),_0x4f0198(_0x2ddf24[_0x5d0c6c('0x13')](0x1f4,_0x29d4b6[_0x5d0c6c('0x11')]));});});},exports[_0x533144('0x2')]=function(_0x4acc77){const _0x2a19de=this;return new Promise(function(_0x1eb2c9,_0x501865){const _0x32bd7d=a201_0x1e20;return db[_0x32bd7d('0xe')][_0x32bd7d('0x9')]({'where':_0x4acc77[_0x32bd7d('0xf')]?_0x4acc77[_0x32bd7d('0xf')]['where']||null:null})[_0x32bd7d('0x16')](function(_0x3006d5){const _0x4c0ef3=_0x32bd7d;if(_0x3006d5)return _0x3006d5[_0x4c0ef3('0x8')](_0x4acc77['body'][_0x4c0ef3('0x14')],{'through':_['omit'](_0x4acc77[_0x4c0ef3('0x12')],[_0x4c0ef3('0x14'),'id'])});})['then'](function([_0x20648a]){const _0x30056f=_0x32bd7d;logger[_0x30056f('0x4')](_0x30056f('0xc'),_0x4acc77),logger['debug']('AddTags',_0x4acc77,JSON[_0x30056f('0x7')](_0x20648a)),_0x1eb2c9(_0x20648a);})[_0x32bd7d('0x6')](function(_0x5a383e){const _0x48d487=_0x32bd7d;logger[_0x48d487('0x13')](_0x48d487('0xc'),_0x5a383e[_0x48d487('0x11')],_0x4acc77),_0x501865(_0x2a19de[_0x48d487('0x13')](0x1f4,_0x5a383e[_0x48d487('0x11')]));});});}; \ No newline at end of file +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 diff --git a/server/api/faxInteraction/faxInteraction.socket.js b/server/api/faxInteraction/faxInteraction.socket.js index 9dd4613..e0b313f 100644 --- a/server/api/faxInteraction/faxInteraction.socket.js +++ b/server/api/faxInteraction/faxInteraction.socket.js @@ -1 +1 @@ -const a202_0x4fe5=['faxInteraction:','save','register','./faxInteraction.events','remove','length','update'];(function(_0x15a945,_0x4fe59b){const _0x348b2b=function(_0x309e7b){while(--_0x309e7b){_0x15a945['push'](_0x15a945['shift']());}};_0x348b2b(++_0x4fe59b);}(a202_0x4fe5,0x1d0));const a202_0x348b=function(_0x15a945,_0x4fe59b){_0x15a945=_0x15a945-0x0;let _0x348b2b=a202_0x4fe5[_0x15a945];return _0x348b2b;};const _0x54c33b=a202_0x348b;'use strict';const FaxInteractionEvents=require(_0x54c33b('0x1')),events=[_0x54c33b('0x6'),_0x54c33b('0x2'),_0x54c33b('0x4')];function createListener(_0x309e7b,_0x30a56d){return function(_0x12d6f8){_0x30a56d['emit'](_0x309e7b,_0x12d6f8);};}exports[_0x54c33b('0x0')]=function(_0x34e4ff){const _0x5ce0d2=_0x54c33b;for(let _0x370840=0x0,_0x206731=events[_0x5ce0d2('0x3')];_0x370840<_0x206731;_0x370840++){const _0x2f1657=events[_0x370840],_0x41e7f7=createListener(_0x5ce0d2('0x5')+_0x2f1657,_0x34e4ff);FaxInteractionEvents['on'](_0x2f1657,_0x41e7f7);}}; \ No newline at end of file +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 diff --git a/server/api/faxInteraction/index.js b/server/api/faxInteraction/index.js index b56bb1d..0b2d3b8 100644 --- a/server/api/faxInteraction/index.js +++ b/server/api/faxInteraction/index.js @@ -1 +1 @@ -const a203_0x3f19=['../../components/interaction/service','/describe','getMessages','/:id/tags','/:id','/:id/messages','faxinteraction:addtags','delete','Router','post','express','update','tracked','create','isAuthenticated','get','addTags','describe','faxinteraction:update','fax','./faxInteraction.controller','/:id/download'];(function(_0x15ecbd,_0x3f19f1){const _0xb648f9=function(_0x254fbf){while(--_0x254fbf){_0x15ecbd['push'](_0x15ecbd['shift']());}};_0xb648f9(++_0x3f19f1);}(a203_0x3f19,0x1b1));const a203_0xb648=function(_0x15ecbd,_0x3f19f1){_0x15ecbd=_0x15ecbd-0x0;let _0xb648f9=a203_0x3f19[_0x15ecbd];return _0xb648f9;};const _0x225ae1=a203_0xb648;'use strict';const express=require(_0x225ae1('0x11')),router=express[_0x225ae1('0xf')](),auth=require('../../components/auth/service'),interaction=require(_0x225ae1('0x7')),controller=require(_0x225ae1('0x5'));router[_0x225ae1('0x0')]('/',auth['isAuthenticated'](),controller['index']),router[_0x225ae1('0x0')](_0x225ae1('0x8'),auth[_0x225ae1('0x15')](),controller[_0x225ae1('0x2')]),router[_0x225ae1('0x0')](_0x225ae1('0xb'),auth[_0x225ae1('0x15')](),controller['show']),router[_0x225ae1('0x0')](_0x225ae1('0xc'),auth[_0x225ae1('0x15')](),controller[_0x225ae1('0x9')]),router[_0x225ae1('0x0')](_0x225ae1('0x6'),auth[_0x225ae1('0x15')](),controller['download']),router[_0x225ae1('0x10')]('/',auth['isAuthenticated'](),controller[_0x225ae1('0x14')]),router[_0x225ae1('0x10')]('/:id/messages',auth[_0x225ae1('0x15')](),controller['addMessage']),router[_0x225ae1('0x10')](_0x225ae1('0xa'),auth[_0x225ae1('0x15')](),interaction['tracked'](_0x225ae1('0x4'),_0x225ae1('0xd')),controller[_0x225ae1('0x1')]),router['put'](_0x225ae1('0xb'),auth['isAuthenticated'](),interaction[_0x225ae1('0x13')]('fax',_0x225ae1('0x3')),controller[_0x225ae1('0x12')]),router[_0x225ae1('0xe')](_0x225ae1('0xb'),auth[_0x225ae1('0x15')](),interaction[_0x225ae1('0x13')](_0x225ae1('0x4'),'faxinteraction:destroy'),controller['destroy']),router[_0x225ae1('0xe')](_0x225ae1('0xa'),auth['isAuthenticated'](),controller['removeTags']),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/faxMessage/faxMessage.attributes.js b/server/api/faxMessage/faxMessage.attributes.js index 160cae8..ee2adc4 100644 --- a/server/api/faxMessage/faxMessage.attributes.js +++ b/server/api/faxMessage/faxMessage.attributes.js @@ -1 +1 @@ -const a204_0x32c4=['medium','BOOLEAN','exports','sequelize','DATE','out'];(function(_0x3db123,_0x32c4a1){const _0x3b1438=function(_0x1ffe2b){while(--_0x1ffe2b){_0x3db123['push'](_0x3db123['shift']());}};_0x3b1438(++_0x32c4a1);}(a204_0x32c4,0x72));const a204_0x3b14=function(_0x3db123,_0x32c4a1){_0x3db123=_0x3db123-0x0;let _0x3b1438=a204_0x32c4[_0x3db123];return _0x3b1438;};const _0x2e60bf=a204_0x3b14;'use strict';const Sequelize=require(_0x2e60bf('0x3'));module[_0x2e60bf('0x2')]={'body':{'type':Sequelize['TEXT'](_0x2e60bf('0x0')),'allowNull':![]},'read':{'type':Sequelize[_0x2e60bf('0x1')],'defaultValue':![]},'direction':{'type':Sequelize['ENUM']('in',_0x2e60bf('0x5')),'defaultValue':_0x2e60bf('0x5'),'allowNull':![]},'failMessage':{'type':Sequelize['TEXT'],'defaultValue':null},'readAt':{'type':Sequelize[_0x2e60bf('0x4')]}}; \ No newline at end of file +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 diff --git a/server/api/faxMessage/faxMessage.controller.js b/server/api/faxMessage/faxMessage.controller.js index 104b6bd..6ee10eb 100644 --- a/server/api/faxMessage/faxMessage.controller.js +++ b/server/api/faxMessage/faxMessage.controller.js @@ -1 +1 @@ -const a205_0x4220=['filter','api','SendFax','model','intersection','pick','stringify','role','/var/opt/motion2/server/files/attachments/%s','./faxMessage.socket','like','show','download','filters','user','index','ContactId','status','FaxInteraction','acceptmessage','count','rows','keys','catch','agent','order','result','FaxMessage,\x20%s,\x20%s','get','reject','YYYY-MM-DD\x20HH:mm:ss','map','includeAll','accept','fieldName','event','FaxAccountId','params','FaxInteractionId','lodash','FaxMessage','http','body','manual','create','destroy','request','../../config/logger','findOne','json','path','stack','Attachment','readAt','options','format','moment','read1stAt','attachments','error','name','basename','then','[FAXMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','CmContact','../../mysqldb','sort','AttachmentId','util','debug','include','join','limit','where','server','fax-interactions','offset','request\x20sent','jayson/promise','UserId','rejectmessage','../../components/parsers/qs','message','attributes','fax','query','sequelize','fields','end','update','rawAttributes','nolimit','null','RejectMessage','code','undefined','set','type','SIP/%s','Content-Range','merge','info','channel','client','files','EventManager','isNil','interaction'];(function(_0x1d7657,_0x4220f8){const _0x3b3336=function(_0x53de6f){while(--_0x53de6f){_0x1d7657['push'](_0x1d7657['shift']());}};_0x3b3336(++_0x4220f8);}(a205_0x4220,0x1cb));const a205_0x3b33=function(_0x1d7657,_0x4220f8){_0x1d7657=_0x1d7657-0x0;let _0x3b3336=a205_0x4220[_0x1d7657];return _0x3b3336;};const _0x38db8e=a205_0x3b33;'use strict';const moment=require(_0x38db8e('0x1d')),util=require(_0x38db8e('0x29')),path=require(_0x38db8e('0x17')),_=require(_0x38db8e('0xc')),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require(_0x38db8e('0x36')),logger=require(_0x38db8e('0x14'))(_0x38db8e('0x52')),config=require('../../config/environment'),interaction_log=require(_0x38db8e('0x14'))(_0x38db8e('0x30')),db=require(_0x38db8e('0x26'))['db'],{Op}=require(_0x38db8e('0x3b'));require(_0x38db8e('0x5a'))['register'](socket);const jayson=require(_0x38db8e('0x33')),client=jayson[_0x38db8e('0x4c')][_0x38db8e('0xe')]({'port':0x232c}),client9002=jayson[_0x38db8e('0x4c')][_0x38db8e('0xe')]({'port':0x232a});function respondWithRpcPromise(_0x53de6f,_0x38d62d,_0x4e46ca,_0x77fe0a){return new Promise(function(_0x260266,_0x3809b3){const _0x1f184b=a205_0x3b33,_0x186407=_0x77fe0a||client;return _0x186407[_0x1f184b('0x13')](_0x53de6f,_0x4e46ca)[_0x1f184b('0x23')](function(_0x218349){const _0x8efa81=_0x1f184b;logger[_0x8efa81('0x4a')](_0x8efa81('0x0'),_0x38d62d,'request\x20sent'),logger[_0x8efa81('0x2a')]('FaxMessage,\x20%s,\x20%s,\x20%s',_0x38d62d,_0x8efa81('0x32'),JSON['stringify'](_0x218349));if(_0x218349['error']){if(_0x218349[_0x8efa81('0x20')][_0x8efa81('0x43')]===0x1f4)return logger['error'](_0x8efa81('0x0'),_0x38d62d,_0x218349[_0x8efa81('0x20')]['message']),_0x3809b3(_0x218349['error'][_0x8efa81('0x37')]);return logger[_0x8efa81('0x20')]('FaxMessage,\x20%s,\x20%s',_0x38d62d,_0x218349[_0x8efa81('0x20')][_0x8efa81('0x37')]),_0x260266(_0x218349[_0x8efa81('0x20')][_0x8efa81('0x37')]);}else logger[_0x8efa81('0x4a')]('FaxMessage,\x20%s,\x20%s',_0x38d62d,'request\x20sent'),_0x260266(_0x218349[_0x8efa81('0x6b')][_0x8efa81('0x37')]);})[_0x1f184b('0x68')](function(_0x418523){const _0x561bdb=_0x1f184b;logger[_0x561bdb('0x20')](_0x561bdb('0x0'),_0x38d62d,_0x418523),_0x3809b3(_0x418523);});});}function respondWithResult(_0x3bf5db,_0x329e95){return _0x329e95=_0x329e95||0xc8,function(_0x5167e9){const _0x47d824=a205_0x3b33;if(_0x5167e9)return _0x3bf5db[_0x47d824('0x62')](_0x329e95)[_0x47d824('0x16')](_0x5167e9);};}function respondWithFilteredResult(_0x298247,_0x350175){return function(_0x3be966){const _0x2c01dd=a205_0x3b33;if(_0x3be966){const _0x5a39a5=_0x3be966[_0x2c01dd('0x65')],_0x3c4144=_0x350175[_0x2c01dd('0x31')];let _0x2df213=_0x350175['offset']+_0x350175[_0x2c01dd('0x2d')],_0x30fb34;return _0x2df213>=_0x5a39a5?(_0x2df213=_0x5a39a5,_0x30fb34=0xc8):_0x30fb34=0xce,_0x298247['status'](_0x30fb34),_0x298247[_0x2c01dd('0x45')](_0x2c01dd('0x48'),_0x3c4144+'-'+_0x2df213+'/'+_0x5a39a5)[_0x2c01dd('0x16')](_0x3be966);}return null;};}function saveUpdates(_0x5361fa){return function(_0x1de46b){const _0x44e895=a205_0x3b33;if(_0x1de46b)return _0x1de46b['update'](_0x5361fa)[_0x44e895('0x23')](function(_0x3635b1){return _0x3635b1;});return null;};}function removeEntity(_0x13d628){return function(_0x44fbdc){const _0x5513bb=a205_0x3b33;if(_0x44fbdc)return _0x44fbdc[_0x5513bb('0x12')]()[_0x5513bb('0x23')](function(){const _0xcfe010=_0x5513bb;_0x13d628[_0xcfe010('0x62')](0xcc)[_0xcfe010('0x3d')]();});};}function handleEntityNotFound(_0x3bde20){return function(_0x3df9e8){return!_0x3df9e8&&_0x3bde20['sendStatus'](0x194),_0x3df9e8;};}function handleError(_0x44f250,_0x5a8a91){return _0x5a8a91=_0x5a8a91||0x1f4,function(_0x30ef06){const _0x55eca1=a205_0x3b33;logger[_0x55eca1('0x20')](_0x30ef06[_0x55eca1('0x18')]),_0x30ef06[_0x55eca1('0x21')]&&delete _0x30ef06['name'],_0x44f250[_0x55eca1('0x62')](_0x5a8a91)['send'](_0x30ef06);};}exports[_0x38db8e('0x60')]=function(_0x5c1a1b,_0x53f3f8){const _0x4982be=_0x38db8e;let _0x2d73b3={};const _0x8c742a={},_0x357cd3={'count':0x0,'rows':[]},_0x1d77b4=_[_0x4982be('0x4')](db[_0x4982be('0xd')][_0x4982be('0x3f')],function(_0x29c93e){const _0x33b322=_0x4982be;return{'name':_0x29c93e[_0x33b322('0x7')],'type':_0x29c93e[_0x33b322('0x46')]['key']};});_0x8c742a[_0x4982be('0x54')]=_[_0x4982be('0x4')](_0x1d77b4,_0x4982be('0x21')),_0x8c742a[_0x4982be('0x3a')]=_[_0x4982be('0x67')](_0x5c1a1b[_0x4982be('0x3a')]),_0x8c742a[_0x4982be('0x5e')]=_[_0x4982be('0x55')](_0x8c742a[_0x4982be('0x54')],_0x8c742a[_0x4982be('0x3a')]),_0x2d73b3[_0x4982be('0x38')]=_['intersection'](_0x8c742a[_0x4982be('0x54')],qs['fields'](_0x5c1a1b[_0x4982be('0x3a')][_0x4982be('0x3c')])),_0x2d73b3[_0x4982be('0x38')]=_0x2d73b3[_0x4982be('0x38')]['length']?_0x2d73b3[_0x4982be('0x38')]:_0x8c742a[_0x4982be('0x54')];typeof _0x5c1a1b['query'][_0x4982be('0x40')]===_0x4982be('0x44')&&(_0x2d73b3['limit']=qs[_0x4982be('0x2d')](_0x5c1a1b[_0x4982be('0x3a')][_0x4982be('0x2d')]),_0x2d73b3['offset']=qs[_0x4982be('0x31')](_0x5c1a1b[_0x4982be('0x3a')][_0x4982be('0x31')]));_0x2d73b3[_0x4982be('0x6a')]=qs[_0x4982be('0x27')](_0x5c1a1b[_0x4982be('0x3a')][_0x4982be('0x27')]),_0x2d73b3[_0x4982be('0x2e')]=qs['filters'](_[_0x4982be('0x56')](_0x5c1a1b['query'],_0x8c742a['filters']),_0x1d77b4);_0x5c1a1b['query'][_0x4982be('0x51')]&&(_0x2d73b3['where']=_[_0x4982be('0x49')](_0x2d73b3[_0x4982be('0x2e')],{[Op['or']]:_[_0x4982be('0x4')](_0x1d77b4,function(_0x32e117){const _0x4faeaf=_0x4982be;if(_0x32e117[_0x4faeaf('0x46')]!=='VIRTUAL'){const _0x1b237b={};return _0x1b237b[_0x32e117[_0x4faeaf('0x21')]]={[Op[_0x4faeaf('0x5b')]]:'%'+_0x5c1a1b[_0x4faeaf('0x3a')]['filter']+'%'},_0x1b237b;}})}));_0x2d73b3=_['merge']({},_0x2d73b3,_0x5c1a1b[_0x4982be('0x1b')]);const _0x4fe7ca={'where':_0x2d73b3[_0x4982be('0x2e')]};return db['FaxMessage']['count'](_0x4fe7ca)[_0x4982be('0x23')](function(_0xb2eef8){const _0x136f02=_0x4982be;return _0x357cd3['count']=_0xb2eef8,_0x5c1a1b[_0x136f02('0x3a')][_0x136f02('0x5')]&&(_0x2d73b3['include']=[{'all':!![]}]),db['FaxMessage']['findAll'](_0x2d73b3);})[_0x4982be('0x23')](function(_0x41c939){const _0xcfa81f=_0x4982be;return _0x357cd3[_0xcfa81f('0x66')]=_0x41c939,_0x357cd3;})[_0x4982be('0x23')](respondWithFilteredResult(_0x53f3f8,_0x2d73b3))[_0x4982be('0x68')](handleError(_0x53f3f8,null));},exports[_0x38db8e('0x5c')]=function(_0x5adcc3,_0x29b89c){const _0x39488f=_0x38db8e;let _0x52f880={'raw':!![],'where':{'id':_0x5adcc3['params']['id']}};const _0x57ba8e={};return _0x57ba8e[_0x39488f('0x54')]=_[_0x39488f('0x67')](db[_0x39488f('0xd')]['rawAttributes']),_0x57ba8e[_0x39488f('0x3a')]=_[_0x39488f('0x67')](_0x5adcc3[_0x39488f('0x3a')]),_0x57ba8e[_0x39488f('0x5e')]=_[_0x39488f('0x55')](_0x57ba8e[_0x39488f('0x54')],_0x57ba8e[_0x39488f('0x3a')]),_0x52f880[_0x39488f('0x38')]=_[_0x39488f('0x55')](_0x57ba8e[_0x39488f('0x54')],qs[_0x39488f('0x3c')](_0x5adcc3[_0x39488f('0x3a')][_0x39488f('0x3c')])),_0x52f880[_0x39488f('0x38')]=_0x52f880[_0x39488f('0x38')]['length']?_0x52f880[_0x39488f('0x38')]:_0x57ba8e[_0x39488f('0x54')],_0x5adcc3['query'][_0x39488f('0x5')]&&(_0x52f880[_0x39488f('0x2b')]=[{'all':!![]}]),_0x52f880=_[_0x39488f('0x49')]({},_0x52f880,_0x5adcc3[_0x39488f('0x1b')]),db[_0x39488f('0xd')][_0x39488f('0x15')](_0x52f880)[_0x39488f('0x23')](handleEntityNotFound(_0x29b89c,null))[_0x39488f('0x23')](respondWithResult(_0x29b89c,null))['catch'](handleError(_0x29b89c,null));},exports[_0x38db8e('0x3e')]=function(_0x42d98e,_0xc8658b){const _0x350a06=_0x38db8e;return _0x42d98e[_0x350a06('0xf')]['id']&&delete _0x42d98e[_0x350a06('0xf')]['id'],db[_0x350a06('0xd')][_0x350a06('0x15')]({'where':{'id':_0x42d98e['params']['id']}})[_0x350a06('0x23')](handleEntityNotFound(_0xc8658b,null))[_0x350a06('0x23')](saveUpdates(_0x42d98e[_0x350a06('0xf')],null))['then'](respondWithResult(_0xc8658b,null))['catch'](handleError(_0xc8658b,null));},exports[_0x38db8e('0x12')]=function(_0x4894cc,_0xbee2dc){const _0x222723=_0x38db8e;return db[_0x222723('0xd')][_0x222723('0x15')]({'where':{'id':_0x4894cc[_0x222723('0xa')]['id']}})[_0x222723('0x23')](handleEntityNotFound(_0xbee2dc,null))['then'](removeEntity(_0xbee2dc,null))[_0x222723('0x68')](handleError(_0xbee2dc,null));},exports['describe']=function(_0x18a948,_0x4b6886){const _0x50df4f=_0x38db8e;return db[_0x50df4f('0xd')]['describe']()[_0x50df4f('0x23')](respondWithResult(_0x4b6886,null))[_0x50df4f('0x68')](handleError(_0x4b6886,null));},exports[_0x38db8e('0x6')]=function(_0x1d3229,_0x2e2b70){const _0x21dc5c=_0x38db8e,_0x3efbb0={'channel':_0x21dc5c('0x39')};return _0x1d3229[_0x21dc5c('0xf')]['id']&&delete _0x1d3229['body']['id'],_0x1d3229[_0x21dc5c('0xf')]['read']=!![],_0x1d3229[_0x21dc5c('0xf')][_0x21dc5c('0x1a')]=moment()['format'](_0x21dc5c('0x3')),_0x1d3229[_0x21dc5c('0xf')]['UserId']=_0x1d3229['body'][_0x21dc5c('0x34')]||_0x1d3229[_0x21dc5c('0x5f')]['id'],db[_0x21dc5c('0xd')][_0x21dc5c('0x15')]({'where':{'id':_0x1d3229[_0x21dc5c('0xa')]['id'],'UserId':null},'include':[{'model':db[_0x21dc5c('0x25')],'as':'Contact'}]})[_0x21dc5c('0x23')](handleEntityNotFound(_0x2e2b70,null))[_0x21dc5c('0x23')](saveUpdates(_0x1d3229['body'],null))[_0x21dc5c('0x23')](function(_0x207e97){const _0x413a2c=_0x21dc5c;if(_0x207e97)return _0x3efbb0[_0x413a2c('0x37')]=_0x207e97[_0x413a2c('0x1')]({'plain':!![]}),db['FaxInteraction'][_0x413a2c('0x15')]({'where':{'id':_0x207e97[_0x413a2c('0xb')]}});return null;})[_0x21dc5c('0x23')](handleEntityNotFound(_0x2e2b70,null))[_0x21dc5c('0x23')](function(_0x4cced9){const _0x280d46=_0x21dc5c;if(_0x4cced9)return _0x4cced9['update']({'UserId':_0x1d3229[_0x280d46('0xf')][_0x280d46('0x34')],'read1stAt':_[_0x280d46('0x4f')](_0x4cced9[_0x280d46('0x1e')])?moment()[_0x280d46('0x1c')](_0x280d46('0x3')):undefined});return null;})[_0x21dc5c('0x23')](function(_0x2adb5e){const _0x413c05=_0x21dc5c;if(_0x2adb5e)return _0x3efbb0[_0x413c05('0x50')]=_0x2adb5e['get']({'plain':!![]}),interaction_log[_0x413c05('0x4a')](_0x413c05('0x24'),_0x1d3229[_0x413c05('0x5f')]['id'],_0x1d3229[_0x413c05('0x5f')][_0x413c05('0x21')],_0x1d3229[_0x413c05('0x5f')]['role'],_0x3efbb0[_0x413c05('0x50')]['id'],_0x1d3229['body']?JSON[_0x413c05('0x57')](_0x1d3229[_0x413c05('0xf')]):_0x413c05('0x41')),respondWithRpcPromise('AcceptMessage','acceptMessage',_0x3efbb0);return null;})['then'](function(_0x57b0ce){const _0x55f6d6=_0x21dc5c;if(_0x57b0ce){if(_0x1d3229[_0x55f6d6('0xf')][_0x55f6d6('0x10')])return _0x3efbb0[_0x55f6d6('0x37')]['interface']=util[_0x55f6d6('0x1c')](_0x55f6d6('0x47'),_0x1d3229['user'][_0x55f6d6('0x21')]),_0x3efbb0[_0x55f6d6('0x37')][_0x55f6d6('0x4b')]=_0x3efbb0['channel'],_0x3efbb0[_0x55f6d6('0x37')][_0x55f6d6('0x8')]='accept',respondWithRpcPromise(_0x55f6d6('0x4e'),_0x55f6d6('0x4e'),{'event':_0x55f6d6('0x64'),'message':_0x3efbb0[_0x55f6d6('0x37')]},client9002)['then'](function(){return _0x3efbb0;});return _0x3efbb0;}return null;})['then'](respondWithResult(_0x2e2b70,null))[_0x21dc5c('0x68')](handleError(_0x2e2b70,null));},exports[_0x38db8e('0x2')]=function(_0x94c64b,_0x2325bd){const _0x5988c0=_0x38db8e,_0x11e2dc={'agent':{},'channel':_0x5988c0('0x39')};return _0x94c64b[_0x5988c0('0xf')]['id']&&delete _0x94c64b[_0x5988c0('0xf')]['id'],_0x94c64b[_0x5988c0('0xf')][_0x5988c0('0x34')]=_0x94c64b[_0x5988c0('0xf')][_0x5988c0('0x34')]||_0x94c64b['user']['id'],_0x11e2dc[_0x5988c0('0x69')]['id']=_0x94c64b['body'][_0x5988c0('0x34')],db[_0x5988c0('0xd')]['findOne']({'where':{'id':_0x94c64b[_0x5988c0('0xa')]['id'],'UserId':null}})[_0x5988c0('0x23')](handleEntityNotFound(_0x2325bd,null))[_0x5988c0('0x23')](function(_0x50af07){const _0x4010c5=_0x5988c0;if(_0x50af07)return _0x11e2dc['message']=_0x50af07[_0x4010c5('0x1')]({'plain':!![]}),db[_0x4010c5('0x63')]['findOne']({'where':{'id':_0x50af07[_0x4010c5('0xb')]}});return null;})[_0x5988c0('0x23')](handleEntityNotFound(_0x2325bd,null))[_0x5988c0('0x23')](function(_0x32f826){const _0x3423c6=_0x5988c0;if(_0x32f826)return _0x11e2dc[_0x3423c6('0x50')]=_0x32f826[_0x3423c6('0x1')]({'plain':!![]}),interaction_log[_0x3423c6('0x4a')]('[FAXMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x94c64b[_0x3423c6('0x5f')]['id'],_0x94c64b[_0x3423c6('0x5f')][_0x3423c6('0x21')],_0x94c64b['user'][_0x3423c6('0x58')],_0x11e2dc[_0x3423c6('0x50')]['id'],_0x94c64b[_0x3423c6('0xf')]?JSON['stringify'](_0x94c64b[_0x3423c6('0xf')]):_0x3423c6('0x41')),respondWithRpcPromise(_0x3423c6('0x42'),'rejectMessage',_0x11e2dc);return null;})[_0x5988c0('0x23')](function(_0x1363ed){const _0x5c86d4=_0x5988c0;if(_0x1363ed)return _0x1363ed[_0x5c86d4('0x37')]['interface']=util[_0x5c86d4('0x1c')](_0x5c86d4('0x47'),_0x94c64b['user']['name']),_0x1363ed['message'][_0x5c86d4('0x4b')]=_0x11e2dc[_0x5c86d4('0x4b')],_0x1363ed[_0x5c86d4('0x37')][_0x5c86d4('0x8')]='reject',respondWithRpcPromise(_0x5c86d4('0x4e'),_0x5c86d4('0x4e'),{'event':_0x5c86d4('0x35'),'message':_0x1363ed[_0x5c86d4('0x37')]},client9002),_0x11e2dc;return null;})[_0x5988c0('0x23')](respondWithResult(_0x2325bd,null))[_0x5988c0('0x68')](handleError(_0x2325bd,null));},exports[_0x38db8e('0x11')]=function(_0x3d11a8,_0x9bc935){const _0x3c3e63=_0x38db8e;let _0x4fc4ee;return db['FaxMessage']['create'](_0x3d11a8['body'],{})[_0x3c3e63('0x23')](function(_0x4fd8a8){const _0xe7b128=_0x3c3e63;return _0x4fc4ee=_0x4fd8a8,db[_0xe7b128('0x25')][_0xe7b128('0x15')]({'where':{'id':_0x4fc4ee[_0xe7b128('0x61')]}});})[_0x3c3e63('0x23')](function(_0x506539){const _0x704794=_0x3c3e63;if(_[_0x704794('0x4f')](_0x506539))return;else return _0x4fc4ee[_0x704794('0x39')]=_0x506539['fax'],db[_0x704794('0x19')]['findOne']({'where':{'id':_0x4fc4ee[_0x704794('0x28')]}});})['then'](function(_0x3e4c01){const _0x334c42=_0x3c3e63;return respondWithRpcPromise(_0x334c42('0x53'),_0x334c42('0x53'),{'FaxAccountId':_[_0x334c42('0x4f')](_0x3d11a8['body'])?undefined:_0x3d11a8['body'][_0x334c42('0x9')],'path':_['isNil'](_0x3e4c01)?undefined:util[_0x334c42('0x1c')](_0x334c42('0x59'),_0x3e4c01[_0x334c42('0x22')]),'fax':_[_0x334c42('0x4f')](_0x4fc4ee[_0x334c42('0x39')])?undefined:_0x4fc4ee[_0x334c42('0x39')],'AttachmentId':_0x4fc4ee['AttachmentId']},client9002);})['then'](respondWithResult(_0x9bc935,0xc9))[_0x3c3e63('0x68')](handleError(_0x9bc935,null));},exports[_0x38db8e('0x5d')]=function(_0x1264e4,_0x5dcbdd){const _0x527bc3=_0x38db8e,_0x166790=path[_0x527bc3('0x2c')](config['root'],_0x527bc3('0x2f'),_0x527bc3('0x4d'),_0x527bc3('0x1f'));return db[_0x527bc3('0xd')][_0x527bc3('0x15')]({'where':{'id':_0x1264e4[_0x527bc3('0xa')]['id']},'include':[{'model':db['Attachment'],'as':_0x527bc3('0x19')}]})['then'](handleEntityNotFound(_0x5dcbdd,null))[_0x527bc3('0x23')](function(_0x94666d){const _0x12d98a=_0x527bc3;if(_0x94666d)return _0x5dcbdd[_0x12d98a('0x5d')](path[_0x12d98a('0x2c')](_0x166790,_0x94666d[_0x12d98a('0x19')]['basename']));})[_0x527bc3('0x68')](handleError(_0x5dcbdd,null));}; \ No newline at end of file +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 diff --git a/server/api/faxMessage/faxMessage.events.js b/server/api/faxMessage/faxMessage.events.js index ca1942b..0a97074 100644 --- a/server/api/faxMessage/faxMessage.events.js +++ b/server/api/faxMessage/faxMessage.events.js @@ -1 +1 @@ -const a206_0x14b9=['events','exports','emit','setMaxListeners','update','save','FaxMessage','../../mysqldb','undefined'];(function(_0x5c5802,_0x14b92a){const _0x50ff25=function(_0x574065){while(--_0x574065){_0x5c5802['push'](_0x5c5802['shift']());}};_0x50ff25(++_0x14b92a);}(a206_0x14b9,0x12f));const a206_0x50ff=function(_0x5c5802,_0x14b92a){_0x5c5802=_0x5c5802-0x0;let _0x50ff25=a206_0x14b9[_0x5c5802];return _0x50ff25;};const _0x1c6599=a206_0x50ff;'use strict';const EventEmitter=require(_0x1c6599('0x3')),FaxMessage=require(_0x1c6599('0x1'))['db'][_0x1c6599('0x0')],FaxMessageEvents=new EventEmitter();FaxMessageEvents[_0x1c6599('0x6')](0x0);const events={'afterCreate':_0x1c6599('0x8'),'afterUpdate':_0x1c6599('0x7'),'afterDestroy':'remove'};function emitEvent(_0x574065){return function(_0x423f63){const _0xb33686=a206_0x50ff;FaxMessageEvents[_0xb33686('0x5')](_0x574065+':'+_0x423f63['id'],_0x423f63),FaxMessageEvents[_0xb33686('0x5')](_0x574065,_0x423f63);};}for(const e in events){if(typeof events[e]!==_0x1c6599('0x2')){const event=events[e];FaxMessage['addHook'](e,emitEvent(event));}}module[_0x1c6599('0x4')]=FaxMessageEvents; \ No newline at end of file +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 diff --git a/server/api/faxMessage/faxMessage.model.js b/server/api/faxMessage/faxMessage.model.js index 8a7b14f..0396be1 100644 --- a/server/api/faxMessage/faxMessage.model.js +++ b/server/api/faxMessage/faxMessage.model.js @@ -1 +1 @@ -const a207_0x2226=['then','./faxMessage.attributes','define','direction','fax_messages','catch','body','toLowerCase','get','UserId','error','lodash','secret','createdAt','fti_fax_messages','isNil'];(function(_0x1b9cdb,_0x222613){const _0x8de256=function(_0x4b9aff){while(--_0x4b9aff){_0x1b9cdb['push'](_0x1b9cdb['shift']());}};_0x8de256(++_0x222613);}(a207_0x2226,0xf7));const a207_0x8de2=function(_0x1b9cdb,_0x222613){_0x1b9cdb=_0x1b9cdb-0x0;let _0x8de256=a207_0x2226[_0x1b9cdb];return _0x8de256;};const _0x16afc2=a207_0x8de2;'use strict';const _=require(_0x16afc2('0x4')),attributes=require(_0x16afc2('0xa'));module['exports']=function(_0x4b9aff){const _0x19aaa1=_0x16afc2,_0x58139d=_0x4b9aff['models'],_0x355733=_0x4b9aff[_0x19aaa1('0xb')]('FaxMessage',attributes,{'tableName':_0x19aaa1('0xd'),'paranoid':![],'indexes':[{'name':_0x19aaa1('0x7'),'fields':[_0x19aaa1('0xf')],'type':'FULLTEXT'}],'timestamps':!![],'hooks':{'afterCreate':function(_0x3f210a){const _0x3f794a=_0x19aaa1,_0x5e7e53=_0x3f210a[_0x3f794a('0x1')]({'plain':!![]});(_0x5e7e53[_0x3f794a('0xc')]['toLowerCase']()==='in'||_0x5e7e53[_0x3f794a('0xc')]['toLowerCase']()==='out'&&!_0x5e7e53[_0x3f794a('0x5')]&&!_[_0x3f794a('0x8')](_0x5e7e53[_0x3f794a('0x2')]))&&_0x58139d['FaxInteraction']['findOne']({'where':{'id':_0x5e7e53['FaxInteractionId']}})[_0x3f794a('0x9')](function(_0x122e9c){const _0x6d7d3f=_0x3f794a;_0x122e9c&&_0x122e9c['update']({'lastMsgAt':_0x5e7e53[_0x6d7d3f('0x6')],'lastMsgDirection':_0x5e7e53['direction'][_0x6d7d3f('0x0')]()});})[_0x3f794a('0xe')](function(_0x35a644){const _0x2d8244=_0x3f794a;console[_0x2d8244('0x3')](_0x35a644);});}},'charset':'utf8mb4','collate':'utf8mb4_unicode_ci'});return _0x355733;}; \ No newline at end of file +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 diff --git a/server/api/faxMessage/faxMessage.rpc.js b/server/api/faxMessage/faxMessage.rpc.js index 00fbcf1..ac2c819 100644 --- a/server/api/faxMessage/faxMessage.rpc.js +++ b/server/api/faxMessage/faxMessage.rpc.js @@ -1 +1 @@ -const a208_0x24bf=['body','stringify','message','info','UpdateFaxMessage','update','then','limit','register','where','create','CreateFaxMessage','catch','FaxMessage','error','../../mysqldb','rpc','debug','options','../../rediscache','raw'];(function(_0x412f2b,_0x24bf61){const _0x318d21=function(_0x55646f){while(--_0x55646f){_0x412f2b['push'](_0x412f2b['shift']());}};_0x318d21(++_0x24bf61);}(a208_0x24bf,0x166));const a208_0x318d=function(_0x412f2b,_0x24bf61){_0x412f2b=_0x412f2b-0x0;let _0x318d21=a208_0x24bf[_0x412f2b];return _0x318d21;};const _0x996bb3=a208_0x318d;'use strict';const db=require(_0x996bb3('0xe'))['db'],logger=require('../../config/logger')(_0x996bb3('0xf')),{getSocket}=require(_0x996bb3('0x12')),socket=getSocket();require('./faxMessage.socket')[_0x996bb3('0x7')](socket),exports[_0x996bb3('0xa')]=function(_0x55646f){const _0x47e6cb=this;return new Promise(function(_0x3584e9,_0x5dd700){const _0x1e812a=a208_0x318d;return db[_0x1e812a('0xc')][_0x1e812a('0x9')](_0x55646f[_0x1e812a('0x14')],{'raw':_0x55646f['options']?_0x55646f['options'][_0x1e812a('0x13')]===undefined?!![]:![]:!![]})['then'](function(_0x2e5484){const _0x382f52=_0x1e812a;logger[_0x382f52('0x2')](_0x382f52('0xa'),_0x55646f),logger[_0x382f52('0x10')](_0x382f52('0xa'),_0x55646f,JSON[_0x382f52('0x0')](_0x2e5484)),_0x3584e9(_0x2e5484);})[_0x1e812a('0xb')](function(_0x4c6fed){const _0x1a4a0f=_0x1e812a;logger['error'](_0x1a4a0f('0xa'),_0x4c6fed[_0x1a4a0f('0x1')],_0x55646f),_0x5dd700(_0x47e6cb[_0x1a4a0f('0xd')](0x1f4,_0x4c6fed['message']));});});},exports[_0x996bb3('0x3')]=function(_0x46ecfe){const _0x5ee372=this;return new Promise(function(_0x394ded,_0x485a06){const _0x2bf950=a208_0x318d;return db[_0x2bf950('0xc')][_0x2bf950('0x4')](_0x46ecfe[_0x2bf950('0x14')],{'raw':_0x46ecfe['options']?_0x46ecfe[_0x2bf950('0x11')][_0x2bf950('0x13')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x46ecfe[_0x2bf950('0x11')]?_0x46ecfe['options'][_0x2bf950('0x8')]||null:null,'attributes':_0x46ecfe[_0x2bf950('0x11')]?_0x46ecfe[_0x2bf950('0x11')]['attributes']||null:null,'limit':_0x46ecfe[_0x2bf950('0x11')]?_0x46ecfe[_0x2bf950('0x11')][_0x2bf950('0x6')]||null:null})[_0x2bf950('0x5')](function(_0x1b8d28){const _0x26d2ae=_0x2bf950;logger[_0x26d2ae('0x2')](_0x26d2ae('0x3'),_0x46ecfe),logger[_0x26d2ae('0x10')](_0x26d2ae('0x3'),_0x46ecfe,JSON[_0x26d2ae('0x0')](_0x1b8d28)),_0x394ded(_0x1b8d28);})['catch'](function(_0x121b40){const _0xae4500=_0x2bf950;logger[_0xae4500('0xd')](_0xae4500('0x3'),_0x121b40['message'],_0x46ecfe),_0x485a06(_0x5ee372[_0xae4500('0xd')](0x1f4,_0x121b40[_0xae4500('0x1')]));});});}; \ No newline at end of file +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 diff --git a/server/api/faxMessage/faxMessage.socket.js b/server/api/faxMessage/faxMessage.socket.js index 799b264..762dc86 100644 --- a/server/api/faxMessage/faxMessage.socket.js +++ b/server/api/faxMessage/faxMessage.socket.js @@ -1 +1 @@ -const a209_0x12b2=['save','faxMessage:','update','remove','emit','length','./faxMessage.events'];(function(_0x32e5fc,_0x12b2c3){const _0x1c79f0=function(_0x527536){while(--_0x527536){_0x32e5fc['push'](_0x32e5fc['shift']());}};_0x1c79f0(++_0x12b2c3);}(a209_0x12b2,0x122));const a209_0x1c79=function(_0x32e5fc,_0x12b2c3){_0x32e5fc=_0x32e5fc-0x0;let _0x1c79f0=a209_0x12b2[_0x32e5fc];return _0x1c79f0;};const _0x1b79e1=a209_0x1c79;'use strict';const FaxMessageEvents=require(_0x1b79e1('0x3')),events=[_0x1b79e1('0x4'),_0x1b79e1('0x0'),_0x1b79e1('0x6')];function createListener(_0x527536,_0x41de1f){return function(_0x264922){const _0x2f935a=a209_0x1c79;_0x41de1f[_0x2f935a('0x1')](_0x527536,_0x264922);};}exports['register']=function(_0x5dd727){const _0x518a19=_0x1b79e1;for(let _0x1baab2=0x0,_0x355ba4=events[_0x518a19('0x2')];_0x1baab2<_0x355ba4;_0x1baab2++){const _0x2a67ca=events[_0x1baab2],_0x50d545=createListener(_0x518a19('0x5')+_0x2a67ca,_0x5dd727);FaxMessageEvents['on'](_0x2a67ca,_0x50d545);}}; \ No newline at end of file +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 diff --git a/server/api/faxMessage/index.js b/server/api/faxMessage/index.js index 0049d14..084300a 100644 --- a/server/api/faxMessage/index.js +++ b/server/api/faxMessage/index.js @@ -1 +1 @@ -const a210_0x502e=['faxmessage:create','show','put','describe','isAuthenticated','Router','/:id/reject','create','express','delete','../../components/auth/service','../../components/interaction/service','get','post','/describe','tracked','/:id/download','destroy','accept','index','/:id','fax'];(function(_0x26d3cf,_0x502e7c){const _0x412ac6=function(_0x3fd629){while(--_0x3fd629){_0x26d3cf['push'](_0x26d3cf['shift']());}};_0x412ac6(++_0x502e7c);}(a210_0x502e,0xcb));const a210_0x412a=function(_0x26d3cf,_0x502e7c){_0x26d3cf=_0x26d3cf-0x0;let _0x412ac6=a210_0x502e[_0x26d3cf];return _0x412ac6;};const _0x1386ec=a210_0x412a;'use strict';const express=require(_0x1386ec('0x3')),router=express[_0x1386ec('0x0')](),auth=require(_0x1386ec('0x5')),interaction=require(_0x1386ec('0x6')),controller=require('./faxMessage.controller');router[_0x1386ec('0x7')]('/',auth[_0x1386ec('0x15')](),controller[_0x1386ec('0xe')]),router['get'](_0x1386ec('0x9'),auth[_0x1386ec('0x15')](),controller[_0x1386ec('0x14')]),router[_0x1386ec('0x7')]('/:id',auth['isAuthenticated'](),controller[_0x1386ec('0x12')]),router[_0x1386ec('0x7')](_0x1386ec('0xb'),auth[_0x1386ec('0x15')](),controller['download']),router[_0x1386ec('0x8')]('/',auth[_0x1386ec('0x15')](),interaction[_0x1386ec('0xa')](_0x1386ec('0x10'),_0x1386ec('0x11')),controller[_0x1386ec('0x2')]),router[_0x1386ec('0x13')]('/:id',auth[_0x1386ec('0x15')](),controller['update']),router['put']('/:id/accept',auth[_0x1386ec('0x15')](),controller[_0x1386ec('0xd')]),router[_0x1386ec('0x13')](_0x1386ec('0x1'),auth[_0x1386ec('0x15')](),controller['reject']),router[_0x1386ec('0x4')](_0x1386ec('0xf'),auth[_0x1386ec('0x15')](),controller[_0x1386ec('0xc')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/faxQueue/faxQueue.attributes.js b/server/api/faxQueue/faxQueue.attributes.js index 721fc0a..3f6d870 100644 --- a/server/api/faxQueue/faxQueue.attributes.js +++ b/server/api/faxQueue/faxQueue.attributes.js @@ -1 +1 @@ -const a211_0x3212=['beepall','INTEGER','rrmemory','STRING','name','exports','sequelize'];(function(_0x549cd8,_0x32129f){const _0x3c0625=function(_0x4135dc){while(--_0x4135dc){_0x549cd8['push'](_0x549cd8['shift']());}};_0x3c0625(++_0x32129f);}(a211_0x3212,0xc0));const a211_0x3c06=function(_0x549cd8,_0x32129f){_0x549cd8=_0x549cd8-0x0;let _0x3c0625=a211_0x3212[_0x549cd8];return _0x3c0625;};const _0x36c3a3=a211_0x3c06;'use strict';const Sequelize=require(_0x36c3a3('0x3'));module[_0x36c3a3('0x2')]={'name':{'type':Sequelize[_0x36c3a3('0x0')],'unique':_0x36c3a3('0x1'),'allowNull':![],'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x36c3a3('0x0')]},'timeout':{'type':Sequelize[_0x36c3a3('0x5')],'allowNull':![],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize['ENUM'](_0x36c3a3('0x6'),_0x36c3a3('0x4'),'roundrobin'),'allowNull':![]},'lastAgent':{'type':Sequelize[_0x36c3a3('0x5')],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/faxQueue/faxQueue.controller.js b/server/api/faxQueue/faxQueue.controller.js index bc46c15..5b9a323 100644 --- a/server/api/faxQueue/faxQueue.controller.js +++ b/server/api/faxQueue/faxQueue.controller.js @@ -1 +1 @@ -const a212_0x1999=['voicePause','forEach','intersection','removeAgents','Team','sequelize','index','addAgents','VIRTUAL','getAgents','addTeams','type','TeamId','union','destroy','end','keys','fields','stack','tq.TeamId','from','every','userFaxQueue:save','attributes','options','FaxQueues','UserProfileSection','format','includeAll','SELECT','omit','../../components/parsers/qs','getTeams','register','show','set','count','FaxQueue','body','then','User','UserId','name','updatedAt','get','lodash','all','fieldName','agent','isArray','QueryTypes','../../config/logger','faxPause','value','params','nolimit','Content-Range','select','length','ut.TeamId\x20=\x20tq.TeamId','findOne','toString','SIP','describe','map','offset','status','catch','user','includes','pick','../../rediscache','limit','interface','send','online','compact','createdAt','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','findAndCountAll','update','sendStatus','order','model','userFaxQueue:remove','removeTeams','squel','./faxQueue.socket','UserProfileResource','filters','where','emit','json','transaction','Unable\x20to\x20retrieve\x20the\x20current\x20user','undefined','findAll','like','rawAttributes','error','query','sort','ids','../../mysqldb','create','field','filter','UserFaxQueue','util','merge','Agents','include'];(function(_0x281781,_0x199979){const _0xde1c96=function(_0x2127dc){while(--_0x2127dc){_0x281781['push'](_0x281781['shift']());}};_0xde1c96(++_0x199979);}(a212_0x1999,0x1cb));const a212_0xde1c=function(_0x281781,_0x199979){_0x281781=_0x281781-0x0;let _0xde1c96=a212_0x1999[_0x281781];return _0xde1c96;};const _0x3da797=a212_0xde1c;'use strict';const util=require(_0x3da797('0x61')),_=require(_0x3da797('0x22')),squel=require(_0x3da797('0x4b')),qs=require(_0x3da797('0x14')),logger=require(_0x3da797('0x28'))('api'),{getSocket}=require(_0x3da797('0x3c')),socket=getSocket(),db=require(_0x3da797('0x5c'))['db'],{Op}=require(_0x3da797('0x6a'));require(_0x3da797('0x4c'))[_0x3da797('0x16')](socket);function respondWithStatusCode(_0x2127dc,_0x199616){return _0x199616=_0x199616||0xcc,function(_0x28d0f1){const _0x4f72eb=a212_0xde1c;if(_0x28d0f1)return _0x2127dc[_0x4f72eb('0x46')](_0x199616);return _0x2127dc[_0x4f72eb('0x37')](_0x199616)['end']();};}function respondWithResult(_0x43b9d2,_0x1e17ea){return _0x1e17ea=_0x1e17ea||0xc8,function(_0x5d2248){const _0x462f82=a212_0xde1c;if(_0x5d2248)return _0x43b9d2[_0x462f82('0x37')](_0x1e17ea)[_0x462f82('0x51')](_0x5d2248);};}function respondWithFilteredResult(_0x31a8e4,_0x9f58b4){return function(_0x4bf559){const _0x48b66f=a212_0xde1c;if(_0x4bf559){const _0x21b55c=_0x4bf559[_0x48b66f('0x19')],_0xd37913=_0x9f58b4[_0x48b66f('0x36')];let _0x343e07=_0x9f58b4['offset']+_0x9f58b4[_0x48b66f('0x3d')],_0x5abed1;return _0x343e07>=_0x21b55c?(_0x343e07=_0x21b55c,_0x5abed1=0xc8):_0x5abed1=0xce,_0x31a8e4[_0x48b66f('0x37')](_0x5abed1),_0x31a8e4[_0x48b66f('0x18')](_0x48b66f('0x2d'),_0xd37913+'-'+_0x343e07+'/'+_0x21b55c)[_0x48b66f('0x51')](_0x4bf559);}return null;};}function saveUpdates(_0x2f1a1a){return function(_0x2d1120){const _0x468ec7=a212_0xde1c;if(_0x2d1120)return _0x2d1120[_0x468ec7('0x45')](_0x2f1a1a)[_0x468ec7('0x1c')](function(_0x20e3e8){return _0x20e3e8;});return null;};}function removeEntity(_0xb0d8c){return function(_0x3f89df){const _0x192a0b=a212_0xde1c;if(_0x3f89df)return _0x3f89df[_0x192a0b('0x3')]()[_0x192a0b('0x1c')](function(){const _0x144645=_0x192a0b,_0x332203=_0x3f89df[_0x144645('0x21')]({'plain':!![]}),_0x52873a=_0x144645('0xe');return db['UserProfileResource']['destroy']({'where':{'type':_0x52873a,'resourceId':_0x332203['id']}})[_0x144645('0x1c')](function(){return _0x3f89df;});})['then'](function(){const _0x27c04a=_0x192a0b;_0xb0d8c[_0x27c04a('0x37')](0xcc)[_0x27c04a('0x4')]();});};}function handleEntityNotFound(_0x2997ce){return function(_0x3b3ee1){const _0x58d101=a212_0xde1c;return!_0x3b3ee1&&_0x2997ce[_0x58d101('0x46')](0x194),_0x3b3ee1;};}function handleError(_0x328f00,_0x4b49a8){return _0x4b49a8=_0x4b49a8||0x1f4,function(_0x382406){const _0x2e79a6=a212_0xde1c;logger[_0x2e79a6('0x58')](_0x382406[_0x2e79a6('0x7')]),_0x382406[_0x2e79a6('0x1f')]&&delete _0x382406['name'],_0x328f00[_0x2e79a6('0x37')](_0x4b49a8)[_0x2e79a6('0x3f')](_0x382406);};}exports[_0x3da797('0x6b')]=function(_0x368974,_0x5d7a28){const _0x9a83d=_0x3da797;let _0x2c559d={};const _0x103830={},_0x2a0537={'count':0x0,'rows':[]},_0x3f4b4e=_[_0x9a83d('0x35')](db[_0x9a83d('0x1a')][_0x9a83d('0x57')],function(_0x17c8e0){const _0x34e717=_0x9a83d;return{'name':_0x17c8e0[_0x34e717('0x24')],'type':_0x17c8e0[_0x34e717('0x0')]['key']};});_0x103830[_0x9a83d('0x48')]=_[_0x9a83d('0x35')](_0x3f4b4e,_0x9a83d('0x1f')),_0x103830['query']=_['keys'](_0x368974[_0x9a83d('0x59')]),_0x103830[_0x9a83d('0x4e')]=_[_0x9a83d('0x67')](_0x103830['model'],_0x103830['query']),_0x2c559d[_0x9a83d('0xc')]=_[_0x9a83d('0x67')](_0x103830[_0x9a83d('0x48')],qs[_0x9a83d('0x6')](_0x368974['query'][_0x9a83d('0x6')])),_0x2c559d[_0x9a83d('0xc')]=_0x2c559d[_0x9a83d('0xc')]['length']?_0x2c559d['attributes']:_0x103830['model'];typeof _0x368974[_0x9a83d('0x59')][_0x9a83d('0x2c')]===_0x9a83d('0x54')&&(_0x2c559d[_0x9a83d('0x3d')]=qs[_0x9a83d('0x3d')](_0x368974[_0x9a83d('0x59')][_0x9a83d('0x3d')]),_0x2c559d[_0x9a83d('0x36')]=qs[_0x9a83d('0x36')](_0x368974[_0x9a83d('0x59')][_0x9a83d('0x36')]));_0x2c559d[_0x9a83d('0x47')]=qs['sort'](_0x368974[_0x9a83d('0x59')][_0x9a83d('0x5a')]),_0x2c559d[_0x9a83d('0x4f')]=qs[_0x9a83d('0x4e')](_[_0x9a83d('0x3b')](_0x368974[_0x9a83d('0x59')],_0x103830['filters']),_0x3f4b4e);_0x368974['query'][_0x9a83d('0x5f')]&&(_0x2c559d['where']=_[_0x9a83d('0x62')](_0x2c559d['where'],{[Op['or']]:_['map'](_0x3f4b4e,function(_0x5d7cba){const _0x2b29b2=_0x9a83d;if(_0x5d7cba['type']!==_0x2b29b2('0x6d')){const _0x229359={};return _0x229359[_0x5d7cba[_0x2b29b2('0x1f')]]={[Op[_0x2b29b2('0x56')]]:'%'+_0x368974['query'][_0x2b29b2('0x5f')]+'%'},_0x229359;}})}));_0x2c559d=_['merge']({},_0x2c559d,_0x368974['options']);const _0x3e774a={'where':_0x2c559d[_0x9a83d('0x4f')]};return db[_0x9a83d('0x1a')][_0x9a83d('0x19')](_0x3e774a)[_0x9a83d('0x1c')](function(_0x587719){const _0xab4328=_0x9a83d;return _0x2a0537[_0xab4328('0x19')]=_0x587719,_0x368974[_0xab4328('0x59')][_0xab4328('0x11')]&&(_0x2c559d[_0xab4328('0x64')]=[{'all':!![]}]),db[_0xab4328('0x1a')][_0xab4328('0x55')](_0x2c559d);})[_0x9a83d('0x1c')](function(_0x299149){return _0x2a0537['rows']=_0x299149,_0x2a0537;})[_0x9a83d('0x1c')](respondWithFilteredResult(_0x5d7a28,_0x2c559d))['catch'](handleError(_0x5d7a28,null));},exports[_0x3da797('0x17')]=function(_0x18aa7f,_0x9ee08c){const _0x39e997=_0x3da797;let _0x14a464={'raw':!![],'where':{'id':_0x18aa7f[_0x39e997('0x2b')]['id']}};const _0x369edf={};return _0x369edf[_0x39e997('0x48')]=_[_0x39e997('0x5')](db[_0x39e997('0x1a')]['rawAttributes']),_0x369edf[_0x39e997('0x59')]=_[_0x39e997('0x5')](_0x18aa7f[_0x39e997('0x59')]),_0x369edf['filters']=_[_0x39e997('0x67')](_0x369edf[_0x39e997('0x48')],_0x369edf[_0x39e997('0x59')]),_0x14a464['attributes']=_['intersection'](_0x369edf[_0x39e997('0x48')],qs['fields'](_0x18aa7f[_0x39e997('0x59')]['fields'])),_0x14a464[_0x39e997('0xc')]=_0x14a464['attributes'][_0x39e997('0x2f')]?_0x14a464[_0x39e997('0xc')]:_0x369edf[_0x39e997('0x48')],_0x18aa7f[_0x39e997('0x59')]['includeAll']&&(_0x14a464[_0x39e997('0x64')]=[{'all':!![]}]),_0x14a464=_[_0x39e997('0x62')]({},_0x14a464,_0x18aa7f[_0x39e997('0xd')]),db[_0x39e997('0x1a')][_0x39e997('0x31')](_0x14a464)['then'](handleEntityNotFound(_0x9ee08c,null))[_0x39e997('0x1c')](respondWithResult(_0x9ee08c,null))[_0x39e997('0x38')](handleError(_0x9ee08c,null));},exports[_0x3da797('0x5d')]=function(_0x5863c6,_0x4255fd){const _0x3fce6b=_0x3da797;return db['FaxQueue']['create'](_0x5863c6['body'],{})[_0x3fce6b('0x1c')](function(_0x210a18){const _0x503f29=_0x3fce6b,_0x54a0f2=_0x5863c6[_0x503f29('0x39')][_0x503f29('0x21')]({'plain':!![]});if(!_0x54a0f2)throw new Error(_0x503f29('0x53'));if(_0x54a0f2['role']===_0x503f29('0x39')){const _0x31ce6b=_0x210a18[_0x503f29('0x21')]({'plain':!![]}),_0xa35a33='FaxQueues';return db[_0x503f29('0xf')]['findOne']({'where':{'name':_0xa35a33,'userProfileId':_0x54a0f2['userProfileId']},'raw':!![]})[_0x503f29('0x1c')](function(_0x3b6a3d){const _0xbb4a58=_0x503f29;return _0x3b6a3d&&_0x3b6a3d['autoAssociation']===0x0?db[_0xbb4a58('0x4d')][_0xbb4a58('0x5d')]({'name':_0x31ce6b[_0xbb4a58('0x1f')],'resourceId':_0x31ce6b['id'],'type':_0x3b6a3d[_0xbb4a58('0x1f')],'sectionId':_0x3b6a3d['id']},{})[_0xbb4a58('0x1c')](function(){return _0x210a18;}):_0x210a18;})[_0x503f29('0x38')](function(_0x37982c){const _0x370e68=_0x503f29;logger['error'](_0x370e68('0x43'),_0x37982c);throw _0x37982c;});}return _0x210a18;})[_0x3fce6b('0x1c')](respondWithResult(_0x4255fd,0xc9))['catch'](handleError(_0x4255fd,null));},exports[_0x3da797('0x45')]=function(_0x5ec46c,_0x1400d0){const _0xb835a9=_0x3da797;return _0x5ec46c[_0xb835a9('0x1b')]['id']&&delete _0x5ec46c[_0xb835a9('0x1b')]['id'],db[_0xb835a9('0x1a')]['findOne']({'where':{'id':_0x5ec46c[_0xb835a9('0x2b')]['id']}})['then'](handleEntityNotFound(_0x1400d0,null))[_0xb835a9('0x1c')](saveUpdates(_0x5ec46c[_0xb835a9('0x1b')],null))[_0xb835a9('0x1c')](respondWithResult(_0x1400d0,null))['catch'](handleError(_0x1400d0,null));},exports[_0x3da797('0x3')]=function(_0xe47593,_0x3d59fe){const _0x46df23=_0x3da797;return db[_0x46df23('0x1a')][_0x46df23('0x31')]({'where':{'id':_0xe47593['params']['id']}})[_0x46df23('0x1c')](handleEntityNotFound(_0x3d59fe,null))[_0x46df23('0x1c')](removeEntity(_0x3d59fe,null))['catch'](handleError(_0x3d59fe,null));},exports['describe']=function(_0x56e0cf,_0x5dd955){const _0x407276=_0x3da797;return db['FaxQueue'][_0x407276('0x34')]()[_0x407276('0x1c')](respondWithResult(_0x5dd955,null))[_0x407276('0x38')](handleError(_0x5dd955,null));},exports['getMembers']=function(_0x219d12,_0x3dbc78){const _0x1cc111=_0x3da797;let _0x2aca92={'raw':!![],'where':{}};const _0x1e1125={};let _0x1df8f3;return db['FaxQueue'][_0x1cc111('0x31')]({'where':{'id':_0x219d12[_0x1cc111('0x2b')]['id']}})[_0x1cc111('0x1c')](handleEntityNotFound(_0x3dbc78,null))['then'](function(_0x44661d){const _0x57ea71=_0x1cc111;if(_0x44661d)return _0x1df8f3=_0x44661d[_0x57ea71('0x21')]({'plain':!![]}),_0x1e1125['model']=_['keys'](db[_0x57ea71('0x60')][_0x57ea71('0x57')]),_0x1e1125[_0x57ea71('0x59')]=_[_0x57ea71('0x5')](_0x219d12[_0x57ea71('0x59')]),_0x1e1125[_0x57ea71('0x4e')]=_[_0x57ea71('0x67')](_0x1e1125[_0x57ea71('0x48')],_0x1e1125[_0x57ea71('0x59')]),_0x2aca92[_0x57ea71('0xc')]=_[_0x57ea71('0x67')](_0x1e1125['model'],qs[_0x57ea71('0x6')](_0x219d12['query'][_0x57ea71('0x6')])),_0x2aca92['attributes']=_0x2aca92['attributes'][_0x57ea71('0x2f')]?_0x2aca92[_0x57ea71('0xc')]:_0x1e1125[_0x57ea71('0x48')],typeof _0x219d12[_0x57ea71('0x59')]['nolimit']===_0x57ea71('0x54')&&(_0x2aca92[_0x57ea71('0x3d')]=qs[_0x57ea71('0x3d')](_0x219d12[_0x57ea71('0x59')]['limit']),_0x2aca92[_0x57ea71('0x36')]=qs['offset'](_0x219d12[_0x57ea71('0x59')]['offset'])),_0x2aca92[_0x57ea71('0x47')]=qs[_0x57ea71('0x5a')](_0x219d12[_0x57ea71('0x59')][_0x57ea71('0x5a')]),_0x2aca92['where']=qs[_0x57ea71('0x4e')](_[_0x57ea71('0x3b')](_0x219d12['query'],_0x1e1125[_0x57ea71('0x4e')])),_0x2aca92[_0x57ea71('0x4f')]['FaxQueueId']=_0x44661d['id'],_0x219d12[_0x57ea71('0x59')][_0x57ea71('0x5f')]&&(_0x2aca92[_0x57ea71('0x4f')]=_[_0x57ea71('0x62')](_0x2aca92['where'],{[Op['or']]:_[_0x57ea71('0x35')](_0x2aca92['attributes'],function(_0x10084c){const _0x9cf7e4=_0x57ea71,_0x34d894={};return _0x34d894[_0x10084c]={[Op['like']]:'%'+_0x219d12[_0x9cf7e4('0x59')][_0x9cf7e4('0x5f')]+'%'},_0x34d894;})})),_0x2aca92=_[_0x57ea71('0x62')]({},_0x2aca92,_0x219d12[_0x57ea71('0xd')]),db['UserFaxQueue'][_0x57ea71('0x55')](_0x2aca92);})[_0x1cc111('0x1c')](function(_0xd251fd){const _0x3ef09f=_0x1cc111;if(_0xd251fd)return db[_0x3ef09f('0x1d')][_0x3ef09f('0x44')]({'where':{'id':_[_0x3ef09f('0x35')](_0xd251fd,_0x3ef09f('0x1e')),'role':_0x3ef09f('0x25')},'attributes':['id',_0x3ef09f('0x1f'),_0x3ef09f('0x29'),_0x3ef09f('0x20'),_0x3ef09f('0x42')]});})['then'](function(_0x18afa5){const _0x30e23b=_0x1cc111;return _0x18afa5?{'count':_0x18afa5[_0x30e23b('0x19')],'rows':_[_0x30e23b('0x35')](_0x18afa5['rows'],function(_0x11dea5){const _0x2e3fb0=_0x30e23b;return{'membername':_0x11dea5[_0x2e3fb0('0x1f')],'UserId':_0x11dea5['id'],'queue_name':_0x1df8f3[_0x2e3fb0('0x1f')],'FaxQueueId':_0x1df8f3['id'],'interface':util[_0x2e3fb0('0x10')]('%s/%s',_0x2e3fb0('0x33'),_0x11dea5[_0x2e3fb0('0x1f')]),'penalty':0x0,'paused':_0x11dea5[_0x2e3fb0('0x29')],'createdAt':_0x11dea5[_0x2e3fb0('0x42')],'updatedAt':_0x11dea5[_0x2e3fb0('0x20')]};})}:{'count':0x0,'rows':[]};})[_0x1cc111('0x1c')](respondWithFilteredResult(_0x3dbc78,_0x2aca92))[_0x1cc111('0x38')](handleError(_0x3dbc78,null));},exports[_0x3da797('0x15')]=function(_0x36d24d,_0x35b4c9){const _0x46fb49=_0x3da797;let _0x348727={};const _0x1bbdbb={};let _0x7f8f54,_0x4d08bb;return db[_0x46fb49('0x1a')][_0x46fb49('0x31')]({'where':{'id':_0x36d24d['params']['id']}})[_0x46fb49('0x1c')](handleEntityNotFound(_0x35b4c9,null))[_0x46fb49('0x1c')](function(_0x24d9a9){const _0x2291d3=_0x46fb49;if(_0x24d9a9)return _0x7f8f54=_0x24d9a9,_0x1bbdbb[_0x2291d3('0x48')]=_[_0x2291d3('0x5')](db[_0x2291d3('0x69')]['rawAttributes']),_0x1bbdbb[_0x2291d3('0x59')]=_['keys'](_0x36d24d[_0x2291d3('0x59')]),_0x1bbdbb['filters']=_['intersection'](_0x1bbdbb[_0x2291d3('0x48')],_0x1bbdbb[_0x2291d3('0x59')]),_0x348727[_0x2291d3('0xc')]=_['intersection'](_0x1bbdbb[_0x2291d3('0x48')],qs[_0x2291d3('0x6')](_0x36d24d[_0x2291d3('0x59')]['fields'])),_0x348727[_0x2291d3('0xc')]=_0x348727[_0x2291d3('0xc')]['length']?_0x348727[_0x2291d3('0xc')]:_0x1bbdbb['model'],_0x348727[_0x2291d3('0x47')]=qs[_0x2291d3('0x5a')](_0x36d24d[_0x2291d3('0x59')][_0x2291d3('0x5a')]),_0x348727[_0x2291d3('0x4f')]=qs[_0x2291d3('0x4e')](_[_0x2291d3('0x3b')](_0x36d24d[_0x2291d3('0x59')],_0x1bbdbb[_0x2291d3('0x4e')])),_0x36d24d['query']['filter']&&(_0x348727[_0x2291d3('0x4f')]=_[_0x2291d3('0x62')](_0x348727[_0x2291d3('0x4f')],{[Op['or']]:_[_0x2291d3('0x35')](_0x348727[_0x2291d3('0xc')],function(_0x3f2cef){const _0x32a189=_0x2291d3,_0x4f5542={};return _0x4f5542[_0x3f2cef]={[Op[_0x32a189('0x56')]]:'%'+_0x36d24d[_0x32a189('0x59')][_0x32a189('0x5f')]+'%'},_0x4f5542;})})),_0x348727=_[_0x2291d3('0x62')]({},_0x348727,_0x36d24d[_0x2291d3('0xd')]),_0x7f8f54[_0x2291d3('0x15')](_0x348727);})[_0x46fb49('0x1c')](function(_0xe317c9){const _0x21dc7f=_0x46fb49;if(_0xe317c9)return _0x4d08bb=_0xe317c9[_0x21dc7f('0x2f')],typeof _0x36d24d[_0x21dc7f('0x59')][_0x21dc7f('0x2c')]==='undefined'&&(_0x348727[_0x21dc7f('0x3d')]=qs[_0x21dc7f('0x3d')](_0x36d24d[_0x21dc7f('0x59')][_0x21dc7f('0x3d')]),_0x348727[_0x21dc7f('0x36')]=qs[_0x21dc7f('0x36')](_0x36d24d[_0x21dc7f('0x59')]['offset'])),_0x7f8f54[_0x21dc7f('0x15')](_0x348727);})[_0x46fb49('0x1c')](function(_0x4d2b00){if(_0x4d2b00)return _0x4d2b00?{'count':_0x4d08bb,'rows':_0x4d2b00}:null;})[_0x46fb49('0x1c')](respondWithResult(_0x35b4c9,null))[_0x46fb49('0x38')](handleError(_0x35b4c9,null));},exports['addTeams']=function(_0x22a603,_0x5d191b){const _0x381c7b=_0x3da797,_0x347fd9=_0x22a603[_0x381c7b('0x1b')][_0x381c7b('0x5b')];return db[_0x381c7b('0x69')]['findAll']({'where':{'id':_0x347fd9},'attributes':['id'],'include':[{'model':db[_0x381c7b('0x1d')],'as':_0x381c7b('0x63'),'attributes':['id',_0x381c7b('0x1f'),_0x381c7b('0x40'),_0x381c7b('0x65'),_0x381c7b('0x3e')],'raw':!![]}]})['then'](function(_0x4a4f5d){const _0x16541f=_0x381c7b;if(_0x4a4f5d){const _0x6356a4=_['flatMap'](_0x4a4f5d,function(_0x872778){const _0x1d299b=_0x872778['get']({'plain':!![]});return _0x1d299b['Agents'];});return db['FaxQueue'][_0x16541f('0x31')]({'where':{'id':_0x22a603[_0x16541f('0x2b')]['id']}})['then'](function(_0x7dd0b){const _0xbdd49d=_0x16541f;return db[_0xbdd49d('0x6a')]['transaction'](function(_0x5ab88b){const _0x3dcec8=_0xbdd49d;return _0x7dd0b[_0x3dcec8('0x6f')](_0x347fd9,{'transaction':_0x5ab88b})[_0x3dcec8('0x1c')](function(){return Promise['each'](_0x6356a4,function(_0x45d6b6){const _0x2fa6a0=a212_0xde1c;return db[_0x2fa6a0('0x60')]['findOrCreate']({'where':{'UserId':_0x45d6b6['id'],'FaxQueueId':_0x22a603[_0x2fa6a0('0x2b')]['id']},'transaction':_0x5ab88b});});})[_0x3dcec8('0x1c')](function(){_0x6356a4['forEach'](function(_0x5ec0ef){const _0x288bb8=a212_0xde1c;socket[_0x288bb8('0x50')]('userFaxQueue:save',{'UserId':_0x5ec0ef['id'],'FaxQueueId':_0x7dd0b['id']});});});});});}})[_0x381c7b('0x1c')](respondWithStatusCode(_0x5d191b,null))[_0x381c7b('0x38')](handleError(_0x5d191b,null));},exports['removeTeams']=function(_0x1e2ab2,_0x376f67){const _0x15d846=_0x3da797;return db[_0x15d846('0x69')][_0x15d846('0x55')]({'where':{'id':_0x1e2ab2['query'][_0x15d846('0x5b')]},'attributes':['id'],'include':[{'model':db[_0x15d846('0x1d')],'as':_0x15d846('0x63'),'attributes':['id'],'raw':!![]}]})['then'](handleEntityNotFound(_0x376f67,null))[_0x15d846('0x1c')](function(_0x4dc27d){const _0x2bda8f=_0x15d846,_0x3a1c28=_[_0x2bda8f('0x35')](_0x4dc27d,'id');let _0x5aba06=[];const _0x340099=[],_0x20e759=squel[_0x2bda8f('0x2e')]();_0x20e759[_0x2bda8f('0x5e')](_0x2bda8f('0x8'))[_0x2bda8f('0x9')]('team_has_fax_queues','tq')['join']('user_has_teams','ut',_0x2bda8f('0x30'))[_0x2bda8f('0x4f')]('FaxQueueId\x20=\x20?',_0x1e2ab2[_0x2bda8f('0x2b')]['id']);for(let _0x433e21=0x0;_0x433e21<_0x4dc27d[_0x2bda8f('0x2f')];_0x433e21+=0x1){const _0xbe570f=_0x4dc27d[_0x433e21];for(let _0xd86760=0x0;_0xd86760<_0xbe570f['Agents'][_0x2bda8f('0x2f')];_0xd86760+=0x1){const _0x376660=_0xbe570f[_0x2bda8f('0x63')][_0xd86760],_0x5bc458=_0x20e759['clone']();_0x5bc458['where']('ut.UserId\x20=\x20?',_0x376660['id']),_0x340099['push'](db[_0x2bda8f('0x6a')]['query'](_0x5bc458[_0x2bda8f('0x32')](),{'type':db[_0x2bda8f('0x6a')][_0x2bda8f('0x27')][_0x2bda8f('0x12')]})['then'](function(_0xe5e60d){const _0x16942c=_0x2bda8f;if(_0xe5e60d[_0x16942c('0x2f')]===0x1)return _0x376660['id'];else{const _0x57d535=_[_0x16942c('0xa')](_['map'](_0xe5e60d,_0x16942c('0x1')),function(_0x330400){const _0x1e3793=_0x16942c;return _[_0x1e3793('0x3a')](_0x3a1c28,_0x330400);});if(_0x57d535)return _0x376660['id'];}}));}}return Promise[_0x2bda8f('0x23')](_0x340099)['then'](function(_0x524e79){const _0x28582e=_0x2bda8f;return _0x5aba06=_(_0x5aba06)[_0x28582e('0x2')](_0x524e79)[_0x28582e('0x41')]()[_0x28582e('0x2a')](),db['FaxQueue'][_0x28582e('0x31')]({'where':{'id':_0x1e2ab2[_0x28582e('0x2b')]['id']}})[_0x28582e('0x1c')](function(_0xaea449){const _0x40aa1d=_0x28582e;return db[_0x40aa1d('0x6a')][_0x40aa1d('0x52')](function(_0x5adf7f){const _0x21b1ab=_0x40aa1d;return _0xaea449[_0x21b1ab('0x4a')](_0x1e2ab2[_0x21b1ab('0x59')][_0x21b1ab('0x5b')],{'transaction':_0x5adf7f})['then'](function(){if(!_['isEmpty'](_0x5aba06))return _0xaea449['removeAgents'](_0x5aba06,{'transaction':_0x5adf7f});})[_0x21b1ab('0x1c')](function(){const _0x2e3a5d=_0x21b1ab;_0x5aba06[_0x2e3a5d('0x66')](function(_0x3bb9bc){const _0x4babb0=_0x2e3a5d;socket[_0x4babb0('0x50')]('userFaxQueue:remove',{'UserId':_0x3bb9bc,'FaxQueueId':_0xaea449['id']});});});});});});})['then'](respondWithStatusCode(_0x376f67,null))[_0x15d846('0x38')](handleError(_0x376f67,null));},exports[_0x3da797('0x6c')]=function(_0x19e345,_0x3c1543){const _0x3616ac=_0x3da797;return db['FaxQueue'][_0x3616ac('0x31')]({'where':{'id':_0x19e345[_0x3616ac('0x2b')]['id']}})['then'](function(_0x16fd79){const _0x540c4f=_0x3616ac;if(_0x16fd79)return _0x16fd79[_0x540c4f('0x6c')](_0x19e345[_0x540c4f('0x1b')][_0x540c4f('0x5b')],{'through':_[_0x540c4f('0x13')](_0x19e345['body'],['ids','id'])})[_0x540c4f('0x1c')](function(_0x17f9f0){const _0x128379=_0x540c4f;for(let _0x48c6f8=0x0;_0x48c6f8<_0x19e345[_0x128379('0x1b')][_0x128379('0x5b')][_0x128379('0x2f')];_0x48c6f8+=0x1){socket[_0x128379('0x50')](_0x128379('0xb'),{'UserId':_0x19e345['body'][_0x128379('0x5b')][_0x48c6f8],'FaxQueueId':_0x19e345[_0x128379('0x2b')]['id']});}return _0x17f9f0;});})[_0x3616ac('0x1c')](respondWithResult(_0x3c1543,null))[_0x3616ac('0x38')](handleError(_0x3c1543,null));},exports[_0x3da797('0x68')]=function(_0x1cd54c,_0x4b515e){const _0x2fdafa=_0x3da797;return db['FaxQueue']['findOne']({'where':{'id':_0x1cd54c[_0x2fdafa('0x2b')]['id']}})[_0x2fdafa('0x1c')](handleEntityNotFound(_0x4b515e,null))[_0x2fdafa('0x1c')](function(_0x217d40){const _0x234561=_0x2fdafa;if(_0x217d40)return _0x217d40[_0x234561('0x68')](_0x1cd54c['query'][_0x234561('0x5b')])[_0x234561('0x1c')](function(){const _0xddfe59=_0x234561;if(_[_0xddfe59('0x26')](_0x1cd54c[_0xddfe59('0x59')][_0xddfe59('0x5b')]))for(let _0x511050=0x0;_0x511050<_0x1cd54c[_0xddfe59('0x59')][_0xddfe59('0x5b')][_0xddfe59('0x2f')];_0x511050+=0x1){socket[_0xddfe59('0x50')](_0xddfe59('0x49'),{'UserId':Number(_0x1cd54c['query'][_0xddfe59('0x5b')][_0x511050]),'FaxQueueId':Number(_0x1cd54c[_0xddfe59('0x2b')]['id'])});}else socket[_0xddfe59('0x50')](_0xddfe59('0x49'),{'UserId':Number(_0x1cd54c[_0xddfe59('0x59')][_0xddfe59('0x5b')]),'FaxQueueId':Number(_0x1cd54c['params']['id'])});});})[_0x2fdafa('0x1c')](respondWithStatusCode(_0x4b515e,null))[_0x2fdafa('0x38')](handleError(_0x4b515e,null));},exports['getAgents']=function(_0x5283b1,_0x49c20c){const _0x1052c0=_0x3da797;let _0x308894={};const _0x45c61d={};let _0x3d98fd,_0x38d46e;return db[_0x1052c0('0x1a')][_0x1052c0('0x31')]({'where':{'id':_0x5283b1['params']['id']}})[_0x1052c0('0x1c')](handleEntityNotFound(_0x49c20c,null))[_0x1052c0('0x1c')](function(_0x5b70b0){const _0x3a91d8=_0x1052c0;if(_0x5b70b0)return _0x3d98fd=_0x5b70b0,_0x45c61d[_0x3a91d8('0x48')]=_['keys'](db['User']['rawAttributes']),_0x45c61d['query']=_['keys'](_0x5283b1[_0x3a91d8('0x59')]),_0x45c61d['filters']=_[_0x3a91d8('0x67')](_0x45c61d[_0x3a91d8('0x48')],_0x45c61d['query']),_0x308894[_0x3a91d8('0xc')]=_['intersection'](_0x45c61d[_0x3a91d8('0x48')],qs[_0x3a91d8('0x6')](_0x5283b1['query'][_0x3a91d8('0x6')])),_0x308894[_0x3a91d8('0xc')]=_0x308894[_0x3a91d8('0xc')]['length']?_0x308894[_0x3a91d8('0xc')]:_0x45c61d[_0x3a91d8('0x48')],_0x308894[_0x3a91d8('0x47')]=qs['sort'](_0x5283b1[_0x3a91d8('0x59')][_0x3a91d8('0x5a')]),_0x308894['where']=qs[_0x3a91d8('0x4e')](_[_0x3a91d8('0x3b')](_0x5283b1[_0x3a91d8('0x59')],_0x45c61d[_0x3a91d8('0x4e')])),_0x5283b1['query'][_0x3a91d8('0x5f')]&&(_0x308894['where']=_['merge'](_0x308894[_0x3a91d8('0x4f')],{[Op['or']]:_[_0x3a91d8('0x35')](_0x308894[_0x3a91d8('0xc')],function(_0x531270){const _0x4bbd76=_0x3a91d8,_0x3625b7={};return _0x3625b7[_0x531270]={[Op['like']]:'%'+_0x5283b1[_0x4bbd76('0x59')]['filter']+'%'},_0x3625b7;})})),_0x308894=_[_0x3a91d8('0x62')]({},_0x308894,_0x5283b1[_0x3a91d8('0xd')]),_0x3d98fd['getAgents'](_0x308894);})[_0x1052c0('0x1c')](function(_0x3056f3){const _0x2da66f=_0x1052c0;if(_0x3056f3)return _0x38d46e=_0x3056f3['length'],typeof _0x5283b1[_0x2da66f('0x59')][_0x2da66f('0x2c')]===_0x2da66f('0x54')&&(_0x308894[_0x2da66f('0x3d')]=qs[_0x2da66f('0x3d')](_0x5283b1[_0x2da66f('0x59')][_0x2da66f('0x3d')]),_0x308894[_0x2da66f('0x36')]=qs[_0x2da66f('0x36')](_0x5283b1['query'][_0x2da66f('0x36')])),_0x3d98fd[_0x2da66f('0x6e')](_0x308894);})[_0x1052c0('0x1c')](function(_0x2f4844){if(_0x2f4844)return _0x2f4844?{'count':_0x38d46e,'rows':_0x2f4844}:null;})[_0x1052c0('0x1c')](respondWithResult(_0x49c20c,null))[_0x1052c0('0x38')](handleError(_0x49c20c,null));}; \ No newline at end of file +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 diff --git a/server/api/faxQueue/faxQueue.events.js b/server/api/faxQueue/faxQueue.events.js index c344711..704e947 100644 --- a/server/api/faxQueue/faxQueue.events.js +++ b/server/api/faxQueue/faxQueue.events.js @@ -1 +1 @@ -const a213_0x214f=['setMaxListeners','addHook','emit','save','update','exports','remove','undefined'];(function(_0x42cfcc,_0x214f69){const _0x3abd8d=function(_0x2523c2){while(--_0x2523c2){_0x42cfcc['push'](_0x42cfcc['shift']());}};_0x3abd8d(++_0x214f69);}(a213_0x214f,0xca));const a213_0x3abd=function(_0x42cfcc,_0x214f69){_0x42cfcc=_0x42cfcc-0x0;let _0x3abd8d=a213_0x214f[_0x42cfcc];return _0x3abd8d;};const _0x3eefba=a213_0x3abd;'use strict';const EventEmitter=require('events'),FaxQueue=require('../../mysqldb')['db']['FaxQueue'],FaxQueueEvents=new EventEmitter();FaxQueueEvents[_0x3eefba('0x6')](0x0);const events={'afterCreate':_0x3eefba('0x1'),'afterUpdate':_0x3eefba('0x2'),'afterDestroy':_0x3eefba('0x4')};function emitEvent(_0x2523c2){return function(_0xc8853a){const _0x2176b1=a213_0x3abd;FaxQueueEvents[_0x2176b1('0x0')](_0x2523c2+':'+_0xc8853a['id'],_0xc8853a),FaxQueueEvents[_0x2176b1('0x0')](_0x2523c2,_0xc8853a);};}for(const e in events){if(typeof events[e]!==_0x3eefba('0x5')){const event=events[e];FaxQueue[_0x3eefba('0x7')](e,emitEvent(event));}}module[_0x3eefba('0x3')]=FaxQueueEvents; \ No newline at end of file +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 diff --git a/server/api/faxQueue/faxQueue.model.js b/server/api/faxQueue/faxQueue.model.js index 519186c..056c3ad 100644 --- a/server/api/faxQueue/faxQueue.model.js +++ b/server/api/faxQueue/faxQueue.model.js @@ -1 +1 @@ -const a214_0x1bb2=['./faxQueue.attributes','exports','define','FaxQueue'];(function(_0x241444,_0x1bb226){const _0x1cdb64=function(_0x22380e){while(--_0x22380e){_0x241444['push'](_0x241444['shift']());}};_0x1cdb64(++_0x1bb226);}(a214_0x1bb2,0x6f));const a214_0x1cdb=function(_0x241444,_0x1bb226){_0x241444=_0x241444-0x0;let _0x1cdb64=a214_0x1bb2[_0x241444];return _0x1cdb64;};const _0x47fd32=a214_0x1cdb;'use strict';const attributes=require(_0x47fd32('0x1'));module[_0x47fd32('0x2')]=function(_0x22380e){const _0x3a84ca=_0x47fd32,_0x3c8451=_0x22380e[_0x3a84ca('0x3')](_0x3a84ca('0x0'),attributes,{'tableName':'fax_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x3c8451;}; \ No newline at end of file +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 diff --git a/server/api/faxQueue/faxQueue.rpc.js b/server/api/faxQueue/faxQueue.rpc.js index d101920..bd801b6 100644 --- a/server/api/faxQueue/faxQueue.rpc.js +++ b/server/api/faxQueue/faxQueue.rpc.js @@ -1 +1 @@ -const a215_0x1790=['catch','info','../../rediscache','raw','FaxQueue','attributes','message','then','debug','../../config/logger','model','stringify','where','map','ShowFaxQueue','include','options','error','./faxQueue.socket','../../mysqldb','findAll'];(function(_0x3a422b,_0x1790c3){const _0x3af02f=function(_0x121582){while(--_0x121582){_0x3a422b['push'](_0x3a422b['shift']());}};_0x3af02f(++_0x1790c3);}(a215_0x1790,0x169));const a215_0x3af0=function(_0x3a422b,_0x1790c3){_0x3a422b=_0x3a422b-0x0;let _0x3af02f=a215_0x1790[_0x3a422b];return _0x3af02f;};const _0x10f164=a215_0x3af0;'use strict';const _=require('lodash'),db=require(_0x10f164('0xf'))['db'],logger=require(_0x10f164('0x5'))('rpc'),{getSocket}=require(_0x10f164('0x13')),socket=getSocket();require(_0x10f164('0xe'))['register'](socket),exports['GetFaxQueue']=function(_0x121582){const _0x39f75f=this;return new Promise(function(_0x4205fa,_0x4d2d06){const _0x4ad27=a215_0x3af0;return db[_0x4ad27('0x0')][_0x4ad27('0x10')]({'raw':_0x121582[_0x4ad27('0xc')]?_0x121582[_0x4ad27('0xc')]['raw']===undefined?!![]:![]:!![],'where':_0x121582[_0x4ad27('0xc')]?_0x121582[_0x4ad27('0xc')][_0x4ad27('0x8')]||null:null,'attributes':_0x121582[_0x4ad27('0xc')]?_0x121582['options'][_0x4ad27('0x1')]||null:null,'limit':_0x121582[_0x4ad27('0xc')]?_0x121582['options']['limit']||null:null,'include':_0x121582[_0x4ad27('0xc')]?_0x121582[_0x4ad27('0xc')][_0x4ad27('0xb')]?_['map'](_0x121582[_0x4ad27('0xc')][_0x4ad27('0xb')],function(_0x3b659f){const _0x4fdf47=_0x4ad27;return{'model':db[_0x3b659f['model']],'as':_0x3b659f['as'],'attributes':_0x3b659f[_0x4fdf47('0x1')],'include':_0x3b659f[_0x4fdf47('0xb')]?_['map'](_0x3b659f[_0x4fdf47('0xb')],function(_0x256f52){const _0x5d2df3=_0x4fdf47;return{'model':db[_0x256f52['model']],'as':_0x256f52['as'],'attributes':_0x256f52[_0x5d2df3('0x1')],'include':_0x256f52[_0x5d2df3('0xb')]?_['map'](_0x256f52[_0x5d2df3('0xb')],function(_0x52f4d0){const _0x1243d6=_0x5d2df3;return{'model':db[_0x52f4d0[_0x1243d6('0x6')]],'as':_0x52f4d0['as'],'attributes':_0x52f4d0[_0x1243d6('0x1')]};}):[]};}):[]};}):[]:[]})[_0x4ad27('0x3')](function(_0x14d66b){const _0x2b9790=_0x4ad27;logger[_0x2b9790('0x12')]('GetFaxQueue',_0x121582),logger[_0x2b9790('0x4')]('GetFaxQueue',_0x121582,JSON[_0x2b9790('0x7')](_0x14d66b)),_0x4205fa(_0x14d66b);})[_0x4ad27('0x11')](function(_0x32594a){const _0x3c638c=_0x4ad27;logger['error']('GetFaxQueue',_0x32594a[_0x3c638c('0x2')],_0x121582),_0x4d2d06(_0x39f75f[_0x3c638c('0xd')](0x1f4,_0x32594a['message']));});});},exports[_0x10f164('0xa')]=function(_0x141cc2){const _0x444276=this;return new Promise(function(_0xf4d62a,_0x394c3c){const _0x32e432=a215_0x3af0;return db[_0x32e432('0x0')]['findOne']({'raw':_0x141cc2[_0x32e432('0xc')]?_0x141cc2[_0x32e432('0xc')][_0x32e432('0x14')]===undefined?!![]:![]:!![],'where':_0x141cc2[_0x32e432('0xc')]?_0x141cc2[_0x32e432('0xc')][_0x32e432('0x8')]||null:null,'attributes':_0x141cc2[_0x32e432('0xc')]?_0x141cc2[_0x32e432('0xc')][_0x32e432('0x1')]||null:null,'include':_0x141cc2[_0x32e432('0xc')]?_0x141cc2[_0x32e432('0xc')][_0x32e432('0xb')]?_[_0x32e432('0x9')](_0x141cc2[_0x32e432('0xc')]['include'],function(_0x1e926e){const _0x30effe=_0x32e432;return{'model':db[_0x1e926e['model']],'as':_0x1e926e['as'],'attributes':_0x1e926e[_0x30effe('0x1')],'include':_0x1e926e[_0x30effe('0xb')]?_[_0x30effe('0x9')](_0x1e926e[_0x30effe('0xb')],function(_0x1c92c2){const _0xf5a76a=_0x30effe;return{'model':db[_0x1c92c2[_0xf5a76a('0x6')]],'as':_0x1c92c2['as'],'attributes':_0x1c92c2[_0xf5a76a('0x1')],'include':_0x1c92c2[_0xf5a76a('0xb')]?_[_0xf5a76a('0x9')](_0x1c92c2[_0xf5a76a('0xb')],function(_0x44bfc5){const _0x5a62b1=_0xf5a76a;return{'model':db[_0x44bfc5[_0x5a62b1('0x6')]],'as':_0x44bfc5['as'],'attributes':_0x44bfc5[_0x5a62b1('0x1')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x493ca3){const _0x5e99c0=_0x32e432;logger[_0x5e99c0('0x12')](_0x5e99c0('0xa'),_0x141cc2),logger[_0x5e99c0('0x4')]('ShowFaxQueue',_0x141cc2,JSON[_0x5e99c0('0x7')](_0x493ca3)),_0xf4d62a(_0x493ca3);})['catch'](function(_0xfe1176){const _0x5aaf5a=_0x32e432;logger[_0x5aaf5a('0xd')]('ShowFaxQueue',_0xfe1176[_0x5aaf5a('0x2')],_0x141cc2),_0x394c3c(_0x444276[_0x5aaf5a('0xd')](0x1f4,_0xfe1176[_0x5aaf5a('0x2')]));});});}; \ No newline at end of file +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 diff --git a/server/api/faxQueue/faxQueue.socket.js b/server/api/faxQueue/faxQueue.socket.js index bc279af..214349a 100644 --- a/server/api/faxQueue/faxQueue.socket.js +++ b/server/api/faxQueue/faxQueue.socket.js @@ -1 +1 @@ -const a216_0x37d3=['update','./faxQueue.events','faxQueue:','remove','emit','save'];(function(_0xb4536a,_0x37d392){const _0x450e97=function(_0x2bd191){while(--_0x2bd191){_0xb4536a['push'](_0xb4536a['shift']());}};_0x450e97(++_0x37d392);}(a216_0x37d3,0x178));const a216_0x450e=function(_0xb4536a,_0x37d392){_0xb4536a=_0xb4536a-0x0;let _0x450e97=a216_0x37d3[_0xb4536a];return _0x450e97;};const _0x5848a8=a216_0x450e;'use strict';const FaxQueueEvents=require(_0x5848a8('0x3')),events=[_0x5848a8('0x1'),_0x5848a8('0x5'),_0x5848a8('0x2')];function createListener(_0x2bd191,_0xeff5cc){return function(_0x34990d){const _0x126dfe=a216_0x450e;_0xeff5cc[_0x126dfe('0x0')](_0x2bd191,_0x34990d);};}exports['register']=function(_0x48b7db){const _0x1dc9af=_0x5848a8;for(let _0x295b9b=0x0,_0x27111e=events['length'];_0x295b9b<_0x27111e;_0x295b9b++){const _0x51a4a5=events[_0x295b9b],_0x393466=createListener(_0x1dc9af('0x4')+_0x51a4a5,_0x48b7db);FaxQueueEvents['on'](_0x51a4a5,_0x393466);}}; \ No newline at end of file +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 diff --git a/server/api/faxQueue/index.js b/server/api/faxQueue/index.js index 23511b1..6dcf11f 100644 --- a/server/api/faxQueue/index.js +++ b/server/api/faxQueue/index.js @@ -1 +1 @@ -const a217_0x3728=['destroy','index','post','show','/:id/teams','express','getTeams','removeAgents','addTeams','addAgents','create','/:id/members','describe','/:id/users','Router','isAuthenticated','./faxQueue.controller','/:id','exports','get','delete','removeTeams','/describe','put'];(function(_0x476c86,_0x3728da){const _0x5a0895=function(_0x1e0455){while(--_0x1e0455){_0x476c86['push'](_0x476c86['shift']());}};_0x5a0895(++_0x3728da);}(a217_0x3728,0x1de));const a217_0x5a08=function(_0x476c86,_0x3728da){_0x476c86=_0x476c86-0x0;let _0x5a0895=a217_0x3728[_0x476c86];return _0x5a0895;};const _0x1b2fbe=a217_0x5a08;'use strict';const express=require(_0x1b2fbe('0x7')),router=express[_0x1b2fbe('0x10')](),auth=require('../../components/auth/service'),controller=require(_0x1b2fbe('0x12'));router[_0x1b2fbe('0x15')]('/',auth[_0x1b2fbe('0x11')](),controller[_0x1b2fbe('0x3')]),router['get'](_0x1b2fbe('0x0'),auth[_0x1b2fbe('0x11')](),controller[_0x1b2fbe('0xe')]),router['get']('/:id',auth['isAuthenticated'](),controller[_0x1b2fbe('0x5')]),router[_0x1b2fbe('0x15')](_0x1b2fbe('0xd'),auth[_0x1b2fbe('0x11')](),controller['getMembers']),router['get'](_0x1b2fbe('0x6'),auth[_0x1b2fbe('0x11')](),controller[_0x1b2fbe('0x8')]),router[_0x1b2fbe('0x15')](_0x1b2fbe('0xf'),auth[_0x1b2fbe('0x11')](),controller['getAgents']),router[_0x1b2fbe('0x4')]('/',auth[_0x1b2fbe('0x11')](),controller[_0x1b2fbe('0xc')]),router['post'](_0x1b2fbe('0x6'),auth[_0x1b2fbe('0x11')](),controller[_0x1b2fbe('0xa')]),router[_0x1b2fbe('0x4')](_0x1b2fbe('0xf'),auth[_0x1b2fbe('0x11')](),controller[_0x1b2fbe('0xb')]),router[_0x1b2fbe('0x1')](_0x1b2fbe('0x13'),auth[_0x1b2fbe('0x11')](),controller['update']),router[_0x1b2fbe('0x16')]('/:id',auth['isAuthenticated'](),controller[_0x1b2fbe('0x2')]),router[_0x1b2fbe('0x16')](_0x1b2fbe('0x6'),auth['isAuthenticated'](),controller[_0x1b2fbe('0x17')]),router[_0x1b2fbe('0x16')]('/:id/users',auth['isAuthenticated'](),controller[_0x1b2fbe('0x9')]),module[_0x1b2fbe('0x14')]=router; \ No newline at end of file +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 diff --git a/server/api/faxQueueReport/faxQueueReport.attributes.js b/server/api/faxQueueReport/faxQueueReport.attributes.js index b2f61ae..4192354 100644 --- a/server/api/faxQueueReport/faxQueueReport.attributes.js +++ b/server/api/faxQueueReport/faxQueueReport.attributes.js @@ -1 +1 @@ -const a218_0x4831=['STRING','sequelize','DATE'];(function(_0x3e29f3,_0x4831f9){const _0x5dd540=function(_0x9e96f6){while(--_0x9e96f6){_0x3e29f3['push'](_0x3e29f3['shift']());}};_0x5dd540(++_0x4831f9);}(a218_0x4831,0x154));const a218_0x5dd5=function(_0x3e29f3,_0x4831f9){_0x3e29f3=_0x3e29f3-0x0;let _0x5dd540=a218_0x4831[_0x3e29f3];return _0x5dd540;};const _0x620a0=a218_0x5dd5;'use strict';const Sequelize=require(_0x620a0('0x0'));module['exports']={'uniqueid':{'type':Sequelize['STRING'],'allowNull':![]},'from':{'type':Sequelize[_0x620a0('0x2')]},'joinAt':{'type':Sequelize[_0x620a0('0x1')]},'leaveAt':{'type':Sequelize['DATE']},'acceptAt':{'type':Sequelize[_0x620a0('0x1')]},'exitAt':{'type':Sequelize[_0x620a0('0x1')]},'reason':{'type':Sequelize[_0x620a0('0x2')]}}; \ No newline at end of file +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 diff --git a/server/api/faxQueueReport/faxQueueReport.controller.js b/server/api/faxQueueReport/faxQueueReport.controller.js index 27cb7d4..dfbc4e2 100644 --- a/server/api/faxQueueReport/faxQueueReport.controller.js +++ b/server/api/faxQueueReport/faxQueueReport.controller.js @@ -1 +1 @@ -const a219_0x4c18=['name','include','error','destroy','body','map','then','json','fields','filter','where','intersection','findAll','lodash','sort','../../mysqldb','options','merge','keys','sequelize','set','key','Content-Range','nolimit','stack','findOne','describe','catch','undefined','VIRTUAL','end','../../config/logger','params','FaxQueueReport','type','limit','attributes','rawAttributes','rows','update','filters','api','fieldName','index','create','query','offset','status','length','show','send','includeAll','count','sendStatus','model'];(function(_0x503bb3,_0x4c18df){const _0x41e97c=function(_0x3842c7){while(--_0x3842c7){_0x503bb3['push'](_0x503bb3['shift']());}};_0x41e97c(++_0x4c18df);}(a219_0x4c18,0x17f));const a219_0x41e9=function(_0x503bb3,_0x4c18df){_0x503bb3=_0x503bb3-0x0;let _0x41e97c=a219_0x4c18[_0x503bb3];return _0x41e97c;};const _0x1bd638=a219_0x41e9;'use strict';const _=require(_0x1bd638('0xf')),qs=require('../../components/parsers/qs'),logger=require(_0x1bd638('0x21'))(_0x1bd638('0x2b')),db=require(_0x1bd638('0x11'))['db'],{Op}=require(_0x1bd638('0x15'));function respondWithResult(_0x3842c7,_0x197738){return _0x197738=_0x197738||0xc8,function(_0x2bf42f){const _0x3c2ed8=a219_0x41e9;if(_0x2bf42f)return _0x3842c7[_0x3c2ed8('0x31')](_0x197738)['json'](_0x2bf42f);};}function respondWithFilteredResult(_0x1bfeed,_0x2937ff){return function(_0x22175c){const _0x3ab838=a219_0x41e9;if(_0x22175c){const _0xac8758=_0x22175c[_0x3ab838('0x36')],_0x4a4348=_0x2937ff['offset'];let _0xb156f9=_0x2937ff[_0x3ab838('0x30')]+_0x2937ff['limit'],_0x54acc1;return _0xb156f9>=_0xac8758?(_0xb156f9=_0xac8758,_0x54acc1=0xc8):_0x54acc1=0xce,_0x1bfeed[_0x3ab838('0x31')](_0x54acc1),_0x1bfeed[_0x3ab838('0x16')](_0x3ab838('0x18'),_0x4a4348+'-'+_0xb156f9+'/'+_0xac8758)[_0x3ab838('0x9')](_0x22175c);}return null;};}function saveUpdates(_0xae6a65){return function(_0xbc3914){const _0x334a5d=a219_0x41e9;if(_0xbc3914)return _0xbc3914[_0x334a5d('0x29')](_0xae6a65)['then'](function(_0x598784){return _0x598784;});return null;};}function removeEntity(_0x392d3b){return function(_0x5c0622){const _0x6aa694=a219_0x41e9;if(_0x5c0622)return _0x5c0622['destroy']()[_0x6aa694('0x8')](function(){const _0x1a5396=_0x6aa694;_0x392d3b['status'](0xcc)[_0x1a5396('0x20')]();});};}function handleEntityNotFound(_0x198540){return function(_0x5f3b44){const _0x327035=a219_0x41e9;return!_0x5f3b44&&_0x198540[_0x327035('0x0')](0x194),_0x5f3b44;};}function handleError(_0x596c02,_0x57aeac){return _0x57aeac=_0x57aeac||0x1f4,function(_0x110539){const _0x210d75=a219_0x41e9;logger[_0x210d75('0x4')](_0x110539[_0x210d75('0x1a')]),_0x110539[_0x210d75('0x2')]&&delete _0x110539[_0x210d75('0x2')],_0x596c02[_0x210d75('0x31')](_0x57aeac)[_0x210d75('0x34')](_0x110539);};}exports[_0x1bd638('0x2d')]=function(_0x4cfcc6,_0x1d7ab3){const _0x17c38e=_0x1bd638;let _0x2acd40={};const _0x2eb9e2={},_0x44b5d0={'count':0x0,'rows':[]},_0x5a55ae=_[_0x17c38e('0x7')](db['FaxQueueReport']['rawAttributes'],function(_0xaccc1b){const _0x46ced1=_0x17c38e;return{'name':_0xaccc1b[_0x46ced1('0x2c')],'type':_0xaccc1b['type'][_0x46ced1('0x17')]};});_0x2eb9e2['model']=_[_0x17c38e('0x7')](_0x5a55ae,_0x17c38e('0x2')),_0x2eb9e2['query']=_[_0x17c38e('0x14')](_0x4cfcc6[_0x17c38e('0x2f')]),_0x2eb9e2[_0x17c38e('0x2a')]=_[_0x17c38e('0xd')](_0x2eb9e2['model'],_0x2eb9e2['query']),_0x2acd40[_0x17c38e('0x26')]=_[_0x17c38e('0xd')](_0x2eb9e2[_0x17c38e('0x1')],qs[_0x17c38e('0xa')](_0x4cfcc6[_0x17c38e('0x2f')][_0x17c38e('0xa')])),_0x2acd40[_0x17c38e('0x26')]=_0x2acd40[_0x17c38e('0x26')][_0x17c38e('0x32')]?_0x2acd40['attributes']:_0x2eb9e2[_0x17c38e('0x1')];typeof _0x4cfcc6[_0x17c38e('0x2f')][_0x17c38e('0x19')]===_0x17c38e('0x1e')&&(_0x2acd40['limit']=qs[_0x17c38e('0x25')](_0x4cfcc6['query'][_0x17c38e('0x25')]),_0x2acd40[_0x17c38e('0x30')]=qs[_0x17c38e('0x30')](_0x4cfcc6[_0x17c38e('0x2f')][_0x17c38e('0x30')]));_0x2acd40['order']=qs[_0x17c38e('0x10')](_0x4cfcc6['query'][_0x17c38e('0x10')]),_0x2acd40[_0x17c38e('0xc')]=qs[_0x17c38e('0x2a')](_['pick'](_0x4cfcc6[_0x17c38e('0x2f')],_0x2eb9e2[_0x17c38e('0x2a')]),_0x5a55ae);_0x4cfcc6['query'][_0x17c38e('0xb')]&&(_0x2acd40[_0x17c38e('0xc')]=_['merge'](_0x2acd40[_0x17c38e('0xc')],{[Op['or']]:_[_0x17c38e('0x7')](_0x5a55ae,function(_0x55d91e){const _0x1b0789=_0x17c38e;if(_0x55d91e[_0x1b0789('0x24')]!==_0x1b0789('0x1f')){const _0xef25e={};return _0xef25e[_0x55d91e['name']]={[Op['like']]:'%'+_0x4cfcc6[_0x1b0789('0x2f')][_0x1b0789('0xb')]+'%'},_0xef25e;}})}));_0x2acd40=_[_0x17c38e('0x13')]({},_0x2acd40,_0x4cfcc6[_0x17c38e('0x12')]);const _0x3e3bdd={'where':_0x2acd40[_0x17c38e('0xc')]};return db[_0x17c38e('0x23')][_0x17c38e('0x36')](_0x3e3bdd)[_0x17c38e('0x8')](function(_0x1361b6){const _0x4f0516=_0x17c38e;return _0x44b5d0[_0x4f0516('0x36')]=_0x1361b6,_0x4cfcc6[_0x4f0516('0x2f')][_0x4f0516('0x35')]&&(_0x2acd40['include']=[{'all':!![]}]),db[_0x4f0516('0x23')][_0x4f0516('0xe')](_0x2acd40);})[_0x17c38e('0x8')](function(_0x4abb35){const _0x29ca85=_0x17c38e;return _0x44b5d0[_0x29ca85('0x28')]=_0x4abb35,_0x44b5d0;})[_0x17c38e('0x8')](respondWithFilteredResult(_0x1d7ab3,_0x2acd40))[_0x17c38e('0x1d')](handleError(_0x1d7ab3,null));},exports[_0x1bd638('0x33')]=function(_0x374dbb,_0x1921c5){const _0x1bcdb2=_0x1bd638;let _0x359e5a={'raw':!![],'where':{'id':_0x374dbb[_0x1bcdb2('0x22')]['id']}};const _0x1c3866={};return _0x1c3866[_0x1bcdb2('0x1')]=_[_0x1bcdb2('0x14')](db['FaxQueueReport'][_0x1bcdb2('0x27')]),_0x1c3866[_0x1bcdb2('0x2f')]=_['keys'](_0x374dbb[_0x1bcdb2('0x2f')]),_0x1c3866[_0x1bcdb2('0x2a')]=_[_0x1bcdb2('0xd')](_0x1c3866['model'],_0x1c3866[_0x1bcdb2('0x2f')]),_0x359e5a[_0x1bcdb2('0x26')]=_['intersection'](_0x1c3866[_0x1bcdb2('0x1')],qs['fields'](_0x374dbb[_0x1bcdb2('0x2f')][_0x1bcdb2('0xa')])),_0x359e5a['attributes']=_0x359e5a[_0x1bcdb2('0x26')][_0x1bcdb2('0x32')]?_0x359e5a[_0x1bcdb2('0x26')]:_0x1c3866[_0x1bcdb2('0x1')],_0x374dbb[_0x1bcdb2('0x2f')]['includeAll']&&(_0x359e5a[_0x1bcdb2('0x3')]=[{'all':!![]}]),_0x359e5a=_[_0x1bcdb2('0x13')]({},_0x359e5a,_0x374dbb[_0x1bcdb2('0x12')]),db[_0x1bcdb2('0x23')][_0x1bcdb2('0x1b')](_0x359e5a)[_0x1bcdb2('0x8')](handleEntityNotFound(_0x1921c5,null))[_0x1bcdb2('0x8')](respondWithResult(_0x1921c5,null))[_0x1bcdb2('0x1d')](handleError(_0x1921c5,null));},exports[_0x1bd638('0x2e')]=function(_0x3c7aec,_0x21bd88){const _0x261f32=_0x1bd638;return db[_0x261f32('0x23')][_0x261f32('0x2e')](_0x3c7aec['body'],{})[_0x261f32('0x8')](respondWithResult(_0x21bd88,0xc9))[_0x261f32('0x1d')](handleError(_0x21bd88,null));},exports[_0x1bd638('0x29')]=function(_0xbfa58a,_0x338cbe){const _0x3030e3=_0x1bd638;return _0xbfa58a['body']['id']&&delete _0xbfa58a[_0x3030e3('0x6')]['id'],db[_0x3030e3('0x23')][_0x3030e3('0x1b')]({'where':{'id':_0xbfa58a['params']['id']}})['then'](handleEntityNotFound(_0x338cbe,null))[_0x3030e3('0x8')](saveUpdates(_0xbfa58a[_0x3030e3('0x6')],null))['then'](respondWithResult(_0x338cbe,null))[_0x3030e3('0x1d')](handleError(_0x338cbe,null));},exports[_0x1bd638('0x5')]=function(_0x400a77,_0x474b5d){const _0x4efc1b=_0x1bd638;return db[_0x4efc1b('0x23')][_0x4efc1b('0x1b')]({'where':{'id':_0x400a77[_0x4efc1b('0x22')]['id']}})[_0x4efc1b('0x8')](handleEntityNotFound(_0x474b5d,null))[_0x4efc1b('0x8')](removeEntity(_0x474b5d,null))[_0x4efc1b('0x1d')](handleError(_0x474b5d,null));},exports['describe']=function(_0x210dac,_0x58d745){const _0x14172e=_0x1bd638;return db['FaxQueueReport'][_0x14172e('0x1c')]()[_0x14172e('0x8')](respondWithResult(_0x58d745,null))[_0x14172e('0x1d')](handleError(_0x58d745,null));}; \ No newline at end of file +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 diff --git a/server/api/faxQueueReport/faxQueueReport.model.js b/server/api/faxQueueReport/faxQueueReport.model.js index 2f1884c..731abb7 100644 --- a/server/api/faxQueueReport/faxQueueReport.model.js +++ b/server/api/faxQueueReport/faxQueueReport.model.js @@ -1 +1 @@ -const a220_0x497f=['exports','report_fax_queue','./faxQueueReport.attributes','FaxQueueReport','define'];(function(_0x5ba716,_0x497f91){const _0x98c329=function(_0x1944c4){while(--_0x1944c4){_0x5ba716['push'](_0x5ba716['shift']());}};_0x98c329(++_0x497f91);}(a220_0x497f,0x1d9));const a220_0x98c3=function(_0x5ba716,_0x497f91){_0x5ba716=_0x5ba716-0x0;let _0x98c329=a220_0x497f[_0x5ba716];return _0x98c329;};const _0x220f9e=a220_0x98c3;'use strict';const attributes=require(_0x220f9e('0x4'));module[_0x220f9e('0x2')]=function(_0x1944c4){const _0x32ceec=_0x220f9e,_0x35f15b=_0x1944c4[_0x32ceec('0x1')](_0x32ceec('0x0'),attributes,{'tableName':_0x32ceec('0x3'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});return _0x35f15b;}; \ No newline at end of file +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 diff --git a/server/api/faxQueueReport/faxQueueReport.rpc.js b/server/api/faxQueueReport/faxQueueReport.rpc.js index 3883fae..1c56257 100644 --- a/server/api/faxQueueReport/faxQueueReport.rpc.js +++ b/server/api/faxQueueReport/faxQueueReport.rpc.js @@ -1 +1 @@ -const a221_0x5d4b=['../../config/logger','error','attributes','debug','options','rpc','CreateFaxQueueReport','update','info','limit','where','catch','raw','message','then','UpdateFaxQueueReport','create','FaxQueueReport','body','stringify'];(function(_0x34265d,_0x5d4b8c){const _0x2baee7=function(_0x1a5db6){while(--_0x1a5db6){_0x34265d['push'](_0x34265d['shift']());}};_0x2baee7(++_0x5d4b8c);}(a221_0x5d4b,0xfe));const a221_0x2bae=function(_0x34265d,_0x5d4b8c){_0x34265d=_0x34265d-0x0;let _0x2baee7=a221_0x5d4b[_0x34265d];return _0x2baee7;};const _0x441995=a221_0x2bae;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x441995('0x6'))(_0x441995('0xb'));exports[_0x441995('0xc')]=function(_0x1a5db6){const _0x28159d=this;return new Promise(function(_0x4dcb6b,_0x3dc82d){const _0x376405=a221_0x2bae;return db[_0x376405('0x3')][_0x376405('0x2')](_0x1a5db6['body'],{'raw':_0x1a5db6[_0x376405('0xa')]?_0x1a5db6['options'][_0x376405('0x12')]===undefined?!![]:![]:!![]})[_0x376405('0x0')](function(_0x1a9d5f){const _0x4a2c9e=_0x376405;logger['info'](_0x4a2c9e('0xc'),_0x1a5db6),logger[_0x4a2c9e('0x9')]('CreateFaxQueueReport',_0x1a5db6,JSON['stringify'](_0x1a9d5f)),_0x4dcb6b(_0x1a9d5f);})[_0x376405('0x11')](function(_0x260be1){const _0x1a8f4c=_0x376405;logger[_0x1a8f4c('0x7')](_0x1a8f4c('0xc'),_0x260be1[_0x1a8f4c('0x13')],_0x1a5db6),_0x3dc82d(_0x28159d[_0x1a8f4c('0x7')](0x1f4,_0x260be1[_0x1a8f4c('0x13')]));});});},exports[_0x441995('0x1')]=function(_0x553d5e){const _0x634b7c=this;return new Promise(function(_0x245a46,_0x213c4e){const _0x91d279=a221_0x2bae;return db[_0x91d279('0x3')][_0x91d279('0xd')](_0x553d5e[_0x91d279('0x4')],{'raw':_0x553d5e[_0x91d279('0xa')]?_0x553d5e['options'][_0x91d279('0x12')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x553d5e[_0x91d279('0xa')]?_0x553d5e['options'][_0x91d279('0x10')]||null:null,'attributes':_0x553d5e[_0x91d279('0xa')]?_0x553d5e[_0x91d279('0xa')][_0x91d279('0x8')]||null:null,'limit':_0x553d5e[_0x91d279('0xa')]?_0x553d5e[_0x91d279('0xa')][_0x91d279('0xf')]||null:null})['then'](function(_0x502b1a){const _0x2a3987=_0x91d279;logger[_0x2a3987('0xe')]('UpdateFaxQueueReport',_0x553d5e),logger[_0x2a3987('0x9')](_0x2a3987('0x1'),_0x553d5e,JSON[_0x2a3987('0x5')](_0x502b1a)),_0x245a46(_0x502b1a);})[_0x91d279('0x11')](function(_0x4b8262){const _0x5525d6=_0x91d279;logger[_0x5525d6('0x7')]('UpdateFaxQueueReport',_0x4b8262[_0x5525d6('0x13')],_0x553d5e),_0x213c4e(_0x634b7c[_0x5525d6('0x7')](0x1f4,_0x4b8262[_0x5525d6('0x13')]));});});}; \ No newline at end of file +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 diff --git a/server/api/faxQueueReport/index.js b/server/api/faxQueueReport/index.js index f86170c..e0f947d 100644 --- a/server/api/faxQueueReport/index.js +++ b/server/api/faxQueueReport/index.js @@ -1 +1 @@ -const a222_0x37b6=['post','show','put','isAuthenticated','get','Router','./faxQueueReport.controller','destroy','delete','express','exports','../../components/auth/service','describe','/:id','update'];(function(_0x1c0f11,_0x37b607){const _0x4730ff=function(_0x6295b9){while(--_0x6295b9){_0x1c0f11['push'](_0x1c0f11['shift']());}};_0x4730ff(++_0x37b607);}(a222_0x37b6,0xe4));const a222_0x4730=function(_0x1c0f11,_0x37b607){_0x1c0f11=_0x1c0f11-0x0;let _0x4730ff=a222_0x37b6[_0x1c0f11];return _0x4730ff;};const _0x434fde=a222_0x4730;'use strict';const express=require(_0x434fde('0x6')),router=express[_0x434fde('0x2')](),auth=require(_0x434fde('0x8')),controller=require(_0x434fde('0x3'));router[_0x434fde('0x1')]('/',auth[_0x434fde('0x0')](),controller['index']),router[_0x434fde('0x1')]('/describe',auth[_0x434fde('0x0')](),controller[_0x434fde('0x9')]),router[_0x434fde('0x1')](_0x434fde('0xa'),auth[_0x434fde('0x0')](),controller[_0x434fde('0xd')]),router[_0x434fde('0xc')]('/',auth[_0x434fde('0x0')](),controller['create']),router[_0x434fde('0xe')]('/:id',auth['isAuthenticated'](),controller[_0x434fde('0xb')]),router[_0x434fde('0x5')](_0x434fde('0xa'),auth['isAuthenticated'](),controller[_0x434fde('0x4')]),module[_0x434fde('0x7')]=router; \ No newline at end of file +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 diff --git a/server/api/faxTransferReport/faxTransferReport.attributes.js b/server/api/faxTransferReport/faxTransferReport.attributes.js index dbb6e6b..46d20d1 100644 --- a/server/api/faxTransferReport/faxTransferReport.attributes.js +++ b/server/api/faxTransferReport/faxTransferReport.attributes.js @@ -1 +1 @@ -const a223_0xe915=['agent','exports','STRING','NOW','queue','account'];(function(_0x43edbe,_0xe9158b){const _0x536549=function(_0x53f008){while(--_0x53f008){_0x43edbe['push'](_0x43edbe['shift']());}};_0x536549(++_0xe9158b);}(a223_0xe915,0x194));const a223_0x5365=function(_0x43edbe,_0xe9158b){_0x43edbe=_0x43edbe-0x0;let _0x536549=a223_0xe915[_0x43edbe];return _0x536549;};const _0x20d2dd=a223_0x5365;'use strict';const Sequelize=require('sequelize');module[_0x20d2dd('0x5')]={'uniqueid':{'type':Sequelize[_0x20d2dd('0x0')],'allowNull':![]},'type':{'type':Sequelize['ENUM'](_0x20d2dd('0x3'),_0x20d2dd('0x4'),_0x20d2dd('0x2')),'allowNull':![],'defaultValue':_0x20d2dd('0x2')},'transferredAt':{'type':Sequelize['DATE'],'allowNull':![],'defaultValue':Sequelize[_0x20d2dd('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/faxTransferReport/faxTransferReport.controller.js b/server/api/faxTransferReport/faxTransferReport.controller.js index d05331b..ab82e0c 100644 --- a/server/api/faxTransferReport/faxTransferReport.controller.js +++ b/server/api/faxTransferReport/faxTransferReport.controller.js @@ -1 +1 @@ -const a224_0x2b9d=['sort','count','length','keys','rows','findAll','body','status','filter','../../components/parsers/qs','query','create','stack','name','type','offset','params','model','order','FaxTransferReport','rawAttributes','../../config/logger','include','catch','error','merge','map','fields','VIRTUAL','fieldName','intersection','includeAll','api','pick','end','filters','Content-Range','update','lodash','show','findOne','then','sendStatus','options','describe','nolimit','../../mysqldb','set','index','undefined','attributes','where','key','limit','json'];(function(_0x102778,_0x2b9d23){const _0x2d2321=function(_0x4d6de5){while(--_0x4d6de5){_0x102778['push'](_0x102778['shift']());}};_0x2d2321(++_0x2b9d23);}(a224_0x2b9d,0x101));const a224_0x2d23=function(_0x102778,_0x2b9d23){_0x102778=_0x102778-0x0;let _0x2d2321=a224_0x2b9d[_0x102778];return _0x2d2321;};const _0x5c91b1=a224_0x2d23;'use strict';const _=require(_0x5c91b1('0x1')),qs=require(_0x5c91b1('0x1b')),logger=require(_0x5c91b1('0x27'))(_0x5c91b1('0x32')),db=require(_0x5c91b1('0x9'))['db'],{Op}=require('sequelize');function respondWithResult(_0x4d6de5,_0x5da353){return _0x5da353=_0x5da353||0xc8,function(_0x431ae8){const _0x3581d6=a224_0x2d23;if(_0x431ae8)return _0x4d6de5[_0x3581d6('0x19')](_0x5da353)[_0x3581d6('0x11')](_0x431ae8);};}function respondWithFilteredResult(_0x2bca7f,_0x5017a7){return function(_0x184bbd){const _0x3eea8d=a224_0x2d23;if(_0x184bbd){const _0x58cfa0=_0x184bbd[_0x3eea8d('0x13')],_0x5b966b=_0x5017a7['offset'];let _0x17f3ed=_0x5017a7['offset']+_0x5017a7[_0x3eea8d('0x10')],_0x153cc9;return _0x17f3ed>=_0x58cfa0?(_0x17f3ed=_0x58cfa0,_0x153cc9=0xc8):_0x153cc9=0xce,_0x2bca7f[_0x3eea8d('0x19')](_0x153cc9),_0x2bca7f[_0x3eea8d('0xa')](_0x3eea8d('0x36'),_0x5b966b+'-'+_0x17f3ed+'/'+_0x58cfa0)['json'](_0x184bbd);}return null;};}function saveUpdates(_0x202219){return function(_0x558732){const _0x3bb7b8=a224_0x2d23;if(_0x558732)return _0x558732[_0x3bb7b8('0x0')](_0x202219)[_0x3bb7b8('0x4')](function(_0x289810){return _0x289810;});return null;};}function removeEntity(_0x169b34){return function(_0x4ae962){const _0x5a6e7e=a224_0x2d23;if(_0x4ae962)return _0x4ae962['destroy']()[_0x5a6e7e('0x4')](function(){const _0xb79636=_0x5a6e7e;_0x169b34[_0xb79636('0x19')](0xcc)[_0xb79636('0x34')]();});};}function handleEntityNotFound(_0x2aa102){return function(_0x5340fb){const _0x916f4d=a224_0x2d23;return!_0x5340fb&&_0x2aa102[_0x916f4d('0x5')](0x194),_0x5340fb;};}function handleError(_0x5093ea,_0x2bc408){return _0x2bc408=_0x2bc408||0x1f4,function(_0xb24164){const _0x5a83bd=a224_0x2d23;logger[_0x5a83bd('0x2a')](_0xb24164[_0x5a83bd('0x1e')]),_0xb24164[_0x5a83bd('0x1f')]&&delete _0xb24164[_0x5a83bd('0x1f')],_0x5093ea[_0x5a83bd('0x19')](_0x2bc408)['send'](_0xb24164);};}exports[_0x5c91b1('0xb')]=function(_0x2d454f,_0x56ecd4){const _0x2f2f96=_0x5c91b1;let _0x1c43c8={};const _0x5cbdf4={},_0x121441={'count':0x0,'rows':[]},_0x337677=_[_0x2f2f96('0x2c')](db[_0x2f2f96('0x25')][_0x2f2f96('0x26')],function(_0x12143a){const _0x5caed3=_0x2f2f96;return{'name':_0x12143a[_0x5caed3('0x2f')],'type':_0x12143a['type'][_0x5caed3('0xf')]};});_0x5cbdf4[_0x2f2f96('0x23')]=_['map'](_0x337677,_0x2f2f96('0x1f')),_0x5cbdf4[_0x2f2f96('0x1c')]=_[_0x2f2f96('0x15')](_0x2d454f['query']),_0x5cbdf4['filters']=_[_0x2f2f96('0x30')](_0x5cbdf4[_0x2f2f96('0x23')],_0x5cbdf4['query']),_0x1c43c8[_0x2f2f96('0xd')]=_[_0x2f2f96('0x30')](_0x5cbdf4[_0x2f2f96('0x23')],qs[_0x2f2f96('0x2d')](_0x2d454f['query'][_0x2f2f96('0x2d')])),_0x1c43c8[_0x2f2f96('0xd')]=_0x1c43c8[_0x2f2f96('0xd')][_0x2f2f96('0x14')]?_0x1c43c8[_0x2f2f96('0xd')]:_0x5cbdf4[_0x2f2f96('0x23')];typeof _0x2d454f[_0x2f2f96('0x1c')][_0x2f2f96('0x8')]===_0x2f2f96('0xc')&&(_0x1c43c8[_0x2f2f96('0x10')]=qs[_0x2f2f96('0x10')](_0x2d454f[_0x2f2f96('0x1c')][_0x2f2f96('0x10')]),_0x1c43c8[_0x2f2f96('0x21')]=qs[_0x2f2f96('0x21')](_0x2d454f[_0x2f2f96('0x1c')][_0x2f2f96('0x21')]));_0x1c43c8[_0x2f2f96('0x24')]=qs[_0x2f2f96('0x12')](_0x2d454f[_0x2f2f96('0x1c')][_0x2f2f96('0x12')]),_0x1c43c8[_0x2f2f96('0xe')]=qs[_0x2f2f96('0x35')](_[_0x2f2f96('0x33')](_0x2d454f[_0x2f2f96('0x1c')],_0x5cbdf4[_0x2f2f96('0x35')]),_0x337677);_0x2d454f[_0x2f2f96('0x1c')][_0x2f2f96('0x1a')]&&(_0x1c43c8['where']=_['merge'](_0x1c43c8['where'],{[Op['or']]:_[_0x2f2f96('0x2c')](_0x337677,function(_0x248569){const _0x475d44=_0x2f2f96;if(_0x248569[_0x475d44('0x20')]!==_0x475d44('0x2e')){const _0xef6da1={};return _0xef6da1[_0x248569[_0x475d44('0x1f')]]={[Op['like']]:'%'+_0x2d454f[_0x475d44('0x1c')][_0x475d44('0x1a')]+'%'},_0xef6da1;}})}));_0x1c43c8=_[_0x2f2f96('0x2b')]({},_0x1c43c8,_0x2d454f[_0x2f2f96('0x6')]);const _0x544a23={'where':_0x1c43c8[_0x2f2f96('0xe')]};return db[_0x2f2f96('0x25')][_0x2f2f96('0x13')](_0x544a23)[_0x2f2f96('0x4')](function(_0x431f45){const _0x469eee=_0x2f2f96;return _0x121441[_0x469eee('0x13')]=_0x431f45,_0x2d454f[_0x469eee('0x1c')][_0x469eee('0x31')]&&(_0x1c43c8[_0x469eee('0x28')]=[{'all':!![]}]),db[_0x469eee('0x25')][_0x469eee('0x17')](_0x1c43c8);})[_0x2f2f96('0x4')](function(_0x22f6f5){const _0x42dcb8=_0x2f2f96;return _0x121441[_0x42dcb8('0x16')]=_0x22f6f5,_0x121441;})[_0x2f2f96('0x4')](respondWithFilteredResult(_0x56ecd4,_0x1c43c8))[_0x2f2f96('0x29')](handleError(_0x56ecd4,null));},exports[_0x5c91b1('0x2')]=function(_0xb6e1c4,_0x4e8746){const _0x22ade8=_0x5c91b1;let _0x5ccb34={'raw':!![],'where':{'id':_0xb6e1c4[_0x22ade8('0x22')]['id']}};const _0x37dc30={};return _0x37dc30[_0x22ade8('0x23')]=_[_0x22ade8('0x15')](db['FaxTransferReport'][_0x22ade8('0x26')]),_0x37dc30[_0x22ade8('0x1c')]=_[_0x22ade8('0x15')](_0xb6e1c4[_0x22ade8('0x1c')]),_0x37dc30[_0x22ade8('0x35')]=_[_0x22ade8('0x30')](_0x37dc30[_0x22ade8('0x23')],_0x37dc30[_0x22ade8('0x1c')]),_0x5ccb34['attributes']=_[_0x22ade8('0x30')](_0x37dc30[_0x22ade8('0x23')],qs[_0x22ade8('0x2d')](_0xb6e1c4['query'][_0x22ade8('0x2d')])),_0x5ccb34[_0x22ade8('0xd')]=_0x5ccb34[_0x22ade8('0xd')][_0x22ade8('0x14')]?_0x5ccb34['attributes']:_0x37dc30['model'],_0xb6e1c4[_0x22ade8('0x1c')]['includeAll']&&(_0x5ccb34[_0x22ade8('0x28')]=[{'all':!![]}]),_0x5ccb34=_[_0x22ade8('0x2b')]({},_0x5ccb34,_0xb6e1c4[_0x22ade8('0x6')]),db[_0x22ade8('0x25')][_0x22ade8('0x3')](_0x5ccb34)['then'](handleEntityNotFound(_0x4e8746,null))[_0x22ade8('0x4')](respondWithResult(_0x4e8746,null))[_0x22ade8('0x29')](handleError(_0x4e8746,null));},exports[_0x5c91b1('0x1d')]=function(_0x47fcad,_0x257638){const _0x235dc9=_0x5c91b1;return db[_0x235dc9('0x25')]['create'](_0x47fcad[_0x235dc9('0x18')],{})[_0x235dc9('0x4')](respondWithResult(_0x257638,0xc9))[_0x235dc9('0x29')](handleError(_0x257638,null));},exports[_0x5c91b1('0x0')]=function(_0x2c0812,_0x43cc56){const _0x2c9285=_0x5c91b1;return _0x2c0812[_0x2c9285('0x18')]['id']&&delete _0x2c0812['body']['id'],db['FaxTransferReport'][_0x2c9285('0x3')]({'where':{'id':_0x2c0812['params']['id']}})[_0x2c9285('0x4')](handleEntityNotFound(_0x43cc56,null))[_0x2c9285('0x4')](saveUpdates(_0x2c0812[_0x2c9285('0x18')],null))[_0x2c9285('0x4')](respondWithResult(_0x43cc56,null))['catch'](handleError(_0x43cc56,null));},exports['destroy']=function(_0x5268d3,_0x548713){const _0xb01a3e=_0x5c91b1;return db[_0xb01a3e('0x25')][_0xb01a3e('0x3')]({'where':{'id':_0x5268d3[_0xb01a3e('0x22')]['id']}})['then'](handleEntityNotFound(_0x548713,null))[_0xb01a3e('0x4')](removeEntity(_0x548713,null))[_0xb01a3e('0x29')](handleError(_0x548713,null));},exports[_0x5c91b1('0x7')]=function(_0x51f946,_0x2adeba){const _0x1aa8ac=_0x5c91b1;return db[_0x1aa8ac('0x25')][_0x1aa8ac('0x7')]()['then'](respondWithResult(_0x2adeba,null))[_0x1aa8ac('0x29')](handleError(_0x2adeba,null));}; \ No newline at end of file +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 diff --git a/server/api/faxTransferReport/faxTransferReport.model.js b/server/api/faxTransferReport/faxTransferReport.model.js index cbc7c9f..3f606bb 100644 --- a/server/api/faxTransferReport/faxTransferReport.model.js +++ b/server/api/faxTransferReport/faxTransferReport.model.js @@ -1 +1 @@ -const a225_0x51d3=['./faxTransferReport.attributes','FaxTransferReport','exports','define','report_fax_transfer'];(function(_0x19d015,_0x51d3b1){const _0x1e1717=function(_0xaa0f03){while(--_0xaa0f03){_0x19d015['push'](_0x19d015['shift']());}};_0x1e1717(++_0x51d3b1);}(a225_0x51d3,0x11f));const a225_0x1e17=function(_0x19d015,_0x51d3b1){_0x19d015=_0x19d015-0x0;let _0x1e1717=a225_0x51d3[_0x19d015];return _0x1e1717;};const _0x4c2b05=a225_0x1e17;'use strict';const attributes=require(_0x4c2b05('0x3'));module[_0x4c2b05('0x0')]=function(_0xaa0f03){const _0x4bb00e=_0x4c2b05,_0x31d16a=_0xaa0f03[_0x4bb00e('0x1')](_0x4bb00e('0x4'),attributes,{'tableName':_0x4bb00e('0x2'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});return _0x31d16a;}; \ No newline at end of file +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 diff --git a/server/api/faxTransferReport/index.js b/server/api/faxTransferReport/index.js index a58ceb6..87936e2 100644 --- a/server/api/faxTransferReport/index.js +++ b/server/api/faxTransferReport/index.js @@ -1 +1 @@ -const a226_0x535f=['put','../../components/auth/service','show','isAuthenticated','delete','/describe','exports','/:id','Router','create','post','describe','destroy','index','get'];(function(_0x738f3e,_0x535f5e){const _0x1f40d8=function(_0x4dc76c){while(--_0x4dc76c){_0x738f3e['push'](_0x738f3e['shift']());}};_0x1f40d8(++_0x535f5e);}(a226_0x535f,0x1bf));const a226_0x1f40=function(_0x738f3e,_0x535f5e){_0x738f3e=_0x738f3e-0x0;let _0x1f40d8=a226_0x535f[_0x738f3e];return _0x1f40d8;};const _0x18724d=a226_0x1f40;'use strict';const express=require('express'),router=express[_0x18724d('0xb')](),auth=require(_0x18724d('0x4')),controller=require('./faxTransferReport.controller');router['get']('/',auth[_0x18724d('0x6')](),controller[_0x18724d('0x1')]),router['get'](_0x18724d('0x8'),auth[_0x18724d('0x6')](),controller[_0x18724d('0xe')]),router[_0x18724d('0x2')]('/:id',auth[_0x18724d('0x6')](),controller[_0x18724d('0x5')]),router[_0x18724d('0xd')]('/',auth[_0x18724d('0x6')](),controller[_0x18724d('0xc')]),router[_0x18724d('0x3')](_0x18724d('0xa'),auth['isAuthenticated'](),controller['update']),router[_0x18724d('0x7')]('/:id',auth['isAuthenticated'](),controller[_0x18724d('0x0')]),module[_0x18724d('0x9')]=router; \ No newline at end of file +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 diff --git a/server/api/intDeskAccount/index.js b/server/api/intDeskAccount/index.js index 6514463..5ff1f18 100644 --- a/server/api/intDeskAccount/index.js +++ b/server/api/intDeskAccount/index.js @@ -1 +1 @@ -const a227_0x4238=['get','isAuthenticated','show','/:id','create','express','addConfiguration','put','Router','getFields','update','/:id/configurations','delete','post','exports'];(function(_0x5cba3e,_0x4238b8){const _0x56b05d=function(_0x288680){while(--_0x288680){_0x5cba3e['push'](_0x5cba3e['shift']());}};_0x56b05d(++_0x4238b8);}(a227_0x4238,0x15b));const a227_0x56b0=function(_0x5cba3e,_0x4238b8){_0x5cba3e=_0x5cba3e-0x0;let _0x56b05d=a227_0x4238[_0x5cba3e];return _0x56b05d;};const _0x2aefce=a227_0x56b0;'use strict';const express=require(_0x2aefce('0x3')),router=express[_0x2aefce('0x6')](),auth=require('../../components/auth/service'),controller=require('./intDeskAccount.controller');router[_0x2aefce('0xd')]('/',auth['isAuthenticated'](),controller['index']),router[_0x2aefce('0xd')](_0x2aefce('0x1'),auth[_0x2aefce('0xe')](),controller[_0x2aefce('0x0')]),router[_0x2aefce('0xd')](_0x2aefce('0x9'),auth[_0x2aefce('0xe')](),controller['getConfigurations']),router[_0x2aefce('0xd')]('/:id/fields',auth['isAuthenticated'](),controller[_0x2aefce('0x7')]),router[_0x2aefce('0xb')]('/',auth[_0x2aefce('0xe')](),controller[_0x2aefce('0x2')]),router[_0x2aefce('0xb')](_0x2aefce('0x9'),auth['isAuthenticated'](),controller[_0x2aefce('0x4')]),router[_0x2aefce('0x5')]('/:id',auth[_0x2aefce('0xe')](),controller[_0x2aefce('0x8')]),router[_0x2aefce('0xa')](_0x2aefce('0x1'),auth[_0x2aefce('0xe')](),controller['destroy']),module[_0x2aefce('0xc')]=router; \ No newline at end of file +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 diff --git a/server/api/intDeskAccount/intDeskAccount.attributes.js b/server/api/intDeskAccount/intDeskAccount.attributes.js index 7c1dc40..da428c3 100644 --- a/server/api/intDeskAccount/intDeskAccount.attributes.js +++ b/server/api/intDeskAccount/intDeskAccount.attributes.js @@ -1 +1 @@ -const a228_0x3414=['basic','sequelize','ENUM','newTab','STRING','integrationTab','exports'];(function(_0x685f8e,_0x341442){const _0x448fda=function(_0xb51c1a){while(--_0xb51c1a){_0x685f8e['push'](_0x685f8e['shift']());}};_0x448fda(++_0x341442);}(a228_0x3414,0x1f4));const a228_0x448f=function(_0x685f8e,_0x341442){_0x685f8e=_0x685f8e-0x0;let _0x448fda=a228_0x3414[_0x685f8e];return _0x448fda;};const _0x423cb9=a228_0x448f;'use strict';const Sequelize=require(_0x423cb9('0x5'));module[_0x423cb9('0x3')]={'name':{'type':Sequelize[_0x423cb9('0x1')]},'description':{'type':Sequelize[_0x423cb9('0x1')]},'username':{'type':Sequelize[_0x423cb9('0x1')]},'remoteUri':{'type':Sequelize[_0x423cb9('0x1')]},'authType':{'type':Sequelize[_0x423cb9('0x6')](_0x423cb9('0x4')),'defaultValue':_0x423cb9('0x4')},'password':{'type':Sequelize[_0x423cb9('0x1')]},'consumerKey':{'type':Sequelize[_0x423cb9('0x1')]},'consumerSecret':{'type':Sequelize['STRING']},'token':{'type':Sequelize['STRING']},'tokenSecret':{'type':Sequelize[_0x423cb9('0x1')]},'serverUrl':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x423cb9('0x6')](_0x423cb9('0x2'),_0x423cb9('0x0')),'defaultValue':_0x423cb9('0x2')}}; \ No newline at end of file +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 diff --git a/server/api/intDeskAccount/intDeskAccount.controller.js b/server/api/intDeskAccount/intDeskAccount.controller.js index d661e8d..bccc562 100644 --- a/server/api/intDeskAccount/intDeskAccount.controller.js +++ b/server/api/intDeskAccount/intDeskAccount.controller.js @@ -1 +1 @@ -const a229_0x52f2=['like','test','DeskField','getDescriptions','util','label','Subjects','count','stringify','concat','consumerSecret','nolimit','body','filter','findAll','Content-Range','where','token','include','api','index','addConfiguration','username','limit','getFields','map','includeAll','slice','password','%s/custom_fields','getSubjects','json','keys','order','base64','Basic\x20%s','../../config/logger','../../components/parsers/qs','merge','format','getFields,\x20%s,\x20%s,\x20%s','rows','options','undefined','model','destroy','lodash','Descriptions','then','statusCode','DeskAccount','show','basic','set','catch','name','headers','AccountId','Authorization','DeskConfiguration','%s:%s','offset','status','update','create','params','priority','VIRTUAL','rawAttributes','send','type','entries','request-promise-native','channel','application/json','filters','attributes','sendStatus','query','error','remoteUri','pick','authType','sequelize','from','getConfigurations','fields','consumerKey','findOne','toString','length','intersection','sort'];(function(_0x1fe476,_0x52f293){const _0x4c43c6=function(_0x4972d3){while(--_0x4972d3){_0x1fe476['push'](_0x1fe476['shift']());}};_0x4c43c6(++_0x52f293);}(a229_0x52f2,0xbe));const a229_0x4c43=function(_0x1fe476,_0x52f293){_0x1fe476=_0x1fe476-0x0;let _0x4c43c6=a229_0x52f2[_0x1fe476];return _0x4c43c6;};const _0x52dcce=a229_0x4c43;'use strict';const rp=require(_0x52dcce('0x44')),util=require(_0x52dcce('0x0')),_=require(_0x52dcce('0x2a')),qs=require(_0x52dcce('0x21')),logger=require(_0x52dcce('0x20'))(_0x52dcce('0xf')),db=require('../../mysqldb')['db'],{Op}=require(_0x52dcce('0x4f')),integrations=require('../../components/integrations/configuration');function respondWithResult(_0x4972d3,_0x29a5eb){return _0x29a5eb=_0x29a5eb||0xc8,function(_0x49685c){const _0x1446dd=a229_0x4c43;if(_0x49685c)return _0x4972d3['status'](_0x29a5eb)[_0x1446dd('0x1b')](_0x49685c);};}function respondWithFilteredResult(_0x3380af,_0x1c3ed8){return function(_0x59b83a){const _0x4d12b9=a229_0x4c43;if(_0x59b83a){const _0x6c28d1=_0x59b83a[_0x4d12b9('0x3')],_0x4e434e=_0x1c3ed8['offset'];let _0x466b14=_0x1c3ed8[_0x4d12b9('0x39')]+_0x1c3ed8['limit'],_0x33ebcd;return _0x466b14>=_0x6c28d1?(_0x466b14=_0x6c28d1,_0x33ebcd=0xc8):_0x33ebcd=0xce,_0x3380af[_0x4d12b9('0x3a')](_0x33ebcd),_0x3380af[_0x4d12b9('0x31')](_0x4d12b9('0xb'),_0x4e434e+'-'+_0x466b14+'/'+_0x6c28d1)['json'](_0x59b83a);}return null;};}function saveUpdates(_0x5688cb){return function(_0x1ec90f){const _0x269dc1=a229_0x4c43;if(_0x1ec90f)return _0x1ec90f[_0x269dc1('0x3b')](_0x5688cb)[_0x269dc1('0x2c')](function(_0x3471ed){return _0x3471ed;});return null;};}function removeEntity(_0x3271d3){return function(_0x4725dc){const _0x41bb0d=a229_0x4c43;if(_0x4725dc)return _0x4725dc[_0x41bb0d('0x29')]()['then'](function(){const _0x278f48=_0x41bb0d;_0x3271d3[_0x278f48('0x3a')](0xcc)['end']();});};}function handleEntityNotFound(_0x37ab07){return function(_0x11a17e){const _0x17ebd4=a229_0x4c43;return!_0x11a17e&&_0x37ab07[_0x17ebd4('0x49')](0x194),_0x11a17e;};}function handleError(_0x1c537e,_0xca40bc){return _0xca40bc=_0xca40bc||0x1f4,function(_0x474749){const _0x54aed9=a229_0x4c43;logger[_0x54aed9('0x4b')](_0x474749['stack']),_0x474749[_0x54aed9('0x33')]&&delete _0x474749[_0x54aed9('0x33')],_0x1c537e[_0x54aed9('0x3a')](_0xca40bc)[_0x54aed9('0x41')](_0x474749);};}exports[_0x52dcce('0x10')]=function(_0x3d12e6,_0x59eb97){const _0x2375ba=_0x52dcce;let _0x25c9ee={};const _0x4f7ea7={},_0x239c00={'count':0x0,'rows':[]},_0x4f8836=_[_0x2375ba('0x15')](db[_0x2375ba('0x2e')][_0x2375ba('0x40')],function(_0x4c162c){const _0x5eb24b=_0x2375ba;return{'name':_0x4c162c['fieldName'],'type':_0x4c162c[_0x5eb24b('0x42')]['key']};});_0x4f7ea7[_0x2375ba('0x28')]=_[_0x2375ba('0x15')](_0x4f8836,'name'),_0x4f7ea7[_0x2375ba('0x4a')]=_[_0x2375ba('0x1c')](_0x3d12e6['query']),_0x4f7ea7[_0x2375ba('0x47')]=_[_0x2375ba('0x57')](_0x4f7ea7[_0x2375ba('0x28')],_0x4f7ea7[_0x2375ba('0x4a')]),_0x25c9ee[_0x2375ba('0x48')]=_[_0x2375ba('0x57')](_0x4f7ea7['model'],qs[_0x2375ba('0x52')](_0x3d12e6['query'][_0x2375ba('0x52')])),_0x25c9ee[_0x2375ba('0x48')]=_0x25c9ee[_0x2375ba('0x48')][_0x2375ba('0x56')]?_0x25c9ee[_0x2375ba('0x48')]:_0x4f7ea7[_0x2375ba('0x28')];typeof _0x3d12e6[_0x2375ba('0x4a')][_0x2375ba('0x7')]==='undefined'&&(_0x25c9ee[_0x2375ba('0x13')]=qs[_0x2375ba('0x13')](_0x3d12e6[_0x2375ba('0x4a')]['limit']),_0x25c9ee['offset']=qs[_0x2375ba('0x39')](_0x3d12e6['query'][_0x2375ba('0x39')]));_0x25c9ee[_0x2375ba('0x1d')]=qs[_0x2375ba('0x58')](_0x3d12e6['query']['sort']),_0x25c9ee[_0x2375ba('0xc')]=qs[_0x2375ba('0x47')](_[_0x2375ba('0x4d')](_0x3d12e6['query'],_0x4f7ea7[_0x2375ba('0x47')]),_0x4f8836);_0x3d12e6[_0x2375ba('0x4a')][_0x2375ba('0x9')]&&(_0x25c9ee[_0x2375ba('0xc')]=_['merge'](_0x25c9ee[_0x2375ba('0xc')],{[Op['or']]:_[_0x2375ba('0x15')](_0x4f8836,function(_0x4fc0f4){const _0x514f03=_0x2375ba;if(_0x4fc0f4[_0x514f03('0x42')]!==_0x514f03('0x3f')){const _0x4fd9cb={};return _0x4fd9cb[_0x4fc0f4[_0x514f03('0x33')]]={[Op[_0x514f03('0x59')]]:'%'+_0x3d12e6[_0x514f03('0x4a')][_0x514f03('0x9')]+'%'},_0x4fd9cb;}})}));_0x25c9ee=_['merge']({},_0x25c9ee,_0x3d12e6[_0x2375ba('0x26')]);const _0x196965={'where':_0x25c9ee['where']};return db[_0x2375ba('0x2e')][_0x2375ba('0x3')](_0x196965)[_0x2375ba('0x2c')](function(_0x450563){const _0x3ac0f4=_0x2375ba;return _0x239c00[_0x3ac0f4('0x3')]=_0x450563,_0x3d12e6[_0x3ac0f4('0x4a')][_0x3ac0f4('0x16')]&&(_0x25c9ee[_0x3ac0f4('0xe')]=[{'all':!![]}]),db['DeskAccount'][_0x3ac0f4('0xa')](_0x25c9ee);})[_0x2375ba('0x2c')](function(_0x1a913c){const _0x2e0fbf=_0x2375ba;return _0x239c00[_0x2e0fbf('0x25')]=_0x1a913c,_0x239c00;})[_0x2375ba('0x2c')](respondWithFilteredResult(_0x59eb97,_0x25c9ee))[_0x2375ba('0x32')](handleError(_0x59eb97,null));},exports[_0x52dcce('0x2f')]=function(_0x500886,_0x4a8fb7){const _0x582c2c=_0x52dcce;let _0x3143df={'raw':![],'where':{'id':_0x500886[_0x582c2c('0x3d')]['id']}};const _0x199ba0={};return _0x199ba0[_0x582c2c('0x28')]=_[_0x582c2c('0x1c')](db[_0x582c2c('0x2e')]['rawAttributes']),_0x199ba0[_0x582c2c('0x4a')]=_['keys'](_0x500886[_0x582c2c('0x4a')]),_0x199ba0[_0x582c2c('0x47')]=_[_0x582c2c('0x57')](_0x199ba0['model'],_0x199ba0[_0x582c2c('0x4a')]),_0x3143df[_0x582c2c('0x48')]=_['intersection'](_0x199ba0[_0x582c2c('0x28')],qs[_0x582c2c('0x52')](_0x500886[_0x582c2c('0x4a')]['fields'])),_0x3143df['attributes']=_0x3143df['attributes'][_0x582c2c('0x56')]?_0x3143df['attributes']:_0x199ba0[_0x582c2c('0x28')],_0x500886[_0x582c2c('0x4a')][_0x582c2c('0x16')]&&(_0x3143df['include']=[{'all':!![]}]),_0x3143df=_[_0x582c2c('0x22')]({},_0x3143df,_0x500886[_0x582c2c('0x26')]),db[_0x582c2c('0x2e')]['findOne'](_0x3143df)[_0x582c2c('0x2c')](handleEntityNotFound(_0x4a8fb7,null))['then'](respondWithResult(_0x4a8fb7,null))['catch'](handleError(_0x4a8fb7,null));},exports[_0x52dcce('0x3c')]=function(_0x2ce9f0,_0x492957){const _0x542c53=_0x52dcce;return db['DeskAccount'][_0x542c53('0x3c')](_0x2ce9f0[_0x542c53('0x8')],{})[_0x542c53('0x2c')](respondWithResult(_0x492957,0xc9))[_0x542c53('0x32')](handleError(_0x492957,null));},exports['update']=function(_0x38a251,_0x1c46c7){const _0x5e9638=_0x52dcce;return _0x38a251[_0x5e9638('0x8')]['id']&&delete _0x38a251['body']['id'],db[_0x5e9638('0x2e')][_0x5e9638('0x54')]({'where':{'id':_0x38a251[_0x5e9638('0x3d')]['id']}})['then'](handleEntityNotFound(_0x1c46c7,null))[_0x5e9638('0x2c')](saveUpdates(_0x38a251[_0x5e9638('0x8')],null))[_0x5e9638('0x2c')](respondWithResult(_0x1c46c7,null))[_0x5e9638('0x32')](handleError(_0x1c46c7,null));},exports[_0x52dcce('0x29')]=function(_0x4f91cc,_0x525df8){const _0x4ff716=_0x52dcce;return db[_0x4ff716('0x2e')]['findOne']({'where':{'id':_0x4f91cc[_0x4ff716('0x3d')]['id']}})[_0x4ff716('0x2c')](handleEntityNotFound(_0x525df8,null))[_0x4ff716('0x2c')](removeEntity(_0x525df8,null))[_0x4ff716('0x32')](handleError(_0x525df8,null));},exports[_0x52dcce('0x51')]=function(_0x11d792,_0x17076f){const _0x16b299=_0x52dcce;let _0x499b90={};const _0x3cc081={};let _0x4e554b,_0x31e361;return db[_0x16b299('0x2e')][_0x16b299('0x54')]({'where':{'id':_0x11d792[_0x16b299('0x3d')]['id']}})[_0x16b299('0x2c')](handleEntityNotFound(_0x17076f,null))[_0x16b299('0x2c')](function(_0x59cd0a){const _0xde6cdd=_0x16b299;if(_0x59cd0a)return _0x4e554b=_0x59cd0a,_0x3cc081['model']=_[_0xde6cdd('0x1c')](db[_0xde6cdd('0x37')][_0xde6cdd('0x40')]),_0x3cc081['query']=_[_0xde6cdd('0x1c')](_0x11d792[_0xde6cdd('0x4a')]),_0x3cc081[_0xde6cdd('0x47')]=_[_0xde6cdd('0x57')](_0x3cc081['model'],_0x3cc081[_0xde6cdd('0x4a')]),_0x499b90['attributes']=_[_0xde6cdd('0x57')](_0x3cc081[_0xde6cdd('0x28')],qs['fields'](_0x11d792[_0xde6cdd('0x4a')][_0xde6cdd('0x52')])),_0x499b90[_0xde6cdd('0x48')]=_0x499b90[_0xde6cdd('0x48')][_0xde6cdd('0x56')]?_0x499b90[_0xde6cdd('0x48')]:_0x3cc081[_0xde6cdd('0x28')],_0x499b90[_0xde6cdd('0x1d')]=qs[_0xde6cdd('0x58')](_0x11d792[_0xde6cdd('0x4a')][_0xde6cdd('0x58')]),_0x499b90[_0xde6cdd('0xc')]=qs[_0xde6cdd('0x47')](_[_0xde6cdd('0x4d')](_0x11d792[_0xde6cdd('0x4a')],_0x3cc081[_0xde6cdd('0x47')])),_0x11d792[_0xde6cdd('0x4a')][_0xde6cdd('0x9')]&&(_0x499b90[_0xde6cdd('0xc')]=_[_0xde6cdd('0x22')](_0x499b90['where'],{[Op['or']]:_[_0xde6cdd('0x15')](_0x499b90['attributes'],function(_0x435798){const _0x287b58=_0xde6cdd,_0x415a4b={};return _0x415a4b[_0x435798]={[Op[_0x287b58('0x59')]]:'%'+_0x11d792['query'][_0x287b58('0x9')]+'%'},_0x415a4b;})})),_0x499b90=_['merge']({},_0x499b90,_0x11d792['options']),_0x4e554b[_0xde6cdd('0x51')](_0x499b90);})['then'](function(_0x5bd5f1){const _0x187572=_0x16b299;if(_0x5bd5f1)return _0x31e361=_0x5bd5f1['length'],typeof _0x11d792[_0x187572('0x4a')][_0x187572('0x7')]===_0x187572('0x27')&&(_0x499b90[_0x187572('0x13')]=qs[_0x187572('0x13')](_0x11d792[_0x187572('0x4a')][_0x187572('0x13')]),_0x499b90[_0x187572('0x39')]=qs['offset'](_0x11d792[_0x187572('0x4a')][_0x187572('0x39')])),_0x4e554b[_0x187572('0x51')](_0x499b90);})['then'](function(_0x2e1eb9){if(_0x2e1eb9)return _0x2e1eb9?{'count':_0x31e361,'rows':_0x2e1eb9}:null;})[_0x16b299('0x2c')](respondWithResult(_0x17076f,null))[_0x16b299('0x32')](handleError(_0x17076f,null));},exports[_0x52dcce('0x11')]=function(_0x6bfb2,_0x3b472f){const _0x294ef5=_0x52dcce;return _0x6bfb2[_0x294ef5('0x8')]['id']&&delete _0x6bfb2[_0x294ef5('0x8')]['id'],db[_0x294ef5('0x2e')][_0x294ef5('0x54')]({'where':{'id':_0x6bfb2[_0x294ef5('0x3d')]['id']}})[_0x294ef5('0x2c')](handleEntityNotFound(_0x3b472f,null))['then'](function(_0x546bbd){const _0x36bd84=_0x294ef5;if(_0x546bbd)return _0x6bfb2[_0x36bd84('0x8')][_0x36bd84('0x35')]=_0x546bbd['id'],_0x6bfb2[_0x36bd84('0x8')]['Subjects']=integrations[_0x36bd84('0x1a')](_0x6bfb2[_0x36bd84('0x8')][_0x36bd84('0x45')],_0x6bfb2[_0x36bd84('0x8')][_0x36bd84('0x42')]),_0x6bfb2['body'][_0x36bd84('0x2b')]=integrations[_0x36bd84('0x5c')](_0x6bfb2['body'][_0x36bd84('0x45')],_0x6bfb2[_0x36bd84('0x8')][_0x36bd84('0x42')]),db[_0x36bd84('0x37')]['create'](_0x6bfb2[_0x36bd84('0x8')],{'include':[{'model':db[_0x36bd84('0x5b')],'as':_0x36bd84('0x2')},{'model':db[_0x36bd84('0x5b')],'as':_0x36bd84('0x2b')}]});return null;})[_0x294ef5('0x2c')](respondWithResult(_0x3b472f,null))['catch'](handleError(_0x3b472f,null));},exports[_0x52dcce('0x14')]=function(_0x41f020,_0x254212){const _0x5dae90=_0x52dcce,_0x3538d8=[{'name':'priority','label':_0x5dae90('0x3e'),'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 _0x32c4c3='';return db[_0x5dae90('0x2e')][_0x5dae90('0x54')]({'where':{'id':_0x41f020[_0x5dae90('0x3d')]['id']},'attributes':['id',_0x5dae90('0x4c'),'authType',_0x5dae90('0x12'),'password',_0x5dae90('0x53'),_0x5dae90('0x6'),_0x5dae90('0xd'),'tokenSecret']})[_0x5dae90('0x2c')](handleEntityNotFound(_0x254212,null))[_0x5dae90('0x2c')](function(_0x44cab0){const _0x226260=_0x5dae90;if(_0x44cab0){_0x32c4c3=_0x44cab0[_0x226260('0x4c')];const _0x3f4a63=_0x32c4c3[_0x226260('0x17')](-0x1);_0x3f4a63==='/'&&(_0x32c4c3=_0x32c4c3['substring'](0x0,_0x32c4c3['lastIndexOf'](_0x3f4a63)));const _0xd916fb={'method':'GET','uri':util[_0x226260('0x23')](_0x226260('0x19'),_0x32c4c3),'headers':{'Content-Type':'application/json','Accept':_0x226260('0x46')},'json':!![]};return _0x44cab0[_0x226260('0x4e')]===_0x226260('0x30')&&(_0xd916fb[_0x226260('0x34')][_0x226260('0x36')]=util[_0x226260('0x23')](_0x226260('0x1f'),Buffer[_0x226260('0x50')](util[_0x226260('0x23')](_0x226260('0x38'),_0x44cab0[_0x226260('0x12')],_0x44cab0[_0x226260('0x18')]))[_0x226260('0x55')](_0x226260('0x1e')))),rp(_0xd916fb)['then'](function(_0x186ed0){const _0x481799=_0x226260;return _0x3538d8[_0x481799('0x5')](_[_0x481799('0x15')](_0x186ed0['_embedded'][_0x481799('0x43')],function(_0x7f48e1){const _0x45588f=_0x481799;return{'id':_0x7f48e1[_0x45588f('0x33')],'name':_0x7f48e1['name'],'type':_0x7f48e1['type'],'active':_0x7f48e1['active'],'label':_0x7f48e1[_0x45588f('0x1')],'custom':!![]};}));});}})[_0x5dae90('0x2c')](function(_0x122977){const _0x3aefe=_0x5dae90;return{'count':_0x122977[_0x3aefe('0x56')],'rows':_0x122977};})[_0x5dae90('0x2c')](respondWithResult(_0x254212,null))[_0x5dae90('0x32')](function(_0x64832f){const _0x59631b=_0x5dae90;let _0xf21dae=_0x41f020[_0x59631b('0x4a')][_0x59631b('0x5a')]?0x1f4:_0x64832f[_0x59631b('0x2d')]||0x1f4;logger['error'](_0x59631b('0x24'),'getFields',_0xf21dae,JSON[_0x59631b('0x4')](_0x64832f)),delete _0x64832f[_0x59631b('0x33')],_0xf21dae===0x191&&(_0xf21dae=0x190),_0x254212[_0x59631b('0x3a')](_0xf21dae)[_0x59631b('0x41')](_0x41f020[_0x59631b('0x4a')][_0x59631b('0x5a')]?{'message':'Wrong\x20credentials','statusCode':_0x64832f[_0x59631b('0x2d')]}:_0x64832f);});}; \ No newline at end of file +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 diff --git a/server/api/intDeskAccount/intDeskAccount.model.js b/server/api/intDeskAccount/intDeskAccount.model.js index bcdef4e..1f56d66 100644 --- a/server/api/intDeskAccount/intDeskAccount.model.js +++ b/server/api/intDeskAccount/intDeskAccount.model.js @@ -1 +1 @@ -const a230_0x3250=['exports','./intDeskAccount.attributes','int_desk_accounts','DeskAccount','define'];(function(_0x1157d7,_0x3250f2){const _0x205ed8=function(_0x34e2df){while(--_0x34e2df){_0x1157d7['push'](_0x1157d7['shift']());}};_0x205ed8(++_0x3250f2);}(a230_0x3250,0x1a5));const a230_0x205e=function(_0x1157d7,_0x3250f2){_0x1157d7=_0x1157d7-0x0;let _0x205ed8=a230_0x3250[_0x1157d7];return _0x205ed8;};const _0x5237a5=a230_0x205e;'use strict';const attributes=require(_0x5237a5('0x0'));module[_0x5237a5('0x4')]=function(_0x34e2df){const _0x1487b5=_0x5237a5,_0x415284=_0x34e2df[_0x1487b5('0x3')](_0x1487b5('0x2'),attributes,{'tableName':_0x1487b5('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x415284;}; \ No newline at end of file +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 diff --git a/server/api/intDeskAccount/intDeskAccount.rpc.js b/server/api/intDeskAccount/intDeskAccount.rpc.js index 60e83c2..321074f 100644 --- a/server/api/intDeskAccount/intDeskAccount.rpc.js +++ b/server/api/intDeskAccount/intDeskAccount.rpc.js @@ -1 +1 @@ -const a231_0x1f2f=['raw','findAll','stringify','include','info','error','lodash','attributes','debug','map','../../config/logger','catch','ShowDeskAccount','../../mysqldb','where','findOne','options','GetDeskAccount','limit','then','DeskAccount','message','rpc','model'];(function(_0x370606,_0x1f2f40){const _0x70dd5d=function(_0x5a7e8d){while(--_0x5a7e8d){_0x370606['push'](_0x370606['shift']());}};_0x70dd5d(++_0x1f2f40);}(a231_0x1f2f,0x1b4));const a231_0x70dd=function(_0x370606,_0x1f2f40){_0x370606=_0x370606-0x0;let _0x70dd5d=a231_0x1f2f[_0x370606];return _0x70dd5d;};const _0x5df4c2=a231_0x70dd;'use strict';const _=require(_0x5df4c2('0x2')),db=require(_0x5df4c2('0x9'))['db'],logger=require(_0x5df4c2('0x6'))(_0x5df4c2('0x12'));exports['GetDeskAccount']=function(_0x5a7e8d){const _0xf08ddc=this;return new Promise(function(_0x12159d,_0xa63538){const _0x1e89df=a231_0x70dd;return db[_0x1e89df('0x10')][_0x1e89df('0x15')]({'raw':_0x5a7e8d['options']?_0x5a7e8d[_0x1e89df('0xc')][_0x1e89df('0x14')]===undefined?!![]:![]:!![],'where':_0x5a7e8d[_0x1e89df('0xc')]?_0x5a7e8d[_0x1e89df('0xc')][_0x1e89df('0xa')]||null:null,'attributes':_0x5a7e8d[_0x1e89df('0xc')]?_0x5a7e8d['options'][_0x1e89df('0x3')]||null:null,'limit':_0x5a7e8d[_0x1e89df('0xc')]?_0x5a7e8d[_0x1e89df('0xc')][_0x1e89df('0xe')]||null:null,'include':_0x5a7e8d[_0x1e89df('0xc')]?_0x5a7e8d[_0x1e89df('0xc')][_0x1e89df('0x17')]?_['map'](_0x5a7e8d['options'][_0x1e89df('0x17')],function(_0x354493){const _0x5cdbd4=_0x1e89df;return{'model':db[_0x354493[_0x5cdbd4('0x13')]],'as':_0x354493['as'],'attributes':_0x354493[_0x5cdbd4('0x3')],'include':_0x354493[_0x5cdbd4('0x17')]?_[_0x5cdbd4('0x5')](_0x354493[_0x5cdbd4('0x17')],function(_0x6a4472){const _0x21f0ec=_0x5cdbd4;return{'model':db[_0x6a4472[_0x21f0ec('0x13')]],'as':_0x6a4472['as'],'attributes':_0x6a4472[_0x21f0ec('0x3')],'include':_0x6a4472[_0x21f0ec('0x17')]?_[_0x21f0ec('0x5')](_0x6a4472[_0x21f0ec('0x17')],function(_0x34e41c){return{'model':db[_0x34e41c['model']],'as':_0x34e41c['as'],'attributes':_0x34e41c['attributes']};}):[]};}):[]};}):[]:[]})[_0x1e89df('0xf')](function(_0x29b14e){const _0x148633=_0x1e89df;logger[_0x148633('0x0')]('GetDeskAccount',_0x5a7e8d),logger['debug'](_0x148633('0xd'),_0x5a7e8d,JSON[_0x148633('0x16')](_0x29b14e)),_0x12159d(_0x29b14e);})['catch'](function(_0x419885){const _0x3bf880=_0x1e89df;logger[_0x3bf880('0x1')](_0x3bf880('0xd'),_0x419885[_0x3bf880('0x11')],_0x5a7e8d),_0xa63538(_0xf08ddc[_0x3bf880('0x1')](0x1f4,_0x419885[_0x3bf880('0x11')]));});});},exports[_0x5df4c2('0x8')]=function(_0x14ae78){const _0x2ea4df=this;return new Promise(function(_0x379486,_0x4c0576){const _0x418103=a231_0x70dd;return db[_0x418103('0x10')][_0x418103('0xb')]({'raw':_0x14ae78['options']?_0x14ae78['options'][_0x418103('0x14')]===undefined?!![]:![]:!![],'where':_0x14ae78[_0x418103('0xc')]?_0x14ae78[_0x418103('0xc')][_0x418103('0xa')]||null:null,'attributes':_0x14ae78[_0x418103('0xc')]?_0x14ae78['options'][_0x418103('0x3')]||null:null,'include':_0x14ae78[_0x418103('0xc')]?_0x14ae78[_0x418103('0xc')][_0x418103('0x17')]?_[_0x418103('0x5')](_0x14ae78[_0x418103('0xc')][_0x418103('0x17')],function(_0x29b5ca){const _0x9795ec=_0x418103;return{'model':db[_0x29b5ca[_0x9795ec('0x13')]],'as':_0x29b5ca['as'],'attributes':_0x29b5ca[_0x9795ec('0x3')],'include':_0x29b5ca[_0x9795ec('0x17')]?_[_0x9795ec('0x5')](_0x29b5ca[_0x9795ec('0x17')],function(_0x2cae5d){const _0x351df5=_0x9795ec;return{'model':db[_0x2cae5d['model']],'as':_0x2cae5d['as'],'attributes':_0x2cae5d['attributes'],'include':_0x2cae5d[_0x351df5('0x17')]?_['map'](_0x2cae5d[_0x351df5('0x17')],function(_0x1b3724){const _0x2f9947=_0x351df5;return{'model':db[_0x1b3724[_0x2f9947('0x13')]],'as':_0x1b3724['as'],'attributes':_0x1b3724[_0x2f9947('0x3')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x197a0f){const _0x1c93be=_0x418103;logger[_0x1c93be('0x0')](_0x1c93be('0x8'),_0x14ae78),logger[_0x1c93be('0x4')](_0x1c93be('0x8'),_0x14ae78,JSON['stringify'](_0x197a0f)),_0x379486(_0x197a0f);})[_0x418103('0x7')](function(_0x4e34c2){const _0x1c154f=_0x418103;logger['error'](_0x1c154f('0x8'),_0x4e34c2[_0x1c154f('0x11')],_0x14ae78),_0x4c0576(_0x2ea4df[_0x1c154f('0x1')](0x1f4,_0x4e34c2[_0x1c154f('0x11')]));});});}; \ No newline at end of file +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 diff --git a/server/api/intDeskConfiguration/index.js b/server/api/intDeskConfiguration/index.js index 77dfc54..2cdcedf 100644 --- a/server/api/intDeskConfiguration/index.js +++ b/server/api/intDeskConfiguration/index.js @@ -1 +1 @@ -const a232_0xbe33=['getTags','get','destroy','Router','/:id/tags','post','express','delete','../../components/auth/service','setTags','isAuthenticated','show','put','update','/:id','getDescriptions','./intDeskConfiguration.controller','index','/:id/descriptions','exports','getFields','getSubjects','/:id/subjects','create'];(function(_0x5a671e,_0xbe3372){const _0x28de6b=function(_0xd52b89){while(--_0xd52b89){_0x5a671e['push'](_0x5a671e['shift']());}};_0x28de6b(++_0xbe3372);}(a232_0xbe33,0x10d));const a232_0x28de=function(_0x5a671e,_0xbe3372){_0x5a671e=_0x5a671e-0x0;let _0x28de6b=a232_0xbe33[_0x5a671e];return _0x28de6b;};const _0x5b8b31=a232_0x28de;'use strict';const express=require(_0x5b8b31('0x1')),router=express[_0x5b8b31('0x16')](),auth=require(_0x5b8b31('0x3')),controller=require(_0x5b8b31('0xb'));router['get']('/',auth[_0x5b8b31('0x5')](),controller[_0x5b8b31('0xc')]),router['get'](_0x5b8b31('0x9'),auth['isAuthenticated'](),controller[_0x5b8b31('0x6')]),router[_0x5b8b31('0x14')]('/:id/fields',auth['isAuthenticated'](),controller[_0x5b8b31('0xf')]),router[_0x5b8b31('0x14')](_0x5b8b31('0x11'),auth[_0x5b8b31('0x5')](),controller[_0x5b8b31('0x10')]),router['get'](_0x5b8b31('0xd'),auth[_0x5b8b31('0x5')](),controller[_0x5b8b31('0xa')]),router[_0x5b8b31('0x14')](_0x5b8b31('0x17'),auth['isAuthenticated'](),controller[_0x5b8b31('0x13')]),router[_0x5b8b31('0x0')]('/',auth['isAuthenticated'](),controller[_0x5b8b31('0x12')]),router[_0x5b8b31('0x0')](_0x5b8b31('0x17'),auth[_0x5b8b31('0x5')](),controller[_0x5b8b31('0x4')]),router[_0x5b8b31('0x7')](_0x5b8b31('0x9'),auth['isAuthenticated'](),controller[_0x5b8b31('0x8')]),router[_0x5b8b31('0x2')](_0x5b8b31('0x9'),auth[_0x5b8b31('0x5')](),controller[_0x5b8b31('0x15')]),module[_0x5b8b31('0xe')]=router; \ No newline at end of file +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 diff --git a/server/api/intDeskConfiguration/intDeskConfiguration.attributes.js b/server/api/intDeskConfiguration/intDeskConfiguration.attributes.js index a03926d..b3f9384 100644 --- a/server/api/intDeskConfiguration/intDeskConfiguration.attributes.js +++ b/server/api/intDeskConfiguration/intDeskConfiguration.attributes.js @@ -1 +1 @@ -const a233_0x471a=['sequelize','STRING','exports'];(function(_0x1b6f03,_0x471add){const _0x24ae41=function(_0x329472){while(--_0x329472){_0x1b6f03['push'](_0x1b6f03['shift']());}};_0x24ae41(++_0x471add);}(a233_0x471a,0x14a));const a233_0x24ae=function(_0x1b6f03,_0x471add){_0x1b6f03=_0x1b6f03-0x0;let _0x24ae41=a233_0x471a[_0x1b6f03];return _0x24ae41;};const _0xe56204=a233_0x24ae;'use strict';const Sequelize=require(_0xe56204('0x0'));module[_0xe56204('0x2')]={'name':{'type':Sequelize[_0xe56204('0x1')]},'description':{'type':Sequelize[_0xe56204('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/intDeskConfiguration/intDeskConfiguration.controller.js b/server/api/intDeskConfiguration/intDeskConfiguration.controller.js index d420c21..0c4b9ff 100644 --- a/server/api/intDeskConfiguration/intDeskConfiguration.controller.js +++ b/server/api/intDeskConfiguration/intDeskConfiguration.controller.js @@ -1 +1 @@ -const a234_0xc337=['../../components/parsers/qs','setTags','api','fields','DeskConfiguration','intersection','VIRTUAL','sort','ids','lodash','../../mysqldb','fieldName','like','attributes','create','key','pick','getTags','name','destroy','findOne','then','../../config/logger','sequelize','getSubjects','catch','getFields','map','getDescriptions','DeskField','set','status','rows','options','limit','filters','keys','filter','error','length','include','rawAttributes','where','query','merge','Content-Range','model','body','params','json','order','index','end','offset','undefined','includeAll','nolimit','stack','count','update','type'];(function(_0x5d702c,_0xc337fa){const _0x208eaa=function(_0x475e00){while(--_0x475e00){_0x5d702c['push'](_0x5d702c['shift']());}};_0x208eaa(++_0xc337fa);}(a234_0xc337,0x173));const a234_0x208e=function(_0x5d702c,_0xc337fa){_0x5d702c=_0x5d702c-0x0;let _0x208eaa=a234_0xc337[_0x5d702c];return _0x208eaa;};const _0xd261d2=a234_0x208e;'use strict';const _=require(_0xd261d2('0x4')),qs=require(_0xd261d2('0x38')),logger=require(_0xd261d2('0x11'))(_0xd261d2('0x3a')),db=require(_0xd261d2('0x5'))['db'],{Op}=require(_0xd261d2('0x12'));function respondWithResult(_0x475e00,_0x306fc0){return _0x306fc0=_0x306fc0||0xc8,function(_0xb99602){const _0x10ef93=a234_0x208e;if(_0xb99602)return _0x475e00['status'](_0x306fc0)[_0x10ef93('0x2c')](_0xb99602);};}function respondWithFilteredResult(_0x374acb,_0x55371d){return function(_0x2cfe9f){const _0xb59199=a234_0x208e;if(_0x2cfe9f){const _0x4c1f49=_0x2cfe9f[_0xb59199('0x35')],_0x3816b0=_0x55371d[_0xb59199('0x30')];let _0x45e1cb=_0x55371d[_0xb59199('0x30')]+_0x55371d['limit'],_0x4b9b3d;return _0x45e1cb>=_0x4c1f49?(_0x45e1cb=_0x4c1f49,_0x4b9b3d=0xc8):_0x4b9b3d=0xce,_0x374acb['status'](_0x4b9b3d),_0x374acb[_0xb59199('0x19')](_0xb59199('0x28'),_0x3816b0+'-'+_0x45e1cb+'/'+_0x4c1f49)[_0xb59199('0x2c')](_0x2cfe9f);}return null;};}function saveUpdates(_0x57eb86){return function(_0x1752c7){const _0x2abcbf=a234_0x208e;if(_0x1752c7)return _0x1752c7[_0x2abcbf('0x36')](_0x57eb86)[_0x2abcbf('0x10')](function(_0x1c6990){return _0x1c6990;});return null;};}function removeEntity(_0x26456e){return function(_0x42869a){const _0x1da134=a234_0x208e;if(_0x42869a)return _0x42869a[_0x1da134('0xe')]()[_0x1da134('0x10')](function(){const _0x729158=_0x1da134;_0x26456e[_0x729158('0x1a')](0xcc)[_0x729158('0x2f')]();});};}function handleEntityNotFound(_0x8fbcbc){return function(_0x567f97){return!_0x567f97&&_0x8fbcbc['sendStatus'](0x194),_0x567f97;};}function handleError(_0x2f190b,_0x1eb575){return _0x1eb575=_0x1eb575||0x1f4,function(_0x507213){const _0x580457=a234_0x208e;logger[_0x580457('0x21')](_0x507213[_0x580457('0x34')]),_0x507213['name']&&delete _0x507213[_0x580457('0xd')],_0x2f190b[_0x580457('0x1a')](_0x1eb575)['send'](_0x507213);};}exports[_0xd261d2('0x2e')]=function(_0x1d4048,_0x416996){const _0x5b1324=_0xd261d2;let _0x17338e={};const _0x5ec3fd={},_0x234b61={'count':0x0,'rows':[]},_0x41e85e=_[_0x5b1324('0x16')](db[_0x5b1324('0x3c')][_0x5b1324('0x24')],function(_0x2fc8b7){const _0x2ffeb6=_0x5b1324;return{'name':_0x2fc8b7[_0x2ffeb6('0x6')],'type':_0x2fc8b7[_0x2ffeb6('0x37')][_0x2ffeb6('0xa')]};});_0x5ec3fd[_0x5b1324('0x29')]=_[_0x5b1324('0x16')](_0x41e85e,_0x5b1324('0xd')),_0x5ec3fd[_0x5b1324('0x26')]=_[_0x5b1324('0x1f')](_0x1d4048[_0x5b1324('0x26')]),_0x5ec3fd[_0x5b1324('0x1e')]=_[_0x5b1324('0x0')](_0x5ec3fd['model'],_0x5ec3fd[_0x5b1324('0x26')]),_0x17338e[_0x5b1324('0x8')]=_['intersection'](_0x5ec3fd['model'],qs[_0x5b1324('0x3b')](_0x1d4048[_0x5b1324('0x26')][_0x5b1324('0x3b')])),_0x17338e[_0x5b1324('0x8')]=_0x17338e[_0x5b1324('0x8')][_0x5b1324('0x22')]?_0x17338e['attributes']:_0x5ec3fd[_0x5b1324('0x29')];typeof _0x1d4048[_0x5b1324('0x26')][_0x5b1324('0x33')]==='undefined'&&(_0x17338e[_0x5b1324('0x1d')]=qs[_0x5b1324('0x1d')](_0x1d4048[_0x5b1324('0x26')][_0x5b1324('0x1d')]),_0x17338e[_0x5b1324('0x30')]=qs[_0x5b1324('0x30')](_0x1d4048[_0x5b1324('0x26')][_0x5b1324('0x30')]));_0x17338e[_0x5b1324('0x2d')]=qs[_0x5b1324('0x2')](_0x1d4048['query'][_0x5b1324('0x2')]),_0x17338e[_0x5b1324('0x25')]=qs[_0x5b1324('0x1e')](_['pick'](_0x1d4048[_0x5b1324('0x26')],_0x5ec3fd[_0x5b1324('0x1e')]),_0x41e85e);_0x1d4048[_0x5b1324('0x26')][_0x5b1324('0x20')]&&(_0x17338e[_0x5b1324('0x25')]=_[_0x5b1324('0x27')](_0x17338e[_0x5b1324('0x25')],{[Op['or']]:_[_0x5b1324('0x16')](_0x41e85e,function(_0x178a38){const _0x1a3db9=_0x5b1324;if(_0x178a38['type']!==_0x1a3db9('0x1')){const _0x5c5e5a={};return _0x5c5e5a[_0x178a38['name']]={[Op[_0x1a3db9('0x7')]]:'%'+_0x1d4048['query']['filter']+'%'},_0x5c5e5a;}})}));_0x17338e=_['merge']({},_0x17338e,_0x1d4048[_0x5b1324('0x1c')]);const _0xf941df={'where':_0x17338e[_0x5b1324('0x25')]};return db[_0x5b1324('0x3c')]['count'](_0xf941df)[_0x5b1324('0x10')](function(_0x5e802c){const _0x2d2c6c=_0x5b1324;return _0x234b61['count']=_0x5e802c,_0x1d4048['query'][_0x2d2c6c('0x32')]&&(_0x17338e[_0x2d2c6c('0x23')]=[{'all':!![]}]),db[_0x2d2c6c('0x3c')]['findAll'](_0x17338e);})[_0x5b1324('0x10')](function(_0x57cd0e){const _0x5eec00=_0x5b1324;return _0x234b61[_0x5eec00('0x1b')]=_0x57cd0e,_0x234b61;})[_0x5b1324('0x10')](respondWithFilteredResult(_0x416996,_0x17338e))[_0x5b1324('0x14')](handleError(_0x416996,null));},exports['show']=function(_0x26d4b1,_0x2b4270){const _0x813cab=_0xd261d2;let _0x18843f={'raw':![],'where':{'id':_0x26d4b1[_0x813cab('0x2b')]['id']}};const _0x2db0e6={};return _0x2db0e6[_0x813cab('0x29')]=_[_0x813cab('0x1f')](db[_0x813cab('0x3c')][_0x813cab('0x24')]),_0x2db0e6[_0x813cab('0x26')]=_[_0x813cab('0x1f')](_0x26d4b1[_0x813cab('0x26')]),_0x2db0e6[_0x813cab('0x1e')]=_[_0x813cab('0x0')](_0x2db0e6['model'],_0x2db0e6[_0x813cab('0x26')]),_0x18843f[_0x813cab('0x8')]=_[_0x813cab('0x0')](_0x2db0e6['model'],qs['fields'](_0x26d4b1[_0x813cab('0x26')]['fields'])),_0x18843f[_0x813cab('0x8')]=_0x18843f[_0x813cab('0x8')][_0x813cab('0x22')]?_0x18843f[_0x813cab('0x8')]:_0x2db0e6[_0x813cab('0x29')],_0x26d4b1[_0x813cab('0x26')][_0x813cab('0x32')]&&(_0x18843f[_0x813cab('0x23')]=[{'all':!![]}]),_0x18843f=_[_0x813cab('0x27')]({},_0x18843f,_0x26d4b1[_0x813cab('0x1c')]),db['DeskConfiguration'][_0x813cab('0xf')](_0x18843f)[_0x813cab('0x10')](handleEntityNotFound(_0x2b4270,null))['then'](respondWithResult(_0x2b4270,null))[_0x813cab('0x14')](handleError(_0x2b4270,null));},exports[_0xd261d2('0x9')]=function(_0x3d92cc,_0x5b411f){const _0x555006=_0xd261d2;return db['DeskConfiguration'][_0x555006('0x9')](_0x3d92cc[_0x555006('0x2a')],{})[_0x555006('0x10')](respondWithResult(_0x5b411f,0xc9))[_0x555006('0x14')](handleError(_0x5b411f,null));},exports[_0xd261d2('0x36')]=function(_0x2d4c1a,_0x4472d5){const _0x300bc6=_0xd261d2;return _0x2d4c1a['body']['id']&&delete _0x2d4c1a['body']['id'],db[_0x300bc6('0x3c')][_0x300bc6('0xf')]({'where':{'id':_0x2d4c1a[_0x300bc6('0x2b')]['id']}})[_0x300bc6('0x10')](handleEntityNotFound(_0x4472d5,null))['then'](saveUpdates(_0x2d4c1a[_0x300bc6('0x2a')],null))[_0x300bc6('0x10')](respondWithResult(_0x4472d5,null))[_0x300bc6('0x14')](handleError(_0x4472d5,null));},exports['destroy']=function(_0x2b095a,_0x1fe47d){const _0x45b75b=_0xd261d2;return db[_0x45b75b('0x3c')][_0x45b75b('0xf')]({'where':{'id':_0x2b095a[_0x45b75b('0x2b')]['id']}})[_0x45b75b('0x10')](handleEntityNotFound(_0x1fe47d,null))[_0x45b75b('0x10')](removeEntity(_0x1fe47d,null))[_0x45b75b('0x14')](handleError(_0x1fe47d,null));},exports[_0xd261d2('0x15')]=function(_0x167fa3,_0x1c2410){const _0x490b32=_0xd261d2;let _0x158d98={};const _0x3c908f={};let _0x344127,_0x92d3a0;return db['DeskConfiguration'][_0x490b32('0xf')]({'where':{'id':_0x167fa3[_0x490b32('0x2b')]['id']}})[_0x490b32('0x10')](handleEntityNotFound(_0x1c2410,null))['then'](function(_0x4441c5){const _0x38807f=_0x490b32;if(_0x4441c5)return _0x344127=_0x4441c5,_0x3c908f[_0x38807f('0x29')]=_[_0x38807f('0x1f')](db[_0x38807f('0x18')][_0x38807f('0x24')]),_0x3c908f['query']=_[_0x38807f('0x1f')](_0x167fa3[_0x38807f('0x26')]),_0x3c908f['filters']=_[_0x38807f('0x0')](_0x3c908f[_0x38807f('0x29')],_0x3c908f['query']),_0x158d98[_0x38807f('0x8')]=_['intersection'](_0x3c908f[_0x38807f('0x29')],qs[_0x38807f('0x3b')](_0x167fa3[_0x38807f('0x26')]['fields'])),_0x158d98[_0x38807f('0x8')]=_0x158d98[_0x38807f('0x8')][_0x38807f('0x22')]?_0x158d98[_0x38807f('0x8')]:_0x3c908f[_0x38807f('0x29')],_0x158d98[_0x38807f('0x2d')]=qs[_0x38807f('0x2')](_0x167fa3[_0x38807f('0x26')][_0x38807f('0x2')]),_0x158d98[_0x38807f('0x25')]=qs['filters'](_[_0x38807f('0xb')](_0x167fa3['query'],_0x3c908f[_0x38807f('0x1e')])),_0x167fa3[_0x38807f('0x26')][_0x38807f('0x20')]&&(_0x158d98[_0x38807f('0x25')]=_[_0x38807f('0x27')](_0x158d98[_0x38807f('0x25')],{[Op['or']]:_[_0x38807f('0x16')](_0x158d98['attributes'],function(_0x321866){const _0x317bc5=_0x38807f,_0x38d950={};return _0x38d950[_0x321866]={[Op[_0x317bc5('0x7')]]:'%'+_0x167fa3['query'][_0x317bc5('0x20')]+'%'},_0x38d950;})})),_0x158d98=_[_0x38807f('0x27')]({},_0x158d98,_0x167fa3[_0x38807f('0x1c')]),_0x344127[_0x38807f('0x15')](_0x158d98);})[_0x490b32('0x10')](function(_0x3615c9){const _0x363650=_0x490b32;if(_0x3615c9)return _0x92d3a0=_0x3615c9[_0x363650('0x22')],typeof _0x167fa3[_0x363650('0x26')][_0x363650('0x33')]===_0x363650('0x31')&&(_0x158d98['limit']=qs['limit'](_0x167fa3[_0x363650('0x26')][_0x363650('0x1d')]),_0x158d98[_0x363650('0x30')]=qs['offset'](_0x167fa3['query'][_0x363650('0x30')])),_0x344127[_0x363650('0x15')](_0x158d98);})[_0x490b32('0x10')](function(_0x531cb1){if(_0x531cb1)return _0x531cb1?{'count':_0x92d3a0,'rows':_0x531cb1}:null;})[_0x490b32('0x10')](respondWithResult(_0x1c2410,null))[_0x490b32('0x14')](handleError(_0x1c2410,null));},exports[_0xd261d2('0x13')]=function(_0x5487f1,_0x576e8b){const _0x10a488=_0xd261d2;let _0x56b9b5={};const _0x490200={};let _0x3a908a,_0x404cc3;return db[_0x10a488('0x3c')][_0x10a488('0xf')]({'where':{'id':_0x5487f1[_0x10a488('0x2b')]['id']}})[_0x10a488('0x10')](handleEntityNotFound(_0x576e8b,null))[_0x10a488('0x10')](function(_0x34de30){const _0x5d83c7=_0x10a488;if(_0x34de30)return _0x3a908a=_0x34de30,_0x490200['model']=_[_0x5d83c7('0x1f')](db[_0x5d83c7('0x18')]['rawAttributes']),_0x490200[_0x5d83c7('0x26')]=_['keys'](_0x5487f1[_0x5d83c7('0x26')]),_0x490200[_0x5d83c7('0x1e')]=_[_0x5d83c7('0x0')](_0x490200[_0x5d83c7('0x29')],_0x490200['query']),_0x56b9b5[_0x5d83c7('0x8')]=_[_0x5d83c7('0x0')](_0x490200[_0x5d83c7('0x29')],qs[_0x5d83c7('0x3b')](_0x5487f1[_0x5d83c7('0x26')][_0x5d83c7('0x3b')])),_0x56b9b5[_0x5d83c7('0x8')]=_0x56b9b5[_0x5d83c7('0x8')][_0x5d83c7('0x22')]?_0x56b9b5['attributes']:_0x490200[_0x5d83c7('0x29')],_0x56b9b5[_0x5d83c7('0x2d')]=qs[_0x5d83c7('0x2')](_0x5487f1['query'][_0x5d83c7('0x2')]),_0x56b9b5[_0x5d83c7('0x25')]=qs[_0x5d83c7('0x1e')](_[_0x5d83c7('0xb')](_0x5487f1[_0x5d83c7('0x26')],_0x490200[_0x5d83c7('0x1e')])),_0x5487f1['query'][_0x5d83c7('0x20')]&&(_0x56b9b5[_0x5d83c7('0x25')]=_['merge'](_0x56b9b5[_0x5d83c7('0x25')],{[Op['or']]:_['map'](_0x56b9b5[_0x5d83c7('0x8')],function(_0x25d5fb){const _0x2dddf2={};return _0x2dddf2[_0x25d5fb]={[Op['like']]:'%'+_0x5487f1['query']['filter']+'%'},_0x2dddf2;})})),_0x56b9b5=_[_0x5d83c7('0x27')]({},_0x56b9b5,_0x5487f1[_0x5d83c7('0x1c')]),_0x3a908a['getSubjects'](_0x56b9b5);})['then'](function(_0x5f8e4e){const _0x9e2454=_0x10a488;if(_0x5f8e4e)return _0x404cc3=_0x5f8e4e['length'],typeof _0x5487f1[_0x9e2454('0x26')][_0x9e2454('0x33')]===_0x9e2454('0x31')&&(_0x56b9b5['limit']=qs[_0x9e2454('0x1d')](_0x5487f1[_0x9e2454('0x26')][_0x9e2454('0x1d')]),_0x56b9b5['offset']=qs['offset'](_0x5487f1[_0x9e2454('0x26')][_0x9e2454('0x30')])),_0x3a908a[_0x9e2454('0x13')](_0x56b9b5);})[_0x10a488('0x10')](function(_0x58aefa){if(_0x58aefa)return _0x58aefa?{'count':_0x404cc3,'rows':_0x58aefa}:null;})[_0x10a488('0x10')](respondWithResult(_0x576e8b,null))['catch'](handleError(_0x576e8b,null));},exports[_0xd261d2('0x17')]=function(_0x49628d,_0x5dd158){const _0x9466a9=_0xd261d2;let _0x22aac2={};const _0x52ecc5={};let _0x1234b9,_0x3c8567;return db[_0x9466a9('0x3c')][_0x9466a9('0xf')]({'where':{'id':_0x49628d[_0x9466a9('0x2b')]['id']}})[_0x9466a9('0x10')](handleEntityNotFound(_0x5dd158,null))['then'](function(_0x503634){const _0x150c5d=_0x9466a9;if(_0x503634)return _0x1234b9=_0x503634,_0x52ecc5[_0x150c5d('0x29')]=_[_0x150c5d('0x1f')](db[_0x150c5d('0x18')][_0x150c5d('0x24')]),_0x52ecc5[_0x150c5d('0x26')]=_[_0x150c5d('0x1f')](_0x49628d[_0x150c5d('0x26')]),_0x52ecc5['filters']=_[_0x150c5d('0x0')](_0x52ecc5[_0x150c5d('0x29')],_0x52ecc5['query']),_0x22aac2[_0x150c5d('0x8')]=_['intersection'](_0x52ecc5[_0x150c5d('0x29')],qs[_0x150c5d('0x3b')](_0x49628d[_0x150c5d('0x26')][_0x150c5d('0x3b')])),_0x22aac2[_0x150c5d('0x8')]=_0x22aac2['attributes'][_0x150c5d('0x22')]?_0x22aac2[_0x150c5d('0x8')]:_0x52ecc5[_0x150c5d('0x29')],_0x22aac2[_0x150c5d('0x2d')]=qs['sort'](_0x49628d[_0x150c5d('0x26')]['sort']),_0x22aac2[_0x150c5d('0x25')]=qs[_0x150c5d('0x1e')](_[_0x150c5d('0xb')](_0x49628d[_0x150c5d('0x26')],_0x52ecc5['filters'])),_0x49628d[_0x150c5d('0x26')][_0x150c5d('0x20')]&&(_0x22aac2[_0x150c5d('0x25')]=_['merge'](_0x22aac2[_0x150c5d('0x25')],{[Op['or']]:_[_0x150c5d('0x16')](_0x22aac2['attributes'],function(_0x4e830a){const _0x3b7d80=_0x150c5d,_0x49baae={};return _0x49baae[_0x4e830a]={[Op['like']]:'%'+_0x49628d['query'][_0x3b7d80('0x20')]+'%'},_0x49baae;})})),_0x22aac2=_[_0x150c5d('0x27')]({},_0x22aac2,_0x49628d[_0x150c5d('0x1c')]),_0x1234b9[_0x150c5d('0x17')](_0x22aac2);})['then'](function(_0x2385e8){const _0x6128df=_0x9466a9;if(_0x2385e8)return _0x3c8567=_0x2385e8['length'],typeof _0x49628d[_0x6128df('0x26')][_0x6128df('0x33')]===_0x6128df('0x31')&&(_0x22aac2[_0x6128df('0x1d')]=qs[_0x6128df('0x1d')](_0x49628d[_0x6128df('0x26')][_0x6128df('0x1d')]),_0x22aac2[_0x6128df('0x30')]=qs[_0x6128df('0x30')](_0x49628d[_0x6128df('0x26')][_0x6128df('0x30')])),_0x1234b9[_0x6128df('0x17')](_0x22aac2);})[_0x9466a9('0x10')](function(_0x52c5c9){if(_0x52c5c9)return _0x52c5c9?{'count':_0x3c8567,'rows':_0x52c5c9}:null;})[_0x9466a9('0x10')](respondWithResult(_0x5dd158,null))[_0x9466a9('0x14')](handleError(_0x5dd158,null));},exports[_0xd261d2('0xc')]=function(_0x4453c4,_0x37ee1b){const _0x3dfa44=_0xd261d2;let _0x4e1c60={};const _0x67cc5f={};let _0x5bd98d,_0x49409f;return db[_0x3dfa44('0x3c')][_0x3dfa44('0xf')]({'where':{'id':_0x4453c4[_0x3dfa44('0x2b')]['id']}})['then'](handleEntityNotFound(_0x37ee1b,null))[_0x3dfa44('0x10')](function(_0x3fe2d2){const _0x2b79af=_0x3dfa44;if(_0x3fe2d2)return _0x5bd98d=_0x3fe2d2,_0x67cc5f[_0x2b79af('0x29')]=_['keys'](db['Tag']['rawAttributes']),_0x67cc5f['query']=_[_0x2b79af('0x1f')](_0x4453c4[_0x2b79af('0x26')]),_0x67cc5f[_0x2b79af('0x1e')]=_[_0x2b79af('0x0')](_0x67cc5f['model'],_0x67cc5f[_0x2b79af('0x26')]),_0x4e1c60['attributes']=_[_0x2b79af('0x0')](_0x67cc5f[_0x2b79af('0x29')],qs[_0x2b79af('0x3b')](_0x4453c4[_0x2b79af('0x26')]['fields'])),_0x4e1c60[_0x2b79af('0x8')]=_0x4e1c60[_0x2b79af('0x8')][_0x2b79af('0x22')]?_0x4e1c60[_0x2b79af('0x8')]:_0x67cc5f[_0x2b79af('0x29')],_0x4e1c60[_0x2b79af('0x2d')]=qs['sort'](_0x4453c4[_0x2b79af('0x26')][_0x2b79af('0x2')]),_0x4e1c60[_0x2b79af('0x25')]=qs['filters'](_[_0x2b79af('0xb')](_0x4453c4[_0x2b79af('0x26')],_0x67cc5f['filters'])),_0x4453c4[_0x2b79af('0x26')][_0x2b79af('0x20')]&&(_0x4e1c60[_0x2b79af('0x25')]=_['merge'](_0x4e1c60[_0x2b79af('0x25')],{[Op['or']]:_[_0x2b79af('0x16')](_0x4e1c60['attributes'],function(_0x26bf3b){const _0xbeaba2=_0x2b79af,_0x4ae4c0={};return _0x4ae4c0[_0x26bf3b]={[Op['like']]:'%'+_0x4453c4[_0xbeaba2('0x26')]['filter']+'%'},_0x4ae4c0;})})),_0x4e1c60=_[_0x2b79af('0x27')]({},_0x4e1c60,_0x4453c4[_0x2b79af('0x1c')]),_0x5bd98d[_0x2b79af('0xc')](_0x4e1c60);})[_0x3dfa44('0x10')](function(_0x2dc9e9){const _0x1538bc=_0x3dfa44;if(_0x2dc9e9)return _0x49409f=_0x2dc9e9[_0x1538bc('0x22')],typeof _0x4453c4[_0x1538bc('0x26')][_0x1538bc('0x33')]===_0x1538bc('0x31')&&(_0x4e1c60[_0x1538bc('0x1d')]=qs[_0x1538bc('0x1d')](_0x4453c4[_0x1538bc('0x26')][_0x1538bc('0x1d')]),_0x4e1c60['offset']=qs[_0x1538bc('0x30')](_0x4453c4['query'][_0x1538bc('0x30')])),_0x5bd98d[_0x1538bc('0xc')](_0x4e1c60);})[_0x3dfa44('0x10')](function(_0x167c40){if(_0x167c40)return _0x167c40?{'count':_0x49409f,'rows':_0x167c40}:null;})['then'](respondWithResult(_0x37ee1b,null))['catch'](handleError(_0x37ee1b,null));},exports['setTags']=function(_0xae0734,_0x53a149){const _0x89e5f8=_0xd261d2;return _0xae0734[_0x89e5f8('0x2a')]['id']&&delete _0xae0734[_0x89e5f8('0x2a')]['id'],db['DeskConfiguration'][_0x89e5f8('0xf')]({'where':{'id':_0xae0734[_0x89e5f8('0x2b')]['id']}})[_0x89e5f8('0x10')](handleEntityNotFound(_0x53a149,null))[_0x89e5f8('0x10')](function(_0x2f234c){const _0xa0a7fa=_0x89e5f8;if(_0x2f234c)return _0x2f234c[_0xa0a7fa('0x39')](_0xae0734['body'][_0xa0a7fa('0x3')]||[]);return null;})[_0x89e5f8('0x10')](respondWithResult(_0x53a149,null))[_0x89e5f8('0x14')](handleError(_0x53a149,null));}; \ No newline at end of file +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 diff --git a/server/api/intDeskConfiguration/intDeskConfiguration.model.js b/server/api/intDeskConfiguration/intDeskConfiguration.model.js index 19c674d..1a995e1 100644 --- a/server/api/intDeskConfiguration/intDeskConfiguration.model.js +++ b/server/api/intDeskConfiguration/intDeskConfiguration.model.js @@ -1 +1 @@ -const a235_0x54ac=['./intDeskConfiguration.attributes','exports'];(function(_0x25ff57,_0x54ac50){const _0x3f946a=function(_0x4074c9){while(--_0x4074c9){_0x25ff57['push'](_0x25ff57['shift']());}};_0x3f946a(++_0x54ac50);}(a235_0x54ac,0xf9));const a235_0x3f94=function(_0x25ff57,_0x54ac50){_0x25ff57=_0x25ff57-0x0;let _0x3f946a=a235_0x54ac[_0x25ff57];return _0x3f946a;};const _0x4be152=a235_0x3f94;'use strict';const attributes=require(_0x4be152('0x1'));module[_0x4be152('0x0')]=function(_0x4074c9){const _0xc783fd=_0x4074c9['define']('DeskConfiguration',attributes,{'tableName':'int_desk_configurations','paranoid':![],'indexes':[],'timestamps':!![]});return _0xc783fd;}; \ No newline at end of file +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 diff --git a/server/api/intDeskField/index.js b/server/api/intDeskField/index.js index 516e4ee..ee48bfe 100644 --- a/server/api/intDeskField/index.js +++ b/server/api/intDeskField/index.js @@ -1 +1 @@ -const a236_0x138b=['./intDeskField.controller','express','put','show','isAuthenticated','exports','get','/:id','update','destroy','../../components/auth/service','post'];(function(_0x21233c,_0x138b16){const _0x5b7661=function(_0x1bde83){while(--_0x1bde83){_0x21233c['push'](_0x21233c['shift']());}};_0x5b7661(++_0x138b16);}(a236_0x138b,0x1c6));const a236_0x5b76=function(_0x21233c,_0x138b16){_0x21233c=_0x21233c-0x0;let _0x5b7661=a236_0x138b[_0x21233c];return _0x5b7661;};const _0x411194=a236_0x5b76;'use strict';const express=require(_0x411194('0x3')),router=express['Router'](),auth=require(_0x411194('0x0')),controller=require(_0x411194('0x2'));router['get']('/',auth[_0x411194('0x6')](),controller['index']),router[_0x411194('0x8')](_0x411194('0x9'),auth['isAuthenticated'](),controller[_0x411194('0x5')]),router[_0x411194('0x1')]('/',auth[_0x411194('0x6')](),controller['create']),router[_0x411194('0x4')](_0x411194('0x9'),auth[_0x411194('0x6')](),controller[_0x411194('0xa')]),router['delete'](_0x411194('0x9'),auth['isAuthenticated'](),controller[_0x411194('0xb')]),module[_0x411194('0x7')]=router; \ No newline at end of file +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 diff --git a/server/api/intDeskField/intDeskField.attributes.js b/server/api/intDeskField/intDeskField.attributes.js index da89120..7cc1d85 100644 --- a/server/api/intDeskField/intDeskField.attributes.js +++ b/server/api/intDeskField/intDeskField.attributes.js @@ -1 +1 @@ -const a237_0x5937=['ENUM','sequelize','string','customVariable','STRING','keyValue','variable','BOOLEAN'];(function(_0x205f97,_0x593716){const _0x30cb65=function(_0xdf4df5){while(--_0xdf4df5){_0x205f97['push'](_0x205f97['shift']());}};_0x30cb65(++_0x593716);}(a237_0x5937,0x179));const a237_0x30cb=function(_0x205f97,_0x593716){_0x205f97=_0x205f97-0x0;let _0x30cb65=a237_0x5937[_0x205f97];return _0x30cb65;};const _0x1e767e=a237_0x30cb;'use strict';const Sequelize=require(_0x1e767e('0x0'));module['exports']={'type':{'type':Sequelize[_0x1e767e('0x7')](_0x1e767e('0x1'),_0x1e767e('0x5'),_0x1e767e('0x2'),_0x1e767e('0x4')),'defaultValue':_0x1e767e('0x1')},'content':{'type':Sequelize[_0x1e767e('0x3')]},'key':{'type':Sequelize[_0x1e767e('0x3')]},'keyType':{'type':Sequelize[_0x1e767e('0x7')](_0x1e767e('0x1'),_0x1e767e('0x5'),_0x1e767e('0x2'))},'keyContent':{'type':Sequelize[_0x1e767e('0x3')]},'idField':{'type':Sequelize[_0x1e767e('0x3')]},'nameField':{'type':Sequelize['STRING']},'customField':{'type':Sequelize[_0x1e767e('0x6')],'defaultValue':!![]},'variableName':{'type':Sequelize['STRING']}}; \ No newline at end of file +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 diff --git a/server/api/intDeskField/intDeskField.controller.js b/server/api/intDeskField/intDeskField.controller.js index a442883..08a234f 100644 --- a/server/api/intDeskField/intDeskField.controller.js +++ b/server/api/intDeskField/intDeskField.controller.js @@ -1 +1 @@ -const a238_0x2992=['json','params','end','destroy','undefined','options','catch','findOne','rows','Content-Range','show','DeskField','fields','nolimit','map','api','status','pick','../../components/parsers/qs','name','keys','fieldName','query','offset','../../config/logger','like','filter','count','length','set','create','../../mysqldb','findAll','sequelize','type','body','send','merge','sendStatus','lodash','model','intersection','VIRTUAL','where','then','order','attributes','error','limit','filters','index','rawAttributes','update','include','sort','key'];(function(_0x8f6851,_0x2992af){const _0x48572f=function(_0x2c30d0){while(--_0x2c30d0){_0x8f6851['push'](_0x8f6851['shift']());}};_0x48572f(++_0x2992af);}(a238_0x2992,0x147));const a238_0x4857=function(_0x8f6851,_0x2992af){_0x8f6851=_0x8f6851-0x0;let _0x48572f=a238_0x2992[_0x8f6851];return _0x48572f;};const _0x120cc2=a238_0x4857;'use strict';const _=require(_0x120cc2('0x30')),qs=require(_0x120cc2('0x1b')),logger=require(_0x120cc2('0x21'))(_0x120cc2('0x18')),db=require(_0x120cc2('0x28'))['db'],{Op}=require(_0x120cc2('0x2a'));function respondWithResult(_0x2c30d0,_0x441eec){return _0x441eec=_0x441eec||0xc8,function(_0x3c99bd){const _0x1311ac=a238_0x4857;if(_0x3c99bd)return _0x2c30d0[_0x1311ac('0x19')](_0x441eec)[_0x1311ac('0x9')](_0x3c99bd);};}function respondWithFilteredResult(_0x173292,_0x26d099){return function(_0x60379a){const _0x2a7988=a238_0x4857;if(_0x60379a){const _0x3a9575=_0x60379a[_0x2a7988('0x24')],_0x5b3c38=_0x26d099[_0x2a7988('0x20')];let _0x1080b8=_0x26d099[_0x2a7988('0x20')]+_0x26d099[_0x2a7988('0x1')],_0x2ce622;return _0x1080b8>=_0x3a9575?(_0x1080b8=_0x3a9575,_0x2ce622=0xc8):_0x2ce622=0xce,_0x173292['status'](_0x2ce622),_0x173292[_0x2a7988('0x26')](_0x2a7988('0x12'),_0x5b3c38+'-'+_0x1080b8+'/'+_0x3a9575)['json'](_0x60379a);}return null;};}function saveUpdates(_0x2cfebc){return function(_0x19fc6c){const _0x77110e=a238_0x4857;if(_0x19fc6c)return _0x19fc6c['update'](_0x2cfebc)[_0x77110e('0x35')](function(_0x51838a){return _0x51838a;});return null;};}function removeEntity(_0x27b4fd){return function(_0x430633){const _0x652d20=a238_0x4857;if(_0x430633)return _0x430633['destroy']()[_0x652d20('0x35')](function(){const _0x113037=_0x652d20;_0x27b4fd[_0x113037('0x19')](0xcc)[_0x113037('0xb')]();});};}function handleEntityNotFound(_0x537cdf){return function(_0x19c3d0){const _0x56916c=a238_0x4857;return!_0x19c3d0&&_0x537cdf[_0x56916c('0x2f')](0x194),_0x19c3d0;};}function handleError(_0x33028e,_0x5a69a8){return _0x5a69a8=_0x5a69a8||0x1f4,function(_0x5db754){const _0x1d7046=a238_0x4857;logger[_0x1d7046('0x0')](_0x5db754['stack']),_0x5db754[_0x1d7046('0x1c')]&&delete _0x5db754[_0x1d7046('0x1c')],_0x33028e[_0x1d7046('0x19')](_0x5a69a8)[_0x1d7046('0x2d')](_0x5db754);};}exports[_0x120cc2('0x3')]=function(_0x491f44,_0x2ea2ff){const _0x2f0144=_0x120cc2;let _0x32b84c={};const _0x33c987={},_0x537dcf={'count':0x0,'rows':[]},_0x27166b=_[_0x2f0144('0x17')](db[_0x2f0144('0x14')][_0x2f0144('0x4')],function(_0x300f4d){const _0x4f8ca1=_0x2f0144;return{'name':_0x300f4d[_0x4f8ca1('0x1e')],'type':_0x300f4d[_0x4f8ca1('0x2b')][_0x4f8ca1('0x8')]};});_0x33c987[_0x2f0144('0x31')]=_[_0x2f0144('0x17')](_0x27166b,_0x2f0144('0x1c')),_0x33c987['query']=_[_0x2f0144('0x1d')](_0x491f44[_0x2f0144('0x1f')]),_0x33c987[_0x2f0144('0x2')]=_[_0x2f0144('0x32')](_0x33c987[_0x2f0144('0x31')],_0x33c987[_0x2f0144('0x1f')]),_0x32b84c[_0x2f0144('0x37')]=_[_0x2f0144('0x32')](_0x33c987[_0x2f0144('0x31')],qs[_0x2f0144('0x15')](_0x491f44['query'][_0x2f0144('0x15')])),_0x32b84c[_0x2f0144('0x37')]=_0x32b84c[_0x2f0144('0x37')][_0x2f0144('0x25')]?_0x32b84c[_0x2f0144('0x37')]:_0x33c987['model'];typeof _0x491f44[_0x2f0144('0x1f')][_0x2f0144('0x16')]===_0x2f0144('0xd')&&(_0x32b84c[_0x2f0144('0x1')]=qs[_0x2f0144('0x1')](_0x491f44[_0x2f0144('0x1f')][_0x2f0144('0x1')]),_0x32b84c[_0x2f0144('0x20')]=qs[_0x2f0144('0x20')](_0x491f44[_0x2f0144('0x1f')][_0x2f0144('0x20')]));_0x32b84c[_0x2f0144('0x36')]=qs[_0x2f0144('0x7')](_0x491f44[_0x2f0144('0x1f')][_0x2f0144('0x7')]),_0x32b84c['where']=qs['filters'](_[_0x2f0144('0x1a')](_0x491f44[_0x2f0144('0x1f')],_0x33c987[_0x2f0144('0x2')]),_0x27166b);_0x491f44[_0x2f0144('0x1f')][_0x2f0144('0x23')]&&(_0x32b84c['where']=_[_0x2f0144('0x2e')](_0x32b84c['where'],{[Op['or']]:_[_0x2f0144('0x17')](_0x27166b,function(_0x225b0c){const _0x148d41=_0x2f0144;if(_0x225b0c['type']!==_0x148d41('0x33')){const _0x339842={};return _0x339842[_0x225b0c[_0x148d41('0x1c')]]={[Op[_0x148d41('0x22')]]:'%'+_0x491f44[_0x148d41('0x1f')][_0x148d41('0x23')]+'%'},_0x339842;}})}));_0x32b84c=_['merge']({},_0x32b84c,_0x491f44[_0x2f0144('0xe')]);const _0x280d5d={'where':_0x32b84c[_0x2f0144('0x34')]};return db[_0x2f0144('0x14')]['count'](_0x280d5d)[_0x2f0144('0x35')](function(_0x19197b){const _0x4bf1de=_0x2f0144;return _0x537dcf[_0x4bf1de('0x24')]=_0x19197b,_0x491f44[_0x4bf1de('0x1f')]['includeAll']&&(_0x32b84c[_0x4bf1de('0x6')]=[{'all':!![]}]),db['DeskField'][_0x4bf1de('0x29')](_0x32b84c);})[_0x2f0144('0x35')](function(_0xad255b){const _0x424c7b=_0x2f0144;return _0x537dcf[_0x424c7b('0x11')]=_0xad255b,_0x537dcf;})['then'](respondWithFilteredResult(_0x2ea2ff,_0x32b84c))[_0x2f0144('0xf')](handleError(_0x2ea2ff,null));},exports[_0x120cc2('0x13')]=function(_0x1275b7,_0x5dd0b0){const _0x2564a4=_0x120cc2;let _0x59e009={'raw':!![],'where':{'id':_0x1275b7[_0x2564a4('0xa')]['id']}};const _0x238cab={};return _0x238cab[_0x2564a4('0x31')]=_[_0x2564a4('0x1d')](db['DeskField']['rawAttributes']),_0x238cab['query']=_['keys'](_0x1275b7[_0x2564a4('0x1f')]),_0x238cab[_0x2564a4('0x2')]=_[_0x2564a4('0x32')](_0x238cab['model'],_0x238cab[_0x2564a4('0x1f')]),_0x59e009[_0x2564a4('0x37')]=_[_0x2564a4('0x32')](_0x238cab[_0x2564a4('0x31')],qs[_0x2564a4('0x15')](_0x1275b7[_0x2564a4('0x1f')][_0x2564a4('0x15')])),_0x59e009[_0x2564a4('0x37')]=_0x59e009[_0x2564a4('0x37')][_0x2564a4('0x25')]?_0x59e009[_0x2564a4('0x37')]:_0x238cab['model'],_0x1275b7[_0x2564a4('0x1f')]['includeAll']&&(_0x59e009[_0x2564a4('0x6')]=[{'all':!![]}]),_0x59e009=_[_0x2564a4('0x2e')]({},_0x59e009,_0x1275b7[_0x2564a4('0xe')]),db['DeskField']['findOne'](_0x59e009)[_0x2564a4('0x35')](handleEntityNotFound(_0x5dd0b0,null))[_0x2564a4('0x35')](respondWithResult(_0x5dd0b0,null))[_0x2564a4('0xf')](handleError(_0x5dd0b0,null));},exports['create']=function(_0x4e42de,_0x482ceb){const _0x3a0a6d=_0x120cc2;return db[_0x3a0a6d('0x14')][_0x3a0a6d('0x27')](_0x4e42de['body'],{})['then'](respondWithResult(_0x482ceb,0xc9))[_0x3a0a6d('0xf')](handleError(_0x482ceb,null));},exports[_0x120cc2('0x5')]=function(_0x3bbdc3,_0x395d30){const _0x316d30=_0x120cc2;return _0x3bbdc3['body']['id']&&delete _0x3bbdc3['body']['id'],db['DeskField'][_0x316d30('0x10')]({'where':{'id':_0x3bbdc3[_0x316d30('0xa')]['id']}})[_0x316d30('0x35')](handleEntityNotFound(_0x395d30,null))['then'](saveUpdates(_0x3bbdc3[_0x316d30('0x2c')],null))[_0x316d30('0x35')](respondWithResult(_0x395d30,null))[_0x316d30('0xf')](handleError(_0x395d30,null));},exports[_0x120cc2('0xc')]=function(_0x3f02f6,_0x48a008){const _0x26bc97=_0x120cc2;return db[_0x26bc97('0x14')][_0x26bc97('0x10')]({'where':{'id':_0x3f02f6[_0x26bc97('0xa')]['id']}})[_0x26bc97('0x35')](handleEntityNotFound(_0x48a008,null))[_0x26bc97('0x35')](removeEntity(_0x48a008,null))['catch'](handleError(_0x48a008,null));}; \ No newline at end of file +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 diff --git a/server/api/intDeskField/intDeskField.model.js b/server/api/intDeskField/intDeskField.model.js index ef03fc9..918969a 100644 --- a/server/api/intDeskField/intDeskField.model.js +++ b/server/api/intDeskField/intDeskField.model.js @@ -1 +1 @@ -const a239_0x2ba9=['define','./intDeskField.attributes','exports','idField','int_desk_fields'];(function(_0x2b3dd7,_0x2ba983){const _0x4f16e6=function(_0x252c24){while(--_0x252c24){_0x2b3dd7['push'](_0x2b3dd7['shift']());}};_0x4f16e6(++_0x2ba983);}(a239_0x2ba9,0x7e));const a239_0x4f16=function(_0x2b3dd7,_0x2ba983){_0x2b3dd7=_0x2b3dd7-0x0;let _0x4f16e6=a239_0x2ba9[_0x2b3dd7];return _0x4f16e6;};const _0x12da3a=a239_0x4f16;'use strict';const attributes=require(_0x12da3a('0x0'));module[_0x12da3a('0x1')]=function(_0x252c24){const _0x4c2c67=_0x12da3a,_0x5bba52=_0x252c24[_0x4c2c67('0x4')]('DeskField',attributes,{'tableName':_0x4c2c67('0x3'),'paranoid':![],'indexes':[{'name':'desk_unique_index','fields':[_0x4c2c67('0x2'),'FieldId'],'unique':!![]}],'timestamps':!![]});return _0x5bba52;}; \ No newline at end of file +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 diff --git a/server/api/intDynamics365Account/index.js b/server/api/intDynamics365Account/index.js index 4dd237a..dbfb83d 100644 --- a/server/api/intDynamics365Account/index.js +++ b/server/api/intDynamics365Account/index.js @@ -1 +1 @@ -const a240_0x2f92=['put','../../components/auth/service','getConfigurations','exports','update','/:id/fields','/:id/configurations','Router','/:id','delete','express','./intDynamics365Account.controller','post','get','isAuthenticated'];(function(_0x13a718,_0x2f92f8){const _0x536b9e=function(_0x1d01bf){while(--_0x1d01bf){_0x13a718['push'](_0x13a718['shift']());}};_0x536b9e(++_0x2f92f8);}(a240_0x2f92,0xe9));const a240_0x536b=function(_0x13a718,_0x2f92f8){_0x13a718=_0x13a718-0x0;let _0x536b9e=a240_0x2f92[_0x13a718];return _0x536b9e;};const _0x3b59a0=a240_0x536b;'use strict';const express=require(_0x3b59a0('0x2')),router=express[_0x3b59a0('0xe')](),auth=require(_0x3b59a0('0x8')),controller=require(_0x3b59a0('0x3'));router[_0x3b59a0('0x5')]('/',auth['isAuthenticated'](),controller['index']),router[_0x3b59a0('0x5')](_0x3b59a0('0x0'),auth[_0x3b59a0('0x6')](),controller['show']),router[_0x3b59a0('0x5')](_0x3b59a0('0xd'),auth['isAuthenticated'](),controller[_0x3b59a0('0x9')]),router[_0x3b59a0('0x5')](_0x3b59a0('0xc'),auth[_0x3b59a0('0x6')](),controller['getFields']),router['post']('/',auth['isAuthenticated'](),controller['create']),router[_0x3b59a0('0x4')]('/:id/configurations',auth[_0x3b59a0('0x6')](),controller['addConfiguration']),router[_0x3b59a0('0x7')](_0x3b59a0('0x0'),auth[_0x3b59a0('0x6')](),controller[_0x3b59a0('0xb')]),router[_0x3b59a0('0x1')](_0x3b59a0('0x0'),auth[_0x3b59a0('0x6')](),controller['destroy']),module[_0x3b59a0('0xa')]=router; \ No newline at end of file +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 diff --git a/server/api/intDynamics365Account/intDynamics365Account.attributes.js b/server/api/intDynamics365Account/intDynamics365Account.attributes.js index 2281a6a..1e76673 100644 --- a/server/api/intDynamics365Account/intDynamics365Account.attributes.js +++ b/server/api/intDynamics365Account/intDynamics365Account.attributes.js @@ -1 +1 @@ -const a241_0x1ae8=['STRING','exports'];(function(_0x591cb8,_0x1ae8e4){const _0x17806d=function(_0x496468){while(--_0x496468){_0x591cb8['push'](_0x591cb8['shift']());}};_0x17806d(++_0x1ae8e4);}(a241_0x1ae8,0x158));const a241_0x1780=function(_0x591cb8,_0x1ae8e4){_0x591cb8=_0x591cb8-0x0;let _0x17806d=a241_0x1ae8[_0x591cb8];return _0x17806d;};const _0x2f950f=a241_0x1780;'use strict';const Sequelize=require('sequelize');module[_0x2f950f('0x1')]={'name':{'type':Sequelize[_0x2f950f('0x0')]},'username':{'type':Sequelize[_0x2f950f('0x0')]},'password':{'type':Sequelize[_0x2f950f('0x0')]},'remoteUri':{'type':Sequelize[_0x2f950f('0x0')]},'tenantId':{'type':Sequelize[_0x2f950f('0x0')]},'clientId':{'type':Sequelize[_0x2f950f('0x0')]},'clientSecret':{'type':Sequelize['STRING']},'serverUrl':{'type':Sequelize[_0x2f950f('0x0')]},'description':{'type':Sequelize[_0x2f950f('0x0')]}}; \ No newline at end of file +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 diff --git a/server/api/intDynamics365Account/intDynamics365Account.controller.js b/server/api/intDynamics365Account/intDynamics365Account.controller.js index 43a327f..a92096d 100644 --- a/server/api/intDynamics365Account/intDynamics365Account.controller.js +++ b/server/api/intDynamics365Account/intDynamics365Account.controller.js @@ -1 +1 @@ -const a242_0x4508=['entitlementidname','IntegerAttributeMetadata','stack','versionnumber','rawAttributes','Attributes','billedserviceunits','error','contactidname','clientSecret','transactioncurrencyidname','ticketType','all','../../mysqldb','show','PicklistAttributeMetadata','set','json','lastIndexOf','owneridname','createdbyexternalpartyname','sentimentvalue','getDescriptions','@odata.type','productidname','firstresponsebykpiidname','entityimage_url','responsiblecontactidyominame','directioncode','forEach','customeridyominame','getSubjects','$select=DisplayName,LogicalName&$expand=OptionSet($select=Options)','then','fields','createdonbehalfbyyominame','order','FalseOption','false','entityimage_timestamp','findOne','modifiedbyexternalpartyname','pick','contractdetailidname','PhoneCall','Dynamics365Configuration','tenantId','primarycontactidname','phonenumber',')/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?','EntityNameAttributeMetadata','params','Label','phonecall_activity_parties','catch','followupby','create','exchangerate','findAll','GET','statecode','/oauth2/token','resolvebykpiidname',')/Microsoft.Dynamics.CRM.BooleanAttributeMetadata?$select=DisplayName,LogicalName&$expand=OptionSet($select=FalseOption,\x20TrueOption)','statuscode','filter','query','accountidyominame','name','nolimit','4.0','addConfiguration','undefined','map','includes','DoubleAttributeMetadata','responseby','attributes','channel','resolveby','end','BigIntAttributeMetadata','password','slice','username','Bearer\x20','kbarticleidname','actualserviceunits','body','regardingobjectid','clientId','lodash','limit','POST','StringAttributeMetadata','ticketnumber','model','importsequencenumber','options','DecimalAttributeMetadata','incident','../../config/logger','filters','destroy','description','accountidname','request-promise-native','like','push','subjectidname','https://login.microsoftonline.com/','where','DateTimeAttributeMetadata','test','intersection','sort','Options','includeAll','caseorigincode','%s/api/data/v9.0/','getFields','StateAttributeMetadata','influencescore','sequelize','?$select=DisplayName,LogicalName','merge','include','true','overriddencreatedon','EntityDefinitions(','Descriptions','customeridtype','substring','length','customeridname','type','DisplayName','OptionSet','count','msdyn_incidenttypename','createdbyyominame','customerid','Incident','contractidname','MetadataId','LogicalName','TrueOption','update','emailaddress','msdyn_iotalertname','utcconversiontimezonecode','Dynamics365Account','value','modifiedbyname','concat','offset','getConfigurations','../../components/integrations/configuration',')/Microsoft.Dynamics.CRM.','sendStatus','isNil','keys','primarycontactidyominame','createdon','slainvokedidname','UserLocalizedLabel','prioritycodename','send','statusCode','numberofchildincidents','fieldName','../../components/parsers/qs','Subjects','onholdtime','ownerid','remoteUri','modifiedon','owneridtype','rows','access_token','status','remove',')/Attributes(','index'];(function(_0xf99ffe,_0x4508e2){const _0x428718=function(_0x34dd05){while(--_0x34dd05){_0xf99ffe['push'](_0xf99ffe['shift']());}};_0x428718(++_0x4508e2);}(a242_0x4508,0x1df));const a242_0x4287=function(_0xf99ffe,_0x4508e2){_0xf99ffe=_0xf99ffe-0x0;let _0x428718=a242_0x4508[_0xf99ffe];return _0x428718;};const _0x1ec012=a242_0x4287;'use strict';const rp=require(_0x1ec012('0xb3')),util=require('util'),_=require(_0x1ec012('0xa4')),qs=require(_0x1ec012('0x3c')),logger=require(_0x1ec012('0xae'))('api'),db=require(_0x1ec012('0x56'))['db'],{Op}=require(_0x1ec012('0xc')),integrations=require(_0x1ec012('0x2e'));function respondWithResult(_0x34dd05,_0x5e3470){return _0x5e3470=_0x5e3470||0xc8,function(_0x3254a0){const _0x18802e=a242_0x4287;if(_0x3254a0)return _0x34dd05[_0x18802e('0x45')](_0x5e3470)[_0x18802e('0x5a')](_0x3254a0);};}function respondWithFilteredResult(_0x27f1dd,_0x1ef062){return function(_0x56905e){const _0x549dab=a242_0x4287;if(_0x56905e){const _0x3095b6=_0x56905e[_0x549dab('0x1b')],_0x3280d2=_0x1ef062[_0x549dab('0x2c')];let _0x563bbe=_0x1ef062[_0x549dab('0x2c')]+_0x1ef062['limit'],_0x4baf2c;return _0x563bbe>=_0x3095b6?(_0x563bbe=_0x3095b6,_0x4baf2c=0xc8):_0x4baf2c=0xce,_0x27f1dd[_0x549dab('0x45')](_0x4baf2c),_0x27f1dd[_0x549dab('0x59')]('Content-Range',_0x3280d2+'-'+_0x563bbe+'/'+_0x3095b6)[_0x549dab('0x5a')](_0x56905e);}return null;};}function saveUpdates(_0x34fb4c){return function(_0x2c7853){const _0x45946b=a242_0x4287;if(_0x2c7853)return _0x2c7853[_0x45946b('0x24')](_0x34fb4c)[_0x45946b('0x6a')](function(_0xda6811){return _0xda6811;});return null;};}function removeEntity(_0x440a4b){return function(_0x34319f){const _0x571c72=a242_0x4287;if(_0x34319f)return _0x34319f[_0x571c72('0xb0')]()[_0x571c72('0x6a')](function(){const _0x597e6e=_0x571c72;_0x440a4b['status'](0xcc)[_0x597e6e('0x99')]();});};}function handleEntityNotFound(_0x3366a4){return function(_0x27a742){const _0x25552b=a242_0x4287;return!_0x27a742&&_0x3366a4[_0x25552b('0x30')](0x194),_0x27a742;};}function handleError(_0x1e4139,_0x585443){return _0x585443=_0x585443||0x1f4,function(_0x3e9a26){const _0x599fe7=a242_0x4287;logger[_0x599fe7('0x50')](_0x3e9a26[_0x599fe7('0x4b')]),_0x3e9a26['name']&&delete _0x3e9a26['name'],_0x1e4139[_0x599fe7('0x45')](_0x585443)[_0x599fe7('0x38')](_0x3e9a26);};}exports[_0x1ec012('0x48')]=function(_0x57d37c,_0x597d7a){const _0x346ce7=_0x1ec012;let _0x3dc163={};const _0x4b63f3={},_0x1355e5={'count':0x0,'rows':[]},_0x4189b5=_[_0x346ce7('0x92')](db['Dynamics365Account'][_0x346ce7('0x4d')],function(_0x59953d){const _0x577b2d=_0x346ce7;return{'name':_0x59953d[_0x577b2d('0x3b')],'type':_0x59953d['type']['key']};});_0x4b63f3['model']=_[_0x346ce7('0x92')](_0x4189b5,_0x346ce7('0x8d')),_0x4b63f3[_0x346ce7('0x8b')]=_[_0x346ce7('0x32')](_0x57d37c[_0x346ce7('0x8b')]),_0x4b63f3[_0x346ce7('0xaf')]=_[_0x346ce7('0x3')](_0x4b63f3[_0x346ce7('0xa9')],_0x4b63f3[_0x346ce7('0x8b')]),_0x3dc163['attributes']=_['intersection'](_0x4b63f3[_0x346ce7('0xa9')],qs['fields'](_0x57d37c[_0x346ce7('0x8b')][_0x346ce7('0x6b')])),_0x3dc163['attributes']=_0x3dc163['attributes'][_0x346ce7('0x16')]?_0x3dc163[_0x346ce7('0x96')]:_0x4b63f3[_0x346ce7('0xa9')];typeof _0x57d37c[_0x346ce7('0x8b')]['nolimit']==='undefined'&&(_0x3dc163[_0x346ce7('0xa5')]=qs[_0x346ce7('0xa5')](_0x57d37c['query'][_0x346ce7('0xa5')]),_0x3dc163['offset']=qs[_0x346ce7('0x2c')](_0x57d37c[_0x346ce7('0x8b')][_0x346ce7('0x2c')]));_0x3dc163[_0x346ce7('0x6d')]=qs[_0x346ce7('0x4')](_0x57d37c['query'][_0x346ce7('0x4')]),_0x3dc163[_0x346ce7('0x0')]=qs[_0x346ce7('0xaf')](_[_0x346ce7('0x73')](_0x57d37c[_0x346ce7('0x8b')],_0x4b63f3[_0x346ce7('0xaf')]),_0x4189b5);_0x57d37c['query'][_0x346ce7('0x8a')]&&(_0x3dc163[_0x346ce7('0x0')]=_[_0x346ce7('0xe')](_0x3dc163[_0x346ce7('0x0')],{[Op['or']]:_[_0x346ce7('0x92')](_0x4189b5,function(_0x47367b){const _0xd94a63=_0x346ce7;if(_0x47367b[_0xd94a63('0x18')]!=='VIRTUAL'){const _0x54f886={};return _0x54f886[_0x47367b[_0xd94a63('0x8d')]]={[Op[_0xd94a63('0xb4')]]:'%'+_0x57d37c[_0xd94a63('0x8b')][_0xd94a63('0x8a')]+'%'},_0x54f886;}})}));_0x3dc163=_[_0x346ce7('0xe')]({},_0x3dc163,_0x57d37c[_0x346ce7('0xab')]);const _0x28ed40={'where':_0x3dc163[_0x346ce7('0x0')]};return db[_0x346ce7('0x28')][_0x346ce7('0x1b')](_0x28ed40)[_0x346ce7('0x6a')](function(_0x3f0f56){const _0x4a64c3=_0x346ce7;return _0x1355e5[_0x4a64c3('0x1b')]=_0x3f0f56,_0x57d37c[_0x4a64c3('0x8b')][_0x4a64c3('0x6')]&&(_0x3dc163[_0x4a64c3('0xf')]=[{'all':!![]}]),db[_0x4a64c3('0x28')][_0x4a64c3('0x83')](_0x3dc163);})[_0x346ce7('0x6a')](function(_0x1d996d){const _0x4b9680=_0x346ce7;return _0x1355e5[_0x4b9680('0x43')]=_0x1d996d,_0x1355e5;})['then'](respondWithFilteredResult(_0x597d7a,_0x3dc163))['catch'](handleError(_0x597d7a,null));},exports[_0x1ec012('0x57')]=function(_0x1a3fa8,_0x4c6915){const _0x359653=_0x1ec012;let _0x21bbd1={'raw':![],'where':{'id':_0x1a3fa8[_0x359653('0x7c')]['id']}};const _0x28c599={};return _0x28c599[_0x359653('0xa9')]=_[_0x359653('0x32')](db['Dynamics365Account'][_0x359653('0x4d')]),_0x28c599[_0x359653('0x8b')]=_['keys'](_0x1a3fa8[_0x359653('0x8b')]),_0x28c599[_0x359653('0xaf')]=_['intersection'](_0x28c599[_0x359653('0xa9')],_0x28c599['query']),_0x21bbd1['attributes']=_[_0x359653('0x3')](_0x28c599[_0x359653('0xa9')],qs['fields'](_0x1a3fa8[_0x359653('0x8b')][_0x359653('0x6b')])),_0x21bbd1['attributes']=_0x21bbd1[_0x359653('0x96')][_0x359653('0x16')]?_0x21bbd1[_0x359653('0x96')]:_0x28c599[_0x359653('0xa9')],_0x1a3fa8[_0x359653('0x8b')]['includeAll']&&(_0x21bbd1[_0x359653('0xf')]=[{'all':!![]}]),_0x21bbd1=_[_0x359653('0xe')]({},_0x21bbd1,_0x1a3fa8['options']),db[_0x359653('0x28')][_0x359653('0x71')](_0x21bbd1)['then'](handleEntityNotFound(_0x4c6915,null))['then'](respondWithResult(_0x4c6915,null))['catch'](handleError(_0x4c6915,null));},exports[_0x1ec012('0x81')]=function(_0x55cec5,_0x2279d4){const _0x5bbfec=_0x1ec012;return db[_0x5bbfec('0x28')][_0x5bbfec('0x81')](_0x55cec5[_0x5bbfec('0xa1')],{})[_0x5bbfec('0x6a')](respondWithResult(_0x2279d4,0xc9))[_0x5bbfec('0x7f')](handleError(_0x2279d4,null));},exports[_0x1ec012('0x24')]=function(_0x548c62,_0x301dbe){const _0x5b3da7=_0x1ec012;return _0x548c62[_0x5b3da7('0xa1')]['id']&&delete _0x548c62[_0x5b3da7('0xa1')]['id'],db[_0x5b3da7('0x28')][_0x5b3da7('0x71')]({'where':{'id':_0x548c62[_0x5b3da7('0x7c')]['id']}})['then'](handleEntityNotFound(_0x301dbe,null))['then'](saveUpdates(_0x548c62[_0x5b3da7('0xa1')],null))['then'](respondWithResult(_0x301dbe,null))[_0x5b3da7('0x7f')](handleError(_0x301dbe,null));},exports['destroy']=function(_0x476215,_0x2d65bb){const _0x4c618f=_0x1ec012;return db[_0x4c618f('0x28')][_0x4c618f('0x71')]({'where':{'id':_0x476215['params']['id']}})[_0x4c618f('0x6a')](handleEntityNotFound(_0x2d65bb,null))[_0x4c618f('0x6a')](removeEntity(_0x2d65bb,null))[_0x4c618f('0x7f')](handleError(_0x2d65bb,null));},exports[_0x1ec012('0x2d')]=function(_0x4f44ef,_0x23972b){const _0x2620f3=_0x1ec012;let _0x30a191={};const _0xcc3832={};let _0x408cc8,_0x29aa45;return db[_0x2620f3('0x28')][_0x2620f3('0x71')]({'where':{'id':_0x4f44ef['params']['id']}})['then'](handleEntityNotFound(_0x23972b,null))[_0x2620f3('0x6a')](function(_0xa4a9c2){const _0x360b05=_0x2620f3;if(_0xa4a9c2)return _0x408cc8=_0xa4a9c2,_0xcc3832['model']=_[_0x360b05('0x32')](db[_0x360b05('0x76')][_0x360b05('0x4d')]),_0xcc3832['query']=_[_0x360b05('0x32')](_0x4f44ef[_0x360b05('0x8b')]),_0xcc3832[_0x360b05('0xaf')]=_[_0x360b05('0x3')](_0xcc3832[_0x360b05('0xa9')],_0xcc3832[_0x360b05('0x8b')]),_0x30a191[_0x360b05('0x96')]=_[_0x360b05('0x3')](_0xcc3832[_0x360b05('0xa9')],qs['fields'](_0x4f44ef[_0x360b05('0x8b')][_0x360b05('0x6b')])),_0x30a191[_0x360b05('0x96')]=_0x30a191['attributes'][_0x360b05('0x16')]?_0x30a191['attributes']:_0xcc3832['model'],_0x30a191[_0x360b05('0x6d')]=qs[_0x360b05('0x4')](_0x4f44ef[_0x360b05('0x8b')][_0x360b05('0x4')]),_0x30a191['where']=qs['filters'](_[_0x360b05('0x73')](_0x4f44ef[_0x360b05('0x8b')],_0xcc3832['filters'])),_0x4f44ef['query']['filter']&&(_0x30a191[_0x360b05('0x0')]=_['merge'](_0x30a191['where'],{[Op['or']]:_['map'](_0x30a191[_0x360b05('0x96')],function(_0x457454){const _0x1717b6=_0x360b05,_0x514331={};return _0x514331[_0x457454]={[Op[_0x1717b6('0xb4')]]:'%'+_0x4f44ef['query']['filter']+'%'},_0x514331;})})),_0x30a191=_['merge']({},_0x30a191,_0x4f44ef['options']),_0x408cc8[_0x360b05('0x2d')](_0x30a191);})[_0x2620f3('0x6a')](function(_0x45b4e4){const _0x381c0a=_0x2620f3;if(_0x45b4e4)return _0x29aa45=_0x45b4e4['length'],typeof _0x4f44ef[_0x381c0a('0x8b')][_0x381c0a('0x8e')]===_0x381c0a('0x91')&&(_0x30a191[_0x381c0a('0xa5')]=qs[_0x381c0a('0xa5')](_0x4f44ef[_0x381c0a('0x8b')][_0x381c0a('0xa5')]),_0x30a191['offset']=qs['offset'](_0x4f44ef[_0x381c0a('0x8b')][_0x381c0a('0x2c')])),_0x408cc8['getConfigurations'](_0x30a191);})[_0x2620f3('0x6a')](function(_0x1db866){if(_0x1db866)return _0x1db866?{'count':_0x29aa45,'rows':_0x1db866}:null;})[_0x2620f3('0x6a')](respondWithResult(_0x23972b,null))[_0x2620f3('0x7f')](handleError(_0x23972b,null));},exports[_0x1ec012('0x90')]=function(_0x208f11,_0x1b53c2){const _0x389bd7=_0x1ec012;return _0x208f11['body']['id']&&delete _0x208f11[_0x389bd7('0xa1')]['id'],db[_0x389bd7('0x28')][_0x389bd7('0x71')]({'where':{'id':_0x208f11[_0x389bd7('0x7c')]['id']}})[_0x389bd7('0x6a')](handleEntityNotFound(_0x1b53c2,null))['then'](function(_0x5d96e7){const _0x4311eb=_0x389bd7;if(_0x5d96e7)return _0x208f11[_0x4311eb('0xa1')]['AccountId']=_0x5d96e7['id'],_0x208f11[_0x4311eb('0xa1')]['Subjects']=integrations[_0x4311eb('0x68')](_0x208f11['body'][_0x4311eb('0x97')],_0x208f11[_0x4311eb('0xa1')][_0x4311eb('0x18')]),_0x208f11[_0x4311eb('0xa1')][_0x4311eb('0x13')]=integrations[_0x4311eb('0x5f')](_0x208f11[_0x4311eb('0xa1')][_0x4311eb('0x97')],_0x208f11[_0x4311eb('0xa1')]['type']),db[_0x4311eb('0x76')]['create'](_0x208f11[_0x4311eb('0xa1')],{'include':[{'model':db['Dynamics365Field'],'as':_0x4311eb('0x3d')},{'model':db['Dynamics365Field'],'as':'Descriptions'}]});return null;})[_0x389bd7('0x6a')](respondWithResult(_0x1b53c2,null))[_0x389bd7('0x7f')](handleError(_0x1b53c2,null));},exports[_0x1ec012('0x9')]=function(_0x591480,_0x149f6a){const _0x49ab0e=_0x1ec012,_0x521639=_0x591480[_0x49ab0e('0x8b')][_0x49ab0e('0x54')],_0x27ab3b=_0x521639===_0x49ab0e('0xad')?_0x49ab0e('0x1f'):_0x49ab0e('0x75');let _0x3ae58e='',_0x5344fa='',_0x1c8a2d='',_0x58d37a='',_0x19549c='',_0x879ada='',_0x4f227d='',_0x4dca69='';const _0x44db5a=['title',_0x49ab0e('0xb1'),_0x49ab0e('0x1e'),_0x49ab0e('0x3f'),_0x49ab0e('0x7'),'subject',_0x49ab0e('0x79'),_0x49ab0e('0xa2'),_0x49ab0e('0x65'),_0x49ab0e('0x7e')],_0x46ce04=[_0x49ab0e('0xb2'),_0x49ab0e('0x8c'),_0x49ab0e('0xa0'),_0x49ab0e('0x4f'),_0x49ab0e('0x51'),'contactidyominame',_0x49ab0e('0x74'),_0x49ab0e('0x20'),_0x49ab0e('0x5d'),'createdbyexternalpartyyominame','createdbyname',_0x49ab0e('0x1d'),_0x49ab0e('0x34'),'createdonbehalfbyname',_0x49ab0e('0x6c'),_0x49ab0e('0x17'),_0x49ab0e('0x14'),_0x49ab0e('0x67'),_0x49ab0e('0x25'),_0x49ab0e('0x49'),_0x49ab0e('0x70'),_0x49ab0e('0x63'),'escalatedon',_0x49ab0e('0x82'),_0x49ab0e('0x62'),_0x49ab0e('0x80'),_0x49ab0e('0xaa'),_0x49ab0e('0xb'),_0x49ab0e('0x9f'),'lastonholdtime','masteridname',_0x49ab0e('0x72'),'modifiedbyexternalpartyyominame',_0x49ab0e('0x2a'),'modifiedbyyominame',_0x49ab0e('0x41'),'modifiedonbehalfbyname','modifiedonbehalfbyyominame',_0x49ab0e('0x1c'),_0x49ab0e('0x26'),_0x49ab0e('0x3a'),_0x49ab0e('0x3e'),_0x49ab0e('0x11'),_0x49ab0e('0x5c'),_0x49ab0e('0x42'),'owneridyominame','parentcaseidname',_0x49ab0e('0x78'),_0x49ab0e('0x33'),_0x49ab0e('0x37'),_0x49ab0e('0x61'),'productserialnumber',_0x49ab0e('0x98'),_0x49ab0e('0x87'),_0x49ab0e('0x95'),'responsiblecontactidname',_0x49ab0e('0x64'),_0x49ab0e('0x5e'),_0x49ab0e('0x35'),'slaname','socialprofileidname',_0x49ab0e('0x85'),_0x49ab0e('0x89'),_0x49ab0e('0xb6'),_0x49ab0e('0xa8'),'timezoneruleversionnumber',_0x49ab0e('0x53'),'traversedpath',_0x49ab0e('0x27'),_0x49ab0e('0x4c')],_0x3f478f=_0x44db5a['concat'](_0x46ce04);return db[_0x49ab0e('0x28')]['findOne']({'where':{'id':_0x591480[_0x49ab0e('0x7c')]['id']},'attributes':['id','username',_0x49ab0e('0x9b'),_0x49ab0e('0x40'),_0x49ab0e('0x77'),'clientId',_0x49ab0e('0x52')]})[_0x49ab0e('0x6a')](handleEntityNotFound(_0x149f6a,null))[_0x49ab0e('0x6a')](function(_0x15da26){const _0x43d9f0=_0x49ab0e;if(_0x15da26){_0x4dca69=_0x15da26[_0x43d9f0('0x40')];const _0x42717f=_0x4dca69[_0x43d9f0('0x9c')](-0x1);_0x42717f==='/'&&(_0x4dca69=_0x4dca69['substring'](0x0,_0x4dca69[_0x43d9f0('0x5b')](_0x42717f)));_0x4f227d=util['format'](_0x43d9f0('0x8'),_0x4dca69);const _0x38605a={'method':_0x43d9f0('0xa6'),'uri':_0x43d9f0('0xb7')+_0x15da26['tenantId']+_0x43d9f0('0x86'),'form':{'client_id':_0x15da26[_0x43d9f0('0xa3')],'resource':_0x4dca69,'username':_0x15da26[_0x43d9f0('0x9d')],'password':_0x15da26[_0x43d9f0('0x9b')],'grant_type':'password','client_secret':_0x15da26[_0x43d9f0('0x52')]},'json':!![]};return rp(_0x38605a);}})['then'](function(_0x46a982){const _0x4d94fb=_0x49ab0e;_0x879ada=_0x46a982[_0x4d94fb('0x44')];const _0x51612c={'method':_0x4d94fb('0x84'),'uri':encodeURI(_0x4f227d+'EntityDefinitions?$select=DisplayName,EntitySetName&$filter=SchemaName\x20eq\x20\x27'+_0x27ab3b+'\x27'),'headers':{'Authorization':_0x4d94fb('0x9e')+_0x879ada,'If-None-Match':null,'OData-Version':_0x4d94fb('0x8f')},'json':!![]};return rp(_0x51612c);})[_0x49ab0e('0x6a')](function(_0x335acb){const _0x46ca09=_0x49ab0e,_0x490105=_0x335acb[_0x46ca09('0x29')][0x0],_0x42a9b0=_0x490105[_0x46ca09('0x21')],_0x5217d1={'method':_0x46ca09('0x84'),'uri':_0x4f227d+'EntityDefinitions('+_0x42a9b0+')?$select=LogicalName&$expand=Attributes($select=LogicalName)','headers':{'Authorization':_0x46ca09('0x9e')+_0x879ada,'If-None-Match':null,'OData-Version':_0x46ca09('0x8f')},'json':!![]};return rp(_0x5217d1);})[_0x49ab0e('0x6a')](function(_0x2acf7a){const _0x4434bb=_0x49ab0e;_0x3ae58e=_0x2acf7a,_0x5344fa=_0x3ae58e[_0x4434bb('0x4e')],_0x5344fa=_[_0x4434bb('0x46')](_0x5344fa,function(_0x24c2ac){const _0x122418=_0x4434bb;return!_0x3f478f[_0x122418('0x93')](_0x24c2ac[_0x122418('0x22')]);});const _0x38618f=[],_0x11719d=[];return _0x5344fa[_0x4434bb('0x66')](function(_0xd5356b){const _0x4ec449=_0x4434bb;if(_0xd5356b[_0x4ec449('0x60')]){const _0xadb63f=_0xd5356b[_0x4ec449('0x60')][_0x4ec449('0x15')](_0xd5356b[_0x4ec449('0x60')][_0x4ec449('0x5b')]('.')+0x1);_0xadb63f===_0x4ec449('0x58')&&_0x38618f[_0x4ec449('0xb5')](getSelectList(_0x4f227d,_0x521639,_0x11719d,_0x3ae58e[_0x4ec449('0x21')],_0xd5356b[_0x4ec449('0x21')],_0x879ada));}}),Promise['all'](_0x38618f);})['then'](function(_0xdc5a6e){const _0x3cbdf8=_0x49ab0e;_0x1c8a2d=_0xdc5a6e[0x0];const _0xe6cce9=[],_0x1ad9be=[];return _0x5344fa['forEach'](function(_0x30279b){const _0x4a29c6=a242_0x4287;if(!_[_0x4a29c6('0x31')](_0x30279b[_0x4a29c6('0x60')])){const _0x5eb9b3=_0x30279b['@odata.type']['substring'](_0x30279b[_0x4a29c6('0x60')][_0x4a29c6('0x5b')]('.')+0x1);_0x5eb9b3==='BooleanAttributeMetadata'&&_0xe6cce9[_0x4a29c6('0xb5')](getBooleanList(_0x4f227d,_0x521639,_0x1ad9be,_0x3ae58e[_0x4a29c6('0x21')],_0x30279b[_0x4a29c6('0x21')],_0x879ada));}}),Promise[_0x3cbdf8('0x55')](_0xe6cce9);})[_0x49ab0e('0x6a')](function(_0x49188b){const _0x105034=_0x49ab0e;_0x58d37a=_0x49188b[0x0];const _0x4b49fb=[],_0x3bffb1=[];return _0x5344fa[_0x105034('0x66')](function(_0x1440be){const _0x551889=_0x105034;if(_0x1440be[_0x551889('0x60')]){const _0x591aca=_0x1440be[_0x551889('0x60')]['substring'](_0x1440be[_0x551889('0x60')][_0x551889('0x5b')]('.')+0x1);(_0x591aca===_0x551889('0xa7')||_0x591aca===_0x551889('0x94')||_0x591aca===_0x551889('0x9a')||_0x591aca===_0x551889('0x4a')||_0x591aca==='MemoAttributeMetadata'||_0x591aca===_0x551889('0x1')||_0x591aca==='StatusAttributeMetadata'||_0x591aca===_0x551889('0x7b')||_0x591aca===_0x551889('0xa')||_0x591aca===_0x551889('0xac'))&&_0x4b49fb['push'](getInputList(_0x4f227d,_0x521639,_0x591aca,_0x3bffb1,_0x3ae58e['MetadataId'],_0x1440be[_0x551889('0x21')],_0x879ada));}}),Promise[_0x105034('0x55')](_0x4b49fb);})[_0x49ab0e('0x6a')](function(_0x584d16){const _0x47316d=_0x49ab0e;_0x19549c=_0x584d16[0x0];const _0xdc9459=_0x1c8a2d[_0x47316d('0x2b')](_0x58d37a)[_0x47316d('0x2b')](_0x19549c),_0x1a1aa2={'count':_0xdc9459[_0x47316d('0x16')],'rows':_0xdc9459};return _0x1a1aa2;})[_0x49ab0e('0x6a')](respondWithResult(_0x149f6a,null))[_0x49ab0e('0x7f')](function(_0x50a58d){const _0x3a2733=_0x49ab0e;let _0x5c9c90=_0x591480[_0x3a2733('0x8b')][_0x3a2733('0x2')]?0x1f4:_0x50a58d[_0x3a2733('0x39')]||0x1f4;logger[_0x3a2733('0x50')](_0x50a58d['stack']),delete _0x50a58d[_0x3a2733('0x8d')],_0x5c9c90===0x191&&(_0x5c9c90=0x190),_0x149f6a[_0x3a2733('0x45')](_0x5c9c90)['send'](_0x591480['query'][_0x3a2733('0x2')]?{'message':'Wrong\x20credentials','statusCode':_0x50a58d[_0x3a2733('0x39')]}:_0x50a58d);});};function getSelectList(_0x1c5ee2,_0x245edc,_0x685824,_0x3b47c6,_0x5a4ca8,_0x1fb93e){const _0x25a666=_0x1ec012,_0x263f36={'method':'GET','uri':_0x1c5ee2+'EntityDefinitions('+_0x3b47c6+_0x25a666('0x47')+_0x5a4ca8+_0x25a666('0x7a')+_0x25a666('0x69'),'headers':{'Authorization':_0x25a666('0x9e')+_0x1fb93e,'If-None-Match':null,'OData-Version':'4.0'},'json':!![]};return rp(_0x263f36)[_0x25a666('0x6a')](function(_0x69758){const _0x8e9b9=_0x25a666,_0x652efb=[],_0x2dcd4d=_0x69758[_0x8e9b9('0x1a')][_0x8e9b9('0x5')];_0x2dcd4d[_0x8e9b9('0x66')](function(_0x4eb4fd){const _0x3b1d24=_0x8e9b9;_0x652efb[_0x3b1d24('0xb5')]({'name':_0x4eb4fd[_0x3b1d24('0x7d')][_0x3b1d24('0x36')][_0x3b1d24('0x7d')],'value':String(_0x4eb4fd['Value'])});});const _0x41018e={'id':_0x245edc+'_'+_0x69758[_0x8e9b9('0x22')],'name':_0x69758[_0x8e9b9('0x19')]['UserLocalizedLabel'][_0x8e9b9('0x7d')],'custom':![],'options':_0x652efb};return _0x685824['push'](_0x41018e),_0x685824;});}function getBooleanList(_0x3117cb,_0x5b5b2c,_0x6d4f2f,_0x23f067,_0x43ecfb,_0x31cfe2){const _0x3ae302=_0x1ec012,_0x2b0a8c={'method':_0x3ae302('0x84'),'uri':_0x3117cb+_0x3ae302('0x12')+_0x23f067+')/Attributes('+_0x43ecfb+_0x3ae302('0x88'),'headers':{'Authorization':_0x3ae302('0x9e')+_0x31cfe2,'If-None-Match':null,'OData-Version':_0x3ae302('0x8f')},'json':!![]};return rp(_0x2b0a8c)[_0x3ae302('0x6a')](function(_0x152876){const _0x500cf9=_0x3ae302,_0x4dce71=[];_0x4dce71['push']({'name':_0x152876['OptionSet'][_0x500cf9('0x23')][_0x500cf9('0x7d')][_0x500cf9('0x36')]['Label'],'value':_0x500cf9('0x10')},{'name':_0x152876[_0x500cf9('0x1a')][_0x500cf9('0x6e')][_0x500cf9('0x7d')][_0x500cf9('0x36')][_0x500cf9('0x7d')],'value':_0x500cf9('0x6f')});const _0x18fb64={'id':_0x5b5b2c+'_'+_0x152876[_0x500cf9('0x22')],'name':_0x152876['DisplayName']['UserLocalizedLabel']['Label'],'custom':![],'options':_0x4dce71};return _0x6d4f2f[_0x500cf9('0xb5')](_0x18fb64),_0x6d4f2f;});}function getInputList(_0x3d477a,_0x1baa88,_0x42378f,_0xfba499,_0xd3a4ff,_0xeda3c1,_0x456064){const _0x3d77a2=_0x1ec012,_0x482799={'method':'GET','uri':_0x3d477a+_0x3d77a2('0x12')+_0xd3a4ff+_0x3d77a2('0x47')+_0xeda3c1+_0x3d77a2('0x2f')+_0x42378f+_0x3d77a2('0xd'),'headers':{'Authorization':_0x3d77a2('0x9e')+_0x456064,'If-None-Match':null,'OData-Version':_0x3d77a2('0x8f')},'json':!![]};return rp(_0x482799)[_0x3d77a2('0x6a')](function(_0x1fa7ce){const _0x3538b7=_0x3d77a2,_0x3da77d={'id':_0x1baa88+'_'+_0x1fa7ce['LogicalName'],'name':_0x1fa7ce[_0x3538b7('0x19')][_0x3538b7('0x36')]?_0x1fa7ce['DisplayName']['UserLocalizedLabel'][_0x3538b7('0x7d')]:_0x1fa7ce[_0x3538b7('0x22')],'custom':![],'options':[]};return _0xfba499[_0x3538b7('0xb5')](_0x3da77d),_0xfba499;});} \ No newline at end of file +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 diff --git a/server/api/intDynamics365Account/intDynamics365Account.model.js b/server/api/intDynamics365Account/intDynamics365Account.model.js index b650f65..5cf1dfa 100644 --- a/server/api/intDynamics365Account/intDynamics365Account.model.js +++ b/server/api/intDynamics365Account/intDynamics365Account.model.js @@ -1 +1 @@ -const a243_0x2a97=['./intDynamics365Account.attributes','exports','int_dynamics365_accounts','define','Dynamics365Account'];(function(_0x10c3f7,_0x2a97a8){const _0x3e737d=function(_0x790d24){while(--_0x790d24){_0x10c3f7['push'](_0x10c3f7['shift']());}};_0x3e737d(++_0x2a97a8);}(a243_0x2a97,0x189));const a243_0x3e73=function(_0x10c3f7,_0x2a97a8){_0x10c3f7=_0x10c3f7-0x0;let _0x3e737d=a243_0x2a97[_0x10c3f7];return _0x3e737d;};const _0x3fdf5f=a243_0x3e73;'use strict';const attributes=require(_0x3fdf5f('0x2'));module[_0x3fdf5f('0x3')]=function(_0x790d24){const _0xc3555d=_0x3fdf5f,_0x58fa60=_0x790d24[_0xc3555d('0x0')](_0xc3555d('0x1'),attributes,{'tableName':_0xc3555d('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x58fa60;}; \ No newline at end of file +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 diff --git a/server/api/intDynamics365Account/intDynamics365Account.rpc.js b/server/api/intDynamics365Account/intDynamics365Account.rpc.js index d4af041..664ee60 100644 --- a/server/api/intDynamics365Account/intDynamics365Account.rpc.js +++ b/server/api/intDynamics365Account/intDynamics365Account.rpc.js @@ -1 +1 @@ -const a244_0x188f=['ShowDynamics365Account','message','info','GetDynamics365Account','debug','findOne','findAll','rpc','../../mysqldb','model','Dynamics365Account','where','limit','error','options','attributes','include','map','then','stringify','raw','../../config/logger'];(function(_0x11d679,_0x188ffa){const _0x3d70cb=function(_0x485889){while(--_0x485889){_0x11d679['push'](_0x11d679['shift']());}};_0x3d70cb(++_0x188ffa);}(a244_0x188f,0xd7));const a244_0x3d70=function(_0x11d679,_0x188ffa){_0x11d679=_0x11d679-0x0;let _0x3d70cb=a244_0x188f[_0x11d679];return _0x3d70cb;};const _0x44d26d=a244_0x3d70;'use strict';const _=require('lodash'),db=require(_0x44d26d('0xd'))['db'],logger=require(_0x44d26d('0x4'))(_0x44d26d('0xc'));exports['GetDynamics365Account']=function(_0x485889){const _0x4ba574=this;return new Promise(function(_0x5c6a2d,_0x5f1d24){const _0x29d5f0=a244_0x3d70;return db[_0x29d5f0('0xf')][_0x29d5f0('0xb')]({'raw':_0x485889[_0x29d5f0('0x13')]?_0x485889[_0x29d5f0('0x13')][_0x29d5f0('0x3')]===undefined?!![]:![]:!![],'where':_0x485889[_0x29d5f0('0x13')]?_0x485889[_0x29d5f0('0x13')][_0x29d5f0('0x10')]||null:null,'attributes':_0x485889[_0x29d5f0('0x13')]?_0x485889[_0x29d5f0('0x13')][_0x29d5f0('0x14')]||null:null,'limit':_0x485889[_0x29d5f0('0x13')]?_0x485889[_0x29d5f0('0x13')][_0x29d5f0('0x11')]||null:null,'include':_0x485889[_0x29d5f0('0x13')]?_0x485889[_0x29d5f0('0x13')][_0x29d5f0('0x15')]?_['map'](_0x485889[_0x29d5f0('0x13')][_0x29d5f0('0x15')],function(_0x175567){const _0x2abad1=_0x29d5f0;return{'model':db[_0x175567[_0x2abad1('0xe')]],'as':_0x175567['as'],'attributes':_0x175567[_0x2abad1('0x14')],'include':_0x175567['include']?_[_0x2abad1('0x0')](_0x175567['include'],function(_0x3c413b){const _0x59f787=_0x2abad1;return{'model':db[_0x3c413b[_0x59f787('0xe')]],'as':_0x3c413b['as'],'attributes':_0x3c413b[_0x59f787('0x14')],'include':_0x3c413b[_0x59f787('0x15')]?_[_0x59f787('0x0')](_0x3c413b[_0x59f787('0x15')],function(_0x5aee1a){const _0x44f8c0=_0x59f787;return{'model':db[_0x5aee1a[_0x44f8c0('0xe')]],'as':_0x5aee1a['as'],'attributes':_0x5aee1a[_0x44f8c0('0x14')]};}):[]};}):[]};}):[]:[]})[_0x29d5f0('0x1')](function(_0xca4cc9){const _0x3f2ad0=_0x29d5f0;logger[_0x3f2ad0('0x7')](_0x3f2ad0('0x8'),_0x485889),logger[_0x3f2ad0('0x9')](_0x3f2ad0('0x8'),_0x485889,JSON[_0x3f2ad0('0x2')](_0xca4cc9)),_0x5c6a2d(_0xca4cc9);})['catch'](function(_0x3396f2){const _0x5a9450=_0x29d5f0;logger[_0x5a9450('0x12')](_0x5a9450('0x8'),_0x3396f2[_0x5a9450('0x6')],_0x485889),_0x5f1d24(_0x4ba574[_0x5a9450('0x12')](0x1f4,_0x3396f2[_0x5a9450('0x6')]));});});},exports[_0x44d26d('0x5')]=function(_0x2c8859){const _0x7bcc03=this;return new Promise(function(_0x771460,_0x1c1c8a){const _0x2e3eca=a244_0x3d70;return db[_0x2e3eca('0xf')][_0x2e3eca('0xa')]({'raw':_0x2c8859[_0x2e3eca('0x13')]?_0x2c8859[_0x2e3eca('0x13')][_0x2e3eca('0x3')]===undefined?!![]:![]:!![],'where':_0x2c8859[_0x2e3eca('0x13')]?_0x2c8859[_0x2e3eca('0x13')][_0x2e3eca('0x10')]||null:null,'attributes':_0x2c8859[_0x2e3eca('0x13')]?_0x2c8859[_0x2e3eca('0x13')][_0x2e3eca('0x14')]||null:null,'include':_0x2c8859['options']?_0x2c8859['options'][_0x2e3eca('0x15')]?_[_0x2e3eca('0x0')](_0x2c8859[_0x2e3eca('0x13')][_0x2e3eca('0x15')],function(_0x32a969){const _0x3cb81c=_0x2e3eca;return{'model':db[_0x32a969[_0x3cb81c('0xe')]],'as':_0x32a969['as'],'attributes':_0x32a969[_0x3cb81c('0x14')],'include':_0x32a969[_0x3cb81c('0x15')]?_[_0x3cb81c('0x0')](_0x32a969[_0x3cb81c('0x15')],function(_0x3f9fda){const _0x3be380=_0x3cb81c;return{'model':db[_0x3f9fda[_0x3be380('0xe')]],'as':_0x3f9fda['as'],'attributes':_0x3f9fda[_0x3be380('0x14')],'include':_0x3f9fda['include']?_[_0x3be380('0x0')](_0x3f9fda[_0x3be380('0x15')],function(_0x1f99c9){const _0x29b2a3=_0x3be380;return{'model':db[_0x1f99c9[_0x29b2a3('0xe')]],'as':_0x1f99c9['as'],'attributes':_0x1f99c9['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x13b956){const _0x143bbc=_0x2e3eca;logger['info']('ShowDynamics365Account',_0x2c8859),logger['debug'](_0x143bbc('0x5'),_0x2c8859,JSON[_0x143bbc('0x2')](_0x13b956)),_0x771460(_0x13b956);})['catch'](function(_0x823ccb){const _0x323a95=_0x2e3eca;logger[_0x323a95('0x12')](_0x323a95('0x5'),_0x823ccb[_0x323a95('0x6')],_0x2c8859),_0x1c1c8a(_0x7bcc03['error'](0x1f4,_0x823ccb[_0x323a95('0x6')]));});});}; \ No newline at end of file +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 diff --git a/server/api/intDynamics365Configuration/index.js b/server/api/intDynamics365Configuration/index.js index 2edb96f..a9bdba4 100644 --- a/server/api/intDynamics365Configuration/index.js +++ b/server/api/intDynamics365Configuration/index.js @@ -1 +1 @@ -const a245_0x5d57=['show','create','express','delete','getFields','/:id','isAuthenticated','getSubjects','destroy','/:id/subjects','/:id/descriptions','./intDynamics365Configuration.controller','update','/:id/fields','getDescriptions','../../components/auth/service','exports','get','index'];(function(_0x5cb3a1,_0x5d5780){const _0x5da108=function(_0x1805ad){while(--_0x1805ad){_0x5cb3a1['push'](_0x5cb3a1['shift']());}};_0x5da108(++_0x5d5780);}(a245_0x5d57,0x8c));const a245_0x5da1=function(_0x5cb3a1,_0x5d5780){_0x5cb3a1=_0x5cb3a1-0x0;let _0x5da108=a245_0x5d57[_0x5cb3a1];return _0x5da108;};const _0x302376=a245_0x5da1;'use strict';const express=require(_0x302376('0xe')),router=express['Router'](),auth=require(_0x302376('0x8')),controller=require(_0x302376('0x4'));router['get']('/',auth[_0x302376('0x12')](),controller[_0x302376('0xb')]),router[_0x302376('0xa')](_0x302376('0x11'),auth['isAuthenticated'](),controller[_0x302376('0xc')]),router[_0x302376('0xa')](_0x302376('0x6'),auth[_0x302376('0x12')](),controller[_0x302376('0x10')]),router[_0x302376('0xa')](_0x302376('0x2'),auth['isAuthenticated'](),controller[_0x302376('0x0')]),router['get'](_0x302376('0x3'),auth[_0x302376('0x12')](),controller[_0x302376('0x7')]),router['post']('/',auth['isAuthenticated'](),controller[_0x302376('0xd')]),router['put'](_0x302376('0x11'),auth['isAuthenticated'](),controller[_0x302376('0x5')]),router[_0x302376('0xf')](_0x302376('0x11'),auth[_0x302376('0x12')](),controller[_0x302376('0x1')]),module[_0x302376('0x9')]=router; \ No newline at end of file +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 diff --git a/server/api/intDynamics365Configuration/intDynamics365Configuration.attributes.js b/server/api/intDynamics365Configuration/intDynamics365Configuration.attributes.js index 0b40808..d054b30 100644 --- a/server/api/intDynamics365Configuration/intDynamics365Configuration.attributes.js +++ b/server/api/intDynamics365Configuration/intDynamics365Configuration.attributes.js @@ -1 +1 @@ -const a246_0x4cf7=['phonecall','exports','ENUM','incident','STRING','sequelize'];(function(_0x23fd0e,_0x4cf7f3){const _0xa8ed84=function(_0xf1b59c){while(--_0xf1b59c){_0x23fd0e['push'](_0x23fd0e['shift']());}};_0xa8ed84(++_0x4cf7f3);}(a246_0x4cf7,0x1ac));const a246_0xa8ed=function(_0x23fd0e,_0x4cf7f3){_0x23fd0e=_0x23fd0e-0x0;let _0xa8ed84=a246_0x4cf7[_0x23fd0e];return _0xa8ed84;};const _0x5cdc8e=a246_0xa8ed;'use strict';const Sequelize=require(_0x5cdc8e('0x3'));module[_0x5cdc8e('0x5')]={'name':{'type':Sequelize[_0x5cdc8e('0x2')]},'description':{'type':Sequelize[_0x5cdc8e('0x2')]},'ticketType':{'type':Sequelize[_0x5cdc8e('0x0')]('incident',_0x5cdc8e('0x4')),'defaultValue':_0x5cdc8e('0x1')}}; \ No newline at end of file +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 diff --git a/server/api/intDynamics365Configuration/intDynamics365Configuration.controller.js b/server/api/intDynamics365Configuration/intDynamics365Configuration.controller.js index 42ba647..d2d9ded 100644 --- a/server/api/intDynamics365Configuration/intDynamics365Configuration.controller.js +++ b/server/api/intDynamics365Configuration/intDynamics365Configuration.controller.js @@ -1 +1 @@ -const a247_0x34b0=['intersection','rawAttributes','end','findAll','catch','index','count','filter','error','options','where','json','set','model','Dynamics365Configuration','query','update','stack','map','destroy','like','sendStatus','send','order','keys','getSubjects','name','pick','nolimit','Dynamics365Field','fields','filters','show','body','fieldName','limit','type','merge','include','then','findOne','params','api','undefined','getDescriptions','../../components/parsers/qs','key','../../mysqldb','status','create','length','attributes','getFields','offset','includeAll','Content-Range','sort'];(function(_0x176daf,_0x34b08a){const _0x50562c=function(_0x3ac756){while(--_0x3ac756){_0x176daf['push'](_0x176daf['shift']());}};_0x50562c(++_0x34b08a);}(a247_0x34b0,0x127));const a247_0x5056=function(_0x176daf,_0x34b08a){_0x176daf=_0x176daf-0x0;let _0x50562c=a247_0x34b0[_0x176daf];return _0x50562c;};const _0xeb575d=a247_0x5056;'use strict';const _=require('lodash'),qs=require(_0xeb575d('0x23')),logger=require('../../config/logger')(_0xeb575d('0x20')),db=require(_0xeb575d('0x25'))['db'],{Op}=require('sequelize');function respondWithResult(_0x3ac756,_0x3c6e45){return _0x3c6e45=_0x3c6e45||0xc8,function(_0x4580b0){const _0x2c99a2=a247_0x5056;if(_0x4580b0)return _0x3ac756[_0x2c99a2('0x26')](_0x3c6e45)[_0x2c99a2('0x1')](_0x4580b0);};}function respondWithFilteredResult(_0x2505ad,_0xdd3c63){return function(_0x37a483){const _0x5b0936=a247_0x5056;if(_0x37a483){const _0xaf7124=_0x37a483[_0x5b0936('0x35')],_0x3fb975=_0xdd3c63[_0x5b0936('0x2b')];let _0x386e27=_0xdd3c63[_0x5b0936('0x2b')]+_0xdd3c63[_0x5b0936('0x19')],_0x3ecff5;return _0x386e27>=_0xaf7124?(_0x386e27=_0xaf7124,_0x3ecff5=0xc8):_0x3ecff5=0xce,_0x2505ad[_0x5b0936('0x26')](_0x3ecff5),_0x2505ad[_0x5b0936('0x2')](_0x5b0936('0x2d'),_0x3fb975+'-'+_0x386e27+'/'+_0xaf7124)[_0x5b0936('0x1')](_0x37a483);}return null;};}function saveUpdates(_0x1e488e){return function(_0x3a3d8e){const _0x2256ec=a247_0x5056;if(_0x3a3d8e)return _0x3a3d8e['update'](_0x1e488e)[_0x2256ec('0x1d')](function(_0x74e3bb){return _0x74e3bb;});return null;};}function removeEntity(_0x4dbd71){return function(_0x170bc1){const _0x4ba378=a247_0x5056;if(_0x170bc1)return _0x170bc1[_0x4ba378('0x9')]()[_0x4ba378('0x1d')](function(){const _0x3915e6=_0x4ba378;_0x4dbd71[_0x3915e6('0x26')](0xcc)[_0x3915e6('0x31')]();});};}function handleEntityNotFound(_0x4c0845){return function(_0x3dc079){const _0x51b63c=a247_0x5056;return!_0x3dc079&&_0x4c0845[_0x51b63c('0xb')](0x194),_0x3dc079;};}function handleError(_0x25115e,_0x3e7052){return _0x3e7052=_0x3e7052||0x1f4,function(_0x4e7df2){const _0x432dd5=a247_0x5056;logger[_0x432dd5('0x37')](_0x4e7df2[_0x432dd5('0x7')]),_0x4e7df2['name']&&delete _0x4e7df2[_0x432dd5('0x10')],_0x25115e[_0x432dd5('0x26')](_0x3e7052)[_0x432dd5('0xc')](_0x4e7df2);};}exports[_0xeb575d('0x34')]=function(_0x1d1052,_0x360db9){const _0x39ed1e=_0xeb575d;let _0x544693={};const _0x1ae5fe={},_0x5e5a49={'count':0x0,'rows':[]},_0x142e94=_[_0x39ed1e('0x8')](db[_0x39ed1e('0x4')]['rawAttributes'],function(_0xba2ff2){const _0x340dea=_0x39ed1e;return{'name':_0xba2ff2[_0x340dea('0x18')],'type':_0xba2ff2[_0x340dea('0x1a')][_0x340dea('0x24')]};});_0x1ae5fe['model']=_[_0x39ed1e('0x8')](_0x142e94,_0x39ed1e('0x10')),_0x1ae5fe[_0x39ed1e('0x5')]=_[_0x39ed1e('0xe')](_0x1d1052[_0x39ed1e('0x5')]),_0x1ae5fe['filters']=_[_0x39ed1e('0x2f')](_0x1ae5fe[_0x39ed1e('0x3')],_0x1ae5fe[_0x39ed1e('0x5')]),_0x544693['attributes']=_[_0x39ed1e('0x2f')](_0x1ae5fe[_0x39ed1e('0x3')],qs[_0x39ed1e('0x14')](_0x1d1052[_0x39ed1e('0x5')][_0x39ed1e('0x14')])),_0x544693[_0x39ed1e('0x29')]=_0x544693['attributes'][_0x39ed1e('0x28')]?_0x544693[_0x39ed1e('0x29')]:_0x1ae5fe[_0x39ed1e('0x3')];typeof _0x1d1052[_0x39ed1e('0x5')][_0x39ed1e('0x12')]===_0x39ed1e('0x21')&&(_0x544693[_0x39ed1e('0x19')]=qs['limit'](_0x1d1052['query'][_0x39ed1e('0x19')]),_0x544693[_0x39ed1e('0x2b')]=qs[_0x39ed1e('0x2b')](_0x1d1052[_0x39ed1e('0x5')][_0x39ed1e('0x2b')]));_0x544693[_0x39ed1e('0xd')]=qs[_0x39ed1e('0x2e')](_0x1d1052['query'][_0x39ed1e('0x2e')]),_0x544693[_0x39ed1e('0x0')]=qs[_0x39ed1e('0x15')](_[_0x39ed1e('0x11')](_0x1d1052[_0x39ed1e('0x5')],_0x1ae5fe[_0x39ed1e('0x15')]),_0x142e94);_0x1d1052[_0x39ed1e('0x5')]['filter']&&(_0x544693[_0x39ed1e('0x0')]=_[_0x39ed1e('0x1b')](_0x544693[_0x39ed1e('0x0')],{[Op['or']]:_[_0x39ed1e('0x8')](_0x142e94,function(_0x356f4f){const _0x2b1ec6=_0x39ed1e;if(_0x356f4f[_0x2b1ec6('0x1a')]!=='VIRTUAL'){const _0x1be748={};return _0x1be748[_0x356f4f[_0x2b1ec6('0x10')]]={[Op[_0x2b1ec6('0xa')]]:'%'+_0x1d1052[_0x2b1ec6('0x5')][_0x2b1ec6('0x36')]+'%'},_0x1be748;}})}));_0x544693=_['merge']({},_0x544693,_0x1d1052['options']);const _0x4d176d={'where':_0x544693[_0x39ed1e('0x0')]};return db[_0x39ed1e('0x4')]['count'](_0x4d176d)['then'](function(_0x39bfc5){const _0x473a75=_0x39ed1e;return _0x5e5a49[_0x473a75('0x35')]=_0x39bfc5,_0x1d1052[_0x473a75('0x5')][_0x473a75('0x2c')]&&(_0x544693[_0x473a75('0x1c')]=[{'all':!![]}]),db[_0x473a75('0x4')][_0x473a75('0x32')](_0x544693);})[_0x39ed1e('0x1d')](function(_0x285440){return _0x5e5a49['rows']=_0x285440,_0x5e5a49;})[_0x39ed1e('0x1d')](respondWithFilteredResult(_0x360db9,_0x544693))[_0x39ed1e('0x33')](handleError(_0x360db9,null));},exports[_0xeb575d('0x16')]=function(_0x1189f4,_0x3e973b){const _0x3eeb37=_0xeb575d;let _0x44a8f0={'raw':![],'where':{'id':_0x1189f4[_0x3eeb37('0x1f')]['id']}};const _0x4909e9={};return _0x4909e9[_0x3eeb37('0x3')]=_['keys'](db[_0x3eeb37('0x4')][_0x3eeb37('0x30')]),_0x4909e9[_0x3eeb37('0x5')]=_[_0x3eeb37('0xe')](_0x1189f4[_0x3eeb37('0x5')]),_0x4909e9['filters']=_[_0x3eeb37('0x2f')](_0x4909e9[_0x3eeb37('0x3')],_0x4909e9[_0x3eeb37('0x5')]),_0x44a8f0[_0x3eeb37('0x29')]=_[_0x3eeb37('0x2f')](_0x4909e9[_0x3eeb37('0x3')],qs['fields'](_0x1189f4['query'][_0x3eeb37('0x14')])),_0x44a8f0[_0x3eeb37('0x29')]=_0x44a8f0[_0x3eeb37('0x29')][_0x3eeb37('0x28')]?_0x44a8f0[_0x3eeb37('0x29')]:_0x4909e9[_0x3eeb37('0x3')],_0x1189f4[_0x3eeb37('0x5')][_0x3eeb37('0x2c')]&&(_0x44a8f0['include']=[{'all':!![]}]),_0x44a8f0=_[_0x3eeb37('0x1b')]({},_0x44a8f0,_0x1189f4[_0x3eeb37('0x38')]),db[_0x3eeb37('0x4')][_0x3eeb37('0x1e')](_0x44a8f0)[_0x3eeb37('0x1d')](handleEntityNotFound(_0x3e973b,null))[_0x3eeb37('0x1d')](respondWithResult(_0x3e973b,null))[_0x3eeb37('0x33')](handleError(_0x3e973b,null));},exports['create']=function(_0x404a75,_0x2c89c1){const _0x2547ed=_0xeb575d;return db[_0x2547ed('0x4')][_0x2547ed('0x27')](_0x404a75[_0x2547ed('0x17')],{})[_0x2547ed('0x1d')](respondWithResult(_0x2c89c1,0xc9))[_0x2547ed('0x33')](handleError(_0x2c89c1,null));},exports[_0xeb575d('0x6')]=function(_0x226e11,_0x43db60){const _0x3a1cbd=_0xeb575d;return _0x226e11[_0x3a1cbd('0x17')]['id']&&delete _0x226e11[_0x3a1cbd('0x17')]['id'],db[_0x3a1cbd('0x4')][_0x3a1cbd('0x1e')]({'where':{'id':_0x226e11[_0x3a1cbd('0x1f')]['id']}})[_0x3a1cbd('0x1d')](handleEntityNotFound(_0x43db60,null))[_0x3a1cbd('0x1d')](saveUpdates(_0x226e11[_0x3a1cbd('0x17')],null))['then'](respondWithResult(_0x43db60,null))[_0x3a1cbd('0x33')](handleError(_0x43db60,null));},exports[_0xeb575d('0x9')]=function(_0x268526,_0x4af3fe){const _0x4345c1=_0xeb575d;return db[_0x4345c1('0x4')][_0x4345c1('0x1e')]({'where':{'id':_0x268526['params']['id']}})['then'](handleEntityNotFound(_0x4af3fe,null))[_0x4345c1('0x1d')](removeEntity(_0x4af3fe,null))[_0x4345c1('0x33')](handleError(_0x4af3fe,null));},exports[_0xeb575d('0x2a')]=function(_0x1c75ba,_0x4a55a7){const _0x26bb24=_0xeb575d;let _0x12e535={};const _0xe52015={};let _0x9d5bc6,_0x54a3f6;return db[_0x26bb24('0x4')][_0x26bb24('0x1e')]({'where':{'id':_0x1c75ba[_0x26bb24('0x1f')]['id']}})[_0x26bb24('0x1d')](handleEntityNotFound(_0x4a55a7,null))[_0x26bb24('0x1d')](function(_0x53a704){const _0xcf202=_0x26bb24;if(_0x53a704)return _0x9d5bc6=_0x53a704,_0xe52015[_0xcf202('0x3')]=_[_0xcf202('0xe')](db[_0xcf202('0x13')][_0xcf202('0x30')]),_0xe52015[_0xcf202('0x5')]=_[_0xcf202('0xe')](_0x1c75ba['query']),_0xe52015[_0xcf202('0x15')]=_[_0xcf202('0x2f')](_0xe52015[_0xcf202('0x3')],_0xe52015[_0xcf202('0x5')]),_0x12e535['attributes']=_[_0xcf202('0x2f')](_0xe52015[_0xcf202('0x3')],qs[_0xcf202('0x14')](_0x1c75ba[_0xcf202('0x5')]['fields'])),_0x12e535[_0xcf202('0x29')]=_0x12e535[_0xcf202('0x29')][_0xcf202('0x28')]?_0x12e535['attributes']:_0xe52015[_0xcf202('0x3')],_0x12e535['order']=qs['sort'](_0x1c75ba['query'][_0xcf202('0x2e')]),_0x12e535[_0xcf202('0x0')]=qs[_0xcf202('0x15')](_[_0xcf202('0x11')](_0x1c75ba[_0xcf202('0x5')],_0xe52015['filters'])),_0x1c75ba['query'][_0xcf202('0x36')]&&(_0x12e535[_0xcf202('0x0')]=_[_0xcf202('0x1b')](_0x12e535[_0xcf202('0x0')],{[Op['or']]:_[_0xcf202('0x8')](_0x12e535[_0xcf202('0x29')],function(_0x4886dd){const _0x407f05=_0xcf202,_0x1b7968={};return _0x1b7968[_0x4886dd]={[Op['like']]:'%'+_0x1c75ba['query'][_0x407f05('0x36')]+'%'},_0x1b7968;})})),_0x12e535=_[_0xcf202('0x1b')]({},_0x12e535,_0x1c75ba[_0xcf202('0x38')]),_0x9d5bc6['getFields'](_0x12e535);})['then'](function(_0x11b18a){const _0x6533cf=_0x26bb24;if(_0x11b18a)return _0x54a3f6=_0x11b18a['length'],typeof _0x1c75ba['query'][_0x6533cf('0x12')]===_0x6533cf('0x21')&&(_0x12e535[_0x6533cf('0x19')]=qs[_0x6533cf('0x19')](_0x1c75ba[_0x6533cf('0x5')]['limit']),_0x12e535[_0x6533cf('0x2b')]=qs[_0x6533cf('0x2b')](_0x1c75ba['query'][_0x6533cf('0x2b')])),_0x9d5bc6[_0x6533cf('0x2a')](_0x12e535);})[_0x26bb24('0x1d')](function(_0x5aa008){if(_0x5aa008)return _0x5aa008?{'count':_0x54a3f6,'rows':_0x5aa008}:null;})[_0x26bb24('0x1d')](respondWithResult(_0x4a55a7,null))[_0x26bb24('0x33')](handleError(_0x4a55a7,null));},exports[_0xeb575d('0xf')]=function(_0x3ec921,_0x25ed57){const _0x578a99=_0xeb575d;let _0x3e690={};const _0x568cb6={};let _0x98a2a3,_0xe6d20f;return db[_0x578a99('0x4')]['findOne']({'where':{'id':_0x3ec921['params']['id']}})[_0x578a99('0x1d')](handleEntityNotFound(_0x25ed57,null))['then'](function(_0x285cde){const _0x4008d0=_0x578a99;if(_0x285cde)return _0x98a2a3=_0x285cde,_0x568cb6[_0x4008d0('0x3')]=_['keys'](db[_0x4008d0('0x13')][_0x4008d0('0x30')]),_0x568cb6[_0x4008d0('0x5')]=_[_0x4008d0('0xe')](_0x3ec921['query']),_0x568cb6[_0x4008d0('0x15')]=_[_0x4008d0('0x2f')](_0x568cb6[_0x4008d0('0x3')],_0x568cb6[_0x4008d0('0x5')]),_0x3e690['attributes']=_[_0x4008d0('0x2f')](_0x568cb6[_0x4008d0('0x3')],qs['fields'](_0x3ec921[_0x4008d0('0x5')][_0x4008d0('0x14')])),_0x3e690['attributes']=_0x3e690['attributes'][_0x4008d0('0x28')]?_0x3e690[_0x4008d0('0x29')]:_0x568cb6[_0x4008d0('0x3')],_0x3e690[_0x4008d0('0xd')]=qs[_0x4008d0('0x2e')](_0x3ec921[_0x4008d0('0x5')][_0x4008d0('0x2e')]),_0x3e690[_0x4008d0('0x0')]=qs[_0x4008d0('0x15')](_[_0x4008d0('0x11')](_0x3ec921[_0x4008d0('0x5')],_0x568cb6[_0x4008d0('0x15')])),_0x3ec921['query']['filter']&&(_0x3e690[_0x4008d0('0x0')]=_['merge'](_0x3e690[_0x4008d0('0x0')],{[Op['or']]:_[_0x4008d0('0x8')](_0x3e690[_0x4008d0('0x29')],function(_0x4d8b6f){const _0x151982=_0x4008d0,_0x55a676={};return _0x55a676[_0x4d8b6f]={[Op[_0x151982('0xa')]]:'%'+_0x3ec921[_0x151982('0x5')][_0x151982('0x36')]+'%'},_0x55a676;})})),_0x3e690=_[_0x4008d0('0x1b')]({},_0x3e690,_0x3ec921[_0x4008d0('0x38')]),_0x98a2a3['getSubjects'](_0x3e690);})[_0x578a99('0x1d')](function(_0x32a889){const _0x2200bc=_0x578a99;if(_0x32a889)return _0xe6d20f=_0x32a889['length'],typeof _0x3ec921[_0x2200bc('0x5')][_0x2200bc('0x12')]===_0x2200bc('0x21')&&(_0x3e690['limit']=qs['limit'](_0x3ec921['query'][_0x2200bc('0x19')]),_0x3e690[_0x2200bc('0x2b')]=qs[_0x2200bc('0x2b')](_0x3ec921[_0x2200bc('0x5')][_0x2200bc('0x2b')])),_0x98a2a3[_0x2200bc('0xf')](_0x3e690);})[_0x578a99('0x1d')](function(_0x325ded){if(_0x325ded)return _0x325ded?{'count':_0xe6d20f,'rows':_0x325ded}:null;})['then'](respondWithResult(_0x25ed57,null))[_0x578a99('0x33')](handleError(_0x25ed57,null));},exports[_0xeb575d('0x22')]=function(_0x606c89,_0x8299b8){const _0x265579=_0xeb575d;let _0xf7daca={};const _0x51d4ce={};let _0x1b6447,_0x412a59;return db[_0x265579('0x4')][_0x265579('0x1e')]({'where':{'id':_0x606c89[_0x265579('0x1f')]['id']}})['then'](handleEntityNotFound(_0x8299b8,null))[_0x265579('0x1d')](function(_0x1c7035){const _0x33b0df=_0x265579;if(_0x1c7035)return _0x1b6447=_0x1c7035,_0x51d4ce[_0x33b0df('0x3')]=_[_0x33b0df('0xe')](db[_0x33b0df('0x13')][_0x33b0df('0x30')]),_0x51d4ce[_0x33b0df('0x5')]=_[_0x33b0df('0xe')](_0x606c89[_0x33b0df('0x5')]),_0x51d4ce[_0x33b0df('0x15')]=_[_0x33b0df('0x2f')](_0x51d4ce[_0x33b0df('0x3')],_0x51d4ce[_0x33b0df('0x5')]),_0xf7daca['attributes']=_[_0x33b0df('0x2f')](_0x51d4ce[_0x33b0df('0x3')],qs[_0x33b0df('0x14')](_0x606c89['query'][_0x33b0df('0x14')])),_0xf7daca[_0x33b0df('0x29')]=_0xf7daca[_0x33b0df('0x29')]['length']?_0xf7daca[_0x33b0df('0x29')]:_0x51d4ce[_0x33b0df('0x3')],_0xf7daca[_0x33b0df('0xd')]=qs[_0x33b0df('0x2e')](_0x606c89[_0x33b0df('0x5')][_0x33b0df('0x2e')]),_0xf7daca[_0x33b0df('0x0')]=qs[_0x33b0df('0x15')](_['pick'](_0x606c89['query'],_0x51d4ce[_0x33b0df('0x15')])),_0x606c89['query']['filter']&&(_0xf7daca[_0x33b0df('0x0')]=_[_0x33b0df('0x1b')](_0xf7daca[_0x33b0df('0x0')],{[Op['or']]:_[_0x33b0df('0x8')](_0xf7daca[_0x33b0df('0x29')],function(_0x383f9e){const _0x59270a=_0x33b0df,_0x45a12e={};return _0x45a12e[_0x383f9e]={[Op[_0x59270a('0xa')]]:'%'+_0x606c89[_0x59270a('0x5')][_0x59270a('0x36')]+'%'},_0x45a12e;})})),_0xf7daca=_[_0x33b0df('0x1b')]({},_0xf7daca,_0x606c89['options']),_0x1b6447[_0x33b0df('0x22')](_0xf7daca);})[_0x265579('0x1d')](function(_0x419856){const _0x1f50d4=_0x265579;if(_0x419856)return _0x412a59=_0x419856[_0x1f50d4('0x28')],typeof _0x606c89['query'][_0x1f50d4('0x12')]===_0x1f50d4('0x21')&&(_0xf7daca[_0x1f50d4('0x19')]=qs[_0x1f50d4('0x19')](_0x606c89[_0x1f50d4('0x5')][_0x1f50d4('0x19')]),_0xf7daca[_0x1f50d4('0x2b')]=qs[_0x1f50d4('0x2b')](_0x606c89[_0x1f50d4('0x5')]['offset'])),_0x1b6447[_0x1f50d4('0x22')](_0xf7daca);})['then'](function(_0x520e6b){if(_0x520e6b)return _0x520e6b?{'count':_0x412a59,'rows':_0x520e6b}:null;})['then'](respondWithResult(_0x8299b8,null))[_0x265579('0x33')](handleError(_0x8299b8,null));}; \ No newline at end of file +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 diff --git a/server/api/intDynamics365Configuration/intDynamics365Configuration.model.js b/server/api/intDynamics365Configuration/intDynamics365Configuration.model.js index eef6b9b..d19c714 100644 --- a/server/api/intDynamics365Configuration/intDynamics365Configuration.model.js +++ b/server/api/intDynamics365Configuration/intDynamics365Configuration.model.js @@ -1 +1 @@ -const a248_0x19b1=['./intDynamics365Configuration.attributes','int_dynamics365_configurations','Dynamics365Configuration'];(function(_0x15fd46,_0x19b1f5){const _0x395d63=function(_0x127543){while(--_0x127543){_0x15fd46['push'](_0x15fd46['shift']());}};_0x395d63(++_0x19b1f5);}(a248_0x19b1,0x1d5));const a248_0x395d=function(_0x15fd46,_0x19b1f5){_0x15fd46=_0x15fd46-0x0;let _0x395d63=a248_0x19b1[_0x15fd46];return _0x395d63;};const _0x441ad4=a248_0x395d;'use strict';const attributes=require(_0x441ad4('0x2'));module['exports']=function(_0x127543){const _0x157a0f=_0x441ad4,_0x5509cf=_0x127543['define'](_0x157a0f('0x1'),attributes,{'tableName':_0x157a0f('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5509cf;}; \ No newline at end of file +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 diff --git a/server/api/intDynamics365Field/index.js b/server/api/intDynamics365Field/index.js index 2d08e7f..ac1f23e 100644 --- a/server/api/intDynamics365Field/index.js +++ b/server/api/intDynamics365Field/index.js @@ -1 +1 @@ -const a249_0x2d07=['isAuthenticated','Router','show','post','../../components/auth/service','update','index','express','get','/:id','create','put','exports'];(function(_0x216553,_0x2d075a){const _0x3fde7c=function(_0x93bc69){while(--_0x93bc69){_0x216553['push'](_0x216553['shift']());}};_0x3fde7c(++_0x2d075a);}(a249_0x2d07,0x1af));const a249_0x3fde=function(_0x216553,_0x2d075a){_0x216553=_0x216553-0x0;let _0x3fde7c=a249_0x2d07[_0x216553];return _0x3fde7c;};const _0x4130b3=a249_0x3fde;'use strict';const express=require(_0x4130b3('0x5')),router=express[_0x4130b3('0xc')](),auth=require(_0x4130b3('0x2')),controller=require('./intDynamics365Field.controller');router[_0x4130b3('0x6')]('/',auth[_0x4130b3('0xb')](),controller[_0x4130b3('0x4')]),router[_0x4130b3('0x6')](_0x4130b3('0x7'),auth[_0x4130b3('0xb')](),controller[_0x4130b3('0x0')]),router[_0x4130b3('0x1')]('/',auth[_0x4130b3('0xb')](),controller[_0x4130b3('0x8')]),router[_0x4130b3('0x9')]('/:id',auth[_0x4130b3('0xb')](),controller[_0x4130b3('0x3')]),router['delete'](_0x4130b3('0x7'),auth[_0x4130b3('0xb')](),controller['destroy']),module[_0x4130b3('0xa')]=router; \ No newline at end of file +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 diff --git a/server/api/intDynamics365Field/intDynamics365Field.attributes.js b/server/api/intDynamics365Field/intDynamics365Field.attributes.js index 83e644e..3772968 100644 --- a/server/api/intDynamics365Field/intDynamics365Field.attributes.js +++ b/server/api/intDynamics365Field/intDynamics365Field.attributes.js @@ -1 +1 @@ -const a250_0xe151=['exports','customVariable','string','sequelize','STRING','keyValue','BOOLEAN','ENUM','variable'];(function(_0x452d0c,_0xe151b5){const _0x172a78=function(_0x3bd363){while(--_0x3bd363){_0x452d0c['push'](_0x452d0c['shift']());}};_0x172a78(++_0xe151b5);}(a250_0xe151,0x95));const a250_0x172a=function(_0x452d0c,_0xe151b5){_0x452d0c=_0x452d0c-0x0;let _0x172a78=a250_0xe151[_0x452d0c];return _0x172a78;};const _0x5d19ab=a250_0x172a;'use strict';const Sequelize=require(_0x5d19ab('0x7'));module[_0x5d19ab('0x4')]={'type':{'type':Sequelize[_0x5d19ab('0x2')](_0x5d19ab('0x6'),_0x5d19ab('0x3'),_0x5d19ab('0x5'),_0x5d19ab('0x0')),'defaultValue':_0x5d19ab('0x6')},'content':{'type':Sequelize[_0x5d19ab('0x8')]},'key':{'type':Sequelize[_0x5d19ab('0x8')]},'keyType':{'type':Sequelize[_0x5d19ab('0x2')]('string',_0x5d19ab('0x3'),_0x5d19ab('0x5'))},'keyContent':{'type':Sequelize[_0x5d19ab('0x8')]},'idField':{'type':Sequelize[_0x5d19ab('0x8')]},'nameField':{'type':Sequelize[_0x5d19ab('0x8')]},'customField':{'type':Sequelize[_0x5d19ab('0x1')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x5d19ab('0x8')]}}; \ No newline at end of file +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 diff --git a/server/api/intDynamics365Field/intDynamics365Field.controller.js b/server/api/intDynamics365Field/intDynamics365Field.controller.js index ebddc46..f2e95d7 100644 --- a/server/api/intDynamics365Field/intDynamics365Field.controller.js +++ b/server/api/intDynamics365Field/intDynamics365Field.controller.js @@ -1 +1 @@ -const a251_0x2870=['where','VIRTUAL','limit','includeAll','keys','count','params','type','../../mysqldb','query','then','lodash','create','filters','length','intersection','map','name','json','rawAttributes','../../components/parsers/qs','status','../../config/logger','update','offset','sendStatus','set','model','body','filter','key','fields','options','Dynamics365Field','attributes','destroy','api','nolimit','fieldName','error','end','like','undefined','catch','sort','order','sequelize','findOne','include','rows','merge','show'];(function(_0x30cd5f,_0x2870dc){const _0x523e78=function(_0x489ca7){while(--_0x489ca7){_0x30cd5f['push'](_0x30cd5f['shift']());}};_0x523e78(++_0x2870dc);}(a251_0x2870,0x199));const a251_0x523e=function(_0x30cd5f,_0x2870dc){_0x30cd5f=_0x30cd5f-0x0;let _0x523e78=a251_0x2870[_0x30cd5f];return _0x523e78;};const _0x498123=a251_0x523e;'use strict';const _=require(_0x498123('0x12')),qs=require(_0x498123('0x1b')),logger=require(_0x498123('0x1d'))(_0x498123('0x2b')),db=require(_0x498123('0xf'))['db'],{Op}=require(_0x498123('0x1'));function respondWithResult(_0x489ca7,_0xd108a8){return _0xd108a8=_0xd108a8||0xc8,function(_0x53fd87){const _0x485493=a251_0x523e;if(_0x53fd87)return _0x489ca7[_0x485493('0x1c')](_0xd108a8)[_0x485493('0x19')](_0x53fd87);};}function respondWithFilteredResult(_0x913e1,_0x1b0349){return function(_0x4016d9){const _0x308490=a251_0x523e;if(_0x4016d9){const _0x316756=_0x4016d9[_0x308490('0xc')],_0x7196f7=_0x1b0349['offset'];let _0x12cfb5=_0x1b0349[_0x308490('0x1f')]+_0x1b0349[_0x308490('0x9')],_0xb3c71b;return _0x12cfb5>=_0x316756?(_0x12cfb5=_0x316756,_0xb3c71b=0xc8):_0xb3c71b=0xce,_0x913e1[_0x308490('0x1c')](_0xb3c71b),_0x913e1[_0x308490('0x21')]('Content-Range',_0x7196f7+'-'+_0x12cfb5+'/'+_0x316756)[_0x308490('0x19')](_0x4016d9);}return null;};}function saveUpdates(_0x121dd1){return function(_0x4bcf46){const _0x5c0623=a251_0x523e;if(_0x4bcf46)return _0x4bcf46[_0x5c0623('0x1e')](_0x121dd1)['then'](function(_0x1f3728){return _0x1f3728;});return null;};}function removeEntity(_0x2b82e1){return function(_0x3644c7){const _0x424c16=a251_0x523e;if(_0x3644c7)return _0x3644c7[_0x424c16('0x2a')]()['then'](function(){const _0x19b76d=_0x424c16;_0x2b82e1[_0x19b76d('0x1c')](0xcc)[_0x19b76d('0x2f')]();});};}function handleEntityNotFound(_0x3dad5c){return function(_0x31c663){const _0x4ae0f5=a251_0x523e;return!_0x31c663&&_0x3dad5c[_0x4ae0f5('0x20')](0x194),_0x31c663;};}function handleError(_0x2e9307,_0x1461e6){return _0x1461e6=_0x1461e6||0x1f4,function(_0x40696d){const _0x531276=a251_0x523e;logger[_0x531276('0x2e')](_0x40696d['stack']),_0x40696d[_0x531276('0x18')]&&delete _0x40696d[_0x531276('0x18')],_0x2e9307[_0x531276('0x1c')](_0x1461e6)['send'](_0x40696d);};}exports['index']=function(_0x3ce6d0,_0xda3bf4){const _0x18c944=_0x498123;let _0x38104a={};const _0x36e384={},_0x49121d={'count':0x0,'rows':[]},_0x495d0c=_[_0x18c944('0x17')](db[_0x18c944('0x28')][_0x18c944('0x1a')],function(_0x169204){const _0x4bfe76=_0x18c944;return{'name':_0x169204[_0x4bfe76('0x2d')],'type':_0x169204['type'][_0x4bfe76('0x25')]};});_0x36e384[_0x18c944('0x22')]=_[_0x18c944('0x17')](_0x495d0c,_0x18c944('0x18')),_0x36e384[_0x18c944('0x10')]=_['keys'](_0x3ce6d0['query']),_0x36e384['filters']=_[_0x18c944('0x16')](_0x36e384[_0x18c944('0x22')],_0x36e384[_0x18c944('0x10')]),_0x38104a[_0x18c944('0x29')]=_['intersection'](_0x36e384[_0x18c944('0x22')],qs[_0x18c944('0x26')](_0x3ce6d0[_0x18c944('0x10')][_0x18c944('0x26')])),_0x38104a[_0x18c944('0x29')]=_0x38104a[_0x18c944('0x29')][_0x18c944('0x15')]?_0x38104a[_0x18c944('0x29')]:_0x36e384[_0x18c944('0x22')];typeof _0x3ce6d0[_0x18c944('0x10')][_0x18c944('0x2c')]===_0x18c944('0x31')&&(_0x38104a['limit']=qs[_0x18c944('0x9')](_0x3ce6d0[_0x18c944('0x10')]['limit']),_0x38104a[_0x18c944('0x1f')]=qs[_0x18c944('0x1f')](_0x3ce6d0['query'][_0x18c944('0x1f')]));_0x38104a[_0x18c944('0x0')]=qs['sort'](_0x3ce6d0[_0x18c944('0x10')][_0x18c944('0x33')]),_0x38104a['where']=qs[_0x18c944('0x14')](_['pick'](_0x3ce6d0[_0x18c944('0x10')],_0x36e384['filters']),_0x495d0c);_0x3ce6d0[_0x18c944('0x10')]['filter']&&(_0x38104a[_0x18c944('0x7')]=_[_0x18c944('0x5')](_0x38104a['where'],{[Op['or']]:_[_0x18c944('0x17')](_0x495d0c,function(_0x56c8bc){const _0x415c5a=_0x18c944;if(_0x56c8bc[_0x415c5a('0xe')]!==_0x415c5a('0x8')){const _0x1fc662={};return _0x1fc662[_0x56c8bc['name']]={[Op[_0x415c5a('0x30')]]:'%'+_0x3ce6d0[_0x415c5a('0x10')][_0x415c5a('0x24')]+'%'},_0x1fc662;}})}));_0x38104a=_[_0x18c944('0x5')]({},_0x38104a,_0x3ce6d0[_0x18c944('0x27')]);const _0x2ef44c={'where':_0x38104a[_0x18c944('0x7')]};return db['Dynamics365Field'][_0x18c944('0xc')](_0x2ef44c)[_0x18c944('0x11')](function(_0x4a8a0d){const _0x1a0380=_0x18c944;return _0x49121d['count']=_0x4a8a0d,_0x3ce6d0[_0x1a0380('0x10')][_0x1a0380('0xa')]&&(_0x38104a[_0x1a0380('0x3')]=[{'all':!![]}]),db[_0x1a0380('0x28')]['findAll'](_0x38104a);})['then'](function(_0x419733){const _0x54ab0c=_0x18c944;return _0x49121d[_0x54ab0c('0x4')]=_0x419733,_0x49121d;})[_0x18c944('0x11')](respondWithFilteredResult(_0xda3bf4,_0x38104a))['catch'](handleError(_0xda3bf4,null));},exports[_0x498123('0x6')]=function(_0x5859dd,_0x26e684){const _0x2a11ea=_0x498123;let _0x4d601d={'raw':!![],'where':{'id':_0x5859dd['params']['id']}};const _0x15f44a={};return _0x15f44a[_0x2a11ea('0x22')]=_[_0x2a11ea('0xb')](db[_0x2a11ea('0x28')][_0x2a11ea('0x1a')]),_0x15f44a['query']=_['keys'](_0x5859dd[_0x2a11ea('0x10')]),_0x15f44a[_0x2a11ea('0x14')]=_[_0x2a11ea('0x16')](_0x15f44a['model'],_0x15f44a['query']),_0x4d601d[_0x2a11ea('0x29')]=_[_0x2a11ea('0x16')](_0x15f44a['model'],qs[_0x2a11ea('0x26')](_0x5859dd[_0x2a11ea('0x10')][_0x2a11ea('0x26')])),_0x4d601d['attributes']=_0x4d601d[_0x2a11ea('0x29')][_0x2a11ea('0x15')]?_0x4d601d[_0x2a11ea('0x29')]:_0x15f44a[_0x2a11ea('0x22')],_0x5859dd[_0x2a11ea('0x10')]['includeAll']&&(_0x4d601d[_0x2a11ea('0x3')]=[{'all':!![]}]),_0x4d601d=_[_0x2a11ea('0x5')]({},_0x4d601d,_0x5859dd['options']),db['Dynamics365Field']['findOne'](_0x4d601d)[_0x2a11ea('0x11')](handleEntityNotFound(_0x26e684,null))['then'](respondWithResult(_0x26e684,null))[_0x2a11ea('0x32')](handleError(_0x26e684,null));},exports[_0x498123('0x13')]=function(_0x35a48b,_0x5dfe47){const _0x6f0e75=_0x498123;return db['Dynamics365Field'][_0x6f0e75('0x13')](_0x35a48b[_0x6f0e75('0x23')],{})[_0x6f0e75('0x11')](respondWithResult(_0x5dfe47,0xc9))[_0x6f0e75('0x32')](handleError(_0x5dfe47,null));},exports[_0x498123('0x1e')]=function(_0x5b49fb,_0x284e97){const _0x503fec=_0x498123;return _0x5b49fb[_0x503fec('0x23')]['id']&&delete _0x5b49fb[_0x503fec('0x23')]['id'],db[_0x503fec('0x28')][_0x503fec('0x2')]({'where':{'id':_0x5b49fb['params']['id']}})[_0x503fec('0x11')](handleEntityNotFound(_0x284e97,null))[_0x503fec('0x11')](saveUpdates(_0x5b49fb[_0x503fec('0x23')],null))[_0x503fec('0x11')](respondWithResult(_0x284e97,null))[_0x503fec('0x32')](handleError(_0x284e97,null));},exports['destroy']=function(_0x49f27d,_0x5243a5){const _0x1d0596=_0x498123;return db[_0x1d0596('0x28')][_0x1d0596('0x2')]({'where':{'id':_0x49f27d[_0x1d0596('0xd')]['id']}})[_0x1d0596('0x11')](handleEntityNotFound(_0x5243a5,null))['then'](removeEntity(_0x5243a5,null))[_0x1d0596('0x32')](handleError(_0x5243a5,null));}; \ No newline at end of file +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 diff --git a/server/api/intDynamics365Field/intDynamics365Field.model.js b/server/api/intDynamics365Field/intDynamics365Field.model.js index 0dbfc51..1c27525 100644 --- a/server/api/intDynamics365Field/intDynamics365Field.model.js +++ b/server/api/intDynamics365Field/intDynamics365Field.model.js @@ -1 +1 @@ -const a252_0x2f2d=['./intDynamics365Field.attributes','exports','idField','define','int_dynamics365_fields','dynamics365_unique_index'];(function(_0x59cb24,_0x2f2dca){const _0x4e26d6=function(_0x29cdfa){while(--_0x29cdfa){_0x59cb24['push'](_0x59cb24['shift']());}};_0x4e26d6(++_0x2f2dca);}(a252_0x2f2d,0x17d));const a252_0x4e26=function(_0x59cb24,_0x2f2dca){_0x59cb24=_0x59cb24-0x0;let _0x4e26d6=a252_0x2f2d[_0x59cb24];return _0x4e26d6;};const _0x9d2f2e=a252_0x4e26;'use strict';const attributes=require(_0x9d2f2e('0x3'));module[_0x9d2f2e('0x4')]=function(_0x29cdfa){const _0x5f0c30=_0x9d2f2e,_0x493653=_0x29cdfa[_0x5f0c30('0x0')]('Dynamics365Field',attributes,{'tableName':_0x5f0c30('0x1'),'paranoid':![],'indexes':[{'name':_0x5f0c30('0x2'),'fields':[_0x5f0c30('0x5'),'FieldId'],'unique':!![]}],'timestamps':!![]});return _0x493653;}; \ No newline at end of file +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 diff --git a/server/api/intFreshdeskAccount/index.js b/server/api/intFreshdeskAccount/index.js index 2d14807..9efbd1d 100644 --- a/server/api/intFreshdeskAccount/index.js +++ b/server/api/intFreshdeskAccount/index.js @@ -1 +1 @@ -const a253_0x485d=['./intFreshdeskAccount.controller','post','getConfigurations','/:id/configurations','Router','../../components/auth/service','exports','getFields','get','show','delete','express','isAuthenticated','/:id/fields','addConfiguration','update','index'];(function(_0x54b7fc,_0x485dd3){const _0xf6f103=function(_0x3bc065){while(--_0x3bc065){_0x54b7fc['push'](_0x54b7fc['shift']());}};_0xf6f103(++_0x485dd3);}(a253_0x485d,0xaf));const a253_0xf6f1=function(_0x54b7fc,_0x485dd3){_0x54b7fc=_0x54b7fc-0x0;let _0xf6f103=a253_0x485d[_0x54b7fc];return _0xf6f103;};const _0x3d1fbe=a253_0xf6f1;'use strict';const express=require(_0x3d1fbe('0x6')),router=express[_0x3d1fbe('0x10')](),auth=require(_0x3d1fbe('0x0')),controller=require(_0x3d1fbe('0xc'));router[_0x3d1fbe('0x3')]('/',auth['isAuthenticated'](),controller[_0x3d1fbe('0xb')]),router[_0x3d1fbe('0x3')]('/:id',auth[_0x3d1fbe('0x7')](),controller[_0x3d1fbe('0x4')]),router[_0x3d1fbe('0x3')]('/:id/configurations',auth[_0x3d1fbe('0x7')](),controller[_0x3d1fbe('0xe')]),router[_0x3d1fbe('0x3')](_0x3d1fbe('0x8'),auth[_0x3d1fbe('0x7')](),controller[_0x3d1fbe('0x2')]),router[_0x3d1fbe('0xd')]('/',auth[_0x3d1fbe('0x7')](),controller['create']),router['post'](_0x3d1fbe('0xf'),auth['isAuthenticated'](),controller[_0x3d1fbe('0x9')]),router['put']('/:id',auth['isAuthenticated'](),controller[_0x3d1fbe('0xa')]),router[_0x3d1fbe('0x5')]('/:id',auth[_0x3d1fbe('0x7')](),controller['destroy']),module[_0x3d1fbe('0x1')]=router; \ No newline at end of file +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 diff --git a/server/api/intFreshdeskAccount/intFreshdeskAccount.attributes.js b/server/api/intFreshdeskAccount/intFreshdeskAccount.attributes.js index a3f32cb..6be6c23 100644 --- a/server/api/intFreshdeskAccount/intFreshdeskAccount.attributes.js +++ b/server/api/intFreshdeskAccount/intFreshdeskAccount.attributes.js @@ -1 +1 @@ -const a254_0x265e=['STRING','sequelize','remoteUri','exports'];(function(_0x3fb6ff,_0x265ea2){const _0x51fbda=function(_0x32a95d){while(--_0x32a95d){_0x3fb6ff['push'](_0x3fb6ff['shift']());}};_0x51fbda(++_0x265ea2);}(a254_0x265e,0x179));const a254_0x51fb=function(_0x3fb6ff,_0x265ea2){_0x3fb6ff=_0x3fb6ff-0x0;let _0x51fbda=a254_0x265e[_0x3fb6ff];return _0x51fbda;};const _0x352659=a254_0x51fb;'use strict';const Sequelize=require(_0x352659('0x0'));module[_0x352659('0x2')]={'name':{'type':Sequelize[_0x352659('0x3')]},'description':{'type':Sequelize[_0x352659('0x3')]},'username':{'type':Sequelize[_0x352659('0x3')],'unique':'username'},'apiKey':{'type':Sequelize['STRING']},'remoteUri':{'type':Sequelize[_0x352659('0x3')],'unique':_0x352659('0x1')},'serverUrl':{'type':Sequelize[_0x352659('0x3')]}}; \ No newline at end of file +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 diff --git a/server/api/intFreshdeskAccount/intFreshdeskAccount.controller.js b/server/api/intFreshdeskAccount/intFreshdeskAccount.controller.js index dfab946..7c7bb11 100644 --- a/server/api/intFreshdeskAccount/intFreshdeskAccount.controller.js +++ b/server/api/intFreshdeskAccount/intFreshdeskAccount.controller.js @@ -1 +1 @@ -const a255_0x8e40=['status','catch','FreshdeskConfiguration','lodash','key','count','custom_text','fields','includes','index','VIRTUAL','toString','findAll','Subjects','attributes','filters','stack','merge','error','priority','name','rawAttributes','filter','pick','apiKey','undefined','stringify','set','length','format','company','getFields','findOne','destroy','request-promise-native','query','fieldName','getDescriptions','offset','options','intersection','Wrong\x20credentials','test','AccountId','type','sort','model','getConfigurations','label','then','update','body','Descriptions','GET','capitalize','remoteUri','includeAll','limit','choices','from','statusCode','where','nolimit','create','like','ticket_type','Basic\x20%s','api','channel','keys','getFields,\x20%s,\x20%s,\x20%s','requester','remove','FreshdeskAccount','order','subject','params','../../components/integrations/configuration','api/v2/ticket_fields','../../components/parsers/qs','default','../../config/logger','json','custom_dropdown','map','include','slice','agent','show','rows','send'];(function(_0x2e8619,_0x8e406f){const _0x102325=function(_0x5d1bd1){while(--_0x5d1bd1){_0x2e8619['push'](_0x2e8619['shift']());}};_0x102325(++_0x8e406f);}(a255_0x8e40,0x83));const a255_0x1023=function(_0x2e8619,_0x8e406f){_0x2e8619=_0x2e8619-0x0;let _0x102325=a255_0x8e40[_0x2e8619];return _0x102325;};const _0x3c8dd5=a255_0x1023;'use strict';const rp=require(_0x3c8dd5('0x55')),util=require('util'),_=require(_0x3c8dd5('0x36')),qs=require(_0x3c8dd5('0x27')),logger=require(_0x3c8dd5('0x29'))(_0x3c8dd5('0x1b')),db=require('../../mysqldb')['db'],{Op}=require('sequelize'),integrations=require(_0x3c8dd5('0x25'));function respondWithResult(_0x5d1bd1,_0x1fbc6f){return _0x1fbc6f=_0x1fbc6f||0xc8,function(_0x53c743){const _0x20907a=a255_0x1023;if(_0x53c743)return _0x5d1bd1['status'](_0x1fbc6f)[_0x20907a('0x2a')](_0x53c743);};}function respondWithFilteredResult(_0x52c330,_0xd6cb03){return function(_0x5ee7ba){const _0x10dd29=a255_0x1023;if(_0x5ee7ba){const _0x16358d=_0x5ee7ba[_0x10dd29('0x38')],_0x1e9976=_0xd6cb03[_0x10dd29('0x59')];let _0x1f8410=_0xd6cb03[_0x10dd29('0x59')]+_0xd6cb03[_0x10dd29('0x11')],_0x4e0743;return _0x1f8410>=_0x16358d?(_0x1f8410=_0x16358d,_0x4e0743=0xc8):_0x4e0743=0xce,_0x52c330['status'](_0x4e0743),_0x52c330[_0x10dd29('0x4e')]('Content-Range',_0x1e9976+'-'+_0x1f8410+'/'+_0x16358d)[_0x10dd29('0x2a')](_0x5ee7ba);}return null;};}function saveUpdates(_0x2d43ba){return function(_0x169f26){const _0x33f75b=a255_0x1023;if(_0x169f26)return _0x169f26[_0x33f75b('0xa')](_0x2d43ba)['then'](function(_0x2d4562){return _0x2d4562;});return null;};}function removeEntity(_0x3ffd8c){return function(_0x386da2){const _0x28d11e=a255_0x1023;if(_0x386da2)return _0x386da2[_0x28d11e('0x54')]()['then'](function(){const _0x472609=_0x28d11e;_0x3ffd8c[_0x472609('0x33')](0xcc)['end']();});};}function handleEntityNotFound(_0x181653){return function(_0x420510){return!_0x420510&&_0x181653['sendStatus'](0x194),_0x420510;};}function handleError(_0x3cc6d7,_0x1f37d7){return _0x1f37d7=_0x1f37d7||0x1f4,function(_0x319af1){const _0x48d0c0=a255_0x1023;logger[_0x48d0c0('0x45')](_0x319af1[_0x48d0c0('0x43')]),_0x319af1[_0x48d0c0('0x47')]&&delete _0x319af1[_0x48d0c0('0x47')],_0x3cc6d7['status'](_0x1f37d7)[_0x48d0c0('0x32')](_0x319af1);};}exports[_0x3c8dd5('0x3c')]=function(_0x5546da,_0x172ebf){const _0x3021df=_0x3c8dd5;let _0x116dce={};const _0x2ad454={},_0x376544={'count':0x0,'rows':[]},_0x1523e3=_['map'](db[_0x3021df('0x21')][_0x3021df('0x48')],function(_0x289094){const _0x5db8fa=_0x3021df;return{'name':_0x289094[_0x5db8fa('0x57')],'type':_0x289094[_0x5db8fa('0x4')][_0x5db8fa('0x37')]};});_0x2ad454[_0x3021df('0x6')]=_['map'](_0x1523e3,_0x3021df('0x47')),_0x2ad454[_0x3021df('0x56')]=_[_0x3021df('0x1d')](_0x5546da[_0x3021df('0x56')]),_0x2ad454[_0x3021df('0x42')]=_[_0x3021df('0x0')](_0x2ad454[_0x3021df('0x6')],_0x2ad454[_0x3021df('0x56')]),_0x116dce[_0x3021df('0x41')]=_[_0x3021df('0x0')](_0x2ad454['model'],qs['fields'](_0x5546da[_0x3021df('0x56')][_0x3021df('0x3a')])),_0x116dce[_0x3021df('0x41')]=_0x116dce['attributes']['length']?_0x116dce[_0x3021df('0x41')]:_0x2ad454[_0x3021df('0x6')];typeof _0x5546da[_0x3021df('0x56')][_0x3021df('0x16')]==='undefined'&&(_0x116dce['limit']=qs[_0x3021df('0x11')](_0x5546da[_0x3021df('0x56')]['limit']),_0x116dce['offset']=qs[_0x3021df('0x59')](_0x5546da['query'][_0x3021df('0x59')]));_0x116dce[_0x3021df('0x22')]=qs[_0x3021df('0x5')](_0x5546da['query']['sort']),_0x116dce['where']=qs[_0x3021df('0x42')](_[_0x3021df('0x4a')](_0x5546da[_0x3021df('0x56')],_0x2ad454[_0x3021df('0x42')]),_0x1523e3);_0x5546da['query'][_0x3021df('0x49')]&&(_0x116dce[_0x3021df('0x15')]=_[_0x3021df('0x44')](_0x116dce[_0x3021df('0x15')],{[Op['or']]:_[_0x3021df('0x2c')](_0x1523e3,function(_0x52583e){const _0x1c27fa=_0x3021df;if(_0x52583e[_0x1c27fa('0x4')]!==_0x1c27fa('0x3d')){const _0x27977c={};return _0x27977c[_0x52583e[_0x1c27fa('0x47')]]={[Op[_0x1c27fa('0x18')]]:'%'+_0x5546da['query'][_0x1c27fa('0x49')]+'%'},_0x27977c;}})}));_0x116dce=_['merge']({},_0x116dce,_0x5546da[_0x3021df('0x5a')]);const _0x5e6132={'where':_0x116dce[_0x3021df('0x15')]};return db[_0x3021df('0x21')][_0x3021df('0x38')](_0x5e6132)[_0x3021df('0x9')](function(_0x306016){const _0x51185c=_0x3021df;return _0x376544[_0x51185c('0x38')]=_0x306016,_0x5546da['query']['includeAll']&&(_0x116dce[_0x51185c('0x2d')]=[{'all':!![]}]),db[_0x51185c('0x21')][_0x51185c('0x3f')](_0x116dce);})[_0x3021df('0x9')](function(_0x2b6ede){const _0x5bdb78=_0x3021df;return _0x376544[_0x5bdb78('0x31')]=_0x2b6ede,_0x376544;})[_0x3021df('0x9')](respondWithFilteredResult(_0x172ebf,_0x116dce))[_0x3021df('0x34')](handleError(_0x172ebf,null));},exports[_0x3c8dd5('0x30')]=function(_0x3ac1b9,_0x2246b3){const _0x1e1f74=_0x3c8dd5;let _0x4c92fd={'raw':![],'where':{'id':_0x3ac1b9[_0x1e1f74('0x24')]['id']}};const _0x4444c6={};return _0x4444c6[_0x1e1f74('0x6')]=_[_0x1e1f74('0x1d')](db[_0x1e1f74('0x21')][_0x1e1f74('0x48')]),_0x4444c6[_0x1e1f74('0x56')]=_['keys'](_0x3ac1b9[_0x1e1f74('0x56')]),_0x4444c6['filters']=_[_0x1e1f74('0x0')](_0x4444c6[_0x1e1f74('0x6')],_0x4444c6[_0x1e1f74('0x56')]),_0x4c92fd[_0x1e1f74('0x41')]=_[_0x1e1f74('0x0')](_0x4444c6['model'],qs[_0x1e1f74('0x3a')](_0x3ac1b9['query'][_0x1e1f74('0x3a')])),_0x4c92fd[_0x1e1f74('0x41')]=_0x4c92fd[_0x1e1f74('0x41')]['length']?_0x4c92fd[_0x1e1f74('0x41')]:_0x4444c6[_0x1e1f74('0x6')],_0x3ac1b9[_0x1e1f74('0x56')][_0x1e1f74('0x10')]&&(_0x4c92fd['include']=[{'all':!![]}]),_0x4c92fd=_[_0x1e1f74('0x44')]({},_0x4c92fd,_0x3ac1b9['options']),db[_0x1e1f74('0x21')][_0x1e1f74('0x53')](_0x4c92fd)['then'](handleEntityNotFound(_0x2246b3,null))[_0x1e1f74('0x9')](respondWithResult(_0x2246b3,null))['catch'](handleError(_0x2246b3,null));},exports[_0x3c8dd5('0x17')]=function(_0x533c65,_0xe4ab59){const _0x46b3c5=_0x3c8dd5;return db[_0x46b3c5('0x21')]['create'](_0x533c65['body'],{})[_0x46b3c5('0x9')](respondWithResult(_0xe4ab59,0xc9))[_0x46b3c5('0x34')](handleError(_0xe4ab59,null));},exports['update']=function(_0x4f10d5,_0x3e9d6c){const _0x5f1164=_0x3c8dd5;return _0x4f10d5[_0x5f1164('0xb')]['id']&&delete _0x4f10d5[_0x5f1164('0xb')]['id'],db[_0x5f1164('0x21')][_0x5f1164('0x53')]({'where':{'id':_0x4f10d5[_0x5f1164('0x24')]['id']}})[_0x5f1164('0x9')](handleEntityNotFound(_0x3e9d6c,null))[_0x5f1164('0x9')](saveUpdates(_0x4f10d5[_0x5f1164('0xb')],null))['then'](respondWithResult(_0x3e9d6c,null))['catch'](handleError(_0x3e9d6c,null));},exports['destroy']=function(_0x1c20f7,_0x24ed2e){const _0x493a7b=_0x3c8dd5;return db['FreshdeskAccount']['findOne']({'where':{'id':_0x1c20f7[_0x493a7b('0x24')]['id']}})['then'](handleEntityNotFound(_0x24ed2e,null))[_0x493a7b('0x9')](removeEntity(_0x24ed2e,null))['catch'](handleError(_0x24ed2e,null));},exports[_0x3c8dd5('0x7')]=function(_0x3b530e,_0x57ed0b){const _0xba814=_0x3c8dd5;let _0x2ed5f5={};const _0x5bd02b={};let _0x55ee9f,_0x58323f;return db[_0xba814('0x21')][_0xba814('0x53')]({'where':{'id':_0x3b530e['params']['id']}})[_0xba814('0x9')](handleEntityNotFound(_0x57ed0b,null))['then'](function(_0x3fab39){const _0x2aae3a=_0xba814;if(_0x3fab39)return _0x55ee9f=_0x3fab39,_0x5bd02b[_0x2aae3a('0x6')]=_[_0x2aae3a('0x1d')](db[_0x2aae3a('0x35')][_0x2aae3a('0x48')]),_0x5bd02b[_0x2aae3a('0x56')]=_['keys'](_0x3b530e[_0x2aae3a('0x56')]),_0x5bd02b[_0x2aae3a('0x42')]=_['intersection'](_0x5bd02b[_0x2aae3a('0x6')],_0x5bd02b[_0x2aae3a('0x56')]),_0x2ed5f5[_0x2aae3a('0x41')]=_['intersection'](_0x5bd02b[_0x2aae3a('0x6')],qs['fields'](_0x3b530e[_0x2aae3a('0x56')][_0x2aae3a('0x3a')])),_0x2ed5f5[_0x2aae3a('0x41')]=_0x2ed5f5[_0x2aae3a('0x41')][_0x2aae3a('0x4f')]?_0x2ed5f5[_0x2aae3a('0x41')]:_0x5bd02b[_0x2aae3a('0x6')],_0x2ed5f5[_0x2aae3a('0x22')]=qs['sort'](_0x3b530e[_0x2aae3a('0x56')][_0x2aae3a('0x5')]),_0x2ed5f5['where']=qs[_0x2aae3a('0x42')](_[_0x2aae3a('0x4a')](_0x3b530e[_0x2aae3a('0x56')],_0x5bd02b[_0x2aae3a('0x42')])),_0x3b530e[_0x2aae3a('0x56')][_0x2aae3a('0x49')]&&(_0x2ed5f5[_0x2aae3a('0x15')]=_['merge'](_0x2ed5f5[_0x2aae3a('0x15')],{[Op['or']]:_[_0x2aae3a('0x2c')](_0x2ed5f5[_0x2aae3a('0x41')],function(_0x38815c){const _0x58f015=_0x2aae3a,_0x19514d={};return _0x19514d[_0x38815c]={[Op[_0x58f015('0x18')]]:'%'+_0x3b530e[_0x58f015('0x56')][_0x58f015('0x49')]+'%'},_0x19514d;})})),_0x2ed5f5=_[_0x2aae3a('0x44')]({},_0x2ed5f5,_0x3b530e[_0x2aae3a('0x5a')]),_0x55ee9f['getConfigurations'](_0x2ed5f5);})[_0xba814('0x9')](function(_0x30ff4a){const _0x2296b9=_0xba814;if(_0x30ff4a)return _0x58323f=_0x30ff4a[_0x2296b9('0x4f')],typeof _0x3b530e[_0x2296b9('0x56')][_0x2296b9('0x16')]===_0x2296b9('0x4c')&&(_0x2ed5f5['limit']=qs[_0x2296b9('0x11')](_0x3b530e[_0x2296b9('0x56')][_0x2296b9('0x11')]),_0x2ed5f5[_0x2296b9('0x59')]=qs[_0x2296b9('0x59')](_0x3b530e[_0x2296b9('0x56')][_0x2296b9('0x59')])),_0x55ee9f[_0x2296b9('0x7')](_0x2ed5f5);})[_0xba814('0x9')](function(_0x3665a1){if(_0x3665a1)return _0x3665a1?{'count':_0x58323f,'rows':_0x3665a1}:null;})[_0xba814('0x9')](respondWithResult(_0x57ed0b,null))[_0xba814('0x34')](handleError(_0x57ed0b,null));},exports['addConfiguration']=function(_0x22e18c,_0x46df88){const _0x424357=_0x3c8dd5;return _0x22e18c[_0x424357('0xb')]['id']&&delete _0x22e18c[_0x424357('0xb')]['id'],db[_0x424357('0x21')]['findOne']({'where':{'id':_0x22e18c[_0x424357('0x24')]['id']}})[_0x424357('0x9')](handleEntityNotFound(_0x46df88,null))[_0x424357('0x9')](function(_0x5504eb){const _0x202847=_0x424357;if(_0x5504eb)return _0x22e18c[_0x202847('0xb')][_0x202847('0x3')]=_0x5504eb['id'],_0x22e18c['body']['Subjects']=integrations['getSubjects'](_0x22e18c[_0x202847('0xb')][_0x202847('0x1c')],_0x22e18c['body']['type']),_0x22e18c[_0x202847('0xb')][_0x202847('0xc')]=integrations[_0x202847('0x58')](_0x22e18c[_0x202847('0xb')][_0x202847('0x1c')],_0x22e18c[_0x202847('0xb')][_0x202847('0x4')]),db[_0x202847('0x35')][_0x202847('0x17')](_0x22e18c[_0x202847('0xb')],{'include':[{'model':db['FreshdeskField'],'as':_0x202847('0x40')},{'model':db['FreshdeskField'],'as':_0x202847('0xc')}]});return null;})[_0x424357('0x9')](respondWithResult(_0x46df88,null))['catch'](handleError(_0x46df88,null));},exports[_0x3c8dd5('0x52')]=function(_0x5f4c6f,_0x303f4c){const _0x477bfd=_0x3c8dd5;let _0x2ada6a='';return db[_0x477bfd('0x21')]['findOne']({'where':{'id':_0x5f4c6f[_0x477bfd('0x24')]['id']},'attributes':['id',_0x477bfd('0xf'),_0x477bfd('0x4b')]})[_0x477bfd('0x9')](handleEntityNotFound(_0x303f4c,null))[_0x477bfd('0x9')](function(_0x246bcc){const _0x529908=_0x477bfd;if(_0x246bcc){_0x2ada6a=_0x246bcc[_0x529908('0xf')];const _0x33ab3d=_0x2ada6a[_0x529908('0x2e')](-0x1);return _0x33ab3d==='/'&&(_0x2ada6a=_0x2ada6a['substring'](0x0,_0x2ada6a['lastIndexOf'](_0x33ab3d))),rp({'method':_0x529908('0xd'),'uri':util[_0x529908('0x50')]('%s/%s',_0x2ada6a,_0x529908('0x26')),'headers':{'Authorization':util[_0x529908('0x50')](_0x529908('0x1a'),Buffer[_0x529908('0x13')](util[_0x529908('0x50')]('%s:X',_0x246bcc['apiKey']))[_0x529908('0x3e')]('base64'))},'json':!![]});}})['then'](function(_0x1848bf){const _0xbcb7d=_0x477bfd;if(_0x1848bf){const _0x2fe3da=[_0xbcb7d('0x1f'),_0xbcb7d('0x23'),_0xbcb7d('0x2f'),'description',_0xbcb7d('0x33'),_0xbcb7d('0x46'),'group','source',_0xbcb7d('0x19'),'group',_0xbcb7d('0x51')];return _[_0xbcb7d('0x20')](_0x1848bf,function(_0x4ddda0){const _0x7f21ab=_0xbcb7d;return _0x2fe3da[_0x7f21ab('0x3b')](_0x4ddda0[_0x7f21ab('0x47')])||!_0x4ddda0[_0x7f21ab('0x28')]&&_0x4ddda0[_0x7f21ab('0x4')]!==_0x7f21ab('0x39')&&_0x4ddda0[_0x7f21ab('0x4')]!==_0x7f21ab('0x2b');}),{'count':_0x1848bf['length'],'rows':_['map'](_0x1848bf,function(_0x2d45fd){const _0xb31a0=_0xbcb7d;return{'id':_0x2d45fd[_0xb31a0('0x47')],'name':_0x2d45fd[_0xb31a0('0x8')],'custom':!_0x2d45fd['default'],'options':_0x2d45fd[_0xb31a0('0x12')]?_['map'](_0x2d45fd['choices'],function(_0x516b2f){const _0x4dae6d=_0xb31a0;return{'name':_[_0x4dae6d('0xe')](_0x516b2f),'value':_0x516b2f};}):[]};})};}})[_0x477bfd('0x9')](respondWithResult(_0x303f4c,null))[_0x477bfd('0x34')](function(_0x3a70c2){const _0x1685e5=_0x477bfd;let _0x1e3fd7=_0x5f4c6f['query'][_0x1685e5('0x2')]?0x1f4:_0x3a70c2[_0x1685e5('0x14')]||0x1f4;logger['error'](_0x1685e5('0x1e'),_0x1685e5('0x52'),_0x1e3fd7,JSON[_0x1685e5('0x4d')](_0x3a70c2)),delete _0x3a70c2[_0x1685e5('0x47')],_0x1e3fd7===0x191&&(_0x1e3fd7=0x190),_0x303f4c[_0x1685e5('0x33')](_0x1e3fd7)['send'](_0x5f4c6f['query'][_0x1685e5('0x2')]?{'message':_0x1685e5('0x1'),'statusCode':_0x3a70c2['statusCode']}:_0x3a70c2);});}; \ No newline at end of file +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 diff --git a/server/api/intFreshdeskAccount/intFreshdeskAccount.model.js b/server/api/intFreshdeskAccount/intFreshdeskAccount.model.js index 5a0423d..f561f1d 100644 --- a/server/api/intFreshdeskAccount/intFreshdeskAccount.model.js +++ b/server/api/intFreshdeskAccount/intFreshdeskAccount.model.js @@ -1 +1 @@ -const a256_0x3c41=['define','int_freshdesk_accounts','exports','FreshdeskAccount'];(function(_0x5be308,_0x3c4181){const _0x26469c=function(_0x41f960){while(--_0x41f960){_0x5be308['push'](_0x5be308['shift']());}};_0x26469c(++_0x3c4181);}(a256_0x3c41,0xba));const a256_0x2646=function(_0x5be308,_0x3c4181){_0x5be308=_0x5be308-0x0;let _0x26469c=a256_0x3c41[_0x5be308];return _0x26469c;};const _0x1adc8f=a256_0x2646;'use strict';const attributes=require('./intFreshdeskAccount.attributes');module[_0x1adc8f('0x0')]=function(_0x41f960){const _0x54a015=_0x1adc8f,_0x59550b=_0x41f960[_0x54a015('0x2')](_0x54a015('0x1'),attributes,{'tableName':_0x54a015('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x59550b;}; \ No newline at end of file +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 diff --git a/server/api/intFreshdeskAccount/intFreshdeskAccount.rpc.js b/server/api/intFreshdeskAccount/intFreshdeskAccount.rpc.js index bc7e81f..fc7ccf4 100644 --- a/server/api/intFreshdeskAccount/intFreshdeskAccount.rpc.js +++ b/server/api/intFreshdeskAccount/intFreshdeskAccount.rpc.js @@ -1 +1 @@ -const a257_0x5703=['options','stringify','where','findAll','raw','then','model','FreshdeskAccount','findOne','GetFreshdeskAccount','debug','error','message','rpc','map','attributes','ShowFreshdeskAccount','../../mysqldb','lodash','info','include','catch'];(function(_0x42058d,_0x57036d){const _0x4675f1=function(_0x909456){while(--_0x909456){_0x42058d['push'](_0x42058d['shift']());}};_0x4675f1(++_0x57036d);}(a257_0x5703,0x1b0));const a257_0x4675=function(_0x42058d,_0x57036d){_0x42058d=_0x42058d-0x0;let _0x4675f1=a257_0x5703[_0x42058d];return _0x4675f1;};const _0x5d14d1=a257_0x4675;'use strict';const _=require(_0x5d14d1('0x4')),db=require(_0x5d14d1('0x3'))['db'],logger=require('../../config/logger')(_0x5d14d1('0x15'));exports['GetFreshdeskAccount']=function(_0x909456){const _0x45c0e4=this;return new Promise(function(_0x2a1ba2,_0x2a7788){const _0x31d133=a257_0x4675;return db[_0x31d133('0xf')][_0x31d133('0xb')]({'raw':_0x909456['options']?_0x909456[_0x31d133('0x8')][_0x31d133('0xc')]===undefined?!![]:![]:!![],'where':_0x909456[_0x31d133('0x8')]?_0x909456[_0x31d133('0x8')][_0x31d133('0xa')]||null:null,'attributes':_0x909456[_0x31d133('0x8')]?_0x909456[_0x31d133('0x8')][_0x31d133('0x1')]||null:null,'limit':_0x909456[_0x31d133('0x8')]?_0x909456[_0x31d133('0x8')]['limit']||null:null,'include':_0x909456['options']?_0x909456[_0x31d133('0x8')]['include']?_['map'](_0x909456[_0x31d133('0x8')]['include'],function(_0x43fb63){const _0x39e9b6=_0x31d133;return{'model':db[_0x43fb63[_0x39e9b6('0xe')]],'as':_0x43fb63['as'],'attributes':_0x43fb63[_0x39e9b6('0x1')],'include':_0x43fb63[_0x39e9b6('0x6')]?_[_0x39e9b6('0x0')](_0x43fb63[_0x39e9b6('0x6')],function(_0x243f69){const _0x3d3bf8=_0x39e9b6;return{'model':db[_0x243f69[_0x3d3bf8('0xe')]],'as':_0x243f69['as'],'attributes':_0x243f69['attributes'],'include':_0x243f69[_0x3d3bf8('0x6')]?_[_0x3d3bf8('0x0')](_0x243f69[_0x3d3bf8('0x6')],function(_0x5de2d4){const _0x3cf0a4=_0x3d3bf8;return{'model':db[_0x5de2d4[_0x3cf0a4('0xe')]],'as':_0x5de2d4['as'],'attributes':_0x5de2d4[_0x3cf0a4('0x1')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x76c147){const _0x1e53a8=_0x31d133;logger[_0x1e53a8('0x5')](_0x1e53a8('0x11'),_0x909456),logger['debug'](_0x1e53a8('0x11'),_0x909456,JSON[_0x1e53a8('0x9')](_0x76c147)),_0x2a1ba2(_0x76c147);})[_0x31d133('0x7')](function(_0x52985d){const _0x31fa51=_0x31d133;logger[_0x31fa51('0x13')](_0x31fa51('0x11'),_0x52985d['message'],_0x909456),_0x2a7788(_0x45c0e4[_0x31fa51('0x13')](0x1f4,_0x52985d[_0x31fa51('0x14')]));});});},exports[_0x5d14d1('0x2')]=function(_0x4d5f25){const _0x4a045d=this;return new Promise(function(_0x4f5edd,_0x239be3){const _0x293edf=a257_0x4675;return db[_0x293edf('0xf')][_0x293edf('0x10')]({'raw':_0x4d5f25['options']?_0x4d5f25[_0x293edf('0x8')][_0x293edf('0xc')]===undefined?!![]:![]:!![],'where':_0x4d5f25[_0x293edf('0x8')]?_0x4d5f25[_0x293edf('0x8')]['where']||null:null,'attributes':_0x4d5f25[_0x293edf('0x8')]?_0x4d5f25[_0x293edf('0x8')][_0x293edf('0x1')]||null:null,'include':_0x4d5f25['options']?_0x4d5f25['options']['include']?_['map'](_0x4d5f25['options']['include'],function(_0x567402){const _0x3c1aa0=_0x293edf;return{'model':db[_0x567402[_0x3c1aa0('0xe')]],'as':_0x567402['as'],'attributes':_0x567402['attributes'],'include':_0x567402[_0x3c1aa0('0x6')]?_['map'](_0x567402['include'],function(_0x24f28e){const _0x5917db=_0x3c1aa0;return{'model':db[_0x24f28e['model']],'as':_0x24f28e['as'],'attributes':_0x24f28e['attributes'],'include':_0x24f28e['include']?_[_0x5917db('0x0')](_0x24f28e[_0x5917db('0x6')],function(_0x24e514){const _0x91b340=_0x5917db;return{'model':db[_0x24e514[_0x91b340('0xe')]],'as':_0x24e514['as'],'attributes':_0x24e514[_0x91b340('0x1')]};}):[]};}):[]};}):[]:[]})[_0x293edf('0xd')](function(_0x32c7ec){const _0x37478f=_0x293edf;logger['info'](_0x37478f('0x2'),_0x4d5f25),logger[_0x37478f('0x12')](_0x37478f('0x2'),_0x4d5f25,JSON[_0x37478f('0x9')](_0x32c7ec)),_0x4f5edd(_0x32c7ec);})[_0x293edf('0x7')](function(_0xa376d3){const _0x5b8ddb=_0x293edf;logger[_0x5b8ddb('0x13')](_0x5b8ddb('0x2'),_0xa376d3['message'],_0x4d5f25),_0x239be3(_0x4a045d[_0x5b8ddb('0x13')](0x1f4,_0xa376d3[_0x5b8ddb('0x14')]));});});}; \ No newline at end of file +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 diff --git a/server/api/intFreshdeskConfiguration/index.js b/server/api/intFreshdeskConfiguration/index.js index 7e32e64..d76d8a8 100644 --- a/server/api/intFreshdeskConfiguration/index.js +++ b/server/api/intFreshdeskConfiguration/index.js @@ -1 +1 @@ -const a258_0x599d=['getSubjects','./intFreshdeskConfiguration.controller','get','/:id/subjects','create','/:id','setTags','express','post','show','getTags','delete','getFields','getDescriptions','/:id/tags','isAuthenticated','../../components/auth/service','update','/:id/fields','exports'];(function(_0x269468,_0x599df1){const _0x1c3bf7=function(_0xa3f36d){while(--_0xa3f36d){_0x269468['push'](_0x269468['shift']());}};_0x1c3bf7(++_0x599df1);}(a258_0x599d,0x1c4));const a258_0x1c3b=function(_0x269468,_0x599df1){_0x269468=_0x269468-0x0;let _0x1c3bf7=a258_0x599d[_0x269468];return _0x1c3bf7;};const _0x2aef9d=a258_0x1c3b;'use strict';const express=require(_0x2aef9d('0xf')),router=express['Router'](),auth=require(_0x2aef9d('0x4')),controller=require(_0x2aef9d('0x9'));router[_0x2aef9d('0xa')]('/',auth[_0x2aef9d('0x3')](),controller['index']),router[_0x2aef9d('0xa')](_0x2aef9d('0xd'),auth[_0x2aef9d('0x3')](),controller[_0x2aef9d('0x11')]),router[_0x2aef9d('0xa')](_0x2aef9d('0x6'),auth[_0x2aef9d('0x3')](),controller[_0x2aef9d('0x0')]),router[_0x2aef9d('0xa')](_0x2aef9d('0xb'),auth[_0x2aef9d('0x3')](),controller[_0x2aef9d('0x8')]),router[_0x2aef9d('0xa')]('/:id/descriptions',auth['isAuthenticated'](),controller[_0x2aef9d('0x1')]),router[_0x2aef9d('0xa')](_0x2aef9d('0x2'),auth[_0x2aef9d('0x3')](),controller[_0x2aef9d('0x12')]),router['post']('/',auth[_0x2aef9d('0x3')](),controller[_0x2aef9d('0xc')]),router[_0x2aef9d('0x10')](_0x2aef9d('0x2'),auth[_0x2aef9d('0x3')](),controller[_0x2aef9d('0xe')]),router['put']('/:id',auth[_0x2aef9d('0x3')](),controller[_0x2aef9d('0x5')]),router[_0x2aef9d('0x13')](_0x2aef9d('0xd'),auth['isAuthenticated'](),controller['destroy']),module[_0x2aef9d('0x7')]=router; \ No newline at end of file +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 diff --git a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.attributes.js b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.attributes.js index 7aa97a7..b1bf44f 100644 --- a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.attributes.js +++ b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.attributes.js @@ -1 +1 @@ -const a259_0x554f=['sequelize','STRING'];(function(_0x209b67,_0x554f2f){const _0x3782be=function(_0x11abc6){while(--_0x11abc6){_0x209b67['push'](_0x209b67['shift']());}};_0x3782be(++_0x554f2f);}(a259_0x554f,0x1ec));const a259_0x3782=function(_0x209b67,_0x554f2f){_0x209b67=_0x209b67-0x0;let _0x3782be=a259_0x554f[_0x209b67];return _0x3782be;};const _0x4b653b=a259_0x3782;'use strict';const Sequelize=require(_0x4b653b('0x0'));module['exports']={'name':{'type':Sequelize[_0x4b653b('0x1')]},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +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 diff --git a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.controller.js b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.controller.js index bf32361..c488e16 100644 --- a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.controller.js +++ b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.controller.js @@ -1 +1 @@ -const a260_0x53f8=['length','intersection','api','offset','filters','keys','count','include','rows','order','findOne','destroy','nolimit','getSubjects','undefined','then','fieldName','show','rawAttributes','setTags','name','limit','attributes','query','where','Content-Range','stack','VIRTUAL','findAll','fields','getTags','includeAll','create','getDescriptions','FreshdeskConfiguration','filter','status','type','getFields','like','map','key','FreshdeskField','pick','ids','params','json','../../mysqldb','catch','../../config/logger','model','body','options','set','end','sendStatus','update','merge','sequelize','sort'];(function(_0x4ac694,_0x53f890){const _0x3c56af=function(_0x352ea8){while(--_0x352ea8){_0x4ac694['push'](_0x4ac694['shift']());}};_0x3c56af(++_0x53f890);}(a260_0x53f8,0xa7));const a260_0x3c56=function(_0x4ac694,_0x53f890){_0x4ac694=_0x4ac694-0x0;let _0x3c56af=a260_0x53f8[_0x4ac694];return _0x3c56af;};const _0x2b53bd=a260_0x3c56;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x2b53bd('0x2'))(_0x2b53bd('0xf')),db=require(_0x2b53bd('0x0'))['db'],{Op}=require(_0x2b53bd('0xb'));function respondWithResult(_0x352ea8,_0x446f16){return _0x446f16=_0x446f16||0xc8,function(_0x5a5989){const _0x419529=a260_0x3c56;if(_0x5a5989)return _0x352ea8[_0x419529('0x31')](_0x446f16)[_0x419529('0x3b')](_0x5a5989);};}function respondWithFilteredResult(_0x20aaad,_0x11023c){return function(_0x4fe1b1){const _0x154194=a260_0x3c56;if(_0x4fe1b1){const _0x5916a1=_0x4fe1b1['count'],_0x53fc3f=_0x11023c[_0x154194('0x10')];let _0x1a1f14=_0x11023c['offset']+_0x11023c[_0x154194('0x22')],_0x9f0cde;return _0x1a1f14>=_0x5916a1?(_0x1a1f14=_0x5916a1,_0x9f0cde=0xc8):_0x9f0cde=0xce,_0x20aaad[_0x154194('0x31')](_0x9f0cde),_0x20aaad[_0x154194('0x6')](_0x154194('0x26'),_0x53fc3f+'-'+_0x1a1f14+'/'+_0x5916a1)[_0x154194('0x3b')](_0x4fe1b1);}return null;};}function saveUpdates(_0x1a1142){return function(_0xbc05b1){const _0x1f8fab=a260_0x3c56;if(_0xbc05b1)return _0xbc05b1[_0x1f8fab('0x9')](_0x1a1142)[_0x1f8fab('0x1c')](function(_0x350073){return _0x350073;});return null;};}function removeEntity(_0x142a9a){return function(_0x20a643){const _0x5a99e0=a260_0x3c56;if(_0x20a643)return _0x20a643['destroy']()[_0x5a99e0('0x1c')](function(){const _0x11e1db=_0x5a99e0;_0x142a9a[_0x11e1db('0x31')](0xcc)[_0x11e1db('0x7')]();});};}function handleEntityNotFound(_0x7431ec){return function(_0x410bfd){const _0x470b81=a260_0x3c56;return!_0x410bfd&&_0x7431ec[_0x470b81('0x8')](0x194),_0x410bfd;};}function handleError(_0x5022bc,_0x2a8135){return _0x2a8135=_0x2a8135||0x1f4,function(_0x174acf){const _0x1b5837=a260_0x3c56;logger['error'](_0x174acf[_0x1b5837('0x27')]),_0x174acf[_0x1b5837('0x21')]&&delete _0x174acf[_0x1b5837('0x21')],_0x5022bc[_0x1b5837('0x31')](_0x2a8135)['send'](_0x174acf);};}exports['index']=function(_0x38f629,_0x42564c){const _0x3943b4=_0x2b53bd;let _0x8d1f0e={};const _0x3b3f37={},_0x4cd0fc={'count':0x0,'rows':[]},_0x3f14f9=_[_0x3943b4('0x35')](db['FreshdeskConfiguration']['rawAttributes'],function(_0x1587e9){const _0x1a7021=_0x3943b4;return{'name':_0x1587e9[_0x1a7021('0x1d')],'type':_0x1587e9[_0x1a7021('0x32')][_0x1a7021('0x36')]};});_0x3b3f37['model']=_[_0x3943b4('0x35')](_0x3f14f9,_0x3943b4('0x21')),_0x3b3f37[_0x3943b4('0x24')]=_[_0x3943b4('0x12')](_0x38f629[_0x3943b4('0x24')]),_0x3b3f37[_0x3943b4('0x11')]=_['intersection'](_0x3b3f37[_0x3943b4('0x3')],_0x3b3f37[_0x3943b4('0x24')]),_0x8d1f0e[_0x3943b4('0x23')]=_[_0x3943b4('0xe')](_0x3b3f37['model'],qs[_0x3943b4('0x2a')](_0x38f629[_0x3943b4('0x24')]['fields'])),_0x8d1f0e[_0x3943b4('0x23')]=_0x8d1f0e[_0x3943b4('0x23')][_0x3943b4('0xd')]?_0x8d1f0e['attributes']:_0x3b3f37[_0x3943b4('0x3')];typeof _0x38f629[_0x3943b4('0x24')][_0x3943b4('0x19')]===_0x3943b4('0x1b')&&(_0x8d1f0e['limit']=qs[_0x3943b4('0x22')](_0x38f629['query'][_0x3943b4('0x22')]),_0x8d1f0e[_0x3943b4('0x10')]=qs[_0x3943b4('0x10')](_0x38f629[_0x3943b4('0x24')][_0x3943b4('0x10')]));_0x8d1f0e[_0x3943b4('0x16')]=qs[_0x3943b4('0xc')](_0x38f629[_0x3943b4('0x24')]['sort']),_0x8d1f0e[_0x3943b4('0x25')]=qs[_0x3943b4('0x11')](_['pick'](_0x38f629[_0x3943b4('0x24')],_0x3b3f37[_0x3943b4('0x11')]),_0x3f14f9);_0x38f629[_0x3943b4('0x24')][_0x3943b4('0x30')]&&(_0x8d1f0e[_0x3943b4('0x25')]=_['merge'](_0x8d1f0e[_0x3943b4('0x25')],{[Op['or']]:_['map'](_0x3f14f9,function(_0x10d681){const _0x4c647f=_0x3943b4;if(_0x10d681['type']!==_0x4c647f('0x28')){const _0x295ec2={};return _0x295ec2[_0x10d681[_0x4c647f('0x21')]]={[Op['like']]:'%'+_0x38f629['query'][_0x4c647f('0x30')]+'%'},_0x295ec2;}})}));_0x8d1f0e=_['merge']({},_0x8d1f0e,_0x38f629[_0x3943b4('0x5')]);const _0x344826={'where':_0x8d1f0e[_0x3943b4('0x25')]};return db[_0x3943b4('0x2f')][_0x3943b4('0x13')](_0x344826)[_0x3943b4('0x1c')](function(_0x4e0ad2){const _0x6fb3d8=_0x3943b4;return _0x4cd0fc[_0x6fb3d8('0x13')]=_0x4e0ad2,_0x38f629[_0x6fb3d8('0x24')][_0x6fb3d8('0x2c')]&&(_0x8d1f0e[_0x6fb3d8('0x14')]=[{'all':!![]}]),db[_0x6fb3d8('0x2f')][_0x6fb3d8('0x29')](_0x8d1f0e);})['then'](function(_0x311791){const _0x3227e5=_0x3943b4;return _0x4cd0fc[_0x3227e5('0x15')]=_0x311791,_0x4cd0fc;})['then'](respondWithFilteredResult(_0x42564c,_0x8d1f0e))[_0x3943b4('0x1')](handleError(_0x42564c,null));},exports[_0x2b53bd('0x1e')]=function(_0x14ec57,_0x64d9f9){const _0x6d1e24=_0x2b53bd;let _0x50b452={'raw':![],'where':{'id':_0x14ec57[_0x6d1e24('0x3a')]['id']}};const _0x4f92b3={};return _0x4f92b3[_0x6d1e24('0x3')]=_[_0x6d1e24('0x12')](db['FreshdeskConfiguration'][_0x6d1e24('0x1f')]),_0x4f92b3[_0x6d1e24('0x24')]=_[_0x6d1e24('0x12')](_0x14ec57[_0x6d1e24('0x24')]),_0x4f92b3[_0x6d1e24('0x11')]=_[_0x6d1e24('0xe')](_0x4f92b3['model'],_0x4f92b3['query']),_0x50b452[_0x6d1e24('0x23')]=_[_0x6d1e24('0xe')](_0x4f92b3['model'],qs[_0x6d1e24('0x2a')](_0x14ec57[_0x6d1e24('0x24')][_0x6d1e24('0x2a')])),_0x50b452[_0x6d1e24('0x23')]=_0x50b452[_0x6d1e24('0x23')][_0x6d1e24('0xd')]?_0x50b452[_0x6d1e24('0x23')]:_0x4f92b3[_0x6d1e24('0x3')],_0x14ec57[_0x6d1e24('0x24')][_0x6d1e24('0x2c')]&&(_0x50b452['include']=[{'all':!![]}]),_0x50b452=_[_0x6d1e24('0xa')]({},_0x50b452,_0x14ec57[_0x6d1e24('0x5')]),db[_0x6d1e24('0x2f')][_0x6d1e24('0x17')](_0x50b452)[_0x6d1e24('0x1c')](handleEntityNotFound(_0x64d9f9,null))['then'](respondWithResult(_0x64d9f9,null))[_0x6d1e24('0x1')](handleError(_0x64d9f9,null));},exports[_0x2b53bd('0x2d')]=function(_0x12a32e,_0x585373){const _0x47edeb=_0x2b53bd;return db['FreshdeskConfiguration']['create'](_0x12a32e['body'],{})[_0x47edeb('0x1c')](respondWithResult(_0x585373,0xc9))['catch'](handleError(_0x585373,null));},exports['update']=function(_0x2c1be5,_0x3cd112){const _0x5dc039=_0x2b53bd;return _0x2c1be5[_0x5dc039('0x4')]['id']&&delete _0x2c1be5['body']['id'],db[_0x5dc039('0x2f')][_0x5dc039('0x17')]({'where':{'id':_0x2c1be5['params']['id']}})['then'](handleEntityNotFound(_0x3cd112,null))[_0x5dc039('0x1c')](saveUpdates(_0x2c1be5['body'],null))[_0x5dc039('0x1c')](respondWithResult(_0x3cd112,null))['catch'](handleError(_0x3cd112,null));},exports[_0x2b53bd('0x18')]=function(_0x49215b,_0x1b567f){const _0x564d9a=_0x2b53bd;return db['FreshdeskConfiguration']['findOne']({'where':{'id':_0x49215b[_0x564d9a('0x3a')]['id']}})[_0x564d9a('0x1c')](handleEntityNotFound(_0x1b567f,null))['then'](removeEntity(_0x1b567f,null))[_0x564d9a('0x1')](handleError(_0x1b567f,null));},exports[_0x2b53bd('0x33')]=function(_0xd9072b,_0x3369d2){const _0x4e7fe9=_0x2b53bd;let _0x18c917={};const _0x391087={};let _0x296edc,_0x2d0762;return db[_0x4e7fe9('0x2f')]['findOne']({'where':{'id':_0xd9072b[_0x4e7fe9('0x3a')]['id']}})[_0x4e7fe9('0x1c')](handleEntityNotFound(_0x3369d2,null))[_0x4e7fe9('0x1c')](function(_0x25c08d){const _0x2fc128=_0x4e7fe9;if(_0x25c08d)return _0x296edc=_0x25c08d,_0x391087[_0x2fc128('0x3')]=_[_0x2fc128('0x12')](db[_0x2fc128('0x37')][_0x2fc128('0x1f')]),_0x391087[_0x2fc128('0x24')]=_['keys'](_0xd9072b[_0x2fc128('0x24')]),_0x391087[_0x2fc128('0x11')]=_[_0x2fc128('0xe')](_0x391087[_0x2fc128('0x3')],_0x391087['query']),_0x18c917[_0x2fc128('0x23')]=_[_0x2fc128('0xe')](_0x391087['model'],qs['fields'](_0xd9072b[_0x2fc128('0x24')][_0x2fc128('0x2a')])),_0x18c917[_0x2fc128('0x23')]=_0x18c917[_0x2fc128('0x23')][_0x2fc128('0xd')]?_0x18c917['attributes']:_0x391087['model'],_0x18c917[_0x2fc128('0x16')]=qs[_0x2fc128('0xc')](_0xd9072b['query'][_0x2fc128('0xc')]),_0x18c917['where']=qs[_0x2fc128('0x11')](_['pick'](_0xd9072b[_0x2fc128('0x24')],_0x391087[_0x2fc128('0x11')])),_0xd9072b[_0x2fc128('0x24')]['filter']&&(_0x18c917[_0x2fc128('0x25')]=_[_0x2fc128('0xa')](_0x18c917['where'],{[Op['or']]:_[_0x2fc128('0x35')](_0x18c917[_0x2fc128('0x23')],function(_0xbc1f9d){const _0x1bd29c=_0x2fc128,_0x1c2704={};return _0x1c2704[_0xbc1f9d]={[Op[_0x1bd29c('0x34')]]:'%'+_0xd9072b['query']['filter']+'%'},_0x1c2704;})})),_0x18c917=_['merge']({},_0x18c917,_0xd9072b['options']),_0x296edc[_0x2fc128('0x33')](_0x18c917);})['then'](function(_0x37949c){const _0xceb960=_0x4e7fe9;if(_0x37949c)return _0x2d0762=_0x37949c[_0xceb960('0xd')],typeof _0xd9072b[_0xceb960('0x24')][_0xceb960('0x19')]===_0xceb960('0x1b')&&(_0x18c917[_0xceb960('0x22')]=qs[_0xceb960('0x22')](_0xd9072b[_0xceb960('0x24')][_0xceb960('0x22')]),_0x18c917[_0xceb960('0x10')]=qs[_0xceb960('0x10')](_0xd9072b[_0xceb960('0x24')][_0xceb960('0x10')])),_0x296edc[_0xceb960('0x33')](_0x18c917);})[_0x4e7fe9('0x1c')](function(_0x43c9de){if(_0x43c9de)return _0x43c9de?{'count':_0x2d0762,'rows':_0x43c9de}:null;})[_0x4e7fe9('0x1c')](respondWithResult(_0x3369d2,null))['catch'](handleError(_0x3369d2,null));},exports[_0x2b53bd('0x1a')]=function(_0x4a31f1,_0x4e8180){const _0x49bb5f=_0x2b53bd;let _0x1edbc3={};const _0x3a992f={};let _0x2c365e,_0x4b0062;return db[_0x49bb5f('0x2f')]['findOne']({'where':{'id':_0x4a31f1[_0x49bb5f('0x3a')]['id']}})['then'](handleEntityNotFound(_0x4e8180,null))[_0x49bb5f('0x1c')](function(_0x5e3783){const _0x3ae263=_0x49bb5f;if(_0x5e3783)return _0x2c365e=_0x5e3783,_0x3a992f[_0x3ae263('0x3')]=_[_0x3ae263('0x12')](db[_0x3ae263('0x37')][_0x3ae263('0x1f')]),_0x3a992f['query']=_[_0x3ae263('0x12')](_0x4a31f1[_0x3ae263('0x24')]),_0x3a992f[_0x3ae263('0x11')]=_[_0x3ae263('0xe')](_0x3a992f[_0x3ae263('0x3')],_0x3a992f['query']),_0x1edbc3[_0x3ae263('0x23')]=_[_0x3ae263('0xe')](_0x3a992f[_0x3ae263('0x3')],qs[_0x3ae263('0x2a')](_0x4a31f1[_0x3ae263('0x24')][_0x3ae263('0x2a')])),_0x1edbc3['attributes']=_0x1edbc3['attributes'][_0x3ae263('0xd')]?_0x1edbc3['attributes']:_0x3a992f['model'],_0x1edbc3[_0x3ae263('0x16')]=qs[_0x3ae263('0xc')](_0x4a31f1[_0x3ae263('0x24')][_0x3ae263('0xc')]),_0x1edbc3[_0x3ae263('0x25')]=qs[_0x3ae263('0x11')](_[_0x3ae263('0x38')](_0x4a31f1['query'],_0x3a992f[_0x3ae263('0x11')])),_0x4a31f1[_0x3ae263('0x24')][_0x3ae263('0x30')]&&(_0x1edbc3['where']=_[_0x3ae263('0xa')](_0x1edbc3[_0x3ae263('0x25')],{[Op['or']]:_[_0x3ae263('0x35')](_0x1edbc3[_0x3ae263('0x23')],function(_0x309954){const _0x2bab35={};return _0x2bab35[_0x309954]={[Op['like']]:'%'+_0x4a31f1['query']['filter']+'%'},_0x2bab35;})})),_0x1edbc3=_[_0x3ae263('0xa')]({},_0x1edbc3,_0x4a31f1[_0x3ae263('0x5')]),_0x2c365e['getSubjects'](_0x1edbc3);})['then'](function(_0x160bed){const _0x4f195b=_0x49bb5f;if(_0x160bed)return _0x4b0062=_0x160bed[_0x4f195b('0xd')],typeof _0x4a31f1['query'][_0x4f195b('0x19')]===_0x4f195b('0x1b')&&(_0x1edbc3[_0x4f195b('0x22')]=qs[_0x4f195b('0x22')](_0x4a31f1[_0x4f195b('0x24')][_0x4f195b('0x22')]),_0x1edbc3[_0x4f195b('0x10')]=qs[_0x4f195b('0x10')](_0x4a31f1['query'][_0x4f195b('0x10')])),_0x2c365e['getSubjects'](_0x1edbc3);})[_0x49bb5f('0x1c')](function(_0x3a4e00){if(_0x3a4e00)return _0x3a4e00?{'count':_0x4b0062,'rows':_0x3a4e00}:null;})[_0x49bb5f('0x1c')](respondWithResult(_0x4e8180,null))[_0x49bb5f('0x1')](handleError(_0x4e8180,null));},exports[_0x2b53bd('0x2e')]=function(_0x13480e,_0x5584b5){const _0x24685c=_0x2b53bd;let _0x280b4c={};const _0x3abce1={};let _0x6bfefb,_0x1fd84c;return db[_0x24685c('0x2f')][_0x24685c('0x17')]({'where':{'id':_0x13480e[_0x24685c('0x3a')]['id']}})[_0x24685c('0x1c')](handleEntityNotFound(_0x5584b5,null))['then'](function(_0xe302ed){const _0x3f8173=_0x24685c;if(_0xe302ed)return _0x6bfefb=_0xe302ed,_0x3abce1[_0x3f8173('0x3')]=_[_0x3f8173('0x12')](db[_0x3f8173('0x37')][_0x3f8173('0x1f')]),_0x3abce1[_0x3f8173('0x24')]=_[_0x3f8173('0x12')](_0x13480e[_0x3f8173('0x24')]),_0x3abce1[_0x3f8173('0x11')]=_[_0x3f8173('0xe')](_0x3abce1['model'],_0x3abce1[_0x3f8173('0x24')]),_0x280b4c[_0x3f8173('0x23')]=_['intersection'](_0x3abce1[_0x3f8173('0x3')],qs[_0x3f8173('0x2a')](_0x13480e['query'][_0x3f8173('0x2a')])),_0x280b4c[_0x3f8173('0x23')]=_0x280b4c['attributes'][_0x3f8173('0xd')]?_0x280b4c[_0x3f8173('0x23')]:_0x3abce1[_0x3f8173('0x3')],_0x280b4c[_0x3f8173('0x16')]=qs[_0x3f8173('0xc')](_0x13480e['query'][_0x3f8173('0xc')]),_0x280b4c[_0x3f8173('0x25')]=qs['filters'](_[_0x3f8173('0x38')](_0x13480e[_0x3f8173('0x24')],_0x3abce1[_0x3f8173('0x11')])),_0x13480e[_0x3f8173('0x24')][_0x3f8173('0x30')]&&(_0x280b4c['where']=_[_0x3f8173('0xa')](_0x280b4c[_0x3f8173('0x25')],{[Op['or']]:_[_0x3f8173('0x35')](_0x280b4c[_0x3f8173('0x23')],function(_0xf90378){const _0x20e190=_0x3f8173,_0x3dd998={};return _0x3dd998[_0xf90378]={[Op[_0x20e190('0x34')]]:'%'+_0x13480e[_0x20e190('0x24')][_0x20e190('0x30')]+'%'},_0x3dd998;})})),_0x280b4c=_[_0x3f8173('0xa')]({},_0x280b4c,_0x13480e['options']),_0x6bfefb[_0x3f8173('0x2e')](_0x280b4c);})[_0x24685c('0x1c')](function(_0xa418cd){const _0x2e7d59=_0x24685c;if(_0xa418cd)return _0x1fd84c=_0xa418cd[_0x2e7d59('0xd')],typeof _0x13480e['query'][_0x2e7d59('0x19')]===_0x2e7d59('0x1b')&&(_0x280b4c['limit']=qs[_0x2e7d59('0x22')](_0x13480e[_0x2e7d59('0x24')][_0x2e7d59('0x22')]),_0x280b4c[_0x2e7d59('0x10')]=qs['offset'](_0x13480e[_0x2e7d59('0x24')][_0x2e7d59('0x10')])),_0x6bfefb[_0x2e7d59('0x2e')](_0x280b4c);})[_0x24685c('0x1c')](function(_0x2cd156){if(_0x2cd156)return _0x2cd156?{'count':_0x1fd84c,'rows':_0x2cd156}:null;})[_0x24685c('0x1c')](respondWithResult(_0x5584b5,null))['catch'](handleError(_0x5584b5,null));},exports[_0x2b53bd('0x2b')]=function(_0x1c6b96,_0xbb4634){const _0x43838c=_0x2b53bd;let _0x27808c={};const _0x36b23d={};let _0x3fcb48,_0x5d30ef;return db[_0x43838c('0x2f')][_0x43838c('0x17')]({'where':{'id':_0x1c6b96[_0x43838c('0x3a')]['id']}})[_0x43838c('0x1c')](handleEntityNotFound(_0xbb4634,null))[_0x43838c('0x1c')](function(_0x59a473){const _0x1faabe=_0x43838c;if(_0x59a473)return _0x3fcb48=_0x59a473,_0x36b23d[_0x1faabe('0x3')]=_['keys'](db['Tag'][_0x1faabe('0x1f')]),_0x36b23d[_0x1faabe('0x24')]=_[_0x1faabe('0x12')](_0x1c6b96[_0x1faabe('0x24')]),_0x36b23d['filters']=_[_0x1faabe('0xe')](_0x36b23d['model'],_0x36b23d[_0x1faabe('0x24')]),_0x27808c[_0x1faabe('0x23')]=_[_0x1faabe('0xe')](_0x36b23d[_0x1faabe('0x3')],qs['fields'](_0x1c6b96[_0x1faabe('0x24')][_0x1faabe('0x2a')])),_0x27808c[_0x1faabe('0x23')]=_0x27808c[_0x1faabe('0x23')][_0x1faabe('0xd')]?_0x27808c['attributes']:_0x36b23d[_0x1faabe('0x3')],_0x27808c[_0x1faabe('0x16')]=qs[_0x1faabe('0xc')](_0x1c6b96[_0x1faabe('0x24')][_0x1faabe('0xc')]),_0x27808c['where']=qs[_0x1faabe('0x11')](_[_0x1faabe('0x38')](_0x1c6b96[_0x1faabe('0x24')],_0x36b23d['filters'])),_0x1c6b96[_0x1faabe('0x24')]['filter']&&(_0x27808c[_0x1faabe('0x25')]=_[_0x1faabe('0xa')](_0x27808c[_0x1faabe('0x25')],{[Op['or']]:_[_0x1faabe('0x35')](_0x27808c[_0x1faabe('0x23')],function(_0x24a9c8){const _0x1114f5=_0x1faabe,_0x3f200e={};return _0x3f200e[_0x24a9c8]={[Op['like']]:'%'+_0x1c6b96[_0x1114f5('0x24')][_0x1114f5('0x30')]+'%'},_0x3f200e;})})),_0x27808c=_[_0x1faabe('0xa')]({},_0x27808c,_0x1c6b96[_0x1faabe('0x5')]),_0x3fcb48[_0x1faabe('0x2b')](_0x27808c);})[_0x43838c('0x1c')](function(_0x34e7a6){const _0x10ac0e=_0x43838c;if(_0x34e7a6)return _0x5d30ef=_0x34e7a6[_0x10ac0e('0xd')],typeof _0x1c6b96['query'][_0x10ac0e('0x19')]===_0x10ac0e('0x1b')&&(_0x27808c[_0x10ac0e('0x22')]=qs[_0x10ac0e('0x22')](_0x1c6b96[_0x10ac0e('0x24')][_0x10ac0e('0x22')]),_0x27808c[_0x10ac0e('0x10')]=qs[_0x10ac0e('0x10')](_0x1c6b96[_0x10ac0e('0x24')][_0x10ac0e('0x10')])),_0x3fcb48[_0x10ac0e('0x2b')](_0x27808c);})['then'](function(_0x339c48){if(_0x339c48)return _0x339c48?{'count':_0x5d30ef,'rows':_0x339c48}:null;})[_0x43838c('0x1c')](respondWithResult(_0xbb4634,null))[_0x43838c('0x1')](handleError(_0xbb4634,null));},exports[_0x2b53bd('0x20')]=function(_0xb725,_0x40dcf5){const _0x4648cb=_0x2b53bd;return _0xb725[_0x4648cb('0x4')]['id']&&delete _0xb725[_0x4648cb('0x4')]['id'],db['FreshdeskConfiguration']['findOne']({'where':{'id':_0xb725[_0x4648cb('0x3a')]['id']}})[_0x4648cb('0x1c')](handleEntityNotFound(_0x40dcf5,null))[_0x4648cb('0x1c')](function(_0x973e20){const _0x71a939=_0x4648cb;if(_0x973e20)return _0x973e20[_0x71a939('0x20')](_0xb725[_0x71a939('0x4')][_0x71a939('0x39')]||[]);return null;})['then'](respondWithResult(_0x40dcf5,null))[_0x4648cb('0x1')](handleError(_0x40dcf5,null));}; \ No newline at end of file +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 diff --git a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.model.js b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.model.js index ac28ae1..db0026e 100644 --- a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.model.js +++ b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.model.js @@ -1 +1 @@ -const a261_0x3afb=['int_freshdesk_configurations','./intFreshdeskConfiguration.attributes','FreshdeskConfiguration','exports'];(function(_0x1e2d5a,_0x3afb30){const _0x51001b=function(_0x17e869){while(--_0x17e869){_0x1e2d5a['push'](_0x1e2d5a['shift']());}};_0x51001b(++_0x3afb30);}(a261_0x3afb,0x17c));const a261_0x5100=function(_0x1e2d5a,_0x3afb30){_0x1e2d5a=_0x1e2d5a-0x0;let _0x51001b=a261_0x3afb[_0x1e2d5a];return _0x51001b;};const _0x5d04fa=a261_0x5100;'use strict';const attributes=require(_0x5d04fa('0x1'));module[_0x5d04fa('0x3')]=function(_0x17e869){const _0x59f4bc=_0x5d04fa,_0xb45477=_0x17e869['define'](_0x59f4bc('0x2'),attributes,{'tableName':_0x59f4bc('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xb45477;}; \ No newline at end of file +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 diff --git a/server/api/intFreshdeskField/index.js b/server/api/intFreshdeskField/index.js index 12dcd96..deed039 100644 --- a/server/api/intFreshdeskField/index.js +++ b/server/api/intFreshdeskField/index.js @@ -1 +1 @@ -const a262_0x2f9a=['post','/:id','destroy','get','create','update','isAuthenticated','show','exports','delete','express','Router','../../components/auth/service'];(function(_0x3a40d2,_0x2f9a91){const _0x567ae6=function(_0x3c88df){while(--_0x3c88df){_0x3a40d2['push'](_0x3a40d2['shift']());}};_0x567ae6(++_0x2f9a91);}(a262_0x2f9a,0x1a4));const a262_0x567a=function(_0x3a40d2,_0x2f9a91){_0x3a40d2=_0x3a40d2-0x0;let _0x567ae6=a262_0x2f9a[_0x3a40d2];return _0x567ae6;};const _0x181998=a262_0x567a;'use strict';const express=require(_0x181998('0x6')),router=express[_0x181998('0x7')](),auth=require(_0x181998('0x8')),controller=require('./intFreshdeskField.controller');router[_0x181998('0xc')]('/',auth[_0x181998('0x2')](),controller['index']),router['get']('/:id',auth[_0x181998('0x2')](),controller[_0x181998('0x3')]),router[_0x181998('0x9')]('/',auth['isAuthenticated'](),controller[_0x181998('0x0')]),router['put'](_0x181998('0xa'),auth[_0x181998('0x2')](),controller[_0x181998('0x1')]),router[_0x181998('0x5')]('/:id',auth[_0x181998('0x2')](),controller[_0x181998('0xb')]),module[_0x181998('0x4')]=router; \ No newline at end of file +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 diff --git a/server/api/intFreshdeskField/intFreshdeskField.attributes.js b/server/api/intFreshdeskField/intFreshdeskField.attributes.js index 7819204..6e724bf 100644 --- a/server/api/intFreshdeskField/intFreshdeskField.attributes.js +++ b/server/api/intFreshdeskField/intFreshdeskField.attributes.js @@ -1 +1 @@ -const a263_0x27f1=['exports','BOOLEAN','variable','sequelize','ENUM','string','customVariable','keyValue','STRING'];(function(_0x142ea0,_0x27f1e5){const _0x44f549=function(_0x78db9c){while(--_0x78db9c){_0x142ea0['push'](_0x142ea0['shift']());}};_0x44f549(++_0x27f1e5);}(a263_0x27f1,0x7a));const a263_0x44f5=function(_0x142ea0,_0x27f1e5){_0x142ea0=_0x142ea0-0x0;let _0x44f549=a263_0x27f1[_0x142ea0];return _0x44f549;};const _0x555a4c=a263_0x44f5;'use strict';const Sequelize=require(_0x555a4c('0x7'));module[_0x555a4c('0x4')]={'type':{'type':Sequelize['ENUM'](_0x555a4c('0x0'),_0x555a4c('0x6'),_0x555a4c('0x1'),_0x555a4c('0x2')),'defaultValue':_0x555a4c('0x0')},'content':{'type':Sequelize['STRING']},'key':{'type':Sequelize[_0x555a4c('0x3')]},'keyType':{'type':Sequelize[_0x555a4c('0x8')](_0x555a4c('0x0'),_0x555a4c('0x6'),_0x555a4c('0x1'))},'keyContent':{'type':Sequelize['STRING']},'idField':{'type':Sequelize[_0x555a4c('0x3')]},'nameField':{'type':Sequelize[_0x555a4c('0x3')]},'customField':{'type':Sequelize[_0x555a4c('0x5')],'defaultValue':!![]},'variableName':{'type':Sequelize['STRING']}}; \ No newline at end of file +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 diff --git a/server/api/intFreshdeskField/intFreshdeskField.controller.js b/server/api/intFreshdeskField/intFreshdeskField.controller.js index 4ad86c0..4244515 100644 --- a/server/api/intFreshdeskField/intFreshdeskField.controller.js +++ b/server/api/intFreshdeskField/intFreshdeskField.controller.js @@ -1 +1 @@ -const a264_0x2fac=['rows','destroy','sequelize','fields','json','params','limit','Content-Range','map','create','keys','attributes','key','stack','../../components/parsers/qs','findAll','update','rawAttributes','intersection','FreshdeskField','catch','set','../../config/logger','filter','body','filters','where','options','nolimit','lodash','then','include','send','merge','undefined','sort','model','show','index','name','VIRTUAL','includeAll','end','query','api','length','type','offset','status','findOne'];(function(_0x5e5847,_0x2facf3){const _0xe25699=function(_0x33c394){while(--_0x33c394){_0x5e5847['push'](_0x5e5847['shift']());}};_0xe25699(++_0x2facf3);}(a264_0x2fac,0x102));const a264_0xe256=function(_0x5e5847,_0x2facf3){_0x5e5847=_0x5e5847-0x0;let _0xe25699=a264_0x2fac[_0x5e5847];return _0xe25699;};const _0x497463=a264_0xe256;'use strict';const _=require(_0x497463('0x15')),qs=require(_0x497463('0x6')),logger=require(_0x497463('0xe'))(_0x497463('0x24')),db=require('../../mysqldb')['db'],{Op}=require(_0x497463('0x2c'));function respondWithResult(_0x33c394,_0x3eeec5){return _0x3eeec5=_0x3eeec5||0xc8,function(_0x4d0387){const _0x332b04=a264_0xe256;if(_0x4d0387)return _0x33c394[_0x332b04('0x28')](_0x3eeec5)[_0x332b04('0x2e')](_0x4d0387);};}function respondWithFilteredResult(_0x29bf91,_0x543aea){return function(_0x3e12d4){const _0x11b9ee=a264_0xe256;if(_0x3e12d4){const _0x980feb=_0x3e12d4['count'],_0x75b3e=_0x543aea['offset'];let _0x1ab0df=_0x543aea[_0x11b9ee('0x27')]+_0x543aea[_0x11b9ee('0x30')],_0xcf8e85;return _0x1ab0df>=_0x980feb?(_0x1ab0df=_0x980feb,_0xcf8e85=0xc8):_0xcf8e85=0xce,_0x29bf91[_0x11b9ee('0x28')](_0xcf8e85),_0x29bf91[_0x11b9ee('0xd')](_0x11b9ee('0x31'),_0x75b3e+'-'+_0x1ab0df+'/'+_0x980feb)[_0x11b9ee('0x2e')](_0x3e12d4);}return null;};}function saveUpdates(_0x36c545){return function(_0x274ac7){const _0x59d84c=a264_0xe256;if(_0x274ac7)return _0x274ac7['update'](_0x36c545)[_0x59d84c('0x16')](function(_0x1167e0){return _0x1167e0;});return null;};}function removeEntity(_0xe2ef3b){return function(_0x488cda){const _0x6652a6=a264_0xe256;if(_0x488cda)return _0x488cda[_0x6652a6('0x2b')]()['then'](function(){const _0x124bda=_0x6652a6;_0xe2ef3b[_0x124bda('0x28')](0xcc)[_0x124bda('0x22')]();});};}function handleEntityNotFound(_0x140c34){return function(_0x5af0f6){return!_0x5af0f6&&_0x140c34['sendStatus'](0x194),_0x5af0f6;};}function handleError(_0x4c1ab6,_0x294aef){return _0x294aef=_0x294aef||0x1f4,function(_0x3906ac){const _0x2b37e5=a264_0xe256;logger['error'](_0x3906ac[_0x2b37e5('0x5')]),_0x3906ac[_0x2b37e5('0x1f')]&&delete _0x3906ac[_0x2b37e5('0x1f')],_0x4c1ab6['status'](_0x294aef)[_0x2b37e5('0x18')](_0x3906ac);};}exports[_0x497463('0x1e')]=function(_0x59e007,_0x357009){const _0x312d67=_0x497463;let _0x4a9d9e={};const _0xe2408b={},_0xc59845={'count':0x0,'rows':[]},_0x3d077d=_[_0x312d67('0x0')](db['FreshdeskField'][_0x312d67('0x9')],function(_0x5c4c64){const _0x52a7e3=_0x312d67;return{'name':_0x5c4c64['fieldName'],'type':_0x5c4c64[_0x52a7e3('0x26')][_0x52a7e3('0x4')]};});_0xe2408b[_0x312d67('0x1c')]=_[_0x312d67('0x0')](_0x3d077d,'name'),_0xe2408b[_0x312d67('0x23')]=_[_0x312d67('0x2')](_0x59e007[_0x312d67('0x23')]),_0xe2408b[_0x312d67('0x11')]=_[_0x312d67('0xa')](_0xe2408b['model'],_0xe2408b[_0x312d67('0x23')]),_0x4a9d9e['attributes']=_[_0x312d67('0xa')](_0xe2408b[_0x312d67('0x1c')],qs['fields'](_0x59e007['query']['fields'])),_0x4a9d9e[_0x312d67('0x3')]=_0x4a9d9e[_0x312d67('0x3')][_0x312d67('0x25')]?_0x4a9d9e[_0x312d67('0x3')]:_0xe2408b['model'];typeof _0x59e007[_0x312d67('0x23')][_0x312d67('0x14')]===_0x312d67('0x1a')&&(_0x4a9d9e[_0x312d67('0x30')]=qs['limit'](_0x59e007['query'][_0x312d67('0x30')]),_0x4a9d9e['offset']=qs[_0x312d67('0x27')](_0x59e007[_0x312d67('0x23')][_0x312d67('0x27')]));_0x4a9d9e['order']=qs[_0x312d67('0x1b')](_0x59e007[_0x312d67('0x23')][_0x312d67('0x1b')]),_0x4a9d9e['where']=qs[_0x312d67('0x11')](_['pick'](_0x59e007[_0x312d67('0x23')],_0xe2408b[_0x312d67('0x11')]),_0x3d077d);_0x59e007[_0x312d67('0x23')]['filter']&&(_0x4a9d9e['where']=_[_0x312d67('0x19')](_0x4a9d9e[_0x312d67('0x12')],{[Op['or']]:_[_0x312d67('0x0')](_0x3d077d,function(_0x2e7bad){const _0x530ed3=_0x312d67;if(_0x2e7bad[_0x530ed3('0x26')]!==_0x530ed3('0x20')){const _0x3795b4={};return _0x3795b4[_0x2e7bad['name']]={[Op['like']]:'%'+_0x59e007[_0x530ed3('0x23')][_0x530ed3('0xf')]+'%'},_0x3795b4;}})}));_0x4a9d9e=_[_0x312d67('0x19')]({},_0x4a9d9e,_0x59e007[_0x312d67('0x13')]);const _0x28ca47={'where':_0x4a9d9e[_0x312d67('0x12')]};return db[_0x312d67('0xb')]['count'](_0x28ca47)[_0x312d67('0x16')](function(_0x4ed466){const _0x423805=_0x312d67;return _0xc59845['count']=_0x4ed466,_0x59e007[_0x423805('0x23')][_0x423805('0x21')]&&(_0x4a9d9e[_0x423805('0x17')]=[{'all':!![]}]),db[_0x423805('0xb')][_0x423805('0x7')](_0x4a9d9e);})[_0x312d67('0x16')](function(_0x3c3046){const _0x21e3d2=_0x312d67;return _0xc59845[_0x21e3d2('0x2a')]=_0x3c3046,_0xc59845;})[_0x312d67('0x16')](respondWithFilteredResult(_0x357009,_0x4a9d9e))[_0x312d67('0xc')](handleError(_0x357009,null));},exports[_0x497463('0x1d')]=function(_0x4688ab,_0x510658){const _0x393474=_0x497463;let _0xfc02bd={'raw':!![],'where':{'id':_0x4688ab[_0x393474('0x2f')]['id']}};const _0x68b34d={};return _0x68b34d['model']=_[_0x393474('0x2')](db['FreshdeskField'][_0x393474('0x9')]),_0x68b34d['query']=_[_0x393474('0x2')](_0x4688ab[_0x393474('0x23')]),_0x68b34d['filters']=_[_0x393474('0xa')](_0x68b34d[_0x393474('0x1c')],_0x68b34d[_0x393474('0x23')]),_0xfc02bd[_0x393474('0x3')]=_[_0x393474('0xa')](_0x68b34d['model'],qs[_0x393474('0x2d')](_0x4688ab[_0x393474('0x23')][_0x393474('0x2d')])),_0xfc02bd[_0x393474('0x3')]=_0xfc02bd[_0x393474('0x3')]['length']?_0xfc02bd['attributes']:_0x68b34d[_0x393474('0x1c')],_0x4688ab[_0x393474('0x23')]['includeAll']&&(_0xfc02bd[_0x393474('0x17')]=[{'all':!![]}]),_0xfc02bd=_['merge']({},_0xfc02bd,_0x4688ab['options']),db[_0x393474('0xb')][_0x393474('0x29')](_0xfc02bd)[_0x393474('0x16')](handleEntityNotFound(_0x510658,null))['then'](respondWithResult(_0x510658,null))[_0x393474('0xc')](handleError(_0x510658,null));},exports[_0x497463('0x1')]=function(_0x2d971d,_0x2df9fa){const _0x5bd6d8=_0x497463;return db['FreshdeskField']['create'](_0x2d971d[_0x5bd6d8('0x10')],{})[_0x5bd6d8('0x16')](respondWithResult(_0x2df9fa,0xc9))[_0x5bd6d8('0xc')](handleError(_0x2df9fa,null));},exports[_0x497463('0x8')]=function(_0x36794e,_0x161a9b){const _0x435b9f=_0x497463;return _0x36794e['body']['id']&&delete _0x36794e[_0x435b9f('0x10')]['id'],db['FreshdeskField'][_0x435b9f('0x29')]({'where':{'id':_0x36794e['params']['id']}})[_0x435b9f('0x16')](handleEntityNotFound(_0x161a9b,null))['then'](saveUpdates(_0x36794e[_0x435b9f('0x10')],null))[_0x435b9f('0x16')](respondWithResult(_0x161a9b,null))['catch'](handleError(_0x161a9b,null));},exports[_0x497463('0x2b')]=function(_0x5c3ebe,_0xa4960c){const _0x5c4387=_0x497463;return db[_0x5c4387('0xb')]['findOne']({'where':{'id':_0x5c3ebe[_0x5c4387('0x2f')]['id']}})[_0x5c4387('0x16')](handleEntityNotFound(_0xa4960c,null))[_0x5c4387('0x16')](removeEntity(_0xa4960c,null))[_0x5c4387('0xc')](handleError(_0xa4960c,null));}; \ No newline at end of file +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 diff --git a/server/api/intFreshdeskField/intFreshdeskField.model.js b/server/api/intFreshdeskField/intFreshdeskField.model.js index d5cbd9a..1498b22 100644 --- a/server/api/intFreshdeskField/intFreshdeskField.model.js +++ b/server/api/intFreshdeskField/intFreshdeskField.model.js @@ -1 +1 @@ -const a265_0x1638=['idField','exports','freshdesk_unique_index','FreshdeskField','int_freshdesk_fields'];(function(_0x2eed86,_0x163890){const _0x3be5cc=function(_0x2ea10b){while(--_0x2ea10b){_0x2eed86['push'](_0x2eed86['shift']());}};_0x3be5cc(++_0x163890);}(a265_0x1638,0xad));const a265_0x3be5=function(_0x2eed86,_0x163890){_0x2eed86=_0x2eed86-0x0;let _0x3be5cc=a265_0x1638[_0x2eed86];return _0x3be5cc;};const _0x4fa7b4=a265_0x3be5;'use strict';const attributes=require('./intFreshdeskField.attributes');module[_0x4fa7b4('0x3')]=function(_0x2ea10b){const _0x37468c=_0x4fa7b4,_0x263ad2=_0x2ea10b['define'](_0x37468c('0x0'),attributes,{'tableName':_0x37468c('0x1'),'paranoid':![],'indexes':[{'name':_0x37468c('0x4'),'fields':[_0x37468c('0x2'),'FieldId'],'unique':!![]}],'timestamps':!![]});return _0x263ad2;}; \ No newline at end of file +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 diff --git a/server/api/intFreshsalesAccount/index.js b/server/api/intFreshsalesAccount/index.js index cfaacda..b6a1da5 100644 --- a/server/api/intFreshsalesAccount/index.js +++ b/server/api/intFreshsalesAccount/index.js @@ -1 +1 @@ -const a266_0x38fb=['getConfigurations','express','./intFreshsalesAccount.controller','get','post','getFields','/:id/configurations','put','/:id','update','/:id/fields','destroy','isAuthenticated','create','delete','show','exports','Router'];(function(_0x26f8c3,_0x38fbde){const _0x1978de=function(_0x2cdfc8){while(--_0x2cdfc8){_0x26f8c3['push'](_0x26f8c3['shift']());}};_0x1978de(++_0x38fbde);}(a266_0x38fb,0x195));const a266_0x1978=function(_0x26f8c3,_0x38fbde){_0x26f8c3=_0x26f8c3-0x0;let _0x1978de=a266_0x38fb[_0x26f8c3];return _0x1978de;};const _0x5cdb8b=a266_0x1978;'use strict';const express=require(_0x5cdb8b('0xa')),router=express[_0x5cdb8b('0x8')](),auth=require('../../components/auth/service'),controller=require(_0x5cdb8b('0xb'));router['get']('/',auth[_0x5cdb8b('0x3')](),controller['index']),router['get']('/:id',auth[_0x5cdb8b('0x3')](),controller[_0x5cdb8b('0x6')]),router[_0x5cdb8b('0xc')](_0x5cdb8b('0xf'),auth['isAuthenticated'](),controller[_0x5cdb8b('0x9')]),router[_0x5cdb8b('0xc')](_0x5cdb8b('0x1'),auth[_0x5cdb8b('0x3')](),controller[_0x5cdb8b('0xe')]),router[_0x5cdb8b('0xd')]('/',auth[_0x5cdb8b('0x3')](),controller[_0x5cdb8b('0x4')]),router[_0x5cdb8b('0xd')](_0x5cdb8b('0xf'),auth[_0x5cdb8b('0x3')](),controller['addConfiguration']),router[_0x5cdb8b('0x10')](_0x5cdb8b('0x11'),auth[_0x5cdb8b('0x3')](),controller[_0x5cdb8b('0x0')]),router[_0x5cdb8b('0x5')](_0x5cdb8b('0x11'),auth[_0x5cdb8b('0x3')](),controller[_0x5cdb8b('0x2')]),module[_0x5cdb8b('0x7')]=router; \ No newline at end of file +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 diff --git a/server/api/intFreshsalesAccount/intFreshsalesAccount.attributes.js b/server/api/intFreshsalesAccount/intFreshsalesAccount.attributes.js index b2850ef..67ef234 100644 --- a/server/api/intFreshsalesAccount/intFreshsalesAccount.attributes.js +++ b/server/api/intFreshsalesAccount/intFreshsalesAccount.attributes.js @@ -1 +1 @@ -const a267_0x5055=['username','STRING','exports'];(function(_0x538d00,_0x5055d6){const _0x222b17=function(_0x5a356f){while(--_0x5a356f){_0x538d00['push'](_0x538d00['shift']());}};_0x222b17(++_0x5055d6);}(a267_0x5055,0x1cd));const a267_0x222b=function(_0x538d00,_0x5055d6){_0x538d00=_0x538d00-0x0;let _0x222b17=a267_0x5055[_0x538d00];return _0x222b17;};const _0x30938c=a267_0x222b;'use strict';const Sequelize=require('sequelize');module[_0x30938c('0x0')]={'name':{'type':Sequelize[_0x30938c('0x2')]},'description':{'type':Sequelize[_0x30938c('0x2')]},'username':{'type':Sequelize[_0x30938c('0x2')],'unique':_0x30938c('0x1')},'apiKey':{'type':Sequelize[_0x30938c('0x2')]},'remoteUri':{'type':Sequelize[_0x30938c('0x2')],'unique':'remoteUri'},'serverUrl':{'type':Sequelize[_0x30938c('0x2')]}}; \ No newline at end of file +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 diff --git a/server/api/intFreshsalesAccount/intFreshsalesAccount.controller.js b/server/api/intFreshsalesAccount/intFreshsalesAccount.controller.js index ba05bdc..ee2e08f 100644 --- a/server/api/intFreshsalesAccount/intFreshsalesAccount.controller.js +++ b/server/api/intFreshsalesAccount/intFreshsalesAccount.controller.js @@ -1 +1 @@ -const a268_0x40e0=['substring','remoteUri','nolimit','../../config/logger','%s%s','../../components/integrations/configuration','lastIndexOf','limit','json','findAll','request-promise-native','undefined','offset','model','channel','util','includeAll','Wrong\x20credentials','GET','params','filter','Requested\x20Resource\x20not\x20Found','create','map','format','index','end','query','body','send','include','keys','sort','pick','name','count','order','type','test','stringify','key','getFields,\x20%s,\x20%s,\x20%s','rows','where','catch','statusCode','intersection','filters','sendStatus','slice','username','Subjects','Content-Range','like','attributes','sequelize','show','VIRTUAL','FreshsalesAccount','apiKey','destroy','getFields','fieldName','then','/api/selector/owners','addConfiguration','getConfigurations','merge','findOne','fields','api','Token\x20token=','options','update','lodash','error','users','stack','FreshsalesField','getSubjects','status','length','Descriptions','rawAttributes'];(function(_0x1bb192,_0x40e023){const _0x3a3ee0=function(_0x136b9f){while(--_0x136b9f){_0x1bb192['push'](_0x1bb192['shift']());}};_0x3a3ee0(++_0x40e023);}(a268_0x40e0,0xc6));const a268_0x3a3e=function(_0x1bb192,_0x40e023){_0x1bb192=_0x1bb192-0x0;let _0x3a3ee0=a268_0x40e0[_0x1bb192];return _0x3a3ee0;};const _0x3b4c62=a268_0x3a3e;'use strict';const rp=require(_0x3b4c62('0x40')),util=require(_0x3b4c62('0x45')),_=require(_0x3b4c62('0x2c')),qs=require('../../components/parsers/qs'),logger=require(_0x3b4c62('0x39'))(_0x3b4c62('0x28')),db=require('../../mysqldb')['db'],{Op}=require(_0x3b4c62('0x19')),integrations=require(_0x3b4c62('0x3b'));function respondWithResult(_0x136b9f,_0x13d31a){return _0x13d31a=_0x13d31a||0xc8,function(_0x454590){const _0x2e2f74=a268_0x3a3e;if(_0x454590)return _0x136b9f[_0x2e2f74('0x32')](_0x13d31a)[_0x2e2f74('0x3e')](_0x454590);};}function respondWithFilteredResult(_0x3e8495,_0x355435){return function(_0x3bf5ee){const _0x3b5050=a268_0x3a3e;if(_0x3bf5ee){const _0x4ff5ce=_0x3bf5ee[_0x3b5050('0x5')],_0x2d1beb=_0x355435[_0x3b5050('0x42')];let _0x2345b9=_0x355435[_0x3b5050('0x42')]+_0x355435[_0x3b5050('0x3d')],_0xa770b8;return _0x2345b9>=_0x4ff5ce?(_0x2345b9=_0x4ff5ce,_0xa770b8=0xc8):_0xa770b8=0xce,_0x3e8495[_0x3b5050('0x32')](_0xa770b8),_0x3e8495['set'](_0x3b5050('0x16'),_0x2d1beb+'-'+_0x2345b9+'/'+_0x4ff5ce)[_0x3b5050('0x3e')](_0x3bf5ee);}return null;};}function saveUpdates(_0xd1a411){return function(_0x269100){if(_0x269100)return _0x269100['update'](_0xd1a411)['then'](function(_0x242ddf){return _0x242ddf;});return null;};}function removeEntity(_0x1f07a7){return function(_0x1d6584){const _0xf99395=a268_0x3a3e;if(_0x1d6584)return _0x1d6584[_0xf99395('0x1e')]()[_0xf99395('0x21')](function(){const _0x5dc5ad=_0xf99395;_0x1f07a7[_0x5dc5ad('0x32')](0xcc)[_0x5dc5ad('0x50')]();});};}function handleEntityNotFound(_0x17b820){return function(_0x2e1a6d){const _0x2e931c=a268_0x3a3e;return!_0x2e1a6d&&_0x17b820[_0x2e931c('0x12')](0x194),_0x2e1a6d;};}function handleError(_0x1d65fa,_0x3a47da){return _0x3a47da=_0x3a47da||0x1f4,function(_0x21702a){const _0xb1ed7d=a268_0x3a3e;logger[_0xb1ed7d('0x2d')](_0x21702a[_0xb1ed7d('0x2f')]),_0x21702a['name']&&delete _0x21702a[_0xb1ed7d('0x4')],_0x1d65fa[_0xb1ed7d('0x32')](_0x3a47da)['send'](_0x21702a);};}exports[_0x3b4c62('0x4f')]=function(_0x43c006,_0x55d1ff){const _0x57a953=_0x3b4c62;let _0xed86e9={};const _0x16bb1f={},_0x564edf={'count':0x0,'rows':[]},_0x491ef8=_[_0x57a953('0x4d')](db[_0x57a953('0x1c')][_0x57a953('0x35')],function(_0x4d5935){const _0x2809ea=_0x57a953;return{'name':_0x4d5935[_0x2809ea('0x20')],'type':_0x4d5935['type'][_0x2809ea('0xa')]};});_0x16bb1f['model']=_[_0x57a953('0x4d')](_0x491ef8,_0x57a953('0x4')),_0x16bb1f[_0x57a953('0x51')]=_[_0x57a953('0x1')](_0x43c006[_0x57a953('0x51')]),_0x16bb1f[_0x57a953('0x11')]=_['intersection'](_0x16bb1f[_0x57a953('0x43')],_0x16bb1f[_0x57a953('0x51')]),_0xed86e9[_0x57a953('0x18')]=_[_0x57a953('0x10')](_0x16bb1f[_0x57a953('0x43')],qs[_0x57a953('0x27')](_0x43c006[_0x57a953('0x51')]['fields'])),_0xed86e9[_0x57a953('0x18')]=_0xed86e9[_0x57a953('0x18')]['length']?_0xed86e9['attributes']:_0x16bb1f[_0x57a953('0x43')];typeof _0x43c006[_0x57a953('0x51')][_0x57a953('0x38')]===_0x57a953('0x41')&&(_0xed86e9[_0x57a953('0x3d')]=qs[_0x57a953('0x3d')](_0x43c006[_0x57a953('0x51')][_0x57a953('0x3d')]),_0xed86e9[_0x57a953('0x42')]=qs[_0x57a953('0x42')](_0x43c006[_0x57a953('0x51')][_0x57a953('0x42')]));_0xed86e9['order']=qs[_0x57a953('0x2')](_0x43c006['query'][_0x57a953('0x2')]),_0xed86e9[_0x57a953('0xd')]=qs['filters'](_[_0x57a953('0x3')](_0x43c006[_0x57a953('0x51')],_0x16bb1f['filters']),_0x491ef8);_0x43c006[_0x57a953('0x51')][_0x57a953('0x4a')]&&(_0xed86e9[_0x57a953('0xd')]=_[_0x57a953('0x25')](_0xed86e9[_0x57a953('0xd')],{[Op['or']]:_[_0x57a953('0x4d')](_0x491ef8,function(_0x357072){const _0x4558c6=_0x57a953;if(_0x357072['type']!==_0x4558c6('0x1b')){const _0x45e550={};return _0x45e550[_0x357072[_0x4558c6('0x4')]]={[Op['like']]:'%'+_0x43c006[_0x4558c6('0x51')][_0x4558c6('0x4a')]+'%'},_0x45e550;}})}));_0xed86e9=_[_0x57a953('0x25')]({},_0xed86e9,_0x43c006[_0x57a953('0x2a')]);const _0x1b925d={'where':_0xed86e9['where']};return db[_0x57a953('0x1c')][_0x57a953('0x5')](_0x1b925d)[_0x57a953('0x21')](function(_0x12d105){const _0x38f5ef=_0x57a953;return _0x564edf['count']=_0x12d105,_0x43c006[_0x38f5ef('0x51')][_0x38f5ef('0x46')]&&(_0xed86e9[_0x38f5ef('0x0')]=[{'all':!![]}]),db[_0x38f5ef('0x1c')][_0x38f5ef('0x3f')](_0xed86e9);})['then'](function(_0x420525){const _0x63eb14=_0x57a953;return _0x564edf[_0x63eb14('0xc')]=_0x420525,_0x564edf;})[_0x57a953('0x21')](respondWithFilteredResult(_0x55d1ff,_0xed86e9))['catch'](handleError(_0x55d1ff,null));},exports[_0x3b4c62('0x1a')]=function(_0xf3d123,_0x541f76){const _0x494b55=_0x3b4c62;let _0x37fc18={'raw':![],'where':{'id':_0xf3d123[_0x494b55('0x49')]['id']}};const _0x473077={};return _0x473077[_0x494b55('0x43')]=_['keys'](db[_0x494b55('0x1c')][_0x494b55('0x35')]),_0x473077['query']=_[_0x494b55('0x1')](_0xf3d123[_0x494b55('0x51')]),_0x473077['filters']=_[_0x494b55('0x10')](_0x473077['model'],_0x473077['query']),_0x37fc18[_0x494b55('0x18')]=_[_0x494b55('0x10')](_0x473077[_0x494b55('0x43')],qs[_0x494b55('0x27')](_0xf3d123['query'][_0x494b55('0x27')])),_0x37fc18[_0x494b55('0x18')]=_0x37fc18[_0x494b55('0x18')][_0x494b55('0x33')]?_0x37fc18[_0x494b55('0x18')]:_0x473077[_0x494b55('0x43')],_0xf3d123[_0x494b55('0x51')]['includeAll']&&(_0x37fc18[_0x494b55('0x0')]=[{'all':!![]}]),_0x37fc18=_[_0x494b55('0x25')]({},_0x37fc18,_0xf3d123['options']),db['FreshsalesAccount']['findOne'](_0x37fc18)['then'](handleEntityNotFound(_0x541f76,null))[_0x494b55('0x21')](respondWithResult(_0x541f76,null))[_0x494b55('0xe')](handleError(_0x541f76,null));},exports[_0x3b4c62('0x4c')]=function(_0x52d4ae,_0x5d75ec){const _0x3c38b7=_0x3b4c62;return db['FreshsalesAccount'][_0x3c38b7('0x4c')](_0x52d4ae[_0x3c38b7('0x52')],{})[_0x3c38b7('0x21')](respondWithResult(_0x5d75ec,0xc9))[_0x3c38b7('0xe')](handleError(_0x5d75ec,null));},exports[_0x3b4c62('0x2b')]=function(_0x1f104c,_0x549bdb){const _0x4db81f=_0x3b4c62;return _0x1f104c[_0x4db81f('0x52')]['id']&&delete _0x1f104c[_0x4db81f('0x52')]['id'],db['FreshsalesAccount'][_0x4db81f('0x26')]({'where':{'id':_0x1f104c[_0x4db81f('0x49')]['id']}})[_0x4db81f('0x21')](handleEntityNotFound(_0x549bdb,null))['then'](saveUpdates(_0x1f104c[_0x4db81f('0x52')],null))[_0x4db81f('0x21')](respondWithResult(_0x549bdb,null))[_0x4db81f('0xe')](handleError(_0x549bdb,null));},exports[_0x3b4c62('0x1e')]=function(_0x200e59,_0x2582bf){const _0x336449=_0x3b4c62;return db['FreshsalesAccount']['findOne']({'where':{'id':_0x200e59[_0x336449('0x49')]['id']}})[_0x336449('0x21')](handleEntityNotFound(_0x2582bf,null))[_0x336449('0x21')](removeEntity(_0x2582bf,null))[_0x336449('0xe')](handleError(_0x2582bf,null));},exports[_0x3b4c62('0x24')]=function(_0x217d8,_0x3960de){const _0x550b0a=_0x3b4c62;let _0x249b78={};const _0x38f95a={};let _0x390d99,_0x3e9496;return db[_0x550b0a('0x1c')][_0x550b0a('0x26')]({'where':{'id':_0x217d8[_0x550b0a('0x49')]['id']}})[_0x550b0a('0x21')](handleEntityNotFound(_0x3960de,null))[_0x550b0a('0x21')](function(_0x3427c7){const _0x117426=_0x550b0a;if(_0x3427c7)return _0x390d99=_0x3427c7,_0x38f95a['model']=_['keys'](db['FreshsalesConfiguration']['rawAttributes']),_0x38f95a[_0x117426('0x51')]=_[_0x117426('0x1')](_0x217d8[_0x117426('0x51')]),_0x38f95a[_0x117426('0x11')]=_[_0x117426('0x10')](_0x38f95a[_0x117426('0x43')],_0x38f95a[_0x117426('0x51')]),_0x249b78[_0x117426('0x18')]=_[_0x117426('0x10')](_0x38f95a['model'],qs['fields'](_0x217d8[_0x117426('0x51')][_0x117426('0x27')])),_0x249b78[_0x117426('0x18')]=_0x249b78['attributes'][_0x117426('0x33')]?_0x249b78[_0x117426('0x18')]:_0x38f95a[_0x117426('0x43')],_0x249b78[_0x117426('0x6')]=qs[_0x117426('0x2')](_0x217d8['query'][_0x117426('0x2')]),_0x249b78[_0x117426('0xd')]=qs[_0x117426('0x11')](_['pick'](_0x217d8['query'],_0x38f95a['filters'])),_0x217d8[_0x117426('0x51')][_0x117426('0x4a')]&&(_0x249b78[_0x117426('0xd')]=_['merge'](_0x249b78[_0x117426('0xd')],{[Op['or']]:_['map'](_0x249b78[_0x117426('0x18')],function(_0xd1ae72){const _0x6a18d4=_0x117426,_0x119454={};return _0x119454[_0xd1ae72]={[Op[_0x6a18d4('0x17')]]:'%'+_0x217d8['query'][_0x6a18d4('0x4a')]+'%'},_0x119454;})})),_0x249b78=_[_0x117426('0x25')]({},_0x249b78,_0x217d8[_0x117426('0x2a')]),_0x390d99['getConfigurations'](_0x249b78);})[_0x550b0a('0x21')](function(_0x458c53){const _0x207df8=_0x550b0a;if(_0x458c53)return _0x3e9496=_0x458c53[_0x207df8('0x33')],typeof _0x217d8[_0x207df8('0x51')]['nolimit']===_0x207df8('0x41')&&(_0x249b78['limit']=qs['limit'](_0x217d8[_0x207df8('0x51')][_0x207df8('0x3d')]),_0x249b78[_0x207df8('0x42')]=qs[_0x207df8('0x42')](_0x217d8['query'][_0x207df8('0x42')])),_0x390d99[_0x207df8('0x24')](_0x249b78);})['then'](function(_0x280c07){if(_0x280c07)return _0x280c07?{'count':_0x3e9496,'rows':_0x280c07}:null;})['then'](respondWithResult(_0x3960de,null))[_0x550b0a('0xe')](handleError(_0x3960de,null));},exports[_0x3b4c62('0x23')]=function(_0x24a19f,_0x336ccd){const _0x4a20cf=_0x3b4c62;return _0x24a19f[_0x4a20cf('0x52')]['id']&&delete _0x24a19f[_0x4a20cf('0x52')]['id'],db[_0x4a20cf('0x1c')]['findOne']({'where':{'id':_0x24a19f[_0x4a20cf('0x49')]['id']}})[_0x4a20cf('0x21')](handleEntityNotFound(_0x336ccd,null))[_0x4a20cf('0x21')](function(_0x5f2305){const _0x2dd75b=_0x4a20cf;if(_0x5f2305)return _0x24a19f['body']['AccountId']=_0x5f2305['id'],_0x24a19f[_0x2dd75b('0x52')][_0x2dd75b('0x15')]=integrations[_0x2dd75b('0x31')](_0x24a19f[_0x2dd75b('0x52')][_0x2dd75b('0x44')],_0x24a19f[_0x2dd75b('0x52')]['type']),_0x24a19f[_0x2dd75b('0x52')][_0x2dd75b('0x34')]=integrations['getDescriptions'](_0x24a19f[_0x2dd75b('0x52')][_0x2dd75b('0x44')],_0x24a19f['body'][_0x2dd75b('0x7')]),db['FreshsalesConfiguration'][_0x2dd75b('0x4c')](_0x24a19f['body'],{'include':[{'model':db[_0x2dd75b('0x30')],'as':_0x2dd75b('0x15')},{'model':db[_0x2dd75b('0x30')],'as':_0x2dd75b('0x34')}]});return null;})[_0x4a20cf('0x21')](respondWithResult(_0x336ccd,null))[_0x4a20cf('0xe')](handleError(_0x336ccd,null));},exports['getFields']=function(_0x187de5,_0xf3d5b4){const _0x37017e=_0x3b4c62;let _0x56520d='',_0x1c3455='';return db[_0x37017e('0x1c')][_0x37017e('0x26')]({'where':{'id':_0x187de5[_0x37017e('0x49')]['id']},'attributes':['id',_0x37017e('0x14'),_0x37017e('0x37'),_0x37017e('0x1d')]})[_0x37017e('0x21')](handleEntityNotFound(_0xf3d5b4,null))['then'](function(_0x5ee67d){const _0x15cb59=_0x37017e;if(_0x5ee67d){_0x1c3455=_0x5ee67d[_0x15cb59('0x14')],_0x56520d=_0x5ee67d[_0x15cb59('0x37')];const _0x4792ea=_0x5ee67d[_0x15cb59('0x37')][_0x15cb59('0x13')](-0x1);return _0x4792ea==='/'&&(_0x56520d=_0x56520d[_0x15cb59('0x36')](0x0,_0x56520d[_0x15cb59('0x3c')](_0x4792ea))),rp({'method':_0x15cb59('0x48'),'uri':util[_0x15cb59('0x4e')](_0x15cb59('0x3a'),_0x56520d,_0x15cb59('0x22')),'headers':{'Authorization':_0x15cb59('0x29')+_0x5ee67d[_0x15cb59('0x1d')]},'json':!![]});}})[_0x37017e('0x21')](function(_0x525286){const _0x7c1501=_0x37017e;if(_0x525286){const _0x4851f8=_0x525286[_0x7c1501('0x2e')];let _0x2bfa84=![],_0x361d3a=null;for(_0x361d3a=0x0;_0x361d3a<_0x4851f8[_0x7c1501('0x33')];_0x361d3a++){_0x4851f8[_0x361d3a]['email']===_0x1c3455&&(_0x2bfa84=!![]);}if(_0x2bfa84)return!![];else throw new Error({'statusCode':0x194,'message':_0x7c1501('0x4b')});}})[_0x37017e('0x21')](respondWithResult(_0xf3d5b4,null))[_0x37017e('0xe')](function(_0x181958){const _0x2ba89f=_0x37017e;let _0x478761=_0x187de5['query'][_0x2ba89f('0x8')]?0x1f4:_0x181958[_0x2ba89f('0xf')]||0x1f4;logger['error'](_0x2ba89f('0xb'),_0x2ba89f('0x1f'),_0x478761,JSON[_0x2ba89f('0x9')](_0x181958)),delete _0x181958['name'],_0x478761===0x191&&(_0x478761=0x190),_0xf3d5b4[_0x2ba89f('0x32')](_0x478761)[_0x2ba89f('0x53')](_0x187de5[_0x2ba89f('0x51')]['test']?{'message':_0x2ba89f('0x47'),'statusCode':_0x181958[_0x2ba89f('0xf')]}:_0x181958);});}; \ No newline at end of file +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 diff --git a/server/api/intFreshsalesAccount/intFreshsalesAccount.model.js b/server/api/intFreshsalesAccount/intFreshsalesAccount.model.js index e7d26d0..364280d 100644 --- a/server/api/intFreshsalesAccount/intFreshsalesAccount.model.js +++ b/server/api/intFreshsalesAccount/intFreshsalesAccount.model.js @@ -1 +1 @@ -const a269_0x218f=['exports','FreshsalesAccount','int_freshsales_accounts','define'];(function(_0x2bc939,_0x218ff6){const _0x1afa18=function(_0x4e4e80){while(--_0x4e4e80){_0x2bc939['push'](_0x2bc939['shift']());}};_0x1afa18(++_0x218ff6);}(a269_0x218f,0x69));const a269_0x1afa=function(_0x2bc939,_0x218ff6){_0x2bc939=_0x2bc939-0x0;let _0x1afa18=a269_0x218f[_0x2bc939];return _0x1afa18;};const _0x5ed520=a269_0x1afa;'use strict';const attributes=require('./intFreshsalesAccount.attributes');module[_0x5ed520('0x3')]=function(_0x4e4e80){const _0xfe1a5f=_0x5ed520,_0x2e6076=_0x4e4e80[_0xfe1a5f('0x2')](_0xfe1a5f('0x0'),attributes,{'tableName':_0xfe1a5f('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2e6076;}; \ No newline at end of file +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 diff --git a/server/api/intFreshsalesAccount/intFreshsalesAccount.rpc.js b/server/api/intFreshsalesAccount/intFreshsalesAccount.rpc.js index 490a6f9..3cae476 100644 --- a/server/api/intFreshsalesAccount/intFreshsalesAccount.rpc.js +++ b/server/api/intFreshsalesAccount/intFreshsalesAccount.rpc.js @@ -1 +1 @@ -const a270_0x1980=['message','lodash','findAll','catch','FreshsalesAccount','then','ShowFreshsalesAccount','../../mysqldb','debug','map','stringify','model','raw','info','include','findOne','error','options','GetFreshsalesAccount','attributes'];(function(_0x243c26,_0x19802d){const _0x4d58f2=function(_0x3b315b){while(--_0x3b315b){_0x243c26['push'](_0x243c26['shift']());}};_0x4d58f2(++_0x19802d);}(a270_0x1980,0x1e5));const a270_0x4d58=function(_0x243c26,_0x19802d){_0x243c26=_0x243c26-0x0;let _0x4d58f2=a270_0x1980[_0x243c26];return _0x4d58f2;};const _0x1b1846=a270_0x4d58;'use strict';const _=require(_0x1b1846('0x10')),db=require(_0x1b1846('0x2'))['db'],logger=require('../../config/logger')('rpc');exports[_0x1b1846('0xd')]=function(_0x3b315b){const _0x18fb08=this;return new Promise(function(_0x122645,_0x57115f){const _0x1d5541=a270_0x4d58;return db[_0x1d5541('0x13')][_0x1d5541('0x11')]({'raw':_0x3b315b[_0x1d5541('0xc')]?_0x3b315b[_0x1d5541('0xc')][_0x1d5541('0x7')]===undefined?!![]:![]:!![],'where':_0x3b315b[_0x1d5541('0xc')]?_0x3b315b[_0x1d5541('0xc')]['where']||null:null,'attributes':_0x3b315b[_0x1d5541('0xc')]?_0x3b315b[_0x1d5541('0xc')][_0x1d5541('0xe')]||null:null,'limit':_0x3b315b['options']?_0x3b315b['options']['limit']||null:null,'include':_0x3b315b[_0x1d5541('0xc')]?_0x3b315b[_0x1d5541('0xc')]['include']?_[_0x1d5541('0x4')](_0x3b315b[_0x1d5541('0xc')][_0x1d5541('0x9')],function(_0x241c67){const _0x53a921=_0x1d5541;return{'model':db[_0x241c67['model']],'as':_0x241c67['as'],'attributes':_0x241c67[_0x53a921('0xe')],'include':_0x241c67['include']?_[_0x53a921('0x4')](_0x241c67[_0x53a921('0x9')],function(_0x4a56f7){const _0x33aae6=_0x53a921;return{'model':db[_0x4a56f7[_0x33aae6('0x6')]],'as':_0x4a56f7['as'],'attributes':_0x4a56f7[_0x33aae6('0xe')],'include':_0x4a56f7[_0x33aae6('0x9')]?_['map'](_0x4a56f7['include'],function(_0x41ddb5){const _0x5ad884=_0x33aae6;return{'model':db[_0x41ddb5[_0x5ad884('0x6')]],'as':_0x41ddb5['as'],'attributes':_0x41ddb5[_0x5ad884('0xe')]};}):[]};}):[]};}):[]:[]})[_0x1d5541('0x0')](function(_0x100aff){const _0xc9f0ba=_0x1d5541;logger[_0xc9f0ba('0x8')](_0xc9f0ba('0xd'),_0x3b315b),logger[_0xc9f0ba('0x3')](_0xc9f0ba('0xd'),_0x3b315b,JSON[_0xc9f0ba('0x5')](_0x100aff)),_0x122645(_0x100aff);})[_0x1d5541('0x12')](function(_0x2fb0c3){const _0x580925=_0x1d5541;logger['error'](_0x580925('0xd'),_0x2fb0c3[_0x580925('0xf')],_0x3b315b),_0x57115f(_0x18fb08[_0x580925('0xb')](0x1f4,_0x2fb0c3[_0x580925('0xf')]));});});},exports[_0x1b1846('0x1')]=function(_0xfb05c){const _0x52f4c0=this;return new Promise(function(_0x41ae92,_0x1bddfa){const _0x3bbbbb=a270_0x4d58;return db[_0x3bbbbb('0x13')][_0x3bbbbb('0xa')]({'raw':_0xfb05c[_0x3bbbbb('0xc')]?_0xfb05c[_0x3bbbbb('0xc')][_0x3bbbbb('0x7')]===undefined?!![]:![]:!![],'where':_0xfb05c[_0x3bbbbb('0xc')]?_0xfb05c[_0x3bbbbb('0xc')]['where']||null:null,'attributes':_0xfb05c['options']?_0xfb05c['options'][_0x3bbbbb('0xe')]||null:null,'include':_0xfb05c['options']?_0xfb05c[_0x3bbbbb('0xc')][_0x3bbbbb('0x9')]?_['map'](_0xfb05c['options'][_0x3bbbbb('0x9')],function(_0x1a6232){const _0x441fd2=_0x3bbbbb;return{'model':db[_0x1a6232[_0x441fd2('0x6')]],'as':_0x1a6232['as'],'attributes':_0x1a6232[_0x441fd2('0xe')],'include':_0x1a6232[_0x441fd2('0x9')]?_[_0x441fd2('0x4')](_0x1a6232[_0x441fd2('0x9')],function(_0xdc160){const _0x452a65=_0x441fd2;return{'model':db[_0xdc160[_0x452a65('0x6')]],'as':_0xdc160['as'],'attributes':_0xdc160[_0x452a65('0xe')],'include':_0xdc160[_0x452a65('0x9')]?_['map'](_0xdc160[_0x452a65('0x9')],function(_0x4d8ba8){const _0x4920d8=_0x452a65;return{'model':db[_0x4d8ba8[_0x4920d8('0x6')]],'as':_0x4d8ba8['as'],'attributes':_0x4d8ba8[_0x4920d8('0xe')]};}):[]};}):[]};}):[]:[]})[_0x3bbbbb('0x0')](function(_0x1db0f6){const _0x196da2=_0x3bbbbb;logger['info'](_0x196da2('0x1'),_0xfb05c),logger[_0x196da2('0x3')](_0x196da2('0x1'),_0xfb05c,JSON['stringify'](_0x1db0f6)),_0x41ae92(_0x1db0f6);})[_0x3bbbbb('0x12')](function(_0x1d4988){const _0x14cd7c=_0x3bbbbb;logger[_0x14cd7c('0xb')](_0x14cd7c('0x1'),_0x1d4988[_0x14cd7c('0xf')],_0xfb05c),_0x1bddfa(_0x52f4c0[_0x14cd7c('0xb')](0x1f4,_0x1d4988[_0x14cd7c('0xf')]));});});}; \ No newline at end of file +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 diff --git a/server/api/intFreshsalesConfiguration/index.js b/server/api/intFreshsalesConfiguration/index.js index 16b3b5e..1b1267a 100644 --- a/server/api/intFreshsalesConfiguration/index.js +++ b/server/api/intFreshsalesConfiguration/index.js @@ -1 +1 @@ -const a271_0x3974=['getFields','exports','create','express','/:id/fields','destroy','getSubjects','get','delete','/:id/descriptions','isAuthenticated','show','post','index','update','/:id','getDescriptions','./intFreshsalesConfiguration.controller','/:id/subjects'];(function(_0x57b703,_0x397467){const _0x38fced=function(_0x9e0908){while(--_0x9e0908){_0x57b703['push'](_0x57b703['shift']());}};_0x38fced(++_0x397467);}(a271_0x3974,0xb4));const a271_0x38fc=function(_0x57b703,_0x397467){_0x57b703=_0x57b703-0x0;let _0x38fced=a271_0x3974[_0x57b703];return _0x38fced;};const _0x3fb1fa=a271_0x38fc;'use strict';const express=require(_0x3fb1fa('0xd')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x3fb1fa('0x8'));router[_0x3fb1fa('0x11')]('/',auth['isAuthenticated'](),controller[_0x3fb1fa('0x4')]),router[_0x3fb1fa('0x11')](_0x3fb1fa('0x6'),auth[_0x3fb1fa('0x1')](),controller[_0x3fb1fa('0x2')]),router['get'](_0x3fb1fa('0x9'),auth['isAuthenticated'](),controller[_0x3fb1fa('0x10')]),router[_0x3fb1fa('0x11')](_0x3fb1fa('0x0'),auth[_0x3fb1fa('0x1')](),controller[_0x3fb1fa('0x7')]),router[_0x3fb1fa('0x11')](_0x3fb1fa('0xe'),auth[_0x3fb1fa('0x1')](),controller[_0x3fb1fa('0xa')]),router[_0x3fb1fa('0x3')]('/',auth[_0x3fb1fa('0x1')](),controller[_0x3fb1fa('0xc')]),router['put'](_0x3fb1fa('0x6'),auth[_0x3fb1fa('0x1')](),controller[_0x3fb1fa('0x5')]),router[_0x3fb1fa('0x12')](_0x3fb1fa('0x6'),auth[_0x3fb1fa('0x1')](),controller[_0x3fb1fa('0xf')]),module[_0x3fb1fa('0xb')]=router; \ No newline at end of file +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 diff --git a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.attributes.js b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.attributes.js index cbece71..95e4c0e 100644 --- a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.attributes.js +++ b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.attributes.js @@ -1 +1 @@ -const a272_0x21a2=['exports','sequelize','STRING'];(function(_0x119697,_0x21a209){const _0x4182e1=function(_0xb0ef56){while(--_0xb0ef56){_0x119697['push'](_0x119697['shift']());}};_0x4182e1(++_0x21a209);}(a272_0x21a2,0x14a));const a272_0x4182=function(_0x119697,_0x21a209){_0x119697=_0x119697-0x0;let _0x4182e1=a272_0x21a2[_0x119697];return _0x4182e1;};const _0x5befc=a272_0x4182;'use strict';const Sequelize=require(_0x5befc('0x1'));module[_0x5befc('0x0')]={'name':{'type':Sequelize[_0x5befc('0x2')]},'description':{'type':Sequelize[_0x5befc('0x2')]}}; \ No newline at end of file +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 diff --git a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.controller.js b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.controller.js index 3473126..b5dc242 100644 --- a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.controller.js +++ b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.controller.js @@ -1 +1 @@ -const a273_0x2bde=['like','count','sendStatus','../../config/logger','limit','order','attributes','rows','findOne','end','nolimit','body','params','type','filter','getSubjects','rawAttributes','getDescriptions','undefined','length','create','catch','model','sort','Content-Range','query','include','key','map','pick','then','json','keys','error','FreshsalesConfiguration','includeAll','show','intersection','options','status','fields','where','merge','getFields','name','api','FreshsalesField','offset','set','destroy','sequelize','../../mysqldb','update','fieldName','filters'];(function(_0xbf9662,_0x2bde30){const _0x45ef36=function(_0x41268b){while(--_0x41268b){_0xbf9662['push'](_0xbf9662['shift']());}};_0x45ef36(++_0x2bde30);}(a273_0x2bde,0x1c3));const a273_0x45ef=function(_0xbf9662,_0x2bde30){_0xbf9662=_0xbf9662-0x0;let _0x45ef36=a273_0x2bde[_0xbf9662];return _0x45ef36;};const _0x36d2f5=a273_0x45ef;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x36d2f5('0x2f'))(_0x36d2f5('0x22')),db=require(_0x36d2f5('0x28'))['db'],{Op}=require(_0x36d2f5('0x27'));function respondWithResult(_0x41268b,_0xb33efc){return _0xb33efc=_0xb33efc||0xc8,function(_0x24aa27){const _0x1bc3b8=a273_0x45ef;if(_0x24aa27)return _0x41268b['status'](_0xb33efc)[_0x1bc3b8('0x14')](_0x24aa27);};}function respondWithFilteredResult(_0x4a0d71,_0x49a12c){return function(_0x167b0f){const _0x2eee05=a273_0x45ef;if(_0x167b0f){const _0x311c51=_0x167b0f['count'],_0x38c9b2=_0x49a12c[_0x2eee05('0x24')];let _0x23cb69=_0x49a12c['offset']+_0x49a12c[_0x2eee05('0x30')],_0x564c13;return _0x23cb69>=_0x311c51?(_0x23cb69=_0x311c51,_0x564c13=0xc8):_0x564c13=0xce,_0x4a0d71[_0x2eee05('0x1c')](_0x564c13),_0x4a0d71[_0x2eee05('0x25')](_0x2eee05('0xd'),_0x38c9b2+'-'+_0x23cb69+'/'+_0x311c51)[_0x2eee05('0x14')](_0x167b0f);}return null;};}function saveUpdates(_0x2c87c2){return function(_0x13116d){const _0x4a050a=a273_0x45ef;if(_0x13116d)return _0x13116d[_0x4a050a('0x29')](_0x2c87c2)['then'](function(_0x2d3db5){return _0x2d3db5;});return null;};}function removeEntity(_0x3c1089){return function(_0x507a49){const _0x318bf4=a273_0x45ef;if(_0x507a49)return _0x507a49[_0x318bf4('0x26')]()[_0x318bf4('0x13')](function(){const _0x22dfd7=_0x318bf4;_0x3c1089[_0x22dfd7('0x1c')](0xcc)[_0x22dfd7('0x35')]();});};}function handleEntityNotFound(_0x1d303d){return function(_0x54e424){const _0x35f39d=a273_0x45ef;return!_0x54e424&&_0x1d303d[_0x35f39d('0x2e')](0x194),_0x54e424;};}function handleError(_0x3b7f83,_0xe48f2a){return _0xe48f2a=_0xe48f2a||0x1f4,function(_0x84328c){const _0x50b979=a273_0x45ef;logger[_0x50b979('0x16')](_0x84328c['stack']),_0x84328c[_0x50b979('0x21')]&&delete _0x84328c[_0x50b979('0x21')],_0x3b7f83[_0x50b979('0x1c')](_0xe48f2a)['send'](_0x84328c);};}exports['index']=function(_0x48ccaa,_0x3fb551){const _0x1f991e=_0x36d2f5;let _0x54ef0e={};const _0x493110={},_0x3faa6d={'count':0x0,'rows':[]},_0x1e5577=_[_0x1f991e('0x11')](db[_0x1f991e('0x17')]['rawAttributes'],function(_0x307e8c){const _0x1b7eb3=_0x1f991e;return{'name':_0x307e8c[_0x1b7eb3('0x2a')],'type':_0x307e8c[_0x1b7eb3('0x2')][_0x1b7eb3('0x10')]};});_0x493110[_0x1f991e('0xb')]=_['map'](_0x1e5577,'name'),_0x493110[_0x1f991e('0xe')]=_[_0x1f991e('0x15')](_0x48ccaa[_0x1f991e('0xe')]),_0x493110[_0x1f991e('0x2b')]=_['intersection'](_0x493110[_0x1f991e('0xb')],_0x493110['query']),_0x54ef0e['attributes']=_[_0x1f991e('0x1a')](_0x493110[_0x1f991e('0xb')],qs[_0x1f991e('0x1d')](_0x48ccaa[_0x1f991e('0xe')][_0x1f991e('0x1d')])),_0x54ef0e[_0x1f991e('0x32')]=_0x54ef0e[_0x1f991e('0x32')][_0x1f991e('0x8')]?_0x54ef0e[_0x1f991e('0x32')]:_0x493110[_0x1f991e('0xb')];typeof _0x48ccaa['query']['nolimit']===_0x1f991e('0x7')&&(_0x54ef0e[_0x1f991e('0x30')]=qs[_0x1f991e('0x30')](_0x48ccaa[_0x1f991e('0xe')][_0x1f991e('0x30')]),_0x54ef0e[_0x1f991e('0x24')]=qs[_0x1f991e('0x24')](_0x48ccaa['query'][_0x1f991e('0x24')]));_0x54ef0e['order']=qs[_0x1f991e('0xc')](_0x48ccaa['query']['sort']),_0x54ef0e[_0x1f991e('0x1e')]=qs[_0x1f991e('0x2b')](_[_0x1f991e('0x12')](_0x48ccaa['query'],_0x493110['filters']),_0x1e5577);_0x48ccaa['query'][_0x1f991e('0x3')]&&(_0x54ef0e[_0x1f991e('0x1e')]=_[_0x1f991e('0x1f')](_0x54ef0e[_0x1f991e('0x1e')],{[Op['or']]:_['map'](_0x1e5577,function(_0xa870c){const _0x16dd65=_0x1f991e;if(_0xa870c[_0x16dd65('0x2')]!=='VIRTUAL'){const _0xc9cd14={};return _0xc9cd14[_0xa870c[_0x16dd65('0x21')]]={[Op[_0x16dd65('0x2c')]]:'%'+_0x48ccaa['query'][_0x16dd65('0x3')]+'%'},_0xc9cd14;}})}));_0x54ef0e=_['merge']({},_0x54ef0e,_0x48ccaa['options']);const _0x50c446={'where':_0x54ef0e[_0x1f991e('0x1e')]};return db[_0x1f991e('0x17')][_0x1f991e('0x2d')](_0x50c446)[_0x1f991e('0x13')](function(_0x42648c){const _0x35d4b4=_0x1f991e;return _0x3faa6d[_0x35d4b4('0x2d')]=_0x42648c,_0x48ccaa[_0x35d4b4('0xe')][_0x35d4b4('0x18')]&&(_0x54ef0e[_0x35d4b4('0xf')]=[{'all':!![]}]),db['FreshsalesConfiguration']['findAll'](_0x54ef0e);})['then'](function(_0x3b4e30){const _0x2afb27=_0x1f991e;return _0x3faa6d[_0x2afb27('0x33')]=_0x3b4e30,_0x3faa6d;})[_0x1f991e('0x13')](respondWithFilteredResult(_0x3fb551,_0x54ef0e))[_0x1f991e('0xa')](handleError(_0x3fb551,null));},exports[_0x36d2f5('0x19')]=function(_0x40ff13,_0x1654b0){const _0x3d878c=_0x36d2f5;let _0x393888={'raw':![],'where':{'id':_0x40ff13['params']['id']}};const _0x5b92ed={};return _0x5b92ed['model']=_[_0x3d878c('0x15')](db['FreshsalesConfiguration'][_0x3d878c('0x5')]),_0x5b92ed[_0x3d878c('0xe')]=_[_0x3d878c('0x15')](_0x40ff13[_0x3d878c('0xe')]),_0x5b92ed[_0x3d878c('0x2b')]=_[_0x3d878c('0x1a')](_0x5b92ed[_0x3d878c('0xb')],_0x5b92ed[_0x3d878c('0xe')]),_0x393888[_0x3d878c('0x32')]=_[_0x3d878c('0x1a')](_0x5b92ed[_0x3d878c('0xb')],qs[_0x3d878c('0x1d')](_0x40ff13['query'][_0x3d878c('0x1d')])),_0x393888['attributes']=_0x393888['attributes'][_0x3d878c('0x8')]?_0x393888['attributes']:_0x5b92ed[_0x3d878c('0xb')],_0x40ff13[_0x3d878c('0xe')]['includeAll']&&(_0x393888[_0x3d878c('0xf')]=[{'all':!![]}]),_0x393888=_[_0x3d878c('0x1f')]({},_0x393888,_0x40ff13['options']),db[_0x3d878c('0x17')][_0x3d878c('0x34')](_0x393888)[_0x3d878c('0x13')](handleEntityNotFound(_0x1654b0,null))[_0x3d878c('0x13')](respondWithResult(_0x1654b0,null))[_0x3d878c('0xa')](handleError(_0x1654b0,null));},exports[_0x36d2f5('0x9')]=function(_0x3d31ba,_0x2591aa){const _0x1a6739=_0x36d2f5;return db[_0x1a6739('0x17')][_0x1a6739('0x9')](_0x3d31ba[_0x1a6739('0x0')],{})[_0x1a6739('0x13')](respondWithResult(_0x2591aa,0xc9))[_0x1a6739('0xa')](handleError(_0x2591aa,null));},exports[_0x36d2f5('0x29')]=function(_0x87eb89,_0x219419){const _0x18fbc7=_0x36d2f5;return _0x87eb89[_0x18fbc7('0x0')]['id']&&delete _0x87eb89[_0x18fbc7('0x0')]['id'],db['FreshsalesConfiguration'][_0x18fbc7('0x34')]({'where':{'id':_0x87eb89[_0x18fbc7('0x1')]['id']}})['then'](handleEntityNotFound(_0x219419,null))[_0x18fbc7('0x13')](saveUpdates(_0x87eb89[_0x18fbc7('0x0')],null))[_0x18fbc7('0x13')](respondWithResult(_0x219419,null))[_0x18fbc7('0xa')](handleError(_0x219419,null));},exports[_0x36d2f5('0x26')]=function(_0x3ef27e,_0x1e4fa2){const _0x4ccb5a=_0x36d2f5;return db[_0x4ccb5a('0x17')][_0x4ccb5a('0x34')]({'where':{'id':_0x3ef27e[_0x4ccb5a('0x1')]['id']}})[_0x4ccb5a('0x13')](handleEntityNotFound(_0x1e4fa2,null))[_0x4ccb5a('0x13')](removeEntity(_0x1e4fa2,null))[_0x4ccb5a('0xa')](handleError(_0x1e4fa2,null));},exports[_0x36d2f5('0x4')]=function(_0x22265c,_0x5e0cb5){const _0x4e1d30=_0x36d2f5;let _0x40e62c={};const _0x214262={};let _0x235325,_0x5803b4;return db[_0x4e1d30('0x17')][_0x4e1d30('0x34')]({'where':{'id':_0x22265c[_0x4e1d30('0x1')]['id']}})[_0x4e1d30('0x13')](handleEntityNotFound(_0x5e0cb5,null))[_0x4e1d30('0x13')](function(_0x1d26dd){const _0x136ce6=_0x4e1d30;if(_0x1d26dd)return _0x235325=_0x1d26dd,_0x214262[_0x136ce6('0xb')]=_[_0x136ce6('0x15')](db['FreshsalesField'][_0x136ce6('0x5')]),_0x214262['query']=_['keys'](_0x22265c[_0x136ce6('0xe')]),_0x214262[_0x136ce6('0x2b')]=_[_0x136ce6('0x1a')](_0x214262['model'],_0x214262['query']),_0x40e62c[_0x136ce6('0x32')]=_[_0x136ce6('0x1a')](_0x214262[_0x136ce6('0xb')],qs[_0x136ce6('0x1d')](_0x22265c[_0x136ce6('0xe')][_0x136ce6('0x1d')])),_0x40e62c[_0x136ce6('0x32')]=_0x40e62c[_0x136ce6('0x32')][_0x136ce6('0x8')]?_0x40e62c[_0x136ce6('0x32')]:_0x214262[_0x136ce6('0xb')],_0x40e62c[_0x136ce6('0x31')]=qs[_0x136ce6('0xc')](_0x22265c[_0x136ce6('0xe')]['sort']),_0x40e62c[_0x136ce6('0x1e')]=qs[_0x136ce6('0x2b')](_[_0x136ce6('0x12')](_0x22265c[_0x136ce6('0xe')],_0x214262[_0x136ce6('0x2b')])),_0x22265c['query'][_0x136ce6('0x3')]&&(_0x40e62c[_0x136ce6('0x1e')]=_[_0x136ce6('0x1f')](_0x40e62c['where'],{[Op['or']]:_[_0x136ce6('0x11')](_0x40e62c[_0x136ce6('0x32')],function(_0x18674b){const _0x2697d3=_0x136ce6,_0x327c9f={};return _0x327c9f[_0x18674b]={[Op[_0x2697d3('0x2c')]]:'%'+_0x22265c[_0x2697d3('0xe')]['filter']+'%'},_0x327c9f;})})),_0x40e62c=_[_0x136ce6('0x1f')]({},_0x40e62c,_0x22265c[_0x136ce6('0x1b')]),_0x235325[_0x136ce6('0x4')](_0x40e62c);})['then'](function(_0x2f2abf){const _0x216dc3=_0x4e1d30;if(_0x2f2abf)return _0x5803b4=_0x2f2abf[_0x216dc3('0x8')],typeof _0x22265c[_0x216dc3('0xe')][_0x216dc3('0x36')]===_0x216dc3('0x7')&&(_0x40e62c[_0x216dc3('0x30')]=qs['limit'](_0x22265c['query']['limit']),_0x40e62c['offset']=qs[_0x216dc3('0x24')](_0x22265c[_0x216dc3('0xe')][_0x216dc3('0x24')])),_0x235325[_0x216dc3('0x4')](_0x40e62c);})[_0x4e1d30('0x13')](function(_0x3785cb){if(_0x3785cb)return _0x3785cb?{'count':_0x5803b4,'rows':_0x3785cb}:null;})['then'](respondWithResult(_0x5e0cb5,null))['catch'](handleError(_0x5e0cb5,null));},exports[_0x36d2f5('0x6')]=function(_0x80e93e,_0x5d3c13){const _0x7bbbb8=_0x36d2f5;let _0xdf21c8={};const _0x3f896c={};let _0x7c6dcf,_0x53113d;return db[_0x7bbbb8('0x17')][_0x7bbbb8('0x34')]({'where':{'id':_0x80e93e[_0x7bbbb8('0x1')]['id']}})['then'](handleEntityNotFound(_0x5d3c13,null))[_0x7bbbb8('0x13')](function(_0x37d140){const _0x43e99=_0x7bbbb8;if(_0x37d140)return _0x7c6dcf=_0x37d140,_0x3f896c[_0x43e99('0xb')]=_[_0x43e99('0x15')](db[_0x43e99('0x23')][_0x43e99('0x5')]),_0x3f896c['query']=_['keys'](_0x80e93e[_0x43e99('0xe')]),_0x3f896c[_0x43e99('0x2b')]=_[_0x43e99('0x1a')](_0x3f896c[_0x43e99('0xb')],_0x3f896c[_0x43e99('0xe')]),_0xdf21c8[_0x43e99('0x32')]=_['intersection'](_0x3f896c[_0x43e99('0xb')],qs['fields'](_0x80e93e[_0x43e99('0xe')]['fields'])),_0xdf21c8['attributes']=_0xdf21c8['attributes']['length']?_0xdf21c8[_0x43e99('0x32')]:_0x3f896c[_0x43e99('0xb')],_0xdf21c8[_0x43e99('0x31')]=qs[_0x43e99('0xc')](_0x80e93e[_0x43e99('0xe')][_0x43e99('0xc')]),_0xdf21c8['where']=qs[_0x43e99('0x2b')](_['pick'](_0x80e93e[_0x43e99('0xe')],_0x3f896c['filters'])),_0x80e93e[_0x43e99('0xe')][_0x43e99('0x3')]&&(_0xdf21c8['where']=_[_0x43e99('0x1f')](_0xdf21c8[_0x43e99('0x1e')],{[Op['or']]:_[_0x43e99('0x11')](_0xdf21c8['attributes'],function(_0x25721e){const _0x4c226f=_0x43e99,_0x45feb9={};return _0x45feb9[_0x25721e]={[Op[_0x4c226f('0x2c')]]:'%'+_0x80e93e['query']['filter']+'%'},_0x45feb9;})})),_0xdf21c8=_[_0x43e99('0x1f')]({},_0xdf21c8,_0x80e93e['options']),_0x7c6dcf[_0x43e99('0x6')](_0xdf21c8);})['then'](function(_0x3a4f42){const _0xbfaf94=_0x7bbbb8;if(_0x3a4f42)return _0x53113d=_0x3a4f42[_0xbfaf94('0x8')],typeof _0x80e93e[_0xbfaf94('0xe')]['nolimit']===_0xbfaf94('0x7')&&(_0xdf21c8[_0xbfaf94('0x30')]=qs[_0xbfaf94('0x30')](_0x80e93e[_0xbfaf94('0xe')][_0xbfaf94('0x30')]),_0xdf21c8['offset']=qs[_0xbfaf94('0x24')](_0x80e93e['query'][_0xbfaf94('0x24')])),_0x7c6dcf['getDescriptions'](_0xdf21c8);})[_0x7bbbb8('0x13')](function(_0x4a714a){if(_0x4a714a)return _0x4a714a?{'count':_0x53113d,'rows':_0x4a714a}:null;})['then'](respondWithResult(_0x5d3c13,null))[_0x7bbbb8('0xa')](handleError(_0x5d3c13,null));},exports[_0x36d2f5('0x20')]=function(_0x1e7cd2,_0x1ec231){const _0x140e49=_0x36d2f5;let _0x5d4db3={};const _0x40c516={};let _0x376ca5,_0x583539;return db[_0x140e49('0x17')][_0x140e49('0x34')]({'where':{'id':_0x1e7cd2[_0x140e49('0x1')]['id']}})[_0x140e49('0x13')](handleEntityNotFound(_0x1ec231,null))[_0x140e49('0x13')](function(_0x85e335){const _0x362c8c=_0x140e49;if(_0x85e335)return _0x376ca5=_0x85e335,_0x40c516[_0x362c8c('0xb')]=_[_0x362c8c('0x15')](db[_0x362c8c('0x23')][_0x362c8c('0x5')]),_0x40c516[_0x362c8c('0xe')]=_[_0x362c8c('0x15')](_0x1e7cd2[_0x362c8c('0xe')]),_0x40c516['filters']=_['intersection'](_0x40c516[_0x362c8c('0xb')],_0x40c516['query']),_0x5d4db3[_0x362c8c('0x32')]=_[_0x362c8c('0x1a')](_0x40c516['model'],qs[_0x362c8c('0x1d')](_0x1e7cd2[_0x362c8c('0xe')][_0x362c8c('0x1d')])),_0x5d4db3[_0x362c8c('0x32')]=_0x5d4db3[_0x362c8c('0x32')]['length']?_0x5d4db3['attributes']:_0x40c516['model'],_0x5d4db3[_0x362c8c('0x31')]=qs[_0x362c8c('0xc')](_0x1e7cd2[_0x362c8c('0xe')][_0x362c8c('0xc')]),_0x5d4db3[_0x362c8c('0x1e')]=qs[_0x362c8c('0x2b')](_['pick'](_0x1e7cd2[_0x362c8c('0xe')],_0x40c516[_0x362c8c('0x2b')])),_0x1e7cd2[_0x362c8c('0xe')][_0x362c8c('0x3')]&&(_0x5d4db3['where']=_['merge'](_0x5d4db3['where'],{[Op['or']]:_[_0x362c8c('0x11')](_0x5d4db3[_0x362c8c('0x32')],function(_0x3129cb){const _0x1ebcbf=_0x362c8c,_0x56a9c2={};return _0x56a9c2[_0x3129cb]={[Op[_0x1ebcbf('0x2c')]]:'%'+_0x1e7cd2[_0x1ebcbf('0xe')]['filter']+'%'},_0x56a9c2;})})),_0x5d4db3=_[_0x362c8c('0x1f')]({},_0x5d4db3,_0x1e7cd2[_0x362c8c('0x1b')]),_0x376ca5[_0x362c8c('0x20')](_0x5d4db3);})['then'](function(_0x41db33){const _0x5a0def=_0x140e49;if(_0x41db33)return _0x583539=_0x41db33[_0x5a0def('0x8')],typeof _0x1e7cd2[_0x5a0def('0xe')][_0x5a0def('0x36')]===_0x5a0def('0x7')&&(_0x5d4db3[_0x5a0def('0x30')]=qs[_0x5a0def('0x30')](_0x1e7cd2[_0x5a0def('0xe')][_0x5a0def('0x30')]),_0x5d4db3['offset']=qs[_0x5a0def('0x24')](_0x1e7cd2[_0x5a0def('0xe')][_0x5a0def('0x24')])),_0x376ca5[_0x5a0def('0x20')](_0x5d4db3);})[_0x140e49('0x13')](function(_0x5027e0){if(_0x5027e0)return _0x5027e0?{'count':_0x583539,'rows':_0x5027e0}:null;})[_0x140e49('0x13')](respondWithResult(_0x1ec231,null))[_0x140e49('0xa')](handleError(_0x1ec231,null));}; \ No newline at end of file +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 diff --git a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.model.js b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.model.js index 6608eca..88e656b 100644 --- a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.model.js +++ b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.model.js @@ -1 +1 @@ -const a274_0x4898=['int_freshsales_configurations','FreshsalesConfiguration','./intFreshsalesConfiguration.attributes'];(function(_0x46708f,_0x4898f3){const _0x41ea3d=function(_0x52498e){while(--_0x52498e){_0x46708f['push'](_0x46708f['shift']());}};_0x41ea3d(++_0x4898f3);}(a274_0x4898,0x144));const a274_0x41ea=function(_0x46708f,_0x4898f3){_0x46708f=_0x46708f-0x0;let _0x41ea3d=a274_0x4898[_0x46708f];return _0x41ea3d;};const _0x3f80d0=a274_0x41ea;'use strict';const attributes=require(_0x3f80d0('0x2'));module['exports']=function(_0x52498e){const _0xa5724f=_0x3f80d0,_0x2293d9=_0x52498e['define'](_0xa5724f('0x1'),attributes,{'tableName':_0xa5724f('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2293d9;}; \ No newline at end of file +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 diff --git a/server/api/intFreshsalesField/index.js b/server/api/intFreshsalesField/index.js index 31b050d..1b07cee 100644 --- a/server/api/intFreshsalesField/index.js +++ b/server/api/intFreshsalesField/index.js @@ -1 +1 @@ -const a275_0x5125=['express','get','./intFreshsalesField.controller','exports','destroy','/:id','show','isAuthenticated','post','index','put','Router','../../components/auth/service'];(function(_0xa2ba61,_0x5125ac){const _0x4d3c29=function(_0x245ea2){while(--_0x245ea2){_0xa2ba61['push'](_0xa2ba61['shift']());}};_0x4d3c29(++_0x5125ac);}(a275_0x5125,0x1e4));const a275_0x4d3c=function(_0xa2ba61,_0x5125ac){_0xa2ba61=_0xa2ba61-0x0;let _0x4d3c29=a275_0x5125[_0xa2ba61];return _0x4d3c29;};const _0x4097d3=a275_0x4d3c;'use strict';const express=require(_0x4097d3('0xa')),router=express[_0x4097d3('0x8')](),auth=require(_0x4097d3('0x9')),controller=require(_0x4097d3('0xc'));router[_0x4097d3('0xb')]('/',auth[_0x4097d3('0x4')](),controller[_0x4097d3('0x6')]),router[_0x4097d3('0xb')]('/:id',auth[_0x4097d3('0x4')](),controller[_0x4097d3('0x3')]),router[_0x4097d3('0x5')]('/',auth[_0x4097d3('0x4')](),controller['create']),router[_0x4097d3('0x7')]('/:id',auth[_0x4097d3('0x4')](),controller['update']),router['delete'](_0x4097d3('0x2'),auth[_0x4097d3('0x4')](),controller[_0x4097d3('0x1')]),module[_0x4097d3('0x0')]=router; \ No newline at end of file +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 diff --git a/server/api/intFreshsalesField/intFreshsalesField.attributes.js b/server/api/intFreshsalesField/intFreshsalesField.attributes.js index 74cacd6..8cf0d71 100644 --- a/server/api/intFreshsalesField/intFreshsalesField.attributes.js +++ b/server/api/intFreshsalesField/intFreshsalesField.attributes.js @@ -1 +1 @@ -const a276_0x112e=['customVariable','variable','STRING','string','BOOLEAN','exports','keyValue','ENUM'];(function(_0x1d91d0,_0x112e41){const _0x5e4ad5=function(_0x47fa2e){while(--_0x47fa2e){_0x1d91d0['push'](_0x1d91d0['shift']());}};_0x5e4ad5(++_0x112e41);}(a276_0x112e,0x9d));const a276_0x5e4a=function(_0x1d91d0,_0x112e41){_0x1d91d0=_0x1d91d0-0x0;let _0x5e4ad5=a276_0x112e[_0x1d91d0];return _0x5e4ad5;};const _0x745fd3=a276_0x5e4a;'use strict';const Sequelize=require('sequelize');module[_0x745fd3('0x0')]={'type':{'type':Sequelize[_0x745fd3('0x2')](_0x745fd3('0x6'),'variable',_0x745fd3('0x3'),_0x745fd3('0x1')),'defaultValue':_0x745fd3('0x6')},'content':{'type':Sequelize[_0x745fd3('0x5')]},'key':{'type':Sequelize[_0x745fd3('0x5')]},'keyType':{'type':Sequelize[_0x745fd3('0x2')]('string',_0x745fd3('0x4'),_0x745fd3('0x3'))},'keyContent':{'type':Sequelize[_0x745fd3('0x5')]},'idField':{'type':Sequelize['STRING']},'nameField':{'type':Sequelize[_0x745fd3('0x5')]},'customField':{'type':Sequelize[_0x745fd3('0x7')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x745fd3('0x5')]}}; \ No newline at end of file +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 diff --git a/server/api/intFreshsalesField/intFreshsalesField.controller.js b/server/api/intFreshsalesField/intFreshsalesField.controller.js index 4044985..38374d6 100644 --- a/server/api/intFreshsalesField/intFreshsalesField.controller.js +++ b/server/api/intFreshsalesField/intFreshsalesField.controller.js @@ -1 +1 @@ -const a277_0x57c4=['length','map','rawAttributes','rows','fields','end','json','params','filters','destroy','findAll','options','where','attributes','sort','pick','send','type','api','like','include','sequelize','query','nolimit','undefined','merge','name','limit','intersection','catch','show','then','fieldName','order','count','offset','VIRTUAL','index','error','findOne','includeAll','../../mysqldb','../../components/parsers/qs','status','key','model','FreshsalesField','body','stack','lodash','set','filter','keys','create'];(function(_0x36890e,_0x57c49f){const _0x2b17a3=function(_0x24cf2c){while(--_0x24cf2c){_0x36890e['push'](_0x36890e['shift']());}};_0x2b17a3(++_0x57c49f);}(a277_0x57c4,0x1ba));const a277_0x2b17=function(_0x36890e,_0x57c49f){_0x36890e=_0x36890e-0x0;let _0x2b17a3=a277_0x57c4[_0x36890e];return _0x2b17a3;};const _0x213078=a277_0x2b17;'use strict';const _=require(_0x213078('0x27')),qs=require(_0x213078('0x20')),logger=require('../../config/logger')(_0x213078('0x8')),db=require(_0x213078('0x1f'))['db'],{Op}=require(_0x213078('0xb'));function respondWithResult(_0x24cf2c,_0x550b21){return _0x550b21=_0x550b21||0xc8,function(_0x3c4aec){const _0x4c10a1=a277_0x2b17;if(_0x3c4aec)return _0x24cf2c['status'](_0x550b21)[_0x4c10a1('0x32')](_0x3c4aec);};}function respondWithFilteredResult(_0x1e9bee,_0x2337dc){return function(_0x139fc6){const _0x1239b5=a277_0x2b17;if(_0x139fc6){const _0x2e1829=_0x139fc6['count'],_0x89f6a0=_0x2337dc[_0x1239b5('0x19')];let _0x136701=_0x2337dc[_0x1239b5('0x19')]+_0x2337dc[_0x1239b5('0x11')],_0x56ff85;return _0x136701>=_0x2e1829?(_0x136701=_0x2e1829,_0x56ff85=0xc8):_0x56ff85=0xce,_0x1e9bee[_0x1239b5('0x21')](_0x56ff85),_0x1e9bee[_0x1239b5('0x28')]('Content-Range',_0x89f6a0+'-'+_0x136701+'/'+_0x2e1829)[_0x1239b5('0x32')](_0x139fc6);}return null;};}function saveUpdates(_0x256a1d){return function(_0x34ca6e){const _0x11994e=a277_0x2b17;if(_0x34ca6e)return _0x34ca6e['update'](_0x256a1d)[_0x11994e('0x15')](function(_0x12744d){return _0x12744d;});return null;};}function removeEntity(_0x3b3464){return function(_0x3447f4){const _0x2b06cc=a277_0x2b17;if(_0x3447f4)return _0x3447f4['destroy']()[_0x2b06cc('0x15')](function(){const _0x3617a0=_0x2b06cc;_0x3b3464[_0x3617a0('0x21')](0xcc)[_0x3617a0('0x31')]();});};}function handleEntityNotFound(_0x3490b6){return function(_0x488d23){return!_0x488d23&&_0x3490b6['sendStatus'](0x194),_0x488d23;};}function handleError(_0x536926,_0x4041d3){return _0x4041d3=_0x4041d3||0x1f4,function(_0x5d6f15){const _0x3e60d9=a277_0x2b17;logger[_0x3e60d9('0x1c')](_0x5d6f15[_0x3e60d9('0x26')]),_0x5d6f15[_0x3e60d9('0x10')]&&delete _0x5d6f15['name'],_0x536926[_0x3e60d9('0x21')](_0x4041d3)[_0x3e60d9('0x6')](_0x5d6f15);};}exports[_0x213078('0x1b')]=function(_0x15f058,_0x2dc4a2){const _0x5c1971=_0x213078;let _0x32de29={};const _0x5db05a={},_0x288ef2={'count':0x0,'rows':[]},_0x58c7e8=_[_0x5c1971('0x2d')](db['FreshsalesField'][_0x5c1971('0x2e')],function(_0x5a3a11){const _0x3b001d=_0x5c1971;return{'name':_0x5a3a11[_0x3b001d('0x16')],'type':_0x5a3a11[_0x3b001d('0x7')][_0x3b001d('0x22')]};});_0x5db05a[_0x5c1971('0x23')]=_[_0x5c1971('0x2d')](_0x58c7e8,_0x5c1971('0x10')),_0x5db05a[_0x5c1971('0xc')]=_[_0x5c1971('0x2a')](_0x15f058['query']),_0x5db05a['filters']=_[_0x5c1971('0x12')](_0x5db05a['model'],_0x5db05a[_0x5c1971('0xc')]),_0x32de29[_0x5c1971('0x3')]=_[_0x5c1971('0x12')](_0x5db05a[_0x5c1971('0x23')],qs[_0x5c1971('0x30')](_0x15f058[_0x5c1971('0xc')]['fields'])),_0x32de29[_0x5c1971('0x3')]=_0x32de29[_0x5c1971('0x3')]['length']?_0x32de29[_0x5c1971('0x3')]:_0x5db05a[_0x5c1971('0x23')];typeof _0x15f058['query'][_0x5c1971('0xd')]===_0x5c1971('0xe')&&(_0x32de29['limit']=qs['limit'](_0x15f058[_0x5c1971('0xc')][_0x5c1971('0x11')]),_0x32de29[_0x5c1971('0x19')]=qs['offset'](_0x15f058[_0x5c1971('0xc')][_0x5c1971('0x19')]));_0x32de29[_0x5c1971('0x17')]=qs[_0x5c1971('0x4')](_0x15f058[_0x5c1971('0xc')][_0x5c1971('0x4')]),_0x32de29['where']=qs[_0x5c1971('0x34')](_[_0x5c1971('0x5')](_0x15f058[_0x5c1971('0xc')],_0x5db05a[_0x5c1971('0x34')]),_0x58c7e8);_0x15f058[_0x5c1971('0xc')][_0x5c1971('0x29')]&&(_0x32de29[_0x5c1971('0x2')]=_[_0x5c1971('0xf')](_0x32de29[_0x5c1971('0x2')],{[Op['or']]:_['map'](_0x58c7e8,function(_0x238ec3){const _0x5c81c0=_0x5c1971;if(_0x238ec3['type']!==_0x5c81c0('0x1a')){const _0x228507={};return _0x228507[_0x238ec3[_0x5c81c0('0x10')]]={[Op[_0x5c81c0('0x9')]]:'%'+_0x15f058['query'][_0x5c81c0('0x29')]+'%'},_0x228507;}})}));_0x32de29=_[_0x5c1971('0xf')]({},_0x32de29,_0x15f058['options']);const _0x36ab45={'where':_0x32de29['where']};return db['FreshsalesField']['count'](_0x36ab45)[_0x5c1971('0x15')](function(_0x25f217){const _0x3ee8bd=_0x5c1971;return _0x288ef2[_0x3ee8bd('0x18')]=_0x25f217,_0x15f058[_0x3ee8bd('0xc')][_0x3ee8bd('0x1e')]&&(_0x32de29[_0x3ee8bd('0xa')]=[{'all':!![]}]),db[_0x3ee8bd('0x24')][_0x3ee8bd('0x0')](_0x32de29);})[_0x5c1971('0x15')](function(_0x3050f8){const _0x30d1fc=_0x5c1971;return _0x288ef2[_0x30d1fc('0x2f')]=_0x3050f8,_0x288ef2;})[_0x5c1971('0x15')](respondWithFilteredResult(_0x2dc4a2,_0x32de29))[_0x5c1971('0x13')](handleError(_0x2dc4a2,null));},exports[_0x213078('0x14')]=function(_0x5f51bf,_0x38fcc0){const _0x1ab7d3=_0x213078;let _0x10a7d7={'raw':!![],'where':{'id':_0x5f51bf[_0x1ab7d3('0x33')]['id']}};const _0x3f6226={};return _0x3f6226['model']=_[_0x1ab7d3('0x2a')](db[_0x1ab7d3('0x24')][_0x1ab7d3('0x2e')]),_0x3f6226[_0x1ab7d3('0xc')]=_[_0x1ab7d3('0x2a')](_0x5f51bf[_0x1ab7d3('0xc')]),_0x3f6226['filters']=_[_0x1ab7d3('0x12')](_0x3f6226[_0x1ab7d3('0x23')],_0x3f6226[_0x1ab7d3('0xc')]),_0x10a7d7['attributes']=_[_0x1ab7d3('0x12')](_0x3f6226[_0x1ab7d3('0x23')],qs[_0x1ab7d3('0x30')](_0x5f51bf[_0x1ab7d3('0xc')][_0x1ab7d3('0x30')])),_0x10a7d7[_0x1ab7d3('0x3')]=_0x10a7d7['attributes'][_0x1ab7d3('0x2c')]?_0x10a7d7[_0x1ab7d3('0x3')]:_0x3f6226[_0x1ab7d3('0x23')],_0x5f51bf['query'][_0x1ab7d3('0x1e')]&&(_0x10a7d7[_0x1ab7d3('0xa')]=[{'all':!![]}]),_0x10a7d7=_[_0x1ab7d3('0xf')]({},_0x10a7d7,_0x5f51bf[_0x1ab7d3('0x1')]),db[_0x1ab7d3('0x24')][_0x1ab7d3('0x1d')](_0x10a7d7)['then'](handleEntityNotFound(_0x38fcc0,null))['then'](respondWithResult(_0x38fcc0,null))[_0x1ab7d3('0x13')](handleError(_0x38fcc0,null));},exports[_0x213078('0x2b')]=function(_0x14c6c7,_0x4ae00b){const _0x2ba8f0=_0x213078;return db[_0x2ba8f0('0x24')][_0x2ba8f0('0x2b')](_0x14c6c7[_0x2ba8f0('0x25')],{})[_0x2ba8f0('0x15')](respondWithResult(_0x4ae00b,0xc9))[_0x2ba8f0('0x13')](handleError(_0x4ae00b,null));},exports['update']=function(_0x16561e,_0x14546b){const _0x3c5b0d=_0x213078;return _0x16561e[_0x3c5b0d('0x25')]['id']&&delete _0x16561e[_0x3c5b0d('0x25')]['id'],db[_0x3c5b0d('0x24')][_0x3c5b0d('0x1d')]({'where':{'id':_0x16561e['params']['id']}})[_0x3c5b0d('0x15')](handleEntityNotFound(_0x14546b,null))[_0x3c5b0d('0x15')](saveUpdates(_0x16561e[_0x3c5b0d('0x25')],null))[_0x3c5b0d('0x15')](respondWithResult(_0x14546b,null))[_0x3c5b0d('0x13')](handleError(_0x14546b,null));},exports[_0x213078('0x35')]=function(_0x22b601,_0x472011){const _0x5e1310=_0x213078;return db[_0x5e1310('0x24')]['findOne']({'where':{'id':_0x22b601[_0x5e1310('0x33')]['id']}})[_0x5e1310('0x15')](handleEntityNotFound(_0x472011,null))[_0x5e1310('0x15')](removeEntity(_0x472011,null))['catch'](handleError(_0x472011,null));}; \ No newline at end of file +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 diff --git a/server/api/intFreshsalesField/intFreshsalesField.model.js b/server/api/intFreshsalesField/intFreshsalesField.model.js index 0a6b10a..064f870 100644 --- a/server/api/intFreshsalesField/intFreshsalesField.model.js +++ b/server/api/intFreshsalesField/intFreshsalesField.model.js @@ -1 +1 @@ -const a278_0x5486=['FreshsalesField','define','int_freshsales_fields','FieldId','freshsales_unique_index','./intFreshsalesField.attributes','exports'];(function(_0x534865,_0x548669){const _0x2cf279=function(_0x270cc5){while(--_0x270cc5){_0x534865['push'](_0x534865['shift']());}};_0x2cf279(++_0x548669);}(a278_0x5486,0x8b));const a278_0x2cf2=function(_0x534865,_0x548669){_0x534865=_0x534865-0x0;let _0x2cf279=a278_0x5486[_0x534865];return _0x2cf279;};const _0x3067f1=a278_0x2cf2;'use strict';const attributes=require(_0x3067f1('0x6'));module[_0x3067f1('0x0')]=function(_0x270cc5){const _0xe446cd=_0x3067f1,_0x3c83be=_0x270cc5[_0xe446cd('0x2')](_0xe446cd('0x1'),attributes,{'tableName':_0xe446cd('0x3'),'paranoid':![],'indexes':[{'name':_0xe446cd('0x5'),'fields':['idField',_0xe446cd('0x4')],'unique':!![]}],'timestamps':!![]});return _0x3c83be;}; \ No newline at end of file +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 diff --git a/server/api/intSalesforceAccount/index.js b/server/api/intSalesforceAccount/index.js index 789fe17..41948eb 100644 --- a/server/api/intSalesforceAccount/index.js +++ b/server/api/intSalesforceAccount/index.js @@ -1 +1 @@ -const a279_0x46c8=['getConfigurations','Router','get','../../components/auth/service','exports','/:id/fields','post','update','getFields','delete','show','express','/:id/configurations','put','/:id','index','isAuthenticated','addConfiguration'];(function(_0x2b76f1,_0x46c8a7){const _0x3fbcf3=function(_0x6cd7b8){while(--_0x6cd7b8){_0x2b76f1['push'](_0x2b76f1['shift']());}};_0x3fbcf3(++_0x46c8a7);}(a279_0x46c8,0x1d7));const a279_0x3fbc=function(_0x2b76f1,_0x46c8a7){_0x2b76f1=_0x2b76f1-0x0;let _0x3fbcf3=a279_0x46c8[_0x2b76f1];return _0x3fbcf3;};const _0x3276de=a279_0x3fbc;'use strict';const express=require(_0x3276de('0x8')),router=express[_0x3276de('0x10')](),auth=require(_0x3276de('0x0')),controller=require('./intSalesforceAccount.controller');router[_0x3276de('0x11')]('/',auth[_0x3276de('0xd')](),controller[_0x3276de('0xc')]),router['get'](_0x3276de('0xb'),auth['isAuthenticated'](),controller[_0x3276de('0x7')]),router['get'](_0x3276de('0x9'),auth[_0x3276de('0xd')](),controller[_0x3276de('0xf')]),router[_0x3276de('0x11')](_0x3276de('0x2'),auth[_0x3276de('0xd')](),controller[_0x3276de('0x5')]),router[_0x3276de('0x3')]('/',auth[_0x3276de('0xd')](),controller['create']),router[_0x3276de('0x3')]('/:id/configurations',auth[_0x3276de('0xd')](),controller[_0x3276de('0xe')]),router[_0x3276de('0xa')](_0x3276de('0xb'),auth[_0x3276de('0xd')](),controller[_0x3276de('0x4')]),router[_0x3276de('0x6')](_0x3276de('0xb'),auth[_0x3276de('0xd')](),controller['destroy']),module[_0x3276de('0x1')]=router; \ No newline at end of file +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 diff --git a/server/api/intSalesforceAccount/intSalesforceAccount.attributes.js b/server/api/intSalesforceAccount/intSalesforceAccount.attributes.js index bdbb5f4..e87c0f0 100644 --- a/server/api/intSalesforceAccount/intSalesforceAccount.attributes.js +++ b/server/api/intSalesforceAccount/intSalesforceAccount.attributes.js @@ -1 +1 @@ -const a280_0x37e7=['STRING','sequelize','exports','newTab','integrationTab'];(function(_0xb37fce,_0x37e7e8){const _0x3ffdd2=function(_0x2ff23c){while(--_0x2ff23c){_0xb37fce['push'](_0xb37fce['shift']());}};_0x3ffdd2(++_0x37e7e8);}(a280_0x37e7,0x199));const a280_0x3ffd=function(_0xb37fce,_0x37e7e8){_0xb37fce=_0xb37fce-0x0;let _0x3ffdd2=a280_0x37e7[_0xb37fce];return _0x3ffdd2;};const _0x257b0d=a280_0x3ffd;'use strict';const Sequelize=require(_0x257b0d('0x2'));module[_0x257b0d('0x3')]={'name':{'type':Sequelize[_0x257b0d('0x1')]},'description':{'type':Sequelize[_0x257b0d('0x1')]},'username':{'type':Sequelize[_0x257b0d('0x1')],'unique':'username'},'remoteUri':{'type':Sequelize[_0x257b0d('0x1')]},'password':{'type':Sequelize[_0x257b0d('0x1')]},'clientId':{'type':Sequelize['STRING']},'clientSecret':{'type':Sequelize[_0x257b0d('0x1')]},'securityToken':{'type':Sequelize['STRING']},'serverUrl':{'type':Sequelize[_0x257b0d('0x1')]},'type':{'type':Sequelize['ENUM'](_0x257b0d('0x0'),_0x257b0d('0x4')),'defaultValue':_0x257b0d('0x0')}}; \ No newline at end of file +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 diff --git a/server/api/intSalesforceAccount/intSalesforceAccount.controller.js b/server/api/intSalesforceAccount/intSalesforceAccount.controller.js index e07b668..030352e 100644 --- a/server/api/intSalesforceAccount/intSalesforceAccount.controller.js +++ b/server/api/intSalesforceAccount/intSalesforceAccount.controller.js @@ -1 +1 @@ -const a281_0x59a9=['merge','getFields,\x20%s,\x20%s,\x20%s','SuppliedName','undefined','intersection','IsArchived','statusCode','pick','stringify','stack','test','end','slice','getSubjects','username','AccountId','send','clientSecret','CallDisposition','count','offset','lastIndexOf','query','then','like','Status','channel','jsforce','../../config/logger','Origin','CallDurationInSeconds','fields','login','Type','SalesforceField','sendStatus','clientId','filters','CallType','update','SuppliedCompany','getConfigurations','keys','destroy','order','where','body','rows','fieldName','catch','Descriptions','error','findAll','json','getDescriptions','addConfiguration','../../components/integrations/configuration','nolimit','length','sequelize','SalesforceConfiguration','map','remoteUri','Subjects','filter','findOne','include','Wrong\x20credentials','includeAll','password','concat','remove','model','ticketType','securityToken','True','label','type','api','limit','Connection','picklistValues','attributes','VIRTUAL','Case','includes','isNil','Priority','sobject','key','rawAttributes','IsEscalated','SalesforceAccount','lodash','options','name','params','../../mysqldb','status','getFields','describe','sort','substring','Reason','Task','create'];(function(_0x3978fd,_0x59a947){const _0x338194=function(_0x4f0ec6){while(--_0x4f0ec6){_0x3978fd['push'](_0x3978fd['shift']());}};_0x338194(++_0x59a947);}(a281_0x59a9,0x11c));const a281_0x3381=function(_0x3978fd,_0x59a947){_0x3978fd=_0x3978fd-0x0;let _0x338194=a281_0x59a9[_0x3978fd];return _0x338194;};const _0x2c54f4=a281_0x3381;'use strict';const _=require(_0x2c54f4('0x15')),jsforce=require(_0x2c54f4('0x3d')),qs=require('../../components/parsers/qs'),logger=require(_0x2c54f4('0x3e'))(_0x2c54f4('0x6')),db=require(_0x2c54f4('0x19'))['db'],{Op}=require(_0x2c54f4('0x5d')),integrations=require(_0x2c54f4('0x5a'));function respondWithResult(_0x4f0ec6,_0x2d9ab2){return _0x2d9ab2=_0x2d9ab2||0xc8,function(_0x43dafe){const _0x12d7c1=a281_0x3381;if(_0x43dafe)return _0x4f0ec6[_0x12d7c1('0x1a')](_0x2d9ab2)[_0x12d7c1('0x57')](_0x43dafe);};}function respondWithFilteredResult(_0x4ecba0,_0x2780e6){return function(_0x1179af){const _0xfa2579=a281_0x3381;if(_0x1179af){const _0x31467f=_0x1179af[_0xfa2579('0x35')],_0x50b703=_0x2780e6[_0xfa2579('0x36')];let _0x445be2=_0x2780e6[_0xfa2579('0x36')]+_0x2780e6[_0xfa2579('0x7')],_0x202692;return _0x445be2>=_0x31467f?(_0x445be2=_0x31467f,_0x202692=0xc8):_0x202692=0xce,_0x4ecba0['status'](_0x202692),_0x4ecba0['set']('Content-Range',_0x50b703+'-'+_0x445be2+'/'+_0x31467f)[_0xfa2579('0x57')](_0x1179af);}return null;};}function saveUpdates(_0x1860b4){return function(_0x467aef){const _0x24c60d=a281_0x3381;if(_0x467aef)return _0x467aef['update'](_0x1860b4)[_0x24c60d('0x39')](function(_0x2cd307){return _0x2cd307;});return null;};}function removeEntity(_0x540987){return function(_0x48c396){const _0x123f5b=a281_0x3381;if(_0x48c396)return _0x48c396[_0x123f5b('0x4d')]()[_0x123f5b('0x39')](function(){const _0x267a3f=_0x123f5b;_0x540987['status'](0xcc)[_0x267a3f('0x2d')]();});};}function handleEntityNotFound(_0x443063){return function(_0x5245e8){const _0x42a70d=a281_0x3381;return!_0x5245e8&&_0x443063[_0x42a70d('0x45')](0x194),_0x5245e8;};}function handleError(_0x4dc866,_0x2c2b4b){return _0x2c2b4b=_0x2c2b4b||0x1f4,function(_0x4a185b){const _0x23f9dc=a281_0x3381;logger[_0x23f9dc('0x55')](_0x4a185b[_0x23f9dc('0x2b')]),_0x4a185b[_0x23f9dc('0x17')]&&delete _0x4a185b[_0x23f9dc('0x17')],_0x4dc866['status'](_0x2c2b4b)[_0x23f9dc('0x32')](_0x4a185b);};}exports['index']=function(_0x61de24,_0x1a62de){const _0x13c20f=_0x2c54f4;let _0x32d440={};const _0x398d9b={},_0x51e82f={'count':0x0,'rows':[]},_0x3c4587=_['map'](db[_0x13c20f('0x14')][_0x13c20f('0x12')],function(_0x4b6f87){const _0x3a9504=_0x13c20f;return{'name':_0x4b6f87[_0x3a9504('0x52')],'type':_0x4b6f87['type'][_0x3a9504('0x11')]};});_0x398d9b[_0x13c20f('0x0')]=_[_0x13c20f('0x5f')](_0x3c4587,_0x13c20f('0x17')),_0x398d9b[_0x13c20f('0x38')]=_[_0x13c20f('0x4c')](_0x61de24[_0x13c20f('0x38')]),_0x398d9b[_0x13c20f('0x47')]=_[_0x13c20f('0x26')](_0x398d9b['model'],_0x398d9b[_0x13c20f('0x38')]),_0x32d440['attributes']=_[_0x13c20f('0x26')](_0x398d9b['model'],qs[_0x13c20f('0x41')](_0x61de24['query']['fields'])),_0x32d440['attributes']=_0x32d440[_0x13c20f('0xa')][_0x13c20f('0x5c')]?_0x32d440[_0x13c20f('0xa')]:_0x398d9b[_0x13c20f('0x0')];typeof _0x61de24[_0x13c20f('0x38')][_0x13c20f('0x5b')]===_0x13c20f('0x25')&&(_0x32d440['limit']=qs[_0x13c20f('0x7')](_0x61de24[_0x13c20f('0x38')][_0x13c20f('0x7')]),_0x32d440['offset']=qs[_0x13c20f('0x36')](_0x61de24[_0x13c20f('0x38')][_0x13c20f('0x36')]));_0x32d440[_0x13c20f('0x4e')]=qs[_0x13c20f('0x1d')](_0x61de24[_0x13c20f('0x38')][_0x13c20f('0x1d')]),_0x32d440['where']=qs[_0x13c20f('0x47')](_[_0x13c20f('0x29')](_0x61de24[_0x13c20f('0x38')],_0x398d9b[_0x13c20f('0x47')]),_0x3c4587);_0x61de24[_0x13c20f('0x38')]['filter']&&(_0x32d440[_0x13c20f('0x4f')]=_[_0x13c20f('0x22')](_0x32d440[_0x13c20f('0x4f')],{[Op['or']]:_[_0x13c20f('0x5f')](_0x3c4587,function(_0x387107){const _0x310d25=_0x13c20f;if(_0x387107['type']!==_0x310d25('0xb')){const _0x1ab3f6={};return _0x1ab3f6[_0x387107[_0x310d25('0x17')]]={[Op[_0x310d25('0x3a')]]:'%'+_0x61de24[_0x310d25('0x38')][_0x310d25('0x62')]+'%'},_0x1ab3f6;}})}));_0x32d440=_['merge']({},_0x32d440,_0x61de24[_0x13c20f('0x16')]);const _0x45c144={'where':_0x32d440[_0x13c20f('0x4f')]};return db[_0x13c20f('0x14')]['count'](_0x45c144)[_0x13c20f('0x39')](function(_0x13c098){const _0x35d0fa=_0x13c20f;return _0x51e82f['count']=_0x13c098,_0x61de24['query'][_0x35d0fa('0x66')]&&(_0x32d440[_0x35d0fa('0x64')]=[{'all':!![]}]),db[_0x35d0fa('0x14')][_0x35d0fa('0x56')](_0x32d440);})[_0x13c20f('0x39')](function(_0x19c63b){const _0x3b6da2=_0x13c20f;return _0x51e82f[_0x3b6da2('0x51')]=_0x19c63b,_0x51e82f;})[_0x13c20f('0x39')](respondWithFilteredResult(_0x1a62de,_0x32d440))[_0x13c20f('0x53')](handleError(_0x1a62de,null));},exports['show']=function(_0x30dc09,_0xf5fcd0){const _0x14e9df=_0x2c54f4;let _0x565b88={'raw':![],'where':{'id':_0x30dc09['params']['id']}};const _0x30b551={};return _0x30b551[_0x14e9df('0x0')]=_[_0x14e9df('0x4c')](db[_0x14e9df('0x14')][_0x14e9df('0x12')]),_0x30b551[_0x14e9df('0x38')]=_[_0x14e9df('0x4c')](_0x30dc09[_0x14e9df('0x38')]),_0x30b551[_0x14e9df('0x47')]=_[_0x14e9df('0x26')](_0x30b551[_0x14e9df('0x0')],_0x30b551[_0x14e9df('0x38')]),_0x565b88[_0x14e9df('0xa')]=_[_0x14e9df('0x26')](_0x30b551[_0x14e9df('0x0')],qs[_0x14e9df('0x41')](_0x30dc09['query'][_0x14e9df('0x41')])),_0x565b88[_0x14e9df('0xa')]=_0x565b88['attributes'][_0x14e9df('0x5c')]?_0x565b88['attributes']:_0x30b551[_0x14e9df('0x0')],_0x30dc09[_0x14e9df('0x38')][_0x14e9df('0x66')]&&(_0x565b88[_0x14e9df('0x64')]=[{'all':!![]}]),_0x565b88=_[_0x14e9df('0x22')]({},_0x565b88,_0x30dc09['options']),db[_0x14e9df('0x14')][_0x14e9df('0x63')](_0x565b88)['then'](handleEntityNotFound(_0xf5fcd0,null))[_0x14e9df('0x39')](respondWithResult(_0xf5fcd0,null))[_0x14e9df('0x53')](handleError(_0xf5fcd0,null));},exports[_0x2c54f4('0x21')]=function(_0xac51d8,_0x5a14a5){const _0x1d4c02=_0x2c54f4;return db[_0x1d4c02('0x14')][_0x1d4c02('0x21')](_0xac51d8[_0x1d4c02('0x50')],{})[_0x1d4c02('0x39')](respondWithResult(_0x5a14a5,0xc9))[_0x1d4c02('0x53')](handleError(_0x5a14a5,null));},exports[_0x2c54f4('0x49')]=function(_0x10459d,_0x5d5bbb){const _0x2970c5=_0x2c54f4;return _0x10459d[_0x2970c5('0x50')]['id']&&delete _0x10459d[_0x2970c5('0x50')]['id'],db[_0x2970c5('0x14')][_0x2970c5('0x63')]({'where':{'id':_0x10459d[_0x2970c5('0x18')]['id']}})['then'](handleEntityNotFound(_0x5d5bbb,null))[_0x2970c5('0x39')](saveUpdates(_0x10459d[_0x2970c5('0x50')],null))[_0x2970c5('0x39')](respondWithResult(_0x5d5bbb,null))['catch'](handleError(_0x5d5bbb,null));},exports[_0x2c54f4('0x4d')]=function(_0x4c61ba,_0x25c296){const _0x3b276b=_0x2c54f4;return db[_0x3b276b('0x14')][_0x3b276b('0x63')]({'where':{'id':_0x4c61ba['params']['id']}})['then'](handleEntityNotFound(_0x25c296,null))[_0x3b276b('0x39')](removeEntity(_0x25c296,null))['catch'](handleError(_0x25c296,null));},exports[_0x2c54f4('0x4b')]=function(_0x36ce53,_0x49fffa){const _0x1a1aef=_0x2c54f4;let _0x28a3b2={};const _0x569c0b={};let _0xa15211,_0x172d39;return db[_0x1a1aef('0x14')][_0x1a1aef('0x63')]({'where':{'id':_0x36ce53['params']['id']}})[_0x1a1aef('0x39')](handleEntityNotFound(_0x49fffa,null))['then'](function(_0x7fa2ff){const _0x5d0192=_0x1a1aef;if(_0x7fa2ff)return _0xa15211=_0x7fa2ff,_0x569c0b[_0x5d0192('0x0')]=_[_0x5d0192('0x4c')](db[_0x5d0192('0x5e')][_0x5d0192('0x12')]),_0x569c0b[_0x5d0192('0x38')]=_['keys'](_0x36ce53['query']),_0x569c0b[_0x5d0192('0x47')]=_[_0x5d0192('0x26')](_0x569c0b[_0x5d0192('0x0')],_0x569c0b[_0x5d0192('0x38')]),_0x28a3b2[_0x5d0192('0xa')]=_[_0x5d0192('0x26')](_0x569c0b['model'],qs[_0x5d0192('0x41')](_0x36ce53['query'][_0x5d0192('0x41')])),_0x28a3b2['attributes']=_0x28a3b2[_0x5d0192('0xa')]['length']?_0x28a3b2[_0x5d0192('0xa')]:_0x569c0b[_0x5d0192('0x0')],_0x28a3b2[_0x5d0192('0x4e')]=qs['sort'](_0x36ce53[_0x5d0192('0x38')]['sort']),_0x28a3b2[_0x5d0192('0x4f')]=qs[_0x5d0192('0x47')](_[_0x5d0192('0x29')](_0x36ce53[_0x5d0192('0x38')],_0x569c0b[_0x5d0192('0x47')])),_0x36ce53[_0x5d0192('0x38')][_0x5d0192('0x62')]&&(_0x28a3b2[_0x5d0192('0x4f')]=_['merge'](_0x28a3b2['where'],{[Op['or']]:_[_0x5d0192('0x5f')](_0x28a3b2[_0x5d0192('0xa')],function(_0xe1f7b0){const _0x16ae71=_0x5d0192,_0x70b3e5={};return _0x70b3e5[_0xe1f7b0]={[Op[_0x16ae71('0x3a')]]:'%'+_0x36ce53[_0x16ae71('0x38')][_0x16ae71('0x62')]+'%'},_0x70b3e5;})})),_0x28a3b2=_[_0x5d0192('0x22')]({},_0x28a3b2,_0x36ce53['options']),_0xa15211['getConfigurations'](_0x28a3b2);})[_0x1a1aef('0x39')](function(_0x54c76b){const _0x778a11=_0x1a1aef;if(_0x54c76b)return _0x172d39=_0x54c76b[_0x778a11('0x5c')],typeof _0x36ce53['query']['nolimit']===_0x778a11('0x25')&&(_0x28a3b2['limit']=qs['limit'](_0x36ce53['query'][_0x778a11('0x7')]),_0x28a3b2[_0x778a11('0x36')]=qs[_0x778a11('0x36')](_0x36ce53['query'][_0x778a11('0x36')])),_0xa15211[_0x778a11('0x4b')](_0x28a3b2);})[_0x1a1aef('0x39')](function(_0x18d1ee){if(_0x18d1ee)return _0x18d1ee?{'count':_0x172d39,'rows':_0x18d1ee}:null;})[_0x1a1aef('0x39')](respondWithResult(_0x49fffa,null))['catch'](handleError(_0x49fffa,null));},exports[_0x2c54f4('0x59')]=function(_0x1cb759,_0x1c57e3){const _0x18327f=_0x2c54f4;return _0x1cb759['body']['id']&&delete _0x1cb759['body']['id'],db['SalesforceAccount'][_0x18327f('0x63')]({'where':{'id':_0x1cb759[_0x18327f('0x18')]['id']}})['then'](handleEntityNotFound(_0x1c57e3,null))[_0x18327f('0x39')](function(_0x215005){const _0x228f17=_0x18327f;if(_0x215005)return _0x1cb759['body'][_0x228f17('0x31')]=_0x215005['id'],_0x1cb759[_0x228f17('0x50')][_0x228f17('0x61')]=integrations[_0x228f17('0x2f')](_0x1cb759['body'][_0x228f17('0x3c')],_0x1cb759[_0x228f17('0x50')]['type']),_0x1cb759[_0x228f17('0x50')][_0x228f17('0x54')]=integrations[_0x228f17('0x58')](_0x1cb759[_0x228f17('0x50')]['channel'],_0x1cb759[_0x228f17('0x50')][_0x228f17('0x5')]),db[_0x228f17('0x5e')][_0x228f17('0x21')](_0x1cb759[_0x228f17('0x50')],{'include':[{'model':db[_0x228f17('0x44')],'as':'Subjects'},{'model':db[_0x228f17('0x44')],'as':_0x228f17('0x54')}]});return null;})[_0x18327f('0x39')](respondWithResult(_0x1c57e3,null))[_0x18327f('0x53')](handleError(_0x1c57e3,null));},exports[_0x2c54f4('0x1b')]=function(_0x2a6d91,_0x526993){const _0xb6935=_0x2c54f4;let _0x48f73,_0x5cf36f='',_0x468dd9=_0xb6935('0x20');return db[_0xb6935('0x14')][_0xb6935('0x63')]({'where':{'id':_0x2a6d91[_0xb6935('0x18')]['id']},'attributes':['id',_0xb6935('0x60'),_0xb6935('0x46'),'clientSecret',_0xb6935('0x30'),_0xb6935('0x67'),'securityToken']})[_0xb6935('0x39')](handleEntityNotFound(_0x526993,null))['then'](function(_0x8c970){const _0x235f7f=_0xb6935;if(_0x8c970){_0x5cf36f=_0x8c970[_0x235f7f('0x60')];const _0x8b323=_0x5cf36f[_0x235f7f('0x2e')](-0x1);return _0x8b323==='/'&&(_0x5cf36f=_0x5cf36f[_0x235f7f('0x1e')](0x0,_0x5cf36f[_0x235f7f('0x37')](_0x8b323))),_0x48f73=new jsforce[(_0x235f7f('0x8'))]({'oauth2':{'loginUrl':_0x5cf36f,'clientId':_0x8c970[_0x235f7f('0x46')],'clientSecret':_0x8c970[_0x235f7f('0x33')]}}),_0x48f73[_0x235f7f('0x42')](_0x8c970[_0x235f7f('0x30')],_0x8c970['password'][_0x235f7f('0x68')](_0x8c970[_0x235f7f('0x2')]));}})[_0xb6935('0x39')](function(_0x496304){const _0x527518=_0xb6935;if(_0x496304)return!_[_0x527518('0xe')](_0x2a6d91['query'][_0x527518('0x1')])&&(_0x468dd9=_0x2a6d91[_0x527518('0x38')]['ticketType']),_0x48f73[_0x527518('0x10')](_0x468dd9)[_0x527518('0x1c')]();})[_0xb6935('0x39')](function(_0x21b9fa){const _0x4527b3=_0xb6935;let _0x3ba77f=[_0x4527b3('0x34'),_0x4527b3('0x40'),'CallObject',_0x4527b3('0x48'),_0x4527b3('0x27'),_0x4527b3('0xf'),_0x4527b3('0x3b'),_0x4527b3('0x43')];!_[_0x4527b3('0xe')](_0x2a6d91[_0x4527b3('0x38')]['ticketType'])&&_0x2a6d91[_0x4527b3('0x38')][_0x4527b3('0x1')]===_0x4527b3('0xc')&&(_0x3ba77f=[_0x4527b3('0x43'),_0x4527b3('0x3f'),_0x4527b3('0x1f'),'Status','Priority',_0x4527b3('0x13'),_0x4527b3('0x24'),_0x4527b3('0x4a')]);if(_0x21b9fa)return _[_0x4527b3('0x69')](_0x21b9fa[_0x4527b3('0x41')],function(_0x1ad6b3){const _0x4b2f65=_0x4527b3;return _0x1ad6b3['custom']===![]&&!_0x3ba77f[_0x4b2f65('0xd')](_0x1ad6b3[_0x4b2f65('0x17')]);}),{'count':_0x21b9fa[_0x4527b3('0x41')][_0x4527b3('0x5c')],'rows':_[_0x4527b3('0x5f')](_0x21b9fa[_0x4527b3('0x41')],function(_0x5de1e9){const _0x1e7a58=_0x4527b3;return{'id':_0x5de1e9[_0x1e7a58('0x17')],'name':_0x5de1e9[_0x1e7a58('0x4')],'custom':_0x5de1e9['custom'],'options':_0x5de1e9['picklistValues'][_0x1e7a58('0x5c')]>0x0?_[_0x1e7a58('0x5f')](_0x5de1e9[_0x1e7a58('0x9')],function(_0x24b50f){const _0x20faee=_0x1e7a58;return{'name':_0x24b50f[_0x20faee('0x4')],'value':_0x24b50f['value']};}):_0x5de1e9['type']=='boolean'?[{'name':_0x1e7a58('0x3'),'value':'true'},{'name':'False','value':'false'}]:[]};})};})['then'](respondWithResult(_0x526993,null))[_0xb6935('0x53')](function(_0x24a357){const _0x4efbd0=_0xb6935;let _0x1278dd=_0x2a6d91[_0x4efbd0('0x38')]['test']?0x1f4:_0x24a357[_0x4efbd0('0x28')]||0x1f4;logger[_0x4efbd0('0x55')](_0x4efbd0('0x23'),'getFields',_0x1278dd,JSON[_0x4efbd0('0x2a')](_0x24a357)),delete _0x24a357[_0x4efbd0('0x17')],_0x1278dd===0x191&&(_0x1278dd=0x190),_0x526993['status'](_0x1278dd)[_0x4efbd0('0x32')](_0x2a6d91['query'][_0x4efbd0('0x2c')]?{'message':_0x4efbd0('0x65'),'statusCode':_0x24a357[_0x4efbd0('0x28')]}:_0x24a357);});}; \ No newline at end of file +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 diff --git a/server/api/intSalesforceAccount/intSalesforceAccount.model.js b/server/api/intSalesforceAccount/intSalesforceAccount.model.js index 47a3f93..81ef946 100644 --- a/server/api/intSalesforceAccount/intSalesforceAccount.model.js +++ b/server/api/intSalesforceAccount/intSalesforceAccount.model.js @@ -1 +1 @@ -const a282_0x362c=['define','int_salesforce_accounts'];(function(_0x226bcd,_0x362c50){const _0x1cce10=function(_0x221ad2){while(--_0x221ad2){_0x226bcd['push'](_0x226bcd['shift']());}};_0x1cce10(++_0x362c50);}(a282_0x362c,0xfa));const a282_0x1cce=function(_0x226bcd,_0x362c50){_0x226bcd=_0x226bcd-0x0;let _0x1cce10=a282_0x362c[_0x226bcd];return _0x1cce10;};'use strict';const attributes=require('./intSalesforceAccount.attributes');module['exports']=function(_0x221ad2){const _0x1861df=a282_0x1cce,_0x516f89=_0x221ad2[_0x1861df('0x0')]('SalesforceAccount',attributes,{'tableName':_0x1861df('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x516f89;}; \ No newline at end of file +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 diff --git a/server/api/intSalesforceAccount/intSalesforceAccount.rpc.js b/server/api/intSalesforceAccount/intSalesforceAccount.rpc.js index 2d9a168..d76ec44 100644 --- a/server/api/intSalesforceAccount/intSalesforceAccount.rpc.js +++ b/server/api/intSalesforceAccount/intSalesforceAccount.rpc.js @@ -1 +1 @@ -const a283_0x542e=['../../mysqldb','raw','limit','findAll','then','message','debug','../../config/logger','findOne','include','map','where','GetSalesforceAccount','catch','options','stringify','lodash','attributes','info','model','ShowSalesforceAccount','error'];(function(_0x13e561,_0x542ea5){const _0x5b7512=function(_0x3b0f86){while(--_0x3b0f86){_0x13e561['push'](_0x13e561['shift']());}};_0x5b7512(++_0x542ea5);}(a283_0x542e,0x13e));const a283_0x5b75=function(_0x13e561,_0x542ea5){_0x13e561=_0x13e561-0x0;let _0x5b7512=a283_0x542e[_0x13e561];return _0x5b7512;};const _0xd13c72=a283_0x5b75;'use strict';const _=require(_0xd13c72('0x6')),db=require(_0xd13c72('0xc'))['db'],logger=require(_0xd13c72('0x13'))('rpc');exports[_0xd13c72('0x2')]=function(_0x3b0f86){const _0x1aaa78=this;return new Promise(function(_0x787ccd,_0x21bc31){const _0x34f3a1=a283_0x5b75;return db['SalesforceAccount'][_0x34f3a1('0xf')]({'raw':_0x3b0f86[_0x34f3a1('0x4')]?_0x3b0f86[_0x34f3a1('0x4')][_0x34f3a1('0xd')]===undefined?!![]:![]:!![],'where':_0x3b0f86[_0x34f3a1('0x4')]?_0x3b0f86[_0x34f3a1('0x4')]['where']||null:null,'attributes':_0x3b0f86[_0x34f3a1('0x4')]?_0x3b0f86['options']['attributes']||null:null,'limit':_0x3b0f86[_0x34f3a1('0x4')]?_0x3b0f86['options'][_0x34f3a1('0xe')]||null:null,'include':_0x3b0f86[_0x34f3a1('0x4')]?_0x3b0f86[_0x34f3a1('0x4')][_0x34f3a1('0x15')]?_[_0x34f3a1('0x0')](_0x3b0f86[_0x34f3a1('0x4')][_0x34f3a1('0x15')],function(_0x4403fc){const _0x3e3db1=_0x34f3a1;return{'model':db[_0x4403fc[_0x3e3db1('0x9')]],'as':_0x4403fc['as'],'attributes':_0x4403fc[_0x3e3db1('0x7')],'include':_0x4403fc[_0x3e3db1('0x15')]?_[_0x3e3db1('0x0')](_0x4403fc[_0x3e3db1('0x15')],function(_0x2b2b3a){const _0x677f94=_0x3e3db1;return{'model':db[_0x2b2b3a[_0x677f94('0x9')]],'as':_0x2b2b3a['as'],'attributes':_0x2b2b3a['attributes'],'include':_0x2b2b3a[_0x677f94('0x15')]?_['map'](_0x2b2b3a[_0x677f94('0x15')],function(_0x2741e9){const _0x2460e0=_0x677f94;return{'model':db[_0x2741e9[_0x2460e0('0x9')]],'as':_0x2741e9['as'],'attributes':_0x2741e9[_0x2460e0('0x7')]};}):[]};}):[]};}):[]:[]})[_0x34f3a1('0x10')](function(_0x5e5467){const _0x36bdce=_0x34f3a1;logger[_0x36bdce('0x8')](_0x36bdce('0x2'),_0x3b0f86),logger[_0x36bdce('0x12')](_0x36bdce('0x2'),_0x3b0f86,JSON[_0x36bdce('0x5')](_0x5e5467)),_0x787ccd(_0x5e5467);})['catch'](function(_0x14fc78){const _0x4af233=_0x34f3a1;logger[_0x4af233('0xb')](_0x4af233('0x2'),_0x14fc78[_0x4af233('0x11')],_0x3b0f86),_0x21bc31(_0x1aaa78['error'](0x1f4,_0x14fc78['message']));});});},exports[_0xd13c72('0xa')]=function(_0x3eee43){const _0x2881f8=this;return new Promise(function(_0x37d258,_0x27d66b){const _0x20ef31=a283_0x5b75;return db['SalesforceAccount'][_0x20ef31('0x14')]({'raw':_0x3eee43['options']?_0x3eee43[_0x20ef31('0x4')][_0x20ef31('0xd')]===undefined?!![]:![]:!![],'where':_0x3eee43[_0x20ef31('0x4')]?_0x3eee43[_0x20ef31('0x4')][_0x20ef31('0x1')]||null:null,'attributes':_0x3eee43[_0x20ef31('0x4')]?_0x3eee43['options'][_0x20ef31('0x7')]||null:null,'include':_0x3eee43[_0x20ef31('0x4')]?_0x3eee43[_0x20ef31('0x4')][_0x20ef31('0x15')]?_['map'](_0x3eee43['options'][_0x20ef31('0x15')],function(_0x24be54){const _0x4436cd=_0x20ef31;return{'model':db[_0x24be54[_0x4436cd('0x9')]],'as':_0x24be54['as'],'attributes':_0x24be54[_0x4436cd('0x7')],'include':_0x24be54['include']?_[_0x4436cd('0x0')](_0x24be54['include'],function(_0x16cb87){const _0x580e46=_0x4436cd;return{'model':db[_0x16cb87[_0x580e46('0x9')]],'as':_0x16cb87['as'],'attributes':_0x16cb87[_0x580e46('0x7')],'include':_0x16cb87[_0x580e46('0x15')]?_[_0x580e46('0x0')](_0x16cb87['include'],function(_0x2b601c){const _0x2dbae4=_0x580e46;return{'model':db[_0x2b601c[_0x2dbae4('0x9')]],'as':_0x2b601c['as'],'attributes':_0x2b601c[_0x2dbae4('0x7')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x3f70c1){const _0x42a626=_0x20ef31;logger[_0x42a626('0x8')]('ShowSalesforceAccount',_0x3eee43),logger[_0x42a626('0x12')](_0x42a626('0xa'),_0x3eee43,JSON['stringify'](_0x3f70c1)),_0x37d258(_0x3f70c1);})[_0x20ef31('0x3')](function(_0x2f9088){const _0x3acec4=_0x20ef31;logger[_0x3acec4('0xb')]('ShowSalesforceAccount',_0x2f9088[_0x3acec4('0x11')],_0x3eee43),_0x27d66b(_0x2881f8[_0x3acec4('0xb')](0x1f4,_0x2f9088[_0x3acec4('0x11')]));});});}; \ No newline at end of file +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 diff --git a/server/api/intSalesforceConfiguration/index.js b/server/api/intSalesforceConfiguration/index.js index 5ee7e51..c40f7c4 100644 --- a/server/api/intSalesforceConfiguration/index.js +++ b/server/api/intSalesforceConfiguration/index.js @@ -1 +1 @@ -const a284_0x17b4=['getSubjects','getFields','Router','get','../../components/auth/service','/:id/fields','show','post','create','isAuthenticated','exports','/:id','destroy','index','put','/:id/subjects','./intSalesforceConfiguration.controller','getDescriptions','update','express','/:id/descriptions'];(function(_0x478640,_0x17b4dc){const _0x4abf59=function(_0x2ffc96){while(--_0x2ffc96){_0x478640['push'](_0x478640['shift']());}};_0x4abf59(++_0x17b4dc);}(a284_0x17b4,0x124));const a284_0x4abf=function(_0x478640,_0x17b4dc){_0x478640=_0x478640-0x0;let _0x4abf59=a284_0x17b4[_0x478640];return _0x4abf59;};const _0x3ad70f=a284_0x4abf;'use strict';const express=require(_0x3ad70f('0x0')),router=express[_0x3ad70f('0x4')](),auth=require(_0x3ad70f('0x6')),controller=require(_0x3ad70f('0x12'));router[_0x3ad70f('0x5')]('/',auth[_0x3ad70f('0xb')](),controller[_0x3ad70f('0xf')]),router['get'](_0x3ad70f('0xd'),auth[_0x3ad70f('0xb')](),controller[_0x3ad70f('0x8')]),router[_0x3ad70f('0x5')](_0x3ad70f('0x7'),auth['isAuthenticated'](),controller[_0x3ad70f('0x3')]),router[_0x3ad70f('0x5')](_0x3ad70f('0x11'),auth[_0x3ad70f('0xb')](),controller[_0x3ad70f('0x2')]),router['get'](_0x3ad70f('0x1'),auth[_0x3ad70f('0xb')](),controller[_0x3ad70f('0x13')]),router[_0x3ad70f('0x9')]('/',auth[_0x3ad70f('0xb')](),controller[_0x3ad70f('0xa')]),router[_0x3ad70f('0x10')]('/:id',auth[_0x3ad70f('0xb')](),controller[_0x3ad70f('0x14')]),router['delete'](_0x3ad70f('0xd'),auth[_0x3ad70f('0xb')](),controller[_0x3ad70f('0xe')]),module[_0x3ad70f('0xc')]=router; \ No newline at end of file +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 diff --git a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.attributes.js b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.attributes.js index 5c6eefd..480a960 100644 --- a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.attributes.js +++ b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.attributes.js @@ -1 +1 @@ -const a285_0x2e54=['nothing','contact_lead','lead','contact','sequelize','ENUM','STRING'];(function(_0x4a28fd,_0x2e54e8){const _0x4695da=function(_0x3e4734){while(--_0x3e4734){_0x4a28fd['push'](_0x4a28fd['shift']());}};_0x4695da(++_0x2e54e8);}(a285_0x2e54,0xbe));const a285_0x4695=function(_0x4a28fd,_0x2e54e8){_0x4a28fd=_0x4a28fd-0x0;let _0x4695da=a285_0x2e54[_0x4a28fd];return _0x4695da;};const _0x1faf70=a285_0x4695;'use strict';const Sequelize=require(_0x1faf70('0x3'));module['exports']={'name':{'type':Sequelize[_0x1faf70('0x5')]},'description':{'type':Sequelize[_0x1faf70('0x5')]},'ticketType':{'type':Sequelize[_0x1faf70('0x4')]('Task','Case'),'defaultValue':'Task'},'moduleSearch':{'type':Sequelize[_0x1faf70('0x4')](_0x1faf70('0x0'),_0x1faf70('0x2'),_0x1faf70('0x1')),'defaultValue':_0x1faf70('0x0')},'moduleCreate':{'type':Sequelize['ENUM'](_0x1faf70('0x6'),_0x1faf70('0x2'),_0x1faf70('0x1')),'defaultValue':'lead'}}; \ No newline at end of file +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 diff --git a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.controller.js b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.controller.js index 588b3bd..0699657 100644 --- a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.controller.js +++ b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.controller.js @@ -1 +1 @@ -const a286_0x591c=['map','intersection','send','stack','SalesforceConfiguration','status','params','index','destroy','error','json','sequelize','limit','rawAttributes','key','keys','query','nolimit','order','findAll','where','getFields','findOne','includeAll','filters','pick','merge','../../components/parsers/qs','getDescriptions','catch','options','getSubjects','then','filter','lodash','sort','name','count','update','VIRTUAL','offset','set','type','undefined','api','Content-Range','body','like','length','fields','SalesforceField','model','sendStatus','rows','create','attributes'];(function(_0x6f953e,_0x591c4e){const _0x4c598f=function(_0x1e012d){while(--_0x1e012d){_0x6f953e['push'](_0x6f953e['shift']());}};_0x4c598f(++_0x591c4e);}(a286_0x591c,0x156));const a286_0x4c59=function(_0x6f953e,_0x591c4e){_0x6f953e=_0x6f953e-0x0;let _0x4c598f=a286_0x591c[_0x6f953e];return _0x4c598f;};const _0x439795=a286_0x4c59;'use strict';const _=require(_0x439795('0x1c')),qs=require(_0x439795('0x15')),logger=require('../../config/logger')(_0x439795('0x26')),db=require('../../mysqldb')['db'],{Op}=require(_0x439795('0x5'));function respondWithResult(_0x1e012d,_0xd698e7){return _0xd698e7=_0xd698e7||0xc8,function(_0x195b91){const _0x2f3b21=a286_0x4c59;if(_0x195b91)return _0x1e012d[_0x2f3b21('0x37')](_0xd698e7)[_0x2f3b21('0x4')](_0x195b91);};}function respondWithFilteredResult(_0x33637d,_0x3f287e){return function(_0x31750f){const _0x42cc87=a286_0x4c59;if(_0x31750f){const _0x110fb6=_0x31750f[_0x42cc87('0x1f')],_0x1ea587=_0x3f287e[_0x42cc87('0x22')];let _0x2ff111=_0x3f287e[_0x42cc87('0x22')]+_0x3f287e[_0x42cc87('0x6')],_0x1f02e0;return _0x2ff111>=_0x110fb6?(_0x2ff111=_0x110fb6,_0x1f02e0=0xc8):_0x1f02e0=0xce,_0x33637d[_0x42cc87('0x37')](_0x1f02e0),_0x33637d[_0x42cc87('0x23')](_0x42cc87('0x27'),_0x1ea587+'-'+_0x2ff111+'/'+_0x110fb6)[_0x42cc87('0x4')](_0x31750f);}return null;};}function saveUpdates(_0x19a794){return function(_0x4aa182){const _0x3e3bde=a286_0x4c59;if(_0x4aa182)return _0x4aa182[_0x3e3bde('0x20')](_0x19a794)[_0x3e3bde('0x1a')](function(_0x418405){return _0x418405;});return null;};}function removeEntity(_0x3c623a){return function(_0x43fb83){const _0x2c9990=a286_0x4c59;if(_0x43fb83)return _0x43fb83[_0x2c9990('0x2')]()[_0x2c9990('0x1a')](function(){const _0x581ed7=_0x2c9990;_0x3c623a[_0x581ed7('0x37')](0xcc)['end']();});};}function handleEntityNotFound(_0x44beeb){return function(_0x5ac01e){const _0x3b95a1=a286_0x4c59;return!_0x5ac01e&&_0x44beeb[_0x3b95a1('0x2e')](0x194),_0x5ac01e;};}function handleError(_0xa1656e,_0xc4fbb0){return _0xc4fbb0=_0xc4fbb0||0x1f4,function(_0x3458af){const _0x2f4b3a=a286_0x4c59;logger[_0x2f4b3a('0x3')](_0x3458af[_0x2f4b3a('0x35')]),_0x3458af[_0x2f4b3a('0x1e')]&&delete _0x3458af[_0x2f4b3a('0x1e')],_0xa1656e[_0x2f4b3a('0x37')](_0xc4fbb0)[_0x2f4b3a('0x34')](_0x3458af);};}exports[_0x439795('0x1')]=function(_0x4ec9c1,_0x41110c){const _0x5c1931=_0x439795;let _0x549103={};const _0x70d20f={},_0x180c7={'count':0x0,'rows':[]},_0x14aacc=_[_0x5c1931('0x32')](db[_0x5c1931('0x36')][_0x5c1931('0x7')],function(_0x46e1ef){const _0x17de53=_0x5c1931;return{'name':_0x46e1ef['fieldName'],'type':_0x46e1ef[_0x17de53('0x24')][_0x17de53('0x8')]};});_0x70d20f[_0x5c1931('0x2d')]=_[_0x5c1931('0x32')](_0x14aacc,_0x5c1931('0x1e')),_0x70d20f[_0x5c1931('0xa')]=_[_0x5c1931('0x9')](_0x4ec9c1[_0x5c1931('0xa')]),_0x70d20f[_0x5c1931('0x12')]=_[_0x5c1931('0x33')](_0x70d20f[_0x5c1931('0x2d')],_0x70d20f['query']),_0x549103[_0x5c1931('0x31')]=_[_0x5c1931('0x33')](_0x70d20f[_0x5c1931('0x2d')],qs[_0x5c1931('0x2b')](_0x4ec9c1[_0x5c1931('0xa')]['fields'])),_0x549103[_0x5c1931('0x31')]=_0x549103[_0x5c1931('0x31')][_0x5c1931('0x2a')]?_0x549103[_0x5c1931('0x31')]:_0x70d20f[_0x5c1931('0x2d')];typeof _0x4ec9c1['query'][_0x5c1931('0xb')]===_0x5c1931('0x25')&&(_0x549103[_0x5c1931('0x6')]=qs['limit'](_0x4ec9c1['query'][_0x5c1931('0x6')]),_0x549103['offset']=qs[_0x5c1931('0x22')](_0x4ec9c1['query'][_0x5c1931('0x22')]));_0x549103[_0x5c1931('0xc')]=qs[_0x5c1931('0x1d')](_0x4ec9c1[_0x5c1931('0xa')]['sort']),_0x549103[_0x5c1931('0xe')]=qs[_0x5c1931('0x12')](_[_0x5c1931('0x13')](_0x4ec9c1[_0x5c1931('0xa')],_0x70d20f[_0x5c1931('0x12')]),_0x14aacc);_0x4ec9c1[_0x5c1931('0xa')][_0x5c1931('0x1b')]&&(_0x549103[_0x5c1931('0xe')]=_[_0x5c1931('0x14')](_0x549103[_0x5c1931('0xe')],{[Op['or']]:_['map'](_0x14aacc,function(_0x2b676f){const _0x4880fe=_0x5c1931;if(_0x2b676f[_0x4880fe('0x24')]!==_0x4880fe('0x21')){const _0x402de7={};return _0x402de7[_0x2b676f[_0x4880fe('0x1e')]]={[Op['like']]:'%'+_0x4ec9c1[_0x4880fe('0xa')][_0x4880fe('0x1b')]+'%'},_0x402de7;}})}));_0x549103=_[_0x5c1931('0x14')]({},_0x549103,_0x4ec9c1[_0x5c1931('0x18')]);const _0x42381a={'where':_0x549103['where']};return db[_0x5c1931('0x36')][_0x5c1931('0x1f')](_0x42381a)['then'](function(_0x129bc3){const _0x1cf320=_0x5c1931;return _0x180c7['count']=_0x129bc3,_0x4ec9c1[_0x1cf320('0xa')]['includeAll']&&(_0x549103['include']=[{'all':!![]}]),db[_0x1cf320('0x36')][_0x1cf320('0xd')](_0x549103);})[_0x5c1931('0x1a')](function(_0x363d58){const _0x3fb064=_0x5c1931;return _0x180c7[_0x3fb064('0x2f')]=_0x363d58,_0x180c7;})['then'](respondWithFilteredResult(_0x41110c,_0x549103))[_0x5c1931('0x17')](handleError(_0x41110c,null));},exports['show']=function(_0x48adbe,_0x17e9cb){const _0x1561f8=_0x439795;let _0x17ab9e={'raw':![],'where':{'id':_0x48adbe['params']['id']}};const _0x46abaa={};return _0x46abaa['model']=_[_0x1561f8('0x9')](db['SalesforceConfiguration'][_0x1561f8('0x7')]),_0x46abaa[_0x1561f8('0xa')]=_['keys'](_0x48adbe[_0x1561f8('0xa')]),_0x46abaa[_0x1561f8('0x12')]=_['intersection'](_0x46abaa['model'],_0x46abaa[_0x1561f8('0xa')]),_0x17ab9e[_0x1561f8('0x31')]=_[_0x1561f8('0x33')](_0x46abaa[_0x1561f8('0x2d')],qs['fields'](_0x48adbe[_0x1561f8('0xa')]['fields'])),_0x17ab9e[_0x1561f8('0x31')]=_0x17ab9e[_0x1561f8('0x31')][_0x1561f8('0x2a')]?_0x17ab9e['attributes']:_0x46abaa[_0x1561f8('0x2d')],_0x48adbe[_0x1561f8('0xa')][_0x1561f8('0x11')]&&(_0x17ab9e['include']=[{'all':!![]}]),_0x17ab9e=_[_0x1561f8('0x14')]({},_0x17ab9e,_0x48adbe[_0x1561f8('0x18')]),db[_0x1561f8('0x36')][_0x1561f8('0x10')](_0x17ab9e)[_0x1561f8('0x1a')](handleEntityNotFound(_0x17e9cb,null))['then'](respondWithResult(_0x17e9cb,null))[_0x1561f8('0x17')](handleError(_0x17e9cb,null));},exports[_0x439795('0x30')]=function(_0x1e4a27,_0x4c286c){const _0x300ede=_0x439795;return db[_0x300ede('0x36')]['create'](_0x1e4a27[_0x300ede('0x28')],{})[_0x300ede('0x1a')](respondWithResult(_0x4c286c,0xc9))['catch'](handleError(_0x4c286c,null));},exports[_0x439795('0x20')]=function(_0x20666a,_0x21b9f6){const _0x225433=_0x439795;return _0x20666a[_0x225433('0x28')]['id']&&delete _0x20666a[_0x225433('0x28')]['id'],db['SalesforceConfiguration'][_0x225433('0x10')]({'where':{'id':_0x20666a[_0x225433('0x0')]['id']}})[_0x225433('0x1a')](handleEntityNotFound(_0x21b9f6,null))[_0x225433('0x1a')](saveUpdates(_0x20666a[_0x225433('0x28')],null))[_0x225433('0x1a')](respondWithResult(_0x21b9f6,null))[_0x225433('0x17')](handleError(_0x21b9f6,null));},exports['destroy']=function(_0x172843,_0xc1b856){const _0x23223d=_0x439795;return db['SalesforceConfiguration'][_0x23223d('0x10')]({'where':{'id':_0x172843[_0x23223d('0x0')]['id']}})['then'](handleEntityNotFound(_0xc1b856,null))[_0x23223d('0x1a')](removeEntity(_0xc1b856,null))[_0x23223d('0x17')](handleError(_0xc1b856,null));},exports[_0x439795('0xf')]=function(_0x110874,_0x5f0981){const _0x121ef3=_0x439795;let _0x468d7b={};const _0x3212fd={};let _0x17e869,_0x83ba5a;return db['SalesforceConfiguration']['findOne']({'where':{'id':_0x110874['params']['id']}})[_0x121ef3('0x1a')](handleEntityNotFound(_0x5f0981,null))[_0x121ef3('0x1a')](function(_0x328cd1){const _0x33fc34=_0x121ef3;if(_0x328cd1)return _0x17e869=_0x328cd1,_0x3212fd[_0x33fc34('0x2d')]=_[_0x33fc34('0x9')](db[_0x33fc34('0x2c')][_0x33fc34('0x7')]),_0x3212fd[_0x33fc34('0xa')]=_[_0x33fc34('0x9')](_0x110874[_0x33fc34('0xa')]),_0x3212fd[_0x33fc34('0x12')]=_[_0x33fc34('0x33')](_0x3212fd[_0x33fc34('0x2d')],_0x3212fd[_0x33fc34('0xa')]),_0x468d7b[_0x33fc34('0x31')]=_[_0x33fc34('0x33')](_0x3212fd[_0x33fc34('0x2d')],qs['fields'](_0x110874[_0x33fc34('0xa')]['fields'])),_0x468d7b[_0x33fc34('0x31')]=_0x468d7b[_0x33fc34('0x31')][_0x33fc34('0x2a')]?_0x468d7b['attributes']:_0x3212fd[_0x33fc34('0x2d')],_0x468d7b[_0x33fc34('0xc')]=qs[_0x33fc34('0x1d')](_0x110874[_0x33fc34('0xa')][_0x33fc34('0x1d')]),_0x468d7b['where']=qs[_0x33fc34('0x12')](_[_0x33fc34('0x13')](_0x110874[_0x33fc34('0xa')],_0x3212fd[_0x33fc34('0x12')])),_0x110874[_0x33fc34('0xa')][_0x33fc34('0x1b')]&&(_0x468d7b[_0x33fc34('0xe')]=_[_0x33fc34('0x14')](_0x468d7b[_0x33fc34('0xe')],{[Op['or']]:_[_0x33fc34('0x32')](_0x468d7b[_0x33fc34('0x31')],function(_0x4207cc){const _0x135de1=_0x33fc34,_0x53781d={};return _0x53781d[_0x4207cc]={[Op[_0x135de1('0x29')]]:'%'+_0x110874[_0x135de1('0xa')][_0x135de1('0x1b')]+'%'},_0x53781d;})})),_0x468d7b=_[_0x33fc34('0x14')]({},_0x468d7b,_0x110874[_0x33fc34('0x18')]),_0x17e869[_0x33fc34('0xf')](_0x468d7b);})[_0x121ef3('0x1a')](function(_0x4b8b6f){const _0x288a52=_0x121ef3;if(_0x4b8b6f)return _0x83ba5a=_0x4b8b6f[_0x288a52('0x2a')],typeof _0x110874['query']['nolimit']===_0x288a52('0x25')&&(_0x468d7b[_0x288a52('0x6')]=qs[_0x288a52('0x6')](_0x110874[_0x288a52('0xa')]['limit']),_0x468d7b['offset']=qs[_0x288a52('0x22')](_0x110874['query'][_0x288a52('0x22')])),_0x17e869[_0x288a52('0xf')](_0x468d7b);})[_0x121ef3('0x1a')](function(_0x533680){if(_0x533680)return _0x533680?{'count':_0x83ba5a,'rows':_0x533680}:null;})[_0x121ef3('0x1a')](respondWithResult(_0x5f0981,null))['catch'](handleError(_0x5f0981,null));},exports[_0x439795('0x19')]=function(_0x15edd3,_0x13a915){const _0x316ae6=_0x439795;let _0x1b26ec={};const _0x17be95={};let _0x421b06,_0x67c285;return db[_0x316ae6('0x36')][_0x316ae6('0x10')]({'where':{'id':_0x15edd3[_0x316ae6('0x0')]['id']}})['then'](handleEntityNotFound(_0x13a915,null))[_0x316ae6('0x1a')](function(_0x10d2b3){const _0x27ef58=_0x316ae6;if(_0x10d2b3)return _0x421b06=_0x10d2b3,_0x17be95[_0x27ef58('0x2d')]=_['keys'](db[_0x27ef58('0x2c')][_0x27ef58('0x7')]),_0x17be95[_0x27ef58('0xa')]=_[_0x27ef58('0x9')](_0x15edd3[_0x27ef58('0xa')]),_0x17be95[_0x27ef58('0x12')]=_[_0x27ef58('0x33')](_0x17be95[_0x27ef58('0x2d')],_0x17be95['query']),_0x1b26ec[_0x27ef58('0x31')]=_[_0x27ef58('0x33')](_0x17be95[_0x27ef58('0x2d')],qs[_0x27ef58('0x2b')](_0x15edd3['query']['fields'])),_0x1b26ec[_0x27ef58('0x31')]=_0x1b26ec['attributes'][_0x27ef58('0x2a')]?_0x1b26ec['attributes']:_0x17be95['model'],_0x1b26ec[_0x27ef58('0xc')]=qs[_0x27ef58('0x1d')](_0x15edd3['query'][_0x27ef58('0x1d')]),_0x1b26ec['where']=qs[_0x27ef58('0x12')](_[_0x27ef58('0x13')](_0x15edd3[_0x27ef58('0xa')],_0x17be95[_0x27ef58('0x12')])),_0x15edd3[_0x27ef58('0xa')][_0x27ef58('0x1b')]&&(_0x1b26ec[_0x27ef58('0xe')]=_[_0x27ef58('0x14')](_0x1b26ec[_0x27ef58('0xe')],{[Op['or']]:_['map'](_0x1b26ec[_0x27ef58('0x31')],function(_0x2b699d){const _0x146bd6=_0x27ef58,_0x23d650={};return _0x23d650[_0x2b699d]={[Op[_0x146bd6('0x29')]]:'%'+_0x15edd3[_0x146bd6('0xa')][_0x146bd6('0x1b')]+'%'},_0x23d650;})})),_0x1b26ec=_[_0x27ef58('0x14')]({},_0x1b26ec,_0x15edd3['options']),_0x421b06[_0x27ef58('0x19')](_0x1b26ec);})[_0x316ae6('0x1a')](function(_0x2c6a66){const _0xa1c8ef=_0x316ae6;if(_0x2c6a66)return _0x67c285=_0x2c6a66[_0xa1c8ef('0x2a')],typeof _0x15edd3[_0xa1c8ef('0xa')][_0xa1c8ef('0xb')]===_0xa1c8ef('0x25')&&(_0x1b26ec['limit']=qs[_0xa1c8ef('0x6')](_0x15edd3[_0xa1c8ef('0xa')][_0xa1c8ef('0x6')]),_0x1b26ec[_0xa1c8ef('0x22')]=qs[_0xa1c8ef('0x22')](_0x15edd3[_0xa1c8ef('0xa')][_0xa1c8ef('0x22')])),_0x421b06[_0xa1c8ef('0x19')](_0x1b26ec);})[_0x316ae6('0x1a')](function(_0x5c3c85){if(_0x5c3c85)return _0x5c3c85?{'count':_0x67c285,'rows':_0x5c3c85}:null;})[_0x316ae6('0x1a')](respondWithResult(_0x13a915,null))['catch'](handleError(_0x13a915,null));},exports[_0x439795('0x16')]=function(_0xf0c68f,_0x557c34){const _0x432cc4=_0x439795;let _0x2207d3={};const _0x2d715e={};let _0x4e2bf7,_0x51358c;return db[_0x432cc4('0x36')][_0x432cc4('0x10')]({'where':{'id':_0xf0c68f[_0x432cc4('0x0')]['id']}})[_0x432cc4('0x1a')](handleEntityNotFound(_0x557c34,null))[_0x432cc4('0x1a')](function(_0x31941c){const _0xd11e5d=_0x432cc4;if(_0x31941c)return _0x4e2bf7=_0x31941c,_0x2d715e[_0xd11e5d('0x2d')]=_['keys'](db[_0xd11e5d('0x2c')][_0xd11e5d('0x7')]),_0x2d715e[_0xd11e5d('0xa')]=_[_0xd11e5d('0x9')](_0xf0c68f[_0xd11e5d('0xa')]),_0x2d715e['filters']=_[_0xd11e5d('0x33')](_0x2d715e['model'],_0x2d715e[_0xd11e5d('0xa')]),_0x2207d3[_0xd11e5d('0x31')]=_[_0xd11e5d('0x33')](_0x2d715e[_0xd11e5d('0x2d')],qs['fields'](_0xf0c68f[_0xd11e5d('0xa')][_0xd11e5d('0x2b')])),_0x2207d3['attributes']=_0x2207d3[_0xd11e5d('0x31')][_0xd11e5d('0x2a')]?_0x2207d3[_0xd11e5d('0x31')]:_0x2d715e['model'],_0x2207d3[_0xd11e5d('0xc')]=qs[_0xd11e5d('0x1d')](_0xf0c68f[_0xd11e5d('0xa')][_0xd11e5d('0x1d')]),_0x2207d3['where']=qs['filters'](_[_0xd11e5d('0x13')](_0xf0c68f[_0xd11e5d('0xa')],_0x2d715e[_0xd11e5d('0x12')])),_0xf0c68f[_0xd11e5d('0xa')][_0xd11e5d('0x1b')]&&(_0x2207d3[_0xd11e5d('0xe')]=_['merge'](_0x2207d3['where'],{[Op['or']]:_[_0xd11e5d('0x32')](_0x2207d3[_0xd11e5d('0x31')],function(_0x23ba40){const _0x52c48f=_0xd11e5d,_0x47393b={};return _0x47393b[_0x23ba40]={[Op['like']]:'%'+_0xf0c68f[_0x52c48f('0xa')][_0x52c48f('0x1b')]+'%'},_0x47393b;})})),_0x2207d3=_[_0xd11e5d('0x14')]({},_0x2207d3,_0xf0c68f['options']),_0x4e2bf7[_0xd11e5d('0x16')](_0x2207d3);})[_0x432cc4('0x1a')](function(_0x5b845e){const _0x4e19e6=_0x432cc4;if(_0x5b845e)return _0x51358c=_0x5b845e[_0x4e19e6('0x2a')],typeof _0xf0c68f[_0x4e19e6('0xa')][_0x4e19e6('0xb')]===_0x4e19e6('0x25')&&(_0x2207d3[_0x4e19e6('0x6')]=qs[_0x4e19e6('0x6')](_0xf0c68f[_0x4e19e6('0xa')][_0x4e19e6('0x6')]),_0x2207d3[_0x4e19e6('0x22')]=qs[_0x4e19e6('0x22')](_0xf0c68f[_0x4e19e6('0xa')][_0x4e19e6('0x22')])),_0x4e2bf7[_0x4e19e6('0x16')](_0x2207d3);})[_0x432cc4('0x1a')](function(_0x4ce716){if(_0x4ce716)return _0x4ce716?{'count':_0x51358c,'rows':_0x4ce716}:null;})[_0x432cc4('0x1a')](respondWithResult(_0x557c34,null))['catch'](handleError(_0x557c34,null));}; \ No newline at end of file +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 diff --git a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.model.js b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.model.js index 1abf353..edc8fc9 100644 --- a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.model.js +++ b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.model.js @@ -1 +1 @@ -const a287_0xc335=['SalesforceConfiguration','exports','define','int_salesforce_configurations','./intSalesforceConfiguration.attributes'];(function(_0x377db8,_0xc33551){const _0x3a42ed=function(_0x3b7eb5){while(--_0x3b7eb5){_0x377db8['push'](_0x377db8['shift']());}};_0x3a42ed(++_0xc33551);}(a287_0xc335,0xfe));const a287_0x3a42=function(_0x377db8,_0xc33551){_0x377db8=_0x377db8-0x0;let _0x3a42ed=a287_0xc335[_0x377db8];return _0x3a42ed;};const _0x3e1120=a287_0x3a42;'use strict';const attributes=require(_0x3e1120('0x0'));module[_0x3e1120('0x2')]=function(_0x3b7eb5){const _0x3d26f2=_0x3e1120,_0x3bef0d=_0x3b7eb5[_0x3d26f2('0x3')](_0x3d26f2('0x1'),attributes,{'tableName':_0x3d26f2('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3bef0d;}; \ No newline at end of file +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 diff --git a/server/api/intSalesforceField/index.js b/server/api/intSalesforceField/index.js index abf5f20..d473f91 100644 --- a/server/api/intSalesforceField/index.js +++ b/server/api/intSalesforceField/index.js @@ -1 +1 @@ -const a288_0x4a38=['exports','index','get','show','delete','update','/:id','isAuthenticated'];(function(_0x443d3c,_0x4a38d4){const _0x34d229=function(_0x5f1321){while(--_0x5f1321){_0x443d3c['push'](_0x443d3c['shift']());}};_0x34d229(++_0x4a38d4);}(a288_0x4a38,0x1b9));const a288_0x34d2=function(_0x443d3c,_0x4a38d4){_0x443d3c=_0x443d3c-0x0;let _0x34d229=a288_0x4a38[_0x443d3c];return _0x34d229;};const _0x50f9bf=a288_0x34d2;'use strict';const express=require('express'),router=express['Router'](),auth=require('../../components/auth/service'),controller=require('./intSalesforceField.controller');router[_0x50f9bf('0x1')]('/',auth[_0x50f9bf('0x6')](),controller[_0x50f9bf('0x0')]),router[_0x50f9bf('0x1')]('/:id',auth['isAuthenticated'](),controller[_0x50f9bf('0x2')]),router['post']('/',auth[_0x50f9bf('0x6')](),controller['create']),router['put'](_0x50f9bf('0x5'),auth[_0x50f9bf('0x6')](),controller[_0x50f9bf('0x4')]),router[_0x50f9bf('0x3')](_0x50f9bf('0x5'),auth[_0x50f9bf('0x6')](),controller['destroy']),module[_0x50f9bf('0x7')]=router; \ No newline at end of file +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 diff --git a/server/api/intSalesforceField/intSalesforceField.attributes.js b/server/api/intSalesforceField/intSalesforceField.attributes.js index 33bd594..8954401 100644 --- a/server/api/intSalesforceField/intSalesforceField.attributes.js +++ b/server/api/intSalesforceField/intSalesforceField.attributes.js @@ -1 +1 @@ -const a289_0x8d9c=['STRING','customVariable','keyValue','variable','string','sequelize','ENUM'];(function(_0x1a5853,_0x8d9c1d){const _0x1ce2bf=function(_0x1376da){while(--_0x1376da){_0x1a5853['push'](_0x1a5853['shift']());}};_0x1ce2bf(++_0x8d9c1d);}(a289_0x8d9c,0x6b));const a289_0x1ce2=function(_0x1a5853,_0x8d9c1d){_0x1a5853=_0x1a5853-0x0;let _0x1ce2bf=a289_0x8d9c[_0x1a5853];return _0x1ce2bf;};const _0x1c7c3b=a289_0x1ce2;'use strict';const Sequelize=require(_0x1c7c3b('0x3'));module['exports']={'type':{'type':Sequelize[_0x1c7c3b('0x4')](_0x1c7c3b('0x2'),_0x1c7c3b('0x1'),_0x1c7c3b('0x6'),_0x1c7c3b('0x0')),'defaultValue':_0x1c7c3b('0x2')},'content':{'type':Sequelize['STRING']},'key':{'type':Sequelize['STRING']},'keyType':{'type':Sequelize[_0x1c7c3b('0x4')](_0x1c7c3b('0x2'),_0x1c7c3b('0x1'),'customVariable')},'keyContent':{'type':Sequelize[_0x1c7c3b('0x5')]},'idField':{'type':Sequelize[_0x1c7c3b('0x5')]},'variableName':{'type':Sequelize[_0x1c7c3b('0x5')]}}; \ No newline at end of file +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 diff --git a/server/api/intSalesforceField/intSalesforceField.controller.js b/server/api/intSalesforceField/intSalesforceField.controller.js index f0ac23b..52ef890 100644 --- a/server/api/intSalesforceField/intSalesforceField.controller.js +++ b/server/api/intSalesforceField/intSalesforceField.controller.js @@ -1 +1 @@ -const a290_0x1054=['sort','attributes','error','api','offset','like','filters','fields','stack','update','body','options','intersection','VIRTUAL','name','map','include','then','set','SalesforceField','index','count','findOne','fieldName','catch','rawAttributes','model','sequelize','rows','key','params','show','send','../../config/logger','type','limit','merge','json','status','pick','end','filter','includeAll','query','where','sendStatus','nolimit','create','../../components/parsers/qs','keys','destroy','length'];(function(_0x11ede5,_0x10545f){const _0x3de723=function(_0x4cc76e){while(--_0x4cc76e){_0x11ede5['push'](_0x11ede5['shift']());}};_0x3de723(++_0x10545f);}(a290_0x1054,0x8e));const a290_0x3de7=function(_0x11ede5,_0x10545f){_0x11ede5=_0x11ede5-0x0;let _0x3de723=a290_0x1054[_0x11ede5];return _0x3de723;};const _0x7ff217=a290_0x3de7;'use strict';const _=require('lodash'),qs=require(_0x7ff217('0xa')),logger=require(_0x7ff217('0x2f'))(_0x7ff217('0x11')),db=require('../../mysqldb')['db'],{Op}=require(_0x7ff217('0x29'));function respondWithResult(_0x4cc76e,_0x1bb36f){return _0x1bb36f=_0x1bb36f||0xc8,function(_0x1dbbc1){const _0x37f325=a290_0x3de7;if(_0x1dbbc1)return _0x4cc76e['status'](_0x1bb36f)[_0x37f325('0x33')](_0x1dbbc1);};}function respondWithFilteredResult(_0xf54edc,_0x2f345f){return function(_0x206c0c){const _0x52e9a3=a290_0x3de7;if(_0x206c0c){const _0x3fd5d0=_0x206c0c[_0x52e9a3('0x23')],_0x417000=_0x2f345f['offset'];let _0x325290=_0x2f345f[_0x52e9a3('0x12')]+_0x2f345f[_0x52e9a3('0x31')],_0x54b73b;return _0x325290>=_0x3fd5d0?(_0x325290=_0x3fd5d0,_0x54b73b=0xc8):_0x54b73b=0xce,_0xf54edc[_0x52e9a3('0x0')](_0x54b73b),_0xf54edc[_0x52e9a3('0x20')]('Content-Range',_0x417000+'-'+_0x325290+'/'+_0x3fd5d0)[_0x52e9a3('0x33')](_0x206c0c);}return null;};}function saveUpdates(_0xf28983){return function(_0x34c8d9){const _0x567aed=a290_0x3de7;if(_0x34c8d9)return _0x34c8d9[_0x567aed('0x17')](_0xf28983)[_0x567aed('0x1f')](function(_0x475ed1){return _0x475ed1;});return null;};}function removeEntity(_0x303a9a){return function(_0x9ecf1d){const _0x111a7a=a290_0x3de7;if(_0x9ecf1d)return _0x9ecf1d[_0x111a7a('0xc')]()[_0x111a7a('0x1f')](function(){const _0x320188=_0x111a7a;_0x303a9a[_0x320188('0x0')](0xcc)[_0x320188('0x2')]();});};}function handleEntityNotFound(_0x30f508){return function(_0x2a41dc){const _0x12e9c6=a290_0x3de7;return!_0x2a41dc&&_0x30f508[_0x12e9c6('0x7')](0x194),_0x2a41dc;};}function handleError(_0xb7f42a,_0x2a1cb6){return _0x2a1cb6=_0x2a1cb6||0x1f4,function(_0x20bbe8){const _0x89d195=a290_0x3de7;logger[_0x89d195('0x10')](_0x20bbe8[_0x89d195('0x16')]),_0x20bbe8[_0x89d195('0x1c')]&&delete _0x20bbe8[_0x89d195('0x1c')],_0xb7f42a[_0x89d195('0x0')](_0x2a1cb6)[_0x89d195('0x2e')](_0x20bbe8);};}exports[_0x7ff217('0x22')]=function(_0x263684,_0x4b16ca){const _0x20e96a=_0x7ff217;let _0x23b2cc={};const _0x4f08c3={},_0x3027e3={'count':0x0,'rows':[]},_0x42f14f=_[_0x20e96a('0x1d')](db[_0x20e96a('0x21')]['rawAttributes'],function(_0x5b6cec){const _0x5d2e85=_0x20e96a;return{'name':_0x5b6cec[_0x5d2e85('0x25')],'type':_0x5b6cec[_0x5d2e85('0x30')][_0x5d2e85('0x2b')]};});_0x4f08c3[_0x20e96a('0x28')]=_[_0x20e96a('0x1d')](_0x42f14f,_0x20e96a('0x1c')),_0x4f08c3[_0x20e96a('0x5')]=_[_0x20e96a('0xb')](_0x263684[_0x20e96a('0x5')]),_0x4f08c3['filters']=_[_0x20e96a('0x1a')](_0x4f08c3['model'],_0x4f08c3['query']),_0x23b2cc[_0x20e96a('0xf')]=_['intersection'](_0x4f08c3[_0x20e96a('0x28')],qs['fields'](_0x263684[_0x20e96a('0x5')][_0x20e96a('0x15')])),_0x23b2cc[_0x20e96a('0xf')]=_0x23b2cc[_0x20e96a('0xf')][_0x20e96a('0xd')]?_0x23b2cc[_0x20e96a('0xf')]:_0x4f08c3['model'];typeof _0x263684['query'][_0x20e96a('0x8')]==='undefined'&&(_0x23b2cc['limit']=qs[_0x20e96a('0x31')](_0x263684[_0x20e96a('0x5')][_0x20e96a('0x31')]),_0x23b2cc[_0x20e96a('0x12')]=qs[_0x20e96a('0x12')](_0x263684[_0x20e96a('0x5')][_0x20e96a('0x12')]));_0x23b2cc['order']=qs['sort'](_0x263684[_0x20e96a('0x5')][_0x20e96a('0xe')]),_0x23b2cc['where']=qs[_0x20e96a('0x14')](_[_0x20e96a('0x1')](_0x263684[_0x20e96a('0x5')],_0x4f08c3[_0x20e96a('0x14')]),_0x42f14f);_0x263684[_0x20e96a('0x5')][_0x20e96a('0x3')]&&(_0x23b2cc[_0x20e96a('0x6')]=_[_0x20e96a('0x32')](_0x23b2cc[_0x20e96a('0x6')],{[Op['or']]:_[_0x20e96a('0x1d')](_0x42f14f,function(_0x5ab715){const _0x196291=_0x20e96a;if(_0x5ab715[_0x196291('0x30')]!==_0x196291('0x1b')){const _0x55a8cd={};return _0x55a8cd[_0x5ab715['name']]={[Op[_0x196291('0x13')]]:'%'+_0x263684[_0x196291('0x5')][_0x196291('0x3')]+'%'},_0x55a8cd;}})}));_0x23b2cc=_['merge']({},_0x23b2cc,_0x263684[_0x20e96a('0x19')]);const _0x3c0486={'where':_0x23b2cc[_0x20e96a('0x6')]};return db[_0x20e96a('0x21')]['count'](_0x3c0486)[_0x20e96a('0x1f')](function(_0xee97bc){const _0xc7e4af=_0x20e96a;return _0x3027e3[_0xc7e4af('0x23')]=_0xee97bc,_0x263684[_0xc7e4af('0x5')][_0xc7e4af('0x4')]&&(_0x23b2cc[_0xc7e4af('0x1e')]=[{'all':!![]}]),db[_0xc7e4af('0x21')]['findAll'](_0x23b2cc);})['then'](function(_0x1579ea){const _0x440d16=_0x20e96a;return _0x3027e3[_0x440d16('0x2a')]=_0x1579ea,_0x3027e3;})[_0x20e96a('0x1f')](respondWithFilteredResult(_0x4b16ca,_0x23b2cc))[_0x20e96a('0x26')](handleError(_0x4b16ca,null));},exports[_0x7ff217('0x2d')]=function(_0x1797c5,_0x9e47bb){const _0x3afaa2=_0x7ff217;let _0x2a3b02={'raw':!![],'where':{'id':_0x1797c5['params']['id']}};const _0x5a8909={};return _0x5a8909[_0x3afaa2('0x28')]=_[_0x3afaa2('0xb')](db[_0x3afaa2('0x21')][_0x3afaa2('0x27')]),_0x5a8909['query']=_[_0x3afaa2('0xb')](_0x1797c5['query']),_0x5a8909[_0x3afaa2('0x14')]=_[_0x3afaa2('0x1a')](_0x5a8909['model'],_0x5a8909[_0x3afaa2('0x5')]),_0x2a3b02[_0x3afaa2('0xf')]=_[_0x3afaa2('0x1a')](_0x5a8909[_0x3afaa2('0x28')],qs[_0x3afaa2('0x15')](_0x1797c5[_0x3afaa2('0x5')][_0x3afaa2('0x15')])),_0x2a3b02[_0x3afaa2('0xf')]=_0x2a3b02['attributes'][_0x3afaa2('0xd')]?_0x2a3b02[_0x3afaa2('0xf')]:_0x5a8909[_0x3afaa2('0x28')],_0x1797c5[_0x3afaa2('0x5')][_0x3afaa2('0x4')]&&(_0x2a3b02['include']=[{'all':!![]}]),_0x2a3b02=_[_0x3afaa2('0x32')]({},_0x2a3b02,_0x1797c5[_0x3afaa2('0x19')]),db[_0x3afaa2('0x21')][_0x3afaa2('0x24')](_0x2a3b02)[_0x3afaa2('0x1f')](handleEntityNotFound(_0x9e47bb,null))[_0x3afaa2('0x1f')](respondWithResult(_0x9e47bb,null))[_0x3afaa2('0x26')](handleError(_0x9e47bb,null));},exports[_0x7ff217('0x9')]=function(_0x2abca0,_0xed9b59){const _0x23b4d6=_0x7ff217;return db[_0x23b4d6('0x21')]['create'](_0x2abca0[_0x23b4d6('0x18')],{})[_0x23b4d6('0x1f')](respondWithResult(_0xed9b59,0xc9))[_0x23b4d6('0x26')](handleError(_0xed9b59,null));},exports[_0x7ff217('0x17')]=function(_0x7a7ed,_0x53f38c){const _0x484b86=_0x7ff217;return _0x7a7ed[_0x484b86('0x18')]['id']&&delete _0x7a7ed['body']['id'],db[_0x484b86('0x21')][_0x484b86('0x24')]({'where':{'id':_0x7a7ed[_0x484b86('0x2c')]['id']}})[_0x484b86('0x1f')](handleEntityNotFound(_0x53f38c,null))[_0x484b86('0x1f')](saveUpdates(_0x7a7ed[_0x484b86('0x18')],null))['then'](respondWithResult(_0x53f38c,null))[_0x484b86('0x26')](handleError(_0x53f38c,null));},exports[_0x7ff217('0xc')]=function(_0x2a8422,_0x30bc1a){const _0x556236=_0x7ff217;return db['SalesforceField'][_0x556236('0x24')]({'where':{'id':_0x2a8422[_0x556236('0x2c')]['id']}})['then'](handleEntityNotFound(_0x30bc1a,null))[_0x556236('0x1f')](removeEntity(_0x30bc1a,null))['catch'](handleError(_0x30bc1a,null));}; \ No newline at end of file +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 diff --git a/server/api/intSalesforceField/intSalesforceField.model.js b/server/api/intSalesforceField/intSalesforceField.model.js index 2f768f2..c00cf34 100644 --- a/server/api/intSalesforceField/intSalesforceField.model.js +++ b/server/api/intSalesforceField/intSalesforceField.model.js @@ -1 +1 @@ -const a291_0x1665=['idField','exports','FieldId','salesforce_unique_index','SalesforceField','define','./intSalesforceField.attributes'];(function(_0x57c237,_0x16654c){const _0x25463e=function(_0x17640c){while(--_0x17640c){_0x57c237['push'](_0x57c237['shift']());}};_0x25463e(++_0x16654c);}(a291_0x1665,0x1db));const a291_0x2546=function(_0x57c237,_0x16654c){_0x57c237=_0x57c237-0x0;let _0x25463e=a291_0x1665[_0x57c237];return _0x25463e;};const _0x3e94f5=a291_0x2546;'use strict';const attributes=require(_0x3e94f5('0x0'));module[_0x3e94f5('0x2')]=function(_0x17640c){const _0x36c292=_0x3e94f5,_0x49df73=_0x17640c[_0x36c292('0x6')](_0x36c292('0x5'),attributes,{'tableName':'int_salesforce_fields','paranoid':![],'indexes':[{'name':_0x36c292('0x4'),'fields':[_0x36c292('0x1'),_0x36c292('0x3')],'unique':!![]}],'timestamps':!![]});return _0x49df73;}; \ No newline at end of file +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 diff --git a/server/api/intServicenowAccount/index.js b/server/api/intServicenowAccount/index.js index 9090096..8b50552 100644 --- a/server/api/intServicenowAccount/index.js +++ b/server/api/intServicenowAccount/index.js @@ -1 +1 @@ -const a292_0x5ca7=['create','destroy','/:id','Router','post','express','./intServicenowAccount.controller','update','getFields','put','/:id/configurations','/:id/fields','get','show','exports','index','isAuthenticated','addConfiguration','delete'];(function(_0x143e5c,_0x5ca72a){const _0x2f2455=function(_0xbe854){while(--_0xbe854){_0x143e5c['push'](_0x143e5c['shift']());}};_0x2f2455(++_0x5ca72a);}(a292_0x5ca7,0x11d));const a292_0x2f24=function(_0x143e5c,_0x5ca72a){_0x143e5c=_0x143e5c-0x0;let _0x2f2455=a292_0x5ca7[_0x143e5c];return _0x2f2455;};const _0x5c0c59=a292_0x2f24;'use strict';const express=require(_0x5c0c59('0x5')),router=express[_0x5c0c59('0x3')](),auth=require('../../components/auth/service'),controller=require(_0x5c0c59('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0x5c0c59('0xf')]),router[_0x5c0c59('0xc')](_0x5c0c59('0x2'),auth[_0x5c0c59('0x10')](),controller[_0x5c0c59('0xd')]),router['get'](_0x5c0c59('0xa'),auth['isAuthenticated'](),controller['getConfigurations']),router[_0x5c0c59('0xc')](_0x5c0c59('0xb'),auth['isAuthenticated'](),controller[_0x5c0c59('0x8')]),router[_0x5c0c59('0x4')]('/',auth['isAuthenticated'](),controller[_0x5c0c59('0x0')]),router[_0x5c0c59('0x4')](_0x5c0c59('0xa'),auth['isAuthenticated'](),controller[_0x5c0c59('0x11')]),router[_0x5c0c59('0x9')](_0x5c0c59('0x2'),auth['isAuthenticated'](),controller[_0x5c0c59('0x7')]),router[_0x5c0c59('0x12')](_0x5c0c59('0x2'),auth['isAuthenticated'](),controller[_0x5c0c59('0x1')]),module[_0x5c0c59('0xe')]=router; \ No newline at end of file +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 diff --git a/server/api/intServicenowAccount/intServicenowAccount.attributes.js b/server/api/intServicenowAccount/intServicenowAccount.attributes.js index 2ceaf3c..0bbb183 100644 --- a/server/api/intServicenowAccount/intServicenowAccount.attributes.js +++ b/server/api/intServicenowAccount/intServicenowAccount.attributes.js @@ -1 +1 @@ -const a293_0x5494=['username','sequelize','STRING'];(function(_0x4f9aba,_0x549488){const _0x8637b6=function(_0x443502){while(--_0x443502){_0x4f9aba['push'](_0x4f9aba['shift']());}};_0x8637b6(++_0x549488);}(a293_0x5494,0x13a));const a293_0x8637=function(_0x4f9aba,_0x549488){_0x4f9aba=_0x4f9aba-0x0;let _0x8637b6=a293_0x5494[_0x4f9aba];return _0x8637b6;};const _0x1cc184=a293_0x8637;'use strict';const Sequelize=require(_0x1cc184('0x2'));module['exports']={'name':{'type':Sequelize[_0x1cc184('0x0')]},'description':{'type':Sequelize[_0x1cc184('0x0')]},'username':{'type':Sequelize[_0x1cc184('0x0')],'unique':_0x1cc184('0x1')},'password':{'type':Sequelize[_0x1cc184('0x0')]},'email':{'type':Sequelize[_0x1cc184('0x0')]},'remoteUri':{'type':Sequelize['STRING'],'unique':'remoteUri'},'serverUrl':{'type':Sequelize['STRING']}}; \ No newline at end of file +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 diff --git a/server/api/intServicenowAccount/intServicenowAccount.controller.js b/server/api/intServicenowAccount/intServicenowAccount.controller.js index 8bb436e..a5fd858 100644 --- a/server/api/intServicenowAccount/intServicenowAccount.controller.js +++ b/server/api/intServicenowAccount/intServicenowAccount.controller.js @@ -1 +1 @@ -const a294_0x53f5=['rawAttributes','approval_history','caller_id','username','active','catch','filters','destroy','getFields','undefined','name','opened_by','remoteUri','where','internalType','stack','caused_by','format','notify','options','filter','closed_by','../../config/logger','rows','map','lodash','keys','rfc','business_service','sendStatus','close_code','sys_domain_path','nolimit','set','severity','Descriptions','reopen_count','resolved_at','comments','work_end','test','channel','result','activity_due','short_description','util','Subjects','push','all','remove','body','correlation_id','length','like','offset','TCL:\x20exports.getEntityFields\x20->\x20_objectsCustom','description','expected_start','priority','due_date','sys_created_on','%s/api/now/table/','serverUrl','index','forEach','includes','model','ServicenowField','label','send','upon_approval','sort','subcategory','Wrong\x20credentials','slice','approval_set','type','category','merge','cmdb_ci','password','create','hold_reason','problem_id','then','sys_updated_on','closed_at','resolved_by','error','intersection','statusCode','state','limit','calendar_stc','value','log','incident?sysparm_display_value=all','ServicenowAccount','request-promise-native','count','True','params','%s/api/now/doc/table/schema/','made_sla','sys_choice?sysparm_query=name=incident^element=','pick','urgency','includeAll','business_duration','AccountId','delivery_task','incident_state','upon_reject','order','business_stc','json','ServiceNow\x20error:\x20','status','group_list','sla_due','GET','sys_mod_count','query','update','knowledge','getConfigurations','../../components/parsers/qs','fields','assign','boolean','end','Content-Range','ServicenowConfiguration','key','VIRTUAL','findOne','child_incidents','attributes','location','user_input','number','concat','contact_type','parent','false','time_worked','sys_tags','correlation_display','reopened_time','approval','work_notes'];(function(_0x4f705f,_0x53f5fa){const _0x90b67b=function(_0x389ded){while(--_0x389ded){_0x4f705f['push'](_0x4f705f['shift']());}};_0x90b67b(++_0x53f5fa);}(a294_0x53f5,0xc7));const a294_0x90b6=function(_0x4f705f,_0x53f5fa){_0x4f705f=_0x4f705f-0x0;let _0x90b67b=a294_0x53f5[_0x4f705f];return _0x90b67b;};const _0x2af517=a294_0x90b6;'use strict';const rp=require(_0x2af517('0x32')),util=require(_0x2af517('0x94')),_=require(_0x2af517('0x80')),qs=require(_0x2af517('0x4e')),logger=require(_0x2af517('0x7d'))('api'),db=require('../../mysqldb')['db'],{Op}=require('sequelize'),integrations=require('../../components/integrations/configuration');function respondWithResult(_0x389ded,_0x78e36){return _0x78e36=_0x78e36||0xc8,function(_0x460979){const _0x9fe532=a294_0x90b6;if(_0x460979)return _0x389ded[_0x9fe532('0x45')](_0x78e36)[_0x9fe532('0x43')](_0x460979);};}function respondWithFilteredResult(_0x3b7683,_0x40c4c7){return function(_0x3e915d){const _0x1da734=a294_0x90b6;if(_0x3e915d){const _0x22904c=_0x3e915d[_0x1da734('0x33')],_0x1e1b1c=_0x40c4c7[_0x1da734('0x6')];let _0xafdbe8=_0x40c4c7[_0x1da734('0x6')]+_0x40c4c7[_0x1da734('0x2c')],_0x2c662c;return _0xafdbe8>=_0x22904c?(_0xafdbe8=_0x22904c,_0x2c662c=0xc8):_0x2c662c=0xce,_0x3b7683[_0x1da734('0x45')](_0x2c662c),_0x3b7683[_0x1da734('0x88')](_0x1da734('0x53'),_0x1e1b1c+'-'+_0xafdbe8+'/'+_0x22904c)[_0x1da734('0x43')](_0x3e915d);}return null;};}function saveUpdates(_0x5bb280){return function(_0x334fdc){const _0x7ea461=a294_0x90b6;if(_0x334fdc)return _0x334fdc[_0x7ea461('0x4b')](_0x5bb280)['then'](function(_0x4db5e2){return _0x4db5e2;});return null;};}function removeEntity(_0x17237d){return function(_0x31fa68){const _0x2f4f34=a294_0x90b6;if(_0x31fa68)return _0x31fa68[_0x2f4f34('0x6e')]()[_0x2f4f34('0x24')](function(){const _0x2bbb9b=_0x2f4f34;_0x17237d[_0x2bbb9b('0x45')](0xcc)[_0x2bbb9b('0x52')]();});};}function handleEntityNotFound(_0x4c9306){return function(_0x538269){const _0x2ae106=a294_0x90b6;return!_0x538269&&_0x4c9306[_0x2ae106('0x84')](0x194),_0x538269;};}function handleError(_0x1a72b8,_0x23da50){return _0x23da50=_0x23da50||0x1f4,function(_0x414be3){const _0x5942e7=a294_0x90b6;logger[_0x5942e7('0x28')](_0x414be3[_0x5942e7('0x76')]),_0x414be3['name']&&delete _0x414be3[_0x5942e7('0x71')],_0x1a72b8[_0x5942e7('0x45')](_0x23da50)[_0x5942e7('0x15')](_0x414be3);};}exports[_0x2af517('0xf')]=function(_0x6910a9,_0x36ec6a){const _0x4fe675=_0x2af517;let _0x252ac4={};const _0x48c580={},_0xea9ce6={'count':0x0,'rows':[]},_0x261dc7=_[_0x4fe675('0x7f')](db[_0x4fe675('0x31')][_0x4fe675('0x67')],function(_0x28eec5){const _0x83a5ff=_0x4fe675;return{'name':_0x28eec5['fieldName'],'type':_0x28eec5['type'][_0x83a5ff('0x55')]};});_0x48c580[_0x4fe675('0x12')]=_['map'](_0x261dc7,_0x4fe675('0x71')),_0x48c580['query']=_[_0x4fe675('0x81')](_0x6910a9[_0x4fe675('0x4a')]),_0x48c580[_0x4fe675('0x6d')]=_[_0x4fe675('0x29')](_0x48c580[_0x4fe675('0x12')],_0x48c580[_0x4fe675('0x4a')]),_0x252ac4[_0x4fe675('0x59')]=_[_0x4fe675('0x29')](_0x48c580[_0x4fe675('0x12')],qs[_0x4fe675('0x4f')](_0x6910a9[_0x4fe675('0x4a')][_0x4fe675('0x4f')])),_0x252ac4[_0x4fe675('0x59')]=_0x252ac4[_0x4fe675('0x59')][_0x4fe675('0x4')]?_0x252ac4[_0x4fe675('0x59')]:_0x48c580[_0x4fe675('0x12')];typeof _0x6910a9[_0x4fe675('0x4a')][_0x4fe675('0x87')]===_0x4fe675('0x70')&&(_0x252ac4['limit']=qs[_0x4fe675('0x2c')](_0x6910a9[_0x4fe675('0x4a')][_0x4fe675('0x2c')]),_0x252ac4[_0x4fe675('0x6')]=qs[_0x4fe675('0x6')](_0x6910a9['query'][_0x4fe675('0x6')]));_0x252ac4[_0x4fe675('0x41')]=qs[_0x4fe675('0x17')](_0x6910a9[_0x4fe675('0x4a')][_0x4fe675('0x17')]),_0x252ac4[_0x4fe675('0x74')]=qs[_0x4fe675('0x6d')](_[_0x4fe675('0x39')](_0x6910a9[_0x4fe675('0x4a')],_0x48c580[_0x4fe675('0x6d')]),_0x261dc7);_0x6910a9[_0x4fe675('0x4a')]['filter']&&(_0x252ac4[_0x4fe675('0x74')]=_[_0x4fe675('0x1e')](_0x252ac4[_0x4fe675('0x74')],{[Op['or']]:_[_0x4fe675('0x7f')](_0x261dc7,function(_0x458939){const _0x2d165b=_0x4fe675;if(_0x458939['type']!==_0x2d165b('0x56')){const _0x593c82={};return _0x593c82[_0x458939[_0x2d165b('0x71')]]={[Op[_0x2d165b('0x5')]]:'%'+_0x6910a9[_0x2d165b('0x4a')][_0x2d165b('0x7b')]+'%'},_0x593c82;}})}));_0x252ac4=_[_0x4fe675('0x1e')]({},_0x252ac4,_0x6910a9[_0x4fe675('0x7a')]);const _0x5006d1={'where':_0x252ac4[_0x4fe675('0x74')]};return db['ServicenowAccount']['count'](_0x5006d1)[_0x4fe675('0x24')](function(_0x31a476){const _0x9bc96e=_0x4fe675;return _0xea9ce6[_0x9bc96e('0x33')]=_0x31a476,_0x6910a9[_0x9bc96e('0x4a')][_0x9bc96e('0x3b')]&&(_0x252ac4['include']=[{'all':!![]}]),db['ServicenowAccount']['findAll'](_0x252ac4);})[_0x4fe675('0x24')](function(_0x43b3fa){const _0x197d42=_0x4fe675;return _0xea9ce6[_0x197d42('0x7e')]=_0x43b3fa,_0xea9ce6;})[_0x4fe675('0x24')](respondWithFilteredResult(_0x36ec6a,_0x252ac4))['catch'](handleError(_0x36ec6a,null));},exports['show']=function(_0x38a86b,_0x40e6ea){const _0x2ba5b3=_0x2af517;let _0x232c6a={'raw':![],'where':{'id':_0x38a86b[_0x2ba5b3('0x35')]['id']}};const _0x3aba9a={};return _0x3aba9a[_0x2ba5b3('0x12')]=_[_0x2ba5b3('0x81')](db[_0x2ba5b3('0x31')][_0x2ba5b3('0x67')]),_0x3aba9a[_0x2ba5b3('0x4a')]=_[_0x2ba5b3('0x81')](_0x38a86b[_0x2ba5b3('0x4a')]),_0x3aba9a['filters']=_[_0x2ba5b3('0x29')](_0x3aba9a['model'],_0x3aba9a[_0x2ba5b3('0x4a')]),_0x232c6a[_0x2ba5b3('0x59')]=_[_0x2ba5b3('0x29')](_0x3aba9a[_0x2ba5b3('0x12')],qs['fields'](_0x38a86b[_0x2ba5b3('0x4a')]['fields'])),_0x232c6a[_0x2ba5b3('0x59')]=_0x232c6a['attributes'][_0x2ba5b3('0x4')]?_0x232c6a[_0x2ba5b3('0x59')]:_0x3aba9a[_0x2ba5b3('0x12')],_0x38a86b[_0x2ba5b3('0x4a')]['includeAll']&&(_0x232c6a['include']=[{'all':!![]}]),_0x232c6a=_['merge']({},_0x232c6a,_0x38a86b[_0x2ba5b3('0x7a')]),db['ServicenowAccount'][_0x2ba5b3('0x57')](_0x232c6a)[_0x2ba5b3('0x24')](handleEntityNotFound(_0x40e6ea,null))['then'](respondWithResult(_0x40e6ea,null))[_0x2ba5b3('0x6c')](handleError(_0x40e6ea,null));},exports[_0x2af517('0x21')]=function(_0x1dc8dd,_0x3dd24c){const _0x5e7a5d=_0x2af517;return db[_0x5e7a5d('0x31')][_0x5e7a5d('0x21')](_0x1dc8dd[_0x5e7a5d('0x2')],{})[_0x5e7a5d('0x24')](respondWithResult(_0x3dd24c,0xc9))[_0x5e7a5d('0x6c')](handleError(_0x3dd24c,null));},exports[_0x2af517('0x4b')]=function(_0x5b45a8,_0x319918){const _0x12db23=_0x2af517;return _0x5b45a8[_0x12db23('0x2')]['id']&&delete _0x5b45a8[_0x12db23('0x2')]['id'],db[_0x12db23('0x31')][_0x12db23('0x57')]({'where':{'id':_0x5b45a8[_0x12db23('0x35')]['id']}})[_0x12db23('0x24')](handleEntityNotFound(_0x319918,null))[_0x12db23('0x24')](saveUpdates(_0x5b45a8[_0x12db23('0x2')],null))[_0x12db23('0x24')](respondWithResult(_0x319918,null))[_0x12db23('0x6c')](handleError(_0x319918,null));},exports[_0x2af517('0x6e')]=function(_0x380254,_0x34ab02){const _0x5be35a=_0x2af517;return db['ServicenowAccount'][_0x5be35a('0x57')]({'where':{'id':_0x380254[_0x5be35a('0x35')]['id']}})[_0x5be35a('0x24')](handleEntityNotFound(_0x34ab02,null))[_0x5be35a('0x24')](removeEntity(_0x34ab02,null))[_0x5be35a('0x6c')](handleError(_0x34ab02,null));},exports[_0x2af517('0x4d')]=function(_0xb5db63,_0x37a40d){const _0x175c6c=_0x2af517;let _0x22437f={};const _0x197277={};let _0xea45b7,_0x574526;return db['ServicenowAccount']['findOne']({'where':{'id':_0xb5db63[_0x175c6c('0x35')]['id']}})[_0x175c6c('0x24')](handleEntityNotFound(_0x37a40d,null))[_0x175c6c('0x24')](function(_0x2950aa){const _0x403d94=_0x175c6c;if(_0x2950aa)return _0xea45b7=_0x2950aa,_0x197277[_0x403d94('0x12')]=_['keys'](db[_0x403d94('0x54')][_0x403d94('0x67')]),_0x197277[_0x403d94('0x4a')]=_[_0x403d94('0x81')](_0xb5db63[_0x403d94('0x4a')]),_0x197277[_0x403d94('0x6d')]=_['intersection'](_0x197277[_0x403d94('0x12')],_0x197277[_0x403d94('0x4a')]),_0x22437f['attributes']=_[_0x403d94('0x29')](_0x197277[_0x403d94('0x12')],qs['fields'](_0xb5db63[_0x403d94('0x4a')][_0x403d94('0x4f')])),_0x22437f['attributes']=_0x22437f[_0x403d94('0x59')][_0x403d94('0x4')]?_0x22437f[_0x403d94('0x59')]:_0x197277[_0x403d94('0x12')],_0x22437f[_0x403d94('0x41')]=qs['sort'](_0xb5db63[_0x403d94('0x4a')][_0x403d94('0x17')]),_0x22437f[_0x403d94('0x74')]=qs[_0x403d94('0x6d')](_[_0x403d94('0x39')](_0xb5db63[_0x403d94('0x4a')],_0x197277['filters'])),_0xb5db63[_0x403d94('0x4a')][_0x403d94('0x7b')]&&(_0x22437f[_0x403d94('0x74')]=_['merge'](_0x22437f['where'],{[Op['or']]:_[_0x403d94('0x7f')](_0x22437f[_0x403d94('0x59')],function(_0x44c544){const _0x133d13=_0x403d94,_0x5c0465={};return _0x5c0465[_0x44c544]={[Op[_0x133d13('0x5')]]:'%'+_0xb5db63[_0x133d13('0x4a')][_0x133d13('0x7b')]+'%'},_0x5c0465;})})),_0x22437f=_[_0x403d94('0x1e')]({},_0x22437f,_0xb5db63[_0x403d94('0x7a')]),_0xea45b7[_0x403d94('0x4d')](_0x22437f);})['then'](function(_0x12b5e2){const _0x1ef67d=_0x175c6c;if(_0x12b5e2)return _0x574526=_0x12b5e2[_0x1ef67d('0x4')],typeof _0xb5db63['query']['nolimit']===_0x1ef67d('0x70')&&(_0x22437f[_0x1ef67d('0x2c')]=qs[_0x1ef67d('0x2c')](_0xb5db63['query'][_0x1ef67d('0x2c')]),_0x22437f[_0x1ef67d('0x6')]=qs[_0x1ef67d('0x6')](_0xb5db63['query']['offset'])),_0xea45b7[_0x1ef67d('0x4d')](_0x22437f);})['then'](function(_0x2af3eb){if(_0x2af3eb)return _0x2af3eb?{'count':_0x574526,'rows':_0x2af3eb}:null;})[_0x175c6c('0x24')](respondWithResult(_0x37a40d,null))[_0x175c6c('0x6c')](handleError(_0x37a40d,null));},exports['addConfiguration']=function(_0x453943,_0x413512){const _0x5b7cc5=_0x2af517;return _0x453943[_0x5b7cc5('0x2')]['id']&&delete _0x453943[_0x5b7cc5('0x2')]['id'],db[_0x5b7cc5('0x31')][_0x5b7cc5('0x57')]({'where':{'id':_0x453943[_0x5b7cc5('0x35')]['id']}})['then'](handleEntityNotFound(_0x413512,null))[_0x5b7cc5('0x24')](function(_0x102abc){const _0x5e2caf=_0x5b7cc5;if(_0x102abc)return _0x453943[_0x5e2caf('0x2')][_0x5e2caf('0x3d')]=_0x102abc['id'],_0x453943[_0x5e2caf('0x2')][_0x5e2caf('0x95')]=integrations['getSubjects'](_0x453943['body'][_0x5e2caf('0x90')],_0x453943[_0x5e2caf('0x2')][_0x5e2caf('0x1c')]),_0x453943[_0x5e2caf('0x2')][_0x5e2caf('0x8a')]=integrations['getDescriptions'](_0x453943[_0x5e2caf('0x2')][_0x5e2caf('0x90')],_0x453943[_0x5e2caf('0x2')][_0x5e2caf('0x1c')]),db['ServicenowConfiguration']['create'](_0x453943[_0x5e2caf('0x2')],{'include':[{'model':db[_0x5e2caf('0x13')],'as':_0x5e2caf('0x95')},{'model':db['ServicenowField'],'as':'Descriptions'}]});return null;})[_0x5b7cc5('0x24')](respondWithResult(_0x413512,null))[_0x5b7cc5('0x6c')](handleError(_0x413512,null));},exports[_0x2af517('0x6f')]=function(_0x3c600e,_0x2a829f){const _0x8465f1=_0x2af517,_0x1b4dcc=[_0x8465f1('0x37'),_0x8465f1('0x22'),_0x8465f1('0x4c'),_0x8465f1('0x18'),'close_code','notify',_0x8465f1('0x3f'),_0x8465f1('0x89'),_0x8465f1('0x1d')],_0x4ebdc7=[_0x8465f1('0x5f'),_0x8465f1('0x37'),_0x8465f1('0x77'),'watch_list',_0x8465f1('0x40'),_0x8465f1('0x25'),_0x8465f1('0x58'),'hold_reason',_0x8465f1('0x68'),_0x8465f1('0x5c'),_0x8465f1('0x27'),'sys_updated_by',_0x8465f1('0x72'),_0x8465f1('0x5b'),_0x8465f1('0xc'),'sys_domain',_0x8465f1('0x2b'),'sys_created_by',_0x8465f1('0x4c'),_0x8465f1('0x41'),_0x8465f1('0x2d'),_0x8465f1('0x26'),_0x8465f1('0x1f'),'delivery_plan','impact',_0x8465f1('0x6b'),'work_notes_list',_0x8465f1('0x83'),_0x8465f1('0xa'),_0x8465f1('0x86'),_0x8465f1('0x82'),_0x8465f1('0x61'),_0x8465f1('0x9'),'opened_at',_0x8465f1('0x3c'),_0x8465f1('0x46'),_0x8465f1('0x8e'),_0x8465f1('0x64'),_0x8465f1('0x8c'),_0x8465f1('0x69'),_0x8465f1('0x1b'),'subcategory',_0x8465f1('0x66'),_0x8465f1('0x93'),_0x8465f1('0x85'),_0x8465f1('0x63'),_0x8465f1('0x3e'),'work_start','assignment_group',_0x8465f1('0x42'),'additional_assignee_list',_0x8465f1('0x8'),'calendar_duration',_0x8465f1('0x79'),'sys_class_name','close_notes',_0x8465f1('0x7c'),'follow_up','parent_incident','sys_id',_0x8465f1('0x5e'),'reopened_by',_0x8465f1('0x3f'),_0x8465f1('0x3a'),_0x8465f1('0x23'),'company','reassignment_count',_0x8465f1('0x92'),'assigned_to','severity',_0x8465f1('0x8d'),_0x8465f1('0x47'),_0x8465f1('0x65'),'comments_and_work_notes',_0x8465f1('0xb'),_0x8465f1('0x49'),_0x8465f1('0x8b'),_0x8465f1('0x62'),'escalation',_0x8465f1('0x16'),_0x8465f1('0x3'),_0x8465f1('0x5a'),'category'];let _0x809b60='',_0x59afc4='',_0x495f95=[],_0x287edf='',_0x4ccd92='',_0x17c0d8=[],_0x299443='',_0x38ec77='',_0x3d395e={},_0x3a6698='';return db[_0x8465f1('0x31')]['findOne']({'where':{'id':_0x3c600e['params']['id']},'attributes':['id',_0x8465f1('0x6a'),_0x8465f1('0x20'),'email',_0x8465f1('0x73'),_0x8465f1('0xe')]})[_0x8465f1('0x24')](handleEntityNotFound(_0x2a829f,null))[_0x8465f1('0x24')](function(_0x1cd60f){const _0xd0b5d8=_0x8465f1;if(_0x1cd60f){_0x3a6698=_0x1cd60f['remoteUri'];const _0x33c120=_0x3a6698[_0xd0b5d8('0x1a')](-0x1);_0x33c120==='/'&&(_0x3a6698=_0x3a6698['substring'](0x0,_0x3a6698['lastIndexOf'](_0x33c120)));_0x38ec77=util[_0xd0b5d8('0x78')](_0xd0b5d8('0x36'),_0x3a6698),_0x299443=util[_0xd0b5d8('0x78')](_0xd0b5d8('0xd'),_0x3a6698),_0x3d395e={'user':_0x1cd60f[_0xd0b5d8('0x6a')],'pass':_0x1cd60f[_0xd0b5d8('0x20')]};const _0x1939fc={'method':'GET','uri':_0x38ec77+_0xd0b5d8('0x30'),'auth':_0x3d395e,'json':!![]};return rp(_0x1939fc);}})[_0x8465f1('0x24')](function(_0x4c72e8){const _0x3d0ac5=_0x8465f1;return _0x4c72e8[_0x3d0ac5('0x91')]['length']>0x0&&(_0x809b60=_0x4c72e8[_0x3d0ac5('0x91')]),console[_0x3d0ac5('0x2f')]('incident\x20table\x20objects',_0x809b60),_0x17c0d8=[],_0x59afc4=Object[_0x3d0ac5('0x50')]([],_0x809b60),_['remove'](_0x59afc4,function(_0x37d769){const _0x353c88=_0x3d0ac5;return!_0x1b4dcc[_0x353c88('0x11')](_0x37d769[_0x353c88('0x71')]);}),_0x59afc4[_0x3d0ac5('0x10')](function(_0x586d9e){const _0x3f26a7=_0x3d0ac5,_0x1f65bd=createFieldObject(_0x299443,_0x3d395e,_0x586d9e['internalType'],_0x586d9e['name'],_0x586d9e[_0x3f26a7('0x14')],![]);_0x17c0d8[_0x3f26a7('0x96')](_0x1f65bd);}),Promise[_0x3d0ac5('0x0')](_0x17c0d8);})[_0x8465f1('0x24')](function(_0x40a3a1){const _0xacb9b5=_0x8465f1;return _0x495f95=_0x40a3a1,_0x287edf=Object[_0xacb9b5('0x50')]([],_0x809b60),console[_0xacb9b5('0x2f')]('TCL:\x20_object',_0x809b60),_[_0xacb9b5('0x1')](_0x287edf,function(_0x5e2452){const _0x1e7ece=_0xacb9b5;return _0x4ebdc7['includes'](_0x5e2452[_0x1e7ece('0x71')]);}),console[_0xacb9b5('0x2f')](_0xacb9b5('0x7'),_0x287edf),_0x17c0d8=[],_0x287edf[_0xacb9b5('0x10')](function(_0x185f64){const _0x31ed91=_0xacb9b5,_0x3b5286=createFieldObject(_0x299443,_0x3d395e,_0x185f64[_0x31ed91('0x75')],_0x185f64[_0x31ed91('0x71')],_0x185f64['label'],!![]);_0x17c0d8[_0x31ed91('0x96')](_0x3b5286);}),Promise[_0xacb9b5('0x0')](_0x17c0d8);})[_0x8465f1('0x24')](function(_0x133897){const _0x2a4f2b=_0x8465f1;_0x4ccd92=_0x133897;const _0x473db9=_0x495f95[_0x2a4f2b('0x5d')](_0x4ccd92);return{'count':_0x473db9[_0x2a4f2b('0x4')],'rows':_0x473db9};})['then'](respondWithResult(_0x2a829f,null))[_0x8465f1('0x6c')](function(_0x56cd0c){const _0x1c44f4=_0x8465f1;console[_0x1c44f4('0x2f')](_0x1c44f4('0x44')+_0x56cd0c);let _0x15c563=_0x3c600e['query'][_0x1c44f4('0x8f')]?0x1f4:_0x56cd0c['statusCode']||0x1f4;logger[_0x1c44f4('0x28')](_0x56cd0c[_0x1c44f4('0x76')]),delete _0x56cd0c['name'],_0x15c563===0x191&&(_0x15c563=0x190),_0x2a829f[_0x1c44f4('0x45')](_0x15c563)[_0x1c44f4('0x15')](_0x3c600e[_0x1c44f4('0x4a')][_0x1c44f4('0x8f')]?{'message':_0x1c44f4('0x19'),'statusCode':_0x56cd0c[_0x1c44f4('0x2a')]}:_0x56cd0c);});};function createFieldObject(_0x20840f,_0x4ac984,_0x44cbaa,_0x4659b3,_0x422af5,_0x20aac8){return new Promise(function(_0x2a0c18){const _0x26d10a=a294_0x90b6,_0x1c1b3e={'id':_0x4659b3,'name':_0x422af5,'custom':_0x20aac8};if(_0x44cbaa===_0x26d10a('0x51'))_0x1c1b3e[_0x26d10a('0x7a')]=[{'name':_0x26d10a('0x34'),'value':'true'},{'name':'False','value':'false'}],_0x2a0c18(_0x1c1b3e);else{const _0x169523={'method':_0x26d10a('0x48'),'uri':_0x20840f+_0x26d10a('0x38')+_0x4659b3,'auth':_0x4ac984,'json':!![]};return rp(_0x169523)[_0x26d10a('0x24')](function(_0x2a3dca){const _0xcd468c=_0x26d10a,_0x54f6c7=[];_0x2a3dca['result'][_0xcd468c('0x4')]>0x0&&_0x2a3dca[_0xcd468c('0x91')][_0xcd468c('0x10')](function(_0x53e88a){const _0x5e7da7=_0xcd468c;if(_0x53e88a['inactive']===_0x5e7da7('0x60')){const _0x233b6d={'name':_0x53e88a['label'],'value':_0x53e88a[_0x5e7da7('0x2e')]};_0x54f6c7[_0x5e7da7('0x96')](_0x233b6d);}}),_0x1c1b3e[_0xcd468c('0x7a')]=_0x54f6c7,_0x1c1b3e['options'][_0xcd468c('0x4')]>0x0?_0x2a0c18(_0x1c1b3e):_0x20aac8==![]?_0x2a0c18():_0x2a0c18(_0x1c1b3e);});}});} \ No newline at end of file +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 diff --git a/server/api/intServicenowAccount/intServicenowAccount.model.js b/server/api/intServicenowAccount/intServicenowAccount.model.js index c2e755d..b587a75 100644 --- a/server/api/intServicenowAccount/intServicenowAccount.model.js +++ b/server/api/intServicenowAccount/intServicenowAccount.model.js @@ -1 +1 @@ -const a295_0x5631=['define','exports','ServicenowAccount','int_servicenow_accounts','./intServicenowAccount.attributes'];(function(_0x2fa030,_0x563199){const _0x2993c6=function(_0xc7632f){while(--_0xc7632f){_0x2fa030['push'](_0x2fa030['shift']());}};_0x2993c6(++_0x563199);}(a295_0x5631,0x8b));const a295_0x2993=function(_0x2fa030,_0x563199){_0x2fa030=_0x2fa030-0x0;let _0x2993c6=a295_0x5631[_0x2fa030];return _0x2993c6;};const _0x22fd9d=a295_0x2993;'use strict';const attributes=require(_0x22fd9d('0x0'));module[_0x22fd9d('0x2')]=function(_0xc7632f){const _0x43e60f=_0x22fd9d,_0x3b48d8=_0xc7632f[_0x43e60f('0x1')](_0x43e60f('0x3'),attributes,{'tableName':_0x43e60f('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3b48d8;}; \ No newline at end of file +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 diff --git a/server/api/intServicenowAccount/intServicenowAccount.rpc.js b/server/api/intServicenowAccount/intServicenowAccount.rpc.js index 1123158..3431296 100644 --- a/server/api/intServicenowAccount/intServicenowAccount.rpc.js +++ b/server/api/intServicenowAccount/intServicenowAccount.rpc.js @@ -1 +1 @@ -const a296_0x12d3=['findOne','include','findAll','where','attributes','map','GetServicenowAccount','options','lodash','ShowServicenowAccount','model','limit','stringify','ServicenowAccount','debug','error','catch','then','message','../../mysqldb','info','raw'];(function(_0xa06ee8,_0x12d306){const _0x7a61b9=function(_0x3ad368){while(--_0x3ad368){_0xa06ee8['push'](_0xa06ee8['shift']());}};_0x7a61b9(++_0x12d306);}(a296_0x12d3,0xed));const a296_0x7a61=function(_0xa06ee8,_0x12d306){_0xa06ee8=_0xa06ee8-0x0;let _0x7a61b9=a296_0x12d3[_0xa06ee8];return _0x7a61b9;};const _0x5a3ae7=a296_0x7a61;'use strict';const _=require(_0x5a3ae7('0xd')),db=require(_0x5a3ae7('0x2'))['db'],logger=require('../../config/logger')('rpc');exports[_0x5a3ae7('0xb')]=function(_0x3ad368){const _0x519a3c=this;return new Promise(function(_0x2d0773,_0x2311b0){const _0x6d203c=a296_0x7a61;return db[_0x6d203c('0x12')][_0x6d203c('0x7')]({'raw':_0x3ad368[_0x6d203c('0xc')]?_0x3ad368[_0x6d203c('0xc')][_0x6d203c('0x4')]===undefined?!![]:![]:!![],'where':_0x3ad368[_0x6d203c('0xc')]?_0x3ad368[_0x6d203c('0xc')]['where']||null:null,'attributes':_0x3ad368[_0x6d203c('0xc')]?_0x3ad368['options'][_0x6d203c('0x9')]||null:null,'limit':_0x3ad368[_0x6d203c('0xc')]?_0x3ad368[_0x6d203c('0xc')][_0x6d203c('0x10')]||null:null,'include':_0x3ad368[_0x6d203c('0xc')]?_0x3ad368['options'][_0x6d203c('0x6')]?_['map'](_0x3ad368['options'][_0x6d203c('0x6')],function(_0x1b8990){const _0x471658=_0x6d203c;return{'model':db[_0x1b8990[_0x471658('0xf')]],'as':_0x1b8990['as'],'attributes':_0x1b8990[_0x471658('0x9')],'include':_0x1b8990[_0x471658('0x6')]?_[_0x471658('0xa')](_0x1b8990[_0x471658('0x6')],function(_0x5ea5df){const _0x2f6473=_0x471658;return{'model':db[_0x5ea5df['model']],'as':_0x5ea5df['as'],'attributes':_0x5ea5df[_0x2f6473('0x9')],'include':_0x5ea5df[_0x2f6473('0x6')]?_[_0x2f6473('0xa')](_0x5ea5df[_0x2f6473('0x6')],function(_0xc35f3c){const _0x48d41d=_0x2f6473;return{'model':db[_0xc35f3c[_0x48d41d('0xf')]],'as':_0xc35f3c['as'],'attributes':_0xc35f3c[_0x48d41d('0x9')]};}):[]};}):[]};}):[]:[]})[_0x6d203c('0x0')](function(_0x1591ea){const _0x57a6dc=_0x6d203c;logger[_0x57a6dc('0x3')](_0x57a6dc('0xb'),_0x3ad368),logger[_0x57a6dc('0x13')](_0x57a6dc('0xb'),_0x3ad368,JSON[_0x57a6dc('0x11')](_0x1591ea)),_0x2d0773(_0x1591ea);})[_0x6d203c('0x15')](function(_0x5bfdd0){const _0x15bbca=_0x6d203c;logger[_0x15bbca('0x14')](_0x15bbca('0xb'),_0x5bfdd0[_0x15bbca('0x1')],_0x3ad368),_0x2311b0(_0x519a3c['error'](0x1f4,_0x5bfdd0[_0x15bbca('0x1')]));});});},exports[_0x5a3ae7('0xe')]=function(_0x30ea41){const _0x46a25c=this;return new Promise(function(_0x2b6456,_0x35a20f){const _0x703c7e=a296_0x7a61;return db[_0x703c7e('0x12')][_0x703c7e('0x5')]({'raw':_0x30ea41[_0x703c7e('0xc')]?_0x30ea41['options'][_0x703c7e('0x4')]===undefined?!![]:![]:!![],'where':_0x30ea41[_0x703c7e('0xc')]?_0x30ea41['options'][_0x703c7e('0x8')]||null:null,'attributes':_0x30ea41[_0x703c7e('0xc')]?_0x30ea41[_0x703c7e('0xc')][_0x703c7e('0x9')]||null:null,'include':_0x30ea41[_0x703c7e('0xc')]?_0x30ea41['options'][_0x703c7e('0x6')]?_[_0x703c7e('0xa')](_0x30ea41[_0x703c7e('0xc')]['include'],function(_0x1fe9b0){const _0x1ab01d=_0x703c7e;return{'model':db[_0x1fe9b0[_0x1ab01d('0xf')]],'as':_0x1fe9b0['as'],'attributes':_0x1fe9b0['attributes'],'include':_0x1fe9b0[_0x1ab01d('0x6')]?_[_0x1ab01d('0xa')](_0x1fe9b0[_0x1ab01d('0x6')],function(_0x24631d){const _0x2d5a21=_0x1ab01d;return{'model':db[_0x24631d[_0x2d5a21('0xf')]],'as':_0x24631d['as'],'attributes':_0x24631d[_0x2d5a21('0x9')],'include':_0x24631d[_0x2d5a21('0x6')]?_[_0x2d5a21('0xa')](_0x24631d[_0x2d5a21('0x6')],function(_0x1722c8){const _0x2591c3=_0x2d5a21;return{'model':db[_0x1722c8[_0x2591c3('0xf')]],'as':_0x1722c8['as'],'attributes':_0x1722c8[_0x2591c3('0x9')]};}):[]};}):[]};}):[]:[]})[_0x703c7e('0x0')](function(_0x44715a){const _0x23bbc3=_0x703c7e;logger[_0x23bbc3('0x3')](_0x23bbc3('0xe'),_0x30ea41),logger['debug']('ShowServicenowAccount',_0x30ea41,JSON[_0x23bbc3('0x11')](_0x44715a)),_0x2b6456(_0x44715a);})[_0x703c7e('0x15')](function(_0x5d701f){const _0xfb0f6d=_0x703c7e;logger[_0xfb0f6d('0x14')](_0xfb0f6d('0xe'),_0x5d701f['message'],_0x30ea41),_0x35a20f(_0x46a25c[_0xfb0f6d('0x14')](0x1f4,_0x5d701f[_0xfb0f6d('0x1')]));});});}; \ No newline at end of file +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 diff --git a/server/api/intServicenowConfiguration/index.js b/server/api/intServicenowConfiguration/index.js index 97f3b3f..1881137 100644 --- a/server/api/intServicenowConfiguration/index.js +++ b/server/api/intServicenowConfiguration/index.js @@ -1 +1 @@ -const a297_0x439d=['index','Router','delete','get','/:id/fields','getSubjects','express','isAuthenticated','destroy','/:id/descriptions','show','/:id/subjects','/:id','getDescriptions','exports','create','post'];(function(_0x249f6b,_0x439d07){const _0x367d3b=function(_0x43694b){while(--_0x43694b){_0x249f6b['push'](_0x249f6b['shift']());}};_0x367d3b(++_0x439d07);}(a297_0x439d,0x199));const a297_0x367d=function(_0x249f6b,_0x439d07){_0x249f6b=_0x249f6b-0x0;let _0x367d3b=a297_0x439d[_0x249f6b];return _0x367d3b;};const _0x36d09f=a297_0x367d;'use strict';const express=require(_0x36d09f('0x5')),router=express[_0x36d09f('0x0')](),auth=require('../../components/auth/service'),controller=require('./intServicenowConfiguration.controller');router[_0x36d09f('0x2')]('/',auth[_0x36d09f('0x6')](),controller[_0x36d09f('0x10')]),router['get'](_0x36d09f('0xb'),auth[_0x36d09f('0x6')](),controller[_0x36d09f('0x9')]),router['get'](_0x36d09f('0x3'),auth[_0x36d09f('0x6')](),controller['getFields']),router['get'](_0x36d09f('0xa'),auth[_0x36d09f('0x6')](),controller[_0x36d09f('0x4')]),router[_0x36d09f('0x2')](_0x36d09f('0x8'),auth['isAuthenticated'](),controller[_0x36d09f('0xc')]),router[_0x36d09f('0xf')]('/',auth[_0x36d09f('0x6')](),controller[_0x36d09f('0xe')]),router['put'](_0x36d09f('0xb'),auth['isAuthenticated'](),controller['update']),router[_0x36d09f('0x1')](_0x36d09f('0xb'),auth[_0x36d09f('0x6')](),controller[_0x36d09f('0x7')]),module[_0x36d09f('0xd')]=router; \ No newline at end of file +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 diff --git a/server/api/intServicenowConfiguration/intServicenowConfiguration.attributes.js b/server/api/intServicenowConfiguration/intServicenowConfiguration.attributes.js index 9297d10..c23b09f 100644 --- a/server/api/intServicenowConfiguration/intServicenowConfiguration.attributes.js +++ b/server/api/intServicenowConfiguration/intServicenowConfiguration.attributes.js @@ -1 +1 @@ -const a298_0x3840=['sequelize','exports','STRING'];(function(_0x18f24e,_0x3840c6){const _0x317e14=function(_0x17a985){while(--_0x17a985){_0x18f24e['push'](_0x18f24e['shift']());}};_0x317e14(++_0x3840c6);}(a298_0x3840,0x1bf));const a298_0x317e=function(_0x18f24e,_0x3840c6){_0x18f24e=_0x18f24e-0x0;let _0x317e14=a298_0x3840[_0x18f24e];return _0x317e14;};const _0xa463f5=a298_0x317e;'use strict';const Sequelize=require(_0xa463f5('0x0'));module[_0xa463f5('0x1')]={'name':{'type':Sequelize[_0xa463f5('0x2')]},'description':{'type':Sequelize[_0xa463f5('0x2')]}}; \ No newline at end of file +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 diff --git a/server/api/intServicenowConfiguration/intServicenowConfiguration.controller.js b/server/api/intServicenowConfiguration/intServicenowConfiguration.controller.js index 44795b8..af6444e 100644 --- a/server/api/intServicenowConfiguration/intServicenowConfiguration.controller.js +++ b/server/api/intServicenowConfiguration/intServicenowConfiguration.controller.js @@ -1 +1 @@ -const a299_0x4534=['sequelize','stack','set','then','map','merge','sort','getDescriptions','show','ServicenowConfiguration','lodash','where','create','rows','length','destroy','filters','attributes','offset','count','nolimit','like','query','name','limit','getFields','fieldName','rawAttributes','intersection','catch','fields','model','filter','Content-Range','undefined','options','json','update','findOne','key','include','order','api','status','getSubjects','params','pick','includeAll','sendStatus','body','../../components/parsers/qs','end','../../mysqldb','ServicenowField','keys'];(function(_0x4a96aa,_0x453404){const _0x3bf103=function(_0x544ca8){while(--_0x544ca8){_0x4a96aa['push'](_0x4a96aa['shift']());}};_0x3bf103(++_0x453404);}(a299_0x4534,0x7c));const a299_0x3bf1=function(_0x4a96aa,_0x453404){_0x4a96aa=_0x4a96aa-0x0;let _0x3bf103=a299_0x4534[_0x4a96aa];return _0x3bf103;};const _0x2c5a3d=a299_0x3bf1;'use strict';const _=require(_0x2c5a3d('0x33')),qs=require(_0x2c5a3d('0x24')),logger=require('../../config/logger')(_0x2c5a3d('0x1c')),db=require(_0x2c5a3d('0x26'))['db'],{Op}=require(_0x2c5a3d('0x29'));function respondWithResult(_0x544ca8,_0x9cbeef){return _0x9cbeef=_0x9cbeef||0xc8,function(_0x1bb977){const _0x421c32=a299_0x3bf1;if(_0x1bb977)return _0x544ca8[_0x421c32('0x1d')](_0x9cbeef)[_0x421c32('0x16')](_0x1bb977);};}function respondWithFilteredResult(_0x47a875,_0xb2b6df){return function(_0x48cfa8){const _0x479233=a299_0x3bf1;if(_0x48cfa8){const _0x49a2dc=_0x48cfa8[_0x479233('0x5')],_0x478709=_0xb2b6df['offset'];let _0x5e0d19=_0xb2b6df[_0x479233('0x4')]+_0xb2b6df[_0x479233('0xa')],_0xbcb43a;return _0x5e0d19>=_0x49a2dc?(_0x5e0d19=_0x49a2dc,_0xbcb43a=0xc8):_0xbcb43a=0xce,_0x47a875['status'](_0xbcb43a),_0x47a875[_0x479233('0x2b')](_0x479233('0x13'),_0x478709+'-'+_0x5e0d19+'/'+_0x49a2dc)['json'](_0x48cfa8);}return null;};}function saveUpdates(_0x521568){return function(_0x115a7d){const _0x4f3c78=a299_0x3bf1;if(_0x115a7d)return _0x115a7d[_0x4f3c78('0x17')](_0x521568)[_0x4f3c78('0x2c')](function(_0xc2c348){return _0xc2c348;});return null;};}function removeEntity(_0x10ba48){return function(_0xd9c6ce){const _0x1c628a=a299_0x3bf1;if(_0xd9c6ce)return _0xd9c6ce[_0x1c628a('0x1')]()[_0x1c628a('0x2c')](function(){const _0x33663e=_0x1c628a;_0x10ba48[_0x33663e('0x1d')](0xcc)[_0x33663e('0x25')]();});};}function handleEntityNotFound(_0x436029){return function(_0x22bf28){const _0x5ad5e6=a299_0x3bf1;return!_0x22bf28&&_0x436029[_0x5ad5e6('0x22')](0x194),_0x22bf28;};}function handleError(_0x13f1fe,_0x37d4e1){return _0x37d4e1=_0x37d4e1||0x1f4,function(_0x10f9fa){const _0x1fe6b2=a299_0x3bf1;logger['error'](_0x10f9fa[_0x1fe6b2('0x2a')]),_0x10f9fa[_0x1fe6b2('0x9')]&&delete _0x10f9fa[_0x1fe6b2('0x9')],_0x13f1fe[_0x1fe6b2('0x1d')](_0x37d4e1)['send'](_0x10f9fa);};}exports['index']=function(_0x4dfe52,_0x57f893){const _0x122190=_0x2c5a3d;let _0x4e17fd={};const _0x432681={},_0x3ab71d={'count':0x0,'rows':[]},_0x5cf83c=_[_0x122190('0x2d')](db[_0x122190('0x32')]['rawAttributes'],function(_0x10d002){const _0x3e6291=_0x122190;return{'name':_0x10d002[_0x3e6291('0xc')],'type':_0x10d002['type'][_0x3e6291('0x19')]};});_0x432681[_0x122190('0x11')]=_[_0x122190('0x2d')](_0x5cf83c,_0x122190('0x9')),_0x432681[_0x122190('0x8')]=_[_0x122190('0x28')](_0x4dfe52[_0x122190('0x8')]),_0x432681[_0x122190('0x2')]=_[_0x122190('0xe')](_0x432681['model'],_0x432681[_0x122190('0x8')]),_0x4e17fd['attributes']=_['intersection'](_0x432681[_0x122190('0x11')],qs['fields'](_0x4dfe52[_0x122190('0x8')]['fields'])),_0x4e17fd[_0x122190('0x3')]=_0x4e17fd['attributes']['length']?_0x4e17fd[_0x122190('0x3')]:_0x432681[_0x122190('0x11')];typeof _0x4dfe52[_0x122190('0x8')][_0x122190('0x6')]==='undefined'&&(_0x4e17fd[_0x122190('0xa')]=qs['limit'](_0x4dfe52['query']['limit']),_0x4e17fd[_0x122190('0x4')]=qs[_0x122190('0x4')](_0x4dfe52[_0x122190('0x8')][_0x122190('0x4')]));_0x4e17fd[_0x122190('0x1b')]=qs['sort'](_0x4dfe52[_0x122190('0x8')]['sort']),_0x4e17fd[_0x122190('0x34')]=qs[_0x122190('0x2')](_[_0x122190('0x20')](_0x4dfe52[_0x122190('0x8')],_0x432681[_0x122190('0x2')]),_0x5cf83c);_0x4dfe52[_0x122190('0x8')]['filter']&&(_0x4e17fd[_0x122190('0x34')]=_[_0x122190('0x2e')](_0x4e17fd[_0x122190('0x34')],{[Op['or']]:_[_0x122190('0x2d')](_0x5cf83c,function(_0x2435bd){const _0x3f464e=_0x122190;if(_0x2435bd['type']!=='VIRTUAL'){const _0x197823={};return _0x197823[_0x2435bd[_0x3f464e('0x9')]]={[Op[_0x3f464e('0x7')]]:'%'+_0x4dfe52[_0x3f464e('0x8')][_0x3f464e('0x12')]+'%'},_0x197823;}})}));_0x4e17fd=_[_0x122190('0x2e')]({},_0x4e17fd,_0x4dfe52[_0x122190('0x15')]);const _0x4180ee={'where':_0x4e17fd[_0x122190('0x34')]};return db[_0x122190('0x32')][_0x122190('0x5')](_0x4180ee)[_0x122190('0x2c')](function(_0x5b1066){const _0x726574=_0x122190;return _0x3ab71d[_0x726574('0x5')]=_0x5b1066,_0x4dfe52[_0x726574('0x8')][_0x726574('0x21')]&&(_0x4e17fd[_0x726574('0x1a')]=[{'all':!![]}]),db[_0x726574('0x32')]['findAll'](_0x4e17fd);})['then'](function(_0x3ad892){const _0x3bb887=_0x122190;return _0x3ab71d[_0x3bb887('0x36')]=_0x3ad892,_0x3ab71d;})[_0x122190('0x2c')](respondWithFilteredResult(_0x57f893,_0x4e17fd))[_0x122190('0xf')](handleError(_0x57f893,null));},exports[_0x2c5a3d('0x31')]=function(_0x143e95,_0x34884a){const _0x535c52=_0x2c5a3d;let _0x11bb22={'raw':![],'where':{'id':_0x143e95['params']['id']}};const _0x4ed7fc={};return _0x4ed7fc['model']=_['keys'](db[_0x535c52('0x32')][_0x535c52('0xd')]),_0x4ed7fc[_0x535c52('0x8')]=_['keys'](_0x143e95[_0x535c52('0x8')]),_0x4ed7fc[_0x535c52('0x2')]=_[_0x535c52('0xe')](_0x4ed7fc[_0x535c52('0x11')],_0x4ed7fc['query']),_0x11bb22[_0x535c52('0x3')]=_[_0x535c52('0xe')](_0x4ed7fc[_0x535c52('0x11')],qs['fields'](_0x143e95[_0x535c52('0x8')]['fields'])),_0x11bb22[_0x535c52('0x3')]=_0x11bb22[_0x535c52('0x3')][_0x535c52('0x0')]?_0x11bb22[_0x535c52('0x3')]:_0x4ed7fc['model'],_0x143e95[_0x535c52('0x8')]['includeAll']&&(_0x11bb22[_0x535c52('0x1a')]=[{'all':!![]}]),_0x11bb22=_[_0x535c52('0x2e')]({},_0x11bb22,_0x143e95[_0x535c52('0x15')]),db[_0x535c52('0x32')][_0x535c52('0x18')](_0x11bb22)[_0x535c52('0x2c')](handleEntityNotFound(_0x34884a,null))[_0x535c52('0x2c')](respondWithResult(_0x34884a,null))[_0x535c52('0xf')](handleError(_0x34884a,null));},exports[_0x2c5a3d('0x35')]=function(_0x2e1526,_0x38a9e5){const _0x5236ab=_0x2c5a3d;return db[_0x5236ab('0x32')]['create'](_0x2e1526[_0x5236ab('0x23')],{})[_0x5236ab('0x2c')](respondWithResult(_0x38a9e5,0xc9))[_0x5236ab('0xf')](handleError(_0x38a9e5,null));},exports[_0x2c5a3d('0x17')]=function(_0x112ed3,_0x188331){const _0x4380c8=_0x2c5a3d;return _0x112ed3[_0x4380c8('0x23')]['id']&&delete _0x112ed3['body']['id'],db[_0x4380c8('0x32')][_0x4380c8('0x18')]({'where':{'id':_0x112ed3['params']['id']}})[_0x4380c8('0x2c')](handleEntityNotFound(_0x188331,null))[_0x4380c8('0x2c')](saveUpdates(_0x112ed3[_0x4380c8('0x23')],null))['then'](respondWithResult(_0x188331,null))['catch'](handleError(_0x188331,null));},exports[_0x2c5a3d('0x1')]=function(_0x585a4e,_0x2b9d1a){const _0x525726=_0x2c5a3d;return db[_0x525726('0x32')][_0x525726('0x18')]({'where':{'id':_0x585a4e['params']['id']}})[_0x525726('0x2c')](handleEntityNotFound(_0x2b9d1a,null))[_0x525726('0x2c')](removeEntity(_0x2b9d1a,null))[_0x525726('0xf')](handleError(_0x2b9d1a,null));},exports[_0x2c5a3d('0xb')]=function(_0xb08835,_0x58749d){const _0x1a6620=_0x2c5a3d;let _0x50bd3={};const _0xa945e4={};let _0x597c1a,_0x3f6071;return db[_0x1a6620('0x32')][_0x1a6620('0x18')]({'where':{'id':_0xb08835['params']['id']}})[_0x1a6620('0x2c')](handleEntityNotFound(_0x58749d,null))['then'](function(_0x50c0b5){const _0x69b71e=_0x1a6620;if(_0x50c0b5)return _0x597c1a=_0x50c0b5,_0xa945e4['model']=_[_0x69b71e('0x28')](db['ServicenowField']['rawAttributes']),_0xa945e4['query']=_['keys'](_0xb08835[_0x69b71e('0x8')]),_0xa945e4[_0x69b71e('0x2')]=_['intersection'](_0xa945e4['model'],_0xa945e4[_0x69b71e('0x8')]),_0x50bd3['attributes']=_[_0x69b71e('0xe')](_0xa945e4[_0x69b71e('0x11')],qs[_0x69b71e('0x10')](_0xb08835[_0x69b71e('0x8')][_0x69b71e('0x10')])),_0x50bd3[_0x69b71e('0x3')]=_0x50bd3[_0x69b71e('0x3')][_0x69b71e('0x0')]?_0x50bd3[_0x69b71e('0x3')]:_0xa945e4[_0x69b71e('0x11')],_0x50bd3[_0x69b71e('0x1b')]=qs[_0x69b71e('0x2f')](_0xb08835[_0x69b71e('0x8')][_0x69b71e('0x2f')]),_0x50bd3['where']=qs[_0x69b71e('0x2')](_['pick'](_0xb08835[_0x69b71e('0x8')],_0xa945e4['filters'])),_0xb08835['query'][_0x69b71e('0x12')]&&(_0x50bd3[_0x69b71e('0x34')]=_['merge'](_0x50bd3[_0x69b71e('0x34')],{[Op['or']]:_[_0x69b71e('0x2d')](_0x50bd3[_0x69b71e('0x3')],function(_0x163770){const _0x2ad3ba=_0x69b71e,_0xc08ed7={};return _0xc08ed7[_0x163770]={[Op['like']]:'%'+_0xb08835[_0x2ad3ba('0x8')]['filter']+'%'},_0xc08ed7;})})),_0x50bd3=_[_0x69b71e('0x2e')]({},_0x50bd3,_0xb08835[_0x69b71e('0x15')]),_0x597c1a[_0x69b71e('0xb')](_0x50bd3);})['then'](function(_0x41ccf0){const _0x32e65f=_0x1a6620;if(_0x41ccf0)return _0x3f6071=_0x41ccf0[_0x32e65f('0x0')],typeof _0xb08835[_0x32e65f('0x8')][_0x32e65f('0x6')]===_0x32e65f('0x14')&&(_0x50bd3[_0x32e65f('0xa')]=qs[_0x32e65f('0xa')](_0xb08835[_0x32e65f('0x8')][_0x32e65f('0xa')]),_0x50bd3[_0x32e65f('0x4')]=qs[_0x32e65f('0x4')](_0xb08835[_0x32e65f('0x8')]['offset'])),_0x597c1a[_0x32e65f('0xb')](_0x50bd3);})['then'](function(_0x529849){if(_0x529849)return _0x529849?{'count':_0x3f6071,'rows':_0x529849}:null;})['then'](respondWithResult(_0x58749d,null))[_0x1a6620('0xf')](handleError(_0x58749d,null));},exports[_0x2c5a3d('0x1e')]=function(_0x401272,_0x30acab){const _0x2d83d5=_0x2c5a3d;let _0x2320a0={};const _0xfc5baa={};let _0x2dd8ab,_0x2d3c68;return db[_0x2d83d5('0x32')][_0x2d83d5('0x18')]({'where':{'id':_0x401272['params']['id']}})[_0x2d83d5('0x2c')](handleEntityNotFound(_0x30acab,null))[_0x2d83d5('0x2c')](function(_0x5cce2a){const _0x4d1a8d=_0x2d83d5;if(_0x5cce2a)return _0x2dd8ab=_0x5cce2a,_0xfc5baa[_0x4d1a8d('0x11')]=_[_0x4d1a8d('0x28')](db[_0x4d1a8d('0x27')][_0x4d1a8d('0xd')]),_0xfc5baa[_0x4d1a8d('0x8')]=_[_0x4d1a8d('0x28')](_0x401272[_0x4d1a8d('0x8')]),_0xfc5baa[_0x4d1a8d('0x2')]=_[_0x4d1a8d('0xe')](_0xfc5baa[_0x4d1a8d('0x11')],_0xfc5baa[_0x4d1a8d('0x8')]),_0x2320a0[_0x4d1a8d('0x3')]=_[_0x4d1a8d('0xe')](_0xfc5baa['model'],qs['fields'](_0x401272[_0x4d1a8d('0x8')][_0x4d1a8d('0x10')])),_0x2320a0[_0x4d1a8d('0x3')]=_0x2320a0[_0x4d1a8d('0x3')]['length']?_0x2320a0[_0x4d1a8d('0x3')]:_0xfc5baa[_0x4d1a8d('0x11')],_0x2320a0['order']=qs[_0x4d1a8d('0x2f')](_0x401272['query'][_0x4d1a8d('0x2f')]),_0x2320a0[_0x4d1a8d('0x34')]=qs[_0x4d1a8d('0x2')](_[_0x4d1a8d('0x20')](_0x401272['query'],_0xfc5baa[_0x4d1a8d('0x2')])),_0x401272[_0x4d1a8d('0x8')][_0x4d1a8d('0x12')]&&(_0x2320a0[_0x4d1a8d('0x34')]=_['merge'](_0x2320a0[_0x4d1a8d('0x34')],{[Op['or']]:_[_0x4d1a8d('0x2d')](_0x2320a0[_0x4d1a8d('0x3')],function(_0x571626){const _0x3969ef=_0x4d1a8d,_0x256a3d={};return _0x256a3d[_0x571626]={[Op['like']]:'%'+_0x401272['query'][_0x3969ef('0x12')]+'%'},_0x256a3d;})})),_0x2320a0=_[_0x4d1a8d('0x2e')]({},_0x2320a0,_0x401272[_0x4d1a8d('0x15')]),_0x2dd8ab[_0x4d1a8d('0x1e')](_0x2320a0);})[_0x2d83d5('0x2c')](function(_0x1bf3a4){const _0x2a4bb2=_0x2d83d5;if(_0x1bf3a4)return _0x2d3c68=_0x1bf3a4['length'],typeof _0x401272[_0x2a4bb2('0x8')][_0x2a4bb2('0x6')]===_0x2a4bb2('0x14')&&(_0x2320a0[_0x2a4bb2('0xa')]=qs['limit'](_0x401272[_0x2a4bb2('0x8')][_0x2a4bb2('0xa')]),_0x2320a0[_0x2a4bb2('0x4')]=qs[_0x2a4bb2('0x4')](_0x401272[_0x2a4bb2('0x8')]['offset'])),_0x2dd8ab[_0x2a4bb2('0x1e')](_0x2320a0);})[_0x2d83d5('0x2c')](function(_0x118fdc){if(_0x118fdc)return _0x118fdc?{'count':_0x2d3c68,'rows':_0x118fdc}:null;})['then'](respondWithResult(_0x30acab,null))[_0x2d83d5('0xf')](handleError(_0x30acab,null));},exports['getDescriptions']=function(_0x5603f9,_0x186e36){const _0x1a03ac=_0x2c5a3d;let _0x158ff1={};const _0x2f62dc={};let _0x238b97,_0x1a83cb;return db['ServicenowConfiguration'][_0x1a03ac('0x18')]({'where':{'id':_0x5603f9[_0x1a03ac('0x1f')]['id']}})['then'](handleEntityNotFound(_0x186e36,null))['then'](function(_0xf3094d){const _0x17f5bf=_0x1a03ac;if(_0xf3094d)return _0x238b97=_0xf3094d,_0x2f62dc['model']=_[_0x17f5bf('0x28')](db[_0x17f5bf('0x27')][_0x17f5bf('0xd')]),_0x2f62dc[_0x17f5bf('0x8')]=_[_0x17f5bf('0x28')](_0x5603f9[_0x17f5bf('0x8')]),_0x2f62dc['filters']=_['intersection'](_0x2f62dc[_0x17f5bf('0x11')],_0x2f62dc[_0x17f5bf('0x8')]),_0x158ff1[_0x17f5bf('0x3')]=_[_0x17f5bf('0xe')](_0x2f62dc[_0x17f5bf('0x11')],qs[_0x17f5bf('0x10')](_0x5603f9[_0x17f5bf('0x8')][_0x17f5bf('0x10')])),_0x158ff1[_0x17f5bf('0x3')]=_0x158ff1[_0x17f5bf('0x3')]['length']?_0x158ff1[_0x17f5bf('0x3')]:_0x2f62dc['model'],_0x158ff1[_0x17f5bf('0x1b')]=qs[_0x17f5bf('0x2f')](_0x5603f9[_0x17f5bf('0x8')]['sort']),_0x158ff1[_0x17f5bf('0x34')]=qs[_0x17f5bf('0x2')](_[_0x17f5bf('0x20')](_0x5603f9[_0x17f5bf('0x8')],_0x2f62dc[_0x17f5bf('0x2')])),_0x5603f9['query'][_0x17f5bf('0x12')]&&(_0x158ff1['where']=_[_0x17f5bf('0x2e')](_0x158ff1[_0x17f5bf('0x34')],{[Op['or']]:_[_0x17f5bf('0x2d')](_0x158ff1['attributes'],function(_0x2fc1ac){const _0xa7ee1=_0x17f5bf,_0x14be5d={};return _0x14be5d[_0x2fc1ac]={[Op['like']]:'%'+_0x5603f9[_0xa7ee1('0x8')][_0xa7ee1('0x12')]+'%'},_0x14be5d;})})),_0x158ff1=_[_0x17f5bf('0x2e')]({},_0x158ff1,_0x5603f9[_0x17f5bf('0x15')]),_0x238b97[_0x17f5bf('0x30')](_0x158ff1);})[_0x1a03ac('0x2c')](function(_0x51851b){const _0xe74b6f=_0x1a03ac;if(_0x51851b)return _0x1a83cb=_0x51851b['length'],typeof _0x5603f9[_0xe74b6f('0x8')]['nolimit']===_0xe74b6f('0x14')&&(_0x158ff1[_0xe74b6f('0xa')]=qs['limit'](_0x5603f9[_0xe74b6f('0x8')]['limit']),_0x158ff1[_0xe74b6f('0x4')]=qs[_0xe74b6f('0x4')](_0x5603f9[_0xe74b6f('0x8')][_0xe74b6f('0x4')])),_0x238b97['getDescriptions'](_0x158ff1);})[_0x1a03ac('0x2c')](function(_0x5b57bb){if(_0x5b57bb)return _0x5b57bb?{'count':_0x1a83cb,'rows':_0x5b57bb}:null;})['then'](respondWithResult(_0x186e36,null))[_0x1a03ac('0xf')](handleError(_0x186e36,null));}; \ No newline at end of file +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 diff --git a/server/api/intServicenowConfiguration/intServicenowConfiguration.model.js b/server/api/intServicenowConfiguration/intServicenowConfiguration.model.js index f95b962..9919910 100644 --- a/server/api/intServicenowConfiguration/intServicenowConfiguration.model.js +++ b/server/api/intServicenowConfiguration/intServicenowConfiguration.model.js @@ -1 +1 @@ -const a300_0x2915=['ServicenowConfiguration','int_servicenow_configurations','exports'];(function(_0x4eb264,_0x29153b){const _0x19aef4=function(_0x4e4963){while(--_0x4e4963){_0x4eb264['push'](_0x4eb264['shift']());}};_0x19aef4(++_0x29153b);}(a300_0x2915,0xce));const a300_0x19ae=function(_0x4eb264,_0x29153b){_0x4eb264=_0x4eb264-0x0;let _0x19aef4=a300_0x2915[_0x4eb264];return _0x19aef4;};const _0x228d66=a300_0x19ae;'use strict';const attributes=require('./intServicenowConfiguration.attributes');module[_0x228d66('0x0')]=function(_0x4e4963){const _0x34ab4b=_0x228d66,_0x47f2de=_0x4e4963['define'](_0x34ab4b('0x1'),attributes,{'tableName':_0x34ab4b('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x47f2de;}; \ No newline at end of file +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 diff --git a/server/api/intServicenowField/index.js b/server/api/intServicenowField/index.js index 9897957..566a303 100644 --- a/server/api/intServicenowField/index.js +++ b/server/api/intServicenowField/index.js @@ -1 +1 @@ -const a301_0x4763=['../../components/auth/service','isAuthenticated','express','/:id','get','exports','create','index','Router','destroy'];(function(_0x34edbb,_0x47639e){const _0x4a4028=function(_0x2f2a04){while(--_0x2f2a04){_0x34edbb['push'](_0x34edbb['shift']());}};_0x4a4028(++_0x47639e);}(a301_0x4763,0x165));const a301_0x4a40=function(_0x34edbb,_0x47639e){_0x34edbb=_0x34edbb-0x0;let _0x4a4028=a301_0x4763[_0x34edbb];return _0x4a4028;};const _0x4d30c3=a301_0x4a40;'use strict';const express=require(_0x4d30c3('0x5')),router=express[_0x4d30c3('0x1')](),auth=require(_0x4d30c3('0x3')),controller=require('./intServicenowField.controller');router[_0x4d30c3('0x7')]('/',auth[_0x4d30c3('0x4')](),controller[_0x4d30c3('0x0')]),router[_0x4d30c3('0x7')](_0x4d30c3('0x6'),auth[_0x4d30c3('0x4')](),controller['show']),router['post']('/',auth[_0x4d30c3('0x4')](),controller[_0x4d30c3('0x9')]),router['put'](_0x4d30c3('0x6'),auth[_0x4d30c3('0x4')](),controller['update']),router['delete'](_0x4d30c3('0x6'),auth[_0x4d30c3('0x4')](),controller[_0x4d30c3('0x2')]),module[_0x4d30c3('0x8')]=router; \ No newline at end of file +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 diff --git a/server/api/intServicenowField/intServicenowField.attributes.js b/server/api/intServicenowField/intServicenowField.attributes.js index 76596c3..a176bcf 100644 --- a/server/api/intServicenowField/intServicenowField.attributes.js +++ b/server/api/intServicenowField/intServicenowField.attributes.js @@ -1 +1 @@ -const a302_0xa27c=['variable','exports','ENUM','string','customVariable','STRING','BOOLEAN','keyValue','sequelize'];(function(_0xfb0317,_0xa27c76){const _0x2b0553=function(_0x3d18d3){while(--_0x3d18d3){_0xfb0317['push'](_0xfb0317['shift']());}};_0x2b0553(++_0xa27c76);}(a302_0xa27c,0x177));const a302_0x2b05=function(_0xfb0317,_0xa27c76){_0xfb0317=_0xfb0317-0x0;let _0x2b0553=a302_0xa27c[_0xfb0317];return _0x2b0553;};const _0xb923c6=a302_0x2b05;'use strict';const Sequelize=require(_0xb923c6('0x2'));module[_0xb923c6('0x4')]={'type':{'type':Sequelize[_0xb923c6('0x5')](_0xb923c6('0x6'),_0xb923c6('0x3'),_0xb923c6('0x7'),_0xb923c6('0x1')),'defaultValue':_0xb923c6('0x6')},'content':{'type':Sequelize['STRING']},'key':{'type':Sequelize[_0xb923c6('0x8')]},'keyType':{'type':Sequelize['ENUM'](_0xb923c6('0x6'),'variable',_0xb923c6('0x7'))},'keyContent':{'type':Sequelize['STRING']},'idField':{'type':Sequelize[_0xb923c6('0x8')]},'nameField':{'type':Sequelize['STRING']},'customField':{'type':Sequelize[_0xb923c6('0x0')],'defaultValue':!![]},'variableName':{'type':Sequelize['STRING']}}; \ No newline at end of file +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 diff --git a/server/api/intServicenowField/intServicenowField.controller.js b/server/api/intServicenowField/intServicenowField.controller.js index f07dd46..d6be033 100644 --- a/server/api/intServicenowField/intServicenowField.controller.js +++ b/server/api/intServicenowField/intServicenowField.controller.js @@ -1 +1 @@ -const a303_0x1940=['include','includeAll','order','sendStatus','Content-Range','catch','api','json','index','show','where','sort','sequelize','intersection','filters','type','limit','filter','keys','error','send','attributes','model','params','../../components/parsers/qs','count','findAll','set','then','VIRTUAL','key','findOne','end','query','create','destroy','name','rows','ServicenowField','options','status','../../mysqldb','fields','map','nolimit','body','merge','like','stack','rawAttributes','update','fieldName'];(function(_0x46742b,_0x1940bc){const _0x584eb4=function(_0x2624a1){while(--_0x2624a1){_0x46742b['push'](_0x46742b['shift']());}};_0x584eb4(++_0x1940bc);}(a303_0x1940,0x177));const a303_0x584e=function(_0x46742b,_0x1940bc){_0x46742b=_0x46742b-0x0;let _0x584eb4=a303_0x1940[_0x46742b];return _0x584eb4;};const _0x580511=a303_0x584e;'use strict';const _=require('lodash'),qs=require(_0x580511('0xd')),logger=require('../../config/logger')(_0x580511('0x2f')),db=require(_0x580511('0x1e'))['db'],{Op}=require(_0x580511('0x1'));function respondWithResult(_0x2624a1,_0x256e85){return _0x256e85=_0x256e85||0xc8,function(_0x45ec14){const _0x32a480=a303_0x584e;if(_0x45ec14)return _0x2624a1[_0x32a480('0x1d')](_0x256e85)['json'](_0x45ec14);};}function respondWithFilteredResult(_0x9309b4,_0x652b30){return function(_0x5432d2){const _0x25ee53=a303_0x584e;if(_0x5432d2){const _0x1cf21d=_0x5432d2[_0x25ee53('0xe')],_0x5e6395=_0x652b30['offset'];let _0xb8876b=_0x652b30['offset']+_0x652b30['limit'],_0x2a6f50;return _0xb8876b>=_0x1cf21d?(_0xb8876b=_0x1cf21d,_0x2a6f50=0xc8):_0x2a6f50=0xce,_0x9309b4[_0x25ee53('0x1d')](_0x2a6f50),_0x9309b4[_0x25ee53('0x10')](_0x25ee53('0x2d'),_0x5e6395+'-'+_0xb8876b+'/'+_0x1cf21d)[_0x25ee53('0x30')](_0x5432d2);}return null;};}function saveUpdates(_0x2daa02){return function(_0x5ef496){if(_0x5ef496)return _0x5ef496['update'](_0x2daa02)['then'](function(_0x478e12){return _0x478e12;});return null;};}function removeEntity(_0x5b98ec){return function(_0x4631bc){const _0x277cd5=a303_0x584e;if(_0x4631bc)return _0x4631bc[_0x277cd5('0x18')]()[_0x277cd5('0x11')](function(){const _0x32c7a7=_0x277cd5;_0x5b98ec['status'](0xcc)[_0x32c7a7('0x15')]();});};}function handleEntityNotFound(_0x117bff){return function(_0xed6068){const _0x233236=a303_0x584e;return!_0xed6068&&_0x117bff[_0x233236('0x2c')](0x194),_0xed6068;};}function handleError(_0x280365,_0x15e80c){return _0x15e80c=_0x15e80c||0x1f4,function(_0x260f31){const _0x5c0a8d=a303_0x584e;logger[_0x5c0a8d('0x8')](_0x260f31[_0x5c0a8d('0x25')]),_0x260f31[_0x5c0a8d('0x19')]&&delete _0x260f31[_0x5c0a8d('0x19')],_0x280365[_0x5c0a8d('0x1d')](_0x15e80c)[_0x5c0a8d('0x9')](_0x260f31);};}exports[_0x580511('0x31')]=function(_0x344980,_0x25ea1c){const _0x15681e=_0x580511;let _0x414ec9={};const _0x2ecc55={},_0x45f473={'count':0x0,'rows':[]},_0x9bec7f=_['map'](db[_0x15681e('0x1b')][_0x15681e('0x26')],function(_0x91d1d6){const _0x425bc4=_0x15681e;return{'name':_0x91d1d6[_0x425bc4('0x28')],'type':_0x91d1d6[_0x425bc4('0x4')][_0x425bc4('0x13')]};});_0x2ecc55[_0x15681e('0xb')]=_[_0x15681e('0x20')](_0x9bec7f,_0x15681e('0x19')),_0x2ecc55['query']=_[_0x15681e('0x7')](_0x344980[_0x15681e('0x16')]),_0x2ecc55[_0x15681e('0x3')]=_[_0x15681e('0x2')](_0x2ecc55['model'],_0x2ecc55[_0x15681e('0x16')]),_0x414ec9[_0x15681e('0xa')]=_[_0x15681e('0x2')](_0x2ecc55[_0x15681e('0xb')],qs[_0x15681e('0x1f')](_0x344980[_0x15681e('0x16')]['fields'])),_0x414ec9['attributes']=_0x414ec9[_0x15681e('0xa')]['length']?_0x414ec9[_0x15681e('0xa')]:_0x2ecc55[_0x15681e('0xb')];typeof _0x344980['query'][_0x15681e('0x21')]==='undefined'&&(_0x414ec9[_0x15681e('0x5')]=qs['limit'](_0x344980[_0x15681e('0x16')][_0x15681e('0x5')]),_0x414ec9['offset']=qs['offset'](_0x344980['query']['offset']));_0x414ec9[_0x15681e('0x2b')]=qs[_0x15681e('0x0')](_0x344980[_0x15681e('0x16')][_0x15681e('0x0')]),_0x414ec9['where']=qs[_0x15681e('0x3')](_['pick'](_0x344980['query'],_0x2ecc55['filters']),_0x9bec7f);_0x344980[_0x15681e('0x16')][_0x15681e('0x6')]&&(_0x414ec9[_0x15681e('0x33')]=_[_0x15681e('0x23')](_0x414ec9[_0x15681e('0x33')],{[Op['or']]:_['map'](_0x9bec7f,function(_0x5321c8){const _0x114ee2=_0x15681e;if(_0x5321c8['type']!==_0x114ee2('0x12')){const _0x14cccb={};return _0x14cccb[_0x5321c8['name']]={[Op[_0x114ee2('0x24')]]:'%'+_0x344980[_0x114ee2('0x16')][_0x114ee2('0x6')]+'%'},_0x14cccb;}})}));_0x414ec9=_[_0x15681e('0x23')]({},_0x414ec9,_0x344980[_0x15681e('0x1c')]);const _0x1d5090={'where':_0x414ec9[_0x15681e('0x33')]};return db[_0x15681e('0x1b')][_0x15681e('0xe')](_0x1d5090)['then'](function(_0x4e1127){const _0x5795e4=_0x15681e;return _0x45f473[_0x5795e4('0xe')]=_0x4e1127,_0x344980[_0x5795e4('0x16')][_0x5795e4('0x2a')]&&(_0x414ec9[_0x5795e4('0x29')]=[{'all':!![]}]),db[_0x5795e4('0x1b')][_0x5795e4('0xf')](_0x414ec9);})[_0x15681e('0x11')](function(_0x5d99ed){const _0x144b1b=_0x15681e;return _0x45f473[_0x144b1b('0x1a')]=_0x5d99ed,_0x45f473;})[_0x15681e('0x11')](respondWithFilteredResult(_0x25ea1c,_0x414ec9))[_0x15681e('0x2e')](handleError(_0x25ea1c,null));},exports[_0x580511('0x32')]=function(_0x5a1e1e,_0x14449a){const _0x58f681=_0x580511;let _0x27c539={'raw':!![],'where':{'id':_0x5a1e1e[_0x58f681('0xc')]['id']}};const _0xac307c={};return _0xac307c[_0x58f681('0xb')]=_[_0x58f681('0x7')](db[_0x58f681('0x1b')][_0x58f681('0x26')]),_0xac307c['query']=_[_0x58f681('0x7')](_0x5a1e1e[_0x58f681('0x16')]),_0xac307c['filters']=_[_0x58f681('0x2')](_0xac307c[_0x58f681('0xb')],_0xac307c[_0x58f681('0x16')]),_0x27c539[_0x58f681('0xa')]=_[_0x58f681('0x2')](_0xac307c['model'],qs[_0x58f681('0x1f')](_0x5a1e1e[_0x58f681('0x16')][_0x58f681('0x1f')])),_0x27c539[_0x58f681('0xa')]=_0x27c539['attributes']['length']?_0x27c539[_0x58f681('0xa')]:_0xac307c[_0x58f681('0xb')],_0x5a1e1e['query'][_0x58f681('0x2a')]&&(_0x27c539[_0x58f681('0x29')]=[{'all':!![]}]),_0x27c539=_[_0x58f681('0x23')]({},_0x27c539,_0x5a1e1e[_0x58f681('0x1c')]),db[_0x58f681('0x1b')]['findOne'](_0x27c539)[_0x58f681('0x11')](handleEntityNotFound(_0x14449a,null))[_0x58f681('0x11')](respondWithResult(_0x14449a,null))[_0x58f681('0x2e')](handleError(_0x14449a,null));},exports['create']=function(_0x226b74,_0x5a5432){const _0x2ac864=_0x580511;return db[_0x2ac864('0x1b')][_0x2ac864('0x17')](_0x226b74['body'],{})[_0x2ac864('0x11')](respondWithResult(_0x5a5432,0xc9))[_0x2ac864('0x2e')](handleError(_0x5a5432,null));},exports[_0x580511('0x27')]=function(_0x5981af,_0x53208d){const _0x1792d4=_0x580511;return _0x5981af[_0x1792d4('0x22')]['id']&&delete _0x5981af['body']['id'],db[_0x1792d4('0x1b')][_0x1792d4('0x14')]({'where':{'id':_0x5981af[_0x1792d4('0xc')]['id']}})[_0x1792d4('0x11')](handleEntityNotFound(_0x53208d,null))['then'](saveUpdates(_0x5981af[_0x1792d4('0x22')],null))[_0x1792d4('0x11')](respondWithResult(_0x53208d,null))[_0x1792d4('0x2e')](handleError(_0x53208d,null));},exports[_0x580511('0x18')]=function(_0xdcbb28,_0xe230a7){const _0x26c878=_0x580511;return db[_0x26c878('0x1b')][_0x26c878('0x14')]({'where':{'id':_0xdcbb28[_0x26c878('0xc')]['id']}})[_0x26c878('0x11')](handleEntityNotFound(_0xe230a7,null))['then'](removeEntity(_0xe230a7,null))['catch'](handleError(_0xe230a7,null));}; \ No newline at end of file +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 diff --git a/server/api/intServicenowField/intServicenowField.model.js b/server/api/intServicenowField/intServicenowField.model.js index 0d035b8..d04a4e9 100644 --- a/server/api/intServicenowField/intServicenowField.model.js +++ b/server/api/intServicenowField/intServicenowField.model.js @@ -1 +1 @@ -const a304_0x2b9f=['./intServicenowField.attributes','exports','idField','FieldId','ServicenowField','define','servicenow_unique_index','int_servicenow_fields'];(function(_0x1c41d1,_0x2b9fb0){const _0x438348=function(_0x1fd1d7){while(--_0x1fd1d7){_0x1c41d1['push'](_0x1c41d1['shift']());}};_0x438348(++_0x2b9fb0);}(a304_0x2b9f,0x184));const a304_0x4383=function(_0x1c41d1,_0x2b9fb0){_0x1c41d1=_0x1c41d1-0x0;let _0x438348=a304_0x2b9f[_0x1c41d1];return _0x438348;};const _0x210025=a304_0x4383;'use strict';const attributes=require(_0x210025('0x4'));module[_0x210025('0x5')]=function(_0x1fd1d7){const _0x381f55=_0x210025,_0x170e06=_0x1fd1d7[_0x381f55('0x1')](_0x381f55('0x0'),attributes,{'tableName':_0x381f55('0x3'),'paranoid':![],'indexes':[{'name':_0x381f55('0x2'),'fields':[_0x381f55('0x6'),_0x381f55('0x7')],'unique':!![]}],'timestamps':!![]});return _0x170e06;}; \ No newline at end of file +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 diff --git a/server/api/intSugarcrmAccount/index.js b/server/api/intSugarcrmAccount/index.js index a41cfe6..f1f459c 100644 --- a/server/api/intSugarcrmAccount/index.js +++ b/server/api/intSugarcrmAccount/index.js @@ -1 +1 @@ -const a305_0x4cdc=['Router','/:id/configurations','isAuthenticated','get','post','addConfiguration','update','getConfigurations','create','./intSugarcrmAccount.controller','/:id','put','/:id/fields','express','exports','getFields','show'];(function(_0x4fb17d,_0x4cdc04){const _0x42836f=function(_0x3e685e){while(--_0x3e685e){_0x4fb17d['push'](_0x4fb17d['shift']());}};_0x42836f(++_0x4cdc04);}(a305_0x4cdc,0x1a6));const a305_0x4283=function(_0x4fb17d,_0x4cdc04){_0x4fb17d=_0x4fb17d-0x0;let _0x42836f=a305_0x4cdc[_0x4fb17d];return _0x42836f;};const _0x4ba754=a305_0x4283;'use strict';const express=require(_0x4ba754('0x10')),router=express[_0x4ba754('0x3')](),auth=require('../../components/auth/service'),controller=require(_0x4ba754('0xc'));router[_0x4ba754('0x6')]('/',auth[_0x4ba754('0x5')](),controller['index']),router[_0x4ba754('0x6')](_0x4ba754('0xd'),auth['isAuthenticated'](),controller[_0x4ba754('0x2')]),router[_0x4ba754('0x6')](_0x4ba754('0x4'),auth[_0x4ba754('0x5')](),controller[_0x4ba754('0xa')]),router[_0x4ba754('0x6')](_0x4ba754('0xf'),auth[_0x4ba754('0x5')](),controller[_0x4ba754('0x1')]),router['post']('/',auth['isAuthenticated'](),controller[_0x4ba754('0xb')]),router[_0x4ba754('0x7')](_0x4ba754('0x4'),auth['isAuthenticated'](),controller[_0x4ba754('0x8')]),router[_0x4ba754('0xe')](_0x4ba754('0xd'),auth[_0x4ba754('0x5')](),controller[_0x4ba754('0x9')]),router['delete'](_0x4ba754('0xd'),auth['isAuthenticated'](),controller['destroy']),module[_0x4ba754('0x0')]=router; \ No newline at end of file +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 diff --git a/server/api/intSugarcrmAccount/intSugarcrmAccount.attributes.js b/server/api/intSugarcrmAccount/intSugarcrmAccount.attributes.js index 707a63e..d8d18bf 100644 --- a/server/api/intSugarcrmAccount/intSugarcrmAccount.attributes.js +++ b/server/api/intSugarcrmAccount/intSugarcrmAccount.attributes.js @@ -1 +1 @@ -const a306_0x2da0=['sequelize','exports','STRING','remoteUri'];(function(_0x3c1054,_0x2da04f){const _0x5a7831=function(_0x27bae1){while(--_0x27bae1){_0x3c1054['push'](_0x3c1054['shift']());}};_0x5a7831(++_0x2da04f);}(a306_0x2da0,0x8a));const a306_0x5a78=function(_0x3c1054,_0x2da04f){_0x3c1054=_0x3c1054-0x0;let _0x5a7831=a306_0x2da0[_0x3c1054];return _0x5a7831;};const _0x84ef47=a306_0x5a78;'use strict';const Sequelize=require(_0x84ef47('0x2'));module[_0x84ef47('0x3')]={'name':{'type':Sequelize[_0x84ef47('0x0')]},'description':{'type':Sequelize[_0x84ef47('0x0')]},'username':{'type':Sequelize[_0x84ef47('0x0')],'unique':'username'},'password':{'type':Sequelize['STRING']},'remoteUri':{'type':Sequelize[_0x84ef47('0x0')],'unique':_0x84ef47('0x1')},'serverUrl':{'type':Sequelize[_0x84ef47('0x0')]}}; \ No newline at end of file +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 diff --git a/server/api/intSugarcrmAccount/intSugarcrmAccount.controller.js b/server/api/intSugarcrmAccount/intSugarcrmAccount.controller.js index 7793f65..3d64c1b 100644 --- a/server/api/intSugarcrmAccount/intSugarcrmAccount.controller.js +++ b/server/api/intSugarcrmAccount/intSugarcrmAccount.controller.js @@ -1 +1 @@ -const a307_0x9c21=['duration_hours','created_by','AccountId','query','findAll','addConfiguration','remove','date_start','findOne','%s%s','index','slice','intersection','like','../../components/integrations/configuration','login','options','includeAll','set','duration_minutes','fields','value','merge','count','remoteUri','includes','module_fields','offset','attributes','SugarcrmField','keys','body','request-promise-native','undefined','type','getFields,\x20%s,\x20%s,\x20%s','length','json','limit','include','rawAttributes','assigned_user_id','../../config/logger','sort','where','description','xCALLY\x20Motion\x20Integration','values','sequelize','Descriptions','key','show','lodash','error','api','model','pick','order','direction','channel','/service/v4_1/rest.php','endsWith','statusCode','name','Wrong\x20credentials','Subjects','map','SugarcrmAccount','destroy','end','test','VIRTUAL','getDescriptions','rows','format','catch','create','../../mysqldb','label','getConfigurations','getSubjects','then','stringify','params','filter','JSON','SugarcrmConfiguration','status','POST','Password\x20Expired','parent_type','Calls','filters','Content-Range','username','parent_id','sendStatus','getFields','send','nolimit','get_module_fields'];(function(_0x370642,_0x9c2179){const _0x191e9e=function(_0x29c52e){while(--_0x29c52e){_0x370642['push'](_0x370642['shift']());}};_0x191e9e(++_0x9c2179);}(a307_0x9c21,0x84));const a307_0x191e=function(_0x370642,_0x9c2179){_0x370642=_0x370642-0x0;let _0x191e9e=a307_0x9c21[_0x370642];return _0x191e9e;};const _0x317a59=a307_0x191e;'use strict';const rp=require(_0x317a59('0x1')),util=require('util'),_=require(_0x317a59('0x15')),qs=require('../../components/parsers/qs'),logger=require(_0x317a59('0xb'))(_0x317a59('0x17')),db=require(_0x317a59('0x2e'))['db'],{Op}=require(_0x317a59('0x11')),integrations=require(_0x317a59('0x54'));function respondWithResult(_0x29c52e,_0x331f94){return _0x331f94=_0x331f94||0xc8,function(_0x482440){const _0x39bda5=a307_0x191e;if(_0x482440)return _0x29c52e[_0x39bda5('0x38')](_0x331f94)['json'](_0x482440);};}function respondWithFilteredResult(_0x44a2d5,_0x3ac4ad){return function(_0x11e78e){const _0x10eaa4=a307_0x191e;if(_0x11e78e){const _0x2c59bb=_0x11e78e[_0x10eaa4('0x5d')],_0x8328bc=_0x3ac4ad[_0x10eaa4('0x61')];let _0x50d22e=_0x3ac4ad['offset']+_0x3ac4ad['limit'],_0x4b2c38;return _0x50d22e>=_0x2c59bb?(_0x50d22e=_0x2c59bb,_0x4b2c38=0xc8):_0x4b2c38=0xce,_0x44a2d5[_0x10eaa4('0x38')](_0x4b2c38),_0x44a2d5[_0x10eaa4('0x58')](_0x10eaa4('0x3e'),_0x8328bc+'-'+_0x50d22e+'/'+_0x2c59bb)[_0x10eaa4('0x6')](_0x11e78e);}return null;};}function saveUpdates(_0x9a251f){return function(_0x53e3b5){const _0x24095f=a307_0x191e;if(_0x53e3b5)return _0x53e3b5['update'](_0x9a251f)[_0x24095f('0x32')](function(_0x27c002){return _0x27c002;});return null;};}function removeEntity(_0x37464a){return function(_0x2c58b5){const _0x2c2639=a307_0x191e;if(_0x2c58b5)return _0x2c58b5['destroy']()[_0x2c2639('0x32')](function(){const _0xe07f85=_0x2c2639;_0x37464a[_0xe07f85('0x38')](0xcc)[_0xe07f85('0x26')]();});};}function handleEntityNotFound(_0x11e68d){return function(_0x353f68){const _0x13d01e=a307_0x191e;return!_0x353f68&&_0x11e68d[_0x13d01e('0x41')](0x194),_0x353f68;};}function handleError(_0x249856,_0xcbc863){return _0xcbc863=_0xcbc863||0x1f4,function(_0xa7981){const _0x45ff86=a307_0x191e;logger[_0x45ff86('0x16')](_0xa7981['stack']),_0xa7981[_0x45ff86('0x20')]&&delete _0xa7981[_0x45ff86('0x20')],_0x249856[_0x45ff86('0x38')](_0xcbc863)[_0x45ff86('0x43')](_0xa7981);};}exports[_0x317a59('0x50')]=function(_0x225ea3,_0x59363d){const _0x26ce37=_0x317a59;let _0x31664d={};const _0x115c33={},_0x511964={'count':0x0,'rows':[]},_0x522cb8=_[_0x26ce37('0x23')](db[_0x26ce37('0x24')][_0x26ce37('0x9')],function(_0x19a7db){const _0x36bd70=_0x26ce37;return{'name':_0x19a7db['fieldName'],'type':_0x19a7db['type'][_0x36bd70('0x13')]};});_0x115c33['model']=_[_0x26ce37('0x23')](_0x522cb8,_0x26ce37('0x20')),_0x115c33['query']=_[_0x26ce37('0x64')](_0x225ea3[_0x26ce37('0x49')]),_0x115c33[_0x26ce37('0x3d')]=_['intersection'](_0x115c33[_0x26ce37('0x18')],_0x115c33[_0x26ce37('0x49')]),_0x31664d['attributes']=_[_0x26ce37('0x52')](_0x115c33[_0x26ce37('0x18')],qs[_0x26ce37('0x5a')](_0x225ea3[_0x26ce37('0x49')][_0x26ce37('0x5a')])),_0x31664d[_0x26ce37('0x62')]=_0x31664d[_0x26ce37('0x62')][_0x26ce37('0x5')]?_0x31664d['attributes']:_0x115c33['model'];typeof _0x225ea3[_0x26ce37('0x49')][_0x26ce37('0x44')]===_0x26ce37('0x2')&&(_0x31664d[_0x26ce37('0x7')]=qs[_0x26ce37('0x7')](_0x225ea3[_0x26ce37('0x49')]['limit']),_0x31664d['offset']=qs[_0x26ce37('0x61')](_0x225ea3[_0x26ce37('0x49')][_0x26ce37('0x61')]));_0x31664d[_0x26ce37('0x1a')]=qs[_0x26ce37('0xc')](_0x225ea3[_0x26ce37('0x49')][_0x26ce37('0xc')]),_0x31664d[_0x26ce37('0xd')]=qs['filters'](_[_0x26ce37('0x19')](_0x225ea3[_0x26ce37('0x49')],_0x115c33[_0x26ce37('0x3d')]),_0x522cb8);_0x225ea3[_0x26ce37('0x49')]['filter']&&(_0x31664d[_0x26ce37('0xd')]=_[_0x26ce37('0x5c')](_0x31664d['where'],{[Op['or']]:_['map'](_0x522cb8,function(_0x531d23){const _0x4a5a3e=_0x26ce37;if(_0x531d23[_0x4a5a3e('0x3')]!==_0x4a5a3e('0x28')){const _0x296cf1={};return _0x296cf1[_0x531d23[_0x4a5a3e('0x20')]]={[Op[_0x4a5a3e('0x53')]]:'%'+_0x225ea3[_0x4a5a3e('0x49')][_0x4a5a3e('0x35')]+'%'},_0x296cf1;}})}));_0x31664d=_[_0x26ce37('0x5c')]({},_0x31664d,_0x225ea3['options']);const _0x22cad8={'where':_0x31664d['where']};return db[_0x26ce37('0x24')]['count'](_0x22cad8)['then'](function(_0x5b0f12){const _0x354b42=_0x26ce37;return _0x511964[_0x354b42('0x5d')]=_0x5b0f12,_0x225ea3['query'][_0x354b42('0x57')]&&(_0x31664d[_0x354b42('0x8')]=[{'all':!![]}]),db[_0x354b42('0x24')][_0x354b42('0x4a')](_0x31664d);})[_0x26ce37('0x32')](function(_0x508e9e){const _0x4c30a9=_0x26ce37;return _0x511964[_0x4c30a9('0x2a')]=_0x508e9e,_0x511964;})['then'](respondWithFilteredResult(_0x59363d,_0x31664d))['catch'](handleError(_0x59363d,null));},exports[_0x317a59('0x14')]=function(_0x5a557b,_0x196e42){const _0x3ef3e8=_0x317a59;let _0x5f3a42={'raw':![],'where':{'id':_0x5a557b[_0x3ef3e8('0x34')]['id']}};const _0xe0537d={};return _0xe0537d[_0x3ef3e8('0x18')]=_[_0x3ef3e8('0x64')](db[_0x3ef3e8('0x24')][_0x3ef3e8('0x9')]),_0xe0537d['query']=_[_0x3ef3e8('0x64')](_0x5a557b[_0x3ef3e8('0x49')]),_0xe0537d[_0x3ef3e8('0x3d')]=_[_0x3ef3e8('0x52')](_0xe0537d[_0x3ef3e8('0x18')],_0xe0537d[_0x3ef3e8('0x49')]),_0x5f3a42['attributes']=_[_0x3ef3e8('0x52')](_0xe0537d[_0x3ef3e8('0x18')],qs[_0x3ef3e8('0x5a')](_0x5a557b[_0x3ef3e8('0x49')][_0x3ef3e8('0x5a')])),_0x5f3a42['attributes']=_0x5f3a42[_0x3ef3e8('0x62')]['length']?_0x5f3a42['attributes']:_0xe0537d[_0x3ef3e8('0x18')],_0x5a557b[_0x3ef3e8('0x49')]['includeAll']&&(_0x5f3a42[_0x3ef3e8('0x8')]=[{'all':!![]}]),_0x5f3a42=_[_0x3ef3e8('0x5c')]({},_0x5f3a42,_0x5a557b[_0x3ef3e8('0x56')]),db[_0x3ef3e8('0x24')][_0x3ef3e8('0x4e')](_0x5f3a42)[_0x3ef3e8('0x32')](handleEntityNotFound(_0x196e42,null))[_0x3ef3e8('0x32')](respondWithResult(_0x196e42,null))[_0x3ef3e8('0x2c')](handleError(_0x196e42,null));},exports[_0x317a59('0x2d')]=function(_0x34c331,_0x5192f9){const _0x1d34e6=_0x317a59;return db['SugarcrmAccount'][_0x1d34e6('0x2d')](_0x34c331[_0x1d34e6('0x0')],{})[_0x1d34e6('0x32')](respondWithResult(_0x5192f9,0xc9))[_0x1d34e6('0x2c')](handleError(_0x5192f9,null));},exports['update']=function(_0x48161c,_0x3a97e0){const _0x4023f9=_0x317a59;return _0x48161c[_0x4023f9('0x0')]['id']&&delete _0x48161c[_0x4023f9('0x0')]['id'],db[_0x4023f9('0x24')][_0x4023f9('0x4e')]({'where':{'id':_0x48161c[_0x4023f9('0x34')]['id']}})[_0x4023f9('0x32')](handleEntityNotFound(_0x3a97e0,null))[_0x4023f9('0x32')](saveUpdates(_0x48161c['body'],null))['then'](respondWithResult(_0x3a97e0,null))[_0x4023f9('0x2c')](handleError(_0x3a97e0,null));},exports[_0x317a59('0x25')]=function(_0x535bf9,_0xf862fe){const _0x3fd2e8=_0x317a59;return db['SugarcrmAccount'][_0x3fd2e8('0x4e')]({'where':{'id':_0x535bf9['params']['id']}})[_0x3fd2e8('0x32')](handleEntityNotFound(_0xf862fe,null))[_0x3fd2e8('0x32')](removeEntity(_0xf862fe,null))[_0x3fd2e8('0x2c')](handleError(_0xf862fe,null));},exports[_0x317a59('0x30')]=function(_0x39c324,_0x98580c){const _0xbd73=_0x317a59;let _0x472d29={};const _0x51ab55={};let _0x8dda02,_0x5909ea;return db['SugarcrmAccount']['findOne']({'where':{'id':_0x39c324[_0xbd73('0x34')]['id']}})[_0xbd73('0x32')](handleEntityNotFound(_0x98580c,null))[_0xbd73('0x32')](function(_0x4fe1d3){const _0x2b61e6=_0xbd73;if(_0x4fe1d3)return _0x8dda02=_0x4fe1d3,_0x51ab55[_0x2b61e6('0x18')]=_['keys'](db['SugarcrmConfiguration'][_0x2b61e6('0x9')]),_0x51ab55['query']=_['keys'](_0x39c324[_0x2b61e6('0x49')]),_0x51ab55['filters']=_['intersection'](_0x51ab55['model'],_0x51ab55[_0x2b61e6('0x49')]),_0x472d29[_0x2b61e6('0x62')]=_[_0x2b61e6('0x52')](_0x51ab55[_0x2b61e6('0x18')],qs['fields'](_0x39c324['query'][_0x2b61e6('0x5a')])),_0x472d29['attributes']=_0x472d29[_0x2b61e6('0x62')][_0x2b61e6('0x5')]?_0x472d29[_0x2b61e6('0x62')]:_0x51ab55[_0x2b61e6('0x18')],_0x472d29[_0x2b61e6('0x1a')]=qs['sort'](_0x39c324['query']['sort']),_0x472d29[_0x2b61e6('0xd')]=qs[_0x2b61e6('0x3d')](_['pick'](_0x39c324[_0x2b61e6('0x49')],_0x51ab55[_0x2b61e6('0x3d')])),_0x39c324['query']['filter']&&(_0x472d29[_0x2b61e6('0xd')]=_['merge'](_0x472d29[_0x2b61e6('0xd')],{[Op['or']]:_[_0x2b61e6('0x23')](_0x472d29[_0x2b61e6('0x62')],function(_0x5130a0){const _0x2df724=_0x2b61e6,_0x37637e={};return _0x37637e[_0x5130a0]={[Op[_0x2df724('0x53')]]:'%'+_0x39c324[_0x2df724('0x49')]['filter']+'%'},_0x37637e;})})),_0x472d29=_['merge']({},_0x472d29,_0x39c324['options']),_0x8dda02[_0x2b61e6('0x30')](_0x472d29);})['then'](function(_0xa7ceda){const _0x5a09ed=_0xbd73;if(_0xa7ceda)return _0x5909ea=_0xa7ceda[_0x5a09ed('0x5')],typeof _0x39c324[_0x5a09ed('0x49')][_0x5a09ed('0x44')]===_0x5a09ed('0x2')&&(_0x472d29[_0x5a09ed('0x7')]=qs[_0x5a09ed('0x7')](_0x39c324['query'][_0x5a09ed('0x7')]),_0x472d29[_0x5a09ed('0x61')]=qs[_0x5a09ed('0x61')](_0x39c324[_0x5a09ed('0x49')][_0x5a09ed('0x61')])),_0x8dda02[_0x5a09ed('0x30')](_0x472d29);})[_0xbd73('0x32')](function(_0x114fc5){if(_0x114fc5)return _0x114fc5?{'count':_0x5909ea,'rows':_0x114fc5}:null;})[_0xbd73('0x32')](respondWithResult(_0x98580c,null))[_0xbd73('0x2c')](handleError(_0x98580c,null));},exports[_0x317a59('0x4b')]=function(_0x30df36,_0x1b30ff){const _0x416816=_0x317a59;return _0x30df36[_0x416816('0x0')]['id']&&delete _0x30df36[_0x416816('0x0')]['id'],db[_0x416816('0x24')]['findOne']({'where':{'id':_0x30df36['params']['id']}})['then'](handleEntityNotFound(_0x1b30ff,null))[_0x416816('0x32')](function(_0x52fb4a){const _0x1063b6=_0x416816;if(_0x52fb4a)return _0x30df36[_0x1063b6('0x0')][_0x1063b6('0x48')]=_0x52fb4a['id'],_0x30df36[_0x1063b6('0x0')][_0x1063b6('0x22')]=integrations[_0x1063b6('0x31')](_0x30df36[_0x1063b6('0x0')][_0x1063b6('0x1c')],_0x30df36[_0x1063b6('0x0')][_0x1063b6('0x3')]),_0x30df36[_0x1063b6('0x0')][_0x1063b6('0x12')]=integrations[_0x1063b6('0x29')](_0x30df36[_0x1063b6('0x0')]['channel'],_0x30df36[_0x1063b6('0x0')][_0x1063b6('0x3')]),db[_0x1063b6('0x37')]['create'](_0x30df36[_0x1063b6('0x0')],{'include':[{'model':db[_0x1063b6('0x63')],'as':_0x1063b6('0x22')},{'model':db['SugarcrmField'],'as':_0x1063b6('0x12')}]});return null;})[_0x416816('0x32')](respondWithResult(_0x1b30ff,null))[_0x416816('0x2c')](handleError(_0x1b30ff,null));},exports['getFields']=function(_0x3e594c,_0x36dc42){const _0x530cbb=_0x317a59;let _0xe1c049='';const _0x29d796=['id',_0x530cbb('0x20'),_0x530cbb('0xa'),_0x530cbb('0x47'),_0x530cbb('0xe'),_0x530cbb('0x4d'),_0x530cbb('0x46'),_0x530cbb('0x59'),_0x530cbb('0x40'),_0x530cbb('0x3b'),'parent_name',_0x530cbb('0x1b')];return db[_0x530cbb('0x24')][_0x530cbb('0x4e')]({'where':{'id':_0x3e594c[_0x530cbb('0x34')]['id']},'attributes':['id',_0x530cbb('0x3f'),'password',_0x530cbb('0x5e')]})['then'](handleEntityNotFound(_0x36dc42,null))[_0x530cbb('0x32')](function(_0x339109){const _0x579843=_0x530cbb;if(_0x339109){_0xe1c049=_0x339109[_0x579843('0x5e')];const _0x5e4f5e=_0xe1c049[_0x579843('0x51')](-0x1);return _0x5e4f5e==='/'&&(_0xe1c049=_0xe1c049['substring'](0x0,_0xe1c049['lastIndexOf'](_0x5e4f5e))),rp({'method':'POST','uri':util['format'](_0x579843('0x4f'),_0xe1c049,_0x579843('0x1d')),'json':!![],'form':{'method':_0x579843('0x55'),'input_type':_0x579843('0x36'),'response_type':_0x579843('0x36'),'rest_data':JSON[_0x579843('0x33')]({'user_auth':{'user_name':_0x339109[_0x579843('0x3f')],'password':_0x339109['password'],'encryption':'PLAIN'},'application':_0x579843('0xf')})}});}})[_0x530cbb('0x32')](function(_0x36385b){const _0x33f5d2=_0x530cbb;if(_0x36385b&&_0x36385b[_0x33f5d2('0x20')]!=='Invalid\x20Login'&&_0x36385b[_0x33f5d2('0x20')]!==_0x33f5d2('0x3a'))return rp({'method':_0x33f5d2('0x39'),'uri':util[_0x33f5d2('0x2b')](_0x33f5d2('0x4f'),_0xe1c049,_0x33f5d2('0x1d')),'json':!![],'form':{'method':_0x33f5d2('0x45'),'input_type':'JSON','response_type':_0x33f5d2('0x36'),'rest_data':JSON['stringify']({'session':_0x36385b['id'],'module_name':_0x33f5d2('0x3c')})}})[_0x33f5d2('0x32')](function(_0x19b406){const _0x42490c=_0x33f5d2;if(_0x19b406){const _0x3c3542=_[_0x42490c('0x10')](_0x19b406[_0x42490c('0x60')]);return _[_0x42490c('0x4c')](_0x3c3542,function(_0x134e94){const _0x842391=_0x42490c;return _0x29d796[_0x842391('0x5f')](_0x134e94[_0x842391('0x20')]);}),{'count':_0x3c3542[_0x42490c('0x5')],'rows':_[_0x42490c('0x23')](_0x3c3542,function(_0x1e527e){const _0x103b1e=_0x42490c;return{'id':_0x1e527e[_0x103b1e('0x20')],'name':_0x1e527e[_0x103b1e('0x2f')],'custom':_[_0x103b1e('0x1e')](_0x1e527e['name'],'_c')?!![]:![],'options':_0x1e527e['options']?_[_0x103b1e('0x23')](_[_0x103b1e('0x10')](_0x1e527e[_0x103b1e('0x56')]),function(_0x113def){const _0x515695=_0x103b1e;return{'name':_0x113def[_0x515695('0x5b')],'value':_0x113def['name']};}):[]};})};}})['then'](respondWithResult(_0x36dc42,null))[_0x33f5d2('0x2c')](function(_0x585898){const _0x2d6dcd=_0x33f5d2;let _0xaec5e=_0x3e594c[_0x2d6dcd('0x49')][_0x2d6dcd('0x27')]?0x1f4:_0x585898[_0x2d6dcd('0x1f')]||0x1f4;logger[_0x2d6dcd('0x16')](_0x2d6dcd('0x4'),_0x2d6dcd('0x42'),_0xaec5e,JSON[_0x2d6dcd('0x33')](_0x585898)),delete _0x585898[_0x2d6dcd('0x20')],_0xaec5e===0x191&&(_0xaec5e=0x190),_0x36dc42[_0x2d6dcd('0x38')](_0xaec5e)[_0x2d6dcd('0x43')](_0x3e594c['query'][_0x2d6dcd('0x27')]?{'message':_0x2d6dcd('0x21'),'statusCode':_0x585898['statusCode']}:_0x585898);});else{const _0x200ad7=0x1f4;_0x36dc42['status'](_0x200ad7)['send']({'message':_0x33f5d2('0x21'),'statusCode':0x190});}});}; \ No newline at end of file +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 diff --git a/server/api/intSugarcrmAccount/intSugarcrmAccount.model.js b/server/api/intSugarcrmAccount/intSugarcrmAccount.model.js index 729aef2..c87cc74 100644 --- a/server/api/intSugarcrmAccount/intSugarcrmAccount.model.js +++ b/server/api/intSugarcrmAccount/intSugarcrmAccount.model.js @@ -1 +1 @@ -const a308_0x5db3=['exports','./intSugarcrmAccount.attributes','SugarcrmAccount','int_sugarcrm_accounts'];(function(_0x13139c,_0x5db3f9){const _0x248e1b=function(_0x105024){while(--_0x105024){_0x13139c['push'](_0x13139c['shift']());}};_0x248e1b(++_0x5db3f9);}(a308_0x5db3,0x6d));const a308_0x248e=function(_0x13139c,_0x5db3f9){_0x13139c=_0x13139c-0x0;let _0x248e1b=a308_0x5db3[_0x13139c];return _0x248e1b;};const _0x115594=a308_0x248e;'use strict';const attributes=require(_0x115594('0x0'));module[_0x115594('0x3')]=function(_0x105024){const _0x48030d=_0x115594,_0x5d7ce8=_0x105024['define'](_0x48030d('0x1'),attributes,{'tableName':_0x48030d('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5d7ce8;}; \ No newline at end of file +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 diff --git a/server/api/intSugarcrmAccount/intSugarcrmAccount.rpc.js b/server/api/intSugarcrmAccount/intSugarcrmAccount.rpc.js index ff390ad..039cc8c 100644 --- a/server/api/intSugarcrmAccount/intSugarcrmAccount.rpc.js +++ b/server/api/intSugarcrmAccount/intSugarcrmAccount.rpc.js @@ -1 +1 @@ -const a309_0xad68=['debug','lodash','message','raw','options','rpc','error','ShowSugarcrmAccount','SugarcrmAccount','GetSugarcrmAccount','attributes','limit','findAll','then','catch','stringify','include','map','info','model','../../mysqldb','where'];(function(_0x40ffb3,_0xad6893){const _0x347f45=function(_0x403df5){while(--_0x403df5){_0x40ffb3['push'](_0x40ffb3['shift']());}};_0x347f45(++_0xad6893);}(a309_0xad68,0x17b));const a309_0x347f=function(_0x40ffb3,_0xad6893){_0x40ffb3=_0x40ffb3-0x0;let _0x347f45=a309_0xad68[_0x40ffb3];return _0x347f45;};const _0x12c7ca=a309_0x347f;'use strict';const _=require(_0x12c7ca('0x12')),db=require(_0x12c7ca('0xf'))['db'],logger=require('../../config/logger')(_0x12c7ca('0x0'));exports[_0x12c7ca('0x4')]=function(_0x403df5){const _0x1c3cc4=this;return new Promise(function(_0x1e5a76,_0x1d87bb){const _0x4037ff=a309_0x347f;return db['SugarcrmAccount'][_0x4037ff('0x7')]({'raw':_0x403df5[_0x4037ff('0x15')]?_0x403df5[_0x4037ff('0x15')][_0x4037ff('0x14')]===undefined?!![]:![]:!![],'where':_0x403df5[_0x4037ff('0x15')]?_0x403df5[_0x4037ff('0x15')][_0x4037ff('0x10')]||null:null,'attributes':_0x403df5[_0x4037ff('0x15')]?_0x403df5[_0x4037ff('0x15')]['attributes']||null:null,'limit':_0x403df5[_0x4037ff('0x15')]?_0x403df5[_0x4037ff('0x15')][_0x4037ff('0x6')]||null:null,'include':_0x403df5[_0x4037ff('0x15')]?_0x403df5[_0x4037ff('0x15')][_0x4037ff('0xb')]?_['map'](_0x403df5[_0x4037ff('0x15')]['include'],function(_0x3f9bde){const _0x482877=_0x4037ff;return{'model':db[_0x3f9bde[_0x482877('0xe')]],'as':_0x3f9bde['as'],'attributes':_0x3f9bde[_0x482877('0x5')],'include':_0x3f9bde['include']?_[_0x482877('0xc')](_0x3f9bde[_0x482877('0xb')],function(_0x12a661){const _0x452681=_0x482877;return{'model':db[_0x12a661[_0x452681('0xe')]],'as':_0x12a661['as'],'attributes':_0x12a661[_0x452681('0x5')],'include':_0x12a661['include']?_[_0x452681('0xc')](_0x12a661[_0x452681('0xb')],function(_0x3043d7){const _0x3c6774=_0x452681;return{'model':db[_0x3043d7['model']],'as':_0x3043d7['as'],'attributes':_0x3043d7[_0x3c6774('0x5')]};}):[]};}):[]};}):[]:[]})[_0x4037ff('0x8')](function(_0x266828){const _0x39175a=_0x4037ff;logger[_0x39175a('0xd')](_0x39175a('0x4'),_0x403df5),logger['debug'](_0x39175a('0x4'),_0x403df5,JSON['stringify'](_0x266828)),_0x1e5a76(_0x266828);})['catch'](function(_0xb18fe4){const _0x51fd5a=_0x4037ff;logger[_0x51fd5a('0x1')](_0x51fd5a('0x4'),_0xb18fe4[_0x51fd5a('0x13')],_0x403df5),_0x1d87bb(_0x1c3cc4[_0x51fd5a('0x1')](0x1f4,_0xb18fe4[_0x51fd5a('0x13')]));});});},exports[_0x12c7ca('0x2')]=function(_0xf812b8){const _0x5edec1=this;return new Promise(function(_0x5928de,_0x4bfc27){const _0x13466c=a309_0x347f;return db[_0x13466c('0x3')]['findOne']({'raw':_0xf812b8['options']?_0xf812b8[_0x13466c('0x15')][_0x13466c('0x14')]===undefined?!![]:![]:!![],'where':_0xf812b8[_0x13466c('0x15')]?_0xf812b8[_0x13466c('0x15')][_0x13466c('0x10')]||null:null,'attributes':_0xf812b8[_0x13466c('0x15')]?_0xf812b8[_0x13466c('0x15')][_0x13466c('0x5')]||null:null,'include':_0xf812b8['options']?_0xf812b8[_0x13466c('0x15')][_0x13466c('0xb')]?_[_0x13466c('0xc')](_0xf812b8[_0x13466c('0x15')]['include'],function(_0x1ef206){const _0x3e6ce7=_0x13466c;return{'model':db[_0x1ef206[_0x3e6ce7('0xe')]],'as':_0x1ef206['as'],'attributes':_0x1ef206[_0x3e6ce7('0x5')],'include':_0x1ef206[_0x3e6ce7('0xb')]?_[_0x3e6ce7('0xc')](_0x1ef206[_0x3e6ce7('0xb')],function(_0x3c0e91){const _0x3e2dd3=_0x3e6ce7;return{'model':db[_0x3c0e91[_0x3e2dd3('0xe')]],'as':_0x3c0e91['as'],'attributes':_0x3c0e91[_0x3e2dd3('0x5')],'include':_0x3c0e91[_0x3e2dd3('0xb')]?_[_0x3e2dd3('0xc')](_0x3c0e91[_0x3e2dd3('0xb')],function(_0xdd4bd5){const _0x37b1ef=_0x3e2dd3;return{'model':db[_0xdd4bd5[_0x37b1ef('0xe')]],'as':_0xdd4bd5['as'],'attributes':_0xdd4bd5[_0x37b1ef('0x5')]};}):[]};}):[]};}):[]:[]})[_0x13466c('0x8')](function(_0x5dcbca){const _0x5e0c53=_0x13466c;logger['info'](_0x5e0c53('0x2'),_0xf812b8),logger[_0x5e0c53('0x11')](_0x5e0c53('0x2'),_0xf812b8,JSON[_0x5e0c53('0xa')](_0x5dcbca)),_0x5928de(_0x5dcbca);})[_0x13466c('0x9')](function(_0x5ce4d7){const _0x3f2796=_0x13466c;logger['error'](_0x3f2796('0x2'),_0x5ce4d7[_0x3f2796('0x13')],_0xf812b8),_0x4bfc27(_0x5edec1[_0x3f2796('0x1')](0x1f4,_0x5ce4d7['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/intSugarcrmConfiguration/index.js b/server/api/intSugarcrmConfiguration/index.js index 91577e8..b452914 100644 --- a/server/api/intSugarcrmConfiguration/index.js +++ b/server/api/intSugarcrmConfiguration/index.js @@ -1 +1 @@ -const a310_0x4c81=['/:id/fields','/:id/subjects','getSubjects','getFields','index','/:id/descriptions','getDescriptions','get','/:id','Router','express','./intSugarcrmConfiguration.controller','destroy','update','put','isAuthenticated'];(function(_0x3458a1,_0x4c8139){const _0x1e73d8=function(_0x42f2fb){while(--_0x42f2fb){_0x3458a1['push'](_0x3458a1['shift']());}};_0x1e73d8(++_0x4c8139);}(a310_0x4c81,0x1ca));const a310_0x1e73=function(_0x3458a1,_0x4c8139){_0x3458a1=_0x3458a1-0x0;let _0x1e73d8=a310_0x4c81[_0x3458a1];return _0x1e73d8;};const _0x49350c=a310_0x1e73;'use strict';const express=require(_0x49350c('0x0')),router=express[_0x49350c('0xf')](),auth=require('../../components/auth/service'),controller=require(_0x49350c('0x1'));router[_0x49350c('0xd')]('/',auth['isAuthenticated'](),controller[_0x49350c('0xa')]),router[_0x49350c('0xd')]('/:id',auth[_0x49350c('0x5')](),controller['show']),router['get'](_0x49350c('0x6'),auth[_0x49350c('0x5')](),controller[_0x49350c('0x9')]),router[_0x49350c('0xd')](_0x49350c('0x7'),auth[_0x49350c('0x5')](),controller[_0x49350c('0x8')]),router[_0x49350c('0xd')](_0x49350c('0xb'),auth['isAuthenticated'](),controller[_0x49350c('0xc')]),router['post']('/',auth[_0x49350c('0x5')](),controller['create']),router[_0x49350c('0x4')]('/:id',auth['isAuthenticated'](),controller[_0x49350c('0x3')]),router['delete'](_0x49350c('0xe'),auth['isAuthenticated'](),controller[_0x49350c('0x2')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.attributes.js b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.attributes.js index 195bd75..2264a24 100644 --- a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.attributes.js +++ b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.attributes.js @@ -1 +1 @@ -const a311_0x35dd=['exports','STRING'];(function(_0x23255f,_0x35dd60){const _0x392d86=function(_0x478a7f){while(--_0x478a7f){_0x23255f['push'](_0x23255f['shift']());}};_0x392d86(++_0x35dd60);}(a311_0x35dd,0x196));const a311_0x392d=function(_0x23255f,_0x35dd60){_0x23255f=_0x23255f-0x0;let _0x392d86=a311_0x35dd[_0x23255f];return _0x392d86;};const _0x5a5708=a311_0x392d;'use strict';const Sequelize=require('sequelize');module[_0x5a5708('0x0')]={'name':{'type':Sequelize[_0x5a5708('0x1')]},'description':{'type':Sequelize[_0x5a5708('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.controller.js b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.controller.js index 139da45..683f0d7 100644 --- a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.controller.js +++ b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.controller.js @@ -1 +1 @@ -const a312_0x15b8=['sort','catch','limit','fields','count','options','pick','getSubjects','SugarcrmConfiguration','map','model','index','../../components/parsers/qs','where','Content-Range','merge','like','offset','filter','params','VIRTUAL','sequelize','json','key','SugarcrmField','sendStatus','type','status','getFields','attributes','send','getDescriptions','intersection','query','undefined','findOne','then','rows','include','filters','show','name','nolimit','findAll','keys','set','update','body','lodash','destroy','length','includeAll','fieldName','rawAttributes','order','stack','error'];(function(_0x3b87eb,_0x15b86d){const _0x5a15dc=function(_0x3a257a){while(--_0x3a257a){_0x3b87eb['push'](_0x3b87eb['shift']());}};_0x5a15dc(++_0x15b86d);}(a312_0x15b8,0x1a5));const a312_0x5a15=function(_0x3b87eb,_0x15b86d){_0x3b87eb=_0x3b87eb-0x0;let _0x5a15dc=a312_0x15b8[_0x3b87eb];return _0x5a15dc;};const _0x1f096d=a312_0x5a15;'use strict';const _=require(_0x1f096d('0x1a')),qs=require(_0x1f096d('0x2f')),logger=require('../../config/logger')('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x1f096d('0x38'));function respondWithResult(_0x3a257a,_0x2273b8){return _0x2273b8=_0x2273b8||0xc8,function(_0x17295f){const _0x5d42f4=a312_0x5a15;if(_0x17295f)return _0x3a257a[_0x5d42f4('0x5')](_0x2273b8)[_0x5d42f4('0x0')](_0x17295f);};}function respondWithFilteredResult(_0x53cb8d,_0x5b5bf2){return function(_0x2a4e76){const _0x59db9e=a312_0x5a15;if(_0x2a4e76){const _0x3c2dbf=_0x2a4e76[_0x59db9e('0x27')],_0x381db9=_0x5b5bf2[_0x59db9e('0x34')];let _0x117f19=_0x5b5bf2[_0x59db9e('0x34')]+_0x5b5bf2[_0x59db9e('0x25')],_0x15f989;return _0x117f19>=_0x3c2dbf?(_0x117f19=_0x3c2dbf,_0x15f989=0xc8):_0x15f989=0xce,_0x53cb8d[_0x59db9e('0x5')](_0x15f989),_0x53cb8d[_0x59db9e('0x17')](_0x59db9e('0x31'),_0x381db9+'-'+_0x117f19+'/'+_0x3c2dbf)[_0x59db9e('0x0')](_0x2a4e76);}return null;};}function saveUpdates(_0x32dca7){return function(_0x29b9da){const _0x2f77e9=a312_0x5a15;if(_0x29b9da)return _0x29b9da[_0x2f77e9('0x18')](_0x32dca7)[_0x2f77e9('0xe')](function(_0x5719b0){return _0x5719b0;});return null;};}function removeEntity(_0x4d2ac0){return function(_0x9648a7){const _0xea3df9=a312_0x5a15;if(_0x9648a7)return _0x9648a7[_0xea3df9('0x1b')]()['then'](function(){_0x4d2ac0['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x1c2aff){return function(_0x3622bb){const _0xd96f49=a312_0x5a15;return!_0x3622bb&&_0x1c2aff[_0xd96f49('0x3')](0x194),_0x3622bb;};}function handleError(_0x1afafc,_0x5f2132){return _0x5f2132=_0x5f2132||0x1f4,function(_0x48de9c){const _0x3dd7df=a312_0x5a15;logger[_0x3dd7df('0x22')](_0x48de9c[_0x3dd7df('0x21')]),_0x48de9c[_0x3dd7df('0x13')]&&delete _0x48de9c['name'],_0x1afafc['status'](_0x5f2132)[_0x3dd7df('0x8')](_0x48de9c);};}exports[_0x1f096d('0x2e')]=function(_0x1224d2,_0x4cc513){const _0x45a042=_0x1f096d;let _0x464794={};const _0x3a5311={},_0xfb7e4d={'count':0x0,'rows':[]},_0x57fcfc=_[_0x45a042('0x2c')](db[_0x45a042('0x2b')][_0x45a042('0x1f')],function(_0x9135f5){const _0x2287d2=_0x45a042;return{'name':_0x9135f5[_0x2287d2('0x1e')],'type':_0x9135f5[_0x2287d2('0x4')][_0x2287d2('0x1')]};});_0x3a5311[_0x45a042('0x2d')]=_[_0x45a042('0x2c')](_0x57fcfc,'name'),_0x3a5311[_0x45a042('0xb')]=_[_0x45a042('0x16')](_0x1224d2['query']),_0x3a5311[_0x45a042('0x11')]=_[_0x45a042('0xa')](_0x3a5311['model'],_0x3a5311['query']),_0x464794[_0x45a042('0x7')]=_[_0x45a042('0xa')](_0x3a5311[_0x45a042('0x2d')],qs[_0x45a042('0x26')](_0x1224d2[_0x45a042('0xb')][_0x45a042('0x26')])),_0x464794[_0x45a042('0x7')]=_0x464794[_0x45a042('0x7')]['length']?_0x464794[_0x45a042('0x7')]:_0x3a5311[_0x45a042('0x2d')];typeof _0x1224d2[_0x45a042('0xb')]['nolimit']===_0x45a042('0xc')&&(_0x464794[_0x45a042('0x25')]=qs['limit'](_0x1224d2[_0x45a042('0xb')][_0x45a042('0x25')]),_0x464794[_0x45a042('0x34')]=qs[_0x45a042('0x34')](_0x1224d2['query'][_0x45a042('0x34')]));_0x464794[_0x45a042('0x20')]=qs['sort'](_0x1224d2[_0x45a042('0xb')][_0x45a042('0x23')]),_0x464794['where']=qs[_0x45a042('0x11')](_[_0x45a042('0x29')](_0x1224d2[_0x45a042('0xb')],_0x3a5311['filters']),_0x57fcfc);_0x1224d2[_0x45a042('0xb')]['filter']&&(_0x464794['where']=_[_0x45a042('0x32')](_0x464794['where'],{[Op['or']]:_['map'](_0x57fcfc,function(_0x282787){const _0x71d7e7=_0x45a042;if(_0x282787[_0x71d7e7('0x4')]!==_0x71d7e7('0x37')){const _0x357902={};return _0x357902[_0x282787[_0x71d7e7('0x13')]]={[Op[_0x71d7e7('0x33')]]:'%'+_0x1224d2[_0x71d7e7('0xb')][_0x71d7e7('0x35')]+'%'},_0x357902;}})}));_0x464794=_['merge']({},_0x464794,_0x1224d2['options']);const _0xb222d4={'where':_0x464794[_0x45a042('0x30')]};return db[_0x45a042('0x2b')][_0x45a042('0x27')](_0xb222d4)[_0x45a042('0xe')](function(_0x3d5c50){const _0x1ced0e=_0x45a042;return _0xfb7e4d['count']=_0x3d5c50,_0x1224d2[_0x1ced0e('0xb')][_0x1ced0e('0x1d')]&&(_0x464794[_0x1ced0e('0x10')]=[{'all':!![]}]),db['SugarcrmConfiguration'][_0x1ced0e('0x15')](_0x464794);})[_0x45a042('0xe')](function(_0x3aa5e9){const _0x448ca6=_0x45a042;return _0xfb7e4d[_0x448ca6('0xf')]=_0x3aa5e9,_0xfb7e4d;})['then'](respondWithFilteredResult(_0x4cc513,_0x464794))[_0x45a042('0x24')](handleError(_0x4cc513,null));},exports[_0x1f096d('0x12')]=function(_0xd1e74d,_0x2a0470){const _0x4365ca=_0x1f096d;let _0x1cae5f={'raw':![],'where':{'id':_0xd1e74d[_0x4365ca('0x36')]['id']}};const _0x3796d3={};return _0x3796d3[_0x4365ca('0x2d')]=_[_0x4365ca('0x16')](db[_0x4365ca('0x2b')]['rawAttributes']),_0x3796d3[_0x4365ca('0xb')]=_[_0x4365ca('0x16')](_0xd1e74d[_0x4365ca('0xb')]),_0x3796d3['filters']=_[_0x4365ca('0xa')](_0x3796d3[_0x4365ca('0x2d')],_0x3796d3[_0x4365ca('0xb')]),_0x1cae5f[_0x4365ca('0x7')]=_[_0x4365ca('0xa')](_0x3796d3['model'],qs[_0x4365ca('0x26')](_0xd1e74d['query']['fields'])),_0x1cae5f[_0x4365ca('0x7')]=_0x1cae5f[_0x4365ca('0x7')][_0x4365ca('0x1c')]?_0x1cae5f[_0x4365ca('0x7')]:_0x3796d3[_0x4365ca('0x2d')],_0xd1e74d[_0x4365ca('0xb')][_0x4365ca('0x1d')]&&(_0x1cae5f[_0x4365ca('0x10')]=[{'all':!![]}]),_0x1cae5f=_[_0x4365ca('0x32')]({},_0x1cae5f,_0xd1e74d[_0x4365ca('0x28')]),db[_0x4365ca('0x2b')][_0x4365ca('0xd')](_0x1cae5f)['then'](handleEntityNotFound(_0x2a0470,null))['then'](respondWithResult(_0x2a0470,null))[_0x4365ca('0x24')](handleError(_0x2a0470,null));},exports['create']=function(_0x10f15b,_0x483fb6){const _0x1a3f22=_0x1f096d;return db['SugarcrmConfiguration']['create'](_0x10f15b[_0x1a3f22('0x19')],{})[_0x1a3f22('0xe')](respondWithResult(_0x483fb6,0xc9))[_0x1a3f22('0x24')](handleError(_0x483fb6,null));},exports[_0x1f096d('0x18')]=function(_0x13d4d0,_0x112f1f){const _0x5ce9e0=_0x1f096d;return _0x13d4d0[_0x5ce9e0('0x19')]['id']&&delete _0x13d4d0['body']['id'],db['SugarcrmConfiguration']['findOne']({'where':{'id':_0x13d4d0[_0x5ce9e0('0x36')]['id']}})[_0x5ce9e0('0xe')](handleEntityNotFound(_0x112f1f,null))[_0x5ce9e0('0xe')](saveUpdates(_0x13d4d0[_0x5ce9e0('0x19')],null))[_0x5ce9e0('0xe')](respondWithResult(_0x112f1f,null))[_0x5ce9e0('0x24')](handleError(_0x112f1f,null));},exports[_0x1f096d('0x1b')]=function(_0xc156ed,_0x590ee2){const _0x1acebb=_0x1f096d;return db[_0x1acebb('0x2b')]['findOne']({'where':{'id':_0xc156ed[_0x1acebb('0x36')]['id']}})[_0x1acebb('0xe')](handleEntityNotFound(_0x590ee2,null))['then'](removeEntity(_0x590ee2,null))[_0x1acebb('0x24')](handleError(_0x590ee2,null));},exports[_0x1f096d('0x6')]=function(_0x5397a0,_0x45fdce){const _0x81e7ab=_0x1f096d;let _0x21e32e={};const _0x3d44a7={};let _0x270ff1,_0x315cea;return db[_0x81e7ab('0x2b')][_0x81e7ab('0xd')]({'where':{'id':_0x5397a0[_0x81e7ab('0x36')]['id']}})['then'](handleEntityNotFound(_0x45fdce,null))['then'](function(_0x3b02b4){const _0x27058d=_0x81e7ab;if(_0x3b02b4)return _0x270ff1=_0x3b02b4,_0x3d44a7[_0x27058d('0x2d')]=_[_0x27058d('0x16')](db[_0x27058d('0x2')]['rawAttributes']),_0x3d44a7[_0x27058d('0xb')]=_[_0x27058d('0x16')](_0x5397a0['query']),_0x3d44a7[_0x27058d('0x11')]=_['intersection'](_0x3d44a7['model'],_0x3d44a7[_0x27058d('0xb')]),_0x21e32e['attributes']=_[_0x27058d('0xa')](_0x3d44a7['model'],qs[_0x27058d('0x26')](_0x5397a0[_0x27058d('0xb')]['fields'])),_0x21e32e[_0x27058d('0x7')]=_0x21e32e['attributes'][_0x27058d('0x1c')]?_0x21e32e[_0x27058d('0x7')]:_0x3d44a7['model'],_0x21e32e[_0x27058d('0x20')]=qs[_0x27058d('0x23')](_0x5397a0[_0x27058d('0xb')][_0x27058d('0x23')]),_0x21e32e[_0x27058d('0x30')]=qs[_0x27058d('0x11')](_[_0x27058d('0x29')](_0x5397a0[_0x27058d('0xb')],_0x3d44a7['filters'])),_0x5397a0['query'][_0x27058d('0x35')]&&(_0x21e32e['where']=_[_0x27058d('0x32')](_0x21e32e[_0x27058d('0x30')],{[Op['or']]:_[_0x27058d('0x2c')](_0x21e32e[_0x27058d('0x7')],function(_0x230c80){const _0x48258c=_0x27058d,_0x2c5774={};return _0x2c5774[_0x230c80]={[Op[_0x48258c('0x33')]]:'%'+_0x5397a0[_0x48258c('0xb')]['filter']+'%'},_0x2c5774;})})),_0x21e32e=_[_0x27058d('0x32')]({},_0x21e32e,_0x5397a0[_0x27058d('0x28')]),_0x270ff1[_0x27058d('0x6')](_0x21e32e);})[_0x81e7ab('0xe')](function(_0x265b8c){const _0x4b65e4=_0x81e7ab;if(_0x265b8c)return _0x315cea=_0x265b8c['length'],typeof _0x5397a0[_0x4b65e4('0xb')][_0x4b65e4('0x14')]===_0x4b65e4('0xc')&&(_0x21e32e[_0x4b65e4('0x25')]=qs[_0x4b65e4('0x25')](_0x5397a0[_0x4b65e4('0xb')][_0x4b65e4('0x25')]),_0x21e32e[_0x4b65e4('0x34')]=qs[_0x4b65e4('0x34')](_0x5397a0['query']['offset'])),_0x270ff1[_0x4b65e4('0x6')](_0x21e32e);})[_0x81e7ab('0xe')](function(_0x3ffd58){if(_0x3ffd58)return _0x3ffd58?{'count':_0x315cea,'rows':_0x3ffd58}:null;})[_0x81e7ab('0xe')](respondWithResult(_0x45fdce,null))[_0x81e7ab('0x24')](handleError(_0x45fdce,null));},exports['getSubjects']=function(_0x3db41c,_0x2278f3){const _0x1e2abd=_0x1f096d;let _0x57f047={};const _0x5dc52b={};let _0x2e2e94,_0x19b30a;return db['SugarcrmConfiguration'][_0x1e2abd('0xd')]({'where':{'id':_0x3db41c[_0x1e2abd('0x36')]['id']}})[_0x1e2abd('0xe')](handleEntityNotFound(_0x2278f3,null))['then'](function(_0x321c1b){const _0x3bcd16=_0x1e2abd;if(_0x321c1b)return _0x2e2e94=_0x321c1b,_0x5dc52b[_0x3bcd16('0x2d')]=_[_0x3bcd16('0x16')](db[_0x3bcd16('0x2')][_0x3bcd16('0x1f')]),_0x5dc52b[_0x3bcd16('0xb')]=_[_0x3bcd16('0x16')](_0x3db41c[_0x3bcd16('0xb')]),_0x5dc52b[_0x3bcd16('0x11')]=_[_0x3bcd16('0xa')](_0x5dc52b[_0x3bcd16('0x2d')],_0x5dc52b[_0x3bcd16('0xb')]),_0x57f047['attributes']=_['intersection'](_0x5dc52b[_0x3bcd16('0x2d')],qs[_0x3bcd16('0x26')](_0x3db41c[_0x3bcd16('0xb')][_0x3bcd16('0x26')])),_0x57f047['attributes']=_0x57f047[_0x3bcd16('0x7')][_0x3bcd16('0x1c')]?_0x57f047[_0x3bcd16('0x7')]:_0x5dc52b['model'],_0x57f047['order']=qs[_0x3bcd16('0x23')](_0x3db41c[_0x3bcd16('0xb')][_0x3bcd16('0x23')]),_0x57f047[_0x3bcd16('0x30')]=qs[_0x3bcd16('0x11')](_[_0x3bcd16('0x29')](_0x3db41c[_0x3bcd16('0xb')],_0x5dc52b[_0x3bcd16('0x11')])),_0x3db41c[_0x3bcd16('0xb')][_0x3bcd16('0x35')]&&(_0x57f047['where']=_[_0x3bcd16('0x32')](_0x57f047[_0x3bcd16('0x30')],{[Op['or']]:_['map'](_0x57f047[_0x3bcd16('0x7')],function(_0x959bc7){const _0x471f58=_0x3bcd16,_0x177e23={};return _0x177e23[_0x959bc7]={[Op[_0x471f58('0x33')]]:'%'+_0x3db41c[_0x471f58('0xb')][_0x471f58('0x35')]+'%'},_0x177e23;})})),_0x57f047=_[_0x3bcd16('0x32')]({},_0x57f047,_0x3db41c['options']),_0x2e2e94[_0x3bcd16('0x2a')](_0x57f047);})[_0x1e2abd('0xe')](function(_0x179d9a){const _0x359b04=_0x1e2abd;if(_0x179d9a)return _0x19b30a=_0x179d9a['length'],typeof _0x3db41c[_0x359b04('0xb')][_0x359b04('0x14')]===_0x359b04('0xc')&&(_0x57f047['limit']=qs[_0x359b04('0x25')](_0x3db41c['query'][_0x359b04('0x25')]),_0x57f047['offset']=qs[_0x359b04('0x34')](_0x3db41c['query'][_0x359b04('0x34')])),_0x2e2e94[_0x359b04('0x2a')](_0x57f047);})['then'](function(_0x3ff903){if(_0x3ff903)return _0x3ff903?{'count':_0x19b30a,'rows':_0x3ff903}:null;})[_0x1e2abd('0xe')](respondWithResult(_0x2278f3,null))['catch'](handleError(_0x2278f3,null));},exports['getDescriptions']=function(_0x298d5f,_0x462ce2){const _0x748ef=_0x1f096d;let _0x3d9b3d={};const _0x3d1567={};let _0x29b24f,_0x5677df;return db[_0x748ef('0x2b')][_0x748ef('0xd')]({'where':{'id':_0x298d5f[_0x748ef('0x36')]['id']}})[_0x748ef('0xe')](handleEntityNotFound(_0x462ce2,null))[_0x748ef('0xe')](function(_0x5a63e2){const _0x517aed=_0x748ef;if(_0x5a63e2)return _0x29b24f=_0x5a63e2,_0x3d1567['model']=_['keys'](db[_0x517aed('0x2')][_0x517aed('0x1f')]),_0x3d1567[_0x517aed('0xb')]=_[_0x517aed('0x16')](_0x298d5f['query']),_0x3d1567[_0x517aed('0x11')]=_['intersection'](_0x3d1567['model'],_0x3d1567[_0x517aed('0xb')]),_0x3d9b3d['attributes']=_[_0x517aed('0xa')](_0x3d1567[_0x517aed('0x2d')],qs[_0x517aed('0x26')](_0x298d5f[_0x517aed('0xb')][_0x517aed('0x26')])),_0x3d9b3d[_0x517aed('0x7')]=_0x3d9b3d[_0x517aed('0x7')][_0x517aed('0x1c')]?_0x3d9b3d['attributes']:_0x3d1567[_0x517aed('0x2d')],_0x3d9b3d['order']=qs[_0x517aed('0x23')](_0x298d5f['query'][_0x517aed('0x23')]),_0x3d9b3d[_0x517aed('0x30')]=qs[_0x517aed('0x11')](_[_0x517aed('0x29')](_0x298d5f[_0x517aed('0xb')],_0x3d1567[_0x517aed('0x11')])),_0x298d5f['query'][_0x517aed('0x35')]&&(_0x3d9b3d[_0x517aed('0x30')]=_[_0x517aed('0x32')](_0x3d9b3d[_0x517aed('0x30')],{[Op['or']]:_[_0x517aed('0x2c')](_0x3d9b3d['attributes'],function(_0x177be7){const _0x4812f2=_0x517aed,_0x518849={};return _0x518849[_0x177be7]={[Op[_0x4812f2('0x33')]]:'%'+_0x298d5f[_0x4812f2('0xb')][_0x4812f2('0x35')]+'%'},_0x518849;})})),_0x3d9b3d=_[_0x517aed('0x32')]({},_0x3d9b3d,_0x298d5f[_0x517aed('0x28')]),_0x29b24f[_0x517aed('0x9')](_0x3d9b3d);})[_0x748ef('0xe')](function(_0x404ec7){const _0x5e0035=_0x748ef;if(_0x404ec7)return _0x5677df=_0x404ec7[_0x5e0035('0x1c')],typeof _0x298d5f[_0x5e0035('0xb')][_0x5e0035('0x14')]===_0x5e0035('0xc')&&(_0x3d9b3d[_0x5e0035('0x25')]=qs[_0x5e0035('0x25')](_0x298d5f[_0x5e0035('0xb')][_0x5e0035('0x25')]),_0x3d9b3d[_0x5e0035('0x34')]=qs[_0x5e0035('0x34')](_0x298d5f[_0x5e0035('0xb')][_0x5e0035('0x34')])),_0x29b24f[_0x5e0035('0x9')](_0x3d9b3d);})[_0x748ef('0xe')](function(_0x253f5c){if(_0x253f5c)return _0x253f5c?{'count':_0x5677df,'rows':_0x253f5c}:null;})[_0x748ef('0xe')](respondWithResult(_0x462ce2,null))[_0x748ef('0x24')](handleError(_0x462ce2,null));}; \ No newline at end of file +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 diff --git a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.model.js b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.model.js index 8b48da1..9b21b33 100644 --- a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.model.js +++ b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.model.js @@ -1 +1 @@ -const a313_0x174a=['define','int_sugarcrm_configurations','./intSugarcrmConfiguration.attributes','exports','SugarcrmConfiguration'];(function(_0x58f558,_0x174a4e){const _0x2e2d11=function(_0x555ff4){while(--_0x555ff4){_0x58f558['push'](_0x58f558['shift']());}};_0x2e2d11(++_0x174a4e);}(a313_0x174a,0x1c6));const a313_0x2e2d=function(_0x58f558,_0x174a4e){_0x58f558=_0x58f558-0x0;let _0x2e2d11=a313_0x174a[_0x58f558];return _0x2e2d11;};const _0x1b0d08=a313_0x2e2d;'use strict';const attributes=require(_0x1b0d08('0x3'));module[_0x1b0d08('0x4')]=function(_0x555ff4){const _0x835cc5=_0x1b0d08,_0x122f7d=_0x555ff4[_0x835cc5('0x1')](_0x835cc5('0x0'),attributes,{'tableName':_0x835cc5('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x122f7d;}; \ No newline at end of file +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 diff --git a/server/api/intSugarcrmField/index.js b/server/api/intSugarcrmField/index.js index a232d63..c5f62db 100644 --- a/server/api/intSugarcrmField/index.js +++ b/server/api/intSugarcrmField/index.js @@ -1 +1 @@ -const a314_0x28b2=['post','express','get','index','/:id','put','../../components/auth/service','create','destroy','update','show','Router','isAuthenticated','delete'];(function(_0xa15dc8,_0x28b259){const _0x55765d=function(_0xebc08d){while(--_0xebc08d){_0xa15dc8['push'](_0xa15dc8['shift']());}};_0x55765d(++_0x28b259);}(a314_0x28b2,0x1a3));const a314_0x5576=function(_0xa15dc8,_0x28b259){_0xa15dc8=_0xa15dc8-0x0;let _0x55765d=a314_0x28b2[_0xa15dc8];return _0x55765d;};const _0xaded76=a314_0x5576;'use strict';const express=require(_0xaded76('0x2')),router=express[_0xaded76('0xc')](),auth=require(_0xaded76('0x7')),controller=require('./intSugarcrmField.controller');router[_0xaded76('0x3')]('/',auth[_0xaded76('0xd')](),controller[_0xaded76('0x4')]),router[_0xaded76('0x3')](_0xaded76('0x5'),auth[_0xaded76('0xd')](),controller[_0xaded76('0xb')]),router[_0xaded76('0x1')]('/',auth[_0xaded76('0xd')](),controller[_0xaded76('0x8')]),router[_0xaded76('0x6')](_0xaded76('0x5'),auth[_0xaded76('0xd')](),controller[_0xaded76('0xa')]),router[_0xaded76('0x0')](_0xaded76('0x5'),auth[_0xaded76('0xd')](),controller[_0xaded76('0x9')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/intSugarcrmField/intSugarcrmField.attributes.js b/server/api/intSugarcrmField/intSugarcrmField.attributes.js index b3c97cc..7c061e8 100644 --- a/server/api/intSugarcrmField/intSugarcrmField.attributes.js +++ b/server/api/intSugarcrmField/intSugarcrmField.attributes.js @@ -1 +1 @@ -const a315_0x2342=['string','customVariable','ENUM','BOOLEAN','STRING','sequelize','keyValue','variable'];(function(_0x99ee36,_0x234267){const _0x26fd47=function(_0x11e1d5){while(--_0x11e1d5){_0x99ee36['push'](_0x99ee36['shift']());}};_0x26fd47(++_0x234267);}(a315_0x2342,0x1b5));const a315_0x26fd=function(_0x99ee36,_0x234267){_0x99ee36=_0x99ee36-0x0;let _0x26fd47=a315_0x2342[_0x99ee36];return _0x26fd47;};const _0x1c76d7=a315_0x26fd;'use strict';const Sequelize=require(_0x1c76d7('0x0'));module['exports']={'type':{'type':Sequelize['ENUM'](_0x1c76d7('0x3'),_0x1c76d7('0x2'),_0x1c76d7('0x4'),_0x1c76d7('0x1')),'defaultValue':'string'},'content':{'type':Sequelize[_0x1c76d7('0x7')]},'key':{'type':Sequelize[_0x1c76d7('0x7')]},'keyType':{'type':Sequelize[_0x1c76d7('0x5')](_0x1c76d7('0x3'),_0x1c76d7('0x2'),_0x1c76d7('0x4'))},'keyContent':{'type':Sequelize[_0x1c76d7('0x7')]},'idField':{'type':Sequelize['STRING']},'nameField':{'type':Sequelize[_0x1c76d7('0x7')]},'customField':{'type':Sequelize[_0x1c76d7('0x6')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x1c76d7('0x7')]}}; \ No newline at end of file +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 diff --git a/server/api/intSugarcrmField/intSugarcrmField.controller.js b/server/api/intSugarcrmField/intSugarcrmField.controller.js index 0d2ce1c..942aaa1 100644 --- a/server/api/intSugarcrmField/intSugarcrmField.controller.js +++ b/server/api/intSugarcrmField/intSugarcrmField.controller.js @@ -1 +1 @@ -const a316_0x2c44=['rows','type','then','findAll','includeAll','map','end','Content-Range','merge','json','VIRTUAL','attributes','fieldName','api','create','error','../../components/parsers/qs','filter','status','order','update','destroy','lodash','name','../../mysqldb','filters','send','pick','offset','query','intersection','findOne','options','body','where','SugarcrmField','keys','fields','model','sendStatus','include','undefined','length','stack','params','../../config/logger','sort','rawAttributes','limit','nolimit','sequelize','catch','key','count'];(function(_0x529371,_0x2c44da){const _0x544833=function(_0x15fe73){while(--_0x15fe73){_0x529371['push'](_0x529371['shift']());}};_0x544833(++_0x2c44da);}(a316_0x2c44,0x162));const a316_0x5448=function(_0x529371,_0x2c44da){_0x529371=_0x529371-0x0;let _0x544833=a316_0x2c44[_0x529371];return _0x544833;};const _0x3c9cc1=a316_0x5448;'use strict';const _=require(_0x3c9cc1('0x2e')),qs=require(_0x3c9cc1('0x28')),logger=require(_0x3c9cc1('0xf'))(_0x3c9cc1('0x25')),db=require(_0x3c9cc1('0x30'))['db'],{Op}=require(_0x3c9cc1('0x14'));function respondWithResult(_0x15fe73,_0x5c0661){return _0x5c0661=_0x5c0661||0xc8,function(_0x51269d){const _0xc45ded=a316_0x5448;if(_0x51269d)return _0x15fe73[_0xc45ded('0x2a')](_0x5c0661)[_0xc45ded('0x21')](_0x51269d);};}function respondWithFilteredResult(_0x42e29a,_0xaad451){return function(_0x5b7aa3){const _0x182c0c=a316_0x5448;if(_0x5b7aa3){const _0x21f8b1=_0x5b7aa3['count'],_0x404f87=_0xaad451[_0x182c0c('0x34')];let _0x1690b0=_0xaad451[_0x182c0c('0x34')]+_0xaad451[_0x182c0c('0x12')],_0x7678cb;return _0x1690b0>=_0x21f8b1?(_0x1690b0=_0x21f8b1,_0x7678cb=0xc8):_0x7678cb=0xce,_0x42e29a[_0x182c0c('0x2a')](_0x7678cb),_0x42e29a['set'](_0x182c0c('0x1f'),_0x404f87+'-'+_0x1690b0+'/'+_0x21f8b1)[_0x182c0c('0x21')](_0x5b7aa3);}return null;};}function saveUpdates(_0x38e940){return function(_0x58924f){if(_0x58924f)return _0x58924f['update'](_0x38e940)['then'](function(_0x5bdb36){return _0x5bdb36;});return null;};}function removeEntity(_0x372867){return function(_0x52a9f2){const _0x104cbd=a316_0x5448;if(_0x52a9f2)return _0x52a9f2[_0x104cbd('0x2d')]()['then'](function(){const _0x1be73e=_0x104cbd;_0x372867[_0x1be73e('0x2a')](0xcc)[_0x1be73e('0x1e')]();});};}function handleEntityNotFound(_0x40d7fa){return function(_0xc7d417){const _0x210b6e=a316_0x5448;return!_0xc7d417&&_0x40d7fa[_0x210b6e('0x9')](0x194),_0xc7d417;};}function handleError(_0x8e1d07,_0x127965){return _0x127965=_0x127965||0x1f4,function(_0x3ded10){const _0x2f91f4=a316_0x5448;logger[_0x2f91f4('0x27')](_0x3ded10[_0x2f91f4('0xd')]),_0x3ded10[_0x2f91f4('0x2f')]&&delete _0x3ded10[_0x2f91f4('0x2f')],_0x8e1d07['status'](_0x127965)[_0x2f91f4('0x32')](_0x3ded10);};}exports['index']=function(_0x4e523f,_0x66f1dc){const _0x49bebc=_0x3c9cc1;let _0x562f84={};const _0x3d02e5={},_0x1917ef={'count':0x0,'rows':[]},_0x1898f5=_['map'](db[_0x49bebc('0x5')]['rawAttributes'],function(_0x484a4b){const _0x378baf=_0x49bebc;return{'name':_0x484a4b[_0x378baf('0x24')],'type':_0x484a4b[_0x378baf('0x19')][_0x378baf('0x16')]};});_0x3d02e5[_0x49bebc('0x8')]=_[_0x49bebc('0x1d')](_0x1898f5,_0x49bebc('0x2f')),_0x3d02e5[_0x49bebc('0x35')]=_['keys'](_0x4e523f[_0x49bebc('0x35')]),_0x3d02e5['filters']=_['intersection'](_0x3d02e5['model'],_0x3d02e5['query']),_0x562f84[_0x49bebc('0x23')]=_[_0x49bebc('0x0')](_0x3d02e5['model'],qs[_0x49bebc('0x7')](_0x4e523f[_0x49bebc('0x35')][_0x49bebc('0x7')])),_0x562f84[_0x49bebc('0x23')]=_0x562f84[_0x49bebc('0x23')][_0x49bebc('0xc')]?_0x562f84[_0x49bebc('0x23')]:_0x3d02e5['model'];typeof _0x4e523f[_0x49bebc('0x35')][_0x49bebc('0x13')]===_0x49bebc('0xb')&&(_0x562f84[_0x49bebc('0x12')]=qs[_0x49bebc('0x12')](_0x4e523f[_0x49bebc('0x35')][_0x49bebc('0x12')]),_0x562f84[_0x49bebc('0x34')]=qs['offset'](_0x4e523f[_0x49bebc('0x35')][_0x49bebc('0x34')]));_0x562f84[_0x49bebc('0x2b')]=qs[_0x49bebc('0x10')](_0x4e523f['query'][_0x49bebc('0x10')]),_0x562f84['where']=qs[_0x49bebc('0x31')](_[_0x49bebc('0x33')](_0x4e523f[_0x49bebc('0x35')],_0x3d02e5[_0x49bebc('0x31')]),_0x1898f5);_0x4e523f[_0x49bebc('0x35')]['filter']&&(_0x562f84[_0x49bebc('0x4')]=_[_0x49bebc('0x20')](_0x562f84[_0x49bebc('0x4')],{[Op['or']]:_['map'](_0x1898f5,function(_0x79dcfc){const _0x364605=_0x49bebc;if(_0x79dcfc[_0x364605('0x19')]!==_0x364605('0x22')){const _0x3c2e02={};return _0x3c2e02[_0x79dcfc[_0x364605('0x2f')]]={[Op['like']]:'%'+_0x4e523f['query'][_0x364605('0x29')]+'%'},_0x3c2e02;}})}));_0x562f84=_[_0x49bebc('0x20')]({},_0x562f84,_0x4e523f['options']);const _0x12e13e={'where':_0x562f84[_0x49bebc('0x4')]};return db[_0x49bebc('0x5')][_0x49bebc('0x17')](_0x12e13e)[_0x49bebc('0x1a')](function(_0x4a9396){const _0x57c2b9=_0x49bebc;return _0x1917ef[_0x57c2b9('0x17')]=_0x4a9396,_0x4e523f['query'][_0x57c2b9('0x1c')]&&(_0x562f84['include']=[{'all':!![]}]),db[_0x57c2b9('0x5')][_0x57c2b9('0x1b')](_0x562f84);})['then'](function(_0x10b1f2){const _0x58267b=_0x49bebc;return _0x1917ef[_0x58267b('0x18')]=_0x10b1f2,_0x1917ef;})[_0x49bebc('0x1a')](respondWithFilteredResult(_0x66f1dc,_0x562f84))[_0x49bebc('0x15')](handleError(_0x66f1dc,null));},exports['show']=function(_0x5d4f0a,_0x84b721){const _0x19e5f2=_0x3c9cc1;let _0x38aecd={'raw':!![],'where':{'id':_0x5d4f0a[_0x19e5f2('0xe')]['id']}};const _0x27f91b={};return _0x27f91b['model']=_[_0x19e5f2('0x6')](db[_0x19e5f2('0x5')][_0x19e5f2('0x11')]),_0x27f91b[_0x19e5f2('0x35')]=_[_0x19e5f2('0x6')](_0x5d4f0a[_0x19e5f2('0x35')]),_0x27f91b[_0x19e5f2('0x31')]=_[_0x19e5f2('0x0')](_0x27f91b[_0x19e5f2('0x8')],_0x27f91b['query']),_0x38aecd['attributes']=_['intersection'](_0x27f91b[_0x19e5f2('0x8')],qs[_0x19e5f2('0x7')](_0x5d4f0a[_0x19e5f2('0x35')][_0x19e5f2('0x7')])),_0x38aecd[_0x19e5f2('0x23')]=_0x38aecd['attributes'][_0x19e5f2('0xc')]?_0x38aecd[_0x19e5f2('0x23')]:_0x27f91b[_0x19e5f2('0x8')],_0x5d4f0a[_0x19e5f2('0x35')][_0x19e5f2('0x1c')]&&(_0x38aecd[_0x19e5f2('0xa')]=[{'all':!![]}]),_0x38aecd=_[_0x19e5f2('0x20')]({},_0x38aecd,_0x5d4f0a[_0x19e5f2('0x2')]),db[_0x19e5f2('0x5')][_0x19e5f2('0x1')](_0x38aecd)[_0x19e5f2('0x1a')](handleEntityNotFound(_0x84b721,null))[_0x19e5f2('0x1a')](respondWithResult(_0x84b721,null))[_0x19e5f2('0x15')](handleError(_0x84b721,null));},exports[_0x3c9cc1('0x26')]=function(_0x38efc0,_0x56c1){const _0x369cf7=_0x3c9cc1;return db[_0x369cf7('0x5')][_0x369cf7('0x26')](_0x38efc0[_0x369cf7('0x3')],{})['then'](respondWithResult(_0x56c1,0xc9))[_0x369cf7('0x15')](handleError(_0x56c1,null));},exports[_0x3c9cc1('0x2c')]=function(_0x324957,_0x14e997){const _0x1e758c=_0x3c9cc1;return _0x324957[_0x1e758c('0x3')]['id']&&delete _0x324957[_0x1e758c('0x3')]['id'],db[_0x1e758c('0x5')][_0x1e758c('0x1')]({'where':{'id':_0x324957['params']['id']}})[_0x1e758c('0x1a')](handleEntityNotFound(_0x14e997,null))['then'](saveUpdates(_0x324957[_0x1e758c('0x3')],null))['then'](respondWithResult(_0x14e997,null))[_0x1e758c('0x15')](handleError(_0x14e997,null));},exports['destroy']=function(_0x18904b,_0x2adcd3){const _0x4cef6b=_0x3c9cc1;return db[_0x4cef6b('0x5')][_0x4cef6b('0x1')]({'where':{'id':_0x18904b[_0x4cef6b('0xe')]['id']}})[_0x4cef6b('0x1a')](handleEntityNotFound(_0x2adcd3,null))[_0x4cef6b('0x1a')](removeEntity(_0x2adcd3,null))[_0x4cef6b('0x15')](handleError(_0x2adcd3,null));}; \ No newline at end of file +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 diff --git a/server/api/intSugarcrmField/intSugarcrmField.model.js b/server/api/intSugarcrmField/intSugarcrmField.model.js index cf56137..4c2d415 100644 --- a/server/api/intSugarcrmField/intSugarcrmField.model.js +++ b/server/api/intSugarcrmField/intSugarcrmField.model.js @@ -1 +1 @@ -const a317_0x53a7=['./intSugarcrmField.attributes','exports','sugarcrm_unique_index','int_sugarcrm_fields','SugarcrmField','idField','FieldId'];(function(_0x3f4f9f,_0x53a732){const _0x33faef=function(_0x4aeee2){while(--_0x4aeee2){_0x3f4f9f['push'](_0x3f4f9f['shift']());}};_0x33faef(++_0x53a732);}(a317_0x53a7,0x1a7));const a317_0x33fa=function(_0x3f4f9f,_0x53a732){_0x3f4f9f=_0x3f4f9f-0x0;let _0x33faef=a317_0x53a7[_0x3f4f9f];return _0x33faef;};const _0x87d2b6=a317_0x33fa;'use strict';const attributes=require(_0x87d2b6('0x4'));module[_0x87d2b6('0x5')]=function(_0x4aeee2){const _0x5c3b07=_0x87d2b6,_0x16439c=_0x4aeee2['define'](_0x5c3b07('0x1'),attributes,{'tableName':_0x5c3b07('0x0'),'paranoid':![],'indexes':[{'name':_0x5c3b07('0x6'),'fields':[_0x5c3b07('0x2'),_0x5c3b07('0x3')],'unique':!![]}],'timestamps':!![]});return _0x16439c;}; \ No newline at end of file +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 diff --git a/server/api/intVtigerAccount/index.js b/server/api/intVtigerAccount/index.js index f6b7c61..147fbf5 100644 --- a/server/api/intVtigerAccount/index.js +++ b/server/api/intVtigerAccount/index.js @@ -1 +1 @@ -const a318_0x5ab6=['delete','/:id/configurations','update','getFields','destroy','/:id','get','getConfigurations','addConfiguration','./intVtigerAccount.controller','post','index','/:id/fields','create','isAuthenticated','show','put','express'];(function(_0x4a43db,_0x5ab688){const _0x27c46d=function(_0x3e94b5){while(--_0x3e94b5){_0x4a43db['push'](_0x4a43db['shift']());}};_0x27c46d(++_0x5ab688);}(a318_0x5ab6,0x13f));const a318_0x27c4=function(_0x4a43db,_0x5ab688){_0x4a43db=_0x4a43db-0x0;let _0x27c46d=a318_0x5ab6[_0x4a43db];return _0x27c46d;};const _0x3416bd=a318_0x27c4;'use strict';const express=require(_0x3416bd('0x4')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x3416bd('0xe'));router[_0x3416bd('0xb')]('/',auth['isAuthenticated'](),controller[_0x3416bd('0x10')]),router[_0x3416bd('0xb')]('/:id',auth['isAuthenticated'](),controller[_0x3416bd('0x2')]),router[_0x3416bd('0xb')](_0x3416bd('0x6'),auth['isAuthenticated'](),controller[_0x3416bd('0xc')]),router[_0x3416bd('0xb')](_0x3416bd('0x11'),auth['isAuthenticated'](),controller[_0x3416bd('0x8')]),router[_0x3416bd('0xf')]('/',auth['isAuthenticated'](),controller[_0x3416bd('0x0')]),router[_0x3416bd('0xf')]('/:id/configurations',auth[_0x3416bd('0x1')](),controller[_0x3416bd('0xd')]),router[_0x3416bd('0x3')](_0x3416bd('0xa'),auth[_0x3416bd('0x1')](),controller[_0x3416bd('0x7')]),router[_0x3416bd('0x5')](_0x3416bd('0xa'),auth['isAuthenticated'](),controller[_0x3416bd('0x9')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/intVtigerAccount/intVtigerAccount.attributes.js b/server/api/intVtigerAccount/intVtigerAccount.attributes.js index 92296ea..fc82ff2 100644 --- a/server/api/intVtigerAccount/intVtigerAccount.attributes.js +++ b/server/api/intVtigerAccount/intVtigerAccount.attributes.js @@ -1 +1 @@ -const a319_0x21e6=['STRING'];(function(_0x520799,_0x21e6af){const _0x28cb15=function(_0x5e791e){while(--_0x5e791e){_0x520799['push'](_0x520799['shift']());}};_0x28cb15(++_0x21e6af);}(a319_0x21e6,0xfc));const a319_0x28cb=function(_0x520799,_0x21e6af){_0x520799=_0x520799-0x0;let _0x28cb15=a319_0x21e6[_0x520799];return _0x28cb15;};const _0x219ade=a319_0x28cb;'use strict';const Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0x219ade('0x0')],'allowNull':![]},'description':{'type':Sequelize[_0x219ade('0x0')]},'username':{'type':Sequelize['STRING'],'allowNull':![]},'moduleName':{'type':Sequelize[_0x219ade('0x0')],'allowNull':![],'defaultValue':'HelpDesk'},'remoteUri':{'type':Sequelize[_0x219ade('0x0')],'allowNull':![]},'serverUrl':{'type':Sequelize['STRING']},'accessKey':{'type':Sequelize[_0x219ade('0x0')],'allowNull':![]}}; \ No newline at end of file +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 diff --git a/server/api/intVtigerAccount/intVtigerAccount.controller.js b/server/api/intVtigerAccount/intVtigerAccount.controller.js index d7ad08b..f02f856 100644 --- a/server/api/intVtigerAccount/intVtigerAccount.controller.js +++ b/server/api/intVtigerAccount/intVtigerAccount.controller.js @@ -1 +1 @@ -const a320_0x19fb=['name','vTiger\x20error:\x20','json','includeAll','false','error','statusCode','options','map','../../config/logger','sequelize','../../components/integrations/configuration','accessKey','getchallenge','type','catch','label','success','attributes','fieldName','pick','stringify','findOne','stack','log','substring','util','order','nolimit','intersection','remove','value','limit','includes','Wrong\x20credentials','GET','then','fields','cf_','AccountId','destroy','editable','request-promise-native','VIRTUAL','status','getFields','create','moduleName','like','autogenerated','username','login','getDescriptions','send','merge','offset','getConfigurations','params','lastIndexOf','slice','picklistValues','token','Descriptions','filters','VtigerConfiguration','show','body','result','rawAttributes','keys','filter','sendStatus','../../components/parsers/qs','sort','format','length','where','model','%s/webservice.php','findAll','update','Subjects','getSubjects','undefined','count','query','test','VtigerAccount','VtigerField','rows','startsWith','channel','picklist','getFields,\x20%s,\x20%s,\x20%s'];(function(_0x30f0f1,_0x19fbe8){const _0x5aed9c=function(_0x167c5e){while(--_0x167c5e){_0x30f0f1['push'](_0x30f0f1['shift']());}};_0x5aed9c(++_0x19fbe8);}(a320_0x19fb,0x1cc));const a320_0x5aed=function(_0x30f0f1,_0x19fbe8){_0x30f0f1=_0x30f0f1-0x0;let _0x5aed9c=a320_0x19fb[_0x30f0f1];return _0x5aed9c;};const _0x3782e5=a320_0x5aed;'use strict';const rp=require(_0x3782e5('0x34')),util=require(_0x3782e5('0x24')),_=require('lodash'),qs=require(_0x3782e5('0x52')),logger=require(_0x3782e5('0x13'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x3782e5('0x14')),integrations=require(_0x3782e5('0x15'));function respondWithResult(_0x167c5e,_0x128ccb){return _0x128ccb=_0x128ccb||0xc8,function(_0x25181b){const _0x3f7507=a320_0x5aed;if(_0x25181b)return _0x167c5e[_0x3f7507('0x36')](_0x128ccb)[_0x3f7507('0xc')](_0x25181b);};}function respondWithFilteredResult(_0x2d9b6b,_0x7da05b){return function(_0x3ebb4d){const _0x12f00e=a320_0x5aed;if(_0x3ebb4d){const _0x2ad0ae=_0x3ebb4d[_0x12f00e('0x0')],_0x2a4e05=_0x7da05b[_0x12f00e('0x41')];let _0x37d822=_0x7da05b[_0x12f00e('0x41')]+_0x7da05b['limit'],_0x5c9500;return _0x37d822>=_0x2ad0ae?(_0x37d822=_0x2ad0ae,_0x5c9500=0xc8):_0x5c9500=0xce,_0x2d9b6b['status'](_0x5c9500),_0x2d9b6b['set']('Content-Range',_0x2a4e05+'-'+_0x37d822+'/'+_0x2ad0ae)[_0x12f00e('0xc')](_0x3ebb4d);}return null;};}function saveUpdates(_0x340336){return function(_0x17ffd5){const _0x3fafcf=a320_0x5aed;if(_0x17ffd5)return _0x17ffd5[_0x3fafcf('0x5a')](_0x340336)[_0x3fafcf('0x2e')](function(_0x3826f5){return _0x3826f5;});return null;};}function removeEntity(_0x2a3293){return function(_0x16f2e5){const _0x33d14a=a320_0x5aed;if(_0x16f2e5)return _0x16f2e5['destroy']()[_0x33d14a('0x2e')](function(){const _0xd2c480=_0x33d14a;_0x2a3293[_0xd2c480('0x36')](0xcc)['end']();});};}function handleEntityNotFound(_0x24d266){return function(_0x19bbda){const _0x7b8af5=a320_0x5aed;return!_0x19bbda&&_0x24d266[_0x7b8af5('0x51')](0x194),_0x19bbda;};}function handleError(_0x5aa6ad,_0x28f6be){return _0x28f6be=_0x28f6be||0x1f4,function(_0x3ccd5e){const _0x5c8a59=a320_0x5aed;logger[_0x5c8a59('0xf')](_0x3ccd5e[_0x5c8a59('0x21')]),_0x3ccd5e[_0x5c8a59('0xa')]&&delete _0x3ccd5e[_0x5c8a59('0xa')],_0x5aa6ad['status'](_0x28f6be)['send'](_0x3ccd5e);};}exports['index']=function(_0x310a71,_0x4be83a){const _0x5c54e7=_0x3782e5;let _0xd9a9f2={};const _0x23a958={},_0x11f45a={'count':0x0,'rows':[]},_0x4e9682=_[_0x5c54e7('0x12')](db[_0x5c54e7('0x3')][_0x5c54e7('0x4e')],function(_0x17dd9c){const _0x2744cb=_0x5c54e7;return{'name':_0x17dd9c[_0x2744cb('0x1d')],'type':_0x17dd9c[_0x2744cb('0x18')]['key']};});_0x23a958[_0x5c54e7('0x57')]=_['map'](_0x4e9682,'name'),_0x23a958[_0x5c54e7('0x1')]=_[_0x5c54e7('0x4f')](_0x310a71['query']),_0x23a958[_0x5c54e7('0x49')]=_[_0x5c54e7('0x27')](_0x23a958[_0x5c54e7('0x57')],_0x23a958[_0x5c54e7('0x1')]),_0xd9a9f2[_0x5c54e7('0x1c')]=_[_0x5c54e7('0x27')](_0x23a958[_0x5c54e7('0x57')],qs[_0x5c54e7('0x2f')](_0x310a71[_0x5c54e7('0x1')]['fields'])),_0xd9a9f2['attributes']=_0xd9a9f2['attributes'][_0x5c54e7('0x55')]?_0xd9a9f2[_0x5c54e7('0x1c')]:_0x23a958[_0x5c54e7('0x57')];typeof _0x310a71[_0x5c54e7('0x1')][_0x5c54e7('0x26')]===_0x5c54e7('0x5d')&&(_0xd9a9f2[_0x5c54e7('0x2a')]=qs[_0x5c54e7('0x2a')](_0x310a71[_0x5c54e7('0x1')][_0x5c54e7('0x2a')]),_0xd9a9f2[_0x5c54e7('0x41')]=qs[_0x5c54e7('0x41')](_0x310a71['query'][_0x5c54e7('0x41')]));_0xd9a9f2['order']=qs['sort'](_0x310a71[_0x5c54e7('0x1')]['sort']),_0xd9a9f2[_0x5c54e7('0x56')]=qs[_0x5c54e7('0x49')](_[_0x5c54e7('0x1e')](_0x310a71[_0x5c54e7('0x1')],_0x23a958[_0x5c54e7('0x49')]),_0x4e9682);_0x310a71[_0x5c54e7('0x1')][_0x5c54e7('0x50')]&&(_0xd9a9f2[_0x5c54e7('0x56')]=_['merge'](_0xd9a9f2[_0x5c54e7('0x56')],{[Op['or']]:_[_0x5c54e7('0x12')](_0x4e9682,function(_0x1455bd){const _0x39269f=_0x5c54e7;if(_0x1455bd['type']!==_0x39269f('0x35')){const _0x526240={};return _0x526240[_0x1455bd['name']]={[Op['like']]:'%'+_0x310a71[_0x39269f('0x1')][_0x39269f('0x50')]+'%'},_0x526240;}})}));_0xd9a9f2=_['merge']({},_0xd9a9f2,_0x310a71[_0x5c54e7('0x11')]);const _0x1f949c={'where':_0xd9a9f2[_0x5c54e7('0x56')]};return db['VtigerAccount'][_0x5c54e7('0x0')](_0x1f949c)[_0x5c54e7('0x2e')](function(_0x292ff5){const _0x2d7aba=_0x5c54e7;return _0x11f45a[_0x2d7aba('0x0')]=_0x292ff5,_0x310a71['query'][_0x2d7aba('0xd')]&&(_0xd9a9f2['include']=[{'all':!![]}]),db['VtigerAccount'][_0x2d7aba('0x59')](_0xd9a9f2);})['then'](function(_0x52ef38){const _0x29ed4b=_0x5c54e7;return _0x11f45a[_0x29ed4b('0x5')]=_0x52ef38,_0x11f45a;})[_0x5c54e7('0x2e')](respondWithFilteredResult(_0x4be83a,_0xd9a9f2))[_0x5c54e7('0x19')](handleError(_0x4be83a,null));},exports[_0x3782e5('0x4b')]=function(_0x4ba6aa,_0xf65daf){const _0x3c46bd=_0x3782e5;let _0x18ebf4={'raw':![],'where':{'id':_0x4ba6aa['params']['id']}};const _0xb454a1={};return _0xb454a1[_0x3c46bd('0x57')]=_['keys'](db[_0x3c46bd('0x3')][_0x3c46bd('0x4e')]),_0xb454a1['query']=_[_0x3c46bd('0x4f')](_0x4ba6aa[_0x3c46bd('0x1')]),_0xb454a1[_0x3c46bd('0x49')]=_[_0x3c46bd('0x27')](_0xb454a1['model'],_0xb454a1['query']),_0x18ebf4['attributes']=_[_0x3c46bd('0x27')](_0xb454a1[_0x3c46bd('0x57')],qs[_0x3c46bd('0x2f')](_0x4ba6aa[_0x3c46bd('0x1')][_0x3c46bd('0x2f')])),_0x18ebf4['attributes']=_0x18ebf4[_0x3c46bd('0x1c')][_0x3c46bd('0x55')]?_0x18ebf4[_0x3c46bd('0x1c')]:_0xb454a1[_0x3c46bd('0x57')],_0x4ba6aa[_0x3c46bd('0x1')][_0x3c46bd('0xd')]&&(_0x18ebf4['include']=[{'all':!![]}]),_0x18ebf4=_[_0x3c46bd('0x40')]({},_0x18ebf4,_0x4ba6aa[_0x3c46bd('0x11')]),db[_0x3c46bd('0x3')][_0x3c46bd('0x20')](_0x18ebf4)['then'](handleEntityNotFound(_0xf65daf,null))[_0x3c46bd('0x2e')](respondWithResult(_0xf65daf,null))['catch'](handleError(_0xf65daf,null));},exports[_0x3782e5('0x38')]=function(_0x520c84,_0x12d550){const _0x5a46d8=_0x3782e5;return db['VtigerAccount'][_0x5a46d8('0x38')](_0x520c84[_0x5a46d8('0x4c')],{})['then'](respondWithResult(_0x12d550,0xc9))[_0x5a46d8('0x19')](handleError(_0x12d550,null));},exports['update']=function(_0x53b3b5,_0x11f3cc){const _0x2491c4=_0x3782e5;return _0x53b3b5['body']['id']&&delete _0x53b3b5['body']['id'],db[_0x2491c4('0x3')][_0x2491c4('0x20')]({'where':{'id':_0x53b3b5[_0x2491c4('0x43')]['id']}})[_0x2491c4('0x2e')](handleEntityNotFound(_0x11f3cc,null))[_0x2491c4('0x2e')](saveUpdates(_0x53b3b5[_0x2491c4('0x4c')],null))['then'](respondWithResult(_0x11f3cc,null))['catch'](handleError(_0x11f3cc,null));},exports[_0x3782e5('0x32')]=function(_0x3e4154,_0x5052b8){const _0x4bc0e1=_0x3782e5;return db[_0x4bc0e1('0x3')][_0x4bc0e1('0x20')]({'where':{'id':_0x3e4154[_0x4bc0e1('0x43')]['id']}})['then'](handleEntityNotFound(_0x5052b8,null))['then'](removeEntity(_0x5052b8,null))[_0x4bc0e1('0x19')](handleError(_0x5052b8,null));},exports[_0x3782e5('0x42')]=function(_0x1a5f91,_0x4c004f){const _0x54871e=_0x3782e5;let _0x5ecd47={};const _0x246736={};let _0x4d91b1,_0x3c99d2;return db['VtigerAccount'][_0x54871e('0x20')]({'where':{'id':_0x1a5f91[_0x54871e('0x43')]['id']}})[_0x54871e('0x2e')](handleEntityNotFound(_0x4c004f,null))[_0x54871e('0x2e')](function(_0x4174e2){const _0x5513b2=_0x54871e;if(_0x4174e2)return _0x4d91b1=_0x4174e2,_0x246736[_0x5513b2('0x57')]=_[_0x5513b2('0x4f')](db[_0x5513b2('0x4a')][_0x5513b2('0x4e')]),_0x246736[_0x5513b2('0x1')]=_[_0x5513b2('0x4f')](_0x1a5f91['query']),_0x246736[_0x5513b2('0x49')]=_[_0x5513b2('0x27')](_0x246736[_0x5513b2('0x57')],_0x246736[_0x5513b2('0x1')]),_0x5ecd47[_0x5513b2('0x1c')]=_[_0x5513b2('0x27')](_0x246736[_0x5513b2('0x57')],qs['fields'](_0x1a5f91[_0x5513b2('0x1')][_0x5513b2('0x2f')])),_0x5ecd47['attributes']=_0x5ecd47[_0x5513b2('0x1c')][_0x5513b2('0x55')]?_0x5ecd47[_0x5513b2('0x1c')]:_0x246736[_0x5513b2('0x57')],_0x5ecd47[_0x5513b2('0x25')]=qs[_0x5513b2('0x53')](_0x1a5f91[_0x5513b2('0x1')][_0x5513b2('0x53')]),_0x5ecd47[_0x5513b2('0x56')]=qs['filters'](_[_0x5513b2('0x1e')](_0x1a5f91[_0x5513b2('0x1')],_0x246736[_0x5513b2('0x49')])),_0x1a5f91[_0x5513b2('0x1')][_0x5513b2('0x50')]&&(_0x5ecd47[_0x5513b2('0x56')]=_[_0x5513b2('0x40')](_0x5ecd47['where'],{[Op['or']]:_['map'](_0x5ecd47[_0x5513b2('0x1c')],function(_0x89cb53){const _0x14c891=_0x5513b2,_0x2dcfee={};return _0x2dcfee[_0x89cb53]={[Op[_0x14c891('0x3a')]]:'%'+_0x1a5f91[_0x14c891('0x1')][_0x14c891('0x50')]+'%'},_0x2dcfee;})})),_0x5ecd47=_[_0x5513b2('0x40')]({},_0x5ecd47,_0x1a5f91['options']),_0x4d91b1[_0x5513b2('0x42')](_0x5ecd47);})['then'](function(_0x101190){const _0x2f5473=_0x54871e;if(_0x101190)return _0x3c99d2=_0x101190['length'],typeof _0x1a5f91[_0x2f5473('0x1')][_0x2f5473('0x26')]===_0x2f5473('0x5d')&&(_0x5ecd47[_0x2f5473('0x2a')]=qs['limit'](_0x1a5f91[_0x2f5473('0x1')][_0x2f5473('0x2a')]),_0x5ecd47['offset']=qs[_0x2f5473('0x41')](_0x1a5f91[_0x2f5473('0x1')][_0x2f5473('0x41')])),_0x4d91b1['getConfigurations'](_0x5ecd47);})[_0x54871e('0x2e')](function(_0x59692d){if(_0x59692d)return _0x59692d?{'count':_0x3c99d2,'rows':_0x59692d}:null;})[_0x54871e('0x2e')](respondWithResult(_0x4c004f,null))[_0x54871e('0x19')](handleError(_0x4c004f,null));},exports['addConfiguration']=function(_0x5a5d91,_0xd87ba0){const _0x5551db=_0x3782e5;return _0x5a5d91[_0x5551db('0x4c')]['id']&&delete _0x5a5d91['body']['id'],db[_0x5551db('0x3')][_0x5551db('0x20')]({'where':{'id':_0x5a5d91[_0x5551db('0x43')]['id']}})['then'](handleEntityNotFound(_0xd87ba0,null))[_0x5551db('0x2e')](function(_0xc99b80){const _0x50c725=_0x5551db;if(_0xc99b80)return _0x5a5d91[_0x50c725('0x4c')][_0x50c725('0x31')]=_0xc99b80['id'],_0x5a5d91[_0x50c725('0x4c')][_0x50c725('0x5b')]=integrations[_0x50c725('0x5c')](_0x5a5d91[_0x50c725('0x4c')][_0x50c725('0x7')],_0x5a5d91['body'][_0x50c725('0x18')]),_0x5a5d91[_0x50c725('0x4c')][_0x50c725('0x48')]=integrations[_0x50c725('0x3e')](_0x5a5d91['body']['channel'],_0x5a5d91[_0x50c725('0x4c')][_0x50c725('0x18')]),db[_0x50c725('0x4a')]['create'](_0x5a5d91[_0x50c725('0x4c')],{'include':[{'model':db[_0x50c725('0x4')],'as':_0x50c725('0x5b')},{'model':db[_0x50c725('0x4')],'as':_0x50c725('0x48')}]});return null;})[_0x5551db('0x2e')](respondWithResult(_0xd87ba0,null))[_0x5551db('0x19')](handleError(_0xd87ba0,null));};const md5=require('md5');exports[_0x3782e5('0x37')]=function(_0x563058,_0x420bbb){const _0xe594e0=_0x3782e5;let _0x320dfc=null,_0x352761=null,_0x25b3b8=null,_0x9de6d7=null,_0x5c37c5='';return db['VtigerAccount']['findOne']({'where':{'id':_0x563058[_0xe594e0('0x43')]['id']},'attributes':['id',_0xe594e0('0xa'),_0xe594e0('0x3c'),'description',_0xe594e0('0x39'),'remoteUri','serverUrl',_0xe594e0('0x16')]})[_0xe594e0('0x2e')](handleEntityNotFound(_0x420bbb,null))['then'](function(_0xe48c56){const _0x536ee4=_0xe594e0;if(_0xe48c56){_0x320dfc=_0xe48c56[_0x536ee4('0x3c')],_0x352761=_0xe48c56['accessKey'],_0x25b3b8=_0xe48c56[_0x536ee4('0x39')],_0x5c37c5=_0xe48c56['remoteUri'];const _0x56d4a9=_0x5c37c5[_0x536ee4('0x45')](-0x1);_0x56d4a9==='/'&&(_0x5c37c5=_0x5c37c5[_0x536ee4('0x23')](0x0,_0x5c37c5[_0x536ee4('0x44')](_0x56d4a9)));_0x9de6d7=util[_0x536ee4('0x54')](_0x536ee4('0x58'),_0x5c37c5);const _0x56a4a0={'method':_0x536ee4('0x2d'),'uri':_0x9de6d7,'qs':{'operation':_0x536ee4('0x17'),'username':_0xe48c56[_0x536ee4('0x3c')]},'json':!![]};return rp(_0x56a4a0);}})[_0xe594e0('0x2e')](function(_0x29346b){const _0x213ae2=_0xe594e0;if(_0x29346b[_0x213ae2('0x1b')]){const _0x230045={'method':'POST','uri':_0x9de6d7,'form':{'operation':_0x213ae2('0x3d'),'username':_0x320dfc,'accessKey':md5(_0x29346b[_0x213ae2('0x4d')][_0x213ae2('0x47')]+_0x352761)},'json':!![]};return rp(_0x230045);}})[_0xe594e0('0x2e')](function(_0x3d9455){const _0x437fa6=_0xe594e0;if(_0x3d9455[_0x437fa6('0x1b')]){const _0x50bc47={'method':_0x437fa6('0x2d'),'uri':_0x9de6d7,'qs':{'operation':'describe','username':_0x320dfc,'sessionName':_0x3d9455['result']['sessionName'],'elementType':_0x25b3b8},'json':!![]};return rp(_0x50bc47);}})[_0xe594e0('0x2e')](function(_0x3c2fe0){const _0x2fac7f=_0xe594e0;if(_0x3c2fe0[_0x2fac7f('0x1b')]){const _0x39ddb5=[_0x2fac7f('0x3b'),'reference','owner'];return _[_0x2fac7f('0x28')](_0x3c2fe0[_0x2fac7f('0x4d')][_0x2fac7f('0x2f')],function(_0x157293){const _0x5924c2=_0x2fac7f;return _0x39ddb5[_0x5924c2('0x2b')](_0x157293[_0x5924c2('0x18')][_0x5924c2('0xa')]);}),_['remove'](_0x3c2fe0[_0x2fac7f('0x4d')][_0x2fac7f('0x2f')],function(_0xb5cfa7){const _0xfbcee9=_0x2fac7f;return _0xb5cfa7[_0xfbcee9('0x33')]===_0xfbcee9('0xe');}),{'count':_0x3c2fe0[_0x2fac7f('0x4d')][_0x2fac7f('0x2f')][_0x2fac7f('0x55')],'rows':_[_0x2fac7f('0x12')](_0x3c2fe0[_0x2fac7f('0x4d')][_0x2fac7f('0x2f')],function(_0x5bb6a1){const _0x4c40b5=_0x2fac7f;return{'id':_0x5bb6a1['name'],'name':_0x5bb6a1[_0x4c40b5('0x1a')],'custom':_[_0x4c40b5('0x6')](_0x5bb6a1['name'],_0x4c40b5('0x30'))?!![]:![],'options':_0x5bb6a1['type']['name']===_0x4c40b5('0x8')&&_0x5bb6a1[_0x4c40b5('0x18')][_0x4c40b5('0x46')][_0x4c40b5('0x55')]>0x0?_[_0x4c40b5('0x12')](_0x5bb6a1[_0x4c40b5('0x18')][_0x4c40b5('0x46')],function(_0x59ee4b){const _0x5c0630=_0x4c40b5;return{'name':_0x59ee4b[_0x5c0630('0x1a')],'value':_0x59ee4b[_0x5c0630('0x29')]};}):[]};})};}})[_0xe594e0('0x2e')](respondWithResult(_0x420bbb,null))[_0xe594e0('0x19')](function(_0x4b55f7){const _0x4e3ee3=_0xe594e0;console[_0x4e3ee3('0x22')](_0x4e3ee3('0xb')+_0x4b55f7);let _0xa76595=_0x563058[_0x4e3ee3('0x1')][_0x4e3ee3('0x2')]?0x1f4:_0x4b55f7[_0x4e3ee3('0x10')]||0x1f4;logger[_0x4e3ee3('0xf')](_0x4e3ee3('0x9'),_0x4e3ee3('0x37'),_0xa76595,JSON[_0x4e3ee3('0x1f')](_0x4b55f7)),delete _0x4b55f7['name'],_0xa76595===0x191&&(_0xa76595=0x190),_0x420bbb['status'](_0xa76595)[_0x4e3ee3('0x3f')](_0x563058[_0x4e3ee3('0x1')][_0x4e3ee3('0x2')]?{'message':_0x4e3ee3('0x2c'),'statusCode':_0x4b55f7[_0x4e3ee3('0x10')]}:_0x4b55f7);});}; \ No newline at end of file +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 diff --git a/server/api/intVtigerAccount/intVtigerAccount.model.js b/server/api/intVtigerAccount/intVtigerAccount.model.js index 14b2e24..584901d 100644 --- a/server/api/intVtigerAccount/intVtigerAccount.model.js +++ b/server/api/intVtigerAccount/intVtigerAccount.model.js @@ -1 +1 @@ -const a321_0x19e9=['int_vtiger_accounts','./intVtigerAccount.attributes','define','VtigerAccount'];(function(_0x55f678,_0x19e933){const _0x5223dc=function(_0x451278){while(--_0x451278){_0x55f678['push'](_0x55f678['shift']());}};_0x5223dc(++_0x19e933);}(a321_0x19e9,0xb7));const a321_0x5223=function(_0x55f678,_0x19e933){_0x55f678=_0x55f678-0x0;let _0x5223dc=a321_0x19e9[_0x55f678];return _0x5223dc;};const _0x56aecb=a321_0x5223;'use strict';const attributes=require(_0x56aecb('0x2'));module['exports']=function(_0x451278){const _0x213e58=_0x56aecb,_0x2acb23=_0x451278[_0x213e58('0x3')](_0x213e58('0x0'),attributes,{'tableName':_0x213e58('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2acb23;}; \ No newline at end of file +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 diff --git a/server/api/intVtigerAccount/intVtigerAccount.rpc.js b/server/api/intVtigerAccount/intVtigerAccount.rpc.js index 49ea6a1..1f2db5d 100644 --- a/server/api/intVtigerAccount/intVtigerAccount.rpc.js +++ b/server/api/intVtigerAccount/intVtigerAccount.rpc.js @@ -1 +1 @@ -const a322_0x540a=['where','model','raw','include','then','lodash','map','options','stringify','attributes','findAll','debug','message','error','GetVtigerAccount','info','catch','ShowVtigerAccount','limit'];(function(_0xf01ea3,_0x540af6){const _0x3232dd=function(_0x2174d4){while(--_0x2174d4){_0xf01ea3['push'](_0xf01ea3['shift']());}};_0x3232dd(++_0x540af6);}(a322_0x540a,0x1d8));const a322_0x3232=function(_0xf01ea3,_0x540af6){_0xf01ea3=_0xf01ea3-0x0;let _0x3232dd=a322_0x540a[_0xf01ea3];return _0x3232dd;};const _0x5a73c4=a322_0x3232;'use strict';const _=require(_0x5a73c4('0x8')),db=require('../../mysqldb')['db'],logger=require('../../config/logger')('rpc');exports[_0x5a73c4('0x11')]=function(_0x2174d4){const _0x375348=this;return new Promise(function(_0x4a8780,_0x44fd2f){const _0x1df587=a322_0x3232;return db['VtigerAccount'][_0x1df587('0xd')]({'raw':_0x2174d4['options']?_0x2174d4['options'][_0x1df587('0x5')]===undefined?!![]:![]:!![],'where':_0x2174d4[_0x1df587('0xa')]?_0x2174d4['options'][_0x1df587('0x3')]||null:null,'attributes':_0x2174d4[_0x1df587('0xa')]?_0x2174d4[_0x1df587('0xa')]['attributes']||null:null,'limit':_0x2174d4['options']?_0x2174d4['options'][_0x1df587('0x2')]||null:null,'include':_0x2174d4['options']?_0x2174d4[_0x1df587('0xa')][_0x1df587('0x6')]?_[_0x1df587('0x9')](_0x2174d4[_0x1df587('0xa')][_0x1df587('0x6')],function(_0x5e3136){const _0x5f1961=_0x1df587;return{'model':db[_0x5e3136[_0x5f1961('0x4')]],'as':_0x5e3136['as'],'attributes':_0x5e3136['attributes'],'include':_0x5e3136['include']?_['map'](_0x5e3136[_0x5f1961('0x6')],function(_0x3d7045){const _0xcaad4c=_0x5f1961;return{'model':db[_0x3d7045['model']],'as':_0x3d7045['as'],'attributes':_0x3d7045[_0xcaad4c('0xc')],'include':_0x3d7045[_0xcaad4c('0x6')]?_[_0xcaad4c('0x9')](_0x3d7045[_0xcaad4c('0x6')],function(_0x4e3857){const _0x4a5def=_0xcaad4c;return{'model':db[_0x4e3857['model']],'as':_0x4e3857['as'],'attributes':_0x4e3857[_0x4a5def('0xc')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x64523d){const _0x263a42=_0x1df587;logger['info']('GetVtigerAccount',_0x2174d4),logger[_0x263a42('0xe')](_0x263a42('0x11'),_0x2174d4,JSON[_0x263a42('0xb')](_0x64523d)),_0x4a8780(_0x64523d);})[_0x1df587('0x0')](function(_0x1813da){const _0x6ea8c0=_0x1df587;logger[_0x6ea8c0('0x10')](_0x6ea8c0('0x11'),_0x1813da['message'],_0x2174d4),_0x44fd2f(_0x375348[_0x6ea8c0('0x10')](0x1f4,_0x1813da['message']));});});},exports[_0x5a73c4('0x1')]=function(_0x51b2f0){const _0x583883=this;return new Promise(function(_0x44ce44,_0x40c92a){const _0x521f4d=a322_0x3232;return db['VtigerAccount']['findOne']({'raw':_0x51b2f0[_0x521f4d('0xa')]?_0x51b2f0[_0x521f4d('0xa')]['raw']===undefined?!![]:![]:!![],'where':_0x51b2f0['options']?_0x51b2f0[_0x521f4d('0xa')][_0x521f4d('0x3')]||null:null,'attributes':_0x51b2f0[_0x521f4d('0xa')]?_0x51b2f0[_0x521f4d('0xa')][_0x521f4d('0xc')]||null:null,'include':_0x51b2f0[_0x521f4d('0xa')]?_0x51b2f0['options'][_0x521f4d('0x6')]?_['map'](_0x51b2f0[_0x521f4d('0xa')]['include'],function(_0x1f1186){const _0x351f88=_0x521f4d;return{'model':db[_0x1f1186[_0x351f88('0x4')]],'as':_0x1f1186['as'],'attributes':_0x1f1186[_0x351f88('0xc')],'include':_0x1f1186[_0x351f88('0x6')]?_[_0x351f88('0x9')](_0x1f1186[_0x351f88('0x6')],function(_0x5075c8){const _0x53e301=_0x351f88;return{'model':db[_0x5075c8[_0x53e301('0x4')]],'as':_0x5075c8['as'],'attributes':_0x5075c8['attributes'],'include':_0x5075c8[_0x53e301('0x6')]?_[_0x53e301('0x9')](_0x5075c8['include'],function(_0x1889a1){const _0xd0f295=_0x53e301;return{'model':db[_0x1889a1['model']],'as':_0x1889a1['as'],'attributes':_0x1889a1[_0xd0f295('0xc')]};}):[]};}):[]};}):[]:[]})[_0x521f4d('0x7')](function(_0x42c51c){const _0x5bc590=_0x521f4d;logger[_0x5bc590('0x12')](_0x5bc590('0x1'),_0x51b2f0),logger[_0x5bc590('0xe')](_0x5bc590('0x1'),_0x51b2f0,JSON[_0x5bc590('0xb')](_0x42c51c)),_0x44ce44(_0x42c51c);})['catch'](function(_0x439b69){const _0x417e6e=_0x521f4d;logger[_0x417e6e('0x10')](_0x417e6e('0x1'),_0x439b69[_0x417e6e('0xf')],_0x51b2f0),_0x40c92a(_0x583883[_0x417e6e('0x10')](0x1f4,_0x439b69['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/intVtigerConfiguration/index.js b/server/api/intVtigerConfiguration/index.js index de31621..8f1b835 100644 --- a/server/api/intVtigerConfiguration/index.js +++ b/server/api/intVtigerConfiguration/index.js @@ -1 +1 @@ -const a323_0x524e=['isAuthenticated','create','./intVtigerConfiguration.controller','getDescriptions','delete','/:id','../../components/auth/service','exports','/:id/descriptions','index','post','/:id/subjects','show','Router','put','getSubjects','get','getFields','express'];(function(_0x1a8fdb,_0x524e72){const _0x21d37e=function(_0x10de3f){while(--_0x10de3f){_0x1a8fdb['push'](_0x1a8fdb['shift']());}};_0x21d37e(++_0x524e72);}(a323_0x524e,0x6b));const a323_0x21d3=function(_0x1a8fdb,_0x524e72){_0x1a8fdb=_0x1a8fdb-0x0;let _0x21d37e=a323_0x524e[_0x1a8fdb];return _0x21d37e;};const _0x3462b4=a323_0x21d3;'use strict';const express=require(_0x3462b4('0x6')),router=express[_0x3462b4('0x1')](),auth=require(_0x3462b4('0xd')),controller=require(_0x3462b4('0x9'));router[_0x3462b4('0x4')]('/',auth[_0x3462b4('0x7')](),controller[_0x3462b4('0x10')]),router[_0x3462b4('0x4')](_0x3462b4('0xc'),auth[_0x3462b4('0x7')](),controller[_0x3462b4('0x0')]),router[_0x3462b4('0x4')]('/:id/fields',auth['isAuthenticated'](),controller[_0x3462b4('0x5')]),router[_0x3462b4('0x4')](_0x3462b4('0x12'),auth[_0x3462b4('0x7')](),controller[_0x3462b4('0x3')]),router[_0x3462b4('0x4')](_0x3462b4('0xf'),auth[_0x3462b4('0x7')](),controller[_0x3462b4('0xa')]),router[_0x3462b4('0x11')]('/',auth[_0x3462b4('0x7')](),controller[_0x3462b4('0x8')]),router[_0x3462b4('0x2')](_0x3462b4('0xc'),auth[_0x3462b4('0x7')](),controller['update']),router[_0x3462b4('0xb')](_0x3462b4('0xc'),auth['isAuthenticated'](),controller['destroy']),module[_0x3462b4('0xe')]=router; \ No newline at end of file +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 diff --git a/server/api/intVtigerConfiguration/intVtigerConfiguration.attributes.js b/server/api/intVtigerConfiguration/intVtigerConfiguration.attributes.js index e64b967..1c00710 100644 --- a/server/api/intVtigerConfiguration/intVtigerConfiguration.attributes.js +++ b/server/api/intVtigerConfiguration/intVtigerConfiguration.attributes.js @@ -1 +1 @@ -const a324_0x58e1=['exports','STRING','sequelize'];(function(_0x45f082,_0x58e19d){const _0x481067=function(_0xa6399){while(--_0xa6399){_0x45f082['push'](_0x45f082['shift']());}};_0x481067(++_0x58e19d);}(a324_0x58e1,0x182));const a324_0x4810=function(_0x45f082,_0x58e19d){_0x45f082=_0x45f082-0x0;let _0x481067=a324_0x58e1[_0x45f082];return _0x481067;};const _0x16ed4e=a324_0x4810;'use strict';const Sequelize=require(_0x16ed4e('0x0'));module[_0x16ed4e('0x1')]={'name':{'type':Sequelize[_0x16ed4e('0x2')]},'description':{'type':Sequelize[_0x16ed4e('0x2')]}}; \ No newline at end of file +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 diff --git a/server/api/intVtigerConfiguration/intVtigerConfiguration.controller.js b/server/api/intVtigerConfiguration/intVtigerConfiguration.controller.js index 72ae37b..947b499 100644 --- a/server/api/intVtigerConfiguration/intVtigerConfiguration.controller.js +++ b/server/api/intVtigerConfiguration/intVtigerConfiguration.controller.js @@ -1 +1 @@ -const a325_0x1935=['type','stack','name','length','sequelize','like','error','../../config/logger','create','params','then','query','getSubjects','count','filters','update','show','nolimit','VtigerConfiguration','pick','Content-Range','getDescriptions','sendStatus','undefined','attributes','VIRTUAL','fieldName','../../components/parsers/qs','api','destroy','filter','set','fields','limit','where','keys','rawAttributes','includeAll','index','include','findOne','map','model','merge','json','VtigerField','getFields','../../mysqldb','options','status','offset','order','catch','sort','body','intersection'];(function(_0x537920,_0x1935da){const _0x3c2c9f=function(_0x3c8e72){while(--_0x3c8e72){_0x537920['push'](_0x537920['shift']());}};_0x3c2c9f(++_0x1935da);}(a325_0x1935,0x78));const a325_0x3c2c=function(_0x537920,_0x1935da){_0x537920=_0x537920-0x0;let _0x3c2c9f=a325_0x1935[_0x537920];return _0x3c2c9f;};const _0x29167d=a325_0x3c2c;'use strict';const _=require('lodash'),qs=require(_0x29167d('0x13')),logger=require(_0x29167d('0x37'))(_0x29167d('0x14')),db=require(_0x29167d('0x27'))['db'],{Op}=require(_0x29167d('0x34'));function respondWithResult(_0x3c8e72,_0x5684da){return _0x5684da=_0x5684da||0xc8,function(_0x17501d){const _0x4f84c2=a325_0x3c2c;if(_0x17501d)return _0x3c8e72[_0x4f84c2('0x29')](_0x5684da)[_0x4f84c2('0x24')](_0x17501d);};}function respondWithFilteredResult(_0xde9583,_0x134154){return function(_0x1ea237){const _0x1dd776=a325_0x3c2c;if(_0x1ea237){const _0x450de5=_0x1ea237[_0x1dd776('0x5')],_0x2f0848=_0x134154[_0x1dd776('0x2a')];let _0x13d065=_0x134154[_0x1dd776('0x2a')]+_0x134154['limit'],_0x5b0c8d;return _0x13d065>=_0x450de5?(_0x13d065=_0x450de5,_0x5b0c8d=0xc8):_0x5b0c8d=0xce,_0xde9583[_0x1dd776('0x29')](_0x5b0c8d),_0xde9583[_0x1dd776('0x17')](_0x1dd776('0xc'),_0x2f0848+'-'+_0x13d065+'/'+_0x450de5)[_0x1dd776('0x24')](_0x1ea237);}return null;};}function saveUpdates(_0x2233b0){return function(_0x2ee22e){const _0x1f9758=a325_0x3c2c;if(_0x2ee22e)return _0x2ee22e[_0x1f9758('0x7')](_0x2233b0)[_0x1f9758('0x2')](function(_0xb7260a){return _0xb7260a;});return null;};}function removeEntity(_0x44d308){return function(_0x257e3e){const _0x3d6a3a=a325_0x3c2c;if(_0x257e3e)return _0x257e3e[_0x3d6a3a('0x15')]()[_0x3d6a3a('0x2')](function(){const _0xf3478c=_0x3d6a3a;_0x44d308[_0xf3478c('0x29')](0xcc)['end']();});};}function handleEntityNotFound(_0x4a949c){return function(_0x38bf0b){const _0x77c083=a325_0x3c2c;return!_0x38bf0b&&_0x4a949c[_0x77c083('0xe')](0x194),_0x38bf0b;};}function handleError(_0x4bf0e9,_0x4643a4){return _0x4643a4=_0x4643a4||0x1f4,function(_0x394057){const _0x2b840f=a325_0x3c2c;logger[_0x2b840f('0x36')](_0x394057[_0x2b840f('0x31')]),_0x394057[_0x2b840f('0x32')]&&delete _0x394057[_0x2b840f('0x32')],_0x4bf0e9[_0x2b840f('0x29')](_0x4643a4)['send'](_0x394057);};}exports[_0x29167d('0x1e')]=function(_0x3885fa,_0x47a04e){const _0x8d24ea=_0x29167d;let _0x247524={};const _0x1e6c36={},_0xcc3e48={'count':0x0,'rows':[]},_0x470019=_['map'](db[_0x8d24ea('0xa')]['rawAttributes'],function(_0x438348){const _0x318644=_0x8d24ea;return{'name':_0x438348[_0x318644('0x12')],'type':_0x438348[_0x318644('0x30')]['key']};});_0x1e6c36[_0x8d24ea('0x22')]=_[_0x8d24ea('0x21')](_0x470019,'name'),_0x1e6c36[_0x8d24ea('0x3')]=_[_0x8d24ea('0x1b')](_0x3885fa[_0x8d24ea('0x3')]),_0x1e6c36[_0x8d24ea('0x6')]=_[_0x8d24ea('0x2f')](_0x1e6c36['model'],_0x1e6c36[_0x8d24ea('0x3')]),_0x247524[_0x8d24ea('0x10')]=_['intersection'](_0x1e6c36['model'],qs[_0x8d24ea('0x18')](_0x3885fa[_0x8d24ea('0x3')][_0x8d24ea('0x18')])),_0x247524[_0x8d24ea('0x10')]=_0x247524['attributes']['length']?_0x247524['attributes']:_0x1e6c36[_0x8d24ea('0x22')];typeof _0x3885fa[_0x8d24ea('0x3')][_0x8d24ea('0x9')]===_0x8d24ea('0xf')&&(_0x247524[_0x8d24ea('0x19')]=qs['limit'](_0x3885fa[_0x8d24ea('0x3')][_0x8d24ea('0x19')]),_0x247524[_0x8d24ea('0x2a')]=qs[_0x8d24ea('0x2a')](_0x3885fa[_0x8d24ea('0x3')]['offset']));_0x247524[_0x8d24ea('0x2b')]=qs[_0x8d24ea('0x2d')](_0x3885fa[_0x8d24ea('0x3')][_0x8d24ea('0x2d')]),_0x247524[_0x8d24ea('0x1a')]=qs[_0x8d24ea('0x6')](_[_0x8d24ea('0xb')](_0x3885fa[_0x8d24ea('0x3')],_0x1e6c36[_0x8d24ea('0x6')]),_0x470019);_0x3885fa[_0x8d24ea('0x3')]['filter']&&(_0x247524['where']=_[_0x8d24ea('0x23')](_0x247524['where'],{[Op['or']]:_[_0x8d24ea('0x21')](_0x470019,function(_0x48b358){const _0x4ed8db=_0x8d24ea;if(_0x48b358['type']!==_0x4ed8db('0x11')){const _0xf951dd={};return _0xf951dd[_0x48b358[_0x4ed8db('0x32')]]={[Op[_0x4ed8db('0x35')]]:'%'+_0x3885fa[_0x4ed8db('0x3')]['filter']+'%'},_0xf951dd;}})}));_0x247524=_[_0x8d24ea('0x23')]({},_0x247524,_0x3885fa['options']);const _0x19111c={'where':_0x247524[_0x8d24ea('0x1a')]};return db['VtigerConfiguration'][_0x8d24ea('0x5')](_0x19111c)[_0x8d24ea('0x2')](function(_0x5ac665){const _0x23213e=_0x8d24ea;return _0xcc3e48[_0x23213e('0x5')]=_0x5ac665,_0x3885fa[_0x23213e('0x3')][_0x23213e('0x1d')]&&(_0x247524['include']=[{'all':!![]}]),db[_0x23213e('0xa')]['findAll'](_0x247524);})[_0x8d24ea('0x2')](function(_0x4f2143){return _0xcc3e48['rows']=_0x4f2143,_0xcc3e48;})[_0x8d24ea('0x2')](respondWithFilteredResult(_0x47a04e,_0x247524))['catch'](handleError(_0x47a04e,null));},exports[_0x29167d('0x8')]=function(_0x2ea3b0,_0x6f09ba){const _0x139b88=_0x29167d;let _0xdc69ec={'raw':![],'where':{'id':_0x2ea3b0[_0x139b88('0x1')]['id']}};const _0x6fc940={};return _0x6fc940[_0x139b88('0x22')]=_[_0x139b88('0x1b')](db['VtigerConfiguration'][_0x139b88('0x1c')]),_0x6fc940['query']=_[_0x139b88('0x1b')](_0x2ea3b0['query']),_0x6fc940['filters']=_[_0x139b88('0x2f')](_0x6fc940[_0x139b88('0x22')],_0x6fc940[_0x139b88('0x3')]),_0xdc69ec[_0x139b88('0x10')]=_['intersection'](_0x6fc940['model'],qs[_0x139b88('0x18')](_0x2ea3b0[_0x139b88('0x3')][_0x139b88('0x18')])),_0xdc69ec[_0x139b88('0x10')]=_0xdc69ec['attributes'][_0x139b88('0x33')]?_0xdc69ec['attributes']:_0x6fc940['model'],_0x2ea3b0[_0x139b88('0x3')][_0x139b88('0x1d')]&&(_0xdc69ec[_0x139b88('0x1f')]=[{'all':!![]}]),_0xdc69ec=_[_0x139b88('0x23')]({},_0xdc69ec,_0x2ea3b0[_0x139b88('0x28')]),db[_0x139b88('0xa')][_0x139b88('0x20')](_0xdc69ec)['then'](handleEntityNotFound(_0x6f09ba,null))['then'](respondWithResult(_0x6f09ba,null))[_0x139b88('0x2c')](handleError(_0x6f09ba,null));},exports[_0x29167d('0x0')]=function(_0x438965,_0x338169){const _0x52d221=_0x29167d;return db[_0x52d221('0xa')][_0x52d221('0x0')](_0x438965[_0x52d221('0x2e')],{})['then'](respondWithResult(_0x338169,0xc9))[_0x52d221('0x2c')](handleError(_0x338169,null));},exports[_0x29167d('0x7')]=function(_0x47ef4f,_0x323c30){const _0x44d1c0=_0x29167d;return _0x47ef4f[_0x44d1c0('0x2e')]['id']&&delete _0x47ef4f['body']['id'],db[_0x44d1c0('0xa')][_0x44d1c0('0x20')]({'where':{'id':_0x47ef4f[_0x44d1c0('0x1')]['id']}})[_0x44d1c0('0x2')](handleEntityNotFound(_0x323c30,null))['then'](saveUpdates(_0x47ef4f[_0x44d1c0('0x2e')],null))[_0x44d1c0('0x2')](respondWithResult(_0x323c30,null))[_0x44d1c0('0x2c')](handleError(_0x323c30,null));},exports['destroy']=function(_0x5d353e,_0x274a37){const _0x33e064=_0x29167d;return db[_0x33e064('0xa')][_0x33e064('0x20')]({'where':{'id':_0x5d353e[_0x33e064('0x1')]['id']}})[_0x33e064('0x2')](handleEntityNotFound(_0x274a37,null))[_0x33e064('0x2')](removeEntity(_0x274a37,null))[_0x33e064('0x2c')](handleError(_0x274a37,null));},exports[_0x29167d('0x26')]=function(_0x28b1e6,_0x2ff714){const _0x1ed543=_0x29167d;let _0x2679fe={};const _0x551cd1={};let _0x5ee2fe,_0x1d2f8b;return db[_0x1ed543('0xa')][_0x1ed543('0x20')]({'where':{'id':_0x28b1e6['params']['id']}})[_0x1ed543('0x2')](handleEntityNotFound(_0x2ff714,null))[_0x1ed543('0x2')](function(_0x40da9f){const _0x63209d=_0x1ed543;if(_0x40da9f)return _0x5ee2fe=_0x40da9f,_0x551cd1[_0x63209d('0x22')]=_[_0x63209d('0x1b')](db[_0x63209d('0x25')][_0x63209d('0x1c')]),_0x551cd1['query']=_['keys'](_0x28b1e6[_0x63209d('0x3')]),_0x551cd1[_0x63209d('0x6')]=_[_0x63209d('0x2f')](_0x551cd1[_0x63209d('0x22')],_0x551cd1[_0x63209d('0x3')]),_0x2679fe[_0x63209d('0x10')]=_[_0x63209d('0x2f')](_0x551cd1[_0x63209d('0x22')],qs[_0x63209d('0x18')](_0x28b1e6[_0x63209d('0x3')]['fields'])),_0x2679fe[_0x63209d('0x10')]=_0x2679fe[_0x63209d('0x10')][_0x63209d('0x33')]?_0x2679fe['attributes']:_0x551cd1[_0x63209d('0x22')],_0x2679fe['order']=qs[_0x63209d('0x2d')](_0x28b1e6[_0x63209d('0x3')][_0x63209d('0x2d')]),_0x2679fe[_0x63209d('0x1a')]=qs[_0x63209d('0x6')](_[_0x63209d('0xb')](_0x28b1e6[_0x63209d('0x3')],_0x551cd1[_0x63209d('0x6')])),_0x28b1e6[_0x63209d('0x3')]['filter']&&(_0x2679fe[_0x63209d('0x1a')]=_[_0x63209d('0x23')](_0x2679fe['where'],{[Op['or']]:_['map'](_0x2679fe[_0x63209d('0x10')],function(_0x54a3cc){const _0x260756=_0x63209d,_0x3bfee5={};return _0x3bfee5[_0x54a3cc]={[Op['like']]:'%'+_0x28b1e6[_0x260756('0x3')][_0x260756('0x16')]+'%'},_0x3bfee5;})})),_0x2679fe=_[_0x63209d('0x23')]({},_0x2679fe,_0x28b1e6[_0x63209d('0x28')]),_0x5ee2fe[_0x63209d('0x26')](_0x2679fe);})['then'](function(_0x2a3459){const _0x200d08=_0x1ed543;if(_0x2a3459)return _0x1d2f8b=_0x2a3459[_0x200d08('0x33')],typeof _0x28b1e6[_0x200d08('0x3')][_0x200d08('0x9')]===_0x200d08('0xf')&&(_0x2679fe['limit']=qs[_0x200d08('0x19')](_0x28b1e6[_0x200d08('0x3')][_0x200d08('0x19')]),_0x2679fe['offset']=qs[_0x200d08('0x2a')](_0x28b1e6[_0x200d08('0x3')][_0x200d08('0x2a')])),_0x5ee2fe[_0x200d08('0x26')](_0x2679fe);})[_0x1ed543('0x2')](function(_0x13dab7){if(_0x13dab7)return _0x13dab7?{'count':_0x1d2f8b,'rows':_0x13dab7}:null;})[_0x1ed543('0x2')](respondWithResult(_0x2ff714,null))[_0x1ed543('0x2c')](handleError(_0x2ff714,null));},exports[_0x29167d('0x4')]=function(_0x4122cb,_0x46d544){const _0x21e27a=_0x29167d;let _0x108ecb={};const _0x219ea8={};let _0x438a4a,_0x5c3215;return db[_0x21e27a('0xa')]['findOne']({'where':{'id':_0x4122cb['params']['id']}})[_0x21e27a('0x2')](handleEntityNotFound(_0x46d544,null))[_0x21e27a('0x2')](function(_0x18a6e3){const _0x4cf5b9=_0x21e27a;if(_0x18a6e3)return _0x438a4a=_0x18a6e3,_0x219ea8[_0x4cf5b9('0x22')]=_[_0x4cf5b9('0x1b')](db[_0x4cf5b9('0x25')]['rawAttributes']),_0x219ea8['query']=_['keys'](_0x4122cb[_0x4cf5b9('0x3')]),_0x219ea8['filters']=_[_0x4cf5b9('0x2f')](_0x219ea8[_0x4cf5b9('0x22')],_0x219ea8[_0x4cf5b9('0x3')]),_0x108ecb[_0x4cf5b9('0x10')]=_[_0x4cf5b9('0x2f')](_0x219ea8[_0x4cf5b9('0x22')],qs[_0x4cf5b9('0x18')](_0x4122cb[_0x4cf5b9('0x3')][_0x4cf5b9('0x18')])),_0x108ecb['attributes']=_0x108ecb['attributes'][_0x4cf5b9('0x33')]?_0x108ecb[_0x4cf5b9('0x10')]:_0x219ea8['model'],_0x108ecb[_0x4cf5b9('0x2b')]=qs[_0x4cf5b9('0x2d')](_0x4122cb[_0x4cf5b9('0x3')][_0x4cf5b9('0x2d')]),_0x108ecb['where']=qs['filters'](_[_0x4cf5b9('0xb')](_0x4122cb[_0x4cf5b9('0x3')],_0x219ea8[_0x4cf5b9('0x6')])),_0x4122cb[_0x4cf5b9('0x3')][_0x4cf5b9('0x16')]&&(_0x108ecb[_0x4cf5b9('0x1a')]=_['merge'](_0x108ecb[_0x4cf5b9('0x1a')],{[Op['or']]:_['map'](_0x108ecb[_0x4cf5b9('0x10')],function(_0x53c4a7){const _0x38386c=_0x4cf5b9,_0x127c6a={};return _0x127c6a[_0x53c4a7]={[Op['like']]:'%'+_0x4122cb[_0x38386c('0x3')][_0x38386c('0x16')]+'%'},_0x127c6a;})})),_0x108ecb=_[_0x4cf5b9('0x23')]({},_0x108ecb,_0x4122cb[_0x4cf5b9('0x28')]),_0x438a4a[_0x4cf5b9('0x4')](_0x108ecb);})[_0x21e27a('0x2')](function(_0x586b79){const _0x4043ae=_0x21e27a;if(_0x586b79)return _0x5c3215=_0x586b79['length'],typeof _0x4122cb[_0x4043ae('0x3')][_0x4043ae('0x9')]==='undefined'&&(_0x108ecb[_0x4043ae('0x19')]=qs['limit'](_0x4122cb[_0x4043ae('0x3')][_0x4043ae('0x19')]),_0x108ecb[_0x4043ae('0x2a')]=qs[_0x4043ae('0x2a')](_0x4122cb['query'][_0x4043ae('0x2a')])),_0x438a4a[_0x4043ae('0x4')](_0x108ecb);})['then'](function(_0x39428f){if(_0x39428f)return _0x39428f?{'count':_0x5c3215,'rows':_0x39428f}:null;})[_0x21e27a('0x2')](respondWithResult(_0x46d544,null))[_0x21e27a('0x2c')](handleError(_0x46d544,null));},exports['getDescriptions']=function(_0x347dc0,_0x563702){const _0x224741=_0x29167d;let _0x2ab137={};const _0x33e55a={};let _0x391e91,_0x7a08db;return db[_0x224741('0xa')][_0x224741('0x20')]({'where':{'id':_0x347dc0[_0x224741('0x1')]['id']}})[_0x224741('0x2')](handleEntityNotFound(_0x563702,null))[_0x224741('0x2')](function(_0x2aa573){const _0x47d669=_0x224741;if(_0x2aa573)return _0x391e91=_0x2aa573,_0x33e55a[_0x47d669('0x22')]=_[_0x47d669('0x1b')](db[_0x47d669('0x25')]['rawAttributes']),_0x33e55a[_0x47d669('0x3')]=_['keys'](_0x347dc0['query']),_0x33e55a[_0x47d669('0x6')]=_['intersection'](_0x33e55a[_0x47d669('0x22')],_0x33e55a[_0x47d669('0x3')]),_0x2ab137['attributes']=_['intersection'](_0x33e55a[_0x47d669('0x22')],qs[_0x47d669('0x18')](_0x347dc0['query'][_0x47d669('0x18')])),_0x2ab137[_0x47d669('0x10')]=_0x2ab137[_0x47d669('0x10')]['length']?_0x2ab137[_0x47d669('0x10')]:_0x33e55a[_0x47d669('0x22')],_0x2ab137[_0x47d669('0x2b')]=qs[_0x47d669('0x2d')](_0x347dc0['query'][_0x47d669('0x2d')]),_0x2ab137[_0x47d669('0x1a')]=qs[_0x47d669('0x6')](_[_0x47d669('0xb')](_0x347dc0[_0x47d669('0x3')],_0x33e55a[_0x47d669('0x6')])),_0x347dc0['query'][_0x47d669('0x16')]&&(_0x2ab137[_0x47d669('0x1a')]=_['merge'](_0x2ab137['where'],{[Op['or']]:_[_0x47d669('0x21')](_0x2ab137[_0x47d669('0x10')],function(_0x4f443d){const _0x80e644=_0x47d669,_0x44baba={};return _0x44baba[_0x4f443d]={[Op[_0x80e644('0x35')]]:'%'+_0x347dc0[_0x80e644('0x3')][_0x80e644('0x16')]+'%'},_0x44baba;})})),_0x2ab137=_[_0x47d669('0x23')]({},_0x2ab137,_0x347dc0[_0x47d669('0x28')]),_0x391e91[_0x47d669('0xd')](_0x2ab137);})['then'](function(_0x8524a9){const _0x294006=_0x224741;if(_0x8524a9)return _0x7a08db=_0x8524a9[_0x294006('0x33')],typeof _0x347dc0['query']['nolimit']===_0x294006('0xf')&&(_0x2ab137[_0x294006('0x19')]=qs[_0x294006('0x19')](_0x347dc0[_0x294006('0x3')][_0x294006('0x19')]),_0x2ab137[_0x294006('0x2a')]=qs[_0x294006('0x2a')](_0x347dc0[_0x294006('0x3')][_0x294006('0x2a')])),_0x391e91['getDescriptions'](_0x2ab137);})[_0x224741('0x2')](function(_0x327495){if(_0x327495)return _0x327495?{'count':_0x7a08db,'rows':_0x327495}:null;})['then'](respondWithResult(_0x563702,null))['catch'](handleError(_0x563702,null));}; \ No newline at end of file +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 diff --git a/server/api/intVtigerConfiguration/intVtigerConfiguration.model.js b/server/api/intVtigerConfiguration/intVtigerConfiguration.model.js index 2fedcf1..c4e3fec 100644 --- a/server/api/intVtigerConfiguration/intVtigerConfiguration.model.js +++ b/server/api/intVtigerConfiguration/intVtigerConfiguration.model.js @@ -1 +1 @@ -const a326_0x4a80=['exports','define','VtigerConfiguration','int_vtiger_configurations'];(function(_0x6e6751,_0x4a8046){const _0x426f1f=function(_0x261516){while(--_0x261516){_0x6e6751['push'](_0x6e6751['shift']());}};_0x426f1f(++_0x4a8046);}(a326_0x4a80,0x10f));const a326_0x426f=function(_0x6e6751,_0x4a8046){_0x6e6751=_0x6e6751-0x0;let _0x426f1f=a326_0x4a80[_0x6e6751];return _0x426f1f;};const _0xfc035e=a326_0x426f;'use strict';const attributes=require('./intVtigerConfiguration.attributes');module[_0xfc035e('0x1')]=function(_0x261516){const _0x54f158=_0xfc035e,_0x547402=_0x261516[_0x54f158('0x2')](_0x54f158('0x3'),attributes,{'tableName':_0x54f158('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x547402;}; \ No newline at end of file +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 diff --git a/server/api/intVtigerField/index.js b/server/api/intVtigerField/index.js index b971f93..a38eb90 100644 --- a/server/api/intVtigerField/index.js +++ b/server/api/intVtigerField/index.js @@ -1 +1 @@ -const a327_0x2c73=['delete','exports','/:id','create','destroy','get','express','Router','isAuthenticated','put','../../components/auth/service'];(function(_0x14ea01,_0x2c7364){const _0x57e223=function(_0x28a5a1){while(--_0x28a5a1){_0x14ea01['push'](_0x14ea01['shift']());}};_0x57e223(++_0x2c7364);}(a327_0x2c73,0xb0));const a327_0x57e2=function(_0x14ea01,_0x2c7364){_0x14ea01=_0x14ea01-0x0;let _0x57e223=a327_0x2c73[_0x14ea01];return _0x57e223;};const _0x1607b0=a327_0x57e2;'use strict';const express=require(_0x1607b0('0x6')),router=express[_0x1607b0('0x7')](),auth=require(_0x1607b0('0xa')),controller=require('./intVtigerField.controller');router[_0x1607b0('0x5')]('/',auth['isAuthenticated'](),controller['index']),router[_0x1607b0('0x5')](_0x1607b0('0x2'),auth[_0x1607b0('0x8')](),controller['show']),router['post']('/',auth[_0x1607b0('0x8')](),controller[_0x1607b0('0x3')]),router[_0x1607b0('0x9')](_0x1607b0('0x2'),auth[_0x1607b0('0x8')](),controller['update']),router[_0x1607b0('0x0')](_0x1607b0('0x2'),auth[_0x1607b0('0x8')](),controller[_0x1607b0('0x4')]),module[_0x1607b0('0x1')]=router; \ No newline at end of file +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 diff --git a/server/api/intVtigerField/intVtigerField.attributes.js b/server/api/intVtigerField/intVtigerField.attributes.js index 1e81a45..2d7f037 100644 --- a/server/api/intVtigerField/intVtigerField.attributes.js +++ b/server/api/intVtigerField/intVtigerField.attributes.js @@ -1 +1 @@ -const a328_0x2fc1=['variable','exports','sequelize','customVariable','ENUM','keyValue','STRING'];(function(_0x1ef363,_0x2fc126){const _0x2f1fa8=function(_0x1ebfa4){while(--_0x1ebfa4){_0x1ef363['push'](_0x1ef363['shift']());}};_0x2f1fa8(++_0x2fc126);}(a328_0x2fc1,0x10a));const a328_0x2f1f=function(_0x1ef363,_0x2fc126){_0x1ef363=_0x1ef363-0x0;let _0x2f1fa8=a328_0x2fc1[_0x1ef363];return _0x2f1fa8;};const _0x13978d=a328_0x2f1f;'use strict';const Sequelize=require(_0x13978d('0x2'));module[_0x13978d('0x1')]={'type':{'type':Sequelize[_0x13978d('0x4')]('string',_0x13978d('0x0'),_0x13978d('0x3'),_0x13978d('0x5')),'defaultValue':'string'},'content':{'type':Sequelize['STRING']},'key':{'type':Sequelize['STRING']},'keyType':{'type':Sequelize['ENUM']('string','variable','customVariable')},'keyContent':{'type':Sequelize[_0x13978d('0x6')]},'idField':{'type':Sequelize[_0x13978d('0x6')]},'nameField':{'type':Sequelize[_0x13978d('0x6')]},'customField':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x13978d('0x6')]}}; \ No newline at end of file +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 diff --git a/server/api/intVtigerField/intVtigerField.controller.js b/server/api/intVtigerField/intVtigerField.controller.js index 30b52ea..7e7645f 100644 --- a/server/api/intVtigerField/intVtigerField.controller.js +++ b/server/api/intVtigerField/intVtigerField.controller.js @@ -1 +1 @@ -const a329_0x47b9=['set','like','where','name','end','intersection','destroy','params','../../components/parsers/qs','include','filter','sort','send','json','update','offset','../../config/logger','filters','type','map','create','attributes','query','lodash','then','options','VIRTUAL','catch','pick','index','findOne','stack','status','rawAttributes','order','limit','body','merge','error','count','model','includeAll','keys','VtigerField','length','rows','fields'];(function(_0x49a5ca,_0x47b9a5){const _0x420638=function(_0xd9ee3d){while(--_0xd9ee3d){_0x49a5ca['push'](_0x49a5ca['shift']());}};_0x420638(++_0x47b9a5);}(a329_0x47b9,0x17d));const a329_0x4206=function(_0x49a5ca,_0x47b9a5){_0x49a5ca=_0x49a5ca-0x0;let _0x420638=a329_0x47b9[_0x49a5ca];return _0x420638;};const _0x5bdb01=a329_0x4206;'use strict';const _=require(_0x5bdb01('0x12')),qs=require(_0x5bdb01('0x3')),logger=require(_0x5bdb01('0xb'))('api'),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0xd9ee3d,_0x2c34b9){return _0x2c34b9=_0x2c34b9||0xc8,function(_0x1f4fdd){const _0x2e54cb=a329_0x4206;if(_0x1f4fdd)return _0xd9ee3d[_0x2e54cb('0x1b')](_0x2c34b9)[_0x2e54cb('0x8')](_0x1f4fdd);};}function respondWithFilteredResult(_0x401635,_0x533365){return function(_0x167732){const _0x41a58f=a329_0x4206;if(_0x167732){const _0x10987c=_0x167732[_0x41a58f('0x22')],_0x575e89=_0x533365[_0x41a58f('0xa')];let _0x3d8590=_0x533365[_0x41a58f('0xa')]+_0x533365[_0x41a58f('0x1e')],_0x7c7246;return _0x3d8590>=_0x10987c?(_0x3d8590=_0x10987c,_0x7c7246=0xc8):_0x7c7246=0xce,_0x401635[_0x41a58f('0x1b')](_0x7c7246),_0x401635[_0x41a58f('0x2a')]('Content-Range',_0x575e89+'-'+_0x3d8590+'/'+_0x10987c)['json'](_0x167732);}return null;};}function saveUpdates(_0x4421e5){return function(_0x7549cb){const _0x55c8d0=a329_0x4206;if(_0x7549cb)return _0x7549cb[_0x55c8d0('0x9')](_0x4421e5)[_0x55c8d0('0x13')](function(_0x1a62fc){return _0x1a62fc;});return null;};}function removeEntity(_0x2cbfdb){return function(_0x20f39c){const _0xdff38d=a329_0x4206;if(_0x20f39c)return _0x20f39c[_0xdff38d('0x1')]()['then'](function(){const _0x5eaabf=_0xdff38d;_0x2cbfdb[_0x5eaabf('0x1b')](0xcc)[_0x5eaabf('0x2e')]();});};}function handleEntityNotFound(_0x34e113){return function(_0x2fdf00){return!_0x2fdf00&&_0x34e113['sendStatus'](0x194),_0x2fdf00;};}function handleError(_0x1dc1cc,_0x5a7234){return _0x5a7234=_0x5a7234||0x1f4,function(_0x2fb3fc){const _0x44cbb3=a329_0x4206;logger[_0x44cbb3('0x21')](_0x2fb3fc[_0x44cbb3('0x1a')]),_0x2fb3fc[_0x44cbb3('0x2d')]&&delete _0x2fb3fc[_0x44cbb3('0x2d')],_0x1dc1cc[_0x44cbb3('0x1b')](_0x5a7234)[_0x44cbb3('0x7')](_0x2fb3fc);};}exports[_0x5bdb01('0x18')]=function(_0x34308a,_0x2eaca8){const _0x3355d9=_0x5bdb01;let _0x2220aa={};const _0xec8363={},_0x13f174={'count':0x0,'rows':[]},_0x490986=_['map'](db['VtigerField']['rawAttributes'],function(_0x23e9e0){const _0x1173d4=a329_0x4206;return{'name':_0x23e9e0['fieldName'],'type':_0x23e9e0[_0x1173d4('0xd')]['key']};});_0xec8363[_0x3355d9('0x23')]=_[_0x3355d9('0xe')](_0x490986,_0x3355d9('0x2d')),_0xec8363['query']=_[_0x3355d9('0x25')](_0x34308a[_0x3355d9('0x11')]),_0xec8363[_0x3355d9('0xc')]=_[_0x3355d9('0x0')](_0xec8363['model'],_0xec8363[_0x3355d9('0x11')]),_0x2220aa['attributes']=_[_0x3355d9('0x0')](_0xec8363[_0x3355d9('0x23')],qs[_0x3355d9('0x29')](_0x34308a['query']['fields'])),_0x2220aa[_0x3355d9('0x10')]=_0x2220aa['attributes'][_0x3355d9('0x27')]?_0x2220aa[_0x3355d9('0x10')]:_0xec8363['model'];typeof _0x34308a[_0x3355d9('0x11')]['nolimit']==='undefined'&&(_0x2220aa['limit']=qs[_0x3355d9('0x1e')](_0x34308a[_0x3355d9('0x11')][_0x3355d9('0x1e')]),_0x2220aa['offset']=qs['offset'](_0x34308a[_0x3355d9('0x11')][_0x3355d9('0xa')]));_0x2220aa[_0x3355d9('0x1d')]=qs[_0x3355d9('0x6')](_0x34308a[_0x3355d9('0x11')][_0x3355d9('0x6')]),_0x2220aa[_0x3355d9('0x2c')]=qs[_0x3355d9('0xc')](_[_0x3355d9('0x17')](_0x34308a[_0x3355d9('0x11')],_0xec8363[_0x3355d9('0xc')]),_0x490986);_0x34308a[_0x3355d9('0x11')][_0x3355d9('0x5')]&&(_0x2220aa[_0x3355d9('0x2c')]=_[_0x3355d9('0x20')](_0x2220aa['where'],{[Op['or']]:_[_0x3355d9('0xe')](_0x490986,function(_0x4f24df){const _0x46ec93=_0x3355d9;if(_0x4f24df['type']!==_0x46ec93('0x15')){const _0x2a4aa0={};return _0x2a4aa0[_0x4f24df['name']]={[Op[_0x46ec93('0x2b')]]:'%'+_0x34308a[_0x46ec93('0x11')][_0x46ec93('0x5')]+'%'},_0x2a4aa0;}})}));_0x2220aa=_[_0x3355d9('0x20')]({},_0x2220aa,_0x34308a[_0x3355d9('0x14')]);const _0x423a03={'where':_0x2220aa['where']};return db[_0x3355d9('0x26')]['count'](_0x423a03)['then'](function(_0x5d3376){const _0x42412e=_0x3355d9;return _0x13f174['count']=_0x5d3376,_0x34308a[_0x42412e('0x11')][_0x42412e('0x24')]&&(_0x2220aa[_0x42412e('0x4')]=[{'all':!![]}]),db[_0x42412e('0x26')]['findAll'](_0x2220aa);})[_0x3355d9('0x13')](function(_0x2cd3e8){const _0x56d084=_0x3355d9;return _0x13f174[_0x56d084('0x28')]=_0x2cd3e8,_0x13f174;})[_0x3355d9('0x13')](respondWithFilteredResult(_0x2eaca8,_0x2220aa))['catch'](handleError(_0x2eaca8,null));},exports['show']=function(_0x1039ba,_0x52ad88){const _0x2c21bb=_0x5bdb01;let _0x3700df={'raw':!![],'where':{'id':_0x1039ba[_0x2c21bb('0x2')]['id']}};const _0xbd109c={};return _0xbd109c['model']=_[_0x2c21bb('0x25')](db[_0x2c21bb('0x26')][_0x2c21bb('0x1c')]),_0xbd109c[_0x2c21bb('0x11')]=_[_0x2c21bb('0x25')](_0x1039ba[_0x2c21bb('0x11')]),_0xbd109c[_0x2c21bb('0xc')]=_['intersection'](_0xbd109c[_0x2c21bb('0x23')],_0xbd109c[_0x2c21bb('0x11')]),_0x3700df[_0x2c21bb('0x10')]=_['intersection'](_0xbd109c[_0x2c21bb('0x23')],qs['fields'](_0x1039ba['query'][_0x2c21bb('0x29')])),_0x3700df[_0x2c21bb('0x10')]=_0x3700df[_0x2c21bb('0x10')][_0x2c21bb('0x27')]?_0x3700df[_0x2c21bb('0x10')]:_0xbd109c[_0x2c21bb('0x23')],_0x1039ba[_0x2c21bb('0x11')][_0x2c21bb('0x24')]&&(_0x3700df['include']=[{'all':!![]}]),_0x3700df=_['merge']({},_0x3700df,_0x1039ba[_0x2c21bb('0x14')]),db[_0x2c21bb('0x26')][_0x2c21bb('0x19')](_0x3700df)[_0x2c21bb('0x13')](handleEntityNotFound(_0x52ad88,null))[_0x2c21bb('0x13')](respondWithResult(_0x52ad88,null))['catch'](handleError(_0x52ad88,null));},exports[_0x5bdb01('0xf')]=function(_0x193692,_0x506390){const _0x110672=_0x5bdb01;return db[_0x110672('0x26')][_0x110672('0xf')](_0x193692['body'],{})['then'](respondWithResult(_0x506390,0xc9))[_0x110672('0x16')](handleError(_0x506390,null));},exports[_0x5bdb01('0x9')]=function(_0x5020d6,_0x1fbda0){const _0x38081b=_0x5bdb01;return _0x5020d6[_0x38081b('0x1f')]['id']&&delete _0x5020d6[_0x38081b('0x1f')]['id'],db[_0x38081b('0x26')][_0x38081b('0x19')]({'where':{'id':_0x5020d6[_0x38081b('0x2')]['id']}})['then'](handleEntityNotFound(_0x1fbda0,null))[_0x38081b('0x13')](saveUpdates(_0x5020d6[_0x38081b('0x1f')],null))['then'](respondWithResult(_0x1fbda0,null))[_0x38081b('0x16')](handleError(_0x1fbda0,null));},exports[_0x5bdb01('0x1')]=function(_0x1dc1b6,_0x455556){const _0x4b1e5d=_0x5bdb01;return db[_0x4b1e5d('0x26')][_0x4b1e5d('0x19')]({'where':{'id':_0x1dc1b6[_0x4b1e5d('0x2')]['id']}})[_0x4b1e5d('0x13')](handleEntityNotFound(_0x455556,null))[_0x4b1e5d('0x13')](removeEntity(_0x455556,null))[_0x4b1e5d('0x16')](handleError(_0x455556,null));}; \ No newline at end of file +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 diff --git a/server/api/intVtigerField/intVtigerField.model.js b/server/api/intVtigerField/intVtigerField.model.js index 7a71023..7f58494 100644 --- a/server/api/intVtigerField/intVtigerField.model.js +++ b/server/api/intVtigerField/intVtigerField.model.js @@ -1 +1 @@ -const a330_0x5bb4=['idField','FieldId','VtigerField','int_vtiger_fields','vtiger_unique_index','define','exports'];(function(_0x1b5c3d,_0x5bb4f3){const _0x3b48ab=function(_0x5059e6){while(--_0x5059e6){_0x1b5c3d['push'](_0x1b5c3d['shift']());}};_0x3b48ab(++_0x5bb4f3);}(a330_0x5bb4,0xd5));const a330_0x3b48=function(_0x1b5c3d,_0x5bb4f3){_0x1b5c3d=_0x1b5c3d-0x0;let _0x3b48ab=a330_0x5bb4[_0x1b5c3d];return _0x3b48ab;};const _0x4ebda8=a330_0x3b48;'use strict';const attributes=require('./intVtigerField.attributes');module[_0x4ebda8('0x3')]=function(_0x5059e6){const _0x57755c=_0x4ebda8,_0xd6e91f=_0x5059e6[_0x57755c('0x2')](_0x57755c('0x6'),attributes,{'tableName':_0x57755c('0x0'),'paranoid':![],'indexes':[{'name':_0x57755c('0x1'),'fields':[_0x57755c('0x4'),_0x57755c('0x5')],'unique':!![]}],'timestamps':!![]});return _0xd6e91f;}; \ No newline at end of file +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 diff --git a/server/api/intZendeskAccount/index.js b/server/api/intZendeskAccount/index.js index e170fb3..3d85940 100644 --- a/server/api/intZendeskAccount/index.js +++ b/server/api/intZendeskAccount/index.js @@ -1 +1 @@ -const a331_0x27f9=['destroy','update','delete','getFields','/:id/configurations','get','express','/:id','put','isAuthenticated','addConfiguration','exports','create','/:id/fields','./intZendeskAccount.controller','../../components/auth/service'];(function(_0x294570,_0x27f9d2){const _0x4c464d=function(_0x2eb5d5){while(--_0x2eb5d5){_0x294570['push'](_0x294570['shift']());}};_0x4c464d(++_0x27f9d2);}(a331_0x27f9,0x1e4));const a331_0x4c46=function(_0x294570,_0x27f9d2){_0x294570=_0x294570-0x0;let _0x4c464d=a331_0x27f9[_0x294570];return _0x4c464d;};const _0x2672d6=a331_0x4c46;'use strict';const express=require(_0x2672d6('0x2')),router=express['Router'](),auth=require(_0x2672d6('0xb')),controller=require(_0x2672d6('0xa'));router[_0x2672d6('0x1')]('/',auth['isAuthenticated'](),controller['index']),router['get']('/:id',auth['isAuthenticated'](),controller['show']),router[_0x2672d6('0x1')]('/:id/configurations',auth['isAuthenticated'](),controller['getConfigurations']),router[_0x2672d6('0x1')](_0x2672d6('0x9'),auth[_0x2672d6('0x5')](),controller[_0x2672d6('0xf')]),router['post']('/',auth[_0x2672d6('0x5')](),controller[_0x2672d6('0x8')]),router['post'](_0x2672d6('0x0'),auth[_0x2672d6('0x5')](),controller[_0x2672d6('0x6')]),router[_0x2672d6('0x4')](_0x2672d6('0x3'),auth[_0x2672d6('0x5')](),controller[_0x2672d6('0xd')]),router[_0x2672d6('0xe')](_0x2672d6('0x3'),auth[_0x2672d6('0x5')](),controller[_0x2672d6('0xc')]),module[_0x2672d6('0x7')]=router; \ No newline at end of file +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 diff --git a/server/api/intZendeskAccount/intZendeskAccount.attributes.js b/server/api/intZendeskAccount/intZendeskAccount.attributes.js index 681b514..6bd214e 100644 --- a/server/api/intZendeskAccount/intZendeskAccount.attributes.js +++ b/server/api/intZendeskAccount/intZendeskAccount.attributes.js @@ -1 +1 @@ -const a332_0x4388=['username','token','STRING','remoteUri','ENUM','password','sequelize','exports','integrationTab'];(function(_0x22afc9,_0x43880b){const _0x433c02=function(_0x7ac89c){while(--_0x7ac89c){_0x22afc9['push'](_0x22afc9['shift']());}};_0x433c02(++_0x43880b);}(a332_0x4388,0x14e));const a332_0x433c=function(_0x22afc9,_0x43880b){_0x22afc9=_0x22afc9-0x0;let _0x433c02=a332_0x4388[_0x22afc9];return _0x433c02;};const _0x28a24c=a332_0x433c;'use strict';const Sequelize=require(_0x28a24c('0x5'));module[_0x28a24c('0x6')]={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x28a24c('0x1')]},'username':{'type':Sequelize[_0x28a24c('0x1')],'unique':_0x28a24c('0x8')},'password':{'type':Sequelize[_0x28a24c('0x1')]},'token':{'type':Sequelize[_0x28a24c('0x1')]},'remoteUri':{'type':Sequelize[_0x28a24c('0x1')],'unique':_0x28a24c('0x2')},'authType':{'type':Sequelize[_0x28a24c('0x3')](_0x28a24c('0x4'),_0x28a24c('0x0')),'defaultValue':_0x28a24c('0x4')},'serverUrl':{'type':Sequelize[_0x28a24c('0x1')]},'type':{'type':Sequelize['ENUM'](_0x28a24c('0x7'),'newTab'),'defaultValue':_0x28a24c('0x7')}}; \ No newline at end of file +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 diff --git a/server/api/intZendeskAccount/intZendeskAccount.controller.js b/server/api/intZendeskAccount/intZendeskAccount.controller.js index 790df6f..26afde3 100644 --- a/server/api/intZendeskAccount/intZendeskAccount.controller.js +++ b/server/api/intZendeskAccount/intZendeskAccount.controller.js @@ -1 +1 @@ -const a333_0x27f2=['%s:%s','../../config/logger','intersection','%s/token:%s','attributes','api','length','statusCode','Sequelize','getFields','include','Descriptions','substring','json','sequelize','destroy','test','group','format','lodash','base64','name','type','findOne','limit','create','filter','show','error','getFields,\x20%s,\x20%s,\x20%s','where','fields','stack','status','../../components/integrations/configuration','sort','update','ZendeskConfiguration','then','authType','keys','password','includeAll','system_field_options','order','channel','Unknown\x20authentication\x20type','send','params','position','merge','%s/%s','ZendeskAccount','options','Wrong\x20credentials','util','GET','getDescriptions','custom_field_options','VIRTUAL','filters','description','remoteUri','stringify','toString','request-promise-native','body','Basic\x20%s','fieldName','rows','lastIndexOf','catch','offset','AccountId','map','title','query','slice','end','set','count','token','assignee','Subjects','username','sendStatus','ticket_fields','ZendeskField','undefined','nolimit','rawAttributes','model'];(function(_0x1994cd,_0x27f2c3){const _0x5667e8=function(_0x5235cb){while(--_0x5235cb){_0x1994cd['push'](_0x1994cd['shift']());}};_0x5667e8(++_0x27f2c3);}(a333_0x27f2,0x148));const a333_0x5667=function(_0x1994cd,_0x27f2c3){_0x1994cd=_0x1994cd-0x0;let _0x5667e8=a333_0x27f2[_0x1994cd];return _0x5667e8;};const _0x564018=a333_0x5667;'use strict';const rp=require(_0x564018('0xd')),util=require(_0x564018('0x3')),_=require(_0x564018('0x3b')),qs=require('../../components/parsers/qs'),logger=require(_0x564018('0x29'))(_0x564018('0x2d')),db=require('../../mysqldb')['db'],{Op}=require(_0x564018('0x36')),integrations=require(_0x564018('0x4a'));function respondWithResult(_0x5235cb,_0x1a3ed6){return _0x1a3ed6=_0x1a3ed6||0xc8,function(_0x1f812d){const _0x199c10=a333_0x5667;if(_0x1f812d)return _0x5235cb[_0x199c10('0x49')](_0x1a3ed6)[_0x199c10('0x35')](_0x1f812d);};}function respondWithFilteredResult(_0x44810d,_0x490f0a){return function(_0x3c29ae){const _0x221bb6=a333_0x5667;if(_0x3c29ae){const _0x45208c=_0x3c29ae[_0x221bb6('0x1c')],_0x442efe=_0x490f0a[_0x221bb6('0x14')];let _0x21ebbf=_0x490f0a[_0x221bb6('0x14')]+_0x490f0a[_0x221bb6('0x40')],_0x1d4566;return _0x21ebbf>=_0x45208c?(_0x21ebbf=_0x45208c,_0x1d4566=0xc8):_0x1d4566=0xce,_0x44810d[_0x221bb6('0x49')](_0x1d4566),_0x44810d[_0x221bb6('0x1b')]('Content-Range',_0x442efe+'-'+_0x21ebbf+'/'+_0x45208c)[_0x221bb6('0x35')](_0x3c29ae);}return null;};}function saveUpdates(_0x32b47a){return function(_0x38a222){const _0x1fe06c=a333_0x5667;if(_0x38a222)return _0x38a222[_0x1fe06c('0x4c')](_0x32b47a)[_0x1fe06c('0x4e')](function(_0x534c40){return _0x534c40;});return null;};}function removeEntity(_0x2efaa4){return function(_0x5b412d){const _0xbcf3b9=a333_0x5667;if(_0x5b412d)return _0x5b412d[_0xbcf3b9('0x37')]()['then'](function(){const _0x41c7c4=_0xbcf3b9;_0x2efaa4[_0x41c7c4('0x49')](0xcc)[_0x41c7c4('0x1a')]();});};}function handleEntityNotFound(_0x48bafa){return function(_0x516a99){const _0x49abf8=a333_0x5667;return!_0x516a99&&_0x48bafa[_0x49abf8('0x21')](0x194),_0x516a99;};}function handleError(_0x2c3927,_0x589fb2){return _0x589fb2=_0x589fb2||0x1f4,function(_0x104d6e){const _0x46b4ab=a333_0x5667;logger[_0x46b4ab('0x44')](_0x104d6e[_0x46b4ab('0x48')]),_0x104d6e[_0x46b4ab('0x3d')]&&delete _0x104d6e[_0x46b4ab('0x3d')],_0x2c3927['status'](_0x589fb2)[_0x46b4ab('0x57')](_0x104d6e);};}exports['index']=function(_0x3a97b7,_0x3150b9){const _0x3724b0=_0x564018;let _0x1f2cb2={};const _0x284cb5={},_0x20b4b9={'count':0x0,'rows':[]},_0x55e4a3=_[_0x3724b0('0x16')](db[_0x3724b0('0x0')][_0x3724b0('0x26')],function(_0x128c7f){const _0x5d2079=_0x3724b0;return{'name':_0x128c7f[_0x5d2079('0x10')],'type':_0x128c7f[_0x5d2079('0x3e')]['key']};});_0x284cb5[_0x3724b0('0x27')]=_['map'](_0x55e4a3,_0x3724b0('0x3d')),_0x284cb5[_0x3724b0('0x18')]=_[_0x3724b0('0x50')](_0x3a97b7['query']),_0x284cb5[_0x3724b0('0x8')]=_[_0x3724b0('0x2a')](_0x284cb5['model'],_0x284cb5[_0x3724b0('0x18')]),_0x1f2cb2['attributes']=_[_0x3724b0('0x2a')](_0x284cb5[_0x3724b0('0x27')],qs[_0x3724b0('0x47')](_0x3a97b7[_0x3724b0('0x18')][_0x3724b0('0x47')])),_0x1f2cb2[_0x3724b0('0x2c')]=_0x1f2cb2[_0x3724b0('0x2c')][_0x3724b0('0x2e')]?_0x1f2cb2['attributes']:_0x284cb5[_0x3724b0('0x27')];typeof _0x3a97b7[_0x3724b0('0x18')][_0x3724b0('0x25')]===_0x3724b0('0x24')&&(_0x1f2cb2[_0x3724b0('0x40')]=qs[_0x3724b0('0x40')](_0x3a97b7['query'][_0x3724b0('0x40')]),_0x1f2cb2['offset']=qs[_0x3724b0('0x14')](_0x3a97b7[_0x3724b0('0x18')]['offset']));_0x1f2cb2[_0x3724b0('0x54')]=qs[_0x3724b0('0x4b')](_0x3a97b7[_0x3724b0('0x18')][_0x3724b0('0x4b')]),_0x1f2cb2[_0x3724b0('0x46')]=qs[_0x3724b0('0x8')](_['pick'](_0x3a97b7[_0x3724b0('0x18')],_0x284cb5[_0x3724b0('0x8')]),_0x55e4a3);_0x3a97b7[_0x3724b0('0x18')][_0x3724b0('0x42')]&&(_0x1f2cb2['where']=_['merge'](_0x1f2cb2[_0x3724b0('0x46')],{[Op['or']]:_[_0x3724b0('0x16')](_0x55e4a3,function(_0x3c7c97){const _0x5282f8=_0x3724b0;if(_0x3c7c97['type']!==_0x5282f8('0x7')){const _0x46126b={};return _0x46126b[_0x3c7c97[_0x5282f8('0x3d')]]={[Op['like']]:'%'+_0x3a97b7['query'][_0x5282f8('0x42')]+'%'},_0x46126b;}})}));_0x1f2cb2=_[_0x3724b0('0x5a')]({},_0x1f2cb2,_0x3a97b7[_0x3724b0('0x1')]);const _0x5a94a1={'where':_0x1f2cb2[_0x3724b0('0x46')]};return db[_0x3724b0('0x0')][_0x3724b0('0x1c')](_0x5a94a1)[_0x3724b0('0x4e')](function(_0x1aa186){const _0x309cae=_0x3724b0;return _0x20b4b9['count']=_0x1aa186,_0x3a97b7[_0x309cae('0x18')][_0x309cae('0x52')]&&(_0x1f2cb2[_0x309cae('0x32')]=[{'all':!![]}]),db[_0x309cae('0x0')]['findAll'](_0x1f2cb2);})[_0x3724b0('0x4e')](function(_0x35e095){const _0x35ad93=_0x3724b0;return _0x20b4b9[_0x35ad93('0x11')]=_0x35e095,_0x20b4b9;})[_0x3724b0('0x4e')](respondWithFilteredResult(_0x3150b9,_0x1f2cb2))[_0x3724b0('0x13')](handleError(_0x3150b9,null));},exports[_0x564018('0x43')]=function(_0x30e6aa,_0x4e3b9e){const _0x39fdb6=_0x564018;let _0x3e8b2a={'raw':![],'where':{'id':_0x30e6aa['params']['id']}};const _0x248387={};return _0x248387[_0x39fdb6('0x27')]=_[_0x39fdb6('0x50')](db[_0x39fdb6('0x0')][_0x39fdb6('0x26')]),_0x248387[_0x39fdb6('0x18')]=_[_0x39fdb6('0x50')](_0x30e6aa[_0x39fdb6('0x18')]),_0x248387[_0x39fdb6('0x8')]=_[_0x39fdb6('0x2a')](_0x248387[_0x39fdb6('0x27')],_0x248387[_0x39fdb6('0x18')]),_0x3e8b2a[_0x39fdb6('0x2c')]=_[_0x39fdb6('0x2a')](_0x248387[_0x39fdb6('0x27')],qs[_0x39fdb6('0x47')](_0x30e6aa[_0x39fdb6('0x18')][_0x39fdb6('0x47')])),_0x3e8b2a['attributes']=_0x3e8b2a['attributes'][_0x39fdb6('0x2e')]?_0x3e8b2a[_0x39fdb6('0x2c')]:_0x248387[_0x39fdb6('0x27')],_0x30e6aa[_0x39fdb6('0x18')][_0x39fdb6('0x52')]&&(_0x3e8b2a[_0x39fdb6('0x32')]=[{'all':!![]}]),_0x3e8b2a=_['merge']({},_0x3e8b2a,_0x30e6aa[_0x39fdb6('0x1')]),db[_0x39fdb6('0x0')]['findOne'](_0x3e8b2a)[_0x39fdb6('0x4e')](handleEntityNotFound(_0x4e3b9e,null))[_0x39fdb6('0x4e')](respondWithResult(_0x4e3b9e,null))[_0x39fdb6('0x13')](handleError(_0x4e3b9e,null));},exports['create']=function(_0x5ca7a4,_0xf09a2d){const _0x1e2075=_0x564018;return db[_0x1e2075('0x0')][_0x1e2075('0x41')](_0x5ca7a4[_0x1e2075('0xe')],{})[_0x1e2075('0x4e')](respondWithResult(_0xf09a2d,0xc9))[_0x1e2075('0x13')](handleError(_0xf09a2d,null));},exports[_0x564018('0x4c')]=function(_0x2067e6,_0x42a4e3){const _0x505014=_0x564018;return _0x2067e6[_0x505014('0xe')]['id']&&delete _0x2067e6['body']['id'],db[_0x505014('0x0')]['findOne']({'where':{'id':_0x2067e6[_0x505014('0x58')]['id']}})[_0x505014('0x4e')](handleEntityNotFound(_0x42a4e3,null))[_0x505014('0x4e')](saveUpdates(_0x2067e6[_0x505014('0xe')],null))[_0x505014('0x4e')](respondWithResult(_0x42a4e3,null))[_0x505014('0x13')](handleError(_0x42a4e3,null));},exports['destroy']=function(_0x482180,_0x37aa69){const _0x4f7977=_0x564018;return db[_0x4f7977('0x0')]['findOne']({'where':{'id':_0x482180[_0x4f7977('0x58')]['id']}})[_0x4f7977('0x4e')](handleEntityNotFound(_0x37aa69,null))['then'](removeEntity(_0x37aa69,null))[_0x4f7977('0x13')](handleError(_0x37aa69,null));},exports['getConfigurations']=function(_0x5ae9c5,_0xcfb162){const _0x1ba164=_0x564018;let _0xedf4ff={};const _0x37938e={};let _0x1bf0c8,_0x149491;return db[_0x1ba164('0x0')][_0x1ba164('0x3f')]({'where':{'id':_0x5ae9c5[_0x1ba164('0x58')]['id']}})[_0x1ba164('0x4e')](handleEntityNotFound(_0xcfb162,null))[_0x1ba164('0x4e')](function(_0x4d367b){const _0x120ad4=_0x1ba164;if(_0x4d367b)return _0x1bf0c8=_0x4d367b,_0x37938e['model']=_[_0x120ad4('0x50')](db[_0x120ad4('0x4d')][_0x120ad4('0x26')]),_0x37938e[_0x120ad4('0x18')]=_[_0x120ad4('0x50')](_0x5ae9c5['query']),_0x37938e[_0x120ad4('0x8')]=_[_0x120ad4('0x2a')](_0x37938e['model'],_0x37938e[_0x120ad4('0x18')]),_0xedf4ff[_0x120ad4('0x2c')]=_[_0x120ad4('0x2a')](_0x37938e[_0x120ad4('0x27')],qs[_0x120ad4('0x47')](_0x5ae9c5[_0x120ad4('0x18')][_0x120ad4('0x47')])),_0xedf4ff[_0x120ad4('0x2c')]=_0xedf4ff[_0x120ad4('0x2c')][_0x120ad4('0x2e')]?_0xedf4ff['attributes']:_0x37938e[_0x120ad4('0x27')],_0xedf4ff[_0x120ad4('0x54')]=qs[_0x120ad4('0x4b')](_0x5ae9c5[_0x120ad4('0x18')]['sort']),_0xedf4ff[_0x120ad4('0x46')]=qs[_0x120ad4('0x8')](_['pick'](_0x5ae9c5[_0x120ad4('0x18')],_0x37938e[_0x120ad4('0x8')])),_0x5ae9c5[_0x120ad4('0x18')]['filter']&&(_0xedf4ff[_0x120ad4('0x46')]=_['merge'](_0xedf4ff[_0x120ad4('0x46')],{[Op['or']]:_[_0x120ad4('0x16')](_0xedf4ff['attributes'],function(_0x56af0f){const _0x444f01=_0x120ad4,_0x186a73={};return _0x186a73[_0x56af0f]={[Op['like']]:'%'+_0x5ae9c5[_0x444f01('0x18')]['filter']+'%'},_0x186a73;})})),_0xedf4ff=_[_0x120ad4('0x5a')]({},_0xedf4ff,_0x5ae9c5[_0x120ad4('0x1')]),_0x1bf0c8['getConfigurations'](_0xedf4ff);})['then'](function(_0x105871){const _0x306720=_0x1ba164;if(_0x105871)return _0x149491=_0x105871[_0x306720('0x2e')],typeof _0x5ae9c5[_0x306720('0x18')][_0x306720('0x25')]==='undefined'&&(_0xedf4ff['limit']=qs['limit'](_0x5ae9c5['query'][_0x306720('0x40')]),_0xedf4ff['offset']=qs[_0x306720('0x14')](_0x5ae9c5[_0x306720('0x18')]['offset'])),_0x1bf0c8['getConfigurations'](_0xedf4ff);})['then'](function(_0x296962){if(_0x296962)return _0x296962?{'count':_0x149491,'rows':_0x296962}:null;})[_0x1ba164('0x4e')](respondWithResult(_0xcfb162,null))[_0x1ba164('0x13')](handleError(_0xcfb162,null));},exports['addConfiguration']=function(_0x138771,_0x547d74){const _0x35aeea=_0x564018;return _0x138771[_0x35aeea('0xe')]['id']&&delete _0x138771[_0x35aeea('0xe')]['id'],db['ZendeskAccount'][_0x35aeea('0x3f')]({'where':{'id':_0x138771[_0x35aeea('0x58')]['id']}})['then'](handleEntityNotFound(_0x547d74,null))['then'](function(_0x15eb42){const _0x2360d8=_0x35aeea;if(_0x15eb42)return _0x138771[_0x2360d8('0xe')][_0x2360d8('0x15')]=_0x15eb42['id'],_0x138771[_0x2360d8('0xe')][_0x2360d8('0x1f')]=integrations['getSubjects'](_0x138771[_0x2360d8('0xe')][_0x2360d8('0x55')],_0x138771[_0x2360d8('0xe')]['type']),_0x138771[_0x2360d8('0xe')][_0x2360d8('0x33')]=integrations[_0x2360d8('0x5')](_0x138771[_0x2360d8('0xe')][_0x2360d8('0x55')],_0x138771[_0x2360d8('0xe')]['type']),db[_0x2360d8('0x4d')]['create'](_0x138771[_0x2360d8('0xe')],{'include':[{'model':db['ZendeskField'],'as':_0x2360d8('0x1f')},{'model':db[_0x2360d8('0x23')],'as':'Descriptions'}]});return null;})[_0x35aeea('0x4e')](respondWithResult(_0x547d74,null))[_0x35aeea('0x13')](handleError(_0x547d74,null));},exports[_0x564018('0x31')]=function(_0xb919e4,_0x346057){const _0x56a08c=_0x564018;let _0x1702ad='';return db['ZendeskAccount'][_0x56a08c('0x3f')]({'where':{'id':_0xb919e4['params']['id']},'attributes':['id',_0x56a08c('0x20'),'password','token',_0x56a08c('0x4f'),_0x56a08c('0xa')]})[_0x56a08c('0x4e')](handleEntityNotFound(_0x346057,null))[_0x56a08c('0x4e')](function(_0xc8ebe1){const _0x16a6ee=_0x56a08c;if(_0xc8ebe1){_0x1702ad=_0xc8ebe1[_0x16a6ee('0xa')];const _0x2619e1=_0x1702ad[_0x16a6ee('0x19')](-0x1);_0x2619e1==='/'&&(_0x1702ad=_0x1702ad[_0x16a6ee('0x34')](0x0,_0x1702ad[_0x16a6ee('0x12')](_0x2619e1)));const _0x5dc7da={'method':_0x16a6ee('0x4'),'uri':util[_0x16a6ee('0x3a')](_0x16a6ee('0x5b'),_0x1702ad,_0x16a6ee('0x22')),'json':!![]};switch(_0xc8ebe1[_0x16a6ee('0x4f')]){case _0x16a6ee('0x51'):_0x5dc7da['headers']={'Authorization':util[_0x16a6ee('0x3a')]('Basic\x20%s',Buffer['from'](util[_0x16a6ee('0x3a')](_0x16a6ee('0x28'),_0xc8ebe1[_0x16a6ee('0x20')],_0xc8ebe1[_0x16a6ee('0x51')]))[_0x16a6ee('0xc')](_0x16a6ee('0x3c')))};break;case _0x16a6ee('0x1d'):_0x5dc7da['headers']={'Authorization':util[_0x16a6ee('0x3a')](_0x16a6ee('0xf'),Buffer['from'](util['format'](_0x16a6ee('0x2b'),_0xc8ebe1[_0x16a6ee('0x20')],_0xc8ebe1[_0x16a6ee('0x1d')]))[_0x16a6ee('0xc')]('base64'))};break;default:throw new db[(_0x16a6ee('0x30'))]['ValidationError'](_0x16a6ee('0x56'));}return rp(_0x5dc7da);}})[_0x56a08c('0x4e')](function(_0x42383b){const _0xe34623=_0x56a08c;if(_0x42383b){const _0x233179=['subject',_0xe34623('0x9'),_0xe34623('0x39'),_0xe34623('0x1e')];return _['remove'](_0x42383b[_0xe34623('0x22')],function(_0x158f79){const _0x3afc54=_0xe34623;return _0x233179['includes'](_0x158f79[_0x3afc54('0x3e')]);}),{'count':_0x42383b[_0xe34623('0x22')][_0xe34623('0x2e')],'rows':_[_0xe34623('0x16')](_0x42383b[_0xe34623('0x22')],function(_0x5b31e0){const _0x12d9f3=_0xe34623;return{'id':_0x5b31e0['id'],'name':_0x5b31e0[_0x12d9f3('0x59')]>0x7?_0x5b31e0[_0x12d9f3('0x17')]:_0x5b31e0[_0x12d9f3('0x3e')],'custom':_0x5b31e0[_0x12d9f3('0x59')]>0x7?!![]:![],'options':_0x5b31e0[_0x12d9f3('0x53')]?_0x5b31e0[_0x12d9f3('0x53')]:_0x5b31e0[_0x12d9f3('0x6')]?_0x5b31e0[_0x12d9f3('0x6')]:[]};})};}})[_0x56a08c('0x4e')](respondWithResult(_0x346057,null))[_0x56a08c('0x13')](function(_0x20d978){const _0x1a1a68=_0x56a08c;let _0x2c5f2f=_0xb919e4[_0x1a1a68('0x18')][_0x1a1a68('0x38')]?0x1f4:_0x20d978[_0x1a1a68('0x2f')]||0x1f4;logger[_0x1a1a68('0x44')](_0x1a1a68('0x45'),_0x1a1a68('0x31'),_0x2c5f2f,JSON[_0x1a1a68('0xb')](_0x20d978)),delete _0x20d978[_0x1a1a68('0x3d')],_0x2c5f2f===0x191&&(_0x2c5f2f=0x190),_0x346057[_0x1a1a68('0x49')](_0x2c5f2f)[_0x1a1a68('0x57')](_0xb919e4[_0x1a1a68('0x18')][_0x1a1a68('0x38')]?{'message':_0x1a1a68('0x2'),'statusCode':_0x20d978[_0x1a1a68('0x2f')]}:_0x20d978);});}; \ No newline at end of file +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 diff --git a/server/api/intZendeskAccount/intZendeskAccount.model.js b/server/api/intZendeskAccount/intZendeskAccount.model.js index 2050266..dc67ef3 100644 --- a/server/api/intZendeskAccount/intZendeskAccount.model.js +++ b/server/api/intZendeskAccount/intZendeskAccount.model.js @@ -1 +1 @@ -const a334_0x3f21=['ZendeskAccount','exports','./intZendeskAccount.attributes','define','int_zendesk_accounts'];(function(_0x241192,_0x3f21e9){const _0x3c6241=function(_0xbc14b3){while(--_0xbc14b3){_0x241192['push'](_0x241192['shift']());}};_0x3c6241(++_0x3f21e9);}(a334_0x3f21,0xcc));const a334_0x3c62=function(_0x241192,_0x3f21e9){_0x241192=_0x241192-0x0;let _0x3c6241=a334_0x3f21[_0x241192];return _0x3c6241;};const _0x253664=a334_0x3c62;'use strict';const attributes=require(_0x253664('0x3'));module[_0x253664('0x2')]=function(_0xbc14b3){const _0x664c8e=_0x253664,_0xc85fdd=_0xbc14b3[_0x664c8e('0x4')](_0x664c8e('0x1'),attributes,{'tableName':_0x664c8e('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xc85fdd;}; \ No newline at end of file +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 diff --git a/server/api/intZendeskAccount/intZendeskAccount.rpc.js b/server/api/intZendeskAccount/intZendeskAccount.rpc.js index e602a5f..05a6aa8 100644 --- a/server/api/intZendeskAccount/intZendeskAccount.rpc.js +++ b/server/api/intZendeskAccount/intZendeskAccount.rpc.js @@ -1 +1 @@ -const a335_0x170a=['catch','map','findOne','then','../../config/logger','raw','../../mysqldb','stringify','info','message','findAll','where','GetZendeskAccount','include','attributes','debug','options','ShowZendeskAccount','model','ZendeskAccount','lodash','error','rpc'];(function(_0x1e24d4,_0x170a32){const _0x2381e8=function(_0x1b4bbe){while(--_0x1b4bbe){_0x1e24d4['push'](_0x1e24d4['shift']());}};_0x2381e8(++_0x170a32);}(a335_0x170a,0x186));const a335_0x2381=function(_0x1e24d4,_0x170a32){_0x1e24d4=_0x1e24d4-0x0;let _0x2381e8=a335_0x170a[_0x1e24d4];return _0x2381e8;};const _0x19105c=a335_0x2381;'use strict';const _=require(_0x19105c('0x15')),db=require(_0x19105c('0x7'))['db'],logger=require(_0x19105c('0x5'))(_0x19105c('0x0'));exports[_0x19105c('0xd')]=function(_0x1b4bbe){const _0xaf243a=this;return new Promise(function(_0x27033e,_0x8ac3ba){const _0x1bfb41=a335_0x2381;return db[_0x1bfb41('0x14')][_0x1bfb41('0xb')]({'raw':_0x1b4bbe[_0x1bfb41('0x11')]?_0x1b4bbe[_0x1bfb41('0x11')][_0x1bfb41('0x6')]===undefined?!![]:![]:!![],'where':_0x1b4bbe['options']?_0x1b4bbe[_0x1bfb41('0x11')]['where']||null:null,'attributes':_0x1b4bbe[_0x1bfb41('0x11')]?_0x1b4bbe[_0x1bfb41('0x11')][_0x1bfb41('0xf')]||null:null,'limit':_0x1b4bbe['options']?_0x1b4bbe[_0x1bfb41('0x11')]['limit']||null:null,'include':_0x1b4bbe['options']?_0x1b4bbe[_0x1bfb41('0x11')][_0x1bfb41('0xe')]?_[_0x1bfb41('0x2')](_0x1b4bbe[_0x1bfb41('0x11')][_0x1bfb41('0xe')],function(_0x5cf0ca){const _0x4a0df2=_0x1bfb41;return{'model':db[_0x5cf0ca[_0x4a0df2('0x13')]],'as':_0x5cf0ca['as'],'attributes':_0x5cf0ca[_0x4a0df2('0xf')],'include':_0x5cf0ca[_0x4a0df2('0xe')]?_[_0x4a0df2('0x2')](_0x5cf0ca['include'],function(_0x92fd0f){const _0x17a0e4=_0x4a0df2;return{'model':db[_0x92fd0f[_0x17a0e4('0x13')]],'as':_0x92fd0f['as'],'attributes':_0x92fd0f[_0x17a0e4('0xf')],'include':_0x92fd0f[_0x17a0e4('0xe')]?_['map'](_0x92fd0f[_0x17a0e4('0xe')],function(_0x349abc){const _0x7d8f24=_0x17a0e4;return{'model':db[_0x349abc[_0x7d8f24('0x13')]],'as':_0x349abc['as'],'attributes':_0x349abc[_0x7d8f24('0xf')]};}):[]};}):[]};}):[]:[]})[_0x1bfb41('0x4')](function(_0x15ffe7){const _0x351e26=_0x1bfb41;logger[_0x351e26('0x9')]('GetZendeskAccount',_0x1b4bbe),logger[_0x351e26('0x10')](_0x351e26('0xd'),_0x1b4bbe,JSON[_0x351e26('0x8')](_0x15ffe7)),_0x27033e(_0x15ffe7);})['catch'](function(_0x1df222){const _0x49355c=_0x1bfb41;logger[_0x49355c('0x16')](_0x49355c('0xd'),_0x1df222[_0x49355c('0xa')],_0x1b4bbe),_0x8ac3ba(_0xaf243a[_0x49355c('0x16')](0x1f4,_0x1df222[_0x49355c('0xa')]));});});},exports[_0x19105c('0x12')]=function(_0x372f0c){const _0x590795=this;return new Promise(function(_0x13afa7,_0x59b4da){const _0x461b3c=a335_0x2381;return db[_0x461b3c('0x14')][_0x461b3c('0x3')]({'raw':_0x372f0c[_0x461b3c('0x11')]?_0x372f0c[_0x461b3c('0x11')]['raw']===undefined?!![]:![]:!![],'where':_0x372f0c['options']?_0x372f0c['options'][_0x461b3c('0xc')]||null:null,'attributes':_0x372f0c['options']?_0x372f0c[_0x461b3c('0x11')][_0x461b3c('0xf')]||null:null,'include':_0x372f0c['options']?_0x372f0c[_0x461b3c('0x11')][_0x461b3c('0xe')]?_[_0x461b3c('0x2')](_0x372f0c[_0x461b3c('0x11')][_0x461b3c('0xe')],function(_0x5220e7){const _0x5901c6=_0x461b3c;return{'model':db[_0x5220e7['model']],'as':_0x5220e7['as'],'attributes':_0x5220e7['attributes'],'include':_0x5220e7[_0x5901c6('0xe')]?_[_0x5901c6('0x2')](_0x5220e7[_0x5901c6('0xe')],function(_0x479348){const _0x5106ad=_0x5901c6;return{'model':db[_0x479348[_0x5106ad('0x13')]],'as':_0x479348['as'],'attributes':_0x479348['attributes'],'include':_0x479348[_0x5106ad('0xe')]?_[_0x5106ad('0x2')](_0x479348[_0x5106ad('0xe')],function(_0x555675){const _0x20215a=_0x5106ad;return{'model':db[_0x555675[_0x20215a('0x13')]],'as':_0x555675['as'],'attributes':_0x555675[_0x20215a('0xf')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x2cba2){const _0x29a311=_0x461b3c;logger[_0x29a311('0x9')]('ShowZendeskAccount',_0x372f0c),logger[_0x29a311('0x10')](_0x29a311('0x12'),_0x372f0c,JSON['stringify'](_0x2cba2)),_0x13afa7(_0x2cba2);})[_0x461b3c('0x1')](function(_0x516695){const _0x21dd01=_0x461b3c;logger[_0x21dd01('0x16')](_0x21dd01('0x12'),_0x516695[_0x21dd01('0xa')],_0x372f0c),_0x59b4da(_0x590795[_0x21dd01('0x16')](0x1f4,_0x516695[_0x21dd01('0xa')]));});});}; \ No newline at end of file +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 diff --git a/server/api/intZendeskConfiguration/index.js b/server/api/intZendeskConfiguration/index.js index 2e23b25..c13044d 100644 --- a/server/api/intZendeskConfiguration/index.js +++ b/server/api/intZendeskConfiguration/index.js @@ -1 +1 @@ -const a336_0x48a1=['delete','../../components/auth/service','isAuthenticated','getFields','/:id/tags','post','Router','/:id','getTags','getDescriptions','getSubjects','destroy','/:id/fields','put','setTags','show','get','create','/:id/descriptions','/:id/subjects','express','exports','./intZendeskConfiguration.controller'];(function(_0x1b6e32,_0x48a163){const _0x33f898=function(_0x41d27a){while(--_0x41d27a){_0x1b6e32['push'](_0x1b6e32['shift']());}};_0x33f898(++_0x48a163);}(a336_0x48a1,0x135));const a336_0x33f8=function(_0x1b6e32,_0x48a163){_0x1b6e32=_0x1b6e32-0x0;let _0x33f898=a336_0x48a1[_0x1b6e32];return _0x33f898;};const _0x2b8163=a336_0x33f8;'use strict';const express=require(_0x2b8163('0xa')),router=express[_0x2b8163('0x13')](),auth=require(_0x2b8163('0xe')),controller=require(_0x2b8163('0xc'));router[_0x2b8163('0x6')]('/',auth[_0x2b8163('0xf')](),controller['index']),router['get'](_0x2b8163('0x14'),auth[_0x2b8163('0xf')](),controller[_0x2b8163('0x5')]),router[_0x2b8163('0x6')](_0x2b8163('0x2'),auth[_0x2b8163('0xf')](),controller[_0x2b8163('0x10')]),router['get'](_0x2b8163('0x9'),auth[_0x2b8163('0xf')](),controller[_0x2b8163('0x0')]),router[_0x2b8163('0x6')](_0x2b8163('0x8'),auth['isAuthenticated'](),controller[_0x2b8163('0x16')]),router[_0x2b8163('0x6')](_0x2b8163('0x11'),auth[_0x2b8163('0xf')](),controller[_0x2b8163('0x15')]),router['post']('/',auth['isAuthenticated'](),controller[_0x2b8163('0x7')]),router[_0x2b8163('0x12')](_0x2b8163('0x11'),auth[_0x2b8163('0xf')](),controller[_0x2b8163('0x4')]),router[_0x2b8163('0x3')](_0x2b8163('0x14'),auth[_0x2b8163('0xf')](),controller['update']),router[_0x2b8163('0xd')](_0x2b8163('0x14'),auth[_0x2b8163('0xf')](),controller[_0x2b8163('0x1')]),module[_0x2b8163('0xb')]=router; \ No newline at end of file +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 diff --git a/server/api/intZendeskConfiguration/intZendeskConfiguration.attributes.js b/server/api/intZendeskConfiguration/intZendeskConfiguration.attributes.js index a614983..33b416a 100644 --- a/server/api/intZendeskConfiguration/intZendeskConfiguration.attributes.js +++ b/server/api/intZendeskConfiguration/intZendeskConfiguration.attributes.js @@ -1 +1 @@ -const a337_0x3481=['sequelize','exports','STRING'];(function(_0x452c1b,_0x34813f){const _0x17ede7=function(_0x5a22ee){while(--_0x5a22ee){_0x452c1b['push'](_0x452c1b['shift']());}};_0x17ede7(++_0x34813f);}(a337_0x3481,0x18e));const a337_0x17ed=function(_0x452c1b,_0x34813f){_0x452c1b=_0x452c1b-0x0;let _0x17ede7=a337_0x3481[_0x452c1b];return _0x17ede7;};const _0x3aef0e=a337_0x17ed;'use strict';const Sequelize=require(_0x3aef0e('0x1'));module[_0x3aef0e('0x2')]={'name':{'type':Sequelize[_0x3aef0e('0x0')]},'description':{'type':Sequelize[_0x3aef0e('0x0')]}}; \ No newline at end of file +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 diff --git a/server/api/intZendeskConfiguration/intZendeskConfiguration.controller.js b/server/api/intZendeskConfiguration/intZendeskConfiguration.controller.js index 3ae7d6a..0a84845 100644 --- a/server/api/intZendeskConfiguration/intZendeskConfiguration.controller.js +++ b/server/api/intZendeskConfiguration/intZendeskConfiguration.controller.js @@ -1 +1 @@ -const a338_0x370d=['fields','update','api','params','getTags','getSubjects','intersection','catch','keys','nolimit','merge','findOne','rawAttributes','sort','filter','undefined','../../config/logger','findAll','body','stack','send','getDescriptions','lodash','length','../../components/parsers/qs','status','key','create','include','fieldName','includeAll','filters','json','offset','Content-Range','pick','name','index','options','map','ZendeskField','model','getFields','destroy','setTags','count','sequelize','order','limit','Tag','ZendeskConfiguration','like','where','query','then','type','end','attributes'];(function(_0x4dd985,_0x370d03){const _0x370beb=function(_0x359215){while(--_0x359215){_0x4dd985['push'](_0x4dd985['shift']());}};_0x370beb(++_0x370d03);}(a338_0x370d,0x14b));const a338_0x370b=function(_0x4dd985,_0x370d03){_0x4dd985=_0x4dd985-0x0;let _0x370beb=a338_0x370d[_0x4dd985];return _0x370beb;};const _0x3b271b=a338_0x370b;'use strict';const _=require(_0x3b271b('0x27')),qs=require(_0x3b271b('0x29')),logger=require(_0x3b271b('0x21'))(_0x3b271b('0x13')),db=require('../../mysqldb')['db'],{Op}=require(_0x3b271b('0x5'));function respondWithResult(_0x359215,_0x43f1a4){return _0x43f1a4=_0x43f1a4||0xc8,function(_0x367910){const _0x29fbfe=a338_0x370b;if(_0x367910)return _0x359215['status'](_0x43f1a4)[_0x29fbfe('0x31')](_0x367910);};}function respondWithFilteredResult(_0x24237c,_0x444652){return function(_0xa9a64b){const _0x44bd7e=a338_0x370b;if(_0xa9a64b){const _0x332285=_0xa9a64b[_0x44bd7e('0x4')],_0xcd2fba=_0x444652[_0x44bd7e('0x32')];let _0x245dfa=_0x444652[_0x44bd7e('0x32')]+_0x444652['limit'],_0x3259a1;return _0x245dfa>=_0x332285?(_0x245dfa=_0x332285,_0x3259a1=0xc8):_0x3259a1=0xce,_0x24237c[_0x44bd7e('0x2a')](_0x3259a1),_0x24237c['set'](_0x44bd7e('0x33'),_0xcd2fba+'-'+_0x245dfa+'/'+_0x332285)['json'](_0xa9a64b);}return null;};}function saveUpdates(_0x1f7c7b){return function(_0x421c76){const _0xaefe47=a338_0x370b;if(_0x421c76)return _0x421c76['update'](_0x1f7c7b)[_0xaefe47('0xd')](function(_0x4a42cb){return _0x4a42cb;});return null;};}function removeEntity(_0x5719db){return function(_0x4a144c){const _0x4e8a4c=a338_0x370b;if(_0x4a144c)return _0x4a144c[_0x4e8a4c('0x2')]()[_0x4e8a4c('0xd')](function(){const _0x43019d=_0x4e8a4c;_0x5719db[_0x43019d('0x2a')](0xcc)[_0x43019d('0xf')]();});};}function handleEntityNotFound(_0x5e6c8e){return function(_0x262ab6){return!_0x262ab6&&_0x5e6c8e['sendStatus'](0x194),_0x262ab6;};}function handleError(_0x5e6f2d,_0x5d0519){return _0x5d0519=_0x5d0519||0x1f4,function(_0x383f3b){const _0x505a3e=a338_0x370b;logger['error'](_0x383f3b[_0x505a3e('0x24')]),_0x383f3b['name']&&delete _0x383f3b[_0x505a3e('0x35')],_0x5e6f2d[_0x505a3e('0x2a')](_0x5d0519)[_0x505a3e('0x25')](_0x383f3b);};}exports[_0x3b271b('0x36')]=function(_0x432f83,_0x4a3131){const _0x414c88=_0x3b271b;let _0xed837b={};const _0x139778={},_0x126bde={'count':0x0,'rows':[]},_0x49a2ae=_['map'](db['ZendeskConfiguration'][_0x414c88('0x1d')],function(_0x36ac37){const _0x2f16f7=_0x414c88;return{'name':_0x36ac37[_0x2f16f7('0x2e')],'type':_0x36ac37['type'][_0x2f16f7('0x2b')]};});_0x139778[_0x414c88('0x0')]=_[_0x414c88('0x38')](_0x49a2ae,'name'),_0x139778[_0x414c88('0xc')]=_[_0x414c88('0x19')](_0x432f83[_0x414c88('0xc')]),_0x139778['filters']=_['intersection'](_0x139778['model'],_0x139778[_0x414c88('0xc')]),_0xed837b[_0x414c88('0x10')]=_['intersection'](_0x139778[_0x414c88('0x0')],qs['fields'](_0x432f83[_0x414c88('0xc')][_0x414c88('0x11')])),_0xed837b[_0x414c88('0x10')]=_0xed837b[_0x414c88('0x10')][_0x414c88('0x28')]?_0xed837b[_0x414c88('0x10')]:_0x139778['model'];typeof _0x432f83['query'][_0x414c88('0x1a')]===_0x414c88('0x20')&&(_0xed837b[_0x414c88('0x7')]=qs[_0x414c88('0x7')](_0x432f83[_0x414c88('0xc')]['limit']),_0xed837b[_0x414c88('0x32')]=qs[_0x414c88('0x32')](_0x432f83[_0x414c88('0xc')][_0x414c88('0x32')]));_0xed837b['order']=qs[_0x414c88('0x1e')](_0x432f83[_0x414c88('0xc')][_0x414c88('0x1e')]),_0xed837b['where']=qs[_0x414c88('0x30')](_[_0x414c88('0x34')](_0x432f83[_0x414c88('0xc')],_0x139778[_0x414c88('0x30')]),_0x49a2ae);_0x432f83[_0x414c88('0xc')][_0x414c88('0x1f')]&&(_0xed837b[_0x414c88('0xb')]=_[_0x414c88('0x1b')](_0xed837b[_0x414c88('0xb')],{[Op['or']]:_['map'](_0x49a2ae,function(_0x3ce537){const _0x4de0e8=_0x414c88;if(_0x3ce537[_0x4de0e8('0xe')]!=='VIRTUAL'){const _0x482430={};return _0x482430[_0x3ce537[_0x4de0e8('0x35')]]={[Op[_0x4de0e8('0xa')]]:'%'+_0x432f83[_0x4de0e8('0xc')][_0x4de0e8('0x1f')]+'%'},_0x482430;}})}));_0xed837b=_[_0x414c88('0x1b')]({},_0xed837b,_0x432f83[_0x414c88('0x37')]);const _0x261a1c={'where':_0xed837b[_0x414c88('0xb')]};return db[_0x414c88('0x9')][_0x414c88('0x4')](_0x261a1c)[_0x414c88('0xd')](function(_0x21d594){const _0x37cb08=_0x414c88;return _0x126bde[_0x37cb08('0x4')]=_0x21d594,_0x432f83[_0x37cb08('0xc')][_0x37cb08('0x2f')]&&(_0xed837b[_0x37cb08('0x2d')]=[{'all':!![]}]),db[_0x37cb08('0x9')][_0x37cb08('0x22')](_0xed837b);})['then'](function(_0x238662){return _0x126bde['rows']=_0x238662,_0x126bde;})[_0x414c88('0xd')](respondWithFilteredResult(_0x4a3131,_0xed837b))[_0x414c88('0x18')](handleError(_0x4a3131,null));},exports['show']=function(_0x3884cc,_0x21350b){const _0x18400f=_0x3b271b;let _0x1bcdba={'raw':![],'where':{'id':_0x3884cc['params']['id']}};const _0x2c0482={};return _0x2c0482[_0x18400f('0x0')]=_[_0x18400f('0x19')](db[_0x18400f('0x9')]['rawAttributes']),_0x2c0482[_0x18400f('0xc')]=_[_0x18400f('0x19')](_0x3884cc['query']),_0x2c0482[_0x18400f('0x30')]=_[_0x18400f('0x17')](_0x2c0482['model'],_0x2c0482[_0x18400f('0xc')]),_0x1bcdba['attributes']=_['intersection'](_0x2c0482[_0x18400f('0x0')],qs['fields'](_0x3884cc[_0x18400f('0xc')]['fields'])),_0x1bcdba[_0x18400f('0x10')]=_0x1bcdba[_0x18400f('0x10')]['length']?_0x1bcdba[_0x18400f('0x10')]:_0x2c0482[_0x18400f('0x0')],_0x3884cc[_0x18400f('0xc')]['includeAll']&&(_0x1bcdba[_0x18400f('0x2d')]=[{'all':!![]}]),_0x1bcdba=_[_0x18400f('0x1b')]({},_0x1bcdba,_0x3884cc['options']),db[_0x18400f('0x9')][_0x18400f('0x1c')](_0x1bcdba)[_0x18400f('0xd')](handleEntityNotFound(_0x21350b,null))[_0x18400f('0xd')](respondWithResult(_0x21350b,null))[_0x18400f('0x18')](handleError(_0x21350b,null));},exports[_0x3b271b('0x2c')]=function(_0xf43dea,_0x233f6a){const _0x2b06d0=_0x3b271b;return db[_0x2b06d0('0x9')][_0x2b06d0('0x2c')](_0xf43dea[_0x2b06d0('0x23')],{})[_0x2b06d0('0xd')](respondWithResult(_0x233f6a,0xc9))[_0x2b06d0('0x18')](handleError(_0x233f6a,null));},exports[_0x3b271b('0x12')]=function(_0x51baaf,_0x4fc191){const _0x4dad6d=_0x3b271b;return _0x51baaf[_0x4dad6d('0x23')]['id']&&delete _0x51baaf[_0x4dad6d('0x23')]['id'],db[_0x4dad6d('0x9')]['findOne']({'where':{'id':_0x51baaf[_0x4dad6d('0x14')]['id']}})[_0x4dad6d('0xd')](handleEntityNotFound(_0x4fc191,null))[_0x4dad6d('0xd')](saveUpdates(_0x51baaf['body'],null))[_0x4dad6d('0xd')](respondWithResult(_0x4fc191,null))['catch'](handleError(_0x4fc191,null));},exports[_0x3b271b('0x2')]=function(_0x253dbf,_0x30a24a){const _0x3e0ea6=_0x3b271b;return db[_0x3e0ea6('0x9')][_0x3e0ea6('0x1c')]({'where':{'id':_0x253dbf[_0x3e0ea6('0x14')]['id']}})['then'](handleEntityNotFound(_0x30a24a,null))['then'](removeEntity(_0x30a24a,null))[_0x3e0ea6('0x18')](handleError(_0x30a24a,null));},exports[_0x3b271b('0x1')]=function(_0x3b50c1,_0x3268c3){const _0x56d50a=_0x3b271b;let _0xf25a3a={};const _0x270985={};let _0x366aa5,_0x323550;return db['ZendeskConfiguration'][_0x56d50a('0x1c')]({'where':{'id':_0x3b50c1[_0x56d50a('0x14')]['id']}})['then'](handleEntityNotFound(_0x3268c3,null))[_0x56d50a('0xd')](function(_0x23ea67){const _0x4d11f2=_0x56d50a;if(_0x23ea67)return _0x366aa5=_0x23ea67,_0x270985['model']=_[_0x4d11f2('0x19')](db[_0x4d11f2('0x39')][_0x4d11f2('0x1d')]),_0x270985[_0x4d11f2('0xc')]=_['keys'](_0x3b50c1[_0x4d11f2('0xc')]),_0x270985[_0x4d11f2('0x30')]=_[_0x4d11f2('0x17')](_0x270985[_0x4d11f2('0x0')],_0x270985['query']),_0xf25a3a[_0x4d11f2('0x10')]=_[_0x4d11f2('0x17')](_0x270985[_0x4d11f2('0x0')],qs[_0x4d11f2('0x11')](_0x3b50c1[_0x4d11f2('0xc')][_0x4d11f2('0x11')])),_0xf25a3a[_0x4d11f2('0x10')]=_0xf25a3a[_0x4d11f2('0x10')]['length']?_0xf25a3a[_0x4d11f2('0x10')]:_0x270985[_0x4d11f2('0x0')],_0xf25a3a[_0x4d11f2('0x6')]=qs['sort'](_0x3b50c1[_0x4d11f2('0xc')]['sort']),_0xf25a3a[_0x4d11f2('0xb')]=qs['filters'](_['pick'](_0x3b50c1[_0x4d11f2('0xc')],_0x270985['filters'])),_0x3b50c1['query']['filter']&&(_0xf25a3a['where']=_[_0x4d11f2('0x1b')](_0xf25a3a['where'],{[Op['or']]:_[_0x4d11f2('0x38')](_0xf25a3a[_0x4d11f2('0x10')],function(_0x1fa37d){const _0x30b145=_0x4d11f2,_0x5e5798={};return _0x5e5798[_0x1fa37d]={[Op[_0x30b145('0xa')]]:'%'+_0x3b50c1[_0x30b145('0xc')][_0x30b145('0x1f')]+'%'},_0x5e5798;})})),_0xf25a3a=_[_0x4d11f2('0x1b')]({},_0xf25a3a,_0x3b50c1[_0x4d11f2('0x37')]),_0x366aa5['getFields'](_0xf25a3a);})[_0x56d50a('0xd')](function(_0x2afc3b){const _0x509d1c=_0x56d50a;if(_0x2afc3b)return _0x323550=_0x2afc3b[_0x509d1c('0x28')],typeof _0x3b50c1[_0x509d1c('0xc')]['nolimit']===_0x509d1c('0x20')&&(_0xf25a3a[_0x509d1c('0x7')]=qs[_0x509d1c('0x7')](_0x3b50c1[_0x509d1c('0xc')][_0x509d1c('0x7')]),_0xf25a3a[_0x509d1c('0x32')]=qs['offset'](_0x3b50c1[_0x509d1c('0xc')][_0x509d1c('0x32')])),_0x366aa5[_0x509d1c('0x1')](_0xf25a3a);})[_0x56d50a('0xd')](function(_0x586b33){if(_0x586b33)return _0x586b33?{'count':_0x323550,'rows':_0x586b33}:null;})[_0x56d50a('0xd')](respondWithResult(_0x3268c3,null))['catch'](handleError(_0x3268c3,null));},exports[_0x3b271b('0x16')]=function(_0xaf7ad0,_0x2f57fa){const _0x85dede=_0x3b271b;let _0x49fcad={};const _0x271002={};let _0x2c0014,_0x11fa35;return db[_0x85dede('0x9')][_0x85dede('0x1c')]({'where':{'id':_0xaf7ad0['params']['id']}})['then'](handleEntityNotFound(_0x2f57fa,null))[_0x85dede('0xd')](function(_0x433976){const _0x42e860=_0x85dede;if(_0x433976)return _0x2c0014=_0x433976,_0x271002[_0x42e860('0x0')]=_['keys'](db[_0x42e860('0x39')][_0x42e860('0x1d')]),_0x271002[_0x42e860('0xc')]=_['keys'](_0xaf7ad0[_0x42e860('0xc')]),_0x271002['filters']=_[_0x42e860('0x17')](_0x271002[_0x42e860('0x0')],_0x271002[_0x42e860('0xc')]),_0x49fcad[_0x42e860('0x10')]=_[_0x42e860('0x17')](_0x271002[_0x42e860('0x0')],qs[_0x42e860('0x11')](_0xaf7ad0[_0x42e860('0xc')][_0x42e860('0x11')])),_0x49fcad[_0x42e860('0x10')]=_0x49fcad[_0x42e860('0x10')][_0x42e860('0x28')]?_0x49fcad['attributes']:_0x271002[_0x42e860('0x0')],_0x49fcad['order']=qs[_0x42e860('0x1e')](_0xaf7ad0[_0x42e860('0xc')][_0x42e860('0x1e')]),_0x49fcad[_0x42e860('0xb')]=qs[_0x42e860('0x30')](_[_0x42e860('0x34')](_0xaf7ad0[_0x42e860('0xc')],_0x271002[_0x42e860('0x30')])),_0xaf7ad0[_0x42e860('0xc')][_0x42e860('0x1f')]&&(_0x49fcad['where']=_['merge'](_0x49fcad[_0x42e860('0xb')],{[Op['or']]:_['map'](_0x49fcad[_0x42e860('0x10')],function(_0x450c29){const _0x13d2c3=_0x42e860,_0x1abebc={};return _0x1abebc[_0x450c29]={[Op[_0x13d2c3('0xa')]]:'%'+_0xaf7ad0[_0x13d2c3('0xc')][_0x13d2c3('0x1f')]+'%'},_0x1abebc;})})),_0x49fcad=_[_0x42e860('0x1b')]({},_0x49fcad,_0xaf7ad0[_0x42e860('0x37')]),_0x2c0014['getSubjects'](_0x49fcad);})[_0x85dede('0xd')](function(_0x25cb59){const _0x534722=_0x85dede;if(_0x25cb59)return _0x11fa35=_0x25cb59[_0x534722('0x28')],typeof _0xaf7ad0[_0x534722('0xc')]['nolimit']==='undefined'&&(_0x49fcad[_0x534722('0x7')]=qs['limit'](_0xaf7ad0[_0x534722('0xc')][_0x534722('0x7')]),_0x49fcad[_0x534722('0x32')]=qs['offset'](_0xaf7ad0[_0x534722('0xc')][_0x534722('0x32')])),_0x2c0014['getSubjects'](_0x49fcad);})['then'](function(_0x3d5cd5){if(_0x3d5cd5)return _0x3d5cd5?{'count':_0x11fa35,'rows':_0x3d5cd5}:null;})['then'](respondWithResult(_0x2f57fa,null))[_0x85dede('0x18')](handleError(_0x2f57fa,null));},exports[_0x3b271b('0x26')]=function(_0x59b269,_0x2608d9){const _0x3d16e6=_0x3b271b;let _0x1f5d81={};const _0x1522eb={};let _0x542b17,_0x239b03;return db[_0x3d16e6('0x9')][_0x3d16e6('0x1c')]({'where':{'id':_0x59b269[_0x3d16e6('0x14')]['id']}})['then'](handleEntityNotFound(_0x2608d9,null))[_0x3d16e6('0xd')](function(_0x208ca3){const _0x598a4b=_0x3d16e6;if(_0x208ca3)return _0x542b17=_0x208ca3,_0x1522eb[_0x598a4b('0x0')]=_[_0x598a4b('0x19')](db[_0x598a4b('0x39')][_0x598a4b('0x1d')]),_0x1522eb[_0x598a4b('0xc')]=_[_0x598a4b('0x19')](_0x59b269[_0x598a4b('0xc')]),_0x1522eb[_0x598a4b('0x30')]=_[_0x598a4b('0x17')](_0x1522eb['model'],_0x1522eb['query']),_0x1f5d81[_0x598a4b('0x10')]=_[_0x598a4b('0x17')](_0x1522eb[_0x598a4b('0x0')],qs['fields'](_0x59b269[_0x598a4b('0xc')][_0x598a4b('0x11')])),_0x1f5d81['attributes']=_0x1f5d81[_0x598a4b('0x10')][_0x598a4b('0x28')]?_0x1f5d81[_0x598a4b('0x10')]:_0x1522eb[_0x598a4b('0x0')],_0x1f5d81[_0x598a4b('0x6')]=qs['sort'](_0x59b269[_0x598a4b('0xc')]['sort']),_0x1f5d81['where']=qs['filters'](_['pick'](_0x59b269['query'],_0x1522eb[_0x598a4b('0x30')])),_0x59b269['query']['filter']&&(_0x1f5d81[_0x598a4b('0xb')]=_[_0x598a4b('0x1b')](_0x1f5d81['where'],{[Op['or']]:_[_0x598a4b('0x38')](_0x1f5d81[_0x598a4b('0x10')],function(_0x4e8b5c){const _0x2b62ca=_0x598a4b,_0x4bbbcf={};return _0x4bbbcf[_0x4e8b5c]={[Op[_0x2b62ca('0xa')]]:'%'+_0x59b269[_0x2b62ca('0xc')][_0x2b62ca('0x1f')]+'%'},_0x4bbbcf;})})),_0x1f5d81=_[_0x598a4b('0x1b')]({},_0x1f5d81,_0x59b269[_0x598a4b('0x37')]),_0x542b17[_0x598a4b('0x26')](_0x1f5d81);})[_0x3d16e6('0xd')](function(_0x13e8bf){const _0x5b2af5=_0x3d16e6;if(_0x13e8bf)return _0x239b03=_0x13e8bf['length'],typeof _0x59b269[_0x5b2af5('0xc')][_0x5b2af5('0x1a')]===_0x5b2af5('0x20')&&(_0x1f5d81[_0x5b2af5('0x7')]=qs['limit'](_0x59b269[_0x5b2af5('0xc')][_0x5b2af5('0x7')]),_0x1f5d81[_0x5b2af5('0x32')]=qs[_0x5b2af5('0x32')](_0x59b269['query']['offset'])),_0x542b17[_0x5b2af5('0x26')](_0x1f5d81);})[_0x3d16e6('0xd')](function(_0x53038d){if(_0x53038d)return _0x53038d?{'count':_0x239b03,'rows':_0x53038d}:null;})[_0x3d16e6('0xd')](respondWithResult(_0x2608d9,null))['catch'](handleError(_0x2608d9,null));},exports[_0x3b271b('0x15')]=function(_0x413ef8,_0x53d3a9){const _0x522a85=_0x3b271b;let _0x58906e={};const _0x2b8509={};let _0x2c767c,_0x4afc06;return db[_0x522a85('0x9')]['findOne']({'where':{'id':_0x413ef8['params']['id']}})[_0x522a85('0xd')](handleEntityNotFound(_0x53d3a9,null))[_0x522a85('0xd')](function(_0x59d72a){const _0x7feef=_0x522a85;if(_0x59d72a)return _0x2c767c=_0x59d72a,_0x2b8509[_0x7feef('0x0')]=_['keys'](db[_0x7feef('0x8')][_0x7feef('0x1d')]),_0x2b8509[_0x7feef('0xc')]=_[_0x7feef('0x19')](_0x413ef8[_0x7feef('0xc')]),_0x2b8509[_0x7feef('0x30')]=_[_0x7feef('0x17')](_0x2b8509[_0x7feef('0x0')],_0x2b8509[_0x7feef('0xc')]),_0x58906e[_0x7feef('0x10')]=_[_0x7feef('0x17')](_0x2b8509[_0x7feef('0x0')],qs['fields'](_0x413ef8[_0x7feef('0xc')]['fields'])),_0x58906e[_0x7feef('0x10')]=_0x58906e[_0x7feef('0x10')][_0x7feef('0x28')]?_0x58906e['attributes']:_0x2b8509[_0x7feef('0x0')],_0x58906e[_0x7feef('0x6')]=qs[_0x7feef('0x1e')](_0x413ef8[_0x7feef('0xc')]['sort']),_0x58906e[_0x7feef('0xb')]=qs[_0x7feef('0x30')](_[_0x7feef('0x34')](_0x413ef8[_0x7feef('0xc')],_0x2b8509[_0x7feef('0x30')])),_0x413ef8[_0x7feef('0xc')]['filter']&&(_0x58906e[_0x7feef('0xb')]=_['merge'](_0x58906e['where'],{[Op['or']]:_[_0x7feef('0x38')](_0x58906e[_0x7feef('0x10')],function(_0x5ae23a){const _0xa040a9=_0x7feef,_0x238111={};return _0x238111[_0x5ae23a]={[Op[_0xa040a9('0xa')]]:'%'+_0x413ef8[_0xa040a9('0xc')][_0xa040a9('0x1f')]+'%'},_0x238111;})})),_0x58906e=_[_0x7feef('0x1b')]({},_0x58906e,_0x413ef8[_0x7feef('0x37')]),_0x2c767c['getTags'](_0x58906e);})[_0x522a85('0xd')](function(_0x3a7062){const _0x3e10f4=_0x522a85;if(_0x3a7062)return _0x4afc06=_0x3a7062[_0x3e10f4('0x28')],typeof _0x413ef8['query'][_0x3e10f4('0x1a')]===_0x3e10f4('0x20')&&(_0x58906e[_0x3e10f4('0x7')]=qs['limit'](_0x413ef8[_0x3e10f4('0xc')][_0x3e10f4('0x7')]),_0x58906e[_0x3e10f4('0x32')]=qs[_0x3e10f4('0x32')](_0x413ef8[_0x3e10f4('0xc')][_0x3e10f4('0x32')])),_0x2c767c[_0x3e10f4('0x15')](_0x58906e);})[_0x522a85('0xd')](function(_0x1596e6){if(_0x1596e6)return _0x1596e6?{'count':_0x4afc06,'rows':_0x1596e6}:null;})[_0x522a85('0xd')](respondWithResult(_0x53d3a9,null))['catch'](handleError(_0x53d3a9,null));},exports[_0x3b271b('0x3')]=function(_0x1d6e91,_0x4a7c77){const _0xbfce54=_0x3b271b;return _0x1d6e91[_0xbfce54('0x23')]['id']&&delete _0x1d6e91[_0xbfce54('0x23')]['id'],db[_0xbfce54('0x9')][_0xbfce54('0x1c')]({'where':{'id':_0x1d6e91[_0xbfce54('0x14')]['id']}})[_0xbfce54('0xd')](handleEntityNotFound(_0x4a7c77,null))[_0xbfce54('0xd')](function(_0x499442){const _0x42b447=_0xbfce54;if(_0x499442)return _0x499442[_0x42b447('0x3')](_0x1d6e91[_0x42b447('0x23')]['ids']||[]);return null;})[_0xbfce54('0xd')](respondWithResult(_0x4a7c77,null))[_0xbfce54('0x18')](handleError(_0x4a7c77,null));}; \ No newline at end of file +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 diff --git a/server/api/intZendeskConfiguration/intZendeskConfiguration.model.js b/server/api/intZendeskConfiguration/intZendeskConfiguration.model.js index 9ac3035..c766a14 100644 --- a/server/api/intZendeskConfiguration/intZendeskConfiguration.model.js +++ b/server/api/intZendeskConfiguration/intZendeskConfiguration.model.js @@ -1 +1 @@ -const a339_0x336e=['exports','ZendeskConfiguration','./intZendeskConfiguration.attributes'];(function(_0xf486b1,_0x336ee1){const _0x3c86da=function(_0x493af0){while(--_0x493af0){_0xf486b1['push'](_0xf486b1['shift']());}};_0x3c86da(++_0x336ee1);}(a339_0x336e,0x1af));const a339_0x3c86=function(_0xf486b1,_0x336ee1){_0xf486b1=_0xf486b1-0x0;let _0x3c86da=a339_0x336e[_0xf486b1];return _0x3c86da;};const _0x5e47c6=a339_0x3c86;'use strict';const attributes=require(_0x5e47c6('0x0'));module[_0x5e47c6('0x1')]=function(_0x493af0){const _0x4afd28=_0x5e47c6,_0x22da4e=_0x493af0['define'](_0x4afd28('0x2'),attributes,{'tableName':'int_zendesk_configurations','paranoid':![],'indexes':[],'timestamps':!![]});return _0x22da4e;}; \ No newline at end of file +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 diff --git a/server/api/intZendeskField/index.js b/server/api/intZendeskField/index.js index 6df77fe..02f34d7 100644 --- a/server/api/intZendeskField/index.js +++ b/server/api/intZendeskField/index.js @@ -1 +1 @@ -const a340_0x385d=['get','update','show','isAuthenticated','delete','post','destroy','../../components/auth/service','put','Router','/:id'];(function(_0x48581e,_0x385db9){const _0x5f3b2d=function(_0x4ebbf9){while(--_0x4ebbf9){_0x48581e['push'](_0x48581e['shift']());}};_0x5f3b2d(++_0x385db9);}(a340_0x385d,0x14d));const a340_0x5f3b=function(_0x48581e,_0x385db9){_0x48581e=_0x48581e-0x0;let _0x5f3b2d=a340_0x385d[_0x48581e];return _0x5f3b2d;};const _0x3516a=a340_0x5f3b;'use strict';const express=require('express'),router=express[_0x3516a('0x6')](),auth=require(_0x3516a('0x4')),controller=require('./intZendeskField.controller');router[_0x3516a('0x8')]('/',auth[_0x3516a('0x0')](),controller['index']),router['get'](_0x3516a('0x7'),auth[_0x3516a('0x0')](),controller[_0x3516a('0xa')]),router[_0x3516a('0x2')]('/',auth[_0x3516a('0x0')](),controller['create']),router[_0x3516a('0x5')](_0x3516a('0x7'),auth[_0x3516a('0x0')](),controller[_0x3516a('0x9')]),router[_0x3516a('0x1')](_0x3516a('0x7'),auth[_0x3516a('0x0')](),controller[_0x3516a('0x3')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/intZendeskField/intZendeskField.attributes.js b/server/api/intZendeskField/intZendeskField.attributes.js index aa93abc..2db2068 100644 --- a/server/api/intZendeskField/intZendeskField.attributes.js +++ b/server/api/intZendeskField/intZendeskField.attributes.js @@ -1 +1 @@ -const a341_0x5e49=['STRING','variable','string','ENUM','sequelize','keyValue','customVariable'];(function(_0x202f65,_0x5e4941){const _0x5abf0e=function(_0x1c75bf){while(--_0x1c75bf){_0x202f65['push'](_0x202f65['shift']());}};_0x5abf0e(++_0x5e4941);}(a341_0x5e49,0xe1));const a341_0x5abf=function(_0x202f65,_0x5e4941){_0x202f65=_0x202f65-0x0;let _0x5abf0e=a341_0x5e49[_0x202f65];return _0x5abf0e;};const _0x46656a=a341_0x5abf;'use strict';const Sequelize=require(_0x46656a('0x3'));module['exports']={'type':{'type':Sequelize[_0x46656a('0x2')](_0x46656a('0x1'),_0x46656a('0x0'),_0x46656a('0x5'),_0x46656a('0x4')),'defaultValue':'string'},'content':{'type':Sequelize['STRING']},'key':{'type':Sequelize[_0x46656a('0x6')]},'keyType':{'type':Sequelize[_0x46656a('0x2')](_0x46656a('0x1'),_0x46656a('0x0'),_0x46656a('0x5'))},'keyContent':{'type':Sequelize['STRING']},'idField':{'type':Sequelize['STRING']},'nameField':{'type':Sequelize[_0x46656a('0x6')]},'customField':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'variableName':{'type':Sequelize['STRING']}}; \ No newline at end of file +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 diff --git a/server/api/intZendeskField/intZendeskField.controller.js b/server/api/intZendeskField/intZendeskField.controller.js index c5790fb..d241d8c 100644 --- a/server/api/intZendeskField/intZendeskField.controller.js +++ b/server/api/intZendeskField/intZendeskField.controller.js @@ -1 +1 @@ -const a342_0x2c48=['type','where','merge','offset','VIRTUAL','send','stack','../../mysqldb','ZendeskField','options','model','filter','end','../../config/logger','query','nolimit','findOne','status','error','catch','api','keys','then','limit','lodash','filters','name','params','intersection','create','findAll','order','json','update','key','sendStatus','fieldName','show','pick','length','destroy','body','sort','rows','include','fields','rawAttributes','map','attributes','like'];(function(_0x2d3fc8,_0x2c488d){const _0x546463=function(_0x1c669c){while(--_0x1c669c){_0x2d3fc8['push'](_0x2d3fc8['shift']());}};_0x546463(++_0x2c488d);}(a342_0x2c48,0x143));const a342_0x5464=function(_0x2d3fc8,_0x2c488d){_0x2d3fc8=_0x2d3fc8-0x0;let _0x546463=a342_0x2c48[_0x2d3fc8];return _0x546463;};const _0x3ed6f4=a342_0x5464;'use strict';const _=require(_0x3ed6f4('0x1')),qs=require('../../components/parsers/qs'),logger=require(_0x3ed6f4('0x28'))(_0x3ed6f4('0x2f')),db=require(_0x3ed6f4('0x22'))['db'],{Op}=require('sequelize');function respondWithResult(_0x1c669c,_0x4205c5){return _0x4205c5=_0x4205c5||0xc8,function(_0x2ac528){const _0x587548=a342_0x5464;if(_0x2ac528)return _0x1c669c[_0x587548('0x2c')](_0x4205c5)[_0x587548('0x9')](_0x2ac528);};}function respondWithFilteredResult(_0x4b2d90,_0x513020){return function(_0xc7598){const _0x5e9bda=a342_0x5464;if(_0xc7598){const _0xc8e97=_0xc7598['count'],_0x3c4a06=_0x513020[_0x5e9bda('0x1e')];let _0x29522a=_0x513020[_0x5e9bda('0x1e')]+_0x513020[_0x5e9bda('0x0')],_0x39cf38;return _0x29522a>=_0xc8e97?(_0x29522a=_0xc8e97,_0x39cf38=0xc8):_0x39cf38=0xce,_0x4b2d90[_0x5e9bda('0x2c')](_0x39cf38),_0x4b2d90['set']('Content-Range',_0x3c4a06+'-'+_0x29522a+'/'+_0xc8e97)['json'](_0xc7598);}return null;};}function saveUpdates(_0x5802fd){return function(_0x422c9a){if(_0x422c9a)return _0x422c9a['update'](_0x5802fd)['then'](function(_0x31db3e){return _0x31db3e;});return null;};}function removeEntity(_0xeeb48c){return function(_0x525d33){const _0x98fdb0=a342_0x5464;if(_0x525d33)return _0x525d33[_0x98fdb0('0x11')]()[_0x98fdb0('0x31')](function(){const _0x5e52a9=_0x98fdb0;_0xeeb48c['status'](0xcc)[_0x5e52a9('0x27')]();});};}function handleEntityNotFound(_0x5b5cc8){return function(_0x43f799){const _0x281718=a342_0x5464;return!_0x43f799&&_0x5b5cc8[_0x281718('0xc')](0x194),_0x43f799;};}function handleError(_0x3684db,_0x2e7019){return _0x2e7019=_0x2e7019||0x1f4,function(_0x1807c4){const _0x5c805a=a342_0x5464;logger[_0x5c805a('0x2d')](_0x1807c4[_0x5c805a('0x21')]),_0x1807c4[_0x5c805a('0x3')]&&delete _0x1807c4[_0x5c805a('0x3')],_0x3684db[_0x5c805a('0x2c')](_0x2e7019)[_0x5c805a('0x20')](_0x1807c4);};}exports['index']=function(_0x2d2bda,_0x48660f){const _0x5064f8=_0x3ed6f4;let _0x4c1869={};const _0x24eb99={},_0x29c4e4={'count':0x0,'rows':[]},_0x5e0b58=_[_0x5064f8('0x18')](db[_0x5064f8('0x23')][_0x5064f8('0x17')],function(_0x1596d9){const _0x21250f=_0x5064f8;return{'name':_0x1596d9[_0x21250f('0xd')],'type':_0x1596d9[_0x21250f('0x1b')][_0x21250f('0xb')]};});_0x24eb99[_0x5064f8('0x25')]=_[_0x5064f8('0x18')](_0x5e0b58,_0x5064f8('0x3')),_0x24eb99[_0x5064f8('0x29')]=_[_0x5064f8('0x30')](_0x2d2bda[_0x5064f8('0x29')]),_0x24eb99[_0x5064f8('0x2')]=_[_0x5064f8('0x5')](_0x24eb99[_0x5064f8('0x25')],_0x24eb99[_0x5064f8('0x29')]),_0x4c1869[_0x5064f8('0x19')]=_['intersection'](_0x24eb99[_0x5064f8('0x25')],qs[_0x5064f8('0x16')](_0x2d2bda[_0x5064f8('0x29')]['fields'])),_0x4c1869[_0x5064f8('0x19')]=_0x4c1869[_0x5064f8('0x19')][_0x5064f8('0x10')]?_0x4c1869[_0x5064f8('0x19')]:_0x24eb99[_0x5064f8('0x25')];typeof _0x2d2bda[_0x5064f8('0x29')][_0x5064f8('0x2a')]==='undefined'&&(_0x4c1869[_0x5064f8('0x0')]=qs[_0x5064f8('0x0')](_0x2d2bda[_0x5064f8('0x29')]['limit']),_0x4c1869['offset']=qs[_0x5064f8('0x1e')](_0x2d2bda[_0x5064f8('0x29')][_0x5064f8('0x1e')]));_0x4c1869[_0x5064f8('0x8')]=qs[_0x5064f8('0x13')](_0x2d2bda[_0x5064f8('0x29')][_0x5064f8('0x13')]),_0x4c1869[_0x5064f8('0x1c')]=qs[_0x5064f8('0x2')](_[_0x5064f8('0xf')](_0x2d2bda['query'],_0x24eb99[_0x5064f8('0x2')]),_0x5e0b58);_0x2d2bda[_0x5064f8('0x29')][_0x5064f8('0x26')]&&(_0x4c1869['where']=_['merge'](_0x4c1869['where'],{[Op['or']]:_[_0x5064f8('0x18')](_0x5e0b58,function(_0x2e7093){const _0x28c0ac=_0x5064f8;if(_0x2e7093[_0x28c0ac('0x1b')]!==_0x28c0ac('0x1f')){const _0x483186={};return _0x483186[_0x2e7093['name']]={[Op[_0x28c0ac('0x1a')]]:'%'+_0x2d2bda[_0x28c0ac('0x29')][_0x28c0ac('0x26')]+'%'},_0x483186;}})}));_0x4c1869=_[_0x5064f8('0x1d')]({},_0x4c1869,_0x2d2bda[_0x5064f8('0x24')]);const _0x1b5db3={'where':_0x4c1869['where']};return db[_0x5064f8('0x23')]['count'](_0x1b5db3)[_0x5064f8('0x31')](function(_0x37f8f6){const _0x471f75=_0x5064f8;return _0x29c4e4['count']=_0x37f8f6,_0x2d2bda[_0x471f75('0x29')]['includeAll']&&(_0x4c1869[_0x471f75('0x15')]=[{'all':!![]}]),db[_0x471f75('0x23')][_0x471f75('0x7')](_0x4c1869);})[_0x5064f8('0x31')](function(_0x4ddbe4){const _0x4c687b=_0x5064f8;return _0x29c4e4[_0x4c687b('0x14')]=_0x4ddbe4,_0x29c4e4;})[_0x5064f8('0x31')](respondWithFilteredResult(_0x48660f,_0x4c1869))[_0x5064f8('0x2e')](handleError(_0x48660f,null));},exports[_0x3ed6f4('0xe')]=function(_0x49fbd6,_0x497ad0){const _0x1dfca6=_0x3ed6f4;let _0x473cd6={'raw':!![],'where':{'id':_0x49fbd6['params']['id']}};const _0x15b5b7={};return _0x15b5b7[_0x1dfca6('0x25')]=_[_0x1dfca6('0x30')](db['ZendeskField'][_0x1dfca6('0x17')]),_0x15b5b7['query']=_[_0x1dfca6('0x30')](_0x49fbd6['query']),_0x15b5b7[_0x1dfca6('0x2')]=_[_0x1dfca6('0x5')](_0x15b5b7[_0x1dfca6('0x25')],_0x15b5b7[_0x1dfca6('0x29')]),_0x473cd6[_0x1dfca6('0x19')]=_['intersection'](_0x15b5b7['model'],qs['fields'](_0x49fbd6['query'][_0x1dfca6('0x16')])),_0x473cd6[_0x1dfca6('0x19')]=_0x473cd6[_0x1dfca6('0x19')][_0x1dfca6('0x10')]?_0x473cd6[_0x1dfca6('0x19')]:_0x15b5b7[_0x1dfca6('0x25')],_0x49fbd6[_0x1dfca6('0x29')]['includeAll']&&(_0x473cd6[_0x1dfca6('0x15')]=[{'all':!![]}]),_0x473cd6=_[_0x1dfca6('0x1d')]({},_0x473cd6,_0x49fbd6[_0x1dfca6('0x24')]),db['ZendeskField'][_0x1dfca6('0x2b')](_0x473cd6)[_0x1dfca6('0x31')](handleEntityNotFound(_0x497ad0,null))[_0x1dfca6('0x31')](respondWithResult(_0x497ad0,null))[_0x1dfca6('0x2e')](handleError(_0x497ad0,null));},exports[_0x3ed6f4('0x6')]=function(_0x34d548,_0x3c37ab){const _0x22190b=_0x3ed6f4;return db[_0x22190b('0x23')]['create'](_0x34d548[_0x22190b('0x12')],{})[_0x22190b('0x31')](respondWithResult(_0x3c37ab,0xc9))['catch'](handleError(_0x3c37ab,null));},exports[_0x3ed6f4('0xa')]=function(_0xfd5a49,_0x7b96a3){const _0x5b530f=_0x3ed6f4;return _0xfd5a49['body']['id']&&delete _0xfd5a49[_0x5b530f('0x12')]['id'],db[_0x5b530f('0x23')]['findOne']({'where':{'id':_0xfd5a49['params']['id']}})[_0x5b530f('0x31')](handleEntityNotFound(_0x7b96a3,null))[_0x5b530f('0x31')](saveUpdates(_0xfd5a49['body'],null))[_0x5b530f('0x31')](respondWithResult(_0x7b96a3,null))[_0x5b530f('0x2e')](handleError(_0x7b96a3,null));},exports[_0x3ed6f4('0x11')]=function(_0x3046ab,_0x44a66d){const _0xd5731a=_0x3ed6f4;return db[_0xd5731a('0x23')][_0xd5731a('0x2b')]({'where':{'id':_0x3046ab[_0xd5731a('0x4')]['id']}})['then'](handleEntityNotFound(_0x44a66d,null))[_0xd5731a('0x31')](removeEntity(_0x44a66d,null))[_0xd5731a('0x2e')](handleError(_0x44a66d,null));}; \ No newline at end of file +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 diff --git a/server/api/intZendeskField/intZendeskField.model.js b/server/api/intZendeskField/intZendeskField.model.js index 1c034bd..da00af1 100644 --- a/server/api/intZendeskField/intZendeskField.model.js +++ b/server/api/intZendeskField/intZendeskField.model.js @@ -1 +1 @@ -const a343_0x22ac=['zendesk_unique_index','./intZendeskField.attributes','define','int_zendesk_fields','idField','ZendeskField','FieldId'];(function(_0xbadc8f,_0x22ac47){const _0x512abf=function(_0x48ef39){while(--_0x48ef39){_0xbadc8f['push'](_0xbadc8f['shift']());}};_0x512abf(++_0x22ac47);}(a343_0x22ac,0xc3));const a343_0x512a=function(_0xbadc8f,_0x22ac47){_0xbadc8f=_0xbadc8f-0x0;let _0x512abf=a343_0x22ac[_0xbadc8f];return _0x512abf;};const _0x4a7802=a343_0x512a;'use strict';const attributes=require(_0x4a7802('0x2'));module['exports']=function(_0x48ef39){const _0xa00bbb=_0x4a7802,_0x192e8f=_0x48ef39[_0xa00bbb('0x3')](_0xa00bbb('0x6'),attributes,{'tableName':_0xa00bbb('0x4'),'paranoid':![],'indexes':[{'name':_0xa00bbb('0x1'),'fields':[_0xa00bbb('0x5'),_0xa00bbb('0x0')],'unique':!![]}],'timestamps':!![]});return _0x192e8f;}; \ No newline at end of file +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 diff --git a/server/api/intZohoAccount/index.js b/server/api/intZohoAccount/index.js index 59613f6..c35b37c 100644 --- a/server/api/intZohoAccount/index.js +++ b/server/api/intZohoAccount/index.js @@ -1 +1 @@ -const a344_0x197a=['getFields','isAuthenticated','Router','delete','./intZohoAccount.controller','/:id/fields','/:id/configurations','put','update','get','destroy','exports','/:id','index','getConfigurations','../../components/auth/service','post'];(function(_0x3ad5f6,_0x197aaf){const _0x195733=function(_0x5886c4){while(--_0x5886c4){_0x3ad5f6['push'](_0x3ad5f6['shift']());}};_0x195733(++_0x197aaf);}(a344_0x197a,0x172));const a344_0x1957=function(_0x3ad5f6,_0x197aaf){_0x3ad5f6=_0x3ad5f6-0x0;let _0x195733=a344_0x197a[_0x3ad5f6];return _0x195733;};const _0x5e9b27=a344_0x1957;'use strict';const express=require('express'),router=express[_0x5e9b27('0x6')](),auth=require(_0x5e9b27('0x2')),controller=require(_0x5e9b27('0x8'));router[_0x5e9b27('0xd')]('/',auth[_0x5e9b27('0x5')](),controller[_0x5e9b27('0x0')]),router[_0x5e9b27('0xd')](_0x5e9b27('0x10'),auth['isAuthenticated'](),controller['show']),router[_0x5e9b27('0xd')](_0x5e9b27('0xa'),auth['isAuthenticated'](),controller[_0x5e9b27('0x1')]),router['get'](_0x5e9b27('0x9'),auth['isAuthenticated'](),controller[_0x5e9b27('0x4')]),router[_0x5e9b27('0x3')]('/',auth[_0x5e9b27('0x5')](),controller['create']),router['post'](_0x5e9b27('0xa'),auth[_0x5e9b27('0x5')](),controller['addConfiguration']),router[_0x5e9b27('0xb')]('/:id',auth[_0x5e9b27('0x5')](),controller[_0x5e9b27('0xc')]),router[_0x5e9b27('0x7')]('/:id',auth[_0x5e9b27('0x5')](),controller[_0x5e9b27('0xe')]),module[_0x5e9b27('0xf')]=router; \ No newline at end of file +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 diff --git a/server/api/intZohoAccount/intZohoAccount.attributes.js b/server/api/intZohoAccount/intZohoAccount.attributes.js index 05b7d5c..4aa55d7 100644 --- a/server/api/intZohoAccount/intZohoAccount.attributes.js +++ b/server/api/intZohoAccount/intZohoAccount.attributes.js @@ -1 +1 @@ -const a345_0x1259=['exports','sequelize','STRING'];(function(_0xcf1ae0,_0x12595b){const _0xc521a9=function(_0x389edc){while(--_0x389edc){_0xcf1ae0['push'](_0xcf1ae0['shift']());}};_0xc521a9(++_0x12595b);}(a345_0x1259,0xe0));const a345_0xc521=function(_0xcf1ae0,_0x12595b){_0xcf1ae0=_0xcf1ae0-0x0;let _0xc521a9=a345_0x1259[_0xcf1ae0];return _0xc521a9;};const _0x1f3c36=a345_0xc521;'use strict';const Sequelize=require(_0x1f3c36('0x2'));module[_0x1f3c36('0x1')]={'name':{'type':Sequelize[_0x1f3c36('0x0')]},'description':{'type':Sequelize['STRING']},'host':{'type':Sequelize[_0x1f3c36('0x0')]},'zone':{'type':Sequelize[_0x1f3c36('0x0')]},'clientId':{'type':Sequelize[_0x1f3c36('0x0')]},'clientSecret':{'type':Sequelize[_0x1f3c36('0x0')]},'serverUrl':{'type':Sequelize['STRING']},'code':{'type':Sequelize[_0x1f3c36('0x0')]},'refreshToken':{'type':Sequelize[_0x1f3c36('0x0')]}}; \ No newline at end of file +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 diff --git a/server/api/intZohoAccount/intZohoAccount.controller.js b/server/api/intZohoAccount/intZohoAccount.controller.js index 7587aa1..b7bf21c 100644 --- a/server/api/intZohoAccount/intZohoAccount.controller.js +++ b/server/api/intZohoAccount/intZohoAccount.controller.js @@ -1 +1 @@ -const a346_0x2438=['sequelize','AccountId','remove','Unable\x20to\x20retrieve\x20the\x20access\x20token','ZohoConfiguration','findOne','nolimit','refreshToken','ZohoAccount','sort','request-promise-native','zone','end','filters','where','../../components/parsers/qs','display_label','like','getFields,\x20%s,\x20%s,\x20%s','Refresh\x20Token\x20not\x20available\x20for\x20the\x20account','util','custom_field','../../components/integrations/configuration','index','clientId','host','zoho.eu','WhoId','push','response','/oauth/v2/token','serverUrl','length','fields','params','format','filter','key','https://accounts.zoho.com','lodash','https://accounts.zoho.com.cn','model','intersection','Subjects','keys','then','rows','count','includeAll','offset','status','sendStatus','destroy','type','Descriptions','catch','create','https://accounts.zoho.in','getSubjects','GET','clientSecret','data_type','name','rawAttributes','getFields','VIRTUAL','channel','body','api_name','POST','statusCode','https://accounts.zoho.com.au','code','getConfigurations','../../mysqldb','error','addConfiguration','order','Description','merge','Wrong\x20credentials','Owner','limit','map','json','Subject','show','pick_list_values','Call_Result','pick','Call_Start_Time','refresh_token','test','set','options','api','include','send','lastIndexOf','undefined','query','attributes','https://accounts.zoho.eu'];(function(_0x3bed2f,_0x2438c9){const _0x5b08ee=function(_0x1ddaf5){while(--_0x1ddaf5){_0x3bed2f['push'](_0x3bed2f['shift']());}};_0x5b08ee(++_0x2438c9);}(a346_0x2438,0x103));const a346_0x5b08=function(_0x3bed2f,_0x2438c9){_0x3bed2f=_0x3bed2f-0x0;let _0x5b08ee=a346_0x2438[_0x3bed2f];return _0x5b08ee;};const _0x505c0f=a346_0x5b08;'use strict';const rp=require(_0x505c0f('0x3c')),util=require(_0x505c0f('0x46')),_=require(_0x505c0f('0x59')),qs=require(_0x505c0f('0x41')),logger=require('../../config/logger')(_0x505c0f('0x2a')),db=require(_0x505c0f('0x15'))['db'],{Op}=require(_0x505c0f('0x32')),integrations=require(_0x505c0f('0x48'));function respondWithResult(_0x1ddaf5,_0x45ddbb){return _0x45ddbb=_0x45ddbb||0xc8,function(_0x54659c){const _0x2a4244=a346_0x5b08;if(_0x54659c)return _0x1ddaf5[_0x2a4244('0x64')](_0x45ddbb)[_0x2a4244('0x1f')](_0x54659c);};}function respondWithFilteredResult(_0x36ae51,_0x4675a5){return function(_0x25af13){const _0x25a5cb=a346_0x5b08;if(_0x25af13){const _0x45d2f8=_0x25af13['count'],_0x54f8bf=_0x4675a5[_0x25a5cb('0x63')];let _0x59e579=_0x4675a5['offset']+_0x4675a5[_0x25a5cb('0x1d')],_0x1ccce7;return _0x59e579>=_0x45d2f8?(_0x59e579=_0x45d2f8,_0x1ccce7=0xc8):_0x1ccce7=0xce,_0x36ae51['status'](_0x1ccce7),_0x36ae51[_0x25a5cb('0x28')]('Content-Range',_0x54f8bf+'-'+_0x59e579+'/'+_0x45d2f8)[_0x25a5cb('0x1f')](_0x25af13);}return null;};}function saveUpdates(_0x5e0fa5){return function(_0x433af0){const _0x27d7c1=a346_0x5b08;if(_0x433af0)return _0x433af0['update'](_0x5e0fa5)[_0x27d7c1('0x5f')](function(_0x555223){return _0x555223;});return null;};}function removeEntity(_0x480166){return function(_0x42f553){const _0x4371dd=a346_0x5b08;if(_0x42f553)return _0x42f553[_0x4371dd('0x66')]()[_0x4371dd('0x5f')](function(){const _0x1b2c5e=_0x4371dd;_0x480166['status'](0xcc)[_0x1b2c5e('0x3e')]();});};}function handleEntityNotFound(_0x21ca64){return function(_0x59436e){const _0x54c168=a346_0x5b08;return!_0x59436e&&_0x21ca64[_0x54c168('0x65')](0x194),_0x59436e;};}function handleError(_0x4a1564,_0x1ef2e7){return _0x1ef2e7=_0x1ef2e7||0x1f4,function(_0x4f125d){const _0x462f05=a346_0x5b08;logger[_0x462f05('0x16')](_0x4f125d['stack']),_0x4f125d[_0x462f05('0x9')]&&delete _0x4f125d[_0x462f05('0x9')],_0x4a1564['status'](_0x1ef2e7)[_0x462f05('0x2c')](_0x4f125d);};}exports[_0x505c0f('0x49')]=function(_0x3e6068,_0x518d9e){const _0x29197c=_0x505c0f;let _0x51d78b={};const _0x246a38={},_0x46e78e={'count':0x0,'rows':[]},_0x22dd75=_[_0x29197c('0x1e')](db[_0x29197c('0x3a')][_0x29197c('0xa')],function(_0x341094){const _0x3cdc27=_0x29197c;return{'name':_0x341094['fieldName'],'type':_0x341094['type'][_0x3cdc27('0x57')]};});_0x246a38[_0x29197c('0x5b')]=_['map'](_0x22dd75,_0x29197c('0x9')),_0x246a38[_0x29197c('0x2f')]=_['keys'](_0x3e6068[_0x29197c('0x2f')]),_0x246a38['filters']=_[_0x29197c('0x5c')](_0x246a38[_0x29197c('0x5b')],_0x246a38[_0x29197c('0x2f')]),_0x51d78b[_0x29197c('0x30')]=_[_0x29197c('0x5c')](_0x246a38[_0x29197c('0x5b')],qs[_0x29197c('0x53')](_0x3e6068[_0x29197c('0x2f')][_0x29197c('0x53')])),_0x51d78b[_0x29197c('0x30')]=_0x51d78b[_0x29197c('0x30')][_0x29197c('0x52')]?_0x51d78b['attributes']:_0x246a38['model'];typeof _0x3e6068['query'][_0x29197c('0x38')]==='undefined'&&(_0x51d78b[_0x29197c('0x1d')]=qs[_0x29197c('0x1d')](_0x3e6068[_0x29197c('0x2f')][_0x29197c('0x1d')]),_0x51d78b[_0x29197c('0x63')]=qs['offset'](_0x3e6068[_0x29197c('0x2f')][_0x29197c('0x63')]));_0x51d78b[_0x29197c('0x18')]=qs['sort'](_0x3e6068[_0x29197c('0x2f')]['sort']),_0x51d78b['where']=qs[_0x29197c('0x3f')](_[_0x29197c('0x24')](_0x3e6068[_0x29197c('0x2f')],_0x246a38['filters']),_0x22dd75);_0x3e6068[_0x29197c('0x2f')][_0x29197c('0x56')]&&(_0x51d78b[_0x29197c('0x40')]=_[_0x29197c('0x1a')](_0x51d78b[_0x29197c('0x40')],{[Op['or']]:_['map'](_0x22dd75,function(_0x1149da){const _0x59a0a4=_0x29197c;if(_0x1149da[_0x59a0a4('0x0')]!==_0x59a0a4('0xc')){const _0x56dfa7={};return _0x56dfa7[_0x1149da['name']]={[Op[_0x59a0a4('0x43')]]:'%'+_0x3e6068[_0x59a0a4('0x2f')][_0x59a0a4('0x56')]+'%'},_0x56dfa7;}})}));_0x51d78b=_[_0x29197c('0x1a')]({},_0x51d78b,_0x3e6068[_0x29197c('0x29')]);const _0x39d46c={'where':_0x51d78b[_0x29197c('0x40')]};return db[_0x29197c('0x3a')][_0x29197c('0x61')](_0x39d46c)[_0x29197c('0x5f')](function(_0x1e79bf){const _0x126504=_0x29197c;return _0x46e78e['count']=_0x1e79bf,_0x3e6068[_0x126504('0x2f')]['includeAll']&&(_0x51d78b[_0x126504('0x2b')]=[{'all':!![]}]),db[_0x126504('0x3a')]['findAll'](_0x51d78b);})['then'](function(_0x5c11c0){const _0x1bf360=_0x29197c;return _0x46e78e[_0x1bf360('0x60')]=_0x5c11c0,_0x46e78e;})['then'](respondWithFilteredResult(_0x518d9e,_0x51d78b))[_0x29197c('0x2')](handleError(_0x518d9e,null));},exports[_0x505c0f('0x21')]=function(_0xe49f03,_0x5856d9){const _0x4c3082=_0x505c0f;let _0x3b944e={'raw':![],'where':{'id':_0xe49f03[_0x4c3082('0x54')]['id']}};const _0x4ed142={};return _0x4ed142[_0x4c3082('0x5b')]=_[_0x4c3082('0x5e')](db[_0x4c3082('0x3a')][_0x4c3082('0xa')]),_0x4ed142[_0x4c3082('0x2f')]=_[_0x4c3082('0x5e')](_0xe49f03['query']),_0x4ed142[_0x4c3082('0x3f')]=_['intersection'](_0x4ed142['model'],_0x4ed142['query']),_0x3b944e[_0x4c3082('0x30')]=_[_0x4c3082('0x5c')](_0x4ed142[_0x4c3082('0x5b')],qs['fields'](_0xe49f03[_0x4c3082('0x2f')][_0x4c3082('0x53')])),_0x3b944e['attributes']=_0x3b944e['attributes'][_0x4c3082('0x52')]?_0x3b944e[_0x4c3082('0x30')]:_0x4ed142[_0x4c3082('0x5b')],_0xe49f03[_0x4c3082('0x2f')][_0x4c3082('0x62')]&&(_0x3b944e['include']=[{'all':!![]}]),_0x3b944e=_[_0x4c3082('0x1a')]({},_0x3b944e,_0xe49f03[_0x4c3082('0x29')]),db[_0x4c3082('0x3a')]['findOne'](_0x3b944e)[_0x4c3082('0x5f')](handleEntityNotFound(_0x5856d9,null))[_0x4c3082('0x5f')](respondWithResult(_0x5856d9,null))[_0x4c3082('0x2')](handleError(_0x5856d9,null));},exports[_0x505c0f('0x3')]=function(_0x43ab08,_0x3f2ae6){const _0x442c71=_0x505c0f;return db['ZohoAccount']['create'](_0x43ab08[_0x442c71('0xe')],{})[_0x442c71('0x5f')](respondWithResult(_0x3f2ae6,0xc9))[_0x442c71('0x2')](handleError(_0x3f2ae6,null));},exports['update']=function(_0x18da69,_0x1fbcf6){const _0x3fc194=_0x505c0f;return _0x18da69[_0x3fc194('0xe')]['id']&&delete _0x18da69[_0x3fc194('0xe')]['id'],db['ZohoAccount']['findOne']({'where':{'id':_0x18da69['params']['id']}})[_0x3fc194('0x5f')](handleEntityNotFound(_0x1fbcf6,null))[_0x3fc194('0x5f')](saveUpdates(_0x18da69[_0x3fc194('0xe')],null))[_0x3fc194('0x5f')](respondWithResult(_0x1fbcf6,null))[_0x3fc194('0x2')](handleError(_0x1fbcf6,null));},exports[_0x505c0f('0x66')]=function(_0x38db82,_0x4fd819){const _0xdb660a=_0x505c0f;return db[_0xdb660a('0x3a')]['findOne']({'where':{'id':_0x38db82['params']['id']}})['then'](handleEntityNotFound(_0x4fd819,null))['then'](removeEntity(_0x4fd819,null))[_0xdb660a('0x2')](handleError(_0x4fd819,null));},exports['getConfigurations']=function(_0x411a14,_0x588ad0){const _0x66fb7=_0x505c0f;let _0x43258b={};const _0x468295={};let _0x2a7e45,_0x267d28;return db[_0x66fb7('0x3a')][_0x66fb7('0x37')]({'where':{'id':_0x411a14['params']['id']}})[_0x66fb7('0x5f')](handleEntityNotFound(_0x588ad0,null))[_0x66fb7('0x5f')](function(_0x728104){const _0x4ba2b7=_0x66fb7;if(_0x728104)return _0x2a7e45=_0x728104,_0x468295['model']=_['keys'](db['ZohoConfiguration'][_0x4ba2b7('0xa')]),_0x468295[_0x4ba2b7('0x2f')]=_[_0x4ba2b7('0x5e')](_0x411a14[_0x4ba2b7('0x2f')]),_0x468295[_0x4ba2b7('0x3f')]=_[_0x4ba2b7('0x5c')](_0x468295[_0x4ba2b7('0x5b')],_0x468295[_0x4ba2b7('0x2f')]),_0x43258b[_0x4ba2b7('0x30')]=_[_0x4ba2b7('0x5c')](_0x468295[_0x4ba2b7('0x5b')],qs[_0x4ba2b7('0x53')](_0x411a14[_0x4ba2b7('0x2f')][_0x4ba2b7('0x53')])),_0x43258b[_0x4ba2b7('0x30')]=_0x43258b['attributes']['length']?_0x43258b['attributes']:_0x468295[_0x4ba2b7('0x5b')],_0x43258b[_0x4ba2b7('0x18')]=qs[_0x4ba2b7('0x3b')](_0x411a14['query'][_0x4ba2b7('0x3b')]),_0x43258b[_0x4ba2b7('0x40')]=qs[_0x4ba2b7('0x3f')](_[_0x4ba2b7('0x24')](_0x411a14[_0x4ba2b7('0x2f')],_0x468295['filters'])),_0x411a14[_0x4ba2b7('0x2f')][_0x4ba2b7('0x56')]&&(_0x43258b['where']=_[_0x4ba2b7('0x1a')](_0x43258b[_0x4ba2b7('0x40')],{[Op['or']]:_[_0x4ba2b7('0x1e')](_0x43258b[_0x4ba2b7('0x30')],function(_0x3fd0c6){const _0x4bc471=_0x4ba2b7,_0x57f950={};return _0x57f950[_0x3fd0c6]={[Op[_0x4bc471('0x43')]]:'%'+_0x411a14[_0x4bc471('0x2f')][_0x4bc471('0x56')]+'%'},_0x57f950;})})),_0x43258b=_['merge']({},_0x43258b,_0x411a14['options']),_0x2a7e45[_0x4ba2b7('0x14')](_0x43258b);})[_0x66fb7('0x5f')](function(_0x559992){const _0x28ba7b=_0x66fb7;if(_0x559992)return _0x267d28=_0x559992[_0x28ba7b('0x52')],typeof _0x411a14[_0x28ba7b('0x2f')]['nolimit']===_0x28ba7b('0x2e')&&(_0x43258b[_0x28ba7b('0x1d')]=qs[_0x28ba7b('0x1d')](_0x411a14[_0x28ba7b('0x2f')]['limit']),_0x43258b[_0x28ba7b('0x63')]=qs['offset'](_0x411a14['query']['offset'])),_0x2a7e45['getConfigurations'](_0x43258b);})['then'](function(_0x47b553){if(_0x47b553)return _0x47b553?{'count':_0x267d28,'rows':_0x47b553}:null;})[_0x66fb7('0x5f')](respondWithResult(_0x588ad0,null))[_0x66fb7('0x2')](handleError(_0x588ad0,null));},exports[_0x505c0f('0x17')]=function(_0xe6577a,_0x419d91){const _0x4802e2=_0x505c0f;return _0xe6577a[_0x4802e2('0xe')]['id']&&delete _0xe6577a[_0x4802e2('0xe')]['id'],db[_0x4802e2('0x3a')][_0x4802e2('0x37')]({'where':{'id':_0xe6577a[_0x4802e2('0x54')]['id']}})[_0x4802e2('0x5f')](handleEntityNotFound(_0x419d91,null))[_0x4802e2('0x5f')](function(_0x5289a7){const _0x274090=_0x4802e2;if(_0x5289a7)return _0xe6577a[_0x274090('0xe')][_0x274090('0x33')]=_0x5289a7['id'],_0xe6577a['body'][_0x274090('0x5d')]=integrations[_0x274090('0x5')](_0xe6577a['body'][_0x274090('0xd')],_0xe6577a[_0x274090('0xe')][_0x274090('0x0')]),_0xe6577a[_0x274090('0xe')][_0x274090('0x1')]=integrations['getDescriptions'](_0xe6577a[_0x274090('0xe')][_0x274090('0xd')],_0xe6577a[_0x274090('0xe')][_0x274090('0x0')]),db[_0x274090('0x36')]['create'](_0xe6577a[_0x274090('0xe')],{'include':[{'model':db['ZohoField'],'as':_0x274090('0x5d')},{'model':db['ZohoField'],'as':_0x274090('0x1')}]});return null;})['then'](respondWithResult(_0x419d91,null))['catch'](handleError(_0x419d91,null));};function getAccessToken(_0x5710b3){return new Promise(function(_0xf6abbc,_0x53dd43){const _0x3f64ce=a346_0x5b08;let _0x5a325e;switch(_0x5710b3[_0x3f64ce('0x3d')]){case'US':_0x5a325e=_0x3f64ce('0x58');break;case'AU':_0x5a325e=_0x3f64ce('0x12');break;case'EU':_0x5a325e=_0x3f64ce('0x31');break;case'IN':_0x5a325e=_0x3f64ce('0x4');break;case'CN':_0x5a325e=_0x3f64ce('0x5a');break;default:_0x5a325e=_0x3f64ce('0x31');break;}const _0x33da18={'method':_0x3f64ce('0x10'),'uri':_0x5a325e+_0x3f64ce('0x50'),'qs':{'refresh_token':_0x5710b3[_0x3f64ce('0x39')],'client_id':_0x5710b3[_0x3f64ce('0x4a')],'client_secret':_0x5710b3['clientSecret'],'grant_type':_0x3f64ce('0x26')},'json':!![]};return rp(_0x33da18)['then'](function(_0x1d1002){const _0x3e580a=_0x3f64ce;_0x1d1002['access_token']?_0xf6abbc(_0x1d1002['access_token']):_0x53dd43(_0x3e580a('0x35'));})[_0x3f64ce('0x2')](function(_0x462914){_0x53dd43(_0x462914);});});}exports[_0x505c0f('0xb')]=function(_0x19d33d,_0x7974a9){const _0x1ea205=_0x505c0f;let _0x439371,_0x26663e,_0x298fb6,_0x6d57df;return db['ZohoAccount'][_0x1ea205('0x37')]({'where':{'id':_0x19d33d[_0x1ea205('0x54')]['id']},'attributes':['id','host',_0x1ea205('0x3d'),_0x1ea205('0x4a'),_0x1ea205('0x7'),_0x1ea205('0x51'),_0x1ea205('0x13'),_0x1ea205('0x39')]})[_0x1ea205('0x5f')](handleEntityNotFound(_0x7974a9,null))[_0x1ea205('0x5f')](function(_0x15f698){const _0x2e1824=_0x1ea205;_0x6d57df=_0x15f698,_0x439371=_0x6d57df[_0x2e1824('0x4b')],_0x26663e=_0x439371===_0x2e1824('0x4c')?'eu':'com',_0x298fb6=_0x6d57df[_0x2e1824('0x51')];const _0x81f33e=_0x298fb6['slice'](-0x1);(_0x81f33e==='/'||_0x81f33e==='\x5c'||_0x81f33e===':')&&(_0x298fb6=_0x298fb6['substring'](0x0,_0x298fb6[_0x2e1824('0x2d')](_0x81f33e)));if(!_0x6d57df[_0x2e1824('0x39')])throw new Error(_0x2e1824('0x45'));return getAccessToken(_0x6d57df);})['then'](function(_0x2a9a72){const _0x3fce1d=_0x1ea205;if(_0x2a9a72)return rp({'method':_0x3fce1d('0x6'),'uri':util[_0x3fce1d('0x55')]('https://www.zohoapis.%s/crm/v2/settings/fields',_0x26663e),'qs':{'module':'Calls'},'headers':{'Authorization':'Zoho-oauthtoken\x20'+_0x2a9a72},'json':!![]});})[_0x1ea205('0x5f')](function(_0x5069fa){const _0x73f9d3=_0x1ea205;if(_0x5069fa){if(_0x5069fa['response']&&_0x5069fa[_0x73f9d3('0x4f')]['error'])throw new Error(_0x5069fa[_0x73f9d3('0x4f')][_0x73f9d3('0x16')]['message']);const _0x49109f=[];let _0x7fc0c3=[];const _0x17975c=[_0x73f9d3('0x1c'),_0x73f9d3('0x20'),_0x73f9d3('0x19'),_0x73f9d3('0x4d'),'Call_Duration',_0x73f9d3('0x23'),_0x73f9d3('0x25'),'Call_Type'];_0x7fc0c3=_[_0x73f9d3('0x34')](_0x5069fa[_0x73f9d3('0x53')],function(_0x2f73b2){const _0x203e1b=_0x73f9d3;return _0x17975c['includes'](_0x2f73b2[_0x203e1b('0xf')]);});for(let _0x112c26=0x0;_0x112c26<_0x7fc0c3[_0x73f9d3('0x52')];_0x112c26++){_0x7fc0c3[_0x112c26]['system_mandatory']===![]&&_0x49109f[_0x73f9d3('0x4e')]({'id':_0x7fc0c3[_0x112c26]['id'],'name':_0x7fc0c3[_0x112c26][_0x73f9d3('0x42')],'custom':_0x7fc0c3[_0x112c26][_0x73f9d3('0x47')],'options':_0x7fc0c3[_0x112c26][_0x73f9d3('0x8')]==='picklist'&&_0x7fc0c3[_0x112c26]['pick_list_values'][_0x73f9d3('0x52')]>-0x1?_[_0x73f9d3('0x1e')](_0x7fc0c3[_0x112c26][_0x73f9d3('0x22')],function(_0x499885){return{'name':_0x499885,'value':_0x499885};}):[]});}return{'count':_0x49109f[_0x73f9d3('0x52')],'rows':_0x49109f};}else return{'count':0x0,'rows':[]};})[_0x1ea205('0x5f')](respondWithResult(_0x7974a9,null))[_0x1ea205('0x2')](function(_0x23872d){const _0x2c9c83=_0x1ea205;let _0x37cf58=_0x19d33d['query'][_0x2c9c83('0x27')]?0x1f4:_0x23872d[_0x2c9c83('0x11')]||0x1f4;logger[_0x2c9c83('0x16')](_0x2c9c83('0x44'),_0x2c9c83('0xb'),_0x37cf58,JSON['stringify'](_0x23872d)),delete _0x23872d[_0x2c9c83('0x9')],_0x37cf58===0x191&&(_0x37cf58=0x190),_0x7974a9[_0x2c9c83('0x64')](_0x37cf58)[_0x2c9c83('0x2c')](_0x19d33d[_0x2c9c83('0x2f')][_0x2c9c83('0x27')]?{'message':_0x2c9c83('0x1b'),'statusCode':_0x23872d[_0x2c9c83('0x11')]}:_0x23872d);});}; \ No newline at end of file +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 diff --git a/server/api/intZohoAccount/intZohoAccount.model.js b/server/api/intZohoAccount/intZohoAccount.model.js index 844f835..8f84c2d 100644 --- a/server/api/intZohoAccount/intZohoAccount.model.js +++ b/server/api/intZohoAccount/intZohoAccount.model.js @@ -1 +1 @@ -const a347_0x43bf=['serverUrl','ZohoAccount','request-promise-native','POST','clientId','refreshToken','application/x-www-form-urlencoded','error','host','/oauth/v2/token','code','substring','format','ZohoAccount,\x20Unable\x20to\x20generate\x20the\x20refresh\x20token\x20for\x20account\x20\x22%s\x22\x20#%d','lastIndexOf','define','refresh_token','clientSecret','../../config/logger','name','exports','https://accounts.zoho.eu','changed','https://accounts.zoho.com.cn','catch','zone','https://accounts.zoho.com','then','https://accounts.zoho.in','authorization_code','info','inspect','ZohoAccount,\x20Refresh\x20token\x20successfully\x20generated\x20for\x20account\x20\x22%s\x22\x20#%d','parse','https://accounts.zoho.com.au'];(function(_0x321481,_0x43bfe1){const _0x535faa=function(_0x3df364){while(--_0x3df364){_0x321481['push'](_0x321481['shift']());}};_0x535faa(++_0x43bfe1);}(a347_0x43bf,0x150));const a347_0x535f=function(_0x321481,_0x43bfe1){_0x321481=_0x321481-0x0;let _0x535faa=a347_0x43bf[_0x321481];return _0x535faa;};const _0x506415=a347_0x535f;'use strict';const util=require('util'),logger=require(_0x506415('0x20'))('api'),rp=require(_0x506415('0x10')),attributes=require('./intZohoAccount.attributes');module[_0x506415('0x22')]=function(_0x3df364){const _0xfe9181=_0x506415,_0x2503cc=_0x3df364[_0xfe9181('0x1d')](_0xfe9181('0xf'),attributes,{'tableName':'int_zoho_accounts','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeCreate':function(_0x2e1af5){const _0x4c8e44=_0xfe9181;if(_0x2e1af5[_0x4c8e44('0x1')](_0x4c8e44('0x4'))||_0x2e1af5['changed']('serverUrl')||_0x2e1af5[_0x4c8e44('0x1')](_0x4c8e44('0x12'))||_0x2e1af5[_0x4c8e44('0x1')](_0x4c8e44('0x1f'))||_0x2e1af5[_0x4c8e44('0x1')](_0x4c8e44('0x18'))||_0x2e1af5['changed']('host')){let _0x3615ec,_0x5e1536;_0x3615ec=_0x2e1af5['serverUrl'];const _0x4f1755=_0x3615ec['slice'](-0x1);(_0x4f1755==='/'||_0x4f1755==='\x5c'||_0x4f1755===':')&&(_0x3615ec=_0x3615ec[_0x4c8e44('0x19')](0x0,_0x3615ec[_0x4c8e44('0x1c')](_0x4f1755)));switch(_0x2e1af5[_0x4c8e44('0x4')]){case'US':_0x5e1536=_0x4c8e44('0x5');break;case'AU':_0x5e1536=_0x4c8e44('0xd');break;case'IN':_0x5e1536=_0x4c8e44('0x7');break;case'CN':_0x5e1536=_0x4c8e44('0x2');break;default:_0x5e1536=_0x4c8e44('0x0');break;}const _0x37cab2={'method':_0x4c8e44('0x11'),'uri':_0x5e1536+'/oauth/v2/token','form':{'grant_type':'authorization_code','client_id':_0x2e1af5[_0x4c8e44('0x12')],'client_secret':_0x2e1af5[_0x4c8e44('0x1f')],'redirect_uri':_0x2e1af5[_0x4c8e44('0xe')],'code':_0x2e1af5[_0x4c8e44('0x18')]},'headers':{'Content-Type':'application/x-www-form-urlencoded'}};let _0x435dc9=null;return rp(_0x37cab2)[_0x4c8e44('0x6')](function(_0x58cec0){const _0x361812=_0x4c8e44;return _0x435dc9=JSON[_0x361812('0xc')](_0x58cec0),_0x435dc9['refresh_token']?(_0x2e1af5[_0x361812('0x13')]=_0x435dc9['refresh_token'],logger[_0x361812('0x9')](util[_0x361812('0x1a')](_0x361812('0xb'),_0x2e1af5[_0x361812('0x21')],_0x2e1af5['id']))):logger[_0x361812('0x15')](util[_0x361812('0x1a')](_0x361812('0x1b'),_0x2e1af5[_0x361812('0x21')],_0x2e1af5['id']),util[_0x361812('0xa')](_0x435dc9,{'showHidden':![],'depth':null})),null;})[_0x4c8e44('0x3')](function(_0x5522ee){const _0x2bc999=_0x4c8e44;return logger[_0x2bc999('0x15')](util[_0x2bc999('0x1a')](_0x2bc999('0x1b'),_0x2e1af5[_0x2bc999('0x21')],_0x2e1af5['id']),util[_0x2bc999('0xa')](_0x435dc9,{'showHidden':![],'depth':null})),_0x5522ee;});}else return null;},'beforeUpdate':function(_0x35c840){const _0x5c2156=_0xfe9181;if(_0x35c840[_0x5c2156('0x1')]('zone')||_0x35c840[_0x5c2156('0x1')](_0x5c2156('0xe'))||_0x35c840[_0x5c2156('0x1')](_0x5c2156('0x12'))||_0x35c840[_0x5c2156('0x1')](_0x5c2156('0x1f'))||_0x35c840[_0x5c2156('0x1')](_0x5c2156('0x18'))||_0x35c840[_0x5c2156('0x1')](_0x5c2156('0x16'))){let _0x29321d,_0x5cd4ed;_0x29321d=_0x35c840[_0x5c2156('0xe')];const _0x4bb8c6=_0x29321d['slice'](-0x1);(_0x4bb8c6==='/'||_0x4bb8c6==='\x5c'||_0x4bb8c6===':')&&(_0x29321d=_0x29321d['substring'](0x0,_0x29321d[_0x5c2156('0x1c')](_0x4bb8c6)));switch(_0x35c840['zone']){case'US':_0x5cd4ed=_0x5c2156('0x5');break;case'AU':_0x5cd4ed=_0x5c2156('0xd');break;case'IN':_0x5cd4ed=_0x5c2156('0x7');break;case'CN':_0x5cd4ed=_0x5c2156('0x2');break;default:_0x5cd4ed=_0x5c2156('0x0');break;}const _0x31a496={'method':_0x5c2156('0x11'),'uri':_0x5cd4ed+_0x5c2156('0x17'),'form':{'grant_type':_0x5c2156('0x8'),'client_id':_0x35c840[_0x5c2156('0x12')],'client_secret':_0x35c840[_0x5c2156('0x1f')],'redirect_uri':_0x35c840[_0x5c2156('0xe')],'code':_0x35c840[_0x5c2156('0x18')]},'headers':{'Content-Type':_0x5c2156('0x14')}};let _0x5806fe=null;return rp(_0x31a496)[_0x5c2156('0x6')](function(_0x39016d){const _0x1fa61e=_0x5c2156;return _0x5806fe=JSON['parse'](_0x39016d),_0x5806fe[_0x1fa61e('0x1e')]?(_0x35c840['refreshToken']=_0x5806fe[_0x1fa61e('0x1e')],logger[_0x1fa61e('0x9')](util[_0x1fa61e('0x1a')](_0x1fa61e('0xb'),_0x35c840[_0x1fa61e('0x21')],_0x35c840['id']))):logger[_0x1fa61e('0x15')](util[_0x1fa61e('0x1a')](_0x1fa61e('0x1b'),_0x35c840[_0x1fa61e('0x21')],_0x35c840['id']),util['inspect'](_0x5806fe,{'showHidden':![],'depth':null})),null;})[_0x5c2156('0x3')](function(_0xc21bf0){const _0x14c761=_0x5c2156;return logger[_0x14c761('0x15')](util[_0x14c761('0x1a')]('ZohoAccount,\x20Unable\x20to\x20generate\x20the\x20refresh\x20token\x20for\x20account\x20\x22%s\x22\x20#%d',_0x35c840[_0x14c761('0x21')],_0x35c840['id']),util['inspect'](_0x5806fe,{'showHidden':![],'depth':null})),_0xc21bf0;});}else return null;}}});return _0x2503cc;}; \ No newline at end of file +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 diff --git a/server/api/intZohoAccount/intZohoAccount.rpc.js b/server/api/intZohoAccount/intZohoAccount.rpc.js index d1a24be..9f8759e 100644 --- a/server/api/intZohoAccount/intZohoAccount.rpc.js +++ b/server/api/intZohoAccount/intZohoAccount.rpc.js @@ -1 +1 @@ -const a348_0x174d=['stringify','GetZohoAccount','map','limit','message','ShowZohoAccount','where','then','../../mysqldb','options','catch','model','debug','attributes','ZohoAccount','include','error','../../config/logger','findOne','rpc','findAll','raw'];(function(_0x5227d1,_0x174d0d){const _0x5cb45a=function(_0x1c1756){while(--_0x1c1756){_0x5227d1['push'](_0x5227d1['shift']());}};_0x5cb45a(++_0x174d0d);}(a348_0x174d,0x140));const a348_0x5cb4=function(_0x5227d1,_0x174d0d){_0x5227d1=_0x5227d1-0x0;let _0x5cb45a=a348_0x174d[_0x5227d1];return _0x5cb45a;};const _0x3b87d6=a348_0x5cb4;'use strict';const _=require('lodash'),db=require(_0x3b87d6('0x12'))['db'],logger=require(_0x3b87d6('0x5'))(_0x3b87d6('0x7'));exports[_0x3b87d6('0xb')]=function(_0x1c1756){const _0x44797b=this;return new Promise(function(_0x4f361a,_0x35c117){const _0x315000=a348_0x5cb4;return db[_0x315000('0x2')][_0x315000('0x8')]({'raw':_0x1c1756[_0x315000('0x13')]?_0x1c1756['options'][_0x315000('0x9')]===undefined?!![]:![]:!![],'where':_0x1c1756[_0x315000('0x13')]?_0x1c1756['options'][_0x315000('0x10')]||null:null,'attributes':_0x1c1756[_0x315000('0x13')]?_0x1c1756['options'][_0x315000('0x1')]||null:null,'limit':_0x1c1756[_0x315000('0x13')]?_0x1c1756[_0x315000('0x13')][_0x315000('0xd')]||null:null,'include':_0x1c1756[_0x315000('0x13')]?_0x1c1756[_0x315000('0x13')][_0x315000('0x3')]?_[_0x315000('0xc')](_0x1c1756['options'][_0x315000('0x3')],function(_0x4507b9){const _0x1e8fb9=_0x315000;return{'model':db[_0x4507b9[_0x1e8fb9('0x15')]],'as':_0x4507b9['as'],'attributes':_0x4507b9[_0x1e8fb9('0x1')],'include':_0x4507b9[_0x1e8fb9('0x3')]?_[_0x1e8fb9('0xc')](_0x4507b9['include'],function(_0x273023){const _0x2a5301=_0x1e8fb9;return{'model':db[_0x273023[_0x2a5301('0x15')]],'as':_0x273023['as'],'attributes':_0x273023[_0x2a5301('0x1')],'include':_0x273023['include']?_['map'](_0x273023['include'],function(_0xcf0b46){return{'model':db[_0xcf0b46['model']],'as':_0xcf0b46['as'],'attributes':_0xcf0b46['attributes']};}):[]};}):[]};}):[]:[]})[_0x315000('0x11')](function(_0x495a10){const _0xa6db8a=_0x315000;logger['info'](_0xa6db8a('0xb'),_0x1c1756),logger[_0xa6db8a('0x0')]('GetZohoAccount',_0x1c1756,JSON[_0xa6db8a('0xa')](_0x495a10)),_0x4f361a(_0x495a10);})[_0x315000('0x14')](function(_0x4c0ca9){const _0x59fd06=_0x315000;logger[_0x59fd06('0x4')]('GetZohoAccount',_0x4c0ca9[_0x59fd06('0xe')],_0x1c1756),_0x35c117(_0x44797b['error'](0x1f4,_0x4c0ca9[_0x59fd06('0xe')]));});});},exports[_0x3b87d6('0xf')]=function(_0x9bd1c6){const _0x1c031f=this;return new Promise(function(_0x22c5a4,_0x9030c2){const _0x5ba1d7=a348_0x5cb4;return db[_0x5ba1d7('0x2')][_0x5ba1d7('0x6')]({'raw':_0x9bd1c6[_0x5ba1d7('0x13')]?_0x9bd1c6[_0x5ba1d7('0x13')][_0x5ba1d7('0x9')]===undefined?!![]:![]:!![],'where':_0x9bd1c6[_0x5ba1d7('0x13')]?_0x9bd1c6['options'][_0x5ba1d7('0x10')]||null:null,'attributes':_0x9bd1c6[_0x5ba1d7('0x13')]?_0x9bd1c6[_0x5ba1d7('0x13')][_0x5ba1d7('0x1')]||null:null,'include':_0x9bd1c6[_0x5ba1d7('0x13')]?_0x9bd1c6['options'][_0x5ba1d7('0x3')]?_[_0x5ba1d7('0xc')](_0x9bd1c6[_0x5ba1d7('0x13')][_0x5ba1d7('0x3')],function(_0x5a1ab4){const _0x194a95=_0x5ba1d7;return{'model':db[_0x5a1ab4[_0x194a95('0x15')]],'as':_0x5a1ab4['as'],'attributes':_0x5a1ab4[_0x194a95('0x1')],'include':_0x5a1ab4[_0x194a95('0x3')]?_['map'](_0x5a1ab4[_0x194a95('0x3')],function(_0x546332){const _0x9390d7=_0x194a95;return{'model':db[_0x546332[_0x9390d7('0x15')]],'as':_0x546332['as'],'attributes':_0x546332[_0x9390d7('0x1')],'include':_0x546332[_0x9390d7('0x3')]?_['map'](_0x546332[_0x9390d7('0x3')],function(_0x1e136a){const _0xcac387=_0x9390d7;return{'model':db[_0x1e136a[_0xcac387('0x15')]],'as':_0x1e136a['as'],'attributes':_0x1e136a[_0xcac387('0x1')]};}):[]};}):[]};}):[]:[]})[_0x5ba1d7('0x11')](function(_0x30daec){const _0x45acd1=_0x5ba1d7;logger['info'](_0x45acd1('0xf'),_0x9bd1c6),logger[_0x45acd1('0x0')](_0x45acd1('0xf'),_0x9bd1c6,JSON['stringify'](_0x30daec)),_0x22c5a4(_0x30daec);})[_0x5ba1d7('0x14')](function(_0x3611de){const _0xf4bd42=_0x5ba1d7;logger[_0xf4bd42('0x4')](_0xf4bd42('0xf'),_0x3611de[_0xf4bd42('0xe')],_0x9bd1c6),_0x9030c2(_0x1c031f[_0xf4bd42('0x4')](0x1f4,_0x3611de[_0xf4bd42('0xe')]));});});}; \ No newline at end of file +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 diff --git a/server/api/intZohoConfiguration/index.js b/server/api/intZohoConfiguration/index.js index 89e3cc4..a838bc8 100644 --- a/server/api/intZohoConfiguration/index.js +++ b/server/api/intZohoConfiguration/index.js @@ -1 +1 @@ -const a349_0x51a5=['getSubjects','../../components/auth/service','/:id/fields','Router','/:id/descriptions','getDescriptions','destroy','put','/:id','show','post','express','index','/:id/subjects','get','getFields','isAuthenticated','delete','exports'];(function(_0x3539b8,_0x51a54f){const _0x2a1b05=function(_0x16b938){while(--_0x16b938){_0x3539b8['push'](_0x3539b8['shift']());}};_0x2a1b05(++_0x51a54f);}(a349_0x51a5,0x134));const a349_0x2a1b=function(_0x3539b8,_0x51a54f){_0x3539b8=_0x3539b8-0x0;let _0x2a1b05=a349_0x51a5[_0x3539b8];return _0x2a1b05;};const _0x3631b6=a349_0x2a1b;'use strict';const express=require(_0x3631b6('0x7')),router=express[_0x3631b6('0x12')](),auth=require(_0x3631b6('0x10')),controller=require('./intZohoConfiguration.controller');router[_0x3631b6('0xa')]('/',auth[_0x3631b6('0xc')](),controller[_0x3631b6('0x8')]),router[_0x3631b6('0xa')](_0x3631b6('0x4'),auth[_0x3631b6('0xc')](),controller[_0x3631b6('0x5')]),router[_0x3631b6('0xa')](_0x3631b6('0x11'),auth[_0x3631b6('0xc')](),controller[_0x3631b6('0xb')]),router[_0x3631b6('0xa')](_0x3631b6('0x9'),auth[_0x3631b6('0xc')](),controller[_0x3631b6('0xf')]),router['get'](_0x3631b6('0x0'),auth[_0x3631b6('0xc')](),controller[_0x3631b6('0x1')]),router[_0x3631b6('0x6')]('/',auth['isAuthenticated'](),controller['create']),router[_0x3631b6('0x3')](_0x3631b6('0x4'),auth['isAuthenticated'](),controller['update']),router[_0x3631b6('0xd')]('/:id',auth['isAuthenticated'](),controller[_0x3631b6('0x2')]),module[_0x3631b6('0xe')]=router; \ No newline at end of file +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 diff --git a/server/api/intZohoConfiguration/intZohoConfiguration.attributes.js b/server/api/intZohoConfiguration/intZohoConfiguration.attributes.js index 1090a68..6d85740 100644 --- a/server/api/intZohoConfiguration/intZohoConfiguration.attributes.js +++ b/server/api/intZohoConfiguration/intZohoConfiguration.attributes.js @@ -1 +1 @@ -const a350_0x250c=['nothing','contact_lead','STRING','contact','sequelize','lead'];(function(_0x51802b,_0x250c1f){const _0x25d046=function(_0x1bcf73){while(--_0x1bcf73){_0x51802b['push'](_0x51802b['shift']());}};_0x25d046(++_0x250c1f);}(a350_0x250c,0x12d));const a350_0x25d0=function(_0x51802b,_0x250c1f){_0x51802b=_0x51802b-0x0;let _0x25d046=a350_0x250c[_0x51802b];return _0x25d046;};const _0x32c4c0=a350_0x25d0;'use strict';const Sequelize=require(_0x32c4c0('0x3'));module['exports']={'name':{'type':Sequelize[_0x32c4c0('0x1')]},'moduleCreate':{'type':Sequelize['ENUM'](_0x32c4c0('0x4'),_0x32c4c0('0x2'),_0x32c4c0('0x5')),'defaultValue':_0x32c4c0('0x4')},'moduleSearch':{'type':Sequelize['ENUM'](_0x32c4c0('0x0'),_0x32c4c0('0x2'),'lead'),'defaultValue':_0x32c4c0('0x0')},'description':{'type':Sequelize[_0x32c4c0('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/intZohoConfiguration/intZohoConfiguration.controller.js b/server/api/intZohoConfiguration/intZohoConfiguration.controller.js index 4448297..2fea790 100644 --- a/server/api/intZohoConfiguration/intZohoConfiguration.controller.js +++ b/server/api/intZohoConfiguration/intZohoConfiguration.controller.js @@ -1 +1 @@ -const a351_0x36a9=['params','filter','undefined','findAll','options','attributes','offset','catch','name','map','update','where','key','ZohoConfiguration','sort','getFields','length','intersection','keys','include','merge','rawAttributes','VIRTUAL','index','query','json','type','destroy','sendStatus','set','filters','getDescriptions','then','getSubjects','order','status','sequelize','../../mysqldb','fields','limit','model','fieldName','send','lodash','includeAll','stack','like','nolimit','error','../../components/parsers/qs','body','findOne','pick','create'];(function(_0xb1a59,_0x36a911){const _0xff768=function(_0x57b1b4){while(--_0x57b1b4){_0xb1a59['push'](_0xb1a59['shift']());}};_0xff768(++_0x36a911);}(a351_0x36a9,0x86));const a351_0xff76=function(_0xb1a59,_0x36a911){_0xb1a59=_0xb1a59-0x0;let _0xff768=a351_0x36a9[_0xb1a59];return _0xff768;};const _0x2e9a7a=a351_0xff76;'use strict';const _=require(_0x2e9a7a('0x11')),qs=require(_0x2e9a7a('0x17')),logger=require('../../config/logger')('api'),db=require(_0x2e9a7a('0xb'))['db'],{Op}=require(_0x2e9a7a('0xa'));function respondWithResult(_0x57b1b4,_0x344583){return _0x344583=_0x344583||0xc8,function(_0x29ed47){const _0x25f67b=a351_0xff76;if(_0x29ed47)return _0x57b1b4[_0x25f67b('0x9')](_0x344583)['json'](_0x29ed47);};}function respondWithFilteredResult(_0x2cb96b,_0x16e6ab){return function(_0x40966a){const _0x2e9868=a351_0xff76;if(_0x40966a){const _0x45d348=_0x40966a['count'],_0xd11e8f=_0x16e6ab[_0x2e9868('0x22')];let _0x4c5b82=_0x16e6ab[_0x2e9868('0x22')]+_0x16e6ab['limit'],_0x252800;return _0x4c5b82>=_0x45d348?(_0x4c5b82=_0x45d348,_0x252800=0xc8):_0x252800=0xce,_0x2cb96b[_0x2e9868('0x9')](_0x252800),_0x2cb96b[_0x2e9868('0x3')]('Content-Range',_0xd11e8f+'-'+_0x4c5b82+'/'+_0x45d348)[_0x2e9868('0x35')](_0x40966a);}return null;};}function saveUpdates(_0x36a82c){return function(_0x270aa1){const _0x5e4089=a351_0xff76;if(_0x270aa1)return _0x270aa1[_0x5e4089('0x26')](_0x36a82c)['then'](function(_0x5ba426){return _0x5ba426;});return null;};}function removeEntity(_0x54a85f){return function(_0x186723){const _0x100c4e=a351_0xff76;if(_0x186723)return _0x186723[_0x100c4e('0x1')]()['then'](function(){const _0x479407=_0x100c4e;_0x54a85f[_0x479407('0x9')](0xcc)['end']();});};}function handleEntityNotFound(_0x5dc449){return function(_0x5acea5){const _0x59ee2d=a351_0xff76;return!_0x5acea5&&_0x5dc449[_0x59ee2d('0x2')](0x194),_0x5acea5;};}function handleError(_0x4e88e5,_0x889190){return _0x889190=_0x889190||0x1f4,function(_0x5431e6){const _0x5cac14=a351_0xff76;logger[_0x5cac14('0x16')](_0x5431e6[_0x5cac14('0x13')]),_0x5431e6[_0x5cac14('0x24')]&&delete _0x5431e6['name'],_0x4e88e5['status'](_0x889190)[_0x5cac14('0x10')](_0x5431e6);};}exports[_0x2e9a7a('0x33')]=function(_0x3e6412,_0x440b0e){const _0x557a76=_0x2e9a7a;let _0x509e5c={};const _0x41f2a3={},_0x4ab768={'count':0x0,'rows':[]},_0x23320c=_[_0x557a76('0x25')](db[_0x557a76('0x29')][_0x557a76('0x31')],function(_0x29c199){const _0x2d1018=_0x557a76;return{'name':_0x29c199[_0x2d1018('0xf')],'type':_0x29c199[_0x2d1018('0x0')][_0x2d1018('0x28')]};});_0x41f2a3[_0x557a76('0xe')]=_['map'](_0x23320c,'name'),_0x41f2a3[_0x557a76('0x34')]=_[_0x557a76('0x2e')](_0x3e6412[_0x557a76('0x34')]),_0x41f2a3[_0x557a76('0x4')]=_[_0x557a76('0x2d')](_0x41f2a3['model'],_0x41f2a3[_0x557a76('0x34')]),_0x509e5c['attributes']=_[_0x557a76('0x2d')](_0x41f2a3[_0x557a76('0xe')],qs['fields'](_0x3e6412['query']['fields'])),_0x509e5c[_0x557a76('0x21')]=_0x509e5c['attributes'][_0x557a76('0x2c')]?_0x509e5c[_0x557a76('0x21')]:_0x41f2a3[_0x557a76('0xe')];typeof _0x3e6412[_0x557a76('0x34')][_0x557a76('0x15')]===_0x557a76('0x1e')&&(_0x509e5c[_0x557a76('0xd')]=qs[_0x557a76('0xd')](_0x3e6412[_0x557a76('0x34')][_0x557a76('0xd')]),_0x509e5c[_0x557a76('0x22')]=qs['offset'](_0x3e6412[_0x557a76('0x34')][_0x557a76('0x22')]));_0x509e5c[_0x557a76('0x8')]=qs[_0x557a76('0x2a')](_0x3e6412[_0x557a76('0x34')][_0x557a76('0x2a')]),_0x509e5c[_0x557a76('0x27')]=qs['filters'](_[_0x557a76('0x1a')](_0x3e6412[_0x557a76('0x34')],_0x41f2a3['filters']),_0x23320c);_0x3e6412['query'][_0x557a76('0x1d')]&&(_0x509e5c[_0x557a76('0x27')]=_[_0x557a76('0x30')](_0x509e5c[_0x557a76('0x27')],{[Op['or']]:_['map'](_0x23320c,function(_0x2a640f){const _0x5d89c8=_0x557a76;if(_0x2a640f[_0x5d89c8('0x0')]!==_0x5d89c8('0x32')){const _0x462561={};return _0x462561[_0x2a640f['name']]={[Op[_0x5d89c8('0x14')]]:'%'+_0x3e6412[_0x5d89c8('0x34')]['filter']+'%'},_0x462561;}})}));_0x509e5c=_[_0x557a76('0x30')]({},_0x509e5c,_0x3e6412[_0x557a76('0x20')]);const _0x50d812={'where':_0x509e5c[_0x557a76('0x27')]};return db['ZohoConfiguration']['count'](_0x50d812)[_0x557a76('0x6')](function(_0x45baa9){const _0x55013e=_0x557a76;return _0x4ab768['count']=_0x45baa9,_0x3e6412[_0x55013e('0x34')][_0x55013e('0x12')]&&(_0x509e5c[_0x55013e('0x2f')]=[{'all':!![]}]),db[_0x55013e('0x29')][_0x55013e('0x1f')](_0x509e5c);})[_0x557a76('0x6')](function(_0x3c72e7){return _0x4ab768['rows']=_0x3c72e7,_0x4ab768;})[_0x557a76('0x6')](respondWithFilteredResult(_0x440b0e,_0x509e5c))[_0x557a76('0x23')](handleError(_0x440b0e,null));},exports['show']=function(_0x1c9ebd,_0x4d0860){const _0x499f86=_0x2e9a7a;let _0x6d2ec8={'raw':![],'where':{'id':_0x1c9ebd['params']['id']}};const _0x2f752c={};return _0x2f752c[_0x499f86('0xe')]=_[_0x499f86('0x2e')](db[_0x499f86('0x29')][_0x499f86('0x31')]),_0x2f752c[_0x499f86('0x34')]=_[_0x499f86('0x2e')](_0x1c9ebd[_0x499f86('0x34')]),_0x2f752c[_0x499f86('0x4')]=_['intersection'](_0x2f752c['model'],_0x2f752c[_0x499f86('0x34')]),_0x6d2ec8[_0x499f86('0x21')]=_[_0x499f86('0x2d')](_0x2f752c['model'],qs[_0x499f86('0xc')](_0x1c9ebd[_0x499f86('0x34')]['fields'])),_0x6d2ec8[_0x499f86('0x21')]=_0x6d2ec8[_0x499f86('0x21')][_0x499f86('0x2c')]?_0x6d2ec8['attributes']:_0x2f752c[_0x499f86('0xe')],_0x1c9ebd[_0x499f86('0x34')][_0x499f86('0x12')]&&(_0x6d2ec8[_0x499f86('0x2f')]=[{'all':!![]}]),_0x6d2ec8=_['merge']({},_0x6d2ec8,_0x1c9ebd['options']),db[_0x499f86('0x29')][_0x499f86('0x19')](_0x6d2ec8)[_0x499f86('0x6')](handleEntityNotFound(_0x4d0860,null))[_0x499f86('0x6')](respondWithResult(_0x4d0860,null))['catch'](handleError(_0x4d0860,null));},exports[_0x2e9a7a('0x1b')]=function(_0x7a4a46,_0x49b250){const _0x710baf=_0x2e9a7a;return db[_0x710baf('0x29')][_0x710baf('0x1b')](_0x7a4a46[_0x710baf('0x18')],{})[_0x710baf('0x6')](respondWithResult(_0x49b250,0xc9))[_0x710baf('0x23')](handleError(_0x49b250,null));},exports[_0x2e9a7a('0x26')]=function(_0xfd1795,_0x39838c){const _0xd9cac2=_0x2e9a7a;return _0xfd1795[_0xd9cac2('0x18')]['id']&&delete _0xfd1795[_0xd9cac2('0x18')]['id'],db[_0xd9cac2('0x29')][_0xd9cac2('0x19')]({'where':{'id':_0xfd1795[_0xd9cac2('0x1c')]['id']}})[_0xd9cac2('0x6')](handleEntityNotFound(_0x39838c,null))[_0xd9cac2('0x6')](saveUpdates(_0xfd1795[_0xd9cac2('0x18')],null))['then'](respondWithResult(_0x39838c,null))[_0xd9cac2('0x23')](handleError(_0x39838c,null));},exports[_0x2e9a7a('0x1')]=function(_0x37a0e3,_0x2035e8){const _0x1ce090=_0x2e9a7a;return db['ZohoConfiguration'][_0x1ce090('0x19')]({'where':{'id':_0x37a0e3['params']['id']}})[_0x1ce090('0x6')](handleEntityNotFound(_0x2035e8,null))[_0x1ce090('0x6')](removeEntity(_0x2035e8,null))[_0x1ce090('0x23')](handleError(_0x2035e8,null));},exports['getFields']=function(_0x2db844,_0x362087){const _0x42ceed=_0x2e9a7a;let _0x466d6c={};const _0x53fd06={};let _0x1dfa07,_0x2ad031;return db[_0x42ceed('0x29')][_0x42ceed('0x19')]({'where':{'id':_0x2db844[_0x42ceed('0x1c')]['id']}})[_0x42ceed('0x6')](handleEntityNotFound(_0x362087,null))[_0x42ceed('0x6')](function(_0x32958a){const _0x329eb8=_0x42ceed;if(_0x32958a)return _0x1dfa07=_0x32958a,_0x53fd06['model']=_[_0x329eb8('0x2e')](db['ZohoField']['rawAttributes']),_0x53fd06['query']=_[_0x329eb8('0x2e')](_0x2db844['query']),_0x53fd06[_0x329eb8('0x4')]=_[_0x329eb8('0x2d')](_0x53fd06[_0x329eb8('0xe')],_0x53fd06[_0x329eb8('0x34')]),_0x466d6c[_0x329eb8('0x21')]=_[_0x329eb8('0x2d')](_0x53fd06['model'],qs[_0x329eb8('0xc')](_0x2db844[_0x329eb8('0x34')]['fields'])),_0x466d6c[_0x329eb8('0x21')]=_0x466d6c[_0x329eb8('0x21')]['length']?_0x466d6c[_0x329eb8('0x21')]:_0x53fd06[_0x329eb8('0xe')],_0x466d6c[_0x329eb8('0x8')]=qs[_0x329eb8('0x2a')](_0x2db844[_0x329eb8('0x34')][_0x329eb8('0x2a')]),_0x466d6c[_0x329eb8('0x27')]=qs[_0x329eb8('0x4')](_[_0x329eb8('0x1a')](_0x2db844[_0x329eb8('0x34')],_0x53fd06['filters'])),_0x2db844[_0x329eb8('0x34')][_0x329eb8('0x1d')]&&(_0x466d6c[_0x329eb8('0x27')]=_[_0x329eb8('0x30')](_0x466d6c[_0x329eb8('0x27')],{[Op['or']]:_[_0x329eb8('0x25')](_0x466d6c[_0x329eb8('0x21')],function(_0x219f7b){const _0x3d3eab=_0x329eb8,_0x3fa242={};return _0x3fa242[_0x219f7b]={[Op[_0x3d3eab('0x14')]]:'%'+_0x2db844['query']['filter']+'%'},_0x3fa242;})})),_0x466d6c=_[_0x329eb8('0x30')]({},_0x466d6c,_0x2db844[_0x329eb8('0x20')]),_0x1dfa07['getFields'](_0x466d6c);})['then'](function(_0x17f756){const _0x2e4f00=_0x42ceed;if(_0x17f756)return _0x2ad031=_0x17f756[_0x2e4f00('0x2c')],typeof _0x2db844['query']['nolimit']===_0x2e4f00('0x1e')&&(_0x466d6c['limit']=qs[_0x2e4f00('0xd')](_0x2db844['query']['limit']),_0x466d6c[_0x2e4f00('0x22')]=qs[_0x2e4f00('0x22')](_0x2db844[_0x2e4f00('0x34')][_0x2e4f00('0x22')])),_0x1dfa07[_0x2e4f00('0x2b')](_0x466d6c);})[_0x42ceed('0x6')](function(_0xb6c14a){if(_0xb6c14a)return _0xb6c14a?{'count':_0x2ad031,'rows':_0xb6c14a}:null;})['then'](respondWithResult(_0x362087,null))['catch'](handleError(_0x362087,null));},exports[_0x2e9a7a('0x7')]=function(_0x1b7858,_0x38e4d9){const _0x313c17=_0x2e9a7a;let _0x3b716b={};const _0x3a2639={};let _0x91cb60,_0x5d0433;return db[_0x313c17('0x29')]['findOne']({'where':{'id':_0x1b7858[_0x313c17('0x1c')]['id']}})[_0x313c17('0x6')](handleEntityNotFound(_0x38e4d9,null))[_0x313c17('0x6')](function(_0x5e6a2e){const _0x4f023a=_0x313c17;if(_0x5e6a2e)return _0x91cb60=_0x5e6a2e,_0x3a2639[_0x4f023a('0xe')]=_[_0x4f023a('0x2e')](db['ZohoField'][_0x4f023a('0x31')]),_0x3a2639[_0x4f023a('0x34')]=_['keys'](_0x1b7858[_0x4f023a('0x34')]),_0x3a2639['filters']=_[_0x4f023a('0x2d')](_0x3a2639[_0x4f023a('0xe')],_0x3a2639[_0x4f023a('0x34')]),_0x3b716b['attributes']=_[_0x4f023a('0x2d')](_0x3a2639[_0x4f023a('0xe')],qs[_0x4f023a('0xc')](_0x1b7858[_0x4f023a('0x34')][_0x4f023a('0xc')])),_0x3b716b[_0x4f023a('0x21')]=_0x3b716b[_0x4f023a('0x21')][_0x4f023a('0x2c')]?_0x3b716b[_0x4f023a('0x21')]:_0x3a2639[_0x4f023a('0xe')],_0x3b716b[_0x4f023a('0x8')]=qs[_0x4f023a('0x2a')](_0x1b7858[_0x4f023a('0x34')]['sort']),_0x3b716b['where']=qs[_0x4f023a('0x4')](_[_0x4f023a('0x1a')](_0x1b7858['query'],_0x3a2639[_0x4f023a('0x4')])),_0x1b7858['query']['filter']&&(_0x3b716b[_0x4f023a('0x27')]=_[_0x4f023a('0x30')](_0x3b716b[_0x4f023a('0x27')],{[Op['or']]:_[_0x4f023a('0x25')](_0x3b716b[_0x4f023a('0x21')],function(_0xe77cca){const _0x303afb=_0x4f023a,_0x562f04={};return _0x562f04[_0xe77cca]={[Op[_0x303afb('0x14')]]:'%'+_0x1b7858[_0x303afb('0x34')][_0x303afb('0x1d')]+'%'},_0x562f04;})})),_0x3b716b=_[_0x4f023a('0x30')]({},_0x3b716b,_0x1b7858[_0x4f023a('0x20')]),_0x91cb60[_0x4f023a('0x7')](_0x3b716b);})[_0x313c17('0x6')](function(_0x17fd55){const _0x2c42f8=_0x313c17;if(_0x17fd55)return _0x5d0433=_0x17fd55[_0x2c42f8('0x2c')],typeof _0x1b7858[_0x2c42f8('0x34')]['nolimit']===_0x2c42f8('0x1e')&&(_0x3b716b[_0x2c42f8('0xd')]=qs[_0x2c42f8('0xd')](_0x1b7858['query']['limit']),_0x3b716b[_0x2c42f8('0x22')]=qs['offset'](_0x1b7858['query'][_0x2c42f8('0x22')])),_0x91cb60[_0x2c42f8('0x7')](_0x3b716b);})[_0x313c17('0x6')](function(_0x5ce2f0){if(_0x5ce2f0)return _0x5ce2f0?{'count':_0x5d0433,'rows':_0x5ce2f0}:null;})[_0x313c17('0x6')](respondWithResult(_0x38e4d9,null))[_0x313c17('0x23')](handleError(_0x38e4d9,null));},exports[_0x2e9a7a('0x5')]=function(_0x599fa1,_0x2b63f7){const _0x43eba7=_0x2e9a7a;let _0x558a89={};const _0x5cb50a={};let _0x1f95f4,_0x274538;return db[_0x43eba7('0x29')]['findOne']({'where':{'id':_0x599fa1[_0x43eba7('0x1c')]['id']}})['then'](handleEntityNotFound(_0x2b63f7,null))['then'](function(_0x51d8b1){const _0xdecc1e=_0x43eba7;if(_0x51d8b1)return _0x1f95f4=_0x51d8b1,_0x5cb50a[_0xdecc1e('0xe')]=_[_0xdecc1e('0x2e')](db['ZohoField'][_0xdecc1e('0x31')]),_0x5cb50a[_0xdecc1e('0x34')]=_[_0xdecc1e('0x2e')](_0x599fa1[_0xdecc1e('0x34')]),_0x5cb50a[_0xdecc1e('0x4')]=_[_0xdecc1e('0x2d')](_0x5cb50a[_0xdecc1e('0xe')],_0x5cb50a[_0xdecc1e('0x34')]),_0x558a89[_0xdecc1e('0x21')]=_['intersection'](_0x5cb50a[_0xdecc1e('0xe')],qs[_0xdecc1e('0xc')](_0x599fa1[_0xdecc1e('0x34')]['fields'])),_0x558a89[_0xdecc1e('0x21')]=_0x558a89[_0xdecc1e('0x21')][_0xdecc1e('0x2c')]?_0x558a89[_0xdecc1e('0x21')]:_0x5cb50a['model'],_0x558a89[_0xdecc1e('0x8')]=qs[_0xdecc1e('0x2a')](_0x599fa1[_0xdecc1e('0x34')]['sort']),_0x558a89[_0xdecc1e('0x27')]=qs[_0xdecc1e('0x4')](_[_0xdecc1e('0x1a')](_0x599fa1[_0xdecc1e('0x34')],_0x5cb50a[_0xdecc1e('0x4')])),_0x599fa1['query'][_0xdecc1e('0x1d')]&&(_0x558a89['where']=_[_0xdecc1e('0x30')](_0x558a89[_0xdecc1e('0x27')],{[Op['or']]:_[_0xdecc1e('0x25')](_0x558a89['attributes'],function(_0x2cb814){const _0x4dab23=_0xdecc1e,_0x29067f={};return _0x29067f[_0x2cb814]={[Op[_0x4dab23('0x14')]]:'%'+_0x599fa1[_0x4dab23('0x34')][_0x4dab23('0x1d')]+'%'},_0x29067f;})})),_0x558a89=_[_0xdecc1e('0x30')]({},_0x558a89,_0x599fa1[_0xdecc1e('0x20')]),_0x1f95f4[_0xdecc1e('0x5')](_0x558a89);})['then'](function(_0x5c0a9d){const _0x16f6e2=_0x43eba7;if(_0x5c0a9d)return _0x274538=_0x5c0a9d['length'],typeof _0x599fa1[_0x16f6e2('0x34')][_0x16f6e2('0x15')]===_0x16f6e2('0x1e')&&(_0x558a89[_0x16f6e2('0xd')]=qs[_0x16f6e2('0xd')](_0x599fa1[_0x16f6e2('0x34')][_0x16f6e2('0xd')]),_0x558a89[_0x16f6e2('0x22')]=qs[_0x16f6e2('0x22')](_0x599fa1[_0x16f6e2('0x34')][_0x16f6e2('0x22')])),_0x1f95f4[_0x16f6e2('0x5')](_0x558a89);})[_0x43eba7('0x6')](function(_0x2052c1){if(_0x2052c1)return _0x2052c1?{'count':_0x274538,'rows':_0x2052c1}:null;})['then'](respondWithResult(_0x2b63f7,null))[_0x43eba7('0x23')](handleError(_0x2b63f7,null));}; \ No newline at end of file +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 diff --git a/server/api/intZohoConfiguration/intZohoConfiguration.model.js b/server/api/intZohoConfiguration/intZohoConfiguration.model.js index db802b3..e0c92bf 100644 --- a/server/api/intZohoConfiguration/intZohoConfiguration.model.js +++ b/server/api/intZohoConfiguration/intZohoConfiguration.model.js @@ -1 +1 @@ -const a352_0x1af2=['exports','ZohoConfiguration','./intZohoConfiguration.attributes','define'];(function(_0x473fec,_0x1af25f){const _0x2bbb33=function(_0x34f1f9){while(--_0x34f1f9){_0x473fec['push'](_0x473fec['shift']());}};_0x2bbb33(++_0x1af25f);}(a352_0x1af2,0xa4));const a352_0x2bbb=function(_0x473fec,_0x1af25f){_0x473fec=_0x473fec-0x0;let _0x2bbb33=a352_0x1af2[_0x473fec];return _0x2bbb33;};const _0x11b684=a352_0x2bbb;'use strict';const attributes=require(_0x11b684('0x2'));module[_0x11b684('0x0')]=function(_0x34f1f9){const _0x48b34c=_0x11b684,_0x173220=_0x34f1f9[_0x48b34c('0x3')](_0x48b34c('0x1'),attributes,{'tableName':'int_zoho_configurations','paranoid':![],'indexes':[],'timestamps':!![]});return _0x173220;}; \ No newline at end of file +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 diff --git a/server/api/intZohoField/index.js b/server/api/intZohoField/index.js index 755a2b0..4d1e49b 100644 --- a/server/api/intZohoField/index.js +++ b/server/api/intZohoField/index.js @@ -1 +1 @@ -const a353_0x14fc=['destroy','isAuthenticated','post','delete','./intZohoField.controller','exports','get','../../components/auth/service','/:id','update','show','create','index','express'];(function(_0x104c41,_0x14fc55){const _0x3e6d0d=function(_0x14b737){while(--_0x14b737){_0x104c41['push'](_0x104c41['shift']());}};_0x3e6d0d(++_0x14fc55);}(a353_0x14fc,0xff));const a353_0x3e6d=function(_0x104c41,_0x14fc55){_0x104c41=_0x104c41-0x0;let _0x3e6d0d=a353_0x14fc[_0x104c41];return _0x3e6d0d;};const _0x30b54e=a353_0x3e6d;'use strict';const express=require(_0x30b54e('0xa')),router=express['Router'](),auth=require(_0x30b54e('0x4')),controller=require(_0x30b54e('0x1'));router[_0x30b54e('0x3')]('/',auth[_0x30b54e('0xc')](),controller[_0x30b54e('0x9')]),router[_0x30b54e('0x3')](_0x30b54e('0x5'),auth[_0x30b54e('0xc')](),controller[_0x30b54e('0x7')]),router[_0x30b54e('0xd')]('/',auth[_0x30b54e('0xc')](),controller[_0x30b54e('0x8')]),router['put'](_0x30b54e('0x5'),auth[_0x30b54e('0xc')](),controller[_0x30b54e('0x6')]),router[_0x30b54e('0x0')](_0x30b54e('0x5'),auth[_0x30b54e('0xc')](),controller[_0x30b54e('0xb')]),module[_0x30b54e('0x2')]=router; \ No newline at end of file +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 diff --git a/server/api/intZohoField/intZohoField.attributes.js b/server/api/intZohoField/intZohoField.attributes.js index 25dc60b..da2dedf 100644 --- a/server/api/intZohoField/intZohoField.attributes.js +++ b/server/api/intZohoField/intZohoField.attributes.js @@ -1 +1 @@ -const a354_0x1dd5=['customVariable','sequelize','ENUM','variable','string','keyValue','BOOLEAN','STRING'];(function(_0x4ae64e,_0x1dd546){const _0x52b396=function(_0x3203af){while(--_0x3203af){_0x4ae64e['push'](_0x4ae64e['shift']());}};_0x52b396(++_0x1dd546);}(a354_0x1dd5,0x103));const a354_0x52b3=function(_0x4ae64e,_0x1dd546){_0x4ae64e=_0x4ae64e-0x0;let _0x52b396=a354_0x1dd5[_0x4ae64e];return _0x52b396;};const _0x305dec=a354_0x52b3;'use strict';const Sequelize=require(_0x305dec('0x6'));module['exports']={'type':{'type':Sequelize['ENUM'](_0x305dec('0x1'),_0x305dec('0x0'),_0x305dec('0x5'),_0x305dec('0x2')),'defaultValue':_0x305dec('0x1')},'content':{'type':Sequelize[_0x305dec('0x4')]},'key':{'type':Sequelize[_0x305dec('0x4')]},'keyType':{'type':Sequelize[_0x305dec('0x7')](_0x305dec('0x1'),'variable',_0x305dec('0x5'))},'keyContent':{'type':Sequelize[_0x305dec('0x4')]},'idField':{'type':Sequelize[_0x305dec('0x4')]},'nameField':{'type':Sequelize[_0x305dec('0x4')]},'customField':{'type':Sequelize[_0x305dec('0x3')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x305dec('0x4')]}}; \ No newline at end of file +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 diff --git a/server/api/intZohoField/intZohoField.controller.js b/server/api/intZohoField/intZohoField.controller.js index 5b17070..7fb01df 100644 --- a/server/api/intZohoField/intZohoField.controller.js +++ b/server/api/intZohoField/intZohoField.controller.js @@ -1 +1 @@ -const a355_0x1ba6=['lodash','json','status','index','include','limit','catch','sort','model','length','intersection','filter','type','offset','fieldName','where','VIRTUAL','map','destroy','api','create','params','end','update','rawAttributes','nolimit','findOne','keys','rows','../../config/logger','show','then','fields','undefined','filters','error','options','attributes','body','send','count','pick','order','merge','like','query','ZohoField','set','key','name','includeAll','stack'];(function(_0x1ea0df,_0x1ba671){const _0x45fd0c=function(_0x186a47){while(--_0x186a47){_0x1ea0df['push'](_0x1ea0df['shift']());}};_0x45fd0c(++_0x1ba671);}(a355_0x1ba6,0x173));const a355_0x45fd=function(_0x1ea0df,_0x1ba671){_0x1ea0df=_0x1ea0df-0x0;let _0x45fd0c=a355_0x1ba6[_0x1ea0df];return _0x45fd0c;};const _0x38a44e=a355_0x45fd;'use strict';const _=require(_0x38a44e('0x2d')),qs=require('../../components/parsers/qs'),logger=require(_0x38a44e('0x16'))(_0x38a44e('0xc')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x186a47,_0x105eb9){return _0x105eb9=_0x105eb9||0xc8,function(_0x1da92e){const _0x26883a=a355_0x45fd;if(_0x1da92e)return _0x186a47[_0x26883a('0x2f')](_0x105eb9)['json'](_0x1da92e);};}function respondWithFilteredResult(_0x25a122,_0x54f425){return function(_0x4c2a28){const _0x264201=a355_0x45fd;if(_0x4c2a28){const _0x5c39e5=_0x4c2a28['count'],_0x35971e=_0x54f425[_0x264201('0x6')];let _0xaafa1a=_0x54f425[_0x264201('0x6')]+_0x54f425[_0x264201('0x32')],_0x34278d;return _0xaafa1a>=_0x5c39e5?(_0xaafa1a=_0x5c39e5,_0x34278d=0xc8):_0x34278d=0xce,_0x25a122[_0x264201('0x2f')](_0x34278d),_0x25a122[_0x264201('0x28')]('Content-Range',_0x35971e+'-'+_0xaafa1a+'/'+_0x5c39e5)[_0x264201('0x2e')](_0x4c2a28);}return null;};}function saveUpdates(_0x352737){return function(_0x4bc8ba){const _0x1a30e1=a355_0x45fd;if(_0x4bc8ba)return _0x4bc8ba[_0x1a30e1('0x10')](_0x352737)[_0x1a30e1('0x18')](function(_0x5e842b){return _0x5e842b;});return null;};}function removeEntity(_0xa31d13){return function(_0x2fb10d){if(_0x2fb10d)return _0x2fb10d['destroy']()['then'](function(){const _0x18b2d4=a355_0x45fd;_0xa31d13[_0x18b2d4('0x2f')](0xcc)[_0x18b2d4('0xf')]();});};}function handleEntityNotFound(_0x97f8ea){return function(_0x58f024){return!_0x58f024&&_0x97f8ea['sendStatus'](0x194),_0x58f024;};}function handleError(_0x48247a,_0x431e1b){return _0x431e1b=_0x431e1b||0x1f4,function(_0x44784b){const _0x284cad=a355_0x45fd;logger[_0x284cad('0x1c')](_0x44784b[_0x284cad('0x2c')]),_0x44784b[_0x284cad('0x2a')]&&delete _0x44784b[_0x284cad('0x2a')],_0x48247a[_0x284cad('0x2f')](_0x431e1b)[_0x284cad('0x20')](_0x44784b);};}exports[_0x38a44e('0x30')]=function(_0x420cea,_0x58e8e2){const _0x3a4331=_0x38a44e;let _0x122c64={};const _0x13bb13={},_0x271975={'count':0x0,'rows':[]},_0x49a68c=_['map'](db[_0x3a4331('0x27')][_0x3a4331('0x11')],function(_0x1a2202){const _0x281e30=_0x3a4331;return{'name':_0x1a2202[_0x281e30('0x7')],'type':_0x1a2202[_0x281e30('0x5')][_0x281e30('0x29')]};});_0x13bb13[_0x3a4331('0x1')]=_[_0x3a4331('0xa')](_0x49a68c,_0x3a4331('0x2a')),_0x13bb13[_0x3a4331('0x26')]=_[_0x3a4331('0x14')](_0x420cea[_0x3a4331('0x26')]),_0x13bb13[_0x3a4331('0x1b')]=_[_0x3a4331('0x3')](_0x13bb13[_0x3a4331('0x1')],_0x13bb13[_0x3a4331('0x26')]),_0x122c64['attributes']=_[_0x3a4331('0x3')](_0x13bb13[_0x3a4331('0x1')],qs[_0x3a4331('0x19')](_0x420cea[_0x3a4331('0x26')][_0x3a4331('0x19')])),_0x122c64[_0x3a4331('0x1e')]=_0x122c64['attributes'][_0x3a4331('0x2')]?_0x122c64['attributes']:_0x13bb13[_0x3a4331('0x1')];typeof _0x420cea[_0x3a4331('0x26')][_0x3a4331('0x12')]===_0x3a4331('0x1a')&&(_0x122c64['limit']=qs[_0x3a4331('0x32')](_0x420cea[_0x3a4331('0x26')][_0x3a4331('0x32')]),_0x122c64[_0x3a4331('0x6')]=qs['offset'](_0x420cea[_0x3a4331('0x26')][_0x3a4331('0x6')]));_0x122c64[_0x3a4331('0x23')]=qs[_0x3a4331('0x0')](_0x420cea[_0x3a4331('0x26')][_0x3a4331('0x0')]),_0x122c64[_0x3a4331('0x8')]=qs[_0x3a4331('0x1b')](_[_0x3a4331('0x22')](_0x420cea['query'],_0x13bb13['filters']),_0x49a68c);_0x420cea['query'][_0x3a4331('0x4')]&&(_0x122c64[_0x3a4331('0x8')]=_[_0x3a4331('0x24')](_0x122c64[_0x3a4331('0x8')],{[Op['or']]:_[_0x3a4331('0xa')](_0x49a68c,function(_0xc49a6b){const _0x51fc48=_0x3a4331;if(_0xc49a6b['type']!==_0x51fc48('0x9')){const _0xb89291={};return _0xb89291[_0xc49a6b['name']]={[Op[_0x51fc48('0x25')]]:'%'+_0x420cea[_0x51fc48('0x26')]['filter']+'%'},_0xb89291;}})}));_0x122c64=_[_0x3a4331('0x24')]({},_0x122c64,_0x420cea['options']);const _0x4e9297={'where':_0x122c64[_0x3a4331('0x8')]};return db[_0x3a4331('0x27')][_0x3a4331('0x21')](_0x4e9297)[_0x3a4331('0x18')](function(_0x5b06b9){const _0x285461=_0x3a4331;return _0x271975[_0x285461('0x21')]=_0x5b06b9,_0x420cea[_0x285461('0x26')][_0x285461('0x2b')]&&(_0x122c64[_0x285461('0x31')]=[{'all':!![]}]),db[_0x285461('0x27')]['findAll'](_0x122c64);})['then'](function(_0x281a04){const _0x489acd=_0x3a4331;return _0x271975[_0x489acd('0x15')]=_0x281a04,_0x271975;})[_0x3a4331('0x18')](respondWithFilteredResult(_0x58e8e2,_0x122c64))['catch'](handleError(_0x58e8e2,null));},exports[_0x38a44e('0x17')]=function(_0x552d9f,_0x15cdbb){const _0xae87aa=_0x38a44e;let _0x517c24={'raw':!![],'where':{'id':_0x552d9f[_0xae87aa('0xe')]['id']}};const _0x3e8773={};return _0x3e8773[_0xae87aa('0x1')]=_[_0xae87aa('0x14')](db['ZohoField']['rawAttributes']),_0x3e8773['query']=_[_0xae87aa('0x14')](_0x552d9f[_0xae87aa('0x26')]),_0x3e8773['filters']=_[_0xae87aa('0x3')](_0x3e8773[_0xae87aa('0x1')],_0x3e8773[_0xae87aa('0x26')]),_0x517c24['attributes']=_[_0xae87aa('0x3')](_0x3e8773['model'],qs[_0xae87aa('0x19')](_0x552d9f[_0xae87aa('0x26')][_0xae87aa('0x19')])),_0x517c24[_0xae87aa('0x1e')]=_0x517c24[_0xae87aa('0x1e')][_0xae87aa('0x2')]?_0x517c24[_0xae87aa('0x1e')]:_0x3e8773['model'],_0x552d9f[_0xae87aa('0x26')]['includeAll']&&(_0x517c24[_0xae87aa('0x31')]=[{'all':!![]}]),_0x517c24=_[_0xae87aa('0x24')]({},_0x517c24,_0x552d9f[_0xae87aa('0x1d')]),db[_0xae87aa('0x27')][_0xae87aa('0x13')](_0x517c24)[_0xae87aa('0x18')](handleEntityNotFound(_0x15cdbb,null))[_0xae87aa('0x18')](respondWithResult(_0x15cdbb,null))[_0xae87aa('0x33')](handleError(_0x15cdbb,null));},exports[_0x38a44e('0xd')]=function(_0x4c55b1,_0x3f024f){const _0xdd0326=_0x38a44e;return db[_0xdd0326('0x27')]['create'](_0x4c55b1[_0xdd0326('0x1f')],{})[_0xdd0326('0x18')](respondWithResult(_0x3f024f,0xc9))[_0xdd0326('0x33')](handleError(_0x3f024f,null));},exports['update']=function(_0x2f0417,_0x382575){const _0xbc338=_0x38a44e;return _0x2f0417[_0xbc338('0x1f')]['id']&&delete _0x2f0417[_0xbc338('0x1f')]['id'],db['ZohoField'][_0xbc338('0x13')]({'where':{'id':_0x2f0417['params']['id']}})[_0xbc338('0x18')](handleEntityNotFound(_0x382575,null))[_0xbc338('0x18')](saveUpdates(_0x2f0417[_0xbc338('0x1f')],null))[_0xbc338('0x18')](respondWithResult(_0x382575,null))[_0xbc338('0x33')](handleError(_0x382575,null));},exports[_0x38a44e('0xb')]=function(_0x321393,_0x17c8f6){const _0x4691fc=_0x38a44e;return db[_0x4691fc('0x27')][_0x4691fc('0x13')]({'where':{'id':_0x321393[_0x4691fc('0xe')]['id']}})[_0x4691fc('0x18')](handleEntityNotFound(_0x17c8f6,null))[_0x4691fc('0x18')](removeEntity(_0x17c8f6,null))[_0x4691fc('0x33')](handleError(_0x17c8f6,null));}; \ No newline at end of file +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 diff --git a/server/api/intZohoField/intZohoField.model.js b/server/api/intZohoField/intZohoField.model.js index 973a80a..fed7e5c 100644 --- a/server/api/intZohoField/intZohoField.model.js +++ b/server/api/intZohoField/intZohoField.model.js @@ -1 +1 @@ -const a356_0x32fd=['./intZohoField.attributes','FieldId','exports','zoho_unique_index','int_zoho_fields'];(function(_0x3c5d5a,_0x32fd50){const _0x2a2ee2=function(_0xc8433d){while(--_0xc8433d){_0x3c5d5a['push'](_0x3c5d5a['shift']());}};_0x2a2ee2(++_0x32fd50);}(a356_0x32fd,0x91));const a356_0x2a2e=function(_0x3c5d5a,_0x32fd50){_0x3c5d5a=_0x3c5d5a-0x0;let _0x2a2ee2=a356_0x32fd[_0x3c5d5a];return _0x2a2ee2;};const _0x2259a1=a356_0x2a2e;'use strict';const attributes=require(_0x2259a1('0x0'));module[_0x2259a1('0x2')]=function(_0xc8433d){const _0x32dfa6=_0x2259a1,_0x20d72d=_0xc8433d['define']('ZohoField',attributes,{'tableName':_0x32dfa6('0x4'),'paranoid':![],'indexes':[{'name':_0x32dfa6('0x3'),'fields':['idField',_0x32dfa6('0x1')],'unique':!![]}],'timestamps':!![]});return _0x20d72d;}; \ No newline at end of file +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 diff --git a/server/api/integration/index.js b/server/api/integration/index.js index 0d4f0b4..92d5b71 100644 --- a/server/api/integration/index.js +++ b/server/api/integration/index.js @@ -1 +1 @@ -const a357_0x3707=['exports','Router'];(function(_0x11f153,_0x370785){const _0x3da05f=function(_0x4a4d52){while(--_0x4a4d52){_0x11f153['push'](_0x11f153['shift']());}};_0x3da05f(++_0x370785);}(a357_0x3707,0x1af));const a357_0x3da0=function(_0x11f153,_0x370785){_0x11f153=_0x11f153-0x0;let _0x3da05f=a357_0x3707[_0x11f153];return _0x3da05f;};const _0xee21e1=a357_0x3da0;'use strict';const express=require('express'),router=express[_0xee21e1('0x0')]();module[_0xee21e1('0x1')]=router; \ No newline at end of file +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 diff --git a/server/api/integration/integration.attributes.js b/server/api/integration/integration.attributes.js index cbd2ebe..30fe838 100644 --- a/server/api/integration/integration.attributes.js +++ b/server/api/integration/integration.attributes.js @@ -1 +1 @@ -const a358_0x3417=['STRING','INTEGER','exports','unique_name_and_version'];(function(_0x58b6aa,_0x3417fb){const _0x3fc9cd=function(_0x577528){while(--_0x577528){_0x58b6aa['push'](_0x58b6aa['shift']());}};_0x3fc9cd(++_0x3417fb);}(a358_0x3417,0x185));const a358_0x3fc9=function(_0x58b6aa,_0x3417fb){_0x58b6aa=_0x58b6aa-0x0;let _0x3fc9cd=a358_0x3417[_0x58b6aa];return _0x3fc9cd;};const _0x488a32=a358_0x3fc9;'use strict';const Sequelize=require('sequelize');module[_0x488a32('0x1')]={'name':{'type':Sequelize[_0x488a32('0x3')],'allowNull':![],'unique':'unique_name_and_version'},'version':{'type':Sequelize[_0x488a32('0x3')],'allowNull':![],'unique':_0x488a32('0x2')},'main':{'type':Sequelize[_0x488a32('0x3')],'defaultValue':'app.js'},'filename':{'type':Sequelize[_0x488a32('0x3')]},'path':{'type':Sequelize[_0x488a32('0x3')]},'type':{'type':Sequelize[_0x488a32('0x3')]},'size':{'type':Sequelize[_0x488a32('0x0')]},'active':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'author':{'type':Sequelize[_0x488a32('0x3')]},'logo':{'type':Sequelize[_0x488a32('0x3')]},'state':{'type':Sequelize['STRING'],'unique':'state'},'description':{'type':Sequelize['STRING']},'title':{'type':Sequelize[_0x488a32('0x3')]},'remoteUri':{'type':Sequelize[_0x488a32('0x3')]},'link':{'type':Sequelize['STRING'],'defaultValue':'#'}}; \ No newline at end of file +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 diff --git a/server/api/integration/integration.controller.js b/server/api/integration/integration.controller.js index 4f89722..6c5d281 100644 --- a/server/api/integration/integration.controller.js +++ b/server/api/integration/integration.controller.js @@ -1 +1 @@ -const a359_0x382d=['limit','rawAttributes','params','end','sendStatus','keys','options','length','includeAll','order','filter','map','like','body','../../config/logger','include','destroy','count','sort','create','lodash','offset','stack','model','rows','intersection','filters','Content-Range','json','sequelize','pick','status','../../mysqldb','error','catch','key','then','findOne','fields','send','merge','Integration','nolimit','query','fieldName','update','type','where','name','attributes'];(function(_0x3fe9aa,_0x382db0){const _0x3b8a74=function(_0x50e24c){while(--_0x50e24c){_0x3fe9aa['push'](_0x3fe9aa['shift']());}};_0x3b8a74(++_0x382db0);}(a359_0x382d,0x1b3));const a359_0x3b8a=function(_0x3fe9aa,_0x382db0){_0x3fe9aa=_0x3fe9aa-0x0;let _0x3b8a74=a359_0x382d[_0x3fe9aa];return _0x3b8a74;};const _0x38894d=a359_0x3b8a;'use strict';const _=require(_0x38894d('0x23')),qs=require('../../components/parsers/qs'),logger=require(_0x38894d('0x1d'))('api'),db=require(_0x38894d('0x2f'))['db'],{Op}=require(_0x38894d('0x2c'));function respondWithResult(_0x50e24c,_0x8b93eb){return _0x8b93eb=_0x8b93eb||0xc8,function(_0x19d15e){const _0x4d7ead=a359_0x3b8a;if(_0x19d15e)return _0x50e24c[_0x4d7ead('0x2e')](_0x8b93eb)[_0x4d7ead('0x2b')](_0x19d15e);};}function respondWithFilteredResult(_0x272d92,_0x4fe9e8){return function(_0x45ec5b){const _0x530e75=a359_0x3b8a;if(_0x45ec5b){const _0x28f933=_0x45ec5b['count'],_0x818d4c=_0x4fe9e8['offset'];let _0x2d0b7=_0x4fe9e8[_0x530e75('0x24')]+_0x4fe9e8[_0x530e75('0xf')],_0x171bf7;return _0x2d0b7>=_0x28f933?(_0x2d0b7=_0x28f933,_0x171bf7=0xc8):_0x171bf7=0xce,_0x272d92['status'](_0x171bf7),_0x272d92['set'](_0x530e75('0x2a'),_0x818d4c+'-'+_0x2d0b7+'/'+_0x28f933)[_0x530e75('0x2b')](_0x45ec5b);}return null;};}function saveUpdates(_0x44fbd8){return function(_0x5b7097){const _0x57f5f0=a359_0x3b8a;if(_0x5b7097)return _0x5b7097[_0x57f5f0('0xa')](_0x44fbd8)[_0x57f5f0('0x1')](function(_0x2921f8){return _0x2921f8;});return null;};}function removeEntity(_0x320c53){return function(_0x35b4e1){const _0x1f0584=a359_0x3b8a;if(_0x35b4e1)return _0x35b4e1[_0x1f0584('0x1f')]()[_0x1f0584('0x1')](function(){const _0x37d6d0=_0x1f0584;_0x320c53['status'](0xcc)[_0x37d6d0('0x12')]();});};}function handleEntityNotFound(_0x482d9){return function(_0x574546){const _0x10e315=a359_0x3b8a;return!_0x574546&&_0x482d9[_0x10e315('0x13')](0x194),_0x574546;};}function handleError(_0x391333,_0x48dfd6){return _0x48dfd6=_0x48dfd6||0x1f4,function(_0x38b9a9){const _0x234e34=a359_0x3b8a;logger[_0x234e34('0x30')](_0x38b9a9[_0x234e34('0x25')]),_0x38b9a9[_0x234e34('0xd')]&&delete _0x38b9a9[_0x234e34('0xd')],_0x391333[_0x234e34('0x2e')](_0x48dfd6)[_0x234e34('0x4')](_0x38b9a9);};}exports['index']=function(_0x2894c1,_0xaa4df3){const _0x34ba46=_0x38894d;let _0x275c69={};const _0x2c6001={},_0x5726aa={'count':0x0,'rows':[]},_0x1d85bd=_[_0x34ba46('0x1a')](db['Integration'][_0x34ba46('0x10')],function(_0x11b0c0){const _0x56c63a=_0x34ba46;return{'name':_0x11b0c0[_0x56c63a('0x9')],'type':_0x11b0c0[_0x56c63a('0xb')][_0x56c63a('0x0')]};});_0x2c6001[_0x34ba46('0x26')]=_[_0x34ba46('0x1a')](_0x1d85bd,'name'),_0x2c6001[_0x34ba46('0x8')]=_[_0x34ba46('0x14')](_0x2894c1[_0x34ba46('0x8')]),_0x2c6001[_0x34ba46('0x29')]=_[_0x34ba46('0x28')](_0x2c6001[_0x34ba46('0x26')],_0x2c6001[_0x34ba46('0x8')]),_0x275c69[_0x34ba46('0xe')]=_[_0x34ba46('0x28')](_0x2c6001['model'],qs[_0x34ba46('0x3')](_0x2894c1['query'][_0x34ba46('0x3')])),_0x275c69[_0x34ba46('0xe')]=_0x275c69['attributes']['length']?_0x275c69['attributes']:_0x2c6001['model'];typeof _0x2894c1[_0x34ba46('0x8')][_0x34ba46('0x7')]==='undefined'&&(_0x275c69[_0x34ba46('0xf')]=qs['limit'](_0x2894c1[_0x34ba46('0x8')][_0x34ba46('0xf')]),_0x275c69[_0x34ba46('0x24')]=qs[_0x34ba46('0x24')](_0x2894c1[_0x34ba46('0x8')][_0x34ba46('0x24')]));_0x275c69[_0x34ba46('0x18')]=qs[_0x34ba46('0x21')](_0x2894c1[_0x34ba46('0x8')][_0x34ba46('0x21')]),_0x275c69['where']=qs[_0x34ba46('0x29')](_[_0x34ba46('0x2d')](_0x2894c1[_0x34ba46('0x8')],_0x2c6001[_0x34ba46('0x29')]),_0x1d85bd);_0x2894c1[_0x34ba46('0x8')][_0x34ba46('0x19')]&&(_0x275c69[_0x34ba46('0xc')]=_['merge'](_0x275c69[_0x34ba46('0xc')],{[Op['or']]:_[_0x34ba46('0x1a')](_0x1d85bd,function(_0x5249a5){const _0x5f5a54=_0x34ba46;if(_0x5249a5[_0x5f5a54('0xb')]!=='VIRTUAL'){const _0x2af8a0={};return _0x2af8a0[_0x5249a5[_0x5f5a54('0xd')]]={[Op[_0x5f5a54('0x1b')]]:'%'+_0x2894c1[_0x5f5a54('0x8')]['filter']+'%'},_0x2af8a0;}})}));_0x275c69=_[_0x34ba46('0x5')]({},_0x275c69,_0x2894c1[_0x34ba46('0x15')]);const _0x536f70={'where':_0x275c69[_0x34ba46('0xc')]};return db[_0x34ba46('0x6')][_0x34ba46('0x20')](_0x536f70)[_0x34ba46('0x1')](function(_0x4f02b0){const _0x3b5baa=_0x34ba46;return _0x5726aa[_0x3b5baa('0x20')]=_0x4f02b0,_0x2894c1['query'][_0x3b5baa('0x17')]&&(_0x275c69['include']=[{'all':!![]}]),db[_0x3b5baa('0x6')]['findAll'](_0x275c69);})[_0x34ba46('0x1')](function(_0x1ddeb8){const _0x47a3fc=_0x34ba46;return _0x5726aa[_0x47a3fc('0x27')]=_0x1ddeb8,_0x5726aa;})[_0x34ba46('0x1')](respondWithFilteredResult(_0xaa4df3,_0x275c69))[_0x34ba46('0x31')](handleError(_0xaa4df3,null));},exports['show']=function(_0x2bd9ff,_0x5001c1){const _0x389373=_0x38894d;let _0x2b62ee={'raw':![],'where':{'id':_0x2bd9ff[_0x389373('0x11')]['id']}};const _0xde2422={};return _0xde2422[_0x389373('0x26')]=_['keys'](db['Integration']['rawAttributes']),_0xde2422[_0x389373('0x8')]=_[_0x389373('0x14')](_0x2bd9ff['query']),_0xde2422[_0x389373('0x29')]=_[_0x389373('0x28')](_0xde2422['model'],_0xde2422[_0x389373('0x8')]),_0x2b62ee[_0x389373('0xe')]=_['intersection'](_0xde2422[_0x389373('0x26')],qs[_0x389373('0x3')](_0x2bd9ff[_0x389373('0x8')][_0x389373('0x3')])),_0x2b62ee[_0x389373('0xe')]=_0x2b62ee[_0x389373('0xe')][_0x389373('0x16')]?_0x2b62ee[_0x389373('0xe')]:_0xde2422[_0x389373('0x26')],_0x2bd9ff[_0x389373('0x8')][_0x389373('0x17')]&&(_0x2b62ee[_0x389373('0x1e')]=[{'all':!![]}]),_0x2b62ee=_[_0x389373('0x5')]({},_0x2b62ee,_0x2bd9ff[_0x389373('0x15')]),db[_0x389373('0x6')]['findOne'](_0x2b62ee)[_0x389373('0x1')](handleEntityNotFound(_0x5001c1,null))['then'](respondWithResult(_0x5001c1,null))['catch'](handleError(_0x5001c1,null));},exports[_0x38894d('0x22')]=function(_0x2d201f,_0x5b0bf5){const _0x203eeb=_0x38894d;return db[_0x203eeb('0x6')][_0x203eeb('0x22')](_0x2d201f['body'],{})[_0x203eeb('0x1')](respondWithResult(_0x5b0bf5,0xc9))['catch'](handleError(_0x5b0bf5,null));},exports['update']=function(_0x5d9c89,_0x1674bc){const _0xb80f4b=_0x38894d;return _0x5d9c89[_0xb80f4b('0x1c')]['id']&&delete _0x5d9c89[_0xb80f4b('0x1c')]['id'],db[_0xb80f4b('0x6')][_0xb80f4b('0x2')]({'where':{'id':_0x5d9c89['params']['id']}})[_0xb80f4b('0x1')](handleEntityNotFound(_0x1674bc,null))[_0xb80f4b('0x1')](saveUpdates(_0x5d9c89[_0xb80f4b('0x1c')],null))[_0xb80f4b('0x1')](respondWithResult(_0x1674bc,null))[_0xb80f4b('0x31')](handleError(_0x1674bc,null));},exports[_0x38894d('0x1f')]=function(_0x4e12ab,_0x44ea2a){const _0x5244c9=_0x38894d;return db[_0x5244c9('0x6')][_0x5244c9('0x2')]({'where':{'id':_0x4e12ab[_0x5244c9('0x11')]['id']}})['then'](handleEntityNotFound(_0x44ea2a,null))[_0x5244c9('0x1')](removeEntity(_0x44ea2a,null))[_0x5244c9('0x31')](handleError(_0x44ea2a,null));}; \ No newline at end of file +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 diff --git a/server/api/integration/integration.model.js b/server/api/integration/integration.model.js index dcd0949..1566337 100644 --- a/server/api/integration/integration.model.js +++ b/server/api/integration/integration.model.js @@ -1 +1 @@ -const a360_0x3553=['exports','define','./integration.attributes','Integration'];(function(_0x567637,_0x355383){const _0x1139e5=function(_0x2882da){while(--_0x2882da){_0x567637['push'](_0x567637['shift']());}};_0x1139e5(++_0x355383);}(a360_0x3553,0x159));const a360_0x1139=function(_0x567637,_0x355383){_0x567637=_0x567637-0x0;let _0x1139e5=a360_0x3553[_0x567637];return _0x1139e5;};const _0x38d0d3=a360_0x1139;'use strict';const attributes=require(_0x38d0d3('0x1'));module[_0x38d0d3('0x3')]=function(_0x2882da){const _0x19337e=_0x38d0d3,_0x5b12f7=_0x2882da[_0x19337e('0x0')](_0x19337e('0x2'),attributes,{'tableName':'integrations','paranoid':![],'indexes':[],'timestamps':!![]});return _0x5b12f7;}; \ No newline at end of file +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 diff --git a/server/api/integrationReport/index.js b/server/api/integrationReport/index.js index f7725f3..2d80538 100644 --- a/server/api/integrationReport/index.js +++ b/server/api/integrationReport/index.js @@ -1 +1 @@ -const a361_0x5323=['destroy','delete','/:id','get','show','put','/describe','update','index','describe','post','isAuthenticated','Router'];(function(_0x1c6b62,_0x532344){const _0x13858e=function(_0x5553b1){while(--_0x5553b1){_0x1c6b62['push'](_0x1c6b62['shift']());}};_0x13858e(++_0x532344);}(a361_0x5323,0x179));const a361_0x1385=function(_0x1c6b62,_0x532344){_0x1c6b62=_0x1c6b62-0x0;let _0x13858e=a361_0x5323[_0x1c6b62];return _0x13858e;};const _0x196ded=a361_0x1385;'use strict';const express=require('express'),router=express[_0x196ded('0xc')](),auth=require('../../components/auth/service'),controller=require('./integrationReport.controller');router[_0x196ded('0x3')]('/',auth['isAuthenticated'](),controller[_0x196ded('0x8')]),router['get'](_0x196ded('0x6'),auth[_0x196ded('0xb')](),controller[_0x196ded('0x9')]),router[_0x196ded('0x3')](_0x196ded('0x2'),auth['isAuthenticated'](),controller[_0x196ded('0x4')]),router[_0x196ded('0xa')]('/',auth[_0x196ded('0xb')](),controller['create']),router[_0x196ded('0x5')](_0x196ded('0x2'),auth['isAuthenticated'](),controller[_0x196ded('0x7')]),router[_0x196ded('0x1')](_0x196ded('0x2'),auth[_0x196ded('0xb')](),controller[_0x196ded('0x0')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/integrationReport/integrationReport.attributes.js b/server/api/integrationReport/integrationReport.attributes.js index de1c90c..76eb414 100644 --- a/server/api/integrationReport/integrationReport.attributes.js +++ b/server/api/integrationReport/integrationReport.attributes.js @@ -1 +1 @@ -const a362_0x10ec=['RECEIVED','BOOLEAN','ENUM','exports','INTEGER','DATE','FAILED','SENT','TEXT','sequelize','STRING'];(function(_0x244d82,_0x10ec75){const _0x42dd8d=function(_0x2dae9d){while(--_0x2dae9d){_0x244d82['push'](_0x244d82['shift']());}};_0x42dd8d(++_0x10ec75);}(a362_0x10ec,0x194));const a362_0x42dd=function(_0x244d82,_0x10ec75){_0x244d82=_0x244d82-0x0;let _0x42dd8d=a362_0x10ec[_0x244d82];return _0x42dd8d;};const _0x403cea=a362_0x42dd;'use strict';const Sequelize=require(_0x403cea('0x1'));module[_0x403cea('0x6')]={'integration':{'type':Sequelize[_0x403cea('0x2')]},'eventChannel':{'type':Sequelize[_0x403cea('0x2')]},'exitStatus':{'type':Sequelize[_0x403cea('0x2')]},'ticketId':{'type':Sequelize['STRING']},'integrationId':{'type':Sequelize[_0x403cea('0x7')]},'contacts':{'type':Sequelize[_0x403cea('0x2')]},'uniqueid':{'type':Sequelize[_0x403cea('0x2')]},'calleridnum':{'type':Sequelize[_0x403cea('0x2')]},'calleridname':{'type':Sequelize[_0x403cea('0x2')]},'queue':{'type':Sequelize[_0x403cea('0x2')]},'interface':{'type':Sequelize[_0x403cea('0x2')]},'membername':{'type':Sequelize['STRING']},'agentcalledAt':{'type':Sequelize[_0x403cea('0x8')]},'agentconnectAt':{'type':Sequelize['DATE']},'holdtime':{'type':Sequelize[_0x403cea('0x7')]},'agentcomplete':{'type':Sequelize[_0x403cea('0x4')],'defaultValue':![]},'agentcompleteAt':{'type':Sequelize['DATE']},'talktime':{'type':Sequelize[_0x403cea('0x7')]},'agentacw':{'type':Sequelize[_0x403cea('0x4')],'defaultValue':![]},'acwtime':{'type':Sequelize[_0x403cea('0x7')]},'reason':{'type':Sequelize[_0x403cea('0x2')]},'agentringnoanswer':{'type':Sequelize[_0x403cea('0x4')],'defaultValue':![]},'agentringnoanswerAt':{'type':Sequelize[_0x403cea('0x8')]},'agentdump':{'type':Sequelize[_0x403cea('0x4')],'defaultValue':![]},'agentdumpAt':{'type':Sequelize[_0x403cea('0x8')]},'lastevent':{'type':Sequelize[_0x403cea('0x2')]},'channel':{'type':Sequelize['STRING']},'channelstate':{'type':Sequelize['INTEGER']},'channelstatedesc':{'type':Sequelize[_0x403cea('0x2')]},'connectedlinenum':{'type':Sequelize[_0x403cea('0x2')]},'connectedlinename':{'type':Sequelize[_0x403cea('0x2')]},'language':{'type':Sequelize[_0x403cea('0x2')]},'accountcode':{'type':Sequelize['STRING']},'context':{'type':Sequelize[_0x403cea('0x2')]},'exten':{'type':Sequelize[_0x403cea('0x2')]},'priority':{'type':Sequelize[_0x403cea('0x2')]},'destchannel':{'type':Sequelize[_0x403cea('0x2')]},'destchannelstate':{'type':Sequelize[_0x403cea('0x7')]},'destchannelstatedesc':{'type':Sequelize[_0x403cea('0x2')]},'destcalleridnum':{'type':Sequelize[_0x403cea('0x2')]},'destcalleridname':{'type':Sequelize[_0x403cea('0x2')]},'destconnectedlinenum':{'type':Sequelize['STRING']},'destconnectedlinename':{'type':Sequelize[_0x403cea('0x2')]},'destlanguage':{'type':Sequelize['STRING']},'destaccountcode':{'type':Sequelize[_0x403cea('0x2')]},'destcontext':{'type':Sequelize[_0x403cea('0x2')]},'destexten':{'type':Sequelize[_0x403cea('0x2')]},'destpriority':{'type':Sequelize['STRING']},'destuniqueid':{'type':Sequelize[_0x403cea('0x2')]},'messageId':{'type':Sequelize['STRING']},'inReplyTo':{'type':Sequelize[_0x403cea('0x2')]},'subject':{'type':Sequelize[_0x403cea('0x2')]},'from':{'type':Sequelize[_0x403cea('0x2')]},'to':{'type':Sequelize[_0x403cea('0x2')]},'cc':{'type':Sequelize[_0x403cea('0x2')]},'attachment':{'type':Sequelize[_0x403cea('0x0')]},'html':{'type':Sequelize[_0x403cea('0x0')]},'text':{'type':Sequelize[_0x403cea('0x0')]},'status':{'type':Sequelize[_0x403cea('0x5')](_0x403cea('0xa'),'SENDING',_0x403cea('0x3'),_0x403cea('0x9'))},'url':{'type':Sequelize[_0x403cea('0x2')]},'app':{'type':Sequelize[_0x403cea('0x2')]},'appdata':{'type':Sequelize[_0x403cea('0x2')]},'projectId':{'type':Sequelize[_0x403cea('0x7')]}}; \ No newline at end of file +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 diff --git a/server/api/integrationReport/integrationReport.controller.js b/server/api/integrationReport/integrationReport.controller.js index a1293aa..7f0d9c4 100644 --- a/server/api/integrationReport/integrationReport.controller.js +++ b/server/api/integrationReport/integrationReport.controller.js @@ -1 +1 @@ -const a363_0x492e=['status','intersection','attributes','offset','show','error','like','index','rows','catch','type','../../config/logger','map','../../mysqldb','filters','end','include','send','order','limit','findOne','sort','../../components/parsers/qs','query','filter','length','fields','destroy','Content-Range','IntegrationReport','then','count','describe','name','set','stack','body','api','options','rawAttributes','lodash','model','params','fieldName','json','where','key','undefined','merge','sendStatus','keys','includeAll','create','pick'];(function(_0x46a792,_0x492ec8){const _0x2d708c=function(_0x478308){while(--_0x478308){_0x46a792['push'](_0x46a792['shift']());}};_0x2d708c(++_0x492ec8);}(a363_0x492e,0x6d));const a363_0x2d70=function(_0x46a792,_0x492ec8){_0x46a792=_0x46a792-0x0;let _0x2d708c=a363_0x492e[_0x46a792];return _0x2d708c;};const _0x2803b4=a363_0x2d70;'use strict';const _=require(_0x2803b4('0x27')),qs=require(_0x2803b4('0x15')),logger=require(_0x2803b4('0xa'))(_0x2803b4('0x24')),db=require(_0x2803b4('0xc'))['db'],{Op}=require('sequelize');function respondWithResult(_0x478308,_0x4faaf6){return _0x4faaf6=_0x4faaf6||0xc8,function(_0x4f3de6){const _0x388f9f=a363_0x2d70;if(_0x4f3de6)return _0x478308[_0x388f9f('0x35')](_0x4faaf6)[_0x388f9f('0x2b')](_0x4f3de6);};}function respondWithFilteredResult(_0x59cf76,_0x3f4da9){return function(_0x2b6395){const _0x141b5b=a363_0x2d70;if(_0x2b6395){const _0x2917fc=_0x2b6395[_0x141b5b('0x1e')],_0x2ac0c5=_0x3f4da9[_0x141b5b('0x2')];let _0x5672b3=_0x3f4da9[_0x141b5b('0x2')]+_0x3f4da9[_0x141b5b('0x12')],_0x41b934;return _0x5672b3>=_0x2917fc?(_0x5672b3=_0x2917fc,_0x41b934=0xc8):_0x41b934=0xce,_0x59cf76[_0x141b5b('0x35')](_0x41b934),_0x59cf76[_0x141b5b('0x21')](_0x141b5b('0x1b'),_0x2ac0c5+'-'+_0x5672b3+'/'+_0x2917fc)[_0x141b5b('0x2b')](_0x2b6395);}return null;};}function saveUpdates(_0x419ff3){return function(_0x225478){const _0x4625c8=a363_0x2d70;if(_0x225478)return _0x225478['update'](_0x419ff3)[_0x4625c8('0x1d')](function(_0x51eca5){return _0x51eca5;});return null;};}function removeEntity(_0x469911){return function(_0x4ed296){const _0x31d4d5=a363_0x2d70;if(_0x4ed296)return _0x4ed296[_0x31d4d5('0x1a')]()[_0x31d4d5('0x1d')](function(){const _0x5d5a4b=_0x31d4d5;_0x469911[_0x5d5a4b('0x35')](0xcc)[_0x5d5a4b('0xe')]();});};}function handleEntityNotFound(_0x512310){return function(_0x5ac873){const _0x5831cc=a363_0x2d70;return!_0x5ac873&&_0x512310[_0x5831cc('0x30')](0x194),_0x5ac873;};}function handleError(_0x98462a,_0xf65d01){return _0xf65d01=_0xf65d01||0x1f4,function(_0x5197b8){const _0xdda621=a363_0x2d70;logger[_0xdda621('0x4')](_0x5197b8[_0xdda621('0x22')]),_0x5197b8[_0xdda621('0x20')]&&delete _0x5197b8[_0xdda621('0x20')],_0x98462a[_0xdda621('0x35')](_0xf65d01)[_0xdda621('0x10')](_0x5197b8);};}exports[_0x2803b4('0x6')]=function(_0x236a2b,_0x125e93){const _0x2e86f4=_0x2803b4;let _0x4eebbf={};const _0x497d4f={},_0xced6f5={'count':0x0,'rows':[]},_0x18f01c=_['map'](db[_0x2e86f4('0x1c')][_0x2e86f4('0x26')],function(_0x5606db){const _0x42f479=_0x2e86f4;return{'name':_0x5606db[_0x42f479('0x2a')],'type':_0x5606db['type'][_0x42f479('0x2d')]};});_0x497d4f['model']=_[_0x2e86f4('0xb')](_0x18f01c,'name'),_0x497d4f['query']=_[_0x2e86f4('0x31')](_0x236a2b[_0x2e86f4('0x16')]),_0x497d4f[_0x2e86f4('0xd')]=_[_0x2e86f4('0x0')](_0x497d4f[_0x2e86f4('0x28')],_0x497d4f[_0x2e86f4('0x16')]),_0x4eebbf[_0x2e86f4('0x1')]=_[_0x2e86f4('0x0')](_0x497d4f[_0x2e86f4('0x28')],qs['fields'](_0x236a2b[_0x2e86f4('0x16')][_0x2e86f4('0x19')])),_0x4eebbf['attributes']=_0x4eebbf[_0x2e86f4('0x1')][_0x2e86f4('0x18')]?_0x4eebbf[_0x2e86f4('0x1')]:_0x497d4f[_0x2e86f4('0x28')];typeof _0x236a2b[_0x2e86f4('0x16')]['nolimit']===_0x2e86f4('0x2e')&&(_0x4eebbf[_0x2e86f4('0x12')]=qs[_0x2e86f4('0x12')](_0x236a2b['query']['limit']),_0x4eebbf[_0x2e86f4('0x2')]=qs['offset'](_0x236a2b[_0x2e86f4('0x16')][_0x2e86f4('0x2')]));_0x4eebbf[_0x2e86f4('0x11')]=qs[_0x2e86f4('0x14')](_0x236a2b[_0x2e86f4('0x16')][_0x2e86f4('0x14')]),_0x4eebbf[_0x2e86f4('0x2c')]=qs[_0x2e86f4('0xd')](_[_0x2e86f4('0x34')](_0x236a2b[_0x2e86f4('0x16')],_0x497d4f[_0x2e86f4('0xd')]),_0x18f01c);_0x236a2b[_0x2e86f4('0x16')][_0x2e86f4('0x17')]&&(_0x4eebbf[_0x2e86f4('0x2c')]=_[_0x2e86f4('0x2f')](_0x4eebbf[_0x2e86f4('0x2c')],{[Op['or']]:_['map'](_0x18f01c,function(_0x262dc1){const _0x5a8f70=_0x2e86f4;if(_0x262dc1[_0x5a8f70('0x9')]!=='VIRTUAL'){const _0x1b09f9={};return _0x1b09f9[_0x262dc1[_0x5a8f70('0x20')]]={[Op[_0x5a8f70('0x5')]]:'%'+_0x236a2b[_0x5a8f70('0x16')][_0x5a8f70('0x17')]+'%'},_0x1b09f9;}})}));_0x4eebbf=_[_0x2e86f4('0x2f')]({},_0x4eebbf,_0x236a2b[_0x2e86f4('0x25')]);const _0x2507ec={'where':_0x4eebbf[_0x2e86f4('0x2c')]};return db[_0x2e86f4('0x1c')][_0x2e86f4('0x1e')](_0x2507ec)['then'](function(_0x39ee3b){const _0x1a838d=_0x2e86f4;return _0xced6f5['count']=_0x39ee3b,_0x236a2b[_0x1a838d('0x16')][_0x1a838d('0x32')]&&(_0x4eebbf['include']=[{'all':!![]}]),db[_0x1a838d('0x1c')]['findAll'](_0x4eebbf);})[_0x2e86f4('0x1d')](function(_0x106aac){const _0x3f4345=_0x2e86f4;return _0xced6f5[_0x3f4345('0x7')]=_0x106aac,_0xced6f5;})[_0x2e86f4('0x1d')](respondWithFilteredResult(_0x125e93,_0x4eebbf))[_0x2e86f4('0x8')](handleError(_0x125e93,null));},exports[_0x2803b4('0x3')]=function(_0x341e41,_0x360abb){const _0xf73582=_0x2803b4;let _0x226a73={'raw':![],'where':{'id':_0x341e41['params']['id']}};const _0x45285e={};return _0x45285e[_0xf73582('0x28')]=_['keys'](db['IntegrationReport']['rawAttributes']),_0x45285e[_0xf73582('0x16')]=_[_0xf73582('0x31')](_0x341e41['query']),_0x45285e['filters']=_['intersection'](_0x45285e[_0xf73582('0x28')],_0x45285e[_0xf73582('0x16')]),_0x226a73[_0xf73582('0x1')]=_[_0xf73582('0x0')](_0x45285e['model'],qs[_0xf73582('0x19')](_0x341e41['query'][_0xf73582('0x19')])),_0x226a73[_0xf73582('0x1')]=_0x226a73[_0xf73582('0x1')]['length']?_0x226a73[_0xf73582('0x1')]:_0x45285e[_0xf73582('0x28')],_0x341e41['query']['includeAll']&&(_0x226a73[_0xf73582('0xf')]=[{'all':!![]}]),_0x226a73=_[_0xf73582('0x2f')]({},_0x226a73,_0x341e41[_0xf73582('0x25')]),db[_0xf73582('0x1c')][_0xf73582('0x13')](_0x226a73)['then'](handleEntityNotFound(_0x360abb,null))[_0xf73582('0x1d')](respondWithResult(_0x360abb,null))[_0xf73582('0x8')](handleError(_0x360abb,null));},exports[_0x2803b4('0x33')]=function(_0x368630,_0x3cf11c){const _0x44744e=_0x2803b4;return db['IntegrationReport'][_0x44744e('0x33')](_0x368630['body'],{})['then'](respondWithResult(_0x3cf11c,0xc9))['catch'](handleError(_0x3cf11c,null));},exports['update']=function(_0x12c20f,_0x1b9cf5){const _0x51d968=_0x2803b4;return _0x12c20f['body']['id']&&delete _0x12c20f[_0x51d968('0x23')]['id'],db['IntegrationReport'][_0x51d968('0x13')]({'where':{'id':_0x12c20f[_0x51d968('0x29')]['id']}})['then'](handleEntityNotFound(_0x1b9cf5,null))[_0x51d968('0x1d')](saveUpdates(_0x12c20f['body'],null))[_0x51d968('0x1d')](respondWithResult(_0x1b9cf5,null))[_0x51d968('0x8')](handleError(_0x1b9cf5,null));},exports[_0x2803b4('0x1a')]=function(_0x32fe50,_0x246fcc){const _0x2cfcaf=_0x2803b4;return db['IntegrationReport'][_0x2cfcaf('0x13')]({'where':{'id':_0x32fe50['params']['id']}})[_0x2cfcaf('0x1d')](handleEntityNotFound(_0x246fcc,null))[_0x2cfcaf('0x1d')](removeEntity(_0x246fcc,null))[_0x2cfcaf('0x8')](handleError(_0x246fcc,null));},exports[_0x2803b4('0x1f')]=function(_0x5cb0c5,_0x3d5e1f){const _0x1ad237=_0x2803b4;return db[_0x1ad237('0x1c')][_0x1ad237('0x1f')]()[_0x1ad237('0x1d')](respondWithResult(_0x3d5e1f,null))[_0x1ad237('0x8')](handleError(_0x3d5e1f,null));}; \ No newline at end of file +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 diff --git a/server/api/integrationReport/integrationReport.model.js b/server/api/integrationReport/integrationReport.model.js index af461c4..b1cafd5 100644 --- a/server/api/integrationReport/integrationReport.model.js +++ b/server/api/integrationReport/integrationReport.model.js @@ -1 +1 @@ -const a364_0x3ec5=['./integrationReport.attributes','exports','IntegrationReport','report_integration'];(function(_0x1dd86b,_0x3ec5b7){const _0x37cc88=function(_0x31593d){while(--_0x31593d){_0x1dd86b['push'](_0x1dd86b['shift']());}};_0x37cc88(++_0x3ec5b7);}(a364_0x3ec5,0x79));const a364_0x37cc=function(_0x1dd86b,_0x3ec5b7){_0x1dd86b=_0x1dd86b-0x0;let _0x37cc88=a364_0x3ec5[_0x1dd86b];return _0x37cc88;};const _0x21a5a1=a364_0x37cc;'use strict';const attributes=require(_0x21a5a1('0x3'));module[_0x21a5a1('0x0')]=function(_0x31593d){const _0x11a069=_0x21a5a1,_0x295c3b=_0x31593d['define'](_0x11a069('0x1'),attributes,{'tableName':_0x11a069('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x295c3b;}; \ No newline at end of file +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 diff --git a/server/api/interval/index.js b/server/api/interval/index.js index 8baba38..acda9ef 100644 --- a/server/api/interval/index.js +++ b/server/api/interval/index.js @@ -1 +1 @@ -const a365_0x5a72=['Router','/:id','addInterval','/:id/sub_intervals/create_many','create','destroy','get','addIntervals','post','/:id/sub_intervals','update','put','isAuthenticated','getIntervals','./interval.controller'];(function(_0x55db75,_0x5a7213){const _0x8c9743=function(_0x4cac51){while(--_0x4cac51){_0x55db75['push'](_0x55db75['shift']());}};_0x8c9743(++_0x5a7213);}(a365_0x5a72,0x10c));const a365_0x8c97=function(_0x55db75,_0x5a7213){_0x55db75=_0x55db75-0x0;let _0x8c9743=a365_0x5a72[_0x55db75];return _0x8c9743;};const _0x1e867f=a365_0x8c97;'use strict';const express=require('express'),router=express[_0x1e867f('0x2')](),auth=require('../../components/auth/service'),controller=require(_0x1e867f('0x1'));router[_0x1e867f('0x8')]('/',auth[_0x1e867f('0xe')](),controller['index']),router[_0x1e867f('0x8')]('/:id',auth[_0x1e867f('0xe')](),controller['show']),router[_0x1e867f('0x8')](_0x1e867f('0xb'),auth[_0x1e867f('0xe')](),controller[_0x1e867f('0x0')]),router[_0x1e867f('0xa')]('/',auth['isAuthenticated'](),controller[_0x1e867f('0x6')]),router['post'](_0x1e867f('0xb'),auth[_0x1e867f('0xe')](),controller[_0x1e867f('0x4')]),router[_0x1e867f('0xa')](_0x1e867f('0x5'),auth[_0x1e867f('0xe')](),controller[_0x1e867f('0x9')]),router[_0x1e867f('0xd')](_0x1e867f('0x3'),auth[_0x1e867f('0xe')](),controller[_0x1e867f('0xc')]),router['delete'](_0x1e867f('0x3'),auth['isAuthenticated'](),controller[_0x1e867f('0x7')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/interval/interval.attributes.js b/server/api/interval/interval.attributes.js index a2992ba..e20cc1d 100644 --- a/server/api/interval/interval.attributes.js +++ b/server/api/interval/interval.attributes.js @@ -1 +1 @@ -const a366_0x3b42=['STRING','exports'];(function(_0x20afd5,_0x3b42d2){const _0xe7aa6f=function(_0x5a28e9){while(--_0x5a28e9){_0x20afd5['push'](_0x20afd5['shift']());}};_0xe7aa6f(++_0x3b42d2);}(a366_0x3b42,0x123));const a366_0xe7aa=function(_0x20afd5,_0x3b42d2){_0x20afd5=_0x20afd5-0x0;let _0xe7aa6f=a366_0x3b42[_0x20afd5];return _0xe7aa6f;};const _0x23decc=a366_0xe7aa;'use strict';const Sequelize=require('sequelize');module[_0x23decc('0x0')]={'name':{'type':Sequelize[_0x23decc('0x1')]},'description':{'type':Sequelize[_0x23decc('0x1')]},'interval':{'type':Sequelize['STRING'],'allowNull':!![]}}; \ No newline at end of file +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 diff --git a/server/api/interval/interval.controller.js b/server/api/interval/interval.controller.js index d549d6a..58c8f83 100644 --- a/server/api/interval/interval.controller.js +++ b/server/api/interval/interval.controller.js @@ -1 +1 @@ -const a367_0x2ef1=['sequelize','offset','map','findOne','findAll','send','order','intersection','IntervalId','count','get','undefined','key','then','sort','merge','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','length','limit','api','pick','lodash','rows','sendStatus','type','addInterval','index','include','includeAll','rawAttributes','create','end','filter','../../components/parsers/qs','name','Content-Range','filters','catch','body','UserProfileSection','set','json','Intervals','nolimit','fields','stack','query','show','model','autoAssociation','keys','UserProfileResource','params','bulkCreate','error','where','destroy','user','attributes','../../mysqldb','../../config/logger','status','like','options','getIntervals','Interval'];(function(_0x22b73b,_0x2ef126){const _0x1104e3=function(_0x400d05){while(--_0x400d05){_0x22b73b['push'](_0x22b73b['shift']());}};_0x1104e3(++_0x2ef126);}(a367_0x2ef1,0xa7));const a367_0x1104=function(_0x22b73b,_0x2ef126){_0x22b73b=_0x22b73b-0x0;let _0x1104e3=a367_0x2ef1[_0x22b73b];return _0x1104e3;};const _0x268a98=a367_0x1104;'use strict';const _=require(_0x268a98('0x34')),qs=require(_0x268a98('0x40')),logger=require(_0x268a98('0x19'))(_0x268a98('0x32')),db=require(_0x268a98('0x18'))['db'],{Op}=require(_0x268a98('0x1f'));function respondWithResult(_0x400d05,_0x4de431){return _0x4de431=_0x4de431||0xc8,function(_0xe1afc2){const _0x50807a=a367_0x1104;if(_0xe1afc2)return _0x400d05[_0x50807a('0x1a')](_0x4de431)['json'](_0xe1afc2);};}function respondWithFilteredResult(_0x382e88,_0x32182f){return function(_0x269341){const _0x216309=a367_0x1104;if(_0x269341){const _0x7b6ed1=_0x269341[_0x216309('0x28')],_0x5d9e66=_0x32182f[_0x216309('0x20')];let _0x31ca26=_0x32182f['offset']+_0x32182f[_0x216309('0x31')],_0x5ea93f;return _0x31ca26>=_0x7b6ed1?(_0x31ca26=_0x7b6ed1,_0x5ea93f=0xc8):_0x5ea93f=0xce,_0x382e88[_0x216309('0x1a')](_0x5ea93f),_0x382e88[_0x216309('0x5')](_0x216309('0x0'),_0x5d9e66+'-'+_0x31ca26+'/'+_0x7b6ed1)[_0x216309('0x6')](_0x269341);}return null;};}function saveUpdates(_0x3d0587){return function(_0x55b5c4){const _0x52579e=a367_0x1104;if(_0x55b5c4)return _0x55b5c4['update'](_0x3d0587)[_0x52579e('0x2c')](function(_0x1e6be4){return _0x1e6be4;});return null;};}function removeEntity(_0x5918d7){return function(_0x4b73ef){const _0x1cb06c=a367_0x1104;if(_0x4b73ef)return _0x4b73ef[_0x1cb06c('0x15')]()[_0x1cb06c('0x2c')](function(){const _0x179795=_0x1cb06c,_0x5a10dc=_0x4b73ef['get']({'plain':!![]}),_0x3dc8f9=_0x179795('0x7');return db['UserProfileResource']['destroy']({'where':{'type':_0x3dc8f9,'resourceId':_0x5a10dc['id']}})[_0x179795('0x2c')](function(){return _0x4b73ef;});})[_0x1cb06c('0x2c')](function(){const _0xe0bf87=_0x1cb06c;_0x5918d7['status'](0xcc)[_0xe0bf87('0x3e')]();});};}function handleEntityNotFound(_0x4f5669){return function(_0x40133a){const _0x19f1fd=a367_0x1104;return!_0x40133a&&_0x4f5669[_0x19f1fd('0x36')](0x194),_0x40133a;};}function handleError(_0x136af8,_0x4620f8){return _0x4620f8=_0x4620f8||0x1f4,function(_0x507c){const _0x2bec89=a367_0x1104;logger[_0x2bec89('0x13')](_0x507c[_0x2bec89('0xa')]),_0x507c[_0x2bec89('0x41')]&&delete _0x507c[_0x2bec89('0x41')],_0x136af8[_0x2bec89('0x1a')](_0x4620f8)[_0x2bec89('0x24')](_0x507c);};}exports[_0x268a98('0x39')]=function(_0x27ae52,_0x1c8fd9){const _0x4ba5ae=_0x268a98;let _0x4b7368={};const _0x1313ed={},_0x5dd3ed={'count':0x0,'rows':[]},_0x345a06=_[_0x4ba5ae('0x21')](db[_0x4ba5ae('0x1e')][_0x4ba5ae('0x3c')],function(_0x384944){const _0x5b7536=_0x4ba5ae;return{'name':_0x384944['fieldName'],'type':_0x384944[_0x5b7536('0x37')][_0x5b7536('0x2b')]};});_0x1313ed[_0x4ba5ae('0xd')]=_[_0x4ba5ae('0x21')](_0x345a06,_0x4ba5ae('0x41')),_0x1313ed[_0x4ba5ae('0xb')]=_['keys'](_0x27ae52['query']),_0x1313ed[_0x4ba5ae('0x1')]=_[_0x4ba5ae('0x26')](_0x1313ed['model'],_0x1313ed['query']),_0x4b7368[_0x4ba5ae('0x17')]=_['intersection'](_0x1313ed[_0x4ba5ae('0xd')],qs['fields'](_0x27ae52['query'][_0x4ba5ae('0x9')])),_0x4b7368['attributes']=_0x4b7368['attributes']['length']?_0x4b7368[_0x4ba5ae('0x17')]:_0x1313ed[_0x4ba5ae('0xd')];typeof _0x27ae52[_0x4ba5ae('0xb')]['nolimit']===_0x4ba5ae('0x2a')&&(_0x4b7368[_0x4ba5ae('0x31')]=qs['limit'](_0x27ae52[_0x4ba5ae('0xb')][_0x4ba5ae('0x31')]),_0x4b7368['offset']=qs[_0x4ba5ae('0x20')](_0x27ae52[_0x4ba5ae('0xb')][_0x4ba5ae('0x20')]));_0x4b7368[_0x4ba5ae('0x25')]=qs['sort'](_0x27ae52[_0x4ba5ae('0xb')][_0x4ba5ae('0x2d')]),_0x4b7368['where']=qs['filters'](_['pick'](_0x27ae52[_0x4ba5ae('0xb')],_0x1313ed[_0x4ba5ae('0x1')]),_0x345a06);_0x27ae52[_0x4ba5ae('0xb')][_0x4ba5ae('0x3f')]&&(_0x4b7368['where']=_['merge'](_0x4b7368[_0x4ba5ae('0x14')],{[Op['or']]:_[_0x4ba5ae('0x21')](_0x345a06,function(_0x485546){const _0x376218=_0x4ba5ae;if(_0x485546[_0x376218('0x37')]!=='VIRTUAL'){const _0x43e8d0={};return _0x43e8d0[_0x485546['name']]={[Op[_0x376218('0x1b')]]:'%'+_0x27ae52[_0x376218('0xb')][_0x376218('0x3f')]+'%'},_0x43e8d0;}})}));_0x4b7368=_[_0x4ba5ae('0x2e')]({},_0x4b7368,_0x27ae52['options']);const _0x23c856={'where':_0x4b7368[_0x4ba5ae('0x14')]};return db[_0x4ba5ae('0x1e')][_0x4ba5ae('0x28')](_0x23c856)[_0x4ba5ae('0x2c')](function(_0x373ef6){const _0xf19387=_0x4ba5ae;return _0x5dd3ed['count']=_0x373ef6,_0x27ae52[_0xf19387('0xb')]['includeAll']&&(_0x4b7368['include']=[{'all':!![]}]),db[_0xf19387('0x1e')][_0xf19387('0x23')](_0x4b7368);})[_0x4ba5ae('0x2c')](function(_0x4875b7){const _0x2093f2=_0x4ba5ae;return _0x5dd3ed[_0x2093f2('0x35')]=_0x4875b7,_0x5dd3ed;})[_0x4ba5ae('0x2c')](respondWithFilteredResult(_0x1c8fd9,_0x4b7368))[_0x4ba5ae('0x2')](handleError(_0x1c8fd9,null));},exports[_0x268a98('0xc')]=function(_0x58131c,_0x14d47a){const _0x3228be=_0x268a98;let _0x3f3ba3={'raw':!![],'where':{'id':_0x58131c['params']['id']}};const _0x409de2={};return _0x409de2[_0x3228be('0xd')]=_['keys'](db[_0x3228be('0x1e')]['rawAttributes']),_0x409de2[_0x3228be('0xb')]=_['keys'](_0x58131c[_0x3228be('0xb')]),_0x409de2[_0x3228be('0x1')]=_[_0x3228be('0x26')](_0x409de2['model'],_0x409de2[_0x3228be('0xb')]),_0x3f3ba3[_0x3228be('0x17')]=_[_0x3228be('0x26')](_0x409de2[_0x3228be('0xd')],qs['fields'](_0x58131c[_0x3228be('0xb')][_0x3228be('0x9')])),_0x3f3ba3[_0x3228be('0x17')]=_0x3f3ba3[_0x3228be('0x17')][_0x3228be('0x30')]?_0x3f3ba3[_0x3228be('0x17')]:_0x409de2['model'],_0x58131c[_0x3228be('0xb')][_0x3228be('0x3b')]&&(_0x3f3ba3[_0x3228be('0x3a')]=[{'all':!![]}]),_0x3f3ba3=_[_0x3228be('0x2e')]({},_0x3f3ba3,_0x58131c[_0x3228be('0x1c')]),db[_0x3228be('0x1e')]['findOne'](_0x3f3ba3)[_0x3228be('0x2c')](handleEntityNotFound(_0x14d47a,null))[_0x3228be('0x2c')](respondWithResult(_0x14d47a,null))['catch'](handleError(_0x14d47a,null));},exports[_0x268a98('0x3d')]=function(_0x37e39d,_0x411fa0){const _0x4a8124=_0x268a98;return db[_0x4a8124('0x1e')]['create'](_0x37e39d[_0x4a8124('0x3')],{})[_0x4a8124('0x2c')](function(_0x22120f){const _0x4b6a87=_0x4a8124,_0x465a0b=_0x37e39d['user']['get']({'plain':!![]});if(!_0x465a0b)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x465a0b['role']===_0x4b6a87('0x16')){const _0x466e75=_0x22120f[_0x4b6a87('0x29')]({'plain':!![]}),_0x1d2467='Intervals';return db[_0x4b6a87('0x4')][_0x4b6a87('0x22')]({'where':{'name':_0x1d2467,'userProfileId':_0x465a0b['userProfileId']},'raw':!![]})[_0x4b6a87('0x2c')](function(_0x2f401b){const _0x2d3b2f=_0x4b6a87;return _0x2f401b&&_0x2f401b[_0x2d3b2f('0xe')]===0x0?db[_0x2d3b2f('0x10')]['create']({'name':_0x466e75[_0x2d3b2f('0x41')],'resourceId':_0x466e75['id'],'type':_0x2f401b[_0x2d3b2f('0x41')],'sectionId':_0x2f401b['id']},{})[_0x2d3b2f('0x2c')](function(){return _0x22120f;}):_0x22120f;})[_0x4b6a87('0x2')](function(_0x5a5aa7){const _0x19b55b=_0x4b6a87;logger['error'](_0x19b55b('0x2f'),_0x5a5aa7);throw _0x5a5aa7;});}return _0x22120f;})[_0x4a8124('0x2c')](respondWithResult(_0x411fa0,0xc9))['catch'](handleError(_0x411fa0,null));},exports['update']=function(_0x130eae,_0x5f2b79){const _0xd9f130=_0x268a98;return _0x130eae['body']['id']&&delete _0x130eae[_0xd9f130('0x3')]['id'],db[_0xd9f130('0x1e')][_0xd9f130('0x22')]({'where':{'id':_0x130eae[_0xd9f130('0x11')]['id']}})[_0xd9f130('0x2c')](handleEntityNotFound(_0x5f2b79,null))[_0xd9f130('0x2c')](saveUpdates(_0x130eae['body'],null))[_0xd9f130('0x2c')](respondWithResult(_0x5f2b79,null))[_0xd9f130('0x2')](handleError(_0x5f2b79,null));},exports[_0x268a98('0x15')]=function(_0x387ea2,_0x30e20e){const _0x471cf2=_0x268a98;return db[_0x471cf2('0x1e')][_0x471cf2('0x22')]({'where':{'id':_0x387ea2['params']['id']}})['then'](handleEntityNotFound(_0x30e20e,null))['then'](removeEntity(_0x30e20e,null))[_0x471cf2('0x2')](handleError(_0x30e20e,null));},exports[_0x268a98('0x38')]=function(_0xbc17d6,_0x2634b5){const _0x401b42=_0x268a98;return _0xbc17d6['body']['id']&&delete _0xbc17d6[_0x401b42('0x3')]['id'],db[_0x401b42('0x1e')]['findOne']({'where':{'id':_0xbc17d6[_0x401b42('0x11')]['id']}})[_0x401b42('0x2c')](handleEntityNotFound(_0x2634b5,null))[_0x401b42('0x2c')](function(_0x1586d5){const _0x5a9019=_0x401b42;if(_0x1586d5)return _0xbc17d6[_0x5a9019('0x3')][_0x5a9019('0x27')]=_0x1586d5['id'],db[_0x5a9019('0x1e')][_0x5a9019('0x3d')](_0xbc17d6[_0x5a9019('0x3')]);})[_0x401b42('0x2c')](respondWithResult(_0x2634b5,null))['catch'](handleError(_0x2634b5,null));},exports[_0x268a98('0x1d')]=function(_0xf7c1cf,_0x33a65b){const _0x178613=_0x268a98;let _0x323b8a={};const _0x25c6af={};let _0x20d372,_0x23983d;return db[_0x178613('0x1e')]['findOne']({'where':{'id':_0xf7c1cf[_0x178613('0x11')]['id']}})[_0x178613('0x2c')](handleEntityNotFound(_0x33a65b,null))['then'](function(_0x3a88a2){const _0x32b429=_0x178613;if(_0x3a88a2)return _0x20d372=_0x3a88a2,_0x25c6af['model']=_[_0x32b429('0xf')](db[_0x32b429('0x1e')][_0x32b429('0x3c')]),_0x25c6af[_0x32b429('0xb')]=_[_0x32b429('0xf')](_0xf7c1cf['query']),_0x25c6af['filters']=_['intersection'](_0x25c6af[_0x32b429('0xd')],_0x25c6af[_0x32b429('0xb')]),_0x323b8a[_0x32b429('0x17')]=_[_0x32b429('0x26')](_0x25c6af[_0x32b429('0xd')],qs['fields'](_0xf7c1cf[_0x32b429('0xb')]['fields'])),_0x323b8a['attributes']=_0x323b8a[_0x32b429('0x17')][_0x32b429('0x30')]?_0x323b8a[_0x32b429('0x17')]:_0x25c6af[_0x32b429('0xd')],_0x323b8a['order']=qs[_0x32b429('0x2d')](_0xf7c1cf['query'][_0x32b429('0x2d')]),_0x323b8a[_0x32b429('0x14')]=qs[_0x32b429('0x1')](_[_0x32b429('0x33')](_0xf7c1cf[_0x32b429('0xb')],_0x25c6af[_0x32b429('0x1')])),_0xf7c1cf[_0x32b429('0xb')][_0x32b429('0x3f')]&&(_0x323b8a[_0x32b429('0x14')]=_['merge'](_0x323b8a[_0x32b429('0x14')],{[Op['or']]:_['map'](_0x323b8a['attributes'],function(_0x8661da){const _0x2a9e86=_0x32b429,_0x52454f={};return _0x52454f[_0x8661da]={[Op[_0x2a9e86('0x1b')]]:'%'+_0xf7c1cf[_0x2a9e86('0xb')][_0x2a9e86('0x3f')]+'%'},_0x52454f;})})),_0x323b8a=_[_0x32b429('0x2e')]({},_0x323b8a,_0xf7c1cf[_0x32b429('0x1c')]),_0x20d372[_0x32b429('0x1d')](_0x323b8a);})[_0x178613('0x2c')](function(_0x16b864){const _0x377436=_0x178613;if(_0x16b864)return _0x23983d=_0x16b864[_0x377436('0x30')],typeof _0xf7c1cf[_0x377436('0xb')][_0x377436('0x8')]==='undefined'&&(_0x323b8a[_0x377436('0x31')]=qs['limit'](_0xf7c1cf['query'][_0x377436('0x31')]),_0x323b8a[_0x377436('0x20')]=qs[_0x377436('0x20')](_0xf7c1cf[_0x377436('0xb')][_0x377436('0x20')])),_0x20d372[_0x377436('0x1d')](_0x323b8a);})['then'](function(_0x2049ff){if(_0x2049ff)return _0x2049ff?{'count':_0x23983d,'rows':_0x2049ff}:null;})['then'](respondWithResult(_0x33a65b,null))[_0x178613('0x2')](handleError(_0x33a65b,null));},exports['addIntervals']=function(_0x34ea54,_0x49a1d6){const _0x1094c0=_0x268a98;return db['Interval']['findOne']({'where':{'id':_0x34ea54[_0x1094c0('0x11')]['id']}})[_0x1094c0('0x2c')](handleEntityNotFound(_0x49a1d6,null))[_0x1094c0('0x2c')](function(_0x158dcd){const _0x7fce77=_0x1094c0;if(_0x158dcd)return db[_0x7fce77('0x1f')]['transaction'](function(_0x4d236c){const _0x32afa3=_0x7fce77;return db[_0x32afa3('0x1e')][_0x32afa3('0x15')]({'where':{'IntervalId':_0x34ea54[_0x32afa3('0x11')]['id']},'transaction':_0x4d236c})[_0x32afa3('0x2c')](function(){const _0x347936=_0x32afa3,_0xda8b19=_[_0x347936('0x21')](_0x34ea54['body'],function(_0x151d87){const _0xd916c0=_0x347936;return delete _0x151d87['id'],_0x151d87['IntervalId']=_0x34ea54[_0xd916c0('0x11')]['id'],_0x151d87;});return db[_0x347936('0x1e')][_0x347936('0x12')](_0xda8b19,{'transaction':_0x4d236c});});})['then'](function(){const _0x4733cf=_0x7fce77;return db[_0x4733cf('0x1e')]['findAll']({'where':{'IntervalId':_0x34ea54[_0x4733cf('0x11')]['id']}});});})[_0x1094c0('0x2c')](respondWithResult(_0x49a1d6,null))[_0x1094c0('0x2')](handleError(_0x49a1d6,null));}; \ No newline at end of file +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 diff --git a/server/api/interval/interval.model.js b/server/api/interval/interval.model.js index d871264..7c64f8e 100644 --- a/server/api/interval/interval.model.js +++ b/server/api/interval/interval.model.js @@ -1 +1 @@ -const a368_0x3090=['tools_intervals','../../components/extensions/rewrite','rewrite','define','Interval','exports','./interval.attributes'];(function(_0x4ff5b0,_0x30907c){const _0x4ba894=function(_0x5e7df6){while(--_0x5e7df6){_0x4ff5b0['push'](_0x4ff5b0['shift']());}};_0x4ba894(++_0x30907c);}(a368_0x3090,0x1bb));const a368_0x4ba8=function(_0x4ff5b0,_0x30907c){_0x4ff5b0=_0x4ff5b0-0x0;let _0x4ba894=a368_0x3090[_0x4ff5b0];return _0x4ba894;};const _0x42fed8=a368_0x4ba8;'use strict';const attributes=require(_0x42fed8('0x4')),extensions=require(_0x42fed8('0x6'));module[_0x42fed8('0x3')]=function(_0x5e7df6){const _0x182b33=_0x42fed8,_0x49cd55=_0x5e7df6[_0x182b33('0x1')](_0x182b33('0x2'),attributes,{'tableName':_0x182b33('0x5'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0x2fddd6){extensions['rewrite'](_0x5e7df6,_0x2fddd6);},'afterBulkCreate':function(_0x9110ce){const _0xe2c2e3=_0x182b33;extensions[_0xe2c2e3('0x0')](_0x5e7df6,_0x9110ce[0x0]);},'afterUpdate':function(_0x3c152b){const _0x4becf2=_0x182b33;extensions[_0x4becf2('0x0')](_0x5e7df6,_0x3c152b);},'afterDestroy':function(_0x292e73){const _0x1a303d=_0x182b33;extensions[_0x1a303d('0x0')](_0x5e7df6,_0x292e73);}}});return _0x49cd55;}; \ No newline at end of file +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 diff --git a/server/api/interval/interval.rpc.js b/server/api/interval/interval.rpc.js index 3db036e..3516063 100644 --- a/server/api/interval/interval.rpc.js +++ b/server/api/interval/interval.rpc.js @@ -1 +1 @@ -const a369_0x138f=['../../mysqldb','model','raw','map','Interval','include','then','rpc','stringify','catch','message','debug','../../config/logger','findOne','lodash','options','GetInterval','attributes','ShowInterval','info','findAll','error','where'];(function(_0x5b88b0,_0x138f6f){const _0x17969c=function(_0xe1b656){while(--_0xe1b656){_0x5b88b0['push'](_0x5b88b0['shift']());}};_0x17969c(++_0x138f6f);}(a369_0x138f,0x1ed));const a369_0x1796=function(_0x5b88b0,_0x138f6f){_0x5b88b0=_0x5b88b0-0x0;let _0x17969c=a369_0x138f[_0x5b88b0];return _0x17969c;};const _0x268473=a369_0x1796;'use strict';const _=require(_0x268473('0x4')),db=require(_0x268473('0xd'))['db'],logger=require(_0x268473('0x2'))(_0x268473('0x14'));exports[_0x268473('0x6')]=function(_0xe1b656){const _0x48a8a0=this;return new Promise(function(_0x2141d0,_0xa704ba){const _0x492981=a369_0x1796;return db[_0x492981('0x11')][_0x492981('0xa')]({'raw':_0xe1b656['options']?_0xe1b656[_0x492981('0x5')][_0x492981('0xf')]===undefined?!![]:![]:!![],'where':_0xe1b656[_0x492981('0x5')]?_0xe1b656[_0x492981('0x5')][_0x492981('0xc')]||null:null,'attributes':_0xe1b656[_0x492981('0x5')]?_0xe1b656['options']['attributes']||null:null,'limit':_0xe1b656['options']?_0xe1b656[_0x492981('0x5')]['limit']||null:null,'include':_0xe1b656['options']?_0xe1b656['options'][_0x492981('0x12')]?_[_0x492981('0x10')](_0xe1b656[_0x492981('0x5')][_0x492981('0x12')],function(_0x7daf39){const _0x3d3704=_0x492981;return{'model':db[_0x7daf39[_0x3d3704('0xe')]],'as':_0x7daf39['as'],'attributes':_0x7daf39[_0x3d3704('0x7')],'include':_0x7daf39[_0x3d3704('0x12')]?_[_0x3d3704('0x10')](_0x7daf39[_0x3d3704('0x12')],function(_0x59933d){const _0x861980=_0x3d3704;return{'model':db[_0x59933d[_0x861980('0xe')]],'as':_0x59933d['as'],'attributes':_0x59933d['attributes'],'include':_0x59933d[_0x861980('0x12')]?_['map'](_0x59933d[_0x861980('0x12')],function(_0x24f1de){const _0x2c3dd5=_0x861980;return{'model':db[_0x24f1de[_0x2c3dd5('0xe')]],'as':_0x24f1de['as'],'attributes':_0x24f1de[_0x2c3dd5('0x7')]};}):[]};}):[]};}):[]:[]})[_0x492981('0x13')](function(_0x217555){const _0x1e2327=_0x492981;logger['info'](_0x1e2327('0x6'),_0xe1b656),logger[_0x1e2327('0x1')](_0x1e2327('0x6'),_0xe1b656,JSON[_0x1e2327('0x15')](_0x217555)),_0x2141d0(_0x217555);})['catch'](function(_0x5370e3){const _0x49cce2=_0x492981;logger[_0x49cce2('0xb')](_0x49cce2('0x6'),_0x5370e3[_0x49cce2('0x0')],_0xe1b656),_0xa704ba(_0x48a8a0[_0x49cce2('0xb')](0x1f4,_0x5370e3[_0x49cce2('0x0')]));});});},exports['ShowInterval']=function(_0x1a4574){const _0x19840e=this;return new Promise(function(_0x142c85,_0xd6d701){const _0x274352=a369_0x1796;return db[_0x274352('0x11')][_0x274352('0x3')]({'raw':_0x1a4574[_0x274352('0x5')]?_0x1a4574[_0x274352('0x5')][_0x274352('0xf')]===undefined?!![]:![]:!![],'where':_0x1a4574['options']?_0x1a4574[_0x274352('0x5')][_0x274352('0xc')]||null:null,'attributes':_0x1a4574[_0x274352('0x5')]?_0x1a4574[_0x274352('0x5')][_0x274352('0x7')]||null:null,'include':_0x1a4574['options']?_0x1a4574[_0x274352('0x5')][_0x274352('0x12')]?_['map'](_0x1a4574[_0x274352('0x5')][_0x274352('0x12')],function(_0x3609d4){const _0x46e713=_0x274352;return{'model':db[_0x3609d4[_0x46e713('0xe')]],'as':_0x3609d4['as'],'attributes':_0x3609d4[_0x46e713('0x7')],'include':_0x3609d4[_0x46e713('0x12')]?_[_0x46e713('0x10')](_0x3609d4[_0x46e713('0x12')],function(_0xf34380){const _0x2ae233=_0x46e713;return{'model':db[_0xf34380[_0x2ae233('0xe')]],'as':_0xf34380['as'],'attributes':_0xf34380[_0x2ae233('0x7')],'include':_0xf34380[_0x2ae233('0x12')]?_[_0x2ae233('0x10')](_0xf34380[_0x2ae233('0x12')],function(_0x1758e){const _0x2eabe4=_0x2ae233;return{'model':db[_0x1758e['model']],'as':_0x1758e['as'],'attributes':_0x1758e[_0x2eabe4('0x7')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x7f6d31){const _0x4196cb=_0x274352;logger[_0x4196cb('0x9')](_0x4196cb('0x8'),_0x1a4574),logger[_0x4196cb('0x1')](_0x4196cb('0x8'),_0x1a4574,JSON[_0x4196cb('0x15')](_0x7f6d31)),_0x142c85(_0x7f6d31);})[_0x274352('0x16')](function(_0x5d65d2){const _0x31852f=_0x274352;logger[_0x31852f('0xb')](_0x31852f('0x8'),_0x5d65d2[_0x31852f('0x0')],_0x1a4574),_0xd6d701(_0x19840e[_0x31852f('0xb')](0x1f4,_0x5d65d2[_0x31852f('0x0')]));});});}; \ No newline at end of file +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 diff --git a/server/api/jira/index.js b/server/api/jira/index.js index 1b054d9..96500bb 100644 --- a/server/api/jira/index.js +++ b/server/api/jira/index.js @@ -1 +1 @@ -const a370_0x3e05=['Router','send','express','isAuthenticated','post'];(function(_0x1cc76e,_0x3e05e7){const _0x24e67d=function(_0x4101c1){while(--_0x4101c1){_0x1cc76e['push'](_0x1cc76e['shift']());}};_0x24e67d(++_0x3e05e7);}(a370_0x3e05,0xed));const a370_0x24e6=function(_0x1cc76e,_0x3e05e7){_0x1cc76e=_0x1cc76e-0x0;let _0x24e67d=a370_0x3e05[_0x1cc76e];return _0x24e67d;};const _0x2ac332=a370_0x24e6;'use strict';const express=require(_0x2ac332('0x0')),router=express[_0x2ac332('0x3')](),auth=require('../../components/auth/service'),controller=require('./jira.controller');router[_0x2ac332('0x2')]('/',auth[_0x2ac332('0x1')](),controller[_0x2ac332('0x4')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/jira/jira.controller.js b/server/api/jira/jira.controller.js index 7c254ba..b204fe5 100644 --- a/server/api/jira/jira.controller.js +++ b/server/api/jira/jira.controller.js @@ -1 +1 @@ -const a371_0x35c3=['customfield_11504','from','customfield_11503','Basic\x20','toString','remoteAddress','issuetype','write','Error\x20during\x20license\x20request.\x20Please\x20contact\x20our\x20license\x20team\x20at\x20license@xcally.com\x20with\x20your\x20request','body','utf8','fields','MOTGUI','x-forwarded-for','reason','headers','stringify','oldToken','customfield_10102','key','track.xcallymotion.com','customfield_11501','3eAmWpBVP0','\x20from\x20','customfield_11500','Report','application/json','connection','socket','https','request','statusCode','end','name','json','newToken','email','parse','base64','data','summary','status','setEncoding'];(function(_0x2b8178,_0x35c32d){const _0x52f07d=function(_0x5f1d58){while(--_0x5f1d58){_0x2b8178['push'](_0x2b8178['shift']());}};_0x52f07d(++_0x35c32d);}(a371_0x35c3,0x1df));const a371_0x52f0=function(_0x2b8178,_0x35c32d){_0x2b8178=_0x2b8178-0x0;let _0x52f07d=a371_0x35c3[_0x2b8178];return _0x52f07d;};const _0x18f07d=a371_0x52f0;'use strict';const https=require(_0x18f07d('0x17')),USERNAME='support',PASSWORD=_0x18f07d('0x10');function openIssue(_0x5f1d58,_0x4d0d5c){const _0x4487cf=_0x18f07d,_0x441dec={'fields':{'project':{'key':_0x5f1d58[_0x4487cf('0xd')]||_0x4487cf('0x6')},'summary':(_0x5f1d58[_0x4487cf('0x22')]||_0x4487cf('0x13'))+_0x4487cf('0x11')+_0x5f1d58['ip'],'description':_0x5f1d58['description']||JSON[_0x4487cf('0xa')](_0x5f1d58),'issuetype':{'name':_0x5f1d58[_0x4487cf('0x0')]||'Bug'}}};_0x441dec[_0x4487cf('0x5')][_0x4487cf('0x12')]=_0x5f1d58[_0x4487cf('0x1e')],_0x441dec['fields'][_0x4487cf('0xf')]=_0x5f1d58[_0x4487cf('0xb')],_0x441dec[_0x4487cf('0x5')]['customfield_11502']=_0x5f1d58[_0x4487cf('0x1d')],_0x441dec[_0x4487cf('0x5')][_0x4487cf('0x27')]=_0x5f1d58[_0x4487cf('0x1b')],_0x441dec['fields'][_0x4487cf('0x25')]=_0x5f1d58[_0x4487cf('0x8')],_0x441dec[_0x4487cf('0x5')][_0x4487cf('0xc')]=_0x5f1d58['ip'];const _0x52331f={'host':_0x4487cf('0xe'),'port':0x1bb,'path':'/rest/api/2/issue','method':'POST','timeout':0x4e20,'headers':{'Content-Type':_0x4487cf('0x14'),'Authorization':_0x4487cf('0x28')+Buffer[_0x4487cf('0x26')](USERNAME+':'+PASSWORD)[_0x4487cf('0x29')](_0x4487cf('0x20'))}},_0x32a0df=JSON[_0x4487cf('0xa')](_0x441dec),_0x51f1de=https[_0x4487cf('0x18')](_0x52331f,function(_0x3d42ca){const _0x5051c4=_0x4487cf;_0x3d42ca[_0x5051c4('0x24')](_0x5051c4('0x4'));let _0x14fdc6='';_0x3d42ca['on'](_0x5051c4('0x21'),function(_0x5033c5){_0x14fdc6+=_0x5033c5;}),_0x3d42ca['on'](_0x5051c4('0x1a'),function(){const _0x24a387=_0x5051c4;if(_0x4d0d5c)return _0x4d0d5c[_0x24a387('0x23')](_0x3d42ca[_0x24a387('0x19')])[_0x24a387('0x1c')](JSON[_0x24a387('0x1f')](_0x14fdc6));});});_0x51f1de['on']('error',function(){const _0x303b89=_0x4487cf;if(_0x4d0d5c)return _0x4d0d5c[_0x303b89('0x23')](0x1f4)['json']({'errors':[{'message':_0x303b89('0x2'),'type':'api.jira'}]});}),_0x51f1de[_0x4487cf('0x1')](_0x32a0df),_0x51f1de['end']();}exports['openIssue']=openIssue,exports['send']=function(_0x303db3,_0x4bc30e){const _0x20e7e6=_0x18f07d;return _0x303db3[_0x20e7e6('0x3')]['ip']=_0x303db3[_0x20e7e6('0x9')][_0x20e7e6('0x7')]||_0x303db3[_0x20e7e6('0x15')][_0x20e7e6('0x2a')]||_0x303db3[_0x20e7e6('0x16')][_0x20e7e6('0x2a')]||_0x303db3['connection'][_0x20e7e6('0x16')]['remoteAddress'],openIssue(_0x303db3[_0x20e7e6('0x3')],_0x4bc30e);}; \ No newline at end of file +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 diff --git a/server/api/jscriptyAnswerReport/index.js b/server/api/jscriptyAnswerReport/index.js index 2a311dd..2c9cdf4 100644 --- a/server/api/jscriptyAnswerReport/index.js +++ b/server/api/jscriptyAnswerReport/index.js @@ -1 +1 @@ -const a372_0x200d=['delete','show','/:id','express','get','isAuthenticated','destroy','index','Router','exports','describe','update','post','/describe'];(function(_0xa8610,_0x200d55){const _0x51bae8=function(_0x75f364){while(--_0x75f364){_0xa8610['push'](_0xa8610['shift']());}};_0x51bae8(++_0x200d55);}(a372_0x200d,0xbf));const a372_0x51ba=function(_0xa8610,_0x200d55){_0xa8610=_0xa8610-0x0;let _0x51bae8=a372_0x200d[_0xa8610];return _0x51bae8;};const _0x276ad3=a372_0x51ba;'use strict';const express=require(_0x276ad3('0x8')),router=express[_0x276ad3('0xd')](),auth=require('../../components/auth/service'),controller=require('./jscriptyAnswerReport.controller');router[_0x276ad3('0x9')]('/',auth['isAuthenticated'](),controller[_0x276ad3('0xc')]),router[_0x276ad3('0x9')](_0x276ad3('0x4'),auth['isAuthenticated'](),controller[_0x276ad3('0x1')]),router[_0x276ad3('0x9')](_0x276ad3('0x7'),auth['isAuthenticated'](),controller[_0x276ad3('0x6')]),router[_0x276ad3('0x3')]('/',auth['isAuthenticated'](),controller['create']),router['put'](_0x276ad3('0x7'),auth[_0x276ad3('0xa')](),controller[_0x276ad3('0x2')]),router[_0x276ad3('0x5')](_0x276ad3('0x7'),auth[_0x276ad3('0xa')](),controller[_0x276ad3('0xb')]),module[_0x276ad3('0x0')]=router; \ No newline at end of file +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 diff --git a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.attributes.js b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.attributes.js index 6d67271..c41d48d 100644 --- a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.attributes.js +++ b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.attributes.js @@ -1 +1 @@ -const a373_0x4b35=['TEXT','STRING','sequelize','long'];(function(_0x44ec7f,_0x4b35cc){const _0x50410b=function(_0x2fb6ca){while(--_0x2fb6ca){_0x44ec7f['push'](_0x44ec7f['shift']());}};_0x50410b(++_0x4b35cc);}(a373_0x4b35,0xdb));const a373_0x5041=function(_0x44ec7f,_0x4b35cc){_0x44ec7f=_0x44ec7f-0x0;let _0x50410b=a373_0x4b35[_0x44ec7f];return _0x50410b;};const _0xc28acd=a373_0x5041;'use strict';const Sequelize=require(_0xc28acd('0x3'));module['exports']={'question':{'type':Sequelize[_0xc28acd('0x2')]},'answer':{'type':Sequelize[_0xc28acd('0x1')](_0xc28acd('0x0'))},'membername':{'type':Sequelize[_0xc28acd('0x2')]},'projectname':{'type':Sequelize[_0xc28acd('0x2')]},'queue':{'type':Sequelize[_0xc28acd('0x2')]},'uniqueid':{'type':Sequelize[_0xc28acd('0x2')]},'calleridname':{'type':Sequelize[_0xc28acd('0x2')]},'calleridnum':{'type':Sequelize[_0xc28acd('0x2')]},'questionId':{'type':Sequelize[_0xc28acd('0x2')]}}; \ No newline at end of file +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 diff --git a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.controller.js b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.controller.js index 299fe69..5d3d7a0 100644 --- a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.controller.js +++ b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.controller.js @@ -1 +1 @@ -const a374_0x327a=['create','undefined','include','count','../../components/parsers/qs','attributes','sequelize','status','update','filter','index','catch','model','../../config/logger','show','../../mysqldb','order','JscriptyAnswerReport','options','length','body','api','describe','Content-Range','pick','merge','rows','map','set','end','rawAttributes','sort','findOne','params','key','filters','fieldName','findAll','intersection','type','keys','fields','limit','nolimit','where','destroy','query','includeAll','offset','json','name','then'];(function(_0x33d707,_0x327ae5){const _0x4435ca=function(_0x335789){while(--_0x335789){_0x33d707['push'](_0x33d707['shift']());}};_0x4435ca(++_0x327ae5);}(a374_0x327a,0x142));const a374_0x4435=function(_0x33d707,_0x327ae5){_0x33d707=_0x33d707-0x0;let _0x4435ca=a374_0x327a[_0x33d707];return _0x4435ca;};const _0x59c361=a374_0x4435;'use strict';const _=require('lodash'),qs=require(_0x59c361('0x2e')),logger=require(_0x59c361('0x3'))(_0x59c361('0xb')),db=require(_0x59c361('0x5'))['db'],{Op}=require(_0x59c361('0x30'));function respondWithResult(_0x335789,_0x11c976){return _0x11c976=_0x11c976||0xc8,function(_0x41f2b7){const _0x4a3e51=a374_0x4435;if(_0x41f2b7)return _0x335789[_0x4a3e51('0x31')](_0x11c976)['json'](_0x41f2b7);};}function respondWithFilteredResult(_0x219caa,_0x44d341){return function(_0x111563){const _0x5ca822=a374_0x4435;if(_0x111563){const _0x57e0d6=_0x111563[_0x5ca822('0x2d')],_0x2f2f04=_0x44d341[_0x5ca822('0x26')];let _0x27b5e1=_0x44d341[_0x5ca822('0x26')]+_0x44d341['limit'],_0x37127c;return _0x27b5e1>=_0x57e0d6?(_0x27b5e1=_0x57e0d6,_0x37127c=0xc8):_0x37127c=0xce,_0x219caa[_0x5ca822('0x31')](_0x37127c),_0x219caa[_0x5ca822('0x12')](_0x5ca822('0xd'),_0x2f2f04+'-'+_0x27b5e1+'/'+_0x57e0d6)[_0x5ca822('0x27')](_0x111563);}return null;};}function saveUpdates(_0x4092a5){return function(_0xb0c7c3){const _0x26392f=a374_0x4435;if(_0xb0c7c3)return _0xb0c7c3['update'](_0x4092a5)[_0x26392f('0x29')](function(_0x381f7a){return _0x381f7a;});return null;};}function removeEntity(_0x592920){return function(_0x10932a){const _0x23344d=a374_0x4435;if(_0x10932a)return _0x10932a[_0x23344d('0x23')]()['then'](function(){const _0x2b15ad=_0x23344d;_0x592920['status'](0xcc)[_0x2b15ad('0x13')]();});};}function handleEntityNotFound(_0x58d299){return function(_0x33e06b){return!_0x33e06b&&_0x58d299['sendStatus'](0x194),_0x33e06b;};}function handleError(_0x58fa06,_0x17e704){return _0x17e704=_0x17e704||0x1f4,function(_0x1f3b92){const _0x235959=a374_0x4435;logger['error'](_0x1f3b92['stack']),_0x1f3b92[_0x235959('0x28')]&&delete _0x1f3b92[_0x235959('0x28')],_0x58fa06[_0x235959('0x31')](_0x17e704)['send'](_0x1f3b92);};}exports[_0x59c361('0x0')]=function(_0x2ddc51,_0xbf06bb){const _0x4b4e02=_0x59c361;let _0x281a4f={};const _0x2c7296={},_0x1e9a33={'count':0x0,'rows':[]},_0x3408e2=_[_0x4b4e02('0x11')](db['JscriptyAnswerReport']['rawAttributes'],function(_0x2d79fd){const _0x313943=_0x4b4e02;return{'name':_0x2d79fd[_0x313943('0x1a')],'type':_0x2d79fd['type'][_0x313943('0x18')]};});_0x2c7296['model']=_[_0x4b4e02('0x11')](_0x3408e2,'name'),_0x2c7296[_0x4b4e02('0x24')]=_[_0x4b4e02('0x1e')](_0x2ddc51[_0x4b4e02('0x24')]),_0x2c7296[_0x4b4e02('0x19')]=_[_0x4b4e02('0x1c')](_0x2c7296[_0x4b4e02('0x2')],_0x2c7296[_0x4b4e02('0x24')]),_0x281a4f[_0x4b4e02('0x2f')]=_[_0x4b4e02('0x1c')](_0x2c7296[_0x4b4e02('0x2')],qs[_0x4b4e02('0x1f')](_0x2ddc51['query'][_0x4b4e02('0x1f')])),_0x281a4f[_0x4b4e02('0x2f')]=_0x281a4f['attributes'][_0x4b4e02('0x9')]?_0x281a4f['attributes']:_0x2c7296[_0x4b4e02('0x2')];typeof _0x2ddc51[_0x4b4e02('0x24')][_0x4b4e02('0x21')]===_0x4b4e02('0x2b')&&(_0x281a4f[_0x4b4e02('0x20')]=qs['limit'](_0x2ddc51[_0x4b4e02('0x24')][_0x4b4e02('0x20')]),_0x281a4f['offset']=qs[_0x4b4e02('0x26')](_0x2ddc51['query']['offset']));_0x281a4f[_0x4b4e02('0x6')]=qs[_0x4b4e02('0x15')](_0x2ddc51[_0x4b4e02('0x24')]['sort']),_0x281a4f['where']=qs['filters'](_[_0x4b4e02('0xe')](_0x2ddc51['query'],_0x2c7296[_0x4b4e02('0x19')]),_0x3408e2);_0x2ddc51[_0x4b4e02('0x24')][_0x4b4e02('0x33')]&&(_0x281a4f[_0x4b4e02('0x22')]=_[_0x4b4e02('0xf')](_0x281a4f['where'],{[Op['or']]:_['map'](_0x3408e2,function(_0x3c32ff){const _0x17e92b=_0x4b4e02;if(_0x3c32ff[_0x17e92b('0x1d')]!=='VIRTUAL'){const _0x1ad1aa={};return _0x1ad1aa[_0x3c32ff[_0x17e92b('0x28')]]={[Op['like']]:'%'+_0x2ddc51[_0x17e92b('0x24')][_0x17e92b('0x33')]+'%'},_0x1ad1aa;}})}));_0x281a4f=_[_0x4b4e02('0xf')]({},_0x281a4f,_0x2ddc51['options']);const _0xbe77f7={'where':_0x281a4f[_0x4b4e02('0x22')]};return db['JscriptyAnswerReport']['count'](_0xbe77f7)[_0x4b4e02('0x29')](function(_0x191ede){const _0x131ed6=_0x4b4e02;return _0x1e9a33[_0x131ed6('0x2d')]=_0x191ede,_0x2ddc51['query'][_0x131ed6('0x25')]&&(_0x281a4f[_0x131ed6('0x2c')]=[{'all':!![]}]),db[_0x131ed6('0x7')][_0x131ed6('0x1b')](_0x281a4f);})[_0x4b4e02('0x29')](function(_0x55d3f6){const _0x1bd3cb=_0x4b4e02;return _0x1e9a33[_0x1bd3cb('0x10')]=_0x55d3f6,_0x1e9a33;})[_0x4b4e02('0x29')](respondWithFilteredResult(_0xbf06bb,_0x281a4f))[_0x4b4e02('0x1')](handleError(_0xbf06bb,null));},exports[_0x59c361('0x4')]=function(_0x14cb44,_0x28b095){const _0x37a8e8=_0x59c361;let _0xda3e72={'raw':!![],'where':{'id':_0x14cb44[_0x37a8e8('0x17')]['id']}};const _0x4f427f={};return _0x4f427f[_0x37a8e8('0x2')]=_[_0x37a8e8('0x1e')](db[_0x37a8e8('0x7')][_0x37a8e8('0x14')]),_0x4f427f[_0x37a8e8('0x24')]=_[_0x37a8e8('0x1e')](_0x14cb44[_0x37a8e8('0x24')]),_0x4f427f[_0x37a8e8('0x19')]=_['intersection'](_0x4f427f[_0x37a8e8('0x2')],_0x4f427f[_0x37a8e8('0x24')]),_0xda3e72['attributes']=_[_0x37a8e8('0x1c')](_0x4f427f[_0x37a8e8('0x2')],qs[_0x37a8e8('0x1f')](_0x14cb44[_0x37a8e8('0x24')][_0x37a8e8('0x1f')])),_0xda3e72['attributes']=_0xda3e72[_0x37a8e8('0x2f')][_0x37a8e8('0x9')]?_0xda3e72[_0x37a8e8('0x2f')]:_0x4f427f[_0x37a8e8('0x2')],_0x14cb44[_0x37a8e8('0x24')][_0x37a8e8('0x25')]&&(_0xda3e72[_0x37a8e8('0x2c')]=[{'all':!![]}]),_0xda3e72=_['merge']({},_0xda3e72,_0x14cb44[_0x37a8e8('0x8')]),db['JscriptyAnswerReport'][_0x37a8e8('0x16')](_0xda3e72)[_0x37a8e8('0x29')](handleEntityNotFound(_0x28b095,null))[_0x37a8e8('0x29')](respondWithResult(_0x28b095,null))[_0x37a8e8('0x1')](handleError(_0x28b095,null));},exports[_0x59c361('0x2a')]=function(_0x5d6591,_0x265488){const _0x15ba33=_0x59c361;return db[_0x15ba33('0x7')][_0x15ba33('0x2a')](_0x5d6591[_0x15ba33('0xa')],{})[_0x15ba33('0x29')](respondWithResult(_0x265488,0xc9))['catch'](handleError(_0x265488,null));},exports[_0x59c361('0x32')]=function(_0x20d2ec,_0x5376c1){const _0x3d04f7=_0x59c361;return _0x20d2ec['body']['id']&&delete _0x20d2ec[_0x3d04f7('0xa')]['id'],db['JscriptyAnswerReport'][_0x3d04f7('0x16')]({'where':{'id':_0x20d2ec['params']['id']}})['then'](handleEntityNotFound(_0x5376c1,null))[_0x3d04f7('0x29')](saveUpdates(_0x20d2ec[_0x3d04f7('0xa')],null))[_0x3d04f7('0x29')](respondWithResult(_0x5376c1,null))[_0x3d04f7('0x1')](handleError(_0x5376c1,null));},exports[_0x59c361('0x23')]=function(_0xaf2277,_0x262290){const _0x17c85b=_0x59c361;return db[_0x17c85b('0x7')][_0x17c85b('0x16')]({'where':{'id':_0xaf2277[_0x17c85b('0x17')]['id']}})[_0x17c85b('0x29')](handleEntityNotFound(_0x262290,null))['then'](removeEntity(_0x262290,null))['catch'](handleError(_0x262290,null));},exports[_0x59c361('0xc')]=function(_0x435324,_0x2695f0){const _0x1e45fd=_0x59c361;return db['JscriptyAnswerReport'][_0x1e45fd('0xc')]()[_0x1e45fd('0x29')](respondWithResult(_0x2695f0,null))['catch'](handleError(_0x2695f0,null));}; \ No newline at end of file +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 diff --git a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.model.js b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.model.js index de2760b..6c03bb8 100644 --- a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.model.js +++ b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.model.js @@ -1 +1 @@ -const a375_0x3a5e=['define','exports','report_jscripty_answers','JscriptyAnswerReport'];(function(_0x18d2de,_0x3a5e03){const _0x1ef1d3=function(_0x4a224d){while(--_0x4a224d){_0x18d2de['push'](_0x18d2de['shift']());}};_0x1ef1d3(++_0x3a5e03);}(a375_0x3a5e,0xcc));const a375_0x1ef1=function(_0x18d2de,_0x3a5e03){_0x18d2de=_0x18d2de-0x0;let _0x1ef1d3=a375_0x3a5e[_0x18d2de];return _0x1ef1d3;};const _0x3fcf5c=a375_0x1ef1;'use strict';const attributes=require('./jscriptyAnswerReport.attributes');module[_0x3fcf5c('0x1')]=function(_0x4a224d){const _0x47000e=_0x3fcf5c,_0x41a6af=_0x4a224d[_0x47000e('0x0')](_0x47000e('0x3'),attributes,{'tableName':_0x47000e('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x41a6af;}; \ No newline at end of file +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 diff --git a/server/api/jscriptyProject/index.js b/server/api/jscriptyProject/index.js index cd2ba9e..b749829 100644 --- a/server/api/jscriptyProject/index.js +++ b/server/api/jscriptyProject/index.js @@ -1 +1 @@ -const a376_0x35d5=['get','/:id/clone','isAuthenticated','express','exports','post','put','../../components/auth/service','/:id','getAnswers','create','show','getSessions','./jscriptyProject.controller','update','index','getSummary','/:id/sessions','clone','30s'];(function(_0x55b20c,_0x35d52c){const _0x33d9b8=function(_0x4e9a73){while(--_0x4e9a73){_0x55b20c['push'](_0x55b20c['shift']());}};_0x33d9b8(++_0x35d52c);}(a376_0x35d5,0x139));const a376_0x33d9=function(_0x55b20c,_0x35d52c){_0x55b20c=_0x55b20c-0x0;let _0x33d9b8=a376_0x35d5[_0x55b20c];return _0x33d9b8;};const _0x2e9411=a376_0x33d9;'use strict';const timeout=require('connect-timeout'),express=require(_0x2e9411('0xa')),router=express['Router'](),auth=require(_0x2e9411('0xe')),controller=require(_0x2e9411('0x0'));router['get']('/',auth[_0x2e9411('0x9')](),controller[_0x2e9411('0x2')]),router[_0x2e9411('0x7')](_0x2e9411('0xf'),auth['isAuthenticated'](),controller[_0x2e9411('0x12')]),router[_0x2e9411('0x7')](_0x2e9411('0x4'),auth['isAuthenticated'](),controller[_0x2e9411('0x13')]),router[_0x2e9411('0x7')]('/:id/answers',auth[_0x2e9411('0x9')](),controller[_0x2e9411('0x10')]),router['get']('/:id/summary',auth['isAuthenticated'](),timeout(_0x2e9411('0x6')),controller[_0x2e9411('0x3')]),router[_0x2e9411('0xc')]('/',auth[_0x2e9411('0x9')](),controller[_0x2e9411('0x11')]),router[_0x2e9411('0xc')](_0x2e9411('0x8'),auth[_0x2e9411('0x9')](),controller[_0x2e9411('0x5')]),router[_0x2e9411('0xd')](_0x2e9411('0xf'),auth[_0x2e9411('0x9')](),controller[_0x2e9411('0x1')]),router['delete']('/:id',auth['isAuthenticated'](),controller['destroy']),module[_0x2e9411('0xb')]=router; \ No newline at end of file +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 diff --git a/server/api/jscriptyProject/jscriptyProject.attributes.js b/server/api/jscriptyProject/jscriptyProject.attributes.js index ad63aed..47c3415 100644 --- a/server/api/jscriptyProject/jscriptyProject.attributes.js +++ b/server/api/jscriptyProject/jscriptyProject.attributes.js @@ -1 +1 @@ -const a377_0x1cec=['util','formData','STRING','BOOLEAN','TEXT','getDataValue','description','setDataValue','format','name','isObjectLike','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','sequelize'];(function(_0x41f1c2,_0x1cec92){const _0x29338c=function(_0x2ca0ab){while(--_0x2ca0ab){_0x41f1c2['push'](_0x41f1c2['shift']());}};_0x29338c(++_0x1cec92);}(a377_0x1cec,0x1d8));const a377_0x2933=function(_0x41f1c2,_0x1cec92){_0x41f1c2=_0x41f1c2-0x0;let _0x29338c=a377_0x1cec[_0x41f1c2];return _0x29338c;};const _0x134567=a377_0x2933;'use strict';const Sequelize=require(_0x134567('0x8')),_=require('lodash'),util=require(_0x134567('0x9'));module['exports']={'name':{'type':Sequelize[_0x134567('0xb')],'unique':_0x134567('0x5')},'description':{'type':Sequelize[_0x134567('0xb')]},'formData':{'type':Sequelize[_0x134567('0x0')]('long'),'set':function(_0x2ca0ab){const _0x3b64d0=_0x134567;if(_[_0x3b64d0('0x6')](_0x2ca0ab))this[_0x3b64d0('0x3')](_0x3b64d0('0xa'),JSON['stringify'](_0x2ca0ab));else _['isString'](_0x2ca0ab)?this['setDataValue']('formData',_0x2ca0ab):this['setDataValue']('formData',util[_0x3b64d0('0x4')](_0x3b64d0('0x7'),this[_0x3b64d0('0x1')]('name')||'',this['getDataValue'](_0x3b64d0('0x2'))||''));}},'enableUncompleteSave':{'type':Sequelize[_0x134567('0xc')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x134567('0xc')],'defaultValue':![]}}; \ No newline at end of file +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 diff --git a/server/api/jscriptyProject/jscriptyProject.controller.js b/server/api/jscriptyProject/jscriptyProject.controller.js index 32c3ac8..e6fcd0f 100644 --- a/server/api/jscriptyProject/jscriptyProject.controller.js +++ b/server/api/jscriptyProject/jscriptyProject.controller.js @@ -1 +1 @@ -const a378_0x14d0=['map','api','name','sequelize','then','JscriptySessionReport','../../config/logger','questionId','answer','attachment;\x20filename=','Jscripty_Project_%d_Summary_%s.csv','Projects','Unable\x20to\x20retrieve\x20the\x20current\x20user','sort','update','writeFileSync','question','include','end','push','toString','model','YYYY-MM-DD\x20HH:mm:ss','fields','format','role','type','merge','stack','length','JscriptyAnswerReport','where','error','includeAll','SessionId','replace','count','Content-disposition','getAnswers','rows','body','filters','setHeader','order','updatedAt','Content-type','options','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','parse','fieldName','-createdAt','ProjectId','isEmpty','limit','get','UserProfileSection','like','findOne','sendStatus','undefined','index','/tmp/Jscripty_Project_%d_Summary_%s.csv','params','status','set','user','findAll','VIRTUAL','createdAt','JscriptyQuestionReport','Content-Range','../../mysqldb','rawAttributes','text/csv','moment','apply','json','startTime','offset','attributes','query','create','keys','intersection','indexOf','starttime','filter','nolimit','key','send','userProfileId','catch','destroy','download','UserProfileResource','lodash','JscriptyProject'];(function(_0x2ea6d6,_0x14d042){const _0x527a76=function(_0x27d794){while(--_0x27d794){_0x2ea6d6['push'](_0x2ea6d6['shift']());}};_0x527a76(++_0x14d042);}(a378_0x14d0,0x166));const a378_0x527a=function(_0x2ea6d6,_0x14d042){_0x2ea6d6=_0x2ea6d6-0x0;let _0x527a76=a378_0x14d0[_0x2ea6d6];return _0x527a76;};const _0x43f4fe=a378_0x527a;'use strict';const moment=require(_0x43f4fe('0x7')),util=require('util'),fs=require('fs'),_=require(_0x43f4fe('0x1c')),toCsv=require('to-csv'),qs=require('../../components/parsers/qs'),logger=require(_0x43f4fe('0x24'))(_0x43f4fe('0x1f')),db=require(_0x43f4fe('0x4'))['db'],{Op}=require(_0x43f4fe('0x21'));function respondWithResult(_0x27d794,_0x5769f6){return _0x5769f6=_0x5769f6||0xc8,function(_0x5a2476){const _0x1668ce=a378_0x527a;if(_0x5a2476)return _0x27d794[_0x1668ce('0x5d')](_0x5769f6)[_0x1668ce('0x9')](_0x5a2476);};}function respondWithFilteredResult(_0x388851,_0x32922b){return function(_0x152737){const _0x479daa=a378_0x527a;if(_0x152737){const _0x212a69=_0x152737[_0x479daa('0x42')],_0x316de9=_0x32922b[_0x479daa('0xb')];let _0x362fee=_0x32922b[_0x479daa('0xb')]+_0x32922b[_0x479daa('0x53')],_0x12de41;return _0x362fee>=_0x212a69?(_0x362fee=_0x212a69,_0x12de41=0xc8):_0x12de41=0xce,_0x388851['status'](_0x12de41),_0x388851[_0x479daa('0x5e')](_0x479daa('0x3'),_0x316de9+'-'+_0x362fee+'/'+_0x212a69)[_0x479daa('0x9')](_0x152737);}return null;};}function saveUpdates(_0x46a5ef){return function(_0x2bca7f){const _0x3aa23a=a378_0x527a;if(_0x2bca7f)return _0x2bca7f[_0x3aa23a('0x2c')](_0x46a5ef)[_0x3aa23a('0x22')](function(_0x2a73e7){return _0x2a73e7;});return null;};}function removeEntity(_0x8c4def){return function(_0x37630e){const _0x17fa4e=a378_0x527a;if(_0x37630e)return _0x37630e['destroy']()[_0x17fa4e('0x22')](function(){const _0xe04858=_0x17fa4e,_0x39ddb3=_0x37630e[_0xe04858('0x54')]({'plain':!![]}),_0x72b60d=_0xe04858('0x29');return db[_0xe04858('0x1b')][_0xe04858('0x19')]({'where':{'type':_0x72b60d,'resourceId':_0x39ddb3['id']}})['then'](function(){return _0x37630e;});})[_0x17fa4e('0x22')](function(){const _0x29db21=_0x17fa4e;_0x8c4def[_0x29db21('0x5d')](0xcc)[_0x29db21('0x30')]();});};}function handleEntityNotFound(_0x7ed784){return function(_0x1869f1){const _0x489962=a378_0x527a;return!_0x1869f1&&_0x7ed784[_0x489962('0x58')](0x194),_0x1869f1;};}function handleError(_0x162b13,_0x16901d){return _0x16901d=_0x16901d||0x1f4,function(_0x2d3865){const _0x19ab2e=a378_0x527a;logger[_0x19ab2e('0x3e')](_0x2d3865[_0x19ab2e('0x3a')]),_0x2d3865[_0x19ab2e('0x20')]&&delete _0x2d3865[_0x19ab2e('0x20')],_0x162b13['status'](_0x16901d)[_0x19ab2e('0x16')](_0x2d3865);};}exports[_0x43f4fe('0x5a')]=function(_0x1da82f,_0x4b1926){const _0x3a4b15=_0x43f4fe;let _0x58a423={};const _0x465797={},_0x2ad294={'count':0x0,'rows':[]},_0xcc13da=_[_0x3a4b15('0x1e')](db[_0x3a4b15('0x1d')]['rawAttributes'],function(_0x1c98c7){const _0x4e67f1=_0x3a4b15;return{'name':_0x1c98c7[_0x4e67f1('0x4f')],'type':_0x1c98c7['type'][_0x4e67f1('0x15')]};});_0x465797[_0x3a4b15('0x33')]=_[_0x3a4b15('0x1e')](_0xcc13da,_0x3a4b15('0x20')),_0x465797[_0x3a4b15('0xd')]=_[_0x3a4b15('0xf')](_0x1da82f['query']),_0x465797[_0x3a4b15('0x47')]=_['intersection'](_0x465797[_0x3a4b15('0x33')],_0x465797['query']),_0x58a423[_0x3a4b15('0xc')]=_[_0x3a4b15('0x10')](_0x465797['model'],qs[_0x3a4b15('0x35')](_0x1da82f[_0x3a4b15('0xd')][_0x3a4b15('0x35')])),_0x58a423[_0x3a4b15('0xc')]=_0x58a423[_0x3a4b15('0xc')][_0x3a4b15('0x3b')]?_0x58a423[_0x3a4b15('0xc')]:_0x465797[_0x3a4b15('0x33')];typeof _0x1da82f[_0x3a4b15('0xd')][_0x3a4b15('0x14')]===_0x3a4b15('0x59')&&(_0x58a423[_0x3a4b15('0x53')]=qs[_0x3a4b15('0x53')](_0x1da82f[_0x3a4b15('0xd')]['limit']),_0x58a423[_0x3a4b15('0xb')]=qs['offset'](_0x1da82f['query'][_0x3a4b15('0xb')]));_0x58a423[_0x3a4b15('0x49')]=qs[_0x3a4b15('0x2b')](_0x1da82f[_0x3a4b15('0xd')][_0x3a4b15('0x2b')]),_0x58a423[_0x3a4b15('0x3d')]=qs[_0x3a4b15('0x47')](_['pick'](_0x1da82f[_0x3a4b15('0xd')],_0x465797['filters']),_0xcc13da);_0x1da82f['query'][_0x3a4b15('0x13')]&&(_0x58a423[_0x3a4b15('0x3d')]=_[_0x3a4b15('0x39')](_0x58a423[_0x3a4b15('0x3d')],{[Op['or']]:_[_0x3a4b15('0x1e')](_0xcc13da,function(_0x562cf2){const _0x5c4271=_0x3a4b15;if(_0x562cf2[_0x5c4271('0x38')]!==_0x5c4271('0x0')){const _0x2d0f9d={};return _0x2d0f9d[_0x562cf2['name']]={[Op[_0x5c4271('0x56')]]:'%'+_0x1da82f[_0x5c4271('0xd')]['filter']+'%'},_0x2d0f9d;}})}));_0x58a423=_['merge']({},_0x58a423,_0x1da82f[_0x3a4b15('0x4c')]);const _0x5ce0ca={'where':_0x58a423[_0x3a4b15('0x3d')]};return db['JscriptyProject']['count'](_0x5ce0ca)[_0x3a4b15('0x22')](function(_0x1b73c3){const _0x42ee04=_0x3a4b15;return _0x2ad294[_0x42ee04('0x42')]=_0x1b73c3,_0x1da82f[_0x42ee04('0xd')][_0x42ee04('0x3f')]&&(_0x58a423[_0x42ee04('0x2f')]=[{'all':!![]}]),db[_0x42ee04('0x1d')][_0x42ee04('0x60')](_0x58a423);})[_0x3a4b15('0x22')](function(_0x381ed9){const _0x46ff20=_0x3a4b15;return _0x2ad294[_0x46ff20('0x45')]=_0x381ed9,_0x2ad294;})[_0x3a4b15('0x22')](respondWithFilteredResult(_0x4b1926,_0x58a423))[_0x3a4b15('0x18')](handleError(_0x4b1926,null));},exports['show']=function(_0x3ca0a8,_0x28b902){const _0x5f2f21=_0x43f4fe;let _0x4605ec={'raw':![],'where':{'id':_0x3ca0a8[_0x5f2f21('0x5c')]['id']}};const _0x582780={};return _0x582780[_0x5f2f21('0x33')]=_['keys'](db['JscriptyProject'][_0x5f2f21('0x5')]),_0x582780['query']=_[_0x5f2f21('0xf')](_0x3ca0a8[_0x5f2f21('0xd')]),_0x582780[_0x5f2f21('0x47')]=_[_0x5f2f21('0x10')](_0x582780[_0x5f2f21('0x33')],_0x582780[_0x5f2f21('0xd')]),_0x4605ec[_0x5f2f21('0xc')]=_[_0x5f2f21('0x10')](_0x582780['model'],qs['fields'](_0x3ca0a8['query']['fields'])),_0x4605ec['attributes']=_0x4605ec['attributes'][_0x5f2f21('0x3b')]?_0x4605ec[_0x5f2f21('0xc')]:_0x582780[_0x5f2f21('0x33')],_0x3ca0a8[_0x5f2f21('0xd')]['includeAll']&&(_0x4605ec['include']=[{'all':!![]}]),_0x4605ec=_[_0x5f2f21('0x39')]({},_0x4605ec,_0x3ca0a8['options']),db[_0x5f2f21('0x1d')]['findOne'](_0x4605ec)[_0x5f2f21('0x22')](handleEntityNotFound(_0x28b902,null))[_0x5f2f21('0x22')](respondWithResult(_0x28b902,null))[_0x5f2f21('0x18')](handleError(_0x28b902,null));},exports[_0x43f4fe('0xe')]=function(_0x2c01da,_0x191da2){const _0x1fb0e2=_0x43f4fe;return db['JscriptyProject'][_0x1fb0e2('0xe')](_0x2c01da['body'],{})[_0x1fb0e2('0x22')](function(_0x1af71b){const _0x46d367=_0x1fb0e2,_0x1999cd=_0x2c01da[_0x46d367('0x5f')][_0x46d367('0x54')]({'plain':!![]});if(!_0x1999cd)throw new Error(_0x46d367('0x2a'));if(_0x1999cd[_0x46d367('0x37')]===_0x46d367('0x5f')){const _0xb71ec0=_0x1af71b['get']({'plain':!![]}),_0x26823b=_0x46d367('0x29');return db[_0x46d367('0x55')][_0x46d367('0x57')]({'where':{'name':_0x26823b,'userProfileId':_0x1999cd[_0x46d367('0x17')]},'raw':!![]})[_0x46d367('0x22')](function(_0x47dac5){const _0x30fb1c=_0x46d367;return _0x47dac5&&_0x47dac5['autoAssociation']===0x0?db[_0x30fb1c('0x1b')]['create']({'name':_0xb71ec0[_0x30fb1c('0x20')],'resourceId':_0xb71ec0['id'],'type':_0x47dac5[_0x30fb1c('0x20')],'sectionId':_0x47dac5['id']},{})[_0x30fb1c('0x22')](function(){return _0x1af71b;}):_0x1af71b;})['catch'](function(_0x1051ad){const _0x3c0863=_0x46d367;logger[_0x3c0863('0x3e')](_0x3c0863('0x4d'),_0x1051ad);throw _0x1051ad;});}return _0x1af71b;})['then'](respondWithResult(_0x191da2,0xc9))[_0x1fb0e2('0x18')](handleError(_0x191da2,null));},exports['clone']=function(_0x4bb7f7,_0x33e1c6){const _0x48aa74=_0x43f4fe;let _0x299237={'where':{'id':_0x4bb7f7[_0x48aa74('0x5c')]['id']}};const _0x2cde68={};return _0x2cde68[_0x48aa74('0x33')]=_[_0x48aa74('0xf')](db[_0x48aa74('0x1d')][_0x48aa74('0x5')]),_0x299237[_0x48aa74('0xc')]=_[_0x48aa74('0x10')](_0x2cde68[_0x48aa74('0x33')],qs[_0x48aa74('0x35')](_0x4bb7f7[_0x48aa74('0xd')][_0x48aa74('0x35')])),_0x299237[_0x48aa74('0xc')]=_0x299237[_0x48aa74('0xc')]['length']?_0x299237[_0x48aa74('0xc')]:_0x2cde68['model'],_0x4bb7f7[_0x48aa74('0xd')][_0x48aa74('0x3f')]&&(_0x299237['include']=[{'all':!![]}]),_0x299237=_[_0x48aa74('0x39')]({},_0x299237,_0x4bb7f7[_0x48aa74('0x4c')]),db[_0x48aa74('0x1d')][_0x48aa74('0x57')](_0x299237)['then'](handleEntityNotFound(_0x33e1c6,null))[_0x48aa74('0x22')](function(_0x45ee52){const _0x30e673=_0x48aa74;if(_0x45ee52){let _0x330aeb=_0x45ee52['get']({'plain':!![]});return _0x330aeb=qs['omit'](_0x330aeb,['id',_0x30e673('0x1'),_0x30e673('0x4a')]),_0x4bb7f7[_0x30e673('0x46')]=_['omit'](_0x4bb7f7[_0x30e673('0x46')],['id',_0x30e673('0x1'),'updatedAt']),db[_0x30e673('0x1d')][_0x30e673('0xe')](_['merge'](_0x330aeb,_0x4bb7f7[_0x30e673('0x46')]),{'include':_0x4bb7f7[_0x30e673('0xd')][_0x30e673('0x3f')]?[{'all':!![]}]:undefined})[_0x30e673('0x22')](function(_0x5301dd){const _0x266686=_0x30e673,_0x159c18=_0x4bb7f7['user']['get']({'plain':!![]});if(!_0x159c18)throw new Error(_0x266686('0x2a'));if(_0x159c18[_0x266686('0x37')]===_0x266686('0x5f')){const _0x208ab6=_0x5301dd[_0x266686('0x54')]({'plain':!![]}),_0x2fb177=_0x266686('0x29');return db[_0x266686('0x55')][_0x266686('0x57')]({'where':{'name':_0x2fb177,'userProfileId':_0x159c18[_0x266686('0x17')]},'raw':!![]})[_0x266686('0x22')](function(_0x31f179){const _0x336309=_0x266686;return _0x31f179&&_0x31f179['autoAssociation']===0x0?db[_0x336309('0x1b')][_0x336309('0xe')]({'name':_0x208ab6['name'],'resourceId':_0x208ab6['id'],'type':_0x31f179['name'],'sectionId':_0x31f179['id']},{})[_0x336309('0x22')](function(){return _0x5301dd;}):_0x5301dd;})[_0x266686('0x18')](function(_0x57c3d9){const _0x172210=_0x266686;logger[_0x172210('0x3e')](_0x172210('0x4d'),_0x57c3d9);throw _0x57c3d9;});}return _0x5301dd;});}})[_0x48aa74('0x22')](respondWithResult(_0x33e1c6,0xc9))[_0x48aa74('0x18')](handleError(_0x33e1c6,null));},exports[_0x43f4fe('0x2c')]=function(_0x4ce7ce,_0xae4d42){const _0x2208fd=_0x43f4fe;return _0x4ce7ce[_0x2208fd('0x46')]['id']&&delete _0x4ce7ce[_0x2208fd('0x46')]['id'],db[_0x2208fd('0x1d')][_0x2208fd('0x57')]({'where':{'id':_0x4ce7ce[_0x2208fd('0x5c')]['id']}})[_0x2208fd('0x22')](handleEntityNotFound(_0xae4d42,null))[_0x2208fd('0x22')](saveUpdates(_0x4ce7ce['body'],null))['then'](respondWithResult(_0xae4d42,null))[_0x2208fd('0x18')](handleError(_0xae4d42,null));},exports['destroy']=function(_0x138e82,_0x301117){const _0x158f8a=_0x43f4fe;return db[_0x158f8a('0x1d')]['findOne']({'where':{'id':_0x138e82[_0x158f8a('0x5c')]['id']}})[_0x158f8a('0x22')](handleEntityNotFound(_0x301117,null))[_0x158f8a('0x22')](removeEntity(_0x301117,null))[_0x158f8a('0x18')](handleError(_0x301117,null));},exports['getSessions']=function(_0x5777b8,_0x42549c){const _0x108b2a=_0x43f4fe;let _0x2d5724={'raw':!![],'where':{}};const _0x5d6daf={},_0x393e2b={'count':0x0,'rows':[]};return db[_0x108b2a('0x1d')]['findOne']({'where':{'id':_0x5777b8[_0x108b2a('0x5c')]['id']}})[_0x108b2a('0x22')](handleEntityNotFound(_0x42549c,null))[_0x108b2a('0x22')](function(_0x4565b6){const _0x2f0a5d=_0x108b2a;if(_0x4565b6)return _0x5d6daf[_0x2f0a5d('0x33')]=_[_0x2f0a5d('0xf')](db[_0x2f0a5d('0x23')][_0x2f0a5d('0x5')]),_0x5d6daf['query']=_['keys'](_0x5777b8[_0x2f0a5d('0xd')]),_0x5d6daf[_0x2f0a5d('0x47')]=_[_0x2f0a5d('0x10')](_0x5d6daf[_0x2f0a5d('0x33')],_0x5d6daf['query']),_0x2d5724['attributes']=_[_0x2f0a5d('0x10')](_0x5d6daf[_0x2f0a5d('0x33')],qs[_0x2f0a5d('0x35')](_0x5777b8[_0x2f0a5d('0xd')][_0x2f0a5d('0x35')])),_0x2d5724['attributes']=_0x2d5724[_0x2f0a5d('0xc')][_0x2f0a5d('0x3b')]?_0x2d5724[_0x2f0a5d('0xc')]:_0x5d6daf[_0x2f0a5d('0x33')],typeof _0x5777b8[_0x2f0a5d('0xd')][_0x2f0a5d('0x14')]===_0x2f0a5d('0x59')&&(_0x2d5724[_0x2f0a5d('0x53')]=qs[_0x2f0a5d('0x53')](_0x5777b8[_0x2f0a5d('0xd')][_0x2f0a5d('0x53')]),_0x2d5724[_0x2f0a5d('0xb')]=qs['offset'](_0x5777b8[_0x2f0a5d('0xd')]['offset'])),_0x2d5724[_0x2f0a5d('0x49')]=qs[_0x2f0a5d('0x2b')](_0x5777b8[_0x2f0a5d('0xd')][_0x2f0a5d('0x2b')]),_0x2d5724[_0x2f0a5d('0x3d')]=qs[_0x2f0a5d('0x47')](_['pick'](_0x5777b8['query'],_0x5d6daf['filters'])),_0x2d5724[_0x2f0a5d('0x3d')][_0x2f0a5d('0x51')]=_0x4565b6['id'],_0x5777b8[_0x2f0a5d('0xd')][_0x2f0a5d('0x13')]&&(_0x2d5724[_0x2f0a5d('0x3d')]=_['merge'](_0x2d5724['where'],{[Op['or']]:_[_0x2f0a5d('0x1e')](_0x2d5724[_0x2f0a5d('0xc')],function(_0x2cc584){const _0x5ca15c=_0x2f0a5d,_0xf756cf={};return _0xf756cf[_0x2cc584]={[Op[_0x5ca15c('0x56')]]:'%'+_0x5777b8['query'][_0x5ca15c('0x13')]+'%'},_0xf756cf;})})),_0x2d5724=_['merge']({},_0x2d5724,_0x5777b8[_0x2f0a5d('0x4c')]),db['JscriptySessionReport'][_0x2f0a5d('0x42')]({'where':_0x2d5724[_0x2f0a5d('0x3d')]})[_0x2f0a5d('0x22')](function(_0x2666f3){const _0x5b1173=_0x2f0a5d;return _0x393e2b[_0x5b1173('0x42')]=_0x2666f3,_0x5777b8[_0x5b1173('0xd')][_0x5b1173('0x3f')]&&(_0x2d5724[_0x5b1173('0x2f')]=[{'all':!![]}]),db[_0x5b1173('0x23')][_0x5b1173('0x60')](_0x2d5724);})['then'](function(_0x17d2e7){const _0x3a77af=_0x2f0a5d;return _0x393e2b[_0x3a77af('0x45')]=_0x17d2e7,_0x393e2b;});})['then'](respondWithFilteredResult(_0x42549c,_0x2d5724))[_0x108b2a('0x18')](handleError(_0x42549c,null));},exports[_0x43f4fe('0x44')]=function(_0x290b34,_0x5db521){const _0x7d5616=_0x43f4fe;let _0x10834a={'raw':!![],'where':{}};const _0x134be4={},_0x82a611={'count':0x0,'rows':[]};return db[_0x7d5616('0x1d')]['findOne']({'where':{'id':_0x290b34[_0x7d5616('0x5c')]['id']}})['then'](handleEntityNotFound(_0x5db521,null))[_0x7d5616('0x22')](function(_0x1b21b1){const _0x4e518b=_0x7d5616;if(_0x1b21b1)return _0x134be4[_0x4e518b('0x33')]=_['keys'](db[_0x4e518b('0x3c')]['rawAttributes']),_0x134be4[_0x4e518b('0xd')]=_[_0x4e518b('0xf')](_0x290b34[_0x4e518b('0xd')]),_0x134be4[_0x4e518b('0x47')]=_['intersection'](_0x134be4[_0x4e518b('0x33')],_0x134be4[_0x4e518b('0xd')]),_0x10834a[_0x4e518b('0xc')]=_[_0x4e518b('0x10')](_0x134be4[_0x4e518b('0x33')],qs[_0x4e518b('0x35')](_0x290b34[_0x4e518b('0xd')][_0x4e518b('0x35')])),_0x10834a[_0x4e518b('0xc')]=_0x10834a[_0x4e518b('0xc')][_0x4e518b('0x3b')]?_0x10834a['attributes']:_0x134be4[_0x4e518b('0x33')],typeof _0x290b34[_0x4e518b('0xd')][_0x4e518b('0x14')]===_0x4e518b('0x59')&&(_0x10834a[_0x4e518b('0x53')]=qs[_0x4e518b('0x53')](_0x290b34['query'][_0x4e518b('0x53')]),_0x10834a[_0x4e518b('0xb')]=qs[_0x4e518b('0xb')](_0x290b34[_0x4e518b('0xd')][_0x4e518b('0xb')])),_0x10834a['order']=qs[_0x4e518b('0x2b')](_0x290b34['query'][_0x4e518b('0x2b')]),_0x10834a[_0x4e518b('0x3d')]=qs[_0x4e518b('0x47')](_['pick'](_0x290b34[_0x4e518b('0xd')],_0x134be4[_0x4e518b('0x47')])),_0x10834a[_0x4e518b('0x3d')][_0x4e518b('0x51')]=_0x1b21b1['id'],_0x290b34['query'][_0x4e518b('0x13')]&&(_0x10834a[_0x4e518b('0x3d')]=_[_0x4e518b('0x39')](_0x10834a[_0x4e518b('0x3d')],{[Op['or']]:_['map'](_0x10834a['attributes'],function(_0x29e16e){const _0x643c52=_0x4e518b,_0x120a3d={};return _0x120a3d[_0x29e16e]={[Op[_0x643c52('0x56')]]:'%'+_0x290b34['query']['filter']+'%'},_0x120a3d;})})),_0x10834a=_['merge']({},_0x10834a,_0x290b34[_0x4e518b('0x4c')]),db[_0x4e518b('0x3c')]['count']({'where':_0x10834a['where']})[_0x4e518b('0x22')](function(_0x3877de){const _0x14f995=_0x4e518b;return _0x82a611[_0x14f995('0x42')]=_0x3877de,_0x290b34['query'][_0x14f995('0x3f')]&&(_0x10834a[_0x14f995('0x2f')]=[{'all':!![]}]),db[_0x14f995('0x3c')][_0x14f995('0x60')](_0x10834a);})[_0x4e518b('0x22')](function(_0x54a10c){const _0x1dfb54=_0x4e518b;return _0x82a611[_0x1dfb54('0x45')]=_0x54a10c,_0x82a611;});})[_0x7d5616('0x22')](respondWithFilteredResult(_0x5db521,_0x10834a))['catch'](handleError(_0x5db521,null));};function char(_0x281019){const _0x3f2bd6=_0x43f4fe;return'number'===typeof _0x281019?String['fromCharCode'][_0x3f2bd6('0x8')](null,arguments):_0x281019;}function needsEncapsulation(_0x2c3820){const _0x229d5c=_0x43f4fe;return!!_0x2c3820&&(_0x2c3820[_0x229d5c('0x32')]()[_0x229d5c('0x11')](char(0xd))>=0x0||_0x2c3820['toString']()[_0x229d5c('0x11')](char(0xa))>=0x0||_0x2c3820[_0x229d5c('0x32')]()[_0x229d5c('0x11')](char(0x2c))>=0x0||_0x2c3820[_0x229d5c('0x32')]()[_0x229d5c('0x11')](char(0x22))>=0x0);}function encapsulate(_0x7edb0d){const _0x31054b=_0x43f4fe,_0x1c3d32=char(0x22),_0x2f2a56='\x5c'+char(0x22),_0x1603f4=_0x7edb0d[_0x31054b('0x32')]()[_0x31054b('0x41')](new RegExp(_0x1c3d32,'g'),_0x2f2a56);return _0x1c3d32+_0x1603f4+_0x1c3d32;}exports['getSummary']=function(_0x1a4c26,_0x31106e){const _0x597566=_0x43f4fe;let _0x2b40bb,_0x5d9dc0;const _0x27126d={'where':{'ProjectId':_0x1a4c26[_0x597566('0x5c')]['id']}};return _0x1a4c26[_0x597566('0xd')][_0x597566('0xa')]&&(_0x27126d[_0x597566('0x3d')][_0x597566('0x12')]=JSON[_0x597566('0x4e')](_0x1a4c26['query'][_0x597566('0xa')])),db['JscriptySessionReport'][_0x597566('0x60')](_0x27126d)[_0x597566('0x22')](handleEntityNotFound(_0x31106e,null))[_0x597566('0x22')](function(_0x288005){const _0x38cf36=_0x597566;if(_0x288005)return _0x2b40bb=_0x288005,db[_0x38cf36('0x2')]['findAll']({'where':{'SessionId':{[Op['in']]:_[_0x38cf36('0x1e')](_0x2b40bb,'id')},'ProjectId':_0x1a4c26[_0x38cf36('0x5c')]['id']},'order':_0x38cf36('0x50')});})[_0x597566('0x22')](handleEntityNotFound(_0x31106e,null))['then'](function(_0x2b6c3c){const _0x3852bb=_0x597566;if(_0x2b6c3c){_0x5d9dc0=_0x2b6c3c;const _0x51f6e0={};for(let _0x2905da=0x0,_0x13ef67=_0x5d9dc0[_0x3852bb('0x3b')];_0x2905da<_0x13ef67;_0x2905da++){typeof _0x51f6e0[_0x5d9dc0[_0x2905da]['questionId']]===_0x3852bb('0x59')&&(_0x51f6e0[_0x5d9dc0[_0x2905da][_0x3852bb('0x25')]]=needsEncapsulation(_0x5d9dc0[_0x2905da][_0x3852bb('0x2e')])?encapsulate(_0x5d9dc0[_0x2905da][_0x3852bb('0x2e')]):_0x5d9dc0[_0x2905da]['question']);}const _0x315f9b=[];let _0x29d556={};for(let _0x44c2da=0x0,_0x179201=_0x2b40bb['length'];_0x44c2da<_0x179201;_0x44c2da++){_0x29d556={'ProjectId':_0x1a4c26[_0x3852bb('0x5c')]['id'],'SessionId':_0x2b40bb[_0x44c2da]['id'],'StartTime':moment(_0x2b40bb[_0x44c2da][_0x3852bb('0x12')])[_0x3852bb('0x36')](_0x3852bb('0x34'))};for(let _0xd9eb2c=0x0,_0x541cc3=_0x5d9dc0['length'];_0xd9eb2c<_0x541cc3;_0xd9eb2c++){_0x5d9dc0[_0xd9eb2c][_0x3852bb('0x40')]===_0x2b40bb[_0x44c2da]['id']&&typeof _0x51f6e0[_0x5d9dc0[_0xd9eb2c]['questionId']]!==_0x3852bb('0x59')&&(_0x29d556[_0x51f6e0[_0x5d9dc0[_0xd9eb2c][_0x3852bb('0x25')]]]=_0x5d9dc0[_0xd9eb2c][_0x3852bb('0x26')]);}for(const _0x211cac in _0x51f6e0){typeof _0x29d556[_0x51f6e0[_0x211cac]]==='undefined'&&(_0x29d556[_0x51f6e0[_0x211cac]]=null);}_0x315f9b[_0x3852bb('0x31')](_0x29d556);}return _0x315f9b;}})['then'](function(_0x72bf00){const _0x5cd425=_0x597566;if(!_[_0x5cd425('0x52')](_0x72bf00)){const _0x27d954=toCsv(_0x72bf00),_0x583749=Date['now']();return fs[_0x5cd425('0x2d')](util['format'](_0x5cd425('0x5b'),_0x1a4c26[_0x5cd425('0x5c')]['id'],_0x583749),_0x27d954),_0x31106e[_0x5cd425('0x48')](_0x5cd425('0x43'),_0x5cd425('0x27')+util[_0x5cd425('0x36')](_0x5cd425('0x28'),_0x1a4c26[_0x5cd425('0x5c')]['id'],_0x583749)),_0x31106e['setHeader'](_0x5cd425('0x4b'),_0x5cd425('0x6')),_0x31106e[_0x5cd425('0x1a')](util[_0x5cd425('0x36')](_0x5cd425('0x5b'),_0x1a4c26[_0x5cd425('0x5c')]['id'],_0x583749));}else return _0x31106e[_0x5cd425('0x58')](0xcc);})[_0x597566('0x18')](handleError(_0x31106e,null));}; \ No newline at end of file +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 diff --git a/server/api/jscriptyProject/jscriptyProject.model.js b/server/api/jscriptyProject/jscriptyProject.model.js index f378874..fc8d16b 100644 --- a/server/api/jscriptyProject/jscriptyProject.model.js +++ b/server/api/jscriptyProject/jscriptyProject.model.js @@ -1 +1 @@ -const a379_0x313d=['jscripty_projects','JscriptyProject','./jscriptyProject.attributes','exports'];(function(_0x5409cf,_0x313d21){const _0x531b2a=function(_0x352802){while(--_0x352802){_0x5409cf['push'](_0x5409cf['shift']());}};_0x531b2a(++_0x313d21);}(a379_0x313d,0xb3));const a379_0x531b=function(_0x5409cf,_0x313d21){_0x5409cf=_0x5409cf-0x0;let _0x531b2a=a379_0x313d[_0x5409cf];return _0x531b2a;};const _0x47fbbf=a379_0x531b;'use strict';const attributes=require(_0x47fbbf('0x3'));module[_0x47fbbf('0x0')]=function(_0x352802){const _0x38f0bc=_0x47fbbf,_0x18b691=_0x352802['define'](_0x38f0bc('0x2'),attributes,{'tableName':_0x38f0bc('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x18b691;}; \ No newline at end of file +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 diff --git a/server/api/jscriptyQuestionReport/index.js b/server/api/jscriptyQuestionReport/index.js index e6b8431..49a37b0 100644 --- a/server/api/jscriptyQuestionReport/index.js +++ b/server/api/jscriptyQuestionReport/index.js @@ -1 +1 @@ -const a380_0x1c5a=['put','describe','get','/:id','exports','index','isAuthenticated','delete','post','create','Router','/describe','destroy','show','update'];(function(_0x117614,_0x1c5a23){const _0x417833=function(_0x4ed015){while(--_0x4ed015){_0x117614['push'](_0x117614['shift']());}};_0x417833(++_0x1c5a23);}(a380_0x1c5a,0x91));const a380_0x4178=function(_0x117614,_0x1c5a23){_0x117614=_0x117614-0x0;let _0x417833=a380_0x1c5a[_0x117614];return _0x417833;};const _0x3597c0=a380_0x4178;'use strict';const express=require('express'),router=express[_0x3597c0('0x0')](),auth=require('../../components/auth/service'),controller=require('./jscriptyQuestionReport.controller');router['get']('/',auth[_0x3597c0('0xb')](),controller[_0x3597c0('0xa')]),router[_0x3597c0('0x7')](_0x3597c0('0x1'),auth[_0x3597c0('0xb')](),controller[_0x3597c0('0x6')]),router[_0x3597c0('0x7')](_0x3597c0('0x8'),auth[_0x3597c0('0xb')](),controller[_0x3597c0('0x3')]),router[_0x3597c0('0xd')]('/',auth[_0x3597c0('0xb')](),controller[_0x3597c0('0xe')]),router[_0x3597c0('0x5')]('/:id',auth['isAuthenticated'](),controller[_0x3597c0('0x4')]),router[_0x3597c0('0xc')]('/:id',auth[_0x3597c0('0xb')](),controller[_0x3597c0('0x2')]),module[_0x3597c0('0x9')]=router; \ No newline at end of file +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 diff --git a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.attributes.js b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.attributes.js index 39065db..4d65786 100644 --- a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.attributes.js +++ b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.attributes.js @@ -1 +1 @@ -const a381_0x4a59=['STRING','long','TEXT','sequelize','exports'];(function(_0x166e52,_0x4a596c){const _0x1b2705=function(_0x1b232a){while(--_0x1b232a){_0x166e52['push'](_0x166e52['shift']());}};_0x1b2705(++_0x4a596c);}(a381_0x4a59,0xc4));const a381_0x1b27=function(_0x166e52,_0x4a596c){_0x166e52=_0x166e52-0x0;let _0x1b2705=a381_0x4a59[_0x166e52];return _0x1b2705;};const _0x361887=a381_0x1b27;'use strict';const Sequelize=require(_0x361887('0x2'));module[_0x361887('0x3')]={'question':{'type':Sequelize[_0x361887('0x4')]},'answer':{'type':Sequelize[_0x361887('0x1')](_0x361887('0x0'))},'membername':{'type':Sequelize[_0x361887('0x4')]},'projectname':{'type':Sequelize[_0x361887('0x4')]},'queue':{'type':Sequelize[_0x361887('0x4')]},'uniqueid':{'type':Sequelize[_0x361887('0x4')]},'calleridname':{'type':Sequelize[_0x361887('0x4')]},'calleridnum':{'type':Sequelize[_0x361887('0x4')]},'questionId':{'type':Sequelize[_0x361887('0x4')]}}; \ No newline at end of file +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 diff --git a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.controller.js b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.controller.js index ea492de..5d7d9e4 100644 --- a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.controller.js +++ b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.controller.js @@ -1 +1 @@ -const a382_0x2413=['create','model','sort','VIRTUAL','where','update','describe','then','findOne','rows','attributes','Content-Range','../../config/logger','intersection','stack','nolimit','includeAll','status','limit','fieldName','merge','body','length','api','json','findAll','name','catch','order','index','query','like','keys','../../mysqldb','send','type','lodash','count','JscriptyQuestionReport','offset','set','sequelize','../../components/parsers/qs','filter','params','sendStatus','map','fields','end','destroy','rawAttributes','pick','options','show','filters'];(function(_0xa35311,_0x241307){const _0x40a5ae=function(_0x45553f){while(--_0x45553f){_0xa35311['push'](_0xa35311['shift']());}};_0x40a5ae(++_0x241307);}(a382_0x2413,0x149));const a382_0x40a5=function(_0xa35311,_0x241307){_0xa35311=_0xa35311-0x0;let _0x40a5ae=a382_0x2413[_0xa35311];return _0x40a5ae;};const _0x1bdfd9=a382_0x40a5;'use strict';const _=require(_0x1bdfd9('0x25')),qs=require(_0x1bdfd9('0x2b')),logger=require(_0x1bdfd9('0xd'))(_0x1bdfd9('0x18')),db=require(_0x1bdfd9('0x22'))['db'],{Op}=require(_0x1bdfd9('0x2a'));function respondWithResult(_0x45553f,_0x59f61d){return _0x59f61d=_0x59f61d||0xc8,function(_0x3a3615){const _0x56aed3=a382_0x40a5;if(_0x3a3615)return _0x45553f[_0x56aed3('0x12')](_0x59f61d)['json'](_0x3a3615);};}function respondWithFilteredResult(_0x188f38,_0x1a0adb){return function(_0x59da27){const _0x31ef09=a382_0x40a5;if(_0x59da27){const _0x3ae719=_0x59da27[_0x31ef09('0x26')],_0x40f2fa=_0x1a0adb[_0x31ef09('0x28')];let _0x3dc823=_0x1a0adb[_0x31ef09('0x28')]+_0x1a0adb['limit'],_0x54e4b7;return _0x3dc823>=_0x3ae719?(_0x3dc823=_0x3ae719,_0x54e4b7=0xc8):_0x54e4b7=0xce,_0x188f38[_0x31ef09('0x12')](_0x54e4b7),_0x188f38[_0x31ef09('0x29')](_0x31ef09('0xc'),_0x40f2fa+'-'+_0x3dc823+'/'+_0x3ae719)[_0x31ef09('0x19')](_0x59da27);}return null;};}function saveUpdates(_0x280129){return function(_0x2779cc){const _0xcb5b7c=a382_0x40a5;if(_0x2779cc)return _0x2779cc[_0xcb5b7c('0x6')](_0x280129)['then'](function(_0x1232ef){return _0x1232ef;});return null;};}function removeEntity(_0x100ed8){return function(_0x409a77){const _0x3f2221=a382_0x40a5;if(_0x409a77)return _0x409a77[_0x3f2221('0x32')]()[_0x3f2221('0x8')](function(){const _0x5314e7=_0x3f2221;_0x100ed8['status'](0xcc)[_0x5314e7('0x31')]();});};}function handleEntityNotFound(_0x1019bd){return function(_0x7831aa){const _0x514036=a382_0x40a5;return!_0x7831aa&&_0x1019bd[_0x514036('0x2e')](0x194),_0x7831aa;};}function handleError(_0x569d4c,_0x2904d5){return _0x2904d5=_0x2904d5||0x1f4,function(_0x4d7d55){const _0x386885=a382_0x40a5;logger['error'](_0x4d7d55[_0x386885('0xf')]),_0x4d7d55[_0x386885('0x1b')]&&delete _0x4d7d55['name'],_0x569d4c[_0x386885('0x12')](_0x2904d5)[_0x386885('0x23')](_0x4d7d55);};}exports[_0x1bdfd9('0x1e')]=function(_0x535e2b,_0x57d919){const _0x4b2e6f=_0x1bdfd9;let _0x368323={};const _0x3a14a4={},_0x2af670={'count':0x0,'rows':[]},_0x2627d1=_[_0x4b2e6f('0x2f')](db[_0x4b2e6f('0x27')][_0x4b2e6f('0x33')],function(_0x3d2656){const _0xb624ea=_0x4b2e6f;return{'name':_0x3d2656[_0xb624ea('0x14')],'type':_0x3d2656[_0xb624ea('0x24')]['key']};});_0x3a14a4[_0x4b2e6f('0x2')]=_[_0x4b2e6f('0x2f')](_0x2627d1,_0x4b2e6f('0x1b')),_0x3a14a4[_0x4b2e6f('0x1f')]=_[_0x4b2e6f('0x21')](_0x535e2b[_0x4b2e6f('0x1f')]),_0x3a14a4[_0x4b2e6f('0x0')]=_['intersection'](_0x3a14a4['model'],_0x3a14a4[_0x4b2e6f('0x1f')]),_0x368323[_0x4b2e6f('0xb')]=_[_0x4b2e6f('0xe')](_0x3a14a4[_0x4b2e6f('0x2')],qs[_0x4b2e6f('0x30')](_0x535e2b[_0x4b2e6f('0x1f')][_0x4b2e6f('0x30')])),_0x368323[_0x4b2e6f('0xb')]=_0x368323['attributes'][_0x4b2e6f('0x17')]?_0x368323['attributes']:_0x3a14a4[_0x4b2e6f('0x2')];typeof _0x535e2b[_0x4b2e6f('0x1f')][_0x4b2e6f('0x10')]==='undefined'&&(_0x368323['limit']=qs[_0x4b2e6f('0x13')](_0x535e2b[_0x4b2e6f('0x1f')][_0x4b2e6f('0x13')]),_0x368323[_0x4b2e6f('0x28')]=qs[_0x4b2e6f('0x28')](_0x535e2b['query'][_0x4b2e6f('0x28')]));_0x368323[_0x4b2e6f('0x1d')]=qs['sort'](_0x535e2b[_0x4b2e6f('0x1f')][_0x4b2e6f('0x3')]),_0x368323[_0x4b2e6f('0x5')]=qs[_0x4b2e6f('0x0')](_[_0x4b2e6f('0x34')](_0x535e2b[_0x4b2e6f('0x1f')],_0x3a14a4[_0x4b2e6f('0x0')]),_0x2627d1);_0x535e2b[_0x4b2e6f('0x1f')][_0x4b2e6f('0x2c')]&&(_0x368323[_0x4b2e6f('0x5')]=_['merge'](_0x368323[_0x4b2e6f('0x5')],{[Op['or']]:_[_0x4b2e6f('0x2f')](_0x2627d1,function(_0x219999){const _0x254a7a=_0x4b2e6f;if(_0x219999[_0x254a7a('0x24')]!==_0x254a7a('0x4')){const _0x3b28df={};return _0x3b28df[_0x219999['name']]={[Op[_0x254a7a('0x20')]]:'%'+_0x535e2b['query'][_0x254a7a('0x2c')]+'%'},_0x3b28df;}})}));_0x368323=_[_0x4b2e6f('0x15')]({},_0x368323,_0x535e2b[_0x4b2e6f('0x35')]);const _0xc27c5b={'where':_0x368323['where']};return db['JscriptyQuestionReport'][_0x4b2e6f('0x26')](_0xc27c5b)[_0x4b2e6f('0x8')](function(_0x1c6df7){const _0xe54821=_0x4b2e6f;return _0x2af670[_0xe54821('0x26')]=_0x1c6df7,_0x535e2b['query']['includeAll']&&(_0x368323['include']=[{'all':!![]}]),db[_0xe54821('0x27')][_0xe54821('0x1a')](_0x368323);})[_0x4b2e6f('0x8')](function(_0x3ca67c){const _0x5e39d8=_0x4b2e6f;return _0x2af670[_0x5e39d8('0xa')]=_0x3ca67c,_0x2af670;})[_0x4b2e6f('0x8')](respondWithFilteredResult(_0x57d919,_0x368323))[_0x4b2e6f('0x1c')](handleError(_0x57d919,null));},exports[_0x1bdfd9('0x36')]=function(_0x595970,_0x3a854e){const _0xf5b6cd=_0x1bdfd9;let _0x24bc88={'raw':!![],'where':{'id':_0x595970[_0xf5b6cd('0x2d')]['id']}};const _0x128589={};return _0x128589[_0xf5b6cd('0x2')]=_[_0xf5b6cd('0x21')](db[_0xf5b6cd('0x27')]['rawAttributes']),_0x128589[_0xf5b6cd('0x1f')]=_[_0xf5b6cd('0x21')](_0x595970[_0xf5b6cd('0x1f')]),_0x128589['filters']=_[_0xf5b6cd('0xe')](_0x128589[_0xf5b6cd('0x2')],_0x128589['query']),_0x24bc88['attributes']=_[_0xf5b6cd('0xe')](_0x128589[_0xf5b6cd('0x2')],qs[_0xf5b6cd('0x30')](_0x595970[_0xf5b6cd('0x1f')][_0xf5b6cd('0x30')])),_0x24bc88[_0xf5b6cd('0xb')]=_0x24bc88[_0xf5b6cd('0xb')][_0xf5b6cd('0x17')]?_0x24bc88[_0xf5b6cd('0xb')]:_0x128589[_0xf5b6cd('0x2')],_0x595970[_0xf5b6cd('0x1f')][_0xf5b6cd('0x11')]&&(_0x24bc88['include']=[{'all':!![]}]),_0x24bc88=_[_0xf5b6cd('0x15')]({},_0x24bc88,_0x595970[_0xf5b6cd('0x35')]),db[_0xf5b6cd('0x27')][_0xf5b6cd('0x9')](_0x24bc88)[_0xf5b6cd('0x8')](handleEntityNotFound(_0x3a854e,null))[_0xf5b6cd('0x8')](respondWithResult(_0x3a854e,null))[_0xf5b6cd('0x1c')](handleError(_0x3a854e,null));},exports[_0x1bdfd9('0x1')]=function(_0x6add3c,_0x44f469){const _0x2fdb08=_0x1bdfd9;return db['JscriptyQuestionReport']['create'](_0x6add3c[_0x2fdb08('0x16')],{})['then'](respondWithResult(_0x44f469,0xc9))[_0x2fdb08('0x1c')](handleError(_0x44f469,null));},exports[_0x1bdfd9('0x6')]=function(_0x558b9a,_0x31d49e){const _0x49b064=_0x1bdfd9;return _0x558b9a[_0x49b064('0x16')]['id']&&delete _0x558b9a[_0x49b064('0x16')]['id'],db['JscriptyQuestionReport']['findOne']({'where':{'id':_0x558b9a['params']['id']}})[_0x49b064('0x8')](handleEntityNotFound(_0x31d49e,null))[_0x49b064('0x8')](saveUpdates(_0x558b9a['body'],null))['then'](respondWithResult(_0x31d49e,null))['catch'](handleError(_0x31d49e,null));},exports[_0x1bdfd9('0x32')]=function(_0x2333f2,_0x4e411d){const _0x65330c=_0x1bdfd9;return db[_0x65330c('0x27')]['findOne']({'where':{'id':_0x2333f2[_0x65330c('0x2d')]['id']}})[_0x65330c('0x8')](handleEntityNotFound(_0x4e411d,null))[_0x65330c('0x8')](removeEntity(_0x4e411d,null))['catch'](handleError(_0x4e411d,null));},exports[_0x1bdfd9('0x7')]=function(_0x171620,_0xa99d83){const _0x53b22a=_0x1bdfd9;return db['JscriptyQuestionReport'][_0x53b22a('0x7')]()[_0x53b22a('0x8')](respondWithResult(_0xa99d83,null))[_0x53b22a('0x1c')](handleError(_0xa99d83,null));}; \ No newline at end of file +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 diff --git a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.model.js b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.model.js index 6d9acaa..679d75c 100644 --- a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.model.js +++ b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.model.js @@ -1 +1 @@ -const a383_0x4944=['define','JscriptyQuestionReport'];(function(_0x40457e,_0x494478){const _0x25a663=function(_0x5893a9){while(--_0x5893a9){_0x40457e['push'](_0x40457e['shift']());}};_0x25a663(++_0x494478);}(a383_0x4944,0x199));const a383_0x25a6=function(_0x40457e,_0x494478){_0x40457e=_0x40457e-0x0;let _0x25a663=a383_0x4944[_0x40457e];return _0x25a663;};'use strict';const attributes=require('./jscriptyQuestionReport.attributes');module['exports']=function(_0x5893a9){const _0x75ec10=a383_0x25a6,_0x263263=_0x5893a9[_0x75ec10('0x1')](_0x75ec10('0x0'),attributes,{'tableName':'report_jscripty_questions','paranoid':![],'indexes':[],'timestamps':!![]});return _0x263263;}; \ No newline at end of file +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 diff --git a/server/api/jscriptySessionReport/index.js b/server/api/jscriptySessionReport/index.js index 2180ce3..1dd2cd7 100644 --- a/server/api/jscriptySessionReport/index.js +++ b/server/api/jscriptySessionReport/index.js @@ -1 +1 @@ -const a384_0x4a33=['create','Router','/:id','express','/describe','show','isAuthenticated','update','/:id/questions','delete','getQuestions','../../components/auth/service','describe','get','destroy','exports'];(function(_0xfd8384,_0x4a3377){const _0x4c9d63=function(_0x205fc5){while(--_0x205fc5){_0xfd8384['push'](_0xfd8384['shift']());}};_0x4c9d63(++_0x4a3377);}(a384_0x4a33,0x1c3));const a384_0x4c9d=function(_0xfd8384,_0x4a3377){_0xfd8384=_0xfd8384-0x0;let _0x4c9d63=a384_0x4a33[_0xfd8384];return _0x4c9d63;};const _0x4f0d55=a384_0x4c9d;'use strict';const express=require(_0x4f0d55('0x0')),router=express[_0x4f0d55('0xe')](),auth=require(_0x4f0d55('0x8')),controller=require('./jscriptySessionReport.controller');router[_0x4f0d55('0xa')]('/',auth[_0x4f0d55('0x3')](),controller['index']),router['get'](_0x4f0d55('0x1'),auth[_0x4f0d55('0x3')](),controller[_0x4f0d55('0x9')]),router['get'](_0x4f0d55('0xf'),auth[_0x4f0d55('0x3')](),controller[_0x4f0d55('0x2')]),router[_0x4f0d55('0xa')](_0x4f0d55('0x5'),auth[_0x4f0d55('0x3')](),controller[_0x4f0d55('0x7')]),router['post']('/',auth[_0x4f0d55('0x3')](),controller[_0x4f0d55('0xd')]),router['put'](_0x4f0d55('0xf'),auth[_0x4f0d55('0x3')](),controller[_0x4f0d55('0x4')]),router[_0x4f0d55('0x6')](_0x4f0d55('0xf'),auth['isAuthenticated'](),controller[_0x4f0d55('0xb')]),module[_0x4f0d55('0xc')]=router; \ No newline at end of file +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 diff --git a/server/api/jscriptySessionReport/jscriptySessionReport.attributes.js b/server/api/jscriptySessionReport/jscriptySessionReport.attributes.js index bfa979d..ed09e64 100644 --- a/server/api/jscriptySessionReport/jscriptySessionReport.attributes.js +++ b/server/api/jscriptySessionReport/jscriptySessionReport.attributes.js @@ -1 +1 @@ -const a385_0xbd7a=['exports','format','starttime','STRING','endtime','sequelize','DATE'];(function(_0x149f7d,_0xbd7ab1){const _0x453280=function(_0x29caff){while(--_0x29caff){_0x149f7d['push'](_0x149f7d['shift']());}};_0x453280(++_0xbd7ab1);}(a385_0xbd7a,0x1e9));const a385_0x4532=function(_0x149f7d,_0xbd7ab1){_0x149f7d=_0x149f7d-0x0;let _0x453280=a385_0xbd7a[_0x149f7d];return _0x453280;};const _0x508c15=a385_0x4532;'use strict';const moment=require('moment'),Sequelize=require(_0x508c15('0x6'));module[_0x508c15('0x1')]={'starttime':{'type':Sequelize[_0x508c15('0x0')],'set':function(_0x29caff){const _0x562fdf=_0x508c15;this['setDataValue'](_0x562fdf('0x3'),_0x29caff),this['setDataValue'](_0x562fdf('0x5'),moment()[_0x562fdf('0x2')]('YYYY-MM-DD\x20HH:mm:ss'));}},'endtime':{'type':Sequelize['DATE']},'membername':{'type':Sequelize['STRING']},'projectname':{'type':Sequelize[_0x508c15('0x4')]},'queue':{'type':Sequelize[_0x508c15('0x4')]},'uniqueid':{'type':Sequelize[_0x508c15('0x4')]},'calleridname':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize[_0x508c15('0x4')]},'completed':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}}; \ No newline at end of file +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 diff --git a/server/api/jscriptySessionReport/jscriptySessionReport.controller.js b/server/api/jscriptySessionReport/jscriptySessionReport.controller.js index 669e412..5b80b9c 100644 --- a/server/api/jscriptySessionReport/jscriptySessionReport.controller.js +++ b/server/api/jscriptySessionReport/jscriptySessionReport.controller.js @@ -1 +1 @@ -const a386_0x1534=['../../mysqldb','sendStatus','includeAll','destroy','findAll','model','create','pick','where','json','undefined','error','count','JscriptyQuestionReport','JscriptySessionReport','name','send','query','like','order','include','attributes','../../components/parsers/qs','params','getQuestions','sequelize','catch','intersection','SessionId','filter','body','sort','nolimit','offset','fields','options','rawAttributes','findOne','index','stack','update','length','filters','set','then','merge','status','rows','../../config/logger','lodash','fieldName','describe','show','keys','limit','map'];(function(_0x145d26,_0x15347a){const _0x4523fa=function(_0x8f15cc){while(--_0x8f15cc){_0x145d26['push'](_0x145d26['shift']());}};_0x4523fa(++_0x15347a);}(a386_0x1534,0x1af));const a386_0x4523=function(_0x145d26,_0x15347a){_0x145d26=_0x145d26-0x0;let _0x4523fa=a386_0x1534[_0x145d26];return _0x4523fa;};const _0x4008ba=a386_0x4523;'use strict';const _=require(_0x4008ba('0xa')),qs=require(_0x4008ba('0x27')),logger=require(_0x4008ba('0x9'))('api'),db=require(_0x4008ba('0x11'))['db'],{Op}=require(_0x4008ba('0x2a'));function respondWithResult(_0x8f15cc,_0x3c79e4){return _0x3c79e4=_0x3c79e4||0xc8,function(_0xff2976){const _0x536f0a=a386_0x4523;if(_0xff2976)return _0x8f15cc[_0x536f0a('0x7')](_0x3c79e4)[_0x536f0a('0x1a')](_0xff2976);};}function respondWithFilteredResult(_0x374986,_0x32a8e7){return function(_0x38b467){const _0x262042=a386_0x4523;if(_0x38b467){const _0x10ffe8=_0x38b467['count'],_0xa444cc=_0x32a8e7[_0x262042('0x32')];let _0x3bdd46=_0x32a8e7[_0x262042('0x32')]+_0x32a8e7[_0x262042('0xf')],_0x5a5c7b;return _0x3bdd46>=_0x10ffe8?(_0x3bdd46=_0x10ffe8,_0x5a5c7b=0xc8):_0x5a5c7b=0xce,_0x374986[_0x262042('0x7')](_0x5a5c7b),_0x374986[_0x262042('0x4')]('Content-Range',_0xa444cc+'-'+_0x3bdd46+'/'+_0x10ffe8)['json'](_0x38b467);}return null;};}function saveUpdates(_0xc6012d){return function(_0x537e41){const _0x104904=a386_0x4523;if(_0x537e41)return _0x537e41[_0x104904('0x1')](_0xc6012d)[_0x104904('0x5')](function(_0x3049c8){return _0x3049c8;});return null;};}function removeEntity(_0x27d5b1){return function(_0x2a2b76){const _0x45bf47=a386_0x4523;if(_0x2a2b76)return _0x2a2b76['destroy']()[_0x45bf47('0x5')](function(){const _0x588c1e=_0x45bf47;_0x27d5b1[_0x588c1e('0x7')](0xcc)['end']();});};}function handleEntityNotFound(_0x4fc9a0){return function(_0x102977){const _0x2e85b7=a386_0x4523;return!_0x102977&&_0x4fc9a0[_0x2e85b7('0x12')](0x194),_0x102977;};}function handleError(_0x5a05d4,_0x478901){return _0x478901=_0x478901||0x1f4,function(_0x5c4aa6){const _0x32f14f=a386_0x4523;logger[_0x32f14f('0x1c')](_0x5c4aa6[_0x32f14f('0x0')]),_0x5c4aa6['name']&&delete _0x5c4aa6[_0x32f14f('0x20')],_0x5a05d4[_0x32f14f('0x7')](_0x478901)[_0x32f14f('0x21')](_0x5c4aa6);};}exports[_0x4008ba('0x37')]=function(_0x13b9de,_0x540774){const _0x2d926a=_0x4008ba;let _0x25d48b={};const _0x46e08d={},_0x34f661={'count':0x0,'rows':[]},_0x58fce4=_[_0x2d926a('0x10')](db['JscriptySessionReport'][_0x2d926a('0x35')],function(_0x5b9722){const _0x3a90b7=_0x2d926a;return{'name':_0x5b9722[_0x3a90b7('0xb')],'type':_0x5b9722['type']['key']};});_0x46e08d[_0x2d926a('0x16')]=_[_0x2d926a('0x10')](_0x58fce4,_0x2d926a('0x20')),_0x46e08d['query']=_[_0x2d926a('0xe')](_0x13b9de[_0x2d926a('0x22')]),_0x46e08d[_0x2d926a('0x3')]=_[_0x2d926a('0x2c')](_0x46e08d['model'],_0x46e08d['query']),_0x25d48b[_0x2d926a('0x26')]=_[_0x2d926a('0x2c')](_0x46e08d[_0x2d926a('0x16')],qs[_0x2d926a('0x33')](_0x13b9de['query'][_0x2d926a('0x33')])),_0x25d48b[_0x2d926a('0x26')]=_0x25d48b['attributes'][_0x2d926a('0x2')]?_0x25d48b[_0x2d926a('0x26')]:_0x46e08d[_0x2d926a('0x16')];typeof _0x13b9de[_0x2d926a('0x22')][_0x2d926a('0x31')]===_0x2d926a('0x1b')&&(_0x25d48b[_0x2d926a('0xf')]=qs['limit'](_0x13b9de[_0x2d926a('0x22')][_0x2d926a('0xf')]),_0x25d48b[_0x2d926a('0x32')]=qs[_0x2d926a('0x32')](_0x13b9de[_0x2d926a('0x22')][_0x2d926a('0x32')]));_0x25d48b['order']=qs['sort'](_0x13b9de[_0x2d926a('0x22')][_0x2d926a('0x30')]),_0x25d48b[_0x2d926a('0x19')]=qs[_0x2d926a('0x3')](_[_0x2d926a('0x18')](_0x13b9de[_0x2d926a('0x22')],_0x46e08d[_0x2d926a('0x3')]),_0x58fce4);_0x13b9de[_0x2d926a('0x22')][_0x2d926a('0x2e')]&&(_0x25d48b['where']=_['merge'](_0x25d48b['where'],{[Op['or']]:_['map'](_0x58fce4,function(_0x3eb839){const _0x5bd512=_0x2d926a;if(_0x3eb839['type']!=='VIRTUAL'){const _0x326081={};return _0x326081[_0x3eb839[_0x5bd512('0x20')]]={[Op[_0x5bd512('0x23')]]:'%'+_0x13b9de[_0x5bd512('0x22')][_0x5bd512('0x2e')]+'%'},_0x326081;}})}));_0x25d48b=_[_0x2d926a('0x6')]({},_0x25d48b,_0x13b9de[_0x2d926a('0x34')]);const _0x369035={'where':_0x25d48b[_0x2d926a('0x19')]};return db['JscriptySessionReport'][_0x2d926a('0x1d')](_0x369035)[_0x2d926a('0x5')](function(_0x96f536){const _0x1ea902=_0x2d926a;return _0x34f661[_0x1ea902('0x1d')]=_0x96f536,_0x13b9de[_0x1ea902('0x22')][_0x1ea902('0x13')]&&(_0x25d48b[_0x1ea902('0x25')]=[{'all':!![]}]),db[_0x1ea902('0x1f')][_0x1ea902('0x15')](_0x25d48b);})[_0x2d926a('0x5')](function(_0x65b4f){const _0x2d45f1=_0x2d926a;return _0x34f661[_0x2d45f1('0x8')]=_0x65b4f,_0x34f661;})['then'](respondWithFilteredResult(_0x540774,_0x25d48b))[_0x2d926a('0x2b')](handleError(_0x540774,null));},exports[_0x4008ba('0xd')]=function(_0x77a5eb,_0x1de966){const _0x36693e=_0x4008ba;let _0x3a774f={'raw':!![],'where':{'id':_0x77a5eb[_0x36693e('0x28')]['id']}};const _0x40d013={};return _0x40d013[_0x36693e('0x16')]=_[_0x36693e('0xe')](db['JscriptySessionReport'][_0x36693e('0x35')]),_0x40d013[_0x36693e('0x22')]=_[_0x36693e('0xe')](_0x77a5eb[_0x36693e('0x22')]),_0x40d013['filters']=_[_0x36693e('0x2c')](_0x40d013[_0x36693e('0x16')],_0x40d013['query']),_0x3a774f[_0x36693e('0x26')]=_[_0x36693e('0x2c')](_0x40d013[_0x36693e('0x16')],qs['fields'](_0x77a5eb[_0x36693e('0x22')][_0x36693e('0x33')])),_0x3a774f[_0x36693e('0x26')]=_0x3a774f[_0x36693e('0x26')][_0x36693e('0x2')]?_0x3a774f[_0x36693e('0x26')]:_0x40d013[_0x36693e('0x16')],_0x77a5eb[_0x36693e('0x22')][_0x36693e('0x13')]&&(_0x3a774f['include']=[{'all':!![]}]),_0x3a774f=_['merge']({},_0x3a774f,_0x77a5eb['options']),db[_0x36693e('0x1f')]['findOne'](_0x3a774f)[_0x36693e('0x5')](handleEntityNotFound(_0x1de966,null))[_0x36693e('0x5')](respondWithResult(_0x1de966,null))['catch'](handleError(_0x1de966,null));},exports[_0x4008ba('0x17')]=function(_0x276ca0,_0x36e093){const _0x5da993=_0x4008ba;return db[_0x5da993('0x1f')][_0x5da993('0x17')](_0x276ca0['body'],{})[_0x5da993('0x5')](respondWithResult(_0x36e093,0xc9))['catch'](handleError(_0x36e093,null));},exports[_0x4008ba('0x1')]=function(_0x4a0c96,_0x499e1d){const _0x4386f1=_0x4008ba;return _0x4a0c96[_0x4386f1('0x2f')]['id']&&delete _0x4a0c96[_0x4386f1('0x2f')]['id'],db[_0x4386f1('0x1f')][_0x4386f1('0x36')]({'where':{'id':_0x4a0c96[_0x4386f1('0x28')]['id']}})['then'](handleEntityNotFound(_0x499e1d,null))[_0x4386f1('0x5')](saveUpdates(_0x4a0c96['body'],null))['then'](respondWithResult(_0x499e1d,null))['catch'](handleError(_0x499e1d,null));},exports[_0x4008ba('0x14')]=function(_0x2eb7d6,_0x37044a){const _0x3a14da=_0x4008ba;return db['JscriptySessionReport']['findOne']({'where':{'id':_0x2eb7d6[_0x3a14da('0x28')]['id']}})[_0x3a14da('0x5')](handleEntityNotFound(_0x37044a,null))[_0x3a14da('0x5')](removeEntity(_0x37044a,null))[_0x3a14da('0x2b')](handleError(_0x37044a,null));},exports['describe']=function(_0x516219,_0x462931){const _0xc1b208=_0x4008ba;return db[_0xc1b208('0x1f')][_0xc1b208('0xc')]()['then'](respondWithResult(_0x462931,null))[_0xc1b208('0x2b')](handleError(_0x462931,null));},exports[_0x4008ba('0x29')]=function(_0x4276f8,_0x3b9e3d){const _0x2d4bda=_0x4008ba;let _0x7d31a2={'raw':!![],'where':{}};const _0x470590={},_0x10041f={'count':0x0,'rows':[]};return db[_0x2d4bda('0x1f')][_0x2d4bda('0x36')]({'where':{'id':_0x4276f8[_0x2d4bda('0x28')]['id']}})[_0x2d4bda('0x5')](handleEntityNotFound(_0x3b9e3d,null))[_0x2d4bda('0x5')](function(_0x189f6a){const _0x2568f7=_0x2d4bda;if(_0x189f6a)return _0x470590['model']=_[_0x2568f7('0xe')](db[_0x2568f7('0x1e')][_0x2568f7('0x35')]),_0x470590[_0x2568f7('0x22')]=_['keys'](_0x4276f8[_0x2568f7('0x22')]),_0x470590['filters']=_[_0x2568f7('0x2c')](_0x470590[_0x2568f7('0x16')],_0x470590[_0x2568f7('0x22')]),_0x7d31a2[_0x2568f7('0x26')]=_[_0x2568f7('0x2c')](_0x470590['model'],qs[_0x2568f7('0x33')](_0x4276f8[_0x2568f7('0x22')][_0x2568f7('0x33')])),_0x7d31a2[_0x2568f7('0x26')]=_0x7d31a2['attributes'][_0x2568f7('0x2')]?_0x7d31a2['attributes']:_0x470590[_0x2568f7('0x16')],typeof _0x4276f8[_0x2568f7('0x22')][_0x2568f7('0x31')]===_0x2568f7('0x1b')&&(_0x7d31a2[_0x2568f7('0xf')]=qs['limit'](_0x4276f8[_0x2568f7('0x22')]['limit']),_0x7d31a2[_0x2568f7('0x32')]=qs[_0x2568f7('0x32')](_0x4276f8[_0x2568f7('0x22')][_0x2568f7('0x32')])),_0x7d31a2[_0x2568f7('0x24')]=qs[_0x2568f7('0x30')](_0x4276f8['query'][_0x2568f7('0x30')]),_0x7d31a2[_0x2568f7('0x19')]=qs[_0x2568f7('0x3')](_[_0x2568f7('0x18')](_0x4276f8[_0x2568f7('0x22')],_0x470590[_0x2568f7('0x3')])),_0x7d31a2[_0x2568f7('0x19')][_0x2568f7('0x2d')]=_0x189f6a['id'],_0x4276f8[_0x2568f7('0x22')][_0x2568f7('0x2e')]&&(_0x7d31a2[_0x2568f7('0x19')]=_['merge'](_0x7d31a2[_0x2568f7('0x19')],{[Op['or']]:_[_0x2568f7('0x10')](_0x7d31a2['attributes'],function(_0x5a7fd4){const _0x5402b0=_0x2568f7,_0x3cb5a7={};return _0x3cb5a7[_0x5a7fd4]={[Op[_0x5402b0('0x23')]]:'%'+_0x4276f8['query']['filter']+'%'},_0x3cb5a7;})})),_0x7d31a2=_[_0x2568f7('0x6')]({},_0x7d31a2,_0x4276f8[_0x2568f7('0x34')]),db['JscriptyQuestionReport'][_0x2568f7('0x1d')]({'where':_0x7d31a2[_0x2568f7('0x19')]})[_0x2568f7('0x5')](function(_0x45792b){const _0x2e819a=_0x2568f7;return _0x10041f['count']=_0x45792b,_0x4276f8['query'][_0x2e819a('0x13')]&&(_0x7d31a2['include']=[{'all':!![]}]),db[_0x2e819a('0x1e')][_0x2e819a('0x15')](_0x7d31a2);})[_0x2568f7('0x5')](function(_0x4fb3d8){const _0x1a2d55=_0x2568f7;return _0x10041f[_0x1a2d55('0x8')]=_0x4fb3d8,_0x10041f;});})[_0x2d4bda('0x5')](respondWithFilteredResult(_0x3b9e3d,_0x7d31a2))['catch'](handleError(_0x3b9e3d,null));}; \ No newline at end of file +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 diff --git a/server/api/jscriptySessionReport/jscriptySessionReport.model.js b/server/api/jscriptySessionReport/jscriptySessionReport.model.js index 00671d4..aa442c2 100644 --- a/server/api/jscriptySessionReport/jscriptySessionReport.model.js +++ b/server/api/jscriptySessionReport/jscriptySessionReport.model.js @@ -1 +1 @@ -const a387_0x2d88=['JscriptySessionReport','define','exports','./jscriptySessionReport.attributes','report_jscripty_sessions'];(function(_0xde18e4,_0x2d8893){const _0x44e90a=function(_0x420606){while(--_0x420606){_0xde18e4['push'](_0xde18e4['shift']());}};_0x44e90a(++_0x2d8893);}(a387_0x2d88,0x130));const a387_0x44e9=function(_0xde18e4,_0x2d8893){_0xde18e4=_0xde18e4-0x0;let _0x44e90a=a387_0x2d88[_0xde18e4];return _0x44e90a;};const _0x5aebf9=a387_0x44e9;'use strict';const attributes=require(_0x5aebf9('0x4'));module[_0x5aebf9('0x3')]=function(_0x420606){const _0x81c82=_0x5aebf9,_0x2a29ed=_0x420606[_0x81c82('0x2')](_0x81c82('0x1'),attributes,{'tableName':_0x81c82('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2a29ed;}; \ No newline at end of file +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 diff --git a/server/api/license/index.js b/server/api/license/index.js index c4f51f8..20306eb 100644 --- a/server/api/license/index.js +++ b/server/api/license/index.js @@ -1 +1 @@ -const a388_0x2e87=['get','Router','/:id','isAuthenticated','../../components/auth/service','update','./license.controller'];(function(_0x49b7aa,_0x2e87ed){const _0x4e5451=function(_0x55015f){while(--_0x55015f){_0x49b7aa['push'](_0x49b7aa['shift']());}};_0x4e5451(++_0x2e87ed);}(a388_0x2e87,0x189));const a388_0x4e54=function(_0x49b7aa,_0x2e87ed){_0x49b7aa=_0x49b7aa-0x0;let _0x4e5451=a388_0x2e87[_0x49b7aa];return _0x4e5451;};const _0x1ab74d=a388_0x4e54;'use strict';const express=require('express'),router=express[_0x1ab74d('0x0')](),auth=require(_0x1ab74d('0x3')),controller=require(_0x1ab74d('0x5'));router[_0x1ab74d('0x6')]('/',controller['index']),router['put'](_0x1ab74d('0x1'),auth[_0x1ab74d('0x2')](),controller[_0x1ab74d('0x4')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/license/license.attributes.js b/server/api/license/license.attributes.js index 32e3466..7243aca 100644 --- a/server/api/license/license.attributes.js +++ b/server/api/license/license.attributes.js @@ -1 +1 @@ -const a389_0x52e7=['sequelize','INTEGER','exports','STRING'];(function(_0x291658,_0x52e733){const _0x58874c=function(_0x3869b6){while(--_0x3869b6){_0x291658['push'](_0x291658['shift']());}};_0x58874c(++_0x52e733);}(a389_0x52e7,0x88));const a389_0x5887=function(_0x291658,_0x52e733){_0x291658=_0x291658-0x0;let _0x58874c=a389_0x52e7[_0x291658];return _0x58874c;};const _0xa42412=a389_0x5887;'use strict';const Sequelize=require(_0xa42412('0x0'));module[_0xa42412('0x2')]={'license':{'type':Sequelize['TEXT']},'data1':{'type':Sequelize[_0xa42412('0x3')]},'data2':{'type':Sequelize[_0xa42412('0x3')]},'chatLicenseExceeded':{'type':Sequelize[_0xa42412('0x1')],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/license/license.controller.js b/server/api/license/license.controller.js index 5689100..40ef177 100644 --- a/server/api/license/license.controller.js +++ b/server/api/license/license.controller.js @@ -1 +1 @@ -const a390_0x30b7=['then','keys','stack','params','../../config/logger','key','getLicense','License','fields','../../components/parsers/qs','checkLicense','demo','merge','filters','status','error','attributes','body','update','index','lodash','name','model','length','intersection','query','findOne','../../config/license/util','../../mysqldb','catch','send'];(function(_0x20ab00,_0x30b744){const _0x55ed4a=function(_0x24a0b0){while(--_0x24a0b0){_0x20ab00['push'](_0x20ab00['shift']());}};_0x55ed4a(++_0x30b744);}(a390_0x30b7,0x88));const a390_0x55ed=function(_0x20ab00,_0x30b744){_0x20ab00=_0x20ab00-0x0;let _0x55ed4a=a390_0x30b7[_0x20ab00];return _0x55ed4a;};const _0x2fe50f=a390_0x55ed;'use strict';const _=require(_0x2fe50f('0x8')),qs=require(_0x2fe50f('0x1c')),logger=require(_0x2fe50f('0x17'))('api'),db=require(_0x2fe50f('0x10'))['db'];function respondWithResult(_0x24a0b0,_0xd7d952){return _0xd7d952=_0xd7d952||0xc8,function(_0x30adb0){const _0x1c1c03=a390_0x55ed;if(_0x30adb0)return _0x24a0b0[_0x1c1c03('0x2')](_0xd7d952)['json'](_0x30adb0);};}function saveUpdates(_0x35b0aa){return function(_0x378e20){const _0x288bf9=a390_0x55ed;if(_0x378e20)return _0x378e20[_0x288bf9('0x6')](_0x35b0aa)[_0x288bf9('0x13')](function(_0x218a2d){return _0x218a2d;});return null;};}function handleEntityNotFound(_0x22dd06){return function(_0x17439b){return!_0x17439b&&_0x22dd06['sendStatus'](0x194),_0x17439b;};}function handleError(_0x4a6c62,_0x458574){return _0x458574=_0x458574||0x1f4,function(_0x27136f){const _0x404c3e=a390_0x55ed;logger[_0x404c3e('0x3')](_0x27136f[_0x404c3e('0x15')]),_0x27136f[_0x404c3e('0x9')]&&delete _0x27136f['name'],_0x4a6c62[_0x404c3e('0x2')](_0x458574)[_0x404c3e('0x12')](_0x27136f);};}const utilLicense=require(_0x2fe50f('0xf'));exports[_0x2fe50f('0x7')]=function(_0x2cbf1b,_0x5ae026){const _0x10f6a2=_0x2fe50f;let _0x10f6dc={'raw':!![],'where':{'id':0x1}};const _0x438232={};return _0x438232[_0x10f6a2('0xa')]=_['keys'](db['License']['rawAttributes']),_0x438232[_0x10f6a2('0xd')]=_[_0x10f6a2('0x14')](_0x2cbf1b[_0x10f6a2('0xd')]),_0x438232[_0x10f6a2('0x1')]=_[_0x10f6a2('0xc')](_0x438232[_0x10f6a2('0xa')],_0x438232[_0x10f6a2('0xd')]),_0x10f6dc[_0x10f6a2('0x4')]=_['intersection'](_0x438232[_0x10f6a2('0xa')],qs[_0x10f6a2('0x1b')](_0x2cbf1b[_0x10f6a2('0xd')][_0x10f6a2('0x1b')])),_0x10f6dc[_0x10f6a2('0x4')]=_0x10f6dc[_0x10f6a2('0x4')][_0x10f6a2('0xb')]?_0x10f6dc[_0x10f6a2('0x4')]:_0x438232['model'],_0x10f6dc=_[_0x10f6a2('0x0')]({},_0x10f6dc,_0x2cbf1b['options']),utilLicense[_0x10f6a2('0x19')](_0x10f6dc)[_0x10f6a2('0x13')](respondWithResult(_0x5ae026,null))[_0x10f6a2('0x11')](handleError(_0x5ae026,null));},exports['update']=function(_0x29564b,_0x44279b){const _0x48d08d=_0x2fe50f;return _0x29564b[_0x48d08d('0x5')]['id']&&delete _0x29564b['body']['id'],db[_0x48d08d('0x1a')][_0x48d08d('0xe')]({'where':{'id':_0x29564b[_0x48d08d('0x16')]['id']}})[_0x48d08d('0x13')](handleEntityNotFound(_0x44279b,null))[_0x48d08d('0x13')](function(_0x1789ee){const _0x8f6b2=_0x48d08d,_0x5463eb=_0x1789ee['get']({'plain':!![]});return utilLicense[_0x8f6b2('0x1d')](_0x5463eb,_0x29564b[_0x8f6b2('0x5')][_0x8f6b2('0x18')]);})['then'](function(_0x1ca951){const _0xc050d1=_0x48d08d;if(!_0x1ca951[_0xc050d1('0x1e')])return saveUpdates(_0x29564b[_0xc050d1('0x5')],null);return _0x1ca951;})[_0x48d08d('0x13')](respondWithResult(_0x44279b,null))['catch'](handleError(_0x44279b,null));}; \ No newline at end of file +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 diff --git a/server/api/license/license.model.js b/server/api/license/license.model.js index 04b9220..0897f77 100644 --- a/server/api/license/license.model.js +++ b/server/api/license/license.model.js @@ -1 +1 @@ -const a391_0x3963=['./license.attributes','License','exports'];(function(_0x1de4be,_0x396352){const _0x4de835=function(_0x466d02){while(--_0x466d02){_0x1de4be['push'](_0x1de4be['shift']());}};_0x4de835(++_0x396352);}(a391_0x3963,0x127));const a391_0x4de8=function(_0x1de4be,_0x396352){_0x1de4be=_0x1de4be-0x0;let _0x4de835=a391_0x3963[_0x1de4be];return _0x4de835;};const _0x384b1e=a391_0x4de8;'use strict';const attributes=require(_0x384b1e('0x2'));module[_0x384b1e('0x1')]=function(_0x466d02){const _0x55ba9c=_0x384b1e,_0x1cfe13=_0x466d02['define'](_0x55ba9c('0x0'),attributes,{'tableName':'license','paranoid':![],'indexes':[],'timestamps':!![]});return _0x1cfe13;}; \ No newline at end of file +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 diff --git a/server/api/mailAccount/index.js b/server/api/mailAccount/index.js index 7d68aa4..1e28abd 100644 --- a/server/api/mailAccount/index.js +++ b/server/api/mailAccount/index.js @@ -1 +1 @@ -const a392_0xf739=['/:id/out_servers','addApplications','put','addDisposition','exports','/:id','show','post','/:id/in_servers','addAgents','getSmtp','send','/:id/interactions','/describe','getInteractions','/:id/users','addInteraction','verifySmtp','/:id/applications','getDispositions','isAuthenticated','/:id/verify','delete','removeImap','/:id/canned_answers','removeAnswers','express','destroy','Router','getAnswers','create','/:id/dispositions','describe','index','get','getApplications','addAnswer','getMessages','./mailAccount.controller'];(function(_0x4e1de3,_0xf7393b){const _0x251bf5=function(_0x1651fe){while(--_0x1651fe){_0x4e1de3['push'](_0x4e1de3['shift']());}};_0x251bf5(++_0xf7393b);}(a392_0xf739,0x193));const a392_0x251b=function(_0x4e1de3,_0xf7393b){_0x4e1de3=_0x4e1de3-0x0;let _0x251bf5=a392_0xf739[_0x4e1de3];return _0x251bf5;};const _0x9ed1a5=a392_0x251b;'use strict';const express=require(_0x9ed1a5('0xd')),router=express[_0x9ed1a5('0xf')](),auth=require('../../components/auth/service'),controller=require(_0x9ed1a5('0x19'));router[_0x9ed1a5('0x15')]('/',auth[_0x9ed1a5('0x7')](),controller[_0x9ed1a5('0x14')]),router[_0x9ed1a5('0x15')](_0x9ed1a5('0x0'),auth[_0x9ed1a5('0x7')](),controller[_0x9ed1a5('0x13')]),router[_0x9ed1a5('0x15')](_0x9ed1a5('0x1f'),auth[_0x9ed1a5('0x7')](),controller[_0x9ed1a5('0x20')]),router[_0x9ed1a5('0x15')](_0x9ed1a5('0x12'),auth[_0x9ed1a5('0x7')](),controller[_0x9ed1a5('0x6')]),router[_0x9ed1a5('0x15')](_0x9ed1a5('0xb'),auth[_0x9ed1a5('0x7')](),controller[_0x9ed1a5('0x10')]),router['get'](_0x9ed1a5('0x22'),auth[_0x9ed1a5('0x7')](),controller['getImap']),router['get']('/:id/out_servers',auth['isAuthenticated'](),controller[_0x9ed1a5('0x24')]),router[_0x9ed1a5('0x15')](_0x9ed1a5('0x26'),auth[_0x9ed1a5('0x7')](),controller[_0x9ed1a5('0x1')]),router['get'](_0x9ed1a5('0x5'),auth[_0x9ed1a5('0x7')](),controller[_0x9ed1a5('0x16')]),router[_0x9ed1a5('0x15')]('/:id/messages',auth[_0x9ed1a5('0x7')](),controller[_0x9ed1a5('0x18')]),router[_0x9ed1a5('0x15')](_0x9ed1a5('0x8'),auth[_0x9ed1a5('0x7')](),controller[_0x9ed1a5('0x4')]),router[_0x9ed1a5('0x15')]('/:id/users',auth[_0x9ed1a5('0x7')](),controller['getAgents']),router['post'](_0x9ed1a5('0x12'),auth[_0x9ed1a5('0x7')](),controller[_0x9ed1a5('0x1d')]),router[_0x9ed1a5('0x21')]('/:id/canned_answers',auth[_0x9ed1a5('0x7')](),controller[_0x9ed1a5('0x17')]),router[_0x9ed1a5('0x21')]('/',auth[_0x9ed1a5('0x7')](),controller[_0x9ed1a5('0x11')]),router[_0x9ed1a5('0x21')](_0x9ed1a5('0x22'),auth[_0x9ed1a5('0x7')](),controller['addImap']),router[_0x9ed1a5('0x21')](_0x9ed1a5('0x1a'),auth['isAuthenticated'](),controller['addSmtp']),router[_0x9ed1a5('0x21')](_0x9ed1a5('0x26'),auth[_0x9ed1a5('0x7')](),controller[_0x9ed1a5('0x3')]),router[_0x9ed1a5('0x21')]('/:id/applications',auth[_0x9ed1a5('0x7')](),controller[_0x9ed1a5('0x1b')]),router[_0x9ed1a5('0x21')]('/:id/send',auth[_0x9ed1a5('0x7')](),controller[_0x9ed1a5('0x25')]),router[_0x9ed1a5('0x21')]('/:id/users',auth[_0x9ed1a5('0x7')](),controller[_0x9ed1a5('0x23')]),router[_0x9ed1a5('0x1c')](_0x9ed1a5('0x1f'),auth[_0x9ed1a5('0x7')](),controller['update']),router['delete'](_0x9ed1a5('0x12'),auth[_0x9ed1a5('0x7')](),controller['removeDispositions']),router[_0x9ed1a5('0x9')](_0x9ed1a5('0xb'),auth['isAuthenticated'](),controller[_0x9ed1a5('0xc')]),router[_0x9ed1a5('0x9')](_0x9ed1a5('0x22'),auth[_0x9ed1a5('0x7')](),controller[_0x9ed1a5('0xa')]),router[_0x9ed1a5('0x9')](_0x9ed1a5('0x1a'),auth[_0x9ed1a5('0x7')](),controller['removeSmtp']),router[_0x9ed1a5('0x9')](_0x9ed1a5('0x1f'),auth[_0x9ed1a5('0x7')](),controller[_0x9ed1a5('0xe')]),router[_0x9ed1a5('0x9')](_0x9ed1a5('0x2'),auth['isAuthenticated'](),controller['removeAgents']),module[_0x9ed1a5('0x1e')]=router; \ No newline at end of file +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 diff --git a/server/api/mailAccount/mailAccount.attributes.js b/server/api/mailAccount/mailAccount.attributes.js index 305f194..76ce984 100644 --- a/server/api/mailAccount/mailAccount.attributes.js +++ b/server/api/mailAccount/mailAccount.attributes.js @@ -1 +1 @@ -const a393_0x3d70=['TEXT','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','BOOLEAN','mandatoryDispositionPauseId','Arial,Helvetica,sans-serif','mandatoryDisposition','INTEGER','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','setDataValue','STRING','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}
Subject\x20:\x20{{message.subject}}','UNSIGNED'];(function(_0x486ae6,_0x3d707d){const _0x3a6614=function(_0x131a1f){while(--_0x131a1f){_0x486ae6['push'](_0x486ae6['shift']());}};_0x3a6614(++_0x3d707d);}(a393_0x3d70,0x15c));const a393_0x3a66=function(_0x486ae6,_0x3d707d){_0x486ae6=_0x486ae6-0x0;let _0x3a6614=a393_0x3d70[_0x486ae6];return _0x3a6614;};const _0x4cb048=a393_0x3a66;'use strict';const Sequelize=require('sequelize');module['exports']={'description':{'type':Sequelize[_0x4cb048('0x9')]},'name':{'type':Sequelize[_0x4cb048('0x9')],'allowNull':![]},'service':{'type':Sequelize[_0x4cb048('0x2')],'defaultValue':![]},'email':{'type':Sequelize[_0x4cb048('0x9')],'validate':{'isEmail':!![]}},'active':{'type':Sequelize[_0x4cb048('0x2')],'defaultValue':!![]},'key':{'type':Sequelize[_0x4cb048('0x9')],'allowNull':![]},'template':{'type':Sequelize[_0x4cb048('0x0')]},'markAsUnread':{'type':Sequelize[_0x4cb048('0x2')],'defaultValue':![]},'fontFamily':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x4cb048('0x4')},'fontSize':{'type':Sequelize[_0x4cb048('0x6')](0x2)[_0x4cb048('0xb')],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}},'notificationTemplate':{'type':Sequelize['TEXT'],'defaultValue':function(){const _0x3081ee=_0x4cb048;return _0x3081ee('0xa');}},'notificationSound':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x4cb048('0x2')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x4cb048('0x6')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x4cb048('0x2')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x4cb048('0x6')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x4cb048('0x2')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x4cb048('0x6')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize['INTEGER'],'allowNull':!![],'defaultValue':null,'comment':_0x4cb048('0x1')},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':_0x4cb048('0x7'),'set':function(_0x131a1f){const _0x3e322b=_0x4cb048;if(!_0x131a1f)this['setDataValue'](_0x3e322b('0x3'),null);this[_0x3e322b('0x8')](_0x3e322b('0x5'),_0x131a1f);}}}; \ No newline at end of file +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 diff --git a/server/api/mailAccount/mailAccount.controller.js b/server/api/mailAccount/mailAccount.controller.js index 37bc8d1..5a8cd18 100644 --- a/server/api/mailAccount/mailAccount.controller.js +++ b/server/api/mailAccount/mailAccount.controller.js @@ -1 +1 @@ -const a394_0xa9ce=['util','getApplications','SendMail','ListId','sendStatus','getMessages','YYYY-MM-DD\x20HH:mm:ss','join','show','pick','Unable\x20to\x20retrieve\x20the\x20current\x20user','code','host','MailAccount,\x20%s,\x20%s','mandatoryDispositionPause','where','port','moment','defaults','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','gte','getAgents','end','like','format','ids','getAnswers','MailAccounts','query','removeAnswers','undefined','../../config/environment','rows','MailInteraction','Contact','addAgents','limit','addInteraction','rawAttributes','lodash','filters','Smtp','removeAgents','setImap','Pause','send','getImap','params','secure','path','attachments','../../components/parsers/qs','keys','offset','debug','addDisposition','fullname','set','Messages','MailApplication','removeDispositions','merge','setSmtp','create','pass','./mailAccount.socket','authentication','getSmtp','emit','filter','then','MailServerIn','root','Content-Range','Tags','removeSmtp','messageId','service','isNil','addApplications','attributes','info','userProfileId','update','basename','server/files/attachments','register','verifySmtp','message','intersection','userMailAccount:save','fields','bulkCreate','Imap','map','MailServerOut','DESC','http','addImap','addAnswer','Owner','password','Disposition','cauthentication','getInteractions','cuser','order','internal','updatedAt','request\x20sent','%s\x20<%s>','user','omit','destroy','Sequelize','sort','MailAccount','key','attach','options','List','cpassword','count','request','subject','UserProfileSection','Interaction','CannedAnswer','json','../../config/logger','VerifySmtp','include','sequelize','CmContact','result','active','User','findOne','out','VIRTUAL','Contacts','nolimit','status','isArray','index','get','error','List\x20not\x20found','userMailAccount:remove','from','You\x20can\x27t\x20remove\x20the\x20mail\x20service\x20account','MailMessage','role','auth','MailAccountId','cservice','describe','findAll','type','description','model','tag','catch','split','name','$gte','Tag','stringify','getDispositions','body','length','includeAll'];(function(_0x3b0daa,_0xa9ceae){const _0x5c17e7=function(_0x2d58d0){while(--_0x2d58d0){_0x3b0daa['push'](_0x3b0daa['shift']());}};_0x5c17e7(++_0xa9ceae);}(a394_0xa9ce,0x155));const a394_0x5c17=function(_0x3b0daa,_0xa9ceae){_0x3b0daa=_0x3b0daa-0x0;let _0x5c17e7=a394_0xa9ce[_0x3b0daa];return _0x5c17e7;};const _0x96dc59=a394_0x5c17;'use strict';const moment=require(_0x96dc59('0x14')),util=require(_0x96dc59('0x3')),path=require(_0x96dc59('0x34')),_=require(_0x96dc59('0x2a')),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require(_0x96dc59('0x36')),logger=require(_0x96dc59('0x84'))('api'),config=require(_0x96dc59('0x22')),db=require('../../mysqldb')['db'],{Op}=require(_0x96dc59('0x87'));require(_0x96dc59('0x44'))[_0x96dc59('0x59')](socket);const jayson=require('jayson/promise'),client=jayson['client'][_0x96dc59('0x64')]({'port':0x232b});function respondWithRpcPromise(_0x2d58d0,_0x1e732b,_0x499722,_0x5c42ee){return new Promise(function(_0xedacb6,_0x4a92e7){const _0x327d8e=a394_0x5c17,_0x2ad721=_0x5c42ee||client;return _0x2ad721[_0x327d8e('0x7e')](_0x2d58d0,_0x499722)[_0x327d8e('0x49')](function(_0x163b1e){const _0x2bb155=_0x327d8e;logger[_0x2bb155('0x54')](_0x2bb155('0x10'),_0x1e732b,'request\x20sent'),logger[_0x2bb155('0x39')]('MailAccount,\x20%s,\x20%s,\x20%s',_0x1e732b,_0x2bb155('0x70'),JSON[_0x2bb155('0xaa')](_0x163b1e));if(_0x163b1e[_0x2bb155('0x95')]){if(_0x163b1e['error'][_0x2bb155('0xe')]===0x1f4)return logger[_0x2bb155('0x95')](_0x2bb155('0x10'),_0x1e732b,_0x163b1e[_0x2bb155('0x95')][_0x2bb155('0x5b')]),_0x4a92e7(_0x163b1e[_0x2bb155('0x95')][_0x2bb155('0x5b')]);return logger[_0x2bb155('0x95')](_0x2bb155('0x10'),_0x1e732b,_0x163b1e[_0x2bb155('0x95')][_0x2bb155('0x5b')]),_0xedacb6(_0x163b1e[_0x2bb155('0x95')][_0x2bb155('0x5b')]);}else logger[_0x2bb155('0x54')](_0x2bb155('0x10'),_0x1e732b,_0x2bb155('0x70')),_0xedacb6(_0x163b1e[_0x2bb155('0x89')][_0x2bb155('0x5b')]);})['catch'](function(_0x226aca){const _0x4f2063=_0x327d8e;logger[_0x4f2063('0x95')](_0x4f2063('0x10'),_0x1e732b,_0x226aca),_0x4a92e7(_0x226aca);});});}function respondWithStatusCode(_0x22405f,_0xe18150){return _0xe18150=_0xe18150||0xcc,function(_0xc51a01){const _0x77f22e=a394_0x5c17;if(_0xc51a01)return _0x22405f[_0x77f22e('0x7')](_0xe18150);return _0x22405f[_0x77f22e('0x91')](_0xe18150)['end']();};}function respondWithResult(_0x325245,_0x3463ac){return _0x3463ac=_0x3463ac||0xc8,function(_0x4ea81d){const _0xd2432e=a394_0x5c17;if(_0x4ea81d)return _0x325245[_0xd2432e('0x91')](_0x3463ac)[_0xd2432e('0x83')](_0x4ea81d);};}function respondWithFilteredResult(_0x63582,_0xb47f4){return function(_0x281e54){const _0x5882e1=a394_0x5c17;if(_0x281e54){const _0xfa70d6=_0x281e54['count'],_0x204b6f=_0xb47f4[_0x5882e1('0x38')];let _0x1a777c=_0xb47f4[_0x5882e1('0x38')]+_0xb47f4[_0x5882e1('0x27')],_0x5b56c1;return _0x1a777c>=_0xfa70d6?(_0x1a777c=_0xfa70d6,_0x5b56c1=0xc8):_0x5b56c1=0xce,_0x63582[_0x5882e1('0x91')](_0x5b56c1),_0x63582[_0x5882e1('0x3c')](_0x5882e1('0x4c'),_0x204b6f+'-'+_0x1a777c+'/'+_0xfa70d6)[_0x5882e1('0x83')](_0x281e54);}return null;};}function saveUpdates(_0x3a52f9){return function(_0x5f093e){const _0x227865=a394_0x5c17;if(_0x5f093e)return _0x5f093e[_0x227865('0x56')](_0x3a52f9)[_0x227865('0x49')](function(_0x2edef3){return _0x2edef3;});return null;};}function removeEntity(_0x3dade8){return function(_0x3ca3eb){const _0x635136=a394_0x5c17;if(_0x3ca3eb)return _0x3ca3eb[_0x635136('0x74')]()['then'](function(){const _0xd33b9e=_0x635136,_0x1536db=_0x3ca3eb['get']({'plain':!![]}),_0x366a68=_0xd33b9e('0x1e');return db['UserProfileResource']['destroy']({'where':{'type':_0x366a68,'resourceId':_0x1536db['id']}})[_0xd33b9e('0x49')](function(){return _0x3ca3eb;});})['then'](function(){const _0x5e4927=_0x635136;_0x3dade8[_0x5e4927('0x91')](0xcc)[_0x5e4927('0x19')]();});};}function handleEntityNotFound(_0x22673c){return function(_0x180158){const _0x49a348=a394_0x5c17;return!_0x180158&&_0x22673c[_0x49a348('0x7')](0x194),_0x180158;};}function handleError(_0x5c38f5,_0x561ded){return _0x561ded=_0x561ded||0x1f4,function(_0x4a1467){const _0x3c827a=a394_0x5c17;logger['error'](_0x4a1467['stack']),_0x4a1467[_0x3c827a('0xa7')]&&delete _0x4a1467[_0x3c827a('0xa7')],_0x5c38f5['status'](_0x561ded)[_0x3c827a('0x30')](_0x4a1467);};}exports[_0x96dc59('0x93')]=function(_0x525515,_0x4f377a){const _0x3d0efc=_0x96dc59;let _0x2f564b={'include':[{'model':db[_0x3d0efc('0x4a')],'as':_0x3d0efc('0x60')},{'model':db[_0x3d0efc('0x62')],'as':'Smtp'},{'model':db[_0x3d0efc('0x2f')],'as':_0x3d0efc('0x11')}]};const _0x590043={},_0x2c356c={'count':0x0,'rows':[]},_0x1d35a2=_[_0x3d0efc('0x61')](db['MailAccount'][_0x3d0efc('0x29')],function(_0x42213b){const _0x22a39a=_0x3d0efc;return{'name':_0x42213b['fieldName'],'type':_0x42213b['type'][_0x22a39a('0x78')]};});_0x590043[_0x3d0efc('0xa3')]=_[_0x3d0efc('0x61')](_0x1d35a2,'name'),_0x590043[_0x3d0efc('0x1f')]=_[_0x3d0efc('0x37')](_0x525515[_0x3d0efc('0x1f')]),_0x590043[_0x3d0efc('0x2b')]=_[_0x3d0efc('0x5c')](_0x590043['model'],_0x590043['query']),_0x2f564b[_0x3d0efc('0x53')]=_[_0x3d0efc('0x5c')](_0x590043['model'],qs[_0x3d0efc('0x5e')](_0x525515[_0x3d0efc('0x1f')][_0x3d0efc('0x5e')])),_0x2f564b[_0x3d0efc('0x53')]=_0x2f564b[_0x3d0efc('0x53')][_0x3d0efc('0x1')]?_0x2f564b[_0x3d0efc('0x53')]:_0x590043[_0x3d0efc('0xa3')];typeof _0x525515[_0x3d0efc('0x1f')][_0x3d0efc('0x90')]===_0x3d0efc('0x21')&&(_0x2f564b[_0x3d0efc('0x27')]=qs[_0x3d0efc('0x27')](_0x525515[_0x3d0efc('0x1f')][_0x3d0efc('0x27')]),_0x2f564b[_0x3d0efc('0x38')]=qs[_0x3d0efc('0x38')](_0x525515[_0x3d0efc('0x1f')][_0x3d0efc('0x38')]));_0x2f564b['order']=qs['sort'](_0x525515['query']['sort']),_0x2f564b[_0x3d0efc('0x12')]=qs[_0x3d0efc('0x2b')](_[_0x3d0efc('0xc')](_0x525515[_0x3d0efc('0x1f')],_0x590043[_0x3d0efc('0x2b')]),_0x1d35a2);_0x525515[_0x3d0efc('0x1f')][_0x3d0efc('0x48')]&&(_0x2f564b[_0x3d0efc('0x12')]=_[_0x3d0efc('0x40')](_0x2f564b[_0x3d0efc('0x12')],{[Op['or']]:_[_0x3d0efc('0x61')](_0x1d35a2,function(_0x464f39){const _0x5544c5=_0x3d0efc;if(_0x464f39[_0x5544c5('0xa1')]!==_0x5544c5('0x8e')){const _0x2ec9a9={};return _0x2ec9a9[_0x464f39[_0x5544c5('0xa7')]]={[Op['like']]:'%'+_0x525515[_0x5544c5('0x1f')][_0x5544c5('0x48')]+'%'},_0x2ec9a9;}})}));_0x2f564b=_['merge']({},_0x2f564b,_0x525515[_0x3d0efc('0x7a')]);const _0x2bfe94={'where':_0x2f564b[_0x3d0efc('0x12')]};return db[_0x3d0efc('0x77')]['count'](_0x2bfe94)['then'](function(_0x3ea191){const _0x2261ab=_0x3d0efc;return _0x2c356c[_0x2261ab('0x7d')]=_0x3ea191,_0x525515[_0x2261ab('0x1f')]['includeAll']&&(_0x2f564b[_0x2261ab('0x86')]=[{'all':!![]}]),db[_0x2261ab('0x77')]['findAll'](_0x2f564b);})['then'](function(_0x22fdd3){return _0x2c356c['rows']=_0x22fdd3,_0x2c356c;})[_0x3d0efc('0x49')](respondWithFilteredResult(_0x4f377a,_0x2f564b))[_0x3d0efc('0xa5')](handleError(_0x4f377a,null));},exports[_0x96dc59('0xb')]=function(_0x1ec65e,_0x3bc957){const _0x4c3140=_0x96dc59;let _0x5e7602={'raw':![],'where':{'id':_0x1ec65e[_0x4c3140('0x32')]['id']},'include':[{'model':db[_0x4c3140('0x4a')],'as':_0x4c3140('0x60')},{'model':db[_0x4c3140('0x62')],'as':_0x4c3140('0x2c')},{'model':db[_0x4c3140('0x2f')],'as':_0x4c3140('0x11')}]};const _0x3d743c={};return _0x3d743c[_0x4c3140('0xa3')]=_[_0x4c3140('0x37')](db[_0x4c3140('0x77')][_0x4c3140('0x29')]),_0x3d743c[_0x4c3140('0x1f')]=_[_0x4c3140('0x37')](_0x1ec65e['query']),_0x3d743c[_0x4c3140('0x2b')]=_[_0x4c3140('0x5c')](_0x3d743c[_0x4c3140('0xa3')],_0x3d743c[_0x4c3140('0x1f')]),_0x5e7602[_0x4c3140('0x53')]=_[_0x4c3140('0x5c')](_0x3d743c[_0x4c3140('0xa3')],qs[_0x4c3140('0x5e')](_0x1ec65e[_0x4c3140('0x1f')]['fields'])),_0x5e7602[_0x4c3140('0x53')]=_0x5e7602[_0x4c3140('0x53')][_0x4c3140('0x1')]?_0x5e7602['attributes']:_0x3d743c[_0x4c3140('0xa3')],_0x1ec65e['query'][_0x4c3140('0x2')]&&(_0x5e7602['include']=[{'all':!![]}]),_0x5e7602=_[_0x4c3140('0x40')]({},_0x5e7602,_0x1ec65e[_0x4c3140('0x7a')]),db[_0x4c3140('0x77')]['findOne'](_0x5e7602)['then'](handleEntityNotFound(_0x3bc957,null))['then'](respondWithResult(_0x3bc957,null))[_0x4c3140('0xa5')](handleError(_0x3bc957,null));},exports[_0x96dc59('0x56')]=function(_0xfe42f1,_0x4a3318){const _0x13d77b=_0x96dc59;return _0xfe42f1[_0x13d77b('0x0')]['id']&&delete _0xfe42f1[_0x13d77b('0x0')]['id'],db['MailAccount']['findOne']({'where':{'id':_0xfe42f1[_0x13d77b('0x32')]['id']},'include':[{'model':db['MailServerIn'],'as':_0x13d77b('0x60')},{'model':db['MailServerOut'],'as':_0x13d77b('0x2c')},{'model':db[_0x13d77b('0x2f')],'as':'mandatoryDispositionPause'}]})['then'](handleEntityNotFound(_0x4a3318,null))[_0x13d77b('0x49')](saveUpdates(_0xfe42f1[_0x13d77b('0x0')],null))[_0x13d77b('0x49')](function(_0xf8e68c){const _0x13f052=_0x13d77b;if(_0xf8e68c&&_0xfe42f1[_0x13f052('0x0')]['Imap'])return db[_0x13f052('0x4a')]['update'](_0xfe42f1[_0x13f052('0x0')][_0x13f052('0x60')],{'where':{'MailAccountId':_0xf8e68c['id']}})[_0x13f052('0x49')](function(){return _0xf8e68c;});return _0xf8e68c;})[_0x13d77b('0x49')](function(_0x1c39e6){const _0xf35426=_0x13d77b;if(_0x1c39e6&&_0xfe42f1['body'][_0xf35426('0x2c')])return db[_0xf35426('0x62')][_0xf35426('0x56')](_0xfe42f1[_0xf35426('0x0')][_0xf35426('0x2c')],{'where':{'MailAccountId':_0x1c39e6['id']}})['then'](function(){return _0x1c39e6;});return _0x1c39e6;})[_0x13d77b('0x49')](respondWithResult(_0x4a3318,null))['catch'](handleError(_0x4a3318,null));},exports[_0x96dc59('0x9f')]=function(_0x463225,_0x249d92){const _0x4f3894=_0x96dc59;return db[_0x4f3894('0x77')][_0x4f3894('0x9f')]()['then'](respondWithResult(_0x249d92,null))[_0x4f3894('0xa5')](handleError(_0x249d92,null));},exports[_0x96dc59('0x3a')]=function(_0x216468,_0xaed30c){const _0x22b609=_0x96dc59;return _0x216468[_0x22b609('0x0')]['id']&&delete _0x216468[_0x22b609('0x0')]['id'],db['MailAccount'][_0x22b609('0x8c')]({'where':{'id':_0x216468['params']['id']}})[_0x22b609('0x49')](handleEntityNotFound(_0xaed30c,null))[_0x22b609('0x49')](function(_0x293822){const _0x48be58=_0x22b609;if(_0x293822)return _0x216468['body'][_0x48be58('0x9d')]=_0x293822['id'],db[_0x48be58('0x69')]['create'](_0x216468[_0x48be58('0x0')]);})[_0x22b609('0x49')](respondWithResult(_0xaed30c,null))[_0x22b609('0xa5')](handleError(_0xaed30c,null));},exports[_0x96dc59('0xab')]=function(_0x3f4903,_0x20c81b){const _0x2a02c3=_0x96dc59;let _0x1d1825={'raw':![],'where':{}};const _0x5dae29={},_0x17dee5={'count':0x0,'rows':[]};return db[_0x2a02c3('0x77')][_0x2a02c3('0x8c')]({'where':{'id':_0x3f4903[_0x2a02c3('0x32')]['id']}})[_0x2a02c3('0x49')](handleEntityNotFound(_0x20c81b,null))[_0x2a02c3('0x49')](function(_0x106d43){const _0x4f72a5=_0x2a02c3;if(_0x106d43)return _0x5dae29['model']=_['keys'](db[_0x4f72a5('0x69')][_0x4f72a5('0x29')]),_0x5dae29[_0x4f72a5('0x1f')]=_[_0x4f72a5('0x37')](_0x3f4903[_0x4f72a5('0x1f')]),_0x5dae29[_0x4f72a5('0x2b')]=_['intersection'](_0x5dae29['model'],_0x5dae29[_0x4f72a5('0x1f')]),_0x1d1825['attributes']=_[_0x4f72a5('0x5c')](_0x5dae29['model'],qs[_0x4f72a5('0x5e')](_0x3f4903[_0x4f72a5('0x1f')][_0x4f72a5('0x5e')])),_0x1d1825[_0x4f72a5('0x53')]=_0x1d1825[_0x4f72a5('0x53')][_0x4f72a5('0x1')]?_0x1d1825[_0x4f72a5('0x53')]:_0x5dae29[_0x4f72a5('0xa3')],typeof _0x3f4903['query'][_0x4f72a5('0x90')]===_0x4f72a5('0x21')&&(_0x1d1825[_0x4f72a5('0x27')]=qs[_0x4f72a5('0x27')](_0x3f4903[_0x4f72a5('0x1f')][_0x4f72a5('0x27')]),_0x1d1825[_0x4f72a5('0x38')]=qs[_0x4f72a5('0x38')](_0x3f4903[_0x4f72a5('0x1f')]['offset'])),_0x1d1825['order']=qs[_0x4f72a5('0x76')](_0x3f4903['query'][_0x4f72a5('0x76')]),_0x1d1825[_0x4f72a5('0x12')]=qs[_0x4f72a5('0x2b')](_['pick'](_0x3f4903['query'],_0x5dae29[_0x4f72a5('0x2b')])),_0x1d1825['where'][_0x4f72a5('0x9d')]=_0x106d43['id'],_0x3f4903[_0x4f72a5('0x1f')][_0x4f72a5('0x48')]&&(_0x1d1825[_0x4f72a5('0x12')]=_['merge'](_0x1d1825[_0x4f72a5('0x12')],{[Op['or']]:_[_0x4f72a5('0x61')](_0x1d1825[_0x4f72a5('0x53')],function(_0x850f14){const _0x4fb9a0=_0x4f72a5,_0x572977={};return _0x572977[_0x850f14]={[Op[_0x4fb9a0('0x1a')]]:'%'+_0x3f4903['query'][_0x4fb9a0('0x48')]+'%'},_0x572977;})})),_0x1d1825=_['merge']({},_0x1d1825,_0x3f4903[_0x4f72a5('0x7a')]),db[_0x4f72a5('0x69')][_0x4f72a5('0x7d')]({'where':_0x1d1825[_0x4f72a5('0x12')]})[_0x4f72a5('0x49')](function(_0x88cbe1){const _0x50ccab=_0x4f72a5;return _0x17dee5[_0x50ccab('0x7d')]=_0x88cbe1,_0x3f4903[_0x50ccab('0x1f')][_0x50ccab('0x2')]&&(_0x1d1825[_0x50ccab('0x86')]=[{'all':!![]}]),db[_0x50ccab('0x69')][_0x50ccab('0xa0')](_0x1d1825);})[_0x4f72a5('0x49')](function(_0x2d6cb5){const _0x5ce21b=_0x4f72a5;return _0x17dee5[_0x5ce21b('0x23')]=_0x2d6cb5,_0x17dee5;});})[_0x2a02c3('0x49')](respondWithFilteredResult(_0x20c81b,_0x1d1825))[_0x2a02c3('0xa5')](handleError(_0x20c81b,null));},exports[_0x96dc59('0x3f')]=function(_0x25c88d,_0x5b65c2){const _0x558ce5=_0x96dc59;return db[_0x558ce5('0x77')]['findOne']({'where':{'id':_0x25c88d['params']['id']}})['then'](handleEntityNotFound(_0x5b65c2,null))['then'](function(_0x55115b){const _0x47bbd5=_0x558ce5;if(_0x55115b)return _0x55115b['removeDispositions'](_0x25c88d['query'][_0x47bbd5('0x1c')]);})[_0x558ce5('0x49')](respondWithStatusCode(_0x5b65c2,null))['catch'](handleError(_0x5b65c2,null));},exports[_0x96dc59('0x66')]=function(_0x373d74,_0x1bb05d){const _0x3e9a46=_0x96dc59;return _0x373d74[_0x3e9a46('0x0')]['id']&&delete _0x373d74[_0x3e9a46('0x0')]['id'],db[_0x3e9a46('0x77')]['findOne']({'where':{'id':_0x373d74[_0x3e9a46('0x32')]['id']}})[_0x3e9a46('0x49')](handleEntityNotFound(_0x1bb05d,null))[_0x3e9a46('0x49')](function(_0x3c1230){const _0x21bd81=_0x3e9a46;if(_0x3c1230)return _0x373d74['body'][_0x21bd81('0x9d')]=_0x3c1230['id'],db[_0x21bd81('0x82')][_0x21bd81('0x42')](_0x373d74[_0x21bd81('0x0')]);})[_0x3e9a46('0x49')](respondWithResult(_0x1bb05d,null))[_0x3e9a46('0xa5')](handleError(_0x1bb05d,null));},exports[_0x96dc59('0x1d')]=function(_0xe54a,_0x26d724){const _0x47c680=_0x96dc59;let _0x351ff5={'raw':![],'where':{}};const _0xe29e66={},_0x17d3bb={'count':0x0,'rows':[]};return db['MailAccount'][_0x47c680('0x8c')]({'where':{'id':_0xe54a['params']['id']}})[_0x47c680('0x49')](handleEntityNotFound(_0x26d724,null))[_0x47c680('0x49')](function(_0x11836d){const _0x162559=_0x47c680;if(_0x11836d)return _0xe29e66[_0x162559('0xa3')]=_[_0x162559('0x37')](db[_0x162559('0x82')][_0x162559('0x29')]),_0xe29e66['query']=_[_0x162559('0x37')](_0xe54a[_0x162559('0x1f')]),_0xe29e66[_0x162559('0x2b')]=_[_0x162559('0x5c')](_0xe29e66[_0x162559('0xa3')],_0xe29e66[_0x162559('0x1f')]),_0x351ff5['attributes']=_[_0x162559('0x5c')](_0xe29e66[_0x162559('0xa3')],qs[_0x162559('0x5e')](_0xe54a[_0x162559('0x1f')][_0x162559('0x5e')])),_0x351ff5[_0x162559('0x53')]=_0x351ff5[_0x162559('0x53')]['length']?_0x351ff5[_0x162559('0x53')]:_0xe29e66[_0x162559('0xa3')],typeof _0xe54a[_0x162559('0x1f')][_0x162559('0x90')]==='undefined'&&(_0x351ff5[_0x162559('0x27')]=qs['limit'](_0xe54a[_0x162559('0x1f')][_0x162559('0x27')]),_0x351ff5[_0x162559('0x38')]=qs[_0x162559('0x38')](_0xe54a['query'][_0x162559('0x38')])),_0x351ff5[_0x162559('0x6d')]=qs['sort'](_0xe54a['query'][_0x162559('0x76')]),_0x351ff5[_0x162559('0x12')]=qs['filters'](_[_0x162559('0xc')](_0xe54a[_0x162559('0x1f')],_0xe29e66[_0x162559('0x2b')])),_0x351ff5[_0x162559('0x12')]['MailAccountId']=_0x11836d['id'],_0xe54a[_0x162559('0x1f')][_0x162559('0x48')]&&(_0x351ff5[_0x162559('0x12')]=_[_0x162559('0x40')](_0x351ff5[_0x162559('0x12')],{[Op['or']]:_[_0x162559('0x61')](_0x351ff5['attributes'],function(_0x5eabe5){const _0x20965b=_0x162559,_0x19ec69={};return _0x19ec69[_0x5eabe5]={[Op[_0x20965b('0x1a')]]:'%'+_0xe54a[_0x20965b('0x1f')][_0x20965b('0x48')]+'%'},_0x19ec69;})})),_0x351ff5=_[_0x162559('0x40')]({},_0x351ff5,_0xe54a[_0x162559('0x7a')]),db[_0x162559('0x82')]['count']({'where':_0x351ff5[_0x162559('0x12')]})[_0x162559('0x49')](function(_0x49f298){const _0x16af98=_0x162559;return _0x17d3bb[_0x16af98('0x7d')]=_0x49f298,_0xe54a[_0x16af98('0x1f')][_0x16af98('0x2')]&&(_0x351ff5['include']=[{'all':!![]}]),db['CannedAnswer']['findAll'](_0x351ff5);})[_0x162559('0x49')](function(_0xa35090){const _0x42c5d2=_0x162559;return _0x17d3bb[_0x42c5d2('0x23')]=_0xa35090,_0x17d3bb;});})[_0x47c680('0x49')](respondWithFilteredResult(_0x26d724,_0x351ff5))[_0x47c680('0xa5')](handleError(_0x26d724,null));},exports[_0x96dc59('0x20')]=function(_0x2bbebf,_0x456bd3){const _0x487df0=_0x96dc59;return db[_0x487df0('0x77')][_0x487df0('0x8c')]({'where':{'id':_0x2bbebf[_0x487df0('0x32')]['id']}})[_0x487df0('0x49')](handleEntityNotFound(_0x456bd3,null))['then'](function(_0x36e241){const _0x3c838c=_0x487df0;if(_0x36e241)return _0x36e241[_0x3c838c('0x20')](_0x2bbebf[_0x3c838c('0x1f')]['ids']);})[_0x487df0('0x49')](respondWithStatusCode(_0x456bd3,null))[_0x487df0('0xa5')](handleError(_0x456bd3,null));},exports['create']=function(_0x251ea6,_0x4790e2){const _0x314df8=_0x96dc59,_0x5a9ec4={'name':_0x251ea6['body'][_0x314df8('0xa7')],'key':_0x251ea6[_0x314df8('0x0')]['key'],'email':_0x251ea6['body']['email'],'ListId':_0x251ea6['body'][_0x314df8('0x6')],'active':!_['isNil'](_0x251ea6[_0x314df8('0x0')]['active'])?_0x251ea6['body'][_0x314df8('0x8a')]:!![],'description':_0x251ea6[_0x314df8('0x0')][_0x314df8('0xa2')]||null,'Imap':{},'Smtp':{}};return _['isNil'](_0x251ea6[_0x314df8('0x0')][_0x314df8('0x9e')])?(_0x251ea6[_0x314df8('0x0')][_0x314df8('0x6a')]?(_0x5a9ec4['Imap'][_0x314df8('0x72')]=_0x251ea6[_0x314df8('0x0')][_0x314df8('0x6c')],_0x5a9ec4['Smtp'][_0x314df8('0x72')]=_0x251ea6[_0x314df8('0x0')][_0x314df8('0x6c')],_0x5a9ec4[_0x314df8('0x60')][_0x314df8('0x68')]=_0x251ea6['body']['cpassword'],_0x5a9ec4[_0x314df8('0x2c')][_0x314df8('0x43')]=_0x251ea6['body']['cpassword']):(_0x5a9ec4['Imap'][_0x314df8('0x45')]=![],_0x5a9ec4['Smtp']['authentication']=![]),_0x5a9ec4[_0x314df8('0x60')][_0x314df8('0xf')]=_0x251ea6[_0x314df8('0x0')][_0x314df8('0x60')]['host'],_0x5a9ec4[_0x314df8('0x60')][_0x314df8('0x13')]=_0x251ea6[_0x314df8('0x0')]['Imap'][_0x314df8('0x13')],_0x5a9ec4[_0x314df8('0x2c')]['host']=_0x251ea6[_0x314df8('0x0')][_0x314df8('0x2c')][_0x314df8('0xf')],_0x5a9ec4[_0x314df8('0x2c')]['port']=_0x251ea6[_0x314df8('0x0')][_0x314df8('0x2c')][_0x314df8('0x13')]):(_0x5a9ec4[_0x314df8('0x60')]['service']=_0x251ea6[_0x314df8('0x0')][_0x314df8('0x9e')],_0x5a9ec4[_0x314df8('0x2c')]['service']=_0x251ea6[_0x314df8('0x0')][_0x314df8('0x9e')],_0x5a9ec4[_0x314df8('0x60')][_0x314df8('0x72')]=_0x251ea6[_0x314df8('0x0')][_0x314df8('0x6c')],_0x5a9ec4['Smtp'][_0x314df8('0x72')]=_0x251ea6[_0x314df8('0x0')][_0x314df8('0x6c')],_0x5a9ec4[_0x314df8('0x60')]['password']=_0x251ea6[_0x314df8('0x0')][_0x314df8('0x7c')],_0x5a9ec4['Smtp'][_0x314df8('0x43')]=_0x251ea6[_0x314df8('0x0')][_0x314df8('0x7c')]),db[_0x314df8('0x77')][_0x314df8('0x42')](_0x5a9ec4,{'include':[{'model':db[_0x314df8('0x62')],'as':_0x314df8('0x2c')},{'model':db[_0x314df8('0x4a')],'as':_0x314df8('0x60')}]})[_0x314df8('0x49')](function(_0x1a3fed){const _0x53683d=_0x314df8,_0x16ede6=_0x251ea6[_0x53683d('0x72')][_0x53683d('0x94')]({'plain':!![]});if(!_0x16ede6)throw new Error(_0x53683d('0xd'));if(_0x16ede6[_0x53683d('0x9b')]===_0x53683d('0x72')){const _0x5ed4af=_0x1a3fed['get']({'plain':!![]});return db[_0x53683d('0x80')][_0x53683d('0x8c')]({'where':{'name':_0x53683d('0x1e'),'userProfileId':_0x16ede6[_0x53683d('0x55')]},'raw':!![]})[_0x53683d('0x49')](function(_0x44cefc){const _0xab01a4=_0x53683d;return _0x44cefc&&_0x44cefc['autoAssociation']===0x0?db['UserProfileResource']['create']({'name':_0x5ed4af[_0xab01a4('0xa7')],'resourceId':_0x5ed4af['id'],'type':_0x44cefc['name'],'sectionId':_0x44cefc['id']},{})[_0xab01a4('0x49')](function(){return _0x1a3fed;}):_0x1a3fed;})[_0x53683d('0xa5')](function(_0x1e4aee){const _0x9dc8bd=_0x53683d;logger['error'](_0x9dc8bd('0x16'),_0x1e4aee);throw _0x1e4aee;});}return _0x1a3fed;})[_0x314df8('0x49')](respondWithResult(_0x4790e2,0xc9))[_0x314df8('0xa5')](handleError(_0x4790e2,null));},exports[_0x96dc59('0x31')]=function(_0x13f926,_0x5d415e){const _0x2cc2e7=_0x96dc59;return db[_0x2cc2e7('0x77')]['findOne']({'where':{'id':_0x13f926['params']['id']}})[_0x2cc2e7('0x49')](handleEntityNotFound(_0x5d415e,null))[_0x2cc2e7('0x49')](function(_0x4310f3){const _0x25937f=_0x2cc2e7;if(_0x4310f3)return _0x4310f3[_0x25937f('0x31')]();return null;})[_0x2cc2e7('0x49')](respondWithResult(_0x5d415e,null))['catch'](handleError(_0x5d415e,null));},exports[_0x96dc59('0x65')]=function(_0x4da977,_0x4d22e5){const _0x1f1b6a=_0x96dc59;return _0x4da977['body']['id']&&delete _0x4da977[_0x1f1b6a('0x0')]['id'],db[_0x1f1b6a('0x77')][_0x1f1b6a('0x8c')]({'where':{'id':_0x4da977[_0x1f1b6a('0x32')]['id']}})[_0x1f1b6a('0x49')](handleEntityNotFound(_0x4d22e5,null))[_0x1f1b6a('0x49')](function(_0x3f4907){const _0x5282b7=_0x1f1b6a;if(_0x3f4907)return _0x4da977[_0x5282b7('0x0')][_0x5282b7('0x9d')]=_0x3f4907['id'],db[_0x5282b7('0x4a')][_0x5282b7('0x42')](_0x4da977[_0x5282b7('0x0')]);})[_0x1f1b6a('0x49')](respondWithResult(_0x4d22e5,null))[_0x1f1b6a('0xa5')](handleError(_0x4d22e5,null));},exports['removeImap']=function(_0x31fe40,_0xeec643){const _0x4a3b1b=_0x96dc59;return db[_0x4a3b1b('0x77')][_0x4a3b1b('0x8c')]({'where':{'id':_0x31fe40[_0x4a3b1b('0x32')]['id']}})[_0x4a3b1b('0x49')](handleEntityNotFound(_0xeec643,null))[_0x4a3b1b('0x49')](function(_0x1933fc){const _0xff6a2e=_0x4a3b1b;if(_0x1933fc)return _0x1933fc[_0xff6a2e('0x2e')](null);return null;})['then'](respondWithStatusCode(_0xeec643,null))[_0x4a3b1b('0xa5')](handleError(_0xeec643,null));},exports[_0x96dc59('0x46')]=function(_0x24228f,_0x536227){const _0x509ef=_0x96dc59;return db[_0x509ef('0x77')][_0x509ef('0x8c')]({'where':{'id':_0x24228f[_0x509ef('0x32')]['id']}})['then'](handleEntityNotFound(_0x536227,null))['then'](function(_0x2a13e9){if(_0x2a13e9)return _0x2a13e9['getSmtp']();return null;})[_0x509ef('0x49')](respondWithResult(_0x536227,null))['catch'](handleError(_0x536227,null));},exports['addSmtp']=function(_0x161db9,_0x14119b){const _0x112891=_0x96dc59;return _0x161db9[_0x112891('0x0')]['id']&&delete _0x161db9[_0x112891('0x0')]['id'],db[_0x112891('0x77')][_0x112891('0x8c')]({'where':{'id':_0x161db9[_0x112891('0x32')]['id']}})['then'](handleEntityNotFound(_0x14119b,null))[_0x112891('0x49')](function(_0x311ade){const _0x40b748=_0x112891;if(_0x311ade)return _0x161db9['body'][_0x40b748('0x9d')]=_0x311ade['id'],db[_0x40b748('0x62')][_0x40b748('0x42')](_0x161db9[_0x40b748('0x0')]);})['then'](respondWithResult(_0x14119b,null))[_0x112891('0xa5')](handleError(_0x14119b,null));},exports[_0x96dc59('0x4e')]=function(_0x359175,_0x15c4c7){const _0x422854=_0x96dc59;return db[_0x422854('0x77')]['findOne']({'where':{'id':_0x359175[_0x422854('0x32')]['id']}})[_0x422854('0x49')](handleEntityNotFound(_0x15c4c7,null))[_0x422854('0x49')](function(_0x1ab893){const _0x155f41=_0x422854;if(_0x1ab893)return _0x1ab893[_0x155f41('0x41')](null);return null;})['then'](respondWithStatusCode(_0x15c4c7,null))[_0x422854('0xa5')](handleError(_0x15c4c7,null));},exports['addInteraction']=function(_0x2856df,_0x4ad529){const _0x2c7202=_0x96dc59;return db[_0x2c7202('0x24')]['findOne']({'where':{'id':_0x2856df['params']['id']}})['then'](function(_0x548673){const _0x41e6bd=_0x2c7202;if(_0x548673)return _0x548673[_0x41e6bd('0x28')](_0x2856df[_0x41e6bd('0x0')][_0x41e6bd('0x1c')],{'through':_[_0x41e6bd('0x73')](_0x2856df[_0x41e6bd('0x0')],['ids','id'])});})['then'](respondWithResult(_0x4ad529,null))[_0x2c7202('0xa5')](handleError(_0x4ad529,null));},exports[_0x96dc59('0x6b')]=function(_0x4e8fb0,_0x17583c){const _0x5531a8=_0x96dc59;let _0x415519={'raw':![],'where':{}};const _0x4acc10={},_0x51379f={'count':0x0,'rows':[]};return db[_0x5531a8('0x77')]['findOne']({'where':{'id':_0x4e8fb0[_0x5531a8('0x32')]['id']}})['then'](handleEntityNotFound(_0x17583c,null))[_0x5531a8('0x49')](function(_0x4e795f){const _0x740e30=_0x5531a8;if(_0x4e795f)return _0x4acc10[_0x740e30('0xa3')]=_['keys'](db[_0x740e30('0x24')]['rawAttributes']),_0x4acc10[_0x740e30('0x1f')]=_[_0x740e30('0x37')](_0x4e8fb0['query']),_0x4acc10[_0x740e30('0x2b')]=_[_0x740e30('0x5c')](_0x4acc10[_0x740e30('0xa3')],_0x4acc10[_0x740e30('0x1f')]),_0x415519[_0x740e30('0x53')]=_[_0x740e30('0x5c')](_0x4acc10['model'],qs[_0x740e30('0x5e')](_0x4e8fb0['query'][_0x740e30('0x5e')])),_0x415519[_0x740e30('0x53')]=_0x415519['attributes'][_0x740e30('0x1')]?_0x415519['attributes']:_0x4acc10['model'],typeof _0x4e8fb0[_0x740e30('0x1f')][_0x740e30('0x90')]===_0x740e30('0x21')&&(_0x415519[_0x740e30('0x27')]=qs[_0x740e30('0x27')](_0x4e8fb0[_0x740e30('0x1f')][_0x740e30('0x27')]),_0x415519[_0x740e30('0x38')]=qs[_0x740e30('0x38')](_0x4e8fb0[_0x740e30('0x1f')][_0x740e30('0x38')])),_0x415519['order']=qs[_0x740e30('0x76')](_0x4e8fb0[_0x740e30('0x1f')][_0x740e30('0x76')]),_0x415519[_0x740e30('0x12')]=qs[_0x740e30('0x2b')](_[_0x740e30('0xc')](_0x4e8fb0['query'],_0x4acc10['filters'])),_0x415519[_0x740e30('0x12')][_0x740e30('0x9d')]=_0x4e795f['id'],_0x4e8fb0['query'][_0x740e30('0x48')]&&(_0x415519[_0x740e30('0x12')]=_[_0x740e30('0x40')](_0x415519[_0x740e30('0x12')],{[Op['or']]:_['map'](_0x415519[_0x740e30('0x53')],function(_0x4fd4ad){const _0x2cb920=_0x740e30,_0x58044e={};return _0x58044e[_0x4fd4ad]={[Op[_0x2cb920('0x1a')]]:'%'+_0x4e8fb0[_0x2cb920('0x1f')]['filter']+'%'},_0x58044e;})})),_0x415519=_[_0x740e30('0x40')]({},_0x415519,_0x4e8fb0['options']),db[_0x740e30('0x24')][_0x740e30('0x7d')]({'where':_0x415519['where']})[_0x740e30('0x49')](function(_0xe2995f){const _0x23e2ed=_0x740e30;return _0x51379f[_0x23e2ed('0x7d')]=_0xe2995f,_0x4e8fb0['query'][_0x23e2ed('0x2')]&&(_0x415519['include']=[{'model':db['CmContact'],'as':_0x23e2ed('0x25'),'required':![]},{'model':db[_0x23e2ed('0x8b')],'as':_0x23e2ed('0x67'),'attributes':[_0x23e2ed('0xa7'),_0x23e2ed('0x3b'),_0x23e2ed('0x6e')],'required':![]},{'model':db[_0x23e2ed('0xa9')],'as':_0x23e2ed('0x4d'),'attributes':['id',_0x23e2ed('0xa7'),'color'],'where':_0x4e8fb0[_0x23e2ed('0x1f')]['tag']?{'id':_0x4e8fb0[_0x23e2ed('0x1f')]['tag']}:undefined,'required':_0x4e8fb0[_0x23e2ed('0x1f')][_0x23e2ed('0xa4')]?!![]:![]}]),db[_0x23e2ed('0x24')][_0x23e2ed('0xa0')](_0x415519);})[_0x740e30('0x49')](function(_0x3dfd01){const _0x577ab8=_0x740e30;return _0x51379f[_0x577ab8('0x23')]=_0x3dfd01,_0x51379f;});})['then'](respondWithFilteredResult(_0x17583c,_0x415519))[_0x5531a8('0xa5')](handleError(_0x17583c,null));},exports[_0x96dc59('0x52')]=function(_0x409ff9,_0x2d89ee){const _0xa27ae2=_0x96dc59;return db[_0xa27ae2('0x77')][_0xa27ae2('0x8c')]({'where':{'id':_0x409ff9['params']['id']}})[_0xa27ae2('0x49')](handleEntityNotFound(_0x2d89ee,null))['then'](function(_0x423549){const _0x52e930=_0xa27ae2;if(_0x423549)return db[_0x52e930('0x87')]['transaction'](function(_0x471496){const _0x51c012=_0x52e930;return db[_0x51c012('0x3e')][_0x51c012('0x74')]({'where':{'MailAccountId':_0x409ff9[_0x51c012('0x32')]['id']},'transaction':_0x471496})[_0x51c012('0x49')](function(){const _0x3da461=_0x51c012,_0x1386a8=_[_0x3da461('0x61')](_0x409ff9[_0x3da461('0x0')],function(_0x4eeb33){const _0x3d1d27=_0x3da461;return _0x4eeb33[_0x3d1d27('0x9d')]=_0x409ff9[_0x3d1d27('0x32')]['id'],_0x4eeb33;});return db['MailApplication'][_0x3da461('0x5f')](_0x1386a8,{'transaction':_0x471496});});})[_0x52e930('0x49')](function(){const _0x287e3e=_0x52e930;return db[_0x287e3e('0x3e')]['findAndCountAll']({'where':{'MailAccountId':_0x409ff9['params']['id']},'order':'priority'});});})[_0xa27ae2('0x49')](respondWithResult(_0x2d89ee,null))['catch'](handleError(_0x2d89ee,null));},exports[_0x96dc59('0x4')]=function(_0x1f0bda,_0x547440){const _0x5ef61d=_0x96dc59;let _0x3c3305={};const _0x2f24d8={};let _0x44219f,_0x44bacf;return db['MailAccount']['findOne']({'where':{'id':_0x1f0bda['params']['id']}})[_0x5ef61d('0x49')](handleEntityNotFound(_0x547440,null))[_0x5ef61d('0x49')](function(_0x6eabe8){const _0xcbcecd=_0x5ef61d;if(_0x6eabe8)return _0x44219f=_0x6eabe8,_0x2f24d8[_0xcbcecd('0xa3')]=_[_0xcbcecd('0x37')](db[_0xcbcecd('0x3e')][_0xcbcecd('0x29')]),_0x2f24d8[_0xcbcecd('0x1f')]=_['keys'](_0x1f0bda[_0xcbcecd('0x1f')]),_0x2f24d8['filters']=_[_0xcbcecd('0x5c')](_0x2f24d8[_0xcbcecd('0xa3')],_0x2f24d8['query']),_0x3c3305[_0xcbcecd('0x53')]=_[_0xcbcecd('0x5c')](_0x2f24d8[_0xcbcecd('0xa3')],qs[_0xcbcecd('0x5e')](_0x1f0bda[_0xcbcecd('0x1f')][_0xcbcecd('0x5e')])),_0x3c3305[_0xcbcecd('0x53')]=_0x3c3305[_0xcbcecd('0x53')][_0xcbcecd('0x1')]?_0x3c3305[_0xcbcecd('0x53')]:_0x2f24d8[_0xcbcecd('0xa3')],_0x3c3305[_0xcbcecd('0x6d')]=qs['sort'](_0x1f0bda[_0xcbcecd('0x1f')]['sort']),_0x3c3305['where']=qs[_0xcbcecd('0x2b')](_[_0xcbcecd('0xc')](_0x1f0bda[_0xcbcecd('0x1f')],_0x2f24d8[_0xcbcecd('0x2b')])),_0x1f0bda[_0xcbcecd('0x1f')][_0xcbcecd('0x48')]&&(_0x3c3305['where']=_[_0xcbcecd('0x40')](_0x3c3305[_0xcbcecd('0x12')],{[Op['or']]:_[_0xcbcecd('0x61')](_0x3c3305[_0xcbcecd('0x53')],function(_0x4fe9a3){const _0x3f216f=_0xcbcecd,_0x39a005={};return _0x39a005[_0x4fe9a3]={[Op[_0x3f216f('0x1a')]]:'%'+_0x1f0bda[_0x3f216f('0x1f')]['filter']+'%'},_0x39a005;})})),_0x3c3305=_[_0xcbcecd('0x40')]({},_0x3c3305,_0x1f0bda[_0xcbcecd('0x7a')]),_0x44219f[_0xcbcecd('0x4')](_0x3c3305);})[_0x5ef61d('0x49')](function(_0x145d0c){const _0x48c20e=_0x5ef61d;if(_0x145d0c)return _0x44bacf=_0x145d0c[_0x48c20e('0x1')],typeof _0x1f0bda['query'][_0x48c20e('0x90')]===_0x48c20e('0x21')&&(_0x3c3305['limit']=qs['limit'](_0x1f0bda['query'][_0x48c20e('0x27')]),_0x3c3305['offset']=qs[_0x48c20e('0x38')](_0x1f0bda[_0x48c20e('0x1f')][_0x48c20e('0x38')])),_0x44219f[_0x48c20e('0x4')](_0x3c3305);})[_0x5ef61d('0x49')](function(_0x481008){if(_0x481008)return _0x481008?{'count':_0x44bacf,'rows':_0x481008}:null;})[_0x5ef61d('0x49')](respondWithResult(_0x547440,null))['catch'](handleError(_0x547440,null));},exports[_0x96dc59('0x8')]=function(_0x5266ec,_0x417159){const _0xd32e5b=_0x96dc59;let _0x50cad8={'raw':!![],'where':{}};const _0xdb2093={},_0x345686={'count':0x0,'rows':[]};return db[_0xd32e5b('0x77')][_0xd32e5b('0x8c')]({'where':{'id':_0x5266ec[_0xd32e5b('0x32')]['id']}})['then'](handleEntityNotFound(_0x417159,null))['then'](function(_0x8798fa){const _0x2bca19=_0xd32e5b;if(_0x8798fa){_0xdb2093['model']=_[_0x2bca19('0x37')](db[_0x2bca19('0x9a')]['rawAttributes']),_0xdb2093[_0x2bca19('0x1f')]=_['keys'](_0x5266ec[_0x2bca19('0x1f')]),_0xdb2093[_0x2bca19('0x2b')]=_[_0x2bca19('0x5c')](_0xdb2093[_0x2bca19('0xa3')],_0xdb2093['query']),_0x50cad8['attributes']=_['intersection'](_0xdb2093[_0x2bca19('0xa3')],qs[_0x2bca19('0x5e')](_0x5266ec['query'][_0x2bca19('0x5e')])),_0x50cad8[_0x2bca19('0x53')]=_0x50cad8[_0x2bca19('0x53')]['length']?_0x50cad8['attributes']:_0xdb2093[_0x2bca19('0xa3')];typeof _0x5266ec[_0x2bca19('0x1f')][_0x2bca19('0x90')]===_0x2bca19('0x21')&&(_0x50cad8[_0x2bca19('0x27')]=qs['limit'](_0x5266ec[_0x2bca19('0x1f')]['limit']),_0x50cad8[_0x2bca19('0x38')]=qs[_0x2bca19('0x38')](_0x5266ec[_0x2bca19('0x1f')]['offset']));_0x50cad8[_0x2bca19('0x6d')]=qs['sort'](_0x5266ec[_0x2bca19('0x1f')][_0x2bca19('0x76')]),_0x50cad8[_0x2bca19('0x12')]=qs[_0x2bca19('0x2b')](_[_0x2bca19('0xc')](_0x5266ec[_0x2bca19('0x1f')],_0xdb2093[_0x2bca19('0x2b')])),_0x50cad8[_0x2bca19('0x12')][_0x2bca19('0x9d')]=_0x8798fa['id'];_0x5266ec[_0x2bca19('0x1f')]['filter']&&(_0x50cad8['where']=_[_0x2bca19('0x40')](_0x50cad8[_0x2bca19('0x12')],{[Op['or']]:_[_0x2bca19('0x61')](_0x50cad8[_0x2bca19('0x53')],function(_0x8db4fa){const _0x5e959a=_0x2bca19,_0x2dd5c8={};return _0x2dd5c8[_0x8db4fa]={[Op[_0x5e959a('0x1a')]]:'%'+_0x5266ec[_0x5e959a('0x1f')]['filter']+'%'},_0x2dd5c8;})}));if(_0x5266ec['query'][_0x2bca19('0xa8')]){const _0x42712a=_0x5266ec['query'][_0x2bca19('0xa8')][_0x2bca19('0xa6')](','),_0x57b529={};_0x57b529[_0x42712a[0x0]]={[Op[_0x2bca19('0x17')]]:moment(_0x42712a[0x1])[_0x2bca19('0x1b')](_0x2bca19('0x9'))},_0x50cad8['where']=_['merge'](_0x50cad8[_0x2bca19('0x12')],_0x57b529);}return _0x50cad8=_[_0x2bca19('0x40')]({},_0x50cad8,_0x5266ec[_0x2bca19('0x7a')]),db['MailMessage'][_0x2bca19('0x7d')]({'where':_0x50cad8[_0x2bca19('0x12')]})[_0x2bca19('0x49')](function(_0x55278a){const _0x915165=_0x2bca19;return _0x345686[_0x915165('0x7d')]=_0x55278a,_0x5266ec[_0x915165('0x1f')][_0x915165('0x2')]&&(_0x50cad8[_0x915165('0x86')]=[{'all':!![]}]),db[_0x915165('0x9a')]['findAll'](_0x50cad8);})[_0x2bca19('0x49')](function(_0x5c6fa2){return _0x345686['rows']=_0x5c6fa2,_0x345686;});}})[_0xd32e5b('0x49')](respondWithFilteredResult(_0x417159,_0x50cad8))[_0xd32e5b('0xa5')](handleError(_0x417159,null));},exports[_0x96dc59('0x30')]=function(_0x4e8c0d,_0x9a09b6){const _0x3f4962=_0x96dc59;let _0x33fa32,_0x43887d={},_0x5e5a6f;return _0x4e8c0d['body']['to']&&(_0x5e5a6f=_0x4e8c0d[_0x3f4962('0x0')]['to'][_0x3f4962('0xa6')](',')[0x0]),db[_0x3f4962('0x77')][_0x3f4962('0x8c')]({'where':{'id':_0x4e8c0d[_0x3f4962('0x32')]['id']},'include':[{'model':db['CmList'],'as':'List','include':[{'model':db[_0x3f4962('0x88')],'as':'Contacts','where':{'email':_0x5e5a6f},'limit':0x1,'order':[[_0x3f4962('0x6f'),_0x3f4962('0x63')]]}]},{'model':db[_0x3f4962('0x62')],'as':_0x3f4962('0x2c'),'raw':!![]}]})[_0x3f4962('0x49')](handleEntityNotFound(_0x9a09b6,null))[_0x3f4962('0x49')](function(_0x3a85ab){const _0x3b55d1=_0x3f4962;if(_0x3a85ab){_0x33fa32=_0x3a85ab;if(_0x3a85ab[_0x3b55d1('0x2c')]){_[_0x3b55d1('0x51')](_0x4e8c0d[_0x3b55d1('0x0')][_0x3b55d1('0x98')])&&(_0x4e8c0d[_0x3b55d1('0x0')][_0x3b55d1('0x98')]=util[_0x3b55d1('0x1b')](_0x3b55d1('0x71'),_0x3a85ab[_0x3b55d1('0xa7')],_0x3a85ab['email']||_0x3a85ab['Smtp'][_0x3b55d1('0x72')]));if(_0x4e8c0d[_0x3b55d1('0x0')][_0x3b55d1('0x35')]&&_0x4e8c0d[_0x3b55d1('0x0')][_0x3b55d1('0x35')][_0x3b55d1('0x1')])for(let _0x1429d2=0x0;_0x1429d2<_0x4e8c0d['body'][_0x3b55d1('0x35')][_0x3b55d1('0x1')];_0x1429d2+=0x1){_0x4e8c0d[_0x3b55d1('0x0')][_0x3b55d1('0x35')][_0x1429d2]={'filename':_0x4e8c0d['body'][_0x3b55d1('0x35')][_0x1429d2]['name'],'path':path[_0x3b55d1('0xa')](config[_0x3b55d1('0x4b')],_0x3b55d1('0x58'),_0x4e8c0d[_0x3b55d1('0x0')]['attachments'][_0x1429d2][_0x3b55d1('0x57')])};}const _0x7016fc={'tls':{'rejectUnauthorized':![]}};return _[_0x3b55d1('0x51')](_0x3a85ab['Smtp']['service'])?(_0x3a85ab[_0x3b55d1('0x2c')][_0x3b55d1('0x45')]&&(_0x7016fc[_0x3b55d1('0x9c')]={'user':_0x3a85ab[_0x3b55d1('0x2c')]['user'],'pass':_0x3a85ab[_0x3b55d1('0x2c')][_0x3b55d1('0x43')]}),_0x7016fc[_0x3b55d1('0xf')]=_0x3a85ab['Smtp'][_0x3b55d1('0xf')],_0x7016fc['port']=_0x3a85ab[_0x3b55d1('0x2c')][_0x3b55d1('0x13')],_0x7016fc[_0x3b55d1('0x33')]=_0x3a85ab[_0x3b55d1('0x2c')][_0x3b55d1('0x33')]):(_0x7016fc[_0x3b55d1('0x50')]=_0x3a85ab[_0x3b55d1('0x2c')][_0x3b55d1('0x50')],_0x7016fc[_0x3b55d1('0x9c')]={'user':_0x3a85ab['Smtp'][_0x3b55d1('0x72')],'pass':_0x3a85ab['Smtp'][_0x3b55d1('0x43')]}),respondWithRpcPromise(_0x3b55d1('0x5'),'sendMail',{'account':_0x7016fc,'message':_0x4e8c0d[_0x3b55d1('0x0')]});}else throw new Error(_0x3b55d1('0x96'));}})[_0x3f4962('0x49')](function(_0x5276dd){const _0x3d8d3c=_0x3f4962;if(_0x5276dd){_0x43887d=_0x5276dd;if(_0x33fa32[_0x3d8d3c('0x7b')])return _0x33fa32[_0x3d8d3c('0x7b')][_0x3d8d3c('0x8f')][_0x3d8d3c('0x1')]?_0x33fa32[_0x3d8d3c('0x7b')][_0x3d8d3c('0x8f')][0x0]:db['CmContact'][_0x3d8d3c('0x42')](_[_0x3d8d3c('0x15')](_0x4e8c0d[_0x3d8d3c('0x0')],{'firstName':_0x4e8c0d['body']['to'],'email':_0x4e8c0d[_0x3d8d3c('0x0')]['to'],'phone':_0x4e8c0d['body']['to'],'ListId':_0x33fa32[_0x3d8d3c('0x6')]}));else throw new Error('List\x20not\x20found');}})[_0x3f4962('0x49')](function(_0x341ab5){const _0x5b7ec5=_0x3f4962;if(_0x341ab5){let _0x5a3252={'UserId':_0x4e8c0d['user']['id'],'ContactId':_0x341ab5['id'],'MailAccountId':_0x33fa32['id'],'inReplyTo':_0x43887d['messageId'],'to':_0x4e8c0d[_0x5b7ec5('0x0')][_0x5b7ec5('0x98')],'cc':_0x4e8c0d['body']['cc'],'subject':_0x4e8c0d[_0x5b7ec5('0x0')][_0x5b7ec5('0x7f')],'attach':_0x4e8c0d[_0x5b7ec5('0x0')][_0x5b7ec5('0x79')],'firstMsgDirection':_0x5b7ec5('0x8d'),'lastMsgAt':moment()[_0x5b7ec5('0x1b')](_0x5b7ec5('0x9')),'lastMsgDirection':'out','lastMsgBody':_0x4e8c0d[_0x5b7ec5('0x0')][_0x5b7ec5('0x0')],'Messages':[_[_0x5b7ec5('0x40')](_0x4e8c0d[_0x5b7ec5('0x0')],{'messageId':_0x43887d[_0x5b7ec5('0x4f')],'sentAt':moment()['format'](_0x5b7ec5('0x9')),'read':!![],'MailAccountId':_0x33fa32['id'],'UserId':_0x4e8c0d['user']['id'],'ContactId':_0x341ab5['id']})]};return _0x4e8c0d[_0x5b7ec5('0x0')][_0x5b7ec5('0x81')]&&(_0x5a3252=_[_0x5b7ec5('0x40')](_0x5a3252,_0x4e8c0d[_0x5b7ec5('0x0')][_0x5b7ec5('0x81')])),db[_0x5b7ec5('0x24')][_0x5b7ec5('0x42')](_0x5a3252,{'include':[{'model':db[_0x5b7ec5('0x9a')],'as':_0x5b7ec5('0x3d')}]});}})[_0x3f4962('0x49')](respondWithResult(_0x9a09b6,null))[_0x3f4962('0xa5')](handleError(_0x9a09b6,null));},exports['verifySmtp']=function(_0x29e1e2,_0x2ede7e){const _0x4511e8=_0x96dc59;return db[_0x4511e8('0x77')][_0x4511e8('0x8c')]({'where':{'id':_0x29e1e2[_0x4511e8('0x32')]['id']},'include':[{'model':db[_0x4511e8('0x62')],'as':'Smtp','raw':!![]}]})[_0x4511e8('0x49')](handleEntityNotFound(_0x2ede7e,null))[_0x4511e8('0x49')](function(_0x336c8a){const _0x157a39=_0x4511e8;if(_0x336c8a&&_0x336c8a[_0x157a39('0x2c')]){const _0x261475={'id':_0x336c8a['id'],'tls':{'rejectUnauthorized':![]}};return _0x336c8a[_0x157a39('0x2c')][_0x157a39('0x50')]?_0x261475[_0x157a39('0x50')]=_0x336c8a[_0x157a39('0x2c')][_0x157a39('0x50')]:(_0x261475[_0x157a39('0xf')]=_0x336c8a[_0x157a39('0x2c')]['host'],_0x261475[_0x157a39('0x13')]=_0x336c8a[_0x157a39('0x2c')]['port'],_0x261475[_0x157a39('0x33')]=_0x336c8a[_0x157a39('0x2c')][_0x157a39('0x33')]),_0x336c8a[_0x157a39('0x2c')][_0x157a39('0x45')]&&(_0x261475[_0x157a39('0x9c')]={'user':_0x336c8a[_0x157a39('0x2c')]['user'],'pass':_0x336c8a['Smtp']['pass']}),respondWithRpcPromise(_0x157a39('0x85'),_0x157a39('0x5a'),{'account':_0x261475});}})[_0x4511e8('0x49')](respondWithResult(_0x2ede7e,null))[_0x4511e8('0xa5')](handleError(_0x2ede7e,null));},exports[_0x96dc59('0x74')]=function(_0x424824,_0x3d9c04){const _0x1dfbe1=_0x96dc59;return db[_0x1dfbe1('0x77')][_0x1dfbe1('0x8c')]({'where':{'id':_0x424824['params']['id']}})['then'](handleEntityNotFound(_0x3d9c04,null))[_0x1dfbe1('0x49')](function(_0x5b86c2){const _0x5d86a5=_0x1dfbe1;if(_0x5b86c2&&_0x5b86c2[_0x5d86a5('0x50')])throw new db[(_0x5d86a5('0x75'))]['ValidationError'](_0x5d86a5('0x99'));return _0x5b86c2;})[_0x1dfbe1('0x49')](removeEntity(_0x3d9c04,null))['catch'](handleError(_0x3d9c04,null));},exports[_0x96dc59('0x26')]=function(_0x1c51ee,_0x446e0c){const _0x19a278=_0x96dc59;return db[_0x19a278('0x77')][_0x19a278('0x8c')]({'where':{'id':_0x1c51ee['params']['id']}})[_0x19a278('0x49')](function(_0x377597){const _0xfa20f=_0x19a278;if(_0x377597)return _0x377597['addAgents'](_0x1c51ee[_0xfa20f('0x0')]['ids'],{'through':_['omit'](_0x1c51ee['body'],[_0xfa20f('0x1c'),'id'])})[_0xfa20f('0x49')](function(_0x4f9e9c){const _0x32c864=_0xfa20f;for(let _0x5148d2=0x0;_0x5148d2<_0x1c51ee[_0x32c864('0x0')][_0x32c864('0x1c')]['length'];_0x5148d2+=0x1){socket[_0x32c864('0x47')](_0x32c864('0x5d'),{'UserId':_0x1c51ee[_0x32c864('0x0')][_0x32c864('0x1c')][_0x5148d2],'MailAccountId':_0x1c51ee[_0x32c864('0x32')]['id']});}return _0x4f9e9c;});})['then'](respondWithResult(_0x446e0c,null))[_0x19a278('0xa5')](handleError(_0x446e0c,null));},exports['removeAgents']=function(_0x797d40,_0x461ec4){const _0x342c52=_0x96dc59;return db[_0x342c52('0x77')][_0x342c52('0x8c')]({'where':{'id':_0x797d40['params']['id']}})[_0x342c52('0x49')](handleEntityNotFound(_0x461ec4,null))[_0x342c52('0x49')](function(_0x4ddfb9){const _0x185713=_0x342c52;if(_0x4ddfb9)return _0x4ddfb9[_0x185713('0x2d')](_0x797d40[_0x185713('0x1f')][_0x185713('0x1c')])[_0x185713('0x49')](function(){const _0x2d4191=_0x185713;if(_[_0x2d4191('0x92')](_0x797d40[_0x2d4191('0x1f')][_0x2d4191('0x1c')]))for(let _0x1202db=0x0;_0x1202db<_0x797d40['query']['ids'][_0x2d4191('0x1')];_0x1202db+=0x1){socket[_0x2d4191('0x47')](_0x2d4191('0x97'),{'UserId':Number(_0x797d40[_0x2d4191('0x1f')]['ids'][_0x1202db]),'MailAccountId':Number(_0x797d40[_0x2d4191('0x32')]['id'])});}else socket[_0x2d4191('0x47')](_0x2d4191('0x97'),{'UserId':Number(_0x797d40[_0x2d4191('0x1f')]['ids']),'MailAccountId':Number(_0x797d40['params']['id'])});});})[_0x342c52('0x49')](respondWithStatusCode(_0x461ec4,null))['catch'](handleError(_0x461ec4,null));},exports[_0x96dc59('0x18')]=function(_0x28bdf7,_0x4b6231){const _0x4ec638=_0x96dc59;let _0x21b553={};const _0x429cee={};let _0x3205f9,_0x1e7c21;return db[_0x4ec638('0x77')][_0x4ec638('0x8c')]({'where':{'id':_0x28bdf7[_0x4ec638('0x32')]['id']}})[_0x4ec638('0x49')](handleEntityNotFound(_0x4b6231,null))[_0x4ec638('0x49')](function(_0x3a6c7a){const _0x387cec=_0x4ec638;if(_0x3a6c7a)return _0x3205f9=_0x3a6c7a,_0x429cee[_0x387cec('0xa3')]=_[_0x387cec('0x37')](db['User'][_0x387cec('0x29')]),_0x429cee[_0x387cec('0x1f')]=_['keys'](_0x28bdf7[_0x387cec('0x1f')]),_0x429cee[_0x387cec('0x2b')]=_[_0x387cec('0x5c')](_0x429cee[_0x387cec('0xa3')],_0x429cee['query']),_0x21b553[_0x387cec('0x53')]=_[_0x387cec('0x5c')](_0x429cee[_0x387cec('0xa3')],qs[_0x387cec('0x5e')](_0x28bdf7['query'][_0x387cec('0x5e')])),_0x21b553[_0x387cec('0x53')]=_0x21b553['attributes']['length']?_0x21b553[_0x387cec('0x53')]:_0x429cee['model'],_0x21b553[_0x387cec('0x6d')]=qs[_0x387cec('0x76')](_0x28bdf7['query'][_0x387cec('0x76')]),_0x21b553[_0x387cec('0x12')]=qs['filters'](_[_0x387cec('0xc')](_0x28bdf7['query'],_0x429cee[_0x387cec('0x2b')])),_0x28bdf7['query'][_0x387cec('0x48')]&&(_0x21b553[_0x387cec('0x12')]=_[_0x387cec('0x40')](_0x21b553['where'],{[Op['or']]:_[_0x387cec('0x61')](_0x21b553[_0x387cec('0x53')],function(_0x5ebf9c){const _0x481609=_0x387cec,_0x4d219e={};return _0x4d219e[_0x5ebf9c]={[Op[_0x481609('0x1a')]]:'%'+_0x28bdf7[_0x481609('0x1f')]['filter']+'%'},_0x4d219e;})})),_0x21b553=_[_0x387cec('0x40')]({},_0x21b553,_0x28bdf7['options']),_0x3205f9[_0x387cec('0x18')](_0x21b553);})[_0x4ec638('0x49')](function(_0x10cf9c){const _0x1a4f69=_0x4ec638;if(_0x10cf9c)return _0x1e7c21=_0x10cf9c['length'],typeof _0x28bdf7['query']['nolimit']===_0x1a4f69('0x21')&&(_0x21b553[_0x1a4f69('0x27')]=qs[_0x1a4f69('0x27')](_0x28bdf7[_0x1a4f69('0x1f')][_0x1a4f69('0x27')]),_0x21b553[_0x1a4f69('0x38')]=qs[_0x1a4f69('0x38')](_0x28bdf7['query']['offset'])),_0x3205f9[_0x1a4f69('0x18')](_0x21b553);})[_0x4ec638('0x49')](function(_0xc4f07d){if(_0xc4f07d)return _0xc4f07d?{'count':_0x1e7c21,'rows':_0xc4f07d}:null;})['then'](respondWithResult(_0x4b6231,null))[_0x4ec638('0xa5')](handleError(_0x4b6231,null));}; \ No newline at end of file +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 diff --git a/server/api/mailAccount/mailAccount.events.js b/server/api/mailAccount/mailAccount.events.js index 3818949..bd1610e 100644 --- a/server/api/mailAccount/mailAccount.events.js +++ b/server/api/mailAccount/mailAccount.events.js @@ -1 +1 @@ -const a395_0x23ef=['addHook','update','emit','setMaxListeners','save','exports','events'];(function(_0xe21371,_0x23ef42){const _0x4736d0=function(_0x4230d5){while(--_0x4230d5){_0xe21371['push'](_0xe21371['shift']());}};_0x4736d0(++_0x23ef42);}(a395_0x23ef,0x141));const a395_0x4736=function(_0xe21371,_0x23ef42){_0xe21371=_0xe21371-0x0;let _0x4736d0=a395_0x23ef[_0xe21371];return _0x4736d0;};const _0x447a93=a395_0x4736;'use strict';const EventEmitter=require(_0x447a93('0x0')),MailAccount=require('../../mysqldb')['db']['MailAccount'],MailAccountEvents=new EventEmitter();MailAccountEvents[_0x447a93('0x4')](0x0);const events={'afterCreate':_0x447a93('0x5'),'afterUpdate':_0x447a93('0x2'),'afterDestroy':'remove'};function emitEvent(_0x4230d5){return function(_0x332c85){const _0x4c8ea9=a395_0x4736;MailAccountEvents[_0x4c8ea9('0x3')](_0x4230d5+':'+_0x332c85['id'],_0x332c85),MailAccountEvents['emit'](_0x4230d5,_0x332c85);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];MailAccount[_0x447a93('0x1')](e,emitEvent(event));}}module[_0x447a93('0x6')]=MailAccountEvents; \ No newline at end of file +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 diff --git a/server/api/mailAccount/mailAccount.model.js b/server/api/mailAccount/mailAccount.model.js index e28657a..fd8eef2 100644 --- a/server/api/mailAccount/mailAccount.model.js +++ b/server/api/mailAccount/mailAccount.model.js @@ -1 +1 @@ -const a396_0x421f=['MailAccount','define','exports','./mailAccount.attributes'];(function(_0xaca7e,_0x421fb4){const _0x35e0ea=function(_0x26f4d1){while(--_0x26f4d1){_0xaca7e['push'](_0xaca7e['shift']());}};_0x35e0ea(++_0x421fb4);}(a396_0x421f,0xd3));const a396_0x35e0=function(_0xaca7e,_0x421fb4){_0xaca7e=_0xaca7e-0x0;let _0x35e0ea=a396_0x421f[_0xaca7e];return _0x35e0ea;};const _0x42b89a=a396_0x35e0;'use strict';const attributes=require(_0x42b89a('0x0'));module[_0x42b89a('0x3')]=function(_0x26f4d1){const _0x1ae79d=_0x42b89a,_0x3a4530=_0x26f4d1[_0x1ae79d('0x2')](_0x1ae79d('0x1'),attributes,{'tableName':'mail_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x3a4530;}; \ No newline at end of file +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 diff --git a/server/api/mailAccount/mailAccount.rpc.js b/server/api/mailAccount/mailAccount.rpc.js index 556d73c..a6a3ff1 100644 --- a/server/api/mailAccount/mailAccount.rpc.js +++ b/server/api/mailAccount/mailAccount.rpc.js @@ -1 +1 @@ -const a397_0x7ded=['createdAt','code','randomstring','error','jayson/promise','request\x20sent','../../mysqldb','autoclose','applications','mail','MailAccount,\x20%s,\x20%s,\x20%s','MailAccount,\x20%s,\x20%s','generate','include','from','list','findAll','body\x20is\x20mandatory\x20and\x20not\x20empty','NotifyMailAccount','includes','messageId','originCc','options','Attachment','raw','updatedAt','UserId','MailServerOut','request','http','debug','attach','Contact\x20not\x20found','subject','MailMessage','CmContact','register','Applications','startRouting','ListId','unshift','attachments','*,*,*,*','account','get','keys','format','Start','interaction','../../config/logger','created','CompanyId','MailInteraction','rawAttributes','DESC','asc','body','catch','List','length','Attachments','mapKey','contact','model','stringify','YYYY-MM-DD\x20HH:mm:ss','push','attributes','omit','rpc','then','create','inReplyTo','Contacts','agent','./mailAccount.socket','findOne','isNil','ShowMailAccount','difference','info','map','MailApplication','waitForTheAssignedAgent','defaults','where','MailAccount','result','message','limit','bcc','close'];(function(_0x4433aa,_0x7ded88){const _0x5732c4=function(_0x47e10b){while(--_0x47e10b){_0x4433aa['push'](_0x4433aa['shift']());}};_0x5732c4(++_0x7ded88);}(a397_0x7ded,0xc5));const a397_0x5732=function(_0x4433aa,_0x7ded88){_0x4433aa=_0x4433aa-0x0;let _0x5732c4=a397_0x7ded[_0x4433aa];return _0x5732c4;};const _0x5defa5=a397_0x5732;'use strict';const _=require('lodash'),db=require(_0x5defa5('0x55'))['db'],logger=require(_0x5defa5('0x24'))(_0x5defa5('0x38')),{getSocket}=require('../../rediscache'),socket=getSocket(),rs=require(_0x5defa5('0x51')),moment=require('moment'),jayson=require(_0x5defa5('0x53')),client=jayson['client'][_0x5defa5('0x10')]({'port':0x232c});require(_0x5defa5('0x3e'))[_0x5defa5('0x17')](socket);function respondWithRpcPromise(_0x47e10b,_0x5ae255,_0x1f1c7e){return new Promise(function(_0x20965f,_0x32ae4a){const _0x5ea017=a397_0x5732;return client[_0x5ea017('0xf')](_0x47e10b,_0x1f1c7e)[_0x5ea017('0x39')](function(_0x5a22fa){const _0x39c76b=_0x5ea017;logger[_0x39c76b('0x43')]('MailAccount,\x20%s,\x20%s',_0x5ae255,_0x39c76b('0x54')),logger[_0x39c76b('0x11')](_0x39c76b('0x59'),_0x5ae255,_0x39c76b('0x54'),JSON[_0x39c76b('0x33')](_0x5a22fa));if(_0x5a22fa['error']){if(_0x5a22fa[_0x39c76b('0x52')][_0x39c76b('0x50')]===0x1f4)return logger['error'](_0x39c76b('0x5a'),_0x5ae255,_0x5a22fa[_0x39c76b('0x52')]['message']),_0x32ae4a(_0x5a22fa['error']['message']);return logger['error'](_0x39c76b('0x5a'),_0x5ae255,_0x5a22fa[_0x39c76b('0x52')][_0x39c76b('0x4b')]),_0x20965f(_0x5a22fa[_0x39c76b('0x52')][_0x39c76b('0x4b')]);}else logger['info'](_0x39c76b('0x5a'),_0x5ae255,_0x39c76b('0x54')),_0x20965f(_0x5a22fa[_0x39c76b('0x4a')][_0x39c76b('0x4b')]);})[_0x5ea017('0x2c')](function(_0x500776){const _0x18974d=_0x5ea017;logger['error'](_0x18974d('0x5a'),_0x5ae255,_0x500776),_0x32ae4a(_0x500776);});});}exports['GetMailAccount']=function(_0x43bd55){const _0x9e423a=this;return new Promise(function(_0x4a05ea,_0x411e78){const _0x47f9de=a397_0x5732;return db[_0x47f9de('0x49')][_0x47f9de('0x3')]({'raw':_0x43bd55[_0x47f9de('0x9')]?_0x43bd55[_0x47f9de('0x9')]['raw']===undefined?!![]:![]:!![],'where':_0x43bd55['options']?_0x43bd55[_0x47f9de('0x9')]['where']||null:null,'attributes':_0x43bd55[_0x47f9de('0x9')]?_0x43bd55[_0x47f9de('0x9')][_0x47f9de('0x36')]||null:null,'limit':_0x43bd55[_0x47f9de('0x9')]?_0x43bd55[_0x47f9de('0x9')][_0x47f9de('0x4c')]||null:null,'include':_0x43bd55[_0x47f9de('0x9')]?_0x43bd55['options'][_0x47f9de('0x0')]?_['map'](_0x43bd55[_0x47f9de('0x9')][_0x47f9de('0x0')],function(_0x1c5554){const _0x2fe189=_0x47f9de;return{'model':db[_0x1c5554[_0x2fe189('0x32')]],'as':_0x1c5554['as'],'attributes':_0x1c5554[_0x2fe189('0x36')],'include':_0x1c5554[_0x2fe189('0x0')]?_[_0x2fe189('0x44')](_0x1c5554['include'],function(_0x6b73ac){const _0x4d716b=_0x2fe189;return{'model':db[_0x6b73ac[_0x4d716b('0x32')]],'as':_0x6b73ac['as'],'attributes':_0x6b73ac[_0x4d716b('0x36')],'include':_0x6b73ac[_0x4d716b('0x0')]?_[_0x4d716b('0x44')](_0x6b73ac['include'],function(_0x58991f){const _0x24136e=_0x4d716b;return{'model':db[_0x58991f[_0x24136e('0x32')]],'as':_0x58991f['as'],'attributes':_0x58991f[_0x24136e('0x36')]};}):[]};}):[]};}):[]:[]})[_0x47f9de('0x39')](function(_0x1e2425){const _0x2577e0=_0x47f9de;logger[_0x2577e0('0x43')]('GetMailAccount',_0x43bd55),logger['debug']('GetMailAccount',_0x43bd55,JSON['stringify'](_0x1e2425)),_0x4a05ea(_0x1e2425);})[_0x47f9de('0x2c')](function(_0x21ea4c){const _0x754d55=_0x47f9de;logger[_0x754d55('0x52')]('GetMailAccount',_0x21ea4c[_0x754d55('0x4b')],_0x43bd55),_0x411e78(_0x9e423a[_0x754d55('0x52')](0x1f4,_0x21ea4c[_0x754d55('0x4b')]));});});},exports[_0x5defa5('0x41')]=function(_0x32a3dc){const _0xa21513=this;return new Promise(function(_0x29e54e,_0x283dcf){const _0x4d62e5=a397_0x5732;return db[_0x4d62e5('0x49')][_0x4d62e5('0x3f')]({'raw':_0x32a3dc['options']?_0x32a3dc['options'][_0x4d62e5('0xb')]===undefined?!![]:![]:!![],'where':_0x32a3dc[_0x4d62e5('0x9')]?_0x32a3dc[_0x4d62e5('0x9')][_0x4d62e5('0x48')]||null:null,'attributes':_0x32a3dc['options']?_0x32a3dc['options'][_0x4d62e5('0x36')]||null:null,'include':_0x32a3dc['options']?_0x32a3dc['options']['include']?_['map'](_0x32a3dc[_0x4d62e5('0x9')][_0x4d62e5('0x0')],function(_0x3b26df){const _0x3521c6=_0x4d62e5;return{'model':db[_0x3b26df[_0x3521c6('0x32')]],'as':_0x3b26df['as'],'attributes':_0x3b26df[_0x3521c6('0x36')],'include':_0x3b26df[_0x3521c6('0x0')]?_[_0x3521c6('0x44')](_0x3b26df[_0x3521c6('0x0')],function(_0xf01089){const _0x1b62a5=_0x3521c6;return{'model':db[_0xf01089['model']],'as':_0xf01089['as'],'attributes':_0xf01089[_0x1b62a5('0x36')],'include':_0xf01089[_0x1b62a5('0x0')]?_[_0x1b62a5('0x44')](_0xf01089['include'],function(_0x2b960b){const _0x353f71=_0x1b62a5;return{'model':db[_0x2b960b[_0x353f71('0x32')]],'as':_0x2b960b['as'],'attributes':_0x2b960b[_0x353f71('0x36')]};}):[]};}):[]};}):[]:[]})[_0x4d62e5('0x39')](function(_0x3e030c){const _0x32fb6a=_0x4d62e5;logger[_0x32fb6a('0x43')]('ShowMailAccount',_0x32a3dc),logger[_0x32fb6a('0x11')](_0x32fb6a('0x41'),_0x32a3dc,JSON['stringify'](_0x3e030c)),_0x29e54e(_0x3e030c);})[_0x4d62e5('0x2c')](function(_0xf83688){const _0x5e4c59=_0x4d62e5;logger['error']('ShowMailAccount',_0xf83688[_0x5e4c59('0x4b')],_0x32a3dc),_0x283dcf(_0xa21513['error'](0x1f4,_0xf83688['message']));});});},exports[_0x5defa5('0x5')]=function(_0x15a000){const _0x53daa1=this;return new Promise(function(_0x381a4c,_0x2e2074){const _0x55ad75=a397_0x5732,_0x2764e8={'body':_0x15a000[_0x55ad75('0x2b')],'channel':_0x55ad75('0x58')},_0x5b26fb=_[_0x55ad75('0x42')](_[_0x55ad75('0x20')](db['CmContact'][_0x55ad75('0x28')]),[_0x55ad75('0x4f'),_0x55ad75('0xc'),_0x55ad75('0x26'),_0x55ad75('0x1a')]);let _0x588900=![];_0x15a000[_0x55ad75('0x2b')]['id']&&delete _0x15a000[_0x55ad75('0x2b')]['id'];if(_[_0x55ad75('0x40')](_0x15a000['body'][_0x55ad75('0x1')]))return _0x2e2074(_0x53daa1['error'](0x1f4,'from\x20is\x20mandatory'));if(_[_0x55ad75('0x40')](_0x15a000[_0x55ad75('0x2b')][_0x55ad75('0x2b')])||_0x15a000[_0x55ad75('0x2b')][_0x55ad75('0x2b')]==='')return _0x2e2074(_0x53daa1[_0x55ad75('0x52')](0x1f4,_0x55ad75('0x4')));if(_['isNil'](_0x15a000[_0x55ad75('0x2b')][_0x55ad75('0x30')]))return _0x2e2074(_0x53daa1[_0x55ad75('0x52')](0x1f4,'mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x5b26fb));if(!_[_0x55ad75('0x6')](_0x5b26fb,_0x15a000['body'][_0x55ad75('0x30')]))return _0x2e2074(_0x53daa1['error'](0x1f4,'mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x5b26fb));const _0x2e7218={};return _0x2e7218[_0x15a000[_0x55ad75('0x2b')][_0x55ad75('0x30')]]=_0x15a000['body'][_0x55ad75('0x1')],db[_0x55ad75('0x49')][_0x55ad75('0x3f')]({'where':{'id':_0x15a000['account']['id']},'include':[{'model':db['CmList'],'as':_0x55ad75('0x2d'),'include':[{'model':db[_0x55ad75('0x16')],'as':'Contacts','where':_0x2e7218,'limit':0x1,'order':[['updatedAt',_0x55ad75('0x29')]]}]},{'model':db[_0x55ad75('0x45')],'as':_0x55ad75('0x18')},{'model':db[_0x55ad75('0xe')],'as':'Smtp'}]})[_0x55ad75('0x39')](function(_0x5e3d26){const _0x33a658=_0x55ad75;if(_0x5e3d26&&_0x5e3d26[_0x33a658('0x2d')]){const _0x5f31e0=_0x5e3d26[_0x33a658('0x1f')]({'plain':!![]});_0x2764e8[_0x33a658('0x1e')]=_[_0x33a658('0x37')](_0x5f31e0,[_0x33a658('0x18'),'List']),_0x2764e8[_0x33a658('0x57')]=_0x5f31e0[_0x33a658('0x18')],_0x2764e8[_0x33a658('0x2')]=_0x5f31e0[_0x33a658('0x2d')],_0x2764e8[_0x33a658('0x57')]=_['orderBy'](_0x2764e8[_0x33a658('0x57')],['priority'],[_0x33a658('0x2a')]);_0x2764e8[_0x33a658('0x1e')]&&_0x2764e8[_0x33a658('0x1e')][_0x33a658('0x56')]&&_0x2764e8[_0x33a658('0x57')][_0x33a658('0x35')]({'id':0x0,'priority':_0x2764e8[_0x33a658('0x57')]['length']+0x1,'app':_0x33a658('0x4e'),'appdata':_0x33a658('0x56'),'interval':_0x33a658('0x1d')});_0x2764e8[_0x33a658('0x1e')][_0x33a658('0x18')]&&delete _0x2764e8[_0x33a658('0x1e')]['Applications'];_0x2764e8[_0x33a658('0x1e')][_0x33a658('0x2d')]&&delete _0x2764e8[_0x33a658('0x1e')][_0x33a658('0x2d')];if(_0x5f31e0['List'][_0x33a658('0x3c')][_0x33a658('0x2e')])return _0x5f31e0[_0x33a658('0x2d')][_0x33a658('0x3c')][0x0];const _0x33a676=_[_0x33a658('0x47')](_0x15a000[_0x33a658('0x2b')],{'firstName':_0x15a000[_0x33a658('0x2b')][_0x33a658('0x1')],'ListId':_0x5f31e0[_0x33a658('0x1a')]});return _0x33a676[_0x15a000[_0x33a658('0x2b')][_0x33a658('0x30')]]=_0x15a000[_0x33a658('0x2b')][_0x33a658('0x1')],db[_0x33a658('0x16')][_0x33a658('0x3a')](_0x33a676);}else throw new Error('List\x20not\x20found');})[_0x55ad75('0x39')](function(_0x640d1f){const _0x2d105b=_0x55ad75;_0x2764e8['contact']=_0x640d1f;if(_0x640d1f){!_0x15a000[_0x2d105b('0x2b')]['message']['messageId']&&(_0x15a000[_0x2d105b('0x2b')][_0x2d105b('0x4b')][_0x2d105b('0x7')]=rs[_0x2d105b('0x5b')]()+'\x20'+_0x15a000[_0x2d105b('0x2b')][_0x2d105b('0x4b')]['from']);const _0x2e6b4f={'ContactId':_0x640d1f['id'],'MailAccountId':_0x15a000['account']['id'],'inReplyTo':_0x15a000[_0x2d105b('0x2b')][_0x2d105b('0x4b')][_0x2d105b('0x7')],'to':_0x15a000[_0x2d105b('0x2b')]['message'][_0x2d105b('0x1')],'cc':_0x15a000[_0x2d105b('0x2b')][_0x2d105b('0x4b')]['cc'],'subject':_0x15a000[_0x2d105b('0x2b')][_0x2d105b('0x4b')]['subject'],'attach':_0x15a000[_0x2d105b('0x2b')][_0x2d105b('0x4b')][_0x2d105b('0x12')],'lastMsgAt':moment()[_0x2d105b('0x21')]('YYYY-MM-DD\x20HH:mm:ss'),'lastMsgDirection':'in','lastMsgBody':_0x15a000[_0x2d105b('0x2b')][_0x2d105b('0x2b')]};return db[_0x2d105b('0x27')][_0x2d105b('0x3f')]({'where':{'closed':![],'MailAccountId':_0x15a000[_0x2d105b('0x1e')]['id']},'include':[{'model':db[_0x2d105b('0x15')],'as':'Messages','attributes':[_0x2d105b('0x7')],'where':{'messageId':_0x15a000[_0x2d105b('0x2b')][_0x2d105b('0x4b')][_0x2d105b('0x3b')]}}]})[_0x2d105b('0x39')](function(_0x416a85){if(_0x416a85)return[_0x416a85,![]];return db['MailInteraction']['create'](_0x2e6b4f)['then'](function(_0xd605f0){return[_0xd605f0,!![]];});});}else throw new Error(_0x2d105b('0x13'));})[_0x55ad75('0x39')](function([_0x1c45a7,_0x43e748]){const _0x637377=_0x55ad75;if(_0x1c45a7)return _0x588900=_0x43e748,!_0x43e748?_0x1c45a7['update']({'inReplyTo':_0x15a000[_0x637377('0x2b')]['message'][_0x637377('0x7')],'to':_0x15a000[_0x637377('0x2b')]['message'][_0x637377('0x1')],'cc':_0x15a000['body'][_0x637377('0x4b')]['cc'],'subject':_0x15a000['body']['message'][_0x637377('0x14')],'attach':_0x1c45a7[_0x637377('0x12')]?_0x1c45a7['attach']:_0x15a000[_0x637377('0x2b')][_0x637377('0x4b')][_0x637377('0x12')],'substatus':null,'substatusAt':moment()[_0x637377('0x21')](_0x637377('0x34')),'lastMsgAt':moment()[_0x637377('0x21')](_0x637377('0x34')),'lastMsgDirection':'in','lastMsgBody':_0x15a000[_0x637377('0x2b')]['body']}):_0x1c45a7;})['then'](function(_0x4d17b4){const _0x4448b6=_0x55ad75;return _0x2764e8[_0x4448b6('0x23')]=_0x4d17b4['get']({'plain':!![]}),_0x2764e8[_0x4448b6('0x23')][_0x4448b6('0x25')]=_0x588900,db['MailMessage'][_0x4448b6('0x3a')]({'body':_0x15a000['body']['body'],'MailAccountId':_0x15a000[_0x4448b6('0x1e')]['id'],'MailInteractionId':_0x4d17b4['id'],'direction':'in','ContactId':_0x2764e8[_0x4448b6('0x31')]['id'],'messageId':_0x15a000[_0x4448b6('0x2b')]['message'][_0x4448b6('0x7')],'from':_0x15a000[_0x4448b6('0x2b')][_0x4448b6('0x4b')]['from'],'to':_0x15a000[_0x4448b6('0x2b')][_0x4448b6('0x4b')]['to'],'cc':_0x15a000[_0x4448b6('0x2b')]['message']['cc'],'subject':_0x15a000['body'][_0x4448b6('0x4b')]['subject'],'attach':_0x15a000['body'][_0x4448b6('0x4b')][_0x4448b6('0x12')],'Attachments':_0x15a000['body'][_0x4448b6('0x4b')][_0x4448b6('0x1c')],'originTo':_0x15a000['body'][_0x4448b6('0x4b')]['originTo'],'originCc':_0x15a000[_0x4448b6('0x2b')]['message'][_0x4448b6('0x8')],'bcc':_0x15a000['body'][_0x4448b6('0x4b')][_0x4448b6('0x4d')]},{'include':[{'model':db[_0x4448b6('0xa')],'as':_0x4448b6('0x2f')}]});})[_0x55ad75('0x39')](function(_0x559743){const _0x2ac196=_0x55ad75;_0x2764e8[_0x2ac196('0x4b')]=_0x559743;if(_0x2764e8['interaction'][_0x2ac196('0xd')])return db['User']['findOne']({'attributes':['id','name'],'where':{'id':_0x2764e8['interaction']['UserId']}})['then'](function(_0xcb25a2){const _0x50e188=_0x2ac196;return _0xcb25a2&&_0x2764e8[_0x50e188('0x57')][_0x50e188('0x1b')]({'id':0x0,'priority':0x0,'app':_0x50e188('0x3d'),'appdata':_0xcb25a2['name']+','+(_0x2764e8[_0x50e188('0x1e')][_0x50e188('0x46')]||0xa),'interval':_0x50e188('0x1d')}),respondWithRpcPromise(_0x50e188('0x22'),_0x50e188('0x19'),_0x2764e8);});return respondWithRpcPromise(_0x2ac196('0x22'),_0x2ac196('0x19'),_0x2764e8);})[_0x55ad75('0x39')](function(_0x3d76b8){_0x381a4c(_0x3d76b8);})['catch'](function(_0x1f7030){const _0x5292=_0x55ad75;_0x2e2074(_0x53daa1['error'](0x1f4,_0x1f7030[_0x5292('0x4b')]));});});}; \ No newline at end of file +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 diff --git a/server/api/mailAccount/mailAccount.socket.js b/server/api/mailAccount/mailAccount.socket.js index 5225dc3..0e6ee9d 100644 --- a/server/api/mailAccount/mailAccount.socket.js +++ b/server/api/mailAccount/mailAccount.socket.js @@ -1 +1 @@ -const a398_0x39bf=['length','./mailAccount.events','update','emit','register','mailAccount:'];(function(_0x19adda,_0x39bf0d){const _0x4e5e41=function(_0x3a21fa){while(--_0x3a21fa){_0x19adda['push'](_0x19adda['shift']());}};_0x4e5e41(++_0x39bf0d);}(a398_0x39bf,0x9b));const a398_0x4e5e=function(_0x19adda,_0x39bf0d){_0x19adda=_0x19adda-0x0;let _0x4e5e41=a398_0x39bf[_0x19adda];return _0x4e5e41;};const _0xe9c0f0=a398_0x4e5e;'use strict';const MailAccountEvents=require(_0xe9c0f0('0x2')),events=['save','remove',_0xe9c0f0('0x3')];function createListener(_0x3a21fa,_0xcd6ee4){return function(_0x5bc240){const _0x5263c7=a398_0x4e5e;_0xcd6ee4[_0x5263c7('0x4')](_0x3a21fa,_0x5bc240);};}exports[_0xe9c0f0('0x5')]=function(_0xa98815){const _0x2c6c01=_0xe9c0f0;for(let _0x525f2e=0x0,_0x46a117=events[_0x2c6c01('0x1')];_0x525f2e<_0x46a117;_0x525f2e++){const _0x254b9c=events[_0x525f2e],_0x411f43=createListener(_0x2c6c01('0x0')+_0x254b9c,_0xa98815);MailAccountEvents['on'](_0x254b9c,_0x411f43);}}; \ No newline at end of file +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 diff --git a/server/api/mailApplication/index.js b/server/api/mailApplication/index.js index 7d22fd0..c36d70a 100644 --- a/server/api/mailApplication/index.js +++ b/server/api/mailApplication/index.js @@ -1 +1 @@ -const a399_0x9b82=['Router','/:id','destroy','./mailApplication.controller','isAuthenticated','delete'];(function(_0x52dccb,_0x9b8289){const _0x3f96b4=function(_0x559cda){while(--_0x559cda){_0x52dccb['push'](_0x52dccb['shift']());}};_0x3f96b4(++_0x9b8289);}(a399_0x9b82,0x10e));const a399_0x3f96=function(_0x52dccb,_0x9b8289){_0x52dccb=_0x52dccb-0x0;let _0x3f96b4=a399_0x9b82[_0x52dccb];return _0x3f96b4;};const _0x56347d=a399_0x3f96;'use strict';const express=require('express'),router=express[_0x56347d('0x0')](),auth=require('../../components/auth/service'),controller=require(_0x56347d('0x3'));router['get']('/:id',auth['isAuthenticated'](),controller['show']),router['put'](_0x56347d('0x1'),auth[_0x56347d('0x4')](),controller['update']),router[_0x56347d('0x5')](_0x56347d('0x1'),auth[_0x56347d('0x4')](),controller[_0x56347d('0x2')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/mailApplication/mailApplication.attributes.js b/server/api/mailApplication/mailApplication.attributes.js index 8b8bd85..0fb1779 100644 --- a/server/api/mailApplication/mailApplication.attributes.js +++ b/server/api/mailApplication/mailApplication.attributes.js @@ -1 +1 @@ -const a400_0x3810=['STRING','TEXT','INTEGER','sequelize','exports','*,*,*,*','noop'];(function(_0x488602,_0x38101f){const _0x2a80bd=function(_0x2fa6b2){while(--_0x2fa6b2){_0x488602['push'](_0x488602['shift']());}};_0x2a80bd(++_0x38101f);}(a400_0x3810,0x19b));const a400_0x2a80=function(_0x488602,_0x38101f){_0x488602=_0x488602-0x0;let _0x2a80bd=a400_0x3810[_0x488602];return _0x2a80bd;};const _0x5062f4=a400_0x2a80;'use strict';const Sequelize=require(_0x5062f4('0x5'));module[_0x5062f4('0x6')]={'priority':{'type':Sequelize[_0x5062f4('0x4')],'allowNull':![]},'app':{'type':Sequelize[_0x5062f4('0x2')],'allowNull':![],'defaultValue':_0x5062f4('0x1')},'appdata':{'type':Sequelize[_0x5062f4('0x3')]()},'description':{'type':Sequelize[_0x5062f4('0x2')]},'interval':{'type':Sequelize[_0x5062f4('0x2')],'defaultValue':_0x5062f4('0x0')}}; \ No newline at end of file +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 diff --git a/server/api/mailApplication/mailApplication.controller.js b/server/api/mailApplication/mailApplication.controller.js index 9877455..4c3b7ee 100644 --- a/server/api/mailApplication/mailApplication.controller.js +++ b/server/api/mailApplication/mailApplication.controller.js @@ -1 +1 @@ -const a401_0xeba2=['send','filters','findOne','options','sendStatus','then','attributes','MailApplication','../../components/parsers/qs','length','status','destroy','name','show','catch','end','params','fields','query','keys','error','rawAttributes','model','intersection','../../config/logger','body'];(function(_0x58c30d,_0xeba29c){const _0x116cba=function(_0x701d8e){while(--_0x701d8e){_0x58c30d['push'](_0x58c30d['shift']());}};_0x116cba(++_0xeba29c);}(a401_0xeba2,0xe3));const a401_0x116c=function(_0x58c30d,_0xeba29c){_0x58c30d=_0x58c30d-0x0;let _0x116cba=a401_0xeba2[_0x58c30d];return _0x116cba;};const _0x7fd72c=a401_0x116c;'use strict';const _=require('lodash'),qs=require(_0x7fd72c('0xf')),logger=require(_0x7fd72c('0x5'))('api'),db=require('../../mysqldb')['db'];function respondWithResult(_0x701d8e,_0x3d712d){return _0x3d712d=_0x3d712d||0xc8,function(_0x261003){const _0x563825=a401_0x116c;if(_0x261003)return _0x701d8e[_0x563825('0x11')](_0x3d712d)['json'](_0x261003);};}function saveUpdates(_0x1138e2){return function(_0x26c976){const _0x5c2d87=a401_0x116c;if(_0x26c976)return _0x26c976['update'](_0x1138e2)[_0x5c2d87('0xc')](function(_0x5d3a52){return _0x5d3a52;});return null;};}function removeEntity(_0x151d2d){return function(_0x54dd33){const _0x3c3bbe=a401_0x116c;if(_0x54dd33)return _0x54dd33[_0x3c3bbe('0x12')]()[_0x3c3bbe('0xc')](function(){const _0x202353=_0x3c3bbe;_0x151d2d[_0x202353('0x11')](0xcc)[_0x202353('0x16')]();});};}function handleEntityNotFound(_0x3bbdb2){return function(_0x5006f8){const _0x1684fe=a401_0x116c;return!_0x5006f8&&_0x3bbdb2[_0x1684fe('0xb')](0x194),_0x5006f8;};}function handleError(_0x398a03,_0x1078ce){return _0x1078ce=_0x1078ce||0x1f4,function(_0x1d2cd1){const _0x39e38f=a401_0x116c;logger[_0x39e38f('0x1')](_0x1d2cd1['stack']),_0x1d2cd1[_0x39e38f('0x13')]&&delete _0x1d2cd1[_0x39e38f('0x13')],_0x398a03[_0x39e38f('0x11')](_0x1078ce)[_0x39e38f('0x7')](_0x1d2cd1);};}exports[_0x7fd72c('0x14')]=function(_0x185dce,_0x27e143){const _0x1d43b2=_0x7fd72c;let _0x227024={'raw':!![],'where':{'id':_0x185dce[_0x1d43b2('0x17')]['id']}};const _0x4e1906={};return _0x4e1906[_0x1d43b2('0x3')]=_['keys'](db[_0x1d43b2('0xe')][_0x1d43b2('0x2')]),_0x4e1906[_0x1d43b2('0x19')]=_[_0x1d43b2('0x0')](_0x185dce['query']),_0x4e1906[_0x1d43b2('0x8')]=_[_0x1d43b2('0x4')](_0x4e1906['model'],_0x4e1906[_0x1d43b2('0x19')]),_0x227024[_0x1d43b2('0xd')]=_['intersection'](_0x4e1906['model'],qs[_0x1d43b2('0x18')](_0x185dce[_0x1d43b2('0x19')][_0x1d43b2('0x18')])),_0x227024[_0x1d43b2('0xd')]=_0x227024['attributes'][_0x1d43b2('0x10')]?_0x227024[_0x1d43b2('0xd')]:_0x4e1906[_0x1d43b2('0x3')],_0x185dce[_0x1d43b2('0x19')]['includeAll']&&(_0x227024['include']=[{'all':!![]}]),_0x227024=_['merge']({},_0x227024,_0x185dce[_0x1d43b2('0xa')]),db['MailApplication'][_0x1d43b2('0x9')](_0x227024)[_0x1d43b2('0xc')](handleEntityNotFound(_0x27e143,null))[_0x1d43b2('0xc')](respondWithResult(_0x27e143,null))[_0x1d43b2('0x15')](handleError(_0x27e143,null));},exports['update']=function(_0x1f75e1,_0x363387){const _0x475f2d=_0x7fd72c;return _0x1f75e1['body']['id']&&delete _0x1f75e1[_0x475f2d('0x6')]['id'],db['MailApplication']['findOne']({'where':{'id':_0x1f75e1[_0x475f2d('0x17')]['id']}})[_0x475f2d('0xc')](handleEntityNotFound(_0x363387,null))['then'](saveUpdates(_0x1f75e1[_0x475f2d('0x6')],null))[_0x475f2d('0xc')](respondWithResult(_0x363387,null))['catch'](handleError(_0x363387,null));},exports[_0x7fd72c('0x12')]=function(_0x5cf92b,_0x3e2cf7){const _0x3c91a3=_0x7fd72c;return db[_0x3c91a3('0xe')][_0x3c91a3('0x9')]({'where':{'id':_0x5cf92b['params']['id']}})[_0x3c91a3('0xc')](handleEntityNotFound(_0x3e2cf7,null))[_0x3c91a3('0xc')](removeEntity(_0x3e2cf7,null))[_0x3c91a3('0x15')](handleError(_0x3e2cf7,null));}; \ No newline at end of file +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 diff --git a/server/api/mailApplication/mailApplication.model.js b/server/api/mailApplication/mailApplication.model.js index f9d9643..4a2cfb3 100644 --- a/server/api/mailApplication/mailApplication.model.js +++ b/server/api/mailApplication/mailApplication.model.js @@ -1 +1 @@ -const a402_0xe406=['define','utf8mb4','utf8mb4_unicode_ci','MailApplication','./mailApplication.attributes','exports','mail_applications'];(function(_0x1dc309,_0xe40615){const _0x312e64=function(_0x507f82){while(--_0x507f82){_0x1dc309['push'](_0x1dc309['shift']());}};_0x312e64(++_0xe40615);}(a402_0xe406,0x1af));const a402_0x312e=function(_0x1dc309,_0xe40615){_0x1dc309=_0x1dc309-0x0;let _0x312e64=a402_0xe406[_0x1dc309];return _0x312e64;};const _0x44072e=a402_0x312e;'use strict';const attributes=require(_0x44072e('0x0'));module[_0x44072e('0x1')]=function(_0x507f82){const _0x3bc6b5=_0x44072e,_0x3f6c5f=_0x507f82[_0x3bc6b5('0x3')](_0x3bc6b5('0x6'),attributes,{'tableName':_0x3bc6b5('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x3bc6b5('0x4'),'collate':_0x3bc6b5('0x5')});return _0x3f6c5f;}; \ No newline at end of file +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 diff --git a/server/api/mailApplication/mailApplication.rpc.js b/server/api/mailApplication/mailApplication.rpc.js index 4b3f430..b6cef04 100644 --- a/server/api/mailApplication/mailApplication.rpc.js +++ b/server/api/mailApplication/mailApplication.rpc.js @@ -1 +1 @@ -const a403_0x5103=['attributes','UpdateMailApplication','message','options','../../config/logger','error','where','body','then','raw','rpc','MailApplication','../../mysqldb'];(function(_0x3e5863,_0x51030c){const _0x3cbd3e=function(_0x75bca8){while(--_0x75bca8){_0x3e5863['push'](_0x3e5863['shift']());}};_0x3cbd3e(++_0x51030c);}(a403_0x5103,0x1da));const a403_0x3cbd=function(_0x3e5863,_0x51030c){_0x3e5863=_0x3e5863-0x0;let _0x3cbd3e=a403_0x5103[_0x3e5863];return _0x3cbd3e;};const _0x37cb26=a403_0x3cbd;'use strict';const db=require(_0x37cb26('0x6'))['db'],logger=require(_0x37cb26('0xb'))(_0x37cb26('0x4'));exports[_0x37cb26('0x8')]=function(_0x75bca8){const _0x5a8935=this;return new Promise(function(_0x363d5f,_0x32e8fc){const _0x5ae74d=a403_0x3cbd;return db[_0x5ae74d('0x5')]['update'](_0x75bca8[_0x5ae74d('0x1')],{'raw':_0x75bca8[_0x5ae74d('0xa')]?_0x75bca8[_0x5ae74d('0xa')][_0x5ae74d('0x3')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x75bca8[_0x5ae74d('0xa')]?_0x75bca8[_0x5ae74d('0xa')][_0x5ae74d('0x0')]||null:null,'attributes':_0x75bca8[_0x5ae74d('0xa')]?_0x75bca8['options'][_0x5ae74d('0x7')]||null:null,'limit':_0x75bca8[_0x5ae74d('0xa')]?_0x75bca8['options']['limit']||null:null})[_0x5ae74d('0x2')](function(_0x3dedf5){const _0x2a8e69=_0x5ae74d;logger['info'](_0x2a8e69('0x8'),_0x75bca8),logger['debug'](_0x2a8e69('0x8'),_0x75bca8,JSON['stringify'](_0x3dedf5)),_0x363d5f(_0x3dedf5);})['catch'](function(_0x4ec619){const _0x1f5951=_0x5ae74d;logger[_0x1f5951('0xc')]('UpdateMailApplication',_0x4ec619[_0x1f5951('0x9')],_0x75bca8),_0x32e8fc(_0x5a8935[_0x1f5951('0xc')](0x1f4,_0x4ec619[_0x1f5951('0x9')]));});});}; \ No newline at end of file +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 diff --git a/server/api/mailInteraction/index.js b/server/api/mailInteraction/index.js index ccd7065..3b824a1 100644 --- a/server/api/mailInteraction/index.js +++ b/server/api/mailInteraction/index.js @@ -1 +1 @@ -const a404_0x2410=['isAuthenticated','addTags','post','/:id/tags','/describe','download','mailinteraction:addtags','../../components/interaction/service','get','index','addMessage','mail','mailinteraction:destroy','./mailInteraction.controller','express','exports','getMessages','put','/:id/messages','update','destroy','/:id/download','Router','../../components/auth/service','delete','tracked'];(function(_0x5128d2,_0x241063){const _0x2100f3=function(_0x26b44c){while(--_0x26b44c){_0x5128d2['push'](_0x5128d2['shift']());}};_0x2100f3(++_0x241063);}(a404_0x2410,0x9b));const a404_0x2100=function(_0x5128d2,_0x241063){_0x5128d2=_0x5128d2-0x0;let _0x2100f3=a404_0x2410[_0x5128d2];return _0x2100f3;};const _0x32221d=a404_0x2100;'use strict';const express=require(_0x32221d('0xf')),router=express[_0x32221d('0x17')](),auth=require(_0x32221d('0x18')),interaction=require(_0x32221d('0x8')),controller=require(_0x32221d('0xe'));router[_0x32221d('0x9')]('/',auth['isAuthenticated'](),controller[_0x32221d('0xa')]),router[_0x32221d('0x9')](_0x32221d('0x5'),auth['isAuthenticated'](),controller['describe']),router[_0x32221d('0x9')]('/:id',auth['isAuthenticated'](),controller['show']),router['get'](_0x32221d('0x13'),auth['isAuthenticated'](),controller[_0x32221d('0x11')]),router[_0x32221d('0x9')](_0x32221d('0x16'),auth[_0x32221d('0x1')](),controller[_0x32221d('0x6')]),router[_0x32221d('0x3')]('/',auth[_0x32221d('0x1')](),controller['create']),router[_0x32221d('0x3')](_0x32221d('0x13'),auth[_0x32221d('0x1')](),controller[_0x32221d('0xb')]),router['post'](_0x32221d('0x4'),auth[_0x32221d('0x1')](),interaction['tracked']('mail',_0x32221d('0x7')),controller[_0x32221d('0x2')]),router[_0x32221d('0x12')]('/:id',auth['isAuthenticated'](),interaction[_0x32221d('0x0')](_0x32221d('0xc'),'mailinteraction:update'),controller[_0x32221d('0x14')]),router[_0x32221d('0x19')]('/:id',auth[_0x32221d('0x1')](),interaction[_0x32221d('0x0')]('mail',_0x32221d('0xd')),controller[_0x32221d('0x15')]),router['delete']('/:id/tags',auth[_0x32221d('0x1')](),controller['removeTags']),module[_0x32221d('0x10')]=router; \ No newline at end of file +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 diff --git a/server/api/mailInteraction/mailInteraction.attributes.js b/server/api/mailInteraction/mailInteraction.attributes.js index ccfc92b..06eb157 100644 --- a/server/api/mailInteraction/mailInteraction.attributes.js +++ b/server/api/mailInteraction/mailInteraction.attributes.js @@ -1 +1 @@ -const a405_0x3bdb=['STRING','long','out','ENUM','TEXT','BOOLEAN','DATE','sequelize','exports'];(function(_0x380171,_0x3bdbdb){const _0x255429=function(_0x16ab6a){while(--_0x16ab6a){_0x380171['push'](_0x380171['shift']());}};_0x255429(++_0x3bdbdb);}(a405_0x3bdb,0x1c3));const a405_0x2554=function(_0x380171,_0x3bdbdb){_0x380171=_0x380171-0x0;let _0x255429=a405_0x3bdb[_0x380171];return _0x255429;};const _0x1eff81=a405_0x2554;'use strict';const Sequelize=require(_0x1eff81('0x6'));module[_0x1eff81('0x7')]={'closed':{'type':Sequelize[_0x1eff81('0x4')],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x1eff81('0x5')]},'disposition':{'type':Sequelize[_0x1eff81('0x8')]},'secondDisposition':{'type':Sequelize[_0x1eff81('0x8')]},'thirdDisposition':{'type':Sequelize[_0x1eff81('0x8')]},'note':{'type':Sequelize[_0x1eff81('0x8')]},'inReplyTo':{'type':Sequelize[_0x1eff81('0x8')](0x1fe)},'to':{'type':Sequelize[_0x1eff81('0x8')]},'cc':{'type':Sequelize[_0x1eff81('0x3')](_0x1eff81('0x0'))},'subject':{'type':Sequelize[_0x1eff81('0x3')]()},'attach':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'read1stAt':{'type':Sequelize[_0x1eff81('0x5')]},'substatus':{'type':Sequelize[_0x1eff81('0x8')](0x3c)},'substatusAt':{'type':Sequelize[_0x1eff81('0x5')]},'firstMsgDirection':{'type':Sequelize[_0x1eff81('0x2')]('in',_0x1eff81('0x1')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x1eff81('0x5')]},'lastMsgDirection':{'type':Sequelize['ENUM']('in',_0x1eff81('0x1')),'defaultValue':'in','allowNull':![]},'lastMsgBody':{'type':Sequelize[_0x1eff81('0x3')](_0x1eff81('0x0'))},'lastMsgText':{'type':Sequelize[_0x1eff81('0x3')](_0x1eff81('0x0'))}}; \ No newline at end of file +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 diff --git a/server/api/mailInteraction/mailInteraction.controller.js b/server/api/mailInteraction/mailInteraction.controller.js index 25fa0b9..b7ca6a0 100644 --- a/server/api/mailInteraction/mailInteraction.controller.js +++ b/server/api/mailInteraction/mailInteraction.controller.js @@ -1 +1 @@ -const a406_0x5d14=['message%d.eml','a.id\x20=\x20i.MailAccountId','count','$gte','addTags','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','select','i.MailAccountId','params','html-to-text','replace','i.substatus','forEach','setTags','a.key','order','resolve','MailMessage','tag','stack','push','mail_accounts','basename','options','findAll','buildExpression','isNumeric','readFileSync','set','writeFileSync','subject','i.to','omit','ui.MailInteractionId\x20IN\x20?','operator','u.fullname','Contact','t.id\x20=\x20it.TagId','./mailInteraction.socket','../../config/environment','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','`unreadMessages`\x20>\x200','fromString','u.id\x20=\x20ui.UserId','Contact.lastName','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','all','search','find','where','i.closed','zip-dir','model','create','i.subject','register','DESC','show','Contact.fax','headers','download','Attachments','compact','parse','i.updatedAt','read','status','destroy','Setting','GROUP_CONCAT(DISTINCT\x20t.id)','type','map','\x20=\x20?','sequelize','some','split','from','fieldName','../../rediscache','merge','undefined','tmp','pick','i.lastMsgDirection','Contact.phone','clone','length','i.MailAccountId\x20IS\x20NULL','createdAt','filters','include','api','Owner.fullname','ContactId','ddd,\x20DD\x20MMM\x20YYYY\x20HH:mm:ss\x20ZZ','format','it.MailInteractionId\x20=\x20i.id','i.MailAccountId\x20IS\x20NOT\x20NULL','filter','then','json','addMessage','sqlOperator','Tags','emit','mailInteractionTags:save','server','send','log','text','union','rows','SELECT','describe','TagIds','../../config/logger','Content-Range','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','left_join','expr','i.MailAccountId\x20IN\x20?','i.id','../../components/parsers/advancedSearch','UserId','findOne','sendStatus','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','Users','u.id','having','Contact.firstName','attachments','group','$lte','`\x20=\x200','QueryTypes','isArray','Account.mandatoryDisposition','conditions','o.fullname','enableEmailPreview','files','Messages','sort','trimStart','toString','\x20IS\x20NULL','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','i.disposition','bcc','parseSearch','$substring','fullname','journey','User','limit','value','keyBy','Attachment','i.ContactId','c.mobile','`unreadMessages`\x20=\x200','tools_tags','attributes','Tag','removeTags','error','like','o.internal','c.email\x20LIKE\x20?','keys','user_has_mail_interactions','users','update','color','getMessages','offset','fields','MATCH\x20(me.plainBody,\x20me.subject)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','isEmpty','end','concat','rawAttributes','unlinkSync','join','err','field','transcript-%d-%s.zip','query','eml-format','lastMsgText','lastMsgBody','nolimit','key','i.UserId','groupBy','intersection','includeAll','each','MailAccountId','start','root','path','gte','getMailAccounts','getFullTextValue','name','Bcc','i.id\x20LIKE\x20?','unix','i.createdAt','rimraf','MailInteraction','catch','c.email','MailInteractionId','c.lastName','c.fax','ids','unreadMessages','`\x20>\x200','moment','o.id\x20=\x20i.UserId','body'];(function(_0x1079e5,_0x5d1436){const _0xc8f3e3=function(_0x21ce5f){while(--_0x21ce5f){_0x1079e5['push'](_0x1079e5['shift']());}};_0xc8f3e3(++_0x5d1436);}(a406_0x5d14,0x12b));const a406_0xc8f3=function(_0x1079e5,_0x5d1436){_0x1079e5=_0x1079e5-0x0;let _0xc8f3e3=a406_0x5d14[_0x1079e5];return _0xc8f3e3;};const _0x3e92ef=a406_0xc8f3;'use strict';const emlformat=require(_0x3e92ef('0x72')),rimraf=require(_0x3e92ef('0x88')),zipdir=require(_0x3e92ef('0xc8')),moment=require(_0x3e92ef('0x92')),util=require('util'),path=require(_0x3e92ef('0x7f')),fs=require('fs'),_=require('lodash'),squel=require('squel'),htmlToText=require(_0x3e92ef('0x9e')),{getSocket}=require(_0x3e92ef('0x3')),socket=getSocket(),qs=require('../../components/parsers/qs'),as=require(_0x3e92ef('0x2f')),logger=require(_0x3e92ef('0x28'))(_0x3e92ef('0x10')),config=require(_0x3e92ef('0xbc')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');require(_0x3e92ef('0xbb'))[_0x3e92ef('0xcc')](socket);function respondWithStatusCode(_0x21ce5f,_0x13db01){return _0x13db01=_0x13db01||0xcc,function(_0x2a7b85){const _0x5090de=a406_0xc8f3;if(_0x2a7b85)return _0x21ce5f[_0x5090de('0x32')](_0x13db01);return _0x21ce5f[_0x5090de('0xd7')](_0x13db01)[_0x5090de('0x69')]();};}function respondWithResult(_0x390137,_0x3f6383){return _0x3f6383=_0x3f6383||0xc8,function(_0x2120c4){const _0x749256=a406_0xc8f3;if(_0x2120c4)return _0x390137[_0x749256('0xd7')](_0x3f6383)[_0x749256('0x19')](_0x2120c4);};}function respondWithFilteredResult(_0x266875,_0x1cb27f){return function(_0x3b48f0){const _0x560118=a406_0xc8f3;if(_0x3b48f0){const _0xcc60c6=_0x3b48f0[_0x560118('0x97')],_0x1aa245=_0x1cb27f[_0x560118('0x65')];let _0x498570=_0x1cb27f[_0x560118('0x65')]+_0x1cb27f[_0x560118('0x50')],_0x46476e;return _0x498570>=_0xcc60c6?(_0x498570=_0xcc60c6,_0x46476e=0xc8):_0x46476e=0xce,_0x266875['status'](_0x46476e),_0x266875[_0x560118('0xb1')](_0x560118('0x29'),_0x1aa245+'-'+_0x498570+'/'+_0xcc60c6)[_0x560118('0x19')](_0x3b48f0);}return null;};}function saveUpdates(_0x1f2bce){return function(_0xfb83cf){const _0x1a82d5=a406_0xc8f3;if(_0xfb83cf)return _0xfb83cf[_0x1a82d5('0x62')](_0x1f2bce)[_0x1a82d5('0x18')](function(_0x26b474){return _0x26b474;});return null;};}function removeEntity(_0xa28fd1){return function(_0x4193de){const _0x3ad187=a406_0xc8f3;if(_0x4193de)return _0x4193de['destroy']()[_0x3ad187('0x18')](function(){const _0x2930a0=_0x3ad187;_0xa28fd1[_0x2930a0('0xd7')](0xcc)[_0x2930a0('0x69')]();});};}function handleEntityNotFound(_0x3a304c){return function(_0x4ccd9f){const _0x426f8d=a406_0xc8f3;return!_0x4ccd9f&&_0x3a304c[_0x426f8d('0x32')](0x194),_0x4ccd9f;};}function handleError(_0x395448,_0x585d21){return _0x585d21=_0x585d21||0x1f4,function(_0x247d35){const _0x6352e=a406_0xc8f3;logger[_0x6352e('0x5b')](_0x247d35[_0x6352e('0xa8')]),_0x247d35[_0x6352e('0x83')]&&delete _0x247d35[_0x6352e('0x83')],_0x395448[_0x6352e('0xd7')](_0x585d21)[_0x6352e('0x20')](_0x247d35);};}function getInteractionUsers(_0xa3626,_0x21bb9b){return new Promise(function(_0x20eb24,_0xaf4371){const _0x11a56e=a406_0xc8f3;try{_0x21bb9b[_0xa3626['id']]&&(_0xa3626[_0x11a56e('0x34')]=_[_0x11a56e('0xdc')](_0x21bb9b[_0xa3626['id']],function(_0x57b2b7){const _0x170b57=_0x11a56e;return{'id':_0x57b2b7['id'],'fullname':_0x57b2b7[_0x170b57('0x4d')]};}));}catch(_0x3914bf){_0xaf4371(_0x3914bf);}_0x20eb24(_0xa3626);});}function getInteractionTags(_0x34c6c5,_0x8c2a1c){return new Promise(function(_0x283ced,_0x369abb){const _0x467f73=a406_0xc8f3;try{_0x34c6c5[_0x467f73('0x27')]&&(_0x34c6c5[_0x467f73('0x1c')]=[],_0x34c6c5[_0x467f73('0x27')][_0x467f73('0x0')](',')[_0x467f73('0xa1')](function(_0x1891a1){const _0x41412c=_0x467f73;_0x34c6c5['Tags'][_0x41412c('0xa9')](_0x8c2a1c[_0x1891a1]);})),delete _0x34c6c5[_0x467f73('0x27')];}catch(_0x3eb4ca){_0x369abb(_0x3eb4ca);}_0x283ced(_0x34c6c5);});}function getLastMessageText(_0x7ea19e){return new Promise(function(_0x2c7e05,_0x3a47b0){const _0x45613b=a406_0xc8f3;return db['MailInteraction']['findOne']({'where':{'id':_0x7ea19e['id']},'attributes':[_0x45613b('0x74'),'lastMsgText'],'raw':!![]})[_0x45613b('0x18')](function(_0xa5d9a5){const _0x534bd3=_0x45613b;!_0xa5d9a5[_0x534bd3('0x73')]?_0x7ea19e[_0x534bd3('0x73')]=_[_0x534bd3('0x45')](htmlToText[_0x534bd3('0xbf')](_0xa5d9a5[_0x534bd3('0x74')],{'preserveNewlines':!![],'singleNewLineParagraphs':!![],'uppercaseHeadings':![],'noLinkBrackets':!![],'ignoreImage':!![]})):_0x7ea19e['lastMsgText']=_0xa5d9a5[_0x534bd3('0x73')],_0x2c7e05(_0x7ea19e);})[_0x45613b('0x8a')](function(_0x490341){_0x3a47b0(_0x490341);});});}function updateMailInteraction(_0x4497f8,_0x5976b2,_0xd35f3c,_0x218d6b){return new Promise(function(_0x18b9ef,_0x1928d2){const _0x30ef56=a406_0xc8f3;return getInteractionUsers(_0x4497f8,_0xd35f3c)[_0x30ef56('0x18')](function(_0x1c1b20){return getInteractionTags(_0x1c1b20,_0x5976b2);})[_0x30ef56('0x18')](function(_0x330e27){_0x218d6b?_0x18b9ef(getLastMessageText(_0x330e27)):_0x18b9ef(_0x330e27);})['catch'](function(_0x574897){_0x1928d2(_0x574897);});});}exports['index']=function(_0x5b0268,_0x10da24){const _0x2d7d65=_0x3e92ef,_0x24173c={},_0x36656b={},_0x601870={'count':0x0,'rows':[]},_0x3a9b8a=_[_0x2d7d65('0xdc')](db[_0x2d7d65('0x89')][_0x2d7d65('0x6b')],function(_0x1499d7){const _0x21bd59=_0x2d7d65;return{'name':_0x1499d7[_0x21bd59('0x2')],'type':_0x1499d7['type'][_0x21bd59('0x76')]};});_0x36656b[_0x2d7d65('0xc9')]=_[_0x2d7d65('0xdc')](_0x3a9b8a,'name'),_0x36656b[_0x2d7d65('0x71')]=_['keys'](_0x5b0268[_0x2d7d65('0x71')]),_0x36656b[_0x2d7d65('0xe')]=_[_0x2d7d65('0x79')](_0x36656b[_0x2d7d65('0xc9')],_0x36656b['query']),_0x24173c['attributes']=_[_0x2d7d65('0x79')](_0x36656b[_0x2d7d65('0xc9')],qs[_0x2d7d65('0x66')](_0x5b0268['query'][_0x2d7d65('0x66')])),_0x24173c[_0x2d7d65('0x58')]=_0x24173c[_0x2d7d65('0x58')][_0x2d7d65('0xb')]?_0x24173c[_0x2d7d65('0x58')]:_0x36656b[_0x2d7d65('0xc9')];typeof _0x5b0268[_0x2d7d65('0x71')][_0x2d7d65('0x75')]==='undefined'&&(_0x24173c[_0x2d7d65('0x50')]=qs[_0x2d7d65('0x50')](_0x5b0268[_0x2d7d65('0x71')]['limit']),_0x24173c[_0x2d7d65('0x65')]=qs[_0x2d7d65('0x65')](_0x5b0268[_0x2d7d65('0x71')][_0x2d7d65('0x65')]));_0x24173c['order']=qs[_0x2d7d65('0x44')](_0x5b0268[_0x2d7d65('0x71')][_0x2d7d65('0x44')]),_0x24173c[_0x2d7d65('0xc6')]=qs['filters'](_[_0x2d7d65('0x7')](_0x5b0268['query'],_0x36656b[_0x2d7d65('0xe')]),_0x3a9b8a);let _0x576440=[];const _0x386816=squel[_0x2d7d65('0x9b')]()[_0x2d7d65('0x6f')]('id')['field'](_0x2d7d65('0x83'))[_0x2d7d65('0x6f')]('color')[_0x2d7d65('0x1')](_0x2d7d65('0x57')),_0x38d009=squel[_0x2d7d65('0x9b')]()[_0x2d7d65('0x6f')](_0x2d7d65('0x35'))[_0x2d7d65('0x6f')](_0x2d7d65('0xb8'))[_0x2d7d65('0x6f')]('ui.MailInteractionId')[_0x2d7d65('0x1')](_0x2d7d65('0x60'),'ui')[_0x2d7d65('0x2b')](_0x2d7d65('0x61'),'u',_0x2d7d65('0xc0')),_0x4d0d11=squel['select']()[_0x2d7d65('0x1')]('mail_interactions','i')[_0x2d7d65('0x2b')]('cm_contacts','c',_0x2d7d65('0x2a'))[_0x2d7d65('0x2b')](_0x2d7d65('0x61'),'o',_0x2d7d65('0x93'))[_0x2d7d65('0x2b')](_0x2d7d65('0xaa'),'a',_0x2d7d65('0x96'))['left_join']('mail_messages','me','me.MailInteractionId\x20=\x20i.id')[_0x2d7d65('0x2b')]('mail_interaction_has_tags','it',_0x2d7d65('0x15'))[_0x2d7d65('0x2b')](_0x2d7d65('0x57'),'t',_0x2d7d65('0xba')),_0x16fd19=squel['expr']();let _0x4ac7d9=[];const _0x2749e0=squel[_0x2d7d65('0x2c')]();let _0x1bb969;if(_0x5b0268['query']['search']){_0x1bb969=as[_0x2d7d65('0x4b')](_0x5b0268[_0x2d7d65('0x71')][_0x2d7d65('0xc4')]);const _0x2dd67e=_0x1bb969[_0x2d7d65('0x1b')];for(let _0x4b6ffd=0x0;_0x4b6ffd<_0x1bb969[_0x2d7d65('0x3f')]['length'];_0x4b6ffd++){const _0x470f2d=_0x1bb969[_0x2d7d65('0x3f')][_0x4b6ffd],_0xee740f='i';let _0x4f628b,_0x470916=_[_0x2d7d65('0xc5')](_0x3a9b8a,[_0x2d7d65('0x83'),_0x470f2d['field']]);if(!_0x470916)switch(_0x470f2d[_0x2d7d65('0x6f')]){case _0x2d7d65('0x90'):_0x470f2d[_0x2d7d65('0x51')]==0x1?_0x4d0d11[_0x2d7d65('0x36')]('`'+_0x470f2d['field']+_0x2d7d65('0x3b')):_0x4d0d11[_0x2d7d65('0x36')]('`'+_0x470f2d[_0x2d7d65('0x6f')]+_0x2d7d65('0x91'));break;case _0x2d7d65('0xb9'):if(_0x470f2d[_0x2d7d65('0xb7')]===_0x2d7d65('0x4c')){if(_0x470f2d[_0x2d7d65('0x51')][_0x2d7d65('0x0')]('\x20')[_0x2d7d65('0xb')]>0x1)_0x16fd19[_0x2dd67e](_0x2d7d65('0x9a'),qs[_0x2d7d65('0x82')](_0x470f2d[_0x2d7d65('0x51')]),null);else{const _0x3987fe='%'+_0x470f2d['value']+'%';_0x16fd19[_0x2dd67e](_0x2d7d65('0x48'),_0x3987fe,_0x3987fe,_0x3987fe);}}else _0x470916=_[_0x2d7d65('0xc5')](_0x3a9b8a,[_0x2d7d65('0x83'),_0x2d7d65('0x12')]),_0x470f2d[_0x2d7d65('0x6f')]='ContactId',_0x4f628b=as[_0x2d7d65('0xae')](_0xee740f,_0x470916['type'],_0x470f2d),_0x16fd19[_0x2dd67e](_0x4f628b['text'],_0x4f628b['value'][_0x2d7d65('0x7d')],_0x4f628b[_0x2d7d65('0x51')][_0x2d7d65('0x69')]);break;case _0x2d7d65('0x59'):{const _0x3d9553=_0x470f2d['value']['split'](',')[_0x2d7d65('0xdc')](function(_0xa2fc3a){return Number(_0xa2fc3a);});_0x3d9553[_0x2d7d65('0xa1')](function(_0x484617){const _0x4ff0e3=_0x2d7d65;_0x2749e0['or'](_0x4ff0e3('0xc2'),'%,'+_0x484617+',%');}),_0x4ac7d9=_[_0x2d7d65('0x23')](_0x4ac7d9,_0x3d9553);}break;case _0x2d7d65('0x4f'):_0x470f2d[_0x2d7d65('0xb7')]===_0x2d7d65('0x4c')?_0x16fd19[_0x2dd67e]('CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','%'+_0x470f2d[_0x2d7d65('0x51')]+'%',null):(_0x470916=_[_0x2d7d65('0xc5')](_0x3a9b8a,[_0x2d7d65('0x83'),'UserId']),_0x470f2d[_0x2d7d65('0x6f')]=_0x2d7d65('0x30'),_0x4f628b=as[_0x2d7d65('0xae')](_0xee740f,_0x470916[_0x2d7d65('0xdb')],_0x470f2d),_0x16fd19[_0x2dd67e](_0x4f628b[_0x2d7d65('0x22')],_0x4f628b[_0x2d7d65('0x51')][_0x2d7d65('0x7d')],_0x4f628b[_0x2d7d65('0x51')][_0x2d7d65('0x69')]));break;case'plainBody':_0x4f628b=as[_0x2d7d65('0xae')]('me',null,_0x470f2d),_0x16fd19[_0x2dd67e](_0x4f628b[_0x2d7d65('0x22')],_0x4f628b[_0x2d7d65('0x51')][_0x2d7d65('0x7d')],_0x4f628b[_0x2d7d65('0x51')][_0x2d7d65('0x69')]);break;}else _0x4f628b=as[_0x2d7d65('0xae')](_0xee740f,_0x470916[_0x2d7d65('0xdb')],_0x470f2d),_0x16fd19[_0x2dd67e](_0x4f628b[_0x2d7d65('0x22')],_0x4f628b[_0x2d7d65('0x51')][_0x2d7d65('0x7d')],_0x4f628b[_0x2d7d65('0x51')][_0x2d7d65('0x69')]);}}else{const _0x1049b3=_(_0x5b0268[_0x2d7d65('0x71')])[_0x2d7d65('0x5f')]()['map'](function(_0x30de9d){const _0x40c75a=_0x2d7d65;return _[_0x40c75a('0xdf')](_0x3a9b8a,[_0x40c75a('0x83'),_0x30de9d])?_0x30de9d:undefined;})[_0x2d7d65('0xd3')]()[_0x2d7d65('0x51')]();!_[_0x2d7d65('0x68')](_0x1049b3)&&_0x1049b3[_0x2d7d65('0xa1')](function(_0x1b1b1c){const _0x4bc77b=_0x2d7d65;if(_0x1b1b1c===_0x4bc77b('0x7c'))_0x4d0d11[_0x4bc77b('0xc6')]('i.MailAccountId\x20IN\x20?',[][_0x4bc77b('0x6a')](_0x5b0268[_0x4bc77b('0x71')][_0x1b1b1c]));else{if(_0x1b1b1c===_0x4bc77b('0xd')){const _0x2c94e3=JSON['parse'](_0x5b0268[_0x4bc77b('0x71')][_0x1b1b1c])[_0x4bc77b('0x98')],_0x246c18=JSON[_0x4bc77b('0xd4')](_0x5b0268[_0x4bc77b('0x71')][_0x1b1b1c])[_0x4bc77b('0x3a')];_0x4d0d11['where'](_0x4bc77b('0xbd'),_0x2c94e3,_0x246c18);}else _0x5b0268[_0x4bc77b('0x71')][_0x1b1b1c]==='null'?_0x4d0d11[_0x4bc77b('0xc6')]('i.'+_0x1b1b1c+_0x4bc77b('0x47')):_0x4d0d11[_0x4bc77b('0xc6')]('i.'+_0x1b1b1c+_0x4bc77b('0xdd'),_0x5b0268['query'][_0x1b1b1c]);}});_0x5b0268['query'][_0x2d7d65('0xd6')]&&(_0x5b0268[_0x2d7d65('0x71')][_0x2d7d65('0xd6')]==0x1?_0x4d0d11[_0x2d7d65('0x36')](_0x2d7d65('0x56')):_0x4d0d11[_0x2d7d65('0x36')](_0x2d7d65('0xbe')));_0x5b0268[_0x2d7d65('0x71')][_0x2d7d65('0xa7')]&&(_0x4ac7d9=_[_0x2d7d65('0x3d')](_0x5b0268[_0x2d7d65('0x71')][_0x2d7d65('0xa7')])?_0x5b0268[_0x2d7d65('0x71')]['tag']:new Array(_0x5b0268[_0x2d7d65('0x71')][_0x2d7d65('0xa7')]),_0x4ac7d9[_0x2d7d65('0xa1')](function(_0x2e2a64){const _0x9238d3=_0x2d7d65;_0x2749e0['or'](_0x9238d3('0xc2'),'%,'+_0x2e2a64+',%');}));if(_0x5b0268[_0x2d7d65('0x71')]['filter']){const _0x483b5c=_0x5b0268[_0x2d7d65('0x71')]['filter'][_0x2d7d65('0x9f')]('\x5c','\x5c\x5c')['replace']('\x27\x27','\x27\x27\x27\x27');if(qs[_0x2d7d65('0xaf')](_0x483b5c))_0x16fd19['or'](_0x2d7d65('0x85'),_0x483b5c+'%');else qs['isEmail'](_0x483b5c)?_0x16fd19['or'](_0x2d7d65('0x5e'),_0x483b5c+'%'):_0x16fd19['or']('MATCH\x20(i.to,\x20i.subject)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)',qs[_0x2d7d65('0x82')](_0x483b5c))['or'](_0x2d7d65('0x67'),qs[_0x2d7d65('0x82')](_0x483b5c));}}_0x4d0d11['where'](_0x16fd19),_0x4d0d11[_0x2d7d65('0x39')](_0x2d7d65('0x2e'));let _0x496791={'type':db['Sequelize'][_0x2d7d65('0x3c')][_0x2d7d65('0x25')],'raw':!![]};const _0x360797=_0x4d0d11[_0x2d7d65('0xa')]();_0x360797[_0x2d7d65('0x6f')](_0x2d7d65('0x2e')),_0x360797['field'](_0x2d7d65('0x33'),_0x2d7d65('0x90')),_0x24173c[_0x2d7d65('0xa4')]&&_0x24173c['order'][_0x2d7d65('0xa1')](function(_0x41ba82){const _0x351f0c=_0x2d7d65;_0x4d0d11[_0x351f0c('0xa4')]('i.'+_0x41ba82[0x0],_0x41ba82[0x1]===_0x351f0c('0xcd')?![]:!![]);}),!_[_0x2d7d65('0x68')](_0x4ac7d9)&&(_0x4d0d11[_0x2d7d65('0x36')](_0x2749e0),_0x360797[_0x2d7d65('0xc6')]('t.id\x20IN\x20?',_0x4ac7d9)),Promise[_0x2d7d65('0xa5')]()[_0x2d7d65('0x18')](function(){const _0x5b53f7=_0x2d7d65;if(!_0x1bb969){if(_0x5b0268['query'][_0x5b53f7('0x7c')]||_0x5b0268['query'][_0x5b53f7('0x4e')])return;_0x360797[_0x5b53f7('0xc6')](_0x5b53f7('0x16')),_0x4d0d11[_0x5b53f7('0xc6')](_0x5b53f7('0x16'));return;}return _0x5b0268['user'][_0x5b53f7('0x81')]({'attributes':['id'],'raw':!![]})[_0x5b53f7('0x18')](function(_0x5b7a80){const _0x10e2f9=_0x5b53f7;_[_0x10e2f9('0x68')](_0x5b7a80)?(_0x360797['where'](_0x10e2f9('0xc')),_0x4d0d11['where'](_0x10e2f9('0xc'))):(_0x360797['where'](_0x10e2f9('0x2d'),_[_0x10e2f9('0xdc')](_0x5b7a80,'id')),_0x4d0d11['where'](_0x10e2f9('0x2d'),_[_0x10e2f9('0xdc')](_0x5b7a80,'id')));});})['then'](function(){const _0xeaf0bc=_0x2d7d65;db[_0xeaf0bc('0xde')][_0xeaf0bc('0x71')](_0x360797[_0xeaf0bc('0x46')](),_0x496791)[_0xeaf0bc('0x18')](function(_0x28e808){const _0x36a41a=_0xeaf0bc;_0x601870[_0x36a41a('0x97')]=_0x28e808[_0x36a41a('0xb')];if(_0x601870['count']===0x0)return[];return db[_0x36a41a('0xde')][_0x36a41a('0x71')](_0x386816[_0x36a41a('0x46')](),_0x496791)[_0x36a41a('0x18')](function(_0x2f518c){const _0x1ae10e=_0x36a41a;_0x576440=_[_0x1ae10e('0x52')](_0x2f518c,'id'),_0x496791=_[_0x1ae10e('0x4')](_0x496791,{'model':db['MailInteraction'],'mapToModel':!![],'raw':!![],'nest':!![]});_0x5b0268[_0x1ae10e('0x71')][_0x1ae10e('0x66')]?_0x24173c['attributes']['forEach'](function(_0x376134){const _0x3ca02c=_0x1ae10e;_0x4d0d11[_0x3ca02c('0x6f')]('i.'+_0x376134);}):(_0x4d0d11[_0x1ae10e('0x6f')]('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','unreadMessages'),_0x4d0d11[_0x1ae10e('0x6f')](_0x1ae10e('0xa3'),'Account.key'),_0x4d0d11['field']('a.mandatoryDisposition',_0x1ae10e('0x3e')),_0x4d0d11[_0x1ae10e('0x6f')](_0x1ae10e('0x2e')),_0x4d0d11['field'](_0x1ae10e('0x87')),_0x4d0d11[_0x1ae10e('0x6f')](_0x1ae10e('0xd5')),_0x4d0d11[_0x1ae10e('0x6f')](_0x1ae10e('0xc7')),_0x4d0d11[_0x1ae10e('0x6f')]('i.closedAt'),_0x4d0d11[_0x1ae10e('0x6f')]('i.attach'),_0x4d0d11[_0x1ae10e('0x6f')]('i.lastMsgAt'),_0x4d0d11['field'](_0x1ae10e('0x8')),_0x4d0d11[_0x1ae10e('0x6f')](_0x1ae10e('0xcb')),_0x4d0d11[_0x1ae10e('0x6f')](_0x1ae10e('0x49')),_0x4d0d11[_0x1ae10e('0x6f')]('i.secondDisposition'),_0x4d0d11[_0x1ae10e('0x6f')]('i.thirdDisposition'),_0x4d0d11[_0x1ae10e('0x6f')](_0x1ae10e('0xa0')),_0x4d0d11['field'](_0x1ae10e('0xb4')),_0x4d0d11[_0x1ae10e('0x6f')](_0x1ae10e('0x54')),_0x4d0d11[_0x1ae10e('0x6f')](_0x1ae10e('0x9c')),_0x4d0d11[_0x1ae10e('0x6f')](_0x1ae10e('0x77')),_0x4d0d11[_0x1ae10e('0x6f')]('c.firstName',_0x1ae10e('0x37')),_0x4d0d11['field'](_0x1ae10e('0x8d'),_0x1ae10e('0xc1')),_0x4d0d11[_0x1ae10e('0x6f')](_0x1ae10e('0x8b'),'Contact.email'),_0x4d0d11[_0x1ae10e('0x6f')]('c.phone',_0x1ae10e('0x9')),_0x4d0d11[_0x1ae10e('0x6f')](_0x1ae10e('0x55'),'Contact.mobile'),_0x4d0d11[_0x1ae10e('0x6f')](_0x1ae10e('0x8e'),_0x1ae10e('0xcf')),_0x4d0d11[_0x1ae10e('0x6f')](_0x1ae10e('0x40'),_0x1ae10e('0x11')),_0x4d0d11[_0x1ae10e('0x6f')](_0x1ae10e('0x5d'),'Owner.internal'),_0x4d0d11[_0x1ae10e('0x6f')](_0x1ae10e('0xda'),'TagIds'));if(_0x24173c['limit'])_0x4d0d11['limit'](_0x24173c[_0x1ae10e('0x50')]);if(_0x24173c[_0x1ae10e('0x65')])_0x4d0d11[_0x1ae10e('0x65')](_0x24173c[_0x1ae10e('0x65')]);return db[_0x1ae10e('0xde')][_0x1ae10e('0x71')](_0x4d0d11[_0x1ae10e('0x46')](),_0x496791);})[_0x36a41a('0x18')](function(_0x3700d4){const _0x2f6a1b=_0x36a41a;return _0x38d009[_0x2f6a1b('0xc6')](_0x2f6a1b('0xb6'),_[_0x2f6a1b('0xdc')](_0x3700d4,'id')),db[_0x2f6a1b('0xde')][_0x2f6a1b('0x71')](_0x38d009['toString'](),_0x496791)[_0x2f6a1b('0x18')](function(_0x35b659){const _0xd3eb48=_0x2f6a1b,_0x1a1916=_[_0xd3eb48('0x78')](_0x35b659,_0xd3eb48('0x8c')),_0x5139b7=[];return db[_0xd3eb48('0xd9')][_0xd3eb48('0x31')]({'attributes':[_0xd3eb48('0x41')],'raw':!![]})[_0xd3eb48('0x18')](function(_0x55b79b){const _0x5dadbd=_0xd3eb48,_0x3f60ca=_0x55b79b[_0x5dadbd('0x41')];return _0x3700d4[_0x5dadbd('0xa1')](function(_0x237436){const _0x52b7bd=_0x5dadbd;_0x5139b7[_0x52b7bd('0xa9')](updateMailInteraction(_0x237436,_0x576440,_0x1a1916,_0x3f60ca));}),Promise[_0x5dadbd('0xc3')](_0x5139b7);});});});})[_0xeaf0bc('0x18')](function(_0x5a0a48){const _0x3fef04=_0xeaf0bc;return _0x601870[_0x3fef04('0x24')]=_0x5a0a48,_0x601870;})[_0xeaf0bc('0x18')](respondWithFilteredResult(_0x10da24,_0x24173c));})[_0x2d7d65('0x8a')](handleError(_0x10da24,null));},exports[_0x3e92ef('0xce')]=function(_0x4d0c3c,_0x331c33){const _0x335367=_0x3e92ef;let _0x47d139={'raw':![],'where':{'id':_0x4d0c3c['params']['id']}};const _0x279853={};return _0x279853[_0x335367('0xc9')]=_[_0x335367('0x5f')](db[_0x335367('0x89')]['rawAttributes']),_0x279853[_0x335367('0x71')]=_[_0x335367('0x5f')](_0x4d0c3c[_0x335367('0x71')]),_0x279853['filters']=_[_0x335367('0x79')](_0x279853[_0x335367('0xc9')],_0x279853[_0x335367('0x71')]),_0x47d139[_0x335367('0x58')]=_['intersection'](_0x279853[_0x335367('0xc9')],qs[_0x335367('0x66')](_0x4d0c3c[_0x335367('0x71')][_0x335367('0x66')])),_0x47d139[_0x335367('0x58')]=_0x47d139[_0x335367('0x58')][_0x335367('0xb')]?_0x47d139['attributes']:_0x279853[_0x335367('0xc9')],_0x4d0c3c[_0x335367('0x71')][_0x335367('0x7a')]&&(_0x47d139[_0x335367('0xf')]=[{'all':!![]}]),_0x47d139=_[_0x335367('0x4')]({},_0x47d139,_0x4d0c3c[_0x335367('0xac')]),db['MailInteraction']['findOne'](_0x47d139)[_0x335367('0x18')](handleEntityNotFound(_0x331c33,null))[_0x335367('0x18')](respondWithResult(_0x331c33,null))['catch'](handleError(_0x331c33,null));},exports['create']=function(_0x4b13be,_0x12e78e){const _0x14ca24=_0x3e92ef;return db['MailInteraction'][_0x14ca24('0xca')](_0x4b13be[_0x14ca24('0x94')],{})[_0x14ca24('0x18')](respondWithResult(_0x12e78e,0xc9))[_0x14ca24('0x8a')](handleError(_0x12e78e,null));},exports[_0x3e92ef('0x62')]=function(_0x25fb3a,_0x346ead){const _0x2e38d6=_0x3e92ef;return _0x25fb3a[_0x2e38d6('0x94')]['id']&&delete _0x25fb3a[_0x2e38d6('0x94')]['id'],db['MailInteraction'][_0x2e38d6('0x31')]({'where':{'id':_0x25fb3a[_0x2e38d6('0x9d')]['id']}})[_0x2e38d6('0x18')](handleEntityNotFound(_0x346ead,null))[_0x2e38d6('0x18')](saveUpdates(_0x25fb3a['body'],null))['then'](respondWithResult(_0x346ead,null))[_0x2e38d6('0x8a')](handleError(_0x346ead,null));},exports[_0x3e92ef('0xd8')]=function(_0x3e2c80,_0x46ffe9){const _0x71e73d=_0x3e92ef;return db['MailInteraction']['findOne']({'where':{'id':_0x3e2c80[_0x71e73d('0x9d')]['id']}})['then'](handleEntityNotFound(_0x46ffe9,null))['then'](removeEntity(_0x46ffe9,null))[_0x71e73d('0x8a')](handleError(_0x46ffe9,null));},exports[_0x3e92ef('0x26')]=function(_0x310b58,_0x5a621a){const _0x213ed1=_0x3e92ef;return db[_0x213ed1('0x89')][_0x213ed1('0x26')]()[_0x213ed1('0x18')](respondWithResult(_0x5a621a,null))[_0x213ed1('0x8a')](handleError(_0x5a621a,null));},exports[_0x3e92ef('0x1a')]=function(_0xba98af,_0x9f6a79){const _0x3a4737=_0x3e92ef;return db[_0x3a4737('0xa6')][_0x3a4737('0x31')]({'where':{'id':_0xba98af[_0x3a4737('0x9d')]['id']}})[_0x3a4737('0x18')](function(_0x1f2165){const _0x3e00e2=_0x3a4737;if(_0x1f2165)return _0x1f2165['addMessage'](_0xba98af[_0x3e00e2('0x94')]['ids'],{'through':_[_0x3e00e2('0xb5')](_0xba98af[_0x3e00e2('0x94')],['ids','id'])});})[_0x3a4737('0x18')](respondWithResult(_0x9f6a79,null))['catch'](handleError(_0x9f6a79,null));},exports[_0x3e92ef('0x64')]=function(_0x51d28a,_0x5c632f){const _0x119ddb=_0x3e92ef;let _0x3d2da8={'raw':![],'where':{}};const _0x1b04f9={},_0x3df04={'count':0x0,'rows':[]};return db[_0x119ddb('0x89')][_0x119ddb('0x31')]({'where':{'id':_0x51d28a['params']['id']}})['then'](handleEntityNotFound(_0x5c632f,null))['then'](function(_0x32fc94){const _0x2ea095=_0x119ddb;if(_0x32fc94){_0x1b04f9[_0x2ea095('0xc9')]=_[_0x2ea095('0x5f')](db[_0x2ea095('0xa6')][_0x2ea095('0x6b')]),_0x1b04f9[_0x2ea095('0x71')]=_['keys'](_0x51d28a[_0x2ea095('0x71')]),_0x1b04f9[_0x2ea095('0xe')]=_[_0x2ea095('0x79')](_0x1b04f9[_0x2ea095('0xc9')],_0x1b04f9[_0x2ea095('0x71')]),_0x3d2da8[_0x2ea095('0x58')]=_['intersection'](_0x1b04f9[_0x2ea095('0xc9')],qs[_0x2ea095('0x66')](_0x51d28a[_0x2ea095('0x71')][_0x2ea095('0x66')])),_0x3d2da8[_0x2ea095('0x58')]=_0x3d2da8[_0x2ea095('0x58')][_0x2ea095('0xb')]?_0x3d2da8[_0x2ea095('0x58')]:_0x1b04f9[_0x2ea095('0xc9')];typeof _0x51d28a['query'][_0x2ea095('0x75')]===_0x2ea095('0x5')&&(_0x3d2da8['limit']=qs[_0x2ea095('0x50')](_0x51d28a[_0x2ea095('0x71')][_0x2ea095('0x50')]),_0x3d2da8[_0x2ea095('0x65')]=qs[_0x2ea095('0x65')](_0x51d28a[_0x2ea095('0x71')]['offset']));_0x3d2da8[_0x2ea095('0xa4')]=qs['sort'](_0x51d28a[_0x2ea095('0x71')][_0x2ea095('0x44')]),_0x3d2da8[_0x2ea095('0xc6')]=qs[_0x2ea095('0xe')](_['pick'](_0x51d28a[_0x2ea095('0x71')],_0x1b04f9[_0x2ea095('0xe')])),_0x3d2da8[_0x2ea095('0xc6')][_0x2ea095('0x8c')]=_0x32fc94['id'];_0x51d28a[_0x2ea095('0x71')][_0x2ea095('0x17')]&&(_0x3d2da8[_0x2ea095('0xc6')]=_['merge'](_0x3d2da8['where'],{[Op['or']]:_[_0x2ea095('0xdc')](_0x3d2da8[_0x2ea095('0x58')],function(_0x3a0447){const _0xac0024=_0x2ea095,_0x4b8eee={};return _0x4b8eee[_0x3a0447]={[Op[_0xac0024('0x5c')]]:'%'+_0x51d28a[_0xac0024('0x71')][_0xac0024('0x17')]+'%'},_0x4b8eee;})}));if(_0x51d28a[_0x2ea095('0x71')][_0x2ea095('0x98')]){const _0x37fd68=_0x51d28a[_0x2ea095('0x71')][_0x2ea095('0x98')][_0x2ea095('0x0')](','),_0x4267e5={};_0x4267e5[_0x37fd68[0x0]]={[Op[_0x2ea095('0x80')]]:moment(_0x37fd68[0x1])['format']('YYYY-MM-DD\x20HH:mm:ss')},_0x3d2da8['where']=_[_0x2ea095('0x4')](_0x3d2da8[_0x2ea095('0xc6')],_0x4267e5);}return _0x3d2da8=_['merge']({},_0x3d2da8,_0x51d28a[_0x2ea095('0xac')]),db[_0x2ea095('0xa6')][_0x2ea095('0x97')]({'where':_0x3d2da8['where']})['then'](function(_0x5a25d0){const _0x125e5d=_0x2ea095;return _0x3df04['count']=_0x5a25d0,_0x51d28a[_0x125e5d('0x71')][_0x125e5d('0x7a')]&&(_0x3d2da8[_0x125e5d('0xf')]=[{'all':!![]}]),db[_0x125e5d('0xa6')][_0x125e5d('0xad')](_0x3d2da8);})[_0x2ea095('0x18')](function(_0x558e5b){const _0x3c1083=_0x2ea095;return _0x3df04[_0x3c1083('0x24')]=_0x558e5b,_0x3df04;});}})[_0x119ddb('0x18')](respondWithFilteredResult(_0x5c632f,_0x3d2da8))[_0x119ddb('0x8a')](handleError(_0x5c632f,null));},exports[_0x3e92ef('0x99')]=function(_0x5a6ce5,_0x455c92){const _0xb7f794=_0x3e92ef;return db[_0xb7f794('0x89')][_0xb7f794('0x31')]({'where':{'id':_0x5a6ce5[_0xb7f794('0x9d')]['id']}})[_0xb7f794('0x18')](function(_0x429632){const _0x3129c0=_0xb7f794;if(_0x429632)return _0x429632[_0x3129c0('0xa2')](_0x5a6ce5[_0x3129c0('0x94')][_0x3129c0('0x8f')],{'through':_[_0x3129c0('0xb5')](_0x5a6ce5[_0x3129c0('0x94')],[_0x3129c0('0x8f'),'id'])})[_0x3129c0('0x18')](function(){const _0x16d434=_0x3129c0;return db[_0x16d434('0x59')][_0x16d434('0xad')]({'attributes':['id',_0x16d434('0x83'),_0x16d434('0x63')],'where':{'id':_0x5a6ce5['body'][_0x16d434('0x8f')]}});})['then'](function(_0x4f57f3){const _0x43fc68=_0x3129c0;return socket[_0x43fc68('0x1d')](_0x43fc68('0x1e'),{'id':Number(_0x5a6ce5['params']['id']),'tags':_0x4f57f3||[]}),{'id':Number(_0x5a6ce5[_0x43fc68('0x9d')]['id']),'tags':_0x4f57f3||[]};});})[_0xb7f794('0x18')](respondWithResult(_0x455c92,null))[_0xb7f794('0x8a')](handleError(_0x455c92,null));},exports['removeTags']=function(_0x220b0f,_0x3b5c12){const _0x4b4e25=_0x3e92ef;return db[_0x4b4e25('0x89')][_0x4b4e25('0x31')]({'where':{'id':_0x220b0f['params']['id']}})[_0x4b4e25('0x18')](handleEntityNotFound(_0x3b5c12,null))[_0x4b4e25('0x18')](function(_0x29fb90){const _0x1262ca=_0x4b4e25;if(_0x29fb90)return _0x29fb90[_0x1262ca('0x5a')](_0x220b0f[_0x1262ca('0x71')][_0x1262ca('0x8f')]);})['then'](respondWithStatusCode(_0x3b5c12,null))['catch'](handleError(_0x3b5c12,null));},exports[_0x3e92ef('0xd1')]=function(_0x520298,_0x232226){const _0x5f473d=_0x3e92ef,_0x45554a=moment()[_0x5f473d('0x86')]()[_0x5f473d('0x46')](),_0x1cd640=path[_0x5f473d('0x6d')](config[_0x5f473d('0x7e')],_0x5f473d('0x1f'),_0x5f473d('0x42'),_0x5f473d('0x6')),_0x9d4d14=path[_0x5f473d('0x6d')](config[_0x5f473d('0x7e')],'server',_0x5f473d('0x42'),_0x5f473d('0x38')),_0x5954ef=path[_0x5f473d('0x6d')](_0x1cd640,_0x45554a),_0x409e5d=util[_0x5f473d('0x14')](_0x5f473d('0x70'),_0x520298[_0x5f473d('0x9d')]['id'],_0x45554a),_0x6fbedc=path[_0x5f473d('0x6d')](_0x1cd640,_0x409e5d),_0x4fd5a1=[];_0x520298[_0x5f473d('0x71')][_0x5f473d('0x38')]&&_0x4fd5a1[_0x5f473d('0xa9')]({'model':db[_0x5f473d('0x53')],'as':_0x5f473d('0xd2'),'raw':!![]});const _0x3326fb=[{'model':db['MailMessage'],'as':_0x5f473d('0x43'),'attributes':['id','body',_0x5f473d('0x1'),'to','cc','bcc',_0x5f473d('0xb3'),_0x5f473d('0xd')],'where':{'secret':![]},'order':qs['sort']('id'),'include':_0x4fd5a1}];return db[_0x5f473d('0x89')]['findOne']({'where':{'id':_0x520298[_0x5f473d('0x9d')]['id']},'include':_0x3326fb})['then'](handleEntityNotFound(_0x232226,null))[_0x5f473d('0x18')](function(_0x13b3ca){const _0x4bd8f5=_0x5f473d;if(_0x13b3ca&&_0x13b3ca[_0x4bd8f5('0x43')]){const _0x4904cd=_0x13b3ca['get']({'plain':!![]});return fs['mkdirSync'](_0x5954ef),Promise[_0x4bd8f5('0x7b')](_0x4904cd[_0x4bd8f5('0x43')],function(_0x171741,_0x5aa718){const _0x28cf86=_0x4bd8f5,_0x9e2f2f={'from':_0x171741[_0x28cf86('0x1')],'to':_0x171741['to'],'subject':_0x171741['subject'],'html':_0x171741['body'],'headers':{'Date':moment(_0x171741[_0x28cf86('0xd')])[_0x28cf86('0x14')](_0x28cf86('0x13'))},'attachments':[]};return _0x171741['cc']&&(_0x9e2f2f[_0x28cf86('0xd0')]['Cc']=_0x171741['cc']),_0x171741[_0x28cf86('0x4a')]&&(_0x9e2f2f[_0x28cf86('0xd0')][_0x28cf86('0x84')]=_0x171741[_0x28cf86('0x4a')]),new Promise(function(_0x220817,_0x252c7){const _0x15b0db=_0x28cf86;if(_0x171741[_0x15b0db('0xd2')])for(let _0x1c9073=0x0;_0x1c9073<_0x171741[_0x15b0db('0xd2')][_0x15b0db('0xb')];_0x1c9073++){const _0x575b67=_0x171741[_0x15b0db('0xd2')][_0x1c9073],_0x5b3ccc=path[_0x15b0db('0x6d')](_0x9d4d14,_0x575b67[_0x15b0db('0xab')]);fs['existsSync'](_0x5b3ccc)&&_0x9e2f2f[_0x15b0db('0x38')][_0x15b0db('0xa9')]({'name':_0x575b67[_0x15b0db('0x83')],'contentType':_0x575b67[_0x15b0db('0xdb')],'data':fs[_0x15b0db('0xb0')](_0x5b3ccc)});}emlformat['build'](_0x9e2f2f,function(_0x51df07,_0x36c8f1){const _0x14baa2=_0x15b0db;if(_0x51df07)return _0x252c7(_0x51df07);return fs[_0x14baa2('0xb2')](path['join'](_0x5954ef,util[_0x14baa2('0x14')](_0x14baa2('0x95'),_0x5aa718)),_0x36c8f1),_0x220817(_0x36c8f1);});});})[_0x4bd8f5('0x18')](function(){const _0x3d945b=_0x4bd8f5;return new Promise(function(_0x4435eb,_0x578078){zipdir(_0x5954ef,{'saveTo':_0x6fbedc},function(_0x636690,_0x8596b8){if(_0x636690)return _0x578078(_0x636690);return _0x4435eb(_0x8596b8);});})[_0x3d945b('0x18')](function(){return new Promise(function(_0x1b79c1,_0xf65b50){rimraf(_0x5954ef,function(_0x595717){if(_0x595717)_0xf65b50(_0x595717);return _0x1b79c1();});});})['then'](function(){const _0x4e7151=_0x3d945b;return _0x232226[_0x4e7151('0xd1')](_0x6fbedc,_0x409e5d,function(_0x37fe17){const _0xe6e75e=_0x4e7151;_0x37fe17?console[_0xe6e75e('0x21')](_0xe6e75e('0x6e'),_0x37fe17):fs[_0xe6e75e('0x6c')](_0x6fbedc);});});});}else return _0x232226[_0x4bd8f5('0x32')](0xc8);})[_0x5f473d('0x8a')](handleError(_0x232226,null));}; \ No newline at end of file +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 diff --git a/server/api/mailInteraction/mailInteraction.events.js b/server/api/mailInteraction/mailInteraction.events.js index 28cdae2..89b353c 100644 --- a/server/api/mailInteraction/mailInteraction.events.js +++ b/server/api/mailInteraction/mailInteraction.events.js @@ -1 +1 @@ -const a407_0x15d7=['unreadMessages','save','Users','events','setDataValue','addHook','emit','undefined','length','../../mysqldb','exports','MailInteraction','findAll','update','then','MailMessage'];(function(_0x15160a,_0x15d7d1){const _0x517d4e=function(_0xc38b91){while(--_0xc38b91){_0x15160a['push'](_0x15160a['shift']());}};_0x517d4e(++_0x15d7d1);}(a407_0x15d7,0x10c));const a407_0x517d=function(_0x15160a,_0x15d7d1){_0x15160a=_0x15160a-0x0;let _0x517d4e=a407_0x15d7[_0x15160a];return _0x517d4e;};const _0x2684f3=a407_0x517d;'use strict';const EventEmitter=require(_0x2684f3('0x7')),MailInteraction=require('../../mysqldb')['db'][_0x2684f3('0xf')],MailMessage=require(_0x2684f3('0xd'))['db'][_0x2684f3('0x3')],MailInteractionEvents=new EventEmitter();MailInteractionEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x2684f3('0x5'),'afterUpdate':_0x2684f3('0x1'),'afterDestroy':'remove'};function emitEvent(_0xc38b91){return function(_0x5832e7){const _0x5a58f4=a407_0x517d;_0x5832e7['getUsers']({'attributes':['id'],'raw':!![]})['then'](function(_0x3c3ee8){const _0x5c5a3e=a407_0x517d;return _0x5832e7[_0x5c5a3e('0x8')](_0x5c5a3e('0x6'),_0x3c3ee8['map'](function(_0xd4b161){return{'id':_0xd4b161['id']};})),MailMessage[_0x5c5a3e('0x0')]({'where':{'MailInteractionId':_0x5832e7['id'],'direction':'in','read':![]},'raw':!![]});})[_0x5a58f4('0x2')](function(_0x325a4e){const _0x7da185=_0x5a58f4;_0x5832e7[_0x7da185('0x8')](_0x7da185('0x4'),_0x325a4e[_0x7da185('0xc')]),MailInteractionEvents[_0x7da185('0xa')](_0xc38b91+':'+_0x5832e7['id'],_0x5832e7),MailInteractionEvents['emit'](_0xc38b91,_0x5832e7);})['catch'](()=>{});};}for(const e in events){if(typeof events[e]!==_0x2684f3('0xb')){const event=events[e];MailInteraction[_0x2684f3('0x9')](e,emitEvent(event));}}module[_0x2684f3('0xe')]=MailInteractionEvents; \ No newline at end of file +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 diff --git a/server/api/mailInteraction/mailInteraction.model.js b/server/api/mailInteraction/mailInteraction.model.js index a993aba..6c936c2 100644 --- a/server/api/mailInteraction/mailInteraction.model.js +++ b/server/api/mailInteraction/mailInteraction.model.js @@ -1 +1 @@ -const a408_0x3a78=['YYYY-MM-DD\x20HH:mm:ss','get','define','format','MailMessage','mail_interactions','moment','substatusAt','catch','utf8mb4','exports','subject','closed','changed','./mailInteraction.attributes','closedAt','substatus','models','MailInteraction'];(function(_0x16aefa,_0x3a78bb){const _0x4c431c=function(_0x2b316c){while(--_0x2b316c){_0x16aefa['push'](_0x16aefa['shift']());}};_0x4c431c(++_0x3a78bb);}(a408_0x3a78,0x189));const a408_0x4c43=function(_0x16aefa,_0x3a78bb){_0x16aefa=_0x16aefa-0x0;let _0x4c431c=a408_0x3a78[_0x16aefa];return _0x4c431c;};const _0x380f06=a408_0x4c43;'use strict';const moment=require(_0x380f06('0xc')),attributes=require(_0x380f06('0x1'));module[_0x380f06('0x10')]=function(_0x2b316c){const _0x13eefc=_0x380f06,_0x51d156=_0x2b316c[_0x13eefc('0x4')],_0x3712b3=_0x2b316c[_0x13eefc('0x8')](_0x13eefc('0x5'),attributes,{'tableName':_0x13eefc('0xb'),'paranoid':![],'indexes':[{'name':'fti_mail_interactions','fields':[_0x13eefc('0x11'),'to'],'type':'FULLTEXT'}],'timestamps':!![],'hooks':{'beforeCreate':function(_0x32d547){const _0x32170d=_0x13eefc;_0x32d547[_0x32170d('0x3')]&&(_0x32d547[_0x32170d('0xd')]=moment()[_0x32170d('0x9')](_0x32170d('0x6'))),_0x32d547['closed']&&(_0x32d547[_0x32170d('0x2')]=moment()['format'](_0x32170d('0x6')));},'beforeUpdate':function(_0x40982b){const _0x1ec207=_0x13eefc;_0x40982b[_0x1ec207('0x0')](_0x1ec207('0x3'))&&(_0x40982b[_0x1ec207('0xd')]=_0x40982b[_0x1ec207('0x3')]?moment()[_0x1ec207('0x9')](_0x1ec207('0x6')):null),_0x40982b[_0x1ec207('0x0')](_0x1ec207('0x12'))&&(_0x40982b[_0x1ec207('0x2')]=moment()[_0x1ec207('0x9')](_0x1ec207('0x6')),_0x40982b[_0x1ec207('0x3')]=null,_0x40982b[_0x1ec207('0xd')]=null);},'afterUpdate':function(_0x58fe5c){const _0x46ced3=_0x13eefc,_0x10d8a6=_0x58fe5c[_0x46ced3('0x7')]({'plain':!![]});if(_0x10d8a6[_0x46ced3('0x12')])return _0x51d156[_0x46ced3('0xa')]['update']({'read':!![]},{'where':{'MailInteractionId':_0x10d8a6['id']}})[_0x46ced3('0xe')](function(_0x371be2){return _0x371be2;});}},'charset':_0x13eefc('0xf'),'collate':'utf8mb4_unicode_ci'});return _0x3712b3;}; \ No newline at end of file +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 diff --git a/server/api/mailInteraction/mailInteraction.rpc.js b/server/api/mailInteraction/mailInteraction.rpc.js index 41dd29c..01726cc 100644 --- a/server/api/mailInteraction/mailInteraction.rpc.js +++ b/server/api/mailInteraction/mailInteraction.rpc.js @@ -1 +1 @@ -const a409_0x41d7=['omit','debug','MailInteraction','AddTags','ids','info','findOne','error','UpdateMailInteraction','options','./mailInteraction.socket','rpc','limit','../../config/logger','stringify','catch','addTags','then','../../mysqldb','where','raw','message','update','lodash','body'];(function(_0x1abf9e,_0x41d732){const _0x402ef9=function(_0x424b2e){while(--_0x424b2e){_0x1abf9e['push'](_0x1abf9e['shift']());}};_0x402ef9(++_0x41d732);}(a409_0x41d7,0xc9));const a409_0x402e=function(_0x1abf9e,_0x41d732){_0x1abf9e=_0x1abf9e-0x0;let _0x402ef9=a409_0x41d7[_0x1abf9e];return _0x402ef9;};const _0x263585=a409_0x402e;'use strict';const _=require(_0x263585('0x16')),db=require(_0x263585('0x11'))['db'],logger=require(_0x263585('0xc'))(_0x263585('0xa')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x263585('0x9'))['register'](socket),exports['UpdateMailInteraction']=function(_0x424b2e){const _0x23e5c3=this;return new Promise(function(_0x481625,_0x42e171){const _0x216163=a409_0x402e;return db[_0x216163('0x1')][_0x216163('0x15')](_0x424b2e[_0x216163('0x17')],{'raw':_0x424b2e['options']?_0x424b2e[_0x216163('0x8')][_0x216163('0x13')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x424b2e[_0x216163('0x8')]?_0x424b2e[_0x216163('0x8')][_0x216163('0x12')]||null:null,'attributes':_0x424b2e[_0x216163('0x8')]?_0x424b2e[_0x216163('0x8')]['attributes']||null:null,'limit':_0x424b2e[_0x216163('0x8')]?_0x424b2e[_0x216163('0x8')][_0x216163('0xb')]||null:null})[_0x216163('0x10')](function(_0x5be827){const _0x4b761e=_0x216163;logger[_0x4b761e('0x4')]('UpdateMailInteraction',_0x424b2e),logger['debug'](_0x4b761e('0x7'),_0x424b2e,JSON[_0x4b761e('0xd')](_0x5be827)),_0x481625(_0x5be827);})[_0x216163('0xe')](function(_0x1b84ec){const _0x146a28=_0x216163;logger['error'](_0x146a28('0x7'),_0x1b84ec['message'],_0x424b2e),_0x42e171(_0x23e5c3[_0x146a28('0x6')](0x1f4,_0x1b84ec['message']));});});},exports['AddTagsToMailInteraction']=function(_0x18b142){const _0x477b36=this;return new Promise(function(_0x345f8c,_0x4a7c48){const _0x5d605c=a409_0x402e;return db[_0x5d605c('0x1')][_0x5d605c('0x5')]({'where':_0x18b142[_0x5d605c('0x8')]?_0x18b142[_0x5d605c('0x8')]['where']||null:null})[_0x5d605c('0x10')](function(_0x10d07b){const _0x3f0331=_0x5d605c;if(_0x10d07b)return _0x10d07b[_0x3f0331('0xf')](_0x18b142[_0x3f0331('0x17')][_0x3f0331('0x3')],{'through':_[_0x3f0331('0x18')](_0x18b142[_0x3f0331('0x17')],[_0x3f0331('0x3'),'id'])});})[_0x5d605c('0x10')](function([_0x2fd205]){const _0x48f318=_0x5d605c;logger[_0x48f318('0x4')](_0x48f318('0x2'),_0x18b142),logger[_0x48f318('0x0')](_0x48f318('0x2'),_0x18b142,JSON[_0x48f318('0xd')](_0x2fd205)),_0x345f8c(_0x2fd205);})[_0x5d605c('0xe')](function(_0x2baf57){const _0x312228=_0x5d605c;logger['error'](_0x312228('0x2'),_0x2baf57[_0x312228('0x14')],_0x18b142),_0x4a7c48(_0x477b36[_0x312228('0x6')](0x1f4,_0x2baf57[_0x312228('0x14')]));});});}; \ No newline at end of file +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 diff --git a/server/api/mailInteraction/mailInteraction.socket.js b/server/api/mailInteraction/mailInteraction.socket.js index 95e608d..2d40c5d 100644 --- a/server/api/mailInteraction/mailInteraction.socket.js +++ b/server/api/mailInteraction/mailInteraction.socket.js @@ -1 +1 @@ -const a410_0x261e=['register','save','length','./mailInteraction.events','mailInteraction:','update'];(function(_0xad5ccb,_0x261e5c){const _0x531193=function(_0x272861){while(--_0x272861){_0xad5ccb['push'](_0xad5ccb['shift']());}};_0x531193(++_0x261e5c);}(a410_0x261e,0x79));const a410_0x5311=function(_0xad5ccb,_0x261e5c){_0xad5ccb=_0xad5ccb-0x0;let _0x531193=a410_0x261e[_0xad5ccb];return _0x531193;};const _0x41cd2f=a410_0x5311;'use strict';const MailInteractionEvents=require(_0x41cd2f('0x2')),events=[_0x41cd2f('0x0'),'remove',_0x41cd2f('0x4')];function createListener(_0x272861,_0x3cedec){return function(_0x1b1ba5){_0x3cedec['emit'](_0x272861,_0x1b1ba5);};}exports[_0x41cd2f('0x5')]=function(_0x280559){const _0x15d877=_0x41cd2f;for(let _0x249621=0x0,_0x32035f=events[_0x15d877('0x1')];_0x249621<_0x32035f;_0x249621++){const _0x4a05f3=events[_0x249621],_0x37b3a5=createListener(_0x15d877('0x3')+_0x4a05f3,_0x280559);MailInteractionEvents['on'](_0x4a05f3,_0x37b3a5);}}; \ No newline at end of file +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 diff --git a/server/api/mailMessage/index.js b/server/api/mailMessage/index.js index ccd66ee..440686a 100644 --- a/server/api/mailMessage/index.js +++ b/server/api/mailMessage/index.js @@ -1 +1 @@ -const a411_0x50c0=['describe','./mailMessage.controller','exports','accept','reject','delete','mail','../../components/auth/service','show','Router','mailmessage:create','/describe','update','/:id','create','post','isAuthenticated','get','tracked','put'];(function(_0x123169,_0x50c00a){const _0x33313f=function(_0x4d7744){while(--_0x4d7744){_0x123169['push'](_0x123169['shift']());}};_0x33313f(++_0x50c00a);}(a411_0x50c0,0x118));const a411_0x3331=function(_0x123169,_0x50c00a){_0x123169=_0x123169-0x0;let _0x33313f=a411_0x50c0[_0x123169];return _0x33313f;};const _0x2799bd=a411_0x3331;'use strict';const express=require('express'),router=express[_0x2799bd('0x9')](),auth=require(_0x2799bd('0x7')),interaction=require('../../components/interaction/service'),controller=require(_0x2799bd('0x1'));router['get']('/',auth['isAuthenticated'](),controller['index']),router['get'](_0x2799bd('0xb'),auth[_0x2799bd('0x10')](),controller[_0x2799bd('0x0')]),router[_0x2799bd('0x11')](_0x2799bd('0xd'),auth[_0x2799bd('0x10')](),controller[_0x2799bd('0x8')]),router[_0x2799bd('0x11')]('/:id/download',auth[_0x2799bd('0x10')](),controller['download']),router[_0x2799bd('0xf')]('/',auth[_0x2799bd('0x10')](),interaction[_0x2799bd('0x12')](_0x2799bd('0x6'),_0x2799bd('0xa')),controller[_0x2799bd('0xe')]),router[_0x2799bd('0x13')]('/:id',auth[_0x2799bd('0x10')](),controller[_0x2799bd('0xc')]),router[_0x2799bd('0x13')]('/:id/accept',auth[_0x2799bd('0x10')](),controller[_0x2799bd('0x3')]),router[_0x2799bd('0x13')]('/:id/reject',auth[_0x2799bd('0x10')](),controller[_0x2799bd('0x4')]),router[_0x2799bd('0x5')](_0x2799bd('0xd'),auth[_0x2799bd('0x10')](),controller['destroy']),module[_0x2799bd('0x2')]=router; \ No newline at end of file +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 diff --git a/server/api/mailMessage/mailMessage.attributes.js b/server/api/mailMessage/mailMessage.attributes.js index a60777a..46225a9 100644 --- a/server/api/mailMessage/mailMessage.attributes.js +++ b/server/api/mailMessage/mailMessage.attributes.js @@ -1 +1 @@ -const a412_0x2568=['DATE','TEXT','long','ENUM','BOOLEAN','out','STRING'];(function(_0x4bc0b5,_0x25682b){const _0x305baa=function(_0x4d2400){while(--_0x4d2400){_0x4bc0b5['push'](_0x4bc0b5['shift']());}};_0x305baa(++_0x25682b);}(a412_0x2568,0x82));const a412_0x305b=function(_0x4bc0b5,_0x25682b){_0x4bc0b5=_0x4bc0b5-0x0;let _0x305baa=a412_0x2568[_0x4bc0b5];return _0x305baa;};const _0x1294e8=a412_0x305b;'use strict';const Sequelize=require('sequelize');module['exports']={'body':{'type':Sequelize['TEXT']('long'),'allowNull':![]},'plainBody':{'type':Sequelize[_0x1294e8('0x4')]('medium')},'read':{'type':Sequelize[_0x1294e8('0x0')],'defaultValue':![]},'direction':{'type':Sequelize[_0x1294e8('0x6')]('in','out'),'defaultValue':_0x1294e8('0x1'),'allowNull':![]},'messageId':{'type':Sequelize[_0x1294e8('0x2')](0x1fe)},'from':{'type':Sequelize[_0x1294e8('0x2')]},'to':{'type':Sequelize[_0x1294e8('0x4')]('long')},'cc':{'type':Sequelize[_0x1294e8('0x4')](_0x1294e8('0x5'))},'bcc':{'type':Sequelize[_0x1294e8('0x4')](_0x1294e8('0x5'))},'subject':{'type':Sequelize[_0x1294e8('0x4')]},'sentAt':{'type':Sequelize[_0x1294e8('0x3')]},'attach':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'secret':{'type':Sequelize[_0x1294e8('0x0')],'defaultValue':![]},'readAt':{'type':Sequelize[_0x1294e8('0x3')]},'originTo':{'type':Sequelize[_0x1294e8('0x4')](_0x1294e8('0x5'))},'originCc':{'type':Sequelize[_0x1294e8('0x4')](_0x1294e8('0x5'))}}; \ No newline at end of file +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 diff --git a/server/api/mailMessage/mailMessage.controller.js b/server/api/mailMessage/mailMessage.controller.js index a6d38e2..d6d781b 100644 --- a/server/api/mailMessage/mailMessage.controller.js +++ b/server/api/mailMessage/mailMessage.controller.js @@ -1 +1 @@ -const a413_0x356d=['then','type','count','agent','bcc','order','../../config/logger','service','channel','AcceptMessage','get','key','describe','set','messageId','MailMessage,\x20%s,\x20%s,\x20%s','toString','update','offset','message-%s.eml','accept','read1stAt','fields','../../mysqldb','util','createdAt','lodash','message','RejectMessage','client','api','YYYY-MM-DD\x20HH:mm:ss','isNil','pass','info','MailInteraction','MailMessage','status','user','moment','log','server','name','rawAttributes','request\x20sent','Contact','acceptmessage','root','UserId','reject','server/files/attachments','interface','end','readFileSync','index','CmContact','SendMail','jayson/promise','limit','host','attributes','stack','options','Attachments','split','from','nolimit','destroy','attachments','authentication','http','MailAccountId','mail-interactions','subject','role','format','unix','VIRTUAL','download','debug','include','DESC','sequelize','where','MailAccount','unlinkSync','includeAll','sendStatus','MailInteractionId','[MAILMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','join','defaults','catch','error','direction','MailMessage,\x20%s,\x20%s','json','findOne','../../components/parsers/qs','existsSync','params','read','query','./mailMessage.socket','err','code','updatedAt','Contacts','secure','push','mail','fieldName','null','Smtp','map','interaction','List','filters','model','basename','body','CmList','length','headers','intersection','auth','files','out','stringify','create','rows','SIP/%s','EventManager','rejectmessage','Bcc','manual','port','eml-format','[MAILMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','../../rediscache','sort','filter','Attachment','keys','../../config/environment','merge'];(function(_0x51936d,_0x356df8){const _0x35546d=function(_0x19fe27){while(--_0x19fe27){_0x51936d['push'](_0x51936d['shift']());}};_0x35546d(++_0x356df8);}(a413_0x356d,0x18a));const a413_0x3554=function(_0x51936d,_0x356df8){_0x51936d=_0x51936d-0x0;let _0x35546d=a413_0x356d[_0x51936d];return _0x35546d;};const _0x189117=a413_0x3554;'use strict';const emlformat=require(_0x189117('0x23')),moment=require(_0x189117('0x53')),util=require(_0x189117('0x44')),path=require('path'),fs=require('fs'),_=require(_0x189117('0x46')),{getSocket}=require(_0x189117('0x25')),socket=getSocket(),qs=require(_0x189117('0x8e')),logger=require(_0x189117('0x32'))(_0x189117('0x4a')),config=require(_0x189117('0x2a')),interaction_log=require(_0x189117('0x32'))(_0x189117('0x74')),db=require(_0x189117('0x43'))['db'],{Op}=require(_0x189117('0x7e'));require(_0x189117('0x1'))['register'](socket);const jayson=require(_0x189117('0x65')),client=jayson[_0x189117('0x49')][_0x189117('0x72')]({'port':0x232c}),client9003=jayson[_0x189117('0x49')][_0x189117('0x72')]({'port':0x232b}),client9002=jayson[_0x189117('0x49')][_0x189117('0x72')]({'port':0x232a});function respondWithRpcPromise(_0x19fe27,_0x124521,_0x3d97bd,_0x50af42){return new Promise(function(_0x27a132,_0x1c651b){const _0x1f039b=a413_0x3554,_0x107301=_0x50af42||client;return _0x107301['request'](_0x19fe27,_0x3d97bd)[_0x1f039b('0x2c')](function(_0xd4f1fa){const _0x204a11=_0x1f039b;logger['info'](_0x204a11('0x8b'),_0x124521,_0x204a11('0x58')),logger[_0x204a11('0x7b')](_0x204a11('0x3b'),_0x124521,_0x204a11('0x58'),JSON[_0x204a11('0x1a')](_0xd4f1fa));if(_0xd4f1fa['error']){if(_0xd4f1fa['error'][_0x204a11('0x3')]===0x1f4)return logger[_0x204a11('0x89')](_0x204a11('0x8b'),_0x124521,_0xd4f1fa[_0x204a11('0x89')][_0x204a11('0x47')]),_0x1c651b(_0xd4f1fa[_0x204a11('0x89')][_0x204a11('0x47')]);return logger[_0x204a11('0x89')](_0x204a11('0x8b'),_0x124521,_0xd4f1fa[_0x204a11('0x89')]['message']),_0x27a132(_0xd4f1fa[_0x204a11('0x89')]['message']);}else logger[_0x204a11('0x4e')](_0x204a11('0x8b'),_0x124521,_0x204a11('0x58')),_0x27a132(_0xd4f1fa['result'][_0x204a11('0x47')]);})[_0x1f039b('0x88')](function(_0x32329e){const _0x1073f1=_0x1f039b;logger['error'](_0x1073f1('0x8b'),_0x124521,_0x32329e),_0x1c651b(_0x32329e);});});}function respondWithResult(_0x2d8142,_0x871f79){return _0x871f79=_0x871f79||0xc8,function(_0x2e289d){const _0xb66fdd=a413_0x3554;if(_0x2e289d)return _0x2d8142['status'](_0x871f79)[_0xb66fdd('0x8c')](_0x2e289d);};}function respondWithFilteredResult(_0x317796,_0x261595){return function(_0x5e03e2){const _0x54d1c2=a413_0x3554;if(_0x5e03e2){const _0x1d9dab=_0x5e03e2[_0x54d1c2('0x2e')],_0x4d8380=_0x261595['offset'];let _0x5aecf4=_0x261595[_0x54d1c2('0x3e')]+_0x261595['limit'],_0x4b54b4;return _0x5aecf4>=_0x1d9dab?(_0x5aecf4=_0x1d9dab,_0x4b54b4=0xc8):_0x4b54b4=0xce,_0x317796['status'](_0x4b54b4),_0x317796[_0x54d1c2('0x39')]('Content-Range',_0x4d8380+'-'+_0x5aecf4+'/'+_0x1d9dab)[_0x54d1c2('0x8c')](_0x5e03e2);}return null;};}function saveUpdates(_0x279f45){return function(_0x2d2203){const _0x426763=a413_0x3554;if(_0x2d2203)return _0x2d2203[_0x426763('0x3d')](_0x279f45)['then'](function(_0x2fb47b){return _0x2fb47b;});return null;};}function removeEntity(_0xee97ef){return function(_0x3df124){const _0x2fb223=a413_0x3554;if(_0x3df124)return _0x3df124[_0x2fb223('0x6f')]()[_0x2fb223('0x2c')](function(){const _0x5caed7=_0x2fb223;_0xee97ef['status'](0xcc)[_0x5caed7('0x60')]();});};}function handleEntityNotFound(_0x2c778e){return function(_0x371d07){const _0x694f1a=a413_0x3554;return!_0x371d07&&_0x2c778e[_0x694f1a('0x83')](0x194),_0x371d07;};}function handleError(_0x538e44,_0x4e5364){return _0x4e5364=_0x4e5364||0x1f4,function(_0xb82862){const _0x3f487c=a413_0x3554;logger[_0x3f487c('0x89')](_0xb82862[_0x3f487c('0x69')]),_0xb82862['name']&&delete _0xb82862[_0x3f487c('0x56')],_0x538e44[_0x3f487c('0x51')](_0x4e5364)['send'](_0xb82862);};}exports[_0x189117('0x62')]=function(_0x2332b0,_0x2347af){const _0x3f9f82=_0x189117;let _0xe58c65={};const _0xea9663={},_0xd25b3c={'count':0x0,'rows':[]},_0x137d6a=_['map'](db[_0x3f9f82('0x50')][_0x3f9f82('0x57')],function(_0x4edbae){const _0x71fd95=_0x3f9f82;return{'name':_0x4edbae[_0x71fd95('0x9')],'type':_0x4edbae[_0x71fd95('0x2d')][_0x71fd95('0x37')]};});_0xea9663[_0x3f9f82('0x10')]=_['map'](_0x137d6a,_0x3f9f82('0x56')),_0xea9663['query']=_[_0x3f9f82('0x29')](_0x2332b0[_0x3f9f82('0x0')]),_0xea9663[_0x3f9f82('0xf')]=_['intersection'](_0xea9663['model'],_0xea9663[_0x3f9f82('0x0')]),_0xe58c65[_0x3f9f82('0x68')]=_[_0x3f9f82('0x16')](_0xea9663[_0x3f9f82('0x10')],qs[_0x3f9f82('0x42')](_0x2332b0[_0x3f9f82('0x0')][_0x3f9f82('0x42')])),_0xe58c65[_0x3f9f82('0x68')]=_0xe58c65[_0x3f9f82('0x68')][_0x3f9f82('0x14')]?_0xe58c65[_0x3f9f82('0x68')]:_0xea9663[_0x3f9f82('0x10')];typeof _0x2332b0[_0x3f9f82('0x0')][_0x3f9f82('0x6e')]==='undefined'&&(_0xe58c65[_0x3f9f82('0x66')]=qs['limit'](_0x2332b0[_0x3f9f82('0x0')][_0x3f9f82('0x66')]),_0xe58c65[_0x3f9f82('0x3e')]=qs[_0x3f9f82('0x3e')](_0x2332b0['query'][_0x3f9f82('0x3e')]));_0xe58c65[_0x3f9f82('0x31')]=qs[_0x3f9f82('0x26')](_0x2332b0[_0x3f9f82('0x0')][_0x3f9f82('0x26')]),_0xe58c65['where']=qs[_0x3f9f82('0xf')](_['pick'](_0x2332b0[_0x3f9f82('0x0')],_0xea9663[_0x3f9f82('0xf')]),_0x137d6a);_0x2332b0[_0x3f9f82('0x0')]['filter']&&(_0xe58c65[_0x3f9f82('0x7f')]=_['merge'](_0xe58c65[_0x3f9f82('0x7f')],{[Op['or']]:_[_0x3f9f82('0xc')](_0x137d6a,function(_0x5b9fda){const _0xf83a2f=_0x3f9f82;if(_0x5b9fda[_0xf83a2f('0x2d')]!==_0xf83a2f('0x79')){const _0x3e8481={};return _0x3e8481[_0x5b9fda['name']]={[Op['like']]:'%'+_0x2332b0[_0xf83a2f('0x0')][_0xf83a2f('0x27')]+'%'},_0x3e8481;}})}));_0xe58c65=_[_0x3f9f82('0x2b')]({},_0xe58c65,_0x2332b0[_0x3f9f82('0x6a')]);const _0x18dc9e={'where':_0xe58c65[_0x3f9f82('0x7f')]};return db[_0x3f9f82('0x50')][_0x3f9f82('0x2e')](_0x18dc9e)[_0x3f9f82('0x2c')](function(_0x1f071b){const _0x3ff0b2=_0x3f9f82;return _0xd25b3c[_0x3ff0b2('0x2e')]=_0x1f071b,_0x2332b0[_0x3ff0b2('0x0')][_0x3ff0b2('0x82')]&&(_0xe58c65['include']=[{'all':!![]}]),db[_0x3ff0b2('0x50')]['findAll'](_0xe58c65);})[_0x3f9f82('0x2c')](function(_0xcf6e98){const _0x2c2d73=_0x3f9f82;return _0xd25b3c[_0x2c2d73('0x1c')]=_0xcf6e98,_0xd25b3c;})[_0x3f9f82('0x2c')](respondWithFilteredResult(_0x2347af,_0xe58c65))[_0x3f9f82('0x88')](handleError(_0x2347af,null));},exports['show']=function(_0x3179ce,_0x34a7cb){const _0x23f178=_0x189117;let _0x2b44c3={'raw':!![],'where':{'id':_0x3179ce[_0x23f178('0x90')]['id']}};const _0x28a319={};return _0x28a319['model']=_[_0x23f178('0x29')](db['MailMessage'][_0x23f178('0x57')]),_0x28a319[_0x23f178('0x0')]=_[_0x23f178('0x29')](_0x3179ce[_0x23f178('0x0')]),_0x28a319[_0x23f178('0xf')]=_[_0x23f178('0x16')](_0x28a319[_0x23f178('0x10')],_0x28a319[_0x23f178('0x0')]),_0x2b44c3['attributes']=_[_0x23f178('0x16')](_0x28a319[_0x23f178('0x10')],qs[_0x23f178('0x42')](_0x3179ce['query'][_0x23f178('0x42')])),_0x2b44c3[_0x23f178('0x68')]=_0x2b44c3['attributes'][_0x23f178('0x14')]?_0x2b44c3[_0x23f178('0x68')]:_0x28a319[_0x23f178('0x10')],_0x3179ce[_0x23f178('0x0')][_0x23f178('0x82')]&&(_0x2b44c3[_0x23f178('0x7c')]=[{'all':!![]}]),_0x2b44c3=_[_0x23f178('0x2b')]({},_0x2b44c3,_0x3179ce['options']),db['MailMessage'][_0x23f178('0x8d')](_0x2b44c3)[_0x23f178('0x2c')](handleEntityNotFound(_0x34a7cb,null))[_0x23f178('0x2c')](respondWithResult(_0x34a7cb,null))[_0x23f178('0x88')](handleError(_0x34a7cb,null));},exports[_0x189117('0x3d')]=function(_0x57c5c5,_0x50a401){const _0x303131=_0x189117;return _0x57c5c5[_0x303131('0x12')]['id']&&delete _0x57c5c5[_0x303131('0x12')]['id'],db['MailMessage']['findOne']({'where':{'id':_0x57c5c5[_0x303131('0x90')]['id']}})['then'](handleEntityNotFound(_0x50a401,null))[_0x303131('0x2c')](saveUpdates(_0x57c5c5['body'],null))[_0x303131('0x2c')](respondWithResult(_0x50a401,null))[_0x303131('0x88')](handleError(_0x50a401,null));},exports[_0x189117('0x6f')]=function(_0x12d86f,_0x33577d){const _0x53ce1c=_0x189117;return db[_0x53ce1c('0x50')]['findOne']({'where':{'id':_0x12d86f[_0x53ce1c('0x90')]['id']}})[_0x53ce1c('0x2c')](handleEntityNotFound(_0x33577d,null))[_0x53ce1c('0x2c')](removeEntity(_0x33577d,null))[_0x53ce1c('0x88')](handleError(_0x33577d,null));},exports['describe']=function(_0x2b90c0,_0x2d8c19){const _0x53a591=_0x189117;return db[_0x53a591('0x50')][_0x53a591('0x38')]()[_0x53a591('0x2c')](respondWithResult(_0x2d8c19,null))['catch'](handleError(_0x2d8c19,null));},exports[_0x189117('0x1b')]=function(_0x368783,_0x428dea){const _0x585b49=_0x189117;return db[_0x585b49('0x50')][_0x585b49('0x1b')](_0x368783[_0x585b49('0x12')])[_0x585b49('0x2c')](function(_0xb55997){const _0x1fab61=_0x585b49;if(_0xb55997){if(_0xb55997[_0x1fab61('0x8a')]===_0x1fab61('0x19')&&!_0xb55997['secret']){let _0x5b58cc,_0x1cee96,_0x4ab738;return _0x368783[_0x1fab61('0x12')]['to']&&(_0x1cee96=_0x368783[_0x1fab61('0x12')]['to'][_0x1fab61('0x6c')](',')[0x0]),db[_0x1fab61('0x80')][_0x1fab61('0x8d')]({'where':{'id':_0xb55997[_0x1fab61('0x73')]},'include':[{'model':db[_0x1fab61('0x13')],'as':_0x1fab61('0xe'),'include':[{'model':db[_0x1fab61('0x63')],'as':_0x1fab61('0x5'),'where':{'email':_0x1cee96},'limit':0x1,'order':[[_0x1fab61('0x4'),_0x1fab61('0x7d')]]}]},{'model':db['MailServerOut'],'as':_0x1fab61('0xb'),'raw':!![]}]})[_0x1fab61('0x2c')](function(_0x21026d){const _0x1864ad=_0x1fab61;_0x5b58cc=_0x21026d;if(_0x5b58cc&&_0x5b58cc['Smtp']){const _0x3f87c9={'tls':{'rejectUnauthorized':![]}};_['isNil'](_0x5b58cc[_0x1864ad('0xb')][_0x1864ad('0x33')])?(_0x3f87c9['host']=_0x5b58cc['Smtp'][_0x1864ad('0x67')],_0x3f87c9['port']=_0x5b58cc[_0x1864ad('0xb')][_0x1864ad('0x22')],_0x3f87c9['secure']=_0x5b58cc['Smtp'][_0x1864ad('0x6')],_0x5b58cc[_0x1864ad('0xb')][_0x1864ad('0x71')]&&(_0x3f87c9[_0x1864ad('0x17')]={'user':_0x5b58cc[_0x1864ad('0xb')][_0x1864ad('0x52')],'pass':_0x5b58cc[_0x1864ad('0xb')]['pass']})):(_0x3f87c9[_0x1864ad('0x33')]=_0x5b58cc[_0x1864ad('0xb')][_0x1864ad('0x33')],_0x3f87c9['auth']={'user':_0x5b58cc['Smtp']['user'],'pass':_0x5b58cc[_0x1864ad('0xb')][_0x1864ad('0x4d')]},_0x3f87c9[_0x1864ad('0x6')]=_0x5b58cc[_0x1864ad('0xb')][_0x1864ad('0x6')]);if(_0x368783[_0x1864ad('0x12')]['attachments']&&_0x368783['body'][_0x1864ad('0x70')][_0x1864ad('0x14')])for(let _0x513c01=0x0;_0x513c01<_0x368783['body'][_0x1864ad('0x70')]['length'];_0x513c01+=0x1){_0x368783[_0x1864ad('0x12')][_0x1864ad('0x70')][_0x513c01]={'filename':_0x368783[_0x1864ad('0x12')][_0x1864ad('0x70')][_0x513c01][_0x1864ad('0x56')],'path':path[_0x1864ad('0x86')](config['root'],_0x1864ad('0x5e'),_0x368783[_0x1864ad('0x12')][_0x1864ad('0x70')][_0x513c01][_0x1864ad('0x11')])};}_0x4ab738={'account':_0x3f87c9,'message':_0x368783[_0x1864ad('0x12')]};return;}})[_0x1fab61('0x2c')](function(){const _0x1cdc08=_0x1fab61;if(_0x5b58cc[_0x1cdc08('0xe')])return _0x5b58cc[_0x1cdc08('0xe')][_0x1cdc08('0x5')][_0x1cdc08('0x14')]?_0x5b58cc['List']['Contacts'][0x0]:db[_0x1cdc08('0x63')][_0x1cdc08('0x1b')](_[_0x1cdc08('0x87')](_0x368783[_0x1cdc08('0x12')],{'firstName':_0x368783[_0x1cdc08('0x12')]['to'],'email':_0x368783[_0x1cdc08('0x12')]['to'],'phone':_0x368783[_0x1cdc08('0x12')]['to'],'ListId':_0x5b58cc['ListId']}));else throw new Error('List\x20not\x20found');})[_0x1fab61('0x2c')](function(){const _0x376b0d=_0x1fab61;if(_0x4ab738)return respondWithRpcPromise(_0x376b0d('0x64'),'sendMail',_0x4ab738,client9003)[_0x376b0d('0x2c')](function(_0x1113f5){const _0x131803=_0x376b0d;return _0xb55997[_0x131803('0x3d')]({'read':!![],'messageId':_0x1113f5[_0x131803('0x3a')],'sentAt':moment()[_0x131803('0x77')](_0x131803('0x4b'))});})[_0x376b0d('0x88')](function(_0x15318c){const _0x36a8e0=_0x376b0d;return logger['error']('%s',JSON[_0x36a8e0('0x1a')](_0x15318c)),_0xb55997;});return _0xb55997;});}return _0xb55997;}})[_0x585b49('0x2c')](respondWithResult(_0x428dea,0xc9))[_0x585b49('0x88')](handleError(_0x428dea,null));},exports['accept']=function(_0x599ae6,_0x54b669){const _0x234412=_0x189117,_0x3494f3={'channel':_0x234412('0x8')};return _0x599ae6[_0x234412('0x12')]['id']&&delete _0x599ae6[_0x234412('0x12')]['id'],_0x599ae6['body'][_0x234412('0x91')]=!![],_0x599ae6['body']['readAt']=moment()[_0x234412('0x77')](_0x234412('0x4b')),_0x599ae6[_0x234412('0x12')][_0x234412('0x5c')]=_0x599ae6[_0x234412('0x12')]['UserId']||_0x599ae6['user']['id'],db[_0x234412('0x50')][_0x234412('0x8d')]({'where':{'id':_0x599ae6[_0x234412('0x90')]['id'],'UserId':null},'include':[{'model':db[_0x234412('0x63')],'as':_0x234412('0x59')}]})['then'](handleEntityNotFound(_0x54b669,null))['then'](saveUpdates(_0x599ae6[_0x234412('0x12')],null))[_0x234412('0x2c')](function(_0xa7c0bc){const _0x4a829d=_0x234412;if(_0xa7c0bc)return _0x3494f3[_0x4a829d('0x47')]=_0xa7c0bc[_0x4a829d('0x36')]({'plain':!![]}),db[_0x4a829d('0x4f')][_0x4a829d('0x8d')]({'where':{'id':_0xa7c0bc[_0x4a829d('0x84')]}});return null;})['then'](handleEntityNotFound(_0x54b669,null))['then'](function(_0x521f4d){const _0x427405=_0x234412;if(_0x521f4d)return _0x521f4d['update']({'UserId':_0x599ae6[_0x427405('0x12')][_0x427405('0x5c')],'read1stAt':_[_0x427405('0x4c')](_0x521f4d[_0x427405('0x41')])?moment()[_0x427405('0x77')](_0x427405('0x4b')):undefined});return null;})['then'](function(_0x120ed7){const _0x2666c3=_0x234412;if(_0x120ed7)return _0x3494f3[_0x2666c3('0xd')]=_0x120ed7['get']({'plain':!![]}),interaction_log[_0x2666c3('0x4e')](_0x2666c3('0x85'),_0x599ae6['user']['id'],_0x599ae6['user']['name'],_0x599ae6[_0x2666c3('0x52')][_0x2666c3('0x76')],_0x3494f3['interaction']['id'],_0x599ae6[_0x2666c3('0x12')]?JSON[_0x2666c3('0x1a')](_0x599ae6[_0x2666c3('0x12')]):_0x2666c3('0xa')),respondWithRpcPromise(_0x2666c3('0x35'),'acceptMessage',_0x3494f3);return null;})[_0x234412('0x2c')](function(_0x74130c){const _0x356790=_0x234412;if(_0x74130c){if(_0x599ae6[_0x356790('0x12')][_0x356790('0x21')])return _0x3494f3[_0x356790('0x47')][_0x356790('0x5f')]=util[_0x356790('0x77')]('SIP/%s',_0x599ae6[_0x356790('0x52')][_0x356790('0x56')]),_0x3494f3[_0x356790('0x47')][_0x356790('0x34')]=_0x3494f3[_0x356790('0x34')],_0x3494f3[_0x356790('0x47')]['event']=_0x356790('0x40'),respondWithRpcPromise(_0x356790('0x1e'),'EventManager',{'event':_0x356790('0x5a'),'message':_0x3494f3[_0x356790('0x47')]},client9002)[_0x356790('0x2c')](function(){return _0x3494f3;});return _0x3494f3;}return null;})[_0x234412('0x2c')](respondWithResult(_0x54b669,null))[_0x234412('0x88')](handleError(_0x54b669,null));},exports[_0x189117('0x5d')]=function(_0x5d1e72,_0x2a13d3){const _0x553b2e=_0x189117,_0x109f7b={'agent':{},'channel':_0x553b2e('0x8')};return _0x5d1e72['body']['id']&&delete _0x5d1e72[_0x553b2e('0x12')]['id'],_0x5d1e72['body'][_0x553b2e('0x5c')]=_0x5d1e72[_0x553b2e('0x12')]['UserId']||_0x5d1e72[_0x553b2e('0x52')]['id'],_0x109f7b[_0x553b2e('0x2f')]['id']=_0x5d1e72[_0x553b2e('0x12')]['UserId'],db[_0x553b2e('0x50')]['findOne']({'where':{'id':_0x5d1e72['params']['id'],'UserId':null}})[_0x553b2e('0x2c')](handleEntityNotFound(_0x2a13d3,null))[_0x553b2e('0x2c')](function(_0x2f93b1){const _0x289394=_0x553b2e;if(_0x2f93b1)return _0x109f7b[_0x289394('0x47')]=_0x2f93b1[_0x289394('0x36')]({'plain':!![]}),db['MailInteraction']['findOne']({'where':{'id':_0x2f93b1[_0x289394('0x84')]}});return null;})[_0x553b2e('0x2c')](handleEntityNotFound(_0x2a13d3,null))[_0x553b2e('0x2c')](function(_0x350918){const _0x39b7a4=_0x553b2e;if(_0x350918)return _0x109f7b[_0x39b7a4('0xd')]=_0x350918[_0x39b7a4('0x36')]({'plain':!![]}),interaction_log['info'](_0x39b7a4('0x24'),_0x5d1e72[_0x39b7a4('0x52')]['id'],_0x5d1e72['user']['name'],_0x5d1e72[_0x39b7a4('0x52')]['role'],_0x109f7b[_0x39b7a4('0xd')]['id'],_0x5d1e72[_0x39b7a4('0x12')]?JSON[_0x39b7a4('0x1a')](_0x5d1e72[_0x39b7a4('0x12')]):_0x39b7a4('0xa')),respondWithRpcPromise(_0x39b7a4('0x48'),'rejectMessage',_0x109f7b);return null;})[_0x553b2e('0x2c')](function(_0x4181e4){const _0x10975f=_0x553b2e;if(_0x4181e4)return _0x4181e4[_0x10975f('0x47')][_0x10975f('0x5f')]=util['format'](_0x10975f('0x1d'),_0x5d1e72[_0x10975f('0x52')]['name']),_0x4181e4[_0x10975f('0x47')][_0x10975f('0x34')]=_0x109f7b['channel'],_0x4181e4[_0x10975f('0x47')]['event']=_0x10975f('0x5d'),respondWithRpcPromise('EventManager',_0x10975f('0x1e'),{'event':_0x10975f('0x1f'),'message':_0x4181e4[_0x10975f('0x47')]},client9002),_0x109f7b;return null;})[_0x553b2e('0x2c')](respondWithResult(_0x2a13d3,null))[_0x553b2e('0x88')](handleError(_0x2a13d3,null));},exports[_0x189117('0x7a')]=function(_0x5deeeb,_0x3d0412){const _0x1c03bf=_0x189117,_0x5ec92f=moment()[_0x1c03bf('0x78')]()[_0x1c03bf('0x3c')](),_0x14a7ca=path[_0x1c03bf('0x86')](config[_0x1c03bf('0x5b')],_0x1c03bf('0x55'),_0x1c03bf('0x18'),'tmp'),_0x5e4d89=path[_0x1c03bf('0x86')](config[_0x1c03bf('0x5b')],'server',_0x1c03bf('0x18'),_0x1c03bf('0x70')),_0x5a02d9=util[_0x1c03bf('0x77')](_0x1c03bf('0x3f'),_0x5ec92f);return db[_0x1c03bf('0x50')]['findOne']({'where':{'id':_0x5deeeb[_0x1c03bf('0x90')]['id']},'attributes':['id',_0x1c03bf('0x12'),_0x1c03bf('0x6d'),'to','cc','bcc',_0x1c03bf('0x75'),_0x1c03bf('0x45')],'include':_0x5deeeb[_0x1c03bf('0x0')][_0x1c03bf('0x70')]?[{'model':db[_0x1c03bf('0x28')],'as':_0x1c03bf('0x6b')}]:undefined})[_0x1c03bf('0x2c')](handleEntityNotFound(_0x3d0412,null))[_0x1c03bf('0x2c')](function(_0x1fe9f5){const _0x2117ab=_0x1c03bf;if(_0x1fe9f5){const _0x28c2eb=_0x1fe9f5,_0x3dfd04={'from':_0x28c2eb[_0x2117ab('0x6d')],'to':_0x28c2eb['to'],'subject':_0x28c2eb[_0x2117ab('0x75')],'html':_0x28c2eb[_0x2117ab('0x12')],'headers':{'Date':moment(_0x28c2eb[_0x2117ab('0x45')])[_0x2117ab('0x77')]('ddd,\x20DD\x20MMM\x20YYYY\x20HH:mm:ss\x20ZZ')},'attachments':[]};return _0x1fe9f5['cc']&&(_0x3dfd04[_0x2117ab('0x15')]['Cc']=_0x1fe9f5['cc']),_0x1fe9f5[_0x2117ab('0x30')]&&(_0x3dfd04[_0x2117ab('0x15')][_0x2117ab('0x20')]=_0x1fe9f5[_0x2117ab('0x30')]),new Promise(function(_0x42261a,_0x57f541){const _0x57ae06=_0x2117ab;if(_0x1fe9f5[_0x57ae06('0x6b')])for(let _0x53c57c=0x0;_0x53c57c<_0x1fe9f5[_0x57ae06('0x6b')][_0x57ae06('0x14')];_0x53c57c++){const _0x13efe8=_0x1fe9f5[_0x57ae06('0x6b')][_0x53c57c],_0x17ce56=path['join'](_0x5e4d89,_0x13efe8[_0x57ae06('0x11')]);fs[_0x57ae06('0x8f')](_0x17ce56)&&_0x3dfd04[_0x57ae06('0x70')][_0x57ae06('0x7')]({'name':_0x13efe8[_0x57ae06('0x56')],'contentType':_0x13efe8[_0x57ae06('0x2d')],'data':fs[_0x57ae06('0x61')](_0x17ce56)});}emlformat['build'](_0x3dfd04,function(_0x36b79c,_0x5fd4c1){const _0x49d39f=_0x57ae06;if(_0x36b79c)return _0x57f541(_0x36b79c);return fs['writeFileSync'](path[_0x49d39f('0x86')](_0x14a7ca,_0x5a02d9),_0x5fd4c1),_0x42261a(_0x5fd4c1);});});}})['then'](function(_0x5be5d4){const _0x562493=_0x1c03bf;if(_0x5be5d4)return _0x3d0412[_0x562493('0x7a')](path[_0x562493('0x86')](_0x14a7ca,_0x5a02d9),_0x5a02d9,function(_0x33fdec){const _0x5b14cf=_0x562493;_0x33fdec?console[_0x5b14cf('0x54')](_0x5b14cf('0x2'),_0x33fdec):fs[_0x5b14cf('0x81')](path[_0x5b14cf('0x86')](_0x14a7ca,_0x5a02d9));});})[_0x1c03bf('0x88')](handleError(_0x3d0412,null));}; \ No newline at end of file +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 diff --git a/server/api/mailMessage/mailMessage.events.js b/server/api/mailMessage/mailMessage.events.js index add659d..3e9b5a7 100644 --- a/server/api/mailMessage/mailMessage.events.js +++ b/server/api/mailMessage/mailMessage.events.js @@ -1 +1 @@ -const a414_0x1a2a=['../../mysqldb','events','remove','save','MailMessage','exports','update','setMaxListeners','emit'];(function(_0x2d2820,_0x1a2aed){const _0x5a2eba=function(_0x15d1d0){while(--_0x15d1d0){_0x2d2820['push'](_0x2d2820['shift']());}};_0x5a2eba(++_0x1a2aed);}(a414_0x1a2a,0x80));const a414_0x5a2e=function(_0x2d2820,_0x1a2aed){_0x2d2820=_0x2d2820-0x0;let _0x5a2eba=a414_0x1a2a[_0x2d2820];return _0x5a2eba;};const _0xac017f=a414_0x5a2e;'use strict';const EventEmitter=require(_0xac017f('0x8')),MailMessage=require(_0xac017f('0x7'))['db'][_0xac017f('0x2')],MailMessageEvents=new EventEmitter();MailMessageEvents[_0xac017f('0x5')](0x0);const events={'afterCreate':_0xac017f('0x1'),'afterUpdate':_0xac017f('0x4'),'afterDestroy':_0xac017f('0x0')};function emitEvent(_0x15d1d0){return function(_0x30cf6a){const _0x5d38da=a414_0x5a2e;MailMessageEvents['emit'](_0x15d1d0+':'+_0x30cf6a['id'],_0x30cf6a),MailMessageEvents[_0x5d38da('0x6')](_0x15d1d0,_0x30cf6a);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];MailMessage['addHook'](e,emitEvent(event));}}module[_0xac017f('0x3')]=MailMessageEvents; \ No newline at end of file +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 diff --git a/server/api/mailMessage/mailMessage.model.js b/server/api/mailMessage/mailMessage.model.js index fa6e2b6..597fed1 100644 --- a/server/api/mailMessage/mailMessage.model.js +++ b/server/api/mailMessage/mailMessage.model.js @@ -1 +1 @@ -const a415_0x411d=['toLowerCase','catch','models','mail_messages','MailInteractionId','then','body','fti_mail_messages','update','plainBody','messageId','get','define','isNil','subject','fromString','utf8mb4_unicode_ci','direction','secret','createdAt','html-to-text','UserId','out'];(function(_0x28441e,_0x411d12){const _0x33872a=function(_0x1a17f8){while(--_0x1a17f8){_0x28441e['push'](_0x28441e['shift']());}};_0x33872a(++_0x411d12);}(a415_0x411d,0x1db));const a415_0x3387=function(_0x28441e,_0x411d12){_0x28441e=_0x28441e-0x0;let _0x33872a=a415_0x411d[_0x28441e];return _0x33872a;};const _0x5b8faf=a415_0x3387;'use strict';const _=require('lodash'),htmlToText=require(_0x5b8faf('0x5')),attributes=require('./mailMessage.attributes');module['exports']=function(_0x1a17f8){const _0x5d9ab5=_0x5b8faf,_0x150b99=_0x1a17f8[_0x5d9ab5('0xa')],_0x1bc320=_0x1a17f8[_0x5d9ab5('0x14')]('MailMessage',attributes,{'tableName':_0x5d9ab5('0xb'),'paranoid':![],'indexes':[{'name':_0x5d9ab5('0x12'),'fields':['messageId']},{'name':_0x5d9ab5('0xf'),'fields':['plainBody',_0x5d9ab5('0x16')],'type':'FULLTEXT'}],'timestamps':!![],'hooks':{'beforeCreate':function(_0x45a40a){const _0x407e20=_0x5d9ab5;_0x45a40a[_0x407e20('0xe')]&&(_0x45a40a[_0x407e20('0x11')]=htmlToText[_0x407e20('0x0')](_0x45a40a[_0x407e20('0xe')],{'preserveNewlines':!![],'singleNewLineParagraphs':!![],'uppercaseHeadings':![],'noLinkBrackets':!![],'ignoreImage':!![]}));},'afterCreate':function(_0x283066){const _0xe07d0f=_0x5d9ab5,_0x5b191a=_0x283066[_0xe07d0f('0x13')]({'plain':!![]});(_0x5b191a[_0xe07d0f('0x2')]['toLowerCase']()==='in'||_0x5b191a[_0xe07d0f('0x2')][_0xe07d0f('0x8')]()===_0xe07d0f('0x7')&&!_0x5b191a[_0xe07d0f('0x3')]&&!_[_0xe07d0f('0x15')](_0x5b191a[_0xe07d0f('0x6')]))&&_0x150b99['MailInteraction']['findOne']({'where':{'id':_0x5b191a[_0xe07d0f('0xc')]}})[_0xe07d0f('0xd')](function(_0x3cf8d8){const _0x27e2f9=_0xe07d0f;_0x3cf8d8&&_0x3cf8d8[_0x27e2f9('0x10')]({'lastMsgAt':_0x5b191a[_0x27e2f9('0x4')],'lastMsgDirection':_0x5b191a[_0x27e2f9('0x2')]['toLowerCase'](),'lastMsgBody':_0x5b191a[_0x27e2f9('0xe')]});})[_0xe07d0f('0x9')](function(_0x551630){console['error'](_0x551630);});}},'charset':'utf8mb4','collate':_0x5d9ab5('0x1')});return _0x1bc320;}; \ No newline at end of file +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 diff --git a/server/api/mailMessage/mailMessage.rpc.js b/server/api/mailMessage/mailMessage.rpc.js index a0ed755..800ec16 100644 --- a/server/api/mailMessage/mailMessage.rpc.js +++ b/server/api/mailMessage/mailMessage.rpc.js @@ -1 +1 @@ -const a416_0x44f4=['error','stringify','MailMessage','CreateMailMessage','options','create','../../mysqldb','rpc','message','../../rediscache','../../config/logger','then','body','info'];(function(_0x8976bf,_0x44f405){const _0x26c65e=function(_0x3b2136){while(--_0x3b2136){_0x8976bf['push'](_0x8976bf['shift']());}};_0x26c65e(++_0x44f405);}(a416_0x44f4,0x193));const a416_0x26c6=function(_0x8976bf,_0x44f405){_0x8976bf=_0x8976bf-0x0;let _0x26c65e=a416_0x44f4[_0x8976bf];return _0x26c65e;};const _0x238171=a416_0x26c6;'use strict';const db=require(_0x238171('0x9'))['db'],logger=require(_0x238171('0xd'))(_0x238171('0xa')),{getSocket}=require(_0x238171('0xc')),socket=getSocket();require('./mailMessage.socket')['register'](socket),exports[_0x238171('0x6')]=function(_0x3b2136){const _0x462505=this;return new Promise(function(_0x549216,_0x1e2b7a){const _0x1042af=a416_0x26c6;return db[_0x1042af('0x5')][_0x1042af('0x8')](_0x3b2136[_0x1042af('0x1')],{'raw':_0x3b2136[_0x1042af('0x7')]?_0x3b2136['options']['raw']===undefined?!![]:![]:!![]})[_0x1042af('0x0')](function(_0x2b624d){const _0x3ecd0a=_0x1042af;logger[_0x3ecd0a('0x2')](_0x3ecd0a('0x6'),_0x3b2136),logger['debug']('CreateMailMessage',_0x3b2136,JSON[_0x3ecd0a('0x4')](_0x2b624d)),_0x549216(_0x2b624d);})['catch'](function(_0x48abcb){const _0x2a1c5b=_0x1042af;logger[_0x2a1c5b('0x3')]('CreateMailMessage',_0x48abcb[_0x2a1c5b('0xb')],_0x3b2136),_0x1e2b7a(_0x462505[_0x2a1c5b('0x3')](0x1f4,_0x48abcb[_0x2a1c5b('0xb')]));});});}; \ No newline at end of file +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 diff --git a/server/api/mailMessage/mailMessage.socket.js b/server/api/mailMessage/mailMessage.socket.js index 0ee43f1..974cba5 100644 --- a/server/api/mailMessage/mailMessage.socket.js +++ b/server/api/mailMessage/mailMessage.socket.js @@ -1 +1 @@ -const a417_0x1909=['emit','update','save','mailMessage:','remove'];(function(_0x8b2ce7,_0x190958){const _0x5ecbff=function(_0x2257d0){while(--_0x2257d0){_0x8b2ce7['push'](_0x8b2ce7['shift']());}};_0x5ecbff(++_0x190958);}(a417_0x1909,0xd4));const a417_0x5ecb=function(_0x8b2ce7,_0x190958){_0x8b2ce7=_0x8b2ce7-0x0;let _0x5ecbff=a417_0x1909[_0x8b2ce7];return _0x5ecbff;};const _0x508c61=a417_0x5ecb;'use strict';const MailMessageEvents=require('./mailMessage.events'),events=[_0x508c61('0x0'),_0x508c61('0x2'),_0x508c61('0x4')];function createListener(_0x2257d0,_0x463807){return function(_0x25fdd2){const _0x424d76=a417_0x5ecb;_0x463807[_0x424d76('0x3')](_0x2257d0,_0x25fdd2);};}exports['register']=function(_0x54ce10){const _0x5bc47c=_0x508c61;for(let _0x5f31b9=0x0,_0x42102c=events['length'];_0x5f31b9<_0x42102c;_0x5f31b9++){const _0x7f940f=events[_0x5f31b9],_0x591c1d=createListener(_0x5bc47c('0x1')+_0x7f940f,_0x54ce10);MailMessageEvents['on'](_0x7f940f,_0x591c1d);}}; \ No newline at end of file +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 diff --git a/server/api/mailQueue/index.js b/server/api/mailQueue/index.js index bf93a86..f5b708b 100644 --- a/server/api/mailQueue/index.js +++ b/server/api/mailQueue/index.js @@ -1 +1 @@ -const a418_0x2d96=['addTeams','get','exports','removeTeams','post','update','delete','getTeams','removeAgents','addAgents','create','../../components/auth/service','./mailQueue.controller','/:id/teams','/:id/members','getMembers','describe','isAuthenticated','getAgents','/:id','express','/:id/users','index','/describe','destroy','Router','show'];(function(_0x190930,_0x2d9669){const _0x4455c5=function(_0x21bcbd){while(--_0x21bcbd){_0x190930['push'](_0x190930['shift']());}};_0x4455c5(++_0x2d9669);}(a418_0x2d96,0xb5));const a418_0x4455=function(_0x190930,_0x2d9669){_0x190930=_0x190930-0x0;let _0x4455c5=a418_0x2d96[_0x190930];return _0x4455c5;};const _0xe362c0=a418_0x4455;'use strict';const express=require(_0xe362c0('0x1')),router=express[_0xe362c0('0x6')](),auth=require(_0xe362c0('0x13')),controller=require(_0xe362c0('0x14'));router[_0xe362c0('0x9')]('/',auth[_0xe362c0('0x19')](),controller[_0xe362c0('0x3')]),router['get'](_0xe362c0('0x4'),auth[_0xe362c0('0x19')](),controller[_0xe362c0('0x18')]),router['get'](_0xe362c0('0x0'),auth[_0xe362c0('0x19')](),controller[_0xe362c0('0x7')]),router[_0xe362c0('0x9')](_0xe362c0('0x16'),auth[_0xe362c0('0x19')](),controller[_0xe362c0('0x17')]),router[_0xe362c0('0x9')](_0xe362c0('0x15'),auth['isAuthenticated'](),controller[_0xe362c0('0xf')]),router['get'](_0xe362c0('0x2'),auth['isAuthenticated'](),controller[_0xe362c0('0x1a')]),router[_0xe362c0('0xc')]('/',auth[_0xe362c0('0x19')](),controller[_0xe362c0('0x12')]),router[_0xe362c0('0xc')](_0xe362c0('0x15'),auth[_0xe362c0('0x19')](),controller[_0xe362c0('0x8')]),router['post'](_0xe362c0('0x2'),auth[_0xe362c0('0x19')](),controller[_0xe362c0('0x11')]),router['put'](_0xe362c0('0x0'),auth[_0xe362c0('0x19')](),controller[_0xe362c0('0xd')]),router[_0xe362c0('0xe')]('/:id',auth[_0xe362c0('0x19')](),controller[_0xe362c0('0x5')]),router[_0xe362c0('0xe')](_0xe362c0('0x15'),auth['isAuthenticated'](),controller[_0xe362c0('0xb')]),router['delete'](_0xe362c0('0x2'),auth[_0xe362c0('0x19')](),controller[_0xe362c0('0x10')]),module[_0xe362c0('0xa')]=router; \ No newline at end of file +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 diff --git a/server/api/mailQueue/mailQueue.attributes.js b/server/api/mailQueue/mailQueue.attributes.js index 67e09b7..9a56da6 100644 --- a/server/api/mailQueue/mailQueue.attributes.js +++ b/server/api/mailQueue/mailQueue.attributes.js @@ -1 +1 @@ -const a419_0x39a5=['roundrobin','sequelize','ENUM','name','beepall','rrmemory','exports'];(function(_0x566c3e,_0x39a593){const _0x589833=function(_0x39e6e1){while(--_0x39e6e1){_0x566c3e['push'](_0x566c3e['shift']());}};_0x589833(++_0x39a593);}(a419_0x39a5,0x91));const a419_0x5898=function(_0x566c3e,_0x39a593){_0x566c3e=_0x566c3e-0x0;let _0x589833=a419_0x39a5[_0x566c3e];return _0x589833;};const _0x31e503=a419_0x5898;'use strict';const Sequelize=require(_0x31e503('0x3'));module[_0x31e503('0x1')]={'name':{'type':Sequelize['STRING'],'unique':_0x31e503('0x5'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize['STRING']},'timeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x31e503('0x4')](_0x31e503('0x0'),_0x31e503('0x6'),_0x31e503('0x2'))}}; \ No newline at end of file +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 diff --git a/server/api/mailQueue/mailQueue.controller.js b/server/api/mailQueue/mailQueue.controller.js index 89b6dac..b194616 100644 --- a/server/api/mailQueue/mailQueue.controller.js +++ b/server/api/mailQueue/mailQueue.controller.js @@ -1 +1 @@ -const a420_0x28d8=['findAll','MailQueueId\x20=\x20?','undefined','nolimit','tq.TeamId','send','map','destroy','UserMailQueue','describe','MailQueue','body','online','includes','all','fieldName','key','show','toString','squel','findOne','emit','count','get','UserId','pick','voicePause','keys','team_has_mail_queues','ids','limit','UserProfileResource','api','updatedAt','rows','from','../../components/parsers/qs','set','name','findOrCreate','intersection','rawAttributes','sequelize','flatMap','error','include','query','length','filters','MailQueues','util','MailQueueId','fields','../../rediscache','UserProfileSection','%s/%s','transaction','end','removeAgents','mailPause','user','params','model','index','type','agent','compact','json','forEach','register','status','createdAt','order','value','create','role','isArray','isEmpty','sort','merge','Unable\x20to\x20retrieve\x20the\x20current\x20user','Team','attributes','update','join','VIRTUAL','push','where','options','userMailQueue:save','like','userMailQueue:remove','Content-Range','getAgents','QueryTypes','removeTeams','catch','findAndCountAll','then','getMembers','User','ut.UserId\x20=\x20?','SELECT','getTeams','includeAll','clone','filter','offset','addTeams','field'];(function(_0x4ac467,_0x28d86d){const _0x239979=function(_0x3c11f9){while(--_0x3c11f9){_0x4ac467['push'](_0x4ac467['shift']());}};_0x239979(++_0x28d86d);}(a420_0x28d8,0xa9));const a420_0x2399=function(_0x4ac467,_0x28d86d){_0x4ac467=_0x4ac467-0x0;let _0x239979=a420_0x28d8[_0x4ac467];return _0x239979;};const _0x59caf4=a420_0x2399;'use strict';const util=require(_0x59caf4('0x65')),_=require('lodash'),squel=require(_0x59caf4('0x46')),qs=require(_0x59caf4('0x57')),logger=require('../../config/logger')(_0x59caf4('0x53')),{getSocket}=require(_0x59caf4('0x68')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op}=require(_0x59caf4('0x5d'));require('./mailQueue.socket')[_0x59caf4('0xa')](socket);function respondWithStatusCode(_0x3c11f9,_0x27c664){return _0x27c664=_0x27c664||0xcc,function(_0x57d887){const _0x4c6085=a420_0x2399;if(_0x57d887)return _0x3c11f9['sendStatus'](_0x27c664);return _0x3c11f9['status'](_0x27c664)[_0x4c6085('0x6c')]();};}function respondWithResult(_0x4676f4,_0x2adab1){return _0x2adab1=_0x2adab1||0xc8,function(_0x19972f){if(_0x19972f)return _0x4676f4['status'](_0x2adab1)['json'](_0x19972f);};}function respondWithFilteredResult(_0x2df0e4,_0x49a15a){return function(_0x535bdc){const _0x592a86=a420_0x2399;if(_0x535bdc){const _0x31e068=_0x535bdc[_0x592a86('0x49')],_0x4424f2=_0x49a15a[_0x592a86('0x30')];let _0x21e6bf=_0x49a15a[_0x592a86('0x30')]+_0x49a15a['limit'],_0x24f0e5;return _0x21e6bf>=_0x31e068?(_0x21e6bf=_0x31e068,_0x24f0e5=0xc8):_0x24f0e5=0xce,_0x2df0e4['status'](_0x24f0e5),_0x2df0e4[_0x592a86('0x58')](_0x592a86('0x21'),_0x4424f2+'-'+_0x21e6bf+'/'+_0x31e068)[_0x592a86('0x8')](_0x535bdc);}return null;};}function saveUpdates(_0x2f449){return function(_0x59954f){const _0x2668ce=a420_0x2399;if(_0x59954f)return _0x59954f[_0x2668ce('0x18')](_0x2f449)[_0x2668ce('0x27')](function(_0x4793f1){return _0x4793f1;});return null;};}function removeEntity(_0x2cd46f){return function(_0x2f0b68){const _0x5ec508=a420_0x2399;if(_0x2f0b68)return _0x2f0b68['destroy']()[_0x5ec508('0x27')](function(){const _0x12189a=_0x5ec508,_0x50ddea=_0x2f0b68[_0x12189a('0x4a')]({'plain':!![]}),_0x26d851='MailQueues';return db[_0x12189a('0x52')]['destroy']({'where':{'type':_0x26d851,'resourceId':_0x50ddea['id']}})['then'](function(){return _0x2f0b68;});})['then'](function(){const _0x3566cb=_0x5ec508;_0x2cd46f[_0x3566cb('0xb')](0xcc)[_0x3566cb('0x6c')]();});};}function handleEntityNotFound(_0x1dd661){return function(_0x1c5672){return!_0x1c5672&&_0x1dd661['sendStatus'](0x194),_0x1c5672;};}function handleError(_0x54f178,_0x513ab5){return _0x513ab5=_0x513ab5||0x1f4,function(_0x4f57bc){const _0x150fb7=a420_0x2399;logger['error'](_0x4f57bc['stack']),_0x4f57bc[_0x150fb7('0x59')]&&delete _0x4f57bc[_0x150fb7('0x59')],_0x54f178['status'](_0x513ab5)[_0x150fb7('0x38')](_0x4f57bc);};}exports[_0x59caf4('0x4')]=function(_0x72dc87,_0x50e2e1){const _0x8d12ce=_0x59caf4;let _0x225de7={};const _0xba0b52={},_0x151508={'count':0x0,'rows':[]},_0x1c96af=_['map'](db['MailQueue'][_0x8d12ce('0x5c')],function(_0x28e9fa){const _0x4ddc8a=_0x8d12ce;return{'name':_0x28e9fa[_0x4ddc8a('0x42')],'type':_0x28e9fa[_0x4ddc8a('0x5')][_0x4ddc8a('0x43')]};});_0xba0b52[_0x8d12ce('0x3')]=_[_0x8d12ce('0x39')](_0x1c96af,_0x8d12ce('0x59')),_0xba0b52[_0x8d12ce('0x61')]=_[_0x8d12ce('0x4e')](_0x72dc87[_0x8d12ce('0x61')]),_0xba0b52['filters']=_[_0x8d12ce('0x5b')](_0xba0b52[_0x8d12ce('0x3')],_0xba0b52['query']),_0x225de7[_0x8d12ce('0x17')]=_[_0x8d12ce('0x5b')](_0xba0b52[_0x8d12ce('0x3')],qs['fields'](_0x72dc87['query'][_0x8d12ce('0x67')])),_0x225de7[_0x8d12ce('0x17')]=_0x225de7[_0x8d12ce('0x17')][_0x8d12ce('0x62')]?_0x225de7[_0x8d12ce('0x17')]:_0xba0b52['model'];typeof _0x72dc87['query'][_0x8d12ce('0x36')]===_0x8d12ce('0x35')&&(_0x225de7[_0x8d12ce('0x51')]=qs['limit'](_0x72dc87['query'][_0x8d12ce('0x51')]),_0x225de7[_0x8d12ce('0x30')]=qs['offset'](_0x72dc87[_0x8d12ce('0x61')]['offset']));_0x225de7[_0x8d12ce('0xd')]=qs[_0x8d12ce('0x13')](_0x72dc87['query'][_0x8d12ce('0x13')]),_0x225de7['where']=qs[_0x8d12ce('0x63')](_[_0x8d12ce('0x4c')](_0x72dc87[_0x8d12ce('0x61')],_0xba0b52[_0x8d12ce('0x63')]),_0x1c96af);_0x72dc87[_0x8d12ce('0x61')][_0x8d12ce('0x2f')]&&(_0x225de7[_0x8d12ce('0x1c')]=_['merge'](_0x225de7[_0x8d12ce('0x1c')],{[Op['or']]:_[_0x8d12ce('0x39')](_0x1c96af,function(_0x58b19c){const _0x1b1ac4=_0x8d12ce;if(_0x58b19c[_0x1b1ac4('0x5')]!==_0x1b1ac4('0x1a')){const _0x150e89={};return _0x150e89[_0x58b19c[_0x1b1ac4('0x59')]]={[Op[_0x1b1ac4('0x1f')]]:'%'+_0x72dc87[_0x1b1ac4('0x61')][_0x1b1ac4('0x2f')]+'%'},_0x150e89;}})}));_0x225de7=_[_0x8d12ce('0x14')]({},_0x225de7,_0x72dc87['options']);const _0x461804={'where':_0x225de7[_0x8d12ce('0x1c')]};return db[_0x8d12ce('0x3d')][_0x8d12ce('0x49')](_0x461804)[_0x8d12ce('0x27')](function(_0x59340f){const _0x2034b0=_0x8d12ce;return _0x151508[_0x2034b0('0x49')]=_0x59340f,_0x72dc87[_0x2034b0('0x61')][_0x2034b0('0x2d')]&&(_0x225de7['include']=[{'all':!![]}]),db[_0x2034b0('0x3d')][_0x2034b0('0x33')](_0x225de7);})[_0x8d12ce('0x27')](function(_0xa90b55){const _0x495460=_0x8d12ce;return _0x151508[_0x495460('0x55')]=_0xa90b55,_0x151508;})[_0x8d12ce('0x27')](respondWithFilteredResult(_0x50e2e1,_0x225de7))[_0x8d12ce('0x25')](handleError(_0x50e2e1,null));},exports[_0x59caf4('0x44')]=function(_0x4fb5c1,_0x7261c9){const _0x4b1ede=_0x59caf4;let _0x1691b2={'raw':!![],'where':{'id':_0x4fb5c1[_0x4b1ede('0x2')]['id']}};const _0x5b1691={};return _0x5b1691['model']=_[_0x4b1ede('0x4e')](db[_0x4b1ede('0x3d')]['rawAttributes']),_0x5b1691[_0x4b1ede('0x61')]=_[_0x4b1ede('0x4e')](_0x4fb5c1[_0x4b1ede('0x61')]),_0x5b1691[_0x4b1ede('0x63')]=_[_0x4b1ede('0x5b')](_0x5b1691[_0x4b1ede('0x3')],_0x5b1691[_0x4b1ede('0x61')]),_0x1691b2[_0x4b1ede('0x17')]=_[_0x4b1ede('0x5b')](_0x5b1691['model'],qs[_0x4b1ede('0x67')](_0x4fb5c1['query'][_0x4b1ede('0x67')])),_0x1691b2[_0x4b1ede('0x17')]=_0x1691b2['attributes'][_0x4b1ede('0x62')]?_0x1691b2[_0x4b1ede('0x17')]:_0x5b1691[_0x4b1ede('0x3')],_0x4fb5c1[_0x4b1ede('0x61')][_0x4b1ede('0x2d')]&&(_0x1691b2[_0x4b1ede('0x60')]=[{'all':!![]}]),_0x1691b2=_[_0x4b1ede('0x14')]({},_0x1691b2,_0x4fb5c1[_0x4b1ede('0x1d')]),db['MailQueue'][_0x4b1ede('0x47')](_0x1691b2)[_0x4b1ede('0x27')](handleEntityNotFound(_0x7261c9,null))['then'](respondWithResult(_0x7261c9,null))[_0x4b1ede('0x25')](handleError(_0x7261c9,null));},exports[_0x59caf4('0xf')]=function(_0x1524b6,_0x37db48){const _0x196577=_0x59caf4;return db[_0x196577('0x3d')][_0x196577('0xf')](_0x1524b6[_0x196577('0x3e')],{})[_0x196577('0x27')](function(_0x3c5a78){const _0x225f8e=_0x196577,_0x5412ab=_0x1524b6[_0x225f8e('0x1')]['get']({'plain':!![]});if(!_0x5412ab)throw new Error(_0x225f8e('0x15'));if(_0x5412ab[_0x225f8e('0x10')]===_0x225f8e('0x1')){const _0x26f0d6=_0x3c5a78[_0x225f8e('0x4a')]({'plain':!![]}),_0x1da9b1=_0x225f8e('0x64');return db[_0x225f8e('0x69')]['findOne']({'where':{'name':_0x1da9b1,'userProfileId':_0x5412ab['userProfileId']},'raw':!![]})[_0x225f8e('0x27')](function(_0x475a2a){const _0x5938fb=_0x225f8e;return _0x475a2a&&_0x475a2a['autoAssociation']===0x0?db[_0x5938fb('0x52')][_0x5938fb('0xf')]({'name':_0x26f0d6[_0x5938fb('0x59')],'resourceId':_0x26f0d6['id'],'type':_0x475a2a[_0x5938fb('0x59')],'sectionId':_0x475a2a['id']},{})[_0x5938fb('0x27')](function(){return _0x3c5a78;}):_0x3c5a78;})[_0x225f8e('0x25')](function(_0x31a115){const _0x15eab7=_0x225f8e;logger[_0x15eab7('0x5f')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x31a115);throw _0x31a115;});}return _0x3c5a78;})[_0x196577('0x27')](respondWithResult(_0x37db48,0xc9))[_0x196577('0x25')](handleError(_0x37db48,null));},exports['update']=function(_0x438904,_0x863c35){const _0xf88335=_0x59caf4;return _0x438904[_0xf88335('0x3e')]['id']&&delete _0x438904[_0xf88335('0x3e')]['id'],db[_0xf88335('0x3d')][_0xf88335('0x47')]({'where':{'id':_0x438904[_0xf88335('0x2')]['id']}})[_0xf88335('0x27')](handleEntityNotFound(_0x863c35,null))[_0xf88335('0x27')](saveUpdates(_0x438904[_0xf88335('0x3e')],null))['then'](respondWithResult(_0x863c35,null))[_0xf88335('0x25')](handleError(_0x863c35,null));},exports[_0x59caf4('0x3a')]=function(_0x20cc99,_0x5d770e){const _0x33c1b7=_0x59caf4;return db[_0x33c1b7('0x3d')][_0x33c1b7('0x47')]({'where':{'id':_0x20cc99[_0x33c1b7('0x2')]['id']}})[_0x33c1b7('0x27')](handleEntityNotFound(_0x5d770e,null))[_0x33c1b7('0x27')](removeEntity(_0x5d770e,null))[_0x33c1b7('0x25')](handleError(_0x5d770e,null));},exports[_0x59caf4('0x3c')]=function(_0x51d46d,_0x346a3a){const _0x13f793=_0x59caf4;return db[_0x13f793('0x3d')][_0x13f793('0x3c')]()[_0x13f793('0x27')](respondWithResult(_0x346a3a,null))[_0x13f793('0x25')](handleError(_0x346a3a,null));},exports[_0x59caf4('0x28')]=function(_0x540dc7,_0x470504){const _0x17738e=_0x59caf4;let _0x1078fb={'raw':!![],'where':{}};const _0x201814={};let _0x2a6e72;return db['MailQueue'][_0x17738e('0x47')]({'where':{'id':_0x540dc7[_0x17738e('0x2')]['id']}})[_0x17738e('0x27')](handleEntityNotFound(_0x470504,null))[_0x17738e('0x27')](function(_0x2585c6){const _0x4b18f3=_0x17738e;if(_0x2585c6)return _0x2a6e72=_0x2585c6[_0x4b18f3('0x4a')]({'plain':!![]}),_0x201814[_0x4b18f3('0x3')]=_[_0x4b18f3('0x4e')](db[_0x4b18f3('0x3b')][_0x4b18f3('0x5c')]),_0x201814['query']=_[_0x4b18f3('0x4e')](_0x540dc7[_0x4b18f3('0x61')]),_0x201814[_0x4b18f3('0x63')]=_[_0x4b18f3('0x5b')](_0x201814[_0x4b18f3('0x3')],_0x201814['query']),_0x1078fb['attributes']=_[_0x4b18f3('0x5b')](_0x201814[_0x4b18f3('0x3')],qs[_0x4b18f3('0x67')](_0x540dc7[_0x4b18f3('0x61')][_0x4b18f3('0x67')])),_0x1078fb[_0x4b18f3('0x17')]=_0x1078fb[_0x4b18f3('0x17')]['length']?_0x1078fb[_0x4b18f3('0x17')]:_0x201814[_0x4b18f3('0x3')],typeof _0x540dc7[_0x4b18f3('0x61')][_0x4b18f3('0x36')]==='undefined'&&(_0x1078fb[_0x4b18f3('0x51')]=qs[_0x4b18f3('0x51')](_0x540dc7[_0x4b18f3('0x61')][_0x4b18f3('0x51')]),_0x1078fb[_0x4b18f3('0x30')]=qs['offset'](_0x540dc7[_0x4b18f3('0x61')]['offset'])),_0x1078fb[_0x4b18f3('0xd')]=qs[_0x4b18f3('0x13')](_0x540dc7[_0x4b18f3('0x61')][_0x4b18f3('0x13')]),_0x1078fb[_0x4b18f3('0x1c')]=qs[_0x4b18f3('0x63')](_[_0x4b18f3('0x4c')](_0x540dc7[_0x4b18f3('0x61')],_0x201814['filters'])),_0x1078fb[_0x4b18f3('0x1c')][_0x4b18f3('0x66')]=_0x2585c6['id'],_0x540dc7[_0x4b18f3('0x61')][_0x4b18f3('0x2f')]&&(_0x1078fb[_0x4b18f3('0x1c')]=_[_0x4b18f3('0x14')](_0x1078fb[_0x4b18f3('0x1c')],{[Op['or']]:_[_0x4b18f3('0x39')](_0x1078fb[_0x4b18f3('0x17')],function(_0x5842eb){const _0x3eafcd=_0x4b18f3,_0x24b965={};return _0x24b965[_0x5842eb]={[Op[_0x3eafcd('0x1f')]]:'%'+_0x540dc7['query']['filter']+'%'},_0x24b965;})})),_0x1078fb=_[_0x4b18f3('0x14')]({},_0x1078fb,_0x540dc7[_0x4b18f3('0x1d')]),db[_0x4b18f3('0x3b')][_0x4b18f3('0x33')](_0x1078fb);})['then'](function(_0x1a7f3f){const _0x225b72=_0x17738e;if(_0x1a7f3f)return db[_0x225b72('0x29')][_0x225b72('0x26')]({'where':{'id':_['map'](_0x1a7f3f,_0x225b72('0x4b')),'role':_0x225b72('0x6')},'attributes':['id',_0x225b72('0x59'),_0x225b72('0x0'),_0x225b72('0x54'),_0x225b72('0xc')]});})[_0x17738e('0x27')](function(_0x294318){const _0x1e46bd=_0x17738e;return _0x294318?{'count':_0x294318['count'],'rows':_[_0x1e46bd('0x39')](_0x294318[_0x1e46bd('0x55')],function(_0x1bc64d){const _0x33e12f=_0x1e46bd;return{'membername':_0x1bc64d[_0x33e12f('0x59')],'UserId':_0x1bc64d['id'],'queue_name':_0x2a6e72['name'],'MailQueueId':_0x2a6e72['id'],'interface':util['format'](_0x33e12f('0x6a'),'SIP',_0x1bc64d[_0x33e12f('0x59')]),'penalty':0x0,'paused':_0x1bc64d[_0x33e12f('0x0')],'createdAt':_0x1bc64d[_0x33e12f('0xc')],'updatedAt':_0x1bc64d[_0x33e12f('0x54')]};})}:{'count':0x0,'rows':[]};})['then'](respondWithFilteredResult(_0x470504,_0x1078fb))[_0x17738e('0x25')](handleError(_0x470504,null));},exports[_0x59caf4('0x2c')]=function(_0x2c88ff,_0x3a1079){const _0x2de79f=_0x59caf4;let _0x549e5f={};const _0x543f25={};let _0x1ca082,_0x444597;return db[_0x2de79f('0x3d')][_0x2de79f('0x47')]({'where':{'id':_0x2c88ff[_0x2de79f('0x2')]['id']}})[_0x2de79f('0x27')](handleEntityNotFound(_0x3a1079,null))['then'](function(_0xf35d2f){const _0x51edb8=_0x2de79f;if(_0xf35d2f)return _0x1ca082=_0xf35d2f,_0x543f25['model']=_[_0x51edb8('0x4e')](db['Team'][_0x51edb8('0x5c')]),_0x543f25[_0x51edb8('0x61')]=_[_0x51edb8('0x4e')](_0x2c88ff[_0x51edb8('0x61')]),_0x543f25[_0x51edb8('0x63')]=_[_0x51edb8('0x5b')](_0x543f25[_0x51edb8('0x3')],_0x543f25[_0x51edb8('0x61')]),_0x549e5f['attributes']=_['intersection'](_0x543f25[_0x51edb8('0x3')],qs[_0x51edb8('0x67')](_0x2c88ff[_0x51edb8('0x61')][_0x51edb8('0x67')])),_0x549e5f[_0x51edb8('0x17')]=_0x549e5f[_0x51edb8('0x17')][_0x51edb8('0x62')]?_0x549e5f['attributes']:_0x543f25['model'],_0x549e5f[_0x51edb8('0xd')]=qs[_0x51edb8('0x13')](_0x2c88ff[_0x51edb8('0x61')]['sort']),_0x549e5f[_0x51edb8('0x1c')]=qs['filters'](_[_0x51edb8('0x4c')](_0x2c88ff[_0x51edb8('0x61')],_0x543f25[_0x51edb8('0x63')])),_0x2c88ff[_0x51edb8('0x61')][_0x51edb8('0x2f')]&&(_0x549e5f[_0x51edb8('0x1c')]=_[_0x51edb8('0x14')](_0x549e5f[_0x51edb8('0x1c')],{[Op['or']]:_['map'](_0x549e5f[_0x51edb8('0x17')],function(_0x24f51a){const _0x521eed=_0x51edb8,_0x2be4f0={};return _0x2be4f0[_0x24f51a]={[Op[_0x521eed('0x1f')]]:'%'+_0x2c88ff[_0x521eed('0x61')]['filter']+'%'},_0x2be4f0;})})),_0x549e5f=_[_0x51edb8('0x14')]({},_0x549e5f,_0x2c88ff['options']),_0x1ca082[_0x51edb8('0x2c')](_0x549e5f);})[_0x2de79f('0x27')](function(_0x10ce12){const _0x1e90e7=_0x2de79f;if(_0x10ce12)return _0x444597=_0x10ce12['length'],typeof _0x2c88ff[_0x1e90e7('0x61')]['nolimit']==='undefined'&&(_0x549e5f[_0x1e90e7('0x51')]=qs[_0x1e90e7('0x51')](_0x2c88ff[_0x1e90e7('0x61')]['limit']),_0x549e5f[_0x1e90e7('0x30')]=qs[_0x1e90e7('0x30')](_0x2c88ff[_0x1e90e7('0x61')][_0x1e90e7('0x30')])),_0x1ca082[_0x1e90e7('0x2c')](_0x549e5f);})[_0x2de79f('0x27')](function(_0x2b2198){if(_0x2b2198)return _0x2b2198?{'count':_0x444597,'rows':_0x2b2198}:null;})[_0x2de79f('0x27')](respondWithResult(_0x3a1079,null))['catch'](handleError(_0x3a1079,null));},exports[_0x59caf4('0x31')]=function(_0x58e98d,_0xdd7d2e){const _0x5d12b6=_0x59caf4,_0x4ade0f=_0x58e98d['body'][_0x5d12b6('0x50')];return db[_0x5d12b6('0x16')][_0x5d12b6('0x33')]({'where':{'id':_0x4ade0f},'attributes':['id'],'include':[{'model':db['User'],'as':'Agents','attributes':['id',_0x5d12b6('0x59'),_0x5d12b6('0x3f'),_0x5d12b6('0x4d'),'interface'],'raw':!![]}]})['then'](function(_0x10519a){const _0x326403=_0x5d12b6;if(_0x10519a){const _0x2c24a3=_[_0x326403('0x5e')](_0x10519a,function(_0x56f29b){const _0x2e54b4=_0x326403,_0x17c3fc=_0x56f29b[_0x2e54b4('0x4a')]({'plain':!![]});return _0x17c3fc['Agents'];});return db[_0x326403('0x3d')][_0x326403('0x47')]({'where':{'id':_0x58e98d[_0x326403('0x2')]['id']}})[_0x326403('0x27')](function(_0x188b43){const _0x2ffa1=_0x326403;return db[_0x2ffa1('0x5d')]['transaction'](function(_0x23a8a9){const _0x3df691=_0x2ffa1;return _0x188b43[_0x3df691('0x31')](_0x4ade0f,{'transaction':_0x23a8a9})[_0x3df691('0x27')](function(){return Promise['each'](_0x2c24a3,function(_0x573fd3){const _0x1ab91a=a420_0x2399;return db[_0x1ab91a('0x3b')][_0x1ab91a('0x5a')]({'where':{'UserId':_0x573fd3['id'],'MailQueueId':_0x58e98d[_0x1ab91a('0x2')]['id']},'transaction':_0x23a8a9});});})[_0x3df691('0x27')](function(){const _0x56dcd3=_0x3df691;_0x2c24a3[_0x56dcd3('0x9')](function(_0x90014a){const _0x58aea7=_0x56dcd3;socket['emit'](_0x58aea7('0x1e'),{'UserId':_0x90014a['id'],'MailQueueId':_0x188b43['id']});});});});});}})[_0x5d12b6('0x27')](respondWithStatusCode(_0xdd7d2e,null))[_0x5d12b6('0x25')](handleError(_0xdd7d2e,null));},exports[_0x59caf4('0x24')]=function(_0x18a19d,_0xe40a79){const _0x56b443=_0x59caf4;return db[_0x56b443('0x16')][_0x56b443('0x33')]({'where':{'id':_0x18a19d[_0x56b443('0x61')][_0x56b443('0x50')]},'attributes':['id'],'include':[{'model':db[_0x56b443('0x29')],'as':'Agents','attributes':['id'],'raw':!![]}]})[_0x56b443('0x27')](handleEntityNotFound(_0xe40a79,null))[_0x56b443('0x27')](function(_0xe0c4be){const _0xa62e93=_0x56b443,_0x22a74b=_['map'](_0xe0c4be,'id');let _0x5cd267=[];const _0x312280=[],_0x56e5a3=squel['select']();_0x56e5a3[_0xa62e93('0x32')](_0xa62e93('0x37'))[_0xa62e93('0x56')](_0xa62e93('0x4f'),'tq')[_0xa62e93('0x19')]('user_has_teams','ut','ut.TeamId\x20=\x20tq.TeamId')[_0xa62e93('0x1c')](_0xa62e93('0x34'),_0x18a19d[_0xa62e93('0x2')]['id']);for(let _0x1439a9=0x0;_0x1439a9<_0xe0c4be[_0xa62e93('0x62')];_0x1439a9+=0x1){const _0xfa03df=_0xe0c4be[_0x1439a9];for(let _0x2b4a2f=0x0;_0x2b4a2f<_0xfa03df['Agents']['length'];_0x2b4a2f+=0x1){const _0x5529d1=_0xfa03df['Agents'][_0x2b4a2f],_0x5a49c4=_0x56e5a3[_0xa62e93('0x2e')]();_0x5a49c4[_0xa62e93('0x1c')](_0xa62e93('0x2a'),_0x5529d1['id']),_0x312280[_0xa62e93('0x1b')](db[_0xa62e93('0x5d')][_0xa62e93('0x61')](_0x5a49c4[_0xa62e93('0x45')](),{'type':db[_0xa62e93('0x5d')][_0xa62e93('0x23')][_0xa62e93('0x2b')]})['then'](function(_0x5d0338){const _0x4f5138=_0xa62e93;if(_0x5d0338[_0x4f5138('0x62')]===0x1)return _0x5529d1['id'];else{const _0x455399=_['every'](_[_0x4f5138('0x39')](_0x5d0338,'TeamId'),function(_0x58c1f2){const _0x37399e=_0x4f5138;return _[_0x37399e('0x40')](_0x22a74b,_0x58c1f2);});if(_0x455399)return _0x5529d1['id'];}}));}}return Promise[_0xa62e93('0x41')](_0x312280)[_0xa62e93('0x27')](function(_0x5b0d68){const _0x5eb085=_0xa62e93;return _0x5cd267=_(_0x5cd267)['union'](_0x5b0d68)[_0x5eb085('0x7')]()[_0x5eb085('0xe')](),db['MailQueue']['findOne']({'where':{'id':_0x18a19d['params']['id']}})['then'](function(_0xf6b7c8){const _0x345eba=_0x5eb085;return db[_0x345eba('0x5d')][_0x345eba('0x6b')](function(_0x1cd991){const _0x5d9f30=_0x345eba;return _0xf6b7c8[_0x5d9f30('0x24')](_0x18a19d[_0x5d9f30('0x61')][_0x5d9f30('0x50')],{'transaction':_0x1cd991})['then'](function(){const _0xa31cd4=_0x5d9f30;if(!_[_0xa31cd4('0x12')](_0x5cd267))return _0xf6b7c8[_0xa31cd4('0x6d')](_0x5cd267,{'transaction':_0x1cd991});})['then'](function(){const _0x15b148=_0x5d9f30;_0x5cd267[_0x15b148('0x9')](function(_0x707f4e){socket['emit']('userMailQueue:remove',{'UserId':_0x707f4e,'MailQueueId':_0xf6b7c8['id']});});});});});});})[_0x56b443('0x27')](respondWithStatusCode(_0xe40a79,null))[_0x56b443('0x25')](handleError(_0xe40a79,null));},exports['addAgents']=function(_0x473a58,_0x533cf0){const _0xf07a66=_0x59caf4;return db[_0xf07a66('0x3d')]['findOne']({'where':{'id':_0x473a58[_0xf07a66('0x2')]['id']}})[_0xf07a66('0x27')](function(_0x455f56){const _0x3c3476=_0xf07a66;if(_0x455f56)return _0x455f56['addAgents'](_0x473a58[_0x3c3476('0x3e')]['ids'],{'through':_['omit'](_0x473a58['body'],[_0x3c3476('0x50'),'id'])})[_0x3c3476('0x27')](function(_0x4d893b){const _0x54e7df=_0x3c3476;for(let _0x3a4e0b=0x0;_0x3a4e0b<_0x473a58[_0x54e7df('0x3e')][_0x54e7df('0x50')]['length'];_0x3a4e0b+=0x1){socket[_0x54e7df('0x48')](_0x54e7df('0x1e'),{'UserId':_0x473a58[_0x54e7df('0x3e')][_0x54e7df('0x50')][_0x3a4e0b],'MailQueueId':_0x473a58[_0x54e7df('0x2')]['id']});}return _0x4d893b;});})[_0xf07a66('0x27')](respondWithResult(_0x533cf0,null))['catch'](handleError(_0x533cf0,null));},exports[_0x59caf4('0x6d')]=function(_0x26ce80,_0x3b2683){const _0x40a3d0=_0x59caf4;return db['MailQueue'][_0x40a3d0('0x47')]({'where':{'id':_0x26ce80[_0x40a3d0('0x2')]['id']}})[_0x40a3d0('0x27')](handleEntityNotFound(_0x3b2683,null))[_0x40a3d0('0x27')](function(_0x306453){const _0x5249f9=_0x40a3d0;if(_0x306453)return _0x306453['removeAgents'](_0x26ce80[_0x5249f9('0x61')][_0x5249f9('0x50')])[_0x5249f9('0x27')](function(){const _0x2c605c=_0x5249f9;if(_[_0x2c605c('0x11')](_0x26ce80['query'][_0x2c605c('0x50')]))for(let _0x175e6d=0x0;_0x175e6d<_0x26ce80[_0x2c605c('0x61')][_0x2c605c('0x50')][_0x2c605c('0x62')];_0x175e6d+=0x1){socket[_0x2c605c('0x48')](_0x2c605c('0x20'),{'UserId':Number(_0x26ce80[_0x2c605c('0x61')][_0x2c605c('0x50')][_0x175e6d]),'MailQueueId':Number(_0x26ce80[_0x2c605c('0x2')]['id'])});}else socket[_0x2c605c('0x48')](_0x2c605c('0x20'),{'UserId':Number(_0x26ce80[_0x2c605c('0x61')][_0x2c605c('0x50')]),'MailQueueId':Number(_0x26ce80[_0x2c605c('0x2')]['id'])});});})[_0x40a3d0('0x27')](respondWithStatusCode(_0x3b2683,null))[_0x40a3d0('0x25')](handleError(_0x3b2683,null));},exports[_0x59caf4('0x22')]=function(_0x2ede18,_0x24652a){const _0x315c09=_0x59caf4;let _0x41f852={};const _0x14b6f8={};let _0x2d015f,_0x3ca36f;return db[_0x315c09('0x3d')][_0x315c09('0x47')]({'where':{'id':_0x2ede18[_0x315c09('0x2')]['id']}})[_0x315c09('0x27')](handleEntityNotFound(_0x24652a,null))[_0x315c09('0x27')](function(_0x1412fa){const _0x4a7d8a=_0x315c09;if(_0x1412fa)return _0x2d015f=_0x1412fa,_0x14b6f8[_0x4a7d8a('0x3')]=_[_0x4a7d8a('0x4e')](db[_0x4a7d8a('0x29')][_0x4a7d8a('0x5c')]),_0x14b6f8['query']=_[_0x4a7d8a('0x4e')](_0x2ede18[_0x4a7d8a('0x61')]),_0x14b6f8[_0x4a7d8a('0x63')]=_[_0x4a7d8a('0x5b')](_0x14b6f8[_0x4a7d8a('0x3')],_0x14b6f8[_0x4a7d8a('0x61')]),_0x41f852[_0x4a7d8a('0x17')]=_['intersection'](_0x14b6f8[_0x4a7d8a('0x3')],qs['fields'](_0x2ede18[_0x4a7d8a('0x61')][_0x4a7d8a('0x67')])),_0x41f852[_0x4a7d8a('0x17')]=_0x41f852[_0x4a7d8a('0x17')]['length']?_0x41f852[_0x4a7d8a('0x17')]:_0x14b6f8[_0x4a7d8a('0x3')],_0x41f852[_0x4a7d8a('0xd')]=qs['sort'](_0x2ede18['query'][_0x4a7d8a('0x13')]),_0x41f852[_0x4a7d8a('0x1c')]=qs[_0x4a7d8a('0x63')](_[_0x4a7d8a('0x4c')](_0x2ede18['query'],_0x14b6f8[_0x4a7d8a('0x63')])),_0x2ede18[_0x4a7d8a('0x61')][_0x4a7d8a('0x2f')]&&(_0x41f852['where']=_[_0x4a7d8a('0x14')](_0x41f852[_0x4a7d8a('0x1c')],{[Op['or']]:_['map'](_0x41f852['attributes'],function(_0x3fdebf){const _0x4615e2=_0x4a7d8a,_0x355818={};return _0x355818[_0x3fdebf]={[Op[_0x4615e2('0x1f')]]:'%'+_0x2ede18['query'][_0x4615e2('0x2f')]+'%'},_0x355818;})})),_0x41f852=_['merge']({},_0x41f852,_0x2ede18['options']),_0x2d015f[_0x4a7d8a('0x22')](_0x41f852);})[_0x315c09('0x27')](function(_0x4da73c){const _0x3513ba=_0x315c09;if(_0x4da73c)return _0x3ca36f=_0x4da73c['length'],typeof _0x2ede18['query'][_0x3513ba('0x36')]===_0x3513ba('0x35')&&(_0x41f852[_0x3513ba('0x51')]=qs[_0x3513ba('0x51')](_0x2ede18[_0x3513ba('0x61')][_0x3513ba('0x51')]),_0x41f852[_0x3513ba('0x30')]=qs['offset'](_0x2ede18[_0x3513ba('0x61')][_0x3513ba('0x30')])),_0x2d015f['getAgents'](_0x41f852);})[_0x315c09('0x27')](function(_0x229065){if(_0x229065)return _0x229065?{'count':_0x3ca36f,'rows':_0x229065}:null;})['then'](respondWithResult(_0x24652a,null))[_0x315c09('0x25')](handleError(_0x24652a,null));}; \ No newline at end of file +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 diff --git a/server/api/mailQueue/mailQueue.events.js b/server/api/mailQueue/mailQueue.events.js index f680f8d..302caaf 100644 --- a/server/api/mailQueue/mailQueue.events.js +++ b/server/api/mailQueue/mailQueue.events.js @@ -1 +1 @@ -const a421_0x33fd=['remove','update','emit','events','save','undefined','exports','setMaxListeners','../../mysqldb'];(function(_0x290f70,_0x33fd10){const _0x4bb798=function(_0x5bfae8){while(--_0x5bfae8){_0x290f70['push'](_0x290f70['shift']());}};_0x4bb798(++_0x33fd10);}(a421_0x33fd,0x1b7));const a421_0x4bb7=function(_0x290f70,_0x33fd10){_0x290f70=_0x290f70-0x0;let _0x4bb798=a421_0x33fd[_0x290f70];return _0x4bb798;};const _0x4922ed=a421_0x4bb7;'use strict';const EventEmitter=require(_0x4922ed('0x5')),MailQueue=require(_0x4922ed('0x1'))['db']['MailQueue'],MailQueueEvents=new EventEmitter();MailQueueEvents[_0x4922ed('0x0')](0x0);const events={'afterCreate':_0x4922ed('0x6'),'afterUpdate':_0x4922ed('0x3'),'afterDestroy':_0x4922ed('0x2')};function emitEvent(_0x5bfae8){return function(_0x321382){const _0x10861e=a421_0x4bb7;MailQueueEvents[_0x10861e('0x4')](_0x5bfae8+':'+_0x321382['id'],_0x321382),MailQueueEvents['emit'](_0x5bfae8,_0x321382);};}for(const e in events){if(typeof events[e]!==_0x4922ed('0x7')){const event=events[e];MailQueue['addHook'](e,emitEvent(event));}}module[_0x4922ed('0x8')]=MailQueueEvents; \ No newline at end of file +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 diff --git a/server/api/mailQueue/mailQueue.model.js b/server/api/mailQueue/mailQueue.model.js index 8d491b6..d967a0b 100644 --- a/server/api/mailQueue/mailQueue.model.js +++ b/server/api/mailQueue/mailQueue.model.js @@ -1 +1 @@ -const a422_0x4ada=['MailQueue','define','mail_queues','./mailQueue.attributes','exports'];(function(_0x37e879,_0x4ada3d){const _0x117f1b=function(_0x45d02a){while(--_0x45d02a){_0x37e879['push'](_0x37e879['shift']());}};_0x117f1b(++_0x4ada3d);}(a422_0x4ada,0x172));const a422_0x117f=function(_0x37e879,_0x4ada3d){_0x37e879=_0x37e879-0x0;let _0x117f1b=a422_0x4ada[_0x37e879];return _0x117f1b;};const _0x1ad02f=a422_0x117f;'use strict';const attributes=require(_0x1ad02f('0x3'));module[_0x1ad02f('0x4')]=function(_0x45d02a){const _0x1573e8=_0x1ad02f,_0x4c52af=_0x45d02a[_0x1573e8('0x1')](_0x1573e8('0x0'),attributes,{'tableName':_0x1573e8('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4c52af;}; \ No newline at end of file +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 diff --git a/server/api/mailQueue/mailQueue.rpc.js b/server/api/mailQueue/mailQueue.rpc.js index 4283358..85c7fe2 100644 --- a/server/api/mailQueue/mailQueue.rpc.js +++ b/server/api/mailQueue/mailQueue.rpc.js @@ -1 +1 @@ -const a423_0x188d=['lodash','model','info','../../rediscache','MailQueue','attributes','map','GetMailQueue','error','raw','findAll','./mailQueue.socket','debug','include','findOne','options','where','stringify','../../config/logger','then','catch','rpc','message','ShowMailQueue','../../mysqldb','limit'];(function(_0x43e77b,_0x188d5f){const _0x546253=function(_0x49c481){while(--_0x49c481){_0x43e77b['push'](_0x43e77b['shift']());}};_0x546253(++_0x188d5f);}(a423_0x188d,0x1c5));const a423_0x5462=function(_0x43e77b,_0x188d5f){_0x43e77b=_0x43e77b-0x0;let _0x546253=a423_0x188d[_0x43e77b];return _0x546253;};const _0x171f02=a423_0x5462;'use strict';const _=require(_0x171f02('0xf')),db=require(_0x171f02('0xd'))['db'],logger=require(_0x171f02('0x7'))(_0x171f02('0xa')),{getSocket}=require(_0x171f02('0x12')),socket=getSocket();require(_0x171f02('0x0'))['register'](socket),exports[_0x171f02('0x16')]=function(_0x49c481){const _0xef1e74=this;return new Promise(function(_0x57dfaa,_0x266f83){const _0x5393e8=a423_0x5462;return db[_0x5393e8('0x13')][_0x5393e8('0x19')]({'raw':_0x49c481[_0x5393e8('0x4')]?_0x49c481[_0x5393e8('0x4')][_0x5393e8('0x18')]===undefined?!![]:![]:!![],'where':_0x49c481[_0x5393e8('0x4')]?_0x49c481[_0x5393e8('0x4')][_0x5393e8('0x5')]||null:null,'attributes':_0x49c481[_0x5393e8('0x4')]?_0x49c481[_0x5393e8('0x4')][_0x5393e8('0x14')]||null:null,'limit':_0x49c481[_0x5393e8('0x4')]?_0x49c481['options'][_0x5393e8('0xe')]||null:null,'include':_0x49c481[_0x5393e8('0x4')]?_0x49c481[_0x5393e8('0x4')][_0x5393e8('0x2')]?_[_0x5393e8('0x15')](_0x49c481[_0x5393e8('0x4')][_0x5393e8('0x2')],function(_0x5039a5){const _0x11071e=_0x5393e8;return{'model':db[_0x5039a5[_0x11071e('0x10')]],'as':_0x5039a5['as'],'attributes':_0x5039a5[_0x11071e('0x14')],'include':_0x5039a5['include']?_['map'](_0x5039a5[_0x11071e('0x2')],function(_0x333000){const _0x4ee211=_0x11071e;return{'model':db[_0x333000[_0x4ee211('0x10')]],'as':_0x333000['as'],'attributes':_0x333000['attributes'],'include':_0x333000[_0x4ee211('0x2')]?_['map'](_0x333000[_0x4ee211('0x2')],function(_0x4aef95){const _0xa5e2e=_0x4ee211;return{'model':db[_0x4aef95[_0xa5e2e('0x10')]],'as':_0x4aef95['as'],'attributes':_0x4aef95['attributes']};}):[]};}):[]};}):[]:[]})[_0x5393e8('0x8')](function(_0x5e5386){const _0x4244f7=_0x5393e8;logger[_0x4244f7('0x11')](_0x4244f7('0x16'),_0x49c481),logger['debug'](_0x4244f7('0x16'),_0x49c481,JSON[_0x4244f7('0x6')](_0x5e5386)),_0x57dfaa(_0x5e5386);})[_0x5393e8('0x9')](function(_0x49ba5b){const _0x45c110=_0x5393e8;logger[_0x45c110('0x17')]('GetMailQueue',_0x49ba5b[_0x45c110('0xb')],_0x49c481),_0x266f83(_0xef1e74[_0x45c110('0x17')](0x1f4,_0x49ba5b[_0x45c110('0xb')]));});});},exports[_0x171f02('0xc')]=function(_0x31a0a9){const _0x11e912=this;return new Promise(function(_0x3d81da,_0x1733da){const _0x310740=a423_0x5462;return db[_0x310740('0x13')][_0x310740('0x3')]({'raw':_0x31a0a9[_0x310740('0x4')]?_0x31a0a9['options'][_0x310740('0x18')]===undefined?!![]:![]:!![],'where':_0x31a0a9['options']?_0x31a0a9[_0x310740('0x4')][_0x310740('0x5')]||null:null,'attributes':_0x31a0a9[_0x310740('0x4')]?_0x31a0a9[_0x310740('0x4')][_0x310740('0x14')]||null:null,'include':_0x31a0a9[_0x310740('0x4')]?_0x31a0a9[_0x310740('0x4')][_0x310740('0x2')]?_[_0x310740('0x15')](_0x31a0a9[_0x310740('0x4')][_0x310740('0x2')],function(_0x17cfb4){const _0x55b8dc=_0x310740;return{'model':db[_0x17cfb4[_0x55b8dc('0x10')]],'as':_0x17cfb4['as'],'attributes':_0x17cfb4[_0x55b8dc('0x14')],'include':_0x17cfb4[_0x55b8dc('0x2')]?_[_0x55b8dc('0x15')](_0x17cfb4[_0x55b8dc('0x2')],function(_0x1f3c62){const _0x11957c=_0x55b8dc;return{'model':db[_0x1f3c62[_0x11957c('0x10')]],'as':_0x1f3c62['as'],'attributes':_0x1f3c62['attributes'],'include':_0x1f3c62[_0x11957c('0x2')]?_['map'](_0x1f3c62[_0x11957c('0x2')],function(_0x48bdac){const _0x49a11b=_0x11957c;return{'model':db[_0x48bdac[_0x49a11b('0x10')]],'as':_0x48bdac['as'],'attributes':_0x48bdac['attributes']};}):[]};}):[]};}):[]:[]})[_0x310740('0x8')](function(_0x286884){const _0x34e44d=_0x310740;logger[_0x34e44d('0x11')](_0x34e44d('0xc'),_0x31a0a9),logger[_0x34e44d('0x1')](_0x34e44d('0xc'),_0x31a0a9,JSON[_0x34e44d('0x6')](_0x286884)),_0x3d81da(_0x286884);})[_0x310740('0x9')](function(_0x3721d9){const _0x152715=_0x310740;logger[_0x152715('0x17')]('ShowMailQueue',_0x3721d9[_0x152715('0xb')],_0x31a0a9),_0x1733da(_0x11e912[_0x152715('0x17')](0x1f4,_0x3721d9[_0x152715('0xb')]));});});}; \ No newline at end of file +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 diff --git a/server/api/mailQueue/mailQueue.socket.js b/server/api/mailQueue/mailQueue.socket.js index 6860798..2d1fbf2 100644 --- a/server/api/mailQueue/mailQueue.socket.js +++ b/server/api/mailQueue/mailQueue.socket.js @@ -1 +1 @@ -const a424_0x1f9a=['length','register','save','emit','mailQueue:','update'];(function(_0x482d19,_0x1f9a4c){const _0x1cb830=function(_0xeaeaa1){while(--_0xeaeaa1){_0x482d19['push'](_0x482d19['shift']());}};_0x1cb830(++_0x1f9a4c);}(a424_0x1f9a,0xf1));const a424_0x1cb8=function(_0x482d19,_0x1f9a4c){_0x482d19=_0x482d19-0x0;let _0x1cb830=a424_0x1f9a[_0x482d19];return _0x1cb830;};const _0x422130=a424_0x1cb8;'use strict';const MailQueueEvents=require('./mailQueue.events'),events=[_0x422130('0x1'),'remove',_0x422130('0x4')];function createListener(_0xeaeaa1,_0x1ec4da){return function(_0x2b2987){const _0x518454=a424_0x1cb8;_0x1ec4da[_0x518454('0x2')](_0xeaeaa1,_0x2b2987);};}exports[_0x422130('0x0')]=function(_0x3988ce){const _0x2a5ec4=_0x422130;for(let _0x1d0248=0x0,_0xf35b67=events[_0x2a5ec4('0x5')];_0x1d0248<_0xf35b67;_0x1d0248++){const _0x3abdd7=events[_0x1d0248],_0x1cd7bd=createListener(_0x2a5ec4('0x3')+_0x3abdd7,_0x3988ce);MailQueueEvents['on'](_0x3abdd7,_0x1cd7bd);}}; \ No newline at end of file +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 diff --git a/server/api/mailQueueReport/index.js b/server/api/mailQueueReport/index.js index e7b0856..1443ac7 100644 --- a/server/api/mailQueueReport/index.js +++ b/server/api/mailQueueReport/index.js @@ -1 +1 @@ -const a425_0x75b6=['../../components/auth/service','put','isAuthenticated','create','/describe','express','delete','/:id','post','get','Router','destroy'];(function(_0x3bf8ca,_0x75b6d6){const _0x3e11f4=function(_0x2be3ce){while(--_0x2be3ce){_0x3bf8ca['push'](_0x3bf8ca['shift']());}};_0x3e11f4(++_0x75b6d6);}(a425_0x75b6,0x7e));const a425_0x3e11=function(_0x3bf8ca,_0x75b6d6){_0x3bf8ca=_0x3bf8ca-0x0;let _0x3e11f4=a425_0x75b6[_0x3bf8ca];return _0x3e11f4;};const _0x485b64=a425_0x3e11;'use strict';const express=require(_0x485b64('0xb')),router=express[_0x485b64('0x4')](),auth=require(_0x485b64('0x6')),controller=require('./mailQueueReport.controller');router[_0x485b64('0x3')]('/',auth[_0x485b64('0x8')](),controller['index']),router[_0x485b64('0x3')](_0x485b64('0xa'),auth[_0x485b64('0x8')](),controller['describe']),router[_0x485b64('0x3')](_0x485b64('0x1'),auth[_0x485b64('0x8')](),controller['show']),router[_0x485b64('0x2')]('/',auth[_0x485b64('0x8')](),controller[_0x485b64('0x9')]),router[_0x485b64('0x7')](_0x485b64('0x1'),auth[_0x485b64('0x8')](),controller['update']),router[_0x485b64('0x0')](_0x485b64('0x1'),auth[_0x485b64('0x8')](),controller[_0x485b64('0x5')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/mailQueueReport/mailQueueReport.attributes.js b/server/api/mailQueueReport/mailQueueReport.attributes.js index 4d20f47..6bca104 100644 --- a/server/api/mailQueueReport/mailQueueReport.attributes.js +++ b/server/api/mailQueueReport/mailQueueReport.attributes.js @@ -1 +1 @@ -const a426_0x5948=['STRING','exports','DATE','sequelize'];(function(_0x33c748,_0x59489b){const _0x59220d=function(_0x2e2fe4){while(--_0x2e2fe4){_0x33c748['push'](_0x33c748['shift']());}};_0x59220d(++_0x59489b);}(a426_0x5948,0x12d));const a426_0x5922=function(_0x33c748,_0x59489b){_0x33c748=_0x33c748-0x0;let _0x59220d=a426_0x5948[_0x33c748];return _0x59220d;};const _0x13d62c=a426_0x5922;'use strict';const Sequelize=require(_0x13d62c('0x2'));module[_0x13d62c('0x0')]={'uniqueid':{'type':Sequelize[_0x13d62c('0x3')],'allowNull':![]},'from':{'type':Sequelize[_0x13d62c('0x3')]},'joinAt':{'type':Sequelize[_0x13d62c('0x1')]},'leaveAt':{'type':Sequelize[_0x13d62c('0x1')]},'acceptAt':{'type':Sequelize[_0x13d62c('0x1')]},'exitAt':{'type':Sequelize[_0x13d62c('0x1')]},'reason':{'type':Sequelize[_0x13d62c('0x3')]}}; \ No newline at end of file +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 diff --git a/server/api/mailQueueReport/mailQueueReport.controller.js b/server/api/mailQueueReport/mailQueueReport.controller.js index 17f722b..57707bb 100644 --- a/server/api/mailQueueReport/mailQueueReport.controller.js +++ b/server/api/mailQueueReport/mailQueueReport.controller.js @@ -1 +1 @@ -const a427_0x4795=['VIRTUAL','pick','where','send','sendStatus','query','count','MailQueueReport','destroy','offset','fields','update','then','findAll','model','lodash','key','catch','Content-Range','map','stack','length','fieldName','../../config/logger','order','create','limit','filter','params','include','filters','rawAttributes','options','index','status','name','json','type','error','describe','body','attributes','includeAll','findOne','sequelize','merge','keys','sort','set','intersection','api','like'];(function(_0x56a5f8,_0x479543){const _0x50f7a0=function(_0x4bfc00){while(--_0x4bfc00){_0x56a5f8['push'](_0x56a5f8['shift']());}};_0x50f7a0(++_0x479543);}(a427_0x4795,0x127));const a427_0x50f7=function(_0x56a5f8,_0x479543){_0x56a5f8=_0x56a5f8-0x0;let _0x50f7a0=a427_0x4795[_0x56a5f8];return _0x50f7a0;};const _0x410fab=a427_0x50f7;'use strict';const _=require(_0x410fab('0x20')),qs=require('../../components/parsers/qs'),logger=require(_0x410fab('0x28'))(_0x410fab('0xf')),db=require('../../mysqldb')['db'],{Op}=require(_0x410fab('0x9'));function respondWithResult(_0x4bfc00,_0x2c360b){return _0x2c360b=_0x2c360b||0xc8,function(_0x418917){const _0xf38018=a427_0x50f7;if(_0x418917)return _0x4bfc00[_0xf38018('0x33')](_0x2c360b)['json'](_0x418917);};}function respondWithFilteredResult(_0x5b45f4,_0x1edfc7){return function(_0x48ab41){const _0x167f68=a427_0x50f7;if(_0x48ab41){const _0x26ae58=_0x48ab41[_0x167f68('0x17')],_0x4d70c0=_0x1edfc7[_0x167f68('0x1a')];let _0x5a1ce6=_0x1edfc7['offset']+_0x1edfc7['limit'],_0x3a0515;return _0x5a1ce6>=_0x26ae58?(_0x5a1ce6=_0x26ae58,_0x3a0515=0xc8):_0x3a0515=0xce,_0x5b45f4[_0x167f68('0x33')](_0x3a0515),_0x5b45f4[_0x167f68('0xd')](_0x167f68('0x23'),_0x4d70c0+'-'+_0x5a1ce6+'/'+_0x26ae58)[_0x167f68('0x1')](_0x48ab41);}return null;};}function saveUpdates(_0x210d0a){return function(_0xbcb710){const _0x881101=a427_0x50f7;if(_0xbcb710)return _0xbcb710['update'](_0x210d0a)[_0x881101('0x1d')](function(_0x15cab8){return _0x15cab8;});return null;};}function removeEntity(_0x5661d4){return function(_0x54771b){const _0x44da02=a427_0x50f7;if(_0x54771b)return _0x54771b[_0x44da02('0x19')]()[_0x44da02('0x1d')](function(){const _0x2de76a=_0x44da02;_0x5661d4[_0x2de76a('0x33')](0xcc)['end']();});};}function handleEntityNotFound(_0x3c95b2){return function(_0xe825ea){const _0x56b6a0=a427_0x50f7;return!_0xe825ea&&_0x3c95b2[_0x56b6a0('0x15')](0x194),_0xe825ea;};}function handleError(_0x2408ff,_0x49970e){return _0x49970e=_0x49970e||0x1f4,function(_0x1fc54d){const _0x191067=a427_0x50f7;logger[_0x191067('0x3')](_0x1fc54d[_0x191067('0x25')]),_0x1fc54d[_0x191067('0x0')]&&delete _0x1fc54d[_0x191067('0x0')],_0x2408ff['status'](_0x49970e)[_0x191067('0x14')](_0x1fc54d);};}exports[_0x410fab('0x32')]=function(_0x5b8375,_0x5b94dd){const _0x53ea96=_0x410fab;let _0x3ad055={};const _0x44689b={},_0x4d7327={'count':0x0,'rows':[]},_0x1ceac5=_[_0x53ea96('0x24')](db[_0x53ea96('0x18')][_0x53ea96('0x30')],function(_0x237ff1){const _0x297b2a=_0x53ea96;return{'name':_0x237ff1[_0x297b2a('0x27')],'type':_0x237ff1[_0x297b2a('0x2')][_0x297b2a('0x21')]};});_0x44689b['model']=_[_0x53ea96('0x24')](_0x1ceac5,'name'),_0x44689b[_0x53ea96('0x16')]=_[_0x53ea96('0xb')](_0x5b8375[_0x53ea96('0x16')]),_0x44689b[_0x53ea96('0x2f')]=_[_0x53ea96('0xe')](_0x44689b[_0x53ea96('0x1f')],_0x44689b[_0x53ea96('0x16')]),_0x3ad055[_0x53ea96('0x6')]=_['intersection'](_0x44689b[_0x53ea96('0x1f')],qs['fields'](_0x5b8375[_0x53ea96('0x16')][_0x53ea96('0x1b')])),_0x3ad055[_0x53ea96('0x6')]=_0x3ad055[_0x53ea96('0x6')][_0x53ea96('0x26')]?_0x3ad055['attributes']:_0x44689b[_0x53ea96('0x1f')];typeof _0x5b8375[_0x53ea96('0x16')]['nolimit']==='undefined'&&(_0x3ad055['limit']=qs[_0x53ea96('0x2b')](_0x5b8375[_0x53ea96('0x16')][_0x53ea96('0x2b')]),_0x3ad055[_0x53ea96('0x1a')]=qs['offset'](_0x5b8375[_0x53ea96('0x16')]['offset']));_0x3ad055[_0x53ea96('0x29')]=qs[_0x53ea96('0xc')](_0x5b8375[_0x53ea96('0x16')]['sort']),_0x3ad055[_0x53ea96('0x13')]=qs['filters'](_[_0x53ea96('0x12')](_0x5b8375[_0x53ea96('0x16')],_0x44689b[_0x53ea96('0x2f')]),_0x1ceac5);_0x5b8375[_0x53ea96('0x16')][_0x53ea96('0x2c')]&&(_0x3ad055[_0x53ea96('0x13')]=_[_0x53ea96('0xa')](_0x3ad055['where'],{[Op['or']]:_[_0x53ea96('0x24')](_0x1ceac5,function(_0x33e8dc){const _0x17880f=_0x53ea96;if(_0x33e8dc[_0x17880f('0x2')]!==_0x17880f('0x11')){const _0x4ec0fd={};return _0x4ec0fd[_0x33e8dc[_0x17880f('0x0')]]={[Op[_0x17880f('0x10')]]:'%'+_0x5b8375[_0x17880f('0x16')][_0x17880f('0x2c')]+'%'},_0x4ec0fd;}})}));_0x3ad055=_['merge']({},_0x3ad055,_0x5b8375['options']);const _0x13c608={'where':_0x3ad055[_0x53ea96('0x13')]};return db['MailQueueReport']['count'](_0x13c608)[_0x53ea96('0x1d')](function(_0x27a152){const _0x12124c=_0x53ea96;return _0x4d7327[_0x12124c('0x17')]=_0x27a152,_0x5b8375['query'][_0x12124c('0x7')]&&(_0x3ad055['include']=[{'all':!![]}]),db[_0x12124c('0x18')][_0x12124c('0x1e')](_0x3ad055);})[_0x53ea96('0x1d')](function(_0x5eb0df){return _0x4d7327['rows']=_0x5eb0df,_0x4d7327;})[_0x53ea96('0x1d')](respondWithFilteredResult(_0x5b94dd,_0x3ad055))[_0x53ea96('0x22')](handleError(_0x5b94dd,null));},exports['show']=function(_0x1a3bc1,_0x2baebe){const _0x37a4c7=_0x410fab;let _0x31d078={'raw':!![],'where':{'id':_0x1a3bc1[_0x37a4c7('0x2d')]['id']}};const _0x2747d8={};return _0x2747d8[_0x37a4c7('0x1f')]=_[_0x37a4c7('0xb')](db['MailQueueReport']['rawAttributes']),_0x2747d8[_0x37a4c7('0x16')]=_[_0x37a4c7('0xb')](_0x1a3bc1[_0x37a4c7('0x16')]),_0x2747d8[_0x37a4c7('0x2f')]=_[_0x37a4c7('0xe')](_0x2747d8[_0x37a4c7('0x1f')],_0x2747d8['query']),_0x31d078[_0x37a4c7('0x6')]=_[_0x37a4c7('0xe')](_0x2747d8[_0x37a4c7('0x1f')],qs[_0x37a4c7('0x1b')](_0x1a3bc1['query'][_0x37a4c7('0x1b')])),_0x31d078[_0x37a4c7('0x6')]=_0x31d078[_0x37a4c7('0x6')][_0x37a4c7('0x26')]?_0x31d078[_0x37a4c7('0x6')]:_0x2747d8['model'],_0x1a3bc1[_0x37a4c7('0x16')][_0x37a4c7('0x7')]&&(_0x31d078[_0x37a4c7('0x2e')]=[{'all':!![]}]),_0x31d078=_[_0x37a4c7('0xa')]({},_0x31d078,_0x1a3bc1[_0x37a4c7('0x31')]),db[_0x37a4c7('0x18')][_0x37a4c7('0x8')](_0x31d078)['then'](handleEntityNotFound(_0x2baebe,null))['then'](respondWithResult(_0x2baebe,null))[_0x37a4c7('0x22')](handleError(_0x2baebe,null));},exports[_0x410fab('0x2a')]=function(_0x2c3495,_0x4f0949){const _0x3a20da=_0x410fab;return db[_0x3a20da('0x18')][_0x3a20da('0x2a')](_0x2c3495[_0x3a20da('0x5')],{})['then'](respondWithResult(_0x4f0949,0xc9))[_0x3a20da('0x22')](handleError(_0x4f0949,null));},exports[_0x410fab('0x1c')]=function(_0x617c3,_0x2af023){const _0x4af7d6=_0x410fab;return _0x617c3[_0x4af7d6('0x5')]['id']&&delete _0x617c3[_0x4af7d6('0x5')]['id'],db[_0x4af7d6('0x18')][_0x4af7d6('0x8')]({'where':{'id':_0x617c3[_0x4af7d6('0x2d')]['id']}})[_0x4af7d6('0x1d')](handleEntityNotFound(_0x2af023,null))[_0x4af7d6('0x1d')](saveUpdates(_0x617c3[_0x4af7d6('0x5')],null))['then'](respondWithResult(_0x2af023,null))[_0x4af7d6('0x22')](handleError(_0x2af023,null));},exports[_0x410fab('0x19')]=function(_0x4b1e0c,_0x4f875d){const _0x3893df=_0x410fab;return db['MailQueueReport']['findOne']({'where':{'id':_0x4b1e0c[_0x3893df('0x2d')]['id']}})[_0x3893df('0x1d')](handleEntityNotFound(_0x4f875d,null))[_0x3893df('0x1d')](removeEntity(_0x4f875d,null))[_0x3893df('0x22')](handleError(_0x4f875d,null));},exports[_0x410fab('0x4')]=function(_0x48b468,_0x93a18){const _0x448882=_0x410fab;return db['MailQueueReport'][_0x448882('0x4')]()[_0x448882('0x1d')](respondWithResult(_0x93a18,null))[_0x448882('0x22')](handleError(_0x93a18,null));}; \ No newline at end of file +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 diff --git a/server/api/mailQueueReport/mailQueueReport.model.js b/server/api/mailQueueReport/mailQueueReport.model.js index cfdd81a..617a018 100644 --- a/server/api/mailQueueReport/mailQueueReport.model.js +++ b/server/api/mailQueueReport/mailQueueReport.model.js @@ -1 +1 @@ -const a428_0x3cd2=['define','MailQueueReport','report_mail_queue','./mailQueueReport.attributes','uniqueid','exports'];(function(_0x136abe,_0x3cd21f){const _0x4132cb=function(_0x15e231){while(--_0x15e231){_0x136abe['push'](_0x136abe['shift']());}};_0x4132cb(++_0x3cd21f);}(a428_0x3cd2,0xfd));const a428_0x4132=function(_0x136abe,_0x3cd21f){_0x136abe=_0x136abe-0x0;let _0x4132cb=a428_0x3cd2[_0x136abe];return _0x4132cb;};const _0x30f79a=a428_0x4132;'use strict';const attributes=require(_0x30f79a('0x2'));module[_0x30f79a('0x4')]=function(_0x15e231){const _0x15509b=_0x30f79a,_0x574530=_0x15e231[_0x15509b('0x5')](_0x15509b('0x0'),attributes,{'tableName':_0x15509b('0x1'),'paranoid':![],'indexes':[{'name':_0x15509b('0x3'),'fields':[_0x15509b('0x3')]}],'timestamps':!![]});return _0x574530;}; \ No newline at end of file +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 diff --git a/server/api/mailQueueReport/mailQueueReport.rpc.js b/server/api/mailQueueReport/mailQueueReport.rpc.js index ddd0076..07e985c 100644 --- a/server/api/mailQueueReport/mailQueueReport.rpc.js +++ b/server/api/mailQueueReport/mailQueueReport.rpc.js @@ -1 +1 @@ -const a429_0x9b7a=['UpdateMailQueueReport','error','stringify','attributes','limit','info','CreateMailQueueReport','message','then','debug','rpc','catch','options','create','body','raw','where','../../mysqldb','MailQueueReport'];(function(_0x375dc8,_0x9b7a19){const _0x4cbdbd=function(_0x352caa){while(--_0x352caa){_0x375dc8['push'](_0x375dc8['shift']());}};_0x4cbdbd(++_0x9b7a19);}(a429_0x9b7a,0x83));const a429_0x4cbd=function(_0x375dc8,_0x9b7a19){_0x375dc8=_0x375dc8-0x0;let _0x4cbdbd=a429_0x9b7a[_0x375dc8];return _0x4cbdbd;};const _0x1e4b73=a429_0x4cbd;'use strict';const db=require(_0x1e4b73('0x0'))['db'],logger=require('../../config/logger')(_0x1e4b73('0xc'));exports[_0x1e4b73('0x8')]=function(_0x352caa){const _0x3c7a0a=this;return new Promise(function(_0x27d37f,_0xa65083){const _0x53890b=a429_0x4cbd;return db[_0x53890b('0x1')][_0x53890b('0xf')](_0x352caa[_0x53890b('0x10')],{'raw':_0x352caa['options']?_0x352caa[_0x53890b('0xe')][_0x53890b('0x11')]===undefined?!![]:![]:!![]})[_0x53890b('0xa')](function(_0xc30f07){const _0x486931=_0x53890b;logger[_0x486931('0x7')]('CreateMailQueueReport',_0x352caa),logger[_0x486931('0xb')]('CreateMailQueueReport',_0x352caa,JSON[_0x486931('0x4')](_0xc30f07)),_0x27d37f(_0xc30f07);})[_0x53890b('0xd')](function(_0x210e91){const _0x11f7f3=_0x53890b;logger[_0x11f7f3('0x3')](_0x11f7f3('0x8'),_0x210e91[_0x11f7f3('0x9')],_0x352caa),_0xa65083(_0x3c7a0a[_0x11f7f3('0x3')](0x1f4,_0x210e91[_0x11f7f3('0x9')]));});});},exports[_0x1e4b73('0x2')]=function(_0x2a18fa){const _0x1d0f8f=this;return new Promise(function(_0x5aee0c,_0x1b2090){const _0x5b5e41=a429_0x4cbd;return db[_0x5b5e41('0x1')]['update'](_0x2a18fa[_0x5b5e41('0x10')],{'raw':_0x2a18fa[_0x5b5e41('0xe')]?_0x2a18fa[_0x5b5e41('0xe')][_0x5b5e41('0x11')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2a18fa[_0x5b5e41('0xe')]?_0x2a18fa[_0x5b5e41('0xe')][_0x5b5e41('0x12')]||null:null,'attributes':_0x2a18fa[_0x5b5e41('0xe')]?_0x2a18fa[_0x5b5e41('0xe')][_0x5b5e41('0x5')]||null:null,'limit':_0x2a18fa[_0x5b5e41('0xe')]?_0x2a18fa[_0x5b5e41('0xe')][_0x5b5e41('0x6')]||null:null})[_0x5b5e41('0xa')](function(_0xb6b1a){const _0x3ee773=_0x5b5e41;logger['info'](_0x3ee773('0x2'),_0x2a18fa),logger[_0x3ee773('0xb')](_0x3ee773('0x2'),_0x2a18fa,JSON[_0x3ee773('0x4')](_0xb6b1a)),_0x5aee0c(_0xb6b1a);})[_0x5b5e41('0xd')](function(_0x5f05b1){const _0x52c134=_0x5b5e41;logger[_0x52c134('0x3')](_0x52c134('0x2'),_0x5f05b1[_0x52c134('0x9')],_0x2a18fa),_0x1b2090(_0x1d0f8f[_0x52c134('0x3')](0x1f4,_0x5f05b1[_0x52c134('0x9')]));});});}; \ No newline at end of file +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 diff --git a/server/api/mailServerIn/index.js b/server/api/mailServerIn/index.js index 0676ad0..93e55a9 100644 --- a/server/api/mailServerIn/index.js +++ b/server/api/mailServerIn/index.js @@ -1 +1 @@ -const a430_0x1cae=['express'];(function(_0x3c053b,_0x1caea1){const _0x223d3f=function(_0x36f23c){while(--_0x36f23c){_0x3c053b['push'](_0x3c053b['shift']());}};_0x223d3f(++_0x1caea1);}(a430_0x1cae,0x1ec));const a430_0x223d=function(_0x3c053b,_0x1caea1){_0x3c053b=_0x3c053b-0x0;let _0x223d3f=a430_0x1cae[_0x3c053b];return _0x223d3f;};const _0x10a5ac=a430_0x223d;'use strict';const express=require(_0x10a5ac('0x0')),router=express['Router']();module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/mailServerIn/mailServerIn.attributes.js b/server/api/mailServerIn/mailServerIn.attributes.js index 71a2574..b1d2507 100644 --- a/server/api/mailServerIn/mailServerIn.attributes.js +++ b/server/api/mailServerIn/mailServerIn.attributes.js @@ -1 +1 @@ -const a431_0x1fb8=['exports','INTEGER','username','STRING','sequelize','INBOX'];(function(_0x2d19b9,_0x1fb8c2){const _0x56556d=function(_0x3b92ab){while(--_0x3b92ab){_0x2d19b9['push'](_0x2d19b9['shift']());}};_0x56556d(++_0x1fb8c2);}(a431_0x1fb8,0x185));const a431_0x5655=function(_0x2d19b9,_0x1fb8c2){_0x2d19b9=_0x2d19b9-0x0;let _0x56556d=a431_0x1fb8[_0x2d19b9];return _0x56556d;};const _0x7a1812=a431_0x5655;'use strict';const Sequelize=require(_0x7a1812('0x5'));module[_0x7a1812('0x1')]={'description':{'type':Sequelize['STRING']},'host':{'type':Sequelize[_0x7a1812('0x4')]},'authentication':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'user':{'type':Sequelize[_0x7a1812('0x4')],'unique':_0x7a1812('0x3')},'password':{'type':Sequelize['STRING']},'port':{'type':Sequelize[_0x7a1812('0x2')]},'tls':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'mailbox':{'type':Sequelize[_0x7a1812('0x4')],'defaultValue':_0x7a1812('0x0')},'connTimeout':{'type':Sequelize[_0x7a1812('0x2')],'defaultValue':0xa},'authTimeout':{'type':Sequelize[_0x7a1812('0x2')],'defaultValue':0x5},'service':{'type':Sequelize[_0x7a1812('0x4')]}}; \ No newline at end of file +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 diff --git a/server/api/mailServerIn/mailServerIn.model.js b/server/api/mailServerIn/mailServerIn.model.js index e85c75b..a7e062f 100644 --- a/server/api/mailServerIn/mailServerIn.model.js +++ b/server/api/mailServerIn/mailServerIn.model.js @@ -1 +1 @@ -const a432_0x3dba=['define','mail_servers_in','./mailServerIn.attributes','MailServerIn','exports'];(function(_0x4919bf,_0x3dbac4){const _0x2fe5f2=function(_0x18f4a9){while(--_0x18f4a9){_0x4919bf['push'](_0x4919bf['shift']());}};_0x2fe5f2(++_0x3dbac4);}(a432_0x3dba,0x89));const a432_0x2fe5=function(_0x4919bf,_0x3dbac4){_0x4919bf=_0x4919bf-0x0;let _0x2fe5f2=a432_0x3dba[_0x4919bf];return _0x2fe5f2;};const _0x49ad0f=a432_0x2fe5;'use strict';const attributes=require(_0x49ad0f('0x0'));module[_0x49ad0f('0x2')]=function(_0x18f4a9){const _0x3f26a5=_0x49ad0f,_0x345999=_0x18f4a9[_0x3f26a5('0x3')](_0x3f26a5('0x1'),attributes,{'tableName':_0x3f26a5('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x345999;}; \ No newline at end of file +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 diff --git a/server/api/mailServerIn/mailServerIn.rpc.js b/server/api/mailServerIn/mailServerIn.rpc.js index 8ce2142..e4ae5a9 100644 --- a/server/api/mailServerIn/mailServerIn.rpc.js +++ b/server/api/mailServerIn/mailServerIn.rpc.js @@ -1 +1 @@ -const a433_0x2dae=['../../config/logger','stringify','rpc','where','model','include','map','attributes','debug','limit','error','then','MailServerIn','lodash','options','GetMailServerIn','raw','message','../../mysqldb'];(function(_0x1efd28,_0x2dae1c){const _0x3b87ac=function(_0x46c279){while(--_0x46c279){_0x1efd28['push'](_0x1efd28['shift']());}};_0x3b87ac(++_0x2dae1c);}(a433_0x2dae,0x168));const a433_0x3b87=function(_0x1efd28,_0x2dae1c){_0x1efd28=_0x1efd28-0x0;let _0x3b87ac=a433_0x2dae[_0x1efd28];return _0x3b87ac;};const _0x13a49f=a433_0x3b87;'use strict';const _=require(_0x13a49f('0xe')),db=require(_0x13a49f('0x0'))['db'],logger=require(_0x13a49f('0x1'))(_0x13a49f('0x3'));exports[_0x13a49f('0x10')]=function(_0x46c279){const _0x27737a=this;return new Promise(function(_0x5695df,_0x2f05c6){const _0x4774b8=a433_0x3b87;return db[_0x4774b8('0xd')]['findAll']({'raw':_0x46c279['options']?_0x46c279[_0x4774b8('0xf')][_0x4774b8('0x11')]===undefined?!![]:![]:!![],'where':_0x46c279['options']?_0x46c279[_0x4774b8('0xf')][_0x4774b8('0x4')]||null:null,'attributes':_0x46c279[_0x4774b8('0xf')]?_0x46c279[_0x4774b8('0xf')]['attributes']||null:null,'limit':_0x46c279[_0x4774b8('0xf')]?_0x46c279[_0x4774b8('0xf')][_0x4774b8('0xa')]||null:null,'include':_0x46c279[_0x4774b8('0xf')]?_0x46c279[_0x4774b8('0xf')][_0x4774b8('0x6')]?_[_0x4774b8('0x7')](_0x46c279[_0x4774b8('0xf')]['include'],function(_0x811aba){const _0x145e70=_0x4774b8;return{'model':db[_0x811aba['model']],'as':_0x811aba['as'],'attributes':_0x811aba[_0x145e70('0x8')],'include':_0x811aba['include']?_[_0x145e70('0x7')](_0x811aba[_0x145e70('0x6')],function(_0x255552){const _0x1fe6ea=_0x145e70;return{'model':db[_0x255552[_0x1fe6ea('0x5')]],'as':_0x255552['as'],'attributes':_0x255552[_0x1fe6ea('0x8')],'include':_0x255552[_0x1fe6ea('0x6')]?_[_0x1fe6ea('0x7')](_0x255552[_0x1fe6ea('0x6')],function(_0x38645d){const _0x3c2697=_0x1fe6ea;return{'model':db[_0x38645d[_0x3c2697('0x5')]],'as':_0x38645d['as'],'attributes':_0x38645d[_0x3c2697('0x8')]};}):[]};}):[]};}):[]:[]})[_0x4774b8('0xc')](function(_0x578be0){const _0x3b9e90=_0x4774b8;logger['info'](_0x3b9e90('0x10'),_0x46c279),logger[_0x3b9e90('0x9')](_0x3b9e90('0x10'),_0x46c279,JSON[_0x3b9e90('0x2')](_0x578be0)),_0x5695df(_0x578be0);})['catch'](function(_0x597c88){const _0xc7259=_0x4774b8;logger[_0xc7259('0xb')](_0xc7259('0x10'),_0x597c88[_0xc7259('0x12')],_0x46c279),_0x2f05c6(_0x27737a[_0xc7259('0xb')](0x1f4,_0x597c88['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/mailServerOut/index.js b/server/api/mailServerOut/index.js index 2263ddd..5208227 100644 --- a/server/api/mailServerOut/index.js +++ b/server/api/mailServerOut/index.js @@ -1 +1 @@ -const a434_0x235c=['update','get','exports','./mailServerOut.controller','isAuthenticated','delete','Router','show','express','destroy','/:id'];(function(_0x52453f,_0x235c1a){const _0x32a272=function(_0xd890c1){while(--_0xd890c1){_0x52453f['push'](_0x52453f['shift']());}};_0x32a272(++_0x235c1a);}(a434_0x235c,0x168));const a434_0x32a2=function(_0x52453f,_0x235c1a){_0x52453f=_0x52453f-0x0;let _0x32a272=a434_0x235c[_0x52453f];return _0x32a272;};const _0x4323d6=a434_0x32a2;'use strict';const express=require(_0x4323d6('0x0')),router=express[_0x4323d6('0x9')](),auth=require('../../components/auth/service'),controller=require(_0x4323d6('0x6'));router[_0x4323d6('0x4')]('/',auth[_0x4323d6('0x7')](),controller['index']),router['get'](_0x4323d6('0x2'),auth['isAuthenticated'](),controller[_0x4323d6('0xa')]),router['post']('/',auth[_0x4323d6('0x7')](),controller['create']),router['put'](_0x4323d6('0x2'),auth[_0x4323d6('0x7')](),controller[_0x4323d6('0x3')]),router[_0x4323d6('0x8')](_0x4323d6('0x2'),auth[_0x4323d6('0x7')](),controller[_0x4323d6('0x1')]),module[_0x4323d6('0x5')]=router; \ No newline at end of file +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 diff --git a/server/api/mailServerOut/mailServerOut.attributes.js b/server/api/mailServerOut/mailServerOut.attributes.js index 6660380..168e45f 100644 --- a/server/api/mailServerOut/mailServerOut.attributes.js +++ b/server/api/mailServerOut/mailServerOut.attributes.js @@ -1 +1 @@ -const a435_0x3436=['BOOLEAN','STRING','INTEGER','exports'];(function(_0x4a1ff1,_0x3436e1){const _0x44912f=function(_0x57c4ec){while(--_0x57c4ec){_0x4a1ff1['push'](_0x4a1ff1['shift']());}};_0x44912f(++_0x3436e1);}(a435_0x3436,0xd4));const a435_0x4491=function(_0x4a1ff1,_0x3436e1){_0x4a1ff1=_0x4a1ff1-0x0;let _0x44912f=a435_0x3436[_0x4a1ff1];return _0x44912f;};const _0x151597=a435_0x4491;'use strict';const Sequelize=require('sequelize');module[_0x151597('0x3')]={'description':{'type':Sequelize[_0x151597('0x1')]},'host':{'type':Sequelize[_0x151597('0x1')]},'user':{'type':Sequelize[_0x151597('0x1')]},'pass':{'type':Sequelize[_0x151597('0x1')]},'port':{'type':Sequelize[_0x151597('0x2')]},'secure':{'type':Sequelize[_0x151597('0x0')],'defaultValue':![]},'service':{'type':Sequelize[_0x151597('0x1')]},'authentication':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]}}; \ No newline at end of file +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 diff --git a/server/api/mailServerOut/mailServerOut.controller.js b/server/api/mailServerOut/mailServerOut.controller.js index ed449af..81af782 100644 --- a/server/api/mailServerOut/mailServerOut.controller.js +++ b/server/api/mailServerOut/mailServerOut.controller.js @@ -1 +1 @@ -const a436_0x2c47=['findOne','params','filters','model','findAll','undefined','limit','../../config/logger','lodash','update','MailServerOut','nolimit','keys','catch','pick','merge','fields','destroy','then','create','sort','filter','end','offset','length','../../mysqldb','json','intersection','count','body','map','status','include','where','type','rawAttributes','send','rows','sequelize','index','options','set','stack','attributes','query','key','includeAll','name','Content-Range','fieldName','show'];(function(_0x121a36,_0x2c47cb){const _0x153da2=function(_0x156ab1){while(--_0x156ab1){_0x121a36['push'](_0x121a36['shift']());}};_0x153da2(++_0x2c47cb);}(a436_0x2c47,0xf9));const a436_0x153d=function(_0x121a36,_0x2c47cb){_0x121a36=_0x121a36-0x0;let _0x153da2=a436_0x2c47[_0x121a36];return _0x153da2;};const _0x163b4e=a436_0x153d;'use strict';const _=require(_0x163b4e('0xe')),qs=require('../../components/parsers/qs'),logger=require(_0x163b4e('0xd'))('api'),db=require(_0x163b4e('0x1f'))['db'],{Op}=require(_0x163b4e('0x2c'));function respondWithResult(_0x156ab1,_0x2879cd){return _0x2879cd=_0x2879cd||0xc8,function(_0x3fd5f2){const _0x4e91c9=a436_0x153d;if(_0x3fd5f2)return _0x156ab1[_0x4e91c9('0x25')](_0x2879cd)[_0x4e91c9('0x20')](_0x3fd5f2);};}function respondWithFilteredResult(_0x4747f5,_0x1c3ce2){return function(_0x3e727f){const _0x575a0c=a436_0x153d;if(_0x3e727f){const _0x19b7ea=_0x3e727f['count'],_0x33badc=_0x1c3ce2[_0x575a0c('0x1d')];let _0x474134=_0x1c3ce2['offset']+_0x1c3ce2[_0x575a0c('0xc')],_0x8a1098;return _0x474134>=_0x19b7ea?(_0x474134=_0x19b7ea,_0x8a1098=0xc8):_0x8a1098=0xce,_0x4747f5['status'](_0x8a1098),_0x4747f5[_0x575a0c('0x2f')](_0x575a0c('0x3'),_0x33badc+'-'+_0x474134+'/'+_0x19b7ea)[_0x575a0c('0x20')](_0x3e727f);}return null;};}function saveUpdates(_0x57e4c3){return function(_0x5150e){const _0x52dd03=a436_0x153d;if(_0x5150e)return _0x5150e[_0x52dd03('0xf')](_0x57e4c3)['then'](function(_0x55b604){return _0x55b604;});return null;};}function removeEntity(_0x252509){return function(_0x3a9ec7){const _0x57efd5=a436_0x153d;if(_0x3a9ec7)return _0x3a9ec7[_0x57efd5('0x17')]()[_0x57efd5('0x18')](function(){const _0x3279ce=_0x57efd5;_0x252509['status'](0xcc)[_0x3279ce('0x1c')]();});};}function handleEntityNotFound(_0x5e3fb9){return function(_0x3a6d52){return!_0x3a6d52&&_0x5e3fb9['sendStatus'](0x194),_0x3a6d52;};}function handleError(_0xcc06cf,_0x2920bd){return _0x2920bd=_0x2920bd||0x1f4,function(_0x49698c){const _0x2b6f32=a436_0x153d;logger['error'](_0x49698c[_0x2b6f32('0x30')]),_0x49698c[_0x2b6f32('0x2')]&&delete _0x49698c[_0x2b6f32('0x2')],_0xcc06cf[_0x2b6f32('0x25')](_0x2920bd)[_0x2b6f32('0x2a')](_0x49698c);};}exports[_0x163b4e('0x2d')]=function(_0x226d52,_0xad4bd3){const _0x15e612=_0x163b4e;let _0x151f5b={};const _0x4d07db={},_0x1ea6d3={'count':0x0,'rows':[]},_0x4346a0=_[_0x15e612('0x24')](db['MailServerOut'][_0x15e612('0x29')],function(_0x47a695){const _0x3e87f3=_0x15e612;return{'name':_0x47a695[_0x3e87f3('0x4')],'type':_0x47a695['type'][_0x3e87f3('0x0')]};});_0x4d07db['model']=_['map'](_0x4346a0,'name'),_0x4d07db[_0x15e612('0x32')]=_[_0x15e612('0x12')](_0x226d52[_0x15e612('0x32')]),_0x4d07db[_0x15e612('0x8')]=_[_0x15e612('0x21')](_0x4d07db[_0x15e612('0x9')],_0x4d07db['query']),_0x151f5b[_0x15e612('0x31')]=_[_0x15e612('0x21')](_0x4d07db[_0x15e612('0x9')],qs[_0x15e612('0x16')](_0x226d52['query'][_0x15e612('0x16')])),_0x151f5b[_0x15e612('0x31')]=_0x151f5b[_0x15e612('0x31')]['length']?_0x151f5b['attributes']:_0x4d07db[_0x15e612('0x9')];typeof _0x226d52[_0x15e612('0x32')][_0x15e612('0x11')]===_0x15e612('0xb')&&(_0x151f5b['limit']=qs['limit'](_0x226d52[_0x15e612('0x32')]['limit']),_0x151f5b[_0x15e612('0x1d')]=qs['offset'](_0x226d52[_0x15e612('0x32')][_0x15e612('0x1d')]));_0x151f5b['order']=qs[_0x15e612('0x1a')](_0x226d52[_0x15e612('0x32')][_0x15e612('0x1a')]),_0x151f5b[_0x15e612('0x27')]=qs['filters'](_[_0x15e612('0x14')](_0x226d52[_0x15e612('0x32')],_0x4d07db[_0x15e612('0x8')]),_0x4346a0);_0x226d52[_0x15e612('0x32')]['filter']&&(_0x151f5b[_0x15e612('0x27')]=_[_0x15e612('0x15')](_0x151f5b[_0x15e612('0x27')],{[Op['or']]:_[_0x15e612('0x24')](_0x4346a0,function(_0x3b5542){const _0xa52577=_0x15e612;if(_0x3b5542[_0xa52577('0x28')]!=='VIRTUAL'){const _0x4f1e97={};return _0x4f1e97[_0x3b5542['name']]={[Op['like']]:'%'+_0x226d52[_0xa52577('0x32')][_0xa52577('0x1b')]+'%'},_0x4f1e97;}})}));_0x151f5b=_[_0x15e612('0x15')]({},_0x151f5b,_0x226d52[_0x15e612('0x2e')]);const _0x1f0933={'where':_0x151f5b[_0x15e612('0x27')]};return db['MailServerOut'][_0x15e612('0x22')](_0x1f0933)['then'](function(_0x2c331d){const _0x1e8e72=_0x15e612;return _0x1ea6d3[_0x1e8e72('0x22')]=_0x2c331d,_0x226d52[_0x1e8e72('0x32')]['includeAll']&&(_0x151f5b[_0x1e8e72('0x26')]=[{'all':!![]}]),db['MailServerOut'][_0x1e8e72('0xa')](_0x151f5b);})[_0x15e612('0x18')](function(_0x2620f9){const _0x15203f=_0x15e612;return _0x1ea6d3[_0x15203f('0x2b')]=_0x2620f9,_0x1ea6d3;})[_0x15e612('0x18')](respondWithFilteredResult(_0xad4bd3,_0x151f5b))[_0x15e612('0x13')](handleError(_0xad4bd3,null));},exports[_0x163b4e('0x5')]=function(_0x3d7195,_0x273cfb){const _0x418b01=_0x163b4e;let _0x46c6f4={'raw':!![],'where':{'id':_0x3d7195['params']['id']}};const _0x174388={};return _0x174388[_0x418b01('0x9')]=_['keys'](db[_0x418b01('0x10')][_0x418b01('0x29')]),_0x174388[_0x418b01('0x32')]=_[_0x418b01('0x12')](_0x3d7195[_0x418b01('0x32')]),_0x174388[_0x418b01('0x8')]=_[_0x418b01('0x21')](_0x174388[_0x418b01('0x9')],_0x174388[_0x418b01('0x32')]),_0x46c6f4[_0x418b01('0x31')]=_[_0x418b01('0x21')](_0x174388[_0x418b01('0x9')],qs['fields'](_0x3d7195['query'][_0x418b01('0x16')])),_0x46c6f4[_0x418b01('0x31')]=_0x46c6f4['attributes'][_0x418b01('0x1e')]?_0x46c6f4[_0x418b01('0x31')]:_0x174388['model'],_0x3d7195[_0x418b01('0x32')][_0x418b01('0x1')]&&(_0x46c6f4[_0x418b01('0x26')]=[{'all':!![]}]),_0x46c6f4=_[_0x418b01('0x15')]({},_0x46c6f4,_0x3d7195[_0x418b01('0x2e')]),db[_0x418b01('0x10')][_0x418b01('0x6')](_0x46c6f4)['then'](handleEntityNotFound(_0x273cfb,null))[_0x418b01('0x18')](respondWithResult(_0x273cfb,null))['catch'](handleError(_0x273cfb,null));},exports[_0x163b4e('0x19')]=function(_0x14014b,_0x27334b){const _0x44150e=_0x163b4e;return db[_0x44150e('0x10')]['create'](_0x14014b['body'],{})[_0x44150e('0x18')](respondWithResult(_0x27334b,0xc9))['catch'](handleError(_0x27334b,null));},exports['update']=function(_0x2929fc,_0x134b9b){const _0x291e2a=_0x163b4e;return _0x2929fc[_0x291e2a('0x23')]['id']&&delete _0x2929fc['body']['id'],db[_0x291e2a('0x10')][_0x291e2a('0x6')]({'where':{'id':_0x2929fc[_0x291e2a('0x7')]['id']}})['then'](handleEntityNotFound(_0x134b9b,null))[_0x291e2a('0x18')](saveUpdates(_0x2929fc[_0x291e2a('0x23')],null))[_0x291e2a('0x18')](respondWithResult(_0x134b9b,null))[_0x291e2a('0x13')](handleError(_0x134b9b,null));},exports[_0x163b4e('0x17')]=function(_0x18e3d5,_0x10300e){const _0xe83373=_0x163b4e;return db[_0xe83373('0x10')]['findOne']({'where':{'id':_0x18e3d5['params']['id']}})[_0xe83373('0x18')](handleEntityNotFound(_0x10300e,null))[_0xe83373('0x18')](removeEntity(_0x10300e,null))[_0xe83373('0x13')](handleError(_0x10300e,null));}; \ No newline at end of file +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 diff --git a/server/api/mailServerOut/mailServerOut.model.js b/server/api/mailServerOut/mailServerOut.model.js index 1475410..8efc72f 100644 --- a/server/api/mailServerOut/mailServerOut.model.js +++ b/server/api/mailServerOut/mailServerOut.model.js @@ -1 +1 @@ -const a437_0x326e=['mail_servers_out','exports','MailServerOut'];(function(_0x269278,_0x326ec3){const _0x4ffbf3=function(_0x58670c){while(--_0x58670c){_0x269278['push'](_0x269278['shift']());}};_0x4ffbf3(++_0x326ec3);}(a437_0x326e,0x121));const a437_0x4ffb=function(_0x269278,_0x326ec3){_0x269278=_0x269278-0x0;let _0x4ffbf3=a437_0x326e[_0x269278];return _0x4ffbf3;};const _0x2219f3=a437_0x4ffb;'use strict';const attributes=require('./mailServerOut.attributes');module[_0x2219f3('0x0')]=function(_0x58670c){const _0x497a01=_0x2219f3,_0x1c5766=_0x58670c['define'](_0x497a01('0x1'),attributes,{'tableName':_0x497a01('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1c5766;}; \ No newline at end of file +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 diff --git a/server/api/mailSubstatus/index.js b/server/api/mailSubstatus/index.js index 0dd2885..ab52d1c 100644 --- a/server/api/mailSubstatus/index.js +++ b/server/api/mailSubstatus/index.js @@ -1 +1 @@ -const a438_0x1e9a=['Router','isAuthenticated','/:id','put','delete','index','express','post','destroy','../../components/auth/service','get','create','exports','describe','/describe'];(function(_0x53c196,_0x1e9abf){const _0x539ea6=function(_0x73b7bf){while(--_0x73b7bf){_0x53c196['push'](_0x53c196['shift']());}};_0x539ea6(++_0x1e9abf);}(a438_0x1e9a,0x183));const a438_0x539e=function(_0x53c196,_0x1e9abf){_0x53c196=_0x53c196-0x0;let _0x539ea6=a438_0x1e9a[_0x53c196];return _0x539ea6;};const _0x30e33e=a438_0x539e;'use strict';const express=require(_0x30e33e('0x9')),router=express[_0x30e33e('0x3')](),auth=require(_0x30e33e('0xc')),controller=require('./mailSubstatus.controller');router[_0x30e33e('0xd')]('/',auth[_0x30e33e('0x4')](),controller[_0x30e33e('0x8')]),router[_0x30e33e('0xd')](_0x30e33e('0x2'),auth['isAuthenticated'](),controller[_0x30e33e('0x1')]),router[_0x30e33e('0xd')](_0x30e33e('0x5'),auth[_0x30e33e('0x4')](),controller['show']),router[_0x30e33e('0xa')]('/',auth[_0x30e33e('0x4')](),controller[_0x30e33e('0xe')]),router[_0x30e33e('0x6')](_0x30e33e('0x5'),auth[_0x30e33e('0x4')](),controller['update']),router[_0x30e33e('0x7')](_0x30e33e('0x5'),auth['isAuthenticated'](),controller[_0x30e33e('0xb')]),module[_0x30e33e('0x0')]=router; \ No newline at end of file +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 diff --git a/server/api/mailSubstatus/mailSubstatus.attributes.js b/server/api/mailSubstatus/mailSubstatus.attributes.js index df69c1b..d7e6e6c 100644 --- a/server/api/mailSubstatus/mailSubstatus.attributes.js +++ b/server/api/mailSubstatus/mailSubstatus.attributes.js @@ -1 +1 @@ -const a439_0x5ee5=['sequelize','name','STRING'];(function(_0x1b2e9a,_0x5ee562){const _0x3d8433=function(_0x376b96){while(--_0x376b96){_0x1b2e9a['push'](_0x1b2e9a['shift']());}};_0x3d8433(++_0x5ee562);}(a439_0x5ee5,0x1e5));const a439_0x3d84=function(_0x1b2e9a,_0x5ee562){_0x1b2e9a=_0x1b2e9a-0x0;let _0x3d8433=a439_0x5ee5[_0x1b2e9a];return _0x3d8433;};const _0x52561b=a439_0x3d84;'use strict';const Sequelize=require(_0x52561b('0x1'));module['exports']={'name':{'type':Sequelize[_0x52561b('0x0')],'unique':_0x52561b('0x2'),'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +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 diff --git a/server/api/mailSubstatus/mailSubstatus.controller.js b/server/api/mailSubstatus/mailSubstatus.controller.js index fdc1024..efb0bb7 100644 --- a/server/api/mailSubstatus/mailSubstatus.controller.js +++ b/server/api/mailSubstatus/mailSubstatus.controller.js @@ -1 +1 @@ -const a440_0x14ac=['nolimit','sendStatus','destroy','merge','set','sort','query','index','include','show','stack','api','../../components/parsers/qs','catch','type','like','findAll','error','undefined','attributes','update','filters','findOne','json','then','fields','../../config/logger','rawAttributes','pick','where','VIRTUAL','send','describe','create','includeAll','limit','filter','MailSubstatus','length','map','name','sequelize','model','body','../../mysqldb','order','status','params','intersection','offset','keys','count'];(function(_0x5b4e4b,_0x14ac94){const _0x5604de=function(_0x2e17a5){while(--_0x2e17a5){_0x5b4e4b['push'](_0x5b4e4b['shift']());}};_0x5604de(++_0x14ac94);}(a440_0x14ac,0x1c0));const a440_0x5604=function(_0x5b4e4b,_0x14ac94){_0x5b4e4b=_0x5b4e4b-0x0;let _0x5604de=a440_0x14ac[_0x5b4e4b];return _0x5604de;};const _0x5c49be=a440_0x5604;'use strict';const _=require('lodash'),qs=require(_0x5c49be('0x20')),logger=require(_0x5c49be('0x2e'))(_0x5c49be('0x1f')),db=require(_0x5c49be('0xc'))['db'],{Op}=require(_0x5c49be('0x9'));function respondWithResult(_0x2e17a5,_0x41634a){return _0x41634a=_0x41634a||0xc8,function(_0x438d79){const _0x40ca5b=a440_0x5604;if(_0x438d79)return _0x2e17a5[_0x40ca5b('0xe')](_0x41634a)[_0x40ca5b('0x2b')](_0x438d79);};}function respondWithFilteredResult(_0x170b37,_0x1f8eb2){return function(_0x5916cc){const _0x41ba11=a440_0x5604;if(_0x5916cc){const _0x3f7398=_0x5916cc[_0x41ba11('0x13')],_0x341f10=_0x1f8eb2[_0x41ba11('0x11')];let _0x401fe3=_0x1f8eb2['offset']+_0x1f8eb2[_0x41ba11('0x3')],_0x53811b;return _0x401fe3>=_0x3f7398?(_0x401fe3=_0x3f7398,_0x53811b=0xc8):_0x53811b=0xce,_0x170b37[_0x41ba11('0xe')](_0x53811b),_0x170b37[_0x41ba11('0x18')]('Content-Range',_0x341f10+'-'+_0x401fe3+'/'+_0x3f7398)['json'](_0x5916cc);}return null;};}function saveUpdates(_0x479377){return function(_0x59f1be){const _0x1d7fc3=a440_0x5604;if(_0x59f1be)return _0x59f1be[_0x1d7fc3('0x28')](_0x479377)[_0x1d7fc3('0x2c')](function(_0xfcc1fa){return _0xfcc1fa;});return null;};}function removeEntity(_0x55f58b){return function(_0x437161){const _0x59837c=a440_0x5604;if(_0x437161)return _0x437161[_0x59837c('0x16')]()['then'](function(){const _0x4cfcaa=_0x59837c;_0x55f58b[_0x4cfcaa('0xe')](0xcc)['end']();});};}function handleEntityNotFound(_0x3dbd6e){return function(_0x38e3a7){const _0x353b22=a440_0x5604;return!_0x38e3a7&&_0x3dbd6e[_0x353b22('0x15')](0x194),_0x38e3a7;};}function handleError(_0x1c4252,_0x298eba){return _0x298eba=_0x298eba||0x1f4,function(_0x989789){const _0x1ec30d=a440_0x5604;logger[_0x1ec30d('0x25')](_0x989789[_0x1ec30d('0x1e')]),_0x989789['name']&&delete _0x989789['name'],_0x1c4252[_0x1ec30d('0xe')](_0x298eba)[_0x1ec30d('0x33')](_0x989789);};}exports[_0x5c49be('0x1b')]=function(_0x3be9ec,_0x81b801){const _0xe3f357=_0x5c49be;let _0x933657={};const _0x2f6908={},_0x28fac6={'count':0x0,'rows':[]},_0x301e51=_['map'](db[_0xe3f357('0x5')][_0xe3f357('0x2f')],function(_0x44894d){const _0x4180eb=_0xe3f357;return{'name':_0x44894d['fieldName'],'type':_0x44894d[_0x4180eb('0x22')]['key']};});_0x2f6908[_0xe3f357('0xa')]=_[_0xe3f357('0x7')](_0x301e51,'name'),_0x2f6908['query']=_[_0xe3f357('0x12')](_0x3be9ec[_0xe3f357('0x1a')]),_0x2f6908['filters']=_[_0xe3f357('0x10')](_0x2f6908['model'],_0x2f6908['query']),_0x933657[_0xe3f357('0x27')]=_['intersection'](_0x2f6908['model'],qs[_0xe3f357('0x2d')](_0x3be9ec['query'][_0xe3f357('0x2d')])),_0x933657[_0xe3f357('0x27')]=_0x933657[_0xe3f357('0x27')][_0xe3f357('0x6')]?_0x933657[_0xe3f357('0x27')]:_0x2f6908['model'];typeof _0x3be9ec[_0xe3f357('0x1a')][_0xe3f357('0x14')]===_0xe3f357('0x26')&&(_0x933657[_0xe3f357('0x3')]=qs[_0xe3f357('0x3')](_0x3be9ec['query'][_0xe3f357('0x3')]),_0x933657['offset']=qs['offset'](_0x3be9ec[_0xe3f357('0x1a')]['offset']));_0x933657[_0xe3f357('0xd')]=qs[_0xe3f357('0x19')](_0x3be9ec[_0xe3f357('0x1a')][_0xe3f357('0x19')]),_0x933657[_0xe3f357('0x31')]=qs[_0xe3f357('0x29')](_[_0xe3f357('0x30')](_0x3be9ec[_0xe3f357('0x1a')],_0x2f6908[_0xe3f357('0x29')]),_0x301e51);_0x3be9ec[_0xe3f357('0x1a')][_0xe3f357('0x4')]&&(_0x933657['where']=_[_0xe3f357('0x17')](_0x933657[_0xe3f357('0x31')],{[Op['or']]:_[_0xe3f357('0x7')](_0x301e51,function(_0xe976b6){const _0x4c77e5=_0xe3f357;if(_0xe976b6[_0x4c77e5('0x22')]!==_0x4c77e5('0x32')){const _0xeb3c12={};return _0xeb3c12[_0xe976b6[_0x4c77e5('0x8')]]={[Op[_0x4c77e5('0x23')]]:'%'+_0x3be9ec['query'][_0x4c77e5('0x4')]+'%'},_0xeb3c12;}})}));_0x933657=_[_0xe3f357('0x17')]({},_0x933657,_0x3be9ec['options']);const _0x101daa={'where':_0x933657[_0xe3f357('0x31')]};return db[_0xe3f357('0x5')]['count'](_0x101daa)[_0xe3f357('0x2c')](function(_0x550bc3){const _0x2ad916=_0xe3f357;return _0x28fac6[_0x2ad916('0x13')]=_0x550bc3,_0x3be9ec[_0x2ad916('0x1a')][_0x2ad916('0x2')]&&(_0x933657[_0x2ad916('0x1c')]=[{'all':!![]}]),db[_0x2ad916('0x5')][_0x2ad916('0x24')](_0x933657);})['then'](function(_0x1f0567){return _0x28fac6['rows']=_0x1f0567,_0x28fac6;})['then'](respondWithFilteredResult(_0x81b801,_0x933657))[_0xe3f357('0x21')](handleError(_0x81b801,null));},exports[_0x5c49be('0x1d')]=function(_0x1ced66,_0x362133){const _0x4de9ac=_0x5c49be;let _0x54f22c={'raw':!![],'where':{'id':_0x1ced66[_0x4de9ac('0xf')]['id']}};const _0x1d54b9={};return _0x1d54b9[_0x4de9ac('0xa')]=_[_0x4de9ac('0x12')](db[_0x4de9ac('0x5')][_0x4de9ac('0x2f')]),_0x1d54b9[_0x4de9ac('0x1a')]=_[_0x4de9ac('0x12')](_0x1ced66['query']),_0x1d54b9[_0x4de9ac('0x29')]=_[_0x4de9ac('0x10')](_0x1d54b9[_0x4de9ac('0xa')],_0x1d54b9[_0x4de9ac('0x1a')]),_0x54f22c[_0x4de9ac('0x27')]=_[_0x4de9ac('0x10')](_0x1d54b9[_0x4de9ac('0xa')],qs[_0x4de9ac('0x2d')](_0x1ced66[_0x4de9ac('0x1a')][_0x4de9ac('0x2d')])),_0x54f22c['attributes']=_0x54f22c['attributes']['length']?_0x54f22c[_0x4de9ac('0x27')]:_0x1d54b9[_0x4de9ac('0xa')],_0x1ced66[_0x4de9ac('0x1a')]['includeAll']&&(_0x54f22c['include']=[{'all':!![]}]),_0x54f22c=_[_0x4de9ac('0x17')]({},_0x54f22c,_0x1ced66['options']),db[_0x4de9ac('0x5')][_0x4de9ac('0x2a')](_0x54f22c)[_0x4de9ac('0x2c')](handleEntityNotFound(_0x362133,null))[_0x4de9ac('0x2c')](respondWithResult(_0x362133,null))['catch'](handleError(_0x362133,null));},exports[_0x5c49be('0x1')]=function(_0x1fb25b,_0x5d3ff2){const _0xc3f1d1=_0x5c49be;return db['MailSubstatus'][_0xc3f1d1('0x1')](_0x1fb25b['body'],{})[_0xc3f1d1('0x2c')](respondWithResult(_0x5d3ff2,0xc9))[_0xc3f1d1('0x21')](handleError(_0x5d3ff2,null));},exports[_0x5c49be('0x28')]=function(_0x22fbc5,_0x3e6b47){const _0x4d037a=_0x5c49be;return _0x22fbc5[_0x4d037a('0xb')]['id']&&delete _0x22fbc5[_0x4d037a('0xb')]['id'],db[_0x4d037a('0x5')][_0x4d037a('0x2a')]({'where':{'id':_0x22fbc5['params']['id']}})[_0x4d037a('0x2c')](handleEntityNotFound(_0x3e6b47,null))[_0x4d037a('0x2c')](saveUpdates(_0x22fbc5['body'],null))[_0x4d037a('0x2c')](respondWithResult(_0x3e6b47,null))[_0x4d037a('0x21')](handleError(_0x3e6b47,null));},exports[_0x5c49be('0x16')]=function(_0x5a326b,_0x264539){const _0x20f0e3=_0x5c49be;return db[_0x20f0e3('0x5')]['findOne']({'where':{'id':_0x5a326b[_0x20f0e3('0xf')]['id']}})[_0x20f0e3('0x2c')](handleEntityNotFound(_0x264539,null))['then'](removeEntity(_0x264539,null))['catch'](handleError(_0x264539,null));},exports[_0x5c49be('0x0')]=function(_0x3bab58,_0x496f74){const _0x2a96b7=_0x5c49be;return db[_0x2a96b7('0x5')]['describe']()[_0x2a96b7('0x2c')](respondWithResult(_0x496f74,null))[_0x2a96b7('0x21')](handleError(_0x496f74,null));}; \ No newline at end of file +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 diff --git a/server/api/mailSubstatus/mailSubstatus.model.js b/server/api/mailSubstatus/mailSubstatus.model.js index 1d33c7e..4fb5a6a 100644 --- a/server/api/mailSubstatus/mailSubstatus.model.js +++ b/server/api/mailSubstatus/mailSubstatus.model.js @@ -1 +1 @@ -const a441_0x13e4=['exports','./mailSubstatus.attributes'];(function(_0x3db27d,_0x13e409){const _0x5c8cae=function(_0x45717f){while(--_0x45717f){_0x3db27d['push'](_0x3db27d['shift']());}};_0x5c8cae(++_0x13e409);}(a441_0x13e4,0x1df));const a441_0x5c8c=function(_0x3db27d,_0x13e409){_0x3db27d=_0x3db27d-0x0;let _0x5c8cae=a441_0x13e4[_0x3db27d];return _0x5c8cae;};const _0x2143fb=a441_0x5c8c;'use strict';const attributes=require(_0x2143fb('0x0'));module[_0x2143fb('0x1')]=function(_0x45717f){const _0x649935=_0x45717f['define']('MailSubstatus',attributes,{'tableName':'mail_substatuses','paranoid':![],'indexes':[],'timestamps':!![]});return _0x649935;}; \ No newline at end of file +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 diff --git a/server/api/mailTransferReport/index.js b/server/api/mailTransferReport/index.js index 4e9a071..2deeb0a 100644 --- a/server/api/mailTransferReport/index.js +++ b/server/api/mailTransferReport/index.js @@ -1 +1 @@ -const a442_0xb198=['exports','update','put','express','index','../../components/auth/service','get','post','isAuthenticated','/describe','describe','/:id','destroy','show'];(function(_0x23e965,_0xb19883){const _0x3f6628=function(_0x233d37){while(--_0x233d37){_0x23e965['push'](_0x23e965['shift']());}};_0x3f6628(++_0xb19883);}(a442_0xb198,0x1b9));const a442_0x3f66=function(_0x23e965,_0xb19883){_0x23e965=_0x23e965-0x0;let _0x3f6628=a442_0xb198[_0x23e965];return _0x3f6628;};const _0x2fa407=a442_0x3f66;'use strict';const express=require(_0x2fa407('0xa')),router=express['Router'](),auth=require(_0x2fa407('0xc')),controller=require('./mailTransferReport.controller');router[_0x2fa407('0xd')]('/',auth['isAuthenticated'](),controller[_0x2fa407('0xb')]),router['get'](_0x2fa407('0x2'),auth[_0x2fa407('0x1')](),controller[_0x2fa407('0x3')]),router['get']('/:id',auth[_0x2fa407('0x1')](),controller[_0x2fa407('0x6')]),router[_0x2fa407('0x0')]('/',auth[_0x2fa407('0x1')](),controller['create']),router[_0x2fa407('0x9')](_0x2fa407('0x4'),auth['isAuthenticated'](),controller[_0x2fa407('0x8')]),router['delete'](_0x2fa407('0x4'),auth[_0x2fa407('0x1')](),controller[_0x2fa407('0x5')]),module[_0x2fa407('0x7')]=router; \ No newline at end of file +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 diff --git a/server/api/mailTransferReport/mailTransferReport.attributes.js b/server/api/mailTransferReport/mailTransferReport.attributes.js index 87b2566..241d00b 100644 --- a/server/api/mailTransferReport/mailTransferReport.attributes.js +++ b/server/api/mailTransferReport/mailTransferReport.attributes.js @@ -1 +1 @@ -const a443_0x234b=['exports','DATE','queue','ENUM','agent','STRING'];(function(_0x3984df,_0x234ba4){const _0x21dca2=function(_0x5b6a9f){while(--_0x5b6a9f){_0x3984df['push'](_0x3984df['shift']());}};_0x21dca2(++_0x234ba4);}(a443_0x234b,0x1ae));const a443_0x21dc=function(_0x3984df,_0x234ba4){_0x3984df=_0x3984df-0x0;let _0x21dca2=a443_0x234b[_0x3984df];return _0x21dca2;};const _0xf830c7=a443_0x21dc;'use strict';const Sequelize=require('sequelize');module[_0xf830c7('0x2')]={'uniqueid':{'type':Sequelize[_0xf830c7('0x1')],'allowNull':![]},'type':{'type':Sequelize[_0xf830c7('0x5')]('account',_0xf830c7('0x0'),_0xf830c7('0x4')),'allowNull':![],'defaultValue':_0xf830c7('0x4')},'transferredAt':{'type':Sequelize[_0xf830c7('0x3')],'allowNull':![],'defaultValue':Sequelize['NOW']}}; \ No newline at end of file +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 diff --git a/server/api/mailTransferReport/mailTransferReport.controller.js b/server/api/mailTransferReport/mailTransferReport.controller.js index 7ee2a02..4ace5dc 100644 --- a/server/api/mailTransferReport/mailTransferReport.controller.js +++ b/server/api/mailTransferReport/mailTransferReport.controller.js @@ -1 +1 @@ -const a444_0x2319=['name','index','destroy','key','body','stack','lodash','length','nolimit','status','sort','pick','where','update','include','send','keys','Content-Range','model','like','findOne','show','map','limit','rawAttributes','filter','filters','then','VIRTUAL','fields','findAll','count','catch','params','MailTransferReport','../../components/parsers/qs','fieldName','../../config/logger','sequelize','type','undefined','attributes','create','includeAll','offset','rows','json','sendStatus','query','intersection','merge','api','describe'];(function(_0x2e7511,_0x231961){const _0x5350ff=function(_0xb510d){while(--_0xb510d){_0x2e7511['push'](_0x2e7511['shift']());}};_0x5350ff(++_0x231961);}(a444_0x2319,0x1f2));const a444_0x5350=function(_0x2e7511,_0x231961){_0x2e7511=_0x2e7511-0x0;let _0x5350ff=a444_0x2319[_0x2e7511];return _0x5350ff;};const _0xbb0125=a444_0x5350;'use strict';const _=require(_0xbb0125('0x26')),qs=require(_0xbb0125('0xe')),logger=require(_0xbb0125('0x10'))(_0xbb0125('0x1e')),db=require('../../mysqldb')['db'],{Op}=require(_0xbb0125('0x11'));function respondWithResult(_0xb510d,_0x25cefb){return _0x25cefb=_0x25cefb||0xc8,function(_0x2283b1){const _0x14de0a=a444_0x5350;if(_0x2283b1)return _0xb510d['status'](_0x25cefb)[_0x14de0a('0x19')](_0x2283b1);};}function respondWithFilteredResult(_0x190bc9,_0x32f86c){return function(_0xaa71bf){const _0x31b3ab=a444_0x5350;if(_0xaa71bf){const _0xab19d4=_0xaa71bf[_0x31b3ab('0xa')],_0x6f0193=_0x32f86c[_0x31b3ab('0x17')];let _0x5e1da9=_0x32f86c[_0x31b3ab('0x17')]+_0x32f86c['limit'],_0x3acd7a;return _0x5e1da9>=_0xab19d4?(_0x5e1da9=_0xab19d4,_0x3acd7a=0xc8):_0x3acd7a=0xce,_0x190bc9[_0x31b3ab('0x29')](_0x3acd7a),_0x190bc9['set'](_0x31b3ab('0x31'),_0x6f0193+'-'+_0x5e1da9+'/'+_0xab19d4)['json'](_0xaa71bf);}return null;};}function saveUpdates(_0x206c9c){return function(_0x153c8b){const _0x4b975b=a444_0x5350;if(_0x153c8b)return _0x153c8b[_0x4b975b('0x2d')](_0x206c9c)[_0x4b975b('0x6')](function(_0x547ec3){return _0x547ec3;});return null;};}function removeEntity(_0xabd024){return function(_0x437fe4){const _0x5ce705=a444_0x5350;if(_0x437fe4)return _0x437fe4[_0x5ce705('0x22')]()[_0x5ce705('0x6')](function(){_0xabd024['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x124c0e){return function(_0x58ff13){const _0x2aea90=a444_0x5350;return!_0x58ff13&&_0x124c0e[_0x2aea90('0x1a')](0x194),_0x58ff13;};}function handleError(_0x4e4fa5,_0x428ca2){return _0x428ca2=_0x428ca2||0x1f4,function(_0x51d5cd){const _0x4978da=a444_0x5350;logger['error'](_0x51d5cd[_0x4978da('0x25')]),_0x51d5cd[_0x4978da('0x20')]&&delete _0x51d5cd[_0x4978da('0x20')],_0x4e4fa5[_0x4978da('0x29')](_0x428ca2)[_0x4978da('0x2f')](_0x51d5cd);};}exports[_0xbb0125('0x21')]=function(_0x9e607c,_0x1422ab){const _0x3ba222=_0xbb0125;let _0x1a2246={};const _0x330773={},_0x2d1181={'count':0x0,'rows':[]},_0x10fda5=_[_0x3ba222('0x1')](db[_0x3ba222('0xd')][_0x3ba222('0x3')],function(_0x362b83){const _0x186286=_0x3ba222;return{'name':_0x362b83[_0x186286('0xf')],'type':_0x362b83['type'][_0x186286('0x23')]};});_0x330773[_0x3ba222('0x32')]=_[_0x3ba222('0x1')](_0x10fda5,_0x3ba222('0x20')),_0x330773['query']=_['keys'](_0x9e607c['query']),_0x330773['filters']=_['intersection'](_0x330773['model'],_0x330773[_0x3ba222('0x1b')]),_0x1a2246[_0x3ba222('0x14')]=_[_0x3ba222('0x1c')](_0x330773['model'],qs['fields'](_0x9e607c[_0x3ba222('0x1b')]['fields'])),_0x1a2246[_0x3ba222('0x14')]=_0x1a2246[_0x3ba222('0x14')][_0x3ba222('0x27')]?_0x1a2246['attributes']:_0x330773[_0x3ba222('0x32')];typeof _0x9e607c[_0x3ba222('0x1b')][_0x3ba222('0x28')]===_0x3ba222('0x13')&&(_0x1a2246[_0x3ba222('0x2')]=qs[_0x3ba222('0x2')](_0x9e607c[_0x3ba222('0x1b')][_0x3ba222('0x2')]),_0x1a2246['offset']=qs[_0x3ba222('0x17')](_0x9e607c[_0x3ba222('0x1b')][_0x3ba222('0x17')]));_0x1a2246['order']=qs['sort'](_0x9e607c[_0x3ba222('0x1b')][_0x3ba222('0x2a')]),_0x1a2246[_0x3ba222('0x2c')]=qs[_0x3ba222('0x5')](_[_0x3ba222('0x2b')](_0x9e607c[_0x3ba222('0x1b')],_0x330773[_0x3ba222('0x5')]),_0x10fda5);_0x9e607c['query']['filter']&&(_0x1a2246['where']=_[_0x3ba222('0x1d')](_0x1a2246['where'],{[Op['or']]:_[_0x3ba222('0x1')](_0x10fda5,function(_0x3e6177){const _0x312449=_0x3ba222;if(_0x3e6177[_0x312449('0x12')]!==_0x312449('0x7')){const _0x18fca0={};return _0x18fca0[_0x3e6177[_0x312449('0x20')]]={[Op[_0x312449('0x33')]]:'%'+_0x9e607c['query'][_0x312449('0x4')]+'%'},_0x18fca0;}})}));_0x1a2246=_[_0x3ba222('0x1d')]({},_0x1a2246,_0x9e607c['options']);const _0x383138={'where':_0x1a2246['where']};return db[_0x3ba222('0xd')][_0x3ba222('0xa')](_0x383138)[_0x3ba222('0x6')](function(_0x2f1d58){const _0x12a68c=_0x3ba222;return _0x2d1181[_0x12a68c('0xa')]=_0x2f1d58,_0x9e607c[_0x12a68c('0x1b')][_0x12a68c('0x16')]&&(_0x1a2246['include']=[{'all':!![]}]),db[_0x12a68c('0xd')][_0x12a68c('0x9')](_0x1a2246);})[_0x3ba222('0x6')](function(_0x30ce17){const _0x4e65b4=_0x3ba222;return _0x2d1181[_0x4e65b4('0x18')]=_0x30ce17,_0x2d1181;})[_0x3ba222('0x6')](respondWithFilteredResult(_0x1422ab,_0x1a2246))['catch'](handleError(_0x1422ab,null));},exports[_0xbb0125('0x0')]=function(_0x40adff,_0x5577b7){const _0x31aa1e=_0xbb0125;let _0x32ea2d={'raw':!![],'where':{'id':_0x40adff['params']['id']}};const _0x3ba61b={};return _0x3ba61b[_0x31aa1e('0x32')]=_[_0x31aa1e('0x30')](db['MailTransferReport'][_0x31aa1e('0x3')]),_0x3ba61b[_0x31aa1e('0x1b')]=_[_0x31aa1e('0x30')](_0x40adff[_0x31aa1e('0x1b')]),_0x3ba61b[_0x31aa1e('0x5')]=_[_0x31aa1e('0x1c')](_0x3ba61b[_0x31aa1e('0x32')],_0x3ba61b[_0x31aa1e('0x1b')]),_0x32ea2d[_0x31aa1e('0x14')]=_[_0x31aa1e('0x1c')](_0x3ba61b['model'],qs[_0x31aa1e('0x8')](_0x40adff[_0x31aa1e('0x1b')][_0x31aa1e('0x8')])),_0x32ea2d[_0x31aa1e('0x14')]=_0x32ea2d['attributes'][_0x31aa1e('0x27')]?_0x32ea2d[_0x31aa1e('0x14')]:_0x3ba61b[_0x31aa1e('0x32')],_0x40adff[_0x31aa1e('0x1b')]['includeAll']&&(_0x32ea2d[_0x31aa1e('0x2e')]=[{'all':!![]}]),_0x32ea2d=_[_0x31aa1e('0x1d')]({},_0x32ea2d,_0x40adff['options']),db[_0x31aa1e('0xd')][_0x31aa1e('0x34')](_0x32ea2d)['then'](handleEntityNotFound(_0x5577b7,null))[_0x31aa1e('0x6')](respondWithResult(_0x5577b7,null))['catch'](handleError(_0x5577b7,null));},exports[_0xbb0125('0x15')]=function(_0x1e5ad9,_0xa166ee){const _0x49d23d=_0xbb0125;return db[_0x49d23d('0xd')]['create'](_0x1e5ad9[_0x49d23d('0x24')],{})['then'](respondWithResult(_0xa166ee,0xc9))[_0x49d23d('0xb')](handleError(_0xa166ee,null));},exports[_0xbb0125('0x2d')]=function(_0x1a162a,_0x451ba8){const _0x4989ea=_0xbb0125;return _0x1a162a[_0x4989ea('0x24')]['id']&&delete _0x1a162a['body']['id'],db[_0x4989ea('0xd')][_0x4989ea('0x34')]({'where':{'id':_0x1a162a[_0x4989ea('0xc')]['id']}})[_0x4989ea('0x6')](handleEntityNotFound(_0x451ba8,null))['then'](saveUpdates(_0x1a162a[_0x4989ea('0x24')],null))['then'](respondWithResult(_0x451ba8,null))[_0x4989ea('0xb')](handleError(_0x451ba8,null));},exports[_0xbb0125('0x22')]=function(_0x292c7c,_0x532618){const _0x362bef=_0xbb0125;return db[_0x362bef('0xd')][_0x362bef('0x34')]({'where':{'id':_0x292c7c['params']['id']}})[_0x362bef('0x6')](handleEntityNotFound(_0x532618,null))[_0x362bef('0x6')](removeEntity(_0x532618,null))[_0x362bef('0xb')](handleError(_0x532618,null));},exports[_0xbb0125('0x1f')]=function(_0x1fbe10,_0x17f222){const _0x2edead=_0xbb0125;return db[_0x2edead('0xd')][_0x2edead('0x1f')]()[_0x2edead('0x6')](respondWithResult(_0x17f222,null))[_0x2edead('0xb')](handleError(_0x17f222,null));}; \ No newline at end of file +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 diff --git a/server/api/mailTransferReport/mailTransferReport.model.js b/server/api/mailTransferReport/mailTransferReport.model.js index e24c58b..0cf3891 100644 --- a/server/api/mailTransferReport/mailTransferReport.model.js +++ b/server/api/mailTransferReport/mailTransferReport.model.js @@ -1 +1 @@ -const a445_0x3eda=['MailTransferReport','uniqueid','report_mail_transfer'];(function(_0x26fd9c,_0x3eda4f){const _0xb546fa=function(_0x495a8b){while(--_0x495a8b){_0x26fd9c['push'](_0x26fd9c['shift']());}};_0xb546fa(++_0x3eda4f);}(a445_0x3eda,0x6a));const a445_0xb546=function(_0x26fd9c,_0x3eda4f){_0x26fd9c=_0x26fd9c-0x0;let _0xb546fa=a445_0x3eda[_0x26fd9c];return _0xb546fa;};'use strict';const attributes=require('./mailTransferReport.attributes');module['exports']=function(_0x495a8b){const _0x164a8b=a445_0xb546,_0x3a9f36=_0x495a8b['define'](_0x164a8b('0x2'),attributes,{'tableName':_0x164a8b('0x1'),'paranoid':![],'indexes':[{'name':_0x164a8b('0x0'),'fields':[_0x164a8b('0x0')]}],'timestamps':!![]});return _0x3a9f36;}; \ No newline at end of file +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 diff --git a/server/api/memberReport/index.js b/server/api/memberReport/index.js index 52079d9..4f70c87 100644 --- a/server/api/memberReport/index.js +++ b/server/api/memberReport/index.js @@ -1 +1 @@ -const a446_0x37c1=['update','/:id','isAuthenticated','describe','create','Router','show','post','./memberReport.controller','/describe','get','put','exports','express','delete'];(function(_0x212070,_0x37c133){const _0x46a2bb=function(_0x3901c0){while(--_0x3901c0){_0x212070['push'](_0x212070['shift']());}};_0x46a2bb(++_0x37c133);}(a446_0x37c1,0x1dc));const a446_0x46a2=function(_0x212070,_0x37c133){_0x212070=_0x212070-0x0;let _0x46a2bb=a446_0x37c1[_0x212070];return _0x46a2bb;};const _0x212f28=a446_0x46a2;'use strict';const express=require(_0x212f28('0x2')),router=express[_0x212f28('0x9')](),auth=require('../../components/auth/service'),controller=require(_0x212f28('0xc'));router['get']('/',auth[_0x212f28('0x6')](),controller['index']),router[_0x212f28('0xe')](_0x212f28('0xd'),auth['isAuthenticated'](),controller[_0x212f28('0x7')]),router[_0x212f28('0xe')](_0x212f28('0x5'),auth[_0x212f28('0x6')](),controller[_0x212f28('0xa')]),router[_0x212f28('0xb')]('/',auth[_0x212f28('0x6')](),controller[_0x212f28('0x8')]),router[_0x212f28('0x0')]('/:id',auth[_0x212f28('0x6')](),controller[_0x212f28('0x4')]),router[_0x212f28('0x3')](_0x212f28('0x5'),auth[_0x212f28('0x6')](),controller['destroy']),module[_0x212f28('0x1')]=router; \ No newline at end of file +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 diff --git a/server/api/memberReport/memberReport.attributes.js b/server/api/memberReport/memberReport.attributes.js index c31ebd2..d068828 100644 --- a/server/api/memberReport/memberReport.attributes.js +++ b/server/api/memberReport/memberReport.attributes.js @@ -1 +1 @@ -const a447_0x1146=['seconds','exports','moment','DATE','getDataValue','STRING','talk:[queue]','duration','talk:[destination]','INTEGER','exitAt','talk:[dial\x20string]','LOGIN,\x20PAUSE,\x20TALKING'];(function(_0x314939,_0x1146e6){const _0x2a259f=function(_0x3035ce){while(--_0x3035ce){_0x314939['push'](_0x314939['shift']());}};_0x2a259f(++_0x1146e6);}(a447_0x1146,0xb7));const a447_0x2a25=function(_0x314939,_0x1146e6){_0x314939=_0x314939-0x0;let _0x2a259f=a447_0x1146[_0x314939];return _0x2a259f;};const _0x34c8b0=a447_0x2a25;'use strict';const Sequelize=require('sequelize'),moment=require(_0x34c8b0('0x1'));module[_0x34c8b0('0x0')]={'channel':{'type':Sequelize[_0x34c8b0('0x4')]},'membername':{'type':Sequelize['STRING']},'interface':{'type':Sequelize[_0x34c8b0('0x4')]},'type':{'type':Sequelize[_0x34c8b0('0x4')],'defaultValue':'DEFAULT\x20PAUSE','comment':_0x34c8b0('0xb')},'duration':{'type':Sequelize[_0x34c8b0('0x8')]},'enterAt':{'type':Sequelize[_0x34c8b0('0x2')]},'exitAt':{'type':Sequelize[_0x34c8b0('0x2')],'set':function(_0x3035ce){const _0x45de84=_0x34c8b0,_0x496c1d=moment(_0x3035ce),_0xff08d7=moment(this[_0x45de84('0x3')]('enterAt')),_0x47aefc=_0x496c1d['diff'](_0xff08d7,_0x45de84('0xc'));this['setDataValue'](_0x45de84('0x9'),_0x3035ce),this['setDataValue'](_0x45de84('0x6'),_0x47aefc||null);}},'data1':{'type':Sequelize[_0x34c8b0('0x4')],'comment':'talk:[inbound,\x20outbound],\x20pause:[reason]'},'data2':{'type':Sequelize['STRING'],'comment':'talk:[start]'},'data3':{'type':Sequelize[_0x34c8b0('0x4')],'comment':_0x34c8b0('0x7')},'data4':{'type':Sequelize['STRING'],'comment':_0x34c8b0('0xa')},'data5':{'type':Sequelize[_0x34c8b0('0x4')],'comment':_0x34c8b0('0x5')},'role':{'type':Sequelize[_0x34c8b0('0x4')]},'internal':{'type':Sequelize['INTEGER']},'uniqueid':{'type':Sequelize[_0x34c8b0('0x4')]}}; \ No newline at end of file +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 diff --git a/server/api/memberReport/memberReport.controller.js b/server/api/memberReport/memberReport.controller.js index 4b39d18..7315f2f 100644 --- a/server/api/memberReport/memberReport.controller.js +++ b/server/api/memberReport/memberReport.controller.js @@ -1 +1 @@ -const a448_0x53d4=['create','../../mysqldb','pick','body','count','destroy','update','where','merge','length','set','map','Content-Range','fieldName','rows','describe','rawAttributes','model','MemberReport','offset','params','key','query','options','include','undefined','fields','nolimit','json','limit','type','then','end','catch','status','findOne','sendStatus','VIRTUAL','filter','order','attributes','../../components/parsers/qs','index','stack','sort','includeAll','keys','findAll','intersection','filters','error','name'];(function(_0xc3e06d,_0x53d416){const _0x581563=function(_0x1aa999){while(--_0x1aa999){_0xc3e06d['push'](_0xc3e06d['shift']());}};_0x581563(++_0x53d416);}(a448_0x53d4,0xe7));const a448_0x5815=function(_0xc3e06d,_0x53d416){_0xc3e06d=_0xc3e06d-0x0;let _0x581563=a448_0x53d4[_0xc3e06d];return _0x581563;};const _0x570fd5=a448_0x5815;'use strict';const _=require('lodash'),qs=require(_0x570fd5('0x12')),logger=require('../../config/logger')('api'),db=require(_0x570fd5('0x1e'))['db'],{Op}=require('sequelize');function respondWithResult(_0x1aa999,_0x28b114){return _0x28b114=_0x28b114||0xc8,function(_0x5c3a00){const _0x129701=a448_0x5815;if(_0x5c3a00)return _0x1aa999[_0x129701('0xb')](_0x28b114)[_0x129701('0x5')](_0x5c3a00);};}function respondWithFilteredResult(_0x1c4aad,_0x117a66){return function(_0x759029){const _0xe2323b=a448_0x5815;if(_0x759029){const _0x451a58=_0x759029[_0xe2323b('0x21')],_0x4c0760=_0x117a66['offset'];let _0x179647=_0x117a66[_0xe2323b('0x30')]+_0x117a66[_0xe2323b('0x6')],_0x320331;return _0x179647>=_0x451a58?(_0x179647=_0x451a58,_0x320331=0xc8):_0x320331=0xce,_0x1c4aad[_0xe2323b('0xb')](_0x320331),_0x1c4aad[_0xe2323b('0x27')](_0xe2323b('0x29'),_0x4c0760+'-'+_0x179647+'/'+_0x451a58)[_0xe2323b('0x5')](_0x759029);}return null;};}function saveUpdates(_0x396039){return function(_0x539ccb){const _0x5b629a=a448_0x5815;if(_0x539ccb)return _0x539ccb[_0x5b629a('0x23')](_0x396039)['then'](function(_0x514d41){return _0x514d41;});return null;};}function removeEntity(_0x18149e){return function(_0x451453){const _0x44f884=a448_0x5815;if(_0x451453)return _0x451453[_0x44f884('0x22')]()[_0x44f884('0x8')](function(){const _0x1285f5=_0x44f884;_0x18149e[_0x1285f5('0xb')](0xcc)[_0x1285f5('0x9')]();});};}function handleEntityNotFound(_0x28abd1){return function(_0x6cf483){const _0x3cb692=a448_0x5815;return!_0x6cf483&&_0x28abd1[_0x3cb692('0xd')](0x194),_0x6cf483;};}function handleError(_0x33ba9a,_0xeee744){return _0xeee744=_0xeee744||0x1f4,function(_0x541d16){const _0x44b793=a448_0x5815;logger[_0x44b793('0x1b')](_0x541d16[_0x44b793('0x14')]),_0x541d16[_0x44b793('0x1c')]&&delete _0x541d16[_0x44b793('0x1c')],_0x33ba9a[_0x44b793('0xb')](_0xeee744)['send'](_0x541d16);};}exports[_0x570fd5('0x13')]=function(_0x137aab,_0x210c94){const _0x51c6b5=_0x570fd5;let _0x44d173={};const _0x2834d2={},_0x3b5262={'count':0x0,'rows':[]},_0x30302e=_['map'](db[_0x51c6b5('0x2f')]['rawAttributes'],function(_0x312625){const _0x53bc76=_0x51c6b5;return{'name':_0x312625[_0x53bc76('0x2a')],'type':_0x312625[_0x53bc76('0x7')][_0x53bc76('0x32')]};});_0x2834d2[_0x51c6b5('0x2e')]=_[_0x51c6b5('0x28')](_0x30302e,_0x51c6b5('0x1c')),_0x2834d2[_0x51c6b5('0x33')]=_['keys'](_0x137aab[_0x51c6b5('0x33')]),_0x2834d2['filters']=_['intersection'](_0x2834d2[_0x51c6b5('0x2e')],_0x2834d2['query']),_0x44d173[_0x51c6b5('0x11')]=_[_0x51c6b5('0x19')](_0x2834d2[_0x51c6b5('0x2e')],qs[_0x51c6b5('0x3')](_0x137aab['query'][_0x51c6b5('0x3')])),_0x44d173[_0x51c6b5('0x11')]=_0x44d173[_0x51c6b5('0x11')][_0x51c6b5('0x26')]?_0x44d173['attributes']:_0x2834d2[_0x51c6b5('0x2e')];typeof _0x137aab[_0x51c6b5('0x33')][_0x51c6b5('0x4')]===_0x51c6b5('0x2')&&(_0x44d173[_0x51c6b5('0x6')]=qs[_0x51c6b5('0x6')](_0x137aab[_0x51c6b5('0x33')][_0x51c6b5('0x6')]),_0x44d173[_0x51c6b5('0x30')]=qs[_0x51c6b5('0x30')](_0x137aab['query'][_0x51c6b5('0x30')]));_0x44d173[_0x51c6b5('0x10')]=qs[_0x51c6b5('0x15')](_0x137aab['query'][_0x51c6b5('0x15')]),_0x44d173[_0x51c6b5('0x24')]=qs['filters'](_[_0x51c6b5('0x1f')](_0x137aab[_0x51c6b5('0x33')],_0x2834d2[_0x51c6b5('0x1a')]),_0x30302e);_0x137aab[_0x51c6b5('0x33')][_0x51c6b5('0xf')]&&(_0x44d173[_0x51c6b5('0x24')]=_[_0x51c6b5('0x25')](_0x44d173[_0x51c6b5('0x24')],{[Op['or']]:_['map'](_0x30302e,function(_0x50ce75){const _0x38138a=_0x51c6b5;if(_0x50ce75[_0x38138a('0x7')]!==_0x38138a('0xe')){const _0x5555af={};return _0x5555af[_0x50ce75['name']]={[Op['like']]:'%'+_0x137aab[_0x38138a('0x33')][_0x38138a('0xf')]+'%'},_0x5555af;}})}));_0x44d173=_[_0x51c6b5('0x25')]({},_0x44d173,_0x137aab[_0x51c6b5('0x0')]);const _0x3a7bc2={'where':_0x44d173[_0x51c6b5('0x24')]};return db[_0x51c6b5('0x2f')][_0x51c6b5('0x21')](_0x3a7bc2)[_0x51c6b5('0x8')](function(_0x1b27dc){const _0x4ab5cb=_0x51c6b5;return _0x3b5262[_0x4ab5cb('0x21')]=_0x1b27dc,_0x137aab[_0x4ab5cb('0x33')]['includeAll']&&(_0x44d173['include']=[{'all':!![]}]),db[_0x4ab5cb('0x2f')][_0x4ab5cb('0x18')](_0x44d173);})[_0x51c6b5('0x8')](function(_0xfff33c){const _0x46011e=_0x51c6b5;return _0x3b5262[_0x46011e('0x2b')]=_0xfff33c,_0x3b5262;})['then'](respondWithFilteredResult(_0x210c94,_0x44d173))[_0x51c6b5('0xa')](handleError(_0x210c94,null));},exports['show']=function(_0x4b0cba,_0x5ec86e){const _0x3d79f2=_0x570fd5;let _0x37abb7={'raw':!![],'where':{'id':_0x4b0cba[_0x3d79f2('0x31')]['id']}};const _0x275c57={};return _0x275c57[_0x3d79f2('0x2e')]=_[_0x3d79f2('0x17')](db[_0x3d79f2('0x2f')][_0x3d79f2('0x2d')]),_0x275c57[_0x3d79f2('0x33')]=_[_0x3d79f2('0x17')](_0x4b0cba[_0x3d79f2('0x33')]),_0x275c57[_0x3d79f2('0x1a')]=_['intersection'](_0x275c57[_0x3d79f2('0x2e')],_0x275c57[_0x3d79f2('0x33')]),_0x37abb7[_0x3d79f2('0x11')]=_[_0x3d79f2('0x19')](_0x275c57['model'],qs['fields'](_0x4b0cba[_0x3d79f2('0x33')]['fields'])),_0x37abb7['attributes']=_0x37abb7[_0x3d79f2('0x11')][_0x3d79f2('0x26')]?_0x37abb7['attributes']:_0x275c57[_0x3d79f2('0x2e')],_0x4b0cba[_0x3d79f2('0x33')][_0x3d79f2('0x16')]&&(_0x37abb7[_0x3d79f2('0x1')]=[{'all':!![]}]),_0x37abb7=_[_0x3d79f2('0x25')]({},_0x37abb7,_0x4b0cba[_0x3d79f2('0x0')]),db['MemberReport']['findOne'](_0x37abb7)[_0x3d79f2('0x8')](handleEntityNotFound(_0x5ec86e,null))[_0x3d79f2('0x8')](respondWithResult(_0x5ec86e,null))[_0x3d79f2('0xa')](handleError(_0x5ec86e,null));},exports[_0x570fd5('0x1d')]=function(_0x40f0cc,_0x1da7d6){const _0x358b31=_0x570fd5;return db[_0x358b31('0x2f')][_0x358b31('0x1d')](_0x40f0cc['body'],{})[_0x358b31('0x8')](respondWithResult(_0x1da7d6,0xc9))[_0x358b31('0xa')](handleError(_0x1da7d6,null));},exports[_0x570fd5('0x23')]=function(_0x3ce4d0,_0x272b20){const _0xd49b53=_0x570fd5;return _0x3ce4d0['body']['id']&&delete _0x3ce4d0[_0xd49b53('0x20')]['id'],db['MemberReport'][_0xd49b53('0xc')]({'where':{'id':_0x3ce4d0['params']['id']}})[_0xd49b53('0x8')](handleEntityNotFound(_0x272b20,null))[_0xd49b53('0x8')](saveUpdates(_0x3ce4d0[_0xd49b53('0x20')],null))[_0xd49b53('0x8')](respondWithResult(_0x272b20,null))[_0xd49b53('0xa')](handleError(_0x272b20,null));},exports[_0x570fd5('0x22')]=function(_0x4a6e1a,_0x42f548){const _0x472ec8=_0x570fd5;return db[_0x472ec8('0x2f')][_0x472ec8('0xc')]({'where':{'id':_0x4a6e1a[_0x472ec8('0x31')]['id']}})[_0x472ec8('0x8')](handleEntityNotFound(_0x42f548,null))[_0x472ec8('0x8')](removeEntity(_0x42f548,null))[_0x472ec8('0xa')](handleError(_0x42f548,null));},exports[_0x570fd5('0x2c')]=function(_0xac64b4,_0x5c97b9){const _0x1ab903=_0x570fd5;return db['MemberReport'][_0x1ab903('0x2c')]()[_0x1ab903('0x8')](respondWithResult(_0x5c97b9,null))[_0x1ab903('0xa')](handleError(_0x5c97b9,null));}; \ No newline at end of file +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 diff --git a/server/api/memberReport/memberReport.model.js b/server/api/memberReport/memberReport.model.js index f2a451a..94cfd6c 100644 --- a/server/api/memberReport/memberReport.model.js +++ b/server/api/memberReport/memberReport.model.js @@ -1 +1 @@ -const a449_0x4456=['membername_interface','membername','define','interface','report_member','exports'];(function(_0x4b53fb,_0x4456d9){const _0x575e27=function(_0x9c7833){while(--_0x9c7833){_0x4b53fb['push'](_0x4b53fb['shift']());}};_0x575e27(++_0x4456d9);}(a449_0x4456,0xd4));const a449_0x575e=function(_0x4b53fb,_0x4456d9){_0x4b53fb=_0x4b53fb-0x0;let _0x575e27=a449_0x4456[_0x4b53fb];return _0x575e27;};const _0x12ef1a=a449_0x575e;'use strict';const attributes=require('./memberReport.attributes');module[_0x12ef1a('0x3')]=function(_0x9c7833){const _0x250650=_0x12ef1a,_0x2320b0=_0x9c7833[_0x250650('0x0')]('MemberReport',attributes,{'tableName':_0x250650('0x2'),'paranoid':![],'indexes':[{'name':_0x250650('0x4'),'fields':[_0x250650('0x5'),_0x250650('0x1')]}],'timestamps':!![]});return _0x2320b0;}; \ No newline at end of file +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 diff --git a/server/api/memberReport/memberReport.rpc.js b/server/api/memberReport/memberReport.rpc.js index f2aaf95..b475c58 100644 --- a/server/api/memberReport/memberReport.rpc.js +++ b/server/api/memberReport/memberReport.rpc.js @@ -1 +1 @@ -const a450_0x5df0=['options','MemberReport','info','debug','GetMemberReport','lodash','UpdateMemberReport','limit','catch','map','create','raw','then','model','../../config/logger','error','include','CreateMemberReport','body','attributes','message','stringify'];(function(_0x269878,_0x5df01a){const _0x5cd370=function(_0x165efd){while(--_0x165efd){_0x269878['push'](_0x269878['shift']());}};_0x5cd370(++_0x5df01a);}(a450_0x5df0,0x1e2));const a450_0x5cd3=function(_0x269878,_0x5df01a){_0x269878=_0x269878-0x0;let _0x5cd370=a450_0x5df0[_0x269878];return _0x5cd370;};const _0x2ba2ec=a450_0x5cd3;'use strict';const _=require(_0x2ba2ec('0x7')),db=require('../../mysqldb')['db'],logger=require(_0x2ba2ec('0x10'))('rpc');exports[_0x2ba2ec('0x6')]=function(_0x165efd){const _0x196e22=this;return new Promise(function(_0xbed2e9,_0x19280c){const _0x49e5b8=a450_0x5cd3;return db[_0x49e5b8('0x3')]['findAll']({'raw':_0x165efd['options']?_0x165efd[_0x49e5b8('0x2')][_0x49e5b8('0xd')]===undefined?!![]:![]:!![],'where':_0x165efd[_0x49e5b8('0x2')]?_0x165efd[_0x49e5b8('0x2')]['where']||null:null,'attributes':_0x165efd[_0x49e5b8('0x2')]?_0x165efd[_0x49e5b8('0x2')][_0x49e5b8('0x15')]||null:null,'limit':_0x165efd[_0x49e5b8('0x2')]?_0x165efd[_0x49e5b8('0x2')]['limit']||null:null,'include':_0x165efd[_0x49e5b8('0x2')]?_0x165efd[_0x49e5b8('0x2')][_0x49e5b8('0x12')]?_[_0x49e5b8('0xb')](_0x165efd[_0x49e5b8('0x2')][_0x49e5b8('0x12')],function(_0x5043f9){const _0x371735=_0x49e5b8;return{'model':db[_0x5043f9[_0x371735('0xf')]],'as':_0x5043f9['as'],'attributes':_0x5043f9['attributes'],'include':_0x5043f9[_0x371735('0x12')]?_[_0x371735('0xb')](_0x5043f9[_0x371735('0x12')],function(_0x411979){const _0x4cb3f8=_0x371735;return{'model':db[_0x411979[_0x4cb3f8('0xf')]],'as':_0x411979['as'],'attributes':_0x411979[_0x4cb3f8('0x15')],'include':_0x411979[_0x4cb3f8('0x12')]?_['map'](_0x411979[_0x4cb3f8('0x12')],function(_0x360cf2){const _0x1a6106=_0x4cb3f8;return{'model':db[_0x360cf2[_0x1a6106('0xf')]],'as':_0x360cf2['as'],'attributes':_0x360cf2[_0x1a6106('0x15')]};}):[]};}):[]};}):[]:[]})[_0x49e5b8('0xe')](function(_0x15fdef){const _0x2bac35=_0x49e5b8;logger[_0x2bac35('0x4')]('GetMemberReport',_0x165efd),logger['debug']('GetMemberReport',_0x165efd,JSON[_0x2bac35('0x1')](_0x15fdef)),_0xbed2e9(_0x15fdef);})[_0x49e5b8('0xa')](function(_0x4a6f29){const _0x29a62a=_0x49e5b8;logger[_0x29a62a('0x11')](_0x29a62a('0x6'),_0x4a6f29['message'],_0x165efd),_0x19280c(_0x196e22[_0x29a62a('0x11')](0x1f4,_0x4a6f29[_0x29a62a('0x0')]));});});},exports['CreateMemberReport']=function(_0x12f020){const _0x3bbefe=this;return new Promise(function(_0x383b5f,_0x2e768d){const _0x574fd8=a450_0x5cd3;return db['MemberReport'][_0x574fd8('0xc')](_0x12f020[_0x574fd8('0x14')],{'raw':_0x12f020['options']?_0x12f020[_0x574fd8('0x2')][_0x574fd8('0xd')]===undefined?!![]:![]:!![]})[_0x574fd8('0xe')](function(_0x20a377){const _0x567014=_0x574fd8;logger['info']('CreateMemberReport',_0x12f020),logger[_0x567014('0x5')](_0x567014('0x13'),_0x12f020,JSON[_0x567014('0x1')](_0x20a377)),_0x383b5f(_0x20a377);})['catch'](function(_0x41c59f){const _0x1d6129=_0x574fd8;logger['error']('CreateMemberReport',_0x41c59f[_0x1d6129('0x0')],_0x12f020),_0x2e768d(_0x3bbefe[_0x1d6129('0x11')](0x1f4,_0x41c59f[_0x1d6129('0x0')]));});});},exports[_0x2ba2ec('0x8')]=function(_0x43be58){const _0x2ae2c6=this;return new Promise(function(_0x5e8637,_0x8e05db){const _0x1753bd=a450_0x5cd3;return db[_0x1753bd('0x3')]['update'](_0x43be58[_0x1753bd('0x14')],{'raw':_0x43be58[_0x1753bd('0x2')]?_0x43be58[_0x1753bd('0x2')][_0x1753bd('0xd')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x43be58[_0x1753bd('0x2')]?_0x43be58[_0x1753bd('0x2')]['where']||null:null,'attributes':_0x43be58[_0x1753bd('0x2')]?_0x43be58[_0x1753bd('0x2')][_0x1753bd('0x15')]||null:null,'limit':_0x43be58[_0x1753bd('0x2')]?_0x43be58[_0x1753bd('0x2')][_0x1753bd('0x9')]||null:null})['then'](function(_0x50cf20){const _0x57985d=_0x1753bd;logger[_0x57985d('0x4')](_0x57985d('0x8'),_0x43be58),logger['debug'](_0x57985d('0x8'),_0x43be58,JSON[_0x57985d('0x1')](_0x50cf20)),_0x5e8637(_0x50cf20);})[_0x1753bd('0xa')](function(_0x2a7e9f){const _0x597f84=_0x1753bd;logger[_0x597f84('0x11')](_0x597f84('0x8'),_0x2a7e9f[_0x597f84('0x0')],_0x43be58),_0x8e05db(_0x2ae2c6[_0x597f84('0x11')](0x1f4,_0x2a7e9f[_0x597f84('0x0')]));});});}; \ No newline at end of file +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 diff --git a/server/api/migration/index.js b/server/api/migration/index.js index 3fd0364..a67bd51 100644 --- a/server/api/migration/index.js +++ b/server/api/migration/index.js @@ -1 +1 @@ -const a451_0x3205=['get','./migration.controller','exports','Router','express'];(function(_0x1aacd2,_0x3205e4){const _0x40e62f=function(_0x272db5){while(--_0x272db5){_0x1aacd2['push'](_0x1aacd2['shift']());}};_0x40e62f(++_0x3205e4);}(a451_0x3205,0xbb));const a451_0x40e6=function(_0x1aacd2,_0x3205e4){_0x1aacd2=_0x1aacd2-0x0;let _0x40e62f=a451_0x3205[_0x1aacd2];return _0x40e62f;};const _0x179cc2=a451_0x40e6;'use strict';const express=require(_0x179cc2('0x2')),router=express[_0x179cc2('0x1')](),controller=require(_0x179cc2('0x4'));router[_0x179cc2('0x3')]('/',controller['index']),module[_0x179cc2('0x0')]=router; \ No newline at end of file +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 diff --git a/server/api/migration/migration.attributes.js b/server/api/migration/migration.attributes.js index 0ec52b5..8d2e0da 100644 --- a/server/api/migration/migration.attributes.js +++ b/server/api/migration/migration.attributes.js @@ -1 +1 @@ -const a452_0x58cd=['exports','STRING','version'];(function(_0x506bd8,_0x58cde5){const _0x29147c=function(_0x5a8b89){while(--_0x5a8b89){_0x506bd8['push'](_0x506bd8['shift']());}};_0x29147c(++_0x58cde5);}(a452_0x58cd,0x11f));const a452_0x2914=function(_0x506bd8,_0x58cde5){_0x506bd8=_0x506bd8-0x0;let _0x29147c=a452_0x58cd[_0x506bd8];return _0x29147c;};const _0x9a8b9f=a452_0x2914;'use strict';const Sequelize=require('sequelize');module[_0x9a8b9f('0x1')]={'version':{'type':Sequelize[_0x9a8b9f('0x2')],'unique':_0x9a8b9f('0x0')}}; \ No newline at end of file +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 diff --git a/server/api/migration/migration.controller.js b/server/api/migration/migration.controller.js index 6565480..446bc79 100644 --- a/server/api/migration/migration.controller.js +++ b/server/api/migration/migration.controller.js @@ -1 +1 @@ -const a453_0x2794=['status','merge','intersection','undefined','offset','include','error','limit','map','filters','json','set','VIRTUAL','count','order','type','where','fieldName','index','catch','keys','../../mysqldb','options','length','../../config/logger','fields','query','model','Content-Range','lodash','attributes','findAll','name','includeAll','Migration','like','rawAttributes','filter','then','sequelize','sort'];(function(_0x52b233,_0x2794b7){const _0x124bb1=function(_0xd992ce){while(--_0xd992ce){_0x52b233['push'](_0x52b233['shift']());}};_0x124bb1(++_0x2794b7);}(a453_0x2794,0xf7));const a453_0x124b=function(_0x52b233,_0x2794b7){_0x52b233=_0x52b233-0x0;let _0x124bb1=a453_0x2794[_0x52b233];return _0x124bb1;};const _0x518f78=a453_0x124b;'use strict';const _=require(_0x518f78('0x1c')),qs=require('../../components/parsers/qs'),logger=require(_0x518f78('0x17'))('api'),db=require(_0x518f78('0x14'))['db'],{Op}=require(_0x518f78('0x26'));function respondWithFilteredResult(_0xd992ce,_0x1c6c1a){return function(_0x4df04e){const _0x33c763=a453_0x124b;if(_0x4df04e){const _0x2a3479=_0x4df04e[_0x33c763('0xc')],_0x3f82fa=_0x1c6c1a[_0x33c763('0x3')];let _0x2ed6bb=_0x1c6c1a[_0x33c763('0x3')]+_0x1c6c1a[_0x33c763('0x6')],_0x4d0fb2;return _0x2ed6bb>=_0x2a3479?(_0x2ed6bb=_0x2a3479,_0x4d0fb2=0xc8):_0x4d0fb2=0xce,_0xd992ce[_0x33c763('0x28')](_0x4d0fb2),_0xd992ce[_0x33c763('0xa')](_0x33c763('0x1b'),_0x3f82fa+'-'+_0x2ed6bb+'/'+_0x2a3479)[_0x33c763('0x9')](_0x4df04e);}return null;};}function handleError(_0x28d1d1,_0x44f2ed){return _0x44f2ed=_0x44f2ed||0x1f4,function(_0x4356a2){const _0x1da689=a453_0x124b;logger[_0x1da689('0x5')](_0x4356a2['stack']),_0x4356a2[_0x1da689('0x1f')]&&delete _0x4356a2[_0x1da689('0x1f')],_0x28d1d1[_0x1da689('0x28')](_0x44f2ed)['send'](_0x4356a2);};}exports[_0x518f78('0x11')]=function(_0x8be144,_0x296153){const _0x322c9d=_0x518f78;let _0x374212={};const _0x352dce={},_0x2f551d={'count':0x0,'rows':[]},_0x5b702a=_[_0x322c9d('0x7')](db[_0x322c9d('0x21')][_0x322c9d('0x23')],function(_0x522b3c){const _0x503393=_0x322c9d;return{'name':_0x522b3c[_0x503393('0x10')],'type':_0x522b3c[_0x503393('0xe')]['key']};});_0x352dce[_0x322c9d('0x1a')]=_['map'](_0x5b702a,_0x322c9d('0x1f')),_0x352dce[_0x322c9d('0x19')]=_[_0x322c9d('0x13')](_0x8be144[_0x322c9d('0x19')]),_0x352dce['filters']=_['intersection'](_0x352dce[_0x322c9d('0x1a')],_0x352dce['query']),_0x374212[_0x322c9d('0x1d')]=_[_0x322c9d('0x1')](_0x352dce['model'],qs[_0x322c9d('0x18')](_0x8be144[_0x322c9d('0x19')][_0x322c9d('0x18')])),_0x374212[_0x322c9d('0x1d')]=_0x374212['attributes'][_0x322c9d('0x16')]?_0x374212[_0x322c9d('0x1d')]:_0x352dce[_0x322c9d('0x1a')];typeof _0x8be144[_0x322c9d('0x19')]['nolimit']===_0x322c9d('0x2')&&(_0x374212[_0x322c9d('0x6')]=qs[_0x322c9d('0x6')](_0x8be144[_0x322c9d('0x19')][_0x322c9d('0x6')]),_0x374212['offset']=qs[_0x322c9d('0x3')](_0x8be144[_0x322c9d('0x19')][_0x322c9d('0x3')]));_0x374212[_0x322c9d('0xd')]=qs['sort'](_0x8be144[_0x322c9d('0x19')][_0x322c9d('0x27')]),_0x374212[_0x322c9d('0xf')]=qs[_0x322c9d('0x8')](_['pick'](_0x8be144[_0x322c9d('0x19')],_0x352dce[_0x322c9d('0x8')]),_0x5b702a);_0x8be144[_0x322c9d('0x19')][_0x322c9d('0x24')]&&(_0x374212[_0x322c9d('0xf')]=_[_0x322c9d('0x0')](_0x374212[_0x322c9d('0xf')],{[Op['or']]:_[_0x322c9d('0x7')](_0x5b702a,function(_0x275492){const _0x53925e=_0x322c9d;if(_0x275492[_0x53925e('0xe')]!==_0x53925e('0xb')){const _0x1a7fad={};return _0x1a7fad[_0x275492[_0x53925e('0x1f')]]={[Op[_0x53925e('0x22')]]:'%'+_0x8be144[_0x53925e('0x19')][_0x53925e('0x24')]+'%'},_0x1a7fad;}})}));_0x374212=_[_0x322c9d('0x0')]({},_0x374212,_0x8be144[_0x322c9d('0x15')]);const _0x34bff8={'where':_0x374212[_0x322c9d('0xf')]};return db[_0x322c9d('0x21')][_0x322c9d('0xc')](_0x34bff8)['then'](function(_0x306084){const _0x15fd67=_0x322c9d;return _0x2f551d[_0x15fd67('0xc')]=_0x306084,_0x8be144['query'][_0x15fd67('0x20')]&&(_0x374212[_0x15fd67('0x4')]=[{'all':!![]}]),db['Migration'][_0x15fd67('0x1e')](_0x374212);})['then'](function(_0x3da1c9){return _0x2f551d['rows']=_0x3da1c9,_0x2f551d;})[_0x322c9d('0x25')](respondWithFilteredResult(_0x296153,_0x374212))[_0x322c9d('0x12')](handleError(_0x296153,null));}; \ No newline at end of file +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 diff --git a/server/api/migration/migration.model.js b/server/api/migration/migration.model.js index 008e322..ab9422f 100644 --- a/server/api/migration/migration.model.js +++ b/server/api/migration/migration.model.js @@ -1 +1 @@ -const a454_0x3cbf=['./migration.attributes','migrations','Migration','exports'];(function(_0x3c79eb,_0x3cbfdb){const _0x2f8198=function(_0x30284d){while(--_0x30284d){_0x3c79eb['push'](_0x3c79eb['shift']());}};_0x2f8198(++_0x3cbfdb);}(a454_0x3cbf,0x152));const a454_0x2f81=function(_0x3c79eb,_0x3cbfdb){_0x3c79eb=_0x3c79eb-0x0;let _0x2f8198=a454_0x3cbf[_0x3c79eb];return _0x2f8198;};const _0x55403b=a454_0x2f81;'use strict';const attributes=require(_0x55403b('0x2'));module[_0x55403b('0x1')]=function(_0x30284d){const _0x5add4b=_0x55403b,_0xe42133=_0x30284d['define'](_0x5add4b('0x0'),attributes,{'tableName':_0x5add4b('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xe42133;}; \ No newline at end of file +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 diff --git a/server/api/network/index.js b/server/api/network/index.js index 8535c47..66d0f2a 100644 --- a/server/api/network/index.js +++ b/server/api/network/index.js @@ -1 +1 @@ -const a455_0x1a2e=['isAuthenticated','post','../../components/auth/service','./network.controller','get','/:id','update','put','Router','destroy','show','create'];(function(_0x2a624e,_0x1a2e21){const _0x4b214c=function(_0x5b38a6){while(--_0x5b38a6){_0x2a624e['push'](_0x2a624e['shift']());}};_0x4b214c(++_0x1a2e21);}(a455_0x1a2e,0xfc));const a455_0x4b21=function(_0x2a624e,_0x1a2e21){_0x2a624e=_0x2a624e-0x0;let _0x4b214c=a455_0x1a2e[_0x2a624e];return _0x4b214c;};const _0x4c680d=a455_0x4b21;'use strict';const express=require('express'),router=express[_0x4c680d('0x8')](),auth=require(_0x4c680d('0x2')),controller=require(_0x4c680d('0x3'));router[_0x4c680d('0x4')]('/',auth['isAuthenticated'](),controller['index']),router[_0x4c680d('0x4')](_0x4c680d('0x5'),auth[_0x4c680d('0x0')](),controller[_0x4c680d('0xa')]),router[_0x4c680d('0x1')]('/',auth[_0x4c680d('0x0')](),controller[_0x4c680d('0xb')]),router[_0x4c680d('0x7')](_0x4c680d('0x5'),auth['isAuthenticated'](),controller[_0x4c680d('0x6')]),router['delete'](_0x4c680d('0x5'),auth[_0x4c680d('0x0')](),controller[_0x4c680d('0x9')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/network/network.attributes.js b/server/api/network/network.attributes.js index 5d07140..df31f7f 100644 --- a/server/api/network/network.attributes.js +++ b/server/api/network/network.attributes.js @@ -1 +1 @@ -const a456_0x35fa=['ENUM','STRING','exports','turn','sequelize','externip'];(function(_0xcd83df,_0x35faf4){const _0x533738=function(_0x18002e){while(--_0x18002e){_0xcd83df['push'](_0xcd83df['shift']());}};_0x533738(++_0x35faf4);}(a456_0x35fa,0x94));const a456_0x5337=function(_0xcd83df,_0x35faf4){_0xcd83df=_0xcd83df-0x0;let _0x533738=a456_0x35fa[_0xcd83df];return _0x533738;};const _0x430568=a456_0x5337;'use strict';const Sequelize=require(_0x430568('0x0'));module[_0x430568('0x4')]={'type':{'type':Sequelize[_0x430568('0x2')]('localnet',_0x430568('0x1'),'stun',_0x430568('0x5'))},'value':{'type':Sequelize[_0x430568('0x3')]},'username':{'type':Sequelize[_0x430568('0x3')]},'password':{'type':Sequelize[_0x430568('0x3')]}}; \ No newline at end of file +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 diff --git a/server/api/network/network.controller.js b/server/api/network/network.controller.js index f921762..47d5c43 100644 --- a/server/api/network/network.controller.js +++ b/server/api/network/network.controller.js @@ -1 +1 @@ -const a457_0x5d9e=['rawAttributes','../../mysqldb','findOne','Network,\x20%s,\x20%s,\x20%s','keys','STUN','../../components/parsers/qs','where','pick','jayson/promise','code','length','offset','map','root','key','merge','/etc/asterisk/turn_xcally.conf','../../config/logger','send','join','Network,\x20%s,\x20%s','sequelize','chan_sip.so','query','create','path','format','limit','server/files/templates/network.ejs','res_stun_monitor.so','end','findAll','/etc/asterisk/sip_xcally_%s.conf','status','util','params','render','destroy','include','client','fields','json','sort','set','undefined','model','update','api','Network','count','stack','request\x20sent','toUpperCase','error','TURN','catch','show','result','server/files/templates/turn_multiple.ejs','attributes','type','body','intersection','fieldName','name','index','message','writeFileSync','utf8','toLowerCase','readFileSync','sendStatus','ejs','server/files/templates/stun_multiple.ejs','/etc/asterisk/stun_xcally.conf','transaction','includeAll','rows','Reload','then','info','filters'];(function(_0x12cabc,_0x5d9eba){const _0x3d6423=function(_0x309f42){while(--_0x309f42){_0x12cabc['push'](_0x12cabc['shift']());}};_0x3d6423(++_0x5d9eba);}(a457_0x5d9e,0x1db));const a457_0x3d64=function(_0x12cabc,_0x5d9eba){_0x12cabc=_0x12cabc-0x0;let _0x3d6423=a457_0x5d9e[_0x12cabc];return _0x3d6423;};const _0x383556=a457_0x3d64;'use strict';const util=require(_0x383556('0x3a')),path=require(_0x383556('0x31')),ejs=require(_0x383556('0xd')),fs=require('fs'),_=require('lodash'),qs=require(_0x383556('0x1d')),logger=require(_0x383556('0x29'))(_0x383556('0x47')),config=require('../../config/environment'),db=require(_0x383556('0x18'))['db'],{Op}=require('sequelize'),jayson=require(_0x383556('0x20')),client=jayson[_0x383556('0x3f')]['http']({'port':0x232a});function respondWithRpcPromise(_0x309f42,_0x392447,_0x42c55b,_0xe0712){return new Promise(function(_0x283a44,_0x5250d2){const _0x13efcc=a457_0x3d64,_0x1763ac=_0xe0712||client;return _0x1763ac['request'](_0x309f42,_0x42c55b)[_0x13efcc('0x14')](function(_0x42a05d){const _0x4f95da=_0x13efcc;logger[_0x4f95da('0x15')](_0x4f95da('0x2c'),_0x392447,_0x4f95da('0x4b')),logger['debug'](_0x4f95da('0x1a'),_0x392447,_0x4f95da('0x4b'),JSON['stringify'](_0x42a05d));if(_0x42a05d[_0x4f95da('0x4d')]){if(_0x42a05d[_0x4f95da('0x4d')][_0x4f95da('0x21')]===0x1f4)return logger[_0x4f95da('0x4d')](_0x4f95da('0x2c'),_0x392447,_0x42a05d[_0x4f95da('0x4d')][_0x4f95da('0x7')]),_0x5250d2(_0x42a05d[_0x4f95da('0x4d')][_0x4f95da('0x7')]);return logger[_0x4f95da('0x4d')](_0x4f95da('0x2c'),_0x392447,_0x42a05d['error'][_0x4f95da('0x7')]),_0x283a44(_0x42a05d[_0x4f95da('0x4d')][_0x4f95da('0x7')]);}else logger[_0x4f95da('0x15')]('Network,\x20%s,\x20%s',_0x392447,'request\x20sent'),_0x283a44(_0x42a05d[_0x4f95da('0x51')][_0x4f95da('0x7')]);})[_0x13efcc('0x4f')](function(_0x1e7a07){const _0x2a6470=_0x13efcc;logger['error'](_0x2a6470('0x2c'),_0x392447,_0x1e7a07),_0x5250d2(_0x1e7a07);});});}function respondWithResult(_0x5b8d4a,_0x9cd446){return _0x9cd446=_0x9cd446||0xc8,function(_0x4668d0){const _0x16c569=a457_0x3d64;if(_0x4668d0)return _0x5b8d4a[_0x16c569('0x39')](_0x9cd446)[_0x16c569('0x41')](_0x4668d0);};}function respondWithFilteredResult(_0x4052b8,_0x556c6a){return function(_0x163c9e){const _0x49e426=a457_0x3d64;if(_0x163c9e){const _0x5b89bb=_0x163c9e['count'],_0x3adb9c=_0x556c6a['offset'];let _0x1d9629=_0x556c6a[_0x49e426('0x23')]+_0x556c6a[_0x49e426('0x33')],_0x314edb;return _0x1d9629>=_0x5b89bb?(_0x1d9629=_0x5b89bb,_0x314edb=0xc8):_0x314edb=0xce,_0x4052b8[_0x49e426('0x39')](_0x314edb),_0x4052b8[_0x49e426('0x43')]('Content-Range',_0x3adb9c+'-'+_0x1d9629+'/'+_0x5b89bb)['json'](_0x163c9e);}return null;};}function saveUpdates(_0x569a50){return function(_0x2ac5e7){const _0x534e8f=a457_0x3d64;if(_0x2ac5e7)return _0x2ac5e7[_0x534e8f('0x46')](_0x569a50)[_0x534e8f('0x14')](function(_0x5566c0){return _0x5566c0;});return null;};}function removeEntity(_0x2554c3){return function(_0xe9d881){const _0x1eaf23=a457_0x3d64;if(_0xe9d881)return _0xe9d881[_0x1eaf23('0x3d')]()[_0x1eaf23('0x14')](function(){const _0x39bde2=_0x1eaf23;_0x2554c3[_0x39bde2('0x39')](0xcc)[_0x39bde2('0x36')]();});};}function handleEntityNotFound(_0x4a351b){return function(_0x5073dc){const _0x40e0a2=a457_0x3d64;return!_0x5073dc&&_0x4a351b[_0x40e0a2('0xc')](0x194),_0x5073dc;};}function handleError(_0x1c9307,_0x33fa68){return _0x33fa68=_0x33fa68||0x1f4,function(_0x5078e2){const _0x115c3a=a457_0x3d64;logger[_0x115c3a('0x4d')](_0x5078e2[_0x115c3a('0x4a')]),_0x5078e2[_0x115c3a('0x5')]&&delete _0x5078e2[_0x115c3a('0x5')],_0x1c9307[_0x115c3a('0x39')](_0x33fa68)[_0x115c3a('0x2a')](_0x5078e2);};}exports[_0x383556('0x6')]=function(_0x562837,_0x4390a7){const _0x6e5e46=_0x383556;let _0x47ef06={};const _0x1a834b={},_0x122251={'count':0x0,'rows':[]},_0x54596e=_['map'](db[_0x6e5e46('0x48')][_0x6e5e46('0x17')],function(_0xc66eba){const _0x1e3b51=_0x6e5e46;return{'name':_0xc66eba[_0x1e3b51('0x4')],'type':_0xc66eba[_0x1e3b51('0x1')][_0x1e3b51('0x26')]};});_0x1a834b[_0x6e5e46('0x45')]=_[_0x6e5e46('0x24')](_0x54596e,_0x6e5e46('0x5')),_0x1a834b['query']=_[_0x6e5e46('0x1b')](_0x562837[_0x6e5e46('0x2f')]),_0x1a834b[_0x6e5e46('0x16')]=_[_0x6e5e46('0x3')](_0x1a834b['model'],_0x1a834b[_0x6e5e46('0x2f')]),_0x47ef06[_0x6e5e46('0x0')]=_[_0x6e5e46('0x3')](_0x1a834b[_0x6e5e46('0x45')],qs[_0x6e5e46('0x40')](_0x562837[_0x6e5e46('0x2f')][_0x6e5e46('0x40')])),_0x47ef06['attributes']=_0x47ef06[_0x6e5e46('0x0')]['length']?_0x47ef06[_0x6e5e46('0x0')]:_0x1a834b['model'];typeof _0x562837[_0x6e5e46('0x2f')]['nolimit']===_0x6e5e46('0x44')&&(_0x47ef06[_0x6e5e46('0x33')]=qs['limit'](_0x562837[_0x6e5e46('0x2f')][_0x6e5e46('0x33')]),_0x47ef06[_0x6e5e46('0x23')]=qs[_0x6e5e46('0x23')](_0x562837[_0x6e5e46('0x2f')][_0x6e5e46('0x23')]));_0x47ef06['order']=qs['sort'](_0x562837[_0x6e5e46('0x2f')][_0x6e5e46('0x42')]),_0x47ef06[_0x6e5e46('0x1e')]=qs[_0x6e5e46('0x16')](_[_0x6e5e46('0x1f')](_0x562837[_0x6e5e46('0x2f')],_0x1a834b[_0x6e5e46('0x16')]),_0x54596e);_0x562837['query']['filter']&&(_0x47ef06['where']=_[_0x6e5e46('0x27')](_0x47ef06[_0x6e5e46('0x1e')],{[Op['or']]:_[_0x6e5e46('0x24')](_0x54596e,function(_0x5b9951){const _0x5cebc7=_0x6e5e46;if(_0x5b9951[_0x5cebc7('0x1')]!=='VIRTUAL'){const _0x1b87a1={};return _0x1b87a1[_0x5b9951[_0x5cebc7('0x5')]]={[Op['like']]:'%'+_0x562837[_0x5cebc7('0x2f')]['filter']+'%'},_0x1b87a1;}})}));_0x47ef06=_['merge']({},_0x47ef06,_0x562837['options']);const _0x4fd21f={'where':_0x47ef06[_0x6e5e46('0x1e')]};return db[_0x6e5e46('0x48')][_0x6e5e46('0x49')](_0x4fd21f)[_0x6e5e46('0x14')](function(_0x3ed6eb){const _0x52c176=_0x6e5e46;return _0x122251[_0x52c176('0x49')]=_0x3ed6eb,_0x562837[_0x52c176('0x2f')][_0x52c176('0x11')]&&(_0x47ef06[_0x52c176('0x3e')]=[{'all':!![]}]),db[_0x52c176('0x48')][_0x52c176('0x37')](_0x47ef06);})[_0x6e5e46('0x14')](function(_0x31583c){const _0x57636b=_0x6e5e46;return _0x122251[_0x57636b('0x12')]=_0x31583c,_0x122251;})[_0x6e5e46('0x14')](respondWithFilteredResult(_0x4390a7,_0x47ef06))[_0x6e5e46('0x4f')](handleError(_0x4390a7,null));},exports[_0x383556('0x50')]=function(_0x2295d1,_0x4ed4d8){const _0x50841e=_0x383556;let _0x25b8c9={'raw':!![],'where':{'id':_0x2295d1[_0x50841e('0x3b')]['id']}};const _0x12c7b9={};return _0x12c7b9['model']=_['keys'](db['Network'][_0x50841e('0x17')]),_0x12c7b9[_0x50841e('0x2f')]=_[_0x50841e('0x1b')](_0x2295d1[_0x50841e('0x2f')]),_0x12c7b9['filters']=_['intersection'](_0x12c7b9[_0x50841e('0x45')],_0x12c7b9[_0x50841e('0x2f')]),_0x25b8c9['attributes']=_[_0x50841e('0x3')](_0x12c7b9['model'],qs['fields'](_0x2295d1[_0x50841e('0x2f')][_0x50841e('0x40')])),_0x25b8c9[_0x50841e('0x0')]=_0x25b8c9[_0x50841e('0x0')][_0x50841e('0x22')]?_0x25b8c9[_0x50841e('0x0')]:_0x12c7b9[_0x50841e('0x45')],_0x2295d1[_0x50841e('0x2f')][_0x50841e('0x11')]&&(_0x25b8c9[_0x50841e('0x3e')]=[{'all':!![]}]),_0x25b8c9=_[_0x50841e('0x27')]({},_0x25b8c9,_0x2295d1['options']),db[_0x50841e('0x48')][_0x50841e('0x19')](_0x25b8c9)['then'](handleEntityNotFound(_0x4ed4d8,null))['then'](respondWithResult(_0x4ed4d8,null))[_0x50841e('0x4f')](handleError(_0x4ed4d8,null));},exports['create']=function(_0x4b1043,_0x2cbd18){const _0xd32f69=_0x383556;let _0x563bed;return db['sequelize'][_0xd32f69('0x10')](function(){const _0x39b3fe=_0xd32f69;return db[_0x39b3fe('0x48')]['create'](_0x4b1043[_0x39b3fe('0x2')],{'raw':!![]})[_0x39b3fe('0x14')](function(_0x256293){const _0x1d3ac3=_0x39b3fe;return _0x563bed=_0x256293,db[_0x1d3ac3('0x48')]['findAll']({'where':{'type':_0x4b1043[_0x1d3ac3('0x2')][_0x1d3ac3('0x1')]},'raw':!![]});})['then'](function(_0x734863){const _0x126022=_0x39b3fe;if(_0x563bed[_0x126022('0x1')][_0x126022('0x4c')]()==_0x126022('0x1c')){const _0x417b95=fs[_0x126022('0xb')](path[_0x126022('0x2b')](config[_0x126022('0x25')],_0x126022('0xe')),_0x126022('0x9')),_0x3abe7f=ejs[_0x126022('0x3c')](_0x417b95,{'networks':_0x734863||[]});return fs[_0x126022('0x8')](_0x126022('0xf'),_0x3abe7f),respondWithRpcPromise('Reload',_0x126022('0x30'),{'module':'res_stun_monitor.so'});}else{if(_0x563bed[_0x126022('0x1')][_0x126022('0x4c')]()==_0x126022('0x4e')){const _0x46247b=fs['readFileSync'](path[_0x126022('0x2b')](config[_0x126022('0x25')],_0x126022('0x52')),_0x126022('0x9')),_0x180536=ejs['render'](_0x46247b,{'networks':_0x734863||[]});return fs[_0x126022('0x8')](_0x126022('0x28'),_0x180536),respondWithRpcPromise(_0x126022('0x13'),_0x126022('0x30'),{'module':_0x126022('0x35')});}else{const _0x38e8c0=fs[_0x126022('0xb')](path[_0x126022('0x2b')](config[_0x126022('0x25')],_0x126022('0x34')),_0x126022('0x9')),_0x392b0a=ejs['render'](_0x38e8c0,{'networks':_0x734863||[]});return fs[_0x126022('0x8')](util['format'](_0x126022('0x38'),_0x4b1043[_0x126022('0x2')][_0x126022('0x1')][_0x126022('0xa')]()),_0x392b0a),respondWithRpcPromise('Reload',_0x126022('0x30'),{'module':_0x126022('0x2e')});}}})[_0x39b3fe('0x14')](function(){return _0x563bed;});})[_0xd32f69('0x14')](respondWithResult(_0x2cbd18,0xc9))[_0xd32f69('0x4f')](handleError(_0x2cbd18,null));},exports[_0x383556('0x46')]=function(_0x3e0512,_0x1c5101){const _0x1288d2=_0x383556;let _0x305805;return db[_0x1288d2('0x2d')][_0x1288d2('0x10')](function(){const _0x170268=_0x1288d2;return db['Network'][_0x170268('0x19')]({'where':{'id':_0x3e0512[_0x170268('0x3b')]['id']}})[_0x170268('0x14')](handleEntityNotFound(_0x1c5101,null))[_0x170268('0x14')](saveUpdates(_0x3e0512[_0x170268('0x2')],null))[_0x170268('0x14')](function(_0x5e3d20){const _0x5e5dca=_0x170268;if(_0x5e3d20)return _0x305805=_0x5e3d20,db[_0x5e5dca('0x48')]['findAll']({'where':{'type':_0x305805[_0x5e5dca('0x1')]},'raw':!![]});return null;})[_0x170268('0x14')](function(_0x52b341){const _0x271abc=_0x170268;if(_0x305805[_0x271abc('0x1')][_0x271abc('0x4c')]()==_0x271abc('0x1c')){const _0x301c13=fs['readFileSync'](path['join'](config[_0x271abc('0x25')],_0x271abc('0xe')),_0x271abc('0x9')),_0x4b4da3=ejs['render'](_0x301c13,{'networks':_0x52b341||[]});return fs[_0x271abc('0x8')](_0x271abc('0xf'),_0x4b4da3),respondWithRpcPromise('Reload',_0x271abc('0x46'),{'module':_0x271abc('0x35')});}else{if(_0x305805[_0x271abc('0x1')]['toUpperCase']()==_0x271abc('0x4e')){const _0x2366bd=fs[_0x271abc('0xb')](path[_0x271abc('0x2b')](config['root'],_0x271abc('0x52')),_0x271abc('0x9')),_0x2886e7=ejs[_0x271abc('0x3c')](_0x2366bd,{'networks':_0x52b341||[]});return fs[_0x271abc('0x8')](_0x271abc('0x28'),_0x2886e7),respondWithRpcPromise(_0x271abc('0x13'),_0x271abc('0x46'),{'module':'res_stun_monitor.so'});}else{const _0x1ee239=fs[_0x271abc('0xb')](path[_0x271abc('0x2b')](config['root'],'server/files/templates/network.ejs'),'utf8'),_0x4099ae=ejs['render'](_0x1ee239,{'networks':_0x52b341||[]});return fs['writeFileSync'](util['format'](_0x271abc('0x38'),_0x3e0512[_0x271abc('0x2')][_0x271abc('0x1')]['toLowerCase']()),_0x4099ae),respondWithRpcPromise(_0x271abc('0x13'),'update',{'module':_0x271abc('0x2e')});}}})[_0x170268('0x14')](function(_0x4421d6){if(_0x4421d6)return _0x305805;return null;});})[_0x1288d2('0x14')](respondWithResult(_0x1c5101,null))[_0x1288d2('0x4f')](handleError(_0x1c5101,null));},exports[_0x383556('0x3d')]=function(_0x38749e,_0x2a6501){const _0x5a7d28=_0x383556;let _0x30a9f7;return db['Network'][_0x5a7d28('0x19')]({'where':{'id':_0x38749e[_0x5a7d28('0x3b')]['id']}})['then'](function(_0x8ff338){return _0x30a9f7=_0x8ff338,_0x8ff338;})[_0x5a7d28('0x14')](handleEntityNotFound(_0x2a6501,null))[_0x5a7d28('0x14')](removeEntity(_0x2a6501,null))[_0x5a7d28('0x14')](function(){const _0x53b66a=_0x5a7d28;if(_0x30a9f7)return db[_0x53b66a('0x48')][_0x53b66a('0x37')]({'where':{'type':_0x30a9f7[_0x53b66a('0x1')]},'raw':!![]});})[_0x5a7d28('0x14')](function(_0x4f94e8){const _0x4a70fb=_0x5a7d28;if(_0x30a9f7[_0x4a70fb('0x1')]['toUpperCase']()=='STUN'){const _0x20389d=fs['readFileSync'](path[_0x4a70fb('0x2b')](config[_0x4a70fb('0x25')],_0x4a70fb('0xe')),_0x4a70fb('0x9')),_0x36d060=ejs[_0x4a70fb('0x3c')](_0x20389d,{'networks':_0x4f94e8||[]});return fs['writeFileSync'](_0x4a70fb('0xf'),_0x36d060),respondWithRpcPromise(_0x4a70fb('0x13'),_0x4a70fb('0x3d'),{'module':_0x4a70fb('0x35')});}else{if(_0x30a9f7[_0x4a70fb('0x1')]['toUpperCase']()==_0x4a70fb('0x4e')){const _0x2cbf51=fs[_0x4a70fb('0xb')](path[_0x4a70fb('0x2b')](config['root'],_0x4a70fb('0x52')),_0x4a70fb('0x9')),_0x4fbeba=ejs[_0x4a70fb('0x3c')](_0x2cbf51,{'networks':_0x4f94e8||[]});return fs[_0x4a70fb('0x8')](_0x4a70fb('0x28'),_0x4fbeba),respondWithRpcPromise(_0x4a70fb('0x13'),_0x4a70fb('0x3d'),{'module':'res_stun_monitor.so'});}else{const _0x3535c7=fs[_0x4a70fb('0xb')](path[_0x4a70fb('0x2b')](config[_0x4a70fb('0x25')],_0x4a70fb('0x34')),_0x4a70fb('0x9')),_0x268422=ejs[_0x4a70fb('0x3c')](_0x3535c7,{'networks':_0x4f94e8||[]});return fs[_0x4a70fb('0x8')](util[_0x4a70fb('0x32')](_0x4a70fb('0x38'),_0x38749e[_0x4a70fb('0x2')][_0x4a70fb('0x1')]['toLowerCase']()),_0x268422),respondWithRpcPromise(_0x4a70fb('0x13'),_0x4a70fb('0x3d'),{'module':_0x4a70fb('0x2e')});}}})[_0x5a7d28('0x4f')](handleError(_0x2a6501,null));}; \ No newline at end of file +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 diff --git a/server/api/network/network.model.js b/server/api/network/network.model.js index 1c3b009..92fb1e2 100644 --- a/server/api/network/network.model.js +++ b/server/api/network/network.model.js @@ -1 +1 @@ -const a458_0x134a=['define','./network.attributes'];(function(_0x2e752f,_0x134aa7){const _0x4a8cf4=function(_0x5070f5){while(--_0x5070f5){_0x2e752f['push'](_0x2e752f['shift']());}};_0x4a8cf4(++_0x134aa7);}(a458_0x134a,0x1de));const a458_0x4a8c=function(_0x2e752f,_0x134aa7){_0x2e752f=_0x2e752f-0x0;let _0x4a8cf4=a458_0x134a[_0x2e752f];return _0x4a8cf4;};const _0xf1e9a5=a458_0x4a8c;'use strict';const attributes=require(_0xf1e9a5('0x1'));module['exports']=function(_0x5070f5){const _0x1c9f89=_0xf1e9a5,_0x264763=_0x5070f5[_0x1c9f89('0x0')]('Network',attributes,{'tableName':'network','paranoid':![],'indexes':[],'timestamps':!![]});return _0x264763;}; \ No newline at end of file +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 diff --git a/server/api/notification/index.js b/server/api/notification/index.js index 03449bd..c96b4ef 100644 --- a/server/api/notification/index.js +++ b/server/api/notification/index.js @@ -1 +1 @@ -const a459_0x4085=['../../components/auth/service','express','Router','isAuthenticated','exports','sendNotification','post'];(function(_0x137653,_0x408569){const _0x2b9f4d=function(_0x1acc58){while(--_0x1acc58){_0x137653['push'](_0x137653['shift']());}};_0x2b9f4d(++_0x408569);}(a459_0x4085,0x138));const a459_0x2b9f=function(_0x137653,_0x408569){_0x137653=_0x137653-0x0;let _0x2b9f4d=a459_0x4085[_0x137653];return _0x2b9f4d;};const _0x2ea12f=a459_0x2b9f;'use strict';const express=require(_0x2ea12f('0x4')),router=express[_0x2ea12f('0x5')](),auth=require(_0x2ea12f('0x3')),controller=require('./notification.controller');router[_0x2ea12f('0x2')]('/',auth[_0x2ea12f('0x6')](),controller[_0x2ea12f('0x1')]),module[_0x2ea12f('0x0')]=router; \ No newline at end of file +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 diff --git a/server/api/notification/notification.attributes.js b/server/api/notification/notification.attributes.js index 86be000..b721e76 100644 --- a/server/api/notification/notification.attributes.js +++ b/server/api/notification/notification.attributes.js @@ -1 +1 @@ -const a460_0x34d2=['TEXT','BOOLEAN','sequelize','STRING'];(function(_0x279c1f,_0x34d26a){const _0xd69fee=function(_0x2e849d){while(--_0x2e849d){_0x279c1f['push'](_0x279c1f['shift']());}};_0xd69fee(++_0x34d26a);}(a460_0x34d2,0x65));const a460_0xd69f=function(_0x279c1f,_0x34d26a){_0x279c1f=_0x279c1f-0x0;let _0xd69fee=a460_0x34d2[_0x279c1f];return _0xd69fee;};const _0x1b7c60=a460_0xd69f;'use strict';const Sequelize=require(_0x1b7c60('0x1'));module['exports']={'body':{'type':Sequelize[_0x1b7c60('0x3')]},'senderName':{'type':Sequelize[_0x1b7c60('0x2')]},'recipientsId':{'type':Sequelize[_0x1b7c60('0x3')]},'recipientsDescription':{'type':Sequelize['STRING']},'beep':{'type':Sequelize[_0x1b7c60('0x0')]}}; \ No newline at end of file +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 diff --git a/server/api/notification/notification.controller.js b/server/api/notification/notification.controller.js index 3ba9de5..4c8bcdc 100644 --- a/server/api/notification/notification.controller.js +++ b/server/api/notification/notification.controller.js @@ -1 +1 @@ -const a461_0x1834=['toLowerCase','send','then','getAgents','includes','mailqueue','status','team','Missing\x20\x27recipients\x27\x20parameter','lodash','../../rediscache','model','openchannelqueue','api','ValidationError','findOne','Invalid\x20\x27recipients\x27\x20object','html','User','user','recipient','notification:send','register','Sequelize','Missing\x20\x27view\x27\x20parameter','Invalid\x20\x27TemplateId\x27\x20parameter','../../mysqldb','stack','create','Queue','map','emit','beep','faxqueue','queue','recipients','body','error','isEmpty','text','some','render','replace','push','sequelize','sendNotification','forEach','recipientsId','union','view','sortBy','catch','Invalid\x20model\x20in\x20\x27recipients\x27\x20object','../../config/logger','ids','name','voicequeue','recipientsDescription','transaction','parse','Must\x20specify\x20at\x20least\x20one\x20argument\x20for\x20\x27text\x27\x20or\x20\x27TemplateId\x27','fullname','undefined','TemplateId','senderName','startCase'];(function(_0x432d75,_0x183405){const _0x349300=function(_0x315b2d){while(--_0x315b2d){_0x432d75['push'](_0x432d75['shift']());}};_0x349300(++_0x183405);}(a461_0x1834,0xeb));const a461_0x3493=function(_0x432d75,_0x183405){_0x432d75=_0x432d75-0x0;let _0x349300=a461_0x1834[_0x432d75];return _0x349300;};const _0x3af81e=a461_0x3493;'use strict';const Mustache=require('mustache'),_=require(_0x3af81e('0x26')),logger=require(_0x3af81e('0x10'))(_0x3af81e('0x2a')),{getSocket}=require(_0x3af81e('0x27')),socket=getSocket(),db=require(_0x3af81e('0x37'))['db'];require('./notification.socket')[_0x3af81e('0x33')](socket);function respondWithResult(_0x315b2d,_0x31cafe){return _0x31cafe=_0x31cafe||0xc8,function(_0x17cff9){const _0x43e26f=a461_0x3493;if(_0x17cff9)return _0x315b2d[_0x43e26f('0x23')](_0x31cafe)['json'](_0x17cff9);};}function handleError(_0x3ffecc,_0x3aa28a){return _0x3aa28a=_0x3aa28a||0x1f4,function(_0x152fc7){const _0x1a46d4=a461_0x3493;logger[_0x1a46d4('0x0')](_0x152fc7[_0x1a46d4('0x38')]),_0x152fc7[_0x1a46d4('0x12')]&&delete _0x152fc7[_0x1a46d4('0x12')],_0x3ffecc[_0x1a46d4('0x23')](_0x3aa28a)[_0x1a46d4('0x1e')](_0x152fc7);};}exports[_0x3af81e('0x8')]=function(_0x30fa0d,_0x590929){const _0x171d8e=_0x3af81e;let _0x1485ba=[];if(typeof _0x30fa0d[_0x171d8e('0x41')]['text']===_0x171d8e('0x19')&&typeof _0x30fa0d[_0x171d8e('0x41')][_0x171d8e('0x1a')]===_0x171d8e('0x19'))throw new db[(_0x171d8e('0x34'))]['ValidationError'](_0x171d8e('0x17'));else{if(typeof _0x30fa0d[_0x171d8e('0x41')][_0x171d8e('0x1a')]!==_0x171d8e('0x19')&&typeof _0x30fa0d['body'][_0x171d8e('0xc')]==='undefined')throw new db[(_0x171d8e('0x34'))][(_0x171d8e('0x2b'))](_0x171d8e('0x35'));if(typeof _0x30fa0d[_0x171d8e('0x41')][_0x171d8e('0x40')]===_0x171d8e('0x19'))throw new db[(_0x171d8e('0x34'))][(_0x171d8e('0x2b'))](_0x171d8e('0x25'));else{try{_0x1485ba=JSON[_0x171d8e('0x16')](_0x30fa0d[_0x171d8e('0x41')][_0x171d8e('0x40')]);}catch(_0x3ed0d6){logger['error'](_0x3ed0d6);throw new db[(_0x171d8e('0x34'))][(_0x171d8e('0x2b'))](_0x171d8e('0x2d'));}const _0x2c1b92=['chatqueue',_0x171d8e('0x3e'),_0x171d8e('0x22'),_0x171d8e('0x29'),'smsqueue',_0x171d8e('0x13'),'whatsappqueue',_0x171d8e('0x24'),_0x171d8e('0x30')];if(_[_0x171d8e('0x3')](_0x1485ba,function(_0x1a43a5){const _0x1e7c70=_0x171d8e;return!_[_0x1e7c70('0x21')](_0x2c1b92,_0x1a43a5[_0x1e7c70('0x28')]['toLowerCase']());}))throw new db['Sequelize'][(_0x171d8e('0x2b'))](_0x171d8e('0xf'));}}const _0x24cb97={};return _0x24cb97[_0x171d8e('0x1b')]=_0x30fa0d['body'][_0x171d8e('0x1b')]?_0x30fa0d['body'][_0x171d8e('0x1b')]:_0x30fa0d[_0x171d8e('0x30')][_0x171d8e('0x18')],_0x24cb97['recipientsDescription']=_[_0x171d8e('0x1')](_0x30fa0d[_0x171d8e('0x41')][_0x171d8e('0x14')])?null:_0x30fa0d['body'][_0x171d8e('0x14')],_0x24cb97['beep']=_0x30fa0d[_0x171d8e('0x41')][_0x171d8e('0x3d')]||![],_0x24cb97['SenderId']=_0x30fa0d[_0x171d8e('0x30')]['id'],getContent(_0x30fa0d[_0x171d8e('0x41')])[_0x171d8e('0x1f')](function(_0x3fa5ac){return _0x24cb97['body']=_0x3fa5ac,getRecipients(_0x1485ba);})['then'](function(_0x2a2b12){const _0x2888b5=_0x171d8e;return _0x24cb97[_0x2888b5('0xa')]=_[_0x2888b5('0xd')](_0x2a2b12)['join'](','),db[_0x2888b5('0x7')][_0x2888b5('0x15')](function(_0x4dca32){const _0xd73891=_0x2888b5;return db['Notification'][_0xd73891('0x39')](_0x24cb97,{'raw':!![],'transaction':_0x4dca32})[_0xd73891('0x1f')](function(_0x6adc8c){const _0x496ffd=_0xd73891,_0x277d5b={'sender':_0x24cb97[_0x496ffd('0x1b')],'description':_0x24cb97[_0x496ffd('0x14')],'content':_0x24cb97[_0x496ffd('0x41')],'beep':_0x24cb97[_0x496ffd('0x3d')]};return _0x2a2b12[_0x496ffd('0x9')](function(_0x42f401){const _0x52829b=_0x496ffd;_0x277d5b[_0x52829b('0x31')]=_0x42f401,socket[_0x52829b('0x3c')](_0x52829b('0x32'),_0x277d5b);}),_0x6adc8c;});});})[_0x171d8e('0x1f')](respondWithResult(_0x590929,0xc9))[_0x171d8e('0xe')](handleError(_0x590929,null));};function getContent(_0x44fe1c){return new Promise(function(_0x380f80,_0x5439d5){const _0x323ba0=a461_0x3493;if(_0x44fe1c[_0x323ba0('0x2')]){_0x380f80(_0x44fe1c[_0x323ba0('0x2')]);return;}return db['Template']['findOne']({'attributes':[_0x323ba0('0x2e')],'where':{'id':_0x44fe1c[_0x323ba0('0x1a')]},'raw':!![]})[_0x323ba0('0x1f')](function(_0x54e542){const _0x443466=_0x323ba0;if(!_0x54e542)throw new db['Sequelize'][(_0x443466('0x2b'))](_0x443466('0x36'));const _0x26331d=Mustache[_0x443466('0x4')](_0x54e542[_0x443466('0x2e')],_0x44fe1c[_0x443466('0xc')]);_0x380f80(_0x26331d);})['catch'](function(_0x28e142){_0x5439d5(_0x28e142);});});}function getRecipients(_0x1f6e98){return new Promise(function(_0xa3c752,_0x1885df){const _0x2921bf=a461_0x3493;let _0x4461ea=[];const _0x3a3bd7=[];return _0x1f6e98[_0x2921bf('0x9')](function(_0x472a84){const _0x2adc01=_0x2921bf;let _0x1c07f6=_[_0x2adc01('0x1c')](_0x472a84[_0x2adc01('0x28')][_0x2adc01('0x1d')]());if(_0x1c07f6===_0x2adc01('0x2f'))_0x4461ea=_[_0x2adc01('0xb')](_0x4461ea,_0x472a84['ids']);else{if(_[_0x2adc01('0x21')](_0x1c07f6,'queue'))_0x1c07f6=_0x1c07f6[_0x2adc01('0x5')](_0x2adc01('0x3f'),_0x2adc01('0x3a'));_0x472a84[_0x2adc01('0x11')][_0x2adc01('0x9')](function(_0x32da18){const _0x1080bc=_0x2adc01;_0x3a3bd7[_0x1080bc('0x6')](getAgents(_0x1c07f6,_0x32da18));});}}),Promise['all'](_0x3a3bd7)[_0x2921bf('0x1f')](function(_0x1e516b){const _0x438414=_0x2921bf;_0x4461ea=_[_0x438414('0xb')](_0x4461ea,_['flatten'](_0x1e516b)),_0xa3c752(_0x4461ea);})[_0x2921bf('0xe')](function(_0x2b0a01){_0x1885df(_0x2b0a01);});});}function getAgents(_0x104a4,_0x282481){return new Promise(function(_0x221c82,_0xc11d44){const _0x169047=a461_0x3493;return db[_0x104a4][_0x169047('0x2c')]({'where':{'id':_0x282481}})[_0x169047('0x1f')](function(_0x5451f4){const _0x36c3f9=_0x169047;return _0x5451f4[_0x36c3f9('0x20')]({'attributes':['id'],'raw':!![]})['then'](function(_0x4e2792){const _0x3f3fa9=_0x36c3f9,_0x498410=_[_0x3f3fa9('0x3b')](_0x4e2792,'id');_0x221c82(_0x498410);});})['catch'](function(_0xb87b19){_0xc11d44(_0xb87b19);});});} \ No newline at end of file +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 diff --git a/server/api/notification/notification.events.js b/server/api/notification/notification.events.js index d24d3b9..c16d649 100644 --- a/server/api/notification/notification.events.js +++ b/server/api/notification/notification.events.js @@ -1 +1 @@ -const a462_0x28e4=['remove','../../mysqldb','setMaxListeners','emit','update','undefined','save','addHook'];(function(_0x11fe0f,_0x28e436){const _0x1ba5e5=function(_0x1c42f9){while(--_0x1c42f9){_0x11fe0f['push'](_0x11fe0f['shift']());}};_0x1ba5e5(++_0x28e436);}(a462_0x28e4,0x192));const a462_0x1ba5=function(_0x11fe0f,_0x28e436){_0x11fe0f=_0x11fe0f-0x0;let _0x1ba5e5=a462_0x28e4[_0x11fe0f];return _0x1ba5e5;};const _0x539e5d=a462_0x1ba5;'use strict';const EventEmitter=require('events'),Notification=require(_0x539e5d('0x7'))['db']['Notification'],NotificationEvents=new EventEmitter();NotificationEvents[_0x539e5d('0x0')](0x0);const events={'afterCreate':_0x539e5d('0x4'),'afterUpdate':_0x539e5d('0x2'),'afterDestroy':_0x539e5d('0x6')};function emitEvent(_0x1c42f9){return function(_0x3c37f6){const _0x10dd9a=a462_0x1ba5;NotificationEvents[_0x10dd9a('0x1')](_0x1c42f9+':'+_0x3c37f6['id'],_0x3c37f6),NotificationEvents[_0x10dd9a('0x1')](_0x1c42f9,_0x3c37f6);};}for(const e in events){if(typeof events[e]!==_0x539e5d('0x3')){const event=events[e];Notification[_0x539e5d('0x5')](e,emitEvent(event));}}module['exports']=NotificationEvents; \ No newline at end of file +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 diff --git a/server/api/notification/notification.model.js b/server/api/notification/notification.model.js index e972854..1ed9bbe 100644 --- a/server/api/notification/notification.model.js +++ b/server/api/notification/notification.model.js @@ -1 +1 @@ -const a463_0x4ba0=['notifications','Notification','define','exports','utf8mb4_unicode_ci','./notification.attributes'];(function(_0x3acb33,_0x4ba0ed){const _0x5a9a55=function(_0x38742a){while(--_0x38742a){_0x3acb33['push'](_0x3acb33['shift']());}};_0x5a9a55(++_0x4ba0ed);}(a463_0x4ba0,0x123));const a463_0x5a9a=function(_0x3acb33,_0x4ba0ed){_0x3acb33=_0x3acb33-0x0;let _0x5a9a55=a463_0x4ba0[_0x3acb33];return _0x5a9a55;};const _0x32d26b=a463_0x5a9a;'use strict';const attributes=require(_0x32d26b('0x2'));module[_0x32d26b('0x0')]=function(_0x38742a){const _0x3adebd=_0x32d26b,_0x57dae7=_0x38742a[_0x3adebd('0x5')](_0x3adebd('0x4'),attributes,{'tableName':_0x3adebd('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x3adebd('0x1')});return _0x57dae7;}; \ No newline at end of file +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 diff --git a/server/api/notification/notification.rpc.js b/server/api/notification/notification.rpc.js index d350595..92c7799 100644 --- a/server/api/notification/notification.rpc.js +++ b/server/api/notification/notification.rpc.js @@ -1 +1 @@ -const a464_0x3260=['register','./notification.socket'];(function(_0x106b99,_0x326046){const _0x33581b=function(_0x535f6a){while(--_0x535f6a){_0x106b99['push'](_0x106b99['shift']());}};_0x33581b(++_0x326046);}(a464_0x3260,0x183));const a464_0x3358=function(_0x106b99,_0x326046){_0x106b99=_0x106b99-0x0;let _0x33581b=a464_0x3260[_0x106b99];return _0x33581b;};const _0x11918b=a464_0x3358;'use strict';const {getSocket}=require('../../rediscache'),socket=getSocket();require(_0x11918b('0x0'))[_0x11918b('0x1')](socket); \ No newline at end of file +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 diff --git a/server/api/notification/notification.socket.js b/server/api/notification/notification.socket.js index a7fe86c..ab26a1a 100644 --- a/server/api/notification/notification.socket.js +++ b/server/api/notification/notification.socket.js @@ -1 +1 @@ -const a465_0x2f0d=['remove','notification:','register','length','emit'];(function(_0x52aefd,_0x2f0d34){const _0x28faca=function(_0x58ecc0){while(--_0x58ecc0){_0x52aefd['push'](_0x52aefd['shift']());}};_0x28faca(++_0x2f0d34);}(a465_0x2f0d,0x17a));const a465_0x28fa=function(_0x52aefd,_0x2f0d34){_0x52aefd=_0x52aefd-0x0;let _0x28faca=a465_0x2f0d[_0x52aefd];return _0x28faca;};const _0x4b2dca=a465_0x28fa;'use strict';const NotificationEvents=require('./notification.events'),events=['save',_0x4b2dca('0x2'),'update'];function createListener(_0x58ecc0,_0x24ae3a){return function(_0x135540){const _0x574651=a465_0x28fa;_0x24ae3a[_0x574651('0x1')](_0x58ecc0,_0x135540);};}exports[_0x4b2dca('0x4')]=function(_0x4a4976){const _0x55b81c=_0x4b2dca;for(let _0xab5320=0x0,_0x261f6a=events[_0x55b81c('0x0')];_0xab5320<_0x261f6a;_0xab5320++){const _0x478f79=events[_0xab5320],_0x507b0b=createListener(_0x55b81c('0x3')+_0x478f79,_0x4a4976);NotificationEvents['on'](_0x478f79,_0x507b0b);}}; \ No newline at end of file +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 diff --git a/server/api/openchannelAccount/index.js b/server/api/openchannelAccount/index.js index dea1116..3424ced 100644 --- a/server/api/openchannelAccount/index.js +++ b/server/api/openchannelAccount/index.js @@ -1 +1 @@ -const a466_0x2feb=['show','/:id/dispositions','/:id/users','/describe','addApplications','isAuthenticated','delete','getAgents','update','express','../../components/auth/service','Router','/:id/notify','./openchannelAccount.controller','addDisposition','exports','addAgents','/:id','getDispositions','getInteractions','destroy','/:id/applications','post','get','index','/:id/canned_answers','getApplications','getAnswers','put','send'];(function(_0x116565,_0x2feb9e){const _0x48884f=function(_0x2576b0){while(--_0x2576b0){_0x116565['push'](_0x116565['shift']());}};_0x48884f(++_0x2feb9e);}(a466_0x2feb,0xa8));const a466_0x4888=function(_0x116565,_0x2feb9e){_0x116565=_0x116565-0x0;let _0x48884f=a466_0x2feb[_0x116565];return _0x48884f;};const _0x3d03d0=a466_0x4888;'use strict';const express=require(_0x3d03d0('0x15')),router=express[_0x3d03d0('0x17')](),auth=require(_0x3d03d0('0x16')),controller=require(_0x3d03d0('0x19'));router[_0x3d03d0('0x5')]('/',auth[_0x3d03d0('0x11')](),controller[_0x3d03d0('0x6')]),router[_0x3d03d0('0x5')](_0x3d03d0('0xf'),auth[_0x3d03d0('0x11')](),controller['describe']),router['get'](_0x3d03d0('0x1d'),auth[_0x3d03d0('0x11')](),controller[_0x3d03d0('0xc')]),router[_0x3d03d0('0x5')]('/:id/dispositions',auth[_0x3d03d0('0x11')](),controller[_0x3d03d0('0x0')]),router[_0x3d03d0('0x5')](_0x3d03d0('0x7'),auth['isAuthenticated'](),controller[_0x3d03d0('0x9')]),router[_0x3d03d0('0x5')](_0x3d03d0('0x3'),auth[_0x3d03d0('0x11')](),controller[_0x3d03d0('0x8')]),router['get']('/:id/interactions',auth[_0x3d03d0('0x11')](),controller[_0x3d03d0('0x1')]),router[_0x3d03d0('0x5')](_0x3d03d0('0xe'),auth['isAuthenticated'](),controller[_0x3d03d0('0x13')]),router[_0x3d03d0('0x4')]('/',auth['isAuthenticated'](),controller['create']),router[_0x3d03d0('0x4')](_0x3d03d0('0xd'),auth[_0x3d03d0('0x11')](),controller[_0x3d03d0('0x1a')]),router['post'](_0x3d03d0('0x7'),auth[_0x3d03d0('0x11')](),controller['addAnswer']),router[_0x3d03d0('0x4')](_0x3d03d0('0x18'),controller['notify']),router[_0x3d03d0('0x4')](_0x3d03d0('0x3'),auth[_0x3d03d0('0x11')](),controller[_0x3d03d0('0x10')]),router['post'](_0x3d03d0('0xe'),auth[_0x3d03d0('0x11')](),controller[_0x3d03d0('0x1c')]),router['post']('/:id/send',auth[_0x3d03d0('0x11')](),controller[_0x3d03d0('0xb')]),router[_0x3d03d0('0xa')]('/:id',auth['isAuthenticated'](),controller[_0x3d03d0('0x14')]),router[_0x3d03d0('0x12')](_0x3d03d0('0x1d'),auth[_0x3d03d0('0x11')](),controller[_0x3d03d0('0x2')]),router[_0x3d03d0('0x12')]('/:id/dispositions',auth[_0x3d03d0('0x11')](),controller['removeDispositions']),router[_0x3d03d0('0x12')]('/:id/canned_answers',auth[_0x3d03d0('0x11')](),controller['removeAnswers']),router[_0x3d03d0('0x12')](_0x3d03d0('0xe'),auth['isAuthenticated'](),controller['removeAgents']),module[_0x3d03d0('0x1b')]=router; \ No newline at end of file +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 diff --git a/server/api/openchannelAccount/openchannelAccount.attributes.js b/server/api/openchannelAccount/openchannelAccount.attributes.js index 1fdb0dd..7e40cbb 100644 --- a/server/api/openchannelAccount/openchannelAccount.attributes.js +++ b/server/api/openchannelAccount/openchannelAccount.attributes.js @@ -1 +1 @@ -const a467_0x5509=['TEXT','setDataValue','INTEGER','name','generate','mandatoryDispositionPauseId','STRING','randomstring','BOOLEAN','sequelize'];(function(_0x3302c3,_0x5509a3){const _0x230acf=function(_0x133af0){while(--_0x133af0){_0x3302c3['push'](_0x3302c3['shift']());}};_0x230acf(++_0x5509a3);}(a467_0x5509,0xa7));const a467_0x230a=function(_0x3302c3,_0x5509a3){_0x3302c3=_0x3302c3-0x0;let _0x230acf=a467_0x5509[_0x3302c3];return _0x230acf;};const _0x2acaba=a467_0x230a;'use strict';const Sequelize=require(_0x2acaba('0x2')),rs=require(_0x2acaba('0x0'));module['exports']={'name':{'type':Sequelize['STRING'],'unique':_0x2acaba('0x6'),'allowNull':![]},'description':{'type':Sequelize[_0x2acaba('0x9')]},'token':{'type':Sequelize[_0x2acaba('0x9')],'defaultValue':function(){const _0x871a2b=_0x2acaba;return rs[_0x871a2b('0x7')]();}},'replyUri':{'type':Sequelize['STRING'],'validate':{'isUrl':!![]}},'key':{'type':Sequelize[_0x2acaba('0x9')],'allowNull':![]},'notificationTemplate':{'type':Sequelize[_0x2acaba('0x3')],'defaultValue':function(){return'Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}';}},'notificationSound':{'type':Sequelize[_0x2acaba('0x1')],'defaultValue':!![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x2acaba('0x5')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'mapKey':{'type':Sequelize[_0x2acaba('0x9')]},'queueTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x2acaba('0x5')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x2acaba('0x1')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x2acaba('0x5')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x2acaba('0x5')],'allowNull':!![],'defaultValue':null,'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize[_0x2acaba('0x1')],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x133af0){const _0x14f3c4=_0x2acaba;if(!_0x133af0)this['setDataValue'](_0x14f3c4('0x8'),null);this[_0x14f3c4('0x4')]('mandatoryDisposition',_0x133af0);}}}; \ No newline at end of file +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 diff --git a/server/api/openchannelAccount/openchannelAccount.controller.js b/server/api/openchannelAccount/openchannelAccount.controller.js index e0f7633..a55fbfe 100644 --- a/server/api/openchannelAccount/openchannelAccount.controller.js +++ b/server/api/openchannelAccount/openchannelAccount.controller.js @@ -1 +1 @@ -const a468_0x1c50=['user','isArray','merge','from','code','from\x20is\x20mandatory','then','params','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','mapKey','filter','forcedOwnership','sequelize','like','result','Contacts','catch','ids','set','CannedAnswer','UserProfileResource','where','Applications','attributes','keys','created','removeAgents','findAll','ValidationError','emit','rows','request\x20sent','count','createdAt','getAgents','include','omit','lastName','status','lodash','unshift','map','info','key','removeDispositions','../../rediscache','role','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','addDisposition','CmList','json','filters','startRouting','transaction','destroy','firstName','OpenchannelAccount','get','send','name','debug','externalUrl','updatedAt','fields','includes','body','body\x20is\x20mandatory\x20and\x20not\x20empty','openchannel','request','Pause','color','applications','sort','model','stringify','OpenchannelAccounts','messageId','notify','userProfileId','OpenchannelAccount,\x20%s,\x20%s','limit','OpenchannelAccountId','defaults','DESC','fieldName','describe','interaction','Tags','error','difference','account','client','message','end','Content-Range','List','create','fullname','Owner','../../config/logger','push','undefined','*,*,*,*','userOpenchannelAccount:remove','addAgents','isNil','CompanyId','offset','priority','query','OpenchannelMessage','threadId','type','getAnswers','options','removeAnswers','intersection','Sequelize','contact','length','Disposition','order','findOne','autoAssociation','dataValues','jayson/promise','orderBy','OpenchannelInteraction','http','ListId','sendStatus','update','CmContact','autoclose','stack','includeAll','getApplications','addApplications','findAndCountAll','show','OpenchannelApplication','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','User','nolimit','rawAttributes','waitForTheAssignedAgent','unmanaged','Start','EventManager','out','pick','mandatoryDispositionPause','Messages'];(function(_0x2d40ba,_0x1c5010){const _0x1581aa=function(_0x46c317){while(--_0x46c317){_0x2d40ba['push'](_0x2d40ba['shift']());}};_0x1581aa(++_0x1c5010);}(a468_0x1c50,0x1b4));const a468_0x1581=function(_0x2d40ba,_0x1c5010){_0x2d40ba=_0x2d40ba-0x0;let _0x1581aa=a468_0x1c50[_0x2d40ba];return _0x1581aa;};const _0x41bf55=a468_0x1581;'use strict';const _=require(_0x41bf55('0x3e')),qs=require('../../components/parsers/qs'),logger=require(_0x41bf55('0x7a'))('api'),{getSocket}=require(_0x41bf55('0x44')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op}=require('sequelize');require('./openchannelAccount.socket')['register'](socket);const jayson=require(_0x41bf55('0x94')),client=jayson[_0x41bf55('0x72')][_0x41bf55('0x97')]({'port':0x232c}),client9002=jayson[_0x41bf55('0x72')][_0x41bf55('0x97')]({'port':0x232a});function respondWithRpcPromise(_0x46c317,_0x1518b0,_0x259bff,_0xc3776b){return new Promise(function(_0x33ae2e,_0x8ca04a){const _0x25c890=a468_0x1581,_0x2b9044=_0xc3776b||client;return _0x2b9044[_0x25c890('0x5b')](_0x46c317,_0x259bff)[_0x25c890('0x1d')](function(_0x3fa2a6){const _0x23e687=_0x25c890;logger[_0x23e687('0x41')](_0x23e687('0x66'),_0x1518b0,_0x23e687('0x36')),logger[_0x23e687('0x53')]('OpenchannelAccount,\x20%s,\x20%s,\x20%s',_0x1518b0,_0x23e687('0x36'),JSON[_0x23e687('0x61')](_0x3fa2a6));if(_0x3fa2a6[_0x23e687('0x6f')]){if(_0x3fa2a6['error'][_0x23e687('0x1b')]===0x1f4)return logger['error'](_0x23e687('0x66'),_0x1518b0,_0x3fa2a6['error'][_0x23e687('0x73')]),_0x8ca04a(_0x3fa2a6['error'][_0x23e687('0x73')]);return logger[_0x23e687('0x6f')]('OpenchannelAccount,\x20%s,\x20%s',_0x1518b0,_0x3fa2a6['error'][_0x23e687('0x73')]),_0x33ae2e(_0x3fa2a6[_0x23e687('0x6f')][_0x23e687('0x73')]);}else logger[_0x23e687('0x41')](_0x23e687('0x66'),_0x1518b0,_0x23e687('0x36')),_0x33ae2e(_0x3fa2a6[_0x23e687('0x25')][_0x23e687('0x73')]);})[_0x25c890('0x27')](function(_0x1c05aa){const _0x45cd99=_0x25c890;logger[_0x45cd99('0x6f')](_0x45cd99('0x66'),_0x1518b0,_0x1c05aa),_0x8ca04a(_0x1c05aa);});});}function respondWithStatusCode(_0x28e726,_0x2f8525){return _0x2f8525=_0x2f8525||0xcc,function(_0x1be187){const _0x503384=a468_0x1581;if(_0x1be187)return _0x28e726[_0x503384('0x0')](_0x2f8525);return _0x28e726[_0x503384('0x3d')](_0x2f8525)[_0x503384('0x74')]();};}function respondWithResult(_0x433bad,_0x55a471){return _0x55a471=_0x55a471||0xc8,function(_0x1a4e8a){const _0x405d46=a468_0x1581;if(_0x1a4e8a)return _0x433bad['status'](_0x55a471)[_0x405d46('0x49')](_0x1a4e8a);};}function respondWithFilteredResult(_0x3624eb,_0x364c29){return function(_0x4682c7){const _0xe1e1af=a468_0x1581;if(_0x4682c7){const _0xbab0d=_0x4682c7[_0xe1e1af('0x37')],_0x5e352c=_0x364c29['offset'];let _0xdb56da=_0x364c29[_0xe1e1af('0x82')]+_0x364c29['limit'],_0x1f661f;return _0xdb56da>=_0xbab0d?(_0xdb56da=_0xbab0d,_0x1f661f=0xc8):_0x1f661f=0xce,_0x3624eb[_0xe1e1af('0x3d')](_0x1f661f),_0x3624eb[_0xe1e1af('0x29')](_0xe1e1af('0x75'),_0x5e352c+'-'+_0xdb56da+'/'+_0xbab0d)[_0xe1e1af('0x49')](_0x4682c7);}return null;};}function saveUpdates(_0x359fa7){return function(_0x38b0a3){const _0x1dfa8c=a468_0x1581;if(_0x38b0a3)return _0x38b0a3[_0x1dfa8c('0x1')](_0x359fa7)[_0x1dfa8c('0x1d')](function(_0xbda237){return _0xbda237;});return null;};}function removeEntity(_0x1309c5){return function(_0x537b0e){const _0x4a2300=a468_0x1581;if(_0x537b0e)return _0x537b0e[_0x4a2300('0x4d')]()[_0x4a2300('0x1d')](function(){const _0x3e3180=_0x4a2300,_0x472254=_0x537b0e['get']({'plain':!![]}),_0xbceae7=_0x3e3180('0x62');return db[_0x3e3180('0x2b')][_0x3e3180('0x4d')]({'where':{'type':_0xbceae7,'resourceId':_0x472254['id']}})[_0x3e3180('0x1d')](function(){return _0x537b0e;});})[_0x4a2300('0x1d')](function(){const _0x5f201e=_0x4a2300;_0x1309c5[_0x5f201e('0x3d')](0xcc)[_0x5f201e('0x74')]();});};}function handleEntityNotFound(_0x21ac86){return function(_0x28c480){return!_0x28c480&&_0x21ac86['sendStatus'](0x194),_0x28c480;};}function handleError(_0x3ca866,_0x2e7dbd){return _0x2e7dbd=_0x2e7dbd||0x1f4,function(_0x2467c0){const _0x4342cb=a468_0x1581;logger['error'](_0x2467c0[_0x4342cb('0x4')]),_0x2467c0[_0x4342cb('0x52')]&&delete _0x2467c0[_0x4342cb('0x52')],_0x3ca866[_0x4342cb('0x3d')](_0x2e7dbd)[_0x4342cb('0x51')](_0x2467c0);};}exports['index']=function(_0x5850bd,_0x410789){const _0x1303b2=_0x41bf55;let _0x496158={'include':[{'model':db[_0x1303b2('0x5c')],'as':_0x1303b2('0x15')}]};const _0x330bf4={},_0x3907f7={'count':0x0,'rows':[]},_0x42e39e=_[_0x1303b2('0x40')](db['OpenchannelAccount'][_0x1303b2('0xe')],function(_0x2d5db1){const _0x4e0857=_0x1303b2;return{'name':_0x2d5db1[_0x4e0857('0x6b')],'type':_0x2d5db1[_0x4e0857('0x87')][_0x4e0857('0x42')]};});_0x330bf4['model']=_[_0x1303b2('0x40')](_0x42e39e,_0x1303b2('0x52')),_0x330bf4['query']=_[_0x1303b2('0x2f')](_0x5850bd[_0x1303b2('0x84')]),_0x330bf4[_0x1303b2('0x4a')]=_['intersection'](_0x330bf4[_0x1303b2('0x60')],_0x330bf4[_0x1303b2('0x84')]),_0x496158['attributes']=_[_0x1303b2('0x8b')](_0x330bf4[_0x1303b2('0x60')],qs['fields'](_0x5850bd[_0x1303b2('0x84')][_0x1303b2('0x56')])),_0x496158['attributes']=_0x496158[_0x1303b2('0x2e')][_0x1303b2('0x8e')]?_0x496158['attributes']:_0x330bf4[_0x1303b2('0x60')];typeof _0x5850bd[_0x1303b2('0x84')][_0x1303b2('0xd')]===_0x1303b2('0x7c')&&(_0x496158[_0x1303b2('0x67')]=qs[_0x1303b2('0x67')](_0x5850bd[_0x1303b2('0x84')][_0x1303b2('0x67')]),_0x496158[_0x1303b2('0x82')]=qs[_0x1303b2('0x82')](_0x5850bd[_0x1303b2('0x84')][_0x1303b2('0x82')]));_0x496158[_0x1303b2('0x90')]=qs[_0x1303b2('0x5f')](_0x5850bd[_0x1303b2('0x84')][_0x1303b2('0x5f')]),_0x496158['where']=qs[_0x1303b2('0x4a')](_[_0x1303b2('0x14')](_0x5850bd['query'],_0x330bf4['filters']),_0x42e39e);_0x5850bd[_0x1303b2('0x84')][_0x1303b2('0x21')]&&(_0x496158[_0x1303b2('0x2c')]=_[_0x1303b2('0x19')](_0x496158['where'],{[Op['or']]:_[_0x1303b2('0x40')](_0x42e39e,function(_0x2edf08){const _0x3c07ed=_0x1303b2;if(_0x2edf08[_0x3c07ed('0x87')]!=='VIRTUAL'){const _0x410f48={};return _0x410f48[_0x2edf08[_0x3c07ed('0x52')]]={[Op[_0x3c07ed('0x24')]]:'%'+_0x5850bd[_0x3c07ed('0x84')]['filter']+'%'},_0x410f48;}})}));_0x496158=_[_0x1303b2('0x19')]({},_0x496158,_0x5850bd[_0x1303b2('0x89')]);const _0x376bd1={'where':_0x496158[_0x1303b2('0x2c')]};return db[_0x1303b2('0x4f')][_0x1303b2('0x37')](_0x376bd1)[_0x1303b2('0x1d')](function(_0x262c6b){const _0x2d7dfc=_0x1303b2;return _0x3907f7[_0x2d7dfc('0x37')]=_0x262c6b,_0x5850bd[_0x2d7dfc('0x84')][_0x2d7dfc('0x5')]&&(_0x496158[_0x2d7dfc('0x3a')]=[{'all':!![]}]),db[_0x2d7dfc('0x4f')]['findAll'](_0x496158);})[_0x1303b2('0x1d')](function(_0x18ba8c){const _0x13faf5=_0x1303b2;return _0x3907f7[_0x13faf5('0x35')]=_0x18ba8c,_0x3907f7;})[_0x1303b2('0x1d')](respondWithFilteredResult(_0x410789,_0x496158))[_0x1303b2('0x27')](handleError(_0x410789,null));},exports[_0x41bf55('0x9')]=function(_0x1ee686,_0x188164){const _0x5d5edc=_0x41bf55;let _0x195f9b={'raw':![],'where':{'id':_0x1ee686['params']['id']},'include':[{'model':db[_0x5d5edc('0x5c')],'as':'mandatoryDispositionPause'}]};const _0x3119dd={};return _0x3119dd['model']=_[_0x5d5edc('0x2f')](db[_0x5d5edc('0x4f')][_0x5d5edc('0xe')]),_0x3119dd[_0x5d5edc('0x84')]=_[_0x5d5edc('0x2f')](_0x1ee686[_0x5d5edc('0x84')]),_0x3119dd[_0x5d5edc('0x4a')]=_[_0x5d5edc('0x8b')](_0x3119dd[_0x5d5edc('0x60')],_0x3119dd[_0x5d5edc('0x84')]),_0x195f9b[_0x5d5edc('0x2e')]=_['intersection'](_0x3119dd[_0x5d5edc('0x60')],qs['fields'](_0x1ee686['query']['fields'])),_0x195f9b[_0x5d5edc('0x2e')]=_0x195f9b[_0x5d5edc('0x2e')][_0x5d5edc('0x8e')]?_0x195f9b[_0x5d5edc('0x2e')]:_0x3119dd[_0x5d5edc('0x60')],_0x1ee686['query'][_0x5d5edc('0x5')]&&(_0x195f9b[_0x5d5edc('0x3a')]=[{'all':!![]}]),_0x195f9b=_['merge']({},_0x195f9b,_0x1ee686[_0x5d5edc('0x89')]),db[_0x5d5edc('0x4f')][_0x5d5edc('0x91')](_0x195f9b)['then'](handleEntityNotFound(_0x188164,null))[_0x5d5edc('0x1d')](respondWithResult(_0x188164,null))[_0x5d5edc('0x27')](handleError(_0x188164,null));},exports[_0x41bf55('0x77')]=function(_0x5d31cf,_0x534ed2){const _0xf22daf=_0x41bf55;return db[_0xf22daf('0x4f')][_0xf22daf('0x77')](_0x5d31cf['body'],{})['then'](function(_0x2e08c1){const _0x2463aa=_0xf22daf,_0x5d2f4e=_0x5d31cf[_0x2463aa('0x17')][_0x2463aa('0x50')]({'plain':!![]});if(!_0x5d2f4e)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x5d2f4e[_0x2463aa('0x45')]===_0x2463aa('0x17')){const _0x3b55a1=_0x2e08c1[_0x2463aa('0x50')]({'plain':!![]}),_0x3aadec=_0x2463aa('0x62');return db['UserProfileSection'][_0x2463aa('0x91')]({'where':{'name':_0x3aadec,'userProfileId':_0x5d2f4e[_0x2463aa('0x65')]},'raw':!![]})[_0x2463aa('0x1d')](function(_0x1e2a00){const _0xcbd739=_0x2463aa;return _0x1e2a00&&_0x1e2a00[_0xcbd739('0x92')]===0x0?db[_0xcbd739('0x2b')][_0xcbd739('0x77')]({'name':_0x3b55a1[_0xcbd739('0x52')],'resourceId':_0x3b55a1['id'],'type':_0x1e2a00[_0xcbd739('0x52')],'sectionId':_0x1e2a00['id']},{})[_0xcbd739('0x1d')](function(){return _0x2e08c1;}):_0x2e08c1;})[_0x2463aa('0x27')](function(_0x58109f){const _0x1711ac=_0x2463aa;logger[_0x1711ac('0x6f')](_0x1711ac('0xb'),_0x58109f);throw _0x58109f;});}return _0x2e08c1;})[_0xf22daf('0x1d')](respondWithResult(_0x534ed2,0xc9))[_0xf22daf('0x27')](handleError(_0x534ed2,null));},exports[_0x41bf55('0x1')]=function(_0x6a0eb4,_0x134b0f){const _0x311578=_0x41bf55;return _0x6a0eb4[_0x311578('0x58')]['id']&&delete _0x6a0eb4['body']['id'],db['OpenchannelAccount']['findOne']({'where':{'id':_0x6a0eb4[_0x311578('0x1e')]['id']},'include':[{'model':db[_0x311578('0x5c')],'as':_0x311578('0x15')}]})[_0x311578('0x1d')](handleEntityNotFound(_0x134b0f,null))[_0x311578('0x1d')](saveUpdates(_0x6a0eb4[_0x311578('0x58')],null))[_0x311578('0x1d')](respondWithResult(_0x134b0f,null))['catch'](handleError(_0x134b0f,null));},exports['destroy']=function(_0x275a48,_0x135c6a){const _0x2f89e9=_0x41bf55;return db[_0x2f89e9('0x4f')]['findOne']({'where':{'id':_0x275a48[_0x2f89e9('0x1e')]['id']}})[_0x2f89e9('0x1d')](handleEntityNotFound(_0x135c6a,null))[_0x2f89e9('0x1d')](removeEntity(_0x135c6a,null))[_0x2f89e9('0x27')](handleError(_0x135c6a,null));},exports[_0x41bf55('0x6c')]=function(_0x26a7f3,_0x240bc3){const _0x25a6b9=_0x41bf55;return db[_0x25a6b9('0x4f')][_0x25a6b9('0x6c')]()[_0x25a6b9('0x1d')](respondWithResult(_0x240bc3,null))[_0x25a6b9('0x27')](handleError(_0x240bc3,null));},exports[_0x41bf55('0x47')]=function(_0x59ea34,_0x5bbeed){const _0x2e6c78=_0x41bf55;return _0x59ea34[_0x2e6c78('0x58')]['id']&&delete _0x59ea34[_0x2e6c78('0x58')]['id'],db[_0x2e6c78('0x4f')]['findOne']({'where':{'id':_0x59ea34['params']['id']}})[_0x2e6c78('0x1d')](handleEntityNotFound(_0x5bbeed,null))[_0x2e6c78('0x1d')](function(_0x2a2d1a){const _0x1019de=_0x2e6c78;if(_0x2a2d1a)return _0x59ea34[_0x1019de('0x58')][_0x1019de('0x68')]=_0x2a2d1a['id'],db[_0x1019de('0x8f')][_0x1019de('0x77')](_0x59ea34[_0x1019de('0x58')]);})['then'](respondWithResult(_0x5bbeed,null))['catch'](handleError(_0x5bbeed,null));},exports['getDispositions']=function(_0x2aa5aa,_0x1f226c){const _0x385a78=_0x41bf55;let _0x91f1c8={'raw':![],'where':{}};const _0x133ce7={},_0xdc68ff={'count':0x0,'rows':[]};return db[_0x385a78('0x4f')][_0x385a78('0x91')]({'where':{'id':_0x2aa5aa[_0x385a78('0x1e')]['id']}})[_0x385a78('0x1d')](handleEntityNotFound(_0x1f226c,null))['then'](function(_0x23264b){const _0x24d1ab=_0x385a78;if(_0x23264b)return _0x133ce7[_0x24d1ab('0x60')]=_[_0x24d1ab('0x2f')](db['Disposition'][_0x24d1ab('0xe')]),_0x133ce7['query']=_['keys'](_0x2aa5aa[_0x24d1ab('0x84')]),_0x133ce7[_0x24d1ab('0x4a')]=_[_0x24d1ab('0x8b')](_0x133ce7[_0x24d1ab('0x60')],_0x133ce7['query']),_0x91f1c8[_0x24d1ab('0x2e')]=_[_0x24d1ab('0x8b')](_0x133ce7[_0x24d1ab('0x60')],qs[_0x24d1ab('0x56')](_0x2aa5aa['query'][_0x24d1ab('0x56')])),_0x91f1c8['attributes']=_0x91f1c8[_0x24d1ab('0x2e')][_0x24d1ab('0x8e')]?_0x91f1c8[_0x24d1ab('0x2e')]:_0x133ce7['model'],typeof _0x2aa5aa[_0x24d1ab('0x84')][_0x24d1ab('0xd')]===_0x24d1ab('0x7c')&&(_0x91f1c8['limit']=qs['limit'](_0x2aa5aa['query'][_0x24d1ab('0x67')]),_0x91f1c8[_0x24d1ab('0x82')]=qs[_0x24d1ab('0x82')](_0x2aa5aa[_0x24d1ab('0x84')]['offset'])),_0x91f1c8[_0x24d1ab('0x90')]=qs[_0x24d1ab('0x5f')](_0x2aa5aa[_0x24d1ab('0x84')]['sort']),_0x91f1c8[_0x24d1ab('0x2c')]=qs['filters'](_[_0x24d1ab('0x14')](_0x2aa5aa[_0x24d1ab('0x84')],_0x133ce7[_0x24d1ab('0x4a')])),_0x91f1c8[_0x24d1ab('0x2c')][_0x24d1ab('0x68')]=_0x23264b['id'],_0x2aa5aa[_0x24d1ab('0x84')][_0x24d1ab('0x21')]&&(_0x91f1c8[_0x24d1ab('0x2c')]=_['merge'](_0x91f1c8[_0x24d1ab('0x2c')],{[Op['or']]:_[_0x24d1ab('0x40')](_0x91f1c8[_0x24d1ab('0x2e')],function(_0x40f6e0){const _0x895cfc=_0x24d1ab,_0xb83757={};return _0xb83757[_0x40f6e0]={[Op['like']]:'%'+_0x2aa5aa[_0x895cfc('0x84')][_0x895cfc('0x21')]+'%'},_0xb83757;})})),_0x91f1c8=_[_0x24d1ab('0x19')]({},_0x91f1c8,_0x2aa5aa[_0x24d1ab('0x89')]),db[_0x24d1ab('0x8f')][_0x24d1ab('0x37')]({'where':_0x91f1c8[_0x24d1ab('0x2c')]})[_0x24d1ab('0x1d')](function(_0x3e3246){const _0x23c7c5=_0x24d1ab;return _0xdc68ff[_0x23c7c5('0x37')]=_0x3e3246,_0x2aa5aa[_0x23c7c5('0x84')][_0x23c7c5('0x5')]&&(_0x91f1c8[_0x23c7c5('0x3a')]=[{'all':!![]}]),db['Disposition'][_0x23c7c5('0x32')](_0x91f1c8);})[_0x24d1ab('0x1d')](function(_0x728aff){const _0x5e762f=_0x24d1ab;return _0xdc68ff[_0x5e762f('0x35')]=_0x728aff,_0xdc68ff;});})[_0x385a78('0x1d')](respondWithFilteredResult(_0x1f226c,_0x91f1c8))[_0x385a78('0x27')](handleError(_0x1f226c,null));},exports[_0x41bf55('0x43')]=function(_0xc80c23,_0x45cc5f){const _0x183a9b=_0x41bf55;return db['OpenchannelAccount'][_0x183a9b('0x91')]({'where':{'id':_0xc80c23['params']['id']}})[_0x183a9b('0x1d')](handleEntityNotFound(_0x45cc5f,null))[_0x183a9b('0x1d')](function(_0x27994b){const _0x4c499f=_0x183a9b;if(_0x27994b)return _0x27994b['removeDispositions'](_0xc80c23[_0x4c499f('0x84')][_0x4c499f('0x28')]);})[_0x183a9b('0x1d')](respondWithStatusCode(_0x45cc5f,null))[_0x183a9b('0x27')](handleError(_0x45cc5f,null));},exports['addAnswer']=function(_0x573bb6,_0x5b999f){const _0x33599a=_0x41bf55;return _0x573bb6[_0x33599a('0x58')]['id']&&delete _0x573bb6[_0x33599a('0x58')]['id'],db[_0x33599a('0x4f')][_0x33599a('0x91')]({'where':{'id':_0x573bb6[_0x33599a('0x1e')]['id']}})[_0x33599a('0x1d')](handleEntityNotFound(_0x5b999f,null))['then'](function(_0x453bb2){const _0x536f2c=_0x33599a;if(_0x453bb2)return _0x573bb6[_0x536f2c('0x58')]['OpenchannelAccountId']=_0x453bb2['id'],db[_0x536f2c('0x2a')][_0x536f2c('0x77')](_0x573bb6[_0x536f2c('0x58')]);})['then'](respondWithResult(_0x5b999f,null))[_0x33599a('0x27')](handleError(_0x5b999f,null));},exports[_0x41bf55('0x88')]=function(_0x5758f7,_0x30c07a){const _0x36e93d=_0x41bf55;let _0xf319f0={'raw':![],'where':{}};const _0x24afd0={},_0x30f3ad={'count':0x0,'rows':[]};return db[_0x36e93d('0x4f')][_0x36e93d('0x91')]({'where':{'id':_0x5758f7['params']['id']}})[_0x36e93d('0x1d')](handleEntityNotFound(_0x30c07a,null))['then'](function(_0x3ff961){const _0x122269=_0x36e93d;if(_0x3ff961)return _0x24afd0[_0x122269('0x60')]=_[_0x122269('0x2f')](db[_0x122269('0x2a')]['rawAttributes']),_0x24afd0[_0x122269('0x84')]=_[_0x122269('0x2f')](_0x5758f7[_0x122269('0x84')]),_0x24afd0[_0x122269('0x4a')]=_[_0x122269('0x8b')](_0x24afd0[_0x122269('0x60')],_0x24afd0[_0x122269('0x84')]),_0xf319f0['attributes']=_[_0x122269('0x8b')](_0x24afd0[_0x122269('0x60')],qs[_0x122269('0x56')](_0x5758f7[_0x122269('0x84')][_0x122269('0x56')])),_0xf319f0[_0x122269('0x2e')]=_0xf319f0[_0x122269('0x2e')]['length']?_0xf319f0[_0x122269('0x2e')]:_0x24afd0[_0x122269('0x60')],typeof _0x5758f7[_0x122269('0x84')][_0x122269('0xd')]===_0x122269('0x7c')&&(_0xf319f0[_0x122269('0x67')]=qs[_0x122269('0x67')](_0x5758f7[_0x122269('0x84')][_0x122269('0x67')]),_0xf319f0[_0x122269('0x82')]=qs[_0x122269('0x82')](_0x5758f7[_0x122269('0x84')][_0x122269('0x82')])),_0xf319f0[_0x122269('0x90')]=qs[_0x122269('0x5f')](_0x5758f7[_0x122269('0x84')][_0x122269('0x5f')]),_0xf319f0[_0x122269('0x2c')]=qs[_0x122269('0x4a')](_['pick'](_0x5758f7['query'],_0x24afd0['filters'])),_0xf319f0[_0x122269('0x2c')][_0x122269('0x68')]=_0x3ff961['id'],_0x5758f7[_0x122269('0x84')][_0x122269('0x21')]&&(_0xf319f0['where']=_[_0x122269('0x19')](_0xf319f0[_0x122269('0x2c')],{[Op['or']]:_[_0x122269('0x40')](_0xf319f0[_0x122269('0x2e')],function(_0x2b7701){const _0x59ce70=_0x122269,_0x2dac79={};return _0x2dac79[_0x2b7701]={[Op[_0x59ce70('0x24')]]:'%'+_0x5758f7[_0x59ce70('0x84')]['filter']+'%'},_0x2dac79;})})),_0xf319f0=_[_0x122269('0x19')]({},_0xf319f0,_0x5758f7[_0x122269('0x89')]),db[_0x122269('0x2a')][_0x122269('0x37')]({'where':_0xf319f0[_0x122269('0x2c')]})[_0x122269('0x1d')](function(_0x26fe02){const _0x177dbd=_0x122269;return _0x30f3ad['count']=_0x26fe02,_0x5758f7[_0x177dbd('0x84')]['includeAll']&&(_0xf319f0['include']=[{'all':!![]}]),db[_0x177dbd('0x2a')][_0x177dbd('0x32')](_0xf319f0);})[_0x122269('0x1d')](function(_0x48daa1){const _0x15493f=_0x122269;return _0x30f3ad[_0x15493f('0x35')]=_0x48daa1,_0x30f3ad;});})['then'](respondWithFilteredResult(_0x30c07a,_0xf319f0))[_0x36e93d('0x27')](handleError(_0x30c07a,null));},exports['removeAnswers']=function(_0x12c203,_0x47dd10){const _0x3709bd=_0x41bf55;return db['OpenchannelAccount']['findOne']({'where':{'id':_0x12c203['params']['id']}})[_0x3709bd('0x1d')](handleEntityNotFound(_0x47dd10,null))[_0x3709bd('0x1d')](function(_0x11ad8a){const _0x3aefcb=_0x3709bd;if(_0x11ad8a)return _0x11ad8a[_0x3aefcb('0x8a')](_0x12c203[_0x3aefcb('0x84')][_0x3aefcb('0x28')]);})[_0x3709bd('0x1d')](respondWithStatusCode(_0x47dd10,null))[_0x3709bd('0x27')](handleError(_0x47dd10,null));},exports[_0x41bf55('0x64')]=function(_0x22782b,_0x3b076a){const _0x2b4ff7=_0x41bf55,_0x58a32e={'body':_0x22782b[_0x2b4ff7('0x58')],'channel':_0x2b4ff7('0x5a')};let _0x5a43b2=[],_0x365d73=[];const _0x4a4e77={};let _0x3cc182=![];return db[_0x2b4ff7('0x2')][_0x2b4ff7('0x6c')]()[_0x2b4ff7('0x1d')](function(_0x5e48f2){const _0x5bcdc7=_0x2b4ff7;if(!_0x5e48f2)throw new db[(_0x5bcdc7('0x8c'))][(_0x5bcdc7('0x33'))]('no\x20available\x20attributes');_0x5a43b2=_['difference'](_[_0x5bcdc7('0x2f')](_0x5e48f2),[_0x5bcdc7('0x38'),'updatedAt']),_0x365d73=_[_0x5bcdc7('0x70')](_[_0x5bcdc7('0x2f')](_0x5e48f2),['createdAt',_0x5bcdc7('0x55'),_0x5bcdc7('0x81'),_0x5bcdc7('0x98')]);_0x22782b[_0x5bcdc7('0x58')]['id']&&delete _0x22782b['body']['id'];if(_[_0x5bcdc7('0x80')](_0x22782b[_0x5bcdc7('0x58')][_0x5bcdc7('0x1a')]))throw new db[(_0x5bcdc7('0x8c'))][(_0x5bcdc7('0x33'))](_0x5bcdc7('0x1c'));if(_[_0x5bcdc7('0x80')](_0x22782b[_0x5bcdc7('0x58')]['body'])||_0x22782b['body'][_0x5bcdc7('0x58')]==='')throw new db['Sequelize'][(_0x5bcdc7('0x33'))](_0x5bcdc7('0x59'));if(_['isNil'](_0x22782b['body'][_0x5bcdc7('0x20')]))throw new db['Sequelize']['ValidationError'](_0x5bcdc7('0x46')+_0x365d73);if(!_[_0x5bcdc7('0x57')](_0x365d73,_0x22782b[_0x5bcdc7('0x58')][_0x5bcdc7('0x20')]))throw new db[(_0x5bcdc7('0x8c'))][(_0x5bcdc7('0x33'))](_0x5bcdc7('0x1f')+_0x365d73);_0x4a4e77[_0x22782b[_0x5bcdc7('0x58')]['mapKey']]=_0x22782b['body']['from'];})[_0x2b4ff7('0x1d')](function(){const _0x16ffff=_0x2b4ff7;return db[_0x16ffff('0x4f')][_0x16ffff('0x91')]({'where':{'id':_0x22782b[_0x16ffff('0x1e')]['id']},'include':[{'model':db['CmList'],'as':'List','include':[{'model':db['CmContact'],'as':_0x16ffff('0x26'),'where':_0x4a4e77,'limit':0x1,'order':[[_0x16ffff('0x55'),_0x16ffff('0x6a')]]}]},{'model':db[_0x16ffff('0xa')],'as':_0x16ffff('0x2d')}]});})[_0x2b4ff7('0x1d')](handleEntityNotFound(_0x3b076a,null))[_0x2b4ff7('0x1d')](function(_0x130f76){const _0x2baf64=_0x2b4ff7;if(_0x130f76&&_0x130f76[_0x2baf64('0x76')]){_0x58a32e[_0x2baf64('0x71')]=_0x130f76,_0x58a32e[_0x2baf64('0x5e')]=_0x130f76[_0x2baf64('0x2d')],_0x58a32e['list']=_0x130f76[_0x2baf64('0x76')],_0x58a32e[_0x2baf64('0x5e')]=_[_0x2baf64('0x95')](_0x58a32e[_0x2baf64('0x5e')],['priority'],['asc']);_0x58a32e[_0x2baf64('0x71')][_0x2baf64('0x2d')]&&delete _0x58a32e[_0x2baf64('0x71')]['Applications'];if(_0x58a32e[_0x2baf64('0x71')][_0x2baf64('0x76')]&&_0x58a32e['account']['List'][_0x2baf64('0x26')][_0x2baf64('0x8e')])return _0x58a32e[_0x2baf64('0x71')]['List'][_0x2baf64('0x26')][0x0];const _0x36fe5d=_[_0x2baf64('0x69')](_0x22782b[_0x2baf64('0x58')],{'firstName':_0x22782b[_0x2baf64('0x58')][_0x2baf64('0x1a')],'ListId':_0x130f76[_0x2baf64('0x98')]});return _0x36fe5d[_0x22782b[_0x2baf64('0x58')][_0x2baf64('0x20')]]=_0x22782b[_0x2baf64('0x58')]['from'],db[_0x2baf64('0x2')]['create'](_0x36fe5d,{'fields':_0x5a43b2,'raw':!![]});}})[_0x2b4ff7('0x1d')](handleEntityNotFound(_0x3b076a,null))[_0x2b4ff7('0x1d')](function(_0x1c06ce){const _0x140f48=_0x2b4ff7;_0x58a32e[_0x140f48('0x8d')]=_0x1c06ce;if(_0x1c06ce){const _0x269d34={'ContactId':_0x1c06ce['id'],'OpenchannelAccountId':_0x22782b[_0x140f48('0x1e')]['id'],'from':(_0x1c06ce[_0x140f48('0x4e')]||'')+'\x20'+(_0x1c06ce[_0x140f48('0x3c')]||'')},_0x1ca169={'OpenchannelAccountId':_0x22782b[_0x140f48('0x1e')]['id'],'closed':![]};if(_0x22782b[_0x140f48('0x58')]['threadId'])return _0x1ca169[_0x140f48('0x86')]=_0x22782b[_0x140f48('0x58')][_0x140f48('0x86')],db[_0x140f48('0x96')]['findOne']({'where':_0x1ca169})['then'](function(_0x49c772){const _0x28a878=_0x140f48;if(_0x49c772)return[_0x49c772,![]];return _0x269d34[_0x28a878('0x86')]=_0x22782b[_0x28a878('0x58')][_0x28a878('0x86')],_0x269d34['externalUrl']=_0x22782b['body'][_0x28a878('0x54')],db['OpenchannelInteraction']['create'](_0x269d34)[_0x28a878('0x1d')](function(_0x2e4e7c){return[_0x2e4e7c,!![]];});});else _0x1ca169[_0x140f48('0x86')]=null;return _0x1ca169['ContactId']=_0x1c06ce['id'],db[_0x140f48('0x96')][_0x140f48('0x91')]({'where':_0x1ca169})[_0x140f48('0x1d')](function(_0x4ad8be){const _0x515f16=_0x140f48;if(_0x4ad8be)return[_0x4ad8be,![]];return db[_0x515f16('0x96')][_0x515f16('0x77')](_0x269d34)['then'](function(_0x425af6){return[_0x425af6,!![]];});});}})[_0x2b4ff7('0x1d')](function([_0x2ebb77,_0x323cfa]){const _0x3691f7=_0x2b4ff7;if(_0x2ebb77){_0x3cc182=_0x323cfa;if(!_0x323cfa){const _0x4d97e5={'from':(_0x58a32e[_0x3691f7('0x8d')][_0x3691f7('0x4e')]||'')+'\x20'+(_0x58a32e[_0x3691f7('0x8d')][_0x3691f7('0x3c')]||'')};return _0x22782b[_0x3691f7('0x58')][_0x3691f7('0x86')]&&_0x22782b['body']['messageId']&&_0x22782b['body'][_0x3691f7('0x86')]!=_0x22782b['body'][_0x3691f7('0x63')]&&(_0x4d97e5[_0x3691f7('0x86')]=_0x22782b[_0x3691f7('0x58')]['messageId']),_0x2ebb77[_0x3691f7('0x1')](_0x4d97e5);}else return _0x2ebb77;}})[_0x2b4ff7('0x1d')](function(_0x539d3d){const _0x1be981=_0x2b4ff7;return _0x58a32e[_0x1be981('0x6d')]=_0x539d3d[_0x1be981('0x50')]({'plain':!![]}),_0x58a32e[_0x1be981('0x6d')][_0x1be981('0x30')]=_0x3cc182,_0x58a32e['interaction'][_0x1be981('0x30')]&&(_0x58a32e[_0x1be981('0x71')][_0x1be981('0x3')]&&_0x58a32e[_0x1be981('0x5e')][_0x1be981('0x7b')]({'id':0x0,'priority':_0x58a32e[_0x1be981('0x5e')]['length']+0x1,'app':'close','appdata':_0x1be981('0x10'),'interval':_0x1be981('0x7d')})),db[_0x1be981('0x85')][_0x1be981('0x77')]({'body':_0x22782b[_0x1be981('0x58')][_0x1be981('0x58')],'OpenchannelAccountId':_0x22782b[_0x1be981('0x1e')]['id'],'OpenchannelInteractionId':_0x539d3d['id'],'direction':'in','ContactId':_0x58a32e[_0x1be981('0x8d')]['id'],'AttachmentId':_0x22782b['body']['AttachmentId']});})['then'](function(_0x212b57){const _0x116773=_0x2b4ff7;_0x58a32e['message']=_0x212b57;if(_0x58a32e[_0x116773('0x6d')]['UserId'])return db[_0x116773('0xc')][_0x116773('0x91')]({'attributes':['id',_0x116773('0x52')],'where':{'id':_0x58a32e[_0x116773('0x6d')]['UserId']}})['then'](function(_0x390ce6){const _0x28a7ce=_0x116773;return _0x390ce6&&(_0x58a32e[_0x28a7ce('0x5e')][_0x28a7ce('0x3f')]({'id':0x0,'priority':0x0,'app':'agent','appdata':_0x390ce6[_0x28a7ce('0x52')]+','+(_0x58a32e['account'][_0x28a7ce('0xf')]||0xa),'interval':_0x28a7ce('0x7d')}),_0x58a32e[_0x28a7ce('0x22')]=![]),respondWithRpcPromise(_0x28a7ce('0x11'),_0x28a7ce('0x4b'),_0x58a32e);});return respondWithRpcPromise('Start',_0x116773('0x4b'),_0x58a32e);})[_0x2b4ff7('0x1d')](function(_0x562df9){const _0x55e9f4=_0x2b4ff7;return respondWithRpcPromise('EventManager',_0x55e9f4('0x12'),{'event':_0x55e9f4('0x64'),'message':_0x562df9},client9002),_0x562df9;})[_0x2b4ff7('0x1d')](respondWithResult(_0x3b076a,null))[_0x2b4ff7('0x27')](handleError(_0x3b076a,null));},exports[_0x41bf55('0x7')]=function(_0xee34a1,_0x5807aa){const _0x32a26b=_0x41bf55;return db[_0x32a26b('0x4f')][_0x32a26b('0x91')]({'where':{'id':_0xee34a1[_0x32a26b('0x1e')]['id']}})[_0x32a26b('0x1d')](handleEntityNotFound(_0x5807aa,null))['then'](function(_0x5beb00){const _0x4983f1=_0x32a26b;if(_0x5beb00)return db[_0x4983f1('0x23')][_0x4983f1('0x4c')](function(_0x69050a){const _0x2ec163=_0x4983f1;return db[_0x2ec163('0xa')][_0x2ec163('0x4d')]({'where':{'OpenchannelAccountId':_0xee34a1[_0x2ec163('0x1e')]['id']},'transaction':_0x69050a})[_0x2ec163('0x1d')](function(){const _0x34224f=_0x2ec163,_0x59c5d8=_[_0x34224f('0x40')](_0xee34a1['body'],function(_0x5d1c48){const _0x4f28f1=_0x34224f;return _0x5d1c48[_0x4f28f1('0x68')]=_0xee34a1[_0x4f28f1('0x1e')]['id'],_0x5d1c48;});return db['OpenchannelApplication']['bulkCreate'](_0x59c5d8,{'transaction':_0x69050a});});})[_0x4983f1('0x1d')](function(){const _0x206a62=_0x4983f1;return db[_0x206a62('0xa')][_0x206a62('0x8')]({'where':{'OpenchannelAccountId':_0xee34a1[_0x206a62('0x1e')]['id']},'order':_0x206a62('0x83')});});})[_0x32a26b('0x1d')](respondWithResult(_0x5807aa,null))[_0x32a26b('0x27')](handleError(_0x5807aa,null));},exports[_0x41bf55('0x6')]=function(_0x1bb690,_0x47d8f9){const _0x3b0b30=_0x41bf55;let _0x390da2={};const _0x4088ef={};let _0x5586a1,_0x253649;return db[_0x3b0b30('0x4f')][_0x3b0b30('0x91')]({'where':{'id':_0x1bb690[_0x3b0b30('0x1e')]['id']}})[_0x3b0b30('0x1d')](handleEntityNotFound(_0x47d8f9,null))[_0x3b0b30('0x1d')](function(_0x57b197){const _0x77535c=_0x3b0b30;if(_0x57b197)return _0x5586a1=_0x57b197,_0x4088ef[_0x77535c('0x60')]=_[_0x77535c('0x2f')](db[_0x77535c('0xa')][_0x77535c('0xe')]),_0x4088ef['query']=_['keys'](_0x1bb690['query']),_0x4088ef['filters']=_[_0x77535c('0x8b')](_0x4088ef[_0x77535c('0x60')],_0x4088ef[_0x77535c('0x84')]),_0x390da2[_0x77535c('0x2e')]=_[_0x77535c('0x8b')](_0x4088ef[_0x77535c('0x60')],qs['fields'](_0x1bb690[_0x77535c('0x84')][_0x77535c('0x56')])),_0x390da2[_0x77535c('0x2e')]=_0x390da2[_0x77535c('0x2e')][_0x77535c('0x8e')]?_0x390da2[_0x77535c('0x2e')]:_0x4088ef[_0x77535c('0x60')],_0x390da2[_0x77535c('0x90')]=qs[_0x77535c('0x5f')](_0x1bb690[_0x77535c('0x84')][_0x77535c('0x5f')]),_0x390da2[_0x77535c('0x2c')]=qs[_0x77535c('0x4a')](_[_0x77535c('0x14')](_0x1bb690[_0x77535c('0x84')],_0x4088ef[_0x77535c('0x4a')])),_0x1bb690['query']['filter']&&(_0x390da2[_0x77535c('0x2c')]=_[_0x77535c('0x19')](_0x390da2[_0x77535c('0x2c')],{[Op['or']]:_[_0x77535c('0x40')](_0x390da2[_0x77535c('0x2e')],function(_0x5a39fd){const _0x11444d=_0x77535c,_0x2c225a={};return _0x2c225a[_0x5a39fd]={[Op[_0x11444d('0x24')]]:'%'+_0x1bb690['query'][_0x11444d('0x21')]+'%'},_0x2c225a;})})),_0x390da2=_['merge']({},_0x390da2,_0x1bb690['options']),_0x5586a1[_0x77535c('0x6')](_0x390da2);})['then'](function(_0x1a08fa){const _0x4eb2a1=_0x3b0b30;if(_0x1a08fa)return _0x253649=_0x1a08fa[_0x4eb2a1('0x8e')],typeof _0x1bb690[_0x4eb2a1('0x84')][_0x4eb2a1('0xd')]===_0x4eb2a1('0x7c')&&(_0x390da2['limit']=qs[_0x4eb2a1('0x67')](_0x1bb690[_0x4eb2a1('0x84')][_0x4eb2a1('0x67')]),_0x390da2[_0x4eb2a1('0x82')]=qs[_0x4eb2a1('0x82')](_0x1bb690[_0x4eb2a1('0x84')][_0x4eb2a1('0x82')])),_0x5586a1[_0x4eb2a1('0x6')](_0x390da2);})[_0x3b0b30('0x1d')](function(_0x31df35){if(_0x31df35)return _0x31df35?{'count':_0x253649,'rows':_0x31df35}:null;})[_0x3b0b30('0x1d')](respondWithResult(_0x47d8f9,null))['catch'](handleError(_0x47d8f9,null));},exports['getInteractions']=function(_0x3058b0,_0x24264f){const _0x453645=_0x41bf55;let _0x542739={'raw':![],'where':{}};const _0x49fbbb={},_0x28499e={'count':0x0,'rows':[]};return db[_0x453645('0x4f')][_0x453645('0x91')]({'where':{'id':_0x3058b0[_0x453645('0x1e')]['id']}})[_0x453645('0x1d')](handleEntityNotFound(_0x24264f,null))[_0x453645('0x1d')](function(_0x2df369){const _0x5dc38d=_0x453645;if(_0x2df369)return _0x49fbbb[_0x5dc38d('0x60')]=_[_0x5dc38d('0x2f')](db['OpenchannelInteraction'][_0x5dc38d('0xe')]),_0x49fbbb[_0x5dc38d('0x84')]=_[_0x5dc38d('0x2f')](_0x3058b0['query']),_0x49fbbb['filters']=_[_0x5dc38d('0x8b')](_0x49fbbb[_0x5dc38d('0x60')],_0x49fbbb['query']),_0x542739[_0x5dc38d('0x2e')]=_['intersection'](_0x49fbbb['model'],qs['fields'](_0x3058b0[_0x5dc38d('0x84')]['fields'])),_0x542739[_0x5dc38d('0x2e')]=_0x542739['attributes'][_0x5dc38d('0x8e')]?_0x542739[_0x5dc38d('0x2e')]:_0x49fbbb[_0x5dc38d('0x60')],typeof _0x3058b0['query'][_0x5dc38d('0xd')]===_0x5dc38d('0x7c')&&(_0x542739[_0x5dc38d('0x67')]=qs[_0x5dc38d('0x67')](_0x3058b0[_0x5dc38d('0x84')][_0x5dc38d('0x67')]),_0x542739['offset']=qs[_0x5dc38d('0x82')](_0x3058b0[_0x5dc38d('0x84')][_0x5dc38d('0x82')])),_0x542739['order']=qs[_0x5dc38d('0x5f')](_0x3058b0['query']['sort']),_0x542739['where']=qs[_0x5dc38d('0x4a')](_[_0x5dc38d('0x14')](_0x3058b0[_0x5dc38d('0x84')],_0x49fbbb[_0x5dc38d('0x4a')])),_0x542739[_0x5dc38d('0x2c')][_0x5dc38d('0x68')]=_0x2df369['id'],_0x3058b0[_0x5dc38d('0x84')][_0x5dc38d('0x21')]&&(_0x542739[_0x5dc38d('0x2c')]=_[_0x5dc38d('0x19')](_0x542739['where'],{[Op['or']]:_['map'](_0x542739[_0x5dc38d('0x2e')],function(_0x2f6e75){const _0x10daf1=_0x5dc38d,_0x42fe58={};return _0x42fe58[_0x2f6e75]={[Op[_0x10daf1('0x24')]]:'%'+_0x3058b0[_0x10daf1('0x84')][_0x10daf1('0x21')]+'%'},_0x42fe58;})})),_0x542739=_[_0x5dc38d('0x19')]({},_0x542739,_0x3058b0[_0x5dc38d('0x89')]),db[_0x5dc38d('0x96')][_0x5dc38d('0x37')]({'where':_0x542739[_0x5dc38d('0x2c')]})[_0x5dc38d('0x1d')](function(_0x190a2a){const _0xf723b1=_0x5dc38d;return _0x28499e[_0xf723b1('0x37')]=_0x190a2a,_0x3058b0[_0xf723b1('0x84')][_0xf723b1('0x5')]&&(_0x542739[_0xf723b1('0x3a')]=[{'model':db[_0xf723b1('0x2')],'as':'Contact','required':![]},{'model':db[_0xf723b1('0xc')],'as':_0xf723b1('0x79'),'attributes':[_0xf723b1('0x52'),_0xf723b1('0x78'),'internal'],'required':![]},{'model':db['Tag'],'as':_0xf723b1('0x6e'),'attributes':['id',_0xf723b1('0x52'),_0xf723b1('0x5d')],'where':_0x3058b0[_0xf723b1('0x84')]['tag']?{'id':_0x3058b0[_0xf723b1('0x84')]['tag']}:undefined,'required':_0x3058b0['query']['tag']?!![]:![]}]),db[_0xf723b1('0x96')][_0xf723b1('0x32')](_0x542739);})[_0x5dc38d('0x1d')](function(_0x52d636){return _0x28499e['rows']=_0x52d636,_0x28499e;});})[_0x453645('0x1d')](respondWithFilteredResult(_0x24264f,_0x542739))[_0x453645('0x27')](handleError(_0x24264f,null));},exports[_0x41bf55('0x7f')]=function(_0x4aaae6,_0x49ecdc){const _0x42d497=_0x41bf55;return db[_0x42d497('0x4f')][_0x42d497('0x91')]({'where':{'id':_0x4aaae6[_0x42d497('0x1e')]['id']}})[_0x42d497('0x1d')](function(_0x57ff1e){const _0x324a17=_0x42d497;if(_0x57ff1e)return _0x57ff1e[_0x324a17('0x7f')](_0x4aaae6[_0x324a17('0x58')]['ids'],{'through':_[_0x324a17('0x3b')](_0x4aaae6[_0x324a17('0x58')],['ids','id'])})[_0x324a17('0x1d')](function(_0x31ca52){const _0x389e63=_0x324a17;for(let _0x3d27ca=0x0;_0x3d27ca<_0x4aaae6[_0x389e63('0x58')][_0x389e63('0x28')][_0x389e63('0x8e')];_0x3d27ca+=0x1){socket['emit']('userOpenchannelAccount:save',{'UserId':_0x4aaae6[_0x389e63('0x58')]['ids'][_0x3d27ca],'OpenchannelAccountId':_0x4aaae6[_0x389e63('0x1e')]['id']});}return _0x31ca52;});})[_0x42d497('0x1d')](respondWithResult(_0x49ecdc,null))['catch'](handleError(_0x49ecdc,null));},exports['removeAgents']=function(_0xc7a389,_0x23a79e){const _0x26210a=_0x41bf55;return db['OpenchannelAccount']['findOne']({'where':{'id':_0xc7a389[_0x26210a('0x1e')]['id']}})['then'](handleEntityNotFound(_0x23a79e,null))[_0x26210a('0x1d')](function(_0x3fbc6e){const _0x29878e=_0x26210a;if(_0x3fbc6e)return _0x3fbc6e[_0x29878e('0x31')](_0xc7a389['query'][_0x29878e('0x28')])[_0x29878e('0x1d')](function(){const _0x62db10=_0x29878e;if(_[_0x62db10('0x18')](_0xc7a389['query'][_0x62db10('0x28')]))for(let _0x3fb790=0x0;_0x3fb790<_0xc7a389[_0x62db10('0x84')]['ids'][_0x62db10('0x8e')];_0x3fb790+=0x1){socket['emit'](_0x62db10('0x7e'),{'UserId':Number(_0xc7a389[_0x62db10('0x84')]['ids'][_0x3fb790]),'OpenchannelAccountId':Number(_0xc7a389[_0x62db10('0x1e')]['id'])});}else socket[_0x62db10('0x34')](_0x62db10('0x7e'),{'UserId':Number(_0xc7a389[_0x62db10('0x84')][_0x62db10('0x28')]),'OpenchannelAccountId':Number(_0xc7a389[_0x62db10('0x1e')]['id'])});});})['then'](respondWithStatusCode(_0x23a79e,null))[_0x26210a('0x27')](handleError(_0x23a79e,null));},exports['getAgents']=function(_0x551309,_0x5c0886){const _0x37aee1=_0x41bf55;let _0x11690a={};const _0x1e6ef4={};let _0x2b39b,_0x540edb;return db['OpenchannelAccount'][_0x37aee1('0x91')]({'where':{'id':_0x551309[_0x37aee1('0x1e')]['id']}})[_0x37aee1('0x1d')](handleEntityNotFound(_0x5c0886,null))[_0x37aee1('0x1d')](function(_0x55607f){const _0x1a698c=_0x37aee1;if(_0x55607f)return _0x2b39b=_0x55607f,_0x1e6ef4[_0x1a698c('0x60')]=_[_0x1a698c('0x2f')](db[_0x1a698c('0xc')][_0x1a698c('0xe')]),_0x1e6ef4['query']=_[_0x1a698c('0x2f')](_0x551309[_0x1a698c('0x84')]),_0x1e6ef4['filters']=_['intersection'](_0x1e6ef4[_0x1a698c('0x60')],_0x1e6ef4[_0x1a698c('0x84')]),_0x11690a['attributes']=_[_0x1a698c('0x8b')](_0x1e6ef4[_0x1a698c('0x60')],qs['fields'](_0x551309[_0x1a698c('0x84')]['fields'])),_0x11690a[_0x1a698c('0x2e')]=_0x11690a[_0x1a698c('0x2e')]['length']?_0x11690a[_0x1a698c('0x2e')]:_0x1e6ef4['model'],_0x11690a[_0x1a698c('0x90')]=qs['sort'](_0x551309['query'][_0x1a698c('0x5f')]),_0x11690a[_0x1a698c('0x2c')]=qs[_0x1a698c('0x4a')](_[_0x1a698c('0x14')](_0x551309[_0x1a698c('0x84')],_0x1e6ef4['filters'])),_0x551309[_0x1a698c('0x84')][_0x1a698c('0x21')]&&(_0x11690a['where']=_[_0x1a698c('0x19')](_0x11690a[_0x1a698c('0x2c')],{[Op['or']]:_[_0x1a698c('0x40')](_0x11690a[_0x1a698c('0x2e')],function(_0x170875){const _0x288455=_0x1a698c,_0x15c0a8={};return _0x15c0a8[_0x170875]={[Op[_0x288455('0x24')]]:'%'+_0x551309['query']['filter']+'%'},_0x15c0a8;})})),_0x11690a=_[_0x1a698c('0x19')]({},_0x11690a,_0x551309[_0x1a698c('0x89')]),_0x2b39b['getAgents'](_0x11690a);})[_0x37aee1('0x1d')](function(_0x5bb0a6){const _0x49ed73=_0x37aee1;if(_0x5bb0a6)return _0x540edb=_0x5bb0a6[_0x49ed73('0x8e')],typeof _0x551309['query'][_0x49ed73('0xd')]===_0x49ed73('0x7c')&&(_0x11690a['limit']=qs[_0x49ed73('0x67')](_0x551309[_0x49ed73('0x84')][_0x49ed73('0x67')]),_0x11690a['offset']=qs['offset'](_0x551309[_0x49ed73('0x84')][_0x49ed73('0x82')])),_0x2b39b[_0x49ed73('0x39')](_0x11690a);})[_0x37aee1('0x1d')](function(_0x1cf5c0){if(_0x1cf5c0)return _0x1cf5c0?{'count':_0x540edb,'rows':_0x1cf5c0}:null;})[_0x37aee1('0x1d')](respondWithResult(_0x5c0886,null))[_0x37aee1('0x27')](handleError(_0x5c0886,null));},exports[_0x41bf55('0x51')]=function(_0x3307a4,_0x4ff15b){const _0x163a04=_0x41bf55;let _0x4aae85,_0x487287;if(_[_0x163a04('0x80')](_0x3307a4[_0x163a04('0x58')]['body'])||_0x3307a4['body']['body']==='')throw new db[(_0x163a04('0x8c'))]['ValidationError'](_0x163a04('0x59'));if(_[_0x163a04('0x80')](_0x3307a4[_0x163a04('0x58')]['to'])){}const _0x1e7e60=_0x3307a4[_0x163a04('0x58')]['to'];return db[_0x163a04('0x4f')][_0x163a04('0x91')]({'where':{'id':_0x3307a4[_0x163a04('0x1e')]['id']}})[_0x163a04('0x1d')](handleEntityNotFound(_0x4ff15b,null))[_0x163a04('0x1d')](function(_0x11265e){const _0x5abfa7=_0x163a04;if(_0x11265e)return db[_0x5abfa7('0x4f')][_0x5abfa7('0x91')]({'where':{'id':_0x11265e['id']},'include':[{'model':db[_0x5abfa7('0x48')],'as':'List','include':[{'model':db[_0x5abfa7('0x2')],'as':_0x5abfa7('0x26'),'where':{[_0x11265e['mapKey']]:_0x1e7e60},'limit':0x1,'order':[[_0x5abfa7('0x55'),_0x5abfa7('0x6a')]]}]}]})[_0x5abfa7('0x1d')](handleEntityNotFound(_0x4ff15b,null))[_0x5abfa7('0x1d')](function(_0x3de046){const _0x5b47dd=_0x5abfa7;if(_0x3de046&&_0x3de046[_0x5b47dd('0x76')]){_0x4aae85=_0x3de046['get']({'plain':!![]});if(_0x4aae85['List']&&_0x4aae85[_0x5b47dd('0x76')][_0x5b47dd('0x26')][_0x5b47dd('0x8e')])return _0x4aae85[_0x5b47dd('0x76')][_0x5b47dd('0x26')][0x0];return db['CmContact'][_0x5b47dd('0x77')](_['defaults'](_0x3307a4[_0x5b47dd('0x58')],{'firstName':_0x1e7e60,[_0x3de046[_0x5b47dd('0x20')]]:_0x1e7e60,'phone':_0x1e7e60,'ListId':_0x4aae85[_0x5b47dd('0x98')]}));}})['then'](handleEntityNotFound(_0x4ff15b,null))[_0x5abfa7('0x1d')](function(_0x1f0d12){const _0x4b8794=_0x5abfa7;if(_0x1f0d12)return _0x487287=_0x1f0d12,db[_0x4b8794('0x96')][_0x4b8794('0x91')]({'where':{'ContactId':_0x487287['id'],'closed':![],'OpenchannelAccountId':_0x4aae85['id']}})[_0x4b8794('0x1d')](function(_0x3bbd97){const _0x1e5c10=_0x4b8794;if(_0x3bbd97)return[_0x3bbd97,![]];return db[_0x1e5c10('0x96')][_0x1e5c10('0x77')]({'UserId':_0x3307a4['user']['id'],'ContactId':_0x487287['id'],'OpenchannelAccountId':_0x4aae85['id'],'lastMsgDirection':_0x1e5c10('0x13'),'Messages':[_[_0x1e5c10('0x19')](_0x3307a4[_0x1e5c10('0x58')],{'read':![],'body':_0x3307a4[_0x1e5c10('0x58')][_0x1e5c10('0x58')],'OpenchannelAccountId':_0x4aae85['id'],'UserId':_0x3307a4['user']['id'],'ContactId':_0x487287['id']})]},{'include':[{'model':db[_0x1e5c10('0x85')],'as':'Messages'}]})['then'](function(_0x595e4a){return[_0x595e4a,!![]];});});})[_0x5abfa7('0x1d')](function([_0x59a68f,_0xa4bd07]){const _0x345d35=_0x5abfa7;if(_0xa4bd07)return _0x59a68f;return db['OpenchannelMessage'][_0x345d35('0x77')](_[_0x345d35('0x19')](_0x3307a4[_0x345d35('0x58')],{'read':![],'body':_0x3307a4[_0x345d35('0x58')]['body'],'OpenchannelAccountId':_0x4aae85['id'],'OpenchannelInteractionId':_0x59a68f['id'],'UserId':_0x3307a4[_0x345d35('0x17')]['id'],'ContactId':_0x487287['id']}))['then'](function(_0x3f9262){const _0x5251e5=_0x345d35;return _0x59a68f['dataValues'][_0x5251e5('0x16')]=[],_0x59a68f[_0x5251e5('0x93')][_0x5251e5('0x16')][_0x5251e5('0x7b')](_0x3f9262[_0x5251e5('0x93')]),_0x59a68f;});});})[_0x163a04('0x1d')](respondWithResult(_0x4ff15b,null))[_0x163a04('0x27')](handleError(_0x4ff15b,null));}; \ No newline at end of file +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 diff --git a/server/api/openchannelAccount/openchannelAccount.events.js b/server/api/openchannelAccount/openchannelAccount.events.js index 53396f2..f1dabb3 100644 --- a/server/api/openchannelAccount/openchannelAccount.events.js +++ b/server/api/openchannelAccount/openchannelAccount.events.js @@ -1 +1 @@ -const a469_0x3b30=['remove','addHook','OpenchannelAccount','events','setMaxListeners','save','exports','emit','../../mysqldb'];(function(_0x30432f,_0x3b3038){const _0x443681=function(_0x20f9c7){while(--_0x20f9c7){_0x30432f['push'](_0x30432f['shift']());}};_0x443681(++_0x3b3038);}(a469_0x3b30,0x16b));const a469_0x4436=function(_0x30432f,_0x3b3038){_0x30432f=_0x30432f-0x0;let _0x443681=a469_0x3b30[_0x30432f];return _0x443681;};const _0x13007c=a469_0x4436;'use strict';const EventEmitter=require(_0x13007c('0x0')),OpenchannelAccount=require(_0x13007c('0x5'))['db'][_0x13007c('0x8')],OpenchannelAccountEvents=new EventEmitter();OpenchannelAccountEvents[_0x13007c('0x1')](0x0);const events={'afterCreate':_0x13007c('0x2'),'afterUpdate':'update','afterDestroy':_0x13007c('0x6')};function emitEvent(_0x20f9c7){return function(_0x569de5){const _0x416585=a469_0x4436;OpenchannelAccountEvents[_0x416585('0x4')](_0x20f9c7+':'+_0x569de5['id'],_0x569de5),OpenchannelAccountEvents[_0x416585('0x4')](_0x20f9c7,_0x569de5);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];OpenchannelAccount[_0x13007c('0x7')](e,emitEvent(event));}}module[_0x13007c('0x3')]=OpenchannelAccountEvents; \ No newline at end of file +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 diff --git a/server/api/openchannelAccount/openchannelAccount.model.js b/server/api/openchannelAccount/openchannelAccount.model.js index 3e2e7a2..8b630f7 100644 --- a/server/api/openchannelAccount/openchannelAccount.model.js +++ b/server/api/openchannelAccount/openchannelAccount.model.js @@ -1 +1 @@ -const a470_0x5f07=['openchannel_accounts','exports','define','OpenchannelAccount'];(function(_0x2008b1,_0x5f0784){const _0x58e434=function(_0x2d06a9){while(--_0x2d06a9){_0x2008b1['push'](_0x2008b1['shift']());}};_0x58e434(++_0x5f0784);}(a470_0x5f07,0x79));const a470_0x58e4=function(_0x2008b1,_0x5f0784){_0x2008b1=_0x2008b1-0x0;let _0x58e434=a470_0x5f07[_0x2008b1];return _0x58e434;};const _0x29a348=a470_0x58e4;'use strict';const attributes=require('./openchannelAccount.attributes');module[_0x29a348('0x0')]=function(_0x2d06a9){const _0x2c940f=_0x29a348,_0x3290a8=_0x2d06a9[_0x2c940f('0x1')](_0x2c940f('0x2'),attributes,{'tableName':_0x2c940f('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3290a8;}; \ No newline at end of file +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 diff --git a/server/api/openchannelAccount/openchannelAccount.rpc.js b/server/api/openchannelAccount/openchannelAccount.rpc.js index 531e3bb..9e2ed17 100644 --- a/server/api/openchannelAccount/openchannelAccount.rpc.js +++ b/server/api/openchannelAccount/openchannelAccount.rpc.js @@ -1 +1 @@ -const a471_0x25bb=['../../rediscache'];(function(_0x5f51a5,_0x25bb90){const _0x2db711=function(_0x835eb4){while(--_0x835eb4){_0x5f51a5['push'](_0x5f51a5['shift']());}};_0x2db711(++_0x25bb90);}(a471_0x25bb,0x1dd));const a471_0x2db7=function(_0x5f51a5,_0x25bb90){_0x5f51a5=_0x5f51a5-0x0;let _0x2db711=a471_0x25bb[_0x5f51a5];return _0x2db711;};const _0x5e1e7a=a471_0x2db7;'use strict';const {getSocket}=require(_0x5e1e7a('0x0')),socket=getSocket();require('./openchannelAccount.socket')['register'](socket); \ No newline at end of file +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 diff --git a/server/api/openchannelAccount/openchannelAccount.socket.js b/server/api/openchannelAccount/openchannelAccount.socket.js index 2321938..d6389a7 100644 --- a/server/api/openchannelAccount/openchannelAccount.socket.js +++ b/server/api/openchannelAccount/openchannelAccount.socket.js @@ -1 +1 @@ -const a472_0x3e04=['remove','register','update','save','openchannelAccount:','emit'];(function(_0x145721,_0x3e0464){const _0x37dcc0=function(_0x5c246f){while(--_0x5c246f){_0x145721['push'](_0x145721['shift']());}};_0x37dcc0(++_0x3e0464);}(a472_0x3e04,0x131));const a472_0x37dc=function(_0x145721,_0x3e0464){_0x145721=_0x145721-0x0;let _0x37dcc0=a472_0x3e04[_0x145721];return _0x37dcc0;};const _0xf39f04=a472_0x37dc;'use strict';const OpenchannelAccountEvents=require('./openchannelAccount.events'),events=[_0xf39f04('0x4'),_0xf39f04('0x1'),_0xf39f04('0x3')];function createListener(_0x5c246f,_0x50d484){return function(_0x5a0e67){const _0x18afd6=a472_0x37dc;_0x50d484[_0x18afd6('0x0')](_0x5c246f,_0x5a0e67);};}exports[_0xf39f04('0x2')]=function(_0x55cbf0){const _0x27a108=_0xf39f04;for(let _0x434629=0x0,_0x202754=events['length'];_0x434629<_0x202754;_0x434629++){const _0x277aa0=events[_0x434629],_0x114a5c=createListener(_0x27a108('0x5')+_0x277aa0,_0x55cbf0);OpenchannelAccountEvents['on'](_0x277aa0,_0x114a5c);}}; \ No newline at end of file +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 diff --git a/server/api/openchannelApplication/index.js b/server/api/openchannelApplication/index.js index 7621b60..dcb2b24 100644 --- a/server/api/openchannelApplication/index.js +++ b/server/api/openchannelApplication/index.js @@ -1 +1 @@ -const a473_0x2987=['show','./openchannelApplication.controller','Router','update','create','destroy','get','/:id','post','put','../../components/auth/service','index','isAuthenticated'];(function(_0x36f201,_0x29874d){const _0x4facc9=function(_0x5872f1){while(--_0x5872f1){_0x36f201['push'](_0x36f201['shift']());}};_0x4facc9(++_0x29874d);}(a473_0x2987,0x77));const a473_0x4fac=function(_0x36f201,_0x29874d){_0x36f201=_0x36f201-0x0;let _0x4facc9=a473_0x2987[_0x36f201];return _0x4facc9;};const _0x483962=a473_0x4fac;'use strict';const express=require('express'),router=express[_0x483962('0x0')](),auth=require(_0x483962('0x8')),controller=require(_0x483962('0xc'));router[_0x483962('0x4')]('/',auth['isAuthenticated'](),controller[_0x483962('0x9')]),router[_0x483962('0x4')](_0x483962('0x5'),auth[_0x483962('0xa')](),controller[_0x483962('0xb')]),router[_0x483962('0x6')]('/',auth[_0x483962('0xa')](),controller[_0x483962('0x2')]),router[_0x483962('0x7')](_0x483962('0x5'),auth[_0x483962('0xa')](),controller[_0x483962('0x1')]),router['delete'](_0x483962('0x5'),auth[_0x483962('0xa')](),controller[_0x483962('0x3')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/openchannelApplication/openchannelApplication.attributes.js b/server/api/openchannelApplication/openchannelApplication.attributes.js index 1e0fd74..b6a1e26 100644 --- a/server/api/openchannelApplication/openchannelApplication.attributes.js +++ b/server/api/openchannelApplication/openchannelApplication.attributes.js @@ -1 +1 @@ -const a474_0xdce4=['noop','TEXT','*,*,*,*','STRING','sequelize','exports'];(function(_0x5a84a5,_0xdce47c){const _0x10ceeb=function(_0x46b775){while(--_0x46b775){_0x5a84a5['push'](_0x5a84a5['shift']());}};_0x10ceeb(++_0xdce47c);}(a474_0xdce4,0x84));const a474_0x10ce=function(_0x5a84a5,_0xdce47c){_0x5a84a5=_0x5a84a5-0x0;let _0x10ceeb=a474_0xdce4[_0x5a84a5];return _0x10ceeb;};const _0x543fae=a474_0x10ce;'use strict';const Sequelize=require(_0x543fae('0x4'));module[_0x543fae('0x5')]={'priority':{'type':Sequelize['INTEGER'],'allowNull':![]},'app':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x543fae('0x0')},'appdata':{'type':Sequelize[_0x543fae('0x1')]()},'description':{'type':Sequelize[_0x543fae('0x3')]},'interval':{'type':Sequelize['STRING'],'defaultValue':_0x543fae('0x2')}}; \ No newline at end of file +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 diff --git a/server/api/openchannelApplication/openchannelApplication.controller.js b/server/api/openchannelApplication/openchannelApplication.controller.js index bad3cd4..de2c1cc 100644 --- a/server/api/openchannelApplication/openchannelApplication.controller.js +++ b/server/api/openchannelApplication/openchannelApplication.controller.js @@ -1 +1 @@ -const a475_0x2c4f=['catch','body','type','set','../../components/parsers/qs','../../mysqldb','filters','merge','undefined','length','params','map','filter','status','OpenchannelApplication','update','Content-Range','create','fieldName','query','limit','count','attributes','order','options','index','sort','show','stack','fields','then','intersection','rawAttributes','key','name','keys','includeAll','model','error','findOne','lodash','VIRTUAL','where','json','destroy','findAll','pick','offset','nolimit'];(function(_0x252d28,_0x2c4f66){const _0x52c52f=function(_0x5cf983){while(--_0x5cf983){_0x252d28['push'](_0x252d28['shift']());}};_0x52c52f(++_0x2c4f66);}(a475_0x2c4f,0x111));const a475_0x52c5=function(_0x252d28,_0x2c4f66){_0x252d28=_0x252d28-0x0;let _0x52c52f=a475_0x2c4f[_0x252d28];return _0x52c52f;};const _0x47ce50=a475_0x52c5;'use strict';const _=require(_0x47ce50('0xc')),qs=require(_0x47ce50('0x19')),logger=require('../../config/logger')('api'),db=require(_0x47ce50('0x1a'))['db'],{Op}=require('sequelize');function respondWithResult(_0x5cf983,_0x46354f){return _0x46354f=_0x46354f||0xc8,function(_0x2c8230){const _0x45057b=a475_0x52c5;if(_0x2c8230)return _0x5cf983[_0x45057b('0x22')](_0x46354f)[_0x45057b('0xf')](_0x2c8230);};}function respondWithFilteredResult(_0x5b01ad,_0x73bf3a){return function(_0x46537b){const _0x43a4f2=a475_0x52c5;if(_0x46537b){const _0x1ffa3e=_0x46537b[_0x43a4f2('0x2a')],_0x49f0cd=_0x73bf3a[_0x43a4f2('0x13')];let _0x37c5d9=_0x73bf3a[_0x43a4f2('0x13')]+_0x73bf3a[_0x43a4f2('0x29')],_0x47270c;return _0x37c5d9>=_0x1ffa3e?(_0x37c5d9=_0x1ffa3e,_0x47270c=0xc8):_0x47270c=0xce,_0x5b01ad[_0x43a4f2('0x22')](_0x47270c),_0x5b01ad[_0x43a4f2('0x18')](_0x43a4f2('0x25'),_0x49f0cd+'-'+_0x37c5d9+'/'+_0x1ffa3e)[_0x43a4f2('0xf')](_0x46537b);}return null;};}function saveUpdates(_0x555ab9){return function(_0x3ae8ce){const _0x2b4fdf=a475_0x52c5;if(_0x3ae8ce)return _0x3ae8ce['update'](_0x555ab9)[_0x2b4fdf('0x2')](function(_0x1fe8ea){return _0x1fe8ea;});return null;};}function removeEntity(_0x11b8c4){return function(_0x17bf40){const _0x4f1bca=a475_0x52c5;if(_0x17bf40)return _0x17bf40['destroy']()[_0x4f1bca('0x2')](function(){const _0x27399d=_0x4f1bca;_0x11b8c4[_0x27399d('0x22')](0xcc)['end']();});};}function handleEntityNotFound(_0x57e777){return function(_0x22153e){return!_0x22153e&&_0x57e777['sendStatus'](0x194),_0x22153e;};}function handleError(_0x34a950,_0x3dfe8c){return _0x3dfe8c=_0x3dfe8c||0x1f4,function(_0x59af4e){const _0x189201=a475_0x52c5;logger[_0x189201('0xa')](_0x59af4e[_0x189201('0x0')]),_0x59af4e['name']&&delete _0x59af4e[_0x189201('0x6')],_0x34a950[_0x189201('0x22')](_0x3dfe8c)['send'](_0x59af4e);};}exports[_0x47ce50('0x2e')]=function(_0x207afe,_0x3de739){const _0x4b65c6=_0x47ce50;let _0x476bfc={};const _0x379fa8={},_0x133ef0={'count':0x0,'rows':[]},_0x2cff32=_[_0x4b65c6('0x20')](db['OpenchannelApplication'][_0x4b65c6('0x4')],function(_0x56f0df){const _0x1b4f2b=_0x4b65c6;return{'name':_0x56f0df[_0x1b4f2b('0x27')],'type':_0x56f0df['type'][_0x1b4f2b('0x5')]};});_0x379fa8[_0x4b65c6('0x9')]=_[_0x4b65c6('0x20')](_0x2cff32,_0x4b65c6('0x6')),_0x379fa8[_0x4b65c6('0x28')]=_[_0x4b65c6('0x7')](_0x207afe[_0x4b65c6('0x28')]),_0x379fa8[_0x4b65c6('0x1b')]=_[_0x4b65c6('0x3')](_0x379fa8['model'],_0x379fa8[_0x4b65c6('0x28')]),_0x476bfc[_0x4b65c6('0x2b')]=_['intersection'](_0x379fa8[_0x4b65c6('0x9')],qs[_0x4b65c6('0x1')](_0x207afe[_0x4b65c6('0x28')]['fields'])),_0x476bfc[_0x4b65c6('0x2b')]=_0x476bfc[_0x4b65c6('0x2b')]['length']?_0x476bfc[_0x4b65c6('0x2b')]:_0x379fa8[_0x4b65c6('0x9')];typeof _0x207afe[_0x4b65c6('0x28')][_0x4b65c6('0x14')]===_0x4b65c6('0x1d')&&(_0x476bfc[_0x4b65c6('0x29')]=qs['limit'](_0x207afe[_0x4b65c6('0x28')][_0x4b65c6('0x29')]),_0x476bfc[_0x4b65c6('0x13')]=qs['offset'](_0x207afe[_0x4b65c6('0x28')][_0x4b65c6('0x13')]));_0x476bfc[_0x4b65c6('0x2c')]=qs[_0x4b65c6('0x2f')](_0x207afe['query'][_0x4b65c6('0x2f')]),_0x476bfc['where']=qs[_0x4b65c6('0x1b')](_[_0x4b65c6('0x12')](_0x207afe[_0x4b65c6('0x28')],_0x379fa8[_0x4b65c6('0x1b')]),_0x2cff32);_0x207afe['query']['filter']&&(_0x476bfc[_0x4b65c6('0xe')]=_[_0x4b65c6('0x1c')](_0x476bfc[_0x4b65c6('0xe')],{[Op['or']]:_[_0x4b65c6('0x20')](_0x2cff32,function(_0x2ebdca){const _0x5c973a=_0x4b65c6;if(_0x2ebdca[_0x5c973a('0x17')]!==_0x5c973a('0xd')){const _0x2fdb23={};return _0x2fdb23[_0x2ebdca[_0x5c973a('0x6')]]={[Op['like']]:'%'+_0x207afe[_0x5c973a('0x28')][_0x5c973a('0x21')]+'%'},_0x2fdb23;}})}));_0x476bfc=_['merge']({},_0x476bfc,_0x207afe[_0x4b65c6('0x2d')]);const _0x2dd5c1={'where':_0x476bfc[_0x4b65c6('0xe')]};return db[_0x4b65c6('0x23')]['count'](_0x2dd5c1)['then'](function(_0x270cbb){const _0x313e1b=_0x4b65c6;return _0x133ef0['count']=_0x270cbb,_0x207afe[_0x313e1b('0x28')][_0x313e1b('0x8')]&&(_0x476bfc['include']=[{'all':!![]}]),db[_0x313e1b('0x23')][_0x313e1b('0x11')](_0x476bfc);})['then'](function(_0x421c3b){return _0x133ef0['rows']=_0x421c3b,_0x133ef0;})[_0x4b65c6('0x2')](respondWithFilteredResult(_0x3de739,_0x476bfc))[_0x4b65c6('0x15')](handleError(_0x3de739,null));},exports[_0x47ce50('0x30')]=function(_0x5717d4,_0xfadd6e){const _0x68124d=_0x47ce50;let _0x5bb73b={'raw':!![],'where':{'id':_0x5717d4[_0x68124d('0x1f')]['id']}};const _0x1dbf1c={};return _0x1dbf1c['model']=_[_0x68124d('0x7')](db['OpenchannelApplication'][_0x68124d('0x4')]),_0x1dbf1c[_0x68124d('0x28')]=_['keys'](_0x5717d4[_0x68124d('0x28')]),_0x1dbf1c[_0x68124d('0x1b')]=_[_0x68124d('0x3')](_0x1dbf1c[_0x68124d('0x9')],_0x1dbf1c[_0x68124d('0x28')]),_0x5bb73b['attributes']=_['intersection'](_0x1dbf1c[_0x68124d('0x9')],qs[_0x68124d('0x1')](_0x5717d4[_0x68124d('0x28')]['fields'])),_0x5bb73b[_0x68124d('0x2b')]=_0x5bb73b['attributes'][_0x68124d('0x1e')]?_0x5bb73b[_0x68124d('0x2b')]:_0x1dbf1c[_0x68124d('0x9')],_0x5717d4[_0x68124d('0x28')][_0x68124d('0x8')]&&(_0x5bb73b['include']=[{'all':!![]}]),_0x5bb73b=_[_0x68124d('0x1c')]({},_0x5bb73b,_0x5717d4['options']),db['OpenchannelApplication'][_0x68124d('0xb')](_0x5bb73b)[_0x68124d('0x2')](handleEntityNotFound(_0xfadd6e,null))[_0x68124d('0x2')](respondWithResult(_0xfadd6e,null))[_0x68124d('0x15')](handleError(_0xfadd6e,null));},exports[_0x47ce50('0x26')]=function(_0x5f350b,_0x582fb5){const _0x113ef7=_0x47ce50;return db['OpenchannelApplication'][_0x113ef7('0x26')](_0x5f350b[_0x113ef7('0x16')],{})[_0x113ef7('0x2')](respondWithResult(_0x582fb5,0xc9))['catch'](handleError(_0x582fb5,null));},exports[_0x47ce50('0x24')]=function(_0x186d79,_0x343074){const _0x148a5c=_0x47ce50;return _0x186d79['body']['id']&&delete _0x186d79['body']['id'],db[_0x148a5c('0x23')][_0x148a5c('0xb')]({'where':{'id':_0x186d79[_0x148a5c('0x1f')]['id']}})['then'](handleEntityNotFound(_0x343074,null))[_0x148a5c('0x2')](saveUpdates(_0x186d79['body'],null))[_0x148a5c('0x2')](respondWithResult(_0x343074,null))[_0x148a5c('0x15')](handleError(_0x343074,null));},exports[_0x47ce50('0x10')]=function(_0x48499a,_0x42a720){const _0x3a46bf=_0x47ce50;return db[_0x3a46bf('0x23')][_0x3a46bf('0xb')]({'where':{'id':_0x48499a[_0x3a46bf('0x1f')]['id']}})[_0x3a46bf('0x2')](handleEntityNotFound(_0x42a720,null))['then'](removeEntity(_0x42a720,null))['catch'](handleError(_0x42a720,null));}; \ No newline at end of file +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 diff --git a/server/api/openchannelApplication/openchannelApplication.model.js b/server/api/openchannelApplication/openchannelApplication.model.js index f86ae16..9c561f9 100644 --- a/server/api/openchannelApplication/openchannelApplication.model.js +++ b/server/api/openchannelApplication/openchannelApplication.model.js @@ -1 +1 @@ -const a476_0x4d4b=['define','openchannel_applications','./openchannelApplication.attributes','utf8mb4','exports'];(function(_0x323251,_0x4d4be0){const _0x1d1188=function(_0x35556a){while(--_0x35556a){_0x323251['push'](_0x323251['shift']());}};_0x1d1188(++_0x4d4be0);}(a476_0x4d4b,0x81));const a476_0x1d11=function(_0x323251,_0x4d4be0){_0x323251=_0x323251-0x0;let _0x1d1188=a476_0x4d4b[_0x323251];return _0x1d1188;};const _0x366220=a476_0x1d11;'use strict';const attributes=require(_0x366220('0x3'));module[_0x366220('0x0')]=function(_0x35556a){const _0x2775a0=_0x366220,_0x32dcd5=_0x35556a[_0x2775a0('0x1')]('OpenchannelApplication',attributes,{'tableName':_0x2775a0('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x2775a0('0x4'),'collate':'utf8mb4_unicode_ci'});return _0x32dcd5;}; \ No newline at end of file +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 diff --git a/server/api/openchannelApplication/openchannelApplication.rpc.js b/server/api/openchannelApplication/openchannelApplication.rpc.js index b9b7702..aa98e10 100644 --- a/server/api/openchannelApplication/openchannelApplication.rpc.js +++ b/server/api/openchannelApplication/openchannelApplication.rpc.js @@ -1 +1 @@ -const a477_0x181f=['where','attributes','../../mysqldb','options','UpdateOpenchannelApplication','update','limit','OpenchannelApplication','../../config/logger','info','raw','body','then','message','error'];(function(_0x3fa76b,_0x181fdb){const _0x58a1bf=function(_0x424299){while(--_0x424299){_0x3fa76b['push'](_0x3fa76b['shift']());}};_0x58a1bf(++_0x181fdb);}(a477_0x181f,0x1b3));const a477_0x58a1=function(_0x3fa76b,_0x181fdb){_0x3fa76b=_0x3fa76b-0x0;let _0x58a1bf=a477_0x181f[_0x3fa76b];return _0x58a1bf;};const _0x9edabd=a477_0x58a1;'use strict';const db=require(_0x9edabd('0x2'))['db'],logger=require(_0x9edabd('0x8'))('rpc');exports['UpdateOpenchannelApplication']=function(_0x424299){const _0x4d7e08=this;return new Promise(function(_0x45872d,_0x1d5460){const _0x1d8785=a477_0x58a1;return db[_0x1d8785('0x7')][_0x1d8785('0x5')](_0x424299[_0x1d8785('0xb')],{'raw':_0x424299[_0x1d8785('0x3')]?_0x424299[_0x1d8785('0x3')][_0x1d8785('0xa')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x424299[_0x1d8785('0x3')]?_0x424299[_0x1d8785('0x3')][_0x1d8785('0x0')]||null:null,'attributes':_0x424299[_0x1d8785('0x3')]?_0x424299[_0x1d8785('0x3')][_0x1d8785('0x1')]||null:null,'limit':_0x424299[_0x1d8785('0x3')]?_0x424299[_0x1d8785('0x3')][_0x1d8785('0x6')]||null:null})[_0x1d8785('0xc')](function(_0x6af58b){const _0x1a891f=_0x1d8785;logger[_0x1a891f('0x9')]('UpdateOpenchannelApplication',_0x424299),logger['debug'](_0x1a891f('0x4'),_0x424299,JSON['stringify'](_0x6af58b)),_0x45872d(_0x6af58b);})['catch'](function(_0x641e06){const _0x33b033=_0x1d8785;logger[_0x33b033('0xe')](_0x33b033('0x4'),_0x641e06['message'],_0x424299),_0x1d5460(_0x4d7e08[_0x33b033('0xe')](0x1f4,_0x641e06[_0x33b033('0xd')]));});});}; \ No newline at end of file +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 diff --git a/server/api/openchannelInteraction/index.js b/server/api/openchannelInteraction/index.js index b581ab1..cb3c83b 100644 --- a/server/api/openchannelInteraction/index.js +++ b/server/api/openchannelInteraction/index.js @@ -1 +1 @@ -const a478_0x2402=['addMessage','/describe','/:id/messages','download','/:id/download','openchannelinteraction:destroy','../../components/auth/service','tracked','openchannel','describe','index','../../components/interaction/service','express','openchannelinteraction:addtags','isAuthenticated','get','openchannelinteraction:update','/:id','addTags','show','exports','post'];(function(_0x3a2800,_0x24025f){const _0x1c5709=function(_0x1833a3){while(--_0x1833a3){_0x3a2800['push'](_0x3a2800['shift']());}};_0x1c5709(++_0x24025f);}(a478_0x2402,0xa4));const a478_0x1c57=function(_0x3a2800,_0x24025f){_0x3a2800=_0x3a2800-0x0;let _0x1c5709=a478_0x2402[_0x3a2800];return _0x1c5709;};const _0x3ff48d=a478_0x1c57;'use strict';const express=require(_0x3ff48d('0x2')),router=express['Router'](),auth=require(_0x3ff48d('0x12')),interaction=require(_0x3ff48d('0x1')),controller=require('./openchannelInteraction.controller');router[_0x3ff48d('0x5')]('/',auth[_0x3ff48d('0x4')](),controller[_0x3ff48d('0x0')]),router[_0x3ff48d('0x5')](_0x3ff48d('0xd'),auth[_0x3ff48d('0x4')](),controller[_0x3ff48d('0x15')]),router['get'](_0x3ff48d('0x7'),auth[_0x3ff48d('0x4')](),controller[_0x3ff48d('0x9')]),router['get'](_0x3ff48d('0xe'),auth[_0x3ff48d('0x4')](),controller['getMessages']),router[_0x3ff48d('0x5')](_0x3ff48d('0x10'),auth[_0x3ff48d('0x4')](),controller[_0x3ff48d('0xf')]),router[_0x3ff48d('0xb')]('/',auth[_0x3ff48d('0x4')](),controller['create']),router[_0x3ff48d('0xb')](_0x3ff48d('0xe'),auth[_0x3ff48d('0x4')](),controller[_0x3ff48d('0xc')]),router[_0x3ff48d('0xb')]('/:id/tags',auth[_0x3ff48d('0x4')](),interaction[_0x3ff48d('0x13')](_0x3ff48d('0x14'),_0x3ff48d('0x3')),controller[_0x3ff48d('0x8')]),router['put'](_0x3ff48d('0x7'),auth[_0x3ff48d('0x4')](),interaction[_0x3ff48d('0x13')](_0x3ff48d('0x14'),_0x3ff48d('0x6')),controller['update']),router['delete']('/:id',auth[_0x3ff48d('0x4')](),interaction[_0x3ff48d('0x13')](_0x3ff48d('0x14'),_0x3ff48d('0x11')),controller['destroy']),router['delete']('/:id/tags',auth[_0x3ff48d('0x4')](),controller['removeTags']),module[_0x3ff48d('0xa')]=router; \ No newline at end of file +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 diff --git a/server/api/openchannelInteraction/openchannelInteraction.attributes.js b/server/api/openchannelInteraction/openchannelInteraction.attributes.js index 984ccce..6c468e1 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.attributes.js +++ b/server/api/openchannelInteraction/openchannelInteraction.attributes.js @@ -1 +1 @@ -const a479_0x2e6f=['ENUM','sequelize','DATE','out','BOOLEAN','STRING'];(function(_0x423887,_0x2e6fd0){const _0x1f2515=function(_0x41e994){while(--_0x41e994){_0x423887['push'](_0x423887['shift']());}};_0x1f2515(++_0x2e6fd0);}(a479_0x2e6f,0x1e6));const a479_0x1f25=function(_0x423887,_0x2e6fd0){_0x423887=_0x423887-0x0;let _0x1f2515=a479_0x2e6f[_0x423887];return _0x1f2515;};const _0x27520a=a479_0x1f25;'use strict';const Sequelize=require(_0x27520a('0x1'));module['exports']={'closed':{'type':Sequelize[_0x27520a('0x4')],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x27520a('0x2')]},'disposition':{'type':Sequelize[_0x27520a('0x5')]},'secondDisposition':{'type':Sequelize[_0x27520a('0x5')]},'thirdDisposition':{'type':Sequelize['STRING']},'note':{'type':Sequelize[_0x27520a('0x5')]},'read1stAt':{'type':Sequelize[_0x27520a('0x2')]},'threadId':{'type':Sequelize[_0x27520a('0x5')]},'externalUrl':{'type':Sequelize[_0x27520a('0x5')]},'lastMsgAt':{'type':Sequelize[_0x27520a('0x2')]},'lastMsgDirection':{'type':Sequelize[_0x27520a('0x0')]('in',_0x27520a('0x3')),'defaultValue':'in','allowNull':![]},'from':{'type':Sequelize['STRING']}}; \ No newline at end of file +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 diff --git a/server/api/openchannelInteraction/openchannelInteraction.controller.js b/server/api/openchannelInteraction/openchannelInteraction.controller.js index f9629ea..538776b 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.controller.js +++ b/server/api/openchannelInteraction/openchannelInteraction.controller.js @@ -1 +1 @@ -const a480_0x3a25=['basename','System','length','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','status','disposition','i.id','out','findOne','`\x20=\x200','error','user_has_openchannel_interactions','Owner.internal','getFullTextValue','create','parse','log','me.OpenchannelInteractionId\x20=\x20i.id','order','Contact.firstName','t.id\x20IN\x20?','replace','CmContact','attributes','find','catch','all','get','group','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','threadId','send','openchannel_interactions','c.lastName','user','offset','name','QueryTypes','tag','transcript-','sequelize','`unreadMessages`\x20=\x200','field','include','text','ui.OpenchannelInteractionId','sort','destroy','o.fullname','Content-Range','union','$gte','color','direction','server','existsSync','Owner','filters','left_join','../../components/parsers/qs','ids','i.from\x20LIKE\x20?','YYYY-MM-DD','search','\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','isArray','createdAt','isEmpty','../../mysqldb','undefined','i.OpenchannelAccountId\x20IS\x20NOT\x20NULL','expr','body','keyBy','Sequelize','fields','OpenchannelAccountId','%s\x20#%d','model','Users','SELECT','fieldName','html-pdf','pick','OpenchannelMessage','unix','keys','set','toString','Contact.phone','describe','getMessages','key','query','then','concat','$lte','squel','err','sendStatus','i.OpenchannelAccountId\x20IS\x20NULL','c.email','./openchannelInteraction.socket','emit','util','from','downloadInteraction.html','show','intersection','params','Attachment','read','\x20=\x20?','a.mandatoryDisposition','o.internal','GROUP_CONCAT(DISTINCT\x20t.id)','isNumeric','User','tools_tags','Tags','Contact.email','sqlOperator','openchannelInteractionTags:save','null','split','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','\x27\x27\x27\x27','start','closed','`unreadMessages`\x20>\x200','cm_contacts','fullname','YYYY-MM-DD\x20HH:mm:ss','OpenchannelInteraction','unreadMessages','ui.OpenchannelInteractionId\x20IN\x20?','removeTags','attachments','omit','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','operator','findAll','merge','closedAt','push','users','Tag','includeAll','createReadStream','toFile','../../rediscache','OpenchannelAccount','openchannel_messages','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','having','DESC','rawAttributes','lastName','Openchannel','root','select','options','journey','`\x20>\x200','UserId','u.id\x20=\x20ui.UserId','Messages','transcript-%d-%s.zip','count','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','i.OpenchannelAccountId\x20IN\x20?','join','i.*','Account','firstName','c.phone','buildExpression','conditions','ContactId','../../components/parsers/advancedSearch','json','gte','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','a.key','ejs','files','format','Contact.fax','limit','Contact.lastName','value','type','Owner.fullname','forEach','OpenchannelInteractionId','map','secret','groupBy','path','filter','nolimit','.pdf','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','renderFile','lodash','like','N.A.','createWriteStream','end','Account.key','rimraf','c.fax','Contact','update','i.id\x20LIKE\x20?','addMessage','$substring','TagIds','some','openchannel_accounts','parseSearch','unlinkSync','api','u.id','where'];(function(_0x4f9b32,_0x3a2537){const _0x57231d=function(_0x1109a9){while(--_0x1109a9){_0x4f9b32['push'](_0x4f9b32['shift']());}};_0x57231d(++_0x3a2537);}(a480_0x3a25,0xf6));const a480_0x5723=function(_0x4f9b32,_0x3a2537){_0x4f9b32=_0x4f9b32-0x0;let _0x57231d=a480_0x3a25[_0x4f9b32];return _0x57231d;};const _0xedcba8=a480_0x5723;'use strict';const pdf=require(_0xedcba8('0x3d')),rimraf=require(_0xedcba8('0xbd')),zipdir=require('zip-dir'),moment=require('moment'),util=require(_0xedcba8('0x53')),path=require(_0xedcba8('0xb1')),ejs=require(_0xedcba8('0xa3')),fs=require('fs'),_=require(_0xedcba8('0xb7')),squel=require(_0xedcba8('0x4c')),{getSocket}=require(_0xedcba8('0x81')),socket=getSocket(),qs=require(_0xedcba8('0x26')),as=require(_0xedcba8('0x9e')),logger=require('../../config/logger')(_0xedcba8('0xc9')),config=require('../../config/environment'),db=require(_0xedcba8('0x2f'))['db'],{Op}=require('sequelize');require(_0xedcba8('0x51'))['register'](socket);function respondWithStatusCode(_0x1109a9,_0x49a279){return _0x49a279=_0x49a279||0xcc,function(_0xc1b1e5){const _0x2db690=a480_0x5723;if(_0xc1b1e5)return _0x1109a9[_0x2db690('0x4e')](_0x49a279);return _0x1109a9[_0x2db690('0xd0')](_0x49a279)[_0x2db690('0xbb')]();};}function respondWithResult(_0x11cd15,_0x29c34e){return _0x29c34e=_0x29c34e||0xc8,function(_0x1a5164){const _0x1e62af=a480_0x5723;if(_0x1a5164)return _0x11cd15[_0x1e62af('0xd0')](_0x29c34e)[_0x1e62af('0x9f')](_0x1a5164);};}function respondWithFilteredResult(_0x1a54b0,_0x53503a){return function(_0x44a49f){const _0x4208d0=a480_0x5723;if(_0x44a49f){const _0x40786b=_0x44a49f[_0x4208d0('0x93')],_0x7dcb67=_0x53503a['offset'];let _0x4dc82c=_0x53503a[_0x4208d0('0xe')]+_0x53503a[_0x4208d0('0xa7')],_0x1fc266;return _0x4dc82c>=_0x40786b?(_0x4dc82c=_0x40786b,_0x1fc266=0xc8):_0x1fc266=0xce,_0x1a54b0[_0x4208d0('0xd0')](_0x1fc266),_0x1a54b0[_0x4208d0('0x42')](_0x4208d0('0x1c'),_0x7dcb67+'-'+_0x4dc82c+'/'+_0x40786b)[_0x4208d0('0x9f')](_0x44a49f);}return null;};}function saveUpdates(_0x36d76f){return function(_0x4f884f){const _0x311777=a480_0x5723;if(_0x4f884f)return _0x4f884f[_0x311777('0xc0')](_0x36d76f)[_0x311777('0x49')](function(_0x342cab){return _0x342cab;});return null;};}function removeEntity(_0x24c2d0){return function(_0x56a810){const _0x161c7b=a480_0x5723;if(_0x56a810)return _0x56a810[_0x161c7b('0x1a')]()['then'](function(){const _0x4d9fd7=_0x161c7b;_0x24c2d0[_0x4d9fd7('0xd0')](0xcc)[_0x4d9fd7('0xbb')]();});};}function handleEntityNotFound(_0x4c83fb){return function(_0x386e1f){const _0x4aaead=a480_0x5723;return!_0x386e1f&&_0x4c83fb[_0x4aaead('0x4e')](0x194),_0x386e1f;};}function handleError(_0x42a5eb,_0x5b6d94){return _0x5b6d94=_0x5b6d94||0x1f4,function(_0x4de5dc){const _0x45d1fe=a480_0x5723;logger[_0x45d1fe('0xd6')](_0x4de5dc['stack']),_0x4de5dc[_0x45d1fe('0xf')]&&delete _0x4de5dc[_0x45d1fe('0xf')],_0x42a5eb[_0x45d1fe('0xd0')](_0x5b6d94)[_0x45d1fe('0xa')](_0x4de5dc);};}function getInteractionUsers(_0x4ec37f,_0x3d8d9b){return new Promise(function(_0x2621da,_0x32387b){const _0x5e7b31=a480_0x5723;try{_0x3d8d9b[_0x4ec37f['id']]&&(_0x4ec37f[_0x5e7b31('0x3a')]=_[_0x5e7b31('0xae')](_0x3d8d9b[_0x4ec37f['id']],function(_0x4a9d81){const _0x50aa4b=_0x5e7b31;return{'id':_0x4a9d81['id'],'fullname':_0x4a9d81[_0x50aa4b('0x6e')]};}));}catch(_0x5729a5){_0x32387b(_0x5729a5);}_0x2621da(_0x4ec37f);});}function getInteractionTags(_0x331438,_0x10face){return new Promise(function(_0x52dafa,_0x55a8f3){const _0x4e4f5e=a480_0x5723;try{_0x331438[_0x4e4f5e('0xc4')]&&(_0x331438[_0x4e4f5e('0x62')]=[],_0x331438['TagIds'][_0x4e4f5e('0x67')](',')[_0x4e4f5e('0xac')](function(_0x28bc55){const _0x28cf87=_0x4e4f5e;_0x331438[_0x28cf87('0x62')][_0x28cf87('0x7b')](_0x10face[_0x28bc55]);})),delete _0x331438[_0x4e4f5e('0xc4')];}catch(_0x1ceb22){_0x55a8f3(_0x1ceb22);}_0x52dafa(_0x331438);});}function updateOpenchannelInteraction(_0x2e418a,_0x40b86f,_0x108ceb){return new Promise(function(_0x149bfb,_0x330db5){const _0x4afe1d=a480_0x5723;return getInteractionUsers(_0x2e418a,_0x108ceb)[_0x4afe1d('0x49')](function(_0xaefbb1){return getInteractionTags(_0xaefbb1,_0x40b86f);})[_0x4afe1d('0x49')](function(_0x10da42){_0x149bfb(_0x10da42);})[_0x4afe1d('0x4')](function(_0x2d4301){_0x330db5(_0x2d4301);});});}exports['index']=function(_0x5b1903,_0x3836f5){const _0x5111d3=_0xedcba8,_0x4bcc63={},_0x190d01={},_0x854b6d={'count':0x0,'rows':[]},_0x1a58d7=_['map'](db[_0x5111d3('0x70')][_0x5111d3('0x87')],function(_0x5a4455){const _0xbd7799=_0x5111d3;return{'name':_0x5a4455[_0xbd7799('0x3c')],'type':_0x5a4455['type'][_0xbd7799('0x47')]};});_0x190d01[_0x5111d3('0x39')]=_[_0x5111d3('0xae')](_0x1a58d7,'name'),_0x190d01[_0x5111d3('0x48')]=_[_0x5111d3('0x41')](_0x5b1903[_0x5111d3('0x48')]),_0x190d01[_0x5111d3('0x24')]=_[_0x5111d3('0x57')](_0x190d01[_0x5111d3('0x39')],_0x190d01[_0x5111d3('0x48')]),_0x4bcc63[_0x5111d3('0x2')]=_[_0x5111d3('0x57')](_0x190d01['model'],qs[_0x5111d3('0x36')](_0x5b1903[_0x5111d3('0x48')][_0x5111d3('0x36')])),_0x4bcc63['attributes']=_0x4bcc63[_0x5111d3('0x2')][_0x5111d3('0xce')]?_0x4bcc63[_0x5111d3('0x2')]:_0x190d01[_0x5111d3('0x39')];typeof _0x5b1903[_0x5111d3('0x48')]['nolimit']===_0x5111d3('0x30')&&(_0x4bcc63[_0x5111d3('0xa7')]=qs[_0x5111d3('0xa7')](_0x5b1903[_0x5111d3('0x48')][_0x5111d3('0xa7')]),_0x4bcc63[_0x5111d3('0xe')]=qs[_0x5111d3('0xe')](_0x5b1903[_0x5111d3('0x48')]['offset']));_0x4bcc63[_0x5111d3('0xde')]=qs[_0x5111d3('0x19')](_0x5b1903['query'][_0x5111d3('0x19')]),_0x4bcc63[_0x5111d3('0xcb')]=qs[_0x5111d3('0x24')](_[_0x5111d3('0x3e')](_0x5b1903[_0x5111d3('0x48')],_0x190d01[_0x5111d3('0x24')]),_0x1a58d7);let _0x4893b9=[];const _0xc9bebb=squel[_0x5111d3('0x8b')]()[_0x5111d3('0x15')]('id')[_0x5111d3('0x15')](_0x5111d3('0xf'))['field']('color')[_0x5111d3('0x54')](_0x5111d3('0x61')),_0x277f3f=squel[_0x5111d3('0x8b')]()[_0x5111d3('0x15')](_0x5111d3('0xca'))['field']('u.fullname')['field'](_0x5111d3('0x18'))[_0x5111d3('0x54')](_0x5111d3('0xd7'),'ui')[_0x5111d3('0x25')]('users','u',_0x5111d3('0x90')),_0x19e5a8=squel[_0x5111d3('0x8b')]()['from'](_0x5111d3('0xb'),'i')['left_join'](_0x5111d3('0x6d'),'c',_0x5111d3('0x84'))[_0x5111d3('0x25')](_0x5111d3('0x7c'),'o','o.id\x20=\x20i.UserId')[_0x5111d3('0x25')](_0x5111d3('0xc6'),'a','a.id\x20=\x20i.OpenchannelAccountId')[_0x5111d3('0x25')](_0x5111d3('0x83'),'me',_0x5111d3('0xdd'))[_0x5111d3('0x25')]('openchannel_interaction_has_tags','it','it.OpenchannelInteractionId\x20=\x20i.id')[_0x5111d3('0x25')](_0x5111d3('0x61'),'t','t.id\x20=\x20it.TagId'),_0x59bea3=squel[_0x5111d3('0x32')]();let _0x4ee1ee=[];const _0xa9e6b7=squel[_0x5111d3('0x32')]();let _0x1565bd;if(_0x5b1903['query'][_0x5111d3('0x2a')]){_0x1565bd=as[_0x5111d3('0xc7')](_0x5b1903['query']['search']);const _0x1ed55b=_0x1565bd[_0x5111d3('0x64')];for(let _0x123896=0x0;_0x123896<_0x1565bd[_0x5111d3('0x9c')]['length'];_0x123896++){const _0xfc8ad4=_0x1565bd['conditions'][_0x123896],_0x2df1fb='i';let _0x4bb5da,_0x1ed98c=_[_0x5111d3('0x3')](_0x1a58d7,[_0x5111d3('0xf'),_0xfc8ad4['field']]);if(!_0x1ed98c)switch(_0xfc8ad4[_0x5111d3('0x15')]){case _0x5111d3('0x71'):_0xfc8ad4[_0x5111d3('0xa9')]==0x1?_0x19e5a8['having']('`'+_0xfc8ad4[_0x5111d3('0x15')]+_0x5111d3('0xd5')):_0x19e5a8[_0x5111d3('0x85')]('`'+_0xfc8ad4['field']+_0x5111d3('0x8e'));break;case _0x5111d3('0xbf'):if(_0xfc8ad4[_0x5111d3('0x77')]===_0x5111d3('0xc3')){if(_0xfc8ad4[_0x5111d3('0xa9')][_0x5111d3('0x67')]('\x20')[_0x5111d3('0xce')]>0x1)_0x59bea3[_0x1ed55b](_0x5111d3('0xb5'),qs['getFullTextValue'](_0xfc8ad4[_0x5111d3('0xa9')]),null);else{const _0x1d32a1='%'+_0xfc8ad4[_0x5111d3('0xa9')]+'%';_0x59bea3[_0x1ed55b](_0x5111d3('0x94'),_0x1d32a1,_0x1d32a1,_0x1d32a1);}}else _0x1ed98c=_[_0x5111d3('0x3')](_0x1a58d7,[_0x5111d3('0xf'),_0x5111d3('0x9d')]),_0xfc8ad4[_0x5111d3('0x15')]=_0x5111d3('0x9d'),_0x4bb5da=as['buildExpression'](_0x2df1fb,_0x1ed98c[_0x5111d3('0xaa')],_0xfc8ad4),_0x59bea3[_0x1ed55b](_0x4bb5da[_0x5111d3('0x17')],_0x4bb5da[_0x5111d3('0xa9')][_0x5111d3('0x6a')],_0x4bb5da[_0x5111d3('0xa9')][_0x5111d3('0xbb')]);break;case _0x5111d3('0x7d'):{const _0x231cf8=_0xfc8ad4[_0x5111d3('0xa9')][_0x5111d3('0x67')](',')['map'](function(_0x345f2a){return Number(_0x345f2a);});_0x231cf8[_0x5111d3('0xac')](function(_0x123d84){_0xa9e6b7['or']('CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','%,'+_0x123d84+',%');}),_0x4ee1ee=_[_0x5111d3('0x1d')](_0x4ee1ee,_0x231cf8);}break;case _0x5111d3('0x60'):_0xfc8ad4['operator']===_0x5111d3('0xc3')?_0x59bea3[_0x1ed55b]('CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','%'+_0xfc8ad4[_0x5111d3('0xa9')]+'%',null):(_0x1ed98c=_['find'](_0x1a58d7,['name',_0x5111d3('0x8f')]),_0xfc8ad4['field']=_0x5111d3('0x8f'),_0x4bb5da=as['buildExpression'](_0x2df1fb,_0x1ed98c['type'],_0xfc8ad4),_0x59bea3[_0x1ed55b](_0x4bb5da[_0x5111d3('0x17')],_0x4bb5da[_0x5111d3('0xa9')][_0x5111d3('0x6a')],_0x4bb5da[_0x5111d3('0xa9')][_0x5111d3('0xbb')]));break;case _0x5111d3('0x33'):_0x4bb5da=as[_0x5111d3('0x9b')]('me',null,_0xfc8ad4),_0x59bea3[_0x1ed55b](_0x4bb5da[_0x5111d3('0x17')],_0x4bb5da[_0x5111d3('0xa9')]['start'],_0x4bb5da[_0x5111d3('0xa9')]['end']);break;}else _0x4bb5da=as[_0x5111d3('0x9b')](_0x2df1fb,_0x1ed98c[_0x5111d3('0xaa')],_0xfc8ad4),_0x59bea3[_0x1ed55b](_0x4bb5da[_0x5111d3('0x17')],_0x4bb5da[_0x5111d3('0xa9')][_0x5111d3('0x6a')],_0x4bb5da[_0x5111d3('0xa9')][_0x5111d3('0xbb')]);}}else{const _0x4e20e5=_(_0x5b1903[_0x5111d3('0x48')])['keys']()[_0x5111d3('0xae')](function(_0x37148e){const _0x43b982=_0x5111d3;return _[_0x43b982('0xc5')](_0x1a58d7,[_0x43b982('0xf'),_0x37148e])?_0x37148e:undefined;})['compact']()[_0x5111d3('0xa9')]();!_[_0x5111d3('0x2e')](_0x4e20e5)&&_0x4e20e5[_0x5111d3('0xac')](function(_0x3f00f1){const _0x50c82a=_0x5111d3;if(_0x3f00f1==='OpenchannelAccountId')_0x19e5a8['where'](_0x50c82a('0x95'),[][_0x50c82a('0x4a')](_0x5b1903['query'][_0x3f00f1]));else{if(_0x3f00f1===_0x50c82a('0x2d')){const _0x2c4bf7=JSON['parse'](_0x5b1903[_0x50c82a('0x48')][_0x3f00f1])['$gte'],_0x38a889=JSON[_0x50c82a('0xdb')](_0x5b1903[_0x50c82a('0x48')][_0x3f00f1])[_0x50c82a('0x4b')];_0x19e5a8[_0x50c82a('0xcb')](_0x50c82a('0xa1'),_0x2c4bf7,_0x38a889);}else _0x5b1903[_0x50c82a('0x48')][_0x3f00f1]===_0x50c82a('0x66')?_0x19e5a8[_0x50c82a('0xcb')]('i.'+_0x3f00f1+'\x20IS\x20NULL'):_0x19e5a8[_0x50c82a('0xcb')]('i.'+_0x3f00f1+_0x50c82a('0x5b'),_0x5b1903[_0x50c82a('0x48')][_0x3f00f1]);}});_0x5b1903[_0x5111d3('0x48')]['read']&&(_0x5b1903['query']['read']==0x1?_0x19e5a8[_0x5111d3('0x85')](_0x5111d3('0x14')):_0x19e5a8[_0x5111d3('0x85')](_0x5111d3('0x6c')));_0x5b1903[_0x5111d3('0x48')][_0x5111d3('0x11')]&&(_0x4ee1ee=_[_0x5111d3('0x2c')](_0x5b1903[_0x5111d3('0x48')][_0x5111d3('0x11')])?_0x5b1903[_0x5111d3('0x48')][_0x5111d3('0x11')]:new Array(_0x5b1903['query'][_0x5111d3('0x11')]),_0x4ee1ee[_0x5111d3('0xac')](function(_0x57064f){const _0x4eebd2=_0x5111d3;_0xa9e6b7['or'](_0x4eebd2('0xcf'),'%,'+_0x57064f+',%');}));if(_0x5b1903[_0x5111d3('0x48')]['filter']){const _0x5e37a2=_0x5b1903[_0x5111d3('0x48')][_0x5111d3('0xb2')][_0x5111d3('0x0')]('\x5c','\x5c\x5c')['replace']('\x27\x27',_0x5111d3('0x69'));qs[_0x5111d3('0x5f')](_0x5e37a2)?_0x59bea3['or'](_0x5111d3('0xc1'),_0x5e37a2+'%'):_0x59bea3['or'](_0x5111d3('0x76'),qs[_0x5111d3('0xd9')](_0x5e37a2))['or'](_0x5111d3('0x28'),_0x5e37a2+'%')['or'](_0x5111d3('0x8'),_0x5e37a2+'%');}}_0x19e5a8['where'](_0x59bea3),_0x19e5a8[_0x5111d3('0x7')](_0x5111d3('0xd2'));let _0x432309={'type':db[_0x5111d3('0x35')][_0x5111d3('0x10')][_0x5111d3('0x3b')],'raw':!![]};const _0x1dce46=_0x19e5a8['clone']();_0x1dce46[_0x5111d3('0x15')](_0x5111d3('0xd2')),_0x1dce46['field']('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)',_0x5111d3('0x71')),_0x4bcc63['order']&&_0x4bcc63['order'][_0x5111d3('0xac')](function(_0x27c1ad){const _0x12957a=_0x5111d3;_0x19e5a8[_0x12957a('0xde')]('i.'+_0x27c1ad[0x0],_0x27c1ad[0x1]===_0x12957a('0x86')?![]:!![]);}),!_[_0x5111d3('0x2e')](_0x4ee1ee)&&(_0x19e5a8['having'](_0xa9e6b7),_0x1dce46[_0x5111d3('0xcb')](_0x5111d3('0xe0'),_0x4ee1ee)),Promise['resolve']()[_0x5111d3('0x49')](function(){const _0x56ca11=_0x5111d3;if(!_0x1565bd){if(_0x5b1903['query'][_0x56ca11('0x37')]||_0x5b1903[_0x56ca11('0x48')][_0x56ca11('0x8d')])return;_0x1dce46[_0x56ca11('0xcb')](_0x56ca11('0x31')),_0x19e5a8['where']('i.OpenchannelAccountId\x20IS\x20NOT\x20NULL');return;}return _0x5b1903[_0x56ca11('0xd')]['getOpenchannelAccounts']({'attributes':['id'],'raw':!![]})[_0x56ca11('0x49')](function(_0x4da1b9){const _0x2c174d=_0x56ca11;_[_0x2c174d('0x2e')](_0x4da1b9)?(_0x1dce46[_0x2c174d('0xcb')](_0x2c174d('0x4f')),_0x19e5a8[_0x2c174d('0xcb')](_0x2c174d('0x4f'))):(_0x1dce46[_0x2c174d('0xcb')](_0x2c174d('0x95'),_[_0x2c174d('0xae')](_0x4da1b9,'id')),_0x19e5a8[_0x2c174d('0xcb')]('i.OpenchannelAccountId\x20IN\x20?',_[_0x2c174d('0xae')](_0x4da1b9,'id')));});})[_0x5111d3('0x49')](function(){const _0xfe089=_0x5111d3;db[_0xfe089('0x13')][_0xfe089('0x48')](_0x1dce46['toString'](),_0x432309)['then'](function(_0x4a0ea5){const _0x37015a=_0xfe089;_0x854b6d[_0x37015a('0x93')]=_0x4a0ea5[_0x37015a('0xce')];if(_0x854b6d[_0x37015a('0x93')]===0x0)return[];return db[_0x37015a('0x13')][_0x37015a('0x48')](_0xc9bebb['toString'](),_0x432309)[_0x37015a('0x49')](function(_0x2bde82){const _0x2f3188=_0x37015a;_0x4893b9=_[_0x2f3188('0x34')](_0x2bde82,'id'),_0x432309=_['merge'](_0x432309,{'model':db['OpenchannelInteraction'],'mapToModel':!![],'raw':!![],'nest':!![]});_0x5b1903[_0x2f3188('0x48')]['fields']?_0x4bcc63['attributes'][_0x2f3188('0xac')](function(_0x1dcf00){_0x19e5a8['field']('i.'+_0x1dcf00);}):(_0x19e5a8['field'](_0x2f3188('0x68'),_0x2f3188('0x71')),_0x19e5a8[_0x2f3188('0x15')](_0x2f3188('0xa2'),_0x2f3188('0xbc')),_0x19e5a8['field'](_0x2f3188('0x5c'),'Account.mandatoryDisposition'),_0x19e5a8[_0x2f3188('0x15')](_0x2f3188('0x97')),_0x19e5a8[_0x2f3188('0x15')]('c.firstName',_0x2f3188('0xdf')),_0x19e5a8[_0x2f3188('0x15')](_0x2f3188('0xc'),_0x2f3188('0xa8')),_0x19e5a8[_0x2f3188('0x15')](_0x2f3188('0x50'),_0x2f3188('0x63')),_0x19e5a8[_0x2f3188('0x15')](_0x2f3188('0x9a'),_0x2f3188('0x44')),_0x19e5a8[_0x2f3188('0x15')]('c.mobile','Contact.mobile'),_0x19e5a8[_0x2f3188('0x15')](_0x2f3188('0xbe'),_0x2f3188('0xa6')),_0x19e5a8[_0x2f3188('0x15')](_0x2f3188('0x1b'),_0x2f3188('0xab')),_0x19e5a8[_0x2f3188('0x15')](_0x2f3188('0x5d'),_0x2f3188('0xd8')),_0x19e5a8[_0x2f3188('0x15')](_0x2f3188('0x5e'),_0x2f3188('0xc4')));if(_0x4bcc63[_0x2f3188('0xa7')])_0x19e5a8[_0x2f3188('0xa7')](_0x4bcc63[_0x2f3188('0xa7')]);if(_0x4bcc63[_0x2f3188('0xe')])_0x19e5a8[_0x2f3188('0xe')](_0x4bcc63[_0x2f3188('0xe')]);return db[_0x2f3188('0x13')][_0x2f3188('0x48')](_0x19e5a8['toString'](),_0x432309);})[_0x37015a('0x49')](function(_0x44614d){const _0x7d332=_0x37015a;return _0x277f3f[_0x7d332('0xcb')](_0x7d332('0x72'),_['map'](_0x44614d,'id')),db['sequelize'][_0x7d332('0x48')](_0x277f3f[_0x7d332('0x43')](),_0x432309)[_0x7d332('0x49')](function(_0x2cfff2){const _0x438307=_0x7d332,_0x568899=_[_0x438307('0xb0')](_0x2cfff2,'OpenchannelInteractionId'),_0x2f98b8=[];return _0x44614d['forEach'](function(_0x1ea63a){const _0x5957a7=_0x438307;_0x2f98b8[_0x5957a7('0x7b')](updateOpenchannelInteraction(_0x1ea63a,_0x4893b9,_0x568899));}),Promise[_0x438307('0x5')](_0x2f98b8);});});})[_0xfe089('0x49')](function(_0x170157){return _0x854b6d['rows']=_0x170157,_0x854b6d;})['then'](respondWithFilteredResult(_0x3836f5,_0x4bcc63));})[_0x5111d3('0x4')](handleError(_0x3836f5,null));},exports[_0xedcba8('0x56')]=function(_0x585b71,_0x86a518){const _0x2064b5=_0xedcba8,_0xfce168={};_0x585b71[_0x2064b5('0x48')]['type']&&_0x585b71[_0x2064b5('0x48')][_0x2064b5('0xaa')]===_0x2064b5('0x54')?_0xfce168[_0x2064b5('0x54')]=_0x585b71['params']['id']:_0xfce168['id']=_0x585b71['params']['id'];let _0x2acd33={'raw':![],'where':_0xfce168};const _0x39b355={};return _0x39b355[_0x2064b5('0x39')]=_['keys'](db[_0x2064b5('0x70')]['rawAttributes']),_0x39b355[_0x2064b5('0x48')]=_[_0x2064b5('0x41')](_0x585b71[_0x2064b5('0x48')]),_0x39b355['filters']=_[_0x2064b5('0x57')](_0x39b355['model'],_0x39b355[_0x2064b5('0x48')]),_0x2acd33['attributes']=_[_0x2064b5('0x57')](_0x39b355[_0x2064b5('0x39')],qs[_0x2064b5('0x36')](_0x585b71[_0x2064b5('0x48')]['fields'])),_0x2acd33[_0x2064b5('0x2')]=_0x2acd33[_0x2064b5('0x2')][_0x2064b5('0xce')]?_0x2acd33['attributes']:_0x39b355[_0x2064b5('0x39')],_0x585b71[_0x2064b5('0x48')][_0x2064b5('0x7e')]&&(_0x2acd33['include']=[{'all':!![]}]),_0x2acd33=_[_0x2064b5('0x79')]({},_0x2acd33,_0x585b71[_0x2064b5('0x8c')]),db[_0x2064b5('0x70')]['findOne'](_0x2acd33)[_0x2064b5('0x49')](handleEntityNotFound(_0x86a518,null))['then'](respondWithResult(_0x86a518,null))[_0x2064b5('0x4')](handleError(_0x86a518,null));},exports[_0xedcba8('0xda')]=function(_0x1a9a1a,_0x15f0d7){const _0x278c6c=_0xedcba8;return db['OpenchannelInteraction'][_0x278c6c('0xda')](_0x1a9a1a['body'],{})[_0x278c6c('0x49')](respondWithResult(_0x15f0d7,0xc9))['catch'](handleError(_0x15f0d7,null));},exports[_0xedcba8('0xc0')]=function(_0x3f57ac,_0x302a4b){const _0x2e3b63=_0xedcba8;return _0x3f57ac[_0x2e3b63('0x33')]['id']&&delete _0x3f57ac[_0x2e3b63('0x33')]['id'],db[_0x2e3b63('0x70')]['findOne']({'where':{'id':_0x3f57ac[_0x2e3b63('0x58')]['id']}})[_0x2e3b63('0x49')](handleEntityNotFound(_0x302a4b,null))[_0x2e3b63('0x49')](saveUpdates(_0x3f57ac[_0x2e3b63('0x33')],null))[_0x2e3b63('0x49')](respondWithResult(_0x302a4b,null))[_0x2e3b63('0x4')](handleError(_0x302a4b,null));},exports[_0xedcba8('0x1a')]=function(_0x3f0cc8,_0x510b9d){const _0x5871a8=_0xedcba8;return db[_0x5871a8('0x70')][_0x5871a8('0xd4')]({'where':{'id':_0x3f0cc8[_0x5871a8('0x58')]['id']}})['then'](handleEntityNotFound(_0x510b9d,null))['then'](removeEntity(_0x510b9d,null))['catch'](handleError(_0x510b9d,null));},exports[_0xedcba8('0x45')]=function(_0x597568,_0x5d8370){const _0x59471e=_0xedcba8;return db[_0x59471e('0x70')]['describe']()[_0x59471e('0x49')](respondWithResult(_0x5d8370,null))[_0x59471e('0x4')](handleError(_0x5d8370,null));},exports[_0xedcba8('0xc2')]=function(_0x2a18ac,_0x51c446){const _0xb422d8=_0xedcba8;return db['OpenchannelMessage']['findOne']({'where':{'id':_0x2a18ac[_0xb422d8('0x58')]['id']}})[_0xb422d8('0x49')](function(_0x43ec3){const _0x2c7ab9=_0xb422d8;if(_0x43ec3)return _0x43ec3[_0x2c7ab9('0xc2')](_0x2a18ac[_0x2c7ab9('0x33')][_0x2c7ab9('0x27')],{'through':_[_0x2c7ab9('0x75')](_0x2a18ac['body'],[_0x2c7ab9('0x27'),'id'])});})[_0xb422d8('0x49')](respondWithResult(_0x51c446,null))[_0xb422d8('0x4')](handleError(_0x51c446,null));},exports[_0xedcba8('0x46')]=function(_0x56b42d,_0x66140){const _0x1cd6fd=_0xedcba8;let _0x237256={'raw':![],'where':{}};const _0x3dbefb={},_0x32f0ec={'count':0x0,'rows':[]};return db[_0x1cd6fd('0x70')]['findOne']({'where':{'id':_0x56b42d[_0x1cd6fd('0x58')]['id']}})[_0x1cd6fd('0x49')](handleEntityNotFound(_0x66140,null))[_0x1cd6fd('0x49')](function(_0x1fd45f){const _0x4e80d3=_0x1cd6fd;if(_0x1fd45f){_0x3dbefb[_0x4e80d3('0x39')]=_['keys'](db[_0x4e80d3('0x3f')][_0x4e80d3('0x87')]),_0x3dbefb[_0x4e80d3('0x48')]=_[_0x4e80d3('0x41')](_0x56b42d[_0x4e80d3('0x48')]),_0x3dbefb[_0x4e80d3('0x24')]=_[_0x4e80d3('0x57')](_0x3dbefb['model'],_0x3dbefb['query']),_0x237256[_0x4e80d3('0x2')]=_[_0x4e80d3('0x57')](_0x3dbefb[_0x4e80d3('0x39')],qs[_0x4e80d3('0x36')](_0x56b42d[_0x4e80d3('0x48')][_0x4e80d3('0x36')])),_0x237256[_0x4e80d3('0x2')]=_0x237256[_0x4e80d3('0x2')][_0x4e80d3('0xce')]?_0x237256[_0x4e80d3('0x2')]:_0x3dbefb[_0x4e80d3('0x39')];typeof _0x56b42d[_0x4e80d3('0x48')][_0x4e80d3('0xb3')]===_0x4e80d3('0x30')&&(_0x237256[_0x4e80d3('0xa7')]=qs[_0x4e80d3('0xa7')](_0x56b42d[_0x4e80d3('0x48')]['limit']),_0x237256[_0x4e80d3('0xe')]=qs[_0x4e80d3('0xe')](_0x56b42d[_0x4e80d3('0x48')]['offset']));_0x237256[_0x4e80d3('0xde')]=qs['sort'](_0x56b42d[_0x4e80d3('0x48')][_0x4e80d3('0x19')]),_0x237256['where']=qs[_0x4e80d3('0x24')](_['pick'](_0x56b42d['query'],_0x3dbefb['filters'])),_0x237256['where'][_0x4e80d3('0xad')]=_0x1fd45f['id'];_0x56b42d[_0x4e80d3('0x48')][_0x4e80d3('0xb2')]&&(_0x237256['where']=_[_0x4e80d3('0x79')](_0x237256[_0x4e80d3('0xcb')],{[Op['or']]:_['map'](_0x237256['attributes'],function(_0x22934d){const _0x333ccc=_0x4e80d3,_0x2f01fd={};return _0x2f01fd[_0x22934d]={[Op[_0x333ccc('0xb8')]]:'%'+_0x56b42d[_0x333ccc('0x48')]['filter']+'%'},_0x2f01fd;})}));if(_0x56b42d[_0x4e80d3('0x48')][_0x4e80d3('0x1e')]){const _0x38f27d=_0x56b42d[_0x4e80d3('0x48')][_0x4e80d3('0x1e')]['split'](','),_0x287c29={};_0x287c29[_0x38f27d[0x0]]={[Op[_0x4e80d3('0xa0')]]:moment(_0x38f27d[0x1])[_0x4e80d3('0xa5')](_0x4e80d3('0x6f'))},_0x237256[_0x4e80d3('0xcb')]=_[_0x4e80d3('0x79')](_0x237256['where'],_0x287c29);}return _0x237256=_[_0x4e80d3('0x79')]({},_0x237256,_0x56b42d['options']),db[_0x4e80d3('0x3f')][_0x4e80d3('0x93')]({'where':_0x237256[_0x4e80d3('0xcb')]})['then'](function(_0x194228){const _0x52af06=_0x4e80d3;return _0x32f0ec[_0x52af06('0x93')]=_0x194228,_0x56b42d[_0x52af06('0x48')][_0x52af06('0x7e')]&&(_0x237256[_0x52af06('0x16')]=[{'all':!![]}]),db[_0x52af06('0x3f')]['findAll'](_0x237256);})['then'](function(_0x5019be){return _0x32f0ec['rows']=_0x5019be,_0x32f0ec;});}})[_0x1cd6fd('0x49')](respondWithFilteredResult(_0x66140,_0x237256))['catch'](handleError(_0x66140,null));},exports['addTags']=function(_0x4c0dfc,_0xef822e){const _0x53c3e9=_0xedcba8;return db[_0x53c3e9('0x70')]['findOne']({'where':{'id':_0x4c0dfc[_0x53c3e9('0x58')]['id']}})[_0x53c3e9('0x49')](function(_0x3f5024){const _0x4fd0b0=_0x53c3e9;if(_0x3f5024)return _0x3f5024['setTags'](_0x4c0dfc[_0x4fd0b0('0x33')]['ids'],{'through':_[_0x4fd0b0('0x75')](_0x4c0dfc['body'],[_0x4fd0b0('0x27'),'id'])})[_0x4fd0b0('0x49')](function(){const _0x47588c=_0x4fd0b0;return db['Tag'][_0x47588c('0x78')]({'attributes':['id',_0x47588c('0xf'),_0x47588c('0x1f')],'where':{'id':_0x4c0dfc[_0x47588c('0x33')][_0x47588c('0x27')]}});})['then'](function(_0x9e0f0f){const _0xaa458c=_0x4fd0b0;return socket[_0xaa458c('0x52')](_0xaa458c('0x65'),{'id':Number(_0x4c0dfc['params']['id']),'tags':_0x9e0f0f||[]}),{'id':Number(_0x4c0dfc[_0xaa458c('0x58')]['id']),'tags':_0x9e0f0f||[]};});})['then'](respondWithResult(_0xef822e,null))[_0x53c3e9('0x4')](handleError(_0xef822e,null));},exports[_0xedcba8('0x73')]=function(_0x2453cf,_0x41e5eb){const _0x2d33bb=_0xedcba8;return db[_0x2d33bb('0x70')][_0x2d33bb('0xd4')]({'where':{'id':_0x2453cf[_0x2d33bb('0x58')]['id']}})[_0x2d33bb('0x49')](handleEntityNotFound(_0x41e5eb,null))['then'](function(_0x2f4930){const _0x5df4f4=_0x2d33bb;if(_0x2f4930)return _0x2f4930[_0x5df4f4('0x73')](_0x2453cf[_0x5df4f4('0x48')][_0x5df4f4('0x27')]);})[_0x2d33bb('0x49')](respondWithStatusCode(_0x41e5eb,null))[_0x2d33bb('0x4')](handleError(_0x41e5eb,null));},exports['download']=function(_0x120849,_0x37d66c){const _0x22ecc5=_0xedcba8,_0x1c59ec=moment()[_0x22ecc5('0x40')]()['toString'](),_0x84afc8=path[_0x22ecc5('0x96')](config[_0x22ecc5('0x8a')],_0x22ecc5('0x21'),_0x22ecc5('0xa4'),'tmp'),_0x3cba93=path[_0x22ecc5('0x96')](config[_0x22ecc5('0x8a')],_0x22ecc5('0x21'),'files',_0x22ecc5('0x74')),_0x5d4b5a=path[_0x22ecc5('0x96')](_0x84afc8,_0x1c59ec),_0x25a95b=util[_0x22ecc5('0xa5')](_0x22ecc5('0x92'),_0x120849[_0x22ecc5('0x58')]['id'],_0x1c59ec),_0x12051e=path[_0x22ecc5('0x96')](_0x84afc8,_0x25a95b),_0x4e533d=[];_0x4e533d[_0x22ecc5('0x7b')]({'model':db[_0x22ecc5('0x60')],'as':'User','attributes':['id','fullname'],'raw':!![]}),_0x4e533d[_0x22ecc5('0x7b')]({'model':db[_0x22ecc5('0x1')],'as':_0x22ecc5('0xbf'),'attributes':['id',_0x22ecc5('0x99'),_0x22ecc5('0x88')],'raw':!![]});_0x120849[_0x22ecc5('0x48')][_0x22ecc5('0x74')]&&_0x4e533d['push']({'model':db[_0x22ecc5('0x59')],'as':_0x22ecc5('0x59'),'raw':!![]});const _0x1201a4=[{'model':db['OpenchannelMessage'],'as':'Messages','attributes':['id','body',_0x22ecc5('0x2d'),'direction',_0x22ecc5('0xaf'),_0x22ecc5('0x5a')],'include':_0x4e533d}];return _0x1201a4[_0x22ecc5('0x7b')]({'model':db[_0x22ecc5('0x82')],'as':_0x22ecc5('0x98'),'attributes':['id','name']}),_0x1201a4[_0x22ecc5('0x7b')]({'model':db['User'],'as':'Owner','attributes':['id',_0x22ecc5('0x6e')]}),db[_0x22ecc5('0x70')][_0x22ecc5('0xd4')]({'where':{'id':_0x120849[_0x22ecc5('0x58')]['id']},'include':_0x1201a4})[_0x22ecc5('0x49')](handleEntityNotFound(_0x37d66c,null))[_0x22ecc5('0x49')](function(_0x3564e3){const _0x31c1b3=_0x22ecc5;if(_0x3564e3){const _0x594b60=_0x3564e3[_0x31c1b3('0x6')]({'plain':!![]});fs['mkdirSync'](_0x5d4b5a);const _0x20f9bd={'format':'A4','border':'10px','header':{'height':'40px','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['format'](_0x31c1b3('0x2b'),util[_0x31c1b3('0xa5')](_0x31c1b3('0x38'),_0x31c1b3('0x89'),_0x594b60['id']),moment()[_0x31c1b3('0xa5')](_0x31c1b3('0x29'))['toString']())}}},_0x31358e={'channel':_0x31c1b3('0x89'),'account':_0x594b60[_0x31c1b3('0x98')][_0x31c1b3('0xf')],'agent':_0x594b60[_0x31c1b3('0x23')]?_0x594b60[_0x31c1b3('0x23')][_0x31c1b3('0x6e')]:_0x31c1b3('0xb9'),'createdAt':moment(_0x594b60[_0x31c1b3('0x2d')])[_0x31c1b3('0xa5')](_0x31c1b3('0x6f'))[_0x31c1b3('0x43')](),'closedAt':_0x594b60[_0x31c1b3('0x6b')]?moment(_0x594b60[_0x31c1b3('0x7a')])['format'](_0x31c1b3('0x6f'))[_0x31c1b3('0x43')]():'','disposition':_0x594b60[_0x31c1b3('0xd1')],'visibility':_0x594b60[_0x31c1b3('0x9')]?'Public':'Private','messages':_(_0x594b60[_0x31c1b3('0x91')])[_0x31c1b3('0xb2')]({'secret':![]})[_0x31c1b3('0xae')](function(_0x2885f5){const _0x3ae8ca=_0x31c1b3;if(_0x2885f5[_0x3ae8ca('0x59')]){const _0x373ea8=path[_0x3ae8ca('0x96')](_0x3cba93,_0x2885f5['Attachment'][_0x3ae8ca('0xcc')]);fs[_0x3ae8ca('0x22')](_0x373ea8)&&fs[_0x3ae8ca('0x7f')](_0x373ea8)['pipe'](fs[_0x3ae8ca('0xba')](path[_0x3ae8ca('0x96')](_0x5d4b5a,_0x2885f5[_0x3ae8ca('0x59')][_0x3ae8ca('0xcc')])));}return{'date':moment(_0x2885f5[_0x3ae8ca('0x2d')])[_0x3ae8ca('0xa5')]('YYYY-MM-DD\x20HH:mm:ss')[_0x3ae8ca('0x43')](),'sender':_0x2885f5[_0x3ae8ca('0x20')]===_0x3ae8ca('0xd3')?_0x2885f5['User']?_0x2885f5[_0x3ae8ca('0x60')]['fullname']:_0x3ae8ca('0xcd'):_0x2885f5[_0x3ae8ca('0xbf')][_0x3ae8ca('0x99')]+(_0x2885f5[_0x3ae8ca('0xbf')][_0x3ae8ca('0x88')]?'\x20'+_0x2885f5[_0x3ae8ca('0xbf')][_0x3ae8ca('0x88')]:''),'body':_0x2885f5[_0x3ae8ca('0x59')]?_0x2885f5[_0x3ae8ca('0x59')][_0x3ae8ca('0xcc')]:_0x2885f5[_0x3ae8ca('0x33')],'direction':_0x2885f5['direction']===_0x3ae8ca('0xd3')?'A':'C','secret':_0x2885f5['secret'],'read':_0x2885f5[_0x3ae8ca('0x5a')],'attachment':_0x2885f5['Attachment']};})[_0x31c1b3('0xa9')]()};return ejs[_0x31c1b3('0xb6')](path[_0x31c1b3('0x96')](config[_0x31c1b3('0x8a')],'server','views',_0x31c1b3('0x55')),{'interaction':_0x31358e})['then'](function(_0x41482b){return new Promise(function(_0x302eba,_0x37ae27){const _0x2bcd15=a480_0x5723;pdf[_0x2bcd15('0xda')](_0x41482b,_0x20f9bd)[_0x2bcd15('0x80')](path['join'](_0x5d4b5a,_0x2bcd15('0x12')+_0x594b60['id']+'-'+_0x1c59ec+_0x2bcd15('0xb4')),function(_0x1f7945,_0x1b417a){if(_0x1f7945)return _0x37ae27(_0x1f7945);_0x302eba(_0x1b417a);});});})[_0x31c1b3('0x49')](function(){const _0x4b8717=_0x31c1b3;return new Promise(function(_0x4386a1,_0x56e886){zipdir(_0x5d4b5a,{'saveTo':_0x12051e},function(_0x4ab46c,_0x5e2b0e){if(_0x4ab46c)return _0x56e886(_0x4ab46c);return _0x4386a1(_0x5e2b0e);});})[_0x4b8717('0x49')](function(){return new Promise(function(_0x34ce0c,_0xdcf074){rimraf(_0x5d4b5a,function(_0x1ba5da){if(_0x1ba5da)_0xdcf074(_0x1ba5da);return _0x34ce0c();});});})[_0x4b8717('0x49')](function(){return _0x37d66c['download'](_0x12051e,_0x25a95b,function(_0x2648c3){const _0xf65768=a480_0x5723;_0x2648c3?console[_0xf65768('0xdc')](_0xf65768('0x4d'),_0x2648c3):fs[_0xf65768('0xc8')](_0x12051e);});});});}else return _0x37d66c[_0x31c1b3('0x4e')](0xc8);})[_0x22ecc5('0x4')](handleError(_0x37d66c,null));}; \ No newline at end of file +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 diff --git a/server/api/openchannelInteraction/openchannelInteraction.events.js b/server/api/openchannelInteraction/openchannelInteraction.events.js index 90f4a80..f0868d9 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.events.js +++ b/server/api/openchannelInteraction/openchannelInteraction.events.js @@ -1 +1 @@ -const a481_0x2c24=['save','../../mysqldb','catch','findAll','setMaxListeners','setDataValue','update','addHook','length','exports','OpenchannelMessage','OpenchannelInteraction','unreadMessages','map','Users'];(function(_0x4bf9b7,_0x2c2446){const _0x3bf082=function(_0x205b10){while(--_0x205b10){_0x4bf9b7['push'](_0x4bf9b7['shift']());}};_0x3bf082(++_0x2c2446);}(a481_0x2c24,0x132));const a481_0x3bf0=function(_0x4bf9b7,_0x2c2446){_0x4bf9b7=_0x4bf9b7-0x0;let _0x3bf082=a481_0x2c24[_0x4bf9b7];return _0x3bf082;};const _0x553a61=a481_0x3bf0;'use strict';const EventEmitter=require('events'),OpenchannelInteraction=require(_0x553a61('0xa'))['db'][_0x553a61('0x5')],OpenchannelMessage=require('../../mysqldb')['db'][_0x553a61('0x4')],OpenchannelInteractionEvents=new EventEmitter();OpenchannelInteractionEvents[_0x553a61('0xd')](0x0);const events={'afterCreate':_0x553a61('0x9'),'afterUpdate':_0x553a61('0x0'),'afterDestroy':'remove'};function emitEvent(_0x205b10){return function(_0xdb8dda){const _0x2c91d7=a481_0x3bf0;_0xdb8dda['getUsers']({'attributes':['id'],'raw':!![]})['then'](function(_0x5c991b){const _0x3ec713=a481_0x3bf0;return _0xdb8dda[_0x3ec713('0xe')](_0x3ec713('0x8'),_0x5c991b[_0x3ec713('0x7')](function(_0x138a5e){return{'id':_0x138a5e['id']};})),OpenchannelMessage[_0x3ec713('0xc')]({'where':{'OpenchannelInteractionId':_0xdb8dda['id'],'direction':'in','read':![]},'raw':!![]});})['then'](function(_0x31df43){const _0x26067e=a481_0x3bf0;_0xdb8dda['setDataValue'](_0x26067e('0x6'),_0x31df43[_0x26067e('0x2')]),OpenchannelInteractionEvents['emit'](_0x205b10+':'+_0xdb8dda['id'],_0xdb8dda),OpenchannelInteractionEvents['emit'](_0x205b10,_0xdb8dda);})[_0x2c91d7('0xb')](()=>{});};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];OpenchannelInteraction[_0x553a61('0x1')](e,emitEvent(event));}}module[_0x553a61('0x3')]=OpenchannelInteractionEvents; \ No newline at end of file +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 diff --git a/server/api/openchannelInteraction/openchannelInteraction.model.js b/server/api/openchannelInteraction/openchannelInteraction.model.js index 7fd9e3c..ed2d6b5 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.model.js +++ b/server/api/openchannelInteraction/openchannelInteraction.model.js @@ -1 +1 @@ -const a482_0x372d=['format','moment','./openchannelInteraction.attributes','define','YYYY-MM-DD\x20HH:mm:ss','OpenchannelInteraction','changed','openchannel_interactions','exports'];(function(_0x4d46e0,_0x372d19){const _0x5923ac=function(_0x27c325){while(--_0x27c325){_0x4d46e0['push'](_0x4d46e0['shift']());}};_0x5923ac(++_0x372d19);}(a482_0x372d,0x13c));const a482_0x5923=function(_0x4d46e0,_0x372d19){_0x4d46e0=_0x4d46e0-0x0;let _0x5923ac=a482_0x372d[_0x4d46e0];return _0x5923ac;};const _0x30e336=a482_0x5923;'use strict';const moment=require(_0x30e336('0x0')),attributes=require(_0x30e336('0x1'));module[_0x30e336('0x7')]=function(_0x27c325){const _0x17a9af=_0x30e336,_0x5dca23=_0x27c325[_0x17a9af('0x2')](_0x17a9af('0x4'),attributes,{'tableName':_0x17a9af('0x6'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x120d49){const _0x30c6bd=_0x17a9af;_0x120d49[_0x30c6bd('0x5')]('closed')&&(_0x120d49['closedAt']=moment()[_0x30c6bd('0x8')](_0x30c6bd('0x3')));}}});return _0x5dca23;}; \ No newline at end of file +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 diff --git a/server/api/openchannelInteraction/openchannelInteraction.rpc.js b/server/api/openchannelInteraction/openchannelInteraction.rpc.js index 7001faa..f381721 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.rpc.js +++ b/server/api/openchannelInteraction/openchannelInteraction.rpc.js @@ -1 +1 @@ -const a483_0x46ef=['../../rediscache','limit','./openchannelInteraction.socket','rpc','findOne','info','then','raw','ids','error','AddTags','catch','register','omit','../../config/logger','options','where','message','addTags','../../mysqldb','lodash','body','AddTagsToOpenchannelInteraction','UpdateOpenchannelInteraction','update','debug','attributes','stringify'];(function(_0x1cb2f2,_0x46efb2){const _0x33ac92=function(_0x1dcf89){while(--_0x1dcf89){_0x1cb2f2['push'](_0x1cb2f2['shift']());}};_0x33ac92(++_0x46efb2);}(a483_0x46ef,0x1ba));const a483_0x33ac=function(_0x1cb2f2,_0x46efb2){_0x1cb2f2=_0x1cb2f2-0x0;let _0x33ac92=a483_0x46ef[_0x1cb2f2];return _0x33ac92;};const _0x22303e=a483_0x33ac;'use strict';const _=require(_0x22303e('0x1a')),db=require(_0x22303e('0x19'))['db'],logger=require(_0x22303e('0x14'))(_0x22303e('0x9')),{getSocket}=require(_0x22303e('0x6')),socket=getSocket();require(_0x22303e('0x8'))[_0x22303e('0x12')](socket),exports[_0x22303e('0x1')]=function(_0x1dcf89){const _0x233645=this;return new Promise(function(_0x1a1962,_0x29e7fb){const _0x10c2e5=a483_0x33ac;return db['OpenchannelInteraction'][_0x10c2e5('0x2')](_0x1dcf89[_0x10c2e5('0x1b')],{'raw':_0x1dcf89[_0x10c2e5('0x15')]?_0x1dcf89[_0x10c2e5('0x15')][_0x10c2e5('0xd')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1dcf89[_0x10c2e5('0x15')]?_0x1dcf89[_0x10c2e5('0x15')][_0x10c2e5('0x16')]||null:null,'attributes':_0x1dcf89[_0x10c2e5('0x15')]?_0x1dcf89['options'][_0x10c2e5('0x4')]||null:null,'limit':_0x1dcf89[_0x10c2e5('0x15')]?_0x1dcf89[_0x10c2e5('0x15')][_0x10c2e5('0x7')]||null:null})[_0x10c2e5('0xc')](function(_0x27edab){const _0x35bed6=_0x10c2e5;logger[_0x35bed6('0xb')](_0x35bed6('0x1'),_0x1dcf89),logger['debug']('UpdateOpenchannelInteraction',_0x1dcf89,JSON[_0x35bed6('0x5')](_0x27edab)),_0x1a1962(_0x27edab);})[_0x10c2e5('0x11')](function(_0x52bbaa){const _0xabb64e=_0x10c2e5;logger[_0xabb64e('0xf')](_0xabb64e('0x1'),_0x52bbaa[_0xabb64e('0x17')],_0x1dcf89),_0x29e7fb(_0x233645['error'](0x1f4,_0x52bbaa[_0xabb64e('0x17')]));});});},exports[_0x22303e('0x0')]=function(_0x39f1b1){const _0x2275ad=this;return new Promise(function(_0x565065,_0xa0c81d){const _0x36722e=a483_0x33ac;return db['OpenchannelInteraction'][_0x36722e('0xa')]({'where':_0x39f1b1[_0x36722e('0x15')]?_0x39f1b1[_0x36722e('0x15')][_0x36722e('0x16')]||null:null})[_0x36722e('0xc')](function(_0x2a6b48){const _0x4f17d0=_0x36722e;if(_0x2a6b48)return _0x2a6b48[_0x4f17d0('0x18')](_0x39f1b1[_0x4f17d0('0x1b')][_0x4f17d0('0xe')],{'through':_[_0x4f17d0('0x13')](_0x39f1b1[_0x4f17d0('0x1b')],[_0x4f17d0('0xe'),'id'])});})[_0x36722e('0xc')](function([_0x119243]){const _0x59190d=_0x36722e;logger['info']('AddTags',_0x39f1b1),logger[_0x59190d('0x3')](_0x59190d('0x10'),_0x39f1b1,JSON[_0x59190d('0x5')](_0x119243)),_0x565065(_0x119243);})[_0x36722e('0x11')](function(_0x426d25){const _0x27661d=_0x36722e;logger[_0x27661d('0xf')]('AddTags',_0x426d25['message'],_0x39f1b1),_0xa0c81d(_0x2275ad[_0x27661d('0xf')](0x1f4,_0x426d25[_0x27661d('0x17')]));});});}; \ No newline at end of file +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 diff --git a/server/api/openchannelInteraction/openchannelInteraction.socket.js b/server/api/openchannelInteraction/openchannelInteraction.socket.js index e89b155..9c50de9 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.socket.js +++ b/server/api/openchannelInteraction/openchannelInteraction.socket.js @@ -1 +1 @@ -const a484_0x2c04=['openchannelInteraction:','register','remove','emit','./openchannelInteraction.events','length','save'];(function(_0x1a95e5,_0x2c0420){const _0x1bdb4b=function(_0x2a02aa){while(--_0x2a02aa){_0x1a95e5['push'](_0x1a95e5['shift']());}};_0x1bdb4b(++_0x2c0420);}(a484_0x2c04,0x1d3));const a484_0x1bdb=function(_0x1a95e5,_0x2c0420){_0x1a95e5=_0x1a95e5-0x0;let _0x1bdb4b=a484_0x2c04[_0x1a95e5];return _0x1bdb4b;};const _0x58ac86=a484_0x1bdb;'use strict';const OpenchannelInteractionEvents=require(_0x58ac86('0x6')),events=[_0x58ac86('0x1'),_0x58ac86('0x4'),'update'];function createListener(_0x2a02aa,_0x4e868f){return function(_0x4cce53){const _0x59fdbe=a484_0x1bdb;_0x4e868f[_0x59fdbe('0x5')](_0x2a02aa,_0x4cce53);};}exports[_0x58ac86('0x3')]=function(_0x104325){const _0x4e00b3=_0x58ac86;for(let _0x3f24d1=0x0,_0x45cbbd=events[_0x4e00b3('0x0')];_0x3f24d1<_0x45cbbd;_0x3f24d1++){const _0x7704e1=events[_0x3f24d1],_0x4693f6=createListener(_0x4e00b3('0x2')+_0x7704e1,_0x104325);OpenchannelInteractionEvents['on'](_0x7704e1,_0x4693f6);}}; \ No newline at end of file +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 diff --git a/server/api/openchannelMessage/index.js b/server/api/openchannelMessage/index.js index b383cfe..6a18669 100644 --- a/server/api/openchannelMessage/index.js +++ b/server/api/openchannelMessage/index.js @@ -1 +1 @@ -const a485_0x3697=['create','destroy','openchannel','/describe','put','get','accept','isAuthenticated','../../components/interaction/service','reject','/:id/reject','tracked','/:id/accept','delete','../../components/auth/service','/:id','show','./openchannelMessage.controller'];(function(_0x450a37,_0x369745){const _0x4c9bbb=function(_0x5b3740){while(--_0x5b3740){_0x450a37['push'](_0x450a37['shift']());}};_0x4c9bbb(++_0x369745);}(a485_0x3697,0xd4));const a485_0x4c9b=function(_0x450a37,_0x369745){_0x450a37=_0x450a37-0x0;let _0x4c9bbb=a485_0x3697[_0x450a37];return _0x4c9bbb;};const _0x3c61fb=a485_0x4c9b;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x3c61fb('0x0')),interaction=require(_0x3c61fb('0xc')),controller=require(_0x3c61fb('0x3'));router[_0x3c61fb('0x9')]('/',auth[_0x3c61fb('0xb')](),controller['index']),router[_0x3c61fb('0x9')](_0x3c61fb('0x7'),auth['isAuthenticated'](),controller['describe']),router[_0x3c61fb('0x9')](_0x3c61fb('0x1'),auth['isAuthenticated'](),controller[_0x3c61fb('0x2')]),router['post']('/',auth[_0x3c61fb('0xb')](),interaction[_0x3c61fb('0xf')](_0x3c61fb('0x6'),'openchannelmessage:create'),controller[_0x3c61fb('0x4')]),router[_0x3c61fb('0x8')](_0x3c61fb('0x1'),auth['isAuthenticated'](),controller['update']),router[_0x3c61fb('0x8')](_0x3c61fb('0x10'),auth['isAuthenticated'](),controller[_0x3c61fb('0xa')]),router[_0x3c61fb('0x8')](_0x3c61fb('0xe'),auth[_0x3c61fb('0xb')](),controller[_0x3c61fb('0xd')]),router[_0x3c61fb('0x11')](_0x3c61fb('0x1'),auth['isAuthenticated'](),controller[_0x3c61fb('0x5')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/openchannelMessage/openchannelMessage.attributes.js b/server/api/openchannelMessage/openchannelMessage.attributes.js index d84dd50..2769443 100644 --- a/server/api/openchannelMessage/openchannelMessage.attributes.js +++ b/server/api/openchannelMessage/openchannelMessage.attributes.js @@ -1 +1 @@ -const a486_0x7e3e=['medium','sequelize','out','ENUM','DATE','BOOLEAN','exports','TEXT'];(function(_0x1cc7b0,_0x7e3e5a){const _0x60cf3=function(_0x17c52b){while(--_0x17c52b){_0x1cc7b0['push'](_0x1cc7b0['shift']());}};_0x60cf3(++_0x7e3e5a);}(a486_0x7e3e,0x90));const a486_0x60cf=function(_0x1cc7b0,_0x7e3e5a){_0x1cc7b0=_0x1cc7b0-0x0;let _0x60cf3=a486_0x7e3e[_0x1cc7b0];return _0x60cf3;};const _0x2bf508=a486_0x60cf;'use strict';const Sequelize=require(_0x2bf508('0x1'));module[_0x2bf508('0x6')]={'body':{'type':Sequelize[_0x2bf508('0x7')](_0x2bf508('0x0')),'allowNull':![]},'read':{'type':Sequelize[_0x2bf508('0x5')],'defaultValue':![]},'secret':{'type':Sequelize[_0x2bf508('0x5')],'defaultValue':![]},'direction':{'type':Sequelize[_0x2bf508('0x3')]('in',_0x2bf508('0x2')),'defaultValue':_0x2bf508('0x2'),'allowNull':![]},'readAt':{'type':Sequelize[_0x2bf508('0x4')]}}; \ No newline at end of file +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 diff --git a/server/api/openchannelMessage/openchannelMessage.controller.js b/server/api/openchannelMessage/openchannelMessage.controller.js index 4c83252..c4054cd 100644 --- a/server/api/openchannelMessage/openchannelMessage.controller.js +++ b/server/api/openchannelMessage/openchannelMessage.controller.js @@ -1 +1 @@ -const a487_0xfaba=['map','end','manual','length','sort','findOne','status','show','order','describe','nolimit','../../mysqldb','http','sequelize','YYYY-MM-DD\x20HH:mm:ss','filter','where','stack','util','interaction','reject','readAt','EventManager','OpenchannelInteraction','sendStatus','code','interface','catch','client','count','format','limit','json','rows','Contact','Content-Range','jayson/promise','set','name','api','key','then','create','event','rejectMessage','merge','register','request\x20sent','fields','user','result','type','filters','get','pick','keys','acceptmessage','message','role','openchannel-interactions','stringify','moment','rejectmessage','send','UserId','SIP/%s','offset','OpenchannelMessage,\x20%s,\x20%s,\x20%s','rawAttributes','openchannel','AcceptMessage','attributes','channel','update','error','[OPENCHANNELMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','request','params','model','../../config/logger','OpenchannelInteractionId','includeAll','null','like','index','debug','destroy','include','info','findAll','body','OpenchannelMessage','OpenchannelMessage,\x20%s,\x20%s','CmContact','query','acceptMessage','../../components/parsers/qs','options','read1stAt','intersection','lodash'];(function(_0x536c1b,_0xfaba31){const _0x43472c=function(_0x1221a9){while(--_0x1221a9){_0x536c1b['push'](_0x536c1b['shift']());}};_0x43472c(++_0xfaba31);}(a487_0xfaba,0x1c4));const a487_0x4347=function(_0x536c1b,_0xfaba31){_0x536c1b=_0x536c1b-0x0;let _0x43472c=a487_0xfaba[_0x536c1b];return _0x43472c;};const _0x5bdc8e=a487_0x4347;'use strict';const moment=require(_0x5bdc8e('0xd')),util=require(_0x5bdc8e('0x47')),_=require(_0x5bdc8e('0x34')),qs=require(_0x5bdc8e('0x30')),logger=require(_0x5bdc8e('0x1f'))(_0x5bdc8e('0x5c')),{getSocket}=require('../../rediscache'),socket=getSocket(),interaction_log=require('../../config/logger')(_0x5bdc8e('0xb')),db=require(_0x5bdc8e('0x40'))['db'],{Op}=require(_0x5bdc8e('0x42'));require('./openchannelMessage.socket')[_0x5bdc8e('0x63')](socket);const jayson=require(_0x5bdc8e('0x59')),client=jayson[_0x5bdc8e('0x51')][_0x5bdc8e('0x41')]({'port':0x232c}),client9002=jayson[_0x5bdc8e('0x51')]['http']({'port':0x232a});function respondWithRpcPromise(_0x1221a9,_0x502144,_0x741009,_0x5bfe9e){return new Promise(function(_0x5d5605,_0x11ac28){const _0x58d196=a487_0x4347,_0x20d242=_0x5bfe9e||client;return _0x20d242[_0x58d196('0x1c')](_0x1221a9,_0x741009)[_0x58d196('0x5e')](function(_0x27b542){const _0x4615d1=_0x58d196;logger[_0x4615d1('0x28')](_0x4615d1('0x2c'),_0x502144,_0x4615d1('0x64')),logger[_0x4615d1('0x25')](_0x4615d1('0x13'),_0x502144,_0x4615d1('0x64'),JSON['stringify'](_0x27b542));if(_0x27b542[_0x4615d1('0x1a')]){if(_0x27b542['error'][_0x4615d1('0x4e')]===0x1f4)return logger['error'](_0x4615d1('0x2c'),_0x502144,_0x27b542[_0x4615d1('0x1a')]['message']),_0x11ac28(_0x27b542[_0x4615d1('0x1a')][_0x4615d1('0x9')]);return logger[_0x4615d1('0x1a')](_0x4615d1('0x2c'),_0x502144,_0x27b542[_0x4615d1('0x1a')][_0x4615d1('0x9')]),_0x5d5605(_0x27b542[_0x4615d1('0x1a')][_0x4615d1('0x9')]);}else logger[_0x4615d1('0x28')](_0x4615d1('0x2c'),_0x502144,_0x4615d1('0x64')),_0x5d5605(_0x27b542[_0x4615d1('0x2')][_0x4615d1('0x9')]);})[_0x58d196('0x50')](function(_0xd2e0f8){const _0x449818=_0x58d196;logger[_0x449818('0x1a')](_0x449818('0x2c'),_0x502144,_0xd2e0f8),_0x11ac28(_0xd2e0f8);});});}function respondWithResult(_0x415382,_0x238cf8){return _0x238cf8=_0x238cf8||0xc8,function(_0x504c74){const _0xcc304e=a487_0x4347;if(_0x504c74)return _0x415382[_0xcc304e('0x3b')](_0x238cf8)[_0xcc304e('0x55')](_0x504c74);};}function respondWithFilteredResult(_0x2604c8,_0x5903d1){return function(_0x57064b){const _0x849e57=a487_0x4347;if(_0x57064b){const _0x4d6987=_0x57064b['count'],_0x25ad15=_0x5903d1[_0x849e57('0x12')];let _0xcc7e8b=_0x5903d1[_0x849e57('0x12')]+_0x5903d1['limit'],_0x5bf491;return _0xcc7e8b>=_0x4d6987?(_0xcc7e8b=_0x4d6987,_0x5bf491=0xc8):_0x5bf491=0xce,_0x2604c8[_0x849e57('0x3b')](_0x5bf491),_0x2604c8[_0x849e57('0x5a')](_0x849e57('0x58'),_0x25ad15+'-'+_0xcc7e8b+'/'+_0x4d6987)['json'](_0x57064b);}return null;};}function saveUpdates(_0x1bee98){return function(_0x2a64be){const _0x50d815=a487_0x4347;if(_0x2a64be)return _0x2a64be[_0x50d815('0x19')](_0x1bee98)[_0x50d815('0x5e')](function(_0x5cdf71){return _0x5cdf71;});return null;};}function removeEntity(_0x34d5fd){return function(_0x684ad6){const _0xfdcc8=a487_0x4347;if(_0x684ad6)return _0x684ad6[_0xfdcc8('0x26')]()[_0xfdcc8('0x5e')](function(){const _0x2afbb4=_0xfdcc8;_0x34d5fd['status'](0xcc)[_0x2afbb4('0x36')]();});};}function handleEntityNotFound(_0x482537){return function(_0x4c472b){const _0x28b3a8=a487_0x4347;return!_0x4c472b&&_0x482537[_0x28b3a8('0x4d')](0x194),_0x4c472b;};}function handleError(_0x48f202,_0x37e96c){return _0x37e96c=_0x37e96c||0x1f4,function(_0x1d3792){const _0x53802f=a487_0x4347;logger[_0x53802f('0x1a')](_0x1d3792[_0x53802f('0x46')]),_0x1d3792[_0x53802f('0x5b')]&&delete _0x1d3792[_0x53802f('0x5b')],_0x48f202['status'](_0x37e96c)[_0x53802f('0xf')](_0x1d3792);};}exports[_0x5bdc8e('0x24')]=function(_0x312b90,_0x13cc65){const _0x33fb5c=_0x5bdc8e;let _0x667a6e={};const _0x53ab6c={},_0x4c5d6a={'count':0x0,'rows':[]},_0x9932e4=_[_0x33fb5c('0x35')](db['OpenchannelMessage']['rawAttributes'],function(_0x32a020){const _0x4e242a=_0x33fb5c;return{'name':_0x32a020['fieldName'],'type':_0x32a020['type'][_0x4e242a('0x5d')]};});_0x53ab6c[_0x33fb5c('0x1e')]=_[_0x33fb5c('0x35')](_0x9932e4,_0x33fb5c('0x5b')),_0x53ab6c[_0x33fb5c('0x2e')]=_[_0x33fb5c('0x7')](_0x312b90[_0x33fb5c('0x2e')]),_0x53ab6c[_0x33fb5c('0x4')]=_[_0x33fb5c('0x33')](_0x53ab6c[_0x33fb5c('0x1e')],_0x53ab6c[_0x33fb5c('0x2e')]),_0x667a6e[_0x33fb5c('0x17')]=_[_0x33fb5c('0x33')](_0x53ab6c[_0x33fb5c('0x1e')],qs[_0x33fb5c('0x0')](_0x312b90['query'][_0x33fb5c('0x0')])),_0x667a6e[_0x33fb5c('0x17')]=_0x667a6e['attributes'][_0x33fb5c('0x38')]?_0x667a6e['attributes']:_0x53ab6c[_0x33fb5c('0x1e')];typeof _0x312b90[_0x33fb5c('0x2e')][_0x33fb5c('0x3f')]==='undefined'&&(_0x667a6e['limit']=qs[_0x33fb5c('0x54')](_0x312b90[_0x33fb5c('0x2e')][_0x33fb5c('0x54')]),_0x667a6e['offset']=qs[_0x33fb5c('0x12')](_0x312b90['query'][_0x33fb5c('0x12')]));_0x667a6e[_0x33fb5c('0x3d')]=qs[_0x33fb5c('0x39')](_0x312b90[_0x33fb5c('0x2e')][_0x33fb5c('0x39')]),_0x667a6e[_0x33fb5c('0x45')]=qs[_0x33fb5c('0x4')](_[_0x33fb5c('0x6')](_0x312b90['query'],_0x53ab6c[_0x33fb5c('0x4')]),_0x9932e4);_0x312b90['query']['filter']&&(_0x667a6e[_0x33fb5c('0x45')]=_[_0x33fb5c('0x62')](_0x667a6e[_0x33fb5c('0x45')],{[Op['or']]:_[_0x33fb5c('0x35')](_0x9932e4,function(_0x4cb81b){const _0x581fda=_0x33fb5c;if(_0x4cb81b[_0x581fda('0x3')]!=='VIRTUAL'){const _0x18fb1a={};return _0x18fb1a[_0x4cb81b[_0x581fda('0x5b')]]={[Op[_0x581fda('0x23')]]:'%'+_0x312b90[_0x581fda('0x2e')][_0x581fda('0x44')]+'%'},_0x18fb1a;}})}));_0x667a6e=_['merge']({},_0x667a6e,_0x312b90[_0x33fb5c('0x31')]);const _0x2cec6e={'where':_0x667a6e[_0x33fb5c('0x45')]};return db['OpenchannelMessage'][_0x33fb5c('0x52')](_0x2cec6e)[_0x33fb5c('0x5e')](function(_0x2fea3c){const _0x7ab47=_0x33fb5c;return _0x4c5d6a['count']=_0x2fea3c,_0x312b90[_0x7ab47('0x2e')][_0x7ab47('0x21')]&&(_0x667a6e['include']=[{'all':!![]}]),db[_0x7ab47('0x2b')][_0x7ab47('0x29')](_0x667a6e);})[_0x33fb5c('0x5e')](function(_0x55f457){const _0x29c8a6=_0x33fb5c;return _0x4c5d6a[_0x29c8a6('0x56')]=_0x55f457,_0x4c5d6a;})['then'](respondWithFilteredResult(_0x13cc65,_0x667a6e))['catch'](handleError(_0x13cc65,null));},exports[_0x5bdc8e('0x3c')]=function(_0x28ff37,_0xfd55a6){const _0x259cb7=_0x5bdc8e;let _0x3e0407={'raw':!![],'where':{'id':_0x28ff37[_0x259cb7('0x1d')]['id']}};const _0x30c1e5={};return _0x30c1e5[_0x259cb7('0x1e')]=_[_0x259cb7('0x7')](db[_0x259cb7('0x2b')][_0x259cb7('0x14')]),_0x30c1e5[_0x259cb7('0x2e')]=_['keys'](_0x28ff37[_0x259cb7('0x2e')]),_0x30c1e5[_0x259cb7('0x4')]=_['intersection'](_0x30c1e5[_0x259cb7('0x1e')],_0x30c1e5[_0x259cb7('0x2e')]),_0x3e0407[_0x259cb7('0x17')]=_[_0x259cb7('0x33')](_0x30c1e5[_0x259cb7('0x1e')],qs[_0x259cb7('0x0')](_0x28ff37['query']['fields'])),_0x3e0407[_0x259cb7('0x17')]=_0x3e0407['attributes'][_0x259cb7('0x38')]?_0x3e0407[_0x259cb7('0x17')]:_0x30c1e5[_0x259cb7('0x1e')],_0x28ff37[_0x259cb7('0x2e')][_0x259cb7('0x21')]&&(_0x3e0407[_0x259cb7('0x27')]=[{'all':!![]}]),_0x3e0407=_['merge']({},_0x3e0407,_0x28ff37[_0x259cb7('0x31')]),db[_0x259cb7('0x2b')][_0x259cb7('0x3a')](_0x3e0407)[_0x259cb7('0x5e')](handleEntityNotFound(_0xfd55a6,null))[_0x259cb7('0x5e')](respondWithResult(_0xfd55a6,null))[_0x259cb7('0x50')](handleError(_0xfd55a6,null));},exports[_0x5bdc8e('0x5f')]=function(_0x57ce64,_0x7b517d){const _0x271f80=_0x5bdc8e;return db['OpenchannelMessage']['create'](_0x57ce64[_0x271f80('0x2a')],{})[_0x271f80('0x5e')](respondWithResult(_0x7b517d,0xc9))[_0x271f80('0x50')](handleError(_0x7b517d,null));},exports['update']=function(_0x1f8549,_0x5a10a6){const _0x119096=_0x5bdc8e;return _0x1f8549[_0x119096('0x2a')]['id']&&delete _0x1f8549[_0x119096('0x2a')]['id'],db[_0x119096('0x2b')][_0x119096('0x3a')]({'where':{'id':_0x1f8549['params']['id']}})[_0x119096('0x5e')](handleEntityNotFound(_0x5a10a6,null))['then'](saveUpdates(_0x1f8549['body'],null))[_0x119096('0x5e')](respondWithResult(_0x5a10a6,null))[_0x119096('0x50')](handleError(_0x5a10a6,null));},exports['destroy']=function(_0x166c53,_0x15cf1b){const _0x4f10bb=_0x5bdc8e;return db['OpenchannelMessage']['findOne']({'where':{'id':_0x166c53[_0x4f10bb('0x1d')]['id']}})[_0x4f10bb('0x5e')](handleEntityNotFound(_0x15cf1b,null))[_0x4f10bb('0x5e')](removeEntity(_0x15cf1b,null))[_0x4f10bb('0x50')](handleError(_0x15cf1b,null));},exports[_0x5bdc8e('0x3e')]=function(_0x43b2b6,_0x29c2c2){const _0x48184b=_0x5bdc8e;return db['OpenchannelMessage']['describe']()[_0x48184b('0x5e')](respondWithResult(_0x29c2c2,null))[_0x48184b('0x50')](handleError(_0x29c2c2,null));},exports['accept']=function(_0x11e491,_0x2956db){const _0x24fa33=_0x5bdc8e,_0x557ff0={'channel':_0x24fa33('0x15')};return _0x11e491[_0x24fa33('0x2a')]['id']&&delete _0x11e491[_0x24fa33('0x2a')]['id'],_0x11e491[_0x24fa33('0x2a')]['read']=!![],_0x11e491['body'][_0x24fa33('0x4a')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),_0x11e491[_0x24fa33('0x2a')]['UserId']=_0x11e491[_0x24fa33('0x2a')][_0x24fa33('0x10')]||_0x11e491[_0x24fa33('0x1')]['id'],db[_0x24fa33('0x2b')][_0x24fa33('0x3a')]({'where':{'id':_0x11e491[_0x24fa33('0x1d')]['id'],'UserId':null},'include':[{'model':db[_0x24fa33('0x2d')],'as':_0x24fa33('0x57')}]})[_0x24fa33('0x5e')](handleEntityNotFound(_0x2956db,null))[_0x24fa33('0x5e')](saveUpdates(_0x11e491[_0x24fa33('0x2a')],null))[_0x24fa33('0x5e')](function(_0x4730ba){const _0x4d5fd3=_0x24fa33;if(_0x4730ba)return _0x557ff0[_0x4d5fd3('0x9')]=_0x4730ba[_0x4d5fd3('0x5')]({'plain':!![]}),db[_0x4d5fd3('0x4c')][_0x4d5fd3('0x3a')]({'where':{'id':_0x4730ba[_0x4d5fd3('0x20')]}});return null;})[_0x24fa33('0x5e')](handleEntityNotFound(_0x2956db,null))['then'](function(_0x343605){const _0x3a28ae=_0x24fa33;if(_0x343605)return _0x343605[_0x3a28ae('0x19')]({'UserId':_0x11e491[_0x3a28ae('0x2a')][_0x3a28ae('0x10')],'read1stAt':_['isNil'](_0x343605[_0x3a28ae('0x32')])?moment()[_0x3a28ae('0x53')](_0x3a28ae('0x43')):undefined});return null;})['then'](function(_0x3d15c6){const _0x14db61=_0x24fa33;if(_0x3d15c6)return _0x557ff0[_0x14db61('0x48')]=_0x3d15c6[_0x14db61('0x5')]({'plain':!![]}),interaction_log[_0x14db61('0x28')](_0x14db61('0x1b'),_0x11e491['user']['id'],_0x11e491[_0x14db61('0x1')][_0x14db61('0x5b')],_0x11e491['user'][_0x14db61('0xa')],_0x557ff0[_0x14db61('0x48')]['id'],_0x11e491['body']?JSON['stringify'](_0x11e491[_0x14db61('0x2a')]):_0x14db61('0x22')),respondWithRpcPromise(_0x14db61('0x16'),_0x14db61('0x2f'),_0x557ff0);return null;})[_0x24fa33('0x5e')](function(_0x29cb4b){const _0xaa7f71=_0x24fa33;if(_0x29cb4b){if(_0x11e491[_0xaa7f71('0x2a')][_0xaa7f71('0x37')])return _0x557ff0[_0xaa7f71('0x9')][_0xaa7f71('0x4f')]=util[_0xaa7f71('0x53')](_0xaa7f71('0x11'),_0x11e491[_0xaa7f71('0x1')]['name']),_0x557ff0['message'][_0xaa7f71('0x18')]=_0x557ff0[_0xaa7f71('0x18')],_0x557ff0[_0xaa7f71('0x9')][_0xaa7f71('0x60')]='accept',respondWithRpcPromise('EventManager',_0xaa7f71('0x4b'),{'event':_0xaa7f71('0x8'),'message':_0x557ff0[_0xaa7f71('0x9')]},client9002)[_0xaa7f71('0x5e')](function(){return _0x557ff0;});return _0x557ff0;}return null;})[_0x24fa33('0x5e')](respondWithResult(_0x2956db,null))[_0x24fa33('0x50')](handleError(_0x2956db,null));},exports[_0x5bdc8e('0x49')]=function(_0x9e91ca,_0x26b08c){const _0x461425=_0x5bdc8e,_0x2be734={'agent':{},'channel':_0x461425('0x15')};return _0x9e91ca[_0x461425('0x2a')]['id']&&delete _0x9e91ca[_0x461425('0x2a')]['id'],_0x9e91ca['body'][_0x461425('0x10')]=_0x9e91ca[_0x461425('0x2a')][_0x461425('0x10')]||_0x9e91ca[_0x461425('0x1')]['id'],_0x2be734['agent']['id']=_0x9e91ca['body'][_0x461425('0x10')],db[_0x461425('0x2b')]['findOne']({'where':{'id':_0x9e91ca['params']['id'],'UserId':null}})['then'](handleEntityNotFound(_0x26b08c,null))[_0x461425('0x5e')](function(_0x4f104d){const _0x1c174f=_0x461425;if(_0x4f104d)return _0x2be734[_0x1c174f('0x9')]=_0x4f104d[_0x1c174f('0x5')]({'plain':!![]}),db['OpenchannelInteraction']['findOne']({'where':{'id':_0x4f104d[_0x1c174f('0x20')]}});return null;})[_0x461425('0x5e')](handleEntityNotFound(_0x26b08c,null))['then'](function(_0x476f8b){const _0x36e86b=_0x461425;if(_0x476f8b)return _0x2be734[_0x36e86b('0x48')]=_0x476f8b['get']({'plain':!![]}),interaction_log[_0x36e86b('0x28')]('[OPENCHANNELMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x9e91ca[_0x36e86b('0x1')]['id'],_0x9e91ca['user'][_0x36e86b('0x5b')],_0x9e91ca[_0x36e86b('0x1')]['role'],_0x2be734[_0x36e86b('0x48')]['id'],_0x9e91ca[_0x36e86b('0x2a')]?JSON[_0x36e86b('0xc')](_0x9e91ca['body']):_0x36e86b('0x22')),respondWithRpcPromise('RejectMessage',_0x36e86b('0x61'),_0x2be734);return null;})[_0x461425('0x5e')](function(_0x3b68ad){const _0x5110ef=_0x461425;if(_0x3b68ad)return _0x3b68ad[_0x5110ef('0x9')][_0x5110ef('0x4f')]=util[_0x5110ef('0x53')]('SIP/%s',_0x9e91ca[_0x5110ef('0x1')][_0x5110ef('0x5b')]),_0x3b68ad['message']['channel']=_0x2be734['channel'],_0x3b68ad[_0x5110ef('0x9')][_0x5110ef('0x60')]='reject',respondWithRpcPromise(_0x5110ef('0x4b'),_0x5110ef('0x4b'),{'event':_0x5110ef('0xe'),'message':_0x3b68ad[_0x5110ef('0x9')]},client9002),_0x2be734;return null;})[_0x461425('0x5e')](respondWithResult(_0x26b08c,null))[_0x461425('0x50')](handleError(_0x26b08c,null));}; \ No newline at end of file +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 diff --git a/server/api/openchannelMessage/openchannelMessage.events.js b/server/api/openchannelMessage/openchannelMessage.events.js index 56c2d3c..ba9d113 100644 --- a/server/api/openchannelMessage/openchannelMessage.events.js +++ b/server/api/openchannelMessage/openchannelMessage.events.js @@ -1 +1 @@ -const a488_0x1618=['setMaxListeners','exports','remove','addHook','../../mysqldb','OpenchannelMessage','save','update','events','emit'];(function(_0x3ea22a,_0x1618bc){const _0x3ce0e2=function(_0x32dfd2){while(--_0x32dfd2){_0x3ea22a['push'](_0x3ea22a['shift']());}};_0x3ce0e2(++_0x1618bc);}(a488_0x1618,0x16e));const a488_0x3ce0=function(_0x3ea22a,_0x1618bc){_0x3ea22a=_0x3ea22a-0x0;let _0x3ce0e2=a488_0x1618[_0x3ea22a];return _0x3ce0e2;};const _0xc3b71=a488_0x3ce0;'use strict';const EventEmitter=require(_0xc3b71('0x2')),OpenchannelMessage=require(_0xc3b71('0x8'))['db'][_0xc3b71('0x9')],OpenchannelMessageEvents=new EventEmitter();OpenchannelMessageEvents[_0xc3b71('0x4')](0x0);const events={'afterCreate':_0xc3b71('0x0'),'afterUpdate':_0xc3b71('0x1'),'afterDestroy':_0xc3b71('0x6')};function emitEvent(_0x32dfd2){return function(_0xe9688b){const _0x4dfa56=a488_0x3ce0;OpenchannelMessageEvents[_0x4dfa56('0x3')](_0x32dfd2+':'+_0xe9688b['id'],_0xe9688b),OpenchannelMessageEvents[_0x4dfa56('0x3')](_0x32dfd2,_0xe9688b);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];OpenchannelMessage[_0xc3b71('0x7')](e,emitEvent(event));}}module[_0xc3b71('0x5')]=OpenchannelMessageEvents; \ No newline at end of file +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 diff --git a/server/api/openchannelMessage/openchannelMessage.model.js b/server/api/openchannelMessage/openchannelMessage.model.js index dad6dab..fbc3a54 100644 --- a/server/api/openchannelMessage/openchannelMessage.model.js +++ b/server/api/openchannelMessage/openchannelMessage.model.js @@ -1 +1 @@ -const a489_0xdb09=['catch','CmContact','POST','Interaction','keys','format','finally','then','get','method','afterCreate','Interactions','error','utf8mb4_unicode_ci','OpenchannelInteraction','body','replyUri','OpenchannelMessage','toLowerCase','models','OpenchannelMessage,\x20%s,\x20%s','secret','utf8mb4','threadId','lodash','OpenchannelInteractionId','out','createdAt','Contact','OpenchannelAccount','GET','omit','direction','fti_openchannel_messages','findOne','info','./openchannelMessage.attributes','isNil','request-promise-native','util','OpenchannelAccountId','inspect','update','Forwarding\x20message\x20%d\x20to\x20%s','define','describe'];(function(_0x5847fc,_0xdb09a6){const _0x507b6e=function(_0x552aa7){while(--_0x552aa7){_0x5847fc['push'](_0x5847fc['shift']());}};_0x507b6e(++_0xdb09a6);}(a489_0xdb09,0xf9));const a489_0x507b=function(_0x5847fc,_0xdb09a6){_0x5847fc=_0x5847fc-0x0;let _0x507b6e=a489_0xdb09[_0x5847fc];return _0x507b6e;};const _0xa43f9=a489_0x507b;'use strict';const _=require(_0xa43f9('0x5')),util=require(_0xa43f9('0x14')),logger=require('../../config/logger')('api'),rp=require(_0xa43f9('0x13')),attributes=require(_0xa43f9('0x11'));module['exports']=function(_0x552aa7){const _0x3d9ee7=_0xa43f9,_0xf2ab2e=_0x552aa7[_0x3d9ee7('0x0')],_0x46df7a=_0x552aa7[_0x3d9ee7('0x19')](_0x3d9ee7('0x2c'),attributes,{'tableName':'openchannel_messages','paranoid':![],'indexes':[{'name':_0x3d9ee7('0xe'),'fields':[_0x3d9ee7('0x2a')],'type':'FULLTEXT'}],'timestamps':!![],'hooks':{'afterCreate':function(_0x3f606b){const _0x5ea617=_0x3d9ee7,_0x596437=_0x3f606b[_0x5ea617('0x23')]({'plain':!![]});(_0x596437['direction'][_0x5ea617('0x2d')]()==='in'||_0x596437[_0x5ea617('0xd')][_0x5ea617('0x2d')]()===_0x5ea617('0x7')&&!_0x596437[_0x5ea617('0x2')]&&!_[_0x5ea617('0x12')](_0x596437['UserId']))&&_0xf2ab2e[_0x5ea617('0x29')][_0x5ea617('0xf')]({'where':{'id':_0x596437[_0x5ea617('0x6')]}})[_0x5ea617('0x22')](function(_0x264f3d){const _0x24826c=_0x5ea617;_0x264f3d&&_0x264f3d[_0x24826c('0x17')]({'lastMsgAt':_0x596437[_0x24826c('0x8')],'lastMsgDirection':_0x596437[_0x24826c('0xd')]['toLowerCase']()});})['catch'](function(_0x59cb4d){const _0x20c4af=_0x5ea617;console[_0x20c4af('0x27')](_0x59cb4d);});if(_0x596437['direction']===_0x5ea617('0x7')&&!_0x596437[_0x5ea617('0x2')]){let _0x2aa5fe;_0xf2ab2e[_0x5ea617('0x1c')][_0x5ea617('0x1a')]()[_0x5ea617('0x22')](function(_0x382759){const _0x513b03=_0x5ea617;return _0xf2ab2e[_0x513b03('0xa')]['findOne']({'where':{'id':_0x596437[_0x513b03('0x15')]},'include':[{'model':_0xf2ab2e[_0x513b03('0x29')],'as':_0x513b03('0x26'),'where':{'id':_0x596437[_0x513b03('0x6')]},'limit':0x1,'include':[{'model':_0xf2ab2e[_0x513b03('0x1c')],'as':'Contact','attributes':_[_0x513b03('0x1f')](_0x382759)}]}]});})[_0x5ea617('0x22')](function(_0x3cb371){const _0x54aa9c=_0x5ea617;_0x2aa5fe=_0x3cb371[_0x54aa9c('0x23')]({'plain':!![]});if(_0x2aa5fe&&_0x2aa5fe[_0x54aa9c('0x2b')]){logger[_0x54aa9c('0x10')](_0x54aa9c('0x1'),_0x54aa9c('0x25'),util[_0x54aa9c('0x20')](_0x54aa9c('0x18'),_0x596437['id'],_0x2aa5fe[_0x54aa9c('0x2b')]));_0x2aa5fe[_0x54aa9c('0x26')]&&_0x2aa5fe[_0x54aa9c('0x26')]['length']&&(_0x596437['Interaction']=_[_0x54aa9c('0xc')](_0x2aa5fe[_0x54aa9c('0x26')][0x0],_0x54aa9c('0x9')),_0x596437[_0x54aa9c('0x9')]=_0x2aa5fe[_0x54aa9c('0x26')][0x0][_0x54aa9c('0x9')]);const _0x592b05={'method':_0x54aa9c('0x1d'),'uri':encodeURI(_0x2aa5fe[_0x54aa9c('0x2b')]),'json':!![],'resolveWithFullResponse':!![]};switch(_0x592b05[_0x54aa9c('0x24')]){case _0x54aa9c('0xb'):_0x592b05['qs']=_0x596437;break;case'POST':_0x592b05[_0x54aa9c('0x2a')]=_0x596437;break;}return rp(_0x592b05)['then'](function(_0x7988c8){const _0x4e00ff=_0x54aa9c;logger[_0x4e00ff('0x10')](_0x4e00ff('0x1'),_0x4e00ff('0x25'),util[_0x4e00ff('0x20')]('Message\x20%d\x20forwarded\x20to\x20%s',_0x596437['id'],_0x2aa5fe['replyUri']));if(_0x7988c8['body'][_0x4e00ff('0x4')]&&_0x7988c8[_0x4e00ff('0x2a')][_0x4e00ff('0x4')]!=_0x596437[_0x4e00ff('0x1e')][_0x4e00ff('0x4')])return _0xf2ab2e[_0x4e00ff('0x29')][_0x4e00ff('0x17')]({'threadId':_0x7988c8['body'][_0x4e00ff('0x4')]},{'logging':!![],'where':{'id':_0x596437[_0x4e00ff('0x1e')]['id']}});else return;})[_0x54aa9c('0x22')](function(){const _0x7e77f8=_0x54aa9c;return _0x3f606b[_0x7e77f8('0x17')]({'read':!![]});})[_0x54aa9c('0x1b')](function(_0x93eeb1){const _0x5214b3=_0x54aa9c;logger[_0x5214b3('0x27')](_0x5214b3('0x1'),_0x5214b3('0x25'),util[_0x5214b3('0x16')](_0x93eeb1,{'showHidden':![],'depth':null}));});}})[_0x5ea617('0x21')](function(){return null;});}else return null;}},'charset':_0x3d9ee7('0x3'),'collate':_0x3d9ee7('0x28')});return _0x46df7a;}; \ No newline at end of file +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 diff --git a/server/api/openchannelMessage/openchannelMessage.rpc.js b/server/api/openchannelMessage/openchannelMessage.rpc.js index 22649bb..05a8f3b 100644 --- a/server/api/openchannelMessage/openchannelMessage.rpc.js +++ b/server/api/openchannelMessage/openchannelMessage.rpc.js @@ -1 +1 @@ -const a490_0x5645=['error','stringify','rpc','then','options','debug','../../config/logger','OpenchannelMessage','create','CreateOpenchannelMessage','body','message','../../mysqldb','./openchannelMessage.socket','register','raw'];(function(_0x2dc44c,_0x564578){const _0xc4efb9=function(_0x5ee3cb){while(--_0x5ee3cb){_0x2dc44c['push'](_0x2dc44c['shift']());}};_0xc4efb9(++_0x564578);}(a490_0x5645,0x1a1));const a490_0xc4ef=function(_0x2dc44c,_0x564578){_0x2dc44c=_0x2dc44c-0x0;let _0xc4efb9=a490_0x5645[_0x2dc44c];return _0xc4efb9;};const _0x546286=a490_0xc4ef;'use strict';const db=require(_0x546286('0xb'))['db'],logger=require(_0x546286('0x5'))(_0x546286('0x1')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x546286('0xc'))[_0x546286('0xd')](socket),exports[_0x546286('0x8')]=function(_0x5ee3cb){const _0x2c340b=this;return new Promise(function(_0x5c6766,_0x5a23fb){const _0x5a6166=a490_0xc4ef;return db[_0x5a6166('0x6')][_0x5a6166('0x7')](_0x5ee3cb[_0x5a6166('0x9')],{'raw':_0x5ee3cb['options']?_0x5ee3cb[_0x5a6166('0x3')][_0x5a6166('0xe')]===undefined?!![]:![]:!![]})[_0x5a6166('0x2')](function(_0x4c3d){const _0x177bcc=_0x5a6166;logger['info'](_0x177bcc('0x8'),_0x5ee3cb),logger[_0x177bcc('0x4')](_0x177bcc('0x8'),_0x5ee3cb,JSON[_0x177bcc('0x0')](_0x4c3d)),_0x5c6766(_0x4c3d);})['catch'](function(_0x32693b){const _0x297417=_0x5a6166;logger[_0x297417('0xf')](_0x297417('0x8'),_0x32693b[_0x297417('0xa')],_0x5ee3cb),_0x5a23fb(_0x2c340b['error'](0x1f4,_0x32693b['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/openchannelMessage/openchannelMessage.socket.js b/server/api/openchannelMessage/openchannelMessage.socket.js index 5cc7fa0..6ba9bb0 100644 --- a/server/api/openchannelMessage/openchannelMessage.socket.js +++ b/server/api/openchannelMessage/openchannelMessage.socket.js @@ -1 +1 @@ -const a491_0x3a19=['remove','length','emit','update','save'];(function(_0x52f11e,_0x3a195d){const _0x45ef12=function(_0x568be1){while(--_0x568be1){_0x52f11e['push'](_0x52f11e['shift']());}};_0x45ef12(++_0x3a195d);}(a491_0x3a19,0xd3));const a491_0x45ef=function(_0x52f11e,_0x3a195d){_0x52f11e=_0x52f11e-0x0;let _0x45ef12=a491_0x3a19[_0x52f11e];return _0x45ef12;};const _0x158e16=a491_0x45ef;'use strict';const OpenchannelMessageEvents=require('./openchannelMessage.events'),events=[_0x158e16('0x3'),_0x158e16('0x4'),_0x158e16('0x2')];function createListener(_0x568be1,_0x13564a){return function(_0x355d05){const _0x2059e5=a491_0x45ef;_0x13564a[_0x2059e5('0x1')](_0x568be1,_0x355d05);};}exports['register']=function(_0x461bce){const _0x36495e=_0x158e16;for(let _0x13465d=0x0,_0x34a95d=events[_0x36495e('0x0')];_0x13465d<_0x34a95d;_0x13465d++){const _0x72d621=events[_0x13465d],_0x571bbb=createListener('openchannelMessage:'+_0x72d621,_0x461bce);OpenchannelMessageEvents['on'](_0x72d621,_0x571bbb);}}; \ No newline at end of file +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 diff --git a/server/api/openchannelQueue/index.js b/server/api/openchannelQueue/index.js index c9cf1c1..de07ce7 100644 --- a/server/api/openchannelQueue/index.js +++ b/server/api/openchannelQueue/index.js @@ -1 +1 @@ -const a492_0x4f1e=['express','exports','/:id/users','/:id','getMembers','./openchannelQueue.controller','../../components/auth/service','/describe','Router','/:id/members','post','delete','/:id/teams','put','removeTeams','getAgents','isAuthenticated','getTeams','update','get','destroy'];(function(_0x5b6678,_0x4f1e09){const _0x3a8ef3=function(_0xe68f0f){while(--_0xe68f0f){_0x5b6678['push'](_0x5b6678['shift']());}};_0x3a8ef3(++_0x4f1e09);}(a492_0x4f1e,0xe0));const a492_0x3a8e=function(_0x5b6678,_0x4f1e09){_0x5b6678=_0x5b6678-0x0;let _0x3a8ef3=a492_0x4f1e[_0x5b6678];return _0x3a8ef3;};const _0x3d0c5a=a492_0x3a8e;'use strict';const express=require(_0x3d0c5a('0x7')),router=express[_0x3d0c5a('0xf')](),auth=require(_0x3d0c5a('0xd')),controller=require(_0x3d0c5a('0xc'));router[_0x3d0c5a('0x5')]('/',auth[_0x3d0c5a('0x2')](),controller['index']),router[_0x3d0c5a('0x5')](_0x3d0c5a('0xe'),auth[_0x3d0c5a('0x2')](),controller['describe']),router['get'](_0x3d0c5a('0xa'),auth[_0x3d0c5a('0x2')](),controller['show']),router[_0x3d0c5a('0x5')](_0x3d0c5a('0x10'),auth[_0x3d0c5a('0x2')](),controller[_0x3d0c5a('0xb')]),router[_0x3d0c5a('0x5')](_0x3d0c5a('0x13'),auth[_0x3d0c5a('0x2')](),controller[_0x3d0c5a('0x3')]),router[_0x3d0c5a('0x5')](_0x3d0c5a('0x9'),auth[_0x3d0c5a('0x2')](),controller[_0x3d0c5a('0x1')]),router[_0x3d0c5a('0x11')]('/',auth['isAuthenticated'](),controller['create']),router[_0x3d0c5a('0x11')]('/:id/teams',auth[_0x3d0c5a('0x2')](),controller['addTeams']),router[_0x3d0c5a('0x11')](_0x3d0c5a('0x9'),auth[_0x3d0c5a('0x2')](),controller['addAgents']),router[_0x3d0c5a('0x14')](_0x3d0c5a('0xa'),auth[_0x3d0c5a('0x2')](),controller[_0x3d0c5a('0x4')]),router[_0x3d0c5a('0x12')](_0x3d0c5a('0xa'),auth[_0x3d0c5a('0x2')](),controller[_0x3d0c5a('0x6')]),router['delete'](_0x3d0c5a('0x13'),auth[_0x3d0c5a('0x2')](),controller[_0x3d0c5a('0x0')]),router[_0x3d0c5a('0x12')](_0x3d0c5a('0x9'),auth['isAuthenticated'](),controller['removeAgents']),module[_0x3d0c5a('0x8')]=router; \ No newline at end of file +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 diff --git a/server/api/openchannelQueue/openchannelQueue.attributes.js b/server/api/openchannelQueue/openchannelQueue.attributes.js index a4539f5..061e8d3 100644 --- a/server/api/openchannelQueue/openchannelQueue.attributes.js +++ b/server/api/openchannelQueue/openchannelQueue.attributes.js @@ -1 +1 @@ -const a493_0x4a1d=['beepall','rrmemory','ENUM','STRING','sequelize'];(function(_0x149e71,_0x4a1d4e){const _0x257b75=function(_0x1ac5be){while(--_0x1ac5be){_0x149e71['push'](_0x149e71['shift']());}};_0x257b75(++_0x4a1d4e);}(a493_0x4a1d,0xe2));const a493_0x257b=function(_0x149e71,_0x4a1d4e){_0x149e71=_0x149e71-0x0;let _0x257b75=a493_0x4a1d[_0x149e71];return _0x257b75;};const _0x1ffc76=a493_0x257b;'use strict';const Sequelize=require(_0x1ffc76('0x3'));module['exports']={'name':{'type':Sequelize[_0x1ffc76('0x2')],'unique':'name','validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x1ffc76('0x2')]},'timeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x1ffc76('0x1')](_0x1ffc76('0x0'),_0x1ffc76('0x4'),'roundrobin')}}; \ No newline at end of file +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 diff --git a/server/api/openchannelQueue/openchannelQueue.controller.js b/server/api/openchannelQueue/openchannelQueue.controller.js index 461c312..80066d1 100644 --- a/server/api/openchannelQueue/openchannelQueue.controller.js +++ b/server/api/openchannelQueue/openchannelQueue.controller.js @@ -1 +1 @@ -const a494_0x1d71=['limit','SELECT','%s/%s','online','UserId','error','../../mysqldb','undefined','from','findAndCountAll','sort','findOrCreate','format','../../components/parsers/qs','agent','model','where','field','index','fieldName','Agents','then','stack','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','filters','options','user_has_teams','omit','catch','./openchannelQueue.socket','include','ut.TeamId\x20=\x20tq.TeamId','userOpenchannelQueue:save','util','status','sendStatus','select','create','removeTeams','rows','destroy','set','lodash','type','voicePause','openchannelPause','flatMap','like','describe','squel','name','addTeams','filter','getAgents','Content-Range','OpenchannelQueues','UserProfileResource','body','includeAll','length','../../config/logger','UserProfileSection','clone','compact','User','offset','role','pick','getTeams','includes','end','register','findOne','QueryTypes','sequelize','removeAgents','ut.UserId\x20=\x20?','findAll','UserOpenchannelQueue','map','forEach','addAgents','Team','OpenchannelQueueId\x20=\x20?','updatedAt','show','params','order','nolimit','json','emit','attributes','SIP','intersection','query','createdAt','fields','userOpenchannelQueue:remove','ids','union','count','transaction','rawAttributes','get','update','Unable\x20to\x20retrieve\x20the\x20current\x20user','push','isEmpty','all','send','merge','keys','user','userProfileId','OpenchannelQueue'];(function(_0x5c867f,_0x1d7139){const _0x46425f=function(_0x4e2fb6){while(--_0x4e2fb6){_0x5c867f['push'](_0x5c867f['shift']());}};_0x46425f(++_0x1d7139);}(a494_0x1d71,0x1dc));const a494_0x4642=function(_0x5c867f,_0x1d7139){_0x5c867f=_0x5c867f-0x0;let _0x46425f=a494_0x1d71[_0x5c867f];return _0x46425f;};const _0xbf4a48=a494_0x4642;'use strict';const util=require(_0xbf4a48('0x11')),_=require(_0xbf4a48('0x1a')),squel=require(_0xbf4a48('0x21')),qs=require(_0xbf4a48('0x70')),logger=require(_0xbf4a48('0x2c'))('api'),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0xbf4a48('0x69'))['db'],{Op}=require('sequelize');require(_0xbf4a48('0xd'))[_0xbf4a48('0x37')](socket);function respondWithStatusCode(_0x4e2fb6,_0x4bf7e1){return _0x4bf7e1=_0x4bf7e1||0xcc,function(_0x235b21){const _0x25489e=a494_0x4642;if(_0x235b21)return _0x4e2fb6['sendStatus'](_0x4bf7e1);return _0x4e2fb6[_0x25489e('0x12')](_0x4bf7e1)[_0x25489e('0x36')]();};}function respondWithResult(_0x2a94a9,_0xb7dfbb){return _0xb7dfbb=_0xb7dfbb||0xc8,function(_0x2ac474){const _0x15d8a9=a494_0x4642;if(_0x2ac474)return _0x2a94a9[_0x15d8a9('0x12')](_0xb7dfbb)['json'](_0x2ac474);};}function respondWithFilteredResult(_0x5ab1f7,_0x26425e){return function(_0x544928){const _0x5840a3=a494_0x4642;if(_0x544928){const _0x41b7b1=_0x544928['count'],_0x2e8f09=_0x26425e[_0x5840a3('0x31')];let _0x3f782d=_0x26425e['offset']+_0x26425e[_0x5840a3('0x63')],_0x21ca1b;return _0x3f782d>=_0x41b7b1?(_0x3f782d=_0x41b7b1,_0x21ca1b=0xc8):_0x21ca1b=0xce,_0x5ab1f7[_0x5840a3('0x12')](_0x21ca1b),_0x5ab1f7[_0x5840a3('0x19')](_0x5840a3('0x26'),_0x2e8f09+'-'+_0x3f782d+'/'+_0x41b7b1)[_0x5840a3('0x49')](_0x544928);}return null;};}function saveUpdates(_0x42d9aa){return function(_0x2d4cda){const _0x386320=a494_0x4642;if(_0x2d4cda)return _0x2d4cda[_0x386320('0x58')](_0x42d9aa)[_0x386320('0x5')](function(_0x2931a7){return _0x2931a7;});return null;};}function removeEntity(_0x4587d4){return function(_0x122cb3){const _0x1cd409=a494_0x4642;if(_0x122cb3)return _0x122cb3[_0x1cd409('0x18')]()['then'](function(){const _0x20b71d=_0x1cd409,_0x3eac17=_0x122cb3[_0x20b71d('0x57')]({'plain':!![]}),_0x420132=_0x20b71d('0x27');return db[_0x20b71d('0x28')][_0x20b71d('0x18')]({'where':{'type':_0x420132,'resourceId':_0x3eac17['id']}})[_0x20b71d('0x5')](function(){return _0x122cb3;});})[_0x1cd409('0x5')](function(){const _0x5d82e6=_0x1cd409;_0x4587d4[_0x5d82e6('0x12')](0xcc)[_0x5d82e6('0x36')]();});};}function handleEntityNotFound(_0x35d02b){return function(_0x29ae64){const _0x46f5c7=a494_0x4642;return!_0x29ae64&&_0x35d02b[_0x46f5c7('0x13')](0x194),_0x29ae64;};}function handleError(_0x133fd2,_0x6fc61c){return _0x6fc61c=_0x6fc61c||0x1f4,function(_0x4f14db){const _0x433cca=a494_0x4642;logger[_0x433cca('0x68')](_0x4f14db[_0x433cca('0x6')]),_0x4f14db[_0x433cca('0x22')]&&delete _0x4f14db[_0x433cca('0x22')],_0x133fd2[_0x433cca('0x12')](_0x6fc61c)[_0x433cca('0x5d')](_0x4f14db);};}exports[_0xbf4a48('0x2')]=function(_0x2f4189,_0x75ffcc){const _0x3ad5b2=_0xbf4a48;let _0xe6db5c={};const _0x53ba50={},_0x5eef58={'count':0x0,'rows':[]},_0x50108a=_[_0x3ad5b2('0x3f')](db[_0x3ad5b2('0x62')][_0x3ad5b2('0x56')],function(_0x5c946d){const _0x49a01c=_0x3ad5b2;return{'name':_0x5c946d[_0x49a01c('0x3')],'type':_0x5c946d['type']['key']};});_0x53ba50[_0x3ad5b2('0x72')]=_[_0x3ad5b2('0x3f')](_0x50108a,_0x3ad5b2('0x22')),_0x53ba50['query']=_[_0x3ad5b2('0x5f')](_0x2f4189['query']),_0x53ba50['filters']=_[_0x3ad5b2('0x4d')](_0x53ba50[_0x3ad5b2('0x72')],_0x53ba50[_0x3ad5b2('0x4e')]),_0xe6db5c[_0x3ad5b2('0x4b')]=_[_0x3ad5b2('0x4d')](_0x53ba50[_0x3ad5b2('0x72')],qs[_0x3ad5b2('0x50')](_0x2f4189['query'][_0x3ad5b2('0x50')])),_0xe6db5c[_0x3ad5b2('0x4b')]=_0xe6db5c[_0x3ad5b2('0x4b')]['length']?_0xe6db5c['attributes']:_0x53ba50[_0x3ad5b2('0x72')];typeof _0x2f4189[_0x3ad5b2('0x4e')][_0x3ad5b2('0x48')]===_0x3ad5b2('0x6a')&&(_0xe6db5c[_0x3ad5b2('0x63')]=qs[_0x3ad5b2('0x63')](_0x2f4189[_0x3ad5b2('0x4e')]['limit']),_0xe6db5c[_0x3ad5b2('0x31')]=qs['offset'](_0x2f4189[_0x3ad5b2('0x4e')][_0x3ad5b2('0x31')]));_0xe6db5c[_0x3ad5b2('0x47')]=qs[_0x3ad5b2('0x6d')](_0x2f4189[_0x3ad5b2('0x4e')][_0x3ad5b2('0x6d')]),_0xe6db5c[_0x3ad5b2('0x0')]=qs['filters'](_[_0x3ad5b2('0x33')](_0x2f4189[_0x3ad5b2('0x4e')],_0x53ba50[_0x3ad5b2('0x8')]),_0x50108a);_0x2f4189['query']['filter']&&(_0xe6db5c['where']=_[_0x3ad5b2('0x5e')](_0xe6db5c['where'],{[Op['or']]:_[_0x3ad5b2('0x3f')](_0x50108a,function(_0x8defcb){const _0x56d7b2=_0x3ad5b2;if(_0x8defcb[_0x56d7b2('0x1b')]!=='VIRTUAL'){const _0xc78dd6={};return _0xc78dd6[_0x8defcb['name']]={[Op['like']]:'%'+_0x2f4189[_0x56d7b2('0x4e')][_0x56d7b2('0x24')]+'%'},_0xc78dd6;}})}));_0xe6db5c=_['merge']({},_0xe6db5c,_0x2f4189[_0x3ad5b2('0x9')]);const _0x498c7d={'where':_0xe6db5c[_0x3ad5b2('0x0')]};return db[_0x3ad5b2('0x62')][_0x3ad5b2('0x54')](_0x498c7d)['then'](function(_0x286b67){const _0x4bf523=_0x3ad5b2;return _0x5eef58[_0x4bf523('0x54')]=_0x286b67,_0x2f4189[_0x4bf523('0x4e')][_0x4bf523('0x2a')]&&(_0xe6db5c[_0x4bf523('0xe')]=[{'all':!![]}]),db[_0x4bf523('0x62')][_0x4bf523('0x3d')](_0xe6db5c);})['then'](function(_0x1b5d62){return _0x5eef58['rows']=_0x1b5d62,_0x5eef58;})['then'](respondWithFilteredResult(_0x75ffcc,_0xe6db5c))[_0x3ad5b2('0xc')](handleError(_0x75ffcc,null));},exports[_0xbf4a48('0x45')]=function(_0x4e815c,_0x29c1c1){const _0x4b0445=_0xbf4a48;let _0x3bfd8d={'raw':!![],'where':{'id':_0x4e815c[_0x4b0445('0x46')]['id']}};const _0x113088={};return _0x113088[_0x4b0445('0x72')]=_[_0x4b0445('0x5f')](db[_0x4b0445('0x62')]['rawAttributes']),_0x113088[_0x4b0445('0x4e')]=_['keys'](_0x4e815c[_0x4b0445('0x4e')]),_0x113088[_0x4b0445('0x8')]=_[_0x4b0445('0x4d')](_0x113088[_0x4b0445('0x72')],_0x113088[_0x4b0445('0x4e')]),_0x3bfd8d[_0x4b0445('0x4b')]=_[_0x4b0445('0x4d')](_0x113088['model'],qs[_0x4b0445('0x50')](_0x4e815c[_0x4b0445('0x4e')][_0x4b0445('0x50')])),_0x3bfd8d[_0x4b0445('0x4b')]=_0x3bfd8d[_0x4b0445('0x4b')][_0x4b0445('0x2b')]?_0x3bfd8d[_0x4b0445('0x4b')]:_0x113088[_0x4b0445('0x72')],_0x4e815c[_0x4b0445('0x4e')][_0x4b0445('0x2a')]&&(_0x3bfd8d[_0x4b0445('0xe')]=[{'all':!![]}]),_0x3bfd8d=_[_0x4b0445('0x5e')]({},_0x3bfd8d,_0x4e815c[_0x4b0445('0x9')]),db[_0x4b0445('0x62')][_0x4b0445('0x38')](_0x3bfd8d)[_0x4b0445('0x5')](handleEntityNotFound(_0x29c1c1,null))['then'](respondWithResult(_0x29c1c1,null))[_0x4b0445('0xc')](handleError(_0x29c1c1,null));},exports[_0xbf4a48('0x15')]=function(_0x274ff7,_0x38478f){const _0x1864f6=_0xbf4a48;return db['OpenchannelQueue']['create'](_0x274ff7[_0x1864f6('0x29')],{})[_0x1864f6('0x5')](function(_0x2f9961){const _0x1db44e=_0x1864f6,_0x5d3c5d=_0x274ff7[_0x1db44e('0x60')][_0x1db44e('0x57')]({'plain':!![]});if(!_0x5d3c5d)throw new Error(_0x1db44e('0x59'));if(_0x5d3c5d[_0x1db44e('0x32')]===_0x1db44e('0x60')){const _0x3e77e9=_0x2f9961[_0x1db44e('0x57')]({'plain':!![]}),_0x36a2e0=_0x1db44e('0x27');return db[_0x1db44e('0x2d')][_0x1db44e('0x38')]({'where':{'name':_0x36a2e0,'userProfileId':_0x5d3c5d[_0x1db44e('0x61')]},'raw':!![]})[_0x1db44e('0x5')](function(_0x28a538){const _0x184b43=_0x1db44e;return _0x28a538&&_0x28a538['autoAssociation']===0x0?db[_0x184b43('0x28')]['create']({'name':_0x3e77e9[_0x184b43('0x22')],'resourceId':_0x3e77e9['id'],'type':_0x28a538[_0x184b43('0x22')],'sectionId':_0x28a538['id']},{})[_0x184b43('0x5')](function(){return _0x2f9961;}):_0x2f9961;})['catch'](function(_0x57bc17){const _0x46d15c=_0x1db44e;logger[_0x46d15c('0x68')](_0x46d15c('0x7'),_0x57bc17);throw _0x57bc17;});}return _0x2f9961;})['then'](respondWithResult(_0x38478f,0xc9))[_0x1864f6('0xc')](handleError(_0x38478f,null));},exports['update']=function(_0x5c8492,_0x598e66){const _0x3385e2=_0xbf4a48;return _0x5c8492[_0x3385e2('0x29')]['id']&&delete _0x5c8492[_0x3385e2('0x29')]['id'],db[_0x3385e2('0x62')]['findOne']({'where':{'id':_0x5c8492['params']['id']}})['then'](handleEntityNotFound(_0x598e66,null))['then'](saveUpdates(_0x5c8492[_0x3385e2('0x29')],null))[_0x3385e2('0x5')](respondWithResult(_0x598e66,null))['catch'](handleError(_0x598e66,null));},exports[_0xbf4a48('0x18')]=function(_0x439e05,_0x2b5c1d){const _0x4dfb95=_0xbf4a48;return db[_0x4dfb95('0x62')]['findOne']({'where':{'id':_0x439e05[_0x4dfb95('0x46')]['id']}})[_0x4dfb95('0x5')](handleEntityNotFound(_0x2b5c1d,null))[_0x4dfb95('0x5')](removeEntity(_0x2b5c1d,null))[_0x4dfb95('0xc')](handleError(_0x2b5c1d,null));},exports[_0xbf4a48('0x20')]=function(_0x7b073b,_0x290e63){const _0x5f2a83=_0xbf4a48;return db[_0x5f2a83('0x62')][_0x5f2a83('0x20')]()[_0x5f2a83('0x5')](respondWithResult(_0x290e63,null))['catch'](handleError(_0x290e63,null));},exports['getMembers']=function(_0x7247e,_0x3168ce){const _0x31b0d5=_0xbf4a48;let _0x17548b={'raw':!![],'where':{}};const _0x241b47={};let _0x338343;return db[_0x31b0d5('0x62')][_0x31b0d5('0x38')]({'where':{'id':_0x7247e[_0x31b0d5('0x46')]['id']}})[_0x31b0d5('0x5')](handleEntityNotFound(_0x3168ce,null))[_0x31b0d5('0x5')](function(_0xccd7ed){const _0x43dad0=_0x31b0d5;if(_0xccd7ed)return _0x338343=_0xccd7ed[_0x43dad0('0x57')]({'plain':!![]}),_0x241b47['model']=_[_0x43dad0('0x5f')](db[_0x43dad0('0x3e')]['rawAttributes']),_0x241b47[_0x43dad0('0x4e')]=_[_0x43dad0('0x5f')](_0x7247e[_0x43dad0('0x4e')]),_0x241b47[_0x43dad0('0x8')]=_[_0x43dad0('0x4d')](_0x241b47[_0x43dad0('0x72')],_0x241b47[_0x43dad0('0x4e')]),_0x17548b[_0x43dad0('0x4b')]=_[_0x43dad0('0x4d')](_0x241b47[_0x43dad0('0x72')],qs[_0x43dad0('0x50')](_0x7247e[_0x43dad0('0x4e')][_0x43dad0('0x50')])),_0x17548b['attributes']=_0x17548b['attributes'][_0x43dad0('0x2b')]?_0x17548b[_0x43dad0('0x4b')]:_0x241b47[_0x43dad0('0x72')],typeof _0x7247e[_0x43dad0('0x4e')]['nolimit']==='undefined'&&(_0x17548b['limit']=qs['limit'](_0x7247e[_0x43dad0('0x4e')][_0x43dad0('0x63')]),_0x17548b[_0x43dad0('0x31')]=qs[_0x43dad0('0x31')](_0x7247e[_0x43dad0('0x4e')][_0x43dad0('0x31')])),_0x17548b['order']=qs[_0x43dad0('0x6d')](_0x7247e[_0x43dad0('0x4e')]['sort']),_0x17548b[_0x43dad0('0x0')]=qs[_0x43dad0('0x8')](_[_0x43dad0('0x33')](_0x7247e[_0x43dad0('0x4e')],_0x241b47[_0x43dad0('0x8')])),_0x17548b[_0x43dad0('0x0')]['OpenchannelQueueId']=_0xccd7ed['id'],_0x7247e[_0x43dad0('0x4e')][_0x43dad0('0x24')]&&(_0x17548b[_0x43dad0('0x0')]=_[_0x43dad0('0x5e')](_0x17548b[_0x43dad0('0x0')],{[Op['or']]:_['map'](_0x17548b[_0x43dad0('0x4b')],function(_0x4d7cb1){const _0x38b54b=_0x43dad0,_0x16243a={};return _0x16243a[_0x4d7cb1]={[Op[_0x38b54b('0x1f')]]:'%'+_0x7247e[_0x38b54b('0x4e')][_0x38b54b('0x24')]+'%'},_0x16243a;})})),_0x17548b=_[_0x43dad0('0x5e')]({},_0x17548b,_0x7247e[_0x43dad0('0x9')]),db[_0x43dad0('0x3e')][_0x43dad0('0x3d')](_0x17548b);})[_0x31b0d5('0x5')](function(_0x2f2eac){const _0x145ee2=_0x31b0d5;if(_0x2f2eac)return db[_0x145ee2('0x30')][_0x145ee2('0x6c')]({'where':{'id':_['map'](_0x2f2eac,_0x145ee2('0x67')),'role':_0x145ee2('0x71')},'attributes':['id','name',_0x145ee2('0x1d'),_0x145ee2('0x44'),_0x145ee2('0x4f')]});})[_0x31b0d5('0x5')](function(_0x26ef27){const _0x41bdd5=_0x31b0d5;return _0x26ef27?{'count':_0x26ef27[_0x41bdd5('0x54')],'rows':_[_0x41bdd5('0x3f')](_0x26ef27[_0x41bdd5('0x17')],function(_0x3f28fe){const _0x1c117b=_0x41bdd5;return{'membername':_0x3f28fe[_0x1c117b('0x22')],'UserId':_0x3f28fe['id'],'queue_name':_0x338343[_0x1c117b('0x22')],'OpenchannelQueueId':_0x338343['id'],'interface':util[_0x1c117b('0x6f')](_0x1c117b('0x65'),_0x1c117b('0x4c'),_0x3f28fe[_0x1c117b('0x22')]),'penalty':0x0,'paused':_0x3f28fe['openchannelPause'],'createdAt':_0x3f28fe[_0x1c117b('0x4f')],'updatedAt':_0x3f28fe[_0x1c117b('0x44')]};})}:{'count':0x0,'rows':[]};})[_0x31b0d5('0x5')](respondWithFilteredResult(_0x3168ce,_0x17548b))['catch'](handleError(_0x3168ce,null));},exports[_0xbf4a48('0x34')]=function(_0xe11d2d,_0x346a17){const _0x4aff15=_0xbf4a48;let _0x590082={};const _0x29085c={};let _0x4700f0,_0x5e1d66;return db['OpenchannelQueue'][_0x4aff15('0x38')]({'where':{'id':_0xe11d2d['params']['id']}})[_0x4aff15('0x5')](handleEntityNotFound(_0x346a17,null))[_0x4aff15('0x5')](function(_0xd41acb){const _0x5899a8=_0x4aff15;if(_0xd41acb)return _0x4700f0=_0xd41acb,_0x29085c[_0x5899a8('0x72')]=_[_0x5899a8('0x5f')](db[_0x5899a8('0x42')][_0x5899a8('0x56')]),_0x29085c[_0x5899a8('0x4e')]=_[_0x5899a8('0x5f')](_0xe11d2d[_0x5899a8('0x4e')]),_0x29085c[_0x5899a8('0x8')]=_[_0x5899a8('0x4d')](_0x29085c[_0x5899a8('0x72')],_0x29085c[_0x5899a8('0x4e')]),_0x590082['attributes']=_[_0x5899a8('0x4d')](_0x29085c[_0x5899a8('0x72')],qs[_0x5899a8('0x50')](_0xe11d2d['query'][_0x5899a8('0x50')])),_0x590082[_0x5899a8('0x4b')]=_0x590082[_0x5899a8('0x4b')][_0x5899a8('0x2b')]?_0x590082[_0x5899a8('0x4b')]:_0x29085c['model'],_0x590082['order']=qs['sort'](_0xe11d2d[_0x5899a8('0x4e')][_0x5899a8('0x6d')]),_0x590082[_0x5899a8('0x0')]=qs[_0x5899a8('0x8')](_[_0x5899a8('0x33')](_0xe11d2d[_0x5899a8('0x4e')],_0x29085c[_0x5899a8('0x8')])),_0xe11d2d[_0x5899a8('0x4e')][_0x5899a8('0x24')]&&(_0x590082['where']=_[_0x5899a8('0x5e')](_0x590082[_0x5899a8('0x0')],{[Op['or']]:_[_0x5899a8('0x3f')](_0x590082[_0x5899a8('0x4b')],function(_0x38eb2b){const _0x41c7ce=_0x5899a8,_0x3574fe={};return _0x3574fe[_0x38eb2b]={[Op[_0x41c7ce('0x1f')]]:'%'+_0xe11d2d[_0x41c7ce('0x4e')][_0x41c7ce('0x24')]+'%'},_0x3574fe;})})),_0x590082=_[_0x5899a8('0x5e')]({},_0x590082,_0xe11d2d[_0x5899a8('0x9')]),_0x4700f0['getTeams'](_0x590082);})[_0x4aff15('0x5')](function(_0x2611c4){const _0x3edb96=_0x4aff15;if(_0x2611c4)return _0x5e1d66=_0x2611c4[_0x3edb96('0x2b')],typeof _0xe11d2d['query'][_0x3edb96('0x48')]===_0x3edb96('0x6a')&&(_0x590082[_0x3edb96('0x63')]=qs[_0x3edb96('0x63')](_0xe11d2d['query']['limit']),_0x590082[_0x3edb96('0x31')]=qs[_0x3edb96('0x31')](_0xe11d2d[_0x3edb96('0x4e')]['offset'])),_0x4700f0[_0x3edb96('0x34')](_0x590082);})[_0x4aff15('0x5')](function(_0x34e3f1){if(_0x34e3f1)return _0x34e3f1?{'count':_0x5e1d66,'rows':_0x34e3f1}:null;})[_0x4aff15('0x5')](respondWithResult(_0x346a17,null))[_0x4aff15('0xc')](handleError(_0x346a17,null));},exports[_0xbf4a48('0x23')]=function(_0x1c72d5,_0x1a1e30){const _0x284a1f=_0xbf4a48,_0x492fca=_0x1c72d5['body'][_0x284a1f('0x52')];return db[_0x284a1f('0x42')][_0x284a1f('0x3d')]({'where':{'id':_0x492fca},'attributes':['id'],'include':[{'model':db[_0x284a1f('0x30')],'as':_0x284a1f('0x4'),'attributes':['id',_0x284a1f('0x22'),_0x284a1f('0x66'),_0x284a1f('0x1c'),'interface'],'raw':!![]}]})[_0x284a1f('0x5')](function(_0x49ed89){const _0x3cb457=_0x284a1f;if(_0x49ed89){const _0x478372=_[_0x3cb457('0x1e')](_0x49ed89,function(_0x29b665){const _0x2325a3=_0x3cb457,_0x3c5f0d=_0x29b665['get']({'plain':!![]});return _0x3c5f0d[_0x2325a3('0x4')];});return db['OpenchannelQueue'][_0x3cb457('0x38')]({'where':{'id':_0x1c72d5['params']['id']}})['then'](function(_0x552433){const _0x4ca5d4=_0x3cb457;return db[_0x4ca5d4('0x3a')][_0x4ca5d4('0x55')](function(_0x140397){const _0xcadcb3=_0x4ca5d4;return _0x552433[_0xcadcb3('0x23')](_0x492fca,{'transaction':_0x140397})[_0xcadcb3('0x5')](function(){return Promise['each'](_0x478372,function(_0x5a1a6d){const _0x1b1aa4=a494_0x4642;return db['UserOpenchannelQueue'][_0x1b1aa4('0x6e')]({'where':{'UserId':_0x5a1a6d['id'],'OpenchannelQueueId':_0x1c72d5[_0x1b1aa4('0x46')]['id']},'transaction':_0x140397});});})[_0xcadcb3('0x5')](function(){const _0xb4190c=_0xcadcb3;_0x478372[_0xb4190c('0x40')](function(_0x437de5){const _0x104832=_0xb4190c;socket[_0x104832('0x4a')](_0x104832('0x10'),{'UserId':_0x437de5['id'],'OpenchannelQueueId':_0x552433['id']});});});});});}})['then'](respondWithStatusCode(_0x1a1e30,null))['catch'](handleError(_0x1a1e30,null));},exports[_0xbf4a48('0x16')]=function(_0x2bc425,_0x44309f){const _0xa6f3a3=_0xbf4a48;return db[_0xa6f3a3('0x42')][_0xa6f3a3('0x3d')]({'where':{'id':_0x2bc425[_0xa6f3a3('0x4e')]['ids']},'attributes':['id'],'include':[{'model':db['User'],'as':'Agents','attributes':['id'],'raw':!![]}]})['then'](handleEntityNotFound(_0x44309f,null))[_0xa6f3a3('0x5')](function(_0x5bb03a){const _0x12d20d=_0xa6f3a3,_0x368aec=_[_0x12d20d('0x3f')](_0x5bb03a,'id');let _0x25e3db=[];const _0x1a93b8=[],_0x87c509=squel[_0x12d20d('0x14')]();_0x87c509[_0x12d20d('0x1')]('tq.TeamId')[_0x12d20d('0x6b')]('team_has_openchannel_queues','tq')['join'](_0x12d20d('0xa'),'ut',_0x12d20d('0xf'))[_0x12d20d('0x0')](_0x12d20d('0x43'),_0x2bc425['params']['id']);for(let _0xf661df=0x0;_0xf661df<_0x5bb03a[_0x12d20d('0x2b')];_0xf661df+=0x1){const _0x29c7b0=_0x5bb03a[_0xf661df];for(let _0x56525b=0x0;_0x56525b<_0x29c7b0[_0x12d20d('0x4')][_0x12d20d('0x2b')];_0x56525b+=0x1){const _0x47e7e3=_0x29c7b0[_0x12d20d('0x4')][_0x56525b],_0x4be212=_0x87c509[_0x12d20d('0x2e')]();_0x4be212['where'](_0x12d20d('0x3c'),_0x47e7e3['id']),_0x1a93b8[_0x12d20d('0x5a')](db[_0x12d20d('0x3a')]['query'](_0x4be212['toString'](),{'type':db[_0x12d20d('0x3a')][_0x12d20d('0x39')][_0x12d20d('0x64')]})['then'](function(_0x5ad0eb){const _0x191217=_0x12d20d;if(_0x5ad0eb[_0x191217('0x2b')]===0x1)return _0x47e7e3['id'];else{const _0x5d3b09=_['every'](_[_0x191217('0x3f')](_0x5ad0eb,'TeamId'),function(_0x5dc44c){const _0x5b3f69=_0x191217;return _[_0x5b3f69('0x35')](_0x368aec,_0x5dc44c);});if(_0x5d3b09)return _0x47e7e3['id'];}}));}}return Promise[_0x12d20d('0x5c')](_0x1a93b8)[_0x12d20d('0x5')](function(_0x5ce8e5){const _0x2b2be2=_0x12d20d;return _0x25e3db=_(_0x25e3db)[_0x2b2be2('0x53')](_0x5ce8e5)[_0x2b2be2('0x2f')]()['value'](),db[_0x2b2be2('0x62')]['findOne']({'where':{'id':_0x2bc425[_0x2b2be2('0x46')]['id']}})[_0x2b2be2('0x5')](function(_0x51d223){return db['sequelize']['transaction'](function(_0x524a59){const _0x535eb9=a494_0x4642;return _0x51d223[_0x535eb9('0x16')](_0x2bc425[_0x535eb9('0x4e')]['ids'],{'transaction':_0x524a59})[_0x535eb9('0x5')](function(){const _0x590759=_0x535eb9;if(!_[_0x590759('0x5b')](_0x25e3db))return _0x51d223[_0x590759('0x3b')](_0x25e3db,{'transaction':_0x524a59});})[_0x535eb9('0x5')](function(){const _0x44b8b7=_0x535eb9;_0x25e3db[_0x44b8b7('0x40')](function(_0x5ade79){const _0x5ce85d=_0x44b8b7;socket[_0x5ce85d('0x4a')](_0x5ce85d('0x51'),{'UserId':_0x5ade79,'OpenchannelQueueId':_0x51d223['id']});});});});});});})[_0xa6f3a3('0x5')](respondWithStatusCode(_0x44309f,null))[_0xa6f3a3('0xc')](handleError(_0x44309f,null));},exports[_0xbf4a48('0x41')]=function(_0x2f2387,_0xe14249){const _0x484e1d=_0xbf4a48;return db[_0x484e1d('0x62')][_0x484e1d('0x38')]({'where':{'id':_0x2f2387['params']['id']}})['then'](function(_0x3e9cab){const _0x38e2bb=_0x484e1d;if(_0x3e9cab)return _0x3e9cab[_0x38e2bb('0x41')](_0x2f2387['body'][_0x38e2bb('0x52')],{'through':_[_0x38e2bb('0xb')](_0x2f2387[_0x38e2bb('0x29')],[_0x38e2bb('0x52'),'id'])})[_0x38e2bb('0x5')](function(_0x435274){const _0x303a97=_0x38e2bb;for(let _0x1c3089=0x0;_0x1c3089<_0x2f2387[_0x303a97('0x29')][_0x303a97('0x52')][_0x303a97('0x2b')];_0x1c3089+=0x1){socket['emit'](_0x303a97('0x10'),{'UserId':_0x2f2387[_0x303a97('0x29')][_0x303a97('0x52')][_0x1c3089],'OpenchannelQueueId':_0x2f2387[_0x303a97('0x46')]['id']});}return _0x435274;});})[_0x484e1d('0x5')](respondWithResult(_0xe14249,null))[_0x484e1d('0xc')](handleError(_0xe14249,null));},exports[_0xbf4a48('0x3b')]=function(_0x19e9b3,_0xed6bbe){const _0x2355b6=_0xbf4a48;return db[_0x2355b6('0x62')][_0x2355b6('0x38')]({'where':{'id':_0x19e9b3[_0x2355b6('0x46')]['id']}})[_0x2355b6('0x5')](handleEntityNotFound(_0xed6bbe,null))[_0x2355b6('0x5')](function(_0x13c087){const _0x1f7a70=_0x2355b6;if(_0x13c087)return _0x13c087[_0x1f7a70('0x3b')](_0x19e9b3[_0x1f7a70('0x4e')][_0x1f7a70('0x52')])[_0x1f7a70('0x5')](function(){const _0x393ff2=_0x1f7a70;if(_['isArray'](_0x19e9b3['query'][_0x393ff2('0x52')]))for(let _0x3af85e=0x0;_0x3af85e<_0x19e9b3['query'][_0x393ff2('0x52')]['length'];_0x3af85e+=0x1){socket[_0x393ff2('0x4a')](_0x393ff2('0x51'),{'UserId':Number(_0x19e9b3[_0x393ff2('0x4e')]['ids'][_0x3af85e]),'OpenchannelQueueId':Number(_0x19e9b3[_0x393ff2('0x46')]['id'])});}else socket[_0x393ff2('0x4a')](_0x393ff2('0x51'),{'UserId':Number(_0x19e9b3[_0x393ff2('0x4e')][_0x393ff2('0x52')]),'OpenchannelQueueId':Number(_0x19e9b3[_0x393ff2('0x46')]['id'])});});})[_0x2355b6('0x5')](respondWithStatusCode(_0xed6bbe,null))[_0x2355b6('0xc')](handleError(_0xed6bbe,null));},exports[_0xbf4a48('0x25')]=function(_0xd059ac,_0xb3387e){const _0x12cc7f=_0xbf4a48;let _0x1790a7={};const _0x137d5e={};let _0xf034f0,_0x1b7bea;return db[_0x12cc7f('0x62')][_0x12cc7f('0x38')]({'where':{'id':_0xd059ac[_0x12cc7f('0x46')]['id']}})[_0x12cc7f('0x5')](handleEntityNotFound(_0xb3387e,null))[_0x12cc7f('0x5')](function(_0x33321c){const _0x51fc30=_0x12cc7f;if(_0x33321c)return _0xf034f0=_0x33321c,_0x137d5e[_0x51fc30('0x72')]=_[_0x51fc30('0x5f')](db['User'][_0x51fc30('0x56')]),_0x137d5e[_0x51fc30('0x4e')]=_[_0x51fc30('0x5f')](_0xd059ac[_0x51fc30('0x4e')]),_0x137d5e[_0x51fc30('0x8')]=_['intersection'](_0x137d5e['model'],_0x137d5e[_0x51fc30('0x4e')]),_0x1790a7[_0x51fc30('0x4b')]=_[_0x51fc30('0x4d')](_0x137d5e[_0x51fc30('0x72')],qs[_0x51fc30('0x50')](_0xd059ac[_0x51fc30('0x4e')][_0x51fc30('0x50')])),_0x1790a7['attributes']=_0x1790a7[_0x51fc30('0x4b')]['length']?_0x1790a7[_0x51fc30('0x4b')]:_0x137d5e[_0x51fc30('0x72')],_0x1790a7[_0x51fc30('0x47')]=qs['sort'](_0xd059ac[_0x51fc30('0x4e')]['sort']),_0x1790a7['where']=qs['filters'](_[_0x51fc30('0x33')](_0xd059ac['query'],_0x137d5e[_0x51fc30('0x8')])),_0xd059ac['query']['filter']&&(_0x1790a7['where']=_[_0x51fc30('0x5e')](_0x1790a7['where'],{[Op['or']]:_[_0x51fc30('0x3f')](_0x1790a7[_0x51fc30('0x4b')],function(_0x4614c0){const _0x4fee59=_0x51fc30,_0x400446={};return _0x400446[_0x4614c0]={[Op[_0x4fee59('0x1f')]]:'%'+_0xd059ac[_0x4fee59('0x4e')][_0x4fee59('0x24')]+'%'},_0x400446;})})),_0x1790a7=_[_0x51fc30('0x5e')]({},_0x1790a7,_0xd059ac[_0x51fc30('0x9')]),_0xf034f0[_0x51fc30('0x25')](_0x1790a7);})['then'](function(_0x226b70){const _0x462307=_0x12cc7f;if(_0x226b70)return _0x1b7bea=_0x226b70['length'],typeof _0xd059ac[_0x462307('0x4e')]['nolimit']==='undefined'&&(_0x1790a7[_0x462307('0x63')]=qs[_0x462307('0x63')](_0xd059ac['query'][_0x462307('0x63')]),_0x1790a7[_0x462307('0x31')]=qs[_0x462307('0x31')](_0xd059ac[_0x462307('0x4e')][_0x462307('0x31')])),_0xf034f0['getAgents'](_0x1790a7);})['then'](function(_0x467f41){if(_0x467f41)return _0x467f41?{'count':_0x1b7bea,'rows':_0x467f41}:null;})[_0x12cc7f('0x5')](respondWithResult(_0xb3387e,null))['catch'](handleError(_0xb3387e,null));}; \ No newline at end of file +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 diff --git a/server/api/openchannelQueue/openchannelQueue.events.js b/server/api/openchannelQueue/openchannelQueue.events.js index d5a9096..eb69af4 100644 --- a/server/api/openchannelQueue/openchannelQueue.events.js +++ b/server/api/openchannelQueue/openchannelQueue.events.js @@ -1 +1 @@ -const a495_0x170f=['emit','save','update','setMaxListeners','undefined','OpenchannelQueue','events','remove','exports','../../mysqldb'];(function(_0x19ff80,_0x170fc7){const _0x4c6d81=function(_0x1f939c){while(--_0x1f939c){_0x19ff80['push'](_0x19ff80['shift']());}};_0x4c6d81(++_0x170fc7);}(a495_0x170f,0x73));const a495_0x4c6d=function(_0x19ff80,_0x170fc7){_0x19ff80=_0x19ff80-0x0;let _0x4c6d81=a495_0x170f[_0x19ff80];return _0x4c6d81;};const _0x10eedf=a495_0x4c6d;'use strict';const EventEmitter=require(_0x10eedf('0x1')),OpenchannelQueue=require(_0x10eedf('0x4'))['db'][_0x10eedf('0x0')],OpenchannelQueueEvents=new EventEmitter();OpenchannelQueueEvents[_0x10eedf('0x8')](0x0);const events={'afterCreate':_0x10eedf('0x6'),'afterUpdate':_0x10eedf('0x7'),'afterDestroy':_0x10eedf('0x2')};function emitEvent(_0x1f939c){return function(_0x116790){const _0x1f35eb=a495_0x4c6d;OpenchannelQueueEvents['emit'](_0x1f939c+':'+_0x116790['id'],_0x116790),OpenchannelQueueEvents[_0x1f35eb('0x5')](_0x1f939c,_0x116790);};}for(const e in events){if(typeof events[e]!==_0x10eedf('0x9')){const event=events[e];OpenchannelQueue['addHook'](e,emitEvent(event));}}module[_0x10eedf('0x3')]=OpenchannelQueueEvents; \ No newline at end of file +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 diff --git a/server/api/openchannelQueue/openchannelQueue.model.js b/server/api/openchannelQueue/openchannelQueue.model.js index d1df72a..23fa935 100644 --- a/server/api/openchannelQueue/openchannelQueue.model.js +++ b/server/api/openchannelQueue/openchannelQueue.model.js @@ -1 +1 @@ -const a496_0x4501=['./openchannelQueue.attributes','exports','define','OpenchannelQueue'];(function(_0x42cb3e,_0x450126){const _0x5f30d5=function(_0x3d74fb){while(--_0x3d74fb){_0x42cb3e['push'](_0x42cb3e['shift']());}};_0x5f30d5(++_0x450126);}(a496_0x4501,0xe0));const a496_0x5f30=function(_0x42cb3e,_0x450126){_0x42cb3e=_0x42cb3e-0x0;let _0x5f30d5=a496_0x4501[_0x42cb3e];return _0x5f30d5;};const _0x3bcb11=a496_0x5f30;'use strict';const attributes=require(_0x3bcb11('0x0'));module[_0x3bcb11('0x1')]=function(_0x3d74fb){const _0x4c49bb=_0x3bcb11,_0x8e41bb=_0x3d74fb[_0x4c49bb('0x2')](_0x4c49bb('0x3'),attributes,{'tableName':'openchannel_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x8e41bb;}; \ No newline at end of file +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 diff --git a/server/api/openchannelQueue/openchannelQueue.rpc.js b/server/api/openchannelQueue/openchannelQueue.rpc.js index a750732..d495008 100644 --- a/server/api/openchannelQueue/openchannelQueue.rpc.js +++ b/server/api/openchannelQueue/openchannelQueue.rpc.js @@ -1 +1 @@ -const a497_0x5162=['options','info','OpenchannelQueue','where','map','raw','model','./openchannelQueue.socket','debug','error','attributes','message','catch','GetOpenchannelQueue','../../rediscache','stringify','../../config/logger','../../mysqldb','ShowOpenchannelQueue','findOne','rpc','then','register','include','lodash'];(function(_0x33919d,_0x516295){const _0x5ae34a=function(_0x4db8d5){while(--_0x4db8d5){_0x33919d['push'](_0x33919d['shift']());}};_0x5ae34a(++_0x516295);}(a497_0x5162,0x142));const a497_0x5ae3=function(_0x33919d,_0x516295){_0x33919d=_0x33919d-0x0;let _0x5ae34a=a497_0x5162[_0x33919d];return _0x5ae34a;};const _0x3557ae=a497_0x5ae3;'use strict';const _=require(_0x3557ae('0x2')),db=require(_0x3557ae('0x14'))['db'],logger=require(_0x3557ae('0x13'))(_0x3557ae('0x17')),{getSocket}=require(_0x3557ae('0x11')),socket=getSocket();require(_0x3557ae('0xa'))[_0x3557ae('0x0')](socket),exports[_0x3557ae('0x10')]=function(_0x4db8d5){const _0x4e598c=this;return new Promise(function(_0x3e82a6,_0x16a849){const _0x13a137=a497_0x5ae3;return db[_0x13a137('0x5')]['findAll']({'raw':_0x4db8d5['options']?_0x4db8d5['options'][_0x13a137('0x8')]===undefined?!![]:![]:!![],'where':_0x4db8d5['options']?_0x4db8d5['options'][_0x13a137('0x6')]||null:null,'attributes':_0x4db8d5[_0x13a137('0x3')]?_0x4db8d5['options'][_0x13a137('0xd')]||null:null,'limit':_0x4db8d5[_0x13a137('0x3')]?_0x4db8d5[_0x13a137('0x3')]['limit']||null:null,'include':_0x4db8d5[_0x13a137('0x3')]?_0x4db8d5[_0x13a137('0x3')]['include']?_[_0x13a137('0x7')](_0x4db8d5[_0x13a137('0x3')][_0x13a137('0x1')],function(_0x42eb3a){const _0x5f5c27=_0x13a137;return{'model':db[_0x42eb3a[_0x5f5c27('0x9')]],'as':_0x42eb3a['as'],'attributes':_0x42eb3a[_0x5f5c27('0xd')],'include':_0x42eb3a['include']?_['map'](_0x42eb3a[_0x5f5c27('0x1')],function(_0x49063e){const _0x3a105a=_0x5f5c27;return{'model':db[_0x49063e['model']],'as':_0x49063e['as'],'attributes':_0x49063e[_0x3a105a('0xd')],'include':_0x49063e[_0x3a105a('0x1')]?_[_0x3a105a('0x7')](_0x49063e[_0x3a105a('0x1')],function(_0x2bcf17){const _0x34ed74=_0x3a105a;return{'model':db[_0x2bcf17[_0x34ed74('0x9')]],'as':_0x2bcf17['as'],'attributes':_0x2bcf17[_0x34ed74('0xd')]};}):[]};}):[]};}):[]:[]})[_0x13a137('0x18')](function(_0x5d64c3){const _0x4a0cd7=_0x13a137;logger[_0x4a0cd7('0x4')]('GetOpenchannelQueue',_0x4db8d5),logger['debug'](_0x4a0cd7('0x10'),_0x4db8d5,JSON[_0x4a0cd7('0x12')](_0x5d64c3)),_0x3e82a6(_0x5d64c3);})[_0x13a137('0xf')](function(_0x4396a2){const _0x53e82d=_0x13a137;logger[_0x53e82d('0xc')](_0x53e82d('0x10'),_0x4396a2[_0x53e82d('0xe')],_0x4db8d5),_0x16a849(_0x4e598c['error'](0x1f4,_0x4396a2[_0x53e82d('0xe')]));});});},exports['ShowOpenchannelQueue']=function(_0x52c390){const _0x2a2932=this;return new Promise(function(_0x354be9,_0x523655){const _0x3fd598=a497_0x5ae3;return db[_0x3fd598('0x5')][_0x3fd598('0x16')]({'raw':_0x52c390[_0x3fd598('0x3')]?_0x52c390[_0x3fd598('0x3')][_0x3fd598('0x8')]===undefined?!![]:![]:!![],'where':_0x52c390[_0x3fd598('0x3')]?_0x52c390[_0x3fd598('0x3')][_0x3fd598('0x6')]||null:null,'attributes':_0x52c390['options']?_0x52c390[_0x3fd598('0x3')][_0x3fd598('0xd')]||null:null,'include':_0x52c390[_0x3fd598('0x3')]?_0x52c390[_0x3fd598('0x3')][_0x3fd598('0x1')]?_[_0x3fd598('0x7')](_0x52c390[_0x3fd598('0x3')][_0x3fd598('0x1')],function(_0x6da418){const _0xffc0ed=_0x3fd598;return{'model':db[_0x6da418[_0xffc0ed('0x9')]],'as':_0x6da418['as'],'attributes':_0x6da418[_0xffc0ed('0xd')],'include':_0x6da418[_0xffc0ed('0x1')]?_['map'](_0x6da418[_0xffc0ed('0x1')],function(_0x3fead8){const _0x5a545d=_0xffc0ed;return{'model':db[_0x3fead8['model']],'as':_0x3fead8['as'],'attributes':_0x3fead8[_0x5a545d('0xd')],'include':_0x3fead8['include']?_[_0x5a545d('0x7')](_0x3fead8['include'],function(_0x42475a){return{'model':db[_0x42475a['model']],'as':_0x42475a['as'],'attributes':_0x42475a['attributes']};}):[]};}):[]};}):[]:[]})[_0x3fd598('0x18')](function(_0x8a2957){const _0xb89d84=_0x3fd598;logger[_0xb89d84('0x4')](_0xb89d84('0x15'),_0x52c390),logger[_0xb89d84('0xb')]('ShowOpenchannelQueue',_0x52c390,JSON[_0xb89d84('0x12')](_0x8a2957)),_0x354be9(_0x8a2957);})[_0x3fd598('0xf')](function(_0x48f9b7){const _0x2d7ae3=_0x3fd598;logger[_0x2d7ae3('0xc')]('ShowOpenchannelQueue',_0x48f9b7['message'],_0x52c390),_0x523655(_0x2a2932[_0x2d7ae3('0xc')](0x1f4,_0x48f9b7[_0x2d7ae3('0xe')]));});});}; \ No newline at end of file +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 diff --git a/server/api/openchannelQueue/openchannelQueue.socket.js b/server/api/openchannelQueue/openchannelQueue.socket.js index 11200b7..45aa4c5 100644 --- a/server/api/openchannelQueue/openchannelQueue.socket.js +++ b/server/api/openchannelQueue/openchannelQueue.socket.js @@ -1 +1 @@ -const a498_0x4430=['update','length','./openchannelQueue.events','save','remove'];(function(_0x2eabad,_0x443015){const _0x3354b1=function(_0x2fb634){while(--_0x2fb634){_0x2eabad['push'](_0x2eabad['shift']());}};_0x3354b1(++_0x443015);}(a498_0x4430,0xee));const a498_0x3354=function(_0x2eabad,_0x443015){_0x2eabad=_0x2eabad-0x0;let _0x3354b1=a498_0x4430[_0x2eabad];return _0x3354b1;};const _0x16646d=a498_0x3354;'use strict';const OpenchannelQueueEvents=require(_0x16646d('0x4')),events=[_0x16646d('0x0'),_0x16646d('0x1'),_0x16646d('0x2')];function createListener(_0x2fb634,_0x1bbce2){return function(_0x4a57e4){_0x1bbce2['emit'](_0x2fb634,_0x4a57e4);};}exports['register']=function(_0x4e188d){const _0x32bec1=_0x16646d;for(let _0x54d653=0x0,_0x3f521c=events[_0x32bec1('0x3')];_0x54d653<_0x3f521c;_0x54d653++){const _0x1fabce=events[_0x54d653],_0x295638=createListener('openchannelQueue:'+_0x1fabce,_0x4e188d);OpenchannelQueueEvents['on'](_0x1fabce,_0x295638);}}; \ No newline at end of file +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 diff --git a/server/api/openchannelQueueReport/index.js b/server/api/openchannelQueueReport/index.js index 6facdfd..e62316c 100644 --- a/server/api/openchannelQueueReport/index.js +++ b/server/api/openchannelQueueReport/index.js @@ -1 +1 @@ -const a499_0x1e2a=['isAuthenticated','destroy','describe','../../components/auth/service','update','Router','put','get','create','index','/:id','post','./openchannelQueueReport.controller','show','delete'];(function(_0x2cb184,_0x1e2a50){const _0x4ed1a8=function(_0x4adb30){while(--_0x4adb30){_0x2cb184['push'](_0x2cb184['shift']());}};_0x4ed1a8(++_0x1e2a50);}(a499_0x1e2a,0x1bb));const a499_0x4ed1=function(_0x2cb184,_0x1e2a50){_0x2cb184=_0x2cb184-0x0;let _0x4ed1a8=a499_0x1e2a[_0x2cb184];return _0x4ed1a8;};const _0x21c982=a499_0x4ed1;'use strict';const express=require('express'),router=express[_0x21c982('0xc')](),auth=require(_0x21c982('0xa')),controller=require(_0x21c982('0x4'));router['get']('/',auth[_0x21c982('0x7')](),controller[_0x21c982('0x1')]),router[_0x21c982('0xe')]('/describe',auth['isAuthenticated'](),controller[_0x21c982('0x9')]),router[_0x21c982('0xe')]('/:id',auth['isAuthenticated'](),controller[_0x21c982('0x5')]),router[_0x21c982('0x3')]('/',auth['isAuthenticated'](),controller[_0x21c982('0x0')]),router[_0x21c982('0xd')]('/:id',auth['isAuthenticated'](),controller[_0x21c982('0xb')]),router[_0x21c982('0x6')](_0x21c982('0x2'),auth[_0x21c982('0x7')](),controller[_0x21c982('0x8')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/openchannelQueueReport/openchannelQueueReport.attributes.js b/server/api/openchannelQueueReport/openchannelQueueReport.attributes.js index f3388da..c8c0847 100644 --- a/server/api/openchannelQueueReport/openchannelQueueReport.attributes.js +++ b/server/api/openchannelQueueReport/openchannelQueueReport.attributes.js @@ -1 +1 @@ -const a500_0x5b94=['sequelize','DATE','exports','STRING'];(function(_0x56fcfe,_0x5b945c){const _0x1090e6=function(_0x1ecc00){while(--_0x1ecc00){_0x56fcfe['push'](_0x56fcfe['shift']());}};_0x1090e6(++_0x5b945c);}(a500_0x5b94,0x7c));const a500_0x1090=function(_0x56fcfe,_0x5b945c){_0x56fcfe=_0x56fcfe-0x0;let _0x1090e6=a500_0x5b94[_0x56fcfe];return _0x1090e6;};const _0x1c1c24=a500_0x1090;'use strict';const Sequelize=require(_0x1c1c24('0x0'));module[_0x1c1c24('0x2')]={'uniqueid':{'type':Sequelize[_0x1c1c24('0x3')],'allowNull':![]},'from':{'type':Sequelize['STRING']},'joinAt':{'type':Sequelize['DATE']},'leaveAt':{'type':Sequelize[_0x1c1c24('0x1')]},'acceptAt':{'type':Sequelize[_0x1c1c24('0x1')]},'exitAt':{'type':Sequelize[_0x1c1c24('0x1')]},'reason':{'type':Sequelize['STRING']}}; \ No newline at end of file +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 diff --git a/server/api/openchannelQueueReport/openchannelQueueReport.controller.js b/server/api/openchannelQueueReport/openchannelQueueReport.controller.js index 584597d..3ccdb6b 100644 --- a/server/api/openchannelQueueReport/openchannelQueueReport.controller.js +++ b/server/api/openchannelQueueReport/openchannelQueueReport.controller.js @@ -1 +1 @@ -const a501_0x46cd=['api','length','create','findOne','destroy','key','name','includeAll','query','../../mysqldb','undefined','like','map','VIRTUAL','count','where','limit','nolimit','fields','filters','status','intersection','update','type','sort','sendStatus','end','stack','describe','attributes','then','keys','order','options','rawAttributes','sequelize','catch','offset','findAll','params','merge','model','index','pick','rows','OpenchannelQueueReport','Content-Range','../../config/logger','body','json','lodash','error','fieldName','set','show','include'];(function(_0x43bd5f,_0x46cd2a){const _0x2a0ccb=function(_0x305710){while(--_0x305710){_0x43bd5f['push'](_0x43bd5f['shift']());}};_0x2a0ccb(++_0x46cd2a);}(a501_0x46cd,0x177));const a501_0x2a0c=function(_0x43bd5f,_0x46cd2a){_0x43bd5f=_0x43bd5f-0x0;let _0x2a0ccb=a501_0x46cd[_0x43bd5f];return _0x2a0ccb;};const _0x51a794=a501_0x2a0c;'use strict';const _=require(_0x51a794('0xb')),qs=require('../../components/parsers/qs'),logger=require(_0x51a794('0x8'))(_0x51a794('0x11')),db=require(_0x51a794('0x1a'))['db'],{Op}=require(_0x51a794('0x34'));function respondWithResult(_0x305710,_0x5813cb){return _0x5813cb=_0x5813cb||0xc8,function(_0x2814ad){const _0x3aefc5=a501_0x2a0c;if(_0x2814ad)return _0x305710[_0x3aefc5('0x25')](_0x5813cb)[_0x3aefc5('0xa')](_0x2814ad);};}function respondWithFilteredResult(_0x353dc0,_0x5a2d2a){return function(_0x22a00a){const _0x521707=a501_0x2a0c;if(_0x22a00a){const _0x412337=_0x22a00a[_0x521707('0x1f')],_0x149542=_0x5a2d2a['offset'];let _0x2c0ef1=_0x5a2d2a['offset']+_0x5a2d2a[_0x521707('0x21')],_0x55505d;return _0x2c0ef1>=_0x412337?(_0x2c0ef1=_0x412337,_0x55505d=0xc8):_0x55505d=0xce,_0x353dc0[_0x521707('0x25')](_0x55505d),_0x353dc0[_0x521707('0xe')](_0x521707('0x7'),_0x149542+'-'+_0x2c0ef1+'/'+_0x412337)[_0x521707('0xa')](_0x22a00a);}return null;};}function saveUpdates(_0x172f84){return function(_0xecbe03){const _0x2f524c=a501_0x2a0c;if(_0xecbe03)return _0xecbe03[_0x2f524c('0x27')](_0x172f84)['then'](function(_0x33d7a5){return _0x33d7a5;});return null;};}function removeEntity(_0xec17d6){return function(_0x118705){const _0x357779=a501_0x2a0c;if(_0x118705)return _0x118705[_0x357779('0x15')]()[_0x357779('0x2f')](function(){const _0x4ef19a=_0x357779;_0xec17d6[_0x4ef19a('0x25')](0xcc)[_0x4ef19a('0x2b')]();});};}function handleEntityNotFound(_0x2f0407){return function(_0xac8481){const _0x5a3e72=a501_0x2a0c;return!_0xac8481&&_0x2f0407[_0x5a3e72('0x2a')](0x194),_0xac8481;};}function handleError(_0x359bae,_0x25c133){return _0x25c133=_0x25c133||0x1f4,function(_0x147b6b){const _0x6f2a7d=a501_0x2a0c;logger[_0x6f2a7d('0xc')](_0x147b6b[_0x6f2a7d('0x2c')]),_0x147b6b['name']&&delete _0x147b6b[_0x6f2a7d('0x17')],_0x359bae[_0x6f2a7d('0x25')](_0x25c133)['send'](_0x147b6b);};}exports[_0x51a794('0x3')]=function(_0x260883,_0xbf1d7a){const _0x3941fa=_0x51a794;let _0x57ec9d={};const _0x5e8202={},_0x2773ae={'count':0x0,'rows':[]},_0x4d5b3c=_[_0x3941fa('0x1d')](db[_0x3941fa('0x6')]['rawAttributes'],function(_0x291bbd){const _0x289b3c=_0x3941fa;return{'name':_0x291bbd[_0x289b3c('0xd')],'type':_0x291bbd[_0x289b3c('0x28')][_0x289b3c('0x16')]};});_0x5e8202[_0x3941fa('0x2')]=_[_0x3941fa('0x1d')](_0x4d5b3c,_0x3941fa('0x17')),_0x5e8202[_0x3941fa('0x19')]=_['keys'](_0x260883[_0x3941fa('0x19')]),_0x5e8202[_0x3941fa('0x24')]=_[_0x3941fa('0x26')](_0x5e8202[_0x3941fa('0x2')],_0x5e8202[_0x3941fa('0x19')]),_0x57ec9d[_0x3941fa('0x2e')]=_[_0x3941fa('0x26')](_0x5e8202[_0x3941fa('0x2')],qs['fields'](_0x260883[_0x3941fa('0x19')][_0x3941fa('0x23')])),_0x57ec9d['attributes']=_0x57ec9d[_0x3941fa('0x2e')][_0x3941fa('0x12')]?_0x57ec9d[_0x3941fa('0x2e')]:_0x5e8202[_0x3941fa('0x2')];typeof _0x260883[_0x3941fa('0x19')][_0x3941fa('0x22')]===_0x3941fa('0x1b')&&(_0x57ec9d['limit']=qs[_0x3941fa('0x21')](_0x260883['query']['limit']),_0x57ec9d[_0x3941fa('0x36')]=qs[_0x3941fa('0x36')](_0x260883[_0x3941fa('0x19')][_0x3941fa('0x36')]));_0x57ec9d[_0x3941fa('0x31')]=qs[_0x3941fa('0x29')](_0x260883['query'][_0x3941fa('0x29')]),_0x57ec9d[_0x3941fa('0x20')]=qs[_0x3941fa('0x24')](_[_0x3941fa('0x4')](_0x260883[_0x3941fa('0x19')],_0x5e8202['filters']),_0x4d5b3c);_0x260883[_0x3941fa('0x19')]['filter']&&(_0x57ec9d['where']=_[_0x3941fa('0x1')](_0x57ec9d[_0x3941fa('0x20')],{[Op['or']]:_[_0x3941fa('0x1d')](_0x4d5b3c,function(_0x4f1b62){const _0x4f0be2=_0x3941fa;if(_0x4f1b62[_0x4f0be2('0x28')]!==_0x4f0be2('0x1e')){const _0x53e7b6={};return _0x53e7b6[_0x4f1b62[_0x4f0be2('0x17')]]={[Op[_0x4f0be2('0x1c')]]:'%'+_0x260883[_0x4f0be2('0x19')]['filter']+'%'},_0x53e7b6;}})}));_0x57ec9d=_[_0x3941fa('0x1')]({},_0x57ec9d,_0x260883[_0x3941fa('0x32')]);const _0x58bfd8={'where':_0x57ec9d[_0x3941fa('0x20')]};return db[_0x3941fa('0x6')]['count'](_0x58bfd8)[_0x3941fa('0x2f')](function(_0x37f81b){const _0x5179e5=_0x3941fa;return _0x2773ae['count']=_0x37f81b,_0x260883[_0x5179e5('0x19')][_0x5179e5('0x18')]&&(_0x57ec9d[_0x5179e5('0x10')]=[{'all':!![]}]),db[_0x5179e5('0x6')][_0x5179e5('0x37')](_0x57ec9d);})['then'](function(_0x1ca9fe){const _0x1023b4=_0x3941fa;return _0x2773ae[_0x1023b4('0x5')]=_0x1ca9fe,_0x2773ae;})[_0x3941fa('0x2f')](respondWithFilteredResult(_0xbf1d7a,_0x57ec9d))[_0x3941fa('0x35')](handleError(_0xbf1d7a,null));},exports[_0x51a794('0xf')]=function(_0x1d0e6f,_0x43a515){const _0x4b743c=_0x51a794;let _0x52cb83={'raw':!![],'where':{'id':_0x1d0e6f['params']['id']}};const _0x375886={};return _0x375886[_0x4b743c('0x2')]=_[_0x4b743c('0x30')](db[_0x4b743c('0x6')][_0x4b743c('0x33')]),_0x375886[_0x4b743c('0x19')]=_['keys'](_0x1d0e6f[_0x4b743c('0x19')]),_0x375886['filters']=_[_0x4b743c('0x26')](_0x375886[_0x4b743c('0x2')],_0x375886[_0x4b743c('0x19')]),_0x52cb83[_0x4b743c('0x2e')]=_[_0x4b743c('0x26')](_0x375886[_0x4b743c('0x2')],qs['fields'](_0x1d0e6f[_0x4b743c('0x19')][_0x4b743c('0x23')])),_0x52cb83[_0x4b743c('0x2e')]=_0x52cb83[_0x4b743c('0x2e')][_0x4b743c('0x12')]?_0x52cb83[_0x4b743c('0x2e')]:_0x375886[_0x4b743c('0x2')],_0x1d0e6f[_0x4b743c('0x19')]['includeAll']&&(_0x52cb83[_0x4b743c('0x10')]=[{'all':!![]}]),_0x52cb83=_[_0x4b743c('0x1')]({},_0x52cb83,_0x1d0e6f[_0x4b743c('0x32')]),db[_0x4b743c('0x6')][_0x4b743c('0x14')](_0x52cb83)[_0x4b743c('0x2f')](handleEntityNotFound(_0x43a515,null))[_0x4b743c('0x2f')](respondWithResult(_0x43a515,null))[_0x4b743c('0x35')](handleError(_0x43a515,null));},exports[_0x51a794('0x13')]=function(_0x44ec17,_0x139017){const _0x445d65=_0x51a794;return db[_0x445d65('0x6')][_0x445d65('0x13')](_0x44ec17[_0x445d65('0x9')],{})['then'](respondWithResult(_0x139017,0xc9))['catch'](handleError(_0x139017,null));},exports[_0x51a794('0x27')]=function(_0x126e13,_0x294847){const _0x38e2b6=_0x51a794;return _0x126e13[_0x38e2b6('0x9')]['id']&&delete _0x126e13[_0x38e2b6('0x9')]['id'],db['OpenchannelQueueReport']['findOne']({'where':{'id':_0x126e13['params']['id']}})[_0x38e2b6('0x2f')](handleEntityNotFound(_0x294847,null))[_0x38e2b6('0x2f')](saveUpdates(_0x126e13['body'],null))[_0x38e2b6('0x2f')](respondWithResult(_0x294847,null))['catch'](handleError(_0x294847,null));},exports['destroy']=function(_0xca44e6,_0x28fad7){const _0xecdb8=_0x51a794;return db['OpenchannelQueueReport'][_0xecdb8('0x14')]({'where':{'id':_0xca44e6[_0xecdb8('0x0')]['id']}})[_0xecdb8('0x2f')](handleEntityNotFound(_0x28fad7,null))[_0xecdb8('0x2f')](removeEntity(_0x28fad7,null))['catch'](handleError(_0x28fad7,null));},exports[_0x51a794('0x2d')]=function(_0x35ef57,_0x4e135e){const _0x2e07d0=_0x51a794;return db[_0x2e07d0('0x6')][_0x2e07d0('0x2d')]()[_0x2e07d0('0x2f')](respondWithResult(_0x4e135e,null))[_0x2e07d0('0x35')](handleError(_0x4e135e,null));}; \ No newline at end of file +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 diff --git a/server/api/openchannelQueueReport/openchannelQueueReport.model.js b/server/api/openchannelQueueReport/openchannelQueueReport.model.js index ca292c7..f8c6fa6 100644 --- a/server/api/openchannelQueueReport/openchannelQueueReport.model.js +++ b/server/api/openchannelQueueReport/openchannelQueueReport.model.js @@ -1 +1 @@ -const a502_0x285a=['define','./openchannelQueueReport.attributes','uniqueid','report_openchannel_queue','OpenchannelQueueReport'];(function(_0x1bcfd5,_0x285a4b){const _0x48d0ef=function(_0x47008c){while(--_0x47008c){_0x1bcfd5['push'](_0x1bcfd5['shift']());}};_0x48d0ef(++_0x285a4b);}(a502_0x285a,0xe8));const a502_0x48d0=function(_0x1bcfd5,_0x285a4b){_0x1bcfd5=_0x1bcfd5-0x0;let _0x48d0ef=a502_0x285a[_0x1bcfd5];return _0x48d0ef;};const _0x5183d9=a502_0x48d0;'use strict';const attributes=require(_0x5183d9('0x4'));module['exports']=function(_0x47008c){const _0x14eaed=_0x5183d9,_0x977131=_0x47008c[_0x14eaed('0x3')](_0x14eaed('0x2'),attributes,{'tableName':_0x14eaed('0x1'),'paranoid':![],'indexes':[{'name':_0x14eaed('0x0'),'fields':[_0x14eaed('0x0')]}],'timestamps':!![]});return _0x977131;}; \ No newline at end of file +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 diff --git a/server/api/openchannelQueueReport/openchannelQueueReport.rpc.js b/server/api/openchannelQueueReport/openchannelQueueReport.rpc.js index b2ec3eb..9c05913 100644 --- a/server/api/openchannelQueueReport/openchannelQueueReport.rpc.js +++ b/server/api/openchannelQueueReport/openchannelQueueReport.rpc.js @@ -1 +1 @@ -const a503_0x455f=['catch','info','CreateOpenchannelQueueReport','rpc','../../config/logger','OpenchannelQueueReport','body','update','raw','stringify','message','attributes','error','options','then','create','UpdateOpenchannelQueueReport','debug'];(function(_0x2423b3,_0x455ff7){const _0x32e6de=function(_0x493d2a){while(--_0x493d2a){_0x2423b3['push'](_0x2423b3['shift']());}};_0x32e6de(++_0x455ff7);}(a503_0x455f,0x1b9));const a503_0x32e6=function(_0x2423b3,_0x455ff7){_0x2423b3=_0x2423b3-0x0;let _0x32e6de=a503_0x455f[_0x2423b3];return _0x32e6de;};const _0x58631e=a503_0x32e6;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x58631e('0xd'))(_0x58631e('0xc'));exports['CreateOpenchannelQueueReport']=function(_0x493d2a){const _0x2240cd=this;return new Promise(function(_0x21e5ae,_0x55d328){const _0x1175b6=a503_0x32e6;return db[_0x1175b6('0xe')][_0x1175b6('0x6')](_0x493d2a[_0x1175b6('0xf')],{'raw':_0x493d2a['options']?_0x493d2a[_0x1175b6('0x4')][_0x1175b6('0x11')]===undefined?!![]:![]:!![]})[_0x1175b6('0x5')](function(_0x34a0fc){const _0x4a5c0e=_0x1175b6;logger['info']('CreateOpenchannelQueueReport',_0x493d2a),logger[_0x4a5c0e('0x8')](_0x4a5c0e('0xb'),_0x493d2a,JSON[_0x4a5c0e('0x0')](_0x34a0fc)),_0x21e5ae(_0x34a0fc);})[_0x1175b6('0x9')](function(_0x20ec62){const _0x361f03=_0x1175b6;logger[_0x361f03('0x3')](_0x361f03('0xb'),_0x20ec62['message'],_0x493d2a),_0x55d328(_0x2240cd[_0x361f03('0x3')](0x1f4,_0x20ec62['message']));});});},exports['UpdateOpenchannelQueueReport']=function(_0x3883ef){const _0x102d7c=this;return new Promise(function(_0x40c784,_0x216280){const _0x383516=a503_0x32e6;return db[_0x383516('0xe')][_0x383516('0x10')](_0x3883ef[_0x383516('0xf')],{'raw':_0x3883ef['options']?_0x3883ef[_0x383516('0x4')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3883ef['options']?_0x3883ef[_0x383516('0x4')]['where']||null:null,'attributes':_0x3883ef['options']?_0x3883ef[_0x383516('0x4')][_0x383516('0x2')]||null:null,'limit':_0x3883ef[_0x383516('0x4')]?_0x3883ef[_0x383516('0x4')]['limit']||null:null})[_0x383516('0x5')](function(_0x1dd435){const _0x2c2c66=_0x383516;logger[_0x2c2c66('0xa')](_0x2c2c66('0x7'),_0x3883ef),logger[_0x2c2c66('0x8')](_0x2c2c66('0x7'),_0x3883ef,JSON[_0x2c2c66('0x0')](_0x1dd435)),_0x40c784(_0x1dd435);})[_0x383516('0x9')](function(_0x2487c9){const _0x4c3cf8=_0x383516;logger[_0x4c3cf8('0x3')]('UpdateOpenchannelQueueReport',_0x2487c9[_0x4c3cf8('0x1')],_0x3883ef),_0x216280(_0x102d7c[_0x4c3cf8('0x3')](0x1f4,_0x2487c9['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/openchannelTransferReport/index.js b/server/api/openchannelTransferReport/index.js index b5a8d06..4e2787d 100644 --- a/server/api/openchannelTransferReport/index.js +++ b/server/api/openchannelTransferReport/index.js @@ -1 +1 @@ -const a504_0x2153=['describe','exports','index','/:id','post','Router','isAuthenticated','express','get','./openchannelTransferReport.controller','show','../../components/auth/service','create','destroy'];(function(_0x20cfd8,_0x2153b5){const _0x3b881c=function(_0x3ab064){while(--_0x3ab064){_0x20cfd8['push'](_0x20cfd8['shift']());}};_0x3b881c(++_0x2153b5);}(a504_0x2153,0x173));const a504_0x3b88=function(_0x20cfd8,_0x2153b5){_0x20cfd8=_0x20cfd8-0x0;let _0x3b881c=a504_0x2153[_0x20cfd8];return _0x3b881c;};const _0xedb9e9=a504_0x3b88;'use strict';const express=require(_0xedb9e9('0x0')),router=express[_0xedb9e9('0xc')](),auth=require(_0xedb9e9('0x4')),controller=require(_0xedb9e9('0x2'));router[_0xedb9e9('0x1')]('/',auth[_0xedb9e9('0xd')](),controller[_0xedb9e9('0x9')]),router[_0xedb9e9('0x1')]('/describe',auth[_0xedb9e9('0xd')](),controller[_0xedb9e9('0x7')]),router[_0xedb9e9('0x1')](_0xedb9e9('0xa'),auth[_0xedb9e9('0xd')](),controller[_0xedb9e9('0x3')]),router[_0xedb9e9('0xb')]('/',auth[_0xedb9e9('0xd')](),controller[_0xedb9e9('0x5')]),router['put'](_0xedb9e9('0xa'),auth[_0xedb9e9('0xd')](),controller['update']),router['delete']('/:id',auth[_0xedb9e9('0xd')](),controller[_0xedb9e9('0x6')]),module[_0xedb9e9('0x8')]=router; \ No newline at end of file +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 diff --git a/server/api/openchannelTransferReport/openchannelTransferReport.attributes.js b/server/api/openchannelTransferReport/openchannelTransferReport.attributes.js index b7a0116..ba39ee0 100644 --- a/server/api/openchannelTransferReport/openchannelTransferReport.attributes.js +++ b/server/api/openchannelTransferReport/openchannelTransferReport.attributes.js @@ -1 +1 @@ -const a505_0x1c80=['DATE','account','ENUM','exports','queue','sequelize'];(function(_0x57be09,_0x1c80c7){const _0xc280a7=function(_0x4000e8){while(--_0x4000e8){_0x57be09['push'](_0x57be09['shift']());}};_0xc280a7(++_0x1c80c7);}(a505_0x1c80,0x1bb));const a505_0xc280=function(_0x57be09,_0x1c80c7){_0x57be09=_0x57be09-0x0;let _0xc280a7=a505_0x1c80[_0x57be09];return _0xc280a7;};const _0x10a187=a505_0xc280;'use strict';const Sequelize=require(_0x10a187('0x0'));module[_0x10a187('0x4')]={'uniqueid':{'type':Sequelize['STRING'],'allowNull':![]},'type':{'type':Sequelize[_0x10a187('0x3')](_0x10a187('0x2'),'agent',_0x10a187('0x5')),'allowNull':![],'defaultValue':_0x10a187('0x5')},'transferredAt':{'type':Sequelize[_0x10a187('0x1')],'allowNull':![],'defaultValue':Sequelize['NOW']}}; \ No newline at end of file +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 diff --git a/server/api/openchannelTransferReport/openchannelTransferReport.controller.js b/server/api/openchannelTransferReport/openchannelTransferReport.controller.js index b66a217..f38baa5 100644 --- a/server/api/openchannelTransferReport/openchannelTransferReport.controller.js +++ b/server/api/openchannelTransferReport/openchannelTransferReport.controller.js @@ -1 +1 @@ -const a506_0x1831=['count','fieldName','send','stack','type','limit','options','sort','destroy','then','end','model','key','Content-Range','findOne','rows','filters','pick','api','index','body','keys','intersection','includeAll','rawAttributes','map','OpenchannelTransferReport','nolimit','findAll','query','error','merge','../../config/logger','describe','undefined','filter','where','status','length','json','like','name','offset','set','show','lodash','update','fields','create','catch','attributes'];(function(_0x58ac11,_0x18319a){const _0x4d2980=function(_0x1db68e){while(--_0x1db68e){_0x58ac11['push'](_0x58ac11['shift']());}};_0x4d2980(++_0x18319a);}(a506_0x1831,0x136));const a506_0x4d29=function(_0x58ac11,_0x18319a){_0x58ac11=_0x58ac11-0x0;let _0x4d2980=a506_0x1831[_0x58ac11];return _0x4d2980;};const _0x5598ed=a506_0x4d29;'use strict';const _=require(_0x5598ed('0x29')),qs=require('../../components/parsers/qs'),logger=require(_0x5598ed('0x1c'))(_0x5598ed('0xe')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x1db68e,_0x2bd6c7){return _0x2bd6c7=_0x2bd6c7||0xc8,function(_0xa887fb){const _0x161f17=a506_0x4d29;if(_0xa887fb)return _0x1db68e['status'](_0x2bd6c7)[_0x161f17('0x23')](_0xa887fb);};}function respondWithFilteredResult(_0x5b195c,_0x472ea0){return function(_0x393ec5){const _0x367108=a506_0x4d29;if(_0x393ec5){const _0x40e475=_0x393ec5['count'],_0x28ca58=_0x472ea0[_0x367108('0x26')];let _0x40badd=_0x472ea0[_0x367108('0x26')]+_0x472ea0[_0x367108('0x1')],_0x428f6c;return _0x40badd>=_0x40e475?(_0x40badd=_0x40e475,_0x428f6c=0xc8):_0x428f6c=0xce,_0x5b195c[_0x367108('0x21')](_0x428f6c),_0x5b195c[_0x367108('0x27')](_0x367108('0x9'),_0x28ca58+'-'+_0x40badd+'/'+_0x40e475)[_0x367108('0x23')](_0x393ec5);}return null;};}function saveUpdates(_0x1bce52){return function(_0x47da1b){const _0x323e1c=a506_0x4d29;if(_0x47da1b)return _0x47da1b[_0x323e1c('0x2a')](_0x1bce52)[_0x323e1c('0x5')](function(_0x579c52){return _0x579c52;});return null;};}function removeEntity(_0x26650e){return function(_0x6d8c95){const _0x2e99e0=a506_0x4d29;if(_0x6d8c95)return _0x6d8c95[_0x2e99e0('0x4')]()[_0x2e99e0('0x5')](function(){const _0x587c58=_0x2e99e0;_0x26650e[_0x587c58('0x21')](0xcc)[_0x587c58('0x6')]();});};}function handleEntityNotFound(_0x51cbe5){return function(_0x41141b){return!_0x41141b&&_0x51cbe5['sendStatus'](0x194),_0x41141b;};}function handleError(_0x3cd118,_0x3e42f0){return _0x3e42f0=_0x3e42f0||0x1f4,function(_0x2fedf7){const _0x24df2a=a506_0x4d29;logger[_0x24df2a('0x1a')](_0x2fedf7[_0x24df2a('0x32')]),_0x2fedf7[_0x24df2a('0x25')]&&delete _0x2fedf7[_0x24df2a('0x25')],_0x3cd118[_0x24df2a('0x21')](_0x3e42f0)[_0x24df2a('0x31')](_0x2fedf7);};}exports[_0x5598ed('0xf')]=function(_0x24971c,_0x1b8ba8){const _0x1c3611=_0x5598ed;let _0x55226f={};const _0x3c8f8b={},_0x1577f3={'count':0x0,'rows':[]},_0x721c0e=_['map'](db['OpenchannelTransferReport']['rawAttributes'],function(_0x3c9e3b){const _0x2d4567=a506_0x4d29;return{'name':_0x3c9e3b[_0x2d4567('0x30')],'type':_0x3c9e3b['type'][_0x2d4567('0x8')]};});_0x3c8f8b['model']=_[_0x1c3611('0x15')](_0x721c0e,_0x1c3611('0x25')),_0x3c8f8b['query']=_[_0x1c3611('0x11')](_0x24971c[_0x1c3611('0x19')]),_0x3c8f8b['filters']=_[_0x1c3611('0x12')](_0x3c8f8b['model'],_0x3c8f8b[_0x1c3611('0x19')]),_0x55226f['attributes']=_[_0x1c3611('0x12')](_0x3c8f8b[_0x1c3611('0x7')],qs[_0x1c3611('0x2b')](_0x24971c[_0x1c3611('0x19')][_0x1c3611('0x2b')])),_0x55226f[_0x1c3611('0x2e')]=_0x55226f[_0x1c3611('0x2e')][_0x1c3611('0x22')]?_0x55226f['attributes']:_0x3c8f8b[_0x1c3611('0x7')];typeof _0x24971c[_0x1c3611('0x19')][_0x1c3611('0x17')]===_0x1c3611('0x1e')&&(_0x55226f[_0x1c3611('0x1')]=qs[_0x1c3611('0x1')](_0x24971c[_0x1c3611('0x19')][_0x1c3611('0x1')]),_0x55226f['offset']=qs[_0x1c3611('0x26')](_0x24971c[_0x1c3611('0x19')][_0x1c3611('0x26')]));_0x55226f['order']=qs[_0x1c3611('0x3')](_0x24971c[_0x1c3611('0x19')][_0x1c3611('0x3')]),_0x55226f[_0x1c3611('0x20')]=qs[_0x1c3611('0xc')](_[_0x1c3611('0xd')](_0x24971c['query'],_0x3c8f8b[_0x1c3611('0xc')]),_0x721c0e);_0x24971c[_0x1c3611('0x19')][_0x1c3611('0x1f')]&&(_0x55226f[_0x1c3611('0x20')]=_['merge'](_0x55226f[_0x1c3611('0x20')],{[Op['or']]:_['map'](_0x721c0e,function(_0x4dc49f){const _0x3295e6=_0x1c3611;if(_0x4dc49f[_0x3295e6('0x0')]!=='VIRTUAL'){const _0x279a10={};return _0x279a10[_0x4dc49f[_0x3295e6('0x25')]]={[Op[_0x3295e6('0x24')]]:'%'+_0x24971c[_0x3295e6('0x19')][_0x3295e6('0x1f')]+'%'},_0x279a10;}})}));_0x55226f=_[_0x1c3611('0x1b')]({},_0x55226f,_0x24971c['options']);const _0xb12631={'where':_0x55226f[_0x1c3611('0x20')]};return db['OpenchannelTransferReport']['count'](_0xb12631)[_0x1c3611('0x5')](function(_0x38dd9){const _0x1f1f7c=_0x1c3611;return _0x1577f3[_0x1f1f7c('0x2f')]=_0x38dd9,_0x24971c[_0x1f1f7c('0x19')]['includeAll']&&(_0x55226f['include']=[{'all':!![]}]),db[_0x1f1f7c('0x16')][_0x1f1f7c('0x18')](_0x55226f);})['then'](function(_0x4923fd){const _0x3b5690=_0x1c3611;return _0x1577f3[_0x3b5690('0xb')]=_0x4923fd,_0x1577f3;})[_0x1c3611('0x5')](respondWithFilteredResult(_0x1b8ba8,_0x55226f))[_0x1c3611('0x2d')](handleError(_0x1b8ba8,null));},exports[_0x5598ed('0x28')]=function(_0x3ee0f8,_0x52dee5){const _0xcdbd04=_0x5598ed;let _0x40d486={'raw':!![],'where':{'id':_0x3ee0f8['params']['id']}};const _0x386b21={};return _0x386b21[_0xcdbd04('0x7')]=_['keys'](db[_0xcdbd04('0x16')][_0xcdbd04('0x14')]),_0x386b21['query']=_['keys'](_0x3ee0f8['query']),_0x386b21['filters']=_[_0xcdbd04('0x12')](_0x386b21['model'],_0x386b21[_0xcdbd04('0x19')]),_0x40d486[_0xcdbd04('0x2e')]=_['intersection'](_0x386b21[_0xcdbd04('0x7')],qs[_0xcdbd04('0x2b')](_0x3ee0f8[_0xcdbd04('0x19')]['fields'])),_0x40d486[_0xcdbd04('0x2e')]=_0x40d486[_0xcdbd04('0x2e')]['length']?_0x40d486[_0xcdbd04('0x2e')]:_0x386b21[_0xcdbd04('0x7')],_0x3ee0f8[_0xcdbd04('0x19')][_0xcdbd04('0x13')]&&(_0x40d486['include']=[{'all':!![]}]),_0x40d486=_['merge']({},_0x40d486,_0x3ee0f8[_0xcdbd04('0x2')]),db[_0xcdbd04('0x16')][_0xcdbd04('0xa')](_0x40d486)[_0xcdbd04('0x5')](handleEntityNotFound(_0x52dee5,null))['then'](respondWithResult(_0x52dee5,null))['catch'](handleError(_0x52dee5,null));},exports['create']=function(_0x160b76,_0x52087f){const _0x2ff88d=_0x5598ed;return db[_0x2ff88d('0x16')][_0x2ff88d('0x2c')](_0x160b76[_0x2ff88d('0x10')],{})[_0x2ff88d('0x5')](respondWithResult(_0x52087f,0xc9))[_0x2ff88d('0x2d')](handleError(_0x52087f,null));},exports[_0x5598ed('0x2a')]=function(_0x5a7692,_0x5a32c8){const _0x8cac9a=_0x5598ed;return _0x5a7692[_0x8cac9a('0x10')]['id']&&delete _0x5a7692[_0x8cac9a('0x10')]['id'],db[_0x8cac9a('0x16')][_0x8cac9a('0xa')]({'where':{'id':_0x5a7692['params']['id']}})[_0x8cac9a('0x5')](handleEntityNotFound(_0x5a32c8,null))[_0x8cac9a('0x5')](saveUpdates(_0x5a7692[_0x8cac9a('0x10')],null))[_0x8cac9a('0x5')](respondWithResult(_0x5a32c8,null))[_0x8cac9a('0x2d')](handleError(_0x5a32c8,null));},exports[_0x5598ed('0x4')]=function(_0x431cb0,_0x4c9129){const _0x59ad93=_0x5598ed;return db[_0x59ad93('0x16')][_0x59ad93('0xa')]({'where':{'id':_0x431cb0['params']['id']}})[_0x59ad93('0x5')](handleEntityNotFound(_0x4c9129,null))[_0x59ad93('0x5')](removeEntity(_0x4c9129,null))['catch'](handleError(_0x4c9129,null));},exports[_0x5598ed('0x1d')]=function(_0x1dead4,_0x1acf75){const _0x36334e=_0x5598ed;return db[_0x36334e('0x16')]['describe']()[_0x36334e('0x5')](respondWithResult(_0x1acf75,null))['catch'](handleError(_0x1acf75,null));}; \ No newline at end of file +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 diff --git a/server/api/openchannelTransferReport/openchannelTransferReport.model.js b/server/api/openchannelTransferReport/openchannelTransferReport.model.js index 314cf8c..c5d5a61 100644 --- a/server/api/openchannelTransferReport/openchannelTransferReport.model.js +++ b/server/api/openchannelTransferReport/openchannelTransferReport.model.js @@ -1 +1 @@ -const a507_0x5287=['uniqueid','./openchannelTransferReport.attributes','report_openchannel_transfer','OpenchannelTransferReport','exports','define'];(function(_0x196fc9,_0x5287a9){const _0x27d2c9=function(_0x305f60){while(--_0x305f60){_0x196fc9['push'](_0x196fc9['shift']());}};_0x27d2c9(++_0x5287a9);}(a507_0x5287,0xde));const a507_0x27d2=function(_0x196fc9,_0x5287a9){_0x196fc9=_0x196fc9-0x0;let _0x27d2c9=a507_0x5287[_0x196fc9];return _0x27d2c9;};const _0x3049c6=a507_0x27d2;'use strict';const attributes=require(_0x3049c6('0x1'));module[_0x3049c6('0x4')]=function(_0x305f60){const _0xee1f53=_0x3049c6,_0x4c675f=_0x305f60[_0xee1f53('0x5')](_0xee1f53('0x3'),attributes,{'tableName':_0xee1f53('0x2'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0xee1f53('0x0')]}],'timestamps':!![]});return _0x4c675f;}; \ No newline at end of file +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 diff --git a/server/api/pause/index.js b/server/api/pause/index.js index e3b62ad..810d1c0 100644 --- a/server/api/pause/index.js +++ b/server/api/pause/index.js @@ -1 +1 @@ -const a508_0x40bd=['update','isAuthenticated','index','delete','put','exports','./pause.controller','destroy','get','post','/:id','create'];(function(_0x580b6b,_0x40bd23){const _0x451eaf=function(_0x4cf37d){while(--_0x4cf37d){_0x580b6b['push'](_0x580b6b['shift']());}};_0x451eaf(++_0x40bd23);}(a508_0x40bd,0x1a2));const a508_0x451e=function(_0x580b6b,_0x40bd23){_0x580b6b=_0x580b6b-0x0;let _0x451eaf=a508_0x40bd[_0x580b6b];return _0x451eaf;};const _0x5a9787=a508_0x451e;'use strict';const express=require('express'),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x5a9787('0x8'));router[_0x5a9787('0xa')]('/',auth[_0x5a9787('0x3')](),controller[_0x5a9787('0x4')]),router[_0x5a9787('0xa')]('/:id',auth[_0x5a9787('0x3')](),controller['show']),router[_0x5a9787('0xb')]('/',auth['isAuthenticated'](),controller[_0x5a9787('0x1')]),router[_0x5a9787('0x6')](_0x5a9787('0x0'),auth[_0x5a9787('0x3')](),controller[_0x5a9787('0x2')]),router[_0x5a9787('0x5')](_0x5a9787('0x0'),auth[_0x5a9787('0x3')](),controller[_0x5a9787('0x9')]),module[_0x5a9787('0x7')]=router; \ No newline at end of file +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 diff --git a/server/api/pause/pause.attributes.js b/server/api/pause/pause.attributes.js index 53bc4cf..4cf95ad 100644 --- a/server/api/pause/pause.attributes.js +++ b/server/api/pause/pause.attributes.js @@ -1 +1 @@ -const a509_0xe377=['exports','name','STRING'];(function(_0x3d5206,_0xe377ea){const _0x25deee=function(_0x59efeb){while(--_0x59efeb){_0x3d5206['push'](_0x3d5206['shift']());}};_0x25deee(++_0xe377ea);}(a509_0xe377,0x102));const a509_0x25de=function(_0x3d5206,_0xe377ea){_0x3d5206=_0x3d5206-0x0;let _0x25deee=a509_0xe377[_0x3d5206];return _0x25deee;};const _0x5150e9=a509_0x25de;'use strict';const Sequelize=require('sequelize');module[_0x5150e9('0x0')]={'name':{'type':Sequelize[_0x5150e9('0x2')],'unique':_0x5150e9('0x1'),'allowNull':![]},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +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 diff --git a/server/api/pause/pause.controller.js b/server/api/pause/pause.controller.js index 4af0fc2..1557a82 100644 --- a/server/api/pause/pause.controller.js +++ b/server/api/pause/pause.controller.js @@ -1 +1 @@ -const a510_0x3a1f=['UserProfileSection','api','pick','../../components/parsers/qs','index','fields','filter','Content-Range','rows','name','query','error','get','../../mysqldb','send','create','params','order','where','sendStatus','findAll','then','nolimit','show','end','status','autoAssociation','count','stack','userProfileId','include','sequelize','length','type','catch','intersection','lodash','user','map','Pause','options','body','includeAll','destroy','key','filters','sort','role','UserProfileResource','model','VIRTUAL','fieldName','offset','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','limit','findOne','attributes','like','update','rawAttributes','undefined','Unable\x20to\x20retrieve\x20the\x20current\x20user','merge','Pauses','keys'];(function(_0x211550,_0x3a1fe1){const _0x3b7900=function(_0x3c3e97){while(--_0x3c3e97){_0x211550['push'](_0x211550['shift']());}};_0x3b7900(++_0x3a1fe1);}(a510_0x3a1f,0x17d));const a510_0x3b79=function(_0x211550,_0x3a1fe1){_0x211550=_0x211550-0x0;let _0x3b7900=a510_0x3a1f[_0x211550];return _0x3b7900;};const _0x531050=a510_0x3b79;'use strict';const _=require(_0x531050('0x2d')),qs=require(_0x531050('0xc')),logger=require('../../config/logger')(_0x531050('0xa')),db=require(_0x531050('0x16'))['db'],{Op}=require(_0x531050('0x28'));function respondWithResult(_0x3c3e97,_0x354b9e){return _0x354b9e=_0x354b9e||0xc8,function(_0x503fbf){const _0x4e2420=a510_0x3b79;if(_0x503fbf)return _0x3c3e97[_0x4e2420('0x22')](_0x354b9e)['json'](_0x503fbf);};}function respondWithFilteredResult(_0x35ba63,_0xe69ac9){return function(_0x168670){const _0xf37234=a510_0x3b79;if(_0x168670){const _0x30764b=_0x168670[_0xf37234('0x24')],_0x3e1241=_0xe69ac9['offset'];let _0x526a26=_0xe69ac9[_0xf37234('0x3d')]+_0xe69ac9['limit'],_0x3bf653;return _0x526a26>=_0x30764b?(_0x526a26=_0x30764b,_0x3bf653=0xc8):_0x3bf653=0xce,_0x35ba63[_0xf37234('0x22')](_0x3bf653),_0x35ba63['set'](_0xf37234('0x10'),_0x3e1241+'-'+_0x526a26+'/'+_0x30764b)['json'](_0x168670);}return null;};}function saveUpdates(_0xa09258){return function(_0x3de06d){const _0x90d5b5=a510_0x3b79;if(_0x3de06d)return _0x3de06d[_0x90d5b5('0x2')](_0xa09258)['then'](function(_0xa33870){return _0xa33870;});return null;};}function removeEntity(_0x4a549d){return function(_0x4c8316){const _0x2e29d5=a510_0x3b79;if(_0x4c8316)return _0x4c8316[_0x2e29d5('0x34')]()[_0x2e29d5('0x1e')](function(){const _0x4130e4=_0x2e29d5,_0x51ea73=_0x4c8316[_0x4130e4('0x15')]({'plain':!![]}),_0x410a41=_0x4130e4('0x7');return db[_0x4130e4('0x39')][_0x4130e4('0x34')]({'where':{'type':_0x410a41,'resourceId':_0x51ea73['id']}})[_0x4130e4('0x1e')](function(){return _0x4c8316;});})['then'](function(){const _0x3bb2aa=_0x2e29d5;_0x4a549d[_0x3bb2aa('0x22')](0xcc)[_0x3bb2aa('0x21')]();});};}function handleEntityNotFound(_0x19168b){return function(_0x13910d){const _0x1ecad6=a510_0x3b79;return!_0x13910d&&_0x19168b[_0x1ecad6('0x1c')](0x194),_0x13910d;};}function handleError(_0x26ed2f,_0x4e83a6){return _0x4e83a6=_0x4e83a6||0x1f4,function(_0x29e614){const _0x4e11b0=a510_0x3b79;logger[_0x4e11b0('0x14')](_0x29e614[_0x4e11b0('0x25')]),_0x29e614[_0x4e11b0('0x12')]&&delete _0x29e614[_0x4e11b0('0x12')],_0x26ed2f['status'](_0x4e83a6)[_0x4e11b0('0x17')](_0x29e614);};}exports[_0x531050('0xd')]=function(_0x3a0d8c,_0xe2e9bc){const _0x1a8b80=_0x531050;let _0x522cbe={};const _0x48eff6={},_0x50f1db={'count':0x0,'rows':[]},_0x4fff84=_[_0x1a8b80('0x2f')](db[_0x1a8b80('0x30')][_0x1a8b80('0x3')],function(_0x4ab800){const _0x123123=_0x1a8b80;return{'name':_0x4ab800[_0x123123('0x3c')],'type':_0x4ab800[_0x123123('0x2a')][_0x123123('0x35')]};});_0x48eff6['model']=_['map'](_0x4fff84,'name'),_0x48eff6['query']=_[_0x1a8b80('0x8')](_0x3a0d8c[_0x1a8b80('0x13')]),_0x48eff6['filters']=_[_0x1a8b80('0x2c')](_0x48eff6[_0x1a8b80('0x3a')],_0x48eff6[_0x1a8b80('0x13')]),_0x522cbe[_0x1a8b80('0x0')]=_[_0x1a8b80('0x2c')](_0x48eff6['model'],qs[_0x1a8b80('0xe')](_0x3a0d8c['query'][_0x1a8b80('0xe')])),_0x522cbe[_0x1a8b80('0x0')]=_0x522cbe[_0x1a8b80('0x0')][_0x1a8b80('0x29')]?_0x522cbe[_0x1a8b80('0x0')]:_0x48eff6[_0x1a8b80('0x3a')];typeof _0x3a0d8c[_0x1a8b80('0x13')][_0x1a8b80('0x1f')]===_0x1a8b80('0x4')&&(_0x522cbe[_0x1a8b80('0x3f')]=qs['limit'](_0x3a0d8c[_0x1a8b80('0x13')][_0x1a8b80('0x3f')]),_0x522cbe[_0x1a8b80('0x3d')]=qs[_0x1a8b80('0x3d')](_0x3a0d8c[_0x1a8b80('0x13')][_0x1a8b80('0x3d')]));_0x522cbe[_0x1a8b80('0x1a')]=qs['sort'](_0x3a0d8c[_0x1a8b80('0x13')][_0x1a8b80('0x37')]),_0x522cbe[_0x1a8b80('0x1b')]=qs[_0x1a8b80('0x36')](_[_0x1a8b80('0xb')](_0x3a0d8c[_0x1a8b80('0x13')],_0x48eff6['filters']),_0x4fff84);_0x3a0d8c[_0x1a8b80('0x13')]['filter']&&(_0x522cbe[_0x1a8b80('0x1b')]=_[_0x1a8b80('0x6')](_0x522cbe[_0x1a8b80('0x1b')],{[Op['or']]:_['map'](_0x4fff84,function(_0xede440){const _0x1562a1=_0x1a8b80;if(_0xede440[_0x1562a1('0x2a')]!==_0x1562a1('0x3b')){const _0x423f5f={};return _0x423f5f[_0xede440[_0x1562a1('0x12')]]={[Op[_0x1562a1('0x1')]]:'%'+_0x3a0d8c[_0x1562a1('0x13')][_0x1562a1('0xf')]+'%'},_0x423f5f;}})}));_0x522cbe=_[_0x1a8b80('0x6')]({},_0x522cbe,_0x3a0d8c[_0x1a8b80('0x31')]);const _0x381ca1={'where':_0x522cbe[_0x1a8b80('0x1b')]};return db[_0x1a8b80('0x30')][_0x1a8b80('0x24')](_0x381ca1)['then'](function(_0x34141f){const _0x5afacc=_0x1a8b80;return _0x50f1db[_0x5afacc('0x24')]=_0x34141f,_0x3a0d8c[_0x5afacc('0x13')]['includeAll']&&(_0x522cbe[_0x5afacc('0x27')]=[{'all':!![]}]),db[_0x5afacc('0x30')][_0x5afacc('0x1d')](_0x522cbe);})[_0x1a8b80('0x1e')](function(_0x18325e){const _0x4d457d=_0x1a8b80;return _0x50f1db[_0x4d457d('0x11')]=_0x18325e,_0x50f1db;})[_0x1a8b80('0x1e')](respondWithFilteredResult(_0xe2e9bc,_0x522cbe))[_0x1a8b80('0x2b')](handleError(_0xe2e9bc,null));},exports[_0x531050('0x20')]=function(_0x503006,_0x46293a){const _0x1b3ccc=_0x531050;let _0x2c4f41={'raw':!![],'where':{'id':_0x503006[_0x1b3ccc('0x19')]['id']}};const _0x4a094b={};return _0x4a094b['model']=_[_0x1b3ccc('0x8')](db[_0x1b3ccc('0x30')][_0x1b3ccc('0x3')]),_0x4a094b[_0x1b3ccc('0x13')]=_['keys'](_0x503006[_0x1b3ccc('0x13')]),_0x4a094b[_0x1b3ccc('0x36')]=_[_0x1b3ccc('0x2c')](_0x4a094b['model'],_0x4a094b[_0x1b3ccc('0x13')]),_0x2c4f41[_0x1b3ccc('0x0')]=_['intersection'](_0x4a094b[_0x1b3ccc('0x3a')],qs[_0x1b3ccc('0xe')](_0x503006['query']['fields'])),_0x2c4f41[_0x1b3ccc('0x0')]=_0x2c4f41[_0x1b3ccc('0x0')][_0x1b3ccc('0x29')]?_0x2c4f41['attributes']:_0x4a094b[_0x1b3ccc('0x3a')],_0x503006[_0x1b3ccc('0x13')][_0x1b3ccc('0x33')]&&(_0x2c4f41[_0x1b3ccc('0x27')]=[{'all':!![]}]),_0x2c4f41=_['merge']({},_0x2c4f41,_0x503006[_0x1b3ccc('0x31')]),db[_0x1b3ccc('0x30')][_0x1b3ccc('0x40')](_0x2c4f41)[_0x1b3ccc('0x1e')](handleEntityNotFound(_0x46293a,null))[_0x1b3ccc('0x1e')](respondWithResult(_0x46293a,null))[_0x1b3ccc('0x2b')](handleError(_0x46293a,null));},exports[_0x531050('0x18')]=function(_0x2872a4,_0x4e26d6){const _0x236421=_0x531050;return db[_0x236421('0x30')][_0x236421('0x18')](_0x2872a4[_0x236421('0x32')],{})[_0x236421('0x1e')](function(_0x4c339b){const _0x113752=_0x236421,_0x32bc99=_0x2872a4[_0x113752('0x2e')][_0x113752('0x15')]({'plain':!![]});if(!_0x32bc99)throw new Error(_0x113752('0x5'));if(_0x32bc99[_0x113752('0x38')]===_0x113752('0x2e')){const _0x17dd85=_0x4c339b[_0x113752('0x15')]({'plain':!![]}),_0x210fa4=_0x113752('0x7');return db[_0x113752('0x9')]['findOne']({'where':{'name':_0x210fa4,'userProfileId':_0x32bc99[_0x113752('0x26')]},'raw':!![]})[_0x113752('0x1e')](function(_0x4a6f08){const _0x5405a2=_0x113752;return _0x4a6f08&&_0x4a6f08[_0x5405a2('0x23')]===0x0?db[_0x5405a2('0x39')][_0x5405a2('0x18')]({'name':_0x17dd85[_0x5405a2('0x12')],'resourceId':_0x17dd85['id'],'type':_0x4a6f08[_0x5405a2('0x12')],'sectionId':_0x4a6f08['id']},{})[_0x5405a2('0x1e')](function(){return _0x4c339b;}):_0x4c339b;})[_0x113752('0x2b')](function(_0x4bf41a){const _0x2952b2=_0x113752;logger[_0x2952b2('0x14')](_0x2952b2('0x3e'),_0x4bf41a);throw _0x4bf41a;});}return _0x4c339b;})[_0x236421('0x1e')](respondWithResult(_0x4e26d6,0xc9))[_0x236421('0x2b')](handleError(_0x4e26d6,null));},exports[_0x531050('0x2')]=function(_0x4161fa,_0xf35397){const _0x4610d7=_0x531050;return _0x4161fa[_0x4610d7('0x32')]['id']&&delete _0x4161fa[_0x4610d7('0x32')]['id'],db[_0x4610d7('0x30')]['findOne']({'where':{'id':_0x4161fa[_0x4610d7('0x19')]['id']}})[_0x4610d7('0x1e')](handleEntityNotFound(_0xf35397,null))[_0x4610d7('0x1e')](saveUpdates(_0x4161fa[_0x4610d7('0x32')],null))[_0x4610d7('0x1e')](respondWithResult(_0xf35397,null))['catch'](handleError(_0xf35397,null));},exports[_0x531050('0x34')]=function(_0x23956c,_0x436bb8){const _0x4b4627=_0x531050;return db[_0x4b4627('0x30')][_0x4b4627('0x40')]({'where':{'id':_0x23956c[_0x4b4627('0x19')]['id']}})['then'](handleEntityNotFound(_0x436bb8,null))['then'](removeEntity(_0x436bb8,null))[_0x4b4627('0x2b')](handleError(_0x436bb8,null));}; \ No newline at end of file +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 diff --git a/server/api/pause/pause.model.js b/server/api/pause/pause.model.js index e5628fd..ebe2dd0 100644 --- a/server/api/pause/pause.model.js +++ b/server/api/pause/pause.model.js @@ -1 +1 @@ -const a511_0x58b2=['tools_pauses','./pause.attributes'];(function(_0x210f67,_0x58b205){const _0x3d4a46=function(_0xe2d42){while(--_0xe2d42){_0x210f67['push'](_0x210f67['shift']());}};_0x3d4a46(++_0x58b205);}(a511_0x58b2,0xbf));const a511_0x3d4a=function(_0x210f67,_0x58b205){_0x210f67=_0x210f67-0x0;let _0x3d4a46=a511_0x58b2[_0x210f67];return _0x3d4a46;};const _0x9641c9=a511_0x3d4a;'use strict';const attributes=require(_0x9641c9('0x0'));module['exports']=function(_0xe2d42){const _0x55187e=_0x9641c9,_0x1a0456=_0xe2d42['define']('Pause',attributes,{'tableName':_0x55187e('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1a0456;}; \ No newline at end of file +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 diff --git a/server/api/pause/pause.rpc.js b/server/api/pause/pause.rpc.js index 943bc4b..ba91f16 100644 --- a/server/api/pause/pause.rpc.js +++ b/server/api/pause/pause.rpc.js @@ -1 +1 @@ -const a512_0x7bc6=['model','rpc','then','lodash','error','../../config/logger','map','message','raw','catch','../../mysqldb','ShowPause','Pause','attributes','where','options','include'];(function(_0x577868,_0x7bc665){const _0x37e46e=function(_0x253a53){while(--_0x253a53){_0x577868['push'](_0x577868['shift']());}};_0x37e46e(++_0x7bc665);}(a512_0x7bc6,0x1c1));const a512_0x37e4=function(_0x577868,_0x7bc665){_0x577868=_0x577868-0x0;let _0x37e46e=a512_0x7bc6[_0x577868];return _0x37e46e;};const _0x486712=a512_0x37e4;'use strict';const db=require(_0x486712('0x3'))['db'],logger=require(_0x486712('0xf'))(_0x486712('0xb')),_=require(_0x486712('0xd'));exports[_0x486712('0x4')]=function(_0x253a53){const _0x529ea6=this;return new Promise(function(_0x3fd9b6,_0x447487){const _0x1194a6=a512_0x37e4;return db[_0x1194a6('0x5')]['findOne']({'raw':_0x253a53[_0x1194a6('0x8')]?_0x253a53[_0x1194a6('0x8')][_0x1194a6('0x1')]===undefined?!![]:![]:!![],'where':_0x253a53['options']?_0x253a53[_0x1194a6('0x8')][_0x1194a6('0x7')]||null:null,'attributes':_0x253a53[_0x1194a6('0x8')]?_0x253a53['options'][_0x1194a6('0x6')]||null:null,'include':_0x253a53[_0x1194a6('0x8')]?_0x253a53[_0x1194a6('0x8')][_0x1194a6('0x9')]?_[_0x1194a6('0x10')](_0x253a53[_0x1194a6('0x8')][_0x1194a6('0x9')],function(_0x513184){const _0x5a7f68=_0x1194a6;return{'model':db[_0x513184[_0x5a7f68('0xa')]],'as':_0x513184['as'],'attributes':_0x513184[_0x5a7f68('0x6')],'include':_0x513184['include']?_[_0x5a7f68('0x10')](_0x513184[_0x5a7f68('0x9')],function(_0x1ded41){const _0x2573d7=_0x5a7f68;return{'model':db[_0x1ded41[_0x2573d7('0xa')]],'as':_0x1ded41['as'],'attributes':_0x1ded41['attributes'],'include':_0x1ded41['include']?_[_0x2573d7('0x10')](_0x1ded41[_0x2573d7('0x9')],function(_0x410e48){const _0x25fef7=_0x2573d7;return{'model':db[_0x410e48[_0x25fef7('0xa')]],'as':_0x410e48['as'],'attributes':_0x410e48['attributes']};}):[]};}):[]};}):[]:[]})[_0x1194a6('0xc')](function(_0x52faf5){const _0x18c3eb=_0x1194a6;logger['info'](_0x18c3eb('0x4'),_0x253a53),logger['debug'](_0x18c3eb('0x4'),_0x253a53,JSON['stringify'](_0x52faf5)),_0x3fd9b6(_0x52faf5);})[_0x1194a6('0x2')](function(_0x19f23d){const _0x3e2cfc=_0x1194a6;logger[_0x3e2cfc('0xe')]('ShowPause',_0x19f23d[_0x3e2cfc('0x0')],_0x253a53),_0x447487(_0x529ea6[_0x3e2cfc('0xe')](0x1f4,_0x19f23d['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/plugin/index.js b/server/api/plugin/index.js index 335d6f2..9978fe1 100644 --- a/server/api/plugin/index.js +++ b/server/api/plugin/index.js @@ -1 +1 @@ -const a513_0x59ac=['/webhook','%s-%s%s','util','multer','delete','webhookPost','extname','Router','format','server/files/plugins','download','update','show','now','post','isAuthenticated','get','upload','./plugin.controller','originalname','replace','diskStorage','webhookGet','index','exports','path','file','put','/:id','basename'];(function(_0x2fdda4,_0x59acda){const _0x2083f9=function(_0x1bb9d8){while(--_0x1bb9d8){_0x2fdda4['push'](_0x2fdda4['shift']());}};_0x2083f9(++_0x59acda);}(a513_0x59ac,0x1f3));const a513_0x2083=function(_0x2fdda4,_0x59acda){_0x2fdda4=_0x2fdda4-0x0;let _0x2083f9=a513_0x59ac[_0x2fdda4];return _0x2083f9;};const _0x494d65=a513_0x2083;'use strict';const multer=require(_0x494d65('0xe')),util=require(_0x494d65('0xd')),path=require(_0x494d65('0x6')),express=require('express'),router=express[_0x494d65('0x12')](),auth=require('../../components/auth/service'),config=require('../../config/environment'),controller=require(_0x494d65('0x1d'));router[_0x494d65('0x1b')]('/',auth[_0x494d65('0x1a')](),controller[_0x494d65('0x4')]),router[_0x494d65('0x1b')](_0x494d65('0xb'),controller[_0x494d65('0x3')]),router[_0x494d65('0x1b')](_0x494d65('0x9'),auth[_0x494d65('0x1a')](),controller[_0x494d65('0x17')]),router[_0x494d65('0x1b')]('/:id/download',auth[_0x494d65('0x1a')](),controller[_0x494d65('0x15')]);const upload=multer({'storage':multer[_0x494d65('0x2')]({'destination':function(_0x1bb9d8,_0x353648,_0x11ef3d){const _0x56344b=_0x494d65;_0x11ef3d(null,path['join'](config['root'],_0x56344b('0x14')));},'filename':function(_0x54b38f,_0x12e86c,_0x520a12){const _0x258ca4=_0x494d65;_0x12e86c['originalname']=_0x12e86c[_0x258ca4('0x0')][_0x258ca4('0x1')](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-'),_0x520a12(null,util[_0x258ca4('0x13')](_0x258ca4('0xc'),path[_0x258ca4('0xa')](_0x12e86c[_0x258ca4('0x0')],path[_0x258ca4('0x11')](_0x12e86c[_0x258ca4('0x0')])),Date[_0x258ca4('0x18')](),path[_0x258ca4('0x11')](_0x12e86c[_0x258ca4('0x0')])));}})});router[_0x494d65('0x19')]('/',upload['single'](_0x494d65('0x7')),controller[_0x494d65('0x1c')]),router[_0x494d65('0x19')](_0x494d65('0xb'),controller[_0x494d65('0x10')]),router[_0x494d65('0x8')]('/:id',auth['isAuthenticated'](),controller[_0x494d65('0x16')]),router[_0x494d65('0xf')](_0x494d65('0x9'),auth[_0x494d65('0x1a')](),controller[_0x494d65('0xf')]),module[_0x494d65('0x5')]=router; \ No newline at end of file +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 diff --git a/server/api/plugin/plugin.attributes.js b/server/api/plugin/plugin.attributes.js index 7cef490..1c96f74 100644 --- a/server/api/plugin/plugin.attributes.js +++ b/server/api/plugin/plugin.attributes.js @@ -1 +1 @@ -const a514_0x22b3=['adminOnly','html','always','agentOnly','script','TEXT','ENUM','Indicates\x20whether\x20to\x20display\x20the\x20plugin\x20in\x20the\x20sidebar.','The\x20physical\x20path\x20where\x20the\x20plugin\x20is\x20stored.','never','STRING','sequelize','Indicates\x20whether\x20the\x20plugin\x20is\x20installed.\x20Updated\x20when\x20the\x20plugin\x20is\x20installed/uninstalled.'];(function(_0xa3216,_0x22b357){const _0x1e00d0=function(_0x148896){while(--_0x148896){_0xa3216['push'](_0xa3216['shift']());}};_0x1e00d0(++_0x22b357);}(a514_0x22b3,0x146));const a514_0x1e00=function(_0xa3216,_0x22b357){_0xa3216=_0xa3216-0x0;let _0x1e00d0=a514_0x22b3[_0xa3216];return _0x1e00d0;};const _0x3bf18e=a514_0x1e00;'use strict';const Sequelize=require(_0x3bf18e('0xa'));module['exports']={'name':{'type':Sequelize[_0x3bf18e('0x9')]},'type':{'type':Sequelize['ENUM'](_0x3bf18e('0x0'),_0x3bf18e('0x3'))},'description':{'type':Sequelize[_0x3bf18e('0x4')]},'version':{'type':Sequelize[_0x3bf18e('0x4')]},'path':{'type':Sequelize[_0x3bf18e('0x9')],'comment':_0x3bf18e('0x7')},'active':{'type':Sequelize['BOOLEAN'],'defaultValue':0x0,'comment':_0x3bf18e('0xb')},'sidebar':{'type':Sequelize[_0x3bf18e('0x5')](_0x3bf18e('0xc'),_0x3bf18e('0x2'),_0x3bf18e('0x1'),_0x3bf18e('0x8')),'defaultValue':_0x3bf18e('0x1'),'comment':_0x3bf18e('0x6')},'icon':{'type':Sequelize[_0x3bf18e('0x9')]},'adminUrl':{'type':Sequelize['STRING']},'agentUrl':{'type':Sequelize[_0x3bf18e('0x9')]},'scriptName':{'type':Sequelize[_0x3bf18e('0x9')]},'scriptPath':{'type':Sequelize[_0x3bf18e('0x9')]}}; \ No newline at end of file +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 diff --git a/server/api/plugin/plugin.controller.js b/server/api/plugin/plugin.controller.js index 1b5f58f..223d9ca 100644 --- a/server/api/plugin/plugin.controller.js +++ b/server/api/plugin/plugin.controller.js @@ -1 +1 @@ -const a515_0x2a96=['unlinkSync','destroy','../../mysqldb','Warning:\x20agent\x20view\x20not\x20specified','length','headers','json','includeAll','Plugin','root','nolimit','plugins','body','Invalid\x20manifest:\x20name\x20missing','server/files/plugins','count','chmodSync','attributes','glob','limit','test','lodash','order','endsWith','Unable\x20to\x20retrieve\x20the\x20current\x20user','show','readdirSync','icon','archiver','status','admin','autoAssociation','%s.zip','map','node_modules/**/*','file','then','Sequelize','../../config/environment','icon-apps','pipe','webhookPost','sidebar','merge','Invalid\x20manifest:\x20views\x20missing','options','userProfileId','isFile','download','undefined','resolve','sendStatus','model','info','VIRTUAL','findOne','sequelize','update','parse','Invalid\x20manifest:\x20type\x20missing','code','some','../../rediscache','upload','existsSync','keys','always','scriptName','Plugins','Plugin\x20not\x20found','0777','../../config/logger','params','script','name','where','Invalid\x20manifest:\x20script\x20path\x20missing','user','send','html','http://localhost:','parameters','sort','ENOENT','**/*','scriptPath','version','like','manifest.json','lstatSync','\x27PORT\x27\x20parameter\x20not\x20specified','\x27PATH\x27\x20parameter\x20not\x20specified','rows','content-type','set','create','offset','Plugin\x20upload\x20destination:\x20%s','end','type','./plugin.socket','path','api','webhookGet','include','stack','content-length','fields','views','filename','Invalid\x20manifest:\x20script\x20name\x20missing','../../components/parsers/qs','query','get','rimraf','encoding','Error\x20while\x20generating\x20the\x20zip\x20archive','method','Download\x20completed','Invalid\x20manifest:\x20invalid\x20type','readFileSync','Extracted\x20folder\x20removed','basename','createWriteStream','rawAttributes','Invalid\x20manifest:\x20parameters\x20missing','description','isDirectory','filter','Invalid\x20manifest:\x20no\x20view\x20specified','join','index','hostname','catch','delete','zip','pick','filters','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','error','Error','warning','port','Content-Range','UserProfileSection','intersection','Invalid\x20plugin\x20structure','Zip\x20archive\x20removed','agent','Temporary\x20file\x20removed','format'];(function(_0x502d69,_0x2a96f3){const _0x879bb4=function(_0x57c707){while(--_0x57c707){_0x502d69['push'](_0x502d69['shift']());}};_0x879bb4(++_0x2a96f3);}(a515_0x2a96,0xa0));const a515_0x879b=function(_0x502d69,_0x2a96f3){_0x502d69=_0x502d69-0x0;let _0x879bb4=a515_0x2a96[_0x502d69];return _0x879bb4;};const _0x2d3838=a515_0x879b;'use strict';const rp=require('request-promise-native'),util=require('util'),path=require(_0x2d3838('0x5c')),fs=require('fs'),_=require(_0x2d3838('0xc')),extract=require('extract-zip'),rimraf=require(_0x2d3838('0x69')),archiver=require(_0x2d3838('0x13')),{getSocket}=require(_0x2d3838('0x35')),socket=getSocket(),qs=require(_0x2d3838('0x66')),logger=require(_0x2d3838('0x3e'))(_0x2d3838('0x5d')),config=require(_0x2d3838('0x1d')),db=require(_0x2d3838('0x90'))['db'],{Op}=require(_0x2d3838('0x2f'));require(_0x2d3838('0x5b'))['register'](socket);function respondWithStatusCode(_0x57c707,_0x49b1c9){return _0x49b1c9=_0x49b1c9||0xcc,function(_0x4f04b4){const _0x57c3bb=a515_0x879b;if(_0x4f04b4)return _0x57c707[_0x57c3bb('0x2a')](_0x49b1c9);return _0x57c707[_0x57c3bb('0x14')](_0x49b1c9)[_0x57c3bb('0x59')]();};}function respondWithResult(_0x1e6b02,_0x462be8){return _0x462be8=_0x462be8||0xc8,function(_0x2fc94d){const _0x5a6e0b=a515_0x879b;if(_0x2fc94d)return _0x1e6b02['status'](_0x462be8)[_0x5a6e0b('0x94')](_0x2fc94d);};}function respondWithFilteredResult(_0x23e362,_0x33fd32){return function(_0x548f1e){const _0x4a835b=a515_0x879b;if(_0x548f1e){const _0x5970ad=_0x548f1e[_0x4a835b('0x6')],_0x441c18=_0x33fd32['offset'];let _0x2e2b38=_0x33fd32['offset']+_0x33fd32[_0x4a835b('0xa')],_0x5a16aa;return _0x2e2b38>=_0x5970ad?(_0x2e2b38=_0x5970ad,_0x5a16aa=0xc8):_0x5a16aa=0xce,_0x23e362[_0x4a835b('0x14')](_0x5a16aa),_0x23e362['set'](_0x4a835b('0x86'),_0x441c18+'-'+_0x2e2b38+'/'+_0x5970ad)[_0x4a835b('0x94')](_0x548f1e);}return null;};}function saveUpdates(_0x98cdb0){return function(_0x4277cc){const _0x136769=a515_0x879b;if(_0x4277cc)return _0x4277cc[_0x136769('0x30')](_0x98cdb0)['then'](function(_0xb1a505){return _0xb1a505;});return null;};}function handleEntityNotFound(_0x3e2744){return function(_0x51a4d7){const _0x5d6cc9=a515_0x879b;return!_0x51a4d7&&_0x3e2744[_0x5d6cc9('0x2a')](0x194),_0x51a4d7;};}function handleError(_0xf18f53,_0x4169d6){return _0x4169d6=_0x4169d6||0x1f4,function(_0x17a9da){const _0x587923=a515_0x879b;logger['error'](_0x17a9da[_0x587923('0x60')]),_0x17a9da[_0x587923('0x41')]&&delete _0x17a9da['name'],_0xf18f53[_0x587923('0x14')](_0x4169d6)['send'](_0x17a9da);};}exports[_0x2d3838('0x7a')]=function(_0xf3460b,_0x479774){const _0x9d4f1e=_0x2d3838;let _0x505c22={};const _0x93193e={},_0x147c24={'count':0x0,'rows':[]},_0x8a5cf7=_[_0x9d4f1e('0x18')](db[_0x9d4f1e('0x96')][_0x9d4f1e('0x73')],function(_0x5cac55){return{'name':_0x5cac55['fieldName'],'type':_0x5cac55['type']['key']};});_0x93193e[_0x9d4f1e('0x2b')]=_[_0x9d4f1e('0x18')](_0x8a5cf7,_0x9d4f1e('0x41')),_0x93193e[_0x9d4f1e('0x67')]=_[_0x9d4f1e('0x38')](_0xf3460b[_0x9d4f1e('0x67')]),_0x93193e['filters']=_[_0x9d4f1e('0x88')](_0x93193e[_0x9d4f1e('0x2b')],_0x93193e['query']),_0x505c22[_0x9d4f1e('0x8')]=_[_0x9d4f1e('0x88')](_0x93193e[_0x9d4f1e('0x2b')],qs[_0x9d4f1e('0x62')](_0xf3460b[_0x9d4f1e('0x67')][_0x9d4f1e('0x62')])),_0x505c22[_0x9d4f1e('0x8')]=_0x505c22[_0x9d4f1e('0x8')][_0x9d4f1e('0x92')]?_0x505c22['attributes']:_0x93193e[_0x9d4f1e('0x2b')];typeof _0xf3460b['query'][_0x9d4f1e('0x1')]===_0x9d4f1e('0x28')&&(_0x505c22[_0x9d4f1e('0xa')]=qs[_0x9d4f1e('0xa')](_0xf3460b[_0x9d4f1e('0x67')][_0x9d4f1e('0xa')]),_0x505c22[_0x9d4f1e('0x57')]=qs[_0x9d4f1e('0x57')](_0xf3460b['query'][_0x9d4f1e('0x57')]));_0x505c22[_0x9d4f1e('0xd')]=qs[_0x9d4f1e('0x49')](_0xf3460b[_0x9d4f1e('0x67')][_0x9d4f1e('0x49')]),_0x505c22[_0x9d4f1e('0x42')]=qs[_0x9d4f1e('0x80')](_[_0x9d4f1e('0x7f')](_0xf3460b['query'],_0x93193e[_0x9d4f1e('0x80')]),_0x8a5cf7);_0xf3460b[_0x9d4f1e('0x67')][_0x9d4f1e('0x77')]&&(_0x505c22[_0x9d4f1e('0x42')]=_[_0x9d4f1e('0x22')](_0x505c22[_0x9d4f1e('0x42')],{[Op['or']]:_['map'](_0x8a5cf7,function(_0x120861){const _0x1af599=_0x9d4f1e;if(_0x120861[_0x1af599('0x5a')]!==_0x1af599('0x2d')){const _0x533e09={};return _0x533e09[_0x120861[_0x1af599('0x41')]]={[Op[_0x1af599('0x4e')]]:'%'+_0xf3460b[_0x1af599('0x67')][_0x1af599('0x77')]+'%'},_0x533e09;}})}));_0x505c22=_['merge']({},_0x505c22,_0xf3460b['options']);const _0x3e09a2={'where':_0x505c22['where']};return db[_0x9d4f1e('0x96')][_0x9d4f1e('0x6')](_0x3e09a2)[_0x9d4f1e('0x1b')](function(_0x3b8480){const _0x2bdc4e=_0x9d4f1e;return _0x147c24[_0x2bdc4e('0x6')]=_0x3b8480,_0xf3460b[_0x2bdc4e('0x67')][_0x2bdc4e('0x95')]&&(_0x505c22[_0x2bdc4e('0x5f')]=[{'all':!![]}]),db['Plugin']['findAll'](_0x505c22);})[_0x9d4f1e('0x1b')](function(_0x49c1b1){const _0xe29b4a=_0x9d4f1e;return _0x147c24[_0xe29b4a('0x53')]=_0x49c1b1,_0x147c24;})[_0x9d4f1e('0x1b')](respondWithFilteredResult(_0x479774,_0x505c22))[_0x9d4f1e('0x7c')](handleError(_0x479774,null));},exports[_0x2d3838('0x10')]=function(_0x88baae,_0x23fe94){const _0x435e18=_0x2d3838;let _0x4f14ff={'raw':!![],'where':{'id':_0x88baae[_0x435e18('0x3f')]['id']}};const _0x22cd1c={};return _0x22cd1c[_0x435e18('0x2b')]=_[_0x435e18('0x38')](db[_0x435e18('0x96')][_0x435e18('0x73')]),_0x22cd1c[_0x435e18('0x67')]=_[_0x435e18('0x38')](_0x88baae[_0x435e18('0x67')]),_0x22cd1c['filters']=_[_0x435e18('0x88')](_0x22cd1c[_0x435e18('0x2b')],_0x22cd1c['query']),_0x4f14ff['attributes']=_[_0x435e18('0x88')](_0x22cd1c[_0x435e18('0x2b')],qs[_0x435e18('0x62')](_0x88baae[_0x435e18('0x67')][_0x435e18('0x62')])),_0x4f14ff[_0x435e18('0x8')]=_0x4f14ff[_0x435e18('0x8')]['length']?_0x4f14ff[_0x435e18('0x8')]:_0x22cd1c[_0x435e18('0x2b')],_0x88baae['query'][_0x435e18('0x95')]&&(_0x4f14ff[_0x435e18('0x5f')]=[{'all':!![]}]),_0x4f14ff=_['merge']({},_0x4f14ff,_0x88baae[_0x435e18('0x24')]),db[_0x435e18('0x96')][_0x435e18('0x2e')](_0x4f14ff)['then'](handleEntityNotFound(_0x23fe94))[_0x435e18('0x1b')](respondWithResult(_0x23fe94,null))[_0x435e18('0x7c')](handleError(_0x23fe94,null));},exports[_0x2d3838('0x27')]=function(_0x2d674f,_0x1bc69e){const _0x5b6709=_0x2d3838;return db['Plugin'][_0x5b6709('0x2e')]({'where':{'id':_0x2d674f[_0x5b6709('0x3f')]['id']},'attributes':[_0x5b6709('0x41'),_0x5b6709('0x5c')],'raw':!![]})[_0x5b6709('0x1b')](handleEntityNotFound(_0x1bc69e))[_0x5b6709('0x1b')](function(_0x2cc579){const _0xbdac20=_0x5b6709;if(_0x2cc579){const _0x25bebb=path[_0xbdac20('0x79')](config['root'],_0xbdac20('0x5'),util['format'](_0xbdac20('0x17'),path[_0xbdac20('0x71')](_0x2cc579['path']))),_0x1aec1f=fs[_0xbdac20('0x72')](_0x25bebb),_0x2a1394=archiver(_0xbdac20('0x7e'),{'zlib':{'level':0x9}});_0x2a1394['on'](_0xbdac20('0x84'),function(_0x5cd6b5){const _0x5479d6=_0xbdac20;if(_0x5cd6b5[_0x5479d6('0x33')]===_0x5479d6('0x4a'))logger[_0x5479d6('0x82')](_0x5cd6b5);else throw new db['Sequelize'][(_0x5479d6('0x83'))](_0x5479d6('0x6b'));}),_0x2a1394['on'](_0xbdac20('0x82'),function(){const _0x12bd42=_0xbdac20;throw new db[(_0x12bd42('0x1c'))][(_0x12bd42('0x83'))](_0x12bd42('0x6b'));}),_0x2a1394[_0xbdac20('0x1f')](_0x1aec1f),_0x2a1394[_0xbdac20('0x9')](_0xbdac20('0x4b'),{'cwd':path['join'](config[_0xbdac20('0x0')],'server/files/plugins',path['dirname'](_0x2cc579[_0xbdac20('0x5c')])),'ignore':[path[_0xbdac20('0x79')](path[_0xbdac20('0x71')](_0x2cc579[_0xbdac20('0x5c')]),_0xbdac20('0x19')),path[_0xbdac20('0x79')](path[_0xbdac20('0x71')](_0x2cc579[_0xbdac20('0x5c')]),'attachments/**/*')],'nodir':!![]})['finalize'](),_0x1aec1f['on']('close',function(){const _0x282c30=_0xbdac20;if(!fs[_0x282c30('0x37')](_0x25bebb))throw new db[(_0x282c30('0x1c'))][(_0x282c30('0x83'))](_0x282c30('0x3c'));return _0x1bc69e[_0x282c30('0x27')](_0x25bebb,util['format'](_0x282c30('0x17'),path[_0x282c30('0x71')](_0x2cc579[_0x282c30('0x5c')])),function(_0x47e419){const _0x4055f9=_0x282c30;if(_0x47e419)throw new db['Sequelize'][(_0x4055f9('0x83'))]('Error\x20while\x20downloading\x20the\x20plugin');fs[_0x4055f9('0x8e')](_0x25bebb),logger[_0x4055f9('0x2c')](_0x4055f9('0x6d')),logger[_0x4055f9('0x2c')](_0x4055f9('0x8c'));});});}return null;})[_0x5b6709('0x7c')](handleError(_0x1bc69e,null));},exports[_0x2d3838('0x36')]=function(_0x4fb0c5,_0x21845e,_0x204bf2){const _0x327a6d=_0x2d3838,_0x40ecd9=path['basename'](_0x4fb0c5['file'][_0x327a6d('0x64')],path['extname'](_0x4fb0c5[_0x327a6d('0x1a')]['filename'])),_0x2c53a1=path['join'](config[_0x327a6d('0x0')],_0x327a6d('0x5'),_0x4fb0c5[_0x327a6d('0x1a')][_0x327a6d('0x64')]),_0x402eca=path[_0x327a6d('0x79')](config[_0x327a6d('0x0')],_0x327a6d('0x5'),_0x40ecd9);logger['info']('Plugin\x20upload\x20filepath:\x20%s',_0x2c53a1),logger[_0x327a6d('0x2c')](_0x327a6d('0x58'),_0x402eca);try{fs[_0x327a6d('0x7')](_0x2c53a1,parseInt(_0x327a6d('0x3d'),0x8)),extract(_0x2c53a1,{'dir':_0x402eca},function(_0x4eff56){const _0x14f06b=_0x327a6d;_0x4eff56&&(logger[_0x14f06b('0x82')](_0x4eff56),handleError(_0x4eff56,!![]));const _0x494621=fs['readdirSync'](_0x402eca);if(_0x494621[_0x14f06b('0x92')]>0x1)return removeReferences(_0x2c53a1,_0x402eca),logger[_0x14f06b('0x82')](_0x14f06b('0x89')),_0x204bf2(new Error(_0x14f06b('0x89')));const _0x3a8c70=fs[_0x14f06b('0x50')](path[_0x14f06b('0x79')](_0x402eca,_0x494621[0x0]));if(_0x3a8c70[_0x14f06b('0x26')]())return removeReferences(_0x2c53a1,_0x402eca),logger['error'](_0x14f06b('0x89')),_0x204bf2(new Error('Invalid\x20plugin\x20structure'));if(_0x3a8c70[_0x14f06b('0x76')]()){const _0x20d5dc=fs[_0x14f06b('0x11')](path[_0x14f06b('0x79')](_0x402eca,_0x494621[0x0]));if(_0x20d5dc[_0x14f06b('0x92')]===0x0)return removeReferences(_0x2c53a1,_0x402eca),logger['error'](_0x14f06b('0x89')),_0x204bf2(new Error(_0x14f06b('0x89')));const _0xa18b3a=_0x20d5dc[_0x14f06b('0x34')](function(_0x3ae35c){const _0x2cebf1=_0x14f06b;return _0x3ae35c===_0x2cebf1('0x4f');});if(!_0xa18b3a)return _0x204bf2(new Error('Plugin\x20manifest\x20missing'));const _0x3b7b51=fs[_0x14f06b('0x6f')](path[_0x14f06b('0x79')](_0x402eca,_0x494621[0x0],_0x14f06b('0x4f'))),_0x4accc8=JSON[_0x14f06b('0x31')](_0x3b7b51);if(_0x14f06b('0x28')==typeof _0x4accc8[_0x14f06b('0x41')])return _0x204bf2(new Error(_0x14f06b('0x4')));if(_0x14f06b('0x28')==typeof _0x4accc8[_0x14f06b('0x5a')])return _0x204bf2(new Error(_0x14f06b('0x32')));if(_0x14f06b('0x28')==typeof _0x4accc8[_0x14f06b('0x4d')])return _0x204bf2(new Error('Invalid\x20manifest:\x20version\x20not\x20specified'));if(_0x14f06b('0x28')==typeof _0x4accc8['parameters'])return _0x204bf2(new Error(_0x14f06b('0x74')));if(_0x4accc8[_0x14f06b('0x5a')]===_0x14f06b('0x46')){if(_0x14f06b('0x28')==typeof _0x4accc8[_0x14f06b('0x48')]['views'])return _0x204bf2(new Error(_0x14f06b('0x23')));if(_0x14f06b('0x28')==typeof _0x4accc8[_0x14f06b('0x48')]['views'][_0x14f06b('0x15')]&&'undefined'==typeof _0x4accc8[_0x14f06b('0x48')][_0x14f06b('0x63')]['agent'])return _0x204bf2(new Error(_0x14f06b('0x78')));}else{if(_0x4accc8[_0x14f06b('0x5a')]==='script'){if(_0x14f06b('0x28')==typeof _0x4accc8[_0x14f06b('0x48')]['scriptName'])return _0x204bf2(new Error(_0x14f06b('0x65')));if(_0x14f06b('0x28')==typeof _0x4accc8[_0x14f06b('0x48')][_0x14f06b('0x4c')])return _0x204bf2(new Error(_0x14f06b('0x43')));}else return _0x204bf2(new Error(_0x14f06b('0x6e')));}const _0x17f27c=_0x4accc8['name'],_0x1bc53a=_0x4accc8[_0x14f06b('0x75')],_0x43f488=_0x4accc8['type'],_0x47b940=_0x4accc8[_0x14f06b('0x21')]?_0x4accc8[_0x14f06b('0x21')]:_0x14f06b('0x39'),_0x59cf4c=_0x4accc8[_0x14f06b('0x12')]?_0x4accc8[_0x14f06b('0x12')]:_0x14f06b('0x1e');let _0x3b0b1f='',_0x589ea2='',_0x1100e1='',_0x785526='';const _0x26dd9e=_0x4accc8[_0x14f06b('0x4d')];if(_0x43f488===_0x14f06b('0x46')){if('undefined'!=typeof _0x4accc8[_0x14f06b('0x48')][_0x14f06b('0x63')][_0x14f06b('0x15')]){const _0x2c4354=_0x4accc8[_0x14f06b('0x48')][_0x14f06b('0x63')]['admin'];!/^(f|ht)tps?:\/\//i[_0x14f06b('0xb')](_0x2c4354)?_0x3b0b1f=path[_0x14f06b('0x79')](_0x14f06b('0x2'),_0x40ecd9,_0x494621[0x0],_0x2c4354):_0x3b0b1f=_0x2c4354;}else logger['info']('Warning:\x20admin\x20view\x20not\x20specified');if(_0x14f06b('0x28')!=typeof _0x4accc8[_0x14f06b('0x48')]['views'][_0x14f06b('0x8b')]){const _0x25eb37=_0x4accc8[_0x14f06b('0x48')]['views']['agent'];!/^(f|ht)tps?:\/\//i[_0x14f06b('0xb')](_0x25eb37)?_0x589ea2=path[_0x14f06b('0x79')](_0x14f06b('0x2'),_0x40ecd9,_0x494621[0x0],_0x25eb37):_0x589ea2=_0x25eb37;}else logger[_0x14f06b('0x2c')](_0x14f06b('0x91'));}else{if(_0x43f488===_0x14f06b('0x40')){_0x1100e1=_0x4accc8['parameters'][_0x14f06b('0x3a')],_0x785526=_0x4accc8['parameters']['scriptPath'];if(_0x14f06b('0x28')!=typeof _0x4accc8['parameters'][_0x14f06b('0x63')]){if(_0x14f06b('0x28')!=typeof _0x4accc8['parameters'][_0x14f06b('0x63')][_0x14f06b('0x15')]){const _0x298090=_0x4accc8['parameters'][_0x14f06b('0x63')][_0x14f06b('0x15')];!/^(f|ht)tps?:\/\//i[_0x14f06b('0xb')](_0x298090)?_0x3b0b1f=path[_0x14f06b('0x79')](_0x14f06b('0x2'),_0x40ecd9,_0x494621[0x0],_0x298090):_0x3b0b1f=_0x298090;}if(_0x14f06b('0x28')!=typeof _0x4accc8['parameters'][_0x14f06b('0x63')][_0x14f06b('0x8b')]){const _0x39a7f3=_0x4accc8[_0x14f06b('0x48')][_0x14f06b('0x63')][_0x14f06b('0x8b')];!/^(f|ht)tps?:\/\//i[_0x14f06b('0xb')](_0x39a7f3)?_0x589ea2=path[_0x14f06b('0x79')](_0x14f06b('0x2'),_0x40ecd9,_0x494621[0x0],_0x39a7f3):_0x589ea2=_0x39a7f3;}}}}const _0x218ae1={'name':_0x17f27c,'description':_0x1bc53a,'path':path[_0x14f06b('0x79')](_0x40ecd9,_0x494621[0x0]),'type':_0x43f488,'sidebar':_0x47b940,'icon':_0x59cf4c,'adminUrl':_0x3b0b1f,'agentUrl':_0x589ea2,'scriptName':_0x1100e1,'scriptPath':_0x785526,'version':_0x26dd9e};return removeReferences(_0x2c53a1,null),db[_0x14f06b('0x96')][_0x14f06b('0x56')](_0x218ae1)[_0x14f06b('0x1b')](function(_0x81c116){const _0x3ae375=_0x14f06b,_0x51d2ae={'role':_0x4fb0c5[_0x3ae375('0x3')]['role'],'userProfileId':_0x4fb0c5[_0x3ae375('0x3')][_0x3ae375('0x25')]};if(!_0x51d2ae)throw new Error(_0x3ae375('0xf'));if(_0x51d2ae['role']===_0x3ae375('0x44')){const _0x4e7f74=_0x81c116[_0x3ae375('0x68')]({'plain':!![]});return db[_0x3ae375('0x87')][_0x3ae375('0x2e')]({'where':{'name':_0x3ae375('0x3b'),'userProfileId':_0x51d2ae['userProfileId']},'raw':!![]})['then'](function(_0x4ef2e1){const _0x5c43c5=_0x3ae375;return _0x4ef2e1&&_0x4ef2e1[_0x5c43c5('0x16')]===0x0?db['UserProfileResource'][_0x5c43c5('0x56')]({'name':_0x4e7f74['name'],'resourceId':_0x4e7f74['id'],'type':_0x4ef2e1[_0x5c43c5('0x41')],'sectionId':_0x4ef2e1['id']},{})['then'](function(){return _0x81c116;}):_0x81c116;})[_0x3ae375('0x7c')](function(_0x19bb64){const _0x3f01df=_0x3ae375;logger[_0x3f01df('0x82')](_0x3f01df('0x81'),_0x19bb64);throw _0x19bb64;});}return _0x81c116;})[_0x14f06b('0x1b')](respondWithResult(_0x21845e,null))[_0x14f06b('0x7c')](handleError(_0x21845e,null));}});}catch(_0x5e3f2a){_0x21845e['status'](0x1f4)[_0x327a6d('0x45')](_0x5e3f2a);}};function removeReferences(_0x39995d,_0xb9b0fb){const _0x5e1bab=_0x2d3838;try{_0x39995d&&(fs[_0x5e1bab('0x8e')](_0x39995d),logger['info'](_0x5e1bab('0x8a'))),_0xb9b0fb&&(rimraf(_0xb9b0fb,function(){}),logger['info'](_0x5e1bab('0x70')));}catch(_0x40cd64){logger[_0x5e1bab('0x82')](_0x40cd64);}}exports[_0x2d3838('0x30')]=function(_0x398beb,_0xa014db){const _0x5d8d7b=_0x2d3838;return db[_0x5d8d7b('0x96')][_0x5d8d7b('0x2e')]({'where':{'id':_0x398beb[_0x5d8d7b('0x3f')]['id']}})[_0x5d8d7b('0x1b')](handleEntityNotFound(_0xa014db))[_0x5d8d7b('0x1b')](saveUpdates(_0x398beb[_0x5d8d7b('0x3')]))[_0x5d8d7b('0x1b')](respondWithResult(_0xa014db,null))[_0x5d8d7b('0x7c')](handleError(_0xa014db,null));},exports[_0x2d3838('0x7d')]=function(_0x573597,_0x551178){const _0x3d7a58=_0x2d3838;return db['Plugin'][_0x3d7a58('0x2e')]({'where':{'id':_0x573597[_0x3d7a58('0x3f')]['id']}})['then'](function(_0x35e2d7){const _0x55f13e=_0x3d7a58;if(_0x35e2d7)return _0x35e2d7[_0x55f13e('0x8f')]();})[_0x3d7a58('0x1b')](function(_0x1405f7){const _0x228907=_0x3d7a58;return rimraf(path['join'](config[_0x228907('0x0')],_0x228907('0x5'),path['dirname'](_0x1405f7[_0x228907('0x5c')])),function(){}),_0x1405f7;})[_0x3d7a58('0x1b')](handleEntityNotFound(_0x551178))[_0x3d7a58('0x1b')](respondWithStatusCode(_0x551178,null))[_0x3d7a58('0x7c')](handleError(_0x551178,null));},exports[_0x2d3838('0x5e')]=function(_0x1e481f,_0xbafe6d){const _0x524992=_0x2d3838;return Promise[_0x524992('0x29')]()[_0x524992('0x1b')](function(){const _0x5f0456=_0x524992;if(!_0x1e481f[_0x5f0456('0x67')][_0x5f0456('0x5c')])throw new Error(_0x5f0456('0x52'));if(!_0x1e481f[_0x5f0456('0x67')][_0x5f0456('0x85')])throw new Error('\x27PORT\x27\x20parameter\x20not\x20specified');const _0x950dad=_0x1e481f[_0x5f0456('0x67')][_0x5f0456('0x7b')]?_0x1e481f['query']['hostname']+':'+_0x1e481f[_0x5f0456('0x67')][_0x5f0456('0x85')]:'http://localhost:'+_0x1e481f[_0x5f0456('0x67')]['port'],_0x4b06ed=_0x1e481f[_0x5f0456('0x67')][_0x5f0456('0x94')]?_0x1e481f[_0x5f0456('0x67')]['json']:!![],_0x593cab=_0x1e481f[_0x5f0456('0x67')][_0x5f0456('0x6a')]?_0x1e481f[_0x5f0456('0x67')]['encoding']:null,_0x12637a={'method':_0x1e481f[_0x5f0456('0x6c')],'uri':util['format']('%s%s',_0x950dad,_0x1e481f[_0x5f0456('0x67')][_0x5f0456('0x5c')]),'json':_0x4b06ed,'resolveWithFullResponse':!![],'encoding':_0x593cab,'qs':_0x1e481f[_0x5f0456('0x67')]};return _0x1e481f[_0x5f0456('0x93')]&&(_0x12637a[_0x5f0456('0x93')]=_0x1e481f[_0x5f0456('0x93')],_0x12637a[_0x5f0456('0x93')]['content-length']&&delete _0x12637a[_0x5f0456('0x93')][_0x5f0456('0x61')]),_0x12637a[_0x5f0456('0x93')][_0x5f0456('0x54')]&&delete _0x12637a['headers'][_0x5f0456('0x54')],rp(_0x12637a);})['then'](function(_0x479438){const _0x44e9bf=_0x524992;return _0x479438?(_0xbafe6d['set'](_0x479438[_0x44e9bf('0x93')]),logger[_0x44e9bf('0x2c')](_0x479438[_0x44e9bf('0x3')]),_[_0x44e9bf('0xe')](_0x1e481f[_0x44e9bf('0x67')]['path'],_0x44e9bf('0x27'))&&_0x479438['statusCode']==0x1f4?_0xbafe6d['sendStatus'](_0x479438['statusCode']):_0xbafe6d[_0x44e9bf('0x14')](_0x479438['statusCode'])[_0x44e9bf('0x45')](_0x479438[_0x44e9bf('0x3')])):_0xbafe6d['sendStatus'](0xc8);})[_0x524992('0x7c')](handleError(_0xbafe6d,null));},exports[_0x2d3838('0x20')]=function(_0x3a633d,_0x299673){const _0x1c31f0=_0x2d3838;return Promise[_0x1c31f0('0x29')]()[_0x1c31f0('0x1b')](function(){const _0x24d236=_0x1c31f0;if(!_0x3a633d[_0x24d236('0x67')]['path'])throw new Error(_0x24d236('0x52'));if(!_0x3a633d[_0x24d236('0x67')][_0x24d236('0x85')])throw new Error(_0x24d236('0x51'));const _0x1c6597=_0x3a633d['query'][_0x24d236('0x7b')]?_0x3a633d['query'][_0x24d236('0x7b')]+':'+_0x3a633d[_0x24d236('0x67')]['port']:_0x24d236('0x47')+_0x3a633d[_0x24d236('0x67')][_0x24d236('0x85')],_0x5f0731=_0x3a633d[_0x24d236('0x67')][_0x24d236('0x94')]?_0x3a633d[_0x24d236('0x67')][_0x24d236('0x94')]:!![],_0x16e5e2=_0x3a633d[_0x24d236('0x67')][_0x24d236('0x6a')]?_0x3a633d[_0x24d236('0x67')][_0x24d236('0x6a')]:null,_0xce1b64={'method':_0x3a633d[_0x24d236('0x6c')],'uri':util[_0x24d236('0x8d')]('%s%s',_0x1c6597,_0x3a633d[_0x24d236('0x67')][_0x24d236('0x5c')]),'json':_0x5f0731,'resolveWithFullResponse':!![],'encoding':_0x16e5e2,'body':_0x3a633d[_0x24d236('0x3')]};return _0x3a633d[_0x24d236('0x93')]&&(_0xce1b64[_0x24d236('0x93')]=_0x3a633d[_0x24d236('0x93')],_0xce1b64[_0x24d236('0x93')][_0x24d236('0x61')]&&delete _0xce1b64[_0x24d236('0x93')][_0x24d236('0x61')]),_0xce1b64[_0x24d236('0x93')][_0x24d236('0x54')]&&delete _0xce1b64[_0x24d236('0x93')][_0x24d236('0x54')],rp(_0xce1b64);})[_0x1c31f0('0x1b')](function(_0x1bd650){const _0x4023ab=_0x1c31f0;return _0x1bd650?(_0x299673[_0x4023ab('0x55')](_0x1bd650[_0x4023ab('0x93')]),logger[_0x4023ab('0x2c')](_0x1bd650[_0x4023ab('0x3')]),_0x299673[_0x4023ab('0x14')](_0x1bd650['statusCode'])[_0x4023ab('0x45')](_0x1bd650[_0x4023ab('0x3')])):_0x299673[_0x4023ab('0x2a')](0xc8);})[_0x1c31f0('0x7c')](handleError(_0x299673,null));}; \ No newline at end of file +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 diff --git a/server/api/plugin/plugin.events.js b/server/api/plugin/plugin.events.js index 1a9a6cf..65d2c6a 100644 --- a/server/api/plugin/plugin.events.js +++ b/server/api/plugin/plugin.events.js @@ -1 +1 @@ -const a516_0x3944=['remove','undefined','emit','save','addHook','update','../../mysqldb'];(function(_0x3d7ae8,_0x39441a){const _0x5078f6=function(_0x1c49f){while(--_0x1c49f){_0x3d7ae8['push'](_0x3d7ae8['shift']());}};_0x5078f6(++_0x39441a);}(a516_0x3944,0x162));const a516_0x5078=function(_0x3d7ae8,_0x39441a){_0x3d7ae8=_0x3d7ae8-0x0;let _0x5078f6=a516_0x3944[_0x3d7ae8];return _0x5078f6;};const _0x81c203=a516_0x5078;'use strict';const EventEmitter=require('events'),Plugin=require(_0x81c203('0x2'))['db']['Plugin'],PluginEvents=new EventEmitter();PluginEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x81c203('0x6'),'afterUpdate':_0x81c203('0x1'),'afterDestroy':_0x81c203('0x3')};function emitEvent(_0x1c49f){return function(_0x2d92cb){const _0x2edf3f=a516_0x5078;PluginEvents[_0x2edf3f('0x5')](_0x1c49f+':'+_0x2d92cb['id'],_0x2d92cb),PluginEvents[_0x2edf3f('0x5')](_0x1c49f,_0x2d92cb);};}for(const e in events){if(typeof events[e]!==_0x81c203('0x4')){const event=events[e];Plugin[_0x81c203('0x0')](e,emitEvent(event));}}module['exports']=PluginEvents; \ No newline at end of file +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 diff --git a/server/api/plugin/plugin.model.js b/server/api/plugin/plugin.model.js index 0d2af4e..c0310c1 100644 --- a/server/api/plugin/plugin.model.js +++ b/server/api/plugin/plugin.model.js @@ -1 +1 @@ -const a517_0xb29c=['./plugin.attributes','exports','Plugin','plugins'];(function(_0x195414,_0xb29c06){const _0x31fad8=function(_0x15ea31){while(--_0x15ea31){_0x195414['push'](_0x195414['shift']());}};_0x31fad8(++_0xb29c06);}(a517_0xb29c,0xf7));const a517_0x31fa=function(_0x195414,_0xb29c06){_0x195414=_0x195414-0x0;let _0x31fad8=a517_0xb29c[_0x195414];return _0x31fad8;};const _0x3aa504=a517_0x31fa;'use strict';const attributes=require(_0x3aa504('0x1'));module[_0x3aa504('0x2')]=function(_0x15ea31){const _0x23d845=_0x3aa504,_0x5839e1=_0x15ea31['define'](_0x23d845('0x3'),attributes,{'tableName':_0x23d845('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5839e1;}; \ No newline at end of file +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 diff --git a/server/api/plugin/plugin.rpc.js b/server/api/plugin/plugin.rpc.js index 7f34d57..d7a44c4 100644 --- a/server/api/plugin/plugin.rpc.js +++ b/server/api/plugin/plugin.rpc.js @@ -1 +1 @@ -const a518_0xfc1a=['../../mysqldb','./plugin.socket','message','CreatePlugin','error','info','debug','rpc','options','catch','stringify','../../rediscache','raw','../../config/logger','then'];(function(_0x4e96f2,_0xfc1ab0){const _0x22b762=function(_0x58ca73){while(--_0x58ca73){_0x4e96f2['push'](_0x4e96f2['shift']());}};_0x22b762(++_0xfc1ab0);}(a518_0xfc1a,0x1e2));const a518_0x22b7=function(_0x4e96f2,_0xfc1ab0){_0x4e96f2=_0x4e96f2-0x0;let _0x22b762=a518_0xfc1a[_0x4e96f2];return _0x22b762;};const _0x55606a=a518_0x22b7;'use strict';const db=require(_0x55606a('0xd'))['db'],logger=require(_0x55606a('0xb'))(_0x55606a('0x5')),{getSocket}=require(_0x55606a('0x9')),socket=getSocket();require(_0x55606a('0xe'))['register'](socket),exports[_0x55606a('0x1')]=function(_0x58ca73){const _0x628267=this;return new Promise(function(_0x135f37,_0x1c23ee){const _0x5556d5=a518_0x22b7;return db['Plugin']['create'](_0x58ca73['body'],{'raw':_0x58ca73[_0x5556d5('0x6')]?_0x58ca73[_0x5556d5('0x6')][_0x5556d5('0xa')]===undefined?!![]:![]:!![]})[_0x5556d5('0xc')](function(_0x16ed80){const _0x21bff6=_0x5556d5;logger[_0x21bff6('0x3')]('CreatePlugin',_0x58ca73),logger[_0x21bff6('0x4')]('CreatePlugin',_0x58ca73,JSON[_0x21bff6('0x8')](_0x16ed80)),_0x135f37(_0x16ed80);})[_0x5556d5('0x7')](function(_0x50ecbb){const _0x90dc89=_0x5556d5;logger[_0x90dc89('0x2')](_0x90dc89('0x1'),_0x50ecbb[_0x90dc89('0x0')],_0x58ca73),_0x1c23ee(_0x628267[_0x90dc89('0x2')](0x1f4,_0x50ecbb[_0x90dc89('0x0')]));});});}; \ No newline at end of file +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 diff --git a/server/api/plugin/plugin.socket.js b/server/api/plugin/plugin.socket.js index 421f044..195765f 100644 --- a/server/api/plugin/plugin.socket.js +++ b/server/api/plugin/plugin.socket.js @@ -1 +1 @@ -const a519_0x5ae4=['remove','save','plugin:','update','length'];(function(_0x53dbe0,_0x5ae461){const _0x3825fb=function(_0x9373a6){while(--_0x9373a6){_0x53dbe0['push'](_0x53dbe0['shift']());}};_0x3825fb(++_0x5ae461);}(a519_0x5ae4,0x107));const a519_0x3825=function(_0x53dbe0,_0x5ae461){_0x53dbe0=_0x53dbe0-0x0;let _0x3825fb=a519_0x5ae4[_0x53dbe0];return _0x3825fb;};const _0x3dbd61=a519_0x3825;'use strict';const PluginEvents=require('./plugin.events'),events=[_0x3dbd61('0x3'),_0x3dbd61('0x2'),_0x3dbd61('0x0')];function createListener(_0x9373a6,_0x258b0d){return function(_0xd64bc9){_0x258b0d['emit'](_0x9373a6,_0xd64bc9);};}exports['register']=function(_0x4f408d){const _0x1e8976=_0x3dbd61;for(let _0x3c5de5=0x0,_0x17db45=events[_0x1e8976('0x1')];_0x3c5de5<_0x17db45;_0x3c5de5++){const _0x5a2c06=events[_0x3c5de5],_0x17c067=createListener(_0x1e8976('0x4')+_0x5a2c06,_0x4f408d);PluginEvents['on'](_0x5a2c06,_0x17c067);}}; \ No newline at end of file +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 diff --git a/server/api/pm2/index.js b/server/api/pm2/index.js index 96b0fb8..b41f0e1 100644 --- a/server/api/pm2/index.js +++ b/server/api/pm2/index.js @@ -1 +1 @@ -const a520_0x3046=['isAuthenticated','update','put','post','express','destroy','Router','get','delete','exports','create','./pm2.controller','/:id','show'];(function(_0x545d18,_0x304604){const _0x486fc1=function(_0x25d555){while(--_0x25d555){_0x545d18['push'](_0x545d18['shift']());}};_0x486fc1(++_0x304604);}(a520_0x3046,0x1ac));const a520_0x486f=function(_0x545d18,_0x304604){_0x545d18=_0x545d18-0x0;let _0x486fc1=a520_0x3046[_0x545d18];return _0x486fc1;};const _0x38c35a=a520_0x486f;'use strict';const express=require(_0x38c35a('0xa')),router=express[_0x38c35a('0xc')](),auth=require('../../components/auth/service'),controller=require(_0x38c35a('0x3'));router[_0x38c35a('0xd')]('/',auth['isAuthenticated'](),controller['index']),router[_0x38c35a('0xd')]('/:id',auth[_0x38c35a('0x6')](),controller[_0x38c35a('0x5')]),router[_0x38c35a('0x9')]('/',auth[_0x38c35a('0x6')](),controller[_0x38c35a('0x2')]),router[_0x38c35a('0x8')](_0x38c35a('0x4'),auth[_0x38c35a('0x6')](),controller[_0x38c35a('0x7')]),router[_0x38c35a('0x0')](_0x38c35a('0x4'),auth[_0x38c35a('0x6')](),controller[_0x38c35a('0xb')]),module[_0x38c35a('0x1')]=router; \ No newline at end of file +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 diff --git a/server/api/pm2/pm2.controller.js b/server/api/pm2/pm2.controller.js index dca54bb..d72803e 100644 --- a/server/api/pm2/pm2.controller.js +++ b/server/api/pm2/pm2.controller.js @@ -1 +1 @@ -const a521_0x1f22=['dump','body','catch','motion2','list','index','create','status','name','delete','cwd','api','Unknown\x20id','../../files/plugins','destroy','show','child_process','path','npm\x20install','chdir','Unknown\x20status','send','error','start','../../config/pm2','express','lodash','info','join','Missing\x20name\x20and/or\x20path','exec','then','params','sendStatus','reject','script'];(function(_0x56bcfb,_0x1f2290){const _0x1ddaed=function(_0x5d7454){while(--_0x5d7454){_0x56bcfb['push'](_0x56bcfb['shift']());}};_0x1ddaed(++_0x1f2290);}(a521_0x1f22,0xcb));const a521_0x1dda=function(_0x56bcfb,_0x1f2290){_0x56bcfb=_0x56bcfb-0x0;let _0x1ddaed=a521_0x1f22[_0x56bcfb];return _0x1ddaed;};const _0x41e330=a521_0x1dda;'use strict';const _=require(_0x41e330('0x3')),pm2=require(_0x41e330('0x1')),logger=require('../../config/logger')(_0x41e330('0x18')),path=require(_0x41e330('0x1e')),exec=require(_0x41e330('0x1d'))[_0x41e330('0x7')];function handleEntityNotFound(_0x5d7454){return function(_0x332c5b){const _0x2d7e0f=a521_0x1dda;return!_0x332c5b&&_0x5d7454[_0x2d7e0f('0xa')](0x194),_0x332c5b;};}function respondWithResult(_0x49022a,_0x5ad5cc){return _0x5ad5cc=_0x5ad5cc||0xc8,function(_0x5aac93){const _0x30ba49=a521_0x1dda;if(_0x5aac93)return _0x49022a[_0x30ba49('0x14')](_0x5ad5cc)['json'](_0x5aac93);return null;};}function handleError(_0x4554c6,_0x1156f2){return _0x1156f2=_0x1156f2||0x1f4,function(_0x2787ef){const _0x419135=a521_0x1dda;logger[_0x419135('0x23')](_0x2787ef['stack']),_0x2787ef[_0x419135('0x15')]&&delete _0x2787ef[_0x419135('0x15')],_0x4554c6['status'](_0x1156f2)[_0x419135('0x22')](_0x2787ef);};}function execChildProcess(){return new Promise(function(_0x4782d8,_0xb689e7){const _0x12b4a5=a521_0x1dda;exec(_0x12b4a5('0x1f'),function(_0x274b7f,_0x36ba3c,_0x2434ff){const _0x52c0f4=_0x12b4a5;logger[_0x52c0f4('0x4')](_0x36ba3c),logger[_0x52c0f4('0x4')](_0x2434ff);if(_0x274b7f)return logger[_0x52c0f4('0x23')](_0x274b7f),_0xb689e7(_0x274b7f);return _0x4782d8(_0x36ba3c);});});}exports[_0x41e330('0x12')]=function(_0x394b75,_0x4c9638){const _0x2f3d57=_0x41e330;return pm2[_0x2f3d57('0x11')]()['then'](function(_0x20b533){const _0x4b458d=_0x2f3d57;if(_0x20b533){const _0x19da02=_[_0x4b458d('0xb')](_0x20b533,function(_0x2f30fa){const _0x474404=_0x4b458d;return _0x2f30fa[_0x474404('0x15')]===_0x474404('0x2')||_0x2f30fa[_0x474404('0x15')]===_0x474404('0x10');});return{'rows':_0x19da02,'count':_0x19da02['length']};}return null;})[_0x2f3d57('0x8')](respondWithResult(_0x4c9638,null))['catch'](handleError(_0x4c9638,null));},exports[_0x41e330('0x1c')]=function(_0x47f70a,_0x4a8777){const _0x30d602=_0x41e330;return pm2['describe'](_0x47f70a[_0x30d602('0x9')]['id'])['then'](respondWithResult(_0x4a8777,null))[_0x30d602('0x8')](handleEntityNotFound(_0x4a8777,null))[_0x30d602('0xf')](handleError(_0x4a8777,null));},exports[_0x41e330('0x13')]=function(_0x1bbd42,_0x5da2c5){const _0x3dea74=_0x41e330;if(_0x1bbd42[_0x3dea74('0xe')]['name']&&_0x1bbd42[_0x3dea74('0xe')][_0x3dea74('0xc')]){const _0x43045e=path[_0x3dea74('0x5')](__dirname,_0x3dea74('0x1a'),_0x1bbd42['body']['script']),_0x41fa74=process[_0x3dea74('0x17')]();return process[_0x3dea74('0x20')](path['dirname'](_0x43045e)),execChildProcess()[_0x3dea74('0x8')](function(){const _0x11e68f=_0x3dea74;return process[_0x11e68f('0x20')](_0x41fa74),pm2[_0x11e68f('0x0')]({'name':_0x1bbd42[_0x11e68f('0xe')][_0x11e68f('0x15')],'script':_0x43045e});})[_0x3dea74('0x8')](function(_0x1f75d5){const _0x4743d5=_0x3dea74;return pm2[_0x4743d5('0xd')](),_0x1f75d5[0x0];})[_0x3dea74('0x8')](respondWithResult(_0x5da2c5,0xc9))[_0x3dea74('0xf')](handleError(_0x5da2c5,null));}else return _0x5da2c5[_0x3dea74('0x14')](0x1f4)[_0x3dea74('0x22')]({'message':_0x3dea74('0x6')});},exports['update']=function(_0x451a05,_0x3e0a84){const _0x2cfdd0=_0x41e330;_0x451a05[_0x2cfdd0('0xe')]['id']&&delete _0x451a05[_0x2cfdd0('0xe')]['id'];const _0x3d4391={'online':'restart','stopped':'stop'};return typeof _0x3d4391[_0x451a05[_0x2cfdd0('0xe')][_0x2cfdd0('0x14')]]!=='undefined'?pm2[_0x3d4391[_0x451a05[_0x2cfdd0('0xe')][_0x2cfdd0('0x14')]]](_0x451a05[_0x2cfdd0('0x9')]['id'])[_0x2cfdd0('0x8')](respondWithResult(_0x3e0a84,0xc8))[_0x2cfdd0('0xf')](handleError(_0x3e0a84,null)):_0x3e0a84[_0x2cfdd0('0x14')](0x1f4)[_0x2cfdd0('0x22')]({'message':_0x2cfdd0('0x21')});},exports[_0x41e330('0x1b')]=function(_0x365a87,_0xf104f2){const _0x2e6b4d=_0x41e330;return _0x365a87[_0x2e6b4d('0xe')]['id']&&delete _0x365a87['body']['id'],_0x365a87['params']['id']?pm2[_0x2e6b4d('0x16')](_0x365a87['params']['id'])['then'](function(_0x516149){const _0x9a12b8=_0x2e6b4d;return pm2[_0x9a12b8('0xd')](),_0x516149[0x0];})['then'](respondWithResult(_0xf104f2,null))[_0x2e6b4d('0xf')](handleError(_0xf104f2,null)):_0xf104f2['status'](0x1f4)[_0x2e6b4d('0x22')]({'message':_0x2e6b4d('0x19')});}; \ No newline at end of file +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 diff --git a/server/api/reportAgentPreview/index.js b/server/api/reportAgentPreview/index.js index f899d7b..1666fbf 100644 --- a/server/api/reportAgentPreview/index.js +++ b/server/api/reportAgentPreview/index.js @@ -1 +1 @@ -const a522_0x5b5c=['express','exports'];(function(_0x3f3e35,_0x5b5c50){const _0x18629d=function(_0x324850){while(--_0x324850){_0x3f3e35['push'](_0x3f3e35['shift']());}};_0x18629d(++_0x5b5c50);}(a522_0x5b5c,0xf9));const a522_0x1862=function(_0x3f3e35,_0x5b5c50){_0x3f3e35=_0x3f3e35-0x0;let _0x18629d=a522_0x5b5c[_0x3f3e35];return _0x18629d;};const _0x494a0b=a522_0x1862;'use strict';const express=require(_0x494a0b('0x1')),router=express['Router']();module[_0x494a0b('0x0')]=router; \ No newline at end of file +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 diff --git a/server/api/reportAgentPreview/reportAgentPreview.attributes.js b/server/api/reportAgentPreview/reportAgentPreview.attributes.js index 0674446..df55088 100644 --- a/server/api/reportAgentPreview/reportAgentPreview.attributes.js +++ b/server/api/reportAgentPreview/reportAgentPreview.attributes.js @@ -1 +1 @@ -const a523_0x2456=['sequelize','INTEGER','exports','DATE','STRING'];(function(_0x149219,_0x24567e){const _0x36f0b2=function(_0xbc013a){while(--_0xbc013a){_0x149219['push'](_0x149219['shift']());}};_0x36f0b2(++_0x24567e);}(a523_0x2456,0x13f));const a523_0x36f0=function(_0x149219,_0x24567e){_0x149219=_0x149219-0x0;let _0x36f0b2=a523_0x2456[_0x149219];return _0x36f0b2;};const _0x2b63de=a523_0x36f0;'use strict';const Sequelize=require(_0x2b63de('0x1'));module[_0x2b63de('0x3')]={'state':{'type':Sequelize[_0x2b63de('0x2')](0x2)},'statedesc':{'type':Sequelize[_0x2b63de('0x0')]},'scheduledat':{'type':Sequelize[_0x2b63de('0x4')]},'uniqueid':{'type':Sequelize['STRING']},'starttime':{'type':Sequelize['DATE']},'responsetime':{'type':Sequelize['DATE']},'ringtime':{'type':Sequelize[_0x2b63de('0x2')],'defaultValue':0x0},'campaign':{'type':Sequelize['STRING']},'campaigntype':{'type':Sequelize[_0x2b63de('0x0')]},'membername':{'type':Sequelize[_0x2b63de('0x0')]}}; \ No newline at end of file +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 diff --git a/server/api/reportAgentPreview/reportAgentPreview.model.js b/server/api/reportAgentPreview/reportAgentPreview.model.js index 7666dad..53ad5b3 100644 --- a/server/api/reportAgentPreview/reportAgentPreview.model.js +++ b/server/api/reportAgentPreview/reportAgentPreview.model.js @@ -1 +1 @@ -const a524_0x3641=['./reportAgentPreview.attributes','define','ReportAgentPreview','exports'];(function(_0x28f0f5,_0x36411f){const _0xd59859=function(_0x11e2fc){while(--_0x11e2fc){_0x28f0f5['push'](_0x28f0f5['shift']());}};_0xd59859(++_0x36411f);}(a524_0x3641,0x178));const a524_0xd598=function(_0x28f0f5,_0x36411f){_0x28f0f5=_0x28f0f5-0x0;let _0xd59859=a524_0x3641[_0x28f0f5];return _0xd59859;};const _0x12a1da=a524_0xd598;'use strict';const attributes=require(_0x12a1da('0x0'));module[_0x12a1da('0x3')]=function(_0x11e2fc){const _0xba7cfa=_0x12a1da,_0x4d83c1=_0x11e2fc[_0xba7cfa('0x1')](_0xba7cfa('0x2'),attributes,{'tableName':'report_agent_preview','paranoid':![],'indexes':[],'timestamps':!![]});return _0x4d83c1;}; \ No newline at end of file +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 diff --git a/server/api/reportAgentPreview/reportAgentPreview.rpc.js b/server/api/reportAgentPreview/reportAgentPreview.rpc.js index 999d2bc..c161231 100644 --- a/server/api/reportAgentPreview/reportAgentPreview.rpc.js +++ b/server/api/reportAgentPreview/reportAgentPreview.rpc.js @@ -1 +1 @@ -const a525_0x2c41=['raw','debug','../../config/logger','message','ReportAgentPreview','then','body','error','create','../../mysqldb','rpc','CreateReportAgentPreview','stringify','info','options'];(function(_0x5dc79d,_0x2c4156){const _0x207fda=function(_0x2e33ec){while(--_0x2e33ec){_0x5dc79d['push'](_0x5dc79d['shift']());}};_0x207fda(++_0x2c4156);}(a525_0x2c41,0x8c));const a525_0x207f=function(_0x5dc79d,_0x2c4156){_0x5dc79d=_0x5dc79d-0x0;let _0x207fda=a525_0x2c41[_0x5dc79d];return _0x207fda;};const _0x3e3a7a=a525_0x207f;'use strict';const db=require(_0x3e3a7a('0x4'))['db'],logger=require(_0x3e3a7a('0xc'))(_0x3e3a7a('0x5'));exports[_0x3e3a7a('0x6')]=function(_0x2e33ec){const _0x5f0665=this;return new Promise(function(_0xe4d810,_0x3dbafd){const _0x4861ce=a525_0x207f;return db[_0x4861ce('0xe')][_0x4861ce('0x3')](_0x2e33ec[_0x4861ce('0x1')],{'raw':_0x2e33ec[_0x4861ce('0x9')]?_0x2e33ec['options'][_0x4861ce('0xa')]===undefined?!![]:![]:!![]})[_0x4861ce('0x0')](function(_0xaf55d3){const _0x27deda=_0x4861ce;logger[_0x27deda('0x8')](_0x27deda('0x6'),_0x2e33ec),logger[_0x27deda('0xb')](_0x27deda('0x6'),_0x2e33ec,JSON[_0x27deda('0x7')](_0xaf55d3)),_0xe4d810(_0xaf55d3);})['catch'](function(_0x507815){const _0x31eaa3=_0x4861ce;logger[_0x31eaa3('0x2')](_0x31eaa3('0x6'),_0x507815[_0x31eaa3('0xd')],_0x2e33ec),_0x3dbafd(_0x5f0665[_0x31eaa3('0x2')](0x1f4,_0x507815[_0x31eaa3('0xd')]));});});}; \ No newline at end of file +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 diff --git a/server/api/rpc/index.js b/server/api/rpc/index.js index cececdf..d7129a9 100644 --- a/server/api/rpc/index.js +++ b/server/api/rpc/index.js @@ -1 +1 @@ -const a526_0x3c6f=['chatQueues','express','/fax/queues/waitinginteractions','showWhatsappQueues','/openchannel/queues/:id/waitinginteractions','whatsapp','agentNotify','/chat/queues/waitinginteractions','/fax/queues/:id','trunks','get','voiceChannels','voiceQueuesPreview','sms','/voice/queues/:id','/voice/queues/channels/:uniqueid/hangup','showVoiceQueues','agents','openchannelQueues','/voice/queues/preview/:id','smsQueues','/whatsapp/queues/waitinginteractions','/mail/queues/:id/notify','/mail/queues','smsQueuesWaitingInteractions','exports','../../components/auth/service','post','voiceChannelMixMonitor','queueNotify','voiceQueuesChannel','voiceChannelStopMixMonitor','openchannel','mailAccounts','/mail/queues/waitinginteractions','showChatQueues','./rpc.controller','/openchannel/queues/waitinginteractions','/sms/queues/:id/notify','fax','openchannelQueuesIdWaitingInteractions','/sms/queues/:id','/fax/accounts','/voice/queues/channels/:uniqueid','/chat/queues/:id','/voice/queues','/telephones','isAuthenticated','/openchannel/queues','/whatsapp/queues/:id','/sms/queues','voiceQueuesChannels','showFaxQueues','/trunks','/voice/channels','/campaigns','voiceQueues','whatsappQueuesWaitingInteractions','/voice/queues/channels/:uniqueid/redirect/:exten','/voice/channels/:uniqueid/stopmixmonitor','telephones','voiceQueuesChannelRedirect','/chat/queues','/mail/queues/:id','/openchannel/queues/:id/notify','/mail/accounts','chatQueuesWaitingInteractions','openchannelQueuesWaitingInteractions','voiceQueuesChannelHangup','faxQueuesWaitingInteractions','faxAccounts','/voice/channels/:uniqueid/mixmonitor'];(function(_0x530ccd,_0x3c6f8f){const _0x2fca78=function(_0xd4e418){while(--_0xd4e418){_0x530ccd['push'](_0x530ccd['shift']());}};_0x2fca78(++_0x3c6f8f);}(a526_0x3c6f,0x1bd));const a526_0x2fca=function(_0x530ccd,_0x3c6f8f){_0x530ccd=_0x530ccd-0x0;let _0x2fca78=a526_0x3c6f[_0x530ccd];return _0x2fca78;};const _0x1d424b=a526_0x2fca;'use strict';const express=require(_0x1d424b('0x3c')),router=express['Router'](),auth=require(_0x1d424b('0xd')),controller=require(_0x1d424b('0x17'));router[_0x1d424b('0x45')](_0x1d424b('0x29'),auth['isAuthenticated'](),controller[_0x1d424b('0x46')]),router[_0x1d424b('0x45')](_0x1d424b('0x3a'),auth['isAuthenticated'](),controller[_0x1d424b('0xf')]),router[_0x1d424b('0x45')](_0x1d424b('0x2e'),auth[_0x1d424b('0x22')](),controller[_0x1d424b('0x12')]),router[_0x1d424b('0x45')](_0x1d424b('0x20'),auth[_0x1d424b('0x22')](),controller[_0x1d424b('0x2b')]),router[_0x1d424b('0x45')](_0x1d424b('0x31'),auth[_0x1d424b('0x22')](),controller[_0x1d424b('0x3b')]),router[_0x1d424b('0x45')](_0x1d424b('0xa'),auth[_0x1d424b('0x22')](),controller['mailQueues']),router[_0x1d424b('0x45')](_0x1d424b('0x34'),auth[_0x1d424b('0x22')](),controller[_0x1d424b('0x14')]),router[_0x1d424b('0x45')](_0x1d424b('0x23'),auth[_0x1d424b('0x22')](),controller[_0x1d424b('0x5')]),router[_0x1d424b('0x45')](_0x1d424b('0x25'),auth[_0x1d424b('0x22')](),controller[_0x1d424b('0x7')]),router[_0x1d424b('0x45')]('/whatsapp/queues',auth[_0x1d424b('0x22')](),controller['whatsappQueues']),router[_0x1d424b('0x45')]('/fax/queues',auth[_0x1d424b('0x22')](),controller['faxQueues']),router[_0x1d424b('0x45')](_0x1d424b('0x6'),auth[_0x1d424b('0x22')](),controller[_0x1d424b('0x47')]),router[_0x1d424b('0x45')]('/voice/queues/channels',auth[_0x1d424b('0x22')](),controller[_0x1d424b('0x26')]),router[_0x1d424b('0x45')](_0x1d424b('0x1e'),auth[_0x1d424b('0x22')](),controller[_0x1d424b('0x11')]),router[_0x1d424b('0x45')](_0x1d424b('0x2'),auth[_0x1d424b('0x22')](),controller[_0x1d424b('0x37')]),router[_0x1d424b('0x45')](_0x1d424b('0x2d'),auth[_0x1d424b('0x22')](),controller[_0x1d424b('0x30')]),router[_0x1d424b('0x45')](_0x1d424b('0x1'),auth[_0x1d424b('0x22')](),controller[_0x1d424b('0x3')]),router['get']('/outbound',auth['isAuthenticated'](),controller['outbound']),router[_0x1d424b('0x45')]('/outbound/channels',auth['isAuthenticated'](),controller['outboundChannels']),router[_0x1d424b('0x45')]('/agents',auth[_0x1d424b('0x22')](),controller[_0x1d424b('0x4')]),router['put']('/agents/:id/capacity',auth[_0x1d424b('0x22')](),controller['agentCapacity']),router['get'](_0x1d424b('0x21'),auth[_0x1d424b('0x22')](),controller[_0x1d424b('0x2f')]),router[_0x1d424b('0x45')](_0x1d424b('0x28'),auth['isAuthenticated'](),controller[_0x1d424b('0x44')]),router[_0x1d424b('0x45')](_0x1d424b('0x2a'),auth[_0x1d424b('0x22')](),controller['campaigns']),router['get'](_0x1d424b('0x1d'),auth[_0x1d424b('0x22')](),controller[_0x1d424b('0x39')]),router[_0x1d424b('0x45')](_0x1d424b('0x42'),auth[_0x1d424b('0x22')](),controller[_0x1d424b('0x35')]),router['get'](_0x1d424b('0x15'),auth[_0x1d424b('0x22')](),controller['mailQueuesWaitingInteractions']),router[_0x1d424b('0x45')](_0x1d424b('0x18'),auth[_0x1d424b('0x22')](),controller[_0x1d424b('0x36')]),router[_0x1d424b('0x45')](_0x1d424b('0x3f'),auth[_0x1d424b('0x22')](),controller[_0x1d424b('0x1b')]),router[_0x1d424b('0x45')]('/sms/queues/waitinginteractions',auth[_0x1d424b('0x22')](),controller[_0x1d424b('0xb')]),router[_0x1d424b('0x45')](_0x1d424b('0x8'),auth[_0x1d424b('0x22')](),controller[_0x1d424b('0x2c')]),router['get'](_0x1d424b('0x3d'),auth[_0x1d424b('0x22')](),controller[_0x1d424b('0x38')]),router['post'](_0x1d424b('0x9'),auth[_0x1d424b('0x22')](),controller['queueNotify']('mail')),router['get'](_0x1d424b('0x32'),auth['isAuthenticated'](),controller['showMailQueues']),router[_0x1d424b('0xe')]('/chat/queues/:id/notify',auth[_0x1d424b('0x22')](),controller[_0x1d424b('0x10')]('chat')),router[_0x1d424b('0x45')](_0x1d424b('0x1f'),auth[_0x1d424b('0x22')](),controller[_0x1d424b('0x16')]),router[_0x1d424b('0xe')]('/fax/queues/:id/notify',auth[_0x1d424b('0x22')](),controller['queueNotify'](_0x1d424b('0x1a'))),router[_0x1d424b('0x45')](_0x1d424b('0x43'),auth['isAuthenticated'](),controller[_0x1d424b('0x27')]),router[_0x1d424b('0xe')](_0x1d424b('0x33'),auth['isAuthenticated'](),controller[_0x1d424b('0x10')](_0x1d424b('0x13'))),router[_0x1d424b('0x45')]('/openchannel/queues/:id',auth[_0x1d424b('0x22')](),controller['showOpenchannelQueues']),router[_0x1d424b('0xe')](_0x1d424b('0x19'),auth[_0x1d424b('0x22')](),controller[_0x1d424b('0x10')](_0x1d424b('0x0'))),router[_0x1d424b('0xe')]('/whatsapp/queues/:id/notify',auth['isAuthenticated'](),controller['queueNotify'](_0x1d424b('0x40'))),router[_0x1d424b('0x45')](_0x1d424b('0x1c'),auth[_0x1d424b('0x22')](),controller['showSmsQueues']),router[_0x1d424b('0x45')](_0x1d424b('0x24'),auth[_0x1d424b('0x22')](),controller[_0x1d424b('0x3e')]),router[_0x1d424b('0xe')]('/agents/:id/notify',auth['isAuthenticated'](),controller[_0x1d424b('0x41')]),module[_0x1d424b('0xc')]=router; \ No newline at end of file +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 diff --git a/server/api/rpc/rpc.controller.js b/server/api/rpc/rpc.controller.js index a595012..3a492a4 100644 --- a/server/api/rpc/rpc.controller.js +++ b/server/api/rpc/rpc.controller.js @@ -1 +1 @@ -const a527_0x39e6=['OutboundChannels','chat','openchannelQueuesWaitingInteractions','then','MemberReport','name','update','outbound','filter','voiceQueuesChannelRedirect','Account','Website','From','params','code','voiceQueuesChannels','VoiceQueuesChannelRedirect','SIP/%s','VoiceChannelStopMixMonitor','interaction','faxQueues','http','sendStatus','interface','undefined','findOne','AgentCapacity','INTERACTION','agentTransferTimeout','body','findOrCreate','agents','isNil','showMailQueues','../../mysqldb','VoiceChannelMixMonitor','whatsappQueuesWaitingInteractions','showFaxQueues','util','voiceQueuesPreview','result','Message','status','value','VoiceQueues','agent','Interaction','lodash','indexOf','VoiceQueuesPreview','Outbound','telephones','voiceQueuesChannelHangup','stack','trunks','queueTransferTimeout','api','showOpenchannelQueues','FaxQueues','queue_id','faxAccounts','OpenchannelQueuesWaitingInteractions','mailAccounts','channel','showVoiceQueues','rows','openchannelQueuesIdWaitingInteractions','OpenchannelQueues','../../config/logger','sequelize','message','outboundChannels','user','query','SmsQueues','create','TransferReport','Agents','WhatsappQueuesWaitingInteractions','MailQueuesWaitingInteractions','MailQueues','showSmsQueues','VoiceQueuesChannelHangup','ChatQueues','InteractionId','FaxQueuesWaitingInteractions','moment','whatsappQueues','*,*,*,*','agentNotify','send','find','SmsQueuesWaitingInteractions','voiceChannelMixMonitor','voiceQueues','agentCapacity','WhatsappQueues','VoiceQueuesChannels','Telephones','voiceChannels','Start','queueNotify','queue','MessageId','catch','\x20Message\x20not\x20found','jayson/promise','client','FaxAccounts','Channel\x20field\x20is\x20mandatory','capacity','json','length','campaigns','type','error','messageId','format','merge','notIn','smsQueues','uniq','internal'];(function(_0x11f9cb,_0x39e689){const _0x2b1dc6=function(_0x189040){while(--_0x189040){_0x11f9cb['push'](_0x11f9cb['shift']());}};_0x2b1dc6(++_0x39e689);}(a527_0x39e6,0x1a7));const a527_0x2b1d=function(_0x11f9cb,_0x39e689){_0x11f9cb=_0x11f9cb-0x0;let _0x2b1dc6=a527_0x39e6[_0x11f9cb];return _0x2b1dc6;};const _0x11e1f8=a527_0x2b1d;'use strict';const moment=require(_0x11e1f8('0x20')),_=require(_0x11e1f8('0x74')),util=require(_0x11e1f8('0x6b')),db=require(_0x11e1f8('0x67'))['db'],{Op}=require(_0x11e1f8('0xf')),logger=require(_0x11e1f8('0xe'))(_0x11e1f8('0x2')),jayson=require(_0x11e1f8('0x34')),amiClient=jayson[_0x11e1f8('0x35')][_0x11e1f8('0x5a')]({'port':0x232a}),mailClient=jayson[_0x11e1f8('0x35')]['http']({'port':0x232b}),routingClient=jayson[_0x11e1f8('0x35')][_0x11e1f8('0x5a')]({'port':0x232c});function respondWithRpcPromise(_0x189040,_0x242a05,_0x24138a){return new Promise(function(_0x58f9a9,_0x104daa){const _0x4bf93c=a527_0x2b1d,_0x3800da=_0x24138a?_0x24138a:amiClient;return _0x3800da['request'](_0x189040,_0x242a05)[_0x4bf93c('0x48')](function(_0x4fd882){const _0x1d247e=_0x4bf93c;if(_0x4fd882['error']){if(_0x4fd882[_0x1d247e('0x3d')][_0x1d247e('0x53')]===0x1f4)return _0x104daa(_0x4fd882[_0x1d247e('0x3d')]['message']);return _0x58f9a9(_0x4fd882[_0x1d247e('0x3d')][_0x1d247e('0x10')]);}else _0x58f9a9(_0x4fd882[_0x1d247e('0x6d')]);})[_0x4bf93c('0x32')](function(_0x477950){_0x104daa(_0x477950);});});}function respondWithResult(_0x4dfe1c,_0x2cbf0){return _0x2cbf0=_0x2cbf0||0xc8,function(_0x413298){const _0x4cc16d=a527_0x2b1d;if(_0x413298)return _0x4dfe1c[_0x4cc16d('0x6f')](_0x2cbf0)[_0x4cc16d('0x39')](_0x413298);return _0x4dfe1c[_0x4cc16d('0x5b')](0x194);};}function handleError(_0x551905,_0x27bed8){return _0x27bed8=_0x27bed8||0x1f4,function(_0xeee409){const _0x5daa21=a527_0x2b1d;logger[_0x5daa21('0x3d')](_0xeee409[_0x5daa21('0x7a')]),_0xeee409['name']&&delete _0xeee409['name'],_0x551905[_0x5daa21('0x6f')](_0x27bed8)[_0x5daa21('0x24')](_0xeee409);};}function findById(_0x919e12){return function(_0x3dca50){const _0x57300e=a527_0x2b1d;if(!_['isNil'](_0x919e12)&&!_[_0x57300e('0x65')](_0x3dca50)&&!_['isNil'](_0x3dca50[_0x57300e('0xb')]))return _[_0x57300e('0x25')](_0x3dca50['rows'],function(_0x4b8e92){return _0x4b8e92['id']==_0x919e12;});return null;};}exports[_0x11e1f8('0x2d')]=function(_0x54426b,_0x2c6e16){const _0x2999a0=_0x11e1f8;return respondWithRpcPromise('VoiceChannels',_0x54426b['query'])['then'](respondWithResult(_0x2c6e16,null))[_0x2999a0('0x32')](handleError(_0x2c6e16,null));},exports[_0x11e1f8('0x27')]=function(_0x1d38ef,_0x5b06a6){const _0x42b507=_0x11e1f8;return respondWithRpcPromise(_0x42b507('0x68'),_['merge'](_0x1d38ef[_0x42b507('0x13')],_0x1d38ef['params']))[_0x42b507('0x48')](respondWithResult(_0x5b06a6,null))[_0x42b507('0x32')](handleError(_0x5b06a6,null));},exports['voiceChannelStopMixMonitor']=function(_0x5218f1,_0x1fbee3){const _0x306569=_0x11e1f8;return respondWithRpcPromise(_0x306569('0x57'),_[_0x306569('0x40')](_0x5218f1[_0x306569('0x13')],_0x5218f1['params']))[_0x306569('0x48')](respondWithResult(_0x1fbee3,null))[_0x306569('0x32')](handleError(_0x1fbee3,null));},exports[_0x11e1f8('0x28')]=function(_0x4f493f,_0x1b9d34){const _0x3b4c90=_0x11e1f8;return respondWithRpcPromise(_0x3b4c90('0x71'),_0x4f493f[_0x3b4c90('0x13')])[_0x3b4c90('0x48')](respondWithResult(_0x1b9d34,null))[_0x3b4c90('0x32')](handleError(_0x1b9d34,null));},exports[_0x11e1f8('0xa')]=function(_0x21522b,_0x148185){const _0x520651=_0x11e1f8;return respondWithRpcPromise(_0x520651('0x71'),_0x21522b['query'])[_0x520651('0x48')](findById(_0x21522b[_0x520651('0x52')]['id']))[_0x520651('0x48')](respondWithResult(_0x148185,null))[_0x520651('0x32')](handleError(_0x148185,null));},exports[_0x11e1f8('0x6c')]=function(_0x143e51,_0xa5cc2a){const _0x5975ab=_0x11e1f8;return respondWithRpcPromise(_0x5975ab('0x76'),_[_0x5975ab('0x40')](_0x143e51[_0x5975ab('0x13')],_0x143e51[_0x5975ab('0x52')]))[_0x5975ab('0x48')](respondWithResult(_0xa5cc2a,null))['catch'](handleError(_0xa5cc2a,null));},exports[_0x11e1f8('0x54')]=function(_0x556d7f,_0x40ff63){const _0x5140b8=_0x11e1f8;return respondWithRpcPromise(_0x5140b8('0x2b'),_0x556d7f[_0x5140b8('0x13')])[_0x5140b8('0x48')](respondWithResult(_0x40ff63,null))[_0x5140b8('0x32')](handleError(_0x40ff63,null));},exports['voiceQueuesChannel']=function(_0x3fcb1a,_0x3e864d){const _0x2b1a85=_0x11e1f8;return respondWithRpcPromise('VoiceQueuesChannel',_['merge'](_0x3fcb1a[_0x2b1a85('0x13')],_0x3fcb1a[_0x2b1a85('0x52')]))[_0x2b1a85('0x48')](respondWithResult(_0x3e864d,null))['catch'](handleError(_0x3e864d,null));},exports[_0x11e1f8('0x79')]=function(_0x22b2a6,_0x4501cf){const _0x70b4f0=_0x11e1f8;return respondWithRpcPromise(_0x70b4f0('0x1c'),_[_0x70b4f0('0x40')](_0x22b2a6[_0x70b4f0('0x13')],_0x22b2a6[_0x70b4f0('0x52')]))['then'](respondWithResult(_0x4501cf,null))['catch'](handleError(_0x4501cf,null));},exports[_0x11e1f8('0x4e')]=function(_0x5f4fd0,_0x20c34b){const _0x5776c1=_0x11e1f8;return respondWithRpcPromise(_0x5776c1('0x55'),_[_0x5776c1('0x40')](_0x5f4fd0[_0x5776c1('0x13')],_0x5f4fd0['params']))[_0x5776c1('0x48')](respondWithResult(_0x20c34b,null))[_0x5776c1('0x32')](handleError(_0x20c34b,null));},exports[_0x11e1f8('0x4c')]=function(_0x714684,_0x5275d0){const _0x210f05=_0x11e1f8;return respondWithRpcPromise(_0x210f05('0x77'),_0x714684['query'])[_0x210f05('0x48')](respondWithResult(_0x5275d0,null))['catch'](handleError(_0x5275d0,null));},exports[_0x11e1f8('0x11')]=function(_0x52a135,_0x1884e8){const _0x574821=_0x11e1f8;return respondWithRpcPromise(_0x574821('0x45'),_0x52a135[_0x574821('0x13')])[_0x574821('0x48')](respondWithResult(_0x1884e8,null))[_0x574821('0x32')](handleError(_0x1884e8,null));},exports[_0x11e1f8('0x64')]=function(_0x1f84ec,_0x2b0734){const _0x3f6844=_0x11e1f8;let _0x2cce27;return respondWithRpcPromise(_0x3f6844('0x17'),_0x1f84ec[_0x3f6844('0x13')])[_0x3f6844('0x48')](function(_0x5f2615){const _0x443e87=_0x3f6844;return _0x2cce27=_0x5f2615,respondWithRpcPromise(_0x443e87('0x17'),_0x1f84ec[_0x443e87('0x13')],routingClient);})['then'](function(_0x1e1a28){const _0x35b330=_0x3f6844;return _[_0x35b330('0x40')]({},_0x1e1a28,_0x2cce27);})[_0x3f6844('0x48')](respondWithResult(_0x2b0734,null))[_0x3f6844('0x32')](handleError(_0x2b0734,null));},exports[_0x11e1f8('0x29')]=function(_0x255e52,_0x519f75){const _0x47dff9=_0x11e1f8;if(_0x255e52[_0x47dff9('0x62')]&&_0x255e52[_0x47dff9('0x62')][_0x47dff9('0x58')]&&_0x255e52[_0x47dff9('0x12')]&&_0x255e52['user'][_0x47dff9('0x4a')])for(const _0x5db1a9 in _0x255e52[_0x47dff9('0x62')][_0x47dff9('0x58')]){if(typeof _0x255e52[_0x47dff9('0x62')][_0x47dff9('0x58')][_0x5db1a9]!==_0x47dff9('0x5d')){db['MemberReport']['findAll']({'where':{'channel':_0x5db1a9,'membername':_0x255e52['user'][_0x47dff9('0x4a')],'type':_0x47dff9('0x60'),'exitAt':null,'uniqueid':_0x255e52[_0x47dff9('0x62')]['interaction'][_0x5db1a9]&&_0x255e52['body'][_0x47dff9('0x58')][_0x5db1a9][_0x47dff9('0x3a')]?{[Op[_0x47dff9('0x41')]]:_0x255e52['body'][_0x47dff9('0x58')][_0x5db1a9]}:{[Op['ne']]:null}}})[_0x47dff9('0x48')](function(_0x37dddd){const _0x3d69e6=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');for(let _0x1aa9f9=0x0,_0x54a29b=_0x37dddd['length'];_0x1aa9f9<_0x54a29b;_0x1aa9f9+=0x1){_0x37dddd[_0x1aa9f9]['update']({'exitAt':_0x3d69e6});}});for(let _0x55dda5=0x0;_0x55dda5<_0x255e52['body'][_0x47dff9('0x58')][_0x5db1a9][_0x47dff9('0x3a')];_0x55dda5+=0x1){db[_0x47dff9('0x49')][_0x47dff9('0x63')]({'where':{'channel':_0x5db1a9,'membername':_0x255e52[_0x47dff9('0x12')]['name'],'type':_0x47dff9('0x60'),'uniqueid':_0x255e52[_0x47dff9('0x62')][_0x47dff9('0x58')][_0x5db1a9][_0x55dda5],'exitAt':null},'defaults':{'channel':_0x5db1a9,'membername':_0x255e52[_0x47dff9('0x12')]['name'],'interface':_[_0x47dff9('0x65')](_0x255e52[_0x47dff9('0x12')][_0x47dff9('0x5c')])?util['format'](_0x47dff9('0x56'),_0x255e52[_0x47dff9('0x12')][_0x47dff9('0x4a')]):_0x255e52[_0x47dff9('0x12')][_0x47dff9('0x5c')],'type':_0x47dff9('0x60'),'enterAt':moment()[_0x47dff9('0x3f')]('YYYY-MM-DD\x20HH:mm:ss'),'role':_0x47dff9('0x72'),'internal':_0x255e52[_0x47dff9('0x12')][_0x47dff9('0x44')],'uniqueid':_0x255e52[_0x47dff9('0x62')][_0x47dff9('0x58')][_0x5db1a9][_0x55dda5]}});}}}return respondWithRpcPromise(_0x47dff9('0x5f'),{'id':_0x255e52[_0x47dff9('0x52')]['id'],'capacity':_0x255e52['body'][_0x47dff9('0x38')]},routingClient)[_0x47dff9('0x48')](respondWithResult(_0x519f75,null))[_0x47dff9('0x32')](handleError(_0x519f75,null));},exports[_0x11e1f8('0x78')]=function(_0xa90420,_0x5f5bc5){const _0x2716d3=_0x11e1f8;return respondWithRpcPromise(_0x2716d3('0x2c'),_0xa90420['query'])[_0x2716d3('0x48')](respondWithResult(_0x5f5bc5,null))[_0x2716d3('0x32')](handleError(_0x5f5bc5,null));},exports[_0x11e1f8('0x0')]=function(_0x35d28d,_0x4d197a){const _0x380db8=_0x11e1f8;return respondWithRpcPromise('Trunks',_0x35d28d[_0x380db8('0x13')])[_0x380db8('0x48')](respondWithResult(_0x4d197a,null))[_0x380db8('0x32')](handleError(_0x4d197a,null));},exports[_0x11e1f8('0x3b')]=function(_0x26ed89,_0x5f18e5){const _0x3663f3=_0x11e1f8;return respondWithRpcPromise('Campaigns',_0x26ed89[_0x3663f3('0x13')])[_0x3663f3('0x48')](respondWithResult(_0x5f18e5,null))[_0x3663f3('0x32')](handleError(_0x5f18e5,null));},exports['chatQueues']=function(_0x1527e2,_0x50330f){const _0xafbaa5=_0x11e1f8;return respondWithRpcPromise(_0xafbaa5('0x1d'),_0x1527e2[_0xafbaa5('0x13')],routingClient)[_0xafbaa5('0x48')](respondWithResult(_0x50330f,null))[_0xafbaa5('0x32')](handleError(_0x50330f,null));},exports['showChatQueues']=function(_0x32c523,_0x8e4d05){const _0x3906c2=_0x11e1f8;return respondWithRpcPromise(_0x3906c2('0x1d'),_0x32c523[_0x3906c2('0x13')],routingClient)[_0x3906c2('0x48')](findById(_0x32c523['params']['id']))[_0x3906c2('0x48')](respondWithResult(_0x8e4d05,null))[_0x3906c2('0x32')](handleError(_0x8e4d05,null));},exports['mailQueues']=function(_0x2068de,_0x2b1050){const _0x4b5fec=_0x11e1f8;return respondWithRpcPromise(_0x4b5fec('0x1a'),_0x2068de[_0x4b5fec('0x13')],routingClient)[_0x4b5fec('0x48')](respondWithResult(_0x2b1050,null))[_0x4b5fec('0x32')](handleError(_0x2b1050,null));},exports[_0x11e1f8('0x66')]=function(_0x30172b,_0x5df0a9){const _0x25b724=_0x11e1f8;return respondWithRpcPromise(_0x25b724('0x1a'),_0x30172b['query'],routingClient)[_0x25b724('0x48')](findById(_0x30172b[_0x25b724('0x52')]['id']))['then'](respondWithResult(_0x5df0a9,null))[_0x25b724('0x32')](handleError(_0x5df0a9,null));},exports[_0x11e1f8('0x8')]=function(_0x43c9d9,_0x2d0d93){const _0x46d092=_0x11e1f8;return respondWithRpcPromise('MailAccounts',_0x43c9d9[_0x46d092('0x13')],mailClient)[_0x46d092('0x48')](respondWithResult(_0x2d0d93,null))[_0x46d092('0x32')](handleError(_0x2d0d93,null));},exports['openchannelQueues']=function(_0x3e9989,_0x37d7c1){const _0x1ad5fb=_0x11e1f8;return respondWithRpcPromise(_0x1ad5fb('0xd'),_0x3e9989[_0x1ad5fb('0x13')],routingClient)['then'](respondWithResult(_0x37d7c1,null))[_0x1ad5fb('0x32')](handleError(_0x37d7c1,null));},exports[_0x11e1f8('0x3')]=function(_0x352e3d,_0x7c5296){const _0x228e9e=_0x11e1f8;return respondWithRpcPromise(_0x228e9e('0xd'),_0x352e3d[_0x228e9e('0x13')],routingClient)[_0x228e9e('0x48')](findById(_0x352e3d[_0x228e9e('0x52')]['id']))['then'](respondWithResult(_0x7c5296,null))[_0x228e9e('0x32')](handleError(_0x7c5296,null));},exports[_0x11e1f8('0x42')]=function(_0x3116dc,_0x30d8ba){const _0x5336c5=_0x11e1f8;return respondWithRpcPromise(_0x5336c5('0x14'),_0x3116dc['query'],routingClient)['then'](respondWithResult(_0x30d8ba,null))['catch'](handleError(_0x30d8ba,null));},exports[_0x11e1f8('0x1b')]=function(_0x587da3,_0x4f1552){const _0x21e348=_0x11e1f8;return respondWithRpcPromise('SmsQueues',_0x587da3[_0x21e348('0x13')],routingClient)['then'](findById(_0x587da3[_0x21e348('0x52')]['id']))[_0x21e348('0x48')](respondWithResult(_0x4f1552,null))['catch'](handleError(_0x4f1552,null));},exports[_0x11e1f8('0x21')]=function(_0x33d6fd,_0xdebd37){const _0x5f2bb6=_0x11e1f8;return respondWithRpcPromise(_0x5f2bb6('0x2a'),_0x33d6fd['query'],routingClient)[_0x5f2bb6('0x48')](respondWithResult(_0xdebd37,null))['catch'](handleError(_0xdebd37,null));},exports['showWhatsappQueues']=function(_0xb381a0,_0x4b5e26){const _0x3debe4=_0x11e1f8;return respondWithRpcPromise(_0x3debe4('0x2a'),_0xb381a0['query'],routingClient)[_0x3debe4('0x48')](findById(_0xb381a0['params']['id']))[_0x3debe4('0x48')](respondWithResult(_0x4b5e26,null))[_0x3debe4('0x32')](handleError(_0x4b5e26,null));},exports[_0x11e1f8('0x59')]=function(_0x194e06,_0x105d15){const _0x196cd5=_0x11e1f8;return respondWithRpcPromise('FaxQueues',_0x194e06['query'],routingClient)[_0x196cd5('0x48')](respondWithResult(_0x105d15,null))['catch'](handleError(_0x105d15,null));},exports[_0x11e1f8('0x6a')]=function(_0x2273e9,_0x2cb3bd){const _0x4fba5b=_0x11e1f8;return respondWithRpcPromise(_0x4fba5b('0x4'),_0x2273e9[_0x4fba5b('0x13')],routingClient)[_0x4fba5b('0x48')](findById(_0x2273e9[_0x4fba5b('0x52')]['id']))[_0x4fba5b('0x48')](respondWithResult(_0x2cb3bd,null))[_0x4fba5b('0x32')](handleError(_0x2cb3bd,null));},exports[_0x11e1f8('0x6')]=function(_0x3f1e4a,_0x2f209a){const _0x236371=_0x11e1f8;return respondWithRpcPromise(_0x236371('0x36'),_0x3f1e4a['query'])['then'](respondWithResult(_0x2f209a,null))['catch'](handleError(_0x2f209a,null));},exports['chatQueuesWaitingInteractions']=function(_0x4431ff,_0x3f2193){const _0x45a643=_0x11e1f8;return respondWithRpcPromise('ChatQueuesWaitingInteractions',_0x4431ff[_0x45a643('0x13')],routingClient)[_0x45a643('0x48')](respondWithResult(_0x3f2193,null))[_0x45a643('0x32')](handleError(_0x3f2193,null));},exports['mailQueuesWaitingInteractions']=function(_0x4731bc,_0x2f7cf8){const _0x238571=_0x11e1f8;return respondWithRpcPromise(_0x238571('0x19'),_0x4731bc[_0x238571('0x13')],routingClient)[_0x238571('0x48')](respondWithResult(_0x2f7cf8,null))[_0x238571('0x32')](handleError(_0x2f7cf8,null));},exports[_0x11e1f8('0x47')]=function(_0x4a99b3,_0x1098fd){const _0x4b5177=_0x11e1f8;return respondWithRpcPromise(_0x4b5177('0x7'),_0x4a99b3[_0x4b5177('0x13')],routingClient)[_0x4b5177('0x48')](respondWithResult(_0x1098fd,null))[_0x4b5177('0x32')](handleError(_0x1098fd,null));},exports[_0x11e1f8('0xc')]=function(_0x3babf7,_0x6a539c){const _0x2adc28=_0x11e1f8;return respondWithRpcPromise(_0x2adc28('0x7'),_0x3babf7['query'],routingClient)[_0x2adc28('0x48')](function(_0x23179f){const _0x32256f=_0x2adc28;if(_0x3babf7['query']['type']!==undefined){const _0x3a4973=_(_0x23179f[_0x32256f('0xb')])[_0x32256f('0x4d')]([_0x3babf7[_0x32256f('0x13')][_0x32256f('0x3c')],_0x3babf7[_0x32256f('0x52')]['id']])['map'](_0x32256f('0x5'))[_0x32256f('0x43')]()[_0x32256f('0x70')]();return _0x23179f[_0x32256f('0xb')][_0x32256f('0x4d')](function(_0x47595d){const _0x5f3b46=_0x32256f;return _0x3a4973[_0x5f3b46('0x75')](_0x47595d[_0x5f3b46('0x5')])>-0x1;});}else return _0x23179f[_0x32256f('0xb')]['filter'](function(_0x3c0689){const _0x434c05=_0x32256f;return _0x3c0689['queue_id']===parseInt(_0x3babf7[_0x434c05('0x52')]['id']);});})[_0x2adc28('0x48')](respondWithResult(_0x6a539c,null))[_0x2adc28('0x32')](handleError(_0x6a539c,null));},exports['smsQueuesWaitingInteractions']=function(_0x1425a2,_0x390306){const _0x2aeef3=_0x11e1f8;return respondWithRpcPromise(_0x2aeef3('0x26'),_0x1425a2[_0x2aeef3('0x13')],routingClient)['then'](respondWithResult(_0x390306,null))[_0x2aeef3('0x32')](handleError(_0x390306,null));},exports[_0x11e1f8('0x69')]=function(_0x1446b5,_0x401cba){const _0x5b9393=_0x11e1f8;return respondWithRpcPromise(_0x5b9393('0x18'),_0x1446b5[_0x5b9393('0x13')],routingClient)['then'](respondWithResult(_0x401cba,null))['catch'](handleError(_0x401cba,null));},exports['faxQueuesWaitingInteractions']=function(_0x10df02,_0x4854d7){const _0x373762=_0x11e1f8;return respondWithRpcPromise(_0x373762('0x1f'),_0x10df02['query'],routingClient)[_0x373762('0x48')](respondWithResult(_0x4854d7,null))[_0x373762('0x32')](handleError(_0x4854d7,null));},exports[_0x11e1f8('0x2f')]=function(_0x8822c5){return function(_0x49cb97,_0x326b86){const _0x1a2b83=a527_0x2b1d;let _0x16977b,_0x2efba9;const _0x20fe05=_['capitalize'](_0x8822c5),_0x370b98=_0x8822c5==='chat'?_0x1a2b83('0x50'):_0x1a2b83('0x4f');return db[_0x20fe05+'Queue'][_0x1a2b83('0x5e')]({'raw':!![],'where':{'id':_0x49cb97[_0x1a2b83('0x52')]['id']}})[_0x1a2b83('0x48')](function(_0x23e297){const _0x12c474=_0x1a2b83;if(_[_0x12c474('0x65')](_0x23e297))throw new Error(_0x20fe05+'\x20Queue\x20not\x20found');return _0x16977b=_0x23e297,db[_0x20fe05+_0x12c474('0x6e')][_0x12c474('0x5e')]({'where':{'id':_0x49cb97[_0x12c474('0x62')][_0x12c474('0x3e')]},'include':[{'model':db[_0x20fe05+_0x12c474('0x73')],'as':_0x12c474('0x73')},{'model':db[_0x20fe05+_0x370b98],'as':_0x12c474('0x4f')}]});})[_0x1a2b83('0x48')](function(_0x2d75d4){const _0x257772=_0x1a2b83;if(_[_0x257772('0x65')](_0x2d75d4))throw new Error(_0x20fe05+_0x257772('0x33'));return _0x2efba9=_0x2d75d4,_0x2d75d4[_0x257772('0x4b')]({'read':0x0,'readAt':null,'UserId':null});})[_0x1a2b83('0x48')](function(){const _0x1fecb5=_0x1a2b83,_0x4926b5={'uniqueid':_0x8822c5+'.'+_0x2efba9['id']+'.'+_0x2efba9[_0x1fecb5('0x73')]['id'],'FromUserId':_0x49cb97[_0x1fecb5('0x12')]['id'],'type':_0x1fecb5('0x30')};return _0x4926b5[_0x20fe05+_0x1fecb5('0x31')]=_0x2efba9['id'],_0x4926b5[_0x20fe05+_0x1fecb5('0x1e')]=_0x2efba9[_0x1fecb5('0x73')]['id'],_0x4926b5[_0x1fecb5('0x51')+_0x20fe05+_0x370b98+'Id']=_0x2efba9[_0x1fecb5('0x4f')]['id'],_0x4926b5['To'+_0x20fe05+'QueueId']=_0x16977b['id'],db[_0x20fe05+_0x1fecb5('0x16')][_0x1fecb5('0x15')](_0x4926b5);})['then'](function(){const _0x284865=_0x1a2b83;return respondWithRpcPromise(_0x284865('0x2e'),{'channel':_0x8822c5,'interaction':_0x2efba9[_0x284865('0x73')],'message':_0x2efba9,'account':_0x2efba9[_0x284865('0x4f')],'applications':[{'id':0x0,'priority':0x1,'app':_0x284865('0x30'),'appdata':_0x16977b['name']+','+(_0x2efba9[_0x284865('0x4f')][_0x284865('0x1')]||0x12c),'interval':_0x284865('0x22')}]},routingClient);})[_0x1a2b83('0x48')](respondWithResult(_0x326b86,null))[_0x1a2b83('0x32')](handleError(_0x326b86,null));};},exports[_0x11e1f8('0x23')]=function(_0x9586f5,_0x1dcf26){const _0x5c8d37=_0x11e1f8;let _0x496903,_0x82262e;if(_['isNil'](_0x9586f5['body'][_0x5c8d37('0x9')]))throw new Error(_0x5c8d37('0x37'));const _0xaf07e=_0x9586f5[_0x5c8d37('0x62')][_0x5c8d37('0x9')],_0x91bdf9=_['capitalize'](_0xaf07e),_0x38a2be=_0xaf07e===_0x5c8d37('0x46')?'Website':_0x5c8d37('0x4f');return db['User'][_0x5c8d37('0x5e')]({'raw':!![],'where':{'id':_0x9586f5[_0x5c8d37('0x52')]['id'],'role':_0x5c8d37('0x72')}})['then'](function(_0x318049){const _0xfe0c06=_0x5c8d37;if(_[_0xfe0c06('0x65')](_0x318049))throw new Error('Agent\x20not\x20found');return _0x496903=_0x318049,db[_0x91bdf9+_0xfe0c06('0x6e')][_0xfe0c06('0x5e')]({'where':{'id':_0x9586f5[_0xfe0c06('0x62')][_0xfe0c06('0x3e')]},'include':[{'model':db[_0x91bdf9+_0xfe0c06('0x73')],'as':_0xfe0c06('0x73')},{'model':db[_0x91bdf9+_0x38a2be],'as':_0xfe0c06('0x4f')}]});})[_0x5c8d37('0x48')](function(_0x489690){const _0x5390f9=_0x5c8d37;if(_[_0x5390f9('0x65')](_0x489690))throw new Error(_0x91bdf9+_0x5390f9('0x33'));return _0x82262e=_0x489690,_0x489690[_0x5390f9('0x4b')]({'read':0x0,'readAt':null,'UserId':null});})[_0x5c8d37('0x48')](function(){const _0x1e749e=_0x5c8d37,_0x599763={'uniqueid':_0xaf07e+'.'+_0x82262e['id']+'.'+_0x82262e[_0x1e749e('0x73')]['id'],'FromUserId':_0x9586f5[_0x1e749e('0x12')]['id'],'type':_0x1e749e('0x30'),'ToUserId':_0x496903['id']};return _0x599763[_0x91bdf9+_0x1e749e('0x31')]=_0x82262e['id'],_0x599763[_0x91bdf9+'InteractionId']=_0x82262e[_0x1e749e('0x73')]['id'],_0x599763['From'+_0x91bdf9+_0x38a2be+'Id']=_0x82262e[_0x1e749e('0x4f')]['id'],db[_0x91bdf9+_0x1e749e('0x16')][_0x1e749e('0x15')](_0x599763);})[_0x5c8d37('0x48')](function(){const _0x4a7b09=_0x5c8d37;return respondWithRpcPromise(_0x4a7b09('0x2e'),{'channel':_0xaf07e,'interaction':_0x82262e[_0x4a7b09('0x73')],'message':_0x82262e,'account':_0x82262e['Account'],'applications':[{'id':0x0,'priority':0x1,'app':_0x4a7b09('0x72'),'appdata':_0x496903[_0x4a7b09('0x4a')]+','+(_0x82262e[_0x4a7b09('0x4f')][_0x4a7b09('0x61')]||0x12c),'interval':_0x4a7b09('0x22')}]},routingClient);})['then'](respondWithResult(_0x1dcf26,null))[_0x5c8d37('0x32')](handleError(_0x1dcf26,null));}; \ No newline at end of file +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 diff --git a/server/api/schedule/index.js b/server/api/schedule/index.js index 6d24678..08a5e35 100644 --- a/server/api/schedule/index.js +++ b/server/api/schedule/index.js @@ -1 +1 @@ -const a528_0x10b4=['Router','delete','get','exports','isAuthenticated','destroy','/:id/run','index','/:id','./schedule.controller','../../components/auth/service','create','post','show','update','run'];(function(_0x594cfc,_0x10b485){const _0x4e3219=function(_0x49e142){while(--_0x49e142){_0x594cfc['push'](_0x594cfc['shift']());}};_0x4e3219(++_0x10b485);}(a528_0x10b4,0x73));const a528_0x4e32=function(_0x594cfc,_0x10b485){_0x594cfc=_0x594cfc-0x0;let _0x4e3219=a528_0x10b4[_0x594cfc];return _0x4e3219;};const _0x5d318d=a528_0x4e32;'use strict';const express=require('express'),router=express[_0x5d318d('0xd')](),auth=require(_0x5d318d('0x7')),controller=require(_0x5d318d('0x6'));router[_0x5d318d('0xf')]('/',auth['isAuthenticated'](),controller[_0x5d318d('0x4')]),router['get'](_0x5d318d('0x5'),auth[_0x5d318d('0x1')](),controller[_0x5d318d('0xa')]),router[_0x5d318d('0xf')](_0x5d318d('0x3'),auth['isAuthenticated'](),controller[_0x5d318d('0xc')]),router[_0x5d318d('0x9')]('/',auth[_0x5d318d('0x1')](),controller[_0x5d318d('0x8')]),router['put'](_0x5d318d('0x5'),auth[_0x5d318d('0x1')](),controller[_0x5d318d('0xb')]),router[_0x5d318d('0xe')](_0x5d318d('0x5'),auth[_0x5d318d('0x1')](),controller[_0x5d318d('0x2')]),module[_0x5d318d('0x0')]=router; \ No newline at end of file +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 diff --git a/server/api/schedule/schedule.attributes.js b/server/api/schedule/schedule.attributes.js index da398b9..a505f39 100644 --- a/server/api/schedule/schedule.attributes.js +++ b/server/api/schedule/schedule.attributes.js @@ -1 +1 @@ -const a529_0x1909=['ENUM','minutes','months','custom','DATE','TEXT','0\x200\x20*\x20*\x20*','STRING','days','sequelize','years','csv','pdf','default','BOOLEAN','xlsx'];(function(_0x13d8d2,_0x1909d4){const _0x174d6d=function(_0x9418d8){while(--_0x9418d8){_0x13d8d2['push'](_0x13d8d2['shift']());}};_0x174d6d(++_0x1909d4);}(a529_0x1909,0xb4));const a529_0x174d=function(_0x13d8d2,_0x1909d4){_0x13d8d2=_0x13d8d2-0x0;let _0x174d6d=a529_0x1909[_0x13d8d2];return _0x174d6d;};const _0x351e51=a529_0x174d;'use strict';const Sequelize=require(_0x351e51('0x5'));module['exports']={'name':{'type':Sequelize['STRING'],'allowNull':![]},'description':{'type':Sequelize[_0x351e51('0x3')]},'active':{'type':Sequelize[_0x351e51('0xa')],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize[_0x351e51('0x3')],'allowNull':![],'defaultValue':_0x351e51('0x2')},'startAt':{'type':Sequelize[_0x351e51('0x0')],'allowNull':![]},'endAt':{'type':Sequelize[_0x351e51('0x0')],'allowNull':![]},'subtractNumber':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0x351e51('0xc')](_0x351e51('0x6'),'quarters',_0x351e51('0xe'),'weeks',_0x351e51('0x4'),'hours',_0x351e51('0xd')),'allowNull':![],'defaultValue':_0x351e51('0x4')},'output':{'type':Sequelize[_0x351e51('0xc')](_0x351e51('0x7'),_0x351e51('0x8'),_0x351e51('0xb')),'allowNull':![],'defaultValue':_0x351e51('0x7')},'type':{'type':Sequelize[_0x351e51('0xc')](_0x351e51('0xf'),_0x351e51('0x9')),'allowNull':![],'defaultValue':_0x351e51('0xf')},'sendMail':{'type':Sequelize[_0x351e51('0xa')],'defaultValue':![]},'email':{'type':Sequelize['STRING']},'cc':{'type':Sequelize['TEXT']},'bcc':{'type':Sequelize[_0x351e51('0x1')]},'sendIfEmpty':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]}}; \ No newline at end of file +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 diff --git a/server/api/schedule/schedule.controller.js b/server/api/schedule/schedule.controller.js index 90e767d..34c6f24 100644 --- a/server/api/schedule/schedule.controller.js +++ b/server/api/schedule/schedule.controller.js @@ -1 +1 @@ -const a530_0x5852=['user','fieldName','status','filters','keys','../../config/schedule','fields','index','findOne','sendStatus','options','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','attributes','VIRTUAL','filter','length','run','includeAll','rawAttributes','type','intersection','like','model','name','nolimit','destroy','findAll','UserProfileResource','role','Schedule','get','lodash','include','set','sort','../../components/parsers/qs','create','query','params','where','body','then','offset','limit','UserProfileSection','merge','order','show','count','userProfileId','end','catch','autoAssociation','../../config/logger','key','json','map','sequelize','update'];(function(_0x262402,_0x58525f){const _0x1cee66=function(_0x58336e){while(--_0x58336e){_0x262402['push'](_0x262402['shift']());}};_0x1cee66(++_0x58525f);}(a530_0x5852,0xd1));const a530_0x1cee=function(_0x262402,_0x58525f){_0x262402=_0x262402-0x0;let _0x1cee66=a530_0x5852[_0x262402];return _0x1cee66;};const _0x18dedb=a530_0x1cee;'use strict';const _=require(_0x18dedb('0x3a')),qs=require(_0x18dedb('0x3')),logger=require(_0x18dedb('0x15'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x18dedb('0x19'));function respondWithStatusCode(_0x58336e,_0x4a0c3d){return _0x4a0c3d=_0x4a0c3d||0xcc,function(_0x46ad32){const _0x596b53=a530_0x1cee;if(_0x46ad32)return _0x58336e['sendStatus'](_0x4a0c3d);return _0x58336e[_0x596b53('0x1d')](_0x4a0c3d)[_0x596b53('0x12')]();};}function respondWithResult(_0xd4b3d6,_0x596c7f){return _0x596c7f=_0x596c7f||0xc8,function(_0x436a2d){const _0x428821=a530_0x1cee;if(_0x436a2d)return _0xd4b3d6['status'](_0x596c7f)[_0x428821('0x17')](_0x436a2d);};}function respondWithFilteredResult(_0x1eee86,_0x312181){return function(_0x15fe96){const _0xb9e22a=a530_0x1cee;if(_0x15fe96){const _0x529544=_0x15fe96[_0xb9e22a('0x10')],_0xc01d81=_0x312181[_0xb9e22a('0xa')];let _0x16ac7b=_0x312181[_0xb9e22a('0xa')]+_0x312181[_0xb9e22a('0xb')],_0x903807;return _0x16ac7b>=_0x529544?(_0x16ac7b=_0x529544,_0x903807=0xc8):_0x903807=0xce,_0x1eee86['status'](_0x903807),_0x1eee86[_0xb9e22a('0x1')]('Content-Range',_0xc01d81+'-'+_0x16ac7b+'/'+_0x529544)[_0xb9e22a('0x17')](_0x15fe96);}return null;};}function saveUpdates(_0x49e035){return function(_0x337d38){const _0x341553=a530_0x1cee;if(_0x337d38)return _0x337d38[_0x341553('0x1a')](_0x49e035)[_0x341553('0x9')](function(_0x1a7708){return _0x1a7708;});return null;};}function removeEntity(_0x2ce7f9){return function(_0x5944bb){const _0x1fb225=a530_0x1cee;if(_0x5944bb)return _0x5944bb[_0x1fb225('0x34')]()[_0x1fb225('0x9')](function(){const _0x5df1ef=_0x1fb225,_0x10ab89=_0x5944bb[_0x5df1ef('0x39')]({'plain':!![]}),_0x4fab9e='Scheduler';return db[_0x5df1ef('0x36')]['destroy']({'where':{'type':_0x4fab9e,'resourceId':_0x10ab89['id']}})['then'](function(){return _0x5944bb;});})[_0x1fb225('0x9')](function(){const _0xb573e1=_0x1fb225;_0x2ce7f9[_0xb573e1('0x1d')](0xcc)['end']();});};}function handleEntityNotFound(_0x4125f1){return function(_0x4a75f3){const _0x425232=a530_0x1cee;return!_0x4a75f3&&_0x4125f1[_0x425232('0x24')](0x194),_0x4a75f3;};}function handleError(_0x2d07e8,_0x314692){return _0x314692=_0x314692||0x1f4,function(_0x4c1189){const _0x49fd96=a530_0x1cee;logger['error'](_0x4c1189['stack']),_0x4c1189[_0x49fd96('0x32')]&&delete _0x4c1189['name'],_0x2d07e8[_0x49fd96('0x1d')](_0x314692)['send'](_0x4c1189);};}exports[_0x18dedb('0x22')]=function(_0xda6a61,_0x4012ed){const _0x49bd72=_0x18dedb;let _0x5b1f8b={};const _0x1d1410={},_0x5e769c={'count':0x0,'rows':[]},_0x4aa26e=_['map'](db[_0x49bd72('0x38')][_0x49bd72('0x2d')],function(_0x4f7cd4){const _0x4acf19=_0x49bd72;return{'name':_0x4f7cd4[_0x4acf19('0x1c')],'type':_0x4f7cd4[_0x4acf19('0x2e')][_0x4acf19('0x16')]};});_0x1d1410[_0x49bd72('0x31')]=_[_0x49bd72('0x18')](_0x4aa26e,'name'),_0x1d1410['query']=_['keys'](_0xda6a61[_0x49bd72('0x5')]),_0x1d1410[_0x49bd72('0x1e')]=_['intersection'](_0x1d1410[_0x49bd72('0x31')],_0x1d1410[_0x49bd72('0x5')]),_0x5b1f8b['attributes']=_[_0x49bd72('0x2f')](_0x1d1410[_0x49bd72('0x31')],qs[_0x49bd72('0x21')](_0xda6a61[_0x49bd72('0x5')][_0x49bd72('0x21')])),_0x5b1f8b['attributes']=_0x5b1f8b[_0x49bd72('0x27')][_0x49bd72('0x2a')]?_0x5b1f8b[_0x49bd72('0x27')]:_0x1d1410['model'];typeof _0xda6a61['query'][_0x49bd72('0x33')]==='undefined'&&(_0x5b1f8b[_0x49bd72('0xb')]=qs[_0x49bd72('0xb')](_0xda6a61['query']['limit']),_0x5b1f8b['offset']=qs[_0x49bd72('0xa')](_0xda6a61[_0x49bd72('0x5')]['offset']));_0x5b1f8b[_0x49bd72('0xe')]=qs[_0x49bd72('0x2')](_0xda6a61[_0x49bd72('0x5')][_0x49bd72('0x2')]),_0x5b1f8b[_0x49bd72('0x7')]=qs[_0x49bd72('0x1e')](_['pick'](_0xda6a61[_0x49bd72('0x5')],_0x1d1410['filters']),_0x4aa26e);_0xda6a61[_0x49bd72('0x5')][_0x49bd72('0x29')]&&(_0x5b1f8b['where']=_[_0x49bd72('0xd')](_0x5b1f8b['where'],{[Op['or']]:_[_0x49bd72('0x18')](_0x4aa26e,function(_0x312f1a){const _0x54bbdd=_0x49bd72;if(_0x312f1a[_0x54bbdd('0x2e')]!==_0x54bbdd('0x28')){const _0x507b1e={};return _0x507b1e[_0x312f1a[_0x54bbdd('0x32')]]={[Op[_0x54bbdd('0x30')]]:'%'+_0xda6a61[_0x54bbdd('0x5')][_0x54bbdd('0x29')]+'%'},_0x507b1e;}})}));_0x5b1f8b=_[_0x49bd72('0xd')]({},_0x5b1f8b,_0xda6a61[_0x49bd72('0x25')]);const _0x1c3ac6={'where':_0x5b1f8b[_0x49bd72('0x7')]};return db[_0x49bd72('0x38')][_0x49bd72('0x10')](_0x1c3ac6)[_0x49bd72('0x9')](function(_0x143973){const _0x119e66=_0x49bd72;return _0x5e769c[_0x119e66('0x10')]=_0x143973,_0xda6a61['query'][_0x119e66('0x2c')]&&(_0x5b1f8b[_0x119e66('0x0')]=[{'all':!![]}]),db[_0x119e66('0x38')][_0x119e66('0x35')](_0x5b1f8b);})[_0x49bd72('0x9')](function(_0x2b83c5){return _0x5e769c['rows']=_0x2b83c5,_0x5e769c;})[_0x49bd72('0x9')](respondWithFilteredResult(_0x4012ed,_0x5b1f8b))['catch'](handleError(_0x4012ed,null));},exports[_0x18dedb('0xf')]=function(_0x32d8d4,_0x240033){const _0x4a9259=_0x18dedb;let _0x4e825e={'raw':![],'where':{'id':_0x32d8d4['params']['id']}};const _0x3c192b={};return _0x3c192b['model']=_['keys'](db['Schedule'][_0x4a9259('0x2d')]),_0x3c192b['query']=_[_0x4a9259('0x1f')](_0x32d8d4[_0x4a9259('0x5')]),_0x3c192b[_0x4a9259('0x1e')]=_['intersection'](_0x3c192b[_0x4a9259('0x31')],_0x3c192b[_0x4a9259('0x5')]),_0x4e825e[_0x4a9259('0x27')]=_[_0x4a9259('0x2f')](_0x3c192b['model'],qs[_0x4a9259('0x21')](_0x32d8d4['query'][_0x4a9259('0x21')])),_0x4e825e[_0x4a9259('0x27')]=_0x4e825e[_0x4a9259('0x27')][_0x4a9259('0x2a')]?_0x4e825e[_0x4a9259('0x27')]:_0x3c192b[_0x4a9259('0x31')],_0x32d8d4[_0x4a9259('0x5')][_0x4a9259('0x2c')]&&(_0x4e825e[_0x4a9259('0x0')]=[{'all':!![]}]),_0x4e825e=_['merge']({},_0x4e825e,_0x32d8d4['options']),db[_0x4a9259('0x38')]['findOne'](_0x4e825e)[_0x4a9259('0x9')](handleEntityNotFound(_0x240033,null))[_0x4a9259('0x9')](respondWithResult(_0x240033,null))[_0x4a9259('0x13')](handleError(_0x240033,null));},exports['create']=function(_0x5c933b,_0x3114ef){const _0xec2637=_0x18dedb;return db[_0xec2637('0x38')][_0xec2637('0x4')](_0x5c933b[_0xec2637('0x8')],{})[_0xec2637('0x9')](function(_0x3de262){const _0xdcc8fc=_0xec2637,_0x2a6223=_0x5c933b[_0xdcc8fc('0x1b')][_0xdcc8fc('0x39')]({'plain':!![]});if(!_0x2a6223)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x2a6223[_0xdcc8fc('0x37')]===_0xdcc8fc('0x1b')){const _0x1ae14b=_0x3de262[_0xdcc8fc('0x39')]({'plain':!![]}),_0x2124ac='Scheduler';return db[_0xdcc8fc('0xc')]['findOne']({'where':{'name':_0x2124ac,'userProfileId':_0x2a6223[_0xdcc8fc('0x11')]},'raw':!![]})['then'](function(_0x1316ce){const _0x3599cd=_0xdcc8fc;return _0x1316ce&&_0x1316ce[_0x3599cd('0x14')]===0x0?db[_0x3599cd('0x36')][_0x3599cd('0x4')]({'name':_0x1ae14b[_0x3599cd('0x32')],'resourceId':_0x1ae14b['id'],'type':_0x1316ce[_0x3599cd('0x32')],'sectionId':_0x1316ce['id']},{})[_0x3599cd('0x9')](function(){return _0x3de262;}):_0x3de262;})[_0xdcc8fc('0x13')](function(_0x4e8495){const _0x4f4dbe=_0xdcc8fc;logger['error'](_0x4f4dbe('0x26'),_0x4e8495);throw _0x4e8495;});}return _0x3de262;})['then'](respondWithResult(_0x3114ef,0xc9))[_0xec2637('0x13')](handleError(_0x3114ef,null));},exports[_0x18dedb('0x1a')]=function(_0x4a05f5,_0x2ec257){const _0x5bcf11=_0x18dedb;return _0x4a05f5[_0x5bcf11('0x8')]['id']&&delete _0x4a05f5[_0x5bcf11('0x8')]['id'],db['Schedule'][_0x5bcf11('0x23')]({'where':{'id':_0x4a05f5[_0x5bcf11('0x6')]['id']}})[_0x5bcf11('0x9')](handleEntityNotFound(_0x2ec257,null))['then'](saveUpdates(_0x4a05f5[_0x5bcf11('0x8')],null))[_0x5bcf11('0x9')](respondWithResult(_0x2ec257,null))[_0x5bcf11('0x13')](handleError(_0x2ec257,null));},exports['destroy']=function(_0x52ee8b,_0x255b0e){const _0x1d2c6a=_0x18dedb;return db[_0x1d2c6a('0x38')]['findOne']({'where':{'id':_0x52ee8b[_0x1d2c6a('0x6')]['id']}})[_0x1d2c6a('0x9')](handleEntityNotFound(_0x255b0e,null))[_0x1d2c6a('0x9')](removeEntity(_0x255b0e,null))[_0x1d2c6a('0x13')](handleError(_0x255b0e,null));},exports[_0x18dedb('0x2b')]=function(_0x3f0ffc,_0x20f852){const _0x5b3b3f=_0x18dedb,_0x2a0276=require(_0x5b3b3f('0x20'));return db['Schedule']['findOne']({'where':{'id':_0x3f0ffc[_0x5b3b3f('0x6')]['id']},'raw':!![]})['then'](handleEntityNotFound(_0x20f852,null))[_0x5b3b3f('0x9')](function(){const _0x2521dd=_0x5b3b3f;_0x2a0276[_0x2521dd('0x2b')](_0x3f0ffc[_0x2521dd('0x6')]['id']);})['then'](respondWithStatusCode(_0x20f852,null))['catch'](handleError(_0x20f852,null));}; \ No newline at end of file +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 diff --git a/server/api/schedule/schedule.model.js b/server/api/schedule/schedule.model.js index cadbe23..c40c335 100644 --- a/server/api/schedule/schedule.model.js +++ b/server/api/schedule/schedule.model.js @@ -1 +1 @@ -const a531_0x17d9=['tools_schedules','./schedule.attributes'];(function(_0x19857a,_0x17d9e7){const _0x2629be=function(_0x1fe8e4){while(--_0x1fe8e4){_0x19857a['push'](_0x19857a['shift']());}};_0x2629be(++_0x17d9e7);}(a531_0x17d9,0xfa));const a531_0x2629=function(_0x19857a,_0x17d9e7){_0x19857a=_0x19857a-0x0;let _0x2629be=a531_0x17d9[_0x19857a];return _0x2629be;};const _0x2ac35e=a531_0x2629;'use strict';const attributes=require(_0x2ac35e('0x1'));module['exports']=function(_0x1fe8e4){const _0x1539e7=_0x2ac35e,_0x15a41b=_0x1fe8e4['define']('Schedule',attributes,{'tableName':_0x1539e7('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x15a41b;}; \ No newline at end of file +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 diff --git a/server/api/screenRecording/index.js b/server/api/screenRecording/index.js index 0b05f82..3df052d 100644 --- a/server/api/screenRecording/index.js +++ b/server/api/screenRecording/index.js @@ -1 +1 @@ -const a532_0x5792=['describe','/:id/download','download','exports','./screenRecording.controller','isAuthenticated','update','show','/describe','destroy','post','get','index','/:id','create','Router','../../components/auth/service'];(function(_0x25fb70,_0x579231){const _0x12b7b3=function(_0x47cbef){while(--_0x47cbef){_0x25fb70['push'](_0x25fb70['shift']());}};_0x12b7b3(++_0x579231);}(a532_0x5792,0x1cf));const a532_0x12b7=function(_0x25fb70,_0x579231){_0x25fb70=_0x25fb70-0x0;let _0x12b7b3=a532_0x5792[_0x25fb70];return _0x12b7b3;};const _0x212dd0=a532_0x12b7;'use strict';const express=require('express'),router=express[_0x212dd0('0xb')](),auth=require(_0x212dd0('0xc')),controller=require(_0x212dd0('0x0'));router['get']('/',auth[_0x212dd0('0x1')](),controller[_0x212dd0('0x8')]),router[_0x212dd0('0x7')](_0x212dd0('0x4'),auth['isAuthenticated'](),controller[_0x212dd0('0xd')]),router[_0x212dd0('0x7')](_0x212dd0('0x9'),auth['isAuthenticated'](),controller[_0x212dd0('0x3')]),router[_0x212dd0('0x7')](_0x212dd0('0xe'),auth[_0x212dd0('0x1')](),controller[_0x212dd0('0xf')]),router[_0x212dd0('0x6')]('/',auth[_0x212dd0('0x1')](),controller[_0x212dd0('0xa')]),router['put'](_0x212dd0('0x9'),auth[_0x212dd0('0x1')](),controller[_0x212dd0('0x2')]),router['delete'](_0x212dd0('0x9'),auth[_0x212dd0('0x1')](),controller[_0x212dd0('0x5')]),module[_0x212dd0('0x10')]=router; \ No newline at end of file +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 diff --git a/server/api/screenRecording/screenRecording.attributes.js b/server/api/screenRecording/screenRecording.attributes.js index cd40733..1fbf516 100644 --- a/server/api/screenRecording/screenRecording.attributes.js +++ b/server/api/screenRecording/screenRecording.attributes.js @@ -1 +1 @@ -const a533_0x18b9=['subtract','exports','value','moment','path','DATE','sequelize','format','replace','updatedAt','createdAt','setDataValue','closedAt','VIRTUAL','duration','STRING','INTEGER','getDataValue','extname','MM-DD-YYYY\x20HH:mm','startedAt','toString'];(function(_0x5058ca,_0x18b9f2){const _0x11422f=function(_0x51a525){while(--_0x51a525){_0x5058ca['push'](_0x5058ca['shift']());}};_0x11422f(++_0x18b9f2);}(a533_0x18b9,0x9a));const a533_0x1142=function(_0x5058ca,_0x18b9f2){_0x5058ca=_0x5058ca-0x0;let _0x11422f=a533_0x18b9[_0x5058ca];return _0x11422f;};const _0x4cf4c2=a533_0x1142;'use strict';const Sequelize=require(_0x4cf4c2('0x6')),moment=require(_0x4cf4c2('0x3')),path=require(_0x4cf4c2('0x4'));module[_0x4cf4c2('0x1')]={'format':{'type':Sequelize[_0x4cf4c2('0xd')],'get':function(){const _0x3ccaa9=_0x4cf4c2;return this[_0x3ccaa9('0x11')](_0x3ccaa9('0x2'))?path[_0x3ccaa9('0x12')](this['getDataValue'](_0x3ccaa9('0x2'))):undefined;}},'interactionid':{'type':Sequelize[_0x4cf4c2('0xf')]},'channel':{'type':Sequelize[_0x4cf4c2('0xf')]},'value':{'type':Sequelize[_0x4cf4c2('0xf')],'set':function(_0x51a525){const _0x113ec6=_0x4cf4c2,_0x382cc5=_0x51a525[_0x113ec6('0x8')](/\\/g,'/');this[_0x113ec6('0xb')]('value',_0x382cc5);}},'rating':{'type':Sequelize[_0x4cf4c2('0x10')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize['INTEGER'],'set':function(_0x27bf76){const _0x7fd213=_0x4cf4c2;this[_0x7fd213('0xb')]('startedAt',moment()[_0x7fd213('0x0')](_0x27bf76,'ms')),this[_0x7fd213('0xb')]('closedAt',moment()),this[_0x7fd213('0xb')](_0x7fd213('0xe'),_0x27bf76);}},'startedAt':{'type':Sequelize[_0x4cf4c2('0x5')],'get':function(){const _0x3ad8bf=_0x4cf4c2;return moment(this[_0x3ad8bf('0x11')](_0x3ad8bf('0x14')))[_0x3ad8bf('0x7')]('MM-DD-YYYY\x20HH:mm')[_0x3ad8bf('0x15')]();}},'closedAt':{'type':Sequelize[_0x4cf4c2('0x5')],'get':function(){const _0x47687d=_0x4cf4c2;return moment(this['getDataValue'](_0x47687d('0xc')))[_0x47687d('0x7')]('MM-DD-YYYY\x20HH:mm')[_0x47687d('0x15')]();}},'createdAt':{'type':Sequelize['DATE'],'get':function(){const _0x3532a0=_0x4cf4c2;return moment(this['getDataValue'](_0x3532a0('0xa')))[_0x3532a0('0x7')](_0x3532a0('0x13'))[_0x3532a0('0x15')]();}},'updatedAt':{'type':Sequelize[_0x4cf4c2('0x5')],'get':function(){const _0x4bddd6=_0x4cf4c2;return moment(this['getDataValue'](_0x4bddd6('0x9')))[_0x4bddd6('0x7')](_0x4bddd6('0x13'))[_0x4bddd6('0x15')]();}}}; \ No newline at end of file +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 diff --git a/server/api/screenRecording/screenRecording.controller.js b/server/api/screenRecording/screenRecording.controller.js index de78baa..9d6edcc 100644 --- a/server/api/screenRecording/screenRecording.controller.js +++ b/server/api/screenRecording/screenRecording.controller.js @@ -1 +1 @@ -const a534_0x5578=['rows','options','query','nolimit','describe','root','sequelize','where','include','ScreenRecording','filter','filename','message','body','info','error','destroy','util','order','fields','../../mysqldb','rawAttributes','create','closedAt','duration','sendStatus','includeAll','unlink','index','count','Not\x20found','ValidationError','error-middleware/errors','Entity\x20not\x20found','secrets','params','path','merge','type','api','name','%s.cypher','../../config/environment','like','keys','unlinkSync','lodash','catch','uniqueid','../../components/parsers/qs','send','isNil','update','format','attributes','intersection','json','pick','createdAt','show','limit','map','end','File:\x20\x22','download','existsSync','model','VIRTUAL','value','\x22\x20trovato\x20eseguo\x20la\x20cancellazione','recording','decryptFile','then','stack','ScreenRecording\x20not\x20found','findOne','join','status','.cypher','set','filters','offset','server/files/screen_recordings','sort','undefined'];(function(_0x44b5cb,_0x5578b8){const _0x5b3e70=function(_0x421fb4){while(--_0x421fb4){_0x44b5cb['push'](_0x44b5cb['shift']());}};_0x5b3e70(++_0x5578b8);}(a534_0x5578,0xc2));const a534_0x5b3e=function(_0x44b5cb,_0x5578b8){_0x44b5cb=_0x44b5cb-0x0;let _0x5b3e70=a534_0x5578[_0x44b5cb];return _0x5b3e70;};const _0x263336=a534_0x5b3e;'use strict';const util=require(_0x263336('0x4e')),path=require(_0x263336('0xc')),fs=require('fs'),_=require(_0x263336('0x16')),qs=require(_0x263336('0x19')),logger=require('../../config/logger')(_0x263336('0xf')),config=require(_0x263336('0x12')),db=require(_0x263336('0x51'))['db'],{Op}=require(_0x263336('0x43')),{InternalError}=require(_0x263336('0x8'));function respondWithResult(_0x421fb4,_0x6fb0ce){return _0x6fb0ce=_0x6fb0ce||0xc8,function(_0x13e1d9){const _0x588793=a534_0x5b3e;if(_0x13e1d9)return _0x421fb4['status'](_0x6fb0ce)[_0x588793('0x20')](_0x13e1d9);};}function respondWithFilteredResult(_0x25d20f,_0x4d883f){return function(_0x5a39df){const _0x1d0731=a534_0x5b3e;if(_0x5a39df){const _0x5284e7=_0x5a39df['count'],_0x241e3b=_0x4d883f[_0x1d0731('0x39')];let _0x4e5612=_0x4d883f[_0x1d0731('0x39')]+_0x4d883f[_0x1d0731('0x24')],_0x35bf86;return _0x4e5612>=_0x5284e7?(_0x4e5612=_0x5284e7,_0x35bf86=0xc8):_0x35bf86=0xce,_0x25d20f['status'](_0x35bf86),_0x25d20f[_0x1d0731('0x37')]('Content-Range',_0x241e3b+'-'+_0x4e5612+'/'+_0x5284e7)[_0x1d0731('0x20')](_0x5a39df);}return null;};}function saveUpdates(_0x40b949){return function(_0x5af50d){const _0x2746a7=a534_0x5b3e;if(_0x5af50d)return _0x5af50d[_0x2746a7('0x1c')](_0x40b949)[_0x2746a7('0x30')](function(_0x2ddb58){return _0x2ddb58;});return null;};}function handleEntityNotFound(_0xed9d5e){return function(_0x563971){const _0x216656=a534_0x5b3e;return!_0x563971&&_0xed9d5e[_0x216656('0x1')](0x194),_0x563971;};}function handleError(_0x37c89c,_0x5f13d5){return _0x5f13d5=_0x5f13d5||0x1f4,function(_0x366cf7){const _0x435aff=a534_0x5b3e;logger[_0x435aff('0x4c')](_0x366cf7[_0x435aff('0x31')]),_0x366cf7[_0x435aff('0x10')]&&delete _0x366cf7['name'],_0x37c89c[_0x435aff('0x35')](_0x5f13d5)[_0x435aff('0x1a')](_0x366cf7);};}exports[_0x263336('0x4')]=function(_0x10c7e7,_0x16bc32){const _0x543317=_0x263336;let _0x196a38={};const _0x357ad4={},_0x4bab28={'count':0x0,'rows':[]},_0x4f89af=_[_0x543317('0x25')](db['ScreenRecording'][_0x543317('0x52')],function(_0x396a13){const _0x366243=_0x543317;return{'name':_0x396a13['fieldName'],'type':_0x396a13[_0x366243('0xe')]['key']};});_0x357ad4[_0x543317('0x2a')]=_['differenceBy'](_[_0x543317('0x25')](_0x4f89af,_0x543317('0x10')),['format']),_0x357ad4['query']=_[_0x543317('0x14')](_0x10c7e7['query']),_0x357ad4[_0x543317('0x38')]=_[_0x543317('0x1f')](_0x357ad4[_0x543317('0x2a')],_0x357ad4[_0x543317('0x3f')]),_0x196a38[_0x543317('0x1e')]=_[_0x543317('0x1f')](_0x357ad4['model'],qs['fields'](_0x10c7e7['query']['fields'])),_0x196a38['attributes']=_0x196a38[_0x543317('0x1e')]['length']?_0x196a38[_0x543317('0x1e')]:_0x357ad4[_0x543317('0x2a')];typeof _0x10c7e7[_0x543317('0x3f')][_0x543317('0x40')]===_0x543317('0x3c')&&(_0x196a38[_0x543317('0x24')]=qs[_0x543317('0x24')](_0x10c7e7[_0x543317('0x3f')][_0x543317('0x24')]),_0x196a38[_0x543317('0x39')]=qs[_0x543317('0x39')](_0x10c7e7[_0x543317('0x3f')]['offset']));_0x196a38[_0x543317('0x4f')]=qs[_0x543317('0x3b')](_0x10c7e7[_0x543317('0x3f')][_0x543317('0x3b')]),_0x196a38[_0x543317('0x44')]=qs[_0x543317('0x38')](_[_0x543317('0x21')](_0x10c7e7[_0x543317('0x3f')],_0x357ad4[_0x543317('0x38')]),_0x4f89af);_0x10c7e7['query'][_0x543317('0x47')]&&(_0x196a38[_0x543317('0x44')]=_['merge'](_0x196a38[_0x543317('0x44')],{[Op['or']]:_[_0x543317('0x25')](_0x4f89af,function(_0x2ba8bc){const _0x2aa0a2=_0x543317;if(_0x2ba8bc['type']!==_0x2aa0a2('0x2b')){const _0xfd173d={};return _0xfd173d[_0x2ba8bc['name']]={[Op[_0x2aa0a2('0x13')]]:'%'+_0x10c7e7[_0x2aa0a2('0x3f')]['filter']+'%'},_0xfd173d;}})}));_0x196a38=_[_0x543317('0xd')]({},_0x196a38,_0x10c7e7[_0x543317('0x3e')]);const _0x2f8c75={'where':_0x196a38['where']};return db[_0x543317('0x46')][_0x543317('0x5')](_0x2f8c75)[_0x543317('0x30')](function(_0x242288){const _0x3a8925=_0x543317;return _0x4bab28[_0x3a8925('0x5')]=_0x242288,_0x10c7e7[_0x3a8925('0x3f')][_0x3a8925('0x2')]&&(_0x196a38[_0x3a8925('0x45')]=[{'all':!![]}]),db[_0x3a8925('0x46')]['findAll'](_0x196a38);})[_0x543317('0x30')](function(_0x269a98){const _0x128225=_0x543317;return _0x4bab28[_0x128225('0x3d')]=_0x269a98,_0x4bab28;})['then'](respondWithFilteredResult(_0x16bc32,_0x196a38))[_0x543317('0x17')](handleError(_0x16bc32,null));},exports[_0x263336('0x23')]=function(_0xd0fd3,_0x2ad397){const _0x5ee5f3=_0x263336;let _0x3272e6={'raw':![],'where':{'id':_0xd0fd3[_0x5ee5f3('0xb')]['id']}};const _0x233756={};return _0x233756['model']=_[_0x5ee5f3('0x14')](db[_0x5ee5f3('0x46')][_0x5ee5f3('0x52')]),_0x233756[_0x5ee5f3('0x3f')]=_[_0x5ee5f3('0x14')](_0xd0fd3[_0x5ee5f3('0x3f')]),_0x233756[_0x5ee5f3('0x38')]=_[_0x5ee5f3('0x1f')](_0x233756['model'],_0x233756[_0x5ee5f3('0x3f')]),_0x3272e6[_0x5ee5f3('0x1e')]=_[_0x5ee5f3('0x1f')](_0x233756['model'],qs[_0x5ee5f3('0x50')](_0xd0fd3[_0x5ee5f3('0x3f')][_0x5ee5f3('0x50')])),_0x3272e6[_0x5ee5f3('0x1e')]=_0x3272e6[_0x5ee5f3('0x1e')]['length']?_0x3272e6[_0x5ee5f3('0x1e')]:_0x233756['model'],_0xd0fd3[_0x5ee5f3('0x3f')][_0x5ee5f3('0x2')]&&(_0x3272e6[_0x5ee5f3('0x45')]=[{'all':!![]}]),_0x3272e6=_[_0x5ee5f3('0xd')]({},_0x3272e6,_0xd0fd3[_0x5ee5f3('0x3e')]),db[_0x5ee5f3('0x46')][_0x5ee5f3('0x33')](_0x3272e6)[_0x5ee5f3('0x30')](handleEntityNotFound(_0x2ad397,null))[_0x5ee5f3('0x30')](respondWithResult(_0x2ad397,null))[_0x5ee5f3('0x17')](handleError(_0x2ad397,null));},exports[_0x263336('0x53')]=function(_0x3c06b7,_0x2d11fb){const _0x41a2ee=_0x263336;return db['ScreenRecording'][_0x41a2ee('0x53')](_0x3c06b7['body'],{})[_0x41a2ee('0x30')](respondWithResult(_0x2d11fb,0xc9))[_0x41a2ee('0x17')](handleError(_0x2d11fb,null));},exports[_0x263336('0x1c')]=function(_0x11568d,_0x21c542){const _0x58ee91=_0x263336;return _0x11568d[_0x58ee91('0x4a')]['id']&&delete _0x11568d['body']['id'],delete _0x11568d[_0x58ee91('0x4a')][_0x58ee91('0x0')],delete _0x11568d[_0x58ee91('0x4a')][_0x58ee91('0x22')],delete _0x11568d['body'][_0x58ee91('0x54')],delete _0x11568d['body'][_0x58ee91('0x2c')],db['ScreenRecording']['findOne']({'where':{'id':_0x11568d[_0x58ee91('0xb')]['id']}})[_0x58ee91('0x30')](handleEntityNotFound(_0x21c542,null))[_0x58ee91('0x30')](saveUpdates(_0x11568d['body'],null))[_0x58ee91('0x30')](respondWithResult(_0x21c542,null))['catch'](handleError(_0x21c542,null));},exports[_0x263336('0x41')]=function(_0x2c6ccb,_0x4f9122){const _0x5ab288=_0x263336;return db[_0x5ab288('0x46')][_0x5ab288('0x41')]()['then'](respondWithResult(_0x4f9122,null))[_0x5ab288('0x17')](handleError(_0x4f9122,null));},exports['download']=function(_0x6fe0aa,_0x5bca20){const _0x4ef48a=_0x263336,_0x3be177=require('../../components/encryptor');let _0x17a770=![];const _0x41e661={};return _0x6fe0aa[_0x4ef48a('0x3f')][_0x4ef48a('0xe')]&&_0x6fe0aa[_0x4ef48a('0x3f')][_0x4ef48a('0xe')]===_0x4ef48a('0x18')?_0x41e661[_0x4ef48a('0x18')]=_0x6fe0aa[_0x4ef48a('0xb')]['id']:_0x41e661['id']=_0x6fe0aa[_0x4ef48a('0xb')]['id'],db['ScreenRecording'][_0x4ef48a('0x33')]({'where':_0x41e661,'attributes':['id',_0x4ef48a('0x2c')],'raw':!![]})[_0x4ef48a('0x30')](handleEntityNotFound(_0x5bca20,null))[_0x4ef48a('0x30')](function(_0x5ad329){const _0x2d4187=_0x4ef48a;if(_0x5ad329){const _0x15f06e=path[_0x2d4187('0x34')](config[_0x2d4187('0x42')],'server/files/screen_recordings',_0x5ad329[_0x2d4187('0x2c')]),_0x1fa7dc=util[_0x2d4187('0x1d')](_0x2d4187('0x11'),_0x15f06e);if(fs['existsSync'](_0x1fa7dc))return _0x17a770=!![],_0x3be177[_0x2d4187('0x2f')](_0x1fa7dc,_0x15f06e,config[_0x2d4187('0xa')][_0x2d4187('0x2e')])[_0x2d4187('0x30')](function(){return _0x5ad329;});return _0x5ad329;}})['then'](function(_0x574d57){const _0x2e866f=_0x4ef48a;if(_0x574d57){const _0x11e767=path['join'](config[_0x2e866f('0x42')],_0x2e866f('0x3a'),_0x574d57[_0x2e866f('0x2c')]);if(!fs[_0x2e866f('0x29')](_0x11e767))throw new db['Sequelize'][(_0x2e866f('0x7'))](_0x2e866f('0x32'));return _0x574d57['filename']?_0x5bca20[_0x2e866f('0x28')](_0x11e767,_0x574d57[_0x2e866f('0x48')]+path['extname'](_0x11e767),function(){_0x17a770&&fs['unlink'](_0x11e767);}):_0x5bca20[_0x2e866f('0x28')](_0x11e767,function(){const _0x5edbe3=_0x2e866f;_0x17a770&&fs[_0x5edbe3('0x3')](_0x11e767);});}})['catch'](function(_0x14e918){const _0x352655=_0x4ef48a;if(_0x14e918[_0x352655('0x49')]===_0x352655('0x32'))_0x5bca20[_0x352655('0x35')](0x194)[_0x352655('0x1a')](_0x352655('0x6'));else return handleError(_0x5bca20,null);});},exports[_0x263336('0x4d')]=function(_0x2f2321,_0x24bca2){const _0x3c8745=_0x263336;return db[_0x3c8745('0x46')][_0x3c8745('0x33')]({'where':{'id':_0x2f2321[_0x3c8745('0xb')]['id']}})[_0x3c8745('0x30')](function(_0x25e05f){const _0x363747=_0x3c8745;if(!_0x25e05f)throw new ReferenceError(_0x363747('0x9'));return _0x25e05f;})['then'](function(_0x8a37d5){const _0x1058fb=_0x3c8745;let _0x3041bc=path[_0x1058fb('0x34')](config[_0x1058fb('0x42')],_0x1058fb('0x3a'),_0x8a37d5['value']);return logger[_0x1058fb('0x4b')]('cancellazione\x20fisica\x20documento\x20%s',_0x3041bc),!_[_0x1058fb('0x1b')](_0x8a37d5['value'])&&fs[_0x1058fb('0x29')](_0x3041bc)&&(logger[_0x1058fb('0x4b')]('File:\x20\x22'+_0x3041bc+_0x1058fb('0x2d')),fs[_0x1058fb('0x15')](_0x3041bc)),_0x3041bc=_0x3041bc+_0x1058fb('0x36'),!_[_0x1058fb('0x1b')](_0x8a37d5[_0x1058fb('0x2c')])&&fs[_0x1058fb('0x29')](_0x3041bc)&&(logger[_0x1058fb('0x4b')](_0x1058fb('0x27')+_0x3041bc+'\x22\x20trovato\x20eseguo\x20la\x20cancellazione'),fs[_0x1058fb('0x15')](_0x3041bc)),_0x8a37d5;})[_0x3c8745('0x30')](function(_0x181a7f){const _0x5f06ff=_0x3c8745;if(!_0x181a7f)throw new InternalError();return _0x181a7f[_0x5f06ff('0x4d')]();})[_0x3c8745('0x30')](function(){const _0x101555=_0x3c8745;_0x24bca2['status'](0xcc)[_0x101555('0x26')]();})['catch'](handleError(_0x24bca2,null));}; \ No newline at end of file +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 diff --git a/server/api/screenRecording/screenRecording.model.js b/server/api/screenRecording/screenRecording.model.js index bb970c6..58aba0b 100644 --- a/server/api/screenRecording/screenRecording.model.js +++ b/server/api/screenRecording/screenRecording.model.js @@ -1 +1 @@ -const a535_0x21f7=['screen_recordings','interactionid','ScreenRecording','./screenRecording.attributes'];(function(_0x5a90c6,_0x21f725){const _0x5bb7cb=function(_0x558dbc){while(--_0x558dbc){_0x5a90c6['push'](_0x5a90c6['shift']());}};_0x5bb7cb(++_0x21f725);}(a535_0x21f7,0x1a7));const a535_0x5bb7=function(_0x5a90c6,_0x21f725){_0x5a90c6=_0x5a90c6-0x0;let _0x5bb7cb=a535_0x21f7[_0x5a90c6];return _0x5bb7cb;};const _0x141d4a=a535_0x5bb7;'use strict';const attributes=require(_0x141d4a('0x0'));module['exports']=function(_0x558dbc){const _0x239ab8=_0x141d4a,_0x1331b4=_0x558dbc['define'](_0x239ab8('0x3'),attributes,{'tableName':_0x239ab8('0x1'),'paranoid':![],'indexes':[{'name':_0x239ab8('0x2'),'fields':['interactionid']}],'timestamps':!![]});return _0x1331b4;}; \ No newline at end of file +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 diff --git a/server/api/setting/index.js b/server/api/setting/index.js index e67d097..2f48990 100644 --- a/server/api/setting/index.js +++ b/server/api/setting/index.js @@ -1 +1 @@ -const a536_0x4a6c=['getLogo','path','multer','single','/:id','logologin','/:id/preferred','logo','addFavicon','server/files/images/logos/','addLogoLogin','./setting.controller','/:id/favicon','util','get','exports','root','post','put','addPreferred','../../config/environment','/:id/logo','/:id/logo_login','update','favicon','file','index','gdpr','/:id/gdpr','addLogo','getPreferred','isAuthenticated','format','join','../../components/auth/service','getFavicon','%s%s','extname'];(function(_0x23232a,_0x4a6c8e){const _0x38cb87=function(_0x2067f4){while(--_0x2067f4){_0x23232a['push'](_0x23232a['shift']());}};_0x38cb87(++_0x4a6c8e);}(a536_0x4a6c,0x1f4));const a536_0x38cb=function(_0x23232a,_0x4a6c8e){_0x23232a=_0x23232a-0x0;let _0x38cb87=a536_0x4a6c[_0x23232a];return _0x38cb87;};const _0x4e133e=a536_0x38cb;'use strict';const multer=require(_0x4e133e('0x22')),util=require(_0x4e133e('0x7')),path=require(_0x4e133e('0x21')),express=require('express'),router=express['Router'](),auth=require(_0x4e133e('0x1c')),config=require(_0x4e133e('0xe')),controller=require(_0x4e133e('0x5')),upload=_0x2067f4=>multer({'storage':multer['diskStorage']({'destination':function(_0x2f8fc2,_0x133514,_0x30f014){const _0x58eca5=_0x4e133e;_0x30f014(null,path[_0x58eca5('0x1b')](config[_0x58eca5('0xa')],_0x58eca5('0x3')));},'filename':function(_0x34a8c9,_0x3562d4,_0x37c366){const _0x481711=_0x4e133e;_0x37c366(null,util[_0x481711('0x1a')](_0x481711('0x1e'),_0x2067f4,path[_0x481711('0x1f')](_0x3562d4['originalname'])));}})});router[_0x4e133e('0x8')]('/',auth[_0x4e133e('0x19')](),controller[_0x4e133e('0x14')]),router[_0x4e133e('0x8')](_0x4e133e('0x24'),controller['show']),router[_0x4e133e('0x8')]('/:id/logo',controller[_0x4e133e('0x20')]),router[_0x4e133e('0x8')](_0x4e133e('0x10'),controller['getLogoLogin']),router[_0x4e133e('0x8')](_0x4e133e('0x16'),controller[_0x4e133e('0x15')]),router[_0x4e133e('0x8')]('/:id/preferred',controller[_0x4e133e('0x18')]),router['get'](_0x4e133e('0x6'),controller[_0x4e133e('0x1d')]),router[_0x4e133e('0xb')](_0x4e133e('0xf'),upload(_0x4e133e('0x1'))[_0x4e133e('0x23')]('file'),controller[_0x4e133e('0x17')]),router[_0x4e133e('0xb')](_0x4e133e('0x10'),upload(_0x4e133e('0x25'))[_0x4e133e('0x23')](_0x4e133e('0x13')),controller[_0x4e133e('0x4')]),router[_0x4e133e('0xb')](_0x4e133e('0x0'),upload('preferred')[_0x4e133e('0x23')](_0x4e133e('0x13')),controller[_0x4e133e('0xd')]),router[_0x4e133e('0xb')]('/:id/favicon',upload(_0x4e133e('0x12'))[_0x4e133e('0x23')](_0x4e133e('0x13')),controller[_0x4e133e('0x2')]),router[_0x4e133e('0xc')](_0x4e133e('0x24'),auth[_0x4e133e('0x19')](),controller[_0x4e133e('0x11')]),module[_0x4e133e('0x9')]=router; \ No newline at end of file +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 diff --git a/server/api/setting/setting.attributes.js b/server/api/setting/setting.attributes.js index 7293f6e..6ebd6d2 100644 --- a/server/api/setting/setting.attributes.js +++ b/server/api/setting/setting.attributes.js @@ -1 +1 @@ -const a537_0x1b92=['STRING','BOOLEAN','/var/opt/motion2/server/files/sounds/converted','INTEGER','sequelize'];(function(_0x5c1fc3,_0x1b920a){const _0x2d61c6=function(_0x990e41){while(--_0x990e41){_0x5c1fc3['push'](_0x5c1fc3['shift']());}};_0x2d61c6(++_0x1b920a);}(a537_0x1b92,0x16a));const a537_0x2d61=function(_0x5c1fc3,_0x1b920a){_0x5c1fc3=_0x5c1fc3-0x0;let _0x2d61c6=a537_0x1b92[_0x5c1fc3];return _0x2d61c6;};const _0x2bc49c=a537_0x2d61;'use strict';const Sequelize=require(_0x2bc49c('0x2'));module['exports']={'min_internal':{'type':Sequelize[_0x2bc49c('0x1')](0xb),'unique':'min_internal','defaultValue':0x3e8},'min_mailbox':{'type':Sequelize[_0x2bc49c('0x1')](0xb),'unique':'min_mailbox','defaultValue':0x3e8},'agi_port':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x11dd},'soundPath':{'type':Sequelize[_0x2bc49c('0x3')],'defaultValue':_0x2bc49c('0x0')},'logo':{'type':Sequelize['STRING']},'defaultLogo':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'loginLogo':{'type':Sequelize[_0x2bc49c('0x3')]},'defaultLoginLogo':{'type':Sequelize[_0x2bc49c('0x4')],'defaultValue':!![]},'headerWhiteLabel':{'type':Sequelize[_0x2bc49c('0x3')]},'defaultHeaderWhiteLabel':{'type':Sequelize[_0x2bc49c('0x4')],'defaultValue':!![]},'securePassword':{'type':Sequelize[_0x2bc49c('0x4')],'defaultValue':!![]},'firstSetup':{'type':Sequelize[_0x2bc49c('0x4')],'defaultValue':!![]},'stunaddr':{'type':Sequelize[_0x2bc49c('0x3')]},'turnaddr':{'type':Sequelize['STRING']},'turnusername':{'type':Sequelize[_0x2bc49c('0x3')]},'turnpassword':{'type':Sequelize[_0x2bc49c('0x3')]},'pageTitle':{'type':Sequelize[_0x2bc49c('0x3')]},'defaultPageTitle':{'type':Sequelize[_0x2bc49c('0x4')],'defaultValue':!![]},'callRecordingEncryption':{'type':Sequelize[_0x2bc49c('0x4')],'defaultValue':![]},'passwordExpiresDays':{'type':Sequelize[_0x2bc49c('0x1')](0xb),'defaultValue':0x5a},'phoneBarAutoUpdater':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'phoneBarAutoUpdaterUrl':{'type':Sequelize[_0x2bc49c('0x3')],'defaultValue':'https://www.xcally.com/bar/phonebar/autoupdater.xml'},'enableEmailPreview':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'split':{'type':Sequelize[_0x2bc49c('0x4')],'defaultValue':!![]},'splitSizeCsv':{'type':Sequelize[_0x2bc49c('0x1')],'defaultValue':0x1388},'splitSizePdf':{'type':Sequelize['INTEGER'],'defaultValue':0x1388},'splitSizeXlsx':{'type':Sequelize[_0x2bc49c('0x1')],'defaultValue':0x1388},'messagesAlignment':{'type':Sequelize['STRING'],'defaultValue':'alternate'},'chatTimeout':{'type':Sequelize[_0x2bc49c('0x1')],'defaultValue':0x1e},'phoneBarRememberMeEnabled':{'type':Sequelize[_0x2bc49c('0x4')],'defaultValue':!![]},'preferred':{'type':Sequelize[_0x2bc49c('0x3')]},'defaultPreferred':{'type':Sequelize[_0x2bc49c('0x4')],'defaultValue':!![]},'rtlSupport':{'type':Sequelize[_0x2bc49c('0x4')],'defaultValue':![]},'defaultScreenRecordingPath':{'type':Sequelize[_0x2bc49c('0x3')]},'allowedLoginAttempts':{'type':Sequelize[_0x2bc49c('0x1')],'defaultValue':0x5},'blockDuration':{'type':Sequelize[_0x2bc49c('0x1')],'defaultValue':0xa},'favicon':{'type':Sequelize[_0x2bc49c('0x3')]},'defaultFavicon':{'type':Sequelize[_0x2bc49c('0x4')],'defaultValue':!![]},'loginMailFrequency':{'type':Sequelize['INTEGER'],'defaultValue':0xa,'validate':{'min':0xa}},'transcribe':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'automaticTranscribe':{'type':Sequelize[_0x2bc49c('0x4')],'defaultValue':![]},'transcribeAccountId':{'type':Sequelize[_0x2bc49c('0x1')]},'transcribeRegion':{'type':Sequelize[_0x2bc49c('0x3')]},'sentiment':{'type':Sequelize[_0x2bc49c('0x4')],'defaultValue':![]},'automaticSentiment':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'sentimentAccountId':{'type':Sequelize[_0x2bc49c('0x1')]},'sentimentRegion':{'type':Sequelize[_0x2bc49c('0x3')]},'language':{'type':Sequelize['STRING']},'bucket':{'type':Sequelize[_0x2bc49c('0x3')]},'googleSsoEnabled':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'enforcePasswordHistory':{'type':Sequelize[_0x2bc49c('0x4')],'defaultValue':!![]},'passwordHistoryLimit':{'type':Sequelize[_0x2bc49c('0x1')](0x2)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5}}}; \ No newline at end of file +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 diff --git a/server/api/setting/setting.controller.js b/server/api/setting/setting.controller.js index 4dc7336..2e1dd3c 100644 --- a/server/api/setting/setting.controller.js +++ b/server/api/setting/setting.controller.js @@ -1 +1 @@ -const a538_0x2f68=['favicon','Setting','api','fields','gdpr','rawAttributes','set','addLogoLogin','custom','../../config/logger','status','\x20not\x20found','findAll','defaultLogo','pick','catch','fieldName','existsSync','upperFirst','defaultFavicon','send','options','addFavicon','getLogoLogin','intersection','ValidationError','default_loginLogo.svg','filename','sort','index','findOne','then','sendStatus','includeAll','addLogo','show','nolimit','where','../../components/parsers/qs','defaultLoginLogo','preferred','lodash','defaultPreferred','params','model','key','file','path','name','filter','default','default_preferred.png','length','../../config/environment','map','merge','update','default_favicon.ico','attributes','count','Content-Range','toLower','getFavicon','undefined','join','../../mysqldb','../../config/license/util','logo','default_logo.svg','filters','addPreferred','sequelize','keys','download','root','body','files/images/logos','offset','getLicense','include','query','loginLogo','limit','Sequelize'];(function(_0x576e35,_0x2f68fa){const _0x2f90e6=function(_0xbef70d){while(--_0xbef70d){_0x576e35['push'](_0x576e35['shift']());}};_0x2f90e6(++_0x2f68fa);}(a538_0x2f68,0x8c));const a538_0x2f90=function(_0x576e35,_0x2f68fa){_0x576e35=_0x576e35-0x0;let _0x2f90e6=a538_0x2f68[_0x576e35];return _0x2f90e6;};const _0x25c74b=a538_0x2f90;'use strict';const path=require(_0x25c74b('0x4b')),fs=require('fs'),_=require(_0x25c74b('0x45')),qs=require(_0x25c74b('0x42')),logger=require(_0x25c74b('0x25'))(_0x25c74b('0x1e')),config=require(_0x25c74b('0x51')),db=require(_0x25c74b('0x9'))['db'],{Op}=require(_0x25c74b('0xf')),utilLicense=require(_0x25c74b('0xa'));function respondWithResult(_0xbef70d,_0x50e8c6){return _0x50e8c6=_0x50e8c6||0xc8,function(_0x2d81d9){const _0x23d42b=a538_0x2f90;if(_0x2d81d9)return _0xbef70d[_0x23d42b('0x26')](_0x50e8c6)['json'](_0x2d81d9);};}function respondWithFilteredResult(_0x565a05,_0x24bced){return function(_0x155df3){const _0x260177=a538_0x2f90;if(_0x155df3){const _0x4005e0=_0x155df3[_0x260177('0x3')],_0x8597d0=_0x24bced[_0x260177('0x15')];let _0x21c537=_0x24bced[_0x260177('0x15')]+_0x24bced[_0x260177('0x1a')],_0x1cd547;return _0x21c537>=_0x4005e0?(_0x21c537=_0x4005e0,_0x1cd547=0xc8):_0x1cd547=0xce,_0x565a05[_0x260177('0x26')](_0x1cd547),_0x565a05[_0x260177('0x22')](_0x260177('0x4'),_0x8597d0+'-'+_0x21c537+'/'+_0x4005e0)['json'](_0x155df3);}return null;};}function saveUpdates(_0x4d817c){return function(_0x2a9860){if(_0x2a9860)return _0x2a9860['update'](_0x4d817c)['then'](function(_0x51ee93){return _0x51ee93;});return null;};}function handleEntityNotFound(_0x1ef456){return function(_0x2a35c9){const _0x4f5290=a538_0x2f90;return!_0x2a35c9&&_0x1ef456[_0x4f5290('0x3c')](0x194),_0x2a35c9;};}function handleError(_0x3a7400,_0x22f378){return _0x22f378=_0x22f378||0x1f4,function(_0x58a4d6){const _0x3a0cd8=a538_0x2f90;logger['error'](_0x58a4d6['stack']),_0x58a4d6[_0x3a0cd8('0x4c')]&&delete _0x58a4d6['name'],_0x3a7400[_0x3a0cd8('0x26')](_0x22f378)[_0x3a0cd8('0x30')](_0x58a4d6);};}exports[_0x25c74b('0x39')]=function(_0x1783f8,_0x1fb838){const _0x1bbb3f=_0x25c74b;let _0x1d9adf={};const _0x5f35ea={},_0xc5ca5={'count':0x0,'rows':[]},_0x84bee0=_['map'](db[_0x1bbb3f('0x1d')]['rawAttributes'],function(_0x13da7d){const _0x13d454=_0x1bbb3f;return{'name':_0x13da7d[_0x13d454('0x2c')],'type':_0x13da7d['type'][_0x13d454('0x49')]};});_0x5f35ea['model']=_[_0x1bbb3f('0x52')](_0x84bee0,_0x1bbb3f('0x4c')),_0x5f35ea[_0x1bbb3f('0x18')]=_[_0x1bbb3f('0x10')](_0x1783f8[_0x1bbb3f('0x18')]),_0x5f35ea['filters']=_['intersection'](_0x5f35ea[_0x1bbb3f('0x48')],_0x5f35ea[_0x1bbb3f('0x18')]),_0x1d9adf[_0x1bbb3f('0x2')]=_[_0x1bbb3f('0x34')](_0x5f35ea[_0x1bbb3f('0x48')],qs[_0x1bbb3f('0x1f')](_0x1783f8[_0x1bbb3f('0x18')]['fields'])),_0x1d9adf[_0x1bbb3f('0x2')]=_0x1d9adf[_0x1bbb3f('0x2')][_0x1bbb3f('0x50')]?_0x1d9adf[_0x1bbb3f('0x2')]:_0x5f35ea['model'];typeof _0x1783f8['query'][_0x1bbb3f('0x40')]===_0x1bbb3f('0x7')&&(_0x1d9adf[_0x1bbb3f('0x1a')]=qs[_0x1bbb3f('0x1a')](_0x1783f8[_0x1bbb3f('0x18')]['limit']),_0x1d9adf['offset']=qs[_0x1bbb3f('0x15')](_0x1783f8[_0x1bbb3f('0x18')][_0x1bbb3f('0x15')]));_0x1d9adf['order']=qs[_0x1bbb3f('0x38')](_0x1783f8['query'][_0x1bbb3f('0x38')]),_0x1d9adf[_0x1bbb3f('0x41')]=qs[_0x1bbb3f('0xd')](_[_0x1bbb3f('0x2a')](_0x1783f8[_0x1bbb3f('0x18')],_0x5f35ea['filters']),_0x84bee0);_0x1783f8[_0x1bbb3f('0x18')]['filter']&&(_0x1d9adf[_0x1bbb3f('0x41')]=_[_0x1bbb3f('0x53')](_0x1d9adf[_0x1bbb3f('0x41')],{[Op['or']]:_[_0x1bbb3f('0x52')](_0x84bee0,function(_0x157a3d){const _0x46349c=_0x1bbb3f;if(_0x157a3d['type']!=='VIRTUAL'){const _0x2536e9={};return _0x2536e9[_0x157a3d[_0x46349c('0x4c')]]={[Op['like']]:'%'+_0x1783f8[_0x46349c('0x18')][_0x46349c('0x4d')]+'%'},_0x2536e9;}})}));_0x1d9adf=_[_0x1bbb3f('0x53')]({},_0x1d9adf,_0x1783f8[_0x1bbb3f('0x31')]);const _0x346238={'where':_0x1d9adf[_0x1bbb3f('0x41')]};return db[_0x1bbb3f('0x1d')][_0x1bbb3f('0x3')](_0x346238)['then'](function(_0x16659a){const _0x4edd11=_0x1bbb3f;return _0xc5ca5[_0x4edd11('0x3')]=_0x16659a,_0x1783f8[_0x4edd11('0x18')][_0x4edd11('0x3d')]&&(_0x1d9adf[_0x4edd11('0x17')]=[{'all':!![]}]),db[_0x4edd11('0x1d')][_0x4edd11('0x28')](_0x1d9adf);})['then'](function(_0x55ee6c){return _0xc5ca5['rows']=_0x55ee6c,_0xc5ca5;})['then'](respondWithFilteredResult(_0x1fb838,_0x1d9adf))[_0x1bbb3f('0x2b')](handleError(_0x1fb838,null));},exports[_0x25c74b('0x3f')]=function(_0x464703,_0x19305a){const _0x33f04f=_0x25c74b;let _0x541805={'raw':![],'where':{'id':_0x464703['params']['id']}};const _0x218ce2={};return _0x218ce2[_0x33f04f('0x48')]=_['keys'](db[_0x33f04f('0x1d')][_0x33f04f('0x21')]),_0x218ce2[_0x33f04f('0x18')]=_[_0x33f04f('0x10')](_0x464703[_0x33f04f('0x18')]),_0x218ce2['filters']=_[_0x33f04f('0x34')](_0x218ce2[_0x33f04f('0x48')],_0x218ce2[_0x33f04f('0x18')]),_0x541805[_0x33f04f('0x2')]=_[_0x33f04f('0x34')](_0x218ce2[_0x33f04f('0x48')],qs[_0x33f04f('0x1f')](_0x464703[_0x33f04f('0x18')]['fields'])),_0x541805[_0x33f04f('0x2')]=_0x541805['attributes'][_0x33f04f('0x50')]?_0x541805[_0x33f04f('0x2')]:_0x218ce2[_0x33f04f('0x48')],_0x464703[_0x33f04f('0x18')][_0x33f04f('0x3d')]&&(_0x541805[_0x33f04f('0x17')]=[{'all':!![]}]),_0x541805=_[_0x33f04f('0x53')]({},_0x541805,_0x464703[_0x33f04f('0x31')]),db['Setting'][_0x33f04f('0x3a')](_0x541805)['then'](handleEntityNotFound(_0x19305a,null))['then'](respondWithResult(_0x19305a,null))[_0x33f04f('0x2b')](handleError(_0x19305a,null));},exports[_0x25c74b('0x0')]=function(_0x23c39e,_0x73d265){const _0x17aeb3=_0x25c74b;return _0x23c39e[_0x17aeb3('0x13')]['id']&&delete _0x23c39e['body']['id'],db[_0x17aeb3('0x1d')]['findOne']({'where':{'id':_0x23c39e[_0x17aeb3('0x47')]['id']}})[_0x17aeb3('0x3b')](handleEntityNotFound(_0x73d265,null))['then'](saveUpdates(_0x23c39e['body'],null))['then'](respondWithResult(_0x73d265,null))[_0x17aeb3('0x2b')](handleError(_0x73d265,null));},exports[_0x25c74b('0x3e')]=function(_0x17d3f9,_0x136d6a){const _0x452852=_0x25c74b;return _0x17d3f9['file']&&_0x17d3f9['file']['filename']&&(_0x17d3f9[_0x452852('0x13')][_0x452852('0xb')]=_0x17d3f9[_0x452852('0x4a')][_0x452852('0x37')]),db[_0x452852('0x1d')][_0x452852('0x3a')]({'where':{'id':_0x17d3f9[_0x452852('0x47')]['id']}})[_0x452852('0x3b')](handleEntityNotFound(_0x136d6a,null))[_0x452852('0x3b')](saveUpdates(_0x17d3f9['body'],null))[_0x452852('0x3b')](respondWithResult(_0x136d6a,null))[_0x452852('0x2b')](handleError(_0x136d6a,null));},exports[_0x25c74b('0x23')]=function(_0x1ce4bb,_0x1f9042){const _0x19b0ce=_0x25c74b;return _0x1ce4bb['file']&&_0x1ce4bb[_0x19b0ce('0x4a')][_0x19b0ce('0x37')]&&(_0x1ce4bb['body']['loginLogo']=_0x1ce4bb[_0x19b0ce('0x4a')][_0x19b0ce('0x37')]),db[_0x19b0ce('0x1d')][_0x19b0ce('0x3a')]({'where':{'id':_0x1ce4bb[_0x19b0ce('0x47')]['id']}})[_0x19b0ce('0x3b')](handleEntityNotFound(_0x1f9042,null))[_0x19b0ce('0x3b')](saveUpdates(_0x1ce4bb['body'],null))[_0x19b0ce('0x3b')](respondWithResult(_0x1f9042,null))[_0x19b0ce('0x2b')](handleError(_0x1f9042,null));},exports['getLogo']=function(_0x22f7f4,_0x49804a){const _0x451069=_0x25c74b,_0x779a24=path[_0x451069('0x8')](config[_0x451069('0x12')],'files/images/logos');let _0x41f6a5={'custom':![]};return utilLicense[_0x451069('0x16')]()[_0x451069('0x3b')](function(_0x158898){const _0x5b0dfb=_0x451069;return _0x158898&&(_0x41f6a5=_0x158898),db[_0x5b0dfb('0x1d')]['findOne']({'where':{'id':_0x22f7f4[_0x5b0dfb('0x47')]['id']},'attributes':['logo','loginLogo','preferred','favicon',_0x5b0dfb('0x29'),'defaultLoginLogo',_0x5b0dfb('0x46'),_0x5b0dfb('0x2f')],'raw':!![]});})[_0x451069('0x3b')](handleEntityNotFound(_0x49804a,null))[_0x451069('0x3b')](function(_0x1b4fe1){const _0x3a52a2=_0x451069;if(_0x1b4fe1){let _0x199b14=_0x1b4fe1['logo']&&fs[_0x3a52a2('0x2d')](path[_0x3a52a2('0x8')](_0x779a24,_[_0x3a52a2('0x5')](_0x1b4fe1['logo'])))?path['join'](_0x779a24,_[_0x3a52a2('0x5')](_0x1b4fe1[_0x3a52a2('0xb')])):path[_0x3a52a2('0x8')](_0x779a24,_['toLower'](_0x3a52a2('0xc')));const _0x3562e8='default'+_[_0x3a52a2('0x2e')]('logo');(_0x1b4fe1[_0x3562e8]||!_0x41f6a5[_0x3a52a2('0x24')])&&(_0x199b14=path[_0x3a52a2('0x8')](_0x779a24,_[_0x3a52a2('0x5')](_0x3a52a2('0xc'))));if(!fs[_0x3a52a2('0x2d')](_0x199b14))throw new db[(_0x3a52a2('0x1b'))][(_0x3a52a2('0x35'))](_[_0x3a52a2('0x2e')](_0x3a52a2('0xb'))+_0x3a52a2('0x27'));return _0x49804a[_0x3a52a2('0x11')](_0x199b14);}})[_0x451069('0x2b')](handleError(_0x49804a,null));},exports[_0x25c74b('0x33')]=function(_0x4dbbe5,_0x1cd4df){const _0x59134b=_0x25c74b,_0x271d3b=path['join'](config[_0x59134b('0x12')],_0x59134b('0x14'));let _0x3b6513={'custom':![]};return utilLicense[_0x59134b('0x16')]()[_0x59134b('0x3b')](function(_0x1455ae){const _0x5d5b85=_0x59134b;return _0x1455ae&&(_0x3b6513=_0x1455ae),db[_0x5d5b85('0x1d')][_0x5d5b85('0x3a')]({'where':{'id':_0x4dbbe5['params']['id']},'attributes':['logo',_0x5d5b85('0x19'),_0x5d5b85('0x44'),_0x5d5b85('0x1c'),_0x5d5b85('0x29'),_0x5d5b85('0x43'),_0x5d5b85('0x46'),_0x5d5b85('0x2f')],'raw':!![]});})[_0x59134b('0x3b')](handleEntityNotFound(_0x1cd4df,null))[_0x59134b('0x3b')](function(_0x37e63c){const _0x37daca=_0x59134b;if(_0x37e63c){let _0x514ae4=_0x37e63c['loginLogo']&&fs[_0x37daca('0x2d')](path[_0x37daca('0x8')](_0x271d3b,_[_0x37daca('0x5')](_0x37e63c[_0x37daca('0x19')])))?path[_0x37daca('0x8')](_0x271d3b,_[_0x37daca('0x5')](_0x37e63c[_0x37daca('0x19')])):path[_0x37daca('0x8')](_0x271d3b,_[_0x37daca('0x5')](_0x37daca('0x36')));const _0x411f67=_0x37daca('0x4e')+_[_0x37daca('0x2e')]('loginLogo');(_0x37e63c[_0x411f67]||!_0x3b6513[_0x37daca('0x24')])&&(_0x514ae4=path['join'](_0x271d3b,_[_0x37daca('0x5')](_0x37daca('0x36'))));if(!fs[_0x37daca('0x2d')](_0x514ae4))throw new db[(_0x37daca('0x1b'))][(_0x37daca('0x35'))](_['upperFirst'](_0x37daca('0x19'))+_0x37daca('0x27'));return _0x1cd4df[_0x37daca('0x11')](_0x514ae4);}})[_0x59134b('0x2b')](handleError(_0x1cd4df,null));},exports[_0x25c74b('0x20')]=function(_0x5e7c1f,_0x1fa8f3){const _0x37086f=_0x25c74b;return db[_0x37086f('0x1d')][_0x37086f('0x3a')]({'where':{'id':_0x5e7c1f[_0x37086f('0x47')]['id']},'attributes':['securePassword']})[_0x37086f('0x3b')](respondWithResult(_0x1fa8f3,null))[_0x37086f('0x2b')](handleError(_0x1fa8f3,null));},exports[_0x25c74b('0xe')]=function(_0x4e288f,_0x1275e8){const _0x141e22=_0x25c74b;return _0x4e288f[_0x141e22('0x4a')]&&_0x4e288f[_0x141e22('0x4a')][_0x141e22('0x37')]&&(_0x4e288f[_0x141e22('0x13')][_0x141e22('0x44')]=_0x4e288f['file'][_0x141e22('0x37')]),db[_0x141e22('0x1d')][_0x141e22('0x3a')]({'where':{'id':_0x4e288f[_0x141e22('0x47')]['id']}})[_0x141e22('0x3b')](handleEntityNotFound(_0x1275e8,null))[_0x141e22('0x3b')](saveUpdates(_0x4e288f[_0x141e22('0x13')],null))[_0x141e22('0x3b')](respondWithResult(_0x1275e8,null))[_0x141e22('0x2b')](handleError(_0x1275e8,null));},exports['getPreferred']=function(_0x5693cb,_0x392f82){const _0x2dbd60=_0x25c74b,_0x6994c3=path[_0x2dbd60('0x8')](config[_0x2dbd60('0x12')],'files/images/logos');let _0xfb0082={'custom':![]};return utilLicense[_0x2dbd60('0x16')]()[_0x2dbd60('0x3b')](function(_0x3621fd){const _0x1888f2=_0x2dbd60;return _0x3621fd&&(_0xfb0082=_0x3621fd),db[_0x1888f2('0x1d')][_0x1888f2('0x3a')]({'where':{'id':_0x5693cb['params']['id']},'attributes':[_0x1888f2('0xb'),_0x1888f2('0x19'),_0x1888f2('0x44'),_0x1888f2('0x1c'),_0x1888f2('0x29'),'defaultLoginLogo',_0x1888f2('0x46'),_0x1888f2('0x2f')],'raw':!![]});})[_0x2dbd60('0x3b')](handleEntityNotFound(_0x392f82,null))[_0x2dbd60('0x3b')](function(_0x455726){const _0x2fc26e=_0x2dbd60;if(_0x455726){let _0x5646e3=_0x455726[_0x2fc26e('0x44')]&&fs[_0x2fc26e('0x2d')](path[_0x2fc26e('0x8')](_0x6994c3,_[_0x2fc26e('0x5')](_0x455726[_0x2fc26e('0x44')])))?path['join'](_0x6994c3,_[_0x2fc26e('0x5')](_0x455726[_0x2fc26e('0x44')])):path[_0x2fc26e('0x8')](_0x6994c3,_[_0x2fc26e('0x5')]('default_preferred.png'));const _0x1b7cb7=_0x2fc26e('0x4e')+_[_0x2fc26e('0x2e')](_0x2fc26e('0x44'));(_0x455726[_0x1b7cb7]||!_0xfb0082[_0x2fc26e('0x24')]||!_0xfb0082[_0x2fc26e('0x44')])&&(_0x5646e3=path[_0x2fc26e('0x8')](_0x6994c3,_['toLower'](_0x2fc26e('0x4f'))));if(!fs[_0x2fc26e('0x2d')](_0x5646e3))throw new db['Sequelize'][(_0x2fc26e('0x35'))](_[_0x2fc26e('0x2e')](_0x2fc26e('0x44'))+_0x2fc26e('0x27'));return _0x392f82['download'](_0x5646e3);}})[_0x2dbd60('0x2b')](handleError(_0x392f82,null));},exports[_0x25c74b('0x32')]=function(_0x3c39d1,_0x2e0183){const _0x1c2c0b=_0x25c74b;return _0x3c39d1[_0x1c2c0b('0x4a')]&&_0x3c39d1[_0x1c2c0b('0x4a')][_0x1c2c0b('0x37')]&&(_0x3c39d1[_0x1c2c0b('0x13')]['favicon']=_0x3c39d1[_0x1c2c0b('0x4a')][_0x1c2c0b('0x37')]),db[_0x1c2c0b('0x1d')]['findOne']({'where':{'id':_0x3c39d1[_0x1c2c0b('0x47')]['id']}})[_0x1c2c0b('0x3b')](handleEntityNotFound(_0x2e0183,null))['then'](saveUpdates(_0x3c39d1[_0x1c2c0b('0x13')],null))[_0x1c2c0b('0x3b')](respondWithResult(_0x2e0183,null))['catch'](handleError(_0x2e0183,null));},exports[_0x25c74b('0x6')]=function(_0x4a84aa,_0x4ac472){const _0x1122d5=_0x25c74b,_0x316ac2=path[_0x1122d5('0x8')](config['root'],_0x1122d5('0x14'));let _0x349a58={'custom':![]};return utilLicense[_0x1122d5('0x16')]()[_0x1122d5('0x3b')](function(_0x4fba4c){const _0x293b2f=_0x1122d5;return _0x4fba4c&&(_0x349a58=_0x4fba4c),db['Setting'][_0x293b2f('0x3a')]({'where':{'id':_0x4a84aa[_0x293b2f('0x47')]['id']},'attributes':[_0x293b2f('0xb'),'loginLogo',_0x293b2f('0x44'),_0x293b2f('0x1c'),'defaultLogo','defaultLoginLogo',_0x293b2f('0x46'),_0x293b2f('0x2f')],'raw':!![]});})[_0x1122d5('0x3b')](handleEntityNotFound(_0x4ac472,null))['then'](function(_0xba9823){const _0x229c02=_0x1122d5;if(_0xba9823){let _0x3c630b=_0xba9823[_0x229c02('0x1c')]&&fs[_0x229c02('0x2d')](path['join'](_0x316ac2,_[_0x229c02('0x5')](_0xba9823[_0x229c02('0x1c')])))?path[_0x229c02('0x8')](_0x316ac2,_[_0x229c02('0x5')](_0xba9823[_0x229c02('0x1c')])):path[_0x229c02('0x8')](_0x316ac2,_[_0x229c02('0x5')](_0x229c02('0x1')));const _0x430d1d='default'+_[_0x229c02('0x2e')]('favicon');(_0xba9823[_0x430d1d]||!_0x349a58['custom'])&&(_0x3c630b=path[_0x229c02('0x8')](_0x316ac2,_[_0x229c02('0x5')](_0x229c02('0x1'))));if(!fs[_0x229c02('0x2d')](_0x3c630b))throw new db['Sequelize'][(_0x229c02('0x35'))](_[_0x229c02('0x2e')](_0x229c02('0x1c'))+'\x20not\x20found');return _0x4ac472[_0x229c02('0x11')](_0x3c630b);}})[_0x1122d5('0x2b')](handleError(_0x4ac472,null));}; \ No newline at end of file +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 diff --git a/server/api/setting/setting.model.js b/server/api/setting/setting.model.js index d6890ca..48ba069 100644 --- a/server/api/setting/setting.model.js +++ b/server/api/setting/setting.model.js @@ -1 +1 @@ -const a539_0x2d2a=['settings','Setting','define'];(function(_0x2759da,_0x2d2adb){const _0x2f725f=function(_0x379192){while(--_0x379192){_0x2759da['push'](_0x2759da['shift']());}};_0x2f725f(++_0x2d2adb);}(a539_0x2d2a,0xdb));const a539_0x2f72=function(_0x2759da,_0x2d2adb){_0x2759da=_0x2759da-0x0;let _0x2f725f=a539_0x2d2a[_0x2759da];return _0x2f725f;};'use strict';const attributes=require('./setting.attributes');module['exports']=function(_0x379192){const _0x519381=a539_0x2f72,_0x3df08d=_0x379192[_0x519381('0x2')](_0x519381('0x1'),attributes,{'tableName':_0x519381('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3df08d;}; \ No newline at end of file +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 diff --git a/server/api/smsAccount/index.js b/server/api/smsAccount/index.js index 1e53c46..8b3d754 100644 --- a/server/api/smsAccount/index.js +++ b/server/api/smsAccount/index.js @@ -1 +1 @@ -const a540_0x3f88=['getAgents','getApplications','post','addAnswer','/:id/dispositions','addApplications','getAnswers','delete','status','isAuthenticated','addDisposition','send','getDispositions','statusGet','put','removeDispositions','update','/describe','notify','express','removeAgents','get','/:id/applications','/:id/notify','create','/:id','getInteractions','removeAnswers','destroy','/:id/canned_answers','/:id/status','/:id/users','../../components/auth/service','./smsAccount.controller','/:id/interactions','exports'];(function(_0x3328e2,_0x3f88d7){const _0x4e90c4=function(_0x26871e){while(--_0x26871e){_0x3328e2['push'](_0x3328e2['shift']());}};_0x4e90c4(++_0x3f88d7);}(a540_0x3f88,0xc1));const a540_0x4e90=function(_0x3328e2,_0x3f88d7){_0x3328e2=_0x3328e2-0x0;let _0x4e90c4=a540_0x3f88[_0x3328e2];return _0x4e90c4;};const _0x54c233=a540_0x4e90;'use strict';const express=require(_0x54c233('0x6')),router=express['Router'](),auth=require(_0x54c233('0x13')),controller=require(_0x54c233('0x14'));router[_0x54c233('0x8')]('/',auth[_0x54c233('0x20')](),controller['index']),router[_0x54c233('0x8')](_0x54c233('0x4'),auth[_0x54c233('0x20')](),controller['describe']),router[_0x54c233('0x8')](_0x54c233('0xc'),auth[_0x54c233('0x20')](),controller['show']),router[_0x54c233('0x8')](_0x54c233('0x1b'),auth[_0x54c233('0x20')](),controller[_0x54c233('0x23')]),router[_0x54c233('0x8')](_0x54c233('0x10'),auth[_0x54c233('0x20')](),controller[_0x54c233('0x1d')]),router[_0x54c233('0x8')](_0x54c233('0x9'),auth[_0x54c233('0x20')](),controller[_0x54c233('0x18')]),router['get'](_0x54c233('0x15'),auth[_0x54c233('0x20')](),controller[_0x54c233('0xd')]),router[_0x54c233('0x8')]('/:id/status',controller[_0x54c233('0x0')]),router[_0x54c233('0x8')](_0x54c233('0x12'),auth[_0x54c233('0x20')](),controller[_0x54c233('0x17')]),router['post']('/',auth['isAuthenticated'](),controller[_0x54c233('0xb')]),router[_0x54c233('0x19')]('/:id/dispositions',auth[_0x54c233('0x20')](),controller[_0x54c233('0x21')]),router[_0x54c233('0x19')]('/:id/canned_answers',auth[_0x54c233('0x20')](),controller[_0x54c233('0x1a')]),router['post'](_0x54c233('0xa'),controller[_0x54c233('0x5')]),router['post']('/:id/applications',auth[_0x54c233('0x20')](),controller[_0x54c233('0x1c')]),router['post']('/:id/send',auth[_0x54c233('0x20')](),controller[_0x54c233('0x22')]),router['post'](_0x54c233('0x11'),controller[_0x54c233('0x1f')]),router[_0x54c233('0x19')]('/:id/users',auth[_0x54c233('0x20')](),controller['addAgents']),router[_0x54c233('0x1')](_0x54c233('0xc'),auth[_0x54c233('0x20')](),controller[_0x54c233('0x3')]),router[_0x54c233('0x1e')](_0x54c233('0xc'),auth[_0x54c233('0x20')](),controller[_0x54c233('0xf')]),router[_0x54c233('0x1e')](_0x54c233('0x1b'),auth[_0x54c233('0x20')](),controller[_0x54c233('0x2')]),router[_0x54c233('0x1e')](_0x54c233('0x10'),auth[_0x54c233('0x20')](),controller[_0x54c233('0xe')]),router[_0x54c233('0x1e')](_0x54c233('0x12'),auth[_0x54c233('0x20')](),controller[_0x54c233('0x7')]),module[_0x54c233('0x16')]=router; \ No newline at end of file +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 diff --git a/server/api/smsAccount/smsAccount.attributes.js b/server/api/smsAccount/smsAccount.attributes.js index acff5c0..6b9f091 100644 --- a/server/api/smsAccount/smsAccount.attributes.js +++ b/server/api/smsAccount/smsAccount.attributes.js @@ -1 +1 @@ -const a541_0x2492=['ENUM','skebby','BOOLEAN','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','mandatoryDisposition','setDataValue','mandatoryDispositionPauseId','csc','sequelize','exports','name','intelepeer','randomstring','TEXT','connectel','INTEGER','clicksend','generate','STRING','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'];(function(_0x3d1c23,_0x249241){const _0x9c56a0=function(_0x4e5c3e){while(--_0x4e5c3e){_0x3d1c23['push'](_0x3d1c23['shift']());}};_0x9c56a0(++_0x249241);}(a541_0x2492,0x66));const a541_0x9c56=function(_0x3d1c23,_0x249241){_0x3d1c23=_0x3d1c23-0x0;let _0x9c56a0=a541_0x2492[_0x3d1c23];return _0x9c56a0;};const _0x233de7=a541_0x9c56;'use strict';const Sequelize=require(_0x233de7('0x6')),rs=require(_0x233de7('0xa'));module[_0x233de7('0x7')]={'name':{'type':Sequelize[_0x233de7('0x10')],'unique':_0x233de7('0x8'),'allowNull':![]},'key':{'type':Sequelize[_0x233de7('0x10')],'allowNull':![]},'remote':{'type':Sequelize[_0x233de7('0x10')],'allowNull':![]},'token':{'type':Sequelize[_0x233de7('0x10')],'defaultValue':function(){const _0x40f4f7=_0x233de7;return rs[_0x40f4f7('0xf')]();}},'phone':{'type':Sequelize[_0x233de7('0x10')]},'type':{'type':Sequelize[_0x233de7('0x12')]('twilio',_0x233de7('0x13'),_0x233de7('0xc'),_0x233de7('0xe'),'plivo','clickatell',_0x233de7('0x5'),'infobip',_0x233de7('0x9'))},'accountSid':{'type':Sequelize[_0x233de7('0x10')]},'authId':{'type':Sequelize[_0x233de7('0x10')]},'authToken':{'type':Sequelize[_0x233de7('0x10')]},'smsMethod':{'type':Sequelize[_0x233de7('0x12')]('SI','TI','GP')},'username':{'type':Sequelize['STRING']},'password':{'type':Sequelize[_0x233de7('0x10')]},'apiKey':{'type':Sequelize['STRING']},'senderString':{'type':Sequelize['STRING']},'deliveryReport':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'description':{'type':Sequelize[_0x233de7('0x10')]},'notificationTemplate':{'type':Sequelize[_0x233de7('0xb')],'defaultValue':function(){const _0x486143=_0x233de7;return _0x486143('0x1');}},'notificationSound':{'type':Sequelize[_0x233de7('0x0')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x233de7('0x0')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize['INTEGER'],'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[_0x233de7('0x0')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x233de7('0xd')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'baseUrl':{'type':Sequelize[_0x233de7('0x10')]},'mandatoryDispositionPauseId':{'type':Sequelize[_0x233de7('0xd')],'comment':_0x233de7('0x11')},'mandatoryDisposition':{'type':Sequelize[_0x233de7('0x0')],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x4e5c3e){const _0x1e790d=_0x233de7;if(!_0x4e5c3e)this['setDataValue'](_0x1e790d('0x4'),null);this[_0x1e790d('0x3')](_0x1e790d('0x2'),_0x4e5c3e);}}}; \ No newline at end of file +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 diff --git a/server/api/smsAccount/smsAccount.controller.js b/server/api/smsAccount/smsAccount.controller.js index 7e8763a..992894b 100644 --- a/server/api/smsAccount/smsAccount.controller.js +++ b/server/api/smsAccount/smsAccount.controller.js @@ -1 +1 @@ -const a542_0x83f7=['to\x20is\x20mandatory','getApplications','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','MessageUUID','name','twilio','map','sort','groupName','jayson/promise','Sequelize','set','update','account','createdAt','MessageSid','messageId','../../rediscache','userSmsAccount:remove','undefined','ids','model','Body','tag','applications','filters','refid','user','asc','statusInt','text/xml','Disposition','removeAgents','merge','Messages','query','params','mapKey','RECEIVED_BY_RECIPIENT','rawAttributes','./smsAccount.socket','pick','*,*,*,*','internal','Unable\x20to\x20retrieve\x20the\x20current\x20user','options','intersection','ContactId','received\x20delivery\x20report\x20from','fromNumber','stack','out','message','SmsAccount','Tag','userSmsAccount:save','omit','fields','attributes','http','skebby','results','SmsMessage','priority','agent','SmsInteraction','offset','keys','index','isNil','transaction','findAndCountAll','Pause','sequelize','sender','body','filter','close','findAll','order','fullname','CannedAnswer','from','replyMessageId','register','requestid','type','like','inspect','SmsAccount,\x20%s,\x20%s','length','Applications','info','updatedAt','emit','sendStatus','error','count','User','difference','where','show','includeAll','startRouting','list','getDispositions','infobip','../../components/parsers/qs','status_code','entity\x20found','clickatell','util','mandatoryDispositionPause','defaults','UserProfileResource','state','segmentedMessage','bulkCreate','clicksend','describe','send','Tags','color','isArray','push','autoAssociation','unmanaged','intelepeer','Start','autoclose','catch','SmsAccountId','removeAnswers','Text','then','DELIVRD','csc','SmsAccount,\x20%s,\x20%s,\x20%s','redif','\x0a','orderBy','text','end','Contacts','include','message_id','DELIVERED_TO_GATEWAY','addAgents','rows','addApplications','no\x20available\x20attributes','unshift','List','fieldName','get','mobile','error_code','sms','json','Content-Range','receiveMessage','SmsAccounts','findOne','client','interaction','ValidationError','removeDispositions','body\x20is\x20mandatory\x20and\x20not\x20empty','nolimit','CompanyId','destroy','contact','lodash','notify','../../config/logger','api','limit','dataValues','debug','log','From','DELIVERED','getAgents','CmList','Owner','addDisposition','endpoint\x20/status\x20POST\x20/','message-id','create','UserId','from\x20is\x20mandatory','waitForTheAssignedAgent','connectel','CmContact','plivo','request\x20sent','status','SmsApplication','created','skebby_dispatch_id','DESC','request'];(function(_0x54ce01,_0x83f7cc){const _0x4b32f5=function(_0x3f1527){while(--_0x3f1527){_0x54ce01['push'](_0x54ce01['shift']());}};_0x4b32f5(++_0x83f7cc);}(a542_0x83f7,0x12a));const a542_0x4b32=function(_0x54ce01,_0x83f7cc){_0x54ce01=_0x54ce01-0x0;let _0x4b32f5=a542_0x83f7[_0x54ce01];return _0x4b32f5;};const _0x35777b=a542_0x4b32;'use strict';const util=require(_0x35777b('0xf')),_=require(_0x35777b('0x4c')),qs=require(_0x35777b('0xb')),logger=require(_0x35777b('0x4e'))(_0x35777b('0x4f')),{getSocket}=require(_0x35777b('0x7b')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op}=require(_0x35777b('0xb3'));require(_0x35777b('0x92'))[_0x35777b('0xbe')](socket);const jayson=require(_0x35777b('0x73')),client=jayson[_0x35777b('0x43')][_0x35777b('0xa5')]({'port':0x232c});function respondWithRpcPromise(_0x3f1527,_0x2ee176,_0x61d1aa,_0x5669d9){return new Promise(function(_0xcc5c07,_0x255a89){const _0xac552b=a542_0x4b32,_0x46e6c0=_0x5669d9||client;return _0x46e6c0[_0xac552b('0x69')](_0x3f1527,_0x61d1aa)[_0xac552b('0x26')](function(_0x161acd){const _0x54ade0=_0xac552b;logger['info'](_0x54ade0('0xc3'),_0x2ee176,_0x54ade0('0x63')),logger['debug'](_0x54ade0('0x29'),_0x2ee176,_0x54ade0('0x63'),JSON['stringify'](_0x161acd));if(_0x161acd['error']){if(_0x161acd['error']['code']===0x1f4)return logger['error'](_0x54ade0('0xc3'),_0x2ee176,_0x161acd['error'][_0x54ade0('0x9e')]),_0x255a89(_0x161acd[_0x54ade0('0x0')][_0x54ade0('0x9e')]);return logger[_0x54ade0('0x0')](_0x54ade0('0xc3'),_0x2ee176,_0x161acd[_0x54ade0('0x0')]['message']),_0xcc5c07(_0x161acd['error']['message']);}else logger[_0x54ade0('0xc6')](_0x54ade0('0xc3'),_0x2ee176,'request\x20sent'),_0xcc5c07(_0x161acd['result'][_0x54ade0('0x9e')]);})[_0xac552b('0x22')](function(_0x1051a6){const _0x6b41f8=_0xac552b;logger['error'](_0x6b41f8('0xc3'),_0x2ee176,_0x1051a6),_0x255a89(_0x1051a6);});});}function respondWithStatusCode(_0x24667a,_0x349a96){return _0x349a96=_0x349a96||0xcc,function(_0x598514){const _0x5567c0=a542_0x4b32;if(_0x598514)return _0x24667a[_0x5567c0('0xc9')](_0x349a96);return _0x24667a[_0x5567c0('0x64')](_0x349a96)[_0x5567c0('0x2e')]();};}function respondWithResult(_0x59059e,_0x5a7aa2){return _0x5a7aa2=_0x5a7aa2||0xc8,function(_0x49512a){const _0x414948=a542_0x4b32;if(_0x49512a)return _0x59059e['status'](_0x5a7aa2)[_0x414948('0x3e')](_0x49512a);};}function respondWithFilteredResult(_0x11c6cc,_0x33acbc){return function(_0x1518a1){const _0x1862bc=a542_0x4b32;if(_0x1518a1){const _0x324b16=_0x1518a1[_0x1862bc('0x1')],_0x2f4f14=_0x33acbc[_0x1862bc('0xac')];let _0x52fb7b=_0x33acbc[_0x1862bc('0xac')]+_0x33acbc[_0x1862bc('0x50')],_0x1fef58;return _0x52fb7b>=_0x324b16?(_0x52fb7b=_0x324b16,_0x1fef58=0xc8):_0x1fef58=0xce,_0x11c6cc[_0x1862bc('0x64')](_0x1fef58),_0x11c6cc['set'](_0x1862bc('0x3f'),_0x2f4f14+'-'+_0x52fb7b+'/'+_0x324b16)['json'](_0x1518a1);}return null;};}function saveUpdates(_0x193f0d){return function(_0x489d15){const _0x459bf3=a542_0x4b32;if(_0x489d15)return _0x489d15['update'](_0x193f0d)[_0x459bf3('0x26')](function(_0x4559fa){return _0x4559fa;});return null;};}function removeEntity(_0x7502cf){return function(_0x382640){const _0x48aaa6=a542_0x4b32;if(_0x382640)return _0x382640[_0x48aaa6('0x4a')]()['then'](function(){const _0x237e7a=_0x48aaa6,_0x1a34ca=_0x382640['get']({'plain':!![]}),_0x465d54=_0x237e7a('0x41');return db[_0x237e7a('0x12')][_0x237e7a('0x4a')]({'where':{'type':_0x465d54,'resourceId':_0x1a34ca['id']}})[_0x237e7a('0x26')](function(){return _0x382640;});})[_0x48aaa6('0x26')](function(){const _0x304475=_0x48aaa6;_0x7502cf[_0x304475('0x64')](0xcc)[_0x304475('0x2e')]();});};}function handleEntityNotFound(_0x4b3370){return function(_0x517e2a){const _0x1a5d60=a542_0x4b32;return!_0x517e2a&&_0x4b3370[_0x1a5d60('0xc9')](0x194),_0x517e2a;};}function handleError(_0x6f2a63,_0xbe62c7){return _0xbe62c7=_0xbe62c7||0x1f4,function(_0x180b92){const _0x1b50cb=a542_0x4b32;logger[_0x1b50cb('0x0')](_0x180b92[_0x1b50cb('0x9c')]),_0x180b92[_0x1b50cb('0x6e')]&&delete _0x180b92[_0x1b50cb('0x6e')],_0x6f2a63[_0x1b50cb('0x64')](_0xbe62c7)['send'](_0x180b92);};}exports[_0x35777b('0xae')]=function(_0x3d9000,_0x36ab81){const _0x5402aa=_0x35777b;let _0x202fa6={'include':[{'model':db[_0x5402aa('0xb2')],'as':_0x5402aa('0x10')}]};const _0x12041b={},_0x15668d={'count':0x0,'rows':[]},_0x5aa9d7=_[_0x5402aa('0x70')](db[_0x5402aa('0x9f')][_0x5402aa('0x91')],function(_0x26cf21){const _0x25330a=_0x5402aa;return{'name':_0x26cf21[_0x25330a('0x39')],'type':_0x26cf21[_0x25330a('0xc0')]['key']};});_0x12041b[_0x5402aa('0x7f')]=_[_0x5402aa('0x70')](_0x5aa9d7,_0x5402aa('0x6e')),_0x12041b[_0x5402aa('0x8d')]=_['keys'](_0x3d9000[_0x5402aa('0x8d')]),_0x12041b[_0x5402aa('0x83')]=_['intersection'](_0x12041b[_0x5402aa('0x7f')],_0x12041b[_0x5402aa('0x8d')]),_0x202fa6[_0x5402aa('0xa4')]=_[_0x5402aa('0x98')](_0x12041b[_0x5402aa('0x7f')],qs[_0x5402aa('0xa3')](_0x3d9000[_0x5402aa('0x8d')][_0x5402aa('0xa3')])),_0x202fa6[_0x5402aa('0xa4')]=_0x202fa6[_0x5402aa('0xa4')]['length']?_0x202fa6['attributes']:_0x12041b[_0x5402aa('0x7f')];typeof _0x3d9000['query'][_0x5402aa('0x48')]===_0x5402aa('0x7d')&&(_0x202fa6[_0x5402aa('0x50')]=qs[_0x5402aa('0x50')](_0x3d9000[_0x5402aa('0x8d')][_0x5402aa('0x50')]),_0x202fa6['offset']=qs[_0x5402aa('0xac')](_0x3d9000[_0x5402aa('0x8d')][_0x5402aa('0xac')]));_0x202fa6[_0x5402aa('0xb9')]=qs[_0x5402aa('0x71')](_0x3d9000['query'][_0x5402aa('0x71')]),_0x202fa6[_0x5402aa('0x4')]=qs[_0x5402aa('0x83')](_[_0x5402aa('0x93')](_0x3d9000[_0x5402aa('0x8d')],_0x12041b[_0x5402aa('0x83')]),_0x5aa9d7);_0x3d9000[_0x5402aa('0x8d')][_0x5402aa('0xb6')]&&(_0x202fa6[_0x5402aa('0x4')]=_[_0x5402aa('0x8b')](_0x202fa6[_0x5402aa('0x4')],{[Op['or']]:_[_0x5402aa('0x70')](_0x5aa9d7,function(_0x1d5e1e){const _0x3ea394=_0x5402aa;if(_0x1d5e1e['type']!=='VIRTUAL'){const _0x2bff22={};return _0x2bff22[_0x1d5e1e['name']]={[Op['like']]:'%'+_0x3d9000[_0x3ea394('0x8d')][_0x3ea394('0xb6')]+'%'},_0x2bff22;}})}));_0x202fa6=_[_0x5402aa('0x8b')]({},_0x202fa6,_0x3d9000['options']);const _0x5310ec={'where':_0x202fa6[_0x5402aa('0x4')]};return db[_0x5402aa('0x9f')]['count'](_0x5310ec)['then'](function(_0x9e88e5){const _0x2543fd=_0x5402aa;return _0x15668d[_0x2543fd('0x1')]=_0x9e88e5,_0x3d9000[_0x2543fd('0x8d')][_0x2543fd('0x6')]&&(_0x202fa6[_0x2543fd('0x30')]=[{'all':!![]}]),db[_0x2543fd('0x9f')][_0x2543fd('0xb8')](_0x202fa6);})[_0x5402aa('0x26')](function(_0x10992c){const _0x408e7c=_0x5402aa;return _0x15668d[_0x408e7c('0x34')]=_0x10992c,_0x15668d;})['then'](respondWithFilteredResult(_0x36ab81,_0x202fa6))[_0x5402aa('0x22')](handleError(_0x36ab81,null));},exports[_0x35777b('0x5')]=function(_0x2105f9,_0x2a019c){const _0x12249d=_0x35777b;let _0x32d6ed={'raw':![],'where':{'id':_0x2105f9[_0x12249d('0x8e')]['id']},'include':[{'model':db[_0x12249d('0xb2')],'as':'mandatoryDispositionPause'}]};const _0x4b327c={};return _0x4b327c['model']=_['keys'](db[_0x12249d('0x9f')][_0x12249d('0x91')]),_0x4b327c[_0x12249d('0x8d')]=_[_0x12249d('0xad')](_0x2105f9[_0x12249d('0x8d')]),_0x4b327c[_0x12249d('0x83')]=_['intersection'](_0x4b327c['model'],_0x4b327c[_0x12249d('0x8d')]),_0x32d6ed[_0x12249d('0xa4')]=_[_0x12249d('0x98')](_0x4b327c['model'],qs[_0x12249d('0xa3')](_0x2105f9[_0x12249d('0x8d')][_0x12249d('0xa3')])),_0x32d6ed[_0x12249d('0xa4')]=_0x32d6ed['attributes'][_0x12249d('0xc4')]?_0x32d6ed['attributes']:_0x4b327c[_0x12249d('0x7f')],_0x2105f9[_0x12249d('0x8d')]['includeAll']&&(_0x32d6ed[_0x12249d('0x30')]=[{'all':!![]}]),_0x32d6ed=_['merge']({},_0x32d6ed,_0x2105f9[_0x12249d('0x97')]),db[_0x12249d('0x9f')][_0x12249d('0x42')](_0x32d6ed)['then'](handleEntityNotFound(_0x2a019c,null))[_0x12249d('0x26')](respondWithResult(_0x2a019c,null))[_0x12249d('0x22')](handleError(_0x2a019c,null));},exports[_0x35777b('0x5c')]=function(_0x34da2c,_0x26e564){const _0x1285b8=_0x35777b;return db[_0x1285b8('0x9f')][_0x1285b8('0x5c')](_0x34da2c['body'],{})[_0x1285b8('0x26')](function(_0x15478a){const _0x142626=_0x1285b8,_0xb283c8=_0x34da2c[_0x142626('0x85')]['get']({'plain':!![]});if(!_0xb283c8)throw new Error(_0x142626('0x96'));if(_0xb283c8['role']==='user'){const _0x2d8d27=_0x15478a[_0x142626('0x3a')]({'plain':!![]}),_0x814661=_0x142626('0x41');return db['UserProfileSection']['findOne']({'where':{'name':_0x814661,'userProfileId':_0xb283c8['userProfileId']},'raw':!![]})[_0x142626('0x26')](function(_0x5d433d){const _0x5b5636=_0x142626;return _0x5d433d&&_0x5d433d[_0x5b5636('0x1d')]===0x0?db['UserProfileResource']['create']({'name':_0x2d8d27['name'],'resourceId':_0x2d8d27['id'],'type':_0x5d433d['name'],'sectionId':_0x5d433d['id']},{})['then'](function(){return _0x15478a;}):_0x15478a;})[_0x142626('0x22')](function(_0x2c7626){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x2c7626);throw _0x2c7626;});}return _0x15478a;})[_0x1285b8('0x26')](respondWithResult(_0x26e564,0xc9))[_0x1285b8('0x22')](handleError(_0x26e564,null));},exports[_0x35777b('0x76')]=function(_0x22963d,_0x245716){const _0x168c6a=_0x35777b;return _0x22963d[_0x168c6a('0xb5')]['id']&&delete _0x22963d[_0x168c6a('0xb5')]['id'],db[_0x168c6a('0x9f')][_0x168c6a('0x42')]({'where':{'id':_0x22963d[_0x168c6a('0x8e')]['id']},'include':[{'model':db[_0x168c6a('0xb2')],'as':'mandatoryDispositionPause'}]})[_0x168c6a('0x26')](handleEntityNotFound(_0x245716,null))[_0x168c6a('0x26')](saveUpdates(_0x22963d[_0x168c6a('0xb5')],null))[_0x168c6a('0x26')](respondWithResult(_0x245716,null))[_0x168c6a('0x22')](handleError(_0x245716,null));},exports[_0x35777b('0x4a')]=function(_0x1063f9,_0x4d112e){const _0x1df6d8=_0x35777b;return db['SmsAccount'][_0x1df6d8('0x42')]({'where':{'id':_0x1063f9['params']['id']}})[_0x1df6d8('0x26')](handleEntityNotFound(_0x4d112e,null))[_0x1df6d8('0x26')](removeEntity(_0x4d112e,null))[_0x1df6d8('0x22')](handleError(_0x4d112e,null));},exports[_0x35777b('0x17')]=function(_0x415106,_0x1c2db4){const _0x38c710=_0x35777b;return db['SmsAccount']['describe']()[_0x38c710('0x26')](respondWithResult(_0x1c2db4,null))[_0x38c710('0x22')](handleError(_0x1c2db4,null));},exports[_0x35777b('0x59')]=function(_0x4adb2d,_0x14bdd0){const _0x50f041=_0x35777b;return _0x4adb2d[_0x50f041('0xb5')]['id']&&delete _0x4adb2d[_0x50f041('0xb5')]['id'],db['SmsAccount'][_0x50f041('0x42')]({'where':{'id':_0x4adb2d[_0x50f041('0x8e')]['id']}})[_0x50f041('0x26')](handleEntityNotFound(_0x14bdd0,null))[_0x50f041('0x26')](function(_0x561d11){const _0x5abcd9=_0x50f041;if(_0x561d11)return _0x4adb2d[_0x5abcd9('0xb5')][_0x5abcd9('0x23')]=_0x561d11['id'],db[_0x5abcd9('0x89')][_0x5abcd9('0x5c')](_0x4adb2d['body']);})[_0x50f041('0x26')](respondWithResult(_0x14bdd0,null))['catch'](handleError(_0x14bdd0,null));},exports[_0x35777b('0x9')]=function(_0x2e74ef,_0x1ebbbb){const _0x1d0365=_0x35777b;let _0xf6c774={'raw':![],'where':{}};const _0x153aa2={},_0x15b507={'count':0x0,'rows':[]};return db[_0x1d0365('0x9f')][_0x1d0365('0x42')]({'where':{'id':_0x2e74ef[_0x1d0365('0x8e')]['id']}})['then'](handleEntityNotFound(_0x1ebbbb,null))[_0x1d0365('0x26')](function(_0x4264e9){const _0x4d708f=_0x1d0365;if(_0x4264e9)return _0x153aa2[_0x4d708f('0x7f')]=_['keys'](db[_0x4d708f('0x89')][_0x4d708f('0x91')]),_0x153aa2[_0x4d708f('0x8d')]=_[_0x4d708f('0xad')](_0x2e74ef[_0x4d708f('0x8d')]),_0x153aa2[_0x4d708f('0x83')]=_[_0x4d708f('0x98')](_0x153aa2[_0x4d708f('0x7f')],_0x153aa2[_0x4d708f('0x8d')]),_0xf6c774['attributes']=_['intersection'](_0x153aa2[_0x4d708f('0x7f')],qs[_0x4d708f('0xa3')](_0x2e74ef[_0x4d708f('0x8d')][_0x4d708f('0xa3')])),_0xf6c774['attributes']=_0xf6c774[_0x4d708f('0xa4')][_0x4d708f('0xc4')]?_0xf6c774[_0x4d708f('0xa4')]:_0x153aa2[_0x4d708f('0x7f')],typeof _0x2e74ef[_0x4d708f('0x8d')]['nolimit']==='undefined'&&(_0xf6c774[_0x4d708f('0x50')]=qs[_0x4d708f('0x50')](_0x2e74ef[_0x4d708f('0x8d')][_0x4d708f('0x50')]),_0xf6c774['offset']=qs[_0x4d708f('0xac')](_0x2e74ef[_0x4d708f('0x8d')][_0x4d708f('0xac')])),_0xf6c774['order']=qs[_0x4d708f('0x71')](_0x2e74ef[_0x4d708f('0x8d')][_0x4d708f('0x71')]),_0xf6c774[_0x4d708f('0x4')]=qs[_0x4d708f('0x83')](_[_0x4d708f('0x93')](_0x2e74ef[_0x4d708f('0x8d')],_0x153aa2['filters'])),_0xf6c774[_0x4d708f('0x4')][_0x4d708f('0x23')]=_0x4264e9['id'],_0x2e74ef[_0x4d708f('0x8d')][_0x4d708f('0xb6')]&&(_0xf6c774[_0x4d708f('0x4')]=_[_0x4d708f('0x8b')](_0xf6c774[_0x4d708f('0x4')],{[Op['or']]:_[_0x4d708f('0x70')](_0xf6c774[_0x4d708f('0xa4')],function(_0x107b7d){const _0x442ad4=_0x4d708f,_0xf6c0c0={};return _0xf6c0c0[_0x107b7d]={[Op[_0x442ad4('0xc1')]]:'%'+_0x2e74ef[_0x442ad4('0x8d')]['filter']+'%'},_0xf6c0c0;})})),_0xf6c774=_[_0x4d708f('0x8b')]({},_0xf6c774,_0x2e74ef[_0x4d708f('0x97')]),db[_0x4d708f('0x89')]['count']({'where':_0xf6c774[_0x4d708f('0x4')]})[_0x4d708f('0x26')](function(_0x2f6371){const _0x22fd3b=_0x4d708f;return _0x15b507[_0x22fd3b('0x1')]=_0x2f6371,_0x2e74ef[_0x22fd3b('0x8d')]['includeAll']&&(_0xf6c774['include']=[{'all':!![]}]),db['Disposition'][_0x22fd3b('0xb8')](_0xf6c774);})[_0x4d708f('0x26')](function(_0x58226b){const _0x23c251=_0x4d708f;return _0x15b507[_0x23c251('0x34')]=_0x58226b,_0x15b507;});})[_0x1d0365('0x26')](respondWithFilteredResult(_0x1ebbbb,_0xf6c774))[_0x1d0365('0x22')](handleError(_0x1ebbbb,null));},exports[_0x35777b('0x46')]=function(_0x469a70,_0x1b70a3){const _0x4f1c43=_0x35777b;return db[_0x4f1c43('0x9f')][_0x4f1c43('0x42')]({'where':{'id':_0x469a70[_0x4f1c43('0x8e')]['id']}})[_0x4f1c43('0x26')](handleEntityNotFound(_0x1b70a3,null))[_0x4f1c43('0x26')](function(_0x47e048){const _0x401d15=_0x4f1c43;if(_0x47e048)return _0x47e048[_0x401d15('0x46')](_0x469a70[_0x401d15('0x8d')]['ids']);})[_0x4f1c43('0x26')](respondWithStatusCode(_0x1b70a3,null))[_0x4f1c43('0x22')](handleError(_0x1b70a3,null));},exports['addAnswer']=function(_0xbe3276,_0x1e869d){const _0x381692=_0x35777b;return _0xbe3276['body']['id']&&delete _0xbe3276[_0x381692('0xb5')]['id'],db[_0x381692('0x9f')]['findOne']({'where':{'id':_0xbe3276[_0x381692('0x8e')]['id']}})[_0x381692('0x26')](handleEntityNotFound(_0x1e869d,null))['then'](function(_0xbdc021){const _0x71b5fe=_0x381692;if(_0xbdc021)return _0xbe3276[_0x71b5fe('0xb5')][_0x71b5fe('0x23')]=_0xbdc021['id'],db[_0x71b5fe('0xbb')][_0x71b5fe('0x5c')](_0xbe3276['body']);})['then'](respondWithResult(_0x1e869d,null))['catch'](handleError(_0x1e869d,null));},exports['getAnswers']=function(_0x56ccbb,_0x4b135c){const _0x161543=_0x35777b;let _0x49979f={'raw':![],'where':{}};const _0x482e13={},_0x4a7ad9={'count':0x0,'rows':[]};return db[_0x161543('0x9f')]['findOne']({'where':{'id':_0x56ccbb[_0x161543('0x8e')]['id']}})[_0x161543('0x26')](handleEntityNotFound(_0x4b135c,null))[_0x161543('0x26')](function(_0x294d46){const _0x57a8a4=_0x161543;if(_0x294d46)return _0x482e13[_0x57a8a4('0x7f')]=_['keys'](db[_0x57a8a4('0xbb')][_0x57a8a4('0x91')]),_0x482e13[_0x57a8a4('0x8d')]=_[_0x57a8a4('0xad')](_0x56ccbb['query']),_0x482e13[_0x57a8a4('0x83')]=_[_0x57a8a4('0x98')](_0x482e13[_0x57a8a4('0x7f')],_0x482e13['query']),_0x49979f['attributes']=_[_0x57a8a4('0x98')](_0x482e13[_0x57a8a4('0x7f')],qs[_0x57a8a4('0xa3')](_0x56ccbb[_0x57a8a4('0x8d')][_0x57a8a4('0xa3')])),_0x49979f[_0x57a8a4('0xa4')]=_0x49979f[_0x57a8a4('0xa4')][_0x57a8a4('0xc4')]?_0x49979f['attributes']:_0x482e13['model'],typeof _0x56ccbb[_0x57a8a4('0x8d')][_0x57a8a4('0x48')]===_0x57a8a4('0x7d')&&(_0x49979f[_0x57a8a4('0x50')]=qs[_0x57a8a4('0x50')](_0x56ccbb[_0x57a8a4('0x8d')]['limit']),_0x49979f[_0x57a8a4('0xac')]=qs[_0x57a8a4('0xac')](_0x56ccbb[_0x57a8a4('0x8d')][_0x57a8a4('0xac')])),_0x49979f['order']=qs[_0x57a8a4('0x71')](_0x56ccbb[_0x57a8a4('0x8d')][_0x57a8a4('0x71')]),_0x49979f['where']=qs[_0x57a8a4('0x83')](_[_0x57a8a4('0x93')](_0x56ccbb[_0x57a8a4('0x8d')],_0x482e13[_0x57a8a4('0x83')])),_0x49979f[_0x57a8a4('0x4')][_0x57a8a4('0x23')]=_0x294d46['id'],_0x56ccbb[_0x57a8a4('0x8d')]['filter']&&(_0x49979f[_0x57a8a4('0x4')]=_[_0x57a8a4('0x8b')](_0x49979f[_0x57a8a4('0x4')],{[Op['or']]:_[_0x57a8a4('0x70')](_0x49979f[_0x57a8a4('0xa4')],function(_0x550c64){const _0x1b0668={};return _0x1b0668[_0x550c64]={[Op['like']]:'%'+_0x56ccbb['query']['filter']+'%'},_0x1b0668;})})),_0x49979f=_[_0x57a8a4('0x8b')]({},_0x49979f,_0x56ccbb[_0x57a8a4('0x97')]),db[_0x57a8a4('0xbb')][_0x57a8a4('0x1')]({'where':_0x49979f['where']})[_0x57a8a4('0x26')](function(_0x29c38d){const _0x447255=_0x57a8a4;return _0x4a7ad9['count']=_0x29c38d,_0x56ccbb['query'][_0x447255('0x6')]&&(_0x49979f['include']=[{'all':!![]}]),db[_0x447255('0xbb')][_0x447255('0xb8')](_0x49979f);})[_0x57a8a4('0x26')](function(_0x5e9971){const _0x175909=_0x57a8a4;return _0x4a7ad9[_0x175909('0x34')]=_0x5e9971,_0x4a7ad9;});})[_0x161543('0x26')](respondWithFilteredResult(_0x4b135c,_0x49979f))[_0x161543('0x22')](handleError(_0x4b135c,null));},exports[_0x35777b('0x24')]=function(_0x10235f,_0x3bb6d3){const _0x22f898=_0x35777b;return db[_0x22f898('0x9f')][_0x22f898('0x42')]({'where':{'id':_0x10235f[_0x22f898('0x8e')]['id']}})[_0x22f898('0x26')](handleEntityNotFound(_0x3bb6d3,null))['then'](function(_0x11d35b){const _0xb6922d=_0x22f898;if(_0x11d35b)return _0x11d35b[_0xb6922d('0x24')](_0x10235f['query'][_0xb6922d('0x7e')]);})[_0x22f898('0x26')](respondWithStatusCode(_0x3bb6d3,null))['catch'](handleError(_0x3bb6d3,null));},exports[_0x35777b('0x4d')]=function(_0x1d3236,_0x37e09c){const _0x4bbf76=_0x35777b,_0x597045={'channel':_0x4bbf76('0x3d')};let _0x5c3343=[],_0x3c04bf=[];const _0x35605b={};return db['SmsAccount'][_0x4bbf76('0x42')]({'where':{'id':_0x1d3236['params']['id']},'include':[{'model':db[_0x4bbf76('0x65')],'as':_0x4bbf76('0xc5')}]})[_0x4bbf76('0x26')](handleEntityNotFound(_0x37e09c,null))[_0x4bbf76('0x26')](function(_0x41e376){const _0x35e200=_0x4bbf76;return _0x597045[_0x35e200('0x77')]=_0x41e376,_0x597045[_0x35e200('0x82')]=_[_0x35e200('0x2c')](_0x41e376['Applications'],[_0x35e200('0xa9')],[_0x35e200('0x86')]),_0x597045[_0x35e200('0x77')][_0x35e200('0xc5')]&&delete _0x597045[_0x35e200('0x77')][_0x35e200('0xc5')],db['CmContact']['describe']();})[_0x4bbf76('0x26')](function(_0xaa114d){const _0x12a6f3=_0x4bbf76;if(!_0xaa114d)throw new db[(_0x12a6f3('0x74'))][(_0x12a6f3('0x45'))](_0x12a6f3('0x36'));_0x5c3343=_['difference'](_[_0x12a6f3('0xad')](_0xaa114d),[_0x12a6f3('0x78'),'updatedAt']),_0x3c04bf=_[_0x12a6f3('0x3')](_['keys'](_0xaa114d),[_0x12a6f3('0x78'),_0x12a6f3('0xc7'),_0x12a6f3('0x49'),'ListId']),_0x597045[_0x12a6f3('0xb5')]={'mapKey':_0x12a6f3('0x3b')};if(_0x597045['account'][_0x12a6f3('0xc0')])switch(_0x597045['account'][_0x12a6f3('0xc0')]){case'twilio':_0x597045[_0x12a6f3('0xb5')][_0x12a6f3('0xbc')]=_0x1d3236[_0x12a6f3('0xb5')][_0x12a6f3('0x54')],_0x597045[_0x12a6f3('0xb5')][_0x12a6f3('0xb5')]=_0x1d3236[_0x12a6f3('0xb5')][_0x12a6f3('0x80')],_0x597045[_0x12a6f3('0xb5')][_0x12a6f3('0x7a')]=_0x1d3236['body'][_0x12a6f3('0x79')];break;case _0x12a6f3('0xa6'):_0x597045['body'][_0x12a6f3('0xbc')]='+'+_0x1d3236[_0x12a6f3('0xb5')][_0x12a6f3('0xb4')],_0x597045[_0x12a6f3('0xb5')]['body']=_0x1d3236['body'][_0x12a6f3('0x2d')];break;case'connectel':_0x597045[_0x12a6f3('0xb5')]['from']=_0x1d3236[_0x12a6f3('0xb5')][_0x12a6f3('0xbc')],_0x597045['body']['body']=_0x1d3236[_0x12a6f3('0xb5')][_0x12a6f3('0x9e')];break;case _0x12a6f3('0x16'):_0x597045['body'][_0x12a6f3('0xbc')]=_0x1d3236[_0x12a6f3('0xb5')][_0x12a6f3('0xbc')],_0x597045[_0x12a6f3('0xb5')][_0x12a6f3('0xb5')]=_0x1d3236[_0x12a6f3('0xb5')][_0x12a6f3('0xb5')],_0x597045[_0x12a6f3('0xb5')][_0x12a6f3('0x7a')]=_0x1d3236[_0x12a6f3('0xb5')][_0x12a6f3('0x31')];break;case _0x12a6f3('0x62'):_0x597045['body'][_0x12a6f3('0xbc')]=_0x1d3236[_0x12a6f3('0xb5')]['From'],_0x597045[_0x12a6f3('0xb5')][_0x12a6f3('0xb5')]=_0x1d3236[_0x12a6f3('0xb5')][_0x12a6f3('0x25')],_0x597045[_0x12a6f3('0xb5')][_0x12a6f3('0x7a')]=_0x1d3236[_0x12a6f3('0xb5')][_0x12a6f3('0x6d')];break;case'infobip':_0x597045['body'][_0x12a6f3('0xbc')]='+'+_0x1d3236[_0x12a6f3('0xb5')][_0x12a6f3('0xa7')][0x0]['from'],_0x597045[_0x12a6f3('0xb5')][_0x12a6f3('0xb5')]=_0x1d3236[_0x12a6f3('0xb5')][_0x12a6f3('0xa7')][0x0]['text'],_0x597045[_0x12a6f3('0xb5')][_0x12a6f3('0x7a')]=_0x1d3236[_0x12a6f3('0xb5')][_0x12a6f3('0xa7')][0x0][_0x12a6f3('0x7a')];break;case _0x12a6f3('0x28'):_0x597045['body']['from']=_0x1d3236[_0x12a6f3('0xb5')]['originatingAddress'],_0x597045[_0x12a6f3('0xb5')][_0x12a6f3('0xb5')]=_0x1d3236[_0x12a6f3('0xb5')][_0x12a6f3('0x14')][_0x12a6f3('0x9e')];break;case _0x12a6f3('0xe'):_0x597045[_0x12a6f3('0xb5')][_0x12a6f3('0xbc')]=_0x1d3236['body'][_0x12a6f3('0x9b')],_0x597045[_0x12a6f3('0xb5')][_0x12a6f3('0xb5')]=_0x1d3236[_0x12a6f3('0xb5')][_0x12a6f3('0x2d')],_0x597045[_0x12a6f3('0xb5')][_0x12a6f3('0x7a')]=_0x1d3236[_0x12a6f3('0xb5')][_0x12a6f3('0xbd')];break;case _0x12a6f3('0x1f'):_0x597045[_0x12a6f3('0xb5')][_0x12a6f3('0xbc')]=_0x1d3236['body'][_0x12a6f3('0xbc')],_0x597045[_0x12a6f3('0xb5')][_0x12a6f3('0xb5')]=_0x1d3236[_0x12a6f3('0xb5')][_0x12a6f3('0x9e')],_0x597045[_0x12a6f3('0xb5')]['messageId']=_0x1d3236['body'][_0x12a6f3('0x84')];break;}_0x597045[_0x12a6f3('0xb5')]['id']&&delete _0x597045['body']['id'];if(_[_0x12a6f3('0xaf')](_0x597045[_0x12a6f3('0xb5')][_0x12a6f3('0xbc')]))throw new db[(_0x12a6f3('0x74'))][(_0x12a6f3('0x45'))](_0x12a6f3('0x5e'));if(_['isNil'](_0x597045[_0x12a6f3('0xb5')][_0x12a6f3('0xb5')])||_0x597045[_0x12a6f3('0xb5')][_0x12a6f3('0xb5')]==='')throw new db[(_0x12a6f3('0x74'))][(_0x12a6f3('0x45'))](_0x12a6f3('0x47'));if(_[_0x12a6f3('0xaf')](_0x597045[_0x12a6f3('0xb5')][_0x12a6f3('0x8f')]))throw new db[(_0x12a6f3('0x74'))][(_0x12a6f3('0x45'))]('mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x3c04bf);if(!_['includes'](_0x3c04bf,_0x597045['body'][_0x12a6f3('0x8f')]))throw new db[(_0x12a6f3('0x74'))][(_0x12a6f3('0x45'))](_0x12a6f3('0x6c')+_0x3c04bf);return _0x35605b[_0x597045[_0x12a6f3('0xb5')][_0x12a6f3('0x8f')]]=_0x597045[_0x12a6f3('0xb5')]['from'],db[_0x12a6f3('0x57')][_0x12a6f3('0x42')]({'where':{'id':_0x597045[_0x12a6f3('0x77')]['ListId']},'include':[{'model':db[_0x12a6f3('0x61')],'as':_0x12a6f3('0x2f'),'where':_0x35605b,'limit':0x1,'order':[[_0x12a6f3('0xc7'),_0x12a6f3('0x68')]]}]});})[_0x4bbf76('0x26')](handleEntityNotFound(_0x37e09c,null))['then'](function(_0x25fe2d){const _0x2c373f=_0x4bbf76;if(_0x25fe2d){_0x597045[_0x2c373f('0x8')]=_['omit'](_0x25fe2d,[_0x2c373f('0x2f')]);if(_0x25fe2d[_0x2c373f('0x2f')]['length'])return _0x25fe2d['Contacts'][0x0];const _0x35ad1a=_[_0x2c373f('0x11')](_0x597045[_0x2c373f('0xb5')],{'firstName':_0x597045['body'][_0x2c373f('0xbc')],'ListId':_0x25fe2d['id']});return _0x35ad1a[_0x597045[_0x2c373f('0xb5')][_0x2c373f('0x8f')]]=_0x597045[_0x2c373f('0xb5')][_0x2c373f('0xbc')],db[_0x2c373f('0x61')][_0x2c373f('0x5c')](_0x35ad1a,{'fields':_0x5c3343,'raw':!![]});}})['then'](handleEntityNotFound(_0x37e09c,null))[_0x4bbf76('0x26')](function(_0x25a4e2){const _0x54cb3f=_0x4bbf76;if(_0x25a4e2){_0x597045[_0x54cb3f('0x4b')]=_0x25a4e2;const _0x2149d5={'ContactId':_0x25a4e2['id'],'phone':_0x597045[_0x54cb3f('0xb5')]['from'],'SmsAccountId':_0x1d3236[_0x54cb3f('0x8e')]['id']},_0x265f48={'ContactId':_0x25a4e2['id'],'SmsAccountId':_0x1d3236['params']['id'],'closed':![]};return db['SmsInteraction']['findOne']({'where':_0x265f48})['then'](function(_0x466381){const _0x21af3d=_0x54cb3f;if(_0x466381)return[_0x466381,![]];return db[_0x21af3d('0xab')][_0x21af3d('0x5c')](_0x2149d5)[_0x21af3d('0x26')](function(_0xa2ba7){return[_0xa2ba7,!![]];});});}})[_0x4bbf76('0x26')](function([_0x24b57c,_0x3f4e3f]){const _0x460f30=_0x4bbf76;return _0x597045[_0x460f30('0x44')]=_0x24b57c[_0x460f30('0x3a')]({'plain':!![]}),_0x597045[_0x460f30('0x44')][_0x460f30('0x66')]=![],_0x3f4e3f&&(_0x597045[_0x460f30('0x77')][_0x460f30('0x21')]&&_0x597045[_0x460f30('0x82')][_0x460f30('0x1c')]({'id':0x0,'priority':_0x597045[_0x460f30('0x82')]['length']+0x1,'app':_0x460f30('0xb7'),'appdata':_0x460f30('0x1e'),'interval':'*,*,*,*'}),_0x597045[_0x460f30('0x44')]['created']=!![]),db[_0x460f30('0xa8')][_0x460f30('0x5c')]({'phone':_0x597045['body']['from'],'messageId':_0x597045[_0x460f30('0xb5')]['messageId'],'body':_0x597045['body'][_0x460f30('0xb5')],'SmsAccountId':_0x1d3236[_0x460f30('0x8e')]['id'],'SmsInteractionId':_0x24b57c['id'],'direction':'in','ContactId':_0x24b57c[_0x460f30('0x99')],'AttachmentId':_0x597045['body']['AttachmentId']});})[_0x4bbf76('0x26')](function(_0x341abc){const _0x177f49=_0x4bbf76;_0x597045[_0x177f49('0x9e')]=_0x341abc;if(_0x597045[_0x177f49('0x44')][_0x177f49('0x5d')])return db[_0x177f49('0x2')][_0x177f49('0x42')]({'attributes':['id',_0x177f49('0x6e')],'where':{'id':_0x597045[_0x177f49('0x44')]['UserId']}})['then'](function(_0x39b82a){const _0x51d28a=_0x177f49;return _0x39b82a&&_0x597045[_0x51d28a('0x82')][_0x51d28a('0x37')]({'id':0x0,'priority':0x0,'app':_0x51d28a('0xaa'),'appdata':_0x39b82a[_0x51d28a('0x6e')]+','+(_0x597045['account'][_0x51d28a('0x5f')]||0xa),'interval':_0x51d28a('0x94')}),respondWithRpcPromise(_0x51d28a('0x20'),_0x51d28a('0x7'),_0x597045);});return respondWithRpcPromise(_0x177f49('0x20'),_0x177f49('0x7'),_0x597045);})['then'](function(_0xf5ac11){const _0x39a1dc=_0x4bbf76;if(_0xf5ac11){const _0x56432c=0xc8,_0x1cfc0a=_0x39a1dc('0x40');return logger['info'](_0x39a1dc('0x29'),_0x1cfc0a,_0x56432c,_0x39a1dc('0xd')),logger[_0x39a1dc('0x52')]('SmsAccount,\x20%s,\x20%s,\x20%s,\x20%s',_0x1cfc0a,_0x56432c,_0x39a1dc('0xd'),JSON['stringify'](_0xf5ac11)),_0x597045[_0x39a1dc('0x77')][_0x39a1dc('0xc0')]===_0x39a1dc('0x6f')?_0x37e09c[_0x39a1dc('0x64')](_0x56432c)[_0x39a1dc('0x75')]('Content-Type',_0x39a1dc('0x88'))[_0x39a1dc('0x18')](_0x39a1dc('0x2b')):_0x37e09c['status'](_0x56432c)[_0x39a1dc('0x3e')](_0xf5ac11);}})[_0x4bbf76('0x22')](handleError(_0x37e09c,null));},exports[_0x35777b('0x35')]=function(_0x15331f,_0x9ac16d){const _0x584e8d=_0x35777b;return db[_0x584e8d('0x9f')]['findOne']({'where':{'id':_0x15331f[_0x584e8d('0x8e')]['id']}})[_0x584e8d('0x26')](handleEntityNotFound(_0x9ac16d,null))[_0x584e8d('0x26')](function(_0x335970){const _0x25c449=_0x584e8d;if(_0x335970)return db[_0x25c449('0xb3')][_0x25c449('0xb0')](function(_0x17cffb){const _0x19f882=_0x25c449;return db['SmsApplication']['destroy']({'where':{'SmsAccountId':_0x15331f[_0x19f882('0x8e')]['id']},'transaction':_0x17cffb})['then'](function(){const _0x6147ba=_0x19f882,_0x58b14f=_[_0x6147ba('0x70')](_0x15331f['body'],function(_0x310374){const _0x54ae02=_0x6147ba;return _0x310374[_0x54ae02('0x23')]=_0x15331f[_0x54ae02('0x8e')]['id'],_0x310374;});return db['SmsApplication'][_0x6147ba('0x15')](_0x58b14f,{'transaction':_0x17cffb});});})['then'](function(){const _0x43240d=_0x25c449;return db[_0x43240d('0x65')][_0x43240d('0xb1')]({'where':{'SmsAccountId':_0x15331f['params']['id']},'order':_0x43240d('0xa9')});});})[_0x584e8d('0x26')](respondWithResult(_0x9ac16d,null))[_0x584e8d('0x22')](handleError(_0x9ac16d,null));},exports[_0x35777b('0x6b')]=function(_0x448ef9,_0x333537){const _0x1d842c=_0x35777b;let _0x14145f={};const _0x108019={};let _0x2c5746,_0x160351;return db['SmsAccount'][_0x1d842c('0x42')]({'where':{'id':_0x448ef9[_0x1d842c('0x8e')]['id']}})[_0x1d842c('0x26')](handleEntityNotFound(_0x333537,null))[_0x1d842c('0x26')](function(_0x30c579){const _0x5715ef=_0x1d842c;if(_0x30c579)return _0x2c5746=_0x30c579,_0x108019[_0x5715ef('0x7f')]=_[_0x5715ef('0xad')](db['SmsApplication'][_0x5715ef('0x91')]),_0x108019[_0x5715ef('0x8d')]=_['keys'](_0x448ef9[_0x5715ef('0x8d')]),_0x108019[_0x5715ef('0x83')]=_[_0x5715ef('0x98')](_0x108019['model'],_0x108019[_0x5715ef('0x8d')]),_0x14145f['attributes']=_['intersection'](_0x108019[_0x5715ef('0x7f')],qs[_0x5715ef('0xa3')](_0x448ef9[_0x5715ef('0x8d')]['fields'])),_0x14145f['attributes']=_0x14145f[_0x5715ef('0xa4')][_0x5715ef('0xc4')]?_0x14145f[_0x5715ef('0xa4')]:_0x108019[_0x5715ef('0x7f')],_0x14145f[_0x5715ef('0xb9')]=qs['sort'](_0x448ef9[_0x5715ef('0x8d')][_0x5715ef('0x71')]),_0x14145f['where']=qs[_0x5715ef('0x83')](_[_0x5715ef('0x93')](_0x448ef9['query'],_0x108019['filters'])),_0x448ef9[_0x5715ef('0x8d')][_0x5715ef('0xb6')]&&(_0x14145f['where']=_['merge'](_0x14145f[_0x5715ef('0x4')],{[Op['or']]:_[_0x5715ef('0x70')](_0x14145f[_0x5715ef('0xa4')],function(_0x4702a9){const _0x1d2390=_0x5715ef,_0x55882d={};return _0x55882d[_0x4702a9]={[Op[_0x1d2390('0xc1')]]:'%'+_0x448ef9['query']['filter']+'%'},_0x55882d;})})),_0x14145f=_['merge']({},_0x14145f,_0x448ef9[_0x5715ef('0x97')]),_0x2c5746[_0x5715ef('0x6b')](_0x14145f);})[_0x1d842c('0x26')](function(_0x1ffbba){const _0x2dd841=_0x1d842c;if(_0x1ffbba)return _0x160351=_0x1ffbba[_0x2dd841('0xc4')],typeof _0x448ef9[_0x2dd841('0x8d')][_0x2dd841('0x48')]===_0x2dd841('0x7d')&&(_0x14145f['limit']=qs['limit'](_0x448ef9['query'][_0x2dd841('0x50')]),_0x14145f[_0x2dd841('0xac')]=qs[_0x2dd841('0xac')](_0x448ef9[_0x2dd841('0x8d')][_0x2dd841('0xac')])),_0x2c5746[_0x2dd841('0x6b')](_0x14145f);})[_0x1d842c('0x26')](function(_0x33241c){if(_0x33241c)return _0x33241c?{'count':_0x160351,'rows':_0x33241c}:null;})[_0x1d842c('0x26')](respondWithResult(_0x333537,null))[_0x1d842c('0x22')](handleError(_0x333537,null));},exports['getInteractions']=function(_0x22dacd,_0x187aa9){const _0x5b458f=_0x35777b;let _0x328920={'raw':![],'where':{}};const _0x571054={},_0xa3d826={'count':0x0,'rows':[]};return db[_0x5b458f('0x9f')][_0x5b458f('0x42')]({'where':{'id':_0x22dacd[_0x5b458f('0x8e')]['id']}})[_0x5b458f('0x26')](handleEntityNotFound(_0x187aa9,null))[_0x5b458f('0x26')](function(_0x45ad99){const _0x312fc4=_0x5b458f;if(_0x45ad99)return _0x571054[_0x312fc4('0x7f')]=_[_0x312fc4('0xad')](db[_0x312fc4('0xab')][_0x312fc4('0x91')]),_0x571054['query']=_[_0x312fc4('0xad')](_0x22dacd[_0x312fc4('0x8d')]),_0x571054[_0x312fc4('0x83')]=_['intersection'](_0x571054[_0x312fc4('0x7f')],_0x571054[_0x312fc4('0x8d')]),_0x328920[_0x312fc4('0xa4')]=_[_0x312fc4('0x98')](_0x571054[_0x312fc4('0x7f')],qs[_0x312fc4('0xa3')](_0x22dacd['query']['fields'])),_0x328920[_0x312fc4('0xa4')]=_0x328920[_0x312fc4('0xa4')][_0x312fc4('0xc4')]?_0x328920[_0x312fc4('0xa4')]:_0x571054[_0x312fc4('0x7f')],typeof _0x22dacd[_0x312fc4('0x8d')]['nolimit']===_0x312fc4('0x7d')&&(_0x328920[_0x312fc4('0x50')]=qs[_0x312fc4('0x50')](_0x22dacd[_0x312fc4('0x8d')][_0x312fc4('0x50')]),_0x328920[_0x312fc4('0xac')]=qs[_0x312fc4('0xac')](_0x22dacd[_0x312fc4('0x8d')][_0x312fc4('0xac')])),_0x328920[_0x312fc4('0xb9')]=qs[_0x312fc4('0x71')](_0x22dacd[_0x312fc4('0x8d')]['sort']),_0x328920[_0x312fc4('0x4')]=qs['filters'](_[_0x312fc4('0x93')](_0x22dacd['query'],_0x571054[_0x312fc4('0x83')])),_0x328920[_0x312fc4('0x4')]['SmsAccountId']=_0x45ad99['id'],_0x22dacd['query'][_0x312fc4('0xb6')]&&(_0x328920[_0x312fc4('0x4')]=_[_0x312fc4('0x8b')](_0x328920['where'],{[Op['or']]:_[_0x312fc4('0x70')](_0x328920[_0x312fc4('0xa4')],function(_0x44e32f){const _0x23c2d9=_0x312fc4,_0x5dc267={};return _0x5dc267[_0x44e32f]={[Op[_0x23c2d9('0xc1')]]:'%'+_0x22dacd[_0x23c2d9('0x8d')][_0x23c2d9('0xb6')]+'%'},_0x5dc267;})})),_0x328920=_[_0x312fc4('0x8b')]({},_0x328920,_0x22dacd['options']),db['SmsInteraction'][_0x312fc4('0x1')]({'where':_0x328920[_0x312fc4('0x4')]})[_0x312fc4('0x26')](function(_0xa5dbba){const _0x5c3bd1=_0x312fc4;return _0xa3d826['count']=_0xa5dbba,_0x22dacd[_0x5c3bd1('0x8d')]['includeAll']&&(_0x328920[_0x5c3bd1('0x30')]=[{'model':db[_0x5c3bd1('0x61')],'as':'Contact','required':![]},{'model':db[_0x5c3bd1('0x2')],'as':_0x5c3bd1('0x58'),'attributes':[_0x5c3bd1('0x6e'),_0x5c3bd1('0xba'),_0x5c3bd1('0x95')],'required':![]},{'model':db[_0x5c3bd1('0xa0')],'as':_0x5c3bd1('0x19'),'attributes':['id',_0x5c3bd1('0x6e'),_0x5c3bd1('0x1a')],'where':_0x22dacd[_0x5c3bd1('0x8d')]['tag']?{'id':_0x22dacd[_0x5c3bd1('0x8d')][_0x5c3bd1('0x81')]}:undefined,'required':_0x22dacd[_0x5c3bd1('0x8d')]['tag']?!![]:![]}]),db[_0x5c3bd1('0xab')][_0x5c3bd1('0xb8')](_0x328920);})[_0x312fc4('0x26')](function(_0x241459){const _0x272abf=_0x312fc4;return _0xa3d826[_0x272abf('0x34')]=_0x241459,_0xa3d826;});})[_0x5b458f('0x26')](respondWithFilteredResult(_0x187aa9,_0x328920))['catch'](handleError(_0x187aa9,null));},exports[_0x35777b('0x18')]=function(_0x1cf83c,_0x1559f5){const _0x467152=_0x35777b;let _0x2a9cc5,_0x5111aa;if(_['isNil'](_0x1cf83c['body'][_0x467152('0xb5')])||_0x1cf83c[_0x467152('0xb5')][_0x467152('0xb5')]==='')throw new db[(_0x467152('0x74'))]['ValidationError']('body\x20is\x20mandatory\x20and\x20not\x20empty');if(_[_0x467152('0xaf')](_0x1cf83c[_0x467152('0xb5')]['to']))throw new db[(_0x467152('0x74'))][(_0x467152('0x45'))](_0x467152('0x6a'));const _0x1719f6=_0x1cf83c['body']['to'];return db[_0x467152('0x9f')][_0x467152('0x42')]({'where':{'id':_0x1cf83c['params']['id']},'include':[{'model':db['CmList'],'as':_0x467152('0x38'),'include':[{'model':db[_0x467152('0x61')],'as':'Contacts','where':{'mobile':_0x1719f6},'limit':0x1,'order':[[_0x467152('0xc7'),'DESC']]}]}]})[_0x467152('0x26')](handleEntityNotFound(_0x1559f5,null))[_0x467152('0x26')](function(_0x4c3dd2){const _0x4d750f=_0x467152;if(_0x4c3dd2&&_0x4c3dd2[_0x4d750f('0x38')]){_0x2a9cc5=_0x4c3dd2[_0x4d750f('0x3a')]({'plain':!![]});if(_0x2a9cc5[_0x4d750f('0x38')]&&_0x2a9cc5[_0x4d750f('0x38')]['Contacts'][_0x4d750f('0xc4')])return _0x2a9cc5[_0x4d750f('0x38')][_0x4d750f('0x2f')][0x0];return db[_0x4d750f('0x61')][_0x4d750f('0x5c')](_[_0x4d750f('0x11')](_0x1cf83c[_0x4d750f('0xb5')],{'firstName':_0x1719f6,'mobile':_0x1719f6,'phone':_0x1719f6,'ListId':_0x2a9cc5['ListId']}));}})[_0x467152('0x26')](handleEntityNotFound(_0x1559f5,null))[_0x467152('0x26')](function(_0x318963){const _0x4a85ea=_0x467152;if(_0x318963)return _0x5111aa=_0x318963,db[_0x4a85ea('0xab')][_0x4a85ea('0x42')]({'where':{'ContactId':_0x5111aa['id'],'closed':![],'SmsAccountId':_0x2a9cc5['id']}})[_0x4a85ea('0x26')](function(_0x424594){const _0x258a81=_0x4a85ea;if(_0x424594)return[_0x424594,![]];return db[_0x258a81('0xab')]['create']({'UserId':_0x1cf83c[_0x258a81('0x85')]['id'],'ContactId':_0x5111aa['id'],'SmsAccountId':_0x2a9cc5['id'],'phone':_0x1719f6,'firstMsgDirection':_0x258a81('0x9d'),'Messages':[_[_0x258a81('0x8b')](_0x1cf83c[_0x258a81('0xb5')],{'read':![],'body':_0x1cf83c['body']['body'],'phone':_0x1719f6,'SmsAccountId':_0x2a9cc5['id'],'UserId':_0x1cf83c['user']['id'],'ContactId':_0x5111aa['id']})]},{'include':[{'model':db[_0x258a81('0xa8')],'as':'Messages'}]})['then'](function(_0x240102){return[_0x240102,!![]];});});})['then'](function([_0xb3aa72,_0x1bbe60]){const _0xf8f706=_0x467152;if(_0x1bbe60)return _0xb3aa72;return db[_0xf8f706('0xa8')]['create'](_[_0xf8f706('0x8b')](_0x1cf83c[_0xf8f706('0xb5')],{'read':![],'body':_0x1cf83c[_0xf8f706('0xb5')][_0xf8f706('0xb5')],'phone':_0x1719f6,'SmsAccountId':_0x2a9cc5['id'],'SmsInteractionId':_0xb3aa72['id'],'UserId':_0x1cf83c[_0xf8f706('0x85')]['id'],'ContactId':_0x5111aa['id']}))[_0xf8f706('0x26')](function(_0x1686fd){const _0x4b156b=_0xf8f706;return _0xb3aa72[_0x4b156b('0x51')][_0x4b156b('0x8c')]=[],_0xb3aa72[_0x4b156b('0x51')][_0x4b156b('0x8c')]['push'](_0x1686fd[_0x4b156b('0x51')]),_0xb3aa72;});})[_0x467152('0x26')](respondWithResult(_0x1559f5,null))['catch'](handleError(_0x1559f5,null));},exports[_0x35777b('0x64')]=function(_0x539486,_0x466724){const _0x110f13=_0x35777b;_0x539486[_0x110f13('0xb5')]['id']&&delete _0x539486[_0x110f13('0xb5')]['id'];console[_0x110f13('0x53')](_0x110f13('0x5a'),_0x539486[_0x110f13('0xb5')]);let _0x53ca05,_0x1d6535,_0x5bbf6b;return db[_0x110f13('0x9f')][_0x110f13('0x42')]({'where':{'id':_0x539486[_0x110f13('0x8e')]['id']}})[_0x110f13('0x26')](handleEntityNotFound(_0x466724,null))[_0x110f13('0x26')](function(_0x1222d5){const _0x1eb5ac=_0x110f13;if(_0x1222d5){_0x5bbf6b=_0x1222d5,logger[_0x1eb5ac('0x52')](_0x1eb5ac('0x29'),_0x1eb5ac('0x64'),'received\x20delivery\x20report\x20from',_0x1222d5[_0x1eb5ac('0xc0')],util[_0x1eb5ac('0xc2')](_0x539486['body'],{'showHidden':![],'depth':null}));switch(_0x1222d5[_0x1eb5ac('0xc0')]){case _0x1eb5ac('0xa6'):if(_0x539486[_0x1eb5ac('0xb5')][_0x1eb5ac('0x67')]&&_0x539486[_0x1eb5ac('0xb5')][_0x1eb5ac('0x64')])return _0x1d6535=_0x539486[_0x1eb5ac('0xb5')][_0x1eb5ac('0x64')],db[_0x1eb5ac('0xa8')][_0x1eb5ac('0x42')]({'where':{'messageId':_0x539486[_0x1eb5ac('0xb5')]['skebby_dispatch_id']}});break;case _0x1eb5ac('0x60'):if(_0x539486[_0x1eb5ac('0xb5')][_0x1eb5ac('0xbf')]&&_0x539486[_0x1eb5ac('0xb5')]['statusInt'])return _0x1d6535=_0x539486[_0x1eb5ac('0xb5')][_0x1eb5ac('0x87')],db[_0x1eb5ac('0xa8')][_0x1eb5ac('0x42')]({'where':{'messageId':_0x539486[_0x1eb5ac('0xb5')][_0x1eb5ac('0xbf')]}});break;case _0x1eb5ac('0x16'):if(_0x539486[_0x1eb5ac('0xb5')][_0x1eb5ac('0x31')]&&_0x539486['body'][_0x1eb5ac('0xc')])return _0x1d6535=_0x539486['body'][_0x1eb5ac('0xc')],db[_0x1eb5ac('0xa8')]['findOne']({'where':{'messageId':_0x539486[_0x1eb5ac('0xb5')][_0x1eb5ac('0x31')]}});break;case _0x1eb5ac('0xa'):{const _0x3f222b=_0x539486[_0x1eb5ac('0xb5')][_0x1eb5ac('0xa7')][0x0];if(_0x3f222b[_0x1eb5ac('0x7a')]&&_0x3f222b[_0x1eb5ac('0x64')][_0x1eb5ac('0x72')]===_0x1eb5ac('0x55'))return _0x1d6535=_0x3f222b[_0x1eb5ac('0x64')][_0x1eb5ac('0x72')],db['SmsMessage'][_0x1eb5ac('0x42')]({'where':{'messageId':_0x3f222b[_0x1eb5ac('0x7a')]}});}break;case _0x1eb5ac('0xe'):if(_0x539486['body'][_0x1eb5ac('0x7a')]&&_0x539486['body']['status'])return _0x1d6535=_0x539486['body'][_0x1eb5ac('0x64')],db['SmsMessage'][_0x1eb5ac('0x42')]({'where':{'messageId':_0x539486[_0x1eb5ac('0xb5')][_0x1eb5ac('0x7a')]}});break;case _0x1eb5ac('0x1f'):if(_0x539486[_0x1eb5ac('0xb5')][_0x1eb5ac('0x2a')]&&_0x539486[_0x1eb5ac('0xb5')][_0x1eb5ac('0x64')])return _0x1d6535=_0x539486[_0x1eb5ac('0xb5')][_0x1eb5ac('0x64')],db[_0x1eb5ac('0xa8')][_0x1eb5ac('0x42')]({'where':{'messageId':_0x539486['body'][_0x1eb5ac('0x2a')]}});break;}}})['then'](handleEntityNotFound(_0x466724,null))[_0x110f13('0x26')](function(_0x358d20){const _0x3cbe20=_0x110f13;if(_0x358d20){_0x53ca05=_0x358d20;switch(_0x5bbf6b[_0x3cbe20('0xc0')]){case _0x3cbe20('0xa6'):if(_0x1d6535==='DELIVERED')return _0x53ca05[_0x3cbe20('0x76')]({'read':!![]});else logger[_0x3cbe20('0x0')](_0x3cbe20('0x29'),_0x3cbe20('0x64'),_0x3cbe20('0xa6'),util[_0x3cbe20('0xc2')](_0x539486[_0x3cbe20('0xb5')],{'showHidden':![],'depth':null}));break;case _0x3cbe20('0x60'):if(_0x1d6535==='1')return _0x53ca05[_0x3cbe20('0x76')]({'read':!![]});else logger['error'](_0x3cbe20('0x29'),'status',_0x3cbe20('0xa6'),util[_0x3cbe20('0xc2')](_0x539486['body'],{'showHidden':![],'depth':null}));break;case _0x3cbe20('0x16'):if(!_0x539486[_0x3cbe20('0xb5')][_0x3cbe20('0x3c')]&&_0x1d6535>=0xc8&&_0x1d6535<=0xce)return _0x53ca05[_0x3cbe20('0x76')]({'read':!![]});else logger['error'](_0x3cbe20('0x29'),_0x3cbe20('0x64'),_0x3cbe20('0x16'),util[_0x3cbe20('0xc2')](_0x539486[_0x3cbe20('0xb5')],{'showHidden':![],'depth':null}));break;case _0x3cbe20('0xa'):{const _0x3b52b7=_0x539486['body'][_0x3cbe20('0xa7')][0x0];if(_0x3b52b7[_0x3cbe20('0x64')][_0x3cbe20('0x72')]===_0x3cbe20('0x55'))return _0x53ca05[_0x3cbe20('0x76')]({'read':!![]});else logger[_0x3cbe20('0x0')](_0x3cbe20('0x29'),'status','infobip',util[_0x3cbe20('0xc2')](_0x539486[_0x3cbe20('0xb5')],{'showHidden':![],'depth':null}));}break;case _0x3cbe20('0xe'):if(_0x1d6535==_0x3cbe20('0x32')||_0x1d6535==_0x3cbe20('0x90'))return _0x53ca05['update']({'read':!![]});else logger[_0x3cbe20('0x0')]('SmsAccount,\x20%s,\x20%s,\x20%s',_0x3cbe20('0x64'),_0x3cbe20('0xe'),util[_0x3cbe20('0xc2')](_0x539486[_0x3cbe20('0xb5')],{'showHidden':![],'depth':null}));break;case _0x3cbe20('0x1f'):if(_0x1d6535===_0x3cbe20('0x27')||_0x1d6535==='ACCEPTD')return _0x53ca05[_0x3cbe20('0x76')]({'read':!![]});else logger[_0x3cbe20('0x0')](_0x3cbe20('0x29'),_0x3cbe20('0x64'),_0x3cbe20('0x1f'),util[_0x3cbe20('0xc2')](_0x539486[_0x3cbe20('0xb5')],{'showHidden':![],'depth':null}));break;}return _0x53ca05;}})['then'](respondWithResult(_0x466724,null))[_0x110f13('0x22')](handleError(_0x466724,null));},exports['statusGet']=function(_0x324e41,_0x44ef32){const _0xd6c0dd=_0x35777b;let _0x569c4d,_0x4a327c,_0x43bc38;return db[_0xd6c0dd('0x9f')][_0xd6c0dd('0x42')]({'where':{'id':_0x324e41[_0xd6c0dd('0x8e')]['id']}})[_0xd6c0dd('0x26')](handleEntityNotFound(_0x44ef32,null))[_0xd6c0dd('0x26')](function(_0x32d19c){const _0x50e6e4=_0xd6c0dd;if(_0x32d19c){_0x43bc38=_0x32d19c,logger[_0x50e6e4('0x52')]('SmsAccount,\x20%s,\x20%s,\x20%s',_0x50e6e4('0x64'),_0x50e6e4('0x9a'),_0x32d19c[_0x50e6e4('0xc0')],util['inspect'](_0x324e41[_0x50e6e4('0x8d')],{'showHidden':![],'depth':null}));switch(_0x32d19c[_0x50e6e4('0xc0')]){case _0x50e6e4('0x28'):if(_0x324e41[_0x50e6e4('0x8d')][_0x50e6e4('0x5b')]&&_0x324e41[_0x50e6e4('0x8d')][_0x50e6e4('0x13')])return _0x4a327c=_0x324e41[_0x50e6e4('0x8d')][_0x50e6e4('0x13')],db[_0x50e6e4('0xa8')]['findOne']({'where':{'messageId':_0x324e41[_0x50e6e4('0x8d')]['message-id']}});break;}}})['then'](handleEntityNotFound(_0x44ef32,null))[_0xd6c0dd('0x26')](function(_0x250251){const _0x25a6fa=_0xd6c0dd;if(_0x250251){_0x569c4d=_0x250251;switch(_0x43bc38['type']){case _0x25a6fa('0x28'):if(_0x4a327c==='2'||_0x4a327c==='6')return _0x569c4d[_0x25a6fa('0x76')]({'read':!![]});else logger['error'](_0x25a6fa('0x29'),_0x25a6fa('0x64'),_0x25a6fa('0x28'),util[_0x25a6fa('0xc2')](_0x324e41[_0x25a6fa('0x8d')],{'showHidden':![],'depth':null}));break;}return _0x569c4d;}})[_0xd6c0dd('0x26')](respondWithResult(_0x44ef32,null))[_0xd6c0dd('0x22')](handleError(_0x44ef32,null));},exports[_0x35777b('0x33')]=function(_0x5afd4f,_0x16a5d8){const _0x5692d0=_0x35777b;return db[_0x5692d0('0x9f')][_0x5692d0('0x42')]({'where':{'id':_0x5afd4f['params']['id']}})[_0x5692d0('0x26')](function(_0x830eed){const _0x3a3534=_0x5692d0;if(_0x830eed)return _0x830eed[_0x3a3534('0x33')](_0x5afd4f['body'][_0x3a3534('0x7e')],{'through':_[_0x3a3534('0xa2')](_0x5afd4f['body'],[_0x3a3534('0x7e'),'id'])})[_0x3a3534('0x26')](function(_0x4f130e){const _0x14e5cb=_0x3a3534;for(let _0x1cc7e7=0x0;_0x1cc7e7<_0x5afd4f['body'][_0x14e5cb('0x7e')][_0x14e5cb('0xc4')];_0x1cc7e7+=0x1){socket[_0x14e5cb('0xc8')](_0x14e5cb('0xa1'),{'UserId':_0x5afd4f[_0x14e5cb('0xb5')]['ids'][_0x1cc7e7],'SmsAccountId':_0x5afd4f[_0x14e5cb('0x8e')]['id']});}return _0x4f130e;});})[_0x5692d0('0x26')](respondWithResult(_0x16a5d8,null))['catch'](handleError(_0x16a5d8,null));},exports[_0x35777b('0x8a')]=function(_0x4faf62,_0x3e927c){const _0x1cf8c5=_0x35777b;return db[_0x1cf8c5('0x9f')][_0x1cf8c5('0x42')]({'where':{'id':_0x4faf62['params']['id']}})[_0x1cf8c5('0x26')](handleEntityNotFound(_0x3e927c,null))[_0x1cf8c5('0x26')](function(_0x1496ae){const _0xf32c24=_0x1cf8c5;if(_0x1496ae)return _0x1496ae[_0xf32c24('0x8a')](_0x4faf62[_0xf32c24('0x8d')][_0xf32c24('0x7e')])[_0xf32c24('0x26')](function(){const _0x473fe6=_0xf32c24;if(_[_0x473fe6('0x1b')](_0x4faf62[_0x473fe6('0x8d')]['ids']))for(let _0x48549b=0x0;_0x48549b<_0x4faf62[_0x473fe6('0x8d')][_0x473fe6('0x7e')][_0x473fe6('0xc4')];_0x48549b+=0x1){socket['emit'](_0x473fe6('0x7c'),{'UserId':Number(_0x4faf62[_0x473fe6('0x8d')]['ids'][_0x48549b]),'SmsAccountId':Number(_0x4faf62['params']['id'])});}else socket[_0x473fe6('0xc8')](_0x473fe6('0x7c'),{'UserId':Number(_0x4faf62[_0x473fe6('0x8d')][_0x473fe6('0x7e')]),'SmsAccountId':Number(_0x4faf62['params']['id'])});});})[_0x1cf8c5('0x26')](respondWithStatusCode(_0x3e927c,null))[_0x1cf8c5('0x22')](handleError(_0x3e927c,null));},exports[_0x35777b('0x56')]=function(_0x453c0a,_0x9f43dc){const _0x24e1b9=_0x35777b;let _0x15eb7e={};const _0x273478={};let _0x1654a3,_0x51e80d;return db[_0x24e1b9('0x9f')][_0x24e1b9('0x42')]({'where':{'id':_0x453c0a[_0x24e1b9('0x8e')]['id']}})['then'](handleEntityNotFound(_0x9f43dc,null))[_0x24e1b9('0x26')](function(_0x57d81f){const _0x5b7f95=_0x24e1b9;if(_0x57d81f)return _0x1654a3=_0x57d81f,_0x273478[_0x5b7f95('0x7f')]=_['keys'](db[_0x5b7f95('0x2')][_0x5b7f95('0x91')]),_0x273478[_0x5b7f95('0x8d')]=_[_0x5b7f95('0xad')](_0x453c0a[_0x5b7f95('0x8d')]),_0x273478[_0x5b7f95('0x83')]=_['intersection'](_0x273478['model'],_0x273478[_0x5b7f95('0x8d')]),_0x15eb7e[_0x5b7f95('0xa4')]=_[_0x5b7f95('0x98')](_0x273478[_0x5b7f95('0x7f')],qs[_0x5b7f95('0xa3')](_0x453c0a[_0x5b7f95('0x8d')][_0x5b7f95('0xa3')])),_0x15eb7e[_0x5b7f95('0xa4')]=_0x15eb7e[_0x5b7f95('0xa4')][_0x5b7f95('0xc4')]?_0x15eb7e[_0x5b7f95('0xa4')]:_0x273478['model'],_0x15eb7e[_0x5b7f95('0xb9')]=qs[_0x5b7f95('0x71')](_0x453c0a[_0x5b7f95('0x8d')][_0x5b7f95('0x71')]),_0x15eb7e[_0x5b7f95('0x4')]=qs[_0x5b7f95('0x83')](_[_0x5b7f95('0x93')](_0x453c0a[_0x5b7f95('0x8d')],_0x273478['filters'])),_0x453c0a[_0x5b7f95('0x8d')]['filter']&&(_0x15eb7e[_0x5b7f95('0x4')]=_[_0x5b7f95('0x8b')](_0x15eb7e[_0x5b7f95('0x4')],{[Op['or']]:_[_0x5b7f95('0x70')](_0x15eb7e[_0x5b7f95('0xa4')],function(_0x183f14){const _0x5136ba=_0x5b7f95,_0x3d1a9f={};return _0x3d1a9f[_0x183f14]={[Op[_0x5136ba('0xc1')]]:'%'+_0x453c0a[_0x5136ba('0x8d')]['filter']+'%'},_0x3d1a9f;})})),_0x15eb7e=_[_0x5b7f95('0x8b')]({},_0x15eb7e,_0x453c0a[_0x5b7f95('0x97')]),_0x1654a3[_0x5b7f95('0x56')](_0x15eb7e);})[_0x24e1b9('0x26')](function(_0x1319c2){const _0x1e8e89=_0x24e1b9;if(_0x1319c2)return _0x51e80d=_0x1319c2[_0x1e8e89('0xc4')],typeof _0x453c0a[_0x1e8e89('0x8d')][_0x1e8e89('0x48')]===_0x1e8e89('0x7d')&&(_0x15eb7e[_0x1e8e89('0x50')]=qs['limit'](_0x453c0a[_0x1e8e89('0x8d')][_0x1e8e89('0x50')]),_0x15eb7e[_0x1e8e89('0xac')]=qs[_0x1e8e89('0xac')](_0x453c0a['query'][_0x1e8e89('0xac')])),_0x1654a3[_0x1e8e89('0x56')](_0x15eb7e);})[_0x24e1b9('0x26')](function(_0x12c424){if(_0x12c424)return _0x12c424?{'count':_0x51e80d,'rows':_0x12c424}:null;})[_0x24e1b9('0x26')](respondWithResult(_0x9f43dc,null))['catch'](handleError(_0x9f43dc,null));}; \ No newline at end of file +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 diff --git a/server/api/smsAccount/smsAccount.events.js b/server/api/smsAccount/smsAccount.events.js index 940bd78..991795d 100644 --- a/server/api/smsAccount/smsAccount.events.js +++ b/server/api/smsAccount/smsAccount.events.js @@ -1 +1 @@ -const a543_0x5648=['exports','SmsAccount','addHook','undefined','setMaxListeners','events','emit','save'];(function(_0x259922,_0x56488b){const _0x5b52ed=function(_0x3df738){while(--_0x3df738){_0x259922['push'](_0x259922['shift']());}};_0x5b52ed(++_0x56488b);}(a543_0x5648,0x19b));const a543_0x5b52=function(_0x259922,_0x56488b){_0x259922=_0x259922-0x0;let _0x5b52ed=a543_0x5648[_0x259922];return _0x5b52ed;};const _0x4b5940=a543_0x5b52;'use strict';const EventEmitter=require(_0x4b5940('0x2')),SmsAccount=require('../../mysqldb')['db'][_0x4b5940('0x6')],SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0x4b5940('0x1')](0x0);const events={'afterCreate':_0x4b5940('0x4'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x3df738){return function(_0x3ef5c7){const _0x4d3257=a543_0x5b52;SmsAccountEvents['emit'](_0x3df738+':'+_0x3ef5c7['id'],_0x3ef5c7),SmsAccountEvents[_0x4d3257('0x3')](_0x3df738,_0x3ef5c7);};}for(const e in events){if(typeof events[e]!==_0x4b5940('0x0')){const event=events[e];SmsAccount[_0x4b5940('0x7')](e,emitEvent(event));}}module[_0x4b5940('0x5')]=SmsAccountEvents; \ No newline at end of file +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 diff --git a/server/api/smsAccount/smsAccount.model.js b/server/api/smsAccount/smsAccount.model.js index ddc5dba..6bfce31 100644 --- a/server/api/smsAccount/smsAccount.model.js +++ b/server/api/smsAccount/smsAccount.model.js @@ -1 +1 @@ -const a544_0x5383=['./smsAccount.attributes','SmsAccount','exports','define','sms_accounts'];(function(_0x1049e8,_0x5383c0){const _0x383cc2=function(_0x59d2ac){while(--_0x59d2ac){_0x1049e8['push'](_0x1049e8['shift']());}};_0x383cc2(++_0x5383c0);}(a544_0x5383,0x11b));const a544_0x383c=function(_0x1049e8,_0x5383c0){_0x1049e8=_0x1049e8-0x0;let _0x383cc2=a544_0x5383[_0x1049e8];return _0x383cc2;};const _0x2ce45e=a544_0x383c;'use strict';const attributes=require(_0x2ce45e('0x2'));module[_0x2ce45e('0x4')]=function(_0x59d2ac){const _0x287d2e=_0x2ce45e,_0x4587c1=_0x59d2ac[_0x287d2e('0x0')](_0x287d2e('0x3'),attributes,{'tableName':_0x287d2e('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4587c1;}; \ No newline at end of file +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 diff --git a/server/api/smsAccount/smsAccount.rpc.js b/server/api/smsAccount/smsAccount.rpc.js index b80d15f..90b56f4 100644 --- a/server/api/smsAccount/smsAccount.rpc.js +++ b/server/api/smsAccount/smsAccount.rpc.js @@ -1 +1 @@ -const a545_0x42a0=['../../rediscache','attributes','../../mysqldb','SmsAccount','./smsAccount.socket','info','message','include','where','then','model','catch','stringify','rpc','debug','options','findOne','map','ShowSmsAccount','error'];(function(_0x4ae081,_0x42a084){const _0x18ad3c=function(_0x374ad9){while(--_0x374ad9){_0x4ae081['push'](_0x4ae081['shift']());}};_0x18ad3c(++_0x42a084);}(a545_0x42a0,0x99));const a545_0x18ad=function(_0x4ae081,_0x42a084){_0x4ae081=_0x4ae081-0x0;let _0x18ad3c=a545_0x42a0[_0x4ae081];return _0x18ad3c;};const _0x296407=a545_0x18ad;'use strict';const db=require(_0x296407('0x9'))['db'],logger=require('../../config/logger')(_0x296407('0x0')),_=require('lodash'),{getSocket}=require(_0x296407('0x7')),socket=getSocket();require(_0x296407('0xb'))['register'](socket),exports[_0x296407('0x5')]=function(_0x374ad9){const _0xf93951=this;return new Promise(function(_0x2342f4,_0x3237d8){const _0x1e57e5=a545_0x18ad;return db[_0x1e57e5('0xa')][_0x1e57e5('0x3')]({'raw':_0x374ad9[_0x1e57e5('0x2')]?_0x374ad9['options']['raw']===undefined?!![]:![]:!![],'where':_0x374ad9['options']?_0x374ad9[_0x1e57e5('0x2')][_0x1e57e5('0xf')]||null:null,'attributes':_0x374ad9[_0x1e57e5('0x2')]?_0x374ad9[_0x1e57e5('0x2')][_0x1e57e5('0x8')]||null:null,'include':_0x374ad9[_0x1e57e5('0x2')]?_0x374ad9[_0x1e57e5('0x2')][_0x1e57e5('0xe')]?_[_0x1e57e5('0x4')](_0x374ad9[_0x1e57e5('0x2')][_0x1e57e5('0xe')],function(_0x5e869d){const _0x3a591b=_0x1e57e5;return{'model':db[_0x5e869d[_0x3a591b('0x11')]],'as':_0x5e869d['as'],'attributes':_0x5e869d[_0x3a591b('0x8')],'include':_0x5e869d[_0x3a591b('0xe')]?_[_0x3a591b('0x4')](_0x5e869d[_0x3a591b('0xe')],function(_0x2c900f){const _0xffe7b=_0x3a591b;return{'model':db[_0x2c900f['model']],'as':_0x2c900f['as'],'attributes':_0x2c900f['attributes'],'include':_0x2c900f[_0xffe7b('0xe')]?_[_0xffe7b('0x4')](_0x2c900f[_0xffe7b('0xe')],function(_0x5ee996){const _0x18ca25=_0xffe7b;return{'model':db[_0x5ee996[_0x18ca25('0x11')]],'as':_0x5ee996['as'],'attributes':_0x5ee996[_0x18ca25('0x8')]};}):[]};}):[]};}):[]:[]})[_0x1e57e5('0x10')](function(_0x57c0f2){const _0x49af69=_0x1e57e5;logger[_0x49af69('0xc')]('ShowSmsAccount',_0x374ad9),logger[_0x49af69('0x1')](_0x49af69('0x5'),_0x374ad9,JSON[_0x49af69('0x13')](_0x57c0f2)),_0x2342f4(_0x57c0f2);})[_0x1e57e5('0x12')](function(_0x545710){const _0x2af14b=_0x1e57e5;logger[_0x2af14b('0x6')]('ShowSmsAccount',_0x545710[_0x2af14b('0xd')],_0x374ad9),_0x3237d8(_0xf93951[_0x2af14b('0x6')](0x1f4,_0x545710[_0x2af14b('0xd')]));});});}; \ No newline at end of file +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 diff --git a/server/api/smsAccount/smsAccount.socket.js b/server/api/smsAccount/smsAccount.socket.js index ba91275..d84f469 100644 --- a/server/api/smsAccount/smsAccount.socket.js +++ b/server/api/smsAccount/smsAccount.socket.js @@ -1 +1 @@ -const a546_0x53d2=['emit','save','length','update','./smsAccount.events','smsAccount:','register'];(function(_0x3ca80c,_0x53d297){const _0x36b2ca=function(_0x3b4cdf){while(--_0x3b4cdf){_0x3ca80c['push'](_0x3ca80c['shift']());}};_0x36b2ca(++_0x53d297);}(a546_0x53d2,0xb4));const a546_0x36b2=function(_0x3ca80c,_0x53d297){_0x3ca80c=_0x3ca80c-0x0;let _0x36b2ca=a546_0x53d2[_0x3ca80c];return _0x36b2ca;};const _0x162bce=a546_0x36b2;'use strict';const SmsAccountEvents=require(_0x162bce('0x6')),events=[_0x162bce('0x3'),'remove',_0x162bce('0x5')];function createListener(_0x3b4cdf,_0x4d56de){return function(_0x400df4){const _0x54782e=a546_0x36b2;_0x4d56de[_0x54782e('0x2')](_0x3b4cdf,_0x400df4);};}exports[_0x162bce('0x1')]=function(_0x449444){const _0x118386=_0x162bce;for(let _0x25a542=0x0,_0x1a11e4=events[_0x118386('0x4')];_0x25a542<_0x1a11e4;_0x25a542++){const _0x1da902=events[_0x25a542],_0x18e365=createListener(_0x118386('0x0')+_0x1da902,_0x449444);SmsAccountEvents['on'](_0x1da902,_0x18e365);}}; \ No newline at end of file +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 diff --git a/server/api/smsApplication/index.js b/server/api/smsApplication/index.js index 9fd1ca4..b4fe083 100644 --- a/server/api/smsApplication/index.js +++ b/server/api/smsApplication/index.js @@ -1 +1 @@ -const a547_0x3b99=['create','delete','get','destroy','show','/:id','Router','exports','update','express','isAuthenticated'];(function(_0x6b7ad0,_0x3b99b0){const _0x3bfd03=function(_0x3fe532){while(--_0x3fe532){_0x6b7ad0['push'](_0x6b7ad0['shift']());}};_0x3bfd03(++_0x3b99b0);}(a547_0x3b99,0xce));const a547_0x3bfd=function(_0x6b7ad0,_0x3b99b0){_0x6b7ad0=_0x6b7ad0-0x0;let _0x3bfd03=a547_0x3b99[_0x6b7ad0];return _0x3bfd03;};const _0x16761c=a547_0x3bfd;'use strict';const express=require(_0x16761c('0x1')),router=express[_0x16761c('0x9')](),auth=require('../../components/auth/service'),controller=require('./smsApplication.controller');router[_0x16761c('0x5')]('/',auth['isAuthenticated'](),controller['index']),router[_0x16761c('0x5')](_0x16761c('0x8'),auth['isAuthenticated'](),controller[_0x16761c('0x7')]),router['post']('/',auth[_0x16761c('0x2')](),controller[_0x16761c('0x3')]),router['put']('/:id',auth['isAuthenticated'](),controller[_0x16761c('0x0')]),router[_0x16761c('0x4')](_0x16761c('0x8'),auth[_0x16761c('0x2')](),controller[_0x16761c('0x6')]),module[_0x16761c('0xa')]=router; \ No newline at end of file +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 diff --git a/server/api/smsApplication/smsApplication.attributes.js b/server/api/smsApplication/smsApplication.attributes.js index 0a7821a..52190a8 100644 --- a/server/api/smsApplication/smsApplication.attributes.js +++ b/server/api/smsApplication/smsApplication.attributes.js @@ -1 +1 @@ -const a548_0x1c27=['exports','STRING','*,*,*,*','INTEGER'];(function(_0x245153,_0x1c2716){const _0x4075fe=function(_0x5e69c9){while(--_0x5e69c9){_0x245153['push'](_0x245153['shift']());}};_0x4075fe(++_0x1c2716);}(a548_0x1c27,0x1c6));const a548_0x4075=function(_0x245153,_0x1c2716){_0x245153=_0x245153-0x0;let _0x4075fe=a548_0x1c27[_0x245153];return _0x4075fe;};const _0x19d765=a548_0x4075;'use strict';const Sequelize=require('sequelize');module[_0x19d765('0x2')]={'priority':{'type':Sequelize[_0x19d765('0x1')],'allowNull':![]},'app':{'type':Sequelize[_0x19d765('0x3')],'allowNull':![],'defaultValue':'noop'},'appdata':{'type':Sequelize['TEXT']()},'description':{'type':Sequelize[_0x19d765('0x3')]},'interval':{'type':Sequelize[_0x19d765('0x3')],'defaultValue':_0x19d765('0x0')}}; \ No newline at end of file +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 diff --git a/server/api/smsApplication/smsApplication.controller.js b/server/api/smsApplication/smsApplication.controller.js index 7d2e8fb..87dd91a 100644 --- a/server/api/smsApplication/smsApplication.controller.js +++ b/server/api/smsApplication/smsApplication.controller.js @@ -1 +1 @@ -const a549_0x3bed=['VIRTUAL','attributes','json','where','intersection','end','findAll','error','undefined','SmsApplication','key','offset','filters','limit','then','fieldName','findOne','like','model','body','nolimit','length','query','merge','rawAttributes','sendStatus','name','destroy','create','show','api','include','../../mysqldb','sequelize','order','send','pick','map','options','type','catch','lodash','sort','status','keys','count','index','fields','rows','includeAll','filter'];(function(_0x341bca,_0x3bed35){const _0x2c0bc7=function(_0x34f4a6){while(--_0x34f4a6){_0x341bca['push'](_0x341bca['shift']());}};_0x2c0bc7(++_0x3bed35);}(a549_0x3bed,0x104));const a549_0x2c0b=function(_0x341bca,_0x3bed35){_0x341bca=_0x341bca-0x0;let _0x2c0bc7=a549_0x3bed[_0x341bca];return _0x2c0bc7;};const _0x43adcd=a549_0x2c0b;'use strict';const _=require(_0x43adcd('0x24')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x43adcd('0x19')),db=require(_0x43adcd('0x1b'))['db'],{Op}=require(_0x43adcd('0x1c'));function respondWithResult(_0x34f4a6,_0x2c7646){return _0x2c7646=_0x2c7646||0xc8,function(_0x231121){const _0x1ce2d0=a549_0x2c0b;if(_0x231121)return _0x34f4a6[_0x1ce2d0('0x26')](_0x2c7646)[_0x1ce2d0('0x30')](_0x231121);};}function respondWithFilteredResult(_0x2e5077,_0x19ccb8){return function(_0x3c2804){const _0x3b4675=a549_0x2c0b;if(_0x3c2804){const _0xb1f181=_0x3c2804[_0x3b4675('0x28')],_0x2defcf=_0x19ccb8[_0x3b4675('0x6')];let _0x38fdde=_0x19ccb8[_0x3b4675('0x6')]+_0x19ccb8[_0x3b4675('0x8')],_0x376c54;return _0x38fdde>=_0xb1f181?(_0x38fdde=_0xb1f181,_0x376c54=0xc8):_0x376c54=0xce,_0x2e5077[_0x3b4675('0x26')](_0x376c54),_0x2e5077['set']('Content-Range',_0x2defcf+'-'+_0x38fdde+'/'+_0xb1f181)['json'](_0x3c2804);}return null;};}function saveUpdates(_0x336cd2){return function(_0x1c9601){const _0x5958b3=a549_0x2c0b;if(_0x1c9601)return _0x1c9601['update'](_0x336cd2)[_0x5958b3('0x9')](function(_0x498bfb){return _0x498bfb;});return null;};}function removeEntity(_0x30989f){return function(_0x3c78be){const _0x2799d5=a549_0x2c0b;if(_0x3c78be)return _0x3c78be[_0x2799d5('0x16')]()['then'](function(){const _0x495b13=_0x2799d5;_0x30989f['status'](0xcc)[_0x495b13('0x0')]();});};}function handleEntityNotFound(_0x3ecf45){return function(_0x4a69e9){const _0x2cb3a7=a549_0x2c0b;return!_0x4a69e9&&_0x3ecf45[_0x2cb3a7('0x14')](0x194),_0x4a69e9;};}function handleError(_0x49d18d,_0x3121db){return _0x3121db=_0x3121db||0x1f4,function(_0x4a6793){const _0x48a1c6=a549_0x2c0b;logger[_0x48a1c6('0x2')](_0x4a6793['stack']),_0x4a6793[_0x48a1c6('0x15')]&&delete _0x4a6793[_0x48a1c6('0x15')],_0x49d18d['status'](_0x3121db)[_0x48a1c6('0x1e')](_0x4a6793);};}exports[_0x43adcd('0x29')]=function(_0x68a52b,_0x148f59){const _0xdbe32=_0x43adcd;let _0x4be4f6={};const _0x4ccf5b={},_0x269a42={'count':0x0,'rows':[]},_0x283f83=_[_0xdbe32('0x20')](db[_0xdbe32('0x4')][_0xdbe32('0x13')],function(_0x36075e){const _0x1061c4=_0xdbe32;return{'name':_0x36075e[_0x1061c4('0xa')],'type':_0x36075e[_0x1061c4('0x22')][_0x1061c4('0x5')]};});_0x4ccf5b['model']=_[_0xdbe32('0x20')](_0x283f83,_0xdbe32('0x15')),_0x4ccf5b[_0xdbe32('0x11')]=_[_0xdbe32('0x27')](_0x68a52b[_0xdbe32('0x11')]),_0x4ccf5b['filters']=_['intersection'](_0x4ccf5b[_0xdbe32('0xd')],_0x4ccf5b['query']),_0x4be4f6[_0xdbe32('0x2f')]=_[_0xdbe32('0x32')](_0x4ccf5b['model'],qs[_0xdbe32('0x2a')](_0x68a52b[_0xdbe32('0x11')][_0xdbe32('0x2a')])),_0x4be4f6[_0xdbe32('0x2f')]=_0x4be4f6[_0xdbe32('0x2f')][_0xdbe32('0x10')]?_0x4be4f6['attributes']:_0x4ccf5b[_0xdbe32('0xd')];typeof _0x68a52b[_0xdbe32('0x11')][_0xdbe32('0xf')]===_0xdbe32('0x3')&&(_0x4be4f6[_0xdbe32('0x8')]=qs[_0xdbe32('0x8')](_0x68a52b[_0xdbe32('0x11')][_0xdbe32('0x8')]),_0x4be4f6['offset']=qs[_0xdbe32('0x6')](_0x68a52b[_0xdbe32('0x11')][_0xdbe32('0x6')]));_0x4be4f6[_0xdbe32('0x1d')]=qs[_0xdbe32('0x25')](_0x68a52b[_0xdbe32('0x11')]['sort']),_0x4be4f6['where']=qs[_0xdbe32('0x7')](_[_0xdbe32('0x1f')](_0x68a52b[_0xdbe32('0x11')],_0x4ccf5b['filters']),_0x283f83);_0x68a52b['query'][_0xdbe32('0x2d')]&&(_0x4be4f6[_0xdbe32('0x31')]=_['merge'](_0x4be4f6[_0xdbe32('0x31')],{[Op['or']]:_['map'](_0x283f83,function(_0x21160c){const _0x4f5ccb=_0xdbe32;if(_0x21160c[_0x4f5ccb('0x22')]!==_0x4f5ccb('0x2e')){const _0x3988ff={};return _0x3988ff[_0x21160c[_0x4f5ccb('0x15')]]={[Op[_0x4f5ccb('0xc')]]:'%'+_0x68a52b[_0x4f5ccb('0x11')][_0x4f5ccb('0x2d')]+'%'},_0x3988ff;}})}));_0x4be4f6=_['merge']({},_0x4be4f6,_0x68a52b[_0xdbe32('0x21')]);const _0x5044a3={'where':_0x4be4f6[_0xdbe32('0x31')]};return db[_0xdbe32('0x4')][_0xdbe32('0x28')](_0x5044a3)[_0xdbe32('0x9')](function(_0x3cae72){const _0x1dfc09=_0xdbe32;return _0x269a42[_0x1dfc09('0x28')]=_0x3cae72,_0x68a52b[_0x1dfc09('0x11')]['includeAll']&&(_0x4be4f6[_0x1dfc09('0x1a')]=[{'all':!![]}]),db[_0x1dfc09('0x4')][_0x1dfc09('0x1')](_0x4be4f6);})[_0xdbe32('0x9')](function(_0x4c5db4){const _0x1c10b3=_0xdbe32;return _0x269a42[_0x1c10b3('0x2b')]=_0x4c5db4,_0x269a42;})[_0xdbe32('0x9')](respondWithFilteredResult(_0x148f59,_0x4be4f6))[_0xdbe32('0x23')](handleError(_0x148f59,null));},exports[_0x43adcd('0x18')]=function(_0x56db34,_0x3f78a1){const _0x54b789=_0x43adcd;let _0x4c9371={'raw':!![],'where':{'id':_0x56db34['params']['id']}};const _0x4c1482={};return _0x4c1482[_0x54b789('0xd')]=_[_0x54b789('0x27')](db['SmsApplication'][_0x54b789('0x13')]),_0x4c1482[_0x54b789('0x11')]=_[_0x54b789('0x27')](_0x56db34['query']),_0x4c1482['filters']=_['intersection'](_0x4c1482[_0x54b789('0xd')],_0x4c1482[_0x54b789('0x11')]),_0x4c9371['attributes']=_[_0x54b789('0x32')](_0x4c1482['model'],qs[_0x54b789('0x2a')](_0x56db34[_0x54b789('0x11')][_0x54b789('0x2a')])),_0x4c9371[_0x54b789('0x2f')]=_0x4c9371[_0x54b789('0x2f')]['length']?_0x4c9371['attributes']:_0x4c1482[_0x54b789('0xd')],_0x56db34['query'][_0x54b789('0x2c')]&&(_0x4c9371['include']=[{'all':!![]}]),_0x4c9371=_[_0x54b789('0x12')]({},_0x4c9371,_0x56db34[_0x54b789('0x21')]),db['SmsApplication'][_0x54b789('0xb')](_0x4c9371)[_0x54b789('0x9')](handleEntityNotFound(_0x3f78a1,null))[_0x54b789('0x9')](respondWithResult(_0x3f78a1,null))[_0x54b789('0x23')](handleError(_0x3f78a1,null));},exports[_0x43adcd('0x17')]=function(_0xd8457c,_0x3512b4){const _0x2e0b70=_0x43adcd;return db[_0x2e0b70('0x4')][_0x2e0b70('0x17')](_0xd8457c[_0x2e0b70('0xe')],{})['then'](respondWithResult(_0x3512b4,0xc9))[_0x2e0b70('0x23')](handleError(_0x3512b4,null));},exports['update']=function(_0x12589a,_0x30bcf3){const _0x4e4c83=_0x43adcd;return _0x12589a[_0x4e4c83('0xe')]['id']&&delete _0x12589a['body']['id'],db['SmsApplication']['findOne']({'where':{'id':_0x12589a['params']['id']}})[_0x4e4c83('0x9')](handleEntityNotFound(_0x30bcf3,null))['then'](saveUpdates(_0x12589a[_0x4e4c83('0xe')],null))[_0x4e4c83('0x9')](respondWithResult(_0x30bcf3,null))[_0x4e4c83('0x23')](handleError(_0x30bcf3,null));},exports[_0x43adcd('0x16')]=function(_0x359000,_0x5e7714){const _0x4f4781=_0x43adcd;return db[_0x4f4781('0x4')]['findOne']({'where':{'id':_0x359000['params']['id']}})[_0x4f4781('0x9')](handleEntityNotFound(_0x5e7714,null))['then'](removeEntity(_0x5e7714,null))[_0x4f4781('0x23')](handleError(_0x5e7714,null));}; \ No newline at end of file +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 diff --git a/server/api/smsApplication/smsApplication.model.js b/server/api/smsApplication/smsApplication.model.js index 1da5d40..ececf5b 100644 --- a/server/api/smsApplication/smsApplication.model.js +++ b/server/api/smsApplication/smsApplication.model.js @@ -1 +1 @@ -const a550_0x312a=['./smsApplication.attributes','utf8mb4_unicode_ci','SmsApplication','utf8mb4','exports','define'];(function(_0x378716,_0x312adf){const _0x74b3c4=function(_0xc81fb5){while(--_0xc81fb5){_0x378716['push'](_0x378716['shift']());}};_0x74b3c4(++_0x312adf);}(a550_0x312a,0x92));const a550_0x74b3=function(_0x378716,_0x312adf){_0x378716=_0x378716-0x0;let _0x74b3c4=a550_0x312a[_0x378716];return _0x74b3c4;};const _0x327023=a550_0x74b3;'use strict';const attributes=require(_0x327023('0x4'));module[_0x327023('0x2')]=function(_0xc81fb5){const _0x3ebd95=_0x327023,_0x36a916=_0xc81fb5[_0x3ebd95('0x3')](_0x3ebd95('0x0'),attributes,{'tableName':'sms_applications','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x3ebd95('0x1'),'collate':_0x3ebd95('0x5')});return _0x36a916;}; \ No newline at end of file +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 diff --git a/server/api/smsInteraction/index.js b/server/api/smsInteraction/index.js index 8456d3f..7d60546 100644 --- a/server/api/smsInteraction/index.js +++ b/server/api/smsInteraction/index.js @@ -1 +1 @@ -const a551_0x5b37=['addTags','get','exports','express','index','update','smsinteraction:addtags','/:id','put','destroy','create','tracked','/:id/messages','delete','isAuthenticated','removeTags','smsinteraction:update','./smsInteraction.controller','getMessages','/:id/tags','../../components/interaction/service','post','../../components/auth/service'];(function(_0x226d3f,_0x5b3749){const _0x50cea3=function(_0x564aeb){while(--_0x564aeb){_0x226d3f['push'](_0x226d3f['shift']());}};_0x50cea3(++_0x5b3749);}(a551_0x5b37,0x17a));const a551_0x50ce=function(_0x226d3f,_0x5b3749){_0x226d3f=_0x226d3f-0x0;let _0x50cea3=a551_0x5b37[_0x226d3f];return _0x50cea3;};const _0xd72695=a551_0x50ce;'use strict';const express=require(_0xd72695('0x10')),router=express['Router'](),auth=require(_0xd72695('0xc')),interaction=require(_0xd72695('0xa')),controller=require(_0xd72695('0x7'));router[_0xd72695('0xe')]('/',auth[_0xd72695('0x4')](),controller[_0xd72695('0x11')]),router[_0xd72695('0xe')]('/describe',auth['isAuthenticated'](),controller['describe']),router[_0xd72695('0xe')](_0xd72695('0x14'),auth[_0xd72695('0x4')](),controller['show']),router['get']('/:id/messages',auth['isAuthenticated'](),controller[_0xd72695('0x8')]),router[_0xd72695('0xe')]('/:id/download',auth[_0xd72695('0x4')](),controller['download']),router[_0xd72695('0xb')]('/',auth[_0xd72695('0x4')](),controller[_0xd72695('0x0')]),router['post'](_0xd72695('0x2'),auth[_0xd72695('0x4')](),controller['addMessage']),router[_0xd72695('0xb')]('/:id/tags',auth[_0xd72695('0x4')](),interaction[_0xd72695('0x1')]('sms',_0xd72695('0x13')),controller[_0xd72695('0xd')]),router[_0xd72695('0x15')](_0xd72695('0x14'),auth[_0xd72695('0x4')](),interaction[_0xd72695('0x1')]('sms',_0xd72695('0x6')),controller[_0xd72695('0x12')]),router[_0xd72695('0x3')](_0xd72695('0x14'),auth[_0xd72695('0x4')](),interaction[_0xd72695('0x1')]('sms','smsinteraction:destroy'),controller[_0xd72695('0x16')]),router['delete'](_0xd72695('0x9'),auth[_0xd72695('0x4')](),controller[_0xd72695('0x5')]),module[_0xd72695('0xf')]=router; \ No newline at end of file +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 diff --git a/server/api/smsInteraction/smsInteraction.attributes.js b/server/api/smsInteraction/smsInteraction.attributes.js index 077a54e..9b80c45 100644 --- a/server/api/smsInteraction/smsInteraction.attributes.js +++ b/server/api/smsInteraction/smsInteraction.attributes.js @@ -1 +1 @@ -const a552_0x4a41=['ENUM','STRING','out','exports','sequelize','DATE','BOOLEAN'];(function(_0x262812,_0x4a417e){const _0x3b717a=function(_0xa3ec15){while(--_0xa3ec15){_0x262812['push'](_0x262812['shift']());}};_0x3b717a(++_0x4a417e);}(a552_0x4a41,0x1b8));const a552_0x3b71=function(_0x262812,_0x4a417e){_0x262812=_0x262812-0x0;let _0x3b717a=a552_0x4a41[_0x262812];return _0x3b717a;};const _0x2d0431=a552_0x3b71;'use strict';const Sequelize=require(_0x2d0431('0x5'));module[_0x2d0431('0x4')]={'closed':{'type':Sequelize[_0x2d0431('0x0')],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x2d0431('0x6')]},'disposition':{'type':Sequelize['STRING']},'secondDisposition':{'type':Sequelize['STRING']},'thirdDisposition':{'type':Sequelize[_0x2d0431('0x2')]},'note':{'type':Sequelize[_0x2d0431('0x2')]},'phone':{'type':Sequelize[_0x2d0431('0x2')]},'read1stAt':{'type':Sequelize[_0x2d0431('0x6')]},'firstMsgDirection':{'type':Sequelize['ENUM']('in',_0x2d0431('0x3')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x2d0431('0x6')]},'lastMsgDirection':{'type':Sequelize[_0x2d0431('0x1')]('in','out'),'defaultValue':'in','allowNull':![]}}; \ No newline at end of file +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 diff --git a/server/api/smsInteraction/smsInteraction.controller.js b/server/api/smsInteraction/smsInteraction.controller.js index b7cba73..61fa14b 100644 --- a/server/api/smsInteraction/smsInteraction.controller.js +++ b/server/api/smsInteraction/smsInteraction.controller.js @@ -1 +1 @@ -const a553_0x218f=['Tags','getFullTextValue','stack','offset','having','unreadMessages','Contact','SmsMessage','closedAt','u.id','\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','limit','t.id\x20=\x20it.TagId','SmsAccount','html-pdf','SmsAccountId','describe','smsInteractionTags:save','Content-Range','unlinkSync','parse','user_has_sms_interactions','out','filters','split','query','closed','Sequelize','sendStatus','ids','t.id\x20IN\x20?','forEach','SmsInteraction','intersection','root','../../rediscache','expr','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','sequelize','Owner','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','40px','zip-dir','lastName','Sms','from','register','YYYY-MM-DD\x20HH:mm:ss','removeTags','findAll','transcript-%d-%s.zip','i.id','includeAll','emit','../../config/environment','model','sms_accounts','transcript-','where','undefined','error','i.id\x20LIKE\x20?','10px','union','i.SmsAccountId\x20IS\x20NULL','attributes','DESC','fullname','CmContact','push','isNumeric','fieldName','map','get','%s\x20#%d','rows','getSmsAccounts','index','TagIds','ContactId','tools_tags','then','keyBy','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','key','getMessages','ui.SmsInteractionId','i.phone\x20LIKE\x20?','left_join','keys','find','params','read','nolimit','../../components/parsers/qs','Owner.fullname','toString','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','update','secret','isEmpty','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','select','status','../../components/parsers/advancedSearch','\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','a.id\x20=\x20i.SmsAccountId','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','findOne','ejs','value','name','sort','direction','replace','o.fullname','server','body','SmsInteractionId','start','setTags','parseSearch','user','operator','download','sms_interactions','Messages','Contact.mobile','moment','files','QueryTypes','../../mysqldb','destroy','\x27\x27\x27\x27','squel','format','field','firstName','.pdf','Account.key','c.fax','$substring','toFile','mkdirSync','type','UserId','options','gte','err','rimraf','Account','Users','end','api','c.mobile','count','like','group','groupBy','it.SmsInteractionId\x20=\x20i.id','SELECT','merge','lodash','GROUP_CONCAT(DISTINCT\x20t.id)','$gte','users','a.mandatoryDisposition','create','a.key','Owner.internal','i.*','N.A.','search','text','some','./smsInteraction.socket','Contact.firstName','Contact.fax','`\x20=\x200','tmp','c.phone','json','conditions','30px','clone','color','compact','i.SmsAccountId\x20IS\x20NOT\x20NULL','Contact.phone','fields','renderFile','join','length','addTags','i.SmsAccountId\x20IN\x20?','filter','views','order','\x20IS\x20NULL','rawAttributes','resolve','User','createdAt','all','include','util','tag','pick','buildExpression','Tag','Account.mandatoryDisposition','isArray','addMessage','c.firstName','omit','catch','`unreadMessages`\x20=\x200'];(function(_0x401b7b,_0x218fb6){const _0x30b016=function(_0xd75777){while(--_0xd75777){_0x401b7b['push'](_0x401b7b['shift']());}};_0x30b016(++_0x218fb6);}(a553_0x218f,0x75));const a553_0x30b0=function(_0x401b7b,_0x218fb6){_0x401b7b=_0x401b7b-0x0;let _0x30b016=a553_0x218f[_0x401b7b];return _0x30b016;};const _0x33c08f=a553_0x30b0;'use strict';const pdf=require(_0x33c08f('0x72')),rimraf=require(_0x33c08f('0x20')),zipdir=require(_0x33c08f('0x8e')),moment=require(_0x33c08f('0xb')),util=require(_0x33c08f('0x58')),path=require('path'),ejs=require(_0x33c08f('0xd1')),fs=require('fs'),_=require(_0x33c08f('0x2d')),squel=require(_0x33c08f('0x11')),{getSocket}=require(_0x33c08f('0x87')),socket=getSocket(),qs=require(_0x33c08f('0xc2')),as=require(_0x33c08f('0xcc')),logger=require('../../config/logger')(_0x33c08f('0x24')),config=require(_0x33c08f('0x9a')),db=require(_0x33c08f('0xe'))['db'],{Op}=require('sequelize');require(_0x33c08f('0x3a'))[_0x33c08f('0x92')](socket);function respondWithStatusCode(_0xd75777,_0x467b24){return _0x467b24=_0x467b24||0xcc,function(_0x5d48e8){const _0x493cc7=a553_0x30b0;if(_0x5d48e8)return _0xd75777[_0x493cc7('0x80')](_0x467b24);return _0xd75777['status'](_0x467b24)[_0x493cc7('0x23')]();};}function respondWithResult(_0x4afe93,_0xbdeddb){return _0xbdeddb=_0xbdeddb||0xc8,function(_0x3a6810){const _0x2e008d=a553_0x30b0;if(_0x3a6810)return _0x4afe93['status'](_0xbdeddb)[_0x2e008d('0x40')](_0x3a6810);};}function respondWithFilteredResult(_0x60dc54,_0x368a82){return function(_0x34c78c){const _0xc24942=a553_0x30b0;if(_0x34c78c){const _0x107e52=_0x34c78c['count'],_0x55a0e8=_0x368a82[_0xc24942('0x67')];let _0x180d7c=_0x368a82[_0xc24942('0x67')]+_0x368a82[_0xc24942('0x6f')],_0x1bb6ad;return _0x180d7c>=_0x107e52?(_0x180d7c=_0x107e52,_0x1bb6ad=0xc8):_0x1bb6ad=0xce,_0x60dc54[_0xc24942('0xcb')](_0x1bb6ad),_0x60dc54['set'](_0xc24942('0x76'),_0x55a0e8+'-'+_0x180d7c+'/'+_0x107e52)['json'](_0x34c78c);}return null;};}function saveUpdates(_0x4a2076){return function(_0x2dda70){const _0x44e231=a553_0x30b0;if(_0x2dda70)return _0x2dda70['update'](_0x4a2076)[_0x44e231('0xb5')](function(_0x524528){return _0x524528;});return null;};}function removeEntity(_0x357379){return function(_0x18aa80){const _0x3b2b39=a553_0x30b0;if(_0x18aa80)return _0x18aa80['destroy']()[_0x3b2b39('0xb5')](function(){const _0x47e975=_0x3b2b39;_0x357379[_0x47e975('0xcb')](0xcc)['end']();});};}function handleEntityNotFound(_0x217b7b){return function(_0x39e62c){return!_0x39e62c&&_0x217b7b['sendStatus'](0x194),_0x39e62c;};}function handleError(_0xa39d6a,_0x49b7fe){return _0x49b7fe=_0x49b7fe||0x1f4,function(_0x167a12){const _0x40ddf9=a553_0x30b0;logger[_0x40ddf9('0xa0')](_0x167a12[_0x40ddf9('0x66')]),_0x167a12[_0x40ddf9('0xd3')]&&delete _0x167a12[_0x40ddf9('0xd3')],_0xa39d6a[_0x40ddf9('0xcb')](_0x49b7fe)['send'](_0x167a12);};}function getInteractionUsers(_0x12f564,_0x4b4bdb){return new Promise(function(_0x3f3444,_0x3cbe26){const _0x3dce24=a553_0x30b0;try{_0x4b4bdb[_0x12f564['id']]&&(_0x12f564[_0x3dce24('0x22')]=_[_0x3dce24('0xac')](_0x4b4bdb[_0x12f564['id']],function(_0x2d6aa4){const _0x5206a7=_0x3dce24;return{'id':_0x2d6aa4['id'],'fullname':_0x2d6aa4[_0x5206a7('0xa7')]};}));}catch(_0x5ab5cf){_0x3cbe26(_0x5ab5cf);}_0x3f3444(_0x12f564);});}function getInteractionTags(_0x847f61,_0x421228){return new Promise(function(_0x4dda46,_0x5bcb9a){const _0x4d0cb5=a553_0x30b0;try{_0x847f61[_0x4d0cb5('0xb2')]&&(_0x847f61[_0x4d0cb5('0x64')]=[],_0x847f61[_0x4d0cb5('0xb2')]['split'](',')[_0x4d0cb5('0x83')](function(_0x20186d){const _0x2a9e1f=_0x4d0cb5;_0x847f61[_0x2a9e1f('0x64')][_0x2a9e1f('0xa9')](_0x421228[_0x20186d]);})),delete _0x847f61[_0x4d0cb5('0xb2')];}catch(_0x430ba1){_0x5bcb9a(_0x430ba1);}_0x4dda46(_0x847f61);});}function updateSmsInteraction(_0x1b9df1,_0x5ad21f,_0x15600f){return new Promise(function(_0x62dfd9,_0x316d82){const _0xb30f4a=a553_0x30b0;return getInteractionUsers(_0x1b9df1,_0x15600f)[_0xb30f4a('0xb5')](function(_0xd228f3){return getInteractionTags(_0xd228f3,_0x5ad21f);})[_0xb30f4a('0xb5')](function(_0x21e08f){_0x62dfd9(_0x21e08f);})[_0xb30f4a('0x62')](function(_0x34a014){_0x316d82(_0x34a014);});});}exports[_0x33c08f('0xb1')]=function(_0x198beb,_0x33716c){const _0x1a75e5=_0x33c08f,_0x22b333={},_0x10cd0a={},_0x50d790={'count':0x0,'rows':[]},_0x4fdcdb=_[_0x1a75e5('0xac')](db[_0x1a75e5('0x84')][_0x1a75e5('0x52')],function(_0x3bcac4){const _0x4348cd=_0x1a75e5;return{'name':_0x3bcac4[_0x4348cd('0xab')],'type':_0x3bcac4['type'][_0x4348cd('0xb8')]};});_0x10cd0a[_0x1a75e5('0x9b')]=_[_0x1a75e5('0xac')](_0x4fdcdb,_0x1a75e5('0xd3')),_0x10cd0a[_0x1a75e5('0x7d')]=_[_0x1a75e5('0xbd')](_0x198beb[_0x1a75e5('0x7d')]),_0x10cd0a[_0x1a75e5('0x7b')]=_[_0x1a75e5('0x85')](_0x10cd0a[_0x1a75e5('0x9b')],_0x10cd0a[_0x1a75e5('0x7d')]),_0x22b333[_0x1a75e5('0xa5')]=_[_0x1a75e5('0x85')](_0x10cd0a['model'],qs[_0x1a75e5('0x48')](_0x198beb[_0x1a75e5('0x7d')][_0x1a75e5('0x48')])),_0x22b333[_0x1a75e5('0xa5')]=_0x22b333[_0x1a75e5('0xa5')][_0x1a75e5('0x4b')]?_0x22b333[_0x1a75e5('0xa5')]:_0x10cd0a[_0x1a75e5('0x9b')];typeof _0x198beb['query'][_0x1a75e5('0xc1')]===_0x1a75e5('0x9f')&&(_0x22b333[_0x1a75e5('0x6f')]=qs['limit'](_0x198beb[_0x1a75e5('0x7d')][_0x1a75e5('0x6f')]),_0x22b333['offset']=qs[_0x1a75e5('0x67')](_0x198beb[_0x1a75e5('0x7d')][_0x1a75e5('0x67')]));_0x22b333[_0x1a75e5('0x50')]=qs[_0x1a75e5('0xd4')](_0x198beb[_0x1a75e5('0x7d')][_0x1a75e5('0xd4')]),_0x22b333[_0x1a75e5('0x9e')]=qs[_0x1a75e5('0x7b')](_['pick'](_0x198beb[_0x1a75e5('0x7d')],_0x10cd0a[_0x1a75e5('0x7b')]),_0x4fdcdb);let _0xd2598f=[];const _0x24822c=squel[_0x1a75e5('0xca')]()[_0x1a75e5('0x13')]('id')[_0x1a75e5('0x13')](_0x1a75e5('0xd3'))[_0x1a75e5('0x13')](_0x1a75e5('0x44'))['from'](_0x1a75e5('0xb4')),_0x41a07c=squel[_0x1a75e5('0xca')]()[_0x1a75e5('0x13')](_0x1a75e5('0x6d'))[_0x1a75e5('0x13')]('u.fullname')[_0x1a75e5('0x13')](_0x1a75e5('0xba'))[_0x1a75e5('0x91')](_0x1a75e5('0x79'),'ui')[_0x1a75e5('0xbc')](_0x1a75e5('0x30'),'u','u.id\x20=\x20ui.UserId'),_0x52a169=squel['select']()[_0x1a75e5('0x91')](_0x1a75e5('0x8'),'i')['left_join']('cm_contacts','c','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL')['left_join'](_0x1a75e5('0x30'),'o','o.id\x20=\x20i.UserId')[_0x1a75e5('0xbc')](_0x1a75e5('0x9c'),'a',_0x1a75e5('0xce'))[_0x1a75e5('0xbc')]('sms_messages','me','me.SmsInteractionId\x20=\x20i.id')[_0x1a75e5('0xbc')]('sms_interaction_has_tags','it',_0x1a75e5('0x2a'))[_0x1a75e5('0xbc')](_0x1a75e5('0xb4'),'t',_0x1a75e5('0x70')),_0x6b3ddb=squel[_0x1a75e5('0x88')]();let _0x3bbf72=[];const _0x35aafe=squel[_0x1a75e5('0x88')]();let _0x49b2ff;if(_0x198beb[_0x1a75e5('0x7d')]['search']){_0x49b2ff=as[_0x1a75e5('0x4')](_0x198beb['query'][_0x1a75e5('0x37')]);const _0x44d1a4=_0x49b2ff['sqlOperator'];for(let _0xae2da8=0x0;_0xae2da8<_0x49b2ff[_0x1a75e5('0x41')][_0x1a75e5('0x4b')];_0xae2da8++){const _0x414b34=_0x49b2ff['conditions'][_0xae2da8],_0x49d089='i';let _0x325b84,_0x29370f=_[_0x1a75e5('0xbe')](_0x4fdcdb,[_0x1a75e5('0xd3'),_0x414b34['field']]);if(!_0x29370f)switch(_0x414b34[_0x1a75e5('0x13')]){case _0x1a75e5('0x69'):_0x414b34[_0x1a75e5('0xd2')]==0x1?_0x52a169[_0x1a75e5('0x68')]('`'+_0x414b34[_0x1a75e5('0x13')]+_0x1a75e5('0x3d')):_0x52a169[_0x1a75e5('0x68')]('`'+_0x414b34[_0x1a75e5('0x13')]+'`\x20>\x200');break;case _0x1a75e5('0x6a'):if(_0x414b34[_0x1a75e5('0x6')]==='$substring'){if(_0x414b34[_0x1a75e5('0xd2')]['split']('\x20')[_0x1a75e5('0x4b')]>0x1)_0x6b3ddb[_0x44d1a4](_0x1a75e5('0xc9'),qs[_0x1a75e5('0x65')](_0x414b34[_0x1a75e5('0xd2')]),null);else{const _0xe67063='%'+_0x414b34[_0x1a75e5('0xd2')]+'%';_0x6b3ddb[_0x44d1a4]('c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?',_0xe67063,_0xe67063,_0xe67063);}}else _0x29370f=_[_0x1a75e5('0xbe')](_0x4fdcdb,[_0x1a75e5('0xd3'),'ContactId']),_0x414b34[_0x1a75e5('0x13')]=_0x1a75e5('0xb3'),_0x325b84=as[_0x1a75e5('0x5b')](_0x49d089,_0x29370f[_0x1a75e5('0x1b')],_0x414b34),_0x6b3ddb[_0x44d1a4](_0x325b84[_0x1a75e5('0x38')],_0x325b84[_0x1a75e5('0xd2')][_0x1a75e5('0x2')],_0x325b84['value'][_0x1a75e5('0x23')]);break;case _0x1a75e5('0x5c'):{const _0x4d193f=_0x414b34['value'][_0x1a75e5('0x7c')](',')[_0x1a75e5('0xac')](function(_0x1e3f0d){return Number(_0x1e3f0d);});_0x4d193f[_0x1a75e5('0x83')](function(_0x26d738){const _0xb6ccb5=_0x1a75e5;_0x35aafe['or'](_0xb6ccb5('0x89'),'%,'+_0x26d738+',%');}),_0x3bbf72=_[_0x1a75e5('0xa3')](_0x3bbf72,_0x4d193f);}break;case _0x1a75e5('0x54'):_0x414b34[_0x1a75e5('0x6')]===_0x1a75e5('0x18')?_0x6b3ddb[_0x44d1a4](_0x1a75e5('0x8c'),'%'+_0x414b34['value']+'%',null):(_0x29370f=_['find'](_0x4fdcdb,[_0x1a75e5('0xd3'),_0x1a75e5('0x1c')]),_0x414b34[_0x1a75e5('0x13')]=_0x1a75e5('0x1c'),_0x325b84=as[_0x1a75e5('0x5b')](_0x49d089,_0x29370f[_0x1a75e5('0x1b')],_0x414b34),_0x6b3ddb[_0x44d1a4](_0x325b84['text'],_0x325b84[_0x1a75e5('0xd2')]['start'],_0x325b84[_0x1a75e5('0xd2')]['end']));break;case _0x1a75e5('0x0'):_0x325b84=as[_0x1a75e5('0x5b')]('me',null,_0x414b34),_0x6b3ddb[_0x44d1a4](_0x325b84[_0x1a75e5('0x38')],_0x325b84[_0x1a75e5('0xd2')][_0x1a75e5('0x2')],_0x325b84[_0x1a75e5('0xd2')]['end']);break;}else _0x325b84=as['buildExpression'](_0x49d089,_0x29370f[_0x1a75e5('0x1b')],_0x414b34),_0x6b3ddb[_0x44d1a4](_0x325b84[_0x1a75e5('0x38')],_0x325b84[_0x1a75e5('0xd2')][_0x1a75e5('0x2')],_0x325b84['value'][_0x1a75e5('0x23')]);}}else{const _0x455791=_(_0x198beb[_0x1a75e5('0x7d')])[_0x1a75e5('0xbd')]()[_0x1a75e5('0xac')](function(_0x47531c){const _0x211d58=_0x1a75e5;return _[_0x211d58('0x39')](_0x4fdcdb,[_0x211d58('0xd3'),_0x47531c])?_0x47531c:undefined;})[_0x1a75e5('0x45')]()[_0x1a75e5('0xd2')]();!_[_0x1a75e5('0xc8')](_0x455791)&&_0x455791[_0x1a75e5('0x83')](function(_0x394776){const _0x4870c7=_0x1a75e5;if(_0x394776===_0x4870c7('0x73'))_0x52a169[_0x4870c7('0x9e')]('i.SmsAccountId\x20IN\x20?',[]['concat'](_0x198beb[_0x4870c7('0x7d')][_0x394776]));else{if(_0x394776===_0x4870c7('0x55')){const _0x2dd7d8=JSON[_0x4870c7('0x78')](_0x198beb['query'][_0x394776])[_0x4870c7('0x2f')],_0x8ce101=JSON[_0x4870c7('0x78')](_0x198beb[_0x4870c7('0x7d')][_0x394776])['$lte'];_0x52a169[_0x4870c7('0x9e')](_0x4870c7('0xcf'),_0x2dd7d8,_0x8ce101);}else _0x198beb['query'][_0x394776]==='null'?_0x52a169[_0x4870c7('0x9e')]('i.'+_0x394776+_0x4870c7('0x51')):_0x52a169['where']('i.'+_0x394776+'\x20=\x20?',_0x198beb[_0x4870c7('0x7d')][_0x394776]);}});_0x198beb[_0x1a75e5('0x7d')][_0x1a75e5('0xc0')]&&(_0x198beb[_0x1a75e5('0x7d')][_0x1a75e5('0xc0')]==0x1?_0x52a169[_0x1a75e5('0x68')](_0x1a75e5('0x63')):_0x52a169[_0x1a75e5('0x68')]('`unreadMessages`\x20>\x200'));_0x198beb[_0x1a75e5('0x7d')]['tag']&&(_0x3bbf72=_[_0x1a75e5('0x5e')](_0x198beb[_0x1a75e5('0x7d')][_0x1a75e5('0x59')])?_0x198beb['query']['tag']:new Array(_0x198beb[_0x1a75e5('0x7d')]['tag']),_0x3bbf72[_0x1a75e5('0x83')](function(_0x703b3e){const _0x22e394=_0x1a75e5;_0x35aafe['or'](_0x22e394('0x89'),'%,'+_0x703b3e+',%');}));if(_0x198beb[_0x1a75e5('0x7d')][_0x1a75e5('0x4e')]){const _0x39994a=_0x198beb[_0x1a75e5('0x7d')][_0x1a75e5('0x4e')][_0x1a75e5('0xd6')]('\x5c','\x5c\x5c')[_0x1a75e5('0xd6')]('\x27\x27',_0x1a75e5('0x10'));qs[_0x1a75e5('0xaa')](_0x39994a)?_0x6b3ddb['or'](_0x1a75e5('0xa1'),_0x39994a+'%')['or'](_0x1a75e5('0xbb'),_0x39994a+'%'):_0x6b3ddb['or'](_0x1a75e5('0xc5'),qs[_0x1a75e5('0x65')](_0x39994a))['or'](_0x1a75e5('0xb7'),_0x39994a+'%');}}_0x52a169['where'](_0x6b3ddb),_0x52a169[_0x1a75e5('0x28')](_0x1a75e5('0x97'));let _0x379857={'type':db[_0x1a75e5('0x7f')][_0x1a75e5('0xd')][_0x1a75e5('0x2b')],'raw':!![]};const _0x135742=_0x52a169[_0x1a75e5('0x43')]();_0x135742[_0x1a75e5('0x13')](_0x1a75e5('0x97')),_0x135742[_0x1a75e5('0x13')]('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','unreadMessages'),_0x22b333[_0x1a75e5('0x50')]&&_0x22b333[_0x1a75e5('0x50')][_0x1a75e5('0x83')](function(_0x405aba){const _0x203a42=_0x1a75e5;_0x52a169['order']('i.'+_0x405aba[0x0],_0x405aba[0x1]===_0x203a42('0xa6')?![]:!![]);}),!_[_0x1a75e5('0xc8')](_0x3bbf72)&&(_0x52a169['having'](_0x35aafe),_0x135742[_0x1a75e5('0x9e')](_0x1a75e5('0x82'),_0x3bbf72)),Promise[_0x1a75e5('0x53')]()[_0x1a75e5('0xb5')](function(){const _0xbf8bd1=_0x1a75e5;if(!_0x49b2ff){if(_0x198beb[_0xbf8bd1('0x7d')][_0xbf8bd1('0x73')]||_0x198beb[_0xbf8bd1('0x7d')]['journey'])return;_0x135742['where'](_0xbf8bd1('0x46')),_0x52a169['where']('i.SmsAccountId\x20IS\x20NOT\x20NULL');return;}return _0x198beb[_0xbf8bd1('0x5')][_0xbf8bd1('0xb0')]({'attributes':['id'],'raw':!![]})[_0xbf8bd1('0xb5')](function(_0xfd977c){const _0xef7dad=_0xbf8bd1;_[_0xef7dad('0xc8')](_0xfd977c)?(_0x135742[_0xef7dad('0x9e')](_0xef7dad('0xa4')),_0x52a169[_0xef7dad('0x9e')]('i.SmsAccountId\x20IS\x20NULL')):(_0x135742['where']('i.SmsAccountId\x20IN\x20?',_['map'](_0xfd977c,'id')),_0x52a169[_0xef7dad('0x9e')](_0xef7dad('0x4d'),_[_0xef7dad('0xac')](_0xfd977c,'id')));});})['then'](function(){const _0xfb9f9e=_0x1a75e5;db[_0xfb9f9e('0x8a')][_0xfb9f9e('0x7d')](_0x135742[_0xfb9f9e('0xc4')](),_0x379857)[_0xfb9f9e('0xb5')](function(_0x38cdaa){const _0x68df2=_0xfb9f9e;_0x50d790['count']=_0x38cdaa[_0x68df2('0x4b')];if(_0x50d790[_0x68df2('0x26')]===0x0)return[];return db[_0x68df2('0x8a')][_0x68df2('0x7d')](_0x24822c['toString'](),_0x379857)[_0x68df2('0xb5')](function(_0x9f24a0){const _0x2e42b6=_0x68df2;_0xd2598f=_[_0x2e42b6('0xb6')](_0x9f24a0,'id'),_0x379857=_['merge'](_0x379857,{'model':db[_0x2e42b6('0x84')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x198beb[_0x2e42b6('0x7d')]['fields']?_0x22b333['attributes'][_0x2e42b6('0x83')](function(_0x1cea63){const _0x14b848=_0x2e42b6;_0x52a169[_0x14b848('0x13')]('i.'+_0x1cea63);}):(_0x52a169['field']('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)',_0x2e42b6('0x69')),_0x52a169[_0x2e42b6('0x13')](_0x2e42b6('0x33'),_0x2e42b6('0x16')),_0x52a169[_0x2e42b6('0x13')](_0x2e42b6('0x31'),_0x2e42b6('0x5d')),_0x52a169['field'](_0x2e42b6('0x35')),_0x52a169[_0x2e42b6('0x13')](_0x2e42b6('0x60'),_0x2e42b6('0x3b')),_0x52a169[_0x2e42b6('0x13')]('c.lastName','Contact.lastName'),_0x52a169[_0x2e42b6('0x13')]('c.email','Contact.email'),_0x52a169[_0x2e42b6('0x13')](_0x2e42b6('0x3f'),_0x2e42b6('0x47')),_0x52a169[_0x2e42b6('0x13')](_0x2e42b6('0x25'),_0x2e42b6('0xa')),_0x52a169[_0x2e42b6('0x13')](_0x2e42b6('0x17'),_0x2e42b6('0x3c')),_0x52a169['field'](_0x2e42b6('0xd7'),_0x2e42b6('0xc3')),_0x52a169[_0x2e42b6('0x13')]('o.internal',_0x2e42b6('0x34')),_0x52a169['field'](_0x2e42b6('0x2e'),_0x2e42b6('0xb2')));if(_0x22b333[_0x2e42b6('0x6f')])_0x52a169[_0x2e42b6('0x6f')](_0x22b333[_0x2e42b6('0x6f')]);if(_0x22b333[_0x2e42b6('0x67')])_0x52a169['offset'](_0x22b333[_0x2e42b6('0x67')]);return db[_0x2e42b6('0x8a')][_0x2e42b6('0x7d')](_0x52a169[_0x2e42b6('0xc4')](),_0x379857);})[_0x68df2('0xb5')](function(_0x1391cf){const _0x2d1caf=_0x68df2;return _0x41a07c[_0x2d1caf('0x9e')]('ui.SmsInteractionId\x20IN\x20?',_[_0x2d1caf('0xac')](_0x1391cf,'id')),db[_0x2d1caf('0x8a')][_0x2d1caf('0x7d')](_0x41a07c['toString'](),_0x379857)['then'](function(_0x17fe09){const _0x23ee5b=_0x2d1caf,_0x1a9cbd=_[_0x23ee5b('0x29')](_0x17fe09,_0x23ee5b('0x1')),_0x4668ee=[];return _0x1391cf['forEach'](function(_0x6d155f){const _0x336682=_0x23ee5b;_0x4668ee[_0x336682('0xa9')](updateSmsInteraction(_0x6d155f,_0xd2598f,_0x1a9cbd));}),Promise[_0x23ee5b('0x56')](_0x4668ee);});});})['then'](function(_0x5bf76a){const _0x376c8e=_0xfb9f9e;return _0x50d790[_0x376c8e('0xaf')]=_0x5bf76a,_0x50d790;})['then'](respondWithFilteredResult(_0x33716c,_0x22b333));})[_0x1a75e5('0x62')](handleError(_0x33716c,null));},exports['show']=function(_0x4a1f70,_0x35a28f){const _0x8ed8c6=_0x33c08f;let _0x31c1e3={'raw':![],'where':{'id':_0x4a1f70[_0x8ed8c6('0xbf')]['id']}};const _0x1a2d5c={};return _0x1a2d5c['model']=_[_0x8ed8c6('0xbd')](db[_0x8ed8c6('0x84')]['rawAttributes']),_0x1a2d5c[_0x8ed8c6('0x7d')]=_[_0x8ed8c6('0xbd')](_0x4a1f70[_0x8ed8c6('0x7d')]),_0x1a2d5c['filters']=_[_0x8ed8c6('0x85')](_0x1a2d5c['model'],_0x1a2d5c[_0x8ed8c6('0x7d')]),_0x31c1e3[_0x8ed8c6('0xa5')]=_[_0x8ed8c6('0x85')](_0x1a2d5c[_0x8ed8c6('0x9b')],qs[_0x8ed8c6('0x48')](_0x4a1f70[_0x8ed8c6('0x7d')]['fields'])),_0x31c1e3[_0x8ed8c6('0xa5')]=_0x31c1e3[_0x8ed8c6('0xa5')]['length']?_0x31c1e3[_0x8ed8c6('0xa5')]:_0x1a2d5c[_0x8ed8c6('0x9b')],_0x4a1f70[_0x8ed8c6('0x7d')]['includeAll']&&(_0x31c1e3[_0x8ed8c6('0x57')]=[{'all':!![]}]),_0x31c1e3=_['merge']({},_0x31c1e3,_0x4a1f70[_0x8ed8c6('0x1d')]),db[_0x8ed8c6('0x84')]['findOne'](_0x31c1e3)[_0x8ed8c6('0xb5')](handleEntityNotFound(_0x35a28f,null))['then'](respondWithResult(_0x35a28f,null))['catch'](handleError(_0x35a28f,null));},exports[_0x33c08f('0x32')]=function(_0x3f0518,_0x5cb387){const _0x5a9e1e=_0x33c08f;return db[_0x5a9e1e('0x84')]['create'](_0x3f0518[_0x5a9e1e('0x0')],{})[_0x5a9e1e('0xb5')](respondWithResult(_0x5cb387,0xc9))['catch'](handleError(_0x5cb387,null));},exports[_0x33c08f('0xc6')]=function(_0xe7ca05,_0x6c1efd){const _0x77874e=_0x33c08f;return _0xe7ca05[_0x77874e('0x0')]['id']&&delete _0xe7ca05['body']['id'],db[_0x77874e('0x84')][_0x77874e('0xd0')]({'where':{'id':_0xe7ca05[_0x77874e('0xbf')]['id']}})[_0x77874e('0xb5')](handleEntityNotFound(_0x6c1efd,null))['then'](saveUpdates(_0xe7ca05[_0x77874e('0x0')],null))['then'](respondWithResult(_0x6c1efd,null))[_0x77874e('0x62')](handleError(_0x6c1efd,null));},exports[_0x33c08f('0xf')]=function(_0x35bf1b,_0x524eed){const _0x5d3af7=_0x33c08f;return db[_0x5d3af7('0x84')][_0x5d3af7('0xd0')]({'where':{'id':_0x35bf1b[_0x5d3af7('0xbf')]['id']}})[_0x5d3af7('0xb5')](handleEntityNotFound(_0x524eed,null))[_0x5d3af7('0xb5')](removeEntity(_0x524eed,null))[_0x5d3af7('0x62')](handleError(_0x524eed,null));},exports[_0x33c08f('0x74')]=function(_0x4b8c9d,_0x508035){const _0x2dc767=_0x33c08f;return db[_0x2dc767('0x84')][_0x2dc767('0x74')]()[_0x2dc767('0xb5')](respondWithResult(_0x508035,null))[_0x2dc767('0x62')](handleError(_0x508035,null));},exports[_0x33c08f('0x5f')]=function(_0x5b448d,_0x584a4d){const _0x15a316=_0x33c08f;return db[_0x15a316('0x6b')][_0x15a316('0xd0')]({'where':{'id':_0x5b448d[_0x15a316('0xbf')]['id']}})[_0x15a316('0xb5')](function(_0xaba8ef){const _0x543ea7=_0x15a316;if(_0xaba8ef)return _0xaba8ef['addMessage'](_0x5b448d[_0x543ea7('0x0')][_0x543ea7('0x81')],{'through':_['omit'](_0x5b448d[_0x543ea7('0x0')],[_0x543ea7('0x81'),'id'])});})['then'](respondWithResult(_0x584a4d,null))[_0x15a316('0x62')](handleError(_0x584a4d,null));},exports[_0x33c08f('0xb9')]=function(_0x267ebb,_0x253977){const _0x26cc76=_0x33c08f;let _0x1b2ef7={'raw':![],'where':{}};const _0x58801d={},_0x28e14c={'count':0x0,'rows':[]};return db[_0x26cc76('0x84')][_0x26cc76('0xd0')]({'where':{'id':_0x267ebb[_0x26cc76('0xbf')]['id']}})[_0x26cc76('0xb5')](handleEntityNotFound(_0x253977,null))[_0x26cc76('0xb5')](function(_0x49641f){const _0x135b0f=_0x26cc76;if(_0x49641f){_0x58801d['model']=_[_0x135b0f('0xbd')](db[_0x135b0f('0x6b')][_0x135b0f('0x52')]),_0x58801d[_0x135b0f('0x7d')]=_[_0x135b0f('0xbd')](_0x267ebb['query']),_0x58801d['filters']=_[_0x135b0f('0x85')](_0x58801d[_0x135b0f('0x9b')],_0x58801d['query']),_0x1b2ef7[_0x135b0f('0xa5')]=_['intersection'](_0x58801d[_0x135b0f('0x9b')],qs[_0x135b0f('0x48')](_0x267ebb[_0x135b0f('0x7d')][_0x135b0f('0x48')])),_0x1b2ef7[_0x135b0f('0xa5')]=_0x1b2ef7[_0x135b0f('0xa5')][_0x135b0f('0x4b')]?_0x1b2ef7[_0x135b0f('0xa5')]:_0x58801d[_0x135b0f('0x9b')];typeof _0x267ebb[_0x135b0f('0x7d')]['nolimit']===_0x135b0f('0x9f')&&(_0x1b2ef7['limit']=qs[_0x135b0f('0x6f')](_0x267ebb[_0x135b0f('0x7d')]['limit']),_0x1b2ef7[_0x135b0f('0x67')]=qs[_0x135b0f('0x67')](_0x267ebb['query']['offset']));_0x1b2ef7[_0x135b0f('0x50')]=qs['sort'](_0x267ebb[_0x135b0f('0x7d')][_0x135b0f('0xd4')]),_0x1b2ef7['where']=qs[_0x135b0f('0x7b')](_[_0x135b0f('0x5a')](_0x267ebb[_0x135b0f('0x7d')],_0x58801d['filters'])),_0x1b2ef7[_0x135b0f('0x9e')][_0x135b0f('0x1')]=_0x49641f['id'];_0x267ebb[_0x135b0f('0x7d')][_0x135b0f('0x4e')]&&(_0x1b2ef7[_0x135b0f('0x9e')]=_[_0x135b0f('0x2c')](_0x1b2ef7[_0x135b0f('0x9e')],{[Op['or']]:_[_0x135b0f('0xac')](_0x1b2ef7[_0x135b0f('0xa5')],function(_0x5d5ed0){const _0x22911d=_0x135b0f,_0x7320e4={};return _0x7320e4[_0x5d5ed0]={[Op[_0x22911d('0x27')]]:'%'+_0x267ebb['query'][_0x22911d('0x4e')]+'%'},_0x7320e4;})}));if(_0x267ebb[_0x135b0f('0x7d')][_0x135b0f('0x2f')]){const _0x53d9a0=_0x267ebb[_0x135b0f('0x7d')][_0x135b0f('0x2f')][_0x135b0f('0x7c')](','),_0x193b1b={};_0x193b1b[_0x53d9a0[0x0]]={[Op[_0x135b0f('0x1e')]]:moment(_0x53d9a0[0x1])['format'](_0x135b0f('0x93'))},_0x1b2ef7[_0x135b0f('0x9e')]=_[_0x135b0f('0x2c')](_0x1b2ef7[_0x135b0f('0x9e')],_0x193b1b);}return _0x1b2ef7=_[_0x135b0f('0x2c')]({},_0x1b2ef7,_0x267ebb[_0x135b0f('0x1d')]),db['SmsMessage'][_0x135b0f('0x26')]({'where':_0x1b2ef7[_0x135b0f('0x9e')]})[_0x135b0f('0xb5')](function(_0x529cb6){const _0x53b01b=_0x135b0f;return _0x28e14c[_0x53b01b('0x26')]=_0x529cb6,_0x267ebb[_0x53b01b('0x7d')][_0x53b01b('0x98')]&&(_0x1b2ef7[_0x53b01b('0x57')]=[{'all':!![]}]),db[_0x53b01b('0x6b')][_0x53b01b('0x95')](_0x1b2ef7);})[_0x135b0f('0xb5')](function(_0x1484db){return _0x28e14c['rows']=_0x1484db,_0x28e14c;});}})[_0x26cc76('0xb5')](respondWithFilteredResult(_0x253977,_0x1b2ef7))[_0x26cc76('0x62')](handleError(_0x253977,null));},exports[_0x33c08f('0x4c')]=function(_0x27aea7,_0x52d391){const _0x1fc713=_0x33c08f;return db[_0x1fc713('0x84')][_0x1fc713('0xd0')]({'where':{'id':_0x27aea7[_0x1fc713('0xbf')]['id']}})[_0x1fc713('0xb5')](function(_0x4cceb0){const _0x3e33e1=_0x1fc713;if(_0x4cceb0)return _0x4cceb0[_0x3e33e1('0x3')](_0x27aea7[_0x3e33e1('0x0')]['ids'],{'through':_[_0x3e33e1('0x61')](_0x27aea7[_0x3e33e1('0x0')],[_0x3e33e1('0x81'),'id'])})[_0x3e33e1('0xb5')](function(){const _0x36f639=_0x3e33e1;return db['Tag'][_0x36f639('0x95')]({'attributes':['id','name','color'],'where':{'id':_0x27aea7[_0x36f639('0x0')][_0x36f639('0x81')]}});})[_0x3e33e1('0xb5')](function(_0x2897d3){const _0x25deba=_0x3e33e1;return socket[_0x25deba('0x99')](_0x25deba('0x75'),{'id':Number(_0x27aea7[_0x25deba('0xbf')]['id']),'tags':_0x2897d3||[]}),{'id':Number(_0x27aea7[_0x25deba('0xbf')]['id']),'tags':_0x2897d3||[]};});})[_0x1fc713('0xb5')](respondWithResult(_0x52d391,null))[_0x1fc713('0x62')](handleError(_0x52d391,null));},exports[_0x33c08f('0x94')]=function(_0x12807c,_0x4109c2){const _0x3d3204=_0x33c08f;return db['SmsInteraction'][_0x3d3204('0xd0')]({'where':{'id':_0x12807c[_0x3d3204('0xbf')]['id']}})[_0x3d3204('0xb5')](handleEntityNotFound(_0x4109c2,null))[_0x3d3204('0xb5')](function(_0x3793e0){const _0x421b5a=_0x3d3204;if(_0x3793e0)return _0x3793e0['removeTags'](_0x12807c[_0x421b5a('0x7d')]['ids']);})[_0x3d3204('0xb5')](respondWithStatusCode(_0x4109c2,null))[_0x3d3204('0x62')](handleError(_0x4109c2,null));},exports[_0x33c08f('0x7')]=function(_0x4cc46b,_0x344ac5){const _0x1f4039=_0x33c08f,_0x575f1d=moment()['unix']()[_0x1f4039('0xc4')](),_0x349da3=path['join'](config[_0x1f4039('0x86')],_0x1f4039('0xd8'),_0x1f4039('0xc'),_0x1f4039('0x3e')),_0x38ad52=path['join'](_0x349da3,_0x575f1d),_0x2f427a=util['format'](_0x1f4039('0x96'),_0x4cc46b[_0x1f4039('0xbf')]['id'],_0x575f1d),_0xc2c521=path[_0x1f4039('0x4a')](_0x349da3,_0x2f427a),_0x32bcda=[];_0x32bcda[_0x1f4039('0xa9')]({'model':db[_0x1f4039('0x54')],'as':_0x1f4039('0x54'),'attributes':['id',_0x1f4039('0xa7')],'raw':!![]}),_0x32bcda['push']({'model':db[_0x1f4039('0xa8')],'as':_0x1f4039('0x6a'),'attributes':['id',_0x1f4039('0x14'),'lastName'],'raw':!![]});const _0x52c0bd=[{'model':db[_0x1f4039('0x6b')],'as':_0x1f4039('0x9'),'attributes':['id',_0x1f4039('0x0'),'createdAt',_0x1f4039('0xd5'),'secret',_0x1f4039('0xc0')],'include':_0x32bcda}];return _0x52c0bd[_0x1f4039('0xa9')]({'model':db[_0x1f4039('0x71')],'as':_0x1f4039('0x21'),'attributes':['id',_0x1f4039('0xd3')]}),_0x52c0bd[_0x1f4039('0xa9')]({'model':db[_0x1f4039('0x54')],'as':_0x1f4039('0x8b'),'attributes':['id',_0x1f4039('0xa7')]}),db[_0x1f4039('0x84')][_0x1f4039('0xd0')]({'where':{'id':_0x4cc46b[_0x1f4039('0xbf')]['id']},'include':_0x52c0bd})[_0x1f4039('0xb5')](handleEntityNotFound(_0x344ac5,null))[_0x1f4039('0xb5')](function(_0x3b6327){const _0x2ae92f=_0x1f4039;if(_0x3b6327){const _0x188a11=_0x3b6327[_0x2ae92f('0xad')]({'plain':!![]});fs[_0x2ae92f('0x1a')](_0x38ad52);const _0x3f6a13={'format':'A4','border':_0x2ae92f('0xa2'),'header':{'height':_0x2ae92f('0x8d'),'contents':{'first':_0x2ae92f('0xcd')}},'footer':{'height':_0x2ae92f('0x42'),'contents':{'default':util[_0x2ae92f('0x12')](_0x2ae92f('0x6e'),util[_0x2ae92f('0x12')](_0x2ae92f('0xae'),_0x2ae92f('0x90'),_0x188a11['id']),moment()[_0x2ae92f('0x12')]('YYYY-MM-DD')['toString']())}}},_0x5b3fef={'channel':_0x2ae92f('0x90'),'account':_0x188a11[_0x2ae92f('0x21')]['name'],'agent':_0x188a11[_0x2ae92f('0x8b')]?_0x188a11[_0x2ae92f('0x8b')]['fullname']:_0x2ae92f('0x36'),'createdAt':moment(_0x188a11[_0x2ae92f('0x55')])[_0x2ae92f('0x12')]('YYYY-MM-DD\x20HH:mm:ss')[_0x2ae92f('0xc4')](),'closedAt':_0x188a11[_0x2ae92f('0x7e')]?moment(_0x188a11[_0x2ae92f('0x6c')])['format']('YYYY-MM-DD\x20HH:mm:ss')[_0x2ae92f('0xc4')]():'','disposition':_0x188a11['disposition'],'messages':_(_0x188a11[_0x2ae92f('0x9')])['filter']({'secret':![]})[_0x2ae92f('0xac')](function(_0x5b2f11){const _0x4eb14c=_0x2ae92f;return{'date':moment(_0x5b2f11['createdAt'])[_0x4eb14c('0x12')]('YYYY-MM-DD\x20HH:mm:ss')['toString'](),'sender':_0x5b2f11[_0x4eb14c('0xd5')]==='out'?_0x5b2f11[_0x4eb14c('0x54')]?_0x5b2f11[_0x4eb14c('0x54')][_0x4eb14c('0xa7')]:'System':_0x5b2f11[_0x4eb14c('0x6a')][_0x4eb14c('0x14')]+(_0x5b2f11[_0x4eb14c('0x6a')][_0x4eb14c('0x8f')]?'\x20'+_0x5b2f11['Contact'][_0x4eb14c('0x8f')]:''),'body':_0x5b2f11[_0x4eb14c('0x0')],'direction':_0x5b2f11[_0x4eb14c('0xd5')]===_0x4eb14c('0x7a')?'A':'C','secret':_0x5b2f11[_0x4eb14c('0xc7')],'read':_0x5b2f11[_0x4eb14c('0xc0')]};})['value']()};return ejs[_0x2ae92f('0x49')](path[_0x2ae92f('0x4a')](config[_0x2ae92f('0x86')],_0x2ae92f('0xd8'),_0x2ae92f('0x4f'),'downloadInteraction.html'),{'interaction':_0x5b3fef})[_0x2ae92f('0xb5')](function(_0x38e5b6){return new Promise(function(_0xb26d65,_0x1c1ba7){const _0x111fd3=a553_0x30b0;pdf['create'](_0x38e5b6,_0x3f6a13)[_0x111fd3('0x19')](path['join'](_0x38ad52,_0x111fd3('0x9d')+_0x188a11['id']+'-'+_0x575f1d+_0x111fd3('0x15')),function(_0x517bbe,_0x298f91){if(_0x517bbe)return _0x1c1ba7(_0x517bbe);_0xb26d65(_0x298f91);});});})['then'](function(){const _0x1f7be6=_0x2ae92f;return new Promise(function(_0x232f20,_0x211f7b){zipdir(_0x38ad52,{'saveTo':_0xc2c521},function(_0x1d218b,_0x3e4e5e){if(_0x1d218b)return _0x211f7b(_0x1d218b);return _0x232f20(_0x3e4e5e);});})[_0x1f7be6('0xb5')](function(){return new Promise(function(_0x5615e2,_0x41edb8){rimraf(_0x38ad52,function(_0x4b55d2){if(_0x4b55d2)_0x41edb8(_0x4b55d2);return _0x5615e2();});});})[_0x1f7be6('0xb5')](function(){const _0x1223eb=_0x1f7be6;return _0x344ac5[_0x1223eb('0x7')](_0xc2c521,_0x2f427a,function(_0x42d62d){const _0x38074d=_0x1223eb;_0x42d62d?console['log'](_0x38074d('0x1f'),_0x42d62d):fs[_0x38074d('0x77')](_0xc2c521);});});});}else return _0x344ac5[_0x2ae92f('0x80')](0xc8);})[_0x1f4039('0x62')](handleError(_0x344ac5,null));}; \ No newline at end of file +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 diff --git a/server/api/smsInteraction/smsInteraction.events.js b/server/api/smsInteraction/smsInteraction.events.js index 42670f0..5982853 100644 --- a/server/api/smsInteraction/smsInteraction.events.js +++ b/server/api/smsInteraction/smsInteraction.events.js @@ -1 +1 @@ -const a554_0x5e35=['length','../../mysqldb','Users','SmsInteraction','then','catch','setDataValue','remove','getUsers','update','findAll','events','map','unreadMessages','undefined','emit','SmsMessage','save'];(function(_0x5bd43b,_0x5e35d0){const _0x312118=function(_0x5bb91d){while(--_0x5bb91d){_0x5bd43b['push'](_0x5bd43b['shift']());}};_0x312118(++_0x5e35d0);}(a554_0x5e35,0x138));const a554_0x3121=function(_0x5bd43b,_0x5e35d0){_0x5bd43b=_0x5bd43b-0x0;let _0x312118=a554_0x5e35[_0x5bd43b];return _0x312118;};const _0x1ac04f=a554_0x3121;'use strict';const EventEmitter=require(_0x1ac04f('0x5')),SmsInteraction=require(_0x1ac04f('0xd'))['db'][_0x1ac04f('0xf')],SmsMessage=require('../../mysqldb')['db'][_0x1ac04f('0xa')],SmsInteractionEvents=new EventEmitter();SmsInteractionEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x1ac04f('0xb'),'afterUpdate':_0x1ac04f('0x3'),'afterDestroy':_0x1ac04f('0x1')};function emitEvent(_0x5bb91d){return function(_0xf8ed6){const _0x3473ae=a554_0x3121;_0xf8ed6[_0x3473ae('0x2')]({'attributes':['id'],'raw':!![]})[_0x3473ae('0x10')](function(_0x1687ff){const _0x2531c2=_0x3473ae;return _0xf8ed6[_0x2531c2('0x0')](_0x2531c2('0xe'),_0x1687ff[_0x2531c2('0x6')](function(_0x48db40){return{'id':_0x48db40['id']};})),SmsMessage[_0x2531c2('0x4')]({'where':{'SmsInteractionId':_0xf8ed6['id'],'direction':'in','read':![]},'raw':!![]});})[_0x3473ae('0x10')](function(_0x53b547){const _0x2a05e1=_0x3473ae;_0xf8ed6[_0x2a05e1('0x0')](_0x2a05e1('0x7'),_0x53b547[_0x2a05e1('0xc')]),SmsInteractionEvents[_0x2a05e1('0x9')](_0x5bb91d+':'+_0xf8ed6['id'],_0xf8ed6),SmsInteractionEvents[_0x2a05e1('0x9')](_0x5bb91d,_0xf8ed6);})[_0x3473ae('0x11')](()=>{});};}for(const e in events){if(typeof events[e]!==_0x1ac04f('0x8')){const event=events[e];SmsInteraction['addHook'](e,emitEvent(event));}}module['exports']=SmsInteractionEvents; \ No newline at end of file +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 diff --git a/server/api/smsInteraction/smsInteraction.model.js b/server/api/smsInteraction/smsInteraction.model.js index 9a716ce..da17c16 100644 --- a/server/api/smsInteraction/smsInteraction.model.js +++ b/server/api/smsInteraction/smsInteraction.model.js @@ -1 +1 @@ -const a555_0x85e9=['moment','./smsInteraction.attributes','define','exports','changed','closed','closedAt','YYYY-MM-DD\x20HH:mm:ss','SmsInteraction'];(function(_0x29daaf,_0x85e93c){const _0x1ec4e5=function(_0x183897){while(--_0x183897){_0x29daaf['push'](_0x29daaf['shift']());}};_0x1ec4e5(++_0x85e93c);}(a555_0x85e9,0x1af));const a555_0x1ec4=function(_0x29daaf,_0x85e93c){_0x29daaf=_0x29daaf-0x0;let _0x1ec4e5=a555_0x85e9[_0x29daaf];return _0x1ec4e5;};const _0x5b6da7=a555_0x1ec4;'use strict';const moment=require(_0x5b6da7('0x1')),attributes=require(_0x5b6da7('0x2'));module[_0x5b6da7('0x4')]=function(_0x183897){const _0x20e172=_0x5b6da7,_0x1969a9=_0x183897[_0x20e172('0x3')](_0x20e172('0x0'),attributes,{'tableName':'sms_interactions','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x33cdc1){const _0x338964=_0x20e172;_0x33cdc1[_0x338964('0x5')](_0x338964('0x6'))&&(_0x33cdc1[_0x338964('0x7')]=moment()['format'](_0x338964('0x8')));}}});return _0x1969a9;}; \ No newline at end of file +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 diff --git a/server/api/smsInteraction/smsInteraction.rpc.js b/server/api/smsInteraction/smsInteraction.rpc.js index 47704eb..137f83f 100644 --- a/server/api/smsInteraction/smsInteraction.rpc.js +++ b/server/api/smsInteraction/smsInteraction.rpc.js @@ -1 +1 @@ -const a556_0x4c29=['message','addTags','then','omit','UpdateSmsInteraction','../../mysqldb','options','attributes','where','rpc','AddTagsToSmsInteraction','debug','lodash','info','../../config/logger','findOne','update','error','ids','SmsInteraction','AddTags','raw','stringify','body'];(function(_0x168817,_0x4c292d){const _0xf0548b=function(_0x3d0ebd){while(--_0x3d0ebd){_0x168817['push'](_0x168817['shift']());}};_0xf0548b(++_0x4c292d);}(a556_0x4c29,0x132));const a556_0xf054=function(_0x168817,_0x4c292d){_0x168817=_0x168817-0x0;let _0xf0548b=a556_0x4c29[_0x168817];return _0xf0548b;};const _0x18fe58=a556_0xf054;'use strict';const _=require(_0x18fe58('0x12')),db=require(_0x18fe58('0xb'))['db'],logger=require(_0x18fe58('0x14'))(_0x18fe58('0xf')),{getSocket}=require('../../rediscache'),socket=getSocket();require('./smsInteraction.socket')['register'](socket),exports[_0x18fe58('0xa')]=function(_0x3d0ebd){const _0x1288ff=this;return new Promise(function(_0x427e2b,_0x14b6a0){const _0x227e20=a556_0xf054;return db[_0x227e20('0x1')][_0x227e20('0x16')](_0x3d0ebd['body'],{'raw':_0x3d0ebd[_0x227e20('0xc')]?_0x3d0ebd['options'][_0x227e20('0x3')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3d0ebd['options']?_0x3d0ebd[_0x227e20('0xc')]['where']||null:null,'attributes':_0x3d0ebd[_0x227e20('0xc')]?_0x3d0ebd[_0x227e20('0xc')][_0x227e20('0xd')]||null:null,'limit':_0x3d0ebd['options']?_0x3d0ebd[_0x227e20('0xc')]['limit']||null:null})['then'](function(_0x2b9f46){const _0x481f82=_0x227e20;logger[_0x481f82('0x13')](_0x481f82('0xa'),_0x3d0ebd),logger[_0x481f82('0x11')]('UpdateSmsInteraction',_0x3d0ebd,JSON['stringify'](_0x2b9f46)),_0x427e2b(_0x2b9f46);})['catch'](function(_0x5ed477){const _0x5afba5=_0x227e20;logger[_0x5afba5('0x17')](_0x5afba5('0xa'),_0x5ed477['message'],_0x3d0ebd),_0x14b6a0(_0x1288ff[_0x5afba5('0x17')](0x1f4,_0x5ed477['message']));});});},exports[_0x18fe58('0x10')]=function(_0x5b9368){const _0x44cfe5=this;return new Promise(function(_0x52c787,_0x187301){const _0x1ed01d=a556_0xf054;return db[_0x1ed01d('0x1')][_0x1ed01d('0x15')]({'where':_0x5b9368[_0x1ed01d('0xc')]?_0x5b9368[_0x1ed01d('0xc')][_0x1ed01d('0xe')]||null:null})[_0x1ed01d('0x8')](function(_0xcb9b7){const _0x10be00=_0x1ed01d;if(_0xcb9b7)return _0xcb9b7[_0x10be00('0x7')](_0x5b9368[_0x10be00('0x5')][_0x10be00('0x0')],{'through':_[_0x10be00('0x9')](_0x5b9368[_0x10be00('0x5')],[_0x10be00('0x0'),'id'])});})[_0x1ed01d('0x8')](function([_0x2f4420]){const _0x4e4fb8=_0x1ed01d;logger[_0x4e4fb8('0x13')](_0x4e4fb8('0x2'),_0x5b9368),logger['debug'](_0x4e4fb8('0x2'),_0x5b9368,JSON[_0x4e4fb8('0x4')](_0x2f4420)),_0x52c787(_0x2f4420);})['catch'](function(_0x1b8846){const _0x32cc72=_0x1ed01d;logger[_0x32cc72('0x17')](_0x32cc72('0x2'),_0x1b8846[_0x32cc72('0x6')],_0x5b9368),_0x187301(_0x44cfe5[_0x32cc72('0x17')](0x1f4,_0x1b8846['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/smsInteraction/smsInteraction.socket.js b/server/api/smsInteraction/smsInteraction.socket.js index ae21986..d9eed00 100644 --- a/server/api/smsInteraction/smsInteraction.socket.js +++ b/server/api/smsInteraction/smsInteraction.socket.js @@ -1 +1 @@ -const a557_0x106a=['update','emit','register','save','length','./smsInteraction.events'];(function(_0x253585,_0x106a8f){const _0x2c83fb=function(_0x209cb7){while(--_0x209cb7){_0x253585['push'](_0x253585['shift']());}};_0x2c83fb(++_0x106a8f);}(a557_0x106a,0xad));const a557_0x2c83=function(_0x253585,_0x106a8f){_0x253585=_0x253585-0x0;let _0x2c83fb=a557_0x106a[_0x253585];return _0x2c83fb;};const _0x145d92=a557_0x2c83;'use strict';const SmsInteractionEvents=require(_0x145d92('0x0')),events=[_0x145d92('0x4'),'remove',_0x145d92('0x1')];function createListener(_0x209cb7,_0x5b6625){return function(_0x38ca61){const _0x5e2c15=a557_0x2c83;_0x5b6625[_0x5e2c15('0x2')](_0x209cb7,_0x38ca61);};}exports[_0x145d92('0x3')]=function(_0x55e18d){const _0x1e7a7f=_0x145d92;for(let _0x305c42=0x0,_0x55ec85=events[_0x1e7a7f('0x5')];_0x305c42<_0x55ec85;_0x305c42++){const _0x18468c=events[_0x305c42],_0x330095=createListener('smsInteraction:'+_0x18468c,_0x55e18d);SmsInteractionEvents['on'](_0x18468c,_0x330095);}}; \ No newline at end of file +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 diff --git a/server/api/smsMessage/index.js b/server/api/smsMessage/index.js index daf6e60..24859b4 100644 --- a/server/api/smsMessage/index.js +++ b/server/api/smsMessage/index.js @@ -1 +1 @@ -const a558_0x300e=['isAuthenticated','express','put','/describe','describe','tracked','get','/:id/reject','status','/:id','./smsMessage.controller','Router','/:id/status','exports','delete','smsmessage:create','reject','post','accept','destroy','../../components/interaction/service','create'];(function(_0x5728fc,_0x300e9f){const _0x58b4d8=function(_0x1fb2b1){while(--_0x1fb2b1){_0x5728fc['push'](_0x5728fc['shift']());}};_0x58b4d8(++_0x300e9f);}(a558_0x300e,0xa2));const a558_0x58b4=function(_0x5728fc,_0x300e9f){_0x5728fc=_0x5728fc-0x0;let _0x58b4d8=a558_0x300e[_0x5728fc];return _0x58b4d8;};const _0x346e33=a558_0x58b4;'use strict';const express=require(_0x346e33('0xf')),router=express[_0x346e33('0x3')](),auth=require('../../components/auth/service'),interaction=require(_0x346e33('0xc')),controller=require(_0x346e33('0x2'));router[_0x346e33('0x14')]('/',auth[_0x346e33('0xe')](),controller['index']),router[_0x346e33('0x14')](_0x346e33('0x11'),auth['isAuthenticated'](),controller[_0x346e33('0x12')]),router[_0x346e33('0x14')](_0x346e33('0x1'),auth[_0x346e33('0xe')](),controller['show']),router[_0x346e33('0x9')]('/',auth[_0x346e33('0xe')](),interaction[_0x346e33('0x13')]('sms',_0x346e33('0x7')),controller[_0x346e33('0xd')]),router[_0x346e33('0x9')](_0x346e33('0x4'),controller[_0x346e33('0x0')]),router[_0x346e33('0x10')](_0x346e33('0x1'),auth[_0x346e33('0xe')](),controller['update']),router['put']('/:id/accept',auth[_0x346e33('0xe')](),controller[_0x346e33('0xa')]),router[_0x346e33('0x10')](_0x346e33('0x15'),auth['isAuthenticated'](),controller[_0x346e33('0x8')]),router[_0x346e33('0x6')](_0x346e33('0x1'),auth[_0x346e33('0xe')](),controller[_0x346e33('0xb')]),module[_0x346e33('0x5')]=router; \ No newline at end of file +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 diff --git a/server/api/smsMessage/smsMessage.attributes.js b/server/api/smsMessage/smsMessage.attributes.js index 66a44bf..f67b83c 100644 --- a/server/api/smsMessage/smsMessage.attributes.js +++ b/server/api/smsMessage/smsMessage.attributes.js @@ -1 +1 @@ -const a559_0x554f=['BOOLEAN','sequelize','STRING','out','medium','ENUM','exports'];(function(_0x539376,_0x554f75){const _0x82b591=function(_0xd08793){while(--_0xd08793){_0x539376['push'](_0x539376['shift']());}};_0x82b591(++_0x554f75);}(a559_0x554f,0x185));const a559_0x82b5=function(_0x539376,_0x554f75){_0x539376=_0x539376-0x0;let _0x82b591=a559_0x554f[_0x539376];return _0x82b591;};const _0x508f63=a559_0x82b5;'use strict';const Sequelize=require(_0x508f63('0x4'));module[_0x508f63('0x2')]={'body':{'type':Sequelize['TEXT'](_0x508f63('0x0')),'allowNull':![]},'read':{'type':Sequelize[_0x508f63('0x3')],'defaultValue':![]},'direction':{'type':Sequelize[_0x508f63('0x1')]('in',_0x508f63('0x6')),'defaultValue':_0x508f63('0x6'),'allowNull':![]},'messageId':{'type':Sequelize[_0x508f63('0x5')](0xbe)},'phone':{'type':Sequelize['STRING']},'readAt':{'type':Sequelize['DATE']},'secret':{'type':Sequelize[_0x508f63('0x3')],'defaultValue':![]}}; \ No newline at end of file +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 diff --git a/server/api/smsMessage/smsMessage.controller.js b/server/api/smsMessage/smsMessage.controller.js index b77fd5b..c771b83 100644 --- a/server/api/smsMessage/smsMessage.controller.js +++ b/server/api/smsMessage/smsMessage.controller.js @@ -1 +1 @@ -const a560_0x1f47=['filters','request\x20sent','interface','SmsAccount','order','SmsMessage','get','sms-interactions','plivo','body','update','./smsMessage.socket','pick','options','Contact','MessageSid','request','rawAttributes','message','[SMSMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','interaction','describe','../../config/logger','client','stack','destroy','messageId','debug','intersection','merge','model','SmsInteraction','plivio','end','user','sequelize','stringify','CmContact','reject','length','SIP/%s','findOne','util','accept','info','catch','AcceptMessage','SmsAccountId','format','includeAll','role','SmsInteractionId','../../mysqldb','event','inspect','null','http','twilio','code','acceptmessage','VIRTUAL','count','error','channel','EventManager','SmsMessage,\x20%s,\x20%s,\x20%s','limit','create','type','keys','SmsAccount,\x20%s,\x20%s,\x20%s','filter','fieldName','sort','index','YYYY-MM-DD\x20HH:mm:ss','map','delivered','SmsMessage,\x20%s,\x20%s','rows','params','json','manual','fields','../../components/parsers/qs','name','where','agent','sendStatus','sms','like','attributes','../../rediscache','infobip','query','rejectmessage','nolimit','offset','received\x20delivery\x20report\x20from','groupName','send','status','UserId','MessageUUID','readAt','register','[SMSMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','moment','read','RejectMessage','key','sent','Content-Range','then','set','rejectMessage'];(function(_0x22aefa,_0x1f4709){const _0x4d9f5d=function(_0x3385e5){while(--_0x3385e5){_0x22aefa['push'](_0x22aefa['shift']());}};_0x4d9f5d(++_0x1f4709);}(a560_0x1f47,0x1d5));const a560_0x4d9f=function(_0x22aefa,_0x1f4709){_0x22aefa=_0x22aefa-0x0;let _0x4d9f5d=a560_0x1f47[_0x22aefa];return _0x4d9f5d;};const _0x6a835a=a560_0x4d9f;'use strict';const moment=require(_0x6a835a('0x66')),util=require(_0x6a835a('0x25')),_=require('lodash'),qs=require(_0x6a835a('0x4f')),logger=require(_0x6a835a('0x11'))('api'),{getSocket}=require(_0x6a835a('0x57')),socket=getSocket(),db=require(_0x6a835a('0x2f'))['db'],{Op}=require(_0x6a835a('0x1e')),interaction_log=require(_0x6a835a('0x11'))(_0x6a835a('0x2'));require(_0x6a835a('0x6'))[_0x6a835a('0x64')](socket);const jayson=require('jayson/promise'),client=jayson[_0x6a835a('0x12')][_0x6a835a('0x33')]({'port':0x232c}),client9002=jayson[_0x6a835a('0x12')][_0x6a835a('0x33')]({'port':0x232a});function respondWithRpcPromise(_0x3385e5,_0x54b650,_0x3e3b77,_0xa0376c){return new Promise(function(_0x476ba3,_0x20d107){const _0x5012e3=a560_0x4d9f,_0xdba60d=_0xa0376c||client;return _0xdba60d[_0x5012e3('0xb')](_0x3385e5,_0x3e3b77)['then'](function(_0x532719){const _0x52b794=_0x5012e3;logger[_0x52b794('0x27')](_0x52b794('0x49'),_0x54b650,_0x52b794('0x70')),logger[_0x52b794('0x16')](_0x52b794('0x3c'),_0x54b650,_0x52b794('0x70'),JSON[_0x52b794('0x1f')](_0x532719));if(_0x532719[_0x52b794('0x39')]){if(_0x532719[_0x52b794('0x39')][_0x52b794('0x35')]===0x1f4)return logger[_0x52b794('0x39')](_0x52b794('0x49'),_0x54b650,_0x532719[_0x52b794('0x39')][_0x52b794('0xd')]),_0x20d107(_0x532719[_0x52b794('0x39')][_0x52b794('0xd')]);return logger[_0x52b794('0x39')](_0x52b794('0x49'),_0x54b650,_0x532719[_0x52b794('0x39')][_0x52b794('0xd')]),_0x476ba3(_0x532719[_0x52b794('0x39')]['message']);}else logger[_0x52b794('0x27')](_0x52b794('0x49'),_0x54b650,_0x52b794('0x70')),_0x476ba3(_0x532719['result']['message']);})[_0x5012e3('0x28')](function(_0x10c524){const _0x284456=_0x5012e3;logger['error'](_0x284456('0x49'),_0x54b650,_0x10c524),_0x20d107(_0x10c524);});});}function respondWithResult(_0x4425cf,_0x313e1b){return _0x313e1b=_0x313e1b||0xc8,function(_0x343067){const _0x3d7bef=a560_0x4d9f;if(_0x343067)return _0x4425cf[_0x3d7bef('0x60')](_0x313e1b)[_0x3d7bef('0x4c')](_0x343067);};}function respondWithFilteredResult(_0xda7782,_0x2a159e){return function(_0x26788b){const _0x1290f6=a560_0x4d9f;if(_0x26788b){const _0x11b7c2=_0x26788b['count'],_0x4033f1=_0x2a159e[_0x1290f6('0x5c')];let _0x557337=_0x2a159e[_0x1290f6('0x5c')]+_0x2a159e[_0x1290f6('0x3d')],_0x2fa8d5;return _0x557337>=_0x11b7c2?(_0x557337=_0x11b7c2,_0x2fa8d5=0xc8):_0x2fa8d5=0xce,_0xda7782[_0x1290f6('0x60')](_0x2fa8d5),_0xda7782[_0x1290f6('0x6d')](_0x1290f6('0x6b'),_0x4033f1+'-'+_0x557337+'/'+_0x11b7c2)[_0x1290f6('0x4c')](_0x26788b);}return null;};}function saveUpdates(_0x3c3065){return function(_0x19ac5f){const _0x1afaaa=a560_0x4d9f;if(_0x19ac5f)return _0x19ac5f[_0x1afaaa('0x5')](_0x3c3065)['then'](function(_0x59b273){return _0x59b273;});return null;};}function removeEntity(_0x46558c){return function(_0x105788){const _0x263ea3=a560_0x4d9f;if(_0x105788)return _0x105788[_0x263ea3('0x14')]()[_0x263ea3('0x6c')](function(){const _0x17e403=_0x263ea3;_0x46558c[_0x17e403('0x60')](0xcc)[_0x17e403('0x1c')]();});};}function handleEntityNotFound(_0x4b3315){return function(_0x177da6){const _0x1742d2=a560_0x4d9f;return!_0x177da6&&_0x4b3315[_0x1742d2('0x53')](0x194),_0x177da6;};}function handleError(_0x563eae,_0x1c879c){return _0x1c879c=_0x1c879c||0x1f4,function(_0x55f16e){const _0x4e6da7=a560_0x4d9f;logger[_0x4e6da7('0x39')](_0x55f16e[_0x4e6da7('0x13')]),_0x55f16e['name']&&delete _0x55f16e['name'],_0x563eae['status'](_0x1c879c)[_0x4e6da7('0x5f')](_0x55f16e);};}exports[_0x6a835a('0x45')]=function(_0x217d26,_0x43251f){const _0x454b6c=_0x6a835a;let _0x3a4432={};const _0x1b1d1d={},_0x45102f={'count':0x0,'rows':[]},_0x564d93=_[_0x454b6c('0x47')](db[_0x454b6c('0x0')][_0x454b6c('0xc')],function(_0x1e5904){const _0x1f3de8=_0x454b6c;return{'name':_0x1e5904[_0x1f3de8('0x43')],'type':_0x1e5904[_0x1f3de8('0x3f')][_0x1f3de8('0x69')]};});_0x1b1d1d[_0x454b6c('0x19')]=_[_0x454b6c('0x47')](_0x564d93,_0x454b6c('0x50')),_0x1b1d1d[_0x454b6c('0x59')]=_['keys'](_0x217d26[_0x454b6c('0x59')]),_0x1b1d1d[_0x454b6c('0x6f')]=_[_0x454b6c('0x17')](_0x1b1d1d[_0x454b6c('0x19')],_0x1b1d1d[_0x454b6c('0x59')]),_0x3a4432[_0x454b6c('0x56')]=_[_0x454b6c('0x17')](_0x1b1d1d[_0x454b6c('0x19')],qs[_0x454b6c('0x4e')](_0x217d26[_0x454b6c('0x59')][_0x454b6c('0x4e')])),_0x3a4432[_0x454b6c('0x56')]=_0x3a4432[_0x454b6c('0x56')][_0x454b6c('0x22')]?_0x3a4432[_0x454b6c('0x56')]:_0x1b1d1d[_0x454b6c('0x19')];typeof _0x217d26['query'][_0x454b6c('0x5b')]==='undefined'&&(_0x3a4432[_0x454b6c('0x3d')]=qs['limit'](_0x217d26[_0x454b6c('0x59')][_0x454b6c('0x3d')]),_0x3a4432[_0x454b6c('0x5c')]=qs[_0x454b6c('0x5c')](_0x217d26['query']['offset']));_0x3a4432[_0x454b6c('0x73')]=qs[_0x454b6c('0x44')](_0x217d26['query'][_0x454b6c('0x44')]),_0x3a4432['where']=qs[_0x454b6c('0x6f')](_[_0x454b6c('0x7')](_0x217d26[_0x454b6c('0x59')],_0x1b1d1d['filters']),_0x564d93);_0x217d26[_0x454b6c('0x59')][_0x454b6c('0x42')]&&(_0x3a4432['where']=_['merge'](_0x3a4432[_0x454b6c('0x51')],{[Op['or']]:_['map'](_0x564d93,function(_0xe20bb2){const _0x1cad91=_0x454b6c;if(_0xe20bb2[_0x1cad91('0x3f')]!==_0x1cad91('0x37')){const _0x579c54={};return _0x579c54[_0xe20bb2[_0x1cad91('0x50')]]={[Op[_0x1cad91('0x55')]]:'%'+_0x217d26['query'][_0x1cad91('0x42')]+'%'},_0x579c54;}})}));_0x3a4432=_[_0x454b6c('0x18')]({},_0x3a4432,_0x217d26[_0x454b6c('0x8')]);const _0x3ebf1f={'where':_0x3a4432[_0x454b6c('0x51')]};return db[_0x454b6c('0x0')][_0x454b6c('0x38')](_0x3ebf1f)[_0x454b6c('0x6c')](function(_0x5cb845){const _0x324e22=_0x454b6c;return _0x45102f[_0x324e22('0x38')]=_0x5cb845,_0x217d26[_0x324e22('0x59')]['includeAll']&&(_0x3a4432['include']=[{'all':!![]}]),db[_0x324e22('0x0')]['findAll'](_0x3a4432);})['then'](function(_0x58b2e6){const _0x15c51c=_0x454b6c;return _0x45102f[_0x15c51c('0x4a')]=_0x58b2e6,_0x45102f;})[_0x454b6c('0x6c')](respondWithFilteredResult(_0x43251f,_0x3a4432))[_0x454b6c('0x28')](handleError(_0x43251f,null));},exports['show']=function(_0x500c9b,_0x1d4f67){const _0x1aa2b0=_0x6a835a;let _0x39815f={'raw':!![],'where':{'id':_0x500c9b[_0x1aa2b0('0x4b')]['id']}};const _0x57aed6={};return _0x57aed6[_0x1aa2b0('0x19')]=_['keys'](db['SmsMessage'][_0x1aa2b0('0xc')]),_0x57aed6[_0x1aa2b0('0x59')]=_[_0x1aa2b0('0x40')](_0x500c9b[_0x1aa2b0('0x59')]),_0x57aed6[_0x1aa2b0('0x6f')]=_[_0x1aa2b0('0x17')](_0x57aed6['model'],_0x57aed6[_0x1aa2b0('0x59')]),_0x39815f['attributes']=_['intersection'](_0x57aed6[_0x1aa2b0('0x19')],qs[_0x1aa2b0('0x4e')](_0x500c9b[_0x1aa2b0('0x59')][_0x1aa2b0('0x4e')])),_0x39815f[_0x1aa2b0('0x56')]=_0x39815f[_0x1aa2b0('0x56')][_0x1aa2b0('0x22')]?_0x39815f['attributes']:_0x57aed6[_0x1aa2b0('0x19')],_0x500c9b['query'][_0x1aa2b0('0x2c')]&&(_0x39815f['include']=[{'all':!![]}]),_0x39815f=_['merge']({},_0x39815f,_0x500c9b[_0x1aa2b0('0x8')]),db[_0x1aa2b0('0x0')][_0x1aa2b0('0x24')](_0x39815f)[_0x1aa2b0('0x6c')](handleEntityNotFound(_0x1d4f67,null))[_0x1aa2b0('0x6c')](respondWithResult(_0x1d4f67,null))[_0x1aa2b0('0x28')](handleError(_0x1d4f67,null));},exports[_0x6a835a('0x3e')]=function(_0x174896,_0x3f5d23){const _0x561e0f=_0x6a835a;return db[_0x561e0f('0x0')][_0x561e0f('0x3e')](_0x174896[_0x561e0f('0x4')],{})[_0x561e0f('0x6c')](respondWithResult(_0x3f5d23,0xc9))[_0x561e0f('0x28')](handleError(_0x3f5d23,null));},exports[_0x6a835a('0x5')]=function(_0x3a154e,_0x174dd8){const _0x2f03da=_0x6a835a;return _0x3a154e[_0x2f03da('0x4')]['id']&&delete _0x3a154e['body']['id'],db['SmsMessage']['findOne']({'where':{'id':_0x3a154e[_0x2f03da('0x4b')]['id']}})[_0x2f03da('0x6c')](handleEntityNotFound(_0x174dd8,null))['then'](saveUpdates(_0x3a154e[_0x2f03da('0x4')],null))[_0x2f03da('0x6c')](respondWithResult(_0x174dd8,null))[_0x2f03da('0x28')](handleError(_0x174dd8,null));},exports[_0x6a835a('0x14')]=function(_0x186fb6,_0x94a450){const _0x5b4b08=_0x6a835a;return db[_0x5b4b08('0x0')][_0x5b4b08('0x24')]({'where':{'id':_0x186fb6[_0x5b4b08('0x4b')]['id']}})['then'](handleEntityNotFound(_0x94a450,null))[_0x5b4b08('0x6c')](removeEntity(_0x94a450,null))['catch'](handleError(_0x94a450,null));},exports[_0x6a835a('0x10')]=function(_0x2c2fa6,_0x250c7d){const _0x12b8f5=_0x6a835a;return db['SmsMessage'][_0x12b8f5('0x10')]()[_0x12b8f5('0x6c')](respondWithResult(_0x250c7d,null))[_0x12b8f5('0x28')](handleError(_0x250c7d,null));},exports[_0x6a835a('0x26')]=function(_0x12a8bc,_0x1c904b){const _0x1fd47b=_0x6a835a,_0x84c81b={'channel':_0x1fd47b('0x54')};return _0x12a8bc[_0x1fd47b('0x4')]['id']&&delete _0x12a8bc[_0x1fd47b('0x4')]['id'],_0x12a8bc['body'][_0x1fd47b('0x67')]=!![],_0x12a8bc[_0x1fd47b('0x4')][_0x1fd47b('0x63')]=moment()[_0x1fd47b('0x2b')](_0x1fd47b('0x46')),_0x12a8bc[_0x1fd47b('0x4')][_0x1fd47b('0x61')]=_0x12a8bc[_0x1fd47b('0x4')][_0x1fd47b('0x61')]||_0x12a8bc[_0x1fd47b('0x1d')]['id'],db[_0x1fd47b('0x0')][_0x1fd47b('0x24')]({'where':{'id':_0x12a8bc[_0x1fd47b('0x4b')]['id'],'UserId':null},'include':[{'model':db[_0x1fd47b('0x20')],'as':_0x1fd47b('0x9')}]})[_0x1fd47b('0x6c')](handleEntityNotFound(_0x1c904b,null))['then'](saveUpdates(_0x12a8bc['body'],null))[_0x1fd47b('0x6c')](function(_0xe50c87){const _0x2094ba=_0x1fd47b;if(_0xe50c87)return _0x84c81b[_0x2094ba('0xd')]=_0xe50c87[_0x2094ba('0x1')]({'plain':!![]}),db[_0x2094ba('0x1a')]['findOne']({'where':{'id':_0xe50c87['SmsInteractionId']}});return null;})[_0x1fd47b('0x6c')](handleEntityNotFound(_0x1c904b,null))[_0x1fd47b('0x6c')](function(_0x401be2){const _0xc1eb52=_0x1fd47b;if(_0x401be2)return _0x401be2[_0xc1eb52('0x5')]({'UserId':_0x12a8bc[_0xc1eb52('0x4')][_0xc1eb52('0x61')],'read1stAt':_['isNil'](_0x401be2['read1stAt'])?moment()['format'](_0xc1eb52('0x46')):undefined});return null;})[_0x1fd47b('0x6c')](function(_0x272cd8){const _0x52f4c1=_0x1fd47b;if(_0x272cd8)return _0x84c81b[_0x52f4c1('0xf')]=_0x272cd8['get']({'plain':!![]}),interaction_log[_0x52f4c1('0x27')](_0x52f4c1('0xe'),_0x12a8bc[_0x52f4c1('0x1d')]['id'],_0x12a8bc['user'][_0x52f4c1('0x50')],_0x12a8bc[_0x52f4c1('0x1d')][_0x52f4c1('0x2d')],_0x84c81b[_0x52f4c1('0xf')]['id'],_0x12a8bc[_0x52f4c1('0x4')]?JSON[_0x52f4c1('0x1f')](_0x12a8bc[_0x52f4c1('0x4')]):_0x52f4c1('0x32')),respondWithRpcPromise(_0x52f4c1('0x29'),'acceptMessage',_0x84c81b);return null;})[_0x1fd47b('0x6c')](function(_0x443ca5){const _0x2da3a8=_0x1fd47b;if(_0x443ca5){if(_0x12a8bc[_0x2da3a8('0x4')][_0x2da3a8('0x4d')])return _0x84c81b[_0x2da3a8('0xd')][_0x2da3a8('0x71')]=util[_0x2da3a8('0x2b')](_0x2da3a8('0x23'),_0x12a8bc[_0x2da3a8('0x1d')][_0x2da3a8('0x50')]),_0x84c81b[_0x2da3a8('0xd')][_0x2da3a8('0x3a')]=_0x84c81b[_0x2da3a8('0x3a')],_0x84c81b[_0x2da3a8('0xd')][_0x2da3a8('0x30')]=_0x2da3a8('0x26'),respondWithRpcPromise(_0x2da3a8('0x3b'),_0x2da3a8('0x3b'),{'event':_0x2da3a8('0x36'),'message':_0x84c81b[_0x2da3a8('0xd')]},client9002)['then'](function(){return _0x84c81b;});return _0x84c81b;}return null;})[_0x1fd47b('0x6c')](respondWithResult(_0x1c904b,null))['catch'](handleError(_0x1c904b,null));},exports['reject']=function(_0x40b1f5,_0x2c7194){const _0xb6ae04=_0x6a835a,_0x29b390={'agent':{},'channel':_0xb6ae04('0x54')};return _0x40b1f5['body']['id']&&delete _0x40b1f5[_0xb6ae04('0x4')]['id'],_0x40b1f5[_0xb6ae04('0x4')][_0xb6ae04('0x61')]=_0x40b1f5[_0xb6ae04('0x4')][_0xb6ae04('0x61')]||_0x40b1f5['user']['id'],_0x29b390[_0xb6ae04('0x52')]['id']=_0x40b1f5[_0xb6ae04('0x4')][_0xb6ae04('0x61')],db[_0xb6ae04('0x0')][_0xb6ae04('0x24')]({'where':{'id':_0x40b1f5[_0xb6ae04('0x4b')]['id'],'UserId':null}})[_0xb6ae04('0x6c')](handleEntityNotFound(_0x2c7194,null))[_0xb6ae04('0x6c')](function(_0x2e6438){const _0x2102e2=_0xb6ae04;if(_0x2e6438)return _0x29b390[_0x2102e2('0xd')]=_0x2e6438[_0x2102e2('0x1')]({'plain':!![]}),db['SmsInteraction'][_0x2102e2('0x24')]({'where':{'id':_0x2e6438[_0x2102e2('0x2e')]}});return null;})['then'](handleEntityNotFound(_0x2c7194,null))[_0xb6ae04('0x6c')](function(_0x429a76){const _0xc30c95=_0xb6ae04;if(_0x429a76)return _0x29b390[_0xc30c95('0xf')]=_0x429a76[_0xc30c95('0x1')]({'plain':!![]}),interaction_log[_0xc30c95('0x27')](_0xc30c95('0x65'),_0x40b1f5['user']['id'],_0x40b1f5['user'][_0xc30c95('0x50')],_0x40b1f5['user'][_0xc30c95('0x2d')],_0x29b390['interaction']['id'],_0x40b1f5[_0xc30c95('0x4')]?JSON[_0xc30c95('0x1f')](_0x40b1f5['body']):_0xc30c95('0x32')),respondWithRpcPromise(_0xc30c95('0x68'),_0xc30c95('0x6e'),_0x29b390);return null;})[_0xb6ae04('0x6c')](function(_0x1cd0b3){const _0x5e75ff=_0xb6ae04;if(_0x1cd0b3)return _0x1cd0b3[_0x5e75ff('0xd')]['interface']=util[_0x5e75ff('0x2b')](_0x5e75ff('0x23'),_0x40b1f5['user']['name']),_0x1cd0b3[_0x5e75ff('0xd')][_0x5e75ff('0x3a')]=_0x29b390[_0x5e75ff('0x3a')],_0x1cd0b3[_0x5e75ff('0xd')][_0x5e75ff('0x30')]=_0x5e75ff('0x21'),respondWithRpcPromise(_0x5e75ff('0x3b'),_0x5e75ff('0x3b'),{'event':_0x5e75ff('0x5a'),'message':_0x1cd0b3['message']},client9002),_0x29b390;return null;})['then'](respondWithResult(_0x2c7194,null))[_0xb6ae04('0x28')](handleError(_0x2c7194,null));},exports['status']=function(_0x270451,_0x4eeabd){const _0x3faf27=_0x6a835a;_0x270451[_0x3faf27('0x4')]['id']&&delete _0x270451[_0x3faf27('0x4')]['id'];let _0x3d157f;return db[_0x3faf27('0x0')]['findOne']({'where':{'id':_0x270451['params']['id']}})[_0x3faf27('0x6c')](handleEntityNotFound(_0x4eeabd,null))[_0x3faf27('0x6c')](function(_0x13f711){const _0x38b17a=_0x3faf27;if(_0x13f711)return _0x3d157f=_0x13f711,db[_0x38b17a('0x72')][_0x38b17a('0x24')]({'where':{'id':_0x13f711[_0x38b17a('0x2a')]}});})[_0x3faf27('0x6c')](handleEntityNotFound(_0x4eeabd,null))[_0x3faf27('0x6c')](function(_0x51d18e){const _0x3f3c7d=_0x3faf27;if(_0x51d18e){logger['debug'](_0x3f3c7d('0x3c'),'status',_0x3f3c7d('0x5d'),_0x51d18e[_0x3f3c7d('0x3f')],util[_0x3f3c7d('0x31')](_0x270451[_0x3f3c7d('0x4')],{'showHidden':![],'depth':null}));switch(_0x51d18e['type']){case _0x3f3c7d('0x34'):if(_0x270451['body'][_0x3f3c7d('0xa')]&&_0x270451[_0x3f3c7d('0x4')]['MessageSid']===_0x3d157f[_0x3f3c7d('0x15')])return _0x3d157f[_0x3f3c7d('0x5')]({'read':!![]});else logger[_0x3f3c7d('0x39')]('SmsAccount,\x20%s,\x20%s,\x20%s',_0x3f3c7d('0x60'),'twilio',util['inspect'](_0x270451['body'],{'showHidden':![],'depth':null}));break;case _0x3f3c7d('0x3'):if(_0x270451[_0x3f3c7d('0x4')][_0x3f3c7d('0x62')]&&_0x270451[_0x3f3c7d('0x4')]['MessageUUID']===_0x3d157f[_0x3f3c7d('0x15')]&&_['indexOf']([_0x3f3c7d('0x6a'),_0x3f3c7d('0x48')],_0x270451[_0x3f3c7d('0x4')]['Status'])>=0x0)return _0x3d157f[_0x3f3c7d('0x5')]({'read':!![]});else logger[_0x3f3c7d('0x39')](_0x3f3c7d('0x41'),'status',_0x3f3c7d('0x1b'),util[_0x3f3c7d('0x31')](_0x270451['body'],{'showHidden':![],'depth':null}));break;case _0x3f3c7d('0x58'):{const _0x3958ce=_0x270451['body']['results'][0x0];if(_0x3958ce[_0x3f3c7d('0x60')][_0x3f3c7d('0x5e')]==='DELIVERED')return _0x3d157f[_0x3f3c7d('0x5')]({'read':!![]});else logger[_0x3f3c7d('0x39')](_0x3f3c7d('0x41'),_0x3f3c7d('0x60'),_0x3f3c7d('0x58'),util[_0x3f3c7d('0x31')](_0x270451[_0x3f3c7d('0x4')],{'showHidden':![],'depth':null}));}break;}return _0x3d157f;}})['then'](respondWithResult(_0x4eeabd,null))[_0x3faf27('0x28')](handleError(_0x4eeabd,null));}; \ No newline at end of file +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 diff --git a/server/api/smsMessage/smsMessage.events.js b/server/api/smsMessage/smsMessage.events.js index 480f8b9..a240448 100644 --- a/server/api/smsMessage/smsMessage.events.js +++ b/server/api/smsMessage/smsMessage.events.js @@ -1 +1 @@ -const a561_0x4d31=['remove','exports','../../mysqldb','emit','update','undefined','save','setMaxListeners','events'];(function(_0x5b00a3,_0x4d315c){const _0x514f31=function(_0x5ed3e5){while(--_0x5ed3e5){_0x5b00a3['push'](_0x5b00a3['shift']());}};_0x514f31(++_0x4d315c);}(a561_0x4d31,0x198));const a561_0x514f=function(_0x5b00a3,_0x4d315c){_0x5b00a3=_0x5b00a3-0x0;let _0x514f31=a561_0x4d31[_0x5b00a3];return _0x514f31;};const _0x14d39e=a561_0x514f;'use strict';const EventEmitter=require(_0x14d39e('0x5')),SmsMessage=require(_0x14d39e('0x8'))['db']['SmsMessage'],SmsMessageEvents=new EventEmitter();SmsMessageEvents[_0x14d39e('0x4')](0x0);const events={'afterCreate':_0x14d39e('0x3'),'afterUpdate':_0x14d39e('0x1'),'afterDestroy':_0x14d39e('0x6')};function emitEvent(_0x5ed3e5){return function(_0x250f8a){const _0x1e61f5=a561_0x514f;SmsMessageEvents[_0x1e61f5('0x0')](_0x5ed3e5+':'+_0x250f8a['id'],_0x250f8a),SmsMessageEvents[_0x1e61f5('0x0')](_0x5ed3e5,_0x250f8a);};}for(const e in events){if(typeof events[e]!==_0x14d39e('0x2')){const event=events[e];SmsMessage['addHook'](e,emitEvent(event));}}module[_0x14d39e('0x7')]=SmsMessageEvents; \ No newline at end of file +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 diff --git a/server/api/smsMessage/smsMessage.model.js b/server/api/smsMessage/smsMessage.model.js index 45c3e08..349d26e 100644 --- a/server/api/smsMessage/smsMessage.model.js +++ b/server/api/smsMessage/smsMessage.model.js @@ -1 +1 @@ -const a562_0x5e5f=['csc','https://api.intelepeer.com/_rest/v4/app/sms/send','&password=','head','password','smsMethod','Missing\x20parameters:\x20base_url','then','message_uuid','uuid','GET','Bearer\x20','%s:%s','finally','signature=','/sms/2/text/advanced','afterCreate','secret','UTF-8','connectel','md5','refid','apiMessageId','code','SmsInteraction','hex','api','twilio','createHash','login','error','remote','define','phone','messageId','clickSend','SmsInteractionId','toLowerCase','sort','message','direction','FULLTEXT','infobip','fti_sms_messages','clickatell','SmsMessage,\x20%s,\x20%s,\x20%s','Missing\x20parameters:\x20authId,\x20authToken','user_key','create','accountSid','Token\x20not\x20received','SmsAccountId','plivo','baseUrl','toString','inspect','POST','application/json','utf8mb4','status','http_code','catch','length','session_key','skebby','keys','/api/sms/messages/','findOne','exports','IBSSO\x20','https://smsapi.connectel.se/api/v2/send/','util','https://platform.clickatell.com/messages','Missing\x20parameters:\x20apiKey','request-promise-native','base64','authId','senderString','deliveryReport','format','update','Missing\x20parameters:\x20username,\x20password','username','split','type','isNil','createdAt','sid','authToken','messages','text','total_sent','sender','Missing\x20parameters:\x20authToken','body','read','https://api.intelepeer.com/_rest/v4/app/sms/mdr','./smsMessage.attributes','message_id','/external/get/send.php?','from','SmsAccount','clicksend','token','SmsMessage','requestid','data','sms','crypto','models','/auth/1/session','intelepeer','internal_order_id','apiKey','queued_count','/status?token='];(function(_0x57b50e,_0x5e5fa9){const _0xffd3e=function(_0x4c0601){while(--_0x4c0601){_0x57b50e['push'](_0x57b50e['shift']());}};_0xffd3e(++_0x5e5fa9);}(a562_0x5e5f,0x1a4));const a562_0xffd3=function(_0x57b50e,_0x5e5fa9){_0x57b50e=_0x57b50e-0x0;let _0xffd3e=a562_0x5e5f[_0x57b50e];return _0xffd3e;};const _0x3c0e93=a562_0xffd3;'use strict';const _=require('lodash'),util=require(_0x3c0e93('0x73')),logger=require('../../config/logger')(_0x3c0e93('0x46')),rp=require(_0x3c0e93('0x2')),attributes=require(_0x3c0e93('0x19'));module[_0x3c0e93('0x70')]=function(_0x4c0601){const _0x4b5819=_0x3c0e93,_0x896cde=_0x4c0601[_0x4b5819('0x25')],_0x25de29=_0x4c0601[_0x4b5819('0x4c')](_0x4b5819('0x20'),attributes,{'tableName':'sms_messages','paranoid':![],'indexes':[{'name':_0x4b5819('0x4e'),'fields':[_0x4b5819('0x4e')]},{'name':_0x4b5819('0x57'),'fields':[_0x4b5819('0x16')],'type':_0x4b5819('0x55')}],'timestamps':!![],'hooks':{'afterCreate':function(_0x569e8a){const _0x2d35ef=_0x4b5819,_0x2a235c=_0x569e8a['get']({'plain':!![]});(_0x2a235c[_0x2d35ef('0x54')][_0x2d35ef('0x51')]()==='in'||_0x2a235c[_0x2d35ef('0x54')][_0x2d35ef('0x51')]()==='out'&&!_0x2a235c[_0x2d35ef('0x3d')]&&!_[_0x2d35ef('0xd')](_0x2a235c['UserId']))&&_0x896cde[_0x2d35ef('0x44')][_0x2d35ef('0x6f')]({'where':{'id':_0x2a235c[_0x2d35ef('0x50')]}})[_0x2d35ef('0x33')](function(_0x52edbb){const _0x4bca15=_0x2d35ef;_0x52edbb&&_0x52edbb[_0x4bca15('0x8')]({'lastMsgAt':_0x2a235c[_0x4bca15('0xe')],'lastMsgDirection':_0x2a235c[_0x4bca15('0x54')][_0x4bca15('0x51')]()});})[_0x2d35ef('0x69')](function(_0x3ec91c){const _0x526b2f=_0x2d35ef;console[_0x526b2f('0x4a')](_0x3ec91c);});if(_0x2a235c[_0x2d35ef('0x54')]==='out'&&!_0x2a235c[_0x2d35ef('0x3d')]){let _0x48dad4;_0x896cde[_0x2d35ef('0x1d')]['findOne']({'where':{'id':_0x2a235c[_0x2d35ef('0x5f')]},'raw':!![]})[_0x2d35ef('0x33')](function(_0x4058c4){const _0x3a7d1e=_0x2d35ef;_0x48dad4=_0x4058c4;if(_0x48dad4&&_0x48dad4[_0x3a7d1e('0xc')])switch(_0x48dad4[_0x3a7d1e('0xc')]){case _0x3a7d1e('0x47'):{const _0x381c45=require(_0x3a7d1e('0x47'));if(_0x48dad4[_0x3a7d1e('0x5d')]&&_0x48dad4['authToken']&&_0x48dad4[_0x3a7d1e('0x4d')]){const _0x5739cc=new _0x381c45(_0x48dad4[_0x3a7d1e('0x5d')],_0x48dad4[_0x3a7d1e('0x10')]);_0x5739cc[_0x3a7d1e('0x11')][_0x3a7d1e('0x5c')]({'body':_0x2a235c['body'],'to':_0x2a235c[_0x3a7d1e('0x4d')],'from':_0x48dad4['phone'],'statusCallback':_0x48dad4[_0x3a7d1e('0x4b')]+_0x3a7d1e('0x6e')+_0x2a235c['id']+_0x3a7d1e('0x2b')+_0x48dad4[_0x3a7d1e('0x1f')]})['then'](function(_0x3ccf20){const _0x5ca234=_0x3a7d1e;if(_0x3ccf20['sid'])return _0x569e8a['update']({'messageId':_0x3ccf20[_0x5ca234('0xf')]});})[_0x3a7d1e('0x69')](function(_0x18ebd2){const _0x27cc14=_0x3a7d1e;logger[_0x27cc14('0x4a')]('SmsMessage,\x20%s,\x20%s,\x20%s','afterCreate',_0x27cc14('0x47'),util['inspect'](_0x18ebd2,{'showHidden':![],'depth':null}));});}else logger['error'](_0x3a7d1e('0x59'),_0x3a7d1e('0x3c'),_0x3a7d1e('0x47'),'Missing\x20parameters:\x20phone,\x20accountSid\x20or\x20authToken');break;}case'skebby':{const _0x9b94ff='https://api.skebby.it/API/v1.0/REST/';if(_0x48dad4[_0x3a7d1e('0xa')]&&_0x48dad4[_0x3a7d1e('0x30')]){const _0x81c7cf={'recipient':[_0x2a235c[_0x3a7d1e('0x4d')]],'message':_0x2a235c[_0x3a7d1e('0x16')],'message_type':_0x48dad4[_0x3a7d1e('0x31')]};_0x48dad4['smsMethod']&&_0x48dad4[_0x3a7d1e('0x31')]!=='SI'&&(_0x81c7cf['sender']=_0x48dad4[_0x3a7d1e('0x4d')]);let _0x3f008e={'url':_0x9b94ff+'login?username='+_0x48dad4[_0x3a7d1e('0xa')]+_0x3a7d1e('0x2e')+_0x48dad4[_0x3a7d1e('0x30')],'method':_0x3a7d1e('0x36')};rp(_0x3f008e)[_0x3a7d1e('0x33')](function(_0xd11c7a){const _0x41edb7=_0x3a7d1e,_0x31ffca=_0xd11c7a[_0x41edb7('0xb')](';'),_0x24cc8a={'user_key':_0x31ffca[0x0],'session_key':_0x31ffca[0x1]};return _0x3f008e={'url':_0x9b94ff+_0x41edb7('0x23'),'method':_0x41edb7('0x64'),'headers':{'user_key':_0x24cc8a[_0x41edb7('0x5b')],'Session_key':_0x24cc8a[_0x41edb7('0x6b')]},'json':!![],'body':_0x81c7cf},rp(_0x3f008e);})[_0x3a7d1e('0x33')](function(_0x198d2e){const _0x4a3dde=_0x3a7d1e;if(_0x198d2e[_0x4a3dde('0x13')]>=0x1){const _0x1522cb={'messageId':_0x198d2e[_0x4a3dde('0x28')]};return(_0x48dad4[_0x4a3dde('0x31')]!=='GP'||!_0x48dad4['deliveryReport'])&&(_0x1522cb[_0x4a3dde('0x17')]=!![]),_0x569e8a[_0x4a3dde('0x8')](_0x1522cb);}else return logger[_0x4a3dde('0x4a')](_0x4a3dde('0x59'),_0x4a3dde('0x3c'),_0x4a3dde('0x6c'),util['inspect'](_0x198d2e,{'showHidden':![],'depth':null}));})[_0x3a7d1e('0x69')](function(_0x125a6c){const _0x2a707d=_0x3a7d1e;return logger[_0x2a707d('0x4a')](_0x2a707d('0x59'),_0x2a707d('0x3c'),_0x2a707d('0x6c'),util[_0x2a707d('0x63')](_0x125a6c,{'showHidden':![],'depth':null}));});}else logger['error'](_0x3a7d1e('0x59'),_0x3a7d1e('0x3c'),_0x3a7d1e('0x6c'),_0x3a7d1e('0x9'));break;}case _0x3a7d1e('0x3f'):{if(_0x48dad4[_0x3a7d1e('0x10')]){const _0x46877a={'recipient':_0x2a235c[_0x3a7d1e('0x4d')],'message':_0x2a235c[_0x3a7d1e('0x16')],'sender':_0x48dad4[_0x3a7d1e('0x5')]||_0x48dad4[_0x3a7d1e('0x4d')],'authorization':_0x48dad4[_0x3a7d1e('0x10')]},_0x2a2847={'method':_0x3a7d1e('0x64'),'uri':_0x3a7d1e('0x72'),'body':_0x46877a,'json':!![]};rp(_0x2a2847)['then'](function(_0x3d5658){const _0x565f45=_0x3a7d1e,_0x38e80a={'messageId':_0x3d5658[_0x565f45('0x21')]};return!_0x48dad4['deliveryReport']&&(_0x38e80a['read']=!![]),_0x569e8a[_0x565f45('0x8')](_0x38e80a);})[_0x3a7d1e('0x69')](function(_0x411a4c){const _0x56f32a=_0x3a7d1e;logger['error'](_0x56f32a('0x59'),'afterCreate',_0x56f32a('0x3f'),util[_0x56f32a('0x63')](_0x411a4c,{'showHidden':![],'depth':null}));});}else logger[_0x3a7d1e('0x4a')]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x3a7d1e('0x3c'),_0x3a7d1e('0x3f'),_0x3a7d1e('0x15'));break;}case _0x3a7d1e('0x1e'):{if(_0x48dad4[_0x3a7d1e('0xa')]&&_0x48dad4[_0x3a7d1e('0x30')]){const _0x5f3ee4={'messages':[{'source':'xCALLY\x20Motion','to':_0x2a235c[_0x3a7d1e('0x4d')],'body':_0x2a235c[_0x3a7d1e('0x16')],'from':_0x48dad4[_0x3a7d1e('0x5')]||_0x48dad4[_0x3a7d1e('0x4d')]}]},_0x230932=util['format'](_0x3a7d1e('0x38'),_0x48dad4[_0x3a7d1e('0xa')],_0x48dad4[_0x3a7d1e('0x30')]),_0x16d4fb={'method':_0x3a7d1e('0x64'),'uri':'https://rest.clicksend.com/v3/sms/send','body':_0x5f3ee4,'headers':{'Authorization':util[_0x3a7d1e('0x7')]('Basic\x20%s',Buffer[_0x3a7d1e('0x1c')](_0x230932)[_0x3a7d1e('0x62')]('base64'))},'json':!![]};rp(_0x16d4fb)['then'](function(_0x1d7c63){const _0x3fb7d1=_0x3a7d1e;if(_0x1d7c63[_0x3fb7d1('0x68')]>=0xc8&&_0x1d7c63[_0x3fb7d1('0x68')]<=0xce){if(_0x1d7c63[_0x3fb7d1('0x22')]&&_0x1d7c63[_0x3fb7d1('0x22')][_0x3fb7d1('0x2a')]>0x0){const _0x340efa=_[_0x3fb7d1('0x2f')](_0x1d7c63[_0x3fb7d1('0x22')][_0x3fb7d1('0x11')]),_0xf9ff3={'messageId':_0x340efa[_0x3fb7d1('0x1a')]};return!_0x48dad4['deliveryReport']&&(_0xf9ff3[_0x3fb7d1('0x17')]=!![]),_0x569e8a[_0x3fb7d1('0x8')](_0xf9ff3);}else logger[_0x3fb7d1('0x4a')](_0x3fb7d1('0x59'),_0x3fb7d1('0x3c'),_0x3fb7d1('0x4f'),util[_0x3fb7d1('0x63')](_0x1d7c63,{'showHidden':![],'depth':null}));}else logger[_0x3fb7d1('0x4a')](_0x3fb7d1('0x59'),_0x3fb7d1('0x3c'),_0x3fb7d1('0x4f'),util[_0x3fb7d1('0x63')](_0x1d7c63,{'showHidden':![],'depth':null}));})[_0x3a7d1e('0x69')](function(_0x1b9038){const _0x55dbe5=_0x3a7d1e;logger['error']('SmsMessage,\x20%s,\x20%s,\x20%s',_0x55dbe5('0x3c'),'clickSend',util[_0x55dbe5('0x63')](_0x1b9038,{'showHidden':![],'depth':null}));});}else logger[_0x3a7d1e('0x4a')]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x3a7d1e('0x3c'),_0x3a7d1e('0x4f'),'Missing\x20parameters:\x20username,\x20password');break;}case _0x3a7d1e('0x60'):{if(_0x48dad4[_0x3a7d1e('0x4')]&&_0x48dad4[_0x3a7d1e('0x10')]){const _0x5e876d={'dst':_0x2a235c[_0x3a7d1e('0x4d')],'text':_0x2a235c['body'],'src':_0x48dad4['senderString']||_0x48dad4[_0x3a7d1e('0x4d')],'url':_0x48dad4['remote']+_0x3a7d1e('0x6e')+_0x2a235c['id']+'/status?token='+_0x48dad4[_0x3a7d1e('0x1f')]},_0x3ee45d=util[_0x3a7d1e('0x7')]('%s:%s',_0x48dad4[_0x3a7d1e('0x4')],_0x48dad4[_0x3a7d1e('0x10')]),_0x1e7fde={'method':'POST','uri':util['format']('https://api.plivo.com/v1/Account/%s/Message/',_0x48dad4[_0x3a7d1e('0x4')]),'body':_0x5e876d,'headers':{'Authorization':util[_0x3a7d1e('0x7')]('Basic\x20%s',Buffer['from'](_0x3ee45d)[_0x3a7d1e('0x62')](_0x3a7d1e('0x3')))},'json':!![]};rp(_0x1e7fde)['then'](function(_0x466aa3){const _0x9e72a7=_0x3a7d1e,_0x4015a9={'messageId':_0x466aa3[_0x9e72a7('0x34')][0x0]};return _0x569e8a[_0x9e72a7('0x8')](_0x4015a9);})[_0x3a7d1e('0x69')](function(_0x582527){const _0x2e34e5=_0x3a7d1e;logger[_0x2e34e5('0x4a')](_0x2e34e5('0x59'),_0x2e34e5('0x3c'),_0x2e34e5('0x60'),util[_0x2e34e5('0x63')](_0x582527,{'showHidden':![],'depth':null}));});}else logger[_0x3a7d1e('0x4a')](_0x3a7d1e('0x59'),_0x3a7d1e('0x3c'),_0x3a7d1e('0x60'),_0x3a7d1e('0x5a'));break;}case'infobip':{if(_0x48dad4[_0x3a7d1e('0xa')]&&_0x48dad4['password']){if(_0x48dad4[_0x3a7d1e('0x61')]){const _0x150248={'method':_0x3a7d1e('0x64'),'uri':_0x48dad4['baseUrl']+_0x3a7d1e('0x26'),'body':{'username':_0x48dad4[_0x3a7d1e('0xa')],'password':_0x48dad4[_0x3a7d1e('0x30')]},'json':!![]};return rp(_0x150248)[_0x3a7d1e('0x33')](function(_0x437ed8){const _0x375720=_0x3a7d1e,_0x1b7301={'method':_0x375720('0x64'),'uri':_0x48dad4[_0x375720('0x61')]+_0x375720('0x3b'),'body':{'messages':[{'from':_0x48dad4['phone'],'destinations':[{'to':_0x2a235c['phone']}],'text':_0x2a235c[_0x375720('0x16')],'notifyUrl':_0x48dad4['remote']+_0x375720('0x6e')+_0x2a235c['id']+_0x375720('0x2b')+_0x48dad4[_0x375720('0x1f')],'notifyContentType':_0x375720('0x65'),'callbackData':_0x48dad4[_0x375720('0x4d')]+';'+_0x2a235c['body']}]},'headers':{'Authorization':_0x375720('0x71')+_0x437ed8[_0x375720('0x1f')]},'json':!![]};return rp(_0x1b7301)[_0x375720('0x33')](function(_0x3c1f19){const _0x42c37a=_0x375720;if(_0x3c1f19[_0x42c37a('0x11')]){const _0x553dfc={'messageId':_0x3c1f19[_0x42c37a('0x11')][0x0][_0x42c37a('0x4e')]};return!_0x48dad4['deliveryReport']&&(_0x553dfc['read']=!![]),_0x569e8a[_0x42c37a('0x8')](_0x553dfc);}else return logger[_0x42c37a('0x4a')]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x42c37a('0x3c'),_0x42c37a('0x56'),util[_0x42c37a('0x63')](_0x3c1f19,{'showHidden':![],'depth':null}));});})[_0x3a7d1e('0x69')](function(_0x2c039a){const _0x2a2538=_0x3a7d1e;return logger[_0x2a2538('0x4a')](_0x2a2538('0x59'),_0x2a2538('0x3c'),_0x2a2538('0x56'),util[_0x2a2538('0x63')](_0x2c039a,{'showHidden':![],'depth':null}));});}else logger[_0x3a7d1e('0x4a')]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x3a7d1e('0x3c'),_0x3a7d1e('0x56'),_0x3a7d1e('0x32'));}else logger[_0x3a7d1e('0x4a')](_0x3a7d1e('0x59'),_0x3a7d1e('0x3c'),_0x3a7d1e('0x56'),'Missing\x20parameters:\x20username,\x20password');break;}case'csc':{const _0x5f136a=require(_0x3a7d1e('0x24'));if(_0x48dad4[_0x3a7d1e('0x29')]){const _0x3af9b4={};_0x3af9b4[_0x3a7d1e('0x49')]=_0x48dad4[_0x3a7d1e('0xa')],_0x3af9b4[_0x3a7d1e('0x4d')]=_0x2a235c[_0x3a7d1e('0x4d')],_0x3af9b4[_0x3a7d1e('0x14')]=_0x48dad4[_0x3a7d1e('0x4d')],_0x3af9b4[_0x3a7d1e('0x12')]=_0x2a235c[_0x3a7d1e('0x16')],_0x3af9b4['timestamp']=+new Date();let _0x396353='',_0x3aa779='';const _0x396bb1=Object[_0x3a7d1e('0x6d')](_0x3af9b4);_0x396bb1[_0x3a7d1e('0x52')]();for(let _0x56bbee=0x0;_0x56bbee<_0x396bb1[_0x3a7d1e('0x6a')];_0x56bbee++){_0x396353!=''&&(_0x396353+='&'),_0x396353+=_0x396bb1[_0x56bbee]+'='+encodeURIComponent(_0x3af9b4[_0x396bb1[_0x56bbee]]),_0x3aa779+=_0x3af9b4[_0x396bb1[_0x56bbee]];}_0x3aa779+=_0x48dad4[_0x3a7d1e('0x29')],_0x3aa779=_0x5f136a[_0x3a7d1e('0x48')](_0x3a7d1e('0x40'))[_0x3a7d1e('0x8')](_0x3aa779)['digest'](_0x3a7d1e('0x45'));_0x396353!==''&&(_0x396353+='&');_0x396353+=_0x3a7d1e('0x3a')+_0x3aa779;const _0x42588b={'method':_0x3a7d1e('0x36'),'uri':_0x48dad4[_0x3a7d1e('0x61')]+_0x3a7d1e('0x1b')+_0x396353,'json':!![]};return rp(_0x42588b)[_0x3a7d1e('0x33')](function(_0x3631c3){const _0x6d9335=_0x3a7d1e,_0x288aa5=Object['keys'](_0x3631c3);if(_0x3631c3[_0x288aa5[0x0]][_0x6d9335('0x4a')]&&parseInt(_0x3631c3[_0x288aa5[0x0]]['error'])===0x0){const _0x571809={'messageId':_0x3631c3[_0x288aa5[0x0]]['id_sms']};return!_0x48dad4[_0x6d9335('0x6')]&&(_0x571809['read']=!![]),_0x569e8a['update'](_0x571809);}else return logger['error'](_0x6d9335('0x59'),'afterCreate',_0x6d9335('0x2c'),util[_0x6d9335('0x63')](_0x3631c3[_0x6d9335('0x4a')],{'showHidden':![],'depth':null}));})[_0x3a7d1e('0x69')](function(_0x297bf5){const _0x1af4b9=_0x3a7d1e;return logger[_0x1af4b9('0x4a')](_0x1af4b9('0x59'),_0x1af4b9('0x3c'),_0x1af4b9('0x2c'),util[_0x1af4b9('0x63')](_0x297bf5,{'showHidden':![],'depth':null}));});}else logger[_0x3a7d1e('0x4a')](_0x3a7d1e('0x59'),_0x3a7d1e('0x3c'),_0x3a7d1e('0x2c'),'Missing\x20parameters:\x20apiKey');break;}case'clickatell':{if(_0x48dad4[_0x3a7d1e('0x29')]){const _0x609c={'method':'POST','uri':_0x3a7d1e('0x0'),'headers':{'Authorization':_0x48dad4['apiKey']},'body':{'content':_0x2a235c['body'],'to':[_0x2a235c[_0x3a7d1e('0x4d')]],'from':_0x48dad4[_0x3a7d1e('0x4d')],'binary':![],'clientMessageId':_0x3a7d1e('0x35'),'charset':_0x3a7d1e('0x3e')},'json':!![]};rp(_0x609c)['then'](function(_0x1ac8f6){const _0x25ac5c=_0x3a7d1e;if(!_0x1ac8f6['error']){const _0x183012={'messageId':_0x1ac8f6[_0x25ac5c('0x11')][0x0][_0x25ac5c('0x42')]};return!_0x48dad4[_0x25ac5c('0x6')]&&(_0x183012[_0x25ac5c('0x17')]=!![]),_0x569e8a['update'](_0x183012);}else return logger[_0x25ac5c('0x4a')](_0x25ac5c('0x59'),_0x25ac5c('0x3c'),_0x25ac5c('0x58'),util['inspect'](_0x1ac8f6['error'],{'showHidden':![],'depth':null}));})[_0x3a7d1e('0x69')](function(_0x3f4fa8){const _0x179f5a=_0x3a7d1e;return logger[_0x179f5a('0x4a')](_0x179f5a('0x59'),_0x179f5a('0x3c'),_0x179f5a('0x58'),util[_0x179f5a('0x63')](_0x3f4fa8,{'showHidden':![],'depth':null}));});}else logger[_0x3a7d1e('0x4a')]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x3a7d1e('0x3c'),_0x3a7d1e('0x58'),_0x3a7d1e('0x1'));break;}case _0x3a7d1e('0x27'):if(_0x48dad4[_0x3a7d1e('0x29')]){const _0x45e4b0={},_0x52202c={'method':'POST','uri':_0x3a7d1e('0x2d'),'headers':{'Authorization':'Bearer\x20'+_0x48dad4[_0x3a7d1e('0x29')],'Content-Type':_0x3a7d1e('0x65')},'body':{'from':_0x48dad4['phone'],'to':_0x2a235c['phone'],'text':_0x2a235c[_0x3a7d1e('0x16')]},'json':!![]};return rp(_0x52202c)[_0x3a7d1e('0x33')](function(_0x14700f){const _0x23498c=_0x3a7d1e;if(_0x14700f[_0x23498c('0x43')]==0xca){_0x45e4b0[_0x23498c('0x53')]=_0x14700f;const _0x35bc4e={'method':_0x23498c('0x64'),'uri':_0x23498c('0x18'),'headers':{'Authorization':_0x23498c('0x37')+_0x48dad4[_0x23498c('0x29')],'Content-Type':_0x23498c('0x65')},'body':{'refid':_0x45e4b0[_0x23498c('0x53')][_0x23498c('0x41')]},'json':!![]};return rp(_0x35bc4e)['then'](function(_0x562332){const _0x44f4d9=_0x23498c;_0x45e4b0[_0x44f4d9('0x67')]=_0x562332;const _0x5f411f={'messageId':_0x45e4b0[_0x44f4d9('0x53')]['refid'],'read':!![]};return _0x569e8a['update'](_0x5f411f);});}else return logger[_0x23498c('0x4a')]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x23498c('0x3c'),_0x23498c('0x27'),util[_0x23498c('0x63')](_0x14700f,{'showHidden':![],'depth':null}));})['catch'](function(_0x279602){const _0x2ca324=_0x3a7d1e;return logger[_0x2ca324('0x4a')](_0x2ca324('0x59'),_0x2ca324('0x3c'),'intelepeer',util[_0x2ca324('0x63')](_0x279602,{'showHidden':![],'depth':null}));});}else return logger[_0x3a7d1e('0x4a')](_0x3a7d1e('0x59'),_0x3a7d1e('0x3c'),_0x3a7d1e('0x27'),_0x3a7d1e('0x5e'));}})[_0x2d35ef('0x39')](function(){return null;});}else return null;}},'charset':_0x4b5819('0x66'),'collate':'utf8mb4_unicode_ci'});return _0x25de29;}; \ No newline at end of file +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 diff --git a/server/api/smsMessage/smsMessage.rpc.js b/server/api/smsMessage/smsMessage.rpc.js index af00516..2b2780f 100644 --- a/server/api/smsMessage/smsMessage.rpc.js +++ b/server/api/smsMessage/smsMessage.rpc.js @@ -1 +1 @@ -const a563_0x1a46=['info','../../rediscache','raw','then','body','./smsMessage.socket','error','create','CreateSmsMessage','options','stringify','debug','register','message','rpc'];(function(_0x41d7f3,_0x1a46cf){const _0x276925=function(_0x264df9){while(--_0x264df9){_0x41d7f3['push'](_0x41d7f3['shift']());}};_0x276925(++_0x1a46cf);}(a563_0x1a46,0x11a));const a563_0x2769=function(_0x41d7f3,_0x1a46cf){_0x41d7f3=_0x41d7f3-0x0;let _0x276925=a563_0x1a46[_0x41d7f3];return _0x276925;};const _0x29a5d7=a563_0x2769;'use strict';const db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x29a5d7('0x2')),{getSocket}=require(_0x29a5d7('0x4')),socket=getSocket();require(_0x29a5d7('0x8'))[_0x29a5d7('0x0')](socket),exports['CreateSmsMessage']=function(_0x264df9){const _0x8683e0=this;return new Promise(function(_0x1cdf1a,_0x5e5d4a){const _0x112e3b=a563_0x2769;return db['SmsMessage'][_0x112e3b('0xa')](_0x264df9[_0x112e3b('0x7')],{'raw':_0x264df9[_0x112e3b('0xc')]?_0x264df9['options'][_0x112e3b('0x5')]===undefined?!![]:![]:!![]})[_0x112e3b('0x6')](function(_0x41306b){const _0x295d19=_0x112e3b;logger[_0x295d19('0x3')](_0x295d19('0xb'),_0x264df9),logger[_0x295d19('0xe')](_0x295d19('0xb'),_0x264df9,JSON[_0x295d19('0xd')](_0x41306b)),_0x1cdf1a(_0x41306b);})['catch'](function(_0x13d03e){const _0x29c550=_0x112e3b;logger[_0x29c550('0x9')](_0x29c550('0xb'),_0x13d03e[_0x29c550('0x1')],_0x264df9),_0x5e5d4a(_0x8683e0[_0x29c550('0x9')](0x1f4,_0x13d03e[_0x29c550('0x1')]));});});}; \ No newline at end of file +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 diff --git a/server/api/smsMessage/smsMessage.socket.js b/server/api/smsMessage/smsMessage.socket.js index 0123613..88a86e9 100644 --- a/server/api/smsMessage/smsMessage.socket.js +++ b/server/api/smsMessage/smsMessage.socket.js @@ -1 +1 @@ -const a564_0x5172=['length','./smsMessage.events','register','smsMessage:','remove'];(function(_0x3c85a7,_0x51723d){const _0x15ca52=function(_0x1ec62c){while(--_0x1ec62c){_0x3c85a7['push'](_0x3c85a7['shift']());}};_0x15ca52(++_0x51723d);}(a564_0x5172,0x187));const a564_0x15ca=function(_0x3c85a7,_0x51723d){_0x3c85a7=_0x3c85a7-0x0;let _0x15ca52=a564_0x5172[_0x3c85a7];return _0x15ca52;};const _0x55ad2a=a564_0x15ca;'use strict';const SmsMessageEvents=require(_0x55ad2a('0x0')),events=['save',_0x55ad2a('0x3'),'update'];function createListener(_0x1ec62c,_0x91b9a9){return function(_0x19c933){_0x91b9a9['emit'](_0x1ec62c,_0x19c933);};}exports[_0x55ad2a('0x1')]=function(_0x1fc276){const _0x3042ef=_0x55ad2a;for(let _0x2aba9d=0x0,_0x455110=events[_0x3042ef('0x4')];_0x2aba9d<_0x455110;_0x2aba9d++){const _0x5417f6=events[_0x2aba9d],_0x1fd00a=createListener(_0x3042ef('0x2')+_0x5417f6,_0x1fc276);SmsMessageEvents['on'](_0x5417f6,_0x1fd00a);}}; \ No newline at end of file +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 diff --git a/server/api/smsQueue/index.js b/server/api/smsQueue/index.js index cd62edd..7a7749e 100644 --- a/server/api/smsQueue/index.js +++ b/server/api/smsQueue/index.js @@ -1 +1 @@ -const a565_0x48ef=['removeTeams','getAgents','post','./smsQueue.controller','isAuthenticated','delete','Router','../../components/auth/service','getTeams','exports','addTeams','/describe','destroy','addAgents','/:id','/:id/members','put','/:id/teams','removeAgents','getMembers','show','get','create','/:id/users'];(function(_0x1b6337,_0x48ef32){const _0x422c26=function(_0x5f3f50){while(--_0x5f3f50){_0x1b6337['push'](_0x1b6337['shift']());}};_0x422c26(++_0x48ef32);}(a565_0x48ef,0x158));const a565_0x422c=function(_0x1b6337,_0x48ef32){_0x1b6337=_0x1b6337-0x0;let _0x422c26=a565_0x48ef[_0x1b6337];return _0x422c26;};const _0x584c09=a565_0x422c;'use strict';const express=require('express'),router=express[_0x584c09('0x16')](),auth=require(_0x584c09('0x17')),controller=require(_0x584c09('0x13'));router[_0x584c09('0xd')]('/',auth[_0x584c09('0x14')](),controller['index']),router[_0x584c09('0xd')](_0x584c09('0x3'),auth[_0x584c09('0x14')](),controller['describe']),router[_0x584c09('0xd')](_0x584c09('0x6'),auth[_0x584c09('0x14')](),controller[_0x584c09('0xc')]),router[_0x584c09('0xd')](_0x584c09('0x7'),auth[_0x584c09('0x14')](),controller[_0x584c09('0xb')]),router['get'](_0x584c09('0x9'),auth[_0x584c09('0x14')](),controller[_0x584c09('0x0')]),router[_0x584c09('0xd')](_0x584c09('0xf'),auth[_0x584c09('0x14')](),controller[_0x584c09('0x11')]),router[_0x584c09('0x12')]('/',auth['isAuthenticated'](),controller[_0x584c09('0xe')]),router[_0x584c09('0x12')]('/:id/teams',auth['isAuthenticated'](),controller[_0x584c09('0x2')]),router[_0x584c09('0x12')]('/:id/users',auth[_0x584c09('0x14')](),controller[_0x584c09('0x5')]),router[_0x584c09('0x8')](_0x584c09('0x6'),auth[_0x584c09('0x14')](),controller['update']),router[_0x584c09('0x15')](_0x584c09('0x6'),auth['isAuthenticated'](),controller[_0x584c09('0x4')]),router['delete']('/:id/teams',auth['isAuthenticated'](),controller[_0x584c09('0x10')]),router[_0x584c09('0x15')](_0x584c09('0xf'),auth['isAuthenticated'](),controller[_0x584c09('0xa')]),module[_0x584c09('0x1')]=router; \ No newline at end of file +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 diff --git a/server/api/smsQueue/smsQueue.attributes.js b/server/api/smsQueue/smsQueue.attributes.js index 00f122f..624e0ad 100644 --- a/server/api/smsQueue/smsQueue.attributes.js +++ b/server/api/smsQueue/smsQueue.attributes.js @@ -1 +1 @@ -const a566_0x3b75=['exports','rrmemory','ENUM','STRING','roundrobin','sequelize','name'];(function(_0x178d09,_0x3b7561){const _0x558434=function(_0x32455e){while(--_0x32455e){_0x178d09['push'](_0x178d09['shift']());}};_0x558434(++_0x3b7561);}(a566_0x3b75,0x13e));const a566_0x5584=function(_0x178d09,_0x3b7561){_0x178d09=_0x178d09-0x0;let _0x558434=a566_0x3b75[_0x178d09];return _0x558434;};const _0x1d30a8=a566_0x5584;'use strict';const Sequelize=require(_0x1d30a8('0x2'));module[_0x1d30a8('0x4')]={'name':{'type':Sequelize['STRING'],'unique':_0x1d30a8('0x3'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x1d30a8('0x0')]},'timeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x1d30a8('0x6')](_0x1d30a8('0x5'),'beepall',_0x1d30a8('0x1'))}}; \ No newline at end of file +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 diff --git a/server/api/smsQueue/smsQueue.controller.js b/server/api/smsQueue/smsQueue.controller.js index bf34c7b..d5f00b2 100644 --- a/server/api/smsQueue/smsQueue.controller.js +++ b/server/api/smsQueue/smsQueue.controller.js @@ -1 +1 @@ -const a567_0x3aa2=['limit','transaction','end','json','toString','select','isEmpty','api','SmsQueueId\x20=\x20?','undefined','register','rawAttributes','addAgents','Agents','format','name','index','includeAll','pick','updatedAt','findOne','SELECT','userSmsQueue:remove','sequelize','userSmsQueue:save','keys','map','update','UserProfileSection','findAll','forEach','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','query','UserId','clone','getAgents','describe','User','SmsQueue','where','findAndCountAll','filters','removeAgents','offset','online','intersection','fieldName','each','count','nolimit','autoAssociation','show','addTeams','body','all','options','send','sendStatus','Team','include','createdAt','push','TeamId','sort','Content-Range','from','team_has_sms_queues','type','compact','interface','agent','catch','create','removeTeams','user_has_teams','fields','ut.TeamId\x20=\x20tq.TeamId','squel','flatMap','userProfileId','like','stack','UserSmsQueue','util','findOrCreate','user','emit','length','attributes','get','filter','model','value','status','SmsQueues','Unable\x20to\x20retrieve\x20the\x20current\x20user','includes','../../components/parsers/qs','destroy','key','merge','role','join','error','../../rediscache','then','UserProfileResource','ids','params','set','rows','order','smsPause'];(function(_0x59fa05,_0x3aa204){const _0x4f134d=function(_0x4fdf45){while(--_0x4fdf45){_0x59fa05['push'](_0x59fa05['shift']());}};_0x4f134d(++_0x3aa204);}(a567_0x3aa2,0x1af));const a567_0x4f13=function(_0x59fa05,_0x3aa204){_0x59fa05=_0x59fa05-0x0;let _0x4f134d=a567_0x3aa2[_0x59fa05];return _0x4f134d;};const _0x4157f1=a567_0x4f13;'use strict';const util=require(_0x4157f1('0x68')),_=require('lodash'),squel=require(_0x4157f1('0x62')),qs=require(_0x4157f1('0x5')),logger=require('../../config/logger')(_0x4157f1('0x1c')),{getSocket}=require(_0x4157f1('0xc')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op}=require(_0x4157f1('0x2c'));require('./smsQueue.socket')[_0x4157f1('0x1f')](socket);function respondWithStatusCode(_0x4fdf45,_0x4f6c7d){return _0x4f6c7d=_0x4f6c7d||0xcc,function(_0x5ba427){const _0xff474d=a567_0x4f13;if(_0x5ba427)return _0x4fdf45[_0xff474d('0x4e')](_0x4f6c7d);return _0x4fdf45[_0xff474d('0x1')](_0x4f6c7d)[_0xff474d('0x17')]();};}function respondWithResult(_0x502db1,_0x1d99da){return _0x1d99da=_0x1d99da||0xc8,function(_0x39413c){const _0x20074e=a567_0x4f13;if(_0x39413c)return _0x502db1[_0x20074e('0x1')](_0x1d99da)[_0x20074e('0x18')](_0x39413c);};}function respondWithFilteredResult(_0x24ae20,_0x2537e0){return function(_0x238202){const _0x1fc815=a567_0x4f13;if(_0x238202){const _0x2f6cbf=_0x238202[_0x1fc815('0x45')],_0x300060=_0x2537e0[_0x1fc815('0x40')];let _0x55e3c4=_0x2537e0['offset']+_0x2537e0['limit'],_0x4fa684;return _0x55e3c4>=_0x2f6cbf?(_0x55e3c4=_0x2f6cbf,_0x4fa684=0xc8):_0x4fa684=0xce,_0x24ae20[_0x1fc815('0x1')](_0x4fa684),_0x24ae20[_0x1fc815('0x11')](_0x1fc815('0x55'),_0x300060+'-'+_0x55e3c4+'/'+_0x2f6cbf)[_0x1fc815('0x18')](_0x238202);}return null;};}function saveUpdates(_0x44b38e){return function(_0x54dbc5){const _0x43cdcf=a567_0x4f13;if(_0x54dbc5)return _0x54dbc5['update'](_0x44b38e)[_0x43cdcf('0xd')](function(_0xdbfec8){return _0xdbfec8;});return null;};}function removeEntity(_0x5c2dd5){return function(_0x38e2ef){const _0x367cae=a567_0x4f13;if(_0x38e2ef)return _0x38e2ef[_0x367cae('0x6')]()[_0x367cae('0xd')](function(){const _0x334c44=_0x367cae,_0x51f2b7=_0x38e2ef[_0x334c44('0x6e')]({'plain':!![]}),_0x1cf8d4=_0x334c44('0x2');return db[_0x334c44('0xe')][_0x334c44('0x6')]({'where':{'type':_0x1cf8d4,'resourceId':_0x51f2b7['id']}})[_0x334c44('0xd')](function(){return _0x38e2ef;});})[_0x367cae('0xd')](function(){const _0x2c69f1=_0x367cae;_0x5c2dd5['status'](0xcc)[_0x2c69f1('0x17')]();});};}function handleEntityNotFound(_0x138c02){return function(_0x2368dd){const _0x181854=a567_0x4f13;return!_0x2368dd&&_0x138c02[_0x181854('0x4e')](0x194),_0x2368dd;};}function handleError(_0x22abda,_0x71cb44){return _0x71cb44=_0x71cb44||0x1f4,function(_0x3aa9be){const _0x2f3e51=a567_0x4f13;logger[_0x2f3e51('0xb')](_0x3aa9be[_0x2f3e51('0x66')]),_0x3aa9be[_0x2f3e51('0x24')]&&delete _0x3aa9be[_0x2f3e51('0x24')],_0x22abda[_0x2f3e51('0x1')](_0x71cb44)[_0x2f3e51('0x4d')](_0x3aa9be);};}exports[_0x4157f1('0x25')]=function(_0xd2355c,_0x499506){const _0x1e7fac=_0x4157f1;let _0x53aee1={};const _0x28ebb9={},_0x5b34fe={'count':0x0,'rows':[]},_0x1b8c03=_['map'](db[_0x1e7fac('0x3b')][_0x1e7fac('0x20')],function(_0x41a3e1){const _0x485259=_0x1e7fac;return{'name':_0x41a3e1[_0x485259('0x43')],'type':_0x41a3e1[_0x485259('0x58')][_0x485259('0x7')]};});_0x28ebb9[_0x1e7fac('0x70')]=_['map'](_0x1b8c03,'name'),_0x28ebb9['query']=_[_0x1e7fac('0x2e')](_0xd2355c[_0x1e7fac('0x35')]),_0x28ebb9['filters']=_[_0x1e7fac('0x42')](_0x28ebb9[_0x1e7fac('0x70')],_0x28ebb9[_0x1e7fac('0x35')]),_0x53aee1[_0x1e7fac('0x6d')]=_[_0x1e7fac('0x42')](_0x28ebb9[_0x1e7fac('0x70')],qs['fields'](_0xd2355c['query'][_0x1e7fac('0x60')])),_0x53aee1[_0x1e7fac('0x6d')]=_0x53aee1[_0x1e7fac('0x6d')][_0x1e7fac('0x6c')]?_0x53aee1[_0x1e7fac('0x6d')]:_0x28ebb9[_0x1e7fac('0x70')];typeof _0xd2355c[_0x1e7fac('0x35')][_0x1e7fac('0x46')]===_0x1e7fac('0x1e')&&(_0x53aee1[_0x1e7fac('0x15')]=qs[_0x1e7fac('0x15')](_0xd2355c['query'][_0x1e7fac('0x15')]),_0x53aee1[_0x1e7fac('0x40')]=qs[_0x1e7fac('0x40')](_0xd2355c[_0x1e7fac('0x35')][_0x1e7fac('0x40')]));_0x53aee1[_0x1e7fac('0x13')]=qs['sort'](_0xd2355c['query'][_0x1e7fac('0x54')]),_0x53aee1[_0x1e7fac('0x3c')]=qs['filters'](_[_0x1e7fac('0x27')](_0xd2355c[_0x1e7fac('0x35')],_0x28ebb9['filters']),_0x1b8c03);_0xd2355c[_0x1e7fac('0x35')][_0x1e7fac('0x6f')]&&(_0x53aee1['where']=_[_0x1e7fac('0x8')](_0x53aee1['where'],{[Op['or']]:_[_0x1e7fac('0x2f')](_0x1b8c03,function(_0x1d65bc){const _0x2d7387=_0x1e7fac;if(_0x1d65bc[_0x2d7387('0x58')]!=='VIRTUAL'){const _0x32646e={};return _0x32646e[_0x1d65bc['name']]={[Op[_0x2d7387('0x65')]]:'%'+_0xd2355c[_0x2d7387('0x35')][_0x2d7387('0x6f')]+'%'},_0x32646e;}})}));_0x53aee1=_[_0x1e7fac('0x8')]({},_0x53aee1,_0xd2355c[_0x1e7fac('0x4c')]);const _0x2c8121={'where':_0x53aee1[_0x1e7fac('0x3c')]};return db['SmsQueue'][_0x1e7fac('0x45')](_0x2c8121)[_0x1e7fac('0xd')](function(_0x56a808){const _0x1fb95f=_0x1e7fac;return _0x5b34fe[_0x1fb95f('0x45')]=_0x56a808,_0xd2355c[_0x1fb95f('0x35')][_0x1fb95f('0x26')]&&(_0x53aee1[_0x1fb95f('0x50')]=[{'all':!![]}]),db[_0x1fb95f('0x3b')][_0x1fb95f('0x32')](_0x53aee1);})[_0x1e7fac('0xd')](function(_0x1e131d){const _0x4b98ea=_0x1e7fac;return _0x5b34fe[_0x4b98ea('0x12')]=_0x1e131d,_0x5b34fe;})['then'](respondWithFilteredResult(_0x499506,_0x53aee1))[_0x1e7fac('0x5c')](handleError(_0x499506,null));},exports[_0x4157f1('0x48')]=function(_0x1e3e9f,_0xbefe3b){const _0x5a5db0=_0x4157f1;let _0x3e62ef={'raw':!![],'where':{'id':_0x1e3e9f['params']['id']}};const _0x43be04={};return _0x43be04[_0x5a5db0('0x70')]=_[_0x5a5db0('0x2e')](db[_0x5a5db0('0x3b')]['rawAttributes']),_0x43be04[_0x5a5db0('0x35')]=_[_0x5a5db0('0x2e')](_0x1e3e9f[_0x5a5db0('0x35')]),_0x43be04[_0x5a5db0('0x3e')]=_['intersection'](_0x43be04[_0x5a5db0('0x70')],_0x43be04[_0x5a5db0('0x35')]),_0x3e62ef[_0x5a5db0('0x6d')]=_['intersection'](_0x43be04['model'],qs[_0x5a5db0('0x60')](_0x1e3e9f['query'][_0x5a5db0('0x60')])),_0x3e62ef[_0x5a5db0('0x6d')]=_0x3e62ef[_0x5a5db0('0x6d')][_0x5a5db0('0x6c')]?_0x3e62ef['attributes']:_0x43be04[_0x5a5db0('0x70')],_0x1e3e9f['query'][_0x5a5db0('0x26')]&&(_0x3e62ef[_0x5a5db0('0x50')]=[{'all':!![]}]),_0x3e62ef=_[_0x5a5db0('0x8')]({},_0x3e62ef,_0x1e3e9f[_0x5a5db0('0x4c')]),db[_0x5a5db0('0x3b')]['findOne'](_0x3e62ef)['then'](handleEntityNotFound(_0xbefe3b,null))['then'](respondWithResult(_0xbefe3b,null))[_0x5a5db0('0x5c')](handleError(_0xbefe3b,null));},exports[_0x4157f1('0x5d')]=function(_0x7d6fd5,_0x1bdf0d){const _0x1a6781=_0x4157f1;return db[_0x1a6781('0x3b')][_0x1a6781('0x5d')](_0x7d6fd5[_0x1a6781('0x4a')],{})[_0x1a6781('0xd')](function(_0x43f6d4){const _0x22d4dc=_0x1a6781,_0x2a59d0=_0x7d6fd5[_0x22d4dc('0x6a')]['get']({'plain':!![]});if(!_0x2a59d0)throw new Error(_0x22d4dc('0x3'));if(_0x2a59d0[_0x22d4dc('0x9')]===_0x22d4dc('0x6a')){const _0xa23aa8=_0x43f6d4[_0x22d4dc('0x6e')]({'plain':!![]}),_0x7bbf6a=_0x22d4dc('0x2');return db[_0x22d4dc('0x31')][_0x22d4dc('0x29')]({'where':{'name':_0x7bbf6a,'userProfileId':_0x2a59d0[_0x22d4dc('0x64')]},'raw':!![]})[_0x22d4dc('0xd')](function(_0xd9d875){const _0x15363f=_0x22d4dc;return _0xd9d875&&_0xd9d875[_0x15363f('0x47')]===0x0?db['UserProfileResource'][_0x15363f('0x5d')]({'name':_0xa23aa8[_0x15363f('0x24')],'resourceId':_0xa23aa8['id'],'type':_0xd9d875[_0x15363f('0x24')],'sectionId':_0xd9d875['id']},{})[_0x15363f('0xd')](function(){return _0x43f6d4;}):_0x43f6d4;})[_0x22d4dc('0x5c')](function(_0x125220){const _0x1c97a9=_0x22d4dc;logger[_0x1c97a9('0xb')](_0x1c97a9('0x34'),_0x125220);throw _0x125220;});}return _0x43f6d4;})[_0x1a6781('0xd')](respondWithResult(_0x1bdf0d,0xc9))[_0x1a6781('0x5c')](handleError(_0x1bdf0d,null));},exports[_0x4157f1('0x30')]=function(_0x212aea,_0x3fe42c){const _0x32a1eb=_0x4157f1;return _0x212aea[_0x32a1eb('0x4a')]['id']&&delete _0x212aea['body']['id'],db[_0x32a1eb('0x3b')][_0x32a1eb('0x29')]({'where':{'id':_0x212aea[_0x32a1eb('0x10')]['id']}})[_0x32a1eb('0xd')](handleEntityNotFound(_0x3fe42c,null))[_0x32a1eb('0xd')](saveUpdates(_0x212aea[_0x32a1eb('0x4a')],null))[_0x32a1eb('0xd')](respondWithResult(_0x3fe42c,null))[_0x32a1eb('0x5c')](handleError(_0x3fe42c,null));},exports[_0x4157f1('0x6')]=function(_0xf0e32b,_0x3a489c){const _0x2e0509=_0x4157f1;return db[_0x2e0509('0x3b')][_0x2e0509('0x29')]({'where':{'id':_0xf0e32b[_0x2e0509('0x10')]['id']}})[_0x2e0509('0xd')](handleEntityNotFound(_0x3a489c,null))[_0x2e0509('0xd')](removeEntity(_0x3a489c,null))[_0x2e0509('0x5c')](handleError(_0x3a489c,null));},exports[_0x4157f1('0x39')]=function(_0x375acb,_0x4f4dde){const _0x53f934=_0x4157f1;return db[_0x53f934('0x3b')][_0x53f934('0x39')]()['then'](respondWithResult(_0x4f4dde,null))[_0x53f934('0x5c')](handleError(_0x4f4dde,null));},exports['getMembers']=function(_0x3039d4,_0x2ba1e1){const _0x22fb1e=_0x4157f1;let _0x5bf2cd={'raw':!![],'where':{}};const _0x1127d0={};let _0x187305;return db[_0x22fb1e('0x3b')][_0x22fb1e('0x29')]({'where':{'id':_0x3039d4['params']['id']}})['then'](handleEntityNotFound(_0x2ba1e1,null))['then'](function(_0x51fb43){const _0x1752f7=_0x22fb1e;if(_0x51fb43)return _0x187305=_0x51fb43[_0x1752f7('0x6e')]({'plain':!![]}),_0x1127d0[_0x1752f7('0x70')]=_['keys'](db[_0x1752f7('0x67')][_0x1752f7('0x20')]),_0x1127d0[_0x1752f7('0x35')]=_[_0x1752f7('0x2e')](_0x3039d4[_0x1752f7('0x35')]),_0x1127d0[_0x1752f7('0x3e')]=_[_0x1752f7('0x42')](_0x1127d0[_0x1752f7('0x70')],_0x1127d0[_0x1752f7('0x35')]),_0x5bf2cd[_0x1752f7('0x6d')]=_[_0x1752f7('0x42')](_0x1127d0[_0x1752f7('0x70')],qs['fields'](_0x3039d4[_0x1752f7('0x35')][_0x1752f7('0x60')])),_0x5bf2cd[_0x1752f7('0x6d')]=_0x5bf2cd[_0x1752f7('0x6d')][_0x1752f7('0x6c')]?_0x5bf2cd['attributes']:_0x1127d0['model'],typeof _0x3039d4[_0x1752f7('0x35')]['nolimit']===_0x1752f7('0x1e')&&(_0x5bf2cd['limit']=qs[_0x1752f7('0x15')](_0x3039d4['query'][_0x1752f7('0x15')]),_0x5bf2cd[_0x1752f7('0x40')]=qs['offset'](_0x3039d4['query'][_0x1752f7('0x40')])),_0x5bf2cd['order']=qs[_0x1752f7('0x54')](_0x3039d4[_0x1752f7('0x35')]['sort']),_0x5bf2cd[_0x1752f7('0x3c')]=qs[_0x1752f7('0x3e')](_[_0x1752f7('0x27')](_0x3039d4[_0x1752f7('0x35')],_0x1127d0[_0x1752f7('0x3e')])),_0x5bf2cd[_0x1752f7('0x3c')]['SmsQueueId']=_0x51fb43['id'],_0x3039d4['query'][_0x1752f7('0x6f')]&&(_0x5bf2cd[_0x1752f7('0x3c')]=_[_0x1752f7('0x8')](_0x5bf2cd['where'],{[Op['or']]:_['map'](_0x5bf2cd['attributes'],function(_0x256b8b){const _0x4fb8cf=_0x1752f7,_0xeb1660={};return _0xeb1660[_0x256b8b]={[Op['like']]:'%'+_0x3039d4[_0x4fb8cf('0x35')]['filter']+'%'},_0xeb1660;})})),_0x5bf2cd=_['merge']({},_0x5bf2cd,_0x3039d4[_0x1752f7('0x4c')]),db[_0x1752f7('0x67')][_0x1752f7('0x32')](_0x5bf2cd);})[_0x22fb1e('0xd')](function(_0x2e62dd){const _0x26628f=_0x22fb1e;if(_0x2e62dd)return db[_0x26628f('0x3a')][_0x26628f('0x3d')]({'where':{'id':_[_0x26628f('0x2f')](_0x2e62dd,_0x26628f('0x36')),'role':_0x26628f('0x5b')},'attributes':['id',_0x26628f('0x24'),_0x26628f('0x14'),'updatedAt',_0x26628f('0x51')]});})[_0x22fb1e('0xd')](function(_0x50d7d3){const _0x11bcaa=_0x22fb1e;return _0x50d7d3?{'count':_0x50d7d3[_0x11bcaa('0x45')],'rows':_[_0x11bcaa('0x2f')](_0x50d7d3['rows'],function(_0x5f0779){const _0x7495a2=_0x11bcaa;return{'membername':_0x5f0779[_0x7495a2('0x24')],'UserId':_0x5f0779['id'],'queue_name':_0x187305['name'],'SmsQueueId':_0x187305['id'],'interface':util[_0x7495a2('0x23')]('%s/%s','SIP',_0x5f0779[_0x7495a2('0x24')]),'penalty':0x0,'paused':_0x5f0779['smsPause'],'createdAt':_0x5f0779[_0x7495a2('0x51')],'updatedAt':_0x5f0779[_0x7495a2('0x28')]};})}:{'count':0x0,'rows':[]};})[_0x22fb1e('0xd')](respondWithFilteredResult(_0x2ba1e1,_0x5bf2cd))[_0x22fb1e('0x5c')](handleError(_0x2ba1e1,null));},exports['getTeams']=function(_0x5accec,_0x4652d7){const _0x27d0a7=_0x4157f1;let _0x3c0e36={};const _0x1701cc={};let _0x1aeee0,_0x5eb873;return db['SmsQueue'][_0x27d0a7('0x29')]({'where':{'id':_0x5accec['params']['id']}})[_0x27d0a7('0xd')](handleEntityNotFound(_0x4652d7,null))[_0x27d0a7('0xd')](function(_0x4db945){const _0x19446f=_0x27d0a7;if(_0x4db945)return _0x1aeee0=_0x4db945,_0x1701cc['model']=_['keys'](db[_0x19446f('0x4f')][_0x19446f('0x20')]),_0x1701cc[_0x19446f('0x35')]=_['keys'](_0x5accec[_0x19446f('0x35')]),_0x1701cc[_0x19446f('0x3e')]=_['intersection'](_0x1701cc['model'],_0x1701cc[_0x19446f('0x35')]),_0x3c0e36[_0x19446f('0x6d')]=_[_0x19446f('0x42')](_0x1701cc[_0x19446f('0x70')],qs[_0x19446f('0x60')](_0x5accec['query'][_0x19446f('0x60')])),_0x3c0e36['attributes']=_0x3c0e36['attributes'][_0x19446f('0x6c')]?_0x3c0e36[_0x19446f('0x6d')]:_0x1701cc['model'],_0x3c0e36['order']=qs[_0x19446f('0x54')](_0x5accec[_0x19446f('0x35')]['sort']),_0x3c0e36[_0x19446f('0x3c')]=qs[_0x19446f('0x3e')](_[_0x19446f('0x27')](_0x5accec['query'],_0x1701cc['filters'])),_0x5accec['query'][_0x19446f('0x6f')]&&(_0x3c0e36[_0x19446f('0x3c')]=_['merge'](_0x3c0e36[_0x19446f('0x3c')],{[Op['or']]:_[_0x19446f('0x2f')](_0x3c0e36['attributes'],function(_0x4b0659){const _0x59f2db=_0x19446f,_0x58dc7b={};return _0x58dc7b[_0x4b0659]={[Op[_0x59f2db('0x65')]]:'%'+_0x5accec[_0x59f2db('0x35')]['filter']+'%'},_0x58dc7b;})})),_0x3c0e36=_[_0x19446f('0x8')]({},_0x3c0e36,_0x5accec[_0x19446f('0x4c')]),_0x1aeee0['getTeams'](_0x3c0e36);})[_0x27d0a7('0xd')](function(_0x2bdefe){const _0x3fb6d1=_0x27d0a7;if(_0x2bdefe)return _0x5eb873=_0x2bdefe['length'],typeof _0x5accec[_0x3fb6d1('0x35')][_0x3fb6d1('0x46')]==='undefined'&&(_0x3c0e36[_0x3fb6d1('0x15')]=qs[_0x3fb6d1('0x15')](_0x5accec['query'][_0x3fb6d1('0x15')]),_0x3c0e36[_0x3fb6d1('0x40')]=qs[_0x3fb6d1('0x40')](_0x5accec['query'][_0x3fb6d1('0x40')])),_0x1aeee0['getTeams'](_0x3c0e36);})[_0x27d0a7('0xd')](function(_0x17534f){if(_0x17534f)return _0x17534f?{'count':_0x5eb873,'rows':_0x17534f}:null;})[_0x27d0a7('0xd')](respondWithResult(_0x4652d7,null))['catch'](handleError(_0x4652d7,null));},exports[_0x4157f1('0x49')]=function(_0x266e86,_0x492634){const _0x36f87c=_0x4157f1,_0x31c936=_0x266e86[_0x36f87c('0x4a')][_0x36f87c('0xf')];return db[_0x36f87c('0x4f')][_0x36f87c('0x32')]({'where':{'id':_0x31c936},'attributes':['id'],'include':[{'model':db['User'],'as':_0x36f87c('0x22'),'attributes':['id',_0x36f87c('0x24'),_0x36f87c('0x41'),'voicePause',_0x36f87c('0x5a')],'raw':!![]}]})['then'](function(_0x4b8ac8){const _0x378676=_0x36f87c;if(_0x4b8ac8){const _0x5632a8=_[_0x378676('0x63')](_0x4b8ac8,function(_0x1a57ca){const _0x3e7d1f=_0x378676,_0x2a4dcd=_0x1a57ca['get']({'plain':!![]});return _0x2a4dcd[_0x3e7d1f('0x22')];});return db[_0x378676('0x3b')][_0x378676('0x29')]({'where':{'id':_0x266e86[_0x378676('0x10')]['id']}})[_0x378676('0xd')](function(_0x2717d5){const _0x5e1a14=_0x378676;return db['sequelize'][_0x5e1a14('0x16')](function(_0xba4c97){const _0x4660a8=_0x5e1a14;return _0x2717d5[_0x4660a8('0x49')](_0x31c936,{'transaction':_0xba4c97})[_0x4660a8('0xd')](function(){const _0x1e661b=_0x4660a8;return Promise[_0x1e661b('0x44')](_0x5632a8,function(_0x5975ce){const _0x504e7e=_0x1e661b;return db[_0x504e7e('0x67')][_0x504e7e('0x69')]({'where':{'UserId':_0x5975ce['id'],'SmsQueueId':_0x266e86[_0x504e7e('0x10')]['id']},'transaction':_0xba4c97});});})[_0x4660a8('0xd')](function(){const _0x1d156c=_0x4660a8;_0x5632a8[_0x1d156c('0x33')](function(_0x5a2d62){const _0x173c38=_0x1d156c;socket['emit'](_0x173c38('0x2d'),{'UserId':_0x5a2d62['id'],'SmsQueueId':_0x2717d5['id']});});});});});}})[_0x36f87c('0xd')](respondWithStatusCode(_0x492634,null))[_0x36f87c('0x5c')](handleError(_0x492634,null));},exports[_0x4157f1('0x5e')]=function(_0x81f6f6,_0x388728){const _0x20bb9b=_0x4157f1;return db[_0x20bb9b('0x4f')][_0x20bb9b('0x32')]({'where':{'id':_0x81f6f6[_0x20bb9b('0x35')][_0x20bb9b('0xf')]},'attributes':['id'],'include':[{'model':db[_0x20bb9b('0x3a')],'as':'Agents','attributes':['id'],'raw':!![]}]})[_0x20bb9b('0xd')](handleEntityNotFound(_0x388728,null))[_0x20bb9b('0xd')](function(_0x4d7815){const _0x28e5da=_0x20bb9b,_0x58ae89=_[_0x28e5da('0x2f')](_0x4d7815,'id');let _0x1a3f10=[];const _0x235043=[],_0x4c5a6a=squel[_0x28e5da('0x1a')]();_0x4c5a6a['field']('tq.TeamId')[_0x28e5da('0x56')](_0x28e5da('0x57'),'tq')[_0x28e5da('0xa')](_0x28e5da('0x5f'),'ut',_0x28e5da('0x61'))['where'](_0x28e5da('0x1d'),_0x81f6f6['params']['id']);for(let _0x129a60=0x0;_0x129a60<_0x4d7815['length'];_0x129a60+=0x1){const _0x276920=_0x4d7815[_0x129a60];for(let _0x313772=0x0;_0x313772<_0x276920['Agents']['length'];_0x313772+=0x1){const _0x30e916=_0x276920[_0x28e5da('0x22')][_0x313772],_0x583862=_0x4c5a6a[_0x28e5da('0x37')]();_0x583862[_0x28e5da('0x3c')]('ut.UserId\x20=\x20?',_0x30e916['id']),_0x235043[_0x28e5da('0x52')](db[_0x28e5da('0x2c')][_0x28e5da('0x35')](_0x583862[_0x28e5da('0x19')](),{'type':db[_0x28e5da('0x2c')]['QueryTypes'][_0x28e5da('0x2a')]})[_0x28e5da('0xd')](function(_0x126e69){const _0x333f97=_0x28e5da;if(_0x126e69[_0x333f97('0x6c')]===0x1)return _0x30e916['id'];else{const _0x14b59b=_['every'](_[_0x333f97('0x2f')](_0x126e69,_0x333f97('0x53')),function(_0x2843db){const _0x4bdad2=_0x333f97;return _[_0x4bdad2('0x4')](_0x58ae89,_0x2843db);});if(_0x14b59b)return _0x30e916['id'];}}));}}return Promise[_0x28e5da('0x4b')](_0x235043)['then'](function(_0x588e34){const _0x18710f=_0x28e5da;return _0x1a3f10=_(_0x1a3f10)['union'](_0x588e34)[_0x18710f('0x59')]()[_0x18710f('0x0')](),db['SmsQueue'][_0x18710f('0x29')]({'where':{'id':_0x81f6f6[_0x18710f('0x10')]['id']}})[_0x18710f('0xd')](function(_0x36234f){const _0xb1f046=_0x18710f;return db[_0xb1f046('0x2c')][_0xb1f046('0x16')](function(_0x438e6b){const _0x5e9417=_0xb1f046;return _0x36234f[_0x5e9417('0x5e')](_0x81f6f6[_0x5e9417('0x35')][_0x5e9417('0xf')],{'transaction':_0x438e6b})[_0x5e9417('0xd')](function(){const _0x413a38=_0x5e9417;if(!_[_0x413a38('0x1b')](_0x1a3f10))return _0x36234f['removeAgents'](_0x1a3f10,{'transaction':_0x438e6b});})[_0x5e9417('0xd')](function(){const _0x15445d=_0x5e9417;_0x1a3f10[_0x15445d('0x33')](function(_0x3e9e4e){const _0x2a0826=_0x15445d;socket[_0x2a0826('0x6b')]('userSmsQueue:remove',{'UserId':_0x3e9e4e,'SmsQueueId':_0x36234f['id']});});});});});});})[_0x20bb9b('0xd')](respondWithStatusCode(_0x388728,null))['catch'](handleError(_0x388728,null));},exports['addAgents']=function(_0x22a2c2,_0x5c7041){const _0x45e520=_0x4157f1;return db[_0x45e520('0x3b')][_0x45e520('0x29')]({'where':{'id':_0x22a2c2[_0x45e520('0x10')]['id']}})[_0x45e520('0xd')](function(_0x5ae40c){const _0x39bd80=_0x45e520;if(_0x5ae40c)return _0x5ae40c[_0x39bd80('0x21')](_0x22a2c2[_0x39bd80('0x4a')][_0x39bd80('0xf')],{'through':_['omit'](_0x22a2c2[_0x39bd80('0x4a')],[_0x39bd80('0xf'),'id'])})['then'](function(_0x4a5aa3){const _0x10d422=_0x39bd80;for(let _0x41f033=0x0;_0x41f033<_0x22a2c2[_0x10d422('0x4a')]['ids'][_0x10d422('0x6c')];_0x41f033+=0x1){socket[_0x10d422('0x6b')](_0x10d422('0x2d'),{'UserId':_0x22a2c2[_0x10d422('0x4a')][_0x10d422('0xf')][_0x41f033],'SmsQueueId':_0x22a2c2[_0x10d422('0x10')]['id']});}return _0x4a5aa3;});})['then'](respondWithResult(_0x5c7041,null))[_0x45e520('0x5c')](handleError(_0x5c7041,null));},exports[_0x4157f1('0x3f')]=function(_0x3db537,_0x2c4769){const _0x589440=_0x4157f1;return db[_0x589440('0x3b')][_0x589440('0x29')]({'where':{'id':_0x3db537[_0x589440('0x10')]['id']}})[_0x589440('0xd')](handleEntityNotFound(_0x2c4769,null))[_0x589440('0xd')](function(_0x5699e2){const _0x1d89aa=_0x589440;if(_0x5699e2)return _0x5699e2[_0x1d89aa('0x3f')](_0x3db537['query'][_0x1d89aa('0xf')])[_0x1d89aa('0xd')](function(){const _0x5d9780=_0x1d89aa;if(_['isArray'](_0x3db537[_0x5d9780('0x35')][_0x5d9780('0xf')]))for(let _0x329e0a=0x0;_0x329e0a<_0x3db537['query']['ids'][_0x5d9780('0x6c')];_0x329e0a+=0x1){socket['emit']('userSmsQueue:remove',{'UserId':Number(_0x3db537[_0x5d9780('0x35')]['ids'][_0x329e0a]),'SmsQueueId':Number(_0x3db537[_0x5d9780('0x10')]['id'])});}else socket[_0x5d9780('0x6b')](_0x5d9780('0x2b'),{'UserId':Number(_0x3db537[_0x5d9780('0x35')][_0x5d9780('0xf')]),'SmsQueueId':Number(_0x3db537[_0x5d9780('0x10')]['id'])});});})[_0x589440('0xd')](respondWithStatusCode(_0x2c4769,null))[_0x589440('0x5c')](handleError(_0x2c4769,null));},exports[_0x4157f1('0x38')]=function(_0x4794d6,_0x239b2d){const _0x9a9492=_0x4157f1;let _0x3e2c23={};const _0x72b20c={};let _0x69e289,_0x4fb3a4;return db[_0x9a9492('0x3b')][_0x9a9492('0x29')]({'where':{'id':_0x4794d6[_0x9a9492('0x10')]['id']}})['then'](handleEntityNotFound(_0x239b2d,null))['then'](function(_0x5a3dcb){const _0x260d60=_0x9a9492;if(_0x5a3dcb)return _0x69e289=_0x5a3dcb,_0x72b20c[_0x260d60('0x70')]=_[_0x260d60('0x2e')](db[_0x260d60('0x3a')][_0x260d60('0x20')]),_0x72b20c[_0x260d60('0x35')]=_[_0x260d60('0x2e')](_0x4794d6[_0x260d60('0x35')]),_0x72b20c['filters']=_['intersection'](_0x72b20c[_0x260d60('0x70')],_0x72b20c[_0x260d60('0x35')]),_0x3e2c23[_0x260d60('0x6d')]=_[_0x260d60('0x42')](_0x72b20c[_0x260d60('0x70')],qs['fields'](_0x4794d6[_0x260d60('0x35')][_0x260d60('0x60')])),_0x3e2c23[_0x260d60('0x6d')]=_0x3e2c23[_0x260d60('0x6d')][_0x260d60('0x6c')]?_0x3e2c23[_0x260d60('0x6d')]:_0x72b20c[_0x260d60('0x70')],_0x3e2c23[_0x260d60('0x13')]=qs[_0x260d60('0x54')](_0x4794d6[_0x260d60('0x35')][_0x260d60('0x54')]),_0x3e2c23[_0x260d60('0x3c')]=qs['filters'](_['pick'](_0x4794d6[_0x260d60('0x35')],_0x72b20c[_0x260d60('0x3e')])),_0x4794d6['query'][_0x260d60('0x6f')]&&(_0x3e2c23[_0x260d60('0x3c')]=_['merge'](_0x3e2c23['where'],{[Op['or']]:_[_0x260d60('0x2f')](_0x3e2c23[_0x260d60('0x6d')],function(_0x5139fc){const _0x38f2ee=_0x260d60,_0x8277d0={};return _0x8277d0[_0x5139fc]={[Op['like']]:'%'+_0x4794d6[_0x38f2ee('0x35')][_0x38f2ee('0x6f')]+'%'},_0x8277d0;})})),_0x3e2c23=_[_0x260d60('0x8')]({},_0x3e2c23,_0x4794d6[_0x260d60('0x4c')]),_0x69e289[_0x260d60('0x38')](_0x3e2c23);})['then'](function(_0x40ed63){const _0x18af6a=_0x9a9492;if(_0x40ed63)return _0x4fb3a4=_0x40ed63[_0x18af6a('0x6c')],typeof _0x4794d6[_0x18af6a('0x35')][_0x18af6a('0x46')]===_0x18af6a('0x1e')&&(_0x3e2c23[_0x18af6a('0x15')]=qs[_0x18af6a('0x15')](_0x4794d6[_0x18af6a('0x35')][_0x18af6a('0x15')]),_0x3e2c23[_0x18af6a('0x40')]=qs[_0x18af6a('0x40')](_0x4794d6['query'][_0x18af6a('0x40')])),_0x69e289[_0x18af6a('0x38')](_0x3e2c23);})[_0x9a9492('0xd')](function(_0x380ac4){if(_0x380ac4)return _0x380ac4?{'count':_0x4fb3a4,'rows':_0x380ac4}:null;})[_0x9a9492('0xd')](respondWithResult(_0x239b2d,null))[_0x9a9492('0x5c')](handleError(_0x239b2d,null));}; \ No newline at end of file +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 diff --git a/server/api/smsQueue/smsQueue.events.js b/server/api/smsQueue/smsQueue.events.js index c565a77..798a84d 100644 --- a/server/api/smsQueue/smsQueue.events.js +++ b/server/api/smsQueue/smsQueue.events.js @@ -1 +1 @@ -const a568_0x3ea3=['SmsQueue','remove','../../mysqldb','emit','setMaxListeners','undefined','addHook','save','exports'];(function(_0x5a4fa7,_0x3ea3a4){const _0x266cb4=function(_0x11a210){while(--_0x11a210){_0x5a4fa7['push'](_0x5a4fa7['shift']());}};_0x266cb4(++_0x3ea3a4);}(a568_0x3ea3,0x160));const a568_0x266c=function(_0x5a4fa7,_0x3ea3a4){_0x5a4fa7=_0x5a4fa7-0x0;let _0x266cb4=a568_0x3ea3[_0x5a4fa7];return _0x266cb4;};const _0x14428d=a568_0x266c;'use strict';const EventEmitter=require('events'),SmsQueue=require(_0x14428d('0x1'))['db'][_0x14428d('0x8')],SmsQueueEvents=new EventEmitter();SmsQueueEvents[_0x14428d('0x3')](0x0);const events={'afterCreate':_0x14428d('0x6'),'afterUpdate':'update','afterDestroy':_0x14428d('0x0')};function emitEvent(_0x11a210){return function(_0x2c0c79){const _0x47dfba=a568_0x266c;SmsQueueEvents[_0x47dfba('0x2')](_0x11a210+':'+_0x2c0c79['id'],_0x2c0c79),SmsQueueEvents[_0x47dfba('0x2')](_0x11a210,_0x2c0c79);};}for(const e in events){if(typeof events[e]!==_0x14428d('0x4')){const event=events[e];SmsQueue[_0x14428d('0x5')](e,emitEvent(event));}}module[_0x14428d('0x7')]=SmsQueueEvents; \ No newline at end of file +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 diff --git a/server/api/smsQueue/smsQueue.model.js b/server/api/smsQueue/smsQueue.model.js index 395279d..c9eda63 100644 --- a/server/api/smsQueue/smsQueue.model.js +++ b/server/api/smsQueue/smsQueue.model.js @@ -1 +1 @@ -const a569_0x5842=['./smsQueue.attributes','sms_queues','SmsQueue','define','exports'];(function(_0x45d2db,_0x5842a8){const _0x17d5b3=function(_0x50ffc){while(--_0x50ffc){_0x45d2db['push'](_0x45d2db['shift']());}};_0x17d5b3(++_0x5842a8);}(a569_0x5842,0x1b1));const a569_0x17d5=function(_0x45d2db,_0x5842a8){_0x45d2db=_0x45d2db-0x0;let _0x17d5b3=a569_0x5842[_0x45d2db];return _0x17d5b3;};const _0x3643e9=a569_0x17d5;'use strict';const attributes=require(_0x3643e9('0x2'));module[_0x3643e9('0x1')]=function(_0x50ffc){const _0x1ad6bc=_0x3643e9,_0x568f83=_0x50ffc[_0x1ad6bc('0x0')](_0x1ad6bc('0x4'),attributes,{'tableName':_0x1ad6bc('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x568f83;}; \ No newline at end of file +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 diff --git a/server/api/smsQueue/smsQueue.rpc.js b/server/api/smsQueue/smsQueue.rpc.js index 3d3f802..b1120e4 100644 --- a/server/api/smsQueue/smsQueue.rpc.js +++ b/server/api/smsQueue/smsQueue.rpc.js @@ -1 +1 @@ -const a570_0xd4e0=['include','debug','../../mysqldb','SmsQueue','lodash','./smsQueue.socket','ShowSmsQueue','rpc','info','GetSmsQueue','attributes','options','findOne','error','stringify','model','findAll','catch','raw','map','then','limit','message'];(function(_0x5b4283,_0xd4e01c){const _0x95dea8=function(_0x25613a){while(--_0x25613a){_0x5b4283['push'](_0x5b4283['shift']());}};_0x95dea8(++_0xd4e01c);}(a570_0xd4e0,0x123));const a570_0x95de=function(_0x5b4283,_0xd4e01c){_0x5b4283=_0x5b4283-0x0;let _0x95dea8=a570_0xd4e0[_0x5b4283];return _0x95dea8;};const _0x5967d6=a570_0x95de;'use strict';const _=require(_0x5967d6('0xc')),db=require(_0x5967d6('0xa'))['db'],logger=require('../../config/logger')(_0x5967d6('0xf')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x5967d6('0xd'))['register'](socket),exports['GetSmsQueue']=function(_0x25613a){const _0x1e8600=this;return new Promise(function(_0xc5e0b8,_0x27b4c2){const _0x24909e=a570_0x95de;return db[_0x24909e('0xb')][_0x24909e('0x1')]({'raw':_0x25613a['options']?_0x25613a[_0x24909e('0x13')][_0x24909e('0x3')]===undefined?!![]:![]:!![],'where':_0x25613a[_0x24909e('0x13')]?_0x25613a[_0x24909e('0x13')]['where']||null:null,'attributes':_0x25613a[_0x24909e('0x13')]?_0x25613a[_0x24909e('0x13')][_0x24909e('0x12')]||null:null,'limit':_0x25613a['options']?_0x25613a['options'][_0x24909e('0x6')]||null:null,'include':_0x25613a[_0x24909e('0x13')]?_0x25613a['options'][_0x24909e('0x8')]?_[_0x24909e('0x4')](_0x25613a[_0x24909e('0x13')][_0x24909e('0x8')],function(_0x62e626){const _0x2106cc=_0x24909e;return{'model':db[_0x62e626[_0x2106cc('0x0')]],'as':_0x62e626['as'],'attributes':_0x62e626[_0x2106cc('0x12')],'include':_0x62e626['include']?_['map'](_0x62e626[_0x2106cc('0x8')],function(_0x5e88c5){const _0x1d3b9f=_0x2106cc;return{'model':db[_0x5e88c5['model']],'as':_0x5e88c5['as'],'attributes':_0x5e88c5[_0x1d3b9f('0x12')],'include':_0x5e88c5['include']?_['map'](_0x5e88c5[_0x1d3b9f('0x8')],function(_0x52ea2a){const _0x25fd34=_0x1d3b9f;return{'model':db[_0x52ea2a[_0x25fd34('0x0')]],'as':_0x52ea2a['as'],'attributes':_0x52ea2a['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x387c95){const _0xc5f509=_0x24909e;logger[_0xc5f509('0x10')](_0xc5f509('0x11'),_0x25613a),logger['debug']('GetSmsQueue',_0x25613a,JSON[_0xc5f509('0x16')](_0x387c95)),_0xc5e0b8(_0x387c95);})['catch'](function(_0x2e7299){const _0x36b6ca=_0x24909e;logger['error'](_0x36b6ca('0x11'),_0x2e7299[_0x36b6ca('0x7')],_0x25613a),_0x27b4c2(_0x1e8600[_0x36b6ca('0x15')](0x1f4,_0x2e7299[_0x36b6ca('0x7')]));});});},exports[_0x5967d6('0xe')]=function(_0x3f13f7){const _0x5e1b39=this;return new Promise(function(_0x19039b,_0x48634a){const _0x4a6ddb=a570_0x95de;return db['SmsQueue'][_0x4a6ddb('0x14')]({'raw':_0x3f13f7[_0x4a6ddb('0x13')]?_0x3f13f7[_0x4a6ddb('0x13')][_0x4a6ddb('0x3')]===undefined?!![]:![]:!![],'where':_0x3f13f7[_0x4a6ddb('0x13')]?_0x3f13f7[_0x4a6ddb('0x13')]['where']||null:null,'attributes':_0x3f13f7[_0x4a6ddb('0x13')]?_0x3f13f7[_0x4a6ddb('0x13')][_0x4a6ddb('0x12')]||null:null,'include':_0x3f13f7['options']?_0x3f13f7[_0x4a6ddb('0x13')]['include']?_[_0x4a6ddb('0x4')](_0x3f13f7[_0x4a6ddb('0x13')]['include'],function(_0x4638fe){const _0x1d12c6=_0x4a6ddb;return{'model':db[_0x4638fe['model']],'as':_0x4638fe['as'],'attributes':_0x4638fe[_0x1d12c6('0x12')],'include':_0x4638fe['include']?_[_0x1d12c6('0x4')](_0x4638fe[_0x1d12c6('0x8')],function(_0x88dd8c){const _0x44aecb=_0x1d12c6;return{'model':db[_0x88dd8c[_0x44aecb('0x0')]],'as':_0x88dd8c['as'],'attributes':_0x88dd8c['attributes'],'include':_0x88dd8c[_0x44aecb('0x8')]?_['map'](_0x88dd8c[_0x44aecb('0x8')],function(_0x21face){const _0x40edb2=_0x44aecb;return{'model':db[_0x21face[_0x40edb2('0x0')]],'as':_0x21face['as'],'attributes':_0x21face[_0x40edb2('0x12')]};}):[]};}):[]};}):[]:[]})[_0x4a6ddb('0x5')](function(_0x3ed412){const _0x5eb0c4=_0x4a6ddb;logger[_0x5eb0c4('0x10')](_0x5eb0c4('0xe'),_0x3f13f7),logger[_0x5eb0c4('0x9')](_0x5eb0c4('0xe'),_0x3f13f7,JSON['stringify'](_0x3ed412)),_0x19039b(_0x3ed412);})[_0x4a6ddb('0x2')](function(_0x489a05){const _0x4a3dbe=_0x4a6ddb;logger[_0x4a3dbe('0x15')](_0x4a3dbe('0xe'),_0x489a05[_0x4a3dbe('0x7')],_0x3f13f7),_0x48634a(_0x5e1b39[_0x4a3dbe('0x15')](0x1f4,_0x489a05[_0x4a3dbe('0x7')]));});});}; \ No newline at end of file +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 diff --git a/server/api/smsQueue/smsQueue.socket.js b/server/api/smsQueue/smsQueue.socket.js index 33b74fc..0de8267 100644 --- a/server/api/smsQueue/smsQueue.socket.js +++ b/server/api/smsQueue/smsQueue.socket.js @@ -1 +1 @@ -const a571_0x37d6=['length','./smsQueue.events','remove','update'];(function(_0x28be00,_0x37d655){const _0x1efb2b=function(_0x3de20d){while(--_0x3de20d){_0x28be00['push'](_0x28be00['shift']());}};_0x1efb2b(++_0x37d655);}(a571_0x37d6,0xa5));const a571_0x1efb=function(_0x28be00,_0x37d655){_0x28be00=_0x28be00-0x0;let _0x1efb2b=a571_0x37d6[_0x28be00];return _0x1efb2b;};const _0x5a3d89=a571_0x1efb;'use strict';const SmsQueueEvents=require(_0x5a3d89('0x0')),events=['save',_0x5a3d89('0x1'),_0x5a3d89('0x2')];function createListener(_0x3de20d,_0x1a89b8){return function(_0x2a3d92){_0x1a89b8['emit'](_0x3de20d,_0x2a3d92);};}exports['register']=function(_0x148804){const _0x493194=_0x5a3d89;for(let _0x3925f7=0x0,_0x4e9660=events[_0x493194('0x3')];_0x3925f7<_0x4e9660;_0x3925f7++){const _0x7cff47=events[_0x3925f7],_0x39607a=createListener('smsQueue:'+_0x7cff47,_0x148804);SmsQueueEvents['on'](_0x7cff47,_0x39607a);}}; \ No newline at end of file +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 diff --git a/server/api/smsQueueReport/index.js b/server/api/smsQueueReport/index.js index a95af92..46572c8 100644 --- a/server/api/smsQueueReport/index.js +++ b/server/api/smsQueueReport/index.js @@ -1 +1 @@ -const a572_0x4dca=['./smsQueueReport.controller','delete','Router','get','index','describe','express','/:id','post','destroy','show','update','exports','isAuthenticated','put'];(function(_0x5a30e7,_0x4dca40){const _0x2fbc2c=function(_0xd9eafa){while(--_0xd9eafa){_0x5a30e7['push'](_0x5a30e7['shift']());}};_0x2fbc2c(++_0x4dca40);}(a572_0x4dca,0xd7));const a572_0x2fbc=function(_0x5a30e7,_0x4dca40){_0x5a30e7=_0x5a30e7-0x0;let _0x2fbc2c=a572_0x4dca[_0x5a30e7];return _0x2fbc2c;};const _0x45208b=a572_0x2fbc;'use strict';const express=require(_0x45208b('0x1')),router=express[_0x45208b('0xc')](),auth=require('../../components/auth/service'),controller=require(_0x45208b('0xa'));router[_0x45208b('0xd')]('/',auth[_0x45208b('0x8')](),controller[_0x45208b('0xe')]),router[_0x45208b('0xd')]('/describe',auth[_0x45208b('0x8')](),controller[_0x45208b('0x0')]),router[_0x45208b('0xd')](_0x45208b('0x2'),auth[_0x45208b('0x8')](),controller[_0x45208b('0x5')]),router[_0x45208b('0x3')]('/',auth[_0x45208b('0x8')](),controller['create']),router[_0x45208b('0x9')](_0x45208b('0x2'),auth[_0x45208b('0x8')](),controller[_0x45208b('0x6')]),router[_0x45208b('0xb')](_0x45208b('0x2'),auth[_0x45208b('0x8')](),controller[_0x45208b('0x4')]),module[_0x45208b('0x7')]=router; \ No newline at end of file +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 diff --git a/server/api/smsQueueReport/smsQueueReport.attributes.js b/server/api/smsQueueReport/smsQueueReport.attributes.js index 1098cef..00dc2ca 100644 --- a/server/api/smsQueueReport/smsQueueReport.attributes.js +++ b/server/api/smsQueueReport/smsQueueReport.attributes.js @@ -1 +1 @@ -const a573_0x444b=['DATE','STRING','exports'];(function(_0x4063f1,_0x444bcf){const _0x58224b=function(_0x4f2203){while(--_0x4f2203){_0x4063f1['push'](_0x4063f1['shift']());}};_0x58224b(++_0x444bcf);}(a573_0x444b,0x1cc));const a573_0x5822=function(_0x4063f1,_0x444bcf){_0x4063f1=_0x4063f1-0x0;let _0x58224b=a573_0x444b[_0x4063f1];return _0x58224b;};const _0x4dd5de=a573_0x5822;'use strict';const Sequelize=require('sequelize');module[_0x4dd5de('0x1')]={'uniqueid':{'type':Sequelize[_0x4dd5de('0x0')],'allowNull':![]},'from':{'type':Sequelize[_0x4dd5de('0x0')]},'joinAt':{'type':Sequelize[_0x4dd5de('0x2')]},'leaveAt':{'type':Sequelize[_0x4dd5de('0x2')]},'acceptAt':{'type':Sequelize[_0x4dd5de('0x2')]},'exitAt':{'type':Sequelize[_0x4dd5de('0x2')]},'reason':{'type':Sequelize[_0x4dd5de('0x0')]}}; \ No newline at end of file +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 diff --git a/server/api/smsQueueReport/smsQueueReport.controller.js b/server/api/smsQueueReport/smsQueueReport.controller.js index 9156221..5a52cd6 100644 --- a/server/api/smsQueueReport/smsQueueReport.controller.js +++ b/server/api/smsQueueReport/smsQueueReport.controller.js @@ -1 +1 @@ -const a574_0xf283=['options','index','describe','end','catch','then','set','SmsQueueReport','limit','length','findAll','fields','includeAll','where','name','params','fieldName','json','type','keys','../../mysqldb','nolimit','count','VIRTUAL','filter','merge','intersection','model','like','pick','Content-Range','body','query','map','lodash','offset','filters','error','rawAttributes','sendStatus','key','include','sort','update','findOne','create','api','../../components/parsers/qs','attributes','status','send','destroy','order'];(function(_0x53ffa2,_0xf283aa){const _0x11667e=function(_0x2f8570){while(--_0x2f8570){_0x53ffa2['push'](_0x53ffa2['shift']());}};_0x11667e(++_0xf283aa);}(a574_0xf283,0x9a));const a574_0x1166=function(_0x53ffa2,_0xf283aa){_0x53ffa2=_0x53ffa2-0x0;let _0x11667e=a574_0xf283[_0x53ffa2];return _0x11667e;};const _0x16260c=a574_0x1166;'use strict';const _=require(_0x16260c('0x27')),qs=require(_0x16260c('0x34')),logger=require('../../config/logger')(_0x16260c('0x33')),db=require(_0x16260c('0x19'))['db'],{Op}=require('sequelize');function respondWithResult(_0x2f8570,_0x5c529a){return _0x5c529a=_0x5c529a||0xc8,function(_0x1e5357){if(_0x1e5357)return _0x2f8570['status'](_0x5c529a)['json'](_0x1e5357);};}function respondWithFilteredResult(_0x18258e,_0x1812ae){return function(_0x2a1bbd){const _0x21a576=a574_0x1166;if(_0x2a1bbd){const _0x192da3=_0x2a1bbd['count'],_0x68ae4d=_0x1812ae['offset'];let _0x39a155=_0x1812ae[_0x21a576('0x28')]+_0x1812ae['limit'],_0x145769;return _0x39a155>=_0x192da3?(_0x39a155=_0x192da3,_0x145769=0xc8):_0x145769=0xce,_0x18258e[_0x21a576('0x1')](_0x145769),_0x18258e[_0x21a576('0xb')](_0x21a576('0x23'),_0x68ae4d+'-'+_0x39a155+'/'+_0x192da3)[_0x21a576('0x16')](_0x2a1bbd);}return null;};}function saveUpdates(_0x2819f4){return function(_0x4bd206){const _0x5d1cbd=a574_0x1166;if(_0x4bd206)return _0x4bd206[_0x5d1cbd('0x30')](_0x2819f4)['then'](function(_0x3c28b8){return _0x3c28b8;});return null;};}function removeEntity(_0x558800){return function(_0x4fd7b2){const _0x426ed0=a574_0x1166;if(_0x4fd7b2)return _0x4fd7b2[_0x426ed0('0x3')]()[_0x426ed0('0xa')](function(){const _0x357455=_0x426ed0;_0x558800[_0x357455('0x1')](0xcc)[_0x357455('0x8')]();});};}function handleEntityNotFound(_0x49f2de){return function(_0x26ee96){const _0x59c74b=a574_0x1166;return!_0x26ee96&&_0x49f2de[_0x59c74b('0x2c')](0x194),_0x26ee96;};}function handleError(_0x4048ce,_0x13ae0b){return _0x13ae0b=_0x13ae0b||0x1f4,function(_0xa40a67){const _0x44fb6e=a574_0x1166;logger[_0x44fb6e('0x2a')](_0xa40a67['stack']),_0xa40a67[_0x44fb6e('0x13')]&&delete _0xa40a67[_0x44fb6e('0x13')],_0x4048ce[_0x44fb6e('0x1')](_0x13ae0b)[_0x44fb6e('0x2')](_0xa40a67);};}exports[_0x16260c('0x6')]=function(_0x410f29,_0x4a51fb){const _0x4308a5=_0x16260c;let _0x3bce45={};const _0x245e0b={},_0x109b40={'count':0x0,'rows':[]},_0x40ec57=_[_0x4308a5('0x26')](db[_0x4308a5('0xc')][_0x4308a5('0x2b')],function(_0x2b40d5){const _0x5085ea=_0x4308a5;return{'name':_0x2b40d5[_0x5085ea('0x15')],'type':_0x2b40d5['type'][_0x5085ea('0x2d')]};});_0x245e0b[_0x4308a5('0x20')]=_[_0x4308a5('0x26')](_0x40ec57,_0x4308a5('0x13')),_0x245e0b['query']=_[_0x4308a5('0x18')](_0x410f29[_0x4308a5('0x25')]),_0x245e0b[_0x4308a5('0x29')]=_[_0x4308a5('0x1f')](_0x245e0b[_0x4308a5('0x20')],_0x245e0b['query']),_0x3bce45[_0x4308a5('0x0')]=_[_0x4308a5('0x1f')](_0x245e0b[_0x4308a5('0x20')],qs['fields'](_0x410f29[_0x4308a5('0x25')][_0x4308a5('0x10')])),_0x3bce45['attributes']=_0x3bce45[_0x4308a5('0x0')][_0x4308a5('0xe')]?_0x3bce45[_0x4308a5('0x0')]:_0x245e0b[_0x4308a5('0x20')];typeof _0x410f29['query'][_0x4308a5('0x1a')]==='undefined'&&(_0x3bce45[_0x4308a5('0xd')]=qs['limit'](_0x410f29[_0x4308a5('0x25')][_0x4308a5('0xd')]),_0x3bce45[_0x4308a5('0x28')]=qs['offset'](_0x410f29[_0x4308a5('0x25')][_0x4308a5('0x28')]));_0x3bce45[_0x4308a5('0x4')]=qs['sort'](_0x410f29['query'][_0x4308a5('0x2f')]),_0x3bce45[_0x4308a5('0x12')]=qs[_0x4308a5('0x29')](_[_0x4308a5('0x22')](_0x410f29[_0x4308a5('0x25')],_0x245e0b['filters']),_0x40ec57);_0x410f29[_0x4308a5('0x25')][_0x4308a5('0x1d')]&&(_0x3bce45[_0x4308a5('0x12')]=_[_0x4308a5('0x1e')](_0x3bce45['where'],{[Op['or']]:_[_0x4308a5('0x26')](_0x40ec57,function(_0x596e0c){const _0x293265=_0x4308a5;if(_0x596e0c[_0x293265('0x17')]!==_0x293265('0x1c')){const _0x47932b={};return _0x47932b[_0x596e0c[_0x293265('0x13')]]={[Op[_0x293265('0x21')]]:'%'+_0x410f29[_0x293265('0x25')][_0x293265('0x1d')]+'%'},_0x47932b;}})}));_0x3bce45=_[_0x4308a5('0x1e')]({},_0x3bce45,_0x410f29['options']);const _0x334f2b={'where':_0x3bce45['where']};return db[_0x4308a5('0xc')][_0x4308a5('0x1b')](_0x334f2b)[_0x4308a5('0xa')](function(_0x5d09e9){const _0x8eb556=_0x4308a5;return _0x109b40[_0x8eb556('0x1b')]=_0x5d09e9,_0x410f29[_0x8eb556('0x25')][_0x8eb556('0x11')]&&(_0x3bce45[_0x8eb556('0x2e')]=[{'all':!![]}]),db[_0x8eb556('0xc')][_0x8eb556('0xf')](_0x3bce45);})[_0x4308a5('0xa')](function(_0x3995fd){return _0x109b40['rows']=_0x3995fd,_0x109b40;})[_0x4308a5('0xa')](respondWithFilteredResult(_0x4a51fb,_0x3bce45))[_0x4308a5('0x9')](handleError(_0x4a51fb,null));},exports['show']=function(_0x41bd7c,_0xea3261){const _0xb4529f=_0x16260c;let _0x30533f={'raw':!![],'where':{'id':_0x41bd7c[_0xb4529f('0x14')]['id']}};const _0x49f8f7={};return _0x49f8f7['model']=_[_0xb4529f('0x18')](db[_0xb4529f('0xc')][_0xb4529f('0x2b')]),_0x49f8f7['query']=_[_0xb4529f('0x18')](_0x41bd7c[_0xb4529f('0x25')]),_0x49f8f7[_0xb4529f('0x29')]=_['intersection'](_0x49f8f7[_0xb4529f('0x20')],_0x49f8f7['query']),_0x30533f[_0xb4529f('0x0')]=_[_0xb4529f('0x1f')](_0x49f8f7['model'],qs[_0xb4529f('0x10')](_0x41bd7c[_0xb4529f('0x25')][_0xb4529f('0x10')])),_0x30533f[_0xb4529f('0x0')]=_0x30533f[_0xb4529f('0x0')][_0xb4529f('0xe')]?_0x30533f[_0xb4529f('0x0')]:_0x49f8f7[_0xb4529f('0x20')],_0x41bd7c[_0xb4529f('0x25')][_0xb4529f('0x11')]&&(_0x30533f[_0xb4529f('0x2e')]=[{'all':!![]}]),_0x30533f=_[_0xb4529f('0x1e')]({},_0x30533f,_0x41bd7c[_0xb4529f('0x5')]),db[_0xb4529f('0xc')][_0xb4529f('0x31')](_0x30533f)[_0xb4529f('0xa')](handleEntityNotFound(_0xea3261,null))[_0xb4529f('0xa')](respondWithResult(_0xea3261,null))[_0xb4529f('0x9')](handleError(_0xea3261,null));},exports[_0x16260c('0x32')]=function(_0x2cb141,_0x33d022){const _0x545d15=_0x16260c;return db[_0x545d15('0xc')][_0x545d15('0x32')](_0x2cb141[_0x545d15('0x24')],{})['then'](respondWithResult(_0x33d022,0xc9))['catch'](handleError(_0x33d022,null));},exports['update']=function(_0x6a3f99,_0x1478d9){const _0x2fed91=_0x16260c;return _0x6a3f99['body']['id']&&delete _0x6a3f99['body']['id'],db['SmsQueueReport'][_0x2fed91('0x31')]({'where':{'id':_0x6a3f99[_0x2fed91('0x14')]['id']}})[_0x2fed91('0xa')](handleEntityNotFound(_0x1478d9,null))[_0x2fed91('0xa')](saveUpdates(_0x6a3f99[_0x2fed91('0x24')],null))['then'](respondWithResult(_0x1478d9,null))['catch'](handleError(_0x1478d9,null));},exports[_0x16260c('0x3')]=function(_0x340549,_0x369b47){const _0x730797=_0x16260c;return db[_0x730797('0xc')][_0x730797('0x31')]({'where':{'id':_0x340549[_0x730797('0x14')]['id']}})[_0x730797('0xa')](handleEntityNotFound(_0x369b47,null))[_0x730797('0xa')](removeEntity(_0x369b47,null))[_0x730797('0x9')](handleError(_0x369b47,null));},exports[_0x16260c('0x7')]=function(_0x17a08f,_0x33c510){const _0x11d079=_0x16260c;return db[_0x11d079('0xc')]['describe']()[_0x11d079('0xa')](respondWithResult(_0x33c510,null))['catch'](handleError(_0x33c510,null));}; \ No newline at end of file +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 diff --git a/server/api/smsQueueReport/smsQueueReport.model.js b/server/api/smsQueueReport/smsQueueReport.model.js index e92c800..ca1d5f7 100644 --- a/server/api/smsQueueReport/smsQueueReport.model.js +++ b/server/api/smsQueueReport/smsQueueReport.model.js @@ -1 +1 @@ -const a575_0x3c10=['exports','SmsQueueReport','uniqueid','./smsQueueReport.attributes'];(function(_0x5c8bbe,_0x3c1027){const _0x5ada06=function(_0xa66e63){while(--_0xa66e63){_0x5c8bbe['push'](_0x5c8bbe['shift']());}};_0x5ada06(++_0x3c1027);}(a575_0x3c10,0x9a));const a575_0x5ada=function(_0x5c8bbe,_0x3c1027){_0x5c8bbe=_0x5c8bbe-0x0;let _0x5ada06=a575_0x3c10[_0x5c8bbe];return _0x5ada06;};const _0x15a5ee=a575_0x5ada;'use strict';const attributes=require(_0x15a5ee('0x1'));module[_0x15a5ee('0x2')]=function(_0xa66e63){const _0xc649fa=_0x15a5ee,_0x599f35=_0xa66e63['define'](_0xc649fa('0x3'),attributes,{'tableName':'report_sms_queue','paranoid':![],'indexes':[{'name':_0xc649fa('0x0'),'fields':[_0xc649fa('0x0')]}],'timestamps':!![]});return _0x599f35;}; \ No newline at end of file +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 diff --git a/server/api/smsQueueReport/smsQueueReport.rpc.js b/server/api/smsQueueReport/smsQueueReport.rpc.js index ebacf9e..d20e463 100644 --- a/server/api/smsQueueReport/smsQueueReport.rpc.js +++ b/server/api/smsQueueReport/smsQueueReport.rpc.js @@ -1 +1 @@ -const a576_0x2fa4=['body','error','attributes','../../mysqldb','message','CreateSmsQueueReport','SmsQueueReport','stringify','where','update','raw','info','then','options','../../config/logger','catch','UpdateSmsQueueReport'];(function(_0x1f1cdb,_0x2fa48c){const _0x3ddfd9=function(_0x2ecd8d){while(--_0x2ecd8d){_0x1f1cdb['push'](_0x1f1cdb['shift']());}};_0x3ddfd9(++_0x2fa48c);}(a576_0x2fa4,0xf1));const a576_0x3ddf=function(_0x1f1cdb,_0x2fa48c){_0x1f1cdb=_0x1f1cdb-0x0;let _0x3ddfd9=a576_0x2fa4[_0x1f1cdb];return _0x3ddfd9;};const _0x381355=a576_0x3ddf;'use strict';const db=require(_0x381355('0x0'))['db'],logger=require(_0x381355('0xb'))('rpc');exports[_0x381355('0x2')]=function(_0x2ecd8d){const _0x6a7d06=this;return new Promise(function(_0x5f9d21,_0x488200){const _0x5cbda9=a576_0x3ddf;return db[_0x5cbda9('0x3')]['create'](_0x2ecd8d[_0x5cbda9('0xe')],{'raw':_0x2ecd8d[_0x5cbda9('0xa')]?_0x2ecd8d[_0x5cbda9('0xa')][_0x5cbda9('0x7')]===undefined?!![]:![]:!![]})[_0x5cbda9('0x9')](function(_0x2eae5d){const _0x200b2b=_0x5cbda9;logger[_0x200b2b('0x8')](_0x200b2b('0x2'),_0x2ecd8d),logger['debug'](_0x200b2b('0x2'),_0x2ecd8d,JSON[_0x200b2b('0x4')](_0x2eae5d)),_0x5f9d21(_0x2eae5d);})[_0x5cbda9('0xc')](function(_0x39b18f){const _0x19c289=_0x5cbda9;logger[_0x19c289('0xf')](_0x19c289('0x2'),_0x39b18f[_0x19c289('0x1')],_0x2ecd8d),_0x488200(_0x6a7d06[_0x19c289('0xf')](0x1f4,_0x39b18f[_0x19c289('0x1')]));});});},exports[_0x381355('0xd')]=function(_0x582409){const _0x4eec4e=this;return new Promise(function(_0x451509,_0x102e45){const _0x48fd56=a576_0x3ddf;return db[_0x48fd56('0x3')][_0x48fd56('0x6')](_0x582409[_0x48fd56('0xe')],{'raw':_0x582409[_0x48fd56('0xa')]?_0x582409[_0x48fd56('0xa')][_0x48fd56('0x7')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x582409[_0x48fd56('0xa')]?_0x582409['options'][_0x48fd56('0x5')]||null:null,'attributes':_0x582409[_0x48fd56('0xa')]?_0x582409[_0x48fd56('0xa')][_0x48fd56('0x10')]||null:null,'limit':_0x582409[_0x48fd56('0xa')]?_0x582409['options']['limit']||null:null})[_0x48fd56('0x9')](function(_0xa451c6){const _0x4e5dc4=_0x48fd56;logger[_0x4e5dc4('0x8')](_0x4e5dc4('0xd'),_0x582409),logger['debug'](_0x4e5dc4('0xd'),_0x582409,JSON[_0x4e5dc4('0x4')](_0xa451c6)),_0x451509(_0xa451c6);})[_0x48fd56('0xc')](function(_0x1dec72){const _0x4ecebb=_0x48fd56;logger[_0x4ecebb('0xf')](_0x4ecebb('0xd'),_0x1dec72[_0x4ecebb('0x1')],_0x582409),_0x102e45(_0x4eec4e['error'](0x1f4,_0x1dec72[_0x4ecebb('0x1')]));});});}; \ No newline at end of file +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 diff --git a/server/api/smsTransferReport/index.js b/server/api/smsTransferReport/index.js index cef5bd3..291594b 100644 --- a/server/api/smsTransferReport/index.js +++ b/server/api/smsTransferReport/index.js @@ -1 +1 @@ -const a577_0x9302=['get','/describe','../../components/auth/service','show','./smsTransferReport.controller','describe','post','Router','isAuthenticated','update','destroy','express','index','/:id','create'];(function(_0x3cccb3,_0x9302dc){const _0x596137=function(_0x3a0743){while(--_0x3a0743){_0x3cccb3['push'](_0x3cccb3['shift']());}};_0x596137(++_0x9302dc);}(a577_0x9302,0xb1));const a577_0x5961=function(_0x3cccb3,_0x9302dc){_0x3cccb3=_0x3cccb3-0x0;let _0x596137=a577_0x9302[_0x3cccb3];return _0x596137;};const _0x351f19=a577_0x5961;'use strict';const express=require(_0x351f19('0xe')),router=express[_0x351f19('0xa')](),auth=require(_0x351f19('0x5')),controller=require(_0x351f19('0x7'));router[_0x351f19('0x3')]('/',auth['isAuthenticated'](),controller[_0x351f19('0x0')]),router[_0x351f19('0x3')](_0x351f19('0x4'),auth['isAuthenticated'](),controller[_0x351f19('0x8')]),router[_0x351f19('0x3')](_0x351f19('0x1'),auth[_0x351f19('0xb')](),controller[_0x351f19('0x6')]),router[_0x351f19('0x9')]('/',auth['isAuthenticated'](),controller[_0x351f19('0x2')]),router['put'](_0x351f19('0x1'),auth['isAuthenticated'](),controller[_0x351f19('0xc')]),router['delete'](_0x351f19('0x1'),auth[_0x351f19('0xb')](),controller[_0x351f19('0xd')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/smsTransferReport/smsTransferReport.attributes.js b/server/api/smsTransferReport/smsTransferReport.attributes.js index 38d2664..6c864b3 100644 --- a/server/api/smsTransferReport/smsTransferReport.attributes.js +++ b/server/api/smsTransferReport/smsTransferReport.attributes.js @@ -1 +1 @@ -const a578_0x10b9=['account','exports','STRING','ENUM','queue','sequelize','agent'];(function(_0x349c67,_0x10b94b){const _0x469488=function(_0x139b9b){while(--_0x139b9b){_0x349c67['push'](_0x349c67['shift']());}};_0x469488(++_0x10b94b);}(a578_0x10b9,0x137));const a578_0x4694=function(_0x349c67,_0x10b94b){_0x349c67=_0x349c67-0x0;let _0x469488=a578_0x10b9[_0x349c67];return _0x469488;};const _0x2f5a27=a578_0x4694;'use strict';const Sequelize=require(_0x2f5a27('0x2'));module[_0x2f5a27('0x5')]={'uniqueid':{'type':Sequelize[_0x2f5a27('0x6')],'allowNull':![]},'type':{'type':Sequelize[_0x2f5a27('0x0')](_0x2f5a27('0x4'),_0x2f5a27('0x3'),_0x2f5a27('0x1')),'allowNull':![],'defaultValue':'queue'},'transferredAt':{'type':Sequelize['DATE'],'allowNull':![],'defaultValue':Sequelize['NOW']}}; \ No newline at end of file +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 diff --git a/server/api/smsTransferReport/smsTransferReport.controller.js b/server/api/smsTransferReport/smsTransferReport.controller.js index 38b0f32..48a08cf 100644 --- a/server/api/smsTransferReport/smsTransferReport.controller.js +++ b/server/api/smsTransferReport/smsTransferReport.controller.js @@ -1 +1 @@ -const a579_0x3bf8=['stack','options','includeAll','limit','create','type','catch','rows','count','lodash','attributes','fields','body','status','keys','send','fieldName','set','nolimit','name','error','params','include','where','length','order','findOne','query','then','update','../../mysqldb','model','filters','SmsTransferReport','Content-Range','offset','sort','destroy','sendStatus','intersection','show','findAll','sequelize','json','../../config/logger','merge','describe','filter','pick','map','end','rawAttributes'];(function(_0x15c48a,_0x3bf80c){const _0x42bc48=function(_0x3a4944){while(--_0x3a4944){_0x15c48a['push'](_0x15c48a['shift']());}};_0x42bc48(++_0x3bf80c);}(a579_0x3bf8,0xdb));const a579_0x42bc=function(_0x15c48a,_0x3bf80c){_0x15c48a=_0x15c48a-0x0;let _0x42bc48=a579_0x3bf8[_0x15c48a];return _0x42bc48;};const _0xf0b83d=a579_0x42bc;'use strict';const _=require(_0xf0b83d('0x32')),qs=require('../../components/parsers/qs'),logger=require(_0xf0b83d('0x21'))('api'),db=require(_0xf0b83d('0x13'))['db'],{Op}=require(_0xf0b83d('0x1f'));function respondWithResult(_0x3a4944,_0x4c129a){return _0x4c129a=_0x4c129a||0xc8,function(_0x57e3c4){const _0x387e89=a579_0x42bc;if(_0x57e3c4)return _0x3a4944['status'](_0x4c129a)[_0x387e89('0x20')](_0x57e3c4);};}function respondWithFilteredResult(_0x41513c,_0x2a9649){return function(_0x1c49d3){const _0x26d53a=a579_0x42bc;if(_0x1c49d3){const _0x29945b=_0x1c49d3[_0x26d53a('0x31')],_0x2f831d=_0x2a9649[_0x26d53a('0x18')];let _0x4b2da0=_0x2a9649[_0x26d53a('0x18')]+_0x2a9649[_0x26d53a('0x2c')],_0x9f44f4;return _0x4b2da0>=_0x29945b?(_0x4b2da0=_0x29945b,_0x9f44f4=0xc8):_0x9f44f4=0xce,_0x41513c['status'](_0x9f44f4),_0x41513c[_0x26d53a('0x6')](_0x26d53a('0x17'),_0x2f831d+'-'+_0x4b2da0+'/'+_0x29945b)['json'](_0x1c49d3);}return null;};}function saveUpdates(_0x588847){return function(_0x4eb0dc){const _0x14dcbd=a579_0x42bc;if(_0x4eb0dc)return _0x4eb0dc[_0x14dcbd('0x12')](_0x588847)[_0x14dcbd('0x11')](function(_0x46efaf){return _0x46efaf;});return null;};}function removeEntity(_0x3419e0){return function(_0x585c81){const _0x33c4f4=a579_0x42bc;if(_0x585c81)return _0x585c81[_0x33c4f4('0x1a')]()['then'](function(){const _0x4ff4ff=_0x33c4f4;_0x3419e0['status'](0xcc)[_0x4ff4ff('0x27')]();});};}function handleEntityNotFound(_0x597839){return function(_0x2eb8b8){const _0x327650=a579_0x42bc;return!_0x2eb8b8&&_0x597839[_0x327650('0x1b')](0x194),_0x2eb8b8;};}function handleError(_0x9f338b,_0x5352b9){return _0x5352b9=_0x5352b9||0x1f4,function(_0x1a5d51){const _0x4a79b5=a579_0x42bc;logger[_0x4a79b5('0x9')](_0x1a5d51[_0x4a79b5('0x29')]),_0x1a5d51[_0x4a79b5('0x8')]&&delete _0x1a5d51[_0x4a79b5('0x8')],_0x9f338b[_0x4a79b5('0x2')](_0x5352b9)[_0x4a79b5('0x4')](_0x1a5d51);};}exports['index']=function(_0x189b09,_0x147fdd){const _0x1a025a=_0xf0b83d;let _0x42783e={};const _0x4ea271={},_0x3a76e8={'count':0x0,'rows':[]},_0xbed5e1=_[_0x1a025a('0x26')](db['SmsTransferReport'][_0x1a025a('0x28')],function(_0x4c07dc){const _0x4f72ac=_0x1a025a;return{'name':_0x4c07dc[_0x4f72ac('0x5')],'type':_0x4c07dc[_0x4f72ac('0x2e')]['key']};});_0x4ea271['model']=_[_0x1a025a('0x26')](_0xbed5e1,_0x1a025a('0x8')),_0x4ea271[_0x1a025a('0x10')]=_[_0x1a025a('0x3')](_0x189b09[_0x1a025a('0x10')]),_0x4ea271[_0x1a025a('0x15')]=_[_0x1a025a('0x1c')](_0x4ea271['model'],_0x4ea271[_0x1a025a('0x10')]),_0x42783e[_0x1a025a('0x33')]=_['intersection'](_0x4ea271[_0x1a025a('0x14')],qs[_0x1a025a('0x0')](_0x189b09[_0x1a025a('0x10')][_0x1a025a('0x0')])),_0x42783e[_0x1a025a('0x33')]=_0x42783e[_0x1a025a('0x33')]['length']?_0x42783e[_0x1a025a('0x33')]:_0x4ea271[_0x1a025a('0x14')];typeof _0x189b09[_0x1a025a('0x10')][_0x1a025a('0x7')]==='undefined'&&(_0x42783e[_0x1a025a('0x2c')]=qs[_0x1a025a('0x2c')](_0x189b09[_0x1a025a('0x10')]['limit']),_0x42783e[_0x1a025a('0x18')]=qs[_0x1a025a('0x18')](_0x189b09[_0x1a025a('0x10')]['offset']));_0x42783e[_0x1a025a('0xe')]=qs['sort'](_0x189b09[_0x1a025a('0x10')][_0x1a025a('0x19')]),_0x42783e['where']=qs[_0x1a025a('0x15')](_[_0x1a025a('0x25')](_0x189b09[_0x1a025a('0x10')],_0x4ea271[_0x1a025a('0x15')]),_0xbed5e1);_0x189b09[_0x1a025a('0x10')][_0x1a025a('0x24')]&&(_0x42783e['where']=_['merge'](_0x42783e[_0x1a025a('0xc')],{[Op['or']]:_[_0x1a025a('0x26')](_0xbed5e1,function(_0xd7fdc9){const _0x14357c=_0x1a025a;if(_0xd7fdc9['type']!=='VIRTUAL'){const _0x5caf69={};return _0x5caf69[_0xd7fdc9[_0x14357c('0x8')]]={[Op['like']]:'%'+_0x189b09[_0x14357c('0x10')]['filter']+'%'},_0x5caf69;}})}));_0x42783e=_[_0x1a025a('0x22')]({},_0x42783e,_0x189b09[_0x1a025a('0x2a')]);const _0x9318e8={'where':_0x42783e[_0x1a025a('0xc')]};return db['SmsTransferReport'][_0x1a025a('0x31')](_0x9318e8)[_0x1a025a('0x11')](function(_0x5df648){const _0x23ddd6=_0x1a025a;return _0x3a76e8[_0x23ddd6('0x31')]=_0x5df648,_0x189b09['query'][_0x23ddd6('0x2b')]&&(_0x42783e[_0x23ddd6('0xb')]=[{'all':!![]}]),db['SmsTransferReport'][_0x23ddd6('0x1e')](_0x42783e);})['then'](function(_0x46fede){const _0x50b766=_0x1a025a;return _0x3a76e8[_0x50b766('0x30')]=_0x46fede,_0x3a76e8;})['then'](respondWithFilteredResult(_0x147fdd,_0x42783e))[_0x1a025a('0x2f')](handleError(_0x147fdd,null));},exports[_0xf0b83d('0x1d')]=function(_0x31f776,_0x35ec1d){const _0x5d00a0=_0xf0b83d;let _0x4cf508={'raw':!![],'where':{'id':_0x31f776[_0x5d00a0('0xa')]['id']}};const _0x24d31c={};return _0x24d31c[_0x5d00a0('0x14')]=_['keys'](db[_0x5d00a0('0x16')]['rawAttributes']),_0x24d31c[_0x5d00a0('0x10')]=_[_0x5d00a0('0x3')](_0x31f776['query']),_0x24d31c[_0x5d00a0('0x15')]=_[_0x5d00a0('0x1c')](_0x24d31c[_0x5d00a0('0x14')],_0x24d31c[_0x5d00a0('0x10')]),_0x4cf508['attributes']=_[_0x5d00a0('0x1c')](_0x24d31c[_0x5d00a0('0x14')],qs['fields'](_0x31f776['query']['fields'])),_0x4cf508[_0x5d00a0('0x33')]=_0x4cf508[_0x5d00a0('0x33')][_0x5d00a0('0xd')]?_0x4cf508['attributes']:_0x24d31c[_0x5d00a0('0x14')],_0x31f776[_0x5d00a0('0x10')][_0x5d00a0('0x2b')]&&(_0x4cf508[_0x5d00a0('0xb')]=[{'all':!![]}]),_0x4cf508=_[_0x5d00a0('0x22')]({},_0x4cf508,_0x31f776['options']),db[_0x5d00a0('0x16')]['findOne'](_0x4cf508)[_0x5d00a0('0x11')](handleEntityNotFound(_0x35ec1d,null))[_0x5d00a0('0x11')](respondWithResult(_0x35ec1d,null))[_0x5d00a0('0x2f')](handleError(_0x35ec1d,null));},exports[_0xf0b83d('0x2d')]=function(_0x36bc99,_0x157a50){const _0x14efd9=_0xf0b83d;return db[_0x14efd9('0x16')][_0x14efd9('0x2d')](_0x36bc99[_0x14efd9('0x1')],{})[_0x14efd9('0x11')](respondWithResult(_0x157a50,0xc9))['catch'](handleError(_0x157a50,null));},exports[_0xf0b83d('0x12')]=function(_0x3482e7,_0x40fbe9){const _0x4f4d1c=_0xf0b83d;return _0x3482e7[_0x4f4d1c('0x1')]['id']&&delete _0x3482e7[_0x4f4d1c('0x1')]['id'],db[_0x4f4d1c('0x16')][_0x4f4d1c('0xf')]({'where':{'id':_0x3482e7[_0x4f4d1c('0xa')]['id']}})[_0x4f4d1c('0x11')](handleEntityNotFound(_0x40fbe9,null))[_0x4f4d1c('0x11')](saveUpdates(_0x3482e7[_0x4f4d1c('0x1')],null))[_0x4f4d1c('0x11')](respondWithResult(_0x40fbe9,null))['catch'](handleError(_0x40fbe9,null));},exports[_0xf0b83d('0x1a')]=function(_0x14160b,_0x18885e){const _0x4ea6e7=_0xf0b83d;return db['SmsTransferReport'][_0x4ea6e7('0xf')]({'where':{'id':_0x14160b[_0x4ea6e7('0xa')]['id']}})[_0x4ea6e7('0x11')](handleEntityNotFound(_0x18885e,null))[_0x4ea6e7('0x11')](removeEntity(_0x18885e,null))['catch'](handleError(_0x18885e,null));},exports[_0xf0b83d('0x23')]=function(_0x627885,_0x4bac40){const _0x4a1ec5=_0xf0b83d;return db['SmsTransferReport'][_0x4a1ec5('0x23')]()[_0x4a1ec5('0x11')](respondWithResult(_0x4bac40,null))[_0x4a1ec5('0x2f')](handleError(_0x4bac40,null));}; \ No newline at end of file +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 diff --git a/server/api/smsTransferReport/smsTransferReport.model.js b/server/api/smsTransferReport/smsTransferReport.model.js index defea75..1918233 100644 --- a/server/api/smsTransferReport/smsTransferReport.model.js +++ b/server/api/smsTransferReport/smsTransferReport.model.js @@ -1 +1 @@ -const a580_0x53a5=['SmsTransferReport','exports','uniqueid','report_sms_transfer'];(function(_0x3fbf3d,_0x53a5bd){const _0x3a6982=function(_0x122bdc){while(--_0x122bdc){_0x3fbf3d['push'](_0x3fbf3d['shift']());}};_0x3a6982(++_0x53a5bd);}(a580_0x53a5,0x15f));const a580_0x3a69=function(_0x3fbf3d,_0x53a5bd){_0x3fbf3d=_0x3fbf3d-0x0;let _0x3a6982=a580_0x53a5[_0x3fbf3d];return _0x3a6982;};const _0xbb0fb7=a580_0x3a69;'use strict';const attributes=require('./smsTransferReport.attributes');module[_0xbb0fb7('0x2')]=function(_0x122bdc){const _0x5d9031=_0xbb0fb7,_0x5984cd=_0x122bdc['define'](_0x5d9031('0x1'),attributes,{'tableName':_0x5d9031('0x0'),'paranoid':![],'indexes':[{'name':_0x5d9031('0x3'),'fields':['uniqueid']}],'timestamps':!![]});return _0x5984cd;}; \ No newline at end of file +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 diff --git a/server/api/sound/index.js b/server/api/sound/index.js index 15a2279..b3304d9 100644 --- a/server/api/sound/index.js +++ b/server/api/sound/index.js @@ -1 +1 @@ -const a581_0x584f=['multer','now','single','basename','post','update','extname','delete','originalname','server/files/sounds/original/','isAuthenticated','../../components/auth/service','create','root','put','./sound.controller','util','format','download','/:id','%s-%s%s','join','express','Router','/:id/download','path','get','../../config/environment'];(function(_0x533913,_0x584fec){const _0x499ffb=function(_0xfd8e12){while(--_0xfd8e12){_0x533913['push'](_0x533913['shift']());}};_0x499ffb(++_0x584fec);}(a581_0x584f,0x82));const a581_0x499f=function(_0x533913,_0x584fec){_0x533913=_0x533913-0x0;let _0x499ffb=a581_0x584f[_0x533913];return _0x499ffb;};const _0x373ecb=a581_0x499f;'use strict';const multer=require(_0x373ecb('0xa')),util=require(_0x373ecb('0x1a')),path=require(_0x373ecb('0x7')),express=require(_0x373ecb('0x4')),router=express[_0x373ecb('0x5')](),auth=require(_0x373ecb('0x15')),config=require(_0x373ecb('0x9')),controller=require(_0x373ecb('0x19'));router['get']('/',auth[_0x373ecb('0x14')](),controller['index']),router[_0x373ecb('0x8')](_0x373ecb('0x1'),auth[_0x373ecb('0x14')](),controller['show']),router['get'](_0x373ecb('0x6'),auth[_0x373ecb('0x14')](),controller[_0x373ecb('0x0')]);const upload=multer({'storage':multer['diskStorage']({'destination':function(_0xfd8e12,_0x3f279b,_0x2948dc){const _0x4162ba=_0x373ecb;_0x2948dc(null,path[_0x4162ba('0x3')](config[_0x4162ba('0x17')],_0x4162ba('0x13')));},'filename':function(_0x6891ff,_0x37f874,_0x3d3164){const _0x56dbe1=_0x373ecb;_0x37f874[_0x56dbe1('0x12')]=_0x37f874['originalname']['replace'](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-'),_0x3d3164(null,util[_0x56dbe1('0x1b')](_0x56dbe1('0x2'),path[_0x56dbe1('0xd')](_0x37f874[_0x56dbe1('0x12')],path[_0x56dbe1('0x10')](_0x37f874[_0x56dbe1('0x12')])),Date[_0x56dbe1('0xb')](),path['extname'](_0x37f874[_0x56dbe1('0x12')])));}})});router[_0x373ecb('0xe')]('/',upload[_0x373ecb('0xc')]('file'),controller[_0x373ecb('0x16')]),router[_0x373ecb('0x18')](_0x373ecb('0x1'),auth[_0x373ecb('0x14')](),controller[_0x373ecb('0xf')]),router[_0x373ecb('0x11')]('/:id',auth[_0x373ecb('0x14')](),controller[_0x373ecb('0x11')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/sound/sound.attributes.js b/server/api/sound/sound.attributes.js index 42b4e34..f1ad56b 100644 --- a/server/api/sound/sound.attributes.js +++ b/server/api/sound/sound.attributes.js @@ -1 +1 @@ -const a582_0x2d88=['FLOAT','STRING','INTEGER','BIGINT'];(function(_0x481ee5,_0x2d881e){const _0x15453a=function(_0x5b2590){while(--_0x5b2590){_0x481ee5['push'](_0x481ee5['shift']());}};_0x15453a(++_0x2d881e);}(a582_0x2d88,0x1da));const a582_0x1545=function(_0x481ee5,_0x2d881e){_0x481ee5=_0x481ee5-0x0;let _0x15453a=a582_0x2d88[_0x481ee5];return _0x15453a;};const _0x2bd3f4=a582_0x1545;'use strict';const Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize['STRING'],'unique':'name','allowNull':![]},'save_name':{'type':Sequelize['STRING']},'display_name':{'type':Sequelize[_0x2bd3f4('0x3')],'defaultValue':''},'description':{'type':Sequelize[_0x2bd3f4('0x3')]},'original_format':{'type':Sequelize[_0x2bd3f4('0x3')]},'original_duration':{'type':Sequelize[_0x2bd3f4('0x2')]},'original_sampleCount':{'type':Sequelize[_0x2bd3f4('0x1')]},'original_channelCount':{'type':Sequelize['INTEGER']},'original_bitRate':{'type':Sequelize[_0x2bd3f4('0x1')]},'original_sampleRate':{'type':Sequelize[_0x2bd3f4('0x0')]},'converted_format':{'type':Sequelize[_0x2bd3f4('0x3')]},'converted_duration':{'type':Sequelize[_0x2bd3f4('0x2')]},'converted_sampleCount':{'type':Sequelize[_0x2bd3f4('0x1')]},'converted_channelCount':{'type':Sequelize['INTEGER']},'converted_bitRate':{'type':Sequelize[_0x2bd3f4('0x1')]},'converted_sampleRate':{'type':Sequelize['INTEGER']}}; \ No newline at end of file +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 diff --git a/server/api/sound/sound.controller.js b/server/api/sound/sound.controller.js index c8d748d..182cee5 100644 --- a/server/api/sound/sound.controller.js +++ b/server/api/sound/sound.controller.js @@ -1 +1 @@ -const a583_0x2077=['save_name','filter','sequelize','Sound\x20upload\x20destination:\x20%s','params','show','nolimit','role','channelCount','userProfileId','offset','info','body','basename','limit','lodash','chmodSync','map','filters','delete','undefined','converted_bitRate','sampleRate','attributes','sort','filename','join','extname','query','length','index','existsSync','name','bitRate','unlinkSync','%s.%s','includeAll','substring','Sound\x20upload\x20filepath:\x20%s','catch','sampleCount','intersection','download','duration','user','send','type','util','file','root','then','Sound\x20not\x20found','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','src','fields','originalname','server/files/sounds/original','server/files/sounds/converted','transcode','original_sampleCount','api','path','keys','pick','../../config/environment','ValidationError','rows','converted_sampleCount','autoAssociation','UserProfileResource','like','sox','Unable\x20to\x20retrieve\x20the\x20current\x20user','converted_duration','findOne','start','options','where','create','include','merge','converted_format','model','original_format','Sound','stack','status','0777','format','json','order','original_bitRate','error','VIRTUAL','update','original_channelCount','set','converted_channelCount','description','fieldName','converted_sampleRate','count','Sounds','wav'];(function(_0x393f92,_0x20776c){const _0x5f29b0=function(_0x252d5f){while(--_0x252d5f){_0x393f92['push'](_0x393f92['shift']());}};_0x5f29b0(++_0x20776c);}(a583_0x2077,0x1b2));const a583_0x5f29=function(_0x393f92,_0x20776c){_0x393f92=_0x393f92-0x0;let _0x5f29b0=a583_0x2077[_0x393f92];return _0x5f29b0;};const _0x143cc5=a583_0x5f29;'use strict';const util=require(_0x143cc5('0x1d')),path=require(_0x143cc5('0x2b')),sox=require(_0x143cc5('0x35')),fs=require('fs'),_=require(_0x143cc5('0x65')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x143cc5('0x2a')),config=require(_0x143cc5('0x2e')),db=require('../../mysqldb')['db'],{Op}=require(_0x143cc5('0x58'));function respondWithResult(_0x252d5f,_0x521063){return _0x521063=_0x521063||0xc8,function(_0x570c65){const _0x49b79d=a583_0x5f29;if(_0x570c65)return _0x252d5f[_0x49b79d('0x44')](_0x521063)[_0x49b79d('0x47')](_0x570c65);};}function respondWithFilteredResult(_0x5571a9,_0x4721e8){return function(_0x4039bd){const _0x20eb78=a583_0x5f29;if(_0x4039bd){const _0x3a8316=_0x4039bd['count'],_0x449853=_0x4721e8['offset'];let _0x5b54ff=_0x4721e8[_0x20eb78('0x60')]+_0x4721e8[_0x20eb78('0x64')],_0x244345;return _0x5b54ff>=_0x3a8316?(_0x5b54ff=_0x3a8316,_0x244345=0xc8):_0x244345=0xce,_0x5571a9[_0x20eb78('0x44')](_0x244345),_0x5571a9[_0x20eb78('0x4e')]('Content-Range',_0x449853+'-'+_0x5b54ff+'/'+_0x3a8316)['json'](_0x4039bd);}return null;};}function saveUpdates(_0x130938){return function(_0x4e735a){const _0x3f1b76=a583_0x5f29;if(_0x4e735a)return _0x4e735a[_0x3f1b76('0x4c')](_0x130938)['then'](function(_0x1bbf40){return _0x1bbf40;});return null;};}function handleEntityNotFound(_0x4948da){return function(_0x466fb5){return!_0x466fb5&&_0x4948da['sendStatus'](0x194),_0x466fb5;};}function handleError(_0x5a80ce,_0x1514ec){return _0x1514ec=_0x1514ec||0x1f4,function(_0xa6d524){const _0x52dba3=a583_0x5f29;logger[_0x52dba3('0x4a')](_0xa6d524[_0x52dba3('0x43')]),_0xa6d524[_0x52dba3('0xe')]&&delete _0xa6d524[_0x52dba3('0xe')],_0x5a80ce[_0x52dba3('0x44')](_0x1514ec)[_0x52dba3('0x1b')](_0xa6d524);};}exports[_0x143cc5('0xc')]=function(_0x2eb9ff,_0x3dd142){const _0x5e63d8=_0x143cc5;let _0x5ad9ca={};const _0x37a87c={},_0x180e41={'count':0x0,'rows':[]},_0x325d06=_[_0x5e63d8('0x67')](db['Sound']['rawAttributes'],function(_0x502a8d){const _0x40ddb1=_0x5e63d8;return{'name':_0x502a8d[_0x40ddb1('0x51')],'type':_0x502a8d[_0x40ddb1('0x1c')]['key']};});_0x37a87c['model']=_['map'](_0x325d06,_0x5e63d8('0xe')),_0x37a87c['query']=_['keys'](_0x2eb9ff[_0x5e63d8('0xa')]),_0x37a87c[_0x5e63d8('0x0')]=_[_0x5e63d8('0x17')](_0x37a87c[_0x5e63d8('0x40')],_0x37a87c[_0x5e63d8('0xa')]),_0x5ad9ca[_0x5e63d8('0x5')]=_['intersection'](_0x37a87c['model'],qs[_0x5e63d8('0x24')](_0x2eb9ff[_0x5e63d8('0xa')]['fields'])),_0x5ad9ca[_0x5e63d8('0x5')]=_0x5ad9ca[_0x5e63d8('0x5')][_0x5e63d8('0xb')]?_0x5ad9ca[_0x5e63d8('0x5')]:_0x37a87c['model'];typeof _0x2eb9ff[_0x5e63d8('0xa')][_0x5e63d8('0x5c')]===_0x5e63d8('0x2')&&(_0x5ad9ca[_0x5e63d8('0x64')]=qs[_0x5e63d8('0x64')](_0x2eb9ff['query'][_0x5e63d8('0x64')]),_0x5ad9ca[_0x5e63d8('0x60')]=qs[_0x5e63d8('0x60')](_0x2eb9ff[_0x5e63d8('0xa')][_0x5e63d8('0x60')]));_0x5ad9ca[_0x5e63d8('0x48')]=qs[_0x5e63d8('0x6')](_0x2eb9ff[_0x5e63d8('0xa')][_0x5e63d8('0x6')]),_0x5ad9ca[_0x5e63d8('0x3b')]=qs[_0x5e63d8('0x0')](_[_0x5e63d8('0x2d')](_0x2eb9ff['query'],_0x37a87c[_0x5e63d8('0x0')]),_0x325d06);_0x2eb9ff['query']['filter']&&(_0x5ad9ca['where']=_[_0x5e63d8('0x3e')](_0x5ad9ca[_0x5e63d8('0x3b')],{[Op['or']]:_['map'](_0x325d06,function(_0x55b2dc){const _0xb804eb=_0x5e63d8;if(_0x55b2dc[_0xb804eb('0x1c')]!==_0xb804eb('0x4b')){const _0x47be28={};return _0x47be28[_0x55b2dc[_0xb804eb('0xe')]]={[Op[_0xb804eb('0x34')]]:'%'+_0x2eb9ff[_0xb804eb('0xa')][_0xb804eb('0x57')]+'%'},_0x47be28;}})}));_0x5ad9ca=_['merge']({},_0x5ad9ca,_0x2eb9ff[_0x5e63d8('0x3a')]);const _0x340179={'where':_0x5ad9ca[_0x5e63d8('0x3b')]};return db[_0x5e63d8('0x42')][_0x5e63d8('0x53')](_0x340179)['then'](function(_0x3c53a3){const _0x462568=_0x5e63d8;return _0x180e41['count']=_0x3c53a3,_0x2eb9ff[_0x462568('0xa')][_0x462568('0x12')]&&(_0x5ad9ca['include']=[{'all':!![]}]),db[_0x462568('0x42')]['findAll'](_0x5ad9ca);})[_0x5e63d8('0x20')](function(_0x527d86){const _0xb58b38=_0x5e63d8;return _0x180e41[_0xb58b38('0x30')]=_0x527d86,_0x180e41;})['then'](respondWithFilteredResult(_0x3dd142,_0x5ad9ca))[_0x5e63d8('0x15')](handleError(_0x3dd142,null));},exports[_0x143cc5('0x5b')]=function(_0x146728,_0x12367f){const _0x432b70=_0x143cc5;let _0x49b138={'raw':!![],'where':{'id':_0x146728[_0x432b70('0x5a')]['id']}};const _0x243f91={};return _0x243f91['model']=_[_0x432b70('0x2c')](db[_0x432b70('0x42')]['rawAttributes']),_0x243f91[_0x432b70('0xa')]=_[_0x432b70('0x2c')](_0x146728[_0x432b70('0xa')]),_0x243f91[_0x432b70('0x0')]=_[_0x432b70('0x17')](_0x243f91[_0x432b70('0x40')],_0x243f91['query']),_0x49b138[_0x432b70('0x5')]=_[_0x432b70('0x17')](_0x243f91[_0x432b70('0x40')],qs[_0x432b70('0x24')](_0x146728[_0x432b70('0xa')][_0x432b70('0x24')])),_0x49b138[_0x432b70('0x5')]=_0x49b138['attributes'][_0x432b70('0xb')]?_0x49b138[_0x432b70('0x5')]:_0x243f91['model'],_0x146728[_0x432b70('0xa')][_0x432b70('0x12')]&&(_0x49b138[_0x432b70('0x3d')]=[{'all':!![]}]),_0x49b138=_['merge']({},_0x49b138,_0x146728['options']),db[_0x432b70('0x42')][_0x432b70('0x38')](_0x49b138)[_0x432b70('0x20')](handleEntityNotFound(_0x12367f,null))['then'](respondWithResult(_0x12367f,null))[_0x432b70('0x15')](handleError(_0x12367f,null));},exports[_0x143cc5('0x18')]=function(_0x1aa16f,_0x84a8aa){const _0x4a0f6e=_0x143cc5;return db[_0x4a0f6e('0x42')][_0x4a0f6e('0x38')]({'where':{'id':_0x1aa16f[_0x4a0f6e('0x5a')]['id']},'attributes':[_0x4a0f6e('0xe'),'save_name','converted_format'],'raw':!![]})[_0x4a0f6e('0x20')](handleEntityNotFound(_0x84a8aa,null))['then'](function(_0x4472ae){const _0x5ce639=_0x4a0f6e;if(_0x4472ae){if(!fs[_0x5ce639('0xd')](path[_0x5ce639('0x8')](config[_0x5ce639('0x1f')],_0x5ce639('0x27'),_0x4472ae['save_name']+'.'+_0x4472ae[_0x5ce639('0x3f')])))throw new db['Sequelize'][(_0x5ce639('0x2f'))](_0x5ce639('0x21'));return _0x84a8aa['download'](path[_0x5ce639('0x8')](config[_0x5ce639('0x1f')],_0x5ce639('0x27'),util[_0x5ce639('0x46')](_0x5ce639('0x11'),_0x4472ae[_0x5ce639('0x56')],_0x4472ae['converted_format'])),util['format'](_0x5ce639('0x11'),_0x4472ae[_0x5ce639('0xe')],_0x4472ae[_0x5ce639('0x3f')]));}return null;})['catch'](handleError(_0x84a8aa,null));},exports[_0x143cc5('0x3c')]=function(_0x4a8110,_0x41a06a){const _0x212625=_0x143cc5,_0x2f2306={'name':path[_0x212625('0x63')](_0x4a8110[_0x212625('0x1e')][_0x212625('0x25')],path[_0x212625('0x9')](_0x4a8110[_0x212625('0x1e')][_0x212625('0x25')])),'save_name':path['basename'](_0x4a8110[_0x212625('0x1e')][_0x212625('0x7')],path[_0x212625('0x9')](_0x4a8110[_0x212625('0x1e')][_0x212625('0x7')])),'original_format':path[_0x212625('0x9')](_0x4a8110['file'][_0x212625('0x25')])[_0x212625('0x13')](0x1),'converted_format':_0x212625('0x55')},_0x183f79=path['join'](config[_0x212625('0x1f')],_0x212625('0x26'),_0x4a8110['file'][_0x212625('0x7')]),_0x2ddf7b=path[_0x212625('0x8')](config['root'],'server/files/sounds/converted',util[_0x212625('0x46')](_0x212625('0x11'),path[_0x212625('0x63')](_0x4a8110['file'][_0x212625('0x7')],path[_0x212625('0x9')](_0x4a8110['file']['filename'])),_0x2f2306[_0x212625('0x3f')]));logger[_0x212625('0x61')](_0x212625('0x14'),_0x183f79),logger[_0x212625('0x61')](_0x212625('0x59'),_0x2ddf7b);try{fs[_0x212625('0x66')](_0x183f79,parseInt(_0x212625('0x45'),0x8));const _0x4d0389=sox[_0x212625('0x28')](_0x183f79,_0x2ddf7b,{'sampleRate':0x1f40,'format':_0x212625('0x55'),'channelCount':0x1,'bitRate':0xc0*0x400,'compressionQuality':0x5});_0x4d0389['on'](_0x212625('0x4a'),function(_0x286820){const _0x382679=_0x212625;fs[_0x382679('0x10')](_0x183f79),_0x41a06a[_0x382679('0x44')](0x1f4)[_0x382679('0x1b')](_0x286820);}),_0x4d0389['on'](_0x212625('0x23'),function(_0x5b204d){const _0x3e4c36=_0x212625;_0x2f2306['original_duration']=isNaN(_0x5b204d[_0x3e4c36('0x19')])?null:_0x5b204d[_0x3e4c36('0x19')]*0x3e8,_0x2f2306[_0x3e4c36('0x29')]=isNaN(_0x5b204d[_0x3e4c36('0x16')])?null:_0x5b204d['sampleCount'],_0x2f2306[_0x3e4c36('0x4d')]=isNaN(_0x5b204d[_0x3e4c36('0x5e')])?null:_0x5b204d[_0x3e4c36('0x5e')],_0x2f2306[_0x3e4c36('0x49')]=isNaN(_0x5b204d[_0x3e4c36('0xf')])?null:_0x5b204d[_0x3e4c36('0xf')],_0x2f2306['original_sampleRate']=isNaN(_0x5b204d[_0x3e4c36('0x4')])?null:_0x5b204d[_0x3e4c36('0x4')];}),_0x4d0389['on']('dest',function(_0x16fe8d){const _0x646e9d=_0x212625;_0x2f2306[_0x646e9d('0x37')]=isNaN(_0x16fe8d[_0x646e9d('0x19')])?null:_0x16fe8d[_0x646e9d('0x19')]*0x3e8,_0x2f2306[_0x646e9d('0x31')]=isNaN(_0x16fe8d[_0x646e9d('0x16')])?null:_0x16fe8d['sampleCount'],_0x2f2306[_0x646e9d('0x4f')]=isNaN(_0x16fe8d['channelCount'])?null:_0x16fe8d['channelCount'],_0x2f2306[_0x646e9d('0x3')]=isNaN(_0x16fe8d[_0x646e9d('0xf')])?null:_0x16fe8d[_0x646e9d('0xf')],_0x2f2306[_0x646e9d('0x52')]=isNaN(_0x16fe8d[_0x646e9d('0x4')])?null:_0x16fe8d[_0x646e9d('0x4')];}),_0x4d0389['on']('end',function(){const _0x84f5ab=_0x212625;return fs[_0x84f5ab('0x66')](_0x2ddf7b,parseInt(_0x84f5ab('0x45'),0x8)),db[_0x84f5ab('0x42')]['create'](_0x2f2306)[_0x84f5ab('0x20')](function(_0x15cd42){const _0x2af1d1=_0x84f5ab,_0x2e87bd={'role':_0x4a8110['body']['role'],'userProfileId':_0x4a8110[_0x2af1d1('0x62')][_0x2af1d1('0x5f')]};if(!_0x2e87bd)throw new Error(_0x2af1d1('0x36'));if(_0x2e87bd[_0x2af1d1('0x5d')]===_0x2af1d1('0x1a')){const _0x183942=_0x15cd42['get']({'plain':!![]});return db['UserProfileSection'][_0x2af1d1('0x38')]({'where':{'name':_0x2af1d1('0x54'),'userProfileId':_0x2e87bd['userProfileId']},'raw':!![]})[_0x2af1d1('0x20')](function(_0x1cb831){const _0x31ca51=_0x2af1d1;return _0x1cb831&&_0x1cb831[_0x31ca51('0x32')]===0x0?db[_0x31ca51('0x33')][_0x31ca51('0x3c')]({'name':_0x183942[_0x31ca51('0xe')],'resourceId':_0x183942['id'],'type':_0x1cb831[_0x31ca51('0xe')],'sectionId':_0x1cb831['id']},{})[_0x31ca51('0x20')](function(){return _0x15cd42;}):_0x15cd42;})[_0x2af1d1('0x15')](function(_0x370713){const _0x4985c9=_0x2af1d1;logger[_0x4985c9('0x4a')](_0x4985c9('0x22'),_0x370713);throw _0x370713;});}return _0x15cd42;})[_0x84f5ab('0x20')](respondWithResult(_0x41a06a,null))[_0x84f5ab('0x15')](handleError(_0x41a06a,null));}),_0x4d0389[_0x212625('0x39')]();}catch(_0x1cdee2){_0x41a06a[_0x212625('0x44')](0x1f4)[_0x212625('0x1b')](_0x1cdee2);}},exports[_0x143cc5('0x4c')]=function(_0x40c8ca,_0x41c6b5){const _0x5dc363=_0x143cc5;return db[_0x5dc363('0x42')][_0x5dc363('0x38')]({'where':{'id':_0x40c8ca[_0x5dc363('0x5a')]['id']}})[_0x5dc363('0x20')](handleEntityNotFound(_0x41c6b5,null))[_0x5dc363('0x20')](saveUpdates(_[_0x5dc363('0x2d')](_0x40c8ca['body'],['name',_0x5dc363('0x50')]),null))[_0x5dc363('0x20')](respondWithResult(_0x41c6b5,null))[_0x5dc363('0x15')](handleError(_0x41c6b5,null));},exports[_0x143cc5('0x1')]=function(_0x3ccb48,_0x1494da){const _0x3e3097=_0x143cc5;return db[_0x3e3097('0x42')][_0x3e3097('0x38')]({'where':{'id':_0x3ccb48[_0x3e3097('0x5a')]['id']}})[_0x3e3097('0x20')](function(_0x2a6f9a){if(_0x2a6f9a)return _0x2a6f9a['destroy']();})[_0x3e3097('0x20')](function(_0x16c57c){const _0xd3ab5c=_0x3e3097,_0x10e3f1=path[_0xd3ab5c('0x8')](config[_0xd3ab5c('0x1f')],_0xd3ab5c('0x26'),util[_0xd3ab5c('0x46')]('%s.%s',_0x16c57c['save_name'],_0x16c57c[_0xd3ab5c('0x41')])),_0x1c574c=path[_0xd3ab5c('0x8')](config[_0xd3ab5c('0x1f')],_0xd3ab5c('0x27'),util[_0xd3ab5c('0x46')]('%s.%s',_0x16c57c[_0xd3ab5c('0x56')],_0x16c57c[_0xd3ab5c('0x3f')]));return fs[_0xd3ab5c('0x10')](_0x10e3f1),fs[_0xd3ab5c('0x10')](_0x1c574c),_0x16c57c;})[_0x3e3097('0x20')](function(_0xc7e728){const _0x34371a=_0x3e3097;if(_0xc7e728)return _0x1494da[_0x34371a('0x44')](0xcc)['end']();})[_0x3e3097('0x20')](handleEntityNotFound(_0x1494da,null))[_0x3e3097('0x15')](handleError(_0x1494da,null));}; \ No newline at end of file +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 diff --git a/server/api/sound/sound.model.js b/server/api/sound/sound.model.js index 63bca1d..12da250 100644 --- a/server/api/sound/sound.model.js +++ b/server/api/sound/sound.model.js @@ -1 +1 @@ -const a584_0x4ef0=['define','./sound.attributes','tools_sounds','Sound'];(function(_0x292b7f,_0x4ef0cb){const _0x32e62e=function(_0x11b866){while(--_0x11b866){_0x292b7f['push'](_0x292b7f['shift']());}};_0x32e62e(++_0x4ef0cb);}(a584_0x4ef0,0x110));const a584_0x32e6=function(_0x292b7f,_0x4ef0cb){_0x292b7f=_0x292b7f-0x0;let _0x32e62e=a584_0x4ef0[_0x292b7f];return _0x32e62e;};const _0x23143=a584_0x32e6;'use strict';const attributes=require(_0x23143('0x1'));module['exports']=function(_0x11b866){const _0x466810=_0x23143,_0x209277=_0x11b866[_0x466810('0x0')](_0x466810('0x3'),attributes,{'tableName':_0x466810('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x209277;}; \ No newline at end of file +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 diff --git a/server/api/sound/sound.rpc.js b/server/api/sound/sound.rpc.js index 6f85af2..d611e38 100644 --- a/server/api/sound/sound.rpc.js +++ b/server/api/sound/sound.rpc.js @@ -1 +1 @@ -const a585_0xe64c=['catch','where','options','attributes','Sound','error','raw','info','include','message','lodash','../../config/logger','../../mysqldb','model','map','findOne','ShowSound','stringify','rpc'];(function(_0x1f24d1,_0xe64c98){const _0x3595c4=function(_0x391055){while(--_0x391055){_0x1f24d1['push'](_0x1f24d1['shift']());}};_0x3595c4(++_0xe64c98);}(a585_0xe64c,0x149));const a585_0x3595=function(_0x1f24d1,_0xe64c98){_0x1f24d1=_0x1f24d1-0x0;let _0x3595c4=a585_0xe64c[_0x1f24d1];return _0x3595c4;};const _0x18113d=a585_0x3595;'use strict';const db=require(_0x18113d('0x6'))['db'],logger=require(_0x18113d('0x5'))(_0x18113d('0xc')),_=require(_0x18113d('0x4'));exports[_0x18113d('0xa')]=function(_0x391055){const _0x69d2e8=this;return new Promise(function(_0x4d6d03,_0x228411){const _0x26d8bb=a585_0x3595;return db[_0x26d8bb('0x11')][_0x26d8bb('0x9')]({'raw':_0x391055['options']?_0x391055[_0x26d8bb('0xf')][_0x26d8bb('0x0')]===undefined?!![]:![]:!![],'where':_0x391055['options']?_0x391055[_0x26d8bb('0xf')][_0x26d8bb('0xe')]||null:null,'attributes':_0x391055[_0x26d8bb('0xf')]?_0x391055[_0x26d8bb('0xf')]['attributes']||null:null,'include':_0x391055[_0x26d8bb('0xf')]?_0x391055[_0x26d8bb('0xf')][_0x26d8bb('0x2')]?_[_0x26d8bb('0x8')](_0x391055['options'][_0x26d8bb('0x2')],function(_0x5517d5){const _0x56b1a6=_0x26d8bb;return{'model':db[_0x5517d5['model']],'as':_0x5517d5['as'],'attributes':_0x5517d5[_0x56b1a6('0x10')],'include':_0x5517d5[_0x56b1a6('0x2')]?_[_0x56b1a6('0x8')](_0x5517d5['include'],function(_0x55c807){const _0x5ce16b=_0x56b1a6;return{'model':db[_0x55c807['model']],'as':_0x55c807['as'],'attributes':_0x55c807[_0x5ce16b('0x10')],'include':_0x55c807[_0x5ce16b('0x2')]?_[_0x5ce16b('0x8')](_0x55c807[_0x5ce16b('0x2')],function(_0xa8a211){const _0x14846f=_0x5ce16b;return{'model':db[_0xa8a211[_0x14846f('0x7')]],'as':_0xa8a211['as'],'attributes':_0xa8a211[_0x14846f('0x10')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x2586f6){const _0x1f3c74=_0x26d8bb;logger[_0x1f3c74('0x1')](_0x1f3c74('0xa'),_0x391055),logger['debug']('ShowSound',_0x391055,JSON[_0x1f3c74('0xb')](_0x2586f6)),_0x4d6d03(_0x2586f6);})[_0x26d8bb('0xd')](function(_0x491edf){const _0x50445c=_0x26d8bb;logger[_0x50445c('0x12')](_0x50445c('0xa'),_0x491edf[_0x50445c('0x3')],_0x391055),_0x228411(_0x69d2e8[_0x50445c('0x12')](0x1f4,_0x491edf[_0x50445c('0x3')]));});});}; \ No newline at end of file +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 diff --git a/server/api/squareMessage/index.js b/server/api/squareMessage/index.js index 7bfed77..75aeca4 100644 --- a/server/api/squareMessage/index.js +++ b/server/api/squareMessage/index.js @@ -1 +1 @@ -const a586_0x391f=['show','create','/:id','update','isAuthenticated','Router','../../components/auth/service','exports','put','destroy','./squareMessage.controller','get'];(function(_0x5432aa,_0x391f2d){const _0x237dbd=function(_0x59d8fd){while(--_0x59d8fd){_0x5432aa['push'](_0x5432aa['shift']());}};_0x237dbd(++_0x391f2d);}(a586_0x391f,0x1d6));const a586_0x237d=function(_0x5432aa,_0x391f2d){_0x5432aa=_0x5432aa-0x0;let _0x237dbd=a586_0x391f[_0x5432aa];return _0x237dbd;};const _0x382d5e=a586_0x237d;'use strict';const express=require('express'),router=express[_0x382d5e('0x3')](),auth=require(_0x382d5e('0x4')),controller=require(_0x382d5e('0x8'));router[_0x382d5e('0x9')]('/',auth[_0x382d5e('0x2')](),controller['index']),router['get']('/:id',auth['isAuthenticated'](),controller[_0x382d5e('0xa')]),router['post']('/',auth[_0x382d5e('0x2')](),controller[_0x382d5e('0xb')]),router[_0x382d5e('0x6')](_0x382d5e('0x0'),auth['isAuthenticated'](),controller[_0x382d5e('0x1')]),router['delete'](_0x382d5e('0x0'),auth[_0x382d5e('0x2')](),controller[_0x382d5e('0x7')]),module[_0x382d5e('0x5')]=router; \ No newline at end of file +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 diff --git a/server/api/squareMessage/squareMessage.attributes.js b/server/api/squareMessage/squareMessage.attributes.js index c38dc69..9d93005 100644 --- a/server/api/squareMessage/squareMessage.attributes.js +++ b/server/api/squareMessage/squareMessage.attributes.js @@ -1 +1 @@ -const a587_0x3457=['ENUM','medium','TEXT','STRING','sequelize','exports'];(function(_0x146505,_0x345784){const _0x44fb39=function(_0x1a8205){while(--_0x1a8205){_0x146505['push'](_0x146505['shift']());}};_0x44fb39(++_0x345784);}(a587_0x3457,0x94));const a587_0x44fb=function(_0x146505,_0x345784){_0x146505=_0x146505-0x0;let _0x44fb39=a587_0x3457[_0x146505];return _0x44fb39;};const _0x1c221b=a587_0x44fb;'use strict';const Sequelize=require(_0x1c221b('0x0'));module[_0x1c221b('0x1')]={'uniqueid':{'type':Sequelize[_0x1c221b('0x5')]},'body':{'type':Sequelize[_0x1c221b('0x4')](_0x1c221b('0x3')),'allowNull':![]},'direction':{'type':Sequelize[_0x1c221b('0x2')]('in','out'),'defaultValue':'out','allowNull':![]}}; \ No newline at end of file +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 diff --git a/server/api/squareMessage/squareMessage.controller.js b/server/api/squareMessage/squareMessage.controller.js index 49b84d9..3d323ef 100644 --- a/server/api/squareMessage/squareMessage.controller.js +++ b/server/api/squareMessage/squareMessage.controller.js @@ -1 +1 @@ -const a588_0x5a14=['filters','set','undefined','status','findAll','destroy','create','body','params','rows','includeAll','query','error','options','intersection','then','length','sendStatus','../../mysqldb','filter','json','catch','model','Content-Range','update','rawAttributes','type','where','fieldName','send','include','order','offset','name','sequelize','nolimit','count','fields','keys','map','api','key','end','merge','pick','limit','attributes','sort','show','findOne','SquareMessage'];(function(_0x6180bf,_0x5a145d){const _0x1522b7=function(_0x2726f9){while(--_0x2726f9){_0x6180bf['push'](_0x6180bf['shift']());}};_0x1522b7(++_0x5a145d);}(a588_0x5a14,0xaa));const a588_0x1522=function(_0x6180bf,_0x5a145d){_0x6180bf=_0x6180bf-0x0;let _0x1522b7=a588_0x5a14[_0x6180bf];return _0x1522b7;};const _0x16f3e6=a588_0x1522;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x16f3e6('0x17')),db=require(_0x16f3e6('0x1'))['db'],{Op}=require(_0x16f3e6('0x11'));function respondWithResult(_0x2726f9,_0x4f7989){return _0x4f7989=_0x4f7989||0xc8,function(_0x468cea){const _0x3542d1=a588_0x1522;if(_0x468cea)return _0x2726f9[_0x3542d1('0x25')](_0x4f7989)[_0x3542d1('0x3')](_0x468cea);};}function respondWithFilteredResult(_0x5aa182,_0x465189){return function(_0x4e45e6){const _0x4724b6=a588_0x1522;if(_0x4e45e6){const _0x24cb6c=_0x4e45e6['count'],_0x3cfa41=_0x465189[_0x4724b6('0xf')];let _0x308899=_0x465189['offset']+_0x465189[_0x4724b6('0x1c')],_0x2bcdec;return _0x308899>=_0x24cb6c?(_0x308899=_0x24cb6c,_0x2bcdec=0xc8):_0x2bcdec=0xce,_0x5aa182[_0x4724b6('0x25')](_0x2bcdec),_0x5aa182[_0x4724b6('0x23')](_0x4724b6('0x6'),_0x3cfa41+'-'+_0x308899+'/'+_0x24cb6c)['json'](_0x4e45e6);}return null;};}function saveUpdates(_0x1c50ca){return function(_0x5501d8){const _0x4dc922=a588_0x1522;if(_0x5501d8)return _0x5501d8[_0x4dc922('0x7')](_0x1c50ca)[_0x4dc922('0x31')](function(_0x595aa6){return _0x595aa6;});return null;};}function removeEntity(_0x3ae1ca){return function(_0x55a94c){const _0x59182f=a588_0x1522;if(_0x55a94c)return _0x55a94c[_0x59182f('0x27')]()[_0x59182f('0x31')](function(){const _0x471f51=_0x59182f;_0x3ae1ca[_0x471f51('0x25')](0xcc)[_0x471f51('0x19')]();});};}function handleEntityNotFound(_0x5b1945){return function(_0x2a1e0a){const _0x39d1a5=a588_0x1522;return!_0x2a1e0a&&_0x5b1945[_0x39d1a5('0x0')](0x194),_0x2a1e0a;};}function handleError(_0x262fb1,_0x481661){return _0x481661=_0x481661||0x1f4,function(_0x2617b3){const _0x504581=a588_0x1522;logger[_0x504581('0x2e')](_0x2617b3['stack']),_0x2617b3[_0x504581('0x10')]&&delete _0x2617b3[_0x504581('0x10')],_0x262fb1[_0x504581('0x25')](_0x481661)[_0x504581('0xc')](_0x2617b3);};}exports['index']=function(_0x15c35a,_0xe3da98){const _0x168268=_0x16f3e6;let _0x36926e={};const _0x3a1d21={},_0x26fa26={'count':0x0,'rows':[]},_0x4e8d9a=_[_0x168268('0x16')](db[_0x168268('0x21')][_0x168268('0x8')],function(_0x346135){const _0xfdca3f=_0x168268;return{'name':_0x346135[_0xfdca3f('0xb')],'type':_0x346135['type'][_0xfdca3f('0x18')]};});_0x3a1d21[_0x168268('0x5')]=_[_0x168268('0x16')](_0x4e8d9a,_0x168268('0x10')),_0x3a1d21['query']=_[_0x168268('0x15')](_0x15c35a[_0x168268('0x2d')]),_0x3a1d21[_0x168268('0x22')]=_[_0x168268('0x30')](_0x3a1d21['model'],_0x3a1d21['query']),_0x36926e['attributes']=_[_0x168268('0x30')](_0x3a1d21[_0x168268('0x5')],qs[_0x168268('0x14')](_0x15c35a['query'][_0x168268('0x14')])),_0x36926e[_0x168268('0x1d')]=_0x36926e[_0x168268('0x1d')][_0x168268('0x32')]?_0x36926e[_0x168268('0x1d')]:_0x3a1d21[_0x168268('0x5')];typeof _0x15c35a[_0x168268('0x2d')][_0x168268('0x12')]===_0x168268('0x24')&&(_0x36926e[_0x168268('0x1c')]=qs[_0x168268('0x1c')](_0x15c35a[_0x168268('0x2d')][_0x168268('0x1c')]),_0x36926e[_0x168268('0xf')]=qs[_0x168268('0xf')](_0x15c35a[_0x168268('0x2d')][_0x168268('0xf')]));_0x36926e[_0x168268('0xe')]=qs[_0x168268('0x1e')](_0x15c35a['query'][_0x168268('0x1e')]),_0x36926e['where']=qs[_0x168268('0x22')](_[_0x168268('0x1b')](_0x15c35a[_0x168268('0x2d')],_0x3a1d21[_0x168268('0x22')]),_0x4e8d9a);_0x15c35a[_0x168268('0x2d')]['filter']&&(_0x36926e[_0x168268('0xa')]=_[_0x168268('0x1a')](_0x36926e[_0x168268('0xa')],{[Op['or']]:_[_0x168268('0x16')](_0x4e8d9a,function(_0x4473f2){const _0x1e1022=_0x168268;if(_0x4473f2[_0x1e1022('0x9')]!=='VIRTUAL'){const _0x3860b9={};return _0x3860b9[_0x4473f2[_0x1e1022('0x10')]]={[Op['like']]:'%'+_0x15c35a[_0x1e1022('0x2d')][_0x1e1022('0x2')]+'%'},_0x3860b9;}})}));_0x36926e=_['merge']({},_0x36926e,_0x15c35a[_0x168268('0x2f')]);const _0x5de753={'where':_0x36926e[_0x168268('0xa')]};return db[_0x168268('0x21')][_0x168268('0x13')](_0x5de753)[_0x168268('0x31')](function(_0x12c81f){const _0x188508=_0x168268;return _0x26fa26['count']=_0x12c81f,_0x15c35a[_0x188508('0x2d')][_0x188508('0x2c')]&&(_0x36926e['include']=[{'all':!![]}]),db[_0x188508('0x21')][_0x188508('0x26')](_0x36926e);})[_0x168268('0x31')](function(_0x1fcfa3){const _0x504451=_0x168268;return _0x26fa26[_0x504451('0x2b')]=_0x1fcfa3,_0x26fa26;})[_0x168268('0x31')](respondWithFilteredResult(_0xe3da98,_0x36926e))[_0x168268('0x4')](handleError(_0xe3da98,null));},exports[_0x16f3e6('0x1f')]=function(_0x54ac49,_0x71d13f){const _0x57d605=_0x16f3e6;let _0x28f9dc={'raw':!![],'where':{'id':_0x54ac49['params']['id']}};const _0x240f97={};return _0x240f97[_0x57d605('0x5')]=_[_0x57d605('0x15')](db[_0x57d605('0x21')][_0x57d605('0x8')]),_0x240f97[_0x57d605('0x2d')]=_[_0x57d605('0x15')](_0x54ac49['query']),_0x240f97[_0x57d605('0x22')]=_[_0x57d605('0x30')](_0x240f97[_0x57d605('0x5')],_0x240f97['query']),_0x28f9dc['attributes']=_[_0x57d605('0x30')](_0x240f97[_0x57d605('0x5')],qs[_0x57d605('0x14')](_0x54ac49[_0x57d605('0x2d')][_0x57d605('0x14')])),_0x28f9dc[_0x57d605('0x1d')]=_0x28f9dc[_0x57d605('0x1d')]['length']?_0x28f9dc[_0x57d605('0x1d')]:_0x240f97[_0x57d605('0x5')],_0x54ac49['query'][_0x57d605('0x2c')]&&(_0x28f9dc[_0x57d605('0xd')]=[{'all':!![]}]),_0x28f9dc=_['merge']({},_0x28f9dc,_0x54ac49['options']),db[_0x57d605('0x21')][_0x57d605('0x20')](_0x28f9dc)[_0x57d605('0x31')](handleEntityNotFound(_0x71d13f,null))[_0x57d605('0x31')](respondWithResult(_0x71d13f,null))[_0x57d605('0x4')](handleError(_0x71d13f,null));},exports['create']=function(_0x31effd,_0x3b5222){const _0x52719a=_0x16f3e6;return db['SquareMessage'][_0x52719a('0x28')](_0x31effd[_0x52719a('0x29')],{})[_0x52719a('0x31')](respondWithResult(_0x3b5222,0xc9))[_0x52719a('0x4')](handleError(_0x3b5222,null));},exports['update']=function(_0x3c4b67,_0x4f1642){const _0x3a13ef=_0x16f3e6;return _0x3c4b67[_0x3a13ef('0x29')]['id']&&delete _0x3c4b67['body']['id'],db[_0x3a13ef('0x21')][_0x3a13ef('0x20')]({'where':{'id':_0x3c4b67[_0x3a13ef('0x2a')]['id']}})['then'](handleEntityNotFound(_0x4f1642,null))['then'](saveUpdates(_0x3c4b67[_0x3a13ef('0x29')],null))['then'](respondWithResult(_0x4f1642,null))['catch'](handleError(_0x4f1642,null));},exports[_0x16f3e6('0x27')]=function(_0x49c080,_0x5229bf){const _0x3af89a=_0x16f3e6;return db[_0x3af89a('0x21')]['findOne']({'where':{'id':_0x49c080[_0x3af89a('0x2a')]['id']}})[_0x3af89a('0x31')](handleEntityNotFound(_0x5229bf,null))[_0x3af89a('0x31')](removeEntity(_0x5229bf,null))[_0x3af89a('0x4')](handleError(_0x5229bf,null));}; \ No newline at end of file +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 diff --git a/server/api/squareMessage/squareMessage.model.js b/server/api/squareMessage/squareMessage.model.js index 0e470f9..7a9e840 100644 --- a/server/api/squareMessage/squareMessage.model.js +++ b/server/api/squareMessage/squareMessage.model.js @@ -1 +1 @@ -const a589_0x3b3f=['./squareMessage.attributes','exports'];(function(_0x5cebaa,_0x3b3f0c){const _0x2fbe79=function(_0x2db4a4){while(--_0x2db4a4){_0x5cebaa['push'](_0x5cebaa['shift']());}};_0x2fbe79(++_0x3b3f0c);}(a589_0x3b3f,0x188));const a589_0x2fbe=function(_0x5cebaa,_0x3b3f0c){_0x5cebaa=_0x5cebaa-0x0;let _0x2fbe79=a589_0x3b3f[_0x5cebaa];return _0x2fbe79;};const _0x581b4f=a589_0x2fbe;'use strict';const attributes=require(_0x581b4f('0x0'));module[_0x581b4f('0x1')]=function(_0x2db4a4){const _0x1cbe38=_0x2db4a4['define']('SquareMessage',attributes,{'tableName':'square_messages','paranoid':![],'indexes':[],'timestamps':!![]});return _0x1cbe38;}; \ No newline at end of file +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 diff --git a/server/api/squareMessage/squareMessage.rpc.js b/server/api/squareMessage/squareMessage.rpc.js index d9be8bf..dd31c80 100644 --- a/server/api/squareMessage/squareMessage.rpc.js +++ b/server/api/squareMessage/squareMessage.rpc.js @@ -1 +1 @@ -const a590_0x5d3b=['info','create','options','message','raw','../../config/logger','body','rpc','CreateSquareMessage','debug','catch','error','SquareMessage','stringify','then'];(function(_0x2b0e2a,_0x5d3b32){const _0x12f6a=function(_0x399519){while(--_0x399519){_0x2b0e2a['push'](_0x2b0e2a['shift']());}};_0x12f6a(++_0x5d3b32);}(a590_0x5d3b,0x88));const a590_0x12f6=function(_0x2b0e2a,_0x5d3b32){_0x2b0e2a=_0x2b0e2a-0x0;let _0x12f6a=a590_0x5d3b[_0x2b0e2a];return _0x12f6a;};const _0x5ba400=a590_0x12f6;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x5ba400('0x4'))(_0x5ba400('0x6'));exports[_0x5ba400('0x7')]=function(_0x399519){const _0x451005=this;return new Promise(function(_0x4e5103,_0x5ec647){const _0x53bbd7=a590_0x12f6;return db[_0x53bbd7('0xb')][_0x53bbd7('0x0')](_0x399519[_0x53bbd7('0x5')],{'raw':_0x399519['options']?_0x399519[_0x53bbd7('0x1')][_0x53bbd7('0x3')]===undefined?!![]:![]:!![]})[_0x53bbd7('0xd')](function(_0x418d4a){const _0x390582=_0x53bbd7;logger[_0x390582('0xe')](_0x390582('0x7'),_0x399519),logger[_0x390582('0x8')](_0x390582('0x7'),_0x399519,JSON[_0x390582('0xc')](_0x418d4a)),_0x4e5103(_0x418d4a);})[_0x53bbd7('0x9')](function(_0x2c79a8){const _0x1888bb=_0x53bbd7;logger[_0x1888bb('0xa')](_0x1888bb('0x7'),_0x2c79a8['message'],_0x399519),_0x5ec647(_0x451005[_0x1888bb('0xa')](0x1f4,_0x2c79a8[_0x1888bb('0x2')]));});});}; \ No newline at end of file +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 diff --git a/server/api/squareOdbc/index.js b/server/api/squareOdbc/index.js index 9edab02..8945b06 100644 --- a/server/api/squareOdbc/index.js +++ b/server/api/squareOdbc/index.js @@ -1 +1 @@ -const a591_0x51a2=['delete','./squareOdbc.controller','test','express','../../components/auth/service','show','isAuthenticated','get','/:id','exports','15s','index','create','destroy','/:id/test'];(function(_0x5b3afe,_0x51a2ea){const _0x1b595b=function(_0x5818bc){while(--_0x5818bc){_0x5b3afe['push'](_0x5b3afe['shift']());}};_0x1b595b(++_0x51a2ea);}(a591_0x51a2,0x10b));const a591_0x1b59=function(_0x5b3afe,_0x51a2ea){_0x5b3afe=_0x5b3afe-0x0;let _0x1b595b=a591_0x51a2[_0x5b3afe];return _0x1b595b;};const _0x33296c=a591_0x1b59;'use strict';const timeout=require('connect-timeout'),express=require(_0x33296c('0x6')),router=express['Router'](),auth=require(_0x33296c('0x7')),controller=require(_0x33296c('0x4'));router['get']('/',auth['isAuthenticated'](),controller[_0x33296c('0xe')]),router[_0x33296c('0xa')]('/:id',auth[_0x33296c('0x9')](),controller[_0x33296c('0x8')]),router[_0x33296c('0xa')](_0x33296c('0x2'),auth['isAuthenticated'](),timeout(_0x33296c('0xd')),controller[_0x33296c('0x5')]),router['post']('/',auth[_0x33296c('0x9')](),controller[_0x33296c('0x0')]),router['put'](_0x33296c('0xb'),auth[_0x33296c('0x9')](),controller['update']),router[_0x33296c('0x3')](_0x33296c('0xb'),auth[_0x33296c('0x9')](),controller[_0x33296c('0x1')]),module[_0x33296c('0xc')]=router; \ No newline at end of file +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 diff --git a/server/api/squareOdbc/squareOdbc.attributes.js b/server/api/squareOdbc/squareOdbc.attributes.js index 4db7b91..a471a08 100644 --- a/server/api/squareOdbc/squareOdbc.attributes.js +++ b/server/api/squareOdbc/squareOdbc.attributes.js @@ -1 +1 @@ -const a592_0x25a1=['exports','sequelize','name','STRING'];(function(_0x322766,_0x25a190){const _0x1d56b9=function(_0x2e0176){while(--_0x2e0176){_0x322766['push'](_0x322766['shift']());}};_0x1d56b9(++_0x25a190);}(a592_0x25a1,0x14d));const a592_0x1d56=function(_0x322766,_0x25a190){_0x322766=_0x322766-0x0;let _0x1d56b9=a592_0x25a1[_0x322766];return _0x1d56b9;};const _0x576dd3=a592_0x1d56;'use strict';const Sequelize=require(_0x576dd3('0x0'));module[_0x576dd3('0x3')]={'name':{'type':Sequelize['STRING'],'unique':_0x576dd3('0x1'),'allowNull':![]},'dsn':{'type':Sequelize[_0x576dd3('0x2')]},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +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 diff --git a/server/api/squareOdbc/squareOdbc.controller.js b/server/api/squareOdbc/squareOdbc.controller.js index 1a92d97..804a41d 100644 --- a/server/api/squareOdbc/squareOdbc.controller.js +++ b/server/api/squareOdbc/squareOdbc.controller.js @@ -1 +1 @@ -const a593_0x2f81=['error','update','include','show','filters','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','where','offset','get','sendStatus','map','includeAll','status','body','../../components/parsers/qs','findAll','api','autoAssociation','user','lodash','destroy','findOne','filter','count','SquareOdbc','nolimit','set','keys','rows','ODBC','undefined','end','sequelize','length','UserProfileSection','json','fields','../../mysqldb','options','closeSync','limit','then','sort','pick','UserProfileResource','create','merge','fieldName','send','userProfileId','params','rawAttributes','attributes','model','key','Unable\x20to\x20retrieve\x20the\x20current\x20user','stack','catch','../../config/logger','odbc','name','query','Content-Range','type','intersection'];(function(_0x10c490,_0x2f814c){const _0x5501ce=function(_0x3cfba1){while(--_0x3cfba1){_0x10c490['push'](_0x10c490['shift']());}};_0x5501ce(++_0x2f814c);}(a593_0x2f81,0xd3));const a593_0x5501=function(_0x10c490,_0x2f814c){_0x10c490=_0x10c490-0x0;let _0x5501ce=a593_0x2f81[_0x10c490];return _0x5501ce;};const _0x5caf49=a593_0x5501;'use strict';const _=require(_0x5caf49('0x3')),qs=require(_0x5caf49('0x3f')),logger=require(_0x5caf49('0x2a'))(_0x5caf49('0x0')),db=require(_0x5caf49('0x15'))['db'],{Op}=require(_0x5caf49('0x10'));function respondWithResult(_0x3cfba1,_0x3c3597){return _0x3c3597=_0x3c3597||0xc8,function(_0x17fb8d){const _0x56e9e8=a593_0x5501;if(_0x17fb8d)return _0x3cfba1[_0x56e9e8('0x3d')](_0x3c3597)[_0x56e9e8('0x13')](_0x17fb8d);};}function respondWithFilteredResult(_0x1497bc,_0x2b8cbe){return function(_0x6d3f82){const _0x1d2d4c=a593_0x5501;if(_0x6d3f82){const _0x22c9b7=_0x6d3f82['count'],_0x1d249b=_0x2b8cbe[_0x1d2d4c('0x38')];let _0x2f1955=_0x2b8cbe[_0x1d2d4c('0x38')]+_0x2b8cbe[_0x1d2d4c('0x18')],_0x132666;return _0x2f1955>=_0x22c9b7?(_0x2f1955=_0x22c9b7,_0x132666=0xc8):_0x132666=0xce,_0x1497bc[_0x1d2d4c('0x3d')](_0x132666),_0x1497bc[_0x1d2d4c('0xa')](_0x1d2d4c('0x2e'),_0x1d249b+'-'+_0x2f1955+'/'+_0x22c9b7)[_0x1d2d4c('0x13')](_0x6d3f82);}return null;};}function saveUpdates(_0x38569e){return function(_0x3e6fc3){if(_0x3e6fc3)return _0x3e6fc3['update'](_0x38569e)['then'](function(_0x239d1f){return _0x239d1f;});return null;};}function removeEntity(_0xbe41d){return function(_0x3d8252){const _0x4d6e60=a593_0x5501;if(_0x3d8252)return _0x3d8252[_0x4d6e60('0x4')]()[_0x4d6e60('0x19')](function(){const _0x5922db=_0x4d6e60,_0x384db0=_0x3d8252[_0x5922db('0x39')]({'plain':!![]}),_0x23ed59=_0x5922db('0xd');return db[_0x5922db('0x1c')][_0x5922db('0x4')]({'where':{'type':_0x23ed59,'resourceId':_0x384db0['id']}})[_0x5922db('0x19')](function(){return _0x3d8252;});})['then'](function(){const _0x208332=_0x4d6e60;_0xbe41d['status'](0xcc)[_0x208332('0xf')]();});};}function handleEntityNotFound(_0x3d5a6b){return function(_0x47f9d5){const _0x3406c4=a593_0x5501;return!_0x47f9d5&&_0x3d5a6b[_0x3406c4('0x3a')](0x194),_0x47f9d5;};}function handleError(_0x34d7b1,_0x3d9a79){return _0x3d9a79=_0x3d9a79||0x1f4,function(_0x3762dd){const _0x372c2b=a593_0x5501;logger[_0x372c2b('0x31')](_0x3762dd[_0x372c2b('0x28')]),_0x3762dd['name']&&delete _0x3762dd[_0x372c2b('0x2c')],_0x34d7b1[_0x372c2b('0x3d')](_0x3d9a79)[_0x372c2b('0x20')](_0x3762dd);};}exports['index']=function(_0x1dc350,_0x240738){const _0x4d66ec=_0x5caf49;let _0x79f0db={};const _0x154fa9={},_0x5a5a9a={'count':0x0,'rows':[]},_0x57caf5=_[_0x4d66ec('0x3b')](db[_0x4d66ec('0x8')][_0x4d66ec('0x23')],function(_0x136559){const _0x353034=_0x4d66ec;return{'name':_0x136559[_0x353034('0x1f')],'type':_0x136559[_0x353034('0x2f')][_0x353034('0x26')]};});_0x154fa9[_0x4d66ec('0x25')]=_[_0x4d66ec('0x3b')](_0x57caf5,_0x4d66ec('0x2c')),_0x154fa9[_0x4d66ec('0x2d')]=_[_0x4d66ec('0xb')](_0x1dc350[_0x4d66ec('0x2d')]),_0x154fa9[_0x4d66ec('0x35')]=_['intersection'](_0x154fa9[_0x4d66ec('0x25')],_0x154fa9['query']),_0x79f0db[_0x4d66ec('0x24')]=_[_0x4d66ec('0x30')](_0x154fa9[_0x4d66ec('0x25')],qs[_0x4d66ec('0x14')](_0x1dc350[_0x4d66ec('0x2d')][_0x4d66ec('0x14')])),_0x79f0db[_0x4d66ec('0x24')]=_0x79f0db[_0x4d66ec('0x24')][_0x4d66ec('0x11')]?_0x79f0db['attributes']:_0x154fa9['model'];typeof _0x1dc350[_0x4d66ec('0x2d')][_0x4d66ec('0x9')]===_0x4d66ec('0xe')&&(_0x79f0db[_0x4d66ec('0x18')]=qs[_0x4d66ec('0x18')](_0x1dc350[_0x4d66ec('0x2d')][_0x4d66ec('0x18')]),_0x79f0db[_0x4d66ec('0x38')]=qs[_0x4d66ec('0x38')](_0x1dc350[_0x4d66ec('0x2d')][_0x4d66ec('0x38')]));_0x79f0db['order']=qs['sort'](_0x1dc350[_0x4d66ec('0x2d')][_0x4d66ec('0x1a')]),_0x79f0db[_0x4d66ec('0x37')]=qs[_0x4d66ec('0x35')](_[_0x4d66ec('0x1b')](_0x1dc350['query'],_0x154fa9['filters']),_0x57caf5);_0x1dc350[_0x4d66ec('0x2d')][_0x4d66ec('0x6')]&&(_0x79f0db[_0x4d66ec('0x37')]=_[_0x4d66ec('0x1e')](_0x79f0db[_0x4d66ec('0x37')],{[Op['or']]:_[_0x4d66ec('0x3b')](_0x57caf5,function(_0x286a88){const _0x80b04a=_0x4d66ec;if(_0x286a88[_0x80b04a('0x2f')]!=='VIRTUAL'){const _0xe1a239={};return _0xe1a239[_0x286a88[_0x80b04a('0x2c')]]={[Op['like']]:'%'+_0x1dc350[_0x80b04a('0x2d')]['filter']+'%'},_0xe1a239;}})}));_0x79f0db=_['merge']({},_0x79f0db,_0x1dc350[_0x4d66ec('0x16')]);const _0x4770ae={'where':_0x79f0db[_0x4d66ec('0x37')]};return db[_0x4d66ec('0x8')][_0x4d66ec('0x7')](_0x4770ae)[_0x4d66ec('0x19')](function(_0x1e050a){const _0x2d1247=_0x4d66ec;return _0x5a5a9a[_0x2d1247('0x7')]=_0x1e050a,_0x1dc350[_0x2d1247('0x2d')][_0x2d1247('0x3c')]&&(_0x79f0db[_0x2d1247('0x33')]=[{'all':!![]}]),db[_0x2d1247('0x8')][_0x2d1247('0x40')](_0x79f0db);})[_0x4d66ec('0x19')](function(_0x38296c){const _0x2ddb96=_0x4d66ec;return _0x5a5a9a[_0x2ddb96('0xc')]=_0x38296c,_0x5a5a9a;})['then'](respondWithFilteredResult(_0x240738,_0x79f0db))[_0x4d66ec('0x29')](handleError(_0x240738,null));},exports[_0x5caf49('0x34')]=function(_0x86d15b,_0x4a08a4){const _0x40b57d=_0x5caf49;let _0x2d3672={'raw':!![],'where':{'id':_0x86d15b[_0x40b57d('0x22')]['id']}};const _0x380ac5={};return _0x380ac5[_0x40b57d('0x25')]=_['keys'](db['SquareOdbc']['rawAttributes']),_0x380ac5['query']=_[_0x40b57d('0xb')](_0x86d15b['query']),_0x380ac5[_0x40b57d('0x35')]=_[_0x40b57d('0x30')](_0x380ac5[_0x40b57d('0x25')],_0x380ac5[_0x40b57d('0x2d')]),_0x2d3672[_0x40b57d('0x24')]=_['intersection'](_0x380ac5[_0x40b57d('0x25')],qs['fields'](_0x86d15b[_0x40b57d('0x2d')][_0x40b57d('0x14')])),_0x2d3672[_0x40b57d('0x24')]=_0x2d3672[_0x40b57d('0x24')]['length']?_0x2d3672[_0x40b57d('0x24')]:_0x380ac5['model'],_0x86d15b[_0x40b57d('0x2d')][_0x40b57d('0x3c')]&&(_0x2d3672['include']=[{'all':!![]}]),_0x2d3672=_[_0x40b57d('0x1e')]({},_0x2d3672,_0x86d15b['options']),db['SquareOdbc']['findOne'](_0x2d3672)['then'](handleEntityNotFound(_0x4a08a4,null))[_0x40b57d('0x19')](respondWithResult(_0x4a08a4,null))[_0x40b57d('0x29')](handleError(_0x4a08a4,null));},exports['create']=function(_0xb68ea9,_0x176b5e){const _0x40c6e3=_0x5caf49;return db[_0x40c6e3('0x8')][_0x40c6e3('0x1d')](_0xb68ea9[_0x40c6e3('0x3e')],{})['then'](function(_0x7e6571){const _0x59abb7=_0x40c6e3,_0x2c5dd7=_0xb68ea9[_0x59abb7('0x2')][_0x59abb7('0x39')]({'plain':!![]});if(!_0x2c5dd7)throw new Error(_0x59abb7('0x27'));if(_0x2c5dd7['role']==='user'){const _0x3273cc=_0x7e6571[_0x59abb7('0x39')]({'plain':!![]}),_0x2fbdbf=_0x59abb7('0xd');return db[_0x59abb7('0x12')][_0x59abb7('0x5')]({'where':{'name':_0x2fbdbf,'userProfileId':_0x2c5dd7[_0x59abb7('0x21')]},'raw':!![]})['then'](function(_0x46d591){const _0x368e19=_0x59abb7;return _0x46d591&&_0x46d591[_0x368e19('0x1')]===0x0?db['UserProfileResource'][_0x368e19('0x1d')]({'name':_0x3273cc[_0x368e19('0x2c')],'resourceId':_0x3273cc['id'],'type':_0x46d591[_0x368e19('0x2c')],'sectionId':_0x46d591['id']},{})['then'](function(){return _0x7e6571;}):_0x7e6571;})[_0x59abb7('0x29')](function(_0x394cb0){const _0x535f64=_0x59abb7;logger[_0x535f64('0x31')](_0x535f64('0x36'),_0x394cb0);throw _0x394cb0;});}return _0x7e6571;})[_0x40c6e3('0x19')](respondWithResult(_0x176b5e,0xc9))[_0x40c6e3('0x29')](handleError(_0x176b5e,null));},exports[_0x5caf49('0x32')]=function(_0x34670f,_0x355733){const _0x421973=_0x5caf49;return _0x34670f[_0x421973('0x3e')]['id']&&delete _0x34670f[_0x421973('0x3e')]['id'],db[_0x421973('0x8')][_0x421973('0x5')]({'where':{'id':_0x34670f[_0x421973('0x22')]['id']}})[_0x421973('0x19')](handleEntityNotFound(_0x355733,null))[_0x421973('0x19')](saveUpdates(_0x34670f[_0x421973('0x3e')],null))[_0x421973('0x19')](respondWithResult(_0x355733,null))[_0x421973('0x29')](handleError(_0x355733,null));},exports[_0x5caf49('0x4')]=function(_0x93d3ba,_0x2b7c2e){const _0x107348=_0x5caf49;return db[_0x107348('0x8')][_0x107348('0x5')]({'where':{'id':_0x93d3ba[_0x107348('0x22')]['id']}})[_0x107348('0x19')](handleEntityNotFound(_0x2b7c2e,null))[_0x107348('0x19')](removeEntity(_0x2b7c2e,null))[_0x107348('0x29')](handleError(_0x2b7c2e,null));},exports['test']=function(_0x73f178,_0x45e36e){const _0x1be99f=_0x5caf49;return db[_0x1be99f('0x8')][_0x1be99f('0x5')]({'where':{'id':_0x73f178[_0x1be99f('0x22')]['id']},'attributes':['id','dsn']})[_0x1be99f('0x19')](handleEntityNotFound(_0x45e36e,null))[_0x1be99f('0x19')](function(_0x17592c){const _0x45e9e=_0x1be99f;if(_0x17592c){const _0x34615e=require(_0x45e9e('0x2b'))();return _0x34615e['openSync'](_0x17592c['dsn']),_0x34615e[_0x45e9e('0x17')](),_0x17592c;}})[_0x1be99f('0x19')](respondWithResult(_0x45e36e,null))[_0x1be99f('0x29')](handleError(_0x45e36e,null));}; \ No newline at end of file +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 diff --git a/server/api/squareOdbc/squareOdbc.model.js b/server/api/squareOdbc/squareOdbc.model.js index 27c2aab..f9c7e6e 100644 --- a/server/api/squareOdbc/squareOdbc.model.js +++ b/server/api/squareOdbc/squareOdbc.model.js @@ -1 +1 @@ -const a594_0x1888=['square_odbc','./squareOdbc.attributes','define','SquareOdbc','exports'];(function(_0x348c88,_0x188809){const _0x42750e=function(_0x1a9305){while(--_0x1a9305){_0x348c88['push'](_0x348c88['shift']());}};_0x42750e(++_0x188809);}(a594_0x1888,0x1cb));const a594_0x4275=function(_0x348c88,_0x188809){_0x348c88=_0x348c88-0x0;let _0x42750e=a594_0x1888[_0x348c88];return _0x42750e;};const _0x763b7d=a594_0x4275;'use strict';const attributes=require(_0x763b7d('0x2'));module[_0x763b7d('0x0')]=function(_0x1a9305){const _0x1c4629=_0x763b7d,_0x1006e0=_0x1a9305[_0x1c4629('0x3')](_0x1c4629('0x4'),attributes,{'tableName':_0x1c4629('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1006e0;}; \ No newline at end of file +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 diff --git a/server/api/squareOdbc/squareOdbc.rpc.js b/server/api/squareOdbc/squareOdbc.rpc.js index 5b5d2e2..f60e606 100644 --- a/server/api/squareOdbc/squareOdbc.rpc.js +++ b/server/api/squareOdbc/squareOdbc.rpc.js @@ -1 +1 @@ -const a595_0x58d6=['then','error','catch','attributes','message','../../config/logger','ShowSquareOdbc','stringify','include','../../mysqldb','findOne','where','map','options','model','debug','info'];(function(_0x212d7e,_0x58d6d3){const _0x406f24=function(_0x597054){while(--_0x597054){_0x212d7e['push'](_0x212d7e['shift']());}};_0x406f24(++_0x58d6d3);}(a595_0x58d6,0x97));const a595_0x406f=function(_0x212d7e,_0x58d6d3){_0x212d7e=_0x212d7e-0x0;let _0x406f24=a595_0x58d6[_0x212d7e];return _0x406f24;};const _0x17e83d=a595_0x406f;'use strict';const db=require(_0x17e83d('0xb'))['db'],logger=require(_0x17e83d('0x7'))('rpc'),_=require('lodash');exports[_0x17e83d('0x8')]=function(_0x597054){const _0xbbccab=this;return new Promise(function(_0x49e09d,_0x3eea3a){const _0x119808=a595_0x406f;return db['SquareOdbc'][_0x119808('0xc')]({'raw':_0x597054[_0x119808('0xf')]?_0x597054[_0x119808('0xf')]['raw']===undefined?!![]:![]:!![],'where':_0x597054['options']?_0x597054[_0x119808('0xf')][_0x119808('0xd')]||null:null,'attributes':_0x597054['options']?_0x597054[_0x119808('0xf')][_0x119808('0x5')]||null:null,'include':_0x597054['options']?_0x597054[_0x119808('0xf')][_0x119808('0xa')]?_[_0x119808('0xe')](_0x597054[_0x119808('0xf')]['include'],function(_0x36126e){const _0x31b06b=_0x119808;return{'model':db[_0x36126e['model']],'as':_0x36126e['as'],'attributes':_0x36126e['attributes'],'include':_0x36126e[_0x31b06b('0xa')]?_[_0x31b06b('0xe')](_0x36126e['include'],function(_0x2972fe){const _0x961663=_0x31b06b;return{'model':db[_0x2972fe[_0x961663('0x10')]],'as':_0x2972fe['as'],'attributes':_0x2972fe[_0x961663('0x5')],'include':_0x2972fe[_0x961663('0xa')]?_[_0x961663('0xe')](_0x2972fe[_0x961663('0xa')],function(_0x338173){const _0x1bc23d=_0x961663;return{'model':db[_0x338173[_0x1bc23d('0x10')]],'as':_0x338173['as'],'attributes':_0x338173[_0x1bc23d('0x5')]};}):[]};}):[]};}):[]:[]})[_0x119808('0x2')](function(_0x24d4ff){const _0x1d7ea1=_0x119808;logger[_0x1d7ea1('0x1')](_0x1d7ea1('0x8'),_0x597054),logger[_0x1d7ea1('0x0')](_0x1d7ea1('0x8'),_0x597054,JSON[_0x1d7ea1('0x9')](_0x24d4ff)),_0x49e09d(_0x24d4ff);})[_0x119808('0x4')](function(_0x3bcd74){const _0x3ce9a5=_0x119808;logger['error'](_0x3ce9a5('0x8'),_0x3bcd74[_0x3ce9a5('0x6')],_0x597054),_0x3eea3a(_0xbbccab[_0x3ce9a5('0x3')](0x1f4,_0x3bcd74[_0x3ce9a5('0x6')]));});});}; \ No newline at end of file +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 diff --git a/server/api/squareProject/index.js b/server/api/squareProject/index.js index 7941b74..a3fa637 100644 --- a/server/api/squareProject/index.js +++ b/server/api/squareProject/index.js @@ -1 +1 @@ -const a596_0x715c=['put','getUsers','get','Router','post','exports','removeUsers','addUsers','./squareProject.controller','isAuthenticated','delete','index','express','/:id','/:id/users','../../components/auth/service'];(function(_0x58c738,_0x715c54){const _0x50caf7=function(_0x9c7253){while(--_0x9c7253){_0x58c738['push'](_0x58c738['shift']());}};_0x50caf7(++_0x715c54);}(a596_0x715c,0x142));const a596_0x50ca=function(_0x58c738,_0x715c54){_0x58c738=_0x58c738-0x0;let _0x50caf7=a596_0x715c[_0x58c738];return _0x50caf7;};const _0x5b7e64=a596_0x50ca;'use strict';const express=require(_0x5b7e64('0xa')),router=express[_0x5b7e64('0x1')](),auth=require(_0x5b7e64('0xd')),controller=require(_0x5b7e64('0x6'));router[_0x5b7e64('0x0')]('/',auth[_0x5b7e64('0x7')](),controller[_0x5b7e64('0x9')]),router[_0x5b7e64('0x0')]('/:id',auth['isAuthenticated'](),controller['show']),router[_0x5b7e64('0x0')](_0x5b7e64('0xc'),auth['isAuthenticated'](),controller[_0x5b7e64('0xf')]),router[_0x5b7e64('0x2')]('/',auth['isAuthenticated'](),controller['create']),router['post'](_0x5b7e64('0xc'),auth['isAuthenticated'](),controller[_0x5b7e64('0x5')]),router[_0x5b7e64('0xe')](_0x5b7e64('0xb'),auth['isAuthenticated'](),controller['update']),router[_0x5b7e64('0x8')](_0x5b7e64('0xb'),auth[_0x5b7e64('0x7')](),controller['destroy']),router['delete']('/:id/users',auth[_0x5b7e64('0x7')](),controller[_0x5b7e64('0x4')]),module[_0x5b7e64('0x3')]=router; \ No newline at end of file +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 diff --git a/server/api/squareProject/squareProject.attributes.js b/server/api/squareProject/squareProject.attributes.js index 52e95b5..90a2d79 100644 --- a/server/api/squareProject/squareProject.attributes.js +++ b/server/api/squareProject/squareProject.attributes.js @@ -1 +1 @@ -const a597_0x1285=['name','production','toString','STRING','utf8','getDataValue','preproduction','sequelize','TEXT','BLOB','exports'];(function(_0x401f7e,_0x1285f6){const _0x131620=function(_0x2532f6){while(--_0x2532f6){_0x401f7e['push'](_0x401f7e['shift']());}};_0x131620(++_0x1285f6);}(a597_0x1285,0x1f3));const a597_0x1316=function(_0x401f7e,_0x1285f6){_0x401f7e=_0x401f7e-0x0;let _0x131620=a597_0x1285[_0x401f7e];return _0x131620;};const _0x4d0163=a597_0x1316;'use strict';const Sequelize=require(_0x4d0163('0x3'));module[_0x4d0163('0x6')]={'name':{'type':Sequelize[_0x4d0163('0xa')],'unique':_0x4d0163('0x7'),'allowNull':![]},'description':{'type':Sequelize['STRING']},'notes':{'type':Sequelize[_0x4d0163('0x4')]},'preproduction':{'type':Sequelize[_0x4d0163('0x5')]('long'),'get':function(){const _0x2261a3=_0x4d0163;if(this[_0x2261a3('0x1')](_0x2261a3('0x2')))return this[_0x2261a3('0x1')](_0x2261a3('0x2'))[_0x2261a3('0x9')]('utf8');}},'production':{'type':Sequelize[_0x4d0163('0x5')]('long'),'get':function(){const _0x697598=_0x4d0163;if(this[_0x697598('0x1')](_0x697598('0x8')))return this['getDataValue'](_0x697598('0x8'))['toString'](_0x697598('0x0'));}}}; \ No newline at end of file +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 diff --git a/server/api/squareProject/squareProject.controller.js b/server/api/squareProject/squareProject.controller.js index 79d5a87..d2448b8 100644 --- a/server/api/squareProject/squareProject.controller.js +++ b/server/api/squareProject/squareProject.controller.js @@ -1 +1 @@ -const a598_0x1911=['count','findAll','like','options','addUsers','autoAssociation','status','destroy','keys','attributes','model','removeUsers','user','name','User','SquareProject','isArray','pick','merge','key','fields','order','SquareProjects','role','get','filters','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','emit','offset','Content-Range','../../mysqldb','body','sequelize','set','VIRTUAL','query','error','params','map','omit','stack','send','index','intersection','length','limit','../../config/logger','sendStatus','type','rows','rawAttributes','create','sort','getUsers','findOne','where','update','ids','Unable\x20to\x20retrieve\x20the\x20current\x20user','lodash','json','catch','then','undefined','../../rediscache','UserProfileResource','register','filter'];(function(_0x36f974,_0x191126){const _0x4ac9db=function(_0x123ec1){while(--_0x123ec1){_0x36f974['push'](_0x36f974['shift']());}};_0x4ac9db(++_0x191126);}(a598_0x1911,0x104));const a598_0x4ac9=function(_0x36f974,_0x191126){_0x36f974=_0x36f974-0x0;let _0x4ac9db=a598_0x1911[_0x36f974];return _0x4ac9db;};const _0x271ef0=a598_0x4ac9;'use strict';const _=require(_0x271ef0('0x3')),qs=require('../../components/parsers/qs'),logger=require(_0x271ef0('0x3a'))('api'),{getSocket}=require(_0x271ef0('0x8')),socket=getSocket(),db=require(_0x271ef0('0x2a'))['db'],{Op}=require(_0x271ef0('0x2c'));require('./squareProject.socket')[_0x271ef0('0xa')](socket);function respondWithStatusCode(_0x123ec1,_0x548add){return _0x548add=_0x548add||0xcc,function(_0xa80e71){const _0x496545=a598_0x4ac9;if(_0xa80e71)return _0x123ec1['sendStatus'](_0x548add);return _0x123ec1[_0x496545('0x12')](_0x548add)['end']();};}function respondWithResult(_0xf38716,_0x35197f){return _0x35197f=_0x35197f||0xc8,function(_0x4a3319){const _0x22e811=a598_0x4ac9;if(_0x4a3319)return _0xf38716[_0x22e811('0x12')](_0x35197f)[_0x22e811('0x4')](_0x4a3319);};}function respondWithFilteredResult(_0x1ab98d,_0xf481e0){return function(_0x37a21f){const _0x51cd99=a598_0x4ac9;if(_0x37a21f){const _0x4511ad=_0x37a21f[_0x51cd99('0xc')],_0x383f5d=_0xf481e0[_0x51cd99('0x28')];let _0x17fc36=_0xf481e0[_0x51cd99('0x28')]+_0xf481e0[_0x51cd99('0x39')],_0xf88fc9;return _0x17fc36>=_0x4511ad?(_0x17fc36=_0x4511ad,_0xf88fc9=0xc8):_0xf88fc9=0xce,_0x1ab98d['status'](_0xf88fc9),_0x1ab98d[_0x51cd99('0x2d')](_0x51cd99('0x29'),_0x383f5d+'-'+_0x17fc36+'/'+_0x4511ad)[_0x51cd99('0x4')](_0x37a21f);}return null;};}function saveUpdates(_0x5ce1ed){return function(_0x3d035a){const _0x3bb599=a598_0x4ac9;if(_0x3d035a)return _0x3d035a['update'](_0x5ce1ed)[_0x3bb599('0x6')](function(_0x5c2d66){return _0x5c2d66;});return null;};}function removeEntity(_0x56bcc6){return function(_0x32bc56){const _0x143bea=a598_0x4ac9;if(_0x32bc56)return _0x32bc56[_0x143bea('0x13')]()['then'](function(){const _0x2aa5ad=_0x143bea,_0x4002b7=_0x32bc56[_0x2aa5ad('0x24')]({'plain':!![]}),_0x1136b2=_0x2aa5ad('0x22');return db[_0x2aa5ad('0x9')]['destroy']({'where':{'type':_0x1136b2,'resourceId':_0x4002b7['id']}})[_0x2aa5ad('0x6')](function(){return _0x32bc56;});})[_0x143bea('0x6')](function(){const _0x25b754=_0x143bea;_0x56bcc6[_0x25b754('0x12')](0xcc)['end']();});};}function handleEntityNotFound(_0x5c8fd5){return function(_0x19327c){const _0x2e2f67=a598_0x4ac9;return!_0x19327c&&_0x5c8fd5[_0x2e2f67('0x3b')](0x194),_0x19327c;};}function handleError(_0x29e9b7,_0x357e4d){return _0x357e4d=_0x357e4d||0x1f4,function(_0x56e816){const _0x415c4e=a598_0x4ac9;logger[_0x415c4e('0x30')](_0x56e816[_0x415c4e('0x34')]),_0x56e816[_0x415c4e('0x19')]&&delete _0x56e816[_0x415c4e('0x19')],_0x29e9b7[_0x415c4e('0x12')](_0x357e4d)[_0x415c4e('0x35')](_0x56e816);};}exports[_0x271ef0('0x36')]=function(_0x3db94b,_0x55325b){const _0x535427=_0x271ef0;let _0x5b73d5={};const _0x3a1ddd={},_0x1bf01b={'count':0x0,'rows':[]},_0x447827=_[_0x535427('0x32')](db['SquareProject'][_0x535427('0x3e')],function(_0x26f105){const _0x3d9abc=_0x535427;return{'name':_0x26f105['fieldName'],'type':_0x26f105[_0x3d9abc('0x3c')][_0x3d9abc('0x1f')]};});_0x3a1ddd['model']=_[_0x535427('0x32')](_0x447827,'name'),_0x3a1ddd[_0x535427('0x2f')]=_[_0x535427('0x14')](_0x3db94b[_0x535427('0x2f')]),_0x3a1ddd['filters']=_[_0x535427('0x37')](_0x3a1ddd[_0x535427('0x16')],_0x3a1ddd[_0x535427('0x2f')]),_0x5b73d5[_0x535427('0x15')]=_['intersection'](_0x3a1ddd[_0x535427('0x16')],qs[_0x535427('0x20')](_0x3db94b['query']['fields'])),_0x5b73d5[_0x535427('0x15')]=_0x5b73d5[_0x535427('0x15')][_0x535427('0x38')]?_0x5b73d5['attributes']:_0x3a1ddd[_0x535427('0x16')];typeof _0x3db94b['query']['nolimit']===_0x535427('0x7')&&(_0x5b73d5['limit']=qs[_0x535427('0x39')](_0x3db94b[_0x535427('0x2f')]['limit']),_0x5b73d5[_0x535427('0x28')]=qs[_0x535427('0x28')](_0x3db94b[_0x535427('0x2f')][_0x535427('0x28')]));_0x5b73d5[_0x535427('0x21')]=qs[_0x535427('0x40')](_0x3db94b[_0x535427('0x2f')]['sort']),_0x5b73d5[_0x535427('0x43')]=qs[_0x535427('0x25')](_[_0x535427('0x1d')](_0x3db94b[_0x535427('0x2f')],_0x3a1ddd['filters']),_0x447827);_0x3db94b[_0x535427('0x2f')][_0x535427('0xb')]&&(_0x5b73d5[_0x535427('0x43')]=_['merge'](_0x5b73d5[_0x535427('0x43')],{[Op['or']]:_[_0x535427('0x32')](_0x447827,function(_0x3fe08e){const _0x562380=_0x535427;if(_0x3fe08e[_0x562380('0x3c')]!==_0x562380('0x2e')){const _0x5398ee={};return _0x5398ee[_0x3fe08e[_0x562380('0x19')]]={[Op[_0x562380('0xe')]]:'%'+_0x3db94b[_0x562380('0x2f')]['filter']+'%'},_0x5398ee;}})}));_0x5b73d5=_['merge']({},_0x5b73d5,_0x3db94b[_0x535427('0xf')]);const _0x5b1271={'where':_0x5b73d5[_0x535427('0x43')]};return db['SquareProject'][_0x535427('0xc')](_0x5b1271)['then'](function(_0x498fc2){const _0x2a8f7a=_0x535427;return _0x1bf01b['count']=_0x498fc2,_0x3db94b[_0x2a8f7a('0x2f')]['includeAll']&&(_0x5b73d5['include']=[{'all':!![]}]),db[_0x2a8f7a('0x1b')][_0x2a8f7a('0xd')](_0x5b73d5);})[_0x535427('0x6')](function(_0xd044e8){const _0xcd7be0=_0x535427;return _0x1bf01b[_0xcd7be0('0x3d')]=_0xd044e8,_0x1bf01b;})[_0x535427('0x6')](respondWithFilteredResult(_0x55325b,_0x5b73d5))['catch'](handleError(_0x55325b,null));},exports['show']=function(_0x4bb2bf,_0x161985){const _0x286917=_0x271ef0;let _0x2a0eea={'raw':![],'where':{'id':_0x4bb2bf[_0x286917('0x31')]['id']}};const _0x26b21a={};return _0x26b21a['model']=_['keys'](db[_0x286917('0x1b')][_0x286917('0x3e')]),_0x26b21a[_0x286917('0x2f')]=_['keys'](_0x4bb2bf[_0x286917('0x2f')]),_0x26b21a['filters']=_[_0x286917('0x37')](_0x26b21a['model'],_0x26b21a[_0x286917('0x2f')]),_0x2a0eea[_0x286917('0x15')]=_[_0x286917('0x37')](_0x26b21a[_0x286917('0x16')],qs[_0x286917('0x20')](_0x4bb2bf[_0x286917('0x2f')][_0x286917('0x20')])),_0x2a0eea[_0x286917('0x15')]=_0x2a0eea[_0x286917('0x15')][_0x286917('0x38')]?_0x2a0eea[_0x286917('0x15')]:_0x26b21a[_0x286917('0x16')],_0x4bb2bf[_0x286917('0x2f')]['includeAll']&&(_0x2a0eea['include']=[{'all':!![]}]),_0x2a0eea=_['merge']({},_0x2a0eea,_0x4bb2bf[_0x286917('0xf')]),db[_0x286917('0x1b')]['findOne'](_0x2a0eea)[_0x286917('0x6')](handleEntityNotFound(_0x161985,null))[_0x286917('0x6')](respondWithResult(_0x161985,null))[_0x286917('0x5')](handleError(_0x161985,null));},exports[_0x271ef0('0x3f')]=function(_0x30702f,_0x49c1a1){const _0x11233e=_0x271ef0;return db[_0x11233e('0x1b')]['create'](_0x30702f[_0x11233e('0x2b')],{})[_0x11233e('0x6')](function(_0x232660){const _0x5db2d1=_0x11233e,_0x5aa1e8=_0x30702f[_0x5db2d1('0x18')][_0x5db2d1('0x24')]({'plain':!![]});if(!_0x5aa1e8)throw new Error(_0x5db2d1('0x2'));if(_0x5aa1e8[_0x5db2d1('0x23')]==='user'){const _0x166083=_0x232660['get']({'plain':!![]}),_0x3865a0=_0x5db2d1('0x22');return db['UserProfileSection'][_0x5db2d1('0x42')]({'where':{'name':_0x3865a0,'userProfileId':_0x5aa1e8['userProfileId']},'raw':!![]})[_0x5db2d1('0x6')](function(_0x49a340){const _0x215548=_0x5db2d1;return _0x49a340&&_0x49a340[_0x215548('0x11')]===0x0?db[_0x215548('0x9')][_0x215548('0x3f')]({'name':_0x166083[_0x215548('0x19')],'resourceId':_0x166083['id'],'type':_0x49a340[_0x215548('0x19')],'sectionId':_0x49a340['id']},{})[_0x215548('0x6')](function(){return _0x232660;}):_0x232660;})[_0x5db2d1('0x5')](function(_0x58e5f3){const _0x2f5a53=_0x5db2d1;logger['error'](_0x2f5a53('0x26'),_0x58e5f3);throw _0x58e5f3;});}return _0x232660;})[_0x11233e('0x6')](respondWithResult(_0x49c1a1,0xc9))[_0x11233e('0x5')](handleError(_0x49c1a1,null));},exports[_0x271ef0('0x0')]=function(_0x49f264,_0x4dae6b){const _0x2d0f4c=_0x271ef0;return _0x49f264[_0x2d0f4c('0x2b')]['id']&&delete _0x49f264[_0x2d0f4c('0x2b')]['id'],db[_0x2d0f4c('0x1b')]['findOne']({'where':{'id':_0x49f264[_0x2d0f4c('0x31')]['id']}})['then'](handleEntityNotFound(_0x4dae6b,null))[_0x2d0f4c('0x6')](saveUpdates(_0x49f264[_0x2d0f4c('0x2b')],null))['then'](respondWithResult(_0x4dae6b,null))['catch'](handleError(_0x4dae6b,null));},exports[_0x271ef0('0x13')]=function(_0x5021f2,_0x3af64d){const _0x5d74f7=_0x271ef0;return db[_0x5d74f7('0x1b')][_0x5d74f7('0x42')]({'where':{'id':_0x5021f2[_0x5d74f7('0x31')]['id']}})[_0x5d74f7('0x6')](handleEntityNotFound(_0x3af64d,null))[_0x5d74f7('0x6')](removeEntity(_0x3af64d,null))[_0x5d74f7('0x5')](handleError(_0x3af64d,null));},exports[_0x271ef0('0x10')]=function(_0x4b0985,_0x493364){const _0x224888=_0x271ef0;return db['SquareProject']['findOne']({'where':{'id':_0x4b0985['params']['id']}})[_0x224888('0x6')](function(_0x25af07){const _0x255781=_0x224888;if(_0x25af07)return _0x25af07[_0x255781('0x10')](_0x4b0985[_0x255781('0x2b')][_0x255781('0x1')],{'through':_[_0x255781('0x33')](_0x4b0985[_0x255781('0x2b')],[_0x255781('0x1'),'id'])});})[_0x224888('0x6')](respondWithResult(_0x493364,null))[_0x224888('0x5')](handleError(_0x493364,null));},exports[_0x271ef0('0x17')]=function(_0x501f6a,_0x4eeaef){const _0x214076=_0x271ef0;return db[_0x214076('0x1b')][_0x214076('0x42')]({'where':{'id':_0x501f6a['params']['id']}})['then'](handleEntityNotFound(_0x4eeaef,null))[_0x214076('0x6')](function(_0x448df1){const _0x40a569=_0x214076;if(_0x448df1)return _0x448df1[_0x40a569('0x17')](_0x501f6a['query'][_0x40a569('0x1')])[_0x40a569('0x6')](function(){const _0x30391d=_0x40a569;if(_[_0x30391d('0x1c')](_0x501f6a[_0x30391d('0x2f')]['ids']))for(let _0x1f5e21=0x0;_0x1f5e21<_0x501f6a[_0x30391d('0x2f')][_0x30391d('0x1')]['length'];_0x1f5e21+=0x1){socket['emit']('userSquareProject:remove',{'UserId':Number(_0x501f6a[_0x30391d('0x2f')][_0x30391d('0x1')][_0x1f5e21]),'SquareProjectId':Number(_0x501f6a['params']['id'])});}else socket[_0x30391d('0x27')]('userSquareProject:remove',{'UserId':Number(_0x501f6a[_0x30391d('0x2f')][_0x30391d('0x1')]),'SquareProjectId':Number(_0x501f6a[_0x30391d('0x31')]['id'])});});})[_0x214076('0x6')](respondWithStatusCode(_0x4eeaef,null))[_0x214076('0x5')](handleError(_0x4eeaef,null));},exports[_0x271ef0('0x41')]=function(_0x15e7ad,_0x13d80a){const _0x597e3e=_0x271ef0;let _0x4fd16b={};const _0x5205f2={};let _0x43a82f,_0x4e637f;return db[_0x597e3e('0x1b')][_0x597e3e('0x42')]({'where':{'id':_0x15e7ad[_0x597e3e('0x31')]['id']}})[_0x597e3e('0x6')](handleEntityNotFound(_0x13d80a,null))[_0x597e3e('0x6')](function(_0x5f1c1a){const _0x4dddff=_0x597e3e;if(_0x5f1c1a)return _0x43a82f=_0x5f1c1a,_0x5205f2[_0x4dddff('0x16')]=_[_0x4dddff('0x14')](db[_0x4dddff('0x1a')]['rawAttributes']),_0x5205f2[_0x4dddff('0x2f')]=_[_0x4dddff('0x14')](_0x15e7ad[_0x4dddff('0x2f')]),_0x5205f2[_0x4dddff('0x25')]=_['intersection'](_0x5205f2[_0x4dddff('0x16')],_0x5205f2['query']),_0x4fd16b[_0x4dddff('0x15')]=_[_0x4dddff('0x37')](_0x5205f2[_0x4dddff('0x16')],qs[_0x4dddff('0x20')](_0x15e7ad['query'][_0x4dddff('0x20')])),_0x4fd16b[_0x4dddff('0x15')]=_0x4fd16b[_0x4dddff('0x15')][_0x4dddff('0x38')]?_0x4fd16b['attributes']:_0x5205f2['model'],_0x4fd16b[_0x4dddff('0x21')]=qs[_0x4dddff('0x40')](_0x15e7ad['query'][_0x4dddff('0x40')]),_0x4fd16b[_0x4dddff('0x43')]=qs['filters'](_[_0x4dddff('0x1d')](_0x15e7ad[_0x4dddff('0x2f')],_0x5205f2[_0x4dddff('0x25')])),_0x15e7ad['query'][_0x4dddff('0xb')]&&(_0x4fd16b[_0x4dddff('0x43')]=_[_0x4dddff('0x1e')](_0x4fd16b[_0x4dddff('0x43')],{[Op['or']]:_[_0x4dddff('0x32')](_0x4fd16b[_0x4dddff('0x15')],function(_0x1066b9){const _0x1760d4=_0x4dddff,_0x69ac1e={};return _0x69ac1e[_0x1066b9]={[Op['like']]:'%'+_0x15e7ad[_0x1760d4('0x2f')][_0x1760d4('0xb')]+'%'},_0x69ac1e;})})),_0x4fd16b=_[_0x4dddff('0x1e')]({},_0x4fd16b,_0x15e7ad[_0x4dddff('0xf')]),_0x43a82f[_0x4dddff('0x41')](_0x4fd16b);})['then'](function(_0x5e6022){const _0x3082cf=_0x597e3e;if(_0x5e6022)return _0x4e637f=_0x5e6022[_0x3082cf('0x38')],typeof _0x15e7ad[_0x3082cf('0x2f')]['nolimit']===_0x3082cf('0x7')&&(_0x4fd16b[_0x3082cf('0x39')]=qs[_0x3082cf('0x39')](_0x15e7ad[_0x3082cf('0x2f')][_0x3082cf('0x39')]),_0x4fd16b[_0x3082cf('0x28')]=qs['offset'](_0x15e7ad[_0x3082cf('0x2f')][_0x3082cf('0x28')])),_0x43a82f['getUsers'](_0x4fd16b);})['then'](function(_0x2af979){if(_0x2af979)return _0x2af979?{'count':_0x4e637f,'rows':_0x2af979}:null;})[_0x597e3e('0x6')](respondWithResult(_0x13d80a,null))[_0x597e3e('0x5')](handleError(_0x13d80a,null));}; \ No newline at end of file +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 diff --git a/server/api/squareProject/squareProject.events.js b/server/api/squareProject/squareProject.events.js index 30e9cfd..1bdb757 100644 --- a/server/api/squareProject/squareProject.events.js +++ b/server/api/squareProject/squareProject.events.js @@ -1 +1 @@ -const a599_0x2d85=['addHook','undefined','SquareProject','update','setMaxListeners','events','remove','../../mysqldb','emit'];(function(_0x11021e,_0x2d856c){const _0x41d67b=function(_0x2f1a80){while(--_0x2f1a80){_0x11021e['push'](_0x11021e['shift']());}};_0x41d67b(++_0x2d856c);}(a599_0x2d85,0x1d5));const a599_0x41d6=function(_0x11021e,_0x2d856c){_0x11021e=_0x11021e-0x0;let _0x41d67b=a599_0x2d85[_0x11021e];return _0x41d67b;};const _0x8cd023=a599_0x41d6;'use strict';const EventEmitter=require(_0x8cd023('0x4')),SquareProject=require(_0x8cd023('0x6'))['db'][_0x8cd023('0x1')],SquareProjectEvents=new EventEmitter();SquareProjectEvents[_0x8cd023('0x3')](0x0);const events={'afterCreate':'save','afterUpdate':_0x8cd023('0x2'),'afterDestroy':_0x8cd023('0x5')};function emitEvent(_0x2f1a80){return function(_0x500698){const _0x70db42=a599_0x41d6;SquareProjectEvents[_0x70db42('0x7')](_0x2f1a80+':'+_0x500698['id'],_0x500698),SquareProjectEvents[_0x70db42('0x7')](_0x2f1a80,_0x500698);};}for(const e in events){if(typeof events[e]!==_0x8cd023('0x0')){const event=events[e];SquareProject[_0x8cd023('0x8')](e,emitEvent(event));}}module['exports']=SquareProjectEvents; \ No newline at end of file +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 diff --git a/server/api/squareProject/squareProject.model.js b/server/api/squareProject/squareProject.model.js index f151acd..f06058c 100644 --- a/server/api/squareProject/squareProject.model.js +++ b/server/api/squareProject/squareProject.model.js @@ -1 +1 @@ -const a600_0x26f7=['define','exports','SquareProject','square_projects'];(function(_0x2c4ce3,_0x26f799){const _0x34f4c8=function(_0x175809){while(--_0x175809){_0x2c4ce3['push'](_0x2c4ce3['shift']());}};_0x34f4c8(++_0x26f799);}(a600_0x26f7,0x65));const a600_0x34f4=function(_0x2c4ce3,_0x26f799){_0x2c4ce3=_0x2c4ce3-0x0;let _0x34f4c8=a600_0x26f7[_0x2c4ce3];return _0x34f4c8;};const _0x141aa3=a600_0x34f4;'use strict';const attributes=require('./squareProject.attributes');module[_0x141aa3('0x0')]=function(_0x175809){const _0x5c3a76=_0x141aa3,_0x1fda30=_0x175809[_0x5c3a76('0x3')](_0x5c3a76('0x1'),attributes,{'tableName':_0x5c3a76('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1fda30;}; \ No newline at end of file +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 diff --git a/server/api/squareProject/squareProject.rpc.js b/server/api/squareProject/squareProject.rpc.js index b734190..920fcbf 100644 --- a/server/api/squareProject/squareProject.rpc.js +++ b/server/api/squareProject/squareProject.rpc.js @@ -1 +1 @@ -const a601_0x3892=['options','rpc','catch','include','../../rediscache','attributes','stringify','where','lodash','model','map','ShowSquareProject','debug','SquareProject','message'];(function(_0x328314,_0x3892cf){const _0x560803=function(_0x5e7e2b){while(--_0x5e7e2b){_0x328314['push'](_0x328314['shift']());}};_0x560803(++_0x3892cf);}(a601_0x3892,0xbc));const a601_0x5608=function(_0x328314,_0x3892cf){_0x328314=_0x328314-0x0;let _0x560803=a601_0x3892[_0x328314];return _0x560803;};const _0x6fc6b4=a601_0x5608;'use strict';const db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x6fc6b4('0x8')),_=require(_0x6fc6b4('0x0')),{getSocket}=require(_0x6fc6b4('0xb')),socket=getSocket();require('./squareProject.socket')['register'](socket),exports[_0x6fc6b4('0x3')]=function(_0x5e7e2b){const _0x38ec71=this;return new Promise(function(_0x4d6d18,_0x40cb11){const _0x4098c1=a601_0x5608;return db[_0x4098c1('0x5')]['findOne']({'raw':_0x5e7e2b[_0x4098c1('0x7')]?_0x5e7e2b[_0x4098c1('0x7')]['raw']===undefined?!![]:![]:!![],'where':_0x5e7e2b[_0x4098c1('0x7')]?_0x5e7e2b[_0x4098c1('0x7')][_0x4098c1('0xe')]||null:null,'attributes':_0x5e7e2b['options']?_0x5e7e2b[_0x4098c1('0x7')][_0x4098c1('0xc')]||null:null,'include':_0x5e7e2b[_0x4098c1('0x7')]?_0x5e7e2b['options'][_0x4098c1('0xa')]?_[_0x4098c1('0x2')](_0x5e7e2b[_0x4098c1('0x7')]['include'],function(_0x394dcd){const _0x47d94c=_0x4098c1;return{'model':db[_0x394dcd[_0x47d94c('0x1')]],'as':_0x394dcd['as'],'attributes':_0x394dcd['attributes'],'include':_0x394dcd[_0x47d94c('0xa')]?_[_0x47d94c('0x2')](_0x394dcd['include'],function(_0x373eb2){const _0xf81384=_0x47d94c;return{'model':db[_0x373eb2['model']],'as':_0x373eb2['as'],'attributes':_0x373eb2['attributes'],'include':_0x373eb2[_0xf81384('0xa')]?_['map'](_0x373eb2[_0xf81384('0xa')],function(_0x5c231b){const _0x587871=_0xf81384;return{'model':db[_0x5c231b[_0x587871('0x1')]],'as':_0x5c231b['as'],'attributes':_0x5c231b[_0x587871('0xc')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x5b0e19){const _0x108fdc=_0x4098c1;logger['info'](_0x108fdc('0x3'),_0x5e7e2b),logger[_0x108fdc('0x4')](_0x108fdc('0x3'),_0x5e7e2b,JSON[_0x108fdc('0xd')](_0x5b0e19)),_0x4d6d18(_0x5b0e19);})[_0x4098c1('0x9')](function(_0x1bf0cf){const _0x25aef2=_0x4098c1;logger['error'](_0x25aef2('0x3'),_0x1bf0cf[_0x25aef2('0x6')],_0x5e7e2b),_0x40cb11(_0x38ec71['error'](0x1f4,_0x1bf0cf[_0x25aef2('0x6')]));});});}; \ No newline at end of file +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 diff --git a/server/api/squareProject/squareProject.socket.js b/server/api/squareProject/squareProject.socket.js index f2afbc1..f7f62e7 100644 --- a/server/api/squareProject/squareProject.socket.js +++ b/server/api/squareProject/squareProject.socket.js @@ -1 +1 @@ -const a602_0x22f2=['emit','register','length','update','squareProject:','save','./squareProject.events'];(function(_0x3d221b,_0x22f2c0){const _0x30cb4c=function(_0x3e665c){while(--_0x3e665c){_0x3d221b['push'](_0x3d221b['shift']());}};_0x30cb4c(++_0x22f2c0);}(a602_0x22f2,0x16c));const a602_0x30cb=function(_0x3d221b,_0x22f2c0){_0x3d221b=_0x3d221b-0x0;let _0x30cb4c=a602_0x22f2[_0x3d221b];return _0x30cb4c;};const _0x5ca6f1=a602_0x30cb;'use strict';const SquareProjectEvents=require(_0x5ca6f1('0x6')),events=[_0x5ca6f1('0x5'),'remove',_0x5ca6f1('0x3')];function createListener(_0x3e665c,_0x42e11f){return function(_0x59be45){const _0x7741e1=a602_0x30cb;_0x42e11f[_0x7741e1('0x0')](_0x3e665c,_0x59be45);};}exports[_0x5ca6f1('0x1')]=function(_0x56454e){const _0x10b284=_0x5ca6f1;for(let _0x139093=0x0,_0x239c28=events[_0x10b284('0x2')];_0x139093<_0x239c28;_0x139093++){const _0x35c4c3=events[_0x139093],_0x5a564e=createListener(_0x10b284('0x4')+_0x35c4c3,_0x56454e);SquareProjectEvents['on'](_0x35c4c3,_0x5a564e);}}; \ No newline at end of file +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 diff --git a/server/api/squareRecording/index.js b/server/api/squareRecording/index.js index 6f913d2..9b18e20 100644 --- a/server/api/squareRecording/index.js +++ b/server/api/squareRecording/index.js @@ -1 +1 @@ -const a603_0x365d=['./squareRecording.controller','Router','isAuthenticated','show','express','/:id/download','create','put','get','delete','post','exports','/:id','destroy'];(function(_0x4c1c60,_0x365dd7){const _0x4913cc=function(_0x150275){while(--_0x150275){_0x4c1c60['push'](_0x4c1c60['shift']());}};_0x4913cc(++_0x365dd7);}(a603_0x365d,0x197));const a603_0x4913=function(_0x4c1c60,_0x365dd7){_0x4c1c60=_0x4c1c60-0x0;let _0x4913cc=a603_0x365d[_0x4c1c60];return _0x4913cc;};const _0x35b9b7=a603_0x4913;'use strict';const express=require(_0x35b9b7('0x3')),router=express[_0x35b9b7('0x0')](),auth=require('../../components/auth/service'),controller=require(_0x35b9b7('0xd'));router[_0x35b9b7('0x7')]('/',auth[_0x35b9b7('0x1')](),controller['index']),router[_0x35b9b7('0x7')](_0x35b9b7('0xb'),auth[_0x35b9b7('0x1')](),controller[_0x35b9b7('0x2')]),router[_0x35b9b7('0x7')](_0x35b9b7('0x4'),auth['isAuthenticated'](),controller['download']),router[_0x35b9b7('0x9')]('/',auth[_0x35b9b7('0x1')](),controller[_0x35b9b7('0x5')]),router[_0x35b9b7('0x6')]('/:id',auth[_0x35b9b7('0x1')](),controller['update']),router[_0x35b9b7('0x8')]('/:id/delete',auth[_0x35b9b7('0x1')](),controller[_0x35b9b7('0xc')]),module[_0x35b9b7('0xa')]=router; \ No newline at end of file +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 diff --git a/server/api/squareRecording/squareRecording.attributes.js b/server/api/squareRecording/squareRecording.attributes.js index 0e61eb5..1b9ec5d 100644 --- a/server/api/squareRecording/squareRecording.attributes.js +++ b/server/api/squareRecording/squareRecording.attributes.js @@ -1 +1 @@ -const a604_0x3159=['sequelize','lastIndexOf','substring','STRING','savePath'];(function(_0x1b5125,_0x315912){const _0x5c5778=function(_0x2a1d8c){while(--_0x2a1d8c){_0x1b5125['push'](_0x1b5125['shift']());}};_0x5c5778(++_0x315912);}(a604_0x3159,0x8c));const a604_0x5c57=function(_0x1b5125,_0x315912){_0x1b5125=_0x1b5125-0x0;let _0x5c5778=a604_0x3159[_0x1b5125];return _0x5c5778;};const _0xc098c0=a604_0x5c57;'use strict';const Sequelize=require(_0xc098c0('0x0'));module['exports']={'uniqueid':{'type':Sequelize[_0xc098c0('0x3')]},'callerid':{'type':Sequelize[_0xc098c0('0x3')]},'calleridname':{'type':Sequelize[_0xc098c0('0x3')]},'context':{'type':Sequelize[_0xc098c0('0x3')]},'extension':{'type':Sequelize[_0xc098c0('0x3')]},'priority':{'type':Sequelize[_0xc098c0('0x3')]},'accountcode':{'type':Sequelize[_0xc098c0('0x3')]},'dnid':{'type':Sequelize['STRING']},'projectName':{'type':Sequelize[_0xc098c0('0x3')]},'saveName':{'type':Sequelize[_0xc098c0('0x3')]},'filename':{'type':Sequelize[_0xc098c0('0x3')]},'savePath':{'type':Sequelize[_0xc098c0('0x3')]},'format':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x35c3a5=_0xc098c0;let _0x2a1d8c='';const _0x211020=this['getDataValue'](_0x35c3a5('0x4'));return _0x211020&&(_0x2a1d8c=_0x211020[_0x35c3a5('0x2')](_0x211020[_0x35c3a5('0x1')]('.'))),_0x2a1d8c;}}}; \ No newline at end of file +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 diff --git a/server/api/squareRecording/squareRecording.controller.js b/server/api/squareRecording/squareRecording.controller.js index 4f9143b..1ee63a2 100644 --- a/server/api/squareRecording/squareRecording.controller.js +++ b/server/api/squareRecording/squareRecording.controller.js @@ -1 +1 @@ -const a605_0x2f9b=['merge','error','error-middleware/errors','secrets','create','\x22\x20trovato\x20eseguo\x20la\x20cancellazione','download','model','filename','extname','filter','uniqueid','existsSync','end','update','where','ValidationError','info','body','%s.cypher','filters','key','../../config/environment','query','Sequelize','params','keys','rows','util','type','Not\x20found','sequelize','count','recording','send','.cypher','limit','path','File:\x20\x22','message','pick','cancellazione\x20fisica\x20documento\x20%s','SquareRecording\x20not\x20found','sort','../../mysqldb','like','options','SquareRecording','status','attributes','offset','set','savePath','fields','then','findAll','show','findOne','catch','destroy','unlinkSync','../../config/logger','length','name','map','stack','include','includeAll','intersection','format'];(function(_0x3dac84,_0x2f9b41){const _0x26fd37=function(_0x5f4a25){while(--_0x5f4a25){_0x3dac84['push'](_0x3dac84['shift']());}};_0x26fd37(++_0x2f9b41);}(a605_0x2f9b,0x6a));const a605_0x26fd=function(_0x3dac84,_0x2f9b41){_0x3dac84=_0x3dac84-0x0;let _0x26fd37=a605_0x2f9b[_0x3dac84];return _0x26fd37;};const _0x36b3a9=a605_0x26fd;'use strict';const util=require(_0x36b3a9('0x3e')),path=require(_0x36b3a9('0x1')),fs=require('fs'),_=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x36b3a9('0x19'))('api'),config=require(_0x36b3a9('0x38')),db=require(_0x36b3a9('0x8'))['db'],{Op}=require(_0x36b3a9('0x41')),{InternalError}=require(_0x36b3a9('0x24'));function respondWithResult(_0x5f4a25,_0x15893f){return _0x15893f=_0x15893f||0xc8,function(_0x3da408){const _0x33d4cb=a605_0x26fd;if(_0x3da408)return _0x5f4a25[_0x33d4cb('0xc')](_0x15893f)['json'](_0x3da408);};}function respondWithFilteredResult(_0x559e20,_0x32d250){return function(_0x4ad572){const _0x2ade1c=a605_0x26fd;if(_0x4ad572){const _0x1c8cce=_0x4ad572[_0x2ade1c('0x42')],_0x29a721=_0x32d250[_0x2ade1c('0xe')];let _0x313167=_0x32d250['offset']+_0x32d250[_0x2ade1c('0x0')],_0x147873;return _0x313167>=_0x1c8cce?(_0x313167=_0x1c8cce,_0x147873=0xc8):_0x147873=0xce,_0x559e20[_0x2ade1c('0xc')](_0x147873),_0x559e20[_0x2ade1c('0xf')]('Content-Range',_0x29a721+'-'+_0x313167+'/'+_0x1c8cce)['json'](_0x4ad572);}return null;};}function saveUpdates(_0x1479e4){return function(_0x43b477){const _0x138020=a605_0x26fd;if(_0x43b477)return _0x43b477[_0x138020('0x30')](_0x1479e4)[_0x138020('0x12')](function(_0x2a450e){return _0x2a450e;});return null;};}function handleEntityNotFound(_0x23ede4){return function(_0x18c56c){return!_0x18c56c&&_0x23ede4['sendStatus'](0x194),_0x18c56c;};}function handleError(_0x50fa19,_0x375e30){return _0x375e30=_0x375e30||0x1f4,function(_0x376aa7){const _0x5ef992=a605_0x26fd;logger[_0x5ef992('0x23')](_0x376aa7[_0x5ef992('0x1d')]),_0x376aa7[_0x5ef992('0x1b')]&&delete _0x376aa7[_0x5ef992('0x1b')],_0x50fa19[_0x5ef992('0xc')](_0x375e30)['send'](_0x376aa7);};}exports['index']=function(_0x5146d1,_0x2a87bf){const _0x2e0ca1=_0x36b3a9;let _0x1785d8={};const _0x430258={},_0x512c65={'count':0x0,'rows':[]},_0x51f1d5=_[_0x2e0ca1('0x1c')](db['SquareRecording']['rawAttributes'],function(_0x4a85ac){const _0x14fd1f=_0x2e0ca1;return{'name':_0x4a85ac['fieldName'],'type':_0x4a85ac[_0x14fd1f('0x3f')][_0x14fd1f('0x37')]};});_0x430258[_0x2e0ca1('0x29')]=_[_0x2e0ca1('0x1c')](_0x51f1d5,'name'),_0x430258['query']=_[_0x2e0ca1('0x3c')](_0x5146d1[_0x2e0ca1('0x39')]),_0x430258['filters']=_[_0x2e0ca1('0x20')](_0x430258[_0x2e0ca1('0x29')],_0x430258['query']),_0x1785d8[_0x2e0ca1('0xd')]=_[_0x2e0ca1('0x20')](_0x430258['model'],qs['fields'](_0x5146d1[_0x2e0ca1('0x39')][_0x2e0ca1('0x11')])),_0x1785d8[_0x2e0ca1('0xd')]=_0x1785d8[_0x2e0ca1('0xd')][_0x2e0ca1('0x1a')]?_0x1785d8[_0x2e0ca1('0xd')]:_0x430258[_0x2e0ca1('0x29')];typeof _0x5146d1[_0x2e0ca1('0x39')]['nolimit']==='undefined'&&(_0x1785d8[_0x2e0ca1('0x0')]=qs[_0x2e0ca1('0x0')](_0x5146d1['query'][_0x2e0ca1('0x0')]),_0x1785d8[_0x2e0ca1('0xe')]=qs['offset'](_0x5146d1[_0x2e0ca1('0x39')][_0x2e0ca1('0xe')]));_0x1785d8['order']=qs['sort'](_0x5146d1[_0x2e0ca1('0x39')][_0x2e0ca1('0x7')]),_0x1785d8['where']=qs[_0x2e0ca1('0x36')](_[_0x2e0ca1('0x4')](_0x5146d1['query'],_0x430258[_0x2e0ca1('0x36')]),_0x51f1d5);_0x5146d1[_0x2e0ca1('0x39')][_0x2e0ca1('0x2c')]&&(_0x1785d8['where']=_[_0x2e0ca1('0x22')](_0x1785d8[_0x2e0ca1('0x31')],{[Op['or']]:_['map'](_0x51f1d5,function(_0x5629e4){const _0x519784=_0x2e0ca1;if(_0x5629e4[_0x519784('0x3f')]!=='VIRTUAL'){const _0x2e7153={};return _0x2e7153[_0x5629e4[_0x519784('0x1b')]]={[Op[_0x519784('0x9')]]:'%'+_0x5146d1['query'][_0x519784('0x2c')]+'%'},_0x2e7153;}})}));_0x1785d8=_['merge']({},_0x1785d8,_0x5146d1[_0x2e0ca1('0xa')]);const _0xc2d3ca={'where':_0x1785d8[_0x2e0ca1('0x31')]};return db[_0x2e0ca1('0xb')]['count'](_0xc2d3ca)[_0x2e0ca1('0x12')](function(_0x2a0b2c){const _0x44d538=_0x2e0ca1;return _0x512c65[_0x44d538('0x42')]=_0x2a0b2c,_0x5146d1[_0x44d538('0x39')][_0x44d538('0x1f')]&&(_0x1785d8[_0x44d538('0x1e')]=[{'all':!![]}]),db['SquareRecording'][_0x44d538('0x13')](_0x1785d8);})['then'](function(_0x59b79f){const _0x53a0ad=_0x2e0ca1;return _0x512c65[_0x53a0ad('0x3d')]=_0x59b79f,_0x512c65;})[_0x2e0ca1('0x12')](respondWithFilteredResult(_0x2a87bf,_0x1785d8))[_0x2e0ca1('0x16')](handleError(_0x2a87bf,null));},exports[_0x36b3a9('0x14')]=function(_0x12e328,_0x1f5cea){const _0x5df61a=_0x36b3a9;let _0x369ffe={'raw':!![],'where':{'id':_0x12e328[_0x5df61a('0x3b')]['id']}};const _0x23f578={};return _0x23f578[_0x5df61a('0x29')]=_['keys'](db[_0x5df61a('0xb')]['rawAttributes']),_0x23f578[_0x5df61a('0x39')]=_[_0x5df61a('0x3c')](_0x12e328[_0x5df61a('0x39')]),_0x23f578[_0x5df61a('0x36')]=_[_0x5df61a('0x20')](_0x23f578[_0x5df61a('0x29')],_0x23f578[_0x5df61a('0x39')]),_0x369ffe['attributes']=_['intersection'](_0x23f578[_0x5df61a('0x29')],qs['fields'](_0x12e328[_0x5df61a('0x39')][_0x5df61a('0x11')])),_0x369ffe[_0x5df61a('0xd')]=_0x369ffe['attributes'][_0x5df61a('0x1a')]?_0x369ffe['attributes']:_0x23f578[_0x5df61a('0x29')],_0x12e328['query']['includeAll']&&(_0x369ffe[_0x5df61a('0x1e')]=[{'all':!![]}]),_0x369ffe=_[_0x5df61a('0x22')]({},_0x369ffe,_0x12e328[_0x5df61a('0xa')]),db[_0x5df61a('0xb')][_0x5df61a('0x15')](_0x369ffe)['then'](handleEntityNotFound(_0x1f5cea,null))[_0x5df61a('0x12')](respondWithResult(_0x1f5cea,null))[_0x5df61a('0x16')](handleError(_0x1f5cea,null));},exports[_0x36b3a9('0x26')]=function(_0x2ee2ae,_0x492cdb){const _0x21126f=_0x36b3a9;return db[_0x21126f('0xb')][_0x21126f('0x26')](_0x2ee2ae[_0x21126f('0x34')],{})[_0x21126f('0x12')](respondWithResult(_0x492cdb,0xc9))['catch'](handleError(_0x492cdb,null));},exports[_0x36b3a9('0x30')]=function(_0x8e2789,_0x531187){const _0x31262d=_0x36b3a9;return _0x8e2789[_0x31262d('0x34')]['id']&&delete _0x8e2789['body']['id'],db[_0x31262d('0xb')][_0x31262d('0x15')]({'where':{'id':_0x8e2789['params']['id']}})['then'](handleEntityNotFound(_0x531187,null))[_0x31262d('0x12')](saveUpdates(_0x8e2789[_0x31262d('0x34')],null))[_0x31262d('0x12')](respondWithResult(_0x531187,null))[_0x31262d('0x16')](handleError(_0x531187,null));},exports['download']=function(_0x407628,_0x27c39e){const _0x483274=_0x36b3a9,_0x57db78=require('../../components/encryptor');let _0x165e1d=![];const _0x53cc60={};return _0x407628[_0x483274('0x39')][_0x483274('0x3f')]&&_0x407628['query'][_0x483274('0x3f')]==='uniqueid'?_0x53cc60[_0x483274('0x2d')]=_0x407628['params']['id']:_0x53cc60['id']=_0x407628[_0x483274('0x3b')]['id'],db[_0x483274('0xb')]['findOne']({'where':_0x53cc60,'attributes':['id',_0x483274('0x10'),_0x483274('0x2a')],'raw':!![]})[_0x483274('0x12')](handleEntityNotFound(_0x27c39e,null))[_0x483274('0x12')](function(_0x4b9835){const _0x51de53=_0x483274;if(_0x4b9835){const _0x137163=_0x4b9835[_0x51de53('0x10')],_0x185d55=util[_0x51de53('0x21')](_0x51de53('0x35'),_0x137163);if(fs[_0x51de53('0x2e')](_0x185d55))return _0x165e1d=!![],_0x57db78['decryptFile'](_0x185d55,_0x137163,config[_0x51de53('0x25')][_0x51de53('0x43')])[_0x51de53('0x12')](function(){return _0x4b9835;});return _0x4b9835;}})[_0x483274('0x12')](function(_0x2ddf56){const _0x13b677=_0x483274;if(_0x2ddf56){const _0x3ea8a2=_0x2ddf56[_0x13b677('0x10')];if(!fs[_0x13b677('0x2e')](_0x3ea8a2))throw new db[(_0x13b677('0x3a'))][(_0x13b677('0x32'))]('SquareRecording\x20not\x20found');return _0x2ddf56[_0x13b677('0x2a')]?_0x27c39e['download'](_0x3ea8a2,_0x2ddf56[_0x13b677('0x2a')]+path[_0x13b677('0x2b')](_0x3ea8a2),function(){_0x165e1d&&fs['unlink'](_0x3ea8a2);}):_0x27c39e[_0x13b677('0x28')](_0x3ea8a2,function(){_0x165e1d&&fs['unlink'](_0x3ea8a2);});}})[_0x483274('0x16')](function(_0xf724aa){const _0x43a3a6=_0x483274;if(_0xf724aa[_0x43a3a6('0x3')]===_0x43a3a6('0x6'))_0x27c39e['status'](0x194)[_0x43a3a6('0x44')](_0x43a3a6('0x40'));else return handleError(_0x27c39e,null);});},exports[_0x36b3a9('0x17')]=function(_0x4ed7b0,_0x306d11){const _0x1f31b5=_0x36b3a9;return db[_0x1f31b5('0xb')][_0x1f31b5('0x15')]({'where':{'id':_0x4ed7b0['params']['id']}})[_0x1f31b5('0x12')](function(_0x1253dd){if(!_0x1253dd)throw new ReferenceError('Entity\x20not\x20found');return _0x1253dd;})[_0x1f31b5('0x12')](function(_0x2ac22b){const _0x174c53=_0x1f31b5;let _0x10050d=_0x2ac22b['savePath'];return logger[_0x174c53('0x33')](_0x174c53('0x5'),_0x10050d),!_['isNil'](_0x2ac22b[_0x174c53('0x10')])&&fs[_0x174c53('0x2e')](_0x10050d)&&(logger[_0x174c53('0x33')](_0x174c53('0x2')+_0x10050d+_0x174c53('0x27')),fs[_0x174c53('0x18')](_0x10050d)),_0x10050d=_0x10050d+_0x174c53('0x45'),!_['isNil'](_0x2ac22b['savePath'])&&fs[_0x174c53('0x2e')](_0x10050d)&&(logger[_0x174c53('0x33')]('File:\x20\x22'+_0x10050d+_0x174c53('0x27')),fs[_0x174c53('0x18')](_0x10050d)),_0x2ac22b;})[_0x1f31b5('0x12')](function(_0x17949b){const _0x33aaac=_0x1f31b5;if(!_0x17949b)throw new InternalError();return _0x17949b[_0x33aaac('0x17')]();})[_0x1f31b5('0x12')](function(){const _0x454750=_0x1f31b5;_0x306d11['status'](0xcc)[_0x454750('0x2f')]();})['catch'](handleError(_0x306d11,null));}; \ No newline at end of file +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 diff --git a/server/api/squareRecording/squareRecording.model.js b/server/api/squareRecording/squareRecording.model.js index a1ae712..a3e26ff 100644 --- a/server/api/squareRecording/squareRecording.model.js +++ b/server/api/squareRecording/squareRecording.model.js @@ -1 +1 @@ -const a606_0x4fc9=['exports','define','./squareRecording.attributes','SquareRecording','square_recordings'];(function(_0x1c775b,_0x4fc991){const _0x139ca0=function(_0x461576){while(--_0x461576){_0x1c775b['push'](_0x1c775b['shift']());}};_0x139ca0(++_0x4fc991);}(a606_0x4fc9,0x1ed));const a606_0x139c=function(_0x1c775b,_0x4fc991){_0x1c775b=_0x1c775b-0x0;let _0x139ca0=a606_0x4fc9[_0x1c775b];return _0x139ca0;};const _0x3147dc=a606_0x139c;'use strict';const attributes=require(_0x3147dc('0x4'));module[_0x3147dc('0x2')]=function(_0x461576){const _0x12b048=_0x3147dc,_0x500063=_0x461576[_0x12b048('0x3')](_0x12b048('0x0'),attributes,{'tableName':_0x12b048('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x500063;}; \ No newline at end of file +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 diff --git a/server/api/squareRecording/squareRecording.rpc.js b/server/api/squareRecording/squareRecording.rpc.js index 80ed8c1..e556306 100644 --- a/server/api/squareRecording/squareRecording.rpc.js +++ b/server/api/squareRecording/squareRecording.rpc.js @@ -1 +1 @@ -const a607_0x2bde=['stringify','options','catch','CreateSquareRecording','raw','debug','rpc','body','error','../../config/logger','then','message','SquareRecording','info','../../mysqldb'];(function(_0xbb31ae,_0x2bde6b){const _0x428d9c=function(_0x209199){while(--_0x209199){_0xbb31ae['push'](_0xbb31ae['shift']());}};_0x428d9c(++_0x2bde6b);}(a607_0x2bde,0x7b));const a607_0x428d=function(_0xbb31ae,_0x2bde6b){_0xbb31ae=_0xbb31ae-0x0;let _0x428d9c=a607_0x2bde[_0xbb31ae];return _0x428d9c;};const _0x4f91c4=a607_0x428d;'use strict';const db=require(_0x4f91c4('0xb'))['db'],logger=require(_0x4f91c4('0x6'))(_0x4f91c4('0x3'));exports['CreateSquareRecording']=function(_0x209199){const _0x1d5574=this;return new Promise(function(_0x26d653,_0x2ecf62){const _0x19c67d=a607_0x428d;return db[_0x19c67d('0x9')]['create'](_0x209199[_0x19c67d('0x4')],{'raw':_0x209199[_0x19c67d('0xd')]?_0x209199[_0x19c67d('0xd')][_0x19c67d('0x1')]===undefined?!![]:![]:!![]})[_0x19c67d('0x7')](function(_0x42cf37){const _0x3a8f04=_0x19c67d;logger[_0x3a8f04('0xa')]('CreateSquareRecording',_0x209199),logger[_0x3a8f04('0x2')](_0x3a8f04('0x0'),_0x209199,JSON[_0x3a8f04('0xc')](_0x42cf37)),_0x26d653(_0x42cf37);})[_0x19c67d('0xe')](function(_0x2c6b25){const _0x1091a1=_0x19c67d;logger['error'](_0x1091a1('0x0'),_0x2c6b25[_0x1091a1('0x8')],_0x209199),_0x2ecf62(_0x1d5574[_0x1091a1('0x5')](0x1f4,_0x2c6b25['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/squareReport/index.js b/server/api/squareReport/index.js index 307f71f..b2bcf58 100644 --- a/server/api/squareReport/index.js +++ b/server/api/squareReport/index.js @@ -1 +1 @@ -const a608_0x3436=['express','Router','/:id','describe','isAuthenticated','./squareReport.controller','exports','index','create','put','delete','post','../../components/auth/service','get'];(function(_0x327ca2,_0x34368d){const _0x63abf1=function(_0x332c7d){while(--_0x332c7d){_0x327ca2['push'](_0x327ca2['shift']());}};_0x63abf1(++_0x34368d);}(a608_0x3436,0x18f));const a608_0x63ab=function(_0x327ca2,_0x34368d){_0x327ca2=_0x327ca2-0x0;let _0x63abf1=a608_0x3436[_0x327ca2];return _0x63abf1;};const _0x44e326=a608_0x63ab;'use strict';const express=require(_0x44e326('0x7')),router=express[_0x44e326('0x8')](),auth=require(_0x44e326('0x5')),controller=require(_0x44e326('0xc'));router[_0x44e326('0x6')]('/',auth['isAuthenticated'](),controller[_0x44e326('0x0')]),router['get']('/describe',auth[_0x44e326('0xb')](),controller[_0x44e326('0xa')]),router[_0x44e326('0x6')](_0x44e326('0x9'),auth['isAuthenticated'](),controller['show']),router[_0x44e326('0x4')]('/',auth['isAuthenticated'](),controller[_0x44e326('0x1')]),router[_0x44e326('0x2')](_0x44e326('0x9'),auth[_0x44e326('0xb')](),controller['update']),router[_0x44e326('0x3')]('/:id',auth['isAuthenticated'](),controller['destroy']),module[_0x44e326('0xd')]=router; \ No newline at end of file +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 diff --git a/server/api/squareReport/squareReport.attributes.js b/server/api/squareReport/squareReport.attributes.js index 39c1eca..16be992 100644 --- a/server/api/squareReport/squareReport.attributes.js +++ b/server/api/squareReport/squareReport.attributes.js @@ -1 +1 @@ -const a609_0x1e43=['BOOLEAN','sequelize','DATE','exports','STRING'];(function(_0x19e0bb,_0x1e4360){const _0x1175a5=function(_0x144cb8){while(--_0x144cb8){_0x19e0bb['push'](_0x19e0bb['shift']());}};_0x1175a5(++_0x1e4360);}(a609_0x1e43,0x67));const a609_0x1175=function(_0x19e0bb,_0x1e4360){_0x19e0bb=_0x19e0bb-0x0;let _0x1175a5=a609_0x1e43[_0x19e0bb];return _0x1175a5;};const _0x18b9e5=a609_0x1175;'use strict';const Sequelize=require(_0x18b9e5('0x3'));module[_0x18b9e5('0x0')]={'network':{'type':Sequelize[_0x18b9e5('0x1')]},'network_script':{'type':Sequelize['STRING']},'request':{'type':Sequelize[_0x18b9e5('0x1')]},'channel':{'type':Sequelize[_0x18b9e5('0x1')]},'language':{'type':Sequelize[_0x18b9e5('0x1')]},'type':{'type':Sequelize[_0x18b9e5('0x1')]},'uniqueid':{'type':Sequelize[_0x18b9e5('0x1')]},'version':{'type':Sequelize['STRING']},'callerid':{'type':Sequelize[_0x18b9e5('0x1')]},'calleridname':{'type':Sequelize[_0x18b9e5('0x1')]},'callingpres':{'type':Sequelize[_0x18b9e5('0x1')]},'callingani2':{'type':Sequelize[_0x18b9e5('0x1')]},'callington':{'type':Sequelize[_0x18b9e5('0x1')]},'callingtns':{'type':Sequelize['STRING']},'dnid':{'type':Sequelize[_0x18b9e5('0x1')]},'rdnis':{'type':Sequelize[_0x18b9e5('0x1')]},'context':{'type':Sequelize[_0x18b9e5('0x1')]},'extension':{'type':Sequelize[_0x18b9e5('0x1')]},'priority':{'type':Sequelize[_0x18b9e5('0x1')]},'enhanced':{'type':Sequelize[_0x18b9e5('0x1')]},'accountcode':{'type':Sequelize[_0x18b9e5('0x1')]},'threadid':{'type':Sequelize[_0x18b9e5('0x1')]},'project_name':{'type':Sequelize[_0x18b9e5('0x1')]},'joinAt':{'type':Sequelize[_0x18b9e5('0x4')]},'leaveAt':{'type':Sequelize[_0x18b9e5('0x4')]},'bot':{'type':Sequelize[_0x18b9e5('0x2')],'defaultValue':![]}}; \ No newline at end of file +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 diff --git a/server/api/squareReport/squareReport.controller.js b/server/api/squareReport/squareReport.controller.js index 108168d..8aaecac 100644 --- a/server/api/squareReport/squareReport.controller.js +++ b/server/api/squareReport/squareReport.controller.js @@ -1 +1 @@ -const a610_0x5830=['model','fields','../../mysqldb','rawAttributes','like','index','fieldName','offset','include','merge','set','params','includeAll','name','../../config/logger','limit','create','pick','destroy','map','status','json','sequelize','SquareReport','key','error','describe','attributes','VIRTUAL','findAll','keys','stack','rows','options','lodash','nolimit','sort','query','undefined','findOne','send','../../components/parsers/qs','then','filter','where','body','update','sendStatus','type','catch','intersection','filters','count','length','end'];(function(_0x4f1501,_0x58301d){const _0x4dd43f=function(_0x1af735){while(--_0x1af735){_0x4f1501['push'](_0x4f1501['shift']());}};_0x4dd43f(++_0x58301d);}(a610_0x5830,0xcf));const a610_0x4dd4=function(_0x4f1501,_0x58301d){_0x4f1501=_0x4f1501-0x0;let _0x4dd43f=a610_0x5830[_0x4f1501];return _0x4dd43f;};const _0x1a0876=a610_0x4dd4;'use strict';const _=require(_0x1a0876('0x2f')),qs=require(_0x1a0876('0x36')),logger=require(_0x1a0876('0x1b'))('api'),db=require(_0x1a0876('0xf'))['db'],{Op}=require(_0x1a0876('0x23'));function respondWithResult(_0x1af735,_0x49e41d){return _0x49e41d=_0x49e41d||0xc8,function(_0x2a244a){const _0x54e2fe=a610_0x4dd4;if(_0x2a244a)return _0x1af735[_0x54e2fe('0x21')](_0x49e41d)[_0x54e2fe('0x22')](_0x2a244a);};}function respondWithFilteredResult(_0x17faa2,_0x18cfc1){return function(_0x4bd21d){const _0x849aec=a610_0x4dd4;if(_0x4bd21d){const _0x5a5e80=_0x4bd21d[_0x849aec('0xa')],_0xca2058=_0x18cfc1['offset'];let _0x103348=_0x18cfc1[_0x849aec('0x14')]+_0x18cfc1[_0x849aec('0x1c')],_0x3de5d2;return _0x103348>=_0x5a5e80?(_0x103348=_0x5a5e80,_0x3de5d2=0xc8):_0x3de5d2=0xce,_0x17faa2[_0x849aec('0x21')](_0x3de5d2),_0x17faa2[_0x849aec('0x17')]('Content-Range',_0xca2058+'-'+_0x103348+'/'+_0x5a5e80)[_0x849aec('0x22')](_0x4bd21d);}return null;};}function saveUpdates(_0x30abba){return function(_0x5f0103){const _0x17fca6=a610_0x4dd4;if(_0x5f0103)return _0x5f0103[_0x17fca6('0x4')](_0x30abba)[_0x17fca6('0x0')](function(_0x4889e7){return _0x4889e7;});return null;};}function removeEntity(_0x357a2){return function(_0x20ac64){const _0x3a6366=a610_0x4dd4;if(_0x20ac64)return _0x20ac64[_0x3a6366('0x1f')]()[_0x3a6366('0x0')](function(){const _0x5a7e4d=_0x3a6366;_0x357a2[_0x5a7e4d('0x21')](0xcc)[_0x5a7e4d('0xc')]();});};}function handleEntityNotFound(_0x3c367d){return function(_0x39333b){const _0x1fffa4=a610_0x4dd4;return!_0x39333b&&_0x3c367d[_0x1fffa4('0x5')](0x194),_0x39333b;};}function handleError(_0x128d90,_0x59f18b){return _0x59f18b=_0x59f18b||0x1f4,function(_0x4f664a){const _0x450150=a610_0x4dd4;logger[_0x450150('0x26')](_0x4f664a[_0x450150('0x2c')]),_0x4f664a[_0x450150('0x1a')]&&delete _0x4f664a['name'],_0x128d90[_0x450150('0x21')](_0x59f18b)[_0x450150('0x35')](_0x4f664a);};}exports[_0x1a0876('0x12')]=function(_0x37aab9,_0x49e07b){const _0x3c16b8=_0x1a0876;let _0x3f4d96={};const _0x83ad51={},_0x49c99f={'count':0x0,'rows':[]},_0x2319fb=_[_0x3c16b8('0x20')](db[_0x3c16b8('0x24')][_0x3c16b8('0x10')],function(_0x5ff892){const _0x3d0457=_0x3c16b8;return{'name':_0x5ff892[_0x3d0457('0x13')],'type':_0x5ff892[_0x3d0457('0x6')][_0x3d0457('0x25')]};});_0x83ad51[_0x3c16b8('0xd')]=_[_0x3c16b8('0x20')](_0x2319fb,'name'),_0x83ad51[_0x3c16b8('0x32')]=_[_0x3c16b8('0x2b')](_0x37aab9[_0x3c16b8('0x32')]),_0x83ad51['filters']=_['intersection'](_0x83ad51[_0x3c16b8('0xd')],_0x83ad51[_0x3c16b8('0x32')]),_0x3f4d96[_0x3c16b8('0x28')]=_[_0x3c16b8('0x8')](_0x83ad51[_0x3c16b8('0xd')],qs['fields'](_0x37aab9[_0x3c16b8('0x32')][_0x3c16b8('0xe')])),_0x3f4d96['attributes']=_0x3f4d96[_0x3c16b8('0x28')][_0x3c16b8('0xb')]?_0x3f4d96[_0x3c16b8('0x28')]:_0x83ad51[_0x3c16b8('0xd')];typeof _0x37aab9['query'][_0x3c16b8('0x30')]===_0x3c16b8('0x33')&&(_0x3f4d96[_0x3c16b8('0x1c')]=qs['limit'](_0x37aab9[_0x3c16b8('0x32')][_0x3c16b8('0x1c')]),_0x3f4d96[_0x3c16b8('0x14')]=qs[_0x3c16b8('0x14')](_0x37aab9[_0x3c16b8('0x32')][_0x3c16b8('0x14')]));_0x3f4d96['order']=qs[_0x3c16b8('0x31')](_0x37aab9['query'][_0x3c16b8('0x31')]),_0x3f4d96[_0x3c16b8('0x2')]=qs['filters'](_[_0x3c16b8('0x1e')](_0x37aab9[_0x3c16b8('0x32')],_0x83ad51[_0x3c16b8('0x9')]),_0x2319fb);_0x37aab9[_0x3c16b8('0x32')]['filter']&&(_0x3f4d96[_0x3c16b8('0x2')]=_[_0x3c16b8('0x16')](_0x3f4d96['where'],{[Op['or']]:_[_0x3c16b8('0x20')](_0x2319fb,function(_0x101daf){const _0x349afc=_0x3c16b8;if(_0x101daf['type']!==_0x349afc('0x29')){const _0xbb9b59={};return _0xbb9b59[_0x101daf[_0x349afc('0x1a')]]={[Op[_0x349afc('0x11')]]:'%'+_0x37aab9['query'][_0x349afc('0x1')]+'%'},_0xbb9b59;}})}));_0x3f4d96=_[_0x3c16b8('0x16')]({},_0x3f4d96,_0x37aab9[_0x3c16b8('0x2e')]);const _0x42df20={'where':_0x3f4d96[_0x3c16b8('0x2')]};return db['SquareReport'][_0x3c16b8('0xa')](_0x42df20)[_0x3c16b8('0x0')](function(_0x4eec5a){const _0x590ef3=_0x3c16b8;return _0x49c99f[_0x590ef3('0xa')]=_0x4eec5a,_0x37aab9[_0x590ef3('0x32')][_0x590ef3('0x19')]&&(_0x3f4d96[_0x590ef3('0x15')]=[{'all':!![]}]),db['SquareReport'][_0x590ef3('0x2a')](_0x3f4d96);})[_0x3c16b8('0x0')](function(_0x3675bd){const _0x1d87ea=_0x3c16b8;return _0x49c99f[_0x1d87ea('0x2d')]=_0x3675bd,_0x49c99f;})[_0x3c16b8('0x0')](respondWithFilteredResult(_0x49e07b,_0x3f4d96))[_0x3c16b8('0x7')](handleError(_0x49e07b,null));},exports['show']=function(_0x3bff42,_0xd97a7a){const _0x3bce95=_0x1a0876;let _0x50ef66={'raw':!![],'where':{'id':_0x3bff42['params']['id']}};const _0x4f0e9b={};return _0x4f0e9b[_0x3bce95('0xd')]=_[_0x3bce95('0x2b')](db[_0x3bce95('0x24')][_0x3bce95('0x10')]),_0x4f0e9b['query']=_[_0x3bce95('0x2b')](_0x3bff42[_0x3bce95('0x32')]),_0x4f0e9b[_0x3bce95('0x9')]=_[_0x3bce95('0x8')](_0x4f0e9b['model'],_0x4f0e9b['query']),_0x50ef66[_0x3bce95('0x28')]=_['intersection'](_0x4f0e9b[_0x3bce95('0xd')],qs['fields'](_0x3bff42[_0x3bce95('0x32')]['fields'])),_0x50ef66[_0x3bce95('0x28')]=_0x50ef66['attributes'][_0x3bce95('0xb')]?_0x50ef66[_0x3bce95('0x28')]:_0x4f0e9b['model'],_0x3bff42[_0x3bce95('0x32')][_0x3bce95('0x19')]&&(_0x50ef66[_0x3bce95('0x15')]=[{'all':!![]}]),_0x50ef66=_[_0x3bce95('0x16')]({},_0x50ef66,_0x3bff42[_0x3bce95('0x2e')]),db[_0x3bce95('0x24')]['findOne'](_0x50ef66)[_0x3bce95('0x0')](handleEntityNotFound(_0xd97a7a,null))['then'](respondWithResult(_0xd97a7a,null))[_0x3bce95('0x7')](handleError(_0xd97a7a,null));},exports['create']=function(_0x54927f,_0x44660b){const _0x9a93ae=_0x1a0876;return db[_0x9a93ae('0x24')][_0x9a93ae('0x1d')](_0x54927f[_0x9a93ae('0x3')],{})[_0x9a93ae('0x0')](respondWithResult(_0x44660b,0xc9))[_0x9a93ae('0x7')](handleError(_0x44660b,null));},exports[_0x1a0876('0x4')]=function(_0xe7a24b,_0x13e63e){const _0xda564f=_0x1a0876;return _0xe7a24b[_0xda564f('0x3')]['id']&&delete _0xe7a24b[_0xda564f('0x3')]['id'],db['SquareReport'][_0xda564f('0x34')]({'where':{'id':_0xe7a24b[_0xda564f('0x18')]['id']}})['then'](handleEntityNotFound(_0x13e63e,null))[_0xda564f('0x0')](saveUpdates(_0xe7a24b[_0xda564f('0x3')],null))[_0xda564f('0x0')](respondWithResult(_0x13e63e,null))[_0xda564f('0x7')](handleError(_0x13e63e,null));},exports[_0x1a0876('0x1f')]=function(_0x294571,_0xd627f8){const _0x286de8=_0x1a0876;return db[_0x286de8('0x24')]['findOne']({'where':{'id':_0x294571[_0x286de8('0x18')]['id']}})[_0x286de8('0x0')](handleEntityNotFound(_0xd627f8,null))[_0x286de8('0x0')](removeEntity(_0xd627f8,null))[_0x286de8('0x7')](handleError(_0xd627f8,null));},exports[_0x1a0876('0x27')]=function(_0x27d372,_0x42a403){const _0x588693=_0x1a0876;return db[_0x588693('0x24')][_0x588693('0x27')]()['then'](respondWithResult(_0x42a403,null))[_0x588693('0x7')](handleError(_0x42a403,null));}; \ No newline at end of file +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 diff --git a/server/api/squareReport/squareReport.model.js b/server/api/squareReport/squareReport.model.js index d130d0b..ced1a5f 100644 --- a/server/api/squareReport/squareReport.model.js +++ b/server/api/squareReport/squareReport.model.js @@ -1 +1 @@ -const a611_0xa7f4=['leaveAt','define','report_square','project_name'];(function(_0x277d68,_0xa7f4f1){const _0x3c796b=function(_0x5446ba){while(--_0x5446ba){_0x277d68['push'](_0x277d68['shift']());}};_0x3c796b(++_0xa7f4f1);}(a611_0xa7f4,0x1a0));const a611_0x3c79=function(_0x277d68,_0xa7f4f1){_0x277d68=_0x277d68-0x0;let _0x3c796b=a611_0xa7f4[_0x277d68];return _0x3c796b;};'use strict';const attributes=require('./squareReport.attributes');module['exports']=function(_0x5446ba){const _0x563faa=a611_0x3c79,_0xd0997e=_0x5446ba[_0x563faa('0x1')]('SquareReport',attributes,{'tableName':_0x563faa('0x2'),'paranoid':![],'indexes':[{'name':'uid_pname','fields':['uniqueid',_0x563faa('0x3')]},{'name':_0x563faa('0x0'),'fields':[_0x563faa('0x0')]}],'timestamps':!![]});return _0xd0997e;}; \ No newline at end of file +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 diff --git a/server/api/squareReport/squareReport.rpc.js b/server/api/squareReport/squareReport.rpc.js index 66c84a8..75a80aa 100644 --- a/server/api/squareReport/squareReport.rpc.js +++ b/server/api/squareReport/squareReport.rpc.js @@ -1 +1 @@ -const a612_0x3fea=['CreateSquareReport','raw','create','UpdateSquareReport','where','rpc','update','limit','debug','attributes','options','body','info','stringify','message','catch','error','../../mysqldb','then','../../config/logger'];(function(_0x5cc30e,_0x3feaa0){const _0x52fa97=function(_0x4a6502){while(--_0x4a6502){_0x5cc30e['push'](_0x5cc30e['shift']());}};_0x52fa97(++_0x3feaa0);}(a612_0x3fea,0x145));const a612_0x52fa=function(_0x5cc30e,_0x3feaa0){_0x5cc30e=_0x5cc30e-0x0;let _0x52fa97=a612_0x3fea[_0x5cc30e];return _0x52fa97;};const _0x212450=a612_0x52fa;'use strict';const db=require(_0x212450('0xc'))['db'],logger=require(_0x212450('0xe'))(_0x212450('0x0'));exports[_0x212450('0xf')]=function(_0x4a6502){const _0x494af5=this;return new Promise(function(_0x360f43,_0x8c21d7){const _0x566aac=a612_0x52fa;return db['SquareReport'][_0x566aac('0x11')](_0x4a6502['body'],{'raw':_0x4a6502[_0x566aac('0x5')]?_0x4a6502[_0x566aac('0x5')][_0x566aac('0x10')]===undefined?!![]:![]:!![]})[_0x566aac('0xd')](function(_0x3e0b8e){const _0x2da481=_0x566aac;logger[_0x2da481('0x7')]('CreateSquareReport',_0x4a6502),logger[_0x2da481('0x3')](_0x2da481('0xf'),_0x4a6502,JSON[_0x2da481('0x8')](_0x3e0b8e)),_0x360f43(_0x3e0b8e);})[_0x566aac('0xa')](function(_0x5e17a0){const _0x4a77ad=_0x566aac;logger[_0x4a77ad('0xb')](_0x4a77ad('0xf'),_0x5e17a0[_0x4a77ad('0x9')],_0x4a6502),_0x8c21d7(_0x494af5[_0x4a77ad('0xb')](0x1f4,_0x5e17a0[_0x4a77ad('0x9')]));});});},exports[_0x212450('0x12')]=function(_0x368cc4){const _0x4cb806=this;return new Promise(function(_0x38d441,_0x5e7853){const _0x4927ed=a612_0x52fa;return db['SquareReport'][_0x4927ed('0x1')](_0x368cc4[_0x4927ed('0x6')],{'raw':_0x368cc4[_0x4927ed('0x5')]?_0x368cc4['options']['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x368cc4[_0x4927ed('0x5')]?_0x368cc4[_0x4927ed('0x5')][_0x4927ed('0x13')]||null:null,'attributes':_0x368cc4[_0x4927ed('0x5')]?_0x368cc4[_0x4927ed('0x5')][_0x4927ed('0x4')]||null:null,'limit':_0x368cc4[_0x4927ed('0x5')]?_0x368cc4[_0x4927ed('0x5')][_0x4927ed('0x2')]||null:null})[_0x4927ed('0xd')](function(_0x2c2ec6){const _0x3d91f6=_0x4927ed;logger['info'](_0x3d91f6('0x12'),_0x368cc4),logger[_0x3d91f6('0x3')]('UpdateSquareReport',_0x368cc4,JSON['stringify'](_0x2c2ec6)),_0x38d441(_0x2c2ec6);})['catch'](function(_0x204c53){const _0x3491ac=_0x4927ed;logger['error'](_0x3491ac('0x12'),_0x204c53[_0x3491ac('0x9')],_0x368cc4),_0x5e7853(_0x4cb806[_0x3491ac('0xb')](0x1f4,_0x204c53[_0x3491ac('0x9')]));});});}; \ No newline at end of file +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 diff --git a/server/api/squareReportDetail/index.js b/server/api/squareReportDetail/index.js index 468fbca..8645c24 100644 --- a/server/api/squareReportDetail/index.js +++ b/server/api/squareReportDetail/index.js @@ -1 +1 @@ -const a613_0x2050=['post','describe','Router','../../components/auth/service','create','update','index','/:id','isAuthenticated','put','get','express'];(function(_0x43b8b5,_0x2050db){const _0x364d2c=function(_0x3e8958){while(--_0x3e8958){_0x43b8b5['push'](_0x43b8b5['shift']());}};_0x364d2c(++_0x2050db);}(a613_0x2050,0x158));const a613_0x364d=function(_0x43b8b5,_0x2050db){_0x43b8b5=_0x43b8b5-0x0;let _0x364d2c=a613_0x2050[_0x43b8b5];return _0x364d2c;};const _0x32a5b8=a613_0x364d;'use strict';const express=require(_0x32a5b8('0x3')),router=express[_0x32a5b8('0x6')](),auth=require(_0x32a5b8('0x7')),controller=require('./squareReportDetail.controller');router[_0x32a5b8('0x2')]('/',auth[_0x32a5b8('0x0')](),controller[_0x32a5b8('0xa')]),router['get']('/describe',auth[_0x32a5b8('0x0')](),controller[_0x32a5b8('0x5')]),router[_0x32a5b8('0x2')](_0x32a5b8('0xb'),auth[_0x32a5b8('0x0')](),controller['show']),router[_0x32a5b8('0x4')]('/',auth[_0x32a5b8('0x0')](),controller[_0x32a5b8('0x8')]),router[_0x32a5b8('0x1')](_0x32a5b8('0xb'),auth[_0x32a5b8('0x0')](),controller[_0x32a5b8('0x9')]),router['delete'](_0x32a5b8('0xb'),auth[_0x32a5b8('0x0')](),controller['destroy']),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/squareReportDetail/squareReportDetail.attributes.js b/server/api/squareReportDetail/squareReportDetail.attributes.js index 3ca7a82..5f031c0 100644 --- a/server/api/squareReportDetail/squareReportDetail.attributes.js +++ b/server/api/squareReportDetail/squareReportDetail.attributes.js @@ -1 +1 @@ -const a614_0x4a6d=['TEXT','exports','STRING','sequelize'];(function(_0x495179,_0x4a6d7a){const _0x297431=function(_0x36a548){while(--_0x36a548){_0x495179['push'](_0x495179['shift']());}};_0x297431(++_0x4a6d7a);}(a614_0x4a6d,0x70));const a614_0x2974=function(_0x495179,_0x4a6d7a){_0x495179=_0x495179-0x0;let _0x297431=a614_0x4a6d[_0x495179];return _0x297431;};const _0x385548=a614_0x2974;'use strict';const Sequelize=require(_0x385548('0x3'));module[_0x385548('0x1')]={'uniqueid':{'type':Sequelize[_0x385548('0x2')]},'node':{'type':Sequelize[_0x385548('0x2')]},'application':{'type':Sequelize[_0x385548('0x2')]},'data':{'type':Sequelize[_0x385548('0x0')]},'project_name':{'type':Sequelize['STRING']},'callerid':{'type':Sequelize[_0x385548('0x2')]}}; \ No newline at end of file +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 diff --git a/server/api/squareReportDetail/squareReportDetail.controller.js b/server/api/squareReportDetail/squareReportDetail.controller.js index 9e68671..02951f4 100644 --- a/server/api/squareReportDetail/squareReportDetail.controller.js +++ b/server/api/squareReportDetail/squareReportDetail.controller.js @@ -1 +1 @@ -const a615_0x1283=['create','../../mysqldb','../../config/logger','pick','attributes','undefined','api','error','SquareDetailsReport','length','sendStatus','rows','key','include','../../components/parsers/qs','includeAll','count','end','Content-Range','fieldName','name','VIRTUAL','body','offset','sort','update','status','filter','keys','index','fields','merge','then','query','findOne','set','findAll','intersection','catch','like','order','json','limit','params','options','stack','rawAttributes','describe','map','filters','type','model','lodash','where','destroy'];(function(_0x16855f,_0x128314){const _0x1b14c5=function(_0x501b97){while(--_0x501b97){_0x16855f['push'](_0x16855f['shift']());}};_0x1b14c5(++_0x128314);}(a615_0x1283,0x1d5));const a615_0x1b14=function(_0x16855f,_0x128314){_0x16855f=_0x16855f-0x0;let _0x1b14c5=a615_0x1283[_0x16855f];return _0x1b14c5;};const _0x45c94a=a615_0x1b14;'use strict';const _=require(_0x45c94a('0x17')),qs=require(_0x45c94a('0x28')),logger=require(_0x45c94a('0x1c'))(_0x45c94a('0x20')),db=require(_0x45c94a('0x1b'))['db'],{Op}=require('sequelize');function respondWithResult(_0x501b97,_0x443e9b){return _0x443e9b=_0x443e9b||0xc8,function(_0x3dd351){const _0x377a21=a615_0x1b14;if(_0x3dd351)return _0x501b97[_0x377a21('0x34')](_0x443e9b)[_0x377a21('0xc')](_0x3dd351);};}function respondWithFilteredResult(_0x240447,_0x3b9664){return function(_0x4b6297){const _0x45d0fc=a615_0x1b14;if(_0x4b6297){const _0x2ff668=_0x4b6297[_0x45d0fc('0x2a')],_0x5a7cd4=_0x3b9664[_0x45d0fc('0x31')];let _0x162d80=_0x3b9664[_0x45d0fc('0x31')]+_0x3b9664['limit'],_0x1477dc;return _0x162d80>=_0x2ff668?(_0x162d80=_0x2ff668,_0x1477dc=0xc8):_0x1477dc=0xce,_0x240447[_0x45d0fc('0x34')](_0x1477dc),_0x240447[_0x45d0fc('0x6')](_0x45d0fc('0x2c'),_0x5a7cd4+'-'+_0x162d80+'/'+_0x2ff668)[_0x45d0fc('0xc')](_0x4b6297);}return null;};}function saveUpdates(_0x36ebf6){return function(_0x5ba1bd){const _0x29cad5=a615_0x1b14;if(_0x5ba1bd)return _0x5ba1bd[_0x29cad5('0x33')](_0x36ebf6)[_0x29cad5('0x3')](function(_0x3fde66){return _0x3fde66;});return null;};}function removeEntity(_0x22d7f8){return function(_0xb97207){const _0x3c2e91=a615_0x1b14;if(_0xb97207)return _0xb97207[_0x3c2e91('0x19')]()['then'](function(){const _0x39bdc3=_0x3c2e91;_0x22d7f8[_0x39bdc3('0x34')](0xcc)[_0x39bdc3('0x2b')]();});};}function handleEntityNotFound(_0x4c5542){return function(_0x5df8fd){const _0x35554d=a615_0x1b14;return!_0x5df8fd&&_0x4c5542[_0x35554d('0x24')](0x194),_0x5df8fd;};}function handleError(_0x256679,_0x3cdf2f){return _0x3cdf2f=_0x3cdf2f||0x1f4,function(_0x5c3cf4){const _0x85a030=a615_0x1b14;logger[_0x85a030('0x21')](_0x5c3cf4[_0x85a030('0x10')]),_0x5c3cf4[_0x85a030('0x2e')]&&delete _0x5c3cf4[_0x85a030('0x2e')],_0x256679[_0x85a030('0x34')](_0x3cdf2f)['send'](_0x5c3cf4);};}exports[_0x45c94a('0x0')]=function(_0xb2c6ed,_0x1dd4ce){const _0x3f76e1=_0x45c94a;let _0x1381ba={};const _0x495cb2={},_0xe604d2={'count':0x0,'rows':[]},_0xef0845=_[_0x3f76e1('0x13')](db[_0x3f76e1('0x22')][_0x3f76e1('0x11')],function(_0x321a04){const _0x13a67b=_0x3f76e1;return{'name':_0x321a04[_0x13a67b('0x2d')],'type':_0x321a04['type'][_0x13a67b('0x26')]};});_0x495cb2['model']=_['map'](_0xef0845,'name'),_0x495cb2['query']=_[_0x3f76e1('0x36')](_0xb2c6ed[_0x3f76e1('0x4')]),_0x495cb2[_0x3f76e1('0x14')]=_['intersection'](_0x495cb2[_0x3f76e1('0x16')],_0x495cb2[_0x3f76e1('0x4')]),_0x1381ba[_0x3f76e1('0x1e')]=_['intersection'](_0x495cb2[_0x3f76e1('0x16')],qs[_0x3f76e1('0x1')](_0xb2c6ed['query']['fields'])),_0x1381ba[_0x3f76e1('0x1e')]=_0x1381ba['attributes']['length']?_0x1381ba[_0x3f76e1('0x1e')]:_0x495cb2[_0x3f76e1('0x16')];typeof _0xb2c6ed[_0x3f76e1('0x4')]['nolimit']===_0x3f76e1('0x1f')&&(_0x1381ba['limit']=qs['limit'](_0xb2c6ed['query'][_0x3f76e1('0xd')]),_0x1381ba[_0x3f76e1('0x31')]=qs['offset'](_0xb2c6ed[_0x3f76e1('0x4')]['offset']));_0x1381ba[_0x3f76e1('0xb')]=qs[_0x3f76e1('0x32')](_0xb2c6ed['query']['sort']),_0x1381ba[_0x3f76e1('0x18')]=qs[_0x3f76e1('0x14')](_[_0x3f76e1('0x1d')](_0xb2c6ed['query'],_0x495cb2['filters']),_0xef0845);_0xb2c6ed[_0x3f76e1('0x4')][_0x3f76e1('0x35')]&&(_0x1381ba['where']=_[_0x3f76e1('0x2')](_0x1381ba['where'],{[Op['or']]:_[_0x3f76e1('0x13')](_0xef0845,function(_0x458a13){const _0x2ebebf=_0x3f76e1;if(_0x458a13[_0x2ebebf('0x15')]!==_0x2ebebf('0x2f')){const _0x25bc85={};return _0x25bc85[_0x458a13[_0x2ebebf('0x2e')]]={[Op[_0x2ebebf('0xa')]]:'%'+_0xb2c6ed[_0x2ebebf('0x4')][_0x2ebebf('0x35')]+'%'},_0x25bc85;}})}));_0x1381ba=_[_0x3f76e1('0x2')]({},_0x1381ba,_0xb2c6ed[_0x3f76e1('0xf')]);const _0xda2cdb={'where':_0x1381ba[_0x3f76e1('0x18')]};return db[_0x3f76e1('0x22')][_0x3f76e1('0x2a')](_0xda2cdb)[_0x3f76e1('0x3')](function(_0x3a8bbb){const _0x5ec300=_0x3f76e1;return _0xe604d2[_0x5ec300('0x2a')]=_0x3a8bbb,_0xb2c6ed[_0x5ec300('0x4')][_0x5ec300('0x29')]&&(_0x1381ba[_0x5ec300('0x27')]=[{'all':!![]}]),db[_0x5ec300('0x22')][_0x5ec300('0x7')](_0x1381ba);})[_0x3f76e1('0x3')](function(_0x3ca8b4){const _0x22e294=_0x3f76e1;return _0xe604d2[_0x22e294('0x25')]=_0x3ca8b4,_0xe604d2;})[_0x3f76e1('0x3')](respondWithFilteredResult(_0x1dd4ce,_0x1381ba))[_0x3f76e1('0x9')](handleError(_0x1dd4ce,null));},exports['show']=function(_0x52ed7a,_0x60fd15){const _0x305300=_0x45c94a;let _0x54de59={'raw':!![],'where':{'id':_0x52ed7a[_0x305300('0xe')]['id']}};const _0xa2e3bd={};return _0xa2e3bd[_0x305300('0x16')]=_[_0x305300('0x36')](db['SquareDetailsReport'][_0x305300('0x11')]),_0xa2e3bd['query']=_[_0x305300('0x36')](_0x52ed7a[_0x305300('0x4')]),_0xa2e3bd['filters']=_[_0x305300('0x8')](_0xa2e3bd[_0x305300('0x16')],_0xa2e3bd['query']),_0x54de59['attributes']=_[_0x305300('0x8')](_0xa2e3bd[_0x305300('0x16')],qs['fields'](_0x52ed7a['query'][_0x305300('0x1')])),_0x54de59['attributes']=_0x54de59[_0x305300('0x1e')][_0x305300('0x23')]?_0x54de59[_0x305300('0x1e')]:_0xa2e3bd[_0x305300('0x16')],_0x52ed7a[_0x305300('0x4')][_0x305300('0x29')]&&(_0x54de59[_0x305300('0x27')]=[{'all':!![]}]),_0x54de59=_[_0x305300('0x2')]({},_0x54de59,_0x52ed7a[_0x305300('0xf')]),db[_0x305300('0x22')][_0x305300('0x5')](_0x54de59)[_0x305300('0x3')](handleEntityNotFound(_0x60fd15,null))[_0x305300('0x3')](respondWithResult(_0x60fd15,null))[_0x305300('0x9')](handleError(_0x60fd15,null));},exports['create']=function(_0x3f03b9,_0x57a405){const _0x289d9d=_0x45c94a;return db[_0x289d9d('0x22')][_0x289d9d('0x1a')](_0x3f03b9[_0x289d9d('0x30')],{})[_0x289d9d('0x3')](respondWithResult(_0x57a405,0xc9))[_0x289d9d('0x9')](handleError(_0x57a405,null));},exports[_0x45c94a('0x33')]=function(_0x4ffc92,_0x84d15c){const _0x250b16=_0x45c94a;return _0x4ffc92[_0x250b16('0x30')]['id']&&delete _0x4ffc92['body']['id'],db[_0x250b16('0x22')][_0x250b16('0x5')]({'where':{'id':_0x4ffc92[_0x250b16('0xe')]['id']}})[_0x250b16('0x3')](handleEntityNotFound(_0x84d15c,null))[_0x250b16('0x3')](saveUpdates(_0x4ffc92[_0x250b16('0x30')],null))[_0x250b16('0x3')](respondWithResult(_0x84d15c,null))[_0x250b16('0x9')](handleError(_0x84d15c,null));},exports[_0x45c94a('0x19')]=function(_0xcaf1a5,_0x4e0e48){const _0x4677fb=_0x45c94a;return db[_0x4677fb('0x22')][_0x4677fb('0x5')]({'where':{'id':_0xcaf1a5[_0x4677fb('0xe')]['id']}})[_0x4677fb('0x3')](handleEntityNotFound(_0x4e0e48,null))[_0x4677fb('0x3')](removeEntity(_0x4e0e48,null))[_0x4677fb('0x9')](handleError(_0x4e0e48,null));},exports['describe']=function(_0x312412,_0x27c37a){const _0x201bfd=_0x45c94a;return db[_0x201bfd('0x22')][_0x201bfd('0x12')]()[_0x201bfd('0x3')](respondWithResult(_0x27c37a,null))[_0x201bfd('0x9')](handleError(_0x27c37a,null));}; \ No newline at end of file +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 diff --git a/server/api/squareReportDetail/squareReportDetail.model.js b/server/api/squareReportDetail/squareReportDetail.model.js index 179718e..8bca3c5 100644 --- a/server/api/squareReportDetail/squareReportDetail.model.js +++ b/server/api/squareReportDetail/squareReportDetail.model.js @@ -1 +1 @@ -const a616_0x4123=['exports','./squareReportDetail.attributes','define','SquareDetailsReport'];(function(_0x5d34bc,_0x4123b3){const _0x5353f0=function(_0x2f2a6c){while(--_0x2f2a6c){_0x5d34bc['push'](_0x5d34bc['shift']());}};_0x5353f0(++_0x4123b3);}(a616_0x4123,0x15d));const a616_0x5353=function(_0x5d34bc,_0x4123b3){_0x5d34bc=_0x5d34bc-0x0;let _0x5353f0=a616_0x4123[_0x5d34bc];return _0x5353f0;};const _0x150c5b=a616_0x5353;'use strict';const attributes=require(_0x150c5b('0x0'));module[_0x150c5b('0x3')]=function(_0x2f2a6c){const _0x4e0d55=_0x150c5b,_0x52289f=_0x2f2a6c[_0x4e0d55('0x1')](_0x4e0d55('0x2'),attributes,{'tableName':'report_square_details','paranoid':![],'indexes':[],'timestamps':!![]});return _0x52289f;}; \ No newline at end of file +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 diff --git a/server/api/squareReportDetail/squareReportDetail.rpc.js b/server/api/squareReportDetail/squareReportDetail.rpc.js index a814f97..fd2d99a 100644 --- a/server/api/squareReportDetail/squareReportDetail.rpc.js +++ b/server/api/squareReportDetail/squareReportDetail.rpc.js @@ -1 +1 @@ -const a617_0x14ad=['debug','body','create','CreateSquareDetailsReport','options','raw','message','info','SquareDetailsReport','error','catch','rpc','stringify','../../config/logger'];(function(_0x3e4b2a,_0x14ad13){const _0x55b50a=function(_0x115315){while(--_0x115315){_0x3e4b2a['push'](_0x3e4b2a['shift']());}};_0x55b50a(++_0x14ad13);}(a617_0x14ad,0x82));const a617_0x55b5=function(_0x3e4b2a,_0x14ad13){_0x3e4b2a=_0x3e4b2a-0x0;let _0x55b50a=a617_0x14ad[_0x3e4b2a];return _0x55b50a;};const _0xed8c29=a617_0x55b5;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0xed8c29('0x9'))(_0xed8c29('0x7'));exports[_0xed8c29('0xd')]=function(_0x115315){const _0x52a183=this;return new Promise(function(_0x555c26,_0x1f65b0){const _0x1d83dc=a617_0x55b5;return db[_0x1d83dc('0x4')][_0x1d83dc('0xc')](_0x115315[_0x1d83dc('0xb')],{'raw':_0x115315[_0x1d83dc('0x0')]?_0x115315['options'][_0x1d83dc('0x1')]===undefined?!![]:![]:!![]})['then'](function(_0x17bade){const _0xcd9f15=_0x1d83dc;logger[_0xcd9f15('0x3')](_0xcd9f15('0xd'),_0x115315),logger[_0xcd9f15('0xa')](_0xcd9f15('0xd'),_0x115315,JSON[_0xcd9f15('0x8')](_0x17bade)),_0x555c26(_0x17bade);})[_0x1d83dc('0x6')](function(_0x1faea6){const _0x4f8331=_0x1d83dc;logger['error'](_0x4f8331('0xd'),_0x1faea6[_0x4f8331('0x2')],_0x115315),_0x1f65b0(_0x52a183[_0x4f8331('0x5')](0x1f4,_0x1faea6[_0x4f8331('0x2')]));});});}; \ No newline at end of file +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 diff --git a/server/api/system/index.js b/server/api/system/index.js index 8aa6d4d..4c67379 100644 --- a/server/api/system/index.js +++ b/server/api/system/index.js @@ -1 +1 @@ -const a618_0x1294=['exports','killProcess','get','./system.controller','/process/:pid/kill','../../components/auth/service','isAuthenticated','Router','express','index'];(function(_0x85757f,_0x1294c6){const _0x3efccd=function(_0xf7be85){while(--_0xf7be85){_0x85757f['push'](_0x85757f['shift']());}};_0x3efccd(++_0x1294c6);}(a618_0x1294,0xda));const a618_0x3efc=function(_0x85757f,_0x1294c6){_0x85757f=_0x85757f-0x0;let _0x3efccd=a618_0x1294[_0x85757f];return _0x3efccd;};const _0x495670=a618_0x3efc;'use strict';const express=require(_0x495670('0x0')),router=express[_0x495670('0x9')](),auth=require(_0x495670('0x7')),controller=require(_0x495670('0x5'));router[_0x495670('0x4')]('/',auth[_0x495670('0x8')](),controller[_0x495670('0x1')]),router[_0x495670('0x4')](_0x495670('0x6'),auth[_0x495670('0x8')](),controller[_0x495670('0x3')]),module[_0x495670('0x2')]=router; \ No newline at end of file +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 diff --git a/server/api/system/system.controller.js b/server/api/system/system.controller.js index a9436b1..1188228 100644 --- a/server/api/system/system.controller.js +++ b/server/api/system/system.controller.js @@ -1 +1 @@ -const a619_0x2a2e=['status','SIGINT','json','error','name','Process\x20with\x20pid\x20%s\x20killed\x20correctly','components/import/cm','util','killProcess','format','send','catch','../../config/logger','length','kill','index','child_process','inspect','exec','then','pid','Process\x20with\x20pid\x20%s\x20not\x20found!','params','ps\x20-p\x20%s\x20-ww\x20-o\x20args','getAllData','indexOf','<%-\x20name\x20%>,\x20%s,\x20%s,\x20%s'];(function(_0x59b3a0,_0x2a2ec5){const _0x38d875=function(_0x3e7edf){while(--_0x3e7edf){_0x59b3a0['push'](_0x59b3a0['shift']());}};_0x38d875(++_0x2a2ec5);}(a619_0x2a2e,0xac));const a619_0x38d8=function(_0x59b3a0,_0x2a2ec5){_0x59b3a0=_0x59b3a0-0x0;let _0x38d875=a619_0x2a2e[_0x59b3a0];return _0x38d875;};const _0x271830=a619_0x38d8;'use strict';const info=require('systeminformation'),exec=require(_0x271830('0x6'))[_0x271830('0x8')],logger=require(_0x271830('0x2'))('api'),util=require(_0x271830('0x18'));function handleError(_0x3e7edf,_0x1cbe1a,_0x20ff6f){return _0x1cbe1a=_0x1cbe1a||0x1f4,function(_0x4f105e){const _0x46fb91=a619_0x38d8;logger[_0x46fb91('0x14')](_0x46fb91('0x10'),_0x20ff6f,_0x1cbe1a,util[_0x46fb91('0x7')](_0x4f105e,{'showHidden':![],'depth':null})),delete _0x4f105e[_0x46fb91('0x15')],_0x3e7edf['status'](_0x1cbe1a)[_0x46fb91('0x0')](_0x4f105e);};}exports[_0x271830('0x5')]=function(_0x295074,_0x5985e2){const _0x58b2e0=_0x271830;return info[_0x58b2e0('0xe')]()[_0x58b2e0('0x9')](function(_0x55dff6){const _0x59a633=_0x58b2e0;return _0x5985e2['status'](0xc8)[_0x59a633('0x13')](_0x55dff6);})['catch'](function(_0x1d75a8){const _0x4ed042=_0x58b2e0;return _0x5985e2['status'](0x1f4)[_0x4ed042('0x13')](_0x1d75a8);});},exports[_0x271830('0x19')]=function(_0x12c332,_0x4cbad){const _0x382429=_0x271830,_0x5975fa=[_0x382429('0x17')];return new Promise(function(_0x27b80d,_0x4a4fca){const _0x3f94a5=_0x382429;return exec(util[_0x3f94a5('0x1a')](_0x3f94a5('0xd'),_0x12c332[_0x3f94a5('0xc')][_0x3f94a5('0xa')]),function(_0x2fcd0d,_0x1ccd66){if(_0x2fcd0d)return _0x4a4fca(_0x2fcd0d);return _0x27b80d(_0x1ccd66);});})[_0x382429('0x9')](function(_0x53909e){const _0x3e0a91=_0x382429;let _0x183f84=![];for(let _0x15af96=0x0,_0x519189=_0x5975fa[_0x3e0a91('0x3')];_0x15af96<_0x519189,_0x183f84===![];_0x15af96+=0x1){_0x53909e[_0x3e0a91('0xf')](_0x5975fa[_0x15af96])>=0x0&&(_0x183f84=!![]);}if(!_0x183f84)throw new Error(util['format'](_0x3e0a91('0xb'),_0x12c332[_0x3e0a91('0xc')][_0x3e0a91('0xa')]));return process[_0x3e0a91('0x4')](_0x12c332[_0x3e0a91('0xc')]['pid'],_0x3e0a91('0x12')),_0x4cbad[_0x3e0a91('0x11')](0xc8)['json']({'message':util[_0x3e0a91('0x1a')](_0x3e0a91('0x16'),_0x12c332['params'][_0x3e0a91('0xa')])});})[_0x382429('0x1')](handleError(_0x4cbad,null,'killProcess'));}; \ No newline at end of file +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 diff --git a/server/api/tag/index.js b/server/api/tag/index.js index f1cbc22..f2efd96 100644 --- a/server/api/tag/index.js +++ b/server/api/tag/index.js @@ -1 +1 @@ -const a620_0x2b46=['create','delete','/:id','get','isAuthenticated','update','show','put','destroy','exports','express','Router'];(function(_0x4717df,_0x2b460a){const _0x534a8f=function(_0x238538){while(--_0x238538){_0x4717df['push'](_0x4717df['shift']());}};_0x534a8f(++_0x2b460a);}(a620_0x2b46,0x1a7));const a620_0x534a=function(_0x4717df,_0x2b460a){_0x4717df=_0x4717df-0x0;let _0x534a8f=a620_0x2b46[_0x4717df];return _0x534a8f;};const _0x12e84c=a620_0x534a;'use strict';const express=require(_0x12e84c('0x7')),router=express[_0x12e84c('0x8')](),auth=require('../../components/auth/service'),controller=require('./tag.controller');router['get']('/',auth[_0x12e84c('0x1')](),controller['index']),router[_0x12e84c('0x0')]('/:id',auth['isAuthenticated'](),controller[_0x12e84c('0x3')]),router['post']('/',auth['isAuthenticated'](),controller[_0x12e84c('0x9')]),router[_0x12e84c('0x4')](_0x12e84c('0xb'),auth['isAuthenticated'](),controller[_0x12e84c('0x2')]),router[_0x12e84c('0xa')](_0x12e84c('0xb'),auth['isAuthenticated'](),controller[_0x12e84c('0x5')]),module[_0x12e84c('0x6')]=router; \ No newline at end of file +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 diff --git a/server/api/tag/tag.attributes.js b/server/api/tag/tag.attributes.js index 2898343..b19ad4c 100644 --- a/server/api/tag/tag.attributes.js +++ b/server/api/tag/tag.attributes.js @@ -1 +1 @@ -const a621_0x43b5=['#0091EA','name','STRING','sequelize'];(function(_0x13d37b,_0x43b591){const _0x569a44=function(_0x20ef30){while(--_0x20ef30){_0x13d37b['push'](_0x13d37b['shift']());}};_0x569a44(++_0x43b591);}(a621_0x43b5,0x191));const a621_0x569a=function(_0x13d37b,_0x43b591){_0x13d37b=_0x13d37b-0x0;let _0x569a44=a621_0x43b5[_0x13d37b];return _0x569a44;};const _0x1d3490=a621_0x569a;'use strict';const Sequelize=require(_0x1d3490('0x2'));module['exports']={'name':{'type':Sequelize[_0x1d3490('0x1')],'unique':_0x1d3490('0x0'),'allowNull':![],'validate':{'is':/[A-Za-z0-9._\\+*!-]+/,'notEmpty':!![]}},'color':{'type':Sequelize[_0x1d3490('0x1')],'defaultValue':_0x1d3490('0x3')},'description':{'type':Sequelize[_0x1d3490('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/tag/tag.controller.js b/server/api/tag/tag.controller.js index 5231c03..cf8cd83 100644 --- a/server/api/tag/tag.controller.js +++ b/server/api/tag/tag.controller.js @@ -1 +1 @@ -const a622_0x3c3e=['catch','Content-Range','pick','VIRTUAL','UserProfileSection','UserProfileResource','status','index','filters','user','filter','where','key','attributes','sendStatus','Tag','Tags','../../config/logger','set','intersection','autoAssociation','sort','order','rawAttributes','stack','type','rows','options','includeAll','map','fields','../../components/parsers/qs','params','limit','keys','api','body','offset','../../mysqldb','create','update','findOne','fieldName','then','name','undefined','query','sequelize','nolimit','destroy','get','count','show','model','lodash','Unable\x20to\x20retrieve\x20the\x20current\x20user','json','merge','role'];(function(_0x5bb38d,_0x3c3ef7){const _0x4879dd=function(_0x553743){while(--_0x553743){_0x5bb38d['push'](_0x5bb38d['shift']());}};_0x4879dd(++_0x3c3ef7);}(a622_0x3c3e,0xa9));const a622_0x4879=function(_0x5bb38d,_0x3c3ef7){_0x5bb38d=_0x5bb38d-0x0;let _0x4879dd=a622_0x3c3e[_0x5bb38d];return _0x4879dd;};const _0x2cbcd7=a622_0x4879;'use strict';const _=require(_0x2cbcd7('0x3')),qs=require(_0x2cbcd7('0x27')),logger=require(_0x2cbcd7('0x19'))(_0x2cbcd7('0x2b')),db=require(_0x2cbcd7('0x2e'))['db'],{Op}=require(_0x2cbcd7('0x37'));function respondWithResult(_0x553743,_0x34f332){return _0x34f332=_0x34f332||0xc8,function(_0x83215){const _0x3f3a16=a622_0x4879;if(_0x83215)return _0x553743[_0x3f3a16('0xe')](_0x34f332)[_0x3f3a16('0x5')](_0x83215);};}function respondWithFilteredResult(_0x41a555,_0xfd25ec){return function(_0xfcc20b){const _0x5bcc05=a622_0x4879;if(_0xfcc20b){const _0x11e318=_0xfcc20b['count'],_0x155db5=_0xfd25ec[_0x5bcc05('0x2d')];let _0x54059b=_0xfd25ec['offset']+_0xfd25ec['limit'],_0x3e59b2;return _0x54059b>=_0x11e318?(_0x54059b=_0x11e318,_0x3e59b2=0xc8):_0x3e59b2=0xce,_0x41a555[_0x5bcc05('0xe')](_0x3e59b2),_0x41a555[_0x5bcc05('0x1a')](_0x5bcc05('0x9'),_0x155db5+'-'+_0x54059b+'/'+_0x11e318)[_0x5bcc05('0x5')](_0xfcc20b);}return null;};}function saveUpdates(_0x3e3180){return function(_0x1f362c){const _0x1daa64=a622_0x4879;if(_0x1f362c)return _0x1f362c[_0x1daa64('0x30')](_0x3e3180)[_0x1daa64('0x33')](function(_0x360918){return _0x360918;});return null;};}function removeEntity(_0x4c3d65){return function(_0x59eeaf){const _0x131e75=a622_0x4879;if(_0x59eeaf)return _0x59eeaf[_0x131e75('0x39')]()[_0x131e75('0x33')](function(){const _0x4ba8c7=_0x131e75,_0x15c9a7=_0x59eeaf[_0x4ba8c7('0x3a')]({'plain':!![]}),_0x16dd30=_0x4ba8c7('0x18');return db[_0x4ba8c7('0xd')]['destroy']({'where':{'type':_0x16dd30,'resourceId':_0x15c9a7['id']}})[_0x4ba8c7('0x33')](function(){return _0x59eeaf;});})['then'](function(){const _0x35d626=_0x131e75;_0x4c3d65[_0x35d626('0xe')](0xcc)['end']();});};}function handleEntityNotFound(_0x3851a1){return function(_0x1a5233){const _0xed345a=a622_0x4879;return!_0x1a5233&&_0x3851a1[_0xed345a('0x16')](0x194),_0x1a5233;};}function handleError(_0x6891e7,_0x5e66e7){return _0x5e66e7=_0x5e66e7||0x1f4,function(_0x169caa){const _0xcb3036=a622_0x4879;logger['error'](_0x169caa[_0xcb3036('0x20')]),_0x169caa['name']&&delete _0x169caa['name'],_0x6891e7[_0xcb3036('0xe')](_0x5e66e7)['send'](_0x169caa);};}exports[_0x2cbcd7('0xf')]=function(_0xc83394,_0x1d1e84){const _0xef6c07=_0x2cbcd7;let _0x18876d={};const _0x4cc5b7={},_0x51eee0={'count':0x0,'rows':[]},_0x146c55=_['map'](db[_0xef6c07('0x17')]['rawAttributes'],function(_0x1b3afb){const _0x16ad89=_0xef6c07;return{'name':_0x1b3afb[_0x16ad89('0x32')],'type':_0x1b3afb[_0x16ad89('0x21')][_0x16ad89('0x14')]};});_0x4cc5b7[_0xef6c07('0x2')]=_[_0xef6c07('0x25')](_0x146c55,_0xef6c07('0x34')),_0x4cc5b7['query']=_[_0xef6c07('0x2a')](_0xc83394[_0xef6c07('0x36')]),_0x4cc5b7[_0xef6c07('0x10')]=_['intersection'](_0x4cc5b7[_0xef6c07('0x2')],_0x4cc5b7[_0xef6c07('0x36')]),_0x18876d[_0xef6c07('0x15')]=_[_0xef6c07('0x1b')](_0x4cc5b7['model'],qs[_0xef6c07('0x26')](_0xc83394[_0xef6c07('0x36')][_0xef6c07('0x26')])),_0x18876d['attributes']=_0x18876d['attributes']['length']?_0x18876d[_0xef6c07('0x15')]:_0x4cc5b7[_0xef6c07('0x2')];typeof _0xc83394[_0xef6c07('0x36')][_0xef6c07('0x38')]===_0xef6c07('0x35')&&(_0x18876d[_0xef6c07('0x29')]=qs[_0xef6c07('0x29')](_0xc83394['query'][_0xef6c07('0x29')]),_0x18876d[_0xef6c07('0x2d')]=qs['offset'](_0xc83394[_0xef6c07('0x36')]['offset']));_0x18876d[_0xef6c07('0x1e')]=qs[_0xef6c07('0x1d')](_0xc83394[_0xef6c07('0x36')][_0xef6c07('0x1d')]),_0x18876d[_0xef6c07('0x13')]=qs[_0xef6c07('0x10')](_[_0xef6c07('0xa')](_0xc83394['query'],_0x4cc5b7['filters']),_0x146c55);_0xc83394[_0xef6c07('0x36')][_0xef6c07('0x12')]&&(_0x18876d[_0xef6c07('0x13')]=_['merge'](_0x18876d['where'],{[Op['or']]:_[_0xef6c07('0x25')](_0x146c55,function(_0x349e6d){const _0x2a1916=_0xef6c07;if(_0x349e6d[_0x2a1916('0x21')]!==_0x2a1916('0xb')){const _0x186ce0={};return _0x186ce0[_0x349e6d['name']]={[Op['like']]:'%'+_0xc83394['query'][_0x2a1916('0x12')]+'%'},_0x186ce0;}})}));_0x18876d=_[_0xef6c07('0x6')]({},_0x18876d,_0xc83394[_0xef6c07('0x23')]);const _0x2fca25={'where':_0x18876d['where']};return db[_0xef6c07('0x17')][_0xef6c07('0x0')](_0x2fca25)[_0xef6c07('0x33')](function(_0x2dbaf6){const _0x46aba6=_0xef6c07;return _0x51eee0[_0x46aba6('0x0')]=_0x2dbaf6,_0xc83394[_0x46aba6('0x36')][_0x46aba6('0x24')]&&(_0x18876d['include']=[{'all':!![]}]),db['Tag']['findAll'](_0x18876d);})[_0xef6c07('0x33')](function(_0x2f7df9){const _0x2ae9bc=_0xef6c07;return _0x51eee0[_0x2ae9bc('0x22')]=_0x2f7df9,_0x51eee0;})[_0xef6c07('0x33')](respondWithFilteredResult(_0x1d1e84,_0x18876d))[_0xef6c07('0x8')](handleError(_0x1d1e84,null));},exports[_0x2cbcd7('0x1')]=function(_0x37d149,_0x344522){const _0x4a7a90=_0x2cbcd7;let _0x552d5b={'raw':!![],'where':{'id':_0x37d149[_0x4a7a90('0x28')]['id']}};const _0x2594ab={};return _0x2594ab['model']=_[_0x4a7a90('0x2a')](db[_0x4a7a90('0x17')][_0x4a7a90('0x1f')]),_0x2594ab[_0x4a7a90('0x36')]=_['keys'](_0x37d149[_0x4a7a90('0x36')]),_0x2594ab[_0x4a7a90('0x10')]=_['intersection'](_0x2594ab['model'],_0x2594ab[_0x4a7a90('0x36')]),_0x552d5b[_0x4a7a90('0x15')]=_[_0x4a7a90('0x1b')](_0x2594ab[_0x4a7a90('0x2')],qs[_0x4a7a90('0x26')](_0x37d149[_0x4a7a90('0x36')][_0x4a7a90('0x26')])),_0x552d5b[_0x4a7a90('0x15')]=_0x552d5b[_0x4a7a90('0x15')]['length']?_0x552d5b[_0x4a7a90('0x15')]:_0x2594ab[_0x4a7a90('0x2')],_0x37d149[_0x4a7a90('0x36')][_0x4a7a90('0x24')]&&(_0x552d5b['include']=[{'all':!![]}]),_0x552d5b=_[_0x4a7a90('0x6')]({},_0x552d5b,_0x37d149[_0x4a7a90('0x23')]),db[_0x4a7a90('0x17')]['findOne'](_0x552d5b)['then'](handleEntityNotFound(_0x344522,null))[_0x4a7a90('0x33')](respondWithResult(_0x344522,null))[_0x4a7a90('0x8')](handleError(_0x344522,null));},exports['create']=function(_0x4d5100,_0x27df1e){const _0xe221aa=_0x2cbcd7;return db[_0xe221aa('0x17')][_0xe221aa('0x2f')](_0x4d5100['body'],{})[_0xe221aa('0x33')](function(_0x36dc1d){const _0x4b32ee=_0xe221aa,_0x1d6bbe=_0x4d5100[_0x4b32ee('0x11')]['get']({'plain':!![]});if(!_0x1d6bbe)throw new Error(_0x4b32ee('0x4'));if(_0x1d6bbe[_0x4b32ee('0x7')]===_0x4b32ee('0x11')){const _0x1ba71a=_0x36dc1d[_0x4b32ee('0x3a')]({'plain':!![]}),_0x43ef53=_0x4b32ee('0x18');return db[_0x4b32ee('0xc')][_0x4b32ee('0x31')]({'where':{'name':_0x43ef53,'userProfileId':_0x1d6bbe['userProfileId']},'raw':!![]})['then'](function(_0x109ca3){const _0x18ea55=_0x4b32ee;return _0x109ca3&&_0x109ca3[_0x18ea55('0x1c')]===0x0?db[_0x18ea55('0xd')][_0x18ea55('0x2f')]({'name':_0x1ba71a['name'],'resourceId':_0x1ba71a['id'],'type':_0x109ca3['name'],'sectionId':_0x109ca3['id']},{})[_0x18ea55('0x33')](function(){return _0x36dc1d;}):_0x36dc1d;})[_0x4b32ee('0x8')](function(_0x2b534e){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x2b534e);throw _0x2b534e;});}return _0x36dc1d;})['then'](respondWithResult(_0x27df1e,0xc9))[_0xe221aa('0x8')](handleError(_0x27df1e,null));},exports[_0x2cbcd7('0x30')]=function(_0x752da8,_0x558d99){const _0x2803c6=_0x2cbcd7;return _0x752da8[_0x2803c6('0x2c')]['id']&&delete _0x752da8['body']['id'],db[_0x2803c6('0x17')][_0x2803c6('0x31')]({'where':{'id':_0x752da8[_0x2803c6('0x28')]['id']}})[_0x2803c6('0x33')](handleEntityNotFound(_0x558d99,null))[_0x2803c6('0x33')](saveUpdates(_0x752da8[_0x2803c6('0x2c')],null))[_0x2803c6('0x33')](respondWithResult(_0x558d99,null))[_0x2803c6('0x8')](handleError(_0x558d99,null));},exports[_0x2cbcd7('0x39')]=function(_0x4e872d,_0x408e4a){const _0xbb2d90=_0x2cbcd7;return db[_0xbb2d90('0x17')][_0xbb2d90('0x31')]({'where':{'id':_0x4e872d['params']['id']}})[_0xbb2d90('0x33')](handleEntityNotFound(_0x408e4a,null))[_0xbb2d90('0x33')](removeEntity(_0x408e4a,null))[_0xbb2d90('0x8')](handleError(_0x408e4a,null));}; \ No newline at end of file +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 diff --git a/server/api/tag/tag.model.js b/server/api/tag/tag.model.js index 0516af2..b84c88c 100644 --- a/server/api/tag/tag.model.js +++ b/server/api/tag/tag.model.js @@ -1 +1 @@ -const a623_0x7866=['define','./tag.attributes','Tag','exports','tools_tags'];(function(_0x18f7f1,_0x7866ca){const _0x45a8e7=function(_0x2b8e88){while(--_0x2b8e88){_0x18f7f1['push'](_0x18f7f1['shift']());}};_0x45a8e7(++_0x7866ca);}(a623_0x7866,0x1d4));const a623_0x45a8=function(_0x18f7f1,_0x7866ca){_0x18f7f1=_0x18f7f1-0x0;let _0x45a8e7=a623_0x7866[_0x18f7f1];return _0x45a8e7;};const _0x46a129=a623_0x45a8;'use strict';const attributes=require(_0x46a129('0x3'));module[_0x46a129('0x0')]=function(_0x2b8e88){const _0x1e3224=_0x46a129,_0x11cc47=_0x2b8e88[_0x1e3224('0x2')](_0x1e3224('0x4'),attributes,{'tableName':_0x1e3224('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x11cc47;}; \ No newline at end of file +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 diff --git a/server/api/team/index.js b/server/api/team/index.js index 4c0ade5..bdeb351 100644 --- a/server/api/team/index.js +++ b/server/api/team/index.js @@ -1 +1 @@ -const a624_0x1cc2=['/:id','./team.controller','express','create','removeAgents','getQueues','addQueues','Router','post','delete','../../components/auth/service','addAgents','destroy','isAuthenticated','exports','index','put','/:id/queues','show','update','/:id/users','getAgents','get'];(function(_0xb41a40,_0x1cc2dd){const _0x49dd1f=function(_0x6ef018){while(--_0x6ef018){_0xb41a40['push'](_0xb41a40['shift']());}};_0x49dd1f(++_0x1cc2dd);}(a624_0x1cc2,0x106));const a624_0x49dd=function(_0xb41a40,_0x1cc2dd){_0xb41a40=_0xb41a40-0x0;let _0x49dd1f=a624_0x1cc2[_0xb41a40];return _0x49dd1f;};const _0x389fd0=a624_0x49dd;'use strict';const express=require(_0x389fd0('0x10')),router=express[_0x389fd0('0x15')](),auth=require(_0x389fd0('0x1')),controller=require(_0x389fd0('0xf'));router['get']('/',auth[_0x389fd0('0x4')](),controller[_0x389fd0('0x6')]),router[_0x389fd0('0xd')](_0x389fd0('0xe'),auth[_0x389fd0('0x4')](),controller[_0x389fd0('0x9')]),router[_0x389fd0('0xd')](_0x389fd0('0x8'),auth[_0x389fd0('0x4')](),controller[_0x389fd0('0x13')]),router[_0x389fd0('0xd')](_0x389fd0('0xb'),auth[_0x389fd0('0x4')](),controller[_0x389fd0('0xc')]),router['post']('/',auth[_0x389fd0('0x4')](),controller[_0x389fd0('0x11')]),router[_0x389fd0('0x16')](_0x389fd0('0x8'),auth['isAuthenticated'](),controller[_0x389fd0('0x14')]),router['post'](_0x389fd0('0xb'),auth[_0x389fd0('0x4')](),controller[_0x389fd0('0x2')]),router[_0x389fd0('0x7')](_0x389fd0('0xe'),auth['isAuthenticated'](),controller[_0x389fd0('0xa')]),router[_0x389fd0('0x0')](_0x389fd0('0xe'),auth['isAuthenticated'](),controller[_0x389fd0('0x3')]),router[_0x389fd0('0x0')](_0x389fd0('0x8'),auth[_0x389fd0('0x4')](),controller['removeQueues']),router[_0x389fd0('0x0')](_0x389fd0('0xb'),auth[_0x389fd0('0x4')](),controller[_0x389fd0('0x12')]),module[_0x389fd0('0x5')]=router; \ No newline at end of file +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 diff --git a/server/api/team/team.attributes.js b/server/api/team/team.attributes.js index 3e6240f..886acad 100644 --- a/server/api/team/team.attributes.js +++ b/server/api/team/team.attributes.js @@ -1 +1 @@ -const a625_0x55da=['STRING','sequelize','name'];(function(_0x1e01be,_0x55da36){const _0x46f325=function(_0x42efb7){while(--_0x42efb7){_0x1e01be['push'](_0x1e01be['shift']());}};_0x46f325(++_0x55da36);}(a625_0x55da,0x91));const a625_0x46f3=function(_0x1e01be,_0x55da36){_0x1e01be=_0x1e01be-0x0;let _0x46f325=a625_0x55da[_0x1e01be];return _0x46f325;};const _0xf5e187=a625_0x46f3;'use strict';const Sequelize=require(_0xf5e187('0x0'));module['exports']={'name':{'type':Sequelize[_0xf5e187('0x2')],'allowNull':![],'unique':_0xf5e187('0x1')},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +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 diff --git a/server/api/team/team.controller.js b/server/api/team/team.controller.js index f3bba9e..f790fd6 100644 --- a/server/api/team/team.controller.js +++ b/server/api/team/team.controller.js @@ -1 +1 @@ -const a626_0x5eac=['Content-Range','VIRTUAL','length','capitalize','fields','online','params','filters','register','removeQueues','../../config/utils','isArray','get','getAgents','Chat','destroy','include','like','../../rediscache','chat','./team.socket','Queues','userTeam:save','sendStatus','Unknown\x20channel','role','Fax','toLowerCase','api','limit','query','then','merge','options','set','fax','isValidChannel','addAgents','Sequelize','index','sms','User','user','model','emit','UserProfileSection','UserVoiceQueueRt','format','Voice','where','Whatsapp','Team','omit','Queue','openchannel','error','ids','add','lodash','Teams','sort','whatsapp','key','attributes','remove','stack','undefined','upsert','Sms','order','interface','offset','each','autoAssociation','json','Unable\x20to\x20retrieve\x20the\x20current\x20user','findAll','pick','type','channel','voicePause','mail','Mail','create','catch','end','userTeam:remove','rawAttributes','UserProfileResource','util','includeAll','map','count','findOne','body','voice','ValidationError','keys','update','../../config/logger','status','../../mysqldb','getQueues','name','intersection','nolimit','rows','filter'];(function(_0x321c11,_0x5eac17){const _0x346da3=function(_0x17faea){while(--_0x17faea){_0x321c11['push'](_0x321c11['shift']());}};_0x346da3(++_0x5eac17);}(a626_0x5eac,0x19a));const a626_0x346d=function(_0x321c11,_0x5eac17){_0x321c11=_0x321c11-0x0;let _0x346da3=a626_0x5eac[_0x321c11];return _0x346da3;};const _0x212866=a626_0x346d;'use strict';const util=require(_0x212866('0x3')),_=require(_0x212866('0x50')),qs=require('../../components/parsers/qs'),logger=require(_0x212866('0xd'))(_0x212866('0x32')),utils=require(_0x212866('0x20')),{getSocket}=require(_0x212866('0x28')),socket=getSocket(),db=require(_0x212866('0xf'))['db'],{Op}=require('sequelize');require(_0x212866('0x2a'))[_0x212866('0x1e')](socket);function respondWithStatusCode(_0x17faea,_0x12bf9d){return _0x12bf9d=_0x12bf9d||0xcc,function(_0x409e74){const _0x35a582=a626_0x346d;if(_0x409e74)return _0x17faea['sendStatus'](_0x12bf9d);return _0x17faea[_0x35a582('0xe')](_0x12bf9d)[_0x35a582('0x6b')]();};}function respondWithResult(_0x3a7e8e,_0x165787){return _0x165787=_0x165787||0xc8,function(_0x325c56){const _0x10ca4b=a626_0x346d;if(_0x325c56)return _0x3a7e8e[_0x10ca4b('0xe')](_0x165787)['json'](_0x325c56);};}function respondWithFilteredResult(_0x4e77d8,_0xa62728){return function(_0x19c1ed){const _0x9bbb1=a626_0x346d;if(_0x19c1ed){const _0x97a5f8=_0x19c1ed[_0x9bbb1('0x6')],_0x490baa=_0xa62728[_0x9bbb1('0x5d')];let _0x49434e=_0xa62728[_0x9bbb1('0x5d')]+_0xa62728[_0x9bbb1('0x33')],_0x1d0fd3;return _0x49434e>=_0x97a5f8?(_0x49434e=_0x97a5f8,_0x1d0fd3=0xc8):_0x1d0fd3=0xce,_0x4e77d8[_0x9bbb1('0xe')](_0x1d0fd3),_0x4e77d8[_0x9bbb1('0x38')](_0x9bbb1('0x16'),_0x490baa+'-'+_0x49434e+'/'+_0x97a5f8)[_0x9bbb1('0x60')](_0x19c1ed);}return null;};}function saveUpdates(_0x12612c){return function(_0x219da9){const _0x578f2a=a626_0x346d;if(_0x219da9)return _0x219da9[_0x578f2a('0xc')](_0x12612c)[_0x578f2a('0x35')](function(_0x510020){return _0x510020;});return null;};}function removeEntity(_0x1af1e7){return function(_0x5cdd65){const _0x20aeb5=a626_0x346d;if(_0x5cdd65)return _0x5cdd65[_0x20aeb5('0x25')]()[_0x20aeb5('0x35')](function(){const _0x1687bc=_0x20aeb5,_0x315050=_0x5cdd65[_0x1687bc('0x22')]({'plain':!![]}),_0xe735ec=_0x1687bc('0x51');return db[_0x1687bc('0x2')][_0x1687bc('0x25')]({'where':{'type':_0xe735ec,'resourceId':_0x315050['id']}})[_0x1687bc('0x35')](function(){return _0x5cdd65;});})[_0x20aeb5('0x35')](function(){const _0x27b68d=_0x20aeb5;_0x1af1e7[_0x27b68d('0xe')](0xcc)[_0x27b68d('0x6b')]();});};}function handleEntityNotFound(_0x215399){return function(_0x13b02d){const _0x31f1c4=a626_0x346d;return!_0x13b02d&&_0x215399[_0x31f1c4('0x2d')](0x194),_0x13b02d;};}function handleError(_0x5de66c,_0x4e26d4){return _0x4e26d4=_0x4e26d4||0x1f4,function(_0x3633e3){const _0x4b20cf=a626_0x346d;logger[_0x4b20cf('0x4d')](_0x3633e3[_0x4b20cf('0x57')]),_0x3633e3['name']&&delete _0x3633e3[_0x4b20cf('0x11')],_0x5de66c[_0x4b20cf('0xe')](_0x4e26d4)['send'](_0x3633e3);};}exports[_0x212866('0x3d')]=function(_0x42fcbe,_0x168c81){const _0x729b7d=_0x212866;let _0x3397b5={};const _0x1dc8c3={},_0x3de1cf={'count':0x0,'rows':[]},_0x103bc0=_[_0x729b7d('0x5')](db[_0x729b7d('0x49')][_0x729b7d('0x1')],function(_0x344ff7){const _0x134ea3=_0x729b7d;return{'name':_0x344ff7['fieldName'],'type':_0x344ff7['type'][_0x134ea3('0x54')]};});_0x1dc8c3[_0x729b7d('0x41')]=_['map'](_0x103bc0,'name'),_0x1dc8c3[_0x729b7d('0x34')]=_['keys'](_0x42fcbe[_0x729b7d('0x34')]),_0x1dc8c3[_0x729b7d('0x1d')]=_[_0x729b7d('0x12')](_0x1dc8c3[_0x729b7d('0x41')],_0x1dc8c3[_0x729b7d('0x34')]),_0x3397b5[_0x729b7d('0x55')]=_[_0x729b7d('0x12')](_0x1dc8c3[_0x729b7d('0x41')],qs[_0x729b7d('0x1a')](_0x42fcbe[_0x729b7d('0x34')][_0x729b7d('0x1a')])),_0x3397b5[_0x729b7d('0x55')]=_0x3397b5['attributes']['length']?_0x3397b5[_0x729b7d('0x55')]:_0x1dc8c3[_0x729b7d('0x41')];typeof _0x42fcbe[_0x729b7d('0x34')][_0x729b7d('0x13')]===_0x729b7d('0x58')&&(_0x3397b5[_0x729b7d('0x33')]=qs[_0x729b7d('0x33')](_0x42fcbe['query'][_0x729b7d('0x33')]),_0x3397b5['offset']=qs[_0x729b7d('0x5d')](_0x42fcbe['query'][_0x729b7d('0x5d')]));_0x3397b5[_0x729b7d('0x5b')]=qs[_0x729b7d('0x52')](_0x42fcbe[_0x729b7d('0x34')]['sort']),_0x3397b5[_0x729b7d('0x47')]=qs[_0x729b7d('0x1d')](_[_0x729b7d('0x63')](_0x42fcbe['query'],_0x1dc8c3['filters']),_0x103bc0);_0x42fcbe['query'][_0x729b7d('0x15')]&&(_0x3397b5[_0x729b7d('0x47')]=_[_0x729b7d('0x36')](_0x3397b5[_0x729b7d('0x47')],{[Op['or']]:_[_0x729b7d('0x5')](_0x103bc0,function(_0x31f1b3){const _0x4405e4=_0x729b7d;if(_0x31f1b3[_0x4405e4('0x64')]!==_0x4405e4('0x17')){const _0x1d4ccd={};return _0x1d4ccd[_0x31f1b3[_0x4405e4('0x11')]]={[Op['like']]:'%'+_0x42fcbe['query']['filter']+'%'},_0x1d4ccd;}})}));_0x3397b5=_[_0x729b7d('0x36')]({},_0x3397b5,_0x42fcbe[_0x729b7d('0x37')]);const _0x3a9031={'where':_0x3397b5[_0x729b7d('0x47')]};return db[_0x729b7d('0x49')][_0x729b7d('0x6')](_0x3a9031)['then'](function(_0xd3f647){const _0x33da59=_0x729b7d;return _0x3de1cf['count']=_0xd3f647,_0x42fcbe[_0x33da59('0x34')][_0x33da59('0x4')]&&(_0x3397b5[_0x33da59('0x26')]=[{'all':!![]}]),db[_0x33da59('0x49')][_0x33da59('0x62')](_0x3397b5);})[_0x729b7d('0x35')](function(_0x4cbdd8){const _0x258c5c=_0x729b7d;return _0x3de1cf[_0x258c5c('0x14')]=_0x4cbdd8,_0x3de1cf;})['then'](respondWithFilteredResult(_0x168c81,_0x3397b5))['catch'](handleError(_0x168c81,null));},exports['show']=function(_0x45df6c,_0x54cb39){const _0x22a139=_0x212866;let _0x15d520={'raw':![],'where':{'id':_0x45df6c[_0x22a139('0x1c')]['id']}};const _0x669541={};return _0x669541[_0x22a139('0x41')]=_[_0x22a139('0xb')](db['Team']['rawAttributes']),_0x669541['query']=_[_0x22a139('0xb')](_0x45df6c[_0x22a139('0x34')]),_0x669541['filters']=_[_0x22a139('0x12')](_0x669541[_0x22a139('0x41')],_0x669541['query']),_0x15d520[_0x22a139('0x55')]=_[_0x22a139('0x12')](_0x669541[_0x22a139('0x41')],qs[_0x22a139('0x1a')](_0x45df6c['query'][_0x22a139('0x1a')])),_0x15d520['attributes']=_0x15d520['attributes'][_0x22a139('0x18')]?_0x15d520[_0x22a139('0x55')]:_0x669541[_0x22a139('0x41')],_0x45df6c['query'][_0x22a139('0x4')]&&(_0x15d520[_0x22a139('0x26')]=[{'all':!![]}]),_0x15d520=_[_0x22a139('0x36')]({},_0x15d520,_0x45df6c['options']),db['Team'][_0x22a139('0x7')](_0x15d520)[_0x22a139('0x35')](handleEntityNotFound(_0x54cb39,null))[_0x22a139('0x35')](respondWithResult(_0x54cb39,null))[_0x22a139('0x6a')](handleError(_0x54cb39,null));},exports[_0x212866('0x69')]=function(_0x5d606e,_0x3b598d){const _0x1c9086=_0x212866;return db[_0x1c9086('0x49')][_0x1c9086('0x69')](_0x5d606e[_0x1c9086('0x8')],{})[_0x1c9086('0x35')](function(_0x408144){const _0x39bf3e=_0x1c9086,_0x5eef0b=_0x5d606e[_0x39bf3e('0x40')]['get']({'plain':!![]});if(!_0x5eef0b)throw new Error(_0x39bf3e('0x61'));if(_0x5eef0b[_0x39bf3e('0x2f')]===_0x39bf3e('0x40')){const _0x10a8aa=_0x408144['get']({'plain':!![]}),_0x2c13a9=_0x39bf3e('0x51');return db[_0x39bf3e('0x43')]['findOne']({'where':{'name':_0x2c13a9,'userProfileId':_0x5eef0b['userProfileId']},'raw':!![]})[_0x39bf3e('0x35')](function(_0x418522){const _0x5164ee=_0x39bf3e;return _0x418522&&_0x418522[_0x5164ee('0x5f')]===0x0?db[_0x5164ee('0x2')]['create']({'name':_0x10a8aa[_0x5164ee('0x11')],'resourceId':_0x10a8aa['id'],'type':_0x418522[_0x5164ee('0x11')],'sectionId':_0x418522['id']},{})['then'](function(){return _0x408144;}):_0x408144;})['catch'](function(_0x4f43ed){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x4f43ed);throw _0x4f43ed;});}return _0x408144;})[_0x1c9086('0x35')](respondWithResult(_0x3b598d,0xc9))[_0x1c9086('0x6a')](handleError(_0x3b598d,null));},exports[_0x212866('0xc')]=function(_0x32355d,_0x29d5bd){const _0x42b6de=_0x212866;return _0x32355d[_0x42b6de('0x8')]['id']&&delete _0x32355d[_0x42b6de('0x8')]['id'],db[_0x42b6de('0x49')][_0x42b6de('0x7')]({'where':{'id':_0x32355d[_0x42b6de('0x1c')]['id']}})[_0x42b6de('0x35')](handleEntityNotFound(_0x29d5bd,null))[_0x42b6de('0x35')](saveUpdates(_0x32355d[_0x42b6de('0x8')],null))[_0x42b6de('0x35')](respondWithResult(_0x29d5bd,null))[_0x42b6de('0x6a')](handleError(_0x29d5bd,null));},exports[_0x212866('0x25')]=function(_0x29915f,_0x1bab9a){const _0xaf51a0=_0x212866;return db[_0xaf51a0('0x49')][_0xaf51a0('0x7')]({'where':{'id':_0x29915f['params']['id']}})['then'](handleEntityNotFound(_0x1bab9a,null))[_0xaf51a0('0x35')](removeEntity(_0x1bab9a,null))[_0xaf51a0('0x6a')](handleError(_0x1bab9a,null));},exports[_0x212866('0x10')]=function(_0x21774f,_0x439e4a){const _0x52dad4=_0x212866;return db[_0x52dad4('0x49')][_0x52dad4('0x7')]({'where':{'id':_0x21774f[_0x52dad4('0x1c')]['id']}})[_0x52dad4('0x35')](handleEntityNotFound(_0x439e4a,null))['then'](function(_0x28464e){const _0x3db626=_0x52dad4;if(!_0x21774f[_0x3db626('0x34')][_0x3db626('0x65')]||!utils[_0x3db626('0x3a')](_0x21774f[_0x3db626('0x34')][_0x3db626('0x65')]))throw new db[(_0x3db626('0x3c'))][(_0x3db626('0xa'))](_0x3db626('0x2e'));let _0x3983e3={};const _0x55b5fa={};return _0x55b5fa[_0x3db626('0x41')]=_[_0x3db626('0xb')](db[_[_0x3db626('0x19')](_0x21774f['query'][_0x3db626('0x65')]['toLowerCase']())+_0x3db626('0x4b')][_0x3db626('0x1')]),_0x55b5fa[_0x3db626('0x34')]=_[_0x3db626('0xb')](_0x21774f[_0x3db626('0x34')]),_0x55b5fa[_0x3db626('0x1d')]=_['intersection'](_0x55b5fa['model'],_0x55b5fa[_0x3db626('0x34')]),_0x3983e3['attributes']=_[_0x3db626('0x12')](_0x55b5fa[_0x3db626('0x41')],qs[_0x3db626('0x1a')](_0x21774f[_0x3db626('0x34')]['fields'])),_0x3983e3[_0x3db626('0x55')]=_0x3983e3[_0x3db626('0x55')][_0x3db626('0x18')]?_0x3983e3['attributes']:_0x55b5fa[_0x3db626('0x41')],_0x3983e3[_0x3db626('0x33')]=qs[_0x3db626('0x33')](_0x21774f[_0x3db626('0x34')][_0x3db626('0x33')]),_0x3983e3['offset']=qs[_0x3db626('0x5d')](_0x21774f['query'][_0x3db626('0x5d')]),_0x3983e3[_0x3db626('0x5b')]=qs[_0x3db626('0x52')](_0x21774f[_0x3db626('0x34')][_0x3db626('0x52')]),_0x3983e3['where']=qs[_0x3db626('0x1d')](_['pick'](_0x21774f[_0x3db626('0x34')],_0x55b5fa[_0x3db626('0x1d')])),_0x3983e3=_['merge']({},_0x3983e3,_0x21774f['options']),_0x28464e[_0x3db626('0x22')+_[_0x3db626('0x19')](_0x21774f['query']['channel'][_0x3db626('0x31')]())+_0x3db626('0x2b')](_0x3983e3);})[_0x52dad4('0x35')](respondWithResult(_0x439e4a,null))[_0x52dad4('0x6a')](handleError(_0x439e4a,null));},exports['addQueues']=function(_0x37fd64,_0x29fc2d){const _0xe40283=_0x212866;return db[_0xe40283('0x49')][_0xe40283('0x7')]({'where':{'id':_0x37fd64[_0xe40283('0x1c')]['id']}})[_0xe40283('0x35')](function(_0xbdff96){const _0x705d88=_0xe40283;if(_0xbdff96){if(!_0x37fd64[_0x705d88('0x8')][_0x705d88('0x65')]||!utils['isValidChannel'](_0x37fd64['body'][_0x705d88('0x65')]))throw new db['Sequelize'][(_0x705d88('0xa'))]('Unknown\x20channel');return _0xbdff96[_0x705d88('0x4f')+_[_0x705d88('0x19')](_0x37fd64['body']['channel'][_0x705d88('0x31')]())+_0x705d88('0x2b')](_0x37fd64[_0x705d88('0x8')][_0x705d88('0x4e')]);}return null;})['then'](handleEntityNotFound(_0x29fc2d,null))[_0xe40283('0x35')](respondWithStatusCode(_0x29fc2d,null))['catch'](handleError(_0x29fc2d,null));},exports[_0x212866('0x1f')]=function(_0x4f7c00,_0x1d29fa){const _0x42e1b2=_0x212866;return db[_0x42e1b2('0x49')][_0x42e1b2('0x7')]({'where':{'id':_0x4f7c00[_0x42e1b2('0x1c')]['id']}})[_0x42e1b2('0x35')](function(_0x2e4fb6){const _0x37dba5=_0x42e1b2;if(_0x2e4fb6){if(!_0x4f7c00[_0x37dba5('0x34')][_0x37dba5('0x65')]||!utils[_0x37dba5('0x3a')](_0x4f7c00[_0x37dba5('0x34')][_0x37dba5('0x65')]))throw new db['Sequelize'][(_0x37dba5('0xa'))](_0x37dba5('0x2e'));return _0x2e4fb6[_0x37dba5('0x56')+_[_0x37dba5('0x19')](_0x4f7c00['query']['channel'][_0x37dba5('0x31')]())+'Queues'](_0x4f7c00[_0x37dba5('0x34')][_0x37dba5('0x4e')]);}return null;})[_0x42e1b2('0x35')](handleEntityNotFound(_0x1d29fa,null))['then'](respondWithStatusCode(_0x1d29fa,null))[_0x42e1b2('0x6a')](handleError(_0x1d29fa,null));},exports['addAgents']=function(_0x52d1c4,_0x66b43){const _0x50f96a=_0x212866;return db['Team']['findOne']({'where':{'id':_0x52d1c4['params']['id']}})['then'](function(_0xa1e103){const _0x1419c1=a626_0x346d;if(_0xa1e103){const _0x3830b5=[_0x1419c1('0x46'),_0x1419c1('0x24'),_0x1419c1('0x68'),_0x1419c1('0x5a'),_0x1419c1('0x30'),'Openchannel',_0x1419c1('0x48')];return Promise[_0x1419c1('0x5e')](_0x3830b5,function(_0x5de785){const _0x143c71=_0x1419c1;return _0xa1e103[_0x143c71('0x22')+_0x5de785+_0x143c71('0x2b')]({'attributes':['id',_0x143c71('0x11')]})['then'](function(_0x4d5c70){const _0x7cedfc=_0x143c71;return Promise[_0x7cedfc('0x5e')](_0x4d5c70,function(_0x3ed133){const _0x532344=_0x7cedfc;return _0x3ed133[_0x532344('0x3b')](_0x52d1c4[_0x532344('0x8')]['ids'])['then'](function(){const _0x16cda4=_0x532344;if(_0x5de785==='Voice')return db['User']['findAll']({'where':{'id':_0x52d1c4[_0x16cda4('0x8')][_0x16cda4('0x4e')]},'attributes':['id',_0x16cda4('0x11'),_0x16cda4('0x1b'),_0x16cda4('0x66'),_0x16cda4('0x5c')],'raw':!![]})[_0x16cda4('0x35')](function(_0x10da4a){const _0x1caa50=_0x16cda4;return Promise[_0x1caa50('0x5e')](_[_0x1caa50('0x15')](_0x10da4a,{'online':0x1}),function(_0x3caacb){const _0x4a094e=_0x1caa50;return db[_0x4a094e('0x44')][_0x4a094e('0x59')]({'membername':_0x3caacb['name'],'UserId':_0x3caacb['id'],'queue_name':_0x3ed133[_0x4a094e('0x11')],'VoiceQueueId':_0x3ed133['id'],'interface':_['isNil'](_0x3caacb[_0x4a094e('0x5c')])?util[_0x4a094e('0x45')]('SIP/%s',_0x3caacb['name']):_0x3caacb[_0x4a094e('0x5c')],'paused':_0x3caacb[_0x4a094e('0x66')]||![],'penalty':0x0});});});});});})['then'](function(){return _0xa1e103;});})[_0x1419c1('0x35')](function(){return _0xa1e103;});}})[_0x50f96a('0x35')](function(_0x243e00){const _0x3a579e=_0x50f96a;if(_0x243e00)return _0x243e00['addAgents'](_0x52d1c4[_0x3a579e('0x8')][_0x3a579e('0x4e')],{'through':_[_0x3a579e('0x4a')](_0x52d1c4[_0x3a579e('0x8')],['ids','id'])})[_0x3a579e('0x35')](function(_0x44f4db){const _0x29fe33=_0x3a579e;for(let _0x58db20=0x0;_0x58db20<_0x52d1c4[_0x29fe33('0x8')][_0x29fe33('0x4e')][_0x29fe33('0x18')];_0x58db20+=0x1){socket[_0x29fe33('0x42')](_0x29fe33('0x2c'),{'UserId':_0x52d1c4[_0x29fe33('0x8')][_0x29fe33('0x4e')][_0x58db20],'TeamId':_0x52d1c4[_0x29fe33('0x1c')]['id']});}return _0x44f4db;});})['then'](respondWithResult(_0x66b43,null))[_0x50f96a('0x6a')](handleError(_0x66b43,null));},exports['removeAgents']=function(_0x2af559,_0x54ceef){const _0x487da0=_0x212866;return db[_0x487da0('0x49')]['findOne']({'where':{'id':_0x2af559[_0x487da0('0x1c')]['id']}})[_0x487da0('0x35')](handleEntityNotFound(_0x54ceef,null))[_0x487da0('0x35')](function(_0x244f96){const _0x4991e5=_0x487da0;if(_0x244f96)return Promise[_0x4991e5('0x5e')]([_0x4991e5('0x9'),_0x4991e5('0x29'),_0x4991e5('0x67'),_0x4991e5('0x3e'),_0x4991e5('0x39'),_0x4991e5('0x4c'),_0x4991e5('0x53')],function(_0x1f6200){const _0xc875d1=_0x4991e5;return _0x244f96[_0xc875d1('0x22')+_['capitalize'](_0x1f6200)+'Queues']({'attributes':['id',_0xc875d1('0x11')]})[_0xc875d1('0x35')](function(_0x418c13){const _0x289bc1=_0xc875d1;return Promise[_0x289bc1('0x5e')](_0x418c13,function(_0x32f61a){const _0x5f53a2=_0x289bc1;return _0x32f61a['removeAgents'](_0x2af559[_0x5f53a2('0x34')][_0x5f53a2('0x4e')])['then'](function(){const _0x42508f=_0x5f53a2;if(_0x1f6200===_0x42508f('0x9'))return db[_0x42508f('0x44')]['destroy']({'where':{'VoiceQueueId':_0x32f61a['id'],'UserId':_0x2af559[_0x42508f('0x34')][_0x42508f('0x4e')]}});});});})[_0xc875d1('0x35')](function(){return _0x244f96;});})[_0x4991e5('0x35')](function(){return _0x244f96;});})[_0x487da0('0x35')](function(_0x53a0e8){const _0x918dc7=_0x487da0;if(_0x53a0e8)return _0x53a0e8['removeAgents'](_0x2af559[_0x918dc7('0x34')][_0x918dc7('0x4e')])[_0x918dc7('0x35')](function(){const _0x4f8d4b=_0x918dc7;if(_[_0x4f8d4b('0x21')](_0x2af559[_0x4f8d4b('0x34')][_0x4f8d4b('0x4e')]))for(let _0x465005=0x0;_0x465005<_0x2af559[_0x4f8d4b('0x34')][_0x4f8d4b('0x4e')][_0x4f8d4b('0x18')];_0x465005+=0x1){socket[_0x4f8d4b('0x42')]('userTeam:remove',{'UserId':Number(_0x2af559[_0x4f8d4b('0x34')][_0x4f8d4b('0x4e')][_0x465005]),'TeamId':Number(_0x2af559['params']['id'])});}else socket[_0x4f8d4b('0x42')](_0x4f8d4b('0x0'),{'UserId':Number(_0x2af559[_0x4f8d4b('0x34')][_0x4f8d4b('0x4e')]),'TeamId':Number(_0x2af559[_0x4f8d4b('0x1c')]['id'])});});})[_0x487da0('0x35')](respondWithStatusCode(_0x54ceef,null))[_0x487da0('0x6a')](handleError(_0x54ceef,null));},exports[_0x212866('0x23')]=function(_0x3fd415,_0x5675bb){const _0xcedd87=_0x212866;let _0x3370b3={};const _0x2a10d6={};let _0x360089,_0x1f196c;return db[_0xcedd87('0x49')][_0xcedd87('0x7')]({'where':{'id':_0x3fd415[_0xcedd87('0x1c')]['id']}})[_0xcedd87('0x35')](handleEntityNotFound(_0x5675bb,null))[_0xcedd87('0x35')](function(_0x472fd6){const _0x4841e8=_0xcedd87;if(_0x472fd6)return _0x360089=_0x472fd6,_0x2a10d6[_0x4841e8('0x41')]=_[_0x4841e8('0xb')](db[_0x4841e8('0x3f')]['rawAttributes']),_0x2a10d6[_0x4841e8('0x34')]=_[_0x4841e8('0xb')](_0x3fd415['query']),_0x2a10d6[_0x4841e8('0x1d')]=_[_0x4841e8('0x12')](_0x2a10d6['model'],_0x2a10d6['query']),_0x3370b3[_0x4841e8('0x55')]=_[_0x4841e8('0x12')](_0x2a10d6[_0x4841e8('0x41')],qs[_0x4841e8('0x1a')](_0x3fd415[_0x4841e8('0x34')][_0x4841e8('0x1a')])),_0x3370b3[_0x4841e8('0x55')]=_0x3370b3[_0x4841e8('0x55')][_0x4841e8('0x18')]?_0x3370b3[_0x4841e8('0x55')]:_0x2a10d6[_0x4841e8('0x41')],_0x3370b3['order']=qs['sort'](_0x3fd415[_0x4841e8('0x34')]['sort']),_0x3370b3[_0x4841e8('0x47')]=qs['filters'](_[_0x4841e8('0x63')](_0x3fd415[_0x4841e8('0x34')],_0x2a10d6[_0x4841e8('0x1d')])),_0x3fd415[_0x4841e8('0x34')][_0x4841e8('0x15')]&&(_0x3370b3['where']=_[_0x4841e8('0x36')](_0x3370b3[_0x4841e8('0x47')],{[Op['or']]:_['map'](_0x3370b3[_0x4841e8('0x55')],function(_0x396e70){const _0x979a66=_0x4841e8,_0x46318d={};return _0x46318d[_0x396e70]={[Op[_0x979a66('0x27')]]:'%'+_0x3fd415[_0x979a66('0x34')]['filter']+'%'},_0x46318d;})})),_0x3370b3=_[_0x4841e8('0x36')]({},_0x3370b3,_0x3fd415['options']),_0x360089[_0x4841e8('0x23')](_0x3370b3);})['then'](function(_0x3aadff){const _0x32436=_0xcedd87;if(_0x3aadff)return _0x1f196c=_0x3aadff[_0x32436('0x18')],typeof _0x3fd415[_0x32436('0x34')][_0x32436('0x13')]===_0x32436('0x58')&&(_0x3370b3['limit']=qs['limit'](_0x3fd415['query'][_0x32436('0x33')]),_0x3370b3['offset']=qs[_0x32436('0x5d')](_0x3fd415[_0x32436('0x34')][_0x32436('0x5d')])),_0x360089[_0x32436('0x23')](_0x3370b3);})[_0xcedd87('0x35')](function(_0x4e307c){if(_0x4e307c)return _0x4e307c?{'count':_0x1f196c,'rows':_0x4e307c}:null;})[_0xcedd87('0x35')](respondWithResult(_0x5675bb,null))['catch'](handleError(_0x5675bb,null));}; \ No newline at end of file +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 diff --git a/server/api/team/team.events.js b/server/api/team/team.events.js index b5a0ab6..0830915 100644 --- a/server/api/team/team.events.js +++ b/server/api/team/team.events.js @@ -1 +1 @@ -const a627_0x11a8=['events','addHook','exports','emit','undefined','update','remove','../../mysqldb'];(function(_0x449f3f,_0x11a822){const _0x5c2e56=function(_0x591cb6){while(--_0x591cb6){_0x449f3f['push'](_0x449f3f['shift']());}};_0x5c2e56(++_0x11a822);}(a627_0x11a8,0x113));const a627_0x5c2e=function(_0x449f3f,_0x11a822){_0x449f3f=_0x449f3f-0x0;let _0x5c2e56=a627_0x11a8[_0x449f3f];return _0x5c2e56;};const _0x127612=a627_0x5c2e;'use strict';const EventEmitter=require(_0x127612('0x5')),Team=require(_0x127612('0x4'))['db']['Team'],TeamEvents=new EventEmitter();TeamEvents['setMaxListeners'](0x0);const events={'afterCreate':'save','afterUpdate':_0x127612('0x2'),'afterDestroy':_0x127612('0x3')};function emitEvent(_0x591cb6){return function(_0x507073){const _0x565799=a627_0x5c2e;TeamEvents['emit'](_0x591cb6+':'+_0x507073['id'],_0x507073),TeamEvents[_0x565799('0x0')](_0x591cb6,_0x507073);};}for(const e in events){if(typeof events[e]!==_0x127612('0x1')){const event=events[e];Team[_0x127612('0x6')](e,emitEvent(event));}}module[_0x127612('0x7')]=TeamEvents; \ No newline at end of file +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 diff --git a/server/api/team/team.model.js b/server/api/team/team.model.js index 39551cf..11072e5 100644 --- a/server/api/team/team.model.js +++ b/server/api/team/team.model.js @@ -1 +1 @@ -const a628_0x170b=['Team','exports','teams'];(function(_0x17d09d,_0x170b14){const _0x3a2ece=function(_0xaefbcc){while(--_0xaefbcc){_0x17d09d['push'](_0x17d09d['shift']());}};_0x3a2ece(++_0x170b14);}(a628_0x170b,0x174));const a628_0x3a2e=function(_0x17d09d,_0x170b14){_0x17d09d=_0x17d09d-0x0;let _0x3a2ece=a628_0x170b[_0x17d09d];return _0x3a2ece;};const _0x28c58d=a628_0x3a2e;'use strict';const attributes=require('./team.attributes');module[_0x28c58d('0x1')]=function(_0xaefbcc){const _0x243bac=_0x28c58d,_0x5e9646=_0xaefbcc['define'](_0x243bac('0x0'),attributes,{'tableName':_0x243bac('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5e9646;}; \ No newline at end of file +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 diff --git a/server/api/team/team.rpc.js b/server/api/team/team.rpc.js index 76a9435..8279de0 100644 --- a/server/api/team/team.rpc.js +++ b/server/api/team/team.rpc.js @@ -1 +1 @@ -const a629_0x5620=['../../rediscache','register','./team.socket'];(function(_0x21e4e1,_0x562056){const _0xd50507=function(_0x27e1f1){while(--_0x27e1f1){_0x21e4e1['push'](_0x21e4e1['shift']());}};_0xd50507(++_0x562056);}(a629_0x5620,0x76));const a629_0xd505=function(_0x21e4e1,_0x562056){_0x21e4e1=_0x21e4e1-0x0;let _0xd50507=a629_0x5620[_0x21e4e1];return _0xd50507;};const _0x10aa04=a629_0xd505;'use strict';const {getSocket}=require(_0x10aa04('0x2')),socket=getSocket();require(_0x10aa04('0x1'))[_0x10aa04('0x0')](socket); \ No newline at end of file +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 diff --git a/server/api/team/team.socket.js b/server/api/team/team.socket.js index 0c77e0e..26ed363 100644 --- a/server/api/team/team.socket.js +++ b/server/api/team/team.socket.js @@ -1 +1 @@ -const a630_0x35f5=['register','emit','team:','remove','update','length','save','./team.events'];(function(_0x46fe18,_0x35f5fb){const _0x251c04=function(_0x9404e){while(--_0x9404e){_0x46fe18['push'](_0x46fe18['shift']());}};_0x251c04(++_0x35f5fb);}(a630_0x35f5,0x131));const a630_0x251c=function(_0x46fe18,_0x35f5fb){_0x46fe18=_0x46fe18-0x0;let _0x251c04=a630_0x35f5[_0x46fe18];return _0x251c04;};const _0x249da7=a630_0x251c;'use strict';const TeamEvents=require(_0x249da7('0x6')),events=[_0x249da7('0x5'),_0x249da7('0x2'),_0x249da7('0x3')];function createListener(_0x9404e,_0x361d1b){return function(_0x2cc240){const _0x577cf7=a630_0x251c;_0x361d1b[_0x577cf7('0x0')](_0x9404e,_0x2cc240);};}exports[_0x249da7('0x7')]=function(_0x341cd9){const _0x2c85b0=_0x249da7;for(let _0x51d71e=0x0,_0x5534ec=events[_0x2c85b0('0x4')];_0x51d71e<_0x5534ec;_0x51d71e++){const _0x5cf502=events[_0x51d71e],_0x5a4ca0=createListener(_0x2c85b0('0x1')+_0x5cf502,_0x341cd9);TeamEvents['on'](_0x5cf502,_0x5a4ca0);}}; \ No newline at end of file +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 diff --git a/server/api/template/index.js b/server/api/template/index.js index d62a81f..02ef811 100644 --- a/server/api/template/index.js +++ b/server/api/template/index.js @@ -1 +1 @@ -const a631_0x31d7=['destroy','express','show','isAuthenticated','/:id','post','../../components/auth/service','update','Router','delete','create'];(function(_0x23a39e,_0x31d7ff){const _0x4d6d43=function(_0x3ee1b3){while(--_0x3ee1b3){_0x23a39e['push'](_0x23a39e['shift']());}};_0x4d6d43(++_0x31d7ff);}(a631_0x31d7,0x19a));const a631_0x4d6d=function(_0x23a39e,_0x31d7ff){_0x23a39e=_0x23a39e-0x0;let _0x4d6d43=a631_0x31d7[_0x23a39e];return _0x4d6d43;};const _0x3693e7=a631_0x4d6d;'use strict';const express=require(_0x3693e7('0x9')),router=express[_0x3693e7('0x5')](),auth=require(_0x3693e7('0x3')),controller=require('./template.controller');router['get']('/',auth['isAuthenticated'](),controller['index']),router['get'](_0x3693e7('0x1'),auth[_0x3693e7('0x0')](),controller[_0x3693e7('0xa')]),router[_0x3693e7('0x2')]('/',auth[_0x3693e7('0x0')](),controller[_0x3693e7('0x7')]),router['put'](_0x3693e7('0x1'),auth[_0x3693e7('0x0')](),controller[_0x3693e7('0x4')]),router[_0x3693e7('0x6')](_0x3693e7('0x1'),auth['isAuthenticated'](),controller[_0x3693e7('0x8')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/template/template.attributes.js b/server/api/template/template.attributes.js index 9c38039..dd95bb0 100644 --- a/server/api/template/template.attributes.js +++ b/server/api/template/template.attributes.js @@ -1 +1 @@ -const a632_0x2bce=['TEXT','sequelize','STRING'];(function(_0x2070a3,_0x2bce68){const _0x516dff=function(_0x459ba7){while(--_0x459ba7){_0x2070a3['push'](_0x2070a3['shift']());}};_0x516dff(++_0x2bce68);}(a632_0x2bce,0x146));const a632_0x516d=function(_0x2070a3,_0x2bce68){_0x2070a3=_0x2070a3-0x0;let _0x516dff=a632_0x2bce[_0x2070a3];return _0x516dff;};const _0x11b6b3=a632_0x516d;'use strict';const Sequelize=require(_0x11b6b3('0x2'));module['exports']={'name':{'type':Sequelize[_0x11b6b3('0x0')]},'description':{'type':Sequelize['STRING']},'html':{'type':Sequelize[_0x11b6b3('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/template/template.controller.js b/server/api/template/template.controller.js index 6903720..901f13d 100644 --- a/server/api/template/template.controller.js +++ b/server/api/template/template.controller.js @@ -1 +1 @@ -const a633_0x552a=['create','fieldName','findOne','include','rawAttributes','json','name','intersection','then','rows','UserProfileResource','key','options','limit','catch','Content-Range','count','get','../../components/parsers/qs','merge','map','sort','autoAssociation','body','destroy','model','filters','error','user','where','UserProfileSection','index','set','update','nolimit','sequelize','offset','sendStatus','show','stack','attributes','VIRTUAL','end','lodash','length','../../config/logger','userProfileId','Template','api','role','../../mysqldb','query','undefined','status','send','Unable\x20to\x20retrieve\x20the\x20current\x20user','keys','fields','params','type','includeAll'];(function(_0x101225,_0x552a12){const _0x3ae6da=function(_0x492d91){while(--_0x492d91){_0x101225['push'](_0x101225['shift']());}};_0x3ae6da(++_0x552a12);}(a633_0x552a,0xed));const a633_0x3ae6=function(_0x101225,_0x552a12){_0x101225=_0x101225-0x0;let _0x3ae6da=a633_0x552a[_0x101225];return _0x3ae6da;};const _0x243dca=a633_0x3ae6;'use strict';const _=require(_0x243dca('0x32')),qs=require(_0x243dca('0x19')),logger=require(_0x243dca('0x34'))(_0x243dca('0x37')),db=require(_0x243dca('0x39'))['db'],{Op}=require(_0x243dca('0x2a'));function respondWithResult(_0x492d91,_0x4c54ba){return _0x4c54ba=_0x4c54ba||0xc8,function(_0x2619f9){const _0x535e05=a633_0x3ae6;if(_0x2619f9)return _0x492d91[_0x535e05('0x3c')](_0x4c54ba)[_0x535e05('0xc')](_0x2619f9);};}function respondWithFilteredResult(_0x2c7e44,_0x52b795){return function(_0x264874){const _0x250337=a633_0x3ae6;if(_0x264874){const _0x51e91e=_0x264874[_0x250337('0x17')],_0x179c9c=_0x52b795[_0x250337('0x2b')];let _0x4bb3ba=_0x52b795['offset']+_0x52b795[_0x250337('0x14')],_0x162d05;return _0x4bb3ba>=_0x51e91e?(_0x4bb3ba=_0x51e91e,_0x162d05=0xc8):_0x162d05=0xce,_0x2c7e44[_0x250337('0x3c')](_0x162d05),_0x2c7e44[_0x250337('0x27')](_0x250337('0x16'),_0x179c9c+'-'+_0x4bb3ba+'/'+_0x51e91e)[_0x250337('0xc')](_0x264874);}return null;};}function saveUpdates(_0x537376){return function(_0x31b1d4){const _0x5efac1=a633_0x3ae6;if(_0x31b1d4)return _0x31b1d4[_0x5efac1('0x28')](_0x537376)[_0x5efac1('0xf')](function(_0x3c0e24){return _0x3c0e24;});return null;};}function removeEntity(_0x26084e){return function(_0x3bffbd){const _0x5c083b=a633_0x3ae6;if(_0x3bffbd)return _0x3bffbd[_0x5c083b('0x1f')]()['then'](function(){const _0x31a5fe=_0x5c083b,_0x37a5a4=_0x3bffbd[_0x31a5fe('0x18')]({'plain':!![]}),_0x1ee0a6='Templates';return db[_0x31a5fe('0x11')][_0x31a5fe('0x1f')]({'where':{'type':_0x1ee0a6,'resourceId':_0x37a5a4['id']}})[_0x31a5fe('0xf')](function(){return _0x3bffbd;});})[_0x5c083b('0xf')](function(){const _0xeb2f9a=_0x5c083b;_0x26084e[_0xeb2f9a('0x3c')](0xcc)[_0xeb2f9a('0x31')]();});};}function handleEntityNotFound(_0x408cb3){return function(_0x459708){const _0x1f0af0=a633_0x3ae6;return!_0x459708&&_0x408cb3[_0x1f0af0('0x2c')](0x194),_0x459708;};}function handleError(_0x5099d5,_0x3d65b3){return _0x3d65b3=_0x3d65b3||0x1f4,function(_0x20ed34){const _0x3acfb3=a633_0x3ae6;logger['error'](_0x20ed34[_0x3acfb3('0x2e')]),_0x20ed34[_0x3acfb3('0xd')]&&delete _0x20ed34[_0x3acfb3('0xd')],_0x5099d5['status'](_0x3d65b3)[_0x3acfb3('0x0')](_0x20ed34);};}exports[_0x243dca('0x26')]=function(_0x5cacf7,_0xa462e3){const _0x591274=_0x243dca;let _0x2fa283={};const _0x295e08={},_0x5b6aaa={'count':0x0,'rows':[]},_0x2ea432=_[_0x591274('0x1b')](db['Template'][_0x591274('0xb')],function(_0x13dfda){const _0xadf77d=_0x591274;return{'name':_0x13dfda[_0xadf77d('0x8')],'type':_0x13dfda['type'][_0xadf77d('0x12')]};});_0x295e08[_0x591274('0x20')]=_[_0x591274('0x1b')](_0x2ea432,_0x591274('0xd')),_0x295e08[_0x591274('0x3a')]=_[_0x591274('0x2')](_0x5cacf7[_0x591274('0x3a')]),_0x295e08[_0x591274('0x21')]=_[_0x591274('0xe')](_0x295e08[_0x591274('0x20')],_0x295e08[_0x591274('0x3a')]),_0x2fa283['attributes']=_[_0x591274('0xe')](_0x295e08['model'],qs['fields'](_0x5cacf7[_0x591274('0x3a')][_0x591274('0x3')])),_0x2fa283[_0x591274('0x2f')]=_0x2fa283[_0x591274('0x2f')][_0x591274('0x33')]?_0x2fa283['attributes']:_0x295e08[_0x591274('0x20')];typeof _0x5cacf7[_0x591274('0x3a')][_0x591274('0x29')]===_0x591274('0x3b')&&(_0x2fa283[_0x591274('0x14')]=qs[_0x591274('0x14')](_0x5cacf7[_0x591274('0x3a')]['limit']),_0x2fa283[_0x591274('0x2b')]=qs[_0x591274('0x2b')](_0x5cacf7['query'][_0x591274('0x2b')]));_0x2fa283['order']=qs[_0x591274('0x1c')](_0x5cacf7['query']['sort']),_0x2fa283['where']=qs['filters'](_['pick'](_0x5cacf7[_0x591274('0x3a')],_0x295e08[_0x591274('0x21')]),_0x2ea432);_0x5cacf7[_0x591274('0x3a')]['filter']&&(_0x2fa283['where']=_[_0x591274('0x1a')](_0x2fa283[_0x591274('0x24')],{[Op['or']]:_[_0x591274('0x1b')](_0x2ea432,function(_0x2a7619){const _0x3a180d=_0x591274;if(_0x2a7619[_0x3a180d('0x5')]!==_0x3a180d('0x30')){const _0x57063c={};return _0x57063c[_0x2a7619['name']]={[Op['like']]:'%'+_0x5cacf7['query']['filter']+'%'},_0x57063c;}})}));_0x2fa283=_[_0x591274('0x1a')]({},_0x2fa283,_0x5cacf7[_0x591274('0x13')]);const _0x5a0916={'where':_0x2fa283['where']};return db[_0x591274('0x36')][_0x591274('0x17')](_0x5a0916)[_0x591274('0xf')](function(_0x3f721a){const _0x275462=_0x591274;return _0x5b6aaa['count']=_0x3f721a,_0x5cacf7[_0x275462('0x3a')]['includeAll']&&(_0x2fa283['include']=[{'all':!![]}]),db[_0x275462('0x36')]['findAll'](_0x2fa283);})[_0x591274('0xf')](function(_0x100bc4){const _0x56edeb=_0x591274;return _0x5b6aaa[_0x56edeb('0x10')]=_0x100bc4,_0x5b6aaa;})[_0x591274('0xf')](respondWithFilteredResult(_0xa462e3,_0x2fa283))['catch'](handleError(_0xa462e3,null));},exports[_0x243dca('0x2d')]=function(_0x50c778,_0x1f1700){const _0x18d7cc=_0x243dca;let _0xe19c02={'raw':!![],'where':{'id':_0x50c778[_0x18d7cc('0x4')]['id']}};const _0x34f0e2={};return _0x34f0e2[_0x18d7cc('0x20')]=_['keys'](db[_0x18d7cc('0x36')][_0x18d7cc('0xb')]),_0x34f0e2['query']=_[_0x18d7cc('0x2')](_0x50c778['query']),_0x34f0e2[_0x18d7cc('0x21')]=_[_0x18d7cc('0xe')](_0x34f0e2[_0x18d7cc('0x20')],_0x34f0e2[_0x18d7cc('0x3a')]),_0xe19c02[_0x18d7cc('0x2f')]=_[_0x18d7cc('0xe')](_0x34f0e2[_0x18d7cc('0x20')],qs[_0x18d7cc('0x3')](_0x50c778[_0x18d7cc('0x3a')][_0x18d7cc('0x3')])),_0xe19c02[_0x18d7cc('0x2f')]=_0xe19c02[_0x18d7cc('0x2f')][_0x18d7cc('0x33')]?_0xe19c02[_0x18d7cc('0x2f')]:_0x34f0e2['model'],_0x50c778[_0x18d7cc('0x3a')][_0x18d7cc('0x6')]&&(_0xe19c02[_0x18d7cc('0xa')]=[{'all':!![]}]),_0xe19c02=_[_0x18d7cc('0x1a')]({},_0xe19c02,_0x50c778[_0x18d7cc('0x13')]),db[_0x18d7cc('0x36')][_0x18d7cc('0x9')](_0xe19c02)['then'](handleEntityNotFound(_0x1f1700,null))[_0x18d7cc('0xf')](respondWithResult(_0x1f1700,null))[_0x18d7cc('0x15')](handleError(_0x1f1700,null));},exports[_0x243dca('0x7')]=function(_0x26cb2f,_0x4bd16c){const _0x4aca98=_0x243dca;return db[_0x4aca98('0x36')]['create'](_0x26cb2f['body'],{})[_0x4aca98('0xf')](function(_0x5a7135){const _0x7f581a=_0x4aca98,_0x5b2a49=_0x26cb2f['user']['get']({'plain':!![]});if(!_0x5b2a49)throw new Error(_0x7f581a('0x1'));if(_0x5b2a49[_0x7f581a('0x38')]===_0x7f581a('0x23')){const _0xa33131=_0x5a7135[_0x7f581a('0x18')]({'plain':!![]}),_0x3ced1e='Templates';return db[_0x7f581a('0x25')]['findOne']({'where':{'name':_0x3ced1e,'userProfileId':_0x5b2a49[_0x7f581a('0x35')]},'raw':!![]})['then'](function(_0x46a090){const _0x3cb669=_0x7f581a;return _0x46a090&&_0x46a090[_0x3cb669('0x1d')]===0x0?db[_0x3cb669('0x11')][_0x3cb669('0x7')]({'name':_0xa33131[_0x3cb669('0xd')],'resourceId':_0xa33131['id'],'type':_0x46a090['name'],'sectionId':_0x46a090['id']},{})[_0x3cb669('0xf')](function(){return _0x5a7135;}):_0x5a7135;})[_0x7f581a('0x15')](function(_0x4d4d15){const _0x264d12=_0x7f581a;logger[_0x264d12('0x22')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x4d4d15);throw _0x4d4d15;});}return _0x5a7135;})['then'](respondWithResult(_0x4bd16c,0xc9))[_0x4aca98('0x15')](handleError(_0x4bd16c,null));},exports[_0x243dca('0x28')]=function(_0x2c433f,_0x4e72af){const _0x1bc6b3=_0x243dca;return _0x2c433f['body']['id']&&delete _0x2c433f[_0x1bc6b3('0x1e')]['id'],db['Template']['findOne']({'where':{'id':_0x2c433f[_0x1bc6b3('0x4')]['id']}})[_0x1bc6b3('0xf')](handleEntityNotFound(_0x4e72af,null))[_0x1bc6b3('0xf')](saveUpdates(_0x2c433f[_0x1bc6b3('0x1e')],null))[_0x1bc6b3('0xf')](respondWithResult(_0x4e72af,null))[_0x1bc6b3('0x15')](handleError(_0x4e72af,null));},exports[_0x243dca('0x1f')]=function(_0x7a404,_0x409595){const _0x3ebd9f=_0x243dca;return db['Template'][_0x3ebd9f('0x9')]({'where':{'id':_0x7a404[_0x3ebd9f('0x4')]['id']}})[_0x3ebd9f('0xf')](handleEntityNotFound(_0x409595,null))[_0x3ebd9f('0xf')](removeEntity(_0x409595,null))[_0x3ebd9f('0x15')](handleError(_0x409595,null));}; \ No newline at end of file +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 diff --git a/server/api/template/template.model.js b/server/api/template/template.model.js index c09b9c2..0a00ff7 100644 --- a/server/api/template/template.model.js +++ b/server/api/template/template.model.js @@ -1 +1 @@ -const a634_0x22af=['tools_templates','Template','define'];(function(_0x3a0d3d,_0x22af78){const _0x321291=function(_0x49a7bb){while(--_0x49a7bb){_0x3a0d3d['push'](_0x3a0d3d['shift']());}};_0x321291(++_0x22af78);}(a634_0x22af,0xce));const a634_0x3212=function(_0x3a0d3d,_0x22af78){_0x3a0d3d=_0x3a0d3d-0x0;let _0x321291=a634_0x22af[_0x3a0d3d];return _0x321291;};'use strict';const attributes=require('./template.attributes');module['exports']=function(_0x49a7bb){const _0x1f9d0a=a634_0x3212,_0x50d9bd=_0x49a7bb[_0x1f9d0a('0x0')](_0x1f9d0a('0x2'),attributes,{'tableName':_0x1f9d0a('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x50d9bd;}; \ No newline at end of file +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 diff --git a/server/api/template/template.rpc.js b/server/api/template/template.rpc.js index 4b2c233..34636da 100644 --- a/server/api/template/template.rpc.js +++ b/server/api/template/template.rpc.js @@ -1 +1 @@ -const a635_0x4434=['stringify','Template','catch','map','debug','message','findAll','include','limit','options','GetTemplate','error','info','then','rpc','where','attributes','model'];(function(_0x376563,_0x44345a){const _0x548c3c=function(_0x4f279b){while(--_0x4f279b){_0x376563['push'](_0x376563['shift']());}};_0x548c3c(++_0x44345a);}(a635_0x4434,0x6a));const a635_0x548c=function(_0x376563,_0x44345a){_0x376563=_0x376563-0x0;let _0x548c3c=a635_0x4434[_0x376563];return _0x548c3c;};const _0x41a812=a635_0x548c;'use strict';const _=require('lodash'),db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x41a812('0x10'));exports['GetTemplate']=function(_0x4f279b){const _0x1ae14d=this;return new Promise(function(_0x5df379,_0x51567d){const _0x44d399=a635_0x548c;return db[_0x44d399('0x3')][_0x44d399('0x8')]({'raw':_0x4f279b[_0x44d399('0xb')]?_0x4f279b[_0x44d399('0xb')]['raw']===undefined?!![]:![]:!![],'where':_0x4f279b[_0x44d399('0xb')]?_0x4f279b[_0x44d399('0xb')][_0x44d399('0x11')]||null:null,'attributes':_0x4f279b['options']?_0x4f279b[_0x44d399('0xb')][_0x44d399('0x0')]||null:null,'limit':_0x4f279b[_0x44d399('0xb')]?_0x4f279b[_0x44d399('0xb')][_0x44d399('0xa')]||null:null,'include':_0x4f279b[_0x44d399('0xb')]?_0x4f279b[_0x44d399('0xb')][_0x44d399('0x9')]?_[_0x44d399('0x5')](_0x4f279b['options'][_0x44d399('0x9')],function(_0x4c0e07){const _0x5e0e14=_0x44d399;return{'model':db[_0x4c0e07['model']],'as':_0x4c0e07['as'],'attributes':_0x4c0e07[_0x5e0e14('0x0')],'include':_0x4c0e07['include']?_['map'](_0x4c0e07[_0x5e0e14('0x9')],function(_0x418cfa){const _0x295cd8=_0x5e0e14;return{'model':db[_0x418cfa[_0x295cd8('0x1')]],'as':_0x418cfa['as'],'attributes':_0x418cfa[_0x295cd8('0x0')],'include':_0x418cfa[_0x295cd8('0x9')]?_[_0x295cd8('0x5')](_0x418cfa[_0x295cd8('0x9')],function(_0x25df5d){const _0x38c153=_0x295cd8;return{'model':db[_0x25df5d['model']],'as':_0x25df5d['as'],'attributes':_0x25df5d[_0x38c153('0x0')]};}):[]};}):[]};}):[]:[]})[_0x44d399('0xf')](function(_0x31b5cd){const _0x47a71f=_0x44d399;logger[_0x47a71f('0xe')]('GetTemplate',_0x4f279b),logger[_0x47a71f('0x6')](_0x47a71f('0xc'),_0x4f279b,JSON[_0x47a71f('0x2')](_0x31b5cd)),_0x5df379(_0x31b5cd);})[_0x44d399('0x4')](function(_0x64ce04){const _0x20cd57=_0x44d399;logger[_0x20cd57('0xd')](_0x20cd57('0xc'),_0x64ce04[_0x20cd57('0x7')],_0x4f279b),_0x51567d(_0x1ae14d[_0x20cd57('0xd')](0x1f4,_0x64ce04['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/trigger/index.js b/server/api/trigger/index.js index 9b5762e..4616b77 100644 --- a/server/api/trigger/index.js +++ b/server/api/trigger/index.js @@ -1 +1 @@ -const a636_0x1f0b=['Router','post','get','/:id/actions','getAnyConditions','index','/:id/all_conditions','exports','addAction','isAuthenticated','../../components/auth/service','express','getAllConditions','/:id','put','create','./trigger.controller','update','addAllCondition','/:id/any_conditions'];(function(_0xbd2f98,_0x1f0b9c){const _0x4acfe8=function(_0xe8b925){while(--_0xe8b925){_0xbd2f98['push'](_0xbd2f98['shift']());}};_0x4acfe8(++_0x1f0b9c);}(a636_0x1f0b,0x1cf));const a636_0x4acf=function(_0xbd2f98,_0x1f0b9c){_0xbd2f98=_0xbd2f98-0x0;let _0x4acfe8=a636_0x1f0b[_0xbd2f98];return _0x4acfe8;};const _0x26fe6e=a636_0x4acf;'use strict';const express=require(_0x26fe6e('0x8')),router=express[_0x26fe6e('0x11')](),auth=require(_0x26fe6e('0x7')),controller=require(_0x26fe6e('0xd'));router[_0x26fe6e('0x13')]('/',auth['isAuthenticated'](),controller[_0x26fe6e('0x2')]),router['get']('/:id',auth['isAuthenticated'](),controller['show']),router[_0x26fe6e('0x13')](_0x26fe6e('0x3'),auth[_0x26fe6e('0x6')](),controller[_0x26fe6e('0x9')]),router['get'](_0x26fe6e('0x10'),auth['isAuthenticated'](),controller[_0x26fe6e('0x1')]),router[_0x26fe6e('0x13')](_0x26fe6e('0x0'),auth['isAuthenticated'](),controller['getActions']),router[_0x26fe6e('0x12')]('/',auth['isAuthenticated'](),controller[_0x26fe6e('0xc')]),router[_0x26fe6e('0x12')](_0x26fe6e('0x3'),auth[_0x26fe6e('0x6')](),controller[_0x26fe6e('0xf')]),router[_0x26fe6e('0x12')](_0x26fe6e('0x10'),auth[_0x26fe6e('0x6')](),controller['addAnyCondition']),router['post'](_0x26fe6e('0x0'),auth[_0x26fe6e('0x6')](),controller[_0x26fe6e('0x5')]),router[_0x26fe6e('0xb')](_0x26fe6e('0xa'),auth[_0x26fe6e('0x6')](),controller[_0x26fe6e('0xe')]),router['delete'](_0x26fe6e('0xa'),auth['isAuthenticated'](),controller['destroy']),module[_0x26fe6e('0x4')]=router; \ No newline at end of file +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 diff --git a/server/api/trigger/trigger.attributes.js b/server/api/trigger/trigger.attributes.js index 6374bf6..acbd1e7 100644 --- a/server/api/trigger/trigger.attributes.js +++ b/server/api/trigger/trigger.attributes.js @@ -1 +1 @@ -const a637_0x3df8=['STRING','exports','sequelize','BOOLEAN'];(function(_0x22ee8e,_0x3df87f){const _0x17503c=function(_0x21f882){while(--_0x21f882){_0x22ee8e['push'](_0x22ee8e['shift']());}};_0x17503c(++_0x3df87f);}(a637_0x3df8,0xa7));const a637_0x1750=function(_0x22ee8e,_0x3df87f){_0x22ee8e=_0x22ee8e-0x0;let _0x17503c=a637_0x3df8[_0x22ee8e];return _0x17503c;};const _0x4b0fd2=a637_0x1750;'use strict';const Sequelize=require(_0x4b0fd2('0x3'));module[_0x4b0fd2('0x2')]={'name':{'type':Sequelize['STRING']},'channel':{'type':Sequelize[_0x4b0fd2('0x1')]},'description':{'type':Sequelize[_0x4b0fd2('0x1')]},'status':{'type':Sequelize[_0x4b0fd2('0x0')],'defaultValue':![]}}; \ No newline at end of file +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 diff --git a/server/api/trigger/trigger.controller.js b/server/api/trigger/trigger.controller.js index 429e238..5754b6b 100644 --- a/server/api/trigger/trigger.controller.js +++ b/server/api/trigger/trigger.controller.js @@ -1 +1 @@ -const a638_0x421d=['TriggerAnyId','show','options','offset','pick','findOne','TriggerAllId','end','autoAssociation','Unable\x20to\x20retrieve\x20the\x20current\x20user','name','merge','getAnyConditions','api','keys','user','model','key','Trigger','send','fields','where','../../mysqldb','sendStatus','Action','json','rawAttributes','UserProfileSection','error','create','addAction','attributes','fieldName','VIRTUAL','index','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','Condition','../../config/logger','catch','Triggers','status','filters','then','getActions','undefined','nolimit','params','like','destroy','map','filter','set','count','includeAll','addAllCondition','limit','stack','query','sort','TriggerId','order','body','length','include','intersection','Content-Range','addAnyCondition','sequelize','type','UserProfileResource','getAllConditions','update','get'];(function(_0x56f42b,_0x421d7e){const _0x4c0eaf=function(_0x3ab0a1){while(--_0x3ab0a1){_0x56f42b['push'](_0x56f42b['shift']());}};_0x4c0eaf(++_0x421d7e);}(a638_0x421d,0x1d5));const a638_0x4c0e=function(_0x56f42b,_0x421d7e){_0x56f42b=_0x56f42b-0x0;let _0x4c0eaf=a638_0x421d[_0x56f42b];return _0x4c0eaf;};const _0x34711b=a638_0x4c0e;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x34711b('0x6'))(_0x34711b('0x37')),db=require(_0x34711b('0x40'))['db'],{Op}=require(_0x34711b('0x24'));function respondWithResult(_0x3ab0a1,_0x24c0f9){return _0x24c0f9=_0x24c0f9||0xc8,function(_0x11a53f){const _0x5b647f=a638_0x4c0e;if(_0x11a53f)return _0x3ab0a1[_0x5b647f('0x9')](_0x24c0f9)['json'](_0x11a53f);};}function respondWithFilteredResult(_0x3c2ac8,_0x2d0930){return function(_0x477127){const _0x46abb4=a638_0x4c0e;if(_0x477127){const _0x496596=_0x477127[_0x46abb4('0x15')],_0x21863f=_0x2d0930['offset'];let _0x4e0120=_0x2d0930[_0x46abb4('0x2d')]+_0x2d0930['limit'],_0x17ece2;return _0x4e0120>=_0x496596?(_0x4e0120=_0x496596,_0x17ece2=0xc8):_0x17ece2=0xce,_0x3c2ac8[_0x46abb4('0x9')](_0x17ece2),_0x3c2ac8[_0x46abb4('0x14')](_0x46abb4('0x22'),_0x21863f+'-'+_0x4e0120+'/'+_0x496596)[_0x46abb4('0x43')](_0x477127);}return null;};}function saveUpdates(_0x13c2c5){return function(_0x4f0e67){const _0x5b9533=a638_0x4c0e;if(_0x4f0e67)return _0x4f0e67[_0x5b9533('0x28')](_0x13c2c5)[_0x5b9533('0xb')](function(_0xca00ce){return _0xca00ce;});return null;};}function removeEntity(_0x131796){return function(_0x3dc644){const _0x353ea9=a638_0x4c0e;if(_0x3dc644)return _0x3dc644[_0x353ea9('0x11')]()['then'](function(){const _0x26f83a=_0x353ea9,_0x1c327e=_0x3dc644['get']({'plain':!![]}),_0x4008b7=_0x26f83a('0x8');return db[_0x26f83a('0x26')]['destroy']({'where':{'type':_0x4008b7,'resourceId':_0x1c327e['id']}})[_0x26f83a('0xb')](function(){return _0x3dc644;});})[_0x353ea9('0xb')](function(){const _0x2d8071=_0x353ea9;_0x131796[_0x2d8071('0x9')](0xcc)[_0x2d8071('0x31')]();});};}function handleEntityNotFound(_0x1d28dc){return function(_0x413fdb){const _0x48c9ab=a638_0x4c0e;return!_0x413fdb&&_0x1d28dc[_0x48c9ab('0x41')](0x194),_0x413fdb;};}function handleError(_0x315ffc,_0x5123d3){return _0x5123d3=_0x5123d3||0x1f4,function(_0x2f04c3){const _0x4fc4fd=a638_0x4c0e;logger[_0x4fc4fd('0x46')](_0x2f04c3[_0x4fc4fd('0x19')]),_0x2f04c3[_0x4fc4fd('0x34')]&&delete _0x2f04c3['name'],_0x315ffc['status'](_0x5123d3)[_0x4fc4fd('0x3d')](_0x2f04c3);};}exports[_0x34711b('0x3')]=function(_0xb3fb43,_0x580e4e){const _0x1d1c84=_0x34711b;let _0x327ac9={};const _0x1e4e2a={},_0x5b5cce={'count':0x0,'rows':[]},_0x3808e8=_['map'](db[_0x1d1c84('0x3c')][_0x1d1c84('0x44')],function(_0x218de8){const _0x513901=_0x1d1c84;return{'name':_0x218de8[_0x513901('0x1')],'type':_0x218de8[_0x513901('0x25')][_0x513901('0x3b')]};});_0x1e4e2a[_0x1d1c84('0x3a')]=_['map'](_0x3808e8,_0x1d1c84('0x34')),_0x1e4e2a[_0x1d1c84('0x1a')]=_[_0x1d1c84('0x38')](_0xb3fb43['query']),_0x1e4e2a['filters']=_['intersection'](_0x1e4e2a[_0x1d1c84('0x3a')],_0x1e4e2a[_0x1d1c84('0x1a')]),_0x327ac9[_0x1d1c84('0x0')]=_[_0x1d1c84('0x21')](_0x1e4e2a[_0x1d1c84('0x3a')],qs[_0x1d1c84('0x3e')](_0xb3fb43[_0x1d1c84('0x1a')][_0x1d1c84('0x3e')])),_0x327ac9['attributes']=_0x327ac9[_0x1d1c84('0x0')]['length']?_0x327ac9[_0x1d1c84('0x0')]:_0x1e4e2a['model'];typeof _0xb3fb43['query'][_0x1d1c84('0xe')]===_0x1d1c84('0xd')&&(_0x327ac9[_0x1d1c84('0x18')]=qs[_0x1d1c84('0x18')](_0xb3fb43[_0x1d1c84('0x1a')][_0x1d1c84('0x18')]),_0x327ac9['offset']=qs['offset'](_0xb3fb43[_0x1d1c84('0x1a')][_0x1d1c84('0x2d')]));_0x327ac9[_0x1d1c84('0x1d')]=qs['sort'](_0xb3fb43[_0x1d1c84('0x1a')][_0x1d1c84('0x1b')]),_0x327ac9[_0x1d1c84('0x3f')]=qs[_0x1d1c84('0xa')](_[_0x1d1c84('0x2e')](_0xb3fb43[_0x1d1c84('0x1a')],_0x1e4e2a[_0x1d1c84('0xa')]),_0x3808e8);_0xb3fb43[_0x1d1c84('0x1a')][_0x1d1c84('0x13')]&&(_0x327ac9[_0x1d1c84('0x3f')]=_[_0x1d1c84('0x35')](_0x327ac9[_0x1d1c84('0x3f')],{[Op['or']]:_[_0x1d1c84('0x12')](_0x3808e8,function(_0x54529f){const _0x71e882=_0x1d1c84;if(_0x54529f['type']!==_0x71e882('0x2')){const _0x478ce4={};return _0x478ce4[_0x54529f[_0x71e882('0x34')]]={[Op['like']]:'%'+_0xb3fb43[_0x71e882('0x1a')]['filter']+'%'},_0x478ce4;}})}));_0x327ac9=_[_0x1d1c84('0x35')]({},_0x327ac9,_0xb3fb43[_0x1d1c84('0x2c')]);const _0x4b6dad={'where':_0x327ac9['where']};return db[_0x1d1c84('0x3c')][_0x1d1c84('0x15')](_0x4b6dad)[_0x1d1c84('0xb')](function(_0x5b818c){const _0x23cbbc=_0x1d1c84;return _0x5b5cce[_0x23cbbc('0x15')]=_0x5b818c,_0xb3fb43['query'][_0x23cbbc('0x16')]&&(_0x327ac9[_0x23cbbc('0x20')]=[{'all':!![]}]),db[_0x23cbbc('0x3c')]['findAll'](_0x327ac9);})[_0x1d1c84('0xb')](function(_0x2084ff){return _0x5b5cce['rows']=_0x2084ff,_0x5b5cce;})[_0x1d1c84('0xb')](respondWithFilteredResult(_0x580e4e,_0x327ac9))['catch'](handleError(_0x580e4e,null));},exports[_0x34711b('0x2b')]=function(_0x4b1d64,_0x15fcdb){const _0x4a4bf5=_0x34711b;let _0x3edb1e={'raw':![],'where':{'id':_0x4b1d64[_0x4a4bf5('0xf')]['id']}};const _0x2ef684={};return _0x2ef684['model']=_['keys'](db[_0x4a4bf5('0x3c')]['rawAttributes']),_0x2ef684[_0x4a4bf5('0x1a')]=_[_0x4a4bf5('0x38')](_0x4b1d64[_0x4a4bf5('0x1a')]),_0x2ef684[_0x4a4bf5('0xa')]=_['intersection'](_0x2ef684[_0x4a4bf5('0x3a')],_0x2ef684['query']),_0x3edb1e[_0x4a4bf5('0x0')]=_['intersection'](_0x2ef684[_0x4a4bf5('0x3a')],qs[_0x4a4bf5('0x3e')](_0x4b1d64['query'][_0x4a4bf5('0x3e')])),_0x3edb1e['attributes']=_0x3edb1e[_0x4a4bf5('0x0')][_0x4a4bf5('0x1f')]?_0x3edb1e[_0x4a4bf5('0x0')]:_0x2ef684[_0x4a4bf5('0x3a')],_0x4b1d64[_0x4a4bf5('0x1a')][_0x4a4bf5('0x16')]&&(_0x3edb1e['include']=[{'all':!![]}]),_0x3edb1e=_[_0x4a4bf5('0x35')]({},_0x3edb1e,_0x4b1d64['options']),db['Trigger'][_0x4a4bf5('0x2f')](_0x3edb1e)[_0x4a4bf5('0xb')](handleEntityNotFound(_0x15fcdb,null))[_0x4a4bf5('0xb')](respondWithResult(_0x15fcdb,null))[_0x4a4bf5('0x7')](handleError(_0x15fcdb,null));},exports[_0x34711b('0x47')]=function(_0x36b4c0,_0x273855){const _0x652337=_0x34711b;return db[_0x652337('0x3c')][_0x652337('0x47')](_0x36b4c0[_0x652337('0x1e')],{})[_0x652337('0xb')](function(_0x41cd15){const _0x5b4eba=_0x652337,_0x1a8d49=_0x36b4c0[_0x5b4eba('0x39')][_0x5b4eba('0x29')]({'plain':!![]});if(!_0x1a8d49)throw new Error(_0x5b4eba('0x33'));if(_0x1a8d49['role']===_0x5b4eba('0x39')){const _0x3d1b29=_0x41cd15['get']({'plain':!![]}),_0x34c4d1=_0x5b4eba('0x8');return db[_0x5b4eba('0x45')][_0x5b4eba('0x2f')]({'where':{'name':_0x34c4d1,'userProfileId':_0x1a8d49['userProfileId']},'raw':!![]})['then'](function(_0x385d3d){const _0x5e8730=_0x5b4eba;return _0x385d3d&&_0x385d3d[_0x5e8730('0x32')]===0x0?db[_0x5e8730('0x26')]['create']({'name':_0x3d1b29[_0x5e8730('0x34')],'resourceId':_0x3d1b29['id'],'type':_0x385d3d['name'],'sectionId':_0x385d3d['id']},{})[_0x5e8730('0xb')](function(){return _0x41cd15;}):_0x41cd15;})[_0x5b4eba('0x7')](function(_0x2c5760){const _0x14b2d6=_0x5b4eba;logger[_0x14b2d6('0x46')](_0x14b2d6('0x4'),_0x2c5760);throw _0x2c5760;});}return _0x41cd15;})['then'](respondWithResult(_0x273855,0xc9))[_0x652337('0x7')](handleError(_0x273855,null));},exports[_0x34711b('0x28')]=function(_0x4441f0,_0x25f2aa){const _0x4fc93b=_0x34711b;return _0x4441f0['body']['id']&&delete _0x4441f0[_0x4fc93b('0x1e')]['id'],db['Trigger'][_0x4fc93b('0x2f')]({'where':{'id':_0x4441f0[_0x4fc93b('0xf')]['id']}})[_0x4fc93b('0xb')](handleEntityNotFound(_0x25f2aa,null))[_0x4fc93b('0xb')](saveUpdates(_0x4441f0['body'],null))[_0x4fc93b('0xb')](respondWithResult(_0x25f2aa,null))['catch'](handleError(_0x25f2aa,null));},exports[_0x34711b('0x11')]=function(_0x5dfdc9,_0x31b739){const _0x13457e=_0x34711b;return db[_0x13457e('0x3c')][_0x13457e('0x2f')]({'where':{'id':_0x5dfdc9[_0x13457e('0xf')]['id']}})[_0x13457e('0xb')](handleEntityNotFound(_0x31b739,null))['then'](removeEntity(_0x31b739,null))[_0x13457e('0x7')](handleError(_0x31b739,null));},exports[_0x34711b('0x17')]=function(_0x12116a,_0x5c3cfe){const _0x540489=_0x34711b;return _0x12116a[_0x540489('0x1e')]['id']&&delete _0x12116a[_0x540489('0x1e')]['id'],db[_0x540489('0x3c')][_0x540489('0x2f')]({'where':{'id':_0x12116a[_0x540489('0xf')]['id']}})[_0x540489('0xb')](handleEntityNotFound(_0x5c3cfe,null))[_0x540489('0xb')](function(_0x1339d9){const _0x4cd2fa=_0x540489;if(_0x1339d9)return _0x12116a[_0x4cd2fa('0x1e')][_0x4cd2fa('0x30')]=_0x1339d9['id'],db[_0x4cd2fa('0x5')]['create'](_0x12116a[_0x4cd2fa('0x1e')]);})['then'](respondWithResult(_0x5c3cfe,null))['catch'](handleError(_0x5c3cfe,null));},exports[_0x34711b('0x23')]=function(_0x2f3820,_0x4edd7f){const _0x5c9ba3=_0x34711b;return _0x2f3820[_0x5c9ba3('0x1e')]['id']&&delete _0x2f3820['body']['id'],db['Trigger'][_0x5c9ba3('0x2f')]({'where':{'id':_0x2f3820['params']['id']}})['then'](handleEntityNotFound(_0x4edd7f,null))[_0x5c9ba3('0xb')](function(_0x320c33){const _0x1439c6=_0x5c9ba3;if(_0x320c33)return _0x2f3820[_0x1439c6('0x1e')][_0x1439c6('0x2a')]=_0x320c33['id'],db[_0x1439c6('0x5')][_0x1439c6('0x47')](_0x2f3820['body']);})[_0x5c9ba3('0xb')](respondWithResult(_0x4edd7f,null))[_0x5c9ba3('0x7')](handleError(_0x4edd7f,null));},exports[_0x34711b('0x27')]=function(_0x16169b,_0x336012){const _0x12c35c=_0x34711b;let _0x356614={};const _0x4fe00d={};let _0x5cb5d8,_0x5a787d;return db[_0x12c35c('0x3c')]['findOne']({'where':{'id':_0x16169b[_0x12c35c('0xf')]['id']}})[_0x12c35c('0xb')](handleEntityNotFound(_0x336012,null))[_0x12c35c('0xb')](function(_0x25a487){const _0x33ccf8=_0x12c35c;if(_0x25a487)return _0x5cb5d8=_0x25a487,_0x4fe00d[_0x33ccf8('0x3a')]=_[_0x33ccf8('0x38')](db['Condition']['rawAttributes']),_0x4fe00d[_0x33ccf8('0x1a')]=_[_0x33ccf8('0x38')](_0x16169b[_0x33ccf8('0x1a')]),_0x4fe00d[_0x33ccf8('0xa')]=_[_0x33ccf8('0x21')](_0x4fe00d[_0x33ccf8('0x3a')],_0x4fe00d[_0x33ccf8('0x1a')]),_0x356614[_0x33ccf8('0x0')]=_[_0x33ccf8('0x21')](_0x4fe00d[_0x33ccf8('0x3a')],qs['fields'](_0x16169b['query'][_0x33ccf8('0x3e')])),_0x356614[_0x33ccf8('0x0')]=_0x356614[_0x33ccf8('0x0')]['length']?_0x356614[_0x33ccf8('0x0')]:_0x4fe00d[_0x33ccf8('0x3a')],_0x356614[_0x33ccf8('0x1d')]=qs[_0x33ccf8('0x1b')](_0x16169b[_0x33ccf8('0x1a')]['sort']),_0x356614[_0x33ccf8('0x3f')]=qs[_0x33ccf8('0xa')](_[_0x33ccf8('0x2e')](_0x16169b[_0x33ccf8('0x1a')],_0x4fe00d[_0x33ccf8('0xa')])),_0x16169b[_0x33ccf8('0x1a')]['filter']&&(_0x356614['where']=_[_0x33ccf8('0x35')](_0x356614[_0x33ccf8('0x3f')],{[Op['or']]:_[_0x33ccf8('0x12')](_0x356614[_0x33ccf8('0x0')],function(_0x3e5a4f){const _0x29c158=_0x33ccf8,_0x3db332={};return _0x3db332[_0x3e5a4f]={[Op[_0x29c158('0x10')]]:'%'+_0x16169b[_0x29c158('0x1a')][_0x29c158('0x13')]+'%'},_0x3db332;})})),_0x356614=_['merge']({},_0x356614,_0x16169b[_0x33ccf8('0x2c')]),_0x5cb5d8['getAllConditions'](_0x356614);})[_0x12c35c('0xb')](function(_0xbf2d59){const _0x29ef83=_0x12c35c;if(_0xbf2d59)return _0x5a787d=_0xbf2d59[_0x29ef83('0x1f')],typeof _0x16169b[_0x29ef83('0x1a')][_0x29ef83('0xe')]===_0x29ef83('0xd')&&(_0x356614[_0x29ef83('0x18')]=qs['limit'](_0x16169b['query'][_0x29ef83('0x18')]),_0x356614['offset']=qs[_0x29ef83('0x2d')](_0x16169b[_0x29ef83('0x1a')][_0x29ef83('0x2d')])),_0x5cb5d8['getAllConditions'](_0x356614);})['then'](function(_0x2a70e3){if(_0x2a70e3)return _0x2a70e3?{'count':_0x5a787d,'rows':_0x2a70e3}:null;})[_0x12c35c('0xb')](respondWithResult(_0x336012,null))[_0x12c35c('0x7')](handleError(_0x336012,null));},exports[_0x34711b('0x36')]=function(_0x8f630c,_0x1b1723){const _0x174ff0=_0x34711b;let _0x23b40f={};const _0x514cfe={};let _0x4bd6ec,_0x386d7d;return db['Trigger']['findOne']({'where':{'id':_0x8f630c[_0x174ff0('0xf')]['id']}})['then'](handleEntityNotFound(_0x1b1723,null))['then'](function(_0x3ab6bf){const _0x304c25=_0x174ff0;if(_0x3ab6bf)return _0x4bd6ec=_0x3ab6bf,_0x514cfe[_0x304c25('0x3a')]=_[_0x304c25('0x38')](db[_0x304c25('0x5')][_0x304c25('0x44')]),_0x514cfe[_0x304c25('0x1a')]=_[_0x304c25('0x38')](_0x8f630c[_0x304c25('0x1a')]),_0x514cfe[_0x304c25('0xa')]=_[_0x304c25('0x21')](_0x514cfe['model'],_0x514cfe[_0x304c25('0x1a')]),_0x23b40f[_0x304c25('0x0')]=_['intersection'](_0x514cfe[_0x304c25('0x3a')],qs[_0x304c25('0x3e')](_0x8f630c[_0x304c25('0x1a')][_0x304c25('0x3e')])),_0x23b40f['attributes']=_0x23b40f[_0x304c25('0x0')][_0x304c25('0x1f')]?_0x23b40f['attributes']:_0x514cfe[_0x304c25('0x3a')],_0x23b40f[_0x304c25('0x1d')]=qs['sort'](_0x8f630c[_0x304c25('0x1a')][_0x304c25('0x1b')]),_0x23b40f[_0x304c25('0x3f')]=qs[_0x304c25('0xa')](_[_0x304c25('0x2e')](_0x8f630c[_0x304c25('0x1a')],_0x514cfe[_0x304c25('0xa')])),_0x8f630c[_0x304c25('0x1a')][_0x304c25('0x13')]&&(_0x23b40f[_0x304c25('0x3f')]=_[_0x304c25('0x35')](_0x23b40f[_0x304c25('0x3f')],{[Op['or']]:_[_0x304c25('0x12')](_0x23b40f['attributes'],function(_0x5660f7){const _0x1ddc9d=_0x304c25,_0x211fb3={};return _0x211fb3[_0x5660f7]={[Op[_0x1ddc9d('0x10')]]:'%'+_0x8f630c[_0x1ddc9d('0x1a')]['filter']+'%'},_0x211fb3;})})),_0x23b40f=_[_0x304c25('0x35')]({},_0x23b40f,_0x8f630c[_0x304c25('0x2c')]),_0x4bd6ec[_0x304c25('0x36')](_0x23b40f);})[_0x174ff0('0xb')](function(_0x19a114){const _0x1f181a=_0x174ff0;if(_0x19a114)return _0x386d7d=_0x19a114[_0x1f181a('0x1f')],typeof _0x8f630c['query']['nolimit']==='undefined'&&(_0x23b40f[_0x1f181a('0x18')]=qs[_0x1f181a('0x18')](_0x8f630c[_0x1f181a('0x1a')][_0x1f181a('0x18')]),_0x23b40f[_0x1f181a('0x2d')]=qs[_0x1f181a('0x2d')](_0x8f630c[_0x1f181a('0x1a')][_0x1f181a('0x2d')])),_0x4bd6ec[_0x1f181a('0x36')](_0x23b40f);})[_0x174ff0('0xb')](function(_0xb7c609){if(_0xb7c609)return _0xb7c609?{'count':_0x386d7d,'rows':_0xb7c609}:null;})[_0x174ff0('0xb')](respondWithResult(_0x1b1723,null))[_0x174ff0('0x7')](handleError(_0x1b1723,null));},exports[_0x34711b('0x48')]=function(_0x4458b4,_0x5d6003){const _0x3f63d8=_0x34711b;return _0x4458b4['body']['id']&&delete _0x4458b4[_0x3f63d8('0x1e')]['id'],db[_0x3f63d8('0x3c')][_0x3f63d8('0x2f')]({'where':{'id':_0x4458b4[_0x3f63d8('0xf')]['id']}})['then'](handleEntityNotFound(_0x5d6003,null))[_0x3f63d8('0xb')](function(_0x465d88){const _0x11b652=_0x3f63d8;if(_0x465d88)return _0x4458b4[_0x11b652('0x1e')][_0x11b652('0x1c')]=_0x465d88['id'],db[_0x11b652('0x42')][_0x11b652('0x47')](_0x4458b4[_0x11b652('0x1e')]);})[_0x3f63d8('0xb')](respondWithResult(_0x5d6003,null))[_0x3f63d8('0x7')](handleError(_0x5d6003,null));},exports[_0x34711b('0xc')]=function(_0x1f3e5e,_0x17debc){const _0x4c3a62=_0x34711b;let _0x3df0cf={};const _0x258a68={};let _0x249012,_0x48c334;return db['Trigger'][_0x4c3a62('0x2f')]({'where':{'id':_0x1f3e5e[_0x4c3a62('0xf')]['id']}})[_0x4c3a62('0xb')](handleEntityNotFound(_0x17debc,null))[_0x4c3a62('0xb')](function(_0x49c1ce){const _0x3ca0d0=_0x4c3a62;if(_0x49c1ce)return _0x249012=_0x49c1ce,_0x258a68[_0x3ca0d0('0x3a')]=_['keys'](db[_0x3ca0d0('0x42')][_0x3ca0d0('0x44')]),_0x258a68[_0x3ca0d0('0x1a')]=_[_0x3ca0d0('0x38')](_0x1f3e5e[_0x3ca0d0('0x1a')]),_0x258a68[_0x3ca0d0('0xa')]=_[_0x3ca0d0('0x21')](_0x258a68[_0x3ca0d0('0x3a')],_0x258a68[_0x3ca0d0('0x1a')]),_0x3df0cf[_0x3ca0d0('0x0')]=_['intersection'](_0x258a68['model'],qs[_0x3ca0d0('0x3e')](_0x1f3e5e[_0x3ca0d0('0x1a')]['fields'])),_0x3df0cf['attributes']=_0x3df0cf['attributes'][_0x3ca0d0('0x1f')]?_0x3df0cf[_0x3ca0d0('0x0')]:_0x258a68['model'],_0x3df0cf[_0x3ca0d0('0x1d')]=qs[_0x3ca0d0('0x1b')](_0x1f3e5e[_0x3ca0d0('0x1a')]['sort']),_0x3df0cf['where']=qs[_0x3ca0d0('0xa')](_[_0x3ca0d0('0x2e')](_0x1f3e5e[_0x3ca0d0('0x1a')],_0x258a68[_0x3ca0d0('0xa')])),_0x1f3e5e[_0x3ca0d0('0x1a')][_0x3ca0d0('0x13')]&&(_0x3df0cf[_0x3ca0d0('0x3f')]=_[_0x3ca0d0('0x35')](_0x3df0cf['where'],{[Op['or']]:_[_0x3ca0d0('0x12')](_0x3df0cf[_0x3ca0d0('0x0')],function(_0x4326bc){const _0x26f778=_0x3ca0d0,_0xcc5b1c={};return _0xcc5b1c[_0x4326bc]={[Op[_0x26f778('0x10')]]:'%'+_0x1f3e5e[_0x26f778('0x1a')][_0x26f778('0x13')]+'%'},_0xcc5b1c;})})),_0x3df0cf=_[_0x3ca0d0('0x35')]({},_0x3df0cf,_0x1f3e5e['options']),_0x249012['getActions'](_0x3df0cf);})[_0x4c3a62('0xb')](function(_0x1b10f8){const _0x5844df=_0x4c3a62;if(_0x1b10f8)return _0x48c334=_0x1b10f8['length'],typeof _0x1f3e5e[_0x5844df('0x1a')][_0x5844df('0xe')]===_0x5844df('0xd')&&(_0x3df0cf[_0x5844df('0x18')]=qs[_0x5844df('0x18')](_0x1f3e5e['query'][_0x5844df('0x18')]),_0x3df0cf[_0x5844df('0x2d')]=qs['offset'](_0x1f3e5e['query']['offset'])),_0x249012[_0x5844df('0xc')](_0x3df0cf);})[_0x4c3a62('0xb')](function(_0x115fb2){if(_0x115fb2)return _0x115fb2?{'count':_0x48c334,'rows':_0x115fb2}:null;})[_0x4c3a62('0xb')](respondWithResult(_0x17debc,null))[_0x4c3a62('0x7')](handleError(_0x17debc,null));}; \ No newline at end of file +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 diff --git a/server/api/trigger/trigger.model.js b/server/api/trigger/trigger.model.js index 768b413..b664552 100644 --- a/server/api/trigger/trigger.model.js +++ b/server/api/trigger/trigger.model.js @@ -1 +1 @@ -const a639_0x5853=['exports','Trigger','./trigger.attributes','tools_triggers'];(function(_0x1ca488,_0x5853f0){const _0x4c2522=function(_0x1ce5b7){while(--_0x1ce5b7){_0x1ca488['push'](_0x1ca488['shift']());}};_0x4c2522(++_0x5853f0);}(a639_0x5853,0x68));const a639_0x4c25=function(_0x1ca488,_0x5853f0){_0x1ca488=_0x1ca488-0x0;let _0x4c2522=a639_0x5853[_0x1ca488];return _0x4c2522;};const _0x26edbe=a639_0x4c25;'use strict';const attributes=require(_0x26edbe('0x2'));module[_0x26edbe('0x0')]=function(_0x1ce5b7){const _0x2f86d0=_0x26edbe,_0x10626d=_0x1ce5b7['define'](_0x2f86d0('0x1'),attributes,{'tableName':_0x2f86d0('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x10626d;}; \ No newline at end of file +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 diff --git a/server/api/trigger/trigger.rpc.js b/server/api/trigger/trigger.rpc.js index 987ce7e..3ab6742 100644 --- a/server/api/trigger/trigger.rpc.js +++ b/server/api/trigger/trigger.rpc.js @@ -1 +1 @@ -const a640_0x1623=['options','model','then','include','debug','findOne','info','error','attributes','findAll','where','GetTrigger','stringify','map','catch','raw','lodash','message','limit','ShowTrigger','rpc','../../config/logger','Trigger'];(function(_0x1de6ed,_0x16239a){const _0x269a78=function(_0x1addbb){while(--_0x1addbb){_0x1de6ed['push'](_0x1de6ed['shift']());}};_0x269a78(++_0x16239a);}(a640_0x1623,0x1f4));const a640_0x269a=function(_0x1de6ed,_0x16239a){_0x1de6ed=_0x1de6ed-0x0;let _0x269a78=a640_0x1623[_0x1de6ed];return _0x269a78;};const _0x393705=a640_0x269a;'use strict';const _=require(_0x393705('0x16')),db=require('../../mysqldb')['db'],logger=require(_0x393705('0x4'))(_0x393705('0x3'));exports[_0x393705('0x11')]=function(_0x1addbb){const _0x54a551=this;return new Promise(function(_0x1d1fd4,_0x191dd1){const _0xa4712b=a640_0x269a;return db[_0xa4712b('0x5')][_0xa4712b('0xf')]({'raw':_0x1addbb[_0xa4712b('0x6')]?_0x1addbb[_0xa4712b('0x6')][_0xa4712b('0x15')]===undefined?!![]:![]:!![],'where':_0x1addbb[_0xa4712b('0x6')]?_0x1addbb[_0xa4712b('0x6')][_0xa4712b('0x10')]||null:null,'attributes':_0x1addbb[_0xa4712b('0x6')]?_0x1addbb[_0xa4712b('0x6')][_0xa4712b('0xe')]||null:null,'limit':_0x1addbb[_0xa4712b('0x6')]?_0x1addbb[_0xa4712b('0x6')][_0xa4712b('0x1')]||null:null,'include':_0x1addbb[_0xa4712b('0x6')]?_0x1addbb['options']['include']?_[_0xa4712b('0x13')](_0x1addbb[_0xa4712b('0x6')][_0xa4712b('0x9')],function(_0x14575b){const _0x5508eb=_0xa4712b;return{'model':db[_0x14575b['model']],'as':_0x14575b['as'],'attributes':_0x14575b[_0x5508eb('0xe')],'include':_0x14575b[_0x5508eb('0x9')]?_[_0x5508eb('0x13')](_0x14575b[_0x5508eb('0x9')],function(_0x599099){const _0x45138a=_0x5508eb;return{'model':db[_0x599099[_0x45138a('0x7')]],'as':_0x599099['as'],'attributes':_0x599099['attributes'],'include':_0x599099['include']?_['map'](_0x599099[_0x45138a('0x9')],function(_0x4aae26){const _0x2405c3=_0x45138a;return{'model':db[_0x4aae26['model']],'as':_0x4aae26['as'],'attributes':_0x4aae26[_0x2405c3('0xe')]};}):[]};}):[]};}):[]:[]})[_0xa4712b('0x8')](function(_0x7bceab){const _0x3ac2e6=_0xa4712b;logger[_0x3ac2e6('0xc')](_0x3ac2e6('0x11'),_0x1addbb),logger[_0x3ac2e6('0xa')]('GetTrigger',_0x1addbb,JSON['stringify'](_0x7bceab)),_0x1d1fd4(_0x7bceab);})[_0xa4712b('0x14')](function(_0x16dee7){const _0x301b39=_0xa4712b;logger['error'](_0x301b39('0x11'),_0x16dee7['message'],_0x1addbb),_0x191dd1(_0x54a551[_0x301b39('0xd')](0x1f4,_0x16dee7[_0x301b39('0x0')]));});});},exports[_0x393705('0x2')]=function(_0x1913f8){const _0x6bb5c=this;return new Promise(function(_0xe235e9,_0x2f9964){const _0x1a3ec8=a640_0x269a;return db[_0x1a3ec8('0x5')][_0x1a3ec8('0xb')]({'raw':_0x1913f8[_0x1a3ec8('0x6')]?_0x1913f8[_0x1a3ec8('0x6')][_0x1a3ec8('0x15')]===undefined?!![]:![]:!![],'where':_0x1913f8[_0x1a3ec8('0x6')]?_0x1913f8[_0x1a3ec8('0x6')]['where']||null:null,'attributes':_0x1913f8[_0x1a3ec8('0x6')]?_0x1913f8['options']['attributes']||null:null,'include':_0x1913f8[_0x1a3ec8('0x6')]?_0x1913f8[_0x1a3ec8('0x6')][_0x1a3ec8('0x9')]?_['map'](_0x1913f8[_0x1a3ec8('0x6')][_0x1a3ec8('0x9')],function(_0x39bbf5){const _0x3b93e0=_0x1a3ec8;return{'model':db[_0x39bbf5[_0x3b93e0('0x7')]],'as':_0x39bbf5['as'],'attributes':_0x39bbf5[_0x3b93e0('0xe')],'include':_0x39bbf5[_0x3b93e0('0x9')]?_[_0x3b93e0('0x13')](_0x39bbf5[_0x3b93e0('0x9')],function(_0x5d1d19){const _0x2780b3=_0x3b93e0;return{'model':db[_0x5d1d19[_0x2780b3('0x7')]],'as':_0x5d1d19['as'],'attributes':_0x5d1d19['attributes'],'include':_0x5d1d19[_0x2780b3('0x9')]?_[_0x2780b3('0x13')](_0x5d1d19[_0x2780b3('0x9')],function(_0x17bf0e){const _0x2d1bb6=_0x2780b3;return{'model':db[_0x17bf0e[_0x2d1bb6('0x7')]],'as':_0x17bf0e['as'],'attributes':_0x17bf0e[_0x2d1bb6('0xe')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x2503c1){const _0xfce5d7=_0x1a3ec8;logger[_0xfce5d7('0xc')]('ShowTrigger',_0x1913f8),logger[_0xfce5d7('0xa')](_0xfce5d7('0x2'),_0x1913f8,JSON[_0xfce5d7('0x12')](_0x2503c1)),_0xe235e9(_0x2503c1);})[_0x1a3ec8('0x14')](function(_0x4d7fa6){const _0x38d660=_0x1a3ec8;logger[_0x38d660('0xd')](_0x38d660('0x2'),_0x4d7fa6[_0x38d660('0x0')],_0x1913f8),_0x2f9964(_0x6bb5c[_0x38d660('0xd')](0x1f4,_0x4d7fa6['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/trunk/index.js b/server/api/trunk/index.js index 16ba08d..f490302 100644 --- a/server/api/trunk/index.js +++ b/server/api/trunk/index.js @@ -1 +1 @@ -const a641_0x2c64=['../../components/auth/service','clone','/:id','/:id/clone','post','delete','isAuthenticated','create','destroy','get','show','express'];(function(_0x23eff0,_0x2c6478){const _0xc669ac=function(_0xa92242){while(--_0xa92242){_0x23eff0['push'](_0x23eff0['shift']());}};_0xc669ac(++_0x2c6478);}(a641_0x2c64,0x143));const a641_0xc669=function(_0x23eff0,_0x2c6478){_0x23eff0=_0x23eff0-0x0;let _0xc669ac=a641_0x2c64[_0x23eff0];return _0xc669ac;};const _0x5df321=a641_0xc669;'use strict';const express=require(_0x5df321('0x0')),router=express['Router'](),auth=require(_0x5df321('0x1')),controller=require('./trunk.controller');router['get']('/',auth[_0x5df321('0x7')](),controller['index']),router[_0x5df321('0xa')]('/:id',auth[_0x5df321('0x7')](),controller[_0x5df321('0xb')]),router[_0x5df321('0x5')](_0x5df321('0x4'),auth[_0x5df321('0x7')](),controller[_0x5df321('0x2')]),router['post']('/',auth[_0x5df321('0x7')](),controller[_0x5df321('0x8')]),router['put']('/:id',auth[_0x5df321('0x7')](),controller['update']),router[_0x5df321('0x6')](_0x5df321('0x3'),auth[_0x5df321('0x7')](),controller[_0x5df321('0x9')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/trunk/trunk.attributes.js b/server/api/trunk/trunk.attributes.js index 84e5608..1b3caee 100644 --- a/server/api/trunk/trunk.attributes.js +++ b/server/api/trunk/trunk.attributes.js @@ -1 +1 @@ -const a642_0x3bab=['BOOLEAN','STRING','PROHIB_NOT_SCREENED','udp','\x22\x22\x20<>','sequelize','certificate','fingerprint','INTEGER','dynamic','port,invite','setDataValue','insecure','all','transport','ENUM','PROHIB_FAILED_SCREEN','ALLOWED','peer','ALLOWED_PASSED_SCREEN','shortinfo','active','update,nonat','refuse','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22port\x22,\x20\x22invite\x22]','yes','pai','nonat','ulaw;alaw;gsm','friend','getDataValue','nat','originate','rfc2833','from-voip-provider','auto','update','PROHIB_PASSED_SCREEN','split','outgoing','never','ALLOWED_FAILED_SCREEN','actpass','allow','user','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22force_rport\x22,\x20\x22comedia\x22]','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22ulaw\x22,\x20\x22alaw\x22,\x20\x22alaw\x22]','join','passive','uas'];(function(_0x4ebed7,_0x3bab38){const _0x541407=function(_0x246ca3){while(--_0x246ca3){_0x4ebed7['push'](_0x4ebed7['shift']());}};_0x541407(++_0x3bab38);}(a642_0x3bab,0xbb));const a642_0x5414=function(_0x4ebed7,_0x3bab38){_0x4ebed7=_0x4ebed7-0x0;let _0x541407=a642_0x3bab[_0x4ebed7];return _0x541407;};const _0x59081a=a642_0x5414;'use strict';const Sequelize=require(_0x59081a('0x12'));module['exports']={'name':{'type':Sequelize[_0x59081a('0xe')],'allowNull':![],'unique':'name','validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'type':{'type':Sequelize[_0x59081a('0x1c')]('friend',_0x59081a('0x7'),_0x59081a('0x1f')),'allowNull':![],'defaultValue':_0x59081a('0x2a')},'context':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x59081a('0x2f')},'callingpres':{'type':Sequelize[_0x59081a('0x1c')]('ALLOWED_NOT_SCREENED',_0x59081a('0x20'),_0x59081a('0x4'),_0x59081a('0x1e'),_0x59081a('0xf'),_0x59081a('0x0'),_0x59081a('0x1d'),'PROHIB')},'deny':{'type':Sequelize[_0x59081a('0xe')]},'permit':{'type':Sequelize[_0x59081a('0xe')]},'secret':{'type':Sequelize[_0x59081a('0xe')]},'md5secret':{'type':Sequelize[_0x59081a('0xe')]},'remotesecret':{'type':Sequelize[_0x59081a('0xe')]},'transport':{'type':Sequelize[_0x59081a('0xe')],'defaultValue':_0x59081a('0x10'),'set':function(_0x246ca3){const _0xb123ef=_0x59081a;this[_0xb123ef('0x18')]('transport',_0x246ca3?_0x246ca3['join'](','):null);},'get':function(){const _0x27353d=_0x59081a;return this[_0x27353d('0x2b')]('transport')?this[_0x27353d('0x2b')](_0x27353d('0x1b'))[_0x27353d('0x1')](','):null;},'comment':'String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22udp\x22,\x20\x22tcp\x22]'},'dtmfmode':{'type':Sequelize['ENUM'](_0x59081a('0x2e'),'info',_0x59081a('0x21'),'inband',_0x59081a('0x30')),'defaultValue':_0x59081a('0x2e')},'directmedia':{'type':Sequelize['ENUM'](_0x59081a('0x26'),'no','nonat',_0x59081a('0x31'),_0x59081a('0x2')),'defaultValue':'no'},'directrtpsetup':{'type':Sequelize[_0x59081a('0x1c')](_0x59081a('0x26'),'no'),'defaultValue':'no'},'directmediapermit':{'type':Sequelize[_0x59081a('0xe')]},'directmediadeny':{'type':Sequelize['STRING']},'nat':{'type':Sequelize[_0x59081a('0xe')],'defaultValue':'force_rport,comedia','set':function(_0x1d6be6){const _0x2f1853=_0x59081a;this[_0x2f1853('0x18')](_0x2f1853('0x2c'),_0x1d6be6?_0x1d6be6[_0x2f1853('0xa')](','):null);},'get':function(){const _0x3934ff=_0x59081a;return this[_0x3934ff('0x2b')](_0x3934ff('0x2c'))?this[_0x3934ff('0x2b')](_0x3934ff('0x2c'))[_0x3934ff('0x1')](','):null;},'comment':_0x59081a('0x8')},'callgroup':{'type':Sequelize[_0x59081a('0xe')]},'namedcallgroup':{'type':Sequelize[_0x59081a('0xe')]},'pickupgroup':{'type':Sequelize[_0x59081a('0xe')]},'namedpickupgroup':{'type':Sequelize['STRING']},'language':{'type':Sequelize[_0x59081a('0xe')],'defaultValue':'en'},'tonezone':{'type':Sequelize[_0x59081a('0xe')],'allowNull':!![]},'disallow':{'type':Sequelize[_0x59081a('0xe')],'defaultValue':_0x59081a('0x1a')},'allow':{'type':Sequelize[_0x59081a('0xe')],'allowNull':![],'defaultValue':_0x59081a('0x29'),'set':function(_0x13aaa7){const _0x3f077a=_0x59081a;this[_0x3f077a('0x18')]('allow',_0x13aaa7?_0x13aaa7[_0x3f077a('0xa')](';'):'ulaw;alaw;gsm');},'get':function(){const _0x56ed51=_0x59081a;return this[_0x56ed51('0x2b')](_0x56ed51('0x6'))?this[_0x56ed51('0x2b')](_0x56ed51('0x6'))[_0x56ed51('0x1')](';'):null;},'comment':_0x59081a('0x9')},'autoframing':{'type':Sequelize['ENUM'](_0x59081a('0x26'),'no')},'insecure':{'type':Sequelize[_0x59081a('0xe')],'defaultValue':_0x59081a('0x17'),'set':function(_0x5b0281){const _0x4a9cdc=_0x59081a;this[_0x4a9cdc('0x18')]('insecure',_0x5b0281?_0x5b0281[_0x4a9cdc('0xa')](','):null);},'get':function(){const _0x53fba1=_0x59081a;return this['getDataValue'](_0x53fba1('0x19'))?this[_0x53fba1('0x2b')](_0x53fba1('0x19'))[_0x53fba1('0x1')](','):null;},'comment':_0x59081a('0x25')},'trustrpid':{'type':Sequelize[_0x59081a('0x1c')](_0x59081a('0x26'),'no'),'defaultValue':'no'},'trust_id_outbound':{'type':Sequelize['ENUM'](_0x59081a('0x26'),'no'),'defaultValue':'no'},'progressinband':{'type':Sequelize['ENUM']('yes','no',_0x59081a('0x3'))},'promiscredir':{'type':Sequelize[_0x59081a('0x1c')](_0x59081a('0x26'),'no')},'useclientcode':{'type':Sequelize['ENUM'](_0x59081a('0x26'),'no')},'accountcode':{'type':Sequelize[_0x59081a('0x15')](0xb)},'setvar':{'type':Sequelize[_0x59081a('0xe')]},'callerid':{'type':Sequelize['STRING'],'defaultValue':_0x59081a('0x11')},'amaflags':{'type':Sequelize[_0x59081a('0xe')]},'callcounter':{'type':Sequelize['ENUM'](_0x59081a('0x26'),'no'),'defaultValue':_0x59081a('0x26')},'busylevel':{'type':Sequelize[_0x59081a('0x15')](0xb)},'allowoverlap':{'type':Sequelize[_0x59081a('0x1c')](_0x59081a('0x26'),'no')},'allowsubscribe':{'type':Sequelize[_0x59081a('0x1c')](_0x59081a('0x26'),'no')},'allowtransfer':{'type':Sequelize[_0x59081a('0x1c')](_0x59081a('0x26'),'no')},'ignoresdpversion':{'type':Sequelize[_0x59081a('0x1c')](_0x59081a('0x26'),'no')},'subscribecontext':{'type':Sequelize[_0x59081a('0xe')]},'template':{'type':Sequelize[_0x59081a('0xe')]},'videosupport':{'type':Sequelize[_0x59081a('0x1c')]('yes','no','always'),'defaultValue':'no'},'maxcallbitrate':{'type':Sequelize['INTEGER'](0xb)},'rfc2833compensate':{'type':Sequelize[_0x59081a('0x1c')](_0x59081a('0x26'),'no')},'mailbox':{'type':Sequelize[_0x59081a('0xe')]},'session_timers':{'type':Sequelize[_0x59081a('0x1c')]('accept',_0x59081a('0x24'),_0x59081a('0x2d'))},'session_expires':{'type':Sequelize[_0x59081a('0x15')](0xb)},'session_minse':{'type':Sequelize[_0x59081a('0x15')](0xb)},'session_refresher':{'type':Sequelize[_0x59081a('0x1c')]('uac',_0x59081a('0xc')),'defaultValue':_0x59081a('0xc')},'t38pt_usertpsource':{'type':Sequelize[_0x59081a('0xe')]},'regexten':{'type':Sequelize[_0x59081a('0xe')]},'fromdomain':{'type':Sequelize[_0x59081a('0xe')]},'fromuser':{'type':Sequelize[_0x59081a('0xe')]},'port':{'type':Sequelize[_0x59081a('0x15')](0x5)},'qualify':{'type':Sequelize[_0x59081a('0x1c')](_0x59081a('0x26'),'no'),'defaultValue':_0x59081a('0x26')},'keepalive':{'type':Sequelize[_0x59081a('0x15')](0xb)},'defaultip':{'type':Sequelize[_0x59081a('0xe')]},'defaultuser':{'type':Sequelize[_0x59081a('0xe')]},'rtptimeout':{'type':Sequelize[_0x59081a('0x15')](0xb)},'rtpholdtimeout':{'type':Sequelize['INTEGER'](0xb)},'rtpkeepalive':{'type':Sequelize[_0x59081a('0x15')](0xb)},'sendrpid':{'type':Sequelize[_0x59081a('0x1c')](_0x59081a('0x26'),'no',_0x59081a('0x27')),'defaultValue':'no'},'outboundproxy':{'type':Sequelize[_0x59081a('0xe')]},'callbackextension':{'type':Sequelize[_0x59081a('0xe')]},'timert1':{'type':Sequelize['INTEGER'](0xb)},'timerb':{'type':Sequelize[_0x59081a('0x15')](0xb)},'qualifyfreq':{'type':Sequelize[_0x59081a('0x15')](0xb)},'contactpermit':{'type':Sequelize['STRING']},'contactdeny':{'type':Sequelize['STRING']},'contactacl':{'type':Sequelize['STRING']},'unsolicited_mailbox':{'type':Sequelize[_0x59081a('0xe')]},'use_q850_reason':{'type':Sequelize['STRING']},'maxforwards':{'type':Sequelize['INTEGER'](0xb)},'encryption':{'type':Sequelize[_0x59081a('0x1c')](_0x59081a('0x26'),'no'),'defaultValue':'no'},'avpf':{'type':Sequelize['ENUM'](_0x59081a('0x26'),'no')},'force_avp':{'type':Sequelize[_0x59081a('0x1c')](_0x59081a('0x26'),'no')},'icesupport':{'type':Sequelize[_0x59081a('0x1c')](_0x59081a('0x26'),'no')},'dtlsenable':{'type':Sequelize['ENUM'](_0x59081a('0x26'),'no')},'dtlsverify':{'type':Sequelize[_0x59081a('0x1c')](_0x59081a('0x26'),'no',_0x59081a('0x14'),_0x59081a('0x13'))},'dtlsrekey':{'type':Sequelize['INTEGER'](0xb)},'dtlscertfile':{'type':Sequelize[_0x59081a('0xe')]},'dtlsprivatekey':{'type':Sequelize[_0x59081a('0xe')]},'dtlscipher':{'type':Sequelize[_0x59081a('0xe')]},'dtlscafile':{'type':Sequelize[_0x59081a('0xe')]},'dtlscapath':{'type':Sequelize[_0x59081a('0xe')]},'dtlssetup':{'type':Sequelize[_0x59081a('0x1c')](_0x59081a('0x22'),_0x59081a('0xb'),_0x59081a('0x5')),'allowNull':!![]},'dtlsfingerprint':{'type':Sequelize['STRING']},'usereqphone':{'type':Sequelize['ENUM'](_0x59081a('0x26'),'no'),'defaultValue':'no'},'recordonfeature':{'type':Sequelize[_0x59081a('0xe')]},'recordofffeature':{'type':Sequelize[_0x59081a('0xe')]},'call_limit':{'type':Sequelize[_0x59081a('0x15')](0xb),'defaultValue':0x3e8},'registertrying':{'type':Sequelize[_0x59081a('0x1c')]('yes','no')},'subscribemwi':{'type':Sequelize['ENUM'](_0x59081a('0x26'),'no')},'vmexten':{'type':Sequelize[_0x59081a('0xe')]},'mohinterpret':{'type':Sequelize[_0x59081a('0xe')]},'mohsuggest':{'type':Sequelize[_0x59081a('0xe')]},'parkinglot':{'type':Sequelize[_0x59081a('0xe')]},'description':{'type':Sequelize[_0x59081a('0xe')]},'host':{'type':Sequelize[_0x59081a('0xe')],'defaultValue':_0x59081a('0x16')},'canreinvite':{'type':Sequelize['ENUM']('yes','no',_0x59081a('0x28'),_0x59081a('0x31'),_0x59081a('0x23')),'defaultValue':'no'},'registry':{'type':Sequelize['STRING']},'otherFields':{'type':Sequelize[_0x59081a('0xe')]},'active':{'type':Sequelize[_0x59081a('0xd')],'allowNull':![],'defaultValue':!![]},'t38pt_udptl':{'type':Sequelize[_0x59081a('0xe')],'defaultValue':'no'}}; \ No newline at end of file +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 diff --git a/server/api/trunk/trunk.controller.js b/server/api/trunk/trunk.controller.js index 4a07fe9..1cd7728 100644 --- a/server/api/trunk/trunk.controller.js +++ b/server/api/trunk/trunk.controller.js @@ -1 +1 @@ -const a643_0x1fbe=['keys','options','writeFileSync','server/files/templates/registry.ejs','findOne','rows','intersection','count','Trunk,\x20%s,\x20%s','offset','chan_sip.so','end','error','join','fields','json','Trunk','user','code','readFileSync','limit','Reload','path','include','order','Trunks','VIRTUAL','map','stack','key','like','api','server/files/templates/trunk.ejs','destroy','render','get','index','filter','createdAt','set','type','fieldName','/etc/asterisk/sip_xcally_registers.conf','http','sort','rawAttributes','query','request\x20sent','length','update','../../components/parsers/qs','client','model','Trunk,\x20%s,\x20%s,\x20%s','pick','role','includeAll','findAll','userProfileId','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','nolimit','undefined','root','show','body','Content-Range','name','info','message','utf8','stringify','status','jayson/promise','/etc/asterisk/sip_xcally_trunks.conf','Unable\x20to\x20retrieve\x20the\x20current\x20user','../../config/logger','omit','merge','catch','attributes','where','UserProfileSection','params','UserProfileResource','sequelize','../../config/environment','filters','sendStatus','../../mysqldb','autoAssociation','create','then'];(function(_0x2e80dd,_0x1fbe5d){const _0x49da9f=function(_0xa1bf49){while(--_0xa1bf49){_0x2e80dd['push'](_0x2e80dd['shift']());}};_0x49da9f(++_0x1fbe5d);}(a643_0x1fbe,0x153));const a643_0x49da=function(_0x2e80dd,_0x1fbe5d){_0x2e80dd=_0x2e80dd-0x0;let _0x49da9f=a643_0x1fbe[_0x2e80dd];return _0x49da9f;};const _0x2dffb5=a643_0x49da;'use strict';const path=require(_0x2dffb5('0x33')),ejs=require('ejs'),fs=require('fs'),_=require('lodash'),qs=require(_0x2dffb5('0x4f')),logger=require(_0x2dffb5('0xc'))(_0x2dffb5('0x3c')),config=require(_0x2dffb5('0x16')),db=require(_0x2dffb5('0x19'))['db'],{Op}=require(_0x2dffb5('0x15')),jayson=require(_0x2dffb5('0x9')),client=jayson[_0x2dffb5('0x50')][_0x2dffb5('0x48')]({'port':0x232a});function respondWithRpcPromise(_0xa1bf49,_0x336465,_0x1f94f3,_0x331445){return new Promise(function(_0x45bd81,_0x1a7f81){const _0x486d39=a643_0x49da,_0x363ffe=_0x331445||client;return _0x363ffe['request'](_0xa1bf49,_0x1f94f3)[_0x486d39('0x1c')](function(_0x749107){const _0x2a405b=_0x486d39;logger[_0x2a405b('0x4')](_0x2a405b('0x25'),_0x336465,'request\x20sent'),logger['debug'](_0x2a405b('0x52'),_0x336465,_0x2a405b('0x4c'),JSON[_0x2a405b('0x7')](_0x749107));if(_0x749107[_0x2a405b('0x29')]){if(_0x749107[_0x2a405b('0x29')][_0x2a405b('0x2f')]===0x1f4)return logger['error'](_0x2a405b('0x25'),_0x336465,_0x749107[_0x2a405b('0x29')]['message']),_0x1a7f81(_0x749107[_0x2a405b('0x29')][_0x2a405b('0x5')]);return logger[_0x2a405b('0x29')](_0x2a405b('0x25'),_0x336465,_0x749107[_0x2a405b('0x29')][_0x2a405b('0x5')]),_0x45bd81(_0x749107['error'][_0x2a405b('0x5')]);}else logger[_0x2a405b('0x4')](_0x2a405b('0x25'),_0x336465,_0x2a405b('0x4c')),_0x45bd81(_0x749107['result'][_0x2a405b('0x5')]);})['catch'](function(_0x2914a8){const _0xb1b35c=_0x486d39;logger[_0xb1b35c('0x29')](_0xb1b35c('0x25'),_0x336465,_0x2914a8),_0x1a7f81(_0x2914a8);});});}function respondWithResult(_0x5d8dac,_0x406b1e){return _0x406b1e=_0x406b1e||0xc8,function(_0x4b27d3){const _0x1715c7=a643_0x49da;if(_0x4b27d3)return _0x5d8dac['status'](_0x406b1e)[_0x1715c7('0x2c')](_0x4b27d3);};}function respondWithFilteredResult(_0x2064e1,_0x5e5528){return function(_0x3a278d){const _0x33b3d6=a643_0x49da;if(_0x3a278d){const _0x5908b2=_0x3a278d[_0x33b3d6('0x24')],_0x1c5cda=_0x5e5528['offset'];let _0x48a2c5=_0x5e5528[_0x33b3d6('0x26')]+_0x5e5528['limit'],_0x558825;return _0x48a2c5>=_0x5908b2?(_0x48a2c5=_0x5908b2,_0x558825=0xc8):_0x558825=0xce,_0x2064e1[_0x33b3d6('0x8')](_0x558825),_0x2064e1[_0x33b3d6('0x44')](_0x33b3d6('0x2'),_0x1c5cda+'-'+_0x48a2c5+'/'+_0x5908b2)[_0x33b3d6('0x2c')](_0x3a278d);}return null;};}function saveUpdates(_0x1663fe){return function(_0x38e5d1){if(_0x38e5d1)return _0x38e5d1['update'](_0x1663fe)['then'](function(_0x44441f){return _0x44441f;});return null;};}function removeEntity(_0x2ffd54){return function(_0x3f3bea){const _0x1abb58=a643_0x49da;if(_0x3f3bea)return _0x3f3bea[_0x1abb58('0x3e')]()[_0x1abb58('0x1c')](function(){const _0x494222=_0x1abb58,_0x43993c=_0x3f3bea['get']({'plain':!![]}),_0x152a99=_0x494222('0x36');return db['UserProfileResource'][_0x494222('0x3e')]({'where':{'type':_0x152a99,'resourceId':_0x43993c['id']}})[_0x494222('0x1c')](function(){return _0x3f3bea;});})[_0x1abb58('0x1c')](function(){const _0x68d306=_0x1abb58;_0x2ffd54[_0x68d306('0x8')](0xcc)[_0x68d306('0x28')]();});};}function handleEntityNotFound(_0x177bb2){return function(_0x499a29){const _0x5c29f7=a643_0x49da;return!_0x499a29&&_0x177bb2[_0x5c29f7('0x18')](0x194),_0x499a29;};}function handleError(_0x1431bf,_0x358a94){return _0x358a94=_0x358a94||0x1f4,function(_0x2def0d){const _0x3eb119=a643_0x49da;logger['error'](_0x2def0d[_0x3eb119('0x39')]),_0x2def0d[_0x3eb119('0x3')]&&delete _0x2def0d[_0x3eb119('0x3')],_0x1431bf[_0x3eb119('0x8')](_0x358a94)['send'](_0x2def0d);};}exports[_0x2dffb5('0x41')]=function(_0x25890b,_0xdada72){const _0x9bedba=_0x2dffb5;let _0x335948={};const _0x2ea5fc={},_0x140dbc={'count':0x0,'rows':[]},_0x21068f=_[_0x9bedba('0x38')](db[_0x9bedba('0x2d')]['rawAttributes'],function(_0x2a93fe){const _0x36127e=_0x9bedba;return{'name':_0x2a93fe[_0x36127e('0x46')],'type':_0x2a93fe['type'][_0x36127e('0x3a')]};});_0x2ea5fc[_0x9bedba('0x51')]=_[_0x9bedba('0x38')](_0x21068f,_0x9bedba('0x3')),_0x2ea5fc[_0x9bedba('0x4b')]=_['keys'](_0x25890b[_0x9bedba('0x4b')]),_0x2ea5fc[_0x9bedba('0x17')]=_['intersection'](_0x2ea5fc[_0x9bedba('0x51')],_0x2ea5fc[_0x9bedba('0x4b')]),_0x335948['attributes']=_[_0x9bedba('0x23')](_0x2ea5fc[_0x9bedba('0x51')],qs[_0x9bedba('0x2b')](_0x25890b[_0x9bedba('0x4b')][_0x9bedba('0x2b')])),_0x335948['attributes']=_0x335948[_0x9bedba('0x10')]['length']?_0x335948[_0x9bedba('0x10')]:_0x2ea5fc[_0x9bedba('0x51')];typeof _0x25890b[_0x9bedba('0x4b')][_0x9bedba('0x59')]===_0x9bedba('0x5a')&&(_0x335948['limit']=qs[_0x9bedba('0x31')](_0x25890b[_0x9bedba('0x4b')][_0x9bedba('0x31')]),_0x335948[_0x9bedba('0x26')]=qs[_0x9bedba('0x26')](_0x25890b[_0x9bedba('0x4b')][_0x9bedba('0x26')]));_0x335948[_0x9bedba('0x35')]=qs[_0x9bedba('0x49')](_0x25890b[_0x9bedba('0x4b')][_0x9bedba('0x49')]),_0x335948[_0x9bedba('0x11')]=qs['filters'](_[_0x9bedba('0x53')](_0x25890b['query'],_0x2ea5fc[_0x9bedba('0x17')]),_0x21068f);_0x25890b[_0x9bedba('0x4b')][_0x9bedba('0x42')]&&(_0x335948['where']=_['merge'](_0x335948['where'],{[Op['or']]:_[_0x9bedba('0x38')](_0x21068f,function(_0x301723){const _0x1bfc46=_0x9bedba;if(_0x301723[_0x1bfc46('0x45')]!==_0x1bfc46('0x37')){const _0x36f5cd={};return _0x36f5cd[_0x301723[_0x1bfc46('0x3')]]={[Op[_0x1bfc46('0x3b')]]:'%'+_0x25890b['query']['filter']+'%'},_0x36f5cd;}})}));_0x335948=_['merge']({},_0x335948,_0x25890b['options']);const _0x607fa9={'where':_0x335948['where']};return db[_0x9bedba('0x2d')][_0x9bedba('0x24')](_0x607fa9)['then'](function(_0x2f2fb3){const _0x956cfd=_0x9bedba;return _0x140dbc[_0x956cfd('0x24')]=_0x2f2fb3,_0x25890b[_0x956cfd('0x4b')][_0x956cfd('0x55')]&&(_0x335948[_0x956cfd('0x34')]=[{'all':!![]}]),db[_0x956cfd('0x2d')]['findAll'](_0x335948);})['then'](function(_0x323453){const _0x2d5b10=_0x9bedba;return _0x140dbc[_0x2d5b10('0x22')]=_0x323453,_0x140dbc;})[_0x9bedba('0x1c')](respondWithFilteredResult(_0xdada72,_0x335948))[_0x9bedba('0xf')](handleError(_0xdada72,null));},exports[_0x2dffb5('0x0')]=function(_0x254f10,_0x4ce320){const _0x8172ac=_0x2dffb5;let _0x348849={'raw':![],'where':{'id':_0x254f10[_0x8172ac('0x13')]['id']}};const _0xfeaebd={};return _0xfeaebd[_0x8172ac('0x51')]=_[_0x8172ac('0x1d')](db['Trunk'][_0x8172ac('0x4a')]),_0xfeaebd[_0x8172ac('0x4b')]=_[_0x8172ac('0x1d')](_0x254f10[_0x8172ac('0x4b')]),_0xfeaebd[_0x8172ac('0x17')]=_[_0x8172ac('0x23')](_0xfeaebd['model'],_0xfeaebd[_0x8172ac('0x4b')]),_0x348849[_0x8172ac('0x10')]=_['intersection'](_0xfeaebd[_0x8172ac('0x51')],qs[_0x8172ac('0x2b')](_0x254f10[_0x8172ac('0x4b')][_0x8172ac('0x2b')])),_0x348849[_0x8172ac('0x10')]=_0x348849[_0x8172ac('0x10')][_0x8172ac('0x4d')]?_0x348849[_0x8172ac('0x10')]:_0xfeaebd[_0x8172ac('0x51')],_0x254f10[_0x8172ac('0x4b')][_0x8172ac('0x55')]&&(_0x348849[_0x8172ac('0x34')]=[{'all':!![]}]),_0x348849=_[_0x8172ac('0xe')]({},_0x348849,_0x254f10[_0x8172ac('0x1e')]),db[_0x8172ac('0x2d')]['findOne'](_0x348849)[_0x8172ac('0x1c')](handleEntityNotFound(_0x4ce320,null))[_0x8172ac('0x1c')](respondWithResult(_0x4ce320,null))[_0x8172ac('0xf')](handleError(_0x4ce320,null));},exports['clone']=function(_0x3af645,_0x2c9863){const _0x428a88=_0x2dffb5;let _0x1573f0={'where':{'id':_0x3af645[_0x428a88('0x13')]['id']}};const _0x3a43b8={};return _0x3a43b8[_0x428a88('0x51')]=_['keys'](db[_0x428a88('0x2d')][_0x428a88('0x4a')]),_0x1573f0['attributes']=_[_0x428a88('0x23')](_0x3a43b8[_0x428a88('0x51')],qs[_0x428a88('0x2b')](_0x3af645['query'][_0x428a88('0x2b')])),_0x1573f0['attributes']=_0x1573f0[_0x428a88('0x10')][_0x428a88('0x4d')]?_0x1573f0[_0x428a88('0x10')]:_0x3a43b8['model'],_0x3af645[_0x428a88('0x4b')]['includeAll']&&(_0x1573f0[_0x428a88('0x34')]=[{'all':!![]}]),_0x1573f0=_['merge']({},_0x1573f0,_0x3af645[_0x428a88('0x1e')]),db['Trunk']['findOne'](_0x1573f0)['then'](handleEntityNotFound(_0x2c9863,null))[_0x428a88('0x1c')](function(_0x2de666){const _0x3b51c8=_0x428a88;if(_0x2de666){let _0x4a0a19=_0x2de666[_0x3b51c8('0x40')]({'plain':!![]});return _0x4a0a19=qs['omit'](_0x4a0a19,['id',_0x3b51c8('0x43'),'updatedAt']),_0x3af645[_0x3b51c8('0x1')]=_[_0x3b51c8('0xd')](_0x3af645['body'],['id',_0x3b51c8('0x43'),'updatedAt']),db['Trunk'][_0x3b51c8('0x1b')](_[_0x3b51c8('0xe')](_0x4a0a19,_0x3af645[_0x3b51c8('0x1')]),{'include':_0x3af645[_0x3b51c8('0x4b')][_0x3b51c8('0x55')]?[{'all':!![]}]:undefined})[_0x3b51c8('0x1c')](function(_0x268f88){const _0x5d5261=_0x3b51c8,_0x451654=_0x3af645[_0x5d5261('0x2e')][_0x5d5261('0x40')]({'plain':!![]});if(!_0x451654)throw new Error(_0x5d5261('0xb'));if(_0x451654[_0x5d5261('0x54')]==='user'){const _0x82c21d=_0x268f88[_0x5d5261('0x40')]({'plain':!![]}),_0x3e696e=_0x5d5261('0x36');return db[_0x5d5261('0x12')][_0x5d5261('0x21')]({'where':{'name':_0x3e696e,'userProfileId':_0x451654['userProfileId']},'raw':!![]})[_0x5d5261('0x1c')](function(_0x443823){const _0x509b52=_0x5d5261;return _0x443823&&_0x443823[_0x509b52('0x1a')]===0x0?db[_0x509b52('0x14')][_0x509b52('0x1b')]({'name':_0x82c21d[_0x509b52('0x3')],'resourceId':_0x82c21d['id'],'type':_0x443823[_0x509b52('0x3')],'sectionId':_0x443823['id']},{})['then'](function(){return _0x268f88;}):_0x268f88;})[_0x5d5261('0xf')](function(_0x2793fc){const _0x50c493=_0x5d5261;logger[_0x50c493('0x29')](_0x50c493('0x58'),_0x2793fc);throw _0x2793fc;});}return _0x268f88;});}})['then'](respondWithResult(_0x2c9863,0xc9))[_0x428a88('0xf')](handleError(_0x2c9863,null));},exports[_0x2dffb5('0x1b')]=function(_0x9cf4bc,_0xc87816){const _0xe4ae7d=_0x2dffb5;let _0x14059a;return db[_0xe4ae7d('0x2d')][_0xe4ae7d('0x1b')](_0x9cf4bc[_0xe4ae7d('0x1')],{'raw':!![]})[_0xe4ae7d('0x1c')](function(_0x38da85){const _0x3d391a=_0xe4ae7d;return _0x14059a=_0x38da85,db[_0x3d391a('0x2d')][_0x3d391a('0x56')]({'raw':!![]});})[_0xe4ae7d('0x1c')](function(_0x44e284){const _0x13af6e=_0xe4ae7d,_0x58ab9a=fs[_0x13af6e('0x30')](path[_0x13af6e('0x2a')](config[_0x13af6e('0x5b')],_0x13af6e('0x3d')),_0x13af6e('0x6')),_0x3ecd6e=fs[_0x13af6e('0x30')](path[_0x13af6e('0x2a')](config['root'],_0x13af6e('0x20')),_0x13af6e('0x6')),_0x29ccc7=ejs[_0x13af6e('0x3f')](_0x58ab9a,{'trunks':_0x44e284||[]});fs['writeFileSync'](_0x13af6e('0xa'),_0x29ccc7);if(_0x14059a['registry']){const _0x181433=ejs['render'](_0x3ecd6e,{'trunks':_0x44e284||[]});fs['writeFileSync']('/etc/asterisk/sip_xcally_registers.conf',_0x181433);}})[_0xe4ae7d('0x1c')](function(){const _0x51c617=_0xe4ae7d;return respondWithRpcPromise('Reload',_0x51c617('0x1b'),{'module':_0x51c617('0x27')});})[_0xe4ae7d('0x1c')](function(){const _0x366504=_0xe4ae7d,_0x54c678=_0x9cf4bc[_0x366504('0x2e')][_0x366504('0x40')]({'plain':!![]});if(!_0x54c678)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x54c678[_0x366504('0x54')]===_0x366504('0x2e')){const _0x72dff4=_0x14059a['get']({'plain':!![]});return db[_0x366504('0x12')][_0x366504('0x21')]({'where':{'name':_0x366504('0x36'),'userProfileId':_0x54c678[_0x366504('0x57')]},'raw':!![]})[_0x366504('0x1c')](function(_0x4f07f5){const _0x588501=_0x366504;return _0x4f07f5&&_0x4f07f5['autoAssociation']===0x0?db[_0x588501('0x14')][_0x588501('0x1b')]({'name':_0x72dff4[_0x588501('0x3')],'resourceId':_0x72dff4['id'],'type':_0x4f07f5[_0x588501('0x3')],'sectionId':_0x4f07f5['id']},{})['then'](function(){return _0x14059a;}):_0x14059a;})['catch'](function(_0x5c80ee){const _0x2d4610=_0x366504;logger[_0x2d4610('0x29')](_0x2d4610('0x58'),_0x5c80ee);throw _0x5c80ee;});}return _0x14059a;})[_0xe4ae7d('0x1c')](respondWithResult(_0xc87816,0xc9))[_0xe4ae7d('0xf')](handleError(_0xc87816,null));},exports['update']=function(_0x5b9c64,_0x1b4245){const _0x2cda95=_0x2dffb5;let _0x436c05;return db[_0x2cda95('0x2d')][_0x2cda95('0x21')]({'where':{'id':_0x5b9c64[_0x2cda95('0x13')]['id']}})[_0x2cda95('0x1c')](handleEntityNotFound(_0x1b4245,null))[_0x2cda95('0x1c')](saveUpdates(_0x5b9c64[_0x2cda95('0x1')],null))[_0x2cda95('0x1c')](function(_0x394585){const _0x1d28c1=_0x2cda95;if(_0x394585)return _0x436c05=_0x394585,db[_0x1d28c1('0x2d')][_0x1d28c1('0x56')]({'raw':!![]});})[_0x2cda95('0x1c')](function(_0x5ca732){const _0x1e5274=_0x2cda95;if(_0x5ca732){const _0x5669ad=fs[_0x1e5274('0x30')](path[_0x1e5274('0x2a')](config['root'],'server/files/templates/trunk.ejs'),'utf8'),_0x490410=fs[_0x1e5274('0x30')](path[_0x1e5274('0x2a')](config['root'],_0x1e5274('0x20')),'utf8'),_0x3d47e1=ejs['render'](_0x5669ad,{'trunks':_0x5ca732||[]});fs['writeFileSync'](_0x1e5274('0xa'),_0x3d47e1);const _0x125f6e=ejs[_0x1e5274('0x3f')](_0x490410,{'trunks':_0x5ca732||[]});return fs[_0x1e5274('0x1f')](_0x1e5274('0x47'),_0x125f6e),respondWithRpcPromise(_0x1e5274('0x32'),_0x1e5274('0x4e'),{'module':_0x1e5274('0x27')});}return null;})[_0x2cda95('0x1c')](function(_0x2cb4d7){if(_0x2cb4d7)return _0x436c05;})[_0x2cda95('0x1c')](respondWithResult(_0x1b4245,null))[_0x2cda95('0xf')](handleError(_0x1b4245,null));},exports[_0x2dffb5('0x3e')]=function(_0x332582,_0x1d655d){const _0x530ffc=_0x2dffb5;return db[_0x530ffc('0x2d')][_0x530ffc('0x21')]({'where':{'id':_0x332582[_0x530ffc('0x13')]['id']}})['then'](handleEntityNotFound(_0x1d655d,null))[_0x530ffc('0x1c')](removeEntity(_0x1d655d,null))['then'](function(){return db['Trunk']['findAll']({'raw':!![]});})[_0x530ffc('0x1c')](function(_0x458e86){const _0x115764=_0x530ffc,_0x36fa8d=fs[_0x115764('0x30')](path[_0x115764('0x2a')](config[_0x115764('0x5b')],_0x115764('0x3d')),_0x115764('0x6')),_0x38e8cb=fs[_0x115764('0x30')](path[_0x115764('0x2a')](config[_0x115764('0x5b')],_0x115764('0x20')),'utf8'),_0x545cd0=ejs['render'](_0x36fa8d,{'trunks':_0x458e86}),_0x5c723a=ejs[_0x115764('0x3f')](_0x38e8cb,{'trunks':_0x458e86});return fs[_0x115764('0x1f')](_0x115764('0xa'),_0x545cd0),fs[_0x115764('0x1f')](_0x115764('0x47'),_0x5c723a),respondWithRpcPromise(_0x115764('0x32'),_0x115764('0x3e'),{'module':_0x115764('0x27')});})[_0x530ffc('0xf')](handleError(_0x1d655d,null));}; \ No newline at end of file +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 diff --git a/server/api/trunk/trunk.model.js b/server/api/trunk/trunk.model.js index 12d7421..050174a 100644 --- a/server/api/trunk/trunk.model.js +++ b/server/api/trunk/trunk.model.js @@ -1 +1 @@ -const a644_0x2e96=['./trunk.attributes','define','tools_trunks','exports'];(function(_0x1ecdf2,_0x2e96fc){const _0x512ae6=function(_0x22e3cd){while(--_0x22e3cd){_0x1ecdf2['push'](_0x1ecdf2['shift']());}};_0x512ae6(++_0x2e96fc);}(a644_0x2e96,0x115));const a644_0x512a=function(_0x1ecdf2,_0x2e96fc){_0x1ecdf2=_0x1ecdf2-0x0;let _0x512ae6=a644_0x2e96[_0x1ecdf2];return _0x512ae6;};const _0x5029b3=a644_0x512a;'use strict';const attributes=require(_0x5029b3('0x3'));module[_0x5029b3('0x2')]=function(_0x22e3cd){const _0x8ff6bc=_0x5029b3,_0x3fcc42=_0x22e3cd[_0x8ff6bc('0x0')]('Trunk',attributes,{'tableName':_0x8ff6bc('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3fcc42;}; \ No newline at end of file +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 diff --git a/server/api/trunk/trunk.rpc.js b/server/api/trunk/trunk.rpc.js index 7235973..6036b6d 100644 --- a/server/api/trunk/trunk.rpc.js +++ b/server/api/trunk/trunk.rpc.js @@ -1 +1 @@ -const a645_0x55c3=['error','ShowTrunk','findAll','limit','GetTrunk','include','debug','attributes','raw','../../mysqldb','then','where','rpc','stringify','model','message','info','Trunk','map','options'];(function(_0x57a0f8,_0x55c306){const _0x4f446d=function(_0xb70e0f){while(--_0xb70e0f){_0x57a0f8['push'](_0x57a0f8['shift']());}};_0x4f446d(++_0x55c306);}(a645_0x55c3,0x85));const a645_0x4f44=function(_0x57a0f8,_0x55c306){_0x57a0f8=_0x57a0f8-0x0;let _0x4f446d=a645_0x55c3[_0x57a0f8];return _0x4f446d;};const _0x3170f5=a645_0x4f44;'use strict';const _=require('lodash'),db=require(_0x3170f5('0x10'))['db'],logger=require('../../config/logger')(_0x3170f5('0x13'));exports[_0x3170f5('0xb')]=function(_0xb70e0f){const _0x2b5865=this;return new Promise(function(_0x4cea0b,_0x291a12){const _0x3e3afc=a645_0x4f44;return db[_0x3e3afc('0x4')][_0x3e3afc('0x9')]({'raw':_0xb70e0f['options']?_0xb70e0f['options'][_0x3e3afc('0xf')]===undefined?!![]:![]:!![],'where':_0xb70e0f[_0x3e3afc('0x6')]?_0xb70e0f[_0x3e3afc('0x6')][_0x3e3afc('0x12')]||null:null,'attributes':_0xb70e0f[_0x3e3afc('0x6')]?_0xb70e0f['options'][_0x3e3afc('0xe')]||null:null,'limit':_0xb70e0f[_0x3e3afc('0x6')]?_0xb70e0f[_0x3e3afc('0x6')][_0x3e3afc('0xa')]||null:null,'include':_0xb70e0f[_0x3e3afc('0x6')]?_0xb70e0f[_0x3e3afc('0x6')][_0x3e3afc('0xc')]?_['map'](_0xb70e0f['options'][_0x3e3afc('0xc')],function(_0x3d5d31){const _0x4936dc=_0x3e3afc;return{'model':db[_0x3d5d31['model']],'as':_0x3d5d31['as'],'attributes':_0x3d5d31[_0x4936dc('0xe')],'include':_0x3d5d31[_0x4936dc('0xc')]?_['map'](_0x3d5d31[_0x4936dc('0xc')],function(_0x22b1f4){const _0x2f8078=_0x4936dc;return{'model':db[_0x22b1f4['model']],'as':_0x22b1f4['as'],'attributes':_0x22b1f4[_0x2f8078('0xe')],'include':_0x22b1f4[_0x2f8078('0xc')]?_[_0x2f8078('0x5')](_0x22b1f4[_0x2f8078('0xc')],function(_0x239d36){const _0x150d63=_0x2f8078;return{'model':db[_0x239d36[_0x150d63('0x1')]],'as':_0x239d36['as'],'attributes':_0x239d36[_0x150d63('0xe')]};}):[]};}):[]};}):[]:[]})[_0x3e3afc('0x11')](function(_0x2a030d){const _0x205046=_0x3e3afc;logger[_0x205046('0x3')]('GetTrunk',_0xb70e0f),logger[_0x205046('0xd')]('GetTrunk',_0xb70e0f,JSON[_0x205046('0x0')](_0x2a030d)),_0x4cea0b(_0x2a030d);})['catch'](function(_0x1bbde3){const _0x3897f2=_0x3e3afc;logger[_0x3897f2('0x7')](_0x3897f2('0xb'),_0x1bbde3[_0x3897f2('0x2')],_0xb70e0f),_0x291a12(_0x2b5865[_0x3897f2('0x7')](0x1f4,_0x1bbde3[_0x3897f2('0x2')]));});});},exports[_0x3170f5('0x8')]=function(_0x3eada5){const _0x13babd=this;return new Promise(function(_0x3f66ab,_0x5ae4ef){const _0x4dab7e=a645_0x4f44;return db[_0x4dab7e('0x4')]['findOne']({'raw':_0x3eada5[_0x4dab7e('0x6')]?_0x3eada5[_0x4dab7e('0x6')][_0x4dab7e('0xf')]===undefined?!![]:![]:!![],'where':_0x3eada5[_0x4dab7e('0x6')]?_0x3eada5[_0x4dab7e('0x6')]['where']||null:null,'attributes':_0x3eada5['options']?_0x3eada5[_0x4dab7e('0x6')]['attributes']||null:null,'include':_0x3eada5[_0x4dab7e('0x6')]?_0x3eada5[_0x4dab7e('0x6')]['include']?_['map'](_0x3eada5['options'][_0x4dab7e('0xc')],function(_0x16413b){const _0x1191cb=_0x4dab7e;return{'model':db[_0x16413b[_0x1191cb('0x1')]],'as':_0x16413b['as'],'attributes':_0x16413b[_0x1191cb('0xe')],'include':_0x16413b[_0x1191cb('0xc')]?_['map'](_0x16413b['include'],function(_0x4c46c7){const _0x356a13=_0x1191cb;return{'model':db[_0x4c46c7[_0x356a13('0x1')]],'as':_0x4c46c7['as'],'attributes':_0x4c46c7[_0x356a13('0xe')],'include':_0x4c46c7[_0x356a13('0xc')]?_[_0x356a13('0x5')](_0x4c46c7['include'],function(_0x482898){const _0x36a81f=_0x356a13;return{'model':db[_0x482898[_0x36a81f('0x1')]],'as':_0x482898['as'],'attributes':_0x482898[_0x36a81f('0xe')]};}):[]};}):[]};}):[]:[]})[_0x4dab7e('0x11')](function(_0x4f4eaf){const _0x494ad2=_0x4dab7e;logger[_0x494ad2('0x3')](_0x494ad2('0x8'),_0x3eada5),logger[_0x494ad2('0xd')](_0x494ad2('0x8'),_0x3eada5,JSON[_0x494ad2('0x0')](_0x4f4eaf)),_0x3f66ab(_0x4f4eaf);})['catch'](function(_0x14ee21){const _0x55af26=_0x4dab7e;logger['error'](_0x55af26('0x8'),_0x14ee21[_0x55af26('0x2')],_0x3eada5),_0x5ae4ef(_0x13babd[_0x55af26('0x7')](0x1f4,_0x14ee21[_0x55af26('0x2')]));});});}; \ No newline at end of file +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 diff --git a/server/api/user/index.js b/server/api/user/index.js index 462e812..549363c 100644 --- a/server/api/user/index.js +++ b/server/api/user/index.js @@ -1 +1 @@ -const a646_0x3915=['format','getWhatsappAccounts','addMailInteractions','getScheduledCalls','/:id/scheduled_calls','getMailAccounts','addWhatsappInteractions','addTeams','getSquareProjects','addSquareProjects','getScreenRecordings','removeChatInteractions','diskStorage','getVoiceQueuesRt','removeApiKey','removeTeams','addSmsInteractions','delete','getFaxInteractions','root','changePassword','getAvatar','/:id/avatar','/:id/square_projects','/:id/contacts','/:id/sms_interactions','../../components/auth/service','bulkCreate','/:id/groups','./user.controller','addOpenchannelAccounts','removeSquareProjects','addSmsAccounts','addChatWebsites','/:id/pause','single','getTeams','../../config/environment','/describe','join','/:id/fax/interactions','describe','pause','addContacts','getSmsInteractions','removeMailAccounts','Router','addAvatar','removeChatWebsites','/:id/login','whoami','getOpenchannelAccounts','/:id/unpause','/:id/whatsapp_interactions','getChatInteractions','addOpenchannelInteractions','/:id/whatsapp/interactions','/:id/queues','getFaxAccounts','/:id','post','/:id/chat/interactions','getMailInteractions','get','removeFaxAccounts','createApiKey','getVoicePrefixes','/:id/teams','/create_many','getContacts','removeFaxInteractions','removeOpenchannelAccounts','addQueues','/:id/sms/interactions','show','/:id/mail_accounts','logout','getChatWebsites','removeQueues','getSmsAccounts','removeMailInteractions','getLists','getQueues','util','exports','/:id/screen_recordings','/:id/chat_interactions','removeSmsAccounts','getAgents','/:id/mail/interactions','addFaxAccounts','/:id/openchannel_accounts','/:id/whatsapp_accounts','removeWhatsappAccounts','/:id/api_key','/:id/openchannel/interactions','getRecordings','put','create','/:id/fax_accounts','/:id/agents','login','/:id/mail_interactions','isAuthenticated','/:id/openchannel_interactions','/:id/chat_websites','/:id/fax_interactions','server/files/images/','/:id/logout','/:id/sms_accounts','index','addMailAccounts'];(function(_0x15da59,_0x391503){const _0x5e9839=function(_0x13e193){while(--_0x13e193){_0x15da59['push'](_0x15da59['shift']());}};_0x5e9839(++_0x391503);}(a646_0x3915,0xa0));const a646_0x5e98=function(_0x15da59,_0x391503){_0x15da59=_0x15da59-0x0;let _0x5e9839=a646_0x3915[_0x15da59];return _0x5e9839;};const _0x5d93ea=a646_0x5e98;'use strict';const multer=require('multer'),util=require(_0x5d93ea('0x23')),path=require('path'),express=require('express'),router=express[_0x5d93ea('0x6e')](),auth=require(_0x5d93ea('0x5a')),config=require(_0x5d93ea('0x65')),controller=require(_0x5d93ea('0x5d'));router[_0x5d93ea('0xf')]('/',auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x3e')]),router['get'](_0x5d93ea('0x66'),auth['isAuthenticated'](),controller[_0x5d93ea('0x69')]),router[_0x5d93ea('0xf')]('/whoami',auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x2')]),router[_0x5d93ea('0xf')](_0x5d93ea('0xb'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x1a')]),router[_0x5d93ea('0xf')](_0x5d93ea('0x56'),controller[_0x5d93ea('0x55')]),router[_0x5d93ea('0xf')]('/:id/contacts',auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x15')]),router[_0x5d93ea('0xf')](_0x5d93ea('0x9'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x22')]),router[_0x5d93ea('0xf')]('/:id/queues_rt',auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x4d')]),router[_0x5d93ea('0xf')](_0x5d93ea('0x5c'),auth[_0x5d93ea('0x37')](),controller['getGroups']),router[_0x5d93ea('0xf')]('/:id/recordings',auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x30')]),router[_0x5d93ea('0xf')](_0x5d93ea('0x25'),auth['isAuthenticated'](),controller[_0x5d93ea('0x4a')]),router['get'](_0x5d93ea('0xd'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x6')]),router[_0x5d93ea('0xf')](_0x5d93ea('0x2f'),auth[_0x5d93ea('0x37')](),controller['getOpenchannelInteractions']),router[_0x5d93ea('0xf')](_0x5d93ea('0x29'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0xe')]),router[_0x5d93ea('0xf')](_0x5d93ea('0x19'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x6c')]),router[_0x5d93ea('0xf')](_0x5d93ea('0x68'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x52')]),router[_0x5d93ea('0xf')](_0x5d93ea('0x8'),auth[_0x5d93ea('0x37')](),controller['getWhatsappInteractions']),router['get'](_0x5d93ea('0x13'),auth['isAuthenticated'](),controller[_0x5d93ea('0x64')]),router[_0x5d93ea('0xf')]('/:id/lists',auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x21')]),router[_0x5d93ea('0xf')](_0x5d93ea('0x34'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x28')]),router['get']('/:id/prefixes',auth['isAuthenticated'](),controller[_0x5d93ea('0x12')]),router['get'](_0x5d93ea('0x33'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0xa')]),router[_0x5d93ea('0xf')](_0x5d93ea('0x1b'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x45')]),router['get']('/:id/openchannel_accounts',auth['isAuthenticated'](),controller[_0x5d93ea('0x3')]),router[_0x5d93ea('0xf')](_0x5d93ea('0x3d'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x1f')]),router['get'](_0x5d93ea('0x39'),auth['isAuthenticated'](),controller[_0x5d93ea('0x1d')]),router['get'](_0x5d93ea('0x2c'),auth['isAuthenticated'](),controller[_0x5d93ea('0x41')]),router['get'](_0x5d93ea('0x57'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x48')]),router[_0x5d93ea('0xf')](_0x5d93ea('0x44'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x43')]),router[_0x5d93ea('0xf')]('/:id/api_key',auth[_0x5d93ea('0x37')](),controller['getApiKey']),router[_0x5d93ea('0xc')](_0x5d93ea('0x58'),auth['isAuthenticated'](),controller[_0x5d93ea('0x6b')]),router[_0x5d93ea('0xc')]('/',auth['isAuthenticated'](),controller[_0x5d93ea('0x32')]),router[_0x5d93ea('0xc')](_0x5d93ea('0x14'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x5b')]),router[_0x5d93ea('0xc')](_0x5d93ea('0x9'),auth['isAuthenticated'](),controller[_0x5d93ea('0x18')]);const upload=multer({'storage':multer[_0x5d93ea('0x4c')]({'destination':function(_0x13e193,_0x42f4ea,_0xab1da1){const _0x52a72e=_0x5d93ea;_0xab1da1(null,path[_0x52a72e('0x67')](config[_0x52a72e('0x53')],_0x52a72e('0x3b')));},'filename':function(_0x1dae4c,_0x3f0861,_0x48ca12){const _0x353540=_0x5d93ea;_0x48ca12(null,util[_0x353540('0x40')]('%s-%s',Date['now'](),_0x3f0861['originalname']));}})});router['post'](_0x5d93ea('0x56'),upload[_0x5d93ea('0x63')]('file'),controller[_0x5d93ea('0x6f')]),router[_0x5d93ea('0xc')](_0x5d93ea('0x1'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x35')]),router[_0x5d93ea('0xc')](_0x5d93ea('0x3c'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x1c')]),router['post'](_0x5d93ea('0x62'),auth['isAuthenticated'](),controller[_0x5d93ea('0x6a')]),router[_0x5d93ea('0xc')](_0x5d93ea('0x4'),auth[_0x5d93ea('0x37')](),controller['unpause']),router['post'](_0x5d93ea('0x13'),auth['isAuthenticated'](),controller[_0x5d93ea('0x47')]),router[_0x5d93ea('0xc')](_0x5d93ea('0x26'),auth[_0x5d93ea('0x37')](),controller['addChatInteractions']),router[_0x5d93ea('0xc')](_0x5d93ea('0x36'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x42')]),router['post'](_0x5d93ea('0x3a'),auth[_0x5d93ea('0x37')](),controller['addFaxInteractions']),router[_0x5d93ea('0xc')](_0x5d93ea('0x59'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x50')]),router['post'](_0x5d93ea('0x38'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x7')]),router[_0x5d93ea('0xc')](_0x5d93ea('0x5'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x46')]),router['post'](_0x5d93ea('0x33'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x2a')]),router['post'](_0x5d93ea('0x1b'),auth['isAuthenticated'](),controller[_0x5d93ea('0x3f')]),router[_0x5d93ea('0xc')](_0x5d93ea('0x2b'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x5e')]),router[_0x5d93ea('0xc')](_0x5d93ea('0x3d'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x60')]),router[_0x5d93ea('0xc')](_0x5d93ea('0x39'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x61')]),router[_0x5d93ea('0xc')]('/:id/whatsapp_accounts',auth[_0x5d93ea('0x37')](),controller['addWhatsappAccounts']),router[_0x5d93ea('0xc')](_0x5d93ea('0x57'),auth['isAuthenticated'](),controller[_0x5d93ea('0x49')]),router[_0x5d93ea('0xc')](_0x5d93ea('0x2e'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x11')]),router[_0x5d93ea('0x31')](_0x5d93ea('0xb'),auth[_0x5d93ea('0x37')](),controller['update']),router[_0x5d93ea('0x31')]('/:id/password',auth['isAuthenticated'](),controller[_0x5d93ea('0x54')]),router['delete'](_0x5d93ea('0x9'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x1e')]),router['delete'](_0x5d93ea('0x13'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x4f')]),router[_0x5d93ea('0x51')](_0x5d93ea('0xb'),auth[_0x5d93ea('0x37')](),controller['destroy']),router[_0x5d93ea('0x51')](_0x5d93ea('0x26'),auth['isAuthenticated'](),controller[_0x5d93ea('0x4b')]),router['delete'](_0x5d93ea('0x36'),auth['isAuthenticated'](),controller[_0x5d93ea('0x20')]),router[_0x5d93ea('0x51')](_0x5d93ea('0x3a'),auth['isAuthenticated'](),controller[_0x5d93ea('0x16')]),router[_0x5d93ea('0x51')](_0x5d93ea('0x59'),auth[_0x5d93ea('0x37')](),controller['removeSmsInteractions']),router[_0x5d93ea('0x51')](_0x5d93ea('0x38'),auth['isAuthenticated'](),controller['removeOpenchannelInteractions']),router[_0x5d93ea('0x51')](_0x5d93ea('0x5'),auth['isAuthenticated'](),controller['removeWhatsappInteractions']),router[_0x5d93ea('0x51')](_0x5d93ea('0x33'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x10')]),router[_0x5d93ea('0x51')](_0x5d93ea('0x1b'),auth['isAuthenticated'](),controller[_0x5d93ea('0x6d')]),router['delete']('/:id/openchannel_accounts',auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x17')]),router[_0x5d93ea('0x51')](_0x5d93ea('0x3d'),auth['isAuthenticated'](),controller[_0x5d93ea('0x27')]),router[_0x5d93ea('0x51')](_0x5d93ea('0x39'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x0')]),router['delete'](_0x5d93ea('0x2c'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x2d')]),router[_0x5d93ea('0x51')](_0x5d93ea('0x57'),auth[_0x5d93ea('0x37')](),controller[_0x5d93ea('0x5f')]),router[_0x5d93ea('0x51')](_0x5d93ea('0x2e'),auth['isAuthenticated'](),controller[_0x5d93ea('0x4e')]),module[_0x5d93ea('0x24')]=router; \ No newline at end of file +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 diff --git a/server/api/user/user.attributes.js b/server/api/user/user.attributes.js index 64886f0..5697849 100644 --- a/server/api/user/user.attributes.js +++ b/server/api/user/user.attributes.js @@ -1 +1 @@ -const a647_0x3af5=['icesupport','phoneBarEnableScreenRecordingByAgent','passive','map','/etc/pki/tls/private/motion.key','callerid','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22port\x22,\x20\x22invite\x22]','insecure','PROHIB_FAILED_SCREEN','local','fullname','rtcp_mux','STRING','always','nonat','user','sequelize','transport','actpass','fingerprint','DATE','VIRTUAL','force_avp','PROHIB','name','util','force_rport,comedia','ALLOWED','TEXT','yes','showWebBar','ulaw;alaw;gsm','accountcode','DEFAULT\x20PAUSE','auto','peer','BOOLEAN','update,nonat','internal','uac','avpf','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22ulaw\x22,\x20\x22alaw\x22,\x20\x22gsm\x22]','INTEGER','blockedAt','dtlsenable','ENUM','email','PROHIB_NOT_SCREENED','wss','dtlsprivatekey','inband','exports','blocked','lodash','friend','moment','getDataValue','outgoing','dtlscertfile','dtlssetup','update','allow','string','split','format','originate','setDataValue','ALLOWED_FAILED_SCREEN','PROHIB_PASSED_SCREEN','permissions','false','accept','toLowerCase','encryption','telephone','shortinfo','udp','get','true','screenrecording','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22udp\x22,\x20\x22tcp\x22]','\x22%s\x22\x20<%s>','info','rfc2833','dtlsverify','dynamic','join','certificate','nat'];(function(_0x328524,_0x3af5be){const _0x3a9058=function(_0x22ee37){while(--_0x22ee37){_0x328524['push'](_0x328524['shift']());}};_0x3a9058(++_0x3af5be);}(a647_0x3af5,0x102));const a647_0x3a90=function(_0x328524,_0x3af5be){_0x328524=_0x328524-0x0;let _0x3a9058=a647_0x3af5[_0x328524];return _0x3a9058;};const _0x1e91d4=a647_0x3a90;'use strict';const Sequelize=require(_0x1e91d4('0x19')),moment=require(_0x1e91d4('0x40')),util=require(_0x1e91d4('0x22')),_=require(_0x1e91d4('0x3e'));module[_0x1e91d4('0x3c')]={'name':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':![],'unique':_0x1e91d4('0x21'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i},'set':function(_0x22ee37){const _0x33b23c=_0x1e91d4;this['setDataValue'](_0x33b23c('0x21'),_0x22ee37),this[_0x33b23c('0x4b')]('defaultuser',_0x22ee37);},'comment':'The\x20name\x20of\x20the\x20user'},'fullname':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':![],'set':function(_0x1384b4){const _0x3be0ab=_0x1e91d4;this[_0x3be0ab('0x4b')](_0x3be0ab('0x13'),_0x1384b4),this[_0x3be0ab('0x4b')](_0x3be0ab('0xe'),util[_0x3be0ab('0x49')](_0x3be0ab('0x1'),_0x1384b4,this[_0x3be0ab('0x41')](_0x3be0ab('0x2f'))));}},'alias':{'type':Sequelize[_0x1e91d4('0x15')]},'email':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':![],'unique':_0x1e91d4('0x37'),'validate':{'isEmail':!![]},'set':function(_0x2e5a99){const _0x13103c=_0x1e91d4;_0x2e5a99&&this['setDataValue'](_0x13103c('0x37'),_0x2e5a99[_0x13103c('0x51')]());}},'role':{'type':Sequelize[_0x1e91d4('0x36')]('admin',_0x1e91d4('0x18'),'agent',_0x1e91d4('0x53')),'allowNull':![]},'password':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':![],'validate':{'notEmpty':!![]}},'provider':{'type':Sequelize[_0x1e91d4('0x15')],'defaultValue':_0x1e91d4('0x12')},'internal':{'type':Sequelize[_0x1e91d4('0x33')](0xb),'allowNull':![],'unique':'internal','set':function(_0x60447f){const _0x4e7f5e=_0x1e91d4;this[_0x4e7f5e('0x4b')]('internal',_0x60447f),this['setDataValue'](_0x4e7f5e('0x29'),_0x60447f),this['setDataValue']('callerid',util[_0x4e7f5e('0x49')](_0x4e7f5e('0x1'),this[_0x4e7f5e('0x41')]('fullname'),_0x60447f));}},'salt':{'type':Sequelize[_0x1e91d4('0x15')]},'phone':{'type':Sequelize[_0x1e91d4('0x15')]},'mobile':{'type':Sequelize[_0x1e91d4('0x15')]},'address':{'type':Sequelize[_0x1e91d4('0x15')]},'zipcode':{'type':Sequelize[_0x1e91d4('0x15')]},'userpic':{'type':Sequelize['STRING']},'city':{'type':Sequelize['STRING']},'country':{'type':Sequelize[_0x1e91d4('0x15')]},'online':{'type':Sequelize[_0x1e91d4('0x2d')],'defaultValue':![]},'lastLoginAt':{'type':Sequelize[_0x1e91d4('0x1d')]},'voicePause':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'chatPause':{'type':Sequelize[_0x1e91d4('0x2d')],'defaultValue':![]},'mailPause':{'type':Sequelize[_0x1e91d4('0x2d')],'defaultValue':![]},'faxPause':{'type':Sequelize[_0x1e91d4('0x2d')],'defaultValue':![]},'smsPause':{'type':Sequelize[_0x1e91d4('0x2d')],'defaultValue':![]},'whatsappPause':{'type':Sequelize[_0x1e91d4('0x2d')],'defaultValue':![]},'openchannelPause':{'type':Sequelize[_0x1e91d4('0x2d')],'defaultValue':![]},'pauseType':{'type':Sequelize[_0x1e91d4('0x15')],'defaultValue':_0x1e91d4('0x2a')},'lastPauseAt':{'type':Sequelize[_0x1e91d4('0x1d')]},'chatCapacity':{'type':Sequelize[_0x1e91d4('0x33')],'defaultValue':0x0},'mailCapacity':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'faxCapacity':{'type':Sequelize[_0x1e91d4('0x33')],'defaultValue':0x0},'smsCapacity':{'type':Sequelize[_0x1e91d4('0x33')],'defaultValue':0x0},'whatsappCapacity':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'openchannelCapacity':{'type':Sequelize[_0x1e91d4('0x33')],'defaultValue':0x0},'phoneBarAutoAnswer':{'type':Sequelize[_0x1e91d4('0x2d')],'defaultValue':![]},'phoneBarEnableSettings':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'phoneBarListenPort':{'type':Sequelize[_0x1e91d4('0x33')](0x5),'defaultValue':0x1428},'phoneBarExpires':{'type':Sequelize[_0x1e91d4('0x33')](0x5),'defaultValue':0x78},'phoneBarRemoteControl':{'type':Sequelize[_0x1e91d4('0x2d')],'defaultValue':![]},'phoneBarRemoteControlPort':{'type':Sequelize[_0x1e91d4('0x33')],'defaultValue':0x26a0},'phoneBarEnableRecording':{'type':Sequelize[_0x1e91d4('0x2d')],'defaultValue':![]},'phoneBarRingInUse':{'type':Sequelize[_0x1e91d4('0x2d')],'defaultValue':![]},'chanspy':{'type':Sequelize[_0x1e91d4('0x2d')],'defaultValue':![]},'description':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'host':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![],'defaultValue':_0x1e91d4('0x5')},'ipaddr':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'port':{'type':Sequelize['INTEGER'](0x5),'allowNull':!![]},'regseconds':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'fullcontact':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'regserver':{'type':Sequelize['STRING'],'allowNull':!![]},'useragent':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'lastms':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'type':{'type':Sequelize['ENUM'](_0x1e91d4('0x3f'),_0x1e91d4('0x18'),_0x1e91d4('0x2c')),'allowNull':!![],'defaultValue':_0x1e91d4('0x3f')},'context':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![],'defaultValue':'from-sip'},'callingpres':{'type':Sequelize[_0x1e91d4('0x36')]('ALLOWED_NOT_SCREENED','ALLOWED_PASSED_SCREEN',_0x1e91d4('0x4c'),_0x1e91d4('0x24'),_0x1e91d4('0x38'),_0x1e91d4('0x4d'),_0x1e91d4('0x11'),_0x1e91d4('0x20')),'allowNull':!![]},'deny':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'permit':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'secret':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'md5secret':{'type':Sequelize['STRING'],'allowNull':!![]},'remotesecret':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'transport':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![],'defaultValue':'udp','set':function(_0x364fc6){const _0x1372c1=_0x1e91d4;this[_0x1372c1('0x4b')](_0x1372c1('0x1a'),_0x364fc6?_0x364fc6[_0x1372c1('0x6')](','):null);},'get':function(){const _0x431222=_0x1e91d4;return this['getDataValue'](_0x431222('0x1a'))?this[_0x431222('0x41')]('transport')['split'](','):null;},'comment':_0x1e91d4('0x0')},'dtmfmode':{'type':Sequelize[_0x1e91d4('0x36')](_0x1e91d4('0x3'),_0x1e91d4('0x2'),_0x1e91d4('0x54'),_0x1e91d4('0x3b'),_0x1e91d4('0x2b')),'allowNull':!![],'defaultValue':'rfc2833'},'directmedia':{'type':Sequelize['ENUM'](_0x1e91d4('0x26'),'no',_0x1e91d4('0x17'),_0x1e91d4('0x45'),_0x1e91d4('0x42')),'allowNull':!![],'defaultValue':'no'},'directrtpsetup':{'type':Sequelize[_0x1e91d4('0x36')]('yes','no'),'allowNull':!![],'defaultValue':'no'},'directmediapermit':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'directmediadeny':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'nat':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![],'defaultValue':_0x1e91d4('0x23'),'set':function(_0x5702af){const _0x5a0efc=_0x1e91d4;this[_0x5a0efc('0x4b')](_0x5a0efc('0x8'),_0x5702af?_0x5702af['join'](','):null);},'get':function(){const _0x12846a=_0x1e91d4;return this[_0x12846a('0x41')](_0x12846a('0x8'))?this[_0x12846a('0x41')](_0x12846a('0x8'))[_0x12846a('0x48')](','):null;},'comment':'String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22force_rport\x22,\x20\x22comedia\x22]'},'callgroup':{'type':Sequelize['STRING']},'namedcallgroup':{'type':Sequelize[_0x1e91d4('0x15')]},'pickupgroup':{'type':Sequelize[_0x1e91d4('0x15')]},'namedpickupgroup':{'type':Sequelize['STRING']},'language':{'type':Sequelize['STRING'],'defaultValue':'en'},'tonezone':{'type':Sequelize[_0x1e91d4('0x15')]},'disallow':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':![],'defaultValue':'all'},'allow':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':![],'defaultValue':_0x1e91d4('0x28'),'set':function(_0xb58c80){const _0x54b205=_0x1e91d4;this['setDataValue'](_0x54b205('0x46'),_0xb58c80?_0xb58c80[_0x54b205('0x6')](';'):_0x54b205('0x28'));},'get':function(){const _0x3a592f=_0x1e91d4;return this['getDataValue'](_0x3a592f('0x46'))?this[_0x3a592f('0x41')](_0x3a592f('0x46'))['split'](';'):null;},'comment':_0x1e91d4('0x32')},'autoframing':{'type':Sequelize[_0x1e91d4('0x36')](_0x1e91d4('0x26'),'no'),'allowNull':!![]},'insecure':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![],'set':function(_0x360c12){const _0x25f4e7=_0x1e91d4;this['setDataValue'](_0x25f4e7('0x10'),_0x360c12?_0x360c12[_0x25f4e7('0x6')](','):null);},'get':function(){const _0x4d58bc=_0x1e91d4;return this[_0x4d58bc('0x41')]('insecure')?this[_0x4d58bc('0x41')](_0x4d58bc('0x10'))[_0x4d58bc('0x48')](','):null;},'comment':_0x1e91d4('0xf')},'trustrpid':{'type':Sequelize['ENUM'](_0x1e91d4('0x26'),'no'),'allowNull':!![],'defaultValue':'no'},'trust_id_outbound':{'type':Sequelize[_0x1e91d4('0x36')](_0x1e91d4('0x26'),'no'),'allowNull':!![],'defaultValue':'no'},'progressinband':{'type':Sequelize[_0x1e91d4('0x36')](_0x1e91d4('0x26'),'no','never'),'allowNull':!![]},'promiscredir':{'type':Sequelize['ENUM']('yes','no'),'allowNull':!![]},'useclientcode':{'type':Sequelize['ENUM'](_0x1e91d4('0x26'),'no'),'allowNull':!![]},'accountcode':{'type':Sequelize[_0x1e91d4('0x33')](0xb),'allowNull':!![]},'setvar':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'callerid':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![],'defaultValue':'\x22\x22\x20<>'},'amaflags':{'type':Sequelize['STRING'],'allowNull':!![]},'callcounter':{'type':Sequelize[_0x1e91d4('0x36')](_0x1e91d4('0x26'),'no'),'allowNull':!![],'defaultValue':'yes'},'busylevel':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'allowoverlap':{'type':Sequelize[_0x1e91d4('0x36')](_0x1e91d4('0x26'),'no'),'allowNull':!![]},'allowsubscribe':{'type':Sequelize['ENUM']('yes','no'),'allowNull':!![]},'allowtransfer':{'type':Sequelize[_0x1e91d4('0x36')](_0x1e91d4('0x26'),'no'),'allowNull':!![]},'ignoresdpversion':{'type':Sequelize['ENUM'](_0x1e91d4('0x26'),'no'),'allowNull':!![]},'subscribecontext':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'template':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'videosupport':{'type':Sequelize['ENUM'](_0x1e91d4('0x26'),'no',_0x1e91d4('0x16')),'allowNull':!![],'defaultValue':'no'},'maxcallbitrate':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'rfc2833compensate':{'type':Sequelize[_0x1e91d4('0x36')](_0x1e91d4('0x26'),'no'),'allowNull':!![]},'mailbox':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'session_timers':{'type':Sequelize[_0x1e91d4('0x36')](_0x1e91d4('0x50'),'refuse',_0x1e91d4('0x4a')),'allowNull':!![]},'session_expires':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'session_minse':{'type':Sequelize[_0x1e91d4('0x33')](0xb),'allowNull':!![]},'session_refresher':{'type':Sequelize[_0x1e91d4('0x36')](_0x1e91d4('0x30'),'uas'),'allowNull':!![],'defaultValue':'uas'},'t38pt_usertpsource':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'regexten':{'type':Sequelize['STRING'],'allowNull':!![]},'fromdomain':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'fromuser':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'qualify':{'type':Sequelize[_0x1e91d4('0x36')](_0x1e91d4('0x26'),'no'),'allowNull':!![],'defaultValue':_0x1e91d4('0x26')},'keepalive':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'defaultip':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'defaultuser':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'rtptimeout':{'type':Sequelize[_0x1e91d4('0x33')](0xb),'allowNull':!![]},'rtpholdtimeout':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'rtpkeepalive':{'type':Sequelize[_0x1e91d4('0x33')](0xb),'allowNull':!![]},'sendrpid':{'type':Sequelize['ENUM'](_0x1e91d4('0x26'),'no'),'allowNull':!![],'defaultValue':'no'},'outboundproxy':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'callbackextension':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'timert1':{'type':Sequelize[_0x1e91d4('0x33')](0xb),'allowNull':!![]},'timerb':{'type':Sequelize[_0x1e91d4('0x33')](0xb),'allowNull':!![]},'qualifyfreq':{'type':Sequelize[_0x1e91d4('0x33')](0xb),'allowNull':!![]},'contactpermit':{'type':Sequelize['STRING'],'allowNull':!![]},'contactdeny':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'contactacl':{'type':Sequelize['STRING'],'allowNull':!![]},'unsolicited_mailbox':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'use_q850_reason':{'type':Sequelize['STRING'],'allowNull':!![]},'maxforwards':{'type':Sequelize[_0x1e91d4('0x33')](0xb),'allowNull':!![]},'encryption':{'type':Sequelize[_0x1e91d4('0x36')](_0x1e91d4('0x26'),'no'),'allowNull':!![],'defaultValue':'no'},'avpf':{'type':Sequelize[_0x1e91d4('0x36')](_0x1e91d4('0x26'),'no'),'allowNull':!![]},'force_avp':{'type':Sequelize[_0x1e91d4('0x36')]('yes','no'),'allowNull':!![]},'icesupport':{'type':Sequelize['ENUM'](_0x1e91d4('0x26'),'no'),'allowNull':!![]},'dtlsenable':{'type':Sequelize[_0x1e91d4('0x36')](_0x1e91d4('0x26'),'no'),'allowNull':!![]},'dtlsverify':{'type':Sequelize[_0x1e91d4('0x36')](_0x1e91d4('0x26'),'no',_0x1e91d4('0x1c'),_0x1e91d4('0x7')),'allowNull':!![]},'dtlsrekey':{'type':Sequelize[_0x1e91d4('0x33')](0xb),'allowNull':!![]},'dtlscertfile':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'dtlsprivatekey':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'dtlscipher':{'type':Sequelize['STRING'],'allowNull':!![]},'dtlscafile':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'dtlscapath':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'dtlssetup':{'type':Sequelize[_0x1e91d4('0x36')]('active',_0x1e91d4('0xb'),_0x1e91d4('0x1b')),'allowNull':!![]},'dtlsfingerprint':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'usereqphone':{'type':Sequelize['ENUM'](_0x1e91d4('0x26'),'no'),'allowNull':!![],'defaultValue':'no'},'recordonfeature':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'recordofffeature':{'type':Sequelize['STRING'],'allowNull':!![]},'call_limit':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![],'defaultValue':0xa},'registertrying':{'type':Sequelize[_0x1e91d4('0x36')](_0x1e91d4('0x26'),'no'),'allowNull':!![]},'subscribemwi':{'type':Sequelize['ENUM'](_0x1e91d4('0x26'),'no'),'allowNull':!![]},'vmexten':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'mohinterpret':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'mohsuggest':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'parkinglot':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'canreinvite':{'type':Sequelize[_0x1e91d4('0x36')](_0x1e91d4('0x26'),'no',_0x1e91d4('0x17'),_0x1e91d4('0x45'),_0x1e91d4('0x2e')),'allowNull':!![],'defaultValue':'no'},'loginInPause':{'type':Sequelize[_0x1e91d4('0x2d')],'defaultValue':![]},'resetPasswordToken':{'type':Sequelize[_0x1e91d4('0x15')]},'resetPasswordExpires':{'type':Sequelize[_0x1e91d4('0x1d')]},'passwordResetAt':{'type':Sequelize[_0x1e91d4('0x1d')],'defaultValue':null},'previousPasswords':{'type':Sequelize[_0x1e91d4('0x15')]},'showWebBar':{'type':Sequelize[_0x1e91d4('0x33')],'defaultValue':0x0,'set':function(_0x1ef33c){const _0x544105=_0x1e91d4;this[_0x544105('0x4b')](_0x544105('0x27'),_0x1ef33c);const _0xdd6d25=this[_0x544105('0x56')]({'plain':!![]});switch(_0x1ef33c){case 0x0:case 0x1:{let _0x5b6bd2=_0xdd6d25[_0x544105('0x1a')]?_['isArray'](_0xdd6d25[_0x544105('0x1a')])?_0xdd6d25['transport']['join']():_0xdd6d25[_0x544105('0x1a')]:_0x544105('0x55');_0x5b6bd2===_0x544105('0x39')&&(_0x5b6bd2=_0x544105('0x55')),this[_0x544105('0x4b')]('transport',_0x5b6bd2),this[_0x544105('0x4b')](_0x544105('0x52'),'no'),this['setDataValue'](_0x544105('0x31'),null),this[_0x544105('0x4b')](_0x544105('0x1f'),null),this[_0x544105('0x4b')]('icesupport',null),this['setDataValue']('dtlsenable',null),this[_0x544105('0x4b')](_0x544105('0x4'),null),this[_0x544105('0x4b')](_0x544105('0x44'),null),this[_0x544105('0x4b')](_0x544105('0x43'),null),this[_0x544105('0x4b')](_0x544105('0x3a'),null),this[_0x544105('0x4b')]('rtcp_mux','no');}break;case 0x2:this[_0x544105('0x4b')](_0x544105('0x1a'),_0x544105('0x39')),this[_0x544105('0x4b')](_0x544105('0x52'),_0x544105('0x26')),this[_0x544105('0x4b')](_0x544105('0x31'),'yes'),this['setDataValue'](_0x544105('0x1f'),_0x544105('0x26')),this['setDataValue'](_0x544105('0x9'),_0x544105('0x26')),this[_0x544105('0x4b')](_0x544105('0x35'),_0x544105('0x26')),this[_0x544105('0x4b')](_0x544105('0x4'),'no'),this['setDataValue']('dtlssetup','actpass'),this['setDataValue'](_0x544105('0x43'),_0xdd6d25['dtlscertfile']||'/etc/pki/tls/certs/motion.crt'),this[_0x544105('0x4b')](_0x544105('0x3a'),_0xdd6d25[_0x544105('0x3a')]||_0x544105('0xd')),this[_0x544105('0x4b')](_0x544105('0x14'),'yes');break;default:}}},'permissions':{'type':Sequelize[_0x1e91d4('0x25')],'set':function(_0x5ef867){const _0x155ad2=_0x1e91d4;this[_0x155ad2('0x4b')]('permissions',_0x5ef867?_0x5ef867['join'](','):[]);},'get':function(){const _0x3800ee=_0x1e91d4;return this[_0x3800ee('0x41')]('permissions')?_[_0x3800ee('0xc')](this[_0x3800ee('0x41')](_0x3800ee('0x4e'))[_0x3800ee('0x48')](','),function(_0x35d76b){return parseInt(_0x35d76b,0xa);}):[];}},'phoneBarUnconditionalNumber':{'type':Sequelize['STRING']},'phoneBarNoReplyNumber':{'type':Sequelize[_0x1e91d4('0x15')]},'phoneBarBusyNumber':{'type':Sequelize[_0x1e91d4('0x15')]},'phoneBarUnconditional':{'type':Sequelize[_0x1e91d4('0x2d')],'defaultValue':![]},'phoneBarNoReply':{'type':Sequelize[_0x1e91d4('0x2d')],'defaultValue':![]},'phoneBarBusy':{'type':Sequelize[_0x1e91d4('0x2d')],'defaultValue':![]},'phoneBarDnd':{'type':Sequelize[_0x1e91d4('0x2d')],'defaultValue':!![]},'phoneBarUnansweredCallBadge':{'type':Sequelize[_0x1e91d4('0x2d')],'defaultValue':!![]},'phoneBarEnableDtmfTone':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'phoneBarAutoAnswerDelay':{'type':Sequelize[_0x1e91d4('0x33')],'defaultValue':0x0},'extensionMonitor':{'type':Sequelize['STRING'],'defaultValue':''},'crudPermissions':{'type':Sequelize[_0x1e91d4('0x33')],'defaultValue':0x0},'rtcp_mux':{'type':Sequelize[_0x1e91d4('0x36')](_0x1e91d4('0x26'),'no'),'defaultValue':'no'},'allowmessenger':{'type':Sequelize[_0x1e91d4('0x2d')],'defaultValue':!![]},'phoneBarOutboundProxy':{'type':Sequelize[_0x1e91d4('0x15')]},'phoneBarEnableJaws':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'phoneBarEnableScreenRecordingByAgent':{'type':Sequelize[_0x1e91d4('0x2d')],'defaultValue':![]},'phoneBarEnableVideoRecording':{'type':Sequelize[_0x1e91d4('0x1e')],'get':function(){const _0x4c3761=_0x1e91d4;return this['getDataValue'](_0x4c3761('0xa'))?this[_0x4c3761('0x41')](_0x4c3761('0xa')):![];}},'phoneBarEnableAutomaticScreenRecording':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'phoneBarPrefixRequired':{'type':Sequelize[_0x1e91d4('0x2d')],'defaultValue':![]},'hotdesk':{'type':Sequelize[_0x1e91d4('0x2d')],'defaultValue':![]},'interface':{'type':Sequelize['STRING'],'defaultValue':null},'privacyEnabled':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'apiKeyNonce':{'type':Sequelize[_0x1e91d4('0x15')],'allowNull':!![]},'apiKeyIat':{'type':Sequelize['STRING'],'allowNull':!![]},'screenrecording':{'type':Sequelize[_0x1e91d4('0x2d')],'defaultValue':![],'set':function(_0x1c0a9d){const _0x41288c=_0x1e91d4;if(typeof _0x1c0a9d===_0x41288c('0x47')){const _0xdbeb41=_0x1c0a9d==='1'?!![]:_0x1c0a9d==='0'?![]:_0x1c0a9d===_0x41288c('0x57')?!![]:_0x1c0a9d===_0x41288c('0x4f')?![]:![];this[_0x41288c('0x4b')](_0x41288c('0x58'),_0xdbeb41);}else this[_0x41288c('0x4b')]('screenrecording',_0x1c0a9d);}},'blocked':{'type':Sequelize[_0x1e91d4('0x2d')],'defaultValue':![],'set':function(_0x2e300b){const _0x46bbf8=_0x1e91d4;this[_0x46bbf8('0x4b')](_0x46bbf8('0x3d'),_0x2e300b),_0x2e300b===!![]?(this[_0x46bbf8('0x4b')](_0x46bbf8('0x34'),moment()),this[_0x46bbf8('0x4b')]('loginAttempts',0x0)):this[_0x46bbf8('0x4b')](_0x46bbf8('0x34'),null);}},'blockedAt':{'type':Sequelize[_0x1e91d4('0x1d')],'defaultValue':null},'loginAttempts':{'type':Sequelize[_0x1e91d4('0x33')],'defaultValue':0x0},'disabled':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'settingsEnabled':{'type':Sequelize[_0x1e91d4('0x2d')],'defaultValue':!![]}}; \ No newline at end of file +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 diff --git a/server/api/user/user.controller.js b/server/api/user/user.controller.js index da5f13e..cbf98c0 100644 --- a/server/api/user/user.controller.js +++ b/server/api/user/user.controller.js @@ -1 +1 @@ -const a648_0x3136=['each','catch','108','loginInPause','chatPause','../../components/parsers/qs','user_has_fax_interactions:remove','removeSquareProjects','user_has_fax_interactions:save','getTeams','Unauthorized.\x20You\x20must\x20be\x20an\x20administrator\x20in\x20order\x20to\x20create\x20an\x20administrator','getLists','Whatsapp','api','addMailInteractions','values','getFaxInteractions','setDataValue','MailInteraction','smsPause','updatePasswordsHistory','Unauthorized.\x20You\x20must\x20be\x20an\x20administrator\x20in\x20order\x20to\x20create\x20an\x20user','getRecordings','getOpenchannelInteractions','addOpenchannelInteractions','getSmsAccounts','Unauthorized','addFaxInteractions','ScreenRecording','100','headers','sendStatus','get','List','addWhatsappAccounts','options','mobile','addChatInteractions','authenticate','params','push','merge','$not','min_internal','Sms','whatsapp','LOGININPAUSE','Sequelize','Agents','unpause','$in','removeOpenchannelAccounts','channel','join','getSmsInteractions','New\x20password\x20must\x20be\x20different\x20from\x20old\x20password','./user.socket','ChatInteraction','$between','max','addSmsAccounts','$ne','json','attributes','sequelize','removeFaxInteractions','Unable\x20to\x20retrieve\x20the\x20current\x20user','VIRTUAL','online','register','util','resolve','phone','getVoicePrefixes','addFaxAccounts','create','getVoiceQueues','$eq','show','getWhatsappInteractions','user','undefined','getFaxQueues','Queue:remove','lodash','removeTeams','../../config/environment','getVoiceQueuesRt','getScheduledCalls','../../rediscache','send','User','UserVoiceQueue.penalty','interface','socket','file','connection','checkUserLimits','voice','getWhatsappAccounts','../../config/license/util','$lte','pause','No\x20API\x20access\x20key\x20found!','removeWhatsappAccounts','all','password','keys','transaction','whoami','UserProfileSection','login','CmList','client','CmHopper','$gt','getSquareProjects','UserId','update','request','MemberReport','Openchannel','LOGIN','$gte','getOpenchannelQueues','ValidationError','ids','userProfileId','addOpenchannelAccounts','root','enforcePasswordHistory','removeFaxAccounts','getContacts','105','$overlap','pick','addSquareProjects','isNil','filter','faxPause','addQueues','Invalid\x20body\x20format.\x20Use\x20newPassword','getQueues','getChatQueues','isValidChannel','oldPassword','ChatWebsite','userpic','format','UserProfileResource','CmContact','nolimit','YYYY-MM-DD\x20HH:mm:ss','getSmsQueues','name','omit','jayson/promise','findOne','Tag','createApiKey','User,\x20%s,\x20%s','$contains','Tags','getChatInteractions','Contact','openchannelPause','user_has_sms_interactions:remove','DEFAULT\x20PAUSE','ChatGroup','admin','getOpenchannelAccounts','forEach','status','removeOpenchannelInteractions','whatsapppause','voicePause','user_has_openchannel_interactions:remove','removeWhatsappInteractions','from','info','getMailInteractions','moment','Fax','getWhatsappQueues','agent','Queue:save','removeChatInteractions','addContacts','mailPause','rawAttributes','voicemail','Voice','concat','describe','server/files/images/logos/default_profile.png','apiKeyIat','model','101','includes','add','user_has_chat_interactions:save','Pause','value','findAll','passwordHistoryLimit','getAvatar','FaxInteraction','user_has_mail_interactions:remove','code','validatePasswordPattern','Mail','104','removeSmsInteractions','where','type','iat','mailbox','$notILike','../../components/auth/service','$notBetween','QueuePause','stack','fullname','QueueId','../../mysqldb','getChatWebsites','fields','$lt','filters','$notLike','user_has_chat_interactions:remove','Unknown\x20role','sms','permissions','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','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)','API\x20key\x20not\x20available','Users','like','download','manual','isArray','106','set','request\x20sent','toLowerCase','order','newPassword','includeAll','getScreenRecordings','col','Use','removeMailAccounts','query','Team','fieldName','MailAccount','getMailQueues','include','map','lastName','Queue','113','SmsInteraction','user_has_whatsapp_interactions:save','internal','addMailAccounts','$like','102','getFaxAccounts','role','getChannels','existsSync','You\x20don\x27t\x20have\x20sufficient\x20privileges\x20to\x20access\x20this\x20resource.','token','You\x20can\x27t\x20delete\x20yourself','message','../../config/utils','removeApiKey','then','intrf','Queues','lower','path','pauseType','openchannel','flatten','result','$and','user_has_sms_interactions:save','offset','$any','removeAgent','length','server/files/images/','destroy','remoteAddress','stringify','dialActive','User,\x20%s,\x20%s,\x20%s','previousPasswords','chat','tag','body','limit','telephone','upsert','PAUSE','user:%s','addChatWebsites','mail','VoiceQueue','key','110','Content-Range','109','removeMailInteractions','SIP/%s','emit','getGroups','settingsEnabled','error','ignore','email','UserVoiceQueueRt','VoiceMail','debug','some','securePassword','getDataValue','rows','Unknown\x20channel','autoAssociation','salt','capitalize','lastPauseAt','../../config/logger','removeChatWebsites','getMailAccounts','penalty','111','sort','user_has_mail_interactions:save','intersection','find','count','addSmsInteractions','end','fax','Telephones','addTeams','index','Chat','user:forcelogout'];(function(_0x1dc1c4,_0x31363e){const _0x24ebe6=function(_0x2ce227){while(--_0x2ce227){_0x1dc1c4['push'](_0x1dc1c4['shift']());}};_0x24ebe6(++_0x31363e);}(a648_0x3136,0x1eb));const a648_0x24eb=function(_0x1dc1c4,_0x31363e){_0x1dc1c4=_0x1dc1c4-0x0;let _0x24ebe6=a648_0x3136[_0x1dc1c4];return _0x24ebe6;};const _0x38eeae=a648_0x24eb;'use strict';const moment=require(_0x38eeae('0x2c')),util=require(_0x38eeae('0x11f')),path=require(_0x38eeae('0x92')),fs=require('fs'),_=require(_0x38eeae('0x12d')),{getSocket}=require(_0x38eeae('0x132')),socket=getSocket(),authService=require(_0x38eeae('0x51')),qs=require(_0x38eeae('0xde')),logger=require(_0x38eeae('0xc7'))(_0x38eeae('0xe6')),utils=require(_0x38eeae('0x8c')),config=require(_0x38eeae('0x12f')),db=require(_0x38eeae('0x57'))['db'],{Op}=require('sequelize'),licenseUtil=require(_0x38eeae('0x13d'));require(_0x38eeae('0x111'))[_0x38eeae('0x11e')](socket);const jayson=require(_0x38eeae('0x13')),client=jayson[_0x38eeae('0x14a')]['http']({'port':0x232a});function respondWithRpcPromise(_0x2ce227,_0x1f8064,_0x1a3804,_0x423c0c){return new Promise(function(_0xab9621,_0x32b24f){const _0x5295bd=a648_0x24eb,_0x5ac24a=_0x423c0c||client;return _0x5ac24a[_0x5295bd('0x150')](_0x2ce227,_0x1a3804)[_0x5295bd('0x8e')](function(_0x25b325){const _0xe18d73=_0x5295bd;logger[_0xe18d73('0x2a')](_0xe18d73('0x17'),_0x1f8064,'request\x20sent'),logger[_0xe18d73('0xbd')](_0xe18d73('0xa2'),_0x1f8064,_0xe18d73('0x6b'),JSON[_0xe18d73('0xa0')](_0x25b325));if(_0x25b325[_0xe18d73('0xb8')]){if(_0x25b325[_0xe18d73('0xb8')][_0xe18d73('0x47')]===0x1f4)return logger['error'](_0xe18d73('0x17'),_0x1f8064,_0x25b325['error']['message']),_0x32b24f(_0x25b325['error']['message']);return logger[_0xe18d73('0xb8')](_0xe18d73('0x17'),_0x1f8064,_0x25b325['error'][_0xe18d73('0x8b')]),_0xab9621(_0x25b325[_0xe18d73('0xb8')][_0xe18d73('0x8b')]);}else logger[_0xe18d73('0x2a')](_0xe18d73('0x17'),_0x1f8064,_0xe18d73('0x6b')),_0xab9621(_0x25b325[_0xe18d73('0x96')][_0xe18d73('0x8b')]);})[_0x5295bd('0xda')](function(_0x438cde){const _0x578af4=_0x5295bd;logger[_0x578af4('0xb8')](_0x578af4('0x17'),_0x1f8064,_0x438cde),_0x32b24f(_0x438cde);});});}function respondWithStatusCode(_0x52ab6e,_0x3e7cdf){return _0x3e7cdf=_0x3e7cdf||0xcc,function(_0x4cd180){const _0x20ab50=a648_0x24eb;if(_0x4cd180)return _0x52ab6e[_0x20ab50('0xf8')](_0x3e7cdf);return _0x52ab6e[_0x20ab50('0x23')](_0x3e7cdf)[_0x20ab50('0xd2')]();};}function respondWithResult(_0x208657,_0xb4df7){return _0xb4df7=_0xb4df7||0xc8,function(_0x10508e){const _0x4d0142=a648_0x24eb;if(_0x10508e)return _0x208657['status'](_0xb4df7)[_0x4d0142('0x117')](_0x10508e);};}function respondWithFilteredResult(_0xf5f061,_0x4c3b97){return function(_0x3238f2){const _0x1baa79=a648_0x24eb;if(_0x3238f2){const _0x2b6c1a=_0x3238f2[_0x1baa79('0xd0')],_0x4f08ee=_0x4c3b97[_0x1baa79('0x99')];let _0x2d27cc=_0x4c3b97[_0x1baa79('0x99')]+_0x4c3b97['limit'],_0x193d49;return _0x2d27cc>=_0x2b6c1a?(_0x2d27cc=_0x2b6c1a,_0x193d49=0xc8):_0x193d49=0xce,_0xf5f061['status'](_0x193d49),_0xf5f061[_0x1baa79('0x6a')](_0x1baa79('0xb1'),_0x4f08ee+'-'+_0x2d27cc+'/'+_0x2b6c1a)[_0x1baa79('0x117')](_0x3238f2);}return null;};}function saveUpdates(_0x39a2bb){return function(_0x300ebe){const _0x53a48e=a648_0x24eb;if(_0x300ebe)return _0x300ebe[_0x53a48e('0x14f')](_0x39a2bb)[_0x53a48e('0x8e')](function(_0x1617e2){return _0x1617e2;});return null;};}function removeEntity(_0x477505){return function(_0x338465){const _0x461db4=a648_0x24eb;if(_0x338465)return _0x338465[_0x461db4('0x9e')]()[_0x461db4('0x8e')](function(){const _0x2eda07=_0x461db4,_0x17d90b=_0x338465['get']({'plain':!![]});if(_0x17d90b[_0x2eda07('0x85')]===_0x2eda07('0x20'))return;const _0x27d1d0=[{'name':_0x2eda07('0x64'),'value':_0x2eda07('0x129'),'ignore':!![]},{'name':_0x2eda07('0x109'),'value':'agent','ignore':![]},{'name':_0x2eda07('0xd4'),'value':_0x2eda07('0xa8'),'ignore':![]}],_0xeaa957=_(_0x27d1d0)[_0x2eda07('0x1')](_0x2eda07('0xb9'))[_0x2eda07('0x7a')]('value')[_0x2eda07('0x41')]();if(_[_0x2eda07('0x3d')](_0xeaa957,_0x17d90b[_0x2eda07('0x85')]))return;const _0x5a241a=_[_0x2eda07('0xcf')](_0x27d1d0,[_0x2eda07('0x41'),_0x17d90b[_0x2eda07('0x85')]])[_0x2eda07('0x11')];return db[_0x2eda07('0xc')]['destroy']({'where':{'type':_0x5a241a,'resourceId':_0x17d90b['id']}})[_0x2eda07('0x8e')](function(){return _0x338465;});})['then'](function(){const _0x2f63e4=_0x461db4;_0x477505['status'](0xcc)[_0x2f63e4('0xd2')]();});};}function handleEntityNotFound(_0x376c62){return function(_0x40585d){return!_0x40585d&&_0x376c62['sendStatus'](0x194),_0x40585d;};}function handleError(_0x44b2f9,_0x3b5670){return _0x3b5670=_0x3b5670||0x1f4,function(_0x59e25b){const _0x2ef4b9=a648_0x24eb;logger['error'](_0x59e25b[_0x2ef4b9('0x54')]),_0x59e25b['name']&&delete _0x59e25b[_0x2ef4b9('0x11')],_0x44b2f9[_0x2ef4b9('0x23')](_0x3b5670)['send'](_0x59e25b);};}function validateUser(_0x46351c){return new Promise(function(_0x1e5c09,_0x4ba0ba){const _0x4e60a9=a648_0x24eb;if(_0x46351c[_0x4e60a9('0x80')])return _0x1e5c09(_0x46351c);return db['Setting']['findByPk'](0x1)[_0x4e60a9('0x8e')](function(_0x577441){const _0x32f59f=_0x4e60a9;if(_0x577441[_0x32f59f('0xbf')])authService[_0x32f59f('0x48')](_0x46351c[_0x32f59f('0x143')]);db[_0x32f59f('0x134')][_0x32f59f('0x114')](_0x32f59f('0x80'))[_0x32f59f('0x8e')](function(_0x4c7880){const _0x1089d3=_0x32f59f;if(_[_0x1089d3('0x0')](_0x4c7880)){_0x46351c['internal']=_0x577441[_0x1089d3('0x104')]||0x1;return;}if(_[_0x1089d3('0x0')](_0x577441[_0x1089d3('0x104')])||_0x577441[_0x1089d3('0x104')]===_0x4c7880){_0x46351c[_0x1089d3('0x80')]=_0x4c7880+0x1;return;}if(_0x577441[_0x1089d3('0x104')]>_0x4c7880){_0x46351c[_0x1089d3('0x80')]=_0x577441[_0x1089d3('0x104')];return;}return db[_0x1089d3('0x119')]['query'](_0x1089d3('0x62'),{'type':db[_0x1089d3('0x119')]['QueryTypes']['SELECT']})[_0x1089d3('0x8e')](function(_0xfb68b5){const _0x13e07e=_0x1089d3;if(_0xfb68b5&&_0xfb68b5[_0x13e07e('0x9c')])for(let _0x3f01b2=0x0,_0x401079=_0xfb68b5[_0x13e07e('0x9c')];_0x3f01b2<_0x401079&&_[_0x13e07e('0x0')](_0x46351c[_0x13e07e('0x80')]);_0x3f01b2++){if(_0x577441[_0x13e07e('0x104')]<=_0xfb68b5[_0x3f01b2][_0x13e07e('0x29')])_0x46351c['internal']=_0xfb68b5[_0x3f01b2][_0x13e07e('0x29')];else _0x577441['min_internal']>_0xfb68b5[_0x3f01b2][_0x13e07e('0x29')]&&_0x577441['min_internal']<=_0xfb68b5[_0x3f01b2]['to']&&(_0x46351c[_0x13e07e('0x80')]=_0x577441[_0x13e07e('0x104')]);}return _[_0x13e07e('0x0')](_0x46351c[_0x13e07e('0x80')])&&(_0x46351c[_0x13e07e('0x80')]=_0x4c7880+0x1),_0x1e5c09(_0x46351c);});});})[_0x4e60a9('0xda')](function(_0x5e9a44){_0x4ba0ba(_0x5e9a44);});});}function updateUser(_0x2600ff){return new Promise(function(_0x304791,_0x3cae3b){const _0x5484de=a648_0x24eb;try{_0x2600ff[_0x5484de('0x35')]&&(_0x2600ff[_0x5484de('0x4f')]=_0x2600ff['internal'],_0x2600ff[_0x5484de('0xbc')]={'mailbox':_0x2600ff[_0x5484de('0x80')],'password':_0x2600ff[_0x5484de('0x143')],'fullname':_0x2600ff[_0x5484de('0x55')],'email':_0x2600ff[_0x5484de('0xba')]});if(_0x2600ff[_0x5484de('0x85')]==='agent'){if(!_0x2600ff[_0x5484de('0x60')])_0x2600ff[_0x5484de('0x60')]=[_0x5484de('0x3c'),_0x5484de('0x83'),'103',_0x5484de('0x7d'),_0x5484de('0xb0'),_0x5484de('0x4a'),_0x5484de('0x15e'),_0x5484de('0x69'),'107',_0x5484de('0xdb'),_0x5484de('0xb2'),_0x5484de('0xf6'),_0x5484de('0xcb'),'114'];}_0x304791(_0x2600ff);}catch(_0x120e15){_0x3cae3b(_0x120e15);}});}exports[_0x38eeae('0xd6')]=function(_0x31ffd4,_0x4de5a3){const _0xe1438c=_0x38eeae;let _0x2dbf04={};const _0x33290c={},_0x3e89aa={'count':0x0,'rows':[]},_0x3bd305=_[_0xe1438c('0x7a')](db[_0xe1438c('0x134')][_0xe1438c('0x34')],function(_0x264d9c){const _0x2d58f3=_0xe1438c;return{'name':_0x264d9c[_0x2d58f3('0x76')],'type':_0x264d9c['type'][_0x2d58f3('0xaf')]};});_0x33290c[_0xe1438c('0x3b')]=_['differenceBy'](_['map'](_0x3bd305,_0xe1438c('0x11')),[_0xe1438c('0x143'),_0xe1438c('0xc4')]),_0x33290c[_0xe1438c('0x74')]=_[_0xe1438c('0x144')](_0x31ffd4['query']),_0x33290c[_0xe1438c('0x5b')]=_['intersection'](_0x33290c[_0xe1438c('0x3b')],_0x33290c['query']),_0x2dbf04['attributes']=_[_0xe1438c('0xce')](_0x33290c[_0xe1438c('0x3b')],qs[_0xe1438c('0x59')](_0x31ffd4['query'][_0xe1438c('0x59')])),_0x2dbf04[_0xe1438c('0x118')]=_0x2dbf04[_0xe1438c('0x118')]['length']?_0x2dbf04[_0xe1438c('0x118')]:_0x33290c[_0xe1438c('0x3b')];typeof _0x31ffd4[_0xe1438c('0x74')][_0xe1438c('0xe')]===_0xe1438c('0x12a')&&(_0x2dbf04['limit']=qs['limit'](_0x31ffd4['query'][_0xe1438c('0xa7')]),_0x2dbf04[_0xe1438c('0x99')]=qs[_0xe1438c('0x99')](_0x31ffd4[_0xe1438c('0x74')][_0xe1438c('0x99')]));_0x2dbf04['order']=qs['sort'](_0x31ffd4[_0xe1438c('0x74')]['sort']),_0x2dbf04[_0xe1438c('0x4c')]=qs['filters'](_['pick'](_0x31ffd4[_0xe1438c('0x74')],_0x33290c['filters']),_0x3bd305);_0x31ffd4[_0xe1438c('0x74')][_0xe1438c('0x1')]&&(_0x2dbf04[_0xe1438c('0x4c')]=_[_0xe1438c('0x102')](_0x2dbf04[_0xe1438c('0x4c')],{[Op['or']]:_['map'](_0x3bd305,function(_0x11e72d){const _0x568b15=_0xe1438c;if(_0x11e72d[_0x568b15('0x4d')]!==_0x568b15('0x11c'))return db[_0x568b15('0x119')][_0x568b15('0x4c')](db[_0x568b15('0x119')]['fn']('lower',db[_0x568b15('0x119')][_0x568b15('0x71')](_0x11e72d['name'])),{'$like':db[_0x568b15('0x119')]['fn'](_0x568b15('0x91'),'%'+_0x31ffd4[_0x568b15('0x74')][_0x568b15('0x1')]+'%')});})}));_0x2dbf04=_[_0xe1438c('0x102')]({},_0x2dbf04,_0x31ffd4[_0xe1438c('0xfc')]);const _0xc81df6={'where':_0x2dbf04[_0xe1438c('0x4c')]};return db[_0xe1438c('0x134')][_0xe1438c('0xd0')](_0xc81df6)[_0xe1438c('0x8e')](function(_0x44f449){const _0x2b05a2=_0xe1438c;return _0x3e89aa[_0x2b05a2('0xd0')]=_0x44f449,typeof _0x31ffd4[_0x2b05a2('0x74')][_0x2b05a2('0x6f')]!==_0x2b05a2('0x12a')&&(_0x2dbf04['include']=[{'all':!![]}]),db[_0x2b05a2('0x134')][_0x2b05a2('0x42')](_0x2dbf04);})[_0xe1438c('0x8e')](function(_0x26d0e3){const _0x2f61b6=_0xe1438c;return _0x3e89aa[_0x2f61b6('0xc1')]=_0x26d0e3,_0x3e89aa;})['then'](respondWithFilteredResult(_0x4de5a3,_0x2dbf04))['catch'](handleError(_0x4de5a3,null));},exports[_0x38eeae('0x127')]=function(_0x12b9cb,_0x485d5b){const _0x5d59e2=_0x38eeae;let _0x421c8f={'raw':![],'where':{'id':_0x12b9cb[_0x5d59e2('0x100')]['id']}};const _0x46606c={};return _0x46606c['model']=_['differenceBy'](_[_0x5d59e2('0x144')](db[_0x5d59e2('0x134')]['rawAttributes']),['password',_0x5d59e2('0xc4')]),_0x46606c['query']=_[_0x5d59e2('0x144')](_0x12b9cb[_0x5d59e2('0x74')]),_0x46606c[_0x5d59e2('0x5b')]=_[_0x5d59e2('0xce')](_0x46606c[_0x5d59e2('0x3b')],_0x46606c[_0x5d59e2('0x74')]),_0x421c8f['attributes']=_[_0x5d59e2('0xce')](_0x46606c[_0x5d59e2('0x3b')],qs['fields'](_0x12b9cb[_0x5d59e2('0x74')][_0x5d59e2('0x59')])),_0x421c8f[_0x5d59e2('0x118')]=_0x421c8f[_0x5d59e2('0x118')][_0x5d59e2('0x9c')]?_0x421c8f[_0x5d59e2('0x118')]:_0x46606c[_0x5d59e2('0x3b')],_0x12b9cb[_0x5d59e2('0x74')][_0x5d59e2('0x6f')]&&(_0x421c8f[_0x5d59e2('0x79')]=[{'all':!![]}]),_0x421c8f=_['merge']({},_0x421c8f,_0x12b9cb['options']),db[_0x5d59e2('0x134')][_0x5d59e2('0x14')](_0x421c8f)['then'](handleEntityNotFound(_0x485d5b,null))['then'](respondWithResult(_0x485d5b,null))['catch'](handleError(_0x485d5b,null));},exports['bulkCreate']=function(_0x49679c,_0x37c018){const _0x2d182b=_0x38eeae,_0x5a7bc4=_0x49679c['body'];let _0x1f43cb=[];if(_0x49679c[_0x2d182b('0x129')][_0x2d182b('0x85')]===_0x2d182b('0x2f'))throw new Error(_0x2d182b('0xf3'));if(_[_0x2d182b('0xbe')](_0x5a7bc4,[_0x2d182b('0x85'),_0x2d182b('0x129')])&&_0x49679c['user'][_0x2d182b('0x85')]!==_0x2d182b('0x20'))throw new Error(_0x2d182b('0xee'));if(_[_0x2d182b('0xbe')](_0x5a7bc4,[_0x2d182b('0x85'),_0x2d182b('0x20')])&&_0x49679c[_0x2d182b('0x129')][_0x2d182b('0x85')]!==_0x2d182b('0x20'))throw new Error(_0x2d182b('0xe3'));return licenseUtil[_0x2d182b('0x13a')](_0x5a7bc4)[_0x2d182b('0x8e')](function(){return validateUser(_0x5a7bc4[0x0]);})[_0x2d182b('0x8e')](function(){const _0x55d3e0=_0x2d182b;for(let _0x175eac=0x1;_0x175eac<_0x5a7bc4['length'];_0x175eac++){const _0x18786f=_0x5a7bc4[_0x175eac-0x1][_0x55d3e0('0x80')];if(!_0x5a7bc4[_0x175eac][_0x55d3e0('0x80')])_0x5a7bc4[_0x175eac][_0x55d3e0('0x80')]=_0x18786f+0x1;_0x1f43cb[_0x55d3e0('0x101')](validateUser(_0x5a7bc4[_0x175eac]));}return Promise[_0x55d3e0('0x142')](_0x1f43cb);})[_0x2d182b('0x8e')](function(){const _0x289fad=_0x2d182b;_0x1f43cb=[];for(let _0x43f463=0x0;_0x43f463<_0x5a7bc4[_0x289fad('0x9c')];_0x43f463++){_0x1f43cb[_0x289fad('0x101')](updateUser(_0x5a7bc4[_0x43f463]));}return Promise[_0x289fad('0x142')](_0x1f43cb);})[_0x2d182b('0x8e')](function(){const _0x1d61ea=_0x2d182b;return _0x1f43cb=_0x5a7bc4[_0x1d61ea('0x7a')](_0x288171=>{const _0x3a2bb3=_0x1d61ea;return db['User']['create'](_0x288171,{'include':[{'model':db[_0x3a2bb3('0xbc')],'as':'VoiceMail'}]})[_0x3a2bb3('0x8e')](function(_0xa30fd7){return _0x288171['id']=_0xa30fd7['id'],_0x288171;});}),Promise[_0x1d61ea('0x142')](_0x1f43cb);})[_0x2d182b('0x8e')](function(_0x45840a){const _0x455795=_0x2d182b;if(_0x49679c[_0x455795('0xa6')][_0x455795('0x85')]==='user')return _0x45840a;if(_0x49679c['user']['role']!=='user')return _0x45840a;const _0xe253cd=_[_0x455795('0xbe')](_0x45840a,function(_0x2adf48){const _0x2ef86d=_0x455795;return _0x2adf48[_0x2ef86d('0x85')]===_0x2ef86d('0x2f')||_0x2adf48[_0x2ef86d('0x85')]===_0x2ef86d('0xa8');});if(!_0xe253cd)return _0x45840a;return db['UserProfileSection'][_0x455795('0x42')]({'where':{'name':{[Op['or']]:['Agents','Telephones']},'userProfileId':_0x49679c['user'][_0x455795('0x158')]},'raw':!![]})['then'](function(_0x158891){const _0x5a85ff=_0x455795;if(_['isEmpty'](_0x158891)||!_[_0x5a85ff('0xbe')](_0x158891,[_0x5a85ff('0xc3'),0x0]))return _0x45840a;_0x1f43cb=[];const _0x226821=_(_0x158891)[_0x5a85ff('0x7a')](function(_0x284a3f){const _0x43b3b2=_0x5a85ff;if(_0x284a3f['autoAssociation']===0x1)return;return _0x284a3f[_0x43b3b2('0x11')]===_0x43b3b2('0x109')?_0x43b3b2('0x2f'):_0x43b3b2('0xa8');})['compact']()['value']();for(let _0x355345=0x0;_0x355345<_0x45840a[_0x5a85ff('0x9c')];_0x355345++){if(!_[_0x5a85ff('0x3d')](_0x226821,_0x45840a[_0x355345]['role']))return;const _0x4d5886=_0x45840a[_0x355345][_0x5a85ff('0x85')]===_0x5a85ff('0x2f')?_0x5a85ff('0x109'):_0x5a85ff('0xd4');_0x1f43cb[_0x5a85ff('0x101')](db[_0x5a85ff('0xc')][_0x5a85ff('0x124')]({'name':_0x45840a[_0x355345][_0x5a85ff('0x11')],'resourceId':_0x45840a[_0x355345]['id'],'type':_0x4d5886,'sectionId':_['find'](_0x158891,['name',_0x4d5886])['id']},{}));}return Promise[_0x5a85ff('0x142')](_0x1f43cb);});})[_0x2d182b('0x8e')](respondWithResult(_0x37c018,0xc9))['catch'](handleError(_0x37c018,null));},exports[_0x38eeae('0x14f')]=function(_0x42fe74,_0x19e752){const _0x63b394=_0x38eeae;return _0x42fe74['body']['id']&&delete _0x42fe74[_0x63b394('0xa6')]['id'],delete _0x42fe74[_0x63b394('0xa6')][_0x63b394('0x85')],db[_0x63b394('0x134')]['findOne']({'where':{'id':_0x42fe74['params']['id']}})[_0x63b394('0x8e')](handleEntityNotFound(_0x19e752,null))['then'](saveUpdates(_0x42fe74['body'],null))[_0x63b394('0x8e')](respondWithResult(_0x19e752,null))['catch'](handleError(_0x19e752,null));},exports[_0x38eeae('0x38')]=function(_0x358d72,_0x21c5b5){const _0x90db5a=_0x38eeae;return db['User'][_0x90db5a('0x38')]()['then'](respondWithResult(_0x21c5b5,null))['catch'](handleError(_0x21c5b5,null));},exports[_0x38eeae('0x32')]=function(_0x2911e0,_0x56b05d){const _0x1eebba=_0x38eeae;return db['User'][_0x1eebba('0x14')]({'where':{'id':_0x2911e0[_0x1eebba('0x100')]['id']}})[_0x1eebba('0x8e')](handleEntityNotFound(_0x56b05d,null))['then'](function(_0x253649){const _0x1e475e=_0x1eebba;if(_0x253649)return _0x253649[_0x1e475e('0x32')](_0x2911e0[_0x1e475e('0xa6')][_0x1e475e('0x157')],{'through':_[_0x1e475e('0x12')](_0x2911e0[_0x1e475e('0xa6')],[_0x1e475e('0x157'),'id'])});})[_0x1eebba('0x8e')](respondWithResult(_0x56b05d,null))[_0x1eebba('0xda')](handleError(_0x56b05d,null));},exports['create']=function(_0x37b322,_0x2a147e){const _0x637b=_0x38eeae;if(_0x37b322['user'][_0x637b('0x85')]===_0x637b('0x2f'))throw new Error(_0x637b('0xf3'));if(_0x37b322[_0x637b('0xa6')]['role']===_0x637b('0x129')&&_0x37b322['user'][_0x637b('0x85')]!=='admin')throw new Error('Unauthorized.\x20You\x20must\x20be\x20an\x20administrator\x20in\x20order\x20to\x20create\x20an\x20user');if(_0x37b322[_0x637b('0xa6')][_0x637b('0x85')]===_0x637b('0x20')&&_0x37b322[_0x637b('0x129')][_0x637b('0x85')]!==_0x637b('0x20'))throw new Error('Unauthorized.\x20You\x20must\x20be\x20an\x20administrator\x20in\x20order\x20to\x20create\x20another\x20administrator');return licenseUtil['checkUserLimits']([_0x37b322[_0x637b('0xa6')]])[_0x637b('0x8e')](function(){const _0x5ea7bc=_0x637b;return validateUser(_0x37b322[_0x5ea7bc('0xa6')]);})[_0x637b('0x8e')](function(_0x3d017a){return updateUser(_0x3d017a)['then'](function(_0x474249){const _0x5ac033=a648_0x24eb;return _0x474249[_0x5ac033('0x85')]===_0x5ac033('0x20')&&(_0x474249[_0x5ac033('0xb7')]=_0x37b322[_0x5ac033('0x129')][_0x5ac033('0xb7')],delete _0x474249[_0x5ac033('0x158')]),_0x474249;});})[_0x637b('0x8e')](function(_0x3169a9){const _0x52349b=_0x637b;return db['User'][_0x52349b('0x124')](_0x3169a9,{'include':[{'model':db[_0x52349b('0xbc')],'as':_0x52349b('0xbc')}]});})[_0x637b('0x8e')](function(_0x1419ae){const _0xeb15c0=_0x637b;if(_0x37b322[_0xeb15c0('0xa6')][_0xeb15c0('0x85')]==='user')return _0x1419ae;if(_0x37b322[_0xeb15c0('0x129')][_0xeb15c0('0x85')]!==_0xeb15c0('0x129'))return _0x1419ae;return db[_0xeb15c0('0x147')][_0xeb15c0('0x14')]({'where':{'name':_0x1419ae[_0xeb15c0('0x85')]===_0xeb15c0('0x2f')?_0xeb15c0('0x109'):_0xeb15c0('0xd4'),'userProfileId':_0x37b322['user'][_0xeb15c0('0x158')]},'raw':!![]})[_0xeb15c0('0x8e')](function(_0x208e3d){const _0x15ab72=_0xeb15c0;if(!_0x208e3d||_0x208e3d[_0x15ab72('0xc3')]!=0x0)return _0x1419ae;return db[_0x15ab72('0xc')][_0x15ab72('0x124')]({'name':_0x1419ae['name'],'resourceId':_0x1419ae['id'],'type':_0x208e3d[_0x15ab72('0x11')],'sectionId':_0x208e3d['id']},{})[_0x15ab72('0x8e')](function(){return _0x1419ae;});})[_0xeb15c0('0xda')](function(_0x599cec){const _0xce7bcb=_0xeb15c0;logger[_0xce7bcb('0xb8')](_0xce7bcb('0x61'),_0x599cec);throw _0x599cec;});})[_0x637b('0x8e')](respondWithResult(_0x2a147e,0xc9))[_0x637b('0xda')](handleError(_0x2a147e,null));},exports['changePassword']=function(_0x92989d,_0x18a946){const _0x4a1ce7=_0x38eeae;if(_0x92989d['body']['id'])delete _0x92989d[_0x4a1ce7('0xa6')]['id'];return db['User'][_0x4a1ce7('0x14')]({'where':{'id':_0x92989d['params']['id']}})[_0x4a1ce7('0x8e')](function(_0x45404c){const _0x30d0d0=_0x4a1ce7;if(!_0x45404c)return null;if(_0x45404c['id']===_0x92989d[_0x30d0d0('0x129')]['id']){if(!_0x92989d[_0x30d0d0('0xa6')][_0x30d0d0('0x8')]||!_0x92989d[_0x30d0d0('0xa6')][_0x30d0d0('0x6e')])throw new db['Sequelize'][(_0x30d0d0('0x156'))]('Invalid\x20body\x20format.\x20Use\x20oldPassword\x20and\x20newPassword');if(!_0x45404c[_0x30d0d0('0xff')](_0x92989d[_0x30d0d0('0xa6')]['oldPassword']))throw new db['Sequelize']['ValidationError']('Wrong\x20credentials');if(_0x92989d['body'][_0x30d0d0('0x8')]===_0x92989d['body'][_0x30d0d0('0x6e')])throw new db[(_0x30d0d0('0x108'))][(_0x30d0d0('0x156'))](_0x30d0d0('0x110'));}else{if(_0x92989d[_0x30d0d0('0x129')][_0x30d0d0('0x85')]===_0x30d0d0('0x20')){if(!_0x92989d[_0x30d0d0('0xa6')][_0x30d0d0('0x6e')])throw new db[(_0x30d0d0('0x108'))][(_0x30d0d0('0x156'))](_0x30d0d0('0x4'));}else{if(_0x92989d['user'][_0x30d0d0('0x85')]===_0x30d0d0('0x129')){if(!_0x92989d[_0x30d0d0('0xa6')][_0x30d0d0('0x6e')])throw new db['Sequelize'][(_0x30d0d0('0x156'))]('Invalid\x20body\x20format.\x20Use\x20newPassword');if(_0x45404c['role']!=='agent')throw new db[(_0x30d0d0('0x108'))]['ValidationError']('Unauthorized');}else throw new db[(_0x30d0d0('0x108'))]['ValidationError'](_0x30d0d0('0xf3'));}}return _0x45404c;})[_0x4a1ce7('0x8e')](handleEntityNotFound(_0x18a946,null))[_0x4a1ce7('0x8e')](function(_0x30d1d2){const _0x51d440=_0x4a1ce7;return db['Setting'][_0x51d440('0x14')]({'attributes':['id',_0x51d440('0xbf'),'enforcePasswordHistory',_0x51d440('0x43')]})['then'](function(_0x5abaff){const _0x5e4e51=_0x51d440;if(_0x5abaff[_0x5e4e51('0xbf')])authService[_0x5e4e51('0x48')](_0x92989d[_0x5e4e51('0xa6')][_0x5e4e51('0x6e')]);if(!_0x5abaff[_0x5e4e51('0x15b')]||!_0x30d1d2[_0x5e4e51('0xa3')])return _0x30d1d2;return authService['validatePasswordHistory'](_0x92989d[_0x5e4e51('0xa6')]['newPassword'],_0x30d1d2[_0x5e4e51('0xa3')],_0x5abaff[_0x5e4e51('0x43')]),_0x30d1d2;})[_0x51d440('0x8e')](saveUpdates({'password':_0x92989d[_0x51d440('0xa6')][_0x51d440('0x6e')],'passwordResetAt':_0x92989d[_0x51d440('0x129')]['id']==_0x92989d[_0x51d440('0x100')]['id']?moment():null,'previousPasswords':authService[_0x51d440('0xed')](_0x92989d[_0x51d440('0xa6')]['newPassword'],_0x30d1d2[_0x51d440('0xa3')])},null));})[_0x4a1ce7('0x8e')](respondWithResult(_0x18a946,null))[_0x4a1ce7('0xda')](handleError(_0x18a946,null));},exports[_0x38eeae('0x3')]=function(_0xfca003,_0x5dab43){const _0x16903f=_0x38eeae,_0x20f273=_0xfca003[_0x16903f('0xa6')][_0x16903f('0x10d')];return db[_0x16903f('0x134')]['findOne']({'where':{'id':_0xfca003['params']['id']},'attributes':['id',_0x16903f('0x11'),'role',_0x16903f('0x11d'),_0x16903f('0xdc'),_0x16903f('0x26'),_0x16903f('0x136')]})[_0x16903f('0x8e')](handleEntityNotFound(_0x5dab43,null))[_0x16903f('0x8e')](function(_0x3f4a09){const _0x587377=_0x16903f;if(_0x3f4a09){if(!utils[_0x587377('0x7')](_0x20f273))throw new db[(_0x587377('0x108'))]['ValidationError'](_0x587377('0xc2'));return _0x3f4a09[_0x587377('0x3e')+_[_0x587377('0xc5')](_0x20f273[_0x587377('0x6c')]())+_0x587377('0x90')](_0xfca003['body']['ids'],{'through':{'penalty':_0xfca003[_0x587377('0xa6')][_0x587377('0xca')]||0x0}})[_0x587377('0x8e')](function(_0x3b0460){const _0x123697=_0x587377;for(let _0x2480f1=0x0;_0x2480f1<_0xfca003[_0x123697('0xa6')][_0x123697('0x157')][_0x123697('0x9c')];_0x2480f1+=0x1){const _0x506867={'UserId':_0xfca003[_0x123697('0x100')]['id']};_0x506867[_[_0x123697('0xc5')](_0x20f273['toLowerCase']())+_0x123697('0x56')]=_0xfca003[_0x123697('0xa6')]['ids'][_0x2480f1],socket['emit'](_0x123697('0x129')+_[_0x123697('0xc5')](_0x20f273[_0x123697('0x6c')]())+'Queue:save',_0x506867);}return _0x3b0460;})[_0x587377('0x8e')](function(){const _0x1dc77f=_0x587377;if(_0x20f273===_0x1dc77f('0x13b'))return db['VoiceQueue'][_0x1dc77f('0x42')]({'where':{'id':_0xfca003[_0x1dc77f('0xa6')][_0x1dc77f('0x157')]||[]},'raw':!![],'attributes':['id',_0x1dc77f('0x11')]});})[_0x587377('0x8e')](function(_0x5370d2){const _0x245cc2=_0x587377,_0x3790a8=_0x3f4a09[_0x245cc2('0xf9')]({'plain':!![]}),_0x29c751=[];if(_0x20f273==='voice'&&_0x3790a8[_0x245cc2('0x85')]===_0x245cc2('0x2f')&&_0x3790a8[_0x245cc2('0x11d')]){for(let _0x1ef51b=0x0;_0x1ef51b<_0x5370d2[_0x245cc2('0x9c')];_0x1ef51b+=0x1){_0x29c751[_0x245cc2('0x101')]({'membername':_0x3790a8[_0x245cc2('0x11')],'UserId':_0x3790a8['id'],'queue_name':_0x5370d2[_0x1ef51b][_0x245cc2('0x11')],'VoiceQueueId':_0x5370d2[_0x1ef51b]['id'],'interface':_[_0x245cc2('0x0')](_0x3790a8[_0x245cc2('0x136')])?util['format'](_0x245cc2('0xb4'),_0x3790a8[_0x245cc2('0x11')]):_0x3790a8[_0x245cc2('0x136')],'paused':_0x3790a8['voicePause']||![],'penalty':_0xfca003['body'][_0x245cc2('0xca')]||0x0});}return Promise[_0x245cc2('0xd9')](_0x29c751,function(_0x42530c){const _0x1beb1a=_0x245cc2;return db[_0x1beb1a('0xbb')][_0x1beb1a('0xa9')](_0x42530c);});}return _0x3f4a09;});}})[_0x16903f('0x8e')](respondWithStatusCode(_0x5dab43,null))['catch'](handleError(_0x5dab43,null));},exports['removeQueues']=function(_0x5d6d8d,_0xd2ef37){const _0x1e8d11=_0x38eeae;let _0x2b474c;return db['User'][_0x1e8d11('0x14')]({'where':{'id':_0x5d6d8d['params']['id']},'attributes':['id','name',_0x1e8d11('0x85')]})['then'](handleEntityNotFound(_0xd2ef37,null))[_0x1e8d11('0x8e')](function(_0x5b30d0){const _0x2fcd4b=_0x1e8d11;if(_0x5b30d0){_0x2b474c=_0x5b30d0;if(!_0x5d6d8d[_0x2fcd4b('0x74')][_0x2fcd4b('0x10d')]||!utils[_0x2fcd4b('0x7')](_0x5d6d8d[_0x2fcd4b('0x74')][_0x2fcd4b('0x10d')]))throw new db['Sequelize']['ValidationError'](_0x2fcd4b('0xc2'));return _0x5b30d0['remove'+_[_0x2fcd4b('0xc5')](_0x5d6d8d[_0x2fcd4b('0x74')][_0x2fcd4b('0x10d')][_0x2fcd4b('0x6c')]())+_0x2fcd4b('0x90')](_0x5d6d8d[_0x2fcd4b('0x74')][_0x2fcd4b('0x157')]);}})[_0x1e8d11('0x8e')](function(_0x31b26e){const _0x492874=_0x1e8d11;for(let _0x55d92a=0x0;_0x55d92a<_0x5d6d8d[_0x492874('0x74')]['ids'][_0x492874('0x9c')];_0x55d92a+=0x1){const _0x985e9a={'UserId':_0x5d6d8d[_0x492874('0x100')]['id']};_0x985e9a[_[_0x492874('0xc5')](_0x5d6d8d['query'][_0x492874('0x10d')]['toLowerCase']())+_0x492874('0x56')]=_0x5d6d8d[_0x492874('0x74')][_0x492874('0x157')][_0x55d92a],socket['emit'](_0x492874('0x129')+_[_0x492874('0xc5')](_0x5d6d8d[_0x492874('0x74')][_0x492874('0x10d')]['toLowerCase']())+_0x492874('0x12c'),_0x985e9a);}return _0x31b26e;})[_0x1e8d11('0x8e')](function(){const _0x94dab5=_0x1e8d11;if(_0x5d6d8d['query'][_0x94dab5('0x10d')]===_0x94dab5('0x13b'))return db[_0x94dab5('0xbb')][_0x94dab5('0x9e')]({'where':{'UserId':_0x5d6d8d['params']['id'],'VoiceQueueId':_0x5d6d8d['query']['ids']},'individualHooks':!![]})[_0x94dab5('0x8e')](function(){return _0x2b474c;});return _0x2b474c;})[_0x1e8d11('0x8e')](respondWithStatusCode(_0xd2ef37,null))['catch'](handleError(_0xd2ef37,null));},exports['addAvatar']=function(_0x547030,_0x4bd29c){const _0x52e4d8=_0x38eeae;return _0x547030[_0x52e4d8('0xa6')][_0x52e4d8('0xa')]=_0x547030[_0x52e4d8('0x138')]['filename'],db['User'][_0x52e4d8('0x14')]({'where':{'id':_0x547030[_0x52e4d8('0x100')]['id']}})[_0x52e4d8('0x8e')](handleEntityNotFound(_0x4bd29c,null))[_0x52e4d8('0x8e')](saveUpdates(_0x547030['body'],null))[_0x52e4d8('0x8e')](respondWithResult(_0x4bd29c,null))[_0x52e4d8('0xda')](handleError(_0x4bd29c,null));},exports[_0x38eeae('0x44')]=function(_0x1bf04c,_0x40fc14){const _0x1bbbaf=_0x38eeae,_0x51ab57=path[_0x1bbbaf('0x10e')](config[_0x1bbbaf('0x15a')],_0x1bbbaf('0x39'));return db[_0x1bbbaf('0x134')][_0x1bbbaf('0x14')]({'where':{'id':_0x1bf04c[_0x1bbbaf('0x100')]['id']},'attributes':['id','userpic'],'raw':!![]})[_0x1bbbaf('0x8e')](handleEntityNotFound(_0x40fc14,null))['then'](function(_0x283443){const _0x3ddd32=_0x1bbbaf;if(_0x283443){if(_['isNil'](_0x283443[_0x3ddd32('0xa')]))return _0x40fc14['download'](_0x51ab57);else{if(!fs[_0x3ddd32('0x87')](path[_0x3ddd32('0x10e')](config[_0x3ddd32('0x15a')],_0x3ddd32('0x9d'),_0x283443[_0x3ddd32('0xa')])))return _0x40fc14[_0x3ddd32('0x66')](_0x51ab57);return _0x40fc14[_0x3ddd32('0x66')](path['join'](config[_0x3ddd32('0x15a')],_0x3ddd32('0x9d'),_0x283443[_0x3ddd32('0xa')]));}}})['catch'](handleError(_0x40fc14,null));},exports[_0x38eeae('0x15d')]=function(_0x47ff9c,_0x36e951){const _0x55a80a=_0x38eeae;let _0x2af324={};const _0x4dea2c={};let _0x45bd46,_0x4e60ad;return db['User'][_0x55a80a('0x14')]({'where':{'id':_0x47ff9c[_0x55a80a('0x100')]['id']}})['then'](handleEntityNotFound(_0x36e951,null))[_0x55a80a('0x8e')](function(_0x152d0b){const _0x48885d=_0x55a80a;if(_0x152d0b)return _0x45bd46=_0x152d0b,_0x4dea2c[_0x48885d('0x3b')]=_['keys'](db['CmContact'][_0x48885d('0x34')]),_0x4dea2c[_0x48885d('0x74')]=_[_0x48885d('0x144')](_0x47ff9c[_0x48885d('0x74')]),_0x4dea2c[_0x48885d('0x5b')]=_[_0x48885d('0xce')](_0x4dea2c['model'],_0x4dea2c[_0x48885d('0x74')]),_0x2af324[_0x48885d('0x118')]=_['intersection'](_0x4dea2c[_0x48885d('0x3b')],qs[_0x48885d('0x59')](_0x47ff9c[_0x48885d('0x74')][_0x48885d('0x59')])),_0x2af324[_0x48885d('0x118')]=_0x2af324[_0x48885d('0x118')][_0x48885d('0x9c')]?_0x2af324[_0x48885d('0x118')]:_0x4dea2c['model'],_0x2af324[_0x48885d('0x6d')]=qs['sort'](_0x47ff9c[_0x48885d('0x74')][_0x48885d('0xcc')]),_0x2af324['where']=qs[_0x48885d('0x5b')](_[_0x48885d('0x160')](_0x47ff9c[_0x48885d('0x74')],_0x4dea2c['filters'])),_0x47ff9c[_0x48885d('0x74')][_0x48885d('0x1')]&&(_0x2af324[_0x48885d('0x4c')]=_[_0x48885d('0x102')](_0x2af324['where'],{[Op['or']]:_[_0x48885d('0x7a')](_0x2af324['attributes'],function(_0x53835d){const _0x18fdda=_0x48885d,_0x39df5b={};return _0x39df5b[_0x53835d]={[Op['like']]:'%'+_0x47ff9c[_0x18fdda('0x74')][_0x18fdda('0x1')]+'%'},_0x39df5b;})})),_0x2af324=_['merge']({},_0x2af324,_0x47ff9c['options']),_0x45bd46[_0x48885d('0x15d')](_0x2af324);})[_0x55a80a('0x8e')](function(_0x109437){const _0x44938c=_0x55a80a;if(_0x109437)return _0x4e60ad=_0x109437[_0x44938c('0x9c')],typeof _0x47ff9c[_0x44938c('0x74')][_0x44938c('0x6f')]!==_0x44938c('0x12a')&&(_0x2af324[_0x44938c('0x79')]=[{'model':db['CmList'],'as':_0x44938c('0xfa'),'required':![]},{'model':db[_0x44938c('0x15')],'as':_0x44938c('0x19'),'attributes':['id',_0x44938c('0x11'),'color'],'where':_0x47ff9c[_0x44938c('0x74')][_0x44938c('0xa5')]?{'id':_0x47ff9c[_0x44938c('0x74')]['tag']}:undefined,'required':_0x47ff9c[_0x44938c('0x74')][_0x44938c('0xa5')]?!![]:![]}]),typeof _0x47ff9c[_0x44938c('0x74')][_0x44938c('0xe')]===_0x44938c('0x12a')&&(_0x2af324[_0x44938c('0xa7')]=qs[_0x44938c('0xa7')](_0x47ff9c[_0x44938c('0x74')]['limit']),_0x2af324['offset']=qs['offset'](_0x47ff9c[_0x44938c('0x74')]['offset'])),_0x45bd46[_0x44938c('0x15d')](_0x2af324);})[_0x55a80a('0x8e')](function(_0x2066ff){if(_0x2066ff)return _0x2066ff?{'count':_0x4e60ad,'rows':_0x2066ff}:null;})['then'](respondWithResult(_0x36e951,null))[_0x55a80a('0xda')](handleError(_0x36e951,null));},exports[_0x38eeae('0x5')]=function(_0x2e6821,_0x54480c){const _0x5567c3=_0x38eeae;let _0x225ec3,_0x5339bc={},_0x49f6bf;return db['User'][_0x5567c3('0x14')]({'where':{'id':_0x2e6821[_0x5567c3('0x100')]['id']},'attributes':['id',_0x5567c3('0x11'),_0x5567c3('0x85')]})[_0x5567c3('0x8e')](handleEntityNotFound(_0x54480c,null))[_0x5567c3('0x8e')](function(_0x19a95d){const _0x2a5070=_0x5567c3;if(!utils[_0x2a5070('0x7')](_0x2e6821['query']['channel']))throw new db[(_0x2a5070('0x108'))][(_0x2a5070('0x156'))](_0x2a5070('0xc2'));_0x225ec3=_0x19a95d;const _0x5e3e44={};_0x5e3e44[_0x2a5070('0x3b')]=_[_0x2a5070('0x144')](db[_[_0x2a5070('0xc5')](_0x2e6821[_0x2a5070('0x74')]['channel'])+_0x2a5070('0x7c')][_0x2a5070('0x34')]),_0x5e3e44[_0x2a5070('0x74')]=_['keys'](_0x2e6821[_0x2a5070('0x74')]),_0x5e3e44[_0x2a5070('0x5b')]=_[_0x2a5070('0xce')](_0x5e3e44['model'],_0x5e3e44['query']),_0x5339bc[_0x2a5070('0x118')]=_[_0x2a5070('0xce')](_0x5e3e44[_0x2a5070('0x3b')],qs['fields'](_0x2e6821[_0x2a5070('0x74')][_0x2a5070('0x59')])),_0x5339bc[_0x2a5070('0x118')]=_0x5339bc['attributes']['length']?_0x5339bc[_0x2a5070('0x118')]:_0x5e3e44['model'],_0x5339bc[_0x2a5070('0x6d')]=qs[_0x2a5070('0xcc')](_0x2e6821[_0x2a5070('0x74')][_0x2a5070('0xcc')]),_0x5339bc[_0x2a5070('0x4c')]=qs[_0x2a5070('0x5b')](_[_0x2a5070('0x160')](_0x2e6821[_0x2a5070('0x74')],_0x5e3e44[_0x2a5070('0x5b')]));_0x2e6821[_0x2a5070('0x74')][_0x2a5070('0x1')]&&(_0x5339bc['where']=_[_0x2a5070('0x102')](_0x5339bc['where'],{[Op['or']]:_[_0x2a5070('0x7a')](_0x5339bc['attributes'],function(_0x40683e){const _0x517b4a=_0x2a5070,_0x47dd39={};return _0x47dd39[_0x40683e]={[Op[_0x517b4a('0x65')]]:'%'+_0x2e6821[_0x517b4a('0x74')][_0x517b4a('0x1')]+'%'},_0x47dd39;})}));_0x5339bc=_['merge']({},_0x5339bc,_0x2e6821[_0x2a5070('0xfc')]);switch(_0x225ec3['role']){case _0x2a5070('0x20'):return db[_[_0x2a5070('0xc5')](_0x2e6821[_0x2a5070('0x74')][_0x2a5070('0x10d')])+_0x2a5070('0x7c')][_0x2a5070('0x42')](_0x5339bc);case _0x2a5070('0x129'):case _0x2a5070('0x2f'):return _0x225ec3[_0x2a5070('0xf9')+_['capitalize'](_0x2e6821[_0x2a5070('0x74')][_0x2a5070('0x10d')])+_0x2a5070('0x90')](_0x5339bc);default:throw new db['Sequelize'][(_0x2a5070('0x156'))](_0x2a5070('0x5e'));}})['then'](function(_0x4a4298){const _0x56b96d=_0x5567c3;_0x49f6bf=_0x4a4298['length'];typeof _0x2e6821[_0x56b96d('0x74')][_0x56b96d('0xe')]===_0x56b96d('0x12a')&&(_0x5339bc[_0x56b96d('0xa7')]=qs['limit'](_0x2e6821[_0x56b96d('0x74')]['limit']),_0x5339bc[_0x56b96d('0x99')]=qs[_0x56b96d('0x99')](_0x2e6821['query'][_0x56b96d('0x99')]));switch(_0x225ec3[_0x56b96d('0x85')]){case _0x56b96d('0x20'):return db[_[_0x56b96d('0xc5')](_0x2e6821[_0x56b96d('0x74')][_0x56b96d('0x10d')])+'Queue'][_0x56b96d('0x42')](_0x5339bc);case _0x56b96d('0x129'):case _0x56b96d('0x2f'):return _0x225ec3[_0x56b96d('0xf9')+_['capitalize'](_0x2e6821[_0x56b96d('0x74')][_0x56b96d('0x10d')])+_0x56b96d('0x90')](_0x5339bc);}})[_0x5567c3('0x8e')](function(_0x23136f){return{'count':_0x49f6bf,'rows':_0x23136f};})[_0x5567c3('0x8e')](respondWithResult(_0x54480c,null))[_0x5567c3('0xda')](handleError(_0x54480c,null));},exports[_0x38eeae('0x130')]=function(_0xf09faa,_0x31d68f){const _0x5e1a72=_0x38eeae;let _0x232e76={};const _0x1f4a01={};let _0x59781d,_0x3a75b7;return db[_0x5e1a72('0x134')][_0x5e1a72('0x14')]({'where':{'id':_0xf09faa[_0x5e1a72('0x100')]['id']}})[_0x5e1a72('0x8e')](handleEntityNotFound(_0x31d68f,null))[_0x5e1a72('0x8e')](function(_0x23cb41){const _0x4674ae=_0x5e1a72;if(_0x23cb41)return _0x59781d=_0x23cb41,_0x1f4a01['model']=_[_0x4674ae('0x144')](db[_0x4674ae('0xbb')][_0x4674ae('0x34')]),_0x1f4a01['query']=_[_0x4674ae('0x144')](_0xf09faa[_0x4674ae('0x74')]),_0x1f4a01[_0x4674ae('0x5b')]=_[_0x4674ae('0xce')](_0x1f4a01[_0x4674ae('0x3b')],_0x1f4a01[_0x4674ae('0x74')]),_0x232e76[_0x4674ae('0x118')]=_[_0x4674ae('0xce')](_0x1f4a01[_0x4674ae('0x3b')],qs['fields'](_0xf09faa[_0x4674ae('0x74')][_0x4674ae('0x59')])),_0x232e76[_0x4674ae('0x118')]=_0x232e76[_0x4674ae('0x118')]['length']?_0x232e76[_0x4674ae('0x118')]:_0x1f4a01[_0x4674ae('0x3b')],_0x232e76[_0x4674ae('0x6d')]=qs[_0x4674ae('0xcc')](_0xf09faa[_0x4674ae('0x74')]['sort']),_0x232e76[_0x4674ae('0x4c')]=qs[_0x4674ae('0x5b')](_[_0x4674ae('0x160')](_0xf09faa['query'],_0x1f4a01[_0x4674ae('0x5b')])),_0xf09faa[_0x4674ae('0x74')]['filter']&&(_0x232e76[_0x4674ae('0x4c')]=_['merge'](_0x232e76[_0x4674ae('0x4c')],{[Op['or']]:_[_0x4674ae('0x7a')](_0x232e76[_0x4674ae('0x118')],function(_0x4d802d){const _0x32b09e=_0x4674ae,_0x62dab={};return _0x62dab[_0x4d802d]={[Op[_0x32b09e('0x65')]]:'%'+_0xf09faa[_0x32b09e('0x74')]['filter']+'%'},_0x62dab;})})),_0x232e76=_[_0x4674ae('0x102')]({},_0x232e76,_0xf09faa[_0x4674ae('0xfc')]),_0x59781d['getVoiceQueuesRt'](_0x232e76);})[_0x5e1a72('0x8e')](function(_0x341477){const _0x233aee=_0x5e1a72;if(_0x341477)return _0x3a75b7=_0x341477[_0x233aee('0x9c')],typeof _0xf09faa[_0x233aee('0x74')]['nolimit']===_0x233aee('0x12a')&&(_0x232e76[_0x233aee('0xa7')]=qs[_0x233aee('0xa7')](_0xf09faa['query'][_0x233aee('0xa7')]),_0x232e76[_0x233aee('0x99')]=qs[_0x233aee('0x99')](_0xf09faa[_0x233aee('0x74')][_0x233aee('0x99')])),_0x59781d[_0x233aee('0x130')](_0x232e76);})['then'](function(_0x46bfcc){if(_0x46bfcc)return _0x46bfcc?{'count':_0x3a75b7,'rows':_0x46bfcc}:null;})[_0x5e1a72('0x8e')](respondWithResult(_0x31d68f,null))['catch'](handleError(_0x31d68f,null));},exports[_0x38eeae('0xb6')]=function(_0x211260,_0x4a5a1a){const _0xaa4622=_0x38eeae;let _0x4759cf={};const _0x90fd70={};let _0x6745a4,_0x368445;return db[_0xaa4622('0x134')][_0xaa4622('0x14')]({'where':{'id':_0x211260['params']['id']}})[_0xaa4622('0x8e')](handleEntityNotFound(_0x4a5a1a,null))['then'](function(_0x4eb4ca){const _0x115b9c=_0xaa4622;if(_0x4eb4ca)return _0x6745a4=_0x4eb4ca,_0x90fd70[_0x115b9c('0x3b')]=_[_0x115b9c('0x144')](db[_0x115b9c('0x1f')]['rawAttributes']),_0x90fd70['query']=_['keys'](_0x211260['query']),_0x90fd70['filters']=_['intersection'](_0x90fd70[_0x115b9c('0x3b')],_0x90fd70[_0x115b9c('0x74')]),_0x4759cf['attributes']=_[_0x115b9c('0xce')](_0x90fd70[_0x115b9c('0x3b')],qs[_0x115b9c('0x59')](_0x211260[_0x115b9c('0x74')]['fields'])),_0x4759cf[_0x115b9c('0x118')]=_0x4759cf['attributes']['length']?_0x4759cf['attributes']:_0x90fd70[_0x115b9c('0x3b')],_0x4759cf[_0x115b9c('0x6d')]=qs['sort'](_0x211260[_0x115b9c('0x74')][_0x115b9c('0xcc')]),_0x4759cf[_0x115b9c('0x4c')]=qs[_0x115b9c('0x5b')](_[_0x115b9c('0x160')](_0x211260['query'],_0x90fd70[_0x115b9c('0x5b')])),_0x211260[_0x115b9c('0x74')][_0x115b9c('0x1')]&&(_0x4759cf[_0x115b9c('0x4c')]=_[_0x115b9c('0x102')](_0x4759cf[_0x115b9c('0x4c')],{[Op['or']]:_[_0x115b9c('0x7a')](_0x4759cf[_0x115b9c('0x118')],function(_0x108fc1){const _0x673333=_0x115b9c,_0x23e5bd={};return _0x23e5bd[_0x108fc1]={[Op[_0x673333('0x65')]]:'%'+_0x211260[_0x673333('0x74')][_0x673333('0x1')]+'%'},_0x23e5bd;})})),_0x4759cf=_['merge']({},_0x4759cf,_0x211260[_0x115b9c('0xfc')]),_0x6745a4[_0x115b9c('0xb6')](_0x4759cf);})[_0xaa4622('0x8e')](function(_0x1302d1){const _0x53a9db=_0xaa4622;if(_0x1302d1)return _0x368445=_0x1302d1[_0x53a9db('0x9c')],typeof _0x211260[_0x53a9db('0x74')]['nolimit']===_0x53a9db('0x12a')&&(_0x4759cf[_0x53a9db('0xa7')]=qs[_0x53a9db('0xa7')](_0x211260[_0x53a9db('0x74')]['limit']),_0x4759cf[_0x53a9db('0x99')]=qs[_0x53a9db('0x99')](_0x211260[_0x53a9db('0x74')]['offset'])),_0x6745a4[_0x53a9db('0xb6')](_0x4759cf);})[_0xaa4622('0x8e')](function(_0x5d251a){if(_0x5d251a)return _0x5d251a?{'count':_0x368445,'rows':_0x5d251a}:null;})[_0xaa4622('0x8e')](respondWithResult(_0x4a5a1a,null))['catch'](handleError(_0x4a5a1a,null));},exports[_0x38eeae('0xef')]=function(_0x50efde,_0x438ffb){const _0x399a18=_0x38eeae;let _0x1161ec={'raw':!![],'where':{}};const _0x29b4e7={},_0x5f157c={'count':0x0,'rows':[]};return db[_0x399a18('0x134')][_0x399a18('0x14')]({'where':{'id':_0x50efde[_0x399a18('0x100')]['id']}})['then'](handleEntityNotFound(_0x438ffb,null))[_0x399a18('0x8e')](function(_0x3f8567){const _0x3e2260=_0x399a18;if(_0x3f8567)return _0x29b4e7[_0x3e2260('0x3b')]=_[_0x3e2260('0x144')](db['VoiceRecording'][_0x3e2260('0x34')]),_0x29b4e7['query']=_[_0x3e2260('0x144')](_0x50efde[_0x3e2260('0x74')]),_0x29b4e7['filters']=_[_0x3e2260('0xce')](_0x29b4e7[_0x3e2260('0x3b')],_0x29b4e7[_0x3e2260('0x74')]),_0x1161ec[_0x3e2260('0x118')]=_[_0x3e2260('0xce')](_0x29b4e7[_0x3e2260('0x3b')],qs['fields'](_0x50efde['query'][_0x3e2260('0x59')])),_0x1161ec[_0x3e2260('0x118')]=_0x1161ec[_0x3e2260('0x118')]['length']?_0x1161ec[_0x3e2260('0x118')]:_0x29b4e7['model'],typeof _0x50efde[_0x3e2260('0x74')][_0x3e2260('0xe')]===_0x3e2260('0x12a')&&(_0x1161ec[_0x3e2260('0xa7')]=qs[_0x3e2260('0xa7')](_0x50efde[_0x3e2260('0x74')]['limit']),_0x1161ec['offset']=qs[_0x3e2260('0x99')](_0x50efde['query']['offset'])),_0x1161ec[_0x3e2260('0x6d')]=qs[_0x3e2260('0xcc')](_0x50efde[_0x3e2260('0x74')][_0x3e2260('0xcc')]),_0x1161ec[_0x3e2260('0x4c')]=qs[_0x3e2260('0x5b')](_[_0x3e2260('0x160')](_0x50efde[_0x3e2260('0x74')],_0x29b4e7[_0x3e2260('0x5b')])),_0x1161ec[_0x3e2260('0x4c')][_0x3e2260('0x14e')]=_0x3f8567['id'],_0x50efde[_0x3e2260('0x74')]['filter']&&(_0x1161ec[_0x3e2260('0x4c')]=_[_0x3e2260('0x102')](_0x1161ec[_0x3e2260('0x4c')],{[Op['or']]:_['map'](_0x1161ec['attributes'],function(_0x5d3139){const _0x203357=_0x3e2260,_0x227bb6={};return _0x227bb6[_0x5d3139]={[Op[_0x203357('0x65')]]:'%'+_0x50efde[_0x203357('0x74')][_0x203357('0x1')]+'%'},_0x227bb6;})})),_0x1161ec=_[_0x3e2260('0x102')]({},_0x1161ec,_0x50efde[_0x3e2260('0xfc')]),db['VoiceRecording'][_0x3e2260('0xd0')]({'where':_0x1161ec['where']})[_0x3e2260('0x8e')](function(_0x480c1c){const _0x28c932=_0x3e2260;return _0x5f157c['count']=_0x480c1c,_0x50efde[_0x28c932('0x74')]['includeAll']&&(_0x1161ec[_0x28c932('0x79')]=[{'all':!![]}]),db['VoiceRecording'][_0x28c932('0x42')](_0x1161ec);})['then'](function(_0x4618e4){const _0x582460=_0x3e2260;return _0x5f157c[_0x582460('0xc1')]=_0x4618e4,_0x5f157c;});})[_0x399a18('0x8e')](respondWithFilteredResult(_0x438ffb,_0x1161ec))[_0x399a18('0xda')](handleError(_0x438ffb,null));},exports[_0x38eeae('0x70')]=function(_0x4069b8,_0x5e273d){const _0x1bc44f=_0x38eeae;let _0x75be40={'raw':!![],'where':{}};const _0x2a183d={},_0x41441f={'count':0x0,'rows':[]};return db['User']['findOne']({'where':{'id':_0x4069b8['params']['id']}})['then'](handleEntityNotFound(_0x5e273d,null))[_0x1bc44f('0x8e')](function(_0x310830){const _0x1ee9ac=_0x1bc44f;if(_0x310830)return _0x2a183d[_0x1ee9ac('0x3b')]=_[_0x1ee9ac('0x144')](db[_0x1ee9ac('0xf5')][_0x1ee9ac('0x34')]),_0x2a183d['query']=_[_0x1ee9ac('0x144')](_0x4069b8['query']),_0x2a183d[_0x1ee9ac('0x5b')]=_[_0x1ee9ac('0xce')](_0x2a183d['model'],_0x2a183d['query']),_0x75be40[_0x1ee9ac('0x118')]=_['intersection'](_0x2a183d[_0x1ee9ac('0x3b')],qs[_0x1ee9ac('0x59')](_0x4069b8[_0x1ee9ac('0x74')][_0x1ee9ac('0x59')])),_0x75be40[_0x1ee9ac('0x118')]=_0x75be40[_0x1ee9ac('0x118')][_0x1ee9ac('0x9c')]?_0x75be40[_0x1ee9ac('0x118')]:_0x2a183d[_0x1ee9ac('0x3b')],typeof _0x4069b8[_0x1ee9ac('0x74')][_0x1ee9ac('0xe')]===_0x1ee9ac('0x12a')&&(_0x75be40[_0x1ee9ac('0xa7')]=qs[_0x1ee9ac('0xa7')](_0x4069b8[_0x1ee9ac('0x74')]['limit']),_0x75be40[_0x1ee9ac('0x99')]=qs[_0x1ee9ac('0x99')](_0x4069b8[_0x1ee9ac('0x74')][_0x1ee9ac('0x99')])),_0x75be40[_0x1ee9ac('0x6d')]=qs[_0x1ee9ac('0xcc')](_0x4069b8[_0x1ee9ac('0x74')][_0x1ee9ac('0xcc')]),_0x75be40[_0x1ee9ac('0x4c')]=qs['filters'](_['pick'](_0x4069b8['query'],_0x2a183d['filters'])),_0x75be40[_0x1ee9ac('0x4c')][_0x1ee9ac('0x14e')]=_0x310830['id'],_0x4069b8[_0x1ee9ac('0x74')]['filter']&&(_0x75be40[_0x1ee9ac('0x4c')]=_[_0x1ee9ac('0x102')](_0x75be40['where'],{[Op['or']]:_[_0x1ee9ac('0x7a')](_0x75be40[_0x1ee9ac('0x118')],function(_0x410c2b){const _0x599249=_0x1ee9ac,_0x25e37b={};return _0x25e37b[_0x410c2b]={[Op['like']]:'%'+_0x4069b8[_0x599249('0x74')][_0x599249('0x1')]+'%'},_0x25e37b;})})),_0x75be40=_[_0x1ee9ac('0x102')]({},_0x75be40,_0x4069b8[_0x1ee9ac('0xfc')]),db[_0x1ee9ac('0xf5')][_0x1ee9ac('0xd0')]({'where':_0x75be40['where']})[_0x1ee9ac('0x8e')](function(_0x342b7e){const _0x5d8b89=_0x1ee9ac;return _0x41441f[_0x5d8b89('0xd0')]=_0x342b7e,_0x4069b8[_0x5d8b89('0x74')][_0x5d8b89('0x6f')]&&(_0x75be40[_0x5d8b89('0x79')]=[{'all':!![]}]),db[_0x5d8b89('0xf5')]['findAll'](_0x75be40);})[_0x1ee9ac('0x8e')](function(_0x5aaeee){const _0x2ee9b2=_0x1ee9ac;return _0x41441f[_0x2ee9b2('0xc1')]=_0x5aaeee,_0x41441f;});})[_0x1bc44f('0x8e')](respondWithFilteredResult(_0x5e273d,_0x75be40))[_0x1bc44f('0xda')](handleError(_0x5e273d,null));},exports[_0x38eeae('0x1a')]=function(_0x5a1af0,_0x3279d8){const _0x13f339=_0x38eeae;let _0x2a7b57={};const _0x5b8268={};let _0x315f84,_0x50c235;return db[_0x13f339('0x134')][_0x13f339('0x14')]({'where':{'id':_0x5a1af0[_0x13f339('0x100')]['id']}})[_0x13f339('0x8e')](handleEntityNotFound(_0x3279d8,null))[_0x13f339('0x8e')](function(_0x563f4b){const _0x5f4357=_0x13f339;if(_0x563f4b)return _0x315f84=_0x563f4b,_0x5b8268[_0x5f4357('0x3b')]=_['keys'](db[_0x5f4357('0x112')][_0x5f4357('0x34')]),_0x5b8268[_0x5f4357('0x74')]=_[_0x5f4357('0x144')](_0x5a1af0[_0x5f4357('0x74')]),_0x5b8268[_0x5f4357('0x5b')]=_[_0x5f4357('0xce')](_0x5b8268[_0x5f4357('0x3b')],_0x5b8268['query']),_0x2a7b57['attributes']=_[_0x5f4357('0xce')](_0x5b8268[_0x5f4357('0x3b')],qs[_0x5f4357('0x59')](_0x5a1af0[_0x5f4357('0x74')]['fields'])),_0x2a7b57[_0x5f4357('0x118')]=_0x2a7b57[_0x5f4357('0x118')][_0x5f4357('0x9c')]?_0x2a7b57[_0x5f4357('0x118')]:_0x5b8268[_0x5f4357('0x3b')],_0x2a7b57['order']=qs[_0x5f4357('0xcc')](_0x5a1af0['query'][_0x5f4357('0xcc')]),_0x2a7b57['where']=qs['filters'](_[_0x5f4357('0x160')](_0x5a1af0[_0x5f4357('0x74')],_0x5b8268[_0x5f4357('0x5b')])),_0x5a1af0[_0x5f4357('0x74')][_0x5f4357('0x1')]&&(_0x2a7b57[_0x5f4357('0x4c')]=_['merge'](_0x2a7b57[_0x5f4357('0x4c')],{[Op['or']]:_['map'](_0x2a7b57['attributes'],function(_0x146b4e){const _0xc0855e=_0x5f4357,_0x4f9dab={};return _0x4f9dab[_0x146b4e]={[Op[_0xc0855e('0x65')]]:'%'+_0x5a1af0[_0xc0855e('0x74')][_0xc0855e('0x1')]+'%'},_0x4f9dab;})})),_0x2a7b57=_[_0x5f4357('0x102')]({},_0x2a7b57,_0x5a1af0[_0x5f4357('0xfc')]),_0x315f84['getChatInteractions'](_0x2a7b57);})[_0x13f339('0x8e')](function(_0x4db3cf){const _0xf37450=_0x13f339;if(_0x4db3cf)return _0x50c235=_0x4db3cf[_0xf37450('0x9c')],typeof _0x5a1af0[_0xf37450('0x74')][_0xf37450('0xe')]==='undefined'&&(_0x2a7b57[_0xf37450('0xa7')]=qs[_0xf37450('0xa7')](_0x5a1af0[_0xf37450('0x74')][_0xf37450('0xa7')]),_0x2a7b57[_0xf37450('0x99')]=qs[_0xf37450('0x99')](_0x5a1af0[_0xf37450('0x74')]['offset'])),_0x315f84['getChatInteractions'](_0x2a7b57);})[_0x13f339('0x8e')](function(_0x525b62){if(_0x525b62)return _0x525b62?{'count':_0x50c235,'rows':_0x525b62}:null;})[_0x13f339('0x8e')](respondWithResult(_0x3279d8,null))[_0x13f339('0xda')](handleError(_0x3279d8,null));},exports[_0x38eeae('0xf0')]=function(_0x106e39,_0x5a9902){const _0x1b06ad=_0x38eeae;let _0x42795d={};const _0x363664={};let _0x6a3756,_0x1e68d1;return db[_0x1b06ad('0x134')][_0x1b06ad('0x14')]({'where':{'id':_0x106e39['params']['id']}})[_0x1b06ad('0x8e')](handleEntityNotFound(_0x5a9902,null))[_0x1b06ad('0x8e')](function(_0x20ff04){const _0x3f01f4=_0x1b06ad;if(_0x20ff04)return _0x6a3756=_0x20ff04,_0x363664[_0x3f01f4('0x3b')]=_['keys'](db['OpenchannelInteraction']['rawAttributes']),_0x363664[_0x3f01f4('0x74')]=_[_0x3f01f4('0x144')](_0x106e39[_0x3f01f4('0x74')]),_0x363664[_0x3f01f4('0x5b')]=_['intersection'](_0x363664['model'],_0x363664[_0x3f01f4('0x74')]),_0x42795d[_0x3f01f4('0x118')]=_['intersection'](_0x363664[_0x3f01f4('0x3b')],qs[_0x3f01f4('0x59')](_0x106e39[_0x3f01f4('0x74')][_0x3f01f4('0x59')])),_0x42795d['attributes']=_0x42795d['attributes'][_0x3f01f4('0x9c')]?_0x42795d[_0x3f01f4('0x118')]:_0x363664[_0x3f01f4('0x3b')],_0x42795d[_0x3f01f4('0x6d')]=qs['sort'](_0x106e39['query']['sort']),_0x42795d['where']=qs[_0x3f01f4('0x5b')](_[_0x3f01f4('0x160')](_0x106e39[_0x3f01f4('0x74')],_0x363664[_0x3f01f4('0x5b')])),_0x106e39['query'][_0x3f01f4('0x1')]&&(_0x42795d[_0x3f01f4('0x4c')]=_['merge'](_0x42795d[_0x3f01f4('0x4c')],{[Op['or']]:_['map'](_0x42795d[_0x3f01f4('0x118')],function(_0x1aad8d){const _0x2f2876=_0x3f01f4,_0x188ba2={};return _0x188ba2[_0x1aad8d]={[Op[_0x2f2876('0x65')]]:'%'+_0x106e39[_0x2f2876('0x74')][_0x2f2876('0x1')]+'%'},_0x188ba2;})})),_0x42795d=_[_0x3f01f4('0x102')]({},_0x42795d,_0x106e39[_0x3f01f4('0xfc')]),_0x6a3756[_0x3f01f4('0xf0')](_0x42795d);})[_0x1b06ad('0x8e')](function(_0x2653ab){const _0x2f7d8a=_0x1b06ad;if(_0x2653ab)return _0x1e68d1=_0x2653ab['length'],typeof _0x106e39[_0x2f7d8a('0x74')][_0x2f7d8a('0xe')]===_0x2f7d8a('0x12a')&&(_0x42795d[_0x2f7d8a('0xa7')]=qs[_0x2f7d8a('0xa7')](_0x106e39['query'][_0x2f7d8a('0xa7')]),_0x42795d[_0x2f7d8a('0x99')]=qs[_0x2f7d8a('0x99')](_0x106e39[_0x2f7d8a('0x74')][_0x2f7d8a('0x99')])),_0x6a3756[_0x2f7d8a('0xf0')](_0x42795d);})[_0x1b06ad('0x8e')](function(_0x32caf9){if(_0x32caf9)return _0x32caf9?{'count':_0x1e68d1,'rows':_0x32caf9}:null;})['then'](respondWithResult(_0x5a9902,null))['catch'](handleError(_0x5a9902,null));},exports[_0x38eeae('0x2b')]=function(_0x19ec87,_0x50c722){const _0x22677b=_0x38eeae;let _0x4ff3da={'raw':!![],'where':{}};const _0x2960e5={},_0x9fdec6={'count':0x0,'rows':[]};return db[_0x22677b('0x134')]['findOne']({'where':{'id':_0x19ec87[_0x22677b('0x100')]['id']}})[_0x22677b('0x8e')](handleEntityNotFound(_0x50c722,null))['then'](function(_0x946dee){const _0x3ed784=_0x22677b;if(_0x946dee)return _0x2960e5[_0x3ed784('0x3b')]=_['keys'](db[_0x3ed784('0xeb')][_0x3ed784('0x34')]),_0x2960e5[_0x3ed784('0x74')]=_[_0x3ed784('0x144')](_0x19ec87[_0x3ed784('0x74')]),_0x2960e5[_0x3ed784('0x5b')]=_[_0x3ed784('0xce')](_0x2960e5['model'],_0x2960e5[_0x3ed784('0x74')]),_0x4ff3da[_0x3ed784('0x118')]=_[_0x3ed784('0xce')](_0x2960e5[_0x3ed784('0x3b')],qs[_0x3ed784('0x59')](_0x19ec87[_0x3ed784('0x74')][_0x3ed784('0x59')])),_0x4ff3da[_0x3ed784('0x118')]=_0x4ff3da[_0x3ed784('0x118')]['length']?_0x4ff3da['attributes']:_0x2960e5[_0x3ed784('0x3b')],typeof _0x19ec87[_0x3ed784('0x74')][_0x3ed784('0xe')]===_0x3ed784('0x12a')&&(_0x4ff3da[_0x3ed784('0xa7')]=qs[_0x3ed784('0xa7')](_0x19ec87['query'][_0x3ed784('0xa7')]),_0x4ff3da['offset']=qs[_0x3ed784('0x99')](_0x19ec87[_0x3ed784('0x74')][_0x3ed784('0x99')])),_0x4ff3da['order']=qs[_0x3ed784('0xcc')](_0x19ec87[_0x3ed784('0x74')]['sort']),_0x4ff3da[_0x3ed784('0x4c')]=qs[_0x3ed784('0x5b')](_['pick'](_0x19ec87[_0x3ed784('0x74')],_0x2960e5[_0x3ed784('0x5b')])),_0x4ff3da[_0x3ed784('0x4c')][_0x3ed784('0x14e')]=_0x946dee['id'],_0x19ec87[_0x3ed784('0x74')]['filter']&&(_0x4ff3da[_0x3ed784('0x4c')]=_['merge'](_0x4ff3da[_0x3ed784('0x4c')],{[Op['or']]:_[_0x3ed784('0x7a')](_0x4ff3da[_0x3ed784('0x118')],function(_0xab9fab){const _0x3ae84c=_0x3ed784,_0x5bfd05={};return _0x5bfd05[_0xab9fab]={[Op['like']]:'%'+_0x19ec87[_0x3ae84c('0x74')][_0x3ae84c('0x1')]+'%'},_0x5bfd05;})})),_0x4ff3da=_['merge']({},_0x4ff3da,_0x19ec87[_0x3ed784('0xfc')]),db[_0x3ed784('0xeb')]['count']({'where':_0x4ff3da['where']})[_0x3ed784('0x8e')](function(_0x1d94e2){const _0x159202=_0x3ed784;return _0x9fdec6[_0x159202('0xd0')]=_0x1d94e2,_0x19ec87[_0x159202('0x74')][_0x159202('0x6f')]&&(_0x4ff3da[_0x159202('0x79')]=[{'all':!![]}]),db[_0x159202('0xeb')]['findAll'](_0x4ff3da);})[_0x3ed784('0x8e')](function(_0x50316e){return _0x9fdec6['rows']=_0x50316e,_0x9fdec6;});})['then'](respondWithFilteredResult(_0x50c722,_0x4ff3da))[_0x22677b('0xda')](handleError(_0x50c722,null));},exports[_0x38eeae('0x10f')]=function(_0x5e5220,_0x645365){const _0x377133=_0x38eeae;let _0x1794c8={};const _0x405173={};let _0x43f972,_0x59875b;return db[_0x377133('0x134')]['findOne']({'where':{'id':_0x5e5220[_0x377133('0x100')]['id']}})[_0x377133('0x8e')](handleEntityNotFound(_0x645365,null))[_0x377133('0x8e')](function(_0xb6ede){const _0x202d25=_0x377133;if(_0xb6ede)return _0x43f972=_0xb6ede,_0x405173[_0x202d25('0x3b')]=_[_0x202d25('0x144')](db[_0x202d25('0x7e')][_0x202d25('0x34')]),_0x405173['query']=_[_0x202d25('0x144')](_0x5e5220[_0x202d25('0x74')]),_0x405173[_0x202d25('0x5b')]=_[_0x202d25('0xce')](_0x405173[_0x202d25('0x3b')],_0x405173[_0x202d25('0x74')]),_0x1794c8[_0x202d25('0x118')]=_[_0x202d25('0xce')](_0x405173[_0x202d25('0x3b')],qs[_0x202d25('0x59')](_0x5e5220[_0x202d25('0x74')]['fields'])),_0x1794c8[_0x202d25('0x118')]=_0x1794c8[_0x202d25('0x118')][_0x202d25('0x9c')]?_0x1794c8[_0x202d25('0x118')]:_0x405173[_0x202d25('0x3b')],_0x1794c8[_0x202d25('0x6d')]=qs['sort'](_0x5e5220[_0x202d25('0x74')][_0x202d25('0xcc')]),_0x1794c8[_0x202d25('0x4c')]=qs['filters'](_[_0x202d25('0x160')](_0x5e5220[_0x202d25('0x74')],_0x405173[_0x202d25('0x5b')])),_0x5e5220['query'][_0x202d25('0x1')]&&(_0x1794c8[_0x202d25('0x4c')]=_[_0x202d25('0x102')](_0x1794c8['where'],{[Op['or']]:_['map'](_0x1794c8['attributes'],function(_0x3d90d5){const _0x2942ff=_0x202d25,_0x2d4c43={};return _0x2d4c43[_0x3d90d5]={[Op[_0x2942ff('0x65')]]:'%'+_0x5e5220['query'][_0x2942ff('0x1')]+'%'},_0x2d4c43;})})),_0x1794c8=_[_0x202d25('0x102')]({},_0x1794c8,_0x5e5220['options']),_0x43f972[_0x202d25('0x10f')](_0x1794c8);})[_0x377133('0x8e')](function(_0x45beca){const _0xa55174=_0x377133;if(_0x45beca)return _0x59875b=_0x45beca[_0xa55174('0x9c')],typeof _0x5e5220[_0xa55174('0x74')][_0xa55174('0xe')]===_0xa55174('0x12a')&&(_0x1794c8[_0xa55174('0xa7')]=qs['limit'](_0x5e5220[_0xa55174('0x74')]['limit']),_0x1794c8[_0xa55174('0x99')]=qs[_0xa55174('0x99')](_0x5e5220[_0xa55174('0x74')][_0xa55174('0x99')])),_0x43f972[_0xa55174('0x10f')](_0x1794c8);})[_0x377133('0x8e')](function(_0x258d9e){if(_0x258d9e)return _0x258d9e?{'count':_0x59875b,'rows':_0x258d9e}:null;})[_0x377133('0x8e')](respondWithResult(_0x645365,null))[_0x377133('0xda')](handleError(_0x645365,null));},exports['getFaxInteractions']=function(_0x298601,_0x36e514){const _0x1c3520=_0x38eeae;let _0x4b657e={};const _0x2cd4ca={};let _0x5369c4,_0x509bf2;return db[_0x1c3520('0x134')]['findOne']({'where':{'id':_0x298601[_0x1c3520('0x100')]['id']}})[_0x1c3520('0x8e')](handleEntityNotFound(_0x36e514,null))[_0x1c3520('0x8e')](function(_0x32ae77){const _0x3fd744=_0x1c3520;if(_0x32ae77)return _0x5369c4=_0x32ae77,_0x2cd4ca[_0x3fd744('0x3b')]=_['keys'](db[_0x3fd744('0x45')][_0x3fd744('0x34')]),_0x2cd4ca[_0x3fd744('0x74')]=_[_0x3fd744('0x144')](_0x298601[_0x3fd744('0x74')]),_0x2cd4ca[_0x3fd744('0x5b')]=_[_0x3fd744('0xce')](_0x2cd4ca['model'],_0x2cd4ca[_0x3fd744('0x74')]),_0x4b657e[_0x3fd744('0x118')]=_[_0x3fd744('0xce')](_0x2cd4ca[_0x3fd744('0x3b')],qs[_0x3fd744('0x59')](_0x298601[_0x3fd744('0x74')][_0x3fd744('0x59')])),_0x4b657e['attributes']=_0x4b657e[_0x3fd744('0x118')][_0x3fd744('0x9c')]?_0x4b657e[_0x3fd744('0x118')]:_0x2cd4ca[_0x3fd744('0x3b')],_0x4b657e['order']=qs['sort'](_0x298601[_0x3fd744('0x74')][_0x3fd744('0xcc')]),_0x4b657e[_0x3fd744('0x4c')]=qs['filters'](_[_0x3fd744('0x160')](_0x298601[_0x3fd744('0x74')],_0x2cd4ca['filters'])),_0x298601[_0x3fd744('0x74')][_0x3fd744('0x1')]&&(_0x4b657e['where']=_['merge'](_0x4b657e[_0x3fd744('0x4c')],{[Op['or']]:_['map'](_0x4b657e[_0x3fd744('0x118')],function(_0x82820a){const _0x5c4976=_0x3fd744,_0x3a2f23={};return _0x3a2f23[_0x82820a]={[Op['like']]:'%'+_0x298601['query'][_0x5c4976('0x1')]+'%'},_0x3a2f23;})})),_0x4b657e=_['merge']({},_0x4b657e,_0x298601[_0x3fd744('0xfc')]),_0x5369c4[_0x3fd744('0xe9')](_0x4b657e);})[_0x1c3520('0x8e')](function(_0x16df9d){const _0x4adcd6=_0x1c3520;if(_0x16df9d)return _0x509bf2=_0x16df9d[_0x4adcd6('0x9c')],typeof _0x298601[_0x4adcd6('0x74')][_0x4adcd6('0xe')]===_0x4adcd6('0x12a')&&(_0x4b657e[_0x4adcd6('0xa7')]=qs[_0x4adcd6('0xa7')](_0x298601[_0x4adcd6('0x74')][_0x4adcd6('0xa7')]),_0x4b657e[_0x4adcd6('0x99')]=qs[_0x4adcd6('0x99')](_0x298601[_0x4adcd6('0x74')][_0x4adcd6('0x99')])),_0x5369c4[_0x4adcd6('0xe9')](_0x4b657e);})['then'](function(_0x43cf92){if(_0x43cf92)return _0x43cf92?{'count':_0x509bf2,'rows':_0x43cf92}:null;})[_0x1c3520('0x8e')](respondWithResult(_0x36e514,null))['catch'](handleError(_0x36e514,null));},exports['getWhatsappInteractions']=function(_0x3d9481,_0x403373){const _0x9c992a=_0x38eeae;let _0x5513cd={};const _0x45ed16={};let _0x5c2c59,_0xac9115;return db[_0x9c992a('0x134')][_0x9c992a('0x14')]({'where':{'id':_0x3d9481['params']['id']}})[_0x9c992a('0x8e')](handleEntityNotFound(_0x403373,null))[_0x9c992a('0x8e')](function(_0x4fdf0f){const _0x44cda0=_0x9c992a;if(_0x4fdf0f)return _0x5c2c59=_0x4fdf0f,_0x45ed16[_0x44cda0('0x3b')]=_[_0x44cda0('0x144')](db['WhatsappInteraction']['rawAttributes']),_0x45ed16[_0x44cda0('0x74')]=_[_0x44cda0('0x144')](_0x3d9481[_0x44cda0('0x74')]),_0x45ed16['filters']=_[_0x44cda0('0xce')](_0x45ed16[_0x44cda0('0x3b')],_0x45ed16[_0x44cda0('0x74')]),_0x5513cd[_0x44cda0('0x118')]=_[_0x44cda0('0xce')](_0x45ed16[_0x44cda0('0x3b')],qs[_0x44cda0('0x59')](_0x3d9481[_0x44cda0('0x74')][_0x44cda0('0x59')])),_0x5513cd[_0x44cda0('0x118')]=_0x5513cd[_0x44cda0('0x118')][_0x44cda0('0x9c')]?_0x5513cd[_0x44cda0('0x118')]:_0x45ed16[_0x44cda0('0x3b')],_0x5513cd[_0x44cda0('0x6d')]=qs[_0x44cda0('0xcc')](_0x3d9481[_0x44cda0('0x74')][_0x44cda0('0xcc')]),_0x5513cd[_0x44cda0('0x4c')]=qs[_0x44cda0('0x5b')](_[_0x44cda0('0x160')](_0x3d9481['query'],_0x45ed16[_0x44cda0('0x5b')])),_0x3d9481['query'][_0x44cda0('0x1')]&&(_0x5513cd[_0x44cda0('0x4c')]=_[_0x44cda0('0x102')](_0x5513cd[_0x44cda0('0x4c')],{[Op['or']]:_[_0x44cda0('0x7a')](_0x5513cd[_0x44cda0('0x118')],function(_0x4688cc){const _0x563030=_0x44cda0,_0x4d0675={};return _0x4d0675[_0x4688cc]={[Op[_0x563030('0x65')]]:'%'+_0x3d9481['query'][_0x563030('0x1')]+'%'},_0x4d0675;})})),_0x5513cd=_[_0x44cda0('0x102')]({},_0x5513cd,_0x3d9481[_0x44cda0('0xfc')]),_0x5c2c59[_0x44cda0('0x128')](_0x5513cd);})[_0x9c992a('0x8e')](function(_0xba2cd0){const _0x576bcd=_0x9c992a;if(_0xba2cd0)return _0xac9115=_0xba2cd0['length'],typeof _0x3d9481[_0x576bcd('0x74')][_0x576bcd('0xe')]==='undefined'&&(_0x5513cd[_0x576bcd('0xa7')]=qs[_0x576bcd('0xa7')](_0x3d9481['query']['limit']),_0x5513cd[_0x576bcd('0x99')]=qs[_0x576bcd('0x99')](_0x3d9481[_0x576bcd('0x74')]['offset'])),_0x5c2c59[_0x576bcd('0x128')](_0x5513cd);})[_0x9c992a('0x8e')](function(_0x1161df){if(_0x1161df)return _0x1161df?{'count':_0xac9115,'rows':_0x1161df}:null;})['then'](respondWithResult(_0x403373,null))[_0x9c992a('0xda')](handleError(_0x403373,null));},exports[_0x38eeae('0x148')]=function(_0x4b9df6,_0x355283,_0x6669a){const _0x57258f=_0x38eeae;let _0x3492c3,_0xae0182,_0x1e6408;const _0xb3ed61=!_[_0x57258f('0x0')](_0x4b9df6['params']['id'])?_0x4b9df6[_0x57258f('0x100')]['id']:!_['isNil'](_0x4b9df6['user']['id'])?_0x4b9df6['user']['id']:null;return db['User']['findOne']({'where':{'id':_0xb3ed61,'role':{[Op['or']]:[_0x57258f('0x20'),_0x57258f('0x129'),_0x57258f('0x2f')]}},'attributes':['id','name',_0x57258f('0x121'),_0x57258f('0xfd'),_0x57258f('0x85'),_0x57258f('0x80'),_0x57258f('0xdc')]})[_0x57258f('0x8e')](function(_0x22da33){const _0x541cf4=_0x57258f;if(_0x22da33){if(_0x22da33[_0x541cf4('0x85')]===_0x541cf4('0x2f')){_0x3492c3=_0x22da33;if(_0x4b9df6['body'][_0x541cf4('0x136')])_0x1e6408=util[_0x541cf4('0xb')]('LOCAL/%s@from-sip/n',_0x3492c3[_0x4b9df6[_0x541cf4('0xa6')][_0x541cf4('0x136')]]);else _0x4b9df6[_0x541cf4('0xa6')][_0x541cf4('0x8f')]?_0x1e6408=util['format']('SIP/%s',_0x4b9df6[_0x541cf4('0xa6')][_0x541cf4('0x8f')]):_0x1e6408=util[_0x541cf4('0xb')]('SIP/%s',_0x3492c3['name']);return socket['to'](util['format'](_0x541cf4('0xab'),_0x3492c3[_0x541cf4('0x11')]))['emit'](_0x541cf4('0xd8'),{'ip':_0x4b9df6[_0x541cf4('0xf7')]['x-forwarded-for']||_0x4b9df6[_0x541cf4('0x139')][_0x541cf4('0x9f')]||_0x4b9df6[_0x541cf4('0x137')][_0x541cf4('0x9f')]||_0x4b9df6[_0x541cf4('0x139')]['socket'][_0x541cf4('0x9f')]}),db[_0x541cf4('0xbb')]['destroy']({'where':{'membername':_0x3492c3[_0x541cf4('0x11')]},'individualHooks':!![]});}}else throw new db[(_0x541cf4('0x108'))][(_0x541cf4('0x156'))]('User\x20not\x20found\x20or\x20not\x20allowed\x20to\x20perform\x20login\x20method');})['then'](function(){const _0x35bb31=_0x57258f;if(_0x3492c3)return _0x3492c3[_0x35bb31('0x125')]({'raw':!![]});})[_0x57258f('0x8e')](function(_0x5d2714){const _0x33cf1f=_0x57258f;if(_0x3492c3){if(_0x5d2714){_0xae0182=_0x5d2714;if(_0xae0182[_0x33cf1f('0x9c')]){const _0xe1285e=_0xae0182[_0x33cf1f('0x7a')](_0x3ac961=>{const _0x476ac0=_0x33cf1f,_0x21bfac={'membername':_0x3492c3[_0x476ac0('0x11')],'UserId':_0x3492c3['id'],'queue_name':_0x3ac961['name'],'VoiceQueueId':_0x3ac961['id'],'interface':_0x1e6408,'paused':_0x3492c3[_0x476ac0('0xdc')]||![],'penalty':_0x3ac961[_0x476ac0('0x135')]||0x0};return db['UserVoiceQueueRt'][_0x476ac0('0xa9')](_0x21bfac);});return Promise[_0x33cf1f('0x142')](_0xe1285e);}}}})['then'](function(){const _0x25505b=_0x57258f;if(_0x3492c3)return db[_0x25505b('0x151')][_0x25505b('0x42')]({'where':{'membername':_0x3492c3['name'],'exitAt':null}});})[_0x57258f('0x8e')](function(_0x3c1435){const _0x2a81c3=_0x57258f;if(_0x3492c3){const _0x49151f=[];return _0x3c1435[_0x2a81c3('0x22')](function(_0x5344bd){const _0x3d95db=_0x2a81c3;_0x49151f[_0x3d95db('0x101')](_0x5344bd['update']({'exitAt':moment()[_0x3d95db('0xb')](_0x3d95db('0xf'))}));}),Promise[_0x2a81c3('0x142')](_0x49151f);}})[_0x57258f('0x8e')](function(){const _0x236c3b=_0x57258f;if(_0x3492c3){const _0xd800ba=[],_0x25685c=[],_0x47d918=utils[_0x236c3b('0x86')](),_0x2f27e5={'membername':_0x3492c3[_0x236c3b('0x11')],'interface':_0x1e6408,'enterAt':moment()[_0x236c3b('0xb')]('YYYY-MM-DD\x20HH:mm:ss'),'role':_0x3492c3['role'],'internal':_0x3492c3['internal']};return _0x47d918[_0x236c3b('0x22')](function(_0x72ea89){const _0x2483d1=_0x236c3b;_0xd800ba[_0x2483d1('0x101')](_[_0x2483d1('0x102')]({'channel':_0x72ea89,'type':_0x2483d1('0x153'),'data1':_0x4b9df6['body']['device'],'data2':_0x1e6408},_0x2f27e5)),_0x3492c3[_0x2483d1('0xdc')]&&_0x25685c[_0x2483d1('0x101')](_[_0x2483d1('0x102')]({'channel':_0x72ea89,'type':_0x2483d1('0xaa'),'data1':_0x2483d1('0x107')},_0x2f27e5));}),db['MemberReport']['bulkCreate'](_0xd800ba['concat'](_0x25685c),{'individualHooks':!![]});}})[_0x57258f('0x8e')](function(){const _0x594615=_0x57258f;if(_0x3492c3)return _0x3492c3[_0x594615('0x14f')]({'online':!![],'lastLoginAt':moment()[_0x594615('0xb')](_0x594615('0xf')),'voicePause':_0x3492c3[_0x594615('0xdc')]||![],'mailPause':_0x3492c3[_0x594615('0xdc')]||![],'chatPause':_0x3492c3[_0x594615('0xdc')]||![],'faxPause':_0x3492c3[_0x594615('0xdc')]||![],'smsPause':_0x3492c3[_0x594615('0xdc')]||![],'openchannelPause':_0x3492c3['loginInPause']||![],'whatsappPause':_0x3492c3[_0x594615('0xdc')]||![],'pauseType':_0x3492c3[_0x594615('0xdc')]?_0x594615('0x107'):null,'interface':_0x1e6408,'lastPauseAt':moment()[_0x594615('0xb')](_0x594615('0xf'))});})[_0x57258f('0x8e')](function(_0x179df7){const _0x4e5371=_0x57258f;return _0x4b9df6['isMiddleware']?_0x6669a():Promise[_0x4e5371('0x120')](_0x179df7)[_0x4e5371('0x8e')](respondWithResult(_0x355283,null));})[_0x57258f('0xda')](handleError(_0x355283,null));},exports['logout']=function(_0x50982c,_0x3f144d){const _0x3a6215=_0x38eeae;let _0x2a7f7a;return db['User'][_0x3a6215('0x14')]({'where':{'id':_0x50982c[_0x3a6215('0x100')]['id'],'role':_0x3a6215('0x2f')},'attributes':['id',_0x3a6215('0x11'),_0x3a6215('0x85')]})[_0x3a6215('0x8e')](handleEntityNotFound(_0x3f144d,null))[_0x3a6215('0x8e')](function(_0x24aafc){const _0x102628=_0x3a6215;if(_0x24aafc)return _0x2a7f7a=_0x24aafc,db[_0x102628('0xbb')][_0x102628('0x9e')]({'where':{'membername':_0x2a7f7a[_0x102628('0x11')]},'individualHooks':!![]});})[_0x3a6215('0x8e')](function(){const _0xf7ccf9=_0x3a6215;return db[_0xf7ccf9('0x151')][_0xf7ccf9('0x42')]({'where':{'membername':_0x2a7f7a[_0xf7ccf9('0x11')],'exitAt':null}});})[_0x3a6215('0x8e')](function(_0x142678){const _0x4d72a1=_0x3a6215,_0x309a97=[];return _0x142678[_0x4d72a1('0x22')](function(_0x42759e){const _0x47c346=_0x4d72a1;_0x309a97['push'](_0x42759e[_0x47c346('0x14f')]({'exitAt':moment()['format'](_0x47c346('0xf'))}));}),Promise[_0x4d72a1('0x142')](_0x309a97);})[_0x3a6215('0x8e')](function(){const _0x8dfdc3=_0x3a6215;return _0x2a7f7a[_0x8dfdc3('0x14f')]({'online':![],'lastLoginAt':null,'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![],'whatsappPause':![],'interface':null});})[_0x3a6215('0x8e')](respondWithResult(_0x3f144d,null))['catch'](handleError(_0x3f144d,null));},exports[_0x38eeae('0x13f')]=function(_0x5663da,_0x4f67ca){const _0x3a8268=_0x38eeae;let _0x320dca;return db[_0x3a8268('0xbb')]['update']({'paused':0x1},{'where':{'UserId':_0x5663da['params']['id']},'individualHooks':!![]})[_0x3a8268('0x8e')](function(){const _0x14af6e=_0x3a8268;return db[_0x14af6e('0x134')][_0x14af6e('0x14')]({'where':{'id':_0x5663da[_0x14af6e('0x100')]['id'],'role':_0x14af6e('0x2f')},'attributes':['id',_0x14af6e('0x11'),_0x14af6e('0x85'),'internal',_0x14af6e('0x136')]});})[_0x3a8268('0x8e')](handleEntityNotFound(_0x4f67ca,null))[_0x3a8268('0x8e')](function(_0xd3bd8b){const _0x76a09c=_0x3a8268;if(_0xd3bd8b)return _0x320dca=_0xd3bd8b,respondWithRpcPromise(_0x76a09c('0x53'),'pause',{'id':_0x320dca['id'],'name':_0x320dca[_0x76a09c('0x11')],'pause':!![]});})[_0x3a8268('0x8e')](function(){const _0x3b1400=_0x3a8268;if(_0x320dca)return db['MemberReport'][_0x3b1400('0x42')]({'where':{'membername':_0x320dca[_0x3b1400('0x11')],'type':_0x3b1400('0xaa'),'exitAt':null}});})[_0x3a8268('0x8e')](function(_0x48bb10){const _0x437eae=_0x3a8268;if(_0x48bb10[_0x437eae('0x9c')]){const _0x244ae8=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');for(let _0x2177b3=0x0,_0x5b6910=_0x48bb10[_0x437eae('0x9c')];_0x2177b3<_0x5b6910;_0x2177b3++){_0x48bb10[_0x2177b3]['update']({'exitAt':_0x244ae8});}}})['then'](function(){const _0x3c49fd=_0x3a8268,_0x5f17b5=[],_0x3b76e5=utils[_0x3c49fd('0x86')]();return _0x3b76e5[_0x3c49fd('0x22')](function(_0x234029){const _0x571b0a=_0x3c49fd;_0x5f17b5[_0x571b0a('0x101')]({'channel':_0x234029,'membername':_0x320dca[_0x571b0a('0x11')],'interface':_['isNil'](_0x320dca[_0x571b0a('0x136')])?util[_0x571b0a('0xb')](_0x571b0a('0xb4'),_0x320dca[_0x571b0a('0x11')]):_0x320dca[_0x571b0a('0x136')],'type':'PAUSE','enterAt':moment()[_0x571b0a('0xb')]('YYYY-MM-DD\x20HH:mm:ss'),'data1':_0x5663da[_0x571b0a('0xa6')][_0x571b0a('0x4d')]||'DEFAULT\x20PAUSE','role':_0x320dca['role'],'internal':_0x320dca[_0x571b0a('0x80')]});}),db[_0x3c49fd('0x151')]['bulkCreate'](_0x5f17b5,{'individualHooks':!![]});})['then'](function(){const _0x20df31=_0x3a8268;return _0x320dca[_0x20df31('0x14f')]({'voicePause':!![],'mailPause':!![],'chatPause':!![],'faxPause':!![],'smsPause':!![],'whatsappPause':!![],'openchannelPause':!![],'pauseType':_0x5663da[_0x20df31('0xa6')]['type']||_0x20df31('0x1e'),'lastPauseAt':moment()[_0x20df31('0xb')](_0x20df31('0xf'))});})[_0x3a8268('0x8e')](respondWithResult(_0x4f67ca,null))['catch'](handleError(_0x4f67ca,null));},exports[_0x38eeae('0x10a')]=function(_0x361239,_0x30752b){const _0x27b694=_0x38eeae;let _0x414dd1;return db[_0x27b694('0x134')]['findOne']({'where':{'id':_0x361239[_0x27b694('0x100')]['id']},'attributes':['id',_0x27b694('0x11'),_0x27b694('0x85'),'voicePause',_0x27b694('0x33'),_0x27b694('0xdd'),_0x27b694('0x2'),_0x27b694('0x1c'),_0x27b694('0xec'),_0x27b694('0x25'),_0x27b694('0x93'),_0x27b694('0xc6')]})[_0x27b694('0x8e')](handleEntityNotFound(_0x30752b,null))['then'](function(_0x19316c){const _0x226582=_0x27b694;if(_0x19316c){_0x414dd1=_0x19316c;if(_0x361239[_0x226582('0xa6')][_0x226582('0x10d')]&&!utils['isValidChannel'](_0x361239['body'][_0x226582('0x10d')]))throw new db[(_0x226582('0x108'))]['ValidationError'](_0x226582('0xc2'));switch(_0x361239[_0x226582('0xa6')][_0x226582('0x10d')]){case _0x226582('0x13b'):return respondWithRpcPromise(_0x226582('0x53'),_0x226582('0x10a'),{'id':_0x414dd1['id'],'name':_0x414dd1[_0x226582('0x11')],'pause':![]})[_0x226582('0x8e')](function(){const _0x1cd708=_0x226582;return db[_0x1cd708('0xbb')]['update']({'paused':0x0},{'where':{'UserId':_0x414dd1['id']},'individualHooks':!![]});})[_0x226582('0x8e')](function(){const _0x423a31=_0x226582;return db['MemberReport'][_0x423a31('0x14')]({'where':{'channel':_0x361239[_0x423a31('0xa6')]['channel'],'membername':_0x414dd1[_0x423a31('0x11')],'type':'PAUSE','exitAt':null}});})['then'](function(_0x3eae58){const _0x47b0d7=_0x226582;if(_0x3eae58)return _0x3eae58[_0x47b0d7('0x14f')]({'exitAt':moment()[_0x47b0d7('0xb')](_0x47b0d7('0xf')),'data2':_0x47b0d7('0x67')},{'individualHooks':!![]});return null;})['then'](function(){return _0x414dd1['update']({'voicePause':![]});});case _0x226582('0xad'):case _0x226582('0xa4'):case _0x226582('0xd3'):case _0x226582('0x5f'):case _0x226582('0x106'):case _0x226582('0x94'):return db[_0x226582('0x151')][_0x226582('0x14')]({'where':{'channel':_0x361239['body'][_0x226582('0x10d')],'membername':_0x414dd1[_0x226582('0x11')],'type':_0x226582('0xaa'),'exitAt':null}})['then'](function(_0x5a9749){const _0x587b3e=_0x226582;if(_0x5a9749)return _0x5a9749[_0x587b3e('0x14f')]({'exitAt':moment()[_0x587b3e('0xb')](_0x587b3e('0xf')),'data2':'manual'},{'individualHooks':!![]});return null;})[_0x226582('0x8e')](function(){const _0xa0a421=_0x226582,_0x25d47d={};return _[_0xa0a421('0x6a')](_0x25d47d,util[_0xa0a421('0xb')]('%s%s',_0x361239[_0xa0a421('0xa6')][_0xa0a421('0x10d')],_0xa0a421('0x40')),![]),_0x414dd1['update'](_0x25d47d);});default:return respondWithRpcPromise('QueuePause',_0x226582('0x10a'),{'id':_0x414dd1['id'],'name':_0x414dd1[_0x226582('0x11')],'pause':![]})[_0x226582('0x8e')](function(){const _0x234add=_0x226582;return db[_0x234add('0xbb')][_0x234add('0x14f')]({'paused':0x0},{'where':{'UserId':_0x414dd1['id']}});})[_0x226582('0x8e')](function(){const _0x15f4be=_0x226582;return db[_0x15f4be('0x151')][_0x15f4be('0x42')]({'where':{'membername':_0x414dd1[_0x15f4be('0x11')],'type':_0x15f4be('0xaa'),'exitAt':null}});})[_0x226582('0x8e')](function(_0x31918c){const _0xcd7ea4=_0x226582,_0x2ccadf=[];return _0x31918c[_0xcd7ea4('0x22')](function(_0x2b799f){const _0x3ed673=_0xcd7ea4;_0x2ccadf[_0x3ed673('0x101')](_0x2b799f['update']({'exitAt':moment()[_0x3ed673('0xb')](_0x3ed673('0xf')),'data2':_0x3ed673('0x67')}));}),Promise[_0xcd7ea4('0x142')](_0x2ccadf);})['then'](function(){return _0x414dd1['update']({'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'whatsappPause':![],'openchannelPause':![]});});}}})[_0x27b694('0x8e')](respondWithResult(_0x30752b,null))['catch'](handleError(_0x30752b,null));},exports[_0x38eeae('0xe2')]=function(_0x81a778,_0x5d7dd7){const _0x4dd232=_0x38eeae;let _0xab60b1={};const _0x2f1ce5={};let _0x545f09,_0x2265b0;return db['User']['findOne']({'where':{'id':_0x81a778[_0x4dd232('0x100')]['id']}})[_0x4dd232('0x8e')](handleEntityNotFound(_0x5d7dd7,null))[_0x4dd232('0x8e')](function(_0x2afbf6){const _0x426016=_0x4dd232;if(_0x2afbf6)return _0x545f09=_0x2afbf6,_0x2f1ce5[_0x426016('0x3b')]=_[_0x426016('0x144')](db[_0x426016('0x75')][_0x426016('0x34')]),_0x2f1ce5[_0x426016('0x74')]=_[_0x426016('0x144')](_0x81a778[_0x426016('0x74')]),_0x2f1ce5['filters']=_['intersection'](_0x2f1ce5[_0x426016('0x3b')],_0x2f1ce5[_0x426016('0x74')]),_0xab60b1[_0x426016('0x118')]=_['intersection'](_0x2f1ce5[_0x426016('0x3b')],qs[_0x426016('0x59')](_0x81a778[_0x426016('0x74')][_0x426016('0x59')])),_0xab60b1[_0x426016('0x118')]=_0xab60b1[_0x426016('0x118')][_0x426016('0x9c')]?_0xab60b1[_0x426016('0x118')]:_0x2f1ce5[_0x426016('0x3b')],_0xab60b1[_0x426016('0x6d')]=qs['sort'](_0x81a778[_0x426016('0x74')]['sort']),_0xab60b1['where']=qs['filters'](_[_0x426016('0x160')](_0x81a778[_0x426016('0x74')],_0x2f1ce5['filters'])),_0x81a778[_0x426016('0x74')][_0x426016('0x1')]&&(_0xab60b1[_0x426016('0x4c')]=_[_0x426016('0x102')](_0xab60b1[_0x426016('0x4c')],{[Op['or']]:_[_0x426016('0x7a')](_0xab60b1[_0x426016('0x118')],function(_0x1831f8){const _0x18867f=_0x426016,_0x4a82a6={};return _0x4a82a6[_0x1831f8]={[Op[_0x18867f('0x65')]]:'%'+_0x81a778['query']['filter']+'%'},_0x4a82a6;})})),_0xab60b1=_['merge']({},_0xab60b1,_0x81a778[_0x426016('0xfc')]),_0x545f09['getTeams'](_0xab60b1);})[_0x4dd232('0x8e')](function(_0x134e71){const _0x464b50=_0x4dd232;if(_0x134e71)return _0x2265b0=_0x134e71[_0x464b50('0x9c')],typeof _0x81a778[_0x464b50('0x74')][_0x464b50('0xe')]==='undefined'&&(_0xab60b1[_0x464b50('0xa7')]=qs[_0x464b50('0xa7')](_0x81a778[_0x464b50('0x74')]['limit']),_0xab60b1[_0x464b50('0x99')]=qs['offset'](_0x81a778[_0x464b50('0x74')][_0x464b50('0x99')])),_0x545f09[_0x464b50('0xe2')](_0xab60b1);})[_0x4dd232('0x8e')](function(_0x1c1506){if(_0x1c1506)return _0x1c1506?{'count':_0x2265b0,'rows':_0x1c1506}:null;})[_0x4dd232('0x8e')](respondWithResult(_0x5d7dd7,null))[_0x4dd232('0xda')](handleError(_0x5d7dd7,null));},exports[_0x38eeae('0xd5')]=function(_0x23a5f1,_0x3d92c0){const _0x4cf961=_0x38eeae;return db[_0x4cf961('0x134')]['findOne']({'where':{'id':_0x23a5f1[_0x4cf961('0x100')]['id']}})['then'](handleEntityNotFound(_0x3d92c0,null))[_0x4cf961('0x8e')](function(_0x161aea){const _0x22deac=_0x4cf961;if(_0x161aea){const _0x5688dc=_0x161aea[_0x22deac('0xf9')]({'plain':!![]});return _0x161aea[_0x22deac('0xd5')](_0x23a5f1[_0x22deac('0xa6')][_0x22deac('0x157')],_[_0x22deac('0x12')](_0x23a5f1[_0x22deac('0xa6')],['ids','id'])||{})['then'](function(){const _0x43ab27=_0x22deac;for(let _0x5bfebf=0x0;_0x5bfebf<_0x23a5f1[_0x43ab27('0xa6')]['ids'][_0x43ab27('0x9c')];_0x5bfebf++){let _0x499f25=[];db['Team'][_0x43ab27('0x14')]({'where':{'id':_0x23a5f1[_0x43ab27('0xa6')][_0x43ab27('0x157')][_0x5bfebf]}})[_0x43ab27('0x8e')](function(_0x2299d1){const _0x248219=_0x43ab27;return _0x499f25[_0x248219('0x101')](_0x2299d1[_0x248219('0x125')]()[_0x248219('0x8e')](function(_0x57e830){const _0x552864=_0x248219;for(let _0x369af1=0x0;_0x369af1<_0x57e830[_0x552864('0x9c')];_0x369af1++){_0x57e830[_0x369af1][_0x552864('0xea')]('channel',_0x552864('0x36'));}return _0x57e830;})),_0x499f25[_0x248219('0x101')](_0x2299d1['getChatQueues']()['then'](function(_0x46d5c7){const _0x85b58c=_0x248219;for(let _0x3ca4f8=0x0;_0x3ca4f8<_0x46d5c7['length'];_0x3ca4f8++){_0x46d5c7[_0x3ca4f8]['setDataValue'](_0x85b58c('0x10d'),_0x85b58c('0xd7'));}return _0x46d5c7;})),_0x499f25[_0x248219('0x101')](_0x2299d1['getMailQueues']()[_0x248219('0x8e')](function(_0x247f18){const _0x22f871=_0x248219;for(let _0x282d5c=0x0;_0x282d5c<_0x247f18['length'];_0x282d5c++){_0x247f18[_0x282d5c][_0x22f871('0xea')]('channel',_0x22f871('0x49'));}return _0x247f18;})),_0x499f25[_0x248219('0x101')](_0x2299d1[_0x248219('0x10')]()[_0x248219('0x8e')](function(_0x1c3327){const _0x1c8948=_0x248219;for(let _0x35f0a1=0x0;_0x35f0a1<_0x1c3327[_0x1c8948('0x9c')];_0x35f0a1++){_0x1c3327[_0x35f0a1][_0x1c8948('0xea')](_0x1c8948('0x10d'),_0x1c8948('0x105'));}return _0x1c3327;})),_0x499f25[_0x248219('0x101')](_0x2299d1[_0x248219('0x2e')]()[_0x248219('0x8e')](function(_0x167cd5){const _0x2a0a9d=_0x248219;for(let _0x325520=0x0;_0x325520<_0x167cd5[_0x2a0a9d('0x9c')];_0x325520++){_0x167cd5[_0x325520]['setDataValue'](_0x2a0a9d('0x10d'),_0x2a0a9d('0xe5'));}return _0x167cd5;})),_0x499f25[_0x248219('0x101')](_0x2299d1[_0x248219('0x12b')]()['then'](function(_0xbd7841){const _0x4527e8=_0x248219;for(let _0x33f10e=0x0;_0x33f10e<_0xbd7841[_0x4527e8('0x9c')];_0x33f10e++){_0xbd7841[_0x33f10e][_0x4527e8('0xea')](_0x4527e8('0x10d'),_0x4527e8('0x2d'));}return _0xbd7841;})),_0x499f25[_0x248219('0x101')](_0x2299d1[_0x248219('0x155')]()[_0x248219('0x8e')](function(_0x284c39){const _0x532767=_0x248219;for(let _0x54583a=0x0;_0x54583a<_0x284c39[_0x532767('0x9c')];_0x54583a++){_0x284c39[_0x54583a][_0x532767('0xea')](_0x532767('0x10d'),_0x532767('0x152'));}return _0x284c39;})),Promise[_0x248219('0x142')](_0x499f25);})[_0x43ab27('0x8e')](function(_0xf94e04){const _0x3429c6=_0x43ab27,_0x437ea2=_[_0x3429c6('0x95')](_0xf94e04);return _0x499f25=[],db[_0x3429c6('0x119')][_0x3429c6('0x145')](function(_0x310b99){const _0x33fa5d=_0x3429c6;for(let _0x4ff184=0x0;_0x4ff184<_0x437ea2[_0x33fa5d('0x9c')];_0x4ff184++){_0x499f25[_0x33fa5d('0x101')](_0x437ea2[_0x4ff184]['addAgent'](_0x5688dc['id']),{'transaction':_0x310b99});}return Promise[_0x33fa5d('0x142')](_0x499f25)[_0x33fa5d('0x8e')](function(){const _0x111f52=_0x33fa5d;if(_0x5688dc[_0x111f52('0x11d')])return Promise[_0x111f52('0xd9')](_[_0x111f52('0x1')](_0x437ea2,function(_0x34a160){const _0xf67694=_0x111f52;return _0x34a160[_0xf67694('0xc0')](_0xf67694('0x10d'))===_0xf67694('0x36');}),function(_0x3939f6){const _0x18cee7=_0x111f52;return db[_0x18cee7('0xbb')][_0x18cee7('0xa9')]({'membername':_0x5688dc[_0x18cee7('0x11')],'UserId':_0x5688dc['id'],'queue_name':_0x3939f6[_0x18cee7('0x11')],'VoiceQueueId':_0x3939f6['id'],'interface':_['isNil'](_0x5688dc['interface'])?util[_0x18cee7('0xb')](_0x18cee7('0xb4'),_0x5688dc[_0x18cee7('0x11')]):_0x5688dc[_0x18cee7('0x136')],'paused':_0x5688dc[_0x18cee7('0x26')]||![],'penalty':_0x5688dc[_0x18cee7('0xca')]},{'transaction':_0x310b99});});else return;})[_0x33fa5d('0x8e')](function(){const _0x52daff=_0x33fa5d;for(let _0x245bc0=0x0;_0x245bc0<_0x437ea2[_0x52daff('0x9c')];_0x245bc0++){const _0x55897a=_0x437ea2[_0x245bc0][_0x52daff('0xc0')]('channel'),_0x4c4a01=_0x55897a+_0x52daff('0x56');socket[_0x52daff('0xb5')](_0x52daff('0x129')+_0x55897a+_0x52daff('0x30'),{'UserId':_0x5688dc['id'],[_0x4c4a01]:_0x437ea2[_0x245bc0]['id']});}});});});}});}})[_0x4cf961('0x8e')](respondWithStatusCode(_0x3d92c0,null))[_0x4cf961('0xda')](handleError(_0x3d92c0,null));},exports['removeTeams']=function(_0x1fd341,_0x8591c0){const _0x4c6fbf=_0x38eeae;return db[_0x4c6fbf('0x134')][_0x4c6fbf('0x14')]({'where':{'id':_0x1fd341[_0x4c6fbf('0x100')]['id']}})[_0x4c6fbf('0x8e')](handleEntityNotFound(_0x8591c0,null))['then'](function(_0xd8d3f2){const _0x2a0d86=_0x4c6fbf;if(_0xd8d3f2){const _0x48c63d=_0xd8d3f2[_0x2a0d86('0xf9')]({'plain':!![]}),_0x4bc3ec=_0x1fd341[_0x2a0d86('0x74')]['ids'];return _0xd8d3f2[_0x2a0d86('0x12e')](_0x4bc3ec)[_0x2a0d86('0x8e')](function(){const _0x1f7bc9=_0x2a0d86;for(let _0x3495e9=0x0;_0x3495e9<_0x4bc3ec[_0x1f7bc9('0x9c')];_0x3495e9++){let _0x2f7f4a=[];db[_0x1f7bc9('0x75')][_0x1f7bc9('0x14')]({'where':{'id':_0x4bc3ec[_0x3495e9]}})['then'](function(_0x2689cb){const _0x19cbc1=_0x1f7bc9;return _0x2f7f4a[_0x19cbc1('0x101')](_0x2689cb[_0x19cbc1('0x125')]()[_0x19cbc1('0x8e')](function(_0x5862b1){const _0x4e4362=_0x19cbc1;for(let _0x1d8de8=0x0;_0x1d8de8<_0x5862b1[_0x4e4362('0x9c')];_0x1d8de8++){_0x5862b1[_0x1d8de8]['setDataValue'](_0x4e4362('0x10d'),_0x4e4362('0x36'));}return _0x5862b1;})),_0x2f7f4a['push'](_0x2689cb[_0x19cbc1('0x6')]()[_0x19cbc1('0x8e')](function(_0x5c0d59){const _0x1fa3c7=_0x19cbc1;for(let _0x57be47=0x0;_0x57be47<_0x5c0d59[_0x1fa3c7('0x9c')];_0x57be47++){_0x5c0d59[_0x57be47][_0x1fa3c7('0xea')]('channel',_0x1fa3c7('0xd7'));}return _0x5c0d59;})),_0x2f7f4a['push'](_0x2689cb[_0x19cbc1('0x78')]()['then'](function(_0x2c4e06){const _0xa0b130=_0x19cbc1;for(let _0x3c5a49=0x0;_0x3c5a49<_0x2c4e06[_0xa0b130('0x9c')];_0x3c5a49++){_0x2c4e06[_0x3c5a49][_0xa0b130('0xea')](_0xa0b130('0x10d'),_0xa0b130('0x49'));}return _0x2c4e06;})),_0x2f7f4a[_0x19cbc1('0x101')](_0x2689cb[_0x19cbc1('0x10')]()[_0x19cbc1('0x8e')](function(_0x587dd7){const _0x5ae922=_0x19cbc1;for(let _0x2bbad9=0x0;_0x2bbad9<_0x587dd7[_0x5ae922('0x9c')];_0x2bbad9++){_0x587dd7[_0x2bbad9]['setDataValue'](_0x5ae922('0x10d'),_0x5ae922('0x105'));}return _0x587dd7;})),_0x2f7f4a[_0x19cbc1('0x101')](_0x2689cb[_0x19cbc1('0x2e')]()[_0x19cbc1('0x8e')](function(_0x40d2cb){const _0x5c80ea=_0x19cbc1;for(let _0x262a61=0x0;_0x262a61<_0x40d2cb[_0x5c80ea('0x9c')];_0x262a61++){_0x40d2cb[_0x262a61][_0x5c80ea('0xea')]('channel','Whatsapp');}return _0x40d2cb;})),_0x2f7f4a[_0x19cbc1('0x101')](_0x2689cb[_0x19cbc1('0x12b')]()[_0x19cbc1('0x8e')](function(_0x24db1f){const _0x5ddb4c=_0x19cbc1;for(let _0x5d68ce=0x0;_0x5d68ce<_0x24db1f[_0x5ddb4c('0x9c')];_0x5d68ce++){_0x24db1f[_0x5d68ce][_0x5ddb4c('0xea')]('channel',_0x5ddb4c('0x2d'));}return _0x24db1f;})),_0x2f7f4a[_0x19cbc1('0x101')](_0x2689cb['getOpenchannelQueues']()[_0x19cbc1('0x8e')](function(_0x5b703c){const _0xbcdcbf=_0x19cbc1;for(let _0x50e739=0x0;_0x50e739<_0x5b703c[_0xbcdcbf('0x9c')];_0x50e739++){_0x5b703c[_0x50e739][_0xbcdcbf('0xea')](_0xbcdcbf('0x10d'),_0xbcdcbf('0x152'));}return _0x5b703c;})),Promise['all'](_0x2f7f4a);})['then'](function(_0x53aec6){const _0x58d3cb=_0x1f7bc9,_0x116ffe=_['flatten'](_0x53aec6);return _0x2f7f4a=[],db[_0x58d3cb('0x119')][_0x58d3cb('0x145')](function(_0x1beb7d){const _0x5a73e7=_0x58d3cb;for(let _0x2f39bc=0x0;_0x2f39bc<_0x116ffe[_0x5a73e7('0x9c')];_0x2f39bc++){_0x2f7f4a[_0x5a73e7('0x101')](_0x116ffe[_0x2f39bc][_0x5a73e7('0x9b')](_0x48c63d['id']),{'transaction':_0x1beb7d});}return Promise['all'](_0x2f7f4a)[_0x5a73e7('0x8e')](function(){const _0x4ca5bb=_0x5a73e7;if(_0x48c63d['online'])return Promise[_0x4ca5bb('0xd9')](_[_0x4ca5bb('0x1')](_0x116ffe,function(_0x553b63){const _0x3081b0=_0x4ca5bb;return _0x553b63[_0x3081b0('0xc0')](_0x3081b0('0x10d'))===_0x3081b0('0x36');}),function(_0x4270e9){const _0x4e4fbf=_0x4ca5bb;return db[_0x4e4fbf('0xbb')][_0x4e4fbf('0x9e')]({'where':{'VoiceQueueId':_0x4270e9['id'],'UserId':_0x48c63d['id']},'transaction':_0x1beb7d});});else return;})[_0x5a73e7('0x8e')](function(){const _0x40b95d=_0x5a73e7;for(let _0x34f711=0x0;_0x34f711<_0x116ffe[_0x40b95d('0x9c')];_0x34f711++){const _0xc11b6f=_0x116ffe[_0x34f711][_0x40b95d('0xc0')](_0x40b95d('0x10d')),_0x3b86af=_0xc11b6f+_0x40b95d('0x56');socket[_0x40b95d('0xb5')](_0x40b95d('0x129')+_0xc11b6f+'Queue:remove',{'UserId':_0x48c63d['id'],[_0x3b86af]:_0x116ffe[_0x34f711]['id']});}});});});}});}})['then'](respondWithStatusCode(_0x8591c0,null))[_0x4c6fbf('0xda')](handleError(_0x8591c0,null));},exports[_0x38eeae('0xe4')]=function(_0x2f7988,_0xfa2fc4){const _0x2c6025=_0x38eeae;let _0x46583c={};const _0x2fdc51={};let _0x26b14b,_0x57bc57;return db[_0x2c6025('0x134')][_0x2c6025('0x14')]({'where':{'id':_0x2f7988['params']['id']}})[_0x2c6025('0x8e')](handleEntityNotFound(_0xfa2fc4,null))[_0x2c6025('0x8e')](function(_0x1e43b1){const _0x36c041=_0x2c6025;if(_0x1e43b1)return _0x26b14b=_0x1e43b1,_0x2fdc51['model']=_[_0x36c041('0x144')](db[_0x36c041('0x149')]['rawAttributes']),_0x2fdc51['query']=_[_0x36c041('0x144')](_0x2f7988[_0x36c041('0x74')]),_0x2fdc51['filters']=_[_0x36c041('0xce')](_0x2fdc51[_0x36c041('0x3b')],_0x2fdc51[_0x36c041('0x74')]),_0x46583c[_0x36c041('0x118')]=_[_0x36c041('0xce')](_0x2fdc51['model'],qs[_0x36c041('0x59')](_0x2f7988[_0x36c041('0x74')][_0x36c041('0x59')])),_0x46583c['attributes']=_0x46583c[_0x36c041('0x118')][_0x36c041('0x9c')]?_0x46583c[_0x36c041('0x118')]:_0x2fdc51[_0x36c041('0x3b')],_0x46583c[_0x36c041('0x6d')]=qs[_0x36c041('0xcc')](_0x2f7988[_0x36c041('0x74')][_0x36c041('0xcc')]),_0x46583c['where']=qs[_0x36c041('0x5b')](_[_0x36c041('0x160')](_0x2f7988['query'],_0x2fdc51['filters'])),_0x2f7988['query'][_0x36c041('0x1')]&&(_0x46583c[_0x36c041('0x4c')]=_[_0x36c041('0x102')](_0x46583c[_0x36c041('0x4c')],{[Op['or']]:_[_0x36c041('0x7a')](_0x46583c[_0x36c041('0x118')],function(_0x19eb30){const _0x331003=_0x36c041,_0x5106bf={};return _0x5106bf[_0x19eb30]={[Op[_0x331003('0x65')]]:'%'+_0x2f7988['query'][_0x331003('0x1')]+'%'},_0x5106bf;})})),_0x46583c=_[_0x36c041('0x102')]({},_0x46583c,_0x2f7988[_0x36c041('0xfc')]),_0x26b14b[_0x36c041('0xe4')](_0x46583c);})[_0x2c6025('0x8e')](function(_0x4a1dd8){const _0x555c52=_0x2c6025;if(_0x4a1dd8)return _0x57bc57=_0x4a1dd8[_0x555c52('0x9c')],typeof _0x2f7988['query']['nolimit']===_0x555c52('0x12a')&&(_0x46583c[_0x555c52('0xa7')]=qs[_0x555c52('0xa7')](_0x2f7988['query'][_0x555c52('0xa7')]),_0x46583c[_0x555c52('0x99')]=qs['offset'](_0x2f7988[_0x555c52('0x74')]['offset'])),_0x26b14b[_0x555c52('0xe4')](_0x46583c);})[_0x2c6025('0x8e')](function(_0x418c53){if(_0x418c53)return _0x418c53?{'count':_0x57bc57,'rows':_0x418c53}:null;})[_0x2c6025('0x8e')](respondWithResult(_0xfa2fc4,null))[_0x2c6025('0xda')](handleError(_0xfa2fc4,null));},exports['getAgents']=function(_0x5f05a3,_0x4559dc){const _0x22ba11=_0x38eeae;let _0x122d42={};const _0x332249={};let _0x2e0a3b;return db[_0x22ba11('0x134')]['findOne']({'where':{'id':_0x5f05a3['params']['id']}})[_0x22ba11('0x8e')](handleEntityNotFound(_0x4559dc,null))[_0x22ba11('0x8e')](function(_0x527a4f){const _0x45f5ab=_0x22ba11;if(_0x527a4f)return _0x2e0a3b=_0x527a4f,_0x332249[_0x45f5ab('0x3b')]=_['keys'](db[_0x45f5ab('0x134')]['rawAttributes']),_0x332249[_0x45f5ab('0x74')]=_[_0x45f5ab('0x144')](_0x5f05a3[_0x45f5ab('0x74')]),_0x332249[_0x45f5ab('0x5b')]=_[_0x45f5ab('0xce')](_0x332249[_0x45f5ab('0x3b')],_0x332249[_0x45f5ab('0x74')]),_0x122d42['attributes']=_[_0x45f5ab('0xce')](_0x332249['model'],qs[_0x45f5ab('0x59')](_0x5f05a3['query'][_0x45f5ab('0x59')])),_0x122d42[_0x45f5ab('0x118')]=_0x122d42['attributes']['length']?_0x122d42['attributes']:_0x332249[_0x45f5ab('0x3b')],_0x122d42['order']=qs[_0x45f5ab('0xcc')](_0x5f05a3['query'][_0x45f5ab('0xcc')]),_0x122d42[_0x45f5ab('0x4c')]=qs[_0x45f5ab('0x5b')](_['pick'](_0x5f05a3[_0x45f5ab('0x74')],_0x332249[_0x45f5ab('0x5b')])),_0x5f05a3[_0x45f5ab('0x74')][_0x45f5ab('0x1')]&&(_0x122d42[_0x45f5ab('0x4c')]=_[_0x45f5ab('0x102')](_0x122d42[_0x45f5ab('0x4c')],{[Op['or']]:_[_0x45f5ab('0x7a')](_0x122d42[_0x45f5ab('0x118')],function(_0xbc2689){const _0x31a598={};return _0x31a598[_0xbc2689]={[Op['like']]:'%'+_0x5f05a3['query']['filter']+'%'},_0x31a598;})})),_0x122d42[_0x45f5ab('0x3b')]=db[_0x45f5ab('0x134')],_0x122d42['as']=_0x45f5ab('0x109'),_0x122d42=_[_0x45f5ab('0x102')]({},_0x122d42,_0x5f05a3[_0x45f5ab('0xfc')]),_0x2e0a3b[_0x45f5ab('0x125')]({'include':[_0x122d42]});})[_0x22ba11('0x8e')](function(_0x317331){const _0x1b4df8=_0x22ba11;if(_0x317331){let _0x128f97={};const _0x28615a=[];for(let _0x56e4c5=0x0;_0x56e4c5<_0x317331['length'];_0x56e4c5+=0x1){for(let _0x28c2d9=0x0,_0x197027;_0x28c2d9<_0x317331[_0x56e4c5][_0x1b4df8('0x109')][_0x1b4df8('0x9c')];_0x28c2d9+=0x1){_0x197027=_0x317331[_0x56e4c5][_0x1b4df8('0x109')][_0x28c2d9][_0x1b4df8('0xf9')]({'plain':!![]}),_0x128f97[_0x197027['id']]=_0x197027;}}_0x128f97=_[_0x1b4df8('0xe8')](_0x128f97);for(let _0x137d1d=qs[_0x1b4df8('0x99')](_0x5f05a3['query']['offset']);_0x137d1d<_0x128f97[_0x1b4df8('0x9c')]&&_0x28615a[_0x1b4df8('0x9c')]=_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']{const _0x391552=a650_0x28e1;crypto[_0x391552('0x2b')](_0x284273,function(_0x4d1ea5,_0x207a75){const _0x183a87=_0x391552;return _0x4d1ea5&&_0x34aa10(_0x4d1ea5),_0x5b6d49(_0x207a75[_0x183a87('0x40')](_0x183a87('0xf')));});});},_0x46476b[_0x314993('0x2c')][_0x314993('0x33')]=function(_0x11761d,_0x40a91f){const _0x2dbcec=_0x314993;if(!_0x11761d||!this[_0x2dbcec('0xa')])return _0x40a91f?_0x40a91f(null):null;const _0x3ee4fe=0x2710,_0x4605ab=0x40,_0xd2d556=Buffer['from'](this['salt'],_0x2dbcec('0xf'));if(!_0x40a91f)return crypto['pbkdf2Sync'](_0x11761d,_0xd2d556,_0x3ee4fe,_0x4605ab,_0x2dbcec('0xc'))[_0x2dbcec('0x40')](_0x2dbcec('0xf'));return crypto[_0x2dbcec('0x39')](_0x11761d,_0xd2d556,_0x3ee4fe,_0x4605ab,'sha1',function(_0x2bab0a,_0x40ed32){const _0x3a8b29=_0x2dbcec;return _0x2bab0a&&_0x40a91f(_0x2bab0a),_0x40a91f(null,_0x40ed32['toString'](_0x3a8b29('0xf')));});},_0x46476b[_0x314993('0x2c')][_0x314993('0x1')]=async function(){const _0x244967=_0x314993;if(!this[_0x244967('0x11')])return null;if(!_['isEmpty'](this[_0x244967('0x11')])&&authTypes[_0x244967('0x1f')](this[_0x244967('0x22')])===-0x1)throw new Error(_0x244967('0x15'));return this[_0x244967('0xa')]=await this['makeSaltAsync'](),new Promise((_0x595c96,_0x4d88a5)=>{const _0x25fb30=_0x244967;this['encryptPassword'](this[_0x25fb30('0x11')],(_0x34135a,_0x3f4619)=>{const _0x1ca270=_0x25fb30;_0x34135a?_0x4d88a5(_0x34135a):(this[_0x1ca270('0x11')]=_0x3f4619,_0x595c96());});});},_0x46476b['prototype'][_0x314993('0x3')]=function(){const _0x4394ec=_0x314993;this[_0x4394ec('0x21')]=md5(this['name']+_0x4394ec('0x13')+this[_0x4394ec('0x11')]);},_0x46476b;}; \ No newline at end of file +const a650_0x2c78=['extensionMonitor','pbkdf2Sync','catch','toString','local','chanspy','join','users','CDR(type)=%s','salt','format','authenticate','prototype','auth','utf8_bin','Missing\x20Callback','util','models','internal','WAV','from','defaults','wav','updateMd5Password','pbkdf2','options','base64','CDR(type)=internal','record','encryptPassword','SIP/%s,,tTxX','md5secret','context','${UNIQUEID}.%s,ab','VoiceExtension','VoiceChanSpy','push','length','Dial','define','includes','MixMonitor','crypto','md5','merge','makeSaltAsync','Invalid\x20password','priority','prefix','isEmpty','exports','gsm','lodash','makeSalt','name','destroy','randomBytes','then','concat','sequelize','system','Authenticate','StopMixMonitor','recordingFormat','changed','updatePassword','./user.attributes','Set','SIP/%s,,tTxXU(xcally-mixmonitor-context)','_XCALLY_MIXMONITOR_FORMAT=%s','password','resolve','bulkCreate','findAll'];(function(_0x4c66cf,_0x2c78ae){const _0x31221e=function(_0x38a552){while(--_0x38a552){_0x4c66cf['push'](_0x4c66cf['shift']());}};_0x31221e(++_0x2c78ae);}(a650_0x2c78,0x1bd));const a650_0x3122=function(_0x4c66cf,_0x2c78ae){_0x4c66cf=_0x4c66cf-0x0;let _0x31221e=a650_0x2c78[_0x4c66cf];return _0x31221e;};const _0x4c110e=a650_0x3122;'use strict';const _=require(_0x4c110e('0x33')),util=require(_0x4c110e('0xf')),crypto=require(_0x4c110e('0x29')),md5=require(_0x4c110e('0x2a')),sequelize=require(_0x4c110e('0x3a')),{Op}=sequelize,attributes=require(_0x4c110e('0x41')),addUserApplication=function(_0x38a552,_0x53312a){const _0x2731a9=_0x4c110e,_0x3581b9=[_0x2731a9('0x15'),_0x2731a9('0x12'),_0x2731a9('0x32')],_0x14c1cf={'context':_0x38a552['context']||'from-sip','exten':_0x53312a,'type':'system','isApp':![],'UserId':_0x38a552['id']},_0x514a6d=[{'app':_0x2731a9('0x42'),'appdata':_0x2731a9('0x1a')}];_0x38a552[_0x2731a9('0x49')]&&_[_0x2731a9('0x27')](_0x3581b9,_0x38a552[_0x2731a9('0x49')])?(_0x514a6d[_0x2731a9('0x23')]({'app':_0x2731a9('0x42'),'appdata':'_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}'}),_0x514a6d['push']({'app':_0x2731a9('0x42'),'appdata':util['format'](_0x2731a9('0x44'),_0x38a552[_0x2731a9('0x49')])}),_0x514a6d[_0x2731a9('0x23')]({'app':'Dial','appdata':util[_0x2731a9('0x9')](_0x2731a9('0x43'),_0x38a552[_0x2731a9('0x35')])})):_0x514a6d[_0x2731a9('0x23')]({'app':_0x2731a9('0x25'),'appdata':util[_0x2731a9('0x9')](_0x2731a9('0x1d'),_0x38a552[_0x2731a9('0x35')])});_0x514a6d[_0x2731a9('0x23')]({'app':'Hangup'});for(let _0x14c8e9=0x0;_0x14c8e9<_0x514a6d['length'];_0x14c8e9++){_0x514a6d[_0x14c8e9][_0x2731a9('0x2e')]=_0x14c8e9+0x1,_0x514a6d[_0x14c8e9]=_[_0x2731a9('0x14')](_0x514a6d[_0x14c8e9],_0x14c1cf);}return _0x514a6d;},addChanSpyApplications=function(_0x550968,_0x14f4fe,_0x5d8bc3){const _0x5472fa=_0x4c110e,_0x57b3a1={'context':_0x550968['context']||'from-sip','type':_0x5472fa('0x3b'),'isApp':![],'UserId':_0x550968['id']},_0x5662de=[];for(let _0x499049=0x0,_0x29376c=0x1;_0x499049<_0x5d8bc3['length'];_0x499049++,_0x29376c=0x1){const _0x510f7f={'exten':util[_0x5472fa('0x9')]('%s%s',_0x5d8bc3[_0x499049][_0x5472fa('0x2f')],_0x14f4fe),'ChanSpyId':_0x5d8bc3[_0x499049]['id']};_0x5662de['push'](_[_0x5472fa('0x2b')]({'app':_0x5472fa('0x42'),'appdata':util['format'](_0x5472fa('0x7'),'chanspy'),'priority':_0x29376c++},_0x57b3a1,_0x510f7f)),_0x5d8bc3[_0x499049][_0x5472fa('0x1b')]&&_0x5662de['push'](_['merge']({'app':_0x5472fa('0x28'),'appdata':util[_0x5472fa('0x9')](_0x5472fa('0x20'),_0x5d8bc3[_0x499049][_0x5472fa('0x3e')]),'priority':_0x29376c++},_0x57b3a1,_0x510f7f)),_0x5d8bc3[_0x499049][_0x5472fa('0xc')]&&_0x5662de['push'](_['merge']({'app':_0x5472fa('0x3c'),'appdata':_0x5d8bc3[_0x499049][_0x5472fa('0x45')],'priority':_0x29376c++},_0x57b3a1,_0x510f7f)),_0x5662de['push'](_['merge']({'app':'ChanSpy','appdata':util[_0x5472fa('0x9')]('SIP/%s,%s',_0x550968[_0x5472fa('0x35')],_0x5d8bc3[_0x499049][_0x5472fa('0x18')]?_0x5d8bc3[_0x499049][_0x5472fa('0x18')][_0x5472fa('0x5')](''):''),'priority':_0x29376c++},_0x57b3a1,_0x510f7f)),_0x5d8bc3[_0x499049][_0x5472fa('0x1b')]&&_0x5662de[_0x5472fa('0x23')](_[_0x5472fa('0x2b')]({'app':_0x5472fa('0x3d'),'priority':_0x29376c++},_0x57b3a1,_0x510f7f));}return _0x5662de;},getChanSpy=function(_0x33bf72,_0x201161){return new Promise(function(_0x27c9bb,_0x59655f){const _0x12f172=a650_0x3122;return _0x33bf72[_0x12f172('0x22')][_0x12f172('0x48')]()[_0x12f172('0x38')](function(_0xecabdd){const _0x41c975=_0x12f172;if(_0xecabdd){let _0x581f1d=addChanSpyApplications(_0x201161,_0x201161[_0x41c975('0x11')],_0xecabdd);return _0x201161[_0x41c975('0x11')]!=_0x201161[_0x41c975('0x35')]&&(_0x581f1d=_0x581f1d['concat'](addChanSpyApplications(_0x201161,_0x201161[_0x41c975('0x35')],_0xecabdd))),_0x27c9bb(_0x581f1d);}return _0x27c9bb([]);})[_0x12f172('0x1')](function(_0x560244){_0x59655f(_0x560244);});});},authTypes=['google',_0x4c110e('0x3')];module[_0x4c110e('0x31')]=function(_0x1a9fb7){const _0x262296=_0x4c110e,_0x2d431c=_0x1a9fb7[_0x262296('0x10')],_0x2c3658=_0x1a9fb7[_0x262296('0x26')]('User',attributes,{'tableName':_0x262296('0x6'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeCreate':function(_0x3ba38f){const _0x21d62f=_0x262296;return _0x3ba38f[_0x21d62f('0x16')](),_0x3ba38f[_0x21d62f('0x40')]();},'beforeUpdate':function(_0x2cb347){const _0x4fd2d2=_0x262296;return _0x2cb347[_0x4fd2d2('0x3f')](_0x4fd2d2('0x45'))?(_0x2cb347['updateMd5Password'](),_0x2cb347[_0x4fd2d2('0x40')]()):Promise[_0x4fd2d2('0x46')]();},'afterCreate':function(_0x20a8aa){const _0x12c560=_0x262296;let _0x26e36f=addUserApplication(_0x20a8aa,_0x20a8aa[_0x12c560('0x11')]);return _0x20a8aa[_0x12c560('0x11')]!=_0x20a8aa[_0x12c560('0x35')]&&(_0x26e36f=_0x26e36f[_0x12c560('0x39')](addUserApplication(_0x20a8aa,_0x20a8aa[_0x12c560('0x35')]))),_0x2d431c[_0x12c560('0x21')][_0x12c560('0x47')](_0x26e36f)[_0x12c560('0x38')](function(){const _0x5713ec=_0x12c560;if(_0x20a8aa[_0x5713ec('0x4')])return getChanSpy(_0x2d431c,_0x20a8aa);})['then'](function(_0x4661f2){const _0x1ffda4=_0x12c560;return _0x4661f2&&_0x4661f2[_0x1ffda4('0x24')]?_0x2d431c[_0x1ffda4('0x21')][_0x1ffda4('0x47')](_0x4661f2):null;})['catch'](function(_0x1bd0f8){return _0x1bd0f8;});},'afterUpdate':function(_0x923ab1){const _0x1ab21a=_0x262296;return Promise[_0x1ab21a('0x46')]()[_0x1ab21a('0x38')](function(){const _0x56947d=_0x1ab21a;if(_0x923ab1['changed'](_0x56947d('0x4'))||_0x923ab1[_0x56947d('0x3f')](_0x56947d('0x1f')))return _0x2d431c[_0x56947d('0x21')][_0x56947d('0x36')]({'where':{'UserId':_0x923ab1['id'],'type':_0x56947d('0x3b'),'ChanSpyId':{[Op['ne']]:null}}})[_0x56947d('0x38')](function(){const _0x520785=_0x56947d;if(_0x923ab1['chanspy'])return getChanSpy(_0x2d431c,_0x923ab1)[_0x520785('0x38')](function(_0x510031){const _0x519db9=_0x520785;if(_0x510031&&_0x510031[_0x519db9('0x24')])return _0x2d431c[_0x519db9('0x21')][_0x519db9('0x47')](_0x510031);});});})['then'](function(){const _0x58378e=_0x1ab21a;return _0x923ab1[_0x58378e('0x3f')]('extensionMonitor')||_0x923ab1['changed'](_0x58378e('0x1f'))?_0x2d431c[_0x58378e('0x21')][_0x58378e('0x36')]({'where':{'UserId':_0x923ab1['id'],'type':_0x58378e('0x3b'),'ChanSpyId':null}})[_0x58378e('0x38')](function(){const _0x2c07f7=_0x58378e;let _0x580dba=addUserApplication(_0x923ab1,_0x923ab1['internal']);return _0x923ab1[_0x2c07f7('0x11')]!=_0x923ab1[_0x2c07f7('0x35')]&&(_0x580dba=_0x580dba['concat'](addUserApplication(_0x923ab1,_0x923ab1[_0x2c07f7('0x35')]))),_0x2d431c['VoiceExtension'][_0x2c07f7('0x47')](_0x580dba);}):null;})[_0x1ab21a('0x1')](function(_0x353880){return _0x353880;});},'afterDestroy':function(_0x264bcb){const _0x507434=_0x262296;return _0x2d431c['VoiceExtension'][_0x507434('0x36')]({'where':{'UserId':_0x264bcb['id'],'type':_0x507434('0x3b')}});}},'charset':'utf8','collate':_0x262296('0xd')});return _0x2c3658[_0x262296('0xb')][_0x262296('0xa')]=function(_0x58baef,_0x32bc8b){const _0xeb13a9=_0x262296;if(!_0x32bc8b)return this['password']===this[_0xeb13a9('0x1c')](_0x58baef);const _0x308550=this;this[_0xeb13a9('0x1c')](_0x58baef,function(_0x4e071f,_0x3a9de1){const _0x334f25=_0xeb13a9;_0x4e071f&&_0x32bc8b(_0x4e071f),_0x308550[_0x334f25('0x45')]===_0x3a9de1?_0x32bc8b(null,!![]):_0x32bc8b(null,![]);});},_0x2c3658['prototype'][_0x262296('0x34')]=function(_0x30b56e,_0x23aea4){const _0x10f5db=_0x262296,_0x53bb94=0x10;if(typeof arguments[0x0]==='function')_0x23aea4=arguments[0x0],_0x30b56e=_0x53bb94;else{if(typeof arguments[0x1]==='function')_0x23aea4=arguments[0x1];else throw new Error(_0x10f5db('0xe'));}return!_0x30b56e&&(_0x30b56e=_0x53bb94),crypto[_0x10f5db('0x37')](_0x30b56e,function(_0x493846,_0x1e7649){const _0x191b40=_0x10f5db;return _0x493846&&_0x23aea4(_0x493846),_0x23aea4(null,_0x1e7649[_0x191b40('0x2')]('base64'));});},_0x2c3658[_0x262296('0xb')]['makeSaltAsync']=async function(_0x1cb9f1=0x10){return new Promise((_0x1b5e83,_0x13472b)=>{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 diff --git a/server/api/user/user.rpc.js b/server/api/user/user.rpc.js index 8e94b2b..75fabe3 100644 --- a/server/api/user/user.rpc.js +++ b/server/api/user/user.rpc.js @@ -1 +1 @@ -const a651_0xd8ff=['bulkCreate','SIP/%s','UserVoiceQueueRt','map','channel','getChannels','sms','system','push','concat','debug','getLicense','update','%s%s','../../config/utils','name','role','merge','UnpauseUser','mobile','./user.socket','length','format','catch','fax','then','User','stringify','LOGININPAUSE','chat','../../mysqldb','ShowUser','sequelize','openchannel','raw','findAll','lodash','LoginUser','../../config/license/util','count','interface','destroy','MemberReport','info','model','loginInPause','error','type','voice','body','attributes','register','callysquare','agent','internal','agents','../../rediscache','YYYY-MM-DD\x20HH:mm:ss','where','options','upsert','LogoutUser','forEach','include','set','all','../../config/logger','mail','UserVoiceQueue.penalty','limit','GetUser','LOGIN','DEFAULT\x20PAUSE','rpc','findOne','getVoiceQueues','PAUSE','message'];(function(_0x50a191,_0xd8fff6){const _0x45f0b3=function(_0x13d3c4){while(--_0x13d3c4){_0x50a191['push'](_0x50a191['shift']());}};_0x45f0b3(++_0xd8fff6);}(a651_0xd8ff,0x1ef));const a651_0x45f0=function(_0x50a191,_0xd8fff6){_0x50a191=_0x50a191-0x0;let _0x45f0b3=a651_0xd8ff[_0x50a191];return _0x45f0b3;};const _0x381708=a651_0x45f0;'use strict';const _=require(_0x381708('0x9')),util=require('util'),db=require(_0x381708('0x3'))['db'],logger=require(_0x381708('0x27'))(_0x381708('0x2e')),moment=require('moment'),utils=require(_0x381708('0x41')),{getSocket}=require(_0x381708('0x1d')),socket=getSocket(),sequelize=require(_0x381708('0x5')),{Op}=sequelize;require(_0x381708('0x47'))[_0x381708('0x18')](socket),exports[_0x381708('0x2b')]=function(_0x13d3c4){const _0x4cda19=this;return new Promise(function(_0x5729bc,_0x13c065){const _0xdf4c1c=a651_0x45f0;return db[_0xdf4c1c('0x4d')][_0xdf4c1c('0x8')]({'raw':_0x13d3c4[_0xdf4c1c('0x20')]?_0x13d3c4['options']['raw']===undefined?!![]:![]:!![],'where':_0x13d3c4[_0xdf4c1c('0x20')]?_0x13d3c4[_0xdf4c1c('0x20')][_0xdf4c1c('0x1f')]||null:null,'attributes':_0x13d3c4[_0xdf4c1c('0x20')]?_0x13d3c4[_0xdf4c1c('0x20')]['attributes']||null:null,'limit':_0x13d3c4['options']?_0x13d3c4[_0xdf4c1c('0x20')][_0xdf4c1c('0x2a')]||null:null,'include':_0x13d3c4[_0xdf4c1c('0x20')]?_0x13d3c4[_0xdf4c1c('0x20')]['include']?_[_0xdf4c1c('0x36')](_0x13d3c4[_0xdf4c1c('0x20')]['include'],function(_0x18c0aa){const _0x437dba=_0xdf4c1c;return{'model':db[_0x18c0aa[_0x437dba('0x11')]],'as':_0x18c0aa['as'],'attributes':_0x18c0aa[_0x437dba('0x17')],'include':_0x18c0aa[_0x437dba('0x24')]?_[_0x437dba('0x36')](_0x18c0aa[_0x437dba('0x24')],function(_0x3ca3bf){const _0x2537e4=_0x437dba;return{'model':db[_0x3ca3bf[_0x2537e4('0x11')]],'as':_0x3ca3bf['as'],'attributes':_0x3ca3bf[_0x2537e4('0x17')],'include':_0x3ca3bf[_0x2537e4('0x24')]?_[_0x2537e4('0x36')](_0x3ca3bf[_0x2537e4('0x24')],function(_0x322a6e){const _0x2ab458=_0x2537e4;return{'model':db[_0x322a6e[_0x2ab458('0x11')]],'as':_0x322a6e['as'],'attributes':_0x322a6e[_0x2ab458('0x17')]};}):[]};}):[]};}):[]:[]})[_0xdf4c1c('0x4c')](function(_0x5bc57a){const _0x20886b=_0xdf4c1c;logger[_0x20886b('0x10')](_0x20886b('0x2b'),_0x13d3c4),logger[_0x20886b('0x3d')](_0x20886b('0x2b'),_0x13d3c4,JSON[_0x20886b('0x0')](_0x5bc57a)),_0x5729bc(_0x5bc57a);})[_0xdf4c1c('0x4a')](function(_0x15cf62){const _0x378b19=_0xdf4c1c;logger['error']('GetUser',_0x15cf62[_0x378b19('0x32')],_0x13d3c4),_0x13c065(_0x4cda19[_0x378b19('0x13')](0x1f4,_0x15cf62[_0x378b19('0x32')]));});});},exports[_0x381708('0x4')]=function(_0x3a5903){const _0x10be7e=this;return new Promise(function(_0x164ca2,_0x482fe9){const _0x506b1d=a651_0x45f0;return db[_0x506b1d('0x4d')][_0x506b1d('0x2f')]({'raw':_0x3a5903[_0x506b1d('0x20')]?_0x3a5903[_0x506b1d('0x20')][_0x506b1d('0x7')]===undefined?!![]:![]:!![],'where':_0x3a5903['options']?_0x3a5903['options'][_0x506b1d('0x1f')]||null:null,'attributes':_0x3a5903[_0x506b1d('0x20')]?_0x3a5903[_0x506b1d('0x20')]['attributes']||null:null,'include':_0x3a5903[_0x506b1d('0x20')]?_0x3a5903[_0x506b1d('0x20')]['include']?_[_0x506b1d('0x36')](_0x3a5903[_0x506b1d('0x20')][_0x506b1d('0x24')],function(_0x1b2b97){const _0x452f2d=_0x506b1d;return{'model':db[_0x1b2b97[_0x452f2d('0x11')]],'as':_0x1b2b97['as'],'attributes':_0x1b2b97[_0x452f2d('0x17')],'include':_0x1b2b97[_0x452f2d('0x24')]?_[_0x452f2d('0x36')](_0x1b2b97[_0x452f2d('0x24')],function(_0x72b3ca){const _0xf49628=_0x452f2d;return{'model':db[_0x72b3ca[_0xf49628('0x11')]],'as':_0x72b3ca['as'],'attributes':_0x72b3ca['attributes'],'include':_0x72b3ca[_0xf49628('0x24')]?_['map'](_0x72b3ca['include'],function(_0xbcde3a){const _0x34a068=_0xf49628;return{'model':db[_0xbcde3a[_0x34a068('0x11')]],'as':_0xbcde3a['as'],'attributes':_0xbcde3a['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x5b822a){const _0x58cc66=_0x506b1d;logger['info'](_0x58cc66('0x4'),_0x3a5903),logger['debug'](_0x58cc66('0x4'),_0x3a5903,JSON[_0x58cc66('0x0')](_0x5b822a)),_0x164ca2(_0x5b822a);})[_0x506b1d('0x4a')](function(_0x221eea){const _0x2fc63a=_0x506b1d;logger[_0x2fc63a('0x13')](_0x2fc63a('0x4'),_0x221eea[_0x2fc63a('0x32')],_0x3a5903),_0x482fe9(_0x10be7e[_0x2fc63a('0x13')](0x1f4,_0x221eea['message']));});});},exports['PauseUser']=function(_0x4d1fad){const _0x563b91=this;return new Promise(function(_0x4bed00,_0x345ff2){const _0x22502c=a651_0x45f0;let _0x14674d;return db['User'][_0x22502c('0x2f')]({'where':_0x4d1fad[_0x22502c('0x20')][_0x22502c('0x1f')]||{},'attributes':['id',_0x22502c('0x42'),'role',_0x22502c('0x1b'),'interface']})[_0x22502c('0x4c')](function(_0x51c26c){const _0x32c545=_0x22502c;if(_0x51c26c)return _0x14674d=_0x51c26c,db[_0x32c545('0x35')][_0x32c545('0x3f')]({'paused':0x1},{'where':{'UserId':_0x14674d['id']},'individualHooks':!![]});})[_0x22502c('0x4c')](function(){const _0x49a672=_0x22502c;if(_0x14674d)return db[_0x49a672('0xf')][_0x49a672('0x8')]({'where':{'membername':_0x14674d['name'],'type':_0x49a672('0x31'),'exitAt':null}});})['then'](function(_0x5b1781){const _0x27080d=_0x22502c;if(_0x14674d){if(_0x5b1781&&_0x5b1781[_0x27080d('0x48')]){const _0x46ea61=moment()['format'](_0x27080d('0x1e'));for(let _0x5f3712=0x0,_0x4eb902=_0x5b1781[_0x27080d('0x48')];_0x5f3712<_0x4eb902;_0x5f3712++){_0x5b1781[_0x5f3712][_0x27080d('0x3f')]({'exitAt':_0x46ea61});}}}})[_0x22502c('0x4c')](function(){const _0x3059fa=_0x22502c;if(_0x14674d){const _0x1d2353=[],_0x5c4422=utils[_0x3059fa('0x38')]();return _0x5c4422[_0x3059fa('0x23')](function(_0x163430){const _0x233248=_0x3059fa;_0x1d2353['push']({'channel':_0x163430,'membername':_0x14674d[_0x233248('0x42')],'interface':_['isNil'](_0x14674d[_0x233248('0xd')])?util[_0x233248('0x49')](_0x233248('0x34'),_0x14674d['name']):_0x14674d['interface'],'type':'PAUSE','enterAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'data1':_0x4d1fad[_0x233248('0x16')][_0x233248('0x14')]||_0x233248('0x2d'),'role':_0x14674d[_0x233248('0x43')],'internal':_0x14674d[_0x233248('0x1b')],'uniqueid':_0x4d1fad[_0x233248('0x16')]['uniqueid']||null});}),db[_0x3059fa('0xf')][_0x3059fa('0x33')](_0x1d2353,{'individualHooks':!![]});}})[_0x22502c('0x4c')](function(){const _0x337466=_0x22502c;if(_0x14674d)return _0x14674d['update']({'voicePause':!![],'mailPause':!![],'chatPause':!![],'faxPause':!![],'smsPause':!![],'openchannelPause':!![],'pauseType':_0x4d1fad['body'][_0x337466('0x14')]||_0x337466('0x2d'),'lastPauseAt':moment()[_0x337466('0x49')](_0x337466('0x1e'))});})['then'](function(_0x5e32dd){_0x4bed00(_0x5e32dd);})[_0x22502c('0x4a')](function(_0x312301){const _0x2898d0=_0x22502c;_0x345ff2(_0x563b91['error'](0x1f4,_0x312301[_0x2898d0('0x32')]));});});},exports[_0x381708('0x45')]=function(_0x27ee29){const _0x2bae7f=this;return new Promise(function(_0x2542dd,_0x199979){const _0x560f34=a651_0x45f0;let _0x276185;return db[_0x560f34('0x4d')][_0x560f34('0x2f')]({'where':_0x27ee29[_0x560f34('0x20')][_0x560f34('0x1f')]||{},'attributes':['id',_0x560f34('0x42')]})['then'](function(_0x14dcc4){const _0x115476=_0x560f34;if(_0x14dcc4){_0x276185=_0x14dcc4;if(_0x27ee29['body']['channel']&&!utils['isValidChannel'](_0x27ee29[_0x115476('0x16')][_0x115476('0x37')]))throw new Error('Unknown\x20channel');switch(_0x27ee29[_0x115476('0x16')][_0x115476('0x37')]){case _0x115476('0x15'):return db[_0x115476('0x35')][_0x115476('0x3f')]({'paused':0x0},{'where':{'UserId':_0x276185['id']}})[_0x115476('0x4c')](function(){const _0x52496c=_0x115476;return db[_0x52496c('0xf')][_0x52496c('0x2f')]({'where':{'channel':_0x27ee29[_0x52496c('0x16')][_0x52496c('0x37')],'membername':_0x276185[_0x52496c('0x42')],'type':_0x52496c('0x31'),'exitAt':null}});})[_0x115476('0x4c')](function(_0x58e1f9){const _0x39b8e9=_0x115476;if(_0x58e1f9)return _0x58e1f9[_0x39b8e9('0x3f')]({'exitAt':moment()[_0x39b8e9('0x49')]('YYYY-MM-DD\x20HH:mm:ss'),'data2':'system'},{'individualHooks':!![]});return null;})[_0x115476('0x4c')](function(){const _0x147fc6=_0x115476;return _0x276185[_0x147fc6('0x3f')]({'voicePause':![]});});case _0x115476('0x28'):case _0x115476('0x2'):case _0x115476('0x4b'):case _0x115476('0x39'):case _0x115476('0x6'):return db['MemberReport']['findOne']({'where':{'channel':_0x27ee29[_0x115476('0x16')][_0x115476('0x37')],'membername':_0x276185['name'],'type':_0x115476('0x31'),'exitAt':null}})[_0x115476('0x4c')](function(_0x30c1e2){const _0x17ff36=_0x115476;return _0x30c1e2[_0x17ff36('0x3f')]({'exitAt':moment()[_0x17ff36('0x49')](_0x17ff36('0x1e')),'data2':_0x17ff36('0x3a')},{'individualHooks':!![]});})[_0x115476('0x4c')](function(){const _0xcb4a9c=_0x115476,_0x2015ab={};return _[_0xcb4a9c('0x25')](_0x2015ab,util[_0xcb4a9c('0x49')](_0xcb4a9c('0x40'),_0x27ee29[_0xcb4a9c('0x16')][_0xcb4a9c('0x37')],'Pause'),![]),_0x276185[_0xcb4a9c('0x3f')](_0x2015ab);});default:return db[_0x115476('0x35')][_0x115476('0x3f')]({'paused':0x0},{'where':{'UserId':_0x276185['id']}})[_0x115476('0x4c')](function(){const _0x190a9c=_0x115476;return db[_0x190a9c('0xf')][_0x190a9c('0x8')]({'where':{'membername':_0x276185[_0x190a9c('0x42')],'type':_0x190a9c('0x31'),'exitAt':null}});})[_0x115476('0x4c')](function(_0x21e713){const _0xfb5a31=_0x115476,_0x3dc857=[];return _0x21e713[_0xfb5a31('0x23')](function(_0x164b27){const _0x5ba003=_0xfb5a31;_0x3dc857['push'](_0x164b27[_0x5ba003('0x3f')]({'exitAt':moment()[_0x5ba003('0x49')]('YYYY-MM-DD\x20HH:mm:ss'),'data2':_0x5ba003('0x3a')}));}),Promise[_0xfb5a31('0x26')](_0x3dc857);})[_0x115476('0x4c')](function(){const _0x3c3b8d=_0x115476;return _0x276185[_0x3c3b8d('0x3f')]({'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![]});});}}})['then'](function(_0x51d587){_0x2542dd(_0x51d587);})[_0x560f34('0x4a')](function(_0x56393d){_0x199979(_0x2bae7f['error'](0x1f4,_0x56393d['message']));});});},exports[_0x381708('0x22')]=function(_0xdee522){const _0x330a27=this;return new Promise(function(_0x17d6b5,_0x4113e0){const _0x8d4abe=a651_0x45f0;let _0x2f4d2e;return db[_0x8d4abe('0x4d')][_0x8d4abe('0x2f')]({'where':_0xdee522[_0x8d4abe('0x20')][_0x8d4abe('0x1f')]||{},'attributes':['id','name']})[_0x8d4abe('0x4c')](function(_0x587d72){const _0xb86bda=_0x8d4abe;if(_0x587d72)return _0x2f4d2e=_0x587d72,db[_0xb86bda('0x35')][_0xb86bda('0xe')]({'where':{'membername':_0x2f4d2e[_0xb86bda('0x42')]},'individualHooks':!![]});})[_0x8d4abe('0x4c')](function(){const _0x32bdc2=_0x8d4abe;if(_0x2f4d2e)return db[_0x32bdc2('0xf')][_0x32bdc2('0x8')]({'where':{'membername':_0x2f4d2e[_0x32bdc2('0x42')],'exitAt':null}});})['then'](function(_0x5c5b81){const _0x190ca8=_0x8d4abe;if(_0x2f4d2e){if(_0x5c5b81&&_0x5c5b81['length']){const _0x1049ee=[];return _0x5c5b81[_0x190ca8('0x23')](function(_0x46b188){const _0x43bba8=_0x190ca8;_0x1049ee[_0x43bba8('0x3b')](_0x46b188[_0x43bba8('0x3f')]({'exitAt':moment()[_0x43bba8('0x49')]('YYYY-MM-DD\x20HH:mm:ss')}));}),Promise[_0x190ca8('0x26')](_0x1049ee);}}})[_0x8d4abe('0x4c')](function(){const _0x49365f=_0x8d4abe;if(_0x2f4d2e)return _0x2f4d2e[_0x49365f('0x3f')]({'online':![],'lastLoginAt':null,'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![]});})['then'](function(_0x163f52){_0x17d6b5(_0x163f52);})['catch'](function(_0x1947c1){const _0x122b03=_0x8d4abe;_0x4113e0(_0x330a27[_0x122b03('0x13')](0x1f4,_0x1947c1[_0x122b03('0x32')]));});});},exports[_0x381708('0xa')]=function(_0x2ddff4){const _0x1940b8=this;return new Promise(function(_0x3dd1f3,_0x21cb75){const _0x5bd474=a651_0x45f0;let _0x5867ef,_0x4816d0,_0x511b48,_0xb85188;return db['User'][_0x5bd474('0x2f')]({'where':_0x2ddff4[_0x5bd474('0x20')][_0x5bd474('0x1f')]||{},'attributes':['id','name',_0x5bd474('0x43'),_0x5bd474('0x46'),'phone',_0x5bd474('0x1b'),_0x5bd474('0x12'),_0x5bd474('0xd')]})[_0x5bd474('0x4c')](function(_0x19cb2a){const _0x286b34=_0x5bd474;if(_0x19cb2a)return _0x5867ef=_0x19cb2a,_0xb85188=_0x2ddff4[_0x286b34('0x16')][_0x286b34('0xd')]?_0x2ddff4[_0x286b34('0x16')][_0x286b34('0xd')]:util[_0x286b34('0x49')]('SIP/%s',_0x5867ef['name']),db['User'][_0x286b34('0xc')]({'where':{'role':_0x286b34('0x1a'),'online':!![],'id':{[Op['ne']]:_0x5867ef['id']}}});})[_0x5bd474('0x4c')](function(_0x2e92e0){const _0x4e036d=_0x5bd474;if(_0x2e92e0)return _0x511b48=_0x2e92e0,require(_0x4e036d('0xb'))[_0x4e036d('0x3e')]();})[_0x5bd474('0x4c')](function(_0x45f58b){const _0xdecb8=_0x5bd474;if(_0x45f58b&&_0x45f58b[_0xdecb8('0x1c')]&&_0x511b48>=_0x45f58b['agents'])throw new Error('Maximum\x20login\x20has\x20been\x20reached');})[_0x5bd474('0x4c')](function(){const _0xe99cfb=_0x5bd474;if(_0x5867ef)return db[_0xe99cfb('0x35')][_0xe99cfb('0xe')]({'where':{'membername':_0x5867ef[_0xe99cfb('0x42')]},'individualHooks':!![]});})[_0x5bd474('0x4c')](function(){const _0x114abe=_0x5bd474;if(_0x5867ef)return _0x5867ef[_0x114abe('0x30')]({'raw':!![]});})[_0x5bd474('0x4c')](function(_0x1bb797){const _0x54d81f=_0x5bd474;if(_0x5867ef){if(_0x1bb797){const _0x397249=[];_0x4816d0=_0x1bb797;if(_0x4816d0['length']){for(let _0x9cc0f3=0x0;_0x9cc0f3<_0x4816d0[_0x54d81f('0x48')];_0x9cc0f3++){_0x397249[_0x54d81f('0x3b')](db['UserVoiceQueueRt'][_0x54d81f('0x21')]({'membername':_0x5867ef[_0x54d81f('0x42')],'UserId':_0x5867ef['id'],'queue_name':_0x4816d0[_0x9cc0f3][_0x54d81f('0x42')],'VoiceQueueId':_0x4816d0[_0x9cc0f3]['id'],'interface':_0xb85188,'paused':_0x5867ef[_0x54d81f('0x12')]||![],'penalty':_0x4816d0[_0x9cc0f3][_0x54d81f('0x29')]||0x0}));}return Promise[_0x54d81f('0x26')](_0x397249);}}}})['then'](function(){const _0x3be7eb=_0x5bd474;if(_0x5867ef)return db[_0x3be7eb('0xf')][_0x3be7eb('0x8')]({'where':{'membername':_0x5867ef[_0x3be7eb('0x42')],'exitAt':null}});})[_0x5bd474('0x4c')](function(_0x3f32ee){const _0x50adcb=_0x5bd474;if(_0x5867ef){if(_0x3f32ee&&_0x3f32ee[_0x50adcb('0x48')]){const _0x51de28=[];return _0x3f32ee[_0x50adcb('0x23')](function(_0x2da3c7){const _0x5910be=_0x50adcb;_0x51de28[_0x5910be('0x3b')](_0x2da3c7[_0x5910be('0x3f')]({'exitAt':moment()[_0x5910be('0x49')]('YYYY-MM-DD\x20HH:mm:ss')}));}),Promise['all'](_0x51de28);}}})[_0x5bd474('0x4c')](function(){const _0x58ceec=_0x5bd474;if(_0x5867ef){const _0x3f2a29=[],_0x381a77=[],_0x3d98c7=utils[_0x58ceec('0x38')](),_0x559c9c={'membername':_0x5867ef[_0x58ceec('0x42')],'interface':_0xb85188,'enterAt':moment()[_0x58ceec('0x49')](_0x58ceec('0x1e')),'role':_0x5867ef['role'],'internal':_0x5867ef[_0x58ceec('0x1b')]};return _0x3d98c7['forEach'](function(_0x185eba){const _0x53254e=_0x58ceec;_0x3f2a29[_0x53254e('0x3b')](_[_0x53254e('0x44')]({'channel':_0x185eba,'type':_0x53254e('0x2c'),'data1':_0x53254e('0x19'),'data2':_0xb85188},_0x559c9c)),_0x5867ef[_0x53254e('0x12')]&&_0x381a77[_0x53254e('0x3b')](_[_0x53254e('0x44')]({'channel':_0x185eba,'type':_0x53254e('0x31'),'data1':_0x53254e('0x1')},_0x559c9c));}),db[_0x58ceec('0xf')][_0x58ceec('0x33')](_0x3f2a29[_0x58ceec('0x3c')](_0x381a77),{'individualHooks':!![]});}})[_0x5bd474('0x4c')](function(){const _0xd0c01f=_0x5bd474;if(_0x5867ef)return _0x5867ef[_0xd0c01f('0x3f')]({'online':!![],'lastLoginAt':moment()[_0xd0c01f('0x49')]('YYYY-MM-DD\x20HH:mm:ss'),'voicePause':_0x5867ef[_0xd0c01f('0x12')]||![],'mailPause':_0x5867ef[_0xd0c01f('0x12')]||![],'chatPause':_0x5867ef[_0xd0c01f('0x12')]||![],'faxPause':_0x5867ef['loginInPause']||![],'smsPause':_0x5867ef['loginInPause']||![],'openchannelPause':_0x5867ef[_0xd0c01f('0x12')]||![],'pauseType':_0x5867ef[_0xd0c01f('0x12')]?'LOGININPAUSE':null,'lastPauseAt':moment()[_0xd0c01f('0x49')](_0xd0c01f('0x1e')),'interface':_0xb85188});})[_0x5bd474('0x4c')](function(_0x2100c5){_0x3dd1f3(_0x2100c5);})[_0x5bd474('0x4a')](function(_0x35f8bc){const _0x3e5434=_0x5bd474;_0x21cb75(_0x1940b8[_0x3e5434('0x13')](0x1f4,_0x35f8bc[_0x3e5434('0x32')]));});});}; \ No newline at end of file +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 diff --git a/server/api/user/user.socket.js b/server/api/user/user.socket.js index 69a87fe..c2676f6 100644 --- a/server/api/user/user.socket.js +++ b/server/api/user/user.socket.js @@ -1 +1 @@ -const a652_0x1702=['emit','remove','save','register','./user.events','user:'];(function(_0x54b4ff,_0x17024a){const _0x51da8d=function(_0x36bb84){while(--_0x36bb84){_0x54b4ff['push'](_0x54b4ff['shift']());}};_0x51da8d(++_0x17024a);}(a652_0x1702,0x9f));const a652_0x51da=function(_0x54b4ff,_0x17024a){_0x54b4ff=_0x54b4ff-0x0;let _0x51da8d=a652_0x1702[_0x54b4ff];return _0x51da8d;};const _0x38a783=a652_0x51da;'use strict';const UserEvents=require(_0x38a783('0x1')),events=[_0x38a783('0x5'),_0x38a783('0x4'),'update'];function createListener(_0x36bb84,_0x586bd1){return function(_0x50b579){const _0x5dd88f=a652_0x51da;_0x586bd1[_0x5dd88f('0x3')](_0x36bb84,_0x50b579);};}exports[_0x38a783('0x0')]=function(_0x20b9f3){const _0x3880f6=_0x38a783;for(let _0xeb9cec=0x0,_0x572831=events['length'];_0xeb9cec<_0x572831;_0xeb9cec++){const _0x24cc6f=events[_0xeb9cec],_0x43bfa4=createListener(_0x3880f6('0x2')+_0x24cc6f,_0x20b9f3);UserEvents['on'](_0x24cc6f,_0x43bfa4);}}; \ No newline at end of file +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 diff --git a/server/api/userChatQueue/index.js b/server/api/userChatQueue/index.js index b3db719..baca1bf 100644 --- a/server/api/userChatQueue/index.js +++ b/server/api/userChatQueue/index.js @@ -1 +1 @@ -const a653_0x20d0=['exports','express'];(function(_0x1257d3,_0x20d021){const _0x1b865e=function(_0x2a9a8b){while(--_0x2a9a8b){_0x1257d3['push'](_0x1257d3['shift']());}};_0x1b865e(++_0x20d021);}(a653_0x20d0,0x166));const a653_0x1b86=function(_0x1257d3,_0x20d021){_0x1257d3=_0x1257d3-0x0;let _0x1b865e=a653_0x20d0[_0x1257d3];return _0x1b865e;};const _0x3c89c0=a653_0x1b86;'use strict';const express=require(_0x3c89c0('0x1')),router=express['Router']();module[_0x3c89c0('0x0')]=router; \ No newline at end of file +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 diff --git a/server/api/userChatQueue/userChatQueue.attributes.js b/server/api/userChatQueue/userChatQueue.attributes.js index cdd93ee..32c68d5 100644 --- a/server/api/userChatQueue/userChatQueue.attributes.js +++ b/server/api/userChatQueue/userChatQueue.attributes.js @@ -1 +1 @@ -const a654_0x1c38=['INTEGER'];(function(_0x1fc7d9,_0x1c3866){const _0x358e57=function(_0x54ce85){while(--_0x54ce85){_0x1fc7d9['push'](_0x1fc7d9['shift']());}};_0x358e57(++_0x1c3866);}(a654_0x1c38,0x96));const a654_0x358e=function(_0x1fc7d9,_0x1c3866){_0x1fc7d9=_0x1fc7d9-0x0;let _0x358e57=a654_0x1c38[_0x1fc7d9];return _0x358e57;};const _0x5a94d6=a654_0x358e;'use strict';const Sequelize=require('sequelize');module['exports']={'penalty':{'type':Sequelize[_0x5a94d6('0x0')],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/userChatQueue/userChatQueue.model.js b/server/api/userChatQueue/userChatQueue.model.js index fea497f..361d933 100644 --- a/server/api/userChatQueue/userChatQueue.model.js +++ b/server/api/userChatQueue/userChatQueue.model.js @@ -1 +1 @@ -const a655_0x5150=['define','exports','UserChatQueue','user_has_chat_queues','./userChatQueue.attributes'];(function(_0x25620b,_0x515004){const _0x20df45=function(_0x3383e0){while(--_0x3383e0){_0x25620b['push'](_0x25620b['shift']());}};_0x20df45(++_0x515004);}(a655_0x5150,0x143));const a655_0x20df=function(_0x25620b,_0x515004){_0x25620b=_0x25620b-0x0;let _0x20df45=a655_0x5150[_0x25620b];return _0x20df45;};const _0x2ee710=a655_0x20df;'use strict';const attributes=require(_0x2ee710('0x1'));module[_0x2ee710('0x3')]=function(_0x3383e0){const _0x538251=_0x2ee710,_0x13119e=_0x3383e0[_0x538251('0x2')](_0x538251('0x4'),attributes,{'tableName':_0x538251('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x13119e;}; \ No newline at end of file +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 diff --git a/server/api/userFaxQueue/index.js b/server/api/userFaxQueue/index.js index 6817902..d9ccefb 100644 --- a/server/api/userFaxQueue/index.js +++ b/server/api/userFaxQueue/index.js @@ -1 +1 @@ -const a656_0x240a=['express','exports','Router'];(function(_0x1f7dc6,_0x240ad8){const _0x37f6a7=function(_0x265a2a){while(--_0x265a2a){_0x1f7dc6['push'](_0x1f7dc6['shift']());}};_0x37f6a7(++_0x240ad8);}(a656_0x240a,0x6f));const a656_0x37f6=function(_0x1f7dc6,_0x240ad8){_0x1f7dc6=_0x1f7dc6-0x0;let _0x37f6a7=a656_0x240a[_0x1f7dc6];return _0x37f6a7;};const _0x3832a9=a656_0x37f6;'use strict';const express=require(_0x3832a9('0x0')),router=express[_0x3832a9('0x2')]();module[_0x3832a9('0x1')]=router; \ No newline at end of file +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 diff --git a/server/api/userFaxQueue/userFaxQueue.attributes.js b/server/api/userFaxQueue/userFaxQueue.attributes.js index 2ac1759..e1089e5 100644 --- a/server/api/userFaxQueue/userFaxQueue.attributes.js +++ b/server/api/userFaxQueue/userFaxQueue.attributes.js @@ -1 +1 @@ -const a657_0x1bf0=['exports','STRING','INTEGER','sequelize'];(function(_0x3fedfd,_0x1bf05e){const _0x174a33=function(_0x285cd9){while(--_0x285cd9){_0x3fedfd['push'](_0x3fedfd['shift']());}};_0x174a33(++_0x1bf05e);}(a657_0x1bf0,0xe9));const a657_0x174a=function(_0x3fedfd,_0x1bf05e){_0x3fedfd=_0x3fedfd-0x0;let _0x174a33=a657_0x1bf0[_0x3fedfd];return _0x174a33;};const _0x5cc3bd=a657_0x174a;'use strict';const Sequelize=require(_0x5cc3bd('0x2'));module[_0x5cc3bd('0x3')]={'penalty':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'assigned':{'type':Sequelize[_0x5cc3bd('0x1')],'defaultValue':0x0},'queue':{'type':Sequelize[_0x5cc3bd('0x0')]}}; \ No newline at end of file +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 diff --git a/server/api/userFaxQueue/userFaxQueue.model.js b/server/api/userFaxQueue/userFaxQueue.model.js index c679d7d..194ca93 100644 --- a/server/api/userFaxQueue/userFaxQueue.model.js +++ b/server/api/userFaxQueue/userFaxQueue.model.js @@ -1 +1 @@ -const a658_0x25fc=['user_has_fax_queues','define','./userFaxQueue.attributes','exports','UserFaxQueue'];(function(_0x4661ec,_0x25fce3){const _0x38bdac=function(_0x5c85db){while(--_0x5c85db){_0x4661ec['push'](_0x4661ec['shift']());}};_0x38bdac(++_0x25fce3);}(a658_0x25fc,0x82));const a658_0x38bd=function(_0x4661ec,_0x25fce3){_0x4661ec=_0x4661ec-0x0;let _0x38bdac=a658_0x25fc[_0x4661ec];return _0x38bdac;};const _0x2cbdbb=a658_0x38bd;'use strict';const attributes=require(_0x2cbdbb('0x2'));module[_0x2cbdbb('0x3')]=function(_0x5c85db){const _0xe0bca1=_0x2cbdbb,_0x4d79e1=_0x5c85db[_0xe0bca1('0x1')](_0xe0bca1('0x4'),attributes,{'tableName':_0xe0bca1('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4d79e1;}; \ No newline at end of file +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 diff --git a/server/api/userMailQueue/index.js b/server/api/userMailQueue/index.js index f29c3bd..da7b433 100644 --- a/server/api/userMailQueue/index.js +++ b/server/api/userMailQueue/index.js @@ -1 +1 @@ -const a659_0x581d=['exports','Router','express'];(function(_0xc206e7,_0x581dc4){const _0x3f275d=function(_0x41088b){while(--_0x41088b){_0xc206e7['push'](_0xc206e7['shift']());}};_0x3f275d(++_0x581dc4);}(a659_0x581d,0x183));const a659_0x3f27=function(_0xc206e7,_0x581dc4){_0xc206e7=_0xc206e7-0x0;let _0x3f275d=a659_0x581d[_0xc206e7];return _0x3f275d;};const _0x388896=a659_0x3f27;'use strict';const express=require(_0x388896('0x2')),router=express[_0x388896('0x1')]();module[_0x388896('0x0')]=router; \ No newline at end of file +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 diff --git a/server/api/userMailQueue/userMailQueue.attributes.js b/server/api/userMailQueue/userMailQueue.attributes.js index 0852941..cb1c4ff 100644 --- a/server/api/userMailQueue/userMailQueue.attributes.js +++ b/server/api/userMailQueue/userMailQueue.attributes.js @@ -1 +1 @@ -const a660_0x5645=['INTEGER','sequelize','exports'];(function(_0x5974aa,_0x56459d){const _0x29da63=function(_0x6554fb){while(--_0x6554fb){_0x5974aa['push'](_0x5974aa['shift']());}};_0x29da63(++_0x56459d);}(a660_0x5645,0xb4));const a660_0x29da=function(_0x5974aa,_0x56459d){_0x5974aa=_0x5974aa-0x0;let _0x29da63=a660_0x5645[_0x5974aa];return _0x29da63;};const _0x5d8b45=a660_0x29da;'use strict';const Sequelize=require(_0x5d8b45('0x1'));module[_0x5d8b45('0x2')]={'penalty':{'type':Sequelize[_0x5d8b45('0x0')],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/userMailQueue/userMailQueue.model.js b/server/api/userMailQueue/userMailQueue.model.js index f3827c9..1779fa6 100644 --- a/server/api/userMailQueue/userMailQueue.model.js +++ b/server/api/userMailQueue/userMailQueue.model.js @@ -1 +1 @@ -const a661_0x3f47=['exports','define','UserMailQueue'];(function(_0x1d8f89,_0x3f47bd){const _0x52c3e4=function(_0x159e9e){while(--_0x159e9e){_0x1d8f89['push'](_0x1d8f89['shift']());}};_0x52c3e4(++_0x3f47bd);}(a661_0x3f47,0xbb));const a661_0x52c3=function(_0x1d8f89,_0x3f47bd){_0x1d8f89=_0x1d8f89-0x0;let _0x52c3e4=a661_0x3f47[_0x1d8f89];return _0x52c3e4;};const _0x3130d1=a661_0x52c3;'use strict';const attributes=require('./userMailQueue.attributes');module[_0x3130d1('0x2')]=function(_0x159e9e){const _0x1276a7=_0x3130d1,_0x5d6825=_0x159e9e[_0x1276a7('0x0')](_0x1276a7('0x1'),attributes,{'tableName':'user_has_mail_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x5d6825;}; \ No newline at end of file +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 diff --git a/server/api/userOpenchannelQueue/index.js b/server/api/userOpenchannelQueue/index.js index e8adc09..3dc18f5 100644 --- a/server/api/userOpenchannelQueue/index.js +++ b/server/api/userOpenchannelQueue/index.js @@ -1 +1 @@ -const a662_0x4f21=['Router','exports'];(function(_0x2f5908,_0x4f2136){const _0x49a06d=function(_0x4f0ac6){while(--_0x4f0ac6){_0x2f5908['push'](_0x2f5908['shift']());}};_0x49a06d(++_0x4f2136);}(a662_0x4f21,0x1be));const a662_0x49a0=function(_0x2f5908,_0x4f2136){_0x2f5908=_0x2f5908-0x0;let _0x49a06d=a662_0x4f21[_0x2f5908];return _0x49a06d;};const _0x5b9c57=a662_0x49a0;'use strict';const express=require('express'),router=express[_0x5b9c57('0x0')]();module[_0x5b9c57('0x1')]=router; \ No newline at end of file +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 diff --git a/server/api/userOpenchannelQueue/userOpenchannelQueue.attributes.js b/server/api/userOpenchannelQueue/userOpenchannelQueue.attributes.js index ff97ddc..943d773 100644 --- a/server/api/userOpenchannelQueue/userOpenchannelQueue.attributes.js +++ b/server/api/userOpenchannelQueue/userOpenchannelQueue.attributes.js @@ -1 +1 @@ -const a663_0x4746=['exports','sequelize','INTEGER'];(function(_0x4f7d6a,_0x4746b7){const _0x310edc=function(_0x119aff){while(--_0x119aff){_0x4f7d6a['push'](_0x4f7d6a['shift']());}};_0x310edc(++_0x4746b7);}(a663_0x4746,0xd4));const a663_0x310e=function(_0x4f7d6a,_0x4746b7){_0x4f7d6a=_0x4f7d6a-0x0;let _0x310edc=a663_0x4746[_0x4f7d6a];return _0x310edc;};const _0x14bd39=a663_0x310e;'use strict';const Sequelize=require(_0x14bd39('0x2'));module[_0x14bd39('0x1')]={'penalty':{'type':Sequelize[_0x14bd39('0x0')],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/userOpenchannelQueue/userOpenchannelQueue.model.js b/server/api/userOpenchannelQueue/userOpenchannelQueue.model.js index 73eda1d..1c37bf6 100644 --- a/server/api/userOpenchannelQueue/userOpenchannelQueue.model.js +++ b/server/api/userOpenchannelQueue/userOpenchannelQueue.model.js @@ -1 +1 @@ -const a664_0x29f5=['define','exports','./userOpenchannelQueue.attributes'];(function(_0x2b13e7,_0x29f56e){const _0xbd7236=function(_0xdcedd8){while(--_0xdcedd8){_0x2b13e7['push'](_0x2b13e7['shift']());}};_0xbd7236(++_0x29f56e);}(a664_0x29f5,0x10b));const a664_0xbd72=function(_0x2b13e7,_0x29f56e){_0x2b13e7=_0x2b13e7-0x0;let _0xbd7236=a664_0x29f5[_0x2b13e7];return _0xbd7236;};const _0xce0310=a664_0xbd72;'use strict';const attributes=require(_0xce0310('0x2'));module[_0xce0310('0x1')]=function(_0xdcedd8){const _0x2e6efe=_0xce0310,_0x14b6aa=_0xdcedd8[_0x2e6efe('0x0')]('UserOpenchannelQueue',attributes,{'tableName':'user_has_openchannel_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x14b6aa;}; \ No newline at end of file +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 diff --git a/server/api/userProfile/index.js b/server/api/userProfile/index.js index 6a77a3b..7b13f96 100644 --- a/server/api/userProfile/index.js +++ b/server/api/userProfile/index.js @@ -1 +1 @@ -const a665_0x2c4f=['get','/describe','/:id/sections','removeResources','isAuthenticated','/:id/resources','describe','/:id','Router','delete','/:id/clone','addSections','exports','index','getSections','show','post','removeSections','clone'];(function(_0x39bde9,_0x2c4f10){const _0x41437a=function(_0x541aa0){while(--_0x541aa0){_0x39bde9['push'](_0x39bde9['shift']());}};_0x41437a(++_0x2c4f10);}(a665_0x2c4f,0x14e));const a665_0x4143=function(_0x39bde9,_0x2c4f10){_0x39bde9=_0x39bde9-0x0;let _0x41437a=a665_0x2c4f[_0x39bde9];return _0x41437a;};const _0x498bc7=a665_0x4143;'use strict';const express=require('express'),router=express[_0x498bc7('0x10')](),auth=require('../../components/auth/service'),controller=require('./userProfile.controller');router[_0x498bc7('0x8')]('/',auth[_0x498bc7('0xc')](),controller[_0x498bc7('0x2')]),router[_0x498bc7('0x8')](_0x498bc7('0x9'),auth['isAuthenticated'](),controller[_0x498bc7('0xe')]),router[_0x498bc7('0x8')](_0x498bc7('0xf'),auth[_0x498bc7('0xc')](),controller[_0x498bc7('0x4')]),router[_0x498bc7('0x8')]('/:id/sections',auth['isAuthenticated'](),controller[_0x498bc7('0x3')]),router[_0x498bc7('0x8')]('/:id/resources',auth[_0x498bc7('0xc')](),controller['getResources']),router[_0x498bc7('0x5')]('/',auth[_0x498bc7('0xc')](),controller['create']),router[_0x498bc7('0x5')](_0x498bc7('0x12'),auth[_0x498bc7('0xc')](),controller[_0x498bc7('0x7')]),router[_0x498bc7('0x5')](_0x498bc7('0xa'),auth[_0x498bc7('0xc')](),controller[_0x498bc7('0x0')]),router['post']('/:id/resources',auth[_0x498bc7('0xc')](),controller['addResources']),router['put'](_0x498bc7('0xf'),auth[_0x498bc7('0xc')](),controller['update']),router['delete'](_0x498bc7('0xf'),auth[_0x498bc7('0xc')](),controller['destroy']),router[_0x498bc7('0x11')](_0x498bc7('0xa'),auth[_0x498bc7('0xc')](),controller[_0x498bc7('0x6')]),router[_0x498bc7('0x11')](_0x498bc7('0xd'),auth[_0x498bc7('0xc')](),controller[_0x498bc7('0xb')]),module[_0x498bc7('0x1')]=router; \ No newline at end of file +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 diff --git a/server/api/userProfile/userProfile.attributes.js b/server/api/userProfile/userProfile.attributes.js index e33708d..ba1af13 100644 --- a/server/api/userProfile/userProfile.attributes.js +++ b/server/api/userProfile/userProfile.attributes.js @@ -1 +1 @@ -const a666_0x5d03=['name','crudPermissions','exports','split','getDataValue','STRING'];(function(_0x58046e,_0x5d03f7){const _0x2a24f6=function(_0x397f6b){while(--_0x397f6b){_0x58046e['push'](_0x58046e['shift']());}};_0x2a24f6(++_0x5d03f7);}(a666_0x5d03,0xa1));const a666_0x2a24=function(_0x58046e,_0x5d03f7){_0x58046e=_0x58046e-0x0;let _0x2a24f6=a666_0x5d03[_0x58046e];return _0x2a24f6;};const _0x3afd42=a666_0x2a24;'use strict';const Sequelize=require('sequelize');module[_0x3afd42('0x3')]={'name':{'type':Sequelize[_0x3afd42('0x0')],'allowNull':![],'unique':_0x3afd42('0x1')},'crudPermissions':{'type':Sequelize[_0x3afd42('0x0')],'set':function(_0x397f6b){const _0x34733=_0x3afd42;this['setDataValue'](_0x34733('0x2'),_0x397f6b?_0x397f6b['join'](''):[]);},'get':function(){const _0x587cb1=_0x3afd42;return this[_0x587cb1('0x5')](_0x587cb1('0x2'))?this[_0x587cb1('0x5')]('crudPermissions')[_0x587cb1('0x4')](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':Sequelize[_0x3afd42('0x0')],'allowNull':!![]}}; \ No newline at end of file +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 diff --git a/server/api/userProfile/userProfile.controller.js b/server/api/userProfile/userProfile.controller.js index 3f74e6d..9f53f3a 100644 --- a/server/api/userProfile/userProfile.controller.js +++ b/server/api/userProfile/userProfile.controller.js @@ -1 +1 @@ -const a667_0x33db=['childModel','custom','WhatsappAccount','ListId','field','ZendeskAccount','foreignKey','findAll','offset','sort','where','users','type','SmsAccount','destroy','reportId','includeAll','VoiceContext','role','removeResources','projects','getSections','UserProfileSection','fields','options','Disposition','projectName','parentSections','Variable','VIRTUAL','Reports','trunks','forEach','WhatsappQueue','Unknown\x20section','count','subsections','CmCustomField','SquareProject','deskaccounts','Schedule','then','createdAt','../../mysqldb','tag','SquareOdbc','voicerecordings','voicequeues','VoiceQueue','metrics','UserProfile','mailsubstatuses','includes','VoiceQueues','transaction','telephone','Users','omit','teams','isEmpty','lists','update','chanspies','toLowerCase','stack','Interval','UserProfileResource','chatqueues','customdashboards','CmContact','color','pick','Sequelize','status','key','plugins','AnalyticExtractedReport','include','whatsappaccounts','Campaign','getResources','rows','Tags','order','push','odbc','tags','addSections','VoiceRecording','all','ids','Dashboard','union','CmCompany','telephones','smsaccounts','associatedResources','user','find','VoiceExtension','Trunk','FreshdeskAccount','ChatQueue','each','../../config/logger','mailaccounts','reportType','../../rediscache','variables','salesforceaccounts','model','Agents','SmsQueue','cannedanswers','contexts','OpenchannelQueue','and','params','catch','outboundroutes','Team','keys','templates','bulkCreate','DefaultReports','AnalyticMetric','removeSections','CannedAnswer','ignore','attributes','membername','error','json','nolimit','sendStatus','set','like','MailQueue','scheduler','merge','crudPermissions','Tag','intervals','ValidationError','inbound','companies','admin','SalesforceAccount','chatwebsites','FaxQueue','Resources','rawAttributes','limit','Plugin','DeskAccount','fieldName','length','intersection','filter','QueueCampaigns','default','Template','mailqueues','zohoaccounts','Invalid\x20section\x20\x27','userProfileId','describe','triggers','Sound','register','sectionId','value','Trigger','SquareRecording','filters','end','../../components/parsers/qs','Content-Range','map','VoiceMail','index','name','faxaccounts','body','ivrcampaigns','voiceprefixes','User','ChatWebsite','globalcustomfields','JscriptyProject','CmList','query','pauses','outbound','SugarcrmAccount','queue','freshdeskaccounts','section','faxqueues','autoAssociation','api','./userProfile.socket','musiconholds','get','Telephones','findOne','mergeResources','VoiceMusicOnHold','enabled','create','contacts','send','sequelize','show','undefined','updatedAt','resourceId'];(function(_0x2954d5,_0x33dbdc){const _0x41a8fc=function(_0x387bd5){while(--_0x387bd5){_0x2954d5['push'](_0x2954d5['shift']());}};_0x41a8fc(++_0x33dbdc);}(a667_0x33db,0x1d6));const a667_0x41a8=function(_0x2954d5,_0x33dbdc){_0x2954d5=_0x2954d5-0x0;let _0x41a8fc=a667_0x33db[_0x2954d5];return _0x41a8fc;};const _0x6c3579=a667_0x41a8;'use strict';const _=require('lodash'),qs=require(_0x6c3579('0x8c')),logger=require(_0x6c3579('0x44'))(_0x6c3579('0xa4')),{getSocket}=require(_0x6c3579('0x47')),socket=getSocket(),db=require(_0x6c3579('0x7'))['db'],{Op}=require(_0x6c3579('0xb0'));require(_0x6c3579('0xa5'))[_0x6c3579('0x85')](socket);function respondWithStatusCode(_0x387bd5,_0xc1078e){return _0xc1078e=_0xc1078e||0xcc,function(_0x51d886){const _0x4087bd=a667_0x41a8;if(_0x51d886)return _0x387bd5[_0x4087bd('0x62')](_0xc1078e);return _0x387bd5['status'](_0xc1078e)[_0x4087bd('0x8b')]();};}function respondWithResult(_0x2cb0f6,_0x46dd3d){return _0x46dd3d=_0x46dd3d||0xc8,function(_0x1ee3ff){const _0x478b38=a667_0x41a8;if(_0x1ee3ff)return _0x2cb0f6[_0x478b38('0x25')](_0x46dd3d)[_0x478b38('0x60')](_0x1ee3ff);};}function respondWithFilteredResult(_0x43bb60,_0x1e0268){return function(_0x3be510){const _0x31dfe9=a667_0x41a8;if(_0x3be510){const _0x14989d=_0x3be510[_0x31dfe9('0xd8')],_0x376646=_0x1e0268['offset'];let _0xe0d996=_0x1e0268['offset']+_0x1e0268[_0x31dfe9('0x74')],_0x2411be;return _0xe0d996>=_0x14989d?(_0xe0d996=_0x14989d,_0x2411be=0xc8):_0x2411be=0xce,_0x43bb60[_0x31dfe9('0x25')](_0x2411be),_0x43bb60[_0x31dfe9('0x63')](_0x31dfe9('0x8d'),_0x376646+'-'+_0xe0d996+'/'+_0x14989d)[_0x31dfe9('0x60')](_0x3be510);}return null;};}function saveUpdates(_0x1b6741){return function(_0x4382e1){const _0x35688b=a667_0x41a8;if(_0x4382e1)return _0x4382e1[_0x35688b('0x19')](_0x1b6741)[_0x35688b('0x5')](function(_0x19d5dc){return _0x19d5dc;});return null;};}function removeEntity(_0x31f4e7){return function(_0x2406ad){const _0x455603=a667_0x41a8;if(_0x2406ad)return _0x2406ad[_0x455603('0xc3')]()['then'](function(){const _0x1f9069=_0x455603;_0x31f4e7[_0x1f9069('0x25')](0xcc)[_0x1f9069('0x8b')]();});};}function handleEntityNotFound(_0x25bf08){return function(_0x1af2e8){const _0x35b374=a667_0x41a8;return!_0x1af2e8&&_0x25bf08[_0x35b374('0x62')](0x194),_0x1af2e8;};}function handleError(_0x2d7c7b,_0x1d5907){return _0x1d5907=_0x1d5907||0x1f4,function(_0x13d143){const _0x3bd7d8=a667_0x41a8;logger[_0x3bd7d8('0x5f')](_0x13d143[_0x3bd7d8('0x1c')]),_0x13d143[_0x3bd7d8('0x91')]&&delete _0x13d143[_0x3bd7d8('0x91')],_0x2d7c7b[_0x3bd7d8('0x25')](_0x1d5907)[_0x3bd7d8('0xaf')](_0x13d143);};}exports[_0x6c3579('0x90')]=function(_0x40b834,_0x475613){const _0x11959a=_0x6c3579;let _0x179889={};const _0x596fb9={},_0x2157a0={'count':0x0,'rows':[]},_0x73d25d=_[_0x11959a('0x8e')](db[_0x11959a('0xe')][_0x11959a('0x73')],function(_0x4758af){const _0x5e13c3=_0x11959a;return{'name':_0x4758af[_0x5e13c3('0x77')],'type':_0x4758af[_0x5e13c3('0xc1')]['key']};});_0x596fb9[_0x11959a('0x4a')]=_['map'](_0x73d25d,_0x11959a('0x91')),_0x596fb9['query']=_[_0x11959a('0x55')](_0x40b834[_0x11959a('0x9b')]),_0x596fb9['filters']=_[_0x11959a('0x79')](_0x596fb9[_0x11959a('0x4a')],_0x596fb9[_0x11959a('0x9b')]),_0x179889[_0x11959a('0x5d')]=_['intersection'](_0x596fb9[_0x11959a('0x4a')],qs['fields'](_0x40b834['query']['fields'])),_0x179889[_0x11959a('0x5d')]=_0x179889[_0x11959a('0x5d')][_0x11959a('0x78')]?_0x179889[_0x11959a('0x5d')]:_0x596fb9['model'];typeof _0x40b834[_0x11959a('0x9b')][_0x11959a('0x61')]===_0x11959a('0xb2')&&(_0x179889[_0x11959a('0x74')]=qs[_0x11959a('0x74')](_0x40b834[_0x11959a('0x9b')]['limit']),_0x179889[_0x11959a('0xbd')]=qs['offset'](_0x40b834[_0x11959a('0x9b')]['offset']));_0x179889[_0x11959a('0x2f')]=qs[_0x11959a('0xbe')](_0x40b834[_0x11959a('0x9b')][_0x11959a('0xbe')]),_0x179889['where']=qs[_0x11959a('0x8a')](_[_0x11959a('0x23')](_0x40b834[_0x11959a('0x9b')],_0x596fb9[_0x11959a('0x8a')]),_0x73d25d);_0x40b834[_0x11959a('0x9b')]['filter']&&(_0x179889[_0x11959a('0xbf')]=_[_0x11959a('0x67')](_0x179889['where'],{[Op['or']]:_['map'](_0x73d25d,function(_0x4bd839){const _0x524af9=_0x11959a;if(_0x4bd839[_0x524af9('0xc1')]!==_0x524af9('0xd2')){const _0x3aeb10={};return _0x3aeb10[_0x4bd839[_0x524af9('0x91')]]={[Op[_0x524af9('0x64')]]:'%'+_0x40b834[_0x524af9('0x9b')][_0x524af9('0x7a')]+'%'},_0x3aeb10;}})}));_0x179889=_[_0x11959a('0x67')]({},_0x179889,_0x40b834[_0x11959a('0xcd')]);const _0x4ce516={'where':_0x179889[_0x11959a('0xbf')]};return db[_0x11959a('0xe')][_0x11959a('0xd8')](_0x4ce516)[_0x11959a('0x5')](function(_0x456bf1){const _0x119188=_0x11959a;return _0x2157a0[_0x119188('0xd8')]=_0x456bf1,_0x40b834[_0x119188('0x9b')][_0x119188('0xc5')]&&(_0x179889[_0x119188('0x29')]=[{'all':!![]}]),db['UserProfile']['findAll'](_0x179889);})[_0x11959a('0x5')](function(_0x120957){const _0x21e8c6=_0x11959a;return _0x2157a0[_0x21e8c6('0x2d')]=_0x120957,_0x2157a0;})['then'](respondWithFilteredResult(_0x475613,_0x179889))['catch'](handleError(_0x475613,null));},exports[_0x6c3579('0xb1')]=function(_0xda836c,_0x5764eb){const _0x1ebc30=_0x6c3579;let _0x8f25ce={'raw':![],'where':{'id':_0xda836c[_0x1ebc30('0x51')]['id']}};const _0x2eca21={};return _0x2eca21[_0x1ebc30('0x4a')]=_[_0x1ebc30('0x55')](db[_0x1ebc30('0xe')][_0x1ebc30('0x73')]),_0x2eca21[_0x1ebc30('0x9b')]=_[_0x1ebc30('0x55')](_0xda836c['query']),_0x2eca21[_0x1ebc30('0x8a')]=_[_0x1ebc30('0x79')](_0x2eca21[_0x1ebc30('0x4a')],_0x2eca21['query']),_0x8f25ce[_0x1ebc30('0x5d')]=_[_0x1ebc30('0x79')](_0x2eca21[_0x1ebc30('0x4a')],qs[_0x1ebc30('0xcc')](_0xda836c['query'][_0x1ebc30('0xcc')])),_0x8f25ce[_0x1ebc30('0x5d')]=_0x8f25ce[_0x1ebc30('0x5d')][_0x1ebc30('0x78')]?_0x8f25ce[_0x1ebc30('0x5d')]:_0x2eca21[_0x1ebc30('0x4a')],_0xda836c['query'][_0x1ebc30('0xc5')]&&(_0x8f25ce['include']=[{'all':!![]}]),_0x8f25ce=_['merge']({},_0x8f25ce,_0xda836c[_0x1ebc30('0xcd')]),db[_0x1ebc30('0xe')][_0x1ebc30('0xa9')](_0x8f25ce)[_0x1ebc30('0x5')](handleEntityNotFound(_0x5764eb))['then'](respondWithResult(_0x5764eb,null))[_0x1ebc30('0x52')](handleError(_0x5764eb,null));},exports[_0x6c3579('0xad')]=function(_0xa671ca,_0x227e17){const _0x2dfb41=_0x6c3579;return db['UserProfile']['create'](_0xa671ca[_0x2dfb41('0x93')],{})[_0x2dfb41('0x5')](respondWithResult(_0x227e17,0xc9))[_0x2dfb41('0x52')](handleError(_0x227e17,null));},exports['clone']=function(_0x158486,_0x57a6d7){const _0x1e43dc=_0x6c3579;let _0x10677a={'where':{'id':_0x158486[_0x1e43dc('0x51')]['id']}};const _0xc696d={};return _0xc696d['model']=_[_0x1e43dc('0x55')](db['UserProfile'][_0x1e43dc('0x73')]),_0x10677a[_0x1e43dc('0x5d')]=_['intersection'](_0xc696d[_0x1e43dc('0x4a')],qs[_0x1e43dc('0xcc')](_0x158486[_0x1e43dc('0x9b')][_0x1e43dc('0xcc')])),_0x10677a['attributes']=_0x10677a[_0x1e43dc('0x5d')][_0x1e43dc('0x78')]?_0x10677a[_0x1e43dc('0x5d')]:_0xc696d[_0x1e43dc('0x4a')],_0x158486['query']['includeAll']&&(_0x10677a['include']=[{'all':!![]}]),_0x10677a=_[_0x1e43dc('0x67')]({},_0x10677a,_0x158486[_0x1e43dc('0xcd')]),db['UserProfile'][_0x1e43dc('0xa9')](_0x10677a)[_0x1e43dc('0x5')](handleEntityNotFound(_0x57a6d7))[_0x1e43dc('0x5')](function(_0x1e1b3c){const _0x103f7d=_0x1e43dc;if(_0x1e1b3c){let _0x2f4d2a=_0x1e1b3c[_0x103f7d('0xa7')]({'plain':!![]});return _0x2f4d2a=qs[_0x103f7d('0x15')](_0x2f4d2a,['id','createdAt',_0x103f7d('0xb3'),_0x103f7d('0x68')]),_0x158486[_0x103f7d('0x93')]=_[_0x103f7d('0x15')](_0x158486[_0x103f7d('0x93')],['id',_0x103f7d('0x6'),_0x103f7d('0xb3')]),db[_0x103f7d('0xb0')][_0x103f7d('0x12')](function(_0x344739){const _0x126902=_0x103f7d;return db[_0x126902('0xe')][_0x126902('0xad')](_['merge'](_0x2f4d2a,_0x158486[_0x126902('0x93')]),{'include':_0x158486[_0x126902('0x9b')][_0x126902('0xc5')]?[{'all':!![]}]:undefined,'transaction':_0x344739})[_0x126902('0x5')](function(_0x3abb89){const _0x4c0751=_0x126902,_0x2e563d=_0x3abb89[_0x4c0751('0xa7')]({'plain':!![]});return db['UserProfileSection'][_0x4c0751('0xbc')]({'where':{'userProfileId':_0x158486['params']['id']},'raw':!![]})[_0x4c0751('0x5')](function(_0x572e76){const _0x412cf1=_0x4c0751;if(_0x572e76)return Promise[_0x412cf1('0x43')](_0x572e76,function(_0x24da6d){return new Promise(function(_0xef6d3c,_0x1c55db){const _0x4f8563=a667_0x41a8;if(_0x24da6d[_0x4f8563('0xa3')]===null||_0x24da6d[_0x4f8563('0xa3')]===0x1)_0xef6d3c(null);return db[_0x4f8563('0x1e')][_0x4f8563('0xbc')]({'where':{'sectionId':_0x24da6d['id']},'raw':!![]})[_0x4f8563('0x5')](function(_0x348919){const _0x494ed3=_0x4f8563,_0x453e22=_[_0x494ed3('0x8e')](_0x348919,function(_0x49b06a){const _0x511a83=_0x494ed3;return qs[_0x511a83('0x15')](_0x49b06a,['id',_0x511a83('0x6'),_0x511a83('0xb3'),_0x511a83('0x86')]);});_0xef6d3c(_0x453e22);})[_0x4f8563('0x52')](function(_0x420898){_0x1c55db(_0x420898);});})['then'](function(_0x187190){const _0x446115=a667_0x41a8,_0x27008c=qs[_0x446115('0x15')](_0x24da6d,['id','createdAt',_0x446115('0xb3')]);_0x27008c[_0x446115('0x81')]=_0x2e563d['id'];if(_0x187190)_0x27008c['Resources']=_0x187190;return _0x27008c;})['then'](function(_0x5f3466){const _0x24ff7a=a667_0x41a8;return db['UserProfileSection'][_0x24ff7a('0xad')](_0x5f3466,{'include':[{'model':db[_0x24ff7a('0x1e')],'as':_0x24ff7a('0x72')}],'raw':!![],'transaction':_0x344739});});})[_0x412cf1('0x5')](function(){return _0x2e563d;});});});});}})[_0x1e43dc('0x5')](respondWithResult(_0x57a6d7,0xc9))[_0x1e43dc('0x52')](handleError(_0x57a6d7,null));},exports[_0x6c3579('0x19')]=function(_0x367525,_0x19136c){const _0x30baf2=_0x6c3579;return _0x367525[_0x30baf2('0x93')]['id']&&delete _0x367525[_0x30baf2('0x93')]['id'],db[_0x30baf2('0xe')][_0x30baf2('0xa9')]({'where':{'id':_0x367525[_0x30baf2('0x51')]['id']}})['then'](handleEntityNotFound(_0x19136c))['then'](saveUpdates(_0x367525[_0x30baf2('0x93')],null))[_0x30baf2('0x5')](respondWithResult(_0x19136c,null))[_0x30baf2('0x52')](handleError(_0x19136c,null));},exports[_0x6c3579('0xc3')]=function(_0x1df10a,_0xdef9cc){const _0x1e4f84=_0x6c3579;return db[_0x1e4f84('0xe')][_0x1e4f84('0xa9')]({'where':{'id':_0x1df10a['params']['id']}})['then'](handleEntityNotFound(_0xdef9cc))[_0x1e4f84('0x5')](removeEntity(_0xdef9cc,null))['catch'](handleError(_0xdef9cc,null));},exports['describe']=function(_0x14028e,_0x4a3dee){const _0x302d1a=_0x6c3579;return db['UserProfile'][_0x302d1a('0x82')]()[_0x302d1a('0x5')](respondWithResult(_0x4a3dee,null))['catch'](handleError(_0x4a3dee,null));},exports[_0x6c3579('0x33')]=function(_0x43cf9b,_0x33c3a9){const _0x8f5e3a=_0x6c3579,_0xa8049=_0x43cf9b[_0x8f5e3a('0x93')];return db[_0x8f5e3a('0xe')]['findOne']({'where':{'id':_0x43cf9b[_0x8f5e3a('0x51')]['id']}})[_0x8f5e3a('0x5')](handleEntityNotFound(_0x33c3a9))[_0x8f5e3a('0x5')](function(_0x561480){const _0x1f6049=_0x8f5e3a;if(_0x561480)return db[_0x1f6049('0xb0')]['transaction'](function(_0x26f1b2){const _0x4945e8=_0x1f6049;return db[_0x4945e8('0xcb')][_0x4945e8('0xc3')]({'where':{'userProfileId':_0x43cf9b['params']['id'],'sectionId':_['map'](_0xa8049,function(_0x5960bb){return _0x5960bb['sectionId'];})},'transaction':_0x26f1b2})[_0x4945e8('0x5')](function(){const _0x42c624=_0x4945e8,_0x392e07=_[_0x42c624('0x8e')](_0xa8049,function(_0x213eac){const _0x293507=_0x42c624;return _0x213eac['userProfileId']=_0x43cf9b[_0x293507('0x51')]['id'],_0x213eac;}),_0x52a0a6=[];return Promise[_0x42c624('0x43')](_0x392e07,function(_0xa8003c){const _0x3001e6=_0x42c624;return db['UserProfileSection'][_0x3001e6('0xad')](_0xa8003c,{'include':[{'model':db[_0x3001e6('0x1e')],'as':_0x3001e6('0x72')}],'raw':!![],'transaction':_0x26f1b2})[_0x3001e6('0x5')](function(_0x586f0f){_0x52a0a6['push'](_0x586f0f['get']({'plain':!![]}));});})[_0x42c624('0x5')](function(){return _0x52a0a6;});});});})[_0x8f5e3a('0x5')](function(_0x829ffd){return _0x829ffd;})[_0x8f5e3a('0x5')](respondWithResult(_0x33c3a9,null))['catch'](handleError(_0x33c3a9,null));},exports[_0x6c3579('0x5a')]=function(_0x524a02,_0x44c8b2){const _0x25bcd2=_0x6c3579;let _0x52bc71;return db[_0x25bcd2('0xe')][_0x25bcd2('0xa9')]({'where':{'id':_0x524a02[_0x25bcd2('0x51')]['id']},'attributes':['id',_0x25bcd2('0x91')]})[_0x25bcd2('0x5')](handleEntityNotFound(_0x44c8b2))[_0x25bcd2('0x5')](function(_0x3986a2){const _0x55a551=_0x25bcd2;if(_0x3986a2)return _0x52bc71=_0x3986a2,db['UserProfileSection'][_0x55a551('0xc3')]({'where':{'userProfileId':_0x524a02[_0x55a551('0x51')]['id'],'sectionId':_0x524a02['query'][_0x55a551('0x36')]}});})['then'](function(){return _0x52bc71;})[_0x25bcd2('0x5')](respondWithStatusCode(_0x44c8b2,null))[_0x25bcd2('0x52')](handleError(_0x44c8b2,null));},exports[_0x6c3579('0xca')]=function(_0x360361,_0x2ba9a0){const _0x1241c8=_0x6c3579;let _0x6b367c=[],_0x796467=[];return db[_0x1241c8('0xcb')][_0x1241c8('0xbc')]({'where':{'userProfileId':_0x360361['params']['id']},'raw':!![]})[_0x1241c8('0x5')](function(_0x560062){const _0x3187eb=_0x1241c8;_0x6b367c=_['filter'](_0x560062,function(_0x38eff0){const _0x2d83c8=a667_0x41a8;return _0x38eff0['enabled']===0x1||_[_0x2d83c8('0x10')]([0x3eb,0x709],_0x38eff0[_0x2d83c8('0x86')]);});if(!_[_0x3187eb('0x17')](_0x6b367c))return _[_0x3187eb('0x8e')](_0x6b367c,function(_0x9f79b9){const _0x3d7bf4=_0x3187eb;return _0x9f79b9[_0x3d7bf4('0x86')];});else return;})[_0x1241c8('0x5')](function(_0x28cda3){const _0x2f8723=_0x1241c8;if(_0x28cda3)_0x796467=_0x28cda3;if(_['includes'](_0x796467,0x64)){const _0x1f3e1d=_[_0x2f8723('0x3e')](_0x6b367c,{'sectionId':0x64});return hasDefaultDashboard(_0x1f3e1d)[_0x2f8723('0x5')](function(_0x4854f3){const _0xca0fb1=_0x2f8723;return _[_0xca0fb1('0x8e')](_0x6b367c,function(_0x19c7e6){const _0x53d130=_0xca0fb1;return _0x19c7e6['sectionId']===0x64&&(_0x19c7e6[_0x53d130('0x0')]=_0x4854f3),_0x19c7e6;});});}else return;})[_0x1241c8('0x5')](function(_0x53121f){const _0x438461=_0x1241c8;if(_0x53121f)_0x6b367c=_0x53121f;if(_[_0x438461('0x10')](_0x796467,0x3eb)){const _0x106f61=_['find'](_0x6b367c,{'sectionId':0x3eb});return getCustomDashboards(_0x106f61)['then'](function(_0x3887a7){return _['map'](_0x6b367c,function(_0x3f10aa){const _0xe2a256=a667_0x41a8;return _0x106f61['enabled']?_0x3f10aa[_0xe2a256('0x86')]===0x3eb&&(_0x3f10aa[_0xe2a256('0x0')]=_0x3887a7):_0x3f10aa['sectionId']===0x64&&(_0x3f10aa[_0xe2a256('0x0')]=_0x3887a7),_0x3f10aa;});});}else return;})[_0x1241c8('0x5')](function(_0x5d2950){const _0x215e8a=_0x1241c8;if(_0x5d2950)_0x6b367c=_0x5d2950;if(_[_0x215e8a('0x10')](_0x796467,0x709)){const _0x3d6e87=_['find'](_0x6b367c,{'sectionId':0x709});return getPlugins(_0x3d6e87)['then'](function(_0x5d0384){const _0x44dc2f=_0x215e8a;if(_0x3d6e87[_0x44dc2f('0xac')])return _[_0x44dc2f('0x8e')](_0x6b367c,function(_0x2fb683){const _0x4620e7=_0x44dc2f;return _0x2fb683[_0x4620e7('0x86')]===0x709&&(_0x2fb683[_0x4620e7('0x0')]=_0x5d0384),_0x2fb683;});else{const _0x4aab6f={'sectionId':0x76c,'enabled':0x1,'subsections':_0x5d0384},_0x435b39=_[_0x44dc2f('0x8e')](_0x6b367c);return _0x435b39[_0x44dc2f('0x30')](_0x4aab6f),_0x435b39;}});}else return;})['then'](function(_0x5d1e57){const _0x7a92b3=_0x1241c8;if(_0x5d1e57)_0x6b367c=_0x5d1e57;return _[_0x7a92b3('0x7a')](_0x6b367c,[_0x7a92b3('0xac'),0x1]);})[_0x1241c8('0x5')](respondWithResult(_0x2ba9a0,null))[_0x1241c8('0x52')](handleError(_0x2ba9a0,null));};function hasDefaultDashboard(_0x1b6806){const _0x45be16=[0x65];return new Promise(function(_0x26dda5,_0xd1f84f){const _0x103cb5=a667_0x41a8;try{if(_0x1b6806[_0x103cb5('0xa3')])_0x26dda5(_0x45be16);else return db[_0x103cb5('0x1e')][_0x103cb5('0xa9')]({'where':{'sectionId':_0x1b6806['id']},'raw':!![]})[_0x103cb5('0x5')](function(_0x4b7ab1){_0x4b7ab1?_0x26dda5(_0x45be16):_0x26dda5();});}catch(_0x12a0ff){_0xd1f84f(_0x12a0ff);}});}function getCustomDashboards(_0x2b3498){const _0x19b801=[];return new Promise(function(_0x1d0e59,_0x3b68cb){const _0x23de7e=a667_0x41a8;try{return _0x2b3498['autoAssociation']?db[_0x23de7e('0x37')][_0x23de7e('0xbc')]({'raw':!![]})[_0x23de7e('0x5')](function(_0x4b7a44){const _0x57edd9=_0x23de7e;_0x4b7a44[_0x57edd9('0xd5')](function(_0x53eb80){const _0x5ec44b=_0x57edd9;_0x19b801[_0x5ec44b('0x30')](_0x53eb80['id']+0x1869f);}),_0x1d0e59(_0x19b801);}):db[_0x23de7e('0x1e')][_0x23de7e('0xbc')]({'where':{'sectionId':_0x2b3498['id']},'raw':!![]})[_0x23de7e('0x5')](function(_0x55c1bf){const _0x213d91=_0x23de7e;_0x55c1bf[_0x213d91('0xd5')](function(_0x848706){const _0x47f51a=_0x213d91;_0x19b801[_0x47f51a('0x30')](_0x848706['resourceId']+0x1869f);}),_0x1d0e59(_0x19b801);});}catch(_0x2d78c4){_0x3b68cb(_0x2d78c4);}});}function getPlugins(_0x9f73c4){const _0x57d8f5=[];return new Promise(function(_0x3a1e9b,_0x26db82){const _0x45175c=a667_0x41a8;try{return _0x9f73c4[_0x45175c('0xa3')]?db['Plugin'][_0x45175c('0xbc')]({'raw':!![]})['then'](function(_0x242ef7){_0x242ef7['forEach'](function(_0x3b1e48){const _0x3a961f=a667_0x41a8;_0x57d8f5[_0x3a961f('0x30')](_0x3b1e48['id']+0x15b38);}),_0x3a1e9b(_0x57d8f5);}):db['UserProfileResource'][_0x45175c('0xbc')]({'where':{'sectionId':_0x9f73c4['id']},'raw':!![]})[_0x45175c('0x5')](function(_0x1ba50b){const _0x16e5d1=_0x45175c;_0x1ba50b[_0x16e5d1('0xd5')](function(_0x36adde){const _0x1c42ae=_0x16e5d1;_0x57d8f5[_0x1c42ae('0x30')](_0x36adde[_0x1c42ae('0xb4')]+0x15b38);}),_0x3a1e9b(_0x57d8f5);});}catch(_0x5f3758){_0x26db82(_0x5f3758);}});}exports['addResources']=function(_0x1e31b1,_0x42a0c9){const _0x40f283=_0x6c3579;return db['UserProfile']['findOne']({'where':{'id':_0x1e31b1[_0x40f283('0x51')]['id']}})[_0x40f283('0x5')](handleEntityNotFound(_0x42a0c9))[_0x40f283('0x5')](function(_0x4deec1){const _0x5413e1=_0x40f283;if(_0x4deec1)return db['sequelize'][_0x5413e1('0x12')](function(_0x4e1218){const _0xb13b40=_0x5413e1;return db['UserProfileSection']['findAll']({'where':{'userProfileId':_0x1e31b1[_0xb13b40('0x51')]['id']},'attributes':['id'],'raw':!![]})['then'](function(_0x5110f7){const _0x398a38=_0xb13b40;if(_0x5110f7)return db['UserProfileSection'][_0x398a38('0xc3')]({'where':{'userProfileId':_0x1e31b1[_0x398a38('0x51')]['id'],'id':_[_0x398a38('0x8e')](_0x5110f7,function(_0x18b2a4){return _0x18b2a4['id'];})},'transaction':_0x4e1218});})[_0xb13b40('0x5')](function(){const _0x3ebd01=_0xb13b40,_0x1f91ba=_[_0x3ebd01('0x8e')](_0x1e31b1['body'],function(_0x385f65){const _0x501071=_0x3ebd01;return _0x385f65[_0x501071('0x81')]=_0x1e31b1[_0x501071('0x51')]['id'],_0x385f65;});return db[_0x3ebd01('0xcb')][_0x3ebd01('0x57')](_0x1f91ba,{'raw':!![],'transaction':_0x4e1218});})['then'](function(_0x21cb87){const _0x41b982=_0xb13b40,_0xbda51c=_[_0x41b982('0x7a')](_[_0x41b982('0x8e')](_0x21cb87,function(_0x43fe05){const _0x41ef1f=_0x41b982;return _0x43fe05[_0x41ef1f('0xa7')]({'plain':!![]});}),{'includeAll':![]});if(_0xbda51c)return db[_0x41b982('0xcb')][_0x41b982('0xbc')]({'where':{'userProfileId':_0x1e31b1[_0x41b982('0x51')]['id'],'sectionId':_['map'](_0xbda51c,function(_0x1ddefa){const _0x464943=_0x41b982;return _0x1ddefa[_0x464943('0x86')];})},'attributes':['id',_0x41b982('0x86')],'raw':!![]})[_0x41b982('0x5')](function(){const _0x2c3595=_0x41b982,_0x5d5fa6=_[_0x2c3595('0x8e')](_0x1e31b1[_0x2c3595('0x93')],function(_0x2b48cb){const _0x322d32=_0x2c3595;return _0x2b48cb[_0x322d32('0x81')]=_0x1e31b1[_0x322d32('0x51')]['id'],_0x2b48cb;});return db[_0x2c3595('0x1e')][_0x2c3595('0x57')](_0x5d5fa6,{'raw':!![],'transaction':_0x4e1218});});})['catch'](handleError(_0x42a0c9,null));});})[_0x40f283('0x5')](function(){})['then'](respondWithResult(_0x42a0c9,null))['catch'](handleError(_0x42a0c9,null));},exports[_0x6c3579('0xc8')]=function(_0x59f951,_0x56eef2){const _0x3736e4=_0x6c3579;return db['UserProfile'][_0x3736e4('0xa9')]({'where':{'id':_0x59f951['params']['id']}})['then'](handleEntityNotFound(_0x56eef2))[_0x3736e4('0x5')](function(_0x582840){const _0x4e6163=_0x3736e4;if(_0x582840)return _0x582840[_0x4e6163('0xc8')](_0x59f951['query'][_0x4e6163('0x36')]);})[_0x3736e4('0x5')](respondWithStatusCode(_0x56eef2,null))[_0x3736e4('0x52')](handleError(_0x56eef2,null));},exports[_0x6c3579('0x2c')]=function(_0x450ab5,_0x5afa9c){const _0x2f15c6=_0x6c3579;let _0x126b7b={'raw':![],'where':{}};const _0x5446d5={},_0x343d77={'count':0x0,'rows':[]},_0x5452d9=_0x450ab5['query'][_0x2f15c6('0xa1')];if(typeof _0x5452d9===_0x2f15c6('0xb2'))throw new db[(_0x2f15c6('0x24'))][(_0x2f15c6('0x6b'))](_0x2f15c6('0xd7'));const _0xbc42e8=_0x450ab5[_0x2f15c6('0x9b')][_0x2f15c6('0xaa')]||![],_0x463a34=getQueryModels(_0x5452d9,_0xbc42e8);if(typeof _0x463a34['childModel']===_0x2f15c6('0xb2'))throw new db[(_0x2f15c6('0x24'))]['ValidationError'](_0x2f15c6('0x80')+_0x5452d9+'\x27');let _0xa922db=[];return!_[_0x2f15c6('0x17')](_0x463a34[_0x2f15c6('0xd0')])?_0xa922db=_0x463a34['parentSections']:_0xa922db=[{'name':_0x5452d9}],db[_0x2f15c6('0xe')][_0x2f15c6('0xa9')]({'where':{'id':_0x450ab5[_0x2f15c6('0x51')]['id']}})[_0x2f15c6('0x5')](handleEntityNotFound(_0x5afa9c))[_0x2f15c6('0x5')](function(_0x933ead){const _0x412582=_0x2f15c6;if(_0x933ead){const _0x794354=[];for(let _0x5cb40d=0x0;_0x5cb40d<_0xa922db['length'];_0x5cb40d++){_0x794354[_0x412582('0x30')](db[_0x412582('0xcb')][_0x412582('0xa9')]({'where':{'userProfileId':_0x933ead['id'],'name':_0xa922db[_0x5cb40d][_0x412582('0x91')]},'raw':!![]}));}return Promise[_0x412582('0x35')](_0x794354);}})['then'](function(_0x9ac165){const _0x213cb5=_0x2f15c6,_0x125f9d=_[_0x213cb5('0x7a')](_0x9ac165,function(_0x3f0eba){return _0x3f0eba?_0x3f0eba:undefined;}),_0x421a0e=_[_0x213cb5('0x7a')](_0xa922db,[_0x213cb5('0x5c'),!![]]),_0xcb8bea=_['isEmpty'](_0x125f9d)&&_[_0x213cb5('0x17')](_0x421a0e)?null:_[_0x213cb5('0x38')](_0x421a0e,_0x125f9d);if(_0xcb8bea){const _0x30e7d6=[];for(let _0x423dcc=0x0;_0x423dcc<_0xcb8bea[_0x213cb5('0x78')];_0x423dcc++){const _0x26f36e=_['find'](_0xa922db,function(_0x438ce1){const _0x5ee092=_0x213cb5;return _0xcb8bea[_0x423dcc]?_0x438ce1['name']===_0xcb8bea[_0x423dcc][_0x5ee092('0x91')]:null;});_0x26f36e&&(_0xcb8bea[_0x423dcc][_0x213cb5('0x5c')]?_0x30e7d6[_0x213cb5('0x30')](getAllResources(_0x463a34[_0x213cb5('0xb5')],_0xcb8bea[_0x423dcc])):!_0xcb8bea[_0x423dcc][_0x213cb5('0xa3')]?_0x30e7d6[_0x213cb5('0x30')](getAllowedResources(_0x26f36e,_0xcb8bea[_0x423dcc],_0x463a34[_0x213cb5('0xb5')])):_0x26f36e[_0x213cb5('0x4a')]&&_0x30e7d6['push'](getAllFilteredResources(_0x26f36e,_0xcb8bea[_0x423dcc])));}return Promise[_0x213cb5('0x35')](_0x30e7d6);}else return null;})[_0x2f15c6('0x5')](function(_0x1eb45d){const _0x4c10c4=_0x2f15c6,_0x83fd0e=_0x1eb45d;let _0x44e727=null;_0x83fd0e&&(_0x44e727=_0x83fd0e[_0x4c10c4('0x78')]===0x1?_0x83fd0e[0x0]:null);if(_0x44e727||_0x83fd0e){const _0x1acd28=db[_0x463a34[_0x4c10c4('0xb5')]]['rawAttributes'];_0x5446d5[_0x4c10c4('0x4a')]=_[_0x4c10c4('0x55')](_0x1acd28),_0x5446d5[_0x4c10c4('0x9b')]=_['keys'](_0x450ab5[_0x4c10c4('0x9b')]),_0x5446d5[_0x4c10c4('0x8a')]=_[_0x4c10c4('0x79')](_0x5446d5[_0x4c10c4('0x4a')],_0x5446d5[_0x4c10c4('0x9b')]),_0x126b7b[_0x4c10c4('0x5d')]=_[_0x4c10c4('0x79')](_0x5446d5['model'],qs['fields'](_0x450ab5['query'][_0x4c10c4('0xcc')])),_0x126b7b[_0x4c10c4('0x5d')]=_0x126b7b[_0x4c10c4('0x5d')][_0x4c10c4('0x78')]?_0x126b7b[_0x4c10c4('0x5d')]:_0x5446d5[_0x4c10c4('0x4a')];typeof _0x450ab5['query']['nolimit']==='undefined'&&(_0x126b7b[_0x4c10c4('0x74')]=qs[_0x4c10c4('0x74')](_0x450ab5['query'][_0x4c10c4('0x74')]),_0x126b7b[_0x4c10c4('0xbd')]=qs[_0x4c10c4('0xbd')](_0x450ab5[_0x4c10c4('0x9b')][_0x4c10c4('0xbd')]));_0x126b7b[_0x4c10c4('0x2f')]=qs[_0x4c10c4('0xbe')](_0x450ab5[_0x4c10c4('0x9b')][_0x4c10c4('0xbe')]),_0x126b7b[_0x4c10c4('0xbf')]=qs[_0x4c10c4('0x8a')](_[_0x4c10c4('0x23')](_0x450ab5[_0x4c10c4('0x9b')],_0x5446d5['filters']));_0x450ab5['query'][_0x4c10c4('0x7a')]&&(_0x126b7b['where']=_[_0x4c10c4('0x67')](_0x126b7b[_0x4c10c4('0xbf')],{[Op['or']]:_[_0x4c10c4('0x8e')](_0x1acd28,function(_0x211b8b){const _0x2623a3=_0x4c10c4;if(_0x211b8b[_0x2623a3('0xc1')][_0x2623a3('0x26')]!=='VIRTUAL'){const _0x298d9a={};return _0x298d9a[_0x211b8b[_0x2623a3('0xb9')]]={[Op[_0x2623a3('0x64')]]:'%'+_0x450ab5[_0x2623a3('0x9b')][_0x2623a3('0x7a')]+'%'},_0x298d9a;}})}));const _0x4246ec=[];if(_0x44e727){const _0x20d46f=_[_0x4c10c4('0x3e')](_0xa922db,[_0x4c10c4('0x91'),_0x44e727[_0x4c10c4('0x91')]]);if(_0x20d46f[_0x4c10c4('0xb9')]){const _0x5b43c8={};_0x463a34[_0x4c10c4('0xb5')]===_0x4c10c4('0x28')?_0x5b43c8[_0x20d46f[_0x4c10c4('0xbb')]]=_[_0x4c10c4('0x8e')](_0x44e727[_0x4c10c4('0x3c')],'id'):_0x5b43c8[_0x20d46f[_0x4c10c4('0xbb')]]=_0x44e727[_0x4c10c4('0x3c')],_0x4246ec[_0x4c10c4('0x30')](_0x5b43c8);}else _0x126b7b[_0x4c10c4('0xbf')]['id']=_0x44e727[_0x4c10c4('0x3c')];}else for(let _0x4f523f=0x0;_0x4f523f<_0x83fd0e[_0x4c10c4('0x78')];_0x4f523f++){const _0x345934=_[_0x4c10c4('0x3e')](_0xa922db,['name',_0x83fd0e[_0x4f523f]['name']]);if(_0x345934[_0x4c10c4('0xb9')]){const _0x3369ed={};_0x3369ed[_0x345934[_0x4c10c4('0xbb')]]=_0x83fd0e[_0x4f523f][_0x4c10c4('0x3c')],_0x4246ec[_0x4c10c4('0x30')](_0x3369ed);}else{if(!_0x126b7b[_0x4c10c4('0xbf')]['id'])_0x126b7b['where']['id']=[];_0x83fd0e[_0x4f523f]['associatedResources']['forEach'](function(_0x44b275){const _0x2068b9=_0x4c10c4;_0x126b7b['where']['id'][_0x2068b9('0x30')](_0x44b275);});}}return!_[_0x4c10c4('0x17')](_0x4246ec)&&(_0x126b7b[_0x4c10c4('0xbf')]=_[_0x4c10c4('0x67')](_0x126b7b[_0x4c10c4('0xbf')],{[Op[_0x4c10c4('0x50')]]:{[Op['or']]:_0x4246ec}})),_0x126b7b=_['merge']({},_0x126b7b,_0x450ab5[_0x4c10c4('0xcd')]),_0x44e727&&!_0x44e727[_0x4c10c4('0xa3')]&&_0x463a34[_0x4c10c4('0xb5')]==='AnalyticExtractedReport'?(_0x450ab5[_0x4c10c4('0x9b')][_0x4c10c4('0xc5')]&&(_0x126b7b[_0x4c10c4('0x29')]=[{'all':!![]}]),db[_0x463a34[_0x4c10c4('0xb5')]][_0x4c10c4('0xbc')](_0x126b7b)[_0x4c10c4('0x5')](function(_0x30d75c){const _0x1ddf30=_0x4c10c4,_0x4d5165=[];return _0x30d75c[_0x1ddf30('0xd5')](function(_0xa89f2f){const _0x4f01d0=_0x1ddf30;let _0x35f626;switch(_0xa89f2f[_0x4f01d0('0x46')]){case _0x4f01d0('0x7c'):_0x35f626=_[_0x4f01d0('0x3e')](_0x44e727[_0x4f01d0('0x3c')],function(_0x5cf7e5){const _0xd043d3=_0x4f01d0;return _0x5cf7e5['id']===_0xa89f2f[_0xd043d3('0xc4')]&&_0x5cf7e5['type']===_0xd043d3('0x58');});break;case _0x4f01d0('0xb6'):_0x35f626=_[_0x4f01d0('0x3e')](_0x44e727[_0x4f01d0('0x3c')],function(_0x1b8ff5){const _0x2e9570=_0x4f01d0;return _0x1b8ff5['id']===_0xa89f2f['reportId']&&_0x1b8ff5[_0x2e9570('0xc1')]==='CustomReports';});break;}if(_0x35f626)_0x4d5165[_0x4f01d0('0x30')](_0xa89f2f);}),_0x343d77[_0x1ddf30('0xd8')]=_0x4d5165['length'],_0x343d77[_0x1ddf30('0x2d')]=_0x4d5165,_0x343d77;})):db[_0x463a34['childModel']][_0x4c10c4('0xd8')]({'where':_0x126b7b[_0x4c10c4('0xbf')]})[_0x4c10c4('0x5')](function(_0xac9cd4){const _0x3656e3=_0x4c10c4;return _0x343d77[_0x3656e3('0xd8')]=_0xac9cd4,_0x450ab5[_0x3656e3('0x9b')][_0x3656e3('0xc5')]&&(_0x463a34[_0x3656e3('0xb5')]===_0x3656e3('0x21')?_0x126b7b[_0x3656e3('0x29')]=[{'model':db[_0x3656e3('0x69')],'as':_0x3656e3('0x2e'),'attributes':['id',_0x3656e3('0x91'),_0x3656e3('0x22')],'required':_0x450ab5['query'][_0x3656e3('0x8')]?!![]:![]},{'model':db[_0x3656e3('0x69')],'as':'ThroughTags','attributes':['id',_0x3656e3('0x91'),_0x3656e3('0x22')],'through':_0x450ab5['query'][_0x3656e3('0x8')]?{'attributes':[],'where':{'TagId':_0x450ab5[_0x3656e3('0x9b')][_0x3656e3('0x8')]||undefined}}:{},'required':_0x450ab5['query'][_0x3656e3('0x8')]?!![]:![]}]:_0x126b7b['include']=[{'all':!![]}]),db[_0x463a34[_0x3656e3('0xb5')]][_0x3656e3('0xbc')](_0x126b7b);})['then'](function(_0x2841f9){const _0x32985e=_0x4c10c4;return _0x343d77[_0x32985e('0x2d')]=_0x2841f9,_0x343d77;});}else return _0x343d77;})[_0x2f15c6('0x5')](respondWithFilteredResult(_0x5afa9c,_0x126b7b))['catch'](handleError(_0x5afa9c,null));};function getAllResources(_0x486f05,_0x4c170a){return new Promise(function(_0x58e176,_0x339b15){const _0x1369da=a667_0x41a8;if(_0x4c170a){const _0x106f0b=_0x4c170a[_0x1369da('0x7a')]?{[_0x4c170a[_0x1369da('0x7a')][_0x1369da('0xb9')]]:_0x4c170a[_0x1369da('0x7a')][_0x1369da('0x87')]}:undefined;return db[_0x486f05][_0x1369da('0xbc')]({'where':_0x106f0b,'raw':!![]})[_0x1369da('0x5')](function(_0x33b754){const _0x1bd39d=_0x1369da;_0x4c170a[_0x1bd39d('0x3c')]=_[_0x1bd39d('0x8e')](_0x33b754,'id'),_0x58e176(_0x4c170a);})[_0x1369da('0x52')](function(_0x427b89){_0x339b15(_0x427b89);});}else _0x58e176(null);});}function getAllFilteredResources(_0x12849e,_0x578867){return new Promise(function(_0x45a565,_0x235064){const _0xfdbac2=a667_0x41a8,_0x557e04=_0x12849e['filter']?{[_0x12849e[_0xfdbac2('0x7a')][_0xfdbac2('0xb9')]]:_0x12849e[_0xfdbac2('0x7a')]['value']}:undefined;return db[_0x12849e[_0xfdbac2('0x4a')]]['findAll']({'where':_0x557e04,'raw':!![]})['then'](function(_0x2bc256){_0x578867['associatedResources']=_['map'](_0x2bc256,function(_0x2afac0){const _0x3e6e9c=a667_0x41a8;return _0x2afac0[_0x3e6e9c('0x91')];}),_0x45a565(_0x578867);})[_0xfdbac2('0x52')](function(_0xdfc61b){_0x235064(_0xdfc61b);});});}function getAllowedResources(_0x1be3b4,_0x4d8888,_0x5eae15){return new Promise(function(_0x230c4d,_0x4a8a4e){const _0x388cab=a667_0x41a8;if(_0x4d8888)return db['UserProfileResource']['findAll']({'where':{'sectionId':_0x4d8888['id']},'raw':!![]})['then'](function(_0x13b126){const _0x4fd6e8=a667_0x41a8;_0x1be3b4[_0x4fd6e8('0xb9')]&&_0x1be3b4[_0x4fd6e8('0xb9')]!=='id'?_0x4d8888[_0x4fd6e8('0x3c')]=_[_0x4fd6e8('0x8e')](_0x13b126,function(_0x3e7efb){return _0x3e7efb[_0x1be3b4['field']];}):_0x5eae15===_0x4fd6e8('0x28')?_0x4d8888[_0x4fd6e8('0x3c')]=_[_0x4fd6e8('0x8e')](_0x13b126,function(_0x2c840d){const _0x3c9d41=_0x4fd6e8;return{'id':_0x2c840d[_0x3c9d41('0xb4')],'type':_0x2c840d[_0x3c9d41('0xc1')]};}):_0x4d8888[_0x4fd6e8('0x3c')]=_[_0x4fd6e8('0x8e')](_0x13b126,function(_0x45fce2){return _0x45fce2['resourceId'];}),_0x230c4d(_0x4d8888);})[_0x388cab('0x52')](function(_0x457831){_0x4a8a4e(_0x457831);});else _0x230c4d(null);});}function getQueryModels(_0x834645,_0x57cca5){const _0x4d9f29=_0x6c3579,_0x4464dc=_0x834645[_0x4d9f29('0x1b')](),_0x4279ae={'childModel':undefined,'parentSections':[]};switch(_0x4464dc){case'squareprojects':_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0x2');break;case _0x4d9f29('0x31'):_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0x9');break;case'squarerecordings':_0x4279ae['childModel']=_0x4d9f29('0x89'),_0x4279ae[_0x4d9f29('0xd0')]=[{'name':'SquareProjects','field':_0x4d9f29('0x91'),'foreignKey':_0x4d9f29('0xcf')}];break;case _0x4d9f29('0xc9'):_0x4279ae['childModel']=_0x4d9f29('0x99');break;case _0x4d9f29('0xae'):_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0x21'),_0x4279ae[_0x4d9f29('0xd0')]=[{'name':'Lists','field':'id','foreignKey':_0x4d9f29('0xb8')}];break;case _0x4d9f29('0x18'):_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0x9a');break;case _0x4d9f29('0x6d'):_0x4279ae['childModel']=_0x4d9f29('0x39');break;case _0x4d9f29('0x98'):_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0x1');break;case _0x4d9f29('0x1f'):_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0x42');break;case _0x4d9f29('0x70'):_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0x97');break;case _0x4d9f29('0xa2'):_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0x71');break;case _0x4d9f29('0x92'):_0x4279ae[_0x4d9f29('0xb5')]='FaxAccount';break;case'inboundroutes':case'internalroutes':case _0x4d9f29('0x53'):_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0x3f');break;case _0x4d9f29('0x4e'):_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0xc6');break;case'voicemails':_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0x8f');break;case _0x4d9f29('0xa'):_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0x34'),_0x4279ae[_0x4d9f29('0xd0')]=[{'name':_0x4d9f29('0x4b'),'field':_0x4d9f29('0x91'),'foreignKey':_0x4d9f29('0x5e'),'model':_0x4d9f29('0x96'),'filter':{'field':_0x4d9f29('0xc7'),'value':['agent']}},{'name':_0x4d9f29('0xa8'),'field':_0x4d9f29('0x91'),'foreignKey':_0x4d9f29('0x5e'),'model':_0x4d9f29('0x96'),'filter':{'field':_0x4d9f29('0xc7'),'value':[_0x4d9f29('0x13')]}},{'name':_0x4d9f29('0x11'),'field':_0x4d9f29('0x91'),'foreignKey':_0x4d9f29('0x9f'),'model':_0x4d9f29('0xc'),'filter':{'field':_0x4d9f29('0xc1'),'value':[_0x4d9f29('0x6c')]}},{'name':_0x4d9f29('0x7b'),'field':_0x4d9f29('0x91'),'foreignKey':_0x4d9f29('0x9f'),'model':_0x4d9f29('0xc'),'filter':{'field':'type','value':[_0x4d9f29('0x9d')]}}];break;case _0x4d9f29('0xa6'):_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0xab');break;case _0x4d9f29('0x1a'):_0x4279ae[_0x4d9f29('0xb5')]='VoiceChanSpy';break;case _0x4d9f29('0x95'):_0x4279ae['childModel']='VoicePrefix';break;case _0x4d9f29('0x94'):_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0x2b');break;case _0x4d9f29('0x7e'):_0x4279ae['childModel']=_0x4d9f29('0x65');break;case _0x4d9f29('0x45'):_0x4279ae[_0x4d9f29('0xb5')]='MailAccount';break;case _0x4d9f29('0xf'):_0x4279ae[_0x4d9f29('0xb5')]='MailSubstatus';break;case'openchannelqueues':_0x4279ae['childModel']=_0x4d9f29('0x4f');break;case'openchannelaccounts':_0x4279ae['childModel']='OpenchannelAccount';break;case'smsqueues':_0x4279ae['childModel']=_0x4d9f29('0x4c');break;case _0x4d9f29('0x3b'):_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0xc2');break;case'whatsappqueues':_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0xd6');break;case _0x4d9f29('0x2a'):_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0xb7');break;case _0x4d9f29('0x16'):_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0x54');break;case _0x4d9f29('0xb'):case'queuecampaigns':_0x4279ae[_0x4d9f29('0xb5')]='VoiceQueue';_0x57cca5&&(_0x4279ae[_0x4d9f29('0xd0')]=[{'name':'VoiceQueues'},{'name':_0x4d9f29('0x7b')}]);break;case _0x4d9f29('0xc0'):case'agents':case _0x4d9f29('0x3a'):_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0x96');_0x57cca5&&(_0x4279ae[_0x4d9f29('0xd0')]=[{'name':_0x4d9f29('0x14'),'filter':{'field':'role','value':[_0x4d9f29('0x6e'),_0x4d9f29('0x3d')]},'ignore':!![]},{'name':'Agents'},{'name':_0x4d9f29('0xa8')}]);break;case'zendeskaccounts':_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0xba');break;case _0x4d9f29('0x49'):_0x4279ae['childModel']=_0x4d9f29('0x6f');break;case _0x4d9f29('0xa0'):_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0x41');break;case'sugarcrmaccounts':_0x4279ae['childModel']=_0x4d9f29('0x9e');break;case _0x4d9f29('0x3'):_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0x76');break;case _0x4d9f29('0x7f'):_0x4279ae['childModel']='ZohoAccount';break;case'vtigeraccounts':_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0x96');break;case _0x4d9f29('0x4d'):_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0x5b');break;case'dispositions':_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0xce');break;case _0x4d9f29('0x20'):_0x4279ae['childModel']='Dashboard';break;case _0x4d9f29('0x6a'):_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0x1d');break;case _0x4d9f29('0x9c'):_0x4279ae[_0x4d9f29('0xb5')]='Pause';break;case _0x4d9f29('0x66'):_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0x4');break;case'sounds':_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0x84');break;case _0x4d9f29('0x32'):_0x4279ae[_0x4d9f29('0xb5')]='Tag';break;case _0x4d9f29('0x56'):_0x4279ae['childModel']=_0x4d9f29('0x7d');break;case _0x4d9f29('0x83'):_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0x88');break;case _0x4d9f29('0xd4'):_0x4279ae['childModel']=_0x4d9f29('0x40');break;case _0x4d9f29('0x48'):_0x4279ae['childModel']=_0x4d9f29('0xd1');break;case _0x4d9f29('0x27'):_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0x75');break;case'extractedreports':_0x4279ae[_0x4d9f29('0xb5')]=_0x4d9f29('0x28'),_0x4279ae['parentSections']=[{'name':_0x4d9f29('0xd3'),'field':'id','foreignKey':_0x4d9f29('0xc4')}];break;case _0x4d9f29('0xd'):_0x4279ae['childModel']=_0x4d9f29('0x59');break;default:return _0x4279ae;}return _0x4279ae;} \ No newline at end of file +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 diff --git a/server/api/userProfile/userProfile.events.js b/server/api/userProfile/userProfile.events.js index dde268b..ba7c604 100644 --- a/server/api/userProfile/userProfile.events.js +++ b/server/api/userProfile/userProfile.events.js @@ -1 +1 @@ -const a668_0x3869=['exports','undefined','update','addHook','save','../../mysqldb','events'];(function(_0x3e6434,_0x38698c){const _0x4e970e=function(_0x12fa4a){while(--_0x12fa4a){_0x3e6434['push'](_0x3e6434['shift']());}};_0x4e970e(++_0x38698c);}(a668_0x3869,0x146));const a668_0x4e97=function(_0x3e6434,_0x38698c){_0x3e6434=_0x3e6434-0x0;let _0x4e970e=a668_0x3869[_0x3e6434];return _0x4e970e;};const _0x17c221=a668_0x4e97;'use strict';const EventEmitter=require(_0x17c221('0x2')),UserProfile=require(_0x17c221('0x1'))['db']['UserProfile'],UserProfileEvents=new EventEmitter();UserProfileEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x17c221('0x0'),'afterUpdate':_0x17c221('0x5'),'afterDestroy':'remove'};function emitEvent(_0x12fa4a){return function(_0x563136){UserProfileEvents['emit'](_0x12fa4a+':'+_0x563136['id'],_0x563136),UserProfileEvents['emit'](_0x12fa4a,_0x563136);};}for(const e in events){if(typeof events[e]!==_0x17c221('0x4')){const event=events[e];UserProfile[_0x17c221('0x6')](e,emitEvent(event));}}module[_0x17c221('0x3')]=UserProfileEvents; \ No newline at end of file +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 diff --git a/server/api/userProfile/userProfile.model.js b/server/api/userProfile/userProfile.model.js index ec550a2..3df19ee 100644 --- a/server/api/userProfile/userProfile.model.js +++ b/server/api/userProfile/userProfile.model.js @@ -1 +1 @@ -const a669_0x6855=['define','UserProfile','exports','user_profiles'];(function(_0x2836e9,_0x68555a){const _0x18f46d=function(_0x3121a3){while(--_0x3121a3){_0x2836e9['push'](_0x2836e9['shift']());}};_0x18f46d(++_0x68555a);}(a669_0x6855,0x116));const a669_0x18f4=function(_0x2836e9,_0x68555a){_0x2836e9=_0x2836e9-0x0;let _0x18f46d=a669_0x6855[_0x2836e9];return _0x18f46d;};const _0x11708c=a669_0x18f4;'use strict';const attributes=require('./userProfile.attributes');module[_0x11708c('0x0')]=function(_0x3121a3){const _0xa0236c=_0x11708c,_0x281e38=_0x3121a3[_0xa0236c('0x2')](_0xa0236c('0x3'),attributes,{'tableName':_0xa0236c('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x281e38;}; \ No newline at end of file +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 diff --git a/server/api/userProfile/userProfile.rpc.js b/server/api/userProfile/userProfile.rpc.js index ca3f78e..018e5de 100644 --- a/server/api/userProfile/userProfile.rpc.js +++ b/server/api/userProfile/userProfile.rpc.js @@ -1 +1 @@ -const a670_0x4055=['./userProfile.socket','../../rediscache','register'];(function(_0x2d8eed,_0x4055b9){const _0x47a112=function(_0x410b84){while(--_0x410b84){_0x2d8eed['push'](_0x2d8eed['shift']());}};_0x47a112(++_0x4055b9);}(a670_0x4055,0x1f3));const a670_0x47a1=function(_0x2d8eed,_0x4055b9){_0x2d8eed=_0x2d8eed-0x0;let _0x47a112=a670_0x4055[_0x2d8eed];return _0x47a112;};const _0x2fce32=a670_0x47a1;'use strict';const {getSocket}=require(_0x2fce32('0x0')),socket=getSocket();require(_0x2fce32('0x2'))[_0x2fce32('0x1')](socket); \ No newline at end of file +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 diff --git a/server/api/userProfile/userProfile.socket.js b/server/api/userProfile/userProfile.socket.js index 9368983..cea82b3 100644 --- a/server/api/userProfile/userProfile.socket.js +++ b/server/api/userProfile/userProfile.socket.js @@ -1 +1 @@ -const a671_0x343d=['save','./userProfile.events','length','remove','userProfile:','emit'];(function(_0x522234,_0x343d32){const _0x29d2e7=function(_0x3a23b2){while(--_0x3a23b2){_0x522234['push'](_0x522234['shift']());}};_0x29d2e7(++_0x343d32);}(a671_0x343d,0x11c));const a671_0x29d2=function(_0x522234,_0x343d32){_0x522234=_0x522234-0x0;let _0x29d2e7=a671_0x343d[_0x522234];return _0x29d2e7;};const _0x11e95f=a671_0x29d2;'use strict';const UserProfileEvents=require(_0x11e95f('0x5')),events=[_0x11e95f('0x4'),_0x11e95f('0x1'),'update'];function createListener(_0x3a23b2,_0x49daf7){return function(_0xad7f11){const _0x33a921=a671_0x29d2;_0x49daf7[_0x33a921('0x3')](_0x3a23b2,_0xad7f11);};}exports['register']=function(_0x4cf959){const _0x49b3a0=_0x11e95f;for(let _0x176694=0x0,_0x1e948b=events[_0x49b3a0('0x0')];_0x176694<_0x1e948b;_0x176694++){const _0x3fd7a8=events[_0x176694],_0x2d0cfa=createListener(_0x49b3a0('0x2')+_0x3fd7a8,_0x4cf959);UserProfileEvents['on'](_0x3fd7a8,_0x2d0cfa);}}; \ No newline at end of file +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 diff --git a/server/api/userProfileResource/index.js b/server/api/userProfileResource/index.js index 1176428..c6d616f 100644 --- a/server/api/userProfileResource/index.js +++ b/server/api/userProfileResource/index.js @@ -1 +1 @@ -const a672_0x1ab5=['update','show','Router','get','destroy','describe','/describe','isAuthenticated','create','express','delete','./userProfileResource.controller','../../components/auth/service','/:id','post'];(function(_0x1d4dc4,_0x1ab540){const _0x184cdc=function(_0x10fe60){while(--_0x10fe60){_0x1d4dc4['push'](_0x1d4dc4['shift']());}};_0x184cdc(++_0x1ab540);}(a672_0x1ab5,0x13a));const a672_0x184c=function(_0x1d4dc4,_0x1ab540){_0x1d4dc4=_0x1d4dc4-0x0;let _0x184cdc=a672_0x1ab5[_0x1d4dc4];return _0x184cdc;};const _0x18f4d7=a672_0x184c;'use strict';const express=require(_0x18f4d7('0xa')),router=express[_0x18f4d7('0x3')](),auth=require(_0x18f4d7('0xd')),controller=require(_0x18f4d7('0xc'));router[_0x18f4d7('0x4')]('/',auth['isAuthenticated'](),controller['index']),router[_0x18f4d7('0x4')](_0x18f4d7('0x7'),auth[_0x18f4d7('0x8')](),controller[_0x18f4d7('0x6')]),router[_0x18f4d7('0x4')](_0x18f4d7('0xe'),auth[_0x18f4d7('0x8')](),controller[_0x18f4d7('0x2')]),router[_0x18f4d7('0x0')]('/',auth[_0x18f4d7('0x8')](),controller[_0x18f4d7('0x9')]),router['put'](_0x18f4d7('0xe'),auth['isAuthenticated'](),controller[_0x18f4d7('0x1')]),router[_0x18f4d7('0xb')](_0x18f4d7('0xe'),auth['isAuthenticated'](),controller[_0x18f4d7('0x5')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/userProfileResource/userProfileResource.attributes.js b/server/api/userProfileResource/userProfileResource.attributes.js index 9b546a5..019130a 100644 --- a/server/api/userProfileResource/userProfileResource.attributes.js +++ b/server/api/userProfileResource/userProfileResource.attributes.js @@ -1 +1 @@ -const a673_0x4e3b=['STRING','INTEGER','exports','sequelize'];(function(_0x1aba43,_0x4e3b4e){const _0x363578=function(_0x1865d1){while(--_0x1865d1){_0x1aba43['push'](_0x1aba43['shift']());}};_0x363578(++_0x4e3b4e);}(a673_0x4e3b,0x1c2));const a673_0x3635=function(_0x1aba43,_0x4e3b4e){_0x1aba43=_0x1aba43-0x0;let _0x363578=a673_0x4e3b[_0x1aba43];return _0x363578;};const _0x12d30d=a673_0x3635;'use strict';const Sequelize=require(_0x12d30d('0x1'));module[_0x12d30d('0x0')]={'name':{'type':Sequelize[_0x12d30d('0x2')],'allowNull':![]},'resourceId':{'type':Sequelize[_0x12d30d('0x3')],'allowNull':![]},'type':{'type':Sequelize[_0x12d30d('0x2')],'allowNull':![]}}; \ No newline at end of file +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 diff --git a/server/api/userProfileResource/userProfileResource.controller.js b/server/api/userProfileResource/userProfileResource.controller.js index 9aeb71b..9e899d1 100644 --- a/server/api/userProfileResource/userProfileResource.controller.js +++ b/server/api/userProfileResource/userProfileResource.controller.js @@ -1 +1 @@ -const a674_0x2971=['model','VIRTUAL','api','pick','update','attributes','filter','type','params','show','options','filters','where','then','findAll','rawAttributes','key','query','nolimit','error','rows','Content-Range','intersection','findOne','name','sort','sendStatus','destroy','lodash','length','fieldName','keys','status','json','include','limit','offset','order','like','sequelize','create','UserProfileResource','fields','catch','end','../../components/parsers/qs','../../config/logger','map','../../mysqldb','count','send','merge','stack','body','includeAll'];(function(_0x4d8786,_0x297124){const _0x19edfc=function(_0x32491b){while(--_0x32491b){_0x4d8786['push'](_0x4d8786['shift']());}};_0x19edfc(++_0x297124);}(a674_0x2971,0x95));const a674_0x19ed=function(_0x4d8786,_0x297124){_0x4d8786=_0x4d8786-0x0;let _0x19edfc=a674_0x2971[_0x4d8786];return _0x19edfc;};const _0x29f974=a674_0x19ed;'use strict';const _=require(_0x29f974('0x2c')),qs=require(_0x29f974('0x6')),logger=require(_0x29f974('0x7'))(_0x29f974('0x12')),db=require(_0x29f974('0x9'))['db'],{Op}=require(_0x29f974('0x0'));function respondWithResult(_0x32491b,_0x397153){return _0x397153=_0x397153||0xc8,function(_0x554fc6){const _0x5c2b94=a674_0x19ed;if(_0x554fc6)return _0x32491b[_0x5c2b94('0x30')](_0x397153)[_0x5c2b94('0x31')](_0x554fc6);};}function respondWithFilteredResult(_0x183881,_0x50fd54){return function(_0x138e88){const _0x3ef2dc=a674_0x19ed;if(_0x138e88){const _0x1db183=_0x138e88[_0x3ef2dc('0xa')],_0xb84e13=_0x50fd54[_0x3ef2dc('0x34')];let _0x1175d0=_0x50fd54[_0x3ef2dc('0x34')]+_0x50fd54['limit'],_0x25d266;return _0x1175d0>=_0x1db183?(_0x1175d0=_0x1db183,_0x25d266=0xc8):_0x25d266=0xce,_0x183881[_0x3ef2dc('0x30')](_0x25d266),_0x183881['set'](_0x3ef2dc('0x25'),_0xb84e13+'-'+_0x1175d0+'/'+_0x1db183)['json'](_0x138e88);}return null;};}function saveUpdates(_0x3d801d){return function(_0x2dbbe8){const _0xde87b4=a674_0x19ed;if(_0x2dbbe8)return _0x2dbbe8[_0xde87b4('0x14')](_0x3d801d)[_0xde87b4('0x1d')](function(_0x543310){return _0x543310;});return null;};}function removeEntity(_0x59297c){return function(_0x82fb1b){const _0x508de6=a674_0x19ed;if(_0x82fb1b)return _0x82fb1b[_0x508de6('0x2b')]()[_0x508de6('0x1d')](function(){const _0xfc5288=_0x508de6;_0x59297c[_0xfc5288('0x30')](0xcc)[_0xfc5288('0x5')]();});};}function handleEntityNotFound(_0x1e68db){return function(_0x5cf600){const _0x5ece29=a674_0x19ed;return!_0x5cf600&&_0x1e68db[_0x5ece29('0x2a')](0x194),_0x5cf600;};}function handleError(_0xe1681b,_0x1021f5){return _0x1021f5=_0x1021f5||0x1f4,function(_0x5178a6){const _0x50595d=a674_0x19ed;logger[_0x50595d('0x23')](_0x5178a6[_0x50595d('0xd')]),_0x5178a6['name']&&delete _0x5178a6[_0x50595d('0x28')],_0xe1681b[_0x50595d('0x30')](_0x1021f5)[_0x50595d('0xb')](_0x5178a6);};}exports['index']=function(_0x7391ec,_0x5763ea){const _0x262bf4=_0x29f974;let _0x51cc00={};const _0x2b10f8={},_0x193bb3={'count':0x0,'rows':[]},_0x394017=_[_0x262bf4('0x8')](db['UserProfileResource'][_0x262bf4('0x1f')],function(_0x4a047a){const _0x430d57=_0x262bf4;return{'name':_0x4a047a[_0x430d57('0x2e')],'type':_0x4a047a[_0x430d57('0x17')][_0x430d57('0x20')]};});_0x2b10f8[_0x262bf4('0x10')]=_['map'](_0x394017,_0x262bf4('0x28')),_0x2b10f8[_0x262bf4('0x21')]=_[_0x262bf4('0x2f')](_0x7391ec['query']),_0x2b10f8[_0x262bf4('0x1b')]=_[_0x262bf4('0x26')](_0x2b10f8['model'],_0x2b10f8[_0x262bf4('0x21')]),_0x51cc00[_0x262bf4('0x15')]=_[_0x262bf4('0x26')](_0x2b10f8['model'],qs[_0x262bf4('0x3')](_0x7391ec[_0x262bf4('0x21')][_0x262bf4('0x3')])),_0x51cc00[_0x262bf4('0x15')]=_0x51cc00[_0x262bf4('0x15')]['length']?_0x51cc00[_0x262bf4('0x15')]:_0x2b10f8[_0x262bf4('0x10')];typeof _0x7391ec[_0x262bf4('0x21')][_0x262bf4('0x22')]==='undefined'&&(_0x51cc00['limit']=qs[_0x262bf4('0x33')](_0x7391ec[_0x262bf4('0x21')]['limit']),_0x51cc00['offset']=qs[_0x262bf4('0x34')](_0x7391ec['query'][_0x262bf4('0x34')]));_0x51cc00[_0x262bf4('0x35')]=qs['sort'](_0x7391ec[_0x262bf4('0x21')][_0x262bf4('0x29')]),_0x51cc00['where']=qs[_0x262bf4('0x1b')](_[_0x262bf4('0x13')](_0x7391ec['query'],_0x2b10f8[_0x262bf4('0x1b')]),_0x394017);_0x7391ec[_0x262bf4('0x21')][_0x262bf4('0x16')]&&(_0x51cc00[_0x262bf4('0x1c')]=_[_0x262bf4('0xc')](_0x51cc00['where'],{[Op['or']]:_['map'](_0x394017,function(_0x4fe2ae){const _0x576f98=_0x262bf4;if(_0x4fe2ae['type']!==_0x576f98('0x11')){const _0x5f327c={};return _0x5f327c[_0x4fe2ae[_0x576f98('0x28')]]={[Op[_0x576f98('0x36')]]:'%'+_0x7391ec[_0x576f98('0x21')]['filter']+'%'},_0x5f327c;}})}));_0x51cc00=_[_0x262bf4('0xc')]({},_0x51cc00,_0x7391ec[_0x262bf4('0x1a')]);const _0x162293={'where':_0x51cc00[_0x262bf4('0x1c')]};return db[_0x262bf4('0x2')][_0x262bf4('0xa')](_0x162293)[_0x262bf4('0x1d')](function(_0x445a0f){const _0x131df6=_0x262bf4;return _0x193bb3[_0x131df6('0xa')]=_0x445a0f,_0x7391ec[_0x131df6('0x21')]['includeAll']&&(_0x51cc00[_0x131df6('0x32')]=[{'all':!![]}]),db[_0x131df6('0x2')][_0x131df6('0x1e')](_0x51cc00);})[_0x262bf4('0x1d')](function(_0x8596fe){const _0x5771e3=_0x262bf4;return _0x193bb3[_0x5771e3('0x24')]=_0x8596fe,_0x193bb3;})[_0x262bf4('0x1d')](respondWithFilteredResult(_0x5763ea,_0x51cc00))[_0x262bf4('0x4')](handleError(_0x5763ea,null));},exports[_0x29f974('0x19')]=function(_0x17ea01,_0x2539e5){const _0x5bc836=_0x29f974;let _0x31cb90={'raw':![],'where':{'id':_0x17ea01[_0x5bc836('0x18')]['id']}};const _0x23c844={};return _0x23c844[_0x5bc836('0x10')]=_[_0x5bc836('0x2f')](db[_0x5bc836('0x2')][_0x5bc836('0x1f')]),_0x23c844[_0x5bc836('0x21')]=_['keys'](_0x17ea01[_0x5bc836('0x21')]),_0x23c844[_0x5bc836('0x1b')]=_[_0x5bc836('0x26')](_0x23c844[_0x5bc836('0x10')],_0x23c844['query']),_0x31cb90[_0x5bc836('0x15')]=_[_0x5bc836('0x26')](_0x23c844[_0x5bc836('0x10')],qs['fields'](_0x17ea01[_0x5bc836('0x21')][_0x5bc836('0x3')])),_0x31cb90[_0x5bc836('0x15')]=_0x31cb90[_0x5bc836('0x15')][_0x5bc836('0x2d')]?_0x31cb90[_0x5bc836('0x15')]:_0x23c844['model'],_0x17ea01['query'][_0x5bc836('0xf')]&&(_0x31cb90['include']=[{'all':!![]}]),_0x31cb90=_[_0x5bc836('0xc')]({},_0x31cb90,_0x17ea01[_0x5bc836('0x1a')]),db['UserProfileResource'][_0x5bc836('0x27')](_0x31cb90)[_0x5bc836('0x1d')](handleEntityNotFound(_0x2539e5,null))['then'](respondWithResult(_0x2539e5,null))[_0x5bc836('0x4')](handleError(_0x2539e5,null));},exports['create']=function(_0x55efae,_0xdfcfa0){const _0x336f71=_0x29f974;return db[_0x336f71('0x2')][_0x336f71('0x1')](_0x55efae[_0x336f71('0xe')],{})['then'](respondWithResult(_0xdfcfa0,0xc9))[_0x336f71('0x4')](handleError(_0xdfcfa0,null));},exports['update']=function(_0x17f453,_0x11c94b){const _0x5df1d3=_0x29f974;return _0x17f453[_0x5df1d3('0xe')]['id']&&delete _0x17f453['body']['id'],db[_0x5df1d3('0x2')][_0x5df1d3('0x27')]({'where':{'id':_0x17f453[_0x5df1d3('0x18')]['id']}})['then'](handleEntityNotFound(_0x11c94b,null))['then'](saveUpdates(_0x17f453['body'],null))[_0x5df1d3('0x1d')](respondWithResult(_0x11c94b,null))[_0x5df1d3('0x4')](handleError(_0x11c94b,null));},exports[_0x29f974('0x2b')]=function(_0x5a3a7e,_0x71c450){const _0x37a8b3=_0x29f974;return db['UserProfileResource'][_0x37a8b3('0x27')]({'where':{'id':_0x5a3a7e[_0x37a8b3('0x18')]['id']}})[_0x37a8b3('0x1d')](handleEntityNotFound(_0x71c450,null))[_0x37a8b3('0x1d')](removeEntity(_0x71c450,null))[_0x37a8b3('0x4')](handleError(_0x71c450,null));},exports['describe']=function(_0x55768d,_0x2a7b59){const _0x1d7407=_0x29f974;return db['UserProfileResource']['describe']()[_0x1d7407('0x1d')](respondWithResult(_0x2a7b59,null))[_0x1d7407('0x4')](handleError(_0x2a7b59,null));}; \ No newline at end of file +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 diff --git a/server/api/userProfileResource/userProfileResource.model.js b/server/api/userProfileResource/userProfileResource.model.js index 1c668cf..1f0c42a 100644 --- a/server/api/userProfileResource/userProfileResource.model.js +++ b/server/api/userProfileResource/userProfileResource.model.js @@ -1 +1 @@ -const a675_0x4d86=['user_profile_has_resources','./userProfileResource.attributes','resourceId','exports','compositeIndex','sectionId'];(function(_0x52f5fe,_0x4d8645){const _0x24e2c3=function(_0x254003){while(--_0x254003){_0x52f5fe['push'](_0x52f5fe['shift']());}};_0x24e2c3(++_0x4d8645);}(a675_0x4d86,0x92));const a675_0x24e2=function(_0x52f5fe,_0x4d8645){_0x52f5fe=_0x52f5fe-0x0;let _0x24e2c3=a675_0x4d86[_0x52f5fe];return _0x24e2c3;};const _0x2bf900=a675_0x24e2;'use strict';const attributes=require(_0x2bf900('0x5'));module[_0x2bf900('0x1')]=function(_0x254003){const _0x27c691=_0x2bf900,_0x29ebaf=_0x254003['define']('UserProfileResource',attributes,{'tableName':_0x27c691('0x4'),'paranoid':![],'indexes':[{'name':_0x27c691('0x2'),'fields':[_0x27c691('0x0'),_0x27c691('0x3')]}],'timestamps':!![]});return _0x29ebaf;}; \ No newline at end of file +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 diff --git a/server/api/userProfileSection/index.js b/server/api/userProfileSection/index.js index 72b3616..72e9665 100644 --- a/server/api/userProfileSection/index.js +++ b/server/api/userProfileSection/index.js @@ -1 +1 @@ -const a676_0x4ca5=['create','show','post','update','isAuthenticated','/:id','describe','Router','get','express'];(function(_0x98d139,_0x4ca5ea){const _0x3425b0=function(_0x347712){while(--_0x347712){_0x98d139['push'](_0x98d139['shift']());}};_0x3425b0(++_0x4ca5ea);}(a676_0x4ca5,0x18e));const a676_0x3425=function(_0x98d139,_0x4ca5ea){_0x98d139=_0x98d139-0x0;let _0x3425b0=a676_0x4ca5[_0x98d139];return _0x3425b0;};const _0x34cb3a=a676_0x3425;'use strict';const express=require(_0x34cb3a('0x1')),router=express[_0x34cb3a('0x9')](),auth=require('../../components/auth/service'),controller=require('./userProfileSection.controller');router[_0x34cb3a('0x0')]('/',auth[_0x34cb3a('0x6')](),controller['index']),router[_0x34cb3a('0x0')]('/describe',auth[_0x34cb3a('0x6')](),controller[_0x34cb3a('0x8')]),router[_0x34cb3a('0x0')](_0x34cb3a('0x7'),auth[_0x34cb3a('0x6')](),controller[_0x34cb3a('0x3')]),router[_0x34cb3a('0x4')]('/',auth['isAuthenticated'](),controller[_0x34cb3a('0x2')]),router['put'](_0x34cb3a('0x7'),auth[_0x34cb3a('0x6')](),controller[_0x34cb3a('0x5')]),router['delete'](_0x34cb3a('0x7'),auth['isAuthenticated'](),controller['destroy']),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/userProfileSection/userProfileSection.attributes.js b/server/api/userProfileSection/userProfileSection.attributes.js index ffe48dd..0f2d58a 100644 --- a/server/api/userProfileSection/userProfileSection.attributes.js +++ b/server/api/userProfileSection/userProfileSection.attributes.js @@ -1 +1 @@ -const a677_0x1903=['STRING','exports','getDataValue','BOOLEAN','crudPermissions','INTEGER','setDataValue'];(function(_0x36ac70,_0x19032f){const _0x2280ed=function(_0x3f5d47){while(--_0x3f5d47){_0x36ac70['push'](_0x36ac70['shift']());}};_0x2280ed(++_0x19032f);}(a677_0x1903,0xa1));const a677_0x2280=function(_0x36ac70,_0x19032f){_0x36ac70=_0x36ac70-0x0;let _0x2280ed=a677_0x1903[_0x36ac70];return _0x2280ed;};const _0x266f73=a677_0x2280;'use strict';const Sequelize=require('sequelize');module[_0x266f73('0x1')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'category':{'type':Sequelize[_0x266f73('0x0')],'allowNull':![]},'sectionId':{'type':Sequelize[_0x266f73('0x5')],'allowNull':![]},'enabled':{'type':Sequelize[_0x266f73('0x3')],'defaultValue':null},'autoAssociation':{'type':Sequelize[_0x266f73('0x3')],'defaultValue':null},'crudPermissions':{'type':Sequelize[_0x266f73('0x0')],'set':function(_0x3f5d47){const _0x589e70=_0x266f73;this[_0x589e70('0x6')]('crudPermissions',_0x3f5d47?_0x3f5d47['join'](''):[]);},'get':function(){const _0x533d30=_0x266f73;return this[_0x533d30('0x2')](_0x533d30('0x4'))?this[_0x533d30('0x2')](_0x533d30('0x4'))['split'](''):[];}}}; \ No newline at end of file +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 diff --git a/server/api/userProfileSection/userProfileSection.controller.js b/server/api/userProfileSection/userProfileSection.controller.js index 89c9544..afa34ae 100644 --- a/server/api/userProfileSection/userProfileSection.controller.js +++ b/server/api/userProfileSection/userProfileSection.controller.js @@ -1 +1 @@ -const a678_0x401d=['keys','end','api','query','count','fields','create','show','name','Content-Range','update','intersection','sort','filters','limit','findAll','catch','nolimit','then','error','filter','include','json','undefined','send','body','lodash','includeAll','merge','status','rawAttributes','index','../../config/logger','sendStatus','where','findOne','options','pick','destroy','type','model','../../mysqldb','map','offset','key','VIRTUAL','../../components/parsers/qs','describe','set','length','stack','UserProfileSection','attributes','rows','params'];(function(_0x4918c0,_0x401dd8){const _0x421db9=function(_0x2db526){while(--_0x2db526){_0x4918c0['push'](_0x4918c0['shift']());}};_0x421db9(++_0x401dd8);}(a678_0x401d,0x98));const a678_0x421d=function(_0x4918c0,_0x401dd8){_0x4918c0=_0x4918c0-0x0;let _0x421db9=a678_0x401d[_0x4918c0];return _0x421db9;};const _0x2f3c2e=a678_0x421d;'use strict';const _=require(_0x2f3c2e('0x27')),qs=require(_0x2f3c2e('0x4')),logger=require(_0x2f3c2e('0x2d'))(_0x2f3c2e('0xf')),db=require(_0x2f3c2e('0x36'))['db'],{Op}=require('sequelize');function respondWithResult(_0x2db526,_0x2f5170){return _0x2f5170=_0x2f5170||0xc8,function(_0x4d4f8b){const _0x47280d=a678_0x421d;if(_0x4d4f8b)return _0x2db526[_0x47280d('0x2a')](_0x2f5170)[_0x47280d('0x23')](_0x4d4f8b);};}function respondWithFilteredResult(_0x567624,_0x4f0924){return function(_0x137710){const _0x58aee1=a678_0x421d;if(_0x137710){const _0x511325=_0x137710[_0x58aee1('0x11')],_0x35dd9e=_0x4f0924['offset'];let _0x1fca9e=_0x4f0924[_0x58aee1('0x1')]+_0x4f0924['limit'],_0x427ade;return _0x1fca9e>=_0x511325?(_0x1fca9e=_0x511325,_0x427ade=0xc8):_0x427ade=0xce,_0x567624[_0x58aee1('0x2a')](_0x427ade),_0x567624[_0x58aee1('0x6')](_0x58aee1('0x16'),_0x35dd9e+'-'+_0x1fca9e+'/'+_0x511325)[_0x58aee1('0x23')](_0x137710);}return null;};}function saveUpdates(_0x134d8f){return function(_0x159ce8){const _0x330001=a678_0x421d;if(_0x159ce8)return _0x159ce8[_0x330001('0x17')](_0x134d8f)['then'](function(_0x1ad60e){return _0x1ad60e;});return null;};}function removeEntity(_0x5b81fb){return function(_0x1ae10d){const _0x2f0faa=a678_0x421d;if(_0x1ae10d)return _0x1ae10d[_0x2f0faa('0x33')]()[_0x2f0faa('0x1f')](function(){const _0x43ea2d=_0x2f0faa;_0x5b81fb[_0x43ea2d('0x2a')](0xcc)[_0x43ea2d('0xe')]();});};}function handleEntityNotFound(_0x3f26ca){return function(_0x48b95f){const _0x471ee8=a678_0x421d;return!_0x48b95f&&_0x3f26ca[_0x471ee8('0x2e')](0x194),_0x48b95f;};}function handleError(_0x22a064,_0x2e84c3){return _0x2e84c3=_0x2e84c3||0x1f4,function(_0x1803b3){const _0x437d74=a678_0x421d;logger[_0x437d74('0x20')](_0x1803b3[_0x437d74('0x8')]),_0x1803b3[_0x437d74('0x15')]&&delete _0x1803b3[_0x437d74('0x15')],_0x22a064[_0x437d74('0x2a')](_0x2e84c3)[_0x437d74('0x25')](_0x1803b3);};}exports[_0x2f3c2e('0x2c')]=function(_0x2fba8c,_0x810b8d){const _0x843ca7=_0x2f3c2e;let _0x4205d4={};const _0x7ccacb={},_0x48dae5={'count':0x0,'rows':[]},_0x1566bf=_['map'](db[_0x843ca7('0x9')]['rawAttributes'],function(_0x21e424){const _0xa4a3ea=_0x843ca7;return{'name':_0x21e424['fieldName'],'type':_0x21e424[_0xa4a3ea('0x34')][_0xa4a3ea('0x2')]};});_0x7ccacb['model']=_[_0x843ca7('0x0')](_0x1566bf,'name'),_0x7ccacb['query']=_[_0x843ca7('0xd')](_0x2fba8c[_0x843ca7('0x10')]),_0x7ccacb['filters']=_[_0x843ca7('0x18')](_0x7ccacb[_0x843ca7('0x35')],_0x7ccacb[_0x843ca7('0x10')]),_0x4205d4[_0x843ca7('0xa')]=_[_0x843ca7('0x18')](_0x7ccacb[_0x843ca7('0x35')],qs[_0x843ca7('0x12')](_0x2fba8c['query'][_0x843ca7('0x12')])),_0x4205d4[_0x843ca7('0xa')]=_0x4205d4[_0x843ca7('0xa')][_0x843ca7('0x7')]?_0x4205d4[_0x843ca7('0xa')]:_0x7ccacb[_0x843ca7('0x35')];typeof _0x2fba8c['query'][_0x843ca7('0x1e')]===_0x843ca7('0x24')&&(_0x4205d4[_0x843ca7('0x1b')]=qs[_0x843ca7('0x1b')](_0x2fba8c['query'][_0x843ca7('0x1b')]),_0x4205d4[_0x843ca7('0x1')]=qs[_0x843ca7('0x1')](_0x2fba8c[_0x843ca7('0x10')][_0x843ca7('0x1')]));_0x4205d4['order']=qs[_0x843ca7('0x19')](_0x2fba8c['query'][_0x843ca7('0x19')]),_0x4205d4[_0x843ca7('0x2f')]=qs[_0x843ca7('0x1a')](_[_0x843ca7('0x32')](_0x2fba8c[_0x843ca7('0x10')],_0x7ccacb[_0x843ca7('0x1a')]),_0x1566bf);_0x2fba8c[_0x843ca7('0x10')][_0x843ca7('0x21')]&&(_0x4205d4['where']=_[_0x843ca7('0x29')](_0x4205d4['where'],{[Op['or']]:_[_0x843ca7('0x0')](_0x1566bf,function(_0x30d8a0){const _0x1ef72a=_0x843ca7;if(_0x30d8a0['type']!==_0x1ef72a('0x3')){const _0x348a70={};return _0x348a70[_0x30d8a0[_0x1ef72a('0x15')]]={[Op['like']]:'%'+_0x2fba8c[_0x1ef72a('0x10')][_0x1ef72a('0x21')]+'%'},_0x348a70;}})}));_0x4205d4=_[_0x843ca7('0x29')]({},_0x4205d4,_0x2fba8c[_0x843ca7('0x31')]);const _0x253d0e={'where':_0x4205d4[_0x843ca7('0x2f')]};return db[_0x843ca7('0x9')][_0x843ca7('0x11')](_0x253d0e)[_0x843ca7('0x1f')](function(_0x227c6c){const _0xd2020d=_0x843ca7;return _0x48dae5[_0xd2020d('0x11')]=_0x227c6c,_0x2fba8c[_0xd2020d('0x10')][_0xd2020d('0x28')]&&(_0x4205d4['include']=[{'all':!![]}]),db['UserProfileSection'][_0xd2020d('0x1c')](_0x4205d4);})[_0x843ca7('0x1f')](function(_0x17d230){const _0x3a74ea=_0x843ca7;return _0x48dae5[_0x3a74ea('0xb')]=_0x17d230,_0x48dae5;})[_0x843ca7('0x1f')](respondWithFilteredResult(_0x810b8d,_0x4205d4))['catch'](handleError(_0x810b8d,null));},exports[_0x2f3c2e('0x14')]=function(_0x36bf9c,_0x8eb1eb){const _0x245f45=_0x2f3c2e;let _0x8e61d9={'raw':![],'where':{'id':_0x36bf9c['params']['id']}};const _0xa2924c={};return _0xa2924c['model']=_[_0x245f45('0xd')](db[_0x245f45('0x9')][_0x245f45('0x2b')]),_0xa2924c[_0x245f45('0x10')]=_[_0x245f45('0xd')](_0x36bf9c[_0x245f45('0x10')]),_0xa2924c['filters']=_[_0x245f45('0x18')](_0xa2924c[_0x245f45('0x35')],_0xa2924c[_0x245f45('0x10')]),_0x8e61d9['attributes']=_['intersection'](_0xa2924c[_0x245f45('0x35')],qs[_0x245f45('0x12')](_0x36bf9c[_0x245f45('0x10')][_0x245f45('0x12')])),_0x8e61d9[_0x245f45('0xa')]=_0x8e61d9[_0x245f45('0xa')][_0x245f45('0x7')]?_0x8e61d9[_0x245f45('0xa')]:_0xa2924c[_0x245f45('0x35')],_0x36bf9c['query'][_0x245f45('0x28')]&&(_0x8e61d9[_0x245f45('0x22')]=[{'all':!![]}]),_0x8e61d9=_['merge']({},_0x8e61d9,_0x36bf9c[_0x245f45('0x31')]),db[_0x245f45('0x9')][_0x245f45('0x30')](_0x8e61d9)[_0x245f45('0x1f')](handleEntityNotFound(_0x8eb1eb,null))[_0x245f45('0x1f')](respondWithResult(_0x8eb1eb,null))[_0x245f45('0x1d')](handleError(_0x8eb1eb,null));},exports[_0x2f3c2e('0x13')]=function(_0x19533a,_0x50a43a){const _0x48cd63=_0x2f3c2e;return db['UserProfileSection'][_0x48cd63('0x13')](_0x19533a[_0x48cd63('0x26')],{})[_0x48cd63('0x1f')](respondWithResult(_0x50a43a,0xc9))['catch'](handleError(_0x50a43a,null));},exports[_0x2f3c2e('0x17')]=function(_0x7e098d,_0x3b66cd){const _0x3b4bc7=_0x2f3c2e;return _0x7e098d[_0x3b4bc7('0x26')]['id']&&delete _0x7e098d[_0x3b4bc7('0x26')]['id'],db[_0x3b4bc7('0x9')][_0x3b4bc7('0x30')]({'where':{'id':_0x7e098d[_0x3b4bc7('0xc')]['id']}})['then'](handleEntityNotFound(_0x3b66cd,null))[_0x3b4bc7('0x1f')](saveUpdates(_0x7e098d[_0x3b4bc7('0x26')],null))[_0x3b4bc7('0x1f')](respondWithResult(_0x3b66cd,null))['catch'](handleError(_0x3b66cd,null));},exports[_0x2f3c2e('0x33')]=function(_0x38d74f,_0x3bd1cd){const _0x5d6ae3=_0x2f3c2e;return db[_0x5d6ae3('0x9')][_0x5d6ae3('0x30')]({'where':{'id':_0x38d74f['params']['id']}})[_0x5d6ae3('0x1f')](handleEntityNotFound(_0x3bd1cd,null))['then'](removeEntity(_0x3bd1cd,null))['catch'](handleError(_0x3bd1cd,null));},exports[_0x2f3c2e('0x5')]=function(_0x13dce9,_0x39c6f0){const _0x5a3694=_0x2f3c2e;return db[_0x5a3694('0x9')][_0x5a3694('0x5')]()[_0x5a3694('0x1f')](respondWithResult(_0x39c6f0,null))['catch'](handleError(_0x39c6f0,null));}; \ No newline at end of file +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 diff --git a/server/api/userProfileSection/userProfileSection.model.js b/server/api/userProfileSection/userProfileSection.model.js index 78cda47..34dae65 100644 --- a/server/api/userProfileSection/userProfileSection.model.js +++ b/server/api/userProfileSection/userProfileSection.model.js @@ -1 +1 @@ -const a679_0x1170=['sectionId','user_profile_has_sections','userProfileId','compositeIndex','define','exports'];(function(_0x28628c,_0x117071){const _0x430591=function(_0x424121){while(--_0x424121){_0x28628c['push'](_0x28628c['shift']());}};_0x430591(++_0x117071);}(a679_0x1170,0x77));const a679_0x4305=function(_0x28628c,_0x117071){_0x28628c=_0x28628c-0x0;let _0x430591=a679_0x1170[_0x28628c];return _0x430591;};const _0x40ae1b=a679_0x4305;'use strict';const attributes=require('./userProfileSection.attributes');module[_0x40ae1b('0x0')]=function(_0x424121){const _0x4a2251=_0x40ae1b,_0x8a7694=_0x424121[_0x4a2251('0x5')]('UserProfileSection',attributes,{'tableName':_0x4a2251('0x2'),'paranoid':![],'indexes':[{'name':_0x4a2251('0x4'),'fields':[_0x4a2251('0x1'),_0x4a2251('0x3')]}],'timestamps':!![]});return _0x8a7694;}; \ No newline at end of file +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 diff --git a/server/api/userSmsQueue/index.js b/server/api/userSmsQueue/index.js index 3ca7fe9..4988a24 100644 --- a/server/api/userSmsQueue/index.js +++ b/server/api/userSmsQueue/index.js @@ -1 +1 @@ -const a680_0x47c7=['Router','express'];(function(_0x3ff6bb,_0x47c79b){const _0x42df99=function(_0x266ba2){while(--_0x266ba2){_0x3ff6bb['push'](_0x3ff6bb['shift']());}};_0x42df99(++_0x47c79b);}(a680_0x47c7,0x7a));const a680_0x42df=function(_0x3ff6bb,_0x47c79b){_0x3ff6bb=_0x3ff6bb-0x0;let _0x42df99=a680_0x47c7[_0x3ff6bb];return _0x42df99;};const _0x90fa7a=a680_0x42df;'use strict';const express=require(_0x90fa7a('0x1')),router=express[_0x90fa7a('0x0')]();module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/userSmsQueue/userSmsQueue.attributes.js b/server/api/userSmsQueue/userSmsQueue.attributes.js index 0fe95a0..eaac50b 100644 --- a/server/api/userSmsQueue/userSmsQueue.attributes.js +++ b/server/api/userSmsQueue/userSmsQueue.attributes.js @@ -1 +1 @@ -const a681_0xfabf=['sequelize','exports','INTEGER'];(function(_0x26546d,_0xfabf5e){const _0x2507cc=function(_0x155472){while(--_0x155472){_0x26546d['push'](_0x26546d['shift']());}};_0x2507cc(++_0xfabf5e);}(a681_0xfabf,0x1b5));const a681_0x2507=function(_0x26546d,_0xfabf5e){_0x26546d=_0x26546d-0x0;let _0x2507cc=a681_0xfabf[_0x26546d];return _0x2507cc;};const _0x28ad73=a681_0x2507;'use strict';const Sequelize=require(_0x28ad73('0x1'));module[_0x28ad73('0x2')]={'penalty':{'type':Sequelize[_0x28ad73('0x0')],'defaultValue':0x0}}; \ No newline at end of file +'use strict';const Sequelize=require('sequelize');module['exports']={'penalty':{'type':Sequelize['INTEGER'],'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 7a8f0db..111a656 100644 --- a/server/api/userSmsQueue/userSmsQueue.model.js +++ b/server/api/userSmsQueue/userSmsQueue.model.js @@ -1 +1 @@ -const a682_0x229a=['exports','define','user_has_sms_queues','UserSmsQueue'];(function(_0xc6325e,_0x229aeb){const _0x55af2c=function(_0x2089d0){while(--_0x2089d0){_0xc6325e['push'](_0xc6325e['shift']());}};_0x55af2c(++_0x229aeb);}(a682_0x229a,0x12d));const a682_0x55af=function(_0xc6325e,_0x229aeb){_0xc6325e=_0xc6325e-0x0;let _0x55af2c=a682_0x229a[_0xc6325e];return _0x55af2c;};const _0x471fe9=a682_0x55af;'use strict';const attributes=require('./userSmsQueue.attributes');module[_0x471fe9('0x3')]=function(_0x2089d0){const _0xf8cd58=_0x471fe9,_0x4893d2=_0x2089d0[_0xf8cd58('0x0')](_0xf8cd58('0x2'),attributes,{'tableName':_0xf8cd58('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4893d2;}; \ No newline at end of file +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 diff --git a/server/api/userVoiceQueue/index.js b/server/api/userVoiceQueue/index.js index e2f176c..60d95dd 100644 --- a/server/api/userVoiceQueue/index.js +++ b/server/api/userVoiceQueue/index.js @@ -1 +1 @@ -const a683_0x3a1d=['Router','express'];(function(_0x177059,_0x3a1dbe){const _0x318fea=function(_0x3c9513){while(--_0x3c9513){_0x177059['push'](_0x177059['shift']());}};_0x318fea(++_0x3a1dbe);}(a683_0x3a1d,0xdd));const a683_0x318f=function(_0x177059,_0x3a1dbe){_0x177059=_0x177059-0x0;let _0x318fea=a683_0x3a1d[_0x177059];return _0x318fea;};const _0x29aad0=a683_0x318f;'use strict';const express=require(_0x29aad0('0x0')),router=express[_0x29aad0('0x1')]();module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/userVoiceQueue/userVoiceQueue.attributes.js b/server/api/userVoiceQueue/userVoiceQueue.attributes.js index cb438cf..97dcaab 100644 --- a/server/api/userVoiceQueue/userVoiceQueue.attributes.js +++ b/server/api/userVoiceQueue/userVoiceQueue.attributes.js @@ -1 +1 @@ -const a684_0x11ee=['exports','INTEGER'];(function(_0x4502d6,_0x11ee19){const _0x286cb8=function(_0x4c409b){while(--_0x4c409b){_0x4502d6['push'](_0x4502d6['shift']());}};_0x286cb8(++_0x11ee19);}(a684_0x11ee,0x92));const a684_0x286c=function(_0x4502d6,_0x11ee19){_0x4502d6=_0x4502d6-0x0;let _0x286cb8=a684_0x11ee[_0x4502d6];return _0x286cb8;};const _0xb48840=a684_0x286c;'use strict';const Sequelize=require('sequelize');module[_0xb48840('0x0')]={'penalty':{'type':Sequelize[_0xb48840('0x1')],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/userVoiceQueue/userVoiceQueue.model.js b/server/api/userVoiceQueue/userVoiceQueue.model.js index 70675da..df3e80f 100644 --- a/server/api/userVoiceQueue/userVoiceQueue.model.js +++ b/server/api/userVoiceQueue/userVoiceQueue.model.js @@ -1 +1 @@ -const a685_0x40c2=['user_has_voice_queues','UserVoiceQueue','./userVoiceQueue.attributes','exports'];(function(_0x1f0dbf,_0x40c273){const _0x38570d=function(_0x371c9e){while(--_0x371c9e){_0x1f0dbf['push'](_0x1f0dbf['shift']());}};_0x38570d(++_0x40c273);}(a685_0x40c2,0x1c3));const a685_0x3857=function(_0x1f0dbf,_0x40c273){_0x1f0dbf=_0x1f0dbf-0x0;let _0x38570d=a685_0x40c2[_0x1f0dbf];return _0x38570d;};const _0x4b0cfc=a685_0x3857;'use strict';const attributes=require(_0x4b0cfc('0x3'));module[_0x4b0cfc('0x0')]=function(_0x371c9e){const _0xa6b834=_0x4b0cfc,_0x1c1192=_0x371c9e['define'](_0xa6b834('0x2'),attributes,{'tableName':_0xa6b834('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1c1192;}; \ No newline at end of file +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 diff --git a/server/api/userVoiceQueueRt/index.js b/server/api/userVoiceQueueRt/index.js index 9f5274c..fe23d12 100644 --- a/server/api/userVoiceQueueRt/index.js +++ b/server/api/userVoiceQueueRt/index.js @@ -1 +1 @@ -const a686_0x5319=['Router','express'];(function(_0x507674,_0x531905){const _0x33d7c6=function(_0x1c7759){while(--_0x1c7759){_0x507674['push'](_0x507674['shift']());}};_0x33d7c6(++_0x531905);}(a686_0x5319,0xd5));const a686_0x33d7=function(_0x507674,_0x531905){_0x507674=_0x507674-0x0;let _0x33d7c6=a686_0x5319[_0x507674];return _0x33d7c6;};const _0x5047fc=a686_0x33d7;'use strict';const express=require(_0x5047fc('0x0')),router=express[_0x5047fc('0x1')]();module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.attributes.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.attributes.js index ea63049..055e94e 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.attributes.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.attributes.js @@ -1 +1 @@ -const a687_0x244e=['Required\x20by\x20Asterisk','INTEGER','STRING','queue_interface','sequelize'];(function(_0xccb79a,_0x244e9b){const _0x25428d=function(_0x98e481){while(--_0x98e481){_0xccb79a['push'](_0xccb79a['shift']());}};_0x25428d(++_0x244e9b);}(a687_0x244e,0xd1));const a687_0x2542=function(_0xccb79a,_0x244e9b){_0xccb79a=_0xccb79a-0x0;let _0x25428d=a687_0x244e[_0xccb79a];return _0x25428d;};const _0x33fbb6=a687_0x2542;'use strict';const Sequelize=require(_0x33fbb6('0x0'));module['exports']={'uniqueid':{'type':Sequelize[_0x33fbb6('0x2')],'primaryKey':!![],'autoIncrement':!![],'comment':_0x33fbb6('0x1')},'membername':{'type':Sequelize[_0x33fbb6('0x3')],'allowNull':![],'comment':_0x33fbb6('0x1')},'UserId':{'type':Sequelize[_0x33fbb6('0x2')],'allowNull':![]},'queue_name':{'type':Sequelize[_0x33fbb6('0x3')],'allowNull':![],'unique':'queue_interface','comment':_0x33fbb6('0x1')},'VoiceQueueId':{'type':Sequelize['INTEGER'],'allowNull':![]},'interface':{'type':Sequelize['STRING'],'allowNull':![],'unique':_0x33fbb6('0x4'),'comment':_0x33fbb6('0x1')},'penalty':{'type':Sequelize[_0x33fbb6('0x2')](0xb),'defaultValue':0x0,'comment':_0x33fbb6('0x1')},'paused':{'type':Sequelize[_0x33fbb6('0x2')](0xb),'defaultValue':0x0,'comment':_0x33fbb6('0x1')}}; \ No newline at end of file +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 diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.events.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.events.js index ce91a7a..d86a657 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.events.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.events.js @@ -1 +1 @@ -const a688_0x5525=['addHook','update','remove','save','UserVoiceQueueRt'];(function(_0x3dca81,_0x552512){const _0x29bf4c=function(_0x1dfa8a){while(--_0x1dfa8a){_0x3dca81['push'](_0x3dca81['shift']());}};_0x29bf4c(++_0x552512);}(a688_0x5525,0x1ec));const a688_0x29bf=function(_0x3dca81,_0x552512){_0x3dca81=_0x3dca81-0x0;let _0x29bf4c=a688_0x5525[_0x3dca81];return _0x29bf4c;};const _0x3d4336=a688_0x29bf;'use strict';const EventEmitter=require('events'),UserVoiceQueueRt=require('../../mysqldb')['db'][_0x3d4336('0x2')],UserVoiceQueueRtEvents=new EventEmitter();UserVoiceQueueRtEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x3d4336('0x1'),'afterUpdate':_0x3d4336('0x4'),'afterDestroy':_0x3d4336('0x0')};function emitEvent(_0x1dfa8a){return function(_0x5f37bd){UserVoiceQueueRtEvents['emit'](_0x1dfa8a+':'+_0x5f37bd['id'],_0x5f37bd),UserVoiceQueueRtEvents['emit'](_0x1dfa8a,_0x5f37bd);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];UserVoiceQueueRt[_0x3d4336('0x3')](e,emitEvent(event));}}module['exports']=UserVoiceQueueRtEvents; \ No newline at end of file +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 diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.model.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.model.js index 15c7866..c61929b 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.model.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.model.js @@ -1 +1 @@ -const a689_0x2ca7=['UserVoiceQueueRt','./userVoiceQueueRt.attributes','define','exports'];(function(_0x19bb58,_0x2ca790){const _0x3ba5ee=function(_0x5eeb22){while(--_0x5eeb22){_0x19bb58['push'](_0x19bb58['shift']());}};_0x3ba5ee(++_0x2ca790);}(a689_0x2ca7,0x16b));const a689_0x3ba5=function(_0x19bb58,_0x2ca790){_0x19bb58=_0x19bb58-0x0;let _0x3ba5ee=a689_0x2ca7[_0x19bb58];return _0x3ba5ee;};const _0x5ac703=a689_0x3ba5;'use strict';const attributes=require(_0x5ac703('0x2'));module[_0x5ac703('0x0')]=function(_0x5eeb22){const _0x4e2e6b=_0x5ac703,_0x4741cf=_0x5eeb22[_0x4e2e6b('0x3')](_0x4e2e6b('0x1'),attributes,{'tableName':'user_has_voice_queues_rt','paranoid':![],'indexes':[],'timestamps':!![]});return _0x4741cf;}; \ No newline at end of file +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 diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.rpc.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.rpc.js index 18aa16e..cd197e9 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.rpc.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.rpc.js @@ -1 +1 @@ -const a690_0x22ab=['sequelize','./userVoiceQueueRt.socket','literal','GetVoiceQueueRtPauses','error','../../mysqldb','raw','../../rediscache','then','rpc','options','catch','message','where','info','register'];(function(_0x1a0e33,_0x22ab07){const _0x31a1e2=function(_0x5abc66){while(--_0x5abc66){_0x1a0e33['push'](_0x1a0e33['shift']());}};_0x31a1e2(++_0x22ab07);}(a690_0x22ab,0x14f));const a690_0x31a1=function(_0x1a0e33,_0x22ab07){_0x1a0e33=_0x1a0e33-0x0;let _0x31a1e2=a690_0x22ab[_0x1a0e33];return _0x31a1e2;};const _0x40d0eb=a690_0x31a1;'use strict';const db=require(_0x40d0eb('0x6'))['db'],logger=require('../../config/logger')(_0x40d0eb('0xa')),{getSocket}=require(_0x40d0eb('0x8')),socket=getSocket();require(_0x40d0eb('0x2'))[_0x40d0eb('0x0')](socket),exports['GetVoiceQueueRtPauses']=function(_0x5abc66){const _0x6b8efd=this;return new Promise(function(_0x569431,_0x53dc91){const _0x5a8aab=a690_0x31a1;return db['UserVoiceQueueRt']['findAll']({'raw':_0x5abc66[_0x5a8aab('0xb')]?_0x5abc66[_0x5a8aab('0xb')][_0x5a8aab('0x7')]===undefined?!![]:![]:!![],'where':_0x5abc66[_0x5a8aab('0xb')]?_0x5abc66[_0x5a8aab('0xb')][_0x5a8aab('0xe')]||null:null,'attributes':[[db[_0x5a8aab('0x1')]['fn']('COUNT',db[_0x5a8aab('0x1')]['fn']('IF',db[_0x5a8aab('0x1')][_0x5a8aab('0x3')]('`paused`\x20=\x201,\x201,\x20null'))),'outboundQueuePauses']]})[_0x5a8aab('0x9')](function(_0x570bc6){const _0x454032=_0x5a8aab;logger[_0x454032('0xf')](_0x454032('0x4'),_0x5abc66),logger['debug'](_0x454032('0x4'),_0x5abc66,JSON['stringify'](_0x570bc6)),_0x569431(_0x570bc6);})[_0x5a8aab('0xc')](function(_0x35406b){const _0x21611a=_0x5a8aab;logger[_0x21611a('0x5')](_0x21611a('0x4'),_0x35406b['message'],_0x5abc66),_0x53dc91(_0x6b8efd[_0x21611a('0x5')](0x1f4,_0x35406b[_0x21611a('0xd')]));});});}; \ No newline at end of file +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 diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.socket.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.socket.js index f34740f..d9d7cdf 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.socket.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.socket.js @@ -1 +1 @@ -const a691_0x2e8a=['update','userVoiceQueueRt:','save','remove','length','emit'];(function(_0x365895,_0x2e8a0b){const _0x1ee5df=function(_0x26de3c){while(--_0x26de3c){_0x365895['push'](_0x365895['shift']());}};_0x1ee5df(++_0x2e8a0b);}(a691_0x2e8a,0x109));const a691_0x1ee5=function(_0x365895,_0x2e8a0b){_0x365895=_0x365895-0x0;let _0x1ee5df=a691_0x2e8a[_0x365895];return _0x1ee5df;};const _0x16f3cb=a691_0x1ee5;'use strict';const UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events'),events=[_0x16f3cb('0x1'),_0x16f3cb('0x2'),_0x16f3cb('0x5')];function createListener(_0x26de3c,_0x5ab038){return function(_0x12e131){const _0x1a4c7a=a691_0x1ee5;_0x5ab038[_0x1a4c7a('0x4')](_0x26de3c,_0x12e131);};}exports['register']=function(_0x732582){const _0x3767b8=_0x16f3cb;for(let _0x4cd423=0x0,_0x593545=events[_0x3767b8('0x3')];_0x4cd423<_0x593545;_0x4cd423++){const _0x42f9cc=events[_0x4cd423],_0x5ae567=createListener(_0x3767b8('0x0')+_0x42f9cc,_0x732582);UserVoiceQueueRtEvents['on'](_0x42f9cc,_0x5ae567);}}; \ No newline at end of file +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 diff --git a/server/api/userWhatsappQueue/index.js b/server/api/userWhatsappQueue/index.js index 85a1278..46b039a 100644 --- a/server/api/userWhatsappQueue/index.js +++ b/server/api/userWhatsappQueue/index.js @@ -1 +1 @@ -const a692_0x5114=['express'];(function(_0x55c3bd,_0x511492){const _0x3a9408=function(_0x17a2ff){while(--_0x17a2ff){_0x55c3bd['push'](_0x55c3bd['shift']());}};_0x3a9408(++_0x511492);}(a692_0x5114,0x14e));const a692_0x3a94=function(_0x55c3bd,_0x511492){_0x55c3bd=_0x55c3bd-0x0;let _0x3a9408=a692_0x5114[_0x55c3bd];return _0x3a9408;};const _0xfd82af=a692_0x3a94;'use strict';const express=require(_0xfd82af('0x0')),router=express['Router']();module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/userWhatsappQueue/userWhatsappQueue.attributes.js b/server/api/userWhatsappQueue/userWhatsappQueue.attributes.js index 278ec71..a0e9ebe 100644 --- a/server/api/userWhatsappQueue/userWhatsappQueue.attributes.js +++ b/server/api/userWhatsappQueue/userWhatsappQueue.attributes.js @@ -1 +1 @@ -const a693_0x3865=['INTEGER','exports','sequelize'];(function(_0x47057a,_0x386586){const _0x7fcc47=function(_0x1c19e7){while(--_0x1c19e7){_0x47057a['push'](_0x47057a['shift']());}};_0x7fcc47(++_0x386586);}(a693_0x3865,0x1aa));const a693_0x7fcc=function(_0x47057a,_0x386586){_0x47057a=_0x47057a-0x0;let _0x7fcc47=a693_0x3865[_0x47057a];return _0x7fcc47;};const _0x4b3188=a693_0x7fcc;'use strict';const Sequelize=require(_0x4b3188('0x2'));module[_0x4b3188('0x1')]={'penalty':{'type':Sequelize[_0x4b3188('0x0')],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/userWhatsappQueue/userWhatsappQueue.model.js b/server/api/userWhatsappQueue/userWhatsappQueue.model.js index b4df0e0..698e02c 100644 --- a/server/api/userWhatsappQueue/userWhatsappQueue.model.js +++ b/server/api/userWhatsappQueue/userWhatsappQueue.model.js @@ -1 +1 @@ -const a694_0x1e77=['./userWhatsappQueue.attributes','UserWhatsappQueue','exports','define'];(function(_0x3e4be8,_0x1e7740){const _0x17777e=function(_0x219444){while(--_0x219444){_0x3e4be8['push'](_0x3e4be8['shift']());}};_0x17777e(++_0x1e7740);}(a694_0x1e77,0xbb));const a694_0x1777=function(_0x3e4be8,_0x1e7740){_0x3e4be8=_0x3e4be8-0x0;let _0x17777e=a694_0x1e77[_0x3e4be8];return _0x17777e;};const _0x15e824=a694_0x1777;'use strict';const attributes=require(_0x15e824('0x1'));module[_0x15e824('0x3')]=function(_0x219444){const _0x20eda4=_0x15e824,_0x42442d=_0x219444[_0x20eda4('0x0')](_0x20eda4('0x2'),attributes,{'tableName':'user_has_whatsapp_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x42442d;}; \ No newline at end of file +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 diff --git a/server/api/variable/index.js b/server/api/variable/index.js index 8e842e3..113ada2 100644 --- a/server/api/variable/index.js +++ b/server/api/variable/index.js @@ -1 +1 @@ -const a695_0x47c7=['exports','get','isAuthenticated','destroy','delete','./variable.controller','update','post','index','create','/:id','Router'];(function(_0x9b640d,_0x47c702){const _0x26960=function(_0x4fdf4c){while(--_0x4fdf4c){_0x9b640d['push'](_0x9b640d['shift']());}};_0x26960(++_0x47c702);}(a695_0x47c7,0x125));const a695_0x2696=function(_0x9b640d,_0x47c702){_0x9b640d=_0x9b640d-0x0;let _0x26960=a695_0x47c7[_0x9b640d];return _0x26960;};const _0x3d19ea=a695_0x2696;'use strict';const express=require('express'),router=express[_0x3d19ea('0x6')](),auth=require('../../components/auth/service'),controller=require(_0x3d19ea('0x0'));router[_0x3d19ea('0x8')]('/',auth['isAuthenticated'](),controller[_0x3d19ea('0x3')]),router[_0x3d19ea('0x8')](_0x3d19ea('0x5'),auth[_0x3d19ea('0x9')](),controller['show']),router[_0x3d19ea('0x2')]('/',auth[_0x3d19ea('0x9')](),controller[_0x3d19ea('0x4')]),router['put']('/:id',auth[_0x3d19ea('0x9')](),controller[_0x3d19ea('0x1')]),router[_0x3d19ea('0xb')](_0x3d19ea('0x5'),auth[_0x3d19ea('0x9')](),controller[_0x3d19ea('0xa')]),module[_0x3d19ea('0x7')]=router; \ No newline at end of file +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 diff --git a/server/api/variable/variable.attributes.js b/server/api/variable/variable.attributes.js index 9ddc04b..ab31d30 100644 --- a/server/api/variable/variable.attributes.js +++ b/server/api/variable/variable.attributes.js @@ -1 +1 @@ -const a696_0x99ce=['sequelize','name','STRING','exports'];(function(_0x4a3419,_0x99ce35){const _0x4d7c4a=function(_0xc70545){while(--_0xc70545){_0x4a3419['push'](_0x4a3419['shift']());}};_0x4d7c4a(++_0x99ce35);}(a696_0x99ce,0xdc));const a696_0x4d7c=function(_0x4a3419,_0x99ce35){_0x4a3419=_0x4a3419-0x0;let _0x4d7c4a=a696_0x99ce[_0x4a3419];return _0x4d7c4a;};const _0x33a6f6=a696_0x4d7c;'use strict';const Sequelize=require(_0x33a6f6('0x0'));module[_0x33a6f6('0x3')]={'name':{'type':Sequelize[_0x33a6f6('0x2')],'unique':_0x33a6f6('0x1'),'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +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 diff --git a/server/api/variable/variable.controller.js b/server/api/variable/variable.controller.js index 2152139..8e80e8c 100644 --- a/server/api/variable/variable.controller.js +++ b/server/api/variable/variable.controller.js @@ -1 +1 @@ -const a697_0x5934=['limit','json','fields','findOne','pick','count','status','includeAll','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','keys','length','order','send','fieldName','key','filter','nolimit','show','get','end','lodash','../../components/parsers/qs','body','UserProfileSection','filters','findAll','create','rawAttributes','user','destroy','query','merge','type','UserProfileResource','then','params','autoAssociation','name','userProfileId','undefined','include','options','model','attributes','like','Unable\x20to\x20retrieve\x20the\x20current\x20user','../../mysqldb','stack','update','where','Variables','set','sort','error','offset','map','../../config/logger','catch','intersection','Variable'];(function(_0x4ee9e1,_0x593410){const _0x11f73c=function(_0x3dc3ee){while(--_0x3dc3ee){_0x4ee9e1['push'](_0x4ee9e1['shift']());}};_0x11f73c(++_0x593410);}(a697_0x5934,0x1c8));const a697_0x11f7=function(_0x4ee9e1,_0x593410){_0x4ee9e1=_0x4ee9e1-0x0;let _0x11f73c=a697_0x5934[_0x4ee9e1];return _0x11f73c;};const _0x56ef2a=a697_0x11f7;'use strict';const _=require(_0x56ef2a('0x2c')),qs=require(_0x56ef2a('0x2d')),logger=require(_0x56ef2a('0x14'))('api'),db=require(_0x56ef2a('0xa'))['db'],{Op}=require('sequelize');function respondWithResult(_0x3dc3ee,_0x2dfa6e){return _0x2dfa6e=_0x2dfa6e||0xc8,function(_0x8bc541){const _0x4fabf9=a697_0x11f7;if(_0x8bc541)return _0x3dc3ee[_0x4fabf9('0x1e')](_0x2dfa6e)['json'](_0x8bc541);};}function respondWithFilteredResult(_0x1d2ab9,_0x4d88b9){return function(_0x11d964){const _0x3deaef=a697_0x11f7;if(_0x11d964){const _0x1633a3=_0x11d964['count'],_0x5e50c9=_0x4d88b9['offset'];let _0x358b7a=_0x4d88b9[_0x3deaef('0x12')]+_0x4d88b9[_0x3deaef('0x18')],_0xaf97c2;return _0x358b7a>=_0x1633a3?(_0x358b7a=_0x1633a3,_0xaf97c2=0xc8):_0xaf97c2=0xce,_0x1d2ab9['status'](_0xaf97c2),_0x1d2ab9[_0x3deaef('0xf')]('Content-Range',_0x5e50c9+'-'+_0x358b7a+'/'+_0x1633a3)[_0x3deaef('0x19')](_0x11d964);}return null;};}function saveUpdates(_0x42c98d){return function(_0x1c4f55){const _0x4e9803=a697_0x11f7;if(_0x1c4f55)return _0x1c4f55[_0x4e9803('0xc')](_0x42c98d)[_0x4e9803('0x3a')](function(_0x48bbd9){return _0x48bbd9;});return null;};}function removeEntity(_0x48fdba){return function(_0x3c8e12){const _0x168d98=a697_0x11f7;if(_0x3c8e12)return _0x3c8e12[_0x168d98('0x35')]()[_0x168d98('0x3a')](function(){const _0x5dc276=_0x168d98,_0x51e86f=_0x3c8e12['get']({'plain':!![]}),_0x41e204='Variables';return db[_0x5dc276('0x39')][_0x5dc276('0x35')]({'where':{'type':_0x41e204,'resourceId':_0x51e86f['id']}})['then'](function(){return _0x3c8e12;});})[_0x168d98('0x3a')](function(){const _0x432faf=_0x168d98;_0x48fdba[_0x432faf('0x1e')](0xcc)[_0x432faf('0x2b')]();});};}function handleEntityNotFound(_0x5b3c91){return function(_0x1ba3f4){return!_0x1ba3f4&&_0x5b3c91['sendStatus'](0x194),_0x1ba3f4;};}function handleError(_0x4ba25c,_0x51598a){return _0x51598a=_0x51598a||0x1f4,function(_0x5baeb3){const _0x21084b=a697_0x11f7;logger[_0x21084b('0x11')](_0x5baeb3[_0x21084b('0xb')]),_0x5baeb3[_0x21084b('0x1')]&&delete _0x5baeb3[_0x21084b('0x1')],_0x4ba25c['status'](_0x51598a)[_0x21084b('0x24')](_0x5baeb3);};}exports['index']=function(_0x179f5d,_0x5a6e7f){const _0x198dcf=_0x56ef2a;let _0x2ab28c={};const _0x372f42={},_0x44387f={'count':0x0,'rows':[]},_0x129952=_['map'](db[_0x198dcf('0x17')][_0x198dcf('0x33')],function(_0x52cd0a){const _0x5cfa7a=_0x198dcf;return{'name':_0x52cd0a[_0x5cfa7a('0x25')],'type':_0x52cd0a['type'][_0x5cfa7a('0x26')]};});_0x372f42[_0x198dcf('0x6')]=_[_0x198dcf('0x13')](_0x129952,_0x198dcf('0x1')),_0x372f42['query']=_[_0x198dcf('0x21')](_0x179f5d[_0x198dcf('0x36')]),_0x372f42[_0x198dcf('0x30')]=_[_0x198dcf('0x16')](_0x372f42[_0x198dcf('0x6')],_0x372f42['query']),_0x2ab28c[_0x198dcf('0x7')]=_[_0x198dcf('0x16')](_0x372f42['model'],qs[_0x198dcf('0x1a')](_0x179f5d[_0x198dcf('0x36')]['fields'])),_0x2ab28c[_0x198dcf('0x7')]=_0x2ab28c[_0x198dcf('0x7')][_0x198dcf('0x22')]?_0x2ab28c['attributes']:_0x372f42[_0x198dcf('0x6')];typeof _0x179f5d[_0x198dcf('0x36')][_0x198dcf('0x28')]===_0x198dcf('0x3')&&(_0x2ab28c['limit']=qs[_0x198dcf('0x18')](_0x179f5d[_0x198dcf('0x36')][_0x198dcf('0x18')]),_0x2ab28c[_0x198dcf('0x12')]=qs[_0x198dcf('0x12')](_0x179f5d['query'][_0x198dcf('0x12')]));_0x2ab28c[_0x198dcf('0x23')]=qs[_0x198dcf('0x10')](_0x179f5d[_0x198dcf('0x36')][_0x198dcf('0x10')]),_0x2ab28c['where']=qs[_0x198dcf('0x30')](_[_0x198dcf('0x1c')](_0x179f5d[_0x198dcf('0x36')],_0x372f42['filters']),_0x129952);_0x179f5d[_0x198dcf('0x36')][_0x198dcf('0x27')]&&(_0x2ab28c[_0x198dcf('0xd')]=_[_0x198dcf('0x37')](_0x2ab28c[_0x198dcf('0xd')],{[Op['or']]:_[_0x198dcf('0x13')](_0x129952,function(_0x4e9e57){const _0x5a7dbc=_0x198dcf;if(_0x4e9e57[_0x5a7dbc('0x38')]!=='VIRTUAL'){const _0x865367={};return _0x865367[_0x4e9e57[_0x5a7dbc('0x1')]]={[Op[_0x5a7dbc('0x8')]]:'%'+_0x179f5d[_0x5a7dbc('0x36')][_0x5a7dbc('0x27')]+'%'},_0x865367;}})}));_0x2ab28c=_[_0x198dcf('0x37')]({},_0x2ab28c,_0x179f5d[_0x198dcf('0x5')]);const _0x4a0c37={'where':_0x2ab28c[_0x198dcf('0xd')]};return db[_0x198dcf('0x17')][_0x198dcf('0x1d')](_0x4a0c37)[_0x198dcf('0x3a')](function(_0x285bd7){const _0x1eb600=_0x198dcf;return _0x44387f[_0x1eb600('0x1d')]=_0x285bd7,_0x179f5d[_0x1eb600('0x36')][_0x1eb600('0x1f')]&&(_0x2ab28c[_0x1eb600('0x4')]=[{'all':!![]}]),db[_0x1eb600('0x17')][_0x1eb600('0x31')](_0x2ab28c);})[_0x198dcf('0x3a')](function(_0x5a870d){return _0x44387f['rows']=_0x5a870d,_0x44387f;})[_0x198dcf('0x3a')](respondWithFilteredResult(_0x5a6e7f,_0x2ab28c))['catch'](handleError(_0x5a6e7f,null));},exports[_0x56ef2a('0x29')]=function(_0x5cb763,_0x404189){const _0x127016=_0x56ef2a;let _0x4d21be={'raw':!![],'where':{'id':_0x5cb763[_0x127016('0x3b')]['id']}};const _0x29b5bf={};return _0x29b5bf[_0x127016('0x6')]=_['keys'](db[_0x127016('0x17')][_0x127016('0x33')]),_0x29b5bf[_0x127016('0x36')]=_['keys'](_0x5cb763[_0x127016('0x36')]),_0x29b5bf[_0x127016('0x30')]=_['intersection'](_0x29b5bf['model'],_0x29b5bf[_0x127016('0x36')]),_0x4d21be[_0x127016('0x7')]=_['intersection'](_0x29b5bf[_0x127016('0x6')],qs[_0x127016('0x1a')](_0x5cb763[_0x127016('0x36')][_0x127016('0x1a')])),_0x4d21be[_0x127016('0x7')]=_0x4d21be[_0x127016('0x7')][_0x127016('0x22')]?_0x4d21be[_0x127016('0x7')]:_0x29b5bf['model'],_0x5cb763['query'][_0x127016('0x1f')]&&(_0x4d21be[_0x127016('0x4')]=[{'all':!![]}]),_0x4d21be=_[_0x127016('0x37')]({},_0x4d21be,_0x5cb763['options']),db[_0x127016('0x17')][_0x127016('0x1b')](_0x4d21be)[_0x127016('0x3a')](handleEntityNotFound(_0x404189,null))[_0x127016('0x3a')](respondWithResult(_0x404189,null))[_0x127016('0x15')](handleError(_0x404189,null));},exports[_0x56ef2a('0x32')]=function(_0x308264,_0x17e93d){const _0x2240c4=_0x56ef2a;return db[_0x2240c4('0x17')][_0x2240c4('0x32')](_0x308264[_0x2240c4('0x2e')],{})[_0x2240c4('0x3a')](function(_0x3a11df){const _0x50c76e=_0x2240c4,_0x4f46e9=_0x308264[_0x50c76e('0x34')][_0x50c76e('0x2a')]({'plain':!![]});if(!_0x4f46e9)throw new Error(_0x50c76e('0x9'));if(_0x4f46e9['role']===_0x50c76e('0x34')){const _0x10b14c=_0x3a11df[_0x50c76e('0x2a')]({'plain':!![]}),_0x261f8e=_0x50c76e('0xe');return db[_0x50c76e('0x2f')][_0x50c76e('0x1b')]({'where':{'name':_0x261f8e,'userProfileId':_0x4f46e9[_0x50c76e('0x2')]},'raw':!![]})[_0x50c76e('0x3a')](function(_0x1639ce){const _0x20253e=_0x50c76e;return _0x1639ce&&_0x1639ce[_0x20253e('0x0')]===0x0?db['UserProfileResource'][_0x20253e('0x32')]({'name':_0x10b14c[_0x20253e('0x1')],'resourceId':_0x10b14c['id'],'type':_0x1639ce[_0x20253e('0x1')],'sectionId':_0x1639ce['id']},{})['then'](function(){return _0x3a11df;}):_0x3a11df;})[_0x50c76e('0x15')](function(_0xebbd55){const _0x1832fe=_0x50c76e;logger['error'](_0x1832fe('0x20'),_0xebbd55);throw _0xebbd55;});}return _0x3a11df;})[_0x2240c4('0x3a')](respondWithResult(_0x17e93d,0xc9))['catch'](handleError(_0x17e93d,null));},exports['update']=function(_0x1045b7,_0x4eecaf){const _0x1745f6=_0x56ef2a;return _0x1045b7['body']['id']&&delete _0x1045b7[_0x1745f6('0x2e')]['id'],db[_0x1745f6('0x17')][_0x1745f6('0x1b')]({'where':{'id':_0x1045b7[_0x1745f6('0x3b')]['id']}})[_0x1745f6('0x3a')](handleEntityNotFound(_0x4eecaf,null))['then'](saveUpdates(_0x1045b7[_0x1745f6('0x2e')],null))[_0x1745f6('0x3a')](respondWithResult(_0x4eecaf,null))[_0x1745f6('0x15')](handleError(_0x4eecaf,null));},exports['destroy']=function(_0x1c1eb6,_0x1dbb90){const _0x534e6a=_0x56ef2a;return db['Variable']['findOne']({'where':{'id':_0x1c1eb6['params']['id']}})[_0x534e6a('0x3a')](handleEntityNotFound(_0x1dbb90,null))[_0x534e6a('0x3a')](removeEntity(_0x1dbb90,null))[_0x534e6a('0x15')](handleError(_0x1dbb90,null));}; \ No newline at end of file +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 diff --git a/server/api/variable/variable.model.js b/server/api/variable/variable.model.js index f0c8b30..8345e18 100644 --- a/server/api/variable/variable.model.js +++ b/server/api/variable/variable.model.js @@ -1 +1 @@ -const a698_0x3c78=['Variable','./variable.attributes','tools_variables','exports'];(function(_0x8644c,_0x3c7842){const _0x3072d7=function(_0x2f068a){while(--_0x2f068a){_0x8644c['push'](_0x8644c['shift']());}};_0x3072d7(++_0x3c7842);}(a698_0x3c78,0x1e8));const a698_0x3072=function(_0x8644c,_0x3c7842){_0x8644c=_0x8644c-0x0;let _0x3072d7=a698_0x3c78[_0x8644c];return _0x3072d7;};const _0x20680a=a698_0x3072;'use strict';const attributes=require(_0x20680a('0x1'));module[_0x20680a('0x3')]=function(_0x2f068a){const _0x359256=_0x20680a,_0x426e66=_0x2f068a['define'](_0x359256('0x0'),attributes,{'tableName':_0x359256('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x426e66;}; \ No newline at end of file +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 diff --git a/server/api/variable/variable.rpc.js b/server/api/variable/variable.rpc.js index 4cd3d27..f8a0b51 100644 --- a/server/api/variable/variable.rpc.js +++ b/server/api/variable/variable.rpc.js @@ -1 +1 @@ -const a699_0x4afa=['Variable','where','debug','map','../../mysqldb','model','../../config/logger','info','raw','catch','options','stringify','include','findOne','error','rpc','attributes','ShowVariable','message','lodash'];(function(_0x12a65d,_0x4afa06){const _0x1d3d2e=function(_0x5858c3){while(--_0x5858c3){_0x12a65d['push'](_0x12a65d['shift']());}};_0x1d3d2e(++_0x4afa06);}(a699_0x4afa,0xea));const a699_0x1d3d=function(_0x12a65d,_0x4afa06){_0x12a65d=_0x12a65d-0x0;let _0x1d3d2e=a699_0x4afa[_0x12a65d];return _0x1d3d2e;};const _0x7787be=a699_0x1d3d;'use strict';const db=require(_0x7787be('0xa'))['db'],logger=require(_0x7787be('0xc'))(_0x7787be('0x1')),_=require(_0x7787be('0x5'));exports['ShowVariable']=function(_0x5858c3){const _0x2abaf0=this;return new Promise(function(_0x315753,_0x2ecd52){const _0x275359=a699_0x1d3d;return db[_0x275359('0x6')][_0x275359('0x13')]({'raw':_0x5858c3['options']?_0x5858c3[_0x275359('0x10')][_0x275359('0xe')]===undefined?!![]:![]:!![],'where':_0x5858c3[_0x275359('0x10')]?_0x5858c3[_0x275359('0x10')][_0x275359('0x7')]||null:null,'attributes':_0x5858c3[_0x275359('0x10')]?_0x5858c3[_0x275359('0x10')]['attributes']||null:null,'include':_0x5858c3['options']?_0x5858c3[_0x275359('0x10')][_0x275359('0x12')]?_['map'](_0x5858c3['options'][_0x275359('0x12')],function(_0x507f51){const _0x1f5cf4=_0x275359;return{'model':db[_0x507f51[_0x1f5cf4('0xb')]],'as':_0x507f51['as'],'attributes':_0x507f51[_0x1f5cf4('0x2')],'include':_0x507f51['include']?_[_0x1f5cf4('0x9')](_0x507f51[_0x1f5cf4('0x12')],function(_0x33c929){const _0x14cd78=_0x1f5cf4;return{'model':db[_0x33c929[_0x14cd78('0xb')]],'as':_0x33c929['as'],'attributes':_0x33c929['attributes'],'include':_0x33c929[_0x14cd78('0x12')]?_[_0x14cd78('0x9')](_0x33c929[_0x14cd78('0x12')],function(_0x5056d){const _0xb0e53=_0x14cd78;return{'model':db[_0x5056d[_0xb0e53('0xb')]],'as':_0x5056d['as'],'attributes':_0x5056d[_0xb0e53('0x2')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x32c237){const _0x4f51cf=_0x275359;logger[_0x4f51cf('0xd')]('ShowVariable',_0x5858c3),logger[_0x4f51cf('0x8')](_0x4f51cf('0x3'),_0x5858c3,JSON[_0x4f51cf('0x11')](_0x32c237)),_0x315753(_0x32c237);})[_0x275359('0xf')](function(_0x488521){const _0x44d5f7=_0x275359;logger[_0x44d5f7('0x0')](_0x44d5f7('0x3'),_0x488521[_0x44d5f7('0x4')],_0x5858c3),_0x2ecd52(_0x2abaf0[_0x44d5f7('0x0')](0x1f4,_0x488521[_0x44d5f7('0x4')]));});});}; \ No newline at end of file +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 diff --git a/server/api/version/index.js b/server/api/version/index.js index fe75234..e2a4e4e 100644 --- a/server/api/version/index.js +++ b/server/api/version/index.js @@ -1 +1 @@ -const a700_0x4849=['reset','index','./version.controller','isAuthenticated','/reset','/migrations','restart','../../components/auth/service','/restart','exports','/pull','canUpdate','get','fetch'];(function(_0x213706,_0x48494d){const _0x3bee1d=function(_0x4acbf4){while(--_0x4acbf4){_0x213706['push'](_0x213706['shift']());}};_0x3bee1d(++_0x48494d);}(a700_0x4849,0xe6));const a700_0x3bee=function(_0x213706,_0x48494d){_0x213706=_0x213706-0x0;let _0x3bee1d=a700_0x4849[_0x213706];return _0x3bee1d;};const _0x2744c3=a700_0x3bee;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x2744c3('0x1')),controller=require(_0x2744c3('0xa'));router[_0x2744c3('0x6')]('/',controller[_0x2744c3('0x9')]),router['get']('/fetch',auth[_0x2744c3('0xb')](),auth[_0x2744c3('0x5')](),controller[_0x2744c3('0x7')]),router[_0x2744c3('0x6')](_0x2744c3('0xc'),auth['isAuthenticated'](),auth['canUpdate'](),controller[_0x2744c3('0x8')]),router[_0x2744c3('0x6')](_0x2744c3('0x4'),auth[_0x2744c3('0xb')](),auth[_0x2744c3('0x5')](),controller['pull']),router[_0x2744c3('0x6')](_0x2744c3('0x2'),auth[_0x2744c3('0xb')](),controller[_0x2744c3('0x0')]),router[_0x2744c3('0x6')](_0x2744c3('0xd'),controller['migrations']),module[_0x2744c3('0x3')]=router; \ No newline at end of file +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 diff --git a/server/api/version/version.controller.js b/server/api/version/version.controller.js index 98ccc2e..8d2396e 100644 --- a/server/api/version/version.controller.js +++ b/server/api/version/version.controller.js @@ -1 +1 @@ -const a701_0x203c=['umzug','constructor','reset','json','status','--hard','../../config/pm2','latest','2.0.0','git\x20fetch','Your\x20system\x20has\x20been\x20restart\x20successfully','info','path','then','restart','readdirSync','migrations','motion2','git\x20reset\x20--hard','npm\x20install\x20--production','error','pm2\x20restart\x20motion\x20%s','UniqueConstraintError','Database\x20migrated\x20successfully\x20from\x20version\x20','version','root','length','git\x20fetch\x20origin\x20master','getQueryInterface','pull','fetch','push','simple-git','map','../../config/logger','../../../package.json','sequelize','Database\x20already\x20up-to-date','last','query','child_process','update','master','join','catch','server','git\x20reset\x20--hard\x20FETCH_HEAD','Migration','origin','../../mysqldb','FETCH_HEAD','\x20to\x20'];(function(_0x440634,_0x203cd1){const _0x163512=function(_0x480e8b){while(--_0x480e8b){_0x440634['push'](_0x440634['shift']());}};_0x163512(++_0x203cd1);}(a701_0x203c,0xc0));const a701_0x1635=function(_0x440634,_0x203cd1){_0x440634=_0x440634-0x0;let _0x163512=a701_0x203c[_0x440634];return _0x163512;};const _0x33d799=a701_0x1635;'use strict';const Umzug=require(_0x33d799('0x10')),path=require(_0x33d799('0x1c')),fs=require('fs'),_=require('lodash'),compareVersions=require('compare-versions'),exec=require(_0x33d799('0x4'))['exec'],db=require(_0x33d799('0xd'))['db'],config=require('../../config/environment'),pm2=require(_0x33d799('0x16')),logger=require(_0x33d799('0x32'))(_0x33d799('0x5')),{version:packageVersion}=require(_0x33d799('0x33')),git=require(_0x33d799('0x30'))(config[_0x33d799('0x29')]);exports['index']=function(_0x480e8b,_0x5f4746){const _0x5ba852=_0x33d799,_0x4de3ce={'current':packageVersion,'phonebar':0x2};return _0x480e8b[_0x5ba852('0x3')]&&_0x480e8b[_0x5ba852('0x3')][_0x5ba852('0x17')]?git['fetch']()['tags'](function(_0x11d510,_0x45be60){const _0xba1378=_0x5ba852;return _0x4de3ce['latest']=(_0x11d510?packageVersion:_0x45be60[_0xba1378('0x17')])||_0xba1378('0x18'),_0x5f4746['status'](0xc8)[_0xba1378('0x13')](_0x4de3ce);}):_0x5f4746['status'](0xc8)[_0x5ba852('0x13')](_0x4de3ce);},exports[_0x33d799('0x2e')]=function(_0x488ea8,_0x536844){const _0xbb654c=_0x33d799;return git[_0xbb654c('0x2e')]([_0xbb654c('0xc'),_0xbb654c('0x6')],function(_0x3f0cd6){const _0x175fb7=_0xbb654c;if(_0x3f0cd6)return logger[_0x175fb7('0x24')](_0x3f0cd6),_0x536844[_0x175fb7('0x14')](0x1f4)[_0x175fb7('0x13')](_0x3f0cd6);return logger[_0x175fb7('0x1b')](_0x175fb7('0x19')),_0x536844[_0x175fb7('0x14')](0xc8)[_0x175fb7('0x13')]({'output':_0x175fb7('0x2b')});});},exports[_0x33d799('0x12')]=function(_0x17aa75,_0x317b4e){const _0x4c7e25=_0x33d799;return git[_0x4c7e25('0x12')]([_0x4c7e25('0x15'),_0x4c7e25('0xe')],function(_0x9e9874){const _0x3a9bb7=_0x4c7e25;if(_0x9e9874)return logger[_0x3a9bb7('0x24')](_0x9e9874),_0x317b4e[_0x3a9bb7('0x14')](0x1f4)[_0x3a9bb7('0x13')](_0x9e9874);return logger[_0x3a9bb7('0x1b')](_0x3a9bb7('0xa')),_0x317b4e['status'](0xc8)[_0x3a9bb7('0x13')]({'output':_0x3a9bb7('0x22')});});},exports[_0x33d799('0x2d')]=function(_0x17253c,_0x53c8c6){const _0x2295cb=_0x33d799;exec(_0x2295cb('0x23'),function(_0x17d64b,_0x5e7ce4,_0x379e37){const _0x4eddf8=_0x2295cb;logger[_0x4eddf8('0x1b')](_0x5e7ce4),logger[_0x4eddf8('0x1b')](_0x379e37);if(_0x17d64b)return logger[_0x4eddf8('0x24')](_0x17d64b),_0x53c8c6[_0x4eddf8('0x14')](0x1f4)[_0x4eddf8('0x13')](_0x17d64b);return _0x53c8c6[_0x4eddf8('0x14')](0xc8)[_0x4eddf8('0x13')]({'output':_0x5e7ce4});});},exports[_0x33d799('0x1e')]=function(_0x5d9c59,_0x37ae41){const _0x4655bf=_0x33d799;return pm2['restart'](_0x4655bf('0x21'))[_0x4655bf('0x1d')](function(_0x27e369){const _0x53cdcf=_0x4655bf;return logger[_0x53cdcf('0x1b')](_0x53cdcf('0x25'),_0x27e369),_0x37ae41[_0x53cdcf('0x14')](0xc8)['json']({'output':_0x53cdcf('0x1a')});})[_0x4655bf('0x8')](function(_0x38e327){const _0x5cbbb1=_0x4655bf;return logger[_0x5cbbb1('0x24')](_0x38e327),_0x37ae41[_0x5cbbb1('0x14')](0x1f4)[_0x5cbbb1('0x13')](_0x38e327);});},exports[_0x33d799('0x20')]=function(_0x45cd8d,_0x4341d1){const _0x502d74=_0x33d799,_0x103a4c=fs[_0x502d74('0x1f')](path[_0x502d74('0x7')](config[_0x502d74('0x29')],'migrations')),_0x44ba3e=[];for(let _0x586f1a=0x0;_0x586f1a<_0x103a4c['length'];_0x586f1a++){const _0x5cd710=_0x103a4c[_0x586f1a]['replace']('.js','');compareVersions(packageVersion,_0x5cd710)===-0x1&&_0x44ba3e[_0x502d74('0x2f')](_0x5cd710);}if(_0x44ba3e[_0x502d74('0x2a')]){const _0x365f6d=_0x44ba3e['sort'](compareVersions),_0x33d961=new Umzug({'storage':'sequelize','storageOptions':{'model':db[_0x502d74('0xb')],'modelName':_0x502d74('0xb'),'columnName':_0x502d74('0x28')},'migrations':{'params':[db[_0x502d74('0x0')][_0x502d74('0x2c')](),db[_0x502d74('0x0')][_0x502d74('0x11')],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['join'](config[_0x502d74('0x29')],_0x502d74('0x9'),_0x502d74('0x20')),'pattern':/\.js$/}});_0x33d961['up']({'migrations':_[_0x502d74('0x31')](_0x365f6d,function(_0x5c4680){return _0x5c4680+'.js';})})[_0x502d74('0x1d')](function(){const _0x4b041f=_0x502d74;return _0x4341d1[_0x4b041f('0x14')](0xc8)[_0x4b041f('0x13')]({'output':_0x4b041f('0x27')+packageVersion+_0x4b041f('0xf')+_[_0x4b041f('0x2')](_0x365f6d),'migrations':_[_0x4b041f('0x7')](_0x365f6d)});})[_0x502d74('0x8')](function(_0x2b5370){const _0x467dd3=_0x502d74;return _0x2b5370 instanceof db[_0x467dd3('0x0')][_0x467dd3('0x26')]?_0x4341d1['status'](0xc8)[_0x467dd3('0x13')]({'output':'Database\x20already\x20up-to-date'}):_0x4341d1[_0x467dd3('0x14')](0x1f4)[_0x467dd3('0x13')](_0x2b5370);});}else return _0x4341d1[_0x502d74('0x14')](0xc8)[_0x502d74('0x13')]({'output':_0x502d74('0x1')});}; \ No newline at end of file +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 diff --git a/server/api/voiceAgentReport/index.js b/server/api/voiceAgentReport/index.js index e5c65ba..1bd9c0a 100644 --- a/server/api/voiceAgentReport/index.js +++ b/server/api/voiceAgentReport/index.js @@ -1 +1 @@ -const a702_0x447f=['index','destroy','express','isAuthenticated','/:id','../../components/auth/service','/describe','Router','get','post','create','exports'];(function(_0x5ee130,_0x447f6a){const _0x3b2e00=function(_0x2f5b64){while(--_0x2f5b64){_0x5ee130['push'](_0x5ee130['shift']());}};_0x3b2e00(++_0x447f6a);}(a702_0x447f,0x10d));const a702_0x3b2e=function(_0x5ee130,_0x447f6a){_0x5ee130=_0x5ee130-0x0;let _0x3b2e00=a702_0x447f[_0x5ee130];return _0x3b2e00;};const _0x558b55=a702_0x3b2e;'use strict';const express=require(_0x558b55('0x9')),router=express[_0x558b55('0x2')](),auth=require(_0x558b55('0x0')),controller=require('./voiceAgentReport.controller');router[_0x558b55('0x3')]('/',auth[_0x558b55('0xa')](),controller[_0x558b55('0x7')]),router[_0x558b55('0x3')](_0x558b55('0x1'),auth[_0x558b55('0xa')](),controller['describe']),router[_0x558b55('0x3')]('/:id',auth[_0x558b55('0xa')](),controller['show']),router[_0x558b55('0x4')]('/',auth['isAuthenticated'](),controller[_0x558b55('0x5')]),router['put']('/:id',auth['isAuthenticated'](),controller['update']),router['delete'](_0x558b55('0xb'),auth[_0x558b55('0xa')](),controller[_0x558b55('0x8')]),module[_0x558b55('0x6')]=router; \ No newline at end of file +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 diff --git a/server/api/voiceAgentReport/voiceAgentReport.attributes.js b/server/api/voiceAgentReport/voiceAgentReport.attributes.js index 8e3b1a2..77a3f7f 100644 --- a/server/api/voiceAgentReport/voiceAgentReport.attributes.js +++ b/server/api/voiceAgentReport/voiceAgentReport.attributes.js @@ -1 +1 @@ -const a703_0x111b=['DATE','exports','STRING','FORWARD,\x20BLIND,\x20ATTENDED','sequelize','BOOLEAN','INTEGER'];(function(_0x1c2410,_0x111b79){const _0x1fff03=function(_0x419325){while(--_0x419325){_0x1c2410['push'](_0x1c2410['shift']());}};_0x1fff03(++_0x111b79);}(a703_0x111b,0x8d));const a703_0x1fff=function(_0x1c2410,_0x111b79){_0x1c2410=_0x1c2410-0x0;let _0x1fff03=a703_0x111b[_0x1c2410];return _0x1fff03;};const _0x487a56=a703_0x1fff;'use strict';const Sequelize=require(_0x487a56('0x3'));module[_0x487a56('0x0')]={'type':{'type':Sequelize[_0x487a56('0x1')]},'uniqueid':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize[_0x487a56('0x1')]},'calleridname':{'type':Sequelize[_0x487a56('0x1')]},'queue':{'type':Sequelize[_0x487a56('0x1')]},'interface':{'type':Sequelize['STRING']},'membername':{'type':Sequelize['STRING']},'agentcalledAt':{'type':Sequelize[_0x487a56('0x6')]},'agentconnectAt':{'type':Sequelize['DATE']},'agentcompleteAt':{'type':Sequelize['DATE']},'agentringnoanswerAt':{'type':Sequelize[_0x487a56('0x6')]},'agentdumpAt':{'type':Sequelize[_0x487a56('0x6')]},'holdtime':{'type':Sequelize[_0x487a56('0x5')]},'agentcomplete':{'type':Sequelize[_0x487a56('0x4')],'defaultValue':![]},'agentringnoanswer':{'type':Sequelize[_0x487a56('0x4')],'defaultValue':![]},'agentdump':{'type':Sequelize[_0x487a56('0x4')],'defaultValue':![]},'talktime':{'type':Sequelize[_0x487a56('0x5')]},'agentacw':{'type':Sequelize[_0x487a56('0x4')],'defaultValue':![]},'acwtime':{'type':Sequelize['INTEGER']},'reason':{'type':Sequelize['STRING']},'lastevent':{'type':Sequelize[_0x487a56('0x1')]},'channel':{'type':Sequelize['STRING']},'channelstate':{'type':Sequelize['INTEGER']},'channelstatedesc':{'type':Sequelize[_0x487a56('0x1')]},'connectedlinenum':{'type':Sequelize[_0x487a56('0x1')]},'connectedlinename':{'type':Sequelize[_0x487a56('0x1')]},'language':{'type':Sequelize[_0x487a56('0x1')]},'accountcode':{'type':Sequelize[_0x487a56('0x1')]},'context':{'type':Sequelize[_0x487a56('0x1')]},'exten':{'type':Sequelize[_0x487a56('0x1')]},'priority':{'type':Sequelize[_0x487a56('0x1')]},'destchannel':{'type':Sequelize[_0x487a56('0x1')]},'destchannelstate':{'type':Sequelize[_0x487a56('0x5')]},'destchannelstatedesc':{'type':Sequelize['STRING']},'destcalleridnum':{'type':Sequelize['STRING']},'destcalleridname':{'type':Sequelize['STRING']},'destconnectedlinenum':{'type':Sequelize[_0x487a56('0x1')]},'destconnectedlinename':{'type':Sequelize[_0x487a56('0x1')]},'destlanguage':{'type':Sequelize[_0x487a56('0x1')]},'destaccountcode':{'type':Sequelize['STRING']},'destcontext':{'type':Sequelize[_0x487a56('0x1')]},'destexten':{'type':Sequelize['STRING']},'destpriority':{'type':Sequelize['STRING']},'destuniqueid':{'type':Sequelize[_0x487a56('0x1')]},'answeredelsewheredestinationuniqueid':{'type':Sequelize['STRING']},'answeredelsewheremembername':{'type':Sequelize[_0x487a56('0x1')]},'transfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'transfertype':{'type':Sequelize[_0x487a56('0x1')],'comment':_0x487a56('0x2')},'transferexten':{'type':Sequelize[_0x487a56('0x1')]},'transferuniqueid':{'type':Sequelize[_0x487a56('0x1')]},'agententerreason':{'type':Sequelize[_0x487a56('0x5')],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/voiceAgentReport/voiceAgentReport.controller.js b/server/api/voiceAgentReport/voiceAgentReport.controller.js index 4f03bf4..eef57b1 100644 --- a/server/api/voiceAgentReport/voiceAgentReport.controller.js +++ b/server/api/voiceAgentReport/voiceAgentReport.controller.js @@ -1 +1 @@ -const a704_0x5d13=['describe','rawAttributes','count','findAll','order','name','includeAll','attributes','VoiceAgentReport','include','create','intersection','type','stack','filter','map','destroy','filters','query','options','end','then','show','catch','key','lodash','limit','offset','Content-Range','error','findOne','fields','../../config/logger','status','sort','merge','sequelize','send','index','model','params','../../components/parsers/qs','api','update','fieldName','keys','nolimit','VIRTUAL','body','where','sendStatus','rows','length'];(function(_0x1d3cd8,_0x5d13b7){const _0xac47e9=function(_0x1905a4){while(--_0x1905a4){_0x1d3cd8['push'](_0x1d3cd8['shift']());}};_0xac47e9(++_0x5d13b7);}(a704_0x5d13,0x89));const a704_0xac47=function(_0x1d3cd8,_0x5d13b7){_0x1d3cd8=_0x1d3cd8-0x0;let _0xac47e9=a704_0x5d13[_0x1d3cd8];return _0xac47e9;};const _0xfc2797=a704_0xac47;'use strict';const _=require(_0xfc2797('0x2f')),qs=require(_0xfc2797('0xa')),logger=require(_0xfc2797('0x1'))(_0xfc2797('0xb')),db=require('../../mysqldb')['db'],{Op}=require(_0xfc2797('0x5'));function respondWithResult(_0x1905a4,_0x763a99){return _0x763a99=_0x763a99||0xc8,function(_0x2469b8){const _0x4be727=a704_0xac47;if(_0x2469b8)return _0x1905a4[_0x4be727('0x2')](_0x763a99)['json'](_0x2469b8);};}function respondWithFilteredResult(_0x11ae95,_0x5e9ce2){return function(_0x28b1b4){const _0x75a4ad=a704_0xac47;if(_0x28b1b4){const _0x495882=_0x28b1b4[_0x75a4ad('0x18')],_0x3085cd=_0x5e9ce2[_0x75a4ad('0x31')];let _0x65e3a4=_0x5e9ce2[_0x75a4ad('0x31')]+_0x5e9ce2[_0x75a4ad('0x30')],_0x58d372;return _0x65e3a4>=_0x495882?(_0x65e3a4=_0x495882,_0x58d372=0xc8):_0x58d372=0xce,_0x11ae95['status'](_0x58d372),_0x11ae95['set'](_0x75a4ad('0x32'),_0x3085cd+'-'+_0x65e3a4+'/'+_0x495882)['json'](_0x28b1b4);}return null;};}function saveUpdates(_0x1952e2){return function(_0x56514f){const _0x2c8de7=a704_0xac47;if(_0x56514f)return _0x56514f[_0x2c8de7('0xc')](_0x1952e2)[_0x2c8de7('0x2b')](function(_0x4412d5){return _0x4412d5;});return null;};}function removeEntity(_0x3a067d){return function(_0x379874){const _0x586db9=a704_0xac47;if(_0x379874)return _0x379874[_0x586db9('0x26')]()[_0x586db9('0x2b')](function(){const _0x398f32=_0x586db9;_0x3a067d['status'](0xcc)[_0x398f32('0x2a')]();});};}function handleEntityNotFound(_0x4fba3c){return function(_0x37d284){const _0x58bcb4=a704_0xac47;return!_0x37d284&&_0x4fba3c[_0x58bcb4('0x13')](0x194),_0x37d284;};}function handleError(_0xb0af6,_0x2df4ee){return _0x2df4ee=_0x2df4ee||0x1f4,function(_0x2fd753){const _0x3b5990=a704_0xac47;logger[_0x3b5990('0x33')](_0x2fd753[_0x3b5990('0x23')]),_0x2fd753[_0x3b5990('0x1b')]&&delete _0x2fd753[_0x3b5990('0x1b')],_0xb0af6['status'](_0x2df4ee)[_0x3b5990('0x6')](_0x2fd753);};}exports[_0xfc2797('0x7')]=function(_0x49e364,_0xe1e691){const _0x18a69d=_0xfc2797;let _0x2f0b4f={};const _0x52b8d9={},_0x56f44e={'count':0x0,'rows':[]},_0x31bf6a=_[_0x18a69d('0x25')](db[_0x18a69d('0x1e')]['rawAttributes'],function(_0x1b7edd){const _0x5db503=_0x18a69d;return{'name':_0x1b7edd[_0x5db503('0xd')],'type':_0x1b7edd[_0x5db503('0x22')][_0x5db503('0x2e')]};});_0x52b8d9['model']=_[_0x18a69d('0x25')](_0x31bf6a,_0x18a69d('0x1b')),_0x52b8d9[_0x18a69d('0x28')]=_[_0x18a69d('0xe')](_0x49e364[_0x18a69d('0x28')]),_0x52b8d9[_0x18a69d('0x27')]=_['intersection'](_0x52b8d9[_0x18a69d('0x8')],_0x52b8d9['query']),_0x2f0b4f[_0x18a69d('0x1d')]=_[_0x18a69d('0x21')](_0x52b8d9[_0x18a69d('0x8')],qs[_0x18a69d('0x0')](_0x49e364[_0x18a69d('0x28')][_0x18a69d('0x0')])),_0x2f0b4f[_0x18a69d('0x1d')]=_0x2f0b4f[_0x18a69d('0x1d')][_0x18a69d('0x15')]?_0x2f0b4f[_0x18a69d('0x1d')]:_0x52b8d9[_0x18a69d('0x8')];typeof _0x49e364[_0x18a69d('0x28')][_0x18a69d('0xf')]==='undefined'&&(_0x2f0b4f[_0x18a69d('0x30')]=qs[_0x18a69d('0x30')](_0x49e364[_0x18a69d('0x28')][_0x18a69d('0x30')]),_0x2f0b4f[_0x18a69d('0x31')]=qs[_0x18a69d('0x31')](_0x49e364['query'][_0x18a69d('0x31')]));_0x2f0b4f[_0x18a69d('0x1a')]=qs[_0x18a69d('0x3')](_0x49e364[_0x18a69d('0x28')][_0x18a69d('0x3')]),_0x2f0b4f['where']=qs['filters'](_['pick'](_0x49e364[_0x18a69d('0x28')],_0x52b8d9[_0x18a69d('0x27')]),_0x31bf6a);_0x49e364[_0x18a69d('0x28')][_0x18a69d('0x24')]&&(_0x2f0b4f[_0x18a69d('0x12')]=_['merge'](_0x2f0b4f[_0x18a69d('0x12')],{[Op['or']]:_[_0x18a69d('0x25')](_0x31bf6a,function(_0x23f923){const _0x309cc5=_0x18a69d;if(_0x23f923[_0x309cc5('0x22')]!==_0x309cc5('0x10')){const _0x14f789={};return _0x14f789[_0x23f923[_0x309cc5('0x1b')]]={[Op['like']]:'%'+_0x49e364[_0x309cc5('0x28')]['filter']+'%'},_0x14f789;}})}));_0x2f0b4f=_['merge']({},_0x2f0b4f,_0x49e364[_0x18a69d('0x29')]);const _0x13bff8={'where':_0x2f0b4f[_0x18a69d('0x12')]};return db[_0x18a69d('0x1e')][_0x18a69d('0x18')](_0x13bff8)[_0x18a69d('0x2b')](function(_0x1193f7){const _0x55cf24=_0x18a69d;return _0x56f44e['count']=_0x1193f7,_0x49e364[_0x55cf24('0x28')][_0x55cf24('0x1c')]&&(_0x2f0b4f[_0x55cf24('0x1f')]=[{'all':!![]}]),db[_0x55cf24('0x1e')][_0x55cf24('0x19')](_0x2f0b4f);})['then'](function(_0x5690b2){const _0xa19ae=_0x18a69d;return _0x56f44e[_0xa19ae('0x14')]=_0x5690b2,_0x56f44e;})[_0x18a69d('0x2b')](respondWithFilteredResult(_0xe1e691,_0x2f0b4f))[_0x18a69d('0x2d')](handleError(_0xe1e691,null));},exports[_0xfc2797('0x2c')]=function(_0x214bb7,_0x50ab07){const _0x101026=_0xfc2797;let _0x5a9cf7={'raw':![],'where':{'id':_0x214bb7[_0x101026('0x9')]['id']}};const _0x3bbed3={};return _0x3bbed3[_0x101026('0x8')]=_[_0x101026('0xe')](db[_0x101026('0x1e')][_0x101026('0x17')]),_0x3bbed3[_0x101026('0x28')]=_[_0x101026('0xe')](_0x214bb7['query']),_0x3bbed3['filters']=_[_0x101026('0x21')](_0x3bbed3[_0x101026('0x8')],_0x3bbed3[_0x101026('0x28')]),_0x5a9cf7['attributes']=_[_0x101026('0x21')](_0x3bbed3['model'],qs[_0x101026('0x0')](_0x214bb7[_0x101026('0x28')][_0x101026('0x0')])),_0x5a9cf7[_0x101026('0x1d')]=_0x5a9cf7[_0x101026('0x1d')][_0x101026('0x15')]?_0x5a9cf7[_0x101026('0x1d')]:_0x3bbed3[_0x101026('0x8')],_0x214bb7[_0x101026('0x28')]['includeAll']&&(_0x5a9cf7[_0x101026('0x1f')]=[{'all':!![]}]),_0x5a9cf7=_[_0x101026('0x4')]({},_0x5a9cf7,_0x214bb7[_0x101026('0x29')]),db[_0x101026('0x1e')][_0x101026('0x34')](_0x5a9cf7)['then'](handleEntityNotFound(_0x50ab07,null))['then'](respondWithResult(_0x50ab07,null))[_0x101026('0x2d')](handleError(_0x50ab07,null));},exports[_0xfc2797('0x20')]=function(_0xffaee9,_0x2751e9){const _0x5def98=_0xfc2797;return db[_0x5def98('0x1e')][_0x5def98('0x20')](_0xffaee9[_0x5def98('0x11')],{})[_0x5def98('0x2b')](respondWithResult(_0x2751e9,0xc9))['catch'](handleError(_0x2751e9,null));},exports[_0xfc2797('0xc')]=function(_0x2742f9,_0x30cc38){const _0x53fd81=_0xfc2797;return _0x2742f9['body']['id']&&delete _0x2742f9[_0x53fd81('0x11')]['id'],db['VoiceAgentReport'][_0x53fd81('0x34')]({'where':{'id':_0x2742f9[_0x53fd81('0x9')]['id']}})['then'](handleEntityNotFound(_0x30cc38,null))[_0x53fd81('0x2b')](saveUpdates(_0x2742f9[_0x53fd81('0x11')],null))[_0x53fd81('0x2b')](respondWithResult(_0x30cc38,null))[_0x53fd81('0x2d')](handleError(_0x30cc38,null));},exports['destroy']=function(_0xb38b45,_0x193a06){const _0x200bdb=_0xfc2797;return db[_0x200bdb('0x1e')]['findOne']({'where':{'id':_0xb38b45[_0x200bdb('0x9')]['id']}})[_0x200bdb('0x2b')](handleEntityNotFound(_0x193a06,null))[_0x200bdb('0x2b')](removeEntity(_0x193a06,null))[_0x200bdb('0x2d')](handleError(_0x193a06,null));},exports[_0xfc2797('0x16')]=function(_0x356bb0,_0x46d51d){const _0x57f839=_0xfc2797;return db[_0x57f839('0x1e')][_0x57f839('0x16')]()[_0x57f839('0x2b')](respondWithResult(_0x46d51d,null))['catch'](handleError(_0x46d51d,null));}; \ No newline at end of file +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 diff --git a/server/api/voiceAgentReport/voiceAgentReport.model.js b/server/api/voiceAgentReport/voiceAgentReport.model.js index a475a45..843f02c 100644 --- a/server/api/voiceAgentReport/voiceAgentReport.model.js +++ b/server/api/voiceAgentReport/voiceAgentReport.model.js @@ -1 +1 @@ -const a705_0x56ff=['VoiceAgentReport','define','exports','report_agent','./voiceAgentReport.attributes','destuniqueid'];(function(_0x670b0e,_0x56ff67){const _0x4a0eac=function(_0x33c632){while(--_0x33c632){_0x670b0e['push'](_0x670b0e['shift']());}};_0x4a0eac(++_0x56ff67);}(a705_0x56ff,0x17d));const a705_0x4a0e=function(_0x670b0e,_0x56ff67){_0x670b0e=_0x670b0e-0x0;let _0x4a0eac=a705_0x56ff[_0x670b0e];return _0x4a0eac;};const _0x38818a=a705_0x4a0e;'use strict';const attributes=require(_0x38818a('0x1'));module[_0x38818a('0x5')]=function(_0x33c632){const _0x27576e=_0x38818a,_0x20ad2b=_0x33c632[_0x27576e('0x4')](_0x27576e('0x3'),attributes,{'tableName':_0x27576e('0x0'),'paranoid':![],'indexes':[{'fields':['uniqueid',_0x27576e('0x2')]}],'timestamps':!![]});return _0x20ad2b;}; \ No newline at end of file +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 diff --git a/server/api/voiceAgentReport/voiceAgentReport.rpc.js b/server/api/voiceAgentReport/voiceAgentReport.rpc.js index b25831f..cf453c5 100644 --- a/server/api/voiceAgentReport/voiceAgentReport.rpc.js +++ b/server/api/voiceAgentReport/voiceAgentReport.rpc.js @@ -1 +1 @@ -const a706_0x48fb=['where','body','rpc','CreateVoiceAgentReport','UpdateVoiceAgentReport','../../mysqldb','message','attributes','then','debug','options','create','VoiceAgentReport','info','update','catch','stringify','../../config/logger','error'];(function(_0x97529d,_0x48fbf4){const _0x242e6b=function(_0x51994f){while(--_0x51994f){_0x97529d['push'](_0x97529d['shift']());}};_0x242e6b(++_0x48fbf4);}(a706_0x48fb,0x1af));const a706_0x242e=function(_0x97529d,_0x48fbf4){_0x97529d=_0x97529d-0x0;let _0x242e6b=a706_0x48fb[_0x97529d];return _0x242e6b;};const _0x2e3f0e=a706_0x242e;'use strict';const db=require(_0x2e3f0e('0xb'))['db'],logger=require(_0x2e3f0e('0x4'))(_0x2e3f0e('0x8'));exports[_0x2e3f0e('0x9')]=function(_0x51994f){const _0x3d3922=this;return new Promise(function(_0x2810b8,_0x4f0d01){const _0x4767bd=a706_0x242e;return db[_0x4767bd('0x12')][_0x4767bd('0x11')](_0x51994f['body'],{'raw':_0x51994f[_0x4767bd('0x10')]?_0x51994f[_0x4767bd('0x10')]['raw']===undefined?!![]:![]:!![]})[_0x4767bd('0xe')](function(_0x35fed2){const _0x2c5229=_0x4767bd;logger[_0x2c5229('0x0')](_0x2c5229('0x9'),_0x51994f),logger[_0x2c5229('0xf')](_0x2c5229('0x9'),_0x51994f,JSON[_0x2c5229('0x3')](_0x35fed2)),_0x2810b8(_0x35fed2);})[_0x4767bd('0x2')](function(_0x534323){const _0x1f6293=_0x4767bd;logger['error'](_0x1f6293('0x9'),_0x534323[_0x1f6293('0xc')],_0x51994f),_0x4f0d01(_0x3d3922[_0x1f6293('0x5')](0x1f4,_0x534323[_0x1f6293('0xc')]));});});},exports[_0x2e3f0e('0xa')]=function(_0x4a74d3){const _0x1cb6a1=this;return new Promise(function(_0x2612b5,_0x14df9d){const _0x893db3=a706_0x242e;return db[_0x893db3('0x12')][_0x893db3('0x1')](_0x4a74d3[_0x893db3('0x7')],{'raw':_0x4a74d3[_0x893db3('0x10')]?_0x4a74d3[_0x893db3('0x10')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x4a74d3['options']?_0x4a74d3['options'][_0x893db3('0x6')]||null:null,'attributes':_0x4a74d3['options']?_0x4a74d3['options'][_0x893db3('0xd')]||null:null,'limit':_0x4a74d3[_0x893db3('0x10')]?_0x4a74d3[_0x893db3('0x10')]['limit']||null:null})[_0x893db3('0xe')](function(_0x5220ac){const _0x40a5cd=_0x893db3;logger['info'](_0x40a5cd('0xa'),_0x4a74d3),logger[_0x40a5cd('0xf')](_0x40a5cd('0xa'),_0x4a74d3,JSON[_0x40a5cd('0x3')](_0x5220ac)),_0x2612b5(_0x5220ac);})[_0x893db3('0x2')](function(_0x1cc683){const _0x52e8db=_0x893db3;logger[_0x52e8db('0x5')]('UpdateVoiceAgentReport',_0x1cc683[_0x52e8db('0xc')],_0x4a74d3),_0x14df9d(_0x1cb6a1['error'](0x1f4,_0x1cc683[_0x52e8db('0xc')]));});});}; \ No newline at end of file +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 diff --git a/server/api/voiceCallReport/index.js b/server/api/voiceCallReport/index.js index aafa430..94f0549 100644 --- a/server/api/voiceCallReport/index.js +++ b/server/api/voiceCallReport/index.js @@ -1 +1 @@ -const a707_0x4065=['/describe','show','post','get','exports','describe','put','create','delete','isAuthenticated','./voiceCallReport.controller','/:id','destroy'];(function(_0x1f9b03,_0x40657f){const _0x114913=function(_0x582956){while(--_0x582956){_0x1f9b03['push'](_0x1f9b03['shift']());}};_0x114913(++_0x40657f);}(a707_0x4065,0x134));const a707_0x1149=function(_0x1f9b03,_0x40657f){_0x1f9b03=_0x1f9b03-0x0;let _0x114913=a707_0x4065[_0x1f9b03];return _0x114913;};const _0x2ca78d=a707_0x1149;'use strict';const express=require('express'),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x2ca78d('0x1'));router[_0x2ca78d('0x7')]('/',auth[_0x2ca78d('0x0')](),controller['index']),router[_0x2ca78d('0x7')](_0x2ca78d('0x4'),auth[_0x2ca78d('0x0')](),controller[_0x2ca78d('0x9')]),router['get']('/:id',auth[_0x2ca78d('0x0')](),controller[_0x2ca78d('0x5')]),router[_0x2ca78d('0x6')]('/',auth['isAuthenticated'](),controller[_0x2ca78d('0xb')]),router[_0x2ca78d('0xa')](_0x2ca78d('0x2'),auth[_0x2ca78d('0x0')](),controller['update']),router[_0x2ca78d('0xc')](_0x2ca78d('0x2'),auth[_0x2ca78d('0x0')](),controller[_0x2ca78d('0x3')]),module[_0x2ca78d('0x8')]=router; \ No newline at end of file +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 diff --git a/server/api/voiceCallReport/voiceCallReport.attributes.js b/server/api/voiceCallReport/voiceCallReport.attributes.js index 92c48cc..bf9862a 100644 --- a/server/api/voiceCallReport/voiceCallReport.attributes.js +++ b/server/api/voiceCallReport/voiceCallReport.attributes.js @@ -1 +1 @@ -const a708_0x3c75=['INTEGER','internal','inbound','DATE','inbound-fax','sequelize','outbound','STRING','exports','outbound-fax','ENUM'];(function(_0x430171,_0x3c7591){const _0x3274cf=function(_0x3e804e){while(--_0x3e804e){_0x430171['push'](_0x430171['shift']());}};_0x3274cf(++_0x3c7591);}(a708_0x3c75,0x1de));const a708_0x3274=function(_0x430171,_0x3c7591){_0x430171=_0x430171-0x0;let _0x3274cf=a708_0x3c75[_0x430171];return _0x3274cf;};const _0x51da44=a708_0x3274;'use strict';const Sequelize=require(_0x51da44('0x0'));module[_0x51da44('0x3')]={'uniqueid':{'type':Sequelize[_0x51da44('0x2')]},'type':{'type':Sequelize[_0x51da44('0x5')](_0x51da44('0x8'),_0x51da44('0x7'),_0x51da44('0x1'),_0x51da44('0xa'),_0x51da44('0x4'),'dialer')},'tag':{'type':Sequelize['STRING']},'accountcode':{'type':Sequelize['STRING']},'source':{'type':Sequelize[_0x51da44('0x2')]},'destination':{'type':Sequelize['STRING']},'destinationcontext':{'type':Sequelize[_0x51da44('0x2')]},'callerid':{'type':Sequelize[_0x51da44('0x2')]},'channel':{'type':Sequelize[_0x51da44('0x2')]},'destinationchannel':{'type':Sequelize[_0x51da44('0x2')]},'lastapplication':{'type':Sequelize[_0x51da44('0x2')]},'lastdata':{'type':Sequelize['TEXT']},'starttime':{'type':Sequelize[_0x51da44('0x9')]},'systemanswertime':{'type':Sequelize[_0x51da44('0x9')]},'answertime':{'type':Sequelize[_0x51da44('0x9')]},'endtime':{'type':Sequelize[_0x51da44('0x9')]},'duration':{'type':Sequelize[_0x51da44('0x6')]},'billableseconds':{'type':Sequelize[_0x51da44('0x6')]},'mohtime':{'type':Sequelize[_0x51da44('0x6')],'defaultValue':0x0},'disposition':{'type':Sequelize['STRING']},'amaflags':{'type':Sequelize[_0x51da44('0x2')]},'userfield':{'type':Sequelize[_0x51da44('0x2')]},'userDisposition':{'type':Sequelize[_0x51da44('0x2')]},'userSecondDisposition':{'type':Sequelize['STRING']},'userThirdDisposition':{'type':Sequelize[_0x51da44('0x2')]},'note':{'type':Sequelize[_0x51da44('0x2')]},'prefix':{'type':Sequelize[_0x51da44('0x2')]},'routeid':{'type':Sequelize['INTEGER']},'sipcallid':{'type':Sequelize[_0x51da44('0x2')]}}; \ No newline at end of file +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 diff --git a/server/api/voiceCallReport/voiceCallReport.controller.js b/server/api/voiceCallReport/voiceCallReport.controller.js index 69ea525..3528d46 100644 --- a/server/api/voiceCallReport/voiceCallReport.controller.js +++ b/server/api/voiceCallReport/voiceCallReport.controller.js @@ -1 +1 @@ -const a709_0x4e11=['then','fullname','error','alias','api','like','catch','json','query','../../config/logger','limit','offset','order','rawAttributes','../../mysqldb','body','update','sendStatus','user','where','params','lodash','index','includeAll','attributes','User','fieldName','model','sequelize','destroy','create','findOne','fields','findAll','map','key','pick','intersection','VIRTUAL','nolimit','status','type','filters','options','../../components/parsers/qs','show','merge','end','keys','include','count','describe','name','sort','VoiceCallReport','filter','send'];(function(_0x3b3c78,_0x4e11d9){const _0x3d7df4=function(_0x4aa61f){while(--_0x4aa61f){_0x3b3c78['push'](_0x3b3c78['shift']());}};_0x3d7df4(++_0x4e11d9);}(a709_0x4e11,0x1f0));const a709_0x3d7d=function(_0x3b3c78,_0x4e11d9){_0x3b3c78=_0x3b3c78-0x0;let _0x3d7df4=a709_0x4e11[_0x3b3c78];return _0x3d7df4;};const _0x19348b=a709_0x3d7d;'use strict';const _=require(_0x19348b('0x26')),qs=require(_0x19348b('0x4')),logger=require(_0x19348b('0x1a'))(_0x19348b('0x15')),db=require(_0x19348b('0x1f'))['db'],{Op}=require(_0x19348b('0x2d'));function respondWithResult(_0x4aa61f,_0x247c9f){return _0x247c9f=_0x247c9f||0xc8,function(_0x170215){const _0x4b89d7=a709_0x3d7d;if(_0x170215)return _0x4aa61f[_0x4b89d7('0x0')](_0x247c9f)[_0x4b89d7('0x18')](_0x170215);};}function respondWithFilteredResult(_0x3e741b,_0x5cc775){return function(_0x14a445){const _0x4ccf17=a709_0x3d7d;if(_0x14a445){const _0x199fda=_0x14a445[_0x4ccf17('0xa')],_0x2f61b4=_0x5cc775['offset'];let _0x3a7aaa=_0x5cc775[_0x4ccf17('0x1c')]+_0x5cc775[_0x4ccf17('0x1b')],_0x48bd8c;return _0x3a7aaa>=_0x199fda?(_0x3a7aaa=_0x199fda,_0x48bd8c=0xc8):_0x48bd8c=0xce,_0x3e741b[_0x4ccf17('0x0')](_0x48bd8c),_0x3e741b['set']('Content-Range',_0x2f61b4+'-'+_0x3a7aaa+'/'+_0x199fda)['json'](_0x14a445);}return null;};}function saveUpdates(_0x417c82){return function(_0x371b67){if(_0x371b67)return _0x371b67['update'](_0x417c82)['then'](function(_0x449aa7){return _0x449aa7;});return null;};}function removeEntity(_0x316b91){return function(_0x56deb3){const _0xa84f22=a709_0x3d7d;if(_0x56deb3)return _0x56deb3['destroy']()[_0xa84f22('0x11')](function(){const _0x384635=_0xa84f22;_0x316b91['status'](0xcc)[_0x384635('0x7')]();});};}function handleEntityNotFound(_0x197c8b){return function(_0x289892){const _0x2de275=a709_0x3d7d;return!_0x289892&&_0x197c8b[_0x2de275('0x22')](0x194),_0x289892;};}function handleError(_0x45c5b3,_0x2ac23b){return _0x2ac23b=_0x2ac23b||0x1f4,function(_0x173a87){const _0x2188ee=a709_0x3d7d;logger[_0x2188ee('0x13')](_0x173a87['stack']),_0x173a87['name']&&delete _0x173a87['name'],_0x45c5b3[_0x2188ee('0x0')](_0x2ac23b)[_0x2188ee('0x10')](_0x173a87);};}exports[_0x19348b('0x27')]=function(_0x4a1ba9,_0x844b3f){const _0x2e6f60=_0x19348b;let _0x47b34c={};const _0x56c3a2={},_0x3eef3e={'count':0x0,'rows':[]},_0x4555b9=_[_0x2e6f60('0x33')](db[_0x2e6f60('0xe')][_0x2e6f60('0x1e')],function(_0x2dcd66){const _0x15c896=_0x2e6f60;return{'name':_0x2dcd66[_0x15c896('0x2b')],'type':_0x2dcd66[_0x15c896('0x1')][_0x15c896('0x34')]};});_0x56c3a2[_0x2e6f60('0x2c')]=_['map'](_0x4555b9,_0x2e6f60('0xc')),_0x56c3a2['query']=_[_0x2e6f60('0x8')](_0x4a1ba9[_0x2e6f60('0x19')]),_0x56c3a2['filters']=_[_0x2e6f60('0x36')](_0x56c3a2[_0x2e6f60('0x2c')],_0x56c3a2['query']),_0x47b34c[_0x2e6f60('0x29')]=_[_0x2e6f60('0x36')](_0x56c3a2[_0x2e6f60('0x2c')],qs[_0x2e6f60('0x31')](_0x4a1ba9['query'][_0x2e6f60('0x31')])),_0x47b34c[_0x2e6f60('0x29')]=_0x47b34c[_0x2e6f60('0x29')]['length']?_0x47b34c[_0x2e6f60('0x29')]:_0x56c3a2['model'];typeof _0x4a1ba9[_0x2e6f60('0x19')][_0x2e6f60('0x38')]==='undefined'&&(_0x47b34c[_0x2e6f60('0x1b')]=qs['limit'](_0x4a1ba9[_0x2e6f60('0x19')][_0x2e6f60('0x1b')]),_0x47b34c[_0x2e6f60('0x1c')]=qs[_0x2e6f60('0x1c')](_0x4a1ba9[_0x2e6f60('0x19')][_0x2e6f60('0x1c')]));_0x47b34c[_0x2e6f60('0x1d')]=qs[_0x2e6f60('0xd')](_0x4a1ba9[_0x2e6f60('0x19')]['sort']),_0x47b34c[_0x2e6f60('0x24')]=qs[_0x2e6f60('0x2')](_[_0x2e6f60('0x35')](_0x4a1ba9[_0x2e6f60('0x19')],_0x56c3a2[_0x2e6f60('0x2')]),_0x4555b9);_0x4a1ba9['query'][_0x2e6f60('0xf')]&&(_0x47b34c[_0x2e6f60('0x24')]=_['merge'](_0x47b34c[_0x2e6f60('0x24')],{[Op['or']]:_[_0x2e6f60('0x33')](_0x4555b9,function(_0x734952){const _0x221994=_0x2e6f60;if(_0x734952['type']!==_0x221994('0x37')){const _0x4c07ba={};return _0x4c07ba[_0x734952[_0x221994('0xc')]]={[Op[_0x221994('0x16')]]:'%'+_0x4a1ba9[_0x221994('0x19')]['filter']+'%'},_0x4c07ba;}})}));_0x47b34c=_[_0x2e6f60('0x6')]({},_0x47b34c,_0x4a1ba9[_0x2e6f60('0x3')]);const _0x3f516d={'where':_0x47b34c[_0x2e6f60('0x24')]};return db[_0x2e6f60('0xe')][_0x2e6f60('0xa')](_0x3f516d)[_0x2e6f60('0x11')](function(_0x6611f7){const _0x943277=_0x2e6f60;return _0x3eef3e[_0x943277('0xa')]=_0x6611f7,_0x4a1ba9[_0x943277('0x19')]['includeAll']&&(_0x47b34c[_0x943277('0x9')]=[{'attributes':['id',_0x943277('0xc'),_0x943277('0x12'),_0x943277('0x14')],'model':db[_0x943277('0x2a')],'as':'User'}]),db['VoiceCallReport'][_0x943277('0x32')](_0x47b34c);})['then'](function(_0x41ab84){return _0x3eef3e['rows']=_0x41ab84,_0x3eef3e;})[_0x2e6f60('0x11')](respondWithFilteredResult(_0x844b3f,_0x47b34c))[_0x2e6f60('0x17')](handleError(_0x844b3f,null));},exports[_0x19348b('0x5')]=function(_0x1531d8,_0x4386ab){const _0xae3403=_0x19348b;let _0x4b175a={'raw':!![],'where':{'id':_0x1531d8[_0xae3403('0x25')]['id']}};const _0x2d41ae={};return _0x2d41ae[_0xae3403('0x2c')]=_[_0xae3403('0x8')](db[_0xae3403('0xe')]['rawAttributes']),_0x2d41ae['query']=_[_0xae3403('0x8')](_0x1531d8['query']),_0x2d41ae['filters']=_[_0xae3403('0x36')](_0x2d41ae['model'],_0x2d41ae[_0xae3403('0x19')]),_0x4b175a[_0xae3403('0x29')]=_['intersection'](_0x2d41ae[_0xae3403('0x2c')],qs[_0xae3403('0x31')](_0x1531d8[_0xae3403('0x19')][_0xae3403('0x31')])),_0x4b175a[_0xae3403('0x29')]=_0x4b175a[_0xae3403('0x29')]['length']?_0x4b175a[_0xae3403('0x29')]:_0x2d41ae[_0xae3403('0x2c')],_0x1531d8[_0xae3403('0x19')][_0xae3403('0x28')]&&(_0x4b175a[_0xae3403('0x9')]=[{'all':!![]}]),_0x4b175a=_['merge']({},_0x4b175a,_0x1531d8['options']),db[_0xae3403('0xe')][_0xae3403('0x30')](_0x4b175a)[_0xae3403('0x11')](handleEntityNotFound(_0x4386ab,null))[_0xae3403('0x11')](respondWithResult(_0x4386ab,null))['catch'](handleError(_0x4386ab,null));},exports['create']=function(_0xc07571,_0x540b46){const _0x5a08c0=_0x19348b;return db['VoiceCallReport'][_0x5a08c0('0x2f')](_0xc07571[_0x5a08c0('0x20')],{})[_0x5a08c0('0x11')](respondWithResult(_0x540b46,0xc9))[_0x5a08c0('0x17')](handleError(_0x540b46,null));},exports[_0x19348b('0x2e')]=function(_0x4da1ca,_0x15e75b){const _0x4714d2=_0x19348b;return db[_0x4714d2('0xe')][_0x4714d2('0x30')]({'where':{'id':_0x4da1ca[_0x4714d2('0x25')]['id']}})[_0x4714d2('0x11')](handleEntityNotFound(_0x15e75b,null))['then'](removeEntity(_0x15e75b,null))[_0x4714d2('0x17')](handleError(_0x15e75b,null));},exports[_0x19348b('0xb')]=function(_0x46aa4e,_0x1e9e10){const _0x566521=_0x19348b;return db[_0x566521('0xe')]['describe']()['then'](respondWithResult(_0x1e9e10,null))[_0x566521('0x17')](handleError(_0x1e9e10,null));},exports[_0x19348b('0x21')]=function(_0x3ec987,_0x554c0e){const _0x3cb844=_0x19348b;return _0x3ec987[_0x3cb844('0x20')]['uniqueid']&&delete _0x3ec987[_0x3cb844('0x20')]['uniqueid'],db[_0x3cb844('0xe')][_0x3cb844('0x30')]({'where':{'uniqueid':_0x3ec987[_0x3cb844('0x25')]['id'],'UserId':{[Op['or']]:[null,_0x3ec987[_0x3cb844('0x23')]['id']]}}})[_0x3cb844('0x11')](handleEntityNotFound(_0x554c0e,null))['then'](saveUpdates(_0x3ec987['body'],null))[_0x3cb844('0x11')](respondWithResult(_0x554c0e,null))[_0x3cb844('0x17')](handleError(_0x554c0e,null));}; \ No newline at end of file +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 diff --git a/server/api/voiceCallReport/voiceCallReport.model.js b/server/api/voiceCallReport/voiceCallReport.model.js index fc579ef..250eaea 100644 --- a/server/api/voiceCallReport/voiceCallReport.model.js +++ b/server/api/voiceCallReport/voiceCallReport.model.js @@ -1 +1 @@ -const a710_0x3e80=['report_call','uniqueid','define','VoiceCallReport','exports','./voiceCallReport.attributes'];(function(_0x3e4e59,_0x3e8015){const _0x576202=function(_0x376855){while(--_0x376855){_0x3e4e59['push'](_0x3e4e59['shift']());}};_0x576202(++_0x3e8015);}(a710_0x3e80,0x82));const a710_0x5762=function(_0x3e4e59,_0x3e8015){_0x3e4e59=_0x3e4e59-0x0;let _0x576202=a710_0x3e80[_0x3e4e59];return _0x576202;};const _0x45999b=a710_0x5762;'use strict';const attributes=require(_0x45999b('0x1'));module[_0x45999b('0x0')]=function(_0x376855){const _0x328878=_0x45999b,_0x269b0b=_0x376855[_0x328878('0x4')](_0x328878('0x5'),attributes,{'tableName':_0x328878('0x2'),'paranoid':![],'indexes':[{'fields':[_0x328878('0x3')]}],'timestamps':!![]});return _0x269b0b;}; \ No newline at end of file +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 diff --git a/server/api/voiceCallReport/voiceCallReport.rpc.js b/server/api/voiceCallReport/voiceCallReport.rpc.js index 9af8d49..c6e7db6 100644 --- a/server/api/voiceCallReport/voiceCallReport.rpc.js +++ b/server/api/voiceCallReport/voiceCallReport.rpc.js @@ -1 +1 @@ -const a711_0x1b97=['model','limit','../../config/logger','raw','findAll','debug','rpc','GetVoiceCallReport','VoiceCallReport','error','options','map','include','info','catch','create','message','UpdateVoiceCallReport','../../mysqldb','stringify','where','then','CreateVoiceCallReport','attributes','body'];(function(_0x207b5e,_0x1b97d9){const _0x36074e=function(_0x58a442){while(--_0x58a442){_0x207b5e['push'](_0x207b5e['shift']());}};_0x36074e(++_0x1b97d9);}(a711_0x1b97,0x105));const a711_0x3607=function(_0x207b5e,_0x1b97d9){_0x207b5e=_0x207b5e-0x0;let _0x36074e=a711_0x1b97[_0x207b5e];return _0x36074e;};const _0x3836e7=a711_0x3607;'use strict';const _=require('lodash'),db=require(_0x3836e7('0x7'))['db'],logger=require(_0x3836e7('0x10'))(_0x3836e7('0x14'));exports['GetVoiceCallReport']=function(_0x58a442){const _0x1046e3=this;return new Promise(function(_0x30db60,_0x31d24d){const _0x31ce70=a711_0x3607;return db[_0x31ce70('0x16')][_0x31ce70('0x12')]({'raw':_0x58a442[_0x31ce70('0x18')]?_0x58a442[_0x31ce70('0x18')]['raw']===undefined?!![]:![]:!![],'where':_0x58a442[_0x31ce70('0x18')]?_0x58a442[_0x31ce70('0x18')][_0x31ce70('0x9')]||null:null,'attributes':_0x58a442['options']?_0x58a442['options'][_0x31ce70('0xc')]||null:null,'limit':_0x58a442[_0x31ce70('0x18')]?_0x58a442[_0x31ce70('0x18')][_0x31ce70('0xf')]||null:null,'include':_0x58a442[_0x31ce70('0x18')]?_0x58a442['options'][_0x31ce70('0x1')]?_[_0x31ce70('0x0')](_0x58a442['options']['include'],function(_0x58594e){const _0x1291df=_0x31ce70;return{'model':db[_0x58594e[_0x1291df('0xe')]],'as':_0x58594e['as'],'attributes':_0x58594e[_0x1291df('0xc')],'include':_0x58594e[_0x1291df('0x1')]?_[_0x1291df('0x0')](_0x58594e[_0x1291df('0x1')],function(_0x18ef75){const _0x46a744=_0x1291df;return{'model':db[_0x18ef75[_0x46a744('0xe')]],'as':_0x18ef75['as'],'attributes':_0x18ef75[_0x46a744('0xc')],'include':_0x18ef75[_0x46a744('0x1')]?_[_0x46a744('0x0')](_0x18ef75[_0x46a744('0x1')],function(_0x53710e){const _0xbf7fe6=_0x46a744;return{'model':db[_0x53710e[_0xbf7fe6('0xe')]],'as':_0x53710e['as'],'attributes':_0x53710e[_0xbf7fe6('0xc')]};}):[]};}):[]};}):[]:[]})[_0x31ce70('0xa')](function(_0x146627){const _0x11d7a6=_0x31ce70;logger[_0x11d7a6('0x2')](_0x11d7a6('0x15'),_0x58a442),logger['debug'](_0x11d7a6('0x15'),_0x58a442,JSON[_0x11d7a6('0x8')](_0x146627)),_0x30db60(_0x146627);})[_0x31ce70('0x3')](function(_0xe91de1){const _0x4d0268=_0x31ce70;logger[_0x4d0268('0x17')](_0x4d0268('0x15'),_0xe91de1[_0x4d0268('0x5')],_0x58a442),_0x31d24d(_0x1046e3[_0x4d0268('0x17')](0x1f4,_0xe91de1[_0x4d0268('0x5')]));});});},exports[_0x3836e7('0xb')]=function(_0x41e299){const _0x2378e2=this;return new Promise(function(_0x86d015,_0xe6a537){const _0x31d84c=a711_0x3607;return db[_0x31d84c('0x16')][_0x31d84c('0x4')](_0x41e299[_0x31d84c('0xd')],{'raw':_0x41e299['options']?_0x41e299['options'][_0x31d84c('0x11')]===undefined?!![]:![]:!![]})[_0x31d84c('0xa')](function(_0x202e8e){const _0x2647e4=_0x31d84c;logger['info'](_0x2647e4('0xb'),_0x41e299),logger['debug'](_0x2647e4('0xb'),_0x41e299,JSON[_0x2647e4('0x8')](_0x202e8e)),_0x86d015(_0x202e8e);})[_0x31d84c('0x3')](function(_0x51dc5c){const _0x2790cd=_0x31d84c;logger['error']('CreateVoiceCallReport',_0x51dc5c[_0x2790cd('0x5')],_0x41e299),_0xe6a537(_0x2378e2[_0x2790cd('0x17')](0x1f4,_0x51dc5c[_0x2790cd('0x5')]));});});},exports[_0x3836e7('0x6')]=function(_0x1abdec){const _0x44c7c9=this;return new Promise(function(_0x3742bb,_0x265d50){const _0x342eab=a711_0x3607;return db[_0x342eab('0x16')]['update'](_0x1abdec['body'],{'raw':_0x1abdec[_0x342eab('0x18')]?_0x1abdec[_0x342eab('0x18')][_0x342eab('0x11')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1abdec[_0x342eab('0x18')]?_0x1abdec['options'][_0x342eab('0x9')]||null:null,'attributes':_0x1abdec[_0x342eab('0x18')]?_0x1abdec[_0x342eab('0x18')][_0x342eab('0xc')]||null:null,'limit':_0x1abdec['options']?_0x1abdec['options'][_0x342eab('0xf')]||null:null})[_0x342eab('0xa')](function(_0x81ba49){const _0x31c461=_0x342eab;logger[_0x31c461('0x2')](_0x31c461('0x6'),_0x1abdec),logger[_0x31c461('0x13')](_0x31c461('0x6'),_0x1abdec,JSON[_0x31c461('0x8')](_0x81ba49)),_0x3742bb(_0x81ba49);})[_0x342eab('0x3')](function(_0x4ef6e1){const _0x5bc63f=_0x342eab;logger[_0x5bc63f('0x17')](_0x5bc63f('0x6'),_0x4ef6e1['message'],_0x1abdec),_0x265d50(_0x44c7c9['error'](0x1f4,_0x4ef6e1[_0x5bc63f('0x5')]));});});}; \ No newline at end of file +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 diff --git a/server/api/voiceChanSpy/index.js b/server/api/voiceChanSpy/index.js index 39b9ed8..29c9c65 100644 --- a/server/api/voiceChanSpy/index.js +++ b/server/api/voiceChanSpy/index.js @@ -1 +1 @@ -const a712_0x1eb1=['Router','get','create','destroy','delete','update','express','../../components/auth/service','show','put','./voiceChanSpy.controller','isAuthenticated','/:id'];(function(_0x33cd58,_0x1eb12d){const _0x2cbc7a=function(_0x3bfb95){while(--_0x3bfb95){_0x33cd58['push'](_0x33cd58['shift']());}};_0x2cbc7a(++_0x1eb12d);}(a712_0x1eb1,0x168));const a712_0x2cbc=function(_0x33cd58,_0x1eb12d){_0x33cd58=_0x33cd58-0x0;let _0x2cbc7a=a712_0x1eb1[_0x33cd58];return _0x2cbc7a;};const _0x5d7219=a712_0x2cbc;'use strict';const express=require(_0x5d7219('0xa')),router=express[_0x5d7219('0x4')](),auth=require(_0x5d7219('0xb')),controller=require(_0x5d7219('0x1'));router['get']('/',auth[_0x5d7219('0x2')](),controller['index']),router[_0x5d7219('0x5')](_0x5d7219('0x3'),auth[_0x5d7219('0x2')](),controller[_0x5d7219('0xc')]),router['post']('/',auth[_0x5d7219('0x2')](),controller[_0x5d7219('0x6')]),router[_0x5d7219('0x0')](_0x5d7219('0x3'),auth[_0x5d7219('0x2')](),controller[_0x5d7219('0x9')]),router[_0x5d7219('0x8')]('/:id',auth['isAuthenticated'](),controller[_0x5d7219('0x7')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/voiceChanSpy/voiceChanSpy.attributes.js b/server/api/voiceChanSpy/voiceChanSpy.attributes.js index 71d9f72..a87368f 100644 --- a/server/api/voiceChanSpy/voiceChanSpy.attributes.js +++ b/server/api/voiceChanSpy/voiceChanSpy.attributes.js @@ -1 +1 @@ -const a713_0x2c35=['exports','BOOLEAN','STRING','name','split','setDataValue','options','sequelize'];(function(_0x470dcb,_0x2c357d){const _0x56413e=function(_0x79f2e7){while(--_0x79f2e7){_0x470dcb['push'](_0x470dcb['shift']());}};_0x56413e(++_0x2c357d);}(a713_0x2c35,0x11d));const a713_0x5641=function(_0x470dcb,_0x2c357d){_0x470dcb=_0x470dcb-0x0;let _0x56413e=a713_0x2c35[_0x470dcb];return _0x56413e;};const _0x5bcfcc=a713_0x5641;'use strict';const Sequelize=require(_0x5bcfcc('0x2'));module[_0x5bcfcc('0x3')]={'name':{'type':Sequelize[_0x5bcfcc('0x5')]},'prefix':{'type':Sequelize['STRING'],'unique':_0x5bcfcc('0x6'),'allowNull':![]},'options':{'type':Sequelize['STRING'],'set':function(_0x79f2e7){const _0x3a57f4=_0x5bcfcc;this[_0x3a57f4('0x0')](_0x3a57f4('0x1'),_0x79f2e7?_0x79f2e7['join'](''):[]);},'get':function(){const _0x5a8860=_0x5bcfcc;return this['getDataValue']('options')?this['getDataValue'](_0x5a8860('0x1'))[_0x5a8860('0x7')](''):[];}},'auth':{'type':Sequelize[_0x5bcfcc('0x4')],'defaultValue':![]},'password':{'type':Sequelize['STRING']},'record':{'type':Sequelize[_0x5bcfcc('0x4')],'defaultValue':![]},'recordingFormat':{'type':Sequelize[_0x5bcfcc('0x5')]},'description':{'type':Sequelize[_0x5bcfcc('0x5')]}}; \ No newline at end of file +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 diff --git a/server/api/voiceChanSpy/voiceChanSpy.controller.js b/server/api/voiceChanSpy/voiceChanSpy.controller.js index f3f3abf..fbf7614 100644 --- a/server/api/voiceChanSpy/voiceChanSpy.controller.js +++ b/server/api/voiceChanSpy/voiceChanSpy.controller.js @@ -1 +1 @@ -const a714_0x214a=['Content-Range','ChanSpies','fields','user','like','filters','userProfileId','rawAttributes','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','nolimit','intersection','end','Unable\x20to\x20retrieve\x20the\x20current\x20user','sequelize','create','offset','findOne','../../mysqldb','map','VIRTUAL','update','options','role','query','name','length','sort','keys','get','VoiceChanSpy','type','limit','attributes','params','then','sendStatus','body','key','status','../../components/parsers/qs','filter','../../config/logger','fieldName','catch','api','includeAll','rows','merge','model','count','findAll','order','destroy','where','UserProfileResource','undefined','set','error','send'];(function(_0x353034,_0x214af7){const _0x4c34a1=function(_0x569b85){while(--_0x569b85){_0x353034['push'](_0x353034['shift']());}};_0x4c34a1(++_0x214af7);}(a714_0x214a,0x10e));const a714_0x4c34=function(_0x353034,_0x214af7){_0x353034=_0x353034-0x0;let _0x4c34a1=a714_0x214a[_0x353034];return _0x4c34a1;};const _0xa378e5=a714_0x4c34;'use strict';const _=require('lodash'),qs=require(_0xa378e5('0x5')),logger=require(_0xa378e5('0x7'))(_0xa378e5('0xa')),db=require(_0xa378e5('0x2a'))['db'],{Op}=require(_0xa378e5('0x26'));function respondWithResult(_0x569b85,_0x400432){return _0x400432=_0x400432||0xc8,function(_0x201ba3){const _0x43a539=a714_0x4c34;if(_0x201ba3)return _0x569b85[_0x43a539('0x4')](_0x400432)['json'](_0x201ba3);};}function respondWithFilteredResult(_0x1e8cc5,_0x1b454f){return function(_0x2f6061){const _0x432980=a714_0x4c34;if(_0x2f6061){const _0x2cdc5a=_0x2f6061[_0x432980('0xf')],_0xf57003=_0x1b454f[_0x432980('0x28')];let _0x27395e=_0x1b454f[_0x432980('0x28')]+_0x1b454f[_0x432980('0x38')],_0x186b95;return _0x27395e>=_0x2cdc5a?(_0x27395e=_0x2cdc5a,_0x186b95=0xc8):_0x186b95=0xce,_0x1e8cc5[_0x432980('0x4')](_0x186b95),_0x1e8cc5[_0x432980('0x16')](_0x432980('0x19'),_0xf57003+'-'+_0x27395e+'/'+_0x2cdc5a)['json'](_0x2f6061);}return null;};}function saveUpdates(_0x422a16){return function(_0x56ce54){const _0x4d9a42=a714_0x4c34;if(_0x56ce54)return _0x56ce54[_0x4d9a42('0x2d')](_0x422a16)[_0x4d9a42('0x0')](function(_0x1c6fef){return _0x1c6fef;});return null;};}function removeEntity(_0xba47c9){return function(_0x2b4ce7){const _0x333fcb=a714_0x4c34;if(_0x2b4ce7)return _0x2b4ce7['destroy']()[_0x333fcb('0x0')](function(){const _0x4a3613=_0x333fcb,_0xbd8630=_0x2b4ce7['get']({'plain':!![]}),_0x20bdc7=_0x4a3613('0x1a');return db[_0x4a3613('0x14')][_0x4a3613('0x12')]({'where':{'type':_0x20bdc7,'resourceId':_0xbd8630['id']}})['then'](function(){return _0x2b4ce7;});})[_0x333fcb('0x0')](function(){const _0x39844a=_0x333fcb;_0xba47c9[_0x39844a('0x4')](0xcc)[_0x39844a('0x24')]();});};}function handleEntityNotFound(_0x160513){return function(_0x4c48ac){const _0x2f32e4=a714_0x4c34;return!_0x4c48ac&&_0x160513[_0x2f32e4('0x1')](0x194),_0x4c48ac;};}function handleError(_0x477dcd,_0xadfdc4){return _0xadfdc4=_0xadfdc4||0x1f4,function(_0x2f1095){const _0x12d4a9=a714_0x4c34;logger[_0x12d4a9('0x17')](_0x2f1095['stack']),_0x2f1095[_0x12d4a9('0x31')]&&delete _0x2f1095['name'],_0x477dcd[_0x12d4a9('0x4')](_0xadfdc4)[_0x12d4a9('0x18')](_0x2f1095);};}exports['index']=function(_0x75ffff,_0x1b0e8e){const _0x5b9d87=_0xa378e5;let _0x48f0b5={};const _0x1c85dd={},_0x1b3ecb={'count':0x0,'rows':[]},_0x21bf64=_['map'](db[_0x5b9d87('0x36')][_0x5b9d87('0x20')],function(_0x4e595d){const _0x179d35=_0x5b9d87;return{'name':_0x4e595d[_0x179d35('0x8')],'type':_0x4e595d[_0x179d35('0x37')][_0x179d35('0x3')]};});_0x1c85dd['model']=_[_0x5b9d87('0x2b')](_0x21bf64,_0x5b9d87('0x31')),_0x1c85dd[_0x5b9d87('0x30')]=_[_0x5b9d87('0x34')](_0x75ffff[_0x5b9d87('0x30')]),_0x1c85dd[_0x5b9d87('0x1e')]=_['intersection'](_0x1c85dd[_0x5b9d87('0xe')],_0x1c85dd[_0x5b9d87('0x30')]),_0x48f0b5[_0x5b9d87('0x39')]=_[_0x5b9d87('0x23')](_0x1c85dd[_0x5b9d87('0xe')],qs['fields'](_0x75ffff['query'][_0x5b9d87('0x1b')])),_0x48f0b5[_0x5b9d87('0x39')]=_0x48f0b5['attributes'][_0x5b9d87('0x32')]?_0x48f0b5[_0x5b9d87('0x39')]:_0x1c85dd['model'];typeof _0x75ffff[_0x5b9d87('0x30')][_0x5b9d87('0x22')]===_0x5b9d87('0x15')&&(_0x48f0b5[_0x5b9d87('0x38')]=qs[_0x5b9d87('0x38')](_0x75ffff[_0x5b9d87('0x30')][_0x5b9d87('0x38')]),_0x48f0b5[_0x5b9d87('0x28')]=qs[_0x5b9d87('0x28')](_0x75ffff['query'][_0x5b9d87('0x28')]));_0x48f0b5[_0x5b9d87('0x11')]=qs[_0x5b9d87('0x33')](_0x75ffff[_0x5b9d87('0x30')][_0x5b9d87('0x33')]),_0x48f0b5[_0x5b9d87('0x13')]=qs[_0x5b9d87('0x1e')](_['pick'](_0x75ffff[_0x5b9d87('0x30')],_0x1c85dd[_0x5b9d87('0x1e')]),_0x21bf64);_0x75ffff['query'][_0x5b9d87('0x6')]&&(_0x48f0b5[_0x5b9d87('0x13')]=_['merge'](_0x48f0b5[_0x5b9d87('0x13')],{[Op['or']]:_['map'](_0x21bf64,function(_0x167b75){const _0x215a2c=_0x5b9d87;if(_0x167b75[_0x215a2c('0x37')]!==_0x215a2c('0x2c')){const _0x376d01={};return _0x376d01[_0x167b75[_0x215a2c('0x31')]]={[Op[_0x215a2c('0x1d')]]:'%'+_0x75ffff[_0x215a2c('0x30')][_0x215a2c('0x6')]+'%'},_0x376d01;}})}));_0x48f0b5=_[_0x5b9d87('0xd')]({},_0x48f0b5,_0x75ffff[_0x5b9d87('0x2e')]);const _0xeb262a={'where':_0x48f0b5['where']};return db[_0x5b9d87('0x36')][_0x5b9d87('0xf')](_0xeb262a)[_0x5b9d87('0x0')](function(_0x1b20e9){const _0x3337cf=_0x5b9d87;return _0x1b3ecb['count']=_0x1b20e9,_0x75ffff['query'][_0x3337cf('0xb')]&&(_0x48f0b5['include']=[{'all':!![]}]),db[_0x3337cf('0x36')][_0x3337cf('0x10')](_0x48f0b5);})[_0x5b9d87('0x0')](function(_0x261b8e){const _0x63452f=_0x5b9d87;return _0x1b3ecb[_0x63452f('0xc')]=_0x261b8e,_0x1b3ecb;})['then'](respondWithFilteredResult(_0x1b0e8e,_0x48f0b5))[_0x5b9d87('0x9')](handleError(_0x1b0e8e,null));},exports['show']=function(_0x27b768,_0x2c206b){const _0x134214=_0xa378e5;let _0x17c9fc={'raw':![],'where':{'id':_0x27b768['params']['id']}};const _0xdcbc6f={};return _0xdcbc6f[_0x134214('0xe')]=_[_0x134214('0x34')](db['VoiceChanSpy']['rawAttributes']),_0xdcbc6f['query']=_[_0x134214('0x34')](_0x27b768[_0x134214('0x30')]),_0xdcbc6f[_0x134214('0x1e')]=_[_0x134214('0x23')](_0xdcbc6f[_0x134214('0xe')],_0xdcbc6f[_0x134214('0x30')]),_0x17c9fc['attributes']=_['intersection'](_0xdcbc6f[_0x134214('0xe')],qs[_0x134214('0x1b')](_0x27b768['query']['fields'])),_0x17c9fc[_0x134214('0x39')]=_0x17c9fc['attributes'][_0x134214('0x32')]?_0x17c9fc['attributes']:_0xdcbc6f['model'],_0x27b768[_0x134214('0x30')][_0x134214('0xb')]&&(_0x17c9fc['include']=[{'all':!![]}]),_0x17c9fc=_[_0x134214('0xd')]({},_0x17c9fc,_0x27b768[_0x134214('0x2e')]),db[_0x134214('0x36')][_0x134214('0x29')](_0x17c9fc)[_0x134214('0x0')](handleEntityNotFound(_0x2c206b,null))['then'](respondWithResult(_0x2c206b,null))[_0x134214('0x9')](handleError(_0x2c206b,null));},exports[_0xa378e5('0x27')]=function(_0x38ef4b,_0x4eae4c){const _0x1ddc84=_0xa378e5;return db['VoiceChanSpy'][_0x1ddc84('0x27')](_0x38ef4b[_0x1ddc84('0x2')],{})[_0x1ddc84('0x0')](function(_0x48f08a){const _0x3dca24=_0x1ddc84,_0x5b1b8e=_0x38ef4b[_0x3dca24('0x1c')][_0x3dca24('0x35')]({'plain':!![]});if(!_0x5b1b8e)throw new Error(_0x3dca24('0x25'));if(_0x5b1b8e[_0x3dca24('0x2f')]===_0x3dca24('0x1c')){const _0x42b692=_0x48f08a[_0x3dca24('0x35')]({'plain':!![]}),_0x97a665=_0x3dca24('0x1a');return db['UserProfileSection'][_0x3dca24('0x29')]({'where':{'name':_0x97a665,'userProfileId':_0x5b1b8e[_0x3dca24('0x1f')]},'raw':!![]})[_0x3dca24('0x0')](function(_0x4d2d0){const _0x5f035e=_0x3dca24;return _0x4d2d0&&_0x4d2d0['autoAssociation']===0x0?db[_0x5f035e('0x14')][_0x5f035e('0x27')]({'name':_0x42b692[_0x5f035e('0x31')],'resourceId':_0x42b692['id'],'type':_0x4d2d0[_0x5f035e('0x31')],'sectionId':_0x4d2d0['id']},{})['then'](function(){return _0x48f08a;}):_0x48f08a;})['catch'](function(_0x1d8f3c){const _0x28091b=_0x3dca24;logger[_0x28091b('0x17')](_0x28091b('0x21'),_0x1d8f3c);throw _0x1d8f3c;});}return _0x48f08a;})['then'](respondWithResult(_0x4eae4c,0xc9))['catch'](handleError(_0x4eae4c,null));},exports[_0xa378e5('0x2d')]=function(_0x45e405,_0x17475f){const _0x296695=_0xa378e5;return _0x45e405['body']['id']&&delete _0x45e405['body']['id'],db[_0x296695('0x36')][_0x296695('0x29')]({'where':{'id':_0x45e405[_0x296695('0x3a')]['id']}})[_0x296695('0x0')](handleEntityNotFound(_0x17475f,null))[_0x296695('0x0')](saveUpdates(_0x45e405[_0x296695('0x2')],null))[_0x296695('0x0')](respondWithResult(_0x17475f,null))[_0x296695('0x9')](handleError(_0x17475f,null));},exports[_0xa378e5('0x12')]=function(_0x15fbfd,_0x13944d){const _0x343e7c=_0xa378e5;return db[_0x343e7c('0x36')][_0x343e7c('0x29')]({'where':{'id':_0x15fbfd['params']['id']}})[_0x343e7c('0x0')](handleEntityNotFound(_0x13944d,null))[_0x343e7c('0x0')](removeEntity(_0x13944d,null))[_0x343e7c('0x9')](handleError(_0x13944d,null));}; \ No newline at end of file +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 diff --git a/server/api/voiceChanSpy/voiceChanSpy.model.js b/server/api/voiceChanSpy/voiceChanSpy.model.js index 53f6a96..1f9f554 100644 --- a/server/api/voiceChanSpy/voiceChanSpy.model.js +++ b/server/api/voiceChanSpy/voiceChanSpy.model.js @@ -1 +1 @@ -const a715_0x5bc2=['define','exports','%s%s','bulkCreate','User','recordingFormat','models','SIP/%s,%s','util','StopMixMonitor','chanspy','VoiceChanSpy','voice_chanspy','./voiceChanSpy.attributes','lodash','name','${UNIQUEID}.%s,ab','VoiceExtension','record','system','catch','CDR(type)=%s','merge','findAll','push','format','Set','options','prefix','join','concat','password','then','MixMonitor','internal','length'];(function(_0x29b459,_0x5bc234){const _0x3e5a7e=function(_0x32c648){while(--_0x32c648){_0x29b459['push'](_0x29b459['shift']());}};_0x3e5a7e(++_0x5bc234);}(a715_0x5bc2,0x197));const a715_0x3e5a=function(_0x29b459,_0x5bc234){_0x29b459=_0x29b459-0x0;let _0x3e5a7e=a715_0x5bc2[_0x29b459];return _0x3e5a7e;};const _0x3fcda9=a715_0x3e5a;'use strict';const _=require(_0x3fcda9('0x3')),util=require(_0x3fcda9('0x21')),attributes=require(_0x3fcda9('0x2')),createChanSpyApplications=function(_0x32c648,_0x55ffb0,_0x52de5a){const _0x3ca9dd=_0x3fcda9;let _0x8c4e91=0x1;const _0x20b3b3=[],_0x61ad03={'context':_0x55ffb0['context']||'from-sip','exten':util[_0x3ca9dd('0xe')](_0x3ca9dd('0x1b'),_0x32c648[_0x3ca9dd('0x11')],_0x52de5a),'type':_0x3ca9dd('0x8'),'isApp':![],'ChanSpyId':_0x32c648['id'],'UserId':_0x55ffb0['id']};return _0x20b3b3[_0x3ca9dd('0xd')](_['merge']({'app':_0x3ca9dd('0xf'),'appdata':util[_0x3ca9dd('0xe')](_0x3ca9dd('0xa'),_0x3ca9dd('0x23')),'priority':_0x8c4e91++},_0x61ad03)),_0x32c648['record']&&_0x20b3b3[_0x3ca9dd('0xd')](_[_0x3ca9dd('0xb')]({'app':_0x3ca9dd('0x16'),'appdata':util['format'](_0x3ca9dd('0x5'),_0x32c648[_0x3ca9dd('0x1e')]),'priority':_0x8c4e91++},_0x61ad03)),_0x32c648['auth']&&_0x20b3b3['push'](_[_0x3ca9dd('0xb')]({'app':'Authenticate','appdata':_0x32c648[_0x3ca9dd('0x14')],'priority':_0x8c4e91++},_0x61ad03)),_0x20b3b3['push'](_[_0x3ca9dd('0xb')]({'app':'ChanSpy','appdata':util[_0x3ca9dd('0xe')](_0x3ca9dd('0x20'),_0x55ffb0[_0x3ca9dd('0x4')],_0x32c648[_0x3ca9dd('0x10')]?_0x32c648[_0x3ca9dd('0x10')][_0x3ca9dd('0x12')](''):''),'priority':_0x8c4e91++},_0x61ad03)),_0x32c648[_0x3ca9dd('0x7')]&&_0x20b3b3[_0x3ca9dd('0xd')](_['merge']({'app':_0x3ca9dd('0x22'),'priority':_0x8c4e91++},_0x61ad03)),_0x20b3b3;},addChanSpyApplications=function(_0x4c9d0b,_0x495dd5){const _0x447ad0=_0x3fcda9;let _0x7b616a=[];for(let _0x2b94cf=0x0;_0x2b94cf<_0x495dd5[_0x447ad0('0x18')];_0x2b94cf++){_0x7b616a=_0x7b616a[_0x447ad0('0x13')](createChanSpyApplications(_0x4c9d0b,_0x495dd5[_0x2b94cf],_0x495dd5[_0x2b94cf]['internal'])),_0x495dd5[_0x2b94cf][_0x447ad0('0x17')]!=_0x495dd5[_0x2b94cf][_0x447ad0('0x4')]&&(_0x7b616a=_0x7b616a[_0x447ad0('0x13')](createChanSpyApplications(_0x4c9d0b,_0x495dd5[_0x2b94cf],_0x495dd5[_0x2b94cf][_0x447ad0('0x4')])));}return _0x7b616a;},getChanSpy=function(_0x9fa072,_0x258768){return new Promise(function(_0x3af9bb,_0x57c13e){const _0x57ccce=a715_0x3e5a;return _0x9fa072[_0x57ccce('0x1d')][_0x57ccce('0xc')]({'attributes':['id','name',_0x57ccce('0x17')],'where':{'role':'agent','chanspy':!![]},'raw':!![]})[_0x57ccce('0x15')](function(_0x285e11){if(_0x285e11)return _0x3af9bb(addChanSpyApplications(_0x258768,_0x285e11));return _0x3af9bb([]);})[_0x57ccce('0x9')](function(_0x231176){_0x57c13e(_0x231176);});});};module[_0x3fcda9('0x1a')]=function(_0x1bc0ca){const _0x2e7a42=_0x3fcda9,_0x214bc2=_0x1bc0ca[_0x2e7a42('0x1f')],_0x277cf4=_0x1bc0ca[_0x2e7a42('0x19')](_0x2e7a42('0x0'),attributes,{'tableName':_0x2e7a42('0x1'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0x3ffbd2){const _0xc04c6c=_0x2e7a42;return getChanSpy(_0x214bc2,_0x3ffbd2)[_0xc04c6c('0x15')](function(_0x15a5b3){const _0x17402d=_0xc04c6c;return _0x15a5b3&&_0x15a5b3['length']?_0x214bc2[_0x17402d('0x6')][_0x17402d('0x1c')](_0x15a5b3):null;})[_0xc04c6c('0x9')](function(_0x5ef4d0){return _0x5ef4d0;});},'afterUpdate':function(_0x59ffcc){const _0x4f97dd=_0x2e7a42;return _0x214bc2[_0x4f97dd('0x6')]['destroy']({'where':{'ChanSpyId':_0x59ffcc['id']}})['then'](function(){return getChanSpy(_0x214bc2,_0x59ffcc);})[_0x4f97dd('0x15')](function(_0x215684){const _0x3afe6c=_0x4f97dd;return _0x215684&&_0x215684[_0x3afe6c('0x18')]?_0x214bc2[_0x3afe6c('0x6')][_0x3afe6c('0x1c')](_0x215684):null;})[_0x4f97dd('0x9')](function(_0x42b562){return _0x42b562;});},'afterDestroy':function(_0x450103){const _0x1e92b5=_0x2e7a42;return _0x214bc2[_0x1e92b5('0x6')]['destroy']({'where':{'ChanSpyId':_0x450103['id']}})['then'](function(){return null;})['catch'](function(_0x10b724){return _0x10b724;});}}});return _0x277cf4;}; \ No newline at end of file +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 diff --git a/server/api/voiceContext/index.js b/server/api/voiceContext/index.js index 071a391..d6b0c93 100644 --- a/server/api/voiceContext/index.js +++ b/server/api/voiceContext/index.js @@ -1 +1 @@ -const a716_0x364b=['/:id','isAuthenticated','express','destroy','show','get','create','Router','update','post','delete','exports','./voiceContext.controller','put'];(function(_0x1e5d69,_0x364bce){const _0x25c87a=function(_0x2d9e65){while(--_0x2d9e65){_0x1e5d69['push'](_0x1e5d69['shift']());}};_0x25c87a(++_0x364bce);}(a716_0x364b,0x16a));const a716_0x25c8=function(_0x1e5d69,_0x364bce){_0x1e5d69=_0x1e5d69-0x0;let _0x25c87a=a716_0x364b[_0x1e5d69];return _0x25c87a;};const _0x58460a=a716_0x25c8;'use strict';const express=require(_0x58460a('0x4')),router=express[_0x58460a('0x9')](),auth=require('../../components/auth/service'),controller=require(_0x58460a('0x0'));router[_0x58460a('0x7')]('/',auth[_0x58460a('0x3')](),controller['index']),router[_0x58460a('0x7')](_0x58460a('0x2'),auth[_0x58460a('0x3')](),controller[_0x58460a('0x6')]),router[_0x58460a('0xb')]('/',auth[_0x58460a('0x3')](),controller[_0x58460a('0x8')]),router[_0x58460a('0x1')](_0x58460a('0x2'),auth[_0x58460a('0x3')](),controller[_0x58460a('0xa')]),router[_0x58460a('0xc')](_0x58460a('0x2'),auth['isAuthenticated'](),controller[_0x58460a('0x5')]),module[_0x58460a('0xd')]=router; \ No newline at end of file +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 diff --git a/server/api/voiceContext/voiceContext.attributes.js b/server/api/voiceContext/voiceContext.attributes.js index 980b99c..56faba7 100644 --- a/server/api/voiceContext/voiceContext.attributes.js +++ b/server/api/voiceContext/voiceContext.attributes.js @@ -1 +1 @@ -const a717_0x939f=['STRING','BOOLEAN'];(function(_0x46b0b4,_0x939f3){const _0x3553f2=function(_0x541d6f){while(--_0x541d6f){_0x46b0b4['push'](_0x46b0b4['shift']());}};_0x3553f2(++_0x939f3);}(a717_0x939f,0x190));const a717_0x3553=function(_0x46b0b4,_0x939f3){_0x46b0b4=_0x46b0b4-0x0;let _0x3553f2=a717_0x939f[_0x46b0b4];return _0x3553f2;};const _0x165d99=a717_0x3553;'use strict';const Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0x165d99('0x0')],'unique':'name'},'description':{'type':Sequelize[_0x165d99('0x0')],'allowNull':!![]},'defaultEntry':{'type':Sequelize[_0x165d99('0x1')],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/voiceContext/voiceContext.controller.js b/server/api/voiceContext/voiceContext.controller.js index d270d76..aba6594 100644 --- a/server/api/voiceContext/voiceContext.controller.js +++ b/server/api/voiceContext/voiceContext.controller.js @@ -1 +1 @@ -const a718_0x4a14=['utf8','UserProfileSection','info','update','filters','where','intersection','include','Unable\x20to\x20retrieve\x20the\x20current\x20user','fields','path','catch','Contexts','request\x20sent','VoiceContext','model','autoAssociation','stack','chan_sip.so','ejs','end','sendStatus','offset','json','readFileSync','/etc/asterisk/extensions_xcally_contexts.conf','keys','UserProfileResource','includeAll','Content-Range','../../config/environment','error','Reload','destroy','root','limit','key','../../components/parsers/qs','index','fieldName','../../mysqldb','message','filter','query','writeFileSync','body','length','map','VIRTUAL','send','jayson/promise','../../config/logger','request','findOne','count','findAll','role','http','then','merge','options','nolimit','order','render','name','attributes','rawAttributes','userProfileId','create','type','VoiceContext,\x20%s,\x20%s','status','get','sort','join','undefined','code','params'];(function(_0x1aacd6,_0x4a1419){const _0x86784a=function(_0x4eddee){while(--_0x4eddee){_0x1aacd6['push'](_0x1aacd6['shift']());}};_0x86784a(++_0x4a1419);}(a718_0x4a14,0x13f));const a718_0x8678=function(_0x1aacd6,_0x4a1419){_0x1aacd6=_0x1aacd6-0x0;let _0x86784a=a718_0x4a14[_0x1aacd6];return _0x86784a;};const _0x146c60=a718_0x8678;'use strict';const path=require(_0x146c60('0x3')),ejs=require(_0x146c60('0xc')),fs=require('fs'),_=require('lodash'),qs=require(_0x146c60('0x1e')),logger=require(_0x146c60('0x2c'))('api'),config=require(_0x146c60('0x17')),db=require(_0x146c60('0x21'))['db'],{Op}=require('sequelize'),jayson=require(_0x146c60('0x2b')),client=jayson['client'][_0x146c60('0x32')]({'port':0x232a});function respondWithRpcPromise(_0x4eddee,_0x13e28d,_0x5a9b82,_0xe73d99){return new Promise(function(_0x33c130,_0xdefcb5){const _0x51b4f0=a718_0x8678,_0x13c069=_0xe73d99||client;return _0x13c069[_0x51b4f0('0x2d')](_0x4eddee,_0x5a9b82)[_0x51b4f0('0x33')](function(_0x19f6c0){const _0x73e0cd=_0x51b4f0;logger['info'](_0x73e0cd('0x3f'),_0x13e28d,_0x73e0cd('0x6')),logger['debug']('VoiceContext,\x20%s,\x20%s,\x20%s',_0x13e28d,_0x73e0cd('0x6'),JSON['stringify'](_0x19f6c0));if(_0x19f6c0[_0x73e0cd('0x18')]){if(_0x19f6c0[_0x73e0cd('0x18')][_0x73e0cd('0x45')]===0x1f4)return logger[_0x73e0cd('0x18')](_0x73e0cd('0x3f'),_0x13e28d,_0x19f6c0['error'][_0x73e0cd('0x22')]),_0xdefcb5(_0x19f6c0[_0x73e0cd('0x18')][_0x73e0cd('0x22')]);return logger[_0x73e0cd('0x18')](_0x73e0cd('0x3f'),_0x13e28d,_0x19f6c0[_0x73e0cd('0x18')]['message']),_0x33c130(_0x19f6c0[_0x73e0cd('0x18')][_0x73e0cd('0x22')]);}else logger[_0x73e0cd('0x49')](_0x73e0cd('0x3f'),_0x13e28d,_0x73e0cd('0x6')),_0x33c130(_0x19f6c0['result'][_0x73e0cd('0x22')]);})[_0x51b4f0('0x4')](function(_0x4981f8){const _0x4da97e=_0x51b4f0;logger['error'](_0x4da97e('0x3f'),_0x13e28d,_0x4981f8),_0xdefcb5(_0x4981f8);});});}function respondWithResult(_0x51b79e,_0x242f7f){return _0x242f7f=_0x242f7f||0xc8,function(_0x1418ab){const _0x192b04=a718_0x8678;if(_0x1418ab)return _0x51b79e[_0x192b04('0x40')](_0x242f7f)[_0x192b04('0x10')](_0x1418ab);};}function respondWithFilteredResult(_0x374676,_0xc7e86e){return function(_0x59ecb0){const _0xf4cc5c=a718_0x8678;if(_0x59ecb0){const _0x2953a6=_0x59ecb0[_0xf4cc5c('0x2f')],_0x1a2ba4=_0xc7e86e[_0xf4cc5c('0xf')];let _0x438c83=_0xc7e86e[_0xf4cc5c('0xf')]+_0xc7e86e['limit'],_0x55b75f;return _0x438c83>=_0x2953a6?(_0x438c83=_0x2953a6,_0x55b75f=0xc8):_0x55b75f=0xce,_0x374676[_0xf4cc5c('0x40')](_0x55b75f),_0x374676['set'](_0xf4cc5c('0x16'),_0x1a2ba4+'-'+_0x438c83+'/'+_0x2953a6)[_0xf4cc5c('0x10')](_0x59ecb0);}return null;};}function saveUpdates(_0x26e405){return function(_0x137dd2){const _0x678fb4=a718_0x8678;if(_0x137dd2)return _0x137dd2[_0x678fb4('0x4a')](_0x26e405)[_0x678fb4('0x33')](function(_0x46d1d3){return _0x46d1d3;});return null;};}function removeEntity(_0x34065d){return function(_0x4ab0b3){const _0x47a51d=a718_0x8678;if(_0x4ab0b3)return _0x4ab0b3[_0x47a51d('0x1a')]()[_0x47a51d('0x33')](function(){const _0x5e46d6=_0x47a51d,_0x5a3bb6=_0x4ab0b3[_0x5e46d6('0x41')]({'plain':!![]}),_0x1f1516=_0x5e46d6('0x5');return db['UserProfileResource'][_0x5e46d6('0x1a')]({'where':{'type':_0x1f1516,'resourceId':_0x5a3bb6['id']}})[_0x5e46d6('0x33')](function(){return _0x4ab0b3;});})[_0x47a51d('0x33')](function(){const _0xcf5bdf=_0x47a51d;_0x34065d[_0xcf5bdf('0x40')](0xcc)[_0xcf5bdf('0xd')]();});};}function handleEntityNotFound(_0x1f4af1){return function(_0x4badc6){const _0x113e08=a718_0x8678;return!_0x4badc6&&_0x1f4af1[_0x113e08('0xe')](0x194),_0x4badc6;};}function handleError(_0x5ad6a6,_0x4133f4){return _0x4133f4=_0x4133f4||0x1f4,function(_0x19f851){const _0x4b7bd0=a718_0x8678;logger[_0x4b7bd0('0x18')](_0x19f851[_0x4b7bd0('0xa')]),_0x19f851[_0x4b7bd0('0x39')]&&delete _0x19f851[_0x4b7bd0('0x39')],_0x5ad6a6[_0x4b7bd0('0x40')](_0x4133f4)[_0x4b7bd0('0x2a')](_0x19f851);};}exports[_0x146c60('0x1f')]=function(_0x5e6a20,_0x2c1c4f){const _0x408e77=_0x146c60;let _0x4259c5={};const _0x1981d9={},_0x28d067={'count':0x0,'rows':[]},_0xe3cdb4=_[_0x408e77('0x28')](db['VoiceContext'][_0x408e77('0x3b')],function(_0x342e75){const _0x654208=_0x408e77;return{'name':_0x342e75[_0x654208('0x20')],'type':_0x342e75['type'][_0x654208('0x1d')]};});_0x1981d9[_0x408e77('0x8')]=_[_0x408e77('0x28')](_0xe3cdb4,_0x408e77('0x39')),_0x1981d9[_0x408e77('0x24')]=_[_0x408e77('0x13')](_0x5e6a20[_0x408e77('0x24')]),_0x1981d9[_0x408e77('0x4b')]=_[_0x408e77('0x4d')](_0x1981d9[_0x408e77('0x8')],_0x1981d9[_0x408e77('0x24')]),_0x4259c5['attributes']=_[_0x408e77('0x4d')](_0x1981d9[_0x408e77('0x8')],qs[_0x408e77('0x2')](_0x5e6a20[_0x408e77('0x24')]['fields'])),_0x4259c5[_0x408e77('0x3a')]=_0x4259c5['attributes'][_0x408e77('0x27')]?_0x4259c5[_0x408e77('0x3a')]:_0x1981d9[_0x408e77('0x8')];typeof _0x5e6a20[_0x408e77('0x24')][_0x408e77('0x36')]===_0x408e77('0x44')&&(_0x4259c5[_0x408e77('0x1c')]=qs[_0x408e77('0x1c')](_0x5e6a20[_0x408e77('0x24')][_0x408e77('0x1c')]),_0x4259c5[_0x408e77('0xf')]=qs[_0x408e77('0xf')](_0x5e6a20['query'][_0x408e77('0xf')]));_0x4259c5[_0x408e77('0x37')]=qs[_0x408e77('0x42')](_0x5e6a20[_0x408e77('0x24')][_0x408e77('0x42')]),_0x4259c5['where']=qs[_0x408e77('0x4b')](_['pick'](_0x5e6a20[_0x408e77('0x24')],_0x1981d9[_0x408e77('0x4b')]),_0xe3cdb4);_0x5e6a20['query'][_0x408e77('0x23')]&&(_0x4259c5[_0x408e77('0x4c')]=_['merge'](_0x4259c5[_0x408e77('0x4c')],{[Op['or']]:_[_0x408e77('0x28')](_0xe3cdb4,function(_0x2cc492){const _0x2625bd=_0x408e77;if(_0x2cc492[_0x2625bd('0x3e')]!==_0x2625bd('0x29')){const _0x15f888={};return _0x15f888[_0x2cc492[_0x2625bd('0x39')]]={[Op['like']]:'%'+_0x5e6a20[_0x2625bd('0x24')][_0x2625bd('0x23')]+'%'},_0x15f888;}})}));_0x4259c5=_[_0x408e77('0x34')]({},_0x4259c5,_0x5e6a20['options']);const _0xc7b898={'where':_0x4259c5['where']};return db[_0x408e77('0x7')][_0x408e77('0x2f')](_0xc7b898)['then'](function(_0x118d04){const _0x7fefdd=_0x408e77;return _0x28d067[_0x7fefdd('0x2f')]=_0x118d04,_0x5e6a20[_0x7fefdd('0x24')][_0x7fefdd('0x15')]&&(_0x4259c5[_0x7fefdd('0x0')]=[{'all':!![]}]),db[_0x7fefdd('0x7')][_0x7fefdd('0x30')](_0x4259c5);})[_0x408e77('0x33')](function(_0x2415b2){return _0x28d067['rows']=_0x2415b2,_0x28d067;})['then'](respondWithFilteredResult(_0x2c1c4f,_0x4259c5))['catch'](handleError(_0x2c1c4f,null));},exports['show']=function(_0x3cc240,_0x3db326){const _0x24c80c=_0x146c60;let _0xf35b1a={'raw':![],'where':{'id':_0x3cc240[_0x24c80c('0x46')]['id']}};const _0x1c0dd0={};return _0x1c0dd0[_0x24c80c('0x8')]=_[_0x24c80c('0x13')](db[_0x24c80c('0x7')][_0x24c80c('0x3b')]),_0x1c0dd0[_0x24c80c('0x24')]=_['keys'](_0x3cc240[_0x24c80c('0x24')]),_0x1c0dd0[_0x24c80c('0x4b')]=_[_0x24c80c('0x4d')](_0x1c0dd0['model'],_0x1c0dd0[_0x24c80c('0x24')]),_0xf35b1a['attributes']=_[_0x24c80c('0x4d')](_0x1c0dd0['model'],qs[_0x24c80c('0x2')](_0x3cc240[_0x24c80c('0x24')]['fields'])),_0xf35b1a[_0x24c80c('0x3a')]=_0xf35b1a['attributes'][_0x24c80c('0x27')]?_0xf35b1a[_0x24c80c('0x3a')]:_0x1c0dd0[_0x24c80c('0x8')],_0x3cc240[_0x24c80c('0x24')][_0x24c80c('0x15')]&&(_0xf35b1a[_0x24c80c('0x0')]=[{'all':!![]}]),_0xf35b1a=_[_0x24c80c('0x34')]({},_0xf35b1a,_0x3cc240[_0x24c80c('0x35')]),db[_0x24c80c('0x7')]['findOne'](_0xf35b1a)[_0x24c80c('0x33')](handleEntityNotFound(_0x3db326,null))['then'](respondWithResult(_0x3db326,null))['catch'](handleError(_0x3db326,null));},exports[_0x146c60('0x3d')]=function(_0x557b1e,_0x52ed60){const _0x223a64=_0x146c60;let _0x237a8c;return db['VoiceContext'][_0x223a64('0x3d')](_0x557b1e[_0x223a64('0x26')],{'raw':!![]})['then'](function(_0x207937){const _0x5f55a1=_0x223a64;return _0x237a8c=_0x207937,db[_0x5f55a1('0x7')][_0x5f55a1('0x30')]({'raw':!![]});})[_0x223a64('0x33')](function(_0x428d11){const _0x38d814=_0x223a64,_0x5ee2e4=fs[_0x38d814('0x11')](path[_0x38d814('0x43')](config[_0x38d814('0x1b')],'server/files/templates/context.ejs'),_0x38d814('0x47')),_0x17f2e6=ejs['render'](_0x5ee2e4,{'contexts':_0x428d11||[]});fs['writeFileSync'](_0x38d814('0x12'),_0x17f2e6);})[_0x223a64('0x33')](function(){const _0x1aeafe=_0x223a64;return respondWithRpcPromise(_0x1aeafe('0x19'),_0x1aeafe('0x3d'),{'module':'chan_sip.so'});})[_0x223a64('0x33')](function(){const _0x1dda21=_0x223a64,_0x3cff8=_0x557b1e['user'][_0x1dda21('0x41')]({'plain':!![]});if(!_0x3cff8)throw new Error(_0x1dda21('0x1'));if(_0x3cff8[_0x1dda21('0x31')]==='user'){const _0x2b16dc=_0x237a8c[_0x1dda21('0x41')]({'plain':!![]});return db[_0x1dda21('0x48')][_0x1dda21('0x2e')]({'where':{'name':_0x1dda21('0x5'),'userProfileId':_0x3cff8[_0x1dda21('0x3c')]},'raw':!![]})[_0x1dda21('0x33')](function(_0x5203ed){const _0x1149a9=_0x1dda21;return _0x5203ed&&_0x5203ed[_0x1149a9('0x9')]===0x0?db[_0x1149a9('0x14')]['create']({'name':_0x2b16dc['name'],'resourceId':_0x2b16dc['id'],'type':_0x5203ed[_0x1149a9('0x39')],'sectionId':_0x5203ed['id']},{})['then'](function(){return _0x237a8c;}):_0x237a8c;})[_0x1dda21('0x4')](function(_0x598368){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x598368);throw _0x598368;});}return _0x237a8c;})['then'](respondWithResult(_0x52ed60,0xc9))[_0x223a64('0x4')](handleError(_0x52ed60,null));},exports['update']=function(_0x3a61c9,_0x2f42d6){const _0x5f33a8=_0x146c60;let _0x441917;return db[_0x5f33a8('0x7')][_0x5f33a8('0x2e')]({'where':{'id':_0x3a61c9[_0x5f33a8('0x46')]['id']}})[_0x5f33a8('0x33')](handleEntityNotFound(_0x2f42d6,null))[_0x5f33a8('0x33')](saveUpdates(_0x3a61c9['body'],null))[_0x5f33a8('0x33')](function(_0x23a73b){const _0x34201a=_0x5f33a8;if(_0x23a73b)return _0x441917=_0x23a73b,db['VoiceContext'][_0x34201a('0x30')]({'raw':!![]});})['then'](function(_0xc48758){const _0x936e2f=_0x5f33a8,_0x4808eb=fs[_0x936e2f('0x11')](path['join'](config['root'],'server/files/templates/context.ejs'),_0x936e2f('0x47')),_0x2c166a=ejs[_0x936e2f('0x38')](_0x4808eb,{'contexts':_0xc48758||[]});fs[_0x936e2f('0x25')](_0x936e2f('0x12'),_0x2c166a);})[_0x5f33a8('0x33')](function(){const _0x1b5f2a=_0x5f33a8;return respondWithRpcPromise(_0x1b5f2a('0x19'),_0x1b5f2a('0x4a'),{'module':'chan_sip.so'});})['then'](function(){return _0x441917;})[_0x5f33a8('0x33')](respondWithResult(_0x2f42d6,null))[_0x5f33a8('0x4')](handleError(_0x2f42d6,null));},exports[_0x146c60('0x1a')]=function(_0x594d05,_0x1db509){const _0x1b550c=_0x146c60;return db[_0x1b550c('0x7')][_0x1b550c('0x2e')]({'where':{'id':_0x594d05[_0x1b550c('0x46')]['id']}})[_0x1b550c('0x33')](handleEntityNotFound(_0x1db509,null))[_0x1b550c('0x33')](removeEntity(_0x1db509,null))[_0x1b550c('0x33')](function(){const _0x5d1e71=_0x1b550c;return db[_0x5d1e71('0x7')][_0x5d1e71('0x30')]({'raw':!![]});})['then'](function(_0x164921){const _0x15d29f=_0x1b550c,_0x33e188=fs[_0x15d29f('0x11')](path['join'](config[_0x15d29f('0x1b')],'server/files/templates/context.ejs'),_0x15d29f('0x47')),_0x3c1456=ejs[_0x15d29f('0x38')](_0x33e188,{'contexts':_0x164921});return fs['writeFileSync']('/etc/asterisk/extensions_xcally_contexts.conf',_0x3c1456),respondWithRpcPromise(_0x15d29f('0x19'),_0x15d29f('0x1a'),{'module':_0x15d29f('0xb')});})[_0x1b550c('0x4')](handleError(_0x1db509,null));}; \ No newline at end of file +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 diff --git a/server/api/voiceContext/voiceContext.model.js b/server/api/voiceContext/voiceContext.model.js index 56a02ec..6e46227 100644 --- a/server/api/voiceContext/voiceContext.model.js +++ b/server/api/voiceContext/voiceContext.model.js @@ -1 +1 @@ -const a719_0x1557=['exports','define','VoiceContext'];(function(_0x27037f,_0x155700){const _0x2a345d=function(_0x204824){while(--_0x204824){_0x27037f['push'](_0x27037f['shift']());}};_0x2a345d(++_0x155700);}(a719_0x1557,0x172));const a719_0x2a34=function(_0x27037f,_0x155700){_0x27037f=_0x27037f-0x0;let _0x2a345d=a719_0x1557[_0x27037f];return _0x2a345d;};const _0x356397=a719_0x2a34;'use strict';const attributes=require('./voiceContext.attributes');module[_0x356397('0x2')]=function(_0x204824){const _0x2f63cb=_0x356397,_0x3a8141=_0x204824[_0x2f63cb('0x0')](_0x2f63cb('0x1'),attributes,{'tableName':'voice_contexts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x3a8141;}; \ No newline at end of file +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 diff --git a/server/api/voiceDialReport/index.js b/server/api/voiceDialReport/index.js index 7694afc..9c8e941 100644 --- a/server/api/voiceDialReport/index.js +++ b/server/api/voiceDialReport/index.js @@ -1 +1 @@ -const a720_0x49dc=['show','describe','create','destroy','get','../../components/auth/service','update','post','put','/:id','exports','isAuthenticated','express'];(function(_0x517cc3,_0x49dca3){const _0x413254=function(_0x137201){while(--_0x137201){_0x517cc3['push'](_0x517cc3['shift']());}};_0x413254(++_0x49dca3);}(a720_0x49dc,0x117));const a720_0x4132=function(_0x517cc3,_0x49dca3){_0x517cc3=_0x517cc3-0x0;let _0x413254=a720_0x49dc[_0x517cc3];return _0x413254;};const _0x412db5=a720_0x4132;'use strict';const express=require(_0x412db5('0x6')),router=express['Router'](),auth=require(_0x412db5('0xc')),controller=require('./voiceDialReport.controller');router[_0x412db5('0xb')]('/',auth['isAuthenticated'](),controller['index']),router[_0x412db5('0xb')]('/describe',auth[_0x412db5('0x5')](),controller[_0x412db5('0x8')]),router[_0x412db5('0xb')](_0x412db5('0x3'),auth[_0x412db5('0x5')](),controller[_0x412db5('0x7')]),router[_0x412db5('0x1')]('/',auth['isAuthenticated'](),controller[_0x412db5('0x9')]),router[_0x412db5('0x2')](_0x412db5('0x3'),auth[_0x412db5('0x5')](),controller[_0x412db5('0x0')]),router['delete']('/:id',auth['isAuthenticated'](),controller[_0x412db5('0xa')]),module[_0x412db5('0x4')]=router; \ No newline at end of file +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 diff --git a/server/api/voiceDialReport/voiceDialReport.attributes.js b/server/api/voiceDialReport/voiceDialReport.attributes.js index 0696815..aad9d38 100644 --- a/server/api/voiceDialReport/voiceDialReport.attributes.js +++ b/server/api/voiceDialReport/voiceDialReport.attributes.js @@ -1 +1 @@ -const a721_0x4fdb=['STRING','DATE','INTEGER','called,connect,complete','exports','sequelize'];(function(_0x405bc6,_0x4fdbe4){const _0x6bcbcb=function(_0x250ab0){while(--_0x250ab0){_0x405bc6['push'](_0x405bc6['shift']());}};_0x6bcbcb(++_0x4fdbe4);}(a721_0x4fdb,0xd3));const a721_0x6bcb=function(_0x405bc6,_0x4fdbe4){_0x405bc6=_0x405bc6-0x0;let _0x6bcbcb=a721_0x4fdb[_0x405bc6];return _0x6bcbcb;};const _0x4a80a9=a721_0x6bcb;'use strict';const Sequelize=require(_0x4a80a9('0x4'));module[_0x4a80a9('0x3')]={'privilege':{'type':Sequelize['STRING']},'channel':{'type':Sequelize['STRING']},'channelstate':{'type':Sequelize['INTEGER']},'channelstatedesc':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize[_0x4a80a9('0x5')]},'calleridname':{'type':Sequelize[_0x4a80a9('0x5')]},'connectedlinenum':{'type':Sequelize[_0x4a80a9('0x5')]},'connectedlinename':{'type':Sequelize[_0x4a80a9('0x5')]},'language':{'type':Sequelize[_0x4a80a9('0x5')]},'accountcode':{'type':Sequelize[_0x4a80a9('0x5')]},'context':{'type':Sequelize[_0x4a80a9('0x5')]},'exten':{'type':Sequelize[_0x4a80a9('0x5')]},'priority':{'type':Sequelize['INTEGER']},'uniqueid':{'type':Sequelize[_0x4a80a9('0x5')]},'linkedid':{'type':Sequelize['STRING']},'destchannel':{'type':Sequelize['STRING']},'destchannelstate':{'type':Sequelize['INTEGER']},'destchannelstatedesc':{'type':Sequelize[_0x4a80a9('0x5')]},'destcalleridnum':{'type':Sequelize[_0x4a80a9('0x5')]},'destcalleridname':{'type':Sequelize[_0x4a80a9('0x5')]},'destconnectedlinenum':{'type':Sequelize[_0x4a80a9('0x5')]},'destconnectedlinename':{'type':Sequelize[_0x4a80a9('0x5')]},'destlanguage':{'type':Sequelize[_0x4a80a9('0x5')]},'destaccountcode':{'type':Sequelize[_0x4a80a9('0x5')]},'destcontext':{'type':Sequelize[_0x4a80a9('0x5')]},'destexten':{'type':Sequelize[_0x4a80a9('0x5')]},'destpriority':{'type':Sequelize[_0x4a80a9('0x1')]},'destuniqueid':{'type':Sequelize[_0x4a80a9('0x5')]},'destlinkedid':{'type':Sequelize[_0x4a80a9('0x5')]},'dialstring':{'type':Sequelize[_0x4a80a9('0x5')]},'dialstatus':{'type':Sequelize[_0x4a80a9('0x5')]},'starttime':{'type':Sequelize[_0x4a80a9('0x0')]},'answertime':{'type':Sequelize[_0x4a80a9('0x0')]},'endtime':{'type':Sequelize['DATE']},'lastevent':{'type':Sequelize['STRING'],'comment':_0x4a80a9('0x2')},'routeId':{'type':Sequelize[_0x4a80a9('0x1')]},'duration':{'type':Sequelize[_0x4a80a9('0x1')]},'holdtime':{'type':Sequelize['INTEGER']},'billableseconds':{'type':Sequelize['INTEGER']}}; \ No newline at end of file +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 diff --git a/server/api/voiceDialReport/voiceDialReport.controller.js b/server/api/voiceDialReport/voiceDialReport.controller.js index 083822d..8316ab2 100644 --- a/server/api/voiceDialReport/voiceDialReport.controller.js +++ b/server/api/voiceDialReport/voiceDialReport.controller.js @@ -1 +1 @@ -const a722_0x26ec=['model','findOne','params','body','merge','options','keys','findAll','fields','attributes','stack','VoiceDialReport','pick','../../components/parsers/qs','includeAll','filter','query','map','catch','include','like','undefined','order','sendStatus','show','json','../../config/logger','error','index','Content-Range','lodash','rawAttributes','count','offset','status','name','VIRTUAL','intersection','api','fieldName','where','type','end','update','describe','nolimit','rows','../../mysqldb','filters','length','limit','then','sort','key','destroy','create'];(function(_0x13026a,_0x26ecf3){const _0x27f465=function(_0x3e2e16){while(--_0x3e2e16){_0x13026a['push'](_0x13026a['shift']());}};_0x27f465(++_0x26ecf3);}(a722_0x26ec,0x13f));const a722_0x27f4=function(_0x13026a,_0x26ecf3){_0x13026a=_0x13026a-0x0;let _0x27f465=a722_0x26ec[_0x13026a];return _0x27f465;};const _0xbcaffa=a722_0x27f4;'use strict';const _=require(_0xbcaffa('0x2f')),qs=require(_0xbcaffa('0x1e')),logger=require(_0xbcaffa('0x2b'))(_0xbcaffa('0x37')),db=require(_0xbcaffa('0x8'))['db'],{Op}=require('sequelize');function respondWithResult(_0x3e2e16,_0xe7a76a){return _0xe7a76a=_0xe7a76a||0xc8,function(_0x39a61f){const _0x2fb927=a722_0x27f4;if(_0x39a61f)return _0x3e2e16[_0x2fb927('0x33')](_0xe7a76a)[_0x2fb927('0x2a')](_0x39a61f);};}function respondWithFilteredResult(_0x2573dc,_0x25e385){return function(_0x25a5e4){const _0x4f3b4c=a722_0x27f4;if(_0x25a5e4){const _0x2d66ef=_0x25a5e4['count'],_0xb78308=_0x25e385[_0x4f3b4c('0x32')];let _0x146181=_0x25e385[_0x4f3b4c('0x32')]+_0x25e385['limit'],_0x521ba5;return _0x146181>=_0x2d66ef?(_0x146181=_0x2d66ef,_0x521ba5=0xc8):_0x521ba5=0xce,_0x2573dc['status'](_0x521ba5),_0x2573dc['set'](_0x4f3b4c('0x2e'),_0xb78308+'-'+_0x146181+'/'+_0x2d66ef)['json'](_0x25a5e4);}return null;};}function saveUpdates(_0x17682b){return function(_0x4b19c6){const _0x23c5f4=a722_0x27f4;if(_0x4b19c6)return _0x4b19c6[_0x23c5f4('0x4')](_0x17682b)[_0x23c5f4('0xc')](function(_0x192449){return _0x192449;});return null;};}function removeEntity(_0x4e6a1c){return function(_0x1d0a43){const _0x221282=a722_0x27f4;if(_0x1d0a43)return _0x1d0a43['destroy']()[_0x221282('0xc')](function(){const _0x7dcb62=_0x221282;_0x4e6a1c[_0x7dcb62('0x33')](0xcc)[_0x7dcb62('0x3')]();});};}function handleEntityNotFound(_0x3ed305){return function(_0x3f159a){const _0x2f3b73=a722_0x27f4;return!_0x3f159a&&_0x3ed305[_0x2f3b73('0x28')](0x194),_0x3f159a;};}function handleError(_0x28d545,_0x3324f2){return _0x3324f2=_0x3324f2||0x1f4,function(_0x2cf6f3){const _0x59cb3d=a722_0x27f4;logger[_0x59cb3d('0x2c')](_0x2cf6f3[_0x59cb3d('0x1b')]),_0x2cf6f3[_0x59cb3d('0x34')]&&delete _0x2cf6f3[_0x59cb3d('0x34')],_0x28d545[_0x59cb3d('0x33')](_0x3324f2)['send'](_0x2cf6f3);};}exports[_0xbcaffa('0x2d')]=function(_0x356501,_0x2ff8ca){const _0x52db8a=_0xbcaffa;let _0x12c288={};const _0x1cec59={},_0x4839e0={'count':0x0,'rows':[]},_0x19a9d2=_['map'](db[_0x52db8a('0x1c')]['rawAttributes'],function(_0x2d41b4){const _0x3dc28f=_0x52db8a;return{'name':_0x2d41b4[_0x3dc28f('0x0')],'type':_0x2d41b4[_0x3dc28f('0x2')][_0x3dc28f('0xe')]};});_0x1cec59[_0x52db8a('0x11')]=_[_0x52db8a('0x22')](_0x19a9d2,_0x52db8a('0x34')),_0x1cec59['query']=_[_0x52db8a('0x17')](_0x356501[_0x52db8a('0x21')]),_0x1cec59[_0x52db8a('0x9')]=_[_0x52db8a('0x36')](_0x1cec59['model'],_0x1cec59[_0x52db8a('0x21')]),_0x12c288['attributes']=_['intersection'](_0x1cec59[_0x52db8a('0x11')],qs['fields'](_0x356501[_0x52db8a('0x21')][_0x52db8a('0x19')])),_0x12c288[_0x52db8a('0x1a')]=_0x12c288[_0x52db8a('0x1a')][_0x52db8a('0xa')]?_0x12c288[_0x52db8a('0x1a')]:_0x1cec59[_0x52db8a('0x11')];typeof _0x356501[_0x52db8a('0x21')][_0x52db8a('0x6')]===_0x52db8a('0x26')&&(_0x12c288[_0x52db8a('0xb')]=qs[_0x52db8a('0xb')](_0x356501[_0x52db8a('0x21')]['limit']),_0x12c288[_0x52db8a('0x32')]=qs[_0x52db8a('0x32')](_0x356501['query'][_0x52db8a('0x32')]));_0x12c288[_0x52db8a('0x27')]=qs[_0x52db8a('0xd')](_0x356501[_0x52db8a('0x21')][_0x52db8a('0xd')]),_0x12c288[_0x52db8a('0x1')]=qs[_0x52db8a('0x9')](_[_0x52db8a('0x1d')](_0x356501[_0x52db8a('0x21')],_0x1cec59[_0x52db8a('0x9')]),_0x19a9d2);_0x356501[_0x52db8a('0x21')][_0x52db8a('0x20')]&&(_0x12c288[_0x52db8a('0x1')]=_[_0x52db8a('0x15')](_0x12c288['where'],{[Op['or']]:_[_0x52db8a('0x22')](_0x19a9d2,function(_0x129cbb){const _0x5f45e7=_0x52db8a;if(_0x129cbb[_0x5f45e7('0x2')]!==_0x5f45e7('0x35')){const _0x3e0b38={};return _0x3e0b38[_0x129cbb[_0x5f45e7('0x34')]]={[Op[_0x5f45e7('0x25')]]:'%'+_0x356501[_0x5f45e7('0x21')][_0x5f45e7('0x20')]+'%'},_0x3e0b38;}})}));_0x12c288=_[_0x52db8a('0x15')]({},_0x12c288,_0x356501[_0x52db8a('0x16')]);const _0x505135={'where':_0x12c288[_0x52db8a('0x1')]};return db[_0x52db8a('0x1c')][_0x52db8a('0x31')](_0x505135)[_0x52db8a('0xc')](function(_0x3be730){const _0x2f70a9=_0x52db8a;return _0x4839e0[_0x2f70a9('0x31')]=_0x3be730,_0x356501[_0x2f70a9('0x21')][_0x2f70a9('0x1f')]&&(_0x12c288[_0x2f70a9('0x24')]=[{'all':!![]}]),db[_0x2f70a9('0x1c')][_0x2f70a9('0x18')](_0x12c288);})[_0x52db8a('0xc')](function(_0x190e89){const _0x1e2e6b=_0x52db8a;return _0x4839e0[_0x1e2e6b('0x7')]=_0x190e89,_0x4839e0;})[_0x52db8a('0xc')](respondWithFilteredResult(_0x2ff8ca,_0x12c288))[_0x52db8a('0x23')](handleError(_0x2ff8ca,null));},exports[_0xbcaffa('0x29')]=function(_0xc46e28,_0x3e0de0){const _0x3a221a=_0xbcaffa;let _0x176e81={'raw':!![],'where':{'id':_0xc46e28['params']['id']}};const _0x1d8e6e={};return _0x1d8e6e[_0x3a221a('0x11')]=_[_0x3a221a('0x17')](db[_0x3a221a('0x1c')][_0x3a221a('0x30')]),_0x1d8e6e['query']=_['keys'](_0xc46e28[_0x3a221a('0x21')]),_0x1d8e6e[_0x3a221a('0x9')]=_[_0x3a221a('0x36')](_0x1d8e6e[_0x3a221a('0x11')],_0x1d8e6e['query']),_0x176e81['attributes']=_[_0x3a221a('0x36')](_0x1d8e6e['model'],qs['fields'](_0xc46e28[_0x3a221a('0x21')][_0x3a221a('0x19')])),_0x176e81[_0x3a221a('0x1a')]=_0x176e81[_0x3a221a('0x1a')][_0x3a221a('0xa')]?_0x176e81[_0x3a221a('0x1a')]:_0x1d8e6e[_0x3a221a('0x11')],_0xc46e28[_0x3a221a('0x21')][_0x3a221a('0x1f')]&&(_0x176e81['include']=[{'all':!![]}]),_0x176e81=_[_0x3a221a('0x15')]({},_0x176e81,_0xc46e28['options']),db['VoiceDialReport'][_0x3a221a('0x12')](_0x176e81)[_0x3a221a('0xc')](handleEntityNotFound(_0x3e0de0,null))[_0x3a221a('0xc')](respondWithResult(_0x3e0de0,null))['catch'](handleError(_0x3e0de0,null));},exports[_0xbcaffa('0x10')]=function(_0x462a09,_0x4c51a5){const _0x12a96d=_0xbcaffa;return db[_0x12a96d('0x1c')][_0x12a96d('0x10')](_0x462a09[_0x12a96d('0x14')],{})[_0x12a96d('0xc')](respondWithResult(_0x4c51a5,0xc9))[_0x12a96d('0x23')](handleError(_0x4c51a5,null));},exports[_0xbcaffa('0x4')]=function(_0x1fd201,_0x3c7ae4){const _0x260e32=_0xbcaffa;return _0x1fd201[_0x260e32('0x14')]['id']&&delete _0x1fd201[_0x260e32('0x14')]['id'],db[_0x260e32('0x1c')][_0x260e32('0x12')]({'where':{'id':_0x1fd201[_0x260e32('0x13')]['id']}})['then'](handleEntityNotFound(_0x3c7ae4,null))[_0x260e32('0xc')](saveUpdates(_0x1fd201[_0x260e32('0x14')],null))[_0x260e32('0xc')](respondWithResult(_0x3c7ae4,null))['catch'](handleError(_0x3c7ae4,null));},exports[_0xbcaffa('0xf')]=function(_0x518bb6,_0xfa167f){const _0x323ee2=_0xbcaffa;return db['VoiceDialReport']['findOne']({'where':{'id':_0x518bb6[_0x323ee2('0x13')]['id']}})[_0x323ee2('0xc')](handleEntityNotFound(_0xfa167f,null))[_0x323ee2('0xc')](removeEntity(_0xfa167f,null))[_0x323ee2('0x23')](handleError(_0xfa167f,null));},exports['describe']=function(_0x3da8b4,_0x3abbd6){const _0x40d98a=_0xbcaffa;return db[_0x40d98a('0x1c')][_0x40d98a('0x5')]()[_0x40d98a('0xc')](respondWithResult(_0x3abbd6,null))[_0x40d98a('0x23')](handleError(_0x3abbd6,null));}; \ No newline at end of file +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 diff --git a/server/api/voiceDialReport/voiceDialReport.model.js b/server/api/voiceDialReport/voiceDialReport.model.js index 1448eb6..7c71664 100644 --- a/server/api/voiceDialReport/voiceDialReport.model.js +++ b/server/api/voiceDialReport/voiceDialReport.model.js @@ -1 +1 @@ -const a723_0x53fd=['define','uniqueid'];(function(_0x12f970,_0x53fd5d){const _0xe03b9a=function(_0x469e37){while(--_0x469e37){_0x12f970['push'](_0x12f970['shift']());}};_0xe03b9a(++_0x53fd5d);}(a723_0x53fd,0x1ca));const a723_0xe03b=function(_0x12f970,_0x53fd5d){_0x12f970=_0x12f970-0x0;let _0xe03b9a=a723_0x53fd[_0x12f970];return _0xe03b9a;};'use strict';const attributes=require('./voiceDialReport.attributes');module['exports']=function(_0x469e37){const _0x16da5f=a723_0xe03b,_0x299215=_0x469e37[_0x16da5f('0x0')]('VoiceDialReport',attributes,{'tableName':'report_dial','paranoid':![],'indexes':[{'fields':[_0x16da5f('0x1')]}],'timestamps':!![]});return _0x299215;}; \ No newline at end of file +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 diff --git a/server/api/voiceDialReport/voiceDialReport.rpc.js b/server/api/voiceDialReport/voiceDialReport.rpc.js index 178d2e3..e71ec02 100644 --- a/server/api/voiceDialReport/voiceDialReport.rpc.js +++ b/server/api/voiceDialReport/voiceDialReport.rpc.js @@ -1 +1 @@ -const a724_0xda18=['body','UpdateVoiceDialReport','../../mysqldb','CreateVoiceDialReport','limit','error','debug','catch','then','VoiceDialReport','where','message','../../config/logger','options','stringify','raw','rpc','update','info'];(function(_0x55d852,_0xda18c2){const _0x343049=function(_0x440897){while(--_0x440897){_0x55d852['push'](_0x55d852['shift']());}};_0x343049(++_0xda18c2);}(a724_0xda18,0x1ae));const a724_0x3430=function(_0x55d852,_0xda18c2){_0x55d852=_0x55d852-0x0;let _0x343049=a724_0xda18[_0x55d852];return _0x343049;};const _0xf15ab=a724_0x3430;'use strict';const db=require(_0xf15ab('0x9'))['db'],logger=require(_0xf15ab('0x0'))(_0xf15ab('0x4'));exports[_0xf15ab('0xa')]=function(_0x440897){const _0x42cb4d=this;return new Promise(function(_0x25b325,_0x372d84){const _0x2d730c=a724_0x3430;return db[_0x2d730c('0x10')]['create'](_0x440897[_0x2d730c('0x7')],{'raw':_0x440897[_0x2d730c('0x1')]?_0x440897[_0x2d730c('0x1')][_0x2d730c('0x3')]===undefined?!![]:![]:!![]})[_0x2d730c('0xf')](function(_0x126e04){const _0x4a8f49=_0x2d730c;logger[_0x4a8f49('0x6')](_0x4a8f49('0xa'),_0x440897),logger[_0x4a8f49('0xd')](_0x4a8f49('0xa'),_0x440897,JSON[_0x4a8f49('0x2')](_0x126e04)),_0x25b325(_0x126e04);})[_0x2d730c('0xe')](function(_0x295b5a){const _0x44d6e9=_0x2d730c;logger[_0x44d6e9('0xc')](_0x44d6e9('0xa'),_0x295b5a[_0x44d6e9('0x12')],_0x440897),_0x372d84(_0x42cb4d[_0x44d6e9('0xc')](0x1f4,_0x295b5a[_0x44d6e9('0x12')]));});});},exports[_0xf15ab('0x8')]=function(_0x939bdb){const _0x5661e0=this;return new Promise(function(_0x2c4169,_0x3baf2b){const _0x331eac=a724_0x3430;return db['VoiceDialReport'][_0x331eac('0x5')](_0x939bdb[_0x331eac('0x7')],{'raw':_0x939bdb[_0x331eac('0x1')]?_0x939bdb['options'][_0x331eac('0x3')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x939bdb[_0x331eac('0x1')]?_0x939bdb[_0x331eac('0x1')][_0x331eac('0x11')]||null:null,'attributes':_0x939bdb[_0x331eac('0x1')]?_0x939bdb[_0x331eac('0x1')]['attributes']||null:null,'limit':_0x939bdb[_0x331eac('0x1')]?_0x939bdb[_0x331eac('0x1')][_0x331eac('0xb')]||null:null})[_0x331eac('0xf')](function(_0x3e72b4){const _0xcb956=_0x331eac;logger[_0xcb956('0x6')](_0xcb956('0x8'),_0x939bdb),logger[_0xcb956('0xd')](_0xcb956('0x8'),_0x939bdb,JSON[_0xcb956('0x2')](_0x3e72b4)),_0x2c4169(_0x3e72b4);})[_0x331eac('0xe')](function(_0x31a1c0){const _0x139c5f=_0x331eac;logger['error'](_0x139c5f('0x8'),_0x31a1c0[_0x139c5f('0x12')],_0x939bdb),_0x3baf2b(_0x5661e0[_0x139c5f('0xc')](0x1f4,_0x31a1c0[_0x139c5f('0x12')]));});});}; \ No newline at end of file +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 diff --git a/server/api/voiceExtension/index.js b/server/api/voiceExtension/index.js index 095bcc2..85278b9 100644 --- a/server/api/voiceExtension/index.js +++ b/server/api/voiceExtension/index.js @@ -1 +1 @@ -const a725_0x1f61=['addApplications','destroy','../../components/auth/service','exports','isAuthenticated','update','show','/:id/applications','./voiceExtension.controller','index','put','post','/:id','get','delete'];(function(_0xbce74a,_0x1f6119){const _0x117242=function(_0x51b9df){while(--_0x51b9df){_0xbce74a['push'](_0xbce74a['shift']());}};_0x117242(++_0x1f6119);}(a725_0x1f61,0x1c3));const a725_0x1172=function(_0xbce74a,_0x1f6119){_0xbce74a=_0xbce74a-0x0;let _0x117242=a725_0x1f61[_0xbce74a];return _0x117242;};const _0x5a2580=a725_0x1172;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x5a2580('0x1')),controller=require(_0x5a2580('0x7'));router[_0x5a2580('0xc')]('/',auth[_0x5a2580('0x3')](),controller[_0x5a2580('0x8')]),router['get'](_0x5a2580('0xb'),auth[_0x5a2580('0x3')](),controller[_0x5a2580('0x5')]),router[_0x5a2580('0xa')]('/',auth[_0x5a2580('0x3')](),controller['create']),router[_0x5a2580('0xa')](_0x5a2580('0x6'),auth[_0x5a2580('0x3')](),controller[_0x5a2580('0xe')]),router[_0x5a2580('0x9')](_0x5a2580('0xb'),auth[_0x5a2580('0x3')](),controller[_0x5a2580('0x4')]),router[_0x5a2580('0xd')](_0x5a2580('0xb'),auth[_0x5a2580('0x3')](),controller[_0x5a2580('0x0')]),module[_0x5a2580('0x2')]=router; \ No newline at end of file +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 diff --git a/server/api/voiceExtension/voiceExtension.attributes.js b/server/api/voiceExtension/voiceExtension.attributes.js index 0ba7e16..daf4275 100644 --- a/server/api/voiceExtension/voiceExtension.attributes.js +++ b/server/api/voiceExtension/voiceExtension.attributes.js @@ -1 +1 @@ -const a726_0x5448=['compositeIndex','outbound','any','BOOLEAN','VIRTUAL','*,*,*,*','ENUM','getDataValue','STRING','outbound-fax','system','exports','NoOp','INTEGER','internal','exten'];(function(_0x25568c,_0x5448f1){const _0x4b0fb7=function(_0x5e5522){while(--_0x5e5522){_0x25568c['push'](_0x25568c['shift']());}};_0x4b0fb7(++_0x5448f1);}(a726_0x5448,0x12d));const a726_0x4b0f=function(_0x25568c,_0x5448f1){_0x25568c=_0x25568c-0x0;let _0x4b0fb7=a726_0x5448[_0x25568c];return _0x4b0fb7;};const _0xe1cbe1=a726_0x4b0f;'use strict';const Sequelize=require('sequelize');module[_0xe1cbe1('0xe')]={'context':{'type':Sequelize[_0xe1cbe1('0xb')],'allowNull':![],'unique':_0xe1cbe1('0x3'),'validate':{'notEmpty':!![],'is':/[A-Za-z0-9._+*!\-[\]]+$/i}},'exten':{'type':Sequelize[_0xe1cbe1('0xb')],'allowNull':![],'unique':'compositeIndex'},'priority':{'type':Sequelize[_0xe1cbe1('0xb')],'allowNull':![],'defaultValue':'1','unique':'compositeIndex'},'tag':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'--'},'app':{'type':Sequelize[_0xe1cbe1('0xb')],'allowNull':![],'defaultValue':_0xe1cbe1('0xf')},'appdata':{'type':Sequelize[_0xe1cbe1('0xb')](0x1000),'allowNull':!![],'defaultValue':''},'type':{'type':Sequelize[_0xe1cbe1('0x9')]('inbound',_0xe1cbe1('0x4'),_0xe1cbe1('0x1'),'inbound-fax',_0xe1cbe1('0xc'),_0xe1cbe1('0xd'),_0xe1cbe1('0x5')),'allowNull':![]},'description':{'type':Sequelize[_0xe1cbe1('0xb')]},'interval':{'type':Sequelize[_0xe1cbe1('0xb')],'allowNull':![],'defaultValue':_0xe1cbe1('0x8')},'IntervalId':{'type':Sequelize[_0xe1cbe1('0x0')]},'isApp':{'type':Sequelize[_0xe1cbe1('0x6')],'allowNull':![],'defaultValue':![]},'appType':{'type':Sequelize[_0xe1cbe1('0xb')],'defaultValue':null},'callerID':{'type':Sequelize[_0xe1cbe1('0xb')],'allowNull':!![]},'record':{'type':Sequelize[_0xe1cbe1('0x6')],'defaultValue':![]},'cutdigits':{'type':Sequelize[_0xe1cbe1('0x0')]},'recordingFormat':{'type':Sequelize[_0xe1cbe1('0xb')],'defaultValue':'wav'},'answer':{'type':Sequelize[_0xe1cbe1('0x6')],'defaultValue':!![]},'name':{'type':Sequelize[_0xe1cbe1('0x7')],'get':function(){const _0x388a8c=_0xe1cbe1;return this[_0x388a8c('0xa')](_0x388a8c('0x2'));}}}; \ No newline at end of file +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 diff --git a/server/api/voiceExtension/voiceExtension.controller.js b/server/api/voiceExtension/voiceExtension.controller.js index c7aa229..1aac38a 100644 --- a/server/api/voiceExtension/voiceExtension.controller.js +++ b/server/api/voiceExtension/voiceExtension.controller.js @@ -1 +1 @@ -const a727_0xd077=['name','update','nolimit','model','where','register','send','get','query','index','context','internal','filter','bulkCreate','value','rows','undefined','role','set','userProfileId','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','key','../../rediscache','include','Content-Range','./voiceExtension.socket','find','../../components/parsers/qs','../../config/logger','ignore','cutdigits','includes','status','catch','rawAttributes','limit','type','UserProfileSection','findOne','fields','error','api','body','VIRTUAL','outbound','destroy','stack','params','sort','map','merge','show','attributes','count','InternalRoutes','inbound','UserProfileResource','VoiceExtensionId','intersection','json','VoiceExtension','exten','options','mandatoryDisposition','OutboundRoutes','keys','includeAll','pick','Unable\x20to\x20retrieve\x20the\x20current\x20user','create','description','sendStatus','findAll','concat','offset','findAndCountAll','user','startsWith','InboundRoutes','filters','then','lodash'];(function(_0x19eeda,_0xd07785){const _0x2c38aa=function(_0xa3f754){while(--_0xa3f754){_0x19eeda['push'](_0x19eeda['shift']());}};_0x2c38aa(++_0xd07785);}(a727_0xd077,0x72));const a727_0x2c38=function(_0x19eeda,_0xd07785){_0x19eeda=_0x19eeda-0x0;let _0x2c38aa=a727_0xd077[_0x19eeda];return _0x2c38aa;};const _0x426ce9=a727_0x2c38;'use strict';const _=require(_0x426ce9('0x31')),qs=require(_0x426ce9('0x4d')),logger=require(_0x426ce9('0x4e'))(_0x426ce9('0x9')),{getSocket}=require(_0x426ce9('0x48')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op}=require('sequelize');require(_0x426ce9('0x4b'))[_0x426ce9('0x37')](socket);function respondWithStatusCode(_0xa3f754,_0x500f2f){return _0x500f2f=_0x500f2f||0xcc,function(_0x47eae6){const _0x3bdc48=a727_0x2c38;if(_0x47eae6)return _0xa3f754[_0x3bdc48('0x27')](_0x500f2f);return _0xa3f754[_0x3bdc48('0x0')](_0x500f2f)['end']();};}function respondWithResult(_0xc0542,_0x504975){return _0x504975=_0x504975||0xc8,function(_0x534528){const _0x1e0b60=a727_0x2c38;if(_0x534528)return _0xc0542[_0x1e0b60('0x0')](_0x504975)[_0x1e0b60('0x1b')](_0x534528);};}function respondWithFilteredResult(_0x48d7ff,_0x557380){return function(_0x18e8b0){const _0x165dd5=a727_0x2c38;if(_0x18e8b0){const _0xcef552=_0x18e8b0[_0x165dd5('0x15')],_0xa3cc50=_0x557380[_0x165dd5('0x2a')];let _0x3e56b1=_0x557380[_0x165dd5('0x2a')]+_0x557380['limit'],_0xb3f87e;return _0x3e56b1>=_0xcef552?(_0x3e56b1=_0xcef552,_0xb3f87e=0xc8):_0xb3f87e=0xce,_0x48d7ff[_0x165dd5('0x0')](_0xb3f87e),_0x48d7ff[_0x165dd5('0x44')](_0x165dd5('0x4a'),_0xa3cc50+'-'+_0x3e56b1+'/'+_0xcef552)[_0x165dd5('0x1b')](_0x18e8b0);}return null;};}function removeEntity(_0xbd2ff9){return function(_0x3742aa){const _0x17d5d6=a727_0x2c38;if(_0x3742aa)return _0x3742aa[_0x17d5d6('0xd')]()['then'](function(){const _0x41368e=_0x17d5d6,_0x5d1f41=_0x3742aa[_0x41368e('0x39')]({'plain':!![]}),_0x4cd109=[{'name':_0x41368e('0x2e'),'value':_0x41368e('0x17'),'ignore':![]},{'name':_0x41368e('0x20'),'value':_0x41368e('0xc'),'ignore':![]},{'name':_0x41368e('0x16'),'value':'internal','ignore':![]}],_0x156d95=_(_0x4cd109)[_0x41368e('0x3e')](_0x41368e('0x4f'))[_0x41368e('0x11')](_0x41368e('0x40'))[_0x41368e('0x40')]();if(_[_0x41368e('0x51')](_0x156d95,_0x5d1f41['type']))return;const _0x2a964f=_[_0x41368e('0x4c')](_0x4cd109,[_0x41368e('0x40'),_0x5d1f41['type']])['name'];return db[_0x41368e('0x18')][_0x41368e('0xd')]({'where':{'type':_0x2a964f,'resourceId':_0x5d1f41['id']}})[_0x41368e('0x30')](function(){return _0x3742aa;});})[_0x17d5d6('0x30')](function(){const _0x1459f3=_0x17d5d6;_0xbd2ff9[_0x1459f3('0x0')](0xcc)['end']();});};}function handleEntityNotFound(_0x17d3ed){return function(_0x25eac3){const _0x319d56=a727_0x2c38;return!_0x25eac3&&_0x17d3ed[_0x319d56('0x27')](0x194),_0x25eac3;};}function handleError(_0x4a1f51,_0x1da156){return _0x1da156=_0x1da156||0x1f4,function(_0x250a40){const _0xb9eadb=a727_0x2c38;logger['error'](_0x250a40[_0xb9eadb('0xe')]),_0x250a40[_0xb9eadb('0x32')]&&delete _0x250a40[_0xb9eadb('0x32')],_0x4a1f51[_0xb9eadb('0x0')](_0x1da156)[_0xb9eadb('0x38')](_0x250a40);};}exports[_0x426ce9('0x3b')]=function(_0x461f6d,_0x1db221){const _0x17a236=_0x426ce9;let _0x1be86a={};const _0x16dc75={},_0x85b335={'count':0x0,'rows':[]},_0x161a67=_['map'](db['VoiceExtension'][_0x17a236('0x2')],function(_0x14667c){const _0x1062ca=_0x17a236;return{'name':_0x14667c['fieldName'],'type':_0x14667c['type'][_0x1062ca('0x47')]};});_0x16dc75['model']=_['map'](_0x161a67,_0x17a236('0x32')),_0x16dc75['query']=_[_0x17a236('0x21')](_0x461f6d[_0x17a236('0x3a')]),_0x16dc75[_0x17a236('0x2f')]=_[_0x17a236('0x1a')](_0x16dc75[_0x17a236('0x35')],_0x16dc75[_0x17a236('0x3a')]),_0x1be86a['attributes']=_[_0x17a236('0x1a')](_0x16dc75[_0x17a236('0x35')],qs[_0x17a236('0x7')](_0x461f6d[_0x17a236('0x3a')]['fields'])),_0x1be86a['attributes']=_0x1be86a[_0x17a236('0x14')]['length']?_0x1be86a[_0x17a236('0x14')]:_0x16dc75['model'];typeof _0x461f6d[_0x17a236('0x3a')][_0x17a236('0x34')]===_0x17a236('0x42')&&(_0x1be86a['limit']=qs[_0x17a236('0x3')](_0x461f6d[_0x17a236('0x3a')][_0x17a236('0x3')]),_0x1be86a[_0x17a236('0x2a')]=qs[_0x17a236('0x2a')](_0x461f6d[_0x17a236('0x3a')][_0x17a236('0x2a')]));_0x1be86a['order']=qs['sort'](_0x461f6d[_0x17a236('0x3a')][_0x17a236('0x10')]),_0x1be86a['where']=qs[_0x17a236('0x2f')](_['pick'](_0x461f6d[_0x17a236('0x3a')],_0x16dc75[_0x17a236('0x2f')]),_0x161a67);_0x461f6d[_0x17a236('0x3a')][_0x17a236('0x3e')]&&(_0x1be86a['where']=_['merge'](_0x1be86a[_0x17a236('0x36')],{[Op['or']]:_[_0x17a236('0x11')](_0x161a67,function(_0x3f603e){const _0x122747=_0x17a236;if(_0x3f603e[_0x122747('0x4')]!==_0x122747('0xb')){const _0x29c384={};return _0x29c384[_0x3f603e[_0x122747('0x32')]]={[Op['like']]:'%'+_0x461f6d[_0x122747('0x3a')][_0x122747('0x3e')]+'%'},_0x29c384;}})}));_0x1be86a=_[_0x17a236('0x12')]({},_0x1be86a,_0x461f6d[_0x17a236('0x1e')]);const _0x4e4e0a={'where':_0x1be86a['where']};return db[_0x17a236('0x1c')][_0x17a236('0x15')](_0x4e4e0a)[_0x17a236('0x30')](function(_0x2f937e){const _0x4bcb1f=_0x17a236;return _0x85b335[_0x4bcb1f('0x15')]=_0x2f937e,_0x461f6d[_0x4bcb1f('0x3a')][_0x4bcb1f('0x22')]&&(_0x1be86a['include']=[{'all':!![]}]),db[_0x4bcb1f('0x1c')][_0x4bcb1f('0x28')](_0x1be86a);})[_0x17a236('0x30')](function(_0x596edc){const _0x1dd47c=_0x17a236;return _0x85b335[_0x1dd47c('0x41')]=_0x596edc,_0x85b335;})['then'](respondWithFilteredResult(_0x1db221,_0x1be86a))[_0x17a236('0x1')](handleError(_0x1db221,null));},exports[_0x426ce9('0x13')]=function(_0x56b7fa,_0x2e4da7){const _0x234163=_0x426ce9;let _0x1ca166={'raw':![],'where':{'id':_0x56b7fa['params']['id']}};const _0x42ca9f={};return _0x42ca9f[_0x234163('0x35')]=_[_0x234163('0x21')](db[_0x234163('0x1c')][_0x234163('0x2')]),_0x42ca9f[_0x234163('0x3a')]=_['keys'](_0x56b7fa['query']),_0x42ca9f[_0x234163('0x2f')]=_[_0x234163('0x1a')](_0x42ca9f['model'],_0x42ca9f[_0x234163('0x3a')]),_0x1ca166[_0x234163('0x14')]=_['intersection'](_0x42ca9f[_0x234163('0x35')],qs[_0x234163('0x7')](_0x56b7fa[_0x234163('0x3a')][_0x234163('0x7')])),_0x1ca166[_0x234163('0x14')]=_0x1ca166[_0x234163('0x14')]['length']?_0x1ca166[_0x234163('0x14')]:_0x42ca9f['model'],_0x56b7fa[_0x234163('0x3a')]['includeAll']&&(_0x1ca166[_0x234163('0x49')]=[{'all':!![]}]),_0x1ca166=_[_0x234163('0x12')]({},_0x1ca166,_0x56b7fa[_0x234163('0x1e')]),db[_0x234163('0x1c')][_0x234163('0x6')](_0x1ca166)[_0x234163('0x30')](handleEntityNotFound(_0x2e4da7,null))['then'](respondWithResult(_0x2e4da7,null))[_0x234163('0x1')](handleError(_0x2e4da7,null));},exports[_0x426ce9('0xd')]=function(_0x391cd1,_0x1b55ee){const _0x312e9c=_0x426ce9;return db[_0x312e9c('0x1c')][_0x312e9c('0x6')]({'where':{'id':_0x391cd1[_0x312e9c('0xf')]['id']}})[_0x312e9c('0x30')](handleEntityNotFound(_0x1b55ee,null))[_0x312e9c('0x30')](removeEntity(_0x1b55ee,null))[_0x312e9c('0x1')](handleError(_0x1b55ee,null));},exports['create']=function(_0x1bd9b9,_0x444f81){const _0x5c7bd2=_0x426ce9;return _0x1bd9b9[_0x5c7bd2('0xa')][_0x5c7bd2('0x4')]==='outbound'&&!_[_0x5c7bd2('0x2d')](_0x1bd9b9['body'][_0x5c7bd2('0x1d')],'_')&&(_0x1bd9b9[_0x5c7bd2('0xa')]['exten']='_'[_0x5c7bd2('0x29')](_0x1bd9b9[_0x5c7bd2('0xa')]['exten'])),db[_0x5c7bd2('0x1c')][_0x5c7bd2('0x25')](_0x1bd9b9[_0x5c7bd2('0xa')],{'raw':![]})[_0x5c7bd2('0x30')](function(_0x4d23d5){const _0x1c9540=_0x5c7bd2,_0x2bb00d=_0x1bd9b9[_0x1c9540('0x2c')][_0x1c9540('0x39')]({'plain':!![]});if(!_0x2bb00d)throw new Error(_0x1c9540('0x24'));if(_0x2bb00d[_0x1c9540('0x43')]===_0x1c9540('0x2c')){const _0x1be5b9=_0x4d23d5['get']({'plain':!![]}),_0x477097=[{'name':'InboundRoutes','value':'inbound'},{'name':_0x1c9540('0x20'),'value':_0x1c9540('0xc')},{'name':_0x1c9540('0x16'),'value':_0x1c9540('0x3d')}],_0x5892f2=_['find'](_0x477097,[_0x1c9540('0x40'),_0x1be5b9[_0x1c9540('0x4')]])[_0x1c9540('0x32')];return db[_0x1c9540('0x5')][_0x1c9540('0x6')]({'where':{'name':_0x5892f2,'userProfileId':_0x2bb00d[_0x1c9540('0x45')]},'raw':!![]})[_0x1c9540('0x30')](function(_0x47e768){const _0x143963=_0x1c9540;return _0x47e768&&_0x47e768['autoAssociation']===0x0?db[_0x143963('0x18')][_0x143963('0x25')]({'name':_0x1be5b9[_0x143963('0x32')],'resourceId':_0x1be5b9['id'],'type':_0x47e768['name'],'sectionId':_0x47e768['id']},{})['then'](function(){return _0x4d23d5;}):_0x4d23d5;})[_0x1c9540('0x1')](function(_0x2e0943){const _0x503d5a=_0x1c9540;logger[_0x503d5a('0x8')](_0x503d5a('0x46'),_0x2e0943);throw _0x2e0943;});}return _0x4d23d5;})[_0x5c7bd2('0x30')](respondWithResult(_0x444f81,0xc9))[_0x5c7bd2('0x1')](handleError(_0x444f81,null));},exports[_0x426ce9('0x33')]=function(_0x68230,_0x416c1b){const _0x5bd73d=_0x426ce9;return _0x68230[_0x5bd73d('0xa')]['id']&&delete _0x68230[_0x5bd73d('0xa')]['id'],db['VoiceExtension'][_0x5bd73d('0x6')]({'where':{'id':_0x68230[_0x5bd73d('0xf')]['id']}})[_0x5bd73d('0x30')](handleEntityNotFound(_0x416c1b,null))[_0x5bd73d('0x30')](function(_0x226458){const _0x591a64=_0x5bd73d;if(_0x226458)return db[_0x591a64('0x1c')][_0x591a64('0x33')](_[_0x591a64('0x23')](_0x68230[_0x591a64('0xa')],[_0x591a64('0x1d'),_0x591a64('0x3c'),_0x591a64('0x26'),'recordingFormat',_0x591a64('0x50'),_0x591a64('0x1f')]),{'where':{'context':_0x226458[_0x591a64('0x3c')],'exten':_0x226458[_0x591a64('0x1d')]},'individualHooks':!![]})['then'](function(_0x345e60){return _0x345e60;});return null;})['then'](respondWithStatusCode(_0x416c1b,null))[_0x5bd73d('0x1')](handleError(_0x416c1b,null));},exports['addApplications']=function(_0x56631c,_0x4600b3){const _0x2ee5e1=_0x426ce9;return db[_0x2ee5e1('0x1c')][_0x2ee5e1('0x6')]({'where':{'id':_0x56631c[_0x2ee5e1('0xf')]['id']}})[_0x2ee5e1('0x30')](handleEntityNotFound(_0x4600b3,null))[_0x2ee5e1('0x30')](function(_0x8a4988){if(_0x8a4988)return db['sequelize']['transaction'](function(_0x19692a){const _0x13ffae=a727_0x2c38;return db[_0x13ffae('0x1c')][_0x13ffae('0xd')]({'where':{'VoiceExtensionId':_0x56631c['params']['id']},'transaction':_0x19692a})[_0x13ffae('0x30')](function(){const _0x505d70=_0x13ffae,_0x84407e=_[_0x505d70('0x11')](_0x56631c[_0x505d70('0xa')],function(_0x586dbc){const _0x3320af=_0x505d70;return _0x586dbc[_0x3320af('0x19')]=_0x56631c[_0x3320af('0xf')]['id'],_0x586dbc;});return db['VoiceExtension'][_0x505d70('0x3f')](_0x84407e,{'transaction':_0x19692a});});})['then'](function(){const _0x2d8d66=a727_0x2c38;return db[_0x2d8d66('0x1c')][_0x2d8d66('0x2b')]({'where':{'isApp':!![],'VoiceExtensionId':_0x56631c[_0x2d8d66('0xf')]['id']},'order':'cast(priority\x20as\x20unsigned)'});});})['then'](respondWithResult(_0x4600b3,null))[_0x2ee5e1('0x1')](handleError(_0x4600b3,null));}; \ No newline at end of file +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 diff --git a/server/api/voiceExtension/voiceExtension.events.js b/server/api/voiceExtension/voiceExtension.events.js index 4b1892e..cbd15ef 100644 --- a/server/api/voiceExtension/voiceExtension.events.js +++ b/server/api/voiceExtension/voiceExtension.events.js @@ -1 +1 @@ -const a728_0x403f=['update','VoiceExtension','emit','setMaxListeners','save','exports','undefined','events','remove','addHook'];(function(_0x31ce8b,_0x403f98){const _0x351e65=function(_0x54b03c){while(--_0x54b03c){_0x31ce8b['push'](_0x31ce8b['shift']());}};_0x351e65(++_0x403f98);}(a728_0x403f,0x170));const a728_0x351e=function(_0x31ce8b,_0x403f98){_0x31ce8b=_0x31ce8b-0x0;let _0x351e65=a728_0x403f[_0x31ce8b];return _0x351e65;};const _0x4c8505=a728_0x351e;'use strict';const EventEmitter=require(_0x4c8505('0x9')),VoiceExtension=require('../../mysqldb')['db'][_0x4c8505('0x3')],VoiceExtensionEvents=new EventEmitter();VoiceExtensionEvents[_0x4c8505('0x5')](0x0);const events={'afterCreate':_0x4c8505('0x6'),'afterUpdate':_0x4c8505('0x2'),'afterDestroy':_0x4c8505('0x0')};function emitEvent(_0x54b03c){return function(_0x2b681c){const _0x126e20=a728_0x351e;VoiceExtensionEvents['emit'](_0x54b03c+':'+_0x2b681c['id'],_0x2b681c),VoiceExtensionEvents[_0x126e20('0x4')](_0x54b03c,_0x2b681c);};}for(const e in events){if(typeof events[e]!==_0x4c8505('0x8')){const event=events[e];VoiceExtension[_0x4c8505('0x1')](e,emitEvent(event));}}module[_0x4c8505('0x7')]=VoiceExtensionEvents; \ No newline at end of file +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 diff --git a/server/api/voiceExtension/voiceExtension.model.js b/server/api/voiceExtension/voiceExtension.model.js index b5d0734..b719734 100644 --- a/server/api/voiceExtension/voiceExtension.model.js +++ b/server/api/voiceExtension/voiceExtension.model.js @@ -1 +1 @@ -const a729_0x3b0c=['VoiceExtension','define','exports'];(function(_0xa0254e,_0x3b0c5b){const _0x3459ae=function(_0x43d123){while(--_0x43d123){_0xa0254e['push'](_0xa0254e['shift']());}};_0x3459ae(++_0x3b0c5b);}(a729_0x3b0c,0x9e));const a729_0x3459=function(_0xa0254e,_0x3b0c5b){_0xa0254e=_0xa0254e-0x0;let _0x3459ae=a729_0x3b0c[_0xa0254e];return _0x3459ae;};const _0x1c5b56=a729_0x3459;'use strict';const attributes=require('./voiceExtension.attributes');module[_0x1c5b56('0x0')]=function(_0x43d123){const _0x3b64e=_0x1c5b56,_0x1cab0b=_0x43d123[_0x3b64e('0x2')](_0x3b64e('0x1'),attributes,{'tableName':'voice_extensions','paranoid':![],'indexes':[],'timestamps':!![]});return _0x1cab0b;}; \ No newline at end of file +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 diff --git a/server/api/voiceExtension/voiceExtension.rpc.js b/server/api/voiceExtension/voiceExtension.rpc.js index a60f9fc..f716fb3 100644 --- a/server/api/voiceExtension/voiceExtension.rpc.js +++ b/server/api/voiceExtension/voiceExtension.rpc.js @@ -1 +1 @@ -const a730_0x3c30=['VoiceExtension','message','options','error','include','debug','../../config/logger','where','attributes','GetVoiceExtension','info','raw','model','../../mysqldb','findAll','limit','map','stringify','./voiceExtension.socket'];(function(_0x574036,_0x3c30f0){const _0xb585fd=function(_0x88f72a){while(--_0x88f72a){_0x574036['push'](_0x574036['shift']());}};_0xb585fd(++_0x3c30f0);}(a730_0x3c30,0xc1));const a730_0xb585=function(_0x574036,_0x3c30f0){_0x574036=_0x574036-0x0;let _0xb585fd=a730_0x3c30[_0x574036];return _0xb585fd;};const _0x58c853=a730_0xb585;'use strict';const _=require('lodash'),db=require(_0x58c853('0xa'))['db'],logger=require(_0x58c853('0x3'))('rpc'),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x58c853('0xf'))['register'](socket),exports[_0x58c853('0x6')]=function(_0x88f72a){const _0x5c5cc4=this;return new Promise(function(_0x52b7ab,_0x396e14){const _0x1025b9=a730_0xb585;return db[_0x1025b9('0x10')][_0x1025b9('0xb')]({'raw':_0x88f72a[_0x1025b9('0x12')]?_0x88f72a[_0x1025b9('0x12')][_0x1025b9('0x8')]===undefined?!![]:![]:!![],'where':_0x88f72a['options']?_0x88f72a[_0x1025b9('0x12')][_0x1025b9('0x4')]||null:null,'attributes':_0x88f72a[_0x1025b9('0x12')]?_0x88f72a[_0x1025b9('0x12')][_0x1025b9('0x5')]||null:null,'limit':_0x88f72a[_0x1025b9('0x12')]?_0x88f72a[_0x1025b9('0x12')][_0x1025b9('0xc')]||null:null,'include':_0x88f72a[_0x1025b9('0x12')]?_0x88f72a[_0x1025b9('0x12')][_0x1025b9('0x1')]?_[_0x1025b9('0xd')](_0x88f72a[_0x1025b9('0x12')][_0x1025b9('0x1')],function(_0x257325){const _0x13db6a=_0x1025b9;return{'model':db[_0x257325[_0x13db6a('0x9')]],'as':_0x257325['as'],'attributes':_0x257325[_0x13db6a('0x5')],'include':_0x257325[_0x13db6a('0x1')]?_[_0x13db6a('0xd')](_0x257325[_0x13db6a('0x1')],function(_0x26272c){const _0x13a534=_0x13db6a;return{'model':db[_0x26272c['model']],'as':_0x26272c['as'],'attributes':_0x26272c[_0x13a534('0x5')],'include':_0x26272c[_0x13a534('0x1')]?_[_0x13a534('0xd')](_0x26272c['include'],function(_0x47d121){const _0x237459=_0x13a534;return{'model':db[_0x47d121[_0x237459('0x9')]],'as':_0x47d121['as'],'attributes':_0x47d121['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x2d832b){const _0x49d5d4=_0x1025b9;logger[_0x49d5d4('0x7')](_0x49d5d4('0x6'),_0x88f72a),logger[_0x49d5d4('0x2')]('GetVoiceExtension',_0x88f72a,JSON[_0x49d5d4('0xe')](_0x2d832b)),_0x52b7ab(_0x2d832b);})['catch'](function(_0x380bc2){const _0x4f9011=_0x1025b9;logger[_0x4f9011('0x0')]('GetVoiceExtension',_0x380bc2['message'],_0x88f72a),_0x396e14(_0x5c5cc4[_0x4f9011('0x0')](0x1f4,_0x380bc2[_0x4f9011('0x11')]));});});}; \ No newline at end of file +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 diff --git a/server/api/voiceExtension/voiceExtension.socket.js b/server/api/voiceExtension/voiceExtension.socket.js index d46ace8..0ac96c6 100644 --- a/server/api/voiceExtension/voiceExtension.socket.js +++ b/server/api/voiceExtension/voiceExtension.socket.js @@ -1 +1 @@ -const a731_0xb8af=['update','remove','./voiceExtension.events','emit','register','save','voiceExtension:'];(function(_0x6c7d1b,_0xb8af87){const _0x5466bf=function(_0x57b127){while(--_0x57b127){_0x6c7d1b['push'](_0x6c7d1b['shift']());}};_0x5466bf(++_0xb8af87);}(a731_0xb8af,0xfa));const a731_0x5466=function(_0x6c7d1b,_0xb8af87){_0x6c7d1b=_0x6c7d1b-0x0;let _0x5466bf=a731_0xb8af[_0x6c7d1b];return _0x5466bf;};const _0x19617a=a731_0x5466;'use strict';const VoiceExtensionEvents=require(_0x19617a('0x4')),events=[_0x19617a('0x0'),_0x19617a('0x3'),_0x19617a('0x2')];function createListener(_0x57b127,_0x5d2b47){return function(_0x5c99f4){const _0x5d1c84=a731_0x5466;_0x5d2b47[_0x5d1c84('0x5')](_0x57b127,_0x5c99f4);};}exports[_0x19617a('0x6')]=function(_0x3ae7fb){const _0x44593e=_0x19617a;for(let _0x486cfb=0x0,_0x6db37c=events['length'];_0x486cfb<_0x6db37c;_0x486cfb++){const _0x4b4179=events[_0x486cfb],_0x14da17=createListener(_0x44593e('0x1')+_0x4b4179,_0x3ae7fb);VoiceExtensionEvents['on'](_0x4b4179,_0x14da17);}}; \ No newline at end of file +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 diff --git a/server/api/voiceMail/index.js b/server/api/voiceMail/index.js index 705e5d2..3e69fcc 100644 --- a/server/api/voiceMail/index.js +++ b/server/api/voiceMail/index.js @@ -1 +1 @@ -const a732_0x3c64=['exports','./voiceMail.controller','Router','isAuthenticated','update','destroy','/:id','get','getMessages','/:id/messages','show','delete','express'];(function(_0x2711af,_0x3c643c){const _0x387435=function(_0x3556ae){while(--_0x3556ae){_0x2711af['push'](_0x2711af['shift']());}};_0x387435(++_0x3c643c);}(a732_0x3c64,0x120));const a732_0x3874=function(_0x2711af,_0x3c643c){_0x2711af=_0x2711af-0x0;let _0x387435=a732_0x3c64[_0x2711af];return _0x387435;};const _0x5e1be5=a732_0x3874;'use strict';const express=require(_0x5e1be5('0xa')),router=express[_0x5e1be5('0x0')](),auth=require('../../components/auth/service'),controller=require(_0x5e1be5('0xc'));router[_0x5e1be5('0x5')]('/',auth['isAuthenticated'](),controller['index']),router['get'](_0x5e1be5('0x4'),auth[_0x5e1be5('0x1')](),controller[_0x5e1be5('0x8')]),router[_0x5e1be5('0x5')](_0x5e1be5('0x7'),auth[_0x5e1be5('0x1')](),controller[_0x5e1be5('0x6')]),router['post']('/',auth['isAuthenticated'](),controller['create']),router['put'](_0x5e1be5('0x4'),auth[_0x5e1be5('0x1')](),controller[_0x5e1be5('0x2')]),router[_0x5e1be5('0x9')](_0x5e1be5('0x4'),auth[_0x5e1be5('0x1')](),controller[_0x5e1be5('0x3')]),module[_0x5e1be5('0xb')]=router; \ No newline at end of file +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 diff --git a/server/api/voiceMail/voiceMail.attributes.js b/server/api/voiceMail/voiceMail.attributes.js index 5c3d512..e8c7fe6 100644 --- a/server/api/voiceMail/voiceMail.attributes.js +++ b/server/api/voiceMail/voiceMail.attributes.js @@ -1 +1 @@ -const a733_0x3e66=['INTEGER','sequelize','STRING','trim','fullname','string','exports','\x20-\x20','ENUM','yes','central','setDataValue','email','contest_mailbox','from-voicemail','TINYINT(4)','getDataValue'];(function(_0x5aa137,_0x3e66e7){const _0x2077c7=function(_0x243893){while(--_0x243893){_0x5aa137['push'](_0x5aa137['shift']());}};_0x2077c7(++_0x3e66e7);}(a733_0x3e66,0x14f));const a733_0x2077=function(_0x5aa137,_0x3e66e7){_0x5aa137=_0x5aa137-0x0;let _0x2077c7=a733_0x3e66[_0x5aa137];return _0x2077c7;};const _0x1fbc74=a733_0x2077;'use strict';const Sequelize=require(_0x1fbc74('0x6'));module[_0x1fbc74('0xb')]={'customer_id':{'type':Sequelize[_0x1fbc74('0x7')]},'context':{'type':Sequelize['STRING'],'defaultValue':_0x1fbc74('0x2'),'unique':_0x1fbc74('0x1')},'mailbox':{'type':Sequelize[_0x1fbc74('0x7')],'defaultValue':'','allowNull':![],'unique':_0x1fbc74('0x1')},'password':{'type':Sequelize[_0x1fbc74('0x7')]},'fullname':{'type':Sequelize['STRING']},'email':{'type':Sequelize['STRING'],'validate':{'isEmail':!![]},'set':function(_0x243893){const _0x5473ac=_0x1fbc74;this[_0x5473ac('0x10')](_0x5473ac('0x0'),typeof _0x243893===_0x5473ac('0xa')&&_0x243893[_0x5473ac('0x8')]()?_0x243893[_0x5473ac('0x8')]():null);}},'pager':{'type':Sequelize['STRING']},'tz':{'type':Sequelize[_0x1fbc74('0x7')],'defaultValue':_0x1fbc74('0xf')},'attach':{'type':Sequelize[_0x1fbc74('0xd')]('yes','no'),'defaultValue':_0x1fbc74('0xe'),'allowNull':![]},'saycid':{'type':Sequelize[_0x1fbc74('0xd')]('yes','no'),'defaultValue':'yes','allowNull':![]},'dialout':{'type':Sequelize[_0x1fbc74('0x7')]},'callback':{'type':Sequelize[_0x1fbc74('0x7')]},'review':{'type':Sequelize[_0x1fbc74('0xd')](_0x1fbc74('0xe'),'no'),'defaultValue':'no','allowNull':![]},'operator':{'type':Sequelize['ENUM'](_0x1fbc74('0xe'),'no'),'defaultValue':'no','allowNull':![]},'envelope':{'type':Sequelize[_0x1fbc74('0xd')](_0x1fbc74('0xe'),'no'),'defaultValue':'no','allowNull':![]},'sayduration':{'type':Sequelize[_0x1fbc74('0xd')](_0x1fbc74('0xe'),'no'),'defaultValue':'no','allowNull':![]},'saydurationm':{'type':_0x1fbc74('0x3'),'defaultValue':0x1,'allowNull':![]},'sendvoicemail':{'type':Sequelize[_0x1fbc74('0xd')](_0x1fbc74('0xe'),'no'),'defaultValue':'no','allowNull':![]},'delete':{'type':Sequelize[_0x1fbc74('0xd')]('yes','no'),'defaultValue':'no','allowNull':![]},'nextaftercmd':{'type':Sequelize['ENUM'](_0x1fbc74('0xe'),'no'),'defaultValue':_0x1fbc74('0xe'),'allowNull':![]},'forcename':{'type':Sequelize[_0x1fbc74('0xd')]('yes','no'),'defaultValue':'no','allowNull':![]},'forcegreetings':{'type':Sequelize[_0x1fbc74('0xd')](_0x1fbc74('0xe'),'no'),'defaultValue':'no','allowNull':![]},'hidefromdir':{'type':Sequelize[_0x1fbc74('0xd')](_0x1fbc74('0xe'),'no'),'defaultValue':_0x1fbc74('0xe'),'allowNull':![]},'stamp':{'type':'TIMESTAMP'},'emailsubject':{'type':Sequelize['STRING']},'emailbody':{'type':Sequelize[_0x1fbc74('0x7')]},'maxsecs':{'type':Sequelize[_0x1fbc74('0x5')](0xff),'defaultValue':0xb4,'allowNull':![]},'maxmsg':{'type':Sequelize[_0x1fbc74('0x5')](0xff),'defaultValue':0x64,'allowNull':![]},'name':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x3a871c=_0x1fbc74;return this[_0x3a871c('0x4')](_0x3a871c('0x9'))+_0x3a871c('0xc')+this['getDataValue']('mailbox');}}}; \ No newline at end of file +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 diff --git a/server/api/voiceMail/voiceMail.controller.js b/server/api/voiceMail/voiceMail.controller.js index cd68d77..e471491 100644 --- a/server/api/voiceMail/voiceMail.controller.js +++ b/server/api/voiceMail/voiceMail.controller.js @@ -1 +1 @@ -const a734_0x1b2e=['count','intersection','sendStatus','length','order','merge','model','get','key','options','fieldName','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','user','VoiceMailMessage','findOne','api','destroy','body','map','userProfileId','role','like','fields','VIRTUAL','includeAll','sort','status','../../config/logger','update','nolimit','lodash','attributes','autoAssociation','Content-Range','name','error','undefined','pick','catch','create','offset','filter','VoiceMail','../../components/parsers/qs','where','limit','keys','UserProfileResource','rows','filters','rawAttributes','params','../../mysqldb','mailbox','type','UserProfileSection','Voicemails','index','json','query','then','send'];(function(_0x5de95b,_0x1b2e8a){const _0x213734=function(_0x596a6c){while(--_0x596a6c){_0x5de95b['push'](_0x5de95b['shift']());}};_0x213734(++_0x1b2e8a);}(a734_0x1b2e,0x142));const a734_0x2137=function(_0x5de95b,_0x1b2e8a){_0x5de95b=_0x5de95b-0x0;let _0x213734=a734_0x1b2e[_0x5de95b];return _0x213734;};const _0x25c6e7=a734_0x2137;'use strict';const _=require(_0x25c6e7('0x12')),qs=require(_0x25c6e7('0x1f')),logger=require(_0x25c6e7('0xf'))(_0x25c6e7('0x3')),db=require(_0x25c6e7('0x28'))['db'],{Op}=require('sequelize');function respondWithResult(_0x596a6c,_0x5ea819){return _0x5ea819=_0x5ea819||0xc8,function(_0x15fbbc){const _0x28f01b=a734_0x2137;if(_0x15fbbc)return _0x596a6c[_0x28f01b('0xe')](_0x5ea819)[_0x28f01b('0x2e')](_0x15fbbc);};}function respondWithFilteredResult(_0xbb5509,_0x4c6fbc){return function(_0x433ca2){const _0x122d68=a734_0x2137;if(_0x433ca2){const _0x1f29a3=_0x433ca2[_0x122d68('0x32')],_0x553c14=_0x4c6fbc[_0x122d68('0x1c')];let _0xbbd3d8=_0x4c6fbc[_0x122d68('0x1c')]+_0x4c6fbc[_0x122d68('0x21')],_0x302c70;return _0xbbd3d8>=_0x1f29a3?(_0xbbd3d8=_0x1f29a3,_0x302c70=0xc8):_0x302c70=0xce,_0xbb5509[_0x122d68('0xe')](_0x302c70),_0xbb5509['set'](_0x122d68('0x15'),_0x553c14+'-'+_0xbbd3d8+'/'+_0x1f29a3)[_0x122d68('0x2e')](_0x433ca2);}return null;};}function saveUpdates(_0x4ed01b){return function(_0x2cd2a3){const _0x3ba864=a734_0x2137;if(_0x2cd2a3)return _0x2cd2a3[_0x3ba864('0x10')](_0x4ed01b)[_0x3ba864('0x30')](function(_0x2ef91c){return _0x2ef91c;});return null;};}function removeEntity(_0x179524){return function(_0x1a2a62){const _0x173b01=a734_0x2137;if(_0x1a2a62)return _0x1a2a62[_0x173b01('0x4')]()[_0x173b01('0x30')](function(){const _0x1adc41=_0x173b01,_0x4b1822=_0x1a2a62[_0x1adc41('0x39')]({'plain':!![]}),_0x32d900=_0x1adc41('0x2c');return db['UserProfileResource']['destroy']({'where':{'type':_0x32d900,'resourceId':_0x4b1822['id']}})['then'](function(){return _0x1a2a62;});})['then'](function(){const _0x79ba66=_0x173b01;_0x179524[_0x79ba66('0xe')](0xcc)['end']();});};}function handleEntityNotFound(_0x1c560d){return function(_0x167bfd){const _0x1d1925=a734_0x2137;return!_0x167bfd&&_0x1c560d[_0x1d1925('0x34')](0x194),_0x167bfd;};}function handleError(_0x42b84,_0x1be3fc){return _0x1be3fc=_0x1be3fc||0x1f4,function(_0x3cc9e9){const _0x3cb000=a734_0x2137;logger[_0x3cb000('0x17')](_0x3cc9e9['stack']),_0x3cc9e9[_0x3cb000('0x16')]&&delete _0x3cc9e9[_0x3cb000('0x16')],_0x42b84[_0x3cb000('0xe')](_0x1be3fc)[_0x3cb000('0x31')](_0x3cc9e9);};}exports[_0x25c6e7('0x2d')]=function(_0x481f4a,_0x151003){const _0x3319ec=_0x25c6e7;let _0x4fd9ce={};const _0x3e8af9={},_0x3782cc={'count':0x0,'rows':[]},_0x2a44f8=_[_0x3319ec('0x6')](db[_0x3319ec('0x1e')]['rawAttributes'],function(_0x1d56fb){const _0x1cbe96=_0x3319ec;return{'name':_0x1d56fb[_0x1cbe96('0x3c')],'type':_0x1d56fb[_0x1cbe96('0x2a')][_0x1cbe96('0x3a')]};});_0x3e8af9[_0x3319ec('0x38')]=_['map'](_0x2a44f8,_0x3319ec('0x16')),_0x3e8af9[_0x3319ec('0x2f')]=_[_0x3319ec('0x22')](_0x481f4a[_0x3319ec('0x2f')]),_0x3e8af9[_0x3319ec('0x25')]=_[_0x3319ec('0x33')](_0x3e8af9[_0x3319ec('0x38')],_0x3e8af9['query']),_0x4fd9ce['attributes']=_[_0x3319ec('0x33')](_0x3e8af9[_0x3319ec('0x38')],qs[_0x3319ec('0xa')](_0x481f4a[_0x3319ec('0x2f')][_0x3319ec('0xa')])),_0x4fd9ce['attributes']=_0x4fd9ce[_0x3319ec('0x13')][_0x3319ec('0x35')]?_0x4fd9ce[_0x3319ec('0x13')]:_0x3e8af9['model'];typeof _0x481f4a[_0x3319ec('0x2f')][_0x3319ec('0x11')]===_0x3319ec('0x18')&&(_0x4fd9ce['limit']=qs['limit'](_0x481f4a[_0x3319ec('0x2f')][_0x3319ec('0x21')]),_0x4fd9ce[_0x3319ec('0x1c')]=qs[_0x3319ec('0x1c')](_0x481f4a[_0x3319ec('0x2f')]['offset']));_0x4fd9ce[_0x3319ec('0x36')]=qs['sort'](_0x481f4a[_0x3319ec('0x2f')][_0x3319ec('0xd')]),_0x4fd9ce[_0x3319ec('0x20')]=qs[_0x3319ec('0x25')](_[_0x3319ec('0x19')](_0x481f4a[_0x3319ec('0x2f')],_0x3e8af9[_0x3319ec('0x25')]),_0x2a44f8);_0x481f4a[_0x3319ec('0x2f')][_0x3319ec('0x1d')]&&(_0x4fd9ce[_0x3319ec('0x20')]=_['merge'](_0x4fd9ce[_0x3319ec('0x20')],{[Op['or']]:_[_0x3319ec('0x6')](_0x2a44f8,function(_0x3477ee){const _0x1fc543=_0x3319ec;if(_0x3477ee[_0x1fc543('0x2a')]!==_0x1fc543('0xb')){const _0x5a1f38={};return _0x5a1f38[_0x3477ee[_0x1fc543('0x16')]]={[Op[_0x1fc543('0x9')]]:'%'+_0x481f4a['query']['filter']+'%'},_0x5a1f38;}})}));_0x4fd9ce=_[_0x3319ec('0x37')]({},_0x4fd9ce,_0x481f4a[_0x3319ec('0x3b')]);const _0x2dca50={'where':_0x4fd9ce[_0x3319ec('0x20')]};return db[_0x3319ec('0x1e')][_0x3319ec('0x32')](_0x2dca50)[_0x3319ec('0x30')](function(_0x196390){const _0x1d1fb1=_0x3319ec;return _0x3782cc[_0x1d1fb1('0x32')]=_0x196390,_0x481f4a[_0x1d1fb1('0x2f')][_0x1d1fb1('0xc')]&&(_0x4fd9ce['include']=[{'all':!![]}]),db[_0x1d1fb1('0x1e')]['findAll'](_0x4fd9ce);})[_0x3319ec('0x30')](function(_0xe68cef){const _0xde00d8=_0x3319ec;return _0x3782cc[_0xde00d8('0x24')]=_0xe68cef,_0x3782cc;})['then'](respondWithFilteredResult(_0x151003,_0x4fd9ce))[_0x3319ec('0x1a')](handleError(_0x151003,null));},exports['show']=function(_0xb4656,_0x377ff8){const _0x4b6434=_0x25c6e7;let _0x5aa909={'raw':!![],'where':{'id':_0xb4656['params']['id']}};const _0xfc2c67={};return _0xfc2c67['model']=_[_0x4b6434('0x22')](db[_0x4b6434('0x1e')][_0x4b6434('0x26')]),_0xfc2c67[_0x4b6434('0x2f')]=_['keys'](_0xb4656['query']),_0xfc2c67['filters']=_[_0x4b6434('0x33')](_0xfc2c67[_0x4b6434('0x38')],_0xfc2c67['query']),_0x5aa909[_0x4b6434('0x13')]=_[_0x4b6434('0x33')](_0xfc2c67[_0x4b6434('0x38')],qs[_0x4b6434('0xa')](_0xb4656[_0x4b6434('0x2f')]['fields'])),_0x5aa909[_0x4b6434('0x13')]=_0x5aa909['attributes'][_0x4b6434('0x35')]?_0x5aa909[_0x4b6434('0x13')]:_0xfc2c67[_0x4b6434('0x38')],_0xb4656[_0x4b6434('0x2f')]['includeAll']&&(_0x5aa909['include']=[{'all':!![]}]),_0x5aa909=_['merge']({},_0x5aa909,_0xb4656[_0x4b6434('0x3b')]),db[_0x4b6434('0x1e')][_0x4b6434('0x2')](_0x5aa909)[_0x4b6434('0x30')](handleEntityNotFound(_0x377ff8,null))[_0x4b6434('0x30')](respondWithResult(_0x377ff8,null))['catch'](handleError(_0x377ff8,null));},exports[_0x25c6e7('0x1b')]=function(_0x2a1ca5,_0xce9313){const _0x4637d6=_0x25c6e7;return db[_0x4637d6('0x1e')][_0x4637d6('0x1b')](_0x2a1ca5['body'],{})[_0x4637d6('0x30')](function(_0x5c4ce8){const _0xdaa5a1=_0x4637d6,_0xb00a8d=_0x2a1ca5[_0xdaa5a1('0x0')][_0xdaa5a1('0x39')]({'plain':!![]});if(!_0xb00a8d)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0xb00a8d[_0xdaa5a1('0x8')]==='user'){const _0x226d02=_0x5c4ce8['get']({'plain':!![]}),_0x191924=_0xdaa5a1('0x2c');return db[_0xdaa5a1('0x2b')][_0xdaa5a1('0x2')]({'where':{'name':_0x191924,'userProfileId':_0xb00a8d[_0xdaa5a1('0x7')]},'raw':!![]})[_0xdaa5a1('0x30')](function(_0x4337ab){const _0x2ffda7=_0xdaa5a1;return _0x4337ab&&_0x4337ab[_0x2ffda7('0x14')]===0x0?db[_0x2ffda7('0x23')][_0x2ffda7('0x1b')]({'name':_0x226d02[_0x2ffda7('0x16')],'resourceId':_0x226d02['id'],'type':_0x4337ab[_0x2ffda7('0x16')],'sectionId':_0x4337ab['id']},{})['then'](function(){return _0x5c4ce8;}):_0x5c4ce8;})[_0xdaa5a1('0x1a')](function(_0x40b7d2){const _0x30df53=_0xdaa5a1;logger[_0x30df53('0x17')](_0x30df53('0x3d'),_0x40b7d2);throw _0x40b7d2;});}return _0x5c4ce8;})[_0x4637d6('0x30')](respondWithResult(_0xce9313,0xc9))['catch'](handleError(_0xce9313,null));},exports[_0x25c6e7('0x10')]=function(_0x3649da,_0x1a3fb3){const _0x578c44=_0x25c6e7;return _0x3649da['body']['id']&&delete _0x3649da[_0x578c44('0x5')]['id'],db[_0x578c44('0x1e')][_0x578c44('0x2')]({'where':{'id':_0x3649da[_0x578c44('0x27')]['id']}})['then'](handleEntityNotFound(_0x1a3fb3,null))['then'](saveUpdates(_0x3649da[_0x578c44('0x5')],null))[_0x578c44('0x30')](respondWithResult(_0x1a3fb3,null))[_0x578c44('0x1a')](handleError(_0x1a3fb3,null));},exports[_0x25c6e7('0x4')]=function(_0xefa514,_0x37f0a7){const _0x4402bc=_0x25c6e7;return db['VoiceMail'][_0x4402bc('0x2')]({'where':{'id':_0xefa514[_0x4402bc('0x27')]['id']}})[_0x4402bc('0x30')](handleEntityNotFound(_0x37f0a7,null))[_0x4402bc('0x30')](removeEntity(_0x37f0a7,null))[_0x4402bc('0x1a')](handleError(_0x37f0a7,null));},exports['getMessages']=function(_0x2a339c,_0x3d8be8){const _0x1d2859=_0x25c6e7;return db[_0x1d2859('0x1e')][_0x1d2859('0x2')]({'where':{'id':_0x2a339c[_0x1d2859('0x27')]['id']}})[_0x1d2859('0x30')](handleEntityNotFound(_0x3d8be8,null))['then'](function(_0x5a180f){const _0x5a6f37=_0x1d2859;let _0x2abd20={};const _0xda2e0b={};return _0xda2e0b[_0x5a6f37('0x38')]=_[_0x5a6f37('0x22')](db['VoiceMailMessage'][_0x5a6f37('0x26')]),_0xda2e0b[_0x5a6f37('0x2f')]=_['keys'](_0x2a339c['query']),_0xda2e0b[_0x5a6f37('0x25')]=_[_0x5a6f37('0x33')](_0xda2e0b[_0x5a6f37('0x38')],_0xda2e0b[_0x5a6f37('0x2f')]),_0x2abd20[_0x5a6f37('0x13')]=_[_0x5a6f37('0x33')](_0xda2e0b[_0x5a6f37('0x38')],qs[_0x5a6f37('0xa')](_0x2a339c['query'][_0x5a6f37('0xa')])),_0x2abd20[_0x5a6f37('0x13')]=_0x2abd20[_0x5a6f37('0x13')][_0x5a6f37('0x35')]?_0x2abd20['attributes']:_0xda2e0b[_0x5a6f37('0x38')],typeof _0x2a339c['query'][_0x5a6f37('0x11')]==='undefined'&&(_0x2abd20[_0x5a6f37('0x21')]=qs[_0x5a6f37('0x21')](_0x2a339c[_0x5a6f37('0x2f')][_0x5a6f37('0x21')]),_0x2abd20[_0x5a6f37('0x1c')]=qs['offset'](_0x2a339c[_0x5a6f37('0x2f')][_0x5a6f37('0x1c')])),_0x2abd20[_0x5a6f37('0x36')]=qs[_0x5a6f37('0xd')](_0x2a339c['query'][_0x5a6f37('0xd')]),_0x2abd20['where']=qs[_0x5a6f37('0x25')](_[_0x5a6f37('0x19')](_0x2a339c[_0x5a6f37('0x2f')],_0xda2e0b['filters'])),_0x2a339c[_0x5a6f37('0x2f')][_0x5a6f37('0x1d')]&&(_0x2abd20[_0x5a6f37('0x20')]=_[_0x5a6f37('0x37')](_0x2abd20['where'],{[Op['or']]:_[_0x5a6f37('0x6')](_0x2abd20[_0x5a6f37('0x13')],function(_0x3987e9){const _0x21a68c=_0x5a6f37,_0xa05bcd={};return _0xa05bcd[_0x3987e9]={[Op[_0x21a68c('0x9')]]:'%'+_0x2a339c[_0x21a68c('0x2f')]['filter']+'%'},_0xa05bcd;})})),_0x2abd20[_0x5a6f37('0x20')]=_[_0x5a6f37('0x37')](_0x2abd20[_0x5a6f37('0x20')],{'mailboxuser':_0x5a180f[_0x5a6f37('0x29')]}),_0x2abd20=_[_0x5a6f37('0x37')]({},_0x2abd20,_0x2a339c[_0x5a6f37('0x3b')]),db[_0x5a6f37('0x1')]['findAndCountAll'](_0x2abd20)[_0x5a6f37('0x30')](respondWithFilteredResult(_0x3d8be8,_0x2abd20));})[_0x1d2859('0x1a')](handleError(_0x3d8be8,null));}; \ No newline at end of file +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 diff --git a/server/api/voiceMail/voiceMail.model.js b/server/api/voiceMail/voiceMail.model.js index 6a0cffb..0d393cd 100644 --- a/server/api/voiceMail/voiceMail.model.js +++ b/server/api/voiceMail/voiceMail.model.js @@ -1 +1 @@ -const a735_0x82d8=['VoiceMail','mailbox','exports','./voiceMail.attributes','context'];(function(_0x514f48,_0x82d872){const _0x413a09=function(_0x1ff5b5){while(--_0x1ff5b5){_0x514f48['push'](_0x514f48['shift']());}};_0x413a09(++_0x82d872);}(a735_0x82d8,0xa9));const a735_0x413a=function(_0x514f48,_0x82d872){_0x514f48=_0x514f48-0x0;let _0x413a09=a735_0x82d8[_0x514f48];return _0x413a09;};const _0x74a13a=a735_0x413a;'use strict';const attributes=require(_0x74a13a('0x4'));module[_0x74a13a('0x3')]=function(_0x1ff5b5){const _0x46fb2c=_0x74a13a,_0x5a3ae0=_0x1ff5b5['define'](_0x46fb2c('0x1'),attributes,{'tableName':'voice_voicemail','paranoid':![],'indexes':[{'name':'mailbox_context','fields':[_0x46fb2c('0x2'),_0x46fb2c('0x0')]}],'timestamps':!![]});return _0x5a3ae0;}; \ No newline at end of file +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 diff --git a/server/api/voiceMailMessage/index.js b/server/api/voiceMailMessage/index.js index 56f192e..4888071 100644 --- a/server/api/voiceMailMessage/index.js +++ b/server/api/voiceMailMessage/index.js @@ -1 +1 @@ -const a736_0x38dd=['show','index','express','put','create','get','delete','isAuthenticated','destroy','Router','/:id','exports','../../components/auth/service','post','update'];(function(_0x231dbf,_0x38dd26){const _0x13c232=function(_0x31bf87){while(--_0x31bf87){_0x231dbf['push'](_0x231dbf['shift']());}};_0x13c232(++_0x38dd26);}(a736_0x38dd,0x1ea));const a736_0x13c2=function(_0x231dbf,_0x38dd26){_0x231dbf=_0x231dbf-0x0;let _0x13c232=a736_0x38dd[_0x231dbf];return _0x13c232;};const _0x5cfcbd=a736_0x13c2;'use strict';const express=require(_0x5cfcbd('0x7')),router=express[_0x5cfcbd('0xe')](),auth=require(_0x5cfcbd('0x2')),controller=require('./voiceMailMessage.controller');router[_0x5cfcbd('0xa')]('/',auth['isAuthenticated'](),controller[_0x5cfcbd('0x6')]),router[_0x5cfcbd('0xa')](_0x5cfcbd('0x0'),auth[_0x5cfcbd('0xc')](),controller[_0x5cfcbd('0x5')]),router[_0x5cfcbd('0xa')]('/:id/download',auth[_0x5cfcbd('0xc')](),controller['download']),router[_0x5cfcbd('0x3')]('/',auth['isAuthenticated'](),controller[_0x5cfcbd('0x9')]),router[_0x5cfcbd('0x8')](_0x5cfcbd('0x0'),auth[_0x5cfcbd('0xc')](),controller[_0x5cfcbd('0x4')]),router[_0x5cfcbd('0xb')]('/:id',auth[_0x5cfcbd('0xc')](),controller[_0x5cfcbd('0xd')]),module[_0x5cfcbd('0x1')]=router; \ No newline at end of file +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 diff --git a/server/api/voiceMailMessage/voiceMailMessage.attributes.js b/server/api/voiceMailMessage/voiceMailMessage.attributes.js index ec12399..0999bfe 100644 --- a/server/api/voiceMailMessage/voiceMailMessage.attributes.js +++ b/server/api/voiceMailMessage/voiceMailMessage.attributes.js @@ -1 +1 @@ -const a737_0x4439=['getDataValue','STRING','sequelize','long','INTEGER','BLOB','exports'];(function(_0x447f76,_0x443930){const _0x49ae4d=function(_0x17c2e8){while(--_0x17c2e8){_0x447f76['push'](_0x447f76['shift']());}};_0x49ae4d(++_0x443930);}(a737_0x4439,0x70));const a737_0x49ae=function(_0x447f76,_0x443930){_0x447f76=_0x447f76-0x0;let _0x49ae4d=a737_0x4439[_0x447f76];return _0x49ae4d;};const _0xb7c604=a737_0x49ae;'use strict';const Sequelize=require(_0xb7c604('0x2'));module[_0xb7c604('0x6')]={'name':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x372634=_0xb7c604;return this[_0x372634('0x0')]('id');}},'msgnum':{'type':Sequelize[_0xb7c604('0x4')](0xb),'defaultValue':0x0,'allowNull':![]},'dir':{'type':Sequelize[_0xb7c604('0x1')],'defaultValue':''},'context':{'type':Sequelize['STRING'],'defaultValue':''},'macrocontext':{'type':Sequelize[_0xb7c604('0x1')],'defaultValue':''},'callerid':{'type':Sequelize['STRING'],'defaultValue':''},'origtime':{'type':Sequelize['STRING'],'defaultValue':''},'duration':{'type':Sequelize['STRING'],'defaultValue':''},'mailboxuser':{'type':Sequelize[_0xb7c604('0x1')],'defaultValue':''},'mailboxcontext':{'type':Sequelize[_0xb7c604('0x1')],'defaultValue':''},'recording':{'type':Sequelize[_0xb7c604('0x5')](_0xb7c604('0x3')),'defaultValue':null},'flag':{'type':Sequelize[_0xb7c604('0x1')],'defaultValue':''},'msg_id':{'type':Sequelize[_0xb7c604('0x1')],'defaultValue':''},'stamp':{'type':'TIMESTAMP','allowNull':![]}}; \ No newline at end of file +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 diff --git a/server/api/voiceMailMessage/voiceMailMessage.controller.js b/server/api/voiceMailMessage/voiceMailMessage.controller.js index 70e2549..bcd907c 100644 --- a/server/api/voiceMailMessage/voiceMailMessage.controller.js +++ b/server/api/voiceMailMessage/voiceMailMessage.controller.js @@ -1 +1 @@ -const a738_0x2682=['then','attachment;\x20filename=\x22','destroy','download','where','length','json','update','sequelize','audio/wav','filters','end','create','attributes','sendStatus','merge','sort','differenceBy','../../config/logger','rawAttributes','msg_id','VoiceMailMessage','Sequelize','findOne','intersection','name','model','map','attachment','lodash','keys','set','from','filter','error','status','.wav\x22','count','fields','limit','pick','body','api','Content-Range','rows','recording','params','type','ValidationError','key','send','../../components/parsers/qs','options','include','query','Content-Disposition','offset','undefined','catch','findAll','stack','includeAll','index'];(function(_0x5ca2f3,_0x268291){const _0x39306e=function(_0x2c95cb){while(--_0x2c95cb){_0x5ca2f3['push'](_0x5ca2f3['shift']());}};_0x39306e(++_0x268291);}(a738_0x2682,0x13a));const a738_0x3930=function(_0x5ca2f3,_0x268291){_0x5ca2f3=_0x5ca2f3-0x0;let _0x39306e=a738_0x2682[_0x5ca2f3];return _0x39306e;};const _0x37fd62=a738_0x3930;'use strict';const _=require(_0x37fd62('0x1e')),qs=require(_0x37fd62('0x34')),logger=require(_0x37fd62('0x13'))(_0x37fd62('0x2b')),db=require('../../mysqldb')['db'],{Op}=require(_0x37fd62('0x9'));function respondWithResult(_0x2c95cb,_0x102acd){return _0x102acd=_0x102acd||0xc8,function(_0x19b586){const _0x1002d8=a738_0x3930;if(_0x19b586)return _0x2c95cb['status'](_0x102acd)[_0x1002d8('0x7')](_0x19b586);};}function respondWithFilteredResult(_0x231c4a,_0x46e63a){return function(_0x26b140){const _0x3ef04b=a738_0x3930;if(_0x26b140){const _0x4848a0=_0x26b140[_0x3ef04b('0x26')],_0x7c1ce6=_0x46e63a[_0x3ef04b('0x39')];let _0x1c0ee8=_0x46e63a[_0x3ef04b('0x39')]+_0x46e63a['limit'],_0x2902cf;return _0x1c0ee8>=_0x4848a0?(_0x1c0ee8=_0x4848a0,_0x2902cf=0xc8):_0x2902cf=0xce,_0x231c4a['status'](_0x2902cf),_0x231c4a[_0x3ef04b('0x20')](_0x3ef04b('0x2c'),_0x7c1ce6+'-'+_0x1c0ee8+'/'+_0x4848a0)[_0x3ef04b('0x7')](_0x26b140);}return null;};}function saveUpdates(_0x2582ae){return function(_0x19fd0a){const _0x35f8b9=a738_0x3930;if(_0x19fd0a)return _0x19fd0a[_0x35f8b9('0x8')](_0x2582ae)[_0x35f8b9('0x1')](function(_0x85561){return _0x85561;});return null;};}function removeEntity(_0x500360){return function(_0x269271){const _0x133a86=a738_0x3930;if(_0x269271)return _0x269271[_0x133a86('0x3')]()[_0x133a86('0x1')](function(){const _0x1122f2=_0x133a86;_0x500360[_0x1122f2('0x24')](0xcc)[_0x1122f2('0xc')]();});};}function handleEntityNotFound(_0x43dd10){return function(_0x57bc68){const _0x30110c=a738_0x3930;return!_0x57bc68&&_0x43dd10[_0x30110c('0xf')](0x194),_0x57bc68;};}function handleError(_0x499a6b,_0x4f7ad5){return _0x4f7ad5=_0x4f7ad5||0x1f4,function(_0x48b2dd){const _0x37251b=a738_0x3930;logger[_0x37251b('0x23')](_0x48b2dd[_0x37251b('0x3d')]),_0x48b2dd[_0x37251b('0x1a')]&&delete _0x48b2dd[_0x37251b('0x1a')],_0x499a6b[_0x37251b('0x24')](_0x4f7ad5)[_0x37251b('0x33')](_0x48b2dd);};}exports[_0x37fd62('0x0')]=function(_0x5bc703,_0x5cfc2b){const _0x2c1f7f=_0x37fd62;let _0x4dab33={};const _0xa6e388={},_0x413f96={'count':0x0,'rows':[]},_0x53e9e3=_[_0x2c1f7f('0x1c')](db[_0x2c1f7f('0x16')][_0x2c1f7f('0x14')],function(_0x36e134){const _0x442449=_0x2c1f7f;return{'name':_0x36e134['fieldName'],'type':_0x36e134['type'][_0x442449('0x32')]};});_0xa6e388[_0x2c1f7f('0x1b')]=_[_0x2c1f7f('0x12')](_[_0x2c1f7f('0x1c')](_0x53e9e3,_0x2c1f7f('0x1a')),[_0x2c1f7f('0x1a')]),_0xa6e388[_0x2c1f7f('0x37')]=_[_0x2c1f7f('0x1f')](_0x5bc703[_0x2c1f7f('0x37')]),_0xa6e388[_0x2c1f7f('0xb')]=_[_0x2c1f7f('0x19')](_0xa6e388[_0x2c1f7f('0x1b')],_0xa6e388[_0x2c1f7f('0x37')]),_0x4dab33[_0x2c1f7f('0xe')]=_[_0x2c1f7f('0x19')](_0xa6e388[_0x2c1f7f('0x1b')],qs[_0x2c1f7f('0x27')](_0x5bc703[_0x2c1f7f('0x37')][_0x2c1f7f('0x27')])),_0x4dab33[_0x2c1f7f('0xe')]=_0x4dab33['attributes'][_0x2c1f7f('0x6')]?_0x4dab33[_0x2c1f7f('0xe')]:_0xa6e388[_0x2c1f7f('0x1b')];typeof _0x5bc703[_0x2c1f7f('0x37')]['nolimit']===_0x2c1f7f('0x3a')&&(_0x4dab33[_0x2c1f7f('0x28')]=qs[_0x2c1f7f('0x28')](_0x5bc703[_0x2c1f7f('0x37')][_0x2c1f7f('0x28')]),_0x4dab33[_0x2c1f7f('0x39')]=qs[_0x2c1f7f('0x39')](_0x5bc703[_0x2c1f7f('0x37')][_0x2c1f7f('0x39')]));_0x4dab33['order']=qs[_0x2c1f7f('0x11')](_0x5bc703['query']['sort']),_0x4dab33[_0x2c1f7f('0x5')]=qs[_0x2c1f7f('0xb')](_[_0x2c1f7f('0x29')](_0x5bc703[_0x2c1f7f('0x37')],_0xa6e388[_0x2c1f7f('0xb')]),_0x53e9e3);_0x5bc703['query'][_0x2c1f7f('0x22')]&&(_0x4dab33[_0x2c1f7f('0x5')]=_[_0x2c1f7f('0x10')](_0x4dab33['where'],{[Op['or']]:_[_0x2c1f7f('0x1c')](_0x53e9e3,function(_0x8d76a9){const _0x25047b=_0x2c1f7f;if(_0x8d76a9[_0x25047b('0x30')]!=='VIRTUAL'){const _0x391898={};return _0x391898[_0x8d76a9['name']]={[Op['like']]:'%'+_0x5bc703[_0x25047b('0x37')][_0x25047b('0x22')]+'%'},_0x391898;}})}));_0x4dab33=_[_0x2c1f7f('0x10')]({},_0x4dab33,_0x5bc703[_0x2c1f7f('0x35')]);const _0x57e7a8={'where':_0x4dab33[_0x2c1f7f('0x5')]};return db[_0x2c1f7f('0x16')]['count'](_0x57e7a8)[_0x2c1f7f('0x1')](function(_0x2df71b){const _0x48fdd4=_0x2c1f7f;return _0x413f96[_0x48fdd4('0x26')]=_0x2df71b,_0x5bc703['query'][_0x48fdd4('0x3e')]&&(_0x4dab33['include']=[{'all':!![]}]),db[_0x48fdd4('0x16')][_0x48fdd4('0x3c')](_0x4dab33);})[_0x2c1f7f('0x1')](function(_0x1538ca){const _0x4137d7=_0x2c1f7f;return _0x413f96[_0x4137d7('0x2d')]=_0x1538ca,_0x413f96;})[_0x2c1f7f('0x1')](respondWithFilteredResult(_0x5cfc2b,_0x4dab33))[_0x2c1f7f('0x3b')](handleError(_0x5cfc2b,null));},exports['show']=function(_0x3f1414,_0x1f918d){const _0x556f3c=_0x37fd62;let _0x55d9ba={'raw':!![],'where':{'id':_0x3f1414[_0x556f3c('0x2f')]['id']}};const _0x340c88={};return _0x340c88[_0x556f3c('0x1b')]=_['keys'](db[_0x556f3c('0x16')]['rawAttributes']),_0x340c88[_0x556f3c('0x37')]=_[_0x556f3c('0x1f')](_0x3f1414[_0x556f3c('0x37')]),_0x340c88['filters']=_[_0x556f3c('0x19')](_0x340c88[_0x556f3c('0x1b')],_0x340c88[_0x556f3c('0x37')]),_0x55d9ba[_0x556f3c('0xe')]=_[_0x556f3c('0x19')](_0x340c88[_0x556f3c('0x1b')],qs[_0x556f3c('0x27')](_0x3f1414['query'][_0x556f3c('0x27')])),_0x55d9ba['attributes']=_0x55d9ba[_0x556f3c('0xe')][_0x556f3c('0x6')]?_0x55d9ba['attributes']:_0x340c88[_0x556f3c('0x1b')],_0x3f1414[_0x556f3c('0x37')]['includeAll']&&(_0x55d9ba[_0x556f3c('0x36')]=[{'all':!![]}]),_0x55d9ba=_[_0x556f3c('0x10')]({},_0x55d9ba,_0x3f1414[_0x556f3c('0x35')]),db['VoiceMailMessage'][_0x556f3c('0x18')](_0x55d9ba)[_0x556f3c('0x1')](handleEntityNotFound(_0x1f918d,null))[_0x556f3c('0x1')](respondWithResult(_0x1f918d,null))[_0x556f3c('0x3b')](handleError(_0x1f918d,null));},exports[_0x37fd62('0xd')]=function(_0x5a0d29,_0x517a41){const _0x54c4be=_0x37fd62;return db['VoiceMailMessage'][_0x54c4be('0xd')](_0x5a0d29[_0x54c4be('0x2a')],{})[_0x54c4be('0x1')](respondWithResult(_0x517a41,0xc9))[_0x54c4be('0x3b')](handleError(_0x517a41,null));},exports['update']=function(_0x1a875a,_0xbdc056){const _0x5b47e0=_0x37fd62;return _0x1a875a['body']['id']&&delete _0x1a875a['body']['id'],db[_0x5b47e0('0x16')][_0x5b47e0('0x18')]({'where':{'id':_0x1a875a[_0x5b47e0('0x2f')]['id']}})['then'](handleEntityNotFound(_0xbdc056,null))[_0x5b47e0('0x1')](saveUpdates(_0x1a875a[_0x5b47e0('0x2a')],null))[_0x5b47e0('0x1')](respondWithResult(_0xbdc056,null))['catch'](handleError(_0xbdc056,null));},exports[_0x37fd62('0x3')]=function(_0x5ea62d,_0xfd7012){const _0xc2a5ef=_0x37fd62;return db['VoiceMailMessage'][_0xc2a5ef('0x18')]({'where':{'id':_0x5ea62d['params']['id']}})[_0xc2a5ef('0x1')](handleEntityNotFound(_0xfd7012,null))[_0xc2a5ef('0x1')](removeEntity(_0xfd7012,null))[_0xc2a5ef('0x3b')](handleError(_0xfd7012,null));},exports[_0x37fd62('0x4')]=function(_0x35d69b,_0x5a6edb){const _0x263487=_0x37fd62;return db[_0x263487('0x16')][_0x263487('0x18')]({'where':{'id':_0x35d69b['params']['id']},'attributes':['id','recording',_0x263487('0x15')]})[_0x263487('0x1')](handleEntityNotFound(_0x5a6edb,null))[_0x263487('0x1')](function(_0x363846){const _0x558d8c=_0x263487;if(_0x363846){if(!_0x363846[_0x558d8c('0x2e')])throw new db[(_0x558d8c('0x17'))][(_0x558d8c('0x31'))]('VoiceMailMessage\x20not\x20found');const _0x5189f9={'Content-Type':_0x558d8c('0xa'),'Content-Disposition':_0x558d8c('0x1d')};return _0x363846[_0x558d8c('0x15')]&&(_0x5189f9[_0x558d8c('0x38')]=_0x558d8c('0x2')+_0x363846[_0x558d8c('0x15')]+_0x558d8c('0x25')),_0x5a6edb[_0x558d8c('0x20')](_0x5189f9),_0x5a6edb[_0x558d8c('0x33')](Buffer[_0x558d8c('0x21')](_0x363846[_0x558d8c('0x2e')]));}})[_0x263487('0x3b')](handleError(_0x5a6edb,null));}; \ No newline at end of file +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 diff --git a/server/api/voiceMailMessage/voiceMailMessage.model.js b/server/api/voiceMailMessage/voiceMailMessage.model.js index 64b2a78..31e1ae3 100644 --- a/server/api/voiceMailMessage/voiceMailMessage.model.js +++ b/server/api/voiceMailMessage/voiceMailMessage.model.js @@ -1 +1 @@ -const a739_0x46cd=['./voiceMailMessage.attributes','exports','dir','voice_voicemail_messages','define','VoiceMailMessage'];(function(_0x36803d,_0x46cd7a){const _0x25324d=function(_0x2665b7){while(--_0x2665b7){_0x36803d['push'](_0x36803d['shift']());}};_0x25324d(++_0x46cd7a);}(a739_0x46cd,0x1d5));const a739_0x2532=function(_0x36803d,_0x46cd7a){_0x36803d=_0x36803d-0x0;let _0x25324d=a739_0x46cd[_0x36803d];return _0x25324d;};const _0x5bcb4f=a739_0x2532;'use strict';const attributes=require(_0x5bcb4f('0x5'));module[_0x5bcb4f('0x0')]=function(_0x2665b7){const _0x4c33c6=_0x5bcb4f,_0x17ded4=_0x2665b7[_0x4c33c6('0x3')](_0x4c33c6('0x4'),attributes,{'tableName':_0x4c33c6('0x2'),'paranoid':![],'indexes':[{'name':_0x4c33c6('0x1'),'fields':[_0x4c33c6('0x1')]}],'timestamps':![]});return _0x17ded4;}; \ No newline at end of file +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 diff --git a/server/api/voiceMusicOnHold/index.js b/server/api/voiceMusicOnHold/index.js index 085b73d..48ec4e6 100644 --- a/server/api/voiceMusicOnHold/index.js +++ b/server/api/voiceMusicOnHold/index.js @@ -1 +1 @@ -const a740_0x4884=['./voiceMusicOnHold.controller','update','addSound','exports','destroy','delete','Router','show','index','post','express','removeSound','../../components/auth/service','put','isAuthenticated','/:id/sounds','get','/:id','create'];(function(_0x316381,_0x48845c){const _0x11aea5=function(_0x403d4a){while(--_0x403d4a){_0x316381['push'](_0x316381['shift']());}};_0x11aea5(++_0x48845c);}(a740_0x4884,0x176));const a740_0x11ae=function(_0x316381,_0x48845c){_0x316381=_0x316381-0x0;let _0x11aea5=a740_0x4884[_0x316381];return _0x11aea5;};const _0xffb67b=a740_0x11ae;'use strict';const express=require(_0xffb67b('0x10')),router=express[_0xffb67b('0xc')](),auth=require(_0xffb67b('0x12')),controller=require(_0xffb67b('0x6'));router[_0xffb67b('0x3')]('/',auth[_0xffb67b('0x1')](),controller[_0xffb67b('0xe')]),router['get'](_0xffb67b('0x4'),auth[_0xffb67b('0x1')](),controller[_0xffb67b('0xd')]),router[_0xffb67b('0x3')]('/:id/sounds',auth[_0xffb67b('0x1')](),controller['getSounds']),router[_0xffb67b('0xf')]('/',auth[_0xffb67b('0x1')](),controller[_0xffb67b('0x5')]),router[_0xffb67b('0xf')](_0xffb67b('0x2'),auth[_0xffb67b('0x1')](),controller[_0xffb67b('0x8')]),router[_0xffb67b('0x0')]('/:id',auth[_0xffb67b('0x1')](),controller[_0xffb67b('0x7')]),router[_0xffb67b('0xb')](_0xffb67b('0x4'),auth[_0xffb67b('0x1')](),controller[_0xffb67b('0xa')]),router[_0xffb67b('0xb')]('/:id/sounds/:id2',auth['isAuthenticated'](),controller[_0xffb67b('0x11')]),module[_0xffb67b('0x9')]=router; \ No newline at end of file +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 diff --git a/server/api/voiceMusicOnHold/voiceMusicOnHold.attributes.js b/server/api/voiceMusicOnHold/voiceMusicOnHold.attributes.js index b253ba9..f5f89de 100644 --- a/server/api/voiceMusicOnHold/voiceMusicOnHold.attributes.js +++ b/server/api/voiceMusicOnHold/voiceMusicOnHold.attributes.js @@ -1 +1 @@ -const a741_0x193b=['TIMESTAMP','exports','alpha','quietmp3nb','sequelize','name','ENUM','STRING'];(function(_0x1c8075,_0x193b27){const _0x190003=function(_0x245a16){while(--_0x245a16){_0x1c8075['push'](_0x1c8075['shift']());}};_0x190003(++_0x193b27);}(a741_0x193b,0x74));const a741_0x1900=function(_0x1c8075,_0x193b27){_0x1c8075=_0x1c8075-0x0;let _0x190003=a741_0x193b[_0x1c8075];return _0x190003;};const _0x59dbc3=a741_0x1900;'use strict';const Sequelize=require(_0x59dbc3('0x0'));module[_0x59dbc3('0x5')]={'name':{'type':Sequelize['STRING'],'allowNull':![],'unique':_0x59dbc3('0x1')},'mode':{'type':Sequelize[_0x59dbc3('0x2')]('custom','files','mp3nb',_0x59dbc3('0x7'),'quietmp3','mp3'),'allowNull':!![],'defaultValue':'files'},'directory':{'type':Sequelize[_0x59dbc3('0x3')],'allowNull':!![]},'application':{'type':Sequelize[_0x59dbc3('0x3')],'allowNull':!![]},'digit':{'type':Sequelize[_0x59dbc3('0x3')],'allowNull':!![]},'sort':{'type':Sequelize[_0x59dbc3('0x3')],'allowNull':!![],'defaultValue':_0x59dbc3('0x6')},'format':{'type':Sequelize[_0x59dbc3('0x3')],'allowNull':!![]},'stamp':{'type':_0x59dbc3('0x4')},'defaultEntry':{'type':Sequelize['BOOLEAN'],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/voiceMusicOnHold/voiceMusicOnHold.controller.js b/server/api/voiceMusicOnHold/voiceMusicOnHold.controller.js index c36c52e..e4ddf2d 100644 --- a/server/api/voiceMusicOnHold/voiceMusicOnHold.controller.js +++ b/server/api/voiceMusicOnHold/voiceMusicOnHold.controller.js @@ -1 +1 @@ -const a742_0x50c7=['UserProfileResource','Sequelize','length','../../config/environment','count','api','filter','forEach','MusicOnHolds','like','id2','readdirSync','limit','end','map','getSounds','fieldName','mode','autoAssociation','keys','rmdirSync','unlinkSync','get','user','join','role','transaction','destroy','%s.%s','merge','send','status','options','show','intersection','create','findOne','removeSound','where','sendStatus','message','filters','root','mkdirSync','params','save_name','ValidationError','createdAt','path','query','catch','files','set','includeAll','symlinkSync','key','body','sort','index','sequelize','update','../../components/parsers/qs','Content-Range','VoiceMusicOnHold','attributes','server/files/sounds/converted','../../config/logger','model','json','server/files/moh','findAll','order','../../mysqldb','error','rawAttributes','Sound','addSound','fields','directory','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','0777','undefined','name','then','rows','format','converted_format','type','pick','offset','include'];(function(_0x3d1657,_0x50c745){const _0x474192=function(_0x51837d){while(--_0x51837d){_0x3d1657['push'](_0x3d1657['shift']());}};_0x474192(++_0x50c745);}(a742_0x50c7,0x1e2));const a742_0x4741=function(_0x3d1657,_0x50c745){_0x3d1657=_0x3d1657-0x0;let _0x474192=a742_0x50c7[_0x3d1657];return _0x474192;};const _0x386d4f=a742_0x4741;'use strict';const util=require('util'),path=require(_0x386d4f('0x15')),fs=require('fs'),_=require('lodash'),qs=require(_0x386d4f('0x22')),logger=require(_0x386d4f('0x27'))(_0x386d4f('0x45')),config=require(_0x386d4f('0x43')),db=require(_0x386d4f('0x2d'))['db'],{Op}=require('sequelize');function respondWithStatusCode(_0x51837d,_0x26c9e0){return _0x26c9e0=_0x26c9e0||0xcc,function(_0x4381dd){const _0x4c161e=a742_0x4741;if(_0x4381dd)return _0x51837d['sendStatus'](_0x26c9e0);return _0x51837d['status'](_0x26c9e0)[_0x4c161e('0x4d')]();};}function respondWithResult(_0x2b7802,_0x497316){return _0x497316=_0x497316||0xc8,function(_0x5ea0d0){const _0x808d2f=a742_0x4741;if(_0x5ea0d0)return _0x2b7802[_0x808d2f('0x4')](_0x497316)[_0x808d2f('0x29')](_0x5ea0d0);};}function respondWithFilteredResult(_0x3a32ea,_0x18d715){return function(_0x1bf6a4){const _0x1f2ba2=a742_0x4741;if(_0x1bf6a4){const _0x28ffdb=_0x1bf6a4['count'],_0x251b26=_0x18d715[_0x1f2ba2('0x3e')];let _0xb8854d=_0x18d715[_0x1f2ba2('0x3e')]+_0x18d715[_0x1f2ba2('0x4c')],_0x406f00;return _0xb8854d>=_0x28ffdb?(_0xb8854d=_0x28ffdb,_0x406f00=0xc8):_0x406f00=0xce,_0x3a32ea[_0x1f2ba2('0x4')](_0x406f00),_0x3a32ea[_0x1f2ba2('0x19')](_0x1f2ba2('0x23'),_0x251b26+'-'+_0xb8854d+'/'+_0x28ffdb)[_0x1f2ba2('0x29')](_0x1bf6a4);}return null;};}function saveUpdates(_0x3d7680){return function(_0x151e43){const _0x55e3e7=a742_0x4741;if(_0x151e43)return _0x151e43[_0x55e3e7('0x21')](_0x3d7680)[_0x55e3e7('0x38')](function(_0x46b7f5){return _0x46b7f5;});return null;};}function removeEntity(_0x1b2e01){return function(_0x4dc0a6){const _0x1b19b2=a742_0x4741;if(_0x4dc0a6)return _0x4dc0a6[_0x1b19b2('0x0')]()[_0x1b19b2('0x38')](function(){const _0x5f0406=_0x1b19b2,_0x329bf8=_0x4dc0a6[_0x5f0406('0x56')]({'plain':!![]}),_0x495298=_0x5f0406('0x48');return db[_0x5f0406('0x40')]['destroy']({'where':{'type':_0x495298,'resourceId':_0x329bf8['id']}})[_0x5f0406('0x38')](function(){return _0x4dc0a6;});})['then'](function(){const _0x5d6aa1=_0x1b19b2;_0x1b2e01[_0x5d6aa1('0x4')](0xcc)[_0x5d6aa1('0x4d')]();});};}function handleEntityNotFound(_0x1f4490){return function(_0x31491c){const _0x42093f=a742_0x4741;return!_0x31491c&&_0x1f4490[_0x42093f('0xc')](0x194),_0x31491c;};}function handleError(_0x54ffd1,_0x1505a1){return _0x1505a1=_0x1505a1||0x1f4,function(_0x3704c5){const _0x32ac31=a742_0x4741;logger[_0x32ac31('0x2e')](_0x3704c5['stack']),_0x3704c5[_0x32ac31('0x37')]&&delete _0x3704c5[_0x32ac31('0x37')],_0x54ffd1[_0x32ac31('0x4')](_0x1505a1)[_0x32ac31('0x3')](_0x3704c5);};}exports[_0x386d4f('0x1f')]=function(_0x578c2e,_0x404d63){const _0x598d6a=_0x386d4f;let _0x1386fe={};const _0x5303d9={},_0x5c4f58={'count':0x0,'rows':[]},_0x23893b=_['map'](db[_0x598d6a('0x24')]['rawAttributes'],function(_0x6bdb2){const _0x204050=_0x598d6a;return{'name':_0x6bdb2[_0x204050('0x50')],'type':_0x6bdb2['type'][_0x204050('0x1c')]};});_0x5303d9[_0x598d6a('0x28')]=_[_0x598d6a('0x4e')](_0x23893b,_0x598d6a('0x37')),_0x5303d9['query']=_[_0x598d6a('0x53')](_0x578c2e['query']),_0x5303d9[_0x598d6a('0xe')]=_[_0x598d6a('0x7')](_0x5303d9['model'],_0x5303d9[_0x598d6a('0x16')]),_0x1386fe['attributes']=_[_0x598d6a('0x7')](_0x5303d9['model'],qs[_0x598d6a('0x32')](_0x578c2e['query']['fields'])),_0x1386fe[_0x598d6a('0x25')]=_0x1386fe[_0x598d6a('0x25')]['length']?_0x1386fe[_0x598d6a('0x25')]:_0x5303d9[_0x598d6a('0x28')];typeof _0x578c2e[_0x598d6a('0x16')]['nolimit']===_0x598d6a('0x36')&&(_0x1386fe[_0x598d6a('0x4c')]=qs[_0x598d6a('0x4c')](_0x578c2e['query']['limit']),_0x1386fe[_0x598d6a('0x3e')]=qs[_0x598d6a('0x3e')](_0x578c2e[_0x598d6a('0x16')][_0x598d6a('0x3e')]));_0x1386fe[_0x598d6a('0x2c')]=qs[_0x598d6a('0x1e')](_0x578c2e[_0x598d6a('0x16')][_0x598d6a('0x1e')]),_0x1386fe['where']=qs['filters'](_[_0x598d6a('0x3d')](_0x578c2e[_0x598d6a('0x16')],_0x5303d9['filters']),_0x23893b);_0x578c2e[_0x598d6a('0x16')][_0x598d6a('0x46')]&&(_0x1386fe['where']=_[_0x598d6a('0x2')](_0x1386fe[_0x598d6a('0xb')],{[Op['or']]:_[_0x598d6a('0x4e')](_0x23893b,function(_0x37e246){const _0x186090=_0x598d6a;if(_0x37e246[_0x186090('0x3c')]!=='VIRTUAL'){const _0x8c57f9={};return _0x8c57f9[_0x37e246['name']]={[Op[_0x186090('0x49')]]:'%'+_0x578c2e['query'][_0x186090('0x46')]+'%'},_0x8c57f9;}})}));_0x1386fe=_['merge']({},_0x1386fe,_0x578c2e[_0x598d6a('0x5')]);const _0x31ae26={'where':_0x1386fe[_0x598d6a('0xb')]};return db[_0x598d6a('0x24')][_0x598d6a('0x44')](_0x31ae26)[_0x598d6a('0x38')](function(_0x5cb047){const _0x363b49=_0x598d6a;return _0x5c4f58[_0x363b49('0x44')]=_0x5cb047,_0x578c2e[_0x363b49('0x16')][_0x363b49('0x1a')]&&(_0x1386fe[_0x363b49('0x3f')]=[{'all':!![]}]),db[_0x363b49('0x24')][_0x363b49('0x2b')](_0x1386fe);})[_0x598d6a('0x38')](function(_0x389671){const _0x339550=_0x598d6a;return _0x5c4f58[_0x339550('0x39')]=_0x389671,_0x5c4f58;})['then'](respondWithFilteredResult(_0x404d63,_0x1386fe))[_0x598d6a('0x17')](handleError(_0x404d63,null));},exports[_0x386d4f('0x6')]=function(_0x1f99bc,_0x43e446){const _0x7bd218=_0x386d4f;let _0x2faaa9={'raw':![],'where':{'id':_0x1f99bc['params']['id']}};const _0x3ec246={};return _0x3ec246['model']=_['keys'](db[_0x7bd218('0x24')]['rawAttributes']),_0x3ec246[_0x7bd218('0x16')]=_[_0x7bd218('0x53')](_0x1f99bc[_0x7bd218('0x16')]),_0x3ec246['filters']=_[_0x7bd218('0x7')](_0x3ec246[_0x7bd218('0x28')],_0x3ec246[_0x7bd218('0x16')]),_0x2faaa9['attributes']=_[_0x7bd218('0x7')](_0x3ec246['model'],qs[_0x7bd218('0x32')](_0x1f99bc[_0x7bd218('0x16')]['fields'])),_0x2faaa9[_0x7bd218('0x25')]=_0x2faaa9[_0x7bd218('0x25')]['length']?_0x2faaa9[_0x7bd218('0x25')]:_0x3ec246['model'],_0x1f99bc[_0x7bd218('0x16')][_0x7bd218('0x1a')]&&(_0x2faaa9['include']=[{'all':!![]}]),_0x2faaa9=_[_0x7bd218('0x2')]({},_0x2faaa9,_0x1f99bc[_0x7bd218('0x5')]),db[_0x7bd218('0x24')][_0x7bd218('0x9')](_0x2faaa9)[_0x7bd218('0x38')](handleEntityNotFound(_0x43e446,null))[_0x7bd218('0x38')](respondWithResult(_0x43e446,null))[_0x7bd218('0x17')](handleError(_0x43e446,null));},exports[_0x386d4f('0x21')]=function(_0x2b0592,_0x3bf549){const _0x40fbc7=_0x386d4f;return _0x2b0592[_0x40fbc7('0x1d')]['id']&&delete _0x2b0592['body']['id'],db[_0x40fbc7('0x24')][_0x40fbc7('0x9')]({'where':{'id':_0x2b0592[_0x40fbc7('0x11')]['id']}})[_0x40fbc7('0x38')](handleEntityNotFound(_0x3bf549,null))[_0x40fbc7('0x38')](saveUpdates(_0x2b0592[_0x40fbc7('0x1d')],null))[_0x40fbc7('0x38')](respondWithResult(_0x3bf549,null))[_0x40fbc7('0x17')](handleError(_0x3bf549,null));},exports[_0x386d4f('0x8')]=function(_0x1c2848,_0x3d2ee2){const _0x29eec5=_0x386d4f;return db[_0x29eec5('0x20')][_0x29eec5('0x5a')](function(_0x5ba7e9){const _0x14a9ff=_0x29eec5;return _0x1c2848[_0x14a9ff('0x1d')][_0x14a9ff('0x51')]===_0x14a9ff('0x18')&&(_0x1c2848[_0x14a9ff('0x1d')][_0x14a9ff('0x33')]=path[_0x14a9ff('0x58')](config['root'],_0x14a9ff('0x2a'),_0x1c2848[_0x14a9ff('0x1d')][_0x14a9ff('0x37')])),db[_0x14a9ff('0x24')]['create'](_0x1c2848['body'],{'transaction':_0x5ba7e9})[_0x14a9ff('0x38')](function(_0x25ea52){const _0x53251b=_0x14a9ff;_0x1c2848['body']['mode']==='files'&&fs[_0x53251b('0x10')](_0x25ea52['directory'],parseInt(_0x53251b('0x35'),0x8));const _0x459b52=_0x1c2848[_0x53251b('0x57')][_0x53251b('0x56')]({'plain':!![]});if(!_0x459b52)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x459b52[_0x53251b('0x59')]===_0x53251b('0x57')){const _0xefe74f=_0x25ea52[_0x53251b('0x56')]({'plain':!![]});return db['UserProfileSection'][_0x53251b('0x9')]({'where':{'name':'MusicOnHolds','userProfileId':_0x459b52['userProfileId']},'raw':!![]})['then'](function(_0x5d292e){const _0x27784a=_0x53251b;return _0x5d292e&&_0x5d292e[_0x27784a('0x52')]===0x0?db[_0x27784a('0x40')][_0x27784a('0x8')]({'name':_0xefe74f[_0x27784a('0x37')],'resourceId':_0xefe74f['id'],'type':_0x5d292e[_0x27784a('0x37')],'sectionId':_0x5d292e['id']},{})['then'](function(){return _0x25ea52;}):_0x25ea52;})[_0x53251b('0x17')](function(_0x4045f1){const _0x1f0e8c=_0x53251b;logger['error'](_0x1f0e8c('0x34'),_0x4045f1);});}return _0x25ea52;});})[_0x29eec5('0x38')](respondWithResult(_0x3d2ee2,0xc9))[_0x29eec5('0x17')](handleError(_0x3d2ee2,null));},exports[_0x386d4f('0x0')]=function(_0x202611,_0x265cad){const _0x5b161f=_0x386d4f;return db[_0x5b161f('0x24')][_0x5b161f('0x9')]({'where':{'id':_0x202611[_0x5b161f('0x11')]['id']}})[_0x5b161f('0x38')](function(_0x274b8e){const _0x3b027e=_0x5b161f;if(_0x274b8e)return db[_0x3b027e('0x20')]['transaction'](function(_0x26cb2d){const _0x3a92b0=_0x3b027e;return _0x274b8e[_0x3a92b0('0x0')]({'transaction':_0x26cb2d,'raw':!![]})[_0x3a92b0('0x38')](function(_0x284eb4){const _0x48d8d1=_0x3a92b0;return _0x284eb4[_0x48d8d1('0x33')]&&(fs[_0x48d8d1('0x4b')](_0x284eb4[_0x48d8d1('0x33')])[_0x48d8d1('0x47')](function(_0x591523){const _0x45939d=_0x48d8d1;fs[_0x45939d('0x55')](path[_0x45939d('0x58')](_0x284eb4['directory'],_0x591523));}),fs[_0x48d8d1('0x54')](_0x284eb4['directory'])),_0x284eb4;});})[_0x3b027e('0x17')](function(_0x430ae9){const _0x2766e6=_0x3b027e;throw new db[(_0x2766e6('0x41'))][(_0x2766e6('0x13'))](_0x430ae9[_0x2766e6('0xd')]);});})[_0x5b161f('0x38')](handleEntityNotFound(_0x265cad,null))[_0x5b161f('0x38')](removeEntity(_0x265cad,null))[_0x5b161f('0x17')](handleError(_0x265cad,null));},exports[_0x386d4f('0x31')]=function(_0x508a6d,_0x3f4f9c){const _0x1a4e78=_0x386d4f;return db['sequelize']['transaction'](function(_0x2a432d){const _0x5b64e=a742_0x4741;let _0x5e7880;return db[_0x5b64e('0x24')][_0x5b64e('0x9')]({'where':{'id':_0x508a6d[_0x5b64e('0x11')]['id']}})['then'](function(_0x654667){const _0x11d79f=_0x5b64e;if(_0x654667)return _0x5e7880=_0x654667,_0x654667[_0x11d79f('0x31')](_0x508a6d[_0x11d79f('0x1d')]['id'],{'transaction':_0x2a432d});})[_0x5b64e('0x38')](function(_0x3788ab){const _0x407ff6=_0x5b64e;if(_0x3788ab)return db[_0x407ff6('0x30')][_0x407ff6('0x9')]({'where':{'id':_0x508a6d['body']['id']},'attributes':['id',_0x407ff6('0x37'),_0x407ff6('0x12'),_0x407ff6('0x3b'),_0x407ff6('0x14')],'raw':!![]});})[_0x5b64e('0x38')](function(_0xdb5121){const _0x538621=_0x5b64e;if(_0xdb5121){const _0x59c816=path['join'](config[_0x538621('0xf')],_0x538621('0x26'),util['format'](_0x538621('0x1'),path['basename'](_0xdb5121['save_name'],path['extname'](_0xdb5121[_0x538621('0x12')])),_0xdb5121[_0x538621('0x3b')])),_0x21b74b=path[_0x538621('0x58')](config[_0x538621('0xf')],_0x538621('0x2a'),_0x5e7880[_0x538621('0x37')],util[_0x538621('0x3a')]('%s.%s',_0xdb5121[_0x538621('0x37')],_0xdb5121['converted_format']));return fs[_0x538621('0x1b')](_0x59c816,_0x21b74b),_0xdb5121;}})[_0x5b64e('0x17')](function(_0xa4ad7f){const _0x423d51=_0x5b64e;throw new db['Sequelize'][(_0x423d51('0x13'))](_0xa4ad7f[_0x423d51('0xd')]);});})[_0x1a4e78('0x38')](handleEntityNotFound(_0x3f4f9c,null))[_0x1a4e78('0x38')](respondWithResult(_0x3f4f9c,0xc9))['catch'](handleError(_0x3f4f9c,null));},exports[_0x386d4f('0xa')]=function(_0x510ad0,_0x537fc4){const _0x4f802a=_0x386d4f;return db[_0x4f802a('0x20')][_0x4f802a('0x5a')](function(){const _0x1b3e93=_0x4f802a;let _0x50a378;return db[_0x1b3e93('0x24')][_0x1b3e93('0x9')]({'where':{'id':_0x510ad0['params']['id']}})[_0x1b3e93('0x38')](handleEntityNotFound(_0x537fc4,null))[_0x1b3e93('0x38')](function(_0x50a813){const _0x2195ab=_0x1b3e93;if(_0x50a813)return _0x50a378=_0x50a813,_0x50a813[_0x2195ab('0xa')](_0x510ad0['params'][_0x2195ab('0x4a')]);})['then'](function(_0x43a5b9){const _0xdd4bd6=_0x1b3e93;if(_0x43a5b9)return db[_0xdd4bd6('0x30')][_0xdd4bd6('0x9')]({'where':{'id':_0x510ad0[_0xdd4bd6('0x11')][_0xdd4bd6('0x4a')]},'attributes':['id',_0xdd4bd6('0x37'),_0xdd4bd6('0x12'),_0xdd4bd6('0x3b'),_0xdd4bd6('0x14')],'raw':!![]});})['then'](function(_0x668939){const _0x4dbe6f=_0x1b3e93;if(_0x668939)return fs[_0x4dbe6f('0x55')](path['join'](_0x50a378[_0x4dbe6f('0x33')],util['format'](_0x4dbe6f('0x1'),_0x668939[_0x4dbe6f('0x37')],_0x668939['converted_format']))),_0x668939;})[_0x1b3e93('0x17')](function(_0x138601){const _0x40794e=_0x1b3e93;throw new db[(_0x40794e('0x41'))][(_0x40794e('0x13'))](_0x138601[_0x40794e('0xd')]);});})[_0x4f802a('0x38')](handleEntityNotFound(_0x537fc4,null))[_0x4f802a('0x38')](respondWithStatusCode(_0x537fc4,0xcc))[_0x4f802a('0x17')](handleError(_0x537fc4,null));},exports['getSounds']=function(_0x1025f9,_0x10b156){const _0x4b4e44=_0x386d4f;let _0x2a5cc4={};const _0x28e5f3={};let _0x5406da,_0x39f4dd;return db[_0x4b4e44('0x24')][_0x4b4e44('0x9')]({'where':{'id':_0x1025f9['params']['id']}})[_0x4b4e44('0x38')](handleEntityNotFound(_0x10b156,null))[_0x4b4e44('0x38')](function(_0x40b53c){const _0x303940=_0x4b4e44;if(_0x40b53c)return _0x5406da=_0x40b53c,_0x28e5f3[_0x303940('0x28')]=_[_0x303940('0x53')](db[_0x303940('0x30')][_0x303940('0x2f')]),_0x28e5f3[_0x303940('0x16')]=_[_0x303940('0x53')](_0x1025f9[_0x303940('0x16')]),_0x28e5f3[_0x303940('0xe')]=_[_0x303940('0x7')](_0x28e5f3[_0x303940('0x28')],_0x28e5f3[_0x303940('0x16')]),_0x2a5cc4[_0x303940('0x25')]=_['intersection'](_0x28e5f3['model'],qs[_0x303940('0x32')](_0x1025f9[_0x303940('0x16')][_0x303940('0x32')])),_0x2a5cc4[_0x303940('0x25')]=_0x2a5cc4[_0x303940('0x25')][_0x303940('0x42')]?_0x2a5cc4[_0x303940('0x25')]:_0x28e5f3['model'],_0x2a5cc4['order']=qs[_0x303940('0x1e')](_0x1025f9[_0x303940('0x16')][_0x303940('0x1e')]),_0x2a5cc4[_0x303940('0xb')]=qs[_0x303940('0xe')](_[_0x303940('0x3d')](_0x1025f9[_0x303940('0x16')],_0x28e5f3[_0x303940('0xe')])),_0x1025f9[_0x303940('0x16')][_0x303940('0x46')]&&(_0x2a5cc4['where']=_[_0x303940('0x2')](_0x2a5cc4['where'],{[Op['or']]:_[_0x303940('0x4e')](_0x2a5cc4[_0x303940('0x25')],function(_0x2bed05){const _0x25877b=_0x303940,_0x5f0e80={};return _0x5f0e80[_0x2bed05]={[Op[_0x25877b('0x49')]]:'%'+_0x1025f9['query'][_0x25877b('0x46')]+'%'},_0x5f0e80;})})),_0x2a5cc4=_['merge']({},_0x2a5cc4,_0x1025f9['options']),_0x5406da[_0x303940('0x4f')](_0x2a5cc4);})[_0x4b4e44('0x38')](function(_0x20bb89){const _0x48a267=_0x4b4e44;if(_0x20bb89)return _0x39f4dd=_0x20bb89[_0x48a267('0x42')],typeof _0x1025f9[_0x48a267('0x16')]['nolimit']===_0x48a267('0x36')&&(_0x2a5cc4[_0x48a267('0x4c')]=qs[_0x48a267('0x4c')](_0x1025f9['query'][_0x48a267('0x4c')]),_0x2a5cc4[_0x48a267('0x3e')]=qs[_0x48a267('0x3e')](_0x1025f9['query'][_0x48a267('0x3e')])),_0x5406da['getSounds'](_0x2a5cc4);})[_0x4b4e44('0x38')](function(_0x2be4b7){if(_0x2be4b7)return _0x2be4b7?{'count':_0x39f4dd,'rows':_0x2be4b7}:null;})[_0x4b4e44('0x38')](respondWithResult(_0x10b156,null))[_0x4b4e44('0x17')](handleError(_0x10b156,null));}; \ No newline at end of file +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 diff --git a/server/api/voiceMusicOnHold/voiceMusicOnHold.model.js b/server/api/voiceMusicOnHold/voiceMusicOnHold.model.js index 17302b8..e5308f0 100644 --- a/server/api/voiceMusicOnHold/voiceMusicOnHold.model.js +++ b/server/api/voiceMusicOnHold/voiceMusicOnHold.model.js @@ -1 +1 @@ -const a743_0xf3b5=['exports','VoiceMusicOnHold'];(function(_0x2a9d73,_0xf3b59){const _0x44fa7f=function(_0x41b3e9){while(--_0x41b3e9){_0x2a9d73['push'](_0x2a9d73['shift']());}};_0x44fa7f(++_0xf3b59);}(a743_0xf3b5,0x6d));const a743_0x44fa=function(_0x2a9d73,_0xf3b59){_0x2a9d73=_0x2a9d73-0x0;let _0x44fa7f=a743_0xf3b5[_0x2a9d73];return _0x44fa7f;};const _0x4b4032=a743_0x44fa;'use strict';const attributes=require('./voiceMusicOnHold.attributes');module[_0x4b4032('0x1')]=function(_0x41b3e9){const _0x302b6c=_0x4b4032,_0x44556e=_0x41b3e9['define'](_0x302b6c('0x0'),attributes,{'tableName':'voice_musiconhold','paranoid':![],'indexes':[],'timestamps':!![]});return _0x44556e;}; \ No newline at end of file +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 diff --git a/server/api/voicePrefix/index.js b/server/api/voicePrefix/index.js index 42b11a2..1214e37 100644 --- a/server/api/voicePrefix/index.js +++ b/server/api/voicePrefix/index.js @@ -1 +1 @@ -const a744_0x301a=['../../components/auth/service','/describe','removeAgents','create','delete','/:id','index','getAgents','show','Router','post','addAgents','isAuthenticated','/:id/users','exports','get','express','put'];(function(_0x2bbc91,_0x301a51){const _0x97a46=function(_0x2de60a){while(--_0x2de60a){_0x2bbc91['push'](_0x2bbc91['shift']());}};_0x97a46(++_0x301a51);}(a744_0x301a,0xae));const a744_0x97a4=function(_0x2bbc91,_0x301a51){_0x2bbc91=_0x2bbc91-0x0;let _0x97a46=a744_0x301a[_0x2bbc91];return _0x97a46;};const _0x331130=a744_0x97a4;'use strict';const express=require(_0x331130('0x4')),router=express[_0x331130('0xf')](),auth=require(_0x331130('0x6')),controller=require('./voicePrefix.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x331130('0xc')]),router['get'](_0x331130('0x7'),auth[_0x331130('0x0')](),controller['describe']),router[_0x331130('0x3')]('/:id',auth['isAuthenticated'](),controller[_0x331130('0xe')]),router[_0x331130('0x3')]('/:id/users',auth[_0x331130('0x0')](),controller[_0x331130('0xd')]),router[_0x331130('0x10')]('/',auth['isAuthenticated'](),controller[_0x331130('0x9')]),router['post'](_0x331130('0x1'),auth[_0x331130('0x0')](),controller[_0x331130('0x11')]),router[_0x331130('0x5')](_0x331130('0xb'),auth[_0x331130('0x0')](),controller['update']),router[_0x331130('0xa')]('/:id',auth[_0x331130('0x0')](),controller['destroy']),router[_0x331130('0xa')](_0x331130('0x1'),auth[_0x331130('0x0')](),controller[_0x331130('0x8')]),module[_0x331130('0x2')]=router; \ No newline at end of file +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 diff --git a/server/api/voicePrefix/voicePrefix.attributes.js b/server/api/voicePrefix/voicePrefix.attributes.js index d47201c..46a5832 100644 --- a/server/api/voicePrefix/voicePrefix.attributes.js +++ b/server/api/voicePrefix/voicePrefix.attributes.js @@ -1 +1 @@ -const a745_0x4f1c=['sequelize','exports','INTEGER','getDataValue','name','VIRTUAL','STRING'];(function(_0x5c8761,_0x4f1c3e){const _0x4a82e8=function(_0x34523a){while(--_0x34523a){_0x5c8761['push'](_0x5c8761['shift']());}};_0x4a82e8(++_0x4f1c3e);}(a745_0x4f1c,0x9d));const a745_0x4a82=function(_0x5c8761,_0x4f1c3e){_0x5c8761=_0x5c8761-0x0;let _0x4a82e8=a745_0x4f1c[_0x5c8761];return _0x4a82e8;};const _0x33cd50=a745_0x4a82;'use strict';const Sequelize=require(_0x33cd50('0x4'));module[_0x33cd50('0x5')]={'name':{'type':Sequelize['STRING'],'allowNull':![],'unique':_0x33cd50('0x1')},'prefix':{'type':Sequelize[_0x33cd50('0x2')],'get':function(){const _0x42376f=_0x33cd50;return'system-'+this[_0x42376f('0x0')]('name')+'-';}},'description':{'type':Sequelize[_0x33cd50('0x3')]},'callerIdAll':{'type':Sequelize[_0x33cd50('0x3')]},'VoiceExtensionId':{'type':Sequelize[_0x33cd50('0x6')]}}; \ No newline at end of file +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 diff --git a/server/api/voicePrefix/voicePrefix.controller.js b/server/api/voicePrefix/voicePrefix.controller.js index 4d94634..617c82b 100644 --- a/server/api/voicePrefix/voicePrefix.controller.js +++ b/server/api/voicePrefix/voicePrefix.controller.js @@ -1 +1 @@ -const a746_0xfcbf=['appdata','Content-Range','index','callerIdAll','filters','goto','ids','VIRTUAL','then','userVoicePrefix:save','includeAll','charAt','push','key','like','get','Voice\x20Prefix\x20Extension','../../components/parsers/qs','PREFIX-CALLERIDALL=','No\x20callerid\x20available','../../rediscache','context','name','userProfileId','error','sendStatus','order','merge','body','lodash','json','UserProfileSection','emit','role','transaction','rawAttributes','attributes','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','exten','offset','sequelize','findOne','../../config/logger','query','priority','VoiceExtensionId','./voicePrefix.socket','system-','${EXTEN:','Unable\x20to\x20retrieve\x20the\x20current\x20user','omit','VoicePrefix','count','end','Voice\x20Prefix','bulkCreate','api','system','fields','VoicePrefixId','intersection','undefined','removeAgents','include','addAgents','options','limit','Set','sort','pick','findAll','autoAssociation','getAgents','map','VoicePrefixes','create','findByPk','keys','filter','VoiceExtension','rows','from-sip','destroy','model','params','NoOp','userVoicePrefix:remove','where','nolimit','status','send','length','register','catch','prefix','UserProfileResource','type','description','../../mysqldb'];(function(_0x2508b4,_0xfcbfdc){const _0x326ee5=function(_0x1a1757){while(--_0x1a1757){_0x2508b4['push'](_0x2508b4['shift']());}};_0x326ee5(++_0xfcbfdc);}(a746_0xfcbf,0x1eb));const a746_0x326e=function(_0x2508b4,_0xfcbfdc){_0x2508b4=_0x2508b4-0x0;let _0x326ee5=a746_0xfcbf[_0x2508b4];return _0x326ee5;};const _0x2bb85b=a746_0x326e;'use strict';const _=require(_0x2bb85b('0x21')),qs=require(_0x2bb85b('0x15')),logger=require(_0x2bb85b('0x2e'))(_0x2bb85b('0x3c')),{getSocket}=require(_0x2bb85b('0x18')),socket=getSocket(),db=require(_0x2bb85b('0x3'))['db'],{Op}=require(_0x2bb85b('0x2c'));require(_0x2bb85b('0x32'))[_0x2bb85b('0x60')](socket);function respondWithStatusCode(_0x1a1757,_0x2b72d7){return _0x2b72d7=_0x2b72d7||0xcc,function(_0x452f){const _0x57fd05=a746_0x326e;if(_0x452f)return _0x1a1757[_0x57fd05('0x1d')](_0x2b72d7);return _0x1a1757['status'](_0x2b72d7)[_0x57fd05('0x39')]();};}function respondWithResult(_0x22f344,_0x83ba4f){return _0x83ba4f=_0x83ba4f||0xc8,function(_0x95a1ae){const _0x5e7901=a746_0x326e;if(_0x95a1ae)return _0x22f344[_0x5e7901('0x5d')](_0x83ba4f)[_0x5e7901('0x22')](_0x95a1ae);};}function respondWithFilteredResult(_0x2d42a6,_0x44e03d){return function(_0x35023e){const _0x113128=a746_0x326e;if(_0x35023e){const _0x90695e=_0x35023e['count'],_0xe946ac=_0x44e03d[_0x113128('0x2b')];let _0x2e7eae=_0x44e03d['offset']+_0x44e03d[_0x113128('0x46')],_0x247545;return _0x2e7eae>=_0x90695e?(_0x2e7eae=_0x90695e,_0x247545=0xc8):_0x247545=0xce,_0x2d42a6[_0x113128('0x5d')](_0x247545),_0x2d42a6['set'](_0x113128('0x5'),_0xe946ac+'-'+_0x2e7eae+'/'+_0x90695e)[_0x113128('0x22')](_0x35023e);}return null;};}function removeEntity(_0x281915){return function(_0x7ebb96){const _0x3a60d0=a746_0x326e;if(_0x7ebb96)return _0x7ebb96[_0x3a60d0('0x56')]()[_0x3a60d0('0xc')](function(){const _0x10bcd8=_0x3a60d0,_0x1e4963=_0x7ebb96[_0x10bcd8('0x13')]({'plain':!![]}),_0x11a282='VoicePrefixes';return db[_0x10bcd8('0x0')][_0x10bcd8('0x56')]({'where':{'type':_0x11a282,'resourceId':_0x1e4963['id']}})[_0x10bcd8('0xc')](function(){return _0x7ebb96;});})[_0x3a60d0('0xc')](function(){const _0x58cd43=_0x3a60d0;_0x281915[_0x58cd43('0x5d')](0xcc)['end']();});};}function handleEntityNotFound(_0xf33d86){return function(_0x3fb0aa){const _0x4986f2=a746_0x326e;return!_0x3fb0aa&&_0xf33d86[_0x4986f2('0x1d')](0x194),_0x3fb0aa;};}function handleError(_0x4e6c72,_0x2174ff){return _0x2174ff=_0x2174ff||0x1f4,function(_0x2adaad){const _0x32f8a1=a746_0x326e;logger['error'](_0x2adaad['stack']),_0x2adaad[_0x32f8a1('0x1a')]&&delete _0x2adaad[_0x32f8a1('0x1a')],_0x4e6c72[_0x32f8a1('0x5d')](_0x2174ff)[_0x32f8a1('0x5e')](_0x2adaad);};}exports[_0x2bb85b('0x6')]=function(_0x23caaf,_0x5ef775){const _0x22068c=_0x2bb85b;let _0x46747a={};const _0x1199d6={},_0x3453c8={'count':0x0,'rows':[]},_0xd1061f=_[_0x22068c('0x4d')](db[_0x22068c('0x37')][_0x22068c('0x27')],function(_0x33c573){const _0x46eb6e=_0x22068c;return{'name':_0x33c573['fieldName'],'type':_0x33c573['type'][_0x46eb6e('0x11')]};});_0x1199d6['model']=_[_0x22068c('0x4d')](_0xd1061f,_0x22068c('0x1a')),_0x1199d6[_0x22068c('0x2f')]=_['keys'](_0x23caaf[_0x22068c('0x2f')]),_0x1199d6['filters']=_[_0x22068c('0x40')](_0x1199d6['model'],_0x1199d6[_0x22068c('0x2f')]),_0x46747a[_0x22068c('0x28')]=_[_0x22068c('0x40')](_0x1199d6[_0x22068c('0x57')],qs[_0x22068c('0x3e')](_0x23caaf[_0x22068c('0x2f')][_0x22068c('0x3e')])),_0x46747a[_0x22068c('0x28')]=_0x46747a['attributes'][_0x22068c('0x5f')]?_0x46747a[_0x22068c('0x28')]:_0x1199d6['model'];typeof _0x23caaf['query'][_0x22068c('0x5c')]===_0x22068c('0x41')&&(_0x46747a[_0x22068c('0x46')]=qs[_0x22068c('0x46')](_0x23caaf[_0x22068c('0x2f')]['limit']),_0x46747a[_0x22068c('0x2b')]=qs['offset'](_0x23caaf[_0x22068c('0x2f')][_0x22068c('0x2b')]));_0x46747a[_0x22068c('0x1e')]=qs[_0x22068c('0x48')](_0x23caaf[_0x22068c('0x2f')][_0x22068c('0x48')]),_0x46747a[_0x22068c('0x5b')]=qs['filters'](_[_0x22068c('0x49')](_0x23caaf['query'],_0x1199d6[_0x22068c('0x8')]),_0xd1061f);_0x23caaf[_0x22068c('0x2f')][_0x22068c('0x52')]&&(_0x46747a[_0x22068c('0x5b')]=_[_0x22068c('0x1f')](_0x46747a[_0x22068c('0x5b')],{[Op['or']]:_[_0x22068c('0x4d')](_0xd1061f,function(_0x491e92){const _0xc98d5e=_0x22068c;if(_0x491e92['type']!==_0xc98d5e('0xb')){const _0x17c03d={};return _0x17c03d[_0x491e92[_0xc98d5e('0x1a')]]={[Op[_0xc98d5e('0x12')]]:'%'+_0x23caaf['query'][_0xc98d5e('0x52')]+'%'},_0x17c03d;}})}));_0x46747a=_[_0x22068c('0x1f')]({},_0x46747a,_0x23caaf['options']);const _0x4fae70={'where':_0x46747a['where']};return db[_0x22068c('0x37')][_0x22068c('0x38')](_0x4fae70)['then'](function(_0x42d4d9){const _0xbab4d8=_0x22068c;return _0x3453c8['count']=_0x42d4d9,_0x23caaf['query'][_0xbab4d8('0xe')]&&(_0x46747a[_0xbab4d8('0x43')]=[{'all':!![]}]),db[_0xbab4d8('0x37')][_0xbab4d8('0x4a')](_0x46747a);})[_0x22068c('0xc')](function(_0x2f8068){const _0x16eff8=_0x22068c;return _0x3453c8[_0x16eff8('0x54')]=_0x2f8068,_0x3453c8;})['then'](respondWithFilteredResult(_0x5ef775,_0x46747a))[_0x22068c('0x61')](handleError(_0x5ef775,null));},exports['show']=function(_0x5b65cf,_0x51032e){const _0x47b926=_0x2bb85b;let _0x30e9ac={'raw':![],'where':{'id':_0x5b65cf[_0x47b926('0x58')]['id']}};const _0x544d89={};return _0x544d89[_0x47b926('0x57')]=_[_0x47b926('0x51')](db[_0x47b926('0x37')][_0x47b926('0x27')]),_0x544d89[_0x47b926('0x2f')]=_[_0x47b926('0x51')](_0x5b65cf[_0x47b926('0x2f')]),_0x544d89['filters']=_[_0x47b926('0x40')](_0x544d89[_0x47b926('0x57')],_0x544d89['query']),_0x30e9ac[_0x47b926('0x28')]=_[_0x47b926('0x40')](_0x544d89[_0x47b926('0x57')],qs[_0x47b926('0x3e')](_0x5b65cf['query']['fields'])),_0x30e9ac[_0x47b926('0x28')]=_0x30e9ac[_0x47b926('0x28')][_0x47b926('0x5f')]?_0x30e9ac['attributes']:_0x544d89['model'],_0x5b65cf[_0x47b926('0x2f')][_0x47b926('0xe')]&&(_0x30e9ac[_0x47b926('0x43')]=[{'all':!![]}]),_0x30e9ac=_[_0x47b926('0x1f')]({},_0x30e9ac,_0x5b65cf['options']),db[_0x47b926('0x37')][_0x47b926('0x2d')](_0x30e9ac)[_0x47b926('0xc')](handleEntityNotFound(_0x51032e,null))[_0x47b926('0xc')](respondWithResult(_0x51032e,null))[_0x47b926('0x61')](handleError(_0x51032e,null));},exports[_0x2bb85b('0x56')]=function(_0x797dc,_0x461601){const _0x56064a=_0x2bb85b;return db[_0x56064a('0x37')][_0x56064a('0x2d')]({'where':{'id':_0x797dc[_0x56064a('0x58')]['id']}})[_0x56064a('0xc')](handleEntityNotFound(_0x461601,null))[_0x56064a('0xc')](removeEntity(_0x461601,null))[_0x56064a('0x61')](handleError(_0x461601,null));},exports['describe']=function(_0x53ac3e,_0x3fccc4){const _0x2d88bf=_0x2bb85b;return db[_0x2d88bf('0x37')]['describe']()['then'](respondWithResult(_0x3fccc4,null))[_0x2d88bf('0x61')](handleError(_0x3fccc4,null));},exports[_0x2bb85b('0x4f')]=function(_0x404e9e,_0x361531){const _0x2040db=_0x2bb85b;let _0x50a09b;return db[_0x2040db('0x2c')][_0x2040db('0x26')](function(_0x4c934c){const _0x23282e=_0x2040db;return db[_0x23282e('0x37')][_0x23282e('0x4f')](_0x404e9e[_0x23282e('0x20')],{'transaction':_0x4c934c})['then'](function(_0x5e51e6){const _0x49eb7f=_0x23282e;return _0x50a09b=_0x5e51e6[_0x49eb7f('0x13')]({'plain':!![]}),db[_0x49eb7f('0x53')][_0x49eb7f('0x2d')]({'where':{'id':_0x50a09b[_0x49eb7f('0x31')]},'raw':!![]})[_0x49eb7f('0xc')](function(_0x1ad395){return createVoicePrefixExtensions(_0x50a09b,_0x1ad395,_0x4c934c);});});})[_0x2040db('0xc')](function(){const _0x2693e6=_0x2040db,_0x2a021b=_0x404e9e['user'][_0x2693e6('0x13')]({'plain':!![]});if(!_0x2a021b)throw new Error(_0x2693e6('0x35'));if(_0x2a021b[_0x2693e6('0x25')]==='user'){const _0x2b9879=_0x50a09b;return db[_0x2693e6('0x23')][_0x2693e6('0x2d')]({'where':{'name':_0x2693e6('0x4e'),'userProfileId':_0x2a021b[_0x2693e6('0x1b')]},'raw':!![]})['then'](function(_0x552f90){const _0x278bf3=_0x2693e6;return _0x552f90&&_0x552f90[_0x278bf3('0x4b')]===0x0?db['UserProfileResource'][_0x278bf3('0x4f')]({'name':_0x2b9879['name'],'resourceId':_0x2b9879['id'],'type':_0x552f90[_0x278bf3('0x1a')],'sectionId':_0x552f90['id']},{})[_0x278bf3('0xc')](function(){return _0x50a09b;}):_0x50a09b;})[_0x2693e6('0x61')](function(_0x23eda0){const _0x15a061=_0x2693e6;logger[_0x15a061('0x1c')](_0x15a061('0x29'),_0x23eda0);throw _0x23eda0;});}return _0x50a09b;})[_0x2040db('0xc')](respondWithResult(_0x361531,null))[_0x2040db('0x61')](handleError(_0x361531,null));};function Extension(_0x19463e,_0x47fa95,_0x3d8bc9,_0x490eb0){const _0x34fd49=_0x2bb85b;this[_0x34fd49('0x19')]=_0x34fd49('0x55'),this[_0x34fd49('0x2a')]=_0x19463e,this['app']=_0x3d8bc9,this[_0x34fd49('0x1')]=_0x34fd49('0x3d'),this[_0x34fd49('0x2')]=_0x34fd49('0x14'),this[_0x34fd49('0x30')]=_0x47fa95,this[_0x34fd49('0x4')]=_0x490eb0;}function createVoicePrefixExtensions(_0x29927a,_0x43c9e3,_0x151966){return new Promise(function(_0x415b6e,_0x42fa1b){const _0x45a297=a746_0x326e,_0x117e97=new Extension(formatPrefixName(_0x29927a[_0x45a297('0x62')]),0x1,'NoOp',_0x45a297('0x3a'));return _0x117e97['VoicePrefixId']=_0x29927a['id'],db['VoiceExtension'][_0x45a297('0x4f')](_0x117e97,{'transaction':_0x151966})['then'](function(_0x11a51a){const _0x255140=_0x45a297,_0x33f2ca=_0x11a51a[_0x255140('0x13')]({'plain':!![]}),_0x48c027=_[_0x255140('0x4d')](addVoicePrefixExtensions(_0x29927a,_0x43c9e3),function(_0xaa1642){const _0x2ae65f=_0x255140;return _0xaa1642[_0x2ae65f('0x31')]=_0x33f2ca['id'],_0xaa1642[_0x2ae65f('0x3f')]=_0x29927a['id'],_0xaa1642;});return db[_0x255140('0x53')][_0x255140('0x3b')](_0x48c027,{'transaction':_0x151966})[_0x255140('0xc')](function(_0xbf12b6){return!_0xbf12b6?_0x42fa1b('Extensions\x20creation\x20failed'):_0x415b6e(_0xbf12b6);})['catch'](function(_0x4cbb7f){return _0x42fa1b(_0x4cbb7f);});});});}function addVoicePrefixExtensions(_0x5d4616,_0x275874){const _0x11103c=_0x2bb85b,_0xc471c6=[],_0x2c0fae=formatPrefixName(_0x5d4616[_0x11103c('0x62')]);return _0xc471c6[_0x11103c('0x10')](new Extension(_0x2c0fae,0x2,_0x11103c('0x47'),'CDR(prefix)='+_0x5d4616[_0x11103c('0x1a')])),_0x5d4616[_0x11103c('0x7')]?_0xc471c6[_0x11103c('0x10')](new Extension(_0x2c0fae,0x3,_0x11103c('0x47'),_0x11103c('0x16')+_0x5d4616['callerIdAll'])):_0xc471c6[_0x11103c('0x10')](new Extension(_0x2c0fae,0x3,_0x11103c('0x59'),_0x11103c('0x17'))),_0xc471c6[_0x11103c('0x10')](new Extension(_0x2c0fae,0x4,_0x11103c('0x9'),_0x275874[_0x11103c('0x19')]+','+_0x11103c('0x34')+(0x8+_0x5d4616[_0x11103c('0x1a')]['length'])+'}'+','+0x1)),_0xc471c6;}function formatPrefixName(_0x36c486){const _0x976275=_0x2bb85b;let _0x3c4fdf='_';for(let _0xfcd7f5=0x0;_0xfcd7f5<_0x36c486[_0x976275('0x5f')];_0xfcd7f5++){_0x36c486[_0x976275('0xf')](_0xfcd7f5)=='-'?_0x3c4fdf+=_0x36c486[_0x976275('0xf')](_0xfcd7f5):_0x3c4fdf+='['+_0x36c486[_0x976275('0xf')](_0xfcd7f5)+']';}return _0x3c4fdf+='.',_0x3c4fdf;}exports['update']=function(_0x1e5aea,_0x136559){const _0x2f2e18=_0x2bb85b,_0x582072=_0x1e5aea['body'];return _0x582072[_0x2f2e18('0x62')]=_0x2f2e18('0x33')+_0x582072[_0x2f2e18('0x1a')]+'-',db[_0x2f2e18('0x2c')][_0x2f2e18('0x26')](function(_0x40b217){const _0x108e43=_0x2f2e18;return db[_0x108e43('0x37')]['update'](_0x582072,{'where':{'id':_0x582072['id']},'transaction':_0x40b217})[_0x108e43('0xc')](function(){const _0x2b7845=_0x108e43;return db[_0x2b7845('0x53')]['destroy']({'where':{'VoicePrefixId':_0x582072['id']},'transaction':_0x40b217})['then'](function(){const _0x10dfd0=_0x2b7845;return db[_0x10dfd0('0x53')][_0x10dfd0('0x2d')]({'where':{'id':_0x582072[_0x10dfd0('0x31')]},'raw':!![]})[_0x10dfd0('0xc')](function(_0x4da974){return createVoicePrefixExtensions(_0x582072,_0x4da974,_0x40b217);});});});})['then'](function(){const _0x166646=_0x2f2e18;return db[_0x166646('0x37')][_0x166646('0x50')](_0x582072['id']);})[_0x2f2e18('0xc')](respondWithResult(_0x136559,null))[_0x2f2e18('0x61')](handleError(_0x136559,null));},exports['addAgents']=function(_0x356108,_0x23a215){const _0xc08704=_0x2bb85b;return db[_0xc08704('0x37')][_0xc08704('0x2d')]({'where':{'id':_0x356108[_0xc08704('0x58')]['id']}})[_0xc08704('0xc')](function(_0x4b9b42){const _0x31f011=_0xc08704;if(_0x4b9b42)return _0x4b9b42[_0x31f011('0x44')](_0x356108[_0x31f011('0x20')][_0x31f011('0xa')],{'through':_[_0x31f011('0x36')](_0x356108['body'],['ids','id'])})[_0x31f011('0xc')](function(_0x37beb5){const _0x461633=_0x31f011;for(let _0x352fde=0x0;_0x352fde<_0x356108['body'][_0x461633('0xa')][_0x461633('0x5f')];_0x352fde+=0x1){socket[_0x461633('0x24')](_0x461633('0xd'),{'UserId':_0x356108[_0x461633('0x20')]['ids'][_0x352fde],'VoicePrefixId':_0x356108['params']['id']});}return _0x37beb5;});})[_0xc08704('0xc')](respondWithResult(_0x23a215,null))[_0xc08704('0x61')](handleError(_0x23a215,null));},exports['removeAgents']=function(_0x25867e,_0x188891){const _0xe7a6b1=_0x2bb85b;return db['VoicePrefix'][_0xe7a6b1('0x2d')]({'where':{'id':_0x25867e[_0xe7a6b1('0x58')]['id']}})[_0xe7a6b1('0xc')](handleEntityNotFound(_0x188891,null))[_0xe7a6b1('0xc')](function(_0x13d5e1){const _0x171245=_0xe7a6b1;if(_0x13d5e1)return _0x13d5e1[_0x171245('0x42')](_0x25867e['query'][_0x171245('0xa')])[_0x171245('0xc')](function(){const _0x13bdc0=_0x171245;if(_['isArray'](_0x25867e[_0x13bdc0('0x2f')][_0x13bdc0('0xa')]))for(let _0x199f3e=0x0;_0x199f3e<_0x25867e[_0x13bdc0('0x2f')][_0x13bdc0('0xa')][_0x13bdc0('0x5f')];_0x199f3e+=0x1){socket['emit'](_0x13bdc0('0x5a'),{'UserId':Number(_0x25867e[_0x13bdc0('0x2f')][_0x13bdc0('0xa')][_0x199f3e]),'VoicePrefixId':Number(_0x25867e[_0x13bdc0('0x58')]['id'])});}else socket[_0x13bdc0('0x24')](_0x13bdc0('0x5a'),{'UserId':Number(_0x25867e[_0x13bdc0('0x2f')][_0x13bdc0('0xa')]),'VoicePrefixId':Number(_0x25867e['params']['id'])});});})[_0xe7a6b1('0xc')](respondWithStatusCode(_0x188891,null))['catch'](handleError(_0x188891,null));},exports[_0x2bb85b('0x4c')]=function(_0x2936f5,_0xcc2d0){const _0x419631=_0x2bb85b;let _0x1b0bd4={};const _0x21c536={};let _0x39dd46,_0x2d80cd;return db[_0x419631('0x37')][_0x419631('0x2d')]({'where':{'id':_0x2936f5[_0x419631('0x58')]['id']}})[_0x419631('0xc')](handleEntityNotFound(_0xcc2d0,null))['then'](function(_0x266f8a){const _0x196b85=_0x419631;if(_0x266f8a)return _0x39dd46=_0x266f8a,_0x21c536[_0x196b85('0x57')]=_[_0x196b85('0x51')](db['User'][_0x196b85('0x27')]),_0x21c536[_0x196b85('0x2f')]=_[_0x196b85('0x51')](_0x2936f5[_0x196b85('0x2f')]),_0x21c536[_0x196b85('0x8')]=_[_0x196b85('0x40')](_0x21c536[_0x196b85('0x57')],_0x21c536[_0x196b85('0x2f')]),_0x1b0bd4['attributes']=_['intersection'](_0x21c536[_0x196b85('0x57')],qs['fields'](_0x2936f5[_0x196b85('0x2f')][_0x196b85('0x3e')])),_0x1b0bd4['attributes']=_0x1b0bd4[_0x196b85('0x28')]['length']?_0x1b0bd4[_0x196b85('0x28')]:_0x21c536['model'],_0x1b0bd4[_0x196b85('0x1e')]=qs['sort'](_0x2936f5['query'][_0x196b85('0x48')]),_0x1b0bd4[_0x196b85('0x5b')]=qs[_0x196b85('0x8')](_[_0x196b85('0x49')](_0x2936f5[_0x196b85('0x2f')],_0x21c536['filters'])),_0x2936f5['query'][_0x196b85('0x52')]&&(_0x1b0bd4[_0x196b85('0x5b')]=_[_0x196b85('0x1f')](_0x1b0bd4[_0x196b85('0x5b')],{[Op['or']]:_[_0x196b85('0x4d')](_0x1b0bd4[_0x196b85('0x28')],function(_0x5a32e3){const _0x5caaa8=_0x196b85,_0x34920c={};return _0x34920c[_0x5a32e3]={[Op['like']]:'%'+_0x2936f5[_0x5caaa8('0x2f')][_0x5caaa8('0x52')]+'%'},_0x34920c;})})),_0x1b0bd4=_[_0x196b85('0x1f')]({},_0x1b0bd4,_0x2936f5[_0x196b85('0x45')]),_0x39dd46[_0x196b85('0x4c')](_0x1b0bd4);})[_0x419631('0xc')](function(_0x5c4d5b){const _0x18e1f6=_0x419631;if(_0x5c4d5b)return _0x2d80cd=_0x5c4d5b[_0x18e1f6('0x5f')],typeof _0x2936f5[_0x18e1f6('0x2f')][_0x18e1f6('0x5c')]===_0x18e1f6('0x41')&&(_0x1b0bd4['limit']=qs['limit'](_0x2936f5['query']['limit']),_0x1b0bd4[_0x18e1f6('0x2b')]=qs['offset'](_0x2936f5[_0x18e1f6('0x2f')][_0x18e1f6('0x2b')])),_0x39dd46['getAgents'](_0x1b0bd4);})[_0x419631('0xc')](function(_0x4236f4){if(_0x4236f4)return _0x4236f4?{'count':_0x2d80cd,'rows':_0x4236f4}:null;})['then'](respondWithResult(_0xcc2d0,null))[_0x419631('0x61')](handleError(_0xcc2d0,null));}; \ No newline at end of file +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 diff --git a/server/api/voicePrefix/voicePrefix.events.js b/server/api/voicePrefix/voicePrefix.events.js index 12a291d..f8a788e 100644 --- a/server/api/voicePrefix/voicePrefix.events.js +++ b/server/api/voicePrefix/voicePrefix.events.js @@ -1 +1 @@ -const a747_0x9aef=['addHook','VoicePrefix','update','setMaxListeners','save','exports','undefined','events','emit','remove'];(function(_0x184abb,_0x9aefcb){const _0x254c81=function(_0x486086){while(--_0x486086){_0x184abb['push'](_0x184abb['shift']());}};_0x254c81(++_0x9aefcb);}(a747_0x9aef,0x1f4));const a747_0x254c=function(_0x184abb,_0x9aefcb){_0x184abb=_0x184abb-0x0;let _0x254c81=a747_0x9aef[_0x184abb];return _0x254c81;};const _0x44227e=a747_0x254c;'use strict';const EventEmitter=require(_0x44227e('0x7')),VoicePrefix=require('../../mysqldb')['db'][_0x44227e('0x1')],VoicePrefixEvents=new EventEmitter();VoicePrefixEvents[_0x44227e('0x3')](0x0);const events={'afterCreate':_0x44227e('0x4'),'afterUpdate':_0x44227e('0x2'),'afterDestroy':_0x44227e('0x9')};function emitEvent(_0x486086){return function(_0x28b16c){const _0x2eb07a=a747_0x254c;VoicePrefixEvents['emit'](_0x486086+':'+_0x28b16c['id'],_0x28b16c),VoicePrefixEvents[_0x2eb07a('0x8')](_0x486086,_0x28b16c);};}for(const e in events){if(typeof events[e]!==_0x44227e('0x6')){const event=events[e];VoicePrefix[_0x44227e('0x0')](e,emitEvent(event));}}module[_0x44227e('0x5')]=VoicePrefixEvents; \ No newline at end of file +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 diff --git a/server/api/voicePrefix/voicePrefix.model.js b/server/api/voicePrefix/voicePrefix.model.js index 24853e9..9d1cbc2 100644 --- a/server/api/voicePrefix/voicePrefix.model.js +++ b/server/api/voicePrefix/voicePrefix.model.js @@ -1 +1 @@ -const a748_0x2603=['VoicePrefix','define','exports','voice_prefixes','./voicePrefix.attributes'];(function(_0x34d586,_0x26039a){const _0x51c8ae=function(_0x17be08){while(--_0x17be08){_0x34d586['push'](_0x34d586['shift']());}};_0x51c8ae(++_0x26039a);}(a748_0x2603,0x186));const a748_0x51c8=function(_0x34d586,_0x26039a){_0x34d586=_0x34d586-0x0;let _0x51c8ae=a748_0x2603[_0x34d586];return _0x51c8ae;};const _0xd1c7e6=a748_0x51c8;'use strict';const attributes=require(_0xd1c7e6('0x4'));module[_0xd1c7e6('0x2')]=function(_0x17be08){const _0x54d5a6=_0xd1c7e6,_0x2acc10=_0x17be08[_0x54d5a6('0x1')](_0x54d5a6('0x0'),attributes,{'tableName':_0x54d5a6('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2acc10;}; \ No newline at end of file +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 diff --git a/server/api/voicePrefix/voicePrefix.rpc.js b/server/api/voicePrefix/voicePrefix.rpc.js index 08c3712..ff884f9 100644 --- a/server/api/voicePrefix/voicePrefix.rpc.js +++ b/server/api/voicePrefix/voicePrefix.rpc.js @@ -1 +1 @@ -const a749_0x4547=['register','./voicePrefix.socket','../../rediscache'];(function(_0x23b733,_0x45475a){const _0x597a5f=function(_0x30a5a9){while(--_0x30a5a9){_0x23b733['push'](_0x23b733['shift']());}};_0x597a5f(++_0x45475a);}(a749_0x4547,0x116));const a749_0x597a=function(_0x23b733,_0x45475a){_0x23b733=_0x23b733-0x0;let _0x597a5f=a749_0x4547[_0x23b733];return _0x597a5f;};const _0x516916=a749_0x597a;'use strict';const {getSocket}=require(_0x516916('0x0')),socket=getSocket();require(_0x516916('0x2'))[_0x516916('0x1')](socket); \ No newline at end of file +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 diff --git a/server/api/voicePrefix/voicePrefix.socket.js b/server/api/voicePrefix/voicePrefix.socket.js index 59c8b9a..7c8c9f0 100644 --- a/server/api/voicePrefix/voicePrefix.socket.js +++ b/server/api/voicePrefix/voicePrefix.socket.js @@ -1 +1 @@ -const a750_0x4a7c=['length','remove','register','update','./voicePrefix.events','save'];(function(_0x3aad1c,_0x4a7cbf){const _0x14090e=function(_0x30ee69){while(--_0x30ee69){_0x3aad1c['push'](_0x3aad1c['shift']());}};_0x14090e(++_0x4a7cbf);}(a750_0x4a7c,0x1e4));const a750_0x1409=function(_0x3aad1c,_0x4a7cbf){_0x3aad1c=_0x3aad1c-0x0;let _0x14090e=a750_0x4a7c[_0x3aad1c];return _0x14090e;};const _0x4e00ee=a750_0x1409;'use strict';const VoicePrefixEvents=require(_0x4e00ee('0x0')),events=[_0x4e00ee('0x1'),_0x4e00ee('0x3'),_0x4e00ee('0x5')];function createListener(_0x30ee69,_0x5e6474){return function(_0x153d42){_0x5e6474['emit'](_0x30ee69,_0x153d42);};}exports[_0x4e00ee('0x4')]=function(_0x2d0c56){const _0x2181a4=_0x4e00ee;for(let _0x2266e2=0x0,_0x2b8777=events[_0x2181a4('0x2')];_0x2266e2<_0x2b8777;_0x2266e2++){const _0x374c7d=events[_0x2266e2],_0x2adafe=createListener('voicePrefix:'+_0x374c7d,_0x2d0c56);VoicePrefixEvents['on'](_0x374c7d,_0x2adafe);}}; \ No newline at end of file +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 diff --git a/server/api/voiceQueue/index.js b/server/api/voiceQueue/index.js index ebf2902..dbce634 100644 --- a/server/api/voiceQueue/index.js +++ b/server/api/voiceQueue/index.js @@ -1 +1 @@ -const a751_0x367c=['/:id/hopper_black','addTeams','post','getHopperBlacks','update','/:id/clone','/:id','isAuthenticated','getLists','exports','/:id/users','./voiceQueue.controller','index','get','delete','removeTeams','addBlackLists','getAgents','addAgents','show','/:id/blacklists','/:id/lists','/:id/teams','getBlackLists','/:id/hopper_histories','destroy','express','../../components/auth/service','removeBlackLists','/:id/hopper_finals','clone','create','getTeams','/:id/members'];(function(_0x5894c6,_0x367c8c){const _0x1d4f95=function(_0x365032){while(--_0x365032){_0x5894c6['push'](_0x5894c6['shift']());}};_0x1d4f95(++_0x367c8c);}(a751_0x367c,0x6f));const a751_0x1d4f=function(_0x5894c6,_0x367c8c){_0x5894c6=_0x5894c6-0x0;let _0x1d4f95=a751_0x367c[_0x5894c6];return _0x1d4f95;};const _0x95181e=a751_0x1d4f;'use strict';const express=require(_0x95181e('0x11')),router=express['Router'](),auth=require(_0x95181e('0x12')),controller=require(_0x95181e('0x2'));router[_0x95181e('0x4')]('/',auth[_0x95181e('0x20')](),controller[_0x95181e('0x3')]),router['get'](_0x95181e('0x1f'),auth[_0x95181e('0x20')](),controller[_0x95181e('0xa')]),router[_0x95181e('0x4')]('/:id/hoppers',auth['isAuthenticated'](),controller['getHoppers']),router[_0x95181e('0x4')](_0x95181e('0xf'),auth[_0x95181e('0x20')](),controller['getHopperHistories']),router[_0x95181e('0x4')](_0x95181e('0x14'),auth[_0x95181e('0x20')](),controller['getHopperFinals']),router[_0x95181e('0x4')](_0x95181e('0x19'),auth[_0x95181e('0x20')](),controller[_0x95181e('0x1c')]),router[_0x95181e('0x4')](_0x95181e('0xd'),auth[_0x95181e('0x20')](),controller[_0x95181e('0x17')]),router[_0x95181e('0x4')](_0x95181e('0x1'),auth[_0x95181e('0x20')](),controller[_0x95181e('0x8')]),router['get'](_0x95181e('0x18'),auth['isAuthenticated'](),controller['getMembers']),router[_0x95181e('0x4')](_0x95181e('0xc'),auth[_0x95181e('0x20')](),controller[_0x95181e('0x21')]),router[_0x95181e('0x4')](_0x95181e('0xb'),auth[_0x95181e('0x20')](),controller[_0x95181e('0xe')]),router['post']('/',auth[_0x95181e('0x20')](),controller[_0x95181e('0x16')]),router['post'](_0x95181e('0x1e'),auth[_0x95181e('0x20')](),controller[_0x95181e('0x15')]),router[_0x95181e('0x1b')](_0x95181e('0xd'),auth[_0x95181e('0x20')](),controller[_0x95181e('0x1a')]),router[_0x95181e('0x1b')](_0x95181e('0x1'),auth[_0x95181e('0x20')](),controller[_0x95181e('0x9')]),router['post'](_0x95181e('0xc'),auth['isAuthenticated'](),controller['addLists']),router['post'](_0x95181e('0xb'),auth[_0x95181e('0x20')](),controller[_0x95181e('0x7')]),router['put']('/:id',auth['isAuthenticated'](),controller[_0x95181e('0x1d')]),router[_0x95181e('0x5')](_0x95181e('0x1f'),auth[_0x95181e('0x20')](),controller[_0x95181e('0x10')]),router[_0x95181e('0x5')]('/:id/teams',auth[_0x95181e('0x20')](),controller[_0x95181e('0x6')]),router['delete'](_0x95181e('0x1'),auth[_0x95181e('0x20')](),controller['removeAgents']),router[_0x95181e('0x5')](_0x95181e('0xc'),auth[_0x95181e('0x20')](),controller['removeLists']),router[_0x95181e('0x5')](_0x95181e('0xb'),auth[_0x95181e('0x20')](),controller[_0x95181e('0x13')]),module[_0x95181e('0x0')]=router; \ No newline at end of file +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 diff --git a/server/api/voiceQueue/voiceQueue.attributes.js b/server/api/voiceQueue/voiceQueue.attributes.js index a1cea9b..13bc50f 100644 --- a/server/api/voiceQueue/voiceQueue.attributes.js +++ b/server/api/voiceQueue/voiceQueue.attributes.js @@ -1 +1 @@ -const a752_0x21cd=['AGI\x20queue\x20option\x20(use:\x20agi://127.0.0.1/square,)','strategy','leastrecent','all','UNSIGNED','Drop\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','STRING','ASC','INTEGER','outbound','fewestcalls','#RecallMe\x20Timeout\x20(min:1)','agentBusyFactor','name','NoAnswer\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#Machine\x20Retry\x20(min:1,\x20max:999)','#AMD\x20Min\x20Word\x20Length','Interval\x20Predictive\x20Minutes\x20(min:5\x20max:30)','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','AgentReject\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','Only\x20for\x20predictive\x20method.','inbound','getDataValue','#AgentReject\x20Retry\x20(min:1,\x20max:999)','wrapuptime','leavewhenempty','TEXT','acw','sequelize','Congestion\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#AMD\x20Between\x20Words\x20Silence','yes','#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)','#Drop\x20Retry\x20(min:1,\x20max:999)','#Abandoned\x20Retry\x20(min:1,\x20max:999)','predictive','rrmemory','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','Abandoned\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','Active/Disactive\x20AMD','#Congestion\x20Retry\x20(min:1,\x20max:999)','dropRate','#AMD\x20Greeting','https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Queue','joinempty','progressive','linear','booked','split','#Busy\x20Retry\x20(min:1,\x20max:999)','Machine\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','setDataValue','onlyIfOpen','exports','#AMD\x20Total\x20Analysis\x20Time','ringall','#AMD\x20After\x20Greeting\x20Silence','never','ENUM','#NoAnswer\x20Retry\x20(min:1,\x20max:999)','#Global\x20Max\x20Retry\x20(min:1,\x20max:999)','NoSuchNumber\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','Max\x209999\x20member\x20in\x20queue(min:1,\x20max:9999),\x200\x20means\x20unlimited.','BOOLEAN','DESC','#AMD\x20Maximum\x20Word\x20Length','FLOAT','periodic_announce','mandatoryDispositionPauseId','power','join','Max\x209999\x20channels,\x200\x20means\x20unlimited.','Predictive\x20Optimization\x20Percentage\x20(min:\x201,\x20max:\x2095)','Cut\x20Digit\x20(min:1,\x20max:15)','rrordered','07:00-22:00,*,*,*'];(function(_0x36c57a,_0x21cd81){const _0xd95b03=function(_0x169131){while(--_0x169131){_0x36c57a['push'](_0x36c57a['shift']());}};_0xd95b03(++_0x21cd81);}(a752_0x21cd,0x17b));const a752_0xd95b=function(_0x36c57a,_0x21cd81){_0x36c57a=_0x36c57a-0x0;let _0xd95b03=a752_0x21cd[_0x36c57a];return _0xd95b03;};const _0x448262=a752_0xd95b;'use strict';const Sequelize=require(_0x448262('0x1d'));module[_0x448262('0x36')]={'name':{'type':Sequelize[_0x448262('0x7')],'allowNull':![],'unique':_0x448262('0xe'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'type':{'type':Sequelize[_0x448262('0x3b')](_0x448262('0x16'),_0x448262('0xa')),'allowNull':![],'defaultValue':_0x448262('0x16')},'musiconhold':{'type':Sequelize[_0x448262('0x7')],'defaultValue':'default'},'announce':{'type':Sequelize[_0x448262('0x7')],'defaultValue':''},'strategy':{'type':Sequelize['ENUM']('rr',_0x448262('0x38'),_0x448262('0x3'),_0x448262('0xb'),'random',_0x448262('0x25'),_0x448262('0x2f'),'wrandom',_0x448262('0x4b')),'allowNull':![],'defaultValue':'ringall','set':function(_0x169131){const _0x3c6ec5=_0x448262;this[_0x3c6ec5('0x34')](_0x3c6ec5('0x2'),_0x169131?_0x169131:_0x3c6ec5('0x25'));},'get':function(){const _0x46b77b=_0x448262,_0x471a58=this['getDataValue']('type'),_0x389f4a=this[_0x46b77b('0x17')]('dialMethod'),_0x365014=this[_0x46b77b('0x17')](_0x46b77b('0x2'));if(_0x471a58===_0x46b77b('0x16'))return _0x365014;if(_0x389f4a==='booked'&&_0x365014===_0x46b77b('0x25')||_0x389f4a===_0x46b77b('0x30')&&_0x365014==='roundrobin')return _0x365014;if(_0x389f4a===_0x46b77b('0x2e')||_0x389f4a===_0x46b77b('0x24')||_0x389f4a===_0x46b77b('0x46'))return _0x365014;return null;}},'servicelevel':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x0},'context':{'type':Sequelize['STRING'],'defaultValue':null},'penaltymemberslimit':{'type':Sequelize[_0x448262('0x9')](0xb)},'timeout':{'type':Sequelize[_0x448262('0x9')](0xb),'defaultValue':0xf},'retry':{'type':Sequelize[_0x448262('0x9')](0xb),'defaultValue':0x2},'timeoutpriority':{'type':Sequelize[_0x448262('0x7')]},'weight':{'type':Sequelize[_0x448262('0x9')](0xb),'allowNull':!![],'defaultValue':0x0},'wrapuptime':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x0},'autofill':{'type':Sequelize['ENUM'](_0x448262('0x20'),'no'),'defaultValue':_0x448262('0x20')},'autopause':{'type':Sequelize[_0x448262('0x3b')](_0x448262('0x20'),'no',_0x448262('0x4')),'defaultValue':'no'},'autopausedelay':{'type':Sequelize[_0x448262('0x9')](0xb)},'autopausebusy':{'type':Sequelize['ENUM']('yes','no'),'defaultValue':'no'},'autopauseunavail':{'type':Sequelize[_0x448262('0x3b')](_0x448262('0x20'),'no'),'defaultValue':'no'},'maxlen':{'type':Sequelize[_0x448262('0x9')](0xb),'defaultValue':0x0},'setinterfacevar':{'type':Sequelize['ENUM'](_0x448262('0x20'),'no'),'defaultValue':'no'},'setqueueentryvar':{'type':Sequelize[_0x448262('0x3b')](_0x448262('0x20'),'no'),'defautValue':'no'},'setqueuevar':{'type':Sequelize[_0x448262('0x3b')](_0x448262('0x20'),'no'),'defaultValue':'no'},'eventmemberstatus':{'type':Sequelize[_0x448262('0x3b')](_0x448262('0x20'),'no'),'defaultValue':'no'},'membermacro':{'type':Sequelize['STRING'],'allowNull':!![]},'membergosub':{'type':Sequelize[_0x448262('0x7')],'allowNull':!![]},'announce_frequency':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x0},'min_announce_frequency':{'type':Sequelize[_0x448262('0x9')](0xb),'defaultValue':0x0},'periodic_announce_frequency':{'type':Sequelize[_0x448262('0x9')](0xb),'defaultValue':0x0},'random_periodic_announce':{'type':Sequelize[_0x448262('0x3b')](_0x448262('0x20'),'no'),'defaultValue':'no'},'relative_periodic_announce':{'type':Sequelize[_0x448262('0x3b')]('yes','no'),'defaultValue':_0x448262('0x20')},'announce_holdtime':{'type':Sequelize[_0x448262('0x3b')](_0x448262('0x20'),'no','once'),'defaultValue':'no'},'announce_position':{'type':Sequelize[_0x448262('0x7')],'defaultValue':'no'},'announce_to_first_user':{'type':Sequelize[_0x448262('0x3b')]('yes','no')},'announce_position_limit':{'type':Sequelize[_0x448262('0x9')](0xb)},'announce_round_seconds':{'type':Sequelize['ENUM']('0','5','10','15','20','30'),'defaultValue':'0'},'monitor_format':{'type':Sequelize[_0x448262('0x7')],'defaultValue':''},'monitor_type':{'type':Sequelize[_0x448262('0x7')]},'queue_youarenext':{'type':Sequelize[_0x448262('0x7')],'defaultValue':null},'queue_thereare':{'type':Sequelize['STRING'],'defaultValue':null},'queue_callswaiting':{'type':Sequelize['STRING'],'defaultValue':null},'queue_holdtime':{'type':Sequelize[_0x448262('0x7')],'defaultValue':null},'queue_minute':{'type':Sequelize[_0x448262('0x7')],'allowNull':!![],'defaultValue':null},'queue_minutes':{'type':Sequelize[_0x448262('0x7')],'defaultValue':null},'queue_seconds':{'type':Sequelize['STRING'],'defaultValue':null},'queue_thankyou':{'type':Sequelize[_0x448262('0x7')],'defaultValue':null},'queue_reporthold':{'type':Sequelize[_0x448262('0x7')]},'queue_quantity1':{'type':Sequelize[_0x448262('0x7')]},'queue_quantity2':{'type':Sequelize[_0x448262('0x7')]},'queue_periodic_announce':{'type':Sequelize[_0x448262('0x7')]},'queue_less_than':{'type':Sequelize[_0x448262('0x7')]},'periodic_announce':{'type':Sequelize[_0x448262('0x1b')],'set':function(_0x1bb02d){const _0x5292be=_0x448262;this[_0x5292be('0x34')]('periodic_announce',_0x1bb02d?_0x1bb02d[_0x5292be('0x47')](','):[]);},'get':function(){const _0x307018=_0x448262;return this[_0x307018('0x17')](_0x307018('0x44'))?this[_0x307018('0x17')](_0x307018('0x44'))[_0x307018('0x31')](','):[];}},'joinempty':{'type':Sequelize[_0x448262('0x7')],'defaultValue':_0x448262('0x20'),'set':function(_0x3b4c){const _0x44be9a=_0x448262;this[_0x44be9a('0x34')](_0x44be9a('0x2d'),_0x3b4c?_0x3b4c['join'](','):undefined);},'get':function(){const _0x130733=_0x448262;return this[_0x130733('0x17')](_0x130733('0x2d'))?this['getDataValue'](_0x130733('0x2d'))['split'](','):undefined;}},'leavewhenempty':{'type':Sequelize['STRING'],'defaultValue':'no','set':function(_0x53f84b){const _0x25cb42=_0x448262;this[_0x25cb42('0x34')](_0x25cb42('0x1a'),_0x53f84b?_0x53f84b['join'](','):undefined);},'get':function(){const _0x37d3e9=_0x448262;return this[_0x37d3e9('0x17')](_0x37d3e9('0x1a'))?this[_0x37d3e9('0x17')](_0x37d3e9('0x1a'))[_0x37d3e9('0x31')](','):undefined;}},'reportholdtime':{'type':Sequelize['ENUM']('yes','no'),'defaultValue':'no'},'ringinuse':{'type':Sequelize['ENUM']('yes','no'),'defaultValue':'no'},'memberdelay':{'type':Sequelize[_0x448262('0x9')](0xb),'defaultValue':0x0},'timeoutrestart':{'type':Sequelize[_0x448262('0x3b')](_0x448262('0x20'),'no'),'defaultValue':'no'},'defaultrule':{'type':Sequelize[_0x448262('0x7')]},'description':{'type':Sequelize['STRING']},'acw':{'type':Sequelize[_0x448262('0x40')],'defaultValue':0x0,'set':function(_0xb55544){const _0x5767fa=_0x448262;this[_0x5767fa('0x34')](_0x5767fa('0x1c'),_0xb55544),_0xb55544&&(this[_0x5767fa('0x17')](_0x5767fa('0x19'))<0x2&&this[_0x5767fa('0x34')](_0x5767fa('0x19'),0x2));}},'acwTimeout':{'type':Sequelize[_0x448262('0x9')](0xb),'defaultValue':0xa},'dialActive':{'type':Sequelize[_0x448262('0x40')],'defaultValue':0x0,'comment':'Active/Disactive\x20Campaign'},'dialMethod':{'type':Sequelize[_0x448262('0x3b')]('preview',_0x448262('0x2e'),_0x448262('0x46'),_0x448262('0x24'),_0x448262('0x30')),'defaultValue':_0x448262('0x2e'),'comment':'Dial\x20Method.'},'dialLimitChannel':{'type':Sequelize[_0x448262('0x9')](0x4)[_0x448262('0x5')],'defaultValue':0x0,'validate':{'min':0x0,'max':0x270f},'comment':_0x448262('0x48')},'dialLimitQueue':{'type':Sequelize['INTEGER'](0x4)[_0x448262('0x5')],'defaultValue':0x0,'validate':{'min':0x0,'max':0x270f},'comment':_0x448262('0x3f')},'dialPowerLevel':{'type':Sequelize[_0x448262('0x43')](0x2)[_0x448262('0x5')],'defaultValue':0x1,'validate':{'min':0x1,'max':0xa},'comment':'Power\x20Level:\x20Calls\x20for\x20agents\x20(min:1,\x20max:10).'},'dialPredictiveOptimization':{'type':Sequelize['ENUM'](_0x448262('0xd'),_0x448262('0x2a')),'defaultValue':_0x448262('0x2a'),'comment':_0x448262('0x15')},'dialPredictiveOptimizationPercentage':{'type':Sequelize[_0x448262('0x43')](0x2)[_0x448262('0x5')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5f},'comment':_0x448262('0x49')},'dialPredictiveInterval':{'type':Sequelize[_0x448262('0x9')](0x3)[_0x448262('0x5')],'defaultValue':0xa,'validate':{'min':0x5,'max':0x1e},'comment':_0x448262('0x12')},'dialOriginateCallerIdName':{'type':Sequelize[_0x448262('0x7')]},'dialOriginateCallerIdNumber':{'type':Sequelize[_0x448262('0x7')]},'dialOriginateTimeout':{'type':Sequelize[_0x448262('0x9')](0x3)[_0x448262('0x5')],'defaultValue':0x1e,'validate':{'min':0x1,'max':0x3e7},'comment':'Originate\x20Timeout\x20Seconds\x20(min:1,\x20max:999)'},'dialQueueOptions':{'type':Sequelize[_0x448262('0x7')],'defaultValue':'tTxX','comment':_0x448262('0x2c')},'dialQueueTimeout':{'type':Sequelize[_0x448262('0x9')](0x3)[_0x448262('0x5')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x448262('0x13')},'dialQueueProject':{'type':Sequelize[_0x448262('0x7')],'comment':_0x448262('0x1')},'dialCongestionMaxRetry':{'type':Sequelize[_0x448262('0x9')](0x3)[_0x448262('0x5')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x448262('0x29')},'dialCongestionRetryFrequency':{'type':Sequelize['INTEGER'](0x5)[_0x448262('0x5')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x448262('0x1e')},'dialBusyMaxRetry':{'type':Sequelize[_0x448262('0x9')](0x3)[_0x448262('0x5')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x448262('0x32')},'dialBusyRetryFrequency':{'type':Sequelize[_0x448262('0x9')](0x5)[_0x448262('0x5')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'Busy\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialNoAnswerMaxRetry':{'type':Sequelize[_0x448262('0x9')](0x3)[_0x448262('0x5')],'defaultValue':0x3,'comment':_0x448262('0x3c')},'dialNoAnswerRetryFrequency':{'type':Sequelize[_0x448262('0x9')](0x5)[_0x448262('0x5')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x448262('0xf')},'dialGlobalMaxRetry':{'type':Sequelize[_0x448262('0x9')](0x3)['UNSIGNED'],'validate':{'min':0x1,'max':0x3e7},'defaultValue':0x4,'comment':_0x448262('0x3d')},'dialTimezone':{'type':Sequelize[_0x448262('0x7')],'defaultValue':null},'dialGlobalInterval':{'type':Sequelize[_0x448262('0x7')],'defaultValue':_0x448262('0x0')},'dialPrefix':{'type':Sequelize[_0x448262('0x7')],'defaultValue':null},'dialCheckDuplicateType':{'type':Sequelize[_0x448262('0x3b')]('always',_0x448262('0x3a'),_0x448262('0x35')),'defaultValue':'always'},'dialAMDActive':{'type':Sequelize['BOOLEAN'],'defaultValue':0x0,'comment':_0x448262('0x28')},'dialAMDInitialSilence':{'type':Sequelize['INTEGER'](0x9)['UNSIGNED'],'defaultValue':0x9c4,'validate':{'min':0x0},'comment':'#AMD\x20Initial\x20Silence'},'dialAMDGreeting':{'type':Sequelize[_0x448262('0x9')](0x9)['UNSIGNED'],'defaultValue':0x5dc,'validate':{'min':0x0},'comment':_0x448262('0x2b')},'dialAMDAfterGreetingSilence':{'type':Sequelize[_0x448262('0x9')](0x9)[_0x448262('0x5')],'defaultValue':0x320,'validate':{'min':0x0},'comment':_0x448262('0x39')},'dialAMDTotalAnalysisTime':{'type':Sequelize[_0x448262('0x9')](0x9)['UNSIGNED'],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0x448262('0x37')},'dialAMDMinWordLength':{'type':Sequelize['INTEGER'](0x9)[_0x448262('0x5')],'defaultValue':0x64,'validate':{'min':0x0},'comment':_0x448262('0x11')},'dialAMDBetweenWordsSilence':{'type':Sequelize['INTEGER'](0x9)['UNSIGNED'],'defaultValue':0x32,'validate':{'min':0x0},'comment':_0x448262('0x1f')},'dialAMDMaximumNumberOfWords':{'type':Sequelize[_0x448262('0x9')](0x9)[_0x448262('0x5')],'defaultValue':0x3,'validate':{'min':0x0},'comment':'#AMD\x20Maximum\x20Number\x20Of\x20Words'},'dialAMDSilenceThreshold':{'type':Sequelize[_0x448262('0x9')](0x5)['UNSIGNED'],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0x448262('0x21')},'dialAMDMaximumWordLength':{'type':Sequelize[_0x448262('0x9')](0x9)[_0x448262('0x5')],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0x448262('0x42')},'dialRecallMeTimeout':{'type':Sequelize['INTEGER'](0x5)[_0x448262('0x5')],'validate':{'min':0x1},'defaultValue':0x1e,'comment':_0x448262('0xc')},'dialRecallInQueue':{'type':Sequelize['BOOLEAN'],'defaultValue':0x0,'comment':'Active/Disactive\x20Recall\x20In\x20Queue'},'dialOrderByScheduledAt':{'type':Sequelize[_0x448262('0x3b')](_0x448262('0x41'),_0x448262('0x8')),'defaultValue':_0x448262('0x41')},'dialQueueProject2':{'type':Sequelize['STRING'],'comment':_0x448262('0x1')},'dialAgiAfterHangupClient':{'type':Sequelize[_0x448262('0x40')],'defaultValue':![]},'dialAgiAfterHangupAgent':{'type':Sequelize[_0x448262('0x40')],'defaultValue':![]},'dialRandomLastDigitCallerIdNumber':{'type':Sequelize[_0x448262('0x9')](0x3)[_0x448262('0x5')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':'Random\x20Last\x20Digit\x20(min:1,\x20max:15)'},'dialCutDigit':{'type':Sequelize[_0x448262('0x9')](0x3)['UNSIGNED'],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0x448262('0x4a')},'dialNoSuchNumberMaxRetry':{'type':Sequelize[_0x448262('0x9')](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#NoSuchNumber\x20Retry\x20(min:1,\x20max:999)'},'dialNoSuchNumberRetryFrequency':{'type':Sequelize['INTEGER'](0x5)[_0x448262('0x5')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x448262('0x3e')},'dialDropMaxRetry':{'type':Sequelize[_0x448262('0x9')](0x3)[_0x448262('0x5')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x448262('0x22')},'dialDropRetryFrequency':{'type':Sequelize[_0x448262('0x9')](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x448262('0x6')},'dialAbandonedMaxRetry':{'type':Sequelize[_0x448262('0x9')](0x3)[_0x448262('0x5')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x448262('0x23')},'dialAbandonedRetryFrequency':{'type':Sequelize[_0x448262('0x9')](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x448262('0x27')},'dialMachineMaxRetry':{'type':Sequelize[_0x448262('0x9')](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x448262('0x10')},'dialMachineRetryFrequency':{'type':Sequelize[_0x448262('0x9')](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x448262('0x33')},'dialAgentRejectMaxRetry':{'type':Sequelize[_0x448262('0x9')](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x448262('0x18')},'dialAgentRejectRetryFrequency':{'type':Sequelize[_0x448262('0x9')](0x5)[_0x448262('0x5')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x448262('0x14')},'mandatoryDispositionPauseId':{'type':Sequelize[_0x448262('0x9')],'allowNull':!![],'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':_0x448262('0x26'),'set':function(_0x28f539){const _0x4d66ab=_0x448262;if(!_0x28f539)this[_0x4d66ab('0x34')](_0x4d66ab('0x45'),null);this[_0x4d66ab('0x34')]('mandatoryDisposition',_0x28f539);}},'dialPredictiveIntervalMaxThreshold':{'type':Sequelize[_0x448262('0x9')](0x3)[_0x448262('0x5')],'defaultValue':0x14,'validate':{'min':0x1,'max':0x64}},'dialPredictiveIntervalMinThreshold':{'type':Sequelize['INTEGER'](0x3)[_0x448262('0x5')],'defaultValue':0xa,'validate':{'min':0x1,'max':0x64}}}; \ No newline at end of file +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 diff --git a/server/api/voiceQueue/voiceQueue.controller.js b/server/api/voiceQueue/voiceQueue.controller.js index c5dabf8..664e4d6 100644 --- a/server/api/voiceQueue/voiceQueue.controller.js +++ b/server/api/voiceQueue/voiceQueue.controller.js @@ -1 +1 @@ -const a753_0x30b3=['./voiceQueue.socket','sort','undefined','online','send','ContactId','updatedAt','status','tq.TeamId','each','every','cm_contacts','COALESCE(phone,\x27\x27)','rawAttributes','addAgents','transaction','error','autoAssociation','keys','VoiceQueueId\x20=\x20?','fieldName','lodash','get','length','../../config/logger','key','where','cm_hopper','removeAgents','update','map','union','upsert','penalty','QueueCampaigns','order','findAll','QueryTypes','phone','set','createdAt','getHoppers','value','SIP/%s','pick','isEmpty','merge','isNil','UserProfileSection','clone','role','CmList','select','removeTeams','includes','Team','NOW()','../../components/parsers/qs','util','phone\x20IS\x20NOT\x20NULL','COALESCE(calleridnum,\x27\x27)','show','VoiceQueues','ut.UserId\x20=\x20?','getMembers','ut.TeamId\x20=\x20tq.TeamId','user','getHopperFinals','userVoiceQueue:remove','rows','removeBlackLists','user_has_teams','query','addLists','then','deletedAt\x20IS\x20NULL','ListId','destroy','end','inbound','format','json','sendStatus','offset','sequelize','findOrCreate','../../rediscache','toString','create','catch','phone\x20NOT\x20IN\x20(?)','SELECT','into','api','squel','CmHopperFinal','register','addTeams','limit','options','findOne','index','like','interface','model','ids','team_has_voice_queues','User','UserProfileResource','../../mysqldb','includeAll','insert','from','find','outbound','getHopperBlacks','push','all','Agents','intersection','filters','join','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','VoiceQueueId','dialCheckDuplicateType','getAgents','VoiceQueue','attributes','CmHopper','userProfileId','CmListId','field','onlyIfOpen','name','CmHopperBlack','omit','ListId\x20=\x20?','filter','getTeams','include','UserVoiceQueue','isArray','params','always','addBlackLists','body','type','forEach','getLists','voicePause','stack','UserVoiceQueueRt','nolimit','emit','userVoiceQueue:save','getBlackLists','scheduledAt','Content-Range','fromQuery','count','fields','cm_hopper_black','getHopperHistories'];(function(_0x110274,_0x30b38b){const _0x3c956d=function(_0x23583c){while(--_0x23583c){_0x110274['push'](_0x110274['shift']());}};_0x3c956d(++_0x30b38b);}(a753_0x30b3,0xa1));const a753_0x3c95=function(_0x110274,_0x30b38b){_0x110274=_0x110274-0x0;let _0x3c956d=a753_0x30b3[_0x110274];return _0x3c956d;};const _0x32a5c2=a753_0x3c95;'use strict';const util=require(_0x32a5c2('0x3c')),_=require(_0x32a5c2('0x17')),squel=require(_0x32a5c2('0x60')),qs=require(_0x32a5c2('0x3b')),logger=require(_0x32a5c2('0x1a'))(_0x32a5c2('0x5f')),{getSocket}=require(_0x32a5c2('0x58')),socket=getSocket(),db=require(_0x32a5c2('0x6f'))['db'],{Op}=require(_0x32a5c2('0x56'));require(_0x32a5c2('0x2'))[_0x32a5c2('0x62')](socket);function respondWithStatusCode(_0x23583c,_0x4eedc5){return _0x4eedc5=_0x4eedc5||0xcc,function(_0x43f4d7){const _0x56fc1a=a753_0x3c95;if(_0x43f4d7)return _0x23583c[_0x56fc1a('0x54')](_0x4eedc5);return _0x23583c[_0x56fc1a('0x9')](_0x4eedc5)[_0x56fc1a('0x50')]();};}function respondWithResult(_0x389768,_0x57c7fb){return _0x57c7fb=_0x57c7fb||0xc8,function(_0x379098){const _0xd55b94=a753_0x3c95;if(_0x379098)return _0x389768[_0xd55b94('0x9')](_0x57c7fb)[_0xd55b94('0x53')](_0x379098);};}function respondWithFilteredResult(_0xe163ec,_0x32c857){return function(_0x5ab085){const _0x3b7b33=a753_0x3c95;if(_0x5ab085){const _0x38d3b1=_0x5ab085[_0x3b7b33('0xa1')],_0x31aaf6=_0x32c857[_0x3b7b33('0x55')];let _0x1e61aa=_0x32c857['offset']+_0x32c857[_0x3b7b33('0x64')],_0x4ad86a;return _0x1e61aa>=_0x38d3b1?(_0x1e61aa=_0x38d3b1,_0x4ad86a=0xc8):_0x4ad86a=0xce,_0xe163ec[_0x3b7b33('0x9')](_0x4ad86a),_0xe163ec[_0x3b7b33('0x29')](_0x3b7b33('0x9f'),_0x31aaf6+'-'+_0x1e61aa+'/'+_0x38d3b1)[_0x3b7b33('0x53')](_0x5ab085);}return null;};}function saveUpdates(_0x4445bb){return function(_0x50867b){const _0x2fdd97=a753_0x3c95;if(_0x50867b)return _0x50867b[_0x2fdd97('0x1f')](_0x4445bb)[_0x2fdd97('0x4c')](function(_0x4ed18a){return _0x4ed18a;});return null;};}function removeEntity(_0x560db4){return function(_0x2beab1){const _0x180de0=a753_0x3c95;if(_0x2beab1)return _0x2beab1['destroy']()[_0x180de0('0x4c')](function(){const _0x25faf7=_0x180de0,_0x5b327e=_0x2beab1[_0x25faf7('0x18')]({'plain':!![]}),_0x196afe=[{'name':'VoiceQueues','value':'inbound','ignore':![]},{'name':_0x25faf7('0x24'),'value':_0x25faf7('0x74'),'ignore':![]}],_0x4c4c6d=_(_0x196afe)[_0x25faf7('0x8b')]('ignore')[_0x25faf7('0x20')](_0x25faf7('0x2c'))['value']();if(_[_0x25faf7('0x38')](_0x4c4c6d,_0x5b327e[_0x25faf7('0x94')]))return;const _0xf6c15d=_[_0x25faf7('0x73')](_0x196afe,[_0x25faf7('0x2c'),_0x5b327e[_0x25faf7('0x94')]])[_0x25faf7('0x87')];return db['UserProfileResource']['destroy']({'where':{'type':_0xf6c15d,'resourceId':_0x5b327e['id']}})[_0x25faf7('0x4c')](function(){return _0x2beab1;});})['then'](function(){const _0x4f04ca=_0x180de0;_0x560db4[_0x4f04ca('0x9')](0xcc)['end']();});};}function handleEntityNotFound(_0x3abebe){return function(_0x383c69){const _0x21f79b=a753_0x3c95;return!_0x383c69&&_0x3abebe[_0x21f79b('0x54')](0x194),_0x383c69;};}function handleError(_0x139dff,_0x1b1b50){return _0x1b1b50=_0x1b1b50||0x1f4,function(_0xbcc572){const _0x56ba25=a753_0x3c95;logger['error'](_0xbcc572[_0x56ba25('0x98')]),_0xbcc572[_0x56ba25('0x87')]&&delete _0xbcc572['name'],_0x139dff['status'](_0x1b1b50)[_0x56ba25('0x6')](_0xbcc572);};}exports[_0x32a5c2('0x67')]=function(_0x561da2,_0x562b9b){const _0x4f9b7f=_0x32a5c2;let _0x2836e0={};const _0x2dbc82={},_0xfb9a9={'count':0x0,'rows':[]},_0x3717e8=_['map'](db[_0x4f9b7f('0x80')]['rawAttributes'],function(_0x566e62){const _0x212918=_0x4f9b7f;return{'name':_0x566e62[_0x212918('0x16')],'type':_0x566e62[_0x212918('0x94')][_0x212918('0x1b')]};});_0x2dbc82[_0x4f9b7f('0x6a')]=_[_0x4f9b7f('0x20')](_0x3717e8,'name'),_0x2dbc82[_0x4f9b7f('0x4a')]=_[_0x4f9b7f('0x14')](_0x561da2[_0x4f9b7f('0x4a')]),_0x2dbc82[_0x4f9b7f('0x7a')]=_[_0x4f9b7f('0x79')](_0x2dbc82[_0x4f9b7f('0x6a')],_0x2dbc82['query']),_0x2836e0[_0x4f9b7f('0x81')]=_['intersection'](_0x2dbc82[_0x4f9b7f('0x6a')],qs[_0x4f9b7f('0xa2')](_0x561da2[_0x4f9b7f('0x4a')]['fields'])),_0x2836e0[_0x4f9b7f('0x81')]=_0x2836e0[_0x4f9b7f('0x81')]['length']?_0x2836e0['attributes']:_0x2dbc82['model'];typeof _0x561da2[_0x4f9b7f('0x4a')][_0x4f9b7f('0x9a')]===_0x4f9b7f('0x4')&&(_0x2836e0[_0x4f9b7f('0x64')]=qs[_0x4f9b7f('0x64')](_0x561da2[_0x4f9b7f('0x4a')][_0x4f9b7f('0x64')]),_0x2836e0['offset']=qs['offset'](_0x561da2['query'][_0x4f9b7f('0x55')]));_0x2836e0['order']=qs[_0x4f9b7f('0x3')](_0x561da2['query'][_0x4f9b7f('0x3')]),_0x2836e0['where']=qs['filters'](_[_0x4f9b7f('0x2e')](_0x561da2[_0x4f9b7f('0x4a')],_0x2dbc82[_0x4f9b7f('0x7a')]),_0x3717e8);_0x561da2[_0x4f9b7f('0x4a')][_0x4f9b7f('0x8b')]&&(_0x2836e0['where']=_[_0x4f9b7f('0x30')](_0x2836e0[_0x4f9b7f('0x1c')],{[Op['or']]:_[_0x4f9b7f('0x20')](_0x3717e8,function(_0x32a043){const _0x4589f9=_0x4f9b7f;if(_0x32a043['type']!=='VIRTUAL'){const _0x4cf0cf={};return _0x4cf0cf[_0x32a043['name']]={[Op[_0x4589f9('0x68')]]:'%'+_0x561da2[_0x4589f9('0x4a')][_0x4589f9('0x8b')]+'%'},_0x4cf0cf;}})}));_0x2836e0=_[_0x4f9b7f('0x30')]({},_0x2836e0,_0x561da2[_0x4f9b7f('0x65')]);const _0x1067f3={'where':_0x2836e0[_0x4f9b7f('0x1c')]};return db[_0x4f9b7f('0x80')]['count'](_0x1067f3)[_0x4f9b7f('0x4c')](function(_0x110f20){const _0x1b6e1f=_0x4f9b7f;return _0xfb9a9['count']=_0x110f20,_0x561da2[_0x1b6e1f('0x4a')]['includeAll']&&(_0x2836e0[_0x1b6e1f('0x8d')]=[{'all':!![]}]),db['VoiceQueue'][_0x1b6e1f('0x26')](_0x2836e0);})['then'](function(_0x2bad36){const _0x409a77=_0x4f9b7f;return _0xfb9a9[_0x409a77('0x47')]=_0x2bad36,_0xfb9a9;})[_0x4f9b7f('0x4c')](respondWithFilteredResult(_0x562b9b,_0x2836e0))['catch'](handleError(_0x562b9b,null));},exports[_0x32a5c2('0x3f')]=function(_0x889e3,_0x525e10){const _0x3537bc=_0x32a5c2;let _0x435a2b={'raw':![],'where':{'id':_0x889e3[_0x3537bc('0x90')]['id']}};const _0x109230={};return _0x109230[_0x3537bc('0x6a')]=_[_0x3537bc('0x14')](db[_0x3537bc('0x80')][_0x3537bc('0xf')]),_0x109230[_0x3537bc('0x4a')]=_[_0x3537bc('0x14')](_0x889e3['query']),_0x109230[_0x3537bc('0x7a')]=_['intersection'](_0x109230['model'],_0x109230[_0x3537bc('0x4a')]),_0x435a2b[_0x3537bc('0x81')]=_[_0x3537bc('0x79')](_0x109230[_0x3537bc('0x6a')],qs[_0x3537bc('0xa2')](_0x889e3[_0x3537bc('0x4a')][_0x3537bc('0xa2')])),_0x435a2b['attributes']=_0x435a2b[_0x3537bc('0x81')][_0x3537bc('0x19')]?_0x435a2b[_0x3537bc('0x81')]:_0x109230['model'],_0x889e3[_0x3537bc('0x4a')][_0x3537bc('0x70')]&&(_0x435a2b[_0x3537bc('0x8d')]=[{'all':!![]}]),_0x435a2b=_['merge']({},_0x435a2b,_0x889e3[_0x3537bc('0x65')]),db[_0x3537bc('0x80')][_0x3537bc('0x66')](_0x435a2b)[_0x3537bc('0x4c')](handleEntityNotFound(_0x525e10,null))[_0x3537bc('0x4c')](respondWithResult(_0x525e10,null))['catch'](handleError(_0x525e10,null));},exports[_0x32a5c2('0x5a')]=function(_0x4fd4be,_0x1139ab){const _0x475057=_0x32a5c2;return db['VoiceQueue']['create'](_0x4fd4be[_0x475057('0x93')],{})[_0x475057('0x4c')](function(_0x3a4eaf){const _0x12a9c0=_0x475057,_0x3091b9=_0x4fd4be['user'][_0x12a9c0('0x18')]({'plain':!![]});if(!_0x3091b9)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x3091b9[_0x12a9c0('0x34')]===_0x12a9c0('0x44')){const _0x3af3d5=_0x3a4eaf['get']({'plain':!![]}),_0x353b20=[{'name':_0x12a9c0('0x40'),'value':_0x12a9c0('0x51')},{'name':_0x12a9c0('0x24'),'value':'outbound'}],_0x39e049=_[_0x12a9c0('0x73')](_0x353b20,[_0x12a9c0('0x2c'),_0x3af3d5[_0x12a9c0('0x94')]])['name'];return db[_0x12a9c0('0x32')][_0x12a9c0('0x66')]({'where':{'name':_0x39e049,'userProfileId':_0x3091b9[_0x12a9c0('0x83')]},'raw':!![]})['then'](function(_0x71198b){const _0x20e5e9=_0x12a9c0;return _0x71198b&&_0x71198b[_0x20e5e9('0x13')]===0x0?db[_0x20e5e9('0x6e')][_0x20e5e9('0x5a')]({'name':_0x3af3d5[_0x20e5e9('0x87')],'resourceId':_0x3af3d5['id'],'type':_0x71198b[_0x20e5e9('0x87')],'sectionId':_0x71198b['id']},{})[_0x20e5e9('0x4c')](function(){return _0x3a4eaf;}):_0x3a4eaf;})[_0x12a9c0('0x5b')](function(_0x313c9a){const _0x490f4d=_0x12a9c0;logger['error'](_0x490f4d('0x7c'),_0x313c9a);throw _0x313c9a;});}return _0x3a4eaf;})[_0x475057('0x4c')](respondWithResult(_0x1139ab,0xc9))[_0x475057('0x5b')](handleError(_0x1139ab,null));},exports[_0x32a5c2('0x33')]=function(_0xf5d316,_0x5e71f2){const _0x1081fb=_0x32a5c2;let _0x36df88={'where':{'id':_0xf5d316['params']['id']}};const _0xe8e8bb={};return _0xe8e8bb[_0x1081fb('0x6a')]=_[_0x1081fb('0x14')](db['VoiceQueue'][_0x1081fb('0xf')]),_0x36df88[_0x1081fb('0x81')]=_[_0x1081fb('0x79')](_0xe8e8bb['model'],qs[_0x1081fb('0xa2')](_0xf5d316[_0x1081fb('0x4a')]['fields'])),_0x36df88['attributes']=_0x36df88['attributes']['length']?_0x36df88[_0x1081fb('0x81')]:_0xe8e8bb[_0x1081fb('0x6a')],_0xf5d316[_0x1081fb('0x4a')][_0x1081fb('0x70')]&&(_0x36df88[_0x1081fb('0x8d')]=[{'all':!![]}]),_0x36df88=_['merge']({},_0x36df88,_0xf5d316['options']),db[_0x1081fb('0x80')][_0x1081fb('0x66')](_0x36df88)[_0x1081fb('0x4c')](handleEntityNotFound(_0x5e71f2,null))['then'](function(_0x5a630e){const _0x3452c5=_0x1081fb;if(_0x5a630e){let _0x15d344=_0x5a630e['get']({'plain':!![]});return _0x15d344=qs[_0x3452c5('0x89')](_0x15d344,['id',_0x3452c5('0x2a'),'updatedAt']),_0xf5d316[_0x3452c5('0x93')]=_[_0x3452c5('0x89')](_0xf5d316[_0x3452c5('0x93')],['id',_0x3452c5('0x2a'),_0x3452c5('0x8')]),db[_0x3452c5('0x80')][_0x3452c5('0x5a')](_['merge'](_0x15d344,_0xf5d316['body']),{'include':_0xf5d316[_0x3452c5('0x4a')][_0x3452c5('0x70')]?[{'all':!![]}]:undefined})[_0x3452c5('0x4c')](function(_0x2546c8){const _0x84bf0d=_0x3452c5,_0x41e9ad=_0xf5d316[_0x84bf0d('0x44')][_0x84bf0d('0x18')]({'plain':!![]});if(!_0x41e9ad)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x41e9ad[_0x84bf0d('0x34')]==='user'){const _0x445234=_0x2546c8[_0x84bf0d('0x18')]({'plain':!![]}),_0x2aac83=[{'name':_0x84bf0d('0x40'),'value':'inbound'},{'name':_0x84bf0d('0x24'),'value':_0x84bf0d('0x74')}],_0x25e128=_['find'](_0x2aac83,['value',_0x445234[_0x84bf0d('0x94')]])[_0x84bf0d('0x87')];return db['UserProfileSection'][_0x84bf0d('0x66')]({'where':{'name':_0x25e128,'userProfileId':_0x41e9ad[_0x84bf0d('0x83')]},'raw':!![]})[_0x84bf0d('0x4c')](function(_0x87ff82){const _0x5e757b=_0x84bf0d;return _0x87ff82&&_0x87ff82[_0x5e757b('0x13')]===0x0?db['UserProfileResource']['create']({'name':_0x445234[_0x5e757b('0x87')],'resourceId':_0x445234['id'],'type':_0x87ff82[_0x5e757b('0x87')],'sectionId':_0x87ff82['id']},{})[_0x5e757b('0x4c')](function(){return _0x2546c8;}):_0x2546c8;})[_0x84bf0d('0x5b')](function(_0x3775ef){const _0x180c79=_0x84bf0d;logger[_0x180c79('0x12')](_0x180c79('0x7c'),_0x3775ef);throw _0x3775ef;});}return _0x2546c8;});}})[_0x1081fb('0x4c')](respondWithResult(_0x5e71f2,0xc9))[_0x1081fb('0x5b')](handleError(_0x5e71f2,null));},exports[_0x32a5c2('0x1f')]=function(_0x520726,_0x56ad36){const _0x32001e=_0x32a5c2;return _0x520726[_0x32001e('0x93')]['id']&&delete _0x520726[_0x32001e('0x93')]['id'],db['VoiceQueue'][_0x32001e('0x66')]({'where':{'id':_0x520726['params']['id']}})[_0x32001e('0x4c')](handleEntityNotFound(_0x56ad36,null))[_0x32001e('0x4c')](saveUpdates(_0x520726['body'],null))['then'](respondWithResult(_0x56ad36,null))[_0x32001e('0x5b')](handleError(_0x56ad36,null));},exports['destroy']=function(_0x326dea,_0x18adc9){const _0x2b161f=_0x32a5c2;return db[_0x2b161f('0x80')][_0x2b161f('0x66')]({'where':{'id':_0x326dea[_0x2b161f('0x90')]['id']}})[_0x2b161f('0x4c')](handleEntityNotFound(_0x18adc9,null))[_0x2b161f('0x4c')](removeEntity(_0x18adc9,null))[_0x2b161f('0x5b')](handleError(_0x18adc9,null));},exports[_0x32a5c2('0x2b')]=function(_0x1cfabc,_0x3be25e){const _0x2fb3d4=_0x32a5c2;let _0x2aacd4={'raw':![],'where':{}};const _0x4c82f5={},_0x1781a7={'count':0x0,'rows':[]};return db['VoiceQueue'][_0x2fb3d4('0x66')]({'where':{'id':_0x1cfabc[_0x2fb3d4('0x90')]['id']}})[_0x2fb3d4('0x4c')](handleEntityNotFound(_0x3be25e,null))[_0x2fb3d4('0x4c')](function(_0x4a70a9){const _0x4f538c=_0x2fb3d4;if(_0x4a70a9)return _0x4c82f5[_0x4f538c('0x6a')]=_[_0x4f538c('0x14')](db['CmHopper']['rawAttributes']),_0x4c82f5['query']=_[_0x4f538c('0x14')](_0x1cfabc[_0x4f538c('0x4a')]),_0x4c82f5['filters']=_[_0x4f538c('0x79')](_0x4c82f5[_0x4f538c('0x6a')],_0x4c82f5[_0x4f538c('0x4a')]),_0x2aacd4['attributes']=_[_0x4f538c('0x79')](_0x4c82f5[_0x4f538c('0x6a')],qs[_0x4f538c('0xa2')](_0x1cfabc['query'][_0x4f538c('0xa2')])),_0x2aacd4['attributes']=_0x2aacd4[_0x4f538c('0x81')][_0x4f538c('0x19')]?_0x2aacd4[_0x4f538c('0x81')]:_0x4c82f5[_0x4f538c('0x6a')],typeof _0x1cfabc['query']['nolimit']===_0x4f538c('0x4')&&(_0x2aacd4[_0x4f538c('0x64')]=qs['limit'](_0x1cfabc[_0x4f538c('0x4a')][_0x4f538c('0x64')]),_0x2aacd4[_0x4f538c('0x55')]=qs[_0x4f538c('0x55')](_0x1cfabc[_0x4f538c('0x4a')][_0x4f538c('0x55')])),_0x2aacd4['order']=qs['sort'](_0x1cfabc[_0x4f538c('0x4a')]['sort']),_0x2aacd4['where']=qs[_0x4f538c('0x7a')](_[_0x4f538c('0x2e')](_0x1cfabc['query'],_0x4c82f5[_0x4f538c('0x7a')])),_0x2aacd4[_0x4f538c('0x1c')][_0x4f538c('0x7d')]=_0x4a70a9['id'],_0x1cfabc['query']['filter']&&(_0x2aacd4[_0x4f538c('0x1c')]=_[_0x4f538c('0x30')](_0x2aacd4[_0x4f538c('0x1c')],{[Op['or']]:_[_0x4f538c('0x20')](_0x2aacd4['attributes'],function(_0x43e4f9){const _0x55ecc9=_0x4f538c,_0x11f4b1={};return _0x11f4b1[_0x43e4f9]={[Op['like']]:'%'+_0x1cfabc[_0x55ecc9('0x4a')]['filter']+'%'},_0x11f4b1;})})),_0x2aacd4=_[_0x4f538c('0x30')]({},_0x2aacd4,_0x1cfabc[_0x4f538c('0x65')]),db[_0x4f538c('0x82')][_0x4f538c('0xa1')]({'where':_0x2aacd4[_0x4f538c('0x1c')]})['then'](function(_0x31de7d){const _0x4e2421=_0x4f538c;return _0x1781a7[_0x4e2421('0xa1')]=_0x31de7d,_0x1cfabc[_0x4e2421('0x4a')][_0x4e2421('0x70')]&&(_0x2aacd4['include']=[{'all':!![]}]),db['CmHopper'][_0x4e2421('0x26')](_0x2aacd4);})[_0x4f538c('0x4c')](function(_0x24cd71){return _0x1781a7['rows']=_0x24cd71,_0x1781a7;});})['then'](respondWithFilteredResult(_0x3be25e,_0x2aacd4))['catch'](handleError(_0x3be25e,null));},exports[_0x32a5c2('0x1')]=function(_0x3e8ccb,_0x2e4707){const _0xe066d1=_0x32a5c2;let _0xbfabf7={'raw':!![],'where':{}};const _0xae0553={},_0x12d4e3={'count':0x0,'rows':[]};return db[_0xe066d1('0x80')]['findOne']({'where':{'id':_0x3e8ccb[_0xe066d1('0x90')]['id']}})[_0xe066d1('0x4c')](handleEntityNotFound(_0x2e4707,null))['then'](function(_0x5bdfe3){const _0x3253c2=_0xe066d1;if(_0x5bdfe3)return _0xae0553['model']=_['keys'](db['CmHopperHistory'][_0x3253c2('0xf')]),_0xae0553[_0x3253c2('0x4a')]=_[_0x3253c2('0x14')](_0x3e8ccb[_0x3253c2('0x4a')]),_0xae0553[_0x3253c2('0x7a')]=_['intersection'](_0xae0553['model'],_0xae0553[_0x3253c2('0x4a')]),_0xbfabf7[_0x3253c2('0x81')]=_[_0x3253c2('0x79')](_0xae0553['model'],qs[_0x3253c2('0xa2')](_0x3e8ccb[_0x3253c2('0x4a')][_0x3253c2('0xa2')])),_0xbfabf7[_0x3253c2('0x81')]=_0xbfabf7[_0x3253c2('0x81')][_0x3253c2('0x19')]?_0xbfabf7[_0x3253c2('0x81')]:_0xae0553['model'],typeof _0x3e8ccb[_0x3253c2('0x4a')][_0x3253c2('0x9a')]===_0x3253c2('0x4')&&(_0xbfabf7[_0x3253c2('0x64')]=qs['limit'](_0x3e8ccb[_0x3253c2('0x4a')]['limit']),_0xbfabf7[_0x3253c2('0x55')]=qs['offset'](_0x3e8ccb[_0x3253c2('0x4a')][_0x3253c2('0x55')])),_0xbfabf7['order']=qs[_0x3253c2('0x3')](_0x3e8ccb['query'][_0x3253c2('0x3')]),_0xbfabf7['where']=qs[_0x3253c2('0x7a')](_['pick'](_0x3e8ccb['query'],_0xae0553[_0x3253c2('0x7a')])),_0xbfabf7[_0x3253c2('0x1c')][_0x3253c2('0x7d')]=_0x5bdfe3['id'],_0x3e8ccb['query'][_0x3253c2('0x8b')]&&(_0xbfabf7['where']=_[_0x3253c2('0x30')](_0xbfabf7[_0x3253c2('0x1c')],{[Op['or']]:_[_0x3253c2('0x20')](_0xbfabf7[_0x3253c2('0x81')],function(_0x38f88b){const _0x50fc9f=_0x3253c2,_0x22171c={};return _0x22171c[_0x38f88b]={[Op[_0x50fc9f('0x68')]]:'%'+_0x3e8ccb[_0x50fc9f('0x4a')]['filter']+'%'},_0x22171c;})})),_0xbfabf7=_[_0x3253c2('0x30')]({},_0xbfabf7,_0x3e8ccb['options']),db['CmHopperHistory'][_0x3253c2('0xa1')]({'where':_0xbfabf7[_0x3253c2('0x1c')]})[_0x3253c2('0x4c')](function(_0x2cc986){const _0x5e0c4b=_0x3253c2;return _0x12d4e3['count']=_0x2cc986,_0x3e8ccb[_0x5e0c4b('0x4a')][_0x5e0c4b('0x70')]&&(_0xbfabf7[_0x5e0c4b('0x8d')]=[{'all':!![]}]),db['CmHopperHistory'][_0x5e0c4b('0x26')](_0xbfabf7);})[_0x3253c2('0x4c')](function(_0x1619ed){const _0x2a8d8a=_0x3253c2;return _0x12d4e3[_0x2a8d8a('0x47')]=_0x1619ed,_0x12d4e3;});})[_0xe066d1('0x4c')](respondWithFilteredResult(_0x2e4707,_0xbfabf7))[_0xe066d1('0x5b')](handleError(_0x2e4707,null));},exports[_0x32a5c2('0x45')]=function(_0x2e0a72,_0x1f17e7){const _0x16b496=_0x32a5c2;let _0x1abf22={'raw':!![],'where':{}};const _0x5e4b14={},_0x453d67={'count':0x0,'rows':[]};return db[_0x16b496('0x80')][_0x16b496('0x66')]({'where':{'id':_0x2e0a72['params']['id']}})[_0x16b496('0x4c')](handleEntityNotFound(_0x1f17e7,null))[_0x16b496('0x4c')](function(_0x1e4d4c){const _0x1123aa=_0x16b496;if(_0x1e4d4c)return _0x5e4b14[_0x1123aa('0x6a')]=_['keys'](db[_0x1123aa('0x61')][_0x1123aa('0xf')]),_0x5e4b14[_0x1123aa('0x4a')]=_[_0x1123aa('0x14')](_0x2e0a72[_0x1123aa('0x4a')]),_0x5e4b14[_0x1123aa('0x7a')]=_['intersection'](_0x5e4b14[_0x1123aa('0x6a')],_0x5e4b14[_0x1123aa('0x4a')]),_0x1abf22['attributes']=_['intersection'](_0x5e4b14[_0x1123aa('0x6a')],qs[_0x1123aa('0xa2')](_0x2e0a72[_0x1123aa('0x4a')][_0x1123aa('0xa2')])),_0x1abf22[_0x1123aa('0x81')]=_0x1abf22[_0x1123aa('0x81')][_0x1123aa('0x19')]?_0x1abf22['attributes']:_0x5e4b14[_0x1123aa('0x6a')],typeof _0x2e0a72[_0x1123aa('0x4a')]['nolimit']===_0x1123aa('0x4')&&(_0x1abf22[_0x1123aa('0x64')]=qs['limit'](_0x2e0a72[_0x1123aa('0x4a')]['limit']),_0x1abf22[_0x1123aa('0x55')]=qs[_0x1123aa('0x55')](_0x2e0a72[_0x1123aa('0x4a')]['offset'])),_0x1abf22[_0x1123aa('0x25')]=qs[_0x1123aa('0x3')](_0x2e0a72['query'][_0x1123aa('0x3')]),_0x1abf22[_0x1123aa('0x1c')]=qs[_0x1123aa('0x7a')](_[_0x1123aa('0x2e')](_0x2e0a72[_0x1123aa('0x4a')],_0x5e4b14[_0x1123aa('0x7a')])),_0x1abf22[_0x1123aa('0x1c')][_0x1123aa('0x7d')]=_0x1e4d4c['id'],_0x2e0a72[_0x1123aa('0x4a')][_0x1123aa('0x8b')]&&(_0x1abf22['where']=_[_0x1123aa('0x30')](_0x1abf22[_0x1123aa('0x1c')],{[Op['or']]:_[_0x1123aa('0x20')](_0x1abf22[_0x1123aa('0x81')],function(_0x3ff55a){const _0x34e862=_0x1123aa,_0x2061db={};return _0x2061db[_0x3ff55a]={[Op[_0x34e862('0x68')]]:'%'+_0x2e0a72[_0x34e862('0x4a')][_0x34e862('0x8b')]+'%'},_0x2061db;})})),_0x1abf22=_[_0x1123aa('0x30')]({},_0x1abf22,_0x2e0a72[_0x1123aa('0x65')]),db[_0x1123aa('0x61')]['count']({'where':_0x1abf22['where']})[_0x1123aa('0x4c')](function(_0x46c2e8){const _0x5d25db=_0x1123aa;return _0x453d67[_0x5d25db('0xa1')]=_0x46c2e8,_0x2e0a72['query'][_0x5d25db('0x70')]&&(_0x1abf22[_0x5d25db('0x8d')]=[{'all':!![]}]),db[_0x5d25db('0x61')][_0x5d25db('0x26')](_0x1abf22);})['then'](function(_0x2d26c0){const _0x8183c1=_0x1123aa;return _0x453d67[_0x8183c1('0x47')]=_0x2d26c0,_0x453d67;});})[_0x16b496('0x4c')](respondWithFilteredResult(_0x1f17e7,_0x1abf22))[_0x16b496('0x5b')](handleError(_0x1f17e7,null));},exports[_0x32a5c2('0x75')]=function(_0x1baefb,_0x14e96e){const _0x2b4a48=_0x32a5c2;let _0x113209={'raw':!![],'where':{}};const _0x16e2b0={},_0x5d95d1={'count':0x0,'rows':[]};return db[_0x2b4a48('0x80')][_0x2b4a48('0x66')]({'where':{'id':_0x1baefb['params']['id']}})[_0x2b4a48('0x4c')](handleEntityNotFound(_0x14e96e,null))[_0x2b4a48('0x4c')](function(_0x4bddbc){const _0x155121=_0x2b4a48;if(_0x4bddbc)return _0x16e2b0[_0x155121('0x6a')]=_[_0x155121('0x14')](db[_0x155121('0x88')]['rawAttributes']),_0x16e2b0['query']=_[_0x155121('0x14')](_0x1baefb['query']),_0x16e2b0[_0x155121('0x7a')]=_['intersection'](_0x16e2b0[_0x155121('0x6a')],_0x16e2b0[_0x155121('0x4a')]),_0x113209[_0x155121('0x81')]=_[_0x155121('0x79')](_0x16e2b0[_0x155121('0x6a')],qs[_0x155121('0xa2')](_0x1baefb['query'][_0x155121('0xa2')])),_0x113209[_0x155121('0x81')]=_0x113209['attributes'][_0x155121('0x19')]?_0x113209[_0x155121('0x81')]:_0x16e2b0[_0x155121('0x6a')],typeof _0x1baefb[_0x155121('0x4a')][_0x155121('0x9a')]==='undefined'&&(_0x113209[_0x155121('0x64')]=qs[_0x155121('0x64')](_0x1baefb['query']['limit']),_0x113209[_0x155121('0x55')]=qs[_0x155121('0x55')](_0x1baefb['query']['offset'])),_0x113209['order']=qs[_0x155121('0x3')](_0x1baefb[_0x155121('0x4a')][_0x155121('0x3')]),_0x113209[_0x155121('0x1c')]=qs[_0x155121('0x7a')](_[_0x155121('0x2e')](_0x1baefb[_0x155121('0x4a')],_0x16e2b0[_0x155121('0x7a')])),_0x113209[_0x155121('0x1c')][_0x155121('0x7d')]=_0x4bddbc['id'],_0x1baefb[_0x155121('0x4a')][_0x155121('0x8b')]&&(_0x113209[_0x155121('0x1c')]=_[_0x155121('0x30')](_0x113209[_0x155121('0x1c')],{[Op['or']]:_[_0x155121('0x20')](_0x113209[_0x155121('0x81')],function(_0x4d2fbe){const _0x1761f6=_0x155121,_0x50d3b0={};return _0x50d3b0[_0x4d2fbe]={[Op[_0x1761f6('0x68')]]:'%'+_0x1baefb[_0x1761f6('0x4a')][_0x1761f6('0x8b')]+'%'},_0x50d3b0;})})),_0x113209=_[_0x155121('0x30')]({},_0x113209,_0x1baefb[_0x155121('0x65')]),db[_0x155121('0x88')][_0x155121('0xa1')]({'where':_0x113209[_0x155121('0x1c')]})[_0x155121('0x4c')](function(_0x4ebfdf){const _0x2f8b32=_0x155121;return _0x5d95d1['count']=_0x4ebfdf,_0x1baefb['query'][_0x2f8b32('0x70')]&&(_0x113209['include']=[{'all':!![]}]),db[_0x2f8b32('0x88')][_0x2f8b32('0x26')](_0x113209);})['then'](function(_0xb1cf6f){const _0x2f5fdd=_0x155121;return _0x5d95d1[_0x2f5fdd('0x47')]=_0xb1cf6f,_0x5d95d1;});})[_0x2b4a48('0x4c')](respondWithFilteredResult(_0x14e96e,_0x113209))[_0x2b4a48('0x5b')](handleError(_0x14e96e,null));},exports[_0x32a5c2('0x8c')]=function(_0x3e46d5,_0x373ce1){const _0x1de3df=_0x32a5c2;let _0xe309da={};const _0x1df316={};let _0x623457,_0x113a44;return db[_0x1de3df('0x80')][_0x1de3df('0x66')]({'where':{'id':_0x3e46d5[_0x1de3df('0x90')]['id']}})[_0x1de3df('0x4c')](handleEntityNotFound(_0x373ce1,null))[_0x1de3df('0x4c')](function(_0x258705){const _0x212da1=_0x1de3df;if(_0x258705)return _0x623457=_0x258705,_0x1df316[_0x212da1('0x6a')]=_[_0x212da1('0x14')](db[_0x212da1('0x39')][_0x212da1('0xf')]),_0x1df316[_0x212da1('0x4a')]=_[_0x212da1('0x14')](_0x3e46d5['query']),_0x1df316['filters']=_[_0x212da1('0x79')](_0x1df316[_0x212da1('0x6a')],_0x1df316['query']),_0xe309da['attributes']=_[_0x212da1('0x79')](_0x1df316[_0x212da1('0x6a')],qs['fields'](_0x3e46d5['query'][_0x212da1('0xa2')])),_0xe309da[_0x212da1('0x81')]=_0xe309da['attributes']['length']?_0xe309da['attributes']:_0x1df316['model'],_0xe309da['order']=qs[_0x212da1('0x3')](_0x3e46d5[_0x212da1('0x4a')][_0x212da1('0x3')]),_0xe309da['where']=qs[_0x212da1('0x7a')](_[_0x212da1('0x2e')](_0x3e46d5[_0x212da1('0x4a')],_0x1df316[_0x212da1('0x7a')])),_0x3e46d5[_0x212da1('0x4a')][_0x212da1('0x8b')]&&(_0xe309da[_0x212da1('0x1c')]=_[_0x212da1('0x30')](_0xe309da[_0x212da1('0x1c')],{[Op['or']]:_[_0x212da1('0x20')](_0xe309da['attributes'],function(_0x427428){const _0x518d48=_0x212da1,_0x3b83f0={};return _0x3b83f0[_0x427428]={[Op[_0x518d48('0x68')]]:'%'+_0x3e46d5['query'][_0x518d48('0x8b')]+'%'},_0x3b83f0;})})),_0xe309da=_['merge']({},_0xe309da,_0x3e46d5[_0x212da1('0x65')]),_0x623457[_0x212da1('0x8c')](_0xe309da);})[_0x1de3df('0x4c')](function(_0x1ebd39){const _0x4be36e=_0x1de3df;if(_0x1ebd39)return _0x113a44=_0x1ebd39['length'],typeof _0x3e46d5[_0x4be36e('0x4a')]['nolimit']===_0x4be36e('0x4')&&(_0xe309da[_0x4be36e('0x64')]=qs[_0x4be36e('0x64')](_0x3e46d5[_0x4be36e('0x4a')][_0x4be36e('0x64')]),_0xe309da[_0x4be36e('0x55')]=qs[_0x4be36e('0x55')](_0x3e46d5[_0x4be36e('0x4a')][_0x4be36e('0x55')])),_0x623457[_0x4be36e('0x8c')](_0xe309da);})[_0x1de3df('0x4c')](function(_0x2a2e3c){if(_0x2a2e3c)return _0x2a2e3c?{'count':_0x113a44,'rows':_0x2a2e3c}:null;})[_0x1de3df('0x4c')](respondWithResult(_0x373ce1,null))[_0x1de3df('0x5b')](handleError(_0x373ce1,null));},exports[_0x32a5c2('0x63')]=function(_0x57226b,_0xecd85b){const _0x25de94=_0x32a5c2,_0x335004=_0x57226b[_0x25de94('0x93')]['teams'],_0x52979e=_['map'](_0x335004,'id');return db['Team']['findAll']({'where':{'id':_0x52979e},'attributes':['id'],'include':[{'model':db[_0x25de94('0x6d')],'as':_0x25de94('0x78'),'attributes':['id','name','online',_0x25de94('0x97'),_0x25de94('0x69')],'raw':!![]}]})[_0x25de94('0x4c')](function(_0xed8563){const _0xa68ee9=_0x25de94;if(_0xed8563){const _0x64816c=_['flatMap'](_0xed8563,function(_0x5840d8){const _0x49d233=a753_0x3c95,_0x50f922=_0x5840d8[_0x49d233('0x18')]({'plain':!![]});return _0x50f922[_0x49d233('0x78')][_0x49d233('0x95')](function(_0x230657){const _0x2a7c01=_0x49d233;_0x230657[_0x2a7c01('0x23')]=_[_0x2a7c01('0x73')](_0x335004,{'id':_0x50f922['id']})[_0x2a7c01('0x23')];}),_0x50f922[_0x49d233('0x78')];});return db[_0xa68ee9('0x80')][_0xa68ee9('0x66')]({'where':{'id':_0x57226b[_0xa68ee9('0x90')]['id']}})[_0xa68ee9('0x4c')](function(_0x5bfd42){const _0x226779=_0xa68ee9;return db[_0x226779('0x56')][_0x226779('0x11')](function(_0x3b3169){const _0x436e3b=_0x226779;return _0x5bfd42[_0x436e3b('0x63')](_0x52979e,{'transaction':_0x3b3169})[_0x436e3b('0x4c')](function(){const _0x26675a=_0x436e3b;return Promise[_0x26675a('0xb')](_0x64816c,function(_0xf0ef17){const _0x4da8f3=_0x26675a;return db[_0x4da8f3('0x8e')][_0x4da8f3('0x57')]({'where':{'UserId':_0xf0ef17['id'],'VoiceQueueId':_0x57226b[_0x4da8f3('0x90')]['id']},'defaults':{'penalty':_0xf0ef17[_0x4da8f3('0x23')]},'transaction':_0x3b3169});});})[_0x436e3b('0x4c')](function(){const _0xfead89=_0x436e3b;return Promise[_0xfead89('0xb')](_[_0xfead89('0x8b')](_0x64816c,{'online':!![]}),function(_0x5800fe){const _0x14d034=_0xfead89;return db['UserVoiceQueueRt'][_0x14d034('0x22')]({'membername':_0x5800fe['name'],'UserId':_0x5800fe['id'],'queue_name':_0x5bfd42[_0x14d034('0x87')],'VoiceQueueId':_0x5bfd42['id'],'interface':_[_0x14d034('0x31')](_0x5800fe['interface'])?util['format'](_0x14d034('0x2d'),_0x5800fe[_0x14d034('0x87')]):_0x5800fe['interface'],'paused':_0x5800fe[_0x14d034('0x97')]||![],'penalty':_0x5800fe[_0x14d034('0x23')]},{'transaction':_0x3b3169});});})['then'](function(){_0x64816c['forEach'](function(_0x3f881a){const _0x486b23=a753_0x3c95;socket[_0x486b23('0x9b')](_0x486b23('0x9c'),{'UserId':_0x3f881a['id'],'VoiceQueueId':_0x5bfd42['id']});});});});});}})[_0x25de94('0x4c')](respondWithStatusCode(_0xecd85b,null))['catch'](handleError(_0xecd85b,null));},exports[_0x32a5c2('0x37')]=function(_0x147d26,_0x494433){const _0x4ab0a4=_0x32a5c2;return db['Team'][_0x4ab0a4('0x26')]({'where':{'id':_0x147d26[_0x4ab0a4('0x4a')][_0x4ab0a4('0x6b')]},'attributes':['id'],'include':[{'model':db['User'],'as':_0x4ab0a4('0x78'),'attributes':['id'],'raw':!![]}]})[_0x4ab0a4('0x4c')](handleEntityNotFound(_0x494433,null))[_0x4ab0a4('0x4c')](function(_0x4917df){const _0x19f6f1=_0x4ab0a4,_0x182800=_[_0x19f6f1('0x20')](_0x4917df,'id');let _0x2301bc=[];const _0x2566fb=[],_0x543c6c=squel[_0x19f6f1('0x36')]();_0x543c6c[_0x19f6f1('0x85')](_0x19f6f1('0xa'))[_0x19f6f1('0x72')](_0x19f6f1('0x6c'),'tq')[_0x19f6f1('0x7b')](_0x19f6f1('0x49'),'ut',_0x19f6f1('0x43'))['where'](_0x19f6f1('0x15'),_0x147d26[_0x19f6f1('0x90')]['id']);for(let _0x20d3e8=0x0;_0x20d3e8<_0x4917df['length'];_0x20d3e8+=0x1){const _0x348f93=_0x4917df[_0x20d3e8];for(let _0x39135c=0x0;_0x39135c<_0x348f93[_0x19f6f1('0x78')][_0x19f6f1('0x19')];_0x39135c+=0x1){const _0x3e639e=_0x348f93[_0x19f6f1('0x78')][_0x39135c],_0x17c914=_0x543c6c[_0x19f6f1('0x33')]();_0x17c914['where'](_0x19f6f1('0x41'),_0x3e639e['id']),_0x2566fb[_0x19f6f1('0x76')](db[_0x19f6f1('0x56')][_0x19f6f1('0x4a')](_0x17c914[_0x19f6f1('0x59')](),{'type':db[_0x19f6f1('0x56')][_0x19f6f1('0x27')][_0x19f6f1('0x5d')]})[_0x19f6f1('0x4c')](function(_0x1e8454){const _0x4eb049=_0x19f6f1;if(_0x1e8454[_0x4eb049('0x19')]===0x1)return _0x3e639e['id'];else{const _0x1c97ca=_[_0x4eb049('0xc')](_[_0x4eb049('0x20')](_0x1e8454,'TeamId'),function(_0x218fe8){const _0x1db102=_0x4eb049;return _[_0x1db102('0x38')](_0x182800,_0x218fe8);});if(_0x1c97ca)return _0x3e639e['id'];}}));}}return Promise[_0x19f6f1('0x77')](_0x2566fb)[_0x19f6f1('0x4c')](function(_0x3bf2fe){const _0x3c6ac2=_0x19f6f1;return _0x2301bc=_(_0x2301bc)[_0x3c6ac2('0x21')](_0x3bf2fe)['compact']()[_0x3c6ac2('0x2c')](),db[_0x3c6ac2('0x80')][_0x3c6ac2('0x66')]({'where':{'id':_0x147d26[_0x3c6ac2('0x90')]['id']}})['then'](function(_0x59afed){const _0x8b6a87=_0x3c6ac2;return db['sequelize'][_0x8b6a87('0x11')](function(_0x2d0a3a){const _0x1007fc=_0x8b6a87;return _0x59afed['removeTeams'](_0x147d26[_0x1007fc('0x4a')]['ids'],{'transaction':_0x2d0a3a})[_0x1007fc('0x4c')](function(){const _0x3d4942=_0x1007fc;if(!_[_0x3d4942('0x2f')](_0x2301bc))return _0x59afed[_0x3d4942('0x1e')](_0x2301bc,{'transaction':_0x2d0a3a})[_0x3d4942('0x4c')](function(){const _0x383838=_0x3d4942;return db[_0x383838('0x99')][_0x383838('0x4f')]({'where':{'VoiceQueueId':_0x147d26[_0x383838('0x90')]['id'],'UserId':_0x2301bc},'transaction':_0x2d0a3a});});})['then'](function(){_0x2301bc['forEach'](function(_0x136d95){const _0x5ce692=a753_0x3c95;socket[_0x5ce692('0x9b')]('userVoiceQueue:remove',{'UserId':_0x136d95,'VoiceQueueId':_0x59afed['id']});});});});});});})[_0x4ab0a4('0x4c')](respondWithStatusCode(_0x494433,null))[_0x4ab0a4('0x5b')](handleError(_0x494433,null));},exports['addAgents']=function(_0x3f1a14,_0xcb6c9e){const _0x348d12=_0x32a5c2;let _0x526556,_0x4760ee;return db['VoiceQueue'][_0x348d12('0x66')]({'where':{'id':_0x3f1a14[_0x348d12('0x90')]['id']}})[_0x348d12('0x4c')](function(_0x91e498){const _0x2fd30f=_0x348d12;if(_0x91e498)return _0x4760ee=_0x91e498,_0x91e498[_0x2fd30f('0x10')](_0x3f1a14[_0x2fd30f('0x93')][_0x2fd30f('0x6b')],{'through':_[_0x2fd30f('0x89')](_0x3f1a14[_0x2fd30f('0x93')],[_0x2fd30f('0x6b'),'id'])})[_0x2fd30f('0x4c')](function(_0x5631b9){const _0x361902=_0x2fd30f;for(let _0x15ee2b=0x0;_0x15ee2b<_0x3f1a14['body'][_0x361902('0x6b')][_0x361902('0x19')];_0x15ee2b+=0x1){socket[_0x361902('0x9b')]('userVoiceQueue:save',{'UserId':_0x3f1a14[_0x361902('0x93')][_0x361902('0x6b')][_0x15ee2b],'VoiceQueueId':_0x3f1a14[_0x361902('0x90')]['id']});}return _0x5631b9;});})[_0x348d12('0x4c')](function(_0x1ad3db){const _0x2f1476=_0x348d12;_0x526556=_0x1ad3db||[];if(_0x4760ee)return db['User'][_0x2f1476('0x26')]({'where':{'id':_0x3f1a14['body'][_0x2f1476('0x6b')]},'attributes':['id',_0x2f1476('0x87'),_0x2f1476('0x5'),_0x2f1476('0x97'),_0x2f1476('0x69')],'raw':!![]});})[_0x348d12('0x4c')](function(_0x4dcb19){const _0x4b575f=_0x348d12;if(!_['isEmpty'](_0x4dcb19)){const _0x23da7e=[];for(let _0x46fb67=0x0;_0x46fb67<_0x4dcb19[_0x4b575f('0x19')];_0x46fb67++){_0x4dcb19[_0x46fb67][_0x4b575f('0x5')]&&_0x23da7e['push'](db['UserVoiceQueueRt']['upsert']({'membername':_0x4dcb19[_0x46fb67]['name'],'UserId':_0x4dcb19[_0x46fb67]['id'],'queue_name':_0x4760ee['name'],'VoiceQueueId':_0x4760ee['id'],'interface':_[_0x4b575f('0x31')](_0x4dcb19[_0x46fb67][_0x4b575f('0x69')])?util[_0x4b575f('0x52')](_0x4b575f('0x2d'),_0x4dcb19[_0x46fb67]['name']):_0x4dcb19[_0x46fb67][_0x4b575f('0x69')],'paused':_0x4dcb19[_0x46fb67][_0x4b575f('0x97')]||![],'penalty':_0x3f1a14[_0x4b575f('0x93')]['penalty']||0x0}));}return Promise[_0x4b575f('0x77')](_0x23da7e);}})[_0x348d12('0x4c')](function(){return _0x526556;})[_0x348d12('0x4c')](respondWithResult(_0xcb6c9e,null))[_0x348d12('0x5b')](handleError(_0xcb6c9e,null));},exports[_0x32a5c2('0x1e')]=function(_0x222b86,_0x361a59){const _0x2ddc73=_0x32a5c2;return db[_0x2ddc73('0x80')]['findOne']({'where':{'id':_0x222b86[_0x2ddc73('0x90')]['id']}})[_0x2ddc73('0x4c')](handleEntityNotFound(_0x361a59,null))[_0x2ddc73('0x4c')](function(_0x1dd7b6){const _0x1532dc=_0x2ddc73;if(_0x1dd7b6)return _0x1dd7b6['removeAgents'](_0x222b86[_0x1532dc('0x4a')][_0x1532dc('0x6b')])['then'](function(){const _0x520468=_0x1532dc;if(_[_0x520468('0x8f')](_0x222b86['query'][_0x520468('0x6b')]))for(let _0x277121=0x0;_0x277121<_0x222b86[_0x520468('0x4a')][_0x520468('0x6b')]['length'];_0x277121+=0x1){socket[_0x520468('0x9b')](_0x520468('0x46'),{'UserId':Number(_0x222b86[_0x520468('0x4a')][_0x520468('0x6b')][_0x277121]),'VoiceQueueId':Number(_0x222b86[_0x520468('0x90')]['id'])});}else socket[_0x520468('0x9b')](_0x520468('0x46'),{'UserId':Number(_0x222b86[_0x520468('0x4a')][_0x520468('0x6b')]),'VoiceQueueId':Number(_0x222b86[_0x520468('0x90')]['id'])});});})['then'](function(_0x4523ec){const _0x38aae7=_0x2ddc73;return db[_0x38aae7('0x99')][_0x38aae7('0x4f')]({'where':{'VoiceQueueId':_0x222b86[_0x38aae7('0x90')]['id'],'UserId':_0x222b86['query'][_0x38aae7('0x6b')]}})['then'](function(){return _0x4523ec;});})['then'](respondWithStatusCode(_0x361a59,null))['catch'](handleError(_0x361a59,null));},exports[_0x32a5c2('0x7f')]=function(_0x125fa3,_0x4be407){const _0x338554=_0x32a5c2;let _0x2ae46c={};const _0x6bdace={};let _0x5633c7,_0x48fa6a;return db[_0x338554('0x80')][_0x338554('0x66')]({'where':{'id':_0x125fa3[_0x338554('0x90')]['id']}})[_0x338554('0x4c')](handleEntityNotFound(_0x4be407,null))['then'](function(_0x3a39e9){const _0x86b244=_0x338554;if(_0x3a39e9)return _0x5633c7=_0x3a39e9,_0x6bdace[_0x86b244('0x6a')]=_[_0x86b244('0x14')](db[_0x86b244('0x6d')][_0x86b244('0xf')]),_0x6bdace[_0x86b244('0x4a')]=_[_0x86b244('0x14')](_0x125fa3[_0x86b244('0x4a')]),_0x6bdace[_0x86b244('0x7a')]=_['intersection'](_0x6bdace[_0x86b244('0x6a')],_0x6bdace[_0x86b244('0x4a')]),_0x2ae46c['attributes']=_[_0x86b244('0x79')](_0x6bdace[_0x86b244('0x6a')],qs[_0x86b244('0xa2')](_0x125fa3['query']['fields'])),_0x2ae46c[_0x86b244('0x81')]=_0x2ae46c[_0x86b244('0x81')][_0x86b244('0x19')]?_0x2ae46c[_0x86b244('0x81')]:_0x6bdace[_0x86b244('0x6a')],_0x2ae46c[_0x86b244('0x25')]=qs[_0x86b244('0x3')](_0x125fa3[_0x86b244('0x4a')][_0x86b244('0x3')]),_0x2ae46c[_0x86b244('0x1c')]=qs['filters'](_[_0x86b244('0x2e')](_0x125fa3[_0x86b244('0x4a')],_0x6bdace['filters'])),_0x125fa3[_0x86b244('0x4a')][_0x86b244('0x8b')]&&(_0x2ae46c[_0x86b244('0x1c')]=_[_0x86b244('0x30')](_0x2ae46c['where'],{[Op['or']]:_[_0x86b244('0x20')](_0x2ae46c[_0x86b244('0x81')],function(_0x2f5b57){const _0x5669c0=_0x86b244,_0x4b96ac={};return _0x4b96ac[_0x2f5b57]={[Op[_0x5669c0('0x68')]]:'%'+_0x125fa3[_0x5669c0('0x4a')]['filter']+'%'},_0x4b96ac;})})),_0x2ae46c=_[_0x86b244('0x30')]({},_0x2ae46c,_0x125fa3[_0x86b244('0x65')]),_0x5633c7[_0x86b244('0x7f')](_0x2ae46c);})[_0x338554('0x4c')](function(_0x54a910){const _0x2987cb=_0x338554;if(_0x54a910)return _0x48fa6a=_0x54a910['length'],typeof _0x125fa3['query'][_0x2987cb('0x9a')]===_0x2987cb('0x4')&&(_0x2ae46c[_0x2987cb('0x64')]=qs[_0x2987cb('0x64')](_0x125fa3['query']['limit']),_0x2ae46c[_0x2987cb('0x55')]=qs[_0x2987cb('0x55')](_0x125fa3[_0x2987cb('0x4a')][_0x2987cb('0x55')])),_0x5633c7[_0x2987cb('0x7f')](_0x2ae46c);})['then'](function(_0x3e2063){if(_0x3e2063)return _0x3e2063?{'count':_0x48fa6a,'rows':_0x3e2063}:null;})[_0x338554('0x4c')](respondWithResult(_0x4be407,null))[_0x338554('0x5b')](handleError(_0x4be407,null));},exports['getMembers']=function(_0x3c54a8,_0x542494){const _0xa9a01b=_0x32a5c2;let _0x50e372={};const _0x4a37bf={};let _0x6c0d8e,_0x417f3a;return db[_0xa9a01b('0x80')][_0xa9a01b('0x66')]({'where':{'id':_0x3c54a8[_0xa9a01b('0x90')]['id']}})[_0xa9a01b('0x4c')](handleEntityNotFound(_0x542494,null))[_0xa9a01b('0x4c')](function(_0x51c122){const _0x5d6653=_0xa9a01b;if(_0x51c122)return _0x6c0d8e=_0x51c122,_0x4a37bf[_0x5d6653('0x6a')]=_[_0x5d6653('0x14')](db[_0x5d6653('0x99')][_0x5d6653('0xf')]),_0x4a37bf[_0x5d6653('0x4a')]=_['keys'](_0x3c54a8[_0x5d6653('0x4a')]),_0x4a37bf[_0x5d6653('0x7a')]=_['intersection'](_0x4a37bf[_0x5d6653('0x6a')],_0x4a37bf[_0x5d6653('0x4a')]),_0x50e372[_0x5d6653('0x81')]=_[_0x5d6653('0x79')](_0x4a37bf[_0x5d6653('0x6a')],qs[_0x5d6653('0xa2')](_0x3c54a8['query'][_0x5d6653('0xa2')])),_0x50e372['attributes']=_0x50e372[_0x5d6653('0x81')][_0x5d6653('0x19')]?_0x50e372[_0x5d6653('0x81')]:_0x4a37bf['model'],_0x50e372[_0x5d6653('0x25')]=qs['sort'](_0x3c54a8[_0x5d6653('0x4a')][_0x5d6653('0x3')]),_0x50e372[_0x5d6653('0x1c')]=qs['filters'](_['pick'](_0x3c54a8[_0x5d6653('0x4a')],_0x4a37bf[_0x5d6653('0x7a')])),_0x3c54a8[_0x5d6653('0x4a')][_0x5d6653('0x8b')]&&(_0x50e372[_0x5d6653('0x1c')]=_[_0x5d6653('0x30')](_0x50e372[_0x5d6653('0x1c')],{[Op['or']]:_[_0x5d6653('0x20')](_0x50e372[_0x5d6653('0x81')],function(_0x267227){const _0xf39e0=_0x5d6653,_0x2e33e1={};return _0x2e33e1[_0x267227]={[Op[_0xf39e0('0x68')]]:'%'+_0x3c54a8[_0xf39e0('0x4a')]['filter']+'%'},_0x2e33e1;})})),_0x50e372=_['merge']({},_0x50e372,_0x3c54a8[_0x5d6653('0x65')]),_0x6c0d8e[_0x5d6653('0x42')](_0x50e372);})[_0xa9a01b('0x4c')](function(_0x39823c){const _0x338ed2=_0xa9a01b;if(_0x39823c)return _0x417f3a=_0x39823c[_0x338ed2('0x19')],typeof _0x3c54a8[_0x338ed2('0x4a')]['nolimit']===_0x338ed2('0x4')&&(_0x50e372[_0x338ed2('0x64')]=qs[_0x338ed2('0x64')](_0x3c54a8[_0x338ed2('0x4a')]['limit']),_0x50e372['offset']=qs[_0x338ed2('0x55')](_0x3c54a8[_0x338ed2('0x4a')][_0x338ed2('0x55')])),_0x6c0d8e[_0x338ed2('0x42')](_0x50e372);})[_0xa9a01b('0x4c')](function(_0x50fd07){return _0x50fd07?{'count':_0x417f3a,'rows':_0x50fd07}:null;})[_0xa9a01b('0x4c')](respondWithResult(_0x542494,null))['catch'](handleError(_0x542494,null));},exports[_0x32a5c2('0x96')]=function(_0x318068,_0x4630e4){const _0x29e488=_0x32a5c2;let _0x285314={};const _0x20dbad={};let _0x1e22d7,_0x101433;return db[_0x29e488('0x80')]['findOne']({'where':{'id':_0x318068[_0x29e488('0x90')]['id']}})[_0x29e488('0x4c')](handleEntityNotFound(_0x4630e4,null))[_0x29e488('0x4c')](function(_0x1eadea){const _0x522eb7=_0x29e488;if(_0x1eadea)return _0x1e22d7=_0x1eadea,_0x20dbad[_0x522eb7('0x6a')]=_[_0x522eb7('0x14')](db['CmList'][_0x522eb7('0xf')]),_0x20dbad[_0x522eb7('0x4a')]=_[_0x522eb7('0x14')](_0x318068[_0x522eb7('0x4a')]),_0x20dbad['filters']=_[_0x522eb7('0x79')](_0x20dbad[_0x522eb7('0x6a')],_0x20dbad[_0x522eb7('0x4a')]),_0x285314['attributes']=_['intersection'](_0x20dbad[_0x522eb7('0x6a')],qs[_0x522eb7('0xa2')](_0x318068[_0x522eb7('0x4a')]['fields'])),_0x285314[_0x522eb7('0x81')]=_0x285314[_0x522eb7('0x81')][_0x522eb7('0x19')]?_0x285314['attributes']:_0x20dbad['model'],_0x285314['order']=qs[_0x522eb7('0x3')](_0x318068[_0x522eb7('0x4a')][_0x522eb7('0x3')]),_0x285314[_0x522eb7('0x1c')]=qs[_0x522eb7('0x7a')](_[_0x522eb7('0x2e')](_0x318068[_0x522eb7('0x4a')],_0x20dbad[_0x522eb7('0x7a')])),_0x318068[_0x522eb7('0x4a')][_0x522eb7('0x8b')]&&(_0x285314[_0x522eb7('0x1c')]=_[_0x522eb7('0x30')](_0x285314[_0x522eb7('0x1c')],{[Op['or']]:_['map'](_0x285314[_0x522eb7('0x81')],function(_0x215cd1){const _0x625f16=_0x522eb7,_0x31cd6c={};return _0x31cd6c[_0x215cd1]={[Op[_0x625f16('0x68')]]:'%'+_0x318068[_0x625f16('0x4a')][_0x625f16('0x8b')]+'%'},_0x31cd6c;})})),_0x285314=_[_0x522eb7('0x30')]({},_0x285314,_0x318068[_0x522eb7('0x65')]),_0x1e22d7['getLists'](_0x285314);})[_0x29e488('0x4c')](function(_0x360037){const _0x5c51a9=_0x29e488;if(_0x360037)return _0x101433=_0x360037['length'],typeof _0x318068['query']['nolimit']===_0x5c51a9('0x4')&&(_0x285314['limit']=qs[_0x5c51a9('0x64')](_0x318068['query']['limit']),_0x285314[_0x5c51a9('0x55')]=qs[_0x5c51a9('0x55')](_0x318068[_0x5c51a9('0x4a')][_0x5c51a9('0x55')])),_0x1e22d7['getLists'](_0x285314);})[_0x29e488('0x4c')](function(_0x3d37a3){if(_0x3d37a3)return _0x3d37a3?{'count':_0x101433,'rows':_0x3d37a3}:null;})['then'](respondWithResult(_0x4630e4,null))[_0x29e488('0x5b')](handleError(_0x4630e4,null));},exports[_0x32a5c2('0x4b')]=function(_0x33c0f5,_0x4529d9){const _0x14520d=_0x32a5c2;let _0x117e5d,_0x2b58bd;return db['VoiceQueue'][_0x14520d('0x66')]({'where':{'id':_0x33c0f5[_0x14520d('0x90')]['id']}})[_0x14520d('0x4c')](handleEntityNotFound(_0x4529d9,null))[_0x14520d('0x4c')](function(_0x470690){const _0x5bf4d0=_0x14520d;if(_0x470690)return _0x2b58bd=_0x470690,_0x470690[_0x5bf4d0('0x4b')](_0x33c0f5[_0x5bf4d0('0x93')][_0x5bf4d0('0x6b')],{'through':_[_0x5bf4d0('0x89')](_0x33c0f5[_0x5bf4d0('0x93')],[_0x5bf4d0('0x6b'),'id'])});return null;})[_0x14520d('0x4c')](function(_0x496990){const _0x4288b2=_0x14520d;let _0x5a8747;_0x117e5d=_0x496990||[];const _0x4a9a4f=[];if(_0x496990){for(let _0x5d2ec6=0x0;_0x5d2ec6<_0x496990[_0x4288b2('0x19')];_0x5d2ec6+=0x1){const _0x569c21=_0x496990[_0x5d2ec6][_0x4288b2('0x18')]({'plain':!![]});_0x2b58bd[_0x4288b2('0x7e')]=_0x33c0f5['body'][_0x4288b2('0x7e')]?_0x33c0f5[_0x4288b2('0x93')]['dialCheckDuplicateType']:_0x2b58bd[_0x4288b2('0x7e')];switch(_0x2b58bd[_0x4288b2('0x7e')]){case _0x4288b2('0x91'):_0x5a8747=squel['insert']()[_0x4288b2('0x5e')]('cm_hopper')[_0x4288b2('0xa0')]([_0x4288b2('0x28'),_0x4288b2('0x9e'),_0x4288b2('0x7'),_0x4288b2('0x4e'),'VoiceQueueId',_0x4288b2('0x2a'),_0x4288b2('0x8')],squel[_0x4288b2('0x36')]()['field']('phone',_0x4288b2('0x28'))[_0x4288b2('0x85')](_0x4288b2('0x3a'),_0x4288b2('0x9e'))[_0x4288b2('0x85')]('id','ContactId')['field'](_0x569c21[_0x4288b2('0x84')][_0x4288b2('0x59')](),_0x4288b2('0x4e'))[_0x4288b2('0x85')](_0x33c0f5[_0x4288b2('0x90')]['id'][_0x4288b2('0x59')](),_0x4288b2('0x7d'))[_0x4288b2('0x85')](_0x4288b2('0x3a'),'createdAt')[_0x4288b2('0x85')](_0x4288b2('0x3a'),_0x4288b2('0x8'))[_0x4288b2('0x72')](_0x4288b2('0xd'))[_0x4288b2('0x1c')](_0x4288b2('0x4d'))[_0x4288b2('0x1c')](_0x4288b2('0x8a'),_0x569c21[_0x4288b2('0x84')][_0x4288b2('0x59')]())[_0x4288b2('0x1c')](_0x4288b2('0x3d'))[_0x4288b2('0x1c')](_0x4288b2('0x5c'),squel[_0x4288b2('0x36')]()[_0x4288b2('0x85')](_0x4288b2('0x3e'))[_0x4288b2('0x72')]('cm_hopper_final')[_0x4288b2('0x1c')](_0x4288b2('0x15'),_0x33c0f5[_0x4288b2('0x90')]['id'][_0x4288b2('0x59')]()))['where'](_0x4288b2('0x5c'),squel['select']()['field'](_0x4288b2('0xe'))[_0x4288b2('0x72')](_0x4288b2('0x1d'))[_0x4288b2('0x1c')](_0x4288b2('0x15'),_0x33c0f5[_0x4288b2('0x90')]['id'][_0x4288b2('0x59')]())))[_0x4288b2('0x59')]();break;case _0x4288b2('0x86'):_0x5a8747=squel['insert']()[_0x4288b2('0x5e')](_0x4288b2('0x1d'))[_0x4288b2('0xa0')]([_0x4288b2('0x28'),_0x4288b2('0x9e'),_0x4288b2('0x7'),_0x4288b2('0x4e'),'VoiceQueueId',_0x4288b2('0x2a'),_0x4288b2('0x8')],squel[_0x4288b2('0x36')]()[_0x4288b2('0x85')](_0x4288b2('0x28'),_0x4288b2('0x28'))[_0x4288b2('0x85')](_0x4288b2('0x3a'),_0x4288b2('0x9e'))[_0x4288b2('0x85')]('id',_0x4288b2('0x7'))[_0x4288b2('0x85')](_0x569c21['CmListId'][_0x4288b2('0x59')](),'ListId')[_0x4288b2('0x85')](_0x33c0f5[_0x4288b2('0x90')]['id']['toString'](),'VoiceQueueId')['field'](_0x4288b2('0x3a'),_0x4288b2('0x2a'))[_0x4288b2('0x85')](_0x4288b2('0x3a'),'updatedAt')['from'](_0x4288b2('0xd'))[_0x4288b2('0x1c')](_0x4288b2('0x4d'))[_0x4288b2('0x1c')](_0x4288b2('0x8a'),_0x569c21[_0x4288b2('0x84')]['toString']())[_0x4288b2('0x1c')](_0x4288b2('0x3d'))['where'](_0x4288b2('0x5c'),squel[_0x4288b2('0x36')]()[_0x4288b2('0x85')](_0x4288b2('0xe'))[_0x4288b2('0x72')]('cm_hopper')[_0x4288b2('0x1c')]('VoiceQueueId\x20=\x20?',_0x33c0f5[_0x4288b2('0x90')]['id'][_0x4288b2('0x59')]())))[_0x4288b2('0x59')]();break;default:_0x5a8747=squel[_0x4288b2('0x71')]()[_0x4288b2('0x5e')](_0x4288b2('0x1d'))[_0x4288b2('0xa0')](['phone',_0x4288b2('0x9e'),_0x4288b2('0x7'),'ListId',_0x4288b2('0x7d'),_0x4288b2('0x2a'),'updatedAt'],squel['select']()[_0x4288b2('0x85')](_0x4288b2('0x28'),_0x4288b2('0x28'))[_0x4288b2('0x85')](_0x4288b2('0x3a'),_0x4288b2('0x9e'))[_0x4288b2('0x85')]('id',_0x4288b2('0x7'))[_0x4288b2('0x85')](_0x569c21['CmListId'][_0x4288b2('0x59')](),_0x4288b2('0x4e'))['field'](_0x33c0f5[_0x4288b2('0x90')]['id'][_0x4288b2('0x59')](),_0x4288b2('0x7d'))[_0x4288b2('0x85')](_0x4288b2('0x3a'),_0x4288b2('0x2a'))[_0x4288b2('0x85')](_0x4288b2('0x3a'),'updatedAt')[_0x4288b2('0x72')](_0x4288b2('0xd'))[_0x4288b2('0x1c')](_0x4288b2('0x4d'))['where'](_0x4288b2('0x8a'),_0x569c21[_0x4288b2('0x84')][_0x4288b2('0x59')]())[_0x4288b2('0x1c')](_0x4288b2('0x3d')))[_0x4288b2('0x59')]();}_0x4a9a4f[_0x4288b2('0x76')](db[_0x4288b2('0x56')][_0x4288b2('0x4a')](_0x5a8747));}return Promise['all'](_0x4a9a4f);}})['then'](function(){return _0x117e5d;})[_0x14520d('0x4c')](respondWithResult(_0x4529d9,null))[_0x14520d('0x5b')](handleError(_0x4529d9,null));},exports['removeLists']=function(_0x4933fa,_0x57b94d){const _0x2e5a85=_0x32a5c2;return db[_0x2e5a85('0x80')]['findOne']({'where':{'id':_0x4933fa[_0x2e5a85('0x90')]['id']}})[_0x2e5a85('0x4c')](handleEntityNotFound(_0x57b94d,null))[_0x2e5a85('0x4c')](function(_0x2c2c1f){const _0x33414d=_0x2e5a85;if(_0x2c2c1f)return _0x2c2c1f['removeLists'](_0x4933fa[_0x33414d('0x4a')][_0x33414d('0x6b')]);})[_0x2e5a85('0x4c')](function(_0x57fca7){const _0x468eb9=_0x2e5a85;if(_0x57fca7)return db[_0x468eb9('0x82')][_0x468eb9('0x4f')]({'where':{'ListId':_0x4933fa['query']['ids'],'VoiceQueueId':_0x4933fa[_0x468eb9('0x90')]['id']}})[_0x468eb9('0x4c')](function(){return _0x57fca7;});})['then'](respondWithStatusCode(_0x57b94d,null))[_0x2e5a85('0x5b')](handleError(_0x57b94d,null));},exports[_0x32a5c2('0x9d')]=function(_0x333425,_0x224939){const _0x5e01d2=_0x32a5c2;let _0xb51ee6={};const _0x3ae3fa={};let _0x273763,_0x1beabb;return db[_0x5e01d2('0x80')][_0x5e01d2('0x66')]({'where':{'id':_0x333425['params']['id']}})['then'](handleEntityNotFound(_0x224939,null))['then'](function(_0x18a18d){const _0x3d9372=_0x5e01d2;if(_0x18a18d)return _0x273763=_0x18a18d,_0x3ae3fa[_0x3d9372('0x6a')]=_['keys'](db[_0x3d9372('0x35')][_0x3d9372('0xf')]),_0x3ae3fa[_0x3d9372('0x4a')]=_[_0x3d9372('0x14')](_0x333425[_0x3d9372('0x4a')]),_0x3ae3fa['filters']=_[_0x3d9372('0x79')](_0x3ae3fa[_0x3d9372('0x6a')],_0x3ae3fa['query']),_0xb51ee6[_0x3d9372('0x81')]=_[_0x3d9372('0x79')](_0x3ae3fa[_0x3d9372('0x6a')],qs[_0x3d9372('0xa2')](_0x333425[_0x3d9372('0x4a')][_0x3d9372('0xa2')])),_0xb51ee6[_0x3d9372('0x81')]=_0xb51ee6[_0x3d9372('0x81')][_0x3d9372('0x19')]?_0xb51ee6[_0x3d9372('0x81')]:_0x3ae3fa[_0x3d9372('0x6a')],_0xb51ee6[_0x3d9372('0x25')]=qs[_0x3d9372('0x3')](_0x333425[_0x3d9372('0x4a')]['sort']),_0xb51ee6[_0x3d9372('0x1c')]=qs[_0x3d9372('0x7a')](_['pick'](_0x333425[_0x3d9372('0x4a')],_0x3ae3fa['filters'])),_0x333425[_0x3d9372('0x4a')][_0x3d9372('0x8b')]&&(_0xb51ee6[_0x3d9372('0x1c')]=_[_0x3d9372('0x30')](_0xb51ee6[_0x3d9372('0x1c')],{[Op['or']]:_['map'](_0xb51ee6[_0x3d9372('0x81')],function(_0x940aba){const _0x561085=_0x3d9372,_0x51ca68={};return _0x51ca68[_0x940aba]={[Op[_0x561085('0x68')]]:'%'+_0x333425[_0x561085('0x4a')][_0x561085('0x8b')]+'%'},_0x51ca68;})})),_0xb51ee6=_['merge']({},_0xb51ee6,_0x333425[_0x3d9372('0x65')]),_0x273763[_0x3d9372('0x9d')](_0xb51ee6);})[_0x5e01d2('0x4c')](function(_0x513d4d){const _0x4acd57=_0x5e01d2;if(_0x513d4d)return _0x1beabb=_0x513d4d[_0x4acd57('0x19')],typeof _0x333425['query']['nolimit']===_0x4acd57('0x4')&&(_0xb51ee6['limit']=qs['limit'](_0x333425[_0x4acd57('0x4a')][_0x4acd57('0x64')]),_0xb51ee6[_0x4acd57('0x55')]=qs[_0x4acd57('0x55')](_0x333425['query'][_0x4acd57('0x55')])),_0x273763['getBlackLists'](_0xb51ee6);})[_0x5e01d2('0x4c')](function(_0x4f655f){if(_0x4f655f)return _0x4f655f?{'count':_0x1beabb,'rows':_0x4f655f}:null;})['then'](respondWithResult(_0x224939,null))[_0x5e01d2('0x5b')](handleError(_0x224939,null));},exports[_0x32a5c2('0x92')]=function(_0x48bf30,_0xa65f38){const _0x1c8668=_0x32a5c2;let _0x405025;return db[_0x1c8668('0x80')][_0x1c8668('0x66')]({'where':{'id':_0x48bf30[_0x1c8668('0x90')]['id']}})[_0x1c8668('0x4c')](handleEntityNotFound(_0xa65f38,null))[_0x1c8668('0x4c')](function(_0x552cea){const _0x231c3b=_0x1c8668;if(_0x552cea)return _0x552cea[_0x231c3b('0x92')](_0x48bf30[_0x231c3b('0x93')]['ids'],{'through':_[_0x231c3b('0x89')](_0x48bf30[_0x231c3b('0x93')],['ids','id'])});return null;})['then'](function(_0x5df5da){const _0x17ec64=_0x1c8668;let _0x17d12c;_0x405025=_0x5df5da||[];const _0x51e586=[];if(_0x5df5da){for(let _0x59bde3=0x0;_0x59bde3<_0x5df5da[_0x17ec64('0x19')];_0x59bde3+=0x1){const _0x588cc1=_0x5df5da[_0x59bde3][_0x17ec64('0x18')]({'plain':!![]});_0x17d12c=squel[_0x17ec64('0x71')]()[_0x17ec64('0x5e')](_0x17ec64('0x0'))['fromQuery']([_0x17ec64('0x28'),_0x17ec64('0x7'),_0x17ec64('0x4e'),_0x17ec64('0x7d'),_0x17ec64('0x2a'),_0x17ec64('0x8')],squel[_0x17ec64('0x36')]()[_0x17ec64('0x85')](_0x17ec64('0x28'),_0x17ec64('0x28'))[_0x17ec64('0x85')]('id',_0x17ec64('0x7'))[_0x17ec64('0x85')](_0x588cc1[_0x17ec64('0x84')][_0x17ec64('0x59')](),_0x17ec64('0x4e'))[_0x17ec64('0x85')](_0x48bf30[_0x17ec64('0x90')]['id'][_0x17ec64('0x59')](),'VoiceQueueId')[_0x17ec64('0x85')]('NOW()',_0x17ec64('0x2a'))[_0x17ec64('0x85')](_0x17ec64('0x3a'),_0x17ec64('0x8'))[_0x17ec64('0x72')](_0x17ec64('0xd'))[_0x17ec64('0x1c')](_0x17ec64('0x4d'))[_0x17ec64('0x1c')](_0x17ec64('0x8a'),_0x588cc1[_0x17ec64('0x84')][_0x17ec64('0x59')]())[_0x17ec64('0x1c')]('phone\x20IS\x20NOT\x20NULL'))[_0x17ec64('0x59')](),_0x51e586['push'](db[_0x17ec64('0x56')][_0x17ec64('0x4a')](_0x17d12c));}return Promise[_0x17ec64('0x77')](_0x51e586);}})[_0x1c8668('0x4c')](function(){return _0x405025;})[_0x1c8668('0x4c')](respondWithResult(_0xa65f38,null))[_0x1c8668('0x5b')](handleError(_0xa65f38,null));},exports[_0x32a5c2('0x48')]=function(_0x46e2c9,_0x32df36){const _0x19b842=_0x32a5c2;return db[_0x19b842('0x80')]['findOne']({'where':{'id':_0x46e2c9['params']['id']}})['then'](handleEntityNotFound(_0x32df36,null))[_0x19b842('0x4c')](function(_0x4f9993){const _0x373637=_0x19b842;if(_0x4f9993)return _0x4f9993['removeBlackLists'](_0x46e2c9[_0x373637('0x4a')][_0x373637('0x6b')]);})[_0x19b842('0x4c')](function(_0x139fd7){const _0x148a96=_0x19b842;if(_0x139fd7)return db[_0x148a96('0x88')]['destroy']({'where':{'ListId':_0x46e2c9[_0x148a96('0x4a')][_0x148a96('0x6b')],'VoiceQueueId':_0x46e2c9[_0x148a96('0x90')]['id']}})['then'](function(){return _0x139fd7;});})[_0x19b842('0x4c')](respondWithStatusCode(_0x32df36,null))[_0x19b842('0x5b')](handleError(_0x32df36,null));}; \ No newline at end of file +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 diff --git a/server/api/voiceQueue/voiceQueue.events.js b/server/api/voiceQueue/voiceQueue.events.js index 71aeb87..1d3d704 100644 --- a/server/api/voiceQueue/voiceQueue.events.js +++ b/server/api/voiceQueue/voiceQueue.events.js @@ -1 +1 @@ -const a754_0xa5c6=['emit','exports','events','setMaxListeners','VoiceQueue','update','save','../../mysqldb','addHook'];(function(_0x34fa98,_0xa5c681){const _0x27a0af=function(_0x5af4de){while(--_0x5af4de){_0x34fa98['push'](_0x34fa98['shift']());}};_0x27a0af(++_0xa5c681);}(a754_0xa5c6,0x94));const a754_0x27a0=function(_0x34fa98,_0xa5c681){_0x34fa98=_0x34fa98-0x0;let _0x27a0af=a754_0xa5c6[_0x34fa98];return _0x27a0af;};const _0x3de27e=a754_0x27a0;'use strict';const EventEmitter=require(_0x3de27e('0x7')),VoiceQueue=require(_0x3de27e('0x3'))['db'][_0x3de27e('0x0')],VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[_0x3de27e('0x8')](0x0);const events={'afterCreate':_0x3de27e('0x2'),'afterUpdate':_0x3de27e('0x1'),'afterDestroy':'remove'};function emitEvent(_0x5af4de){return function(_0x1e19b8){const _0x1a2d51=a754_0x27a0;VoiceQueueEvents[_0x1a2d51('0x5')](_0x5af4de+':'+_0x1e19b8['id'],_0x1e19b8),VoiceQueueEvents[_0x1a2d51('0x5')](_0x5af4de,_0x1e19b8);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];VoiceQueue[_0x3de27e('0x4')](e,emitEvent(event));}}module[_0x3de27e('0x6')]=VoiceQueueEvents; \ No newline at end of file +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 diff --git a/server/api/voiceQueue/voiceQueue.model.js b/server/api/voiceQueue/voiceQueue.model.js index 2d0e251..841c920 100644 --- a/server/api/voiceQueue/voiceQueue.model.js +++ b/server/api/voiceQueue/voiceQueue.model.js @@ -1 +1 @@ -const a755_0x100d=['./voiceQueue.attributes','exports','define','VoiceQueue'];(function(_0x196d5e,_0x100de5){const _0x149625=function(_0x45ac10){while(--_0x45ac10){_0x196d5e['push'](_0x196d5e['shift']());}};_0x149625(++_0x100de5);}(a755_0x100d,0x1a8));const a755_0x1496=function(_0x196d5e,_0x100de5){_0x196d5e=_0x196d5e-0x0;let _0x149625=a755_0x100d[_0x196d5e];return _0x149625;};const _0x1f1917=a755_0x1496;'use strict';const attributes=require(_0x1f1917('0x0'));module[_0x1f1917('0x1')]=function(_0x45ac10){const _0x377142=_0x1f1917,_0x48f8fe=_0x45ac10[_0x377142('0x2')](_0x377142('0x3'),attributes,{'tableName':'voice_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x48f8fe;}; \ No newline at end of file +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 diff --git a/server/api/voiceQueue/voiceQueue.rpc.js b/server/api/voiceQueue/voiceQueue.rpc.js index 9a23ee5..5123cd0 100644 --- a/server/api/voiceQueue/voiceQueue.rpc.js +++ b/server/api/voiceQueue/voiceQueue.rpc.js @@ -1 +1 @@ -const a756_0x43df=['raw','where','./voiceQueue.socket','rpc','attributes','map','catch','stringify','GetVoiceQueue','VoiceQueue','findAll','register','options','message','info','limit','ShowVoiceQueue','lodash','model','include','then','error','../../rediscache'];(function(_0x115abd,_0x43df2f){const _0x998347=function(_0x41720f){while(--_0x41720f){_0x115abd['push'](_0x115abd['shift']());}};_0x998347(++_0x43df2f);}(a756_0x43df,0xb0));const a756_0x9983=function(_0x115abd,_0x43df2f){_0x115abd=_0x115abd-0x0;let _0x998347=a756_0x43df[_0x115abd];return _0x998347;};const _0x5e84d1=a756_0x9983;'use strict';const _=require(_0x5e84d1('0x2')),db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x5e84d1('0xb')),{getSocket}=require(_0x5e84d1('0x7')),socket=getSocket();require(_0x5e84d1('0xa'))[_0x5e84d1('0x13')](socket),exports[_0x5e84d1('0x10')]=function(_0x41720f){const _0x187977=this;return new Promise(function(_0x4cd4bc,_0x470c6d){const _0x7597f6=a756_0x9983;return db[_0x7597f6('0x11')][_0x7597f6('0x12')]({'raw':_0x41720f[_0x7597f6('0x14')]?_0x41720f['options']['raw']===undefined?!![]:![]:!![],'where':_0x41720f[_0x7597f6('0x14')]?_0x41720f[_0x7597f6('0x14')][_0x7597f6('0x9')]||null:null,'attributes':_0x41720f[_0x7597f6('0x14')]?_0x41720f[_0x7597f6('0x14')][_0x7597f6('0xc')]||null:null,'limit':_0x41720f[_0x7597f6('0x14')]?_0x41720f['options'][_0x7597f6('0x0')]||null:null,'include':_0x41720f[_0x7597f6('0x14')]?_0x41720f['options'][_0x7597f6('0x4')]?_[_0x7597f6('0xd')](_0x41720f[_0x7597f6('0x14')][_0x7597f6('0x4')],function(_0x2d0314){const _0xb94f6c=_0x7597f6;return{'model':db[_0x2d0314[_0xb94f6c('0x3')]],'as':_0x2d0314['as'],'attributes':_0x2d0314['attributes'],'include':_0x2d0314[_0xb94f6c('0x4')]?_[_0xb94f6c('0xd')](_0x2d0314[_0xb94f6c('0x4')],function(_0x3205d7){const _0x5275d7=_0xb94f6c;return{'model':db[_0x3205d7[_0x5275d7('0x3')]],'as':_0x3205d7['as'],'attributes':_0x3205d7[_0x5275d7('0xc')],'include':_0x3205d7[_0x5275d7('0x4')]?_['map'](_0x3205d7[_0x5275d7('0x4')],function(_0x508c9f){const _0x3b89d0=_0x5275d7;return{'model':db[_0x508c9f[_0x3b89d0('0x3')]],'as':_0x508c9f['as'],'attributes':_0x508c9f['attributes']};}):[]};}):[]};}):[]:[]})[_0x7597f6('0x5')](function(_0x12e145){const _0x58d26c=_0x7597f6;logger[_0x58d26c('0x16')](_0x58d26c('0x10'),_0x41720f),logger['debug']('GetVoiceQueue',_0x41720f,JSON[_0x58d26c('0xf')](_0x12e145)),_0x4cd4bc(_0x12e145);})[_0x7597f6('0xe')](function(_0x28196a){const _0x24e169=_0x7597f6;logger[_0x24e169('0x6')](_0x24e169('0x10'),_0x28196a[_0x24e169('0x15')],_0x41720f),_0x470c6d(_0x187977[_0x24e169('0x6')](0x1f4,_0x28196a['message']));});});},exports[_0x5e84d1('0x1')]=function(_0x49cee5){const _0x1c52be=this;return new Promise(function(_0x15405d,_0x2308cc){const _0x178178=a756_0x9983;return db[_0x178178('0x11')]['findOne']({'raw':_0x49cee5[_0x178178('0x14')]?_0x49cee5[_0x178178('0x14')][_0x178178('0x8')]===undefined?!![]:![]:!![],'where':_0x49cee5[_0x178178('0x14')]?_0x49cee5[_0x178178('0x14')][_0x178178('0x9')]||null:null,'attributes':_0x49cee5[_0x178178('0x14')]?_0x49cee5['options']['attributes']||null:null,'include':_0x49cee5[_0x178178('0x14')]?_0x49cee5['options']['include']?_[_0x178178('0xd')](_0x49cee5[_0x178178('0x14')]['include'],function(_0x46ce42){const _0x5afde7=_0x178178;return{'model':db[_0x46ce42[_0x5afde7('0x3')]],'as':_0x46ce42['as'],'attributes':_0x46ce42[_0x5afde7('0xc')],'include':_0x46ce42[_0x5afde7('0x4')]?_[_0x5afde7('0xd')](_0x46ce42[_0x5afde7('0x4')],function(_0x598fa1){const _0x516b81=_0x5afde7;return{'model':db[_0x598fa1[_0x516b81('0x3')]],'as':_0x598fa1['as'],'attributes':_0x598fa1[_0x516b81('0xc')],'include':_0x598fa1[_0x516b81('0x4')]?_[_0x516b81('0xd')](_0x598fa1['include'],function(_0x566898){const _0x57c3bc=_0x516b81;return{'model':db[_0x566898[_0x57c3bc('0x3')]],'as':_0x566898['as'],'attributes':_0x566898[_0x57c3bc('0xc')]};}):[]};}):[]};}):[]:[]})[_0x178178('0x5')](function(_0x41ad0b){const _0x5861bb=_0x178178;logger['info'](_0x5861bb('0x1'),_0x49cee5),logger['debug'](_0x5861bb('0x1'),_0x49cee5,JSON[_0x5861bb('0xf')](_0x41ad0b)),_0x15405d(_0x41ad0b);})[_0x178178('0xe')](function(_0x243110){const _0x2a1c77=_0x178178;logger['error'](_0x2a1c77('0x1'),_0x243110[_0x2a1c77('0x15')],_0x49cee5),_0x2308cc(_0x1c52be[_0x2a1c77('0x6')](0x1f4,_0x243110['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/voiceQueue/voiceQueue.socket.js b/server/api/voiceQueue/voiceQueue.socket.js index bcc0a54..75a0dc9 100644 --- a/server/api/voiceQueue/voiceQueue.socket.js +++ b/server/api/voiceQueue/voiceQueue.socket.js @@ -1 +1 @@ -const a757_0x3cb1=['./voiceQueue.events','voiceQueue:','remove','save'];(function(_0x163c8e,_0x3cb146){const _0x5463cd=function(_0x4bdac1){while(--_0x4bdac1){_0x163c8e['push'](_0x163c8e['shift']());}};_0x5463cd(++_0x3cb146);}(a757_0x3cb1,0x185));const a757_0x5463=function(_0x163c8e,_0x3cb146){_0x163c8e=_0x163c8e-0x0;let _0x5463cd=a757_0x3cb1[_0x163c8e];return _0x5463cd;};const _0x15587a=a757_0x5463;'use strict';const VoiceQueueEvents=require(_0x15587a('0x3')),events=[_0x15587a('0x2'),_0x15587a('0x1'),'update'];function createListener(_0x4bdac1,_0x3bede4){return function(_0xde136f){_0x3bede4['emit'](_0x4bdac1,_0xde136f);};}exports['register']=function(_0x25e161){const _0x4b236e=_0x15587a;for(let _0x42a8f5=0x0,_0x1fb78e=events['length'];_0x42a8f5<_0x1fb78e;_0x42a8f5++){const _0x1ef160=events[_0x42a8f5],_0x2a7519=createListener(_0x4b236e('0x0')+_0x1ef160,_0x25e161);VoiceQueueEvents['on'](_0x1ef160,_0x2a7519);}}; \ No newline at end of file +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 diff --git a/server/api/voiceQueueReport/index.js b/server/api/voiceQueueReport/index.js index 9040a5c..64ba649 100644 --- a/server/api/voiceQueueReport/index.js +++ b/server/api/voiceQueueReport/index.js @@ -1 +1 @@ -const a758_0x493f=['get','destroy','exports','put','isAuthenticated','express','./voiceQueueReport.controller','show','Router','/index','/describe','update','getVoiceQueuesReport','create','delete','../../components/auth/service','/:id','index','post'];(function(_0x46f90d,_0x493fb6){const _0xf07655=function(_0x1cbd96){while(--_0x1cbd96){_0x46f90d['push'](_0x46f90d['shift']());}};_0xf07655(++_0x493fb6);}(a758_0x493f,0x73));const a758_0xf076=function(_0x46f90d,_0x493fb6){_0x46f90d=_0x46f90d-0x0;let _0xf07655=a758_0x493f[_0x46f90d];return _0xf07655;};const _0xb18971=a758_0xf076;'use strict';const express=require(_0xb18971('0x4')),router=express[_0xb18971('0x7')](),auth=require(_0xb18971('0xe')),controller=require(_0xb18971('0x5'));router[_0xb18971('0x12')]('/',auth[_0xb18971('0x3')](),controller[_0xb18971('0x10')]),router[_0xb18971('0x12')](_0xb18971('0x9'),auth['isAuthenticated'](),controller['describe']),router[_0xb18971('0x12')](_0xb18971('0x8'),auth[_0xb18971('0x3')](),controller[_0xb18971('0xb')]),router[_0xb18971('0x12')](_0xb18971('0xf'),auth[_0xb18971('0x3')](),controller[_0xb18971('0x6')]),router[_0xb18971('0x11')]('/',auth[_0xb18971('0x3')](),controller[_0xb18971('0xc')]),router[_0xb18971('0x2')]('/:id',auth[_0xb18971('0x3')](),controller[_0xb18971('0xa')]),router[_0xb18971('0xd')]('/:id',auth[_0xb18971('0x3')](),controller[_0xb18971('0x0')]),module[_0xb18971('0x1')]=router; \ No newline at end of file +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 diff --git a/server/api/voiceQueueReport/voiceQueueReport.attributes.js b/server/api/voiceQueueReport/voiceQueueReport.attributes.js index a4da97d..3001fec 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.attributes.js +++ b/server/api/voiceQueueReport/voiceQueueReport.attributes.js @@ -1 +1 @@ -const a759_0x4fb1=['YYYY-MM-DD\x20HH:mm:ss','queuecallerjoinAt','BOOLEAN','FORWARD,\x20BLIND,\x20ATTENDED','moment','diff','STRING','holdtime','COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT','exports','format','DATE','queuecallerleaveAt','setDataValue','INTEGER','seconds','getDataValue'];(function(_0x52bc11,_0x4fb1e1){const _0x499adb=function(_0x4ae9a9){while(--_0x4ae9a9){_0x52bc11['push'](_0x52bc11['shift']());}};_0x499adb(++_0x4fb1e1);}(a759_0x4fb1,0xa4));const a759_0x499a=function(_0x52bc11,_0x4fb1e1){_0x52bc11=_0x52bc11-0x0;let _0x499adb=a759_0x4fb1[_0x52bc11];return _0x499adb;};const _0x1e7994=a759_0x499a;'use strict';const Sequelize=require('sequelize'),moment=require(_0x1e7994('0xa'));module[_0x1e7994('0xf')]={'type':{'type':Sequelize['STRING']},'uniqueid':{'type':Sequelize[_0x1e7994('0xc')]},'calleridnum':{'type':Sequelize[_0x1e7994('0xc')]},'calleridname':{'type':Sequelize[_0x1e7994('0xc')]},'queue':{'type':Sequelize['STRING']},'queuecallerjoinAt':{'type':Sequelize['DATE']},'queuecallerleaveAt':{'type':Sequelize[_0x1e7994('0x0')],'set':function(_0x4ae9a9){const _0x8c19ad=_0x1e7994,_0x361627=moment(_0x4ae9a9),_0x23be4e=moment(this[_0x8c19ad('0x5')](_0x8c19ad('0x7')))[_0x8c19ad('0x10')](_0x8c19ad('0x6')),_0x5769ad=_0x361627[_0x8c19ad('0xb')](_0x23be4e,_0x8c19ad('0x4'));this[_0x8c19ad('0x2')](_0x8c19ad('0x1'),_0x4ae9a9),this[_0x8c19ad('0x2')](_0x8c19ad('0xd'),_0x5769ad||null);}},'position':{'type':Sequelize[_0x1e7994('0x3')]},'count':{'type':Sequelize[_0x1e7994('0x3')]},'queuecallerabandon':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize[_0x1e7994('0x0')]},'queuecallercomplete':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize['DATE']},'queuecallerexit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize[_0x1e7994('0x0')]},'queuecallerexitreason':{'type':Sequelize[_0x1e7994('0xc')],'comment':_0x1e7994('0xe')},'originalposition':{'type':Sequelize['INTEGER']},'channel':{'type':Sequelize[_0x1e7994('0xc')]},'connectedlinenum':{'type':Sequelize[_0x1e7994('0xc')]},'connectedlinename':{'type':Sequelize[_0x1e7994('0xc')]},'accountcode':{'type':Sequelize[_0x1e7994('0xc')]},'context':{'type':Sequelize['STRING']},'exten':{'type':Sequelize[_0x1e7994('0xc')]},'priority':{'type':Sequelize[_0x1e7994('0xc')]},'holdtime':{'type':Sequelize['INTEGER']},'mohtime':{'type':Sequelize[_0x1e7994('0x3')],'defaultValue':0x0},'assigned':{'type':Sequelize[_0x1e7994('0x8')],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize[_0x1e7994('0xc')]},'transfer':{'type':Sequelize[_0x1e7994('0x8')],'defaultValue':![]},'transfertype':{'type':Sequelize[_0x1e7994('0xc')],'comment':_0x1e7994('0x9')},'transferexten':{'type':Sequelize[_0x1e7994('0xc')]},'transferuniqueid':{'type':Sequelize[_0x1e7994('0xc')]},'disposition':{'type':Sequelize['STRING']},'secondDisposition':{'type':Sequelize[_0x1e7994('0xc')]},'thirdDisposition':{'type':Sequelize[_0x1e7994('0xc')]},'queuecallerenterreason':{'type':Sequelize[_0x1e7994('0x3')],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/voiceQueueReport/voiceQueueReport.controller.js b/server/api/voiceQueueReport/voiceQueueReport.controller.js index b13c5dc..5a0edf5 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.controller.js +++ b/server/api/voiceQueueReport/voiceQueueReport.controller.js @@ -1 +1 @@ -const a760_0x3341=['where','sort','query','api','destroy','./voiceQueueReport.socket','update','rows','undefined','offset','VoiceQueueReport','register','model','json','findAll','getVoiceQueuesReport','error','fieldName','status','nolimit','type','describe','then','include','show','includeAll','fields','../../mysqldb','count','rawAttributes','order','keys','body','limit','intersection','create','index','name','end','filters','lodash','stack','params','merge','set','VIRTUAL','attributes','findOne','catch','options','send','map','length','filter','pick'];(function(_0x5e4541,_0x334118){const _0xf3db0b=function(_0x218873){while(--_0x218873){_0x5e4541['push'](_0x5e4541['shift']());}};_0xf3db0b(++_0x334118);}(a760_0x3341,0x1e9));const a760_0xf3db=function(_0x5e4541,_0x334118){_0x5e4541=_0x5e4541-0x0;let _0xf3db0b=a760_0x3341[_0x5e4541];return _0xf3db0b;};const _0x14179a=a760_0xf3db;'use strict';const _=require(_0x14179a('0x2e')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x14179a('0x9')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x14179a('0x21'))['db'],{Op}=require('sequelize');require(_0x14179a('0xb'))[_0x14179a('0x11')](socket);function respondWithResult(_0x218873,_0x218491){return _0x218491=_0x218491||0xc8,function(_0x5dea14){const _0x562f21=a760_0xf3db;if(_0x5dea14)return _0x218873[_0x562f21('0x18')](_0x218491)[_0x562f21('0x13')](_0x5dea14);};}function respondWithFilteredResult(_0x44c01a,_0x59afd5){return function(_0x39ed1d){const _0x113d9f=a760_0xf3db;if(_0x39ed1d){const _0x449f01=_0x39ed1d[_0x113d9f('0x22')],_0x27f65f=_0x59afd5['offset'];let _0x57b93f=_0x59afd5['offset']+_0x59afd5['limit'],_0x42539a;return _0x57b93f>=_0x449f01?(_0x57b93f=_0x449f01,_0x42539a=0xc8):_0x42539a=0xce,_0x44c01a[_0x113d9f('0x18')](_0x42539a),_0x44c01a[_0x113d9f('0x32')]('Content-Range',_0x27f65f+'-'+_0x57b93f+'/'+_0x449f01)['json'](_0x39ed1d);}return null;};}function saveUpdates(_0x22350f){return function(_0x1fdcd3){const _0x53c0c6=a760_0xf3db;if(_0x1fdcd3)return _0x1fdcd3[_0x53c0c6('0xc')](_0x22350f)['then'](function(_0x21b93b){return _0x21b93b;});return null;};}function removeEntity(_0x23c1fc){return function(_0x2280a9){const _0x45ac4e=a760_0xf3db;if(_0x2280a9)return _0x2280a9['destroy']()[_0x45ac4e('0x1c')](function(){const _0x42d15a=_0x45ac4e;_0x23c1fc[_0x42d15a('0x18')](0xcc)[_0x42d15a('0x2c')]();});};}function handleEntityNotFound(_0x2ff8c7){return function(_0x48ba6a){return!_0x48ba6a&&_0x2ff8c7['sendStatus'](0x194),_0x48ba6a;};}function handleError(_0x31d014,_0x40555a){return _0x40555a=_0x40555a||0x1f4,function(_0xe7a5aa){const _0x222613=a760_0xf3db;logger[_0x222613('0x16')](_0xe7a5aa[_0x222613('0x2f')]),_0xe7a5aa[_0x222613('0x2b')]&&delete _0xe7a5aa[_0x222613('0x2b')],_0x31d014[_0x222613('0x18')](_0x40555a)[_0x222613('0x1')](_0xe7a5aa);};}exports[_0x14179a('0x2a')]=function(_0x3289e0,_0x1b1bd1){const _0x27dc8f=_0x14179a;let _0x37e845={};const _0x53d2be={},_0x3de851={'count':0x0,'rows':[]},_0x60841b=_[_0x27dc8f('0x2')](db['VoiceQueueReport'][_0x27dc8f('0x23')],function(_0xd0d1cc){const _0x39c1bf=_0x27dc8f;return{'name':_0xd0d1cc[_0x39c1bf('0x17')],'type':_0xd0d1cc[_0x39c1bf('0x1a')]['key']};});_0x53d2be[_0x27dc8f('0x12')]=_[_0x27dc8f('0x2')](_0x60841b,_0x27dc8f('0x2b')),_0x53d2be[_0x27dc8f('0x8')]=_[_0x27dc8f('0x25')](_0x3289e0[_0x27dc8f('0x8')]),_0x53d2be[_0x27dc8f('0x2d')]=_[_0x27dc8f('0x28')](_0x53d2be[_0x27dc8f('0x12')],_0x53d2be['query']),_0x37e845[_0x27dc8f('0x34')]=_['intersection'](_0x53d2be[_0x27dc8f('0x12')],qs[_0x27dc8f('0x20')](_0x3289e0[_0x27dc8f('0x8')][_0x27dc8f('0x20')])),_0x37e845[_0x27dc8f('0x34')]=_0x37e845[_0x27dc8f('0x34')][_0x27dc8f('0x3')]?_0x37e845[_0x27dc8f('0x34')]:_0x53d2be[_0x27dc8f('0x12')];typeof _0x3289e0['query'][_0x27dc8f('0x19')]===_0x27dc8f('0xe')&&(_0x37e845[_0x27dc8f('0x27')]=qs['limit'](_0x3289e0[_0x27dc8f('0x8')][_0x27dc8f('0x27')]),_0x37e845['offset']=qs[_0x27dc8f('0xf')](_0x3289e0[_0x27dc8f('0x8')][_0x27dc8f('0xf')]));_0x37e845[_0x27dc8f('0x24')]=qs[_0x27dc8f('0x7')](_0x3289e0[_0x27dc8f('0x8')][_0x27dc8f('0x7')]),_0x37e845[_0x27dc8f('0x6')]=qs[_0x27dc8f('0x2d')](_[_0x27dc8f('0x5')](_0x3289e0['query'],_0x53d2be[_0x27dc8f('0x2d')]),_0x60841b);_0x3289e0['query'][_0x27dc8f('0x4')]&&(_0x37e845['where']=_[_0x27dc8f('0x31')](_0x37e845[_0x27dc8f('0x6')],{[Op['or']]:_[_0x27dc8f('0x2')](_0x60841b,function(_0x230e21){const _0x41cfe0=_0x27dc8f;if(_0x230e21[_0x41cfe0('0x1a')]!==_0x41cfe0('0x33')){const _0x16cbf1={};return _0x16cbf1[_0x230e21['name']]={[Op['like']]:'%'+_0x3289e0['query'][_0x41cfe0('0x4')]+'%'},_0x16cbf1;}})}));_0x37e845=_[_0x27dc8f('0x31')]({},_0x37e845,_0x3289e0['options']);const _0x206d84={'where':_0x37e845['where']};return db[_0x27dc8f('0x10')][_0x27dc8f('0x22')](_0x206d84)['then'](function(_0x473dbf){const _0x5696df=_0x27dc8f;return _0x3de851[_0x5696df('0x22')]=_0x473dbf,_0x3289e0[_0x5696df('0x8')][_0x5696df('0x1f')]&&(_0x37e845[_0x5696df('0x1d')]=[{'all':!![]}]),db[_0x5696df('0x10')][_0x5696df('0x14')](_0x37e845);})[_0x27dc8f('0x1c')](function(_0x4cbf82){const _0x493754=_0x27dc8f;return _0x3de851[_0x493754('0xd')]=_0x4cbf82,_0x3de851;})[_0x27dc8f('0x1c')](respondWithFilteredResult(_0x1b1bd1,_0x37e845))[_0x27dc8f('0x36')](handleError(_0x1b1bd1,null));},exports[_0x14179a('0x1e')]=function(_0x4a93f3,_0x36201b){const _0xd2a0ad=_0x14179a;let _0x360ec4={'raw':![],'where':{'id':_0x4a93f3[_0xd2a0ad('0x30')]['id']}};const _0x4012b0={};return _0x4012b0[_0xd2a0ad('0x12')]=_[_0xd2a0ad('0x25')](db[_0xd2a0ad('0x10')]['rawAttributes']),_0x4012b0[_0xd2a0ad('0x8')]=_[_0xd2a0ad('0x25')](_0x4a93f3[_0xd2a0ad('0x8')]),_0x4012b0[_0xd2a0ad('0x2d')]=_[_0xd2a0ad('0x28')](_0x4012b0[_0xd2a0ad('0x12')],_0x4012b0[_0xd2a0ad('0x8')]),_0x360ec4[_0xd2a0ad('0x34')]=_['intersection'](_0x4012b0[_0xd2a0ad('0x12')],qs[_0xd2a0ad('0x20')](_0x4a93f3[_0xd2a0ad('0x8')][_0xd2a0ad('0x20')])),_0x360ec4[_0xd2a0ad('0x34')]=_0x360ec4[_0xd2a0ad('0x34')][_0xd2a0ad('0x3')]?_0x360ec4[_0xd2a0ad('0x34')]:_0x4012b0[_0xd2a0ad('0x12')],_0x4a93f3[_0xd2a0ad('0x8')]['includeAll']&&(_0x360ec4['include']=[{'all':!![]}]),_0x360ec4=_['merge']({},_0x360ec4,_0x4a93f3['options']),db[_0xd2a0ad('0x10')][_0xd2a0ad('0x35')](_0x360ec4)['then'](handleEntityNotFound(_0x36201b,null))[_0xd2a0ad('0x1c')](respondWithResult(_0x36201b,null))[_0xd2a0ad('0x36')](handleError(_0x36201b,null));},exports[_0x14179a('0x29')]=function(_0x4c366a,_0x58d095){const _0x2da742=_0x14179a;return db[_0x2da742('0x10')]['create'](_0x4c366a[_0x2da742('0x26')],{})['then'](respondWithResult(_0x58d095,0xc9))[_0x2da742('0x36')](handleError(_0x58d095,null));},exports[_0x14179a('0xc')]=function(_0x1fc736,_0x295dae){const _0xeec58c=_0x14179a;return _0x1fc736[_0xeec58c('0x26')]['id']&&delete _0x1fc736['body']['id'],db['VoiceQueueReport'][_0xeec58c('0x35')]({'where':{'id':_0x1fc736[_0xeec58c('0x30')]['id']}})[_0xeec58c('0x1c')](handleEntityNotFound(_0x295dae,null))[_0xeec58c('0x1c')](saveUpdates(_0x1fc736[_0xeec58c('0x26')],null))[_0xeec58c('0x1c')](respondWithResult(_0x295dae,null))[_0xeec58c('0x36')](handleError(_0x295dae,null));},exports[_0x14179a('0xa')]=function(_0x48514f,_0x58d764){const _0x330507=_0x14179a;return db[_0x330507('0x10')][_0x330507('0x35')]({'where':{'id':_0x48514f['params']['id']}})['then'](handleEntityNotFound(_0x58d764,null))[_0x330507('0x1c')](removeEntity(_0x58d764,null))[_0x330507('0x36')](handleError(_0x58d764,null));},exports[_0x14179a('0x1b')]=function(_0x40f819,_0x19c44a){const _0x26e26f=_0x14179a;return db['VoiceQueueReport'][_0x26e26f('0x1b')]()[_0x26e26f('0x1c')](respondWithResult(_0x19c44a,null))[_0x26e26f('0x36')](handleError(_0x19c44a,null));},exports[_0x14179a('0x15')]=function(_0x18780a,_0x234ade){const _0x230e80=_0x14179a;let _0x3b5f5d={};const _0x573e6f={},_0x2c09f3={'count':0x0,'rows':[]};_0x573e6f[_0x230e80('0x12')]=_['keys'](db['VoiceQueueReport'][_0x230e80('0x23')]),_0x573e6f[_0x230e80('0x8')]=_['keys'](_0x18780a[_0x230e80('0x8')]),_0x573e6f['filters']=_[_0x230e80('0x28')](_0x573e6f['model'],_0x573e6f[_0x230e80('0x8')]),_0x3b5f5d[_0x230e80('0x34')]=_[_0x230e80('0x28')](_0x573e6f[_0x230e80('0x12')],qs[_0x230e80('0x20')](_0x18780a[_0x230e80('0x8')][_0x230e80('0x20')])),_0x3b5f5d[_0x230e80('0x34')]=_0x3b5f5d[_0x230e80('0x34')][_0x230e80('0x3')]?_0x3b5f5d[_0x230e80('0x34')]:_0x573e6f[_0x230e80('0x12')];typeof _0x18780a[_0x230e80('0x8')]['nolimit']===_0x230e80('0xe')&&(_0x3b5f5d['limit']=qs[_0x230e80('0x27')](_0x18780a[_0x230e80('0x8')][_0x230e80('0x27')]),_0x3b5f5d[_0x230e80('0xf')]=qs[_0x230e80('0xf')](_0x18780a[_0x230e80('0x8')][_0x230e80('0xf')]));_0x3b5f5d[_0x230e80('0x24')]=qs[_0x230e80('0x7')](_0x18780a['query'][_0x230e80('0x7')]),_0x3b5f5d[_0x230e80('0x6')]=qs[_0x230e80('0x2d')](_[_0x230e80('0x5')](_0x18780a['query'],_0x573e6f['filters']));_0x18780a[_0x230e80('0x8')][_0x230e80('0x4')]&&(_0x3b5f5d['where']=_['merge'](_0x3b5f5d[_0x230e80('0x6')],{[Op['or']]:_[_0x230e80('0x2')](_0x3b5f5d[_0x230e80('0x34')],function(_0x37bc44){const _0x121169=_0x230e80,_0x377641={};return _0x377641[_0x37bc44]={[Op['like']]:'%'+_0x18780a['query'][_0x121169('0x4')]+'%'},_0x377641;})}));_0x3b5f5d=_[_0x230e80('0x31')]({},_0x3b5f5d,_0x18780a[_0x230e80('0x0')]);const _0x29d9d5={'where':_0x3b5f5d[_0x230e80('0x6')]};return db['VoiceQueueReport'][_0x230e80('0x22')](_0x29d9d5)[_0x230e80('0x1c')](function(_0x41d2b4){const _0x346295=_0x230e80;return _0x2c09f3[_0x346295('0x22')]=_0x41d2b4,_0x18780a[_0x346295('0x8')]['includeAll']&&(_0x3b5f5d[_0x346295('0x1d')]=[{'all':!![]}]),db[_0x346295('0x10')][_0x346295('0x14')](_0x3b5f5d);})[_0x230e80('0x1c')](function(_0x415500){const _0x466240=_0x230e80;return _0x2c09f3[_0x466240('0xd')]=_0x415500,_0x2c09f3;})[_0x230e80('0x1c')](respondWithFilteredResult(_0x234ade,_0x3b5f5d,'getVoiceQueuesReport'))['catch'](handleError(_0x234ade,null,'getVoiceQueuesReport'));}; \ No newline at end of file +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 diff --git a/server/api/voiceQueueReport/voiceQueueReport.events.js b/server/api/voiceQueueReport/voiceQueueReport.events.js index 8f25f98..9dd2f77 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.events.js +++ b/server/api/voiceQueueReport/voiceQueueReport.events.js @@ -1 +1 @@ -const a761_0x595f=['events','setMaxListeners','undefined','emit','../../mysqldb','VoiceQueueReport','remove','exports'];(function(_0x1dc604,_0x595f58){const _0x498504=function(_0x14556a){while(--_0x14556a){_0x1dc604['push'](_0x1dc604['shift']());}};_0x498504(++_0x595f58);}(a761_0x595f,0xd5));const a761_0x4985=function(_0x1dc604,_0x595f58){_0x1dc604=_0x1dc604-0x0;let _0x498504=a761_0x595f[_0x1dc604];return _0x498504;};const _0x579832=a761_0x4985;'use strict';const EventEmitter=require(_0x579832('0x3')),VoiceQueueReport=require(_0x579832('0x7'))['db'][_0x579832('0x0')],VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0x579832('0x4')](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':_0x579832('0x1')};function emitEvent(_0x14556a){return function(_0x49707c){const _0x44ac0b=a761_0x4985;VoiceQueueReportEvents[_0x44ac0b('0x6')](_0x14556a+':'+_0x49707c['id'],_0x49707c),VoiceQueueReportEvents[_0x44ac0b('0x6')](_0x14556a,_0x49707c);};}for(const e in events){if(typeof events[e]!==_0x579832('0x5')){const event=events[e];VoiceQueueReport['addHook'](e,emitEvent(event));}}module[_0x579832('0x2')]=VoiceQueueReportEvents; \ No newline at end of file +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 diff --git a/server/api/voiceQueueReport/voiceQueueReport.model.js b/server/api/voiceQueueReport/voiceQueueReport.model.js index 4df4366..c98f3d3 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.model.js +++ b/server/api/voiceQueueReport/voiceQueueReport.model.js @@ -1 +1 @@ -const a762_0x3788=['define','calleridnum','uniqueid'];(function(_0x4acee7,_0x3788d5){const _0x318b8b=function(_0x1fb7fb){while(--_0x1fb7fb){_0x4acee7['push'](_0x4acee7['shift']());}};_0x318b8b(++_0x3788d5);}(a762_0x3788,0x125));const a762_0x318b=function(_0x4acee7,_0x3788d5){_0x4acee7=_0x4acee7-0x0;let _0x318b8b=a762_0x3788[_0x4acee7];return _0x318b8b;};'use strict';const attributes=require('./voiceQueueReport.attributes');module['exports']=function(_0x1fb7fb){const _0x31b444=a762_0x318b,_0x574f12=_0x1fb7fb[_0x31b444('0x1')]('VoiceQueueReport',attributes,{'tableName':'report_queue','paranoid':![],'indexes':[{'fields':[_0x31b444('0x0')]},{'fields':[_0x31b444('0x2')]}],'timestamps':!![]});return _0x574f12;}; \ No newline at end of file +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 diff --git a/server/api/voiceQueueReport/voiceQueueReport.rpc.js b/server/api/voiceQueueReport/voiceQueueReport.rpc.js index dd9671c..f06c8e8 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.rpc.js +++ b/server/api/voiceQueueReport/voiceQueueReport.rpc.js @@ -1 +1 @@ -const a763_0x41dc=['../../mysqldb','where','model','include','then','CreateVoiceQueueReport','map','options','error','raw','create','attributes','findAll','message','lodash','register','GetVoiceQueueReport','body','info','VoiceQueueReport','../../config/logger','UpdateVoiceQueueReport','stringify','limit','update','../../rediscache','catch','./voiceQueueReport.socket','debug'];(function(_0x548a80,_0x41dc8c){const _0x46c004=function(_0x4b6666){while(--_0x4b6666){_0x548a80['push'](_0x548a80['shift']());}};_0x46c004(++_0x41dc8c);}(a763_0x41dc,0x86));const a763_0x46c0=function(_0x548a80,_0x41dc8c){_0x548a80=_0x548a80-0x0;let _0x46c004=a763_0x41dc[_0x548a80];return _0x46c004;};const _0x6543b7=a763_0x46c0;'use strict';const _=require(_0x6543b7('0x19')),db=require(_0x6543b7('0xb'))['db'],logger=require(_0x6543b7('0x2'))('rpc'),{getSocket}=require(_0x6543b7('0x7')),socket=getSocket();require(_0x6543b7('0x9'))[_0x6543b7('0x1a')](socket),exports['GetVoiceQueueReport']=function(_0x4b6666){const _0x4aa555=this;return new Promise(function(_0x109fd5,_0x49584d){const _0x37d737=a763_0x46c0;return db[_0x37d737('0x1')][_0x37d737('0x17')]({'raw':_0x4b6666[_0x37d737('0x12')]?_0x4b6666[_0x37d737('0x12')][_0x37d737('0x14')]===undefined?!![]:![]:!![],'where':_0x4b6666['options']?_0x4b6666[_0x37d737('0x12')][_0x37d737('0xc')]||null:null,'attributes':_0x4b6666['options']?_0x4b6666[_0x37d737('0x12')][_0x37d737('0x16')]||null:null,'limit':_0x4b6666[_0x37d737('0x12')]?_0x4b6666[_0x37d737('0x12')][_0x37d737('0x5')]||null:null,'include':_0x4b6666[_0x37d737('0x12')]?_0x4b6666['options'][_0x37d737('0xe')]?_['map'](_0x4b6666[_0x37d737('0x12')][_0x37d737('0xe')],function(_0x36d836){const _0x3e03d0=_0x37d737;return{'model':db[_0x36d836[_0x3e03d0('0xd')]],'as':_0x36d836['as'],'attributes':_0x36d836[_0x3e03d0('0x16')],'include':_0x36d836[_0x3e03d0('0xe')]?_[_0x3e03d0('0x11')](_0x36d836['include'],function(_0x2bf553){const _0x5161ad=_0x3e03d0;return{'model':db[_0x2bf553[_0x5161ad('0xd')]],'as':_0x2bf553['as'],'attributes':_0x2bf553['attributes'],'include':_0x2bf553['include']?_[_0x5161ad('0x11')](_0x2bf553['include'],function(_0x1ab91d){const _0x9821d3=_0x5161ad;return{'model':db[_0x1ab91d[_0x9821d3('0xd')]],'as':_0x1ab91d['as'],'attributes':_0x1ab91d['attributes']};}):[]};}):[]};}):[]:[]})[_0x37d737('0xf')](function(_0x208ef5){const _0x3cc2bb=_0x37d737;logger[_0x3cc2bb('0x0')](_0x3cc2bb('0x1b'),_0x4b6666),logger[_0x3cc2bb('0xa')]('GetVoiceQueueReport',_0x4b6666,JSON[_0x3cc2bb('0x4')](_0x208ef5)),_0x109fd5(_0x208ef5);})['catch'](function(_0x116a13){const _0x5bb541=_0x37d737;logger[_0x5bb541('0x13')]('GetVoiceQueueReport',_0x116a13['message'],_0x4b6666),_0x49584d(_0x4aa555['error'](0x1f4,_0x116a13[_0x5bb541('0x18')]));});});},exports[_0x6543b7('0x10')]=function(_0x32b52e){const _0x5720a9=this;return new Promise(function(_0x42461d,_0x3c7b74){const _0x23d2cc=a763_0x46c0;return db['VoiceQueueReport'][_0x23d2cc('0x15')](_0x32b52e[_0x23d2cc('0x1c')],{'raw':_0x32b52e['options']?_0x32b52e[_0x23d2cc('0x12')][_0x23d2cc('0x14')]===undefined?!![]:![]:!![]})[_0x23d2cc('0xf')](function(_0x208181){const _0x6127f=_0x23d2cc;logger[_0x6127f('0x0')](_0x6127f('0x10'),_0x32b52e),logger[_0x6127f('0xa')](_0x6127f('0x10'),_0x32b52e,JSON['stringify'](_0x208181)),_0x42461d(_0x208181);})[_0x23d2cc('0x8')](function(_0x544294){const _0x27b624=_0x23d2cc;logger[_0x27b624('0x13')](_0x27b624('0x10'),_0x544294[_0x27b624('0x18')],_0x32b52e),_0x3c7b74(_0x5720a9['error'](0x1f4,_0x544294['message']));});});},exports[_0x6543b7('0x3')]=function(_0x353940){const _0x363dc4=this;return new Promise(function(_0x144578,_0x3ab12d){const _0x4bd38a=a763_0x46c0;return db[_0x4bd38a('0x1')][_0x4bd38a('0x6')](_0x353940[_0x4bd38a('0x1c')],{'raw':_0x353940['options']?_0x353940['options'][_0x4bd38a('0x14')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x353940[_0x4bd38a('0x12')]?_0x353940['options'][_0x4bd38a('0xc')]||null:null,'attributes':_0x353940[_0x4bd38a('0x12')]?_0x353940['options'][_0x4bd38a('0x16')]||null:null,'limit':_0x353940['options']?_0x353940[_0x4bd38a('0x12')]['limit']||null:null})[_0x4bd38a('0xf')](function(_0x5d920f){const _0x3d231e=_0x4bd38a;logger[_0x3d231e('0x0')]('UpdateVoiceQueueReport',_0x353940),logger['debug'](_0x3d231e('0x3'),_0x353940,JSON[_0x3d231e('0x4')](_0x5d920f)),_0x144578(_0x5d920f);})[_0x4bd38a('0x8')](function(_0x41a91f){const _0x2feded=_0x4bd38a;logger[_0x2feded('0x13')](_0x2feded('0x3'),_0x41a91f[_0x2feded('0x18')],_0x353940),_0x3ab12d(_0x363dc4[_0x2feded('0x13')](0x1f4,_0x41a91f[_0x2feded('0x18')]));});});}; \ No newline at end of file +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 diff --git a/server/api/voiceQueueReport/voiceQueueReport.socket.js b/server/api/voiceQueueReport/voiceQueueReport.socket.js index e2040b2..70834a3 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.socket.js +++ b/server/api/voiceQueueReport/voiceQueueReport.socket.js @@ -1 +1 @@ -const a764_0x24b7=['./voiceQueueReport.events','save','update','length','emit','remove'];(function(_0x248918,_0x24b734){const _0x578f64=function(_0x2e8ecf){while(--_0x2e8ecf){_0x248918['push'](_0x248918['shift']());}};_0x578f64(++_0x24b734);}(a764_0x24b7,0xd3));const a764_0x578f=function(_0x248918,_0x24b734){_0x248918=_0x248918-0x0;let _0x578f64=a764_0x24b7[_0x248918];return _0x578f64;};const _0x39c6ab=a764_0x578f;'use strict';const VoiceQueueReportEvents=require(_0x39c6ab('0x5')),events=[_0x39c6ab('0x0'),_0x39c6ab('0x4'),_0x39c6ab('0x1')];function createListener(_0x2e8ecf,_0x301d9f){return function(_0xb4e6b6){const _0xf145f6=a764_0x578f;_0x301d9f[_0xf145f6('0x3')](_0x2e8ecf,_0xb4e6b6);};}exports['register']=function(_0x5a8573){const _0x3932f3=_0x39c6ab;for(let _0x3e0b2d=0x0,_0x5ed372=events[_0x3932f3('0x2')];_0x3e0b2d<_0x5ed372;_0x3e0b2d++){const _0xbcb33b=events[_0x3e0b2d],_0x4fbfeb=createListener('voiceQueueReport:'+_0xbcb33b,_0x5a8573);VoiceQueueReportEvents['on'](_0xbcb33b,_0x4fbfeb);}}; \ No newline at end of file +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 diff --git a/server/api/voiceQueuesLog/index.js b/server/api/voiceQueuesLog/index.js index 2f22334..c133d8d 100644 --- a/server/api/voiceQueuesLog/index.js +++ b/server/api/voiceQueuesLog/index.js @@ -1 +1 @@ -const a765_0x1d4e=['destroy','delete','index','create','post','express','/:id','isAuthenticated','get','exports','../../components/auth/service','show','Router'];(function(_0x3e3b12,_0x1d4e94){const _0x54c1d3=function(_0x10d969){while(--_0x10d969){_0x3e3b12['push'](_0x3e3b12['shift']());}};_0x54c1d3(++_0x1d4e94);}(a765_0x1d4e,0x17e));const a765_0x54c1=function(_0x3e3b12,_0x1d4e94){_0x3e3b12=_0x3e3b12-0x0;let _0x54c1d3=a765_0x1d4e[_0x3e3b12];return _0x54c1d3;};const _0x37dc00=a765_0x54c1;'use strict';const express=require(_0x37dc00('0x0')),router=express[_0x37dc00('0x7')](),auth=require(_0x37dc00('0x5')),controller=require('./voiceQueuesLog.controller');router[_0x37dc00('0x3')]('/',auth[_0x37dc00('0x2')](),controller[_0x37dc00('0xa')]),router[_0x37dc00('0x3')]('/:id',auth[_0x37dc00('0x2')](),controller[_0x37dc00('0x6')]),router[_0x37dc00('0xc')]('/',auth[_0x37dc00('0x2')](),controller[_0x37dc00('0xb')]),router['put'](_0x37dc00('0x1'),auth[_0x37dc00('0x2')](),controller['update']),router[_0x37dc00('0x9')](_0x37dc00('0x1'),auth[_0x37dc00('0x2')](),controller[_0x37dc00('0x8')]),module[_0x37dc00('0x4')]=router; \ No newline at end of file +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 diff --git a/server/api/voiceQueuesLog/voiceQueuesLog.attributes.js b/server/api/voiceQueuesLog/voiceQueuesLog.attributes.js index 2228023..4c6916a 100644 --- a/server/api/voiceQueuesLog/voiceQueuesLog.attributes.js +++ b/server/api/voiceQueuesLog/voiceQueuesLog.attributes.js @@ -1 +1 @@ -const a766_0x463c=['DATE','exports','YYYY-MM-DD\x20HH:mm:ss','STRING','sequelize','format','moment'];(function(_0x126a58,_0x463cbe){const _0xc2d3=function(_0x203d55){while(--_0x203d55){_0x126a58['push'](_0x126a58['shift']());}};_0xc2d3(++_0x463cbe);}(a766_0x463c,0xe8));const a766_0xc2d3=function(_0x126a58,_0x463cbe){_0x126a58=_0x126a58-0x0;let _0xc2d3=a766_0x463c[_0x126a58];return _0xc2d3;};const _0x456dfa=a766_0xc2d3;'use strict';const Sequelize=require(_0x456dfa('0x3')),moment=require(_0x456dfa('0x5'));module[_0x456dfa('0x0')]={'time':{'type':Sequelize[_0x456dfa('0x2')]},'callid':{'type':Sequelize[_0x456dfa('0x2')],'allowNull':![],'defaultValue':''},'queuename':{'type':Sequelize[_0x456dfa('0x2')],'allowNull':![],'defaultValue':''},'agent':{'type':Sequelize[_0x456dfa('0x2')],'allowNull':![],'defaultValue':''},'event':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':''},'data':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':''},'data1':{'type':Sequelize[_0x456dfa('0x2')],'allowNull':![],'defaultValue':''},'data2':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':''},'data3':{'type':Sequelize[_0x456dfa('0x2')],'allowNull':![],'defaultValue':''},'data4':{'type':Sequelize[_0x456dfa('0x2')],'allowNull':![],'defaultValue':''},'data5':{'type':Sequelize[_0x456dfa('0x2')],'allowNull':![],'defaultValue':''},'dtm':{'type':Sequelize[_0x456dfa('0x6')],'allowNull':![],'defaultValue':moment()[_0x456dfa('0x4')](_0x456dfa('0x1'))}}; \ No newline at end of file +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 diff --git a/server/api/voiceQueuesLog/voiceQueuesLog.controller.js b/server/api/voiceQueuesLog/voiceQueuesLog.controller.js index 927d140..6551665 100644 --- a/server/api/voiceQueuesLog/voiceQueuesLog.controller.js +++ b/server/api/voiceQueuesLog/voiceQueuesLog.controller.js @@ -1 +1 @@ -const a767_0x286d=['keys','model','VoiceQueuesLog','rows','rawAttributes','sequelize','key','sort','map','merge','body','attributes','fields','name','include','like','params','set','VIRTUAL','show','length','update','order','json','count','index','options','filter','create','findOne','sendStatus','limit','type','stack','api','lodash','destroy','pick','offset','intersection','query','then','status','includeAll','findAll','filters','send','nolimit','where','catch'];(function(_0x38fd35,_0x286d45){const _0x3000c7=function(_0x4424a4){while(--_0x4424a4){_0x38fd35['push'](_0x38fd35['shift']());}};_0x3000c7(++_0x286d45);}(a767_0x286d,0xf0));const a767_0x3000=function(_0x38fd35,_0x286d45){_0x38fd35=_0x38fd35-0x0;let _0x3000c7=a767_0x286d[_0x38fd35];return _0x3000c7;};const _0x3c7b61=a767_0x3000;'use strict';const _=require(_0x3c7b61('0x2d')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x3c7b61('0x2c')),db=require('../../mysqldb')['db'],{Op}=require(_0x3c7b61('0xf'));function respondWithResult(_0x4424a4,_0x4a1ea4){return _0x4a1ea4=_0x4a1ea4||0xc8,function(_0x4c442b){const _0x2b9961=a767_0x3000;if(_0x4c442b)return _0x4424a4[_0x2b9961('0x2')](_0x4a1ea4)[_0x2b9961('0x21')](_0x4c442b);};}function respondWithFilteredResult(_0x483a55,_0x46bfad){return function(_0x2c1c99){const _0x732f31=a767_0x3000;if(_0x2c1c99){const _0x520771=_0x2c1c99[_0x732f31('0x22')],_0x46664b=_0x46bfad[_0x732f31('0x30')];let _0x4404c8=_0x46bfad[_0x732f31('0x30')]+_0x46bfad[_0x732f31('0x29')],_0xbf95b1;return _0x4404c8>=_0x520771?(_0x4404c8=_0x520771,_0xbf95b1=0xc8):_0xbf95b1=0xce,_0x483a55['status'](_0xbf95b1),_0x483a55[_0x732f31('0x1b')]('Content-Range',_0x46664b+'-'+_0x4404c8+'/'+_0x520771)['json'](_0x2c1c99);}return null;};}function saveUpdates(_0x189903){return function(_0x1eea52){const _0x1c440d=a767_0x3000;if(_0x1eea52)return _0x1eea52[_0x1c440d('0x1f')](_0x189903)[_0x1c440d('0x1')](function(_0x226b1a){return _0x226b1a;});return null;};}function removeEntity(_0x572915){return function(_0x56252e){const _0x7f2016=a767_0x3000;if(_0x56252e)return _0x56252e['destroy']()[_0x7f2016('0x1')](function(){_0x572915['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x147906){return function(_0xba5362){const _0x14cda3=a767_0x3000;return!_0xba5362&&_0x147906[_0x14cda3('0x28')](0x194),_0xba5362;};}function handleError(_0x502a87,_0xd63158){return _0xd63158=_0xd63158||0x1f4,function(_0x32942b){const _0x5e1613=a767_0x3000;logger['error'](_0x32942b[_0x5e1613('0x2b')]),_0x32942b[_0x5e1613('0x17')]&&delete _0x32942b[_0x5e1613('0x17')],_0x502a87[_0x5e1613('0x2')](_0xd63158)[_0x5e1613('0x6')](_0x32942b);};}exports[_0x3c7b61('0x23')]=function(_0x11513b,_0x1a9589){const _0x5869bd=_0x3c7b61;let _0x56580e={};const _0x2f5600={},_0x56c4a8={'count':0x0,'rows':[]},_0x5801da=_[_0x5869bd('0x12')](db[_0x5869bd('0xc')]['rawAttributes'],function(_0x47a64e){const _0x2e5548=_0x5869bd;return{'name':_0x47a64e['fieldName'],'type':_0x47a64e[_0x2e5548('0x2a')][_0x2e5548('0x10')]};});_0x2f5600['model']=_[_0x5869bd('0x12')](_0x5801da,'name'),_0x2f5600[_0x5869bd('0x0')]=_[_0x5869bd('0xa')](_0x11513b['query']),_0x2f5600[_0x5869bd('0x5')]=_[_0x5869bd('0x31')](_0x2f5600[_0x5869bd('0xb')],_0x2f5600[_0x5869bd('0x0')]),_0x56580e[_0x5869bd('0x15')]=_['intersection'](_0x2f5600['model'],qs['fields'](_0x11513b[_0x5869bd('0x0')][_0x5869bd('0x16')])),_0x56580e[_0x5869bd('0x15')]=_0x56580e[_0x5869bd('0x15')]['length']?_0x56580e['attributes']:_0x2f5600[_0x5869bd('0xb')];typeof _0x11513b[_0x5869bd('0x0')][_0x5869bd('0x7')]==='undefined'&&(_0x56580e[_0x5869bd('0x29')]=qs[_0x5869bd('0x29')](_0x11513b[_0x5869bd('0x0')]['limit']),_0x56580e['offset']=qs[_0x5869bd('0x30')](_0x11513b['query'][_0x5869bd('0x30')]));_0x56580e[_0x5869bd('0x20')]=qs['sort'](_0x11513b[_0x5869bd('0x0')][_0x5869bd('0x11')]),_0x56580e['where']=qs[_0x5869bd('0x5')](_[_0x5869bd('0x2f')](_0x11513b[_0x5869bd('0x0')],_0x2f5600[_0x5869bd('0x5')]),_0x5801da);_0x11513b['query'][_0x5869bd('0x25')]&&(_0x56580e[_0x5869bd('0x8')]=_[_0x5869bd('0x13')](_0x56580e[_0x5869bd('0x8')],{[Op['or']]:_['map'](_0x5801da,function(_0x5785aa){const _0x479f39=_0x5869bd;if(_0x5785aa['type']!==_0x479f39('0x1c')){const _0x5a0910={};return _0x5a0910[_0x5785aa[_0x479f39('0x17')]]={[Op[_0x479f39('0x19')]]:'%'+_0x11513b[_0x479f39('0x0')][_0x479f39('0x25')]+'%'},_0x5a0910;}})}));_0x56580e=_[_0x5869bd('0x13')]({},_0x56580e,_0x11513b['options']);const _0x1e6da6={'where':_0x56580e[_0x5869bd('0x8')]};return db[_0x5869bd('0xc')]['count'](_0x1e6da6)[_0x5869bd('0x1')](function(_0x5117c8){const _0x343bb9=_0x5869bd;return _0x56c4a8[_0x343bb9('0x22')]=_0x5117c8,_0x11513b[_0x343bb9('0x0')][_0x343bb9('0x3')]&&(_0x56580e[_0x343bb9('0x18')]=[{'all':!![]}]),db[_0x343bb9('0xc')][_0x343bb9('0x4')](_0x56580e);})['then'](function(_0x5cf9f6){const _0x4cf7ed=_0x5869bd;return _0x56c4a8[_0x4cf7ed('0xd')]=_0x5cf9f6,_0x56c4a8;})[_0x5869bd('0x1')](respondWithFilteredResult(_0x1a9589,_0x56580e))[_0x5869bd('0x9')](handleError(_0x1a9589,null));},exports[_0x3c7b61('0x1d')]=function(_0x233083,_0x5c4281){const _0x6ca6a2=_0x3c7b61;let _0x2cef7f={'raw':!![],'where':{'id':_0x233083['params']['id']}};const _0x438f69={};return _0x438f69[_0x6ca6a2('0xb')]=_[_0x6ca6a2('0xa')](db[_0x6ca6a2('0xc')][_0x6ca6a2('0xe')]),_0x438f69[_0x6ca6a2('0x0')]=_[_0x6ca6a2('0xa')](_0x233083[_0x6ca6a2('0x0')]),_0x438f69['filters']=_['intersection'](_0x438f69[_0x6ca6a2('0xb')],_0x438f69[_0x6ca6a2('0x0')]),_0x2cef7f['attributes']=_[_0x6ca6a2('0x31')](_0x438f69[_0x6ca6a2('0xb')],qs[_0x6ca6a2('0x16')](_0x233083['query'][_0x6ca6a2('0x16')])),_0x2cef7f[_0x6ca6a2('0x15')]=_0x2cef7f[_0x6ca6a2('0x15')][_0x6ca6a2('0x1e')]?_0x2cef7f[_0x6ca6a2('0x15')]:_0x438f69[_0x6ca6a2('0xb')],_0x233083[_0x6ca6a2('0x0')][_0x6ca6a2('0x3')]&&(_0x2cef7f['include']=[{'all':!![]}]),_0x2cef7f=_[_0x6ca6a2('0x13')]({},_0x2cef7f,_0x233083[_0x6ca6a2('0x24')]),db[_0x6ca6a2('0xc')][_0x6ca6a2('0x27')](_0x2cef7f)[_0x6ca6a2('0x1')](handleEntityNotFound(_0x5c4281,null))['then'](respondWithResult(_0x5c4281,null))['catch'](handleError(_0x5c4281,null));},exports[_0x3c7b61('0x26')]=function(_0x113b68,_0x188d05){const _0x3cd137=_0x3c7b61;return db[_0x3cd137('0xc')][_0x3cd137('0x26')](_0x113b68['body'],{})[_0x3cd137('0x1')](respondWithResult(_0x188d05,0xc9))[_0x3cd137('0x9')](handleError(_0x188d05,null));},exports[_0x3c7b61('0x1f')]=function(_0x3b25e2,_0xfadef){const _0x235a1d=_0x3c7b61;return _0x3b25e2[_0x235a1d('0x14')]['id']&&delete _0x3b25e2['body']['id'],db[_0x235a1d('0xc')]['findOne']({'where':{'id':_0x3b25e2[_0x235a1d('0x1a')]['id']}})[_0x235a1d('0x1')](handleEntityNotFound(_0xfadef,null))[_0x235a1d('0x1')](saveUpdates(_0x3b25e2['body'],null))[_0x235a1d('0x1')](respondWithResult(_0xfadef,null))[_0x235a1d('0x9')](handleError(_0xfadef,null));},exports[_0x3c7b61('0x2e')]=function(_0x487c70,_0x2603a0){const _0x26ade0=_0x3c7b61;return db[_0x26ade0('0xc')][_0x26ade0('0x27')]({'where':{'id':_0x487c70[_0x26ade0('0x1a')]['id']}})['then'](handleEntityNotFound(_0x2603a0,null))['then'](removeEntity(_0x2603a0,null))[_0x26ade0('0x9')](handleError(_0x2603a0,null));}; \ No newline at end of file +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 diff --git a/server/api/voiceQueuesLog/voiceQueuesLog.model.js b/server/api/voiceQueuesLog/voiceQueuesLog.model.js index fd0b72b..a6b77c4 100644 --- a/server/api/voiceQueuesLog/voiceQueuesLog.model.js +++ b/server/api/voiceQueuesLog/voiceQueuesLog.model.js @@ -1 +1 @@ -const a768_0x91e1=['dtm','event','VoiceQueuesLog','./voiceQueuesLog.attributes','event_dtm','define','voice_queues_log'];(function(_0x45bab5,_0x91e126){const _0x513fe3=function(_0x32f81f){while(--_0x32f81f){_0x45bab5['push'](_0x45bab5['shift']());}};_0x513fe3(++_0x91e126);}(a768_0x91e1,0x1f4));const a768_0x513f=function(_0x45bab5,_0x91e126){_0x45bab5=_0x45bab5-0x0;let _0x513fe3=a768_0x91e1[_0x45bab5];return _0x513fe3;};const _0xf0de0f=a768_0x513f;'use strict';const attributes=require(_0xf0de0f('0x0'));module['exports']=function(_0x32f81f){const _0x4ac662=_0xf0de0f,_0x5ec211=_0x32f81f[_0x4ac662('0x2')](_0x4ac662('0x6'),attributes,{'tableName':_0x4ac662('0x3'),'paranoid':![],'indexes':[{'name':_0x4ac662('0x1'),'fields':[_0x4ac662('0x5'),_0x4ac662('0x4')]}],'timestamps':![]});return _0x5ec211;}; \ No newline at end of file +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 diff --git a/server/api/voiceRecording/index.js b/server/api/voiceRecording/index.js index 5a679f0..166cb53 100644 --- a/server/api/voiceRecording/index.js +++ b/server/api/voiceRecording/index.js @@ -1 +1 @@ -const a769_0x5741=['Router','/describe','get','delete','./voiceRecording.controller','isAuthenticated','put','show','index','create','downloads','/:id/transcribe','/:id','exports','/:id/downloads','../../components/auth/service','download','post','/:id/download','express','downloadTranscribe'];(function(_0x414a92,_0x5741c3){const _0x2c11f4=function(_0x309831){while(--_0x309831){_0x414a92['push'](_0x414a92['shift']());}};_0x2c11f4(++_0x5741c3);}(a769_0x5741,0x1f2));const a769_0x2c11=function(_0x414a92,_0x5741c3){_0x414a92=_0x414a92-0x0;let _0x2c11f4=a769_0x5741[_0x414a92];return _0x2c11f4;};const _0x5bec9f=a769_0x2c11;'use strict';const express=require(_0x5bec9f('0x4')),router=express[_0x5bec9f('0x6')](),auth=require(_0x5bec9f('0x0')),controller=require(_0x5bec9f('0xa'));router[_0x5bec9f('0x8')]('/',auth[_0x5bec9f('0xb')](),controller[_0x5bec9f('0xe')]),router[_0x5bec9f('0x8')](_0x5bec9f('0x7'),auth['isAuthenticated'](),controller['describe']),router['get']('/:id',auth[_0x5bec9f('0xb')](),controller[_0x5bec9f('0xd')]),router[_0x5bec9f('0x8')](_0x5bec9f('0x3'),auth['isAuthenticated'](),controller[_0x5bec9f('0x1')]),router[_0x5bec9f('0x8')](_0x5bec9f('0x14'),controller[_0x5bec9f('0x10')]),router[_0x5bec9f('0x8')](_0x5bec9f('0x11'),auth[_0x5bec9f('0xb')](),controller[_0x5bec9f('0x5')]),router[_0x5bec9f('0x2')]('/',auth['isAuthenticated'](),controller[_0x5bec9f('0xf')]),router[_0x5bec9f('0x2')]('/:id/transcribe',auth[_0x5bec9f('0xb')](),controller['runTranscribe']),router[_0x5bec9f('0xc')]('/:id',auth[_0x5bec9f('0xb')](),controller['update']),router[_0x5bec9f('0x9')](_0x5bec9f('0x12'),auth['isAuthenticated'](),controller['destroy']),module[_0x5bec9f('0x13')]=router; \ No newline at end of file +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 diff --git a/server/api/voiceRecording/voiceRecording.attributes.js b/server/api/voiceRecording/voiceRecording.attributes.js index 9770be6..0f1138c 100644 --- a/server/api/voiceRecording/voiceRecording.attributes.js +++ b/server/api/voiceRecording/voiceRecording.attributes.js @@ -1 +1 @@ -const a770_0x3e84=['format','MM-DD-YYYY\x20HH:mm','createdAt','getDataValue','DATE','path','toString','channel','split','extname','updatedAt','FLOAT','VIRTUAL','setDataValue','NEW','TEXT','membername','STRING','exports','INTEGER'];(function(_0x48432b,_0x3e840b){const _0x23606d=function(_0xb11967){while(--_0xb11967){_0x48432b['push'](_0x48432b['shift']());}};_0x23606d(++_0x3e840b);}(a770_0x3e84,0x12d));const a770_0x2360=function(_0x48432b,_0x3e840b){_0x48432b=_0x48432b-0x0;let _0x23606d=a770_0x3e84[_0x48432b];return _0x23606d;};const _0x4cb143=a770_0x2360;'use strict';const Sequelize=require('sequelize'),moment=require('moment'),path=require(_0x4cb143('0x4'));module[_0x4cb143('0x11')]={'format':{'type':Sequelize[_0x4cb143('0xb')],'get':function(){const _0x2b079b=_0x4cb143;return this[_0x2b079b('0x2')]('value')?path[_0x2b079b('0x8')](this['getDataValue']('value')):undefined;}},'uniqueid':{'type':Sequelize['STRING']},'channel':{'type':Sequelize['STRING'],'set':function(_0xb11967){const _0x397a74=_0x4cb143;_0xb11967&&(this[_0x397a74('0xc')](_0x397a74('0x6'),_0xb11967),this['setDataValue'](_0x397a74('0xf'),_0xb11967[_0x397a74('0x7')](/\/|-/)[0x1]));}},'membername':{'type':Sequelize[_0x4cb143('0x10')]},'calleridnum':{'type':Sequelize[_0x4cb143('0x10')]},'calleridname':{'type':Sequelize[_0x4cb143('0x10')]},'connectedlinenum':{'type':Sequelize[_0x4cb143('0x10')]},'connectedlinename':{'type':Sequelize['STRING']},'accountcode':{'type':Sequelize[_0x4cb143('0x10')]},'context':{'type':Sequelize['STRING']},'exten':{'type':Sequelize[_0x4cb143('0x10')]},'value':{'type':Sequelize[_0x4cb143('0x10')]},'type':{'type':Sequelize[_0x4cb143('0x10')]},'rating':{'type':Sequelize[_0x4cb143('0x12')],'validate':{'max':0x5,'min':0x0}},'queue':{'type':Sequelize[_0x4cb143('0x10')]},'userDisposition':{'type':Sequelize[_0x4cb143('0x10')]},'userSecondDisposition':{'type':Sequelize[_0x4cb143('0x10')]},'userThirdDisposition':{'type':Sequelize['STRING']},'location':{'type':Sequelize['TEXT']},'transcribeName':{'type':Sequelize[_0x4cb143('0x10')]},'transcribeStatus':{'type':Sequelize[_0x4cb143('0x10')],'defaultValue':_0x4cb143('0xd')},'fileUri':{'type':Sequelize[_0x4cb143('0xe')]},'fileText':{'type':Sequelize[_0x4cb143('0xe')]},'failureReason':{'type':Sequelize[_0x4cb143('0xe')]},'sentiment':{'type':Sequelize[_0x4cb143('0x10')]},'sPositive':{'type':Sequelize['FLOAT']},'sNegative':{'type':Sequelize[_0x4cb143('0xa')]},'sNeutral':{'type':Sequelize['FLOAT']},'sMixed':{'type':Sequelize['FLOAT']},'tempSentiment':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'createdAt':{'type':Sequelize[_0x4cb143('0x3')],'get':function(){const _0x5ea540=_0x4cb143;return moment(this[_0x5ea540('0x2')](_0x5ea540('0x1')))['format'](_0x5ea540('0x0'))[_0x5ea540('0x5')]();}},'updatedAt':{'type':Sequelize[_0x4cb143('0x3')],'get':function(){const _0x3d0314=_0x4cb143;return moment(this[_0x3d0314('0x2')](_0x3d0314('0x9')))[_0x3d0314('0x13')](_0x3d0314('0x0'))[_0x3d0314('0x5')]();}}}; \ No newline at end of file +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 diff --git a/server/api/voiceRecording/voiceRecording.controller.js b/server/api/voiceRecording/voiceRecording.controller.js index 68b0e7c..9065ece 100644 --- a/server/api/voiceRecording/voiceRecording.controller.js +++ b/server/api/voiceRecording/voiceRecording.controller.js @@ -1 +1 @@ -const a771_0x53f1=['json','transcribeName','listBuckets','keys','../../mysqldb','[RUNTRANSCRIPT][%d]\x20Voice\x20recording\x20uploaded\x20in\x20bucket\x20%s\x20(%s)','uuid','col','rawAttributes','filter','map','includeAll','NEW','then','[RUNTRANSCRIPT][%d]\x20Transcription\x20job\x20%s\x20created','TranscribeService','sort','format','Location','../../config/environment','push','root','[RUNTRANSCRIPT][%d]\x20Sending\x20transcribe\x20request','include','.txt','create','$and','CloudProvider','runSentiment','TranscriptionJobName','sentiment','Voice\x20Recording\x20not\x20found','ValidationError','Buckets','catch','TranscriptionJob','unlink','Transcribe\x20not\x20configured','%s.cypher','limit','transcribeRegion','order','transcribeAccountId','filters','token','error-middleware/errors','bucket','unlinkSync','Sentiment\x20Analysis\x20not\x20configured','differenceBy','uniqueid','params','util','update','destroy','rows','/server/files/transcribes/transcribe_','query','Setting','offset','filename','value','error','transcribe','findOne','model','sequelize','createBucket','lodash','isNil','Bucket','undefined','merge','\x22\x20trovato\x20eseguo\x20la\x20cancellazione','[RUNTRANSCRIPT][%d]\x20Bucket\x20%s\x20available','downloadTranscribe','info','cancellazione\x20fisica\x20documento\x20%s','key','.cypher','stack','data1','data2','../../components/parsers/qs','File:\x20\x22','transcribeStatus','downloads','[RUNTRANSCRIPT][%d]\x20Bucket\x20%s\x20not\x20available','like','../../config/logger','VIRTUAL','type','Cloud\x20Provider\x20not\x20configured','attributes','show','length','Cloud\x20Provider\x20not\x20available','fields','download','pick','recording','end','decryptFile','VoiceRecording\x20not\x20found','where','VoiceRecording','language','Content-Range','options','secrets','Sequelize','intersection','existsSync','name','basename','index','send','message','findAll','[RUNTRANSCRIPT][%d]\x20Transcript\x20action\x20already\x20requested','and','extname','path','count','aws-sdk','describe','status','fieldName','startTranscriptionJob','set','TranscriptionJobStatus','../../components/encryptor','body','fileText'];(function(_0x41f7f5,_0x53f18a){const _0x3219e1=function(_0x26d28c){while(--_0x26d28c){_0x41f7f5['push'](_0x41f7f5['shift']());}};_0x3219e1(++_0x53f18a);}(a771_0x53f1,0x1a2));const a771_0x3219=function(_0x41f7f5,_0x53f18a){_0x41f7f5=_0x41f7f5-0x0;let _0x3219e1=a771_0x53f1[_0x41f7f5];return _0x3219e1;};const _0x57e566=a771_0x3219;'use strict';const util=require(_0x57e566('0x24')),path=require(_0x57e566('0x6a')),fs=require('fs'),_=require(_0x57e566('0x34')),AWS=require(_0x57e566('0x6c')),{v4:uuidv4}=require(_0x57e566('0x7c')),qs=require(_0x57e566('0x43')),logger=require(_0x57e566('0x49'))('api'),config=require(_0x57e566('0x3')),db=require(_0x57e566('0x7a'))['db'],{Op}=require('sequelize'),{InternalError}=require(_0x57e566('0x1d'));function respondWithResult(_0x26d28c,_0x383144){return _0x383144=_0x383144||0xc8,function(_0x47dcac){const _0x4515d7=a771_0x3219;if(_0x47dcac)return _0x26d28c[_0x4515d7('0x6e')](_0x383144)[_0x4515d7('0x76')](_0x47dcac);};}function respondWithFilteredResult(_0x2e780a,_0x39ad06){return function(_0x172066){const _0x3e0630=a771_0x3219;if(_0x172066){const _0x2bf8d6=_0x172066[_0x3e0630('0x6b')],_0x30ab56=_0x39ad06['offset'];let _0x158dd7=_0x39ad06[_0x3e0630('0x2b')]+_0x39ad06[_0x3e0630('0x17')],_0x574d57;return _0x158dd7>=_0x2bf8d6?(_0x158dd7=_0x2bf8d6,_0x574d57=0xc8):_0x574d57=0xce,_0x2e780a[_0x3e0630('0x6e')](_0x574d57),_0x2e780a[_0x3e0630('0x71')](_0x3e0630('0x5b'),_0x30ab56+'-'+_0x158dd7+'/'+_0x2bf8d6)[_0x3e0630('0x76')](_0x172066);}return null;};}function saveUpdates(_0x25f4da){return function(_0x4ad339){const _0x20c0d4=a771_0x3219;if(_0x4ad339)return _0x4ad339[_0x20c0d4('0x25')](_0x25f4da)[_0x20c0d4('0x83')](function(_0x4bfc36){return _0x4bfc36;});return null;};}function handleEntityNotFound(_0x48490d){return function(_0x2df180){return!_0x2df180&&_0x48490d['sendStatus'](0x194),_0x2df180;};}function handleError(_0x577bd7,_0xdfc6e9){return _0xdfc6e9=_0xdfc6e9||0x1f4,function(_0x51f4f1){const _0x23b90a=a771_0x3219;logger[_0x23b90a('0x2e')](_0x51f4f1[_0x23b90a('0x40')]),_0x51f4f1['name']&&delete _0x51f4f1['name'],_0x577bd7[_0x23b90a('0x6e')](_0xdfc6e9)[_0x23b90a('0x64')](_0x51f4f1);};}exports[_0x57e566('0x63')]=function(_0x206d74,_0x3d3ea6){const _0x44c0f2=_0x57e566;let _0x5bbee5={};const _0x376e86={},_0x50776e={'count':0x0,'rows':[]},_0x5e9ff4=_[_0x44c0f2('0x80')](db['VoiceRecording'][_0x44c0f2('0x7e')],function(_0x33413a){const _0x12ef6d=_0x44c0f2;return{'name':_0x33413a[_0x12ef6d('0x6f')],'type':_0x33413a[_0x12ef6d('0x4b')][_0x12ef6d('0x3e')]};});_0x376e86[_0x44c0f2('0x31')]=_[_0x44c0f2('0x21')](_['map'](_0x5e9ff4,_0x44c0f2('0x61')),['format']),_0x376e86['query']=_[_0x44c0f2('0x79')](_0x206d74[_0x44c0f2('0x29')]),_0x376e86[_0x44c0f2('0x1b')]=_[_0x44c0f2('0x5f')](_0x376e86[_0x44c0f2('0x31')],_0x376e86[_0x44c0f2('0x29')]),_0x5bbee5['attributes']=_[_0x44c0f2('0x5f')](_0x376e86['model'],qs[_0x44c0f2('0x51')](_0x206d74[_0x44c0f2('0x29')]['fields'])),_0x5bbee5[_0x44c0f2('0x4d')]=_0x5bbee5[_0x44c0f2('0x4d')][_0x44c0f2('0x4f')]?_0x5bbee5['attributes']:_0x376e86[_0x44c0f2('0x31')];typeof _0x206d74['query']['nolimit']===_0x44c0f2('0x37')&&(_0x5bbee5[_0x44c0f2('0x17')]=qs[_0x44c0f2('0x17')](_0x206d74[_0x44c0f2('0x29')][_0x44c0f2('0x17')]),_0x5bbee5[_0x44c0f2('0x2b')]=qs['offset'](_0x206d74['query'][_0x44c0f2('0x2b')]));_0x5bbee5[_0x44c0f2('0x19')]=qs[_0x44c0f2('0x0')](_0x206d74['query']['sort']),_0x5bbee5['where']=qs['filters'](_[_0x44c0f2('0x53')](_0x206d74[_0x44c0f2('0x29')],_0x376e86[_0x44c0f2('0x1b')]),_0x5e9ff4);_0x206d74[_0x44c0f2('0x29')][_0x44c0f2('0x7f')]&&(_0x5bbee5[_0x44c0f2('0x58')]=_[_0x44c0f2('0x38')](_0x5bbee5[_0x44c0f2('0x58')],{[Op['or']]:_['map'](_0x5e9ff4,function(_0x12ca92){const _0x250287=_0x44c0f2;if(_0x12ca92[_0x250287('0x4b')]!==_0x250287('0x4a')){const _0x10215b={};return _0x10215b[_0x12ca92[_0x250287('0x61')]]={[Op[_0x250287('0x48')]]:'%'+_0x206d74['query'][_0x250287('0x7f')]+'%'},_0x10215b;}})}));_0x5bbee5=_[_0x44c0f2('0x38')]({},_0x5bbee5,_0x206d74['options']);const _0x4252f7={'where':_0x5bbee5[_0x44c0f2('0x58')]};return db[_0x44c0f2('0x59')]['count'](_0x4252f7)[_0x44c0f2('0x83')](function(_0x215566){const _0x1d50bc=_0x44c0f2;return _0x50776e[_0x1d50bc('0x6b')]=_0x215566,_0x206d74['query'][_0x1d50bc('0x81')]&&(_0x5bbee5['include']=[{'all':!![]}]),db['VoiceRecording'][_0x1d50bc('0x66')](_0x5bbee5);})[_0x44c0f2('0x83')](function(_0xa9c382){const _0x33bd44=_0x44c0f2;return _0x50776e[_0x33bd44('0x27')]=_0xa9c382,_0x50776e;})[_0x44c0f2('0x83')](respondWithFilteredResult(_0x3d3ea6,_0x5bbee5))[_0x44c0f2('0x12')](handleError(_0x3d3ea6,null));},exports[_0x57e566('0x4e')]=function(_0x5a82fc,_0xa34561){const _0x15bd9f=_0x57e566;let _0x2dd52d={'raw':![],'where':{'id':_0x5a82fc[_0x15bd9f('0x23')]['id']}};const _0x569a18={};return _0x569a18[_0x15bd9f('0x31')]=_['keys'](db[_0x15bd9f('0x59')][_0x15bd9f('0x7e')]),_0x569a18['query']=_[_0x15bd9f('0x79')](_0x5a82fc[_0x15bd9f('0x29')]),_0x569a18[_0x15bd9f('0x1b')]=_[_0x15bd9f('0x5f')](_0x569a18[_0x15bd9f('0x31')],_0x569a18['query']),_0x2dd52d[_0x15bd9f('0x4d')]=_['intersection'](_0x569a18[_0x15bd9f('0x31')],qs[_0x15bd9f('0x51')](_0x5a82fc[_0x15bd9f('0x29')][_0x15bd9f('0x51')])),_0x2dd52d[_0x15bd9f('0x4d')]=_0x2dd52d['attributes'][_0x15bd9f('0x4f')]?_0x2dd52d[_0x15bd9f('0x4d')]:_0x569a18[_0x15bd9f('0x31')],_0x5a82fc[_0x15bd9f('0x29')][_0x15bd9f('0x81')]&&(_0x2dd52d[_0x15bd9f('0x7')]=[{'all':!![]}]),_0x2dd52d=_['merge']({},_0x2dd52d,_0x5a82fc[_0x15bd9f('0x5c')]),db[_0x15bd9f('0x59')]['findOne'](_0x2dd52d)[_0x15bd9f('0x83')](handleEntityNotFound(_0xa34561,null))[_0x15bd9f('0x83')](respondWithResult(_0xa34561,null))[_0x15bd9f('0x12')](handleError(_0xa34561,null));},exports[_0x57e566('0x9')]=function(_0x36c4cf,_0x2ec847){const _0x2b1fcc=_0x57e566;return db[_0x2b1fcc('0x59')][_0x2b1fcc('0x9')](_0x36c4cf['body'],{})[_0x2b1fcc('0x83')](respondWithResult(_0x2ec847,0xc9))[_0x2b1fcc('0x12')](handleError(_0x2ec847,null));},exports['update']=function(_0x57c738,_0x5f01c0){const _0x5ec16f=_0x57e566;return _0x57c738[_0x5ec16f('0x74')]['id']&&delete _0x57c738[_0x5ec16f('0x74')]['id'],db['VoiceRecording']['findOne']({'where':{'id':_0x57c738[_0x5ec16f('0x23')]['id']}})[_0x5ec16f('0x83')](handleEntityNotFound(_0x5f01c0,null))[_0x5ec16f('0x83')](saveUpdates(_0x57c738[_0x5ec16f('0x74')],null))[_0x5ec16f('0x83')](respondWithResult(_0x5f01c0,null))['catch'](handleError(_0x5f01c0,null));},exports[_0x57e566('0x6d')]=function(_0x57ed28,_0x1a32b5){const _0xd628f0=_0x57e566;return db[_0xd628f0('0x59')][_0xd628f0('0x6d')]()[_0xd628f0('0x83')](respondWithResult(_0x1a32b5,null))['catch'](handleError(_0x1a32b5,null));},exports[_0x57e566('0x52')]=function(_0x3bc2fe,_0x3fc20c){const _0x3e60e8=_0x57e566,_0x261c4f=require(_0x3e60e8('0x73'));let _0x30e9f2=![];const _0x580cdd={};return _0x3bc2fe['query'][_0x3e60e8('0x4b')]&&_0x3bc2fe['query'][_0x3e60e8('0x4b')]===_0x3e60e8('0x22')?_0x580cdd[_0x3e60e8('0x22')]=_0x3bc2fe[_0x3e60e8('0x23')]['id']:_0x580cdd['id']=_0x3bc2fe[_0x3e60e8('0x23')]['id'],db['VoiceRecording']['findOne']({'where':_0x580cdd,'attributes':['id','value'],'raw':!![]})[_0x3e60e8('0x83')](handleEntityNotFound(_0x3fc20c,null))[_0x3e60e8('0x83')](function(_0x55bbc4){const _0x4daf02=_0x3e60e8;if(_0x55bbc4){const _0xf4a6cb=_0x55bbc4[_0x4daf02('0x2d')],_0x359e60=util['format'](_0x4daf02('0x16'),_0xf4a6cb);if(fs[_0x4daf02('0x60')](_0x359e60))return _0x30e9f2=!![],_0x261c4f[_0x4daf02('0x56')](_0x359e60,_0xf4a6cb,config[_0x4daf02('0x5d')][_0x4daf02('0x54')])[_0x4daf02('0x83')](function(){return _0x55bbc4;});return _0x55bbc4;}})[_0x3e60e8('0x83')](function(_0x4a804f){const _0x3fb758=_0x3e60e8;if(_0x4a804f){const _0x442633=_0x4a804f[_0x3fb758('0x2d')];if(!fs[_0x3fb758('0x60')](_0x442633))throw new db[(_0x3fb758('0x5e'))][(_0x3fb758('0x10'))](_0x3fb758('0x57'));return _0x4a804f['filename']?_0x3fc20c[_0x3fb758('0x52')](_0x442633,_0x4a804f[_0x3fb758('0x2c')]+path[_0x3fb758('0x69')](_0x442633),function(){const _0x5b0da5=_0x3fb758;_0x30e9f2&&fs[_0x5b0da5('0x14')](_0x442633);}):_0x3fc20c[_0x3fb758('0x52')](_0x442633,function(){const _0x16781e=_0x3fb758;_0x30e9f2&&fs[_0x16781e('0x14')](_0x442633);});}})['catch'](function(_0x3ad515){const _0x273a03=_0x3e60e8;if(_0x3ad515[_0x273a03('0x65')]===_0x273a03('0x57'))_0x3fc20c['status'](0x194)['send']('Not\x20found');else return handleError(_0x3fc20c,null);});},exports[_0x57e566('0x46')]=function(_0xd49c85,_0x19546c){const _0x5cbab3=_0x57e566,_0x49cfb3=require('../../components/encryptor');let _0xf545ee=![];const _0x374f3d={[Op[_0x5cbab3('0x68')]]:[db[_0x5cbab3('0x32')]['where'](db[_0x5cbab3('0x32')]['fn']('MD5',db[_0x5cbab3('0x32')][_0x5cbab3('0x7d')](_0x5cbab3('0x22'))),_0xd49c85[_0x5cbab3('0x29')][_0x5cbab3('0x1c')])]};return _0xd49c85[_0x5cbab3('0x29')]['type']&&_0xd49c85[_0x5cbab3('0x29')][_0x5cbab3('0x4b')]===_0x5cbab3('0x22')?_0x374f3d[_0x5cbab3('0xa')][_0x5cbab3('0x4')]({'uniqueid':_0xd49c85[_0x5cbab3('0x23')]['id']}):_0x374f3d[_0x5cbab3('0xa')][_0x5cbab3('0x4')]({'id':_0xd49c85[_0x5cbab3('0x23')]['id']}),db['VoiceRecording'][_0x5cbab3('0x30')]({'where':_0x374f3d,'attributes':['id','value'],'raw':!![]})[_0x5cbab3('0x83')](handleEntityNotFound(_0x19546c,null))[_0x5cbab3('0x83')](function(_0x488343){const _0x3f74e2=_0x5cbab3;if(_0x488343){const _0xf48457=util[_0x3f74e2('0x1')](_0x3f74e2('0x16'),_0x488343[_0x3f74e2('0x2d')]);if(fs['existsSync'](_0xf48457))return _0xf545ee=!![],_0x49cfb3[_0x3f74e2('0x56')](_0xf48457,_0x488343[_0x3f74e2('0x2d')],config[_0x3f74e2('0x5d')][_0x3f74e2('0x54')])[_0x3f74e2('0x83')](function(){return _0x488343;});return _0x488343;}})['then'](function(_0xecb6cf){const _0x380dad=_0x5cbab3;if(_0xecb6cf){if(!fs['existsSync'](_0xecb6cf[_0x380dad('0x2d')]))throw new db[(_0x380dad('0x5e'))]['ValidationError'](_0x380dad('0x57'));return _0xecb6cf[_0x380dad('0x2c')]?_0x19546c[_0x380dad('0x52')](_0xecb6cf[_0x380dad('0x2d')],_0xecb6cf[_0x380dad('0x2c')]+path[_0x380dad('0x69')](_0xecb6cf[_0x380dad('0x2d')]),function(){const _0x3e79cc=_0x380dad;_0xf545ee&&fs['unlink'](_0xecb6cf[_0x3e79cc('0x2d')]);}):_0x19546c[_0x380dad('0x52')](_0xecb6cf[_0x380dad('0x2d')],function(){const _0x5e9ac9=_0x380dad;_0xf545ee&&fs[_0x5e9ac9('0x14')](_0xecb6cf['value']);});}})[_0x5cbab3('0x12')](handleError(_0x19546c,null));},exports[_0x57e566('0x26')]=function(_0x5def9a,_0x5835d3){const _0x55790d=_0x57e566;return db[_0x55790d('0x59')][_0x55790d('0x30')]({'where':{'id':_0x5def9a['params']['id']}})['then'](function(_0x386fcb){if(!_0x386fcb)throw new ReferenceError('Entity\x20not\x20found');return _0x386fcb;})[_0x55790d('0x83')](function(_0x44748d){const _0x5647e8=_0x55790d;let _0x11671d=_0x44748d[_0x5647e8('0x2d')];return logger[_0x5647e8('0x3c')](_0x5647e8('0x3d'),_0x11671d),!_[_0x5647e8('0x35')](_0x44748d[_0x5647e8('0x2d')])&&fs[_0x5647e8('0x60')](_0x11671d)&&(logger['info'](_0x5647e8('0x44')+_0x11671d+_0x5647e8('0x39')),fs[_0x5647e8('0x1f')](_0x11671d)),_0x11671d=_0x11671d+_0x5647e8('0x3f'),!_[_0x5647e8('0x35')](_0x44748d[_0x5647e8('0x2d')])&&fs[_0x5647e8('0x60')](_0x11671d)&&(logger[_0x5647e8('0x3c')](_0x5647e8('0x44')+_0x11671d+_0x5647e8('0x39')),fs[_0x5647e8('0x1f')](_0x11671d)),_0x44748d;})[_0x55790d('0x83')](function(_0x588d96){const _0x4e4f69=_0x55790d;if(!_0x588d96)throw new InternalError();return _0x588d96[_0x4e4f69('0x26')]();})[_0x55790d('0x83')](function(){const _0x5d908f=_0x55790d;_0x5835d3[_0x5d908f('0x6e')](0xcc)[_0x5d908f('0x55')]();})['catch'](handleError(_0x5835d3,null));};function getBucketslist(_0x222db1,_0x5ad43d,_0x3ae5e6){return new Promise(function(_0x21431c,_0xaf82a1){const _0x43506a=a771_0x3219,_0x547b4e=new AWS['S3']({'accessKeyId':_0x5ad43d,'secretAccessKey':_0x222db1,'region':_0x3ae5e6});_0x547b4e[_0x43506a('0x78')]({},function(_0x2935f5,_0x5cae1b){return _0x2935f5?_0xaf82a1(_0x2935f5):_0x21431c(_0x5cae1b);});});}function createBucket(_0x1b021e,_0x2d9630,_0x3f62ca,_0x5c192c){return new Promise(function(_0x4084a8,_0x330311){const _0x3178b8=a771_0x3219,_0x3d82fe=new AWS['S3']({'accessKeyId':_0x2d9630,'secretAccessKey':_0x1b021e,'region':_0x3f62ca});_0x3d82fe[_0x3178b8('0x33')]({'Bucket':_0x5c192c},function(_0x35dedf,_0x262c9e){return _0x35dedf?_0x330311(_0x35dedf):_0x4084a8(_0x262c9e);});});}function uploadFile(_0x1c572b,_0x2bd4fa,_0x3d8e9c,_0x4e9976,_0x3f234c,_0x39a73c){return new Promise(function(_0x22a976,_0x516828){const _0x3aa68d=new AWS['S3']({'accessKeyId':_0x2bd4fa,'secretAccessKey':_0x1c572b,'region':_0x3d8e9c});_0x3aa68d['upload']({'Bucket':_0x4e9976,'Key':_0x3f234c,'Body':_0x39a73c},function(_0x29580b,_0x5f07ee){return _0x29580b?_0x516828(_0x29580b):_0x22a976(_0x5f07ee);});});}function startTranscribe(_0x1f193c,_0x50b8f6,_0x1a5c17,_0x56699b,_0x292feb,_0x2fd138){return new Promise(function(_0x4c0a0e,_0x12147f){const _0x314e99=a771_0x3219,_0x18fa20=new AWS[(_0x314e99('0x85'))]({'accessKeyId':_0x50b8f6,'secretAccessKey':_0x1f193c,'region':_0x1a5c17});_0x18fa20[_0x314e99('0x70')]({'TranscriptionJobName':_0x56699b,'LanguageCode':_0x292feb,'Media':{'MediaFileUri':_0x2fd138}},function(_0x520d6a,_0x187fe7){return _0x520d6a?_0x12147f(_0x520d6a):_0x4c0a0e(_0x187fe7);});});}function transcribe(_0x4cb20d,_0x57db81,_0x34d43d,_0x2baeeb,_0x2c0264,_0x1b5382,_0x4b3456){return new Promise(function(_0x2025bb,_0xdb511){const _0x5a89e5=a771_0x3219,_0x53b7a5={};return logger[_0x5a89e5('0x3c')](util[_0x5a89e5('0x1')]('[RUNTRANSCRIPT][%d]\x20Starting\x20voice\x20recording\x20upload\x20in\x20bucket\x20%s',_0x4cb20d,_0x2c0264)),uploadFile(_0x57db81,_0x34d43d,_0x2baeeb,_0x2c0264,path[_0x5a89e5('0x62')](_0x1b5382),fs['readFileSync'](_0x1b5382))[_0x5a89e5('0x83')](function(_0x2e3fdb){const _0x269efd=_0x5a89e5;return logger[_0x269efd('0x3c')](util[_0x269efd('0x1')](_0x269efd('0x7b'),_0x4cb20d,_0x2c0264,_0x2e3fdb[_0x269efd('0x2')])),_0x53b7a5['bucket']=_0x2e3fdb[_0x269efd('0x36')],_0x53b7a5['location']=_0x2e3fdb[_0x269efd('0x2')],logger[_0x269efd('0x3c')](util[_0x269efd('0x1')](_0x269efd('0x6'),_0x4cb20d)),startTranscribe(_0x57db81,_0x34d43d,_0x2baeeb,uuidv4(),_0x4b3456,_0x2e3fdb[_0x269efd('0x2')]);})['then'](function(_0x1fcd4c){const _0x49bbf1=_0x5a89e5;return logger['info'](util[_0x49bbf1('0x1')](_0x49bbf1('0x84'),_0x4cb20d,_0x1fcd4c[_0x49bbf1('0x13')][_0x49bbf1('0xd')])),_0x53b7a5[_0x49bbf1('0x77')]=_0x1fcd4c['TranscriptionJob'][_0x49bbf1('0xd')],_0x53b7a5[_0x49bbf1('0x45')]=_0x1fcd4c[_0x49bbf1('0x13')][_0x49bbf1('0x72')],_0x2025bb(_0x53b7a5);})[_0x5a89e5('0x12')](function(_0x551cc3){return _0xdb511(_0x551cc3);});});}exports['runTranscribe']=function(_0x2c67d4,_0x831ede){const _0x1a6d11=_0x57e566;let _0x1e322e,_0x382979,_0x59df76;const _0x1fc4b7=require(_0x1a6d11('0x73'));return db['VoiceRecording'][_0x1a6d11('0x30')]({'where':{'id':_0x2c67d4[_0x1a6d11('0x23')]['id']}})[_0x1a6d11('0x83')](function(_0x55ec15){const _0x126092=_0x1a6d11;if(_0x55ec15){const _0x5f443f=util[_0x126092('0x1')](_0x126092('0x16'),_0x55ec15[_0x126092('0x2d')]);if(fs[_0x126092('0x60')](_0x5f443f))return _0x1fc4b7['decryptFile'](_0x5f443f,_0x55ec15['value'],config[_0x126092('0x5d')][_0x126092('0x54')])[_0x126092('0x83')](function(){return _0x55ec15;});return _0x55ec15;}})[_0x1a6d11('0x83')](function(_0x205533){const _0x211f1c=_0x1a6d11;if(!_0x205533)throw new db[(_0x211f1c('0x5e'))][(_0x211f1c('0x10'))](_0x211f1c('0xf'));return _0x382979=_0x205533,db[_0x211f1c('0x2a')][_0x211f1c('0x30')]({'where':{'id':0x1}});})['then'](handleEntityNotFound(_0x831ede,null))[_0x1a6d11('0x83')](function(_0x3fbbb2){const _0x1dd874=_0x1a6d11;if(_0x3fbbb2){_0x1e322e=_0x3fbbb2;if(!_0x1e322e[_0x1dd874('0x2f')]||!_0x1e322e['transcribeAccountId']||!_0x1e322e[_0x1dd874('0x18')]||!_0x1e322e[_0x1dd874('0x5a')]||!_0x1e322e[_0x1dd874('0x1e')])throw new db[(_0x1dd874('0x5e'))][(_0x1dd874('0x10'))](_0x1dd874('0x15'));if(_0x2c67d4[_0x1dd874('0x74')][_0x1dd874('0xc')]&&(!_0x1e322e[_0x1dd874('0xe')]||!_0x1e322e['sentimentAccountId']||!_0x1e322e['sentimentRegion']||!_0x1e322e[_0x1dd874('0x5a')]||!_0x1e322e[_0x1dd874('0x1e')]))throw new db['Sequelize']['ValidationError'](_0x1dd874('0x20'));return db[_0x1dd874('0xb')][_0x1dd874('0x30')]({'where':{'id':_0x1e322e[_0x1dd874('0x1a')]}});}})['then'](function(_0x83f19a){const _0x5c7fb7=_0x1a6d11;if(!_0x83f19a)throw new db['Sequelize'][(_0x5c7fb7('0x10'))](_0x5c7fb7('0x50'));if(!_0x83f19a[_0x5c7fb7('0x41')]||!_0x83f19a[_0x5c7fb7('0x42')])throw new db[(_0x5c7fb7('0x5e'))][(_0x5c7fb7('0x10'))](_0x5c7fb7('0x4c'));return _0x59df76=_0x83f19a,getBucketslist(_0x59df76[_0x5c7fb7('0x41')],_0x59df76['data2'],_0x1e322e[_0x5c7fb7('0x18')]);})[_0x1a6d11('0x83')](function(_0x45f7f2){const _0x202fa7=_0x1a6d11;if(_0x45f7f2&&_0x45f7f2[_0x202fa7('0x11')]){const _0x54eca1=_['find'](_0x45f7f2[_0x202fa7('0x11')],function(_0x2b569f){const _0xf36389=_0x202fa7;return _0x2b569f['Name']===_0x1e322e[_0xf36389('0x1e')];});if(!_0x54eca1)return logger[_0x202fa7('0x3c')](util['format'](_0x202fa7('0x47'),_0x2c67d4[_0x202fa7('0x23')]['id'],_0x1e322e[_0x202fa7('0x1e')])),createBucket(_0x59df76[_0x202fa7('0x41')],_0x59df76[_0x202fa7('0x42')],_0x1e322e[_0x202fa7('0x18')],_0x1e322e[_0x202fa7('0x1e')]);logger[_0x202fa7('0x3c')](util['format'](_0x202fa7('0x3a'),_0x2c67d4[_0x202fa7('0x23')]['id'],_0x1e322e['bucket']));return;}})[_0x1a6d11('0x83')](function(){const _0x2ef274=_0x1a6d11;return _0x382979[_0x2ef274('0x45')]===_0x2ef274('0x82')?transcribe(_0x2c67d4[_0x2ef274('0x23')]['id'],_0x59df76['data1'],_0x59df76[_0x2ef274('0x42')],_0x1e322e[_0x2ef274('0x18')],_0x1e322e['bucket'],_0x382979[_0x2ef274('0x2d')],_0x1e322e['language']):(logger[_0x2ef274('0x3c')](util[_0x2ef274('0x1')](_0x2ef274('0x67'),_0x2c67d4[_0x2ef274('0x23')]['id'])),{'transcribeStatus':'IN_PROGRESS'});})['then'](function(_0x2e3378){const _0x5e52aa=_0x1a6d11;if(_0x2e3378)return _0x2e3378['tempSentiment']=_0x2c67d4['body'][_0x5e52aa('0xc')],_0x382979['update'](_0x2e3378);})[_0x1a6d11('0x83')](respondWithResult(_0x831ede,null))[_0x1a6d11('0x12')](handleError(_0x831ede,null));};function writeFile(_0x5e1428,_0x2fe433){return new Promise(function(_0x1c9442,_0x57ff97){fs['writeFile'](_0x2fe433,_0x5e1428,function(_0x3acc04,_0x119a6f){return _0x3acc04?_0x57ff97(_0x3acc04):_0x1c9442(_0x119a6f);});});}exports[_0x57e566('0x3b')]=function(_0x361fdf,_0x24a6c2){const _0x55bc47=_0x57e566;return db[_0x55bc47('0x59')][_0x55bc47('0x30')]({'where':{'id':_0x361fdf[_0x55bc47('0x23')]['id']}})['then'](handleEntityNotFound(_0x24a6c2))[_0x55bc47('0x83')](function(_0x3ec555){const _0x34f897=_0x55bc47;if(_0x3ec555&&_0x3ec555['fileText']){const _0x5729ae=_0x3ec555[_0x34f897('0x75')],_0x1397d4=config[_0x34f897('0x5')]+_0x34f897('0x28')+_0x3ec555['id']+_0x34f897('0x8');if(fs[_0x34f897('0x60')](_0x1397d4))return _0x1397d4;return writeFile(_0x5729ae,_0x1397d4)[_0x34f897('0x83')](function(){return _0x1397d4;});}else throw new db['Sequelize'][(_0x34f897('0x10'))]('Transcript\x20not\x20available');})[_0x55bc47('0x83')](function(_0x559276){const _0x5ab0ef=_0x55bc47;return _0x24a6c2[_0x5ab0ef('0x52')](_0x559276);})[_0x55bc47('0x12')](handleError(_0x24a6c2));}; \ No newline at end of file +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 diff --git a/server/api/voiceRecording/voiceRecording.model.js b/server/api/voiceRecording/voiceRecording.model.js index 6d7a960..ebd74b0 100644 --- a/server/api/voiceRecording/voiceRecording.model.js +++ b/server/api/voiceRecording/voiceRecording.model.js @@ -1 +1 @@ -const a772_0x376d=['voice_recordings','exports','./voiceRecording.attributes'];(function(_0x3c877a,_0x376d1d){const _0x549a5e=function(_0x3a943a){while(--_0x3a943a){_0x3c877a['push'](_0x3c877a['shift']());}};_0x549a5e(++_0x376d1d);}(a772_0x376d,0x17b));const a772_0x549a=function(_0x3c877a,_0x376d1d){_0x3c877a=_0x3c877a-0x0;let _0x549a5e=a772_0x376d[_0x3c877a];return _0x549a5e;};const _0x1dd155=a772_0x549a;'use strict';const attributes=require(_0x1dd155('0x1'));module[_0x1dd155('0x0')]=function(_0x3a943a){const _0x3b7668=_0x1dd155,_0x45ff73=_0x3a943a['define']('VoiceRecording',attributes,{'tableName':_0x3b7668('0x2'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});return _0x45ff73;}; \ No newline at end of file +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 diff --git a/server/api/voiceRecording/voiceRecording.rpc.js b/server/api/voiceRecording/voiceRecording.rpc.js index 127e1f1..777cfc4 100644 --- a/server/api/voiceRecording/voiceRecording.rpc.js +++ b/server/api/voiceRecording/voiceRecording.rpc.js @@ -1 +1 @@ -const a773_0x919e=['create','value','VoiceRecording','callRecordingEncryption','limit','rpc','../../config/environment','info','util','attributes','format','body','stringify','then','update','Setting','encryptFile','recording','debug','CreateVoiceRecording','findOne','CreateVoiceRecording\x20file\x20encrypted','unlink','secrets','error','catch','message','UpdateVoiceRecording','raw','options','../../config/logger','../../components/encryptor','%s.cypher'];(function(_0x2d3baf,_0x919eda){const _0x3371e2=function(_0x222092){while(--_0x222092){_0x2d3baf['push'](_0x2d3baf['shift']());}};_0x3371e2(++_0x919eda);}(a773_0x919e,0x1c9));const a773_0x3371=function(_0x2d3baf,_0x919eda){_0x2d3baf=_0x2d3baf-0x0;let _0x3371e2=a773_0x919e[_0x2d3baf];return _0x3371e2;};const _0x5d5350=a773_0x3371;'use strict';const util=require(_0x5d5350('0xd')),fs=require('fs'),db=require('../../mysqldb')['db'],logger=require(_0x5d5350('0x2'))(_0x5d5350('0xa')),config=require(_0x5d5350('0xb'));exports[_0x5d5350('0x20')]=function(_0x222092){const _0x44357d=this;return new Promise(function(_0x21980e,_0x39dedf){const _0x339c78=a773_0x3371;return db[_0x339c78('0x7')][_0x339c78('0x13')](_0x222092[_0x339c78('0x10')],{'raw':_0x222092[_0x339c78('0x1')]?_0x222092[_0x339c78('0x1')][_0x339c78('0x0')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x222092['options']?_0x222092['options']['where']||null:null,'attributes':_0x222092[_0x339c78('0x1')]?_0x222092['options'][_0x339c78('0xe')]||null:null,'limit':_0x222092[_0x339c78('0x1')]?_0x222092['options'][_0x339c78('0x9')]||null:null})[_0x339c78('0x12')](function(_0x44ccc4){const _0x2181cd=_0x339c78;logger[_0x2181cd('0xc')](_0x2181cd('0x20'),_0x222092),logger[_0x2181cd('0x17')](_0x2181cd('0x20'),_0x222092,JSON[_0x2181cd('0x11')](_0x44ccc4)),_0x21980e(_0x44ccc4);})[_0x339c78('0x1e')](function(_0x54cdc1){const _0x2c7d72=_0x339c78;logger[_0x2c7d72('0x1d')](_0x2c7d72('0x20'),_0x54cdc1[_0x2c7d72('0x1f')],_0x222092),_0x39dedf(_0x44357d[_0x2c7d72('0x1d')](0x1f4,_0x54cdc1[_0x2c7d72('0x1f')]));});});},exports[_0x5d5350('0x18')]=function(_0x205656){const _0x394100=this;return new Promise(function(_0x430fec,_0x5e8e4f){const _0x5c166e=a773_0x3371,_0x5f4a8c=require(_0x5c166e('0x3'));let _0x20ace3;return db[_0x5c166e('0x14')][_0x5c166e('0x19')]({'attributes':['id',_0x5c166e('0x8')],'where':{'id':0x1},'raw':!![]})['then'](function(_0x2d5ff8){const _0x2bd4f0=_0x5c166e;return _0x20ace3=_0x2d5ff8,db[_0x2bd4f0('0x7')][_0x2bd4f0('0x5')](_0x205656['body']);})[_0x5c166e('0x12')](function(_0x37bb13){const _0x2ad77c=_0x5c166e;if(_0x20ace3['callRecordingEncryption']&&fs['existsSync'](_0x37bb13[_0x2ad77c('0x6')])){const _0x214099=util[_0x2ad77c('0xf')](_0x2ad77c('0x4'),_0x37bb13[_0x2ad77c('0x6')]);return _0x5f4a8c[_0x2ad77c('0x15')](_0x37bb13[_0x2ad77c('0x6')],_0x214099,config[_0x2ad77c('0x1c')][_0x2ad77c('0x16')])[_0x2ad77c('0x12')](function(){const _0x533b3f=_0x2ad77c;return fs[_0x533b3f('0x1b')](_0x37bb13[_0x533b3f('0x6')]),logger['info'](_0x533b3f('0x1a')),_0x37bb13;});}return _0x37bb13;})[_0x5c166e('0x12')](function(_0x4bedc5){const _0x53cf28=_0x5c166e;logger[_0x53cf28('0xc')](_0x53cf28('0x18'),_0x205656),logger[_0x53cf28('0x17')](_0x53cf28('0x18'),_0x205656,JSON[_0x53cf28('0x11')](_0x4bedc5)),_0x430fec(_0x4bedc5);})[_0x5c166e('0x1e')](function(_0x45badd){const _0xb46110=_0x5c166e;logger[_0xb46110('0x1d')](_0xb46110('0x18'),_0x45badd[_0xb46110('0x1f')],_0x205656),_0x5e8e4f(_0x394100[_0xb46110('0x1d')](0x1f4,_0x45badd[_0xb46110('0x1f')]));});});}; \ No newline at end of file +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 diff --git a/server/api/voiceTransferReport/index.js b/server/api/voiceTransferReport/index.js index 72d0994..3e36972 100644 --- a/server/api/voiceTransferReport/index.js +++ b/server/api/voiceTransferReport/index.js @@ -1 +1 @@ -const a774_0x62c0=['exports','get','create','index','Router','put','delete','../../components/auth/service','isAuthenticated','./voiceTransferReport.controller','destroy','/:id','update'];(function(_0x4d0378,_0x62c08b){const _0x5cd87c=function(_0x4b66fe){while(--_0x4b66fe){_0x4d0378['push'](_0x4d0378['shift']());}};_0x5cd87c(++_0x62c08b);}(a774_0x62c0,0x102));const a774_0x5cd8=function(_0x4d0378,_0x62c08b){_0x4d0378=_0x4d0378-0x0;let _0x5cd87c=a774_0x62c0[_0x4d0378];return _0x5cd87c;};const _0xc1cb4c=a774_0x5cd8;'use strict';const express=require('express'),router=express[_0xc1cb4c('0x6')](),auth=require(_0xc1cb4c('0x9')),controller=require(_0xc1cb4c('0xb'));router[_0xc1cb4c('0x3')]('/',auth[_0xc1cb4c('0xa')](),controller[_0xc1cb4c('0x5')]),router[_0xc1cb4c('0x3')](_0xc1cb4c('0x0'),auth['isAuthenticated'](),controller['show']),router['post']('/',auth[_0xc1cb4c('0xa')](),controller[_0xc1cb4c('0x4')]),router[_0xc1cb4c('0x7')](_0xc1cb4c('0x0'),auth[_0xc1cb4c('0xa')](),controller[_0xc1cb4c('0x1')]),router[_0xc1cb4c('0x8')]('/:id',auth['isAuthenticated'](),controller[_0xc1cb4c('0xc')]),module[_0xc1cb4c('0x2')]=router; \ No newline at end of file +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 diff --git a/server/api/voiceTransferReport/voiceTransferReport.attributes.js b/server/api/voiceTransferReport/voiceTransferReport.attributes.js index 227cd87..21d3249 100644 --- a/server/api/voiceTransferReport/voiceTransferReport.attributes.js +++ b/server/api/voiceTransferReport/voiceTransferReport.attributes.js @@ -1 +1 @@ -const a775_0x1531=['blind','STRING','Yes','sequelize','ENUM','exports'];(function(_0x903f75,_0x153119){const _0xcfd664=function(_0x28e7a5){while(--_0x28e7a5){_0x903f75['push'](_0x903f75['shift']());}};_0xcfd664(++_0x153119);}(a775_0x1531,0xd9));const a775_0xcfd6=function(_0x903f75,_0x153119){_0x903f75=_0x903f75-0x0;let _0xcfd664=a775_0x1531[_0x903f75];return _0xcfd664;};const _0x33ad4f=a775_0xcfd6;'use strict';const Sequelize=require(_0x33ad4f('0x2'));module[_0x33ad4f('0x4')]={'type':{'type':Sequelize[_0x33ad4f('0x3')](_0x33ad4f('0x5'),'attended')},'result':{'type':Sequelize[_0x33ad4f('0x0')]},'transfererchannel':{'type':Sequelize[_0x33ad4f('0x0')]},'transferercalleridnum':{'type':Sequelize[_0x33ad4f('0x0')]},'transferercalleridname':{'type':Sequelize[_0x33ad4f('0x0')]},'transfererconnectedlinenum':{'type':Sequelize['STRING']},'transfererconnectedlinename':{'type':Sequelize[_0x33ad4f('0x0')]},'transfereraccountcode':{'type':Sequelize[_0x33ad4f('0x0')]},'transferercontext':{'type':Sequelize[_0x33ad4f('0x0')]},'transfererexten':{'type':Sequelize[_0x33ad4f('0x0')]},'transfererlinkedid':{'type':Sequelize[_0x33ad4f('0x0')]},'transfereechannel':{'type':Sequelize[_0x33ad4f('0x0')]},'transfereecalleridnum':{'type':Sequelize[_0x33ad4f('0x0')]},'transfereecalleridname':{'type':Sequelize[_0x33ad4f('0x0')]},'transfereeconnectedlinenum':{'type':Sequelize['STRING']},'transfereeconnectedlinename':{'type':Sequelize[_0x33ad4f('0x0')]},'transfereeaccountcode':{'type':Sequelize[_0x33ad4f('0x0')]},'transfereecontext':{'type':Sequelize['STRING']},'transfereeexten':{'type':Sequelize[_0x33ad4f('0x0')]},'transfereelinkedid':{'type':Sequelize[_0x33ad4f('0x0')]},'isexternal':{'type':Sequelize['ENUM'](_0x33ad4f('0x1'),'No')},'context':{'type':Sequelize['STRING']},'extension':{'type':Sequelize[_0x33ad4f('0x0')]}}; \ No newline at end of file +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 diff --git a/server/api/voiceTransferReport/voiceTransferReport.controller.js b/server/api/voiceTransferReport/voiceTransferReport.controller.js index c85bd7a..92b431c 100644 --- a/server/api/voiceTransferReport/voiceTransferReport.controller.js +++ b/server/api/voiceTransferReport/voiceTransferReport.controller.js @@ -1 +1 @@ -const a776_0x92d4=['body','rows','include','keys','../../components/parsers/qs','query','undefined','pick','type','order','length','set','map','VoiceTransferReport','name','stack','filter','api','../../config/logger','catch','../../mysqldb','key','like','count','where','findAll','attributes','limit','model','filters','json','then','options','VIRTUAL','params','merge','show','sequelize','offset','fields','index','create','end','update','nolimit','intersection','includeAll','error','findOne','status','rawAttributes','destroy'];(function(_0x45e6c2,_0x92d41e){const _0x4915e6=function(_0x2d214d){while(--_0x2d214d){_0x45e6c2['push'](_0x45e6c2['shift']());}};_0x4915e6(++_0x92d41e);}(a776_0x92d4,0x118));const a776_0x4915=function(_0x45e6c2,_0x92d41e){_0x45e6c2=_0x45e6c2-0x0;let _0x4915e6=a776_0x92d4[_0x45e6c2];return _0x4915e6;};const _0x20c82f=a776_0x4915;'use strict';const _=require('lodash'),qs=require(_0x20c82f('0x24')),logger=require(_0x20c82f('0x32'))(_0x20c82f('0x31')),db=require(_0x20c82f('0x0'))['db'],{Op}=require(_0x20c82f('0x11'));function respondWithResult(_0x2d214d,_0x1c6266){return _0x1c6266=_0x1c6266||0xc8,function(_0x97b895){const _0xb70001=a776_0x4915;if(_0x97b895)return _0x2d214d[_0xb70001('0x1d')](_0x1c6266)[_0xb70001('0xa')](_0x97b895);};}function respondWithFilteredResult(_0x5ef6ae,_0x517bb2){return function(_0x145df5){const _0x25e1e4=a776_0x4915;if(_0x145df5){const _0xcd82cc=_0x145df5[_0x25e1e4('0x3')],_0xb9a0a6=_0x517bb2[_0x25e1e4('0x12')];let _0x37abae=_0x517bb2[_0x25e1e4('0x12')]+_0x517bb2[_0x25e1e4('0x7')],_0x40862b;return _0x37abae>=_0xcd82cc?(_0x37abae=_0xcd82cc,_0x40862b=0xc8):_0x40862b=0xce,_0x5ef6ae[_0x25e1e4('0x1d')](_0x40862b),_0x5ef6ae[_0x25e1e4('0x2b')]('Content-Range',_0xb9a0a6+'-'+_0x37abae+'/'+_0xcd82cc)[_0x25e1e4('0xa')](_0x145df5);}return null;};}function saveUpdates(_0x68a708){return function(_0x8e5bce){const _0x5aa0d0=a776_0x4915;if(_0x8e5bce)return _0x8e5bce['update'](_0x68a708)[_0x5aa0d0('0xb')](function(_0x5e755b){return _0x5e755b;});return null;};}function removeEntity(_0x33a0d3){return function(_0x811439){const _0x268b2f=a776_0x4915;if(_0x811439)return _0x811439[_0x268b2f('0x1f')]()[_0x268b2f('0xb')](function(){const _0x28167e=_0x268b2f;_0x33a0d3['status'](0xcc)[_0x28167e('0x16')]();});};}function handleEntityNotFound(_0x1fe3d1){return function(_0x435670){return!_0x435670&&_0x1fe3d1['sendStatus'](0x194),_0x435670;};}function handleError(_0x3c6b5d,_0x2959af){return _0x2959af=_0x2959af||0x1f4,function(_0x15b70a){const _0x3a3bf3=a776_0x4915;logger[_0x3a3bf3('0x1b')](_0x15b70a[_0x3a3bf3('0x2f')]),_0x15b70a['name']&&delete _0x15b70a[_0x3a3bf3('0x2e')],_0x3c6b5d[_0x3a3bf3('0x1d')](_0x2959af)['send'](_0x15b70a);};}exports[_0x20c82f('0x14')]=function(_0x34b347,_0x49086d){const _0x34e384=_0x20c82f;let _0x12f593={};const _0x42798b={},_0x33f75e={'count':0x0,'rows':[]},_0x3249dd=_[_0x34e384('0x2c')](db[_0x34e384('0x2d')][_0x34e384('0x1e')],function(_0x2316ab){const _0x23918d=_0x34e384;return{'name':_0x2316ab['fieldName'],'type':_0x2316ab['type'][_0x23918d('0x1')]};});_0x42798b[_0x34e384('0x8')]=_[_0x34e384('0x2c')](_0x3249dd,_0x34e384('0x2e')),_0x42798b[_0x34e384('0x25')]=_['keys'](_0x34b347[_0x34e384('0x25')]),_0x42798b['filters']=_[_0x34e384('0x19')](_0x42798b[_0x34e384('0x8')],_0x42798b[_0x34e384('0x25')]),_0x12f593[_0x34e384('0x6')]=_[_0x34e384('0x19')](_0x42798b[_0x34e384('0x8')],qs['fields'](_0x34b347[_0x34e384('0x25')][_0x34e384('0x13')])),_0x12f593['attributes']=_0x12f593['attributes'][_0x34e384('0x2a')]?_0x12f593[_0x34e384('0x6')]:_0x42798b[_0x34e384('0x8')];typeof _0x34b347[_0x34e384('0x25')][_0x34e384('0x18')]===_0x34e384('0x26')&&(_0x12f593[_0x34e384('0x7')]=qs[_0x34e384('0x7')](_0x34b347['query']['limit']),_0x12f593[_0x34e384('0x12')]=qs[_0x34e384('0x12')](_0x34b347[_0x34e384('0x25')]['offset']));_0x12f593[_0x34e384('0x29')]=qs['sort'](_0x34b347[_0x34e384('0x25')]['sort']),_0x12f593['where']=qs[_0x34e384('0x9')](_[_0x34e384('0x27')](_0x34b347[_0x34e384('0x25')],_0x42798b['filters']),_0x3249dd);_0x34b347[_0x34e384('0x25')][_0x34e384('0x30')]&&(_0x12f593['where']=_[_0x34e384('0xf')](_0x12f593['where'],{[Op['or']]:_[_0x34e384('0x2c')](_0x3249dd,function(_0xb55dbf){const _0x156f1a=_0x34e384;if(_0xb55dbf[_0x156f1a('0x28')]!==_0x156f1a('0xd')){const _0x217060={};return _0x217060[_0xb55dbf[_0x156f1a('0x2e')]]={[Op[_0x156f1a('0x2')]]:'%'+_0x34b347[_0x156f1a('0x25')]['filter']+'%'},_0x217060;}})}));_0x12f593=_[_0x34e384('0xf')]({},_0x12f593,_0x34b347[_0x34e384('0xc')]);const _0xe5513e={'where':_0x12f593[_0x34e384('0x4')]};return db[_0x34e384('0x2d')]['count'](_0xe5513e)['then'](function(_0x3c8f9b){const _0x4760e1=_0x34e384;return _0x33f75e['count']=_0x3c8f9b,_0x34b347['query'][_0x4760e1('0x1a')]&&(_0x12f593['include']=[{'all':!![]}]),db[_0x4760e1('0x2d')][_0x4760e1('0x5')](_0x12f593);})['then'](function(_0x4fb5b6){const _0x447454=_0x34e384;return _0x33f75e[_0x447454('0x21')]=_0x4fb5b6,_0x33f75e;})[_0x34e384('0xb')](respondWithFilteredResult(_0x49086d,_0x12f593))[_0x34e384('0x33')](handleError(_0x49086d,null));},exports[_0x20c82f('0x10')]=function(_0x460b4d,_0x13b977){const _0x5200a6=_0x20c82f;let _0x416fb0={'raw':!![],'where':{'id':_0x460b4d[_0x5200a6('0xe')]['id']}};const _0x4f08ac={};return _0x4f08ac[_0x5200a6('0x8')]=_[_0x5200a6('0x23')](db[_0x5200a6('0x2d')]['rawAttributes']),_0x4f08ac[_0x5200a6('0x25')]=_[_0x5200a6('0x23')](_0x460b4d[_0x5200a6('0x25')]),_0x4f08ac['filters']=_[_0x5200a6('0x19')](_0x4f08ac['model'],_0x4f08ac[_0x5200a6('0x25')]),_0x416fb0[_0x5200a6('0x6')]=_[_0x5200a6('0x19')](_0x4f08ac['model'],qs[_0x5200a6('0x13')](_0x460b4d[_0x5200a6('0x25')]['fields'])),_0x416fb0['attributes']=_0x416fb0[_0x5200a6('0x6')][_0x5200a6('0x2a')]?_0x416fb0[_0x5200a6('0x6')]:_0x4f08ac[_0x5200a6('0x8')],_0x460b4d[_0x5200a6('0x25')][_0x5200a6('0x1a')]&&(_0x416fb0[_0x5200a6('0x22')]=[{'all':!![]}]),_0x416fb0=_[_0x5200a6('0xf')]({},_0x416fb0,_0x460b4d[_0x5200a6('0xc')]),db[_0x5200a6('0x2d')][_0x5200a6('0x1c')](_0x416fb0)[_0x5200a6('0xb')](handleEntityNotFound(_0x13b977,null))[_0x5200a6('0xb')](respondWithResult(_0x13b977,null))['catch'](handleError(_0x13b977,null));},exports['create']=function(_0x22b791,_0x88f9e2){const _0x4e7c6e=_0x20c82f;return db[_0x4e7c6e('0x2d')][_0x4e7c6e('0x15')](_0x22b791[_0x4e7c6e('0x20')],{})[_0x4e7c6e('0xb')](respondWithResult(_0x88f9e2,0xc9))['catch'](handleError(_0x88f9e2,null));},exports[_0x20c82f('0x17')]=function(_0x27f1d2,_0x15e3a1){const _0x25bcfd=_0x20c82f;return _0x27f1d2['body']['id']&&delete _0x27f1d2[_0x25bcfd('0x20')]['id'],db[_0x25bcfd('0x2d')]['findOne']({'where':{'id':_0x27f1d2['params']['id']}})[_0x25bcfd('0xb')](handleEntityNotFound(_0x15e3a1,null))[_0x25bcfd('0xb')](saveUpdates(_0x27f1d2[_0x25bcfd('0x20')],null))[_0x25bcfd('0xb')](respondWithResult(_0x15e3a1,null))['catch'](handleError(_0x15e3a1,null));},exports[_0x20c82f('0x1f')]=function(_0x466bda,_0x40cb39){const _0xc16d41=_0x20c82f;return db[_0xc16d41('0x2d')]['findOne']({'where':{'id':_0x466bda[_0xc16d41('0xe')]['id']}})[_0xc16d41('0xb')](handleEntityNotFound(_0x40cb39,null))[_0xc16d41('0xb')](removeEntity(_0x40cb39,null))[_0xc16d41('0x33')](handleError(_0x40cb39,null));}; \ No newline at end of file +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 diff --git a/server/api/voiceTransferReport/voiceTransferReport.model.js b/server/api/voiceTransferReport/voiceTransferReport.model.js index 8ef0044..c158e2c 100644 --- a/server/api/voiceTransferReport/voiceTransferReport.model.js +++ b/server/api/voiceTransferReport/voiceTransferReport.model.js @@ -1 +1 @@ -const a777_0x1e12=['exports','define','report_call_transfer','./voiceTransferReport.attributes'];(function(_0x139942,_0x1e12a3){const _0x4d512c=function(_0x3e715f){while(--_0x3e715f){_0x139942['push'](_0x139942['shift']());}};_0x4d512c(++_0x1e12a3);}(a777_0x1e12,0xa6));const a777_0x4d51=function(_0x139942,_0x1e12a3){_0x139942=_0x139942-0x0;let _0x4d512c=a777_0x1e12[_0x139942];return _0x4d512c;};const _0x1e229f=a777_0x4d51;'use strict';const attributes=require(_0x1e229f('0x1'));module[_0x1e229f('0x2')]=function(_0x3e715f){const _0x573f1c=_0x1e229f,_0x2c3afe=_0x3e715f[_0x573f1c('0x3')]('VoiceTransferReport',attributes,{'tableName':_0x573f1c('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2c3afe;}; \ No newline at end of file +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 diff --git a/server/api/voiceTransferReport/voiceTransferReport.rpc.js b/server/api/voiceTransferReport/voiceTransferReport.rpc.js index 168eced..8d291c0 100644 --- a/server/api/voiceTransferReport/voiceTransferReport.rpc.js +++ b/server/api/voiceTransferReport/voiceTransferReport.rpc.js @@ -1 +1 @@ -const a778_0x33ee=['rpc','CreateVoiceTransferReport','debug','body','then','stringify','catch','message','create','../../mysqldb','info','options','../../config/logger','error'];(function(_0x4e46c7,_0x33ee33){const _0x513f5d=function(_0x522bdb){while(--_0x522bdb){_0x4e46c7['push'](_0x4e46c7['shift']());}};_0x513f5d(++_0x33ee33);}(a778_0x33ee,0xe8));const a778_0x513f=function(_0x4e46c7,_0x33ee33){_0x4e46c7=_0x4e46c7-0x0;let _0x513f5d=a778_0x33ee[_0x4e46c7];return _0x513f5d;};const _0x2280e2=a778_0x513f;'use strict';const db=require(_0x2280e2('0x1'))['db'],logger=require(_0x2280e2('0x4'))(_0x2280e2('0x6'));exports[_0x2280e2('0x7')]=function(_0x522bdb){const _0x168314=this;return new Promise(function(_0xd60993,_0x2b6191){const _0x519f51=a778_0x513f;return db['VoiceTransferReport'][_0x519f51('0x0')](_0x522bdb[_0x519f51('0x9')],{'raw':_0x522bdb[_0x519f51('0x3')]?_0x522bdb[_0x519f51('0x3')]['raw']===undefined?!![]:![]:!![]})[_0x519f51('0xa')](function(_0x10a3f0){const _0x2b8b1f=_0x519f51;logger[_0x2b8b1f('0x2')](_0x2b8b1f('0x7'),_0x522bdb),logger[_0x2b8b1f('0x8')](_0x2b8b1f('0x7'),_0x522bdb,JSON[_0x2b8b1f('0xb')](_0x10a3f0)),_0xd60993(_0x10a3f0);})[_0x519f51('0xc')](function(_0x510d92){const _0x1e3eae=_0x519f51;logger[_0x1e3eae('0x5')](_0x1e3eae('0x7'),_0x510d92[_0x1e3eae('0xd')],_0x522bdb),_0x2b6191(_0x168314[_0x1e3eae('0x5')](0x1f4,_0x510d92[_0x1e3eae('0xd')]));});});}; \ No newline at end of file +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 diff --git a/server/api/webbar/index.js b/server/api/webbar/index.js index 592e6ed..16d430f 100644 --- a/server/api/webbar/index.js +++ b/server/api/webbar/index.js @@ -1 +1 @@ -const a779_0x50c2=['./webbar.controller','../../components/auth/service','hangup','canUpdate','originate','hold','/calls','/answer','answer','isAuthenticated','express','/originate','/hangup','calls','transfer','post','/hold'];(function(_0x5b089c,_0x50c2fe){const _0x518e9d=function(_0x20ac9f){while(--_0x20ac9f){_0x5b089c['push'](_0x5b089c['shift']());}};_0x518e9d(++_0x50c2fe);}(a779_0x50c2,0x1f2));const a779_0x518e=function(_0x5b089c,_0x50c2fe){_0x5b089c=_0x5b089c-0x0;let _0x518e9d=a779_0x50c2[_0x5b089c];return _0x518e9d;};const _0x4ea91b=a779_0x518e;'use strict';const express=require(_0x4ea91b('0x5')),router=express['Router'](),auth=require(_0x4ea91b('0xd')),controller=require(_0x4ea91b('0xc'));router[_0x4ea91b('0xa')](_0x4ea91b('0x6'),auth['isAuthenticated'](),auth[_0x4ea91b('0xf')](),controller[_0x4ea91b('0x10')]),router[_0x4ea91b('0xa')](_0x4ea91b('0x7'),auth[_0x4ea91b('0x4')](),auth[_0x4ea91b('0xf')](),controller[_0x4ea91b('0xe')]),router[_0x4ea91b('0xa')](_0x4ea91b('0x2'),auth[_0x4ea91b('0x4')](),auth[_0x4ea91b('0xf')](),controller[_0x4ea91b('0x3')]),router[_0x4ea91b('0xa')](_0x4ea91b('0xb'),auth[_0x4ea91b('0x4')](),auth[_0x4ea91b('0xf')](),controller[_0x4ea91b('0x0')]),router[_0x4ea91b('0xa')]('/unhold',auth['isAuthenticated'](),auth[_0x4ea91b('0xf')](),controller['unhold']),router[_0x4ea91b('0xa')](_0x4ea91b('0x1'),auth[_0x4ea91b('0x4')](),auth[_0x4ea91b('0xf')](),controller[_0x4ea91b('0x8')]),router[_0x4ea91b('0xa')]('/transfer',auth['isAuthenticated'](),auth[_0x4ea91b('0xf')](),controller[_0x4ea91b('0x9')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/webbar/webbar.controller.js b/server/api/webbar/webbar.controller.js index dfd0f0e..b0e7b77 100644 --- a/server/api/webbar/webbar.controller.js +++ b/server/api/webbar/webbar.controller.js @@ -1 +1 @@ -const a780_0x3cd2=['findOne','webbar:answer','callNumber\x20is\x20required','jayson/promise','unhold','../../config/logger','stack','VoiceChannels','User','NotFound','sessionId\x20is\x20required','hangup\x20executed!','handleError:','originate\x20executed!','number','validate','rows','body','lodash','webbar:unhold','send','transfer\x20executed!','callerId','hangup\x20fired:','then','message','user:%s','client','stringify','sessionId','request','length','all','string','answer\x20executed!','UserId','entityFound:','originate','userId\x20is\x20required','info','answer','http','format','json','log','conference\x20fired:','name','../../mysqldb','agent','transferNumber','userId','unhold\x20executed!','hold','unhold\x20fired:','conference\x20executed!','util','webbarapi','calls\x20fired:','emit','conference','result','transfer\x20fired:','webbar:originate','error','callNumber','transferNumber\x20is\x20required','code','hold\x20executed!','catch','webbar:hangup','status','hangup'];(function(_0x3c65d0,_0x3cd2d7){const _0x477d92=function(_0xcf8d51){while(--_0xcf8d51){_0x3c65d0['push'](_0x3c65d0['shift']());}};_0x477d92(++_0x3cd2d7);}(a780_0x3cd2,0x146));const a780_0x477d=function(_0x3c65d0,_0x3cd2d7){_0x3c65d0=_0x3c65d0-0x0;let _0x477d92=a780_0x3cd2[_0x3c65d0];return _0x477d92;};const _0x8b57c4=a780_0x477d;'use strict';const _=require(_0x8b57c4('0x34')),db=require(_0x8b57c4('0x9'))['db'],util=require(_0x8b57c4('0x11')),jayson=require(_0x8b57c4('0x25')),amiClient=jayson[_0x8b57c4('0x3d')][_0x8b57c4('0x3')]({'port':0x232a}),logger=require(_0x8b57c4('0x27'))(_0x8b57c4('0x12')),{getSocket}=require('../../rediscache'),io=getSocket(),Schema=require(_0x8b57c4('0x31')),originateValidation=new Schema({'userId':{'type':_0x8b57c4('0x30'),'required':[!![],_0x8b57c4('0x0')]},'callNumber':{'type':_0x8b57c4('0x43'),'required':[!![],_0x8b57c4('0x24')]},'callerId':{'type':_0x8b57c4('0x43')},'callbackUrl':{'type':_0x8b57c4('0x43')}}),hangupValidation=new Schema({'userId':{'type':_0x8b57c4('0x30'),'required':[!![],_0x8b57c4('0x0')]},'sessionId':{'type':_0x8b57c4('0x43'),'required':![]}}),answerValidation=new Schema({'userId':{'type':_0x8b57c4('0x30'),'required':[!![],_0x8b57c4('0x0')]},'sessionId':{'type':_0x8b57c4('0x43'),'required':![]}}),transferValidation=new Schema({'userId':{'type':'number','required':[!![],_0x8b57c4('0x0')]},'sessionId':{'type':_0x8b57c4('0x43'),'required':[!![],_0x8b57c4('0x2c')]},'transferNumber':{'type':'string','required':[!![],_0x8b57c4('0x1b')]}}),holdValidation=new Schema({'userId':{'type':_0x8b57c4('0x30'),'required':[!![],'userId\x20is\x20required']},'sessionId':{'type':_0x8b57c4('0x43'),'required':![]}}),unholdValidation=new Schema({'userId':{'type':_0x8b57c4('0x30'),'required':[!![],'userId\x20is\x20required']},'sessionId':{'type':_0x8b57c4('0x43'),'required':![]}}),callsValidation=new Schema({'userId':{'type':_0x8b57c4('0x30'),'required':[!![],'userId\x20is\x20required']}}),conferenceValidation=new Schema({'userId':{'type':_0x8b57c4('0x30'),'required':[!![],_0x8b57c4('0x0')]}});function emit(_0xcf8d51,_0xaea6f0,_0x21b40d){const _0x4dae40=_0x8b57c4;logger['info'](_0xcf8d51,_0xaea6f0,JSON[_0x4dae40('0x3e')](_0x21b40d)),io['to'](_0xcf8d51)[_0x4dae40('0x14')](_0xaea6f0,_0x21b40d);}function handleError(_0x536e41){return function(_0x179a01){const _0x46ace3=a780_0x477d;console[_0x46ace3('0x6')](_0x46ace3('0x2e'),_0x179a01,_0x179a01 instanceof RangeError),logger[_0x46ace3('0x19')](_0x179a01[_0x46ace3('0x28')]),_0x179a01 instanceof RangeError?(_0x179a01[_0x46ace3('0x8')]&&delete _0x179a01[_0x46ace3('0x8')],_0x536e41[_0x46ace3('0x20')](0x194)[_0x46ace3('0x36')](_0x179a01)):(_0x179a01[_0x46ace3('0x8')]&&delete _0x179a01['name'],_0x536e41['status'](0x1f4)[_0x46ace3('0x36')](_0x179a01));};}function checkError(){return function(_0x2893de){const _0x1fc298=a780_0x477d;if(!_0x2893de)throw new RangeError(_0x1fc298('0x2b'));return _0x2893de;};}function respondWithRpcPromise(_0x242640,_0x23602c){return new Promise(function(_0x194da5,_0x55af3e){const _0x109438=a780_0x477d,_0x31d767=amiClient;return _0x31d767[_0x109438('0x40')](_0x242640,_0x23602c)[_0x109438('0x3a')](function(_0x1a88b3){const _0x22bd14=_0x109438;if(_0x1a88b3['error']){if(_0x1a88b3['error'][_0x22bd14('0x1c')]===0x1f4)return _0x55af3e(_0x1a88b3['error'][_0x22bd14('0x3b')]);return _0x194da5(_0x1a88b3['error'][_0x22bd14('0x3b')]);}else _0x194da5(_0x1a88b3[_0x22bd14('0x16')]);})['catch'](function(_0x859236){_0x55af3e(_0x859236);});});}function getAgent(_0x9521cc){const _0x38d674=_0x8b57c4;return db[_0x38d674('0x2a')][_0x38d674('0x22')]({'where':{'id':_0x9521cc,'role':_0x38d674('0xa')}})['then'](checkError());}exports[_0x8b57c4('0x47')]=function(_0x5a7d4a,_0x445cdb){const _0xbf1f4a=_0x8b57c4;logger[_0xbf1f4a('0x1')]('originate\x20fired:',_0x5a7d4a['body']);const _0x5e59c0=originateValidation[_0xbf1f4a('0x31')](_0x5a7d4a[_0xbf1f4a('0x33')]);if(_0x5e59c0[_0xbf1f4a('0x41')]>0x0)return _0x445cdb[_0xbf1f4a('0x20')](0x190)[_0xbf1f4a('0x5')](_0x5e59c0);const _0x31fa6a=_0x5a7d4a[_0xbf1f4a('0x33')]['userId'],_0xe3b11f=_0x5a7d4a['body'][_0xbf1f4a('0x1a')],_0x1c9892=_0x5a7d4a[_0xbf1f4a('0x33')][_0xbf1f4a('0x38')],_0x16118e=_0x5a7d4a[_0xbf1f4a('0x33')]['callbackUrl'];return getAgent(_0x31fa6a)[_0xbf1f4a('0x3a')](function(_0x3fa906){const _0x5df9e7=_0xbf1f4a;return logger[_0x5df9e7('0x1')](_0x5df9e7('0x46'),_0x3fa906[_0x5df9e7('0x8')]),emit(util[_0x5df9e7('0x4')](_0x5df9e7('0x3c'),_0x3fa906[_0x5df9e7('0x8')]),_0x5df9e7('0x18'),{'callNumber':_0xe3b11f,'callerId':_0x1c9892,'callbackUrl':_0x16118e}),_0x445cdb['status'](0xc8)[_0x5df9e7('0x5')]({'error':![],'message':_0x5df9e7('0x2f')});})[_0xbf1f4a('0x1e')](handleError(_0x445cdb));},exports[_0x8b57c4('0x21')]=function(_0x3fb2ac,_0x3dff91){const _0x1ba821=_0x8b57c4;logger[_0x1ba821('0x1')](_0x1ba821('0x39'),_0x3fb2ac[_0x1ba821('0x33')]);const _0x2972d1=hangupValidation[_0x1ba821('0x31')](_0x3fb2ac[_0x1ba821('0x33')]);if(_0x2972d1[_0x1ba821('0x41')]>0x0)return _0x3dff91[_0x1ba821('0x20')](0x190)[_0x1ba821('0x5')](_0x2972d1);const _0x691cae=_0x3fb2ac['body'][_0x1ba821('0xc')],_0x5ca688=_0x3fb2ac[_0x1ba821('0x33')]['sessionId'];return getAgent(_0x691cae)[_0x1ba821('0x3a')](function(_0xdee83d){const _0x3a8f57=_0x1ba821;return logger[_0x3a8f57('0x1')](_0x3a8f57('0x46'),_0xdee83d['name']),emit(util[_0x3a8f57('0x4')](_0x3a8f57('0x3c'),_0xdee83d['name']),_0x3a8f57('0x1f'),{'sessionId':_0x5ca688}),_0x3dff91[_0x3a8f57('0x20')](0xc8)[_0x3a8f57('0x5')]({'error':![],'message':_0x3a8f57('0x2d')});})[_0x1ba821('0x1e')](handleError(_0x3dff91));},exports[_0x8b57c4('0x2')]=function(_0x3b6ef9,_0x3edae6){const _0x83fcdc=_0x8b57c4;logger[_0x83fcdc('0x1')]('answer\x20fired:',_0x3b6ef9['body']);const _0xf47011=answerValidation[_0x83fcdc('0x31')](_0x3b6ef9[_0x83fcdc('0x33')]);if(_0xf47011['length']>0x0)return _0x3edae6[_0x83fcdc('0x20')](0x190)['json'](_0xf47011);const _0x308cbd=_0x3b6ef9[_0x83fcdc('0x33')]['userId'],_0x3950df=_0x3b6ef9[_0x83fcdc('0x33')][_0x83fcdc('0x3f')];return getAgent(_0x308cbd)['then'](function(_0xc11db9){const _0x10ca3e=_0x83fcdc;return logger[_0x10ca3e('0x1')](_0x10ca3e('0x46'),_0xc11db9['name']),emit(util[_0x10ca3e('0x4')](_0x10ca3e('0x3c'),_0xc11db9[_0x10ca3e('0x8')]),_0x10ca3e('0x23'),{'sessionId':_0x3950df}),_0x3edae6['status'](0xc8)[_0x10ca3e('0x5')]({'error':![],'message':_0x10ca3e('0x44')});})[_0x83fcdc('0x1e')](handleError(_0x3edae6));},exports[_0x8b57c4('0xe')]=function(_0x56317a,_0x173136){const _0x5834e3=_0x8b57c4;logger[_0x5834e3('0x1')]('hold\x20fired:',_0x56317a[_0x5834e3('0x33')]);const _0x3badc4=holdValidation[_0x5834e3('0x31')](_0x56317a[_0x5834e3('0x33')]);if(_0x3badc4[_0x5834e3('0x41')]>0x0)return _0x173136[_0x5834e3('0x20')](0x190)[_0x5834e3('0x5')](_0x3badc4);const _0x1dcd83=_0x56317a[_0x5834e3('0x33')][_0x5834e3('0xc')],_0x58bd38=_0x56317a[_0x5834e3('0x33')]['sessionId'];return getAgent(_0x1dcd83)['then'](function(_0x295d7b){const _0x5af63f=_0x5834e3;return logger[_0x5af63f('0x1')]('entityFound:',_0x295d7b[_0x5af63f('0x8')]),emit(util[_0x5af63f('0x4')](_0x5af63f('0x3c'),_0x295d7b[_0x5af63f('0x8')]),'webbar:hold',{'sessionId':_0x58bd38}),_0x173136[_0x5af63f('0x20')](0xc8)[_0x5af63f('0x5')]({'error':![],'message':_0x5af63f('0x1d')});})[_0x5834e3('0x1e')](handleError(_0x173136));},exports[_0x8b57c4('0x26')]=function(_0x36b941,_0x2707ad){const _0x47f064=_0x8b57c4;logger[_0x47f064('0x1')](_0x47f064('0xf'),_0x36b941[_0x47f064('0x33')]);const _0x721b3c=unholdValidation[_0x47f064('0x31')](_0x36b941['body']);if(_0x721b3c[_0x47f064('0x41')]>0x0)return _0x2707ad['status'](0x190)[_0x47f064('0x5')](_0x721b3c);const _0x89802d=_0x36b941['body'][_0x47f064('0xc')],_0xc550fb=_0x36b941[_0x47f064('0x33')][_0x47f064('0x3f')];return getAgent(_0x89802d)[_0x47f064('0x3a')](function(_0x978240){const _0x1b482b=_0x47f064;return logger[_0x1b482b('0x1')](_0x1b482b('0x46'),_0x978240[_0x1b482b('0x8')]),emit(util[_0x1b482b('0x4')](_0x1b482b('0x3c'),_0x978240[_0x1b482b('0x8')]),_0x1b482b('0x35'),{'sessionId':_0xc550fb}),_0x2707ad[_0x1b482b('0x20')](0xc8)[_0x1b482b('0x5')]({'error':![],'message':_0x1b482b('0xd')});})[_0x47f064('0x1e')](handleError(_0x2707ad));},exports['calls']=function(_0x405899,_0x329134){const _0x43f4c8=_0x8b57c4;logger[_0x43f4c8('0x1')](_0x43f4c8('0x13'),_0x329134['body']);const _0x536c4d=callsValidation[_0x43f4c8('0x31')](_0x405899[_0x43f4c8('0x33')]);if(_0x536c4d[_0x43f4c8('0x41')]>0x0)return _0x329134[_0x43f4c8('0x20')](0x190)[_0x43f4c8('0x5')](_0x536c4d);const _0x29c86c=_0x405899[_0x43f4c8('0x33')][_0x43f4c8('0xc')],_0x56993d=respondWithRpcPromise(_0x43f4c8('0x29')),_0x22f491=getAgent(_0x29c86c);return Promise[_0x43f4c8('0x42')]([_0x56993d,_0x22f491])[_0x43f4c8('0x3a')](function(_0x51071a){const _0x645bb2=_0x43f4c8,_0x5bb1a8=_0x51071a[0x0],_0xfd7698=_0x51071a[0x1],_0x49c91e=_['filter'](_0x5bb1a8[_0x645bb2('0x32')],function(_0x5e545d){const _0xd28839=_0x645bb2;return _0x5e545d[_0xd28839('0x45')]==_0xfd7698['id'];});return _0x329134['status'](0xc8)['json']({'count':_0x49c91e['length'],'rows':_0x49c91e});})[_0x43f4c8('0x1e')](handleError(_0x329134));},exports[_0x8b57c4('0x15')]=function(_0x2e4e8a,_0x337492){const _0x5022bc=_0x8b57c4;logger['info'](_0x5022bc('0x7'),_0x2e4e8a[_0x5022bc('0x33')]);const _0x5dbee1=conferenceValidation['validate'](_0x2e4e8a[_0x5022bc('0x33')]);if(_0x5dbee1[_0x5022bc('0x41')]>0x0)return _0x337492[_0x5022bc('0x20')](0x190)['json'](_0x5dbee1);const _0x1c5b5e=_0x2e4e8a[_0x5022bc('0x33')][_0x5022bc('0xc')];return getAgent(_0x1c5b5e)[_0x5022bc('0x3a')](function(_0xbfa450){const _0x2cd943=_0x5022bc;return logger[_0x2cd943('0x1')](_0x2cd943('0x46'),_0xbfa450[_0x2cd943('0x8')]),emit(util[_0x2cd943('0x4')]('user:%s',_0xbfa450[_0x2cd943('0x8')]),'webbar:conference'),_0x337492[_0x2cd943('0x20')](0xc8)[_0x2cd943('0x5')]({'error':![],'message':_0x2cd943('0x10')});})[_0x5022bc('0x1e')](handleError(_0x337492));},exports['transfer']=function(_0x542e38,_0x37af38){const _0x4b490d=_0x8b57c4;logger[_0x4b490d('0x1')](_0x4b490d('0x17'),_0x542e38['body']);const _0x33d946=transferValidation[_0x4b490d('0x31')](_0x542e38[_0x4b490d('0x33')]);if(_0x33d946['length']>0x0)return _0x37af38['status'](0x190)['json'](_0x33d946);const _0x5d27d6=_0x542e38[_0x4b490d('0x33')][_0x4b490d('0xc')],_0x28690f=_0x542e38[_0x4b490d('0x33')][_0x4b490d('0x3f')],_0x1bfa51=_0x542e38[_0x4b490d('0x33')][_0x4b490d('0xb')];return getAgent(_0x5d27d6)['then'](function(_0x1083bc){const _0x6dcb54=_0x4b490d;return logger[_0x6dcb54('0x1')](_0x6dcb54('0x46'),_0x1083bc[_0x6dcb54('0x8')]),emit(util[_0x6dcb54('0x4')](_0x6dcb54('0x3c'),_0x1083bc[_0x6dcb54('0x8')]),'webbar:transfer',{'sessionId':_0x28690f,'transferNumber':_0x1bfa51}),_0x37af38[_0x6dcb54('0x20')](0xc8)[_0x6dcb54('0x5')]({'error':![],'message':_0x6dcb54('0x37')});})[_0x4b490d('0x1e')](handleError(_0x37af38));}; \ No newline at end of file +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 diff --git a/server/api/whatsappAccount/index.js b/server/api/whatsappAccount/index.js index d8329d3..1f3035b 100644 --- a/server/api/whatsappAccount/index.js +++ b/server/api/whatsappAccount/index.js @@ -1 +1 @@ -const a781_0x274f=['isAuthenticated','index','send','/describe','/:id/users','create','put','getAnswers','exports','/:id/canned_answers','get','/:id/notify','destroy','/:id/applications','addApplications','addAgents','getAgents','post','express','describe','getApplications','/:id','addDisposition','Router','/:id/dispositions','../../components/auth/service','./whatsappAccount.controller','removeAgents'];(function(_0x464845,_0x274fa3){const _0x3c8fb4=function(_0x1f521f){while(--_0x1f521f){_0x464845['push'](_0x464845['shift']());}};_0x3c8fb4(++_0x274fa3);}(a781_0x274f,0x8d));const a781_0x3c8f=function(_0x464845,_0x274fa3){_0x464845=_0x464845-0x0;let _0x3c8fb4=a781_0x274f[_0x464845];return _0x3c8fb4;};const _0x1c6cc3=a781_0x3c8f;'use strict';const express=require(_0x1c6cc3('0x11')),router=express[_0x1c6cc3('0x16')](),auth=require(_0x1c6cc3('0x18')),controller=require(_0x1c6cc3('0x19'));router[_0x1c6cc3('0x9')]('/',auth['isAuthenticated'](),controller[_0x1c6cc3('0x0')]),router[_0x1c6cc3('0x9')](_0x1c6cc3('0x2'),auth[_0x1c6cc3('0x1b')](),controller[_0x1c6cc3('0x12')]),router['get'](_0x1c6cc3('0x14'),auth[_0x1c6cc3('0x1b')](),controller['show']),router['get']('/:id/dispositions',auth[_0x1c6cc3('0x1b')](),controller['getDispositions']),router[_0x1c6cc3('0x9')]('/:id/canned_answers',auth[_0x1c6cc3('0x1b')](),controller[_0x1c6cc3('0x6')]),router[_0x1c6cc3('0x9')](_0x1c6cc3('0x3'),auth[_0x1c6cc3('0x1b')](),controller[_0x1c6cc3('0xf')]),router[_0x1c6cc3('0x9')](_0x1c6cc3('0xc'),auth[_0x1c6cc3('0x1b')](),controller[_0x1c6cc3('0x13')]),router[_0x1c6cc3('0x10')]('/',auth[_0x1c6cc3('0x1b')](),controller[_0x1c6cc3('0x4')]),router['post']('/:id/dispositions',auth[_0x1c6cc3('0x1b')](),controller[_0x1c6cc3('0x15')]),router['post'](_0x1c6cc3('0x8'),auth[_0x1c6cc3('0x1b')](),controller['addAnswer']),router[_0x1c6cc3('0x10')](_0x1c6cc3('0x3'),auth[_0x1c6cc3('0x1b')](),controller[_0x1c6cc3('0xe')]),router[_0x1c6cc3('0x10')](_0x1c6cc3('0xc'),auth['isAuthenticated'](),controller[_0x1c6cc3('0xd')]),router['post'](_0x1c6cc3('0xa'),controller['notify']),router[_0x1c6cc3('0x10')]('/:id/send',auth[_0x1c6cc3('0x1b')](),controller[_0x1c6cc3('0x1')]),router[_0x1c6cc3('0x5')]('/:id',auth[_0x1c6cc3('0x1b')](),controller['update']),router['delete'](_0x1c6cc3('0x14'),auth[_0x1c6cc3('0x1b')](),controller[_0x1c6cc3('0xb')]),router['delete'](_0x1c6cc3('0x17'),auth[_0x1c6cc3('0x1b')](),controller['removeDispositions']),router['delete'](_0x1c6cc3('0x8'),auth[_0x1c6cc3('0x1b')](),controller['removeAnswers']),router['delete'](_0x1c6cc3('0x3'),auth[_0x1c6cc3('0x1b')](),controller[_0x1c6cc3('0x1a')]),module[_0x1c6cc3('0x7')]=router; \ No newline at end of file +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 diff --git a/server/api/whatsappAccount/whatsappAccount.attributes.js b/server/api/whatsappAccount/whatsappAccount.attributes.js index 035f005..b73de3d 100644 --- a/server/api/whatsappAccount/whatsappAccount.attributes.js +++ b/server/api/whatsappAccount/whatsappAccount.attributes.js @@ -1 +1 @@ -const a782_0x2023=['mandatoryDisposition','TEXT','name','generate','randomstring','exports','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','INTEGER','setDataValue','BOOLEAN','mandatoryDispositionPauseId','STRING','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','sequelize'];(function(_0x27ac33,_0x202325){const _0x34eaec=function(_0xb9a8c3){while(--_0xb9a8c3){_0x27ac33['push'](_0x27ac33['shift']());}};_0x34eaec(++_0x202325);}(a782_0x2023,0x149));const a782_0x34ea=function(_0x27ac33,_0x202325){_0x27ac33=_0x27ac33-0x0;let _0x34eaec=a782_0x2023[_0x27ac33];return _0x34eaec;};const _0x436570=a782_0x34ea;'use strict';const Sequelize=require(_0x436570('0x0')),rs=require(_0x436570('0x5'));module[_0x436570('0x6')]={'name':{'type':Sequelize[_0x436570('0xc')],'unique':_0x436570('0x3'),'allowNull':![]},'key':{'type':Sequelize['STRING'],'allowNull':![]},'remote':{'type':Sequelize[_0x436570('0xc')],'allowNull':![]},'token':{'type':Sequelize[_0x436570('0xc')],'defaultValue':function(){const _0x5b2dcf=_0x436570;return rs[_0x5b2dcf('0x4')]();}},'phone':{'type':Sequelize[_0x436570('0xc')]},'type':{'type':Sequelize['ENUM']('twilio')},'accountSid':{'type':Sequelize[_0x436570('0xc')]},'authToken':{'type':Sequelize[_0x436570('0xc')]},'notificationTemplate':{'type':Sequelize[_0x436570('0x2')],'defaultValue':function(){const _0x995927=_0x436570;return _0x995927('0xe');}},'notificationSound':{'type':Sequelize[_0x436570('0xa')],'defaultValue':![]},'notificationShake':{'type':Sequelize[_0x436570('0xa')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x436570('0x8')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x436570('0xa')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x436570('0x8')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x436570('0xa')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x436570('0x8')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x436570('0x8')],'comment':_0x436570('0x7')},'mandatoryDisposition':{'type':Sequelize[_0x436570('0xa')],'defaultValue':![],'comment':_0x436570('0xd'),'set':function(_0xb9a8c3){const _0x16ab1b=_0x436570;!_0xb9a8c3&&this['setDataValue'](_0x16ab1b('0xb'),null),this[_0x16ab1b('0x9')](_0x16ab1b('0x1'),_0xb9a8c3);}},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +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 diff --git a/server/api/whatsappAccount/whatsappAccount.controller.js b/server/api/whatsappAccount/whatsappAccount.controller.js index 038ca26..ee62e62 100644 --- a/server/api/whatsappAccount/whatsappAccount.controller.js +++ b/server/api/whatsappAccount/whatsappAccount.controller.js @@ -1 +1 @@ -const a783_0x35ec=['receiveMessage','result','message','show','orderBy','addApplications','asc','ContactId','Messages','push','unmanaged','fieldName','request\x20sent','Content-Range','priority','contact','type','WhatsappAccountId','json','../../mysqldb','twilio','Unable\x20to\x20retrieve\x20the\x20current\x20user','map','getApplications','limit','WhatsappApplication','lodash','Disposition','Pause','CannedAnswer','http','sequelize','params','userWhatsappAccount:save','nolimit','include','Start','api','difference','where','isNil','interaction','filters','../../config/logger','\x0a','no\x20available\x20attributes','body','dataValues','WhatsappInteraction','ids','created','bulkCreate','Applications','WhatsappAccount,\x20%s,\x20%s','set','whatsapp','offset','filter','addAnswer','VIRTUAL','describe','out','AttachmentId','status','User','agent','whatsapp:','code','includes','mapKey','count','getAgents','From','register','end','CmList','Sequelize','merge','options','Content-Type','isArray','client','stringify','keys','userProfileId','sort','debug','createdAt','order','then','destroy','index','fields','like','transaction','to\x20is\x20mandatory','removeAnswers','emit','entity\x20found','removeAgents','intersection','startRouting','pick','UserProfileSection','WhatsappMessage','error','removeDispositions','notify','omit','attributes','ListId','List','close','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','text/xml','CompanyId','UserId','account','applications','role','messageId','UserProfileResource','key','length','rows','request','send','info','updatedAt','defaults','user','model','findAndCountAll','userWhatsappAccount:remove','WhatsappAccount','sendStatus','findAll','../../rediscache','ValidationError','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','WhatsappAccount,\x20%s,\x20%s,\x20%s','jayson/promise','query','CmContact','waitForTheAssignedAgent','undefined','findOne','create','catch','body\x20is\x20mandatory\x20and\x20not\x20empty','rawAttributes','mandatoryDispositionPause','from','includeAll','name','update','Contacts','../../components/parsers/qs','getDispositions','get','addAgents'];(function(_0x4dff93,_0x35ec09){const _0x2438ed=function(_0x2b931b){while(--_0x2b931b){_0x4dff93['push'](_0x4dff93['shift']());}};_0x2438ed(++_0x35ec09);}(a783_0x35ec,0x19c));const a783_0x2438=function(_0x4dff93,_0x35ec09){_0x4dff93=_0x4dff93-0x0;let _0x2438ed=a783_0x35ec[_0x4dff93];return _0x2438ed;};const _0x4c8c44=a783_0x2438;'use strict';const _=require(_0x4c8c44('0x61')),qs=require(_0x4c8c44('0x43')),logger=require(_0x4c8c44('0x72'))(_0x4c8c44('0x6c')),{getSocket}=require(_0x4c8c44('0x2f')),socket=getSocket(),db=require(_0x4c8c44('0x5a'))['db'],{Op}=require('sequelize');require('./whatsappAccount.socket')[_0x4c8c44('0x90')](socket);const jayson=require(_0x4c8c44('0x33')),client=jayson[_0x4c8c44('0x98')][_0x4c8c44('0x65')]({'port':0x232c});function respondWithRpcPromise(_0x2b931b,_0x2b4073,_0x3d49d8,_0x2157a9){return new Promise(function(_0x4b3d1a,_0x182938){const _0x84333d=a783_0x2438,_0x2b2fc8=_0x2157a9||client;return _0x2b2fc8[_0x84333d('0x23')](_0x2b931b,_0x3d49d8)[_0x84333d('0xa0')](function(_0x4cfa22){const _0x22579a=_0x84333d;logger['info'](_0x22579a('0x7c'),_0x2b4073,_0x22579a('0x53')),logger[_0x22579a('0x9d')]('WhatsappAccount,\x20%s,\x20%s,\x20%s',_0x2b4073,_0x22579a('0x53'),JSON[_0x22579a('0x99')](_0x4cfa22));if(_0x4cfa22[_0x22579a('0xf')]){if(_0x4cfa22[_0x22579a('0xf')][_0x22579a('0x8a')]===0x1f4)return logger[_0x22579a('0xf')](_0x22579a('0x7c'),_0x2b4073,_0x4cfa22['error'][_0x22579a('0x49')]),_0x182938(_0x4cfa22[_0x22579a('0xf')][_0x22579a('0x49')]);return logger[_0x22579a('0xf')](_0x22579a('0x7c'),_0x2b4073,_0x4cfa22[_0x22579a('0xf')][_0x22579a('0x49')]),_0x4b3d1a(_0x4cfa22['error'][_0x22579a('0x49')]);}else logger[_0x22579a('0x25')](_0x22579a('0x7c'),_0x2b4073,'request\x20sent'),_0x4b3d1a(_0x4cfa22[_0x22579a('0x48')][_0x22579a('0x49')]);})[_0x84333d('0x3a')](function(_0x4432c6){const _0x13e079=_0x84333d;logger[_0x13e079('0xf')](_0x13e079('0x7c'),_0x2b4073,_0x4432c6),_0x182938(_0x4432c6);});});}function respondWithStatusCode(_0x547d3c,_0x2f3275){return _0x2f3275=_0x2f3275||0xcc,function(_0x2f8120){const _0x39a6f4=a783_0x2438;if(_0x2f8120)return _0x547d3c[_0x39a6f4('0x2d')](_0x2f3275);return _0x547d3c[_0x39a6f4('0x86')](_0x2f3275)[_0x39a6f4('0x91')]();};}function respondWithResult(_0x5b84d2,_0x39327b){return _0x39327b=_0x39327b||0xc8,function(_0x404baf){const _0xd475f6=a783_0x2438;if(_0x404baf)return _0x5b84d2['status'](_0x39327b)[_0xd475f6('0x59')](_0x404baf);};}function respondWithFilteredResult(_0x3a881d,_0x6067f5){return function(_0x78b067){const _0x899792=a783_0x2438;if(_0x78b067){const _0x562a35=_0x78b067['count'],_0x355ad4=_0x6067f5[_0x899792('0x7f')];let _0x5a406e=_0x6067f5[_0x899792('0x7f')]+_0x6067f5[_0x899792('0x5f')],_0x1abde6;return _0x5a406e>=_0x562a35?(_0x5a406e=_0x562a35,_0x1abde6=0xc8):_0x1abde6=0xce,_0x3a881d['status'](_0x1abde6),_0x3a881d['set'](_0x899792('0x54'),_0x355ad4+'-'+_0x5a406e+'/'+_0x562a35)[_0x899792('0x59')](_0x78b067);}return null;};}function saveUpdates(_0x379be0){return function(_0x1339ea){const _0x1f50bd=a783_0x2438;if(_0x1339ea)return _0x1339ea[_0x1f50bd('0x41')](_0x379be0)[_0x1f50bd('0xa0')](function(_0x20dc54){return _0x20dc54;});return null;};}function removeEntity(_0x3313b6){return function(_0x12cd4b){const _0x2ff13c=a783_0x2438;if(_0x12cd4b)return _0x12cd4b[_0x2ff13c('0x0')]()[_0x2ff13c('0xa0')](function(){const _0x4bf0ed=_0x2ff13c,_0x3d5f6f=_0x12cd4b[_0x4bf0ed('0x45')]({'plain':!![]}),_0x101ef3='WhatsappAccounts';return db[_0x4bf0ed('0x1f')][_0x4bf0ed('0x0')]({'where':{'type':_0x101ef3,'resourceId':_0x3d5f6f['id']}})[_0x4bf0ed('0xa0')](function(){return _0x12cd4b;});})[_0x2ff13c('0xa0')](function(){const _0x33c0d0=_0x2ff13c;_0x3313b6[_0x33c0d0('0x86')](0xcc)[_0x33c0d0('0x91')]();});};}function handleEntityNotFound(_0x58931b){return function(_0x3dada9){const _0x28810b=a783_0x2438;return!_0x3dada9&&_0x58931b[_0x28810b('0x2d')](0x194),_0x3dada9;};}function handleError(_0x10821b,_0x45b130){return _0x45b130=_0x45b130||0x1f4,function(_0x22e314){const _0x26bac7=a783_0x2438;logger[_0x26bac7('0xf')](_0x22e314['stack']),_0x22e314[_0x26bac7('0x40')]&&delete _0x22e314['name'],_0x10821b[_0x26bac7('0x86')](_0x45b130)['send'](_0x22e314);};}exports[_0x4c8c44('0x1')]=function(_0x24231e,_0x35101a){const _0x9e281=_0x4c8c44;let _0x16f27c={'include':[{'model':db['Pause'],'as':'mandatoryDispositionPause'}]};const _0x5ae999={},_0x5444a2={'count':0x0,'rows':[]},_0x403a9c=_[_0x9e281('0x5d')](db[_0x9e281('0x2c')]['rawAttributes'],function(_0x42da97){const _0x5cc387=_0x9e281;return{'name':_0x42da97[_0x5cc387('0x52')],'type':_0x42da97['type'][_0x5cc387('0x20')]};});_0x5ae999['model']=_[_0x9e281('0x5d')](_0x403a9c,_0x9e281('0x40')),_0x5ae999[_0x9e281('0x34')]=_[_0x9e281('0x9a')](_0x24231e[_0x9e281('0x34')]),_0x5ae999['filters']=_[_0x9e281('0xa')](_0x5ae999[_0x9e281('0x29')],_0x5ae999[_0x9e281('0x34')]),_0x16f27c[_0x9e281('0x13')]=_[_0x9e281('0xa')](_0x5ae999['model'],qs[_0x9e281('0x2')](_0x24231e['query'][_0x9e281('0x2')])),_0x16f27c['attributes']=_0x16f27c[_0x9e281('0x13')][_0x9e281('0x21')]?_0x16f27c[_0x9e281('0x13')]:_0x5ae999[_0x9e281('0x29')];typeof _0x24231e[_0x9e281('0x34')]['nolimit']===_0x9e281('0x37')&&(_0x16f27c['limit']=qs[_0x9e281('0x5f')](_0x24231e[_0x9e281('0x34')][_0x9e281('0x5f')]),_0x16f27c[_0x9e281('0x7f')]=qs[_0x9e281('0x7f')](_0x24231e[_0x9e281('0x34')][_0x9e281('0x7f')]));_0x16f27c[_0x9e281('0x9f')]=qs[_0x9e281('0x9c')](_0x24231e[_0x9e281('0x34')][_0x9e281('0x9c')]),_0x16f27c[_0x9e281('0x6e')]=qs[_0x9e281('0x71')](_[_0x9e281('0xc')](_0x24231e['query'],_0x5ae999['filters']),_0x403a9c);_0x24231e[_0x9e281('0x34')][_0x9e281('0x80')]&&(_0x16f27c[_0x9e281('0x6e')]=_[_0x9e281('0x94')](_0x16f27c[_0x9e281('0x6e')],{[Op['or']]:_[_0x9e281('0x5d')](_0x403a9c,function(_0x553a4e){const _0x575c23=_0x9e281;if(_0x553a4e[_0x575c23('0x57')]!==_0x575c23('0x82')){const _0x6b154d={};return _0x6b154d[_0x553a4e['name']]={[Op[_0x575c23('0x3')]]:'%'+_0x24231e[_0x575c23('0x34')][_0x575c23('0x80')]+'%'},_0x6b154d;}})}));_0x16f27c=_['merge']({},_0x16f27c,_0x24231e['options']);const _0x317575={'where':_0x16f27c[_0x9e281('0x6e')]};return db[_0x9e281('0x2c')][_0x9e281('0x8d')](_0x317575)['then'](function(_0x1b1e23){const _0x566729=_0x9e281;return _0x5444a2[_0x566729('0x8d')]=_0x1b1e23,_0x24231e['query'][_0x566729('0x3f')]&&(_0x16f27c['include']=[{'all':!![]}]),db[_0x566729('0x2c')][_0x566729('0x2e')](_0x16f27c);})['then'](function(_0x2d614a){return _0x5444a2['rows']=_0x2d614a,_0x5444a2;})[_0x9e281('0xa0')](respondWithFilteredResult(_0x35101a,_0x16f27c))['catch'](handleError(_0x35101a,null));},exports[_0x4c8c44('0x4a')]=function(_0x26fd29,_0x44bf33){const _0xa62dd=_0x4c8c44;let _0x15bd3f={'raw':![],'where':{'id':_0x26fd29[_0xa62dd('0x67')]['id']},'include':[{'model':db['Pause'],'as':_0xa62dd('0x3d')}]};const _0x1b3a96={};return _0x1b3a96[_0xa62dd('0x29')]=_[_0xa62dd('0x9a')](db[_0xa62dd('0x2c')][_0xa62dd('0x3c')]),_0x1b3a96['query']=_['keys'](_0x26fd29[_0xa62dd('0x34')]),_0x1b3a96[_0xa62dd('0x71')]=_[_0xa62dd('0xa')](_0x1b3a96[_0xa62dd('0x29')],_0x1b3a96[_0xa62dd('0x34')]),_0x15bd3f[_0xa62dd('0x13')]=_[_0xa62dd('0xa')](_0x1b3a96[_0xa62dd('0x29')],qs['fields'](_0x26fd29[_0xa62dd('0x34')][_0xa62dd('0x2')])),_0x15bd3f[_0xa62dd('0x13')]=_0x15bd3f[_0xa62dd('0x13')][_0xa62dd('0x21')]?_0x15bd3f[_0xa62dd('0x13')]:_0x1b3a96[_0xa62dd('0x29')],_0x26fd29[_0xa62dd('0x34')][_0xa62dd('0x3f')]&&(_0x15bd3f[_0xa62dd('0x6a')]=[{'all':!![]}]),_0x15bd3f=_[_0xa62dd('0x94')]({},_0x15bd3f,_0x26fd29[_0xa62dd('0x95')]),db['WhatsappAccount'][_0xa62dd('0x38')](_0x15bd3f)[_0xa62dd('0xa0')](handleEntityNotFound(_0x44bf33,null))[_0xa62dd('0xa0')](respondWithResult(_0x44bf33,null))[_0xa62dd('0x3a')](handleError(_0x44bf33,null));},exports['create']=function(_0x39b51d,_0x1d8a65){const _0x3356b3=_0x4c8c44;return db['WhatsappAccount'][_0x3356b3('0x39')](_0x39b51d['body'],{})[_0x3356b3('0xa0')](function(_0xc30ec8){const _0x274a1f=_0x3356b3,_0x2dbd63=_0x39b51d[_0x274a1f('0x28')][_0x274a1f('0x45')]({'plain':!![]});if(!_0x2dbd63)throw new Error(_0x274a1f('0x5c'));if(_0x2dbd63[_0x274a1f('0x1d')]==='user'){const _0x289fd1=_0xc30ec8['get']({'plain':!![]}),_0x31a8e4='WhatsappAccounts';return db[_0x274a1f('0xd')][_0x274a1f('0x38')]({'where':{'name':_0x31a8e4,'userProfileId':_0x2dbd63[_0x274a1f('0x9b')]},'raw':!![]})[_0x274a1f('0xa0')](function(_0x196ed5){const _0x1a9db1=_0x274a1f;return _0x196ed5&&_0x196ed5['autoAssociation']===0x0?db['UserProfileResource'][_0x1a9db1('0x39')]({'name':_0x289fd1[_0x1a9db1('0x40')],'resourceId':_0x289fd1['id'],'type':_0x196ed5[_0x1a9db1('0x40')],'sectionId':_0x196ed5['id']},{})[_0x1a9db1('0xa0')](function(){return _0xc30ec8;}):_0xc30ec8;})[_0x274a1f('0x3a')](function(_0x114045){const _0x4d8484=_0x274a1f;logger[_0x4d8484('0xf')](_0x4d8484('0x31'),_0x114045);throw _0x114045;});}return _0xc30ec8;})['then'](respondWithResult(_0x1d8a65,0xc9))[_0x3356b3('0x3a')](handleError(_0x1d8a65,null));},exports[_0x4c8c44('0x41')]=function(_0x548157,_0x1df529){const _0x5dc117=_0x4c8c44;return _0x548157['body']['id']&&delete _0x548157[_0x5dc117('0x75')]['id'],db[_0x5dc117('0x2c')][_0x5dc117('0x38')]({'where':{'id':_0x548157[_0x5dc117('0x67')]['id']},'include':[{'model':db[_0x5dc117('0x63')],'as':_0x5dc117('0x3d')}]})[_0x5dc117('0xa0')](handleEntityNotFound(_0x1df529,null))[_0x5dc117('0xa0')](saveUpdates(_0x548157[_0x5dc117('0x75')],null))[_0x5dc117('0xa0')](respondWithResult(_0x1df529,null))['catch'](handleError(_0x1df529,null));},exports[_0x4c8c44('0x0')]=function(_0x38e7d1,_0x5dcfca){const _0x21d728=_0x4c8c44;return db[_0x21d728('0x2c')][_0x21d728('0x38')]({'where':{'id':_0x38e7d1[_0x21d728('0x67')]['id']}})[_0x21d728('0xa0')](handleEntityNotFound(_0x5dcfca,null))['then'](removeEntity(_0x5dcfca,null))['catch'](handleError(_0x5dcfca,null));},exports[_0x4c8c44('0x83')]=function(_0x58aa35,_0x56326d){const _0x509168=_0x4c8c44;return db[_0x509168('0x2c')]['describe']()[_0x509168('0xa0')](respondWithResult(_0x56326d,null))['catch'](handleError(_0x56326d,null));},exports['addDisposition']=function(_0x536a62,_0xe132aa){const _0x44fe6a=_0x4c8c44;return _0x536a62['body']['id']&&delete _0x536a62[_0x44fe6a('0x75')]['id'],db['WhatsappAccount'][_0x44fe6a('0x38')]({'where':{'id':_0x536a62[_0x44fe6a('0x67')]['id']}})[_0x44fe6a('0xa0')](handleEntityNotFound(_0xe132aa,null))[_0x44fe6a('0xa0')](function(_0x38e453){const _0x1d461c=_0x44fe6a;if(_0x38e453)return _0x536a62[_0x1d461c('0x75')]['WhatsappAccountId']=_0x38e453['id'],db['Disposition'][_0x1d461c('0x39')](_0x536a62[_0x1d461c('0x75')]);})['then'](respondWithResult(_0xe132aa,null))['catch'](handleError(_0xe132aa,null));},exports[_0x4c8c44('0x44')]=function(_0x23965b,_0x5f4e6d){const _0x7d36ab=_0x4c8c44;let _0x29287b={'raw':![],'where':{}};const _0x28150a={},_0x2965d3={'count':0x0,'rows':[]};return db[_0x7d36ab('0x2c')][_0x7d36ab('0x38')]({'where':{'id':_0x23965b['params']['id']}})[_0x7d36ab('0xa0')](handleEntityNotFound(_0x5f4e6d,null))[_0x7d36ab('0xa0')](function(_0x419d90){const _0x38f2db=_0x7d36ab;if(_0x419d90)return _0x28150a[_0x38f2db('0x29')]=_['keys'](db['Disposition'][_0x38f2db('0x3c')]),_0x28150a[_0x38f2db('0x34')]=_[_0x38f2db('0x9a')](_0x23965b[_0x38f2db('0x34')]),_0x28150a[_0x38f2db('0x71')]=_['intersection'](_0x28150a[_0x38f2db('0x29')],_0x28150a[_0x38f2db('0x34')]),_0x29287b[_0x38f2db('0x13')]=_[_0x38f2db('0xa')](_0x28150a[_0x38f2db('0x29')],qs[_0x38f2db('0x2')](_0x23965b[_0x38f2db('0x34')][_0x38f2db('0x2')])),_0x29287b[_0x38f2db('0x13')]=_0x29287b['attributes'][_0x38f2db('0x21')]?_0x29287b[_0x38f2db('0x13')]:_0x28150a[_0x38f2db('0x29')],typeof _0x23965b[_0x38f2db('0x34')][_0x38f2db('0x69')]===_0x38f2db('0x37')&&(_0x29287b['limit']=qs[_0x38f2db('0x5f')](_0x23965b['query'][_0x38f2db('0x5f')]),_0x29287b[_0x38f2db('0x7f')]=qs[_0x38f2db('0x7f')](_0x23965b[_0x38f2db('0x34')]['offset'])),_0x29287b['order']=qs[_0x38f2db('0x9c')](_0x23965b[_0x38f2db('0x34')]['sort']),_0x29287b[_0x38f2db('0x6e')]=qs['filters'](_[_0x38f2db('0xc')](_0x23965b['query'],_0x28150a[_0x38f2db('0x71')])),_0x29287b[_0x38f2db('0x6e')]['WhatsappAccountId']=_0x419d90['id'],_0x23965b['query'][_0x38f2db('0x80')]&&(_0x29287b[_0x38f2db('0x6e')]=_['merge'](_0x29287b[_0x38f2db('0x6e')],{[Op['or']]:_[_0x38f2db('0x5d')](_0x29287b[_0x38f2db('0x13')],function(_0x200e6d){const _0x2895da=_0x38f2db,_0x22a780={};return _0x22a780[_0x200e6d]={[Op[_0x2895da('0x3')]]:'%'+_0x23965b['query'][_0x2895da('0x80')]+'%'},_0x22a780;})})),_0x29287b=_['merge']({},_0x29287b,_0x23965b[_0x38f2db('0x95')]),db[_0x38f2db('0x62')][_0x38f2db('0x8d')]({'where':_0x29287b['where']})[_0x38f2db('0xa0')](function(_0x17b44f){const _0x1d99c9=_0x38f2db;return _0x2965d3['count']=_0x17b44f,_0x23965b['query']['includeAll']&&(_0x29287b[_0x1d99c9('0x6a')]=[{'all':!![]}]),db[_0x1d99c9('0x62')][_0x1d99c9('0x2e')](_0x29287b);})['then'](function(_0x14a2a6){const _0xc7e0b0=_0x38f2db;return _0x2965d3[_0xc7e0b0('0x22')]=_0x14a2a6,_0x2965d3;});})[_0x7d36ab('0xa0')](respondWithFilteredResult(_0x5f4e6d,_0x29287b))[_0x7d36ab('0x3a')](handleError(_0x5f4e6d,null));},exports[_0x4c8c44('0x10')]=function(_0x2020d7,_0x44139f){const _0x1f2ab3=_0x4c8c44;return db[_0x1f2ab3('0x2c')][_0x1f2ab3('0x38')]({'where':{'id':_0x2020d7[_0x1f2ab3('0x67')]['id']}})['then'](handleEntityNotFound(_0x44139f,null))['then'](function(_0x3544f5){const _0x126e57=_0x1f2ab3;if(_0x3544f5)return _0x3544f5['removeDispositions'](_0x2020d7[_0x126e57('0x34')][_0x126e57('0x78')]);})[_0x1f2ab3('0xa0')](respondWithStatusCode(_0x44139f,null))[_0x1f2ab3('0x3a')](handleError(_0x44139f,null));},exports[_0x4c8c44('0x81')]=function(_0x1ab813,_0x5f32fa){const _0x3f31e8=_0x4c8c44;return _0x1ab813[_0x3f31e8('0x75')]['id']&&delete _0x1ab813['body']['id'],db['WhatsappAccount'][_0x3f31e8('0x38')]({'where':{'id':_0x1ab813[_0x3f31e8('0x67')]['id']}})[_0x3f31e8('0xa0')](handleEntityNotFound(_0x5f32fa,null))[_0x3f31e8('0xa0')](function(_0x4d006f){const _0xad0030=_0x3f31e8;if(_0x4d006f)return _0x1ab813['body'][_0xad0030('0x58')]=_0x4d006f['id'],db[_0xad0030('0x64')][_0xad0030('0x39')](_0x1ab813[_0xad0030('0x75')]);})[_0x3f31e8('0xa0')](respondWithResult(_0x5f32fa,null))[_0x3f31e8('0x3a')](handleError(_0x5f32fa,null));},exports['getAnswers']=function(_0x81028f,_0x587d9c){const _0x1d09f3=_0x4c8c44;let _0x5bbef5={'raw':![],'where':{}};const _0x40d0d7={},_0x56c8a4={'count':0x0,'rows':[]};return db[_0x1d09f3('0x2c')]['findOne']({'where':{'id':_0x81028f[_0x1d09f3('0x67')]['id']}})[_0x1d09f3('0xa0')](handleEntityNotFound(_0x587d9c,null))['then'](function(_0x4095bc){const _0x42efe3=_0x1d09f3;if(_0x4095bc)return _0x40d0d7[_0x42efe3('0x29')]=_[_0x42efe3('0x9a')](db[_0x42efe3('0x64')][_0x42efe3('0x3c')]),_0x40d0d7[_0x42efe3('0x34')]=_[_0x42efe3('0x9a')](_0x81028f['query']),_0x40d0d7['filters']=_[_0x42efe3('0xa')](_0x40d0d7[_0x42efe3('0x29')],_0x40d0d7[_0x42efe3('0x34')]),_0x5bbef5['attributes']=_[_0x42efe3('0xa')](_0x40d0d7[_0x42efe3('0x29')],qs['fields'](_0x81028f[_0x42efe3('0x34')][_0x42efe3('0x2')])),_0x5bbef5[_0x42efe3('0x13')]=_0x5bbef5[_0x42efe3('0x13')][_0x42efe3('0x21')]?_0x5bbef5[_0x42efe3('0x13')]:_0x40d0d7[_0x42efe3('0x29')],typeof _0x81028f[_0x42efe3('0x34')][_0x42efe3('0x69')]===_0x42efe3('0x37')&&(_0x5bbef5['limit']=qs['limit'](_0x81028f[_0x42efe3('0x34')]['limit']),_0x5bbef5['offset']=qs[_0x42efe3('0x7f')](_0x81028f['query'][_0x42efe3('0x7f')])),_0x5bbef5[_0x42efe3('0x9f')]=qs['sort'](_0x81028f[_0x42efe3('0x34')][_0x42efe3('0x9c')]),_0x5bbef5[_0x42efe3('0x6e')]=qs[_0x42efe3('0x71')](_[_0x42efe3('0xc')](_0x81028f[_0x42efe3('0x34')],_0x40d0d7[_0x42efe3('0x71')])),_0x5bbef5[_0x42efe3('0x6e')][_0x42efe3('0x58')]=_0x4095bc['id'],_0x81028f['query'][_0x42efe3('0x80')]&&(_0x5bbef5[_0x42efe3('0x6e')]=_[_0x42efe3('0x94')](_0x5bbef5[_0x42efe3('0x6e')],{[Op['or']]:_[_0x42efe3('0x5d')](_0x5bbef5[_0x42efe3('0x13')],function(_0x49424d){const _0x1d5764=_0x42efe3,_0x527434={};return _0x527434[_0x49424d]={[Op[_0x1d5764('0x3')]]:'%'+_0x81028f[_0x1d5764('0x34')][_0x1d5764('0x80')]+'%'},_0x527434;})})),_0x5bbef5=_[_0x42efe3('0x94')]({},_0x5bbef5,_0x81028f[_0x42efe3('0x95')]),db[_0x42efe3('0x64')]['count']({'where':_0x5bbef5[_0x42efe3('0x6e')]})[_0x42efe3('0xa0')](function(_0x403104){const _0x1cb7fb=_0x42efe3;return _0x56c8a4[_0x1cb7fb('0x8d')]=_0x403104,_0x81028f[_0x1cb7fb('0x34')]['includeAll']&&(_0x5bbef5[_0x1cb7fb('0x6a')]=[{'all':!![]}]),db['CannedAnswer'][_0x1cb7fb('0x2e')](_0x5bbef5);})[_0x42efe3('0xa0')](function(_0xd572a4){const _0x40f9d3=_0x42efe3;return _0x56c8a4[_0x40f9d3('0x22')]=_0xd572a4,_0x56c8a4;});})['then'](respondWithFilteredResult(_0x587d9c,_0x5bbef5))[_0x1d09f3('0x3a')](handleError(_0x587d9c,null));},exports[_0x4c8c44('0x6')]=function(_0x4e2693,_0x2e12e7){const _0x37746b=_0x4c8c44;return db[_0x37746b('0x2c')][_0x37746b('0x38')]({'where':{'id':_0x4e2693[_0x37746b('0x67')]['id']}})[_0x37746b('0xa0')](handleEntityNotFound(_0x2e12e7,null))[_0x37746b('0xa0')](function(_0x5e671a){const _0x196320=_0x37746b;if(_0x5e671a)return _0x5e671a[_0x196320('0x6')](_0x4e2693[_0x196320('0x34')][_0x196320('0x78')]);})[_0x37746b('0xa0')](respondWithStatusCode(_0x2e12e7,null))[_0x37746b('0x3a')](handleError(_0x2e12e7,null));},exports[_0x4c8c44('0x46')]=function(_0x55f070,_0x5acf2f){const _0x13a733=_0x4c8c44;return db[_0x13a733('0x2c')][_0x13a733('0x38')]({'where':{'id':_0x55f070[_0x13a733('0x67')]['id']}})[_0x13a733('0xa0')](function(_0x26d1a8){const _0x5a13c8=_0x13a733;if(_0x26d1a8)return _0x26d1a8[_0x5a13c8('0x46')](_0x55f070['body']['ids'],{'through':_[_0x5a13c8('0x12')](_0x55f070[_0x5a13c8('0x75')],[_0x5a13c8('0x78'),'id'])})[_0x5a13c8('0xa0')](function(_0x4e590c){const _0xcfa51=_0x5a13c8;for(let _0xa6417c=0x0;_0xa6417c<_0x55f070[_0xcfa51('0x75')][_0xcfa51('0x78')][_0xcfa51('0x21')];_0xa6417c+=0x1){socket[_0xcfa51('0x7')](_0xcfa51('0x68'),{'UserId':_0x55f070[_0xcfa51('0x75')]['ids'][_0xa6417c],'WhatsappAccountId':_0x55f070[_0xcfa51('0x67')]['id']});}return _0x4e590c;});})[_0x13a733('0xa0')](respondWithResult(_0x5acf2f,null))[_0x13a733('0x3a')](handleError(_0x5acf2f,null));},exports[_0x4c8c44('0x9')]=function(_0x2ef6bf,_0x3f89bc){const _0x26eddf=_0x4c8c44;return db[_0x26eddf('0x2c')][_0x26eddf('0x38')]({'where':{'id':_0x2ef6bf[_0x26eddf('0x67')]['id']}})[_0x26eddf('0xa0')](handleEntityNotFound(_0x3f89bc,null))[_0x26eddf('0xa0')](function(_0x393d84){const _0x35d005=_0x26eddf;if(_0x393d84)return _0x393d84['removeAgents'](_0x2ef6bf[_0x35d005('0x34')]['ids'])[_0x35d005('0xa0')](function(){const _0x222ab8=_0x35d005;if(_[_0x222ab8('0x97')](_0x2ef6bf[_0x222ab8('0x34')]['ids']))for(let _0x4abb03=0x0;_0x4abb03<_0x2ef6bf[_0x222ab8('0x34')][_0x222ab8('0x78')][_0x222ab8('0x21')];_0x4abb03+=0x1){socket[_0x222ab8('0x7')]('userWhatsappAccount:remove',{'UserId':Number(_0x2ef6bf[_0x222ab8('0x34')][_0x222ab8('0x78')][_0x4abb03]),'WhatsappAccountId':Number(_0x2ef6bf[_0x222ab8('0x67')]['id'])});}else socket[_0x222ab8('0x7')](_0x222ab8('0x2b'),{'UserId':Number(_0x2ef6bf['query'][_0x222ab8('0x78')]),'WhatsappAccountId':Number(_0x2ef6bf[_0x222ab8('0x67')]['id'])});});})[_0x26eddf('0xa0')](respondWithStatusCode(_0x3f89bc,null))[_0x26eddf('0x3a')](handleError(_0x3f89bc,null));},exports[_0x4c8c44('0x8e')]=function(_0x7b4314,_0x2d9dc3){const _0x121b98=_0x4c8c44;let _0x2bf740={};const _0x10a288={};let _0x3b255b,_0x2da392;return db[_0x121b98('0x2c')][_0x121b98('0x38')]({'where':{'id':_0x7b4314[_0x121b98('0x67')]['id']}})[_0x121b98('0xa0')](handleEntityNotFound(_0x2d9dc3,null))['then'](function(_0x22dc66){const _0x3819df=_0x121b98;if(_0x22dc66)return _0x3b255b=_0x22dc66,_0x10a288[_0x3819df('0x29')]=_[_0x3819df('0x9a')](db[_0x3819df('0x87')][_0x3819df('0x3c')]),_0x10a288[_0x3819df('0x34')]=_['keys'](_0x7b4314['query']),_0x10a288[_0x3819df('0x71')]=_[_0x3819df('0xa')](_0x10a288[_0x3819df('0x29')],_0x10a288[_0x3819df('0x34')]),_0x2bf740[_0x3819df('0x13')]=_[_0x3819df('0xa')](_0x10a288[_0x3819df('0x29')],qs['fields'](_0x7b4314['query'][_0x3819df('0x2')])),_0x2bf740[_0x3819df('0x13')]=_0x2bf740[_0x3819df('0x13')][_0x3819df('0x21')]?_0x2bf740[_0x3819df('0x13')]:_0x10a288[_0x3819df('0x29')],_0x2bf740[_0x3819df('0x9f')]=qs[_0x3819df('0x9c')](_0x7b4314['query'][_0x3819df('0x9c')]),_0x2bf740[_0x3819df('0x6e')]=qs[_0x3819df('0x71')](_[_0x3819df('0xc')](_0x7b4314[_0x3819df('0x34')],_0x10a288[_0x3819df('0x71')])),_0x7b4314[_0x3819df('0x34')][_0x3819df('0x80')]&&(_0x2bf740[_0x3819df('0x6e')]=_[_0x3819df('0x94')](_0x2bf740['where'],{[Op['or']]:_['map'](_0x2bf740[_0x3819df('0x13')],function(_0x109ebb){const _0x5de6a5=_0x3819df,_0x1de72a={};return _0x1de72a[_0x109ebb]={[Op[_0x5de6a5('0x3')]]:'%'+_0x7b4314[_0x5de6a5('0x34')]['filter']+'%'},_0x1de72a;})})),_0x2bf740=_[_0x3819df('0x94')]({},_0x2bf740,_0x7b4314[_0x3819df('0x95')]),_0x3b255b[_0x3819df('0x8e')](_0x2bf740);})[_0x121b98('0xa0')](function(_0x12a82d){const _0x1abeb0=_0x121b98;if(_0x12a82d)return _0x2da392=_0x12a82d[_0x1abeb0('0x21')],typeof _0x7b4314[_0x1abeb0('0x34')]['nolimit']===_0x1abeb0('0x37')&&(_0x2bf740[_0x1abeb0('0x5f')]=qs[_0x1abeb0('0x5f')](_0x7b4314[_0x1abeb0('0x34')][_0x1abeb0('0x5f')]),_0x2bf740[_0x1abeb0('0x7f')]=qs[_0x1abeb0('0x7f')](_0x7b4314[_0x1abeb0('0x34')][_0x1abeb0('0x7f')])),_0x3b255b[_0x1abeb0('0x8e')](_0x2bf740);})[_0x121b98('0xa0')](function(_0x370087){if(_0x370087)return _0x370087?{'count':_0x2da392,'rows':_0x370087}:null;})[_0x121b98('0xa0')](respondWithResult(_0x2d9dc3,null))['catch'](handleError(_0x2d9dc3,null));},exports[_0x4c8c44('0x4c')]=function(_0x5c9b37,_0x18257a){const _0x23d1a6=_0x4c8c44;return db[_0x23d1a6('0x2c')]['findOne']({'where':{'id':_0x5c9b37[_0x23d1a6('0x67')]['id']}})[_0x23d1a6('0xa0')](handleEntityNotFound(_0x18257a,null))[_0x23d1a6('0xa0')](function(_0x2bfad3){const _0x562147=_0x23d1a6;if(_0x2bfad3)return db[_0x562147('0x66')][_0x562147('0x4')](function(_0x5ba666){const _0x4bade8=_0x562147;return db[_0x4bade8('0x60')]['destroy']({'where':{'WhatsappAccountId':_0x5c9b37[_0x4bade8('0x67')]['id']},'transaction':_0x5ba666})[_0x4bade8('0xa0')](function(){const _0x318c5b=_0x4bade8,_0x545157=_[_0x318c5b('0x5d')](_0x5c9b37['body'],function(_0x1adadc){const _0x506cb5=_0x318c5b;return _0x1adadc[_0x506cb5('0x58')]=_0x5c9b37['params']['id'],_0x1adadc;});return db[_0x318c5b('0x60')][_0x318c5b('0x7a')](_0x545157,{'transaction':_0x5ba666});});})[_0x562147('0xa0')](function(){const _0x4196fb=_0x562147;return db['WhatsappApplication'][_0x4196fb('0x2a')]({'where':{'WhatsappAccountId':_0x5c9b37[_0x4196fb('0x67')]['id']},'order':_0x4196fb('0x55')});});})[_0x23d1a6('0xa0')](respondWithResult(_0x18257a,null))['catch'](handleError(_0x18257a,null));},exports[_0x4c8c44('0x5e')]=function(_0x180191,_0x51a6dc){const _0xc1fff4=_0x4c8c44;let _0x4a35ac={};const _0x27a520={};let _0x4964cf,_0x8d8753;return db['WhatsappAccount'][_0xc1fff4('0x38')]({'where':{'id':_0x180191[_0xc1fff4('0x67')]['id']}})[_0xc1fff4('0xa0')](handleEntityNotFound(_0x51a6dc,null))[_0xc1fff4('0xa0')](function(_0x15d547){const _0x1ca4fb=_0xc1fff4;if(_0x15d547)return _0x4964cf=_0x15d547,_0x27a520['model']=_['keys'](db['WhatsappApplication'][_0x1ca4fb('0x3c')]),_0x27a520[_0x1ca4fb('0x34')]=_[_0x1ca4fb('0x9a')](_0x180191[_0x1ca4fb('0x34')]),_0x27a520['filters']=_[_0x1ca4fb('0xa')](_0x27a520[_0x1ca4fb('0x29')],_0x27a520[_0x1ca4fb('0x34')]),_0x4a35ac[_0x1ca4fb('0x13')]=_[_0x1ca4fb('0xa')](_0x27a520[_0x1ca4fb('0x29')],qs[_0x1ca4fb('0x2')](_0x180191[_0x1ca4fb('0x34')][_0x1ca4fb('0x2')])),_0x4a35ac[_0x1ca4fb('0x13')]=_0x4a35ac[_0x1ca4fb('0x13')][_0x1ca4fb('0x21')]?_0x4a35ac[_0x1ca4fb('0x13')]:_0x27a520[_0x1ca4fb('0x29')],_0x4a35ac[_0x1ca4fb('0x9f')]=qs[_0x1ca4fb('0x9c')](_0x180191[_0x1ca4fb('0x34')][_0x1ca4fb('0x9c')]),_0x4a35ac['where']=qs['filters'](_['pick'](_0x180191[_0x1ca4fb('0x34')],_0x27a520[_0x1ca4fb('0x71')])),_0x180191[_0x1ca4fb('0x34')]['filter']&&(_0x4a35ac['where']=_[_0x1ca4fb('0x94')](_0x4a35ac[_0x1ca4fb('0x6e')],{[Op['or']]:_[_0x1ca4fb('0x5d')](_0x4a35ac[_0x1ca4fb('0x13')],function(_0x13917f){const _0x2a672a=_0x1ca4fb,_0x16adf1={};return _0x16adf1[_0x13917f]={[Op[_0x2a672a('0x3')]]:'%'+_0x180191[_0x2a672a('0x34')][_0x2a672a('0x80')]+'%'},_0x16adf1;})})),_0x4a35ac=_[_0x1ca4fb('0x94')]({},_0x4a35ac,_0x180191[_0x1ca4fb('0x95')]),_0x4964cf[_0x1ca4fb('0x5e')](_0x4a35ac);})['then'](function(_0xb8fb8f){const _0x3513e0=_0xc1fff4;if(_0xb8fb8f)return _0x8d8753=_0xb8fb8f[_0x3513e0('0x21')],typeof _0x180191[_0x3513e0('0x34')]['nolimit']===_0x3513e0('0x37')&&(_0x4a35ac[_0x3513e0('0x5f')]=qs['limit'](_0x180191[_0x3513e0('0x34')][_0x3513e0('0x5f')]),_0x4a35ac[_0x3513e0('0x7f')]=qs['offset'](_0x180191[_0x3513e0('0x34')]['offset'])),_0x4964cf[_0x3513e0('0x5e')](_0x4a35ac);})[_0xc1fff4('0xa0')](function(_0x4cd06f){if(_0x4cd06f)return _0x4cd06f?{'count':_0x8d8753,'rows':_0x4cd06f}:null;})[_0xc1fff4('0xa0')](respondWithResult(_0x51a6dc,null))[_0xc1fff4('0x3a')](handleError(_0x51a6dc,null));},exports[_0x4c8c44('0x11')]=function(_0x5a13d7,_0x5e4395){const _0xec0481=_0x4c8c44,_0x13100b={'channel':_0xec0481('0x7e')};let _0x480f18=[],_0x5e4577=[];const _0x1a3203={};return db[_0xec0481('0x2c')]['findOne']({'where':{'id':_0x5a13d7[_0xec0481('0x67')]['id']},'include':[{'model':db[_0xec0481('0x60')],'as':_0xec0481('0x7b')}]})['then'](handleEntityNotFound(_0x5e4395,null))['then'](function(_0x16110c){const _0x3e0b0a=_0xec0481;return _0x13100b[_0x3e0b0a('0x1b')]=_0x16110c,_0x13100b[_0x3e0b0a('0x1c')]=_[_0x3e0b0a('0x4b')](_0x16110c['Applications'],[_0x3e0b0a('0x55')],[_0x3e0b0a('0x4d')]),_0x13100b['account'][_0x3e0b0a('0x7b')]&&delete _0x13100b['account'][_0x3e0b0a('0x7b')],db['CmContact'][_0x3e0b0a('0x83')]();})[_0xec0481('0xa0')](function(_0x331b09){const _0xba0fce=_0xec0481;if(!_0x331b09)throw new db[(_0xba0fce('0x93'))][(_0xba0fce('0x30'))](_0xba0fce('0x74'));_0x480f18=_[_0xba0fce('0x6d')](_[_0xba0fce('0x9a')](_0x331b09),[_0xba0fce('0x9e'),_0xba0fce('0x26')]),_0x5e4577=_[_0xba0fce('0x6d')](_[_0xba0fce('0x9a')](_0x331b09),['createdAt',_0xba0fce('0x26'),_0xba0fce('0x19'),'ListId']),_0x13100b[_0xba0fce('0x75')]={'mapKey':'mobile'};_0x13100b[_0xba0fce('0x1b')][_0xba0fce('0x57')]&&_0x13100b[_0xba0fce('0x1b')][_0xba0fce('0x57')]===_0xba0fce('0x5b')&&(_0x13100b[_0xba0fce('0x75')][_0xba0fce('0x3e')]=_0x5a13d7[_0xba0fce('0x75')][_0xba0fce('0x8f')]['replace'](_0xba0fce('0x89'),''),_0x13100b[_0xba0fce('0x75')][_0xba0fce('0x75')]=_0x5a13d7[_0xba0fce('0x75')]['Body'],_0x13100b[_0xba0fce('0x75')][_0xba0fce('0x1e')]=_0x5a13d7['body']['MessageSid']);_0x13100b['body']['id']&&delete _0x13100b['body']['id'];if(_[_0xba0fce('0x6f')](_0x13100b[_0xba0fce('0x75')]['from']))throw new db[(_0xba0fce('0x93'))][(_0xba0fce('0x30'))]('from\x20is\x20mandatory');if(_['isNil'](_0x13100b[_0xba0fce('0x75')]['body'])||_0x13100b[_0xba0fce('0x75')]['body']==='')throw new db[(_0xba0fce('0x93'))][(_0xba0fce('0x30'))](_0xba0fce('0x3b'));if(_[_0xba0fce('0x6f')](_0x13100b[_0xba0fce('0x75')][_0xba0fce('0x8c')]))throw new db[(_0xba0fce('0x93'))][(_0xba0fce('0x30'))]('mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x5e4577);if(!_[_0xba0fce('0x8b')](_0x5e4577,_0x13100b['body']['mapKey']))throw new db[(_0xba0fce('0x93'))]['ValidationError'](_0xba0fce('0x17')+_0x5e4577);return _0x1a3203[_0x13100b[_0xba0fce('0x75')][_0xba0fce('0x8c')]]=_0x13100b[_0xba0fce('0x75')][_0xba0fce('0x3e')],db[_0xba0fce('0x92')]['findOne']({'where':{'id':_0x13100b[_0xba0fce('0x1b')][_0xba0fce('0x14')]},'include':[{'model':db['CmContact'],'as':_0xba0fce('0x42'),'where':_0x1a3203,'limit':0x1,'order':[['updatedAt','DESC']]}]});})[_0xec0481('0xa0')](handleEntityNotFound(_0x5e4395,null))[_0xec0481('0xa0')](function(_0x3d2660){const _0x2e8f73=_0xec0481;if(_0x3d2660){_0x13100b['list']=_['omit'](_0x3d2660,['Contacts']);if(_0x3d2660[_0x2e8f73('0x42')]['length'])return _0x3d2660[_0x2e8f73('0x42')][0x0];const _0x5e1f19=_[_0x2e8f73('0x27')](_0x13100b[_0x2e8f73('0x75')],{'firstName':_0x13100b[_0x2e8f73('0x75')][_0x2e8f73('0x3e')],'ListId':_0x3d2660['id']});return _0x5e1f19[_0x13100b[_0x2e8f73('0x75')][_0x2e8f73('0x8c')]]=_0x13100b[_0x2e8f73('0x75')][_0x2e8f73('0x3e')],db['CmContact'][_0x2e8f73('0x39')](_0x5e1f19,{'fields':_0x480f18,'raw':!![]});}})[_0xec0481('0xa0')](handleEntityNotFound(_0x5e4395,null))[_0xec0481('0xa0')](function(_0x932c08){const _0x4538ae=_0xec0481;if(_0x932c08){_0x13100b[_0x4538ae('0x56')]=_0x932c08;const _0x565cbf={'ContactId':_0x932c08['id'],'phone':_0x13100b[_0x4538ae('0x75')]['from'],'WhatsappAccountId':_0x5a13d7[_0x4538ae('0x67')]['id']},_0xc54f77={'ContactId':_0x932c08['id'],'WhatsappAccountId':_0x5a13d7[_0x4538ae('0x67')]['id'],'closed':![]};return db[_0x4538ae('0x77')][_0x4538ae('0x38')]({'where':_0xc54f77})[_0x4538ae('0xa0')](function(_0x3a231d){const _0xf7f91b=_0x4538ae;if(_0x3a231d)return[_0x3a231d,![]];return db[_0xf7f91b('0x77')]['create'](_0x565cbf)[_0xf7f91b('0xa0')](function(_0x3c1262){return[_0x3c1262,!![]];});});}})[_0xec0481('0xa0')](function([_0x2a73eb,_0x22546b]){const _0x402590=_0xec0481;return _0x13100b[_0x402590('0x70')]=_0x2a73eb['get']({'plain':!![]}),_0x13100b[_0x402590('0x70')]['created']=![],_0x22546b&&(_0x13100b[_0x402590('0x1b')]['autoclose']&&_0x13100b[_0x402590('0x1c')][_0x402590('0x50')]({'id':0x0,'priority':_0x13100b[_0x402590('0x1c')][_0x402590('0x21')]+0x1,'app':_0x402590('0x16'),'appdata':_0x402590('0x51'),'interval':'*,*,*,*'}),_0x13100b[_0x402590('0x70')][_0x402590('0x79')]=!![]),db[_0x402590('0xe')]['create']({'phone':_0x13100b[_0x402590('0x75')][_0x402590('0x3e')],'messageId':_0x13100b[_0x402590('0x75')][_0x402590('0x1e')],'body':_0x13100b[_0x402590('0x75')][_0x402590('0x75')],'WhatsappAccountId':_0x5a13d7['params']['id'],'WhatsappInteractionId':_0x2a73eb['id'],'direction':'in','ContactId':_0x2a73eb[_0x402590('0x4e')],'AttachmentId':_0x13100b['body'][_0x402590('0x85')]});})[_0xec0481('0xa0')](function(_0x417e27){const _0x41c0f1=_0xec0481;_0x13100b['message']=_0x417e27;if(_0x13100b[_0x41c0f1('0x70')][_0x41c0f1('0x1a')])return db['User'][_0x41c0f1('0x38')]({'attributes':['id',_0x41c0f1('0x40')],'where':{'id':_0x13100b['interaction'][_0x41c0f1('0x1a')]}})[_0x41c0f1('0xa0')](function(_0x5c3e54){const _0x1d0512=_0x41c0f1;return _0x5c3e54&&_0x13100b[_0x1d0512('0x1c')]['unshift']({'id':0x0,'priority':0x0,'app':_0x1d0512('0x88'),'appdata':_0x5c3e54['name']+','+(_0x13100b[_0x1d0512('0x1b')][_0x1d0512('0x36')]||0xa),'interval':'*,*,*,*'}),respondWithRpcPromise(_0x1d0512('0x6b'),_0x1d0512('0xb'),_0x13100b);});return respondWithRpcPromise(_0x41c0f1('0x6b'),_0x41c0f1('0xb'),_0x13100b);})[_0xec0481('0xa0')](function(_0x39fbd1){const _0x18b220=_0xec0481;if(_0x39fbd1){const _0xf93ffe=0xc8,_0x300d37=_0x18b220('0x47');return logger[_0x18b220('0x25')](_0x18b220('0x32'),_0x300d37,_0xf93ffe,'entity\x20found'),logger[_0x18b220('0x9d')]('WhatsappAccount,\x20%s,\x20%s,\x20%s,\x20%s',_0x300d37,_0xf93ffe,_0x18b220('0x8'),JSON['stringify'](_0x39fbd1)),_0x13100b[_0x18b220('0x1b')]['type']===_0x18b220('0x5b')?_0x5e4395['status'](_0xf93ffe)[_0x18b220('0x7d')](_0x18b220('0x96'),_0x18b220('0x18'))[_0x18b220('0x24')](_0x18b220('0x73')):_0x5e4395[_0x18b220('0x86')](_0xf93ffe)[_0x18b220('0x59')](_0x39fbd1);}})[_0xec0481('0x3a')](handleError(_0x5e4395,null));},exports[_0x4c8c44('0x24')]=function(_0x2c3ddf,_0x2a879a){const _0x407904=_0x4c8c44;let _0x2508b2,_0x13ac39;if(_[_0x407904('0x6f')](_0x2c3ddf[_0x407904('0x75')][_0x407904('0x75')])||_0x2c3ddf['body'][_0x407904('0x75')]==='')throw new db['Sequelize'][(_0x407904('0x30'))](_0x407904('0x3b'));if(_['isNil'](_0x2c3ddf['body']['to']))throw new db[(_0x407904('0x93'))][(_0x407904('0x30'))](_0x407904('0x5'));const _0x6bd252=_0x2c3ddf['body']['to'];return db[_0x407904('0x2c')]['findOne']({'where':{'id':_0x2c3ddf[_0x407904('0x67')]['id']},'include':[{'model':db['CmList'],'as':_0x407904('0x15'),'include':[{'model':db[_0x407904('0x35')],'as':_0x407904('0x42'),'where':{'mobile':_0x6bd252},'limit':0x1,'order':[[_0x407904('0x26'),'DESC']]}]}]})[_0x407904('0xa0')](handleEntityNotFound(_0x2a879a,null))[_0x407904('0xa0')](function(_0x1edf1e){const _0x309e2b=_0x407904;if(_0x1edf1e&&_0x1edf1e['List']){_0x2508b2=_0x1edf1e[_0x309e2b('0x45')]({'plain':!![]});if(_0x2508b2[_0x309e2b('0x15')]&&_0x2508b2['List'][_0x309e2b('0x42')][_0x309e2b('0x21')])return _0x2508b2['List'][_0x309e2b('0x42')][0x0];return db[_0x309e2b('0x35')][_0x309e2b('0x39')](_[_0x309e2b('0x27')](_0x2c3ddf[_0x309e2b('0x75')],{'firstName':_0x6bd252,'mobile':_0x6bd252,'phone':_0x6bd252,'ListId':_0x2508b2[_0x309e2b('0x14')]}));}})['then'](handleEntityNotFound(_0x2a879a,null))[_0x407904('0xa0')](function(_0x18f26b){const _0x4e84e3=_0x407904;if(_0x18f26b)return _0x13ac39=_0x18f26b,db[_0x4e84e3('0x77')][_0x4e84e3('0x38')]({'where':{'ContactId':_0x13ac39['id'],'closed':![],'WhatsappAccountId':_0x2508b2['id']}})['then'](function(_0x8cd446){const _0x173f4f=_0x4e84e3;if(_0x8cd446)return[_0x8cd446,![]];return db[_0x173f4f('0x77')]['create']({'UserId':_0x2c3ddf[_0x173f4f('0x28')]['id'],'ContactId':_0x13ac39['id'],'WhatsappAccountId':_0x2508b2['id'],'phone':_0x6bd252,'firstMsgDirection':_0x173f4f('0x84'),'Messages':[_['merge'](_0x2c3ddf['body'],{'read':![],'body':_0x2c3ddf['body']['body'],'phone':_0x6bd252,'WhatsappAccountId':_0x2508b2['id'],'UserId':_0x2c3ddf['user']['id'],'ContactId':_0x13ac39['id']})]},{'include':[{'model':db[_0x173f4f('0xe')],'as':_0x173f4f('0x4f')}]})[_0x173f4f('0xa0')](function(_0x5cc8c6){return[_0x5cc8c6,!![]];});});})[_0x407904('0xa0')](function([_0x34c6d5,_0x3e6578]){const _0x5b6024=_0x407904;if(_0x3e6578)return _0x34c6d5;return db[_0x5b6024('0xe')][_0x5b6024('0x39')](_[_0x5b6024('0x94')](_0x2c3ddf[_0x5b6024('0x75')],{'read':![],'body':_0x2c3ddf[_0x5b6024('0x75')]['body'],'phone':_0x6bd252,'WhatsappAccountId':_0x2508b2['id'],'WhatsappInteractionId':_0x34c6d5['id'],'UserId':_0x2c3ddf[_0x5b6024('0x28')]['id'],'ContactId':_0x13ac39['id']}))[_0x5b6024('0xa0')](function(_0x48b3e7){const _0x4cde59=_0x5b6024;return _0x34c6d5[_0x4cde59('0x76')][_0x4cde59('0x4f')]=[],_0x34c6d5[_0x4cde59('0x76')][_0x4cde59('0x4f')][_0x4cde59('0x50')](_0x48b3e7[_0x4cde59('0x76')]),_0x34c6d5;});})[_0x407904('0xa0')](respondWithResult(_0x2a879a,null))[_0x407904('0x3a')](handleError(_0x2a879a,null));}; \ No newline at end of file +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 diff --git a/server/api/whatsappAccount/whatsappAccount.events.js b/server/api/whatsappAccount/whatsappAccount.events.js index be81138..adf73b3 100644 --- a/server/api/whatsappAccount/whatsappAccount.events.js +++ b/server/api/whatsappAccount/whatsappAccount.events.js @@ -1 +1 @@ -const a784_0x1f36=['../../mysqldb','events','emit','update','undefined','addHook','WhatsappAccount','save'];(function(_0x530158,_0x1f361a){const _0x261b36=function(_0xb83c53){while(--_0xb83c53){_0x530158['push'](_0x530158['shift']());}};_0x261b36(++_0x1f361a);}(a784_0x1f36,0x70));const a784_0x261b=function(_0x530158,_0x1f361a){_0x530158=_0x530158-0x0;let _0x261b36=a784_0x1f36[_0x530158];return _0x261b36;};const _0x2554b0=a784_0x261b;'use strict';const EventEmitter=require(_0x2554b0('0x1')),WhatsappAccount=require(_0x2554b0('0x0'))['db'][_0x2554b0('0x6')],WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x2554b0('0x7'),'afterUpdate':_0x2554b0('0x3'),'afterDestroy':'remove'};function emitEvent(_0xb83c53){return function(_0x2321fd){const _0x203d2c=a784_0x261b;WhatsappAccountEvents['emit'](_0xb83c53+':'+_0x2321fd['id'],_0x2321fd),WhatsappAccountEvents[_0x203d2c('0x2')](_0xb83c53,_0x2321fd);};}for(const e in events){if(typeof events[e]!==_0x2554b0('0x4')){const event=events[e];WhatsappAccount[_0x2554b0('0x5')](e,emitEvent(event));}}module['exports']=WhatsappAccountEvents; \ No newline at end of file +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 diff --git a/server/api/whatsappAccount/whatsappAccount.model.js b/server/api/whatsappAccount/whatsappAccount.model.js index 031c357..07551bd 100644 --- a/server/api/whatsappAccount/whatsappAccount.model.js +++ b/server/api/whatsappAccount/whatsappAccount.model.js @@ -1 +1 @@ -const a785_0x327d=['exports','./whatsappAccount.attributes','WhatsappAccount','whatsapp_accounts'];(function(_0x3edfb4,_0x327d2b){const _0x2f6a58=function(_0x38d1e5){while(--_0x38d1e5){_0x3edfb4['push'](_0x3edfb4['shift']());}};_0x2f6a58(++_0x327d2b);}(a785_0x327d,0xf1));const a785_0x2f6a=function(_0x3edfb4,_0x327d2b){_0x3edfb4=_0x3edfb4-0x0;let _0x2f6a58=a785_0x327d[_0x3edfb4];return _0x2f6a58;};const _0x1f3fc8=a785_0x2f6a;'use strict';const attributes=require(_0x1f3fc8('0x0'));module[_0x1f3fc8('0x3')]=function(_0x38d1e5){const _0x2f5178=_0x1f3fc8,_0x4294ff=_0x38d1e5['define'](_0x2f5178('0x1'),attributes,{'tableName':_0x2f5178('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4294ff;}; \ No newline at end of file +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 diff --git a/server/api/whatsappAccount/whatsappAccount.rpc.js b/server/api/whatsappAccount/whatsappAccount.rpc.js index d33f58b..b3a189f 100644 --- a/server/api/whatsappAccount/whatsappAccount.rpc.js +++ b/server/api/whatsappAccount/whatsappAccount.rpc.js @@ -1 +1 @@ -const a786_0x5d36=['stringify','error','map','include','../../mysqldb','catch','../../rediscache','options','register','attributes','debug','WhatsappAccount','./whatsappAccount.socket','raw','../../config/logger','message','ShowWhatsappAccount','then','model'];(function(_0x3f8022,_0x5d3640){const _0x44db75=function(_0xcd8bbf){while(--_0xcd8bbf){_0x3f8022['push'](_0x3f8022['shift']());}};_0x44db75(++_0x5d3640);}(a786_0x5d36,0x151));const a786_0x44db=function(_0x3f8022,_0x5d3640){_0x3f8022=_0x3f8022-0x0;let _0x44db75=a786_0x5d36[_0x3f8022];return _0x44db75;};const _0x3cac25=a786_0x44db;'use strict';const db=require(_0x3cac25('0x9'))['db'],logger=require(_0x3cac25('0x0'))('rpc'),_=require('lodash'),{getSocket}=require(_0x3cac25('0xb')),socket=getSocket();require(_0x3cac25('0x11'))[_0x3cac25('0xd')](socket),exports['ShowWhatsappAccount']=function(_0xcd8bbf){const _0x350073=this;return new Promise(function(_0x136349,_0x3b2063){const _0x782f7=a786_0x44db;return db[_0x782f7('0x10')]['findOne']({'raw':_0xcd8bbf[_0x782f7('0xc')]?_0xcd8bbf['options'][_0x782f7('0x12')]===undefined?!![]:![]:!![],'where':_0xcd8bbf[_0x782f7('0xc')]?_0xcd8bbf[_0x782f7('0xc')]['where']||null:null,'attributes':_0xcd8bbf[_0x782f7('0xc')]?_0xcd8bbf['options']['attributes']||null:null,'include':_0xcd8bbf[_0x782f7('0xc')]?_0xcd8bbf[_0x782f7('0xc')][_0x782f7('0x8')]?_[_0x782f7('0x7')](_0xcd8bbf['options'][_0x782f7('0x8')],function(_0x302855){const _0x123588=_0x782f7;return{'model':db[_0x302855['model']],'as':_0x302855['as'],'attributes':_0x302855[_0x123588('0xe')],'include':_0x302855[_0x123588('0x8')]?_[_0x123588('0x7')](_0x302855[_0x123588('0x8')],function(_0x176fc8){const _0x1c1e4a=_0x123588;return{'model':db[_0x176fc8['model']],'as':_0x176fc8['as'],'attributes':_0x176fc8['attributes'],'include':_0x176fc8[_0x1c1e4a('0x8')]?_[_0x1c1e4a('0x7')](_0x176fc8[_0x1c1e4a('0x8')],function(_0x12a6f2){const _0x2ab4e9=_0x1c1e4a;return{'model':db[_0x12a6f2[_0x2ab4e9('0x4')]],'as':_0x12a6f2['as'],'attributes':_0x12a6f2[_0x2ab4e9('0xe')]};}):[]};}):[]};}):[]:[]})[_0x782f7('0x3')](function(_0x266e73){const _0x3979dd=_0x782f7;logger['info'](_0x3979dd('0x2'),_0xcd8bbf),logger[_0x3979dd('0xf')](_0x3979dd('0x2'),_0xcd8bbf,JSON[_0x3979dd('0x5')](_0x266e73)),_0x136349(_0x266e73);})[_0x782f7('0xa')](function(_0x2b6e67){const _0x4bd837=_0x782f7;logger[_0x4bd837('0x6')]('ShowWhatsappAccount',_0x2b6e67[_0x4bd837('0x1')],_0xcd8bbf),_0x3b2063(_0x350073['error'](0x1f4,_0x2b6e67[_0x4bd837('0x1')]));});});}; \ No newline at end of file +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 diff --git a/server/api/whatsappAccount/whatsappAccount.socket.js b/server/api/whatsappAccount/whatsappAccount.socket.js index 40506ee..d777846 100644 --- a/server/api/whatsappAccount/whatsappAccount.socket.js +++ b/server/api/whatsappAccount/whatsappAccount.socket.js @@ -1 +1 @@ -const a787_0x200b=['whatsappAccount:','register','length','remove','emit','update','./whatsappAccount.events'];(function(_0x46d0a7,_0x200bf4){const _0x536b50=function(_0x2eadd0){while(--_0x2eadd0){_0x46d0a7['push'](_0x46d0a7['shift']());}};_0x536b50(++_0x200bf4);}(a787_0x200b,0x111));const a787_0x536b=function(_0x46d0a7,_0x200bf4){_0x46d0a7=_0x46d0a7-0x0;let _0x536b50=a787_0x200b[_0x46d0a7];return _0x536b50;};const _0x12f3f3=a787_0x536b;'use strict';const WhatsappAccountEvents=require(_0x12f3f3('0x6')),events=['save',_0x12f3f3('0x3'),_0x12f3f3('0x5')];function createListener(_0x2eadd0,_0x113f09){return function(_0x307884){const _0x3a0993=a787_0x536b;_0x113f09[_0x3a0993('0x4')](_0x2eadd0,_0x307884);};}exports[_0x12f3f3('0x1')]=function(_0x354534){const _0x1f93de=_0x12f3f3;for(let _0x5531ea=0x0,_0x2fdcc9=events[_0x1f93de('0x2')];_0x5531ea<_0x2fdcc9;_0x5531ea++){const _0x467515=events[_0x5531ea],_0x402705=createListener(_0x1f93de('0x0')+_0x467515,_0x354534);WhatsappAccountEvents['on'](_0x467515,_0x402705);}}; \ No newline at end of file +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 diff --git a/server/api/whatsappApplication/index.js b/server/api/whatsappApplication/index.js index edf4b63..5fa9b31 100644 --- a/server/api/whatsappApplication/index.js +++ b/server/api/whatsappApplication/index.js @@ -1 +1 @@ -const a788_0x5036=['isAuthenticated','../../components/auth/service','Router','destroy','post','index','get','update','create','express','put','./whatsappApplication.controller','exports','show','/:id'];(function(_0x437ffb,_0x5036fb){const _0x510f2f=function(_0x39bf0b){while(--_0x39bf0b){_0x437ffb['push'](_0x437ffb['shift']());}};_0x510f2f(++_0x5036fb);}(a788_0x5036,0x71));const a788_0x510f=function(_0x437ffb,_0x5036fb){_0x437ffb=_0x437ffb-0x0;let _0x510f2f=a788_0x5036[_0x437ffb];return _0x510f2f;};const _0x3c5b79=a788_0x510f;'use strict';const express=require(_0x3c5b79('0x1')),router=express[_0x3c5b79('0x9')](),auth=require(_0x3c5b79('0x8')),controller=require(_0x3c5b79('0x3'));router[_0x3c5b79('0xd')]('/',auth[_0x3c5b79('0x7')](),controller[_0x3c5b79('0xc')]),router[_0x3c5b79('0xd')]('/:id',auth[_0x3c5b79('0x7')](),controller[_0x3c5b79('0x5')]),router[_0x3c5b79('0xb')]('/',auth[_0x3c5b79('0x7')](),controller[_0x3c5b79('0x0')]),router[_0x3c5b79('0x2')](_0x3c5b79('0x6'),auth[_0x3c5b79('0x7')](),controller[_0x3c5b79('0xe')]),router['delete'](_0x3c5b79('0x6'),auth[_0x3c5b79('0x7')](),controller[_0x3c5b79('0xa')]),module[_0x3c5b79('0x4')]=router; \ No newline at end of file +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 diff --git a/server/api/whatsappApplication/whatsappApplication.attributes.js b/server/api/whatsappApplication/whatsappApplication.attributes.js index e183358..d32c232 100644 --- a/server/api/whatsappApplication/whatsappApplication.attributes.js +++ b/server/api/whatsappApplication/whatsappApplication.attributes.js @@ -1 +1 @@ -const a789_0x1d28=['TEXT','noop','sequelize','STRING','INTEGER','exports'];(function(_0x2fe58d,_0x1d28d8){const _0x4804dd=function(_0x1bf50d){while(--_0x1bf50d){_0x2fe58d['push'](_0x2fe58d['shift']());}};_0x4804dd(++_0x1d28d8);}(a789_0x1d28,0x1d6));const a789_0x4804=function(_0x2fe58d,_0x1d28d8){_0x2fe58d=_0x2fe58d-0x0;let _0x4804dd=a789_0x1d28[_0x2fe58d];return _0x4804dd;};const _0x56e083=a789_0x4804;'use strict';const Sequelize=require(_0x56e083('0x0'));module[_0x56e083('0x3')]={'priority':{'type':Sequelize[_0x56e083('0x2')],'allowNull':![]},'app':{'type':Sequelize[_0x56e083('0x1')],'allowNull':![],'defaultValue':_0x56e083('0x5')},'appdata':{'type':Sequelize[_0x56e083('0x4')]()},'description':{'type':Sequelize[_0x56e083('0x1')]},'interval':{'type':Sequelize[_0x56e083('0x1')],'defaultValue':'*,*,*,*'}}; \ No newline at end of file +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 diff --git a/server/api/whatsappApplication/whatsappApplication.controller.js b/server/api/whatsappApplication/whatsappApplication.controller.js index e6b5384..564296b 100644 --- a/server/api/whatsappApplication/whatsappApplication.controller.js +++ b/server/api/whatsappApplication/whatsappApplication.controller.js @@ -1 +1 @@ -const a790_0x2a89=['keys','type','../../config/logger','model','includeAll','order','rawAttributes','error','map','destroy','undefined','findAll','options','status','send','params','attributes','pick','name','merge','catch','limit','index','rows','../../mysqldb','api','create','where','../../components/parsers/qs','findOne','sequelize','json','filter','set','offset','length','filters','then','WhatsappApplication','key','fieldName','intersection','count','query','body','include','sort','end','like','fields','show','update'];(function(_0x5248e6,_0x2a898f){const _0x4fa820=function(_0xdb68d9){while(--_0xdb68d9){_0x5248e6['push'](_0x5248e6['shift']());}};_0x4fa820(++_0x2a898f);}(a790_0x2a89,0x12e));const a790_0x4fa8=function(_0x5248e6,_0x2a898f){_0x5248e6=_0x5248e6-0x0;let _0x4fa820=a790_0x2a89[_0x5248e6];return _0x4fa820;};const _0x4a7012=a790_0x4fa8;'use strict';const _=require('lodash'),qs=require(_0x4a7012('0x26')),logger=require(_0x4a7012('0xc'))(_0x4a7012('0x23')),db=require(_0x4a7012('0x22'))['db'],{Op}=require(_0x4a7012('0x28'));function respondWithResult(_0xdb68d9,_0x1d19f7){return _0x1d19f7=_0x1d19f7||0xc8,function(_0x22b665){const _0xac80ed=a790_0x4fa8;if(_0x22b665)return _0xdb68d9[_0xac80ed('0x17')](_0x1d19f7)['json'](_0x22b665);};}function respondWithFilteredResult(_0x1f1d98,_0x289093){return function(_0x382f68){const _0x576cab=a790_0x4fa8;if(_0x382f68){const _0x1a6bb7=_0x382f68[_0x576cab('0x0')],_0x3e2641=_0x289093['offset'];let _0x57831b=_0x289093['offset']+_0x289093['limit'],_0x46db31;return _0x57831b>=_0x1a6bb7?(_0x57831b=_0x1a6bb7,_0x46db31=0xc8):_0x46db31=0xce,_0x1f1d98[_0x576cab('0x17')](_0x46db31),_0x1f1d98[_0x576cab('0x2b')]('Content-Range',_0x3e2641+'-'+_0x57831b+'/'+_0x1a6bb7)[_0x576cab('0x29')](_0x382f68);}return null;};}function saveUpdates(_0x3dcb97){return function(_0x5c8861){const _0x18a060=a790_0x4fa8;if(_0x5c8861)return _0x5c8861[_0x18a060('0x9')](_0x3dcb97)[_0x18a060('0x2f')](function(_0x1d4a14){return _0x1d4a14;});return null;};}function removeEntity(_0x257c23){return function(_0x1041d0){const _0x3ec07d=a790_0x4fa8;if(_0x1041d0)return _0x1041d0[_0x3ec07d('0x13')]()[_0x3ec07d('0x2f')](function(){const _0x25a824=_0x3ec07d;_0x257c23[_0x25a824('0x17')](0xcc)[_0x25a824('0x5')]();});};}function handleEntityNotFound(_0x562f13){return function(_0x4f2168){return!_0x4f2168&&_0x562f13['sendStatus'](0x194),_0x4f2168;};}function handleError(_0x2d966e,_0xc65de4){return _0xc65de4=_0xc65de4||0x1f4,function(_0xaa5c1b){const _0x4d7716=a790_0x4fa8;logger[_0x4d7716('0x11')](_0xaa5c1b['stack']),_0xaa5c1b['name']&&delete _0xaa5c1b['name'],_0x2d966e[_0x4d7716('0x17')](_0xc65de4)[_0x4d7716('0x18')](_0xaa5c1b);};}exports[_0x4a7012('0x20')]=function(_0x1679cb,_0x3533b2){const _0x38782c=_0x4a7012;let _0x292102={};const _0x4d65ba={},_0x45fb38={'count':0x0,'rows':[]},_0x462c00=_[_0x38782c('0x12')](db[_0x38782c('0x30')][_0x38782c('0x10')],function(_0x499de3){const _0x47c5e9=_0x38782c;return{'name':_0x499de3[_0x47c5e9('0x32')],'type':_0x499de3['type'][_0x47c5e9('0x31')]};});_0x4d65ba['model']=_['map'](_0x462c00,_0x38782c('0x1c')),_0x4d65ba['query']=_[_0x38782c('0xa')](_0x1679cb['query']),_0x4d65ba[_0x38782c('0x2e')]=_[_0x38782c('0x33')](_0x4d65ba['model'],_0x4d65ba['query']),_0x292102[_0x38782c('0x1a')]=_[_0x38782c('0x33')](_0x4d65ba[_0x38782c('0xd')],qs[_0x38782c('0x7')](_0x1679cb[_0x38782c('0x1')][_0x38782c('0x7')])),_0x292102[_0x38782c('0x1a')]=_0x292102[_0x38782c('0x1a')][_0x38782c('0x2d')]?_0x292102['attributes']:_0x4d65ba[_0x38782c('0xd')];typeof _0x1679cb[_0x38782c('0x1')]['nolimit']===_0x38782c('0x14')&&(_0x292102[_0x38782c('0x1f')]=qs[_0x38782c('0x1f')](_0x1679cb[_0x38782c('0x1')]['limit']),_0x292102['offset']=qs[_0x38782c('0x2c')](_0x1679cb[_0x38782c('0x1')]['offset']));_0x292102[_0x38782c('0xf')]=qs[_0x38782c('0x4')](_0x1679cb[_0x38782c('0x1')]['sort']),_0x292102[_0x38782c('0x25')]=qs['filters'](_[_0x38782c('0x1b')](_0x1679cb['query'],_0x4d65ba[_0x38782c('0x2e')]),_0x462c00);_0x1679cb[_0x38782c('0x1')][_0x38782c('0x2a')]&&(_0x292102[_0x38782c('0x25')]=_[_0x38782c('0x1d')](_0x292102[_0x38782c('0x25')],{[Op['or']]:_['map'](_0x462c00,function(_0x83ce6e){const _0x3e41ea=_0x38782c;if(_0x83ce6e[_0x3e41ea('0xb')]!=='VIRTUAL'){const _0x4115d7={};return _0x4115d7[_0x83ce6e[_0x3e41ea('0x1c')]]={[Op[_0x3e41ea('0x6')]]:'%'+_0x1679cb[_0x3e41ea('0x1')][_0x3e41ea('0x2a')]+'%'},_0x4115d7;}})}));_0x292102=_[_0x38782c('0x1d')]({},_0x292102,_0x1679cb['options']);const _0x12c18e={'where':_0x292102['where']};return db[_0x38782c('0x30')][_0x38782c('0x0')](_0x12c18e)[_0x38782c('0x2f')](function(_0x51f539){const _0x3bb4a8=_0x38782c;return _0x45fb38[_0x3bb4a8('0x0')]=_0x51f539,_0x1679cb[_0x3bb4a8('0x1')][_0x3bb4a8('0xe')]&&(_0x292102[_0x3bb4a8('0x3')]=[{'all':!![]}]),db[_0x3bb4a8('0x30')][_0x3bb4a8('0x15')](_0x292102);})[_0x38782c('0x2f')](function(_0x56528b){const _0x120e0f=_0x38782c;return _0x45fb38[_0x120e0f('0x21')]=_0x56528b,_0x45fb38;})[_0x38782c('0x2f')](respondWithFilteredResult(_0x3533b2,_0x292102))[_0x38782c('0x1e')](handleError(_0x3533b2,null));},exports[_0x4a7012('0x8')]=function(_0x2e76f2,_0x30095e){const _0x548697=_0x4a7012;let _0x39f192={'raw':!![],'where':{'id':_0x2e76f2[_0x548697('0x19')]['id']}};const _0x1fa084={};return _0x1fa084[_0x548697('0xd')]=_[_0x548697('0xa')](db['WhatsappApplication'][_0x548697('0x10')]),_0x1fa084[_0x548697('0x1')]=_['keys'](_0x2e76f2['query']),_0x1fa084[_0x548697('0x2e')]=_[_0x548697('0x33')](_0x1fa084[_0x548697('0xd')],_0x1fa084[_0x548697('0x1')]),_0x39f192[_0x548697('0x1a')]=_[_0x548697('0x33')](_0x1fa084[_0x548697('0xd')],qs[_0x548697('0x7')](_0x2e76f2[_0x548697('0x1')][_0x548697('0x7')])),_0x39f192[_0x548697('0x1a')]=_0x39f192['attributes'][_0x548697('0x2d')]?_0x39f192['attributes']:_0x1fa084[_0x548697('0xd')],_0x2e76f2[_0x548697('0x1')][_0x548697('0xe')]&&(_0x39f192[_0x548697('0x3')]=[{'all':!![]}]),_0x39f192=_['merge']({},_0x39f192,_0x2e76f2[_0x548697('0x16')]),db[_0x548697('0x30')]['findOne'](_0x39f192)[_0x548697('0x2f')](handleEntityNotFound(_0x30095e,null))[_0x548697('0x2f')](respondWithResult(_0x30095e,null))[_0x548697('0x1e')](handleError(_0x30095e,null));},exports[_0x4a7012('0x24')]=function(_0x5c8577,_0x4ebeb4){const _0x3dbee1=_0x4a7012;return db[_0x3dbee1('0x30')][_0x3dbee1('0x24')](_0x5c8577[_0x3dbee1('0x2')],{})[_0x3dbee1('0x2f')](respondWithResult(_0x4ebeb4,0xc9))[_0x3dbee1('0x1e')](handleError(_0x4ebeb4,null));},exports[_0x4a7012('0x9')]=function(_0x4b00ea,_0x4e4e1e){const _0x53010b=_0x4a7012;return _0x4b00ea['body']['id']&&delete _0x4b00ea[_0x53010b('0x2')]['id'],db[_0x53010b('0x30')][_0x53010b('0x27')]({'where':{'id':_0x4b00ea[_0x53010b('0x19')]['id']}})[_0x53010b('0x2f')](handleEntityNotFound(_0x4e4e1e,null))['then'](saveUpdates(_0x4b00ea[_0x53010b('0x2')],null))[_0x53010b('0x2f')](respondWithResult(_0x4e4e1e,null))[_0x53010b('0x1e')](handleError(_0x4e4e1e,null));},exports[_0x4a7012('0x13')]=function(_0x4fae1e,_0x3de66e){const _0x33c0c6=_0x4a7012;return db[_0x33c0c6('0x30')]['findOne']({'where':{'id':_0x4fae1e[_0x33c0c6('0x19')]['id']}})['then'](handleEntityNotFound(_0x3de66e,null))[_0x33c0c6('0x2f')](removeEntity(_0x3de66e,null))[_0x33c0c6('0x1e')](handleError(_0x3de66e,null));}; \ No newline at end of file +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 diff --git a/server/api/whatsappApplication/whatsappApplication.model.js b/server/api/whatsappApplication/whatsappApplication.model.js index 488d6b5..ca2c44c 100644 --- a/server/api/whatsappApplication/whatsappApplication.model.js +++ b/server/api/whatsappApplication/whatsappApplication.model.js @@ -1 +1 @@ -const a791_0x10ce=['WhatsappApplication','exports','utf8mb4_unicode_ci','whatsapp_applications','utf8mb4','define','./whatsappApplication.attributes'];(function(_0x369716,_0x10ce75){const _0x2428f1=function(_0x197957){while(--_0x197957){_0x369716['push'](_0x369716['shift']());}};_0x2428f1(++_0x10ce75);}(a791_0x10ce,0x11b));const a791_0x2428=function(_0x369716,_0x10ce75){_0x369716=_0x369716-0x0;let _0x2428f1=a791_0x10ce[_0x369716];return _0x2428f1;};const _0x37aff2=a791_0x2428;'use strict';const attributes=require(_0x37aff2('0x3'));module[_0x37aff2('0x5')]=function(_0x197957){const _0x440015=_0x37aff2,_0x4d2136=_0x197957[_0x440015('0x2')](_0x440015('0x4'),attributes,{'tableName':_0x440015('0x0'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x440015('0x1'),'collate':_0x440015('0x6')});return _0x4d2136;}; \ No newline at end of file +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 diff --git a/server/api/whatsappInteraction/index.js b/server/api/whatsappInteraction/index.js index 17925ce..4b4e43f 100644 --- a/server/api/whatsappInteraction/index.js +++ b/server/api/whatsappInteraction/index.js @@ -1 +1 @@ -const a792_0x2823=['download','getMessages','show','put','whatsapp','whatsappinteraction:addtags','Router','/:id','update','express','delete','get','/describe','whatsappinteraction:destroy','addMessage','post','describe','create','tracked','/:id/messages','destroy','/:id/tags','isAuthenticated','../../components/auth/service'];(function(_0x500108,_0x2823a5){const _0x2e79a3=function(_0x259988){while(--_0x259988){_0x500108['push'](_0x500108['shift']());}};_0x2e79a3(++_0x2823a5);}(a792_0x2823,0xab));const a792_0x2e79=function(_0x500108,_0x2823a5){_0x500108=_0x500108-0x0;let _0x2e79a3=a792_0x2823[_0x500108];return _0x2e79a3;};const _0x5599e1=a792_0x2e79;'use strict';const express=require(_0x5599e1('0x6')),router=express[_0x5599e1('0x3')](),auth=require(_0x5599e1('0x14')),interaction=require('../../components/interaction/service'),controller=require('./whatsappInteraction.controller');router[_0x5599e1('0x8')]('/',auth[_0x5599e1('0x13')](),controller['index']),router['get'](_0x5599e1('0x9'),auth[_0x5599e1('0x13')](),controller[_0x5599e1('0xd')]),router[_0x5599e1('0x8')](_0x5599e1('0x4'),auth['isAuthenticated'](),controller[_0x5599e1('0x17')]),router[_0x5599e1('0x8')](_0x5599e1('0x10'),auth['isAuthenticated'](),controller[_0x5599e1('0x16')]),router[_0x5599e1('0x8')]('/:id/download',auth[_0x5599e1('0x13')](),controller[_0x5599e1('0x15')]),router['post']('/',auth[_0x5599e1('0x13')](),controller[_0x5599e1('0xe')]),router[_0x5599e1('0xc')](_0x5599e1('0x10'),auth['isAuthenticated'](),controller[_0x5599e1('0xb')]),router['post'](_0x5599e1('0x12'),auth['isAuthenticated'](),interaction['tracked'](_0x5599e1('0x1'),_0x5599e1('0x2')),controller['addTags']),router[_0x5599e1('0x0')]('/:id',auth[_0x5599e1('0x13')](),interaction[_0x5599e1('0xf')](_0x5599e1('0x1'),'whatsappinteraction:update'),controller[_0x5599e1('0x5')]),router[_0x5599e1('0x7')](_0x5599e1('0x4'),auth[_0x5599e1('0x13')](),interaction[_0x5599e1('0xf')](_0x5599e1('0x1'),_0x5599e1('0xa')),controller[_0x5599e1('0x11')]),router[_0x5599e1('0x7')](_0x5599e1('0x12'),auth[_0x5599e1('0x13')](),controller['removeTags']),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/whatsappInteraction/whatsappInteraction.attributes.js b/server/api/whatsappInteraction/whatsappInteraction.attributes.js index 12650ef..deb83c6 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.attributes.js +++ b/server/api/whatsappInteraction/whatsappInteraction.attributes.js @@ -1 +1 @@ -const a793_0x3bf6=['BOOLEAN','sequelize','STRING','out','DATE','exports'];(function(_0x57bf73,_0x3bf6f1){const _0x10b888=function(_0x3f0ea4){while(--_0x3f0ea4){_0x57bf73['push'](_0x57bf73['shift']());}};_0x10b888(++_0x3bf6f1);}(a793_0x3bf6,0x13d));const a793_0x10b8=function(_0x57bf73,_0x3bf6f1){_0x57bf73=_0x57bf73-0x0;let _0x10b888=a793_0x3bf6[_0x57bf73];return _0x10b888;};const _0x4c3b3a=a793_0x10b8;'use strict';const Sequelize=require(_0x4c3b3a('0x2'));module[_0x4c3b3a('0x0')]={'closed':{'type':Sequelize[_0x4c3b3a('0x1')],'defaultValue':![]},'closedAt':{'type':Sequelize['DATE']},'disposition':{'type':Sequelize[_0x4c3b3a('0x3')]},'secondDisposition':{'type':Sequelize[_0x4c3b3a('0x3')]},'thirdDisposition':{'type':Sequelize[_0x4c3b3a('0x3')]},'note':{'type':Sequelize[_0x4c3b3a('0x3')]},'phone':{'type':Sequelize['STRING']},'read1stAt':{'type':Sequelize['DATE']},'firstMsgDirection':{'type':Sequelize['ENUM']('in','out'),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x4c3b3a('0x5')]},'lastMsgDirection':{'type':Sequelize['ENUM']('in',_0x4c3b3a('0x4')),'defaultValue':'in','allowNull':![]}}; \ No newline at end of file +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 diff --git a/server/api/whatsappInteraction/whatsappInteraction.controller.js b/server/api/whatsappInteraction/whatsappInteraction.controller.js index ec6bd47..ed1dca0 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.controller.js +++ b/server/api/whatsappInteraction/whatsappInteraction.controller.js @@ -1 +1 @@ -const a794_0x3ff8=['getMessages','i.WhatsappAccountId\x20IS\x20NOT\x20NULL','operator','closed','format','lastName','json','join','having','firstName','DESC','User','direction','update','then','nolimit','name','c.email','lodash','$substring','System','offset','Contact.mobile','emit','left_join','Owner.internal','tag','WhatsappAccount','$gte','fullname','zip-dir','WhatsappInteractionId','o.id\x20=\x20i.UserId','unlinkSync','disposition','select','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','c.fax','keys','secret','from','start','`\x20>\x200','Content-Range','t.id\x20IN\x20?','isNumeric','find','`\x20=\x200','body','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','union','existsSync','getFullTextValue','u.id\x20=\x20ui.UserId','TagIds','toFile','sort','../../components/parsers/advancedSearch','attachments','show','GROUP_CONCAT(DISTINCT\x20t.id)','server','Account.key','../../config/logger','create','c.phone','push','intersection','count','concat','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','Users','Tag','Tags','\x20IS\x20NULL','unreadMessages','SELECT','root','expr','type','fields','filter','c.lastName','order','rawAttributes','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','length','download','i.WhatsappAccountId\x20IN\x20?','attributes','../../rediscache','\x27\x27\x27\x27','Sequelize','undefined','cm_contacts','CmContact','setTags','unix','options','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','Contact.lastName','limit','omit','10px','renderFile','read','Messages','UserId','\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','include','findAll','groupBy','log','parse','createdAt','mkdirSync','tools_tags','isEmpty','some','closedAt','WhatsappAccountId','destroy','it.WhatsappInteractionId\x20=\x20i.id','c.firstName','$lte','basename','whatsappInteractionTags:save','color','out','.pdf','i.phone\x20LIKE\x20?','transcript-%d-%s.zip','conditions','Attachment','findOne','whatsapp_interactions','describe','`unreadMessages`\x20=\x200','sqlOperator','30px','ContactId','parseSearch','catch','util','isArray','i.id','Contact.firstName','err','compact','field','stack','status','toString','split','ui.WhatsappInteractionId','\x20=\x20?','WhatsappMessage','user_has_whatsapp_interactions','a.id\x20=\x20i.WhatsappAccountId','pick','all','t.id\x20=\x20it.TagId','text','Whatsapp','c.mobile','ids','end','query','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','model','files','api','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','journey','rows','views','i.*','squel','whatsapp_messages','register','group','where','createReadStream','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','merge','search','removeTags','fieldName','Account','YYYY-MM-DD\x20HH:mm:ss','./whatsappInteraction.socket','N.A.','addTags','whatsapp_interaction_has_tags','value','resolve','error','me.WhatsappInteractionId\x20=\x20i.id','filters','map','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','pipe','ejs','replace','addMessage','buildExpression','sequelize','gte','params','Contact','sendStatus','WhatsappInteraction','../../components/parsers/qs','forEach'];(function(_0x5141a7,_0x3ff879){const _0x4648f3=function(_0x46cdf4){while(--_0x46cdf4){_0x5141a7['push'](_0x5141a7['shift']());}};_0x4648f3(++_0x3ff879);}(a794_0x3ff8,0x12e));const a794_0x4648=function(_0x5141a7,_0x3ff879){_0x5141a7=_0x5141a7-0x0;let _0x4648f3=a794_0x3ff8[_0x5141a7];return _0x4648f3;};const _0x4514ae=a794_0x4648;'use strict';const pdf=require('html-pdf'),rimraf=require('rimraf'),zipdir=require(_0x4514ae('0xa0')),moment=require('moment'),util=require(_0x4514ae('0x3a')),path=require('path'),ejs=require(_0x4514ae('0x76')),fs=require('fs'),_=require(_0x4514ae('0x94')),squel=require(_0x4514ae('0x5d')),{getSocket}=require(_0x4514ae('0x5')),socket=getSocket(),qs=require(_0x4514ae('0x80')),as=require(_0x4514ae('0xbc')),logger=require(_0x4514ae('0xc2'))(_0x4514ae('0x56')),config=require('../../config/environment'),db=require('../../mysqldb')['db'],{Op}=require('sequelize');require(_0x4514ae('0x6a'))[_0x4514ae('0x5f')](socket);function respondWithStatusCode(_0x46cdf4,_0x63daa8){return _0x63daa8=_0x63daa8||0xcc,function(_0x3ae287){const _0x55b837=a794_0x4648;if(_0x3ae287)return _0x46cdf4[_0x55b837('0x7e')](_0x63daa8);return _0x46cdf4[_0x55b837('0x42')](_0x63daa8)[_0x55b837('0x51')]();};}function respondWithResult(_0x163e21,_0x44ae4d){return _0x44ae4d=_0x44ae4d||0xc8,function(_0x5c4a59){const _0x119bf0=a794_0x4648;if(_0x5c4a59)return _0x163e21['status'](_0x44ae4d)[_0x119bf0('0x88')](_0x5c4a59);};}function respondWithFilteredResult(_0x136c09,_0x817aaf){return function(_0x4a87b9){const _0x49eabf=a794_0x4648;if(_0x4a87b9){const _0x556720=_0x4a87b9[_0x49eabf('0xc7')],_0x212707=_0x817aaf[_0x49eabf('0x97')];let _0x296ac0=_0x817aaf['offset']+_0x817aaf[_0x49eabf('0x10')],_0x3bf5f5;return _0x296ac0>=_0x556720?(_0x296ac0=_0x556720,_0x3bf5f5=0xc8):_0x3bf5f5=0xce,_0x136c09[_0x49eabf('0x42')](_0x3bf5f5),_0x136c09['set'](_0x49eabf('0xad'),_0x212707+'-'+_0x296ac0+'/'+_0x556720)[_0x49eabf('0x88')](_0x4a87b9);}return null;};}function saveUpdates(_0x237af7){return function(_0xdc4dcc){const _0x312f12=a794_0x4648;if(_0xdc4dcc)return _0xdc4dcc[_0x312f12('0x8f')](_0x237af7)[_0x312f12('0x90')](function(_0x3a12b6){return _0x3a12b6;});return null;};}function removeEntity(_0x48edd8){return function(_0x3bb039){const _0x4d793f=a794_0x4648;if(_0x3bb039)return _0x3bb039['destroy']()[_0x4d793f('0x90')](function(){const _0x28ac30=_0x4d793f;_0x48edd8[_0x28ac30('0x42')](0xcc)[_0x28ac30('0x51')]();});};}function handleEntityNotFound(_0x2f81f9){return function(_0x341cbf){const _0x4ff616=a794_0x4648;return!_0x341cbf&&_0x2f81f9[_0x4ff616('0x7e')](0x194),_0x341cbf;};}function handleError(_0x1da331,_0x326c8c){return _0x326c8c=_0x326c8c||0x1f4,function(_0x596d20){const _0x5f1d64=a794_0x4648;logger[_0x5f1d64('0x70')](_0x596d20[_0x5f1d64('0x41')]),_0x596d20[_0x5f1d64('0x92')]&&delete _0x596d20[_0x5f1d64('0x92')],_0x1da331[_0x5f1d64('0x42')](_0x326c8c)['send'](_0x596d20);};}function getInteractionUsers(_0x32075e,_0x336022){return new Promise(function(_0x2b660c,_0x3f3fa1){const _0x500618=a794_0x4648;try{_0x336022[_0x32075e['id']]&&(_0x32075e[_0x500618('0xca')]=_[_0x500618('0x73')](_0x336022[_0x32075e['id']],function(_0x32a207){const _0xec9f49=_0x500618;return{'id':_0x32a207['id'],'fullname':_0x32a207[_0xec9f49('0x9f')]};}));}catch(_0x333f3c){_0x3f3fa1(_0x333f3c);}_0x2b660c(_0x32075e);});}function getInteractionTags(_0x3c7bd5,_0xb62999){return new Promise(function(_0x26b7d2,_0x378892){const _0x278d42=a794_0x4648;try{_0x3c7bd5[_0x278d42('0xb9')]&&(_0x3c7bd5[_0x278d42('0xcc')]=[],_0x3c7bd5[_0x278d42('0xb9')][_0x278d42('0x44')](',')['forEach'](function(_0x155335){_0x3c7bd5['Tags']['push'](_0xb62999[_0x155335]);})),delete _0x3c7bd5['TagIds'];}catch(_0x678900){_0x378892(_0x678900);}_0x26b7d2(_0x3c7bd5);});}function updateWhatsappInteraction(_0x3330c1,_0x25ed5e,_0x4cf19e){return new Promise(function(_0x5e330e,_0x42f1d1){const _0xe2be85=a794_0x4648;return getInteractionUsers(_0x3330c1,_0x4cf19e)['then'](function(_0x4b40a2){return getInteractionTags(_0x4b40a2,_0x25ed5e);})['then'](function(_0x3a3687){_0x5e330e(_0x3a3687);})[_0xe2be85('0x39')](function(_0x3fbaa1){_0x42f1d1(_0x3fbaa1);});});}exports['index']=function(_0x2101d0,_0x25c382){const _0x2ab0b=_0x4514ae,_0x1388f9={},_0x596229={},_0x363403={'count':0x0,'rows':[]},_0x422071=_[_0x2ab0b('0x73')](db['WhatsappInteraction'][_0x2ab0b('0xd7')],function(_0x2ab53c){const _0xda0389=_0x2ab0b;return{'name':_0x2ab53c[_0xda0389('0x67')],'type':_0x2ab53c[_0xda0389('0xd2')]['key']};});_0x596229[_0x2ab0b('0x54')]=_['map'](_0x422071,'name'),_0x596229[_0x2ab0b('0x52')]=_[_0x2ab0b('0xa8')](_0x2101d0[_0x2ab0b('0x52')]),_0x596229[_0x2ab0b('0x72')]=_[_0x2ab0b('0xc6')](_0x596229[_0x2ab0b('0x54')],_0x596229[_0x2ab0b('0x52')]),_0x1388f9['attributes']=_[_0x2ab0b('0xc6')](_0x596229[_0x2ab0b('0x54')],qs[_0x2ab0b('0xd3')](_0x2101d0['query'][_0x2ab0b('0xd3')])),_0x1388f9[_0x2ab0b('0x4')]=_0x1388f9[_0x2ab0b('0x4')][_0x2ab0b('0x1')]?_0x1388f9[_0x2ab0b('0x4')]:_0x596229['model'];typeof _0x2101d0['query']['nolimit']===_0x2ab0b('0x8')&&(_0x1388f9[_0x2ab0b('0x10')]=qs[_0x2ab0b('0x10')](_0x2101d0[_0x2ab0b('0x52')][_0x2ab0b('0x10')]),_0x1388f9[_0x2ab0b('0x97')]=qs[_0x2ab0b('0x97')](_0x2101d0[_0x2ab0b('0x52')][_0x2ab0b('0x97')]));_0x1388f9['order']=qs['sort'](_0x2101d0[_0x2ab0b('0x52')][_0x2ab0b('0xbb')]),_0x1388f9['where']=qs['filters'](_['pick'](_0x2101d0[_0x2ab0b('0x52')],_0x596229[_0x2ab0b('0x72')]),_0x422071);let _0x14418c=[];const _0x1f87aa=squel[_0x2ab0b('0xa5')]()[_0x2ab0b('0x40')]('id')['field'](_0x2ab0b('0x92'))[_0x2ab0b('0x40')](_0x2ab0b('0x2a'))['from'](_0x2ab0b('0x1f')),_0xb89217=squel[_0x2ab0b('0xa5')]()[_0x2ab0b('0x40')]('u.id')[_0x2ab0b('0x40')]('u.fullname')[_0x2ab0b('0x40')](_0x2ab0b('0x45'))[_0x2ab0b('0xaa')](_0x2ab0b('0x48'),'ui')[_0x2ab0b('0x9a')]('users','u',_0x2ab0b('0xb8')),_0x46c563=squel['select']()[_0x2ab0b('0xaa')](_0x2ab0b('0x32'),'i')['left_join'](_0x2ab0b('0x9'),'c',_0x2ab0b('0x53'))[_0x2ab0b('0x9a')]('users','o',_0x2ab0b('0xa2'))['left_join']('whatsapp_accounts','a',_0x2ab0b('0x49'))[_0x2ab0b('0x9a')](_0x2ab0b('0x5e'),'me',_0x2ab0b('0x71'))[_0x2ab0b('0x9a')](_0x2ab0b('0x6d'),'it',_0x2ab0b('0x25'))['left_join'](_0x2ab0b('0x1f'),'t',_0x2ab0b('0x4c')),_0x490a4b=squel[_0x2ab0b('0xd1')]();let _0x8e4538=[];const _0x46513c=squel['expr']();let _0x11c8b1;if(_0x2101d0[_0x2ab0b('0x52')]['search']){_0x11c8b1=as[_0x2ab0b('0x38')](_0x2101d0['query'][_0x2ab0b('0x65')]);const _0x491331=_0x11c8b1[_0x2ab0b('0x35')];for(let _0x35a0f0=0x0;_0x35a0f0<_0x11c8b1[_0x2ab0b('0x2f')]['length'];_0x35a0f0++){const _0x3d0fd7=_0x11c8b1[_0x2ab0b('0x2f')][_0x35a0f0],_0x47e91e='i';let _0x468f22,_0x345fca=_[_0x2ab0b('0xb0')](_0x422071,['name',_0x3d0fd7[_0x2ab0b('0x40')]]);if(!_0x345fca)switch(_0x3d0fd7['field']){case _0x2ab0b('0xce'):_0x3d0fd7[_0x2ab0b('0x6e')]==0x1?_0x46c563[_0x2ab0b('0x8a')]('`'+_0x3d0fd7['field']+_0x2ab0b('0xb1')):_0x46c563[_0x2ab0b('0x8a')]('`'+_0x3d0fd7[_0x2ab0b('0x40')]+_0x2ab0b('0xac'));break;case _0x2ab0b('0x7d'):if(_0x3d0fd7['operator']===_0x2ab0b('0x95')){if(_0x3d0fd7[_0x2ab0b('0x6e')]['split']('\x20')[_0x2ab0b('0x1')]>0x1)_0x490a4b[_0x491331](_0x2ab0b('0xe'),qs[_0x2ab0b('0xb7')](_0x3d0fd7['value']),null);else{const _0x220533='%'+_0x3d0fd7['value']+'%';_0x490a4b[_0x491331](_0x2ab0b('0xb3'),_0x220533,_0x220533,_0x220533);}}else _0x345fca=_['find'](_0x422071,[_0x2ab0b('0x92'),_0x2ab0b('0x37')]),_0x3d0fd7[_0x2ab0b('0x40')]=_0x2ab0b('0x37'),_0x468f22=as['buildExpression'](_0x47e91e,_0x345fca['type'],_0x3d0fd7),_0x490a4b[_0x491331](_0x468f22[_0x2ab0b('0x4d')],_0x468f22[_0x2ab0b('0x6e')][_0x2ab0b('0xab')],_0x468f22[_0x2ab0b('0x6e')][_0x2ab0b('0x51')]);break;case _0x2ab0b('0xcb'):{const _0x2cf176=_0x3d0fd7[_0x2ab0b('0x6e')][_0x2ab0b('0x44')](',')[_0x2ab0b('0x73')](function(_0x26b637){return Number(_0x26b637);});_0x2cf176[_0x2ab0b('0x81')](function(_0x2c8fc9){_0x46513c['or']('CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','%,'+_0x2c8fc9+',%');}),_0x8e4538=_[_0x2ab0b('0xb5')](_0x8e4538,_0x2cf176);}break;case'User':_0x3d0fd7[_0x2ab0b('0x84')]===_0x2ab0b('0x95')?_0x490a4b[_0x491331](_0x2ab0b('0x63'),'%'+_0x3d0fd7['value']+'%',null):(_0x345fca=_[_0x2ab0b('0xb0')](_0x422071,[_0x2ab0b('0x92'),'UserId']),_0x3d0fd7[_0x2ab0b('0x40')]=_0x2ab0b('0x16'),_0x468f22=as[_0x2ab0b('0x79')](_0x47e91e,_0x345fca['type'],_0x3d0fd7),_0x490a4b[_0x491331](_0x468f22[_0x2ab0b('0x4d')],_0x468f22[_0x2ab0b('0x6e')][_0x2ab0b('0xab')],_0x468f22[_0x2ab0b('0x6e')][_0x2ab0b('0x51')]));break;case _0x2ab0b('0xb2'):_0x468f22=as[_0x2ab0b('0x79')]('me',null,_0x3d0fd7),_0x490a4b[_0x491331](_0x468f22['text'],_0x468f22[_0x2ab0b('0x6e')][_0x2ab0b('0xab')],_0x468f22[_0x2ab0b('0x6e')][_0x2ab0b('0x51')]);break;}else _0x468f22=as[_0x2ab0b('0x79')](_0x47e91e,_0x345fca[_0x2ab0b('0xd2')],_0x3d0fd7),_0x490a4b[_0x491331](_0x468f22[_0x2ab0b('0x4d')],_0x468f22[_0x2ab0b('0x6e')][_0x2ab0b('0xab')],_0x468f22[_0x2ab0b('0x6e')][_0x2ab0b('0x51')]);}}else{const _0x101556=_(_0x2101d0[_0x2ab0b('0x52')])[_0x2ab0b('0xa8')]()[_0x2ab0b('0x73')](function(_0x3f72e6){const _0x5a620f=_0x2ab0b;return _[_0x5a620f('0x21')](_0x422071,[_0x5a620f('0x92'),_0x3f72e6])?_0x3f72e6:undefined;})[_0x2ab0b('0x3f')]()[_0x2ab0b('0x6e')]();!_['isEmpty'](_0x101556)&&_0x101556[_0x2ab0b('0x81')](function(_0x8186b8){const _0x39557f=_0x2ab0b;if(_0x8186b8===_0x39557f('0x23'))_0x46c563[_0x39557f('0x61')](_0x39557f('0x3'),[][_0x39557f('0xc8')](_0x2101d0['query'][_0x8186b8]));else{if(_0x8186b8===_0x39557f('0x1d')){const _0x33db7f=JSON[_0x39557f('0x1c')](_0x2101d0[_0x39557f('0x52')][_0x8186b8])[_0x39557f('0x9e')],_0x3df014=JSON[_0x39557f('0x1c')](_0x2101d0[_0x39557f('0x52')][_0x8186b8])[_0x39557f('0x27')];_0x46c563['where'](_0x39557f('0x0'),_0x33db7f,_0x3df014);}else _0x2101d0[_0x39557f('0x52')][_0x8186b8]==='null'?_0x46c563[_0x39557f('0x61')]('i.'+_0x8186b8+_0x39557f('0xcd')):_0x46c563[_0x39557f('0x61')]('i.'+_0x8186b8+_0x39557f('0x46'),_0x2101d0[_0x39557f('0x52')][_0x8186b8]);}});_0x2101d0['query'][_0x2ab0b('0x14')]&&(_0x2101d0[_0x2ab0b('0x52')][_0x2ab0b('0x14')]==0x1?_0x46c563[_0x2ab0b('0x8a')](_0x2ab0b('0x34')):_0x46c563['having']('`unreadMessages`\x20>\x200'));_0x2101d0['query'][_0x2ab0b('0x9c')]&&(_0x8e4538=_[_0x2ab0b('0x3b')](_0x2101d0['query'][_0x2ab0b('0x9c')])?_0x2101d0[_0x2ab0b('0x52')][_0x2ab0b('0x9c')]:new Array(_0x2101d0[_0x2ab0b('0x52')][_0x2ab0b('0x9c')]),_0x8e4538[_0x2ab0b('0x81')](function(_0x132d78){const _0x3404d2=_0x2ab0b;_0x46513c['or'](_0x3404d2('0xa6'),'%,'+_0x132d78+',%');}));if(_0x2101d0['query'][_0x2ab0b('0xd4')]){const _0x11e664=_0x2101d0[_0x2ab0b('0x52')][_0x2ab0b('0xd4')]['replace']('\x5c','\x5c\x5c')[_0x2ab0b('0x77')]('\x27\x27',_0x2ab0b('0x6'));qs[_0x2ab0b('0xaf')](_0x11e664)?_0x490a4b['or'](_0x2ab0b('0x57'),_0x11e664+'%')['or'](_0x2ab0b('0x2d'),_0x11e664+'%'):_0x490a4b['or'](_0x2ab0b('0xb4'),qs['getFullTextValue'](_0x11e664))['or'](_0x2ab0b('0xc9'),_0x11e664+'%');}}_0x46c563[_0x2ab0b('0x61')](_0x490a4b),_0x46c563[_0x2ab0b('0x60')]('i.id');let _0xa9a60={'type':db[_0x2ab0b('0x7')]['QueryTypes'][_0x2ab0b('0xcf')],'raw':!![]};const _0x5817a2=_0x46c563['clone']();_0x5817a2[_0x2ab0b('0x40')](_0x2ab0b('0x3c')),_0x5817a2[_0x2ab0b('0x40')](_0x2ab0b('0x74'),_0x2ab0b('0xce')),_0x1388f9[_0x2ab0b('0xd6')]&&_0x1388f9[_0x2ab0b('0xd6')][_0x2ab0b('0x81')](function(_0x398cef){const _0x1a4e27=_0x2ab0b;_0x46c563[_0x1a4e27('0xd6')]('i.'+_0x398cef[0x0],_0x398cef[0x1]===_0x1a4e27('0x8c')?![]:!![]);}),!_[_0x2ab0b('0x20')](_0x8e4538)&&(_0x46c563[_0x2ab0b('0x8a')](_0x46513c),_0x5817a2[_0x2ab0b('0x61')](_0x2ab0b('0xae'),_0x8e4538)),Promise[_0x2ab0b('0x6f')]()[_0x2ab0b('0x90')](function(){const _0xca45a3=_0x2ab0b;if(!_0x11c8b1){if(_0x2101d0[_0xca45a3('0x52')][_0xca45a3('0x23')]||_0x2101d0[_0xca45a3('0x52')][_0xca45a3('0x59')])return;_0x5817a2['where'](_0xca45a3('0x83')),_0x46c563[_0xca45a3('0x61')]('i.WhatsappAccountId\x20IS\x20NOT\x20NULL');return;}return _0x2101d0['user']['getWhatsappAccounts']({'attributes':['id'],'raw':!![]})['then'](function(_0x5e89af){const _0x4eb40b=_0xca45a3;_[_0x4eb40b('0x20')](_0x5e89af)?(_0x5817a2[_0x4eb40b('0x61')]('i.WhatsappAccountId\x20IS\x20NULL'),_0x46c563[_0x4eb40b('0x61')]('i.WhatsappAccountId\x20IS\x20NULL')):(_0x5817a2[_0x4eb40b('0x61')]('i.WhatsappAccountId\x20IN\x20?',_[_0x4eb40b('0x73')](_0x5e89af,'id')),_0x46c563[_0x4eb40b('0x61')](_0x4eb40b('0x3'),_[_0x4eb40b('0x73')](_0x5e89af,'id')));});})['then'](function(){const _0x468a2c=_0x2ab0b;db[_0x468a2c('0x7a')]['query'](_0x5817a2[_0x468a2c('0x43')](),_0xa9a60)['then'](function(_0x4862ef){const _0x29ee58=_0x468a2c;_0x363403['count']=_0x4862ef['length'];if(_0x363403['count']===0x0)return[];return db['sequelize'][_0x29ee58('0x52')](_0x1f87aa['toString'](),_0xa9a60)[_0x29ee58('0x90')](function(_0x2ee3da){const _0x2056df=_0x29ee58;_0x14418c=_['keyBy'](_0x2ee3da,'id'),_0xa9a60=_[_0x2056df('0x64')](_0xa9a60,{'model':db[_0x2056df('0x7f')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x2101d0['query'][_0x2056df('0xd3')]?_0x1388f9[_0x2056df('0x4')][_0x2056df('0x81')](function(_0xdc7698){const _0x4e7dac=_0x2056df;_0x46c563[_0x4e7dac('0x40')]('i.'+_0xdc7698);}):(_0x46c563[_0x2056df('0x40')](_0x2056df('0x74'),_0x2056df('0xce')),_0x46c563['field']('a.key',_0x2056df('0xc1')),_0x46c563[_0x2056df('0x40')]('a.mandatoryDisposition','Account.mandatoryDisposition'),_0x46c563[_0x2056df('0x40')](_0x2056df('0x5c')),_0x46c563[_0x2056df('0x40')](_0x2056df('0x26'),_0x2056df('0x3d')),_0x46c563[_0x2056df('0x40')](_0x2056df('0xd5'),_0x2056df('0xf')),_0x46c563[_0x2056df('0x40')](_0x2056df('0x93'),'Contact.email'),_0x46c563['field'](_0x2056df('0xc4'),'Contact.phone'),_0x46c563[_0x2056df('0x40')](_0x2056df('0x4f'),_0x2056df('0x98')),_0x46c563[_0x2056df('0x40')](_0x2056df('0xa7'),'Contact.fax'),_0x46c563['field']('o.fullname','Owner.fullname'),_0x46c563[_0x2056df('0x40')]('o.internal',_0x2056df('0x9b')),_0x46c563['field'](_0x2056df('0xbf'),_0x2056df('0xb9')));if(_0x1388f9['limit'])_0x46c563[_0x2056df('0x10')](_0x1388f9['limit']);if(_0x1388f9['offset'])_0x46c563[_0x2056df('0x97')](_0x1388f9['offset']);return db[_0x2056df('0x7a')][_0x2056df('0x52')](_0x46c563[_0x2056df('0x43')](),_0xa9a60);})[_0x29ee58('0x90')](function(_0x3850d4){const _0x4cf926=_0x29ee58;return _0xb89217[_0x4cf926('0x61')]('ui.WhatsappInteractionId\x20IN\x20?',_['map'](_0x3850d4,'id')),db[_0x4cf926('0x7a')][_0x4cf926('0x52')](_0xb89217[_0x4cf926('0x43')](),_0xa9a60)[_0x4cf926('0x90')](function(_0x4d08e4){const _0x30954d=_0x4cf926,_0x5c5564=_[_0x30954d('0x1a')](_0x4d08e4,_0x30954d('0xa1')),_0x52e522=[];return _0x3850d4['forEach'](function(_0x347e5e){_0x52e522['push'](updateWhatsappInteraction(_0x347e5e,_0x14418c,_0x5c5564));}),Promise[_0x30954d('0x4b')](_0x52e522);});});})[_0x468a2c('0x90')](function(_0x5099b0){return _0x363403['rows']=_0x5099b0,_0x363403;})[_0x468a2c('0x90')](respondWithFilteredResult(_0x25c382,_0x1388f9));})[_0x2ab0b('0x39')](handleError(_0x25c382,null));},exports[_0x4514ae('0xbe')]=function(_0x53dda4,_0x39f049){const _0x501552=_0x4514ae;let _0x32dd45={'raw':![],'where':{'id':_0x53dda4[_0x501552('0x7c')]['id']}};const _0x464440={};return _0x464440[_0x501552('0x54')]=_[_0x501552('0xa8')](db['WhatsappInteraction'][_0x501552('0xd7')]),_0x464440['query']=_[_0x501552('0xa8')](_0x53dda4[_0x501552('0x52')]),_0x464440[_0x501552('0x72')]=_[_0x501552('0xc6')](_0x464440[_0x501552('0x54')],_0x464440['query']),_0x32dd45[_0x501552('0x4')]=_[_0x501552('0xc6')](_0x464440[_0x501552('0x54')],qs[_0x501552('0xd3')](_0x53dda4[_0x501552('0x52')][_0x501552('0xd3')])),_0x32dd45[_0x501552('0x4')]=_0x32dd45[_0x501552('0x4')][_0x501552('0x1')]?_0x32dd45[_0x501552('0x4')]:_0x464440[_0x501552('0x54')],_0x53dda4['query']['includeAll']&&(_0x32dd45['include']=[{'all':!![]}]),_0x32dd45=_[_0x501552('0x64')]({},_0x32dd45,_0x53dda4[_0x501552('0xd')]),db[_0x501552('0x7f')][_0x501552('0x31')](_0x32dd45)[_0x501552('0x90')](handleEntityNotFound(_0x39f049,null))[_0x501552('0x90')](respondWithResult(_0x39f049,null))[_0x501552('0x39')](handleError(_0x39f049,null));},exports[_0x4514ae('0xc3')]=function(_0x286ca8,_0x4ef671){const _0x1ee941=_0x4514ae;return db[_0x1ee941('0x7f')][_0x1ee941('0xc3')](_0x286ca8[_0x1ee941('0xb2')],{})['then'](respondWithResult(_0x4ef671,0xc9))[_0x1ee941('0x39')](handleError(_0x4ef671,null));},exports[_0x4514ae('0x8f')]=function(_0x21f26a,_0x49aeea){const _0x1a78c1=_0x4514ae;return _0x21f26a[_0x1a78c1('0xb2')]['id']&&delete _0x21f26a[_0x1a78c1('0xb2')]['id'],db[_0x1a78c1('0x7f')][_0x1a78c1('0x31')]({'where':{'id':_0x21f26a[_0x1a78c1('0x7c')]['id']}})[_0x1a78c1('0x90')](handleEntityNotFound(_0x49aeea,null))[_0x1a78c1('0x90')](saveUpdates(_0x21f26a['body'],null))[_0x1a78c1('0x90')](respondWithResult(_0x49aeea,null))[_0x1a78c1('0x39')](handleError(_0x49aeea,null));},exports[_0x4514ae('0x24')]=function(_0x58a4c2,_0x1bedae){const _0x121c96=_0x4514ae;return db['WhatsappInteraction'][_0x121c96('0x31')]({'where':{'id':_0x58a4c2[_0x121c96('0x7c')]['id']}})[_0x121c96('0x90')](handleEntityNotFound(_0x1bedae,null))['then'](removeEntity(_0x1bedae,null))[_0x121c96('0x39')](handleError(_0x1bedae,null));},exports[_0x4514ae('0x33')]=function(_0x1d066a,_0x538f56){const _0x4e7ba0=_0x4514ae;return db[_0x4e7ba0('0x7f')][_0x4e7ba0('0x33')]()[_0x4e7ba0('0x90')](respondWithResult(_0x538f56,null))[_0x4e7ba0('0x39')](handleError(_0x538f56,null));},exports[_0x4514ae('0x78')]=function(_0x5a8fd4,_0x47364e){const _0x3aaf55=_0x4514ae;return db[_0x3aaf55('0x47')][_0x3aaf55('0x31')]({'where':{'id':_0x5a8fd4[_0x3aaf55('0x7c')]['id']}})[_0x3aaf55('0x90')](function(_0x5bcc12){const _0x17c7e2=_0x3aaf55;if(_0x5bcc12)return _0x5bcc12[_0x17c7e2('0x78')](_0x5a8fd4[_0x17c7e2('0xb2')][_0x17c7e2('0x50')],{'through':_[_0x17c7e2('0x11')](_0x5a8fd4[_0x17c7e2('0xb2')],['ids','id'])});})[_0x3aaf55('0x90')](respondWithResult(_0x47364e,null))[_0x3aaf55('0x39')](handleError(_0x47364e,null));},exports[_0x4514ae('0x82')]=function(_0x435f34,_0x3130d0){const _0x58edee=_0x4514ae;let _0x381298={'raw':![],'where':{}};const _0x5e4c80={},_0x4db727={'count':0x0,'rows':[]};return db[_0x58edee('0x7f')][_0x58edee('0x31')]({'where':{'id':_0x435f34[_0x58edee('0x7c')]['id']}})[_0x58edee('0x90')](handleEntityNotFound(_0x3130d0,null))[_0x58edee('0x90')](function(_0x3cb93b){const _0x43418b=_0x58edee;if(_0x3cb93b){_0x5e4c80['model']=_['keys'](db['WhatsappMessage'][_0x43418b('0xd7')]),_0x5e4c80[_0x43418b('0x52')]=_[_0x43418b('0xa8')](_0x435f34[_0x43418b('0x52')]),_0x5e4c80['filters']=_[_0x43418b('0xc6')](_0x5e4c80[_0x43418b('0x54')],_0x5e4c80[_0x43418b('0x52')]),_0x381298[_0x43418b('0x4')]=_[_0x43418b('0xc6')](_0x5e4c80[_0x43418b('0x54')],qs[_0x43418b('0xd3')](_0x435f34[_0x43418b('0x52')][_0x43418b('0xd3')])),_0x381298[_0x43418b('0x4')]=_0x381298[_0x43418b('0x4')]['length']?_0x381298[_0x43418b('0x4')]:_0x5e4c80[_0x43418b('0x54')];typeof _0x435f34[_0x43418b('0x52')][_0x43418b('0x91')]===_0x43418b('0x8')&&(_0x381298[_0x43418b('0x10')]=qs[_0x43418b('0x10')](_0x435f34[_0x43418b('0x52')][_0x43418b('0x10')]),_0x381298[_0x43418b('0x97')]=qs['offset'](_0x435f34[_0x43418b('0x52')][_0x43418b('0x97')]));_0x381298[_0x43418b('0xd6')]=qs[_0x43418b('0xbb')](_0x435f34[_0x43418b('0x52')][_0x43418b('0xbb')]),_0x381298[_0x43418b('0x61')]=qs[_0x43418b('0x72')](_[_0x43418b('0x4a')](_0x435f34[_0x43418b('0x52')],_0x5e4c80['filters'])),_0x381298[_0x43418b('0x61')][_0x43418b('0xa1')]=_0x3cb93b['id'];_0x435f34['query']['filter']&&(_0x381298[_0x43418b('0x61')]=_[_0x43418b('0x64')](_0x381298['where'],{[Op['or']]:_['map'](_0x381298[_0x43418b('0x4')],function(_0xa344ac){const _0x22cc04=_0x43418b,_0x3e1396={};return _0x3e1396[_0xa344ac]={[Op['like']]:'%'+_0x435f34[_0x22cc04('0x52')][_0x22cc04('0xd4')]+'%'},_0x3e1396;})}));if(_0x435f34[_0x43418b('0x52')][_0x43418b('0x9e')]){const _0x25e71e=_0x435f34[_0x43418b('0x52')]['$gte'][_0x43418b('0x44')](','),_0x3a9d27={};_0x3a9d27[_0x25e71e[0x0]]={[Op[_0x43418b('0x7b')]]:moment(_0x25e71e[0x1])[_0x43418b('0x86')](_0x43418b('0x69'))},_0x381298['where']=_[_0x43418b('0x64')](_0x381298[_0x43418b('0x61')],_0x3a9d27);}return _0x381298=_[_0x43418b('0x64')]({},_0x381298,_0x435f34['options']),db[_0x43418b('0x47')]['count']({'where':_0x381298[_0x43418b('0x61')]})[_0x43418b('0x90')](function(_0x79bcd1){const _0x5e5203=_0x43418b;return _0x4db727[_0x5e5203('0xc7')]=_0x79bcd1,_0x435f34[_0x5e5203('0x52')]['includeAll']&&(_0x381298[_0x5e5203('0x18')]=[{'all':!![]}]),db[_0x5e5203('0x47')][_0x5e5203('0x19')](_0x381298);})[_0x43418b('0x90')](function(_0x2f147b){const _0x11793b=_0x43418b;return _0x4db727[_0x11793b('0x5a')]=_0x2f147b,_0x4db727;});}})[_0x58edee('0x90')](respondWithFilteredResult(_0x3130d0,_0x381298))[_0x58edee('0x39')](handleError(_0x3130d0,null));},exports[_0x4514ae('0x6c')]=function(_0x462d9d,_0x36f710){const _0x2195bf=_0x4514ae;return db[_0x2195bf('0x7f')][_0x2195bf('0x31')]({'where':{'id':_0x462d9d[_0x2195bf('0x7c')]['id']}})[_0x2195bf('0x90')](function(_0x51cbfd){const _0x50a794=_0x2195bf;if(_0x51cbfd)return _0x51cbfd[_0x50a794('0xb')](_0x462d9d[_0x50a794('0xb2')][_0x50a794('0x50')],{'through':_[_0x50a794('0x11')](_0x462d9d[_0x50a794('0xb2')],['ids','id'])})['then'](function(){const _0xc52489=_0x50a794;return db[_0xc52489('0xcb')][_0xc52489('0x19')]({'attributes':['id','name',_0xc52489('0x2a')],'where':{'id':_0x462d9d['body'][_0xc52489('0x50')]}});})['then'](function(_0x4e0693){const _0x51435c=_0x50a794;return socket[_0x51435c('0x99')](_0x51435c('0x29'),{'id':Number(_0x462d9d['params']['id']),'tags':_0x4e0693||[]}),{'id':Number(_0x462d9d[_0x51435c('0x7c')]['id']),'tags':_0x4e0693||[]};});})['then'](respondWithResult(_0x36f710,null))['catch'](handleError(_0x36f710,null));},exports[_0x4514ae('0x66')]=function(_0x43fb0c,_0x2d8506){const _0x674789=_0x4514ae;return db[_0x674789('0x7f')]['findOne']({'where':{'id':_0x43fb0c[_0x674789('0x7c')]['id']}})[_0x674789('0x90')](handleEntityNotFound(_0x2d8506,null))[_0x674789('0x90')](function(_0xa62d53){const _0xed3733=_0x674789;if(_0xa62d53)return _0xa62d53[_0xed3733('0x66')](_0x43fb0c[_0xed3733('0x52')][_0xed3733('0x50')]);})[_0x674789('0x90')](respondWithStatusCode(_0x2d8506,null))[_0x674789('0x39')](handleError(_0x2d8506,null));},exports[_0x4514ae('0x2')]=function(_0x3a394e,_0x14d539){const _0x441ade=_0x4514ae,_0x2c9d8e=moment()[_0x441ade('0xc')]()['toString'](),_0x18c923=path[_0x441ade('0x89')](config[_0x441ade('0xd0')],'server',_0x441ade('0x55'),'tmp'),_0x3c7804=path[_0x441ade('0x89')](config['root'],_0x441ade('0xc0'),_0x441ade('0x55'),_0x441ade('0xbd')),_0x265e24=path[_0x441ade('0x89')](_0x18c923,_0x2c9d8e),_0x3d9907=util[_0x441ade('0x86')](_0x441ade('0x2e'),_0x3a394e['params']['id'],_0x2c9d8e),_0x3ceb8c=path[_0x441ade('0x89')](_0x18c923,_0x3d9907),_0x2a7ef7=[];_0x2a7ef7['push']({'model':db[_0x441ade('0x8d')],'as':_0x441ade('0x8d'),'attributes':['id',_0x441ade('0x9f')],'raw':!![]}),_0x2a7ef7[_0x441ade('0xc5')]({'model':db[_0x441ade('0xa')],'as':_0x441ade('0x7d'),'attributes':['id','firstName',_0x441ade('0x87')],'raw':!![]});_0x3a394e[_0x441ade('0x52')]['attachments']&&_0x2a7ef7[_0x441ade('0xc5')]({'model':db['Attachment'],'as':'Attachment','raw':!![]});const _0x1613d2=[{'model':db[_0x441ade('0x47')],'as':_0x441ade('0x15'),'attributes':['id',_0x441ade('0xb2'),_0x441ade('0x1d'),_0x441ade('0x8e'),_0x441ade('0xa9'),'read'],'include':_0x2a7ef7}];return _0x1613d2[_0x441ade('0xc5')]({'model':db[_0x441ade('0x9d')],'as':_0x441ade('0x68'),'attributes':['id',_0x441ade('0x92')]}),_0x1613d2[_0x441ade('0xc5')]({'model':db[_0x441ade('0x8d')],'as':'Owner','attributes':['id','fullname']}),db[_0x441ade('0x7f')]['findOne']({'where':{'id':_0x3a394e['params']['id']},'include':_0x1613d2})[_0x441ade('0x90')](handleEntityNotFound(_0x14d539,null))[_0x441ade('0x90')](function(_0x4d49d1){const _0x3093d4=_0x441ade;if(_0x4d49d1){const _0x45b6b8=_0x4d49d1['get']({'plain':!![]});fs[_0x3093d4('0x1e')](_0x265e24);const _0x2ccb9e={'format':'A4','border':_0x3093d4('0x12'),'header':{'height':'40px','contents':{'first':_0x3093d4('0x17')}},'footer':{'height':_0x3093d4('0x36'),'contents':{'default':util['format'](_0x3093d4('0x58'),util[_0x3093d4('0x86')]('%s\x20#%d','Whatsapp',_0x45b6b8['id']),moment()[_0x3093d4('0x86')]('YYYY-MM-DD')[_0x3093d4('0x43')]())}}},_0x45cc31={'channel':_0x3093d4('0x4e'),'account':_0x45b6b8['Account'][_0x3093d4('0x92')],'agent':_0x45b6b8['Owner']?_0x45b6b8['Owner']['fullname']:_0x3093d4('0x6b'),'createdAt':moment(_0x45b6b8[_0x3093d4('0x1d')])[_0x3093d4('0x86')](_0x3093d4('0x69'))[_0x3093d4('0x43')](),'closedAt':_0x45b6b8[_0x3093d4('0x85')]?moment(_0x45b6b8[_0x3093d4('0x22')])[_0x3093d4('0x86')](_0x3093d4('0x69'))[_0x3093d4('0x43')]():'','disposition':_0x45b6b8[_0x3093d4('0xa4')],'messages':_(_0x45b6b8[_0x3093d4('0x15')])[_0x3093d4('0xd4')]({'secret':![]})['map'](function(_0x43ddbb){const _0x3a090c=_0x3093d4;if(_0x43ddbb['Attachment']){const _0x533afc=path['join'](_0x3c7804,_0x43ddbb[_0x3a090c('0x30')][_0x3a090c('0x28')]);fs[_0x3a090c('0xb6')](_0x533afc)&&fs[_0x3a090c('0x62')](_0x533afc)[_0x3a090c('0x75')](fs['createWriteStream'](path['join'](_0x265e24,_0x43ddbb['Attachment'][_0x3a090c('0x28')])));}return{'date':moment(_0x43ddbb[_0x3a090c('0x1d')])[_0x3a090c('0x86')](_0x3a090c('0x69'))[_0x3a090c('0x43')](),'sender':_0x43ddbb[_0x3a090c('0x8e')]===_0x3a090c('0x2b')?_0x43ddbb[_0x3a090c('0x8d')]?_0x43ddbb[_0x3a090c('0x8d')][_0x3a090c('0x9f')]:_0x3a090c('0x96'):_0x43ddbb[_0x3a090c('0x7d')][_0x3a090c('0x8b')]+(_0x43ddbb[_0x3a090c('0x7d')][_0x3a090c('0x87')]?'\x20'+_0x43ddbb[_0x3a090c('0x7d')][_0x3a090c('0x87')]:''),'body':_0x43ddbb[_0x3a090c('0x30')]?_0x43ddbb['Attachment'][_0x3a090c('0x28')]:_0x43ddbb[_0x3a090c('0xb2')],'direction':_0x43ddbb['direction']===_0x3a090c('0x2b')?'A':'C','secret':_0x43ddbb[_0x3a090c('0xa9')],'read':_0x43ddbb[_0x3a090c('0x14')],'attachment':_0x43ddbb[_0x3a090c('0x30')]};})[_0x3093d4('0x6e')]()};return ejs[_0x3093d4('0x13')](path[_0x3093d4('0x89')](config['root'],_0x3093d4('0xc0'),_0x3093d4('0x5b'),'downloadInteraction.html'),{'interaction':_0x45cc31})[_0x3093d4('0x90')](function(_0x10de97){return new Promise(function(_0x16d133,_0x2a39dc){const _0x3b86dc=a794_0x4648;pdf[_0x3b86dc('0xc3')](_0x10de97,_0x2ccb9e)[_0x3b86dc('0xba')](path[_0x3b86dc('0x89')](_0x265e24,'transcript-'+_0x45b6b8['id']+'-'+_0x2c9d8e+_0x3b86dc('0x2c')),function(_0x29c443,_0x8dcc81){if(_0x29c443)return _0x2a39dc(_0x29c443);_0x16d133(_0x8dcc81);});});})['then'](function(){const _0x16763f=_0x3093d4;return new Promise(function(_0x16a48a,_0x1ba693){zipdir(_0x265e24,{'saveTo':_0x3ceb8c},function(_0x54df4a,_0x51ed53){if(_0x54df4a)return _0x1ba693(_0x54df4a);return _0x16a48a(_0x51ed53);});})[_0x16763f('0x90')](function(){return new Promise(function(_0xd3ebcb,_0x52221e){rimraf(_0x265e24,function(_0x4b8968){if(_0x4b8968)_0x52221e(_0x4b8968);return _0xd3ebcb();});});})[_0x16763f('0x90')](function(){const _0x687413=_0x16763f;return _0x14d539[_0x687413('0x2')](_0x3ceb8c,_0x3d9907,function(_0x4c8add){const _0x56013f=_0x687413;_0x4c8add?console[_0x56013f('0x1b')](_0x56013f('0x3e'),_0x4c8add):fs[_0x56013f('0xa3')](_0x3ceb8c);});});});}else return _0x14d539[_0x3093d4('0x7e')](0xc8);})[_0x441ade('0x39')](handleError(_0x14d539,null));}; \ No newline at end of file +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 diff --git a/server/api/whatsappInteraction/whatsappInteraction.events.js b/server/api/whatsappInteraction/whatsappInteraction.events.js index 6553253..7588562 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.events.js +++ b/server/api/whatsappInteraction/whatsappInteraction.events.js @@ -1 +1 @@ -const a795_0x4bd8=['unreadMessages','setMaxListeners','setDataValue','../../mysqldb','WhatsappMessage','then','catch','Users','undefined','emit','addHook','map','remove'];(function(_0x110f3d,_0x4bd813){const _0xdec8bd=function(_0x1da812){while(--_0x1da812){_0x110f3d['push'](_0x110f3d['shift']());}};_0xdec8bd(++_0x4bd813);}(a795_0x4bd8,0x1a3));const a795_0xdec8=function(_0x110f3d,_0x4bd813){_0x110f3d=_0x110f3d-0x0;let _0xdec8bd=a795_0x4bd8[_0x110f3d];return _0xdec8bd;};const _0x4d7a70=a795_0xdec8;'use strict';const EventEmitter=require('events'),WhatsappInteraction=require(_0x4d7a70('0x0'))['db']['WhatsappInteraction'],WhatsappMessage=require(_0x4d7a70('0x0'))['db'][_0x4d7a70('0x1')],WhatsappInteractionEvents=new EventEmitter();WhatsappInteractionEvents[_0x4d7a70('0xb')](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':_0x4d7a70('0x9')};function emitEvent(_0x1da812){return function(_0x48f6c5){const _0x22707c=a795_0xdec8;_0x48f6c5['getUsers']({'attributes':['id'],'raw':!![]})[_0x22707c('0x2')](function(_0x11a8ea){const _0x2c04fb=_0x22707c;return _0x48f6c5[_0x2c04fb('0xc')](_0x2c04fb('0x4'),_0x11a8ea[_0x2c04fb('0x8')](function(_0x2c9f6a){return{'id':_0x2c9f6a['id']};})),WhatsappMessage['findAll']({'where':{'WhatsappInteractionId':_0x48f6c5['id'],'direction':'in','read':![]},'raw':!![]});})[_0x22707c('0x2')](function(_0x3a1547){const _0x542419=_0x22707c;_0x48f6c5['setDataValue'](_0x542419('0xa'),_0x3a1547['length']),WhatsappInteractionEvents[_0x542419('0x6')](_0x1da812+':'+_0x48f6c5['id'],_0x48f6c5),WhatsappInteractionEvents[_0x542419('0x6')](_0x1da812,_0x48f6c5);})[_0x22707c('0x3')](()=>{});};}for(const e in events){if(typeof events[e]!==_0x4d7a70('0x5')){const event=events[e];WhatsappInteraction[_0x4d7a70('0x7')](e,emitEvent(event));}}module['exports']=WhatsappInteractionEvents; \ No newline at end of file +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 diff --git a/server/api/whatsappInteraction/whatsappInteraction.model.js b/server/api/whatsappInteraction/whatsappInteraction.model.js index 3eda906..00e908b 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.model.js +++ b/server/api/whatsappInteraction/whatsappInteraction.model.js @@ -1 +1 @@ -const a796_0x297d=['changed','moment','WhatsappInteraction','define','closed','format','YYYY-MM-DD\x20HH:mm:ss','exports','closedAt'];(function(_0x347b9a,_0x297d58){const _0x346969=function(_0x3ae1e7){while(--_0x3ae1e7){_0x347b9a['push'](_0x347b9a['shift']());}};_0x346969(++_0x297d58);}(a796_0x297d,0x1b1));const a796_0x3469=function(_0x347b9a,_0x297d58){_0x347b9a=_0x347b9a-0x0;let _0x346969=a796_0x297d[_0x347b9a];return _0x346969;};const _0x28e0c7=a796_0x3469;'use strict';const moment=require(_0x28e0c7('0x0')),attributes=require('./whatsappInteraction.attributes');module[_0x28e0c7('0x6')]=function(_0x3ae1e7){const _0x5e81b6=_0x28e0c7,_0x2e25e2=_0x3ae1e7[_0x5e81b6('0x2')](_0x5e81b6('0x1'),attributes,{'tableName':'whatsapp_interactions','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x4cedf0){const _0x5235f2=_0x5e81b6;_0x4cedf0[_0x5235f2('0x8')](_0x5235f2('0x3'))&&(_0x4cedf0[_0x5235f2('0x7')]=moment()[_0x5235f2('0x4')](_0x5235f2('0x5')));}}});return _0x2e25e2;}; \ No newline at end of file +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 diff --git a/server/api/whatsappInteraction/whatsappInteraction.rpc.js b/server/api/whatsappInteraction/whatsappInteraction.rpc.js index 645b570..690c5ff 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.rpc.js +++ b/server/api/whatsappInteraction/whatsappInteraction.rpc.js @@ -1 +1 @@ -const a797_0x2a27=['where','catch','findOne','limit','../../config/logger','then','addTags','error','./whatsappInteraction.socket','raw','message','update','debug','rpc','../../mysqldb','WhatsappInteraction','UpdateWhatsappInteraction','AddTagsToWhatsappInteraction','body','options','info','register','AddTags','lodash','ids','omit'];(function(_0x1129ed,_0x2a27d0){const _0x243154=function(_0x37a253){while(--_0x37a253){_0x1129ed['push'](_0x1129ed['shift']());}};_0x243154(++_0x2a27d0);}(a797_0x2a27,0x1a3));const a797_0x2431=function(_0x1129ed,_0x2a27d0){_0x1129ed=_0x1129ed-0x0;let _0x243154=a797_0x2a27[_0x1129ed];return _0x243154;};const _0x292235=a797_0x2431;'use strict';const _=require(_0x292235('0x14')),db=require(_0x292235('0xb'))['db'],logger=require(_0x292235('0x1'))(_0x292235('0xa')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x292235('0x5'))[_0x292235('0x12')](socket),exports[_0x292235('0xd')]=function(_0x37a253){const _0xf68c90=this;return new Promise(function(_0x1f7ba5,_0x3e9c55){const _0x12e016=a797_0x2431;return db[_0x12e016('0xc')][_0x12e016('0x8')](_0x37a253[_0x12e016('0xf')],{'raw':_0x37a253[_0x12e016('0x10')]?_0x37a253[_0x12e016('0x10')][_0x12e016('0x6')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x37a253['options']?_0x37a253[_0x12e016('0x10')][_0x12e016('0x17')]||null:null,'attributes':_0x37a253[_0x12e016('0x10')]?_0x37a253[_0x12e016('0x10')]['attributes']||null:null,'limit':_0x37a253[_0x12e016('0x10')]?_0x37a253[_0x12e016('0x10')][_0x12e016('0x0')]||null:null})[_0x12e016('0x2')](function(_0x9fc705){const _0x23133d=_0x12e016;logger['info'](_0x23133d('0xd'),_0x37a253),logger[_0x23133d('0x9')](_0x23133d('0xd'),_0x37a253,JSON['stringify'](_0x9fc705)),_0x1f7ba5(_0x9fc705);})[_0x12e016('0x18')](function(_0x4ab775){const _0x563946=_0x12e016;logger['error'](_0x563946('0xd'),_0x4ab775['message'],_0x37a253),_0x3e9c55(_0xf68c90['error'](0x1f4,_0x4ab775[_0x563946('0x7')]));});});},exports[_0x292235('0xe')]=function(_0x51310d){const _0x323bce=this;return new Promise(function(_0x2b4836,_0x3f0772){const _0x27a952=a797_0x2431;return db[_0x27a952('0xc')][_0x27a952('0x19')]({'where':_0x51310d['options']?_0x51310d[_0x27a952('0x10')][_0x27a952('0x17')]||null:null})[_0x27a952('0x2')](function(_0x27aea7){const _0xf38f78=_0x27a952;if(_0x27aea7)return _0x27aea7[_0xf38f78('0x3')](_0x51310d['body'][_0xf38f78('0x15')],{'through':_[_0xf38f78('0x16')](_0x51310d[_0xf38f78('0xf')],[_0xf38f78('0x15'),'id'])});})[_0x27a952('0x2')](function([_0x47fde7]){const _0x4f9b8c=_0x27a952;logger[_0x4f9b8c('0x11')](_0x4f9b8c('0x13'),_0x51310d),logger[_0x4f9b8c('0x9')](_0x4f9b8c('0x13'),_0x51310d,JSON['stringify'](_0x47fde7)),_0x2b4836(_0x47fde7);})[_0x27a952('0x18')](function(_0x2af1a3){const _0x4d2c13=_0x27a952;logger['error'](_0x4d2c13('0x13'),_0x2af1a3[_0x4d2c13('0x7')],_0x51310d),_0x3f0772(_0x323bce[_0x4d2c13('0x4')](0x1f4,_0x2af1a3['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/whatsappInteraction/whatsappInteraction.socket.js b/server/api/whatsappInteraction/whatsappInteraction.socket.js index 55e85fb..e32caca 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.socket.js +++ b/server/api/whatsappInteraction/whatsappInteraction.socket.js @@ -1 +1 @@ -const a798_0x43ee=['register','length','remove','whatsappInteraction:','./whatsappInteraction.events','update','save','emit'];(function(_0x7c2a61,_0x43ee0d){const _0xe5703f=function(_0x1ca6ce){while(--_0x1ca6ce){_0x7c2a61['push'](_0x7c2a61['shift']());}};_0xe5703f(++_0x43ee0d);}(a798_0x43ee,0x12d));const a798_0xe570=function(_0x7c2a61,_0x43ee0d){_0x7c2a61=_0x7c2a61-0x0;let _0xe5703f=a798_0x43ee[_0x7c2a61];return _0xe5703f;};const _0xe9013c=a798_0xe570;'use strict';const WhatsappInteractionEvents=require(_0xe9013c('0x7')),events=[_0xe9013c('0x1'),_0xe9013c('0x5'),_0xe9013c('0x0')];function createListener(_0x1ca6ce,_0x3c88ff){return function(_0x47ec02){const _0x1b99fe=a798_0xe570;_0x3c88ff[_0x1b99fe('0x2')](_0x1ca6ce,_0x47ec02);};}exports[_0xe9013c('0x3')]=function(_0x190dad){const _0x2080a2=_0xe9013c;for(let _0xc88283=0x0,_0x24cf14=events[_0x2080a2('0x4')];_0xc88283<_0x24cf14;_0xc88283++){const _0x2fbea2=events[_0xc88283],_0x3f72b0=createListener(_0x2080a2('0x6')+_0x2fbea2,_0x190dad);WhatsappInteractionEvents['on'](_0x2fbea2,_0x3f72b0);}}; \ No newline at end of file +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 diff --git a/server/api/whatsappMessage/index.js b/server/api/whatsappMessage/index.js index 5ca58d5..6939220 100644 --- a/server/api/whatsappMessage/index.js +++ b/server/api/whatsappMessage/index.js @@ -1 +1 @@ -const a799_0x3ee6=['./whatsappMessage.controller','accept','index','../../components/auth/service','isAuthenticated','/describe','Router','get','update','/:id','status','destroy','whatsappmessage:create','create','show','exports','/:id/accept','../../components/interaction/service','put','/:id/status','whatsapp','/:id/reject','post'];(function(_0x178138,_0x3ee69e){const _0x3a25e3=function(_0x492e03){while(--_0x492e03){_0x178138['push'](_0x178138['shift']());}};_0x3a25e3(++_0x3ee69e);}(a799_0x3ee6,0xfb));const a799_0x3a25=function(_0x178138,_0x3ee69e){_0x178138=_0x178138-0x0;let _0x3a25e3=a799_0x3ee6[_0x178138];return _0x3a25e3;};const _0x191769=a799_0x3a25;'use strict';const express=require('express'),router=express[_0x191769('0x8')](),auth=require(_0x191769('0x5')),interaction=require(_0x191769('0x13')),controller=require(_0x191769('0x2'));router[_0x191769('0x9')]('/',auth['isAuthenticated'](),controller[_0x191769('0x4')]),router[_0x191769('0x9')](_0x191769('0x7'),auth['isAuthenticated'](),controller['describe']),router[_0x191769('0x9')](_0x191769('0xb'),auth['isAuthenticated'](),controller[_0x191769('0x10')]),router[_0x191769('0x1')]('/',auth[_0x191769('0x6')](),interaction['tracked'](_0x191769('0x16'),_0x191769('0xe')),controller[_0x191769('0xf')]),router[_0x191769('0x1')](_0x191769('0x15'),controller[_0x191769('0xc')]),router[_0x191769('0x14')](_0x191769('0xb'),auth['isAuthenticated'](),controller[_0x191769('0xa')]),router['put'](_0x191769('0x12'),auth[_0x191769('0x6')](),controller[_0x191769('0x3')]),router[_0x191769('0x14')](_0x191769('0x0'),auth[_0x191769('0x6')](),controller['reject']),router['delete'](_0x191769('0xb'),auth[_0x191769('0x6')](),controller[_0x191769('0xd')]),module[_0x191769('0x11')]=router; \ No newline at end of file +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 diff --git a/server/api/whatsappMessage/whatsappMessage.attributes.js b/server/api/whatsappMessage/whatsappMessage.attributes.js index 947a049..6d8ed65 100644 --- a/server/api/whatsappMessage/whatsappMessage.attributes.js +++ b/server/api/whatsappMessage/whatsappMessage.attributes.js @@ -1 +1 @@ -const a800_0x17c3=['out','BOOLEAN','STRING','exports'];(function(_0x57d1a6,_0x17c30f){const _0x32de7c=function(_0x5b11e0){while(--_0x5b11e0){_0x57d1a6['push'](_0x57d1a6['shift']());}};_0x32de7c(++_0x17c30f);}(a800_0x17c3,0xf5));const a800_0x32de=function(_0x57d1a6,_0x17c30f){_0x57d1a6=_0x57d1a6-0x0;let _0x32de7c=a800_0x17c3[_0x57d1a6];return _0x32de7c;};const _0x16576f=a800_0x32de;'use strict';const Sequelize=require('sequelize');module[_0x16576f('0x2')]={'body':{'type':Sequelize['TEXT']('medium'),'allowNull':![]},'read':{'type':Sequelize[_0x16576f('0x0')],'defaultValue':![]},'direction':{'type':Sequelize['ENUM']('in',_0x16576f('0x3')),'defaultValue':'out','allowNull':![]},'messageId':{'type':Sequelize['STRING'](0xbe)},'phone':{'type':Sequelize[_0x16576f('0x1')]},'readAt':{'type':Sequelize['DATE']},'secret':{'type':Sequelize[_0x16576f('0x0')],'defaultValue':![]}}; \ No newline at end of file +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 diff --git a/server/api/whatsappMessage/whatsappMessage.controller.js b/server/api/whatsappMessage/whatsappMessage.controller.js index 1e8a441..1c44321 100644 --- a/server/api/whatsappMessage/whatsappMessage.controller.js +++ b/server/api/whatsappMessage/whatsappMessage.controller.js @@ -1 +1 @@ -const a801_0x35fb=['../../config/logger','filter','http','../../rediscache','WhatsppMessage,\x20%s,\x20%s,\x20%s','info','catch','VIRTUAL','debug','util','rejectMessage','findAll','set','rejectmessage','body','keys','WhatsappMessage,\x20%s,\x20%s','status','acceptmessage','UserId','sendStatus','acceptMessage','include','params','query','event','interaction','client','register','sequelize','fields','interface','WhatsappMessage,\x20%s,\x20%s,\x20%s','create','accept','key','name','attributes','WhatsappMessage','error','received\x20delivery\x20report\x20from','get','order','CmContact','then','model','moment','count','WhatsappAccountId','format','code','channel','stringify','YYYY-MM-DD\x20HH:mm:ss','EventManager','intersection','user','where','twilio','rows','WhatsappAccount,\x20%s,\x20%s,\x20%s','message','findOne','WhatsappInteraction','MessageStatus','index','request\x20sent','type','jayson/promise','MessageSid','limit','rawAttributes','SIP/%s','role','fieldName','json','options','request','whatsapp-interactions','inspect','reject','stack','merge','filters','includeAll','read','update','like','sort','length','show','undefined','end','lodash','pick','WhatsappAccount','null','../../components/parsers/qs','offset','AcceptMessage','read1stAt','whatsapp','destroy','[WHATSAPPMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','Contact','map','send','describe'];(function(_0x463ade,_0x35fbfe){const _0xcf471b=function(_0xd55e12){while(--_0xd55e12){_0x463ade['push'](_0x463ade['shift']());}};_0xcf471b(++_0x35fbfe);}(a801_0x35fb,0x91));const a801_0xcf47=function(_0x463ade,_0x35fbfe){_0x463ade=_0x463ade-0x0;let _0xcf471b=a801_0x35fb[_0x463ade];return _0xcf471b;};const _0x24cc94=a801_0xcf47;'use strict';const moment=require(_0x24cc94('0x9')),util=require(_0x24cc94('0x50')),_=require(_0x24cc94('0x38')),qs=require(_0x24cc94('0x3c')),logger=require(_0x24cc94('0x47'))('api'),{getSocket}=require(_0x24cc94('0x4a')),socket=getSocket(),interaction_log=require(_0x24cc94('0x47'))(_0x24cc94('0x29')),db=require('../../mysqldb')['db'],{Op}=require(_0x24cc94('0x64'));require('./whatsappMessage.socket')[_0x24cc94('0x63')](socket);const jayson=require(_0x24cc94('0x1f')),client=jayson['client'][_0x24cc94('0x49')]({'port':0x232c}),client9002=jayson[_0x24cc94('0x62')]['http']({'port':0x232a});function respondWithRpcPromise(_0xd55e12,_0x512e73,_0x4a067c,_0x1c3ff3){return new Promise(function(_0x362357,_0x22c8c8){const _0x5501b9=a801_0xcf47,_0x4b2040=_0x1c3ff3||client;return _0x4b2040[_0x5501b9('0x28')](_0xd55e12,_0x4a067c)['then'](function(_0x5ca048){const _0x2b1081=_0x5501b9;logger[_0x2b1081('0x4c')](_0x2b1081('0x57'),_0x512e73,_0x2b1081('0x1d')),logger[_0x2b1081('0x4f')](_0x2b1081('0x67'),_0x512e73,'request\x20sent',JSON[_0x2b1081('0xf')](_0x5ca048));if(_0x5ca048[_0x2b1081('0x2')]){if(_0x5ca048[_0x2b1081('0x2')][_0x2b1081('0xd')]===0x1f4)return logger[_0x2b1081('0x2')](_0x2b1081('0x57'),_0x512e73,_0x5ca048[_0x2b1081('0x2')]['message']),_0x22c8c8(_0x5ca048[_0x2b1081('0x2')]['message']);return logger[_0x2b1081('0x2')](_0x2b1081('0x57'),_0x512e73,_0x5ca048['error'][_0x2b1081('0x18')]),_0x362357(_0x5ca048[_0x2b1081('0x2')]['message']);}else logger[_0x2b1081('0x4c')](_0x2b1081('0x57'),_0x512e73,'request\x20sent'),_0x362357(_0x5ca048['result']['message']);})[_0x5501b9('0x4d')](function(_0x526078){const _0x2b9ad6=_0x5501b9;logger[_0x2b9ad6('0x2')](_0x2b9ad6('0x57'),_0x512e73,_0x526078),_0x22c8c8(_0x526078);});});}function respondWithResult(_0x2a7f6e,_0x21c1fe){return _0x21c1fe=_0x21c1fe||0xc8,function(_0x12b9e1){const _0x2b4d49=a801_0xcf47;if(_0x12b9e1)return _0x2a7f6e[_0x2b4d49('0x58')](_0x21c1fe)[_0x2b4d49('0x26')](_0x12b9e1);};}function respondWithFilteredResult(_0x5edf5e,_0x553bd6){return function(_0x32f1eb){const _0x30e535=a801_0xcf47;if(_0x32f1eb){const _0x52db7d=_0x32f1eb['count'],_0x1a7122=_0x553bd6[_0x30e535('0x3d')];let _0x1537b6=_0x553bd6[_0x30e535('0x3d')]+_0x553bd6[_0x30e535('0x21')],_0x11a9ae;return _0x1537b6>=_0x52db7d?(_0x1537b6=_0x52db7d,_0x11a9ae=0xc8):_0x11a9ae=0xce,_0x5edf5e['status'](_0x11a9ae),_0x5edf5e[_0x30e535('0x53')]('Content-Range',_0x1a7122+'-'+_0x1537b6+'/'+_0x52db7d)[_0x30e535('0x26')](_0x32f1eb);}return null;};}function saveUpdates(_0x23297d){return function(_0x442c9d){const _0x3aa143=a801_0xcf47;if(_0x442c9d)return _0x442c9d[_0x3aa143('0x31')](_0x23297d)['then'](function(_0x445e73){return _0x445e73;});return null;};}function removeEntity(_0x2f6203){return function(_0x3183f9){if(_0x3183f9)return _0x3183f9['destroy']()['then'](function(){const _0x5bf810=a801_0xcf47;_0x2f6203[_0x5bf810('0x58')](0xcc)[_0x5bf810('0x37')]();});};}function handleEntityNotFound(_0x1b4a8e){return function(_0x5f21ae){const _0x3d6f4d=a801_0xcf47;return!_0x5f21ae&&_0x1b4a8e[_0x3d6f4d('0x5b')](0x194),_0x5f21ae;};}function handleError(_0x577f55,_0x1f8a28){return _0x1f8a28=_0x1f8a28||0x1f4,function(_0x55c2ff){const _0x3a842d=a801_0xcf47;logger[_0x3a842d('0x2')](_0x55c2ff[_0x3a842d('0x2c')]),_0x55c2ff[_0x3a842d('0x6b')]&&delete _0x55c2ff[_0x3a842d('0x6b')],_0x577f55[_0x3a842d('0x58')](_0x1f8a28)[_0x3a842d('0x45')](_0x55c2ff);};}exports[_0x24cc94('0x1c')]=function(_0x4a6837,_0x19c901){const _0x135c25=_0x24cc94;let _0x4b9e3a={};const _0x4836c9={},_0x116307={'count':0x0,'rows':[]},_0x72dd45=_['map'](db['WhatsappMessage'][_0x135c25('0x22')],function(_0x34c54b){const _0x7ed218=_0x135c25;return{'name':_0x34c54b[_0x7ed218('0x25')],'type':_0x34c54b[_0x7ed218('0x1e')][_0x7ed218('0x6a')]};});_0x4836c9[_0x135c25('0x8')]=_['map'](_0x72dd45,_0x135c25('0x6b')),_0x4836c9[_0x135c25('0x5f')]=_[_0x135c25('0x56')](_0x4a6837[_0x135c25('0x5f')]),_0x4836c9['filters']=_[_0x135c25('0x12')](_0x4836c9[_0x135c25('0x8')],_0x4836c9[_0x135c25('0x5f')]),_0x4b9e3a['attributes']=_[_0x135c25('0x12')](_0x4836c9['model'],qs[_0x135c25('0x65')](_0x4a6837[_0x135c25('0x5f')][_0x135c25('0x65')])),_0x4b9e3a[_0x135c25('0x0')]=_0x4b9e3a[_0x135c25('0x0')][_0x135c25('0x34')]?_0x4b9e3a[_0x135c25('0x0')]:_0x4836c9['model'];typeof _0x4a6837[_0x135c25('0x5f')]['nolimit']===_0x135c25('0x36')&&(_0x4b9e3a[_0x135c25('0x21')]=qs['limit'](_0x4a6837[_0x135c25('0x5f')]['limit']),_0x4b9e3a[_0x135c25('0x3d')]=qs['offset'](_0x4a6837[_0x135c25('0x5f')][_0x135c25('0x3d')]));_0x4b9e3a[_0x135c25('0x5')]=qs[_0x135c25('0x33')](_0x4a6837[_0x135c25('0x5f')][_0x135c25('0x33')]),_0x4b9e3a[_0x135c25('0x14')]=qs[_0x135c25('0x2e')](_[_0x135c25('0x39')](_0x4a6837[_0x135c25('0x5f')],_0x4836c9[_0x135c25('0x2e')]),_0x72dd45);_0x4a6837[_0x135c25('0x5f')][_0x135c25('0x48')]&&(_0x4b9e3a[_0x135c25('0x14')]=_[_0x135c25('0x2d')](_0x4b9e3a['where'],{[Op['or']]:_[_0x135c25('0x44')](_0x72dd45,function(_0x4b2434){const _0xd0da89=_0x135c25;if(_0x4b2434[_0xd0da89('0x1e')]!==_0xd0da89('0x4e')){const _0x17e92f={};return _0x17e92f[_0x4b2434[_0xd0da89('0x6b')]]={[Op[_0xd0da89('0x32')]]:'%'+_0x4a6837[_0xd0da89('0x5f')]['filter']+'%'},_0x17e92f;}})}));_0x4b9e3a=_[_0x135c25('0x2d')]({},_0x4b9e3a,_0x4a6837[_0x135c25('0x27')]);const _0x19676a={'where':_0x4b9e3a[_0x135c25('0x14')]};return db[_0x135c25('0x1')][_0x135c25('0xa')](_0x19676a)[_0x135c25('0x7')](function(_0x2fcf85){const _0x399f5b=_0x135c25;return _0x116307[_0x399f5b('0xa')]=_0x2fcf85,_0x4a6837[_0x399f5b('0x5f')][_0x399f5b('0x2f')]&&(_0x4b9e3a['include']=[{'all':!![]}]),db[_0x399f5b('0x1')][_0x399f5b('0x52')](_0x4b9e3a);})[_0x135c25('0x7')](function(_0x357de1){const _0x2fe9ae=_0x135c25;return _0x116307[_0x2fe9ae('0x16')]=_0x357de1,_0x116307;})[_0x135c25('0x7')](respondWithFilteredResult(_0x19c901,_0x4b9e3a))[_0x135c25('0x4d')](handleError(_0x19c901,null));},exports[_0x24cc94('0x35')]=function(_0x5c2a1e,_0x1b94b1){const _0x270b0a=_0x24cc94;let _0x28aea6={'raw':!![],'where':{'id':_0x5c2a1e[_0x270b0a('0x5e')]['id']}};const _0x117280={};return _0x117280[_0x270b0a('0x8')]=_[_0x270b0a('0x56')](db[_0x270b0a('0x1')][_0x270b0a('0x22')]),_0x117280[_0x270b0a('0x5f')]=_[_0x270b0a('0x56')](_0x5c2a1e['query']),_0x117280[_0x270b0a('0x2e')]=_[_0x270b0a('0x12')](_0x117280[_0x270b0a('0x8')],_0x117280[_0x270b0a('0x5f')]),_0x28aea6[_0x270b0a('0x0')]=_[_0x270b0a('0x12')](_0x117280[_0x270b0a('0x8')],qs[_0x270b0a('0x65')](_0x5c2a1e['query']['fields'])),_0x28aea6[_0x270b0a('0x0')]=_0x28aea6[_0x270b0a('0x0')][_0x270b0a('0x34')]?_0x28aea6[_0x270b0a('0x0')]:_0x117280[_0x270b0a('0x8')],_0x5c2a1e[_0x270b0a('0x5f')][_0x270b0a('0x2f')]&&(_0x28aea6[_0x270b0a('0x5d')]=[{'all':!![]}]),_0x28aea6=_[_0x270b0a('0x2d')]({},_0x28aea6,_0x5c2a1e['options']),db[_0x270b0a('0x1')][_0x270b0a('0x19')](_0x28aea6)['then'](handleEntityNotFound(_0x1b94b1,null))[_0x270b0a('0x7')](respondWithResult(_0x1b94b1,null))['catch'](handleError(_0x1b94b1,null));},exports[_0x24cc94('0x68')]=function(_0x435032,_0x210397){const _0x410456=_0x24cc94;return db['WhatsappMessage'][_0x410456('0x68')](_0x435032[_0x410456('0x55')],{})[_0x410456('0x7')](respondWithResult(_0x210397,0xc9))[_0x410456('0x4d')](handleError(_0x210397,null));},exports[_0x24cc94('0x31')]=function(_0xec3f8b,_0x2077b2){const _0x112b5a=_0x24cc94;return _0xec3f8b[_0x112b5a('0x55')]['id']&&delete _0xec3f8b[_0x112b5a('0x55')]['id'],db[_0x112b5a('0x1')][_0x112b5a('0x19')]({'where':{'id':_0xec3f8b[_0x112b5a('0x5e')]['id']}})['then'](handleEntityNotFound(_0x2077b2,null))[_0x112b5a('0x7')](saveUpdates(_0xec3f8b[_0x112b5a('0x55')],null))['then'](respondWithResult(_0x2077b2,null))[_0x112b5a('0x4d')](handleError(_0x2077b2,null));},exports[_0x24cc94('0x41')]=function(_0x442591,_0x49d4cf){const _0x439ceb=_0x24cc94;return db[_0x439ceb('0x1')][_0x439ceb('0x19')]({'where':{'id':_0x442591[_0x439ceb('0x5e')]['id']}})[_0x439ceb('0x7')](handleEntityNotFound(_0x49d4cf,null))[_0x439ceb('0x7')](removeEntity(_0x49d4cf,null))[_0x439ceb('0x4d')](handleError(_0x49d4cf,null));},exports['describe']=function(_0x126832,_0x413003){const _0x43d6b4=_0x24cc94;return db[_0x43d6b4('0x1')][_0x43d6b4('0x46')]()[_0x43d6b4('0x7')](respondWithResult(_0x413003,null))['catch'](handleError(_0x413003,null));},exports[_0x24cc94('0x69')]=function(_0x460d6c,_0x490bfc){const _0x1bde7e=_0x24cc94,_0x1f783b={'channel':_0x1bde7e('0x40')};return _0x460d6c[_0x1bde7e('0x55')]['id']&&delete _0x460d6c[_0x1bde7e('0x55')]['id'],_0x460d6c['body'][_0x1bde7e('0x30')]=!![],_0x460d6c['body']['readAt']=moment()[_0x1bde7e('0xc')](_0x1bde7e('0x10')),_0x460d6c[_0x1bde7e('0x55')][_0x1bde7e('0x5a')]=_0x460d6c['body'][_0x1bde7e('0x5a')]||_0x460d6c['user']['id'],db['WhatsappMessage']['findOne']({'where':{'id':_0x460d6c[_0x1bde7e('0x5e')]['id'],'UserId':null},'include':[{'model':db[_0x1bde7e('0x6')],'as':_0x1bde7e('0x43')}]})[_0x1bde7e('0x7')](handleEntityNotFound(_0x490bfc,null))[_0x1bde7e('0x7')](saveUpdates(_0x460d6c[_0x1bde7e('0x55')],null))[_0x1bde7e('0x7')](function(_0x4cc8fe){const _0x107545=_0x1bde7e;if(_0x4cc8fe)return _0x1f783b[_0x107545('0x18')]=_0x4cc8fe[_0x107545('0x4')]({'plain':!![]}),db[_0x107545('0x1a')]['findOne']({'where':{'id':_0x4cc8fe['WhatsappInteractionId']}});return null;})['then'](handleEntityNotFound(_0x490bfc,null))[_0x1bde7e('0x7')](function(_0x591c44){const _0x4aab0c=_0x1bde7e;if(_0x591c44)return _0x591c44['update']({'UserId':_0x460d6c[_0x4aab0c('0x55')][_0x4aab0c('0x5a')],'read1stAt':_['isNil'](_0x591c44[_0x4aab0c('0x3f')])?moment()[_0x4aab0c('0xc')]('YYYY-MM-DD\x20HH:mm:ss'):undefined});return null;})[_0x1bde7e('0x7')](function(_0x42e39f){const _0x4bb94c=_0x1bde7e;if(_0x42e39f)return _0x1f783b['interaction']=_0x42e39f['get']({'plain':!![]}),interaction_log[_0x4bb94c('0x4c')](_0x4bb94c('0x42'),_0x460d6c['user']['id'],_0x460d6c[_0x4bb94c('0x13')]['name'],_0x460d6c[_0x4bb94c('0x13')][_0x4bb94c('0x24')],_0x1f783b['interaction']['id'],_0x460d6c[_0x4bb94c('0x55')]?JSON[_0x4bb94c('0xf')](_0x460d6c['body']):_0x4bb94c('0x3b')),respondWithRpcPromise(_0x4bb94c('0x3e'),_0x4bb94c('0x5c'),_0x1f783b);return null;})['then'](function(_0x554af2){const _0x45f21c=_0x1bde7e;if(_0x554af2){if(_0x460d6c[_0x45f21c('0x55')]['manual'])return _0x1f783b['message'][_0x45f21c('0x66')]=util[_0x45f21c('0xc')](_0x45f21c('0x23'),_0x460d6c[_0x45f21c('0x13')][_0x45f21c('0x6b')]),_0x1f783b['message'][_0x45f21c('0xe')]=_0x1f783b[_0x45f21c('0xe')],_0x1f783b['message']['event']=_0x45f21c('0x69'),respondWithRpcPromise('EventManager',_0x45f21c('0x11'),{'event':_0x45f21c('0x59'),'message':_0x1f783b[_0x45f21c('0x18')]},client9002)['then'](function(){return _0x1f783b;});return _0x1f783b;}return null;})[_0x1bde7e('0x7')](respondWithResult(_0x490bfc,null))[_0x1bde7e('0x4d')](handleError(_0x490bfc,null));},exports['reject']=function(_0x1e8cdf,_0x41afe2){const _0x53d501=_0x24cc94,_0x3961fa={'agent':{},'channel':_0x53d501('0x40')};return _0x1e8cdf['body']['id']&&delete _0x1e8cdf[_0x53d501('0x55')]['id'],_0x1e8cdf[_0x53d501('0x55')]['UserId']=_0x1e8cdf[_0x53d501('0x55')][_0x53d501('0x5a')]||_0x1e8cdf['user']['id'],_0x3961fa['agent']['id']=_0x1e8cdf[_0x53d501('0x55')]['UserId'],db['WhatsappMessage'][_0x53d501('0x19')]({'where':{'id':_0x1e8cdf[_0x53d501('0x5e')]['id'],'UserId':null}})['then'](handleEntityNotFound(_0x41afe2,null))[_0x53d501('0x7')](function(_0x31a1a7){const _0x3d0144=_0x53d501;if(_0x31a1a7)return _0x3961fa[_0x3d0144('0x18')]=_0x31a1a7[_0x3d0144('0x4')]({'plain':!![]}),db[_0x3d0144('0x1a')][_0x3d0144('0x19')]({'where':{'id':_0x31a1a7['WhatsappInteractionId']}});return null;})[_0x53d501('0x7')](handleEntityNotFound(_0x41afe2,null))['then'](function(_0x5b6089){const _0x26d9bd=_0x53d501;if(_0x5b6089)return _0x3961fa[_0x26d9bd('0x61')]=_0x5b6089[_0x26d9bd('0x4')]({'plain':!![]}),interaction_log[_0x26d9bd('0x4c')]('[WHATSAPPMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x1e8cdf['user']['id'],_0x1e8cdf['user'][_0x26d9bd('0x6b')],_0x1e8cdf[_0x26d9bd('0x13')][_0x26d9bd('0x24')],_0x3961fa[_0x26d9bd('0x61')]['id'],_0x1e8cdf[_0x26d9bd('0x55')]?JSON['stringify'](_0x1e8cdf[_0x26d9bd('0x55')]):'null'),respondWithRpcPromise('RejectMessage',_0x26d9bd('0x51'),_0x3961fa);return null;})['then'](function(_0x42c442){const _0x576a1e=_0x53d501;if(_0x42c442)return _0x42c442[_0x576a1e('0x18')][_0x576a1e('0x66')]=util[_0x576a1e('0xc')](_0x576a1e('0x23'),_0x1e8cdf[_0x576a1e('0x13')][_0x576a1e('0x6b')]),_0x42c442[_0x576a1e('0x18')]['channel']=_0x3961fa['channel'],_0x42c442['message'][_0x576a1e('0x60')]=_0x576a1e('0x2b'),respondWithRpcPromise(_0x576a1e('0x11'),_0x576a1e('0x11'),{'event':_0x576a1e('0x54'),'message':_0x42c442[_0x576a1e('0x18')]},client9002),_0x3961fa;return null;})[_0x53d501('0x7')](respondWithResult(_0x41afe2,null))[_0x53d501('0x4d')](handleError(_0x41afe2,null));},exports[_0x24cc94('0x58')]=function(_0x280225,_0x4ab8fa){const _0x3c42ec=_0x24cc94;_0x280225[_0x3c42ec('0x55')]['id']&&delete _0x280225[_0x3c42ec('0x55')]['id'];let _0x2240de;return db['WhatsappMessage'][_0x3c42ec('0x19')]({'where':{'id':_0x280225['params']['id']}})[_0x3c42ec('0x7')](handleEntityNotFound(_0x4ab8fa,null))['then'](function(_0x238568){const _0x269101=_0x3c42ec;if(_0x238568)return _0x2240de=_0x238568,db[_0x269101('0x3a')][_0x269101('0x19')]({'where':{'id':_0x238568[_0x269101('0xb')]}});})[_0x3c42ec('0x7')](handleEntityNotFound(_0x4ab8fa,null))['then'](function(_0x296ad2){const _0x2116c4=_0x3c42ec;if(_0x296ad2){logger[_0x2116c4('0x4f')](_0x2116c4('0x4b'),_0x2116c4('0x58'),_0x2116c4('0x3'),_0x296ad2[_0x2116c4('0x1e')],util[_0x2116c4('0x2a')](_0x280225['body'],{'showHidden':![],'depth':null}));switch(_0x296ad2['type']){case _0x2116c4('0x15'):if(_0x280225['body'][_0x2116c4('0x20')]&&_0x280225['body']['MessageSid']===_0x2240de['messageId']&&_0x280225[_0x2116c4('0x55')][_0x2116c4('0x1b')]&&_0x280225[_0x2116c4('0x55')][_0x2116c4('0x1b')]===_0x2116c4('0x30'))return _0x2240de[_0x2116c4('0x31')]({'read':!![]});else logger[_0x2116c4('0x2')](_0x2116c4('0x17'),_0x2116c4('0x58'),'twilio',util[_0x2116c4('0x2a')](_0x280225[_0x2116c4('0x55')],{'showHidden':![],'depth':null}));break;}return _0x2240de;}})[_0x3c42ec('0x7')](respondWithResult(_0x4ab8fa,null))[_0x3c42ec('0x4d')](handleError(_0x4ab8fa,null));}; \ No newline at end of file +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 diff --git a/server/api/whatsappMessage/whatsappMessage.events.js b/server/api/whatsappMessage/whatsappMessage.events.js index 8a9c23d..63ce7fa 100644 --- a/server/api/whatsappMessage/whatsappMessage.events.js +++ b/server/api/whatsappMessage/whatsappMessage.events.js @@ -1 +1 @@ -const a802_0x4205=['emit','setMaxListeners','update','undefined','remove','save','addHook','exports','events'];(function(_0x41a944,_0x420526){const _0x557c6e=function(_0x3ff84e){while(--_0x3ff84e){_0x41a944['push'](_0x41a944['shift']());}};_0x557c6e(++_0x420526);}(a802_0x4205,0x1a4));const a802_0x557c=function(_0x41a944,_0x420526){_0x41a944=_0x41a944-0x0;let _0x557c6e=a802_0x4205[_0x41a944];return _0x557c6e;};const _0x5a9544=a802_0x557c;'use strict';const EventEmitter=require(_0x5a9544('0x2')),WhatsappMessage=require('../../mysqldb')['db']['WhatsappMessage'],WhatsappMessageEvents=new EventEmitter();WhatsappMessageEvents[_0x5a9544('0x4')](0x0);const events={'afterCreate':_0x5a9544('0x8'),'afterUpdate':_0x5a9544('0x5'),'afterDestroy':_0x5a9544('0x7')};function emitEvent(_0x3ff84e){return function(_0x500e44){const _0x4dba3c=a802_0x557c;WhatsappMessageEvents[_0x4dba3c('0x3')](_0x3ff84e+':'+_0x500e44['id'],_0x500e44),WhatsappMessageEvents[_0x4dba3c('0x3')](_0x3ff84e,_0x500e44);};}for(const e in events){if(typeof events[e]!==_0x5a9544('0x6')){const event=events[e];WhatsappMessage[_0x5a9544('0x0')](e,emitEvent(event));}}module[_0x5a9544('0x1')]=WhatsappMessageEvents; \ No newline at end of file +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 diff --git a/server/api/whatsappMessage/whatsappMessage.model.js b/server/api/whatsappMessage/whatsappMessage.model.js index 99b79bf..e435f16 100644 --- a/server/api/whatsappMessage/whatsappMessage.model.js +++ b/server/api/whatsappMessage/whatsappMessage.model.js @@ -1 +1 @@ -const a803_0x4ed7=['messageId','Missing\x20parameters:\x20phone,\x20accountSid\x20or\x20authToken','catch','/api/whatsapp/messages/','create','then','out','error','/status?token=','whatsapp_messages','type','secret','token','./whatsappMessage.attributes','accountSid','exports','update','define','direction','util','models','body','phone','WhatsappMessage','findOne','WhatsappInteractionId','WhatsappAccountId','whatsapp:','twilio','authToken','toLowerCase','remote','WhatsappMessage,\x20%s,\x20%s,\x20%s','inspect','lodash','createdAt','get'];(function(_0x526911,_0x4ed72f){const _0x33c9f3=function(_0x4129f4){while(--_0x4129f4){_0x526911['push'](_0x526911['shift']());}};_0x33c9f3(++_0x4ed72f);}(a803_0x4ed7,0x137));const a803_0x33c9=function(_0x526911,_0x4ed72f){_0x526911=_0x526911-0x0;let _0x33c9f3=a803_0x4ed7[_0x526911];return _0x33c9f3;};const _0x3d694d=a803_0x33c9;'use strict';const _=require(_0x3d694d('0x13')),util=require(_0x3d694d('0x4')),logger=require('../../config/logger')('api'),attributes=require(_0x3d694d('0x23'));module[_0x3d694d('0x0')]=function(_0x4129f4){const _0x1c1e15=_0x3d694d,_0x358641=_0x4129f4[_0x1c1e15('0x5')],_0x2c2627=_0x4129f4[_0x1c1e15('0x2')](_0x1c1e15('0x8'),attributes,{'tableName':_0x1c1e15('0x1f'),'paranoid':![],'indexes':[{'name':_0x1c1e15('0x16'),'fields':['messageId']},{'name':'fti_whatsapp_messages','fields':['body'],'type':'FULLTEXT'}],'timestamps':!![],'hooks':{'afterCreate':function(_0xa7b1ed){const _0x160e2e=_0x1c1e15,_0x117f5b=_0xa7b1ed[_0x160e2e('0x15')]({'plain':!![]});(_0x117f5b[_0x160e2e('0x3')]['toLowerCase']()==='in'||_0x117f5b[_0x160e2e('0x3')][_0x160e2e('0xf')]()===_0x160e2e('0x1c')&&!_0x117f5b[_0x160e2e('0x21')]&&!_['isNil'](_0x117f5b['UserId']))&&_0x358641['WhatsappInteraction'][_0x160e2e('0x9')]({'where':{'id':_0x117f5b[_0x160e2e('0xa')]}})[_0x160e2e('0x1b')](function(_0x195dc3){const _0x35d66e=_0x160e2e;_0x195dc3&&_0x195dc3[_0x35d66e('0x1')]({'lastMsgAt':_0x117f5b[_0x35d66e('0x14')],'lastMsgDirection':_0x117f5b[_0x35d66e('0x3')][_0x35d66e('0xf')]()});})[_0x160e2e('0x18')](function(_0xbf8f07){const _0x146d45=_0x160e2e;console[_0x146d45('0x1d')](_0xbf8f07);});if(_0x117f5b[_0x160e2e('0x3')]==='out'&&!_0x117f5b[_0x160e2e('0x21')]){let _0x480cef;_0x358641['WhatsappAccount'][_0x160e2e('0x9')]({'where':{'id':_0x117f5b[_0x160e2e('0xb')]},'raw':!![]})[_0x160e2e('0x1b')](function(_0x38bfab){const _0x307add=_0x160e2e;_0x480cef=_0x38bfab;if(_0x480cef&&_0x480cef[_0x307add('0x20')])switch(_0x480cef['type']){case _0x307add('0xd'):{const _0x889b9a=require(_0x307add('0xd'));if(_0x480cef[_0x307add('0x24')]&&_0x480cef[_0x307add('0xe')]&&_0x480cef[_0x307add('0x7')]){const _0x226dc1=new _0x889b9a(_0x480cef[_0x307add('0x24')],_0x480cef[_0x307add('0xe')]);_0x226dc1['messages'][_0x307add('0x1a')]({'body':_0x117f5b[_0x307add('0x6')],'to':_0x307add('0xc')+_0x117f5b['phone'],'from':_0x307add('0xc')+_0x480cef[_0x307add('0x7')],'statusCallback':_0x480cef[_0x307add('0x10')]+_0x307add('0x19')+_0x117f5b['id']+_0x307add('0x1e')+_0x480cef[_0x307add('0x22')]})[_0x307add('0x1b')](function(_0x569e82){const _0x5035b4=_0x307add;if(_0x569e82['sid'])return _0xa7b1ed[_0x5035b4('0x1')]({'messageId':_0x569e82['sid']});})['catch'](function(_0x2a23ea){const _0x48fd3b=_0x307add;logger['error'](_0x48fd3b('0x11'),'afterCreate',_0x48fd3b('0xd'),util[_0x48fd3b('0x12')](_0x2a23ea,{'showHidden':![],'depth':null}));});}else logger[_0x307add('0x1d')]('WhatsappMessage,\x20%s,\x20%s,\x20%s','afterCreate',_0x307add('0xd'),_0x307add('0x17'));}break;}})['finally'](function(){return null;});}else return null;}},'charset':'utf8mb4','collate':'utf8mb4_unicode_ci'});return _0x2c2627;}; \ No newline at end of file +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 diff --git a/server/api/whatsappMessage/whatsappMessage.rpc.js b/server/api/whatsappMessage/whatsappMessage.rpc.js index 1f2a7ef..32f53f2 100644 --- a/server/api/whatsappMessage/whatsappMessage.rpc.js +++ b/server/api/whatsappMessage/whatsappMessage.rpc.js @@ -1 +1 @@ -const a804_0x5145=['rpc','create','debug','catch','error','options','then','CreateWhatsappMessage','stringify','raw','WhatsappMessage','./whatsappMessage.socket','message','register','../../config/logger','info','../../rediscache','body'];(function(_0x1b7db7,_0x5145c6){const _0x4b0752=function(_0x81184a){while(--_0x81184a){_0x1b7db7['push'](_0x1b7db7['shift']());}};_0x4b0752(++_0x5145c6);}(a804_0x5145,0x122));const a804_0x4b07=function(_0x1b7db7,_0x5145c6){_0x1b7db7=_0x1b7db7-0x0;let _0x4b0752=a804_0x5145[_0x1b7db7];return _0x4b0752;};const _0x4a871d=a804_0x4b07;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x4a871d('0xc'))(_0x4a871d('0x10')),{getSocket}=require(_0x4a871d('0xe')),socket=getSocket();require(_0x4a871d('0x9'))[_0x4a871d('0xb')](socket),exports[_0x4a871d('0x5')]=function(_0x81184a){const _0x1e4cc8=this;return new Promise(function(_0x28be6b,_0x12497a){const _0x3e9918=a804_0x4b07;return db[_0x3e9918('0x8')][_0x3e9918('0x11')](_0x81184a[_0x3e9918('0xf')],{'raw':_0x81184a[_0x3e9918('0x3')]?_0x81184a[_0x3e9918('0x3')][_0x3e9918('0x7')]===undefined?!![]:![]:!![]})[_0x3e9918('0x4')](function(_0x1f1010){const _0x53830e=_0x3e9918;logger[_0x53830e('0xd')](_0x53830e('0x5'),_0x81184a),logger[_0x53830e('0x0')](_0x53830e('0x5'),_0x81184a,JSON[_0x53830e('0x6')](_0x1f1010)),_0x28be6b(_0x1f1010);})[_0x3e9918('0x1')](function(_0x3344ba){const _0x1bda8f=_0x3e9918;logger[_0x1bda8f('0x2')](_0x1bda8f('0x5'),_0x3344ba[_0x1bda8f('0xa')],_0x81184a),_0x12497a(_0x1e4cc8[_0x1bda8f('0x2')](0x1f4,_0x3344ba[_0x1bda8f('0xa')]));});});}; \ No newline at end of file +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 diff --git a/server/api/whatsappMessage/whatsappMessage.socket.js b/server/api/whatsappMessage/whatsappMessage.socket.js index d50de9f..f29f62a 100644 --- a/server/api/whatsappMessage/whatsappMessage.socket.js +++ b/server/api/whatsappMessage/whatsappMessage.socket.js @@ -1 +1 @@ -const a805_0x28e4=['./whatsappMessage.events','update','whatsappMessage:','length','emit','remove','register'];(function(_0x3fdf76,_0x28e4b1){const _0x5c743f=function(_0x2a9278){while(--_0x2a9278){_0x3fdf76['push'](_0x3fdf76['shift']());}};_0x5c743f(++_0x28e4b1);}(a805_0x28e4,0x129));const a805_0x5c74=function(_0x3fdf76,_0x28e4b1){_0x3fdf76=_0x3fdf76-0x0;let _0x5c743f=a805_0x28e4[_0x3fdf76];return _0x5c743f;};const _0xef2e20=a805_0x5c74;'use strict';const WhatsappMessageEvents=require(_0xef2e20('0x4')),events=['save',_0xef2e20('0x2'),_0xef2e20('0x5')];function createListener(_0x2a9278,_0x2a20fd){return function(_0x25581b){const _0x56f940=a805_0x5c74;_0x2a20fd[_0x56f940('0x1')](_0x2a9278,_0x25581b);};}exports[_0xef2e20('0x3')]=function(_0xb3300a){const _0x481685=_0xef2e20;for(let _0x4df2b7=0x0,_0x40951d=events[_0x481685('0x0')];_0x4df2b7<_0x40951d;_0x4df2b7++){const _0x21e1cb=events[_0x4df2b7],_0x315916=createListener(_0x481685('0x6')+_0x21e1cb,_0xb3300a);WhatsappMessageEvents['on'](_0x21e1cb,_0x315916);}}; \ No newline at end of file +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 diff --git a/server/api/whatsappQueue/index.js b/server/api/whatsappQueue/index.js index 1f694b0..946c9cf 100644 --- a/server/api/whatsappQueue/index.js +++ b/server/api/whatsappQueue/index.js @@ -1 +1 @@ -const a806_0x10cd=['create','removeTeams','index','get','describe','put','destroy','express','/:id/users','/describe','delete','exports','addTeams','isAuthenticated','update','/:id','/:id/members','getMembers','../../components/auth/service','post','/:id/teams'];(function(_0x915ae2,_0x10cda0){const _0x558778=function(_0x12428d){while(--_0x12428d){_0x915ae2['push'](_0x915ae2['shift']());}};_0x558778(++_0x10cda0);}(a806_0x10cd,0x1e4));const a806_0x5587=function(_0x915ae2,_0x10cda0){_0x915ae2=_0x915ae2-0x0;let _0x558778=a806_0x10cd[_0x915ae2];return _0x558778;};const _0x3b3374=a806_0x5587;'use strict';const express=require(_0x3b3374('0x6')),router=express['Router'](),auth=require(_0x3b3374('0x11')),controller=require('./whatsappQueue.controller');router[_0x3b3374('0x2')]('/',auth[_0x3b3374('0xc')](),controller[_0x3b3374('0x1')]),router['get'](_0x3b3374('0x8'),auth[_0x3b3374('0xc')](),controller[_0x3b3374('0x3')]),router['get'](_0x3b3374('0xe'),auth[_0x3b3374('0xc')](),controller['show']),router['get'](_0x3b3374('0xf'),auth[_0x3b3374('0xc')](),controller[_0x3b3374('0x10')]),router[_0x3b3374('0x2')](_0x3b3374('0x13'),auth[_0x3b3374('0xc')](),controller['getTeams']),router[_0x3b3374('0x2')]('/:id/users',auth[_0x3b3374('0xc')](),controller['getAgents']),router[_0x3b3374('0x12')]('/',auth[_0x3b3374('0xc')](),controller[_0x3b3374('0x14')]),router[_0x3b3374('0x12')](_0x3b3374('0x13'),auth['isAuthenticated'](),controller[_0x3b3374('0xb')]),router[_0x3b3374('0x12')]('/:id/users',auth[_0x3b3374('0xc')](),controller['addAgents']),router[_0x3b3374('0x4')](_0x3b3374('0xe'),auth['isAuthenticated'](),controller[_0x3b3374('0xd')]),router[_0x3b3374('0x9')](_0x3b3374('0xe'),auth[_0x3b3374('0xc')](),controller[_0x3b3374('0x5')]),router['delete'](_0x3b3374('0x13'),auth[_0x3b3374('0xc')](),controller[_0x3b3374('0x0')]),router['delete'](_0x3b3374('0x7'),auth[_0x3b3374('0xc')](),controller['removeAgents']),module[_0x3b3374('0xa')]=router; \ No newline at end of file +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 diff --git a/server/api/whatsappQueue/whatsappQueue.attributes.js b/server/api/whatsappQueue/whatsappQueue.attributes.js index e42c6e2..ada2af9 100644 --- a/server/api/whatsappQueue/whatsappQueue.attributes.js +++ b/server/api/whatsappQueue/whatsappQueue.attributes.js @@ -1 +1 @@ -const a807_0x2493=['ENUM','sequelize','rrmemory','STRING','INTEGER'];(function(_0x4d7245,_0x249314){const _0x3b2508=function(_0x268e28){while(--_0x268e28){_0x4d7245['push'](_0x4d7245['shift']());}};_0x3b2508(++_0x249314);}(a807_0x2493,0x70));const a807_0x3b25=function(_0x4d7245,_0x249314){_0x4d7245=_0x4d7245-0x0;let _0x3b2508=a807_0x2493[_0x4d7245];return _0x3b2508;};const _0x4a3690=a807_0x3b25;'use strict';const Sequelize=require(_0x4a3690('0x4'));module['exports']={'name':{'type':Sequelize[_0x4a3690('0x1')],'unique':'name','validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'timeout':{'type':Sequelize[_0x4a3690('0x2')],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x4a3690('0x3')](_0x4a3690('0x0'),'beepall','roundrobin')},'description':{'type':Sequelize[_0x4a3690('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/whatsappQueue/whatsappQueue.controller.js b/server/api/whatsappQueue/whatsappQueue.controller.js index 9935f88..352c9f7 100644 --- a/server/api/whatsappQueue/whatsappQueue.controller.js +++ b/server/api/whatsappQueue/whatsappQueue.controller.js @@ -1 +1 @@ -const a808_0x451b=['WhatsappQueues','set','like','order','count','map','WhatsappQueue','error','ut.TeamId\x20=\x20tq.TeamId','rawAttributes','Content-Range','UserProfileSection','filters','body','sort','findAll','show','online','includeAll','Agents','offset','name','merge','user_has_teams','getAgents','status','SELECT','lodash','select','userWhatsappQueue:save','userWhatsappQueue:remove','destroy','stack','union','api','flatMap','agent','limit','updatedAt','isEmpty','ut.UserId\x20=\x20?','nolimit','filter','createdAt','catch','clone','WhatsappQueueId\x20=\x20?','undefined','Team','send','from','squel','userProfileId','VIRTUAL','describe','findOne','length','%s/%s','emit','end','Unable\x20to\x20retrieve\x20the\x20current\x20user','include','push','util','pick','options','json','key','omit','removeAgents','getMembers','fields','create','autoAssociation','query','includes','UserId','removeTeams','forEach','all','get','User','../../config/logger','update','fieldName','findAndCountAll','every','rows','format','then','UserProfileResource','role','getTeams','sendStatus','model','toString','addTeams','../../components/parsers/qs','../../rediscache','compact','keys','whatsappPause','sequelize','type','interface','register','params','join','attributes','ids','intersection','where'];(function(_0x209eaa,_0x451bf7){const _0x9e15fd=function(_0x3fc675){while(--_0x3fc675){_0x209eaa['push'](_0x209eaa['shift']());}};_0x9e15fd(++_0x451bf7);}(a808_0x451b,0x1b1));const a808_0x9e15=function(_0x209eaa,_0x451bf7){_0x209eaa=_0x209eaa-0x0;let _0x9e15fd=a808_0x451b[_0x209eaa];return _0x9e15fd;};const _0x482814=a808_0x9e15;'use strict';const util=require(_0x482814('0x4e')),_=require(_0x482814('0x2a')),squel=require(_0x482814('0x42')),qs=require(_0x482814('0x0')),logger=require(_0x482814('0x61'))(_0x482814('0x31')),{getSocket}=require(_0x482814('0x1')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op}=require(_0x482814('0x5'));require('./whatsappQueue.socket')[_0x482814('0x8')](socket);function respondWithStatusCode(_0x3fc675,_0x4cee91){return _0x4cee91=_0x4cee91||0xcc,function(_0x53396f){if(_0x53396f)return _0x3fc675['sendStatus'](_0x4cee91);return _0x3fc675['status'](_0x4cee91)['end']();};}function respondWithResult(_0x433d28,_0x29cd12){return _0x29cd12=_0x29cd12||0xc8,function(_0x36c63f){const _0x3446c0=a808_0x9e15;if(_0x36c63f)return _0x433d28[_0x3446c0('0x28')](_0x29cd12)[_0x3446c0('0x51')](_0x36c63f);};}function respondWithFilteredResult(_0x1753cb,_0x5d6745){return function(_0x456218){const _0x1f865c=a808_0x9e15;if(_0x456218){const _0x31aceb=_0x456218['count'],_0x1f3873=_0x5d6745[_0x1f865c('0x23')];let _0x245456=_0x5d6745[_0x1f865c('0x23')]+_0x5d6745[_0x1f865c('0x34')],_0x395908;return _0x245456>=_0x31aceb?(_0x245456=_0x31aceb,_0x395908=0xc8):_0x395908=0xce,_0x1753cb[_0x1f865c('0x28')](_0x395908),_0x1753cb[_0x1f865c('0x10')](_0x1f865c('0x19'),_0x1f3873+'-'+_0x245456+'/'+_0x31aceb)[_0x1f865c('0x51')](_0x456218);}return null;};}function saveUpdates(_0x542e98){return function(_0x4a9735){const _0xbef805=a808_0x9e15;if(_0x4a9735)return _0x4a9735[_0xbef805('0x62')](_0x542e98)[_0xbef805('0x68')](function(_0x35c5a0){return _0x35c5a0;});return null;};}function removeEntity(_0x4e00c4){return function(_0x1226ce){const _0x122b0e=a808_0x9e15;if(_0x1226ce)return _0x1226ce[_0x122b0e('0x2e')]()[_0x122b0e('0x68')](function(){const _0x3f1078=_0x122b0e,_0x5b9fec=_0x1226ce[_0x3f1078('0x5f')]({'plain':!![]}),_0x520a7d=_0x3f1078('0xf');return db[_0x3f1078('0x69')][_0x3f1078('0x2e')]({'where':{'type':_0x520a7d,'resourceId':_0x5b9fec['id']}})[_0x3f1078('0x68')](function(){return _0x1226ce;});})[_0x122b0e('0x68')](function(){const _0x222593=_0x122b0e;_0x4e00c4[_0x222593('0x28')](0xcc)[_0x222593('0x4a')]();});};}function handleEntityNotFound(_0x338af3){return function(_0x3041d7){const _0x1d0ef8=a808_0x9e15;return!_0x3041d7&&_0x338af3[_0x1d0ef8('0x6c')](0x194),_0x3041d7;};}function handleError(_0x54e15d,_0x5db4f2){return _0x5db4f2=_0x5db4f2||0x1f4,function(_0x800946){const _0x48bfff=a808_0x9e15;logger[_0x48bfff('0x16')](_0x800946[_0x48bfff('0x2f')]),_0x800946['name']&&delete _0x800946[_0x48bfff('0x24')],_0x54e15d[_0x48bfff('0x28')](_0x5db4f2)[_0x48bfff('0x40')](_0x800946);};}exports['index']=function(_0x4525a6,_0x3b9f86){const _0x315821=_0x482814;let _0x2ad105={};const _0x2265b1={},_0x9459e7={'count':0x0,'rows':[]},_0x364ef6=_[_0x315821('0x14')](db[_0x315821('0x15')][_0x315821('0x18')],function(_0x590fd0){const _0x6cbb64=_0x315821;return{'name':_0x590fd0[_0x6cbb64('0x63')],'type':_0x590fd0['type'][_0x6cbb64('0x52')]};});_0x2265b1[_0x315821('0x6d')]=_[_0x315821('0x14')](_0x364ef6,'name'),_0x2265b1[_0x315821('0x59')]=_[_0x315821('0x3')](_0x4525a6[_0x315821('0x59')]),_0x2265b1[_0x315821('0x1b')]=_[_0x315821('0xd')](_0x2265b1['model'],_0x2265b1['query']),_0x2ad105['attributes']=_[_0x315821('0xd')](_0x2265b1['model'],qs[_0x315821('0x56')](_0x4525a6['query'][_0x315821('0x56')])),_0x2ad105[_0x315821('0xb')]=_0x2ad105[_0x315821('0xb')][_0x315821('0x47')]?_0x2ad105[_0x315821('0xb')]:_0x2265b1[_0x315821('0x6d')];typeof _0x4525a6[_0x315821('0x59')][_0x315821('0x38')]===_0x315821('0x3e')&&(_0x2ad105[_0x315821('0x34')]=qs['limit'](_0x4525a6[_0x315821('0x59')][_0x315821('0x34')]),_0x2ad105[_0x315821('0x23')]=qs['offset'](_0x4525a6[_0x315821('0x59')]['offset']));_0x2ad105[_0x315821('0x12')]=qs[_0x315821('0x1d')](_0x4525a6['query'][_0x315821('0x1d')]),_0x2ad105[_0x315821('0xe')]=qs['filters'](_[_0x315821('0x4f')](_0x4525a6[_0x315821('0x59')],_0x2265b1[_0x315821('0x1b')]),_0x364ef6);_0x4525a6[_0x315821('0x59')][_0x315821('0x39')]&&(_0x2ad105[_0x315821('0xe')]=_[_0x315821('0x25')](_0x2ad105[_0x315821('0xe')],{[Op['or']]:_[_0x315821('0x14')](_0x364ef6,function(_0x2d229b){const _0x49bb2d=_0x315821;if(_0x2d229b[_0x49bb2d('0x6')]!==_0x49bb2d('0x44')){const _0x15903a={};return _0x15903a[_0x2d229b[_0x49bb2d('0x24')]]={[Op[_0x49bb2d('0x11')]]:'%'+_0x4525a6[_0x49bb2d('0x59')][_0x49bb2d('0x39')]+'%'},_0x15903a;}})}));_0x2ad105=_[_0x315821('0x25')]({},_0x2ad105,_0x4525a6['options']);const _0x3e3655={'where':_0x2ad105['where']};return db[_0x315821('0x15')][_0x315821('0x13')](_0x3e3655)[_0x315821('0x68')](function(_0x4b2e68){const _0x4a42c7=_0x315821;return _0x9459e7[_0x4a42c7('0x13')]=_0x4b2e68,_0x4525a6[_0x4a42c7('0x59')]['includeAll']&&(_0x2ad105[_0x4a42c7('0x4c')]=[{'all':!![]}]),db[_0x4a42c7('0x15')][_0x4a42c7('0x1e')](_0x2ad105);})['then'](function(_0x4fa2a3){const _0xfc054b=_0x315821;return _0x9459e7[_0xfc054b('0x66')]=_0x4fa2a3,_0x9459e7;})['then'](respondWithFilteredResult(_0x3b9f86,_0x2ad105))[_0x315821('0x3b')](handleError(_0x3b9f86,null));},exports[_0x482814('0x1f')]=function(_0x4913bb,_0x2a63df){const _0x367897=_0x482814;let _0x1b7c50={'raw':!![],'where':{'id':_0x4913bb[_0x367897('0x9')]['id']}};const _0x820f16={};return _0x820f16[_0x367897('0x6d')]=_['keys'](db[_0x367897('0x15')][_0x367897('0x18')]),_0x820f16[_0x367897('0x59')]=_[_0x367897('0x3')](_0x4913bb[_0x367897('0x59')]),_0x820f16['filters']=_[_0x367897('0xd')](_0x820f16[_0x367897('0x6d')],_0x820f16[_0x367897('0x59')]),_0x1b7c50[_0x367897('0xb')]=_[_0x367897('0xd')](_0x820f16[_0x367897('0x6d')],qs[_0x367897('0x56')](_0x4913bb[_0x367897('0x59')]['fields'])),_0x1b7c50[_0x367897('0xb')]=_0x1b7c50[_0x367897('0xb')]['length']?_0x1b7c50[_0x367897('0xb')]:_0x820f16[_0x367897('0x6d')],_0x4913bb[_0x367897('0x59')][_0x367897('0x21')]&&(_0x1b7c50['include']=[{'all':!![]}]),_0x1b7c50=_[_0x367897('0x25')]({},_0x1b7c50,_0x4913bb[_0x367897('0x50')]),db[_0x367897('0x15')][_0x367897('0x46')](_0x1b7c50)['then'](handleEntityNotFound(_0x2a63df,null))[_0x367897('0x68')](respondWithResult(_0x2a63df,null))[_0x367897('0x3b')](handleError(_0x2a63df,null));},exports[_0x482814('0x57')]=function(_0x32b13a,_0x334c7c){const _0xd16a77=_0x482814;return db[_0xd16a77('0x15')][_0xd16a77('0x57')](_0x32b13a[_0xd16a77('0x1c')],{})[_0xd16a77('0x68')](function(_0x3eab21){const _0x56c07c=_0xd16a77,_0x2b7795=_0x32b13a['user'][_0x56c07c('0x5f')]({'plain':!![]});if(!_0x2b7795)throw new Error(_0x56c07c('0x4b'));if(_0x2b7795[_0x56c07c('0x6a')]==='user'){const _0x5d1240=_0x3eab21[_0x56c07c('0x5f')]({'plain':!![]}),_0x532620=_0x56c07c('0xf');return db[_0x56c07c('0x1a')][_0x56c07c('0x46')]({'where':{'name':_0x532620,'userProfileId':_0x2b7795[_0x56c07c('0x43')]},'raw':!![]})[_0x56c07c('0x68')](function(_0x1ab94a){const _0x4244f5=_0x56c07c;return _0x1ab94a&&_0x1ab94a[_0x4244f5('0x58')]===0x0?db[_0x4244f5('0x69')][_0x4244f5('0x57')]({'name':_0x5d1240['name'],'resourceId':_0x5d1240['id'],'type':_0x1ab94a['name'],'sectionId':_0x1ab94a['id']},{})[_0x4244f5('0x68')](function(){return _0x3eab21;}):_0x3eab21;})[_0x56c07c('0x3b')](function(_0x52c0cc){const _0x10f92f=_0x56c07c;logger[_0x10f92f('0x16')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x52c0cc);throw _0x52c0cc;});}return _0x3eab21;})[_0xd16a77('0x68')](respondWithResult(_0x334c7c,0xc9))[_0xd16a77('0x3b')](handleError(_0x334c7c,null));},exports[_0x482814('0x62')]=function(_0x59d73b,_0x2ad355){const _0x1f101b=_0x482814;return _0x59d73b[_0x1f101b('0x1c')]['id']&&delete _0x59d73b[_0x1f101b('0x1c')]['id'],db[_0x1f101b('0x15')][_0x1f101b('0x46')]({'where':{'id':_0x59d73b[_0x1f101b('0x9')]['id']}})[_0x1f101b('0x68')](handleEntityNotFound(_0x2ad355,null))[_0x1f101b('0x68')](saveUpdates(_0x59d73b[_0x1f101b('0x1c')],null))[_0x1f101b('0x68')](respondWithResult(_0x2ad355,null))['catch'](handleError(_0x2ad355,null));},exports[_0x482814('0x2e')]=function(_0xb72006,_0x2c7961){const _0x689ba4=_0x482814;return db[_0x689ba4('0x15')][_0x689ba4('0x46')]({'where':{'id':_0xb72006[_0x689ba4('0x9')]['id']}})['then'](handleEntityNotFound(_0x2c7961,null))['then'](removeEntity(_0x2c7961,null))['catch'](handleError(_0x2c7961,null));},exports[_0x482814('0x45')]=function(_0x34071d,_0x1b7022){const _0x2d17ae=_0x482814;return db[_0x2d17ae('0x15')]['describe']()[_0x2d17ae('0x68')](respondWithResult(_0x1b7022,null))['catch'](handleError(_0x1b7022,null));},exports[_0x482814('0x55')]=function(_0x53aa5d,_0xccaf8e){const _0xf14adf=_0x482814;let _0x1ac509={'raw':!![],'where':{}};const _0x3249eb={};let _0x2e3445;return db[_0xf14adf('0x15')][_0xf14adf('0x46')]({'where':{'id':_0x53aa5d[_0xf14adf('0x9')]['id']}})[_0xf14adf('0x68')](handleEntityNotFound(_0xccaf8e,null))[_0xf14adf('0x68')](function(_0xce5fa){const _0x2554f6=_0xf14adf;if(_0xce5fa)return _0x2e3445=_0xce5fa[_0x2554f6('0x5f')]({'plain':!![]}),_0x3249eb[_0x2554f6('0x6d')]=_[_0x2554f6('0x3')](db['UserWhatsappQueue'][_0x2554f6('0x18')]),_0x3249eb['query']=_[_0x2554f6('0x3')](_0x53aa5d['query']),_0x3249eb['filters']=_[_0x2554f6('0xd')](_0x3249eb[_0x2554f6('0x6d')],_0x3249eb[_0x2554f6('0x59')]),_0x1ac509[_0x2554f6('0xb')]=_[_0x2554f6('0xd')](_0x3249eb['model'],qs['fields'](_0x53aa5d[_0x2554f6('0x59')][_0x2554f6('0x56')])),_0x1ac509['attributes']=_0x1ac509[_0x2554f6('0xb')][_0x2554f6('0x47')]?_0x1ac509[_0x2554f6('0xb')]:_0x3249eb[_0x2554f6('0x6d')],typeof _0x53aa5d[_0x2554f6('0x59')][_0x2554f6('0x38')]==='undefined'&&(_0x1ac509[_0x2554f6('0x34')]=qs[_0x2554f6('0x34')](_0x53aa5d['query'][_0x2554f6('0x34')]),_0x1ac509[_0x2554f6('0x23')]=qs[_0x2554f6('0x23')](_0x53aa5d[_0x2554f6('0x59')][_0x2554f6('0x23')])),_0x1ac509[_0x2554f6('0x12')]=qs[_0x2554f6('0x1d')](_0x53aa5d[_0x2554f6('0x59')][_0x2554f6('0x1d')]),_0x1ac509[_0x2554f6('0xe')]=qs[_0x2554f6('0x1b')](_['pick'](_0x53aa5d[_0x2554f6('0x59')],_0x3249eb[_0x2554f6('0x1b')])),_0x1ac509[_0x2554f6('0xe')]['WhatsappQueueId']=_0xce5fa['id'],_0x53aa5d[_0x2554f6('0x59')][_0x2554f6('0x39')]&&(_0x1ac509[_0x2554f6('0xe')]=_['merge'](_0x1ac509['where'],{[Op['or']]:_['map'](_0x1ac509[_0x2554f6('0xb')],function(_0xa0ce5){const _0x1044ec=_0x2554f6,_0x5a8b30={};return _0x5a8b30[_0xa0ce5]={[Op[_0x1044ec('0x11')]]:'%'+_0x53aa5d[_0x1044ec('0x59')][_0x1044ec('0x39')]+'%'},_0x5a8b30;})})),_0x1ac509=_['merge']({},_0x1ac509,_0x53aa5d[_0x2554f6('0x50')]),db['UserWhatsappQueue'][_0x2554f6('0x1e')](_0x1ac509);})[_0xf14adf('0x68')](function(_0x2dd91a){const _0x4b6322=_0xf14adf;if(_0x2dd91a)return db[_0x4b6322('0x60')][_0x4b6322('0x64')]({'where':{'id':_[_0x4b6322('0x14')](_0x2dd91a,_0x4b6322('0x5b')),'role':_0x4b6322('0x33')},'attributes':['id','name','whatsappPause',_0x4b6322('0x35'),'createdAt']});})[_0xf14adf('0x68')](function(_0x3d348a){const _0x575c73=_0xf14adf;return _0x3d348a?{'count':_0x3d348a[_0x575c73('0x13')],'rows':_['map'](_0x3d348a[_0x575c73('0x66')],function(_0x53b09b){const _0x2cf53d=_0x575c73;return{'membername':_0x53b09b[_0x2cf53d('0x24')],'UserId':_0x53b09b['id'],'queue_name':_0x2e3445[_0x2cf53d('0x24')],'WhatsappQueueId':_0x2e3445['id'],'interface':util[_0x2cf53d('0x67')](_0x2cf53d('0x48'),'SIP',_0x53b09b['name']),'penalty':0x0,'paused':_0x53b09b[_0x2cf53d('0x4')],'createdAt':_0x53b09b[_0x2cf53d('0x3a')],'updatedAt':_0x53b09b[_0x2cf53d('0x35')]};})}:{'count':0x0,'rows':[]};})[_0xf14adf('0x68')](respondWithFilteredResult(_0xccaf8e,_0x1ac509))[_0xf14adf('0x3b')](handleError(_0xccaf8e,null));},exports[_0x482814('0x6b')]=function(_0x25927d,_0x50b960){const _0x2d1781=_0x482814;let _0x6f6f6d={};const _0x159de8={};let _0x38a137,_0x508abc;return db[_0x2d1781('0x15')][_0x2d1781('0x46')]({'where':{'id':_0x25927d[_0x2d1781('0x9')]['id']}})[_0x2d1781('0x68')](handleEntityNotFound(_0x50b960,null))[_0x2d1781('0x68')](function(_0x35391b){const _0x1a2fcb=_0x2d1781;if(_0x35391b)return _0x38a137=_0x35391b,_0x159de8[_0x1a2fcb('0x6d')]=_['keys'](db['Team'][_0x1a2fcb('0x18')]),_0x159de8['query']=_[_0x1a2fcb('0x3')](_0x25927d[_0x1a2fcb('0x59')]),_0x159de8[_0x1a2fcb('0x1b')]=_[_0x1a2fcb('0xd')](_0x159de8['model'],_0x159de8[_0x1a2fcb('0x59')]),_0x6f6f6d[_0x1a2fcb('0xb')]=_[_0x1a2fcb('0xd')](_0x159de8[_0x1a2fcb('0x6d')],qs[_0x1a2fcb('0x56')](_0x25927d[_0x1a2fcb('0x59')][_0x1a2fcb('0x56')])),_0x6f6f6d[_0x1a2fcb('0xb')]=_0x6f6f6d[_0x1a2fcb('0xb')]['length']?_0x6f6f6d[_0x1a2fcb('0xb')]:_0x159de8[_0x1a2fcb('0x6d')],_0x6f6f6d['order']=qs['sort'](_0x25927d['query'][_0x1a2fcb('0x1d')]),_0x6f6f6d['where']=qs[_0x1a2fcb('0x1b')](_[_0x1a2fcb('0x4f')](_0x25927d[_0x1a2fcb('0x59')],_0x159de8[_0x1a2fcb('0x1b')])),_0x25927d[_0x1a2fcb('0x59')][_0x1a2fcb('0x39')]&&(_0x6f6f6d['where']=_[_0x1a2fcb('0x25')](_0x6f6f6d[_0x1a2fcb('0xe')],{[Op['or']]:_[_0x1a2fcb('0x14')](_0x6f6f6d[_0x1a2fcb('0xb')],function(_0x3ff63a){const _0xd3bf87=_0x1a2fcb,_0x19c416={};return _0x19c416[_0x3ff63a]={[Op[_0xd3bf87('0x11')]]:'%'+_0x25927d['query'][_0xd3bf87('0x39')]+'%'},_0x19c416;})})),_0x6f6f6d=_[_0x1a2fcb('0x25')]({},_0x6f6f6d,_0x25927d[_0x1a2fcb('0x50')]),_0x38a137[_0x1a2fcb('0x6b')](_0x6f6f6d);})[_0x2d1781('0x68')](function(_0xcb26ec){const _0x40b7a4=_0x2d1781;if(_0xcb26ec)return _0x508abc=_0xcb26ec[_0x40b7a4('0x47')],typeof _0x25927d['query']['nolimit']===_0x40b7a4('0x3e')&&(_0x6f6f6d[_0x40b7a4('0x34')]=qs[_0x40b7a4('0x34')](_0x25927d['query']['limit']),_0x6f6f6d[_0x40b7a4('0x23')]=qs[_0x40b7a4('0x23')](_0x25927d['query']['offset'])),_0x38a137['getTeams'](_0x6f6f6d);})['then'](function(_0x386254){if(_0x386254)return _0x386254?{'count':_0x508abc,'rows':_0x386254}:null;})['then'](respondWithResult(_0x50b960,null))[_0x2d1781('0x3b')](handleError(_0x50b960,null));},exports[_0x482814('0x6f')]=function(_0x4f382f,_0x2d8a0e){const _0x3d507e=_0x482814,_0x11f914=_0x4f382f[_0x3d507e('0x1c')]['ids'];return db[_0x3d507e('0x3f')][_0x3d507e('0x1e')]({'where':{'id':_0x11f914},'attributes':['id'],'include':[{'model':db[_0x3d507e('0x60')],'as':_0x3d507e('0x22'),'attributes':['id',_0x3d507e('0x24'),_0x3d507e('0x20'),'voicePause',_0x3d507e('0x7')],'raw':!![]}]})[_0x3d507e('0x68')](function(_0x10edb0){const _0x540c54=_0x3d507e;if(_0x10edb0){const _0x1ee012=_[_0x540c54('0x32')](_0x10edb0,function(_0x5468a1){const _0x4cbf50=_0x540c54,_0x17215d=_0x5468a1[_0x4cbf50('0x5f')]({'plain':!![]});return _0x17215d[_0x4cbf50('0x22')];});return db[_0x540c54('0x15')][_0x540c54('0x46')]({'where':{'id':_0x4f382f[_0x540c54('0x9')]['id']}})[_0x540c54('0x68')](function(_0x4351ea){const _0x35ac22=_0x540c54;return db[_0x35ac22('0x5')]['transaction'](function(_0x5402a5){const _0x5ab1b6=_0x35ac22;return _0x4351ea['addTeams'](_0x11f914,{'transaction':_0x5402a5})[_0x5ab1b6('0x68')](function(){return Promise['each'](_0x1ee012,function(_0x5a7ac5){return db['UserWhatsappQueue']['findOrCreate']({'where':{'UserId':_0x5a7ac5['id'],'WhatsappQueueId':_0x4f382f['params']['id']},'transaction':_0x5402a5});});})[_0x5ab1b6('0x68')](function(){const _0x3eeefc=_0x5ab1b6;_0x1ee012[_0x3eeefc('0x5d')](function(_0x40bde3){const _0xdcade=_0x3eeefc;socket[_0xdcade('0x49')](_0xdcade('0x2c'),{'UserId':_0x40bde3['id'],'WhatsappQueueId':_0x4351ea['id']});});});});});}})[_0x3d507e('0x68')](respondWithStatusCode(_0x2d8a0e,null))[_0x3d507e('0x3b')](handleError(_0x2d8a0e,null));},exports[_0x482814('0x5c')]=function(_0x4519c0,_0x2e903d){const _0x4f37b3=_0x482814;return db[_0x4f37b3('0x3f')][_0x4f37b3('0x1e')]({'where':{'id':_0x4519c0[_0x4f37b3('0x59')][_0x4f37b3('0xc')]},'attributes':['id'],'include':[{'model':db['User'],'as':_0x4f37b3('0x22'),'attributes':['id'],'raw':!![]}]})[_0x4f37b3('0x68')](handleEntityNotFound(_0x2e903d,null))[_0x4f37b3('0x68')](function(_0x569820){const _0x1c4ae4=_0x4f37b3,_0xd6608b=_[_0x1c4ae4('0x14')](_0x569820,'id');let _0x1e25a0=[];const _0x51e5bf=[],_0x1b0b93=squel[_0x1c4ae4('0x2b')]();_0x1b0b93['field']('tq.TeamId')[_0x1c4ae4('0x41')]('team_has_whatsapp_queues','tq')[_0x1c4ae4('0xa')](_0x1c4ae4('0x26'),'ut',_0x1c4ae4('0x17'))[_0x1c4ae4('0xe')](_0x1c4ae4('0x3d'),_0x4519c0[_0x1c4ae4('0x9')]['id']);for(let _0x2ddaae=0x0;_0x2ddaae<_0x569820[_0x1c4ae4('0x47')];_0x2ddaae+=0x1){const _0x59c3a9=_0x569820[_0x2ddaae];for(let _0x5ccd9f=0x0;_0x5ccd9f<_0x59c3a9['Agents'][_0x1c4ae4('0x47')];_0x5ccd9f+=0x1){const _0x460f17=_0x59c3a9[_0x1c4ae4('0x22')][_0x5ccd9f],_0x539e40=_0x1b0b93[_0x1c4ae4('0x3c')]();_0x539e40['where'](_0x1c4ae4('0x37'),_0x460f17['id']),_0x51e5bf[_0x1c4ae4('0x4d')](db[_0x1c4ae4('0x5')][_0x1c4ae4('0x59')](_0x539e40[_0x1c4ae4('0x6e')](),{'type':db[_0x1c4ae4('0x5')]['QueryTypes'][_0x1c4ae4('0x29')]})['then'](function(_0x4cb92c){const _0x143db5=_0x1c4ae4;if(_0x4cb92c[_0x143db5('0x47')]===0x1)return _0x460f17['id'];else{const _0x23cd42=_[_0x143db5('0x65')](_[_0x143db5('0x14')](_0x4cb92c,'TeamId'),function(_0x36d602){const _0x453ff9=_0x143db5;return _[_0x453ff9('0x5a')](_0xd6608b,_0x36d602);});if(_0x23cd42)return _0x460f17['id'];}}));}}return Promise[_0x1c4ae4('0x5e')](_0x51e5bf)['then'](function(_0x36d6cf){const _0x2168ec=_0x1c4ae4;return _0x1e25a0=_(_0x1e25a0)[_0x2168ec('0x30')](_0x36d6cf)[_0x2168ec('0x2')]()['value'](),db[_0x2168ec('0x15')]['findOne']({'where':{'id':_0x4519c0['params']['id']}})[_0x2168ec('0x68')](function(_0xdbe36a){const _0x36f80d=_0x2168ec;return db[_0x36f80d('0x5')]['transaction'](function(_0x1f6091){const _0xf71258=_0x36f80d;return _0xdbe36a[_0xf71258('0x5c')](_0x4519c0[_0xf71258('0x59')][_0xf71258('0xc')],{'transaction':_0x1f6091})[_0xf71258('0x68')](function(){const _0x246e98=_0xf71258;if(!_[_0x246e98('0x36')](_0x1e25a0))return _0xdbe36a[_0x246e98('0x54')](_0x1e25a0,{'transaction':_0x1f6091});})[_0xf71258('0x68')](function(){const _0x18e3fd=_0xf71258;_0x1e25a0[_0x18e3fd('0x5d')](function(_0xfd7d7e){const _0x2d0cd5=_0x18e3fd;socket[_0x2d0cd5('0x49')](_0x2d0cd5('0x2d'),{'UserId':_0xfd7d7e,'WhatsappQueueId':_0xdbe36a['id']});});});});});});})['then'](respondWithStatusCode(_0x2e903d,null))['catch'](handleError(_0x2e903d,null));},exports['addAgents']=function(_0x57e0b9,_0xa5fc72){const _0x499270=_0x482814;return db['WhatsappQueue'][_0x499270('0x46')]({'where':{'id':_0x57e0b9['params']['id']}})[_0x499270('0x68')](function(_0x3bf05f){const _0x440fdd=_0x499270;if(_0x3bf05f)return _0x3bf05f['addAgents'](_0x57e0b9['body'][_0x440fdd('0xc')],{'through':_[_0x440fdd('0x53')](_0x57e0b9[_0x440fdd('0x1c')],['ids','id'])})['then'](function(_0x5b49de){const _0x24e07d=_0x440fdd;for(let _0x495517=0x0;_0x495517<_0x57e0b9[_0x24e07d('0x1c')][_0x24e07d('0xc')][_0x24e07d('0x47')];_0x495517+=0x1){socket['emit']('userWhatsappQueue:save',{'UserId':_0x57e0b9['body'][_0x24e07d('0xc')][_0x495517],'WhatsappQueueId':_0x57e0b9[_0x24e07d('0x9')]['id']});}return _0x5b49de;});})[_0x499270('0x68')](respondWithResult(_0xa5fc72,null))[_0x499270('0x3b')](handleError(_0xa5fc72,null));},exports[_0x482814('0x54')]=function(_0x45b8dd,_0x10d366){const _0xbedc53=_0x482814;return db[_0xbedc53('0x15')][_0xbedc53('0x46')]({'where':{'id':_0x45b8dd[_0xbedc53('0x9')]['id']}})['then'](handleEntityNotFound(_0x10d366,null))[_0xbedc53('0x68')](function(_0x3d3641){const _0x168ec8=_0xbedc53;if(_0x3d3641)return _0x3d3641[_0x168ec8('0x54')](_0x45b8dd['query'][_0x168ec8('0xc')])[_0x168ec8('0x68')](function(){const _0x4f744d=_0x168ec8;if(_['isArray'](_0x45b8dd[_0x4f744d('0x59')]['ids']))for(let _0x20d0df=0x0;_0x20d0df<_0x45b8dd[_0x4f744d('0x59')][_0x4f744d('0xc')][_0x4f744d('0x47')];_0x20d0df+=0x1){socket[_0x4f744d('0x49')](_0x4f744d('0x2d'),{'UserId':Number(_0x45b8dd[_0x4f744d('0x59')][_0x4f744d('0xc')][_0x20d0df]),'WhatsappQueueId':Number(_0x45b8dd[_0x4f744d('0x9')]['id'])});}else socket[_0x4f744d('0x49')]('userWhatsappQueue:remove',{'UserId':Number(_0x45b8dd[_0x4f744d('0x59')][_0x4f744d('0xc')]),'WhatsappQueueId':Number(_0x45b8dd[_0x4f744d('0x9')]['id'])});});})[_0xbedc53('0x68')](respondWithStatusCode(_0x10d366,null))[_0xbedc53('0x3b')](handleError(_0x10d366,null));},exports[_0x482814('0x27')]=function(_0x21fe79,_0x571016){const _0x3e61ca=_0x482814;let _0x1bdcd2={};const _0x17c325={};let _0x4c9300,_0x397d52;return db['WhatsappQueue'][_0x3e61ca('0x46')]({'where':{'id':_0x21fe79[_0x3e61ca('0x9')]['id']}})['then'](handleEntityNotFound(_0x571016,null))[_0x3e61ca('0x68')](function(_0x152463){const _0x434faa=_0x3e61ca;if(_0x152463)return _0x4c9300=_0x152463,_0x17c325[_0x434faa('0x6d')]=_[_0x434faa('0x3')](db['User']['rawAttributes']),_0x17c325[_0x434faa('0x59')]=_[_0x434faa('0x3')](_0x21fe79['query']),_0x17c325[_0x434faa('0x1b')]=_[_0x434faa('0xd')](_0x17c325[_0x434faa('0x6d')],_0x17c325['query']),_0x1bdcd2[_0x434faa('0xb')]=_[_0x434faa('0xd')](_0x17c325['model'],qs[_0x434faa('0x56')](_0x21fe79['query'][_0x434faa('0x56')])),_0x1bdcd2[_0x434faa('0xb')]=_0x1bdcd2[_0x434faa('0xb')]['length']?_0x1bdcd2[_0x434faa('0xb')]:_0x17c325['model'],_0x1bdcd2['order']=qs['sort'](_0x21fe79['query']['sort']),_0x1bdcd2[_0x434faa('0xe')]=qs['filters'](_['pick'](_0x21fe79[_0x434faa('0x59')],_0x17c325[_0x434faa('0x1b')])),_0x21fe79[_0x434faa('0x59')][_0x434faa('0x39')]&&(_0x1bdcd2[_0x434faa('0xe')]=_[_0x434faa('0x25')](_0x1bdcd2['where'],{[Op['or']]:_[_0x434faa('0x14')](_0x1bdcd2[_0x434faa('0xb')],function(_0x3a146c){const _0x4fc808=_0x434faa,_0x5e11d3={};return _0x5e11d3[_0x3a146c]={[Op['like']]:'%'+_0x21fe79[_0x4fc808('0x59')][_0x4fc808('0x39')]+'%'},_0x5e11d3;})})),_0x1bdcd2=_['merge']({},_0x1bdcd2,_0x21fe79[_0x434faa('0x50')]),_0x4c9300['getAgents'](_0x1bdcd2);})[_0x3e61ca('0x68')](function(_0x396294){const _0x89c9bb=_0x3e61ca;if(_0x396294)return _0x397d52=_0x396294[_0x89c9bb('0x47')],typeof _0x21fe79['query']['nolimit']==='undefined'&&(_0x1bdcd2[_0x89c9bb('0x34')]=qs[_0x89c9bb('0x34')](_0x21fe79[_0x89c9bb('0x59')]['limit']),_0x1bdcd2[_0x89c9bb('0x23')]=qs['offset'](_0x21fe79[_0x89c9bb('0x59')][_0x89c9bb('0x23')])),_0x4c9300['getAgents'](_0x1bdcd2);})[_0x3e61ca('0x68')](function(_0x3bce5c){if(_0x3bce5c)return _0x3bce5c?{'count':_0x397d52,'rows':_0x3bce5c}:null;})[_0x3e61ca('0x68')](respondWithResult(_0x571016,null))[_0x3e61ca('0x3b')](handleError(_0x571016,null));}; \ No newline at end of file +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 diff --git a/server/api/whatsappQueue/whatsappQueue.events.js b/server/api/whatsappQueue/whatsappQueue.events.js index 1e970bd..aaf7ee3 100644 --- a/server/api/whatsappQueue/whatsappQueue.events.js +++ b/server/api/whatsappQueue/whatsappQueue.events.js @@ -1 +1 @@ -const a809_0x5112=['exports','update','emit','remove','addHook','WhatsappQueue'];(function(_0x549909,_0x511227){const _0x5ad3fa=function(_0x21781b){while(--_0x21781b){_0x549909['push'](_0x549909['shift']());}};_0x5ad3fa(++_0x511227);}(a809_0x5112,0xc6));const a809_0x5ad3=function(_0x549909,_0x511227){_0x549909=_0x549909-0x0;let _0x5ad3fa=a809_0x5112[_0x549909];return _0x5ad3fa;};const _0x7987af=a809_0x5ad3;'use strict';const EventEmitter=require('events'),WhatsappQueue=require('../../mysqldb')['db'][_0x7987af('0x5')],WhatsappQueueEvents=new EventEmitter();WhatsappQueueEvents['setMaxListeners'](0x0);const events={'afterCreate':'save','afterUpdate':_0x7987af('0x1'),'afterDestroy':_0x7987af('0x3')};function emitEvent(_0x21781b){return function(_0x42e43a){const _0x40cd01=a809_0x5ad3;WhatsappQueueEvents[_0x40cd01('0x2')](_0x21781b+':'+_0x42e43a['id'],_0x42e43a),WhatsappQueueEvents[_0x40cd01('0x2')](_0x21781b,_0x42e43a);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];WhatsappQueue[_0x7987af('0x4')](e,emitEvent(event));}}module[_0x7987af('0x0')]=WhatsappQueueEvents; \ No newline at end of file +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 diff --git a/server/api/whatsappQueue/whatsappQueue.model.js b/server/api/whatsappQueue/whatsappQueue.model.js index b769947..215b1a9 100644 --- a/server/api/whatsappQueue/whatsappQueue.model.js +++ b/server/api/whatsappQueue/whatsappQueue.model.js @@ -1 +1 @@ -const a810_0x26ca=['exports','define','WhatsappQueue','whatsapp_queues','./whatsappQueue.attributes'];(function(_0x543106,_0x26ca74){const _0x58216b=function(_0x9385a4){while(--_0x9385a4){_0x543106['push'](_0x543106['shift']());}};_0x58216b(++_0x26ca74);}(a810_0x26ca,0x1a0));const a810_0x5821=function(_0x543106,_0x26ca74){_0x543106=_0x543106-0x0;let _0x58216b=a810_0x26ca[_0x543106];return _0x58216b;};const _0x50ca22=a810_0x5821;'use strict';const attributes=require(_0x50ca22('0x3'));module[_0x50ca22('0x4')]=function(_0x9385a4){const _0x481658=_0x50ca22,_0x136ff6=_0x9385a4[_0x481658('0x0')](_0x481658('0x1'),attributes,{'tableName':_0x481658('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x136ff6;}; \ No newline at end of file +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 diff --git a/server/api/whatsappQueue/whatsappQueue.rpc.js b/server/api/whatsappQueue/whatsappQueue.rpc.js index 79aa4a9..7700180 100644 --- a/server/api/whatsappQueue/whatsappQueue.rpc.js +++ b/server/api/whatsappQueue/whatsappQueue.rpc.js @@ -1 +1 @@ -const a811_0x5276=['./whatsappQueue.socket','info','ShowWhatsappQueue','then','include','options','map','lodash','stringify','../../mysqldb','limit','rpc','GetWhatsappQueue','catch','attributes','WhatsappQueue','../../config/logger','raw','message','where','register','../../rediscache','error','model','debug'];(function(_0x311b07,_0x5276ca){const _0x537bec=function(_0x490b74){while(--_0x490b74){_0x311b07['push'](_0x311b07['shift']());}};_0x537bec(++_0x5276ca);}(a811_0x5276,0x1e7));const a811_0x537b=function(_0x311b07,_0x5276ca){_0x311b07=_0x311b07-0x0;let _0x537bec=a811_0x5276[_0x311b07];return _0x537bec;};const _0xe890ce=a811_0x537b;'use strict';const _=require(_0xe890ce('0x14')),db=require(_0xe890ce('0x16'))['db'],logger=require(_0xe890ce('0x4'))(_0xe890ce('0x18')),{getSocket}=require(_0xe890ce('0x9')),socket=getSocket();require(_0xe890ce('0xd'))[_0xe890ce('0x8')](socket),exports[_0xe890ce('0x0')]=function(_0x490b74){const _0x2dd041=this;return new Promise(function(_0x1bf60b,_0x1dc031){const _0x58ce04=a811_0x537b;return db[_0x58ce04('0x3')]['findAll']({'raw':_0x490b74[_0x58ce04('0x12')]?_0x490b74[_0x58ce04('0x12')][_0x58ce04('0x5')]===undefined?!![]:![]:!![],'where':_0x490b74[_0x58ce04('0x12')]?_0x490b74['options']['where']||null:null,'attributes':_0x490b74[_0x58ce04('0x12')]?_0x490b74['options'][_0x58ce04('0x2')]||null:null,'limit':_0x490b74['options']?_0x490b74[_0x58ce04('0x12')][_0x58ce04('0x17')]||null:null,'include':_0x490b74[_0x58ce04('0x12')]?_0x490b74[_0x58ce04('0x12')][_0x58ce04('0x11')]?_[_0x58ce04('0x13')](_0x490b74[_0x58ce04('0x12')]['include'],function(_0x2dc9ca){const _0xc88c4e=_0x58ce04;return{'model':db[_0x2dc9ca['model']],'as':_0x2dc9ca['as'],'attributes':_0x2dc9ca['attributes'],'include':_0x2dc9ca[_0xc88c4e('0x11')]?_[_0xc88c4e('0x13')](_0x2dc9ca[_0xc88c4e('0x11')],function(_0x17e2c4){const _0x333654=_0xc88c4e;return{'model':db[_0x17e2c4[_0x333654('0xb')]],'as':_0x17e2c4['as'],'attributes':_0x17e2c4[_0x333654('0x2')],'include':_0x17e2c4[_0x333654('0x11')]?_['map'](_0x17e2c4[_0x333654('0x11')],function(_0x47d6a7){const _0x234675=_0x333654;return{'model':db[_0x47d6a7['model']],'as':_0x47d6a7['as'],'attributes':_0x47d6a7[_0x234675('0x2')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x49dea1){const _0x48a48b=_0x58ce04;logger[_0x48a48b('0xe')]('GetWhatsappQueue',_0x490b74),logger['debug'](_0x48a48b('0x0'),_0x490b74,JSON['stringify'](_0x49dea1)),_0x1bf60b(_0x49dea1);})[_0x58ce04('0x1')](function(_0x4f0aca){const _0x526904=_0x58ce04;logger[_0x526904('0xa')](_0x526904('0x0'),_0x4f0aca[_0x526904('0x6')],_0x490b74),_0x1dc031(_0x2dd041['error'](0x1f4,_0x4f0aca[_0x526904('0x6')]));});});},exports[_0xe890ce('0xf')]=function(_0x95dabb){const _0x2163ed=this;return new Promise(function(_0x2bbe47,_0x577c82){const _0x1e1075=a811_0x537b;return db[_0x1e1075('0x3')]['findOne']({'raw':_0x95dabb[_0x1e1075('0x12')]?_0x95dabb['options'][_0x1e1075('0x5')]===undefined?!![]:![]:!![],'where':_0x95dabb['options']?_0x95dabb['options'][_0x1e1075('0x7')]||null:null,'attributes':_0x95dabb[_0x1e1075('0x12')]?_0x95dabb[_0x1e1075('0x12')]['attributes']||null:null,'include':_0x95dabb['options']?_0x95dabb[_0x1e1075('0x12')][_0x1e1075('0x11')]?_[_0x1e1075('0x13')](_0x95dabb[_0x1e1075('0x12')][_0x1e1075('0x11')],function(_0x549c29){const _0x1f2d73=_0x1e1075;return{'model':db[_0x549c29[_0x1f2d73('0xb')]],'as':_0x549c29['as'],'attributes':_0x549c29['attributes'],'include':_0x549c29[_0x1f2d73('0x11')]?_[_0x1f2d73('0x13')](_0x549c29['include'],function(_0x376cb9){const _0x1995e4=_0x1f2d73;return{'model':db[_0x376cb9['model']],'as':_0x376cb9['as'],'attributes':_0x376cb9[_0x1995e4('0x2')],'include':_0x376cb9['include']?_[_0x1995e4('0x13')](_0x376cb9['include'],function(_0x2959a5){const _0x26e9cf=_0x1995e4;return{'model':db[_0x2959a5[_0x26e9cf('0xb')]],'as':_0x2959a5['as'],'attributes':_0x2959a5[_0x26e9cf('0x2')]};}):[]};}):[]};}):[]:[]})[_0x1e1075('0x10')](function(_0x224da5){const _0x20dd20=_0x1e1075;logger['info'](_0x20dd20('0xf'),_0x95dabb),logger[_0x20dd20('0xc')](_0x20dd20('0xf'),_0x95dabb,JSON[_0x20dd20('0x15')](_0x224da5)),_0x2bbe47(_0x224da5);})[_0x1e1075('0x1')](function(_0x1b4f85){const _0x4b706e=_0x1e1075;logger[_0x4b706e('0xa')](_0x4b706e('0xf'),_0x1b4f85[_0x4b706e('0x6')],_0x95dabb),_0x577c82(_0x2163ed[_0x4b706e('0xa')](0x1f4,_0x1b4f85[_0x4b706e('0x6')]));});});}; \ No newline at end of file +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 diff --git a/server/api/whatsappQueue/whatsappQueue.socket.js b/server/api/whatsappQueue/whatsappQueue.socket.js index 601a511..eb30b04 100644 --- a/server/api/whatsappQueue/whatsappQueue.socket.js +++ b/server/api/whatsappQueue/whatsappQueue.socket.js @@ -1 +1 @@ -const a812_0x5425=['emit','length','remove','whatsappQueue:'];(function(_0x3cebeb,_0x5425b9){const _0x126d62=function(_0x4a2ba0){while(--_0x4a2ba0){_0x3cebeb['push'](_0x3cebeb['shift']());}};_0x126d62(++_0x5425b9);}(a812_0x5425,0xa2));const a812_0x126d=function(_0x3cebeb,_0x5425b9){_0x3cebeb=_0x3cebeb-0x0;let _0x126d62=a812_0x5425[_0x3cebeb];return _0x126d62;};const _0x4dbabe=a812_0x126d;'use strict';const WhatsappQueueEvents=require('./whatsappQueue.events'),events=['save',_0x4dbabe('0x0'),'update'];function createListener(_0x4a2ba0,_0x48416a){return function(_0x2d98eb){const _0x5e4e38=a812_0x126d;_0x48416a[_0x5e4e38('0x2')](_0x4a2ba0,_0x2d98eb);};}exports['register']=function(_0x394092){const _0x591704=_0x4dbabe;for(let _0x4529dd=0x0,_0x41a6af=events[_0x591704('0x3')];_0x4529dd<_0x41a6af;_0x4529dd++){const _0x2a99c1=events[_0x4529dd],_0x35c70a=createListener(_0x591704('0x1')+_0x2a99c1,_0x394092);WhatsappQueueEvents['on'](_0x2a99c1,_0x35c70a);}}; \ No newline at end of file +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 diff --git a/server/api/whatsappQueueReport/index.js b/server/api/whatsappQueueReport/index.js index 659351c..243b6c3 100644 --- a/server/api/whatsappQueueReport/index.js +++ b/server/api/whatsappQueueReport/index.js @@ -1 +1 @@ -const a813_0x7c63=['express','exports','Router','describe','index','../../components/auth/service','show','update','/:id','isAuthenticated','put','get','create'];(function(_0x102225,_0x7c63b){const _0x38cbeb=function(_0x148ac4){while(--_0x148ac4){_0x102225['push'](_0x102225['shift']());}};_0x38cbeb(++_0x7c63b);}(a813_0x7c63,0x12e));const a813_0x38cb=function(_0x102225,_0x7c63b){_0x102225=_0x102225-0x0;let _0x38cbeb=a813_0x7c63[_0x102225];return _0x38cbeb;};const _0x374d5f=a813_0x38cb;'use strict';const express=require(_0x374d5f('0xa')),router=express[_0x374d5f('0xc')](),auth=require(_0x374d5f('0x2')),controller=require('./whatsappQueueReport.controller');router[_0x374d5f('0x8')]('/',auth['isAuthenticated'](),controller[_0x374d5f('0x1')]),router['get']('/describe',auth[_0x374d5f('0x6')](),controller[_0x374d5f('0x0')]),router[_0x374d5f('0x8')](_0x374d5f('0x5'),auth[_0x374d5f('0x6')](),controller[_0x374d5f('0x3')]),router['post']('/',auth['isAuthenticated'](),controller[_0x374d5f('0x9')]),router[_0x374d5f('0x7')](_0x374d5f('0x5'),auth[_0x374d5f('0x6')](),controller[_0x374d5f('0x4')]),router['delete']('/:id',auth[_0x374d5f('0x6')](),controller['destroy']),module[_0x374d5f('0xb')]=router; \ No newline at end of file +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 diff --git a/server/api/whatsappQueueReport/whatsappQueueReport.attributes.js b/server/api/whatsappQueueReport/whatsappQueueReport.attributes.js index aed2d69..e439593 100644 --- a/server/api/whatsappQueueReport/whatsappQueueReport.attributes.js +++ b/server/api/whatsappQueueReport/whatsappQueueReport.attributes.js @@ -1 +1 @@ -const a814_0x4904=['DATE','STRING','exports'];(function(_0x40bf91,_0x490467){const _0x41d46a=function(_0x568753){while(--_0x568753){_0x40bf91['push'](_0x40bf91['shift']());}};_0x41d46a(++_0x490467);}(a814_0x4904,0x9e));const a814_0x41d4=function(_0x40bf91,_0x490467){_0x40bf91=_0x40bf91-0x0;let _0x41d46a=a814_0x4904[_0x40bf91];return _0x41d46a;};const _0x251787=a814_0x41d4;'use strict';const Sequelize=require('sequelize');module[_0x251787('0x0')]={'uniqueid':{'type':Sequelize['STRING'],'allowNull':![]},'from':{'type':Sequelize['STRING']},'joinAt':{'type':Sequelize[_0x251787('0x1')]},'leaveAt':{'type':Sequelize[_0x251787('0x1')]},'acceptAt':{'type':Sequelize[_0x251787('0x1')]},'exitAt':{'type':Sequelize[_0x251787('0x1')]},'reason':{'type':Sequelize[_0x251787('0x2')]}}; \ No newline at end of file +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 diff --git a/server/api/whatsappQueueReport/whatsappQueueReport.controller.js b/server/api/whatsappQueueReport/whatsappQueueReport.controller.js index 806b19e..7ffb606 100644 --- a/server/api/whatsappQueueReport/whatsappQueueReport.controller.js +++ b/server/api/whatsappQueueReport/whatsappQueueReport.controller.js @@ -1 +1 @@ -const a815_0x224c=['json','stack','show','VIRTUAL','query','../../components/parsers/qs','body','where','update','length','like','options','WhatsappQueueReport','map','include','filter','name','rawAttributes','status','error','api','model','key','fields','sendStatus','../../config/logger','end','count','describe','sort','create','filters','sequelize','findOne','order','attributes','fieldName','offset','type','lodash','nolimit','keys','pick','params','includeAll','then','findAll','set','index','limit','merge','rows','undefined','send','intersection','catch'];(function(_0x19855c,_0x224caf){const _0xe836e7=function(_0x1cdf59){while(--_0x1cdf59){_0x19855c['push'](_0x19855c['shift']());}};_0xe836e7(++_0x224caf);}(a815_0x224c,0x97));const a815_0xe836=function(_0x19855c,_0x224caf){_0x19855c=_0x19855c-0x0;let _0xe836e7=a815_0x224c[_0x19855c];return _0xe836e7;};const _0xf3b525=a815_0xe836;'use strict';const _=require(_0xf3b525('0x0')),qs=require(_0xf3b525('0x16')),logger=require(_0xf3b525('0x2a'))(_0xf3b525('0x25')),db=require('../../mysqldb')['db'],{Op}=require(_0xf3b525('0x31'));function respondWithResult(_0x1cdf59,_0x557450){return _0x557450=_0x557450||0xc8,function(_0x492ec6){const _0x520d21=a815_0xe836;if(_0x492ec6)return _0x1cdf59['status'](_0x557450)[_0x520d21('0x11')](_0x492ec6);};}function respondWithFilteredResult(_0x2631c4,_0x1bf988){return function(_0x280fd0){const _0x48d488=a815_0xe836;if(_0x280fd0){const _0x460000=_0x280fd0[_0x48d488('0x2c')],_0x2f126a=_0x1bf988[_0x48d488('0x36')];let _0x469f65=_0x1bf988['offset']+_0x1bf988[_0x48d488('0xa')],_0x151055;return _0x469f65>=_0x460000?(_0x469f65=_0x460000,_0x151055=0xc8):_0x151055=0xce,_0x2631c4['status'](_0x151055),_0x2631c4[_0x48d488('0x8')]('Content-Range',_0x2f126a+'-'+_0x469f65+'/'+_0x460000)[_0x48d488('0x11')](_0x280fd0);}return null;};}function saveUpdates(_0x1e1605){return function(_0x3ed6dd){const _0x29eca4=a815_0xe836;if(_0x3ed6dd)return _0x3ed6dd[_0x29eca4('0x19')](_0x1e1605)[_0x29eca4('0x6')](function(_0x124893){return _0x124893;});return null;};}function removeEntity(_0xe9ab3f){return function(_0x1229d4){const _0x2d45ee=a815_0xe836;if(_0x1229d4)return _0x1229d4['destroy']()[_0x2d45ee('0x6')](function(){const _0x2e7897=_0x2d45ee;_0xe9ab3f['status'](0xcc)[_0x2e7897('0x2b')]();});};}function handleEntityNotFound(_0x14c394){return function(_0x4216d0){const _0x545278=a815_0xe836;return!_0x4216d0&&_0x14c394[_0x545278('0x29')](0x194),_0x4216d0;};}function handleError(_0x1196de,_0x24ccdf){return _0x24ccdf=_0x24ccdf||0x1f4,function(_0x1b6e78){const _0x106742=a815_0xe836;logger[_0x106742('0x24')](_0x1b6e78[_0x106742('0x12')]),_0x1b6e78[_0x106742('0x21')]&&delete _0x1b6e78['name'],_0x1196de[_0x106742('0x23')](_0x24ccdf)[_0x106742('0xe')](_0x1b6e78);};}exports[_0xf3b525('0x9')]=function(_0xd98f81,_0x5066c6){const _0x4ad94d=_0xf3b525;let _0x4d4e14={};const _0x1862c9={},_0x75009e={'count':0x0,'rows':[]},_0x1f13bc=_['map'](db['WhatsappQueueReport'][_0x4ad94d('0x22')],function(_0x297e24){const _0x254e2c=_0x4ad94d;return{'name':_0x297e24[_0x254e2c('0x35')],'type':_0x297e24[_0x254e2c('0x37')][_0x254e2c('0x27')]};});_0x1862c9['model']=_[_0x4ad94d('0x1e')](_0x1f13bc,_0x4ad94d('0x21')),_0x1862c9[_0x4ad94d('0x15')]=_[_0x4ad94d('0x2')](_0xd98f81[_0x4ad94d('0x15')]),_0x1862c9[_0x4ad94d('0x30')]=_[_0x4ad94d('0xf')](_0x1862c9[_0x4ad94d('0x26')],_0x1862c9[_0x4ad94d('0x15')]),_0x4d4e14[_0x4ad94d('0x34')]=_[_0x4ad94d('0xf')](_0x1862c9['model'],qs[_0x4ad94d('0x28')](_0xd98f81[_0x4ad94d('0x15')]['fields'])),_0x4d4e14['attributes']=_0x4d4e14[_0x4ad94d('0x34')][_0x4ad94d('0x1a')]?_0x4d4e14[_0x4ad94d('0x34')]:_0x1862c9[_0x4ad94d('0x26')];typeof _0xd98f81[_0x4ad94d('0x15')][_0x4ad94d('0x1')]===_0x4ad94d('0xd')&&(_0x4d4e14[_0x4ad94d('0xa')]=qs[_0x4ad94d('0xa')](_0xd98f81[_0x4ad94d('0x15')][_0x4ad94d('0xa')]),_0x4d4e14['offset']=qs[_0x4ad94d('0x36')](_0xd98f81['query']['offset']));_0x4d4e14[_0x4ad94d('0x33')]=qs[_0x4ad94d('0x2e')](_0xd98f81[_0x4ad94d('0x15')][_0x4ad94d('0x2e')]),_0x4d4e14[_0x4ad94d('0x18')]=qs[_0x4ad94d('0x30')](_[_0x4ad94d('0x3')](_0xd98f81[_0x4ad94d('0x15')],_0x1862c9[_0x4ad94d('0x30')]),_0x1f13bc);_0xd98f81[_0x4ad94d('0x15')][_0x4ad94d('0x20')]&&(_0x4d4e14[_0x4ad94d('0x18')]=_[_0x4ad94d('0xb')](_0x4d4e14[_0x4ad94d('0x18')],{[Op['or']]:_['map'](_0x1f13bc,function(_0x873e96){const _0x3d69c4=_0x4ad94d;if(_0x873e96[_0x3d69c4('0x37')]!==_0x3d69c4('0x14')){const _0x59c6c0={};return _0x59c6c0[_0x873e96[_0x3d69c4('0x21')]]={[Op[_0x3d69c4('0x1b')]]:'%'+_0xd98f81[_0x3d69c4('0x15')]['filter']+'%'},_0x59c6c0;}})}));_0x4d4e14=_[_0x4ad94d('0xb')]({},_0x4d4e14,_0xd98f81[_0x4ad94d('0x1c')]);const _0x21569d={'where':_0x4d4e14['where']};return db[_0x4ad94d('0x1d')][_0x4ad94d('0x2c')](_0x21569d)[_0x4ad94d('0x6')](function(_0xd5a795){const _0x3c2306=_0x4ad94d;return _0x75009e[_0x3c2306('0x2c')]=_0xd5a795,_0xd98f81[_0x3c2306('0x15')][_0x3c2306('0x5')]&&(_0x4d4e14['include']=[{'all':!![]}]),db[_0x3c2306('0x1d')][_0x3c2306('0x7')](_0x4d4e14);})['then'](function(_0x3028aa){const _0x18d1a6=_0x4ad94d;return _0x75009e[_0x18d1a6('0xc')]=_0x3028aa,_0x75009e;})[_0x4ad94d('0x6')](respondWithFilteredResult(_0x5066c6,_0x4d4e14))[_0x4ad94d('0x10')](handleError(_0x5066c6,null));},exports[_0xf3b525('0x13')]=function(_0x59a773,_0x4741a2){const _0x5593b1=_0xf3b525;let _0x34af25={'raw':!![],'where':{'id':_0x59a773['params']['id']}};const _0x2e0d68={};return _0x2e0d68['model']=_[_0x5593b1('0x2')](db[_0x5593b1('0x1d')][_0x5593b1('0x22')]),_0x2e0d68['query']=_['keys'](_0x59a773[_0x5593b1('0x15')]),_0x2e0d68[_0x5593b1('0x30')]=_[_0x5593b1('0xf')](_0x2e0d68[_0x5593b1('0x26')],_0x2e0d68[_0x5593b1('0x15')]),_0x34af25[_0x5593b1('0x34')]=_['intersection'](_0x2e0d68['model'],qs[_0x5593b1('0x28')](_0x59a773['query'][_0x5593b1('0x28')])),_0x34af25[_0x5593b1('0x34')]=_0x34af25[_0x5593b1('0x34')]['length']?_0x34af25['attributes']:_0x2e0d68[_0x5593b1('0x26')],_0x59a773[_0x5593b1('0x15')]['includeAll']&&(_0x34af25[_0x5593b1('0x1f')]=[{'all':!![]}]),_0x34af25=_[_0x5593b1('0xb')]({},_0x34af25,_0x59a773[_0x5593b1('0x1c')]),db['WhatsappQueueReport'][_0x5593b1('0x32')](_0x34af25)[_0x5593b1('0x6')](handleEntityNotFound(_0x4741a2,null))[_0x5593b1('0x6')](respondWithResult(_0x4741a2,null))['catch'](handleError(_0x4741a2,null));},exports['create']=function(_0xa44ebf,_0x142824){const _0x2dddc9=_0xf3b525;return db['WhatsappQueueReport'][_0x2dddc9('0x2f')](_0xa44ebf[_0x2dddc9('0x17')],{})[_0x2dddc9('0x6')](respondWithResult(_0x142824,0xc9))[_0x2dddc9('0x10')](handleError(_0x142824,null));},exports[_0xf3b525('0x19')]=function(_0x109299,_0x4952a9){const _0x24c7f7=_0xf3b525;return _0x109299[_0x24c7f7('0x17')]['id']&&delete _0x109299[_0x24c7f7('0x17')]['id'],db[_0x24c7f7('0x1d')]['findOne']({'where':{'id':_0x109299[_0x24c7f7('0x4')]['id']}})[_0x24c7f7('0x6')](handleEntityNotFound(_0x4952a9,null))[_0x24c7f7('0x6')](saveUpdates(_0x109299['body'],null))[_0x24c7f7('0x6')](respondWithResult(_0x4952a9,null))[_0x24c7f7('0x10')](handleError(_0x4952a9,null));},exports['destroy']=function(_0x4c913c,_0x2a868b){const _0x5735aa=_0xf3b525;return db['WhatsappQueueReport'][_0x5735aa('0x32')]({'where':{'id':_0x4c913c[_0x5735aa('0x4')]['id']}})[_0x5735aa('0x6')](handleEntityNotFound(_0x2a868b,null))[_0x5735aa('0x6')](removeEntity(_0x2a868b,null))[_0x5735aa('0x10')](handleError(_0x2a868b,null));},exports[_0xf3b525('0x2d')]=function(_0x5c002d,_0x35c5d1){const _0x577811=_0xf3b525;return db[_0x577811('0x1d')][_0x577811('0x2d')]()[_0x577811('0x6')](respondWithResult(_0x35c5d1,null))[_0x577811('0x10')](handleError(_0x35c5d1,null));}; \ No newline at end of file +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 diff --git a/server/api/whatsappQueueReport/whatsappQueueReport.model.js b/server/api/whatsappQueueReport/whatsappQueueReport.model.js index 6e6d47e..dff04d4 100644 --- a/server/api/whatsappQueueReport/whatsappQueueReport.model.js +++ b/server/api/whatsappQueueReport/whatsappQueueReport.model.js @@ -1 +1 @@ -const a816_0x3593=['exports','./whatsappQueueReport.attributes','report_whatsapp_queue','uniqueid'];(function(_0x31d8b8,_0x3593a9){const _0x2252f9=function(_0x2181d2){while(--_0x2181d2){_0x31d8b8['push'](_0x31d8b8['shift']());}};_0x2252f9(++_0x3593a9);}(a816_0x3593,0x129));const a816_0x2252=function(_0x31d8b8,_0x3593a9){_0x31d8b8=_0x31d8b8-0x0;let _0x2252f9=a816_0x3593[_0x31d8b8];return _0x2252f9;};const _0x3f031c=a816_0x2252;'use strict';const attributes=require(_0x3f031c('0x0'));module[_0x3f031c('0x3')]=function(_0x2181d2){const _0x2d9088=_0x3f031c,_0x5ccfc3=_0x2181d2['define']('WhatsappQueueReport',attributes,{'tableName':_0x2d9088('0x1'),'paranoid':![],'indexes':[{'name':_0x2d9088('0x2'),'fields':[_0x2d9088('0x2')]}],'timestamps':!![]});return _0x5ccfc3;}; \ No newline at end of file +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 diff --git a/server/api/whatsappQueueReport/whatsappQueueReport.rpc.js b/server/api/whatsappQueueReport/whatsappQueueReport.rpc.js index 7e2518a..4be8275 100644 --- a/server/api/whatsappQueueReport/whatsappQueueReport.rpc.js +++ b/server/api/whatsappQueueReport/whatsappQueueReport.rpc.js @@ -1 +1 @@ -const a817_0x3fba=['../../mysqldb','UpdateWhatsappQueueReport','WhatsappQueueReport','options','debug','limit','info','CreateWhatsappQueueReport','body','update','raw','create','where','../../config/logger','catch','message','error'];(function(_0x1a5b69,_0x3fbada){const _0x1eac9e=function(_0x33a8ed){while(--_0x33a8ed){_0x1a5b69['push'](_0x1a5b69['shift']());}};_0x1eac9e(++_0x3fbada);}(a817_0x3fba,0x163));const a817_0x1eac=function(_0x1a5b69,_0x3fbada){_0x1a5b69=_0x1a5b69-0x0;let _0x1eac9e=a817_0x3fba[_0x1a5b69];return _0x1eac9e;};const _0x13c427=a817_0x1eac;'use strict';const db=require(_0x13c427('0x2'))['db'],logger=require(_0x13c427('0xf'))('rpc');exports[_0x13c427('0x9')]=function(_0x33a8ed){const _0x497802=this;return new Promise(function(_0xce604,_0x14a9cb){const _0x2054b9=a817_0x1eac;return db[_0x2054b9('0x4')][_0x2054b9('0xd')](_0x33a8ed[_0x2054b9('0xa')],{'raw':_0x33a8ed['options']?_0x33a8ed[_0x2054b9('0x5')][_0x2054b9('0xc')]===undefined?!![]:![]:!![]})['then'](function(_0x2b31e8){const _0x242855=_0x2054b9;logger['info'](_0x242855('0x9'),_0x33a8ed),logger[_0x242855('0x6')](_0x242855('0x9'),_0x33a8ed,JSON['stringify'](_0x2b31e8)),_0xce604(_0x2b31e8);})[_0x2054b9('0x10')](function(_0x18a307){const _0x2973c0=_0x2054b9;logger[_0x2973c0('0x1')]('CreateWhatsappQueueReport',_0x18a307['message'],_0x33a8ed),_0x14a9cb(_0x497802[_0x2973c0('0x1')](0x1f4,_0x18a307[_0x2973c0('0x0')]));});});},exports[_0x13c427('0x3')]=function(_0x2fa26e){const _0x5b46a5=this;return new Promise(function(_0x144920,_0x3e9a21){const _0xa5bfc5=a817_0x1eac;return db[_0xa5bfc5('0x4')][_0xa5bfc5('0xb')](_0x2fa26e[_0xa5bfc5('0xa')],{'raw':_0x2fa26e[_0xa5bfc5('0x5')]?_0x2fa26e[_0xa5bfc5('0x5')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2fa26e[_0xa5bfc5('0x5')]?_0x2fa26e['options'][_0xa5bfc5('0xe')]||null:null,'attributes':_0x2fa26e[_0xa5bfc5('0x5')]?_0x2fa26e[_0xa5bfc5('0x5')]['attributes']||null:null,'limit':_0x2fa26e[_0xa5bfc5('0x5')]?_0x2fa26e[_0xa5bfc5('0x5')][_0xa5bfc5('0x7')]||null:null})['then'](function(_0x184a9c){const _0xcd61a4=_0xa5bfc5;logger[_0xcd61a4('0x8')]('UpdateWhatsappQueueReport',_0x2fa26e),logger['debug']('UpdateWhatsappQueueReport',_0x2fa26e,JSON['stringify'](_0x184a9c)),_0x144920(_0x184a9c);})[_0xa5bfc5('0x10')](function(_0x4399cf){const _0x24d377=_0xa5bfc5;logger[_0x24d377('0x1')](_0x24d377('0x3'),_0x4399cf[_0x24d377('0x0')],_0x2fa26e),_0x3e9a21(_0x5b46a5['error'](0x1f4,_0x4399cf[_0x24d377('0x0')]));});});}; \ No newline at end of file +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 diff --git a/server/api/whatsappTransferReport/index.js b/server/api/whatsappTransferReport/index.js index 15194e5..f3cde37 100644 --- a/server/api/whatsappTransferReport/index.js +++ b/server/api/whatsappTransferReport/index.js @@ -1 +1 @@ -const a818_0x54d0=['show','update','/:id','get','post','put','destroy','index','express','isAuthenticated','../../components/auth/service','exports','create','delete'];(function(_0x2e43fb,_0x54d08f){const _0x1563e6=function(_0xd0793b){while(--_0xd0793b){_0x2e43fb['push'](_0x2e43fb['shift']());}};_0x1563e6(++_0x54d08f);}(a818_0x54d0,0x16d));const a818_0x1563=function(_0x2e43fb,_0x54d08f){_0x2e43fb=_0x2e43fb-0x0;let _0x1563e6=a818_0x54d0[_0x2e43fb];return _0x1563e6;};const _0x5db0a4=a818_0x1563;'use strict';const express=require(_0x5db0a4('0x7')),router=express['Router'](),auth=require(_0x5db0a4('0x9')),controller=require('./whatsappTransferReport.controller');router[_0x5db0a4('0x2')]('/',auth['isAuthenticated'](),controller[_0x5db0a4('0x6')]),router['get']('/describe',auth[_0x5db0a4('0x8')](),controller['describe']),router[_0x5db0a4('0x2')](_0x5db0a4('0x1'),auth['isAuthenticated'](),controller[_0x5db0a4('0xd')]),router[_0x5db0a4('0x3')]('/',auth[_0x5db0a4('0x8')](),controller[_0x5db0a4('0xb')]),router[_0x5db0a4('0x4')](_0x5db0a4('0x1'),auth['isAuthenticated'](),controller[_0x5db0a4('0x0')]),router[_0x5db0a4('0xc')](_0x5db0a4('0x1'),auth[_0x5db0a4('0x8')](),controller[_0x5db0a4('0x5')]),module[_0x5db0a4('0xa')]=router; \ No newline at end of file +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 diff --git a/server/api/whatsappTransferReport/whatsappTransferReport.attributes.js b/server/api/whatsappTransferReport/whatsappTransferReport.attributes.js index 1cc04cf..0b9de76 100644 --- a/server/api/whatsappTransferReport/whatsappTransferReport.attributes.js +++ b/server/api/whatsappTransferReport/whatsappTransferReport.attributes.js @@ -1 +1 @@ -const a819_0x10d9=['queue','DATE','exports','agent','ENUM','sequelize','STRING'];(function(_0x3a9f46,_0x10d9af){const _0x9a7ed2=function(_0x1fc61f){while(--_0x1fc61f){_0x3a9f46['push'](_0x3a9f46['shift']());}};_0x9a7ed2(++_0x10d9af);}(a819_0x10d9,0x18b));const a819_0x9a7e=function(_0x3a9f46,_0x10d9af){_0x3a9f46=_0x3a9f46-0x0;let _0x9a7ed2=a819_0x10d9[_0x3a9f46];return _0x9a7ed2;};const _0x365cdc=a819_0x9a7e;'use strict';const Sequelize=require(_0x365cdc('0x2'));module[_0x365cdc('0x6')]={'uniqueid':{'type':Sequelize[_0x365cdc('0x3')],'allowNull':![]},'type':{'type':Sequelize[_0x365cdc('0x1')]('account',_0x365cdc('0x0'),_0x365cdc('0x4')),'allowNull':![]},'transferredAt':{'type':Sequelize[_0x365cdc('0x5')]}}; \ No newline at end of file +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 diff --git a/server/api/whatsappTransferReport/whatsappTransferReport.controller.js b/server/api/whatsappTransferReport/whatsappTransferReport.controller.js index 8aaf561..661ba85 100644 --- a/server/api/whatsappTransferReport/whatsappTransferReport.controller.js +++ b/server/api/whatsappTransferReport/whatsappTransferReport.controller.js @@ -1 +1 @@ -const a820_0x2b3f=['merge','json','status','lodash','options','rawAttributes','type','include','filters','update','includeAll','../../config/logger','show','WhatsappTransferReport','length','order','pick','error','sort','attributes','like','keys','findAll','then','set','Content-Range','destroy','count','../../components/parsers/qs','query','nolimit','limit','create','filter','sendStatus','intersection','offset','api','end','model','send','catch','stack','where','body','describe','map','index','VIRTUAL','params','fields','findOne','name'];(function(_0x109c82,_0x2b3f6a){const _0x109d14=function(_0x2dca17){while(--_0x2dca17){_0x109c82['push'](_0x109c82['shift']());}};_0x109d14(++_0x2b3f6a);}(a820_0x2b3f,0x1e7));const a820_0x109d=function(_0x109c82,_0x2b3f6a){_0x109c82=_0x109c82-0x0;let _0x109d14=a820_0x2b3f[_0x109c82];return _0x109d14;};const _0xe93375=a820_0x109d;'use strict';const _=require(_0xe93375('0x2e')),qs=require(_0xe93375('0x12')),logger=require(_0xe93375('0x1'))(_0xe93375('0x1b')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x2dca17,_0x2654ac){return _0x2654ac=_0x2654ac||0xc8,function(_0x40dc8b){const _0x3ebea6=a820_0x109d;if(_0x40dc8b)return _0x2dca17[_0x3ebea6('0x2d')](_0x2654ac)[_0x3ebea6('0x2c')](_0x40dc8b);};}function respondWithFilteredResult(_0x5277ec,_0x339336){return function(_0x2f6bd6){const _0x226312=a820_0x109d;if(_0x2f6bd6){const _0x26b986=_0x2f6bd6['count'],_0xd7457=_0x339336[_0x226312('0x1a')];let _0x1ca823=_0x339336['offset']+_0x339336[_0x226312('0x15')],_0x3f7d94;return _0x1ca823>=_0x26b986?(_0x1ca823=_0x26b986,_0x3f7d94=0xc8):_0x3f7d94=0xce,_0x5277ec['status'](_0x3f7d94),_0x5277ec[_0x226312('0xe')](_0x226312('0xf'),_0xd7457+'-'+_0x1ca823+'/'+_0x26b986)['json'](_0x2f6bd6);}return null;};}function saveUpdates(_0x596efc){return function(_0x328b48){if(_0x328b48)return _0x328b48['update'](_0x596efc)['then'](function(_0x1a3eb3){return _0x1a3eb3;});return null;};}function removeEntity(_0x3ce9fc){return function(_0x1c93d7){const _0x38ffee=a820_0x109d;if(_0x1c93d7)return _0x1c93d7[_0x38ffee('0x10')]()[_0x38ffee('0xd')](function(){const _0x22afde=_0x38ffee;_0x3ce9fc['status'](0xcc)[_0x22afde('0x1c')]();});};}function handleEntityNotFound(_0x4152cf){return function(_0x549007){const _0x401075=a820_0x109d;return!_0x549007&&_0x4152cf[_0x401075('0x18')](0x194),_0x549007;};}function handleError(_0x178ef7,_0x158945){return _0x158945=_0x158945||0x1f4,function(_0x5471df){const _0x25d629=a820_0x109d;logger[_0x25d629('0x7')](_0x5471df[_0x25d629('0x20')]),_0x5471df['name']&&delete _0x5471df[_0x25d629('0x2a')],_0x178ef7['status'](_0x158945)[_0x25d629('0x1e')](_0x5471df);};}exports[_0xe93375('0x25')]=function(_0x18b907,_0x424559){const _0x418024=_0xe93375;let _0x2fb7fa={};const _0x5140a2={},_0x7bebc9={'count':0x0,'rows':[]},_0x34f9bb=_[_0x418024('0x24')](db['WhatsappTransferReport'][_0x418024('0x30')],function(_0x28f909){return{'name':_0x28f909['fieldName'],'type':_0x28f909['type']['key']};});_0x5140a2[_0x418024('0x1d')]=_[_0x418024('0x24')](_0x34f9bb,_0x418024('0x2a')),_0x5140a2[_0x418024('0x13')]=_[_0x418024('0xb')](_0x18b907[_0x418024('0x13')]),_0x5140a2[_0x418024('0x33')]=_[_0x418024('0x19')](_0x5140a2[_0x418024('0x1d')],_0x5140a2['query']),_0x2fb7fa[_0x418024('0x9')]=_[_0x418024('0x19')](_0x5140a2[_0x418024('0x1d')],qs[_0x418024('0x28')](_0x18b907[_0x418024('0x13')][_0x418024('0x28')])),_0x2fb7fa['attributes']=_0x2fb7fa['attributes'][_0x418024('0x4')]?_0x2fb7fa['attributes']:_0x5140a2['model'];typeof _0x18b907[_0x418024('0x13')][_0x418024('0x14')]==='undefined'&&(_0x2fb7fa[_0x418024('0x15')]=qs[_0x418024('0x15')](_0x18b907[_0x418024('0x13')][_0x418024('0x15')]),_0x2fb7fa['offset']=qs[_0x418024('0x1a')](_0x18b907[_0x418024('0x13')]['offset']));_0x2fb7fa[_0x418024('0x5')]=qs[_0x418024('0x8')](_0x18b907[_0x418024('0x13')]['sort']),_0x2fb7fa['where']=qs[_0x418024('0x33')](_[_0x418024('0x6')](_0x18b907[_0x418024('0x13')],_0x5140a2[_0x418024('0x33')]),_0x34f9bb);_0x18b907['query']['filter']&&(_0x2fb7fa['where']=_[_0x418024('0x2b')](_0x2fb7fa[_0x418024('0x21')],{[Op['or']]:_[_0x418024('0x24')](_0x34f9bb,function(_0x2e83dc){const _0x178c84=_0x418024;if(_0x2e83dc[_0x178c84('0x31')]!==_0x178c84('0x26')){const _0x270cd2={};return _0x270cd2[_0x2e83dc[_0x178c84('0x2a')]]={[Op[_0x178c84('0xa')]]:'%'+_0x18b907[_0x178c84('0x13')][_0x178c84('0x17')]+'%'},_0x270cd2;}})}));_0x2fb7fa=_[_0x418024('0x2b')]({},_0x2fb7fa,_0x18b907[_0x418024('0x2f')]);const _0x554d89={'where':_0x2fb7fa['where']};return db[_0x418024('0x3')][_0x418024('0x11')](_0x554d89)[_0x418024('0xd')](function(_0x1d48f6){const _0x5bd801=_0x418024;return _0x7bebc9[_0x5bd801('0x11')]=_0x1d48f6,_0x18b907['query']['includeAll']&&(_0x2fb7fa['include']=[{'all':!![]}]),db[_0x5bd801('0x3')][_0x5bd801('0xc')](_0x2fb7fa);})[_0x418024('0xd')](function(_0x155a15){return _0x7bebc9['rows']=_0x155a15,_0x7bebc9;})[_0x418024('0xd')](respondWithFilteredResult(_0x424559,_0x2fb7fa))[_0x418024('0x1f')](handleError(_0x424559,null));},exports[_0xe93375('0x2')]=function(_0x3e3a08,_0x362808){const _0x2f002e=_0xe93375;let _0x3ceca2={'raw':!![],'where':{'id':_0x3e3a08[_0x2f002e('0x27')]['id']}};const _0x581470={};return _0x581470[_0x2f002e('0x1d')]=_[_0x2f002e('0xb')](db[_0x2f002e('0x3')][_0x2f002e('0x30')]),_0x581470[_0x2f002e('0x13')]=_['keys'](_0x3e3a08[_0x2f002e('0x13')]),_0x581470[_0x2f002e('0x33')]=_[_0x2f002e('0x19')](_0x581470[_0x2f002e('0x1d')],_0x581470['query']),_0x3ceca2['attributes']=_['intersection'](_0x581470['model'],qs[_0x2f002e('0x28')](_0x3e3a08[_0x2f002e('0x13')][_0x2f002e('0x28')])),_0x3ceca2[_0x2f002e('0x9')]=_0x3ceca2[_0x2f002e('0x9')][_0x2f002e('0x4')]?_0x3ceca2['attributes']:_0x581470[_0x2f002e('0x1d')],_0x3e3a08[_0x2f002e('0x13')][_0x2f002e('0x0')]&&(_0x3ceca2[_0x2f002e('0x32')]=[{'all':!![]}]),_0x3ceca2=_[_0x2f002e('0x2b')]({},_0x3ceca2,_0x3e3a08[_0x2f002e('0x2f')]),db[_0x2f002e('0x3')]['findOne'](_0x3ceca2)[_0x2f002e('0xd')](handleEntityNotFound(_0x362808,null))[_0x2f002e('0xd')](respondWithResult(_0x362808,null))[_0x2f002e('0x1f')](handleError(_0x362808,null));},exports[_0xe93375('0x16')]=function(_0x1970de,_0x94e4b7){const _0x2d1bfa=_0xe93375;return db[_0x2d1bfa('0x3')][_0x2d1bfa('0x16')](_0x1970de[_0x2d1bfa('0x22')],{})[_0x2d1bfa('0xd')](respondWithResult(_0x94e4b7,0xc9))[_0x2d1bfa('0x1f')](handleError(_0x94e4b7,null));},exports[_0xe93375('0x34')]=function(_0x189256,_0x472a9f){const _0x3632be=_0xe93375;return _0x189256['body']['id']&&delete _0x189256[_0x3632be('0x22')]['id'],db[_0x3632be('0x3')][_0x3632be('0x29')]({'where':{'id':_0x189256[_0x3632be('0x27')]['id']}})[_0x3632be('0xd')](handleEntityNotFound(_0x472a9f,null))[_0x3632be('0xd')](saveUpdates(_0x189256['body'],null))[_0x3632be('0xd')](respondWithResult(_0x472a9f,null))['catch'](handleError(_0x472a9f,null));},exports[_0xe93375('0x10')]=function(_0xcb7217,_0x2285cb){const _0x3f41ed=_0xe93375;return db['WhatsappTransferReport']['findOne']({'where':{'id':_0xcb7217[_0x3f41ed('0x27')]['id']}})[_0x3f41ed('0xd')](handleEntityNotFound(_0x2285cb,null))[_0x3f41ed('0xd')](removeEntity(_0x2285cb,null))[_0x3f41ed('0x1f')](handleError(_0x2285cb,null));},exports[_0xe93375('0x23')]=function(_0x126b02,_0xfd6613){const _0x27cf09=_0xe93375;return db[_0x27cf09('0x3')][_0x27cf09('0x23')]()[_0x27cf09('0xd')](respondWithResult(_0xfd6613,null))[_0x27cf09('0x1f')](handleError(_0xfd6613,null));}; \ No newline at end of file +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 diff --git a/server/api/whatsappTransferReport/whatsappTransferReport.model.js b/server/api/whatsappTransferReport/whatsappTransferReport.model.js index b68bb33..9511a81 100644 --- a/server/api/whatsappTransferReport/whatsappTransferReport.model.js +++ b/server/api/whatsappTransferReport/whatsappTransferReport.model.js @@ -1 +1 @@ -const a821_0x38ed=['report_whatsapp_transfer','define','exports','uniqueid','WhatsappTransferReport'];(function(_0x517d7b,_0x38ed97){const _0x43cac6=function(_0x4aac65){while(--_0x4aac65){_0x517d7b['push'](_0x517d7b['shift']());}};_0x43cac6(++_0x38ed97);}(a821_0x38ed,0x1ef));const a821_0x43ca=function(_0x517d7b,_0x38ed97){_0x517d7b=_0x517d7b-0x0;let _0x43cac6=a821_0x38ed[_0x517d7b];return _0x43cac6;};const _0x466b05=a821_0x43ca;'use strict';const attributes=require('./whatsappTransferReport.attributes');module[_0x466b05('0x2')]=function(_0x4aac65){const _0x47822b=_0x466b05,_0x2b2952=_0x4aac65[_0x47822b('0x1')](_0x47822b('0x4'),attributes,{'tableName':_0x47822b('0x0'),'paranoid':![],'indexes':[{'name':_0x47822b('0x3'),'fields':[_0x47822b('0x3')]}],'timestamps':!![]});return _0x2b2952;}; \ No newline at end of file +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 diff --git a/server/app.js b/server/app.js index cc794a7..b81c01b 100644 --- a/server/app.js +++ b/server/app.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -const a822_0x3014=['start','\x20signal!\x20\x20\x20\x20\x20\x20\x20\x20*****\x0a','error','kill','map','None','./config/logger','./config/schedule/chat','log','Development\x20Mode','debounce','Cannot\x20kill\x20','Server\x20failed\x20to\x20start\x20due\x20to\x20error:','Online\x20apps:','Starting\x20DB\x20seed...','Seed\x20DB\x20ok','info','isProduction','Offline\x20apps:','app','join','./config/schedule','lodash','./config/config.service','listen','exit','once','\x0a*****\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Caught\x20','sequelize','./mysqldb','SIGINT','./rediscache','sync','online','close','SIGUSR2','./config/license','filter','RPC\x20Error','debug','status','./config/schedule/transcribe','./config/pm2/config','pid','name','./config/environment','disconnect','xCally\x20ready!','./globals','delete'];(function(_0x342686,_0x30141b){const _0xd2546a=function(_0x534da8){while(--_0x534da8){_0x342686['push'](_0x342686['shift']());}};_0xd2546a(++_0x30141b);}(a822_0x3014,0x198));const a822_0xd254=function(_0x342686,_0x30141b){_0x342686=_0x342686-0x0;let _0xd2546a=a822_0x3014[_0x342686];return _0xd2546a;};const _0x3ac3b7=a822_0xd254;'use strict';require(_0x3ac3b7('0x28'));const mysqldb=require(_0x3ac3b7('0x15')),{RPC}=require('./rpc'),{getConfigService}=require(_0x3ac3b7('0xf')),config=require(_0x3ac3b7('0x25')),logger=require(_0x3ac3b7('0x30'))(_0x3ac3b7('0xb')),pm2=require('./config/pm2'),pm2Config=require(_0x3ac3b7('0x22')),schedule=require(_0x3ac3b7('0xd')),chat=require(_0x3ac3b7('0x31')),transcribe=require(_0x3ac3b7('0x21')),{default:seedDB}=require('./config/seedDB'),{default:checkLicense}=require(_0x3ac3b7('0x1c')),{getRedis}=require(_0x3ac3b7('0x17')),cs=getConfigService(),_=require(_0x3ac3b7('0xe'));function onRPCError(_0x534da8){const _0x131154=_0x3ac3b7;logger['error'](_0x131154('0x1e'),_0x534da8);}const rpc=new RPC(onRPCError),onServerExitHandler=_[_0x3ac3b7('0x2')](async function onServerExit(_0x25f0b2){const _0x4844c1=_0x3ac3b7;console[_0x4844c1('0x0')](_0x4844c1('0x13')+_0x25f0b2+_0x4844c1('0x2b')),await rpc[_0x4844c1('0x1a')]();try{for(const _0x4262be of pm2Config['apps']){try{await pm2[_0x4844c1('0x29')](_0x4262be[_0x4844c1('0x24')]);}catch(_0xdb9748){console[_0x4844c1('0x2c')](_0x4844c1('0x3')+_0x4262be[_0x4844c1('0x24')],_0xdb9748);}}console['log']('\x0a*****\x20\x20\x20\x20\x20\x20\x20Stopped\x20and\x20removed\x20all\x20subprocesses\x20\x20\x20\x20\x20\x20*****\x0a\x0a\x0a'),getRedis()[_0x4844c1('0x26')]();}catch(_0x59a3f4){console[_0x4844c1('0x2c')]('Error\x20on\x20server\x20exit',_0x59a3f4);}},0x7d0,{'leading':!![]});!cs[_0x3ac3b7('0x9')]&&process[_0x3ac3b7('0x12')](_0x3ac3b7('0x1b'),async function(){const _0xf67479=_0x3ac3b7;await onServerExitHandler('SIGUSR2'),process[_0xf67479('0x2d')](process[_0xf67479('0x23')],_0xf67479('0x1b'));});process['once']('SIGINT',async function(){const _0x3c45b3=_0x3ac3b7;await onServerExitHandler(_0x3c45b3('0x16')),process[_0x3c45b3('0x11')](0x0);});async function main(){const _0x4be93d=_0x3ac3b7;try{console['log']('xCally\x20Starting...\x20'+(cs['isProduction']?'':_0x4be93d('0x1'))),await mysqldb['db'][_0x4be93d('0x14')][_0x4be93d('0x18')]();config['seedDB']===!![]&&(console[_0x4be93d('0x1f')](_0x4be93d('0x6')),await seedDB(),console[_0x4be93d('0x1f')](_0x4be93d('0x7')));await checkLicense();const _0x2960ca=await rpc[_0x4be93d('0x10')]();logger['info'](_0x2960ca),await chat[_0x4be93d('0x2a')](),await schedule['start']();const _0x3a3104=await transcribe[_0x4be93d('0x2a')]();logger[_0x4be93d('0x8')](_0x3a3104);const _0x113ce2=await pm2[_0x4be93d('0x2a')](pm2Config);logger['info'](_0x4be93d('0x5'),_['map'](_[_0x4be93d('0x1d')](_0x113ce2,{'status':_0x4be93d('0x19')}),_0x4be93d('0x24'))[_0x4be93d('0xc')]()),logger[_0x4be93d('0x8')](_0x4be93d('0xa'),_[_0x4be93d('0x2e')](_[_0x4be93d('0x1d')](_0x113ce2,function(_0x4615e0){const _0x4aa160=_0x4be93d;return _0x4615e0[_0x4aa160('0x20')]!==_0x4aa160('0x19');}),_0x4be93d('0x24'))['join']()||_0x4be93d('0x2f')),console[_0x4be93d('0x0')](_0x4be93d('0x27'));}catch(_0x284b80){console[_0x4be93d('0x2c')](_0x284b80),logger[_0x4be93d('0x2c')](_0x4be93d('0x4'),_0x284b80);throw _0x284b80;}}main(); \ No newline at end of file +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 diff --git a/server/components/auth/service.js b/server/components/auth/service.js index d045100..f8c2355 100644 --- a/server/components/auth/service.js +++ b/server/components/auth/service.js @@ -1 +1 @@ -const a823_0x422b=['send','isEqual','unshift','encryptString','unmanaged','headers','authenticate','phoneBarAutoAnswerDelay','Forbidden.','getLicense','phoneBarEnableRecording','fullname','query','split','phoneBarPrefixRequired','Sequelize','basic-auth','Bearer','Wrong\x20credentials.','secrets','../encryptor','splice','../../config/environment','express-jwt','allowmessenger','session','params','crudPermissions','../../mysqldb','disposition','json','HS512','isAuthenticated','update','sign','promisify','lastPauseAt','pass','composable-middleware','util','verify','User\x20not\x20found.','Please\x20use\x20the\x20previous\x20API\x20access\x20key\x20to\x20generate\x20a\x20new\x20one','User\x20object\x20not\x20found.','pauseType','format','decryptString','passwordResetAt','API\x20access\x20key\x20is\x20not\x20valid\x20anymore','options','voicePause','/dashboards/general','closed','ValidationError','cookie','startsWith','phoneBarRemoteControl','use','floor','ChatInteraction','Unmanaged.','lodash','sub','test','randomBytes','status','faxPause','exports','Unknown\x20authorization\x20format','showWebBar','motion.token','getUuid','user','payload','hex','apiKeyIat','nonce','role','length','redirect','phoneBarExpires','Invalid\x20API\x20access\x20key','md5secret','interface','toLowerCase','isMiddleware','Basic','toString','It\x20looks\x20like\x20you\x20aren\x27t\x20logged\x20in,\x20please\x20try\x20again.','then','User','findOne','phoneBarEnableDtmfTone','HS256','phoneBarDnd','internal','now','name','userProfileId','settingsEnabled','authorization','catch','The\x20password\x20must\x20be\x20different\x20from\x20the\x20last\x20one.\x20Please\x20choose\x20another\x20one.','apiKeyNonce','apikey'];(function(_0x561efd,_0x422b52){const _0xff1ead=function(_0xc874b1){while(--_0xc874b1){_0x561efd['push'](_0x561efd['shift']());}};_0xff1ead(++_0x422b52);}(a823_0x422b,0xce));const a823_0xff1e=function(_0x561efd,_0x422b52){_0x561efd=_0x561efd-0x0;let _0xff1ead=a823_0x422b[_0x561efd];return _0xff1ead;};const _0xe8df43=a823_0xff1e;'use strict';const db=require(_0xe8df43('0x20'))['db'],config=require(_0xe8df43('0x1a')),hardwareConf=require('../../config/license/hardware'),licenseUtil=require('../../config/license/util'),encryptor=require(_0xe8df43('0x18')),util=require(_0xe8df43('0x2b')),_=require(_0xe8df43('0x41')),jwt=require('jsonwebtoken'),expressJwt=require(_0xe8df43('0x1b')),compose=require(_0xe8df43('0x2a')),basicAuth=require(_0xe8df43('0x14')),crypto=require('crypto'),validateJwt=expressJwt({'secret':config[_0xe8df43('0x17')][_0xe8df43('0x1d')],'algorithms':[_0xe8df43('0x61')]}),userAttributes=['id',_0xe8df43('0x51'),_0xe8df43('0xf'),_0xe8df43('0x65'),_0xe8df43('0x63'),'email','userpic','permissions',_0xe8df43('0x56'),_0xe8df43('0x36'),'chatPause','mailPause',_0xe8df43('0x46'),'smsPause','openchannelPause',_0xe8df43('0x30'),_0xe8df43('0x49'),'lastLoginAt',_0xe8df43('0x28'),_0xe8df43('0x1f'),_0xe8df43('0x1c'),_0xe8df43('0x33'),'alias','phoneBarAutoAnswer',_0xe8df43('0xb'),_0xe8df43('0x62'),_0xe8df43('0xe'),_0xe8df43('0x60'),'phoneBarEnableSettings',_0xe8df43('0x54'),_0xe8df43('0x12'),_0xe8df43('0x3c'),'phoneBarRemoteControlPort','hotdesk',_0xe8df43('0x57'),_0xe8df43('0x66'),_0xe8df43('0x67')];function isChatInteractionAuthorized(){const _0x12ac74=_0xe8df43;return this[_0x12ac74('0x24')](!![])[_0x12ac74('0x3d')](function(_0xc874b1,_0xb7dab6,_0x23d288){const _0x3cce41=_0x12ac74;if(_0xc874b1[_0x3cce41('0x4c')])_0x23d288();else return db[_0x3cce41('0x3f')][_0x3cce41('0x5f')]({'where':{'id':_0xc874b1[_0x3cce41('0x1e')]['id']},'attributes':['id',_0x3cce41('0x38'),_0x3cce41('0x21')],'raw':!![]})[_0x3cce41('0x5d')](function(_0x397763){const _0xd652ae=_0x3cce41;if(_0x397763&&_0x397763[_0xd652ae('0x38')])return _0xb7dab6[_0xd652ae('0x45')](_0x397763[_0xd652ae('0x21')]===_0xd652ae('0x8')?0x195:0x193)[_0xd652ae('0x22')]({'message':_0x397763['disposition']===_0xd652ae('0x8')?_0xd652ae('0x40'):_0xd652ae('0xc')});else _0x23d288();})[_0x3cce41('0x0')](function(_0x411b91){_0x23d288(_0x411b91);});});}function isAuthenticated(_0x392988){const _0x37ca4f=_0xe8df43;return compose()[_0x37ca4f('0x3d')](function(_0x175641,_0x36b606,_0x2e7fdf){const _0x19e1ae=_0x37ca4f;if(_0x175641[_0x19e1ae('0x9')][_0x19e1ae('0x68')]){if(_[_0x19e1ae('0x3b')](_0x175641[_0x19e1ae('0x9')][_0x19e1ae('0x68')],_0x19e1ae('0x5a'))){const _0x53fd22=basicAuth(_0x175641);db[_0x19e1ae('0x5e')][_0x19e1ae('0x5f')]({'where':{'name':_0x53fd22[_0x19e1ae('0x65')]}})['then'](function(_0x2adc0f){const _0x5c037c=_0x19e1ae;if(!_0x2adc0f||!_0x2adc0f[_0x5c037c('0xa')](_0x53fd22[_0x5c037c('0x29')]))return _0x36b606[_0x5c037c('0x45')](0x191)[_0x5c037c('0x22')]({'message':_0x5c037c('0x16')});_0x175641[_0x5c037c('0x4c')]={'id':_0x2adc0f['id']},_0x2e7fdf();})[_0x19e1ae('0x0')](function(_0x299cee){_0x2e7fdf(_0x299cee);});}else{if(_[_0x19e1ae('0x3b')](_0x175641[_0x19e1ae('0x9')][_0x19e1ae('0x68')],_0x19e1ae('0x15')))validateJwt(_0x175641,_0x36b606,_0x2e7fdf);else{if(_0x392988)_0x2e7fdf();else return _0x36b606[_0x19e1ae('0x45')](0x193)[_0x19e1ae('0x22')]({'message':'Unknown\x20authorization\x20format'});}}}else{if(_0x175641['query']['apikey'])try{const _0x1e901b={'audience':hardwareConf[_0x19e1ae('0x4b')](),'issuer':hardwareConf[_0x19e1ae('0x4b')]()};verifyJwt(_0x175641[_0x19e1ae('0x10')][_0x19e1ae('0x3')],_0x1e901b)[_0x19e1ae('0x5d')](function(_0xdf902e){const _0x11db1a=_0x19e1ae;return db[_0x11db1a('0x5e')][_0x11db1a('0x5f')]({'where':{'id':_0xdf902e[_0x11db1a('0x42')]}})['then'](function(_0x97c67a){const _0x305268=_0x11db1a;if(!_0x97c67a||!_[_0x305268('0x5')](_0x97c67a['apiKeyNonce'],_0xdf902e[_0x305268('0x50')]))return _0x36b606[_0x305268('0x45')](0x191)[_0x305268('0x22')]({'message':_0x305268('0x34')});_0x175641['user']={'id':_0x97c67a['id']},_0x2e7fdf();});})[_0x19e1ae('0x0')](function(){const _0x13e9f2=_0x19e1ae;return _0x36b606[_0x13e9f2('0x45')](0x191)['json']({'message':_0x13e9f2('0x55')});});}catch(_0xcf3673){_0x2e7fdf(_0xcf3673);}else{if(_0x392988)_0x2e7fdf();else return _0x36b606[_0x19e1ae('0x45')](0x193)[_0x19e1ae('0x22')]({'message':_0x19e1ae('0x48')});}}})[_0x37ca4f('0x3d')](function(_0x2237d6,_0x2b0f66,_0x9e0da8){const _0x3240e1=_0x37ca4f;if(_0x2237d6[_0x3240e1('0x4c')])db[_0x3240e1('0x5e')][_0x3240e1('0x5f')]({'where':{'id':_0x2237d6[_0x3240e1('0x4c')]['id']},'attributes':userAttributes})[_0x3240e1('0x5d')](function(_0x124494){const _0x4d97b0=_0x3240e1;if(!_0x124494)return _0x2b0f66[_0x4d97b0('0x45')](0x194)[_0x4d97b0('0x22')]({'message':_0x4d97b0('0x2d')});_0x2237d6[_0x4d97b0('0x4c')]=_0x124494,_0x9e0da8();})['catch'](function(_0x1df8b0){_0x9e0da8(_0x1df8b0);});else{if(_0x392988)_0x9e0da8();else return _0x2b0f66['status'](0x194)['json']({'message':_0x3240e1('0x2f')});}});}function canUpdate(){const _0x21536b=_0xe8df43;return compose()[_0x21536b('0x3d')](function(_0x172c03,_0x4797bb,_0x431660){const _0x25516d=_0x21536b;return licenseUtil[_0x25516d('0xd')]()[_0x25516d('0x5d')](function(_0x9dfc38){const _0x15e0f1=_0x25516d;if(_0x9dfc38[_0x15e0f1('0x25')])_0x431660();else return _0x4797bb[_0x15e0f1('0x45')](0x193)[_0x15e0f1('0x22')]({'message':'Forbidden'});})[_0x25516d('0x0')](function(_0x57c214){_0x431660(_0x57c214);});});}function isMiddleware(_0x3af972,_0x20e358,_0x5eb930){const _0x3d1063=_0xe8df43;return _0x3af972[_0x3d1063('0x59')]=!![],_0x5eb930();}function signToken(_0x1cba68){return signJwt(_0x1cba68);}function setTokenCookie(_0x5eaad9,_0x1870e6){const _0xdc9cd5=_0xe8df43;if(!_0x5eaad9['user'])return _0x1870e6[_0xdc9cd5('0x45')](0x194)['json']({'message':_0xdc9cd5('0x5c')});const _0x4ea8e5={'payload':{'id':_0x5eaad9[_0xdc9cd5('0x4c')]['id'],'role':_0x5eaad9[_0xdc9cd5('0x4c')][_0xdc9cd5('0x51')]},'options':{'expiresIn':0x15180}};return signJwt(_0x4ea8e5)[_0xdc9cd5('0x5d')](function(_0x1812fe){const _0x38d638=_0xdc9cd5;_0x1870e6[_0x38d638('0x3a')](_0x38d638('0x4a'),_0x1812fe),_0x1870e6[_0x38d638('0x53')](_0x38d638('0x37'));})[_0xdc9cd5('0x0')](function(_0x2da5f2){const _0xb6ef44=_0xdc9cd5;return _0x1870e6['status'](0x1f4)[_0xb6ef44('0x4')](_0x2da5f2);});}function retrieveApiKey(_0xcef498){const _0x398920=_0xe8df43;return _['isNil'](_0xcef498[_0x398920('0x2')])||_['isNil'](_0xcef498[_0x398920('0x4f')])?null:createJwt(_0xcef498);}function generateApiKey(_0x4272e6){const _0x2e6207=_0xe8df43;return _0x4272e6['apiKeyNonce']=generateNonce(),_0x4272e6[_0x2e6207('0x4f')]=generateIssuedAt(),createJwt(_0x4272e6);}function regenerateApiKey(_0x436c01,_0x2300da){const _0x56cdee=_0xe8df43,_0x26cfd3=_0x436c01[_0x56cdee('0x10')][_0x56cdee('0x3')];if(_0x26cfd3){const _0x50147f={'nonce':_0x2300da[_0x56cdee('0x2')],'iat':_0x2300da[_0x56cdee('0x4f')],'audience':hardwareConf[_0x56cdee('0x4b')](),'issuer':hardwareConf['getUuid']()};return verifyJwt(_0x26cfd3,_0x50147f)[_0x56cdee('0x5d')](function(){return generateApiKey(_0x2300da);});}else throw{'message':_0x56cdee('0x2e')};}function validatePasswordPattern(_0x2fcda9){const _0x38b434=_0xe8df43,_0x2eaf01=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/);if(!_0x2eaf01[_0x38b434('0x43')](_0x2fcda9))throw new db[(_0x38b434('0x13'))][(_0x38b434('0x39'))]('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(_0x376819,_0x423c2e,_0x24659f){const _0x56e487=_0xe8df43,_0x29ecb1=encryptor[_0x56e487('0x32')](_0x423c2e)[_0x56e487('0x11')](',');for(let _0x7cf690=0x0;_0x7cf690<_0x24659f;_0x7cf690++){if(!_0x29ecb1[_0x7cf690])break;if(_0x376819[_0x56e487('0x58')]()===_0x29ecb1[_0x7cf690][_0x56e487('0x58')]()){let _0x2a36e3=util[_0x56e487('0x31')]('The\x20password\x20must\x20be\x20different\x20from\x20the\x20previous\x20%d\x20passwords.\x20Please\x20choose\x20another\x20one.',_0x24659f);_0x24659f===0x1&&(_0x2a36e3=_0x56e487('0x1'));throw new db['Sequelize'][(_0x56e487('0x39'))](_0x2a36e3);}}return;}function updatePasswordsHistory(_0x2cab11,_0x5e2393){const _0x13c09e=_0xe8df43,_0x3be7f8=_0x5e2393?encryptor[_0x13c09e('0x32')](_0x5e2393)[_0x13c09e('0x11')](','):[];return _0x3be7f8[_0x13c09e('0x52')]===0x5&&_0x3be7f8[_0x13c09e('0x19')](-0x1,0x1),_0x3be7f8[_0x13c09e('0x6')](_0x2cab11),encryptor[_0x13c09e('0x7')](_0x3be7f8['join'](','));}function signJwt(_0x1c449a){const _0x2492e1=_0xe8df43,_0xc2a4e9=util[_0x2492e1('0x27')](jwt[_0x2492e1('0x26')],{'context':jwt}),_0x881bcc=_0x1c449a['secret']||config[_0x2492e1('0x17')][_0x2492e1('0x1d')];return new Promise(function(_0x4b3a32,_0x1023f5){const _0x3fda37=_0x2492e1;_0xc2a4e9(_0x1c449a[_0x3fda37('0x4d')],_0x881bcc,_0x1c449a[_0x3fda37('0x35')])[_0x3fda37('0x5d')](function(_0x54124c){_0x4b3a32(_0x54124c);})[_0x3fda37('0x0')](function(_0x139a5c){_0x1023f5(_0x139a5c);});});}function verifyJwt(_0x4182f7,_0x34e1e9,_0x2ceb5f){const _0x1c58b3=_0xe8df43,_0x447d43=util[_0x1c58b3('0x27')](jwt[_0x1c58b3('0x2c')],{'context':jwt}),_0x48d927=_0x2ceb5f||config['secrets']['session'];return new Promise(function(_0x3a149f,_0xc3eb8c){const _0x448c06=_0x1c58b3;_0x447d43(_0x4182f7,_0x48d927,_0x34e1e9)[_0x448c06('0x5d')](function(_0x27241b){_0x3a149f(_0x27241b);})['catch'](function(_0x572ad2){_0xc3eb8c(_0x572ad2);});});}function generateNonce(){const _0x2a716b=_0xe8df43;return crypto[_0x2a716b('0x44')](0x10)[_0x2a716b('0x5b')](_0x2a716b('0x4e'));}function generateIssuedAt(){const _0x51f683=_0xe8df43;return Math[_0x51f683('0x3e')](Date[_0x51f683('0x64')]()/0x3e8)[_0x51f683('0x5b')]();}function createJwt(_0x48d329){const _0x503f42=_0xe8df43,_0x13590f={'payload':{'iat':_0x48d329[_0x503f42('0x4f')],'nonce':_0x48d329['apiKeyNonce']},'options':{'algorithm':_0x503f42('0x23'),'subject':_0x48d329['id'][_0x503f42('0x5b')](),'issuer':hardwareConf[_0x503f42('0x4b')](),'audience':hardwareConf['getUuid']()}};return signJwt(_0x13590f)[_0x503f42('0x5d')](function(_0x2523a6){const _0x12186e=_0x503f42;return{'iat':_0x48d329[_0x12186e('0x4f')],'nonce':_0x48d329[_0x12186e('0x2')],'token':_0x2523a6};});}module[_0xe8df43('0x47')]={'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_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 diff --git a/server/components/encryptor/create-cypher-fallback.js b/server/components/encryptor/create-cypher-fallback.js index a6b9373..e3662bf 100644 --- a/server/components/encryptor/create-cypher-fallback.js +++ b/server/components/encryptor/create-cypher-fallback.js @@ -1 +1 @@ -const a824_0x1f52=['repeat','crypto','slice','test','length','message','update','md5','hex','from','min','Missing\x20cipher','exports','digest'];(function(_0x5ab71f,_0x1f523e){const _0x466c18=function(_0x4bd6bb){while(--_0x4bd6bb){_0x5ab71f['push'](_0x5ab71f['shift']());}};_0x466c18(++_0x1f523e);}(a824_0x1f52,0x11b));const a824_0x466c=function(_0x5ab71f,_0x1f523e){_0x5ab71f=_0x5ab71f-0x0;let _0x466c18=a824_0x1f52[_0x5ab71f];return _0x466c18;};const _0x3c67ac=a824_0x466c;'use strict';const {createCipheriv,createHash}=require(_0x3c67ac('0xc'));function sizes(_0x4bd6bb){const _0x54f872=_0x3c67ac;for(let _0x51dab6=0x1,_0xe4ae0a=0x0;;){try{return createCipheriv(_0x4bd6bb,'.'[_0x54f872('0xb')](_0x51dab6),'.'['repeat'](_0xe4ae0a)),[_0x51dab6,_0xe4ae0a];}catch(_0x4e6544){if(/invalid iv length/i[_0x54f872('0x0')](_0x4e6544['message']))_0xe4ae0a+=0x1;else{if(/invalid key length/i['test'](_0x4e6544[_0x54f872('0x2')]))_0x51dab6+=0x1;else throw _0x4e6544;}}}}function compute(_0x194827,_0x241bde){const _0xef2ee4=_0x3c67ac;let [_0xf0438d,_0x3248a3]=sizes(_0x194827);for(let _0x25807d='',_0xfcfeac='',_0x53d2ec='';;){const _0x495279=createHash(_0xef2ee4('0x4'));_0x495279[_0xef2ee4('0x3')](_0x53d2ec,_0xef2ee4('0x5')),_0x495279[_0xef2ee4('0x3')](_0x241bde),_0x53d2ec=_0x495279[_0xef2ee4('0xa')](_0xef2ee4('0x5'));let _0xc780eb=0x0,_0x4201c9=0x0;_0xc780eb=Math[_0xef2ee4('0x7')](_0x53d2ec[_0xef2ee4('0x1')]-_0x4201c9,0x2*_0xf0438d),(_0xf0438d-=_0xc780eb/0x2,_0x25807d+=_0x53d2ec[_0xef2ee4('0xd')](_0x4201c9,_0x4201c9+_0xc780eb),_0x4201c9+=_0xc780eb),_0xc780eb=Math[_0xef2ee4('0x7')](_0x53d2ec[_0xef2ee4('0x1')]-_0x4201c9,0x2*_0x3248a3),(_0x3248a3-=_0xc780eb/0x2,_0xfcfeac+=_0x53d2ec[_0xef2ee4('0xd')](_0x4201c9,_0x4201c9+_0xc780eb),_0x4201c9+=_0xc780eb);if(_0xf0438d+_0x3248a3===0x0)return[_0x25807d,_0xfcfeac];}}function createCypherFallback(_0x4a99eb,_0x213260){const _0x48fe21=_0x3c67ac;if(!_0x4a99eb)throw new Error(_0x48fe21('0x8'));if(!_0x213260)throw new Error('Missing\x20passphrase');const [_0x470873,_0x279a59]=compute(_0x4a99eb,_0x213260);return{'key':Buffer['from'](_0x470873,_0x48fe21('0x5')),'iv':Buffer[_0x48fe21('0x6')](_0x279a59,_0x48fe21('0x5'))};}module[_0x3c67ac('0x9')]={'createCypherFallback':createCypherFallback}; \ No newline at end of file +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 diff --git a/server/components/encryptor/index.js b/server/components/encryptor/index.js index ffa2b94..2f1fec3 100644 --- a/server/components/encryptor/index.js +++ b/server/components/encryptor/index.js @@ -1 +1 @@ -const a825_0x5693=['from','digest','Missing\x20Initialization\x20Vector\x20in\x20the\x20encrypted\x20string.\x20Using\x20fallbacks.','error','concat','secret','read','utf8','algorithm','promises','license','exports','you\x20must\x20pass\x20a\x20secret','final','binary','data','createReadStream','utf-8','data1','sha256','slice','open','write','split','aes192','toString','some-naughty-secret','aes-256-ctr','substr','length','./create-cypher-fallback','end','unlink','undefined','alloc','separator','createWriteStream','warn','update','join','createHash','parse','createDecipheriv','base64','close'];(function(_0x1d1085,_0x569304){const _0x5ffbad=function(_0x28241f){while(--_0x28241f){_0x1d1085['push'](_0x1d1085['shift']());}};_0x5ffbad(++_0x569304);}(a825_0x5693,0xfc));const a825_0x5ffb=function(_0x1d1085,_0x569304){_0x1d1085=_0x1d1085-0x0;let _0x5ffbad=a825_0x5693[_0x1d1085];return _0x5ffbad;};const _0xda5bf8=a825_0x5ffb;'use strict';const fs=require('fs'),crypto=require('crypto'),{createCypherFallback}=require(_0xda5bf8('0x3')),DEFAULT_STRING_OPTIONS={'secret':_0xda5bf8('0x2c'),'algorithm':_0xda5bf8('0x0'),'separator':'!'},DEFAULT_FILE_OPTIONS={'algorithm':_0xda5bf8('0x2a'),'separator':'!'},KEYLEN_MAP={'aes-256-ctr':0x20,'aes192':0x18},IVLEN_MAP={'aes-256-ctr':0x18,'aes192':0x10};function getCipherAndIvText(_0x28241f,_0x19122c,_0xc1e314){const _0x32c298=_0xda5bf8,_0x345203=KEYLEN_MAP[_0x19122c],_0x107a72=crypto[_0x32c298('0xd')](_0x32c298('0x25'))[_0x32c298('0xb')](String(_0x28241f))[_0x32c298('0x13')](_0x32c298('0x10'))[_0x32c298('0x1')](0x0,_0x345203),_0x284fc2=Buffer['from'](_0x107a72,_0x32c298('0x23')),_0x1aea1e=crypto['randomBytes'](0x10),_0x405d91=_0x1aea1e[_0x32c298('0x2b')](_0x32c298('0x10')),_0x4f06d5=crypto['createCipheriv'](_0x19122c,_0x284fc2,_0x1aea1e,_0xc1e314);return[_0x4f06d5,_0x405d91];}function getDecipher(_0x32545c,_0x18d2f5,_0x3eeb8c,_0x47013a){const _0x4494b2=_0xda5bf8,_0x368cb9=KEYLEN_MAP[_0x18d2f5],_0x4d98fe=typeof _0x3eeb8c==='string'&&_0x3eeb8c[_0x4494b2('0x2')]>0x0;let _0x2eb776=null,_0x3055d0=null;if(!_0x4d98fe){console[_0x4494b2('0xa')](_0x4494b2('0x14'));const _0x2e649c=createCypherFallback(_0x18d2f5,_0x32545c);_0x3055d0=_0x2e649c['iv'],_0x2eb776=_0x2e649c['key'];}const _0x3a1bd2=_0x4d98fe?Buffer[_0x4494b2('0x12')](_0x3eeb8c,_0x4494b2('0x10')):_0x3055d0,_0x1529fa=_0x4d98fe?crypto['createHash'](_0x4494b2('0x25'))[_0x4494b2('0xb')](String(_0x32545c))[_0x4494b2('0x13')](_0x4494b2('0x10'))[_0x4494b2('0x1')](0x0,_0x368cb9):null,_0x4557ac=_0x4d98fe?Buffer['from'](_0x1529fa,_0x4494b2('0x23')):_0x2eb776,_0x1ae246=crypto[_0x4494b2('0xf')](_0x18d2f5,_0x4557ac,_0x3a1bd2,_0x47013a);return _0x1ae246;}function encryptFile(_0x125ae2,_0x315e6b,_0x609eed,_0x1bd218={}){return new Promise(function(_0xb5b858,_0x3b032){const _0x676bf4=a825_0x5ffb;_0x1bd218={...DEFAULT_FILE_OPTIONS,..._0x1bd218};const _0x2a72b2=fs[_0x676bf4('0x22')](_0x125ae2),_0x4d9d9a=fs['createWriteStream'](_0x315e6b),[_0x2fc9a3,_0x5734b7]=getCipherAndIvText(_0x609eed,_0x1bd218[_0x676bf4('0x1a')]);_0x2a72b2['on'](_0x676bf4('0x27'),function(){const _0x422421=_0x676bf4,_0x13433d=Buffer[_0x422421('0x12')](_0x5734b7,'base64'),_0x38c61a=Buffer['from'](_0x1bd218[_0x422421('0x8')],_0x422421('0x23'));_0x4d9d9a[_0x422421('0x28')](Buffer[_0x422421('0x16')]([_0x13433d,_0x38c61a],_0x13433d['length']+_0x38c61a['length']));}),_0x2a72b2['on'](_0x676bf4('0x21'),function(_0x4feb52){const _0x29c72d=_0x676bf4,_0x57cc69=Buffer[_0x29c72d('0x12')](_0x2fc9a3['update'](_0x4feb52),'binary');_0x4d9d9a[_0x29c72d('0x28')](_0x57cc69);}),_0x2a72b2['on']('end',function(){const _0x232d12=_0x676bf4;try{const _0x15b3d9=Buffer[_0x232d12('0x12')](_0x2fc9a3['final'](_0x232d12('0x20')),_0x232d12('0x20'));_0x4d9d9a['write'](_0x15b3d9),_0x4d9d9a['end'](),_0x4d9d9a['on']('close',function(){_0xb5b858(_0x315e6b);});}catch(_0x39ba90){fs[_0x232d12('0x5')](_0x315e6b,_0x3dc745=>{_0x3b032(_0x3dc745===null?_0x39ba90:_0x3dc745);});}});});}async function decryptFile(_0x36ed97,_0x38bf14,_0x71d7fe,_0x208f01={}){const _0x787212=_0xda5bf8;_0x208f01={...DEFAULT_FILE_OPTIONS,..._0x208f01};const _0x13a285=Buffer[_0x787212('0x12')](_0x208f01['separator'],_0x787212('0x23'))[_0x787212('0x2')],_0x1f68e8=IVLEN_MAP[_0x208f01[_0x787212('0x1a')]],_0x17c011=_0x1f68e8+_0x13a285,_0x12c5d2=await fs[_0x787212('0x1b')][_0x787212('0x27')](_0x36ed97,'r'),_0x4de504=Buffer[_0x787212('0x7')](_0x17c011),{buffer:_0x2bc7c8}=await _0x12c5d2[_0x787212('0x18')](_0x4de504,0x0,_0x17c011),_0x24e0ae=_0x2bc7c8[_0x787212('0x26')](0x0,_0x1f68e8),_0x67ae30=_0x2bc7c8[_0x787212('0x26')](_0x1f68e8),_0x1a8a91=_0x67ae30[_0x787212('0x2b')](_0x787212('0x23')),_0x190c04=_0x24e0ae[_0x787212('0x2b')](_0x787212('0x10')),_0x30c7bb=_0x1a8a91===_0x208f01[_0x787212('0x8')];return new Promise(function(_0x26b5ab,_0x47823e){const _0x1e54cd=_0x787212,_0x569897=fs[_0x1e54cd('0x22')](_0x36ed97,{'start':_0x30c7bb?_0x17c011:0x0,'fd':_0x12c5d2,'autoClose':!![]}),_0x5e8583=fs[_0x1e54cd('0x9')](_0x38bf14),_0x2fc682=getDecipher(_0x71d7fe,_0x208f01[_0x1e54cd('0x1a')],_0x30c7bb?_0x190c04:null);_0x569897['on'](_0x1e54cd('0x21'),function(_0x1d378f){const _0x594696=_0x1e54cd,_0x2d7db=Buffer[_0x594696('0x12')](_0x2fc682[_0x594696('0xb')](_0x1d378f),_0x594696('0x20'));_0x5e8583['write'](_0x2d7db);}),_0x569897['on'](_0x1e54cd('0x15'),_0x3751e3=>_0x47823e(_0x3751e3)),_0x569897['on'](_0x1e54cd('0x4'),function(){const _0x2942a5=_0x1e54cd;try{const _0x5f1823=Buffer[_0x2942a5('0x12')](_0x2fc682[_0x2942a5('0x1f')](_0x2942a5('0x20')),'binary');_0x5e8583[_0x2942a5('0x28')](_0x5f1823),_0x5e8583[_0x2942a5('0x4')](),_0x5e8583['on'](_0x2942a5('0x11'),function(){_0x26b5ab(_0x38bf14);});}catch(_0xf8b40e){fs[_0x2942a5('0x5')](_0x38bf14,_0x516878=>{_0x47823e(_0x516878===null?_0xf8b40e:_0x516878);});}});});}function encryptString(_0x226383,_0x451afd=DEFAULT_STRING_OPTIONS[_0xda5bf8('0x17')],_0x4bf5f7=DEFAULT_STRING_OPTIONS[_0xda5bf8('0x1a')],_0x348f63=DEFAULT_STRING_OPTIONS[_0xda5bf8('0x8')]){const _0x4caa3a=_0xda5bf8;if(!_0x226383||_0x226383[_0x4caa3a('0x2')]===0x0)return _0x226383;if(!_0x451afd||_0x451afd[_0x4caa3a('0x2')]===0x0)throw new Error('you\x20must\x20pass\x20a\x20secret');const [_0x4930a6,_0x247b60]=getCipherAndIvText(_0x451afd,_0x4bf5f7);let _0x25da81=_0x4930a6['update'](_0x226383,_0x4caa3a('0x19'),_0x4caa3a('0x10'));return _0x25da81+=_0x4930a6[_0x4caa3a('0x1f')](_0x4caa3a('0x10')),[_0x247b60,_0x25da81][_0x4caa3a('0xc')](_0x348f63);}function decryptString(_0x39d8f5,_0x57da09=DEFAULT_STRING_OPTIONS[_0xda5bf8('0x17')],_0x5779a4=DEFAULT_STRING_OPTIONS[_0xda5bf8('0x1a')],_0x36a39b=DEFAULT_STRING_OPTIONS[_0xda5bf8('0x8')]){const _0x34cd05=_0xda5bf8;if(!_0x39d8f5||_0x39d8f5['length']===0x0)return _0x39d8f5;if(!_0x57da09||_0x57da09[_0x34cd05('0x2')]===0x0)throw new Error(_0x34cd05('0x1e'));const _0x101217=_0x39d8f5[_0x34cd05('0x29')](_0x36a39b),_0x171ec2=_0x101217[_0x34cd05('0x2')]===0x2,_0x223407=_0x171ec2?_0x101217[0x1]:_0x39d8f5,_0x5c154f=getDecipher(_0x57da09,_0x5779a4,_0x171ec2?_0x101217[0x0]:undefined);let _0x4ffdce=_0x5c154f[_0x34cd05('0xb')](_0x223407,'base64','utf8');return _0x4ffdce+=_0x5c154f[_0x34cd05('0x1f')](_0x34cd05('0x19')),_0x4ffdce;}function getValueFromLicense(_0x3e37b4,_0x518b2c){const _0x4dbd08=_0xda5bf8;if(_0x3e37b4&&_0x518b2c){if(_0x518b2c['data1']&&_0x518b2c['license']){const _0x4802ba=_0x518b2c[_0x4dbd08('0x24')],_0x21d16c=_0x518b2c[_0x4dbd08('0x1c')],_0x15a137=_0x4802ba[_0x4dbd08('0x29')]('-')[0x4],_0x4e7a7a=_0x4802ba['split']('-')[0x0],_0x4b9f7e=[_0x15a137,_0x4802ba,_0x4e7a7a][_0x4dbd08('0xc')](':'),_0x4a1439=getDecipher(_0x4b9f7e,'aes-256-ctr');let _0x2c0045=_0x4a1439[_0x4dbd08('0xb')](_0x21d16c,_0x4dbd08('0x10'),_0x4dbd08('0x19'));_0x2c0045+=_0x4a1439[_0x4dbd08('0x1f')](_0x4dbd08('0x19'));const _0x28357f=JSON[_0x4dbd08('0xe')](_0x2c0045);return typeof _0x28357f[_0x3e37b4]===_0x4dbd08('0x6')?null:_0x28357f[_0x3e37b4];}}return null;}module[_0xda5bf8('0x1d')]={'encryptFile':encryptFile,'decryptFile':decryptFile,'encryptString':encryptString,'decryptString':decryptString,'getValueFromLicense':getValueFromLicense}; \ No newline at end of file +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 diff --git a/server/components/export/csv.js b/server/components/export/csv.js index 7854909..7b90c7b 100644 --- a/server/components/export/csv.js +++ b/server/components/export/csv.js @@ -1 +1 @@ -const a826_0x5cd5=['.csv','util','dbH','CSV','Empty','%s\x20limit\x20%d\x20OFFSET\x20%d','Failed','%s.%s','AnalyticExtractedReport','push','%s%d.%s','../../mysqldb','split','length','Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','Completed','to-csv','SELECT','num','QueryTypes','inspect','findOne','each','join','Setting','Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed','writeFileSync','update','zip','query','mkdirSync','then','splitSizeCsv','dirname','path','csv','sequelize','format','rimraf','SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t','savename','basename','argv','info'];(function(_0x1ff223,_0x5cd55b){const _0x3ba90d=function(_0x15d922){while(--_0x15d922){_0x1ff223['push'](_0x1ff223['shift']());}};_0x3ba90d(++_0x5cd55b);}(a826_0x5cd5,0x1f1));const a826_0x3ba9=function(_0x1ff223,_0x5cd55b){_0x1ff223=_0x1ff223-0x0;let _0x3ba90d=a826_0x5cd5[_0x1ff223];return _0x3ba90d;};const _0x4bcf78=a826_0x3ba9;'use strict';const util=require(_0x4bcf78('0x20')),path=require(_0x4bcf78('0x15')),csv=require(_0x4bcf78('0x3')),fs=require('fs'),zipdir=require('zip-dir'),rimraf=require(_0x4bcf78('0x19')),db=require(_0x4bcf78('0x2a'))['db'],dbH=require(_0x4bcf78('0x2a'))[_0x4bcf78('0x21')],logger=require('../../config/logger')('analytics'),EXTRACTED_REPORT_ID=Number(process[_0x4bcf78('0x1d')][0x2]),QUERY=process[_0x4bcf78('0x1d')][0x3],PATH=process['argv'][0x4];function analyticExtractedReport(_0x15d922,_0x92ff5a){const _0x3a5fe9=_0x4bcf78,_0x5ba30e={'status':_0x15d922},_0x993053={'where':{'id':EXTRACTED_REPORT_ID}};return _0x92ff5a&&(_0x5ba30e[_0x3a5fe9('0x1b')]=_0x92ff5a),db[_0x3a5fe9('0x27')][_0x3a5fe9('0xe')](_0x5ba30e,_0x993053);}function main(){const _0x510452=_0x4bcf78;let _0x6540cf=0x1388,_0x595b99;return logger['info'](util[_0x510452('0x18')](_0x510452('0x1'),EXTRACTED_REPORT_ID,_0x510452('0x22'))),db[_0x510452('0xb')][_0x510452('0x8')]({'where':{'id':0x1},'raw':!![],'attributes':['id','split',_0x510452('0x13')]})[_0x510452('0x12')](function(_0xc73aca){const _0x8f495a=_0x510452;_0xc73aca&&(_0x595b99=_0xc73aca,_0x6540cf=_0x595b99[_0x8f495a('0x13')]||0x1388);})['then'](function(){const _0x3ca238=_0x510452;return dbH[_0x3ca238('0x17')][_0x3ca238('0x10')](util[_0x3ca238('0x18')](_0x3ca238('0x1a'),QUERY),{'type':dbH[_0x3ca238('0x17')][_0x3ca238('0x6')][_0x3ca238('0x4')]});})[_0x510452('0x12')](function(_0x4bc6e6){const _0x283a8a=_0x510452;if(!_0x4bc6e6[0x0][_0x283a8a('0x5')])return analyticExtractedReport(_0x283a8a('0x23'));const _0x1ec7eb=[];let _0x17a7ae=0x0,_0x5c4312=!![];if(_0x4bc6e6&&_0x4bc6e6[_0x283a8a('0x0')]){let _0x532506=_0x4bc6e6[0x0][_0x283a8a('0x5')]%(_0x17a7ae+_0x6540cf);if(_0x595b99[_0x283a8a('0x2b')])for(;_0x5c4312;_0x17a7ae+=_0x6540cf,_0x532506=_0x4bc6e6[0x0]['num']%(_0x17a7ae+_0x6540cf)){(_0x532506==0x0||_0x532506==_0x4bc6e6[0x0][_0x283a8a('0x5')])&&(_0x5c4312=![]),_0x1ec7eb[_0x283a8a('0x28')](dbH[_0x283a8a('0x17')][_0x283a8a('0x10')](util['format'](_0x283a8a('0x24'),QUERY,_0x6540cf,_0x17a7ae),{'type':dbH[_0x283a8a('0x17')][_0x283a8a('0x6')][_0x283a8a('0x4')]}));}else _0x1ec7eb[_0x283a8a('0x28')](dbH['sequelize'][_0x283a8a('0x10')](QUERY,{'type':dbH[_0x283a8a('0x17')][_0x283a8a('0x6')][_0x283a8a('0x4')]}));}const _0x187e41=path[_0x283a8a('0x14')](PATH),_0x463595=path[_0x283a8a('0x1c')](PATH,_0x283a8a('0x1f')),_0xbec06d=_0x595b99[_0x283a8a('0x2b')]&&_0x1ec7eb['length']>0x1,_0x9df806=[];return!fs['existsSync'](path[_0x283a8a('0xa')](_0x187e41,_0x463595))&&_0xbec06d&&fs[_0x283a8a('0x11')](path[_0x283a8a('0xa')](_0x187e41,_0x463595)),Promise[_0x283a8a('0x9')](_0x1ec7eb,function(_0x1deb21){const _0xff9245=_0x283a8a;_0x9df806[_0xff9245('0x28')](_0x1deb21);})[_0x283a8a('0x12')](function(){const _0x2e55f1=_0x283a8a;for(let _0x168d4b=0x0;_0x168d4b<_0x9df806['length'];_0x168d4b+=0x1){let _0x4a062e;const _0x4a2418=_0x9df806[_0x168d4b];_0xbec06d?_0x4a062e=path[_0x2e55f1('0xa')](_0x187e41,_0x463595,util[_0x2e55f1('0x18')](_0x2e55f1('0x29'),_0x463595,_0x168d4b,'csv')):_0x4a062e=path[_0x2e55f1('0xa')](_0x187e41,util[_0x2e55f1('0x18')](_0x2e55f1('0x26'),_0x463595,_0x2e55f1('0x16'))),fs[_0x2e55f1('0xd')](_0x4a062e,csv(_0x4a2418));}})['then'](function(){const _0x5b3f2d=_0x283a8a;_0xbec06d&&(zipdir(path[_0x5b3f2d('0xa')](_0x187e41,_0x463595),{'saveTo':path['join'](_0x187e41,util[_0x5b3f2d('0x18')](_0x5b3f2d('0x26'),_0x463595,_0x5b3f2d('0xf')))},function(){}),rimraf(path[_0x5b3f2d('0xa')](_0x187e41,_0x463595),function(){}));})[_0x283a8a('0x12')](function(){const _0x3d12e4=_0x283a8a;return logger['info'](util[_0x3d12e4('0x18')](_0x3d12e4('0xc'),EXTRACTED_REPORT_ID,_0x3d12e4('0x22'))),analyticExtractedReport(_0x3d12e4('0x2'),_0xbec06d?util[_0x3d12e4('0x18')](_0x3d12e4('0x26'),_0x463595,_0xbec06d?_0x3d12e4('0xf'):_0x3d12e4('0x16')):null);});})['catch'](function(_0x2442dc){const _0x2da8f9=_0x510452;return logger[_0x2da8f9('0x1e')](util[_0x2da8f9('0x18')]('Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format',EXTRACTED_REPORT_ID,_0x2da8f9('0x22')),util[_0x2da8f9('0x7')](_0x2442dc,{'showHidden':![],'depth':null})),analyticExtractedReport(_0x2da8f9('0x25'));});}main(); \ No newline at end of file +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 diff --git a/server/components/export/pdf.js b/server/components/export/pdf.js index e4c5c3b..2095747 100644 --- a/server/components/export/pdf.js +++ b/server/components/export/pdf.js @@ -1 +1 @@ -const a827_0x57de=['split','info','push','basename','argv','dbH','pdfmake/src/printer','/fonts/Roboto-Regular.ttf','sequelize','catch','length','MMMM\x20Do\x20YYYY,\x20h:mm:ss\x20a','startDate','Failed','header','.pdf','format','pdf','undefined','dirname','content','analytics','findOne','../../config/logger','savename','toString','Empty','QueryTypes','query','createWriteStream','join','tableHeader','inspect','CSV','finish','%s.%s','Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','%s%d.%s','update','num','Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','zip','SELECT','/fonts/Roboto-Medium.ttf','Setting','lodash','err','/fonts/Roboto-MediumItalic.ttf','rimraf','PDF','body','existsSync','Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed','name','splitSizePdf','log','Completed','../../mysqldb','Name:\x20%s\x0aReport:\x20%s\x0aFrom:\x20%s\x20To:\x20%s','mkdirSync','error','/fonts/Roboto-Italic.ttf','landscape','each','then','moment'];(function(_0x85b1c3,_0x57deba){const _0x5e0364=function(_0x19b61f){while(--_0x19b61f){_0x85b1c3['push'](_0x85b1c3['shift']());}};_0x5e0364(++_0x57deba);}(a827_0x57de,0x171));const a827_0x5e03=function(_0x85b1c3,_0x57deba){_0x85b1c3=_0x85b1c3-0x0;let _0x5e0364=a827_0x57de[_0x85b1c3];return _0x5e0364;};const _0x81834d=a827_0x5e03;'use strict';const _=require(_0x81834d('0x6')),fs=require('fs'),util=require('util'),path=require('path'),moment=require(_0x81834d('0x1a')),PdfPrinter=require(_0x81834d('0x21')),zipdir=require('zip-dir'),rimraf=require(_0x81834d('0x9')),db=require(_0x81834d('0x12'))['db'],dbH=require(_0x81834d('0x12'))[_0x81834d('0x20')],logger=require(_0x81834d('0x32'))(_0x81834d('0x30')),EXTRACTED_REPORT_ID=Number(process[_0x81834d('0x1f')][0x2]),QUERY=process['argv'][0x3],PATH=process[_0x81834d('0x1f')][0x4],NAME=process[_0x81834d('0x1f')][0x5],FORMAT=_0x81834d('0x26');let _extractedReport;function analyticExtractedReport(_0x19b61f,_0x22a365){const _0x3989fb=_0x81834d,_0x5b6ff7={'status':_0x19b61f},_0xd61c56={'where':{'id':EXTRACTED_REPORT_ID}};return _0x22a365&&(_0x5b6ff7[_0x3989fb('0x33')]=_0x22a365),db['AnalyticExtractedReport'][_0x3989fb('0x41')](_0x5b6ff7,_0xd61c56);}function getHeader(_0x97f003){const _0x28617a=_0x81834d,_0x1dcefb=[];for(const _0x132ee0 in _0x97f003){typeof _0x97f003[_0x132ee0]!==_0x28617a('0x2d')&&_0x1dcefb[_0x28617a('0x1d')]({'text':_0x132ee0,'style':_0x28617a('0x3a')});}return _0x1dcefb;}function extractReport(_0x3319f3){const _0x14b2da=_0x81834d;let _0x38e87e=0x1388,_0x418233;if(!_0x3319f3[0x0][_0x14b2da('0x0')])return analyticExtractedReport(_0x14b2da('0x35'));const _0x1adeac=[];let _0x265587=0x0,_0x4de0b1=!![];const _0x20ee58=path[_0x14b2da('0x2e')](PATH),_0x7f9d1e=path[_0x14b2da('0x1e')](PATH,_0x14b2da('0x2a'));let _0x3250e6=![];const _0x3a4a1e=[];return db[_0x14b2da('0x5')][_0x14b2da('0x31')]({'where':{'id':0x1},'raw':!![],'attributes':['id',_0x14b2da('0x1b'),_0x14b2da('0xf')]})[_0x14b2da('0x19')](function(_0x398aac){const _0x307683=_0x14b2da;_0x398aac&&(_0x418233=_0x398aac,_0x38e87e=_0x418233[_0x307683('0xf')]||0x3e8);})[_0x14b2da('0x19')](function(){const _0x286ead=_0x14b2da;if(_0x3319f3&&_0x3319f3[_0x286ead('0x25')]){let _0x45ba91=_0x3319f3[0x0][_0x286ead('0x0')]%(_0x265587+_0x38e87e);if(_0x418233['split'])for(;_0x4de0b1;_0x265587+=_0x38e87e,_0x45ba91=_0x3319f3[0x0][_0x286ead('0x0')]%(_0x265587+_0x38e87e)){(_0x45ba91==0x0||_0x45ba91==_0x3319f3[0x0][_0x286ead('0x0')])&&(_0x4de0b1=![]),_0x1adeac[_0x286ead('0x1d')](dbH[_0x286ead('0x23')][_0x286ead('0x37')](util[_0x286ead('0x2b')]('%s\x20limit\x20%d\x20OFFSET\x20%d',QUERY,_0x38e87e,_0x265587),{'type':dbH[_0x286ead('0x23')][_0x286ead('0x36')][_0x286ead('0x3')]}));}else _0x1adeac['push'](dbH['sequelize'][_0x286ead('0x37')](QUERY,{'type':dbH['sequelize']['QueryTypes'][_0x286ead('0x3')]}));}return _0x3250e6=_0x418233[_0x286ead('0x1b')]&&_0x1adeac['length']>0x1,!fs[_0x286ead('0xc')](path['join'](_0x20ee58,_0x7f9d1e))&&_0x3250e6&&fs[_0x286ead('0x14')](path['join'](_0x20ee58,_0x7f9d1e)),Promise[_0x286ead('0x18')](_0x1adeac,function(_0x55cd4e){const _0x2ba929=_0x286ead;_0x3a4a1e[_0x2ba929('0x1d')](_0x55cd4e);});})['then'](function(){const _0x1807d8=_0x14b2da;return Promise[_0x1807d8('0x18')](_0x1adeac,function(_0xfc00f3,_0x1c4370){const _0x333e11=_0x1807d8;let _0x412464;const _0x1f2f56=util[_0x333e11('0x2b')](_0x333e11('0x13'),NAME,_extractedReport[_0x333e11('0xe')],moment(_extractedReport[_0x333e11('0x27')])[_0x333e11('0x2b')](FORMAT),moment(_extractedReport['endDate'])[_0x333e11('0x2b')](FORMAT)),_0x1c731d={'pageSize':'A4','pageOrientation':_0x333e11('0x17'),'content':[{'text':_0x1f2f56,'style':_0x333e11('0x29')}],'styles':{'header':{'fontSize':0x12,'bold':!![],'margin':[0x0,0x0,0x0,0xa]},'tableHeader':{'bold':!![],'fontSize':0xd,'color':'black'}}},_0x414faa={'headerRows':0x1,'body':[]};_0x414faa[_0x333e11('0xb')][_0x333e11('0x1d')](getHeader(_0xfc00f3[0x0]));let _0x5cff32;for(let _0x21f53a=0x0;_0x21f53a<_0xfc00f3['length'];_0x21f53a+=0x1){_0x5cff32=[];for(const _0x819bee in _0xfc00f3[_0x21f53a]){typeof _0xfc00f3[_0x21f53a][_0x819bee]!==_0x333e11('0x2d')&&_0x5cff32[_0x333e11('0x1d')](_0xfc00f3[_0x21f53a][_0x819bee]?_[_0x333e11('0x34')](_0xfc00f3[_0x21f53a][_0x819bee]):'');}_0x414faa['body'][_0x333e11('0x1d')](_0x5cff32);}return _0x1c731d[_0x333e11('0x2f')][_0x333e11('0x1d')]({'table':_0x414faa}),new Promise(function(_0x531d4f,_0x175b07){const _0x1f7770=_0x333e11,_0x35b840=new PdfPrinter({'Roboto':{'normal':__dirname+_0x1f7770('0x22'),'bold':__dirname+_0x1f7770('0x4'),'italics':__dirname+_0x1f7770('0x16'),'bolditalics':__dirname+_0x1f7770('0x8')}}),_0x1a4584=_0x35b840['createPdfKitDocument'](_0x1c731d);_0x3250e6?_0x412464=path[_0x1f7770('0x39')](_0x20ee58,_0x7f9d1e,util['format'](_0x1f7770('0x40'),_0x7f9d1e,_0x1c4370,_0x1f7770('0x2c'))):_0x412464=path['join'](_0x20ee58,util[_0x1f7770('0x2b')](_0x1f7770('0x3e'),_0x7f9d1e,'pdf'));const _0x465e6d=_0x1a4584['pipe'](fs[_0x1f7770('0x38')](_0x412464));_0x465e6d['on'](_0x1f7770('0x3d'),function(){_0x531d4f();}),_0x465e6d['on'](_0x1f7770('0x15'),function(_0x29a946){const _0x4e5ada=_0x1f7770;console[_0x4e5ada('0x10')](_0x4e5ada('0x7'),_0x29a946),_0x175b07(_0x29a946);}),_0x1a4584['end']();});});})[_0x14b2da('0x19')](function(){if(_0x3250e6)return new Promise(function(_0x11df2f,_0x5f20d3){const _0x4530f5=a827_0x5e03;zipdir(path[_0x4530f5('0x39')](_0x20ee58,_0x7f9d1e),{'saveTo':path['join'](_0x20ee58,util[_0x4530f5('0x2b')](_0x4530f5('0x3e'),_0x7f9d1e,'zip'))},function(_0x15582f){_0x15582f?_0x5f20d3(_0x15582f):_0x11df2f();});});})[_0x14b2da('0x19')](function(){const _0x44c6e0=_0x14b2da;_0x3250e6&&rimraf(path[_0x44c6e0('0x39')](_0x20ee58,_0x7f9d1e),function(){});})[_0x14b2da('0x19')](function(){const _0x85b277=_0x14b2da;return logger[_0x85b277('0x1c')](util[_0x85b277('0x2b')](_0x85b277('0xd'),EXTRACTED_REPORT_ID,_0x85b277('0x3c'))),analyticExtractedReport(_0x85b277('0x11'),_0x3250e6?util[_0x85b277('0x2b')](_0x85b277('0x3e'),_0x7f9d1e,_0x3250e6?_0x85b277('0x2'):_0x85b277('0x2c')):null);});}function main(){const _0x331c6=_0x81834d;return logger[_0x331c6('0x1c')](util[_0x331c6('0x2b')](_0x331c6('0x3f'),EXTRACTED_REPORT_ID,_0x331c6('0xa'))),db['AnalyticExtractedReport'][_0x331c6('0x31')]({'where':{'id':EXTRACTED_REPORT_ID}})[_0x331c6('0x19')](function(_0x2e0214){const _0x2caab0=_0x331c6;return _extractedReport=_0x2e0214,dbH[_0x2caab0('0x23')][_0x2caab0('0x37')](util[_0x2caab0('0x2b')]('SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t',QUERY),{'type':dbH['sequelize']['QueryTypes'][_0x2caab0('0x3')]});})[_0x331c6('0x19')](extractReport)[_0x331c6('0x24')](function(_0x4fa2ab){const _0x5bcdfd=_0x331c6;return logger['info'](util[_0x5bcdfd('0x2b')](_0x5bcdfd('0x1'),EXTRACTED_REPORT_ID,_0x5bcdfd('0xa')),util[_0x5bcdfd('0x3b')](_0x4fa2ab,{'showHidden':![],'depth':null})),analyticExtractedReport(_0x5bcdfd('0x28'));});}main(); \ No newline at end of file +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 diff --git a/server/components/export/xlsx.js b/server/components/export/xlsx.js index e9bff10..a2db3ee 100644 --- a/server/components/export/xlsx.js +++ b/server/components/export/xlsx.js @@ -1 +1 @@ -const a828_0x1bfe=['then','rimraf','dbH','%s.%s','length','join','zip-dir','Failed','util','existsSync','path','zip','push','splitSizeXlsx','%s\x20limit\x20%d\x20OFFSET\x20%d','Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','info','num','Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed','findOne','analytics','format','catch','.xlsx','dirname','xlsx','../../config/logger','Empty','json2xls','SELECT','Setting','AnalyticExtractedReport','split','Completed','inspect','writeFileSync','query','each','%s%d.%s','sequelize','QueryTypes','../../mysqldb','argv','XLSX'];(function(_0x5eb240,_0x1bfea1){const _0x24e85f=function(_0x3010d1){while(--_0x3010d1){_0x5eb240['push'](_0x5eb240['shift']());}};_0x24e85f(++_0x1bfea1);}(a828_0x1bfe,0x128));const a828_0x24e8=function(_0x5eb240,_0x1bfea1){_0x5eb240=_0x5eb240-0x0;let _0x24e85f=a828_0x1bfe[_0x5eb240];return _0x24e85f;};const _0x1dc9b7=a828_0x24e8;'use strict';const util=require(_0x1dc9b7('0x14')),path=require(_0x1dc9b7('0x16')),fs=require('fs'),json2xls=require(_0x1dc9b7('0x28')),zipdir=require(_0x1dc9b7('0x12')),rimraf=require(_0x1dc9b7('0xd')),db=require(_0x1dc9b7('0x9'))['db'],dbH=require(_0x1dc9b7('0x9'))[_0x1dc9b7('0xe')],logger=require(_0x1dc9b7('0x26'))(_0x1dc9b7('0x20')),EXTRACTED_REPORT_ID=Number(process[_0x1dc9b7('0xa')][0x2]),QUERY=process[_0x1dc9b7('0xa')][0x3],PATH=process[_0x1dc9b7('0xa')][0x4];function analyticExtractedReport(_0x3010d1,_0xffdfbf){const _0x4b707b=_0x1dc9b7,_0x27d6ff={'status':_0x3010d1},_0x51dde0={'where':{'id':EXTRACTED_REPORT_ID}};return _0xffdfbf&&(_0x27d6ff['savename']=_0xffdfbf),db[_0x4b707b('0x2b')]['update'](_0x27d6ff,_0x51dde0);}function main(){const _0x1a949f=_0x1dc9b7;let _0x21eab4=0x1388,_0x2d694e;return logger['info'](util[_0x1a949f('0x21')]('Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format',EXTRACTED_REPORT_ID,_0x1a949f('0xb'))),db[_0x1a949f('0x2a')][_0x1a949f('0x1f')]({'where':{'id':0x1},'raw':!![],'attributes':['id','split',_0x1a949f('0x19')]})[_0x1a949f('0xc')](function(_0x20fa28){const _0xf51db9=_0x1a949f;_0x20fa28&&(_0x2d694e=_0x20fa28,_0x21eab4=_0x2d694e[_0xf51db9('0x19')]||0x1388);})['then'](function(){const _0x356b82=_0x1a949f;return dbH[_0x356b82('0x7')]['query'](util[_0x356b82('0x21')]('SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t',QUERY),{'type':dbH[_0x356b82('0x7')][_0x356b82('0x8')][_0x356b82('0x29')]});})[_0x1a949f('0xc')](function(_0x453491){const _0x4d170c=_0x1a949f;if(!_0x453491[0x0][_0x4d170c('0x1d')])return analyticExtractedReport(_0x4d170c('0x27'));const _0x239fd4=[];let _0x2a5503=0x0,_0x1d30e2=!![];if(_0x2d694e[_0x4d170c('0x0')]){if(_0x453491&&_0x453491[_0x4d170c('0x10')]){let _0xf16e4e=_0x453491[0x0]['num']%(_0x2a5503+_0x21eab4);for(;_0x1d30e2;_0x2a5503+=_0x21eab4,_0xf16e4e=_0x453491[0x0]['num']%(_0x2a5503+_0x21eab4)){(_0xf16e4e==0x0||_0xf16e4e==_0x453491[0x0]['num'])&&(_0x1d30e2=![]),_0x239fd4[_0x4d170c('0x18')](dbH[_0x4d170c('0x7')][_0x4d170c('0x4')](util[_0x4d170c('0x21')](_0x4d170c('0x1a'),QUERY,_0x21eab4,_0x2a5503),{'type':dbH['sequelize'][_0x4d170c('0x8')][_0x4d170c('0x29')]}));}}}else _0x239fd4['push'](dbH['sequelize'][_0x4d170c('0x4')](QUERY,{'type':dbH[_0x4d170c('0x7')][_0x4d170c('0x8')][_0x4d170c('0x29')]}));const _0x54405e=path[_0x4d170c('0x24')](PATH),_0x71fcf7=path['basename'](PATH,_0x4d170c('0x23')),_0x584432=_0x2d694e['split']&&_0x239fd4[_0x4d170c('0x10')]>0x1,_0x1056c8=[];return!fs[_0x4d170c('0x15')](path[_0x4d170c('0x11')](_0x54405e,_0x71fcf7))&&_0x584432&&fs['mkdirSync'](path['join'](_0x54405e,_0x71fcf7)),Promise[_0x4d170c('0x5')](_0x239fd4,function(_0x21047f){const _0x5e7ffe=_0x4d170c;_0x1056c8[_0x5e7ffe('0x18')](_0x21047f);})[_0x4d170c('0xc')](function(){const _0x4ef7f0=_0x4d170c;for(let _0x498f87=0x0;_0x498f87<_0x1056c8[_0x4ef7f0('0x10')];_0x498f87+=0x1){let _0x2cb9a5;const _0x1b668f=_0x1056c8[_0x498f87];_0x584432?_0x2cb9a5=path['join'](_0x54405e,_0x71fcf7,util['format'](_0x4ef7f0('0x6'),_0x71fcf7,_0x498f87,_0x4ef7f0('0x25'))):_0x2cb9a5=path[_0x4ef7f0('0x11')](_0x54405e,util['format'](_0x4ef7f0('0xf'),_0x71fcf7,'xlsx')),fs[_0x4ef7f0('0x3')](_0x2cb9a5,json2xls(_0x1b668f),'binary');}})[_0x4d170c('0xc')](function(){const _0x33700a=_0x4d170c;_0x584432&&(zipdir(path['join'](_0x54405e,_0x71fcf7),{'saveTo':path[_0x33700a('0x11')](_0x54405e,util[_0x33700a('0x21')](_0x33700a('0xf'),_0x71fcf7,_0x33700a('0x17')))},function(){}),rimraf(path[_0x33700a('0x11')](_0x54405e,_0x71fcf7),function(){}));})[_0x4d170c('0xc')](function(){const _0x126cec=_0x4d170c;return logger[_0x126cec('0x1c')](util[_0x126cec('0x21')](_0x126cec('0x1e'),EXTRACTED_REPORT_ID,_0x126cec('0xb'))),analyticExtractedReport(_0x126cec('0x1'),_0x584432?util[_0x126cec('0x21')](_0x126cec('0xf'),_0x71fcf7,_0x584432?'zip':_0x126cec('0x25')):null);});})[_0x1a949f('0x22')](function(_0x49b83d){const _0x8854a4=_0x1a949f;return logger[_0x8854a4('0x1c')](util[_0x8854a4('0x21')](_0x8854a4('0x1b'),EXTRACTED_REPORT_ID,_0x8854a4('0xb')),util[_0x8854a4('0x2')](_0x49b83d,{'showHidden':![],'depth':null})),analyticExtractedReport(_0x8854a4('0x13'));});}main(); \ No newline at end of file +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 diff --git a/server/components/extensions/rewrite.js b/server/components/extensions/rewrite.js index dc400fa..0fbd2cc 100644 --- a/server/components/extensions/rewrite.js +++ b/server/components/extensions/rewrite.js @@ -1 +1 @@ -const a829_0x47bb=['$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):NoOp(No\x20number\x20available)','XCALLY-MOTION-PROGRESS=1','ExecIf','IntervalId','uniq','createdAt','toLowerCase','catch','push','util','GotoIfTime','VoiceExtension','splice','CDR(destination)=','outbound','outboundrouteid=','$[${LEN(${CDR(prefix)})}\x20>\x200]?Goto(','XCALLY-MOTION-ANSWER=1','priority','${EXTEN:','$[${XCALLY-MOTION-ANSWER}=0]?Answer','CDR(tag)=','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(CALLERID(all)=','format','Hangup','VoiceExtensionId','CDR(routeid)=','XCALLY-MOTION-ANSWER=0','indexOf','app','rewrite','CDR(prefix)=noprefix','wav','$[${XCALLY-MOTION-PROGRESS}=0]?Progress','CAST(priority\x20AS\x20UNSIGNED)','length','bulkCreate','updatedAt','then','models','Interval','_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','exten',',${EXTEN},','lodash','answer','callerID','none','queue','*,*,*,*','concat','undefined','extension','extensions','XCALLY-MOTION-PROGRESS=0','sequelize','Set','):Goto(','recordingFormat','cutdigits','literal','findAll','last','filter','destroy','context','intervals','groupBy','CDR(type)=%s','type','map','interval','tag'];(function(_0x420ba0,_0x47bbc0){const _0x46fe98=function(_0x23be68){while(--_0x23be68){_0x420ba0['push'](_0x420ba0['shift']());}};_0x46fe98(++_0x47bbc0);}(a829_0x47bb,0xf4));const a829_0x46fe=function(_0x420ba0,_0x47bbc0){_0x420ba0=_0x420ba0-0x0;let _0x46fe98=a829_0x47bb[_0x420ba0];return _0x46fe98;};const _0x4ace48=a829_0x46fe;'use strict';const _=require(_0x4ace48('0x13')),util=require(_0x4ace48('0x39')),{Op}=require(_0x4ace48('0x1e'));function rewrite(_0x23be68,_0x1b0086){const _0xb27b53=_0x4ace48,_0x27fa7d=this;return _0x23be68['models'][_0xb27b53('0xf')][_0xb27b53('0x24')]({'raw':!![]})['then'](function(_0x5ecbca){const _0x4b3aa0=_0xb27b53;return _0x27fa7d['intervals']=_0x5ecbca,_0x23be68[_0x4b3aa0('0xe')][_0x4b3aa0('0x3b')][_0x4b3aa0('0x24')]({'where':{'IntervalId':_0x1b0086[_0x4b3aa0('0x33')]},'raw':!![]});})['then'](function(_0x320fe0){const _0x3f7648=_0xb27b53;return _0x23be68[_0x3f7648('0xe')]['VoiceExtension']['findAll']({'where':{'exten':{[Op['in']]:_[_0x3f7648('0x34')](_[_0x3f7648('0x2d')](_0x320fe0,_0x3f7648('0x11')))}},'order':_0x23be68[_0x3f7648('0x23')](_0x3f7648('0x9')),'raw':!![]});})[_0xb27b53('0xd')](function(_0x22868b){const _0x421b29=_0xb27b53,_0x4a3b07=_[_0x421b29('0x26')](_0x22868b,{'priority':'1'}),_0xaf9361=_[_0x421b29('0x26')](_0x22868b,{'isApp':0x1}),_0x565931=_[_0x421b29('0x2a')](_0xaf9361,_0x421b29('0x11')),_0x59311e=[_0x421b29('0x17'),'playback'],_0x55d7e6=[];let _0x32c143=[];for(const _0x2a79be in _0x565931){if(typeof _0x565931[_0x2a79be]!==_0x421b29('0x1a')){_0x27fa7d['priority']=0x2,_0x27fa7d[_0x421b29('0x1c')]=[],_0x27fa7d[_0x421b29('0x1b')]=_['find'](_0x4a3b07,{'exten':_0x565931[_0x2a79be][0x0][_0x421b29('0x11')]}),_0x27fa7d[_0x421b29('0x1c')][_0x421b29('0x38')]({'type':_0x565931[_0x2a79be][0x0]['type'],'app':_0x421b29('0x1f'),'appdata':util[_0x421b29('0x47')](_0x421b29('0x2b'),_0x565931[_0x2a79be][0x0][_0x421b29('0x2c')]),'context':_0x565931[_0x2a79be][0x0]['context'],'exten':_0x565931[_0x2a79be][0x0][_0x421b29('0x11')],'priority':_0x27fa7d[_0x421b29('0x42')]++,'VoiceExtensionId':_0x565931[_0x2a79be][0x0][_0x421b29('0x0')]});if(_0x565931[_0x2a79be][0x0]['type']===_0x421b29('0x3e')){_0x27fa7d[_0x421b29('0x1b')]&&_0x27fa7d['extensions'][_0x421b29('0x38')]({'type':_0x565931[_0x2a79be][0x0]['type'],'app':_0x421b29('0x1f'),'appdata':_0x421b29('0x3d')+(_0x27fa7d[_0x421b29('0x1b')][_0x421b29('0x22')]?_0x421b29('0x43')+_0x27fa7d['extension'][_0x421b29('0x22')]+'}':'${EXTEN}'),'context':_0x565931[_0x2a79be][0x0][_0x421b29('0x28')],'exten':_0x565931[_0x2a79be][0x0][_0x421b29('0x11')],'priority':_0x27fa7d[_0x421b29('0x42')]++,'VoiceExtensionId':_0x565931[_0x2a79be][0x0]['VoiceExtensionId']});_0x27fa7d[_0x421b29('0x1c')][_0x421b29('0x38')]({'type':_0x565931[_0x2a79be][0x0][_0x421b29('0x2c')],'app':_0x421b29('0x1f'),'appdata':_0x421b29('0x1')+_0x565931[_0x2a79be][0x0][_0x421b29('0x0')],'context':_0x565931[_0x2a79be][0x0][_0x421b29('0x28')],'exten':_0x565931[_0x2a79be][0x0][_0x421b29('0x11')],'priority':_0x27fa7d['priority']++,'VoiceExtensionId':_0x565931[_0x2a79be][0x0]['VoiceExtensionId']});const _0x29ad9f=_0x27fa7d[_0x421b29('0x42')]++;_0x27fa7d['extensions'][_0x421b29('0x38')]({'type':_0x565931[_0x2a79be][0x0][_0x421b29('0x2c')],'app':_0x421b29('0x32'),'appdata':_0x421b29('0x40')+(_0x29ad9f+0x2)+_0x421b29('0x20')+(_0x29ad9f+0x1)+')','context':_0x565931[_0x2a79be][0x0]['context'],'exten':_0x565931[_0x2a79be][0x0][_0x421b29('0x11')],'priority':_0x29ad9f,'VoiceExtensionId':_0x565931[_0x2a79be][0x0][_0x421b29('0x0')]}),_0x27fa7d[_0x421b29('0x1b')]&&_0x27fa7d['extensions'][_0x421b29('0x38')]({'type':_0x565931[_0x2a79be][0x0][_0x421b29('0x2c')],'app':_0x421b29('0x1f'),'appdata':_0x27fa7d['extension'][_0x421b29('0x22')]?'CDR(prefix)=${EXTEN:0:'+_0x27fa7d[_0x421b29('0x1b')][_0x421b29('0x22')]+'}':_0x421b29('0x6'),'context':_0x565931[_0x2a79be][0x0][_0x421b29('0x28')],'exten':_0x565931[_0x2a79be][0x0]['exten'],'priority':_0x27fa7d[_0x421b29('0x42')]++,'VoiceExtensionId':_0x565931[_0x2a79be][0x0][_0x421b29('0x0')]}),_0x27fa7d[_0x421b29('0x1c')][_0x421b29('0x38')]({'type':_0x565931[_0x2a79be][0x0][_0x421b29('0x2c')],'app':_0x421b29('0x1f'),'appdata':_0x421b29('0x3f')+_0x565931[_0x2a79be][0x0][_0x421b29('0x0')],'context':_0x565931[_0x2a79be][0x0][_0x421b29('0x28')],'exten':_0x565931[_0x2a79be][0x0][_0x421b29('0x11')],'priority':_0x27fa7d[_0x421b29('0x42')]++,'VoiceExtensionId':_0x565931[_0x2a79be][0x0][_0x421b29('0x0')]}),_0x27fa7d[_0x421b29('0x1b')]&&typeof _0x27fa7d[_0x421b29('0x1b')][_0x421b29('0x21')]!==_0x421b29('0x1a')&&_0x27fa7d[_0x421b29('0x1b')]['recordingFormat']!==_0x421b29('0x16')&&(_0x27fa7d[_0x421b29('0x1c')][_0x421b29('0x38')]({'type':_0x565931[_0x2a79be][0x0][_0x421b29('0x2c')],'app':'Set','appdata':_0x421b29('0x10'),'context':_0x565931[_0x2a79be][0x0][_0x421b29('0x28')],'exten':_0x565931[_0x2a79be][0x0][_0x421b29('0x11')],'priority':_0x27fa7d[_0x421b29('0x42')]++,'VoiceExtensionId':_0x565931[_0x2a79be][0x0][_0x421b29('0x0')]}),_0x27fa7d[_0x421b29('0x1c')][_0x421b29('0x38')]({'type':_0x565931[_0x2a79be][0x0][_0x421b29('0x2c')],'app':_0x421b29('0x1f'),'appdata':'_XCALLY_MIXMONITOR_FORMAT='+_0x27fa7d['extension'][_0x421b29('0x21')]||_0x421b29('0x7'),'context':_0x565931[_0x2a79be][0x0][_0x421b29('0x28')],'exten':_0x565931[_0x2a79be][0x0][_0x421b29('0x11')],'priority':_0x27fa7d[_0x421b29('0x42')]++,'VoiceExtensionId':_0x565931[_0x2a79be][0x0][_0x421b29('0x0')]}));}_0x27fa7d[_0x421b29('0x1c')]['push']({'type':_0x565931[_0x2a79be][0x0]['type'],'app':'Set','appdata':_0x421b29('0x2'),'context':_0x565931[_0x2a79be][0x0][_0x421b29('0x28')],'exten':_0x565931[_0x2a79be][0x0][_0x421b29('0x11')],'priority':_0x27fa7d[_0x421b29('0x42')]++,'VoiceExtensionId':_0x565931[_0x2a79be][0x0]['VoiceExtensionId']}),_0x27fa7d[_0x421b29('0x1c')][_0x421b29('0x38')]({'type':_0x565931[_0x2a79be][0x0][_0x421b29('0x2c')],'app':_0x421b29('0x1f'),'appdata':_0x421b29('0x1d'),'context':_0x565931[_0x2a79be][0x0]['context'],'exten':_0x565931[_0x2a79be][0x0][_0x421b29('0x11')],'priority':_0x27fa7d[_0x421b29('0x42')]++,'VoiceExtensionId':_0x565931[_0x2a79be][0x0][_0x421b29('0x0')]}),_0x27fa7d[_0x421b29('0x1c')]['push']({'type':_0x565931[_0x2a79be][0x0]['type'],'app':_0x421b29('0x1f'),'appdata':'MONITOR_OPTIONS=ab','context':_0x565931[_0x2a79be][0x0][_0x421b29('0x28')],'exten':_0x565931[_0x2a79be][0x0][_0x421b29('0x11')],'priority':_0x27fa7d[_0x421b29('0x42')]++,'VoiceExtensionId':_0x565931[_0x2a79be][0x0][_0x421b29('0x0')]});for(let _0x32444a=0x0,_0x16121f=0x0;_0x32444a<_0x565931[_0x2a79be][_0x421b29('0xa')];_0x32444a+=0x1,_0x16121f=0x0){const _0x106016=_0x565931[_0x2a79be][_0x32444a];_0x106016[_0x421b29('0x2c')]&&(_0x106016['type']=_0x106016[_0x421b29('0x2c')][_0x421b29('0x36')]());const _0x119611=[],_0x4b30a1=[];delete _0x106016['id'],delete _0x106016[_0x421b29('0x35')],delete _0x106016[_0x421b29('0xc')];const _0x489e1f=_0x106016[_0x421b29('0x2e')]!==_0x421b29('0x18')?[_0x106016[_0x421b29('0x2e')]]:_0x106016[_0x421b29('0x33')]?_[_0x421b29('0x2d')](_[_0x421b29('0x26')](_0x27fa7d[_0x421b29('0x29')],{'IntervalId':_0x106016[_0x421b29('0x33')]}),_0x421b29('0x2e')):[];typeof _0x106016['tag']!=='undefined'&&(_0x106016['tag']&&_0x106016[_0x421b29('0x2f')]!=='--'&&_0x119611[_0x421b29('0x38')]({'type':_0x106016['type'],'app':_0x421b29('0x1f'),'appdata':_0x421b29('0x45')+_0x106016[_0x421b29('0x2f')],'context':_0x106016[_0x421b29('0x28')],'exten':_0x106016[_0x421b29('0x11')],'priority':_0x489e1f[_0x421b29('0xa')]+_0x27fa7d['priority']+_0x16121f++,'VoiceExtensionId':_0x106016[_0x421b29('0x0')]}));_0x106016[_0x421b29('0x2c')]===_0x421b29('0x3e')&&typeof _0x106016[_0x421b29('0x15')]!==_0x421b29('0x1a')&&(_0x106016[_0x421b29('0x15')]?_0x119611[_0x421b29('0x38')]({'type':_0x106016['type'],'app':_0x421b29('0x32'),'appdata':_0x421b29('0x46')+_0x106016[_0x421b29('0x15')]+')','context':_0x106016[_0x421b29('0x28')],'exten':_0x106016[_0x421b29('0x11')],'priority':_0x489e1f[_0x421b29('0xa')]+_0x27fa7d[_0x421b29('0x42')]+_0x16121f++,'VoiceExtensionId':_0x106016[_0x421b29('0x0')]}):_0x119611[_0x421b29('0x38')]({'type':_0x106016[_0x421b29('0x2c')],'app':_0x421b29('0x32'),'appdata':_0x421b29('0x30'),'context':_0x106016[_0x421b29('0x28')],'exten':_0x106016[_0x421b29('0x11')],'priority':_0x489e1f['length']+_0x27fa7d[_0x421b29('0x42')]+_0x16121f++,'VoiceExtensionId':_0x106016['VoiceExtensionId']}));typeof _0x106016[_0x421b29('0x14')]!==_0x421b29('0x1a')&&(_0x59311e[_0x421b29('0x3')](_0x106016[_0x421b29('0x4')][_0x421b29('0x36')]())>=0x0&&_0x106016['appType']!=='custom'&&(_0x106016[_0x421b29('0x14')]?(_0x119611[_0x421b29('0x38')]({'type':_0x106016['type'],'app':'ExecIf','appdata':_0x421b29('0x44'),'context':_0x106016[_0x421b29('0x28')],'exten':_0x106016[_0x421b29('0x11')],'priority':_0x489e1f[_0x421b29('0xa')]+_0x27fa7d['priority']+_0x16121f++,'VoiceExtensionId':_0x106016[_0x421b29('0x0')]}),_0x119611[_0x421b29('0x38')]({'type':_0x106016[_0x421b29('0x2c')],'app':_0x421b29('0x1f'),'appdata':_0x421b29('0x41'),'context':_0x106016[_0x421b29('0x28')],'exten':_0x106016[_0x421b29('0x11')],'priority':_0x489e1f[_0x421b29('0xa')]+_0x27fa7d[_0x421b29('0x42')]+_0x16121f++,'VoiceExtensionId':_0x106016['VoiceExtensionId']})):(_0x119611[_0x421b29('0x38')]({'type':_0x106016[_0x421b29('0x2c')],'app':_0x421b29('0x32'),'appdata':_0x421b29('0x8'),'context':_0x106016[_0x421b29('0x28')],'exten':_0x106016[_0x421b29('0x11')],'priority':_0x489e1f[_0x421b29('0xa')]+_0x27fa7d[_0x421b29('0x42')]+_0x16121f++,'VoiceExtensionId':_0x106016[_0x421b29('0x0')]}),_0x119611[_0x421b29('0x38')]({'type':_0x106016[_0x421b29('0x2c')],'app':_0x421b29('0x1f'),'appdata':_0x421b29('0x31'),'context':_0x106016[_0x421b29('0x28')],'exten':_0x106016['exten'],'priority':_0x489e1f[_0x421b29('0xa')]+_0x27fa7d[_0x421b29('0x42')]+_0x16121f++,'VoiceExtensionId':_0x106016[_0x421b29('0x0')]}))));for(let _0x1aaaae=0x0;_0x1aaaae<_0x489e1f[_0x421b29('0xa')];_0x1aaaae+=0x1){const _0x4b0a1b=_0x27fa7d[_0x421b29('0x42')]+_0x489e1f['length'],_0x18eb2c=_0x1aaaae===_0x489e1f[_0x421b29('0xa')]-0x1?_0x27fa7d[_0x421b29('0x42')]+_0x119611[_0x421b29('0xa')]+_0x4b30a1[_0x421b29('0xa')]+0x2:_0x27fa7d['priority']+_0x1aaaae+0x1;_0x119611[_0x421b29('0x3c')](_0x1aaaae,0x0,{'type':_0x106016[_0x421b29('0x2c')],'app':_0x421b29('0x3a'),'appdata':_0x489e1f[_0x1aaaae]+'?'+_0x106016[_0x421b29('0x28')]+_0x421b29('0x12')+_0x4b0a1b+':'+_0x106016[_0x421b29('0x28')]+_0x421b29('0x12')+_0x18eb2c,'exten':_0x106016[_0x421b29('0x11')],'context':_0x106016[_0x421b29('0x28')],'priority':_0x27fa7d['priority']+_0x1aaaae,'VoiceExtensionId':_0x565931[_0x2a79be][0x0][_0x421b29('0x0')]});}_0x106016[_0x421b29('0x42')]=_0x119611[_0x421b29('0xa')]?_[_0x421b29('0x25')](_0x119611)[_0x421b29('0x42')]+0x1:_0x27fa7d['priority'],_0x27fa7d['priority']=(_0x4b30a1[_0x421b29('0xa')]?_['last'](_0x4b30a1)['priority']:_0x106016[_0x421b29('0x42')])+0x1,_0x27fa7d[_0x421b29('0x1c')]=_[_0x421b29('0x19')](_0x27fa7d[_0x421b29('0x1c')],_0x119611,[_0x106016],_0x4b30a1);}_0x27fa7d['extensions'][_0x421b29('0x38')]({'type':_0x565931[_0x2a79be][0x0][_0x421b29('0x2c')],'app':_0x421b29('0x48'),'exten':_0x565931[_0x2a79be][0x0][_0x421b29('0x11')],'context':_0x565931[_0x2a79be][0x0]['context'],'priority':_0x27fa7d[_0x421b29('0x42')],'VoiceExtensionId':_0x565931[_0x2a79be][0x0]['VoiceExtensionId']}),_0x55d7e6[_0x421b29('0x38')](_0x565931[_0x2a79be][0x0][_0x421b29('0x0')]),_0x32c143=_[_0x421b29('0x19')](_0x32c143,_0x27fa7d['extensions']);}}return _0x23be68['transaction'](function(_0x701950){const _0x364f41=_0x421b29;return _0x23be68[_0x364f41('0xe')][_0x364f41('0x3b')][_0x364f41('0x27')]({'where':{'VoiceExtensionId':{[Op['in']]:_0x55d7e6}},'transaction':_0x701950})[_0x364f41('0xd')](function(){const _0x558b0c=_0x364f41;return _0x23be68[_0x558b0c('0xe')]['VoiceExtension'][_0x558b0c('0xb')](_['sortBy'](_0x32c143,_0x558b0c('0x42')),{'transaction':_0x701950});});});})[_0xb27b53('0x37')](function(_0x3be3e7){console['error'](_0x3be3e7);});}exports[_0x4ace48('0x5')]=rewrite; \ No newline at end of file +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 diff --git a/server/components/import/cm/csv.js b/server/components/import/cm/csv.js index 1658a1d..e6a4c2d 100644 --- a/server/components/import/cm/csv.js +++ b/server/components/import/cm/csv.js @@ -1 +1 @@ -const a830_0x4695=['contact:csv_','NOW()','ListId','generalCheckHopper','split','data','query','SIGINT','get','outbound','firstName\x20not\x20specified!','VoiceQueueId','index','errors','Campaign','error','Missing\x20socket_timestamp\x20parameter!','VoiceQueue','The\x20row\x20is\x20empty\x20or\x20the\x20number\x20of\x20parameters\x20does\x20not\x20match\x20the\x20columns!','resolve','resume','fromQuery','birthDate','../../../mysqldb','length','id\x20IN\x20?','CSV\x20import\x20process\x20stopped!','../../../api/cmContact/cmContact.socket','phone\x20IS\x20NOT\x20NULL','toString','firstName','unlinkSync','email','birthDate\x20format\x20is\x20invalid,\x20YYYY-MM-DD\x20format\x20is\x20supported!','into','catch','cm_hopper_black','message','register','YYYY-MM-DD','Lists','keys','phone\x20NOT\x20IN\x20(?)','CampaignId','Unable\x20to\x20delete\x20temp\x20file:','util','pause','ContactId','phone\x20not\x20specified!','duplicate','cm_contacts','Error\x20processing\x20rows\x20block:','field','Error\x20while\x20creating\x20contact:\x20','lodash','scheduledAt','push','create','../../../config/logger','createReadStream','findAll','stringify','find','isNil','updatedAt','zipObject','squel','always','ListId\x20=\x20?','dialCheckDuplicateType','str','then','papaparse','insert','Missing\x20binding\x20parameters!','api','Missing\x20filepath\x20parameter!','pick','BlackLists','checkHopper','calleridnum','info','where','from','emit','join','onlyIfOpen','CSV\x20parsed\x20correctly!','map','undefined','CmList','cmContact,\x20%s,\x20%s','CmContact','inspect','sequelize','phone','argv','parse','cm_hopper_final','createdAt','cmContact','cm_hopper','Error\x20executing\x20contact\x20csv\x20import:','\x20=\x20?','null','deletedAt\x20IS\x20NULL','all','select'];(function(_0x42fb26,_0x469594){const _0x22d02d=function(_0x3297c1){while(--_0x3297c1){_0x42fb26['push'](_0x42fb26['shift']());}};_0x22d02d(++_0x469594);}(a830_0x4695,0x1e2));const a830_0x22d0=function(_0x42fb26,_0x469594){_0x42fb26=_0x42fb26-0x0;let _0x22d02d=a830_0x4695[_0x42fb26];return _0x22d02d;};const _0x57015e=a830_0x22d0;'use strict';const util=require(_0x57015e('0x67')),_=require(_0x57015e('0x4')),fs=require('fs'),squel=require(_0x57015e('0x10')),Papa=require(_0x57015e('0x16')),moment=require('moment'),db=require(_0x57015e('0x51'))['db'],logger=require(_0x57015e('0x8'))(_0x57015e('0x19')),{getSocket}=require('../../../rediscache'),socket=getSocket();require(_0x57015e('0x55'))[_0x57015e('0x60')](socket);let FILEPATH,FIELDS,LISTID,COMPANYID,DUPLICATES,SOCKET_TIMESTAMP;try{if(!process[_0x57015e('0x2e')][0x2]||process['argv'][0x2]==='undefined'||process['argv'][0x2]===_0x57015e('0x36'))throw new Error(_0x57015e('0x1a'));FILEPATH=process[_0x57015e('0x2e')][0x2];if(!process[_0x57015e('0x2e')][0x3]||process[_0x57015e('0x2e')][0x3]===_0x57015e('0x27')||process[_0x57015e('0x2e')][0x3]===_0x57015e('0x36')||!process['argv'][0x4]||process[_0x57015e('0x2e')][0x4]==='undefined'||process[_0x57015e('0x2e')][0x4]==='null')throw new Error(_0x57015e('0x18'));FIELDS=_[_0x57015e('0xf')](process[_0x57015e('0x2e')][0x3][_0x57015e('0x3e')](','),process[_0x57015e('0x2e')][0x4][_0x57015e('0x3e')](','));if(!process['argv'][0x5]||process[_0x57015e('0x2e')][0x5]===_0x57015e('0x27')||process[_0x57015e('0x2e')][0x5]===_0x57015e('0x36'))throw new Error('Missing\x20ListId\x20parameter!');LISTID=process[_0x57015e('0x2e')][0x5],COMPANYID=process[_0x57015e('0x2e')][0x6]&&process[_0x57015e('0x2e')][0x6]!=='undefined'&&process[_0x57015e('0x2e')][0x6]!==_0x57015e('0x36')?process[_0x57015e('0x2e')][0x6]:null,DUPLICATES=process[_0x57015e('0x2e')][0x7]&&process[_0x57015e('0x2e')][0x7]!==_0x57015e('0x27')&&process[_0x57015e('0x2e')][0x7]!==_0x57015e('0x36')?process[_0x57015e('0x2e')][0x7]:null;if(!process[_0x57015e('0x2e')][0x8]||process[_0x57015e('0x2e')][0x8]===_0x57015e('0x27')||process[_0x57015e('0x2e')][0x8]===_0x57015e('0x36'))throw new Error(_0x57015e('0x4a'));SOCKET_TIMESTAMP=process[_0x57015e('0x2e')][0x8];}catch(a830_0x3297c1){logger['error'](a830_0x3297c1),endCsv();}let total=0x0,success=0x0,errors=0x0,duplicates=0x0,rows=[],hopperContacts='',promises=[];function handleCheckRowError(_0x2d577c,_0x37b973,_0x472385,_0x27a6ac){const _0x2a5db5=_0x57015e,_0x3aa820={'message':_0x37b973};return _0x3aa820[_0x2d577c]=!![],_0x472385&&(_0x3aa820['contact']=_0x472385),_0x27a6ac&&(_0x3aa820[_0x2a5db5('0x46')]=_0x27a6ac),_0x3aa820;}function isEmail(_0x1171e5){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))*$/['test'](_0x1171e5);}function checkRow(_0x3970c4,_0x25a9e8,_0x5b3136){return new Promise(function(_0x53fa48,_0x5968e9){const _0x39383d=a830_0x22d0;if(_[_0x39383d('0xd')](_0x3970c4))return _0x5968e9(handleCheckRowError(_0x39383d('0x49'),_0x39383d('0x4c'),null,_0x5b3136));if(_0x3970c4['errors']&&_0x3970c4['errors'][_0x39383d('0x52')]){const _0x514571=_[_0x39383d('0x26')](_0x3970c4[_0x39383d('0x47')],'message')[_0x39383d('0x23')](';');return _0x5968e9(handleCheckRowError(_0x39383d('0x49'),_0x514571,null,_0x5b3136));}const _0x44302a={};for(const _0x3b8ac8 in FIELDS){typeof FIELDS[_0x3b8ac8]!=='undefined'&&FIELDS[_0x3b8ac8]&&(_0x44302a[_0x3b8ac8]=_0x3970c4[_0x39383d('0x3f')][0x0][FIELDS[_0x3b8ac8]]||_0x3970c4[_0x39383d('0x3f')][0x0]['\ufeff'+FIELDS[_0x3b8ac8]]);}if(!_0x44302a[_0x39383d('0x58')])return _0x5968e9(handleCheckRowError(_0x39383d('0x49'),_0x39383d('0x44'),null,_0x5b3136));if(!_0x44302a['phone'])return _0x5968e9(handleCheckRowError(_0x39383d('0x49'),_0x39383d('0x6a'),null,_0x5b3136));if(_0x44302a[_0x39383d('0x50')]){const _0x40106b=moment(_0x44302a[_0x39383d('0x50')],_0x39383d('0x61'));if(!_0x40106b['isValid']())return _0x5968e9(handleCheckRowError(_0x39383d('0x49'),_0x39383d('0x5b'),null,_0x5b3136));}if(_0x44302a[_0x39383d('0x5a')]){if(!isEmail(_0x44302a[_0x39383d('0x5a')]))return _0x5968e9(handleCheckRowError(_0x39383d('0x49'),'email\x20format\x20is\x20not\x20valid!',null,_0x5b3136));}_0x44302a['ListId']=LISTID,_0x44302a['CompanyId']=COMPANYID||undefined;if(DUPLICATES&&DUPLICATES[_0x39383d('0x52')]&&_0x25a9e8){const _0x178aaf={};for(let _0x300db0=0x0,_0x57fb2c=DUPLICATES[_0x39383d('0x52')];_0x300db0<_0x57fb2c;_0x300db0+=0x1){_0x178aaf[DUPLICATES[_0x300db0]]=_0x44302a[DUPLICATES[_0x300db0]];}const _0x5defbf=_[_0x39383d('0xc')](_0x25a9e8,_0x178aaf);if(_0x5defbf)return _0x5968e9(handleCheckRowError('duplicate','Duplicate\x20Contact',_0x5defbf,_0x5b3136));}return db['CmContact'][_0x39383d('0x7')](_0x44302a,{'raw':!![],'hooks':![],'fields':_[_0x39383d('0x63')](_0x44302a)})['then'](function(_0x20ae55){const _0x4b52bd=_0x39383d;return DUPLICATES&&DUPLICATES['length']&&_0x25a9e8&&_0x25a9e8['push'](_[_0x4b52bd('0x1b')](_0x44302a,DUPLICATES)),hopperContacts+=(hopperContacts?',':'')+_0x20ae55['id'],_0x53fa48();})[_0x39383d('0x5d')](function(_0x30a5e7){const _0x33ed55=_0x39383d;return _0x5968e9(handleCheckRowError(_0x33ed55('0x49'),_0x33ed55('0x3')+(_0x30a5e7[_0x33ed55('0x5f')]||JSON[_0x33ed55('0xb')](_0x30a5e7)),null,_0x5b3136));});});}function checkHopper(){const _0x3619a0=_0x57015e;function _0x5a4657(){return function(_0x400877){const _0x57af9a=a830_0x22d0;logger[_0x57af9a('0x49')](_0x57af9a('0x32'),_0x57af9a('0x1d'),util[_0x57af9a('0x2b')](_0x400877,{'showHidden':![],'depth':null}));};}const _0x2f2d21=function(_0x47c126,_0x2d565a){const _0x28d7bc=a830_0x22d0,_0x39dd35=squel['insert']()[_0x28d7bc('0x5c')]('cm_hopper')[_0x28d7bc('0x4f')]([_0x28d7bc('0x2d'),'scheduledAt','ContactId',_0x28d7bc('0x3c'),_0x2d565a,'createdAt',_0x28d7bc('0xe')],squel[_0x28d7bc('0x39')]()[_0x28d7bc('0x2')]('phone',_0x28d7bc('0x2d'))[_0x28d7bc('0x2')](_0x28d7bc('0x3b'),_0x28d7bc('0x5'))['field']('id',_0x28d7bc('0x69'))[_0x28d7bc('0x2')](LISTID[_0x28d7bc('0x57')](),_0x28d7bc('0x3c'))[_0x28d7bc('0x2')](_0x47c126['id'][_0x28d7bc('0x57')](),_0x2d565a)['field']('NOW()','createdAt')['field'](_0x28d7bc('0x3b'),'updatedAt')[_0x28d7bc('0x21')](_0x28d7bc('0x0'))['where'](_0x28d7bc('0x37'))['where'](_0x28d7bc('0x12'),LISTID['toString']())[_0x28d7bc('0x20')](_0x28d7bc('0x56'))['where'](_0x28d7bc('0x64'),squel[_0x28d7bc('0x39')]()[_0x28d7bc('0x2')](_0x28d7bc('0x2d'))[_0x28d7bc('0x21')](_0x28d7bc('0x33'))[_0x28d7bc('0x20')](_0x2d565a+_0x28d7bc('0x35'),_0x47c126['id'][_0x28d7bc('0x57')]())))['toString']();return _0x39dd35;},_0x2aec54=function(_0x4529d5,_0x547a64){const _0x2476b7=a830_0x22d0,_0x3709ac=squel[_0x2476b7('0x17')]()[_0x2476b7('0x5c')]('cm_hopper')[_0x2476b7('0x4f')]([_0x2476b7('0x2d'),_0x2476b7('0x5'),_0x2476b7('0x69'),_0x2476b7('0x3c'),_0x547a64,_0x2476b7('0x31'),_0x2476b7('0xe')],squel[_0x2476b7('0x39')]()[_0x2476b7('0x2')]('phone',_0x2476b7('0x2d'))[_0x2476b7('0x2')](_0x2476b7('0x3b'),_0x2476b7('0x5'))[_0x2476b7('0x2')]('id',_0x2476b7('0x69'))[_0x2476b7('0x2')](LISTID[_0x2476b7('0x57')](),_0x2476b7('0x3c'))[_0x2476b7('0x2')](_0x4529d5['id'][_0x2476b7('0x57')](),_0x547a64)[_0x2476b7('0x2')](_0x2476b7('0x3b'),_0x2476b7('0x31'))['field'](_0x2476b7('0x3b'),'updatedAt')[_0x2476b7('0x21')](_0x2476b7('0x0'))[_0x2476b7('0x20')](_0x2476b7('0x37'))[_0x2476b7('0x20')](_0x2476b7('0x12'),LISTID[_0x2476b7('0x57')]())[_0x2476b7('0x20')]('id\x20IN\x20?',squel[_0x2476b7('0x14')](hopperContacts))[_0x2476b7('0x20')](_0x2476b7('0x56'))[_0x2476b7('0x20')](_0x2476b7('0x64'),squel[_0x2476b7('0x39')]()[_0x2476b7('0x2')](_0x2476b7('0x1e'))[_0x2476b7('0x21')](_0x2476b7('0x30'))['where'](_0x547a64+_0x2476b7('0x35'),_0x4529d5['id'][_0x2476b7('0x57')]()))[_0x2476b7('0x20')](_0x2476b7('0x64'),squel[_0x2476b7('0x39')]()[_0x2476b7('0x2')](_0x2476b7('0x2d'))[_0x2476b7('0x21')](_0x2476b7('0x33'))['where'](_0x547a64+'\x20=\x20?',_0x4529d5['id'][_0x2476b7('0x57')]())))[_0x2476b7('0x57')]();return _0x3709ac;};function _0x5d0125(_0x2ccc29,_0x57d539){const _0x5ea1b7=a830_0x22d0,_0x4250cb=squel[_0x5ea1b7('0x17')]()[_0x5ea1b7('0x5c')](_0x5ea1b7('0x33'))[_0x5ea1b7('0x4f')]([_0x5ea1b7('0x2d'),_0x5ea1b7('0x5'),_0x5ea1b7('0x69'),'ListId',_0x57d539,_0x5ea1b7('0x31'),'updatedAt'],squel['select']()['field'](_0x5ea1b7('0x2d'),_0x5ea1b7('0x2d'))['field'](_0x5ea1b7('0x3b'),'scheduledAt')[_0x5ea1b7('0x2')]('id',_0x5ea1b7('0x69'))[_0x5ea1b7('0x2')](LISTID[_0x5ea1b7('0x57')](),_0x5ea1b7('0x3c'))[_0x5ea1b7('0x2')](_0x2ccc29['id'][_0x5ea1b7('0x57')](),_0x57d539)[_0x5ea1b7('0x2')](_0x5ea1b7('0x3b'),_0x5ea1b7('0x31'))['field'](_0x5ea1b7('0x3b'),_0x5ea1b7('0xe'))[_0x5ea1b7('0x21')]('cm_contacts')[_0x5ea1b7('0x20')]('deletedAt\x20IS\x20NULL')[_0x5ea1b7('0x20')](_0x5ea1b7('0x12'),LISTID[_0x5ea1b7('0x57')]())[_0x5ea1b7('0x20')](_0x5ea1b7('0x53'),squel['str'](hopperContacts))[_0x5ea1b7('0x20')](_0x5ea1b7('0x56')))[_0x5ea1b7('0x57')]();return _0x4250cb;}function _0x227fa9(_0x2e8d32,_0x523000){const _0x12d0dd=a830_0x22d0,_0x4419fa=squel['insert']()['into'](_0x12d0dd('0x5e'))[_0x12d0dd('0x4f')]([_0x12d0dd('0x2d'),'ContactId','ListId',_0x523000,'createdAt','updatedAt'],squel[_0x12d0dd('0x39')]()[_0x12d0dd('0x2')]('phone',_0x12d0dd('0x2d'))[_0x12d0dd('0x2')]('id','ContactId')[_0x12d0dd('0x2')](LISTID['toString'](),_0x12d0dd('0x3c'))[_0x12d0dd('0x2')](_0x2e8d32['id']['toString'](),_0x523000)[_0x12d0dd('0x2')](_0x12d0dd('0x3b'),_0x12d0dd('0x31'))[_0x12d0dd('0x2')](_0x12d0dd('0x3b'),_0x12d0dd('0xe'))['from']('cm_contacts')[_0x12d0dd('0x20')]('deletedAt\x20IS\x20NULL')[_0x12d0dd('0x20')]('ListId\x20=\x20?',LISTID[_0x12d0dd('0x57')]())[_0x12d0dd('0x20')](_0x12d0dd('0x53'),squel[_0x12d0dd('0x14')](hopperContacts))[_0x12d0dd('0x20')]('phone\x20IS\x20NOT\x20NULL'))[_0x12d0dd('0x57')]();return _0x4419fa;}return db[_0x3619a0('0x4b')][_0x3619a0('0xa')]({'where':{'type':'outbound'},'attributes':['id',_0x3619a0('0x13')],'include':[{'model':db[_0x3619a0('0x28')],'as':'Lists','where':{'id':LISTID}}]})['then'](function(_0x15ee95){const _0x90acd4=_0x3619a0,_0x33d76b=[];if(_0x15ee95)for(let _0x5957b7=0x0,_0x203350;_0x5957b7<_0x15ee95[_0x90acd4('0x52')];_0x5957b7+=0x1){_0x203350=_0x15ee95[_0x5957b7][_0x90acd4('0x42')]({'plain':!![]});switch(_0x203350[_0x90acd4('0x13')]){case _0x90acd4('0x11'):_0x33d76b[_0x90acd4('0x6')](db[_0x90acd4('0x2c')][_0x90acd4('0x40')](_0x2aec54(_0x203350,_0x90acd4('0x45')))[_0x90acd4('0x15')](function(){})[_0x90acd4('0x5d')](_0x5a4657()));break;case _0x90acd4('0x24'):_0x33d76b['push'](db['sequelize'][_0x90acd4('0x40')](_0x2f2d21(_0x203350,_0x90acd4('0x45')))['then'](function(){})[_0x90acd4('0x5d')](_0x5a4657()));break;default:_0x33d76b[_0x90acd4('0x6')](db['sequelize'][_0x90acd4('0x40')](_0x5d0125(_0x203350,'VoiceQueueId'))[_0x90acd4('0x15')](function(){})['catch'](_0x5a4657()));}}return _0x33d76b;})['all']()[_0x3619a0('0x15')](function(){const _0x1f43e8=_0x3619a0;return db[_0x1f43e8('0x4b')][_0x1f43e8('0xa')]({'where':{'type':_0x1f43e8('0x43')},'attributes':['id'],'include':[{'model':db['CmList'],'as':_0x1f43e8('0x1c'),'where':{'id':LISTID}}]})[_0x1f43e8('0x15')](function(_0x148a2e){const _0xabcb5a=_0x1f43e8,_0x42e052=[];if(_0x148a2e)for(let _0x53ee30=0x0,_0x3f11e2;_0x53ee30<_0x148a2e['length'];_0x53ee30+=0x1){_0x3f11e2=_0x148a2e[_0x53ee30][_0xabcb5a('0x42')]({'plain':!![]}),_0x42e052[_0xabcb5a('0x6')](db['sequelize']['query'](_0x227fa9(_0x3f11e2,_0xabcb5a('0x45')))[_0xabcb5a('0x15')](function(){})[_0xabcb5a('0x5d')](_0x5a4657()));}return _0x42e052;})[_0x1f43e8('0x38')]();})[_0x3619a0('0x15')](function(){const _0x4b3a5f=_0x3619a0;return db[_0x4b3a5f('0x48')][_0x4b3a5f('0xa')]({'attributes':['id',_0x4b3a5f('0x13')],'include':[{'model':db[_0x4b3a5f('0x28')],'as':_0x4b3a5f('0x62'),'where':{'id':LISTID}}]})[_0x4b3a5f('0x15')](function(_0x3d532e){const _0x18a2e0=_0x4b3a5f,_0x5e77cb=[];if(_0x3d532e)for(let _0x4f3a0d=0x0,_0x2b8be3;_0x4f3a0d<_0x3d532e[_0x18a2e0('0x52')];_0x4f3a0d+=0x1){_0x2b8be3=_0x3d532e[_0x4f3a0d][_0x18a2e0('0x42')]({'plain':!![]});switch(_0x2b8be3['dialCheckDuplicateType']){case _0x18a2e0('0x11'):_0x5e77cb[_0x18a2e0('0x6')](db[_0x18a2e0('0x2c')][_0x18a2e0('0x40')](_0x2aec54(_0x2b8be3,_0x18a2e0('0x65')))['then'](function(){})[_0x18a2e0('0x5d')](_0x5a4657()));break;case _0x18a2e0('0x24'):_0x5e77cb[_0x18a2e0('0x6')](db[_0x18a2e0('0x2c')][_0x18a2e0('0x40')](_0x2f2d21(_0x2b8be3,_0x18a2e0('0x65')))[_0x18a2e0('0x15')](function(){})[_0x18a2e0('0x5d')](_0x5a4657()));break;default:_0x5e77cb['push'](db[_0x18a2e0('0x2c')][_0x18a2e0('0x40')](_0x5d0125(_0x2b8be3,'CampaignId'))[_0x18a2e0('0x15')](function(){})['catch'](_0x5a4657()));}}return _0x5e77cb;})['all']();})[_0x3619a0('0x15')](function(){const _0x47849c=_0x3619a0;return db[_0x47849c('0x48')][_0x47849c('0xa')]({'attributes':['id'],'include':[{'model':db[_0x47849c('0x28')],'as':'BlackLists','where':{'id':LISTID}}]})[_0x47849c('0x15')](function(_0x461254){const _0x4f0a55=_0x47849c,_0x23b296=[];if(_0x461254)for(let _0x124754=0x0,_0x5cbd62;_0x124754<_0x461254['length'];_0x124754+=0x1){_0x5cbd62=_0x461254[_0x124754][_0x4f0a55('0x42')]({'plain':!![]}),_0x23b296[_0x4f0a55('0x6')](db[_0x4f0a55('0x2c')]['query'](_0x227fa9(_0x5cbd62,_0x4f0a55('0x65')))[_0x4f0a55('0x15')](function(){})['catch'](_0x5a4657()));}return _0x23b296;})['all']();})['catch'](function(_0x309374){const _0x3dc3f9=_0x3619a0;logger[_0x3dc3f9('0x49')](_0x3dc3f9('0x29'),_0x3dc3f9('0x3d'),_0x309374[_0x3dc3f9('0x5f')]);});}const processPromises=function(_0x106e26){const _0x3c10d0=_0x57015e;return Promise[_0x3c10d0('0x38')](promises)['catch'](function(_0x379f16){const _0xd83270=_0x3c10d0;logger[_0xd83270('0x49')](_0xd83270('0x1'),JSON[_0xd83270('0xb')](_0x379f16));})['finally'](function(){const _0x2e6abe=_0x3c10d0;socket[_0x2e6abe('0x22')]('contact:csv_'+SOCKET_TIMESTAMP,{'success':success,'errors':errors,'duplicates':duplicates,'rows':rows}),promises=[],success=0x0,errors=0x0,duplicates=0x0,rows=[];if(_0x106e26)return _0x106e26[_0x2e6abe('0x4e')]();});},endCsv=function(){const _0x488444=_0x57015e;return Promise[_0x488444('0x4d')]()['then'](function(){if(hopperContacts)return checkHopper();})['then'](function(){const _0xcdbe03=_0x488444;socket[_0xcdbe03('0x22')](_0xcdbe03('0x3a')+SOCKET_TIMESTAMP,{'finished':!![],'success':success,'errors':errors,'duplicates':duplicates,'rows':rows});try{fs[_0xcdbe03('0x59')](FILEPATH);}catch(_0x2baae8){logger[_0xcdbe03('0x49')](_0xcdbe03('0x66'),JSON[_0xcdbe03('0xb')](_0x2baae8));}finally{process['exit'](0x0);}});};process['on'](_0x57015e('0x41'),function(){const _0x181fe4=_0x57015e;logger[_0x181fe4('0x1f')](_0x181fe4('0x54')),endCsv();});function main(){const _0x312ec0=_0x57015e;return Promise[_0x312ec0('0x4d')]()[_0x312ec0('0x15')](function(){const _0x3bb865=_0x312ec0;if(DUPLICATES)return DUPLICATES=DUPLICATES[_0x3bb865('0x3e')](','),db[_0x3bb865('0x2a')][_0x3bb865('0xa')]({'where':{'ListId':LISTID},'attributes':DUPLICATES,'raw':!![]});})['then'](function(_0x2e1245){const _0x586795=_0x312ec0,_0x17ffff=fs[_0x586795('0x9')](FILEPATH,{'highWaterMark':0xf*0x400*0x400});Papa[_0x586795('0x2f')](_0x17ffff,{'header':!![],'skipEmptyLines':!![],'step':function(_0x4e47cc,_0x41048e){const _0x56f5a1=_0x586795;total+=0x1;const _0x572acb=total;promises[_0x56f5a1('0x6')](checkRow(_0x4e47cc,_0x2e1245,_0x572acb)[_0x56f5a1('0x15')](function(){success+=0x1;})[_0x56f5a1('0x5d')](function(_0x48a762){const _0xe01ff=_0x56f5a1;if(_0x48a762[_0xe01ff('0x49')])errors+=0x1,delete _0x48a762[_0xe01ff('0x49')];else _0x48a762[_0xe01ff('0x6b')]&&(duplicates+=0x1,delete _0x48a762['duplicate']);rows[_0xe01ff('0x6')](_0x48a762);}));if(total%0xc8===0x0)return _0x41048e[_0x56f5a1('0x68')](),processPromises(_0x41048e);},'complete':function(){const _0x2391ca=_0x586795;return processPromises()[_0x2391ca('0x15')](function(){const _0x4a769e=_0x2391ca;logger[_0x4a769e('0x1f')](_0x4a769e('0x25')),endCsv();});},'error':function(_0x3b88c6){const _0x24ae1d=_0x586795;logger[_0x24ae1d('0x1f')]('CSV\x20parse\x20error',JSON[_0x24ae1d('0xb')](_0x3b88c6)),endCsv();}});})[_0x312ec0('0x5d')](function(_0x22631a){const _0x4a6730=_0x312ec0;logger[_0x4a6730('0x49')](_0x4a6730('0x34'),JSON[_0x4a6730('0xb')](_0x22631a));});}main(); \ No newline at end of file +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 diff --git a/server/components/import/cm/csv2.js b/server/components/import/cm/csv2.js index 37fc8a0..1b8bd68 100644 --- a/server/components/import/cm/csv2.js +++ b/server/components/import/cm/csv2.js @@ -1 +1 @@ -const a831_0x8ac6=['path','papaparse','file\x20doesn\x27t\x20exists','.CmListId','start',')\x20NOT\x20IN\x20?','cm_contacts.createdAt\x20=\x20?','firstName\x20is\x20mandatory','catch','errors','cm_hopper','cm_contacts','phone','lodash','voice_queues_has_cm_blacklists','import','writeFileSync','binding\x20doesn\x27t\x20exists','SIGINT','Abort\x20parser','agent\x20not\x20exists','then','undefined','../../../rediscache','message','contact:import:','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','isNaN','createReadStream','info','phone\x20is\x20mandatory','code','group','DROP\x20TABLE\x20','cm_contacts.phone\x20NOT\x20IN\x20(?)','push','CompanyId','campaigns_has_cm_lists','includes','ListId\x20=\x20?','format','unlink','parse','arguments\x20\x20\x20','error','MIN(id)','email\x20wrong\x20format','length','../../../config/logger','test','YYYY-MM-DD','complete','body\x20id\x20mandatory','UserId','min_id','scheduledat','recallme','cm_contacts.UserId','cm_contacts.ListId\x20=\x20','field','firstName','join','appendFileSync','isValid','.CmListId\x20=\x20?','isNumber','emit','main','duplicates','map',',\x20scheduledAt\x20=\x20NOW()','send','Received\x20SIGINT','insert','updatedAt','\x20=\x20','cm_contacts.createdAt','dateOfBirth','ContactId','concat','ListId','cm_contacts.scheduledat','../../../config/environment','moment','priority','voice_queues_has_cm_lists','data','\x22always\x22','CampaignId','cm_contacts.phone','No\x20agent\x20available','binding','SystemError','YYYY-MM-DD\x20HH:mm:ss','VoiceQueueId','createdAt','voice_queues','cm_contacts.ListId','scheduledat\x20wrong\x20format\x20(YYYY-MM-DD\x20HH:mm:ss)','replace','.id\x20=\x20','rows','SystemRow','keys','server/files/tmp','step','cm_contacts_','../../../mysqldb','.csv','ListId\x20is\x20mandatory','toString','fields','cm_hopper_black','campaigns','email','query','sequelize','from','cm_contacts.id','select','argv','affectedRows','root','\x20=\x20?','into','CREATE\x20TABLE\x20','where','socket_timestamp'];(function(_0x3e6d63,_0x8ac61b){const _0x412606=function(_0x58e456){while(--_0x58e456){_0x3e6d63['push'](_0x3e6d63['shift']());}};_0x412606(++_0x8ac61b);}(a831_0x8ac6,0x163));const a831_0x4126=function(_0x3e6d63,_0x8ac61b){_0x3e6d63=_0x3e6d63-0x0;let _0x412606=a831_0x8ac6[_0x3e6d63];return _0x412606;};const _0x335f84=a831_0x4126;'use strict';const fs=require('fs'),path=require(_0x335f84('0x1d')),_=require(_0x335f84('0x2a')),Papa=require(_0x335f84('0x1e')),util=require('util'),moment=require(_0x335f84('0x70')),squel=require('squel'),db=require(_0x335f84('0x8'))['db'],config=require(_0x335f84('0x6f')),logger=require(_0x335f84('0x4d'))(_0x335f84('0x2c')),{getSocket}=require(_0x335f84('0x34')),socket=getSocket(),stats={'finish':![],'errors':[],'rows':0x0,'affectedRows':0x0},results=[];let stopped=![];const NOW=moment()[_0x335f84('0x45')](_0x335f84('0x7a'));function isEmail(_0x58e456){const _0x73f6bb=_0x335f84;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))*$/[_0x73f6bb('0x4e')](_0x58e456);}function selectNotIn(_0x20f413,_0x2a64bc,_0x43003b,_0x306247,_0x63589){const _0x13d9e5=_0x335f84;return squel['select']()[_0x13d9e5('0x58')](_0x13d9e5('0x29'))[_0x13d9e5('0x12')](_0x306247)[_0x13d9e5('0x5a')](_0x2a64bc,null,_0x2a64bc+_0x13d9e5('0x1')+_0x306247+'.'+_0x43003b)[_0x13d9e5('0x1b')](_0x306247+'.'+_0x43003b+_0x13d9e5('0x68')+_0x20f413+'.'+_0x43003b)[_0x13d9e5('0x1b')](_0x2a64bc+'.dialCheckDuplicateType\x20IN\x20('+_0x63589[_0x13d9e5('0x5a')]()+')');}function insertCmHopper(_0x186802,_0x5c9a4c,_0x174c19,_0x2dd800,_0x520dc9){const _0xa867ad=_0x335f84,_0x2b527f=[_0xa867ad('0x76'),_0xa867ad('0x6e'),_0xa867ad('0x13'),'cm_contacts.ListId',_0x5c9a4c+'.'+_0x2dd800,'cm_contacts.createdAt','cm_contacts.updatedAt','cm_contacts.priority',_0xa867ad('0x56'),'\x22'+_0x520dc9+'\x22'];return squel[_0xa867ad('0x66')]()[_0xa867ad('0x19')](_0xa867ad('0x27'))['fromQuery'](['phone','scheduledat',_0xa867ad('0x6b'),_0xa867ad('0x6d'),_0x2dd800,_0xa867ad('0x7c'),_0xa867ad('0x67'),_0xa867ad('0x71'),_0xa867ad('0x52'),_0xa867ad('0x55')],squel[_0xa867ad('0x14')]()[_0xa867ad('0xc')](_0x2b527f)['from'](_0x5c9a4c)[_0xa867ad('0x5a')](_0xa867ad('0x28'),null,_0xa867ad('0x57')+_0x5c9a4c+_0xa867ad('0x20'))[_0xa867ad('0x5a')](_0x174c19,null,_0x174c19+_0xa867ad('0x1')+_0x5c9a4c+'.'+_0x2dd800)['where'](_0x5c9a4c+_0xa867ad('0x5d'),_0x186802)[_0xa867ad('0x1b')](_0xa867ad('0x23'),NOW)[_0xa867ad('0x1b')](_0xa867ad('0x3f'),selectNotIn(_0x5c9a4c,_0x174c19,_0x2dd800,_0xa867ad('0x27'),[_0xa867ad('0x74'),'\x22onlyIfOpen\x22']))['where'](_0xa867ad('0x3f'),selectNotIn(_0x5c9a4c,_0x174c19,_0x2dd800,'cm_hopper',[_0xa867ad('0x74')])))['toString']();}function insertCmHopperBlack(_0x1f220c,_0x55364a,_0x464b9d,_0x528ce9){const _0x5717c4=_0x335f84,_0x48a2f6=[_0x5717c4('0x76'),'cm_contacts.id',_0x5717c4('0x7e'),_0x55364a+'.'+_0x528ce9,_0x5717c4('0x69'),'cm_contacts.updatedAt'];return squel[_0x5717c4('0x66')]()[_0x5717c4('0x19')](_0x5717c4('0xd'))['fromQuery']([_0x5717c4('0x29'),_0x5717c4('0x6b'),'ListId',_0x528ce9,'createdAt',_0x5717c4('0x67')],squel[_0x5717c4('0x14')]()[_0x5717c4('0xc')](_0x48a2f6)[_0x5717c4('0x12')](_0x55364a)[_0x5717c4('0x5a')](_0x5717c4('0x28'),null,_0x5717c4('0x57')+_0x55364a+_0x5717c4('0x20'))['join'](_0x464b9d,null,_0x464b9d+'.id\x20=\x20'+_0x55364a+'.'+_0x528ce9)[_0x5717c4('0x1b')](_0x55364a+_0x5717c4('0x5d'),_0x1f220c)['where'](_0x5717c4('0x23'),NOW)[_0x5717c4('0x1b')](_0x5717c4('0x3f'),squel[_0x5717c4('0x14')]()[_0x5717c4('0x58')]('phone')[_0x5717c4('0x12')](_0x5717c4('0xd'))['where']('ListId\x20=\x20?',_0x1f220c)[_0x5717c4('0x1b')](_0x528ce9+_0x5717c4('0x18'),_0x55364a+'.'+_0x528ce9)))[_0x5717c4('0xb')]();}function insertCmContact(_0x24bd68,_0x5e9fb4,_0x1bdc35,_0x2370dc){const _0x23de49=_0x335f84,_0x6e056c=_[_0x23de49('0x6c')](_[_0x23de49('0x4')](_0x2370dc),[_0x23de49('0x6d'),_0x23de49('0x41'),_0x23de49('0x7c'),_0x23de49('0x67')]);return squel[_0x23de49('0x66')]()[_0x23de49('0x19')]('cm_contacts')['fromQuery'](_0x6e056c,squel['select']()[_0x23de49('0xc')](_0x6e056c)[_0x23de49('0x12')](_0x5e9fb4)[_0x23de49('0x1b')]('('+_0x1bdc35[_0x23de49('0x5a')](',')+_0x23de49('0x22'),squel[_0x23de49('0x14')]()[_0x23de49('0xc')](_0x1bdc35)[_0x23de49('0x12')](_0x23de49('0x28'))[_0x23de49('0x1b')](_0x23de49('0x44'),_0x24bd68)['where']('deletedAt\x20IS\x20NULL'))['where']('id\x20IN\x20?',squel[_0x23de49('0x14')]()[_0x23de49('0x58')](_0x23de49('0x4a'),_0x23de49('0x53'))['from'](_0x5e9fb4)[_0x23de49('0x3d')](_0x1bdc35[_0x23de49('0x5a')](','))))['toString']();}function handleStop(){const _0x35a26c=_0x335f84;logger[_0x35a26c('0x3a')](_0x35a26c('0x65')),stopped=!![];}function handleUncaughtException(_0x2c1ea9){const _0x569188=_0x335f84;logger[_0x569188('0x49')](_0x2c1ea9[_0x569188('0x35')]);throw _0x2c1ea9;}function handleError(_0x248bdf,_0xfb5505){const _0x32abd7=_0x335f84;stats['errors'][_0x32abd7('0x40')]({'name':_0xfb5505[_0x32abd7('0x3c')],'message':_0xfb5505['message'],'row':_0x248bdf});}function handleQuery(_0x5aa05d){const _0x48c6fb=_0x335f84;return logger[_0x48c6fb('0x3a')](_0x5aa05d),db[_0x48c6fb('0x11')][_0x48c6fb('0x10')](_0x5aa05d)[_0x48c6fb('0x32')](function([_0x2c9aac]){const _0x45baa3=_0x48c6fb;results[_0x45baa3('0x40')](_0x2c9aac);})['catch'](function(_0x15b5d2){const _0xfe1ede=_0x48c6fb;logger[_0xfe1ede('0x49')](_0x15b5d2[_0xfe1ede('0x35')]);});}function main(_0x5eec79,_0x32d3b4,_0x14e7d3,_0x3b635c){const _0x53c372=_0x335f84;logger[_0x53c372('0x3a')](_0x53c372('0x60'),_0x5eec79,JSON['stringify'](_0x32d3b4)),process[_0x53c372('0x64')](_0x53c372('0x21'));const _0x4b6eb0=_0x32d3b4[_0x53c372('0x78')],_0x45e876=_0x32d3b4[_0x53c372('0x1c')],_0x47bc89=path[_0x53c372('0x5a')](config['root'],'server/files/tmp',_0x45e876+_0x53c372('0x9')),_0x5028dd=_[_0x53c372('0x4')](_0x4b6eb0)['join']();logger[_0x53c372('0x3a')]('header',_0x5028dd),fs[_0x53c372('0x2d')](_0x47bc89,_0x5028dd+'\x0a'),Papa[_0x53c372('0x47')](fs[_0x53c372('0x39')](_0x5eec79),{'header':!![],'skipEmptyLines':!![],'step':function(_0x93b101,_0x456721){const _0x531aa1=_0x53c372;let _0x55c09f=0x0,_0x5e41c0=[];try{for(_0x55c09f=0x0,_0x5e41c0=[];_0x55c09f<_0x93b101[_0x531aa1('0x73')]['length'];_0x55c09f++){stats[_0x531aa1('0x2')]+=0x1;if(_0x93b101[_0x531aa1('0x26')][_0x55c09f])handleError(_0x93b101[_0x531aa1('0x73')][_0x55c09f],_0x93b101[_0x531aa1('0x26')][_0x55c09f]);else{const _0x37d763=[];for(const _0x3c3089 in _0x4b6eb0){if(typeof _0x4b6eb0[_0x3c3089]!==_0x531aa1('0x33')){if(_0x93b101[_0x531aa1('0x73')][_0x55c09f][_0x4b6eb0[_0x3c3089]]){let _0xdc581d=_['trim'](_0x93b101[_0x531aa1('0x73')][_0x55c09f][_0x4b6eb0[_0x3c3089]][_0x531aa1('0x0')](/"/g,'\x27'));switch(_0x3c3089){case _0x531aa1('0x54'):{const _0x214d2d=moment(_0xdc581d,'YYYY-MM-DD\x20HH:mm:ss',!![]);_0x214d2d[_0x531aa1('0x5c')]()?_0x5e41c0[_0x531aa1('0x40')]('\x22'+_0xdc581d+'\x22'):_0x37d763[_0x531aa1('0x40')](_0x531aa1('0x7f'));}break;case _0x531aa1('0x71'):{const _0x5797c0=parseInt(_0xdc581d);_0xdc581d=_[_0x531aa1('0x38')](_0x5797c0)||_0x5797c0<0x0||_0x5797c0>0x4?_0x3b635c?0x3:0x2:_0x5797c0,_0x5e41c0[_0x531aa1('0x40')]('\x22'+_0xdc581d+'\x22');}break;case _0x531aa1('0x52'):{const _0x9d7d84=parseInt(_0xdc581d);_[_0x531aa1('0x5e')](_0x9d7d84)&&_[_0x531aa1('0x43')](_0x14e7d3,_0x9d7d84)?_0x5e41c0[_0x531aa1('0x40')]('\x22'+_0x9d7d84+'\x22'):_0x37d763[_0x531aa1('0x40')](_0x531aa1('0x31'));}break;case _0x531aa1('0xf'):isEmail(_0xdc581d)?_0x5e41c0[_0x531aa1('0x40')]('\x22'+_0xdc581d+'\x22'):_0x37d763[_0x531aa1('0x40')](_0x531aa1('0x4b'));break;case _0x531aa1('0x6a'):{const _0x445a99=moment(_0xdc581d,_0x531aa1('0x4f'),!![]);_0x445a99[_0x531aa1('0x5c')]()?_0x5e41c0['push']('\x22'+_0xdc581d+'\x22'):_0x37d763[_0x531aa1('0x40')]('dateOfBirth\x20wrong\x20format\x20(YYYY-MM-DD)');}break;default:_0x5e41c0['push']('\x22'+_0xdc581d+'\x22');}}else switch(_0x3c3089){case _0x531aa1('0x59'):case _0x531aa1('0x29'):_0x37d763[_0x531aa1('0x40')](_0x3c3089+'\x20not\x20specified');break;default:_0x5e41c0[_0x531aa1('0x40')]('\x22\x22');}}}_0x37d763[_0x531aa1('0x4c')]?handleError(_0x93b101[_0x531aa1('0x73')][_0x55c09f],{'code':_0x531aa1('0x3'),'message':_0x37d763[_0x531aa1('0x5a')]()}):fs[_0x531aa1('0x5b')](_0x47bc89,_0x5e41c0[_0x531aa1('0x5a')]()+'\x0a'),_0x5e41c0=[];}!(stats['rows']%0xc8)&&(socket[_0x531aa1('0x5f')]('contact:import:'+_0x45e876,stats),stats['errors']=[]);}stopped&&(logger[_0x531aa1('0x3a')](_0x531aa1('0x30')),_0x456721['abort']());}catch(_0x3e3527){handleError(_0x93b101[_0x531aa1('0x73')][_0x55c09f],{'code':_0x531aa1('0x79'),'message':_0x3e3527[_0x531aa1('0x35')]}),logger['error'](_0x531aa1('0x6'),_0x3e3527[_0x531aa1('0x35')]);}},'complete':function(){const _0x426fce=_0x53c372;try{const _0x5e5f88=[];let _0x2b32d1='cm_contacts';_0x32d3b4[_0x426fce('0x61')]&&_0x32d3b4[_0x426fce('0x61')][_0x426fce('0x4c')]&&(_0x2b32d1=_0x426fce('0x7')+_0x45e876,_0x5e5f88[_0x426fce('0x40')](_0x426fce('0x1a')+_0x2b32d1+'\x20LIKE\x20cm_contacts;'));let _0xdf28bb=util['format'](_0x426fce('0x37'),_0x47bc89,_0x2b32d1,_0x5028dd,_0x32d3b4[_0x426fce('0x6d')],_0x32d3b4[_0x426fce('0x41')]||null,NOW,NOW);_['isNil'](_0x4b6eb0['scheduledat'])&&(_0xdf28bb+=_0x426fce('0x63')),_0x5e5f88[_0x426fce('0x40')](_0xdf28bb),_0x32d3b4[_0x426fce('0x61')]&&_0x32d3b4[_0x426fce('0x61')][_0x426fce('0x4c')]&&(_0x5e5f88['push'](insertCmContact(_0x32d3b4[_0x426fce('0x6d')],_0x2b32d1,_0x32d3b4['duplicates'],_0x4b6eb0)),_0x5e5f88[_0x426fce('0x40')](_0x426fce('0x3e')+_0x2b32d1+';')),_0x5e5f88[_0x426fce('0x40')](insertCmHopper(_0x32d3b4['ListId'],_0x426fce('0x72'),_0x426fce('0x7d'),'VoiceQueueId',_0x3b635c)),_0x5e5f88[_0x426fce('0x40')](insertCmHopperBlack(_0x32d3b4[_0x426fce('0x6d')],_0x426fce('0x2b'),_0x426fce('0x7d'),_0x426fce('0x7b'))),_0x5e5f88[_0x426fce('0x40')](insertCmHopper(_0x32d3b4[_0x426fce('0x6d')],_0x426fce('0x42'),_0x426fce('0xe'),'CampaignId',_0x3b635c)),_0x5e5f88['push'](insertCmHopperBlack(_0x32d3b4[_0x426fce('0x6d')],'campaigns_has_cm_blacklists',_0x426fce('0xe'),_0x426fce('0x75'))),Promise['each'](_0x5e5f88,handleQuery)[_0x426fce('0x32')](function(){const _0x10c608=_0x426fce;stats['finish']=!![],stats['affectedRows']=_0x32d3b4[_0x10c608('0x61')]&&_0x32d3b4[_0x10c608('0x61')][_0x10c608('0x4c')]?results[0x2][_0x10c608('0x16')]:results[0x0]['affectedRows'],socket[_0x10c608('0x5f')](_0x10c608('0x36')+_0x45e876,stats),fs[_0x10c608('0x46')](_0x5eec79),fs[_0x10c608('0x46')](_0x47bc89),process['exit'](0x0);})[_0x426fce('0x25')](function(_0x54ccf9){const _0x16cf0c=_0x426fce;logger[_0x16cf0c('0x49')](_0x54ccf9[_0x16cf0c('0x35')]);throw _0x54ccf9;});}catch(_0x251678){logger['error'](_0x426fce('0x50'),_0x251678['message']);throw _0x251678;}},'error':function(_0x359212,_0x88f695,_0x42a35d,_0x4b3d3e){throw new Error(_0x4b3d3e);}});}function validate(){const _0x445a10=_0x335f84;if(process['argv']&&process[_0x445a10('0x15')]['length']<0x4)throw new Error(_0x445a10('0x48'));const _0x17dc32=path['join'](config[_0x445a10('0x17')],_0x445a10('0x5'),process[_0x445a10('0x15')][0x2]);if(!fs['existsSync'](_0x17dc32))throw new Error(_0x445a10('0x1f'));let _0x561906={},_0x5862c1=0x0;try{_0x561906=JSON[_0x445a10('0x47')](process[_0x445a10('0x15')][0x3]);if(!_0x561906[_0x445a10('0x78')])throw new Error(_0x445a10('0x2e'));if(!_0x561906[_0x445a10('0x78')]['phone'])throw new Error(_0x445a10('0x3b'));if(!_0x561906[_0x445a10('0x78')]['firstName'])throw new Error(_0x445a10('0x24'));_0x561906['binding']['UserId']&&(_0x5862c1=0x1);if(!_0x561906[_0x445a10('0x6d')])throw new Error(_0x445a10('0xa'));}catch(_0x33ff91){throw new Error(_0x445a10('0x51'));}let _0x451971=[];try{_0x451971=_[_0x445a10('0x62')](JSON[_0x445a10('0x47')](process[_0x445a10('0x15')][0x4]),'id');}catch(_0xc6647f){logger[_0x445a10('0x3a')](_0x445a10('0x77'));}main(_0x17dc32,_0x561906,_0x451971,_0x5862c1);}validate(),process['on'](_0x335f84('0x2f'),handleStop),process['on']('uncaughtException',handleUncaughtException); \ No newline at end of file +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 diff --git a/server/components/integrations/configuration.js b/server/components/integrations/configuration.js index f8a734c..a599a42 100644 --- a/server/components/integrations/configuration.js +++ b/server/components/integrations/configuration.js @@ -1 +1 @@ -const a832_0x44a1=['Member\x20Name','push','getDescriptions','Caller\x20Name','getSubjects','Agent\x20Connect','endtime','queue','Agent\x20Complete','calleridnum','variable','Billable\x20Time','UniqueId','***\x20Agent\x20Info\x20***','toLowerCase','inbound','Called\x20Number','outbound','Agent\x20Number','string','starttime','destcalleridname','duration','Caller\x20Number','destcalleridnum','Talk\x20Time','Complete\x20Time','calleridname','uniqueid','[xCALLY\x20Ticket]','answertime','***\x20Call\x20Info\x20***','Answer\x20Time','billableseconds','Agent\x20Ring','Agent\x20Name','Duration','Date','talktime','membername','voice','keyValue','Hold\x20Time'];(function(_0x2bec5f,_0x44a1dc){const _0x58d1f8=function(_0xf0cc06){while(--_0xf0cc06){_0x2bec5f['push'](_0x2bec5f['shift']());}};_0x58d1f8(++_0x44a1dc);}(a832_0x44a1,0xf4));const a832_0x58d1=function(_0x2bec5f,_0x44a1dc){_0x2bec5f=_0x2bec5f-0x0;let _0x58d1f8=a832_0x44a1[_0x2bec5f];return _0x58d1f8;};const _0x2d41a1=a832_0x58d1;'use strict';exports[_0x2d41a1('0x12')]=function(_0xf0cc06,_0x2f673f){const _0x3226c1=_0x2d41a1,_0x2e3800=[{'type':'string','content':_0x3226c1('0x0'),'variableName':null}];switch(_0xf0cc06[_0x3226c1('0x1c')]()){case _0x3226c1('0xb'):switch(_0x2f673f[_0x3226c1('0x1c')]()){case'inbound':_0x2e3800[_0x3226c1('0xf')]({'type':'variable','content':'','variableName':'queue'}),_0x2e3800[_0x3226c1('0xf')]({'type':_0x3226c1('0x18'),'content':'','variableName':_0x3226c1('0x17')});break;case _0x3226c1('0x1f'):_0x2e3800[_0x3226c1('0xf')]({'type':_0x3226c1('0x21'),'content':'Outbound\x20Call','variableName':null}),_0x2e3800[_0x3226c1('0xf')]({'type':'variable','content':'','variableName':'destcalleridnum'});break;}}return _0x2e3800;},exports[_0x2d41a1('0x10')]=function(_0x13937e,_0x47c9e6){const _0x1ecdb2=_0x2d41a1;let _0x35e29c=[];switch(_0x13937e[_0x1ecdb2('0x1c')]()){case _0x1ecdb2('0xb'):switch(_0x47c9e6[_0x1ecdb2('0x1c')]()){case _0x1ecdb2('0x1d'):_0x35e29c=[{'type':_0x1ecdb2('0x21'),'content':_0x1ecdb2('0x2'),'key':null,'keyType':null,'variableName':null},{'type':_0x1ecdb2('0xc'),'content':'','key':_0x1ecdb2('0x25'),'keyType':_0x1ecdb2('0x18'),'variableName':'calleridnum'},{'type':'keyValue','content':'','key':_0x1ecdb2('0x11'),'keyType':_0x1ecdb2('0x18'),'variableName':_0x1ecdb2('0x29')},{'type':_0x1ecdb2('0xc'),'content':'','key':'Call\x20To','keyType':_0x1ecdb2('0x18'),'variableName':'destexten'},{'type':_0x1ecdb2('0xc'),'content':'','key':'Queue','keyType':_0x1ecdb2('0x18'),'variableName':_0x1ecdb2('0x15')},{'type':_0x1ecdb2('0xc'),'content':'','key':_0x1ecdb2('0x1a'),'keyType':_0x1ecdb2('0x18'),'variableName':'uniqueid'},{'type':_0x1ecdb2('0xc'),'content':'','key':'Date','keyType':'variable','variableName':'agentcalledAt'},{'type':_0x1ecdb2('0x21'),'content':_0x1ecdb2('0x1b'),'key':null,'keyType':null,'variableName':null},{'type':_0x1ecdb2('0xc'),'content':'','key':_0x1ecdb2('0x6'),'keyType':_0x1ecdb2('0x18'),'variableName':_0x1ecdb2('0x23')},{'type':_0x1ecdb2('0xc'),'content':'','key':_0x1ecdb2('0x20'),'keyType':_0x1ecdb2('0x18'),'variableName':'destcalleridnum'},{'type':_0x1ecdb2('0x21'),'content':'***\x20Time\x20Info\x20***','key':null,'keyType':null,'variableName':null},{'type':_0x1ecdb2('0xc'),'content':'','key':_0x1ecdb2('0x5'),'keyType':_0x1ecdb2('0x18'),'variableName':'agentcalledAt'},{'type':'keyValue','content':'','key':_0x1ecdb2('0x13'),'keyType':_0x1ecdb2('0x18'),'variableName':'agentconnectAt'},{'type':_0x1ecdb2('0xc'),'content':'','key':_0x1ecdb2('0x16'),'keyType':_0x1ecdb2('0x18'),'variableName':'agentcompleteAt'},{'type':_0x1ecdb2('0xc'),'content':'','key':_0x1ecdb2('0xd'),'keyType':_0x1ecdb2('0x18'),'variableName':'holdtime'},{'type':_0x1ecdb2('0xc'),'content':'','key':_0x1ecdb2('0x27'),'keyType':'variable','variableName':_0x1ecdb2('0x9')}];break;case _0x1ecdb2('0x1f'):_0x35e29c=[{'type':_0x1ecdb2('0x21'),'content':_0x1ecdb2('0x2'),'variableName':null},{'type':_0x1ecdb2('0xc'),'content':'','key':_0x1ecdb2('0x1e'),'keyType':_0x1ecdb2('0x18'),'keyContent':'','variableName':_0x1ecdb2('0x26')},{'type':_0x1ecdb2('0xc'),'content':'','key':_0x1ecdb2('0xe'),'keyType':_0x1ecdb2('0x18'),'keyContent':'','variableName':_0x1ecdb2('0xa')},{'type':_0x1ecdb2('0xc'),'content':'','key':_0x1ecdb2('0x1a'),'keyType':_0x1ecdb2('0x18'),'keyContent':'','variableName':_0x1ecdb2('0x2a')},{'type':_0x1ecdb2('0xc'),'content':'','key':_0x1ecdb2('0x8'),'keyType':_0x1ecdb2('0x18'),'keyContent':'','variableName':_0x1ecdb2('0x22')},{'type':'string','content':'***\x20Time\x20Info\x20***'},{'type':'keyValue','content':'','key':_0x1ecdb2('0x3'),'keyType':_0x1ecdb2('0x18'),'keyContent':'','variableName':_0x1ecdb2('0x1')},{'type':_0x1ecdb2('0xc'),'content':'','key':_0x1ecdb2('0x28'),'keyType':_0x1ecdb2('0x18'),'keyContent':'','variableName':_0x1ecdb2('0x14')},{'type':_0x1ecdb2('0xc'),'content':'','key':_0x1ecdb2('0x7'),'keyType':_0x1ecdb2('0x18'),'keyContent':'','variableName':_0x1ecdb2('0x24')},{'type':_0x1ecdb2('0xc'),'content':'','key':_0x1ecdb2('0x19'),'keyType':_0x1ecdb2('0x18'),'keyContent':'','variableName':_0x1ecdb2('0x4')}];break;}}return _0x35e29c;}; \ No newline at end of file +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 diff --git a/server/components/interaction/service.js b/server/components/interaction/service.js index 4468e77..b9fff51 100644 --- a/server/components/interaction/service.js +++ b/server/components/interaction/service.js @@ -1 +1 @@ -const a833_0xdab7=['mobile','findOne','name','user','upperFirst','role','unknown','omit','query','null','fax','toLowerCase','tracked','whatsapp-interactions','fax-interactions','phone','then','toUpperCase','clone','../../config/logger','catch','info','update','mail-interactions','Interaction','html','sms-interactions','body','chat-interactions','../../mysqldb','[%s]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s'];(function(_0x35e2a7,_0xdab73f){const _0x3e4bf8=function(_0x2d0aa4){while(--_0x2d0aa4){_0x35e2a7['push'](_0x35e2a7['shift']());}};_0x3e4bf8(++_0xdab73f);}(a833_0xdab7,0x79));const a833_0x3e4b=function(_0x35e2a7,_0xdab73f){_0x35e2a7=_0x35e2a7-0x0;let _0x3e4bf8=a833_0xdab7[_0x35e2a7];return _0x3e4bf8;};const _0x4a6d83=a833_0x3e4b;'use strict';const _=require('lodash'),db=require(_0x4a6d83('0x1'))['db'],loggers={'openchannel':require(_0x4a6d83('0x16'))('openchannel-interactions'),'mail':require('../../config/logger')(_0x4a6d83('0x1a')),'fax':require(_0x4a6d83('0x16'))(_0x4a6d83('0x11')),'sms':require('../../config/logger')(_0x4a6d83('0x1d')),'chat':require(_0x4a6d83('0x16'))(_0x4a6d83('0x0')),'whatsapp':require(_0x4a6d83('0x16'))(_0x4a6d83('0x10'))};function getInteractionId(_0x2d0aa4,_0x43a452,_0x34c321){const _0xeb2a5c=_0x4a6d83;if(_0x2d0aa4&&_0x2d0aa4[_['upperFirst'](_0x34c321)+'InteractionId'])return _0x2d0aa4[_['upperFirst'](_0x34c321)+'InteractionId'];else{if(_0x2d0aa4&&_0x2d0aa4['id'])return _0x2d0aa4['id'];else return _0x43a452&&_0x43a452['id']?_0x43a452['id']:_0xeb2a5c('0x9');}}function log(_0x3f349b,_0x4d3af0,_0xc05383,_0x3d3c86,_0x3419af,_0x2651f8){const _0x31534b=_0x4a6d83;loggers[_0x3419af[_0x31534b('0xe')]()][_0x3f349b](_0x31534b('0x2'),_0x2651f8[_0x31534b('0x14')](),_0x4d3af0?_0x4d3af0['id']:null,_0x4d3af0?_0x4d3af0[_0x31534b('0x5')]:null,_0x4d3af0?_0x4d3af0[_0x31534b('0x8')]:null,getInteractionId(_0xc05383,_0x3d3c86,_0x3419af),_0xc05383?JSON['stringify'](_0xc05383):_0x31534b('0xc'));}function updateUser(_0xf3ae6b,_0x25571,_0xcb2839,_0x320a08,_0x5a0113){const _0x484b55=_0x4a6d83;db[_[_0x484b55('0x7')](_0x320a08)+_0x484b55('0x1b')][_0x484b55('0x4')]({'where':{'id':getInteractionId(_0x25571,_0xcb2839,_0x320a08)}})[_0x484b55('0x13')](function(_0x48e343){const _0x36bb80=_0x484b55;if(_0x48e343)return _0x48e343[_0x36bb80('0x19')]({'UserId':_0xf3ae6b?_0xf3ae6b['id']:null});})[_0x484b55('0x13')](function(_0x399e3e){const _0x566a24=_0x484b55;_0x399e3e&&log(_0x566a24('0x18'),_0xf3ae6b,_0x25571,_0xcb2839,_0x320a08,_0x5a0113);})[_0x484b55('0x17')](function(){log('error',_0xf3ae6b,_0x25571,_0xcb2839,_0x320a08,_0x5a0113);});}exports[_0x4a6d83('0xf')]=function(_0x2a9213,_0x6fd49e){return function(_0x2f062f,_0x9d0800,_0x356f9c){const _0x24ffc9=a833_0x3e4b,_0x39f13c=_0x2f062f[_0x24ffc9('0x6')];let _0x4d947d={};const _0x21c324=_0x2f062f[_0x24ffc9('0xb')];_0x4d947d&&(_0x4d947d=_[_0x24ffc9('0x15')](_0x2f062f[_0x24ffc9('0x1e')]),_0x4d947d=_[_0x24ffc9('0xa')](_0x4d947d,['body',_0x24ffc9('0x1c'),_0x24ffc9('0x12'),_0x24ffc9('0xd'),_0x24ffc9('0x3')])),updateUser(_0x39f13c,_0x4d947d,_0x21c324,_0x2a9213,_0x6fd49e),_0x356f9c(null);};}; \ No newline at end of file +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 diff --git a/server/components/license/service.js b/server/components/license/service.js index 4856a34..5d5e1df 100644 --- a/server/components/license/service.js +++ b/server/components/license/service.js @@ -1 +1 @@ -const a834_0x4509=['../encryptor','status','user','User','Maximum\x20%s\x20limit\x20have\x20been\x20reached','json','isUserLimit','format','findOne','util','../../mysqldb','then'];(function(_0x5c493e,_0x450997){const _0x4725a2=function(_0x116656){while(--_0x116656){_0x5c493e['push'](_0x5c493e['shift']());}};_0x4725a2(++_0x450997);}(a834_0x4509,0xd5));const a834_0x4725=function(_0x5c493e,_0x450997){_0x5c493e=_0x5c493e-0x0;let _0x4725a2=a834_0x4509[_0x5c493e];return _0x4725a2;};const _0x4011b7=a834_0x4725;'use strict';const util=require(_0x4011b7('0x0')),compose=require('composable-middleware'),{Op}=require('sequelize'),db=require(_0x4011b7('0x1'))['db'],{getValueFromLicense}=require(_0x4011b7('0x3'));function isLimit(_0x116656,_0x513592,_0x4597bd,_0x48486a){let _0x16088a=_0x513592;return compose()['use'](function(_0x584365,_0x5c6801,_0x436d85){const _0x1a85cc=a834_0x4725;return db['License'][_0x1a85cc('0xb')]({'where':{'id':0x1},'raw':!![]})[_0x1a85cc('0x2')](function(_0x256765){const _0x980087=getValueFromLicense(_0x116656,_0x256765);return _0x980087?_0x980087:_0x16088a;})[_0x1a85cc('0x2')](function(_0x58051d){return _0x16088a=_0x58051d,_0x4597bd['count'](_0x48486a);})[_0x1a85cc('0x2')](function(_0xada2cc){const _0xb397a2=_0x1a85cc;if(_0xada2cc>=_0x16088a)return _0x5c6801[_0xb397a2('0x4')](0x193)[_0xb397a2('0x8')]({'message':util[_0xb397a2('0xa')](_0xb397a2('0x7'),_0x116656)});_0x436d85();})['catch'](function(_0x19a88d){_0x436d85(_0x19a88d);});});}function isUserLimit(){const _0x35529a=_0x4011b7;return isLimit('users',0x1,db[_0x35529a('0x6')],{'where':{[Op['or']]:[{'role':'admin'},{'role':_0x35529a('0x5')}]}});}exports[_0x4011b7('0x9')]=isUserLimit; \ No newline at end of file +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 diff --git a/server/components/parsers/advancedSearch.js b/server/components/parsers/advancedSearch.js index e3ffe47..7cc2598 100644 --- a/server/components/parsers/advancedSearch.js +++ b/server/components/parsers/advancedSearch.js @@ -1 +1 @@ -const a835_0x175e=['[$and]','add','<>\x20?','pop','$lt','parseSearch','seconds','$notIn','and','includes','split','format','LIKE\x20?','text','moment','<=\x20?','conditions','$lte','$between','castTo','lodash','$in','utcOffset','$gt','$endsWith','days','shift','$gte','indexOf','BETWEEN\x20?\x20AND\x20?','$startsWith','hours','map','<\x20?','=\x20?','buildExpression','DATE','forEach','$substring','slice','start','filter','operator','$eq','[$or]','minutes','replace','\x20IS\x20NULL)','startsWith'];(function(_0x46da15,_0x175e79){const _0x405c34=function(_0x2810f3){while(--_0x2810f3){_0x46da15['push'](_0x46da15['shift']());}};_0x405c34(++_0x175e79);}(a835_0x175e,0x1e5));const a835_0x405c=function(_0x46da15,_0x175e79){_0x46da15=_0x46da15-0x0;let _0x405c34=a835_0x175e[_0x46da15];return _0x405c34;};const _0x9c1805=a835_0x405c;'use strict';const _=require(_0x9c1805('0x19')),moment=require(_0x9c1805('0x13'));exports[_0x9c1805('0xa')]=function(_0x2810f3){const _0x2105fe=_0x9c1805,_0x3020ec={'conditions':[]};_0x3020ec['sqlOperator']=_[_0x2105fe('0x4')](_0x2810f3,_0x2105fe('0x0'))?'or':_0x2105fe('0xd');const _0x576ba3=_0x2810f3[_0x2105fe('0x2')](_0x2105fe('0x5'),'')['replace'](_0x2105fe('0x0'),'')[_0x2105fe('0xf')]('||');for(let _0x545c72=0x0;_0x545c72<_0x576ba3['length'];_0x545c72++){const _0x46333f=_0x576ba3[_0x545c72][_0x2105fe('0xf')](':='),_0x1a43b9=_0x46333f[0x0],_0x174bb5=_0x46333f[_0x2105fe('0x2c')](0x1);_0x174bb5[_0x2105fe('0x2a')](function(_0x1e32d5){const _0x46d9b1=_0x2105fe,_0x3ace5c=_0x1e32d5[_0x46d9b1('0xf')]('[')[_0x46d9b1('0x1f')](),_0x1f2545=_0x1e32d5['match'](/\[(.*?)\]/g);_0x1f2545[_0x46d9b1('0x2a')](function(_0xdbb396){const _0x271941=_0x46d9b1,_0x43ea5e=_0xdbb396[_0x271941('0xf')]('[')[_0x271941('0x2e')](function(_0x17077b){const _0x2df871=_0x271941;return _0x17077b[_0x2df871('0x21')](']')>-0x1;})[_0x271941('0x25')](function(_0x2671ef){const _0x31c342=_0x271941;return _0x2671ef[_0x31c342('0xf')](']')[0x0];})[0x0];_0x3020ec[_0x271941('0x15')]['push']({'field':_0x1a43b9,'operator':_0x3ace5c,'value':_0x43ea5e});});});}return _0x3020ec;},exports[_0x9c1805('0x28')]=function(_0x4dd792,_0x2bb8c0,_0x96bdd1){const _0x7bd04b=_0x9c1805,_0x5ac4a7={};if(_0x2bb8c0===_0x7bd04b('0x29')){if(_0x96bdd1[_0x7bd04b('0x2f')]===_0x7bd04b('0x30'))_0x96bdd1[_0x7bd04b('0x2f')]=_0x7bd04b('0x17'),_0x96bdd1['value']+=','+_0x96bdd1['value'];else _[_0x7bd04b('0xe')]([_0x7bd04b('0x1c'),_0x7bd04b('0x16')],_0x96bdd1[_0x7bd04b('0x2f')])&&(_0x96bdd1['value']=moment(_0x96bdd1['value'])[_0x7bd04b('0x6')](0x1,_0x7bd04b('0x1e'))[_0x7bd04b('0x10')]('YYYY-MM-DD'));}_0x96bdd1[_0x7bd04b('0x18')]?(_0x2bb8c0=_0x96bdd1[_0x7bd04b('0x18')],_0x5ac4a7[_0x7bd04b('0x12')]='CAST('+_0x4dd792+'.'+_0x96bdd1['field']+'\x20AS\x20'+_0x96bdd1['castTo']+')\x20'+parseOperator(_0x96bdd1[_0x7bd04b('0x2f')])):_0x5ac4a7[_0x7bd04b('0x12')]=_0x4dd792+'.'+_0x96bdd1['field']+'\x20'+parseOperator(_0x96bdd1['operator']);if(_['includes'](['$ne','$notIn'],_0x96bdd1[_0x7bd04b('0x2f')]))_0x5ac4a7[_0x7bd04b('0x12')]='('+_0x5ac4a7[_0x7bd04b('0x12')]+'\x20OR\x20'+_0x4dd792+'.'+_0x96bdd1['field']+_0x7bd04b('0x3');return _0x5ac4a7['value']=parseValue(_0x2bb8c0,_0x96bdd1[_0x7bd04b('0x2f')],_0x96bdd1['value']),_0x5ac4a7;};function parseOperator(_0xd1f1e7){const _0x1aa469=_0x9c1805;let _0x8e168e;switch(_0xd1f1e7){case _0x1aa469('0x1a'):_0x8e168e='IN\x20?';break;case _0x1aa469('0xc'):_0x8e168e='NOT\x20IN\x20?';break;case'$eq':_0x8e168e=_0x1aa469('0x27');break;case'$ne':_0x8e168e=_0x1aa469('0x7');break;case _0x1aa469('0x2b'):case _0x1aa469('0x23'):case _0x1aa469('0x1d'):_0x8e168e=_0x1aa469('0x11');break;case _0x1aa469('0x9'):_0x8e168e=_0x1aa469('0x26');break;case _0x1aa469('0x1c'):_0x8e168e='>\x20?';break;case _0x1aa469('0x16'):_0x8e168e=_0x1aa469('0x14');break;case _0x1aa469('0x20'):_0x8e168e='>=\x20?';break;case _0x1aa469('0x17'):_0x8e168e=_0x1aa469('0x22');break;}return _0x8e168e;}function parseValue(_0x2f4991,_0x432afd,_0x4a17a7){const _0x335688=_0x9c1805;let _0xf6aed5={'start':undefined,'end':undefined};switch(_0x432afd){case _0x335688('0x1a'):case'$notIn':_0xf6aed5[_0x335688('0x2d')]=_0x4a17a7[_0x335688('0xf')](',');break;case _0x335688('0x2b'):_0xf6aed5[_0x335688('0x2d')]='%'+_0x4a17a7+'%';break;case _0x335688('0x23'):_0xf6aed5[_0x335688('0x2d')]=_0x4a17a7+'%';break;case'$endsWith':_0xf6aed5[_0x335688('0x2d')]='%'+_0x4a17a7;break;case _0x335688('0x17'):{const _0x42db90=_0x3d06c9[_0x335688('0xf')](',');let _0x3d06c9=_0x42db90[_0x335688('0x1f')](),_0x14c1bd=_0x42db90[_0x335688('0x8')]();_0x2f4991===_0x335688('0x29')&&(_0x3d06c9=moment(_0x3d06c9)[_0x335688('0x1b')](0x0,!![])[_0x335688('0x10')](),_0x14c1bd=moment(_0x14c1bd)['utcOffset'](0x0,!![])[_0x335688('0x6')](0x17,_0x335688('0x24'))[_0x335688('0x6')](0x3b,_0x335688('0x1'))[_0x335688('0x6')](0x3b,_0x335688('0xb'))[_0x335688('0x10')]()),_0xf6aed5={'start':_0x3d06c9,'end':_0x14c1bd};}break;default:_0xf6aed5[_0x335688('0x2d')]=_0x4a17a7;break;}return _0xf6aed5;} \ No newline at end of file +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 diff --git a/server/components/parsers/qs.js b/server/components/parsers/qs.js index 385220d..862e156 100644 --- a/server/components/parsers/qs.js +++ b/server/components/parsers/qs.js @@ -1 +1 @@ -const a836_0x29f9=['format','YYYY-MM-DD','ASC','isObject','isString','lte','match','map','parse','substr','isPlainObject','lodash','cast','unsigned','filters','length','indexOf','priority','isEmail','toString','undefined','sort','omit','$gte','forEach','$lte','find','utc','DESC','gte','forOwn','fields','push','join','moment','isEmpty','split'];(function(_0x2cc1a3,_0x29f90b){const _0x45f390=function(_0xd34498){while(--_0xd34498){_0x2cc1a3['push'](_0x2cc1a3['shift']());}};_0x45f390(++_0x29f90b);}(a836_0x29f9,0xc2));const a836_0x45f3=function(_0x2cc1a3,_0x29f90b){_0x2cc1a3=_0x2cc1a3-0x0;let _0x45f390=a836_0x29f9[_0x2cc1a3];return _0x45f390;};const _0x434049=a836_0x45f3;'use strict';const _=require(_0x434049('0x2')),sequelize=require('sequelize'),moment=require(_0x434049('0x19')),Op=sequelize['Op'],LIMIT_VALUE=0xfa;exports[_0x434049('0x16')]=function(_0xd34498){const _0x103f92=_0x434049;let _0x23004b=null;return _0xd34498&&(_0x23004b=_0xd34498[_0x103f92('0x1b')](',')),_0x23004b;},exports[_0x434049('0x5')]=function(_0x170fb1,_0x17f2b1){const _0xad438a=_0x434049,_0x4e9dcc={};return!_[_0xad438a('0x1a')](_0x170fb1)&&_[_0xad438a('0x15')](_0x170fb1,function(_0x3b0853,_0x230a15){const _0x325a6d=_0xad438a;try{if(_0x17f2b1){const _0x37805=_[_0x325a6d('0x11')](_0x17f2b1,{'name':_0x230a15})||{};if(_0x37805['type']==='DATE'&&_[_0x325a6d('0x1')](_0x3b0853)){const _0x53f837=JSON[_0x325a6d('0x24')](_0x3b0853),_0x84207f={[Op[_0x325a6d('0x14')]]:moment(moment(_0x53f837[_0x325a6d('0xe')])[_0x325a6d('0x1c')](_0x325a6d('0x1d')))[_0x325a6d('0x12')]()['format'](),[Op[_0x325a6d('0x21')]]:moment(moment(_0x53f837[_0x325a6d('0x10')])[_0x325a6d('0x1c')]('YYYY-MM-DD'))['utc']()['subtract'](0x1,'s')['format']()};_0x4e9dcc[_0x230a15]=_0x84207f;}else _0x4e9dcc[_0x230a15]=_['isArray'](_0x3b0853)?_0x3b0853:JSON[_0x325a6d('0x24')](_0x3b0853);}else _0x4e9dcc[_0x230a15]=_['isArray'](_0x3b0853)?_0x3b0853:JSON[_0x325a6d('0x24')](_0x3b0853);}catch(_0x41631c){_0x4e9dcc[_0x230a15]=_0x3b0853[_0x325a6d('0x1b')](',');}}),_0x4e9dcc;},exports['limit']=function(_0x5f4f8a){return _0x5f4f8a=parseInt(_0x5f4f8a,0xa),(!_0x5f4f8a||_0x5f4f8a<0x0)&&(_0x5f4f8a=LIMIT_VALUE),_0x5f4f8a;},exports['offset']=function(_0x434783){return _0x434783=parseInt(_0x434783,0xa),(!_0x434783||_0x434783<0x0)&&(_0x434783=0x0),_0x434783;},exports[_0x434049('0xc')]=function(_0x3d2400){const _0x3a1a3f=_0x434049;let _0x430541,_0x43b38f=null;return _0x3d2400&&(_0x430541=_0x3d2400[_0x3a1a3f('0x1b')](','),_0x43b38f=_[_0x3a1a3f('0x23')](_0x430541,function(_0x466d40){const _0x27b8b1=_0x3a1a3f;return _0x466d40[_0x27b8b1('0x7')]('-')===0x0?[_0x466d40===_0x27b8b1('0x8')?sequelize[_0x27b8b1('0x3')](sequelize['col'](_0x27b8b1('0x8')),_0x27b8b1('0x4')):_0x466d40[_0x27b8b1('0x0')](0x1),_0x27b8b1('0x13')]:[_0x466d40===_0x27b8b1('0x8')?sequelize[_0x27b8b1('0x3')](sequelize['col'](_0x27b8b1('0x8')),_0x27b8b1('0x4')):_0x466d40,_0x27b8b1('0x1e')];})),_0x43b38f;},exports['omit']=function(_0x57ef9d,_0xf22398){const _0x2e9d38=_0x434049;if(_[_0x2e9d38('0x1a')](_0x57ef9d))return _0x57ef9d;if(_['isArray'](_0x57ef9d)){for(let _0x563346=0x0;_0x563346<_0x57ef9d[_0x2e9d38('0x6')];_0x563346+=0x1){_0x57ef9d[_0x563346]=this[_0x2e9d38('0xd')](_0x57ef9d[_0x563346],_0xf22398);}return _0x57ef9d;}if(!_[_0x2e9d38('0x1f')](_0x57ef9d))return _0x57ef9d;_[_0x2e9d38('0x20')](_0xf22398)&&(_0xf22398=[_0xf22398]);if(!_['isArray'](_0xf22398))return _0x57ef9d;for(let _0x25b831=0x0;_0x25b831<_0xf22398[_0x2e9d38('0x6')];_0x25b831+=0x1){_['unset'](_0x57ef9d,_0xf22398[_0x25b831]);}for(const _0x589a71 in _0x57ef9d){typeof _0x57ef9d[_0x589a71]!==_0x2e9d38('0xb')&&(_0x57ef9d[_0x589a71]=this[_0x2e9d38('0xd')](_0x57ef9d[_0x589a71],_0xf22398));}return _0x57ef9d;},exports['isNumeric']=function(_0x92d502){const _0x2bb0c7=_0x434049;return _0x92d502[_0x2bb0c7('0x22')](RegExp('^[+]?[0-9]*$'))?!![]:![];},exports[_0x434049('0x9')]=function(_0x33c4d3){return _0x33c4d3['match'](/^\S+@\S+$/)?!![]:![];},exports['getFullTextValue']=function(_0x583421){const _0x2f1231=_0x434049,_0x17012c=[];return _0x583421[_0x2f1231('0x1b')]('\x20')[_0x2f1231('0xf')](function(_0x5e16e1){const _0x1635e6=_0x2f1231;_0x17012c[_0x1635e6('0x17')]('+'+_0x5e16e1[_0x1635e6('0xa')]()+'*');}),_0x17012c[_0x2f1231('0x18')]('\x20');}; \ No newline at end of file +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 diff --git a/server/config/config.service.js b/server/config/config.service.js index 6a49b4f..3c932c5 100644 --- a/server/config/config.service.js +++ b/server/config/config.service.js @@ -1 +1 @@ -const a837_0x1511=['true','NODE_ENV','number','production','defineProperties','lodash','undefined','reduce','string','env','./env_definitions'];(function(_0x32d8be,_0x15111e){const _0x4e0597=function(_0x13504c){while(--_0x13504c){_0x32d8be['push'](_0x32d8be['shift']());}};_0x4e0597(++_0x15111e);}(a837_0x1511,0x73));const a837_0x4e05=function(_0x32d8be,_0x15111e){_0x32d8be=_0x32d8be-0x0;let _0x4e0597=a837_0x1511[_0x32d8be];return _0x4e0597;};const _0x6da02f=a837_0x4e05,{camelCase}=require(_0x6da02f('0x0')),{validKeys}=require(_0x6da02f('0x5')),VALID_KEYS=validKeys;function toBoolean(_0x13504c,_0x50991a=![]){const _0x196f9a=_0x6da02f;return typeof _0x13504c===_0x196f9a('0x1')?_0x50991a:Boolean(typeof _0x13504c==='string'?_0x13504c['toLowerCase']()===_0x196f9a('0x6'):_0x13504c);}function toNumber(_0x2b0f9b,_0x5be25e=null){const _0x447401=_0x6da02f,_0x1ef679=typeof _0x2b0f9b===_0x447401('0x1')||_0x2b0f9b===null?NaN:Number(_0x2b0f9b);return isNaN(_0x1ef679)?_0x5be25e:_0x1ef679;}function toString(_0x2e4c73,_0x2f1961=''){const _0x5d68d9=_0x6da02f;return typeof _0x2e4c73===_0x5d68d9('0x1')||_0x2e4c73===null?_0x2f1961:String(_0x2e4c73);}function getPropertiesConfiguration(){const _0x992d5c=_0x6da02f,_0x3edbfc={'enumerable':!![],'configurable':![],'writable':![]};return VALID_KEYS[_0x992d5c('0x2')]((_0x4db7f5,{env:_0x1a436f,type:_0x500cb4,defaultValue:_0x3ee446})=>{const _0x4faef2=_0x992d5c;let _0x5732a5=null;const _0x5ec7c8=process[_0x4faef2('0x4')][_0x1a436f];switch(_0x500cb4){case'boolean':_0x5732a5=toBoolean(_0x5ec7c8,_0x3ee446);break;case _0x4faef2('0x8'):_0x5732a5=toNumber(_0x5ec7c8,_0x3ee446);break;case _0x4faef2('0x3'):_0x5732a5=toString(_0x5ec7c8,_0x3ee446);break;default:break;}if(_0x1a436f===_0x4faef2('0x7'))_0x4db7f5={..._0x4db7f5,'isProduction':{'value':_0x5732a5===_0x4faef2('0x9'),..._0x3edbfc},'environment':{'value':_0x5732a5,..._0x3edbfc}};else{const _0x29a63d=camelCase(_0x1a436f['replace'](/^XC_/,''));_0x4db7f5={..._0x4db7f5,[_0x29a63d]:{'value':_0x5732a5,..._0x3edbfc}};}return _0x4db7f5;},{});}let configService=null;function getConfigService(){const _0x1d1291=_0x6da02f;if(configService===null){configService={};const _0x451926=getPropertiesConfiguration();Object[_0x1d1291('0xa')](configService,_0x451926);}return configService;}module['exports']={'getConfigService':getConfigService}; \ No newline at end of file +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 diff --git a/server/config/environment/development.js b/server/config/environment/development.js index 035e526..9cb6c93 100644 --- a/server/config/environment/development.js +++ b/server/config/environment/development.js @@ -1 +1 @@ -const a838_0x4d66=['sessionSecret','domain','asteriskHost','../config.service','jstz','asteriskPassword','rpcIp','asteriskUsername','timezones','exports','rpcPort','mysql','mysqlDatabase','redisHost','agiIp','redisPort','utf8_general_ci','utf8','mysqlUser','dbHost','determine','dbPort','getConfigService','googleId','mysqlPassword','googleSecret','offsetStr','seedDb'];(function(_0xa0fedf,_0x4d66cd){const _0x526c6e=function(_0x4982b1){while(--_0x4982b1){_0xa0fedf['push'](_0xa0fedf['shift']());}};_0x526c6e(++_0x4d66cd);}(a838_0x4d66,0xe1));const a838_0x526c=function(_0xa0fedf,_0x4d66cd){_0xa0fedf=_0xa0fedf-0x0;let _0x526c6e=a838_0x4d66[_0xa0fedf];return _0x526c6e;};const _0x2df588=a838_0x526c;'use strict';const shared=require('./shared'),jstz=require(_0x2df588('0x3')),timezone=jstz[_0x2df588('0x13')](),timezoneOffset=shared[_0x2df588('0x7')][timezone['name']()][_0x2df588('0x19')],cs=require(_0x2df588('0x2'))[_0x2df588('0x15')]();module[_0x2df588('0x8')]={'sequelize':{'database':cs[_0x2df588('0xb')],'username':cs[_0x2df588('0x11')],'password':cs[_0x2df588('0x17')],'options':{'host':cs[_0x2df588('0x12')],'port':cs[_0x2df588('0x14')],'dialect':_0x2df588('0xa'),'dialectOptions':{'charset':'utf8mb4'},'logging':![],'timezone':timezoneOffset,'define':{'charset':_0x2df588('0x10'),'collate':_0x2df588('0xf')}}},'sequelizeHistory':{'database':cs['mysqlDatabase'],'username':cs[_0x2df588('0x11')],'password':cs[_0x2df588('0x17')],'options':{'host':cs[_0x2df588('0x12')],'port':cs['dbPort'],'dialect':'mysql','dialectOptions':{'charset':'utf8mb4'},'logging':![],'timezone':timezoneOffset,'define':{'charset':_0x2df588('0x10'),'collate':_0x2df588('0xf')}}},'asterisk':{'ip':cs[_0x2df588('0x1')],'port':cs['asteriskPort'],'username':cs[_0x2df588('0x6')],'password':cs[_0x2df588('0x4')]},'redis':{'host':cs[_0x2df588('0xc')],'port':cs[_0x2df588('0xe')]},'rpc':{'port':cs[_0x2df588('0x9')],'ip':cs[_0x2df588('0x5')]},'agi':{'port':cs['agiPort'],'ip':cs[_0x2df588('0xd')]},'seedDB':cs[_0x2df588('0x1a')],'google':{'clientID':cs[_0x2df588('0x16')],'clientSecret':cs[_0x2df588('0x18')],'callbackURL':cs[_0x2df588('0x0')]+'/api/auth/google/callback'},'secrets':{'session':cs[_0x2df588('0x1b')],'recording':cs['recordingSecret']},'xdr':{'disabled':![]}}; \ No newline at end of file +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 diff --git a/server/config/environment/index.js b/server/config/environment/index.js index 17480b5..9db3334 100644 --- a/server/config/environment/index.js +++ b/server/config/environment/index.js @@ -1 +1 @@ -const a839_0x1989=['getConfigService','./shared','../config.service','recordingSecret','environment','port','sessionSecret','exports'];(function(_0x378927,_0x198952){const _0x33a412=function(_0x1c2a1c){while(--_0x1c2a1c){_0x378927['push'](_0x378927['shift']());}};_0x33a412(++_0x198952);}(a839_0x1989,0x154));const a839_0x33a4=function(_0x378927,_0x198952){_0x378927=_0x378927-0x0;let _0x33a412=a839_0x1989[_0x378927];return _0x33a412;};const _0x1d9bf7=a839_0x33a4;'use strict';const cs=require(_0x1d9bf7('0x6'))[_0x1d9bf7('0x4')](),all={'env':cs['environment'],'root':global['appRoot'],'browserSyncPort':cs['browserSyncPort'],'port':cs[_0x1d9bf7('0x1')],'ip':cs['ip'],'seedDB':cs['seedDB'],'secrets':{'session':cs[_0x1d9bf7('0x2')],'recording':cs[_0x1d9bf7('0x7')]}},shared=require(_0x1d9bf7('0x5')),variables=require('../environment/'+cs[_0x1d9bf7('0x0')]);module[_0x1d9bf7('0x3')]={...all,...shared,...variables}; \ No newline at end of file +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 diff --git a/server/config/environment/shared.js b/server/config/environment/shared.js index b377652..a58037d 100644 --- a/server/config/environment/shared.js +++ b/server/config/environment/shared.js @@ -1 +1 @@ -var a840_0xb899=['America/Nipigon','America/Belize','Antarctica/Vostok','Asia/Krasnoyarsk','Africa/Tripoli','America/North_Dakota/Beulah','Antarctica/Macquarie','America/Fortaleza','Asia/Jayapura','Europe/Helsinki','Asia/Yakutsk','Antarctica/Mawson','America/Paramaribo','Pacific/Guam','America/Campo_Grande','Europe/Madrid','Africa/Windhoek','America/Yellowknife','Asia/Yekaterinburg','America/Argentina/Salta','Atlantic/Azores','America/Nome','America/Menominee','Europe/Simferopol','Antarctica/Davis','Europe/Bucharest','Antarctica/Rothera','Africa/Abidjan','user','Pacific/Nauru','Indian/Cocos','+06:30','Asia/Kabul','Asia/Dili','America/Mazatlan','Europe/Dublin','America/Manaus','+06:00','Asia/Hong_Kong','Asia/Singapore','admin','Pacific/Apia','Africa/Accra','Europe/Brussels','+13:00','guest','Africa/Ndjamena','Atlantic/Reykjavik','Africa/Khartoum','Asia/Omsk','-03:00','America/Argentina/Catamarca','+13:45','Asia/Tehran','Pacific/Palau','America/Rainy_River','Asia/Chita','+14:00','Atlantic/Canary','Pacific/Rarotonga','America/Iqaluit','America/Phoenix','Asia/Dushanbe','Atlantic/Faroe','America/Guayaquil','America/Santo_Domingo','America/Indiana/Vevay','Australia/Darwin','Atlantic/South_Georgia','America/Curacao','Australia/Eucla','America/Indiana/Indianapolis','+02:00','Australia/Broken_Hill','Pacific/Honolulu','Africa/Maputo','Europe/Uzhgorod','America/Indiana/Marengo','Asia/Almaty','America/Merida','Indian/Kerguelen','Asia/Hovd','Pacific/Tarawa','+05:00','Antarctica/Casey','America/Mexico_City','America/Bahia_Banderas','America/Los_Angeles','+07:00','Europe/Luxembourg','Pacific/Fakaofo','Atlantic/Cape_Verde','Asia/Gaza','Pacific/Kwajalein','Asia/Ulaanbaatar','America/Ojinaga','America/Belem','America/Hermosillo','-02:00','America/Araguaina','Asia/Ashgabat','Asia/Shanghai','America/Whitehorse','America/Argentina/San_Juan','Pacific/Pitcairn','Australia/Brisbane','Pacific/Pago_Pago','Asia/Damascus','Australia/Adelaide','America/Indiana/Knox','America/Martinique','Asia/Hebron','Asia/Tokyo','Asia/Bishkek','-06:00','Asia/Kathmandu','Asia/Srednekolymsk','Africa/Johannesburg','Antarctica/DumontDUrville','Pacific/Port_Moresby','America/Tijuana','-09:00','-05:00','Antarctica/Troll','America/La_Paz','America/Boise','America/Winnipeg','Asia/Dhaka','America/Rankin_Inlet','+08:00','America/Santiago','Pacific/Kosrae','America/Thule','Asia/Brunei','America/Dawson','Europe/Athens','America/Argentina/Ushuaia','Africa/El_Aaiun','Europe/Kiev','Asia/Sakhalin','Asia/Urumqi','Europe/Amsterdam','Pacific/Chuuk','America/Yakutat','Indian/Reunion','Pacific/Norfolk','-01:00','Europe/Monaco','America/Puerto_Rico','Asia/Rangoon','Pacific/Majuro','America/Fort_Nelson','Asia/Thimphu','-07:00','Europe/Rome','Europe/Moscow','Asia/Jakarta','+04:30','Australia/Perth','America/New_York','Asia/Beirut','Europe/Oslo','Indian/Maldives','Europe/Andorra','+11:00','America/Grand_Turk','America/Vancouver','Asia/Amman','-11:00','America/Costa_Rica','America/Godthab','Europe/Berlin','America/Tegucigalpa','Europe/Zurich','America/Monterrey','Asia/Aqtobe','America/Dawson_Creek','Pacific/Guadalcanal','Pacific/Bougainville','+08:45','America/Miquelon','America/Moncton','America/Pangnirtung','America/Barbados','+12:00','Europe/Malta','Pacific/Funafuti','Asia/Ust-Nera','America/Indiana/Tell_City','Europe/Vienna','America/Cayman','America/Nassau','Indian/Christmas','Europe/Tallinn','America/Eirunepe','Europe/Chisinau','-03:30','America/North_Dakota/Center','Antarctica/Syowa','America/Havana','Asia/Makassar','Europe/Paris','Pacific/Enderbury','America/Argentina/Buenos_Aires','America/Bahia','+01:00','-04:30','Asia/Nicosia','Asia/Manila','America/Edmonton','+10:00','+03:00','America/Sao_Paulo','America/Matamoros','Asia/Bangkok','America/Scoresbysund','Australia/Sydney','-08:00','America/Cambridge_Bay','Asia/Magadan','Indian/Mauritius','Africa/Bissau','America/Argentina/La_Rioja','Pacific/Marquesas','Asia/Pyongyang','+04:00','Australia/Lord_Howe','Asia/Kuching','America/Asuncion','Europe/Vilnius','Pacific/Galapagos','Africa/Nairobi','+09:00','America/Managua','Europe/Belgrade','Asia/Jerusalem','America/Anchorage','+05:30','-04:00','America/Noronha','Africa/Casablanca','America/Port_of_Spain','Europe/Gibraltar','+09:30','Asia/Novokuznetsk','Asia/Oral','Europe/Budapest','Asia/Ho_Chi_Minh','Pacific/Fiji','America/El_Salvador','America/Juneau','America/Montevideo','-10:00','Asia/Kolkata','Asia/Qyzylorda','America/Recife','Indian/Chagos','America/Sitka','Asia/Kuala_Lumpur','America/Argentina/Cordoba','Asia/Riyadh','+00:00','Australia/Lindeman','Asia/Tashkent','Europe/Samara','America/North_Dakota/New_Salem','America/Danmarkshavn','America/Jamaica','Asia/Karachi','Europe/Istanbul','+05:45','Asia/Dubai','Europe/Stockholm','Africa/Lagos','Asia/Macau','America/Rio_Branco','America/Cancun','America/Guatemala','Asia/Novosibirsk','Asia/Baku','Europe/Copenhagen','America/Panama','Pacific/Chatham','America/Porto_Velho','Asia/Colombo','America/Inuvik','Europe/Zaporozhye','Europe/Prague'];(function(_0x684b10,_0xb89942){var _0x35e5cd=function(_0x5bbe5d){while(--_0x5bbe5d){_0x684b10['push'](_0x684b10['shift']());}};_0x35e5cd(++_0xb89942);}(a840_0xb899,0x18b));var a840_0x35e5=function(_0x684b10,_0xb89942){_0x684b10=_0x684b10-0x0;var _0x35e5cd=a840_0xb899[_0x684b10];return _0x35e5cd;};var _0x510696=a840_0x35e5;'use strict';module['exports']={'userRoles':[_0x510696('0xe2'),_0x510696('0xd1'),_0x510696('0xdd')],'timezones':{'Europe/Andorra':{'name':_0x510696('0x38'),'utcOffset':0x3c,'offsetStr':_0x510696('0x62'),'countries':['AD']},'Asia/Dubai':{'name':_0x510696('0xa4'),'utcOffset':0xf0,'offsetStr':_0x510696('0x76'),'countries':['AE','OM']},'Asia/Kabul':{'name':_0x510696('0xd5'),'utcOffset':0x10e,'offsetStr':_0x510696('0x32'),'countries':['AF']},'Europe/Tirane':{'name':'Europe/Tirane','utcOffset':0x3c,'offsetStr':_0x510696('0x62'),'countries':['AL']},'Asia/Yerevan':{'name':'Asia/Yerevan','utcOffset':0xf0,'offsetStr':_0x510696('0x76'),'countries':['AM']},'Antarctica/Rothera':{'name':_0x510696('0xcf'),'utcOffset':-0xb4,'offsetStr':_0x510696('0xe7'),'countries':['AQ']},'Antarctica/Palmer':{'name':'Antarctica/Palmer','utcOffset':-0xb4,'offsetStr':_0x510696('0xe7'),'countries':['AQ']},'Antarctica/Mawson':{'name':_0x510696('0xc0'),'utcOffset':0x12c,'offsetStr':_0x510696('0x108'),'countries':['AQ']},'Antarctica/Davis':{'name':_0x510696('0xcd'),'utcOffset':0x1a4,'offsetStr':_0x510696('0x10d'),'countries':['AQ']},'Antarctica/Casey':{'name':_0x510696('0x109'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['AQ']},'Antarctica/Vostok':{'name':_0x510696('0xb7'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['AQ']},'Antarctica/DumontDUrville':{'name':_0x510696('0xb'),'utcOffset':0x258,'offsetStr':_0x510696('0x67'),'countries':['AQ']},'Antarctica/Syowa':{'name':_0x510696('0x5b'),'utcOffset':0xb4,'offsetStr':_0x510696('0x68'),'countries':['AQ']},'Antarctica/Troll':{'name':_0x510696('0x10'),'utcOffset':0x0,'offsetStr':_0x510696('0x9a'),'countries':['AQ']},'America/Argentina/Buenos_Aires':{'name':_0x510696('0x60'),'utcOffset':-0xb4,'offsetStr':_0x510696('0xe7'),'countries':['AR']},'America/Argentina/Cordoba':{'name':_0x510696('0x98'),'utcOffset':-0xb4,'offsetStr':_0x510696('0xe7'),'countries':['AR']},'America/Argentina/Salta':{'name':_0x510696('0xc8'),'utcOffset':-0xb4,'offsetStr':_0x510696('0xe7'),'countries':['AR']},'America/Argentina/Jujuy':{'name':'America/Argentina/Jujuy','utcOffset':-0xb4,'offsetStr':_0x510696('0xe7'),'countries':['AR']},'America/Argentina/Tucuman':{'name':'America/Argentina/Tucuman','utcOffset':-0xb4,'offsetStr':_0x510696('0xe7'),'countries':['AR']},'America/Argentina/Catamarca':{'name':_0x510696('0xe8'),'utcOffset':-0xb4,'offsetStr':_0x510696('0xe7'),'countries':['AR']},'America/Argentina/La_Rioja':{'name':_0x510696('0x73'),'utcOffset':-0xb4,'offsetStr':_0x510696('0xe7'),'countries':['AR']},'America/Argentina/San_Juan':{'name':_0x510696('0x11c'),'utcOffset':-0xb4,'offsetStr':_0x510696('0xe7'),'countries':['AR']},'America/Argentina/Mendoza':{'name':'America/Argentina/Mendoza','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},'America/Argentina/San_Luis':{'name':'America/Argentina/San_Luis','utcOffset':-0xb4,'offsetStr':_0x510696('0xe7'),'countries':['AR']},'America/Argentina/Rio_Gallegos':{'name':'America/Argentina/Rio_Gallegos','utcOffset':-0xb4,'offsetStr':_0x510696('0xe7'),'countries':['AR']},'America/Argentina/Ushuaia':{'name':_0x510696('0x1d'),'utcOffset':-0xb4,'offsetStr':_0x510696('0xe7'),'countries':['AR']},'Pacific/Pago_Pago':{'name':_0x510696('0x11f'),'utcOffset':-0x294,'offsetStr':_0x510696('0x3d'),'countries':['AS','UM']},'Europe/Vienna':{'name':_0x510696('0x52'),'utcOffset':0x3c,'offsetStr':_0x510696('0x62'),'countries':['AT']},'Australia/Lord_Howe':{'name':_0x510696('0x77'),'utcOffset':0x294,'offsetStr':_0x510696('0x39'),'countries':['AU']},'Antarctica/Macquarie':{'name':_0x510696('0xbb'),'utcOffset':0x294,'offsetStr':_0x510696('0x39'),'countries':['AU']},'Australia/Hobart':{'name':'Australia/Hobart','utcOffset':0x294,'offsetStr':_0x510696('0x39'),'countries':['AU']},'Australia/Currie':{'name':'Australia/Currie','utcOffset':0x294,'offsetStr':_0x510696('0x39'),'countries':['AU']},'Australia/Melbourne':{'name':'Australia/Melbourne','utcOffset':0x294,'offsetStr':_0x510696('0x39'),'countries':['AU']},'Australia/Sydney':{'name':_0x510696('0x6d'),'utcOffset':0x294,'offsetStr':_0x510696('0x39'),'countries':['AU']},'Australia/Broken_Hill':{'name':_0x510696('0xfe'),'utcOffset':0x276,'offsetStr':'+10:30','countries':['AU']},'Australia/Brisbane':{'name':_0x510696('0x11e'),'utcOffset':0x258,'offsetStr':_0x510696('0x67'),'countries':['AU']},'Australia/Lindeman':{'name':_0x510696('0x9b'),'utcOffset':0x258,'offsetStr':_0x510696('0x67'),'countries':['AU']},'Australia/Adelaide':{'name':_0x510696('0x1'),'utcOffset':0x276,'offsetStr':'+10:30','countries':['AU']},'Australia/Darwin':{'name':_0x510696('0xf8'),'utcOffset':0x23a,'offsetStr':_0x510696('0x88'),'countries':['AU']},'Australia/Perth':{'name':_0x510696('0x33'),'utcOffset':0x1e0,'offsetStr':_0x510696('0x16'),'countries':['AU']},'Australia/Eucla':{'name':_0x510696('0xfb'),'utcOffset':0x20d,'offsetStr':_0x510696('0x48'),'countries':['AU']},'Asia/Baku':{'name':_0x510696('0xac'),'utcOffset':0xf0,'offsetStr':_0x510696('0x76'),'countries':['AZ']},'America/Barbados':{'name':_0x510696('0x4c'),'utcOffset':-0xf0,'offsetStr':_0x510696('0x83'),'countries':['BB']},'Asia/Dhaka':{'name':_0x510696('0x14'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['BD']},'Europe/Brussels':{'name':_0x510696('0xe0'),'utcOffset':0x3c,'offsetStr':_0x510696('0x62'),'countries':['BE']},'Europe/Sofia':{'name':'Europe/Sofia','utcOffset':0x78,'offsetStr':_0x510696('0xfd'),'countries':['BG']},'Atlantic/Bermuda':{'name':'Atlantic/Bermuda','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BM']},'Asia/Brunei':{'name':_0x510696('0x1a'),'utcOffset':0x1e0,'offsetStr':_0x510696('0x16'),'countries':['BN']},'America/La_Paz':{'name':_0x510696('0x11'),'utcOffset':-0xf0,'offsetStr':_0x510696('0x83'),'countries':['BO']},'America/Noronha':{'name':_0x510696('0x84'),'utcOffset':-0x78,'offsetStr':'-02:00','countries':['BR']},'America/Belem':{'name':_0x510696('0x115'),'utcOffset':-0xb4,'offsetStr':_0x510696('0xe7'),'countries':['BR']},'America/Fortaleza':{'name':_0x510696('0xbc'),'utcOffset':-0xb4,'offsetStr':_0x510696('0xe7'),'countries':['BR']},'America/Recife':{'name':_0x510696('0x94'),'utcOffset':-0xb4,'offsetStr':_0x510696('0xe7'),'countries':['BR']},'America/Araguaina':{'name':_0x510696('0x118'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},'America/Maceio':{'name':'America/Maceio','utcOffset':-0xb4,'offsetStr':_0x510696('0xe7'),'countries':['BR']},'America/Bahia':{'name':_0x510696('0x61'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},'America/Sao_Paulo':{'name':_0x510696('0x69'),'utcOffset':-0x78,'offsetStr':_0x510696('0x117'),'countries':['BR']},'America/Campo_Grande':{'name':_0x510696('0xc3'),'utcOffset':-0xb4,'offsetStr':_0x510696('0xe7'),'countries':['BR']},'America/Cuiaba':{'name':'America/Cuiaba','utcOffset':-0xb4,'offsetStr':_0x510696('0xe7'),'countries':['BR']},'America/Santarem':{'name':'America/Santarem','utcOffset':-0xb4,'offsetStr':_0x510696('0xe7'),'countries':['BR']},'America/Porto_Velho':{'name':_0x510696('0xb0'),'utcOffset':-0xf0,'offsetStr':_0x510696('0x83'),'countries':['BR']},'America/Boa_Vista':{'name':'America/Boa_Vista','utcOffset':-0xf0,'offsetStr':_0x510696('0x83'),'countries':['BR']},'America/Manaus':{'name':_0x510696('0xd9'),'utcOffset':-0xf0,'offsetStr':_0x510696('0x83'),'countries':['BR']},'America/Eirunepe':{'name':_0x510696('0x57'),'utcOffset':-0x12c,'offsetStr':_0x510696('0xf'),'countries':['BR']},'America/Rio_Branco':{'name':_0x510696('0xa8'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['BR']},'America/Nassau':{'name':_0x510696('0x54'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['BS']},'Asia/Thimphu':{'name':_0x510696('0x2d'),'utcOffset':0x168,'offsetStr':_0x510696('0xda'),'countries':['BT']},'Europe/Minsk':{'name':'Europe/Minsk','utcOffset':0xb4,'offsetStr':_0x510696('0x68'),'countries':['BY']},'America/Belize':{'name':_0x510696('0xb6'),'utcOffset':-0x168,'offsetStr':_0x510696('0x7'),'countries':['BZ']},'America/St_Johns':{'name':'America/St_Johns','utcOffset':-0xd2,'offsetStr':_0x510696('0x59'),'countries':['CA']},'America/Halifax':{'name':'America/Halifax','utcOffset':-0xf0,'offsetStr':_0x510696('0x83'),'countries':['CA']},'America/Glace_Bay':{'name':'America/Glace_Bay','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CA']},'America/Moncton':{'name':_0x510696('0x4a'),'utcOffset':-0xf0,'offsetStr':_0x510696('0x83'),'countries':['CA']},'America/Goose_Bay':{'name':'America/Goose_Bay','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CA']},'America/Blanc-Sablon':{'name':'America/Blanc-Sablon','utcOffset':-0xf0,'offsetStr':_0x510696('0x83'),'countries':['CA']},'America/Toronto':{'name':'America/Toronto','utcOffset':-0x12c,'offsetStr':_0x510696('0xf'),'countries':['CA']},'America/Nipigon':{'name':_0x510696('0xb5'),'utcOffset':-0x12c,'offsetStr':_0x510696('0xf'),'countries':['CA']},'America/Thunder_Bay':{'name':'America/Thunder_Bay','utcOffset':-0x12c,'offsetStr':_0x510696('0xf'),'countries':['CA']},'America/Iqaluit':{'name':_0x510696('0xf1'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},'America/Pangnirtung':{'name':_0x510696('0x4b'),'utcOffset':-0x12c,'offsetStr':_0x510696('0xf'),'countries':['CA']},'America/Resolute':{'name':'America/Resolute','utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},'America/Atikokan':{'name':'America/Atikokan','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},'America/Rankin_Inlet':{'name':_0x510696('0x15'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},'America/Winnipeg':{'name':_0x510696('0x13'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},'America/Rainy_River':{'name':_0x510696('0xec'),'utcOffset':-0x168,'offsetStr':_0x510696('0x7'),'countries':['CA']},'America/Regina':{'name':'America/Regina','utcOffset':-0x168,'offsetStr':_0x510696('0x7'),'countries':['CA']},'America/Swift_Current':{'name':'America/Swift_Current','utcOffset':-0x168,'offsetStr':_0x510696('0x7'),'countries':['CA']},'America/Edmonton':{'name':_0x510696('0x66'),'utcOffset':-0x1a4,'offsetStr':_0x510696('0x2e'),'countries':['CA']},'America/Cambridge_Bay':{'name':_0x510696('0x6f'),'utcOffset':-0x1a4,'offsetStr':_0x510696('0x2e'),'countries':['CA']},'America/Yellowknife':{'name':_0x510696('0xc6'),'utcOffset':-0x1a4,'offsetStr':_0x510696('0x2e'),'countries':['CA']},'America/Inuvik':{'name':_0x510696('0xb2'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['CA']},'America/Creston':{'name':'America/Creston','utcOffset':-0x1a4,'offsetStr':_0x510696('0x2e'),'countries':['CA']},'America/Dawson_Creek':{'name':_0x510696('0x45'),'utcOffset':-0x1a4,'offsetStr':_0x510696('0x2e'),'countries':['CA']},'America/Fort_Nelson':{'name':_0x510696('0x2c'),'utcOffset':-0x1a4,'offsetStr':_0x510696('0x2e'),'countries':['CA']},'America/Vancouver':{'name':_0x510696('0x3b'),'utcOffset':-0x1e0,'offsetStr':_0x510696('0x6e'),'countries':['CA']},'America/Whitehorse':{'name':_0x510696('0x11b'),'utcOffset':-0x1e0,'offsetStr':_0x510696('0x6e'),'countries':['CA']},'America/Dawson':{'name':_0x510696('0x1b'),'utcOffset':-0x1e0,'offsetStr':_0x510696('0x6e'),'countries':['CA']},'Indian/Cocos':{'name':_0x510696('0xd3'),'utcOffset':0x186,'offsetStr':_0x510696('0xd4'),'countries':['CC']},'Europe/Zurich':{'name':_0x510696('0x42'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['CH','DE','LI']},'Africa/Abidjan':{'name':_0x510696('0xd0'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['CI','BF','GM','GN','ML','MR','SH','SL','SN','ST','TG']},'Pacific/Rarotonga':{'name':_0x510696('0xf0'),'utcOffset':-0x258,'offsetStr':_0x510696('0x91'),'countries':['CK']},'America/Santiago':{'name':_0x510696('0x17'),'utcOffset':-0xb4,'offsetStr':_0x510696('0xe7'),'countries':['CL']},'Pacific/Easter':{'name':'Pacific/Easter','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CL']},'Asia/Shanghai':{'name':_0x510696('0x11a'),'utcOffset':0x1e0,'offsetStr':_0x510696('0x16'),'countries':['CN']},'Asia/Urumqi':{'name':_0x510696('0x21'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['CN']},'America/Bogota':{'name':'America/Bogota','utcOffset':-0x12c,'offsetStr':_0x510696('0xf'),'countries':['CO']},'America/Costa_Rica':{'name':_0x510696('0x3e'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CR']},'America/Havana':{'name':_0x510696('0x5c'),'utcOffset':-0x12c,'offsetStr':_0x510696('0xf'),'countries':['CU']},'Atlantic/Cape_Verde':{'name':_0x510696('0x110'),'utcOffset':-0x3c,'offsetStr':_0x510696('0x27'),'countries':['CV']},'America/Curacao':{'name':_0x510696('0xfa'),'utcOffset':-0xf0,'offsetStr':_0x510696('0x83'),'countries':['CW','AW','BQ','SX']},'Indian/Christmas':{'name':_0x510696('0x55'),'utcOffset':0x1a4,'offsetStr':_0x510696('0x10d'),'countries':['CX']},'Asia/Nicosia':{'name':_0x510696('0x64'),'utcOffset':0x78,'offsetStr':_0x510696('0xfd'),'countries':['CY']},'Europe/Prague':{'name':_0x510696('0xb4'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['CZ','SK']},'Europe/Berlin':{'name':_0x510696('0x40'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['DE']},'Europe/Copenhagen':{'name':_0x510696('0xad'),'utcOffset':0x3c,'offsetStr':_0x510696('0x62'),'countries':['DK']},'America/Santo_Domingo':{'name':_0x510696('0xf6'),'utcOffset':-0xf0,'offsetStr':_0x510696('0x83'),'countries':['DO']},'Africa/Algiers':{'name':'Africa/Algiers','utcOffset':0x3c,'offsetStr':'+01:00','countries':['DZ']},'America/Guayaquil':{'name':_0x510696('0xf5'),'utcOffset':-0x12c,'offsetStr':_0x510696('0xf'),'countries':['EC']},'Pacific/Galapagos':{'name':_0x510696('0x7b'),'utcOffset':-0x168,'offsetStr':_0x510696('0x7'),'countries':['EC']},'Europe/Tallinn':{'name':_0x510696('0x56'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['EE']},'Africa/Cairo':{'name':'Africa/Cairo','utcOffset':0x78,'offsetStr':_0x510696('0xfd'),'countries':['EG']},'Africa/El_Aaiun':{'name':_0x510696('0x1e'),'utcOffset':0x0,'offsetStr':_0x510696('0x9a'),'countries':['EH']},'Europe/Madrid':{'name':_0x510696('0xc4'),'utcOffset':0x3c,'offsetStr':_0x510696('0x62'),'countries':['ES']},'Africa/Ceuta':{'name':'Africa/Ceuta','utcOffset':0x3c,'offsetStr':_0x510696('0x62'),'countries':['ES']},'Atlantic/Canary':{'name':_0x510696('0xef'),'utcOffset':0x0,'offsetStr':_0x510696('0x9a'),'countries':['ES']},'Europe/Helsinki':{'name':_0x510696('0xbe'),'utcOffset':0x78,'offsetStr':_0x510696('0xfd'),'countries':['FI','AX']},'Pacific/Fiji':{'name':_0x510696('0x8d'),'utcOffset':0x2d0,'offsetStr':_0x510696('0x4d'),'countries':['FJ']},'Atlantic/Stanley':{'name':'Atlantic/Stanley','utcOffset':-0xb4,'offsetStr':_0x510696('0xe7'),'countries':['FK']},'Pacific/Chuuk':{'name':_0x510696('0x23'),'utcOffset':0x258,'offsetStr':_0x510696('0x67'),'countries':['FM']},'Pacific/Pohnpei':{'name':'Pacific/Pohnpei','utcOffset':0x294,'offsetStr':_0x510696('0x39'),'countries':['FM']},'Pacific/Kosrae':{'name':_0x510696('0x18'),'utcOffset':0x294,'offsetStr':_0x510696('0x39'),'countries':['FM']},'Atlantic/Faroe':{'name':_0x510696('0xf4'),'utcOffset':0x0,'offsetStr':_0x510696('0x9a'),'countries':['FO']},'Europe/Paris':{'name':_0x510696('0x5e'),'utcOffset':0x3c,'offsetStr':_0x510696('0x62'),'countries':['FR']},'UTC':{'name':'UTC','utcOffset':0x0,'offsetStr':'+00:00','countries':['GB','GG','IM','JE']},'Europe/London':{'name':'Europe/London','utcOffset':0x0,'offsetStr':_0x510696('0x9a'),'countries':['GB','GG','IM','JE']},'Asia/Tbilisi':{'name':'Asia/Tbilisi','utcOffset':0xf0,'offsetStr':'+04:00','countries':['GE']},'America/Cayenne':{'name':'America/Cayenne','utcOffset':-0xb4,'offsetStr':_0x510696('0xe7'),'countries':['GF']},'Africa/Accra':{'name':_0x510696('0xdf'),'utcOffset':0x0,'offsetStr':_0x510696('0x9a'),'countries':['GH']},'Europe/Gibraltar':{'name':_0x510696('0x87'),'utcOffset':0x3c,'offsetStr':_0x510696('0x62'),'countries':['GI']},'America/Godthab':{'name':_0x510696('0x3f'),'utcOffset':-0xb4,'offsetStr':_0x510696('0xe7'),'countries':['GL']},'America/Danmarkshavn':{'name':_0x510696('0x9f'),'utcOffset':0x0,'offsetStr':_0x510696('0x9a'),'countries':['GL']},'America/Scoresbysund':{'name':_0x510696('0x6c'),'utcOffset':-0x3c,'offsetStr':'-01:00','countries':['GL']},'America/Thule':{'name':_0x510696('0x19'),'utcOffset':-0xf0,'offsetStr':_0x510696('0x83'),'countries':['GL']},'Europe/Athens':{'name':_0x510696('0x1c'),'utcOffset':0x78,'offsetStr':_0x510696('0xfd'),'countries':['GR']},'Atlantic/South_Georgia':{'name':_0x510696('0xf9'),'utcOffset':-0x78,'offsetStr':_0x510696('0x117'),'countries':['GS']},'America/Guatemala':{'name':_0x510696('0xaa'),'utcOffset':-0x168,'offsetStr':_0x510696('0x7'),'countries':['GT']},'Pacific/Guam':{'name':_0x510696('0xc2'),'utcOffset':0x258,'offsetStr':_0x510696('0x67'),'countries':['GU','MP']},'Africa/Bissau':{'name':_0x510696('0x72'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['GW']},'America/Guyana':{'name':'America/Guyana','utcOffset':-0xf0,'offsetStr':_0x510696('0x83'),'countries':['GY']},'Asia/Hong_Kong':{'name':_0x510696('0xdb'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['HK']},'America/Tegucigalpa':{'name':_0x510696('0x41'),'utcOffset':-0x168,'offsetStr':_0x510696('0x7'),'countries':['HN']},'America/Port-au-Prince':{'name':'America/Port-au-Prince','utcOffset':-0x12c,'offsetStr':_0x510696('0xf'),'countries':['HT']},'Europe/Budapest':{'name':_0x510696('0x8b'),'utcOffset':0x3c,'offsetStr':_0x510696('0x62'),'countries':['HU']},'Asia/Jakarta':{'name':_0x510696('0x31'),'utcOffset':0x1a4,'offsetStr':_0x510696('0x10d'),'countries':['ID']},'Asia/Pontianak':{'name':'Asia/Pontianak','utcOffset':0x1a4,'offsetStr':_0x510696('0x10d'),'countries':['ID']},'Asia/Makassar':{'name':_0x510696('0x5d'),'utcOffset':0x1e0,'offsetStr':_0x510696('0x16'),'countries':['ID']},'Asia/Jayapura':{'name':_0x510696('0xbd'),'utcOffset':0x21c,'offsetStr':_0x510696('0x7d'),'countries':['ID']},'Europe/Dublin':{'name':_0x510696('0xd8'),'utcOffset':0x0,'offsetStr':_0x510696('0x9a'),'countries':['IE']},'Asia/Jerusalem':{'name':_0x510696('0x80'),'utcOffset':0x78,'offsetStr':_0x510696('0xfd'),'countries':['IL']},'Asia/Kolkata':{'name':_0x510696('0x92'),'utcOffset':0x14a,'offsetStr':_0x510696('0x82'),'countries':['IN']},'Indian/Chagos':{'name':_0x510696('0x95'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['IO']},'Asia/Baghdad':{'name':'Asia/Baghdad','utcOffset':0xb4,'offsetStr':_0x510696('0x68'),'countries':['IQ']},'Asia/Tehran':{'name':_0x510696('0xea'),'utcOffset':0xd2,'offsetStr':'+03:30','countries':['IR']},'Atlantic/Reykjavik':{'name':_0x510696('0xe4'),'utcOffset':0x0,'offsetStr':_0x510696('0x9a'),'countries':['IS']},'Europe/Rome':{'name':_0x510696('0x2f'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['IT','SM','VA']},'America/Jamaica':{'name':_0x510696('0xa0'),'utcOffset':-0x12c,'offsetStr':_0x510696('0xf'),'countries':['JM']},'Asia/Amman':{'name':_0x510696('0x3c'),'utcOffset':0x78,'offsetStr':_0x510696('0xfd'),'countries':['JO']},'Asia/Tokyo':{'name':_0x510696('0x5'),'utcOffset':0x21c,'offsetStr':_0x510696('0x7d'),'countries':['JP']},'Africa/Nairobi':{'name':_0x510696('0x7c'),'utcOffset':0xb4,'offsetStr':_0x510696('0x68'),'countries':['KE','DJ','ER','ET','KM','MG','SO','TZ','UG','YT']},'Asia/Bishkek':{'name':_0x510696('0x6'),'utcOffset':0x168,'offsetStr':_0x510696('0xda'),'countries':['KG']},'Pacific/Tarawa':{'name':_0x510696('0x107'),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['KI']},'Pacific/Enderbury':{'name':_0x510696('0x5f'),'utcOffset':0x30c,'offsetStr':_0x510696('0xe1'),'countries':['KI']},'Pacific/Kiritimati':{'name':'Pacific/Kiritimati','utcOffset':0x348,'offsetStr':_0x510696('0xee'),'countries':['KI']},'Asia/Pyongyang':{'name':_0x510696('0x75'),'utcOffset':0x1fe,'offsetStr':'+08:30','countries':['KP']},'Asia/Seoul':{'name':'Asia/Seoul','utcOffset':0x21c,'offsetStr':'+09:00','countries':['KR']},'America/Cayman':{'name':_0x510696('0x53'),'utcOffset':-0x12c,'offsetStr':_0x510696('0xf'),'countries':['KY']},'Asia/Almaty':{'name':_0x510696('0x103'),'utcOffset':0x168,'offsetStr':_0x510696('0xda'),'countries':['KZ']},'Asia/Qyzylorda':{'name':_0x510696('0x93'),'utcOffset':0x168,'offsetStr':_0x510696('0xda'),'countries':['KZ']},'Asia/Aqtobe':{'name':_0x510696('0x44'),'utcOffset':0x12c,'offsetStr':_0x510696('0x108'),'countries':['KZ']},'Asia/Aqtau':{'name':'Asia/Aqtau','utcOffset':0x12c,'offsetStr':'+05:00','countries':['KZ']},'Asia/Oral':{'name':_0x510696('0x8a'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['KZ']},'Asia/Beirut':{'name':_0x510696('0x35'),'utcOffset':0x78,'offsetStr':_0x510696('0xfd'),'countries':['LB']},'Asia/Colombo':{'name':_0x510696('0xb1'),'utcOffset':0x14a,'offsetStr':_0x510696('0x82'),'countries':['LK']},'Africa/Monrovia':{'name':'Africa/Monrovia','utcOffset':0x0,'offsetStr':_0x510696('0x9a'),'countries':['LR']},'Europe/Vilnius':{'name':_0x510696('0x7a'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['LT']},'Europe/Luxembourg':{'name':_0x510696('0x10e'),'utcOffset':0x3c,'offsetStr':_0x510696('0x62'),'countries':['LU']},'Europe/Riga':{'name':'Europe/Riga','utcOffset':0x78,'offsetStr':_0x510696('0xfd'),'countries':['LV']},'Africa/Tripoli':{'name':_0x510696('0xb9'),'utcOffset':0x78,'offsetStr':_0x510696('0xfd'),'countries':['LY']},'Africa/Casablanca':{'name':_0x510696('0x85'),'utcOffset':0x0,'offsetStr':_0x510696('0x9a'),'countries':['MA']},'Europe/Monaco':{'name':_0x510696('0x28'),'utcOffset':0x3c,'offsetStr':_0x510696('0x62'),'countries':['MC']},'Europe/Chisinau':{'name':_0x510696('0x58'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['MD']},'Pacific/Majuro':{'name':_0x510696('0x2b'),'utcOffset':0x2d0,'offsetStr':_0x510696('0x4d'),'countries':['MH']},'Pacific/Kwajalein':{'name':_0x510696('0x112'),'utcOffset':0x2d0,'offsetStr':_0x510696('0x4d'),'countries':['MH']},'Asia/Rangoon':{'name':_0x510696('0x2a'),'utcOffset':0x186,'offsetStr':_0x510696('0xd4'),'countries':['MM']},'Asia/Ulaanbaatar':{'name':_0x510696('0x113'),'utcOffset':0x1e0,'offsetStr':_0x510696('0x16'),'countries':['MN']},'Asia/Hovd':{'name':_0x510696('0x106'),'utcOffset':0x1a4,'offsetStr':_0x510696('0x10d'),'countries':['MN']},'Asia/Choibalsan':{'name':'Asia/Choibalsan','utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MN']},'Asia/Macau':{'name':_0x510696('0xa7'),'utcOffset':0x1e0,'offsetStr':_0x510696('0x16'),'countries':['MO']},'America/Martinique':{'name':_0x510696('0x3'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['MQ']},'Europe/Malta':{'name':_0x510696('0x4e'),'utcOffset':0x3c,'offsetStr':_0x510696('0x62'),'countries':['MT']},'Indian/Mauritius':{'name':_0x510696('0x71'),'utcOffset':0xf0,'offsetStr':_0x510696('0x76'),'countries':['MU']},'Indian/Maldives':{'name':_0x510696('0x37'),'utcOffset':0x12c,'offsetStr':_0x510696('0x108'),'countries':['MV']},'America/Mexico_City':{'name':_0x510696('0x10a'),'utcOffset':-0x168,'offsetStr':_0x510696('0x7'),'countries':['MX']},'America/Cancun':{'name':_0x510696('0xa9'),'utcOffset':-0x12c,'offsetStr':_0x510696('0xf'),'countries':['MX']},'America/Merida':{'name':_0x510696('0x104'),'utcOffset':-0x168,'offsetStr':_0x510696('0x7'),'countries':['MX']},'America/Monterrey':{'name':_0x510696('0x43'),'utcOffset':-0x168,'offsetStr':_0x510696('0x7'),'countries':['MX']},'America/Matamoros':{'name':_0x510696('0x6a'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},'America/Mazatlan':{'name':_0x510696('0xd7'),'utcOffset':-0x1a4,'offsetStr':_0x510696('0x2e'),'countries':['MX']},'America/Chihuahua':{'name':'America/Chihuahua','utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['MX']},'America/Ojinaga':{'name':_0x510696('0x114'),'utcOffset':-0x1a4,'offsetStr':_0x510696('0x2e'),'countries':['MX']},'America/Hermosillo':{'name':_0x510696('0x116'),'utcOffset':-0x1a4,'offsetStr':_0x510696('0x2e'),'countries':['MX']},'America/Tijuana':{'name':_0x510696('0xd'),'utcOffset':-0x1e0,'offsetStr':_0x510696('0x6e'),'countries':['MX']},'America/Santa_Isabel':{'name':'America/Santa_Isabel','utcOffset':-0x1e0,'offsetStr':_0x510696('0x6e'),'countries':['MX']},'America/Bahia_Banderas':{'name':_0x510696('0x10b'),'utcOffset':-0x168,'offsetStr':_0x510696('0x7'),'countries':['MX']},'Asia/Kuala_Lumpur':{'name':_0x510696('0x97'),'utcOffset':0x1e0,'offsetStr':_0x510696('0x16'),'countries':['MY']},'Asia/Kuching':{'name':_0x510696('0x78'),'utcOffset':0x1e0,'offsetStr':_0x510696('0x16'),'countries':['MY']},'Africa/Maputo':{'name':_0x510696('0x100'),'utcOffset':0x78,'offsetStr':_0x510696('0xfd'),'countries':['MZ','BI','BW','CD','MW','RW','ZM','ZW']},'Africa/Windhoek':{'name':_0x510696('0xc5'),'utcOffset':0x78,'offsetStr':_0x510696('0xfd'),'countries':['NA']},'Pacific/Noumea':{'name':'Pacific/Noumea','utcOffset':0x294,'offsetStr':'+11:00','countries':['NC']},'Pacific/Norfolk':{'name':_0x510696('0x26'),'utcOffset':0x294,'offsetStr':_0x510696('0x39'),'countries':['NF']},'Africa/Lagos':{'name':_0x510696('0xa6'),'utcOffset':0x3c,'offsetStr':_0x510696('0x62'),'countries':['NG','AO','BJ','CD','CF','CG','CM','GA','GQ','NE']},'America/Managua':{'name':_0x510696('0x7e'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['NI']},'Europe/Amsterdam':{'name':_0x510696('0x22'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['NL']},'Europe/Oslo':{'name':_0x510696('0x36'),'utcOffset':0x3c,'offsetStr':_0x510696('0x62'),'countries':['NO','SJ']},'Asia/Kathmandu':{'name':_0x510696('0x8'),'utcOffset':0x159,'offsetStr':_0x510696('0xa3'),'countries':['NP']},'Pacific/Nauru':{'name':_0x510696('0xd2'),'utcOffset':0x2d0,'offsetStr':_0x510696('0x4d'),'countries':['NR']},'Pacific/Niue':{'name':'Pacific/Niue','utcOffset':-0x294,'offsetStr':_0x510696('0x3d'),'countries':['NU']},'Pacific/Auckland':{'name':'Pacific/Auckland','utcOffset':0x30c,'offsetStr':_0x510696('0xe1'),'countries':['NZ','AQ']},'Pacific/Chatham':{'name':_0x510696('0xaf'),'utcOffset':0x339,'offsetStr':_0x510696('0xe9'),'countries':['NZ']},'America/Panama':{'name':_0x510696('0xae'),'utcOffset':-0x12c,'offsetStr':_0x510696('0xf'),'countries':['PA']},'America/Lima':{'name':'America/Lima','utcOffset':-0x12c,'offsetStr':_0x510696('0xf'),'countries':['PE']},'Pacific/Tahiti':{'name':'Pacific/Tahiti','utcOffset':-0x258,'offsetStr':_0x510696('0x91'),'countries':['PF']},'Pacific/Marquesas':{'name':_0x510696('0x74'),'utcOffset':-0x23a,'offsetStr':'-09:30','countries':['PF']},'Pacific/Gambier':{'name':'Pacific/Gambier','utcOffset':-0x21c,'offsetStr':_0x510696('0xe'),'countries':['PF']},'Pacific/Port_Moresby':{'name':_0x510696('0xc'),'utcOffset':0x258,'offsetStr':_0x510696('0x67'),'countries':['PG']},'Pacific/Bougainville':{'name':_0x510696('0x47'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['PG']},'Asia/Manila':{'name':_0x510696('0x65'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['PH']},'Asia/Karachi':{'name':_0x510696('0xa1'),'utcOffset':0x12c,'offsetStr':_0x510696('0x108'),'countries':['PK']},'Europe/Warsaw':{'name':'Europe/Warsaw','utcOffset':0x3c,'offsetStr':_0x510696('0x62'),'countries':['PL']},'America/Miquelon':{'name':_0x510696('0x49'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['PM']},'Pacific/Pitcairn':{'name':_0x510696('0x11d'),'utcOffset':-0x1e0,'offsetStr':_0x510696('0x6e'),'countries':['PN']},'America/Puerto_Rico':{'name':_0x510696('0x29'),'utcOffset':-0xf0,'offsetStr':_0x510696('0x83'),'countries':['PR']},'Asia/Gaza':{'name':_0x510696('0x111'),'utcOffset':0x78,'offsetStr':_0x510696('0xfd'),'countries':['PS']},'Asia/Hebron':{'name':_0x510696('0x4'),'utcOffset':0x78,'offsetStr':_0x510696('0xfd'),'countries':['PS']},'Europe/Lisbon':{'name':'Europe/Lisbon','utcOffset':0x0,'offsetStr':_0x510696('0x9a'),'countries':['PT']},'Atlantic/Madeira':{'name':'Atlantic/Madeira','utcOffset':0x0,'offsetStr':_0x510696('0x9a'),'countries':['PT']},'Atlantic/Azores':{'name':_0x510696('0xc9'),'utcOffset':-0x3c,'offsetStr':'-01:00','countries':['PT']},'Pacific/Palau':{'name':_0x510696('0xeb'),'utcOffset':0x21c,'offsetStr':_0x510696('0x7d'),'countries':['PW']},'America/Asuncion':{'name':_0x510696('0x79'),'utcOffset':-0xb4,'offsetStr':_0x510696('0xe7'),'countries':['PY']},'Asia/Qatar':{'name':'Asia/Qatar','utcOffset':0xb4,'offsetStr':_0x510696('0x68'),'countries':['QA','BH']},'Indian/Reunion':{'name':_0x510696('0x25'),'utcOffset':0xf0,'offsetStr':'+04:00','countries':['RE','TF']},'Europe/Bucharest':{'name':_0x510696('0xce'),'utcOffset':0x78,'offsetStr':_0x510696('0xfd'),'countries':['RO']},'Europe/Belgrade':{'name':_0x510696('0x7f'),'utcOffset':0x3c,'offsetStr':_0x510696('0x62'),'countries':['RS','BA','HR','ME','MK','SI']},'Europe/Kaliningrad':{'name':'Europe/Kaliningrad','utcOffset':0x78,'offsetStr':'+02:00','countries':['RU']},'Europe/Moscow':{'name':_0x510696('0x30'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['RU']},'Europe/Simferopol':{'name':_0x510696('0xcc'),'utcOffset':0xb4,'offsetStr':_0x510696('0x68'),'countries':['RU']},'Europe/Volgograd':{'name':'Europe/Volgograd','utcOffset':0xb4,'offsetStr':_0x510696('0x68'),'countries':['RU']},'Europe/Samara':{'name':_0x510696('0x9d'),'utcOffset':0xf0,'offsetStr':_0x510696('0x76'),'countries':['RU']},'Asia/Yekaterinburg':{'name':_0x510696('0xc7'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['RU']},'Asia/Omsk':{'name':_0x510696('0xe6'),'utcOffset':0x168,'offsetStr':_0x510696('0xda'),'countries':['RU']},'Asia/Novosibirsk':{'name':_0x510696('0xab'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['RU']},'Asia/Novokuznetsk':{'name':_0x510696('0x89'),'utcOffset':0x1a4,'offsetStr':_0x510696('0x10d'),'countries':['RU']},'Asia/Krasnoyarsk':{'name':_0x510696('0xb8'),'utcOffset':0x1a4,'offsetStr':_0x510696('0x10d'),'countries':['RU']},'Asia/Irkutsk':{'name':'Asia/Irkutsk','utcOffset':0x1e0,'offsetStr':'+08:00','countries':['RU']},'Asia/Chita':{'name':_0x510696('0xed'),'utcOffset':0x1e0,'offsetStr':_0x510696('0x16'),'countries':['RU']},'Asia/Yakutsk':{'name':_0x510696('0xbf'),'utcOffset':0x21c,'offsetStr':_0x510696('0x7d'),'countries':['RU']},'Asia/Khandyga':{'name':'Asia/Khandyga','utcOffset':0x21c,'offsetStr':'+09:00','countries':['RU']},'Asia/Vladivostok':{'name':'Asia/Vladivostok','utcOffset':0x258,'offsetStr':_0x510696('0x67'),'countries':['RU']},'Asia/Sakhalin':{'name':_0x510696('0x20'),'utcOffset':0x258,'offsetStr':_0x510696('0x67'),'countries':['RU']},'Asia/Ust-Nera':{'name':_0x510696('0x50'),'utcOffset':0x258,'offsetStr':'+10:00','countries':['RU']},'Asia/Magadan':{'name':_0x510696('0x70'),'utcOffset':0x258,'offsetStr':_0x510696('0x67'),'countries':['RU']},'Asia/Srednekolymsk':{'name':_0x510696('0x9'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['RU']},'Asia/Kamchatka':{'name':'Asia/Kamchatka','utcOffset':0x2d0,'offsetStr':_0x510696('0x4d'),'countries':['RU']},'Asia/Anadyr':{'name':'Asia/Anadyr','utcOffset':0x2d0,'offsetStr':_0x510696('0x4d'),'countries':['RU']},'Asia/Riyadh':{'name':_0x510696('0x99'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['SA','KW','YE']},'Pacific/Guadalcanal':{'name':_0x510696('0x46'),'utcOffset':0x294,'offsetStr':_0x510696('0x39'),'countries':['SB']},'Indian/Mahe':{'name':'Indian/Mahe','utcOffset':0xf0,'offsetStr':_0x510696('0x76'),'countries':['SC']},'Africa/Khartoum':{'name':_0x510696('0xe5'),'utcOffset':0xb4,'offsetStr':_0x510696('0x68'),'countries':['SD','SS']},'Europe/Stockholm':{'name':_0x510696('0xa5'),'utcOffset':0x3c,'offsetStr':_0x510696('0x62'),'countries':['SE']},'Asia/Singapore':{'name':_0x510696('0xdc'),'utcOffset':0x1e0,'offsetStr':_0x510696('0x16'),'countries':['SG']},'America/Paramaribo':{'name':_0x510696('0xc1'),'utcOffset':-0xb4,'offsetStr':_0x510696('0xe7'),'countries':['SR']},'America/El_Salvador':{'name':_0x510696('0x8e'),'utcOffset':-0x168,'offsetStr':_0x510696('0x7'),'countries':['SV']},'Asia/Damascus':{'name':_0x510696('0x0'),'utcOffset':0x78,'offsetStr':_0x510696('0xfd'),'countries':['SY']},'America/Grand_Turk':{'name':_0x510696('0x3a'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['TC']},'Africa/Ndjamena':{'name':_0x510696('0xe3'),'utcOffset':0x3c,'offsetStr':_0x510696('0x62'),'countries':['TD']},'Indian/Kerguelen':{'name':_0x510696('0x105'),'utcOffset':0x12c,'offsetStr':_0x510696('0x108'),'countries':['TF']},'Asia/Bangkok':{'name':_0x510696('0x6b'),'utcOffset':0x1a4,'offsetStr':_0x510696('0x10d'),'countries':['TH','KH','LA','VN']},'Asia/Dushanbe':{'name':_0x510696('0xf3'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['TJ']},'Pacific/Fakaofo':{'name':_0x510696('0x10f'),'utcOffset':0x30c,'offsetStr':_0x510696('0xe1'),'countries':['TK']},'Asia/Dili':{'name':_0x510696('0xd6'),'utcOffset':0x21c,'offsetStr':'+09:00','countries':['TL']},'Asia/Ashgabat':{'name':_0x510696('0x119'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['TM']},'Africa/Tunis':{'name':'Africa/Tunis','utcOffset':0x3c,'offsetStr':_0x510696('0x62'),'countries':['TN']},'Pacific/Tongatapu':{'name':'Pacific/Tongatapu','utcOffset':0x30c,'offsetStr':_0x510696('0xe1'),'countries':['TO']},'Europe/Istanbul':{'name':_0x510696('0xa2'),'utcOffset':0x78,'offsetStr':_0x510696('0xfd'),'countries':['TR']},'America/Port_of_Spain':{'name':_0x510696('0x86'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['TT','AG','AI','BL','DM','GD','GP','KN','LC','MF','MS','VC','VG','VI']},'Pacific/Funafuti':{'name':_0x510696('0x4f'),'utcOffset':0x2d0,'offsetStr':_0x510696('0x4d'),'countries':['TV']},'Asia/Taipei':{'name':'Asia/Taipei','utcOffset':0x1e0,'offsetStr':_0x510696('0x16'),'countries':['TW']},'Europe/Kiev':{'name':_0x510696('0x1f'),'utcOffset':0x78,'offsetStr':_0x510696('0xfd'),'countries':['UA']},'Europe/Uzhgorod':{'name':_0x510696('0x101'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['UA']},'Europe/Zaporozhye':{'name':_0x510696('0xb3'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['UA']},'Pacific/Wake':{'name':'Pacific/Wake','utcOffset':0x2d0,'offsetStr':_0x510696('0x4d'),'countries':['UM']},'America/New_York':{'name':_0x510696('0x34'),'utcOffset':-0x12c,'offsetStr':_0x510696('0xf'),'countries':['US']},'America/Detroit':{'name':'America/Detroit','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},'America/Kentucky/Louisville':{'name':'America/Kentucky/Louisville','utcOffset':-0x12c,'offsetStr':_0x510696('0xf'),'countries':['US']},'America/Kentucky/Monticello':{'name':'America/Kentucky/Monticello','utcOffset':-0x12c,'offsetStr':_0x510696('0xf'),'countries':['US']},'America/Indiana/Indianapolis':{'name':_0x510696('0xfc'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},'America/Indiana/Vincennes':{'name':'America/Indiana/Vincennes','utcOffset':-0x12c,'offsetStr':_0x510696('0xf'),'countries':['US']},'America/Indiana/Winamac':{'name':'America/Indiana/Winamac','utcOffset':-0x12c,'offsetStr':_0x510696('0xf'),'countries':['US']},'America/Indiana/Marengo':{'name':_0x510696('0x102'),'utcOffset':-0x12c,'offsetStr':_0x510696('0xf'),'countries':['US']},'America/Indiana/Petersburg':{'name':'America/Indiana/Petersburg','utcOffset':-0x12c,'offsetStr':_0x510696('0xf'),'countries':['US']},'America/Indiana/Vevay':{'name':_0x510696('0xf7'),'utcOffset':-0x12c,'offsetStr':_0x510696('0xf'),'countries':['US']},'America/Chicago':{'name':'America/Chicago','utcOffset':-0x168,'offsetStr':_0x510696('0x7'),'countries':['US']},'America/Indiana/Tell_City':{'name':_0x510696('0x51'),'utcOffset':-0x168,'offsetStr':_0x510696('0x7'),'countries':['US']},'America/Indiana/Knox':{'name':_0x510696('0x2'),'utcOffset':-0x168,'offsetStr':_0x510696('0x7'),'countries':['US']},'America/Menominee':{'name':_0x510696('0xcb'),'utcOffset':-0x168,'offsetStr':_0x510696('0x7'),'countries':['US']},'America/North_Dakota/Center':{'name':_0x510696('0x5a'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},'America/North_Dakota/New_Salem':{'name':_0x510696('0x9e'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},'America/North_Dakota/Beulah':{'name':_0x510696('0xba'),'utcOffset':-0x168,'offsetStr':_0x510696('0x7'),'countries':['US']},'America/Denver':{'name':'America/Denver','utcOffset':-0x1a4,'offsetStr':_0x510696('0x2e'),'countries':['US']},'America/Boise':{'name':_0x510696('0x12'),'utcOffset':-0x1a4,'offsetStr':_0x510696('0x2e'),'countries':['US']},'America/Phoenix':{'name':_0x510696('0xf2'),'utcOffset':-0x1a4,'offsetStr':_0x510696('0x2e'),'countries':['US']},'America/Los_Angeles':{'name':_0x510696('0x10c'),'utcOffset':-0x1e0,'offsetStr':_0x510696('0x6e'),'countries':['US']},'America/Metlakatla':{'name':'America/Metlakatla','utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['US']},'America/Anchorage':{'name':_0x510696('0x81'),'utcOffset':-0x21c,'offsetStr':_0x510696('0xe'),'countries':['US']},'America/Juneau':{'name':_0x510696('0x8f'),'utcOffset':-0x21c,'offsetStr':_0x510696('0xe'),'countries':['US']},'America/Sitka':{'name':_0x510696('0x96'),'utcOffset':-0x21c,'offsetStr':_0x510696('0xe'),'countries':['US']},'America/Yakutat':{'name':_0x510696('0x24'),'utcOffset':-0x21c,'offsetStr':_0x510696('0xe'),'countries':['US']},'America/Nome':{'name':_0x510696('0xca'),'utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},'America/Adak':{'name':'America/Adak','utcOffset':-0x258,'offsetStr':_0x510696('0x91'),'countries':['US']},'Pacific/Honolulu':{'name':_0x510696('0xff'),'utcOffset':-0x258,'offsetStr':_0x510696('0x91'),'countries':['US','UM']},'America/Montevideo':{'name':_0x510696('0x90'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['UY']},'Asia/Samarkand':{'name':'Asia/Samarkand','utcOffset':0x12c,'offsetStr':'+05:00','countries':['UZ']},'Asia/Tashkent':{'name':_0x510696('0x9c'),'utcOffset':0x12c,'offsetStr':_0x510696('0x108'),'countries':['UZ']},'America/Caracas':{'name':'America/Caracas','utcOffset':-0x10e,'offsetStr':_0x510696('0x63'),'countries':['VE']},'Asia/Ho_Chi_Minh':{'name':_0x510696('0x8c'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['VN']},'Pacific/Efate':{'name':'Pacific/Efate','utcOffset':0x294,'offsetStr':_0x510696('0x39'),'countries':['VU']},'Pacific/Wallis':{'name':'Pacific/Wallis','utcOffset':0x2d0,'offsetStr':_0x510696('0x4d'),'countries':['WF']},'Pacific/Apia':{'name':_0x510696('0xde'),'utcOffset':0x348,'offsetStr':_0x510696('0xee'),'countries':['WS']},'Africa/Johannesburg':{'name':_0x510696('0xa'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['ZA','LS','SZ']}}}; \ No newline at end of file +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 diff --git a/server/config/environment/test.js b/server/config/environment/test.js index dcc41b1..aac310b 100644 --- a/server/config/environment/test.js +++ b/server/config/environment/test.js @@ -1 +1 @@ -const a841_0x2865=['googleId','dbPort','redisHost','determine','utf8','rpcPort','mysql','seedDb','mysqlUser','asteriskUsername','/api/auth/google/callback','asteriskPassword','mysqlPassword','asteriskPort','agiIp','./shared','jstz','agiPort','recordingSecret','../config.service','rpcIp','dbHost','asteriskHost','utf8_general_ci','mysqlDatabase','getConfigService','googleSecret','utf8mb4'];(function(_0x4e2247,_0x2865d2){const _0x4ef60b=function(_0x2e28d4){while(--_0x2e28d4){_0x4e2247['push'](_0x4e2247['shift']());}};_0x4ef60b(++_0x2865d2);}(a841_0x2865,0xb8));const a841_0x4ef6=function(_0x4e2247,_0x2865d2){_0x4e2247=_0x4e2247-0x0;let _0x4ef60b=a841_0x2865[_0x4e2247];return _0x4ef60b;};const _0x32d35f=a841_0x4ef6;'use strict';const shared=require(_0x32d35f('0x1b')),jstz=require(_0x32d35f('0x0')),timezone=jstz[_0x32d35f('0xf')](),timezoneOffset=shared['timezones'][timezone['name']()]['offsetStr'],cs=require(_0x32d35f('0x3'))[_0x32d35f('0x9')]();module['exports']={'sequelize':{'database':cs['mysqlDatabase'],'username':cs[_0x32d35f('0x14')],'password':cs[_0x32d35f('0x18')],'options':{'host':cs[_0x32d35f('0x5')],'port':cs[_0x32d35f('0xd')],'dialect':_0x32d35f('0x12'),'dialectOptions':{'charset':_0x32d35f('0xb')},'logging':![],'timezone':timezoneOffset,'define':{'charset':_0x32d35f('0x10'),'collate':'utf8_general_ci'}}},'sequelizeHistory':{'database':cs[_0x32d35f('0x8')],'username':cs[_0x32d35f('0x14')],'password':cs[_0x32d35f('0x18')],'options':{'host':cs[_0x32d35f('0x5')],'port':cs[_0x32d35f('0xd')],'dialect':'mysql','dialectOptions':{'charset':_0x32d35f('0xb')},'logging':![],'timezone':timezoneOffset,'define':{'charset':_0x32d35f('0x10'),'collate':_0x32d35f('0x7')}}},'asterisk':{'ip':cs[_0x32d35f('0x6')],'port':cs[_0x32d35f('0x19')],'username':cs[_0x32d35f('0x15')],'password':cs[_0x32d35f('0x17')]},'redis':{'host':cs[_0x32d35f('0xe')],'port':cs['redisPort']},'rpc':{'port':cs[_0x32d35f('0x11')],'ip':cs[_0x32d35f('0x4')]},'agi':{'port':cs[_0x32d35f('0x1')],'ip':cs[_0x32d35f('0x1a')]},'seedDB':cs[_0x32d35f('0x13')],'google':{'clientID':cs[_0x32d35f('0xc')],'clientSecret':cs[_0x32d35f('0xa')],'callbackURL':cs['domain']+_0x32d35f('0x16')},'secrets':{'session':cs['sessionSecret'],'recording':cs[_0x32d35f('0x2')]},'xdr':{'disabled':![]}}; \ No newline at end of file +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 diff --git a/server/config/express.js b/server/config/express.js index 7a8f97e..fb88540 100644 --- a/server/config/express.js +++ b/server/config/express.js @@ -1 +1 @@ -const a842_0x2a64=['public','renderFile','Public\x20path\x20set\x20to\x20','default','./environment','set','env','GET,HEAD,PUT,PATCH,POST,DELETE','engine','urlencoded','test','50mb','json','root','appPath','body-parser','client','errorhandler','cors','get','static','log','passport','development','split','join','use','html','express','views','./config.service','OPTIONS,GET,HEAD,PUT,PATCH,POST,DELETE','json\x20replacer','cookie-parser','isProduction'];(function(_0x3ac01e,_0x2a64e0){const _0x411b86=function(_0x5a7035){while(--_0x5a7035){_0x3ac01e['push'](_0x3ac01e['shift']());}};_0x411b86(++_0x2a64e0);}(a842_0x2a64,0x14a));const a842_0x411b=function(_0x3ac01e,_0x2a64e0){_0x3ac01e=_0x3ac01e-0x0;let _0x411b86=a842_0x2a64[_0x3ac01e];return _0x411b86;};const _0x247caa=a842_0x411b;'use strict';const express=require(_0x247caa('0xd')),bodyParser=require(_0x247caa('0x0')),methodOverride=require('method-override'),cookieParser=require(_0x247caa('0x12')),errorHandler=require(_0x247caa('0x2')),path=require('path'),passport=require(_0x247caa('0x7')),cors=require(_0x247caa('0x3')),config=require(_0x247caa('0x18')),{getConfigService}=require(_0x247caa('0xf'));exports[_0x247caa('0x17')]=function(_0x5a7035){const _0x49bdd0=_0x247caa,_0x3e27c1=_0x5a7035['get'](_0x49bdd0('0x1a')),_0x165f81=getConfigService();_0x3e27c1==='production'&&(_0x5a7035['set']('appPath',path['join'](config[_0x49bdd0('0x21')],'..',_0x49bdd0('0x14'))),console[_0x49bdd0('0x6')](_0x49bdd0('0x16'),_0x5a7035['get'](_0x49bdd0('0x22')))),(_0x3e27c1===_0x49bdd0('0x8')||_0x3e27c1===_0x49bdd0('0x1e'))&&(_0x5a7035['set'](_0x49bdd0('0x22'),path[_0x49bdd0('0xa')](config[_0x49bdd0('0x21')],_0x49bdd0('0x1'))),_0x5a7035[_0x49bdd0('0xb')](errorHandler())),_0x5a7035[_0x49bdd0('0x19')](_0x49bdd0('0x11'),function(_0x3cf3b7,_0x1993dc){const _0x4cb06b=_0x49bdd0;return this[_0x3cf3b7]instanceof Date&&(_0x1993dc=this[_0x3cf3b7]['toISOString']()[_0x4cb06b('0x9')]('.')[0x0]+'Z'),_0x1993dc;}),_0x5a7035['use'](express[_0x49bdd0('0x5')](_0x5a7035[_0x49bdd0('0x4')](_0x49bdd0('0x22')))),_0x5a7035['set'](_0x49bdd0('0xe'),config['root']+'/server/views'),_0x5a7035[_0x49bdd0('0x1c')](_0x49bdd0('0xc'),require('ejs')[_0x49bdd0('0x15')]),_0x5a7035['set']('view\x20engine',_0x49bdd0('0xc')),_0x5a7035[_0x49bdd0('0xb')](bodyParser[_0x49bdd0('0x1d')]({'limit':_0x49bdd0('0x1f'),'extended':!![]})),_0x5a7035['use'](bodyParser[_0x49bdd0('0x20')]({'limit':_0x49bdd0('0x1f')})),_0x5a7035['use'](cors({'origin':!_0x165f81[_0x49bdd0('0x13')],'methods':_0x165f81[_0x49bdd0('0x13')]?_0x49bdd0('0x1b'):_0x49bdd0('0x10'),'preflightContinue':!![]})),_0x5a7035['use'](methodOverride()),_0x5a7035[_0x49bdd0('0xb')](cookieParser()),_0x5a7035[_0x49bdd0('0xb')](passport['initialize']());}; \ No newline at end of file +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 diff --git a/server/config/license/hardware.js b/server/config/license/hardware.js index 6283b14..bc8d283 100644 --- a/server/config/license/hardware.js +++ b/server/config/license/hardware.js @@ -1 +1 @@ -const a843_0xee46=['concat','replace','hex','digest','networkInterfaces','test','utf8','mac','createHash','IPv4','devLicense','md5','crypto','../config.service','map','model','head','internal','execSync','dmidecode\x20--string\x20system-uuid','macAddress','hostname','update','filter','00:00:00:00:00:00','substring','address','orderBy','exports','family','length','keys','ipAddress','win32'];(function(_0x3aa000,_0xee4671){const _0x14e6bf=function(_0x37f1d9){while(--_0x37f1d9){_0x3aa000['push'](_0x3aa000['shift']());}};_0x14e6bf(++_0xee4671);}(a843_0xee46,0x12a));const a843_0x14e6=function(_0x3aa000,_0xee4671){_0x3aa000=_0x3aa000-0x0;let _0x14e6bf=a843_0xee46[_0x3aa000];return _0x14e6bf;};const _0x5c5c5f=a843_0x14e6;'use strict';const _=require('lodash'),os=require('os'),crypto=require(_0x5c5c5f('0x14')),{getConfigService}=require(_0x5c5c5f('0x15')),exec=require('child_process')[_0x5c5c5f('0x1a')];function getInterfaces(){const _0xa3fceb=_0x5c5c5f;let _0x37f1d9=[];const _0x1f0e89=os[_0xa3fceb('0xc')](),_0x4b1cac=_['orderBy'](_[_0xa3fceb('0x5')](_0x1f0e89));for(let _0x4abdb=0x0;_0x4abdb<_0x4b1cac[_0xa3fceb('0x4')];_0x4abdb++){const _0x528437=_0x1f0e89[_0x4b1cac[_0x4abdb]][_0xa3fceb('0x1f')](function(_0x316be7){const _0x21159a=_0xa3fceb;return _0x316be7[_0x21159a('0x3')]===_0x21159a('0x11')&&_0x316be7[_0x21159a('0x19')]===![];});_0x37f1d9=_0x37f1d9[_0xa3fceb('0x8')](_0x528437);}return _0x37f1d9;}function getFirstInterface(){const _0x107c77=_0x5c5c5f,_0x50ee7e=_[_0x107c77('0x18')](getInterfaces());return{'macAddress':_0x50ee7e&&_0x50ee7e[_0x107c77('0xf')]?_0x50ee7e['mac']:_0x107c77('0x20'),'ipAddress':_0x50ee7e&&_0x50ee7e[_0x107c77('0x0')]?_0x50ee7e[_0x107c77('0x0')]:'127.0.0.1'};}function getCPUhash(){const _0x4494d6=_0x5c5c5f,_0x2d2b2c=_[_0x4494d6('0x1')](os['cpus']()[_0x4494d6('0x16')](function(_0x463d41){const _0x28378b=_0x4494d6;return _0x463d41[_0x28378b('0x17')];}))['join'](':');return crypto[_0x4494d6('0x10')](_0x4494d6('0x13'))[_0x4494d6('0x1e')](_0x2d2b2c)[_0x4494d6('0xb')](_0x4494d6('0xa'));}function getUuid(){const _0x46e46d=_0x5c5c5f,_0x3cd2de=getConfigService(),_0x26348b=os['platform'](),_0x25f47a=/[0-9a-f-]{36}/;if(!_0x3cd2de['isProduction']&&_0x25f47a[_0x46e46d('0xd')](_0x3cd2de[_0x46e46d('0x12')]))return _0x3cd2de[_0x46e46d('0x12')];else{if(_0x26348b===_0x46e46d('0x7'))return exec(_0x46e46d('0x1b'),{'encoding':_0x46e46d('0xe')})[_0x46e46d('0x9')]('\x0d\x0a','');else{const _0x559cc8=getFirstInterface(),_0x4175f2=getCPUhash(),_0x156756=_0x4175f2+'|'+os[_0x46e46d('0x1d')]()+'|'+_0x559cc8[_0x46e46d('0x1c')]+'|'+_0x559cc8[_0x46e46d('0x6')],_0x298612=crypto[_0x46e46d('0x10')]('md5')[_0x46e46d('0x1e')](_0x156756)[_0x46e46d('0xb')](_0x46e46d('0xa'));return _0x298612[_0x46e46d('0x21')](0x0,0x8)+'-'+_0x298612[_0x46e46d('0x21')](0x8,0xc)+'-'+_0x298612[_0x46e46d('0x21')](0xc,0x10)+'-'+_0x298612['substring'](0x10,0x14)+'-'+_0x298612['substring'](0x14);}}}module[_0x5c5c5f('0x2')]={'getUuid':getUuid,'getFirstInterface':getFirstInterface,'getCPUhash':getCPUhash}; \ No newline at end of file +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 diff --git a/server/config/license/index.js b/server/config/license/index.js index c243a6c..9539ba7 100644 --- a/server/config/license/index.js +++ b/server/config/license/index.js @@ -1 +1 @@ -const a844_0x599f=['format','../../mysqldb','|reason|','decryptString','NEW\x20UUID\x20DETECTED:\x20FROM\x20%s\x20TO\x20%s','error','data1','./hardware','info','active','license','fullname','||FIELD||VALUE||\x0a','User','ipAddress','getUuid','reject','message','|name|','findOrCreate','then','encryptString','Alert','YYYY-MM-DD\x20HH:mm','SERVICE\x20LICENSE\x20STARTED\x20%s','openIssue','THE\x20LICENSE\x20HAS\x20BEEN\x20DISABLED','email','admin','../logger','|email|','DEMO\x20START\x20AT\x20%s','%s/api/servers/%s/check?version=%s&oldtoken=%s','util','request-promise-native','get','toUpperCase','update','Changed','|uuid|','../../components/encryptor','Motion\x20License\x20Alert','data2','days','uuid','catch','GET','finally','getFirstInterface','|machineUuid|','moment'];(function(_0x5ebaa4,_0x599fb8){const _0x5c133b=function(_0x1cbbe2){while(--_0x1cbbe2){_0x5ebaa4['push'](_0x5ebaa4['shift']());}};_0x5c133b(++_0x599fb8);}(a844_0x599f,0x7e));const a844_0x5c13=function(_0x5ebaa4,_0x599fb8){_0x5ebaa4=_0x5ebaa4-0x0;let _0x5c133b=a844_0x599f[_0x5ebaa4];return _0x5c133b;};const _0x115cf0=a844_0x5c13;'use strict';const {version}=require('../../../package.json'),util=require(_0x115cf0('0x9')),encryptor=require(_0x115cf0('0x10')),moment=require(_0x115cf0('0x1a')),rp=require(_0x115cf0('0xa')),db=require(_0x115cf0('0x1c'))['db'],hardware=require(_0x115cf0('0x22')),logger=require(_0x115cf0('0x5'))('license'),jira=require('../../api/jira/jira.controller'),HOST='https://www.xcallymotion.com',TIME=0x3c*0x1388,DAYS=0x7;let GRAY_PERIOD_REASON,ADMIN,oldToken;function httpRequest(_0x1cbbe2){return new Promise(function(_0x4943ef,_0x137715){const _0x5b09b9=a844_0x5c13;let _0xbb137f=util[_0x5b09b9('0x1b')]('%s/api/servers/%s/check?version=%s',HOST,_0x1cbbe2,version);oldToken&&(_0xbb137f=util[_0x5b09b9('0x1b')](_0x5b09b9('0x8'),HOST,_0x1cbbe2,version,oldToken));const _0x2f0249={'uri':_0xbb137f,'method':_0x5b09b9('0x16'),'timeout':0xea60,'json':!![]};return rp(_0x2f0249)[_0x5b09b9('0x2f')](function(_0xf53b47){_0x4943ef(_0xf53b47);})[_0x5b09b9('0x15')](function(_0x38cfc1){_0x137715(_0x38cfc1);});});}function sendJiraAlert(_0x54aff2,_0x352502,_0x44c601){const _0xeb7bd7=_0x115cf0;let _0x26c65a=_0xeb7bd7('0x27');return db[_0xeb7bd7('0x28')]['findOne']({'where':{'role':_0xeb7bd7('0x4')},'attributes':[_0xeb7bd7('0x26'),_0xeb7bd7('0x3')],'raw':!![]})[_0xeb7bd7('0x2f')](function(_0x5e78ba){const _0x140099=_0xeb7bd7;return ADMIN=_0x5e78ba,_0x26c65a+=_0x140099('0x1d')+_0x44c601+'|\x0a',_0x26c65a+=_0x140099('0xf')+_0x54aff2+'|\x0a',_0x26c65a+=_0x140099('0x19')+_0x352502+'|\x0a',_0x26c65a+=_0x140099('0x2d')+ADMIN['fullname']+'|\x0a',_0x26c65a+=_0x140099('0x6')+ADMIN['email']+'|\x0a',_0x26c65a;})[_0xeb7bd7('0x2f')](function(_0x2d8409){const _0x1c67d1=_0xeb7bd7,_0x13157f=hardware[_0x1c67d1('0x18')]()[_0x1c67d1('0x29')];return jira[_0x1c67d1('0x1')]({'key':'MOTLICENSE','summary':_0x1c67d1('0x11'),'description':_0x2d8409,'issuetype':_0x1c67d1('0x31'),'oldToken':_0x54aff2,'newToken':_0x352502,'email':ADMIN[_0x1c67d1('0x3')],'name':ADMIN['fullname'],'reason':GRAY_PERIOD_REASON,'ip':_0x13157f});});}function manageLicense(_0x27c02c,_0x47dbd1){const _0x565621=_0x115cf0,_0x18ebf8=_0x47dbd1[_0x565621('0xb')]({'plain':!![]});httpRequest(_0x27c02c)[_0x565621('0x2f')](function(_0x1b8ce5){const _0xc72d0f=_0x565621;oldToken&&(oldToken=undefined);if(_0x1b8ce5[_0xc72d0f('0x24')]){(!_0x18ebf8[_0xc72d0f('0x25')]&&_0x18ebf8[_0xc72d0f('0x25')]!=_0x1b8ce5[_0xc72d0f('0x25')]||_0x18ebf8[_0xc72d0f('0x25')]&&_0x18ebf8[_0xc72d0f('0x12')])&&logger[_0xc72d0f('0x23')]('THE\x20LICENSE\x20HAS\x20BEEN\x20ENABLED');_0x18ebf8[_0xc72d0f('0x25')]&&!_0x18ebf8[_0xc72d0f('0x12')]&&_0x18ebf8[_0xc72d0f('0x25')]!=_0x1b8ce5[_0xc72d0f('0x25')]&&logger[_0xc72d0f('0x23')]('THE\x20LICENSE\x20HAS\x20BEEN\x20UPDATED');if(_0x18ebf8['license']&&!_0x18ebf8[_0xc72d0f('0x12')]&&_0x18ebf8[_0xc72d0f('0x25')]==_0x1b8ce5[_0xc72d0f('0x25')])return _0x47dbd1;return _0x47dbd1[_0xc72d0f('0xd')]({'data1':_0x27c02c,'data2':null,'license':_0x1b8ce5[_0xc72d0f('0x25')]});}else{if(_0x1b8ce5['license']||_0x18ebf8['license']){if(!_0x18ebf8['data2'])return _0x18ebf8[_0xc72d0f('0x21')]==_0x27c02c?(GRAY_PERIOD_REASON='Disabled',logger[_0xc72d0f('0x23')](_0xc72d0f('0x2'))):(GRAY_PERIOD_REASON=_0xc72d0f('0xe'),oldToken=_0x18ebf8['data1'],logger[_0xc72d0f('0x23')](_0xc72d0f('0x1f'),_0x18ebf8[_0xc72d0f('0x21')],_0x27c02c)),sendJiraAlert(_0x18ebf8[_0xc72d0f('0x21')],_0x1b8ce5[_0xc72d0f('0x14')],GRAY_PERIOD_REASON),logger[_0xc72d0f('0x23')]('%s\x20-\x20GRAY\x20PERIOD\x20STARTED\x20AT\x20%s',GRAY_PERIOD_REASON[_0xc72d0f('0xc')](),moment()[_0xc72d0f('0x1b')](_0xc72d0f('0x32'))),_0x47dbd1[_0xc72d0f('0xd')]({'data2':encryptor[_0xc72d0f('0x30')](moment()[_0xc72d0f('0x1b')](_0xc72d0f('0x32')))});else{if(moment()['diff'](encryptor[_0xc72d0f('0x1e')](_0x18ebf8['data2']),_0xc72d0f('0x13'))>DAYS)return logger[_0xc72d0f('0x23')](_0xc72d0f('0x7'),moment()['format'](_0xc72d0f('0x32'))),_0x47dbd1['update']({'data1':_0x27c02c,'data2':null,'license':null});}}else{if(_0x18ebf8[_0xc72d0f('0x21')]!=_0x27c02c)return logger[_0xc72d0f('0x23')](_0xc72d0f('0x1f'),_0x18ebf8[_0xc72d0f('0x21')],_0x27c02c),_0x47dbd1[_0xc72d0f('0xd')]({'data1':_0x27c02c,'data2':null,'license':null});}}return _0x47dbd1;})[_0x565621('0x2f')](function(_0x407ace){_0x47dbd1=_0x407ace;})[_0x565621('0x15')](function(_0x450588){const _0x37dce0=_0x565621;logger[_0x37dce0('0x20')](_0x450588[_0x37dce0('0x2c')]);})[_0x565621('0x17')](function(){setTimeout(function(){const _0x48ea71=a844_0x5c13;manageLicense(hardware[_0x48ea71('0x2a')](),_0x47dbd1);},TIME);});}function defaultLicense(){const _0x426dd6=_0x115cf0,_0x18b2bf=hardware[_0x426dd6('0x2a')]();return _0x18b2bf?db['License'][_0x426dd6('0x2e')]({'where':{'id':0x1},'defaults':{'data1':_0x18b2bf}})[_0x426dd6('0x2f')](function([_0x2d4756]){const _0x7711c0=_0x426dd6;logger[_0x7711c0('0x23')](_0x7711c0('0x0'),_0x18b2bf),manageLicense(_0x18b2bf,_0x2d4756);})[_0x426dd6('0x15')](function(_0x423770){const _0x896cfd=_0x426dd6;logger[_0x896cfd('0x20')](_0x423770[_0x896cfd('0x2c')]);throw _0x423770;}):Promise[_0x426dd6('0x2b')](new Error('No\x20UUID\x20found'));}exports['default']=defaultLicense; \ No newline at end of file +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 diff --git a/server/config/license/util.js b/server/config/license/util.js index 03052ce..3a5f997 100644 --- a/server/config/license/util.js +++ b/server/config/license/util.js @@ -1 +1 @@ -const a845_0x1d49=['../../components/encryptor','user','machineUuid','disabled','decryptString','License\x20limit\x20reached\x20for\x20users','count','data2','getUuid','deadline','User','defaults','countBy','License\x20key\x20value\x20not\x20found','util','admin','../../mysqldb','findAll','message','telephone','catch','col','then','./hardware','data1','lodash','Demo\x20license','Breaking\x20license','sequelize','findOne','role','demo','pick','split','uuid','%s:%s:%s','parse','gray','moment','changed','format'];(function(_0x94ea05,_0x1d49e2){const _0xb1df2f=function(_0x2a5341){while(--_0x2a5341){_0x94ea05['push'](_0x94ea05['shift']());}};_0xb1df2f(++_0x1d49e2);}(a845_0x1d49,0x8e));const a845_0xb1df=function(_0x94ea05,_0x1d49e2){_0x94ea05=_0x94ea05-0x0;let _0xb1df2f=a845_0x1d49[_0x94ea05];return _0xb1df2f;};const _0x4df67b=a845_0xb1df;'use strict';const encryptor=require(_0x4df67b('0x16')),util=require(_0x4df67b('0x24')),_=require(_0x4df67b('0x6')),moment=require(_0x4df67b('0x13')),hardware=require(_0x4df67b('0x4')),db=require(_0x4df67b('0x26'))['db'],{Op}=require('sequelize'),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':_0x4df67b('0x7'),'machineUuid':hardware['getUuid'](),'virtual':0x0,'voice':!![],'screenrecording':![],'preferred':![],'ai':![]},breakingLicense={'breaking':!![],'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':![],'update':![],'description':_0x4df67b('0x8'),'machineUuid':hardware['getUuid'](),'virtual':0x0,'voice':!![],'screenrecording':![],'preferred':![],'ai':![]};function getLicense(_0x2a5341){return new Promise(function(_0x3f3e28,_0x55cdf0){const _0x3ddf0e=a845_0xb1df;return db['License'][_0x3ddf0e('0xa')](_[_0x3ddf0e('0x21')](_0x2a5341,{'raw':!![],'where':{'id':0x1}}))[_0x3ddf0e('0x3')](function(_0x194a35){return checkLicense(_0x194a35,null);})[_0x3ddf0e('0x3')](function(_0x224955){_0x3f3e28(_0x224955);return;})[_0x3ddf0e('0x1')](function(_0x2cb54a){_0x55cdf0(_0x2cb54a);});});}function checkLicense(_0x21d360,_0x4f2194){const _0x2cb250=_0x4df67b;if(!_0x21d360)return demoLicense[_0x2cb250('0xf')]=_0x21d360[_0x2cb250('0x5')],demoLicense;try{const _0x278af1=_0x4f2194||_0x21d360['license'];if(_['isEmpty'](_0x278af1))throw new Error(_0x2cb250('0x23'));const _0xc0da51=_0x21d360[_0x2cb250('0x5')],_0x1ef04e=_0x21d360[_0x2cb250('0x1d')],_0x152d19=_0xc0da51[_0x2cb250('0xe')]('-')[0x4],_0x547e12=_0xc0da51[_0x2cb250('0xe')]('-')[0x0],_0x34bf59=encryptor[_0x2cb250('0x1a')](_0x278af1,util[_0x2cb250('0x15')](_0x2cb250('0x10'),_0x152d19,_0xc0da51,_0x547e12)),_0x25b49f=JSON[_0x2cb250('0x11')](_0x34bf59);_0x25b49f[_0x2cb250('0xc')]=![],_0x25b49f[_0x2cb250('0xf')]=_0xc0da51,_0x25b49f[_0x2cb250('0x18')]=hardware[_0x2cb250('0x1e')]();if(_0x1ef04e){const _0x5468e5=encryptor[_0x2cb250('0x1a')](_0x1ef04e);_0x25b49f[_0x2cb250('0x12')]=_0x5468e5,_0x25b49f[_0x2cb250('0x1f')]=moment(_0x5468e5)['add'](0x7,'days')[_0x2cb250('0x15')](),_0x25b49f['grayReason']=_0x25b49f[_0x2cb250('0xf')]!=_0x25b49f[_0x2cb250('0x18')]?_0x2cb250('0x14'):_0x2cb250('0x19');}return _0x25b49f;}catch(_0x5c52a5){return breakingLicense[_0x2cb250('0xf')]=_0x21d360[_0x2cb250('0x5')],breakingLicense[_0x2cb250('0x28')]=_0x5c52a5[_0x2cb250('0x28')],breakingLicense;}}function getLimits(){return new Promise(function(_0x3f5faa,_0x2228b0){const _0x2710e2=a845_0xb1df;getLicense()[_0x2710e2('0x3')](function(_0x2815b3){const _0x1b8afd=_0x2710e2;return db[_0x1b8afd('0x20')][_0x1b8afd('0x27')]({'attributes':[_0x1b8afd('0xb'),[db['sequelize']['fn']('COUNT',db[_0x1b8afd('0x9')][_0x1b8afd('0x2')](_0x1b8afd('0xb'))),_0x1b8afd('0x1c')]],'group':_0x1b8afd('0xb'),'where':{'role':{[Op['or']]:['admin',_0x1b8afd('0x17'),_0x1b8afd('0x0')]}},'raw':!![]})[_0x1b8afd('0x3')](function(_0x463e75){const _0x3a529c={'user':_0x2815b3['users']||0x0,'telephone':_0x2815b3['telephones']||0x0};_0x463e75['forEach'](function(_0x2ff103){const _0xd68a59=a845_0xb1df,_0x2485e5=_0x2ff103[_0xd68a59('0xb')]===_0xd68a59('0x25')?_0xd68a59('0x17'):_0x2ff103[_0xd68a59('0xb')];_0x3a529c[_0x2485e5]-=_0x2ff103[_0xd68a59('0x1c')];if(_0x3a529c[_0x2485e5]<0x0)_0x3a529c[_0x2485e5]=0x0;}),_0x3f5faa(_0x3a529c);return;});})['catch'](function(_0x571bb8){_0x2228b0(_0x571bb8);});});}function checkUserLimits(_0x5ce759){return new Promise(function(_0x4157e6,_0x34f627){getLimits()['then'](function(_0xc3aa0a){const _0x5c8b7a=a845_0xb1df,_0x1c5c98=_[_0x5c8b7a('0xd')](_[_0x5c8b7a('0x22')](_0x5ce759,_0x5c8b7a('0xb')),['admin','user',_0x5c8b7a('0x0')]),_0x4c57d7=(_0x1c5c98[_0x5c8b7a('0x25')]||0x0)+(_0x1c5c98[_0x5c8b7a('0x17')]||0x0),_0x283adc=_0x1c5c98[_0x5c8b7a('0x0')]||0x0;if(_0x4c57d7>_0xc3aa0a[_0x5c8b7a('0x17')])return _0x34f627(_0x5c8b7a('0x1b'));if(_0x283adc>_0xc3aa0a[_0x5c8b7a('0x0')])return _0x34f627('License\x20limit\x20reached\x20for\x20telephones');return _0x4157e6();})['catch'](function(_0x2dd742){_0x34f627(_0x2dd742);});});}module['exports']={'checkLicense':checkLicense,'checkUserLimits':checkUserLimits,'getLicense':getLicense}; \ No newline at end of file +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 diff --git a/server/config/local.env.js b/server/config/local.env.js index 82f0549..c3e2019 100644 --- a/server/config/local.env.js +++ b/server/config/local.env.js @@ -1 +1 @@ -var a846_0x4ec3=['myappanuglar-secret','exports','http://localhost:9000','secret'];(function(_0x2f0b49,_0x4ec3ed){var _0x118538=function(_0x1ec325){while(--_0x1ec325){_0x2f0b49['push'](_0x2f0b49['shift']());}};_0x118538(++_0x4ec3ed);}(a846_0x4ec3,0x7a));var a846_0x1185=function(_0x2f0b49,_0x4ec3ed){_0x2f0b49=_0x2f0b49-0x0;var _0x118538=a846_0x4ec3[_0x2f0b49];return _0x118538;};var _0x583115=a846_0x1185;'use strict';module[_0x583115('0x3')]={'DOMAIN':_0x583115('0x0'),'SESSION_SECRET':_0x583115('0x2'),'GOOGLE_ID':'app-id','GOOGLE_SECRET':_0x583115('0x1'),'DEBUG':''}; \ No newline at end of file +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 diff --git a/server/config/logger.js b/server/config/logger.js index 76e2b49..4a24863 100644 --- a/server/config/logger.js +++ b/server/config/logger.js @@ -1 +1 @@ -const a847_0x5041=['util','YYYY-MM-DD\x20HH:mm:ss','\x20-\x20','%s-%s','exports','winston','assign','getConfigService','./config.service','debugLevel','info','createLogger','error','triple-beam','format','File','path','Console','safe-stable-stringify','moment',']\x20[','transports'];(function(_0xe54cfd,_0x504128){const _0x5e24fa=function(_0x26a505){while(--_0x26a505){_0xe54cfd['push'](_0xe54cfd['shift']());}};_0x5e24fa(++_0x504128);}(a847_0x5041,0x185));const a847_0x5e24=function(_0xe54cfd,_0x504128){_0xe54cfd=_0xe54cfd-0x0;let _0x5e24fa=a847_0x5041[_0xe54cfd];return _0x5e24fa;};const _0x23c2f8=a847_0x5e24;'use strict';const moment=require(_0x23c2f8('0x4')),winston=require(_0x23c2f8('0xc')),util=require(_0x23c2f8('0x7')),path=require(_0x23c2f8('0x1')),{MESSAGE}=require(_0x23c2f8('0x14')),jsonStringify=require(_0x23c2f8('0x3')),cs=require(_0x23c2f8('0xf'))[_0x23c2f8('0xe')](),logPath=cs['logPath'];function filename(_0x26a505,_0x282197){const _0x1e7c45=_0x23c2f8;return path['join'](logPath,util[_0x1e7c45('0x15')]('%s-%s.log',_0x26a505,_0x282197));}const MotionFormatter=_0x15df38=>winston[_0x23c2f8('0x15')](_0xec28b4=>{const _0x5148d3=_0x23c2f8,_0x2ab962=moment()[_0x5148d3('0x15')](_0x5148d3('0x8')),{level:_0x1a1823,message:_0x522990}=_0xec28b4,_0x13e064=jsonStringify(Object[_0x5148d3('0xd')]({},_0xec28b4,{'level':undefined,'message':undefined,'splat':undefined}));return _0xec28b4[MESSAGE]='['+_0x2ab962+_0x5148d3('0x5')+_0x1a1823['toUpperCase']()+']\x20'+_0x15df38+_0x5148d3('0x9')+_0x522990+'\x20'+(_0x13e064==='{}'?'':_0x13e064),_0xec28b4;})();module[_0x23c2f8('0xb')]=function(_0x230c87){const _0x6f2dc6=_0x23c2f8;return winston[_0x6f2dc6('0x12')]({'transports':[new winston[(_0x6f2dc6('0x6'))][(_0x6f2dc6('0x0'))]({'name':util[_0x6f2dc6('0x15')](_0x6f2dc6('0xa'),_0x230c87,'error'),'filename':filename(_0x230c87,_0x6f2dc6('0x13')),'level':_0x6f2dc6('0x13'),'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'format':MotionFormatter(_0x230c87)}),new winston[(_0x6f2dc6('0x6'))]['File']({'name':util['format'](_0x6f2dc6('0xa'),_0x230c87,'info'),'filename':filename(_0x230c87,_0x6f2dc6('0x11')),'level':_0x6f2dc6('0x11'),'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'format':MotionFormatter(_0x230c87)}),new winston['transports'][(_0x6f2dc6('0x2'))]({'level':cs[_0x6f2dc6('0x10')],'format':MotionFormatter(_0x230c87)})]});}; \ No newline at end of file +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 diff --git a/server/config/pm2/config.js b/server/config/pm2/config.js index 24c7dd4..bf7e192 100644 --- a/server/config/pm2/config.js +++ b/server/config/pm2/config.js @@ -1 +1 @@ -const a848_0x5de8=['services/routing/index.js','services/email/index.js','email','appRoot','agi','services/ami/index.js','services/express/index.js','express','path','join','routing'];(function(_0x5d4cd6,_0x5de84c){const _0x2287dc=function(_0x35d4d8){while(--_0x35d4d8){_0x5d4cd6['push'](_0x5d4cd6['shift']());}};_0x2287dc(++_0x5de84c);}(a848_0x5de8,0x169));const a848_0x2287=function(_0x5d4cd6,_0x5de84c){_0x5d4cd6=_0x5d4cd6-0x0;let _0x2287dc=a848_0x5de8[_0x5d4cd6];return _0x2287dc;};const _0x10cbf2=a848_0x2287;'use strict';const path=require(_0x10cbf2('0xa')),config={'apps':[{'wait_ready':!![],'name':_0x10cbf2('0x9'),'script':path[_0x10cbf2('0x0')](global[_0x10cbf2('0x5')],_0x10cbf2('0x8'))},{'name':'ami','script':path[_0x10cbf2('0x0')](global[_0x10cbf2('0x5')],_0x10cbf2('0x7'))},{'name':_0x10cbf2('0x6'),'script':path[_0x10cbf2('0x0')](global[_0x10cbf2('0x5')],'services/agi/index.js')},{'name':_0x10cbf2('0x4'),'script':path[_0x10cbf2('0x0')](global[_0x10cbf2('0x5')],_0x10cbf2('0x3'))},{'name':_0x10cbf2('0x1'),'script':path[_0x10cbf2('0x0')](global[_0x10cbf2('0x5')],_0x10cbf2('0x2'))},{'name':'xdr','script':path[_0x10cbf2('0x0')](global[_0x10cbf2('0x5')],'services/xdr/index.js')}]};module['exports']=config; \ No newline at end of file +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 diff --git a/server/config/pm2/index.js b/server/config/pm2/index.js index fd62161..7927edb 100644 --- a/server/config/pm2/index.js +++ b/server/config/pm2/index.js @@ -1 +1 @@ -const a849_0x3d85=['restart','pm2','Stopped\x20and\x20Deleted','dump','stop','debug','saved','delete','start','connect','Restarted','list','Stopped','then','describe'];(function(_0x3361ad,_0x3d8525){const _0x1a05c3=function(_0x5c6344){while(--_0x5c6344){_0x3361ad['push'](_0x3361ad['shift']());}};_0x1a05c3(++_0x3d8525);}(a849_0x3d85,0x1d6));const a849_0x1a05=function(_0x3361ad,_0x3d8525){_0x3361ad=_0x3361ad-0x0;let _0x1a05c3=a849_0x3d85[_0x3361ad];return _0x1a05c3;};const _0x1928ad=a849_0x1a05;'use strict';const pm2=require(_0x1928ad('0xb'));function connect(){return new Promise(function(_0x5c6344,_0x37e82a){const _0x3509aa=a849_0x1a05;return pm2[_0x3509aa('0x4')](function(_0x20e124){_0x20e124?_0x37e82a(_0x20e124):_0x5c6344('connected');});});}exports[_0x1928ad('0x3')]=function(_0x323def){const _0xb4320c=_0x1928ad;return connect()[_0xb4320c('0x8')](function(){return new Promise(function(_0x1a8aeb,_0xdda0c9){const _0x508ff4=a849_0x1a05;return pm2[_0x508ff4('0x3')](_0x323def,function(_0x6654f2,_0x45cef4){_0x6654f2?_0xdda0c9(_0x6654f2):(pm2['disconnect'](),_0x1a8aeb(_0x45cef4));});});});},exports['stop']=function(_0x4a5106){const _0x29a111=_0x1928ad;return connect()[_0x29a111('0x8')](function(){return new Promise(function(_0x17b646,_0x436773){const _0x39295b=a849_0x1a05;return pm2[_0x39295b('0xe')](_0x4a5106,function(_0xb71f6,_0x967d43){const _0x3b4cfd=_0x39295b;_0xb71f6?_0x436773(_0xb71f6):(console[_0x3b4cfd('0x0')](_0x3b4cfd('0x7'),_0x4a5106),_0x17b646(_0x967d43));});});});},exports['restart']=function(_0x5d1081){const _0x3d9408=_0x1928ad;return connect()[_0x3d9408('0x8')](function(){return new Promise(function(_0x13bac2,_0x416a2c){const _0x5f1808=a849_0x1a05;return pm2[_0x5f1808('0xa')](_0x5d1081,function(_0x47a146,_0x58ebc4){const _0x1c59bb=_0x5f1808;_0x47a146?_0x416a2c(_0x47a146):(console['debug'](_0x1c59bb('0x5'),_0x5d1081),_0x13bac2(_0x58ebc4));});});});},exports['list']=function(){const _0x379eb1=_0x1928ad;return connect()[_0x379eb1('0x8')](function(){return new Promise(function(_0xd8131c,_0x333f05){const _0xcdfb0c=a849_0x1a05;return pm2[_0xcdfb0c('0x6')](function(_0x32aa63,_0x9dadd6){_0x32aa63?_0x333f05(_0x32aa63):_0xd8131c(_0x9dadd6);});});});},exports[_0x1928ad('0x9')]=function(_0x10b4af){return connect()['then'](function(){return new Promise(function(_0x23644e,_0x135c26){const _0x294736=a849_0x1a05;return pm2[_0x294736('0x9')](_0x10b4af,function(_0x3132dc,_0x5205bb){_0x3132dc?_0x135c26(_0x3132dc):_0x23644e(_0x5205bb);});});});},exports[_0x1928ad('0x2')]=function(_0x4c7b8e){const _0x2660fa=_0x1928ad;return connect()[_0x2660fa('0x8')](function(){return new Promise(function(_0x1bc2ee,_0x1ffe29){const _0x36aa60=a849_0x1a05;return pm2[_0x36aa60('0x2')](_0x4c7b8e,function(_0x1da1bf,_0x5056d3){const _0x37fdc1=_0x36aa60;_0x1da1bf?_0x1ffe29(_0x1da1bf):(console[_0x37fdc1('0x0')](_0x37fdc1('0xc'),_0x4c7b8e),_0x1bc2ee(_0x5056d3));});});});},exports[_0x1928ad('0xd')]=function(){return connect()['then'](function(){return new Promise(function(_0xad822b,_0x4cea64){const _0x6697e2=a849_0x1a05;return pm2[_0x6697e2('0xd')](function(_0x5039b9){const _0x3bd6ae=_0x6697e2;_0x5039b9?_0x4cea64(_0x5039b9):_0xad822b(_0x3bd6ae('0x1'));});});});}; \ No newline at end of file +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 diff --git a/server/config/schedule/chat.js b/server/config/schedule/chat.js index a304b3e..f28dce7 100644 --- a/server/config/schedule/chat.js +++ b/server/config/schedule/chat.js @@ -1 +1 @@ -const a850_0x549a=['system','emit','moment','error','then','map','catch','subtract','minutes','lodash','YYYY-MM-DD\x20HH:mm:ss','../../mysqldb','start','findOne','chatTimeout','update','findAll','lastMsgAt','ChatInteraction','format'];(function(_0x39cb57,_0x549af4){const _0x78a293=function(_0x576756){while(--_0x576756){_0x39cb57['push'](_0x39cb57['shift']());}};_0x78a293(++_0x549af4);}(a850_0x549a,0x17b));const a850_0x78a2=function(_0x39cb57,_0x549af4){_0x39cb57=_0x39cb57-0x0;let _0x78a293=a850_0x549a[_0x39cb57];return _0x78a293;};const _0x417082=a850_0x78a2;'use strict';const _=require(_0x417082('0xa')),moment=require(_0x417082('0x3')),db=require(_0x417082('0xc'))['db'],{getSocket}=require('../../rediscache'),io=getSocket();function closeInteractions(){const _0x1542fc=_0x417082;let _0x576756=0x0,_0x39dc11=[];return db['Setting'][_0x1542fc('0xe')]({'raw':!![],'attributes':['id',_0x1542fc('0xf')],'where':{'id':0x1}})[_0x1542fc('0x5')](function(_0x24a620){const _0x409118=_0x1542fc;return _0x576756=_0x24a620['chatTimeout'],_0x576756?db[_0x409118('0x13')][_0x409118('0x11')]({'raw':!![],'attributes':['id',_0x409118('0x12')],'where':{'closed':![],'lastMsgAt':{'$lt':moment()[_0x409118('0x8')](_0x24a620[_0x409118('0xf')],_0x409118('0x9'))}}}):[];})[_0x1542fc('0x5')](function(_0x5423d5){const _0x22f9ca=_0x1542fc;_0x39dc11=_0x5423d5;if(_0x576756)return db['ChatInteraction'][_0x22f9ca('0x10')]({'closeReason':_0x22f9ca('0x1'),'disposition':'timeout','closed':!![],'closedAt':moment()[_0x22f9ca('0x0')](_0x22f9ca('0xb'))},{'where':{'id':_[_0x22f9ca('0x6')](_0x39dc11||[],'id')}});})['then'](function(){const _0x1d84e4=_0x1542fc;for(let _0x2aec37=0x0;_0x2aec37<_0x39dc11['length'];_0x2aec37++){io[_0x1d84e4('0x2')]('chatInteraction:update',{'id':_0x39dc11[_0x2aec37]['id'],'closed':!![]});}})[_0x1542fc('0x7')](function(_0x175aa2){const _0x4fd7e5=_0x1542fc;console[_0x4fd7e5('0x4')](_0x175aa2);});}exports[_0x417082('0xd')]=function(){return setInterval(function(){return closeInteractions();},0x3c*0x3e8),closeInteractions();}; \ No newline at end of file +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 diff --git a/server/config/schedule/index.js b/server/config/schedule/index.js index d8cb126..c1fda8a 100644 --- a/server/config/schedule/index.js +++ b/server/config/schedule/index.js @@ -1 +1 @@ -const a851_0x6599=['secure','stringify','output','format','endAt','bcc','subtract','auth','\x22%s\x22\x20<%s>','then','length','error','../../api/analyticDefaultReport/analyticDefaultReport.controller','resolve','deleteJob','stop','scheduled','../logger','empty\x20file,\x20email\x20not\x20sent','keyBy','update\x20cron','status','findAll','../../api/analyticCustomReport/analyticCustomReport.controller','CustomReportId','existsSync','text','extname','info','stop\x20cron','toString','difference','intersection','savename','my\x20id','runReport','request','Schedule','start','port','YYYY-MM-DD\x20HH:mm:ss','authentication','cron','subtractUnit','attachments','map','../../mysqldb','subtractNumber\x20null\x20or\x20undefined','Try\x20to\x20send\x20a\x20mail\x20to','cron-job-manager','name','message','active','Report\x20%s\x20last\x20%s\x20%s','schedule','http','run','DefaultReportId','util','../../files/reports','startAt','MailServerOut','toRun','subtractUnit\x20null\x20or\x20undefined','basename','catch','jobs','user','add','subtractNumber','pass','email\x20sent','isNil','update','data','MailAccount','error\x20mail','Smtp','path','exec\x20custom\x20report\x20id:%s','jayson/promise','Sent','lodash','delete\x20cron','host','Report\x20empty\x0aThis\x20is\x20an\x20automatically\x20generated\x20email\x20–\x20please\x20do\x20not\x20reply\x20to\x20this\x20email.\x0a\x0a','email','service','exists'];(function(_0x4d8a6c,_0x659989){const _0x54e9a0=function(_0x43197e){while(--_0x43197e){_0x4d8a6c['push'](_0x4d8a6c['shift']());}};_0x54e9a0(++_0x659989);}(a851_0x6599,0x1e2));const a851_0x54e9=function(_0x4d8a6c,_0x659989){_0x4d8a6c=_0x4d8a6c-0x0;let _0x54e9a0=a851_0x6599[_0x4d8a6c];return _0x54e9a0;};const _0x2c4c29=a851_0x54e9;'use strict';const fs=require('fs'),util=require(_0x2c4c29('0x15')),path=require(_0x2c4c29('0x29')),_=require(_0x2c4c29('0x2d')),moment=require('moment'),CronJobManager=require(_0x2c4c29('0xc')),jayson=require(_0x2c4c29('0x2b')),logger=require(_0x2c4c29('0x45'))(_0x2c4c29('0x11')),db=require(_0x2c4c29('0x9'))['db'],analyticCustomReportController=require(_0x2c4c29('0x4b')),analyticDefaultReportController=require(_0x2c4c29('0x40')),client=jayson['client'][_0x2c4c29('0x12')]({'port':0x232b}),manager=new CronJobManager();function handleSendEmail(_0x43197e,_0x2a7efa){return function(){const _0x239947=a851_0x54e9;logger[_0x239947('0x50')](_0x239947('0xb'),_0x43197e[_0x239947('0x31')]);let _0x1dfd51=!![];const _0xeaf793={'tls':{'rejectUnauthorized':![]}};_0x43197e['MailAccount'][_0x239947('0x28')][_0x239947('0x32')]?_0xeaf793[_0x239947('0x32')]=_0x43197e[_0x239947('0x26')]['Smtp'][_0x239947('0x32')]:(_0xeaf793[_0x239947('0x2f')]=_0x43197e[_0x239947('0x26')][_0x239947('0x28')][_0x239947('0x2f')],_0xeaf793[_0x239947('0x2')]=_0x43197e[_0x239947('0x26')]['Smtp'][_0x239947('0x2')],_0xeaf793[_0x239947('0x34')]=_0x43197e[_0x239947('0x26')]['Smtp']['secure']);_0x43197e['MailAccount']['Smtp'][_0x239947('0x4')]&&(_0xeaf793[_0x239947('0x3b')]={'user':_0x43197e[_0x239947('0x26')]['Smtp'][_0x239947('0x1e')],'pass':_0x43197e['MailAccount'][_0x239947('0x28')][_0x239947('0x21')]});const _0x34d712={'account':_0xeaf793,'message':{'from':util[_0x239947('0x37')](_0x239947('0x3c'),_0x43197e[_0x239947('0x26')]['name'],_0x43197e[_0x239947('0x26')][_0x239947('0x31')]||_0x43197e[_0x239947('0x26')][_0x239947('0x28')]['user']),'to':_0x43197e['email'],'cc':_0x43197e['cc'],'bcc':_0x43197e[_0x239947('0x39')],'subject':util[_0x239947('0x37')](_0x239947('0x10'),_0x2a7efa[_0x239947('0xd')],_0x43197e[_0x239947('0x20')],_0x43197e[_0x239947('0x6')])}},_0x3a8ee0=path['join'](__dirname,_0x239947('0x16')),_0x469141=_0x2a7efa['savename'],_0x9719d1=util[_0x239947('0x37')]('%s.%s',path[_0x239947('0x1b')](_0x2a7efa[_0x239947('0x55')],path[_0x239947('0x4f')](_0x2a7efa['savename'])),'zip'),_0x5a9af8=path['join'](_0x3a8ee0,_0x469141),_0x408852=path['join'](_0x3a8ee0,_0x9719d1);if(fs[_0x239947('0x4d')](_0x5a9af8))_0x2a7efa['status']=_0x239947('0x2c'),_0x34d712['message']['attachments']=[{'filename':_0x469141,'path':_0x5a9af8}],_0x34d712['message'][_0x239947('0x4e')]=util[_0x239947('0x37')]('Info\x20report:\x0a%s\x0aPlease\x20see\x20the\x20attachments\x0aThis\x20is\x20an\x20automatically\x20generated\x20email\x20–\x20please\x20do\x20not\x20reply\x20to\x20it.\x0a\x0a',JSON[_0x239947('0x35')](_0x2a7efa,null,0x2));else fs[_0x239947('0x4d')](_0x408852)?(_0x2a7efa[_0x239947('0x49')]='Sent',_0x34d712['message'][_0x239947('0x7')]=[{'filename':_0x9719d1,'path':_0x408852}]):(_0x34d712[_0x239947('0xe')][_0x239947('0x4e')]=_0x239947('0x30'),!_0x43197e['sendIfEmpty']&&(_0x1dfd51=![],logger['info'](_0x239947('0x46'))));if(_0x1dfd51)return client[_0x239947('0x58')]('SendMail',_0x34d712)[_0x239947('0x3d')](function(_0x13c377){const _0x3d31e8=_0x239947;if(_0x13c377[_0x3d31e8('0x3f')])return logger[_0x3d31e8('0x3f')](_0x3d31e8('0x27'),JSON[_0x3d31e8('0x35')](_0x13c377));return logger[_0x3d31e8('0x50')](_0x3d31e8('0x22'));})[_0x239947('0x1c')](function(_0x4298af){const _0x26fe57=_0x239947;return logger['error'](_0x26fe57('0x27'),JSON[_0x26fe57('0x35')](_0x4298af));});};}function handleError(){return function(_0x4d2b23){const _0x3671ea=a851_0x54e9;return logger[_0x3671ea('0x3f')](JSON['stringify'](_0x4d2b23));};}function handleResult(_0x1f90bd){return function(_0x12b298){const _0x2eeb71=a851_0x54e9;logger[_0x2eeb71('0x50')](_0x2eeb71('0x25'),JSON[_0x2eeb71('0x35')](_0x12b298)),_0x1f90bd['MailAccount']&&_0x1f90bd['MailAccount'][_0x2eeb71('0x28')]&&!_[_0x2eeb71('0x23')](_0x1f90bd['email'])&&setTimeout(handleSendEmail(_0x1f90bd,_0x12b298),0x3c*0x3e8);};}function handleJob(_0x3335b9){return function(){const _0x109575=a851_0x54e9;try{if(_[_0x109575('0x23')](_0x3335b9['subtractNumber']))return logger[_0x109575('0x50')](_0x109575('0xa'));if(_[_0x109575('0x23')](_0x3335b9[_0x109575('0x6')]))return logger[_0x109575('0x50')](_0x109575('0x1a'));const _0x10b91b={'startDate':moment()[_0x109575('0x3a')](_0x3335b9[_0x109575('0x20')],_0x3335b9[_0x109575('0x6')])[_0x109575('0x37')](_0x109575('0x3')),'endDate':moment()[_0x109575('0x37')](_0x109575('0x3')),'type':_0x109575('0x44'),'output':_0x3335b9[_0x109575('0x36')],'name':_0x3335b9[_0x109575('0xd')]};if(!_[_0x109575('0x23')](_0x3335b9[_0x109575('0x14')]))return logger['info']('exec\x20defaul\x20report\x20id:%s',_0x3335b9[_0x109575('0x14')]),analyticDefaultReportController[_0x109575('0x57')]({'id':_0x3335b9[_0x109575('0x14')]},_0x10b91b)[_0x109575('0x3d')](handleResult(_0x3335b9))['catch'](handleError());if(!_[_0x109575('0x23')](_0x3335b9['CustomReportId']))return logger[_0x109575('0x50')](_0x109575('0x2a'),_0x3335b9['CustomReportId']),analyticCustomReportController[_0x109575('0x57')]({'id':_0x3335b9[_0x109575('0x4c')]},_0x10b91b)[_0x109575('0x3d')](handleResult(_0x3335b9))[_0x109575('0x1c')](handleError());}catch(_0x22c5de){logger['error'](JSON[_0x109575('0x35')](_0x22c5de));}return logger['info']('no\x20report\x20id');};}function getJobs(_0x3e28ac){const _0x3ce3b9=_0x2c4c29,_0x43dd16={};return _0x3e28ac&&(_0x43dd16['id']=_0x3e28ac),db[_0x3ce3b9('0x0')][_0x3ce3b9('0x4a')]({'where':_0x43dd16,'include':[{'model':db[_0x3ce3b9('0x26')],'attributes':['id',_0x3ce3b9('0xd'),_0x3ce3b9('0x31')],'include':[{'model':db[_0x3ce3b9('0x18')],'as':'Smtp'}]}]})[_0x3ce3b9('0x3d')](function(_0x52b5e3){const _0x4772b1=_0x3ce3b9,_0x28826d=_['keys'](manager[_0x4772b1('0x1d')]),_0x356308=_[_0x4772b1('0x8')](_0x52b5e3,function(_0x1b7199){const _0x2a9246=_0x4772b1;return _0x1b7199['id'][_0x2a9246('0x52')]();}),_0x3b8ac7=_[_0x4772b1('0x47')](_0x52b5e3,function(_0x2c3a6b){const _0x2ccac1=_0x4772b1;return _0x2c3a6b['id'][_0x2ccac1('0x52')]();}),_0x2a1fa0=_0x3e28ac?_0x356308:_[_0x4772b1('0x53')](_0x356308,_0x28826d),_0x1e83c0=_[_0x4772b1('0x54')](_0x356308,_0x28826d),_0x1ba631=_[_0x4772b1('0x53')](_0x28826d,_0x356308);let _0x26d60f,_0x295e06;for(_0x26d60f=0x0;_0x26d60f<_0x1ba631[_0x4772b1('0x3e')]&&!_0x3e28ac;_0x26d60f+=0x1){_0x295e06=_0x1ba631[_0x26d60f][_0x4772b1('0x52')](),manager[_0x4772b1('0x33')](_0x295e06)&&(manager[_0x4772b1('0x43')](_0x295e06),manager[_0x4772b1('0x42')](_0x295e06),logger['info'](_0x4772b1('0x2e'),_0x295e06));}logger['info'](_0x4772b1('0x19'),JSON[_0x4772b1('0x35')](_0x2a1fa0));for(_0x26d60f=0x0;_0x26d60f<_0x2a1fa0[_0x4772b1('0x3e')];_0x26d60f+=0x1){_0x295e06=_0x2a1fa0[_0x26d60f][_0x4772b1('0x52')](),logger['info']('index',_0x295e06);if(_0x3e28ac)logger[_0x4772b1('0x50')](_0x4772b1('0x56'),_0x3e28ac),logger['info'](JSON[_0x4772b1('0x35')](_0x3b8ac7[_0x295e06])),Promise[_0x4772b1('0x41')]()[_0x4772b1('0x3d')](handleJob(_0x3b8ac7[_0x295e06])),logger[_0x4772b1('0x50')]('run\x20job',_0x3b8ac7[_0x295e06][_0x4772b1('0xd')],_0x3b8ac7[_0x295e06][_0x4772b1('0x5')]);else{if(_0x3b8ac7[_0x295e06]['cron']&&_0x3b8ac7[_0x295e06][_0x4772b1('0xf')]&&moment()['isBetween'](_0x3b8ac7[_0x295e06][_0x4772b1('0x17')],_0x3b8ac7[_0x295e06][_0x4772b1('0x38')]))manager[_0x4772b1('0x1f')](_0x295e06,_0x3b8ac7[_0x295e06][_0x4772b1('0x5')],handleJob(_0x3b8ac7[_0x295e06])),manager[_0x4772b1('0x1')](_0x295e06),logger['info']('add\x20cron',_0x3b8ac7[_0x295e06]['name'],_0x3b8ac7[_0x295e06][_0x4772b1('0x5')]);else manager[_0x4772b1('0x33')](_0x295e06)&&(manager['stop'](_0x295e06),manager[_0x4772b1('0x42')](_0x295e06),logger[_0x4772b1('0x50')](_0x4772b1('0x51'),_0x3b8ac7[_0x295e06][_0x4772b1('0xd')],_0x3b8ac7[_0x295e06][_0x4772b1('0x5')]));}}for(_0x26d60f=0x0,_0x295e06;_0x26d60f<_0x1e83c0[_0x4772b1('0x3e')]&&!_0x3e28ac;_0x26d60f+=0x1){_0x295e06=_0x1e83c0[_0x26d60f][_0x4772b1('0x52')](),manager[_0x4772b1('0x33')](_0x295e06)&&(_0x3b8ac7[_0x295e06][_0x4772b1('0x5')]&&_0x3b8ac7[_0x295e06]['active']&&moment()['isBetween'](_0x3b8ac7[_0x295e06][_0x4772b1('0x17')],_0x3b8ac7[_0x295e06][_0x4772b1('0x38')])?(manager[_0x4772b1('0x24')](_0x295e06,_0x3b8ac7[_0x295e06][_0x4772b1('0x5')],handleJob(_0x3b8ac7[_0x295e06])),logger[_0x4772b1('0x50')](_0x4772b1('0x48'),_0x3b8ac7[_0x295e06][_0x4772b1('0xd')],_0x3b8ac7[_0x295e06]['cron'])):(manager[_0x4772b1('0x43')](_0x295e06),manager[_0x4772b1('0x42')](_0x295e06),logger[_0x4772b1('0x50')](_0x4772b1('0x51'),_0x3b8ac7[_0x295e06][_0x4772b1('0xd')],_0x3b8ac7[_0x295e06][_0x4772b1('0x5')])));}})[_0x3ce3b9('0x1c')](function(_0x34a7ee){const _0x115b4e=_0x3ce3b9;logger[_0x115b4e('0x3f')](JSON[_0x115b4e('0x35')](_0x34a7ee));});}exports[_0x2c4c29('0x13')]=function(_0x527cec){return getJobs(_0x527cec);},exports[_0x2c4c29('0x1')]=function(){return setInterval(function(){return getJobs();},0x3c*0x3e8),getJobs();}; \ No newline at end of file +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 diff --git a/server/config/schedule/transcribe.js b/server/config/schedule/transcribe.js index 5e2e603..d54dd5b 100644 --- a/server/config/schedule/transcribe.js +++ b/server/config/schedule/transcribe.js @@ -1 +1 @@ -const a852_0x340b=['FAILED','[RECORDING:%d]\x20Sentiment\x20Analysis\x20available','TranscriptionJobStatus','Sequelize','Settings\x20not\x20available','Positive','COMPLETED','transcripts','[RECORDING:%d]\x20Status\x20of\x20transcript\x20job\x20(%s):\x20%s','sentimentAccountId','Sentiment\x20Analysis\x20not\x20requested','Transcript\x20not\x20available','inspect','[RECORDING:%d]\x20Requesting\x20sentiment\x20analysis','data1','Cloud\x20Provider\x20not\x20configured','../../config/logger','length','aws-sdk','[RECORDING:%d]\x20Voice\x20Recording\x20entry\x20updated','TranscriptFileUri','push','TranscribeService','name','format','tempSentiment','TranscriptionJob','results','error','Cloud\x20Provider\x20not\x20available','info','CloudProvider','transcribeAccountId','findOne','Sentiment\x20Analysis\x20not\x20configured','[RECORDING:%d]\x20Get\x20status\x20for\x20transcript\x20job\x20(%s)','Sentiment','../../mysqldb','sentiment','transcribe','forEach','Comprehend','catch','util','Negative','bucket','language','then','substring','VoiceRecording','SequelizeValidationError','[RECORDING:%d]\x20Transcript\x20Job\x20status\x20not\x20managed','data2','transcribeRegion','update','detectSentiment','SentimentScore','transcribeName','sentimentRegion','Neutral','IN_PROGRESS','ValidationError','request-promise-native','Setting','Transcript','[RECORDING:%d]\x20Transcript\x20downloaded','Mixed','fileText'];(function(_0x27767d,_0x340bf8){const _0x4101de=function(_0x160ff2){while(--_0x160ff2){_0x27767d['push'](_0x27767d['shift']());}};_0x4101de(++_0x340bf8);}(a852_0x340b,0x15a));const a852_0x4101=function(_0x27767d,_0x340bf8){_0x27767d=_0x27767d-0x0;let _0x4101de=a852_0x340b[_0x27767d];return _0x4101de;};const _0x166f7b=a852_0x4101,AWS=require(_0x166f7b('0xc')),rp=require(_0x166f7b('0x38')),util=require(_0x166f7b('0x25')),db=require(_0x166f7b('0x1f'))['db'],logger=require(_0x166f7b('0xa'))(_0x166f7b('0x21'));function getTranscriptionJob(_0x160ff2,_0x5e5ffd,_0x2759ab,_0x5e5609){return new Promise(function(_0x4e4942,_0x111d3d){const _0x5b7e03=a852_0x4101,_0x3acc19=new AWS[(_0x5b7e03('0x10'))]({'accessKeyId':_0x5e5ffd,'secretAccessKey':_0x160ff2,'region':_0x2759ab});_0x3acc19['getTranscriptionJob']({'TranscriptionJobName':_0x5e5609},function(_0x36b5ab,_0x852dbc){return _0x36b5ab?_0x111d3d(_0x36b5ab):_0x4e4942(_0x852dbc);});});}function sentiment(_0x14f306,_0xeef601,_0x40f103,_0x4ad69e,_0x41e987){return new Promise(function(_0x2d2e51,_0x4cec33){const _0x39bc1e=a852_0x4101,_0x5a292f=new AWS[(_0x39bc1e('0x23'))]({'accessKeyId':_0xeef601,'secretAccessKey':_0x14f306,'region':_0x40f103});_0x5a292f[_0x39bc1e('0x31')]({'Text':_0x4ad69e,'LanguageCode':_0x41e987[_0x39bc1e('0x2a')](0x0,0x2)},function(_0x4b866d,_0x14caf0){return _0x4b866d?_0x4cec33(_0x4b866d):_0x2d2e51(_0x14caf0);});});}function checkTranscribeJob(_0x5f09a,_0x525b1e,_0x6e2525){let _0x4ca6c6;return new Promise(function(_0x2bc0f4){const _0x50dad7=a852_0x4101;return logger['info'](util[_0x50dad7('0x12')](_0x50dad7('0x1d'),_0x5f09a['id'],_0x5f09a[_0x50dad7('0x33')])),getTranscriptionJob(_0x6e2525['data1'],_0x6e2525[_0x50dad7('0x2e')],_0x525b1e['transcribeRegion'],_0x5f09a[_0x50dad7('0x33')])[_0x50dad7('0x29')](function(_0x17e62f){const _0x5c90cf=_0x50dad7;logger[_0x5c90cf('0x18')](util['format'](_0x5c90cf('0x2'),_0x5f09a['id'],_0x5f09a[_0x5c90cf('0x33')],_0x17e62f[_0x5c90cf('0x14')]['TranscriptionJobStatus']));if(!_0x5f09a[_0x5c90cf('0x3d')])switch(_0x17e62f[_0x5c90cf('0x14')][_0x5c90cf('0x40')]){case _0x5c90cf('0x0'):{const _0x40ce50={'transcribeStatus':_0x17e62f[_0x5c90cf('0x14')][_0x5c90cf('0x40')],'fileUri':_0x17e62f['TranscriptionJob'][_0x5c90cf('0x3a')][_0x5c90cf('0xe')]};return logger[_0x5c90cf('0x18')](util[_0x5c90cf('0x12')]('[RECORDING:%d]\x20Get\x20transcript',_0x5f09a['id'])),rp({'uri':_0x17e62f[_0x5c90cf('0x14')][_0x5c90cf('0x3a')][_0x5c90cf('0xe')],'json':!![]})['then'](function(_0xd5c9d8){const _0x1bb544=_0x5c90cf;logger[_0x1bb544('0x18')](util[_0x1bb544('0x12')](_0x1bb544('0x3b'),_0x5f09a['id']));if(_0xd5c9d8&&_0xd5c9d8[_0x1bb544('0x15')]&&_0xd5c9d8[_0x1bb544('0x15')][_0x1bb544('0x1')]&&_0xd5c9d8[_0x1bb544('0x15')][_0x1bb544('0x1')][_0x1bb544('0xb')]){_0x40ce50['fileText']='';for(let _0x584efe=0x0;_0x584efe<_0xd5c9d8[_0x1bb544('0x15')]['transcripts'][_0x1bb544('0xb')];_0x584efe++){_0x40ce50[_0x1bb544('0x3d')]+=_0xd5c9d8[_0x1bb544('0x15')][_0x1bb544('0x1')][_0x584efe]['transcript']+'';}}return _0x5f09a['update'](_0x40ce50);})['then'](function(){const _0x14b410=_0x5c90cf;logger[_0x14b410('0x18')](util[_0x14b410('0x12')](_0x14b410('0xd'),_0x5f09a['id']));if(!_0x5f09a[_0x14b410('0x13')])throw new db[(_0x14b410('0x41'))][(_0x14b410('0x37'))](_0x14b410('0x4'));if(!_0x525b1e[_0x14b410('0x20')]||!_0x525b1e['sentimentAccountId']||!_0x525b1e[_0x14b410('0x34')]||!_0x525b1e[_0x14b410('0x28')]||!_0x525b1e[_0x14b410('0x27')])throw new db[(_0x14b410('0x41'))]['ValidationError'](_0x14b410('0x1c'));if(!_0x40ce50[_0x14b410('0x3d')])throw new Error(_0x14b410('0x5'));return _0x525b1e['sentimentAccountId']===_0x6e2525['id']?_0x6e2525:db['CloudProvider'][_0x14b410('0x1b')]({'where':{'id':_0x525b1e['sentimentAccountId']}});})[_0x5c90cf('0x29')](function(_0x719b1f){const _0xab1f8a=_0x5c90cf;if(!_0x719b1f)throw new db[(_0xab1f8a('0x41'))][(_0xab1f8a('0x37'))](_0xab1f8a('0x17'));if(!_0x719b1f['data1']||!_0x719b1f[_0xab1f8a('0x2e')])throw new db['Sequelize'][(_0xab1f8a('0x37'))]('Cloud\x20Provider\x20not\x20configured');return _0x4ca6c6=_0x719b1f,logger['info'](util['format']('[RECORDING:%d]\x20Requesting\x20sentiment\x20analysis',_0x5f09a['id'])),sentiment(_0x4ca6c6['data1'],_0x4ca6c6[_0xab1f8a('0x2e')],_0x525b1e[_0xab1f8a('0x34')],_0x40ce50['fileText'],_0x525b1e[_0xab1f8a('0x28')]);})['then'](function(_0x45c288){const _0x8cbc6a=_0x5c90cf;return logger[_0x8cbc6a('0x18')](util[_0x8cbc6a('0x12')](_0x8cbc6a('0x3f'),_0x5f09a['id'])),_0x5f09a[_0x8cbc6a('0x30')]({'sentiment':_0x45c288[_0x8cbc6a('0x1e')],'sPositive':_0x45c288[_0x8cbc6a('0x32')][_0x8cbc6a('0x43')],'sNegative':_0x45c288['SentimentScore'][_0x8cbc6a('0x26')],'sMixed':_0x45c288[_0x8cbc6a('0x32')][_0x8cbc6a('0x3c')],'sNeutral':_0x45c288[_0x8cbc6a('0x32')]['Neutral']});})[_0x5c90cf('0x29')](function(){const _0x457d64=_0x5c90cf;logger['info'](util[_0x457d64('0x12')]('[RECORDING:%d]\x20Voice\x20Recording\x20entry\x20updated',_0x5f09a['id'])),_0x2bc0f4();});}case _0x5c90cf('0x3e'):return _0x5f09a[_0x5c90cf('0x30')]({'transcribeStatus':'FAILED','failureReason':_0x17e62f['TranscriptionJob']['FailureReason']})[_0x5c90cf('0x29')](function(){const _0x290adb=_0x5c90cf;logger[_0x290adb('0x18')](util[_0x290adb('0x12')](_0x290adb('0xd'),_0x5f09a['id'])),_0x2bc0f4();});default:logger[_0x5c90cf('0x18')](util[_0x5c90cf('0x12')](_0x5c90cf('0x2d'),_0x5f09a['id']));break;}else return Promise['resolve']()[_0x5c90cf('0x29')](function(){const _0x4872c0=_0x5c90cf;if(!_0x5f09a[_0x4872c0('0x13')])throw new db[(_0x4872c0('0x41'))][(_0x4872c0('0x37'))](_0x4872c0('0x4'));if(!_0x525b1e[_0x4872c0('0x20')]||!_0x525b1e[_0x4872c0('0x3')]||!_0x525b1e['sentimentRegion']||!_0x525b1e[_0x4872c0('0x28')]||!_0x525b1e['bucket'])throw new db[(_0x4872c0('0x41'))][(_0x4872c0('0x37'))](_0x4872c0('0x1c'));if(!_0x5f09a[_0x4872c0('0x3d')])throw new Error(_0x4872c0('0x5'));return _0x525b1e['sentimentAccountId']===_0x6e2525['id']?_0x6e2525:db[_0x4872c0('0x19')]['findOne']({'where':{'id':_0x525b1e[_0x4872c0('0x3')]}});})['then'](function(_0x48beb3){const _0x46c06a=_0x5c90cf;if(!_0x48beb3)throw new db[(_0x46c06a('0x41'))][(_0x46c06a('0x37'))](_0x46c06a('0x17'));if(!_0x48beb3[_0x46c06a('0x8')]||!_0x48beb3[_0x46c06a('0x2e')])throw new db['Sequelize']['ValidationError']('Cloud\x20Provider\x20not\x20configured');return _0x4ca6c6=_0x48beb3,logger[_0x46c06a('0x18')](util[_0x46c06a('0x12')](_0x46c06a('0x7'),_0x5f09a['id'])),sentiment(_0x4ca6c6['data1'],_0x4ca6c6[_0x46c06a('0x2e')],_0x525b1e['sentimentRegion'],_0x5f09a[_0x46c06a('0x3d')],_0x525b1e[_0x46c06a('0x28')]);})[_0x5c90cf('0x29')](function(_0x3a8f00){const _0x32be26=_0x5c90cf;return logger[_0x32be26('0x18')](util[_0x32be26('0x12')](_0x32be26('0x3f'),_0x5f09a['id'])),_0x5f09a[_0x32be26('0x30')]({'sentiment':_0x3a8f00['Sentiment'],'sPositive':_0x3a8f00[_0x32be26('0x32')][_0x32be26('0x43')],'sNegative':_0x3a8f00['SentimentScore'][_0x32be26('0x26')],'sMixed':_0x3a8f00[_0x32be26('0x32')][_0x32be26('0x3c')],'sNeutral':_0x3a8f00[_0x32be26('0x32')][_0x32be26('0x35')],'transcribeStatus':_0x32be26('0x0')});})[_0x5c90cf('0x29')](function(){const _0x5857d5=_0x5c90cf;logger[_0x5857d5('0x18')](util[_0x5857d5('0x12')](_0x5857d5('0xd'),_0x5f09a['id'])),_0x2bc0f4();});})[_0x50dad7('0x24')](function(_0x86d4bd){const _0x4e67d2=_0x50dad7;_0x86d4bd&&((!_0x86d4bd['name']||_0x86d4bd['name']!==_0x4e67d2('0x2c'))&&logger[_0x4e67d2('0x16')](util['format']('[RECORDING:%d]\x20Error\x20running\x20Transcribe\x20&\x20Sentiment\x20Analysis',_0x5f09a['id']),util[_0x4e67d2('0x6')](_0x86d4bd,{'showHidden':![],'depth':null}))),_0x2bc0f4();});});}function checkTranscribe(){const _0x52899d=_0x166f7b;let _0x37bd15,_0x487a47,_0x36ae9c;return db[_0x52899d('0x2b')]['findAll']({'where':{'transcribeStatus':_0x52899d('0x36')}})['then'](function(_0x2e1048){const _0x22f51a=_0x52899d;if(!_0x2e1048||!_0x2e1048[_0x22f51a('0xb')])throw new db[(_0x22f51a('0x41'))][(_0x22f51a('0x37'))]('No\x20transcribe\x20job\x20to\x20check');return _0x37bd15=_0x2e1048,db[_0x22f51a('0x39')]['findOne']({'where':{'id':0x1}});})[_0x52899d('0x29')](function(_0x2bad0f){const _0x4330ae=_0x52899d;if(!_0x2bad0f)throw new db[(_0x4330ae('0x41'))][(_0x4330ae('0x37'))](_0x4330ae('0x42'));_0x487a47=_0x2bad0f;if(!_0x487a47['transcribe']||!_0x487a47[_0x4330ae('0x1a')]||!_0x487a47[_0x4330ae('0x2f')]||!_0x487a47[_0x4330ae('0x28')]||!_0x487a47[_0x4330ae('0x27')])throw new db[(_0x4330ae('0x41'))][(_0x4330ae('0x37'))]('Transcribe\x20not\x20configured');return db[_0x4330ae('0x19')][_0x4330ae('0x1b')]({'where':{'id':_0x487a47[_0x4330ae('0x1a')]}});})[_0x52899d('0x29')](function(_0x3337a0){const _0x5b8d2b=_0x52899d;if(!_0x3337a0)throw new db['Sequelize'][(_0x5b8d2b('0x37'))](_0x5b8d2b('0x17'));if(!_0x3337a0[_0x5b8d2b('0x8')]||!_0x3337a0[_0x5b8d2b('0x2e')])throw new db[(_0x5b8d2b('0x41'))][(_0x5b8d2b('0x37'))](_0x5b8d2b('0x9'));_0x36ae9c=_0x3337a0;const _0x4dbb5a=[];return _0x37bd15[_0x5b8d2b('0x22')](function(_0x14415e){const _0x48055b=_0x5b8d2b;_0x4dbb5a[_0x48055b('0xf')](checkTranscribeJob(_0x14415e,_0x487a47,_0x36ae9c));}),Promise['all'](_0x4dbb5a);})[_0x52899d('0x24')](function(_0x3da20a){const _0x3f003e=_0x52899d;_0x3da20a&&((!_0x3da20a['name']||_0x3da20a[_0x3f003e('0x11')]!==_0x3f003e('0x2c'))&&logger[_0x3f003e('0x16')](util[_0x3f003e('0x6')](_0x3da20a,{'showHidden':![],'depth':null})));});}exports['start']=function(){return setInterval(function(){return checkTranscribe();},0x3c*0x3e8),checkTranscribe();}; \ No newline at end of file +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 diff --git a/server/config/seedContact.js b/server/config/seedContact.js index 8d0bb88..c5f751a 100644 --- a/server/config/seedContact.js +++ b/server/config/seedContact.js @@ -1 +1 @@ -const a853_0x3b4e=['finished\x20populating','CmContact','then','log','Biondo','push','innocenzo.biondo','destroy','../mysqldb','now','Innocenzo','@xcally.com','contacts1','CmHopper','hopper1','bulkCreate','hopper2'];(function(_0x3747a1,_0x3b4e87){const _0x5a7956=function(_0x257998){while(--_0x257998){_0x3747a1['push'](_0x3747a1['shift']());}};_0x5a7956(++_0x3b4e87);}(a853_0x3b4e,0x16b));const a853_0x5a79=function(_0x3747a1,_0x3b4e87){_0x3747a1=_0x3747a1-0x0;let _0x5a7956=a853_0x3b4e[_0x3747a1];return _0x5a7956;};const _0x1e75c=a853_0x5a79;'use strict';const db=require(_0x1e75c('0x2'))['db'],contacts=[],hopper=[],contacts2=[],hopper2=[];for(let i=0x1;i<=0x4b0;i+=0x1){contacts['push']({'id':i,'firstName':'Innocenzo'+i,'lastName':_0x1e75c('0xf')+i,'phone':0xf879fb460+i,'email':_0x1e75c('0x0')+i+_0x1e75c('0x5')});}for(let i=0x1;i<=0x4b0;i+=0x1){hopper[_0x1e75c('0x10')]({'id':i,'active':![],'scheduledat':Date[_0x1e75c('0x3')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x1e75c('0x3')](),'updatedAt':Date['now']()});}for(let i=0x4b1;i<=0x960;i+=0x1){contacts2['push']({'id':i,'firstName':_0x1e75c('0x4')+i,'lastName':_0x1e75c('0xf')+i,'phone':0xf879fb460+i,'email':'innocenzo.biondo'+i+'@xcally.com'});}for(let i=0x4b1;i<=0x960;i+=0x1){hopper2['push']({'id':i,'active':![],'scheduledat':Date[_0x1e75c('0x3')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x1e75c('0x3')](),'updatedAt':Date[_0x1e75c('0x3')]()});}db[_0x1e75c('0xc')]['destroy']({'where':{}})[_0x1e75c('0xd')](function(){const _0x2045a4=_0x1e75c;return db[_0x2045a4('0xc')][_0x2045a4('0x9')](contacts);})[_0x1e75c('0xd')](function(){const _0x102f7f=_0x1e75c;return console[_0x102f7f('0xe')]('finished\x20populating',_0x102f7f('0x6')),db['CmHopper'][_0x102f7f('0x1')]({'where':{}});})[_0x1e75c('0xd')](function(){const _0x5b0c00=_0x1e75c;return db[_0x5b0c00('0x7')][_0x5b0c00('0x9')](hopper);})[_0x1e75c('0xd')](function(){const _0x49c6f9=_0x1e75c;return console['log']('finished\x20populating',_0x49c6f9('0x8')),db[_0x49c6f9('0xc')][_0x49c6f9('0x9')](contacts2);})[_0x1e75c('0xd')](function(){const _0x4e78b2=_0x1e75c;return console['log']('finished\x20populating','contacts2'),db[_0x4e78b2('0x7')][_0x4e78b2('0x9')](hopper2);})['then'](function(){const _0x151de5=_0x1e75c;console[_0x151de5('0xe')](_0x151de5('0xb'),_0x151de5('0xa'));})['catch'](function(_0x257998){const _0x1edd34=_0x1e75c;console[_0x1edd34('0xe')](_0x257998);}); \ No newline at end of file +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 diff --git a/server/config/seedDB/analyticReports.js b/server/config/seedDB/analyticReports.js index e24bba3..0a53054 100644 --- a/server/config/seedDB/analyticReports.js +++ b/server/config/seedDB/analyticReports.js @@ -1 +1 @@ -const a854_0x7428=['fields','catch','error','app','AnalyticDefaultReport','default','AnalyticFieldReport','Analytic\x20Default\x20Reports\x20have\x20been\x20created','Analytic\x20Custom\x20Reports\x20have\x20been\x20created','custom','length','motion','info','ReportId','../../mysqldb','DefaultReportId','createCustom','CustomReportId','bulkCreate','destroy','AnalyticCustomReport','then'];(function(_0x3cb13d,_0x742882){const _0x48d948=function(_0x28b6bf){while(--_0x28b6bf){_0x3cb13d['push'](_0x3cb13d['shift']());}};_0x48d948(++_0x742882);}(a854_0x7428,0x99));const a854_0x48d9=function(_0x3cb13d,_0x742882){_0x3cb13d=_0x3cb13d-0x0;let _0x48d948=a854_0x7428[_0x3cb13d];return _0x48d948;};const _0x51cf76=a854_0x48d9;'use strict';const db=require(_0x51cf76('0xf'))['db'],logger=require('../logger')(_0x51cf76('0x4')),report=require('./report');exports['createDefault']=function(){const _0x122634=_0x51cf76;return db[_0x122634('0x5')][_0x122634('0x14')]({'where':{}})[_0x122634('0x0')](function(){const _0x148fda=_0x122634;return db[_0x148fda('0x5')][_0x148fda('0x13')](report[_0x148fda('0x6')](_0x148fda('0xc')),{'ignoreDuplicates':!![],'individualHooks':!![]});})[_0x122634('0x0')](function(_0x28b6bf){const _0x587a60=_0x122634,_0x3e85cd=report[_0x587a60('0x1')]();for(let _0x43a3b5=0x0;_0x43a3b5<_0x28b6bf[_0x587a60('0xb')];_0x43a3b5+=0x1){if(_0x3e85cd[_0x28b6bf[_0x43a3b5]['id']]){for(let _0x26e1d2=0x0;_0x26e1d2<_0x3e85cd[_0x28b6bf[_0x43a3b5]['id']][_0x587a60('0xb')];_0x26e1d2+=0x1){_0x3e85cd[_0x28b6bf[_0x43a3b5]['id']][_0x26e1d2][_0x587a60('0x10')]=_0x3e85cd[_0x28b6bf[_0x43a3b5]['id']][_0x26e1d2][_0x587a60('0xe')],delete _0x3e85cd[_0x28b6bf[_0x43a3b5]['id']][_0x26e1d2][_0x587a60('0xe')];}db[_0x587a60('0x7')][_0x587a60('0x13')](_0x3e85cd[_0x28b6bf[_0x43a3b5]['id']]);}}})[_0x122634('0x0')](function(){const _0x1ffd55=_0x122634;logger['info'](_0x1ffd55('0x8'));})[_0x122634('0x2')](function(_0x2b470a){const _0x448522=_0x122634;logger[_0x448522('0x3')]('Can\x27t\x20create\x20Analytic\x20Default\x20Report',_0x2b470a['message']);});},exports[_0x51cf76('0x11')]=function(){const _0x59f43c=_0x51cf76;return db[_0x59f43c('0x15')][_0x59f43c('0x13')](report[_0x59f43c('0x6')](_0x59f43c('0xa')),{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x59f43c('0x0')](function(_0x4709b6){const _0x3e8386=_0x59f43c,_0x5a4230=report[_0x3e8386('0x1')]();for(let _0xc19af9=0x0;_0xc19af9<_0x4709b6[_0x3e8386('0xb')];_0xc19af9+=0x1){if(_0x5a4230[_0x4709b6[_0xc19af9]['id']]){for(let _0x3ff2df=0x0;_0x3ff2df<_0x5a4230[_0x4709b6[_0xc19af9]['id']][_0x3e8386('0xb')];_0x3ff2df+=0x1){_0x5a4230[_0x4709b6[_0xc19af9]['id']][_0x3ff2df][_0x3e8386('0x12')]=_0x5a4230[_0x4709b6[_0xc19af9]['id']][_0x3ff2df]['ReportId'],delete _0x5a4230[_0x4709b6[_0xc19af9]['id']][_0x3ff2df][_0x3e8386('0xe')];}db['AnalyticFieldReport'][_0x3e8386('0x13')](_0x5a4230[_0x4709b6[_0xc19af9]['id']]);}}})[_0x59f43c('0x0')](function(){const _0x5a4786=_0x59f43c;logger[_0x5a4786('0xd')](_0x5a4786('0x9'));})[_0x59f43c('0x2')](function(){logger['error']('Can\x27t\x20create\x20Analytic\x20Custom\x20Report');});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/analyticTreeReports.js b/server/config/seedDB/analyticTreeReports.js index 3e5341a..c599447 100644 --- a/server/config/seedDB/analyticTreeReports.js +++ b/server/config/seedDB/analyticTreeReports.js @@ -1 +1 @@ -const a855_0x4126=['then','error','info','createCustom','findOrCreate','stringify','./tree','catch','../../mysqldb','app','AnalyticTreeReport','Can\x27t\x20create\x20Analytic\x20Tree\x20Custom\x20Report','Analytic\x20Tree\x20Custom\x20Reports\x20have\x20been\x20created','../logger','Analytic\x20Tree\x20Default\x20Reports\x20have\x20been\x20created','motion','bulkCreate'];(function(_0x5c6084,_0x4126ae){const _0x299a40=function(_0x5d1639){while(--_0x5d1639){_0x5c6084['push'](_0x5c6084['shift']());}};_0x299a40(++_0x4126ae);}(a855_0x4126,0x120));const a855_0x299a=function(_0x5c6084,_0x4126ae){_0x5c6084=_0x5c6084-0x0;let _0x299a40=a855_0x4126[_0x5c6084];return _0x299a40;};const _0x23c85f=a855_0x299a;'use strict';const db=require(_0x23c85f('0x9'))['db'],logger=require(_0x23c85f('0xe'))(_0x23c85f('0xa')),tree=require(_0x23c85f('0x7'));exports['createDefault']=function(){const _0xa3df63=_0x23c85f;return db['AnalyticTreeReport'][_0xa3df63('0x5')]({'where':{'id':0x1},'defaults':{'id':0x1,'tree':JSON[_0xa3df63('0x6')](tree['motion'])}})[_0xa3df63('0x1')](function([_0x5d1639,_0x43416c]){const _0x384806=_0xa3df63;if(!_0x43416c)return _0x5d1639['update']({'tree':JSON[_0x384806('0x6')](tree[_0x384806('0x10')])});return _0x5d1639;})[_0xa3df63('0x1')](function(){const _0x44fc23=_0xa3df63;logger[_0x44fc23('0x3')](_0x44fc23('0xf'));})[_0xa3df63('0x8')](function(){const _0x20cd71=_0xa3df63;logger[_0x20cd71('0x2')]('Can\x27t\x20create\x20Analytic\x20Tree\x20Default\x20Report');});},exports[_0x23c85f('0x4')]=function(){const _0x14bd4a=_0x23c85f;return db[_0x14bd4a('0xb')][_0x14bd4a('0x0')]([{'id':0x2,'tree':JSON[_0x14bd4a('0x6')](tree['custom'])}],{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x14bd4a('0x1')](function(){const _0x2341b5=_0x14bd4a;logger[_0x2341b5('0x3')](_0x2341b5('0xd'));})['catch'](function(){const _0x48843d=_0x14bd4a;logger['error'](_0x48843d('0xc'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/chanspy.js b/server/config/seedDB/chanspy.js index 4c7741f..4f25856 100644 --- a/server/config/seedDB/chanspy.js +++ b/server/config/seedDB/chanspy.js @@ -1 +1 @@ -const a856_0x5311=['error','info','bulkCreate','spy2','The\x20supervisor\x20can\x20only\x20listen\x20the\x20agent\x20channel\x20(neither\x20the\x20agent\x20nor\x20the\x20customer\x20will\x20listen\x20to\x20the\x20supervisor\x20voice)','The\x20supervisor\x20can\x20listen\x20and\x20talk\x20both\x20to\x20the\x20agent\x20and\x20to\x20the\x20customer,\x20like\x20a\x20pure\x203\x20way\x20conference\x20room','../logger','OnlyListenBoth','ChanSpy\x20have\x20been\x20created','The\x20supervisor\x20can\x20just\x20listen\x20to\x20the\x20phone\x20call','../../mysqldb','Listen&TalkOne','then','Listen&TalkBoth','Can\x27t\x20create\x20ChanSpy','catch','The\x20supervisor\x20can\x20listen\x20and\x20talk\x20to\x20the\x20agent.\x20The\x20customer\x20will\x20not\x20listen\x20to\x20the\x20supervisor\x20voice'];(function(_0x39dc27,_0x531124){const _0x14b2b6=function(_0x10b96c){while(--_0x10b96c){_0x39dc27['push'](_0x39dc27['shift']());}};_0x14b2b6(++_0x531124);}(a856_0x5311,0xfc));const a856_0x14b2=function(_0x39dc27,_0x531124){_0x39dc27=_0x39dc27-0x0;let _0x14b2b6=a856_0x5311[_0x39dc27];return _0x14b2b6;};const _0x4291fe=a856_0x14b2;'use strict';const db=require(_0x4291fe('0xd'))['db'],logger=require(_0x4291fe('0x9'))('app'),chanSpy=[{'id':0x1,'name':_0x4291fe('0xe'),'prefix':'spy1','options':['b','w','E','S'],'description':_0x4291fe('0x2')},{'id':0x2,'name':'OnlyListen','prefix':_0x4291fe('0x6'),'options':['b','o','E','S'],'description':_0x4291fe('0x7')},{'id':0x3,'name':_0x4291fe('0x10'),'prefix':'spy3','options':['B','w','E','S'],'description':_0x4291fe('0x8')},{'id':0x4,'name':_0x4291fe('0xa'),'prefix':'spy4','options':['B','o','E','S'],'description':_0x4291fe('0xc')}];exports['create']=function(){const _0x194dfb=_0x4291fe;return db['VoiceChanSpy'][_0x194dfb('0x5')](chanSpy,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x194dfb('0xf')](function(){const _0x41aee3=_0x194dfb;logger[_0x41aee3('0x4')](_0x41aee3('0xb'));})[_0x194dfb('0x1')](function(){const _0x2ca8fc=_0x194dfb;logger[_0x2ca8fc('0x3')](_0x2ca8fc('0x0'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/companies.js b/server/config/seedDB/companies.js index 697b96e..2ee09b3 100644 --- a/server/config/seedDB/companies.js +++ b/server/config/seedDB/companies.js @@ -1 +1 @@ -const a857_0x15a3=['create','Turin','info','catch','../../mysqldb','info@xcally.com','Companies\x20have\x20been\x20created','then','Italy','www.xcallymotion.com','company\x20auto\x20generated','CmCompany','xcally.com','app','Xenialab','+3901119886500','error','../logger','Corso\x20Vittorio\x20Emanuele\x20II,\x20111','bulkCreate','09668910012','Can\x27t\x20create\x20Companies'];(function(_0x56c615,_0x15a309){const _0x2ede2e=function(_0xca10fa){while(--_0xca10fa){_0x56c615['push'](_0x56c615['shift']());}};_0x2ede2e(++_0x15a309);}(a857_0x15a3,0xdc));const a857_0x2ede=function(_0x56c615,_0x15a309){_0x56c615=_0x56c615-0x0;let _0x2ede2e=a857_0x15a3[_0x56c615];return _0x2ede2e;};const _0x46a379=a857_0x2ede;'use strict';const db=require(_0x46a379('0x4'))['db'],logger=require(_0x46a379('0x11'))(_0x46a379('0xd')),companies=[{'id':0x1,'name':_0x46a379('0xe'),'type':'srl','vat':_0x46a379('0x14'),'phone':_0x46a379('0xf'),'fax':'+390110960070','website':_0x46a379('0x9'),'email':_0x46a379('0x5'),'emailDomain':_0x46a379('0xc'),'street':_0x46a379('0x12'),'postalCode':'10128','city':_0x46a379('0x1'),'country':_0x46a379('0x8'),'description':_0x46a379('0xa')}];exports[_0x46a379('0x0')]=function(){const _0x958da0=_0x46a379;return db[_0x958da0('0xb')][_0x958da0('0x13')](companies,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x958da0('0x7')](function(){const _0xbd5fad=_0x958da0;logger[_0xbd5fad('0x2')](_0xbd5fad('0x6'));})[_0x958da0('0x3')](function(){const _0x4131f0=_0x958da0;logger[_0x4131f0('0x10')](_0x4131f0('0x15'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/contacts.js b/server/config/seedDB/contacts.js index f76459c..71c86d3 100644 --- a/server/config/seedDB/contacts.js +++ b/server/config/seedDB/contacts.js @@ -1 +1 @@ -const a858_0x294a=['floor','Rossi','./tags','../logger','app','bulkCreate','Contacts\x20have\x20been\x20created','info','contact\x20auto\x20generated','random','../../mysqldb','catch','mario.rossi@xcally.com','123','giuseppe.verdi@xcally.com','CmContact','456','andrea.bianco@xcally.com','Bianco','Mario','Andrea','getNames','create','Can\x27t\x20create\x20Contacts','789'];(function(_0x16fd2d,_0x294ae1){const _0x410aaf=function(_0x555a7d){while(--_0x555a7d){_0x16fd2d['push'](_0x16fd2d['shift']());}};_0x410aaf(++_0x294ae1);}(a858_0x294a,0x85));const a858_0x410a=function(_0x16fd2d,_0x294ae1){_0x16fd2d=_0x16fd2d-0x0;let _0x410aaf=a858_0x294a[_0x16fd2d];return _0x410aaf;};const _0x3de90b=a858_0x410a;'use strict';const db=require(_0x3de90b('0x2'))['db'],logger=require(_0x3de90b('0x14'))(_0x3de90b('0x15')),tags=require(_0x3de90b('0x13'))[_0x3de90b('0xd')](),getRandomTag=function(){const _0x656a36=_0x3de90b,_0x555a7d=tags['length']-0x1;return[tags[Math[_0x656a36('0x11')](Math[_0x656a36('0x1')]()*_0x555a7d)+0x1]];},contacts=[{'id':0x1,'firstName':_0x3de90b('0xb'),'lastName':_0x3de90b('0x12'),'phone':_0x3de90b('0x5'),'email':_0x3de90b('0x4'),'ListId':0x1,'CompanyId':0x1,'tags':getRandomTag(),'description':_0x3de90b('0x0')},{'id':0x2,'firstName':'Giuseppe','lastName':'Verdi','phone':_0x3de90b('0x8'),'email':_0x3de90b('0x6'),'ListId':0x1,'CompanyId':0x1,'tags':getRandomTag(),'description':_0x3de90b('0x0')},{'id':0x3,'firstName':_0x3de90b('0xc'),'lastName':_0x3de90b('0xa'),'phone':_0x3de90b('0x10'),'email':_0x3de90b('0x9'),'ListId':0x2,'CompanyId':0x1,'tags':getRandomTag(),'description':_0x3de90b('0x0')}];exports[_0x3de90b('0xe')]=function(){const _0x56d61e=_0x3de90b;return db[_0x56d61e('0x7')][_0x56d61e('0x16')](contacts,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x4b062b=_0x56d61e;logger[_0x4b062b('0x18')](_0x4b062b('0x17'));})[_0x56d61e('0x3')](function(){const _0x17cf18=_0x56d61e;logger['error'](_0x17cf18('0xf'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/dispositions.js b/server/config/seedDB/dispositions.js index dfbf538..71634ae 100644 --- a/server/config/seedDB/dispositions.js +++ b/server/config/seedDB/dispositions.js @@ -1 +1 @@ -const a859_0x470e=['Interested','Answer\x20Machine','Sold','Disposition','bulkCreate','info','Can\x27t\x20create\x20Companies','then','Special','Dispositions\x20have\x20been\x20created','../logger','Not\x20Interested','app'];(function(_0x1b8f15,_0x470ecd){const _0x90472c=function(_0x5406d2){while(--_0x5406d2){_0x1b8f15['push'](_0x1b8f15['shift']());}};_0x90472c(++_0x470ecd);}(a859_0x470e,0x18e));const a859_0x9047=function(_0x1b8f15,_0x470ecd){_0x1b8f15=_0x1b8f15-0x0;let _0x90472c=a859_0x470e[_0x1b8f15];return _0x90472c;};const _0x18c891=a859_0x9047;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x18c891('0x2'))(_0x18c891('0x4')),dispositions=[{'name':'Fax'},{'name':_0x18c891('0x6')},{'name':_0x18c891('0x5')},{'name':_0x18c891('0x3')},{'name':_0x18c891('0x7')},{'name':_0x18c891('0x0')}];exports['create']=function(){const _0x1cb6b3=_0x18c891;return db[_0x1cb6b3('0x8')][_0x1cb6b3('0x9')](dispositions,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x1cb6b3('0xc')](function(){const _0x304598=_0x1cb6b3;logger[_0x304598('0xa')](_0x304598('0x1'));})['catch'](function(){const _0x3de47b=_0x1cb6b3;logger['error'](_0x3de47b('0xb'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/index.js b/server/config/seedDB/index.js index fe0faf6..b417994 100644 --- a/server/config/seedDB/index.js +++ b/server/config/seedDB/index.js @@ -1 +1 @@ -const a860_0x2bed=['./mailAccounts','createCustom','./migrations','./teams','createAlways','./userProfiles','../logger','./voiceQueues','./voiceExtensions','./jscriptyProjects','error','./intervals','./lists','default','./contacts','../../mysqldb','./analyticReports','app','./sounds','./users','Setting','./voiceContexts','findOrCreate','./variables','./squareOdbc','create','./analyticTreeReports','info','Settings\x20have\x20been\x20created','./voiceMusicOnHold','./tags','Default\x20seed','createDefault','./companies'];(function(_0x208f32,_0x2bed0e){const _0x7ff04=function(_0x2cdcd8){while(--_0x2cdcd8){_0x208f32['push'](_0x208f32['shift']());}};_0x7ff04(++_0x2bed0e);}(a860_0x2bed,0x18c));const a860_0x7ff0=function(_0x208f32,_0x2bed0e){_0x208f32=_0x208f32-0x0;let _0x7ff04=a860_0x2bed[_0x208f32];return _0x7ff04;};const _0x52b7a7=a860_0x7ff0;'use strict';const db=require(_0x52b7a7('0x1b'))['db'],logger=require(_0x52b7a7('0x12'))(_0x52b7a7('0x1d'));async function defaultSeed(){const _0x405b5d=_0x52b7a7;try{const [,_0x2cdcd8]=await db[_0x405b5d('0x20')][_0x405b5d('0x0')]({'where':{'id':0x1},'defaults':{'firstSetup':!![]}});_0x2cdcd8?(logger[_0x405b5d('0x5')](_0x405b5d('0x6')),await require(_0x405b5d('0x4'))[_0x405b5d('0xd')](),await require(_0x405b5d('0x1c'))[_0x405b5d('0xd')](),await require(_0x405b5d('0xe'))[_0x405b5d('0x3')](),await require(_0x405b5d('0x17'))[_0x405b5d('0x3')](),await require(_0x405b5d('0x11'))[_0x405b5d('0x3')](),await require(_0x405b5d('0x1f'))['create'](),await require(_0x405b5d('0xf'))['create'](),await require('./trunks')['create'](),await require(_0x405b5d('0x13'))[_0x405b5d('0x3')](),await require('./chanspy')[_0x405b5d('0x3')](),await require(_0x405b5d('0x7'))['create'](),await require(_0x405b5d('0x1'))[_0x405b5d('0x3')](),await require('./pauses')[_0x405b5d('0x3')](),await require(_0x405b5d('0x8'))[_0x405b5d('0x3')](),await require(_0x405b5d('0xb'))[_0x405b5d('0x3')](),await require(_0x405b5d('0x1e'))[_0x405b5d('0x3')](),await require(_0x405b5d('0x2'))[_0x405b5d('0x3')](),await require('./squareProjects')[_0x405b5d('0x3')](),await require(_0x405b5d('0x15'))[_0x405b5d('0x3')](),await require(_0x405b5d('0x14'))[_0x405b5d('0x3')](),await require('./mailSubstatuses')['create'](),await require('./dispositions')[_0x405b5d('0x3')](),await require(_0x405b5d('0x18'))['create'](),await require(_0x405b5d('0x1a'))['create']()):(await require(_0x405b5d('0x21'))[_0x405b5d('0x3')](),await require(_0x405b5d('0x14'))[_0x405b5d('0x10')](),await require(_0x405b5d('0xc'))['create'](),await require('./analyticTreeReports')['createDefault'](),await require('./analyticReports')[_0x405b5d('0xa')]());}catch(_0x215ecc){logger[_0x405b5d('0x16')](_0x405b5d('0x9'),JSON['stringify'](_0x215ecc));}}exports[_0x52b7a7('0x19')]=defaultSeed; \ No newline at end of file +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 diff --git a/server/config/seedDB/intervals.js b/server/config/seedDB/intervals.js index 4b262d5..999138b 100644 --- a/server/config/seedDB/intervals.js +++ b/server/config/seedDB/intervals.js @@ -1 +1 @@ -const a861_0x4f8b=['*,*,1,jan','Can\x27t\x20create\x20Intevals','14:00-18:00,mon-fri,*,*','Halloween','map','*,*,14,feb','*,*,25,dec','*,*,31,oct','flat','bulkCreate','Afternoon','Valentines','Interval','Morning','findAll','../../mysqldb','info','NewYear','Holidays','Intervals\x20have\x20been\x20created','Christmas','../logger','app','working\x20time\x20auto\x20generated'];(function(_0x185eae,_0x4f8b25){const _0x3dfe63=function(_0x18d77f){while(--_0x18d77f){_0x185eae['push'](_0x185eae['shift']());}};_0x3dfe63(++_0x4f8b25);}(a861_0x4f8b,0x185));const a861_0x3dfe=function(_0x185eae,_0x4f8b25){_0x185eae=_0x185eae-0x0;let _0x3dfe63=a861_0x4f8b[_0x185eae];return _0x3dfe63;};const _0x200193=a861_0x3dfe;'use strict';const db=require(_0x200193('0xa'))['db'],logger=require(_0x200193('0x10'))(_0x200193('0x11')),subIntervals={'WorkingTime':[{'name':_0x200193('0x8'),'interval':'09:00-13:00,mon-fri,*,*'},{'name':_0x200193('0x5'),'interval':_0x200193('0x15')}],'Holidays':[{'name':_0x200193('0xf'),'interval':_0x200193('0x1')},{'name':_0x200193('0xc'),'interval':_0x200193('0x13')},{'name':_0x200193('0x6'),'interval':_0x200193('0x0')},{'name':_0x200193('0x16'),'interval':_0x200193('0x2')}]},intervals=[{'id':0x1,'name':'WorkingTime','description':_0x200193('0x12')},{'id':0x2,'name':_0x200193('0xd'),'description':_0x200193('0x12')}];async function create(){const _0x44df7b=_0x200193;try{await db[_0x44df7b('0x7')][_0x44df7b('0x4')](intervals,{'ignoreDuplicates':!![],'individualHooks':!![]});const _0x18d77f=await db[_0x44df7b('0x7')][_0x44df7b('0x9')](),_0x2604b1=_0x18d77f[_0x44df7b('0x17')](_0x740320=>{const _0x222751=_0x44df7b,_0x594aff=subIntervals[_0x740320['name']];return Array['isArray'](_0x594aff)?_0x594aff[_0x222751('0x17')](_0x18a963=>{const {description:_0x4b9b07,id:_0x45476e}=_0x740320;return{'description':_0x4b9b07,'IntervalId':_0x45476e,..._0x18a963};}):null;})['filter'](_0x5759e3=>_0x5759e3!==null)[_0x44df7b('0x3')]();await db[_0x44df7b('0x7')][_0x44df7b('0x4')](_0x2604b1,{'ignoreDuplicates':!![],'individualHooks':!![]}),logger[_0x44df7b('0xb')](_0x44df7b('0xe'));}catch(_0x5338a0){logger['error'](_0x44df7b('0x14'),_0x5338a0);throw _0x5338a0;}}module['exports']={'create':create}; \ No newline at end of file +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 diff --git a/server/config/seedDB/jscriptyProjects.js b/server/config/seedDB/jscriptyProjects.js index 93ae139..2c39c35 100644 --- a/server/config/seedDB/jscriptyProjects.js +++ b/server/config/seedDB/jscriptyProjects.js @@ -1 +1 @@ -const a862_0x4a2b=['CustomerSatisfaction','then','Jscripty\x20Projects\x20have\x20been\x20created','../../mysqldb','bulkCreate','create','jscripty','readFileSync','catch','utf-8','app','Customer\x20Satisfaction\x20auto\x20generated','path','.json','Can\x27t\x20create\x20Jscripty\x20Projects','../logger','customerSatisfation','info'];(function(_0x3ee9cc,_0x4a2b25){const _0x4ac663=function(_0x262ea7){while(--_0x262ea7){_0x3ee9cc['push'](_0x3ee9cc['shift']());}};_0x4ac663(++_0x4a2b25);}(a862_0x4a2b,0x138));const a862_0x4ac6=function(_0x3ee9cc,_0x4a2b25){_0x3ee9cc=_0x3ee9cc-0x0;let _0x4ac663=a862_0x4a2b[_0x3ee9cc];return _0x4ac663;};const _0x18e321=a862_0x4ac6;'use strict';const fs=require('fs'),path=require(_0x18e321('0x6')),db=require(_0x18e321('0xf'))['db'],logger=require(_0x18e321('0x9'))(_0x18e321('0x4')),getJson=function(_0x262ea7){const _0x1bef67=_0x18e321;return fs[_0x1bef67('0x1')](path['join'](__dirname,_0x1bef67('0x0'),_0x262ea7+_0x1bef67('0x7')),{'encoding':_0x1bef67('0x3')});},jscriptyProjects=[{'id':0x1,'name':_0x18e321('0xc'),'description':_0x18e321('0x5'),'formData':getJson(_0x18e321('0xa'))}];exports[_0x18e321('0x11')]=function(){const _0x165878=_0x18e321;return db['JscriptyProject'][_0x165878('0x10')](jscriptyProjects,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x165878('0xd')](function(){const _0x42d799=_0x165878;logger[_0x42d799('0xb')](_0x42d799('0xe'));})[_0x165878('0x2')](function(){const _0x3fa3d8=_0x165878;logger['error'](_0x3fa3d8('0x8'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/lists.js b/server/config/seedDB/lists.js index 246a4cb..c30c2df 100644 --- a/server/config/seedDB/lists.js +++ b/server/config/seedDB/lists.js @@ -1 +1 @@ -const a863_0x21c7=['bulkCreate','then','info','black\x20list\x20auto\x20generated','Can\x27t\x20create\x20Lists','catch','CmList','Black\x20List','create','app','error','Lists\x20have\x20been\x20created','../../mysqldb','Public\x20List'];(function(_0x5aa363,_0x21c72b){const _0x632515=function(_0x286195){while(--_0x286195){_0x5aa363['push'](_0x5aa363['shift']());}};_0x632515(++_0x21c72b);}(a863_0x21c7,0x11e));const a863_0x6325=function(_0x5aa363,_0x21c72b){_0x5aa363=_0x5aa363-0x0;let _0x632515=a863_0x21c7[_0x5aa363];return _0x632515;};const _0xfeee7=a863_0x6325;'use strict';const db=require(_0xfeee7('0x6'))['db'],logger=require('../logger')(_0xfeee7('0x3')),lists=[{'id':0x1,'name':_0xfeee7('0x7'),'description':'public\x20list\x20auto\x20generated'},{'id':0x2,'name':_0xfeee7('0x1'),'description':_0xfeee7('0xb')},{'id':0x3,'name':'Callback\x20List','description':'Callback\x20list\x20auto\x20generated'}];exports[_0xfeee7('0x2')]=function(){const _0x158da7=_0xfeee7;return db[_0x158da7('0x0')][_0x158da7('0x8')](lists,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x158da7('0x9')](function(){const _0x37d0b2=_0x158da7;logger[_0x37d0b2('0xa')](_0x37d0b2('0x5'));})[_0x158da7('0xd')](function(){const _0x3b14cc=_0x158da7;logger[_0x3b14cc('0x4')](_0x3b14cc('0xc'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/mailAccounts.js b/server/config/seedDB/mailAccounts.js index 1385516..5649614 100644 --- a/server/config/seedDB/mailAccounts.js +++ b/server/config/seedDB/mailAccounts.js @@ -1 +1 @@ -const a864_0x540e=['username','MailServerOut','create','email@xcally.com','../logger','catch','MailAccount','127.0.0.1','app','service\x20motion\x20smtp\x20auto\x20generated','info','then','Can\x27t\x20create\x20Mail\x20Accounts','service\x20motion\x20imap\x20auto\x20generated','Service\x20Mail','password','MailServerIn','findOrCreate'];(function(_0x2fd583,_0x540e17){const _0x11eb83=function(_0x5adde4){while(--_0x5adde4){_0x2fd583['push'](_0x2fd583['shift']());}};_0x11eb83(++_0x540e17);}(a864_0x540e,0x148));const a864_0x11eb=function(_0x2fd583,_0x540e17){_0x2fd583=_0x2fd583-0x0;let _0x11eb83=a864_0x540e[_0x2fd583];return _0x11eb83;};const _0x40714d=a864_0x11eb;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x40714d('0x0'))(_0x40714d('0x4'));exports[_0x40714d('0x10')]=function(){const _0x468ba1=_0x40714d;let _0x5adde4;return db[_0x468ba1('0x2')][_0x468ba1('0xd')]({'where':{'service':!![]},'defaults':{'name':_0x468ba1('0xa'),'key':'SERV','email':_0x468ba1('0x11'),'service':!![],'description':'service\x20motion\x20account\x20auto\x20generated','active':![],'ListId':0x1}})[_0x468ba1('0x7')](function([_0x4c882e,_0x2394c2]){const _0x72e582=_0x468ba1;return _0x2394c2&&logger[_0x72e582('0x6')]('service\x20motion\x20account\x20auto\x20generated'),_0x5adde4=_0x4c882e,db[_0x72e582('0xf')][_0x72e582('0xd')]({'where':{'MailAccountId':_0x5adde4['id']},'defaults':{'host':_0x72e582('0x3'),'user':'username','pass':_0x72e582('0xb'),'port':0x19,'secure':![],'authentication':![],'MailAccountId':_0x5adde4['id'],'description':_0x72e582('0x5')}});})[_0x468ba1('0x7')](function([,_0x154324]){const _0x3ff8c3=_0x468ba1;return _0x154324&&logger[_0x3ff8c3('0x6')]('service\x20motion\x20smtp\x20auto\x20generated'),db[_0x3ff8c3('0xc')]['findOrCreate']({'where':{'MailAccountId':_0x5adde4['id']},'defaults':{'host':_0x3ff8c3('0x3'),'user':_0x3ff8c3('0xe'),'password':_0x3ff8c3('0xb'),'port':0x3e1,'MailAccountId':_0x5adde4['id'],'description':_0x3ff8c3('0x9')}});})[_0x468ba1('0x7')](function([,_0x44b02f]){const _0x4415da=_0x468ba1;_0x44b02f&&logger[_0x4415da('0x6')](_0x4415da('0x9'));})[_0x468ba1('0x1')](function(){const _0x2623b7=_0x468ba1;logger['error'](_0x2623b7('0x8'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/mailSubstatuses.js b/server/config/seedDB/mailSubstatuses.js index 3434723..2c530d4 100644 --- a/server/config/seedDB/mailSubstatuses.js +++ b/server/config/seedDB/mailSubstatuses.js @@ -1 +1 @@ -const a865_0x353c=['create','catch','pending','MailSubstatus','then','Substatues\x20have\x20been\x20created','Can\x27t\x20create\x20MailSubstatuses','bulkCreate','../logger','info'];(function(_0x460fbb,_0x353c1c){const _0x24765b=function(_0x4d5c2b){while(--_0x4d5c2b){_0x460fbb['push'](_0x460fbb['shift']());}};_0x24765b(++_0x353c1c);}(a865_0x353c,0x143));const a865_0x2476=function(_0x460fbb,_0x353c1c){_0x460fbb=_0x460fbb-0x0;let _0x24765b=a865_0x353c[_0x460fbb];return _0x24765b;};const _0x4bc80c=a865_0x2476;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x4bc80c('0x5'))('app'),items=[{'id':0x1,'name':_0x4bc80c('0x9'),'description':'Pending\x20status\x20for\x20mail\x20interaction'}];exports[_0x4bc80c('0x7')]=function(){const _0x51713c=_0x4bc80c;return db[_0x51713c('0x0')][_0x51713c('0x4')](items,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x51713c('0x1')](function(){const _0x51e6cb=_0x51713c;logger[_0x51e6cb('0x6')](_0x51e6cb('0x2'));})[_0x51713c('0x8')](function(){const _0x9f5f75=_0x51713c;logger['error'](_0x9f5f75('0x3'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/migrations.js b/server/config/seedDB/migrations.js index e1cd819..b96c475 100644 --- a/server/config/seedDB/migrations.js +++ b/server/config/seedDB/migrations.js @@ -1 +1 @@ -const a866_0x3623=['Migration','../../../package.json','Can\x27t\x20create\x20Version','create','error','../../mysqldb','catch','then','Version\x20have\x20been\x20created'];(function(_0x11148c,_0x3623f6){const _0xd0559b=function(_0x1de69a){while(--_0x1de69a){_0x11148c['push'](_0x11148c['shift']());}};_0xd0559b(++_0x3623f6);}(a866_0x3623,0xc4));const a866_0xd055=function(_0x11148c,_0x3623f6){_0x11148c=_0x11148c-0x0;let _0xd0559b=a866_0x3623[_0x11148c];return _0xd0559b;};const _0x399e91=a866_0xd055;'use strict';const db=require(_0x399e91('0x7'))['db'],logger=require('../logger')('app'),{version:packageVersion}=require(_0x399e91('0x3'));exports[_0x399e91('0x5')]=function(){const _0x5b095e=_0x399e91;return db[_0x5b095e('0x2')]['create']({'version':packageVersion+'.js'})[_0x5b095e('0x0')](function(){const _0x29b0b4=_0x5b095e;logger['info'](_0x29b0b4('0x1'));})[_0x5b095e('0x8')](function(){const _0x4b85d9=_0x5b095e;logger[_0x4b85d9('0x6')](_0x4b85d9('0x4'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/pauses.js b/server/config/seedDB/pauses.js index 459b38d..469a83d 100644 --- a/server/config/seedDB/pauses.js +++ b/server/config/seedDB/pauses.js @@ -1 +1 @@ -const a867_0x323f=['app','../../mysqldb','bulkCreate','Can\x27t\x20create\x20Pauses','BACKOFFICE','create','catch','Pauses\x20have\x20been\x20created','../logger','Pause','error','backoffice\x20pause\x20auto\x20generated'];(function(_0x3f5c46,_0x323ff9){const _0x255cc8=function(_0x34c8b4){while(--_0x34c8b4){_0x3f5c46['push'](_0x3f5c46['shift']());}};_0x255cc8(++_0x323ff9);}(a867_0x323f,0x142));const a867_0x255c=function(_0x3f5c46,_0x323ff9){_0x3f5c46=_0x3f5c46-0x0;let _0x255cc8=a867_0x323f[_0x3f5c46];return _0x255cc8;};const _0x17ac21=a867_0x255c;'use strict';const db=require(_0x17ac21('0x3'))['db'],logger=require(_0x17ac21('0xa'))(_0x17ac21('0x2')),pauses=[{'id':0x1,'name':_0x17ac21('0x6'),'description':_0x17ac21('0x1')},{'id':0x2,'name':'AFTERCALL','description':'aftercall\x20pause\x20auto\x20generated'}];exports[_0x17ac21('0x7')]=function(){const _0x38252b=_0x17ac21;return db[_0x38252b('0xb')][_0x38252b('0x4')](pauses,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0xb979e8=_0x38252b;logger['info'](_0xb979e8('0x9'));})[_0x38252b('0x8')](function(){const _0x15313a=_0x38252b;logger[_0x15313a('0x0')](_0x15313a('0x5'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/report/default.js b/server/config/seedDB/report/default.js index 23c9e1a..ea8b8b9 100644 --- a/server/config/seedDB/report/default.js +++ b/server/config/seedDB/report/default.js @@ -1 +1 @@ -var a868_0x3bc4=['Summary\x20of\x20the\x20calls\x20disconnection\x20causes','Chat\x20By\x20Queue','Fax\x20interactions\x20by\x20account','Abandon\x20Time\x20by\x20Queue','_openchannel','WhatsApp\x20interaction\x20times\x20by\x20account','_sms','whatsapp_interactions','Answer\x20Time\x20by\x20Hour','_fax','Outbound\x20Calls\x20Disposition','report_member','_bull_queue_campaigns','Rating\x20by\x20Agent','cm_hopper_history','[{\x22parentKey\x22:\x22UserId\x22,\x22foreignTable\x22:\x22users\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Sms\x20By\x20Agent','Sms\x20interactions\x20by\x20account','Openchannel\x20interactions\x20by\x20agent','WhatsApp\x20interactions\x20by\x20account','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}]}}','_voice_queues_distribution','Simple\x20queue\x20calls\x20overview','Sms\x20interaction\x20times\x20by\x20account','Calls\x20distribution\x20by\x20hour','Calls\x20Summary','Chat\x20By\x20Agent','Calls\x20by\x20Agent','{\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}]}}','cm_hopper_final','Calls\x20Result','{\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}]}}]}}','[{\x22parentKey\x22:\x22WhatsappAccountId\x22,\x22foreignTable\x22:\x22whatsapp_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','{\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:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22voice_recordings.sentiment\x22,\x22value\x22:\x22\x22}]}}','[{\x22parentKey\x22:\x22SmsQueueId\x22,\x22foreignTable\x22:\x22sms_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Pause\x20Time','Unanswered\x20by\x20Queue','Chat\x20interactions\x20by\x20date','_voice_queues_answered','Manual\x20outbound\x20calls\x20detailed\x20report','Queue\x20calls\x20summary\x20by\x20date','Calls\x20detail\x20(cdr)','CallySquare\x20Summary','Agent\x20Calls','{\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}]}}','Website\x20Summary','{\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\x20interaction\x20times\x20by\x20website','Detailed\x20report\x20about\x20the\x20unanswered\x20calls','Chat\x20interactions\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}]}}','Email\x20By\x20Date','chat_interactions','_bull_ivr_campaigns','Records\x20rating\x20by\x20queue','Agent\x27s\x20status\x20detail','Chat\x20interactions\x20by\x20queue','Outbound','Blocks','Pause\x20Details','[{\x22parentKey\x22:\x22OpenchannelAccountId\x22,\x22foreignTable\x22:\x22openchannel_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','{\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}]}}]}}','Agent\x27s\x20login\x20time','Openchannel\x20By\x20Queue','WhatsApp\x20interactions\x20by\x20queue','Agents\x20status\x20details','WhatsApp\x20Account\x20Times','sms_interactions','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27ivr\x27\x22}]}}','_voice_recordings','Openchannel\x20interaction\x20times\x20by\x20account','[{\x22parentKey\x22:\x22SmsAccountId\x22,\x22foreignTable\x22:\x22sms_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Chat\x20By\x20Date','report_fax_queue','Calls\x20by\x20Day','report_sms_queue','Unmanaged\x20calls','CallySquare\x20Blocks\x20Detail','voice_recordings','Calls\x20by\x20Weekday','{\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}]}}','report_square','Fax\x20By\x20Agent','WhatsApp\x20Account\x20Summary','Activities\x20Summary','Openchannel\x20Account\x20Summary','WhatsApp\x20interactions\x20by\x20agent','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27queue\x27\x22}]}}','Fax\x20Account\x20Times','Email\x20interactions\x20by\x20queue','Detailed\x20report\x20about\x20answered\x20queue\x20calls','_whatsapp','[{\x22parentKey\x22:\x22ChatWebsiteId\x22,\x22foreignTable\x22:\x22chat_websites\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','[{\x22parentKey\x22:\x22OpenchannelQueueId\x22,\x22foreignTable\x22:\x22openchannel_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Summary\x20of\x20outbound\x20calls\x20grouped\x20by\x20date','Disconnection\x20Cause','Queue\x20timer\x20Handle\x20Time=\x20Talk\x20Time\x20+\x20AVG\x20TIme','Agent\x27s\x20activities\x20report','Fax\x20By\x20Date','Rating\x20by\x20Queue','_voice_callysquare','Email\x20By\x20Queue','Calls\x20distribution\x20by\x20day\x20of\x20the\x20month','{\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}]}}]}}','_voice_calls','_mail','{\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}]}}]}}','Email\x20By\x20Agent','Summary\x20report\x20of\x20the\x20calls\x20type','Unanswered\x20calls\x20summary\x20by\x20queue','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22sms_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Email\x20interactions\x20by\x20date','Fax\x20interaction\x20times\x20by\x20account','report_agent','Calls\x20by\x20Hour','Openchannel\x20Account\x20Times','Calls\x20by\x20Date','Calls\x20distribution\x20by\x20day\x20of\x20the\x20week','[{\x22parentKey\x22:\x22ChatQueueId\x22,\x22foreignTable\x22:\x22chat_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','fax_interactions','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22mail_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Openchannel\x20interactions\x20by\x20queue','Summary','WhatsApp\x20interactions\x20by\x20date','Sentiment\x20by\x20Agent','List\x20Penetration\x20Rate','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22queuecallercomplete\x22,\x22value\x22:\x220\x22,\x22required\x22:true}]}}','WhatsApp\x20By\x20Queue','Openchannel\x20interactions\x20by\x20account','Outbound\x20Calls\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}]}}]}}]}}','Outbound\x20calls\x20grouped\x20by\x20disposition','{\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}]}}','mail_interactions','Fax\x20interactions\x20by\x20agent','Sentiment\x20Summary','Website\x20Times','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22agentcomplete\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}','Email\x20Account\x20Summary','Agent\x20Disposition\x20Rate','[{\x22parentKey\x22:\x22FaxQueueId\x22,\x22foreignTable\x22:\x22fax_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','_voice_agents','Sms\x20interactions\x20by\x20date','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22voice_recordings.sentiment\x22,\x22value\x22:\x22NULL\x22}]}}','_chat','exports','_voice_queues','openchannel_interactions','Calls\x20distribution\x20by\x20queue','Campaign\x20Calls','Unmanaged\x20calls\x20summary','report_queue','Outbound\x20Calls\x20by\x20Date','report_call','report_square_details','Openchannel\x20interactions\x20by\x20date','report_whatsapp_queue','Sms\x20interactions\x20by\x20queue','Chat\x20interactions\x20by\x20website','Openchannel\x20By\x20Agent','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}','_voice_queues_unanswered','Details','Email\x20Account\x20Times','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22whatsapp_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','WhatsApp\x20By\x20Date','Queues\x20answer\x20time\x20performance','[{\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:\x22chat_interactions.closed\x22,\x22value\x22:\x221\x22}]}}'];(function(_0x2f7dbd,_0x3bc497){var _0x3a212e=function(_0x1bfb42){while(--_0x1bfb42){_0x2f7dbd['push'](_0x2f7dbd['shift']());}};_0x3a212e(++_0x3bc497);}(a868_0x3bc4,0x1e0));var a868_0x3a21=function(_0x2f7dbd,_0x3bc497){_0x2f7dbd=_0x2f7dbd-0x0;var _0x3a212e=a868_0x3bc4[_0x2f7dbd];return _0x3a212e;};var _0x3b4eb6=a868_0x3a21;'use strict';module[_0x3b4eb6('0x9')]=function(_0x1bfb42){var _0x340419=_0x3b4eb6;return[{'id':0x1,'name':_0x340419('0x1a'),'description':'Detailed\x20queues\x20report','parent':_0x1bfb42+_0x340419('0xa'),'table':_0x340419('0xf'),'conditions':_0x340419('0x18')},{'id':0x2,'name':_0x340419('0x40'),'description':_0x340419('0x38'),'parent':_0x1bfb42+'_voice_queues','table':_0x340419('0xf'),'conditions':_0x340419('0x18')},{'id':0x3,'name':_0x340419('0x1a'),'description':_0x340419('0x7d'),'parent':_0x1bfb42+_0x340419('0x49'),'table':_0x340419('0x94'),'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':0x4,'name':_0x340419('0x3d'),'description':'Agent\x20calls\x20timer\x20Handle\x20time=\x20talk\x20time\x20+\x20ACW\x20time','parent':_0x1bfb42+_0x340419('0x49'),'table':'report_agent','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':0x5,'name':'Calls\x20by\x20Queue','description':_0x340419('0x83'),'parent':_0x1bfb42+_0x340419('0x49'),'table':'report_agent','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':0x6,'name':'Answer\x20Time\x20by\x20Queue','description':_0x340419('0x1e'),'parent':_0x1bfb42+_0x340419('0x49'),'table':_0x340419('0x94'),'conditions':_0x340419('0x1')},{'id':0x7,'name':_0x340419('0x82'),'description':_0x340419('0x21'),'parent':_0x1bfb42+_0x340419('0x49'),'table':'report_agent','conditions':_0x340419('0x1')},{'id':0x8,'name':_0x340419('0x29'),'description':'Answer\x20time\x20\x20by\x20hour','parent':_0x1bfb42+_0x340419('0x49'),'table':_0x340419('0x94'),'conditions':_0x340419('0x1')},{'id':0x9,'name':'Details','description':_0x340419('0x53'),'parent':_0x1bfb42+_0x340419('0x19'),'table':_0x340419('0xf'),'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':_0x340419('0x47'),'description':_0x340419('0x90'),'parent':_0x1bfb42+_0x340419('0x19'),'table':_0x340419('0xf'),'conditions':_0x340419('0xa1')},{'id':0xb,'name':_0x340419('0x6f'),'description':_0x340419('0xe'),'parent':_0x1bfb42+_0x340419('0x19'),'table':_0x340419('0xf'),'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':_0x340419('0x24'),'description':'Abandon\x20time\x20performance\x20by\x20queue','parent':_0x1bfb42+_0x340419('0x19'),'table':'report_queue','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':_0x340419('0x97'),'description':_0x340419('0x4b'),'parent':_0x1bfb42+_0x340419('0x37'),'table':'report_queue','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0xe,'name':_0x340419('0x95'),'description':_0x340419('0x3a'),'parent':_0x1bfb42+_0x340419('0x37'),'table':'report_queue','conditions':_0x340419('0x18')},{'id':0xf,'name':_0x340419('0x6d'),'description':_0x340419('0x89'),'parent':_0x1bfb42+_0x340419('0x37'),'table':_0x340419('0xf'),'conditions':_0x340419('0x18')},{'id':0x10,'name':_0x340419('0x72'),'description':_0x340419('0x98'),'parent':_0x1bfb42+'_voice_queues_distribution','table':'report_queue','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0x11,'name':_0x340419('0x9d'),'description':_0x340419('0xc'),'parent':_0x1bfb42+'_voice_queues','table':_0x340419('0xf'),'conditions':_0x340419('0x18')},{'id':0x12,'name':_0x340419('0x1a'),'description':_0x340419('0x4c'),'parent':_0x1bfb42+'_voice_calls','table':'report_call','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0x13,'name':_0x340419('0x5c'),'description':_0x340419('0x4a'),'parent':_0x1bfb42+_0x340419('0x8b'),'table':_0x340419('0x11'),'conditions':_0x340419('0x51')},{'id':0x14,'name':'Calls\x20by\x20Type','description':_0x340419('0x8f'),'parent':_0x1bfb42+'_voice_calls','table':_0x340419('0x11'),'conditions':_0x340419('0x18')},{'id':0x15,'name':_0x340419('0x2b'),'description':_0x340419('0xa6'),'parent':_0x1bfb42+'_voice_calls','table':_0x340419('0x11'),'conditions':_0x340419('0x51')},{'id':0x16,'name':_0x340419('0xa4'),'description':'Summary\x20of\x20outbound\x20calls\x20grouped\x20by\x20agent','parent':_0x1bfb42+'_voice_calls','table':_0x340419('0x11'),'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':0x17,'name':_0x340419('0x10'),'description':_0x340419('0x81'),'parent':_0x1bfb42+'_voice_calls','table':_0x340419('0x11'),'conditions':_0x340419('0x51')},{'id':0x18,'name':'Login\x20Time','description':_0x340419('0x61'),'parent':_0x1bfb42+'_agents','table':_0x340419('0x2c'),'conditions':_0x340419('0x3e')},{'id':0x19,'name':_0x340419('0x77'),'description':_0x340419('0x84'),'parent':_0x1bfb42+_0x340419('0x5'),'table':_0x340419('0x2c'),'conditions':_0x340419('0x55')},{'id':0x1a,'name':_0x340419('0x5e'),'description':_0x340419('0x64'),'parent':_0x1bfb42+_0x340419('0x5'),'table':_0x340419('0x2c'),'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':_0x340419('0x1a'),'description':_0x340419('0x5a'),'parent':_0x1bfb42+_0x340419('0x5'),'table':_0x340419('0x2c'),'conditions':_0x340419('0x55')},{'id':0x1c,'name':_0x340419('0x46'),'description':_0x340419('0x35'),'parent':_0x1bfb42+_0x340419('0x5'),'table':_0x340419('0x2c'),'conditions':_0x340419('0xa7')},{'id':0x1d,'name':_0x340419('0x9d'),'description':_0x340419('0x4d'),'parent':_0x1bfb42+_0x340419('0x87'),'table':_0x340419('0x74'),'conditions':_0x340419('0x18')},{'id':0x1e,'name':_0x340419('0x5d'),'description':_0x340419('0x70'),'parent':_0x1bfb42+_0x340419('0x87'),'table':_0x340419('0x12'),'conditions':_0x340419('0x18')},{'id':0x1f,'name':_0x340419('0x2e'),'description':'Records\x20rating\x20by\x20agent','parent':_0x1bfb42+'_voice_recordings','table':'voice_recordings','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22>\x22,\x22field\x22:\x22rating\x22,\x22value\x22:\x220\x22,\x22required\x22:true}]}}'},{'id':0x20,'name':_0x340419('0x86'),'description':_0x340419('0x59'),'parent':_0x1bfb42+_0x340419('0x68'),'table':_0x340419('0x71'),'conditions':_0x340419('0x4f')},{'id':0x21,'name':_0x340419('0x1a'),'description':'','parent':_0x1bfb42+_0x340419('0x2d'),'table':_0x340419('0x3f'),'conditions':_0x340419('0x7a')},{'id':0x22,'name':_0x340419('0x3b'),'description':'','parent':_0x1bfb42+_0x340419('0x2d'),'table':'cm_hopper_history','conditions':_0x340419('0x7a')},{'id':0x23,'name':_0x340419('0xd'),'description':'','parent':_0x1bfb42+'_bull_queue_campaigns','table':_0x340419('0x3f'),'conditions':_0x340419('0x7a')},{'id':0x24,'name':'List\x20Penetration\x20Rate','description':'','parent':_0x1bfb42+_0x340419('0x2d'),'table':_0x340419('0x3f'),'conditions':_0x340419('0x7a')},{'id':0x25,'name':_0x340419('0x4e'),'description':'','parent':_0x1bfb42+_0x340419('0x2d'),'table':_0x340419('0x3f'),'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':_0x1bfb42+'_bull_queue_campaigns','table':_0x340419('0x3f'),'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':0x27,'name':_0x340419('0x3'),'description':'','parent':_0x1bfb42+_0x340419('0x2d'),'table':_0x340419('0x3f'),'conditions':_0x340419('0x73')},{'id':0x28,'name':'Details','description':'','parent':_0x1bfb42+_0x340419('0x58'),'table':_0x340419('0x3f'),'conditions':_0x340419('0x67')},{'id':0x29,'name':'Calls\x20Summary','description':'','parent':_0x1bfb42+_0x340419('0x58'),'table':_0x340419('0x2f'),'conditions':_0x340419('0x67')},{'id':0x2a,'name':_0x340419('0xd'),'description':'','parent':_0x1bfb42+'_bull_ivr_campaigns','table':_0x340419('0x3f'),'conditions':_0x340419('0x67')},{'id':0x2b,'name':_0x340419('0xa0'),'description':'','parent':_0x1bfb42+'_bull_ivr_campaigns','table':_0x340419('0x3f'),'conditions':_0x340419('0x67')},{'id':0x2c,'name':_0x340419('0x50'),'description':_0x340419('0x16'),'parent':_0x1bfb42+_0x340419('0x8'),'table':_0x340419('0x57'),'joins':_0x340419('0x7f')},{'id':0x2d,'name':_0x340419('0x0'),'description':_0x340419('0x52'),'parent':_0x1bfb42+_0x340419('0x8'),'table':'chat_interactions','conditions':_0x340419('0xa5'),'joins':_0x340419('0x7f')},{'id':0x2e,'name':_0x340419('0x3c'),'description':_0x340419('0x54'),'parent':_0x1bfb42+_0x340419('0x8'),'table':_0x340419('0x57'),'conditions':_0x340419('0x20'),'joins':_0x340419('0x30')},{'id':0x2f,'name':_0x340419('0x6b'),'description':_0x340419('0x48'),'parent':_0x1bfb42+_0x340419('0x8'),'table':'chat_interactions','conditions':_0x340419('0x20')},{'id':0x30,'name':_0x340419('0x22'),'description':_0x340419('0x5b'),'parent':_0x1bfb42+'_chat','table':'report_chat_queue','joins':_0x340419('0x99')},{'id':0x31,'name':_0x340419('0x2'),'description':'Email\x20interactions\x20by\x20account','parent':_0x1bfb42+_0x340419('0x8c'),'table':'mail_interactions','joins':'[{\x22parentKey\x22:\x22MailAccountId\x22,\x22foreignTable\x22:\x22mail_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x32,'name':_0x340419('0x1b'),'description':'Email\x20interaction\x20times\x20by\x20account','parent':_0x1bfb42+_0x340419('0x8c'),'table':_0x340419('0xa8'),'conditions':_0x340419('0x8a'),'joins':'[{\x22parentKey\x22:\x22MailAccountId\x22,\x22foreignTable\x22:\x22mail_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x33,'name':_0x340419('0x8e'),'description':'Email\x20interactions\x20by\x20agent','parent':_0x1bfb42+_0x340419('0x8c'),'table':_0x340419('0xa8'),'conditions':_0x340419('0x9b'),'joins':_0x340419('0x30')},{'id':0x34,'name':_0x340419('0x56'),'description':_0x340419('0x92'),'parent':_0x1bfb42+_0x340419('0x8c'),'table':_0x340419('0xa8'),'conditions':_0x340419('0x9b')},{'id':0x35,'name':_0x340419('0x88'),'description':_0x340419('0x7c'),'parent':_0x1bfb42+_0x340419('0x8c'),'table':'report_mail_queue','joins':'[{\x22parentKey\x22:\x22MailQueueId\x22,\x22foreignTable\x22:\x22mail_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x36,'name':_0x340419('0x78'),'description':_0x340419('0xa3'),'parent':_0x1bfb42+'_openchannel','table':_0x340419('0xb'),'joins':_0x340419('0x5f')},{'id':0x37,'name':_0x340419('0x96'),'description':_0x340419('0x69'),'parent':_0x1bfb42+_0x340419('0x25'),'table':_0x340419('0xb'),'conditions':_0x340419('0x41'),'joins':_0x340419('0x5f')},{'id':0x38,'name':_0x340419('0x17'),'description':_0x340419('0x33'),'parent':_0x1bfb42+'_openchannel','table':_0x340419('0xb'),'conditions':_0x340419('0x36'),'joins':_0x340419('0x30')},{'id':0x39,'name':'Openchannel\x20By\x20Date','description':_0x340419('0x13'),'parent':_0x1bfb42+_0x340419('0x25'),'table':_0x340419('0xb'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22openchannel_interactions.closed\x22,\x22value\x22:\x221\x22}]}}'},{'id':0x3a,'name':_0x340419('0x62'),'description':_0x340419('0x9c'),'parent':_0x1bfb42+_0x340419('0x25'),'table':'report_openchannel_queue','joins':_0x340419('0x80')},{'id':0x3b,'name':'Sms\x20Account\x20Summary','description':_0x340419('0x32'),'parent':_0x1bfb42+_0x340419('0x27'),'table':_0x340419('0x66'),'joins':_0x340419('0x6a')},{'id':0x3c,'name':'Sms\x20Account\x20Times','description':_0x340419('0x39'),'parent':_0x1bfb42+'_sms','table':'sms_interactions','conditions':'{\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}]}}]}}','joins':_0x340419('0x6a')},{'id':0x3d,'name':_0x340419('0x31'),'description':'Sms\x20interactions\x20by\x20agent','parent':_0x1bfb42+_0x340419('0x27'),'table':_0x340419('0x66'),'conditions':_0x340419('0x91'),'joins':_0x340419('0x30')},{'id':0x3e,'name':'Sms\x20By\x20Date','description':_0x340419('0x6'),'parent':_0x1bfb42+_0x340419('0x27'),'table':_0x340419('0x66'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22sms_interactions.closed\x22,\x22value\x22:\x221\x22}]}}'},{'id':0x3f,'name':'Sms\x20By\x20Queue','description':_0x340419('0x15'),'parent':_0x1bfb42+_0x340419('0x27'),'table':_0x340419('0x6e'),'joins':_0x340419('0x45')},{'id':0x40,'name':'Fax\x20Account\x20Summary','description':_0x340419('0x23'),'parent':_0x1bfb42+_0x340419('0x2a'),'table':_0x340419('0x9a'),'joins':'[{\x22parentKey\x22:\x22FaxAccountId\x22,\x22foreignTable\x22:\x22fax_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x41,'name':_0x340419('0x7b'),'description':_0x340419('0x93'),'parent':_0x1bfb42+_0x340419('0x2a'),'table':_0x340419('0x9a'),'conditions':_0x340419('0x60'),'joins':'[{\x22parentKey\x22:\x22FaxAccountId\x22,\x22foreignTable\x22:\x22fax_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x42,'name':_0x340419('0x75'),'description':_0x340419('0xa9'),'parent':_0x1bfb42+_0x340419('0x2a'),'table':_0x340419('0x9a'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22fax_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','joins':_0x340419('0x30')},{'id':0x43,'name':_0x340419('0x85'),'description':'Fax\x20interactions\x20by\x20date','parent':_0x1bfb42+_0x340419('0x2a'),'table':_0x340419('0x9a'),'conditions':_0x340419('0x43')},{'id':0x44,'name':'Fax\x20By\x20Queue','description':'Fax\x20interactions\x20by\x20queue','parent':_0x1bfb42+'_fax','table':_0x340419('0x6c'),'joins':_0x340419('0x4')},{'id':0x45,'name':_0x340419('0x76'),'description':_0x340419('0x34'),'parent':_0x1bfb42+'_whatsapp','table':'whatsapp_interactions','joins':_0x340419('0x42')},{'id':0x46,'name':_0x340419('0x65'),'description':_0x340419('0x26'),'parent':_0x1bfb42+_0x340419('0x7e'),'table':_0x340419('0x28'),'conditions':_0x340419('0x8d'),'joins':_0x340419('0x42')},{'id':0x47,'name':'WhatsApp\x20By\x20Agent','description':_0x340419('0x79'),'parent':_0x1bfb42+_0x340419('0x7e'),'table':_0x340419('0x28'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22whatsapp_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','joins':_0x340419('0x30')},{'id':0x48,'name':_0x340419('0x1d'),'description':_0x340419('0x9e'),'parent':_0x1bfb42+'_whatsapp','table':_0x340419('0x28'),'conditions':_0x340419('0x1c')},{'id':0x49,'name':_0x340419('0xa2'),'description':_0x340419('0x63'),'parent':_0x1bfb42+'_whatsapp','table':_0x340419('0x14'),'joins':_0x340419('0x1f')},{'id':0x4a,'name':_0x340419('0x9f'),'description':'Sentiment\x20by\x20agent','parent':_0x1bfb42+_0x340419('0x68'),'table':_0x340419('0x71'),'conditions':_0x340419('0x7'),'joins':_0x340419('0x30')},{'id':0x4b,'name':'Sentiment\x20Summary','description':_0x340419('0xaa'),'parent':_0x1bfb42+_0x340419('0x68'),'table':_0x340419('0x71'),'conditions':_0x340419('0x44')}];}; \ No newline at end of file +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 diff --git a/server/config/seedDB/report/fields.js b/server/config/seedDB/report/fields.js index 9523d00..5c1a2c8 100644 --- a/server/config/seedDB/report/fields.js +++ b/server/config/seedDB/report/fields.js @@ -1 +1 @@ -const a869_0x4558=['BlackList','destination','Penetration\x20Rate','COUNT\x20DISTINCT','QueueJoinAt','COUNT(IF(holdtime\x20>=30,1,NULL))','queuecallerexitAt','Abandoned\x20Rate\x2060-120s','report_fax_queue.id','whatsapp_interactions.id','CallerIdName','UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)','Total','AgentCalledAt','Unmanaged\x20HoldTime','UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','Contacts','uniqueid','AgentExtension','TotTalkTime','Queue','UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','tag','mail_interactions.createdAt','reason','Tag','Start\x20Time','Abandoned','DID','ROUND(COUNT(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_final\x20WHERE\x20state=4\x20and\x20campaigntype=\x27queue\x27),2)','Open','Agent','TalkTime','Project\x20Name','fax_interactions.id','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)))','endtime','COUNT(IF(closed=1\x20&&\x20disposition\x20=\x27unmanaged\x27,1,NULL))','Answered\x2010-20s','Caller\x20Id','destinationchannel','Disposition','connectedlinename','Rated\x20Calls','ROUND(SUM(talktime\x20+\x20acwtime)/COUNT(agentcomplete))','queuecallerexitreason','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27POSITIVE\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','ROUND(COUNT(IF(closed=1,1,NULL))/COUNT(id)\x20*100,1)','Abandon\x20Time','ROUND(COUNT(IF(closed=1\x20&&\x20disposition=\x27abandoned\x27,1,NULL))/COUNT(id)\x20*100,1)','ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','LastEvent','Answered\x20>30s','Destination','Date','fax_interactions.createdAt','enterAt','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)','voice_recordings.sentiment','EnterAt','DAYNAME(queuecallerjoinat)','Tot\x20Duration','CallerIdNum','agentcalledAt','AVG\x20Interaction\x20Time','DestChannel','Answer\x20Rate','talktime','agentconnectAt','dnid','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEUTRAL\x27,1,NULL))','Event','statedesc','mail_queues.name','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','queuecallerexit','openchannel_interactions.id','Avg\x20ACWTime','Neutral(%)','End\x20Time','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<10,1,NULL))','CompleteAt','CASE\x20WHEN\x20queuecallercomplete=1\x20THEN\x20\x27YES\x27\x20ELSE\x20\x27NO\x27\x20END','holdtime','whatsapp_interactions.closed','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27POSITIVE\x27,1,NULL))','AvgTalkTime','data1','CallerID','callerid','whatsapp_accounts.name','Openchannel\x20Account','Timeout','Avg\x20Duration','Calls\x20(%)','COUNT(IF(holdtime\x20>=20\x20AND\x20holdtime\x20<30,1,NULL))','CASE\x20WHEN\x20queuecallercomplete=1\x20THEN\x20queuecallercompleteAt\x20ELSE\x20queuecallerLeaveAt\x20END','Interaction\x20Time','Completed\x20(%)','AVG\x20Hold\x20Time','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27MIXED\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','QueueExitAt','Mixed(%)','QueueLeaveAt','Unique\x20Id','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)))','Answered\x20<10s','Tot\x20TalkTime','CallerId','queuecallerabandonAt','Answered','Abandoned\x20Rate\x2010-60s','queuecallerjoinat','Calls','COUNT(IF(reason=\x27accepted\x27,1,NULL))','Answer\x20Rate\x2020-30s','chat_interactions.createdAt','chat_websites.name','talktime\x20+\x20acwtime','ROUND(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=120,1,NULL))\x20\x20/\x20SUM(queuecallerabandon)\x20*100,1)','agentcomplete','ROUND(AVG(acwtime))','UserId','lastdata','data','SUM','COUNT','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)))','calleridname','report_whatsapp_queue.id','lastevent','LastCallAt','POSITIVE','TOT','Duration','agentacw','AgentACWTime','HOUR','Tot\x20Handle\x20Time','COUNT(IF(holdtime\x20>=10\x20AND\x20holdtime\x20<20,1,NULL))','AVG\x20Talk\x20Time','ROUND(SUM(queuecallercomplete)/COUNT(DISTINCT\x20uniqueid)*100,1)','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)','Abandoned\x20(%)','acwtime','queuecallercomplete','Data','QueueAbandonAt','COUNT(IF(holdtime<10,1,NULL))','Answer\x20Rate\x20<10s','rating','Full\x20Name','openchannel_queues.name','Sentiment\x20TOT','Unmanaged\x20(%)','State','Complete','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)))','sms_queues.name','ListId','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27NEUTRAL\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','COUNT(IF(closed=1\x20&&\x20disposition\x20=\x27abandoned\x27,1,NULL))','QueuePosition','ROUND(COUNT(IF(holdtime<10,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','EndTime','UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','fax_queues.name','Abandoned<10s','Block','ROUND(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<10,1,NULL))\x20/\x20SUM(queuecallerabandon)\x20*100,1)','lodash','queuecallercompleteAt','Unmanaged','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=10\x20AND\x20UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<60,1,NULL))','fax_accounts.name','Talk\x20Time','mail_interactions.closed','ROUND(AVG(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','AvgAbandonTime','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=60\x20AND\x20UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<120,1,NULL))','groupBy','Avg\x20Unmanaged\x20TIme','Positive(%)','QueueExitReason','whatsapp_interactions.createdAt','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL))','Avg\x20TalkTime','TotACWTime','CASE\x20WHEN\x20type=\x27LOGIN\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','DayOfWeek','COUNT(IF(closed=1,1,NULL))','Total\x20Calls','COUNT(IF(reason=\x27timeout\x27,1,NULL))','exten','MIXED','StartTime','Campaign\x20Name','Tot\x20Answered','DESC','queuecallerleaveAt','NEGATIVE','ReportId','Answered\x2020-30s','UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)','mail_accounts.name','agentcompleteAt','position','sms_interactions.id','ROUND(AVG(UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','DAY(queuecallerjoinat)','voice_recordings.UserId','report_chat_queue.id','ASC','JoinAt','Interface','AgentConnectAt','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)','Negative(%)','Hold\x20Time','Day','Whatsapp\x20Account','queuecallerjoinAt','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)','billableseconds','AnswerTime','Completed','chat_queues.name','interface','Closed','openchannel_accounts.name','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)','queuecallerabandon','Sms\x20Account','Type','disposition','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)))','fax_interactions.closed','Tot\x20AbandonTime','Source','Email\x20Account','ROUND(AVG(UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)))','AgentACW','ROUND(count(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_history\x20WHERE\x20campaigntype=\x27queue\x27),2)','Abandon','LeaveAt','Avg\x20Rating','COUNT(IF(closed=1\x20&&\x20((disposition\x20!=\x27unmanaged\x27\x20&&\x20disposition\x20!=\x27abandoned\x27)\x20||\x20disposition\x20IS\x20NULL),1,NULL))','SEC_TO_TIME(AVG(talktime))','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','NEUTRAL','exitAt','dropreason','Tot\x20Abandoned','Abandoned\x20Rate<10s','Avg\x20HoldTime','node','LastData','Tot\x20Unmanaged\x20Time','type','sms_interactions.createdAt','UnmanagedReason','campaign','lastapplication','UniqueID','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27MIXED\x27,1,NULL))','Managed','calleridnum','Interactions','mail_interactions.id','COUNT(IF(closed=0,1,NULL))','ROUND(SUM(IF(state=4,1,0))/COUNT(*)*100,1)','membername','AbandonAt','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=120,1,NULL))','openchannel_interactions.closed','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)))','Web\x20Site','SEC_TO_TIME','Hour','Total\x20(%)','ROUND(count(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_history\x20WHERE\x20campaigntype=\x27ivr\x27),2)','starttime','SUM(IF(state=4,1,0))','sms_interactions.closed','Reason','Total\x20Rating','HoldTime','duration','SUBSTRING_INDEX(channel,\x20\x22-\x22,\x201)','ROUND(AVG(duration))','answertime','countglobal','HangupReason','ROUND(COUNT(IF(holdtime\x20>=20\x20AND\x20holdtime\x20<30,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','blacklist','report_mail_queue.id','AgentComplete','ExitAt','project_name','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)','ROUND(AVG(holdtime))','whatsapp_queues.name','AvgACWTime','UniqueId','queue','Tot\x20ACWTime','Pause\x20Time','DATE','Accepted','Offered','Abandoned\x2010-60s','users.fullname','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)))','Avg\x20Handle\x20Time','AVG','leaveAt','ROUND(COUNT(IF(closed=1\x20&&\x20disposition=\x27unmanaged\x27,1,NULL))/COUNT(id)\x20*100,1)'];(function(_0x1660ce,_0x45581a){const _0xd4b690=function(_0x2929b5){while(--_0x2929b5){_0x1660ce['push'](_0x1660ce['shift']());}};_0xd4b690(++_0x45581a);}(a869_0x4558,0xdb));const a869_0xd4b6=function(_0x1660ce,_0x45581a){_0x1660ce=_0x1660ce-0x0;let _0xd4b690=a869_0x4558[_0x1660ce];return _0xd4b690;};const _0x127033=a869_0xd4b6;'use strict';const _=require(_0x127033('0x10c'));module['exports']=function(){const _0x1f5a73=_0x127033,_0x2929b5=[{'field':'uniqueid','alias':_0x1f5a73('0x54'),'ReportId':0x1},{'field':_0x1f5a73('0x2f'),'alias':'CallerIdNum','ReportId':0x1},{'field':_0x1f5a73('0xe2'),'alias':_0x1f5a73('0x6c'),'ReportId':0x1},{'field':'queue','alias':_0x1f5a73('0x76'),'ReportId':0x1},{'field':_0x1f5a73('0x2'),'alias':_0x1f5a73('0x66'),'ReportId':0x1},{'field':'queuecallerleaveAt','alias':_0x1f5a73('0xc9'),'ReportId':0x1},{'field':_0x1f5a73('0xc'),'alias':'QueueAbandon','ReportId':0x1},{'field':_0x1f5a73('0xcf'),'alias':_0x1f5a73('0xf5'),'ReportId':0x1},{'field':'queuecallercomplete','alias':_0x1f5a73('0xfe'),'ReportId':0x1},{'field':_0x1f5a73('0x10d'),'alias':_0x1f5a73('0xb3'),'ReportId':0x1},{'field':_0x1f5a73('0xad'),'alias':'QueueExit','ReportId':0x1},{'field':_0x1f5a73('0x68'),'alias':_0x1f5a73('0xc7'),'ReportId':0x1},{'field':'queuecallerexitreason','alias':_0x1f5a73('0x119'),'ReportId':0x1},{'field':_0x1f5a73('0x123'),'alias':_0x1f5a73('0x7e'),'ReportId':0x1},{'field':_0x1f5a73('0x12d'),'alias':_0x1f5a73('0x82'),'format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0x1},{'field':_0x1f5a73('0x77'),'alias':'AbandonTime','format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0x1},{'field':'IF(queuecallercomplete=1,holdtime,null)','alias':_0x1f5a73('0x5'),'format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0x1},{'field':_0x1f5a73('0x2f'),'alias':_0x1f5a73('0xba'),'ReportId':0x2},{'field':_0x1f5a73('0x55'),'alias':_0x1f5a73('0x76'),'ReportId':0x2},{'field':_0x1f5a73('0x2'),'alias':'StartTime','ReportId':0x2},{'field':_0x1f5a73('0xc2'),'alias':_0x1f5a73('0x106'),'custom':0x1,'ReportId':0x2},{'field':'holdtime','alias':_0x1f5a73('0x43'),'format':_0x1f5a73('0x3a'),'ReportId':0x2},{'field':_0x1f5a73('0xb4'),'alias':_0x1f5a73('0xd0'),'custom':0x1,'ReportId':0x2},{'field':_0x1f5a73('0x73'),'alias':_0x1f5a73('0x54'),'ReportId':0x3},{'field':_0x1f5a73('0x2f'),'alias':'CallerIdNum','ReportId':0x3},{'field':_0x1f5a73('0xe2'),'alias':_0x1f5a73('0x6c'),'ReportId':0x3},{'field':'queue','alias':_0x1f5a73('0x76'),'ReportId':0x3},{'field':_0x1f5a73('0x34'),'alias':'Agent','ReportId':0x3},{'field':_0x1f5a73('0xa1'),'alias':_0x1f5a73('0x6f'),'ReportId':0x3},{'field':_0x1f5a73('0xa6'),'alias':_0x1f5a73('0x139'),'ReportId':0x3},{'field':_0x1f5a73('0x12f'),'alias':'AgentCompleteAt','ReportId':0x3},{'field':_0x1f5a73('0xb5'),'alias':_0x1f5a73('0x5'),'ReportId':0x3},{'field':'talktime','alias':_0x1f5a73('0x82'),'ReportId':0x3},{'field':_0x1f5a73('0xe9'),'alias':_0x1f5a73('0x16'),'ReportId':0x3},{'field':_0x1f5a73('0xf2'),'alias':_0x1f5a73('0xea'),'ReportId':0x3},{'field':_0x1f5a73('0xda'),'alias':_0x1f5a73('0x4d'),'ReportId':0x3},{'field':_0x1f5a73('0x7a'),'alias':_0x1f5a73('0x49'),'ReportId':0x3},{'field':_0x1f5a73('0xe4'),'alias':_0x1f5a73('0x95'),'ReportId':0x3},{'field':_0x1f5a73('0x123'),'alias':_0x1f5a73('0x7e'),'ReportId':0x3},{'field':_0x1f5a73('0x34'),'alias':_0x1f5a73('0x81'),'groupBy':0x1,'ReportId':0x4},{'field':_0x1f5a73('0xda'),'alias':'Completed','function':_0x1f5a73('0xdf'),'ReportId':0x4},{'field':_0x1f5a73('0xa5'),'alias':_0x1f5a73('0x75'),'function':_0x1f5a73('0xdf'),'format':'SEC_TO_TIME','ReportId':0x4},{'field':_0x1f5a73('0xf2'),'alias':_0x1f5a73('0x11d'),'function':_0x1f5a73('0xdf'),'format':'SEC_TO_TIME','ReportId':0x4},{'field':'talktime\x20+\x20acwtime','alias':'TotHandleTime','function':'SUM','format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0x4},{'field':'ROUND(AVG(talktime))','alias':_0x1f5a73('0xb8'),'format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0x4},{'field':_0x1f5a73('0xdb'),'alias':_0x1f5a73('0x53'),'format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0x4},{'field':'ROUND(SUM(talktime\x20+\x20acwtime)/COUNT(agentcomplete))','alias':'AvgHandleTime','format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0x4},{'field':'queue','alias':'Queue','groupBy':0x1,'ReportId':0x5},{'field':_0x1f5a73('0xda'),'alias':_0x1f5a73('0x6'),'function':_0x1f5a73('0xdf'),'ReportId':0x5},{'field':_0x1f5a73('0xa5'),'alias':'Tot\x20TalkTime','function':'SUM','format':_0x1f5a73('0x3a'),'ReportId':0x5},{'field':'holdtime','alias':'Tot\x20HoldTime','function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'ReportId':0x5},{'field':_0x1f5a73('0xf2'),'alias':_0x1f5a73('0x56'),'function':_0x1f5a73('0xdf'),'format':'SEC_TO_TIME','ReportId':0x5},{'field':_0x1f5a73('0xd8'),'alias':_0x1f5a73('0xec'),'function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0x5},{'field':'ROUND(AVG(talktime))','alias':_0x1f5a73('0x11c'),'format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0x5},{'field':_0x1f5a73('0x51'),'alias':_0x1f5a73('0x23'),'format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0x5},{'field':_0x1f5a73('0xdb'),'alias':_0x1f5a73('0xaf'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x5},{'field':_0x1f5a73('0x8e'),'alias':_0x1f5a73('0x5e'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x5},{'field':_0x1f5a73('0x55'),'alias':_0x1f5a73('0x76'),'groupBy':0x1,'ReportId':0x6},{'field':_0x1f5a73('0xda'),'alias':_0x1f5a73('0x127'),'function':_0x1f5a73('0xdf'),'ReportId':0x6},{'field':_0x1f5a73('0xf6'),'alias':'Answered\x20<10s','custom':0x1,'ReportId':0x6},{'field':_0x1f5a73('0x105'),'alias':_0x1f5a73('0xf7'),'custom':0x1,'ReportId':0x6},{'field':_0x1f5a73('0xed'),'alias':_0x1f5a73('0x88'),'custom':0x1,'ReportId':0x6},{'field':'ROUND(COUNT(IF(holdtime\x20>=10\x20AND\x20holdtime\x20<20,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','alias':'Answer\x20Rate\x2010-20s','custom':0x1,'ReportId':0x6},{'field':_0x1f5a73('0xc1'),'alias':'Answered\x2020-30s','custom':0x1,'ReportId':0x6},{'field':_0x1f5a73('0x4a'),'alias':_0x1f5a73('0xd5'),'custom':0x1,'ReportId':0x6},{'field':'COUNT(IF(holdtime\x20>=30,1,NULL))','alias':'Answered\x20>30s','custom':0x1,'ReportId':0x6},{'field':'ROUND(COUNT(IF(holdtime\x20>=30,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','alias':'Answer\x20Rate\x20>30s','custom':0x1,'ReportId':0x6},{'field':_0x1f5a73('0x7a'),'alias':_0x1f5a73('0x41'),'groupBy':0x1,'ReportId':0x7},{'field':_0x1f5a73('0x73'),'alias':_0x1f5a73('0xd3'),'function':_0x1f5a73('0xe0'),'ReportId':0x7},{'field':_0x1f5a73('0xa6'),'alias':_0x1f5a73('0x3b'),'format':'HOUR','groupBy':0x1,'ReportId':0x8},{'field':_0x1f5a73('0xda'),'alias':'Tot\x20Answered','function':'SUM','ReportId':0x8},{'field':_0x1f5a73('0xf6'),'alias':_0x1f5a73('0xcc'),'custom':0x1,'ReportId':0x8},{'field':_0x1f5a73('0xed'),'alias':_0x1f5a73('0x88'),'custom':0x1,'ReportId':0x8},{'field':_0x1f5a73('0xc1'),'alias':_0x1f5a73('0x12c'),'custom':0x1,'ReportId':0x8},{'field':_0x1f5a73('0x67'),'alias':_0x1f5a73('0x96'),'custom':0x1,'ReportId':0x8},{'field':_0x1f5a73('0x73'),'alias':_0x1f5a73('0x54'),'ReportId':0x9},{'field':_0x1f5a73('0x2f'),'alias':_0x1f5a73('0xa0'),'ReportId':0x9},{'field':_0x1f5a73('0x55'),'alias':_0x1f5a73('0x76'),'ReportId':0x9},{'field':_0x1f5a73('0x2'),'alias':_0x1f5a73('0x137'),'ReportId':0x9},{'field':_0x1f5a73('0x129'),'alias':_0x1f5a73('0x19'),'ReportId':0x9},{'field':_0x1f5a73('0xc'),'alias':_0x1f5a73('0x18'),'ReportId':0x9},{'field':'queuecallerabandonAt','alias':_0x1f5a73('0x35'),'ReportId':0x9},{'field':'queuecallerexit','alias':_0x1f5a73('0x10e'),'ReportId':0x9},{'field':'queuecallerexitAt','alias':'UnmanagedAt','ReportId':0x9},{'field':'queuecallerexitreason','alias':_0x1f5a73('0x29'),'ReportId':0x9},{'field':_0x1f5a73('0x130'),'alias':_0x1f5a73('0x104'),'ReportId':0x9},{'field':_0x1f5a73('0x123'),'alias':_0x1f5a73('0x7e'),'ReportId':0x9},{'field':_0x1f5a73('0x77'),'alias':_0x1f5a73('0x92'),'format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0x9},{'field':_0x1f5a73('0x71'),'alias':_0x1f5a73('0x70'),'format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0x9},{'field':_0x1f5a73('0x55'),'alias':_0x1f5a73('0x76'),'groupBy':0x1,'ReportId':0xa},{'field':'queuecallerabandon','alias':'Abandoned','function':'SUM','ReportId':0xa},{'field':_0x1f5a73('0xad'),'alias':_0x1f5a73('0x10e'),'function':_0x1f5a73('0xdf'),'ReportId':0xa},{'field':_0x1f5a73('0x77'),'alias':_0x1f5a73('0x12'),'function':_0x1f5a73('0xdf'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0xa},{'field':_0x1f5a73('0x113'),'alias':_0x1f5a73('0x114'),'format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0xa},{'field':'UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','alias':_0x1f5a73('0x26'),'function':_0x1f5a73('0xdf'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0xa},{'field':_0x1f5a73('0x132'),'alias':_0x1f5a73('0x117'),'format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0xa},{'field':_0x1f5a73('0x8f'),'alias':_0x1f5a73('0x41'),'groupBy':0x1,'ReportId':0xb},{'field':_0x1f5a73('0xad'),'alias':_0x1f5a73('0xd3'),'function':'SUM','ReportId':0xb},{'field':_0x1f5a73('0x71'),'alias':_0x1f5a73('0x26'),'function':_0x1f5a73('0xdf'),'custom':0x1,'ReportId':0xb},{'field':'queue','alias':'Queue','groupBy':0x1,'ReportId':0xc},{'field':_0x1f5a73('0xc'),'alias':_0x1f5a73('0x21'),'function':_0x1f5a73('0xdf'),'ReportId':0xc},{'field':_0x1f5a73('0xb2'),'alias':_0x1f5a73('0x109'),'custom':0x1,'ReportId':0xc},{'field':_0x1f5a73('0x10b'),'alias':_0x1f5a73('0x22'),'custom':0x1,'ReportId':0xc},{'field':_0x1f5a73('0x10f'),'alias':_0x1f5a73('0x5b'),'custom':0x1,'ReportId':0xc},{'field':'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)','alias':_0x1f5a73('0xd1'),'custom':0x1,'ReportId':0xc},{'field':_0x1f5a73('0x115'),'alias':'Abandoned\x2060-120s','custom':0x1,'ReportId':0xc},{'field':_0x1f5a73('0x9b'),'alias':_0x1f5a73('0x69'),'custom':0x1,'ReportId':0xc},{'field':_0x1f5a73('0x36'),'alias':'Abandoned>120s','custom':0x1,'ReportId':0xc},{'field':_0x1f5a73('0xd9'),'alias':'Abandoned\x20Rate>120s','custom':0x1,'ReportId':0xc},{'field':_0x1f5a73('0xd2'),'alias':_0x1f5a73('0x98'),'format':_0x1f5a73('0x58'),'groupBy':0x1,'custom':0x1,'ReportId':0xd},{'field':_0x1f5a73('0x73'),'alias':_0x1f5a73('0x5a'),'function':'COUNT\x20DISTINCT','ReportId':0xd},{'field':'queuecallercomplete','alias':_0x1f5a73('0x6'),'function':'SUM','ReportId':0xd},{'field':_0x1f5a73('0xc'),'alias':_0x1f5a73('0x7d'),'function':_0x1f5a73('0xdf'),'custom':0x1,'ReportId':0xd},{'field':'queuecallerexit','alias':'Unmanaged','function':_0x1f5a73('0xdf'),'custom':0x1,'ReportId':0xd},{'field':'UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)','alias':_0x1f5a73('0xcd'),'function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0xd},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','alias':'AvgTalkTime','format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0xd},{'field':_0x1f5a73('0x113'),'alias':_0x1f5a73('0x114'),'format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0xd},{'field':'queuecallerjoinat','alias':'Hour','format':_0x1f5a73('0xeb'),'groupBy':0x1,'custom':0x1,'ReportId':0xe},{'field':'uniqueid','alias':_0x1f5a73('0x5a'),'function':_0x1f5a73('0x65'),'ReportId':0xe},{'field':'queuecallercomplete','alias':_0x1f5a73('0xd0'),'function':_0x1f5a73('0xdf'),'ReportId':0xe},{'field':_0x1f5a73('0xef'),'alias':_0x1f5a73('0xa4'),'custom':0x1,'ReportId':0xe},{'field':_0x1f5a73('0xc'),'alias':_0x1f5a73('0x7d'),'function':_0x1f5a73('0xdf'),'ReportId':0xe},{'field':_0x1f5a73('0xad'),'alias':_0x1f5a73('0x10e'),'function':_0x1f5a73('0xdf'),'ReportId':0xe},{'field':_0x1f5a73('0x12d'),'alias':_0x1f5a73('0xcd'),'function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0xe},{'field':_0x1f5a73('0x94'),'alias':_0x1f5a73('0xb8'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0xe},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','alias':_0x1f5a73('0x114'),'format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0xe},{'field':_0x1f5a73('0x133'),'alias':_0x1f5a73('0x0'),'groupBy':0x1,'custom':0x1,'ReportId':0xf},{'field':'uniqueid','alias':'Offered','function':_0x1f5a73('0x65'),'ReportId':0xf},{'field':_0x1f5a73('0xf3'),'alias':_0x1f5a73('0xd0'),'function':_0x1f5a73('0xdf'),'ReportId':0xf},{'field':_0x1f5a73('0xef'),'alias':_0x1f5a73('0xa4'),'custom':0x1,'ReportId':0xf},{'field':_0x1f5a73('0xc'),'alias':_0x1f5a73('0x7d'),'function':_0x1f5a73('0xdf'),'ReportId':0xf},{'field':'queuecallerexit','alias':_0x1f5a73('0x10e'),'function':'SUM','ReportId':0xf},{'field':_0x1f5a73('0x12d'),'alias':_0x1f5a73('0xcd'),'function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0xf},{'field':_0x1f5a73('0x94'),'alias':'AvgTalkTime','format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0xf},{'field':_0x1f5a73('0x113'),'alias':_0x1f5a73('0x114'),'format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0xf},{'field':_0x1f5a73('0x9e'),'alias':_0x1f5a73('0x11f'),'groupBy':0x1,'custom':0x1,'ReportId':0x10},{'field':_0x1f5a73('0x73'),'alias':_0x1f5a73('0x5a'),'function':_0x1f5a73('0x65'),'ReportId':0x10},{'field':_0x1f5a73('0xf3'),'alias':_0x1f5a73('0xd0'),'function':_0x1f5a73('0xdf'),'ReportId':0x10},{'field':_0x1f5a73('0xef'),'alias':_0x1f5a73('0xa4'),'custom':0x1,'ReportId':0x10},{'field':_0x1f5a73('0xc'),'alias':_0x1f5a73('0x7d'),'function':_0x1f5a73('0xdf'),'orderBy':'ASC','ReportId':0x10},{'field':_0x1f5a73('0xad'),'alias':_0x1f5a73('0x10e'),'function':'SUM','ReportId':0x10},{'field':_0x1f5a73('0x12d'),'alias':_0x1f5a73('0xcd'),'function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0x10},{'field':_0x1f5a73('0x94'),'alias':_0x1f5a73('0xb8'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x10},{'field':_0x1f5a73('0x113'),'alias':_0x1f5a73('0x114'),'format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0x10},{'field':_0x1f5a73('0x55'),'alias':_0x1f5a73('0x76'),'groupBy':0x1,'ReportId':0x11},{'field':_0x1f5a73('0x73'),'alias':_0x1f5a73('0x5a'),'function':_0x1f5a73('0x65'),'ReportId':0x11},{'field':_0x1f5a73('0xf3'),'alias':_0x1f5a73('0xd0'),'function':_0x1f5a73('0xdf'),'ReportId':0x11},{'field':'ROUND(SUM(queuecallercomplete)/COUNT(DISTINCT\x20uniqueid)*100,1)','alias':_0x1f5a73('0xa4'),'custom':0x1,'ReportId':0x11},{'field':'queuecallerabandon','alias':_0x1f5a73('0x7d'),'function':_0x1f5a73('0xdf'),'ReportId':0x11},{'field':_0x1f5a73('0xad'),'alias':_0x1f5a73('0x10e'),'function':_0x1f5a73('0xdf'),'ReportId':0x11},{'field':'UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)','alias':'Tot\x20TalkTime','function':'SUM','format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0x11},{'field':_0x1f5a73('0x94'),'alias':'AvgTalkTime','format':'SEC_TO_TIME','custom':0x1,'ReportId':0x11},{'field':_0x1f5a73('0x113'),'alias':_0x1f5a73('0x114'),'format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0x11},{'field':_0x1f5a73('0x73'),'alias':_0x1f5a73('0x2c'),'ReportId':0x12},{'field':'type','alias':_0x1f5a73('0xe'),'ReportId':0x12},{'field':_0x1f5a73('0x78'),'alias':_0x1f5a73('0x7b'),'ReportId':0x12},{'field':'source','alias':'Source','ReportId':0x12},{'field':_0x1f5a73('0x63'),'alias':_0x1f5a73('0x97'),'ReportId':0x12},{'field':_0x1f5a73('0xbb'),'alias':_0x1f5a73('0xba'),'ReportId':0x12},{'field':_0x1f5a73('0x8a'),'alias':_0x1f5a73('0xa3'),'ReportId':0x12},{'field':_0x1f5a73('0x2b'),'alias':'LastApp','ReportId':0x12},{'field':_0x1f5a73('0xdd'),'alias':_0x1f5a73('0x25'),'ReportId':0x12},{'field':'starttime','alias':_0x1f5a73('0x125'),'ReportId':0x12},{'field':_0x1f5a73('0x47'),'alias':'AnswerTime','ReportId':0x12},{'field':_0x1f5a73('0x86'),'alias':'EndTime','ReportId':0x12},{'field':_0x1f5a73('0x44'),'alias':_0x1f5a73('0xe8'),'ReportId':0x12},{'field':'disposition','alias':_0x1f5a73('0x8b'),'ReportId':0x12},{'field':'uniqueid','alias':_0x1f5a73('0x2c'),'ReportId':0x13},{'field':'accountcode','alias':_0x1f5a73('0x74'),'ReportId':0x13},{'field':'source','alias':_0x1f5a73('0x13'),'ReportId':0x13},{'field':'destination','alias':'Destination','ReportId':0x13},{'field':_0x1f5a73('0xbb'),'alias':_0x1f5a73('0xce'),'ReportId':0x13},{'field':'starttime','alias':_0x1f5a73('0x125'),'ReportId':0x13},{'field':_0x1f5a73('0x47'),'alias':'AnswerTime','ReportId':0x13},{'field':_0x1f5a73('0x86'),'alias':_0x1f5a73('0x106'),'ReportId':0x13},{'field':_0x1f5a73('0x44'),'alias':_0x1f5a73('0xe8'),'format':_0x1f5a73('0x3a'),'ReportId':0x13},{'field':_0x1f5a73('0x4'),'alias':'Billsec','format':_0x1f5a73('0x3a'),'ReportId':0x13},{'field':_0x1f5a73('0xf'),'alias':_0x1f5a73('0x8b'),'ReportId':0x13},{'field':_0x1f5a73('0x78'),'alias':_0x1f5a73('0x7b'),'ReportId':0x13},{'field':_0x1f5a73('0x27'),'alias':_0x1f5a73('0xe'),'groupBy':0x1,'ReportId':0x14},{'field':_0x1f5a73('0x73'),'alias':_0x1f5a73('0xd3'),'function':'COUNT','ReportId':0x14},{'field':'duration','alias':_0x1f5a73('0x9f'),'function':'SUM','format':'SEC_TO_TIME','ReportId':0x14},{'field':_0x1f5a73('0x46'),'alias':_0x1f5a73('0xbf'),'format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0x14},{'field':_0x1f5a73('0xf'),'alias':_0x1f5a73('0x8b'),'groupBy':0x1,'ReportId':0x15},{'field':_0x1f5a73('0x73'),'alias':_0x1f5a73('0xd3'),'function':'COUNT','ReportId':0x15},{'field':_0x1f5a73('0x44'),'alias':_0x1f5a73('0x9f'),'function':'SUM','format':_0x1f5a73('0x3a'),'ReportId':0x15},{'field':'ROUND(AVG(duration))','alias':_0x1f5a73('0xbf'),'format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0x15},{'field':_0x1f5a73('0x45'),'alias':_0x1f5a73('0x81'),'groupBy':0x1,'custom':0x1,'ReportId':0x16},{'field':'uniqueid','alias':_0x1f5a73('0xd3'),'function':_0x1f5a73('0xe0'),'ReportId':0x16},{'field':_0x1f5a73('0x44'),'alias':_0x1f5a73('0x9f'),'function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'ReportId':0x16},{'field':_0x1f5a73('0x46'),'alias':_0x1f5a73('0xbf'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x16},{'field':_0x1f5a73('0x3e'),'alias':_0x1f5a73('0x98'),'format':_0x1f5a73('0x58'),'groupBy':0x1,'ReportId':0x17},{'field':_0x1f5a73('0x73'),'alias':_0x1f5a73('0xd3'),'function':_0x1f5a73('0xe0'),'ReportId':0x17},{'field':'duration','alias':'Tot\x20Duration','function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'ReportId':0x17},{'field':_0x1f5a73('0x46'),'alias':_0x1f5a73('0xbf'),'format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0x17},{'field':_0x1f5a73('0x34'),'alias':_0x1f5a73('0x81'),'groupBy':0x1,'orderBy':'ASC','ReportId':0x18},{'field':_0x1f5a73('0x6d'),'alias':_0x1f5a73('0xe8'),'function':'SUM','format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0x18},{'field':_0x1f5a73('0x34'),'alias':'Agent','groupBy':0x1,'ReportId':0x19},{'field':_0x1f5a73('0x11e'),'alias':'Login\x20Time','function':'SUM','format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0x19},{'field':'CASE\x20WHEN\x20type=\x27TALKING\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','alias':_0x1f5a73('0x111'),'function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0x19},{'field':'CASE\x20WHEN\x20type=\x27PAUSE\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','alias':_0x1f5a73('0x57'),'function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0x19},{'field':_0x1f5a73('0x34'),'alias':_0x1f5a73('0x81'),'ReportId':0x1a},{'field':_0x1f5a73('0x9a'),'alias':'EnterAt','ReportId':0x1a},{'field':_0x1f5a73('0x1f'),'alias':_0x1f5a73('0x4e'),'ReportId':0x1a},{'field':'data1','alias':'Pause','ReportId':0x1a},{'field':_0x1f5a73('0x44'),'alias':'Duration','format':'SEC_TO_TIME','ReportId':0x1a},{'field':_0x1f5a73('0x34'),'alias':_0x1f5a73('0x81'),'ReportId':0x1b},{'field':_0x1f5a73('0x8'),'alias':_0x1f5a73('0x138'),'ReportId':0x1b},{'field':'type','alias':_0x1f5a73('0xa9'),'ReportId':0x1b},{'field':_0x1f5a73('0xb9'),'alias':_0x1f5a73('0xe'),'ReportId':0x1b},{'field':_0x1f5a73('0x9a'),'alias':_0x1f5a73('0x9d'),'ReportId':0x1b},{'field':'exitAt','alias':_0x1f5a73('0x4e'),'ReportId':0x1b},{'field':'UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)','alias':'Duration','format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0x1b},{'field':_0x1f5a73('0x34'),'alias':_0x1f5a73('0x81'),'groupBy':0x1,'orderBy':_0x1f5a73('0x136'),'ReportId':0x1c},{'field':_0x1f5a73('0xb9'),'alias':'PauseType','groupBy':0x1,'orderBy':'ASC','ReportId':0x1c},{'field':_0x1f5a73('0x6d'),'alias':_0x1f5a73('0xe8'),'function':'SUM','format':'SEC_TO_TIME','custom':0x1,'ReportId':0x1c},{'field':_0x1f5a73('0x4f'),'alias':_0x1f5a73('0x83'),'ReportId':0x1d},{'field':_0x1f5a73('0x73'),'alias':_0x1f5a73('0x54'),'ReportId':0x1d},{'field':_0x1f5a73('0xbb'),'alias':_0x1f5a73('0xce'),'ReportId':0x1d},{'field':_0x1f5a73('0xa7'),'alias':_0x1f5a73('0x7e'),'ReportId':0x1d},{'field':'joinAt','alias':_0x1f5a73('0x7c'),'orderBy':_0x1f5a73('0x136'),'ReportId':0x1d},{'field':_0x1f5a73('0x60'),'alias':_0x1f5a73('0xb1'),'ReportId':0x1d},{'field':'UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','alias':_0x1f5a73('0xe8'),'format':_0x1f5a73('0x3a'),'custom':0x1,'ReportId':0x1d},{'field':_0x1f5a73('0x73'),'alias':_0x1f5a73('0xca'),'ReportId':0x1e},{'field':_0x1f5a73('0x4f'),'alias':_0x1f5a73('0x83'),'ReportId':0x1e},{'field':_0x1f5a73('0xbb'),'alias':_0x1f5a73('0x89'),'ReportId':0x1e},{'field':_0x1f5a73('0x24'),'alias':_0x1f5a73('0x10a'),'ReportId':0x1e},{'field':_0x1f5a73('0xde'),'alias':_0x1f5a73('0xf4'),'ReportId':0x1e},{'field':_0x1f5a73('0x8c'),'alias':_0x1f5a73('0x81'),'groupBy':0x1,'ReportId':0x1f},{'field':_0x1f5a73('0x73'),'alias':'Recorded\x20Calls','function':_0x1f5a73('0xe0'),'ReportId':0x1f},{'field':_0x1f5a73('0xf8'),'alias':_0x1f5a73('0x42'),'function':'SUM','ReportId':0x1f},{'field':_0x1f5a73('0xf8'),'alias':_0x1f5a73('0x1a'),'function':_0x1f5a73('0x5f'),'ReportId':0x1f},{'field':_0x1f5a73('0x55'),'alias':_0x1f5a73('0x76'),'groupBy':0x1,'ReportId':0x20},{'field':_0x1f5a73('0x73'),'alias':_0x1f5a73('0x8d'),'function':_0x1f5a73('0xe0'),'ReportId':0x20},{'field':'rating','alias':_0x1f5a73('0x42'),'function':_0x1f5a73('0xdf'),'ReportId':0x20},{'field':_0x1f5a73('0xf8'),'alias':_0x1f5a73('0x1a'),'function':_0x1f5a73('0x5f'),'ReportId':0x20},{'field':'campaign','alias':_0x1f5a73('0x126'),'ReportId':0x21},{'field':_0x1f5a73('0x2f'),'alias':_0x1f5a73('0xa0'),'ReportId':0x21},{'field':_0x1f5a73('0x3e'),'alias':_0x1f5a73('0xe5'),'orderBy':_0x1f5a73('0x128'),'ReportId':0x21},{'field':_0x1f5a73('0xaa'),'alias':_0x1f5a73('0xfd'),'ReportId':0x21},{'field':'countglobal','alias':'Global\x20Count','ReportId':0x21},{'field':_0x1f5a73('0x20'),'alias':'Drop\x20Reason','ReportId':0x21},{'field':_0x1f5a73('0x4b'),'alias':_0x1f5a73('0x62'),'ReportId':0x21},{'field':_0x1f5a73('0x34'),'alias':_0x1f5a73('0x81'),'ReportId':0x21},{'field':_0x1f5a73('0xa5'),'alias':'Talk\x20Time','ReportId':0x21},{'field':'disposition','alias':_0x1f5a73('0x8b'),'ReportId':0x21},{'field':_0x1f5a73('0x73'),'alias':'UniqueId','ReportId':0x21},{'field':_0x1f5a73('0xaa'),'alias':_0x1f5a73('0xfd'),'groupBy':!![],'orderBy':_0x1f5a73('0x136'),'ReportId':0x22},{'field':'id','alias':_0x1f5a73('0xd3'),'function':_0x1f5a73('0xe0'),'ReportId':0x22},{'field':_0x1f5a73('0x17'),'alias':_0x1f5a73('0xc0'),'custom':!![],'ReportId':0x22},{'field':_0x1f5a73('0x2a'),'alias':_0x1f5a73('0x126'),'orderBy':_0x1f5a73('0x136'),'groupBy':!![],'ReportId':0x23},{'field':_0x1f5a73('0xaa'),'alias':_0x1f5a73('0xfd'),'groupBy':!![],'ReportId':0x23},{'field':'id','alias':'Total\x20Calls','function':'COUNT','ReportId':0x23},{'field':'ListId','groupBy':!![],'orderBy':_0x1f5a73('0x136'),'ReportId':0x24},{'field':'id','alias':'Contacts','function':_0x1f5a73('0xe0'),'ReportId':0x24},{'field':'SUM(IF(state=4,1,0))','alias':'Managed','custom':!![],'ReportId':0x24},{'field':'ROUND(SUM(IF(state=4,1,0))/COUNT(*)*100,1)','alias':_0x1f5a73('0x64'),'custom':!![],'ReportId':0x24},{'field':_0x1f5a73('0x34'),'alias':_0x1f5a73('0x81'),'groupBy':!![],'orderBy':_0x1f5a73('0x136'),'ReportId':0x25},{'field':'id','alias':'Calls','function':_0x1f5a73('0xe0'),'ReportId':0x25},{'field':_0x1f5a73('0x1c'),'alias':_0x1f5a73('0xee'),'custom':!![],'ReportId':0x25},{'field':_0x1f5a73('0xf'),'alias':_0x1f5a73('0x8b'),'groupBy':!![],'ReportId':0x26},{'field':'id','alias':_0x1f5a73('0x6e'),'function':_0x1f5a73('0xe0'),'ReportId':0x26},{'field':'ROUND(COUNT(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_final\x20WHERE\x20state=4\x20and\x20campaigntype=\x27queue\x27),2)','alias':'Total\x20(%)','custom':!![],'ReportId':0x26},{'field':'membername','alias':_0x1f5a73('0x81'),'groupBy':!![],'ReportId':0x27},{'field':_0x1f5a73('0xf'),'alias':_0x1f5a73('0x8b'),'groupBy':!![],'ReportId':0x27},{'field':'id','alias':_0x1f5a73('0x6e'),'function':_0x1f5a73('0xe0'),'ReportId':0x27},{'field':_0x1f5a73('0x7f'),'alias':_0x1f5a73('0x3c'),'custom':!![],'ReportId':0x27},{'field':_0x1f5a73('0x2a'),'alias':_0x1f5a73('0x126'),'ReportId':0x28},{'field':_0x1f5a73('0x2f'),'alias':_0x1f5a73('0xa0'),'ReportId':0x28},{'field':'starttime','alias':_0x1f5a73('0xe5'),'orderBy':_0x1f5a73('0x128'),'ReportId':0x28},{'field':_0x1f5a73('0xaa'),'alias':_0x1f5a73('0xfd'),'ReportId':0x28},{'field':_0x1f5a73('0x48'),'alias':'Global\x20Count','ReportId':0x28},{'field':_0x1f5a73('0x20'),'alias':'Drop\x20Reason','ReportId':0x28},{'field':_0x1f5a73('0x4b'),'alias':_0x1f5a73('0x62'),'ReportId':0x28},{'field':_0x1f5a73('0xa5'),'alias':'Talk\x20Time','ReportId':0x28},{'field':_0x1f5a73('0x73'),'alias':'UniqueId','ReportId':0x28},{'field':_0x1f5a73('0xaa'),'alias':_0x1f5a73('0xfd'),'groupBy':!![],'orderBy':_0x1f5a73('0x136'),'ReportId':0x29},{'field':'id','alias':_0x1f5a73('0xd3'),'function':_0x1f5a73('0xe0'),'ReportId':0x29},{'field':_0x1f5a73('0x3d'),'alias':'Calls\x20(%)','custom':!![],'ReportId':0x29},{'field':_0x1f5a73('0x2a'),'alias':_0x1f5a73('0x126'),'orderBy':_0x1f5a73('0x136'),'groupBy':!![],'ReportId':0x2a},{'field':'statedesc','alias':_0x1f5a73('0xfd'),'groupBy':!![],'ReportId':0x2a},{'field':'id','alias':_0x1f5a73('0x121'),'function':_0x1f5a73('0xe0'),'ReportId':0x2a},{'field':_0x1f5a73('0x101'),'groupBy':!![],'orderBy':'ASC','ReportId':0x2b},{'field':'id','alias':_0x1f5a73('0x72'),'function':_0x1f5a73('0xe0'),'ReportId':0x2b},{'field':_0x1f5a73('0x3f'),'alias':_0x1f5a73('0x2e'),'custom':!![],'ReportId':0x2b},{'field':_0x1f5a73('0x33'),'alias':_0x1f5a73('0x64'),'custom':!![],'ReportId':0x2b},{'field':_0x1f5a73('0xd7'),'alias':_0x1f5a73('0x39'),'groupBy':!![],'ReportId':0x2c},{'field':'chat_interactions.id','alias':_0x1f5a73('0x30'),'function':'COUNT','ReportId':0x2c},{'field':'COUNT(IF(closed=0,1,NULL))','alias':_0x1f5a73('0x80'),'custom':!![],'ReportId':0x2c},{'field':_0x1f5a73('0x1b'),'alias':_0x1f5a73('0x9'),'custom':!![],'ReportId':0x2c},{'field':_0x1f5a73('0x87'),'alias':_0x1f5a73('0x10e'),'custom':!![],'ReportId':0x2c},{'field':_0x1f5a73('0x103'),'alias':_0x1f5a73('0x7d'),'custom':!![],'ReportId':0x2c},{'field':'chat_websites.name','alias':_0x1f5a73('0x39'),'groupBy':!![],'ReportId':0x2d},{'field':_0x1f5a73('0x13a'),'alias':_0x1f5a73('0xc3'),'function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x2d},{'field':_0x1f5a73('0x5d'),'alias':_0x1f5a73('0xa2'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x2d},{'field':_0x1f5a73('0x5c'),'alias':_0x1f5a73('0x81'),'groupBy':!![],'ReportId':0x2e},{'field':'chat_interactions.closed','alias':_0x1f5a73('0x9'),'function':_0x1f5a73('0xdf'),'ReportId':0x2e},{'field':_0x1f5a73('0x13a'),'alias':_0x1f5a73('0xc3'),'function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x2e},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)))','alias':_0x1f5a73('0xa2'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x2e},{'field':_0x1f5a73('0xd6'),'alias':'Date','format':_0x1f5a73('0x58'),'groupBy':!![],'custom':!![],'ReportId':0x2f},{'field':'chat_interactions.id','alias':_0x1f5a73('0x30'),'function':_0x1f5a73('0xe0'),'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':_0x1f5a73('0x6'),'custom':!![],'ReportId':0x2f},{'field':'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)','alias':_0x1f5a73('0xc4'),'custom':!![],'ReportId':0x2f},{'field':_0x1f5a73('0x87'),'alias':_0x1f5a73('0x10e'),'custom':!![],'ReportId':0x2f},{'field':_0x1f5a73('0x61'),'alias':_0x1f5a73('0xfc'),'custom':!![],'ReportId':0x2f},{'field':_0x1f5a73('0x103'),'alias':_0x1f5a73('0x7d'),'custom':!![],'ReportId':0x2f},{'field':_0x1f5a73('0x93'),'alias':_0x1f5a73('0xf1'),'custom':!![],'ReportId':0x2f},{'field':_0x1f5a73('0x1d'),'alias':_0x1f5a73('0xc3'),'function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x2f},{'field':_0x1f5a73('0x85'),'alias':_0x1f5a73('0xa2'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x2f},{'field':_0x1f5a73('0x7'),'alias':_0x1f5a73('0x76'),'groupBy':!![],'ReportId':0x30},{'field':_0x1f5a73('0x135'),'alias':_0x1f5a73('0x30'),'function':_0x1f5a73('0xe0'),'ReportId':0x30},{'field':'COUNT(IF(reason=\x27accepted\x27,1,NULL))','alias':_0x1f5a73('0x59'),'custom':!![],'ReportId':0x30},{'field':'COUNT(IF(reason=\x27timeout\x27,1,NULL))','alias':_0x1f5a73('0xbe'),'custom':!![],'ReportId':0x30},{'field':'UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','alias':_0x1f5a73('0x13c'),'function':'SUM','format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x30},{'field':_0x1f5a73('0x15'),'alias':_0x1f5a73('0xc5'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x30},{'field':_0x1f5a73('0x12e'),'alias':'Email\x20Account','groupBy':!![],'ReportId':0x31},{'field':_0x1f5a73('0x31'),'alias':_0x1f5a73('0x30'),'function':_0x1f5a73('0xe0'),'ReportId':0x31},{'field':_0x1f5a73('0x32'),'alias':'Open','custom':!![],'ReportId':0x31},{'field':'COUNT(IF(closed=1,1,NULL))','alias':'Closed','custom':!![],'ReportId':0x31},{'field':_0x1f5a73('0x12e'),'alias':_0x1f5a73('0x14'),'groupBy':!![],'ReportId':0x32},{'field':_0x1f5a73('0x3'),'alias':_0x1f5a73('0xc3'),'function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x32},{'field':_0x1f5a73('0xe1'),'alias':_0x1f5a73('0xa2'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x32},{'field':_0x1f5a73('0x5c'),'alias':'Agent','groupBy':!![],'ReportId':0x33},{'field':_0x1f5a73('0x112'),'alias':_0x1f5a73('0x9'),'function':_0x1f5a73('0xdf'),'ReportId':0x33},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)','alias':_0x1f5a73('0xc3'),'function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x33},{'field':_0x1f5a73('0xe1'),'alias':_0x1f5a73('0xa2'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x33},{'field':_0x1f5a73('0x79'),'alias':_0x1f5a73('0x98'),'format':_0x1f5a73('0x58'),'groupBy':!![],'custom':!![],'ReportId':0x34},{'field':_0x1f5a73('0x31'),'alias':_0x1f5a73('0x30'),'function':_0x1f5a73('0xe0'),'ReportId':0x34},{'field':_0x1f5a73('0x120'),'alias':_0x1f5a73('0x6'),'custom':!![],'ReportId':0x34},{'field':_0x1f5a73('0x91'),'alias':_0x1f5a73('0xc4'),'custom':!![],'ReportId':0x34},{'field':_0x1f5a73('0x1d'),'alias':_0x1f5a73('0xc3'),'function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x34},{'field':_0x1f5a73('0x85'),'alias':_0x1f5a73('0xa2'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x34},{'field':_0x1f5a73('0xab'),'alias':'Queue','groupBy':!![],'ReportId':0x35},{'field':_0x1f5a73('0x4c'),'alias':'Interactions','function':_0x1f5a73('0xe0'),'ReportId':0x35},{'field':'COUNT(IF(reason=\x27accepted\x27,1,NULL))','alias':_0x1f5a73('0x59'),'custom':!![],'ReportId':0x35},{'field':_0x1f5a73('0x122'),'alias':_0x1f5a73('0xbe'),'custom':!![],'ReportId':0x35},{'field':'UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','alias':'Hold\x20Time','function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x35},{'field':_0x1f5a73('0x15'),'alias':_0x1f5a73('0xc5'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x35},{'field':_0x1f5a73('0xa'),'alias':_0x1f5a73('0xbd'),'groupBy':!![],'ReportId':0x36},{'field':_0x1f5a73('0xae'),'alias':_0x1f5a73('0x30'),'function':_0x1f5a73('0xe0'),'ReportId':0x36},{'field':_0x1f5a73('0x32'),'alias':'Open','custom':!![],'ReportId':0x36},{'field':_0x1f5a73('0x120'),'alias':_0x1f5a73('0x9'),'custom':!![],'ReportId':0x36},{'field':'openchannel_accounts.name','alias':_0x1f5a73('0xbd'),'groupBy':!![],'ReportId':0x37},{'field':_0x1f5a73('0xb'),'alias':'Interaction\x20Time','function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x37},{'field':_0x1f5a73('0xff'),'alias':'AVG\x20Interaction\x20Time','format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x37},{'field':'users.fullname','alias':_0x1f5a73('0x81'),'groupBy':!![],'ReportId':0x38},{'field':_0x1f5a73('0x37'),'alias':_0x1f5a73('0x9'),'function':_0x1f5a73('0xdf'),'ReportId':0x38},{'field':_0x1f5a73('0xb'),'alias':'Interaction\x20Time','function':'SUM','format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x38},{'field':_0x1f5a73('0xff'),'alias':_0x1f5a73('0xa2'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x38},{'field':'openchannel_interactions.createdAt','alias':_0x1f5a73('0x98'),'format':_0x1f5a73('0x58'),'groupBy':!![],'custom':!![],'ReportId':0x39},{'field':_0x1f5a73('0xae'),'alias':_0x1f5a73('0x30'),'function':_0x1f5a73('0xe0'),'ReportId':0x39},{'field':_0x1f5a73('0x120'),'alias':_0x1f5a73('0x6'),'custom':!![],'ReportId':0x39},{'field':_0x1f5a73('0x91'),'alias':'Completed\x20(%)','custom':!![],'ReportId':0x39},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','alias':_0x1f5a73('0xc3'),'function':'SUM','format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x39},{'field':_0x1f5a73('0x85'),'alias':'AVG\x20Interaction\x20Time','format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x39},{'field':_0x1f5a73('0xfa'),'alias':_0x1f5a73('0x76'),'groupBy':!![],'ReportId':0x3a},{'field':'report_openchannel_queue.id','alias':'Interactions','function':_0x1f5a73('0xe0'),'ReportId':0x3a},{'field':_0x1f5a73('0xd4'),'alias':_0x1f5a73('0x59'),'custom':!![],'ReportId':0x3a},{'field':_0x1f5a73('0x122'),'alias':_0x1f5a73('0xbe'),'custom':!![],'ReportId':0x3a},{'field':'UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','alias':'Hold\x20Time','function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x3a},{'field':'ROUND(AVG(UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)))','alias':_0x1f5a73('0xc5'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x3a},{'field':'sms_accounts.name','alias':_0x1f5a73('0xd'),'groupBy':!![],'ReportId':0x3b},{'field':_0x1f5a73('0x131'),'alias':_0x1f5a73('0x30'),'function':_0x1f5a73('0xe0'),'ReportId':0x3b},{'field':_0x1f5a73('0x32'),'alias':_0x1f5a73('0x80'),'custom':!![],'ReportId':0x3b},{'field':_0x1f5a73('0x120'),'alias':_0x1f5a73('0x9'),'custom':!![],'ReportId':0x3b},{'field':'sms_accounts.name','alias':_0x1f5a73('0xd'),'groupBy':!![],'ReportId':0x3c},{'field':_0x1f5a73('0xf0'),'alias':_0x1f5a73('0xc3'),'function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x3c},{'field':_0x1f5a73('0x38'),'alias':_0x1f5a73('0xa2'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x3c},{'field':_0x1f5a73('0x5c'),'alias':'Agent','groupBy':!![],'ReportId':0x3d},{'field':_0x1f5a73('0x40'),'alias':_0x1f5a73('0x9'),'function':_0x1f5a73('0xdf'),'ReportId':0x3d},{'field':_0x1f5a73('0xf0'),'alias':_0x1f5a73('0xc3'),'function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x3d},{'field':_0x1f5a73('0x38'),'alias':_0x1f5a73('0xa2'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x3d},{'field':_0x1f5a73('0x28'),'alias':'Date','format':'DATE','groupBy':!![],'custom':!![],'ReportId':0x3e},{'field':_0x1f5a73('0x131'),'alias':_0x1f5a73('0x30'),'function':_0x1f5a73('0xe0'),'ReportId':0x3e},{'field':_0x1f5a73('0x120'),'alias':'Completed','custom':!![],'ReportId':0x3e},{'field':_0x1f5a73('0x91'),'alias':_0x1f5a73('0xc4'),'custom':!![],'ReportId':0x3e},{'field':_0x1f5a73('0x1d'),'alias':_0x1f5a73('0xc3'),'function':_0x1f5a73('0xdf'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x3e},{'field':_0x1f5a73('0x85'),'alias':_0x1f5a73('0xa2'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x3e},{'field':_0x1f5a73('0x100'),'alias':'Queue','groupBy':!![],'ReportId':0x3f},{'field':'report_sms_queue.id','alias':_0x1f5a73('0x30'),'function':_0x1f5a73('0xe0'),'ReportId':0x3f},{'field':_0x1f5a73('0xd4'),'alias':'Accepted','custom':!![],'ReportId':0x3f},{'field':_0x1f5a73('0x122'),'alias':_0x1f5a73('0xbe'),'custom':!![],'ReportId':0x3f},{'field':'UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','alias':_0x1f5a73('0x13c'),'function':_0x1f5a73('0xdf'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x3f},{'field':_0x1f5a73('0x15'),'alias':_0x1f5a73('0xc5'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x3f},{'field':_0x1f5a73('0x108'),'alias':_0x1f5a73('0x76'),'groupBy':!![],'ReportId':0x44},{'field':_0x1f5a73('0x6a'),'alias':_0x1f5a73('0x30'),'function':_0x1f5a73('0xe0'),'ReportId':0x44},{'field':_0x1f5a73('0xd4'),'alias':'Accepted','custom':!![],'ReportId':0x44},{'field':_0x1f5a73('0x122'),'alias':_0x1f5a73('0xbe'),'custom':!![],'ReportId':0x44},{'field':_0x1f5a73('0x107'),'alias':_0x1f5a73('0x13c'),'function':_0x1f5a73('0xdf'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x44},{'field':_0x1f5a73('0x15'),'alias':_0x1f5a73('0xc5'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x44},{'field':_0x1f5a73('0x99'),'alias':'Date','format':_0x1f5a73('0x58'),'groupBy':!![],'custom':!![],'ReportId':0x43},{'field':_0x1f5a73('0x84'),'alias':'Interactions','function':_0x1f5a73('0xe0'),'ReportId':0x43},{'field':_0x1f5a73('0x120'),'alias':'Completed','custom':!![],'ReportId':0x43},{'field':'ROUND(COUNT(IF(closed=1,1,NULL))/COUNT(id)\x20*100,1)','alias':'Completed\x20(%)','custom':!![],'ReportId':0x43},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','alias':_0x1f5a73('0xc3'),'function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x43},{'field':_0x1f5a73('0x85'),'alias':_0x1f5a73('0xa2'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x43},{'field':_0x1f5a73('0x5c'),'alias':_0x1f5a73('0x81'),'groupBy':!![],'ReportId':0x42},{'field':_0x1f5a73('0x11'),'alias':'Closed','function':'SUM','ReportId':0x42},{'field':_0x1f5a73('0x50'),'alias':_0x1f5a73('0xc3'),'function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x42},{'field':_0x1f5a73('0x10'),'alias':_0x1f5a73('0xa2'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x42},{'field':_0x1f5a73('0x110'),'alias':'Fax\x20Account','groupBy':!![],'ReportId':0x41},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)','alias':_0x1f5a73('0xc3'),'function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x41},{'field':_0x1f5a73('0x10'),'alias':_0x1f5a73('0xa2'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x41},{'field':'fax_accounts.name','alias':'Fax\x20Account','groupBy':!![],'ReportId':0x40},{'field':_0x1f5a73('0x84'),'alias':_0x1f5a73('0x30'),'function':_0x1f5a73('0xe0'),'ReportId':0x40},{'field':_0x1f5a73('0x32'),'alias':'Open','custom':!![],'ReportId':0x40},{'field':'COUNT(IF(closed=1,1,NULL))','alias':_0x1f5a73('0x9'),'custom':!![],'ReportId':0x40},{'field':_0x1f5a73('0x134'),'alias':_0x1f5a73('0xdc'),'groupBy':!![],'custom':![],'ReportId':0x4a},{'field':_0x1f5a73('0x5c'),'alias':_0x1f5a73('0xf9'),'groupBy':![],'custom':![],'ReportId':0x4a},{'field':'COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27POSITIVE\x27,1,NULL))','alias':_0x1f5a73('0xe6'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x1f5a73('0x11b'),'alias':_0x1f5a73('0x12a'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x1f5a73('0xa8'),'alias':_0x1f5a73('0x1e'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x1f5a73('0x2d'),'alias':'MIXED','groupBy':![],'custom':!![],'ReportId':0x4a},{'field':'voice_recordings.sentiment','alias':_0x1f5a73('0xe7'),'function':_0x1f5a73('0xe0'),'groupBy':![],'custom':![],'ReportId':0x4a},{'field':'CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27POSITIVE\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','alias':'Positive(%)','groupBy':![],'custom':!![],'ReportId':0x45},{'field':_0x1f5a73('0xac'),'alias':_0x1f5a73('0x13b'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x1f5a73('0x102'),'alias':_0x1f5a73('0xb0'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x1f5a73('0xc6'),'alias':'Mixed(%)','groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x1f5a73('0x9c'),'alias':_0x1f5a73('0xfb'),'function':_0x1f5a73('0xe0'),'groupBy':![],'custom':![],'ReportId':0x4b},{'field':_0x1f5a73('0xb7'),'alias':_0x1f5a73('0xe6'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x1f5a73('0x11b'),'alias':_0x1f5a73('0x12a'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':'COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEUTRAL\x27,1,NULL))','alias':'NEUTRAL','groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x1f5a73('0x2d'),'alias':_0x1f5a73('0x124'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x1f5a73('0x90'),'alias':_0x1f5a73('0x118'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':'CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','alias':_0x1f5a73('0x13b'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x1f5a73('0x102'),'alias':_0x1f5a73('0xb0'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x1f5a73('0xc6'),'alias':_0x1f5a73('0xc8'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x1f5a73('0xbc'),'alias':'Whatsapp\x20Account','groupBy':!![],'ReportId':0x45},{'field':_0x1f5a73('0x6b'),'alias':_0x1f5a73('0x30'),'function':_0x1f5a73('0xe0'),'ReportId':0x45},{'field':_0x1f5a73('0x32'),'alias':_0x1f5a73('0x80'),'custom':!![],'ReportId':0x45},{'field':_0x1f5a73('0x120'),'alias':_0x1f5a73('0x9'),'custom':!![],'ReportId':0x45},{'field':_0x1f5a73('0xbc'),'alias':_0x1f5a73('0x1'),'groupBy':!![],'ReportId':0x46},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)','alias':_0x1f5a73('0xc3'),'function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x46},{'field':_0x1f5a73('0xcb'),'alias':_0x1f5a73('0xa2'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x46},{'field':_0x1f5a73('0x5c'),'alias':_0x1f5a73('0x81'),'groupBy':!![],'ReportId':0x47},{'field':_0x1f5a73('0xb6'),'alias':_0x1f5a73('0x9'),'function':_0x1f5a73('0xdf'),'ReportId':0x47},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)','alias':_0x1f5a73('0xc3'),'function':_0x1f5a73('0xdf'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x47},{'field':_0x1f5a73('0xcb'),'alias':_0x1f5a73('0xa2'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x47},{'field':_0x1f5a73('0x11a'),'alias':_0x1f5a73('0x98'),'format':_0x1f5a73('0x58'),'groupBy':!![],'custom':!![],'ReportId':0x48},{'field':_0x1f5a73('0x6b'),'alias':_0x1f5a73('0x30'),'function':'COUNT','ReportId':0x48},{'field':_0x1f5a73('0x120'),'alias':_0x1f5a73('0x6'),'custom':!![],'ReportId':0x48},{'field':'ROUND(COUNT(IF(closed=1,1,NULL))/COUNT(id)\x20*100,1)','alias':_0x1f5a73('0xc4'),'custom':!![],'ReportId':0x48},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','alias':_0x1f5a73('0xc3'),'function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x48},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)))','alias':_0x1f5a73('0xa2'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x48},{'field':_0x1f5a73('0x52'),'alias':'Queue','groupBy':!![],'ReportId':0x49},{'field':_0x1f5a73('0xe3'),'alias':_0x1f5a73('0x30'),'function':'COUNT','ReportId':0x49},{'field':_0x1f5a73('0xd4'),'alias':_0x1f5a73('0x59'),'custom':!![],'ReportId':0x49},{'field':'COUNT(IF(reason=\x27timeout\x27,1,NULL))','alias':'Timeout','custom':!![],'ReportId':0x49},{'field':_0x1f5a73('0x107'),'alias':_0x1f5a73('0x13c'),'function':_0x1f5a73('0xdf'),'format':_0x1f5a73('0x3a'),'custom':!![],'ReportId':0x49},{'field':_0x1f5a73('0x15'),'alias':_0x1f5a73('0xc5'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x49}];return _[_0x1f5a73('0x116')](_0x2929b5,_0x1f5a73('0x12b'));}; \ No newline at end of file +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 diff --git a/server/config/seedDB/report/index.js b/server/config/seedDB/report/index.js index 3d9beff..18a533a 100644 --- a/server/config/seedDB/report/index.js +++ b/server/config/seedDB/report/index.js @@ -1 +1 @@ -var a870_0x4f3a=['./fields','./default'];(function(_0x53326b,_0x4f3a5d){var _0x21ee12=function(_0x542771){while(--_0x542771){_0x53326b['push'](_0x53326b['shift']());}};_0x21ee12(++_0x4f3a5d);}(a870_0x4f3a,0x1a1));var a870_0x21ee=function(_0x53326b,_0x4f3a5d){_0x53326b=_0x53326b-0x0;var _0x21ee12=a870_0x4f3a[_0x53326b];return _0x21ee12;};var _0xf632d7=a870_0x21ee;'use strict';module['exports']={'default':require(_0xf632d7('0x0')),'fields':require(_0xf632d7('0x1'))}; \ No newline at end of file +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 diff --git a/server/config/seedDB/sounds.js b/server/config/seedDB/sounds.js index 0185766..db8ea6d 100644 --- a/server/config/seedDB/sounds.js +++ b/server/config/seedDB/sounds.js @@ -1 +1 @@ -const a871_0xc35e=['Agent\x20Menu','Agent\x20Login','Sound','Thank\x20You','Order\x20Shipped','auto\x20generated\x20sound','agentmanagement-login','Agent\x20Logout','Agent\x20Action\x20Failure','order-shipped','agentmanagement-action-failure','../../mysqldb','bulkCreate','wav','error','agentmanagement-unpause','Call\x20Rating\x20Message','Sounds\x20have\x20been\x20created','welcome-acme','agentmanagement-logout','order-number','info','rate-call','order-elaborated','thanx','Order\x20Message','Order\x20Elaborated','../logger','Welcome\x20Message','Agent\x20Pause','Agent\x20End\x20Pause','mp3','app'];(function(_0x299cd5,_0xc35e84){const _0x557275=function(_0x34d37a){while(--_0x34d37a){_0x299cd5['push'](_0x299cd5['shift']());}};_0x557275(++_0xc35e84);}(a871_0xc35e,0x11b));const a871_0x5572=function(_0x299cd5,_0xc35e84){_0x299cd5=_0x299cd5-0x0;let _0x557275=a871_0xc35e[_0x299cd5];return _0x557275;};const _0x3a3f8a=a871_0x5572;'use strict';const db=require(_0x3a3f8a('0x19'))['db'],logger=require(_0x3a3f8a('0x8'))(_0x3a3f8a('0xd')),sounds=[{'id':0x1,'name':_0x3a3f8a('0x9'),'save_name':_0x3a3f8a('0x20'),'display_name':_0x3a3f8a('0x9'),'original_format':_0x3a3f8a('0x1b'),'converted_format':'wav','description':_0x3a3f8a('0x13')},{'id':0x2,'name':_0x3a3f8a('0x6'),'save_name':_0x3a3f8a('0x1'),'display_name':_0x3a3f8a('0x6'),'original_format':_0x3a3f8a('0x1b'),'converted_format':_0x3a3f8a('0x1b'),'description':'auto\x20generated\x20sound'},{'id':0x3,'name':_0x3a3f8a('0x12'),'save_name':_0x3a3f8a('0x17'),'display_name':_0x3a3f8a('0x12'),'original_format':_0x3a3f8a('0x1b'),'converted_format':_0x3a3f8a('0x1b'),'description':_0x3a3f8a('0x13')},{'id':0x4,'name':_0x3a3f8a('0x7'),'save_name':_0x3a3f8a('0x4'),'display_name':_0x3a3f8a('0x7'),'original_format':_0x3a3f8a('0x1b'),'converted_format':_0x3a3f8a('0x1b'),'description':'auto\x20generated\x20sound'},{'id':0x5,'name':'Call\x20Rating\x20Message','save_name':_0x3a3f8a('0x3'),'display_name':_0x3a3f8a('0x1e'),'original_format':_0x3a3f8a('0x1b'),'converted_format':'wav','description':_0x3a3f8a('0x13')},{'id':0x6,'name':'Thank\x20You','save_name':_0x3a3f8a('0x5'),'display_name':_0x3a3f8a('0x11'),'original_format':'wav','converted_format':_0x3a3f8a('0x1b'),'description':_0x3a3f8a('0x13')},{'id':0x7,'name':_0x3a3f8a('0xf'),'save_name':_0x3a3f8a('0x14'),'display_name':'Agent\x20Login','original_format':_0x3a3f8a('0xc'),'converted_format':'wav','description':'auto\x20generated\x20sound'},{'id':0x8,'name':_0x3a3f8a('0x15'),'save_name':_0x3a3f8a('0x0'),'display_name':_0x3a3f8a('0x15'),'original_format':_0x3a3f8a('0xc'),'converted_format':'wav','description':_0x3a3f8a('0x13')},{'id':0x9,'name':_0x3a3f8a('0xe'),'save_name':'agentmanagement-menu','display_name':_0x3a3f8a('0xe'),'original_format':_0x3a3f8a('0x1b'),'converted_format':_0x3a3f8a('0x1b'),'description':_0x3a3f8a('0x13')},{'id':0xa,'name':_0x3a3f8a('0xa'),'save_name':'agentmanagement-pause','display_name':'Agent\x20Pause','original_format':_0x3a3f8a('0xc'),'converted_format':'wav','description':_0x3a3f8a('0x13')},{'id':0xb,'name':_0x3a3f8a('0xb'),'save_name':_0x3a3f8a('0x1d'),'display_name':'Agent\x20End\x20Pause','original_format':_0x3a3f8a('0xc'),'converted_format':_0x3a3f8a('0x1b'),'description':'auto\x20generated\x20sound'},{'id':0xc,'name':'Agent\x20Action\x20Failure','save_name':_0x3a3f8a('0x18'),'display_name':_0x3a3f8a('0x16'),'original_format':'wav','converted_format':_0x3a3f8a('0x1b'),'description':_0x3a3f8a('0x13')}];exports['create']=function(){const _0x155c77=_0x3a3f8a;return db[_0x155c77('0x10')][_0x155c77('0x1a')](sounds,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x135015=_0x155c77;logger[_0x135015('0x2')](_0x135015('0x1f'));})['catch'](function(){const _0x222a3f=_0x155c77;logger[_0x222a3f('0x1c')]('Can\x27t\x20create\x20Sounds');});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/squareOdbc.js b/server/config/seedDB/squareOdbc.js index df98683..1267f40 100644 --- a/server/config/seedDB/squareOdbc.js +++ b/server/config/seedDB/squareOdbc.js @@ -1 +1 @@ -const a872_0x3c89=['DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=xC@LL1234;DATABASE=motion2','ODBC\x20have\x20been\x20created','app','error','bulkCreate','then','../../mysqldb','xcally-motion-database','SquareOdbc','Can\x27t\x20create\x20ODBC'];(function(_0x540b7f,_0x3c892d){const _0x5b286f=function(_0x2b4969){while(--_0x2b4969){_0x540b7f['push'](_0x540b7f['shift']());}};_0x5b286f(++_0x3c892d);}(a872_0x3c89,0x1b9));const a872_0x5b28=function(_0x540b7f,_0x3c892d){_0x540b7f=_0x540b7f-0x0;let _0x5b286f=a872_0x3c89[_0x540b7f];return _0x5b286f;};const _0x34b690=a872_0x5b28;'use strict';const db=require(_0x34b690('0x5'))['db'],logger=require('../logger')(_0x34b690('0x1')),odbc=[{'id':0x1,'name':_0x34b690('0x6'),'dsn':_0x34b690('0x9'),'description':'xcally\x20motion\x20db\x20auto\x20generated'}];exports['create']=function(){const _0x3a0c3e=_0x34b690;return db[_0x3a0c3e('0x7')][_0x3a0c3e('0x3')](odbc,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x3a0c3e('0x4')](function(){const _0x177571=_0x3a0c3e;logger['info'](_0x177571('0x0'));})['catch'](function(){const _0x1f1524=_0x3a0c3e;logger[_0x1f1524('0x2')](_0x1f1524('0x8'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/squareProjects.js b/server/config/seedDB/squareProjects.js index 2910b0a..e2aa102 100644 --- a/server/config/seedDB/squareProjects.js +++ b/server/config/seedDB/squareProjects.js @@ -1 +1 @@ -const a873_0x33e2=['info','join','CSI','utf-8','Customer\x20Satisfaction\x20IVR\x20sample\x20auto\x20generated','Can\x27t\x20create\x20Square\x20Projects','then','readFileSync','catch','Survey\x20IVR\x20sample\x20auto\x20generated','AutoAttendant','Survey','SquareProject','Orders','Basic\x20IVR\x20sample\x20auto\x20generated','../logger','../../mysqldb','AgentManagement','Order\x20DB\x20IVR\x20sample\x20auto\x20generated','app','xml','Agent\x20Management\x20sample\x20auto\x20generated','Square\x20Projects\x20have\x20been\x20created','.xml'];(function(_0x426404,_0x33e262){const _0x29bfc2=function(_0x3e5f49){while(--_0x3e5f49){_0x426404['push'](_0x426404['shift']());}};_0x29bfc2(++_0x33e262);}(a873_0x33e2,0x123));const a873_0x29bf=function(_0x426404,_0x33e262){_0x426404=_0x426404-0x0;let _0x29bfc2=a873_0x33e2[_0x426404];return _0x29bfc2;};const _0x1e35a8=a873_0x29bf;'use strict';const fs=require('fs'),path=require('path'),db=require(_0x1e35a8('0xd'))['db'],logger=require(_0x1e35a8('0xc'))(_0x1e35a8('0x10')),getXml=function(_0x3e5f49){const _0x46a92a=_0x1e35a8;return fs[_0x46a92a('0x4')](path[_0x46a92a('0x16')](__dirname,_0x46a92a('0x11'),_0x3e5f49+_0x46a92a('0x14')),{'encoding':_0x46a92a('0x0')});},squareProjects=[{'id':0x1,'name':_0x1e35a8('0x7'),'description':_0x1e35a8('0xb'),'preproduction':getXml(_0x1e35a8('0x7')),'production':getXml(_0x1e35a8('0x7'))},{'id':0x2,'name':_0x1e35a8('0x17'),'description':_0x1e35a8('0x1'),'preproduction':getXml('CSI'),'production':getXml('CSI')},{'id':0x3,'name':_0x1e35a8('0xa'),'description':_0x1e35a8('0xf'),'preproduction':getXml(_0x1e35a8('0xa')),'production':getXml('Orders')},{'id':0x4,'name':_0x1e35a8('0x8'),'description':_0x1e35a8('0x6'),'preproduction':getXml(_0x1e35a8('0x8')),'production':getXml(_0x1e35a8('0x8'))},{'id':0x5,'name':_0x1e35a8('0xe'),'description':_0x1e35a8('0x12'),'preproduction':getXml(_0x1e35a8('0xe')),'production':getXml(_0x1e35a8('0xe'))}];exports['create']=function(){const _0x10494e=_0x1e35a8;return db[_0x10494e('0x9')]['bulkCreate'](squareProjects,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x10494e('0x3')](function(){const _0x2374ff=_0x10494e;logger[_0x2374ff('0x15')](_0x2374ff('0x13'));})[_0x10494e('0x5')](function(){const _0x2953de=_0x10494e;logger['error'](_0x2953de('0x2'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/tags.js b/server/config/seedDB/tags.js index a86617b..244ca64 100644 --- a/server/config/seedDB/tags.js +++ b/server/config/seedDB/tags.js @@ -1 +1 @@ -const a874_0x29a4=['lodash','defective','installation','name','create','map','forums','bulkCreate','tag\x20installation\x20auto\x20generated','app','Tags\x20have\x20been\x20created','tag\x20defective\x20auto\x20generated','../logger','Tag','info','about_sales','tag\x20about_sales\x20auto\x20generated'];(function(_0x30eb3c,_0x29a464){const _0x210a6c=function(_0x241474){while(--_0x241474){_0x30eb3c['push'](_0x30eb3c['shift']());}};_0x210a6c(++_0x29a464);}(a874_0x29a4,0xf4));const a874_0x210a=function(_0x30eb3c,_0x29a464){_0x30eb3c=_0x30eb3c-0x0;let _0x210a6c=a874_0x29a4[_0x30eb3c];return _0x210a6c;};const _0x3825b2=a874_0x210a;'use strict';const _=require(_0x3825b2('0xb')),db=require('../../mysqldb')['db'],logger=require(_0x3825b2('0x6'))(_0x3825b2('0x3')),tags=[{'id':0x1,'name':_0x3825b2('0x0'),'description':'tag\x20forums\x20auto\x20generated'},{'id':0x2,'name':_0x3825b2('0xc'),'description':_0x3825b2('0x5')},{'id':0x3,'name':'faq','description':'tag\x20faq\x20auto\x20generated'},{'id':0x4,'name':_0x3825b2('0xd'),'description':_0x3825b2('0x2')},{'id':0x5,'name':_0x3825b2('0x9'),'description':_0x3825b2('0xa')}];exports[_0x3825b2('0xf')]=function(){const _0x1458c5=_0x3825b2;return db[_0x1458c5('0x7')][_0x1458c5('0x1')](tags,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x3297f0=_0x1458c5;logger[_0x3297f0('0x8')](_0x3297f0('0x4'));})['catch'](function(){logger['error']('Can\x27t\x20create\x20Tags');});},exports['getNames']=function(){const _0x4f0d71=_0x3825b2;return _[_0x4f0d71('0x10')](tags,_0x4f0d71('0xe'));}; \ No newline at end of file +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 diff --git a/server/config/seedDB/teams.js b/server/config/seedDB/teams.js index 72ed091..f0975a7 100644 --- a/server/config/seedDB/teams.js +++ b/server/config/seedDB/teams.js @@ -1 +1 @@ -const a875_0x13dc=['app','catch','error','create','addAgents','length','../../mysqldb','Demo\x20Team','../logger','info','Team','Can\x27t\x20create\x20Teams','then','Teams\x20have\x20been\x20created','bulkCreate','demo\x20team\x20auto\x20generated'];(function(_0x1a8495,_0x13dc40){const _0x402566=function(_0x20af64){while(--_0x20af64){_0x1a8495['push'](_0x1a8495['shift']());}};_0x402566(++_0x13dc40);}(a875_0x13dc,0xc8));const a875_0x4025=function(_0x1a8495,_0x13dc40){_0x1a8495=_0x1a8495-0x0;let _0x402566=a875_0x13dc[_0x1a8495];return _0x402566;};const _0x163200=a875_0x4025;'use strict';const db=require(_0x163200('0xe'))['db'],logger=require(_0x163200('0x0'))(_0x163200('0x8')),teams=[{'id':0x1,'name':_0x163200('0xf'),'description':_0x163200('0x7')}];exports[_0x163200('0xb')]=function(){const _0xd11398=_0x163200;return db[_0xd11398('0x2')][_0xd11398('0x6')](teams,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0xd11398('0x4')](function(_0x20af64){const _0x2a0b76=_0xd11398;for(let _0xe5661d=0x0;_0xe5661d<_0x20af64[_0x2a0b76('0xd')];_0xe5661d+=0x1){_0x20af64[_0xe5661d][_0x2a0b76('0xc')]([0x2,0x3]);}})[_0xd11398('0x4')](function(){const _0x3bf52f=_0xd11398;logger[_0x3bf52f('0x1')](_0x3bf52f('0x5'));})[_0xd11398('0x9')](function(){const _0x30c220=_0xd11398;logger[_0x30c220('0xa')](_0x30c220('0x3'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/tree/index.js b/server/config/seedDB/tree/index.js index e47927f..58d6d39 100644 --- a/server/config/seedDB/tree/index.js +++ b/server/config/seedDB/tree/index.js @@ -1 +1 @@ -var a876_0xa958=['sms','Unanswered','\x20Reports','fax','Custom','Queue\x20Campaigns','queue_campaigns','Motion','voice','Voice','Recordings','Chat','icon-laptop-chromebook','icon\x20s20\x20icon-email','icon\x20s20\x20icon-phone-dots','Fax','queues','icon\x20s20\x20icon-whatsapp','Openchannel','bull','icon\x20s20\x20icon-message-text','icon\x20s20\x20icon-stackoverflow','icon\x20s20\x20icon-fire','icon\x20s20\x20icon-account-multiple','icon-cloud','icon\x20s20\x20icon-sitemap','Calls','answered','Agents','recordings','distribution','chat','WhatsApp\x20Connector','Sms','icon\x20s20\x20icon-google-earth','Email','motion','Motion\x20Bull','agents','custom','Queues'];(function(_0x665f69,_0xa958df){var _0x4b0e1a=function(_0x545ea5){while(--_0x545ea5){_0x665f69['push'](_0x665f69['shift']());}};_0x4b0e1a(++_0xa958df);}(a876_0xa958,0x19e));var a876_0x4b0e=function(_0x665f69,_0xa958df){_0x665f69=_0x665f69-0x0;var _0x4b0e1a=a876_0xa958[_0x665f69];return _0x4b0e1a;};var _0x58ae9d=a876_0x4b0e;'use strict';function getQueuesChildren(_0x545ea5){var _0x569ef3=a876_0x4b0e;return _0x545ea5+='_',[{'id':_0x545ea5+_0x569ef3('0x17'),'text':'Answered'},{'id':_0x545ea5+'unanswered','text':_0x569ef3('0x26')},{'id':_0x545ea5+_0x569ef3('0x1a'),'text':'Distribution'}];}function getVoiceChildren(_0x535db8){var _0x120906=a876_0x4b0e;return _0x535db8+='_',[{'id':_0x535db8+_0x120906('0xc'),'text':_0x120906('0x24'),'icon':_0x120906('0x11'),'children':getQueuesChildren(_0x535db8+_0x120906('0xc'))},{'id':_0x535db8+'calls','text':_0x120906('0x16'),'icon':_0x120906('0xa')},{'id':_0x535db8+_0x120906('0x22'),'text':_0x120906('0x18'),'icon':_0x120906('0x13')},{'id':_0x535db8+'callysquare','text':'Cally\x20Square','icon':_0x120906('0x15')},{'id':_0x535db8+_0x120906('0x19'),'text':_0x120906('0x6'),'icon':'icon\x20s20\x20icon-microphone'}];}function getBullChildren(_0x358a98){var _0x211b41=a876_0x4b0e;return _0x358a98+='_',[{'id':_0x358a98+_0x211b41('0x2'),'text':_0x211b41('0x1'),'icon':'icon\x20s20\x20icon-stackoverflow'},{'id':_0x358a98+'ivr_campaigns','text':'IVR\x20Campaigns','icon':_0x211b41('0x15')}];}function getMotionChildren(_0x5f451c){var _0x73f6c3=a876_0x4b0e;return _0x5f451c+='_',[{'id':_0x5f451c+_0x73f6c3('0x4'),'text':_0x73f6c3('0x5'),'icon':'icon\x20s20\x20icon-phone-log','children':getVoiceChildren(_0x5f451c+_0x73f6c3('0x4'))},{'id':_0x5f451c+_0x73f6c3('0xf'),'text':_0x73f6c3('0x21'),'icon':_0x73f6c3('0x12'),'children':getBullChildren(_0x5f451c+_0x73f6c3('0xf'))},{'id':_0x5f451c+_0x73f6c3('0x1b'),'text':_0x73f6c3('0x7'),'icon':'icon\x20s20\x20icon-hangouts'},{'id':_0x5f451c+'mail','text':_0x73f6c3('0x1f'),'icon':_0x73f6c3('0x9')},{'id':_0x5f451c+'openchannel','text':_0x73f6c3('0xe'),'icon':_0x73f6c3('0x1e')},{'id':_0x5f451c+_0x73f6c3('0x25'),'text':_0x73f6c3('0x1d'),'icon':_0x73f6c3('0x10')},{'id':_0x5f451c+_0x73f6c3('0x28'),'text':_0x73f6c3('0xb'),'icon':'icon\x20s20\x20icon-deskphone'},{'id':_0x5f451c+'whatsapp','text':_0x73f6c3('0x1c'),'icon':_0x73f6c3('0xd')},{'id':_0x5f451c+'agents','text':_0x73f6c3('0x18'),'icon':_0x73f6c3('0x13')}];}function getTree(_0x1ca4d7){var _0x13f26c=a876_0x4b0e;return[{'id':_0x1ca4d7?'custom':_0x13f26c('0x20'),'text':(_0x1ca4d7?_0x13f26c('0x0'):_0x13f26c('0x3'))+_0x13f26c('0x27'),'icon':'icon\x20s20\x20'+(_0x1ca4d7?_0x13f26c('0x8'):_0x13f26c('0x14')),'state':{'opened':!![],'selected':!![]},'children':getMotionChildren(_0x1ca4d7?_0x13f26c('0x23'):_0x13f26c('0x20'))}];}exports[_0x58ae9d('0x20')]=getTree(![]),exports['custom']=getTree(!![]); \ No newline at end of file +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 diff --git a/server/config/seedDB/trunks.js b/server/config/seedDB/trunks.js index 02774b2..329721c 100644 --- a/server/config/seedDB/trunks.js +++ b/server/config/seedDB/trunks.js @@ -1 +1 @@ -const a877_0x2bba=['Can\x27t\x20create\x20Trunks','error','Trunk','../../mysqldb','app','trunk\x20demo\x20auto\x20generated','../logger','catch','55xcally55','demo','Trunks\x20have\x20been\x20created','create'];(function(_0x24e5e3,_0x2bba77){const _0x15b850=function(_0x42207e){while(--_0x42207e){_0x24e5e3['push'](_0x24e5e3['shift']());}};_0x15b850(++_0x2bba77);}(a877_0x2bba,0xd0));const a877_0x15b8=function(_0x24e5e3,_0x2bba77){_0x24e5e3=_0x24e5e3-0x0;let _0x15b850=a877_0x2bba[_0x24e5e3];return _0x15b850;};const _0xda3e6a=a877_0x15b8;'use strict';const db=require(_0xda3e6a('0xb'))['db'],logger=require(_0xda3e6a('0x2'))(_0xda3e6a('0x0')),trunks=[{'id':0x1,'name':_0xda3e6a('0x5'),'secret':_0xda3e6a('0x4'),'defaultuser':'demo','description':_0xda3e6a('0x1')}];exports[_0xda3e6a('0x7')]=function(){const _0x764819=_0xda3e6a;return db[_0x764819('0xa')]['bulkCreate'](trunks,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x4fb906=_0x764819;logger['info'](_0x4fb906('0x6'));})[_0x764819('0x3')](function(){const _0x4e7744=_0x764819;logger[_0x4e7744('0x9')](_0x4e7744('0x8'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/userProfiles.js b/server/config/seedDB/userProfiles.js index 453b08c..fd30356 100644 --- a/server/config/seedDB/userProfiles.js +++ b/server/config/seedDB/userProfiles.js @@ -1 +1 @@ -const a878_0x4f8a=['Default','bulkCreate','Auto\x20generated\x20User\x20Profile','app','Can\x27t\x20create\x20User\x20Profiles','create','User\x20Profiles\x20have\x20been\x20created','../logger','info','then','error'];(function(_0x32dc8e,_0x4f8a8a){const _0xb7cf99=function(_0x4f7e9c){while(--_0x4f7e9c){_0x32dc8e['push'](_0x32dc8e['shift']());}};_0xb7cf99(++_0x4f8a8a);}(a878_0x4f8a,0x67));const a878_0xb7cf=function(_0x32dc8e,_0x4f8a8a){_0x32dc8e=_0x32dc8e-0x0;let _0xb7cf99=a878_0x4f8a[_0x32dc8e];return _0xb7cf99;};const _0x405e3a=a878_0xb7cf;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x405e3a('0x3'))(_0x405e3a('0xa')),userProfiles=[{'id':0x1,'name':_0x405e3a('0x7'),'crudPermissions':['r','e','d'],'description':_0x405e3a('0x9')}];exports[_0x405e3a('0x1')]=function(){const _0x176fbd=_0x405e3a;return db['UserProfile'][_0x176fbd('0x8')](userProfiles,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x176fbd('0x5')](function(){const _0x54d359=_0x176fbd;logger[_0x54d359('0x4')](_0x54d359('0x2'));})['catch'](function(){const _0x43a2da=_0x176fbd;logger[_0x43a2da('0x6')](_0x43a2da('0x0'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/users.js b/server/config/seedDB/users.js index 500e6ec..5b72e59 100644 --- a/server/config/seedDB/users.js +++ b/server/config/seedDB/users.js @@ -1 +1 @@ -const a879_0x2a4c=['password','app','101,102,103,113,110,104,105,106,107,108,109,100,111,114','catch','error','create','agent','then','split','jane.miller','john.doe@xcally.com','Jane\x20Miller','info','Can\x27t\x20create\x20Users','../logger','admin','John\x20Doe','User','Users\x20have\x20been\x20created','agent\x20auto\x20generated','Administrator','user\x20auto\x20generated','jane.miller@xcally.com','john.doe'];(function(_0x2d6624,_0x2a4c48){const _0x149ac1=function(_0x26a95f){while(--_0x26a95f){_0x2d6624['push'](_0x2d6624['shift']());}};_0x149ac1(++_0x2a4c48);}(a879_0x2a4c,0xb4));const a879_0x149a=function(_0x2d6624,_0x2a4c48){_0x2d6624=_0x2d6624-0x0;let _0x149ac1=a879_0x2a4c[_0x2d6624];return _0x149ac1;};const _0x602498=a879_0x149a;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x602498('0x2'))(_0x602498('0xd')),users=[{'id':0x1,'role':_0x602498('0x3'),'name':_0x602498('0x3'),'password':_0x602498('0xc'),'fullname':_0x602498('0x8'),'email':'admin@xcally.com','internal':0x3e8,'description':_0x602498('0x9')},{'id':0x2,'role':'agent','name':_0x602498('0xb'),'email':_0x602498('0x16'),'password':'shuttle55','fullname':_0x602498('0x4'),'internal':0x3e9,'permissions':_0x602498('0xe')['split'](','),'description':_0x602498('0x7')},{'id':0x3,'role':_0x602498('0x12'),'name':_0x602498('0x15'),'email':_0x602498('0xa'),'password':'shuttle55','fullname':_0x602498('0x17'),'internal':0x3ea,'permissions':'101,102,103,113,110,104,105,106,107,108,109,100,111,114'[_0x602498('0x14')](','),'description':_0x602498('0x7')}];exports[_0x602498('0x11')]=function(){const _0xb1d6c2=_0x602498;return db[_0xb1d6c2('0x5')]['bulkCreate'](users,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0xb1d6c2('0x13')](function(){const _0x27003f=_0xb1d6c2;logger[_0x27003f('0x0')](_0x27003f('0x6'));})[_0xb1d6c2('0xf')](function(_0x26a95f){const _0x311271=_0xb1d6c2;logger[_0x311271('0x10')](_0x311271('0x1'),_0x26a95f);});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/variables.js b/server/config/seedDB/variables.js index 398ac81..6d358b5 100644 --- a/server/config/seedDB/variables.js +++ b/server/config/seedDB/variables.js @@ -1 +1 @@ -const a880_0x3f1f=['generic\x20variable\x20auto\x20generated','EMAIL','catch','CALLERID(num)','error','Variables\x20have\x20been\x20created','variable\x20useful\x20for\x20agent\x20popup\x20auto\x20generated','UNIQUEID','variable\x20name\x20of\x20the\x20caller\x20auto\x20generated','CHANNEL(language)','bulkCreate','../../mysqldb','../logger','VAR2','Variable','variable\x20auto\x20generated','CALLERID(dnid)','FIRSTNAME','Can\x27t\x20create\x20Variables','ORDERNUM','app','COUNTER','RESULT','ORDER','variable\x20number\x20of\x20the\x20caller\x20auto\x20generated','variable\x20current\x20call\x20unique\x20identifier\x20auto\x20generated','VAR1','RATE','CHOICE','variable\x20for\x20rate\x20call\x20auto\x20generated','VAR3','LASTNAME'];(function(_0x2cdb4b,_0x3f1f6a){const _0x383c29=function(_0x4b05fb){while(--_0x4b05fb){_0x2cdb4b['push'](_0x2cdb4b['shift']());}};_0x383c29(++_0x3f1f6a);}(a880_0x3f1f,0x17f));const a880_0x383c=function(_0x2cdb4b,_0x3f1f6a){_0x2cdb4b=_0x2cdb4b-0x0;let _0x383c29=a880_0x3f1f[_0x2cdb4b];return _0x383c29;};const _0x47e35b=a880_0x383c;'use strict';const db=require(_0x47e35b('0xc'))['db'],logger=require(_0x47e35b('0xd'))(_0x47e35b('0x15')),variables=[{'id':0x1,'name':_0x47e35b('0x1d'),'description':'variable\x20for\x20menu\x20auto\x20generated'},{'id':0x2,'name':_0x47e35b('0x14'),'description':'variable\x20for\x20order\x20auto\x20generated'},{'id':0x3,'name':'DBRESULT','description':'variable\x20for\x20db\x20query\x20result\x20auto\x20generated'},{'id':0x4,'name':_0x47e35b('0x1c'),'description':_0x47e35b('0x1e')},{'id':0x5,'name':_0x47e35b('0x11'),'description':'variable\x20dialed\x20number\x20identifier\x20auto\x20generated'},{'id':0x6,'name':'CALLERID(name)','description':_0x47e35b('0x9')},{'id':0x7,'name':_0x47e35b('0x4'),'description':_0x47e35b('0x19')},{'id':0x8,'name':_0x47e35b('0xa'),'description':'variable\x20select\x20a\x20natural\x20language\x20file\x20when\x20available\x20auto\x20generated'},{'id':0x9,'name':_0x47e35b('0x16'),'description':_0x47e35b('0x10')},{'id':0xa,'name':_0x47e35b('0x2'),'description':'variable\x20auto\x20generated'},{'id':0xb,'name':'EXTRAVAR','description':_0x47e35b('0x7')},{'id':0xc,'name':_0x47e35b('0x12'),'description':'variable\x20auto\x20generated'},{'id':0xd,'name':_0x47e35b('0x0'),'description':_0x47e35b('0x10')},{'id':0xe,'name':'INPUT','description':_0x47e35b('0x10')},{'id':0xf,'name':'OPTION','description':_0x47e35b('0x10')},{'id':0x10,'name':_0x47e35b('0x18'),'description':_0x47e35b('0x10')},{'id':0x11,'name':'PHONE','description':_0x47e35b('0x10')},{'id':0x12,'name':_0x47e35b('0x17'),'description':'variable\x20auto\x20generated'},{'id':0x13,'name':_0x47e35b('0x8'),'description':_0x47e35b('0x1a')},{'id':0x14,'name':_0x47e35b('0x1b'),'description':_0x47e35b('0x1')},{'id':0x15,'name':_0x47e35b('0xe'),'description':_0x47e35b('0x1')},{'id':0x16,'name':_0x47e35b('0x1f'),'description':_0x47e35b('0x1')}];exports['create']=function(){const _0x5d95b9=_0x47e35b;return db[_0x5d95b9('0xf')][_0x5d95b9('0xb')](variables,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0xc9b9c6=_0x5d95b9;logger['info'](_0xc9b9c6('0x6'));})[_0x5d95b9('0x3')](function(){const _0x5b2921=_0x5d95b9;logger[_0x5b2921('0x5')](_0x5b2921('0x13'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/voiceContexts.js b/server/config/seedDB/voiceContexts.js index 1122b49..545b9a1 100644 --- a/server/config/seedDB/voiceContexts.js +++ b/server/config/seedDB/voiceContexts.js @@ -1 +1 @@ -const a881_0x57f4=['from-voicemail','outbound-fax','xcally-mixmonitor-context','inbound-fax','default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','\x20have\x20been\x20created','Can\x27t\x20create\x20','info','from-sip','Context\x20','../../mysqldb','../logger','error','VoiceContext','findOrCreate','from-voip-provider','\x20context','name'];(function(_0x49e373,_0x57f45f){const _0x44e27d=function(_0x2c5343){while(--_0x2c5343){_0x49e373['push'](_0x49e373['shift']());}};_0x44e27d(++_0x57f45f);}(a881_0x57f4,0x10b));const a881_0x44e2=function(_0x49e373,_0x57f45f){_0x49e373=_0x49e373-0x0;let _0x44e27d=a881_0x57f4[_0x49e373];return _0x44e27d;};const _0xadd4a=a881_0x44e2;'use strict';const db=require(_0xadd4a('0xd'))['db'],logger=require(_0xadd4a('0xe'))('app'),voiceContexts=[{'name':_0xadd4a('0xb'),'description':'default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','defaultEntry':!![]},{'name':_0xadd4a('0x0'),'description':_0xadd4a('0x7'),'defaultEntry':!![]},{'name':_0xadd4a('0x6'),'description':_0xadd4a('0x7'),'defaultEntry':!![]},{'name':_0xadd4a('0x4'),'description':_0xadd4a('0x7'),'defaultEntry':!![]},{'name':_0xadd4a('0x3'),'description':'default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','defaultEntry':!![]},{'name':_0xadd4a('0x5'),'description':'default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','defaultEntry':!![]}];async function create(){const _0x14d304=_0xadd4a;for(const _0x2c5343 of voiceContexts){try{const [,_0x5478c9]=await db[_0x14d304('0x10')][_0x14d304('0x11')]({'where':{'name':_0x2c5343[_0x14d304('0x2')]},'defaults':_0x2c5343});_0x5478c9&&logger[_0x14d304('0xa')](_0x14d304('0xc')+_0x2c5343['name']+_0x14d304('0x8'));}catch(_0x186841){logger[_0x14d304('0xf')](_0x14d304('0x9')+_0x2c5343[_0x14d304('0x2')]+_0x14d304('0x1'),_0x186841);}}}module['exports']={'create':create}; \ No newline at end of file +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 diff --git a/server/config/seedDB/voiceExtensions.js b/server/config/seedDB/voiceExtensions.js index 779edca..42559fc 100644 --- a/server/config/seedDB/voiceExtensions.js +++ b/server/config/seedDB/voiceExtensions.js @@ -1 +1 @@ -const a882_0x3232=['defaults','createAlways','VoiceExtension','CDR(type)=outbound-fax','$[\x22${XMD-QUEUE}\x22\x20!=\x20\x22NONE\x22\x20]?QUEUE(${XMD-QUEUE})','${XMD-DIALCHANNEL},${XMD-DIALTIMEOUT},${XMD-DIALOPTIONS},${XMD-DIALURL}','FAXOPT(ecm)=${XMF-ECM}','demo-congrats','agi://127.0.0.1/square,Orders','$[\x22${XMD-AMD}\x22\x20!=\x20\x22NONE\x22\x20]?5:11','echo\x20test\x20demo\x20auto\x20generated','destroy','${XMD-AMDINITIALSILENCE},${XMD-AMDGREETING},${XMD-AMDAFTERGREETINGSILENCE},${XMD-AMDTOTALANALYSISTIME},${XMD-AMDMINWORDLENGTH},${XMD-AMDBETWEENWORDSSILENCE},${XMD-AMDMAXIMUMNUMBEROFWORDS},${XMD-AMDSILENCETHRESHOLD},${XMD-AMDMAXIMUMWORDLENGTH}','MONITOR_OPTIONS=ab','demo-echodone','Echo','_[x][c][a][l][l][y][Q][u][e][u][e][E][x][t][e][n][s][i][o][n].','agi://127.0.0.1/square,CSI','../logger','custom','Return','appdata','Can\x27t\x20create\x20Voice\x20Extensions','${XCALLY_MIXMONITOR_UNIQUEID}.${XCALLY_MIXMONITOR_FORMAT},ab','Hangup','CDR(type)=outbound','6669','demo-echotest','FAXOPT(localstationid)=${XMF-LOCALSTATIONID}','forward\x20to\x20Sales\x20queue\x20auto\x20generated','exten','CDR(type)=internal','from-voip-provider','demo\x20outbound\x20calls\x20auto\x20generated','forward\x20to\x20Survey\x20IVR\x20auto\x20generated','$[\x22${AMDSTATUS}\x22\x20==\x20\x22HUMAN\x22\x20]?11:9','$[\x22${XMD-AGI}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGI})','bulkCreate','priority','inbound','forward\x20to\x20Orders\x20IVR\x20auto\x20generated','Dial','outbound','internal','FAXOPT(modem)=${XMF-MODEM}','AGI','agi://127.0.0.1/square,AutoAttendant','forward\x20to\x20Support\x20queue\x20auto\x20generated','$[\x22${AMDSTATUS}\x22\x20==\x20\x22MACHINE\x22\x20]?14:11','_XCALLY_MIXMONITOR_FORMAT=wav','MixMonitor','fax\x20extensions\x20auto\x20generated','CALLERID(all)=${XMD-CALLERID}','agi','_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','SendFax','Set','system','xcally-mixmonitor-context','Answer','6667','Wait','xcally-motion-dialer','catch','catch\x20failed\x20event\x20auto\x20generated','XCALLY-MOTION-PROGRESS=0','CDR(type)=inbound','${XMF-PATH},d','FAXOPT(maxrate)=${XMF-MAXRATE}','Background','CDR(type)=dialer','6668','error','Support,xX,,,300,,,,,','forward\x20to\x20CSI\x20IVR\x20auto\x20generated','create','length','GotoIf','sequelize','6000','silence/1','from-sip','Queue','then','Sales,xX,,,300,,,,,','outboundrouteid=','Voice\x20Extensions\x20have\x20been\x20created','description','6670','dialer\x20extensions\x20auto\x20generated','XCALLY-MOTION-ANSWER=0','FAXOPT(t38timeout)=${XMF-T38TIMEOUT}','xcally-motion-fax','FAXOPT(minrate)=${XMF-MINRATE}','outboundrouteid','Playback','$[\x22${XMD-AGIAFTER}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGIAFTER})','catch\x20hangup\x20event\x20auto\x20generated','type','Execif','AMD','info'];(function(_0x5d3e96,_0x323221){const _0x416b25=function(_0x184d05){while(--_0x184d05){_0x5d3e96['push'](_0x5d3e96['shift']());}};_0x416b25(++_0x323221);}(a882_0x3232,0x88));const a882_0x416b=function(_0x5d3e96,_0x323221){_0x5d3e96=_0x5d3e96-0x0;let _0x416b25=a882_0x3232[_0x5d3e96];return _0x416b25;};const _0xd266d7=a882_0x416b;'use strict';const _=require('lodash'),db=require('../../mysqldb')['db'],{Op}=require(_0xd266d7('0x2c')),logger=require(_0xd266d7('0x56'))('app'),applications={0x258:[{'app':_0xd266d7('0x16'),'appdata':_0xd266d7('0x63')},{'app':_0xd266d7('0x19')},{'app':_0xd266d7('0x3d'),'appdata':_0xd266d7('0x5f'),'isApp':!![]},{'app':_0xd266d7('0x53'),'isApp':!![]},{'app':'Playback','appdata':_0xd266d7('0x52'),'isApp':!![]},{'app':'Hangup'}],0x1770:[{'app':'Set','appdata':_0xd266d7('0x63')},{'app':_0xd266d7('0x19')},{'app':_0xd266d7('0x30'),'appdata':_0xd266d7('0x27'),'appType':'queue','isApp':!![]},{'app':_0xd266d7('0x5c')}],0x1771:[{'app':_0xd266d7('0x16'),'appdata':_0xd266d7('0x63')},{'app':_0xd266d7('0x19')},{'app':_0xd266d7('0x30'),'appdata':_0xd266d7('0x32'),'appType':'queue','isApp':!![]},{'app':'Hangup'}],0x1a0a:[{'app':_0xd266d7('0x16'),'appdata':'CDR(type)=internal'},{'app':_0xd266d7('0xb'),'appdata':_0xd266d7('0xc'),'appType':_0xd266d7('0x13'),'isApp':!![]},{'app':_0xd266d7('0x5c')}],0x1a0b:[{'app':'Set','appdata':'CDR(type)=internal'},{'app':_0xd266d7('0xb'),'appdata':_0xd266d7('0x4c'),'appType':_0xd266d7('0x13'),'isApp':!![]},{'app':_0xd266d7('0x5c')}],0x1a0c:[{'app':'Set','appdata':_0xd266d7('0x63')},{'app':_0xd266d7('0xb'),'appdata':_0xd266d7('0x55'),'appType':_0xd266d7('0x13'),'isApp':!![]},{'app':_0xd266d7('0x5c')}],0x1a0d:[{'app':_0xd266d7('0x16'),'appdata':_0xd266d7('0x63')},{'app':_0xd266d7('0xb'),'appdata':'agi://127.0.0.1/square,Survey','appType':_0xd266d7('0x13'),'isApp':!![]},{'app':_0xd266d7('0x5c')}],0x1a0e:[{'app':_0xd266d7('0x16'),'appdata':_0xd266d7('0x63')},{'app':_0xd266d7('0xb'),'appdata':'agi://127.0.0.1/square,AgentManagement','appType':_0xd266d7('0x13'),'isApp':!![]},{'app':_0xd266d7('0x5c')}],'xcally-motion-dialer':[{'app':_0xd266d7('0x16'),'appdata':_0xd266d7('0x24')},{'app':_0xd266d7('0x16'),'appdata':_0xd266d7('0x12')},{'app':_0xd266d7('0x2b'),'appdata':_0xd266d7('0x4d')},{'app':_0xd266d7('0x19'),'appdata':''},{'app':_0xd266d7('0x23'),'appdata':_0xd266d7('0x2e')},{'app':_0xd266d7('0x42'),'appdata':_0xd266d7('0x50')},{'app':_0xd266d7('0x2b'),'appdata':_0xd266d7('0x1')},{'app':'GotoIf','appdata':'$[\x22${AMDSTATUS}\x22\x20==\x20\x22NOTSURE\x22\x20]?11:10'},{'app':'GotoIf','appdata':_0xd266d7('0xe')},{'app':_0xd266d7('0x41'),'appdata':_0xd266d7('0x2')},{'app':_0xd266d7('0x41'),'appdata':_0xd266d7('0x48')},{'app':_0xd266d7('0x41'),'appdata':_0xd266d7('0x3e')},{'app':_0xd266d7('0x5c')}],'xcally-motion-fax':[{'app':_0xd266d7('0x16'),'appdata':_0xd266d7('0x47')},{'app':_0xd266d7('0x1b'),'appdata':'6'},{'app':'Set','appdata':_0xd266d7('0x4a')},{'app':_0xd266d7('0x16'),'appdata':'FAXOPT(headerinfo)=${XMF-HEADERINFO}'},{'app':_0xd266d7('0x16'),'appdata':_0xd266d7('0x60')},{'app':'Set','appdata':_0xd266d7('0x22')},{'app':_0xd266d7('0x16'),'appdata':_0xd266d7('0x3b')},{'app':_0xd266d7('0x16'),'appdata':_0xd266d7('0xa')},{'app':_0xd266d7('0x16'),'appdata':_0xd266d7('0x39')},{'app':_0xd266d7('0x15'),'appdata':_0xd266d7('0x21')}],'xcally-motion-preview':[{'app':'Set','appdata':_0xd266d7('0x24')},{'app':_0xd266d7('0x16'),'appdata':_0xd266d7('0x12')},{'app':_0xd266d7('0x41'),'appdata':_0xd266d7('0x2')},{'app':_0xd266d7('0x7'),'appdata':_0xd266d7('0x49')},{'app':_0xd266d7('0x41'),'appdata':'$[\x22${XMD-AGIAFTER}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGIAFTER})'},{'app':'Hangup'}],'_.':[{'app':'Set','appdata':_0xd266d7('0x5d')},{'app':'Set','appdata':_0xd266d7('0x38')},{'app':_0xd266d7('0x16'),'appdata':_0xd266d7('0x1f')},{'app':_0xd266d7('0x16'),'appdata':_0xd266d7('0x51')},{'app':_0xd266d7('0x16'),'outboundrouteid':!![]},{'app':_0xd266d7('0x16'),'appdata':_0xd266d7('0x14')},{'app':_0xd266d7('0x16'),'appdata':_0xd266d7('0xf')},{'app':_0xd266d7('0x3d'),'appdata':_0xd266d7('0x4b'),'appType':_0xd266d7('0x57'),'isApp':!![]},{'app':_0xd266d7('0x5c')}],'_X.':[{'app':_0xd266d7('0x16'),'appdata':_0xd266d7('0x20')},{'app':'Answer'},{'app':_0xd266d7('0x3d'),'appdata':_0xd266d7('0x4b'),'isApp':!![]},{'app':_0xd266d7('0x5c')}],'h':[{'app':'Hangup'}],'failed':[{'app':_0xd266d7('0x5c')}]},voiceExtensions=[{'type':_0xd266d7('0x9'),'context':_0xd266d7('0x2f'),'exten':'600','description':_0xd266d7('0x4e')},{'type':_0xd266d7('0x9'),'context':'from-sip','exten':_0xd266d7('0x2d'),'description':_0xd266d7('0xd')},{'type':'internal','context':'from-sip','exten':'6001','description':_0xd266d7('0x61')},{'type':'internal','context':'from-sip','exten':'6666','description':'forward\x20to\x20Auto\x20Attendant\x20IVR\x20auto\x20generated'},{'type':'internal','context':_0xd266d7('0x2f'),'exten':_0xd266d7('0x1a'),'description':_0xd266d7('0x6')},{'type':_0xd266d7('0x9'),'context':_0xd266d7('0x2f'),'exten':_0xd266d7('0x25'),'description':_0xd266d7('0x28')},{'type':_0xd266d7('0x9'),'context':'from-sip','exten':_0xd266d7('0x5e'),'description':_0xd266d7('0x0')},{'type':_0xd266d7('0x9'),'context':'from-sip','exten':_0xd266d7('0x36'),'description':'forward\x20to\x20Agent\x20Management\x20IVR\x20auto\x20generated'},{'type':'system','context':_0xd266d7('0x2f'),'exten':_0xd266d7('0x1c'),'description':_0xd266d7('0x37')},{'type':_0xd266d7('0x17'),'context':_0xd266d7('0x2f'),'exten':_0xd266d7('0x3a'),'description':_0xd266d7('0x11')},{'type':_0xd266d7('0x17'),'context':'from-sip','exten':'xcally-motion-preview','description':_0xd266d7('0x37')},{'type':_0xd266d7('0x8'),'context':_0xd266d7('0x2f'),'exten':'_.','description':_0xd266d7('0x65')},{'type':_0xd266d7('0x5'),'context':_0xd266d7('0x64'),'exten':'_X.','description':'catch\x20all\x20inbound\x20calls\x20auto\x20generated'},{'type':_0xd266d7('0x17'),'context':'from-sip','exten':'h','description':_0xd266d7('0x3f')},{'type':_0xd266d7('0x17'),'context':_0xd266d7('0x2f'),'exten':'failed','description':_0xd266d7('0x1e')}],applicationsAlways={'s':[{'app':_0xd266d7('0x10'),'appdata':_0xd266d7('0x5b')},{'app':_0xd266d7('0x58')}],'_[x][c][a][l][l][y][Q][u][e][u][e][E][x][t][e][n][s][i][o][n].':[{'app':'Progress'},{'app':_0xd266d7('0x30'),'appdata':'${EXTEN:20},xX'}]},voiceExtensionsAlways=[{'type':_0xd266d7('0x17'),'context':_0xd266d7('0x18'),'exten':'s'},{'type':'system','context':_0xd266d7('0x2f'),'exten':_0xd266d7('0x54')}];function createExtensions(_0x184d05,_0x5aafd0){const _0x498be0=_0xd266d7;return db[_0x498be0('0x46')][_0x498be0('0x3')](_0x184d05,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x498be0('0x31')](function(_0x170465){const _0x5c346e=_0x498be0;for(let _0x27a3ad=0x0;_0x27a3ad<_0x170465['length'];_0x27a3ad+=0x1){if(_0x5aafd0[_0x170465[_0x27a3ad][_0x5c346e('0x62')]])for(let _0x4657ee=0x0;_0x4657ee<_0x5aafd0[_0x170465[_0x27a3ad]['exten']][_0x5c346e('0x2a')];_0x4657ee+=0x1){_0x5aafd0[_0x170465[_0x27a3ad]['exten']][_0x4657ee][_0x5c346e('0x3c')]&&(_0x5aafd0[_0x170465[_0x27a3ad][_0x5c346e('0x62')]][_0x4657ee][_0x5c346e('0x59')]=_0x5c346e('0x33')+_0x170465[_0x27a3ad]['id'],delete _0x5aafd0[_0x170465[_0x27a3ad][_0x5c346e('0x62')]][_0x4657ee]['outboundrouteid']),_0x5aafd0[_0x170465[_0x27a3ad]['exten']][_0x4657ee]=_[_0x5c346e('0x44')](_0x5aafd0[_0x170465[_0x27a3ad][_0x5c346e('0x62')]][_0x4657ee],{'isApp':![],'appType':_0x5c346e('0x57'),'type':_0x170465[_0x27a3ad][_0x5c346e('0x40')],'context':_0x170465[_0x27a3ad]['context'],'exten':_0x170465[_0x27a3ad][_0x5c346e('0x62')],'priority':parseInt(_0x170465[_0x27a3ad][_0x5c346e('0x4')],0xa)+0x1+_0x4657ee,'description':_0x170465[_0x27a3ad][_0x5c346e('0x35')],'VoiceExtensionId':_0x170465[_0x27a3ad]['id']}),db[_0x5c346e('0x46')][_0x5c346e('0x29')](_0x5aafd0[_0x170465[_0x27a3ad][_0x5c346e('0x62')]][_0x4657ee]);}}})[_0x498be0('0x31')](function(){const _0x1ba3e0=_0x498be0;logger[_0x1ba3e0('0x43')](_0x1ba3e0('0x34'));})[_0x498be0('0x1d')](function(_0x56363c){const _0x379da6=_0x498be0;logger[_0x379da6('0x26')](_0x379da6('0x5a'),_0x56363c);});}exports[_0xd266d7('0x29')]=function(){createExtensions(voiceExtensions,applications);},exports[_0xd266d7('0x45')]=function(){const _0x364985=_0xd266d7;return db[_0x364985('0x46')][_0x364985('0x4f')]({'where':{[Op['or']]:voiceExtensionsAlways}})['then'](function(){createExtensions(voiceExtensionsAlways,applicationsAlways);})[_0x364985('0x1d')](function(_0x5e1912){logger['error']('Can\x27t\x20create\x20Voice\x20Extensions',_0x5e1912);});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/voiceMusicOnHold.js b/server/config/seedDB/voiceMusicOnHold.js index 931c1fb..a0c1abe 100644 --- a/server/config/seedDB/voiceMusicOnHold.js +++ b/server/config/seedDB/voiceMusicOnHold.js @@ -1 +1 @@ -const a883_0x4156=['/var/opt/motion2/server/files/moh/wait/','catch','default\x20moh\x20auto\x20generated','../logger','bulkCreate','then','Can\x27t\x20create\x20Music\x20on\x20hold','info','noice','/var/lib/asterisk/moh/','VoiceMusicOnHold','error','files','wait','wait\x20moh\x20auto\x20generated','random','wav','app','create'];(function(_0x1e5082,_0x41560c){const _0x1be5d0=function(_0x5591f1){while(--_0x5591f1){_0x1e5082['push'](_0x1e5082['shift']());}};_0x1be5d0(++_0x41560c);}(a883_0x4156,0x1a8));const a883_0x1be5=function(_0x1e5082,_0x41560c){_0x1e5082=_0x1e5082-0x0;let _0x1be5d0=a883_0x4156[_0x1e5082];return _0x1be5d0;};const _0x54b5f8=a883_0x1be5;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x54b5f8('0x10'))(_0x54b5f8('0xb')),voiceMusicOnHold=[{'id':0x1,'name':'default','directory':_0x54b5f8('0x3'),'mode':_0x54b5f8('0x6'),'sort':_0x54b5f8('0x9'),'format':_0x54b5f8('0xa'),'defaultEntry':!![],'description':_0x54b5f8('0xf')},{'id':0x2,'name':_0x54b5f8('0x2'),'directory':'/var/opt/motion2/server/files/moh/noice/','mode':_0x54b5f8('0x6'),'sort':_0x54b5f8('0x9'),'format':_0x54b5f8('0xa'),'defaultEntry':!![],'description':'noice\x20moh\x20auto\x20generated'},{'id':0x3,'name':_0x54b5f8('0x7'),'directory':_0x54b5f8('0xd'),'mode':_0x54b5f8('0x6'),'sort':'random','format':'wav','defaultEntry':!![],'description':_0x54b5f8('0x8')}];exports[_0x54b5f8('0xc')]=function(){const _0x2316ff=_0x54b5f8;return db[_0x2316ff('0x4')][_0x2316ff('0x11')](voiceMusicOnHold,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x2316ff('0x12')](function(){const _0x343661=_0x2316ff;logger[_0x343661('0x1')]('Music\x20on\x20hold\x20have\x20been\x20created');})[_0x2316ff('0xe')](function(){const _0x3306c9=_0x2316ff;logger[_0x3306c9('0x5')](_0x3306c9('0x0'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/voiceQueues.js b/server/config/seedDB/voiceQueues.js index ae0f5d2..d65dd12 100644 --- a/server/config/seedDB/voiceQueues.js +++ b/server/config/seedDB/voiceQueues.js @@ -1 +1 @@ -const a884_0x2e54=['addBlackLists','Support','noice','../../mysqldb','Voice\x20Queues\x20have\x20been\x20created','bulkCreate','error','rrmemory','app','CallbackCampaign','addAgents','Telemarketing','wait','outbound','Survey','inbound','Can\x27t\x20create\x20Voice\x20Queues','inbound\x20voice\x20queue\x20auto\x20generated','addLists','type','outbound\x20voice\x20queue\x20campaign\x20auto\x20generated','VoiceQueue','addTeams','findAll'];(function(_0x20015b,_0x2e542d){const _0x2a79f1=function(_0x2e1a44){while(--_0x2e1a44){_0x20015b['push'](_0x20015b['shift']());}};_0x2a79f1(++_0x2e542d);}(a884_0x2e54,0x116));const a884_0x2a79=function(_0x20015b,_0x2e542d){_0x20015b=_0x20015b-0x0;let _0x2a79f1=a884_0x2e54[_0x20015b];return _0x2a79f1;};const _0x3cd8df=a884_0x2a79;'use strict';const db=require(_0x3cd8df('0xd'))['db'],logger=require('../logger')(_0x3cd8df('0x12')),voiceQueues=[{'id':0x1,'type':'inbound','name':_0x3cd8df('0xb'),'strategy':'ringall','musiconhold':_0x3cd8df('0x16'),'description':_0x3cd8df('0x3')},{'id':0x2,'type':_0x3cd8df('0x1'),'name':'Sales','strategy':'ringall','musiconhold':_0x3cd8df('0x16'),'description':_0x3cd8df('0x3')},{'id':0x3,'type':_0x3cd8df('0x17'),'name':_0x3cd8df('0x0'),'strategy':_0x3cd8df('0x11'),'TrunkId':0x1,'IntervalId':0x1,'musiconhold':_0x3cd8df('0xc'),'description':_0x3cd8df('0x6')},{'id':0x4,'type':_0x3cd8df('0x17'),'name':_0x3cd8df('0x15'),'strategy':_0x3cd8df('0x11'),'TrunkId':0x1,'IntervalId':0x1,'musiconhold':_0x3cd8df('0xc'),'description':'outbound\x20voice\x20queue\x20campaign\x20auto\x20generated'},{'id':0x5,'type':_0x3cd8df('0x17'),'name':_0x3cd8df('0x13'),'strategy':'rrmemory','TrunkId':0x1,'IntervalId':0x1,'musiconhold':_0x3cd8df('0xc'),'description':'outbound\x20voice\x20queue\x20campaign\x20auto\x20generated'}];async function create(){const _0x107eef=_0x3cd8df;try{await db[_0x107eef('0x7')][_0x107eef('0xf')](voiceQueues,{'ignoreDuplicates':!![],'individualHooks':!![]});const _0x2e1a44=await db[_0x107eef('0x7')][_0x107eef('0x9')]();for(const _0x37c7ea of _0x2e1a44){await _0x37c7ea[_0x107eef('0x14')]([0x2,0x3],{'ignoreDuplicates':!![],'individualHooks':!![]}),await _0x37c7ea[_0x107eef('0x8')]([0x1],{'ignoreDuplicates':!![],'individualHooks':!![]}),_0x37c7ea[_0x107eef('0x5')]===_0x107eef('0x17')&&_0x37c7ea['id']!==0x5&&(await _0x37c7ea[_0x107eef('0x4')]([0x1],{'ignoreDuplicates':!![],'individualHooks':!![]}),await _0x37c7ea[_0x107eef('0xa')]([0x2],{'ignoreDuplicates':!![],'individualHooks':!![]})),_0x37c7ea['id']===0x5&&await _0x37c7ea[_0x107eef('0x4')]([0x3],{'ignoreDuplicates':!![],'individualHooks':!![]});}logger['info'](_0x107eef('0xe'));}catch(_0x29406f){logger[_0x107eef('0x10')](_0x107eef('0x2'),_0x29406f);throw _0x29406f;}}module['exports']={'create':create}; \ No newline at end of file +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 diff --git a/server/config/seedUsers.js b/server/config/seedUsers.js index 2b0c47a..975bc4a 100644 --- a/server/config/seedUsers.js +++ b/server/config/seedUsers.js @@ -1 +1 @@ -const a885_0x560e=['%s%s@xcally.com','push','udp','all','ulaw','agent','util','bulkCreate','wss','%s%s','log','\x22%s\x22\x20<%s>','add\x20user','catch','../mysqldb','User','yes','then','friend','format'];(function(_0x79ad6e,_0x560ecd){const _0x4b6f0c=function(_0x199292){while(--_0x199292){_0x79ad6e['push'](_0x79ad6e['shift']());}};_0x4b6f0c(++_0x560ecd);}(a885_0x560e,0x1e6));const a885_0x4b6f=function(_0x79ad6e,_0x560ecd){_0x79ad6e=_0x79ad6e-0x0;let _0x4b6f0c=a885_0x560e[_0x79ad6e];return _0x4b6f0c;};const _0x225fcd=a885_0x4b6f;'use strict';const util=require(_0x225fcd('0x0')),db=require(_0x225fcd('0x8'))['db'],users=[];for(let i=0x1;i<=0xc8;i+=0x1){users[_0x225fcd('0xf')]({'name':util['format'](_0x225fcd('0x3'),_0x225fcd('0x13'),i),'fullname':util[_0x225fcd('0xd')](_0x225fcd('0x3'),_0x225fcd('0x13'),i),'email':util[_0x225fcd('0xd')](_0x225fcd('0xe'),'agent',i),'role':_0x225fcd('0x13'),'password':'password','internal':0xfa0+i,'type':_0x225fcd('0xc'),'transport':[_0x225fcd('0x10'),'ws',_0x225fcd('0x2')],'disallow':[_0x225fcd('0x11')],'allow':[_0x225fcd('0x12')],'defaultuser':util[_0x225fcd('0xd')](_0x225fcd('0x3'),'agent',i),'encryption':_0x225fcd('0xa'),'avpf':_0x225fcd('0xa'),'force_avp':'yes','icesupport':_0x225fcd('0xa'),'dtlsenable':_0x225fcd('0xa'),'dtlsverify':'no','dtlscertfile':'/etc/pki/tls/certs/motion.crt','dtlsprivatekey':'/etc/pki/tls/private/motion.key','dtlssetup':'actpass','callerid':util[_0x225fcd('0xd')](_0x225fcd('0x5'),util['format']('%s%s',_0x225fcd('0x13'),i),0xfa0+i)});}db[_0x225fcd('0x9')][_0x225fcd('0x1')](users)[_0x225fcd('0xb')](function(){const _0x217a96=_0x225fcd;console[_0x217a96('0x4')](_0x217a96('0x6'));})[_0x225fcd('0x7')](function(_0x199292){const _0x5c7e19=_0x225fcd;console[_0x5c7e19('0x4')](_0x199292);}); \ No newline at end of file +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 diff --git a/server/config/socketio.js b/server/config/socketio.js index 9f63aa9..817448c 100644 --- a/server/config/socketio.js +++ b/server/config/socketio.js @@ -1 +1 @@ -const a886_0x51dd=['OpenchannelInteractions','VoiceQueue','user_has_whatsapp_interactions:remove','UserProfileResource','trunk:%s','user_has_fax_interactions:remove','MailInteraction','leave','user:%s','autoAssociation','MailQueue','join','getWhatsappQueues','%s:queue:%s','OpenchannelInteraction','WhatsappQueues','MailQueues','chat','getMailQueues','role','log','SmsQueue','User','SmsQueues','telephone:%s','Trunk','connectedAt','IvrCampaigns','OpenchannelQueues','getChatQueues','WhatsappQueue','then','voice:outbound','user_has_chat_interactions:remove','FaxQueue','ChatQueue','getVoiceQueues','request','length','user_has_mail_interactions:remove','format','ChatQueues','findOne','FaxInteraction','type','push','openchannel','MailInteractions','getOpenchannelQueues','connection','Trunks','agent','campaign:%s:%s','query','removeChatInteractions','map','SmsInteraction','removeOpenchannelInteractions','name','removeFaxInteractions','userProfileId','setMaxListeners','include','CONNECTED','OpenchannelQueue','FaxInteractions','sms','findAll','VoiceQueues','voice:inbound','getSmsQueues','lodash','WhatsappInteractions','FaxQueues','Campaign','handshake','where','Telephones','WhatsappInteraction','voice','emit','whatsapp','Agents','remotePort','ChatInteraction','SmsInteractions','UserProfileSection','telephone','address','remoteAddress','disconnect','fax','resourceId','all','mail'];(function(_0x39f1fa,_0x51dd35){const _0x17d818=function(_0x2a0d7f){while(--_0x2a0d7f){_0x39f1fa['push'](_0x39f1fa['shift']());}};_0x17d818(++_0x51dd35);}(a886_0x51dd,0x128));const a886_0x17d8=function(_0x39f1fa,_0x51dd35){_0x39f1fa=_0x39f1fa-0x0;let _0x17d818=a886_0x51dd[_0x39f1fa];return _0x17d818;};const _0x39f1ba=a886_0x17d8;'use strict';const _=require(_0x39f1ba('0x3c')),util=require('util'),db=require('../mysqldb')['db'],queryQueues={'attributes':['id','name'],'include':[{'as':_0x39f1ba('0x47'),'model':db[_0x39f1ba('0xb')],'attributes':['id',_0x39f1ba('0x2f'),_0x39f1ba('0x8')],'raw':!![],'where':{'role':_0x39f1ba('0x28')},'required':![]}]},queryTelephones={'raw':!![],'attributes':['id','name'],'where':{'role':_0x39f1ba('0x4c')}},queryTrunks={'raw':!![],'attributes':['id',_0x39f1ba('0x2f')]},queryAgents={'raw':!![],'attributes':['id',_0x39f1ba('0x2f')],'where':{'role':_0x39f1ba('0x28')}},queryCampaigns={'raw':!![],'attributes':['id',_0x39f1ba('0x2f'),_0x39f1ba('0x21')],'where':{'type':'ivr'}};function getAssociatedResources(_0x2a0d7f,_0x228087,_0xea3516){const _0x3d06bf=_0x39f1ba;return db[_0x3d06bf('0x4b')][_0x3d06bf('0x1f')]({'where':{'name':_0x2a0d7f,'userProfileId':_0x228087},'raw':!![]})[_0x3d06bf('0x14')](function(_0x402fc5){const _0x4ab678=_0x3d06bf;if(_0x402fc5){if(_0x402fc5[_0x4ab678('0x5d')]){let _0x1e126c;switch(_0x2a0d7f){case _0x4ab678('0x39'):case _0x4ab678('0x1e'):case'FaxQueues':case _0x4ab678('0xc'):case _0x4ab678('0x5'):case _0x4ab678('0x11'):case _0x4ab678('0x4'):_0x1e126c=queryQueues;break;case _0x4ab678('0x42'):_0x1e126c=queryTelephones;break;case _0x4ab678('0x27'):_0x1e126c=queryTrunks;break;case _0x4ab678('0x10'):_0x1e126c=queryCampaigns;break;default:break;}return _0x1e126c?db[_0xea3516][_0x4ab678('0x38')](_0x1e126c):_0x1e126c;}else return db[_0x4ab678('0x57')][_0x4ab678('0x38')]({'attributes':[_0x4ab678('0x51')],'where':{'sectionId':_0x402fc5['id']},'raw':!![]})[_0x4ab678('0x14')](function(_0x2ce774){const _0x14670e=_0x4ab678;if(_0x2ce774){const _0x10f224={'where':{'id':_[_0x14670e('0x2c')](_0x2ce774,_0x14670e('0x51'))},'raw':!![]};switch(_0xea3516){case _0x14670e('0xb'):_0x10f224['where']['role']=_0x14670e('0x4c');break;case'Campaign':_0x10f224[_0x14670e('0x41')][_0x14670e('0x21')]='ivr';break;}return db[_0xea3516][_0x14670e('0x38')](_0x10f224);}else return[];});}else return[];})[_0x3d06bf('0x14')](function(_0x3c38bc){return _0x3c38bc;});}function joinOrLeaveQueues(_0x489a5c,_0x263211,_0x552dd8,_0x360c92){const _0x4df671=_0x39f1ba;_0x489a5c[_0x263211](util[_0x4df671('0x1d')](_0x4df671('0x2'),_0x552dd8,_0x360c92[_0x4df671('0x2f')]));if(_0x360c92[_0x4df671('0x47')])for(let _0x54d6a0=0x0;_0x54d6a0<_0x360c92['Agents'][_0x4df671('0x1b')];_0x54d6a0+=0x1){_0x489a5c[_0x263211](util[_0x4df671('0x1d')]('user:%s',_0x360c92['Agents'][_0x54d6a0][_0x4df671('0x2f')]));}}function joinOrLeave(_0x4802bb,_0x50a65d,_0x1504fa){const _0x26bce3=_0x39f1ba;let _0x5ce0ff;_0x4802bb[_0x26bce3('0x40')]['query']['id']&&db[_0x26bce3('0xb')][_0x26bce3('0x1f')]({'attributes':['id',_0x26bce3('0x2f'),'role','userProfileId'],'where':{'id':_0x4802bb[_0x26bce3('0x40')][_0x26bce3('0x2a')]['id']},'include':[{'model':db[_0x26bce3('0x49')],'as':'ChatInteractions','attributes':['id'],'raw':!![]},{'model':db[_0x26bce3('0x5a')],'as':_0x26bce3('0x24'),'attributes':['id'],'raw':!![]},{'model':db[_0x26bce3('0x20')],'as':_0x26bce3('0x36'),'attributes':['id'],'raw':!![]},{'model':db[_0x26bce3('0x2d')],'as':'SmsInteractions','attributes':['id'],'raw':!![]},{'model':db[_0x26bce3('0x3')],'as':_0x26bce3('0x54'),'attributes':['id'],'raw':!![]},{'model':db[_0x26bce3('0x43')],'as':_0x26bce3('0x3d'),'attributes':['id'],'raw':!![]}]})[_0x26bce3('0x14')](function(_0x2b4173){const _0x21146c=_0x26bce3;if(_0x2b4173){_0x5ce0ff=_0x2b4173,_0x4802bb[_0x50a65d](util[_0x21146c('0x1d')](_0x21146c('0x5c'),_0x2b4173[_0x21146c('0x2f')]));const _0x449b55=[];switch(_0x2b4173[_0x21146c('0x8')]){case'admin':_0x4802bb[_0x50a65d](_0x21146c('0x3a')),_0x4802bb[_0x50a65d](_0x21146c('0x15'));typeof queryQueues[_0x21146c('0x33')]!=='undefined'&&delete queryQueues[_0x21146c('0x33')];_0x449b55['push'](db['VoiceQueue'][_0x21146c('0x38')](queryQueues)),_0x449b55[_0x21146c('0x22')](db['ChatQueue'][_0x21146c('0x38')](queryQueues)),_0x449b55['push'](db['FaxQueue'][_0x21146c('0x38')](queryQueues)),_0x449b55[_0x21146c('0x22')](db[_0x21146c('0xa')][_0x21146c('0x38')](queryQueues)),_0x449b55['push'](db[_0x21146c('0x5e')][_0x21146c('0x38')](queryQueues)),_0x449b55['push'](db[_0x21146c('0x35')][_0x21146c('0x38')](queryQueues)),_0x449b55[_0x21146c('0x22')](db['WhatsappQueue']['findAll'](queryQueues)),_0x449b55[_0x21146c('0x22')](db[_0x21146c('0xb')][_0x21146c('0x38')](queryTelephones)),_0x449b55[_0x21146c('0x22')](db[_0x21146c('0xe')][_0x21146c('0x38')](queryTrunks)),_0x449b55['push'](db[_0x21146c('0x3f')][_0x21146c('0x38')](queryCampaigns)),_0x449b55[_0x21146c('0x22')](db[_0x21146c('0xb')][_0x21146c('0x38')](queryAgents));break;case'user':_0x4802bb[_0x50a65d](_0x21146c('0x3a')),_0x4802bb[_0x50a65d](_0x21146c('0x15')),_0x449b55[_0x21146c('0x22')](getAssociatedResources(_0x21146c('0x39'),_0x2b4173[_0x21146c('0x31')],_0x21146c('0x55'))),_0x449b55[_0x21146c('0x22')](getAssociatedResources('ChatQueues',_0x2b4173[_0x21146c('0x31')],_0x21146c('0x18'))),_0x449b55[_0x21146c('0x22')](getAssociatedResources(_0x21146c('0x3e'),_0x2b4173[_0x21146c('0x31')],_0x21146c('0x17'))),_0x449b55[_0x21146c('0x22')](getAssociatedResources(_0x21146c('0xc'),_0x2b4173[_0x21146c('0x31')],'SmsQueue')),_0x449b55[_0x21146c('0x22')](getAssociatedResources(_0x21146c('0x5'),_0x2b4173['userProfileId'],'MailQueue')),_0x449b55[_0x21146c('0x22')](getAssociatedResources(_0x21146c('0x11'),_0x2b4173[_0x21146c('0x31')],'OpenchannelQueue')),_0x449b55[_0x21146c('0x22')](getAssociatedResources(_0x21146c('0x4'),_0x2b4173[_0x21146c('0x31')],_0x21146c('0x13'))),_0x449b55[_0x21146c('0x22')](getAssociatedResources(_0x21146c('0x42'),_0x2b4173[_0x21146c('0x31')],_0x21146c('0xb'))),_0x449b55['push'](getAssociatedResources('Trunks',_0x2b4173[_0x21146c('0x31')],_0x21146c('0xe'))),_0x449b55['push'](getAssociatedResources('IvrCampaigns',_0x2b4173['userProfileId'],_0x21146c('0x3f'))),_0x449b55['push'](db[_0x21146c('0xb')][_0x21146c('0x38')](queryAgents));break;case _0x21146c('0x28'):_0x4802bb[_0x50a65d]('voice:inbound'),_0x4802bb[_0x50a65d](_0x21146c('0x15')),_0x449b55[_0x21146c('0x22')](_0x2b4173[_0x21146c('0x19')]({'attributes':['id',_0x21146c('0x2f')]})),_0x449b55[_0x21146c('0x22')](_0x2b4173[_0x21146c('0x12')]({'attributes':['id',_0x21146c('0x2f')]})),_0x449b55['push'](_0x2b4173['getFaxQueues']({'attributes':['id',_0x21146c('0x2f')]})),_0x449b55[_0x21146c('0x22')](_0x2b4173[_0x21146c('0x3b')]({'attributes':['id','name']})),_0x449b55[_0x21146c('0x22')](_0x2b4173[_0x21146c('0x7')]({'attributes':['id',_0x21146c('0x2f')]})),_0x449b55[_0x21146c('0x22')](_0x2b4173[_0x21146c('0x25')]({'attributes':['id',_0x21146c('0x2f')]})),_0x449b55['push'](_0x2b4173[_0x21146c('0x1')]({'attributes':['id',_0x21146c('0x2f')]}));break;}return Promise[_0x21146c('0x52')](_0x449b55);}})[_0x26bce3('0x14')](function(_0x258e2c){const _0x248f6e=_0x26bce3;if(_0x258e2c&&_0x258e2c[_0x248f6e('0x1b')])for(let _0x6b1a45=0x0;_0x6b1a45<_0x258e2c['length'];_0x6b1a45+=0x1){for(let _0x2ee1b6=0x0;_0x2ee1b6<_0x258e2c[_0x6b1a45]['length'];_0x2ee1b6+=0x1){switch(_0x6b1a45){case 0x0:joinOrLeaveQueues(_0x4802bb,_0x50a65d,_0x248f6e('0x44'),_0x258e2c[_0x6b1a45][_0x2ee1b6]);break;case 0x1:joinOrLeaveQueues(_0x4802bb,_0x50a65d,_0x248f6e('0x6'),_0x258e2c[_0x6b1a45][_0x2ee1b6]);break;case 0x2:joinOrLeaveQueues(_0x4802bb,_0x50a65d,_0x248f6e('0x50'),_0x258e2c[_0x6b1a45][_0x2ee1b6]);break;case 0x3:joinOrLeaveQueues(_0x4802bb,_0x50a65d,_0x248f6e('0x37'),_0x258e2c[_0x6b1a45][_0x2ee1b6]);break;case 0x4:joinOrLeaveQueues(_0x4802bb,_0x50a65d,_0x248f6e('0x53'),_0x258e2c[_0x6b1a45][_0x2ee1b6]);break;case 0x5:joinOrLeaveQueues(_0x4802bb,_0x50a65d,_0x248f6e('0x23'),_0x258e2c[_0x6b1a45][_0x2ee1b6]);break;case 0x6:joinOrLeaveQueues(_0x4802bb,_0x50a65d,_0x248f6e('0x46'),_0x258e2c[_0x6b1a45][_0x2ee1b6]);break;case 0x7:_0x4802bb[_0x50a65d](util[_0x248f6e('0x1d')](_0x248f6e('0xd'),_0x258e2c[_0x6b1a45][_0x2ee1b6][_0x248f6e('0x2f')]));break;case 0x8:_0x4802bb[_0x50a65d](util[_0x248f6e('0x1d')](_0x248f6e('0x58'),_0x258e2c[_0x6b1a45][_0x2ee1b6][_0x248f6e('0x2f')]));break;case 0x9:_0x4802bb[_0x50a65d](util[_0x248f6e('0x1d')](_0x248f6e('0x29'),_0x258e2c[_0x6b1a45][_0x2ee1b6]['type'],_0x258e2c[_0x6b1a45][_0x2ee1b6]['name']));break;case 0xa:_0x4802bb[_0x50a65d](util[_0x248f6e('0x1d')](_0x248f6e('0x5c'),_0x258e2c[_0x6b1a45][_0x2ee1b6][_0x248f6e('0x2f')]));break;}}}})[_0x26bce3('0x14')](function(){const _0x4d3870=_0x26bce3;if(_0x50a65d==='leave'){const _0x1f2340=_['map'](_0x5ce0ff['ChatInteractions'],'id');return _0x5ce0ff[_0x4d3870('0x2b')](_0x1f2340)['then'](function(){const _0x1b8a9b=_0x4d3870;for(let _0x12fe16=0x0;_0x12fe16<_0x1f2340[_0x1b8a9b('0x1b')];_0x12fe16+=0x1){_0x1504fa[_0x1b8a9b('0x45')](_0x1b8a9b('0x16'),{'ChatInteractionId':Number(_0x1f2340[_0x12fe16]),'UserId':Number(_0x5ce0ff['id'])});}});}})[_0x26bce3('0x14')](function(){const _0xd59b28=_0x26bce3;if(_0x50a65d===_0xd59b28('0x5b')){const _0x1c12de=_[_0xd59b28('0x2c')](_0x5ce0ff['MailInteractions'],'id');return _0x5ce0ff['removeMailInteractions'](_0x1c12de)['then'](function(){const _0x50af58=_0xd59b28;for(let _0x4eedc3=0x0;_0x4eedc3<_0x1c12de[_0x50af58('0x1b')];_0x4eedc3+=0x1){_0x1504fa[_0x50af58('0x45')](_0x50af58('0x1c'),{'MailInteractionId':Number(_0x1c12de[_0x4eedc3]),'UserId':Number(_0x5ce0ff['id'])});}});}})['then'](function(){const _0x271661=_0x26bce3;if(_0x50a65d===_0x271661('0x5b')){const _0x2f0a41=_[_0x271661('0x2c')](_0x5ce0ff[_0x271661('0x36')],'id');return _0x5ce0ff[_0x271661('0x30')](_0x2f0a41)['then'](function(){const _0x5985cf=_0x271661;for(let _0x5d11ec=0x0;_0x5d11ec<_0x2f0a41[_0x5985cf('0x1b')];_0x5d11ec+=0x1){_0x1504fa[_0x5985cf('0x45')](_0x5985cf('0x59'),{'FaxInteractionId':Number(_0x2f0a41[_0x5d11ec]),'UserId':Number(_0x5ce0ff['id'])});}});}})[_0x26bce3('0x14')](function(){const _0x4dec96=_0x26bce3;if(_0x50a65d===_0x4dec96('0x5b')){const _0xb9dcbb=_[_0x4dec96('0x2c')](_0x5ce0ff[_0x4dec96('0x4a')],'id');return _0x5ce0ff['removeSmsInteractions'](_0xb9dcbb)[_0x4dec96('0x14')](function(){const _0x92ce11=_0x4dec96;for(let _0x20dd5d=0x0;_0x20dd5d<_0xb9dcbb[_0x92ce11('0x1b')];_0x20dd5d+=0x1){_0x1504fa[_0x92ce11('0x45')]('user_has_sms_interactions:remove',{'SmsInteractionId':Number(_0xb9dcbb[_0x20dd5d]),'UserId':Number(_0x5ce0ff['id'])});}});}})[_0x26bce3('0x14')](function(){const _0x3f06e1=_0x26bce3;if(_0x50a65d===_0x3f06e1('0x5b')){const _0x541785=_[_0x3f06e1('0x2c')](_0x5ce0ff[_0x3f06e1('0x54')],'id');return _0x5ce0ff[_0x3f06e1('0x2e')](_0x541785)['then'](function(){const _0x45a2de=_0x3f06e1;for(let _0x586f5f=0x0;_0x586f5f<_0x541785['length'];_0x586f5f+=0x1){_0x1504fa[_0x45a2de('0x45')]('user_has_openchannel_interactions:remove',{'OpenchannelInteractionId':Number(_0x541785[_0x586f5f]),'UserId':Number(_0x5ce0ff['id'])});}});}})['then'](function(){const _0x226977=_0x26bce3;if(_0x50a65d===_0x226977('0x5b')){const _0x5566ad=_['map'](_0x5ce0ff[_0x226977('0x3d')],'id');return _0x5ce0ff['removeWhatsappInteractions'](_0x5566ad)[_0x226977('0x14')](function(){const _0xa9559c=_0x226977;for(let _0x33a23b=0x0;_0x33a23b<_0x5566ad[_0xa9559c('0x1b')];_0x33a23b+=0x1){_0x1504fa[_0xa9559c('0x45')](_0xa9559c('0x56'),{'WhatsappInteractionId':Number(_0x5566ad[_0x33a23b]),'UserId':Number(_0x5ce0ff['id'])});}});}})['catch'](function(_0x500979){_0x4802bb['log'](_0x500979);});}function onDisconnect(_0x542caf,_0x198a95){joinOrLeave(_0x542caf,'leave',_0x198a95);}function onConnect(_0x50205c){const _0x354177=_0x39f1ba;joinOrLeave(_0x50205c,_0x354177('0x0'));}exports['default']=function(_0x2cbf7d){const _0x433839=_0x39f1ba;_0x2cbf7d['on'](_0x433839('0x26'),function(_0x2c3305){const _0x5de6a5=_0x433839;_0x2c3305[_0x5de6a5('0x32')](0x0),_0x2c3305[_0x5de6a5('0x4d')]=_0x2c3305[_0x5de6a5('0x1a')][_0x5de6a5('0x26')][_0x5de6a5('0x4e')]+':'+_0x2c3305['request'][_0x5de6a5('0x26')][_0x5de6a5('0x48')],_0x2c3305[_0x5de6a5('0xf')]=new Date(),_0x2c3305['log']=function(_0x1e37ef){const _0x46b677=_0x5de6a5;console['log']('SocketIO\x20'+_0x2c3305['nsp'][_0x46b677('0x2f')]+'['+_0x2c3305[_0x46b677('0x4d')]+']',_0x1e37ef);},_0x2c3305['on'](_0x5de6a5('0x4f'),function(){const _0x523f16=_0x5de6a5;onDisconnect(_0x2c3305,_0x2cbf7d),_0x2c3305[_0x523f16('0x9')]('DISCONNECTED');}),onConnect(_0x2c3305),_0x2c3305[_0x5de6a5('0x9')](_0x5de6a5('0x34'));});}; \ No newline at end of file +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 diff --git a/server/config/triggers/index.js b/server/config/triggers/index.js index 76ef23d..6de30eb 100644 --- a/server/config/triggers/index.js +++ b/server/config/triggers/index.js @@ -1 +1 @@ -const a887_0x3044=['request','info','get','then','callback','format','User','newinteraction','../../mysqldb','OpenchannelInteraction','Openchannel','changed','Sms','closed','OpenchannelMessage','SmsMessage','default','catch','afterCreate','ChatInteraction','MailInteraction','newmessage','Fax','event','outgoingmessage','closedinteraction','findOne','UserId','FaxMessage','Trigger,\x20%s','WhatsappMessage','jayson/promise','Whatsapp','../logger','Chat','toLowerCase','undefined','afterUpdate','interface','Mail','EventManager','MailMessage','SmsInteraction','client','channel','triggers','util','WhatsappInteraction','error','FaxInteraction','model','name','SIP/%s','ChatMessage'];(function(_0x4eaf0a,_0x304482){const _0xc9fc14=function(_0x317ff9){while(--_0x317ff9){_0x4eaf0a['push'](_0x4eaf0a['shift']());}};_0xc9fc14(++_0x304482);}(a887_0x3044,0x170));const a887_0xc9fc=function(_0x4eaf0a,_0x304482){_0x4eaf0a=_0x4eaf0a-0x0;let _0xc9fc14=a887_0x3044[_0x4eaf0a];return _0xc9fc14;};const _0x21e89e=a887_0xc9fc;'use strict';const util=require(_0x21e89e('0x2')),db=require(_0x21e89e('0x12'))['db'],jayson=require(_0x21e89e('0x29')),logger=require(_0x21e89e('0x2b'))(_0x21e89e('0x1')),client=jayson[_0x21e89e('0x35')]['http']({'port':0x232a}),triggers=[{'channel':_0x21e89e('0x2c'),'model':_0x21e89e('0x1d'),'event':_0x21e89e('0x1c'),'condition':'newinteraction','callback':afterCreate},{'channel':_0x21e89e('0x2c'),'model':'ChatInteraction','event':'afterUpdate','condition':_0x21e89e('0x23'),'callback':afterUpdate},{'channel':_0x21e89e('0x2c'),'model':_0x21e89e('0x9'),'event':'afterCreate','condition':_0x21e89e('0x1f'),'callback':afterCreateMessage},{'channel':'Sms','model':_0x21e89e('0x34'),'event':_0x21e89e('0x1c'),'condition':_0x21e89e('0x11'),'callback':afterCreate},{'channel':'Sms','model':_0x21e89e('0x34'),'event':'afterUpdate','condition':'closedinteraction','callback':afterUpdate},{'channel':_0x21e89e('0x16'),'model':_0x21e89e('0x19'),'event':'afterCreate','condition':_0x21e89e('0x1f'),'callback':afterCreateMessage},{'channel':_0x21e89e('0x2a'),'model':_0x21e89e('0x3'),'event':_0x21e89e('0x1c'),'condition':'newinteraction','callback':afterCreate},{'channel':_0x21e89e('0x2a'),'model':_0x21e89e('0x3'),'event':_0x21e89e('0x2f'),'condition':_0x21e89e('0x23'),'callback':afterUpdate},{'channel':_0x21e89e('0x2a'),'model':_0x21e89e('0x28'),'event':_0x21e89e('0x1c'),'condition':_0x21e89e('0x1f'),'callback':afterCreateMessage},{'channel':_0x21e89e('0x20'),'model':_0x21e89e('0x5'),'event':_0x21e89e('0x1c'),'condition':'newinteraction','callback':afterCreate},{'channel':_0x21e89e('0x20'),'model':_0x21e89e('0x5'),'event':'afterUpdate','condition':_0x21e89e('0x23'),'callback':afterUpdate},{'channel':_0x21e89e('0x20'),'model':_0x21e89e('0x26'),'event':'afterCreate','condition':'newmessage','callback':afterCreateMessage},{'channel':_0x21e89e('0x31'),'model':_0x21e89e('0x1e'),'event':_0x21e89e('0x1c'),'condition':_0x21e89e('0x11'),'callback':afterCreate},{'channel':_0x21e89e('0x31'),'model':_0x21e89e('0x1e'),'event':_0x21e89e('0x2f'),'condition':'closedinteraction','callback':afterUpdate},{'channel':'Mail','model':_0x21e89e('0x33'),'event':_0x21e89e('0x1c'),'condition':'newmessage','callback':afterCreateMessage},{'channel':_0x21e89e('0x14'),'model':_0x21e89e('0x13'),'event':'afterCreate','condition':'newinteraction','callback':afterCreate},{'channel':_0x21e89e('0x14'),'model':_0x21e89e('0x13'),'event':_0x21e89e('0x2f'),'condition':_0x21e89e('0x23'),'callback':afterUpdate},{'channel':'Openchannel','model':_0x21e89e('0x18'),'event':_0x21e89e('0x1c'),'condition':_0x21e89e('0x1f'),'callback':afterCreateMessage}];function request(_0x317ff9){const _0xed68aa=_0x21e89e;return client[_0xed68aa('0xa')](_0xed68aa('0x32'),_0x317ff9)[_0xed68aa('0xd')](function(_0x45deeb){const _0x350a87=_0xed68aa;logger[_0x350a87('0xb')](_0x350a87('0x27'),'EventManager',_0x45deeb),_0x45deeb[_0x350a87('0x4')]&&(_0x45deeb['error']['code']===0x1f4&&logger[_0x350a87('0x4')](_0x350a87('0x27'),_0x350a87('0x32'),_0x45deeb[_0x350a87('0x4')]));})['catch'](function(_0x257d4b){const _0x2cb7df=_0xed68aa;logger[_0x2cb7df('0x4')]('Trigger,\x20%s',_0x2cb7df('0x32'),_0x257d4b);});}function afterCreateMessage(_0x496029){return function(_0x4537d0){const _0x1a4382=a887_0xc9fc;return _0x4537d0=_0x4537d0[_0x1a4382('0xc')]({'plain':!![]}),_0x4537d0[_0x1a4382('0x0')]=_0x496029,_0x4537d0['event']=_0x4537d0['direction'],_0x4537d0[_0x1a4382('0x25')]?db[_0x1a4382('0x10')][_0x1a4382('0x24')]({'where':{'id':_0x4537d0[_0x1a4382('0x25')]},'attributes':['id',_0x1a4382('0x7')],'raw':!![]})[_0x1a4382('0xd')](function(_0x2f8f4f){const _0x1b6a34=_0x1a4382;return _0x4537d0[_0x1b6a34('0x30')]=util[_0x1b6a34('0xf')](_0x1b6a34('0x8'),_0x2f8f4f[_0x1b6a34('0x7')]),_0x4537d0[_0x1b6a34('0x0')]=_0x496029,request({'event':'incomingmessage','message':_0x4537d0});})[_0x1a4382('0x1b')](function(_0x1963ad){console['error'](_0x1963ad);}):request({'event':_0x1a4382('0x22'),'message':_0x4537d0});};}function afterCreate(_0x21ffad,_0x31046e){return function(_0x2d57b0){const _0x3897a4=a887_0xc9fc;return _0x2d57b0=_0x2d57b0[_0x3897a4('0xc')]({'plain':!![]}),_0x2d57b0[_0x3897a4('0x0')]=_0x21ffad,_0x2d57b0[_0x3897a4('0x21')]='opened',request({'event':_0x31046e,'message':_0x2d57b0});};}function afterUpdate(_0x50ac81,_0x41064f){return function(_0xb84f39){const _0x13b072=a887_0xc9fc;if(_0xb84f39[_0x13b072('0x15')]('closed')&&_0xb84f39[_0x13b072('0x17')])return _0xb84f39=_0xb84f39['get']({'plain':!![]}),_0xb84f39[_0x13b072('0x0')]=_0x50ac81,_0xb84f39[_0x13b072('0x21')]=_0x13b072('0x17'),_0xb84f39[_0x13b072('0x25')]?db['User'][_0x13b072('0x24')]({'where':{'id':_0xb84f39['UserId']},'attributes':['id',_0x13b072('0x7')],'raw':!![]})[_0x13b072('0xd')](function(_0x13c63c){const _0x3e81f2=_0x13b072;return _0xb84f39[_0x3e81f2('0x30')]=util[_0x3e81f2('0xf')]('SIP/%s',_0x13c63c[_0x3e81f2('0x7')]),request({'event':_0x41064f,'message':_0xb84f39});})[_0x13b072('0x1b')](function(_0x5bf36e){console['error'](_0x5bf36e);}):request({'event':_0x41064f,'message':_0xb84f39});};}exports[_0x21e89e('0x1a')]=function(){const _0x49965a=_0x21e89e;for(let _0x136099=0x0;_0x136099=_0x17ab88[_0x4e9b05('0x4')])throw Error('Maximum\x20login\x20has\x20been\x20reached');_0x81af22(_0x1bb083);})[_0x5cdec1('0xa')](function(_0x59a7b7){_0x575ed7(_0x59a7b7);});});}; \ No newline at end of file +const a888_0x56b0=['sms','toLowerCase','getChannels','whatsapp','fax','Maximum\x20login\x20has\x20been\x20reached','getLicense','openchannel','../mysqldb','agents','clearBlockUser','voice','includes','isValidChannel','mail','role','./license/util','blockedAt','update','isUndefined','count'];(function(_0x188e57,_0x56b09a){const _0x35742c=function(_0x2e8bc9){while(--_0x2e8bc9){_0x188e57['push'](_0x188e57['shift']());}};_0x35742c(++_0x56b09a);}(a888_0x56b0,0x196));const a888_0x3574=function(_0x188e57,_0x56b09a){_0x188e57=_0x188e57-0x0;let _0x35742c=a888_0x56b0[_0x188e57];return _0x35742c;};const _0x2c2199=a888_0x3574;'use strict';const _=require('lodash'),db=require(_0x2c2199('0x1'))['db'],util=require(_0x2c2199('0x9')),{Op}=require('sequelize'),channels=[_0x2c2199('0x4'),_0x2c2199('0x7'),'chat',_0x2c2199('0x12'),_0x2c2199('0xe'),_0x2c2199('0x11'),_0x2c2199('0x0')];exports[_0x2c2199('0x10')]=function(){return channels;},exports[_0x2c2199('0x6')]=function(_0x2e8bc9){const _0x4134b9=_0x2c2199;return _0x2e8bc9=_0x2e8bc9[_0x4134b9('0xf')](),_[_0x4134b9('0x5')](channels,_0x2e8bc9);},exports[_0x2c2199('0x3')]=function(_0x25f1d2,_0x5ae8bf,_0x50420e,_0xeeec6f){const _0x563651=_0x2c2199,_0x2421c0={'loginAttempts':_0x5ae8bf,'blocked':_0x50420e};return!_[_0x563651('0xc')](_0xeeec6f)&&(_0x2421c0[_0x563651('0xa')]=_0xeeec6f),_0x25f1d2[_0x563651('0xb')](_0x2421c0);},exports[_0x2c2199('0x14')]=function(_0x2413f0){return new Promise(function(_0xd4bd13,_0x4908d1){const _0x4090a9=a888_0x3574;let _0x2d5309=0x0;_0x2413f0[_0x4090a9('0x8')]!=='agent'&&_0xd4bd13(_0x2413f0),db['User'][_0x4090a9('0xd')]({'where':{'role':'agent','online':!![],'id':{[Op['ne']]:_0x2413f0['id']}}})['then'](function(_0x2b35b3){const _0x351816=_0x4090a9;return _0x2d5309=_0x2b35b3,util[_0x351816('0x14')]();})['then'](function(_0x4bcc77){const _0x4e8790=_0x4090a9;if(_0x4bcc77&&_0x4bcc77[_0x4e8790('0x2')]&&_0x2d5309>=_0x4bcc77['agents'])throw Error(_0x4e8790('0x13'));_0xd4bd13(_0x2413f0);})['catch'](function(_0x4c6808){_0x4908d1(_0x4c6808);});});}; \ No newline at end of file diff --git a/server/errors/index.js b/server/errors/index.js index adceaf8..3a94b0e 100644 --- a/server/errors/index.js +++ b/server/errors/index.js @@ -1 +1 @@ -const a889_0x32ac=['404','send','exports','json','render','status'];(function(_0x2bae22,_0x32ac6b){const _0x50ed13=function(_0x3259b0){while(--_0x3259b0){_0x2bae22['push'](_0x2bae22['shift']());}};_0x50ed13(++_0x32ac6b);}(a889_0x32ac,0xe6));const a889_0x50ed=function(_0x2bae22,_0x32ac6b){_0x2bae22=_0x2bae22-0x0;let _0x50ed13=a889_0x32ac[_0x2bae22];return _0x50ed13;};const _0x4715f5=a889_0x50ed;'use strict';module[_0x4715f5('0x0')][0x194]=function pageNotFound(_0x3259b0,_0x3b6d5a){const _0xe9e3bc=_0x4715f5,_0x29269b=_0xe9e3bc('0x4'),_0x4c0fbd=0x194,_0x19cbec={'status':_0x4c0fbd};_0x3b6d5a[_0xe9e3bc('0x3')](_0x19cbec['status']),_0x3b6d5a[_0xe9e3bc('0x2')](_0x29269b,{},function(_0x512c9a,_0x4096a9){const _0x163ad4=_0xe9e3bc;if(_0x512c9a)return _0x3b6d5a[_0x163ad4('0x3')](_0x19cbec[_0x163ad4('0x3')])[_0x163ad4('0x1')](_0x19cbec);_0x3b6d5a[_0x163ad4('0x5')](_0x4096a9);});}; \ No newline at end of file +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 diff --git a/server/globals.js b/server/globals.js index e99be11..65652f8 100644 --- a/server/globals.js +++ b/server/globals.js @@ -1 +1 @@ -const a890_0x41f5=['resolve','path'];(function(_0x412f11,_0x41f509){const _0x398947=function(_0xfba6b7){while(--_0xfba6b7){_0x412f11['push'](_0x412f11['shift']());}};_0x398947(++_0x41f509);}(a890_0x41f5,0x9d));const a890_0x3989=function(_0x412f11,_0x41f509){_0x412f11=_0x412f11-0x0;let _0x398947=a890_0x41f5[_0x412f11];return _0x398947;};const _0x1419af=a890_0x3989,path=require(_0x1419af('0x0'));global['appRoot']=path[_0x1419af('0x1')](__dirname); \ No newline at end of file +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 diff --git a/server/migrations/2.0.12.js b/server/migrations/2.0.12.js index 14a583b..0378935 100644 --- a/server/migrations/2.0.12.js +++ b/server/migrations/2.0.12.js @@ -1 +1 @@ -var a891_0x2fae=['exports'];(function(_0xef43a3,_0x2faefc){var _0x3fba56=function(_0x3eacc0){while(--_0x3eacc0){_0xef43a3['push'](_0xef43a3['shift']());}};_0x3fba56(++_0x2faefc);}(a891_0x2fae,0xbe));var a891_0x3fba=function(_0xef43a3,_0x2faefc){_0xef43a3=_0xef43a3-0x0;var _0x3fba56=a891_0x2fae[_0xef43a3];return _0x3fba56;};var _0x44556d=a891_0x3fba;'use strict';module[_0x44556d('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.13.js b/server/migrations/2.0.13.js index 24a2546..12c8e63 100644 --- a/server/migrations/2.0.13.js +++ b/server/migrations/2.0.13.js @@ -1 +1 @@ -const a892_0x4cc7=['catch','info','prototype','STRING','DATE','rescheduled','reschedule','deletedat','Removed\x20column\x20%s\x20from\x20%s','cm_hopper_final','exports','BOOLEAN','removeColumn','then','stringify','renameColumn','addColumn','deleted','queryInterface','Added\x20column\x20%s\x20to\x20%s','migration','../config/logger','phoneBarRingInUse','users'];(function(_0x912605,_0x4cc71e){const _0x1bf67e=function(_0x100190){while(--_0x100190){_0x912605['push'](_0x912605['shift']());}};_0x1bf67e(++_0x4cc71e);}(a892_0x4cc7,0x71));const a892_0x1bf6=function(_0x912605,_0x4cc71e){_0x912605=_0x912605-0x0;let _0x1bf67e=a892_0x4cc7[_0x912605];return _0x1bf67e;};const _0xc63d22=a892_0x1bf6;'use strict';const logger=require(_0xc63d22('0x4'))(_0xc63d22('0x3')),Migration=function(_0x100190){const _0x3bd34b=_0xc63d22;this[_0x3bd34b('0x1')]=_0x100190;};Migration[_0xc63d22('0x9')]['addColumn']=function(_0x480215,_0x4245ff,_0x31dae4){const _0x207bf5=_0xc63d22;return this[_0x207bf5('0x1')]['addColumn'](_0x480215,_0x4245ff,_0x31dae4)['then'](function(){const _0x294fc9=_0x207bf5;logger[_0x294fc9('0x8')](_0x294fc9('0x2'),_0x4245ff,_0x480215);})[_0x207bf5('0x7')](function(_0x2042f3){const _0x998737=_0x207bf5;logger[_0x998737('0x8')](JSON[_0x998737('0x15')](_0x2042f3));});},Migration[_0xc63d22('0x9')][_0xc63d22('0x13')]=function(_0x1cbe9f,_0x46d68f){const _0x3c24fc=_0xc63d22;return this['queryInterface'][_0x3c24fc('0x13')](_0x1cbe9f,_0x46d68f)[_0x3c24fc('0x14')](function(){const _0x182882=_0x3c24fc;logger[_0x182882('0x8')](_0x182882('0xf'),_0x46d68f,_0x1cbe9f);})['catch'](function(_0x3a7aef){const _0x55bba1=_0x3c24fc;logger[_0x55bba1('0x8')](JSON['stringify'](_0x3a7aef));});},Migration[_0xc63d22('0x9')][_0xc63d22('0x16')]=function(_0x2e0ead,_0x1c3cfa,_0x200d64){const _0x5d397f=_0xc63d22;return this[_0x5d397f('0x1')][_0x5d397f('0x16')](_0x2e0ead,_0x1c3cfa,_0x200d64)[_0x5d397f('0x14')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x1c3cfa,_0x200d64,_0x2e0ead);})[_0x5d397f('0x7')](function(_0x1b4f91){const _0x1318f2=_0x5d397f;logger[_0x1318f2('0x8')](JSON[_0x1318f2('0x15')](_0x1b4f91));});},module[_0xc63d22('0x11')]={'up':function(_0xb5cf17,_0x596d6e){const _0x140241=_0xc63d22,_0x11c246=new Migration(_0xb5cf17);_0x11c246[_0x140241('0x17')](_0x140241('0x10'),_0x140241('0xe'),{'type':_0x596d6e[_0x140241('0xb')]}),_0x11c246[_0x140241('0x17')]('users',_0x140241('0x5'),{'type':_0x596d6e[_0x140241('0x12')],'defaultValue':![]}),_0x11c246['addColumn'](_0x140241('0x10'),_0x140241('0x0'),{'type':_0x596d6e[_0x140241('0xa')],'defaultValue':null}),_0x11c246['renameColumn']('cm_hopper_final',_0x140241('0xd'),_0x140241('0xc'));},'down':function(_0x5a94cb,_0x5410f2){const _0x3241a0=_0xc63d22,_0x50ef91=new Migration(_0x5a94cb,_0x5410f2);_0x50ef91[_0x3241a0('0x13')](_0x3241a0('0x6'),_0x3241a0('0x5')),_0x50ef91[_0x3241a0('0x13')](_0x3241a0('0x10'),'deletedat'),_0x50ef91[_0x3241a0('0x13')](_0x3241a0('0x10'),_0x3241a0('0x0')),_0x50ef91['renameColumn']('cm_hopper_final',_0x3241a0('0xc'),_0x3241a0('0xd'));}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.14.js b/server/migrations/2.0.14.js index a0ff701..9ddf12e 100644 --- a/server/migrations/2.0.14.js +++ b/server/migrations/2.0.14.js @@ -1 +1 @@ -var a893_0x265a=['exports'];(function(_0x31a09d,_0x265a4f){var _0xb38ab5=function(_0x3d80ee){while(--_0x3d80ee){_0x31a09d['push'](_0x31a09d['shift']());}};_0xb38ab5(++_0x265a4f);}(a893_0x265a,0x75));var a893_0xb38a=function(_0x31a09d,_0x265a4f){_0x31a09d=_0x31a09d-0x0;var _0xb38ab5=a893_0x265a[_0x31a09d];return _0xb38ab5;};var _0x57ba32=a893_0xb38a;'use strict';module[_0x57ba32('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.15.js b/server/migrations/2.0.15.js index d23adac..652d8c7 100644 --- a/server/migrations/2.0.15.js +++ b/server/migrations/2.0.15.js @@ -1 +1 @@ -var a894_0x4f36=['exports'];(function(_0x3d5022,_0x4f361c){var _0x3be86d=function(_0x2e0192){while(--_0x2e0192){_0x3d5022['push'](_0x3d5022['shift']());}};_0x3be86d(++_0x4f361c);}(a894_0x4f36,0x1cd));var a894_0x3be8=function(_0x3d5022,_0x4f361c){_0x3d5022=_0x3d5022-0x0;var _0x3be86d=a894_0x4f36[_0x3d5022];return _0x3be86d;};var _0xbb0975=a894_0x3be8;'use strict';module[_0xbb0975('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.16.js b/server/migrations/2.0.16.js index 6c6216c..12143c4 100644 --- a/server/migrations/2.0.16.js +++ b/server/migrations/2.0.16.js @@ -1 +1 @@ -var a895_0x5a08=['exports'];(function(_0x483c3c,_0x5a0804){var _0x3c359e=function(_0x3e11db){while(--_0x3e11db){_0x483c3c['push'](_0x483c3c['shift']());}};_0x3c359e(++_0x5a0804);}(a895_0x5a08,0x1e8));var a895_0x3c35=function(_0x483c3c,_0x5a0804){_0x483c3c=_0x483c3c-0x0;var _0x3c359e=a895_0x5a08[_0x483c3c];return _0x3c359e;};var _0x499aea=a895_0x3c35;'use strict';module[_0x499aea('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.17.js b/server/migrations/2.0.17.js index f4b7a01..e9ab5d5 100644 --- a/server/migrations/2.0.17.js +++ b/server/migrations/2.0.17.js @@ -1 +1 @@ -var a896_0x5617=['exports'];(function(_0x3b054f,_0x5617d8){var _0x50f956=function(_0x173449){while(--_0x173449){_0x3b054f['push'](_0x3b054f['shift']());}};_0x50f956(++_0x5617d8);}(a896_0x5617,0x11f));var a896_0x50f9=function(_0x3b054f,_0x5617d8){_0x3b054f=_0x3b054f-0x0;var _0x50f956=a896_0x5617[_0x3b054f];return _0x50f956;};var _0x52c5ce=a896_0x50f9;'use strict';module[_0x52c5ce('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.18.js b/server/migrations/2.0.18.js index 44885bd..12143c4 100644 --- a/server/migrations/2.0.18.js +++ b/server/migrations/2.0.18.js @@ -1 +1 @@ -var a897_0xe7a2=['exports'];(function(_0x453c4d,_0xe7a27b){var _0x489182=function(_0x40d569){while(--_0x40d569){_0x453c4d['push'](_0x453c4d['shift']());}};_0x489182(++_0xe7a27b);}(a897_0xe7a2,0xd9));var a897_0x4891=function(_0x453c4d,_0xe7a27b){_0x453c4d=_0x453c4d-0x0;var _0x489182=a897_0xe7a2[_0x453c4d];return _0x489182;};var _0x839207=a897_0x4891;'use strict';module[_0x839207('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.19.js b/server/migrations/2.0.19.js index 14f58f7..df1a9af 100644 --- a/server/migrations/2.0.19.js +++ b/server/migrations/2.0.19.js @@ -1 +1 @@ -var a898_0x12de=['exports'];(function(_0x1bf4d1,_0x12de45){var _0x3c8610=function(_0x696b49){while(--_0x696b49){_0x1bf4d1['push'](_0x1bf4d1['shift']());}};_0x3c8610(++_0x12de45);}(a898_0x12de,0x11f));var a898_0x3c86=function(_0x1bf4d1,_0x12de45){_0x1bf4d1=_0x1bf4d1-0x0;var _0x3c8610=a898_0x12de[_0x1bf4d1];return _0x3c8610;};var _0x116c88=a898_0x3c86;'use strict';module[_0x116c88('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.20.js b/server/migrations/2.0.20.js index 0bc2609..abb6c16 100644 --- a/server/migrations/2.0.20.js +++ b/server/migrations/2.0.20.js @@ -1 +1 @@ -const a899_0x2783=['migration','prototype','stringify','removeColumn','addColumn','dropTable','renameColumn','table\x20dropped\x20%s','report_jscripty_inputs','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','exports','queryInterface','Added\x20column\x20%s\x20to\x20%s','then','catch','../config/logger','jscripty_projects'];(function(_0x8cd64d,_0x2783c4){const _0xa983d5=function(_0x24ff7d){while(--_0x24ff7d){_0x8cd64d['push'](_0x8cd64d['shift']());}};_0xa983d5(++_0x2783c4);}(a899_0x2783,0xd9));const a899_0xa983=function(_0x8cd64d,_0x2783c4){_0x8cd64d=_0x8cd64d-0x0;let _0xa983d5=a899_0x2783[_0x8cd64d];return _0xa983d5;};const _0x522b9c=a899_0xa983;'use strict';const logger=require(_0x522b9c('0xf'))(_0x522b9c('0x11')),Migration=function(_0x24ff7d){const _0x134df0=_0x522b9c;this[_0x134df0('0xb')]=_0x24ff7d;};Migration[_0x522b9c('0x0')]['addColumn']=function(_0x1db953,_0x566ac3,_0x2c9a50){const _0x315e25=_0x522b9c;return this[_0x315e25('0xb')][_0x315e25('0x3')](_0x1db953,_0x566ac3,_0x2c9a50)[_0x315e25('0xd')](function(){const _0x30b3f3=_0x315e25;logger[_0x30b3f3('0x9')](_0x30b3f3('0xc'),_0x566ac3,_0x1db953);})[_0x315e25('0xe')](function(_0x5c54e2){const _0x23a85f=_0x315e25;logger['info'](JSON[_0x23a85f('0x1')](_0x5c54e2));});},Migration[_0x522b9c('0x0')][_0x522b9c('0x2')]=function(_0x4b1ff4,_0x56f682){const _0x594ffc=_0x522b9c;return this[_0x594ffc('0xb')][_0x594ffc('0x2')](_0x4b1ff4,_0x56f682)[_0x594ffc('0xd')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x56f682,_0x4b1ff4);})[_0x594ffc('0xe')](function(_0xb7e25d){const _0x21b1ca=_0x594ffc;logger[_0x21b1ca('0x9')](JSON[_0x21b1ca('0x1')](_0xb7e25d));});},Migration[_0x522b9c('0x0')][_0x522b9c('0x5')]=function(_0x30e155,_0x38550d,_0x3f6312){const _0x4831ea=_0x522b9c;return this[_0x4831ea('0xb')][_0x4831ea('0x5')](_0x30e155,_0x38550d,_0x3f6312)[_0x4831ea('0xd')](function(){const _0x39cf81=_0x4831ea;logger['info'](_0x39cf81('0x8'),_0x38550d,_0x3f6312,_0x30e155);})['catch'](function(_0x7925b2){const _0x1dee5e=_0x4831ea;logger[_0x1dee5e('0x9')](JSON['stringify'](_0x7925b2));});},Migration['prototype'][_0x522b9c('0x4')]=function(_0x38d32a){const _0x50f7bd=_0x522b9c;return this[_0x50f7bd('0xb')][_0x50f7bd('0x4')](_0x38d32a)['then'](function(){const _0x1cc8b6=_0x50f7bd;logger[_0x1cc8b6('0x9')](_0x1cc8b6('0x6'),_0x38d32a);})['catch'](function(_0x59aa32){const _0x5b6b5a=_0x50f7bd;logger[_0x5b6b5a('0x9')](JSON[_0x5b6b5a('0x1')](_0x59aa32));});},module[_0x522b9c('0xa')]={'up':function(_0x19b3a3){const _0x319e97=_0x522b9c,_0x25e9c6=new Migration(_0x19b3a3);_0x25e9c6[_0x319e97('0x4')](_0x319e97('0x10')),_0x25e9c6[_0x319e97('0x4')](_0x319e97('0x7')),_0x25e9c6[_0x319e97('0x4')]('report_jscripty_questions'),_0x25e9c6['dropTable']('report_jscripty_sessions');},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.21.js b/server/migrations/2.0.21.js index 9ccb9da..43b0ae9 100644 --- a/server/migrations/2.0.21.js +++ b/server/migrations/2.0.21.js @@ -1 +1 @@ -const a900_0x250d=['queryInterface','migration','removeColumn','Added\x20column\x20%s\x20to\x20%s','catch','report_jscripty_sessions','then','exports','stringify','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','report_jscripty_inputs','dropTable','prototype','renameColumn','info','../config/logger','jscripty_projects','Removed\x20column\x20%s\x20from\x20%s','addColumn'];(function(_0x754601,_0x250dad){const _0x185dcf=function(_0x2c8b76){while(--_0x2c8b76){_0x754601['push'](_0x754601['shift']());}};_0x185dcf(++_0x250dad);}(a900_0x250d,0x92));const a900_0x185d=function(_0x754601,_0x250dad){_0x754601=_0x754601-0x0;let _0x185dcf=a900_0x250d[_0x754601];return _0x185dcf;};const _0x39349a=a900_0x185d;'use strict';const logger=require(_0x39349a('0x2'))(_0x39349a('0x7')),Migration=function(_0x2c8b76){const _0x2b9390=_0x39349a;this[_0x2b9390('0x6')]=_0x2c8b76;};Migration[_0x39349a('0x12')][_0x39349a('0x5')]=function(_0xccf014,_0x5a2f3d,_0x414643){const _0x5188e9=_0x39349a;return this[_0x5188e9('0x6')][_0x5188e9('0x5')](_0xccf014,_0x5a2f3d,_0x414643)[_0x5188e9('0xc')](function(){const _0x537c79=_0x5188e9;logger['info'](_0x537c79('0x9'),_0x5a2f3d,_0xccf014);})[_0x5188e9('0xa')](function(_0x1b6ecc){const _0x24ffdc=_0x5188e9;logger['info'](JSON[_0x24ffdc('0xe')](_0x1b6ecc));});},Migration['prototype']['removeColumn']=function(_0xadf7c1,_0x388ad2){const _0x58f663=_0x39349a;return this[_0x58f663('0x6')][_0x58f663('0x8')](_0xadf7c1,_0x388ad2)[_0x58f663('0xc')](function(){const _0x2cff46=_0x58f663;logger['info'](_0x2cff46('0x4'),_0x388ad2,_0xadf7c1);})[_0x58f663('0xa')](function(_0x4780e9){const _0x1c54df=_0x58f663;logger['info'](JSON[_0x1c54df('0xe')](_0x4780e9));});},Migration['prototype'][_0x39349a('0x0')]=function(_0x3a336a,_0x3670cb,_0x4c25b5){const _0x1d0960=_0x39349a;return this['queryInterface']['renameColumn'](_0x3a336a,_0x3670cb,_0x4c25b5)[_0x1d0960('0xc')](function(){const _0x35ee10=_0x1d0960;logger[_0x35ee10('0x1')](_0x35ee10('0xf'),_0x3670cb,_0x4c25b5,_0x3a336a);})[_0x1d0960('0xa')](function(_0xe009c4){const _0x4f559c=_0x1d0960;logger[_0x4f559c('0x1')](JSON['stringify'](_0xe009c4));});},Migration['prototype'][_0x39349a('0x11')]=function(_0x15d6f3){const _0x193669=_0x39349a;return this[_0x193669('0x6')]['dropTable'](_0x15d6f3)[_0x193669('0xc')](function(){const _0x109af9=_0x193669;logger[_0x109af9('0x1')]('table\x20dropped\x20%s',_0x15d6f3);})[_0x193669('0xa')](function(_0x3dbc2f){const _0x19b0b1=_0x193669;logger[_0x19b0b1('0x1')](JSON[_0x19b0b1('0xe')](_0x3dbc2f));});},module[_0x39349a('0xd')]={'up':function(_0x3795f8){const _0x34a6b6=_0x39349a,_0x545d16=new Migration(_0x3795f8);_0x545d16[_0x34a6b6('0x11')](_0x34a6b6('0x3'),{'force':!![]}),_0x545d16[_0x34a6b6('0x11')](_0x34a6b6('0x10'),{'force':!![]}),_0x545d16['dropTable']('report_jscripty_questions',{'force':!![]}),_0x545d16['dropTable'](_0x34a6b6('0xb'),{'force':!![]});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.22.js b/server/migrations/2.0.22.js index 59678e3..576cb2d 100644 --- a/server/migrations/2.0.22.js +++ b/server/migrations/2.0.22.js @@ -1 +1 @@ -const a901_0xf4e9=['prototype','migration','addColumn','catch','table\x20dropped\x20%s','renameColumn','stringify','dropTable','exports','report_jscripty_questions','queryInterface','info','then','report_jscripty_answers','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x4162f9,_0xf4e9){const _0xfcc272=function(_0x2fce58){while(--_0x2fce58){_0x4162f9['push'](_0x4162f9['shift']());}};_0xfcc272(++_0xf4e9);}(a901_0xf4e9,0x105));const a901_0xfcc2=function(_0x4162f9,_0xf4e9){_0x4162f9=_0x4162f9-0x0;let _0xfcc272=a901_0xf4e9[_0x4162f9];return _0xfcc272;};const _0xaf77fe=a901_0xfcc2;'use strict';const logger=require('../config/logger')(_0xaf77fe('0xc')),Migration=function(_0x2fce58){const _0x2370f1=_0xaf77fe;this[_0x2370f1('0x5')]=_0x2fce58;};Migration['prototype'][_0xaf77fe('0xd')]=function(_0xad0645,_0x365339,_0x25610d){const _0x240322=_0xaf77fe;return this['queryInterface']['addColumn'](_0xad0645,_0x365339,_0x25610d)['then'](function(){const _0x2cf256=a901_0xfcc2;logger['info'](_0x2cf256('0x9'),_0x365339,_0xad0645);})[_0x240322('0xe')](function(_0x18556e){const _0x4f60a9=_0x240322;logger['info'](JSON[_0x4f60a9('0x1')](_0x18556e));});},Migration[_0xaf77fe('0xb')]['removeColumn']=function(_0x3084f8,_0x4a7a8e){const _0xc28037=_0xaf77fe;return this['queryInterface']['removeColumn'](_0x3084f8,_0x4a7a8e)[_0xc28037('0x7')](function(){const _0xf035e6=_0xc28037;logger[_0xf035e6('0x6')](_0xf035e6('0xa'),_0x4a7a8e,_0x3084f8);})[_0xc28037('0xe')](function(_0x1d3e93){const _0x4ed576=_0xc28037;logger[_0x4ed576('0x6')](JSON['stringify'](_0x1d3e93));});},Migration[_0xaf77fe('0xb')][_0xaf77fe('0x0')]=function(_0x422972,_0x3062ee,_0x3cccb9){const _0x5e8dfa=_0xaf77fe;return this['queryInterface']['renameColumn'](_0x422972,_0x3062ee,_0x3cccb9)[_0x5e8dfa('0x7')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3062ee,_0x3cccb9,_0x422972);})[_0x5e8dfa('0xe')](function(_0x4bded2){const _0x406427=_0x5e8dfa;logger[_0x406427('0x6')](JSON['stringify'](_0x4bded2));});},Migration[_0xaf77fe('0xb')]['dropTable']=function(_0x1f6002){const _0x335e54=_0xaf77fe;return this[_0x335e54('0x5')]['dropTable'](_0x1f6002)[_0x335e54('0x7')](function(){const _0x2379e4=_0x335e54;logger[_0x2379e4('0x6')](_0x2379e4('0xf'),_0x1f6002);})['catch'](function(_0x42d825){const _0x52ec05=_0x335e54;logger['info'](JSON[_0x52ec05('0x1')](_0x42d825));});},module[_0xaf77fe('0x3')]={'up':function(_0x238d8c){const _0x161cb8=_0xaf77fe,_0x287c47=new Migration(_0x238d8c);_0x287c47[_0x161cb8('0x2')](_0x161cb8('0x8'),{'force':!![]}),_0x287c47['dropTable'](_0x161cb8('0x4'),{'force':!![]}),_0x287c47['dropTable']('report_jscripty_sessions',{'force':!![]});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.23.js b/server/migrations/2.0.23.js index 2e8b858..973f0b4 100644 --- a/server/migrations/2.0.23.js +++ b/server/migrations/2.0.23.js @@ -1 +1 @@ -const a902_0x27bc=['integrationTab','migration','dropTable','catch','renameColumn','stringify','exports','prototype','int_salesforce_accounts','type','info','removeColumn','int_zendesk_accounts','openchannel_messages','../config/logger','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','openchannel_accounts','Added\x20column\x20%s\x20to\x20%s','newTab','queryInterface','then','ENUM','addColumn'];(function(_0x4f3745,_0x27bc91){const _0x2f2d50=function(_0x47cf62){while(--_0x47cf62){_0x4f3745['push'](_0x4f3745['shift']());}};_0x2f2d50(++_0x27bc91);}(a902_0x27bc,0x188));const a902_0x2f2d=function(_0x4f3745,_0x27bc91){_0x4f3745=_0x4f3745-0x0;let _0x2f2d50=a902_0x27bc[_0x4f3745];return _0x2f2d50;};const _0x7f77b8=a902_0x2f2d;'use strict';const logger=require(_0x7f77b8('0xd'))(_0x7f77b8('0x0')),Migration=function(_0x47cf62){const _0x150ec1=_0x7f77b8;this[_0x150ec1('0x12')]=_0x47cf62;};Migration[_0x7f77b8('0x6')]['addColumn']=function(_0x59ef73,_0x403bae,_0x4ec6b6){const _0x5060ba=_0x7f77b8;return this[_0x5060ba('0x12')][_0x5060ba('0x15')](_0x59ef73,_0x403bae,_0x4ec6b6)[_0x5060ba('0x13')](function(){const _0x26fd08=_0x5060ba;logger[_0x26fd08('0x9')](_0x26fd08('0x10'),_0x403bae,_0x59ef73);})[_0x5060ba('0x2')](function(_0x3b6803){const _0x5b8938=_0x5060ba;logger[_0x5b8938('0x9')](JSON['stringify'](_0x3b6803));});},Migration[_0x7f77b8('0x6')][_0x7f77b8('0xa')]=function(_0x287faa,_0x1344f5){const _0x35c654=_0x7f77b8;return this[_0x35c654('0x12')]['removeColumn'](_0x287faa,_0x1344f5)['then'](function(){const _0x4a7f8b=_0x35c654;logger[_0x4a7f8b('0x9')]('Removed\x20column\x20%s\x20from\x20%s',_0x1344f5,_0x287faa);})[_0x35c654('0x2')](function(_0x47b0a8){logger['info'](JSON['stringify'](_0x47b0a8));});},Migration['prototype'][_0x7f77b8('0x3')]=function(_0xc9c1b3,_0x496026,_0x2eaffe){const _0x210a61=_0x7f77b8;return this[_0x210a61('0x12')][_0x210a61('0x3')](_0xc9c1b3,_0x496026,_0x2eaffe)['then'](function(){const _0x2b399a=_0x210a61;logger[_0x2b399a('0x9')](_0x2b399a('0xe'),_0x496026,_0x2eaffe,_0xc9c1b3);})[_0x210a61('0x2')](function(_0xf3002e){const _0x1a3a72=_0x210a61;logger[_0x1a3a72('0x9')](JSON[_0x1a3a72('0x4')](_0xf3002e));});},Migration[_0x7f77b8('0x6')][_0x7f77b8('0x1')]=function(_0x1579c3){const _0x2fdcd6=_0x7f77b8;return this[_0x2fdcd6('0x12')][_0x2fdcd6('0x1')](_0x1579c3)[_0x2fdcd6('0x13')](function(){const _0x1a8d6f=_0x2fdcd6;logger[_0x1a8d6f('0x9')]('table\x20dropped\x20%s',_0x1579c3);})[_0x2fdcd6('0x2')](function(_0xaa4b71){const _0xa9236c=_0x2fdcd6;logger[_0xa9236c('0x9')](JSON[_0xa9236c('0x4')](_0xaa4b71));});},module[_0x7f77b8('0x5')]={'up':function(_0x41c72a,_0x595016){const _0x4a5f15=_0x7f77b8,_0x1c47e4=new Migration(_0x41c72a);_0x1c47e4[_0x4a5f15('0x15')](_0x4a5f15('0x7'),_0x4a5f15('0x8'),{'type':_0x595016[_0x4a5f15('0x14')](_0x4a5f15('0x16'),_0x4a5f15('0x11')),'defaultValue':'integrationTab'}),_0x1c47e4[_0x4a5f15('0x15')](_0x4a5f15('0xb'),_0x4a5f15('0x8'),{'type':_0x595016[_0x4a5f15('0x14')](_0x4a5f15('0x16'),_0x4a5f15('0x11')),'defaultValue':'integrationTab'}),_0x1c47e4[_0x4a5f15('0x1')]('user_has_openchannel_rooms',{'force':!![]}),_0x1c47e4[_0x4a5f15('0x1')](_0x4a5f15('0xc'),{'force':!![]}),_0x1c47e4[_0x4a5f15('0x1')]('openchannel_rooms',{'force':!![]}),_0x1c47e4[_0x4a5f15('0x1')]('openchannel_applications',{'force':!![]}),_0x1c47e4[_0x4a5f15('0x1')](_0x4a5f15('0xf'),{'force':!![]});},'down':function(_0x51ce9a){const _0x4ae33a=_0x7f77b8,_0x511a3a=new Migration(_0x51ce9a);_0x511a3a['removeColumn'](_0x4ae33a('0x7'),'type'),_0x511a3a['removeColumn'](_0x4ae33a('0xb'),_0x4ae33a('0x8'));}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.24.js b/server/migrations/2.0.24.js index 40e08dd..6738c58 100644 --- a/server/migrations/2.0.24.js +++ b/server/migrations/2.0.24.js @@ -1 +1 @@ -const a903_0x4cb0=['Added\x20column\x20%s\x20to\x20%s','addColumn','dropTable','queryInterface','catch','removeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','table\x20dropped\x20%s','info','tools_schedules','exports','Removed\x20column\x20%s\x20from\x20%s','stringify','renameColumn','migration','prototype'];(function(_0x4e0a6e,_0x4cb0ad){const _0x4fd131=function(_0x5bca15){while(--_0x5bca15){_0x4e0a6e['push'](_0x4e0a6e['shift']());}};_0x4fd131(++_0x4cb0ad);}(a903_0x4cb0,0x141));const a903_0x4fd1=function(_0x4e0a6e,_0x4cb0ad){_0x4e0a6e=_0x4e0a6e-0x0;let _0x4fd131=a903_0x4cb0[_0x4e0a6e];return _0x4fd131;};const _0x59caf6=a903_0x4fd1;'use strict';const logger=require('../config/logger')(_0x59caf6('0x0')),Migration=function(_0x5bca15){const _0x4fa423=_0x59caf6;this[_0x4fa423('0x5')]=_0x5bca15;};Migration[_0x59caf6('0x1')][_0x59caf6('0x3')]=function(_0x167e75,_0xc1ab9f,_0x4e016d){const _0x4488cb=_0x59caf6;return this[_0x4488cb('0x5')][_0x4488cb('0x3')](_0x167e75,_0xc1ab9f,_0x4e016d)[_0x4488cb('0x9')](function(){const _0x179957=_0x4488cb;logger[_0x179957('0xb')](_0x179957('0x2'),_0xc1ab9f,_0x167e75);})['catch'](function(_0x14a1ab){const _0x11ebe0=_0x4488cb;logger[_0x11ebe0('0xb')](JSON[_0x11ebe0('0xf')](_0x14a1ab));});},Migration['prototype'][_0x59caf6('0x7')]=function(_0x316855,_0x60a1d2){const _0x514828=_0x59caf6;return this[_0x514828('0x5')]['removeColumn'](_0x316855,_0x60a1d2)[_0x514828('0x9')](function(){const _0x5765a8=_0x514828;logger[_0x5765a8('0xb')](_0x5765a8('0xe'),_0x60a1d2,_0x316855);})[_0x514828('0x6')](function(_0x2cf064){const _0x444057=_0x514828;logger[_0x444057('0xb')](JSON['stringify'](_0x2cf064));});},Migration[_0x59caf6('0x1')][_0x59caf6('0x10')]=function(_0x1654b2,_0x2de5e6,_0x3724e4){const _0x5dcf2d=_0x59caf6;return this[_0x5dcf2d('0x5')]['renameColumn'](_0x1654b2,_0x2de5e6,_0x3724e4)['then'](function(){const _0x3cf4aa=_0x5dcf2d;logger[_0x3cf4aa('0xb')](_0x3cf4aa('0x8'),_0x2de5e6,_0x3724e4,_0x1654b2);})['catch'](function(_0x1208c9){const _0x343e99=_0x5dcf2d;logger[_0x343e99('0xb')](JSON[_0x343e99('0xf')](_0x1208c9));});},Migration[_0x59caf6('0x1')]['dropTable']=function(_0x4c7516){const _0x58c246=_0x59caf6;return this[_0x58c246('0x5')][_0x58c246('0x4')](_0x4c7516)[_0x58c246('0x9')](function(){const _0x3c4561=_0x58c246;logger[_0x3c4561('0xb')](_0x3c4561('0xa'),_0x4c7516);})['catch'](function(_0x328851){const _0x52ec92=_0x58c246;logger[_0x52ec92('0xb')](JSON['stringify'](_0x328851));});},module[_0x59caf6('0xd')]={'up':function(_0x59b846){const _0x31d904=_0x59caf6,_0x4cbfef=new Migration(_0x59b846);_0x4cbfef[_0x31d904('0x4')](_0x31d904('0xc'),{'force':!![]});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.25.js b/server/migrations/2.0.25.js index 612529a..1f22fe2 100644 --- a/server/migrations/2.0.25.js +++ b/server/migrations/2.0.25.js @@ -1 +1 @@ -const a904_0xfd58=['queryInterface','changeColumn','catch','prototype','util','info','ulaw;gsm;alaw','addColumn','inspect','exports','migration','Insert\x20new\x20row\x20in\x20voice_extensions','voice_queues','insertExtension','allow','STRING','Changed\x20column\x20%s\x20in\x20table\x20%s','users','../config/logger','query','Added\x20column\x20%s\x20to\x20%s'];(function(_0x1c6fe7,_0xfd5861){const _0x1df912=function(_0x4e499e){while(--_0x4e499e){_0x1c6fe7['push'](_0x1c6fe7['shift']());}};_0x1df912(++_0xfd5861);}(a904_0xfd58,0x1da));const a904_0x1df9=function(_0x1c6fe7,_0xfd5861){_0x1c6fe7=_0x1c6fe7-0x0;let _0x1df912=a904_0xfd58[_0x1c6fe7];return _0x1df912;};const _0x1cf856=a904_0x1df9;'use strict';const logger=require(_0x1cf856('0x6'))(_0x1cf856('0x13')),util=require(_0x1cf856('0xd')),Migration=function(_0x4e499e){const _0x3b8357=_0x1cf856;this[_0x3b8357('0x9')]=_0x4e499e;};Migration[_0x1cf856('0xc')][_0x1cf856('0x1')]=function(_0x4b9590){const _0x5051f6=_0x1cf856;return this[_0x5051f6('0x9')]['sequelize'][_0x5051f6('0x7')](_0x4b9590)['then'](function(){const _0x4bcf4c=_0x5051f6;logger[_0x4bcf4c('0xe')](_0x4bcf4c('0x14'));})[_0x5051f6('0xb')](function(_0x252d0a){const _0x5bcfb5=_0x5051f6;logger['info'](util[_0x5bcfb5('0x11')](_0x252d0a,{'showHidden':![],'depth':null}));});},Migration[_0x1cf856('0xc')]['changeColumn']=function(_0x59b94e,_0xd47dab,_0x4f9231){const _0x309535=_0x1cf856;return this['queryInterface'][_0x309535('0xa')](_0x59b94e,_0xd47dab,_0x4f9231)['then'](function(){const _0x38c480=_0x309535;logger[_0x38c480('0xe')](_0x38c480('0x4'),_0xd47dab,_0x59b94e);})[_0x309535('0xb')](function(_0x455821){const _0xf6e4ae=_0x309535;logger[_0xf6e4ae('0xe')](util[_0xf6e4ae('0x11')](_0x455821,{'showHidden':![],'depth':null}));});},Migration[_0x1cf856('0xc')]['addColumn']=function(_0x48d455,_0x3c70e0,_0x6b2574){const _0x1172b4=_0x1cf856;return this['queryInterface'][_0x1172b4('0x10')](_0x48d455,_0x3c70e0,_0x6b2574)['then'](function(){const _0x4da5b0=_0x1172b4;logger[_0x4da5b0('0xe')](_0x4da5b0('0x8'),_0x3c70e0,_0x48d455);})['catch'](function(_0x163a28){logger['info'](JSON['stringify'](_0x163a28));});},module[_0x1cf856('0x12')]={'up':function(_0x2b1b57,_0x1eccb5){const _0x2b950c=_0x1cf856,_0x26b4ba=new Migration(_0x2b1b57);_0x26b4ba['insertExtension']('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());'),_0x26b4ba['insertExtension']('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());'),_0x26b4ba['changeColumn'](_0x2b950c('0x5'),_0x2b950c('0x2'),{'type':_0x1eccb5[_0x2b950c('0x3')],'defaultValue':'ulaw;gsm'}),_0x26b4ba[_0x2b950c('0xa')]('tools_trunks',_0x2b950c('0x2'),{'type':_0x1eccb5[_0x2b950c('0x3')],'defaultValue':_0x2b950c('0xf')}),_0x26b4ba[_0x2b950c('0x10')](_0x2b950c('0x0'),'dialPrefix',{'type':_0x1eccb5[_0x2b950c('0x3')],'defaultValue':null});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.26.js b/server/migrations/2.0.26.js index 61e04ff..7d238c0 100644 --- a/server/migrations/2.0.26.js +++ b/server/migrations/2.0.26.js @@ -1 +1 @@ -const a905_0x36c8=['ENUM','ulaw;alaw;gsm','../config/logger','dialCheckDuplicateType','util','users','prototype','STRING','voice_queues','always','addColumn','allow','BOOLEAN','Added\x20column\x20%s\x20to\x20%s','mail_accounts','timeout','sendrpid','tools_trunks','authentication','catch','never','changeColumn','onlyIfOpen','info','inspect','queryInterface','stringify','pai'];(function(_0x4713ba,_0x36c8cc){const _0x4073fa=function(_0x1c26f3){while(--_0x1c26f3){_0x4713ba['push'](_0x4713ba['shift']());}};_0x4073fa(++_0x36c8cc);}(a905_0x36c8,0x163));const a905_0x4073=function(_0x4713ba,_0x36c8cc){_0x4713ba=_0x4713ba-0x0;let _0x4073fa=a905_0x36c8[_0x4713ba];return _0x4073fa;};const _0xa9a2b0=a905_0x4073;'use strict';const logger=require(_0xa9a2b0('0xb'))('migration'),util=require(_0xa9a2b0('0xd')),Migration=function(_0x1c26f3){const _0x4d0760=_0xa9a2b0;this[_0x4d0760('0x6')]=_0x1c26f3;};Migration[_0xa9a2b0('0xf')]['changeColumn']=function(_0x179b14,_0x4b54cf,_0x437f97){const _0x144b3e=_0xa9a2b0;return this[_0x144b3e('0x6')][_0x144b3e('0x2')](_0x179b14,_0x4b54cf,_0x437f97)['then'](function(){const _0x52bd14=_0x144b3e;logger[_0x52bd14('0x4')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4b54cf,_0x179b14);})['catch'](function(_0x145d5c){const _0x4008a2=_0x144b3e;logger[_0x4008a2('0x4')](util[_0x4008a2('0x5')](_0x145d5c,{'showHidden':![],'depth':null}));});},Migration[_0xa9a2b0('0xf')][_0xa9a2b0('0x13')]=function(_0x4da466,_0x38189e,_0x26e2fa){const _0x5aa859=_0xa9a2b0;return this[_0x5aa859('0x6')][_0x5aa859('0x13')](_0x4da466,_0x38189e,_0x26e2fa)['then'](function(){const _0x2fb9dc=_0x5aa859;logger['info'](_0x2fb9dc('0x16'),_0x38189e,_0x4da466);})[_0x5aa859('0x0')](function(_0x2a1289){const _0x2cc2bb=_0x5aa859;logger[_0x2cc2bb('0x4')](JSON[_0x2cc2bb('0x7')](_0x2a1289));});},module['exports']={'up':function(_0x141671,_0x390599){const _0x431994=_0xa9a2b0,_0x1331b6=new Migration(_0x141671);_0x1331b6[_0x431994('0x2')](_0x431994('0x1a'),_0x431994('0x19'),{'type':_0x390599[_0x431994('0x9')]('yes','no',_0x431994('0x8')),'defaultValue':'no'}),_0x1331b6['addColumn']('mail_servers_out',_0x431994('0x1b'),{'type':_0x390599[_0x431994('0x15')],'defaultValue':!![]}),_0x1331b6['changeColumn'](_0x431994('0x11'),_0x431994('0x18'),{'type':_0x390599['INTEGER'](0xb),'defaultValue':0xf}),_0x1331b6['changeColumn'](_0x431994('0x11'),'retry',{'type':_0x390599['INTEGER'](0xb),'defaultValue':0x2}),_0x1331b6[_0x431994('0x2')](_0x431994('0xe'),'allow',{'type':_0x390599[_0x431994('0x10')],'allowNull':![],'defaultValue':_0x431994('0xa')}),_0x1331b6['changeColumn'](_0x431994('0x1a'),_0x431994('0x14'),{'type':_0x390599[_0x431994('0x10')],'allowNull':![],'defaultValue':_0x431994('0xa')}),_0x1331b6[_0x431994('0x13')]('voice_queues',_0x431994('0xc'),{'type':_0x390599['ENUM']('always',_0x431994('0x1'),_0x431994('0x3')),'defaultValue':_0x431994('0x12')}),_0x1331b6[_0x431994('0x13')]('campaigns','dialCheckDuplicateType',{'type':_0x390599['ENUM'](_0x431994('0x12'),'never','onlyIfOpen'),'defaultValue':_0x431994('0x12')}),_0x1331b6['addColumn'](_0x431994('0x17'),'email',{'type':_0x390599[_0x431994('0x10')]});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.27.js b/server/migrations/2.0.27.js index 5ede5ac..12143c4 100644 --- a/server/migrations/2.0.27.js +++ b/server/migrations/2.0.27.js @@ -1 +1 @@ -var a906_0x8f52=['exports'];(function(_0x51ba8d,_0x8f5226){var _0x55c8c9=function(_0x2bee7b){while(--_0x2bee7b){_0x51ba8d['push'](_0x51ba8d['shift']());}};_0x55c8c9(++_0x8f5226);}(a906_0x8f52,0x1a9));var a906_0x55c8=function(_0x51ba8d,_0x8f5226){_0x51ba8d=_0x51ba8d-0x0;var _0x55c8c9=a906_0x8f52[_0x51ba8d];return _0x55c8c9;};var _0x5ab493=a906_0x55c8;'use strict';module[_0x5ab493('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.28.js b/server/migrations/2.0.28.js index ed8a233..12143c4 100644 --- a/server/migrations/2.0.28.js +++ b/server/migrations/2.0.28.js @@ -1 +1 @@ -var a907_0x1251=['exports'];(function(_0x1560bd,_0x12519f){var _0x2b225b=function(_0x11501f){while(--_0x11501f){_0x1560bd['push'](_0x1560bd['shift']());}};_0x2b225b(++_0x12519f);}(a907_0x1251,0xac));var a907_0x2b22=function(_0x1560bd,_0x12519f){_0x1560bd=_0x1560bd-0x0;var _0x2b225b=a907_0x1251[_0x1560bd];return _0x2b225b;};var _0x66c0d0=a907_0x2b22;'use strict';module[_0x66c0d0('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.29.js b/server/migrations/2.0.29.js index e18ebb3..cf2b5af 100644 --- a/server/migrations/2.0.29.js +++ b/server/migrations/2.0.29.js @@ -1 +1 @@ -const a908_0x4526=['dialAMDActive','user_has_chat_rooms','chat_websites','../config/logger','prototype','openchannel_messages','user_has_chat_queues','chat_dispositions','team_has_chat_queues','chat_proactive_actions','exports','calleridnum','final','phoneBarDnd','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());','#AMD\x20After\x20Greeting\x20Silence','sequence','migration','tail','#AMD\x20Between\x20Words\x20Silence','info','dialQueueTimeout','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());','user_has_openchannel_interactions','STRING','#AMD\x20Initial\x20Silence','addColumn','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\x20Total\x20Analysis\x20Time','chat_enquiries','queryInterface','dialAMDInitialSilence','catch','addIndex','dialAMDMinWordLength','dialAMDMaximumWordLength','finally','campaigns','dialAMDGreeting','voice_queues','user_has_chat_interactions','chat_interactions','then','query','dialAMDBetweenWordsSilence','chat_applications','UNSIGNED','chat_messages','enqueue','phoneBarUnconditionalNumber','INTEGER','phone','#AMD\x20Min\x20Word\x20Length','Active/Disactive\x20AMD','changeColumn','dialAMDMaximumNumberOfWords','users','phoneBarNoReply','dialAMDAfterGreetingSilence','Added\x20column\x20%s\x20to\x20%s','stringify','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-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());','dialAMDTotalAnalysisTime','openchannel_interactions','#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)','BOOLEAN','dialAMDSilenceThreshold','dropTable','chat_queues'];(function(_0x6fd37c,_0x45260c){const _0x39c1ce=function(_0x47a013){while(--_0x47a013){_0x6fd37c['push'](_0x6fd37c['shift']());}};_0x39c1ce(++_0x45260c);}(a908_0x4526,0x1de));const a908_0x39c1=function(_0x6fd37c,_0x45260c){_0x6fd37c=_0x6fd37c-0x0;let _0x39c1ce=a908_0x4526[_0x6fd37c];return _0x39c1ce;};const _0x3ee797=a908_0x39c1;'use strict';const logger=require(_0x3ee797('0xf'))(_0x3ee797('0x1d')),Sequence=function(){};Sequence[_0x3ee797('0x10')]['enqueue']=function(_0x47a013){const _0x3aedc2=_0x3ee797;this[_0x3aedc2('0x1e')]=this[_0x3aedc2('0x1e')]?this[_0x3aedc2('0x1e')][_0x3aedc2('0x30')](_0x47a013):_0x47a013();};const Migration=function(_0x23e1ef){const _0x15f314=_0x3ee797;this['queryInterface']=_0x23e1ef,this[_0x15f314('0x1c')]=new Sequence();};Migration[_0x3ee797('0x10')][_0x3ee797('0x42')]=function(_0x5a8324,_0x566659,_0x477c90){const _0x278e66=_0x3ee797,_0x240112=this;this[_0x278e66('0x1c')][_0x278e66('0x3c')](function(){const _0x2e132a=_0x278e66;return _0x240112[_0x2e132a('0x2a')][_0x2e132a('0x42')](_0x5a8324,_0x566659,_0x477c90)['then'](function(){const _0x2fc5c0=_0x2e132a;logger[_0x2fc5c0('0x20')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x566659,_0x5a8324);})[_0x2e132a('0x2c')](function(_0x243cee){const _0x14f0e5=_0x2e132a;logger['info'](JSON[_0x14f0e5('0x2')](_0x243cee));});});},Migration[_0x3ee797('0x10')][_0x3ee797('0x26')]=function(_0x5c9f78,_0x12a600,_0x57437e){const _0xfb2f5=_0x3ee797,_0x257abb=this;this[_0xfb2f5('0x1c')]['enqueue'](function(){const _0x2e4f4a=_0xfb2f5;return _0x257abb[_0x2e4f4a('0x2a')]['addColumn'](_0x5c9f78,_0x12a600,_0x57437e)[_0x2e4f4a('0x36')](function(){const _0x231b1e=_0x2e4f4a;logger[_0x231b1e('0x20')](_0x231b1e('0x1'),_0x12a600,_0x5c9f78);})[_0x2e4f4a('0x2c')](function(_0xcd0ef3){const _0xc4c173=_0x2e4f4a;logger[_0xc4c173('0x20')](JSON['stringify'](_0xcd0ef3));});});},Migration['prototype'][_0x3ee797('0xa')]=function(_0xd7ead6){const _0x498402=_0x3ee797,_0x2a99bd=this;this[_0x498402('0x1c')][_0x498402('0x3c')](function(){const _0x3595ae=_0x498402;return _0x2a99bd[_0x3595ae('0x2a')][_0x3595ae('0xa')](_0xd7ead6,{'force':!![]})[_0x3595ae('0x36')](function(){const _0x3e21cc=_0x3595ae;logger[_0x3e21cc('0x20')]('table\x20dropped\x20%s',_0xd7ead6);})[_0x3595ae('0x2c')](function(_0x10cf1d){const _0x361e30=_0x3595ae;logger[_0x361e30('0x20')](JSON['stringify'](_0x10cf1d));});});},Migration[_0x3ee797('0x10')][_0x3ee797('0x2d')]=function(_0x553085,_0x4cd3c7,_0x315b45){const _0x61291=_0x3ee797,_0x479505=this;this['sequence'][_0x61291('0x3c')](function(){const _0x2ce42f=_0x61291;return _0x479505[_0x2ce42f('0x2a')]['addIndex'](_0x553085,_0x4cd3c7,{'indexName':_0x315b45})['then'](function(){const _0x5d6398=_0x2ce42f;logger[_0x5d6398('0x20')]('addIndex\x20%s\x20%s\x20%s',_0x553085,_0x4cd3c7[_0x5d6398('0x3')](','),_0x315b45);})[_0x2ce42f('0x2c')](function(_0x2e9827){const _0x2d0ba7=_0x2ce42f;logger[_0x2d0ba7('0x20')](JSON[_0x2d0ba7('0x2')](_0x2e9827));});});},Migration[_0x3ee797('0x10')][_0x3ee797('0x37')]=function(_0x5abe91){const _0x555b93=_0x3ee797,_0x1c8805=this;this[_0x555b93('0x1c')][_0x555b93('0x3c')](function(){const _0x2bb2b9=_0x555b93;return _0x1c8805[_0x2bb2b9('0x2a')]['sequelize'][_0x2bb2b9('0x37')](_0x5abe91)[_0x2bb2b9('0x36')](function(){const _0x5d0fd5=_0x2bb2b9;logger[_0x5d0fd5('0x20')]('query\x20%s',_0x5abe91);})[_0x2bb2b9('0x2c')](function(_0x39ea03){const _0x166dd8=_0x2bb2b9;logger['info'](JSON[_0x166dd8('0x2')](_0x39ea03));});});},Migration['prototype'][_0x3ee797('0x18')]=function(_0x44befe){const _0x4cf6e8=_0x3ee797;this[_0x4cf6e8('0x1c')][_0x4cf6e8('0x3c')](function(){return _0x44befe();});},module[_0x3ee797('0x16')]={'up':function(_0x42e6ad,_0x541b1f){return new Promise(function(_0x566c92){const _0xaf0a34=a908_0x39c1,_0x361967=new Migration(_0x42e6ad);_0x361967[_0xaf0a34('0xa')](_0xaf0a34('0xd')),_0x361967[_0xaf0a34('0xa')](_0xaf0a34('0x29')),_0x361967[_0xaf0a34('0xa')](_0xaf0a34('0x3b')),_0x361967[_0xaf0a34('0xa')](_0xaf0a34('0x15')),_0x361967[_0xaf0a34('0xa')](_0xaf0a34('0x13')),_0x361967[_0xaf0a34('0xa')](_0xaf0a34('0x39')),_0x361967[_0xaf0a34('0xa')](_0xaf0a34('0x34')),_0x361967[_0xaf0a34('0xa')](_0xaf0a34('0x35')),_0x361967[_0xaf0a34('0xa')](_0xaf0a34('0x14')),_0x361967[_0xaf0a34('0xa')](_0xaf0a34('0x12')),_0x361967[_0xaf0a34('0xa')](_0xaf0a34('0xb')),_0x361967[_0xaf0a34('0xa')](_0xaf0a34('0xe')),_0x361967[_0xaf0a34('0xa')](_0xaf0a34('0x11')),_0x361967[_0xaf0a34('0xa')](_0xaf0a34('0x23')),_0x361967[_0xaf0a34('0xa')](_0xaf0a34('0x6')),_0x361967[_0xaf0a34('0x2d')]('cm_hopper',[_0xaf0a34('0x3f')],_0xaf0a34('0x3f')),_0x361967['addIndex']('cm_hopper_final',[_0xaf0a34('0x17')],'calleridnum'),_0x361967[_0xaf0a34('0x26')](_0xaf0a34('0x44'),_0xaf0a34('0x3d'),{'type':_0x541b1f['STRING']}),_0x361967[_0xaf0a34('0x26')](_0xaf0a34('0x44'),'phoneBarNoReplyNumber',{'type':_0x541b1f[_0xaf0a34('0x24')]}),_0x361967[_0xaf0a34('0x26')](_0xaf0a34('0x44'),'phoneBarBusyNumber',{'type':_0x541b1f[_0xaf0a34('0x24')]}),_0x361967[_0xaf0a34('0x26')]('users','phoneBarUnconditional',{'type':_0x541b1f[_0xaf0a34('0x8')],'defaultValue':![]}),_0x361967[_0xaf0a34('0x26')](_0xaf0a34('0x44'),_0xaf0a34('0x45'),{'type':_0x541b1f[_0xaf0a34('0x8')],'defaultValue':![]}),_0x361967[_0xaf0a34('0x26')](_0xaf0a34('0x44'),'phoneBarBusy',{'type':_0x541b1f['BOOLEAN'],'defaultValue':![]}),_0x361967['addColumn'](_0xaf0a34('0x44'),_0xaf0a34('0x19'),{'type':_0x541b1f[_0xaf0a34('0x8')],'defaultValue':!![]}),_0x361967[_0xaf0a34('0x42')](_0xaf0a34('0x31'),_0xaf0a34('0x21'),{'type':_0x541b1f[_0xaf0a34('0x3e')](0x3)[_0xaf0a34('0x3a')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)'}),_0x361967[_0xaf0a34('0x26')]('voice_queues','dialAMDActive',{'type':_0x541b1f[_0xaf0a34('0x8')],'defaultValue':0x0,'comment':_0xaf0a34('0x41')}),_0x361967[_0xaf0a34('0x26')](_0xaf0a34('0x33'),_0xaf0a34('0x2b'),{'type':_0x541b1f['INTEGER'](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x9c4,'comment':_0xaf0a34('0x25')}),_0x361967['addColumn'](_0xaf0a34('0x33'),_0xaf0a34('0x32'),{'type':_0x541b1f['INTEGER'](0x9)[_0xaf0a34('0x3a')],'validate':{'min':0x0},'defaultValue':0x5dc,'comment':'#AMD\x20Greeting'}),_0x361967[_0xaf0a34('0x26')](_0xaf0a34('0x33'),'dialAMDAfterGreetingSilence',{'type':_0x541b1f['INTEGER'](0x9)[_0xaf0a34('0x3a')],'validate':{'min':0x0},'defaultValue':0x320,'comment':_0xaf0a34('0x1b')}),_0x361967[_0xaf0a34('0x26')]('voice_queues','dialAMDTotalAnalysisTime',{'type':_0x541b1f['INTEGER'](0x9)[_0xaf0a34('0x3a')],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0xaf0a34('0x28')}),_0x361967['addColumn']('voice_queues','dialAMDMinWordLength',{'type':_0x541b1f[_0xaf0a34('0x3e')](0x9)[_0xaf0a34('0x3a')],'validate':{'min':0x0},'defaultValue':0x64,'comment':_0xaf0a34('0x40')}),_0x361967[_0xaf0a34('0x26')]('voice_queues',_0xaf0a34('0x38'),{'type':_0x541b1f[_0xaf0a34('0x3e')](0x9)[_0xaf0a34('0x3a')],'validate':{'min':0x0},'defaultValue':0x32,'comment':_0xaf0a34('0x1f')}),_0x361967[_0xaf0a34('0x26')](_0xaf0a34('0x33'),_0xaf0a34('0x43'),{'type':_0x541b1f['INTEGER'](0x9)[_0xaf0a34('0x3a')],'validate':{'min':0x0},'defaultValue':0x3,'comment':'#AMD\x20Maximum\x20Number\x20Of\x20Words'}),_0x361967[_0xaf0a34('0x26')](_0xaf0a34('0x33'),_0xaf0a34('0x9'),{'type':_0x541b1f[_0xaf0a34('0x3e')](0x5)['UNSIGNED'],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0xaf0a34('0x7')}),_0x361967[_0xaf0a34('0x26')]('voice_queues',_0xaf0a34('0x2f'),{'type':_0x541b1f[_0xaf0a34('0x3e')](0x9)[_0xaf0a34('0x3a')],'validate':{'min':0x0},'defaultValue':0x1388,'comment':'#AMD\x20Maximum\x20Word\x20Length'}),_0x361967[_0xaf0a34('0x26')](_0xaf0a34('0x31'),_0xaf0a34('0xc'),{'type':_0x541b1f['BOOLEAN'],'defaultValue':0x0,'comment':_0xaf0a34('0x41')}),_0x361967[_0xaf0a34('0x26')]('campaigns',_0xaf0a34('0x2b'),{'type':_0x541b1f['INTEGER'](0x9)[_0xaf0a34('0x3a')],'validate':{'min':0x0},'defaultValue':0x9c4,'comment':'#AMD\x20Initial\x20Silence'}),_0x361967['addColumn'](_0xaf0a34('0x31'),_0xaf0a34('0x32'),{'type':_0x541b1f[_0xaf0a34('0x3e')](0x9)[_0xaf0a34('0x3a')],'validate':{'min':0x0},'defaultValue':0x5dc,'comment':'#AMD\x20Greeting'}),_0x361967[_0xaf0a34('0x26')](_0xaf0a34('0x31'),_0xaf0a34('0x0'),{'type':_0x541b1f[_0xaf0a34('0x3e')](0x9)[_0xaf0a34('0x3a')],'validate':{'min':0x0},'defaultValue':0x320,'comment':_0xaf0a34('0x1b')}),_0x361967[_0xaf0a34('0x26')](_0xaf0a34('0x31'),_0xaf0a34('0x5'),{'type':_0x541b1f[_0xaf0a34('0x3e')](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0xaf0a34('0x28')}),_0x361967[_0xaf0a34('0x26')](_0xaf0a34('0x31'),_0xaf0a34('0x2e'),{'type':_0x541b1f[_0xaf0a34('0x3e')](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x64,'comment':_0xaf0a34('0x40')}),_0x361967[_0xaf0a34('0x26')](_0xaf0a34('0x31'),_0xaf0a34('0x38'),{'type':_0x541b1f[_0xaf0a34('0x3e')](0x9)[_0xaf0a34('0x3a')],'validate':{'min':0x0},'defaultValue':0x32,'comment':_0xaf0a34('0x1f')}),_0x361967[_0xaf0a34('0x26')](_0xaf0a34('0x31'),_0xaf0a34('0x43'),{'type':_0x541b1f['INTEGER'](0x9)[_0xaf0a34('0x3a')],'validate':{'min':0x0},'defaultValue':0x3,'comment':'#AMD\x20Maximum\x20Number\x20Of\x20Words'}),_0x361967[_0xaf0a34('0x26')](_0xaf0a34('0x31'),_0xaf0a34('0x9'),{'type':_0x541b1f[_0xaf0a34('0x3e')](0x5)['UNSIGNED'],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0xaf0a34('0x7')}),_0x361967[_0xaf0a34('0x26')](_0xaf0a34('0x31'),_0xaf0a34('0x2f'),{'type':_0x541b1f['INTEGER'](0x9)[_0xaf0a34('0x3a')],'validate':{'min':0x0},'defaultValue':0x1388,'comment':'#AMD\x20Maximum\x20Word\x20Length'}),_0x361967[_0xaf0a34('0x37')]('DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20exten\x20=\x20\x27xcally-motion-dialer\x27;'),_0x361967['query'](_0xaf0a34('0x27')),_0x361967['query'](_0xaf0a34('0x22')),_0x361967[_0xaf0a34('0x37')](_0xaf0a34('0x1a')),_0x361967[_0xaf0a34('0x37')]('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());'),_0x361967[_0xaf0a34('0x37')]('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());'),_0x361967['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\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());'),_0x361967[_0xaf0a34('0x37')]('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());'),_0x361967[_0xaf0a34('0x37')]('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());'),_0x361967[_0xaf0a34('0x37')]('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());'),_0x361967[_0xaf0a34('0x37')](_0xaf0a34('0x4')),_0x361967[_0xaf0a34('0x37')]('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());'),_0x361967[_0xaf0a34('0x18')](_0x566c92);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.30.js b/server/migrations/2.0.30.js index f62fa39..1fa6ec0 100644 --- a/server/migrations/2.0.30.js +++ b/server/migrations/2.0.30.js @@ -1 +1 @@ -const a909_0x5e41=['table\x20dropped\x20%s','info','user_has_chat_interactions','enqueue','addColumn','INTEGER','stringify','chat_enquiries','finally','changeColumn','then','join','query','dropTable','Added\x20column\x20%s\x20to\x20%s','addIndex','prototype','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','chat_applications','query\x20%s','chat_websites','queryInterface','final','chat_websites_fields','user_has_chat_queues','catch','chat_visitors','exports','UNSIGNED','chat_proactive_actions','sequence','team_has_chat_queues','chat_interactions','dialQueueTimeout','migration'];(function(_0x54d8a8,_0x5e4160){const _0x689a61=function(_0x1421fc){while(--_0x1421fc){_0x54d8a8['push'](_0x54d8a8['shift']());}};_0x689a61(++_0x5e4160);}(a909_0x5e41,0x11f));const a909_0x689a=function(_0x54d8a8,_0x5e4160){_0x54d8a8=_0x54d8a8-0x0;let _0x689a61=a909_0x5e41[_0x54d8a8];return _0x689a61;};const _0x294541=a909_0x689a;'use strict';const logger=require('../config/logger')(_0x294541('0x0')),Sequence=function(){};Sequence[_0x294541('0x11')]['enqueue']=function(_0x1421fc){const _0x309f65=_0x294541;this['tail']=this[_0x309f65('0x12')]?this[_0x309f65('0x12')][_0x309f65('0x9')](_0x1421fc):_0x1421fc();};const Migration=function(_0x2dffc9){const _0x362ccb=_0x294541;this[_0x362ccb('0x17')]=_0x2dffc9,this[_0x362ccb('0x20')]=new Sequence();};Migration[_0x294541('0x11')]['changeColumn']=function(_0x51472d,_0x5a1aa7,_0x59f7eb){const _0x1cc676=_0x294541,_0x5e95ff=this;this[_0x1cc676('0x20')][_0x1cc676('0x4')](function(){const _0x2ad12a=_0x1cc676;return _0x5e95ff[_0x2ad12a('0x17')][_0x2ad12a('0xa')](_0x51472d,_0x5a1aa7,_0x59f7eb)[_0x2ad12a('0xb')](function(){const _0xc88479=_0x2ad12a;logger[_0xc88479('0x2')](_0xc88479('0x13'),_0x5a1aa7,_0x51472d);})['catch'](function(_0x50c495){const _0xd3e037=_0x2ad12a;logger[_0xd3e037('0x2')](JSON[_0xd3e037('0x7')](_0x50c495));});});},Migration[_0x294541('0x11')][_0x294541('0x5')]=function(_0x95d779,_0x42cccc,_0x1830a9){const _0x593887=_0x294541,_0x47911b=this;this[_0x593887('0x20')][_0x593887('0x4')](function(){const _0x35fe10=_0x593887;return _0x47911b[_0x35fe10('0x17')][_0x35fe10('0x5')](_0x95d779,_0x42cccc,_0x1830a9)[_0x35fe10('0xb')](function(){const _0x5c7905=_0x35fe10;logger[_0x5c7905('0x2')](_0x5c7905('0xf'),_0x42cccc,_0x95d779);})['catch'](function(_0x13cea4){const _0x2a4547=_0x35fe10;logger['info'](JSON[_0x2a4547('0x7')](_0x13cea4));});});},Migration[_0x294541('0x11')]['dropTable']=function(_0xfc7dc2){const _0x443acb=_0x294541,_0x235366=this;this[_0x443acb('0x20')]['enqueue'](function(){const _0x3b9c0b=_0x443acb;return _0x235366['queryInterface'][_0x3b9c0b('0xe')](_0xfc7dc2,{'force':!![]})[_0x3b9c0b('0xb')](function(){const _0x30ad1f=_0x3b9c0b;logger[_0x30ad1f('0x2')](_0x30ad1f('0x1'),_0xfc7dc2);})['catch'](function(_0x3f0872){const _0x521c80=_0x3b9c0b;logger[_0x521c80('0x2')](JSON[_0x521c80('0x7')](_0x3f0872));});});},Migration[_0x294541('0x11')][_0x294541('0x10')]=function(_0x68bbdf,_0xbac553,_0xd3234){const _0x3e8c10=this;this['sequence']['enqueue'](function(){const _0x41a96f=a909_0x689a;return _0x3e8c10[_0x41a96f('0x17')][_0x41a96f('0x10')](_0x68bbdf,_0xbac553,{'indexName':_0xd3234})['then'](function(){const _0x2b46e0=_0x41a96f;logger[_0x2b46e0('0x2')]('addIndex\x20%s\x20%s\x20%s',_0x68bbdf,_0xbac553[_0x2b46e0('0xc')](','),_0xd3234);})['catch'](function(_0x2c62bf){const _0x52eaad=_0x41a96f;logger[_0x52eaad('0x2')](JSON['stringify'](_0x2c62bf));});});},Migration[_0x294541('0x11')][_0x294541('0xd')]=function(_0x4d5aa6){const _0xa096c6=_0x294541,_0x5b926e=this;this[_0xa096c6('0x20')][_0xa096c6('0x4')](function(){const _0x91d7d=_0xa096c6;return _0x5b926e[_0x91d7d('0x17')]['sequelize'][_0x91d7d('0xd')](_0x4d5aa6)[_0x91d7d('0xb')](function(){const _0x495a13=_0x91d7d;logger['info'](_0x495a13('0x15'),_0x4d5aa6);})[_0x91d7d('0x1b')](function(_0x1daa5a){const _0x568ee1=_0x91d7d;logger[_0x568ee1('0x2')](JSON['stringify'](_0x1daa5a));});});},Migration[_0x294541('0x11')][_0x294541('0x18')]=function(_0x5b420a){const _0x16110b=_0x294541;this[_0x16110b('0x20')][_0x16110b('0x4')](function(){return _0x5b420a();});},module[_0x294541('0x1d')]={'up':function(_0x7e3c83,_0x1861c6){return new Promise(function(_0x252642){const _0x38064d=a909_0x689a,_0x207c69=new Migration(_0x7e3c83);_0x207c69[_0x38064d('0xe')]('user_has_chat_rooms'),_0x207c69[_0x38064d('0xe')](_0x38064d('0x8')),_0x207c69[_0x38064d('0xe')]('chat_messages'),_0x207c69[_0x38064d('0xe')](_0x38064d('0x1f')),_0x207c69[_0x38064d('0xe')]('chat_dispositions'),_0x207c69[_0x38064d('0xe')](_0x38064d('0x14')),_0x207c69[_0x38064d('0xe')](_0x38064d('0x3')),_0x207c69[_0x38064d('0xe')](_0x38064d('0x22')),_0x207c69[_0x38064d('0xe')](_0x38064d('0x21')),_0x207c69[_0x38064d('0xe')](_0x38064d('0x1a')),_0x207c69[_0x38064d('0xe')]('chat_queues'),_0x207c69[_0x38064d('0xe')](_0x38064d('0x1c')),_0x207c69['dropTable'](_0x38064d('0x19')),_0x207c69[_0x38064d('0xe')](_0x38064d('0x16')),_0x207c69[_0x38064d('0xa')]('voice_queues',_0x38064d('0x23'),{'type':_0x1861c6[_0x38064d('0x6')](0x3)[_0x38064d('0x1e')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)'}),_0x207c69[_0x38064d('0x18')](_0x252642);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.31.js b/server/migrations/2.0.31.js index 9b4acda..175b236 100644 --- a/server/migrations/2.0.31.js +++ b/server/migrations/2.0.31.js @@ -1 +1 @@ -const a910_0x29ac=['user_has_sms_interactions','then','stringify','ALTER\x20TABLE\x20chat_websites\x20DROP\x20COLUMN\x20OfflineTemplateId','Added\x20column\x20%s\x20to\x20%s','prototype','addColumn','questionId','token','addIndex','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());','STRING','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','IntervalId','sms_messages','users','exports','enqueue','migration','tail','dropTable','transfer','report_jscripty_questions','info','report_queue','final','addIndex\x20%s\x20%s\x20%s','query','query\x20%s','sms_queues','chat_websites','timezone','sms_interactions','BOOLEAN','queryInterface','catch','facebook','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());','INTEGER','cm_contacts','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','transferuniqueid','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());','user_has_sms_queues','report_jscripty_answers','transferexten','ALTER\x20TABLE\x20chat_websites\x20DROP\x20FOREIGN\x20KEY\x20chat_websites_ibfk_2','sequence','twitter','join','table\x20dropped\x20%s'];(function(_0x4fc5da,_0x29ac9e){const _0xc853a7=function(_0x40bb3d){while(--_0x40bb3d){_0x4fc5da['push'](_0x4fc5da['shift']());}};_0xc853a7(++_0x29ac9e);}(a910_0x29ac,0xb9));const a910_0xc853=function(_0x4fc5da,_0x29ac9e){_0x4fc5da=_0x4fc5da-0x0;let _0xc853a7=a910_0x29ac[_0x4fc5da];return _0xc853a7;};const _0x403e76=a910_0xc853;'use strict';const logger=require('../config/logger')(_0x403e76('0x2a')),Sequence=function(){};Sequence[_0x403e76('0x1c')][_0x403e76('0x29')]=function(_0x40bb3d){const _0x2e0822=_0x403e76;this[_0x2e0822('0x2b')]=this[_0x2e0822('0x2b')]?this[_0x2e0822('0x2b')][_0x2e0822('0x24')](_0x40bb3d):_0x40bb3d();};const Migration=function(_0x1831bf){const _0x539cd8=_0x403e76;this[_0x539cd8('0x6')]=_0x1831bf,this[_0x539cd8('0x13')]=new Sequence();};Migration[_0x403e76('0x1c')]['changeColumn']=function(_0x5b4763,_0x190da9,_0xe00113){const _0x386751=_0x403e76,_0x2cb6cc=this;this[_0x386751('0x13')][_0x386751('0x29')](function(){const _0x3a9bc4=_0x386751;return _0x2cb6cc[_0x3a9bc4('0x6')]['changeColumn'](_0x5b4763,_0x190da9,_0xe00113)[_0x3a9bc4('0x18')](function(){const _0x258ff7=_0x3a9bc4;logger[_0x258ff7('0x2f')](_0x258ff7('0x23'),_0x190da9,_0x5b4763);})[_0x3a9bc4('0x7')](function(_0x12e6e0){const _0x3b1aa4=_0x3a9bc4;logger[_0x3b1aa4('0x2f')](JSON[_0x3b1aa4('0x19')](_0x12e6e0));});});},Migration['prototype']['addColumn']=function(_0x3ddd52,_0x3db71c,_0x11d07e){const _0x1953bb=_0x403e76,_0x46da85=this;this['sequence'][_0x1953bb('0x29')](function(){const _0x4b841d=_0x1953bb;return _0x46da85[_0x4b841d('0x6')][_0x4b841d('0x1d')](_0x3ddd52,_0x3db71c,_0x11d07e)[_0x4b841d('0x18')](function(){const _0x3999a5=_0x4b841d;logger[_0x3999a5('0x2f')](_0x3999a5('0x1b'),_0x3db71c,_0x3ddd52);})[_0x4b841d('0x7')](function(_0x2ceb2a){const _0x4aef59=_0x4b841d;logger[_0x4aef59('0x2f')](JSON[_0x4aef59('0x19')](_0x2ceb2a));});});},Migration[_0x403e76('0x1c')][_0x403e76('0x2c')]=function(_0x402c88){const _0x20511d=_0x403e76,_0x10d105=this;this['sequence'][_0x20511d('0x29')](function(){const _0xb4a498=_0x20511d;return _0x10d105[_0xb4a498('0x6')]['dropTable'](_0x402c88,{'force':!![]})[_0xb4a498('0x18')](function(){const _0x53760a=_0xb4a498;logger['info'](_0x53760a('0x16'),_0x402c88);})['catch'](function(_0x31a93f){const _0x410831=_0xb4a498;logger['info'](JSON[_0x410831('0x19')](_0x31a93f));});});},Migration[_0x403e76('0x1c')][_0x403e76('0x20')]=function(_0x527ccb,_0xe30d4a,_0x1732d4){const _0x5d9990=_0x403e76,_0x56db78=this;this[_0x5d9990('0x13')][_0x5d9990('0x29')](function(){const _0x53a0c7=_0x5d9990;return _0x56db78['queryInterface'][_0x53a0c7('0x20')](_0x527ccb,_0xe30d4a,{'indexName':_0x1732d4})[_0x53a0c7('0x18')](function(){const _0x518e0f=_0x53a0c7;logger[_0x518e0f('0x2f')](_0x518e0f('0x32'),_0x527ccb,_0xe30d4a[_0x518e0f('0x15')](','),_0x1732d4);})[_0x53a0c7('0x7')](function(_0x3c29a1){const _0x38f6d9=_0x53a0c7;logger[_0x38f6d9('0x2f')](JSON[_0x38f6d9('0x19')](_0x3c29a1));});});},Migration[_0x403e76('0x1c')][_0x403e76('0x33')]=function(_0x2d78f4){const _0x380dfa=_0x403e76,_0x34cc6b=this;this[_0x380dfa('0x13')][_0x380dfa('0x29')](function(){const _0x541015=_0x380dfa;return _0x34cc6b[_0x541015('0x6')]['sequelize'][_0x541015('0x33')](_0x2d78f4)[_0x541015('0x18')](function(){const _0x20aa5b=_0x541015;logger[_0x20aa5b('0x2f')](_0x20aa5b('0x0'),_0x2d78f4);})[_0x541015('0x7')](function(_0x568091){const _0x2d28b5=_0x541015;logger['info'](JSON[_0x2d28b5('0x19')](_0x568091));});});},Migration['prototype'][_0x403e76('0x31')]=function(_0x4c9add){const _0x25f1f4=_0x403e76;this[_0x25f1f4('0x13')][_0x25f1f4('0x29')](function(){return _0x4c9add();});},module[_0x403e76('0x28')]={'up':function(_0x2d96f7,_0x2743ae){return new Promise(function(_0x4d7052){const _0x13da53=a910_0xc853,_0x3d1a62=new Migration(_0x2d96f7);_0x3d1a62[_0x13da53('0x2c')](_0x13da53('0x26')),_0x3d1a62[_0x13da53('0x2c')]('sms_dispositions'),_0x3d1a62[_0x13da53('0x2c')]('sms_applications'),_0x3d1a62['dropTable'](_0x13da53('0x17')),_0x3d1a62['dropTable'](_0x13da53('0x4')),_0x3d1a62[_0x13da53('0x2c')]('team_has_sms_queues'),_0x3d1a62[_0x13da53('0x2c')](_0x13da53('0xf')),_0x3d1a62[_0x13da53('0x2c')](_0x13da53('0x1')),_0x3d1a62[_0x13da53('0x2c')]('sms_accounts'),_0x3d1a62[_0x13da53('0x1d')](_0x13da53('0xb'),_0x13da53('0x8'),{'type':_0x2743ae[_0x13da53('0x22')]}),_0x3d1a62[_0x13da53('0x1d')]('cm_contacts',_0x13da53('0x14'),{'type':_0x2743ae[_0x13da53('0x22')]}),_0x3d1a62['query'](_0x13da53('0x12')),_0x3d1a62[_0x13da53('0x33')](_0x13da53('0x1a')),_0x3d1a62[_0x13da53('0x1d')](_0x13da53('0x2'),_0x13da53('0x3'),{'type':_0x2743ae['STRING']}),_0x3d1a62[_0x13da53('0x1d')](_0x13da53('0x2'),_0x13da53('0x1f'),{'type':_0x2743ae[_0x13da53('0x22')]}),_0x3d1a62[_0x13da53('0x1d')]('chat_websites',_0x13da53('0x25'),{'type':_0x2743ae[_0x13da53('0xa')](0xb)}),_0x3d1a62[_0x13da53('0x33')](_0x13da53('0xc')),_0x3d1a62[_0x13da53('0x1d')](_0x13da53('0x30'),_0x13da53('0x2d'),{'type':_0x2743ae['BOOLEAN'],'defaultValue':![]}),_0x3d1a62[_0x13da53('0x1d')]('report_queue','transfertype',{'type':_0x2743ae[_0x13da53('0x22')],'comment':'FORWARD,\x20BLIND,\x20ATTENDED'}),_0x3d1a62['addColumn'](_0x13da53('0x30'),_0x13da53('0x11'),{'type':_0x2743ae[_0x13da53('0x22')]}),_0x3d1a62[_0x13da53('0x1d')]('report_queue',_0x13da53('0xd'),{'type':_0x2743ae['STRING']}),_0x3d1a62[_0x13da53('0x1d')](_0x13da53('0x10'),_0x13da53('0x1e'),{'type':_0x2743ae[_0x13da53('0x22')]}),_0x3d1a62['addColumn'](_0x13da53('0x2e'),_0x13da53('0x1e'),{'type':_0x2743ae[_0x13da53('0x22')]}),_0x3d1a62[_0x13da53('0x1d')](_0x13da53('0x27'),'phoneBarUnansweredCallBadge',{'type':_0x2743ae[_0x13da53('0x5')],'defaultValue':!![]}),_0x3d1a62[_0x13da53('0x33')](_0x13da53('0x21')),_0x3d1a62[_0x13da53('0x33')](_0x13da53('0x9')),_0x3d1a62[_0x13da53('0x33')]('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());'),_0x3d1a62[_0x13da53('0x33')](_0x13da53('0xe')),_0x3d1a62[_0x13da53('0x33')]('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());'),_0x3d1a62[_0x13da53('0x31')](_0x4d7052);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.32.js b/server/migrations/2.0.32.js index 12143c4..b2989f5 100644 --- a/server/migrations/2.0.32.js +++ b/server/migrations/2.0.32.js @@ -1 +1 @@ -'use strict';module['exports']={'up':function(){},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.33.js b/server/migrations/2.0.33.js index ff32bd2..1498bb8 100644 --- a/server/migrations/2.0.33.js +++ b/server/migrations/2.0.33.js @@ -1 +1 @@ -const a912_0x2eb8=['ratingType','query\x20%s','#9f946a','sequelize','thumb','user_has_chat_queues','migration','chat_interactions','tail','TEXT','Send','rejectMethod','Agent','actions','chat_websites','queryInterface','fax_attachments','fax_accounts','sitepic','enqueue','fax_dispositions','query','acceptMethod','ratingMessage','fidelity','user_has_fax_interactions','final','Added\x20column\x20%s\x20to\x20%s','closeUrl','user_has_fax_rooms','color','team_has_fax_queues','stringify','mapKeyOffline','finally','sequence','prototype','BOOLEAN','fax_interactions','priority','rejectUrl','fax_rooms','color_button','then','email','user_has_openchannel_queues','closingMessageButton','enableRating','closingMessage','fax_messages','Changed\x20column\x20%s\x20in\x20table\x20%s','info','removeColumn','timeout','forwardTranscript','dropTable','fax_queues','addIndex\x20%s\x20%s\x20%s','changeColumn','ratingValue','table\x20dropped\x20%s','star','STRING','addColumn','fax_applications','acceptUrl','INTEGER','cm_hopper','util','catch','assigned','addIndex','forwardOfflineAddress','UNSIGNED','closeMethod'];(function(_0x1be6df,_0x2eb83f){const _0x3c2141=function(_0x3345d7){while(--_0x3345d7){_0x1be6df['push'](_0x1be6df['shift']());}};_0x3c2141(++_0x2eb83f);}(a912_0x2eb8,0xb6));const a912_0x3c21=function(_0x1be6df,_0x2eb83f){_0x1be6df=_0x1be6df-0x0;let _0x3c2141=a912_0x2eb8[_0x1be6df];return _0x3c2141;};const _0x3d2f30=a912_0x3c21;'use strict';const logger=require('../config/logger')(_0x3d2f30('0x31')),util=require(_0x3d2f30('0x24')),Sequence=function(){};Sequence[_0x3d2f30('0x4')][_0x3d2f30('0x3e')]=function(_0x3345d7){const _0x48ac38=_0x3d2f30;this[_0x48ac38('0x33')]=this['tail']?this[_0x48ac38('0x33')][_0x48ac38('0x2')](_0x3345d7):_0x3345d7();};const Migration=function(_0x4ec7ae){this['queryInterface']=_0x4ec7ae,this['sequence']=new Sequence();};Migration[_0x3d2f30('0x4')][_0x3d2f30('0x1a')]=function(_0x5bd2bc,_0x41ebea,_0x44e346){const _0x3673b4=_0x3d2f30,_0xf34e8e=this;this[_0x3673b4('0x3')][_0x3673b4('0x3e')](function(){const _0x403e0f=_0x3673b4;return _0xf34e8e[_0x403e0f('0x3a')][_0x403e0f('0x1a')](_0x5bd2bc,_0x41ebea,_0x44e346)[_0x403e0f('0xb')](function(){const _0x4ef89c=_0x403e0f;logger['info'](_0x4ef89c('0x12'),_0x41ebea,_0x5bd2bc);})['catch'](function(_0x12314a){const _0x4bb967=_0x403e0f;logger[_0x4bb967('0x13')](JSON['stringify'](_0x12314a));});});},Migration[_0x3d2f30('0x4')][_0x3d2f30('0x1f')]=function(_0x30f877,_0x3c9467,_0x570e54){const _0x513a71=_0x3d2f30,_0x2de8a5=this;this['sequence'][_0x513a71('0x3e')](function(){const _0x505b3b=_0x513a71;return _0x2de8a5[_0x505b3b('0x3a')][_0x505b3b('0x1f')](_0x30f877,_0x3c9467,_0x570e54)[_0x505b3b('0xb')](function(){const _0x962209=_0x505b3b;logger[_0x962209('0x13')](_0x962209('0x46'),_0x3c9467,_0x30f877);})[_0x505b3b('0x25')](function(_0x398e9b){const _0x24de3a=_0x505b3b;logger[_0x24de3a('0x13')](JSON[_0x24de3a('0x0')](_0x398e9b));});});},Migration['prototype'][_0x3d2f30('0x17')]=function(_0x3ca9db){const _0x38b446=_0x3d2f30,_0x89a2ba=this;this[_0x38b446('0x3')][_0x38b446('0x3e')](function(){const _0xc89a6e=_0x38b446;return _0x89a2ba[_0xc89a6e('0x3a')]['dropTable'](_0x3ca9db,{'force':!![]})[_0xc89a6e('0xb')](function(){const _0x57c52d=_0xc89a6e;logger[_0x57c52d('0x13')](_0x57c52d('0x1c'),_0x3ca9db);})[_0xc89a6e('0x25')](function(_0x28dd1e){const _0x2d4042=_0xc89a6e;logger[_0x2d4042('0x13')](JSON[_0x2d4042('0x0')](_0x28dd1e));});});},Migration[_0x3d2f30('0x4')][_0x3d2f30('0x27')]=function(_0x3e7408,_0x246217,_0x1cab9b){const _0x33f080=_0x3d2f30,_0x328745=this;this[_0x33f080('0x3')][_0x33f080('0x3e')](function(){const _0x1b765f=_0x33f080;return _0x328745['queryInterface'][_0x1b765f('0x27')](_0x3e7408,_0x246217,{'indexName':_0x1cab9b})[_0x1b765f('0xb')](function(){const _0x2174cd=_0x1b765f;logger[_0x2174cd('0x13')](_0x2174cd('0x19'),_0x3e7408,_0x246217['join'](','),_0x1cab9b);})['catch'](function(_0x57393b){const _0x3909b0=_0x1b765f;logger['info'](JSON[_0x3909b0('0x0')](_0x57393b));});});},Migration['prototype'][_0x3d2f30('0x40')]=function(_0xea8a67){const _0x335160=_0x3d2f30,_0x2f4c92=this;this[_0x335160('0x3')][_0x335160('0x3e')](function(){const _0x3094d1=_0x335160;return _0x2f4c92['queryInterface'][_0x3094d1('0x2e')][_0x3094d1('0x40')](_0xea8a67)[_0x3094d1('0xb')](function(){const _0x231b02=_0x3094d1;logger[_0x231b02('0x13')](_0x231b02('0x2c'),_0xea8a67);})[_0x3094d1('0x25')](function(_0x443df1){const _0x16404c=_0x3094d1;logger['info'](JSON[_0x16404c('0x0')](_0x443df1));});});},Migration[_0x3d2f30('0x4')]['removeColumn']=function(_0x550448,_0x1ed6d1){const _0x1f7b7e=_0x3d2f30,_0x4f078d=this;this[_0x1f7b7e('0x3')]['enqueue'](function(){const _0x540730=_0x1f7b7e;return _0x4f078d[_0x540730('0x3a')]['removeColumn'](_0x550448,_0x1ed6d1)[_0x540730('0xb')](function(){const _0x389c6c=_0x540730;logger[_0x389c6c('0x13')]('Removed\x20column\x20%s\x20from\x20%s',_0x1ed6d1,_0x550448);})['catch'](function(_0x11f178){const _0x414404=_0x540730;logger[_0x414404('0x13')](util['inspect'](_0x11f178,{'showHidden':![],'depth':null}));});});},Migration[_0x3d2f30('0x4')][_0x3d2f30('0x45')]=function(_0x139d42){const _0x130c26=_0x3d2f30;this['sequence'][_0x130c26('0x3e')](function(){return _0x139d42();});},module['exports']={'up':function(_0x589947,_0x49e344){return new Promise(function(_0x4e7340){const _0x5ad176=a912_0x3c21,_0x3ceb57=new Migration(_0x589947);_0x3ceb57[_0x5ad176('0x1f')](_0x5ad176('0x39'),'agentAlias',{'type':_0x49e344[_0x5ad176('0x1e')],'defaultValue':_0x5ad176('0x37')}),_0x3ceb57[_0x5ad176('0x1f')]('chat_websites',_0x5ad176('0x1'),{'type':_0x49e344[_0x5ad176('0x1e')],'defaultValue':_0x5ad176('0xc')}),_0x3ceb57['addColumn']('chat_websites',_0x5ad176('0x3d'),{'type':_0x49e344[_0x5ad176('0x34')]}),_0x3ceb57['addColumn']('chat_websites',_0x5ad176('0x10'),{'type':_0x49e344['TEXT']}),_0x3ceb57['addColumn'](_0x5ad176('0x39'),_0x5ad176('0xe'),{'type':_0x49e344[_0x5ad176('0x1e')],'defaultValue':_0x5ad176('0x35')}),_0x3ceb57[_0x5ad176('0x1f')](_0x5ad176('0x39'),_0x5ad176('0xf'),{'type':_0x49e344[_0x5ad176('0x5')],'defaultValue':![]}),_0x3ceb57[_0x5ad176('0x1f')](_0x5ad176('0x39'),_0x5ad176('0x2b'),{'type':_0x49e344['ENUM'](_0x5ad176('0x1d'),_0x5ad176('0x2f')),'defaultValue':_0x5ad176('0x1d')}),_0x3ceb57['addColumn']('chat_websites','ratingStarsNumber',{'type':_0x49e344['INTEGER'],'defaultValue':0x5}),_0x3ceb57[_0x5ad176('0x1f')](_0x5ad176('0x32'),_0x5ad176('0x1b'),{'type':_0x49e344[_0x5ad176('0x22')]}),_0x3ceb57[_0x5ad176('0x1f')](_0x5ad176('0x32'),_0x5ad176('0x42'),{'type':_0x49e344[_0x5ad176('0x34')]}),_0x3ceb57[_0x5ad176('0x1f')](_0x5ad176('0x32'),'pathTranscript',{'type':_0x49e344['TEXT']}),_0x3ceb57[_0x5ad176('0x1f')]('chat_interactions','mailTranscript',{'type':_0x49e344['STRING']}),_0x3ceb57['addColumn']('chat_websites',_0x5ad176('0x16'),{'type':_0x49e344['BOOLEAN'],'defaultValue':![]}),_0x3ceb57[_0x5ad176('0x1f')](_0x5ad176('0x39'),'forwardOffline',{'type':_0x49e344[_0x5ad176('0x5')],'defaultValue':![]}),_0x3ceb57['addColumn'](_0x5ad176('0x39'),_0x5ad176('0x28'),{'type':_0x49e344[_0x5ad176('0x1e')],'validate':{'isEmail':!![]}}),_0x3ceb57['changeColumn'](_0x5ad176('0x39'),_0x5ad176('0x49'),{'type':_0x49e344[_0x5ad176('0x1e')],'allowNull':![],'defaultValue':_0x5ad176('0x2d')}),_0x3ceb57[_0x5ad176('0x1a')](_0x5ad176('0x39'),_0x5ad176('0xa'),{'type':_0x49e344[_0x5ad176('0x1e')],'allowNull':![],'defaultValue':_0x5ad176('0x2d')}),_0x3ceb57[_0x5ad176('0x17')](_0x5ad176('0x3b')),_0x3ceb57[_0x5ad176('0x17')](_0x5ad176('0x48')),_0x3ceb57['dropTable'](_0x5ad176('0x9')),_0x3ceb57[_0x5ad176('0x17')](_0x5ad176('0x11')),_0x3ceb57[_0x5ad176('0x17')](_0x5ad176('0x3f')),_0x3ceb57[_0x5ad176('0x17')](_0x5ad176('0x20')),_0x3ceb57[_0x5ad176('0x17')](_0x5ad176('0x44')),_0x3ceb57[_0x5ad176('0x17')](_0x5ad176('0x6')),_0x3ceb57[_0x5ad176('0x17')](_0x5ad176('0x4a')),_0x3ceb57[_0x5ad176('0x17')]('user_has_fax_queues'),_0x3ceb57['dropTable'](_0x5ad176('0x18')),_0x3ceb57[_0x5ad176('0x14')](_0x5ad176('0x3c'),_0x5ad176('0x43')),_0x3ceb57['removeColumn'](_0x5ad176('0x3c'),_0x5ad176('0x15')),_0x3ceb57[_0x5ad176('0x14')](_0x5ad176('0x3c'),_0x5ad176('0x21')),_0x3ceb57[_0x5ad176('0x14')](_0x5ad176('0x3c'),_0x5ad176('0x8')),_0x3ceb57[_0x5ad176('0x14')](_0x5ad176('0x3c'),_0x5ad176('0x41')),_0x3ceb57[_0x5ad176('0x14')]('fax_accounts',_0x5ad176('0x36')),_0x3ceb57[_0x5ad176('0x14')](_0x5ad176('0x3c'),_0x5ad176('0x38')),_0x3ceb57[_0x5ad176('0x14')]('fax_accounts',_0x5ad176('0x47')),_0x3ceb57[_0x5ad176('0x14')](_0x5ad176('0x3c'),_0x5ad176('0x2a')),_0x3ceb57[_0x5ad176('0x14')](_0x5ad176('0x30'),_0x5ad176('0x26')),_0x3ceb57[_0x5ad176('0x14')](_0x5ad176('0x30'),'queue'),_0x3ceb57['removeColumn'](_0x5ad176('0xd'),_0x5ad176('0x26')),_0x3ceb57[_0x5ad176('0x14')](_0x5ad176('0xd'),'queue'),_0x3ceb57[_0x5ad176('0x1f')](_0x5ad176('0x23'),_0x5ad176('0x7'),{'type':_0x49e344[_0x5ad176('0x22')](0x2)[_0x5ad176('0x29')],'defaultValue':0x2}),_0x3ceb57[_0x5ad176('0x27')](_0x5ad176('0x23'),[_0x5ad176('0x7')],_0x5ad176('0x7')),_0x3ceb57[_0x5ad176('0x17')]('sms_messages'),_0x3ceb57[_0x5ad176('0x45')](_0x4e7340);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.34.js b/server/migrations/2.0.34.js index bfd6d85..87255f5 100644 --- a/server/migrations/2.0.34.js +++ b/server/migrations/2.0.34.js @@ -1 +1 @@ -const a913_0x42c7=['authToken','deviceVendor','voice_recordings','custom','mail_servers_in','sendUnmanaged','signature','join','then','addColumn','closeMethod','closingMessage','voice_queues','mail_messages','conditionAgreement','query','osVersion','fax_attachments','ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20MailRoomId','../config/logger','stringify','ALTER\x20TABLE\x20mail_messages\x20DROP\x20FOREIGN\x20KEY\x20mail_messages_ibfk_2','inspect','enableCustomerWriting','fidelity','cm_hopper_history','forwardTranscriptMessage','STRING','dialRecallInQueue','exports','final','mail_accounts','addIndex\x20%s\x20%s\x20%s','chat_interactions','phone','ALTER\x20TABLE\x20mail_messages\x20DROP\x20FOREIGN\x20KEY\x20mail_messages_ibfk_1','tail','openchannel_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','table\x20dropped\x20%s','All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.','ALTER\x20TABLE\x20analytics_extracted_reports\x20DROP\x20FOREIGN\x20KEY\x20analytics_extracted_reports_ibfk_1','query\x20%s','ALTER\x20TABLE\x20mail_rooms\x20DROP\x20COLUMN\x20MailAccountId','userDisposition','mail_applications','util','closeUrl','enableUnmanagedNote','sequence','BOOLEAN','Send','ALTER\x20TABLE\x20mail_rooms\x20DROP\x20FOREIGN\x20KEY\x20mail_rooms_ibfk_1','acceptUrl','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;','active','Please\x20hold\x20and\x20we\x20will\x20answer\x20your\x20request\x20as\x20soon\x20as\x20possible.','migration','addIndex','waitingMessage','dropTable','dialRecallMeTimeout','user_has_mail_rooms','cm_hopper_final','chat_messages','autoclose','recallme','removeColumn','queryInterface','rejectMethod','user_has_mail_queues','prototype','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;','Changed\x20column\x20%s\x20in\x20table\x20%s','ALTER\x20TABLE\x20users\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8\x20COLLATE\x20utf8_bin;','skipUnmanaged','browserVersion','rejectUrl','whiteLabel','mail_attachments','unmanagedMessage','enqueue','enableFeedback','user_has_mail_interactions','catch','INTEGER','mail_servers_out','AttachmentId','mail_queues','Skip','actions','chat_websites','finally','ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20MailMessageId','changeColumn','sms_accounts','key','ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20UserId','info'];(function(_0x24b062,_0x42c789){const _0x3f680b=function(_0x2477db){while(--_0x2477db){_0x24b062['push'](_0x24b062['shift']());}};_0x3f680b(++_0x42c789);}(a913_0x42c7,0x74));const a913_0x3f68=function(_0x24b062,_0x42c789){_0x24b062=_0x24b062-0x0;let _0x3f680b=a913_0x42c7[_0x24b062];return _0x3f680b;};const _0x13c128=a913_0x3f68;'use strict';const logger=require(_0x13c128('0x2'))(_0x13c128('0x28')),util=require(_0x13c128('0x1d')),Sequence=function(){};Sequence[_0x13c128('0x36')][_0x13c128('0x40')]=function(_0x2477db){const _0xefbd9=_0x13c128;this[_0xefbd9('0x13')]=this[_0xefbd9('0x13')]?this[_0xefbd9('0x13')][_0xefbd9('0x4b')](_0x2477db):_0x2477db();};const Migration=function(_0x1dbd4b){const _0x5538ed=_0x13c128;this[_0x5538ed('0x33')]=_0x1dbd4b,this['sequence']=new Sequence();};Migration[_0x13c128('0x36')][_0x13c128('0x4d')]=function(_0x5c9d47,_0x61f6aa,_0x4e6b28){const _0x4686b9=_0x13c128,_0x1b6adb=this;this[_0x4686b9('0x20')][_0x4686b9('0x40')](function(){const _0x371683=_0x4686b9;return _0x1b6adb[_0x371683('0x33')][_0x371683('0x4d')](_0x5c9d47,_0x61f6aa,_0x4e6b28)[_0x371683('0x5a')](function(){const _0x1d9715=_0x371683;logger[_0x1d9715('0x51')](_0x1d9715('0x38'),_0x61f6aa,_0x5c9d47);})[_0x371683('0x43')](function(_0x5eb09a){const _0x2d6ea4=_0x371683;logger['info'](JSON[_0x2d6ea4('0x3')](_0x5eb09a));});});},Migration[_0x13c128('0x36')][_0x13c128('0x5b')]=function(_0x4f0991,_0x50cfcd,_0xca5c71){const _0x2173e3=_0x13c128,_0x1153ac=this;this['sequence'][_0x2173e3('0x40')](function(){const _0x22ba06=_0x2173e3;return _0x1153ac['queryInterface'][_0x22ba06('0x5b')](_0x4f0991,_0x50cfcd,_0xca5c71)[_0x22ba06('0x5a')](function(){const _0x5a28ca=_0x22ba06;logger[_0x5a28ca('0x51')]('Added\x20column\x20%s\x20to\x20%s',_0x50cfcd,_0x4f0991);})['catch'](function(_0x585d17){const _0x2b0e00=_0x22ba06;logger[_0x2b0e00('0x51')](JSON[_0x2b0e00('0x3')](_0x585d17));});});},Migration['prototype'][_0x13c128('0x2b')]=function(_0x5dcd57){const _0x32679a=_0x13c128,_0x1d0093=this;this[_0x32679a('0x20')][_0x32679a('0x40')](function(){const _0x5f2674=_0x32679a;return _0x1d0093['queryInterface'][_0x5f2674('0x2b')](_0x5dcd57,{'force':!![]})[_0x5f2674('0x5a')](function(){const _0x11a728=_0x5f2674;logger[_0x11a728('0x51')](_0x11a728('0x16'),_0x5dcd57);})[_0x5f2674('0x43')](function(_0x2680e4){const _0xe6c848=_0x5f2674;logger[_0xe6c848('0x51')](JSON[_0xe6c848('0x3')](_0x2680e4));});});},Migration[_0x13c128('0x36')][_0x13c128('0x29')]=function(_0x4a33a9,_0x3ba163,_0x1adf2e){const _0x2415d7=_0x13c128,_0x1c78b1=this;this[_0x2415d7('0x20')]['enqueue'](function(){const _0x301d90=_0x2415d7;return _0x1c78b1[_0x301d90('0x33')][_0x301d90('0x29')](_0x4a33a9,_0x3ba163,{'indexName':_0x1adf2e})[_0x301d90('0x5a')](function(){const _0x213587=_0x301d90;logger[_0x213587('0x51')](_0x213587('0xf'),_0x4a33a9,_0x3ba163[_0x213587('0x59')](','),_0x1adf2e);})[_0x301d90('0x43')](function(_0x122e06){const _0x56c185=_0x301d90;logger['info'](JSON[_0x56c185('0x3')](_0x122e06));});});},Migration['prototype'][_0x13c128('0x61')]=function(_0x5c7d50){const _0x39d7cf=_0x13c128,_0x18c243=this;this[_0x39d7cf('0x20')][_0x39d7cf('0x40')](function(){const _0xaf968e=_0x39d7cf;return _0x18c243[_0xaf968e('0x33')]['sequelize'][_0xaf968e('0x61')](_0x5c7d50)['then'](function(){const _0x33096e=_0xaf968e;logger[_0x33096e('0x51')](_0x33096e('0x19'),_0x5c7d50);})[_0xaf968e('0x43')](function(_0x1bc5b1){const _0x55449c=_0xaf968e;logger['info'](JSON[_0x55449c('0x3')](_0x1bc5b1));});});},Migration[_0x13c128('0x36')]['removeColumn']=function(_0x502fa7,_0x14589d){const _0x1cfa7f=_0x13c128,_0x246d18=this;this['sequence'][_0x1cfa7f('0x40')](function(){const _0x34e980=_0x1cfa7f;return _0x246d18[_0x34e980('0x33')][_0x34e980('0x32')](_0x502fa7,_0x14589d)[_0x34e980('0x5a')](function(){const _0x548c64=_0x34e980;logger[_0x548c64('0x51')]('Removed\x20column\x20%s\x20from\x20%s',_0x14589d,_0x502fa7);})[_0x34e980('0x43')](function(_0x294cb2){const _0x1cfc14=_0x34e980;logger['info'](util[_0x1cfc14('0x5')](_0x294cb2,{'showHidden':![],'depth':null}));});});},Migration[_0x13c128('0x36')]['final']=function(_0x4e8dbb){const _0x1b3837=_0x13c128;this['sequence'][_0x1b3837('0x40')](function(){return _0x4e8dbb();});},module[_0x13c128('0xc')]={'up':function(_0x388790,_0x4d475e){return new Promise(function(_0x4d7f4e){const _0x400eae=a913_0x3f68,_0xea3293=new Migration(_0x388790);_0xea3293[_0x400eae('0x5b')](_0x400eae('0x4a'),'key',{'type':_0x4d475e['STRING'],'allowNull':![]}),_0xea3293['addColumn'](_0x400eae('0x4a'),_0x400eae('0x9'),{'type':_0x4d475e[_0x400eae('0xa')]}),_0xea3293[_0x400eae('0x5b')](_0x400eae('0x4a'),'skipMessageButton',{'type':_0x4d475e[_0x400eae('0xa')],'defaultValue':_0x400eae('0x48')}),_0xea3293['addColumn'](_0x400eae('0x4a'),_0x400eae('0x41'),{'type':_0x4d475e['BOOLEAN'],'defaultValue':![]}),_0xea3293[_0x400eae('0x5b')](_0x400eae('0x4a'),_0x400eae('0x6'),{'type':_0x4d475e['BOOLEAN'],'defaultValue':![]}),_0xea3293[_0x400eae('0x5b')]('chat_websites',_0x400eae('0x60'),{'type':_0x4d475e[_0x400eae('0x21')],'defaultValue':![]}),_0xea3293[_0x400eae('0x5b')]('chat_websites','waitingTitle',{'type':_0x4d475e[_0x400eae('0xa')],'defaultValue':_0x400eae('0x17')}),_0xea3293[_0x400eae('0x5b')](_0x400eae('0x4a'),_0x400eae('0x2a'),{'type':_0x4d475e[_0x400eae('0xa')],'defaultValue':_0x400eae('0x27')}),_0xea3293['addColumn']('chat_websites',_0x400eae('0x30'),{'type':_0x4d475e['BOOLEAN'],'defaultValue':!![]}),_0xea3293[_0x400eae('0x5b')](_0x400eae('0x4a'),_0x400eae('0x3f'),{'type':_0x4d475e[_0x400eae('0xa')],'defaultValue':'Your\x20request\x20has\x20not\x20been\x20processed.'}),_0xea3293[_0x400eae('0x5b')](_0x400eae('0x4a'),_0x400eae('0x1f'),{'type':_0x4d475e[_0x400eae('0x21')],'defaultValue':!![]}),_0xea3293['addColumn'](_0x400eae('0x4a'),_0x400eae('0x57'),{'type':_0x4d475e[_0x400eae('0xa')],'defaultValue':_0x400eae('0x22')}),_0xea3293['addColumn'](_0x400eae('0x4a'),_0x400eae('0x3a'),{'type':_0x4d475e[_0x400eae('0xa')],'defaultValue':_0x400eae('0x48')}),_0xea3293[_0x400eae('0x4d')]('chat_websites',_0x400eae('0x5d'),{'type':_0x4d475e[_0x400eae('0xa')],'defaultValue':'Thanks\x20you\x20for\x20your\x20time!'}),_0xea3293[_0x400eae('0x5b')](_0x400eae('0x10'),'browserName',{'type':_0x4d475e[_0x400eae('0xa')]}),_0xea3293['addColumn'](_0x400eae('0x10'),_0x400eae('0x3b'),{'type':_0x4d475e['STRING']}),_0xea3293[_0x400eae('0x5b')]('chat_interactions','osName',{'type':_0x4d475e['STRING']}),_0xea3293[_0x400eae('0x5b')](_0x400eae('0x10'),_0x400eae('0x62'),{'type':_0x4d475e[_0x400eae('0xa')]}),_0xea3293[_0x400eae('0x5b')]('chat_interactions','deviceModel',{'type':_0x4d475e[_0x400eae('0xa')]}),_0xea3293['addColumn'](_0x400eae('0x10'),_0x400eae('0x53'),{'type':_0x4d475e[_0x400eae('0xa')]}),_0xea3293[_0x400eae('0x5b')](_0x400eae('0x10'),'deviceType',{'type':_0x4d475e[_0x400eae('0xa')]}),_0xea3293['addColumn'](_0x400eae('0x2f'),_0x400eae('0x46'),{'type':_0x4d475e[_0x400eae('0x44')]}),_0xea3293[_0x400eae('0x61')](_0x400eae('0x15')),_0xea3293[_0x400eae('0x5b')]('voice_queues',_0x400eae('0x2c'),{'type':_0x4d475e[_0x400eae('0x44')](0x5)['UNSIGNED'],'defaultValue':0x1e}),_0xea3293[_0x400eae('0x5b')](_0x400eae('0x5e'),_0x400eae('0xb'),{'type':_0x4d475e[_0x400eae('0x21')],'defaultValue':![]}),_0xea3293[_0x400eae('0x5b')]('cm_hopper',_0x400eae('0x31'),{'type':_0x4d475e[_0x400eae('0x21')],'defaultValue':![]}),_0xea3293[_0x400eae('0x5b')](_0x400eae('0x2e'),_0x400eae('0x31'),{'type':_0x4d475e[_0x400eae('0x21')],'defaultValue':![]}),_0xea3293[_0x400eae('0x5b')](_0x400eae('0x8'),'recallme',{'type':_0x4d475e[_0x400eae('0x21')],'defaultValue':![]}),_0xea3293[_0x400eae('0x5b')](_0x400eae('0x54'),_0x400eae('0x1b'),{'type':_0x4d475e[_0x400eae('0xa')]}),_0xea3293[_0x400eae('0x2b')](_0x400eae('0x2d')),_0xea3293[_0x400eae('0x61')](_0x400eae('0x23')),_0xea3293[_0x400eae('0x61')](_0x400eae('0x1a')),_0xea3293[_0x400eae('0x2b')]('mail_rooms'),_0xea3293[_0x400eae('0x61')](_0x400eae('0x18')),_0xea3293[_0x400eae('0x61')](_0x400eae('0x4c')),_0xea3293[_0x400eae('0x61')](_0x400eae('0x12')),_0xea3293[_0x400eae('0x61')](_0x400eae('0x1')),_0xea3293['query'](_0x400eae('0x4')),_0xea3293['query'](_0x400eae('0x50')),_0xea3293['dropTable'](_0x400eae('0x5f')),_0xea3293['dropTable'](_0x400eae('0x3e')),_0xea3293['dropTable']('mail_dispositions'),_0xea3293[_0x400eae('0x2b')](_0x400eae('0x1c')),_0xea3293['dropTable'](_0x400eae('0x42')),_0xea3293[_0x400eae('0x2b')]('mail_interactions'),_0xea3293[_0x400eae('0x2b')]('team_has_mail_queues'),_0xea3293[_0x400eae('0x2b')](_0x400eae('0x35')),_0xea3293[_0x400eae('0x2b')](_0x400eae('0x47')),_0xea3293[_0x400eae('0x32')](_0x400eae('0xe'),_0x400eae('0x7')),_0xea3293['removeColumn'](_0x400eae('0xe'),'timeout'),_0xea3293['removeColumn'](_0x400eae('0xe'),_0x400eae('0x3d')),_0xea3293['removeColumn']('mail_accounts',_0x400eae('0x24')),_0xea3293[_0x400eae('0x32')](_0x400eae('0xe'),_0x400eae('0x3c')),_0xea3293[_0x400eae('0x32')](_0x400eae('0xe'),'acceptMethod'),_0xea3293[_0x400eae('0x32')](_0x400eae('0xe'),_0x400eae('0x34')),_0xea3293[_0x400eae('0x32')](_0x400eae('0xe'),_0x400eae('0x49')),_0xea3293[_0x400eae('0x32')](_0x400eae('0xe'),_0x400eae('0x1e')),_0xea3293['removeColumn'](_0x400eae('0xe'),_0x400eae('0x5c')),_0xea3293[_0x400eae('0x32')](_0x400eae('0xe'),_0x400eae('0x58')),_0xea3293[_0x400eae('0x32')](_0x400eae('0xe'),_0x400eae('0x55')),_0xea3293[_0x400eae('0x5b')]('mail_accounts',_0x400eae('0x26'),{'type':_0x4d475e[_0x400eae('0x21')],'defaultValue':!![]}),_0xea3293[_0x400eae('0x32')](_0x400eae('0x45'),'state'),_0xea3293[_0x400eae('0x2b')](_0x400eae('0x56')),_0xea3293[_0x400eae('0x61')](_0x400eae('0x25')),_0xea3293[_0x400eae('0x61')](_0x400eae('0x37')),_0xea3293[_0x400eae('0x61')]('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;'),_0xea3293[_0x400eae('0x2b')](_0x400eae('0x0')),_0xea3293['addColumn'](_0x400eae('0x4e'),_0x400eae('0x11'),{'type':_0x4d475e[_0x400eae('0xa')]}),_0xea3293['addColumn']('sms_accounts','accountSid',{'type':_0x4d475e[_0x400eae('0xa')]}),_0xea3293['addColumn'](_0x400eae('0x4e'),_0x400eae('0x52'),{'type':_0x4d475e[_0x400eae('0xa')]}),_0xea3293[_0x400eae('0x5b')]('sms_accounts',_0x400eae('0x4f'),{'type':_0x4d475e[_0x400eae('0xa')],'allowNull':![]}),_0xea3293[_0x400eae('0x61')](_0x400eae('0x39')),_0xea3293[_0x400eae('0x5b')](_0x400eae('0x14'),_0x400eae('0x4f'),{'type':_0x4d475e[_0x400eae('0xa')],'allowNull':![]}),_0xea3293[_0x400eae('0x5b')]('fax_accounts',_0x400eae('0x4f'),{'type':_0x4d475e[_0x400eae('0xa')],'allowNull':![]}),_0xea3293[_0x400eae('0x5b')]('mail_accounts',_0x400eae('0x4f'),{'type':_0x4d475e[_0x400eae('0xa')],'allowNull':![]}),_0xea3293[_0x400eae('0xd')](_0x4d7f4e);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.35.js b/server/migrations/2.0.35.js index 1ff95f6..664df45 100644 --- a/server/migrations/2.0.35.js +++ b/server/migrations/2.0.35.js @@ -1 +1 @@ -const a914_0x31dc=['DESC','userFullname','sequence','addIndex','fromId','report_openchannel','editedat','BOOLEAN','UserId','attachment','STRING','chat_interactions','query\x20%s','cm_hopper_history','MailAccountId','queryInterface','dialOrderByScheduledAt','long','final','DATE','voice_queues','body','bcc','report_sms_session','out','mail_messages','MailInteractionId','attach','report_chat','html','then','report_chat_session','direction','addColumn','join','offline_chat_button','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','removeColumn','userName','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','dropTable','ALTER\x20TABLE\x20mail_messages\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','ENUM','INTEGER','campaigns','accountId','Send','mail_interactions','chat_websites','reason','retry','phoneBarAutoAnswerDelay','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','report_sms','read','info','enableCustomerAttachment','../config/logger','report_mail','star','sentAt','enqueue','catch','status','joins','tail','query','report_fax_session','report_openchannel_session','TEXT','auto','subject','prototype','finally','referer','util','stringify','ContactId','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','Changed\x20column\x20%s\x20in\x20table\x20%s','inReplyTo','mail_accounts','users','inspect','Removed\x20column\x20%s\x20from\x20%s','accountName','changeColumn'];(function(_0x4dbdb7,_0x31dcb8){const _0x543cf1=function(_0x1176c3){while(--_0x1176c3){_0x4dbdb7['push'](_0x4dbdb7['shift']());}};_0x543cf1(++_0x31dcb8);}(a914_0x31dc,0x10f));const a914_0x543c=function(_0x4dbdb7,_0x31dcb8){_0x4dbdb7=_0x4dbdb7-0x0;let _0x543cf1=a914_0x31dc[_0x4dbdb7];return _0x543cf1;};const _0x361051=a914_0x543c;'use strict';const logger=require(_0x361051('0x2f'))('migration'),util=require(_0x361051('0x41')),Sequence=function(){};Sequence[_0x361051('0x3e')][_0x361051('0x33')]=function(_0x1176c3){const _0x59c797=_0x361051;this[_0x59c797('0x37')]=this[_0x59c797('0x37')]?this[_0x59c797('0x37')][_0x59c797('0x3f')](_0x1176c3):_0x1176c3();};const Migration=function(_0xdb9efe){const _0x24d54e=_0x361051;this[_0x24d54e('0x5')]=_0xdb9efe,this[_0x24d54e('0x4f')]=new Sequence();};Migration[_0x361051('0x3e')]['changeColumn']=function(_0x2bcdd7,_0x471cee,_0x5788d0){const _0x326db7=_0x361051,_0x24eb72=this;this['sequence'][_0x326db7('0x33')](function(){const _0x3cedca=_0x326db7;return _0x24eb72[_0x3cedca('0x5')][_0x3cedca('0x4c')](_0x2bcdd7,_0x471cee,_0x5788d0)['then'](function(){const _0x694089=_0x3cedca;logger[_0x694089('0x2d')](_0x694089('0x45'),_0x471cee,_0x2bcdd7);})['catch'](function(_0x18d268){logger['info'](JSON['stringify'](_0x18d268));});});},Migration['prototype'][_0x361051('0x17')]=function(_0x4548f8,_0x118bbe,_0x2d944b){const _0x452319=_0x361051,_0x2716f4=this;this[_0x452319('0x4f')][_0x452319('0x33')](function(){const _0x267103=_0x452319;return _0x2716f4[_0x267103('0x5')][_0x267103('0x17')](_0x4548f8,_0x118bbe,_0x2d944b)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x118bbe,_0x4548f8);})[_0x267103('0x34')](function(_0x410f9a){const _0x10b2d4=_0x267103;logger['info'](JSON[_0x10b2d4('0x42')](_0x410f9a));});});},Migration[_0x361051('0x3e')][_0x361051('0x1e')]=function(_0x3e3739){const _0x58ba19=_0x361051,_0x2a5461=this;this[_0x58ba19('0x4f')][_0x58ba19('0x33')](function(){const _0xcf268e=_0x58ba19;return _0x2a5461[_0xcf268e('0x5')]['dropTable'](_0x3e3739,{'force':!![]})['then'](function(){const _0x646e2a=_0xcf268e;logger[_0x646e2a('0x2d')]('table\x20dropped\x20%s',_0x3e3739);})[_0xcf268e('0x34')](function(_0x3e7bf6){const _0x4dd6ef=_0xcf268e;logger[_0x4dd6ef('0x2d')](JSON['stringify'](_0x3e7bf6));});});},Migration['prototype'][_0x361051('0x50')]=function(_0x325e36,_0x2795fc,_0x3470bf){const _0x26d225=_0x361051,_0x31c7bb=this;this[_0x26d225('0x4f')][_0x26d225('0x33')](function(){const _0x39586d=_0x26d225;return _0x31c7bb['queryInterface'][_0x39586d('0x50')](_0x325e36,_0x2795fc,{'indexName':_0x3470bf})[_0x39586d('0x14')](function(){const _0x8d9aa6=_0x39586d;logger[_0x8d9aa6('0x2d')]('addIndex\x20%s\x20%s\x20%s',_0x325e36,_0x2795fc[_0x8d9aa6('0x18')](','),_0x3470bf);})[_0x39586d('0x34')](function(_0x108d52){const _0x3ed752=_0x39586d;logger[_0x3ed752('0x2d')](JSON[_0x3ed752('0x42')](_0x108d52));});});},Migration[_0x361051('0x3e')][_0x361051('0x38')]=function(_0x2a0b7e){const _0x3c911a=_0x361051,_0xbc12f8=this;this[_0x3c911a('0x4f')][_0x3c911a('0x33')](function(){const _0x2cfd74=_0x3c911a;return _0xbc12f8[_0x2cfd74('0x5')]['sequelize']['query'](_0x2a0b7e)['then'](function(){const _0xeac236=_0x2cfd74;logger[_0xeac236('0x2d')](_0xeac236('0x2'),_0x2a0b7e);})[_0x2cfd74('0x34')](function(_0x2fc529){logger['info'](JSON['stringify'](_0x2fc529));});});},Migration[_0x361051('0x3e')]['removeColumn']=function(_0x59747c,_0x41cc92){const _0x2ac444=this;this['sequence']['enqueue'](function(){const _0x301d53=a914_0x543c;return _0x2ac444[_0x301d53('0x5')][_0x301d53('0x1b')](_0x59747c,_0x41cc92)[_0x301d53('0x14')](function(){const _0x2cc56e=_0x301d53;logger[_0x2cc56e('0x2d')](_0x2cc56e('0x4a'),_0x41cc92,_0x59747c);})[_0x301d53('0x34')](function(_0x8dc947){const _0x4cb84b=_0x301d53;logger[_0x4cb84b('0x2d')](util[_0x4cb84b('0x49')](_0x8dc947,{'showHidden':![],'depth':null}));});});},Migration[_0x361051('0x3e')][_0x361051('0x8')]=function(_0x67b1fd){const _0x1905b3=_0x361051;this[_0x1905b3('0x4f')][_0x1905b3('0x33')](function(){return _0x67b1fd();});},module['exports']={'up':function(_0x55ebe2,_0x546b1c){return new Promise(function(_0x4a8e94){const _0x434fb1=a914_0x543c,_0x152062=new Migration(_0x55ebe2);_0x152062['addColumn']('analytics_custom_reports',_0x434fb1('0x36'),{'type':_0x546b1c['TEXT']}),_0x152062[_0x434fb1('0x17')]('analytics_default_reports',_0x434fb1('0x36'),{'type':_0x546b1c[_0x434fb1('0x3b')]}),_0x152062[_0x434fb1('0x38')](_0x434fb1('0x1a')),_0x152062[_0x434fb1('0x17')](_0x434fb1('0x26'),_0x434fb1('0x19'),{'type':_0x546b1c[_0x434fb1('0x0')],'defaultValue':_0x434fb1('0x24')}),_0x152062[_0x434fb1('0x17')](_0x434fb1('0x26'),_0x434fb1('0x2e'),{'type':_0x546b1c[_0x434fb1('0x54')],'defaultValue':![]}),_0x152062['addColumn'](_0x434fb1('0x1'),_0x434fb1('0x40'),{'type':_0x546b1c[_0x434fb1('0x0')]}),_0x152062['addColumn'](_0x434fb1('0x1'),'customerIp',{'type':_0x546b1c[_0x434fb1('0x0')]}),_0x152062[_0x434fb1('0x17')](_0x434fb1('0x1'),'ratingType',{'type':_0x546b1c[_0x434fb1('0x20')](_0x434fb1('0x31'),'thumb'),'defaultValue':_0x434fb1('0x31')}),_0x152062[_0x434fb1('0x38')]('ALTER\x20TABLE\x20chat_interactions\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;'),_0x152062[_0x434fb1('0x17')]('mail_messages',_0x434fb1('0xb'),{'type':_0x546b1c['TEXT'](_0x434fb1('0x7')),'allowNull':![]}),_0x152062['addColumn'](_0x434fb1('0xf'),_0x434fb1('0x2c'),{'type':_0x546b1c[_0x434fb1('0x54')],'defaultValue':![]}),_0x152062[_0x434fb1('0x17')](_0x434fb1('0xf'),_0x434fb1('0x16'),{'type':_0x546b1c['ENUM']('in',_0x434fb1('0xe')),'defaultValue':_0x434fb1('0xe'),'allowNull':![]}),_0x152062[_0x434fb1('0x4c')]('mail_messages','messageId',{'type':_0x546b1c[_0x434fb1('0x0')](0xbe)}),_0x152062[_0x434fb1('0x1b')](_0x434fb1('0xf'),_0x434fb1('0x46')),_0x152062[_0x434fb1('0x4c')]('mail_messages','to',{'type':_0x546b1c[_0x434fb1('0x3b')](_0x434fb1('0x7'))}),_0x152062[_0x434fb1('0x4c')](_0x434fb1('0xf'),'cc',{'type':_0x546b1c[_0x434fb1('0x3b')](_0x434fb1('0x7'))}),_0x152062[_0x434fb1('0x4c')](_0x434fb1('0xf'),_0x434fb1('0xc'),{'type':_0x546b1c[_0x434fb1('0x3b')]('long')}),_0x152062[_0x434fb1('0x4c')]('mail_messages',_0x434fb1('0x3d'),{'type':_0x546b1c[_0x434fb1('0x3b')]}),_0x152062[_0x434fb1('0x17')](_0x434fb1('0xf'),_0x434fb1('0x32'),{'type':_0x546b1c['DATE']}),_0x152062[_0x434fb1('0x17')]('mail_messages',_0x434fb1('0x11'),{'type':_0x546b1c['INTEGER'],'defaultValue':0x0}),_0x152062[_0x434fb1('0x1b')]('mail_messages',_0x434fb1('0x51')),_0x152062[_0x434fb1('0x1b')](_0x434fb1('0xf'),_0x434fb1('0x56')),_0x152062['removeColumn'](_0x434fb1('0xf'),'text'),_0x152062['removeColumn'](_0x434fb1('0xf'),_0x434fb1('0x13')),_0x152062[_0x434fb1('0x1b')](_0x434fb1('0xf'),_0x434fb1('0x27')),_0x152062[_0x434fb1('0x1b')](_0x434fb1('0xf'),_0x434fb1('0x3c')),_0x152062[_0x434fb1('0x1b')](_0x434fb1('0xf'),_0x434fb1('0x35')),_0x152062[_0x434fb1('0x1b')](_0x434fb1('0xf'),_0x434fb1('0x28')),_0x152062[_0x434fb1('0x1b')](_0x434fb1('0xf'),'voiceSource'),_0x152062[_0x434fb1('0x1b')]('mail_messages',_0x434fb1('0x1c')),_0x152062[_0x434fb1('0x1b')]('mail_messages',_0x434fb1('0x4e')),_0x152062[_0x434fb1('0x1b')](_0x434fb1('0xf'),_0x434fb1('0x23')),_0x152062[_0x434fb1('0x1b')]('mail_messages',_0x434fb1('0x4b')),_0x152062[_0x434fb1('0x1b')](_0x434fb1('0xf'),'MailInteractionId'),_0x152062[_0x434fb1('0x17')](_0x434fb1('0xf'),_0x434fb1('0x4'),{'type':_0x546b1c[_0x434fb1('0x21')]}),_0x152062['query'](_0x434fb1('0x2a')),_0x152062[_0x434fb1('0x17')](_0x434fb1('0xf'),_0x434fb1('0x10'),{'type':_0x546b1c['INTEGER']}),_0x152062[_0x434fb1('0x38')]('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'),_0x152062['addColumn']('mail_messages',_0x434fb1('0x55'),{'type':_0x546b1c[_0x434fb1('0x21')]}),_0x152062[_0x434fb1('0x38')](_0x434fb1('0x44')),_0x152062[_0x434fb1('0x17')](_0x434fb1('0xf'),_0x434fb1('0x43'),{'type':_0x546b1c['INTEGER']}),_0x152062['query'](_0x434fb1('0x1d')),_0x152062[_0x434fb1('0x38')](_0x434fb1('0x1f')),_0x152062[_0x434fb1('0x17')](_0x434fb1('0x25'),_0x434fb1('0x11'),{'type':_0x546b1c['BOOLEAN'],'defaultValue':![]}),_0x152062[_0x434fb1('0x17')](_0x434fb1('0x47'),'signature',{'type':_0x546b1c[_0x434fb1('0x3b')]}),_0x152062[_0x434fb1('0x1b')]('tools_templates',_0x434fb1('0x3d')),_0x152062[_0x434fb1('0x17')](_0x434fb1('0x48'),'phoneBarEnableDtmfTone',{'type':_0x546b1c[_0x434fb1('0x54')],'defaultValue':![]}),_0x152062[_0x434fb1('0x17')](_0x434fb1('0x48'),_0x434fb1('0x29'),{'type':_0x546b1c[_0x434fb1('0x21')],'defaultValue':0x0}),_0x152062[_0x434fb1('0x1e')](_0x434fb1('0x52')),_0x152062[_0x434fb1('0x1e')](_0x434fb1('0x3a')),_0x152062[_0x434fb1('0x1e')](_0x434fb1('0x12')),_0x152062[_0x434fb1('0x1e')](_0x434fb1('0x15')),_0x152062[_0x434fb1('0x1e')]('report_fax'),_0x152062[_0x434fb1('0x1e')](_0x434fb1('0x39')),_0x152062[_0x434fb1('0x1e')](_0x434fb1('0x30')),_0x152062['dropTable']('report_mail_session'),_0x152062[_0x434fb1('0x1e')](_0x434fb1('0x2b')),_0x152062[_0x434fb1('0x1e')](_0x434fb1('0xd')),_0x152062[_0x434fb1('0x17')](_0x434fb1('0x3'),_0x434fb1('0x53'),{'type':_0x546b1c[_0x434fb1('0x9')]}),_0x152062[_0x434fb1('0x17')](_0x434fb1('0x3'),'edited',{'type':_0x546b1c[_0x434fb1('0x54')],'defaultValue':![]}),_0x152062['addColumn'](_0x434fb1('0xa'),'dialOrderByScheduledAt',{'type':_0x546b1c[_0x434fb1('0x20')](_0x434fb1('0x4d'),'ASC'),'defaultValue':_0x434fb1('0x4d')}),_0x152062[_0x434fb1('0x17')](_0x434fb1('0x22'),_0x434fb1('0x6'),{'type':_0x546b1c[_0x434fb1('0x20')](_0x434fb1('0x4d'),'ASC'),'defaultValue':_0x434fb1('0x4d')}),_0x152062[_0x434fb1('0x8')](_0x4a8e94);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.36.js b/server/migrations/2.0.36.js index a3b5e4a..c7e7490 100644 --- a/server/migrations/2.0.36.js +++ b/server/migrations/2.0.36.js @@ -1 +1 @@ -const a915_0x5c95=['addIndex','tail','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','openchannel_messages','dropTable','info','sequence','stringify','inspect','util','final','catch','changeColumn','then','enqueue','AttachmentId','Removed\x20column\x20%s\x20from\x20%s','join','exports','addColumn','finally','queryInterface','removeColumn','query','prototype','../config/logger'];(function(_0x4b1ec1,_0x5c95a3){const _0x37b4ab=function(_0x2b22b2){while(--_0x2b22b2){_0x4b1ec1['push'](_0x4b1ec1['shift']());}};_0x37b4ab(++_0x5c95a3);}(a915_0x5c95,0x1d7));const a915_0x37b4=function(_0x4b1ec1,_0x5c95a3){_0x4b1ec1=_0x4b1ec1-0x0;let _0x37b4ab=a915_0x5c95[_0x4b1ec1];return _0x37b4ab;};const _0xc53e19=a915_0x37b4;'use strict';const logger=require(_0xc53e19('0x16'))('migration'),util=require(_0xc53e19('0x6')),Sequence=function(){};Sequence[_0xc53e19('0x15')]['enqueue']=function(_0x2b22b2){const _0x1cebce=_0xc53e19;this[_0x1cebce('0x18')]=this['tail']?this[_0x1cebce('0x18')][_0x1cebce('0x11')](_0x2b22b2):_0x2b22b2();};const Migration=function(_0x20adf5){const _0x44269e=_0xc53e19;this[_0x44269e('0x12')]=_0x20adf5,this['sequence']=new Sequence();};Migration[_0xc53e19('0x15')][_0xc53e19('0x9')]=function(_0x5817f5,_0x50ee68,_0x2bcb81){const _0x5803e2=_0xc53e19,_0x2d1639=this;this['sequence'][_0x5803e2('0xb')](function(){const _0x315e5f=_0x5803e2;return _0x2d1639[_0x315e5f('0x12')][_0x315e5f('0x9')](_0x5817f5,_0x50ee68,_0x2bcb81)[_0x315e5f('0xa')](function(){const _0x23214d=_0x315e5f;logger[_0x23214d('0x2')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x50ee68,_0x5817f5);})['catch'](function(_0x80cebe){const _0x3fa889=_0x315e5f;logger['info'](JSON[_0x3fa889('0x4')](_0x80cebe));});});},Migration[_0xc53e19('0x15')][_0xc53e19('0x10')]=function(_0x1378da,_0x3d2285,_0xc5e302){const _0x382324=_0xc53e19,_0x37afbf=this;this[_0x382324('0x3')][_0x382324('0xb')](function(){const _0x1270c5=_0x382324;return _0x37afbf[_0x1270c5('0x12')]['addColumn'](_0x1378da,_0x3d2285,_0xc5e302)['then'](function(){const _0xa4ec64=_0x1270c5;logger[_0xa4ec64('0x2')]('Added\x20column\x20%s\x20to\x20%s',_0x3d2285,_0x1378da);})[_0x1270c5('0x8')](function(_0x421d4c){const _0x4b2fef=_0x1270c5;logger[_0x4b2fef('0x2')](JSON[_0x4b2fef('0x4')](_0x421d4c));});});},Migration[_0xc53e19('0x15')][_0xc53e19('0x1')]=function(_0x153bd3){const _0x4be728=_0xc53e19,_0x116c91=this;this[_0x4be728('0x3')][_0x4be728('0xb')](function(){const _0x2314e0=_0x4be728;return _0x116c91[_0x2314e0('0x12')][_0x2314e0('0x1')](_0x153bd3,{'force':!![]})[_0x2314e0('0xa')](function(){const _0x1c4e36=_0x2314e0;logger[_0x1c4e36('0x2')]('table\x20dropped\x20%s',_0x153bd3);})[_0x2314e0('0x8')](function(_0x534886){const _0x4a28e7=_0x2314e0;logger[_0x4a28e7('0x2')](JSON[_0x4a28e7('0x4')](_0x534886));});});},Migration['prototype'][_0xc53e19('0x17')]=function(_0x5a963b,_0x405e42,_0x243d52){const _0x26de63=_0xc53e19,_0x38fea4=this;this[_0x26de63('0x3')][_0x26de63('0xb')](function(){const _0x366258=_0x26de63;return _0x38fea4[_0x366258('0x12')][_0x366258('0x17')](_0x5a963b,_0x405e42,{'indexName':_0x243d52})[_0x366258('0xa')](function(){const _0x3b016d=_0x366258;logger[_0x3b016d('0x2')]('addIndex\x20%s\x20%s\x20%s',_0x5a963b,_0x405e42[_0x3b016d('0xe')](','),_0x243d52);})[_0x366258('0x8')](function(_0x184083){const _0x1fb014=_0x366258;logger[_0x1fb014('0x2')](JSON[_0x1fb014('0x4')](_0x184083));});});},Migration[_0xc53e19('0x15')][_0xc53e19('0x14')]=function(_0x196575){const _0x28c194=_0xc53e19,_0x2805ae=this;this[_0x28c194('0x3')][_0x28c194('0xb')](function(){const _0x83481b=_0x28c194;return _0x2805ae['queryInterface']['sequelize'][_0x83481b('0x14')](_0x196575)[_0x83481b('0xa')](function(){const _0x4054b1=_0x83481b;logger[_0x4054b1('0x2')]('query\x20%s',_0x196575);})[_0x83481b('0x8')](function(_0x34195c){const _0x35aa73=_0x83481b;logger['info'](JSON[_0x35aa73('0x4')](_0x34195c));});});},Migration[_0xc53e19('0x15')][_0xc53e19('0x13')]=function(_0x38aecb,_0xea7005){const _0x797696=_0xc53e19,_0x38cacf=this;this[_0x797696('0x3')]['enqueue'](function(){const _0x2f396a=_0x797696;return _0x38cacf[_0x2f396a('0x12')]['removeColumn'](_0x38aecb,_0xea7005)[_0x2f396a('0xa')](function(){const _0x5a088e=_0x2f396a;logger[_0x5a088e('0x2')](_0x5a088e('0xd'),_0xea7005,_0x38aecb);})[_0x2f396a('0x8')](function(_0x5edff4){const _0x17c7d4=_0x2f396a;logger['info'](util[_0x17c7d4('0x5')](_0x5edff4,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0xc53e19('0x7')]=function(_0x26f9ee){const _0x348514=_0xc53e19;this[_0x348514('0x3')][_0x348514('0xb')](function(){return _0x26f9ee();});},module[_0xc53e19('0xf')]={'up':function(_0x32b79a,_0x1be595){return new Promise(function(_0x1a9197){const _0x3d38b8=a915_0x37b4,_0x3d0dd4=new Migration(_0x32b79a);_0x3d0dd4[_0x3d38b8('0x10')](_0x3d38b8('0x0'),_0x3d38b8('0xc'),{'type':_0x1be595['INTEGER']}),_0x3d0dd4[_0x3d38b8('0x14')](_0x3d38b8('0x19')),_0x3d0dd4[_0x3d38b8('0x7')](_0x1a9197);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.37.js b/server/migrations/2.0.37.js index a2cfd47..6071b2a 100644 --- a/server/migrations/2.0.37.js +++ b/server/migrations/2.0.37.js @@ -1 +1 @@ -const a916_0x54ca=['addColumn','sms_interactions','STRING','finally','dropTable','query\x20%s','migration','catch','inspect','final','completed','sequelize','sequence','removeColumn','tail','UPDATE\x20report_jscripty_sessions\x20SET\x20completed\x20=\x20true','join','enqueue','BOOLEAN','query','stringify','table\x20dropped\x20%s','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','report_jscripty_sessions','../config/logger','info','phone','jscripty_projects','prototype','queryInterface','then'];(function(_0x31ddf8,_0x54caf7){const _0x1c9c2b=function(_0x340940){while(--_0x340940){_0x31ddf8['push'](_0x31ddf8['shift']());}};_0x1c9c2b(++_0x54caf7);}(a916_0x54ca,0x92));const a916_0x1c9c=function(_0x31ddf8,_0x54caf7){_0x31ddf8=_0x31ddf8-0x0;let _0x1c9c2b=a916_0x54ca[_0x31ddf8];return _0x1c9c2b;};const _0x32bca7=a916_0x1c9c;'use strict';const logger=require(_0x32bca7('0xc'))(_0x32bca7('0x19')),util=require('util'),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x340940){const _0x5c2435=_0x32bca7;this[_0x5c2435('0x0')]=this[_0x5c2435('0x0')]?this[_0x5c2435('0x0')][_0x5c2435('0x16')](_0x340940):_0x340940();};const Migration=function(_0x92a409){const _0x4ed8f2=_0x32bca7;this[_0x4ed8f2('0x11')]=_0x92a409,this[_0x4ed8f2('0x1f')]=new Sequence();};Migration[_0x32bca7('0x10')]['changeColumn']=function(_0x400e84,_0x445a17,_0x4d452a){const _0x33d165=_0x32bca7,_0x54bd53=this;this[_0x33d165('0x1f')][_0x33d165('0x3')](function(){const _0x432480=_0x33d165;return _0x54bd53[_0x432480('0x11')][_0x432480('0xa')](_0x400e84,_0x445a17,_0x4d452a)[_0x432480('0x12')](function(){const _0xcd79f3=_0x432480;logger['info'](_0xcd79f3('0x9'),_0x445a17,_0x400e84);})[_0x432480('0x1a')](function(_0x19f5d5){const _0x4e3507=_0x432480;logger['info'](JSON[_0x4e3507('0x6')](_0x19f5d5));});});},Migration[_0x32bca7('0x10')][_0x32bca7('0x13')]=function(_0x20a10f,_0x116711,_0x384375){const _0xf0458b=_0x32bca7,_0x52e5c3=this;this[_0xf0458b('0x1f')][_0xf0458b('0x3')](function(){const _0x793c1c=_0xf0458b;return _0x52e5c3[_0x793c1c('0x11')][_0x793c1c('0x13')](_0x20a10f,_0x116711,_0x384375)[_0x793c1c('0x12')](function(){const _0x48cdd9=_0x793c1c;logger[_0x48cdd9('0xd')]('Added\x20column\x20%s\x20to\x20%s',_0x116711,_0x20a10f);})[_0x793c1c('0x1a')](function(_0x14b05a){const _0x1f8b19=_0x793c1c;logger[_0x1f8b19('0xd')](JSON[_0x1f8b19('0x6')](_0x14b05a));});});},Migration[_0x32bca7('0x10')][_0x32bca7('0x17')]=function(_0x2e7e13){const _0x5e0396=_0x32bca7,_0x4b0d9f=this;this[_0x5e0396('0x1f')][_0x5e0396('0x3')](function(){const _0x1f7167=_0x5e0396;return _0x4b0d9f['queryInterface']['dropTable'](_0x2e7e13,{'force':!![]})[_0x1f7167('0x12')](function(){const _0x48c3e=_0x1f7167;logger[_0x48c3e('0xd')](_0x48c3e('0x7'),_0x2e7e13);})[_0x1f7167('0x1a')](function(_0x335ec9){const _0x4cc174=_0x1f7167;logger[_0x4cc174('0xd')](JSON['stringify'](_0x335ec9));});});},Migration['prototype']['addIndex']=function(_0xb175b7,_0x596e06,_0x5a3332){const _0x1dc031=_0x32bca7,_0x1ed610=this;this[_0x1dc031('0x1f')][_0x1dc031('0x3')](function(){const _0x5bcc7d=_0x1dc031;return _0x1ed610['queryInterface'][_0x5bcc7d('0x8')](_0xb175b7,_0x596e06,{'indexName':_0x5a3332})[_0x5bcc7d('0x12')](function(){const _0x7c1f9a=_0x5bcc7d;logger[_0x7c1f9a('0xd')]('addIndex\x20%s\x20%s\x20%s',_0xb175b7,_0x596e06[_0x7c1f9a('0x2')](','),_0x5a3332);})[_0x5bcc7d('0x1a')](function(_0x32e8e0){const _0xddd14c=_0x5bcc7d;logger[_0xddd14c('0xd')](JSON[_0xddd14c('0x6')](_0x32e8e0));});});},Migration[_0x32bca7('0x10')]['query']=function(_0x18a581){const _0x3cd212=_0x32bca7,_0x3e47e8=this;this[_0x3cd212('0x1f')][_0x3cd212('0x3')](function(){const _0x22bb68=_0x3cd212;return _0x3e47e8['queryInterface'][_0x22bb68('0x1e')]['query'](_0x18a581)[_0x22bb68('0x12')](function(){const _0x5884ac=_0x22bb68;logger[_0x5884ac('0xd')](_0x5884ac('0x18'),_0x18a581);})[_0x22bb68('0x1a')](function(_0x28deee){const _0x4ae81f=_0x22bb68;logger['info'](JSON[_0x4ae81f('0x6')](_0x28deee));});});},Migration['prototype'][_0x32bca7('0x20')]=function(_0x1b8fc7,_0x357f7f){const _0x21462d=_0x32bca7,_0x376dda=this;this[_0x21462d('0x1f')][_0x21462d('0x3')](function(){const _0x33b47b=_0x21462d;return _0x376dda[_0x33b47b('0x11')][_0x33b47b('0x20')](_0x1b8fc7,_0x357f7f)[_0x33b47b('0x12')](function(){const _0x1705c4=_0x33b47b;logger[_0x1705c4('0xd')]('Removed\x20column\x20%s\x20from\x20%s',_0x357f7f,_0x1b8fc7);})['catch'](function(_0x581396){const _0x16cf85=_0x33b47b;logger['info'](util[_0x16cf85('0x1b')](_0x581396,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x32bca7('0x1c')]=function(_0x393675){const _0x4a8c9b=_0x32bca7;this['sequence'][_0x4a8c9b('0x3')](function(){return _0x393675();});},module['exports']={'up':function(_0x4928f5,_0xa5be87){return new Promise(function(_0x20b0ef){const _0x529a5f=a916_0x1c9c,_0x525069=new Migration(_0x4928f5);_0x525069[_0x529a5f('0x13')](_0x529a5f('0xf'),'enableUncompleteSave',{'type':_0xa5be87[_0x529a5f('0x4')],'defaultValue':!![]}),_0x525069[_0x529a5f('0x13')](_0x529a5f('0xb'),_0x529a5f('0x1d'),{'type':_0xa5be87[_0x529a5f('0x4')],'defaultValue':![]}),_0x525069[_0x529a5f('0x5')](_0x529a5f('0x1')),_0x525069[_0x529a5f('0x13')](_0x529a5f('0x14'),_0x529a5f('0xe'),{'type':_0xa5be87[_0x529a5f('0x15')]}),_0x525069[_0x529a5f('0x13')]('sms_messages',_0x529a5f('0xe'),{'type':_0xa5be87[_0x529a5f('0x15')]}),_0x525069[_0x529a5f('0x1c')](_0x20b0ef);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.38.js b/server/migrations/2.0.38.js index 3d46298..e6e08d2 100644 --- a/server/migrations/2.0.38.js +++ b/server/migrations/2.0.38.js @@ -1 +1 @@ -const a917_0x30ef=['ls\x20-la\x20/var/opt/motion2/server/files','fax_messages','enqueue','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','fax_applications','\x20Error\x20:','info','migration','sms_messages','catch','sms_accounts','remote','exports','t38pt_udptl','changeColumn','addIndex\x20%s\x20%s\x20%s','dropTable','AttachmentId','addIndex','addColumn','sequelize','query\x20%s','INTEGER','sequence','STRING','final','prototype','util','stringify','messageId','inspect','query','tools_trunks','exec','chown\x20motion:asterisk\x20/var/opt/motion2/server/files/attachments','table\x20dropped\x20%s','../config/logger','queryInterface','removeColumn','then'];(function(_0x180bde,_0x30effa){const _0x13471d=function(_0x10d974){while(--_0x10d974){_0x180bde['push'](_0x180bde['shift']());}};_0x13471d(++_0x30effa);}(a917_0x30ef,0x188));const a917_0x1347=function(_0x180bde,_0x30effa){_0x180bde=_0x180bde-0x0;let _0x13471d=a917_0x30ef[_0x180bde];return _0x13471d;};const _0x57bf94=a917_0x1347;'use strict';const logger=require(_0x57bf94('0x4'))(_0x57bf94('0xf')),util=require(_0x57bf94('0x23')),exec=require('child_process')[_0x57bf94('0x1')],cmd=_0x57bf94('0x2'),ls=_0x57bf94('0x8'),Sequence=function(){};Sequence[_0x57bf94('0x22')][_0x57bf94('0xa')]=function(_0x10d974){this['tail']=this['tail']?this['tail']['finally'](_0x10d974):_0x10d974();};const Migration=function(_0x5d7239){const _0x429c9f=_0x57bf94;this['queryInterface']=_0x5d7239,this[_0x429c9f('0x1f')]=new Sequence();};Migration[_0x57bf94('0x22')][_0x57bf94('0x16')]=function(_0x348547,_0x26df28,_0x206606){const _0x4c1593=_0x57bf94,_0x1dc014=this;this[_0x4c1593('0x1f')][_0x4c1593('0xa')](function(){const _0x4d8a99=_0x4c1593;return _0x1dc014[_0x4d8a99('0x5')][_0x4d8a99('0x16')](_0x348547,_0x26df28,_0x206606)[_0x4d8a99('0x7')](function(){const _0x273000=_0x4d8a99;logger[_0x273000('0xe')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x26df28,_0x348547);})['catch'](function(_0x132983){const _0x235aa2=_0x4d8a99;logger[_0x235aa2('0xe')](JSON[_0x235aa2('0x24')](_0x132983));});});},Migration['prototype'][_0x57bf94('0x1b')]=function(_0x2e88a,_0x458f80,_0x45b549){const _0x4ae497=_0x57bf94,_0x477e87=this;this[_0x4ae497('0x1f')][_0x4ae497('0xa')](function(){const _0x167a00=_0x4ae497;return _0x477e87[_0x167a00('0x5')][_0x167a00('0x1b')](_0x2e88a,_0x458f80,_0x45b549)[_0x167a00('0x7')](function(){const _0xec4361=_0x167a00;logger[_0xec4361('0xe')]('Added\x20column\x20%s\x20to\x20%s',_0x458f80,_0x2e88a);})['catch'](function(_0x124c62){const _0x36a3b9=_0x167a00;logger[_0x36a3b9('0xe')](JSON['stringify'](_0x124c62));});});},Migration[_0x57bf94('0x22')]['dropTable']=function(_0x488627){const _0x44d5c9=this;this['sequence']['enqueue'](function(){const _0x29a632=a917_0x1347;return _0x44d5c9['queryInterface'][_0x29a632('0x18')](_0x488627,{'force':!![]})[_0x29a632('0x7')](function(){const _0x43526b=_0x29a632;logger[_0x43526b('0xe')](_0x43526b('0x3'),_0x488627);})[_0x29a632('0x11')](function(_0x52e1ae){const _0x44d056=_0x29a632;logger[_0x44d056('0xe')](JSON[_0x44d056('0x24')](_0x52e1ae));});});},Migration['prototype'][_0x57bf94('0x1a')]=function(_0x26a153,_0x18bade,_0x16e301){const _0x15763e=_0x57bf94,_0x549eef=this;this[_0x15763e('0x1f')][_0x15763e('0xa')](function(){const _0x405774=_0x15763e;return _0x549eef['queryInterface'][_0x405774('0x1a')](_0x26a153,_0x18bade,{'indexName':_0x16e301})[_0x405774('0x7')](function(){const _0xaac7e1=_0x405774;logger[_0xaac7e1('0xe')](_0xaac7e1('0x17'),_0x26a153,_0x18bade['join'](','),_0x16e301);})[_0x405774('0x11')](function(_0x330c03){const _0x396037=_0x405774;logger['info'](JSON[_0x396037('0x24')](_0x330c03));});});},Migration[_0x57bf94('0x22')][_0x57bf94('0x27')]=function(_0x109969){const _0x409dad=_0x57bf94,_0x6623f=this;this[_0x409dad('0x1f')][_0x409dad('0xa')](function(){const _0x415d99=_0x409dad;return _0x6623f[_0x415d99('0x5')][_0x415d99('0x1c')]['query'](_0x109969)[_0x415d99('0x7')](function(){const _0x3f7151=_0x415d99;logger['info'](_0x3f7151('0x1d'),_0x109969);})[_0x415d99('0x11')](function(_0x325109){const _0x55fe4b=_0x415d99;logger[_0x55fe4b('0xe')](JSON[_0x55fe4b('0x24')](_0x325109));});});},Migration[_0x57bf94('0x22')][_0x57bf94('0x6')]=function(_0x961c21,_0x3ca9dc){const _0x3c2066=this;this['sequence']['enqueue'](function(){const _0x21a0d7=a917_0x1347;return _0x3c2066['queryInterface'][_0x21a0d7('0x6')](_0x961c21,_0x3ca9dc)[_0x21a0d7('0x7')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x3ca9dc,_0x961c21);})[_0x21a0d7('0x11')](function(_0x4543ac){const _0xc7b513=_0x21a0d7;logger[_0xc7b513('0xe')](util[_0xc7b513('0x26')](_0x4543ac,{'showHidden':![],'depth':null}));});});},Migration[_0x57bf94('0x22')][_0x57bf94('0x21')]=function(_0x59c3b0){const _0x350102=_0x57bf94;this['sequence'][_0x350102('0xa')](function(){return _0x59c3b0();});},module[_0x57bf94('0x14')]={'up':function(_0x5e2f73,_0x5d844a){return new Promise(function(_0x56bb75){const _0x22e176=a917_0x1347,_0xf2b6b5=new Migration(_0x5e2f73);_0xf2b6b5[_0x22e176('0x1b')](_0x22e176('0x12'),_0x22e176('0x13'),{'type':_0x5d844a[_0x22e176('0x20')]}),_0xf2b6b5[_0x22e176('0x1b')](_0x22e176('0x12'),'token',{'type':_0x5d844a['STRING']}),_0xf2b6b5[_0x22e176('0x1b')](_0x22e176('0x10'),_0x22e176('0x25'),{'type':_0x5d844a['STRING']}),exec(cmd,function(_0x387ce3,_0x202ab2,_0x211526){const _0x3b128f=_0x22e176;logger[_0x3b128f('0xe')]('Exec\x20chmod',_0x3b128f('0xd'),JSON['stringify'](_0x387ce3),_0x202ab2,_0x211526),exec(ls,function(_0x3682c8,_0x5cf3d5,_0x2e7421){const _0x281248=_0x3b128f;logger[_0x281248('0xe')]('Ls\x20:',_0x281248('0xd'),JSON[_0x281248('0x24')](_0x3682c8),_0x5cf3d5,_0x2e7421);});}),_0xf2b6b5[_0x22e176('0x18')](_0x22e176('0xc')),_0xf2b6b5[_0x22e176('0x1b')](_0x22e176('0x9'),_0x22e176('0x19'),{'type':_0x5d844a[_0x22e176('0x1e')]}),_0xf2b6b5['query'](_0x22e176('0xb')),_0xf2b6b5[_0x22e176('0x1b')](_0x22e176('0x0'),_0x22e176('0x15'),{'type':_0x5d844a[_0x22e176('0x20')],'defaultValue':'no'}),_0xf2b6b5[_0x22e176('0x21')](_0x56bb75);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.39.js b/server/migrations/2.0.39.js index dce54d0..978ebd1 100644 --- a/server/migrations/2.0.39.js +++ b/server/migrations/2.0.39.js @@ -1 +1 @@ -const a918_0x2e7c=['STRING','then','server/api/voiceContext/voiceContext.model','addColumn','sequelize','catch','DATE','checkVoiceContexts','/etc/asterisk/extensions_xcally_contexts.conf','moduleCreate','settings','asterisk\x20-rx\x20\x22reload\x20chan_sip.so\x22','changeColumn','queryInterface','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','int_salesforce_configurations','root','exec','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-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());','nothing','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\x279\x27,\x20\x27Set\x27,\x20\x27FAXOPT(modem)=${XMF-MODEM}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','chmod\x20775\x20/var/opt/motion2/server/files/attachments','ls\x20-la\x20/var/opt/motion2/server/files','utf8','server/files/templates/context.ejs','ejs','cm_contacts','writeFileSync','addIndex','import','enqueue','info','Added\x20column\x20%s\x20to\x20%s','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\x276\x27,\x20\x27Set\x27,\x20\x27FAXOPT(localstationid)=${XMF-LOCALSTATIONID}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','readFileSync','\x20Error\x20:','path','lead','moduleSearch','Ls\x20:','sequence','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-fax\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','BOOLEAN','query','stringify','default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','prototype','spread','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\x274\x27,\x20\x27Set\x27,\x20\x27FAXOPT(ecm)=${XMF-ECM}\x27,\x20\x27system\x27,\x20\x27Fax\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-fax\x27,\x20\x273\x27,\x20\x27Wait\x27,\x20\x276\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','tail','xcally-mixmonitor-context','final','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());','render','findAll','contact_lead'];(function(_0x3a4c21,_0x2e7cba){const _0x2deab6=function(_0x3a32d2){while(--_0x3a32d2){_0x3a4c21['push'](_0x3a4c21['shift']());}};_0x2deab6(++_0x2e7cba);}(a918_0x2e7c,0x18e));const a918_0x2dea=function(_0x3a4c21,_0x2e7cba){_0x3a4c21=_0x3a4c21-0x0;let _0x2deab6=a918_0x2e7c[_0x3a4c21];return _0x2deab6;};const _0x1aa637=a918_0x2dea;'use strict';const logger=require('../config/logger')('migration'),util=require(_0x1aa637('0x19')),ejs=require(_0x1aa637('0x8')),fs=require('fs'),path=require(_0x1aa637('0x14')),exec=require('child_process')[_0x1aa637('0x3d')],config=require('../config/environment'),Sequence=function(){};Sequence[_0x1aa637('0x1f')][_0x1aa637('0xd')]=function(_0x3a32d2){const _0x16ef1b=_0x1aa637;this[_0x16ef1b('0x24')]=this[_0x16ef1b('0x24')]?this['tail']['finally'](_0x3a32d2):_0x3a32d2();};const Migration=function(_0x4eeaa7){const _0x59185b=_0x1aa637;this['queryInterface']=_0x4eeaa7,this[_0x59185b('0x18')]=new Sequence();};Migration[_0x1aa637('0x1f')][_0x1aa637('0x37')]=function(_0x66c8c1,_0x18a5c0,_0x580c39){const _0x7f3e79=_0x1aa637,_0x3779e7=this;this[_0x7f3e79('0x18')][_0x7f3e79('0xd')](function(){const _0x39c8f4=_0x7f3e79;return _0x3779e7[_0x39c8f4('0x38')]['changeColumn'](_0x66c8c1,_0x18a5c0,_0x580c39)[_0x39c8f4('0x2c')](function(){const _0x25bc82=_0x39c8f4;logger[_0x25bc82('0xe')](_0x25bc82('0x3a'),_0x18a5c0,_0x66c8c1);})['catch'](function(_0x6a6394){const _0x198c93=_0x39c8f4;logger['info'](JSON[_0x198c93('0x1d')](_0x6a6394));});});},Migration[_0x1aa637('0x1f')]['addColumn']=function(_0x556ec0,_0x38d75d,_0x166129){const _0x5c9976=this;this['sequence']['enqueue'](function(){const _0x2e4c73=a918_0x2dea;return _0x5c9976['queryInterface']['addColumn'](_0x556ec0,_0x38d75d,_0x166129)[_0x2e4c73('0x2c')](function(){const _0x2e0341=_0x2e4c73;logger[_0x2e0341('0xe')](_0x2e0341('0xf'),_0x38d75d,_0x556ec0);})[_0x2e4c73('0x30')](function(_0x43f08a){const _0x592622=_0x2e4c73;logger['info'](JSON[_0x592622('0x1d')](_0x43f08a));});});},Migration[_0x1aa637('0x1f')][_0x1aa637('0x39')]=function(_0x1be729){const _0x257f69=_0x1aa637,_0x20f026=this;this[_0x257f69('0x18')]['enqueue'](function(){const _0x1f066b=_0x257f69;return _0x20f026['queryInterface'][_0x1f066b('0x39')](_0x1be729,{'force':!![]})[_0x1f066b('0x2c')](function(){const _0x3d026b=_0x1f066b;logger[_0x3d026b('0xe')]('table\x20dropped\x20%s',_0x1be729);})[_0x1f066b('0x30')](function(_0x478231){const _0x164ce7=_0x1f066b;logger['info'](JSON[_0x164ce7('0x1d')](_0x478231));});});},Migration[_0x1aa637('0x1f')][_0x1aa637('0xb')]=function(_0x405385,_0x26a83c,_0x1b1223){const _0x475987=_0x1aa637,_0x489106=this;this[_0x475987('0x18')][_0x475987('0xd')](function(){const _0x271fe6=_0x475987;return _0x489106[_0x271fe6('0x38')]['addIndex'](_0x405385,_0x26a83c,{'indexName':_0x1b1223})[_0x271fe6('0x2c')](function(){const _0x3a03a2=_0x271fe6;logger[_0x3a03a2('0xe')]('addIndex\x20%s\x20%s\x20%s',_0x405385,_0x26a83c[_0x3a03a2('0x3e')](','),_0x1b1223);})[_0x271fe6('0x30')](function(_0x5f5b65){const _0x4d0416=_0x271fe6;logger[_0x4d0416('0xe')](JSON[_0x4d0416('0x1d')](_0x5f5b65));});});},Migration[_0x1aa637('0x1f')]['query']=function(_0x46f05c){const _0x1e891f=this;this['sequence']['enqueue'](function(){const _0x23d048=a918_0x2dea;return _0x1e891f[_0x23d048('0x38')]['sequelize'][_0x23d048('0x1c')](_0x46f05c)[_0x23d048('0x2c')](function(){const _0xd7f8ef=_0x23d048;logger[_0xd7f8ef('0xe')]('query\x20%s',_0x46f05c);})[_0x23d048('0x30')](function(_0xa2556c){const _0x49bba8=_0x23d048;logger[_0x49bba8('0xe')](JSON[_0x49bba8('0x1d')](_0xa2556c));});});},Migration[_0x1aa637('0x1f')]['removeColumn']=function(_0x347db4,_0x470c1e){const _0x3481bc=_0x1aa637,_0x402997=this;this[_0x3481bc('0x18')][_0x3481bc('0xd')](function(){const _0x5cbdde=_0x3481bc;return _0x402997[_0x5cbdde('0x38')]['removeColumn'](_0x347db4,_0x470c1e)[_0x5cbdde('0x2c')](function(){const _0x432ed1=_0x5cbdde;logger[_0x432ed1('0xe')]('Removed\x20column\x20%s\x20from\x20%s',_0x470c1e,_0x347db4);})[_0x5cbdde('0x30')](function(_0x4b70b8){const _0x16cf6a=_0x5cbdde;logger[_0x16cf6a('0xe')](util['inspect'](_0x4b70b8,{'showHidden':![],'depth':null}));});});},Migration[_0x1aa637('0x1f')][_0x1aa637('0x32')]=function(){const _0x391e14=_0x1aa637,_0x5e90b5=this,_0x471278=_0x5e90b5[_0x391e14('0x38')][_0x391e14('0x2f')][_0x391e14('0xc')](path[_0x391e14('0x3e')](config[_0x391e14('0x3c')],_0x391e14('0x2d')));this[_0x391e14('0x18')][_0x391e14('0xd')](function(){const _0x150dac=_0x391e14;return _0x471278['findOrCreate']({'where':{'name':'xcally-mixmonitor-context'},'defaults':{'name':_0x150dac('0x25'),'description':_0x150dac('0x1e'),'defaultEntry':!![]}})[_0x150dac('0x20')](function(){const _0x43640f=_0x150dac;return _0x471278[_0x43640f('0x29')]({'raw':!![]});})[_0x150dac('0x2c')](function(_0x50d425){const _0x51b165=_0x150dac,_0x158896=fs[_0x51b165('0x12')](path[_0x51b165('0x3e')](config[_0x51b165('0x3c')],_0x51b165('0x7')),_0x51b165('0x6')),_0x2912ff=ejs[_0x51b165('0x28')](_0x158896,{'contexts':_0x50d425||[]});fs[_0x51b165('0xa')](_0x51b165('0x33'),_0x2912ff),exec(_0x51b165('0x36'),function(_0x8839d0,_0x2a24e3,_0x5c4992){const _0x4c2cb7=_0x51b165;logger[_0x4c2cb7('0xe')](_0x4c2cb7('0x2'),'\x20Error\x20:',JSON[_0x4c2cb7('0x1d')](_0x8839d0),_0x2a24e3,_0x5c4992);});})[_0x150dac('0x30')](function(_0x1f0f00){const _0x162eea=_0x150dac;logger[_0x162eea('0xe')](JSON[_0x162eea('0x1d')](_0x1f0f00));});});},Migration[_0x1aa637('0x1f')][_0x1aa637('0x26')]=function(_0x243e36){const _0x21faac=_0x1aa637;this[_0x21faac('0x18')][_0x21faac('0xd')](function(){return _0x243e36();});},module['exports']={'up':function(_0x1e02cd,_0x50c6fe){return new Promise(function(_0x9598fa){const _0x3abdc9=a918_0x2dea,_0x4380eb=new Migration(_0x1e02cd);_0x4380eb['addColumn'](_0x3abdc9('0x35'),'defaultPageTitle',{'type':_0x50c6fe[_0x3abdc9('0x1b')],'defaultValue':!![]}),_0x4380eb[_0x3abdc9('0x2e')]('settings','pageTitle',{'type':_0x50c6fe[_0x3abdc9('0x2b')]}),_0x4380eb['checkVoiceContexts'](),_0x4380eb[_0x3abdc9('0x2e')](_0x3abdc9('0x3b'),_0x3abdc9('0x16'),{'type':_0x50c6fe[_0x3abdc9('0x10')](_0x3abdc9('0x2a'),_0x3abdc9('0x21'),_0x3abdc9('0x15')),'defaultValue':_0x3abdc9('0x2a')}),_0x4380eb[_0x3abdc9('0x2e')](_0x3abdc9('0x3b'),_0x3abdc9('0x34'),{'type':_0x50c6fe['ENUM'](_0x3abdc9('0x1'),'contact','lead'),'defaultValue':'lead'}),_0x4380eb['query'](_0x3abdc9('0x1a')),_0x4380eb[_0x3abdc9('0x1c')]('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());'),_0x4380eb[_0x3abdc9('0x1c')](_0x3abdc9('0x23')),_0x4380eb[_0x3abdc9('0x1c')](_0x3abdc9('0x22')),_0x4380eb[_0x3abdc9('0x1c')]('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());'),_0x4380eb[_0x3abdc9('0x1c')](_0x3abdc9('0x11')),_0x4380eb[_0x3abdc9('0x1c')]('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());'),_0x4380eb[_0x3abdc9('0x1c')](_0x3abdc9('0x0')),_0x4380eb[_0x3abdc9('0x1c')](_0x3abdc9('0x3')),_0x4380eb['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\x2710\x27,\x20\x27Set\x27,\x20\x27FAXOPT(t38timeout)=${XMF-T38TIMEOUT}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x4380eb[_0x3abdc9('0x1c')](_0x3abdc9('0x27')),exec(_0x3abdc9('0x4'),function(_0x4dc3b1,_0x4412fe,_0xec376){const _0x9c4100=_0x3abdc9;logger['info'](_0x9c4100('0x2'),'\x20Error\x20:',JSON[_0x9c4100('0x1d')](_0x4dc3b1),_0x4412fe,_0xec376),exec(_0x9c4100('0x5'),function(_0x1697bd,_0x100e35,_0x52fd8b){const _0x5c6197=_0x9c4100;logger[_0x5c6197('0xe')](_0x5c6197('0x17'),_0x5c6197('0x13'),JSON['stringify'](_0x1697bd),_0x100e35,_0x52fd8b);});}),_0x4380eb[_0x3abdc9('0x2e')](_0x3abdc9('0x9'),'deletedAt',{'type':_0x50c6fe[_0x3abdc9('0x31')],'defaultValue':null}),_0x4380eb['final'](_0x9598fa);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.40.js b/server/migrations/2.0.40.js index e368ed0..4922033 100644 --- a/server/migrations/2.0.40.js +++ b/server/migrations/2.0.40.js @@ -1 +1 @@ -var a919_0x24dc=['exports'];(function(_0x19b916,_0x24dcf7){var _0x56c173=function(_0x41d7bc){while(--_0x41d7bc){_0x19b916['push'](_0x19b916['shift']());}};_0x56c173(++_0x24dcf7);}(a919_0x24dc,0xcb));var a919_0x56c1=function(_0x19b916,_0x24dcf7){_0x19b916=_0x19b916-0x0;var _0x56c173=a919_0x24dc[_0x19b916];return _0x56c173;};var _0x1a194d=a919_0x56c1;'use strict';module[_0x1a194d('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.41.js b/server/migrations/2.0.41.js index bd470c1..9b10038 100644 --- a/server/migrations/2.0.41.js +++ b/server/migrations/2.0.41.js @@ -1 +1 @@ -const a920_0x1da1=['migration','chat_messages','util','dropTable','serverUrl','prototype','int_desk_accounts','formData','finally','catch','../config/logger','then','sequence','addIndex\x20%s\x20%s\x20%s','queryInterface','table\x20dropped\x20%s','final','TEXT','tail','STRING','long','Removed\x20column\x20%s\x20from\x20%s','addColumn','addIndex','query\x20%s','values','changeColumn','removeColumn','showAgentAvatar','exports','Changed\x20column\x20%s\x20in\x20table\x20%s','secret','sequelize','query','join','info','agentAvatar','BOOLEAN','enqueue','cm_custom_fields','stringify'];(function(_0x927288,_0x1da141){const _0x499028=function(_0xf84e17){while(--_0xf84e17){_0x927288['push'](_0x927288['shift']());}};_0x499028(++_0x1da141);}(a920_0x1da1,0x9f));const a920_0x4990=function(_0x927288,_0x1da141){_0x927288=_0x927288-0x0;let _0x499028=a920_0x1da1[_0x927288];return _0x499028;};const _0x3c8876=a920_0x4990;'use strict';const logger=require(_0x3c8876('0xf'))(_0x3c8876('0x5')),util=require(_0x3c8876('0x7')),Sequence=function(){};Sequence[_0x3c8876('0xa')][_0x3c8876('0x2')]=function(_0xf84e17){const _0x543a96=_0x3c8876;this['tail']=this[_0x543a96('0x17')]?this['tail'][_0x543a96('0xd')](_0xf84e17):_0xf84e17();};const Migration=function(_0x1063c0){const _0x180dc7=_0x3c8876;this['queryInterface']=_0x1063c0,this[_0x180dc7('0x11')]=new Sequence();};Migration[_0x3c8876('0xa')][_0x3c8876('0x1f')]=function(_0x2948f2,_0x429904,_0x33f527){const _0x58fdb4=_0x3c8876,_0x4ad7d6=this;this[_0x58fdb4('0x11')][_0x58fdb4('0x2')](function(){const _0x211467=_0x58fdb4;return _0x4ad7d6[_0x211467('0x13')]['changeColumn'](_0x2948f2,_0x429904,_0x33f527)[_0x211467('0x10')](function(){const _0x5414ed=_0x211467;logger[_0x5414ed('0x28')](_0x5414ed('0x23'),_0x429904,_0x2948f2);})[_0x211467('0xe')](function(_0x3f1118){const _0x3acade=_0x211467;logger[_0x3acade('0x28')](JSON[_0x3acade('0x4')](_0x3f1118));});});},Migration[_0x3c8876('0xa')]['addColumn']=function(_0x52d384,_0x211707,_0x4aab15){const _0x2219b4=_0x3c8876,_0x3de67e=this;this[_0x2219b4('0x11')][_0x2219b4('0x2')](function(){const _0x21e291=_0x2219b4;return _0x3de67e[_0x21e291('0x13')][_0x21e291('0x1b')](_0x52d384,_0x211707,_0x4aab15)[_0x21e291('0x10')](function(){const _0x3e4e4a=_0x21e291;logger[_0x3e4e4a('0x28')]('Added\x20column\x20%s\x20to\x20%s',_0x211707,_0x52d384);})[_0x21e291('0xe')](function(_0x24e0a1){const _0x42ef7f=_0x21e291;logger[_0x42ef7f('0x28')](JSON[_0x42ef7f('0x4')](_0x24e0a1));});});},Migration[_0x3c8876('0xa')][_0x3c8876('0x8')]=function(_0x1bc487){const _0x3da410=_0x3c8876,_0x6ae8ac=this;this[_0x3da410('0x11')]['enqueue'](function(){const _0x45843e=_0x3da410;return _0x6ae8ac['queryInterface'][_0x45843e('0x8')](_0x1bc487,{'force':!![]})[_0x45843e('0x10')](function(){const _0x54255b=_0x45843e;logger[_0x54255b('0x28')](_0x54255b('0x14'),_0x1bc487);})[_0x45843e('0xe')](function(_0x1ed1ad){const _0x42ae15=_0x45843e;logger[_0x42ae15('0x28')](JSON[_0x42ae15('0x4')](_0x1ed1ad));});});},Migration['prototype'][_0x3c8876('0x1c')]=function(_0x26299c,_0x7763ad,_0x642395){const _0x74e85a=_0x3c8876,_0x3153dc=this;this[_0x74e85a('0x11')][_0x74e85a('0x2')](function(){const _0x19a0d8=_0x74e85a;return _0x3153dc['queryInterface']['addIndex'](_0x26299c,_0x7763ad,{'indexName':_0x642395})['then'](function(){const _0x53fd22=a920_0x4990;logger[_0x53fd22('0x28')](_0x53fd22('0x12'),_0x26299c,_0x7763ad[_0x53fd22('0x27')](','),_0x642395);})[_0x19a0d8('0xe')](function(_0xe5203b){const _0x5d8866=_0x19a0d8;logger[_0x5d8866('0x28')](JSON[_0x5d8866('0x4')](_0xe5203b));});});},Migration['prototype'][_0x3c8876('0x26')]=function(_0x1142a4){const _0x3f8645=_0x3c8876,_0xe3e13b=this;this[_0x3f8645('0x11')][_0x3f8645('0x2')](function(){const _0x47c934=_0x3f8645;return _0xe3e13b[_0x47c934('0x13')][_0x47c934('0x25')][_0x47c934('0x26')](_0x1142a4)['then'](function(){const _0x1ae52b=_0x47c934;logger[_0x1ae52b('0x28')](_0x1ae52b('0x1d'),_0x1142a4);})[_0x47c934('0xe')](function(_0xb03365){const _0x5598c5=_0x47c934;logger[_0x5598c5('0x28')](JSON['stringify'](_0xb03365));});});},Migration[_0x3c8876('0xa')]['removeColumn']=function(_0x17be72,_0x406783){const _0x8f7e09=_0x3c8876,_0x5dd074=this;this['sequence'][_0x8f7e09('0x2')](function(){const _0x3fabc8=_0x8f7e09;return _0x5dd074[_0x3fabc8('0x13')][_0x3fabc8('0x20')](_0x17be72,_0x406783)['then'](function(){const _0x4fdc59=_0x3fabc8;logger[_0x4fdc59('0x28')](_0x4fdc59('0x1a'),_0x406783,_0x17be72);})[_0x3fabc8('0xe')](function(_0x15233f){const _0xf322ee=_0x3fabc8;logger[_0xf322ee('0x28')](util['inspect'](_0x15233f,{'showHidden':![],'depth':null}));});});},Migration[_0x3c8876('0xa')]['final']=function(_0x3d3654){const _0x15b962=_0x3c8876;this['sequence'][_0x15b962('0x2')](function(){return _0x3d3654();});},module[_0x3c8876('0x22')]={'up':function(_0x531565,_0x42586f){return new Promise(function(_0x12b237){const _0xacac6d=a920_0x4990,_0x375059=new Migration(_0x531565);_0x375059[_0xacac6d('0x1b')](_0xacac6d('0xb'),_0xacac6d('0x9'),{'type':_0x42586f[_0xacac6d('0x18')]}),_0x375059[_0xacac6d('0x1b')]('chat_interactions',_0xacac6d('0xc'),{'type':_0x42586f['TEXT']('long')}),_0x375059[_0xacac6d('0x1b')](_0xacac6d('0x6'),_0xacac6d('0x24'),{'type':_0x42586f[_0xacac6d('0x1')],'defaultValue':![]}),_0x375059[_0xacac6d('0x1b')]('chat_websites',_0xacac6d('0x0'),{'type':_0x42586f[_0xacac6d('0x16')]}),_0x375059['addColumn']('chat_websites',_0xacac6d('0x21'),{'type':_0x42586f['BOOLEAN'],'defaultValue':![]}),_0x375059[_0xacac6d('0x1f')](_0xacac6d('0x3'),_0xacac6d('0x1e'),{'type':_0x42586f[_0xacac6d('0x16')](_0xacac6d('0x19'))}),_0x375059[_0xacac6d('0x15')](_0x12b237);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.42.js b/server/migrations/2.0.42.js index 10bb44c..57b99ae 100644 --- a/server/migrations/2.0.42.js +++ b/server/migrations/2.0.42.js @@ -1 +1 @@ -const a921_0x2425=['final','removeColumn','#0091EA','util','getCustomFields','info','table\x20dropped\x20%s','queryInterface','Removed\x20column\x20%s\x20from\x20%s','query','STRING','../config/logger','fax_messages','enqueue','then','server/api/cmCustomField/cmCustomField.model','Added\x20column\x20%s\x20to\x20%s','import','finally','color','number','openchannel_messages','changeColumn','root','addIndex\x20%s\x20%s\x20%s','TEXT','stringify','sequelize','cm_contacts','migration','sequence','users','findAll','addIndex','length','extensionMonitor','tail','addColumn','notIn','prototype','exports','switch','failMessage','catch','join','query\x20%s','path','cf_'];(function(_0x335a5d,_0x24256f){const _0x229fae=function(_0x2de84c){while(--_0x2de84c){_0x335a5d['push'](_0x335a5d['shift']());}};_0x229fae(++_0x24256f);}(a921_0x2425,0x14c));const a921_0x229f=function(_0x335a5d,_0x24256f){_0x335a5d=_0x335a5d-0x0;let _0x229fae=a921_0x2425[_0x335a5d];return _0x229fae;};const _0x131453=a921_0x229f;'use strict';const logger=require(_0x131453('0xf'))(_0x131453('0x21')),util=require(_0x131453('0x7')),path=require(_0x131453('0x2')),config=require('../config/environment'),{Op}=require(_0x131453('0x1f')),Sequence=function(){};Sequence[_0x131453('0x2b')][_0x131453('0x11')]=function(_0x2de84c){const _0x189c3e=_0x131453;this[_0x189c3e('0x28')]=this['tail']?this[_0x189c3e('0x28')][_0x189c3e('0x16')](_0x2de84c):_0x2de84c();};const Migration=function(_0x12a6af){const _0x3afb25=_0x131453;this['queryInterface']=_0x12a6af,this[_0x3afb25('0x22')]=new Sequence();};Migration[_0x131453('0x2b')][_0x131453('0x1a')]=function(_0x118212,_0x2a762d,_0x4d3386){const _0x980066=_0x131453,_0x20add7=this;this[_0x980066('0x22')]['enqueue'](function(){const _0x8fba83=_0x980066;return _0x20add7[_0x8fba83('0xb')][_0x8fba83('0x1a')](_0x118212,_0x2a762d,_0x4d3386)[_0x8fba83('0x12')](function(){const _0x3a3246=_0x8fba83;logger[_0x3a3246('0x9')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x2a762d,_0x118212);})['catch'](function(_0x3a39c4){const _0x5592eb=_0x8fba83;logger[_0x5592eb('0x9')](JSON[_0x5592eb('0x1e')](_0x3a39c4));});});},Migration['prototype'][_0x131453('0x29')]=function(_0x2f4b60,_0x46a9ae,_0x2c281a){const _0x4f3acc=_0x131453,_0x2877af=this;this[_0x4f3acc('0x22')][_0x4f3acc('0x11')](function(){const _0x2adcff=_0x4f3acc;return _0x2877af['queryInterface'][_0x2adcff('0x29')](_0x2f4b60,_0x46a9ae,_0x2c281a)[_0x2adcff('0x12')](function(){const _0x314ffc=_0x2adcff;logger[_0x314ffc('0x9')](_0x314ffc('0x14'),_0x46a9ae,_0x2f4b60);})[_0x2adcff('0x2f')](function(_0x146168){const _0x34758d=_0x2adcff;logger[_0x34758d('0x9')](JSON[_0x34758d('0x1e')](_0x146168));});});},Migration[_0x131453('0x2b')]['dropTable']=function(_0x107659){const _0x29d762=_0x131453,_0x37b4aa=this;this[_0x29d762('0x22')][_0x29d762('0x11')](function(){const _0x2251c9=_0x29d762;return _0x37b4aa[_0x2251c9('0xb')]['dropTable'](_0x107659,{'force':!![]})[_0x2251c9('0x12')](function(){const _0x5765b9=_0x2251c9;logger[_0x5765b9('0x9')](_0x5765b9('0xa'),_0x107659);})[_0x2251c9('0x2f')](function(_0x41d8c3){const _0x1cfeaf=_0x2251c9;logger[_0x1cfeaf('0x9')](JSON['stringify'](_0x41d8c3));});});},Migration['prototype']['addIndex']=function(_0x3dffc6,_0x3d6f55,_0x129e50){const _0xcb63b9=_0x131453,_0x6b0e8e=this;this[_0xcb63b9('0x22')][_0xcb63b9('0x11')](function(){const _0xf2dd97=_0xcb63b9;return _0x6b0e8e[_0xf2dd97('0xb')][_0xf2dd97('0x25')](_0x3dffc6,_0x3d6f55,{'indexName':_0x129e50})[_0xf2dd97('0x12')](function(){const _0x51fad7=_0xf2dd97;logger['info'](_0x51fad7('0x1c'),_0x3dffc6,_0x3d6f55[_0x51fad7('0x0')](','),_0x129e50);})[_0xf2dd97('0x2f')](function(_0x5dd838){const _0x23875f=_0xf2dd97;logger[_0x23875f('0x9')](JSON[_0x23875f('0x1e')](_0x5dd838));});});},Migration[_0x131453('0x2b')][_0x131453('0xd')]=function(_0x5dad38){const _0x8d58d0=_0x131453,_0x235f4b=this;this[_0x8d58d0('0x22')][_0x8d58d0('0x11')](function(){const _0x53f0bb=_0x8d58d0;return _0x235f4b['queryInterface'][_0x53f0bb('0x1f')][_0x53f0bb('0xd')](_0x5dad38)[_0x53f0bb('0x12')](function(){const _0xb05992=_0x53f0bb;logger[_0xb05992('0x9')](_0xb05992('0x1'),_0x5dad38);})[_0x53f0bb('0x2f')](function(_0xf59fcb){const _0x45865a=_0x53f0bb;logger['info'](JSON[_0x45865a('0x1e')](_0xf59fcb));});});},Migration['prototype'][_0x131453('0x5')]=function(_0xd962e,_0x4103f0){const _0x5b83df=_0x131453,_0x57bc8a=this;this[_0x5b83df('0x22')]['enqueue'](function(){const _0x4cfced=_0x5b83df;return _0x57bc8a[_0x4cfced('0xb')][_0x4cfced('0x5')](_0xd962e,_0x4103f0)[_0x4cfced('0x12')](function(){const _0x128a16=_0x4cfced;logger['info'](_0x128a16('0xc'),_0x4103f0,_0xd962e);})[_0x4cfced('0x2f')](function(_0x5dac79){const _0x314cf8=_0x4cfced;logger[_0x314cf8('0x9')](util['inspect'](_0x5dac79,{'showHidden':![],'depth':null}));});});},Migration[_0x131453('0x2b')][_0x131453('0x8')]=function(){const _0x3c575c=_0x131453,_0x4e4012=this,_0x2e7f59=_0x4e4012[_0x3c575c('0xb')]['sequelize'][_0x3c575c('0x15')](path[_0x3c575c('0x0')](config[_0x3c575c('0x1b')],_0x3c575c('0x13')));return _0x2e7f59[_0x3c575c('0x24')]({'where':{'type':{[Op[_0x3c575c('0x2a')]]:[_0x3c575c('0x18'),_0x3c575c('0x2d')]}},'attributes':['id']})[_0x3c575c('0x12')](function(_0x5be4bb){return _0x5be4bb;})['catch'](function(_0x3ff4f4){const _0x495c4a=_0x3c575c;logger[_0x495c4a('0x9')](JSON['stringify'](_0x3ff4f4));});},Migration[_0x131453('0x2b')][_0x131453('0x4')]=function(_0x1c424b){const _0x317ee6=_0x131453;this[_0x317ee6('0x22')]['enqueue'](function(){return _0x1c424b();});},module[_0x131453('0x2c')]={'up':function(_0x4ad9fb,_0x256d43){return new Promise(function(_0x22a9d6){const _0x75d65a=a921_0x229f,_0x2ac54f=new Migration(_0x4ad9fb);_0x2ac54f[_0x75d65a('0x29')]('tools_tags',_0x75d65a('0x17'),{'type':_0x256d43[_0x75d65a('0xe')],'defaultValue':_0x75d65a('0x6')}),_0x2ac54f['addColumn'](_0x75d65a('0x19'),'secret',{'type':_0x256d43['BOOLEAN'],'defaultValue':![]}),_0x2ac54f[_0x75d65a('0x8')]()[_0x75d65a('0x12')](function(_0x5ef578){const _0x112b02=_0x75d65a;if(_0x5ef578)for(let _0x2b5102=0x0,_0x669d5e=_0x5ef578[_0x112b02('0x26')];_0x2b5102<_0x669d5e;_0x2b5102++){_0x2ac54f[_0x112b02('0x1a')](_0x112b02('0x20'),_0x112b02('0x3')+_0x5ef578[_0x2b5102]['id'],{'type':_0x256d43[_0x112b02('0x1d')]});}}),_0x2ac54f[_0x75d65a('0x29')](_0x75d65a('0x10'),_0x75d65a('0x2e'),{'type':_0x256d43['TEXT']}),_0x2ac54f[_0x75d65a('0x29')](_0x75d65a('0x23'),_0x75d65a('0x27'),{'type':_0x256d43['STRING'],'defaultValue':''}),_0x2ac54f[_0x75d65a('0x4')](_0x22a9d6);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.43.js b/server/migrations/2.0.43.js index 23a2082..a9e806a 100644 --- a/server/migrations/2.0.43.js +++ b/server/migrations/2.0.43.js @@ -1 +1 @@ -const a922_0x4c26=['BOOLEAN','query','changeColumn','sequelize','addIndex\x20%s\x20%s\x20%s','sequence','exports','migration','stringify','tail','util','queryInterface','final','catch','Added\x20column\x20%s\x20to\x20%s','prototype','info','addColumn','enqueue','mail_messages','secret','join','then','dropTable','Removed\x20column\x20%s\x20from\x20%s','addIndex','removeColumn'];(function(_0x3a8526,_0x4c2654){const _0x48fcd8=function(_0x32e9da){while(--_0x32e9da){_0x3a8526['push'](_0x3a8526['shift']());}};_0x48fcd8(++_0x4c2654);}(a922_0x4c26,0xee));const a922_0x48fc=function(_0x3a8526,_0x4c2654){_0x3a8526=_0x3a8526-0x0;let _0x48fcd8=a922_0x4c26[_0x3a8526];return _0x48fcd8;};const _0x273435=a922_0x48fc;'use strict';const logger=require('../config/logger')(_0x273435('0xc')),util=require(_0x273435('0xf')),Sequence=function(){};Sequence[_0x273435('0x14')]['enqueue']=function(_0x32e9da){const _0x6dba7c=_0x273435;this[_0x6dba7c('0xe')]=this[_0x6dba7c('0xe')]?this['tail']['finally'](_0x32e9da):_0x32e9da();};const Migration=function(_0x3da305){const _0x8d8be0=_0x273435;this[_0x8d8be0('0x10')]=_0x3da305,this[_0x8d8be0('0xa')]=new Sequence();};Migration['prototype'][_0x273435('0x7')]=function(_0x2ef0f2,_0x1e2de6,_0x11cc22){const _0x4aa5fe=_0x273435,_0x17585e=this;this[_0x4aa5fe('0xa')]['enqueue'](function(){const _0x3f6c11=_0x4aa5fe;return _0x17585e['queryInterface'][_0x3f6c11('0x7')](_0x2ef0f2,_0x1e2de6,_0x11cc22)['then'](function(){const _0xf82776=_0x3f6c11;logger[_0xf82776('0x15')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1e2de6,_0x2ef0f2);})['catch'](function(_0x54bfb8){const _0x4ba832=_0x3f6c11;logger[_0x4ba832('0x15')](JSON[_0x4ba832('0xd')](_0x54bfb8));});});},Migration[_0x273435('0x14')][_0x273435('0x16')]=function(_0x530570,_0x26635f,_0x2dadba){const _0x3f64e0=_0x273435,_0x4d3151=this;this[_0x3f64e0('0xa')][_0x3f64e0('0x17')](function(){const _0x10d4d8=_0x3f64e0;return _0x4d3151[_0x10d4d8('0x10')][_0x10d4d8('0x16')](_0x530570,_0x26635f,_0x2dadba)[_0x10d4d8('0x0')](function(){const _0x1b4bc4=_0x10d4d8;logger[_0x1b4bc4('0x15')](_0x1b4bc4('0x13'),_0x26635f,_0x530570);})['catch'](function(_0x4c0a28){const _0x48d717=_0x10d4d8;logger[_0x48d717('0x15')](JSON[_0x48d717('0xd')](_0x4c0a28));});});},Migration[_0x273435('0x14')][_0x273435('0x1')]=function(_0x88d110){const _0x3e7e56=_0x273435,_0x14fbe1=this;this[_0x3e7e56('0xa')][_0x3e7e56('0x17')](function(){const _0x9709d3=_0x3e7e56;return _0x14fbe1[_0x9709d3('0x10')][_0x9709d3('0x1')](_0x88d110,{'force':!![]})[_0x9709d3('0x0')](function(){logger['info']('table\x20dropped\x20%s',_0x88d110);})[_0x9709d3('0x12')](function(_0x181c87){const _0x5ae8c9=_0x9709d3;logger['info'](JSON[_0x5ae8c9('0xd')](_0x181c87));});});},Migration[_0x273435('0x14')][_0x273435('0x3')]=function(_0x155de6,_0x50fa5f,_0x38dcae){const _0x5f04eb=this;this['sequence']['enqueue'](function(){const _0x185242=a922_0x48fc;return _0x5f04eb[_0x185242('0x10')][_0x185242('0x3')](_0x155de6,_0x50fa5f,{'indexName':_0x38dcae})['then'](function(){const _0x49aa1a=_0x185242;logger['info'](_0x49aa1a('0x9'),_0x155de6,_0x50fa5f[_0x49aa1a('0x1a')](','),_0x38dcae);})['catch'](function(_0xb5d94f){const _0x2a01d6=_0x185242;logger[_0x2a01d6('0x15')](JSON[_0x2a01d6('0xd')](_0xb5d94f));});});},Migration['prototype'][_0x273435('0x6')]=function(_0x34db72){const _0x3d60ff=_0x273435,_0x3df99d=this;this[_0x3d60ff('0xa')][_0x3d60ff('0x17')](function(){const _0x434407=_0x3d60ff;return _0x3df99d['queryInterface'][_0x434407('0x8')][_0x434407('0x6')](_0x34db72)[_0x434407('0x0')](function(){const _0x5ccd58=_0x434407;logger[_0x5ccd58('0x15')]('query\x20%s',_0x34db72);})[_0x434407('0x12')](function(_0x63ce9f){const _0x1d20c5=_0x434407;logger['info'](JSON[_0x1d20c5('0xd')](_0x63ce9f));});});},Migration['prototype'][_0x273435('0x4')]=function(_0x5a6ffc,_0x1c888b){const _0x37ff2c=_0x273435,_0x5c0117=this;this[_0x37ff2c('0xa')][_0x37ff2c('0x17')](function(){const _0x2db6e5=_0x37ff2c;return _0x5c0117['queryInterface'][_0x2db6e5('0x4')](_0x5a6ffc,_0x1c888b)[_0x2db6e5('0x0')](function(){const _0x413a7d=_0x2db6e5;logger[_0x413a7d('0x15')](_0x413a7d('0x2'),_0x1c888b,_0x5a6ffc);})[_0x2db6e5('0x12')](function(_0x51b51d){logger['info'](util['inspect'](_0x51b51d,{'showHidden':![],'depth':null}));});});},Migration[_0x273435('0x14')][_0x273435('0x11')]=function(_0x215737){const _0x375338=_0x273435;this[_0x375338('0xa')][_0x375338('0x17')](function(){return _0x215737();});},module[_0x273435('0xb')]={'up':function(_0x43ba7d,_0x209c8a){return new Promise(function(_0x11ec66){const _0x475719=a922_0x48fc,_0x4fffdd=new Migration(_0x43ba7d);_0x4fffdd['addColumn'](_0x475719('0x18'),_0x475719('0x19'),{'type':_0x209c8a[_0x475719('0x5')],'defaultValue':![]}),_0x4fffdd[_0x475719('0x11')](_0x11ec66);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.44.js b/server/migrations/2.0.44.js index 2854f54..205161a 100644 --- a/server/migrations/2.0.44.js +++ b/server/migrations/2.0.44.js @@ -1 +1 @@ -const a923_0x22d5=['final','read1stAt','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s','chat_dispositions','STRING','inspect','nameAndAccount','readAt','ALTER\x20TABLE\x20sms_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20SmsAccountId)','mail_messages','openchannel_messages','ALTER\x20TABLE\x20chat_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20ChatAccountId)','sms_messages','mail_dispositions','mail_interactions','dropTable','queryInterface','enqueue','fax_interactions','tail','closingQuestion','chat_messages','Added\x20column\x20%s\x20to\x20%s','query\x20%s','Do\x20you\x20want\x20to\x20close\x20the\x20interaction?','substatus','voice_dispositions','stringify','prototype','DATE','openchannel_interactions','Removed\x20column\x20%s\x20from\x20%s','changeColumn','info','catch','name','exports','util','chat_interactions','table\x20dropped\x20%s','addColumn','fax_dispositions','sms_dispositions','fax_messages','ALTER\x20TABLE\x20openchannel_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20OpenchannelAccountId)','addIndex','query','migration','threadId','../config/logger','ALTER\x20TABLE\x20voice_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20ListId)','then','chat_websites'];(function(_0x3467a2,_0x22d5fd){const _0x35eb38=function(_0x1c646d){while(--_0x1c646d){_0x3467a2['push'](_0x3467a2['shift']());}};_0x35eb38(++_0x22d5fd);}(a923_0x22d5,0x1dd));const a923_0x35eb=function(_0x3467a2,_0x22d5fd){_0x3467a2=_0x3467a2-0x0;let _0x35eb38=a923_0x22d5[_0x3467a2];return _0x35eb38;};const _0x55086e=a923_0x35eb;'use strict';const logger=require(_0x55086e('0x5'))(_0x55086e('0x3')),util=require(_0x55086e('0x2f')),Sequence=function(){};Sequence[_0x55086e('0x26')][_0x55086e('0x1b')]=function(_0x1c646d){const _0x1c1dea=_0x55086e;this[_0x1c1dea('0x1d')]=this[_0x1c1dea('0x1d')]?this['tail']['finally'](_0x1c646d):_0x1c646d();};const Migration=function(_0x2cb089){const _0xf9a3c0=_0x55086e;this[_0xf9a3c0('0x1a')]=_0x2cb089,this[_0xf9a3c0('0xb')]=new Sequence();};Migration[_0x55086e('0x26')][_0x55086e('0x2a')]=function(_0x4cce46,_0x88e422,_0x988e93){const _0x4b4074=_0x55086e,_0x1d8ad2=this;this[_0x4b4074('0xb')][_0x4b4074('0x1b')](function(){const _0x50a55d=_0x4b4074;return _0x1d8ad2['queryInterface'][_0x50a55d('0x2a')](_0x4cce46,_0x88e422,_0x988e93)[_0x50a55d('0x7')](function(){const _0x1d2da3=_0x50a55d;logger[_0x1d2da3('0x2b')](_0x1d2da3('0xc'),_0x88e422,_0x4cce46);})[_0x50a55d('0x2c')](function(_0x1dd6a1){const _0x119468=_0x50a55d;logger['info'](JSON[_0x119468('0x25')](_0x1dd6a1));});});},Migration[_0x55086e('0x26')][_0x55086e('0x32')]=function(_0x4b62a3,_0x2541b1,_0x52b37d){const _0x24dae6=_0x55086e,_0x4d5df6=this;this[_0x24dae6('0xb')][_0x24dae6('0x1b')](function(){const _0x27e828=_0x24dae6;return _0x4d5df6[_0x27e828('0x1a')][_0x27e828('0x32')](_0x4b62a3,_0x2541b1,_0x52b37d)[_0x27e828('0x7')](function(){const _0x350b25=_0x27e828;logger[_0x350b25('0x2b')](_0x350b25('0x20'),_0x2541b1,_0x4b62a3);})[_0x27e828('0x2c')](function(_0x57336c){const _0x3d3a72=_0x27e828;logger[_0x3d3a72('0x2b')](JSON[_0x3d3a72('0x25')](_0x57336c));});});},Migration[_0x55086e('0x26')][_0x55086e('0x19')]=function(_0x1f7542){const _0x4e608c=_0x55086e,_0xa4d530=this;this['sequence'][_0x4e608c('0x1b')](function(){const _0x5126c3=_0x4e608c;return _0xa4d530[_0x5126c3('0x1a')]['dropTable'](_0x1f7542,{'force':!![]})[_0x5126c3('0x7')](function(){const _0x2e5641=_0x5126c3;logger[_0x2e5641('0x2b')](_0x2e5641('0x31'),_0x1f7542);})['catch'](function(_0x564014){const _0x4be111=_0x5126c3;logger[_0x4be111('0x2b')](JSON[_0x4be111('0x25')](_0x564014));});});},Migration[_0x55086e('0x26')][_0x55086e('0x1')]=function(_0x52f077,_0x59a651,_0x368492){const _0x5aea57=_0x55086e,_0x5f365d=this;this[_0x5aea57('0xb')]['enqueue'](function(){const _0x17e280=_0x5aea57;return _0x5f365d[_0x17e280('0x1a')]['addIndex'](_0x52f077,_0x59a651,{'indexName':_0x368492})[_0x17e280('0x7')](function(){const _0x272a8a=_0x17e280;logger[_0x272a8a('0x2b')]('addIndex\x20%s\x20%s\x20%s',_0x52f077,_0x59a651['join'](','),_0x368492);})[_0x17e280('0x2c')](function(_0x2f7483){const _0x5cdb5c=_0x17e280;logger[_0x5cdb5c('0x2b')](JSON['stringify'](_0x2f7483));});});},Migration['prototype'][_0x55086e('0x2')]=function(_0x3c6871){const _0x3cf04d=_0x55086e,_0x342d35=this;this[_0x3cf04d('0xb')][_0x3cf04d('0x1b')](function(){const _0x4a600e=_0x3cf04d;return _0x342d35[_0x4a600e('0x1a')]['sequelize']['query'](_0x3c6871)[_0x4a600e('0x7')](function(){const _0x9120af=_0x4a600e;logger[_0x9120af('0x2b')](_0x9120af('0x21'),_0x3c6871);})[_0x4a600e('0x2c')](function(_0x579bff){const _0x548c7f=_0x4a600e;logger[_0x548c7f('0x2b')](JSON[_0x548c7f('0x25')](_0x579bff));});});},Migration[_0x55086e('0x26')]['removeColumn']=function(_0x187cd6,_0x1982bd){const _0x4d8593=this;this['sequence']['enqueue'](function(){const _0x25a814=a923_0x35eb;return _0x4d8593[_0x25a814('0x1a')]['removeColumn'](_0x187cd6,_0x1982bd)[_0x25a814('0x7')](function(){const _0x1e2d3e=_0x25a814;logger[_0x1e2d3e('0x2b')](_0x1e2d3e('0x29'),_0x1982bd,_0x187cd6);})[_0x25a814('0x2c')](function(_0x3d57af){const _0x30da43=_0x25a814;logger['info'](util[_0x30da43('0xf')](_0x3d57af,{'showHidden':![],'depth':null}));});});},Migration[_0x55086e('0x26')][_0x55086e('0x9')]=function(_0x51e49f){const _0x2d0df1=_0x55086e;this[_0x2d0df1('0xb')][_0x2d0df1('0x1b')](function(){return _0x51e49f();});},module[_0x55086e('0x2e')]={'up':function(_0x12a1a7,_0x4dd7a9){return new Promise(function(_0x36b28f){const _0x40e9ce=a923_0x35eb,_0x1c0644=new Migration(_0x12a1a7);_0x1c0644[_0x40e9ce('0x32')](_0x40e9ce('0x8'),_0x40e9ce('0x1e'),{'type':_0x4dd7a9[_0x40e9ce('0xe')],'defaultValue':_0x40e9ce('0x22')}),_0x1c0644[_0x40e9ce('0x32')](_0x40e9ce('0x30'),'read1stAt',{'type':_0x4dd7a9[_0x40e9ce('0x27')]}),_0x1c0644[_0x40e9ce('0x32')](_0x40e9ce('0x1f'),_0x40e9ce('0x11'),{'type':_0x4dd7a9[_0x40e9ce('0x27')]}),_0x1c0644[_0x40e9ce('0x32')](_0x40e9ce('0x1c'),_0x40e9ce('0xa'),{'type':_0x4dd7a9[_0x40e9ce('0x27')]}),_0x1c0644[_0x40e9ce('0x32')](_0x40e9ce('0x35'),'readAt',{'type':_0x4dd7a9[_0x40e9ce('0x27')]}),_0x1c0644[_0x40e9ce('0x32')](_0x40e9ce('0x28'),_0x40e9ce('0xa'),{'type':_0x4dd7a9[_0x40e9ce('0x27')]}),_0x1c0644[_0x40e9ce('0x32')]('openchannel_interactions',_0x40e9ce('0x4'),{'type':_0x4dd7a9['STRING']}),_0x1c0644[_0x40e9ce('0x32')](_0x40e9ce('0x28'),'externalUrl',{'type':_0x4dd7a9[_0x40e9ce('0xe')]}),_0x1c0644[_0x40e9ce('0x32')](_0x40e9ce('0x14'),_0x40e9ce('0x11'),{'type':_0x4dd7a9[_0x40e9ce('0x27')]}),_0x1c0644[_0x40e9ce('0x32')](_0x40e9ce('0x18'),_0x40e9ce('0xa'),{'type':_0x4dd7a9['DATE']}),_0x1c0644[_0x40e9ce('0x32')](_0x40e9ce('0x18'),_0x40e9ce('0x23'),{'type':_0x4dd7a9['STRING'](0x3c)}),_0x1c0644[_0x40e9ce('0x32')](_0x40e9ce('0x18'),'substatusAt',{'type':_0x4dd7a9['DATE']}),_0x1c0644[_0x40e9ce('0x32')](_0x40e9ce('0x13'),_0x40e9ce('0x11'),{'type':_0x4dd7a9[_0x40e9ce('0x27')]}),_0x1c0644[_0x40e9ce('0x32')]('sms_interactions',_0x40e9ce('0xa'),{'type':_0x4dd7a9[_0x40e9ce('0x27')]}),_0x1c0644[_0x40e9ce('0x32')](_0x40e9ce('0x16'),_0x40e9ce('0x11'),{'type':_0x4dd7a9['DATE']}),_0x1c0644['changeColumn'](_0x40e9ce('0xd'),_0x40e9ce('0x2d'),{'type':_0x4dd7a9[_0x40e9ce('0xe')],'unique':_0x40e9ce('0x10'),'allowNull':![]}),_0x1c0644[_0x40e9ce('0x2a')](_0x40e9ce('0x33'),_0x40e9ce('0x2d'),{'type':_0x4dd7a9['STRING'],'unique':'nameAndAccount','allowNull':![]}),_0x1c0644['changeColumn']('openchannel_dispositions',_0x40e9ce('0x2d'),{'type':_0x4dd7a9[_0x40e9ce('0xe')],'unique':_0x40e9ce('0x10'),'allowNull':![]}),_0x1c0644[_0x40e9ce('0x2a')](_0x40e9ce('0x34'),_0x40e9ce('0x2d'),{'type':_0x4dd7a9['STRING'],'unique':'nameAndAccount','allowNull':![]}),_0x1c0644[_0x40e9ce('0x2a')](_0x40e9ce('0x24'),_0x40e9ce('0x2d'),{'type':_0x4dd7a9[_0x40e9ce('0xe')],'unique':_0x40e9ce('0x10'),'allowNull':![]}),_0x1c0644[_0x40e9ce('0x2')](_0x40e9ce('0x15')),_0x1c0644[_0x40e9ce('0x2')]('ALTER\x20TABLE\x20fax_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20FaxAccountId)'),_0x1c0644['query'](_0x40e9ce('0x0')),_0x1c0644[_0x40e9ce('0x2')](_0x40e9ce('0x12')),_0x1c0644[_0x40e9ce('0x2')](_0x40e9ce('0x6')),_0x1c0644['changeColumn'](_0x40e9ce('0x17'),'name',{'type':_0x4dd7a9[_0x40e9ce('0xe')],'unique':_0x40e9ce('0x10'),'allowNull':![]}),_0x1c0644[_0x40e9ce('0x2')]('ALTER\x20TABLE\x20mail_dispositions\x20DROP\x20INDEX\x20name'),_0x1c0644[_0x40e9ce('0x2')]('ALTER\x20TABLE\x20mail_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20MailAccountId)'),_0x1c0644[_0x40e9ce('0x9')](_0x36b28f);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.45.js b/server/migrations/2.0.45.js index 2a4c8f3..6a2eab8 100644 --- a/server/migrations/2.0.45.js +++ b/server/migrations/2.0.45.js @@ -1 +1 @@ -var a924_0x3e0b=['exports'];(function(_0x328069,_0x3e0bba){var _0x5823ad=function(_0x3986c5){while(--_0x3986c5){_0x328069['push'](_0x328069['shift']());}};_0x5823ad(++_0x3e0bba);}(a924_0x3e0b,0x1d8));var a924_0x5823=function(_0x328069,_0x3e0bba){_0x328069=_0x328069-0x0;var _0x5823ad=a924_0x3e0b[_0x328069];return _0x5823ad;};var _0x416c62=a924_0x5823;'use strict';module[_0x416c62('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.46.js b/server/migrations/2.0.46.js index b328f65..4462b58 100644 --- a/server/migrations/2.0.46.js +++ b/server/migrations/2.0.46.js @@ -1 +1 @@ -const a925_0x5191=['STRING','INTEGER','query','final','enqueue','finally','fax','addIndex','query\x20%s','queryInterface','sequelize','chat_websites','crudPermissions','addIndex\x20%s\x20%s\x20%s','showWebBar','Added\x20column\x20%s\x20to\x20%s','Note','removeColumn','../config/logger','changeColumn','users','then','sequence','util','dropTable','inspect','catch','stringify','prototype','tail','addColumn','Removed\x20column\x20%s\x20from\x20%s','placeholderMessage','fax_interactions','info','noteTitle'];(function(_0x515b64,_0x51919c){const _0x3392de=function(_0x180ef2){while(--_0x180ef2){_0x515b64['push'](_0x515b64['shift']());}};_0x3392de(++_0x51919c);}(a925_0x5191,0x1ed));const a925_0x3392=function(_0x515b64,_0x51919c){_0x515b64=_0x515b64-0x0;let _0x3392de=a925_0x5191[_0x515b64];return _0x3392de;};const _0x28c11a=a925_0x3392;'use strict';const logger=require(_0x28c11a('0x1d'))('migration'),util=require(_0x28c11a('0x22')),Sequence=function(){};Sequence[_0x28c11a('0x3')]['enqueue']=function(_0x180ef2){const _0x23d913=_0x28c11a;this[_0x23d913('0x4')]=this['tail']?this[_0x23d913('0x4')][_0x23d913('0x10')](_0x180ef2):_0x180ef2();};const Migration=function(_0x3c2372){const _0x71e27f=_0x28c11a;this['queryInterface']=_0x3c2372,this[_0x71e27f('0x21')]=new Sequence();};Migration[_0x28c11a('0x3')][_0x28c11a('0x1e')]=function(_0x1437c7,_0x1f6370,_0x1433a7){const _0x186363=_0x28c11a,_0x1c7d2b=this;this['sequence'][_0x186363('0xf')](function(){const _0x1789cb=_0x186363;return _0x1c7d2b[_0x1789cb('0x14')][_0x1789cb('0x1e')](_0x1437c7,_0x1f6370,_0x1433a7)['then'](function(){const _0x24c6b8=_0x1789cb;logger[_0x24c6b8('0x9')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1f6370,_0x1437c7);})[_0x1789cb('0x1')](function(_0x4108c7){const _0x25df84=_0x1789cb;logger['info'](JSON[_0x25df84('0x2')](_0x4108c7));});});},Migration[_0x28c11a('0x3')][_0x28c11a('0x5')]=function(_0x556de7,_0x47ab72,_0x596d31){const _0x2f4561=_0x28c11a,_0x517c26=this;this[_0x2f4561('0x21')][_0x2f4561('0xf')](function(){const _0x4b8376=_0x2f4561;return _0x517c26[_0x4b8376('0x14')]['addColumn'](_0x556de7,_0x47ab72,_0x596d31)['then'](function(){const _0x34e2c5=_0x4b8376;logger['info'](_0x34e2c5('0x1a'),_0x47ab72,_0x556de7);})[_0x4b8376('0x1')](function(_0x50100d){const _0x18b2d6=_0x4b8376;logger[_0x18b2d6('0x9')](JSON[_0x18b2d6('0x2')](_0x50100d));});});},Migration[_0x28c11a('0x3')]['dropTable']=function(_0x461c83){const _0x5e6b4a=_0x28c11a,_0x24fcf9=this;this[_0x5e6b4a('0x21')][_0x5e6b4a('0xf')](function(){const _0x5cecb2=_0x5e6b4a;return _0x24fcf9[_0x5cecb2('0x14')][_0x5cecb2('0x23')](_0x461c83,{'force':!![]})[_0x5cecb2('0x20')](function(){const _0x3fb6b5=_0x5cecb2;logger[_0x3fb6b5('0x9')]('table\x20dropped\x20%s',_0x461c83);})[_0x5cecb2('0x1')](function(_0x267eb2){const _0x444f6d=_0x5cecb2;logger[_0x444f6d('0x9')](JSON[_0x444f6d('0x2')](_0x267eb2));});});},Migration[_0x28c11a('0x3')][_0x28c11a('0x12')]=function(_0x2f30fb,_0x16449,_0x365c3e){const _0x36dba9=_0x28c11a,_0x1b13d4=this;this[_0x36dba9('0x21')][_0x36dba9('0xf')](function(){const _0x19ccb8=_0x36dba9;return _0x1b13d4[_0x19ccb8('0x14')][_0x19ccb8('0x12')](_0x2f30fb,_0x16449,{'indexName':_0x365c3e})[_0x19ccb8('0x20')](function(){const _0x50509e=_0x19ccb8;logger['info'](_0x50509e('0x18'),_0x2f30fb,_0x16449['join'](','),_0x365c3e);})[_0x19ccb8('0x1')](function(_0x114b8d){const _0x55f525=_0x19ccb8;logger[_0x55f525('0x9')](JSON[_0x55f525('0x2')](_0x114b8d));});});},Migration[_0x28c11a('0x3')][_0x28c11a('0xd')]=function(_0x1f74d9){const _0x47eaea=_0x28c11a,_0x40a861=this;this[_0x47eaea('0x21')][_0x47eaea('0xf')](function(){const _0x5f0265=_0x47eaea;return _0x40a861[_0x5f0265('0x14')][_0x5f0265('0x15')]['query'](_0x1f74d9)[_0x5f0265('0x20')](function(){const _0x337039=_0x5f0265;logger[_0x337039('0x9')](_0x337039('0x13'),_0x1f74d9);})[_0x5f0265('0x1')](function(_0x4dd7d0){const _0x20cea8=_0x5f0265;logger[_0x20cea8('0x9')](JSON[_0x20cea8('0x2')](_0x4dd7d0));});});},Migration[_0x28c11a('0x3')][_0x28c11a('0x1c')]=function(_0x4e72f4,_0x22792f){const _0xdf8922=_0x28c11a,_0x1f5360=this;this[_0xdf8922('0x21')]['enqueue'](function(){const _0x180a30=_0xdf8922;return _0x1f5360[_0x180a30('0x14')][_0x180a30('0x1c')](_0x4e72f4,_0x22792f)[_0x180a30('0x20')](function(){const _0x4c3c34=_0x180a30;logger['info'](_0x4c3c34('0x6'),_0x22792f,_0x4e72f4);})['catch'](function(_0x41e227){const _0x544cce=_0x180a30;logger[_0x544cce('0x9')](util[_0x544cce('0x0')](_0x41e227,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x28c11a('0xe')]=function(_0x1590bf){const _0x511fbd=_0x28c11a;this[_0x511fbd('0x21')]['enqueue'](function(){return _0x1590bf();});},module['exports']={'up':function(_0x13bc0f,_0xa38bcb){return new Promise(function(_0x30addf){const _0x3d1c40=a925_0x3392,_0x18c0e2=new Migration(_0x13bc0f);_0x18c0e2['changeColumn']('users',_0x3d1c40('0x19'),{'type':_0xa38bcb['INTEGER'],'defaultValue':0x0}),_0x18c0e2[_0x3d1c40('0xd')]('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)'),_0x18c0e2[_0x3d1c40('0x5')](_0x3d1c40('0x1f'),_0x3d1c40('0x17'),{'type':_0xa38bcb[_0x3d1c40('0xc')],'defaultValue':0x0}),_0x18c0e2[_0x3d1c40('0x5')](_0x3d1c40('0x16'),_0x3d1c40('0xa'),{'type':_0xa38bcb['STRING'],'defaultValue':_0x3d1c40('0x1b')}),_0x18c0e2['addColumn'](_0x3d1c40('0x16'),_0x3d1c40('0x7'),{'type':_0xa38bcb[_0x3d1c40('0xb')],'defaultValue':'Type\x20a\x20message'}),_0x18c0e2[_0x3d1c40('0x5')](_0x3d1c40('0x8'),_0x3d1c40('0x11'),{'type':_0xa38bcb[_0x3d1c40('0xb')]}),_0x18c0e2[_0x3d1c40('0xd')]('UPDATE\x20fax_interactions\x20as\x20t1\x20JOIN\x20cm_contacts\x20AS\x20t2\x20ON\x20t1.ContactId\x20=\x20t2.id\x20SET\x20t1.fax\x20=\x20t2.fax'),_0x18c0e2[_0x3d1c40('0xe')](_0x30addf);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.47.js b/server/migrations/2.0.47.js index 703eb8e..ab0df81 100644 --- a/server/migrations/2.0.47.js +++ b/server/migrations/2.0.47.js @@ -1 +1 @@ -const a926_0x317d=['finally','interval','migration','Added\x20column\x20%s\x20to\x20%s','long','Changed\x20column\x20%s\x20in\x20table\x20%s','enqueue','then','addColumn','dropTable','query\x20%s','info','attrs','../config/logger','TEXT','sms_messages','catch','secret','table\x20dropped\x20%s','addIndex','sequence','data','util','final','query','exports','stringify','removeColumn','BOOLEAN','tail','changeColumn','STRING','prototype','Form\x20submission\x20error','dashboard_items','chat_websites','DELETE\x20FROM\x20dashboards','join','queryInterface'];(function(_0x3d9b6f,_0x317d8a){const _0x33e8bd=function(_0x993269){while(--_0x993269){_0x3d9b6f['push'](_0x3d9b6f['shift']());}};_0x33e8bd(++_0x317d8a);}(a926_0x317d,0x1ee));const a926_0x33e8=function(_0x3d9b6f,_0x317d8a){_0x3d9b6f=_0x3d9b6f-0x0;let _0x33e8bd=a926_0x317d[_0x3d9b6f];return _0x33e8bd;};const _0x51510d=a926_0x33e8;'use strict';const logger=require(_0x51510d('0x1a'))(_0x51510d('0xf')),util=require(_0x51510d('0x23')),Sequence=function(){};Sequence[_0x51510d('0x6')][_0x51510d('0x13')]=function(_0x993269){const _0x3e1360=_0x51510d;this[_0x3e1360('0x3')]=this['tail']?this[_0x3e1360('0x3')][_0x3e1360('0xd')](_0x993269):_0x993269();};const Migration=function(_0x51388d){const _0x3720ad=_0x51510d;this[_0x3720ad('0xc')]=_0x51388d,this[_0x3720ad('0x21')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x315ce1,_0x1f6fb8,_0x42224c){const _0x1cb958=_0x51510d,_0x55b33c=this;this['sequence'][_0x1cb958('0x13')](function(){const _0x5266c=_0x1cb958;return _0x55b33c[_0x5266c('0xc')][_0x5266c('0x4')](_0x315ce1,_0x1f6fb8,_0x42224c)[_0x5266c('0x14')](function(){const _0x5c0339=_0x5266c;logger[_0x5c0339('0x18')](_0x5c0339('0x12'),_0x1f6fb8,_0x315ce1);})[_0x5266c('0x1d')](function(_0x21d0b7){const _0x26dec3=_0x5266c;logger['info'](JSON[_0x26dec3('0x0')](_0x21d0b7));});});},Migration['prototype'][_0x51510d('0x15')]=function(_0xf1d69d,_0x55794e,_0x518ac4){const _0x3da747=_0x51510d,_0x38c8cd=this;this[_0x3da747('0x21')][_0x3da747('0x13')](function(){const _0xf7968e=_0x3da747;return _0x38c8cd[_0xf7968e('0xc')]['addColumn'](_0xf1d69d,_0x55794e,_0x518ac4)[_0xf7968e('0x14')](function(){const _0x17ad69=_0xf7968e;logger[_0x17ad69('0x18')](_0x17ad69('0x10'),_0x55794e,_0xf1d69d);})[_0xf7968e('0x1d')](function(_0x252a22){const _0x31dd82=_0xf7968e;logger[_0x31dd82('0x18')](JSON['stringify'](_0x252a22));});});},Migration['prototype'][_0x51510d('0x16')]=function(_0x9e8bf4){const _0x16a40f=_0x51510d,_0x35ac11=this;this[_0x16a40f('0x21')][_0x16a40f('0x13')](function(){const _0xbb7259=_0x16a40f;return _0x35ac11[_0xbb7259('0xc')][_0xbb7259('0x16')](_0x9e8bf4,{'force':!![]})['then'](function(){const _0x498519=_0xbb7259;logger[_0x498519('0x18')](_0x498519('0x1f'),_0x9e8bf4);})[_0xbb7259('0x1d')](function(_0x1268e7){const _0x135a7e=_0xbb7259;logger[_0x135a7e('0x18')](JSON['stringify'](_0x1268e7));});});},Migration['prototype'][_0x51510d('0x20')]=function(_0x117232,_0x24a78c,_0x14599c){const _0x2c37a0=_0x51510d,_0x5873ea=this;this[_0x2c37a0('0x21')]['enqueue'](function(){const _0x125f1e=_0x2c37a0;return _0x5873ea[_0x125f1e('0xc')][_0x125f1e('0x20')](_0x117232,_0x24a78c,{'indexName':_0x14599c})[_0x125f1e('0x14')](function(){const _0x42f076=_0x125f1e;logger[_0x42f076('0x18')]('addIndex\x20%s\x20%s\x20%s',_0x117232,_0x24a78c[_0x42f076('0xb')](','),_0x14599c);})[_0x125f1e('0x1d')](function(_0xa2a308){const _0xad7555=_0x125f1e;logger['info'](JSON[_0xad7555('0x0')](_0xa2a308));});});},Migration[_0x51510d('0x6')]['query']=function(_0x4896af){const _0x3ccc81=_0x51510d,_0x41abcc=this;this[_0x3ccc81('0x21')][_0x3ccc81('0x13')](function(){const _0x5eeef3=_0x3ccc81;return _0x41abcc[_0x5eeef3('0xc')]['sequelize'][_0x5eeef3('0x25')](_0x4896af)[_0x5eeef3('0x14')](function(){const _0x542853=_0x5eeef3;logger[_0x542853('0x18')](_0x542853('0x17'),_0x4896af);})[_0x5eeef3('0x1d')](function(_0x29e9d0){const _0x37111d=_0x5eeef3;logger[_0x37111d('0x18')](JSON['stringify'](_0x29e9d0));});});},Migration[_0x51510d('0x6')][_0x51510d('0x1')]=function(_0x356c1a,_0x4a2f59){const _0x5a070c=_0x51510d,_0xb59865=this;this[_0x5a070c('0x21')][_0x5a070c('0x13')](function(){const _0x5e9de7=_0x5a070c;return _0xb59865[_0x5e9de7('0xc')]['removeColumn'](_0x356c1a,_0x4a2f59)[_0x5e9de7('0x14')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x4a2f59,_0x356c1a);})[_0x5e9de7('0x1d')](function(_0x22d7ce){const _0x31f52c=_0x5e9de7;logger[_0x31f52c('0x18')](util['inspect'](_0x22d7ce,{'showHidden':![],'depth':null}));});});},Migration[_0x51510d('0x6')][_0x51510d('0x24')]=function(_0xbc23d2){const _0x1ef5a5=_0x51510d;this[_0x1ef5a5('0x21')][_0x1ef5a5('0x13')](function(){return _0xbc23d2();});},module[_0x51510d('0x26')]={'up':function(_0x462b4a,_0x45cece){return new Promise(function(_0x2ea529){const _0x432c99=a926_0x33e8,_0x224f37=new Migration(_0x462b4a);_0x224f37['query'](_0x432c99('0xa')),_0x224f37['removeColumn']('dashboards',_0x432c99('0xe')),_0x224f37[_0x432c99('0x4')](_0x432c99('0x8'),'type',{'type':_0x45cece[_0x432c99('0x5')](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}}),_0x224f37[_0x432c99('0x1')](_0x432c99('0x8'),'query'),_0x224f37[_0x432c99('0x1')](_0x432c99('0x8'),_0x432c99('0x22')),_0x224f37[_0x432c99('0x15')](_0x432c99('0x8'),'title',{'type':_0x45cece[_0x432c99('0x5')](0x14),'validate':{'len':[0x0,0x14]}}),_0x224f37[_0x432c99('0x15')](_0x432c99('0x8'),_0x432c99('0x19'),{'type':_0x45cece[_0x432c99('0x1b')](_0x432c99('0x11'))}),_0x224f37['addColumn'](_0x432c99('0x1c'),_0x432c99('0x1e'),{'type':_0x45cece[_0x432c99('0x2')],'defaultValue':![]}),_0x224f37[_0x432c99('0x15')](_0x432c99('0x9'),'formSubmitSuccessMessage',{'type':_0x45cece[_0x432c99('0x5')],'defaultValue':'Form\x20properly\x20submitted'}),_0x224f37[_0x432c99('0x15')](_0x432c99('0x9'),'formSubmitFailureMessage',{'type':_0x45cece[_0x432c99('0x5')],'defaultValue':_0x432c99('0x7')}),_0x224f37['final'](_0x2ea529);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.48.js b/server/migrations/2.0.48.js index 243e320..476eb9e 100644 --- a/server/migrations/2.0.48.js +++ b/server/migrations/2.0.48.js @@ -1 +1 @@ -const a927_0x199b=['../config/logger','final','info','migration','[ice_host_candidates]','then','finally','addColumn','exports','STRING','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;','out','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;','ENUM','catch','/etc/asterisk/res_stun_monitor.conf','/etc/asterisk/turn_xcally.conf','Removed\x20column\x20%s\x20from\x20%s','sequelize','stringify','settings','#include\x20\x22stun_xcally.conf\x22\x0a#include\x20\x22turn_xcally.conf\x22\x0a[ice_host_candidates]','queryInterface',';\x20TURN\x20server\x20list\x0a','rtcp_mux','/etc/asterisk/rtp.conf','replace','lodash','dropTable','sequence','fax_interactions','#include\x20\x22stun_xcally.conf\x22','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','appendFileSync','prototype','join','firstMsgDirection','Added\x20column\x20%s\x20to\x20%s','turnusername','turnpassword','/etc/asterisk/stun_xcally.conf','query','mail_interactions','tail','enqueue','addIndex','writeFileSync','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;','query\x20%s','addIndex\x20%s\x20%s\x20%s','util',';\x20STUN\x20server\x20list\x0a','utf8','changeColumn'];(function(_0x4e6b5b,_0x199b03){const _0x5c24a2=function(_0x47ff10){while(--_0x47ff10){_0x4e6b5b['push'](_0x4e6b5b['shift']());}};_0x5c24a2(++_0x199b03);}(a927_0x199b,0xcb));const a927_0x5c24=function(_0x4e6b5b,_0x199b03){_0x4e6b5b=_0x4e6b5b-0x0;let _0x5c24a2=a927_0x199b[_0x4e6b5b];return _0x5c24a2;};const _0x5221fe=a927_0x5c24;'use strict';const fs=require('fs'),util=require(_0x5221fe('0xd')),_=require(_0x5221fe('0x2c')),logger=require(_0x5221fe('0x11'))(_0x5221fe('0x14')),Sequence=function(){};Sequence[_0x5221fe('0x34')][_0x5221fe('0x7')]=function(_0x47ff10){const _0x32a8ae=_0x5221fe;this[_0x32a8ae('0x6')]=this[_0x32a8ae('0x6')]?this['tail'][_0x32a8ae('0x17')](_0x47ff10):_0x47ff10();};const Migration=function(_0x521540){const _0x42f4e2=_0x5221fe;this[_0x42f4e2('0x27')]=_0x521540,this[_0x42f4e2('0x2e')]=new Sequence();};Migration[_0x5221fe('0x34')][_0x5221fe('0x10')]=function(_0x5e5d78,_0x4d2978,_0x2d5578){const _0x2480a6=_0x5221fe,_0x43a74d=this;this[_0x2480a6('0x2e')][_0x2480a6('0x7')](function(){const _0x5f2e0b=_0x2480a6;return _0x43a74d[_0x5f2e0b('0x27')][_0x5f2e0b('0x10')](_0x5e5d78,_0x4d2978,_0x2d5578)['then'](function(){const _0x39c9a1=_0x5f2e0b;logger[_0x39c9a1('0x13')](_0x39c9a1('0x32'),_0x4d2978,_0x5e5d78);})[_0x5f2e0b('0x1f')](function(_0x9cfa07){const _0x4a1926=_0x5f2e0b;logger[_0x4a1926('0x13')](JSON[_0x4a1926('0x24')](_0x9cfa07));});});},Migration[_0x5221fe('0x34')][_0x5221fe('0x18')]=function(_0x488e83,_0x24f196,_0x5e7dd6){const _0x3189b3=_0x5221fe,_0x5f1274=this;this[_0x3189b3('0x2e')][_0x3189b3('0x7')](function(){const _0xbe5d99=_0x3189b3;return _0x5f1274[_0xbe5d99('0x27')][_0xbe5d99('0x18')](_0x488e83,_0x24f196,_0x5e7dd6)[_0xbe5d99('0x16')](function(){const _0x3d8a22=_0xbe5d99;logger[_0x3d8a22('0x13')](_0x3d8a22('0x0'),_0x24f196,_0x488e83);})['catch'](function(_0x5172d4){const _0x3e6c6f=_0xbe5d99;logger[_0x3e6c6f('0x13')](JSON[_0x3e6c6f('0x24')](_0x5172d4));});});},Migration[_0x5221fe('0x34')][_0x5221fe('0x2d')]=function(_0x6e2e4c){const _0x1b1b31=_0x5221fe,_0x1d7fbe=this;this[_0x1b1b31('0x2e')]['enqueue'](function(){const _0x4e797d=_0x1b1b31;return _0x1d7fbe[_0x4e797d('0x27')][_0x4e797d('0x2d')](_0x6e2e4c,{'force':!![]})[_0x4e797d('0x16')](function(){const _0x3abd8d=_0x4e797d;logger[_0x3abd8d('0x13')]('table\x20dropped\x20%s',_0x6e2e4c);})['catch'](function(_0x14faaa){const _0x53c1af=_0x4e797d;logger[_0x53c1af('0x13')](JSON[_0x53c1af('0x24')](_0x14faaa));});});},Migration[_0x5221fe('0x34')]['addIndex']=function(_0x5191c5,_0x28a6d4,_0x2e5a4a){const _0x3b3f55=_0x5221fe,_0x2f60bd=this;this[_0x3b3f55('0x2e')][_0x3b3f55('0x7')](function(){const _0x269a19=_0x3b3f55;return _0x2f60bd[_0x269a19('0x27')][_0x269a19('0x8')](_0x5191c5,_0x28a6d4,{'indexName':_0x2e5a4a})[_0x269a19('0x16')](function(){const _0x5243fc=_0x269a19;logger[_0x5243fc('0x13')](_0x5243fc('0xc'),_0x5191c5,_0x28a6d4[_0x5243fc('0x35')](','),_0x2e5a4a);})[_0x269a19('0x1f')](function(_0xa3866){const _0x1a319d=_0x269a19;logger[_0x1a319d('0x13')](JSON['stringify'](_0xa3866));});});},Migration[_0x5221fe('0x34')]['query']=function(_0x130332){const _0x206b56=_0x5221fe,_0x47fdb2=this;this['sequence'][_0x206b56('0x7')](function(){const _0x3df67d=_0x206b56;return _0x47fdb2[_0x3df67d('0x27')][_0x3df67d('0x23')][_0x3df67d('0x4')](_0x130332)['then'](function(){const _0x1399a5=_0x3df67d;logger[_0x1399a5('0x13')](_0x1399a5('0xb'),_0x130332);})[_0x3df67d('0x1f')](function(_0x53e181){const _0x185fc3=_0x3df67d;logger[_0x185fc3('0x13')](JSON['stringify'](_0x53e181));});});},Migration[_0x5221fe('0x34')]['removeColumn']=function(_0x3a8feb,_0x502672){const _0x25be47=_0x5221fe,_0x22c8fc=this;this[_0x25be47('0x2e')]['enqueue'](function(){const _0x5ea95b=_0x25be47;return _0x22c8fc[_0x5ea95b('0x27')][_0x5ea95b('0x31')](_0x3a8feb,_0x502672)[_0x5ea95b('0x16')](function(){const _0xebaa14=_0x5ea95b;logger[_0xebaa14('0x13')](_0xebaa14('0x22'),_0x502672,_0x3a8feb);})['catch'](function(_0x3710a8){const _0x3aa9f7=_0x5ea95b;logger[_0x3aa9f7('0x13')](util['inspect'](_0x3710a8,{'showHidden':![],'depth':null}));});});},Migration[_0x5221fe('0x34')][_0x5221fe('0x12')]=function(_0x151fa3){const _0x3e7eb1=_0x5221fe;this['sequence'][_0x3e7eb1('0x7')](function(){return _0x151fa3();});},module[_0x5221fe('0x19')]={'up':function(_0x27967d,_0x13792a){return new Promise(function(_0x544f2f){const _0x5c6cbe=a927_0x5c24,_0x238123=new Migration(_0x27967d);_0x238123[_0x5c6cbe('0x18')](_0x5c6cbe('0x25'),'turnaddr',{'type':_0x13792a['STRING']}),_0x238123[_0x5c6cbe('0x18')](_0x5c6cbe('0x25'),_0x5c6cbe('0x1'),{'type':_0x13792a[_0x5c6cbe('0x1a')]}),_0x238123['addColumn']('settings',_0x5c6cbe('0x2'),{'type':_0x13792a['STRING']}),_0x238123[_0x5c6cbe('0x18')]('users',_0x5c6cbe('0x29'),{'type':_0x13792a[_0x5c6cbe('0x1e')]('yes','no'),'defaultValue':'no'}),_0x238123[_0x5c6cbe('0x4')]('UPDATE\x20users\x20SET\x20rtcp_mux=\x27yes\x27\x20WHERE\x20showWebBar=2'),_0x238123[_0x5c6cbe('0x18')]('sms_interactions',_0x5c6cbe('0x36'),{'type':_0x13792a[_0x5c6cbe('0x1e')]('in',_0x5c6cbe('0x1c')),'defaultValue':'in','allowNull':![]}),_0x238123[_0x5c6cbe('0x4')](_0x5c6cbe('0x1b')),_0x238123['addColumn'](_0x5c6cbe('0x5'),_0x5c6cbe('0x36'),{'type':_0x13792a[_0x5c6cbe('0x1e')]('in',_0x5c6cbe('0x1c')),'defaultValue':'in','allowNull':![]}),_0x238123[_0x5c6cbe('0x4')](_0x5c6cbe('0x1d')),_0x238123[_0x5c6cbe('0x18')](_0x5c6cbe('0x2f'),_0x5c6cbe('0x36'),{'type':_0x13792a[_0x5c6cbe('0x1e')]('in',_0x5c6cbe('0x1c')),'defaultValue':'in','allowNull':![]}),_0x238123[_0x5c6cbe('0x4')](_0x5c6cbe('0xa'));try{fs[_0x5c6cbe('0x9')](_0x5c6cbe('0x3'),_0x5c6cbe('0xe'),{'encoding':_0x5c6cbe('0xf')}),fs[_0x5c6cbe('0x9')](_0x5c6cbe('0x21'),_0x5c6cbe('0x28'),{'encoding':'utf8'});let _0x234c70=fs['readFileSync'](_0x5c6cbe('0x2a'),{'encoding':'utf8'});_0x234c70=_[_0x5c6cbe('0x2b')](_0x234c70,_0x5c6cbe('0x15'),_0x5c6cbe('0x26')),fs[_0x5c6cbe('0x9')](_0x5c6cbe('0x2a'),_0x234c70,{'encoding':_0x5c6cbe('0xf')}),fs[_0x5c6cbe('0x33')](_0x5c6cbe('0x20'),_0x5c6cbe('0x30'),{'encoding':'utf8'});}catch(_0x56bd79){logger[_0x5c6cbe('0x13')](JSON['stringify'](_0x56bd79));}_0x238123[_0x5c6cbe('0x12')](_0x544f2f);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.49.js b/server/migrations/2.0.49.js index 432b3d0..76e30fe 100644 --- a/server/migrations/2.0.49.js +++ b/server/migrations/2.0.49.js @@ -1 +1 @@ -const a928_0x429e=['DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x205','final','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\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());','offlineMessageBody','addColumn','dropTable','migration','exports','Added\x20column\x20%s\x20to\x20%s','New\x20offline\x20message\x20from\x20websiteName','enqueue','deliveryReport','../config/logger','query','then','voice_queues','cm_hopper_final','finally','catch','sequence','dialAgiAfterHangupAgent','dialAgiAfterHangupClient','username','query\x20%s','tail','STRING','You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:','agiafterat','password','classic','stringify','senderString','util','Changed\x20column\x20%s\x20in\x20table\x20%s','sequelize','users','offlineMessageSubject','inspect','dialQueueProject2','classic+','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x204','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-dialer\x27\x20AND\x20`priority`=\x2011','smsMethod','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());','sms_accounts','DATE','prototype','removeColumn','chat_websites','phoneBarOutboundProxy','info','queryInterface','changeColumn'];(function(_0x20810e,_0x429e97){const _0x436e99=function(_0x5a3986){while(--_0x5a3986){_0x20810e['push'](_0x20810e['shift']());}};_0x436e99(++_0x429e97);}(a928_0x429e,0xb4));const a928_0x436e=function(_0x20810e,_0x429e97){_0x20810e=_0x20810e-0x0;let _0x436e99=a928_0x429e[_0x20810e];return _0x436e99;};const _0x4a8d16=a928_0x436e;'use strict';const util=require(_0x4a8d16('0xf')),logger=require(_0x4a8d16('0x31'))(_0x4a8d16('0x2b')),Sequence=function(){};Sequence[_0x4a8d16('0x1d')][_0x4a8d16('0x2f')]=function(_0x5a3986){const _0x106651=_0x4a8d16;this[_0x106651('0x7')]=this[_0x106651('0x7')]?this[_0x106651('0x7')][_0x106651('0x0')](_0x5a3986):_0x5a3986();};const Migration=function(_0x3b3eeb){const _0x3f7347=_0x4a8d16;this['queryInterface']=_0x3b3eeb,this[_0x3f7347('0x2')]=new Sequence();};Migration['prototype'][_0x4a8d16('0x23')]=function(_0x276cb0,_0x15c287,_0xe45da0){const _0x123784=_0x4a8d16,_0x4b1efb=this;this[_0x123784('0x2')]['enqueue'](function(){const _0x5976dd=_0x123784;return _0x4b1efb[_0x5976dd('0x22')]['changeColumn'](_0x276cb0,_0x15c287,_0xe45da0)['then'](function(){const _0x25e623=_0x5976dd;logger[_0x25e623('0x21')](_0x25e623('0x10'),_0x15c287,_0x276cb0);})['catch'](function(_0x5ad145){const _0x17b43b=_0x5976dd;logger[_0x17b43b('0x21')](JSON[_0x17b43b('0xd')](_0x5ad145));});});},Migration[_0x4a8d16('0x1d')]['addColumn']=function(_0x4470f2,_0x3ce921,_0x472fc1){const _0x274c91=_0x4a8d16,_0x151856=this;this[_0x274c91('0x2')][_0x274c91('0x2f')](function(){const _0x5640ab=_0x274c91;return _0x151856[_0x5640ab('0x22')][_0x5640ab('0x29')](_0x4470f2,_0x3ce921,_0x472fc1)[_0x5640ab('0x33')](function(){const _0x39c23d=_0x5640ab;logger[_0x39c23d('0x21')](_0x39c23d('0x2d'),_0x3ce921,_0x4470f2);})['catch'](function(_0x40b71b){const _0x56cfcf=_0x5640ab;logger['info'](JSON[_0x56cfcf('0xd')](_0x40b71b));});});},Migration[_0x4a8d16('0x1d')]['dropTable']=function(_0x459ce){const _0x6a41a0=_0x4a8d16,_0x2b26b2=this;this[_0x6a41a0('0x2')][_0x6a41a0('0x2f')](function(){const _0x3c0fcb=_0x6a41a0;return _0x2b26b2[_0x3c0fcb('0x22')][_0x3c0fcb('0x2a')](_0x459ce,{'force':!![]})[_0x3c0fcb('0x33')](function(){const _0x482765=_0x3c0fcb;logger['info'](_0x482765('0x26'),_0x459ce);})[_0x3c0fcb('0x1')](function(_0x4de39f){const _0x2da054=_0x3c0fcb;logger[_0x2da054('0x21')](JSON[_0x2da054('0xd')](_0x4de39f));});});},Migration[_0x4a8d16('0x1d')]['addIndex']=function(_0x1ffe0a,_0xeb258c,_0x4a5456){const _0x749262=_0x4a8d16,_0x9a32b9=this;this[_0x749262('0x2')][_0x749262('0x2f')](function(){const _0x1a91d0=_0x749262;return _0x9a32b9[_0x1a91d0('0x22')]['addIndex'](_0x1ffe0a,_0xeb258c,{'indexName':_0x4a5456})['then'](function(){const _0x54b331=_0x1a91d0;logger[_0x54b331('0x21')]('addIndex\x20%s\x20%s\x20%s',_0x1ffe0a,_0xeb258c['join'](','),_0x4a5456);})[_0x1a91d0('0x1')](function(_0x24c019){const _0xd08488=_0x1a91d0;logger[_0xd08488('0x21')](JSON[_0xd08488('0xd')](_0x24c019));});});},Migration[_0x4a8d16('0x1d')]['query']=function(_0x207c50){const _0x261903=_0x4a8d16,_0x2b2271=this;this[_0x261903('0x2')]['enqueue'](function(){const _0x47024d=_0x261903;return _0x2b2271[_0x47024d('0x22')][_0x47024d('0x11')][_0x47024d('0x32')](_0x207c50)['then'](function(){const _0x4e9e29=_0x47024d;logger['info'](_0x4e9e29('0x6'),_0x207c50);})[_0x47024d('0x1')](function(_0x58b4ec){const _0x10245b=_0x47024d;logger[_0x10245b('0x21')](JSON[_0x10245b('0xd')](_0x58b4ec));});});},Migration['prototype'][_0x4a8d16('0x1e')]=function(_0x486edb,_0x371401){const _0x296ae1=_0x4a8d16,_0x4b0e30=this;this[_0x296ae1('0x2')][_0x296ae1('0x2f')](function(){const _0x5aaf3b=_0x296ae1;return _0x4b0e30[_0x5aaf3b('0x22')][_0x5aaf3b('0x1e')](_0x486edb,_0x371401)[_0x5aaf3b('0x33')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x371401,_0x486edb);})[_0x5aaf3b('0x1')](function(_0x2ac768){const _0x56b350=_0x5aaf3b;logger['info'](util[_0x56b350('0x14')](_0x2ac768,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4a8d16('0x25')]=function(_0x388255){const _0x1df78a=_0x4a8d16;this[_0x1df78a('0x2')][_0x1df78a('0x2f')](function(){return _0x388255();});},module[_0x4a8d16('0x2c')]={'up':function(_0x527447,_0x28ca39){return new Promise(function(_0x1dea11){const _0x376992=a928_0x436e,_0x5e129b=new Migration(_0x527447);_0x5e129b[_0x376992('0x29')](_0x376992('0x1b'),_0x376992('0x19'),{'type':_0x28ca39['ENUM']('basic',_0x376992('0xc'),_0x376992('0x16'))}),_0x5e129b[_0x376992('0x29')](_0x376992('0x1b'),_0x376992('0x5'),{'type':_0x28ca39[_0x376992('0x8')]}),_0x5e129b[_0x376992('0x29')](_0x376992('0x1b'),_0x376992('0xb'),{'type':_0x28ca39[_0x376992('0x8')]}),_0x5e129b['addColumn'](_0x376992('0x1b'),_0x376992('0xe'),{'type':_0x28ca39[_0x376992('0x8')]}),_0x5e129b[_0x376992('0x29')](_0x376992('0x1b'),_0x376992('0x30'),{'type':_0x28ca39['BOOLEAN'],'defaultValue':![]}),_0x5e129b[_0x376992('0x29')](_0x376992('0x12'),'allowmessenger',{'type':_0x28ca39['BOOLEAN'],'defaultValue':!![]}),_0x5e129b[_0x376992('0x29')](_0x376992('0x12'),_0x376992('0x20'),{'type':_0x28ca39['STRING']}),_0x5e129b[_0x376992('0x29')](_0x376992('0x1f'),_0x376992('0x13'),{'type':_0x28ca39[_0x376992('0x8')],'defaultValue':_0x376992('0x2e')}),_0x5e129b[_0x376992('0x29')]('chat_websites',_0x376992('0x28'),{'type':_0x28ca39[_0x376992('0x8')],'defaultValue':_0x376992('0x9')}),_0x5e129b[_0x376992('0x29')](_0x376992('0x34'),_0x376992('0x15'),{'type':_0x28ca39[_0x376992('0x8')]}),_0x5e129b['addColumn'](_0x376992('0x34'),_0x376992('0x4'),{'type':_0x28ca39['BOOLEAN'],'defaultValue':![]}),_0x5e129b['addColumn']('voice_queues',_0x376992('0x3'),{'type':_0x28ca39['BOOLEAN'],'defaultValue':![]}),_0x5e129b[_0x376992('0x32')](_0x376992('0x18')),_0x5e129b[_0x376992('0x32')](_0x376992('0x27')),_0x5e129b['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\x2712\x27,\x20\x27Hangup\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x5e129b[_0x376992('0x32')](_0x376992('0x17')),_0x5e129b[_0x376992('0x32')](_0x376992('0x24')),_0x5e129b['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\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());'),_0x5e129b['query'](_0x376992('0x1a')),_0x5e129b[_0x376992('0x32')]('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());'),_0x5e129b['addColumn'](_0x376992('0x35'),_0x376992('0xa'),{'type':_0x28ca39[_0x376992('0x1c')]}),_0x5e129b[_0x376992('0x25')](_0x1dea11);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.50.js b/server/migrations/2.0.50.js index 0e02705..64a106a 100644 --- a/server/migrations/2.0.50.js +++ b/server/migrations/2.0.50.js @@ -1 +1 @@ -const a929_0x1049=['Changed\x20column\x20%s\x20in\x20table\x20%s','final','messageId','tail','sequence','removeColumn','query\x20%s','addColumn','sequelize','STRING','join','Removed\x20column\x20%s\x20from\x20%s','migration','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\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());','stringify','booked','enqueue','preview','addIndex','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());','catch','table\x20dropped\x20%s','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x206','prototype','dialMethod','exports','finally','voice_queues','predictive','then','progressive','ENUM','power','sms_messages','queryInterface','../config/logger','query','addIndex\x20%s\x20%s\x20%s','inspect','changeColumn'];(function(_0x5d6cb3,_0x1049f4){const _0x5c0478=function(_0x366f65){while(--_0x366f65){_0x5d6cb3['push'](_0x5d6cb3['shift']());}};_0x5c0478(++_0x1049f4);}(a929_0x1049,0x8f));const a929_0x5c04=function(_0x5d6cb3,_0x1049f4){_0x5d6cb3=_0x5d6cb3-0x0;let _0x5c0478=a929_0x1049[_0x5d6cb3];return _0x5c0478;};const _0x1024c5=a929_0x5c04;'use strict';const util=require('util'),logger=require(_0x1024c5('0x10'))(_0x1024c5('0x21')),Sequence=function(){};Sequence['prototype'][_0x1024c5('0x26')]=function(_0x366f65){const _0x316c68=_0x1024c5;this[_0x316c68('0x18')]=this[_0x316c68('0x18')]?this[_0x316c68('0x18')][_0x316c68('0x7')](_0x366f65):_0x366f65();};const Migration=function(_0x1d7fa9){const _0x448747=_0x1024c5;this[_0x448747('0xf')]=_0x1d7fa9,this['sequence']=new Sequence();};Migration[_0x1024c5('0x4')][_0x1024c5('0x14')]=function(_0x3b8b4d,_0x5884a0,_0x14e705){const _0x5a9cef=this;this['sequence']['enqueue'](function(){const _0x4f68b1=a929_0x5c04;return _0x5a9cef[_0x4f68b1('0xf')][_0x4f68b1('0x14')](_0x3b8b4d,_0x5884a0,_0x14e705)[_0x4f68b1('0xa')](function(){const _0x5f3446=_0x4f68b1;logger[_0x5f3446('0x22')](_0x5f3446('0x15'),_0x5884a0,_0x3b8b4d);})[_0x4f68b1('0x1')](function(_0x52ff74){const _0x99c2bb=_0x4f68b1;logger[_0x99c2bb('0x22')](JSON['stringify'](_0x52ff74));});});},Migration[_0x1024c5('0x4')][_0x1024c5('0x1c')]=function(_0x48ca91,_0x33a549,_0x1662aa){const _0x3ac9c9=_0x1024c5,_0x578cf0=this;this[_0x3ac9c9('0x19')][_0x3ac9c9('0x26')](function(){const _0x59ca3b=_0x3ac9c9;return _0x578cf0['queryInterface']['addColumn'](_0x48ca91,_0x33a549,_0x1662aa)[_0x59ca3b('0xa')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x33a549,_0x48ca91);})[_0x59ca3b('0x1')](function(_0x5f1639){const _0x44bf71=_0x59ca3b;logger[_0x44bf71('0x22')](JSON[_0x44bf71('0x24')](_0x5f1639));});});},Migration[_0x1024c5('0x4')]['dropTable']=function(_0x4b7726){const _0x20404c=_0x1024c5,_0x4ad87c=this;this['sequence'][_0x20404c('0x26')](function(){const _0x41c17b=_0x20404c;return _0x4ad87c['queryInterface']['dropTable'](_0x4b7726,{'force':!![]})[_0x41c17b('0xa')](function(){const _0x2d2aa8=_0x41c17b;logger[_0x2d2aa8('0x22')](_0x2d2aa8('0x2'),_0x4b7726);})['catch'](function(_0x2adcc9){const _0x1480b2=_0x41c17b;logger['info'](JSON[_0x1480b2('0x24')](_0x2adcc9));});});},Migration[_0x1024c5('0x4')][_0x1024c5('0x28')]=function(_0x503def,_0x4d6290,_0x2163a2){const _0x3d85ae=_0x1024c5,_0x1dffa=this;this[_0x3d85ae('0x19')]['enqueue'](function(){const _0x25e4a4=_0x3d85ae;return _0x1dffa[_0x25e4a4('0xf')][_0x25e4a4('0x28')](_0x503def,_0x4d6290,{'indexName':_0x2163a2})[_0x25e4a4('0xa')](function(){const _0x249f7b=_0x25e4a4;logger[_0x249f7b('0x22')](_0x249f7b('0x12'),_0x503def,_0x4d6290[_0x249f7b('0x1f')](','),_0x2163a2);})[_0x25e4a4('0x1')](function(_0x3a7e51){const _0x45f406=_0x25e4a4;logger[_0x45f406('0x22')](JSON[_0x45f406('0x24')](_0x3a7e51));});});},Migration['prototype']['query']=function(_0x5dc88d){const _0x1791ff=_0x1024c5,_0x1a96e7=this;this[_0x1791ff('0x19')][_0x1791ff('0x26')](function(){const _0x5a6d71=_0x1791ff;return _0x1a96e7['queryInterface'][_0x5a6d71('0x1d')][_0x5a6d71('0x11')](_0x5dc88d)[_0x5a6d71('0xa')](function(){const _0x4fbc9=_0x5a6d71;logger[_0x4fbc9('0x22')](_0x4fbc9('0x1b'),_0x5dc88d);})['catch'](function(_0x59e26a){const _0x1a4953=_0x5a6d71;logger[_0x1a4953('0x22')](JSON['stringify'](_0x59e26a));});});},Migration[_0x1024c5('0x4')]['removeColumn']=function(_0x42b544,_0x2be615){const _0x5113bc=_0x1024c5,_0x2ee414=this;this[_0x5113bc('0x19')][_0x5113bc('0x26')](function(){const _0x7d4810=_0x5113bc;return _0x2ee414[_0x7d4810('0xf')][_0x7d4810('0x1a')](_0x42b544,_0x2be615)[_0x7d4810('0xa')](function(){const _0x1d7a40=_0x7d4810;logger[_0x1d7a40('0x22')](_0x1d7a40('0x20'),_0x2be615,_0x42b544);})['catch'](function(_0x38f620){const _0x145100=_0x7d4810;logger[_0x145100('0x22')](util[_0x145100('0x13')](_0x38f620,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x1024c5('0x16')]=function(_0x1a1fc7){const _0x4c8e8f=_0x1024c5;this['sequence'][_0x4c8e8f('0x26')](function(){return _0x1a1fc7();});},module[_0x1024c5('0x6')]={'up':function(_0x583266,_0x430b04){return new Promise(function(_0x21e6b7){const _0x1858c7=a929_0x5c04,_0x258441=new Migration(_0x583266);_0x258441[_0x1858c7('0x14')]('sms_messages',_0x1858c7('0x17'),{'type':_0x430b04[_0x1858c7('0x1e')](0xbe)}),_0x258441['addIndex'](_0x1858c7('0xe'),[_0x1858c7('0x17')],'messageId'),_0x258441['changeColumn'](_0x1858c7('0x8'),_0x1858c7('0x5'),{'type':_0x430b04[_0x1858c7('0xc')](_0x1858c7('0x27'),'progressive',_0x1858c7('0xd'),_0x1858c7('0x9'),_0x1858c7('0x25')),'defaultValue':_0x1858c7('0xb')}),_0x258441[_0x1858c7('0x11')](_0x1858c7('0x3')),_0x258441['query'](_0x1858c7('0x23')),_0x258441[_0x1858c7('0x11')](_0x1858c7('0x0')),_0x258441[_0x1858c7('0x16')](_0x21e6b7);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.51.js b/server/migrations/2.0.51.js index 09845b9..f8527d7 100644 --- a/server/migrations/2.0.51.js +++ b/server/migrations/2.0.51.js @@ -1 +1 @@ -const a930_0x291f=['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());','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());','sequelize','DATE','Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','catch','cm_hopper_final','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());','info','uniqueid','lastMsgAt','sequence','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());','skebby','chat_interactions','inspect','Chat','report_call','cm_hopper_history','addIndex','ChatInternalMessageId','prototype','Sms','ChatGroupId','addIndex\x20%s\x20%s\x20%s','fax_interactions','dropTable','phone','voice_recordings','connectel','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','chat_internal_messages','report_member','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());','Removed\x20column\x20%s\x20from\x20%s','ENUM','toLowerCase','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','final','changeColumn','UPDATE\x20','query','query\x20%s','_messages\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20','lastMsgDirection','removeColumn','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','STRING','type','sms_interactions','stringify','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','enqueue','_interactions\x20t1,\x20(SELECT\x20','INTEGER','table\x20dropped\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-dialer\x27,\x20\x275\x27,\x20\x27answer\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());','addColumn','membername_interface','interface','tail','cm_contacts','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-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());','Mail','queryInterface','Openchannel','length','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());','twilio','finally','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;','out','mail_interactions','openchannel_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\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());','then'];(function(_0xc0aa5e,_0x291fad){const _0x369894=function(_0x4ab3e7){while(--_0x4ab3e7){_0xc0aa5e['push'](_0xc0aa5e['shift']());}};_0x369894(++_0x291fad);}(a930_0x291f,0x18d));const a930_0x3698=function(_0xc0aa5e,_0x291fad){_0xc0aa5e=_0xc0aa5e-0x0;let _0x369894=a930_0x291f[_0xc0aa5e];return _0x369894;};const _0x29fe6a=a930_0x3698;'use strict';const util=require('util'),logger=require(_0x29fe6a('0x3'))('migration'),Sequence=function(){};Sequence[_0x29fe6a('0x14')][_0x29fe6a('0x33')]=function(_0x4ab3e7){const _0x5e9091=_0x29fe6a;this[_0x5e9091('0x3c')]=this[_0x5e9091('0x3c')]?this[_0x5e9091('0x3c')][_0x5e9091('0x46')](_0x4ab3e7):_0x4ab3e7();};const Migration=function(_0x3638cf){const _0x5f5aa0=_0x29fe6a;this[_0x5f5aa0('0x41')]=_0x3638cf,this[_0x5f5aa0('0xa')]=new Sequence();};Migration[_0x29fe6a('0x14')][_0x29fe6a('0x26')]=function(_0x4a6e2c,_0x1d22fb,_0x343283){const _0x32f71f=_0x29fe6a,_0x15b670=this;this[_0x32f71f('0xa')]['enqueue'](function(){const _0x542d6b=_0x32f71f;return _0x15b670[_0x542d6b('0x41')][_0x542d6b('0x26')](_0x4a6e2c,_0x1d22fb,_0x343283)[_0x542d6b('0x4c')](function(){const _0x5afcd1=_0x542d6b;logger[_0x5afcd1('0x7')](_0x5afcd1('0x2'),_0x1d22fb,_0x4a6e2c);})[_0x542d6b('0x4')](function(_0x57fcc5){const _0xe5eb10=_0x542d6b;logger[_0xe5eb10('0x7')](JSON['stringify'](_0x57fcc5));});});},Migration[_0x29fe6a('0x14')][_0x29fe6a('0x39')]=function(_0x15dca7,_0x3ec19e,_0x248c42){const _0x555cf4=_0x29fe6a,_0x2211ca=this;this[_0x555cf4('0xa')]['enqueue'](function(){const _0x4b3505=_0x555cf4;return _0x2211ca[_0x4b3505('0x41')][_0x4b3505('0x39')](_0x15dca7,_0x3ec19e,_0x248c42)[_0x4b3505('0x4c')](function(){const _0x49ceae=_0x4b3505;logger[_0x49ceae('0x7')](_0x49ceae('0x3e'),_0x3ec19e,_0x15dca7);})['catch'](function(_0x4f2f64){const _0x1080bd=_0x4b3505;logger[_0x1080bd('0x7')](JSON['stringify'](_0x4f2f64));});});},Migration[_0x29fe6a('0x14')][_0x29fe6a('0x19')]=function(_0xea1749){const _0x50baa2=_0x29fe6a,_0x37555b=this;this[_0x50baa2('0xa')][_0x50baa2('0x33')](function(){const _0x2c5029=_0x50baa2;return _0x37555b[_0x2c5029('0x41')][_0x2c5029('0x19')](_0xea1749,{'force':!![]})[_0x2c5029('0x4c')](function(){const _0x435f6d=_0x2c5029;logger[_0x435f6d('0x7')](_0x435f6d('0x36'),_0xea1749);})[_0x2c5029('0x4')](function(_0xb1a8d0){const _0x2ff967=_0x2c5029;logger['info'](JSON[_0x2ff967('0x31')](_0xb1a8d0));});});},Migration[_0x29fe6a('0x14')][_0x29fe6a('0x12')]=function(_0x370f2c,_0xc49e04,_0x482ece){const _0x10800f=_0x29fe6a,_0x325a62=this;this[_0x10800f('0xa')][_0x10800f('0x33')](function(){const _0x4f17c7=_0x10800f;return _0x325a62['queryInterface'][_0x4f17c7('0x12')](_0x370f2c,_0xc49e04,{'indexName':_0x482ece})['then'](function(){const _0x58522f=_0x4f17c7;logger[_0x58522f('0x7')](_0x58522f('0x17'),_0x370f2c,_0xc49e04['join'](','),_0x482ece);})[_0x4f17c7('0x4')](function(_0x40432b){const _0x34db79=_0x4f17c7;logger[_0x34db79('0x7')](JSON['stringify'](_0x40432b));});});},Migration[_0x29fe6a('0x14')][_0x29fe6a('0x28')]=function(_0xb662b3){const _0x1a2815=_0x29fe6a,_0x2db499=this;this[_0x1a2815('0xa')][_0x1a2815('0x33')](function(){const _0x448892=_0x1a2815;return _0x2db499[_0x448892('0x41')][_0x448892('0x0')][_0x448892('0x28')](_0xb662b3)[_0x448892('0x4c')](function(){const _0x58dd1d=_0x448892;logger[_0x58dd1d('0x7')](_0x58dd1d('0x29'),_0xb662b3);})[_0x448892('0x4')](function(_0xe79ff6){const _0x211f80=_0x448892;logger['info'](JSON[_0x211f80('0x31')](_0xe79ff6));});});},Migration[_0x29fe6a('0x14')][_0x29fe6a('0x2c')]=function(_0x2caf4c,_0x1a443d){const _0x1d774f=_0x29fe6a,_0x5f3e07=this;this['sequence'][_0x1d774f('0x33')](function(){const _0x160e64=_0x1d774f;return _0x5f3e07[_0x160e64('0x41')][_0x160e64('0x2c')](_0x2caf4c,_0x1a443d)[_0x160e64('0x4c')](function(){const _0x3221a4=_0x160e64;logger[_0x3221a4('0x7')](_0x3221a4('0x21'),_0x1a443d,_0x2caf4c);})[_0x160e64('0x4')](function(_0x13b479){const _0x3d3fda=_0x160e64;logger[_0x3d3fda('0x7')](util[_0x3d3fda('0xe')](_0x13b479,{'showHidden':![],'depth':null}));});});},Migration[_0x29fe6a('0x14')][_0x29fe6a('0x25')]=function(_0x54aa46){const _0x16bf63=_0x29fe6a;this[_0x16bf63('0xa')][_0x16bf63('0x33')](function(){return _0x54aa46();});},module['exports']={'up':function(_0x5bbe05,_0x26a849){return new Promise(function(_0x13fbdc){const _0x301295=a930_0x3698,_0x412ab8=new Migration(_0x5bbe05);_0x412ab8[_0x301295('0x39')](_0x301295('0x1e'),_0x301295('0x13'),{'type':_0x26a849[_0x301295('0x35')]}),_0x412ab8[_0x301295('0x39')](_0x301295('0x1e'),_0x301295('0x16'),{'type':_0x26a849['INTEGER']}),_0x412ab8[_0x301295('0x28')](_0x301295('0x2d')),_0x412ab8[_0x301295('0x39')](_0x301295('0xd'),'lastMsgDirection',{'type':_0x26a849[_0x301295('0x22')]('in',_0x301295('0x48')),'defaultValue':'in','allowNull':![]}),_0x412ab8[_0x301295('0x39')](_0x301295('0xd'),_0x301295('0x9'),{'type':_0x26a849[_0x301295('0x1')]}),_0x412ab8[_0x301295('0x39')](_0x301295('0x49'),_0x301295('0x2b'),{'type':_0x26a849[_0x301295('0x22')]('in',_0x301295('0x48')),'defaultValue':'in','allowNull':![]}),_0x412ab8[_0x301295('0x39')](_0x301295('0x49'),_0x301295('0x9'),{'type':_0x26a849[_0x301295('0x1')]}),_0x412ab8[_0x301295('0x39')](_0x301295('0x30'),'lastMsgDirection',{'type':_0x26a849[_0x301295('0x22')]('in','out'),'defaultValue':'in','allowNull':![]}),_0x412ab8['addColumn']('sms_interactions','lastMsgAt',{'type':_0x26a849['DATE']}),_0x412ab8[_0x301295('0x39')](_0x301295('0x4a'),_0x301295('0x2b'),{'type':_0x26a849[_0x301295('0x22')]('in',_0x301295('0x48')),'defaultValue':'in','allowNull':![]}),_0x412ab8[_0x301295('0x39')]('openchannel_interactions','lastMsgAt',{'type':_0x26a849[_0x301295('0x1')]}),_0x412ab8['addColumn'](_0x301295('0x18'),_0x301295('0x2b'),{'type':_0x26a849[_0x301295('0x22')]('in',_0x301295('0x48')),'defaultValue':'in','allowNull':![]}),_0x412ab8[_0x301295('0x39')](_0x301295('0x18'),_0x301295('0x9'),{'type':_0x26a849[_0x301295('0x1')]});const _0x470079=[_0x301295('0xf'),_0x301295('0x40'),_0x301295('0x15'),_0x301295('0x42')];for(let _0x445e6b=0x0;_0x445e6b<_0x470079[_0x301295('0x43')];_0x445e6b++){_0x412ab8[_0x301295('0x28')](_0x301295('0x27')+_0x470079[_0x445e6b][_0x301295('0x23')]()+_0x301295('0x34')+_0x470079[_0x445e6b]+_0x301295('0x24')+_0x470079[_0x445e6b][_0x301295('0x23')]()+_0x301295('0x2a')+_0x470079[_0x445e6b]+_0x301295('0x1d')+_0x470079[_0x445e6b]+'InteractionId)\x20t2\x20SET\x20t1.lastMsgDirection\x20=\x20t2.direction,\x20t1.lastMsgAt\x20=\x20t2.createdAt\x20WHERE\x20t1.id\x20=\x20t2.'+_0x470079[_0x445e6b]+'InteractionId;');}_0x412ab8[_0x301295('0x28')](_0x301295('0x47')),_0x412ab8[_0x301295('0x26')]('sms_accounts',_0x301295('0x2f'),{'type':_0x26a849[_0x301295('0x22')](_0x301295('0x45'),_0x301295('0xc'),_0x301295('0x1c'))}),_0x412ab8['addColumn'](_0x301295('0x10'),'note',{'type':_0x26a849[_0x301295('0x2e')]}),_0x412ab8[_0x301295('0x12')](_0x301295('0x3d'),[_0x301295('0x1a')],'phone'),_0x412ab8[_0x301295('0x12')](_0x301295('0x5'),[_0x301295('0x8')],_0x301295('0x8')),_0x412ab8['addIndex'](_0x301295('0x11'),['uniqueid'],_0x301295('0x8')),_0x412ab8[_0x301295('0x12')](_0x301295('0x1b'),[_0x301295('0x8')],_0x301295('0x8')),_0x412ab8[_0x301295('0x12')](_0x301295('0x1f'),['membername',_0x301295('0x3b')],_0x301295('0x3a')),_0x412ab8[_0x301295('0x28')](_0x301295('0x32')),_0x412ab8[_0x301295('0x28')]('DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20exten\x20=\x20\x27xcally-motion-dialer\x27;'),_0x412ab8[_0x301295('0x28')]('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());'),_0x412ab8[_0x301295('0x28')](_0x301295('0x20')),_0x412ab8[_0x301295('0x28')](_0x301295('0x38')),_0x412ab8[_0x301295('0x28')](_0x301295('0x3f')),_0x412ab8[_0x301295('0x28')](_0x301295('0x37')),_0x412ab8[_0x301295('0x28')]('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());'),_0x412ab8[_0x301295('0x28')](_0x301295('0x44')),_0x412ab8[_0x301295('0x28')](_0x301295('0x6')),_0x412ab8[_0x301295('0x28')](_0x301295('0xb')),_0x412ab8['query'](_0x301295('0x4e')),_0x412ab8[_0x301295('0x28')](_0x301295('0x4b')),_0x412ab8[_0x301295('0x28')](_0x301295('0x4d')),_0x412ab8[_0x301295('0x28')]('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());'),_0x412ab8[_0x301295('0x28')]('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());'),_0x412ab8[_0x301295('0x25')](_0x13fbdc);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.52.js b/server/migrations/2.0.52.js index 63caf3e..52b7556 100644 --- a/server/migrations/2.0.52.js +++ b/server/migrations/2.0.52.js @@ -1 +1 @@ -const a931_0x4b0b=['link','removeColumn','passwordExpiresDays','OpenchannelAccountId','catch','query','MailAccountId','sequelize','join','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','enqueue','../config/logger','dashboard_items','BOOLEAN','final','addIndex','clicksend','table\x20dropped\x20%s','finally','Changed\x20column\x20%s\x20in\x20table\x20%s','#ffffff','sms_accounts','info','report_dial','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','UPDATE\x20settings\x20SET\x20securePassword=false\x20WHERE\x20id=1','dropTable','ENUM','Added\x20column\x20%s\x20to\x20%s','duration','addColumn','queryInterface','background','settings','stringify','INTEGER','passwordResetAt','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','query\x20%s','sequence','exports','prototype','connectel','FaxAccountId','changeColumn','SmsAccountId','util','holdtime','UPDATE\x20users\x20SET\x20passwordResetAt=NOW()','tools_canned_answers','then','STRING','tail','twilio','foreground','ChatWebsiteId'];(function(_0x34f30e,_0x4b0bd1){const _0x34c89b=function(_0x47f759){while(--_0x47f759){_0x34f30e['push'](_0x34f30e['shift']());}};_0x34c89b(++_0x4b0bd1);}(a931_0x4b0b,0x143));const a931_0x34c8=function(_0x34f30e,_0x4b0bd1){_0x34f30e=_0x34f30e-0x0;let _0x34c89b=a931_0x4b0b[_0x34f30e];return _0x34c89b;};const _0x10d854=a931_0x34c8;'use strict';const util=require(_0x10d854('0x3')),logger=require(_0x10d854('0x18'))('migration'),Sequence=function(){};Sequence['prototype'][_0x10d854('0x17')]=function(_0x47f759){const _0x131780=_0x10d854;this[_0x131780('0x9')]=this['tail']?this['tail'][_0x131780('0x1f')](_0x47f759):_0x47f759();};const Migration=function(_0x5ad1f1){const _0x4b0a6f=_0x10d854;this[_0x4b0a6f('0x2c')]=_0x5ad1f1,this['sequence']=new Sequence();};Migration[_0x10d854('0x36')][_0x10d854('0x1')]=function(_0x49ca3c,_0xc60a74,_0x191cd4){const _0x1377ea=_0x10d854,_0xf426eb=this;this['sequence'][_0x1377ea('0x17')](function(){const _0x50fc00=_0x1377ea;return _0xf426eb['queryInterface'][_0x50fc00('0x1')](_0x49ca3c,_0xc60a74,_0x191cd4)[_0x50fc00('0x7')](function(){const _0x2f2d2f=_0x50fc00;logger['info'](_0x2f2d2f('0x20'),_0xc60a74,_0x49ca3c);})[_0x50fc00('0x11')](function(_0x1282fa){const _0x3e88cb=_0x50fc00;logger['info'](JSON[_0x3e88cb('0x2f')](_0x1282fa));});});},Migration[_0x10d854('0x36')][_0x10d854('0x2b')]=function(_0x531ca7,_0x5f14b6,_0x4594ce){const _0x1a0308=_0x10d854,_0x3ef1a9=this;this[_0x1a0308('0x34')][_0x1a0308('0x17')](function(){const _0x1219b5=_0x1a0308;return _0x3ef1a9[_0x1219b5('0x2c')][_0x1219b5('0x2b')](_0x531ca7,_0x5f14b6,_0x4594ce)[_0x1219b5('0x7')](function(){const _0x29c077=_0x1219b5;logger['info'](_0x29c077('0x29'),_0x5f14b6,_0x531ca7);})['catch'](function(_0x2a229f){const _0x41cf2d=_0x1219b5;logger[_0x41cf2d('0x23')](JSON['stringify'](_0x2a229f));});});},Migration['prototype'][_0x10d854('0x27')]=function(_0x138fc9){const _0x27dfe1=_0x10d854,_0x3112e5=this;this['sequence'][_0x27dfe1('0x17')](function(){const _0x3c9168=_0x27dfe1;return _0x3112e5['queryInterface']['dropTable'](_0x138fc9,{'force':!![]})[_0x3c9168('0x7')](function(){const _0xfdde14=_0x3c9168;logger[_0xfdde14('0x23')](_0xfdde14('0x1e'),_0x138fc9);})[_0x3c9168('0x11')](function(_0x56b509){logger['info'](JSON['stringify'](_0x56b509));});});},Migration[_0x10d854('0x36')][_0x10d854('0x1c')]=function(_0x29b40b,_0xc3bb22,_0xf739f4){const _0x1284e5=_0x10d854,_0xf98c3b=this;this[_0x1284e5('0x34')][_0x1284e5('0x17')](function(){const _0x3a58ff=_0x1284e5;return _0xf98c3b[_0x3a58ff('0x2c')][_0x3a58ff('0x1c')](_0x29b40b,_0xc3bb22,{'indexName':_0xf739f4})[_0x3a58ff('0x7')](function(){const _0x2556ed=_0x3a58ff;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x29b40b,_0xc3bb22[_0x2556ed('0x15')](','),_0xf739f4);})['catch'](function(_0x305eb8){const _0x3ca1d6=_0x3a58ff;logger[_0x3ca1d6('0x23')](JSON[_0x3ca1d6('0x2f')](_0x305eb8));});});},Migration[_0x10d854('0x36')][_0x10d854('0x12')]=function(_0xa0fd10){const _0x5f037d=_0x10d854,_0x3c75ce=this;this[_0x5f037d('0x34')][_0x5f037d('0x17')](function(){const _0x3c11f2=_0x5f037d;return _0x3c75ce[_0x3c11f2('0x2c')][_0x3c11f2('0x14')][_0x3c11f2('0x12')](_0xa0fd10)['then'](function(){const _0x1836cc=_0x3c11f2;logger[_0x1836cc('0x23')](_0x1836cc('0x33'),_0xa0fd10);})['catch'](function(_0x155725){const _0x4dcd3e=_0x3c11f2;logger[_0x4dcd3e('0x23')](JSON[_0x4dcd3e('0x2f')](_0x155725));});});},Migration[_0x10d854('0x36')][_0x10d854('0xe')]=function(_0x270962,_0x2ebba0){const _0x27ee69=_0x10d854,_0xc8af2a=this;this[_0x27ee69('0x34')][_0x27ee69('0x17')](function(){const _0x2a2fc2=_0x27ee69;return _0xc8af2a['queryInterface']['removeColumn'](_0x270962,_0x2ebba0)['then'](function(){const _0x4e921a=a931_0x34c8;logger[_0x4e921a('0x23')]('Removed\x20column\x20%s\x20from\x20%s',_0x2ebba0,_0x270962);})[_0x2a2fc2('0x11')](function(_0x4651ce){const _0x230ef8=_0x2a2fc2;logger[_0x230ef8('0x23')](util['inspect'](_0x4651ce,{'showHidden':![],'depth':null}));});});},Migration[_0x10d854('0x36')][_0x10d854('0x1b')]=function(_0x5cb700){const _0xe744eb=_0x10d854;this[_0xe744eb('0x34')][_0xe744eb('0x17')](function(){return _0x5cb700();});},module[_0x10d854('0x35')]={'up':function(_0x913b8b,_0x579f3d){return new Promise(function(_0x373f2f){const _0x2e697f=a931_0x34c8,_0x19d09a=new Migration(_0x913b8b);_0x19d09a['addColumn'](_0x2e697f('0x2e'),'callRecordingEncryption',{'type':_0x579f3d[_0x2e697f('0x1a')],'defaultValue':![]}),_0x19d09a[_0x2e697f('0x2b')](_0x2e697f('0x2e'),_0x2e697f('0xf'),{'type':_0x579f3d['INTEGER'](0xb),'defaultValue':0x5a}),_0x19d09a[_0x2e697f('0x12')](_0x2e697f('0x26')),_0x19d09a[_0x2e697f('0x2b')]('tools_canned_answers',_0x2e697f('0x13'),{'type':_0x579f3d[_0x2e697f('0x30')]}),_0x19d09a[_0x2e697f('0x2b')](_0x2e697f('0x6'),_0x2e697f('0x0'),{'type':_0x579f3d[_0x2e697f('0x30')]}),_0x19d09a[_0x2e697f('0x2b')](_0x2e697f('0x6'),_0x2e697f('0x2'),{'type':_0x579f3d['INTEGER']}),_0x19d09a[_0x2e697f('0x2b')]('tools_canned_answers',_0x2e697f('0x10'),{'type':_0x579f3d[_0x2e697f('0x30')]}),_0x19d09a['addColumn'](_0x2e697f('0x6'),_0x2e697f('0xc'),{'type':_0x579f3d['INTEGER']}),_0x19d09a['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'),_0x19d09a[_0x2e697f('0x12')](_0x2e697f('0x16')),_0x19d09a[_0x2e697f('0x12')](_0x2e697f('0x25')),_0x19d09a[_0x2e697f('0x12')]('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'),_0x19d09a['query'](_0x2e697f('0x32')),_0x19d09a[_0x2e697f('0x2b')]('users',_0x2e697f('0x31'),{'type':_0x579f3d['DATE'],'defaultValue':null}),_0x19d09a[_0x2e697f('0x12')](_0x2e697f('0x5')),_0x19d09a[_0x2e697f('0x2b')](_0x2e697f('0x24'),_0x2e697f('0x2a'),{'type':_0x579f3d[_0x2e697f('0x30')]}),_0x19d09a[_0x2e697f('0x2b')](_0x2e697f('0x24'),_0x2e697f('0x4'),{'type':_0x579f3d['INTEGER']}),_0x19d09a[_0x2e697f('0x2b')](_0x2e697f('0x24'),'billableseconds',{'type':_0x579f3d[_0x2e697f('0x30')]}),_0x19d09a[_0x2e697f('0x1')](_0x2e697f('0x22'),'type',{'type':_0x579f3d[_0x2e697f('0x28')](_0x2e697f('0xa'),'skebby',_0x2e697f('0x37'),_0x2e697f('0x1d'))}),_0x19d09a[_0x2e697f('0x2b')](_0x2e697f('0x19'),_0x2e697f('0x2d'),{'type':_0x579f3d['STRING'],'allowNull':![],'defaultValue':_0x2e697f('0x21'),'validate':{'notEmpty':!![]}}),_0x19d09a[_0x2e697f('0x2b')](_0x2e697f('0x19'),_0x2e697f('0xb'),{'type':_0x579f3d[_0x2e697f('0x8')],'allowNull':![],'defaultValue':'#2196f3','validate':{'notEmpty':!![]}}),_0x19d09a[_0x2e697f('0x2b')](_0x2e697f('0x19'),_0x2e697f('0xd'),{'type':_0x579f3d[_0x2e697f('0x8')]}),_0x19d09a['final'](_0x373f2f);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.53.js b/server/migrations/2.0.53.js index f506617..cf0a10a 100644 --- a/server/migrations/2.0.53.js +++ b/server/migrations/2.0.53.js @@ -1 +1 @@ -const a932_0x2c98=['join','final','analytics_extracted_reports','catch','ENUM','description','addIndex','query\x20%s','skebby','csv','sequence','connectel','output','stringify','Removed\x20column\x20%s\x20from\x20%s','util','twilio','prototype','UPDATE\x20analytics_extracted_reports\x20SET\x20output=\x27xlsx\x27\x20WHERE\x20output=\x27xls\x27','tail','plivo','info','query','then','changeColumn','xls','type','Added\x20column\x20%s\x20to\x20%s','xlsx','queryInterface','pdf','migration','exports','removeColumn','enqueue','insecure','addColumn','TEXT','dropTable','finally','UPDATE\x20users\x20SET\x20insecure=NULL\x20WHERE\x20insecure=\x27port,invite\x27','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x59c6ef,_0x2c98da){const _0x59fe96=function(_0x430354){while(--_0x430354){_0x59c6ef['push'](_0x59c6ef['shift']());}};_0x59fe96(++_0x2c98da);}(a932_0x2c98,0xd1));const a932_0x59fe=function(_0x59c6ef,_0x2c98da){_0x59c6ef=_0x59c6ef-0x0;let _0x59fe96=a932_0x2c98[_0x59c6ef];return _0x59fe96;};const _0x487aa5=a932_0x59fe;'use strict';const util=require(_0x487aa5('0x10')),logger=require('../config/logger')(_0x487aa5('0x20')),Sequence=function(){};Sequence[_0x487aa5('0x12')][_0x487aa5('0x23')]=function(_0x430354){const _0x14df3e=_0x487aa5;this[_0x14df3e('0x14')]=this[_0x14df3e('0x14')]?this[_0x14df3e('0x14')][_0x14df3e('0x28')](_0x430354):_0x430354();};const Migration=function(_0x1f4dcc){const _0x40c2df=_0x487aa5;this[_0x40c2df('0x1e')]=_0x1f4dcc,this['sequence']=new Sequence();};Migration['prototype'][_0x487aa5('0x19')]=function(_0x260440,_0xbaac52,_0x32bc1c){const _0x944916=_0x487aa5,_0x18e62b=this;this[_0x944916('0xb')][_0x944916('0x23')](function(){const _0x421f44=_0x944916;return _0x18e62b[_0x421f44('0x1e')]['changeColumn'](_0x260440,_0xbaac52,_0x32bc1c)['then'](function(){const _0x24b5c0=_0x421f44;logger[_0x24b5c0('0x16')](_0x24b5c0('0x0'),_0xbaac52,_0x260440);})['catch'](function(_0x5e8409){const _0x4d398a=_0x421f44;logger[_0x4d398a('0x16')](JSON['stringify'](_0x5e8409));});});},Migration[_0x487aa5('0x12')][_0x487aa5('0x25')]=function(_0x295dbf,_0x48af31,_0x38b9ef){const _0x11a221=_0x487aa5,_0x3d81c3=this;this[_0x11a221('0xb')][_0x11a221('0x23')](function(){const _0x1384e4=_0x11a221;return _0x3d81c3[_0x1384e4('0x1e')][_0x1384e4('0x25')](_0x295dbf,_0x48af31,_0x38b9ef)['then'](function(){const _0x2cc5b7=_0x1384e4;logger[_0x2cc5b7('0x16')](_0x2cc5b7('0x1c'),_0x48af31,_0x295dbf);})[_0x1384e4('0x4')](function(_0x33ae05){const _0x5b1fed=_0x1384e4;logger['info'](JSON[_0x5b1fed('0xe')](_0x33ae05));});});},Migration[_0x487aa5('0x12')][_0x487aa5('0x27')]=function(_0x15cd5c){const _0x59d9ca=_0x487aa5,_0x400788=this;this[_0x59d9ca('0xb')]['enqueue'](function(){const _0x5a7a1b=_0x59d9ca;return _0x400788[_0x5a7a1b('0x1e')]['dropTable'](_0x15cd5c,{'force':!![]})[_0x5a7a1b('0x18')](function(){const _0x519b11=_0x5a7a1b;logger[_0x519b11('0x16')]('table\x20dropped\x20%s',_0x15cd5c);})[_0x5a7a1b('0x4')](function(_0x30ccd7){const _0xb98587=_0x5a7a1b;logger[_0xb98587('0x16')](JSON[_0xb98587('0xe')](_0x30ccd7));});});},Migration['prototype'][_0x487aa5('0x7')]=function(_0x191f31,_0x115788,_0x3bfaf3){const _0x5218f2=_0x487aa5,_0x135171=this;this[_0x5218f2('0xb')][_0x5218f2('0x23')](function(){const _0x34f5e4=_0x5218f2;return _0x135171[_0x34f5e4('0x1e')][_0x34f5e4('0x7')](_0x191f31,_0x115788,{'indexName':_0x3bfaf3})[_0x34f5e4('0x18')](function(){const _0xedfc40=_0x34f5e4;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x191f31,_0x115788[_0xedfc40('0x1')](','),_0x3bfaf3);})[_0x34f5e4('0x4')](function(_0x5b3e3e){const _0x2876be=_0x34f5e4;logger[_0x2876be('0x16')](JSON[_0x2876be('0xe')](_0x5b3e3e));});});},Migration[_0x487aa5('0x12')][_0x487aa5('0x17')]=function(_0xf17f9b){const _0x29adb8=this;this['sequence']['enqueue'](function(){const _0x3ca543=a932_0x59fe;return _0x29adb8[_0x3ca543('0x1e')]['sequelize'][_0x3ca543('0x17')](_0xf17f9b)[_0x3ca543('0x18')](function(){const _0x8f1d00=_0x3ca543;logger[_0x8f1d00('0x16')](_0x8f1d00('0x8'),_0xf17f9b);})[_0x3ca543('0x4')](function(_0x36a4e9){const _0x43d804=_0x3ca543;logger['info'](JSON[_0x43d804('0xe')](_0x36a4e9));});});},Migration[_0x487aa5('0x12')]['removeColumn']=function(_0x5051a9,_0x51b5e3){const _0x4f728b=_0x487aa5,_0x5a744a=this;this[_0x4f728b('0xb')][_0x4f728b('0x23')](function(){const _0x5bb3b8=_0x4f728b;return _0x5a744a[_0x5bb3b8('0x1e')][_0x5bb3b8('0x22')](_0x5051a9,_0x51b5e3)['then'](function(){const _0x568320=_0x5bb3b8;logger['info'](_0x568320('0xf'),_0x51b5e3,_0x5051a9);})[_0x5bb3b8('0x4')](function(_0x1c331a){const _0x179955=_0x5bb3b8;logger[_0x179955('0x16')](util['inspect'](_0x1c331a,{'showHidden':![],'depth':null}));});});},Migration[_0x487aa5('0x12')][_0x487aa5('0x2')]=function(_0x3025eb){const _0x3eb443=_0x487aa5;this[_0x3eb443('0xb')][_0x3eb443('0x23')](function(){return _0x3025eb();});},module[_0x487aa5('0x21')]={'up':function(_0xa8f177,_0x5a53ad){return new Promise(function(_0x1450b8){const _0x1f902d=a932_0x59fe,_0xf2a3fa=new Migration(_0xa8f177);_0xf2a3fa['changeColumn']('cm_contacts',_0x1f902d('0x6'),{'type':_0x5a53ad[_0x1f902d('0x26')]}),_0xf2a3fa[_0x1f902d('0x19')]('sms_accounts',_0x1f902d('0x1b'),{'type':_0x5a53ad['ENUM'](_0x1f902d('0x11'),_0x1f902d('0x9'),_0x1f902d('0xc'),'clicksend',_0x1f902d('0x15'))}),_0xf2a3fa[_0x1f902d('0x19')]('analytics_extracted_reports',_0x1f902d('0xd'),{'type':_0x5a53ad[_0x1f902d('0x5')](_0x1f902d('0xa'),_0x1f902d('0x1f'),_0x1f902d('0x1a'),'xlsx'),'allowNull':![],'defaultValue':_0x1f902d('0xa')}),_0xf2a3fa[_0x1f902d('0x17')](_0x1f902d('0x13')),_0xf2a3fa[_0x1f902d('0x19')](_0x1f902d('0x3'),_0x1f902d('0xd'),{'type':_0x5a53ad['ENUM']('csv','pdf',_0x1f902d('0x1d')),'allowNull':![],'defaultValue':_0x1f902d('0xa')}),_0xf2a3fa[_0x1f902d('0x17')](_0x1f902d('0x29')),_0xf2a3fa[_0x1f902d('0x19')]('users',_0x1f902d('0x24'),{'type':_0x5a53ad['STRING'],'allowNull':!![]}),_0xf2a3fa['final'](_0x1450b8);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.54.js b/server/migrations/2.0.54.js index 8496186..a8d98af 100644 --- a/server/migrations/2.0.54.js +++ b/server/migrations/2.0.54.js @@ -1 +1 @@ -const a933_0x1078=['timezone','UPDATE\x20users\x20SET\x20transport=\x27udp\x27\x20WHERE\x20avpf\x20IS\x20NULL\x20AND\x20transport\x20IS\x20NULL','chat_websites','textColor','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','output','then','queryInterface','Added\x20column\x20%s\x20to\x20%s','Arial,Helvetica,sans-serif','INTEGER','markAsUnread','fontFamily','addIndex','prototype','changeColumn','final','catch','signature','info','BOOLEAN','tail','util','#ffffff','STRING','inspect','sequence','pdf','finally','UPDATE\x20users\x20SET\x20nat=\x27force_rport,comedia\x27\x20WHERE\x20nat\x20IS\x20NULL','UPDATE\x20users\x20SET\x20transport=\x27wss\x27\x20WHERE\x20avpf\x20IS\x20NOT\x20NULL','csv','dropTable','xls','query','stringify','sequelize','template','UPDATE\x20tools_schedules\x20SET\x20output=\x27xlsx\x27\x20WHERE\x20output=\x27xls\x27','mail_accounts','xlsx','enqueue','tools_schedules','fontSize','addIndex\x20%s\x20%s\x20%s','addColumn','query\x20%s'];(function(_0x1f4ce4,_0x107806){const _0x44719e=function(_0x43fa41){while(--_0x43fa41){_0x1f4ce4['push'](_0x1f4ce4['shift']());}};_0x44719e(++_0x107806);}(a933_0x1078,0x112));const a933_0x4471=function(_0x1f4ce4,_0x107806){_0x1f4ce4=_0x1f4ce4-0x0;let _0x44719e=a933_0x1078[_0x1f4ce4];return _0x44719e;};const _0x4b9540=a933_0x4471;'use strict';const util=require(_0x4b9540('0x25')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x4b9540('0x1d')]['enqueue']=function(_0x43fa41){const _0x5de837=_0x4b9540;this['tail']=this['tail']?this[_0x5de837('0x24')][_0x5de837('0x2b')](_0x43fa41):_0x43fa41();};const Migration=function(_0x3bc360){const _0x14fca7=_0x4b9540;this[_0x14fca7('0x16')]=_0x3bc360,this[_0x14fca7('0x29')]=new Sequence();};Migration[_0x4b9540('0x1d')][_0x4b9540('0x1e')]=function(_0x1df434,_0x428df6,_0x7869b7){const _0x3a6974=_0x4b9540,_0x50b2db=this;this[_0x3a6974('0x29')][_0x3a6974('0x8')](function(){const _0x22fba6=_0x3a6974;return _0x50b2db[_0x22fba6('0x16')]['changeColumn'](_0x1df434,_0x428df6,_0x7869b7)[_0x22fba6('0x15')](function(){const _0x9c0f03=_0x22fba6;logger[_0x9c0f03('0x22')](_0x9c0f03('0x13'),_0x428df6,_0x1df434);})[_0x22fba6('0x20')](function(_0x4becad){const _0xe72307=_0x22fba6;logger[_0xe72307('0x22')](JSON[_0xe72307('0x2')](_0x4becad));});});},Migration[_0x4b9540('0x1d')][_0x4b9540('0xc')]=function(_0x282eca,_0x23153b,_0x13f726){const _0x370fad=_0x4b9540,_0xe967de=this;this[_0x370fad('0x29')][_0x370fad('0x8')](function(){const _0x1f7536=_0x370fad;return _0xe967de['queryInterface'][_0x1f7536('0xc')](_0x282eca,_0x23153b,_0x13f726)[_0x1f7536('0x15')](function(){const _0x4b89bd=_0x1f7536;logger['info'](_0x4b89bd('0x17'),_0x23153b,_0x282eca);})['catch'](function(_0x40233e){const _0x505bde=_0x1f7536;logger['info'](JSON[_0x505bde('0x2')](_0x40233e));});});},Migration[_0x4b9540('0x1d')][_0x4b9540('0x2f')]=function(_0x40bb84){const _0x3a7fd7=_0x4b9540,_0x50f020=this;this[_0x3a7fd7('0x29')][_0x3a7fd7('0x8')](function(){const _0x1be50b=_0x3a7fd7;return _0x50f020['queryInterface'][_0x1be50b('0x2f')](_0x40bb84,{'force':!![]})[_0x1be50b('0x15')](function(){const _0x19a1a1=_0x1be50b;logger[_0x19a1a1('0x22')]('table\x20dropped\x20%s',_0x40bb84);})['catch'](function(_0x4a2d10){const _0x4e2682=_0x1be50b;logger[_0x4e2682('0x22')](JSON[_0x4e2682('0x2')](_0x4a2d10));});});},Migration[_0x4b9540('0x1d')][_0x4b9540('0x1c')]=function(_0x10a726,_0x30e6b4,_0x54b68c){const _0x35eb6b=_0x4b9540,_0x183b0c=this;this[_0x35eb6b('0x29')][_0x35eb6b('0x8')](function(){return _0x183b0c['queryInterface']['addIndex'](_0x10a726,_0x30e6b4,{'indexName':_0x54b68c})['then'](function(){const _0x35838a=a933_0x4471;logger[_0x35838a('0x22')](_0x35838a('0xb'),_0x10a726,_0x30e6b4['join'](','),_0x54b68c);})['catch'](function(_0x25211d){const _0x2b738=a933_0x4471;logger[_0x2b738('0x22')](JSON[_0x2b738('0x2')](_0x25211d));});});},Migration['prototype'][_0x4b9540('0x1')]=function(_0xbafa0a){const _0x55adce=_0x4b9540,_0x39025=this;this[_0x55adce('0x29')][_0x55adce('0x8')](function(){const _0x5e0bbc=_0x55adce;return _0x39025['queryInterface'][_0x5e0bbc('0x3')]['query'](_0xbafa0a)[_0x5e0bbc('0x15')](function(){const _0x455443=_0x5e0bbc;logger[_0x455443('0x22')](_0x455443('0xd'),_0xbafa0a);})[_0x5e0bbc('0x20')](function(_0xf3c18c){const _0x35bb26=_0x5e0bbc;logger[_0x35bb26('0x22')](JSON['stringify'](_0xf3c18c));});});},Migration[_0x4b9540('0x1d')]['removeColumn']=function(_0x47dff2,_0x3e9aa3){const _0x32bb44=_0x4b9540,_0x916e5b=this;this[_0x32bb44('0x29')][_0x32bb44('0x8')](function(){const _0x5145fa=_0x32bb44;return _0x916e5b[_0x5145fa('0x16')]['removeColumn'](_0x47dff2,_0x3e9aa3)['then'](function(){const _0x1fa4d9=_0x5145fa;logger[_0x1fa4d9('0x22')]('Removed\x20column\x20%s\x20from\x20%s',_0x3e9aa3,_0x47dff2);})['catch'](function(_0x3fb8ba){const _0x40fb51=_0x5145fa;logger[_0x40fb51('0x22')](util[_0x40fb51('0x28')](_0x3fb8ba,{'showHidden':![],'depth':null}));});});},Migration[_0x4b9540('0x1d')][_0x4b9540('0x12')]=function(_0x344620,_0x53926e,_0x1d724f){const _0x3e9e4a=_0x4b9540,_0x553055=this;this['sequence'][_0x3e9e4a('0x8')](function(){const _0x36609e=_0x3e9e4a;return _0x553055[_0x36609e('0x16')]['renameColumn'](_0x344620,_0x53926e,_0x1d724f)[_0x36609e('0x15')](function(){const _0x7fa1aa=_0x36609e;logger[_0x7fa1aa('0x22')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x53926e,_0x1d724f,_0x344620);})['catch'](function(_0x21e9e9){const _0x4b82bd=_0x36609e;logger[_0x4b82bd('0x22')](util[_0x4b82bd('0x28')](_0x21e9e9,{'showHidden':![],'depth':null}));});});},Migration[_0x4b9540('0x1d')][_0x4b9540('0x1f')]=function(_0x380e89){const _0x132e51=_0x4b9540;this['sequence'][_0x132e51('0x8')](function(){return _0x380e89();});},module['exports']={'up':function(_0x44ec0c,_0x1351b3){return new Promise(function(_0x408838){const _0x3ad67d=a933_0x4471,_0x4efb09=new Migration(_0x44ec0c);_0x4efb09[_0x3ad67d('0xc')](_0x3ad67d('0x10'),_0x3ad67d('0x11'),{'type':_0x1351b3[_0x3ad67d('0x27')],'allowNull':![],'defaultValue':_0x3ad67d('0x26'),'validate':{'notEmpty':!![]}}),_0x4efb09[_0x3ad67d('0xc')](_0x3ad67d('0x10'),'fontSize',{'type':_0x1351b3[_0x3ad67d('0x19')],'defaultValue':0xf}),_0x4efb09[_0x3ad67d('0xc')](_0x3ad67d('0x10'),_0x3ad67d('0xe'),{'type':_0x1351b3[_0x3ad67d('0x27')]}),_0x4efb09[_0x3ad67d('0x1')](_0x3ad67d('0x2c')),_0x4efb09[_0x3ad67d('0x1')](_0x3ad67d('0xf')),_0x4efb09['query'](_0x3ad67d('0x2d')),_0x4efb09['changeColumn'](_0x3ad67d('0x9'),'output',{'type':_0x1351b3['ENUM'](_0x3ad67d('0x2e'),'pdf',_0x3ad67d('0x0'),_0x3ad67d('0x7')),'allowNull':![],'defaultValue':_0x3ad67d('0x2e')}),_0x4efb09[_0x3ad67d('0x1')](_0x3ad67d('0x5')),_0x4efb09['changeColumn'](_0x3ad67d('0x9'),_0x3ad67d('0x14'),{'type':_0x1351b3['ENUM'](_0x3ad67d('0x2e'),_0x3ad67d('0x2a'),_0x3ad67d('0x7')),'allowNull':![],'defaultValue':_0x3ad67d('0x2e')}),_0x4efb09[_0x3ad67d('0xc')](_0x3ad67d('0x6'),_0x3ad67d('0x1a'),{'type':_0x1351b3[_0x3ad67d('0x23')],'defaultValue':![]}),_0x4efb09['addColumn'](_0x3ad67d('0x6'),_0x3ad67d('0x1b'),{'type':_0x1351b3[_0x3ad67d('0x27')],'allowNull':![],'defaultValue':_0x3ad67d('0x18')}),_0x4efb09[_0x3ad67d('0xc')](_0x3ad67d('0x6'),_0x3ad67d('0xa'),{'type':_0x1351b3['INTEGER'](0x2)['UNSIGNED'],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}}),_0x4efb09['renameColumn'](_0x3ad67d('0x6'),_0x3ad67d('0x21'),_0x3ad67d('0x4')),_0x4efb09[_0x3ad67d('0x1f')](_0x408838);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.55.js b/server/migrations/2.0.55.js index 4f1dfde..61a326e 100644 --- a/server/migrations/2.0.55.js +++ b/server/migrations/2.0.55.js @@ -1 +1 @@ -const a934_0xa446=['Removed\x20column\x20%s\x20from\x20%s','queryInterface','tail','stringify','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','info','sms_accounts','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;','migration','changeColumn','final','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','table\x20dropped\x20%s','query','Added\x20column\x20%s\x20to\x20%s','renameColumn','then','authId','removeColumn','enqueue','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query\x20%s','prototype','finally','addIndex','sequence','inspect','catch','STRING'];(function(_0x30ed61,_0xa44653){const _0x2715f1=function(_0x344f73){while(--_0x344f73){_0x30ed61['push'](_0x30ed61['shift']());}};_0x2715f1(++_0xa44653);}(a934_0xa446,0xb5));const a934_0x2715=function(_0x30ed61,_0xa44653){_0x30ed61=_0x30ed61-0x0;let _0x2715f1=a934_0xa446[_0x30ed61];return _0x2715f1;};const _0x4c65f1=a934_0x2715;'use strict';const util=require('util'),logger=require('../config/logger')(_0x4c65f1('0xe')),Sequence=function(){};Sequence['prototype'][_0x4c65f1('0x1a')]=function(_0x344f73){const _0x339a1b=_0x4c65f1;this['tail']=this[_0x339a1b('0x7')]?this[_0x339a1b('0x7')][_0x339a1b('0x1e')](_0x344f73):_0x344f73();};const Migration=function(_0x2de492){const _0x819e94=_0x4c65f1;this['queryInterface']=_0x2de492,this[_0x819e94('0x1')]=new Sequence();};Migration[_0x4c65f1('0x1d')][_0x4c65f1('0xf')]=function(_0x4252db,_0x125f77,_0x15ea9a){const _0x17f379=_0x4c65f1,_0x4a2062=this;this[_0x17f379('0x1')][_0x17f379('0x1a')](function(){const _0x47560c=_0x17f379;return _0x4a2062[_0x47560c('0x6')]['changeColumn'](_0x4252db,_0x125f77,_0x15ea9a)['then'](function(){const _0x4d82c8=_0x47560c;logger[_0x4d82c8('0xb')](_0x4d82c8('0x9'),_0x125f77,_0x4252db);})[_0x47560c('0x3')](function(_0x59a50d){const _0x584737=_0x47560c;logger[_0x584737('0xb')](JSON[_0x584737('0x8')](_0x59a50d));});});},Migration[_0x4c65f1('0x1d')][_0x4c65f1('0xa')]=function(_0x5c6c30,_0x48db70,_0x393c42){const _0x32ab0c=_0x4c65f1,_0x2e9705=this;this[_0x32ab0c('0x1')]['enqueue'](function(){const _0xe622e6=_0x32ab0c;return _0x2e9705[_0xe622e6('0x6')][_0xe622e6('0xa')](_0x5c6c30,_0x48db70,_0x393c42)[_0xe622e6('0x17')](function(){const _0xfc09b0=_0xe622e6;logger['info'](_0xfc09b0('0x15'),_0x48db70,_0x5c6c30);})[_0xe622e6('0x3')](function(_0x2ebbdf){const _0x4964a5=_0xe622e6;logger[_0x4964a5('0xb')](JSON[_0x4964a5('0x8')](_0x2ebbdf));});});},Migration[_0x4c65f1('0x1d')][_0x4c65f1('0x12')]=function(_0x3f7029){const _0x562244=_0x4c65f1,_0xbdf6fd=this;this[_0x562244('0x1')]['enqueue'](function(){const _0xf7d1b=_0x562244;return _0xbdf6fd[_0xf7d1b('0x6')]['dropTable'](_0x3f7029,{'force':!![]})[_0xf7d1b('0x17')](function(){const _0x388f53=_0xf7d1b;logger['info'](_0x388f53('0x13'),_0x3f7029);})[_0xf7d1b('0x3')](function(_0x362e17){const _0xbcd99f=_0xf7d1b;logger['info'](JSON[_0xbcd99f('0x8')](_0x362e17));});});},Migration[_0x4c65f1('0x1d')][_0x4c65f1('0x0')]=function(_0x558607,_0x52584c,_0x461efe){const _0x195d01=_0x4c65f1,_0x1d1286=this;this[_0x195d01('0x1')][_0x195d01('0x1a')](function(){const _0x3a5cd7=_0x195d01;return _0x1d1286[_0x3a5cd7('0x6')][_0x3a5cd7('0x0')](_0x558607,_0x52584c,{'indexName':_0x461efe})[_0x3a5cd7('0x17')](function(){const _0x265a5a=_0x3a5cd7;logger[_0x265a5a('0xb')]('addIndex\x20%s\x20%s\x20%s',_0x558607,_0x52584c['join'](','),_0x461efe);})['catch'](function(_0x17070c){const _0x448cc9=_0x3a5cd7;logger[_0x448cc9('0xb')](JSON['stringify'](_0x17070c));});});},Migration[_0x4c65f1('0x1d')][_0x4c65f1('0x14')]=function(_0x5ed6ea){const _0x1ce99d=_0x4c65f1,_0x10a88e=this;this['sequence'][_0x1ce99d('0x1a')](function(){const _0x54cd02=_0x1ce99d;return _0x10a88e['queryInterface']['sequelize'][_0x54cd02('0x14')](_0x5ed6ea)['then'](function(){const _0x502f77=_0x54cd02;logger[_0x502f77('0xb')](_0x502f77('0x1c'),_0x5ed6ea);})[_0x54cd02('0x3')](function(_0x566759){const _0x312680=_0x54cd02;logger[_0x312680('0xb')](JSON['stringify'](_0x566759));});});},Migration[_0x4c65f1('0x1d')][_0x4c65f1('0x19')]=function(_0x183782,_0x20fbb7){const _0x54952d=_0x4c65f1,_0x2182bb=this;this['sequence'][_0x54952d('0x1a')](function(){const _0x438c2a=_0x54952d;return _0x2182bb[_0x438c2a('0x6')][_0x438c2a('0x19')](_0x183782,_0x20fbb7)['then'](function(){const _0x57f9a8=_0x438c2a;logger[_0x57f9a8('0xb')](_0x57f9a8('0x5'),_0x20fbb7,_0x183782);})[_0x438c2a('0x3')](function(_0x352507){const _0x2ba3cc=_0x438c2a;logger[_0x2ba3cc('0xb')](util[_0x2ba3cc('0x2')](_0x352507,{'showHidden':![],'depth':null}));});});},Migration[_0x4c65f1('0x1d')]['renameColumn']=function(_0x5d2caf,_0x133132,_0xd0b0f6){const _0x268148=_0x4c65f1,_0x4455b8=this;this[_0x268148('0x1')][_0x268148('0x1a')](function(){const _0x43eb5d=_0x268148;return _0x4455b8[_0x43eb5d('0x6')][_0x43eb5d('0x16')](_0x5d2caf,_0x133132,_0xd0b0f6)[_0x43eb5d('0x17')](function(){const _0x1981fb=_0x43eb5d;logger[_0x1981fb('0xb')](_0x1981fb('0x1b'),_0x133132,_0xd0b0f6,_0x5d2caf);})[_0x43eb5d('0x3')](function(_0x4ee485){const _0x40b9b7=_0x43eb5d;logger[_0x40b9b7('0xb')](util['inspect'](_0x4ee485,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4c65f1('0x10')]=function(_0x56003d){const _0x32545f=_0x4c65f1;this[_0x32545f('0x1')][_0x32545f('0x1a')](function(){return _0x56003d();});},module['exports']={'up':function(_0x510070,_0x5c33f4){return new Promise(function(_0x4baf6d){const _0x3059b8=a934_0x2715,_0x1ce07e=new Migration(_0x510070);_0x1ce07e[_0x3059b8('0xa')](_0x3059b8('0xc'),_0x3059b8('0x18'),{'type':_0x5c33f4[_0x3059b8('0x4')]}),_0x1ce07e[_0x3059b8('0x14')](_0x3059b8('0xd')),_0x1ce07e[_0x3059b8('0x14')](_0x3059b8('0x11')),_0x1ce07e[_0x3059b8('0x10')](_0x4baf6d);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.56.js b/server/migrations/2.0.56.js index 13ec061..2bf45f6 100644 --- a/server/migrations/2.0.56.js +++ b/server/migrations/2.0.56.js @@ -1 +1 @@ -const a935_0x2de3=['queryInterface','mail_accounts','roundrobin','leastrecent','Changed\x20column\x20%s\x20in\x20table\x20%s','UPDATE\x20fax_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27','openchannel_accounts','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','prototype','changeColumn','analytics_extracted_reports','info','TEXT','stringify','sequelize','strategy','query\x20%s','notificationShake','tail','chat_websites','sms_accounts','UPDATE\x20chat_websites\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27','then','removeColumn','addIndex','notificationTemplate','../config/logger','notificationSound','UPDATE\x20openchannel_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27','STRING','wrandom','exports','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','final','Added\x20column\x20%s\x20to\x20%s','basename','random','voice_queues','addIndex\x20%s\x20%s\x20%s','linear','enqueue','ringall','BOOLEAN','finally','UPDATE\x20sms_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27','inspect','sequence','query','fax_accounts','ENUM','migration','rrordered','Removed\x20column\x20%s\x20from\x20%s','renameColumn','dropTable','fewestcalls','catch','table\x20dropped\x20%s','join','addColumn'];(function(_0x1f3741,_0x2de311){const _0x25cd1b=function(_0x26454d){while(--_0x26454d){_0x1f3741['push'](_0x1f3741['shift']());}};_0x25cd1b(++_0x2de311);}(a935_0x2de3,0x1b6));const a935_0x25cd=function(_0x1f3741,_0x2de311){_0x1f3741=_0x1f3741-0x0;let _0x25cd1b=a935_0x2de3[_0x1f3741];return _0x25cd1b;};const _0x59cc25=a935_0x25cd;'use strict';const util=require('util'),logger=require(_0x59cc25('0x8'))(_0x59cc25('0x20')),Sequence=function(){};Sequence[_0x59cc25('0x32')]['enqueue']=function(_0x26454d){const _0x43e29c=_0x59cc25;this[_0x43e29c('0x0')]=this[_0x43e29c('0x0')]?this[_0x43e29c('0x0')][_0x43e29c('0x19')](_0x26454d):_0x26454d();};const Migration=function(_0x46d213){const _0x55190f=_0x59cc25;this['queryInterface']=_0x46d213,this[_0x55190f('0x1c')]=new Sequence();};Migration[_0x59cc25('0x32')][_0x59cc25('0x33')]=function(_0x69121a,_0x1a8df0,_0x36281c){const _0x27031d=_0x59cc25,_0xfb2bf6=this;this[_0x27031d('0x1c')][_0x27031d('0x16')](function(){const _0x1206b7=_0x27031d;return _0xfb2bf6[_0x1206b7('0x2a')][_0x1206b7('0x33')](_0x69121a,_0x1a8df0,_0x36281c)[_0x1206b7('0x4')](function(){const _0x41b19a=_0x1206b7;logger['info'](_0x41b19a('0x2e'),_0x1a8df0,_0x69121a);})[_0x1206b7('0x26')](function(_0x3a802d){const _0x46dce2=_0x1206b7;logger[_0x46dce2('0x35')](JSON[_0x46dce2('0x37')](_0x3a802d));});});},Migration[_0x59cc25('0x32')][_0x59cc25('0x29')]=function(_0x4b28b3,_0x5cadd1,_0x9ddd6b){const _0x22cfd2=_0x59cc25,_0x3233ee=this;this[_0x22cfd2('0x1c')]['enqueue'](function(){const _0x1bb8f9=_0x22cfd2;return _0x3233ee[_0x1bb8f9('0x2a')][_0x1bb8f9('0x29')](_0x4b28b3,_0x5cadd1,_0x9ddd6b)[_0x1bb8f9('0x4')](function(){const _0x530f3e=_0x1bb8f9;logger[_0x530f3e('0x35')](_0x530f3e('0x10'),_0x5cadd1,_0x4b28b3);})[_0x1bb8f9('0x26')](function(_0x5151b2){const _0x5a8e7b=_0x1bb8f9;logger[_0x5a8e7b('0x35')](JSON[_0x5a8e7b('0x37')](_0x5151b2));});});},Migration[_0x59cc25('0x32')][_0x59cc25('0x24')]=function(_0x184c75){const _0x33803f=_0x59cc25,_0x5d37e5=this;this[_0x33803f('0x1c')]['enqueue'](function(){const _0x3bd6be=_0x33803f;return _0x5d37e5[_0x3bd6be('0x2a')]['dropTable'](_0x184c75,{'force':!![]})[_0x3bd6be('0x4')](function(){const _0x313bcf=_0x3bd6be;logger['info'](_0x313bcf('0x27'),_0x184c75);})['catch'](function(_0x4399f8){const _0x43bbff=_0x3bd6be;logger[_0x43bbff('0x35')](JSON[_0x43bbff('0x37')](_0x4399f8));});});},Migration[_0x59cc25('0x32')]['addIndex']=function(_0x19af50,_0x42de57,_0x4dfa37){const _0x51a514=_0x59cc25,_0x104f83=this;this[_0x51a514('0x1c')][_0x51a514('0x16')](function(){const _0x3c9acf=_0x51a514;return _0x104f83[_0x3c9acf('0x2a')][_0x3c9acf('0x6')](_0x19af50,_0x42de57,{'indexName':_0x4dfa37})[_0x3c9acf('0x4')](function(){const _0x207494=_0x3c9acf;logger[_0x207494('0x35')](_0x207494('0x14'),_0x19af50,_0x42de57[_0x207494('0x28')](','),_0x4dfa37);})[_0x3c9acf('0x26')](function(_0x9fd801){const _0x232b14=_0x3c9acf;logger['info'](JSON[_0x232b14('0x37')](_0x9fd801));});});},Migration[_0x59cc25('0x32')]['query']=function(_0x4b9d37){const _0x56183e=_0x59cc25,_0xf6459=this;this[_0x56183e('0x1c')][_0x56183e('0x16')](function(){const _0x568d1a=_0x56183e;return _0xf6459['queryInterface'][_0x568d1a('0x38')][_0x568d1a('0x1d')](_0x4b9d37)[_0x568d1a('0x4')](function(){const _0x5d37f0=_0x568d1a;logger['info'](_0x5d37f0('0x3a'),_0x4b9d37);})[_0x568d1a('0x26')](function(_0x249c88){const _0x1a4879=_0x568d1a;logger[_0x1a4879('0x35')](JSON[_0x1a4879('0x37')](_0x249c88));});});},Migration[_0x59cc25('0x32')][_0x59cc25('0x5')]=function(_0x19ec81,_0x2b45ae){const _0x3232fd=_0x59cc25,_0x12bc86=this;this[_0x3232fd('0x1c')][_0x3232fd('0x16')](function(){const _0x25e1ed=_0x3232fd;return _0x12bc86[_0x25e1ed('0x2a')][_0x25e1ed('0x5')](_0x19ec81,_0x2b45ae)['then'](function(){const _0x263a53=_0x25e1ed;logger[_0x263a53('0x35')](_0x263a53('0x22'),_0x2b45ae,_0x19ec81);})[_0x25e1ed('0x26')](function(_0x4ca65e){const _0x13e783=_0x25e1ed;logger[_0x13e783('0x35')](util[_0x13e783('0x1b')](_0x4ca65e,{'showHidden':![],'depth':null}));});});},Migration[_0x59cc25('0x32')][_0x59cc25('0x23')]=function(_0x51ef4e,_0x220fc4,_0x242e22){const _0xce907d=_0x59cc25,_0x22f2c9=this;this['sequence'][_0xce907d('0x16')](function(){const _0x208aca=_0xce907d;return _0x22f2c9[_0x208aca('0x2a')][_0x208aca('0x23')](_0x51ef4e,_0x220fc4,_0x242e22)[_0x208aca('0x4')](function(){const _0x141894=_0x208aca;logger['info'](_0x141894('0x31'),_0x220fc4,_0x242e22,_0x51ef4e);})['catch'](function(_0x2e4ec5){const _0x2a3faf=_0x208aca;logger[_0x2a3faf('0x35')](util[_0x2a3faf('0x1b')](_0x2e4ec5,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x59cc25('0xf')]=function(_0x374031){const _0x4d2eea=_0x59cc25;this[_0x4d2eea('0x1c')][_0x4d2eea('0x16')](function(){return _0x374031();});},module[_0x59cc25('0xd')]={'up':function(_0x3c9792,_0x208275){return new Promise(function(_0x5e1d28){const _0x279f99=a935_0x25cd,_0x107076=new Migration(_0x3c9792);_0x107076[_0x279f99('0x33')](_0x279f99('0x13'),_0x279f99('0x39'),{'type':_0x208275[_0x279f99('0x1f')](_0x279f99('0x2c'),_0x279f99('0x17'),_0x279f99('0x2d'),_0x279f99('0x25'),_0x279f99('0x12'),'rrmemory',_0x279f99('0x15'),_0x279f99('0xc'),_0x279f99('0x21')),'allowNull':![],'defaultValue':_0x279f99('0x17')}),_0x107076['addColumn'](_0x279f99('0x34'),_0x279f99('0x11'),{'type':_0x208275[_0x279f99('0xb')],'allowNull':![]}),_0x107076[_0x279f99('0x29')](_0x279f99('0x2b'),_0x279f99('0x7'),{'type':_0x208275[_0x279f99('0x36')]}),_0x107076['addColumn'](_0x279f99('0x2b'),_0x279f99('0x9'),{'type':_0x208275[_0x279f99('0x18')],'defaultValue':!![]}),_0x107076['addColumn'](_0x279f99('0x2b'),_0x279f99('0x3b'),{'type':_0x208275['BOOLEAN'],'defaultValue':![]}),_0x107076[_0x279f99('0x29')]('chat_websites',_0x279f99('0x7'),{'type':_0x208275[_0x279f99('0x36')]}),_0x107076[_0x279f99('0x29')](_0x279f99('0x1'),_0x279f99('0x9'),{'type':_0x208275['BOOLEAN'],'defaultValue':!![]}),_0x107076[_0x279f99('0x29')](_0x279f99('0x1'),_0x279f99('0x3b'),{'type':_0x208275[_0x279f99('0x18')],'defaultValue':![]}),_0x107076[_0x279f99('0x29')]('fax_accounts',_0x279f99('0x7'),{'type':_0x208275[_0x279f99('0x36')]}),_0x107076[_0x279f99('0x29')](_0x279f99('0x1e'),_0x279f99('0x9'),{'type':_0x208275[_0x279f99('0x18')],'defaultValue':!![]}),_0x107076[_0x279f99('0x29')](_0x279f99('0x1e'),_0x279f99('0x3b'),{'type':_0x208275['BOOLEAN'],'defaultValue':![]}),_0x107076[_0x279f99('0x29')]('sms_accounts',_0x279f99('0x7'),{'type':_0x208275[_0x279f99('0x36')]}),_0x107076[_0x279f99('0x29')]('sms_accounts',_0x279f99('0x9'),{'type':_0x208275[_0x279f99('0x18')],'defaultValue':!![]}),_0x107076[_0x279f99('0x29')](_0x279f99('0x2'),_0x279f99('0x3b'),{'type':_0x208275[_0x279f99('0x18')],'defaultValue':![]}),_0x107076[_0x279f99('0x29')]('openchannel_accounts',_0x279f99('0x7'),{'type':_0x208275['TEXT']}),_0x107076[_0x279f99('0x29')]('openchannel_accounts',_0x279f99('0x9'),{'type':_0x208275[_0x279f99('0x18')],'defaultValue':!![]}),_0x107076[_0x279f99('0x29')](_0x279f99('0x30'),_0x279f99('0x3b'),{'type':_0x208275['BOOLEAN'],'defaultValue':![]}),_0x107076[_0x279f99('0x1d')](_0x279f99('0x3')),_0x107076[_0x279f99('0x1d')](_0x279f99('0xe')),_0x107076[_0x279f99('0x1d')](_0x279f99('0x1a')),_0x107076[_0x279f99('0x1d')](_0x279f99('0x2f')),_0x107076['query'](_0x279f99('0xa')),_0x107076[_0x279f99('0xf')](_0x5e1d28);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.57.js b/server/migrations/2.0.57.js index 20498b8..efe54ee 100644 --- a/server/migrations/2.0.57.js +++ b/server/migrations/2.0.57.js @@ -1 +1 @@ -const a936_0x29b5=['BOOLEAN','sequence','then','removeColumn','hideWhenOffline','inspect','renameColumn','queryInterface','join','enqueue','TEXT','Added\x20column\x20%s\x20to\x20%s','../config/logger','prototype','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex\x20%s\x20%s\x20%s','periodic_announce','migration','util','query\x20%s','table\x20dropped\x20%s','exports','finally','catch','query','addColumn','chat_websites','info','changeColumn','stringify','addIndex','final','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x385bc9,_0x29b51c){const _0x290ef0=function(_0x252787){while(--_0x252787){_0x385bc9['push'](_0x385bc9['shift']());}};_0x290ef0(++_0x29b51c);}(a936_0x29b5,0x1b4));const a936_0x290e=function(_0x385bc9,_0x29b51c){_0x385bc9=_0x385bc9-0x0;let _0x290ef0=a936_0x29b5[_0x385bc9];return _0x290ef0;};const _0x4966b4=a936_0x290e;'use strict';const util=require(_0x4966b4('0xf')),logger=require(_0x4966b4('0x8'))(_0x4966b4('0xe')),Sequence=function(){};Sequence[_0x4966b4('0x9')][_0x4966b4('0x5')]=function(_0x252787){const _0x2eb234=_0x4966b4;this['tail']=this[_0x2eb234('0xa')]?this[_0x2eb234('0xa')][_0x2eb234('0x13')](_0x252787):_0x252787();};const Migration=function(_0x1dc938){const _0x4d9e3d=_0x4966b4;this[_0x4d9e3d('0x3')]=_0x1dc938,this[_0x4d9e3d('0x21')]=new Sequence();};Migration[_0x4966b4('0x9')][_0x4966b4('0x19')]=function(_0x1f64b2,_0x3804fe,_0x56becb){const _0x588fe1=_0x4966b4,_0x7f94c6=this;this['sequence'][_0x588fe1('0x5')](function(){const _0xb68878=_0x588fe1;return _0x7f94c6[_0xb68878('0x3')][_0xb68878('0x19')](_0x1f64b2,_0x3804fe,_0x56becb)['then'](function(){const _0x503dcc=_0xb68878;logger[_0x503dcc('0x18')](_0x503dcc('0xb'),_0x3804fe,_0x1f64b2);})[_0xb68878('0x14')](function(_0xdd9273){const _0x480cc2=_0xb68878;logger[_0x480cc2('0x18')](JSON[_0x480cc2('0x1a')](_0xdd9273));});});},Migration['prototype'][_0x4966b4('0x16')]=function(_0x1ccfdc,_0x250856,_0x49b913){const _0x3564f1=_0x4966b4,_0x425b57=this;this[_0x3564f1('0x21')][_0x3564f1('0x5')](function(){const _0x5311e4=_0x3564f1;return _0x425b57['queryInterface'][_0x5311e4('0x16')](_0x1ccfdc,_0x250856,_0x49b913)[_0x5311e4('0x22')](function(){const _0x2c8fab=_0x5311e4;logger['info'](_0x2c8fab('0x7'),_0x250856,_0x1ccfdc);})[_0x5311e4('0x14')](function(_0x2bbc6a){const _0x4aa45c=_0x5311e4;logger[_0x4aa45c('0x18')](JSON['stringify'](_0x2bbc6a));});});},Migration[_0x4966b4('0x9')][_0x4966b4('0x1d')]=function(_0x58712b){const _0x3b8b57=_0x4966b4,_0x48b359=this;this['sequence'][_0x3b8b57('0x5')](function(){const _0x249bc5=_0x3b8b57;return _0x48b359[_0x249bc5('0x3')][_0x249bc5('0x1d')](_0x58712b,{'force':!![]})['then'](function(){const _0x10690d=_0x249bc5;logger[_0x10690d('0x18')](_0x10690d('0x11'),_0x58712b);})['catch'](function(_0x29384a){logger['info'](JSON['stringify'](_0x29384a));});});},Migration[_0x4966b4('0x9')][_0x4966b4('0x1b')]=function(_0x5d4e2b,_0x424cdd,_0x3e0f43){const _0x4ccb28=_0x4966b4,_0x29f7e2=this;this[_0x4ccb28('0x21')][_0x4ccb28('0x5')](function(){const _0x4c38c1=_0x4ccb28;return _0x29f7e2[_0x4c38c1('0x3')][_0x4c38c1('0x1b')](_0x5d4e2b,_0x424cdd,{'indexName':_0x3e0f43})[_0x4c38c1('0x22')](function(){const _0x1f3152=_0x4c38c1;logger[_0x1f3152('0x18')](_0x1f3152('0xc'),_0x5d4e2b,_0x424cdd[_0x1f3152('0x4')](','),_0x3e0f43);})['catch'](function(_0x18f3b1){const _0x561c3e=_0x4c38c1;logger[_0x561c3e('0x18')](JSON['stringify'](_0x18f3b1));});});},Migration[_0x4966b4('0x9')][_0x4966b4('0x15')]=function(_0x8d1962){const _0x17aee8=_0x4966b4,_0x5ad150=this;this[_0x17aee8('0x21')][_0x17aee8('0x5')](function(){const _0x5aa086=_0x17aee8;return _0x5ad150[_0x5aa086('0x3')]['sequelize'][_0x5aa086('0x15')](_0x8d1962)[_0x5aa086('0x22')](function(){const _0x7a31c4=_0x5aa086;logger[_0x7a31c4('0x18')](_0x7a31c4('0x10'),_0x8d1962);})['catch'](function(_0x29c553){const _0x1ce7cf=_0x5aa086;logger[_0x1ce7cf('0x18')](JSON[_0x1ce7cf('0x1a')](_0x29c553));});});},Migration[_0x4966b4('0x9')][_0x4966b4('0x23')]=function(_0x9adf7,_0x556fed){const _0x5d0621=_0x4966b4,_0x2e5cb0=this;this[_0x5d0621('0x21')][_0x5d0621('0x5')](function(){const _0x249072=_0x5d0621;return _0x2e5cb0[_0x249072('0x3')]['removeColumn'](_0x9adf7,_0x556fed)[_0x249072('0x22')](function(){const _0x207b62=_0x249072;logger[_0x207b62('0x18')](_0x207b62('0x1f'),_0x556fed,_0x9adf7);})[_0x249072('0x14')](function(_0x3254d2){const _0x426759=_0x249072;logger[_0x426759('0x18')](util[_0x426759('0x1')](_0x3254d2,{'showHidden':![],'depth':null}));});});},Migration[_0x4966b4('0x9')][_0x4966b4('0x2')]=function(_0x14907c,_0x11cf49,_0x1457dd){const _0x1275a3=_0x4966b4,_0x337eb2=this;this[_0x1275a3('0x21')][_0x1275a3('0x5')](function(){const _0x132e6f=_0x1275a3;return _0x337eb2[_0x132e6f('0x3')][_0x132e6f('0x2')](_0x14907c,_0x11cf49,_0x1457dd)['then'](function(){const _0x264d65=_0x132e6f;logger['info'](_0x264d65('0x1e'),_0x11cf49,_0x1457dd,_0x14907c);})[_0x132e6f('0x14')](function(_0x3fd777){const _0x159e99=_0x132e6f;logger[_0x159e99('0x18')](util[_0x159e99('0x1')](_0x3fd777,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x12b81a){const _0x36bd40=_0x4966b4;this[_0x36bd40('0x21')][_0x36bd40('0x5')](function(){return _0x12b81a();});},module[_0x4966b4('0x12')]={'up':function(_0x15c3ca,_0x4fc757){return new Promise(function(_0x3df3c9){const _0x5e40e1=a936_0x290e,_0x23e29e=new Migration(_0x15c3ca);_0x23e29e[_0x5e40e1('0x16')](_0x5e40e1('0x17'),_0x5e40e1('0x0'),{'type':_0x4fc757[_0x5e40e1('0x20')],'defaultValue':![]}),_0x23e29e[_0x5e40e1('0x19')]('voice_queues',_0x5e40e1('0xd'),{'type':_0x4fc757[_0x5e40e1('0x6')]}),_0x23e29e['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'),_0x23e29e[_0x5e40e1('0x15')]('UPDATE\x20report_queue\x20SET\x20lastAssignedTo=NULL\x20\x20WHERE\x20lastAssignedTo=\x22\x22'),_0x23e29e[_0x5e40e1('0x1c')](_0x3df3c9);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.58.js b/server/migrations/2.0.58.js index 287a210..5cd6fe0 100644 --- a/server/migrations/2.0.58.js +++ b/server/migrations/2.0.58.js @@ -1 +1 @@ -const a937_0x4e45=['join','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);','query\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\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);','STRING','catch','queryInterface','dropTable','report_queue','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','finally','migration','addIndex','prototype','disposition','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);','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);','sequelize','addIndex\x20%s\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','final','then','info','sequence','util','addColumn','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);','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);','queuecallerexitreason','stringify','renameColumn','enqueue','inspect','query','Added\x20column\x20%s\x20to\x20%s','removeColumn','table\x20dropped\x20%s'];(function(_0x5bf389,_0x4e45d0){const _0x28b80f=function(_0x2ca27e){while(--_0x2ca27e){_0x5bf389['push'](_0x5bf389['shift']());}};_0x28b80f(++_0x4e45d0);}(a937_0x4e45,0x1c1));const a937_0x28b8=function(_0x5bf389,_0x4e45d0){_0x5bf389=_0x5bf389-0x0;let _0x28b80f=a937_0x4e45[_0x5bf389];return _0x28b80f;};const _0x361ef0=a937_0x28b8;'use strict';const util=require(_0x361ef0('0x20')),logger=require('../config/logger')(_0x361ef0('0x13')),Sequence=function(){};Sequence[_0x361ef0('0x15')][_0x361ef0('0x1')]=function(_0x2ca27e){const _0x55cf1e=_0x361ef0;this[_0x55cf1e('0x11')]=this['tail']?this[_0x55cf1e('0x11')][_0x55cf1e('0x12')](_0x2ca27e):_0x2ca27e();};const Migration=function(_0x7539a9){const _0x3690e0=_0x361ef0;this[_0x3690e0('0xd')]=_0x7539a9,this[_0x3690e0('0x1f')]=new Sequence();};Migration[_0x361ef0('0x15')]['changeColumn']=function(_0x2a9fbd,_0x5e5aae,_0x39a31d){const _0x274e5c=_0x361ef0,_0x3f16ce=this;this[_0x274e5c('0x1f')]['enqueue'](function(){const _0x13bf34=_0x274e5c;return _0x3f16ce[_0x13bf34('0xd')]['changeColumn'](_0x2a9fbd,_0x5e5aae,_0x39a31d)[_0x13bf34('0x1d')](function(){const _0x5a6eaa=_0x13bf34;logger['info'](_0x5a6eaa('0x1b'),_0x5e5aae,_0x2a9fbd);})[_0x13bf34('0xc')](function(_0x2efe97){const _0x51c14f=_0x13bf34;logger[_0x51c14f('0x1e')](JSON[_0x51c14f('0x25')](_0x2efe97));});});},Migration['prototype'][_0x361ef0('0x21')]=function(_0x4ad868,_0x4eb5cb,_0x2d8916){const _0x4cf3e4=_0x361ef0,_0x5702fa=this;this['sequence'][_0x4cf3e4('0x1')](function(){const _0x25415e=_0x4cf3e4;return _0x5702fa[_0x25415e('0xd')]['addColumn'](_0x4ad868,_0x4eb5cb,_0x2d8916)['then'](function(){const _0x3cfe8e=_0x25415e;logger[_0x3cfe8e('0x1e')](_0x3cfe8e('0x4'),_0x4eb5cb,_0x4ad868);})[_0x25415e('0xc')](function(_0x158009){const _0x59c810=_0x25415e;logger[_0x59c810('0x1e')](JSON[_0x59c810('0x25')](_0x158009));});});},Migration[_0x361ef0('0x15')][_0x361ef0('0xe')]=function(_0x344f57){const _0x893073=_0x361ef0,_0x195d3f=this;this[_0x893073('0x1f')][_0x893073('0x1')](function(){const _0xb33be9=_0x893073;return _0x195d3f['queryInterface'][_0xb33be9('0xe')](_0x344f57,{'force':!![]})[_0xb33be9('0x1d')](function(){const _0x57b701=_0xb33be9;logger['info'](_0x57b701('0x6'),_0x344f57);})[_0xb33be9('0xc')](function(_0x12a77a){const _0x4505e4=_0xb33be9;logger['info'](JSON[_0x4505e4('0x25')](_0x12a77a));});});},Migration[_0x361ef0('0x15')]['addIndex']=function(_0x204560,_0x29d6fd,_0x513ee8){const _0xbf9cad=_0x361ef0,_0x44c55a=this;this[_0xbf9cad('0x1f')][_0xbf9cad('0x1')](function(){const _0x2272bc=_0xbf9cad;return _0x44c55a['queryInterface'][_0x2272bc('0x14')](_0x204560,_0x29d6fd,{'indexName':_0x513ee8})[_0x2272bc('0x1d')](function(){const _0x514bd2=_0x2272bc;logger[_0x514bd2('0x1e')](_0x514bd2('0x1a'),_0x204560,_0x29d6fd[_0x514bd2('0x7')](','),_0x513ee8);})[_0x2272bc('0xc')](function(_0x2bf639){const _0x464fe2=_0x2272bc;logger[_0x464fe2('0x1e')](JSON[_0x464fe2('0x25')](_0x2bf639));});});},Migration['prototype'][_0x361ef0('0x3')]=function(_0x36535a){const _0x2c5c93=_0x361ef0,_0x2b7cea=this;this['sequence'][_0x2c5c93('0x1')](function(){const _0x9f2db3=_0x2c5c93;return _0x2b7cea[_0x9f2db3('0xd')][_0x9f2db3('0x19')][_0x9f2db3('0x3')](_0x36535a)[_0x9f2db3('0x1d')](function(){const _0x33528b=_0x9f2db3;logger[_0x33528b('0x1e')](_0x33528b('0x9'),_0x36535a);})[_0x9f2db3('0xc')](function(_0x37a6c1){const _0x3e0a87=_0x9f2db3;logger[_0x3e0a87('0x1e')](JSON['stringify'](_0x37a6c1));});});},Migration[_0x361ef0('0x15')][_0x361ef0('0x5')]=function(_0x211d59,_0x5b22e7){const _0x454585=_0x361ef0,_0x26fc32=this;this[_0x454585('0x1f')][_0x454585('0x1')](function(){const _0x56d068=_0x454585;return _0x26fc32[_0x56d068('0xd')][_0x56d068('0x5')](_0x211d59,_0x5b22e7)['then'](function(){const _0x6ad315=_0x56d068;logger[_0x6ad315('0x1e')]('Removed\x20column\x20%s\x20from\x20%s',_0x5b22e7,_0x211d59);})[_0x56d068('0xc')](function(_0x27a265){const _0x3bbe05=_0x56d068;logger[_0x3bbe05('0x1e')](util[_0x3bbe05('0x2')](_0x27a265,{'showHidden':![],'depth':null}));});});},Migration[_0x361ef0('0x15')][_0x361ef0('0x0')]=function(_0x1d5b79,_0x37d58d,_0x5f0aff){const _0x19511f=_0x361ef0,_0x56ae7e=this;this[_0x19511f('0x1f')]['enqueue'](function(){const _0x546887=_0x19511f;return _0x56ae7e[_0x546887('0xd')][_0x546887('0x0')](_0x1d5b79,_0x37d58d,_0x5f0aff)['then'](function(){const _0x100306=_0x546887;logger['info'](_0x100306('0x10'),_0x37d58d,_0x5f0aff,_0x1d5b79);})['catch'](function(_0x1938c0){const _0x910122=_0x546887;logger[_0x910122('0x1e')](util[_0x910122('0x2')](_0x1938c0,{'showHidden':![],'depth':null}));});});},Migration[_0x361ef0('0x15')][_0x361ef0('0x1c')]=function(_0x185576){const _0x2feac0=_0x361ef0;this['sequence'][_0x2feac0('0x1')](function(){return _0x185576();});},module['exports']={'up':function(_0x5cb066,_0x20f102){return new Promise(function(_0xe669eb){const _0x10d1c5=a937_0x28b8,_0x347582=new Migration(_0x5cb066);_0x347582['query']('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'),_0x347582[_0x10d1c5('0x14')](_0x10d1c5('0xf'),['queue'],'queue'),_0x347582['addIndex'](_0x10d1c5('0xf'),[_0x10d1c5('0x24')],'queuecallerexitreason'),_0x347582[_0x10d1c5('0x21')](_0x10d1c5('0xf'),_0x10d1c5('0x16'),{'type':_0x20f102[_0x10d1c5('0xb')]}),_0x347582[_0x10d1c5('0x3')](_0x10d1c5('0x18')),_0x347582[_0x10d1c5('0x3')]('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);'),_0x347582[_0x10d1c5('0x3')](_0x10d1c5('0xa')),_0x347582[_0x10d1c5('0x3')](_0x10d1c5('0x23')),_0x347582[_0x10d1c5('0x3')](_0x10d1c5('0x22')),_0x347582[_0x10d1c5('0x3')](_0x10d1c5('0x17')),_0x347582[_0x10d1c5('0x3')](_0x10d1c5('0x8')),_0x347582['final'](_0xe669eb);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.59.js b/server/migrations/2.0.59.js index 75c72e2..c5b4d82 100644 --- a/server/migrations/2.0.59.js +++ b/server/migrations/2.0.59.js @@ -1 +1 @@ -const a938_0x2061=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','UNSIGNED','catch','table\x20dropped\x20%s','DELETE\x20FROM\x20`voice_voicemail_messages`\x20WHERE\x20`mailboxuser`\x20NOT\x20IN\x20(SELECT\x20`mailbox`\x20FROM\x20`voice_voicemail`)','final','STRING','BOOLEAN','query\x20%s','cm_lists','stringify','NOW','enqueue','changeColumn','tail','openedBy','then','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','https://www.xcally.com/bar/phonebar/autoupdater.xml','inspect','fax_interactions','sequence','renameColumn','settings','skype','dialPrefix','util','sequelize','cm_contacts','addColumn','alias','queryInterface','sms_interactions','INTEGER','openchannel_interactions','join','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','query','Added\x20column\x20%s\x20to\x20%s','exports','prototype','phoneBarAutoUpdater'];(function(_0x8a977,_0x206167){const _0xb40e65=function(_0x33c532){while(--_0x33c532){_0x8a977['push'](_0x8a977['shift']());}};_0xb40e65(++_0x206167);}(a938_0x2061,0x152));const a938_0xb40e=function(_0x8a977,_0x206167){_0x8a977=_0x8a977-0x0;let _0xb40e65=a938_0x2061[_0x8a977];return _0xb40e65;};const _0x2c91d0=a938_0xb40e;'use strict';const util=require(_0x2c91d0('0x5')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x2c91d0('0x14')]['enqueue']=function(_0x33c532){const _0x570a3e=_0x2c91d0;this[_0x570a3e('0x25')]=this[_0x570a3e('0x25')]?this[_0x570a3e('0x25')]['finally'](_0x33c532):_0x33c532();};const Migration=function(_0x42af40){const _0x121783=_0x2c91d0;this[_0x121783('0xa')]=_0x42af40,this['sequence']=new Sequence();};Migration[_0x2c91d0('0x14')][_0x2c91d0('0x24')]=function(_0x1cc1bf,_0x3c9ef7,_0x548692){const _0x53b883=_0x2c91d0,_0x1f6908=this;this[_0x53b883('0x0')][_0x53b883('0x23')](function(){const _0x1a4b68=_0x53b883;return _0x1f6908[_0x1a4b68('0xa')][_0x1a4b68('0x24')](_0x1cc1bf,_0x3c9ef7,_0x548692)['then'](function(){const _0x5bf1c0=_0x1a4b68;logger[_0x5bf1c0('0x17')](_0x5bf1c0('0x10'),_0x3c9ef7,_0x1cc1bf);})['catch'](function(_0x6b8896){const _0x23e921=_0x1a4b68;logger['info'](JSON[_0x23e921('0x21')](_0x6b8896));});});},Migration[_0x2c91d0('0x14')][_0x2c91d0('0x8')]=function(_0x269ecc,_0x3347f3,_0x35d688){const _0x3487cd=_0x2c91d0,_0x553713=this;this[_0x3487cd('0x0')][_0x3487cd('0x23')](function(){const _0x15da58=_0x3487cd;return _0x553713['queryInterface'][_0x15da58('0x8')](_0x269ecc,_0x3347f3,_0x35d688)['then'](function(){const _0x36aa9a=_0x15da58;logger['info'](_0x36aa9a('0x12'),_0x3347f3,_0x269ecc);})['catch'](function(_0x219dd5){const _0x5e0847=_0x15da58;logger[_0x5e0847('0x17')](JSON['stringify'](_0x219dd5));});});},Migration[_0x2c91d0('0x14')]['dropTable']=function(_0x33d3e0){const _0x2dc2cb=_0x2c91d0,_0x4767ee=this;this[_0x2dc2cb('0x0')]['enqueue'](function(){const _0x345bd5=_0x2dc2cb;return _0x4767ee[_0x345bd5('0xa')]['dropTable'](_0x33d3e0,{'force':!![]})[_0x345bd5('0x27')](function(){const _0x25c3f1=_0x345bd5;logger['info'](_0x25c3f1('0x1a'),_0x33d3e0);})[_0x345bd5('0x19')](function(_0x455208){const _0x5b8446=_0x345bd5;logger[_0x5b8446('0x17')](JSON[_0x5b8446('0x21')](_0x455208));});});},Migration[_0x2c91d0('0x14')][_0x2c91d0('0xf')]=function(_0x5bc8a7,_0x52410d,_0x440488){const _0x14b421=_0x2c91d0,_0xde7dd7=this;this[_0x14b421('0x0')][_0x14b421('0x23')](function(){const _0x188ab2=_0x14b421;return _0xde7dd7['queryInterface'][_0x188ab2('0xf')](_0x5bc8a7,_0x52410d,{'indexName':_0x440488})[_0x188ab2('0x27')](function(){const _0x39a105=_0x188ab2;logger[_0x39a105('0x17')]('addIndex\x20%s\x20%s\x20%s',_0x5bc8a7,_0x52410d[_0x39a105('0xe')](','),_0x440488);})[_0x188ab2('0x19')](function(_0x1c092b){const _0x560afc=_0x188ab2;logger[_0x560afc('0x17')](JSON[_0x560afc('0x21')](_0x1c092b));});});},Migration[_0x2c91d0('0x14')][_0x2c91d0('0x11')]=function(_0x5945be){const _0x4a2675=_0x2c91d0,_0x1913dc=this;this[_0x4a2675('0x0')]['enqueue'](function(){const _0x15701c=_0x4a2675;return _0x1913dc[_0x15701c('0xa')][_0x15701c('0x6')]['query'](_0x5945be)[_0x15701c('0x27')](function(){const _0x47cd84=_0x15701c;logger[_0x47cd84('0x17')](_0x47cd84('0x1f'),_0x5945be);})[_0x15701c('0x19')](function(_0x58ea6d){const _0x35c28e=_0x15701c;logger[_0x35c28e('0x17')](JSON[_0x35c28e('0x21')](_0x58ea6d));});});},Migration[_0x2c91d0('0x14')]['removeColumn']=function(_0x33561f,_0x4dc111){const _0x5a0fa4=_0x2c91d0,_0x581816=this;this[_0x5a0fa4('0x0')][_0x5a0fa4('0x23')](function(){const _0x1109b9=_0x5a0fa4;return _0x581816[_0x1109b9('0xa')]['removeColumn'](_0x33561f,_0x4dc111)['then'](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x4dc111,_0x33561f);})['catch'](function(_0x52d5dc){const _0x4a77df=_0x1109b9;logger[_0x4a77df('0x17')](util[_0x4a77df('0x2b')](_0x52d5dc,{'showHidden':![],'depth':null}));});});},Migration[_0x2c91d0('0x14')][_0x2c91d0('0x1')]=function(_0x11c611,_0x58dad6,_0x308592){const _0x7feea8=_0x2c91d0,_0x580d17=this;this['sequence'][_0x7feea8('0x23')](function(){const _0x3a5609=_0x7feea8;return _0x580d17[_0x3a5609('0xa')][_0x3a5609('0x1')](_0x11c611,_0x58dad6,_0x308592)[_0x3a5609('0x27')](function(){const _0x1ad0df=_0x3a5609;logger[_0x1ad0df('0x17')](_0x1ad0df('0x16'),_0x58dad6,_0x308592,_0x11c611);})['catch'](function(_0x5dd7fc){const _0x21ec42=_0x3a5609;logger[_0x21ec42('0x17')](util[_0x21ec42('0x2b')](_0x5dd7fc,{'showHidden':![],'depth':null}));});});},Migration[_0x2c91d0('0x14')][_0x2c91d0('0x1c')]=function(_0x76f89a){const _0x39b00a=_0x2c91d0;this[_0x39b00a('0x0')][_0x39b00a('0x23')](function(){return _0x76f89a();});},module[_0x2c91d0('0x13')]={'up':function(_0xe5863c,_0xf0da0f){return new Promise(function(_0x248081){const _0x3df788=a938_0xb40e,_0x4891e8=new Migration(_0xe5863c);_0x4891e8['addColumn'](_0x3df788('0x2'),_0x3df788('0x15'),{'type':_0xf0da0f[_0x3df788('0x1e')],'defaultValue':!![]}),_0x4891e8[_0x3df788('0x8')](_0x3df788('0x2'),'phoneBarAutoUpdaterUrl',{'type':_0xf0da0f[_0x3df788('0x1d')],'defaultValue':_0x3df788('0x2a')}),_0x4891e8[_0x3df788('0x8')]('campaigns','dialPrefix',{'type':_0xf0da0f['STRING']}),_0x4891e8[_0x3df788('0x8')](_0x3df788('0x20'),_0x3df788('0x4'),{'type':_0xf0da0f[_0x3df788('0x1d')]}),_0x4891e8[_0x3df788('0x8')]('users',_0x3df788('0x9'),{'type':_0xf0da0f['STRING']}),_0x4891e8[_0x3df788('0x8')](_0x3df788('0x7'),_0x3df788('0x3'),{'type':_0xf0da0f['STRING']}),_0x4891e8[_0x3df788('0x8')](_0x3df788('0x7'),'UserId',{'type':_0xf0da0f[_0x3df788('0xc')]}),_0x4891e8['addColumn']('cm_contacts','priority',{'type':_0xf0da0f[_0x3df788('0xc')](0x2)[_0x3df788('0x18')],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}}),_0x4891e8['addColumn'](_0x3df788('0x7'),'scheduledat',{'type':_0xf0da0f['DATE'],'defaultValue':_0xf0da0f[_0x3df788('0x22')]}),_0x4891e8['addColumn'](_0x3df788('0x28'),'openedBy',{'type':_0xf0da0f[_0x3df788('0x1d')],'defaultValue':''}),_0x4891e8[_0x3df788('0x8')]('chat_interactions',_0x3df788('0x26'),{'type':_0xf0da0f[_0x3df788('0x1d')],'defaultValue':''}),_0x4891e8[_0x3df788('0x8')](_0x3df788('0xb'),_0x3df788('0x26'),{'type':_0xf0da0f[_0x3df788('0x1d')],'defaultValue':''}),_0x4891e8['addColumn'](_0x3df788('0xd'),_0x3df788('0x26'),{'type':_0xf0da0f[_0x3df788('0x1d')],'defaultValue':''}),_0x4891e8[_0x3df788('0x8')](_0x3df788('0x2c'),_0x3df788('0x26'),{'type':_0xf0da0f[_0x3df788('0x1d')],'defaultValue':''}),_0x4891e8[_0x3df788('0x11')](_0x3df788('0x1b')),_0x4891e8[_0x3df788('0x11')](_0x3df788('0x29')),_0x4891e8[_0x3df788('0x1c')](_0x248081);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.60.js b/server/migrations/2.0.60.js index 45d2ab0..2367809 100644 --- a/server/migrations/2.0.60.js +++ b/server/migrations/2.0.60.js @@ -1 +1 @@ -const a939_0x563e=['mail_accounts','join','sequelize','then','addColumn','../config/logger','Added\x20column\x20%s\x20to\x20%s','INTEGER','sms_interactions','tail','lastMsgBody','exports','prototype','addIndex\x20%s\x20%s\x20%s','STRING','openedBy','fax_accounts','sms_accounts','removeColumn','long','TEXT','fax_interactions','renameColumn','chat_interactions','website_alias','waitForTheAssignedAgent','stringify','changeColumn','users','addIndex','catch','info','finally','queryInterface','final','Changed\x20column\x20%s\x20in\x20table\x20%s','sequence','BOOLEAN','openchannel_accounts','chat_websites','inspect','Removed\x20column\x20%s\x20from\x20%s','enqueue','mail_interactions','query'];(function(_0x10cbe7,_0x563ef3){const _0x5d4a6c=function(_0x2add69){while(--_0x2add69){_0x10cbe7['push'](_0x10cbe7['shift']());}};_0x5d4a6c(++_0x563ef3);}(a939_0x563e,0x1a7));const a939_0x5d4a=function(_0x10cbe7,_0x563ef3){_0x10cbe7=_0x10cbe7-0x0;let _0x5d4a6c=a939_0x563e[_0x10cbe7];return _0x5d4a6c;};const _0x3297de=a939_0x5d4a;'use strict';const util=require('util'),logger=require(_0x3297de('0x20'))('migration'),Sequence=function(){};Sequence[_0x3297de('0x27')][_0x3297de('0x18')]=function(_0x2add69){const _0x491852=_0x3297de;this[_0x491852('0x24')]=this[_0x491852('0x24')]?this[_0x491852('0x24')][_0x491852('0xe')](_0x2add69):_0x2add69();};const Migration=function(_0x19f5b3){const _0x4ac3e4=_0x3297de;this[_0x4ac3e4('0xf')]=_0x19f5b3,this[_0x4ac3e4('0x12')]=new Sequence();};Migration['prototype'][_0x3297de('0x9')]=function(_0x55ab38,_0x4dcd9b,_0x326c0c){const _0x5e7e65=_0x3297de,_0x3af8c8=this;this[_0x5e7e65('0x12')]['enqueue'](function(){const _0x45693d=_0x5e7e65;return _0x3af8c8['queryInterface'][_0x45693d('0x9')](_0x55ab38,_0x4dcd9b,_0x326c0c)[_0x45693d('0x1e')](function(){const _0x35e096=_0x45693d;logger[_0x35e096('0xd')](_0x35e096('0x11'),_0x4dcd9b,_0x55ab38);})['catch'](function(_0x3e20cd){logger['info'](JSON['stringify'](_0x3e20cd));});});},Migration['prototype'][_0x3297de('0x1f')]=function(_0x3466cd,_0x1facd9,_0x36391a){const _0x14dbec=_0x3297de,_0x58a617=this;this[_0x14dbec('0x12')][_0x14dbec('0x18')](function(){const _0x4a485e=_0x14dbec;return _0x58a617[_0x4a485e('0xf')][_0x4a485e('0x1f')](_0x3466cd,_0x1facd9,_0x36391a)['then'](function(){const _0x3d7b89=_0x4a485e;logger['info'](_0x3d7b89('0x21'),_0x1facd9,_0x3466cd);})[_0x4a485e('0xc')](function(_0x198d8d){const _0x11030d=_0x4a485e;logger['info'](JSON[_0x11030d('0x8')](_0x198d8d));});});},Migration[_0x3297de('0x27')]['dropTable']=function(_0x5bab93){const _0x150587=_0x3297de,_0x53b927=this;this['sequence'][_0x150587('0x18')](function(){const _0x1257aa=_0x150587;return _0x53b927[_0x1257aa('0xf')]['dropTable'](_0x5bab93,{'force':!![]})[_0x1257aa('0x1e')](function(){const _0x491d1e=_0x1257aa;logger[_0x491d1e('0xd')]('table\x20dropped\x20%s',_0x5bab93);})['catch'](function(_0x3fb244){const _0x3932d4=_0x1257aa;logger['info'](JSON[_0x3932d4('0x8')](_0x3fb244));});});},Migration['prototype'][_0x3297de('0xb')]=function(_0x295f19,_0x5d4dbf,_0x4ea811){const _0x7cde25=_0x3297de,_0x4e253b=this;this['sequence'][_0x7cde25('0x18')](function(){const _0x1e0beb=_0x7cde25;return _0x4e253b['queryInterface']['addIndex'](_0x295f19,_0x5d4dbf,{'indexName':_0x4ea811})[_0x1e0beb('0x1e')](function(){const _0x384f3a=_0x1e0beb;logger[_0x384f3a('0xd')](_0x384f3a('0x28'),_0x295f19,_0x5d4dbf[_0x384f3a('0x1c')](','),_0x4ea811);})['catch'](function(_0x2f077c){const _0x2ca29f=_0x1e0beb;logger[_0x2ca29f('0xd')](JSON[_0x2ca29f('0x8')](_0x2f077c));});});},Migration[_0x3297de('0x27')][_0x3297de('0x1a')]=function(_0x37eb29){const _0x96fdf4=_0x3297de,_0x2bbf25=this;this[_0x96fdf4('0x12')][_0x96fdf4('0x18')](function(){const _0xc42f88=_0x96fdf4;return _0x2bbf25['queryInterface'][_0xc42f88('0x1d')][_0xc42f88('0x1a')](_0x37eb29)[_0xc42f88('0x1e')](function(){const _0x514492=_0xc42f88;logger[_0x514492('0xd')]('query\x20%s',_0x37eb29);})[_0xc42f88('0xc')](function(_0x606107){const _0x40895b=_0xc42f88;logger[_0x40895b('0xd')](JSON[_0x40895b('0x8')](_0x606107));});});},Migration[_0x3297de('0x27')][_0x3297de('0x0')]=function(_0x17bfc5,_0xe436c9){const _0x303e54=_0x3297de,_0x445e86=this;this[_0x303e54('0x12')]['enqueue'](function(){const _0x533760=_0x303e54;return _0x445e86['queryInterface'][_0x533760('0x0')](_0x17bfc5,_0xe436c9)[_0x533760('0x1e')](function(){const _0x3f89e0=_0x533760;logger[_0x3f89e0('0xd')](_0x3f89e0('0x17'),_0xe436c9,_0x17bfc5);})[_0x533760('0xc')](function(_0x515b57){const _0x40b58f=_0x533760;logger[_0x40b58f('0xd')](util[_0x40b58f('0x16')](_0x515b57,{'showHidden':![],'depth':null}));});});},Migration[_0x3297de('0x27')][_0x3297de('0x4')]=function(_0x274985,_0xee22bb,_0x4606c6){const _0x3fe2b5=_0x3297de,_0x3e799d=this;this[_0x3fe2b5('0x12')][_0x3fe2b5('0x18')](function(){const _0x75c571=_0x3fe2b5;return _0x3e799d['queryInterface']['renameColumn'](_0x274985,_0xee22bb,_0x4606c6)[_0x75c571('0x1e')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0xee22bb,_0x4606c6,_0x274985);})['catch'](function(_0x16e27b){const _0x41f13d=_0x75c571;logger[_0x41f13d('0xd')](util['inspect'](_0x16e27b,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3297de('0x10')]=function(_0x132248){const _0x452874=_0x3297de;this[_0x452874('0x12')][_0x452874('0x18')](function(){return _0x132248();});},module[_0x3297de('0x26')]={'up':function(_0x1f5d4d,_0x51fba9){return new Promise(function(_0x15beec){const _0x33e864=a939_0x5d4a,_0x3c0883=new Migration(_0x1f5d4d);_0x3c0883['addColumn'](_0x33e864('0x15'),'agentIdentifier',{'type':_0x51fba9['STRING'],'defaultValue':_0x33e864('0x6')}),_0x3c0883['addColumn'](_0x33e864('0x15'),_0x33e864('0x7'),{'type':_0x51fba9[_0x33e864('0x22')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x3c0883[_0x33e864('0x0')](_0x33e864('0x5'),'openedBy'),_0x3c0883['removeColumn'](_0x33e864('0x19'),_0x33e864('0x2a')),_0x3c0883['addColumn']('mail_interactions',_0x33e864('0x25'),{'type':_0x51fba9[_0x33e864('0x2')](_0x33e864('0x1'))}),_0x3c0883['removeColumn'](_0x33e864('0x23'),_0x33e864('0x2a')),_0x3c0883[_0x33e864('0x0')](_0x33e864('0x3'),_0x33e864('0x2a')),_0x3c0883['removeColumn']('openchannel_interactions',_0x33e864('0x2a')),_0x3c0883[_0x33e864('0x1f')]('openchannel_interactions','from',{'type':_0x51fba9[_0x33e864('0x29')]}),_0x3c0883[_0x33e864('0x1f')](_0x33e864('0x1b'),_0x33e864('0x7'),{'type':_0x51fba9[_0x33e864('0x22')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x3c0883[_0x33e864('0x1f')](_0x33e864('0x14'),_0x33e864('0x7'),{'type':_0x51fba9[_0x33e864('0x22')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x3c0883['addColumn'](_0x33e864('0x2b'),_0x33e864('0x7'),{'type':_0x51fba9['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x3c0883[_0x33e864('0x1f')](_0x33e864('0x2c'),_0x33e864('0x7'),{'type':_0x51fba9[_0x33e864('0x22')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x3c0883['addColumn'](_0x33e864('0xa'),'phoneBarEnableJaws',{'type':_0x51fba9[_0x33e864('0x13')],'defaultValue':![]}),_0x3c0883[_0x33e864('0x10')](_0x15beec);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.61.js b/server/migrations/2.0.61.js index e8be0a9..5664065 100644 --- a/server/migrations/2.0.61.js +++ b/server/migrations/2.0.61.js @@ -1 +1 @@ -const a940_0x4d58=['query','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s','changeColumn','addIndex','migration','renameColumn','join','inspect','stringify','enqueue','tail','Removed\x20column\x20%s\x20from\x20%s','final','info','exports','finally','prototype','queryInterface','removeColumn','catch','then','addIndex\x20%s\x20%s\x20%s','dropTable','sequelize','sequence','../config/logger','query\x20%s','addColumn'];(function(_0x37a0f7,_0x4d5882){const _0x2d6a8d=function(_0x4241a8){while(--_0x4241a8){_0x37a0f7['push'](_0x37a0f7['shift']());}};_0x2d6a8d(++_0x4d5882);}(a940_0x4d58,0x77));const a940_0x2d6a=function(_0x37a0f7,_0x4d5882){_0x37a0f7=_0x37a0f7-0x0;let _0x2d6a8d=a940_0x4d58[_0x37a0f7];return _0x2d6a8d;};const _0x17f55c=a940_0x2d6a;'use strict';const util=require('util'),logger=require(_0x17f55c('0x17'))(_0x17f55c('0x2')),Sequence=function(){};Sequence[_0x17f55c('0xe')][_0x17f55c('0x7')]=function(_0x4241a8){const _0x53c6b2=_0x17f55c;this[_0x53c6b2('0x8')]=this[_0x53c6b2('0x8')]?this[_0x53c6b2('0x8')][_0x53c6b2('0xd')](_0x4241a8):_0x4241a8();};const Migration=function(_0x67194){const _0x4909b1=_0x17f55c;this[_0x4909b1('0xf')]=_0x67194,this[_0x4909b1('0x16')]=new Sequence();};Migration['prototype'][_0x17f55c('0x0')]=function(_0x377f5e,_0x2e9940,_0x3bcbbd){const _0x11f884=_0x17f55c,_0x5769fe=this;this[_0x11f884('0x16')][_0x11f884('0x7')](function(){const _0x2d83c6=_0x11f884;return _0x5769fe['queryInterface'][_0x2d83c6('0x0')](_0x377f5e,_0x2e9940,_0x3bcbbd)[_0x2d83c6('0x12')](function(){const _0x5885e2=_0x2d83c6;logger[_0x5885e2('0xb')](_0x5885e2('0x1b'),_0x2e9940,_0x377f5e);})['catch'](function(_0x4154be){const _0x10ba84=_0x2d83c6;logger[_0x10ba84('0xb')](JSON[_0x10ba84('0x6')](_0x4154be));});});},Migration[_0x17f55c('0xe')]['addColumn']=function(_0x822a81,_0x29b123,_0x5100b7){const _0x7dc62f=_0x17f55c,_0x11c795=this;this[_0x7dc62f('0x16')][_0x7dc62f('0x7')](function(){const _0x39308b=_0x7dc62f;return _0x11c795[_0x39308b('0xf')][_0x39308b('0x19')](_0x822a81,_0x29b123,_0x5100b7)[_0x39308b('0x12')](function(){const _0x12dbd4=_0x39308b;logger[_0x12dbd4('0xb')]('Added\x20column\x20%s\x20to\x20%s',_0x29b123,_0x822a81);})[_0x39308b('0x11')](function(_0x1ef85d){const _0x2a60e5=_0x39308b;logger[_0x2a60e5('0xb')](JSON[_0x2a60e5('0x6')](_0x1ef85d));});});},Migration[_0x17f55c('0xe')][_0x17f55c('0x14')]=function(_0x1f54c9){const _0x32a189=this;this['sequence']['enqueue'](function(){const _0x50e083=a940_0x2d6a;return _0x32a189[_0x50e083('0xf')]['dropTable'](_0x1f54c9,{'force':!![]})[_0x50e083('0x12')](function(){const _0x1c3a72=_0x50e083;logger['info'](_0x1c3a72('0x1c'),_0x1f54c9);})[_0x50e083('0x11')](function(_0x24f5b6){logger['info'](JSON['stringify'](_0x24f5b6));});});},Migration[_0x17f55c('0xe')][_0x17f55c('0x1')]=function(_0x1c2507,_0xa5ea4e,_0x593e2e){const _0x2ecb95=_0x17f55c,_0x49bdf9=this;this[_0x2ecb95('0x16')][_0x2ecb95('0x7')](function(){const _0x36f591=_0x2ecb95;return _0x49bdf9[_0x36f591('0xf')][_0x36f591('0x1')](_0x1c2507,_0xa5ea4e,{'indexName':_0x593e2e})[_0x36f591('0x12')](function(){const _0x439c94=_0x36f591;logger[_0x439c94('0xb')](_0x439c94('0x13'),_0x1c2507,_0xa5ea4e[_0x439c94('0x4')](','),_0x593e2e);})[_0x36f591('0x11')](function(_0x10971a){const _0x154199=_0x36f591;logger[_0x154199('0xb')](JSON['stringify'](_0x10971a));});});},Migration[_0x17f55c('0xe')][_0x17f55c('0x1a')]=function(_0x1e8e53){const _0x48604d=_0x17f55c,_0x343328=this;this[_0x48604d('0x16')][_0x48604d('0x7')](function(){const _0x497b2b=_0x48604d;return _0x343328[_0x497b2b('0xf')][_0x497b2b('0x15')][_0x497b2b('0x1a')](_0x1e8e53)[_0x497b2b('0x12')](function(){const _0x2c0eba=_0x497b2b;logger[_0x2c0eba('0xb')](_0x2c0eba('0x18'),_0x1e8e53);})['catch'](function(_0x2e010a){const _0x8e0820=_0x497b2b;logger[_0x8e0820('0xb')](JSON[_0x8e0820('0x6')](_0x2e010a));});});},Migration['prototype']['removeColumn']=function(_0x48cb61,_0x560f0a){const _0x1814f5=_0x17f55c,_0x3bbccb=this;this['sequence'][_0x1814f5('0x7')](function(){const _0x2fd8bd=_0x1814f5;return _0x3bbccb[_0x2fd8bd('0xf')][_0x2fd8bd('0x10')](_0x48cb61,_0x560f0a)[_0x2fd8bd('0x12')](function(){const _0x4c421c=_0x2fd8bd;logger['info'](_0x4c421c('0x9'),_0x560f0a,_0x48cb61);})[_0x2fd8bd('0x11')](function(_0x5ba653){const _0x2664f6=_0x2fd8bd;logger['info'](util[_0x2664f6('0x5')](_0x5ba653,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x17f55c('0x3')]=function(_0x21ff59,_0x291f56,_0x15872f){const _0x2074bf=_0x17f55c,_0x21f002=this;this[_0x2074bf('0x16')][_0x2074bf('0x7')](function(){const _0x272356=_0x2074bf;return _0x21f002[_0x272356('0xf')]['renameColumn'](_0x21ff59,_0x291f56,_0x15872f)[_0x272356('0x12')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x291f56,_0x15872f,_0x21ff59);})[_0x272356('0x11')](function(_0x3addc9){const _0x2da359=_0x272356;logger[_0x2da359('0xb')](util[_0x2da359('0x5')](_0x3addc9,{'showHidden':![],'depth':null}));});});},Migration[_0x17f55c('0xe')][_0x17f55c('0xa')]=function(_0x1a969e){const _0x3dc0cb=_0x17f55c;this[_0x3dc0cb('0x16')][_0x3dc0cb('0x7')](function(){return _0x1a969e();});},module[_0x17f55c('0xc')]={'up':function(_0x166c3b){return new Promise(function(_0x139983){const _0x5d0893=a940_0x2d6a,_0x88a35d=new Migration(_0x166c3b);_0x88a35d[_0x5d0893('0xa')](_0x139983);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.62.js b/server/migrations/2.0.62.js index aafc75a..c134bdc 100644 --- a/server/migrations/2.0.62.js +++ b/server/migrations/2.0.62.js @@ -1 +1 @@ -const a941_0x1086=['changeColumn','stringify','query','inspect','tail','phone','addColumn','STRING','verticalAlignment','renameColumn','tools_schedules','chat_websites','finally','migration','addIndex\x20%s\x20%s\x20%s','sendIfEmpty','cm_contacts','info','Added\x20column\x20%s\x20to\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn','catch','exports','sequence','final','enqueue','alignment','join','prototype','queryInterface','dropTable','util','table\x20dropped\x20%s','sequelize','then','bottom_right','enableEmailPreview','addIndex','BOOLEAN','../config/logger'];(function(_0x25838e,_0x1086ce){const _0x21c380=function(_0x1f6529){while(--_0x1f6529){_0x25838e['push'](_0x25838e['shift']());}};_0x21c380(++_0x1086ce);}(a941_0x1086,0x8f));const a941_0x21c3=function(_0x25838e,_0x1086ce){_0x25838e=_0x25838e-0x0;let _0x21c380=a941_0x1086[_0x25838e];return _0x21c380;};const _0x238721=a941_0x21c3;'use strict';const util=require(_0x238721('0x8')),logger=require(_0x238721('0x10'))(_0x238721('0x1e')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x1f6529){const _0xf387a7=_0x238721;this[_0xf387a7('0x15')]=this[_0xf387a7('0x15')]?this[_0xf387a7('0x15')][_0xf387a7('0x1d')](_0x1f6529):_0x1f6529();};const Migration=function(_0x44468f){const _0x1f3121=_0x238721;this[_0x1f3121('0x6')]=_0x44468f,this[_0x1f3121('0x0')]=new Sequence();};Migration['prototype'][_0x238721('0x11')]=function(_0xd768ae,_0x106baa,_0x417018){const _0x196afb=_0x238721,_0x2a33bb=this;this[_0x196afb('0x0')][_0x196afb('0x2')](function(){const _0x3f20b7=_0x196afb;return _0x2a33bb[_0x3f20b7('0x6')][_0x3f20b7('0x11')](_0xd768ae,_0x106baa,_0x417018)[_0x3f20b7('0xb')](function(){const _0x513986=_0x3f20b7;logger[_0x513986('0x22')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x106baa,_0xd768ae);})[_0x3f20b7('0x26')](function(_0x4ca1da){const _0x3d96ff=_0x3f20b7;logger[_0x3d96ff('0x22')](JSON[_0x3d96ff('0x12')](_0x4ca1da));});});},Migration[_0x238721('0x5')][_0x238721('0x17')]=function(_0x3f9110,_0x339846,_0x756c2e){const _0x23c9ad=_0x238721,_0x2ce0f3=this;this[_0x23c9ad('0x0')][_0x23c9ad('0x2')](function(){const _0x30871a=_0x23c9ad;return _0x2ce0f3[_0x30871a('0x6')][_0x30871a('0x17')](_0x3f9110,_0x339846,_0x756c2e)[_0x30871a('0xb')](function(){const _0x313f3d=_0x30871a;logger[_0x313f3d('0x22')](_0x313f3d('0x23'),_0x339846,_0x3f9110);})[_0x30871a('0x26')](function(_0x54f715){const _0x46ab62=_0x30871a;logger[_0x46ab62('0x22')](JSON['stringify'](_0x54f715));});});},Migration[_0x238721('0x5')]['dropTable']=function(_0x37e95b){const _0x342747=_0x238721,_0x22ebb3=this;this['sequence'][_0x342747('0x2')](function(){const _0x3e6663=_0x342747;return _0x22ebb3['queryInterface'][_0x3e6663('0x7')](_0x37e95b,{'force':!![]})[_0x3e6663('0xb')](function(){const _0x34092d=_0x3e6663;logger[_0x34092d('0x22')](_0x34092d('0x9'),_0x37e95b);})[_0x3e6663('0x26')](function(_0x1c196b){const _0x14f7c8=_0x3e6663;logger['info'](JSON[_0x14f7c8('0x12')](_0x1c196b));});});},Migration[_0x238721('0x5')][_0x238721('0xe')]=function(_0x5a78dc,_0x32458a,_0x12c087){const _0x842e13=_0x238721,_0x1dc013=this;this['sequence'][_0x842e13('0x2')](function(){const _0x4793f9=_0x842e13;return _0x1dc013['queryInterface'][_0x4793f9('0xe')](_0x5a78dc,_0x32458a,{'indexName':_0x12c087})[_0x4793f9('0xb')](function(){const _0x4d20a9=_0x4793f9;logger['info'](_0x4d20a9('0x1f'),_0x5a78dc,_0x32458a[_0x4d20a9('0x4')](','),_0x12c087);})['catch'](function(_0x2eb79f){const _0x438429=_0x4793f9;logger[_0x438429('0x22')](JSON[_0x438429('0x12')](_0x2eb79f));});});},Migration[_0x238721('0x5')][_0x238721('0x13')]=function(_0x57abb2){const _0x24382e=this;this['sequence']['enqueue'](function(){const _0xf0d336=a941_0x21c3;return _0x24382e[_0xf0d336('0x6')][_0xf0d336('0xa')][_0xf0d336('0x13')](_0x57abb2)[_0xf0d336('0xb')](function(){logger['info']('query\x20%s',_0x57abb2);})[_0xf0d336('0x26')](function(_0x2d0845){const _0x3c43d0=_0xf0d336;logger[_0x3c43d0('0x22')](JSON[_0x3c43d0('0x12')](_0x2d0845));});});},Migration['prototype'][_0x238721('0x25')]=function(_0x31e9df,_0x4e183b){const _0x57b696=_0x238721,_0x5a4eb5=this;this[_0x57b696('0x0')]['enqueue'](function(){const _0x265c26=_0x57b696;return _0x5a4eb5[_0x265c26('0x6')][_0x265c26('0x25')](_0x31e9df,_0x4e183b)[_0x265c26('0xb')](function(){const _0x33635b=_0x265c26;logger[_0x33635b('0x22')]('Removed\x20column\x20%s\x20from\x20%s',_0x4e183b,_0x31e9df);})['catch'](function(_0xd49baf){const _0x3dfddb=_0x265c26;logger['info'](util[_0x3dfddb('0x14')](_0xd49baf,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x238721('0x1a')]=function(_0x22e319,_0x43d336,_0x4b6694){const _0x40ff40=_0x238721,_0x92b9bb=this;this[_0x40ff40('0x0')][_0x40ff40('0x2')](function(){const _0x46bac6=_0x40ff40;return _0x92b9bb[_0x46bac6('0x6')][_0x46bac6('0x1a')](_0x22e319,_0x43d336,_0x4b6694)['then'](function(){const _0xb4ba35=_0x46bac6;logger[_0xb4ba35('0x22')](_0xb4ba35('0x24'),_0x43d336,_0x4b6694,_0x22e319);})['catch'](function(_0x23aa70){const _0x2e8d35=_0x46bac6;logger[_0x2e8d35('0x22')](util[_0x2e8d35('0x14')](_0x23aa70,{'showHidden':![],'depth':null}));});});},Migration[_0x238721('0x5')][_0x238721('0x1')]=function(_0x4e8231){const _0x3d0103=_0x238721;this[_0x3d0103('0x0')][_0x3d0103('0x2')](function(){return _0x4e8231();});},module[_0x238721('0x27')]={'up':function(_0x36e97f,_0x13c518){return new Promise(function(_0x5a9a12){const _0x423924=a941_0x21c3,_0x3933c5=new Migration(_0x36e97f);_0x3933c5[_0x423924('0x17')](_0x423924('0x1b'),_0x423924('0x20'),{'type':_0x13c518[_0x423924('0xf')],'defaultValue':!![]}),_0x3933c5['changeColumn'](_0x423924('0x21'),_0x423924('0x16'),{'type':_0x13c518[_0x423924('0x18')],'allowNull':!![]}),_0x3933c5['addColumn']('settings',_0x423924('0xd'),{'type':_0x13c518[_0x423924('0xf')],'defaultValue':![]}),_0x3933c5[_0x423924('0x17')](_0x423924('0x1c'),_0x423924('0x3'),{'type':_0x13c518['STRING'],'defaultValue':_0x423924('0xc')}),_0x3933c5[_0x423924('0x17')](_0x423924('0x1c'),_0x423924('0x19'),{'type':_0x13c518['INTEGER'],'defaultValue':0x1e}),_0x3933c5['final'](_0x5a9a12);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.63.js b/server/migrations/2.0.63.js index 6ce8c68..d70b640 100644 --- a/server/migrations/2.0.63.js +++ b/server/migrations/2.0.63.js @@ -1 +1 @@ -const a942_0x4e3f=['ALTER\x20TABLE\x20report_dial\x20CHANGE\x20`hodltime`\x20`holdtime`\x20INT(11)\x20DEFAULT\x20NULL','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','Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','BOOLEAN','token','chat_websites','query','table\x20dropped\x20%s','prototype','showCustomerAvatar','sms_applications','sequelize','openchannel_accounts','INTEGER','messagesAlignment','customerAvatar','openchannel_applications','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','TagId','final','voice_queues_log','finally','TEXT','queryInterface','../config/logger','enqueue','mail_applications','renameColumn','then','catch','dropTable','inspect','util','addIndex','sequence','title','data','chat_applications','stringify','addColumn','removeColumn','Removed\x20column\x20%s\x20from\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','STRING','Added\x20column\x20%s\x20to\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','addIndex\x20%s\x20%s\x20%s','dashboard_items','info'];(function(_0xd01bea,_0x4e3f5a){const _0x447dba=function(_0xb5e2ab){while(--_0xb5e2ab){_0xd01bea['push'](_0xd01bea['shift']());}};_0x447dba(++_0x4e3f5a);}(a942_0x4e3f,0x1ef));const a942_0x447d=function(_0xd01bea,_0x4e3f5a){_0xd01bea=_0xd01bea-0x0;let _0x447dba=a942_0x4e3f[_0xd01bea];return _0x447dba;};const _0x58e22d=a942_0x447d;'use strict';const util=require(_0x58e22d('0x26')),logger=require(_0x58e22d('0x1e'))('migration'),Sequence=function(){};Sequence['prototype'][_0x58e22d('0x1f')]=function(_0xb5e2ab){const _0x591609=_0x58e22d;this['tail']=this['tail']?this['tail'][_0x591609('0x1b')](_0xb5e2ab):_0xb5e2ab();};const Migration=function(_0x587c12){const _0x4bf72f=_0x58e22d;this[_0x4bf72f('0x1d')]=_0x587c12,this[_0x4bf72f('0x28')]=new Sequence();};Migration[_0x58e22d('0xe')][_0x58e22d('0x8')]=function(_0x37b8ce,_0x5d1353,_0x51d3ae){const _0x439f9a=_0x58e22d,_0x6f2a71=this;this[_0x439f9a('0x28')][_0x439f9a('0x1f')](function(){const _0x46f52f=_0x439f9a;return _0x6f2a71[_0x46f52f('0x1d')][_0x46f52f('0x8')](_0x37b8ce,_0x5d1353,_0x51d3ae)['then'](function(){const _0x259dc2=_0x46f52f;logger[_0x259dc2('0x4')](_0x259dc2('0x7'),_0x5d1353,_0x37b8ce);})[_0x46f52f('0x23')](function(_0x8a8f3f){const _0x1ef02e=_0x46f52f;logger[_0x1ef02e('0x4')](JSON[_0x1ef02e('0x2c')](_0x8a8f3f));});});},Migration['prototype']['addColumn']=function(_0x4144e1,_0x511fda,_0x5b8971){const _0x78fd4f=_0x58e22d,_0x4c44f2=this;this[_0x78fd4f('0x28')][_0x78fd4f('0x1f')](function(){const _0x5f7bf0=_0x78fd4f;return _0x4c44f2['queryInterface'][_0x5f7bf0('0x2d')](_0x4144e1,_0x511fda,_0x5b8971)[_0x5f7bf0('0x22')](function(){const _0x3d5bca=_0x5f7bf0;logger[_0x3d5bca('0x4')](_0x3d5bca('0x0'),_0x511fda,_0x4144e1);})[_0x5f7bf0('0x23')](function(_0x1ed130){const _0xf775b5=_0x5f7bf0;logger[_0xf775b5('0x4')](JSON[_0xf775b5('0x2c')](_0x1ed130));});});},Migration[_0x58e22d('0xe')][_0x58e22d('0x24')]=function(_0x5e8363){const _0x379a0a=_0x58e22d,_0x3714ac=this;this[_0x379a0a('0x28')]['enqueue'](function(){const _0x2daeb3=_0x379a0a;return _0x3714ac[_0x2daeb3('0x1d')][_0x2daeb3('0x24')](_0x5e8363,{'force':!![]})[_0x2daeb3('0x22')](function(){const _0x4ce502=_0x2daeb3;logger[_0x4ce502('0x4')](_0x4ce502('0xd'),_0x5e8363);})[_0x2daeb3('0x23')](function(_0x4a874f){const _0x14c27f=_0x2daeb3;logger[_0x14c27f('0x4')](JSON[_0x14c27f('0x2c')](_0x4a874f));});});},Migration[_0x58e22d('0xe')][_0x58e22d('0x27')]=function(_0x117784,_0x1a8fc8,_0x101c7c){const _0x3c26ca=this;this['sequence']['enqueue'](function(){const _0x593707=a942_0x447d;return _0x3c26ca[_0x593707('0x1d')][_0x593707('0x27')](_0x117784,_0x1a8fc8,{'indexName':_0x101c7c})['then'](function(){const _0x1bd3f6=_0x593707;logger[_0x1bd3f6('0x4')](_0x1bd3f6('0x2'),_0x117784,_0x1a8fc8['join'](','),_0x101c7c);})[_0x593707('0x23')](function(_0x2750f4){const _0x15800c=_0x593707;logger['info'](JSON[_0x15800c('0x2c')](_0x2750f4));});});},Migration['prototype'][_0x58e22d('0xc')]=function(_0xe0d53a){const _0x1973c5=_0x58e22d,_0x49ae68=this;this[_0x1973c5('0x28')][_0x1973c5('0x1f')](function(){const _0x352b37=_0x1973c5;return _0x49ae68[_0x352b37('0x1d')][_0x352b37('0x11')][_0x352b37('0xc')](_0xe0d53a)[_0x352b37('0x22')](function(){const _0x3b54fa=_0x352b37;logger[_0x3b54fa('0x4')]('query\x20%s',_0xe0d53a);})[_0x352b37('0x23')](function(_0x555e1a){const _0x37397d=_0x352b37;logger[_0x37397d('0x4')](JSON[_0x37397d('0x2c')](_0x555e1a));});});},Migration[_0x58e22d('0xe')][_0x58e22d('0x2e')]=function(_0x10558f,_0x4e3632){const _0x1713cb=_0x58e22d,_0x592140=this;this[_0x1713cb('0x28')][_0x1713cb('0x1f')](function(){const _0x3bfc94=_0x1713cb;return _0x592140[_0x3bfc94('0x1d')][_0x3bfc94('0x2e')](_0x10558f,_0x4e3632)[_0x3bfc94('0x22')](function(){const _0x48bb30=_0x3bfc94;logger[_0x48bb30('0x4')](_0x48bb30('0x2f'),_0x4e3632,_0x10558f);})[_0x3bfc94('0x23')](function(_0x16a9ff){const _0x4deea4=_0x3bfc94;logger['info'](util[_0x4deea4('0x25')](_0x16a9ff,{'showHidden':![],'depth':null}));});});},Migration[_0x58e22d('0xe')]['renameColumn']=function(_0x5b67d4,_0x2c40a9,_0x20b08b){const _0x401859=_0x58e22d,_0x22d9cc=this;this['sequence'][_0x401859('0x1f')](function(){const _0xcb8cd4=_0x401859;return _0x22d9cc[_0xcb8cd4('0x1d')][_0xcb8cd4('0x21')](_0x5b67d4,_0x2c40a9,_0x20b08b)['then'](function(){const _0x204029=_0xcb8cd4;logger[_0x204029('0x4')](_0x204029('0x17'),_0x2c40a9,_0x20b08b,_0x5b67d4);})[_0xcb8cd4('0x23')](function(_0x1a5a61){const _0x10f2a9=_0xcb8cd4;logger[_0x10f2a9('0x4')](util['inspect'](_0x1a5a61,{'showHidden':![],'depth':null}));});});},Migration[_0x58e22d('0xe')][_0x58e22d('0x19')]=function(_0x8b75a2){const _0x3e564d=_0x58e22d;this['sequence'][_0x3e564d('0x1f')](function(){return _0x8b75a2();});},module['exports']={'up':function(_0x18b46a,_0x43ae5d){return new Promise(function(_0x4abe2b){const _0x508478=a942_0x447d,_0x21445b=new Migration(_0x18b46a);_0x21445b[_0x508478('0x2d')]('chat_websites',_0x508478('0x14'),{'type':_0x43ae5d[_0x508478('0x31')],'defaultValue':'alternate'}),_0x21445b['addColumn'](_0x508478('0xb'),'defaultTitle',{'type':_0x43ae5d[_0x508478('0x31')]}),_0x21445b[_0x508478('0x2d')](_0x508478('0xb'),_0x508478('0x15'),{'type':_0x43ae5d[_0x508478('0x1c')]}),_0x21445b[_0x508478('0x2d')](_0x508478('0xb'),_0x508478('0xf'),{'type':_0x43ae5d[_0x508478('0x9')],'defaultValue':![]}),_0x21445b[_0x508478('0x2d')](_0x508478('0x2b'),_0x508478('0x18'),{'type':_0x43ae5d[_0x508478('0x13')]}),_0x21445b[_0x508478('0xc')](_0x508478('0x6')),_0x21445b['addColumn']('fax_applications',_0x508478('0x18'),{'type':_0x43ae5d[_0x508478('0x13')]}),_0x21445b['query'](_0x508478('0x30')),_0x21445b['addColumn'](_0x508478('0x20'),_0x508478('0x18'),{'type':_0x43ae5d[_0x508478('0x13')]}),_0x21445b[_0x508478('0xc')]('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'),_0x21445b['addColumn'](_0x508478('0x16'),'TagId',{'type':_0x43ae5d[_0x508478('0x13')]}),_0x21445b[_0x508478('0xc')]('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'),_0x21445b[_0x508478('0x2d')](_0x508478('0x10'),_0x508478('0x18'),{'type':_0x43ae5d[_0x508478('0x13')]}),_0x21445b[_0x508478('0xc')](_0x508478('0x1')),_0x21445b[_0x508478('0xc')](_0x508478('0x5')),_0x21445b[_0x508478('0x2d')](_0x508478('0x12'),_0x508478('0xa'),{'type':_0x43ae5d['STRING']}),_0x21445b[_0x508478('0x2d')](_0x508478('0x1a'),_0x508478('0x2a'),{'type':_0x43ae5d['STRING'],'allowNull':![],'defaultValue':''}),_0x21445b[_0x508478('0x8')](_0x508478('0x3'),_0x508478('0x29'),{'type':_0x43ae5d[_0x508478('0x31')],'allowNull':![]}),_0x21445b[_0x508478('0x19')](_0x4abe2b);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.64.js b/server/migrations/2.0.64.js index 605fccf..95abacd 100644 --- a/server/migrations/2.0.64.js +++ b/server/migrations/2.0.64.js @@ -1 +1 @@ -const a943_0x2e00=['final','stringify','finally','changeColumn','lastdata','Added\x20column\x20%s\x20to\x20%s','migration','addColumn','inspect','enqueue','tail','analytics_report_fields','query\x20%s','table\x20dropped\x20%s','sequence','exports','TEXT','then','BOOLEAN','report_call','../config/logger','query','addIndex\x20%s\x20%s\x20%s','info','uniqueid','Changed\x20column\x20%s\x20in\x20table\x20%s','renameColumn','STRING','removeIndex','removeColumn','removeIndex\x20%s\x20%s','dropTable','addIndex','join','sequelize','prototype','util','chat_websites','catch','queryInterface','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x41da77,_0x2e0099){const _0x50aefd=function(_0x2ea792){while(--_0x2ea792){_0x41da77['push'](_0x41da77['shift']());}};_0x50aefd(++_0x2e0099);}(a943_0x2e00,0x185));const a943_0x50ae=function(_0x41da77,_0x2e0099){_0x41da77=_0x41da77-0x0;let _0x50aefd=a943_0x2e00[_0x41da77];return _0x50aefd;};const _0x3dff22=a943_0x50ae;'use strict';const util=require(_0x3dff22('0x10')),logger=require(_0x3dff22('0x0'))(_0x3dff22('0x1b')),Sequence=function(){};Sequence[_0x3dff22('0xf')]['enqueue']=function(_0x2ea792){const _0x5899de=_0x3dff22;this[_0x5899de('0x1f')]=this[_0x5899de('0x1f')]?this[_0x5899de('0x1f')][_0x5899de('0x17')](_0x2ea792):_0x2ea792();};const Migration=function(_0x523b36){const _0x4c07d2=_0x3dff22;this[_0x4c07d2('0x13')]=_0x523b36,this['sequence']=new Sequence();};Migration[_0x3dff22('0xf')][_0x3dff22('0x18')]=function(_0x5dbb42,_0x404a0b,_0x5b92c0){const _0x6e8ace=_0x3dff22,_0x3893f5=this;this[_0x6e8ace('0x23')][_0x6e8ace('0x1e')](function(){const _0x34da10=_0x6e8ace;return _0x3893f5['queryInterface'][_0x34da10('0x18')](_0x5dbb42,_0x404a0b,_0x5b92c0)['then'](function(){const _0x460259=_0x34da10;logger[_0x460259('0x3')](_0x460259('0x5'),_0x404a0b,_0x5dbb42);})[_0x34da10('0x12')](function(_0x27e489){const _0x2240d5=_0x34da10;logger['info'](JSON[_0x2240d5('0x16')](_0x27e489));});});},Migration[_0x3dff22('0xf')][_0x3dff22('0x1c')]=function(_0x340488,_0x5138c3,_0x2af4f){const _0x522ea3=_0x3dff22,_0x6d513=this;this[_0x522ea3('0x23')][_0x522ea3('0x1e')](function(){const _0x8d073a=_0x522ea3;return _0x6d513[_0x8d073a('0x13')]['addColumn'](_0x340488,_0x5138c3,_0x2af4f)[_0x8d073a('0x26')](function(){const _0x54e813=_0x8d073a;logger['info'](_0x54e813('0x1a'),_0x5138c3,_0x340488);})[_0x8d073a('0x12')](function(_0x20180e){const _0x4e24ce=_0x8d073a;logger[_0x4e24ce('0x3')](JSON[_0x4e24ce('0x16')](_0x20180e));});});},Migration[_0x3dff22('0xf')][_0x3dff22('0xb')]=function(_0x11db93){const _0x4bd876=_0x3dff22,_0x4457cf=this;this['sequence'][_0x4bd876('0x1e')](function(){const _0x18c7fa=_0x4bd876;return _0x4457cf[_0x18c7fa('0x13')]['dropTable'](_0x11db93,{'force':!![]})['then'](function(){const _0x3554b2=_0x18c7fa;logger[_0x3554b2('0x3')](_0x3554b2('0x22'),_0x11db93);})[_0x18c7fa('0x12')](function(_0x57724f){const _0x1dbac3=_0x18c7fa;logger[_0x1dbac3('0x3')](JSON['stringify'](_0x57724f));});});},Migration[_0x3dff22('0xf')][_0x3dff22('0xc')]=function(_0xeb6bb2,_0x1190f,_0x506740){const _0x4c5d0f=_0x3dff22,_0x6d8a16=this;this[_0x4c5d0f('0x23')][_0x4c5d0f('0x1e')](function(){const _0x505143=_0x4c5d0f;return _0x6d8a16[_0x505143('0x13')]['addIndex'](_0xeb6bb2,_0x1190f,{'indexName':_0x506740})[_0x505143('0x26')](function(){const _0x2e4dc8=_0x505143;logger[_0x2e4dc8('0x3')](_0x2e4dc8('0x2'),_0xeb6bb2,_0x1190f[_0x2e4dc8('0xd')](','),_0x506740);})['catch'](function(_0x338f7e){const _0x532704=_0x505143;logger[_0x532704('0x3')](JSON[_0x532704('0x16')](_0x338f7e));});});},Migration['prototype']['removeIndex']=function(_0x3d470b,_0x29e656){const _0x38762b=_0x3dff22,_0xd3debe=this;this['sequence'][_0x38762b('0x1e')](function(){const _0x30270e=_0x38762b;return _0xd3debe['queryInterface'][_0x30270e('0x8')](_0x3d470b,_0x29e656)['then'](function(){const _0x38fe62=_0x30270e;logger['info'](_0x38fe62('0xa'),_0x3d470b,_0x29e656);})[_0x30270e('0x12')](function(_0x235409){const _0x2c0b2f=_0x30270e;logger[_0x2c0b2f('0x3')](JSON[_0x2c0b2f('0x16')](_0x235409));});});},Migration[_0x3dff22('0xf')]['query']=function(_0x10b52e){const _0x33c610=_0x3dff22,_0x472b81=this;this[_0x33c610('0x23')][_0x33c610('0x1e')](function(){const _0x509672=_0x33c610;return _0x472b81[_0x509672('0x13')][_0x509672('0xe')][_0x509672('0x1')](_0x10b52e)['then'](function(){const _0x5e2b11=_0x509672;logger[_0x5e2b11('0x3')](_0x5e2b11('0x21'),_0x10b52e);})['catch'](function(_0x1214b6){const _0x2ac16b=_0x509672;logger[_0x2ac16b('0x3')](JSON['stringify'](_0x1214b6));});});},Migration['prototype'][_0x3dff22('0x9')]=function(_0x443492,_0x24c455){const _0x590b2e=_0x3dff22,_0x3a726a=this;this['sequence'][_0x590b2e('0x1e')](function(){const _0x839a6f=_0x590b2e;return _0x3a726a['queryInterface'][_0x839a6f('0x9')](_0x443492,_0x24c455)[_0x839a6f('0x26')](function(){const _0x3f3ce8=_0x839a6f;logger[_0x3f3ce8('0x3')]('Removed\x20column\x20%s\x20from\x20%s',_0x24c455,_0x443492);})['catch'](function(_0x1c2ec2){const _0x4c4578=_0x839a6f;logger[_0x4c4578('0x3')](util[_0x4c4578('0x1d')](_0x1c2ec2,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3dff22('0x6')]=function(_0x5936e0,_0x16b99f,_0x46bfbf){const _0x24093b=_0x3dff22,_0x5ca967=this;this['sequence'][_0x24093b('0x1e')](function(){const _0x38c4a7=_0x24093b;return _0x5ca967[_0x38c4a7('0x13')][_0x38c4a7('0x6')](_0x5936e0,_0x16b99f,_0x46bfbf)[_0x38c4a7('0x26')](function(){const _0x13fb09=_0x38c4a7;logger[_0x13fb09('0x3')](_0x13fb09('0x14'),_0x16b99f,_0x46bfbf,_0x5936e0);})['catch'](function(_0x3dadff){const _0x39ffc1=_0x38c4a7;logger[_0x39ffc1('0x3')](util[_0x39ffc1('0x1d')](_0x3dadff,{'showHidden':![],'depth':null}));});});},Migration[_0x3dff22('0xf')][_0x3dff22('0x15')]=function(_0x1e61a6){const _0x2ffbab=_0x3dff22;this[_0x2ffbab('0x23')][_0x2ffbab('0x1e')](function(){return _0x1e61a6();});},module[_0x3dff22('0x24')]={'up':function(_0x1aef6e,_0x3748fb){return new Promise(function(_0x26ddbb){const _0x1b7dd4=a943_0x50ae,_0x46e5b1=new Migration(_0x1aef6e);_0x46e5b1[_0x1b7dd4('0x1c')]('users','phoneBarEnableVideoRecording',{'type':_0x3748fb[_0x1b7dd4('0x27')],'defaultValue':![]}),_0x46e5b1[_0x1b7dd4('0x18')](_0x1b7dd4('0x28'),_0x1b7dd4('0x19'),{'type':_0x3748fb[_0x1b7dd4('0x25')]}),_0x46e5b1[_0x1b7dd4('0x1c')](_0x1b7dd4('0x11'),'customerAlias',{'type':_0x3748fb[_0x1b7dd4('0x7')],'defaultValue':'Me'}),_0x46e5b1[_0x1b7dd4('0x18')](_0x1b7dd4('0x20'),'field',{'type':_0x3748fb['TEXT'],'allowNull':![]}),_0x46e5b1[_0x1b7dd4('0x8')](_0x1b7dd4('0x28'),_0x1b7dd4('0x4')),_0x46e5b1[_0x1b7dd4('0x15')](_0x26ddbb);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.65.js b/server/migrations/2.0.65.js index bf8da0f..23a573f 100644 --- a/server/migrations/2.0.65.js +++ b/server/migrations/2.0.65.js @@ -1 +1 @@ -const a944_0x2418=['dialRandomLastDigitCallerIdNumber','addIndex','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;','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(4)','changeColumn','table\x20dropped\x20%s','dialCutDigit','ALTER\x20TABLE\x20tmp_tools_tags\x20ADD\x20COLUMN\x20contact_id\x20INT\x20NULL','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;','campaigns','exports','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;','queryInterface','sequence','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(7)','removeIndex','cm_contacts','teams','dropTable','inspect','prototype','Removed\x20column\x20%s\x20from\x20%s','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(5)','final','removeColumn','info','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(9)','../config/logger','util','catch','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(6)','stringify','CREATE\x20TABLE\x20ints(i\x20int(11)\x20DEFAULT\x20NULL,UNIQUE\x20KEY\x20i_UNIQUE\x20(i))\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8','enqueue','then','INTEGER','UNSIGNED','addColumn','finally','query','tail','voice_queues','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(8)','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(1)','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(3)','renameColumn'];(function(_0x4c250e,_0x2418bf){const _0x5df7c8=function(_0x234628){while(--_0x234628){_0x4c250e['push'](_0x4c250e['shift']());}};_0x5df7c8(++_0x2418bf);}(a944_0x2418,0x10c));const a944_0x5df7=function(_0x4c250e,_0x2418bf){_0x4c250e=_0x4c250e-0x0;let _0x5df7c8=a944_0x2418[_0x4c250e];return _0x5df7c8;};const _0x1a9732=a944_0x5df7;'use strict';const util=require(_0x1a9732('0x24')),logger=require(_0x1a9732('0x23'))('migration'),Sequence=function(){};Sequence[_0x1a9732('0x1c')][_0x1a9732('0x29')]=function(_0x234628){const _0x509be1=_0x1a9732;this[_0x509be1('0x2')]=this[_0x509be1('0x2')]?this[_0x509be1('0x2')][_0x509be1('0x0')](_0x234628):_0x234628();};const Migration=function(_0x5375a0){const _0x304231=_0x1a9732;this[_0x304231('0x14')]=_0x5375a0,this['sequence']=new Sequence();};Migration['prototype'][_0x1a9732('0xc')]=function(_0x55f535,_0x1782bf,_0x53a6c1){const _0x4bdd09=_0x1a9732,_0x466b4e=this;this[_0x4bdd09('0x15')][_0x4bdd09('0x29')](function(){const _0xeff9bf=_0x4bdd09;return _0x466b4e[_0xeff9bf('0x14')][_0xeff9bf('0xc')](_0x55f535,_0x1782bf,_0x53a6c1)[_0xeff9bf('0x2a')](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1782bf,_0x55f535);})[_0xeff9bf('0x25')](function(_0x23d8df){const _0x5a1fd9=_0xeff9bf;logger[_0x5a1fd9('0x21')](JSON[_0x5a1fd9('0x27')](_0x23d8df));});});},Migration[_0x1a9732('0x1c')]['addColumn']=function(_0x3f53ce,_0x3efa42,_0x2546b4){const _0x2dc5db=_0x1a9732,_0x1790c4=this;this[_0x2dc5db('0x15')][_0x2dc5db('0x29')](function(){const _0x4f3bd6=_0x2dc5db;return _0x1790c4['queryInterface'][_0x4f3bd6('0x2d')](_0x3f53ce,_0x3efa42,_0x2546b4)[_0x4f3bd6('0x2a')](function(){const _0x19fcd9=_0x4f3bd6;logger[_0x19fcd9('0x21')]('Added\x20column\x20%s\x20to\x20%s',_0x3efa42,_0x3f53ce);})[_0x4f3bd6('0x25')](function(_0x1cfad0){const _0x5d982e=_0x4f3bd6;logger[_0x5d982e('0x21')](JSON[_0x5d982e('0x27')](_0x1cfad0));});});},Migration['prototype'][_0x1a9732('0x1a')]=function(_0x2962b8){const _0x442a60=this;this['sequence']['enqueue'](function(){const _0x58a5e4=a944_0x5df7;return _0x442a60[_0x58a5e4('0x14')]['dropTable'](_0x2962b8,{'force':!![]})['then'](function(){const _0x146e3d=_0x58a5e4;logger[_0x146e3d('0x21')](_0x146e3d('0xd'),_0x2962b8);})['catch'](function(_0x2275ff){const _0x1789ce=_0x58a5e4;logger[_0x1789ce('0x21')](JSON[_0x1789ce('0x27')](_0x2275ff));});});},Migration[_0x1a9732('0x1c')][_0x1a9732('0x9')]=function(_0xef75f,_0x2635ac,_0x22d3cc){const _0x4e3b24=_0x1a9732,_0x4834ad=this;this[_0x4e3b24('0x15')][_0x4e3b24('0x29')](function(){const _0x5057ba=_0x4e3b24;return _0x4834ad[_0x5057ba('0x14')][_0x5057ba('0x9')](_0xef75f,_0x2635ac,{'indexName':_0x22d3cc})[_0x5057ba('0x2a')](function(){const _0x25407a=_0x5057ba;logger[_0x25407a('0x21')]('addIndex\x20%s\x20%s\x20%s',_0xef75f,_0x2635ac['join'](','),_0x22d3cc);})['catch'](function(_0xc0c9b2){const _0x265197=_0x5057ba;logger[_0x265197('0x21')](JSON[_0x265197('0x27')](_0xc0c9b2));});});},Migration[_0x1a9732('0x1c')][_0x1a9732('0x17')]=function(_0x3cde5d,_0x26d05b){const _0x402d01=_0x1a9732,_0x5bb333=this;this[_0x402d01('0x15')][_0x402d01('0x29')](function(){const _0xe8f495=_0x402d01;return _0x5bb333[_0xe8f495('0x14')][_0xe8f495('0x17')](_0x3cde5d,_0x26d05b)[_0xe8f495('0x2a')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x3cde5d,_0x26d05b);})[_0xe8f495('0x25')](function(_0x3fe278){const _0x2b749c=_0xe8f495;logger[_0x2b749c('0x21')](JSON[_0x2b749c('0x27')](_0x3fe278));});});},Migration[_0x1a9732('0x1c')][_0x1a9732('0x1')]=function(_0x3c410f){const _0x1a1270=_0x1a9732,_0x4a3ad3=this;this[_0x1a1270('0x15')][_0x1a1270('0x29')](function(){const _0xee4e39=_0x1a1270;return _0x4a3ad3[_0xee4e39('0x14')]['sequelize'][_0xee4e39('0x1')](_0x3c410f)[_0xee4e39('0x2a')](function(){const _0xb12f70=_0xee4e39;logger[_0xb12f70('0x21')]('query\x20%s',_0x3c410f);})[_0xee4e39('0x25')](function(_0x10d5a4){const _0x2c74fc=_0xee4e39;logger[_0x2c74fc('0x21')](JSON[_0x2c74fc('0x27')](_0x10d5a4));});});},Migration[_0x1a9732('0x1c')][_0x1a9732('0x20')]=function(_0x11639c,_0x5a6223){const _0x15039d=_0x1a9732,_0x372aba=this;this[_0x15039d('0x15')]['enqueue'](function(){const _0x1a8e53=_0x15039d;return _0x372aba[_0x1a8e53('0x14')][_0x1a8e53('0x20')](_0x11639c,_0x5a6223)['then'](function(){const _0x237734=_0x1a8e53;logger[_0x237734('0x21')](_0x237734('0x1d'),_0x5a6223,_0x11639c);})[_0x1a8e53('0x25')](function(_0x12ca97){const _0x371b55=_0x1a8e53;logger[_0x371b55('0x21')](util[_0x371b55('0x1b')](_0x12ca97,{'showHidden':![],'depth':null}));});});},Migration[_0x1a9732('0x1c')][_0x1a9732('0x7')]=function(_0x580444,_0x489065,_0x5c78e5){const _0x3b73c8=_0x1a9732,_0x9dba97=this;this[_0x3b73c8('0x15')][_0x3b73c8('0x29')](function(){const _0x358e53=_0x3b73c8;return _0x9dba97['queryInterface'][_0x358e53('0x7')](_0x580444,_0x489065,_0x5c78e5)[_0x358e53('0x2a')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x489065,_0x5c78e5,_0x580444);})[_0x358e53('0x25')](function(_0x5074d3){const _0x203cfc=_0x358e53;logger[_0x203cfc('0x21')](util[_0x203cfc('0x1b')](_0x5074d3,{'showHidden':![],'depth':null}));});});},Migration[_0x1a9732('0x1c')][_0x1a9732('0x1f')]=function(_0x5b58bb){const _0x516278=_0x1a9732;this['sequence'][_0x516278('0x29')](function(){return _0x5b58bb();});},module[_0x1a9732('0x12')]={'up':function(_0x1b2793,_0x3d4f9c){return new Promise(function(_0x243d43){const _0x29b802=a944_0x5df7,_0x546e00=new Migration(_0x1b2793);_0x546e00[_0x29b802('0x2d')](_0x29b802('0x3'),_0x29b802('0x8'),{'type':_0x3d4f9c[_0x29b802('0x2b')](0x3)[_0x29b802('0x2c')],'defaultValue':0x0}),_0x546e00['addColumn'](_0x29b802('0x3'),_0x29b802('0xe'),{'type':_0x3d4f9c[_0x29b802('0x2b')](0x3)[_0x29b802('0x2c')],'defaultValue':0x0}),_0x546e00[_0x29b802('0x2d')](_0x29b802('0x11'),_0x29b802('0x8'),{'type':_0x3d4f9c['INTEGER'](0x3)['UNSIGNED'],'defaultValue':0x0}),_0x546e00[_0x29b802('0x2d')](_0x29b802('0x11'),_0x29b802('0xe'),{'type':_0x3d4f9c[_0x29b802('0x2b')](0x3)[_0x29b802('0x2c')],'defaultValue':0x0}),_0x546e00[_0x29b802('0x2d')](_0x29b802('0x18'),_0x29b802('0x19'),{'type':_0x3d4f9c['STRING']}),_0x546e00[_0x29b802('0x1')](_0x29b802('0xa')),_0x546e00[_0x29b802('0x1')](_0x29b802('0x13')),_0x546e00[_0x29b802('0x1')](_0x29b802('0x28')),_0x546e00[_0x29b802('0x1')]('INSERT\x20INTO\x20ints(i)\x20VALUES\x20(0)'),_0x546e00[_0x29b802('0x1')](_0x29b802('0x5')),_0x546e00['query']('INSERT\x20INTO\x20ints(i)\x20VALUES\x20(2)'),_0x546e00[_0x29b802('0x1')](_0x29b802('0x6')),_0x546e00[_0x29b802('0x1')](_0x29b802('0xb')),_0x546e00[_0x29b802('0x1')](_0x29b802('0x1e')),_0x546e00[_0x29b802('0x1')](_0x29b802('0x26')),_0x546e00[_0x29b802('0x1')](_0x29b802('0x16')),_0x546e00[_0x29b802('0x1')](_0x29b802('0x4')),_0x546e00[_0x29b802('0x1')](_0x29b802('0x22')),_0x546e00['query'](_0x29b802('0xf')),_0x546e00['query'](_0x29b802('0x10')),_0x546e00[_0x29b802('0x1')]('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;'),_0x546e00[_0x29b802('0x1f')](_0x243d43);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.66.js b/server/migrations/2.0.66.js index 1b2a779..61b65d8 100644 --- a/server/migrations/2.0.66.js +++ b/server/migrations/2.0.66.js @@ -1 +1 @@ -const a945_0x2516=['splitSizeCsv','finally','field','stringify','final','info','prototype','query\x20%s','addIndex','viber','TEXT','settings','migration','analytics_report_fields','removeIndex\x20%s\x20%s','BOOLEAN','util','tail','tools_schedules','then','STRING','../config/logger','dropTable','query','agentTransfer','queryInterface','queueTransferTimeout','split','changeColumn','Removed\x20column\x20%s\x20from\x20%s','renameColumn','mail_accounts','catch','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','splitSizePdf','removeIndex','users','table\x20dropped\x20%s','sequence','removeColumn','addColumn','join','subject','cm_contacts','INTEGER','inspect','enqueue','\x20CHARSET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','addIndex\x20%s\x20%s\x20%s','agentTransferTimeout','bcc'];(function(_0x4bfe53,_0x2516ba){const _0x2d17cf=function(_0x454802){while(--_0x454802){_0x4bfe53['push'](_0x4bfe53['shift']());}};_0x2d17cf(++_0x2516ba);}(a945_0x2516,0xa1));const a945_0x2d17=function(_0x4bfe53,_0x2516ba){_0x4bfe53=_0x4bfe53-0x0;let _0x2d17cf=a945_0x2516[_0x4bfe53];return _0x2d17cf;};const _0x2df3cc=a945_0x2d17;'use strict';const util=require(_0x2df3cc('0x8')),logger=require(_0x2df3cc('0xd'))(_0x2df3cc('0x4')),Sequence=function(){};Sequence[_0x2df3cc('0x31')][_0x2df3cc('0x26')]=function(_0x454802){const _0x5a1449=_0x2df3cc;this['tail']=this['tail']?this[_0x5a1449('0x9')][_0x5a1449('0x2c')](_0x454802):_0x454802();};const Migration=function(_0x46dfd4){const _0x1d7dd7=_0x2df3cc;this['queryInterface']=_0x46dfd4,this[_0x1d7dd7('0x1e')]=new Sequence();};Migration[_0x2df3cc('0x31')]['changeColumn']=function(_0x5b740e,_0x16d8b9,_0x225199){const _0x7f18ec=_0x2df3cc,_0xf50e56=this;this[_0x7f18ec('0x1e')]['enqueue'](function(){const _0x47e59d=_0x7f18ec;return _0xf50e56[_0x47e59d('0x11')][_0x47e59d('0x14')](_0x5b740e,_0x16d8b9,_0x225199)['then'](function(){const _0x5c5016=_0x47e59d;logger[_0x5c5016('0x30')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x16d8b9,_0x5b740e);})['catch'](function(_0xc7240a){const _0x3e1aba=_0x47e59d;logger[_0x3e1aba('0x30')](JSON[_0x3e1aba('0x2e')](_0xc7240a));});});},Migration[_0x2df3cc('0x31')]['addColumn']=function(_0x545ec1,_0x1abd25,_0x38e348){const _0x4f142d=_0x2df3cc,_0x261326=this;this[_0x4f142d('0x1e')][_0x4f142d('0x26')](function(){const _0x52c16e=_0x4f142d;return _0x261326[_0x52c16e('0x11')]['addColumn'](_0x545ec1,_0x1abd25,_0x38e348)[_0x52c16e('0xb')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x1abd25,_0x545ec1);})[_0x52c16e('0x18')](function(_0x227ff1){const _0xd489ea=_0x52c16e;logger[_0xd489ea('0x30')](JSON[_0xd489ea('0x2e')](_0x227ff1));});});},Migration[_0x2df3cc('0x31')][_0x2df3cc('0xe')]=function(_0x264922){const _0x4829bb=_0x2df3cc,_0x1030ac=this;this[_0x4829bb('0x1e')][_0x4829bb('0x26')](function(){const _0x47fda5=_0x4829bb;return _0x1030ac[_0x47fda5('0x11')][_0x47fda5('0xe')](_0x264922,{'force':!![]})[_0x47fda5('0xb')](function(){const _0x20b4b6=_0x47fda5;logger[_0x20b4b6('0x30')](_0x20b4b6('0x1d'),_0x264922);})['catch'](function(_0x231f29){const _0x31b35a=_0x47fda5;logger[_0x31b35a('0x30')](JSON[_0x31b35a('0x2e')](_0x231f29));});});},Migration[_0x2df3cc('0x31')][_0x2df3cc('0x0')]=function(_0x3e2a2d,_0x4a2139,_0x5255ce){const _0x448916=_0x2df3cc,_0x4f6901=this;this[_0x448916('0x1e')][_0x448916('0x26')](function(){const _0x3ad01d=_0x448916;return _0x4f6901[_0x3ad01d('0x11')][_0x3ad01d('0x0')](_0x3e2a2d,_0x4a2139,{'indexName':_0x5255ce})['then'](function(){const _0x1ab25c=_0x3ad01d;logger['info'](_0x1ab25c('0x28'),_0x3e2a2d,_0x4a2139[_0x1ab25c('0x21')](','),_0x5255ce);})['catch'](function(_0xf8d073){const _0x2c9a44=_0x3ad01d;logger[_0x2c9a44('0x30')](JSON[_0x2c9a44('0x2e')](_0xf8d073));});});},Migration[_0x2df3cc('0x31')][_0x2df3cc('0x1b')]=function(_0x185bdb,_0x3eff44){const _0x35fcce=_0x2df3cc,_0x4ee0c5=this;this[_0x35fcce('0x1e')]['enqueue'](function(){const _0x47eaa1=_0x35fcce;return _0x4ee0c5[_0x47eaa1('0x11')][_0x47eaa1('0x1b')](_0x185bdb,_0x3eff44)[_0x47eaa1('0xb')](function(){const _0x4f5552=_0x47eaa1;logger[_0x4f5552('0x30')](_0x4f5552('0x6'),_0x185bdb,_0x3eff44);})[_0x47eaa1('0x18')](function(_0x32e6ef){const _0x51fd31=_0x47eaa1;logger[_0x51fd31('0x30')](JSON[_0x51fd31('0x2e')](_0x32e6ef));});});},Migration[_0x2df3cc('0x31')][_0x2df3cc('0xf')]=function(_0x362b53){const _0x41b711=_0x2df3cc,_0x215a8f=this;this[_0x41b711('0x1e')]['enqueue'](function(){const _0x3faf0b=_0x41b711;return _0x215a8f['queryInterface']['sequelize']['query'](_0x362b53)[_0x3faf0b('0xb')](function(){const _0x2abf38=_0x3faf0b;logger[_0x2abf38('0x30')](_0x2abf38('0x32'),_0x362b53);})[_0x3faf0b('0x18')](function(_0x2f6bfe){const _0x5cf7fa=_0x3faf0b;logger[_0x5cf7fa('0x30')](JSON[_0x5cf7fa('0x2e')](_0x2f6bfe));});});},Migration[_0x2df3cc('0x31')][_0x2df3cc('0x1f')]=function(_0x17e551,_0x8327bd){const _0x3f566e=_0x2df3cc,_0xb10663=this;this[_0x3f566e('0x1e')][_0x3f566e('0x26')](function(){const _0x4b0d90=_0x3f566e;return _0xb10663[_0x4b0d90('0x11')][_0x4b0d90('0x1f')](_0x17e551,_0x8327bd)[_0x4b0d90('0xb')](function(){const _0x5f48f6=_0x4b0d90;logger['info'](_0x5f48f6('0x15'),_0x8327bd,_0x17e551);})['catch'](function(_0x5e79d6){const _0x5d0c2f=_0x4b0d90;logger[_0x5d0c2f('0x30')](util['inspect'](_0x5e79d6,{'showHidden':![],'depth':null}));});});},Migration[_0x2df3cc('0x31')][_0x2df3cc('0x16')]=function(_0x1576e6,_0x51492b,_0x26a7e1){const _0x10571a=_0x2df3cc,_0x33f49c=this;this[_0x10571a('0x1e')][_0x10571a('0x26')](function(){const _0x111272=_0x10571a;return _0x33f49c[_0x111272('0x11')][_0x111272('0x16')](_0x1576e6,_0x51492b,_0x26a7e1)[_0x111272('0xb')](function(){const _0xd91afb=_0x111272;logger[_0xd91afb('0x30')](_0xd91afb('0x19'),_0x51492b,_0x26a7e1,_0x1576e6);})[_0x111272('0x18')](function(_0x8997f4){const _0x5ee4fb=_0x111272;logger[_0x5ee4fb('0x30')](util[_0x5ee4fb('0x25')](_0x8997f4,{'showHidden':![],'depth':null}));});});},Migration[_0x2df3cc('0x31')][_0x2df3cc('0x2f')]=function(_0x8e9f6e){const _0x322b81=_0x2df3cc;this[_0x322b81('0x1e')][_0x322b81('0x26')](function(){return _0x8e9f6e();});},module['exports']={'up':function(_0x9da96a,_0x56bd19){return new Promise(function(_0xa74376){const _0x36d29e=a945_0x2d17,_0x10918f=new Migration(_0x9da96a);_0x10918f['changeColumn'](_0x36d29e('0x5'),_0x36d29e('0x2d'),{'type':_0x56bd19[_0x36d29e('0x2')]}),_0x10918f['addColumn'](_0x36d29e('0xa'),'cc',{'type':_0x56bd19[_0x36d29e('0x2')]}),_0x10918f[_0x36d29e('0x20')](_0x36d29e('0xa'),_0x36d29e('0x2a'),{'type':_0x56bd19[_0x36d29e('0x2')]}),_0x10918f['addColumn'](_0x36d29e('0x3'),_0x36d29e('0x13'),{'type':_0x56bd19['BOOLEAN'],'defaultValue':!![]}),_0x10918f[_0x36d29e('0x20')](_0x36d29e('0x3'),_0x36d29e('0x2b'),{'type':_0x56bd19[_0x36d29e('0x24')],'defaultValue':0x1388}),_0x10918f[_0x36d29e('0x20')](_0x36d29e('0x3'),_0x36d29e('0x1a'),{'type':_0x56bd19[_0x36d29e('0x24')],'defaultValue':0x3e8}),_0x10918f['addColumn'](_0x36d29e('0x3'),'splitSizeXlsx',{'type':_0x56bd19[_0x36d29e('0x24')],'defaultValue':0x1388}),_0x10918f[_0x36d29e('0x20')](_0x36d29e('0x17'),'queueTransfer',{'type':_0x56bd19[_0x36d29e('0x7')],'defaultValue':![]}),_0x10918f['addColumn']('mail_accounts',_0x36d29e('0x12'),{'type':_0x56bd19[_0x36d29e('0x24')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x10918f[_0x36d29e('0x20')](_0x36d29e('0x17'),_0x36d29e('0x10'),{'type':_0x56bd19[_0x36d29e('0x7')],'defaultValue':![]}),_0x10918f['addColumn']('mail_accounts',_0x36d29e('0x29'),{'type':_0x56bd19[_0x36d29e('0x24')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x10918f['addColumn'](_0x36d29e('0x1c'),'phoneBarPrefixRequired',{'type':_0x56bd19[_0x36d29e('0x7')],'defaultValue':![]}),_0x10918f[_0x36d29e('0x14')]('mail_interactions',_0x36d29e('0x22'),{'type':_0x56bd19['TEXT']('')+'\x20CHARSET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci'}),_0x10918f[_0x36d29e('0x14')]('mail_interactions','lastMsgBody',{'type':_0x56bd19[_0x36d29e('0x2')]('long')+_0x36d29e('0x27')}),_0x10918f['addColumn'](_0x36d29e('0x23'),_0x36d29e('0x1'),{'type':_0x56bd19[_0x36d29e('0xc')]}),_0x10918f[_0x36d29e('0x2f')](_0xa74376);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.67.js b/server/migrations/2.0.67.js index 9a6bde2..fb560b8 100644 --- a/server/migrations/2.0.67.js +++ b/server/migrations/2.0.67.js @@ -1 +1 @@ -const a946_0x25e8=['addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','originTo','exports','stringify','sequence','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;','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;','addIndex','queryInterface','tail','catch','dropTable','info','query','query\x20%s','migration','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;','join','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;','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;','inspect','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;','../config/logger','mail_messages','TEXT','renameColumn','enqueue','Removed\x20column\x20%s\x20from\x20%s','table\x20dropped\x20%s','prototype','then','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;','removeColumn','removeIndex\x20%s\x20%s','sequelize','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;','util','removeIndex','final','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;','changeColumn','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;'];(function(_0x173087,_0x25e8bd){const _0x2dd9e2=function(_0x175d29){while(--_0x175d29){_0x173087['push'](_0x173087['shift']());}};_0x2dd9e2(++_0x25e8bd);}(a946_0x25e8,0x91));const a946_0x2dd9=function(_0x173087,_0x25e8bd){_0x173087=_0x173087-0x0;let _0x2dd9e2=a946_0x25e8[_0x173087];return _0x2dd9e2;};const _0x4bdba4=a946_0x2dd9;'use strict';const util=require(_0x4bdba4('0x15')),logger=require(_0x4bdba4('0x7'))(_0x4bdba4('0x0')),Sequence=function(){};Sequence[_0x4bdba4('0xe')][_0x4bdba4('0xb')]=function(_0x175d29){const _0x13eb91=_0x4bdba4;this['tail']=this[_0x13eb91('0x25')]?this['tail']['finally'](_0x175d29):_0x175d29();};const Migration=function(_0x33caf4){const _0x181367=_0x4bdba4;this[_0x181367('0x24')]=_0x33caf4,this[_0x181367('0x20')]=new Sequence();};Migration[_0x4bdba4('0xe')][_0x4bdba4('0x19')]=function(_0xf77bdd,_0x3b8b78,_0x475366){const _0x1bad90=_0x4bdba4,_0x40b31c=this;this[_0x1bad90('0x20')][_0x1bad90('0xb')](function(){const _0x1db83d=_0x1bad90;return _0x40b31c[_0x1db83d('0x24')][_0x1db83d('0x19')](_0xf77bdd,_0x3b8b78,_0x475366)['then'](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3b8b78,_0xf77bdd);})['catch'](function(_0x19f156){const _0x4289d8=_0x1db83d;logger['info'](JSON[_0x4289d8('0x1f')](_0x19f156));});});},Migration[_0x4bdba4('0xe')][_0x4bdba4('0x1b')]=function(_0x106f82,_0xc09f9,_0x1c7d9c){const _0x5a5386=_0x4bdba4,_0x57d8b9=this;this[_0x5a5386('0x20')][_0x5a5386('0xb')](function(){const _0x21aa83=_0x5a5386;return _0x57d8b9[_0x21aa83('0x24')]['addColumn'](_0x106f82,_0xc09f9,_0x1c7d9c)[_0x21aa83('0xf')](function(){const _0x456d8f=_0x21aa83;logger[_0x456d8f('0x28')]('Added\x20column\x20%s\x20to\x20%s',_0xc09f9,_0x106f82);})[_0x21aa83('0x26')](function(_0x6df0f7){const _0x8dd628=_0x21aa83;logger[_0x8dd628('0x28')](JSON[_0x8dd628('0x1f')](_0x6df0f7));});});},Migration[_0x4bdba4('0xe')][_0x4bdba4('0x27')]=function(_0x275804){const _0x2bb4ae=_0x4bdba4,_0x1d7a4a=this;this[_0x2bb4ae('0x20')][_0x2bb4ae('0xb')](function(){const _0x5e6f86=_0x2bb4ae;return _0x1d7a4a['queryInterface'][_0x5e6f86('0x27')](_0x275804,{'force':!![]})[_0x5e6f86('0xf')](function(){const _0x1e5540=_0x5e6f86;logger[_0x1e5540('0x28')](_0x1e5540('0xd'),_0x275804);})['catch'](function(_0x48e231){const _0x29bb9e=_0x5e6f86;logger[_0x29bb9e('0x28')](JSON[_0x29bb9e('0x1f')](_0x48e231));});});},Migration[_0x4bdba4('0xe')][_0x4bdba4('0x23')]=function(_0x49cc8c,_0x152b4a,_0x8efa18){const _0x30db50=_0x4bdba4,_0xb4b520=this;this[_0x30db50('0x20')]['enqueue'](function(){const _0xa25ae7=_0x30db50;return _0xb4b520[_0xa25ae7('0x24')][_0xa25ae7('0x23')](_0x49cc8c,_0x152b4a,{'indexName':_0x8efa18})[_0xa25ae7('0xf')](function(){const _0x5308f6=_0xa25ae7;logger[_0x5308f6('0x28')]('addIndex\x20%s\x20%s\x20%s',_0x49cc8c,_0x152b4a[_0x5308f6('0x2')](','),_0x8efa18);})[_0xa25ae7('0x26')](function(_0x4039e8){const _0x32f811=_0xa25ae7;logger['info'](JSON[_0x32f811('0x1f')](_0x4039e8));});});},Migration[_0x4bdba4('0xe')][_0x4bdba4('0x16')]=function(_0x5e616a,_0x150ccd){const _0x53d89d=_0x4bdba4,_0x337be0=this;this[_0x53d89d('0x20')]['enqueue'](function(){const _0x31d8a0=_0x53d89d;return _0x337be0[_0x31d8a0('0x24')][_0x31d8a0('0x16')](_0x5e616a,_0x150ccd)['then'](function(){const _0x6b9bf5=_0x31d8a0;logger[_0x6b9bf5('0x28')](_0x6b9bf5('0x12'),_0x5e616a,_0x150ccd);})[_0x31d8a0('0x26')](function(_0x4972c5){const _0x5b027d=_0x31d8a0;logger[_0x5b027d('0x28')](JSON[_0x5b027d('0x1f')](_0x4972c5));});});},Migration['prototype']['query']=function(_0x2f7cf0){const _0x3b161d=_0x4bdba4,_0x66d55c=this;this['sequence'][_0x3b161d('0xb')](function(){const _0x4575f3=_0x3b161d;return _0x66d55c[_0x4575f3('0x24')][_0x4575f3('0x13')][_0x4575f3('0x29')](_0x2f7cf0)[_0x4575f3('0xf')](function(){const _0x2291a8=_0x4575f3;logger[_0x2291a8('0x28')](_0x2291a8('0x2a'),_0x2f7cf0);})[_0x4575f3('0x26')](function(_0x30012d){const _0x2b8cdd=_0x4575f3;logger[_0x2b8cdd('0x28')](JSON[_0x2b8cdd('0x1f')](_0x30012d));});});},Migration['prototype'][_0x4bdba4('0x11')]=function(_0x5197bc,_0x5953b3){const _0x5aa295=_0x4bdba4,_0x21d8c8=this;this[_0x5aa295('0x20')][_0x5aa295('0xb')](function(){const _0x345bf9=_0x5aa295;return _0x21d8c8['queryInterface'][_0x345bf9('0x11')](_0x5197bc,_0x5953b3)[_0x345bf9('0xf')](function(){const _0x519a86=_0x345bf9;logger[_0x519a86('0x28')](_0x519a86('0xc'),_0x5953b3,_0x5197bc);})[_0x345bf9('0x26')](function(_0x4b2c4b){const _0x113227=_0x345bf9;logger[_0x113227('0x28')](util[_0x113227('0x5')](_0x4b2c4b,{'showHidden':![],'depth':null}));});});},Migration[_0x4bdba4('0xe')]['renameColumn']=function(_0x5ab5e5,_0x3fb8bb,_0x19fa4b){const _0x1c9bf0=_0x4bdba4,_0x5f1f89=this;this[_0x1c9bf0('0x20')][_0x1c9bf0('0xb')](function(){const _0x2ee8a2=_0x1c9bf0;return _0x5f1f89[_0x2ee8a2('0x24')][_0x2ee8a2('0xa')](_0x5ab5e5,_0x3fb8bb,_0x19fa4b)[_0x2ee8a2('0xf')](function(){const _0x120b4b=_0x2ee8a2;logger['info'](_0x120b4b('0x1c'),_0x3fb8bb,_0x19fa4b,_0x5ab5e5);})['catch'](function(_0x2d83d4){const _0x38930e=_0x2ee8a2;logger[_0x38930e('0x28')](util[_0x38930e('0x5')](_0x2d83d4,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4bdba4('0x17')]=function(_0x587cc3){const _0xc0863f=_0x4bdba4;this[_0xc0863f('0x20')]['enqueue'](function(){return _0x587cc3();});},module[_0x4bdba4('0x1e')]={'up':function(_0x47239c,_0x35950a){return new Promise(function(_0xba055b){const _0x3c9dbc=a946_0x2dd9,_0xfaaf=new Migration(_0x47239c),_0x3d9624='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;';_0xfaaf['query'](_0x3d9624),_0xfaaf['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;'),_0xfaaf[_0x3c9dbc('0x29')](_0x3c9dbc('0x6')),_0xfaaf[_0x3c9dbc('0x29')](_0x3c9dbc('0x1')),_0xfaaf[_0x3c9dbc('0x29')]('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;'),_0xfaaf['query'](_0x3c9dbc('0x1a')),_0xfaaf['query']('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;'),_0xfaaf[_0x3c9dbc('0x29')](_0x3c9dbc('0x14')),_0xfaaf['query'](_0x3c9dbc('0x3')),_0xfaaf[_0x3c9dbc('0x29')](_0x3c9dbc('0x18')),_0xfaaf[_0x3c9dbc('0x29')]('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;'),_0xfaaf['query'](_0x3c9dbc('0x4')),_0xfaaf[_0x3c9dbc('0x29')]('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;'),_0xfaaf[_0x3c9dbc('0x29')]('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;'),_0xfaaf['query'](_0x3c9dbc('0x22')),_0xfaaf['query'](_0x3c9dbc('0x10')),_0xfaaf[_0x3c9dbc('0x29')](_0x3c9dbc('0x21')),_0xfaaf[_0x3c9dbc('0x1b')]('mail_messages',_0x3c9dbc('0x1d'),{'type':_0x35950a[_0x3c9dbc('0x9')]('long')}),_0xfaaf['addColumn'](_0x3c9dbc('0x8'),'originCc',{'type':_0x35950a[_0x3c9dbc('0x9')]('long')}),_0xfaaf['final'](_0xba055b);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.68.js b/server/migrations/2.0.68.js index 09335a2..5372ee7 100644 --- a/server/migrations/2.0.68.js +++ b/server/migrations/2.0.68.js @@ -1 +1 @@ -const a947_0x4ce2=['INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Answer\x20Machine\x27,\x20NOW(),\x20NOW())','addIndex','mapKey','exports','openchannel_accounts','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Not\x20Interested\x27,\x20NOW(),\x20NOW())','stringify','removeIndex\x20%s\x20%s','table\x20dropped\x20%s','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Special\x27,\x20NOW(),\x20NOW())','UPDATE\x20settings\x20SET\x20messagesAlignment=\x27alternate\x27','tail','../config/logger','changeColumn','chat_interactions','dropTable','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Sold\x27,\x20NOW(),\x20NOW())','removeIndex','addIndex\x20%s\x20%s\x20%s','addColumn','messagesAlignment','prototype','settings','migration','removeColumn','then','closeReason','Added\x20column\x20%s\x20to\x20%s','STRING','queryInterface','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','renameColumn','info','inspect','sequence','catch','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Interested\x27,\x20NOW(),\x20NOW())','final'];(function(_0x285dc7,_0x4ce2db){const _0x136a63=function(_0x387d6c){while(--_0x387d6c){_0x285dc7['push'](_0x285dc7['shift']());}};_0x136a63(++_0x4ce2db);}(a947_0x4ce2,0x11a));const a947_0x136a=function(_0x285dc7,_0x4ce2db){_0x285dc7=_0x285dc7-0x0;let _0x136a63=a947_0x4ce2[_0x285dc7];return _0x136a63;};const _0x1cb6c1=a947_0x136a;'use strict';const util=require('util'),logger=require(_0x1cb6c1('0x11'))(_0x1cb6c1('0x1c')),Sequence=function(){};Sequence[_0x1cb6c1('0x1a')][_0x1cb6c1('0x23')]=function(_0x387d6c){const _0x36c262=_0x1cb6c1;this['tail']=this[_0x36c262('0x10')]?this[_0x36c262('0x10')]['finally'](_0x387d6c):_0x387d6c();};const Migration=function(_0x1b2a5f){const _0x2bf292=_0x1cb6c1;this[_0x2bf292('0x22')]=_0x1b2a5f,this['sequence']=new Sequence();};Migration[_0x1cb6c1('0x1a')][_0x1cb6c1('0x12')]=function(_0x27925f,_0x25c720,_0x482c49){const _0x512114=_0x1cb6c1,_0x116db0=this;this[_0x512114('0x1')][_0x512114('0x23')](function(){const _0x1cb22c=_0x512114;return _0x116db0[_0x1cb22c('0x22')][_0x1cb22c('0x12')](_0x27925f,_0x25c720,_0x482c49)[_0x1cb22c('0x1e')](function(){const _0x29d395=_0x1cb22c;logger[_0x29d395('0x28')](_0x29d395('0x24'),_0x25c720,_0x27925f);})[_0x1cb22c('0x2')](function(_0x1fac1d){logger['info'](JSON['stringify'](_0x1fac1d));});});},Migration[_0x1cb6c1('0x1a')][_0x1cb6c1('0x18')]=function(_0x9461f7,_0xf4c6f9,_0x26f5ac){const _0x5faa1e=_0x1cb6c1,_0x2151ad=this;this[_0x5faa1e('0x1')][_0x5faa1e('0x23')](function(){const _0x50f127=_0x5faa1e;return _0x2151ad[_0x50f127('0x22')][_0x50f127('0x18')](_0x9461f7,_0xf4c6f9,_0x26f5ac)['then'](function(){const _0x51af8e=_0x50f127;logger['info'](_0x51af8e('0x20'),_0xf4c6f9,_0x9461f7);})[_0x50f127('0x2')](function(_0x3b963d){const _0xfd6848=_0x50f127;logger[_0xfd6848('0x28')](JSON[_0xfd6848('0xb')](_0x3b963d));});});},Migration[_0x1cb6c1('0x1a')][_0x1cb6c1('0x14')]=function(_0x4be59f){const _0x31e36b=_0x1cb6c1,_0x125853=this;this[_0x31e36b('0x1')][_0x31e36b('0x23')](function(){const _0x1a48b1=_0x31e36b;return _0x125853['queryInterface'][_0x1a48b1('0x14')](_0x4be59f,{'force':!![]})['then'](function(){const _0x28777f=_0x1a48b1;logger[_0x28777f('0x28')](_0x28777f('0xd'),_0x4be59f);})[_0x1a48b1('0x2')](function(_0x5826a8){const _0x14ef3b=_0x1a48b1;logger[_0x14ef3b('0x28')](JSON['stringify'](_0x5826a8));});});},Migration[_0x1cb6c1('0x1a')][_0x1cb6c1('0x6')]=function(_0x39562b,_0x2a90b0,_0x144967){const _0x3591fe=_0x1cb6c1,_0x2fc750=this;this[_0x3591fe('0x1')][_0x3591fe('0x23')](function(){const _0x1a0641=_0x3591fe;return _0x2fc750[_0x1a0641('0x22')][_0x1a0641('0x6')](_0x39562b,_0x2a90b0,{'indexName':_0x144967})[_0x1a0641('0x1e')](function(){const _0x5b6141=_0x1a0641;logger[_0x5b6141('0x28')](_0x5b6141('0x17'),_0x39562b,_0x2a90b0['join'](','),_0x144967);})[_0x1a0641('0x2')](function(_0x5bf324){logger['info'](JSON['stringify'](_0x5bf324));});});},Migration[_0x1cb6c1('0x1a')][_0x1cb6c1('0x16')]=function(_0x3f7151,_0x11e149){const _0x54d9d6=_0x1cb6c1,_0x1d7faf=this;this[_0x54d9d6('0x1')][_0x54d9d6('0x23')](function(){const _0x3c63d0=_0x54d9d6;return _0x1d7faf[_0x3c63d0('0x22')][_0x3c63d0('0x16')](_0x3f7151,_0x11e149)['then'](function(){const _0x3c2de8=_0x3c63d0;logger[_0x3c2de8('0x28')](_0x3c2de8('0xc'),_0x3f7151,_0x11e149);})[_0x3c63d0('0x2')](function(_0x16e321){const _0xea6539=_0x3c63d0;logger[_0xea6539('0x28')](JSON['stringify'](_0x16e321));});});},Migration[_0x1cb6c1('0x1a')]['query']=function(_0x1b48b5){const _0x130419=_0x1cb6c1,_0x20bb13=this;this[_0x130419('0x1')]['enqueue'](function(){const _0x4a1d35=_0x130419;return _0x20bb13[_0x4a1d35('0x22')]['sequelize'][_0x4a1d35('0x25')](_0x1b48b5)[_0x4a1d35('0x1e')](function(){const _0xa217fa=_0x4a1d35;logger[_0xa217fa('0x28')]('query\x20%s',_0x1b48b5);})[_0x4a1d35('0x2')](function(_0x5c131d){const _0x5ebfae=_0x4a1d35;logger[_0x5ebfae('0x28')](JSON[_0x5ebfae('0xb')](_0x5c131d));});});},Migration[_0x1cb6c1('0x1a')][_0x1cb6c1('0x1d')]=function(_0x24d1a5,_0x570b2e){const _0x55921c=_0x1cb6c1,_0x17ba61=this;this[_0x55921c('0x1')][_0x55921c('0x23')](function(){const _0x270462=_0x55921c;return _0x17ba61[_0x270462('0x22')][_0x270462('0x1d')](_0x24d1a5,_0x570b2e)[_0x270462('0x1e')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x570b2e,_0x24d1a5);})[_0x270462('0x2')](function(_0x2c8f98){const _0x4cd02c=_0x270462;logger['info'](util[_0x4cd02c('0x0')](_0x2c8f98,{'showHidden':![],'depth':null}));});});},Migration[_0x1cb6c1('0x1a')]['renameColumn']=function(_0x191f84,_0x22e38d,_0x12b1cf){const _0x3819ff=_0x1cb6c1,_0x463ea5=this;this[_0x3819ff('0x1')][_0x3819ff('0x23')](function(){const _0x3f696b=_0x3819ff;return _0x463ea5[_0x3f696b('0x22')][_0x3f696b('0x27')](_0x191f84,_0x22e38d,_0x12b1cf)[_0x3f696b('0x1e')](function(){const _0x5ac47c=_0x3f696b;logger['info'](_0x5ac47c('0x26'),_0x22e38d,_0x12b1cf,_0x191f84);})[_0x3f696b('0x2')](function(_0x569023){const _0xe2e56=_0x3f696b;logger[_0xe2e56('0x28')](util[_0xe2e56('0x0')](_0x569023,{'showHidden':![],'depth':null}));});});},Migration[_0x1cb6c1('0x1a')][_0x1cb6c1('0x4')]=function(_0x4d7dcc){const _0x200a08=_0x1cb6c1;this[_0x200a08('0x1')][_0x200a08('0x23')](function(){return _0x4d7dcc();});},module[_0x1cb6c1('0x8')]={'up':function(_0x5758ba,_0x37ea87){return new Promise(function(_0x45298f){const _0x41cd59=a947_0x136a,_0x4b3fb1=new Migration(_0x5758ba);_0x4b3fb1[_0x41cd59('0x25')]('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Fax\x27,\x20NOW(),\x20NOW())'),_0x4b3fb1[_0x41cd59('0x25')](_0x41cd59('0x5')),_0x4b3fb1[_0x41cd59('0x25')](_0x41cd59('0x3')),_0x4b3fb1['query'](_0x41cd59('0xa')),_0x4b3fb1[_0x41cd59('0x25')](_0x41cd59('0x15')),_0x4b3fb1[_0x41cd59('0x25')](_0x41cd59('0xe')),_0x4b3fb1[_0x41cd59('0x18')](_0x41cd59('0x9'),_0x41cd59('0x7'),{'type':_0x37ea87[_0x41cd59('0x21')]}),_0x4b3fb1[_0x41cd59('0x18')](_0x41cd59('0x13'),_0x41cd59('0x1f'),{'type':_0x37ea87[_0x41cd59('0x21')]}),_0x4b3fb1[_0x41cd59('0x18')](_0x41cd59('0x1b'),_0x41cd59('0x19'),{'type':_0x37ea87[_0x41cd59('0x21')]}),_0x4b3fb1[_0x41cd59('0x25')](_0x41cd59('0xf')),_0x4b3fb1[_0x41cd59('0x4')](_0x45298f);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.69.js b/server/migrations/2.0.69.js index 70cfc6a..58573d2 100644 --- a/server/migrations/2.0.69.js +++ b/server/migrations/2.0.69.js @@ -1 +1 @@ -const a948_0x31b8=['migration','removeIndex','name','addColumn','util','VoicePrefixId','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','addIndex','query','chat_websites','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','callerIdAll','long','report_jscripty_answers','#fafafa','table\x20dropped\x20%s','STRING','stringify','addIndex\x20%s\x20%s\x20%s','prototype','line','tail','queryInterface','inspect','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','then','sequelize','renameColumn','changeColumn','Added\x20column\x20%s\x20to\x20%s','TEXT','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tools_sounds','answer','report_jscripty_questions','removeColumn','final','voice_prefixes','enqueue','../config/logger','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)))','removeIndex\x20%s\x20%s','backgroundColor','report_call','DELETE\x20FROM\x20`voice_prefixes`','info','INTEGER','DELETE\x20FROM\x20`user_has_voice_prefixes`','voice_extensions','prefix','query\x20%s','join'];(function(_0x256fcf,_0x31b8dc){const _0x57bd75=function(_0xc9569c){while(--_0xc9569c){_0x256fcf['push'](_0x256fcf['shift']());}};_0x57bd75(++_0x31b8dc);}(a948_0x31b8,0x1a7));const a948_0x57bd=function(_0x256fcf,_0x31b8dc){_0x256fcf=_0x256fcf-0x0;let _0x57bd75=a948_0x31b8[_0x256fcf];return _0x57bd75;};const _0x4303b5=a948_0x57bd;'use strict';const util=require(_0x4303b5('0xd')),logger=require(_0x4303b5('0x32'))(_0x4303b5('0x9')),Sequence=function(){};Sequence[_0x4303b5('0x1d')][_0x4303b5('0x31')]=function(_0xc9569c){const _0x3c1f72=_0x4303b5;this['tail']=this[_0x3c1f72('0x1f')]?this[_0x3c1f72('0x1f')]['finally'](_0xc9569c):_0xc9569c();};const Migration=function(_0x58afcf){const _0x56b389=_0x4303b5;this['queryInterface']=_0x58afcf,this[_0x56b389('0x13')]=new Sequence();};Migration[_0x4303b5('0x1d')]['changeColumn']=function(_0x58a1e8,_0x3fd84d,_0xde82bc){const _0x52a1ec=_0x4303b5,_0x5b9afe=this;this['sequence'][_0x52a1ec('0x31')](function(){const _0x5ac9e2=_0x52a1ec;return _0x5b9afe[_0x5ac9e2('0x20')][_0x5ac9e2('0x27')](_0x58a1e8,_0x3fd84d,_0xde82bc)[_0x5ac9e2('0x24')](function(){const _0x5a5e64=_0x5ac9e2;logger[_0x5a5e64('0x2')](_0x5a5e64('0x23'),_0x3fd84d,_0x58a1e8);})[_0x5ac9e2('0x22')](function(_0x9bff7a){const _0x4cfc81=_0x5ac9e2;logger[_0x4cfc81('0x2')](JSON[_0x4cfc81('0x1b')](_0x9bff7a));});});},Migration[_0x4303b5('0x1d')][_0x4303b5('0xc')]=function(_0x31144b,_0x469146,_0x120855){const _0x114b4d=_0x4303b5,_0xf10f5f=this;this[_0x114b4d('0x13')][_0x114b4d('0x31')](function(){const _0x55532d=_0x114b4d;return _0xf10f5f[_0x55532d('0x20')][_0x55532d('0xc')](_0x31144b,_0x469146,_0x120855)[_0x55532d('0x24')](function(){const _0x46a70c=_0x55532d;logger[_0x46a70c('0x2')](_0x46a70c('0x28'),_0x469146,_0x31144b);})[_0x55532d('0x22')](function(_0x277e1a){logger['info'](JSON['stringify'](_0x277e1a));});});},Migration[_0x4303b5('0x1d')]['dropTable']=function(_0x47436f){const _0x52fba6=_0x4303b5,_0x527620=this;this[_0x52fba6('0x13')]['enqueue'](function(){const _0x1897f3=_0x52fba6;return _0x527620['queryInterface']['dropTable'](_0x47436f,{'force':!![]})[_0x1897f3('0x24')](function(){const _0xbf6076=_0x1897f3;logger[_0xbf6076('0x2')](_0xbf6076('0x19'),_0x47436f);})[_0x1897f3('0x22')](function(_0x2ec79e){const _0x472bee=_0x1897f3;logger[_0x472bee('0x2')](JSON[_0x472bee('0x1b')](_0x2ec79e));});});},Migration['prototype'][_0x4303b5('0x10')]=function(_0x2caaf2,_0x23b4c7,_0x229883){const _0x36dabf=_0x4303b5,_0x441f2c=this;this[_0x36dabf('0x13')][_0x36dabf('0x31')](function(){const _0x38162d=_0x36dabf;return _0x441f2c['queryInterface'][_0x38162d('0x10')](_0x2caaf2,_0x23b4c7,{'indexName':_0x229883})[_0x38162d('0x24')](function(){const _0x433c1e=_0x38162d;logger[_0x433c1e('0x2')](_0x433c1e('0x1c'),_0x2caaf2,_0x23b4c7[_0x433c1e('0x8')](','),_0x229883);})['catch'](function(_0x1a9ecb){const _0x5ba2a9=_0x38162d;logger[_0x5ba2a9('0x2')](JSON[_0x5ba2a9('0x1b')](_0x1a9ecb));});});},Migration['prototype'][_0x4303b5('0xa')]=function(_0x12da2c,_0x540738){const _0x20e62e=_0x4303b5,_0x5ef337=this;this[_0x20e62e('0x13')][_0x20e62e('0x31')](function(){const _0x3850f0=_0x20e62e;return _0x5ef337['queryInterface']['removeIndex'](_0x12da2c,_0x540738)[_0x3850f0('0x24')](function(){const _0x4a7fe5=_0x3850f0;logger[_0x4a7fe5('0x2')](_0x4a7fe5('0x34'),_0x12da2c,_0x540738);})[_0x3850f0('0x22')](function(_0x3372ef){const _0x183557=_0x3850f0;logger[_0x183557('0x2')](JSON[_0x183557('0x1b')](_0x3372ef));});});},Migration[_0x4303b5('0x1d')][_0x4303b5('0x11')]=function(_0xae4050){const _0x493ff4=_0x4303b5,_0x5231a7=this;this['sequence'][_0x493ff4('0x31')](function(){const _0x8008c4=_0x493ff4;return _0x5231a7[_0x8008c4('0x20')][_0x8008c4('0x25')][_0x8008c4('0x11')](_0xae4050)['then'](function(){const _0x4c2885=_0x8008c4;logger[_0x4c2885('0x2')](_0x4c2885('0x7'),_0xae4050);})[_0x8008c4('0x22')](function(_0x340bb3){const _0xb75a3b=_0x8008c4;logger[_0xb75a3b('0x2')](JSON[_0xb75a3b('0x1b')](_0x340bb3));});});},Migration['prototype'][_0x4303b5('0x2e')]=function(_0x1b221c,_0x48f5f7){const _0x284cce=_0x4303b5,_0x2a084d=this;this[_0x284cce('0x13')]['enqueue'](function(){const _0x5a5f25=_0x284cce;return _0x2a084d[_0x5a5f25('0x20')][_0x5a5f25('0x2e')](_0x1b221c,_0x48f5f7)[_0x5a5f25('0x24')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x48f5f7,_0x1b221c);})[_0x5a5f25('0x22')](function(_0x31ed85){const _0x35b952=_0x5a5f25;logger[_0x35b952('0x2')](util[_0x35b952('0x21')](_0x31ed85,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4303b5('0x26')]=function(_0x57805d,_0x859a55,_0x42ddba){const _0x92d4b=_0x4303b5,_0x28105b=this;this[_0x92d4b('0x13')][_0x92d4b('0x31')](function(){const _0x47abe9=_0x92d4b;return _0x28105b[_0x47abe9('0x20')][_0x47abe9('0x26')](_0x57805d,_0x859a55,_0x42ddba)['then'](function(){const _0x5d6218=_0x47abe9;logger[_0x5d6218('0x2')](_0x5d6218('0x2a'),_0x859a55,_0x42ddba,_0x57805d);})[_0x47abe9('0x22')](function(_0x2dba5){const _0x58198f=_0x47abe9;logger[_0x58198f('0x2')](util[_0x58198f('0x21')](_0x2dba5,{'showHidden':![],'depth':null}));});});},Migration[_0x4303b5('0x1d')][_0x4303b5('0x2f')]=function(_0x598a7f){this['sequence']['enqueue'](function(){return _0x598a7f();});},module['exports']={'up':function(_0x3a08c8,_0x127f1b){return new Promise(function(_0x392ee7){const _0x20742d=a948_0x57bd,_0x5da059=new Migration(_0x3a08c8);_0x5da059['changeColumn'](_0x20742d('0x17'),_0x20742d('0x2c'),{'type':_0x127f1b[_0x20742d('0x29')]('long')}),_0x5da059[_0x20742d('0x27')](_0x20742d('0x2d'),_0x20742d('0x2c'),{'type':_0x127f1b[_0x20742d('0x29')](_0x20742d('0x16'))}),_0x5da059[_0x20742d('0x11')](_0x20742d('0x33')),_0x5da059['changeColumn'](_0x20742d('0x2b'),_0x20742d('0xb'),{'type':_0x127f1b[_0x20742d('0x1a')],'unique':!![],'allowNull':![]}),_0x5da059[_0x20742d('0xc')](_0x20742d('0x12'),'messageFontSize',{'type':_0x127f1b['INTEGER'],'defaultValue':0xc}),_0x5da059[_0x20742d('0xc')](_0x20742d('0x12'),_0x20742d('0x35'),{'type':_0x127f1b['STRING'],'allowNull':![],'defaultValue':_0x20742d('0x18'),'validate':{'notEmpty':!![]}}),_0x5da059[_0x20742d('0xc')]('cm_contacts',_0x20742d('0x1e'),{'type':_0x127f1b['STRING']}),_0x5da059[_0x20742d('0x11')](_0x20742d('0x1')),_0x5da059[_0x20742d('0x11')](_0x20742d('0x4')),_0x5da059[_0x20742d('0xa')](_0x20742d('0x30'),'prefix'),_0x5da059[_0x20742d('0x2e')]('voice_prefixes',_0x20742d('0x6')),_0x5da059[_0x20742d('0xc')](_0x20742d('0x30'),_0x20742d('0x15'),{'type':_0x127f1b[_0x20742d('0x1a')]}),_0x5da059[_0x20742d('0xc')](_0x20742d('0x30'),'VoiceExtensionId',{'type':_0x127f1b['INTEGER']}),_0x5da059[_0x20742d('0xc')](_0x20742d('0x5'),_0x20742d('0xe'),{'type':_0x127f1b[_0x20742d('0x3')]}),_0x5da059[_0x20742d('0x11')](_0x20742d('0xf')),_0x5da059[_0x20742d('0x11')](_0x20742d('0x14')),_0x5da059['addColumn'](_0x20742d('0x0'),_0x20742d('0x6'),{'type':_0x127f1b[_0x20742d('0x1a')]}),_0x5da059['final'](_0x392ee7);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.70.js b/server/migrations/2.0.70.js index 6416f02..7bca790 100644 --- a/server/migrations/2.0.70.js +++ b/server/migrations/2.0.70.js @@ -1 +1 @@ -const a949_0x5bee=['query','ALTER\x20TABLE\x20int_vtiger_accounts\x20ENCRYPTION=\x27Y\x27;','changeColumn','enqueue','queryInterface','join','report_queue','finally','removeIndex','stringify','dropTable','Added\x20column\x20%s\x20to\x20%s','mohtime','exports','catch','tail','addColumn','INTEGER','report_call','removeIndex\x20%s\x20%s','addIndex\x20%s\x20%s\x20%s','sequelize','sequence','query\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','prototype','removeColumn','util','final','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','addIndex','info','migration','then'];(function(_0x10e758,_0x5beedf){const _0x3a09b2=function(_0x42368e){while(--_0x42368e){_0x10e758['push'](_0x10e758['shift']());}};_0x3a09b2(++_0x5beedf);}(a949_0x5bee,0xf8));const a949_0x3a09=function(_0x10e758,_0x5beedf){_0x10e758=_0x10e758-0x0;let _0x3a09b2=a949_0x5bee[_0x10e758];return _0x3a09b2;};const _0x3798ac=a949_0x3a09;'use strict';const util=require(_0x3798ac('0x1f')),logger=require('../config/logger')(_0x3798ac('0x2')),Sequence=function(){};Sequence[_0x3798ac('0x1d')]['enqueue']=function(_0x42368e){const _0x13850e=_0x3798ac;this[_0x13850e('0x13')]=this[_0x13850e('0x13')]?this[_0x13850e('0x13')][_0x13850e('0xb')](_0x42368e):_0x42368e();};const Migration=function(_0xd50602){const _0x18fd85=_0x3798ac;this[_0x18fd85('0x8')]=_0xd50602,this[_0x18fd85('0x1a')]=new Sequence();};Migration[_0x3798ac('0x1d')][_0x3798ac('0x6')]=function(_0x2a0bfd,_0x2bebbc,_0x286100){const _0x5a62e0=_0x3798ac,_0x6f8c4e=this;this['sequence'][_0x5a62e0('0x7')](function(){const _0x630c14=_0x5a62e0;return _0x6f8c4e[_0x630c14('0x8')][_0x630c14('0x6')](_0x2a0bfd,_0x2bebbc,_0x286100)[_0x630c14('0x3')](function(){const _0x2c4391=_0x630c14;logger[_0x2c4391('0x1')](_0x2c4391('0x22'),_0x2bebbc,_0x2a0bfd);})[_0x630c14('0x12')](function(_0x5b32b2){const _0x247e14=_0x630c14;logger['info'](JSON[_0x247e14('0xd')](_0x5b32b2));});});},Migration['prototype']['addColumn']=function(_0x87d26d,_0x673f15,_0x44a6ae){const _0x1c65e6=_0x3798ac,_0x46270e=this;this[_0x1c65e6('0x1a')][_0x1c65e6('0x7')](function(){const _0x4c5301=_0x1c65e6;return _0x46270e['queryInterface'][_0x4c5301('0x14')](_0x87d26d,_0x673f15,_0x44a6ae)[_0x4c5301('0x3')](function(){const _0x15e482=_0x4c5301;logger['info'](_0x15e482('0xf'),_0x673f15,_0x87d26d);})[_0x4c5301('0x12')](function(_0x3af48a){const _0x58b44a=_0x4c5301;logger[_0x58b44a('0x1')](JSON['stringify'](_0x3af48a));});});},Migration[_0x3798ac('0x1d')]['dropTable']=function(_0x4dc694){const _0x1c0648=this;this['sequence']['enqueue'](function(){const _0x4cc120=a949_0x3a09;return _0x1c0648['queryInterface'][_0x4cc120('0xe')](_0x4dc694,{'force':!![]})[_0x4cc120('0x3')](function(){const _0x2638cc=_0x4cc120;logger[_0x2638cc('0x1')]('table\x20dropped\x20%s',_0x4dc694);})[_0x4cc120('0x12')](function(_0x30fe48){const _0x5ecbc2=_0x4cc120;logger[_0x5ecbc2('0x1')](JSON[_0x5ecbc2('0xd')](_0x30fe48));});});},Migration[_0x3798ac('0x1d')][_0x3798ac('0x0')]=function(_0x51b17a,_0x755586,_0x4b7ca9){const _0x4a36b6=_0x3798ac,_0x49d0c6=this;this[_0x4a36b6('0x1a')][_0x4a36b6('0x7')](function(){const _0x16daf9=_0x4a36b6;return _0x49d0c6[_0x16daf9('0x8')][_0x16daf9('0x0')](_0x51b17a,_0x755586,{'indexName':_0x4b7ca9})[_0x16daf9('0x3')](function(){const _0x3b34fc=_0x16daf9;logger[_0x3b34fc('0x1')](_0x3b34fc('0x18'),_0x51b17a,_0x755586[_0x3b34fc('0x9')](','),_0x4b7ca9);})['catch'](function(_0x153fec){const _0x4ca241=_0x16daf9;logger[_0x4ca241('0x1')](JSON[_0x4ca241('0xd')](_0x153fec));});});},Migration[_0x3798ac('0x1d')][_0x3798ac('0xc')]=function(_0x2aa1ec,_0x351bec){const _0x3acef7=_0x3798ac,_0xf02e6a=this;this[_0x3acef7('0x1a')][_0x3acef7('0x7')](function(){const _0x51fc05=_0x3acef7;return _0xf02e6a[_0x51fc05('0x8')]['removeIndex'](_0x2aa1ec,_0x351bec)[_0x51fc05('0x3')](function(){const _0x5380b2=_0x51fc05;logger['info'](_0x5380b2('0x17'),_0x2aa1ec,_0x351bec);})[_0x51fc05('0x12')](function(_0xc80be6){const _0x3ecabf=_0x51fc05;logger[_0x3ecabf('0x1')](JSON['stringify'](_0xc80be6));});});},Migration['prototype'][_0x3798ac('0x4')]=function(_0x4e788c){const _0x3cdb70=_0x3798ac,_0x4fa6e8=this;this['sequence'][_0x3cdb70('0x7')](function(){const _0x2a590a=_0x3cdb70;return _0x4fa6e8[_0x2a590a('0x8')][_0x2a590a('0x19')][_0x2a590a('0x4')](_0x4e788c)[_0x2a590a('0x3')](function(){const _0xa8f0b6=_0x2a590a;logger[_0xa8f0b6('0x1')](_0xa8f0b6('0x1b'),_0x4e788c);})[_0x2a590a('0x12')](function(_0x50f061){const _0x421779=_0x2a590a;logger[_0x421779('0x1')](JSON[_0x421779('0xd')](_0x50f061));});});},Migration[_0x3798ac('0x1d')][_0x3798ac('0x1e')]=function(_0x203604,_0x30c9ff){const _0x512e63=_0x3798ac,_0x10708d=this;this[_0x512e63('0x1a')][_0x512e63('0x7')](function(){const _0x2c1f33=_0x512e63;return _0x10708d[_0x2c1f33('0x8')][_0x2c1f33('0x1e')](_0x203604,_0x30c9ff)['then'](function(){const _0x4eb58f=_0x2c1f33;logger[_0x4eb58f('0x1')]('Removed\x20column\x20%s\x20from\x20%s',_0x30c9ff,_0x203604);})[_0x2c1f33('0x12')](function(_0x20a34b){const _0x1cb618=_0x2c1f33;logger[_0x1cb618('0x1')](util[_0x1cb618('0x23')](_0x20a34b,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3798ac('0x21')]=function(_0xbde743,_0x24d7ce,_0x56d70b){const _0x1c2c0f=_0x3798ac,_0x393abe=this;this[_0x1c2c0f('0x1a')]['enqueue'](function(){const _0x20ebbb=_0x1c2c0f;return _0x393abe[_0x20ebbb('0x8')]['renameColumn'](_0xbde743,_0x24d7ce,_0x56d70b)[_0x20ebbb('0x3')](function(){const _0x4f661d=_0x20ebbb;logger['info'](_0x4f661d('0x1c'),_0x24d7ce,_0x56d70b,_0xbde743);})[_0x20ebbb('0x12')](function(_0x151038){const _0x545dc0=_0x20ebbb;logger[_0x545dc0('0x1')](util[_0x545dc0('0x23')](_0x151038,{'showHidden':![],'depth':null}));});});},Migration[_0x3798ac('0x1d')][_0x3798ac('0x20')]=function(_0x1cf79c){const _0xcfae15=_0x3798ac;this[_0xcfae15('0x1a')][_0xcfae15('0x7')](function(){return _0x1cf79c();});},module[_0x3798ac('0x11')]={'up':function(_0x13292a,_0x1994d9){return new Promise(function(_0x25d3ec){const _0x3ba2f5=a949_0x3a09,_0x237bea=new Migration(_0x13292a);_0x237bea[_0x3ba2f5('0x14')](_0x3ba2f5('0xa'),_0x3ba2f5('0x10'),{'type':_0x1994d9[_0x3ba2f5('0x15')],'defaultValue':0x0}),_0x237bea[_0x3ba2f5('0x14')](_0x3ba2f5('0x16'),_0x3ba2f5('0x10'),{'type':_0x1994d9[_0x3ba2f5('0x15')],'defaultValue':0x0}),_0x237bea[_0x3ba2f5('0x4')](_0x3ba2f5('0x5')),_0x237bea['final'](_0x25d3ec);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.71.js b/server/migrations/2.0.71.js index eccd9a9..30c7159 100644 --- a/server/migrations/2.0.71.js +++ b/server/migrations/2.0.71.js @@ -1 +1 @@ -const a950_0x785c=['System','tail','INTEGER','query','TEXT','systemAvatar','queueTransfer','../config/logger','sequelize','dropTable','final','inspect','Changed\x20column\x20%s\x20in\x20table\x20%s','chat_websites','util','migration','removeColumn','openchannel_accounts','join','renameColumn','systemAlias','queueTransferTimeout','enqueue','chatTimeout','phoneBarRememberMeEnabled','removeIndex','table\x20dropped\x20%s','data7','prototype','settings','STRING','license','exports','addColumn','sms_accounts','fax_accounts','sequence','addIndex\x20%s\x20%s\x20%s','BOOLEAN','queryInterface','chatLicenseExceeded','then','stringify','info','catch','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Added\x20column\x20%s\x20to\x20%s','query\x20%s','agentTransferTimeout','changeColumn'];(function(_0x3f9dc3,_0x785c34){const _0x19e25c=function(_0x1d9c12){while(--_0x1d9c12){_0x3f9dc3['push'](_0x3f9dc3['shift']());}};_0x19e25c(++_0x785c34);}(a950_0x785c,0x68));const a950_0x19e2=function(_0x3f9dc3,_0x785c34){_0x3f9dc3=_0x3f9dc3-0x0;let _0x19e25c=a950_0x785c[_0x3f9dc3];return _0x19e25c;};const _0x4cb214=a950_0x19e2;'use strict';const util=require(_0x4cb214('0xa')),logger=require(_0x4cb214('0x3'))(_0x4cb214('0xb')),Sequence=function(){};Sequence[_0x4cb214('0x18')][_0x4cb214('0x12')]=function(_0x1d9c12){const _0x981e3c=_0x4cb214;this[_0x981e3c('0x2f')]=this[_0x981e3c('0x2f')]?this[_0x981e3c('0x2f')]['finally'](_0x1d9c12):_0x1d9c12();};const Migration=function(_0x2852c8){const _0x2566a2=_0x4cb214;this[_0x2566a2('0x23')]=_0x2852c8,this[_0x2566a2('0x20')]=new Sequence();};Migration[_0x4cb214('0x18')][_0x4cb214('0x2d')]=function(_0x464344,_0x2a4834,_0x17937f){const _0x13fb30=_0x4cb214,_0x70cd48=this;this[_0x13fb30('0x20')][_0x13fb30('0x12')](function(){const _0x39e6f9=_0x13fb30;return _0x70cd48[_0x39e6f9('0x23')][_0x39e6f9('0x2d')](_0x464344,_0x2a4834,_0x17937f)[_0x39e6f9('0x25')](function(){const _0x5e03c0=_0x39e6f9;logger[_0x5e03c0('0x27')](_0x5e03c0('0x8'),_0x2a4834,_0x464344);})[_0x39e6f9('0x28')](function(_0x31e497){const _0x238d05=_0x39e6f9;logger['info'](JSON[_0x238d05('0x26')](_0x31e497));});});},Migration[_0x4cb214('0x18')][_0x4cb214('0x1d')]=function(_0xe33bdc,_0x15707a,_0x11f582){const _0x4fc7be=_0x4cb214,_0x57afc4=this;this[_0x4fc7be('0x20')][_0x4fc7be('0x12')](function(){const _0x536ef1=_0x4fc7be;return _0x57afc4['queryInterface'][_0x536ef1('0x1d')](_0xe33bdc,_0x15707a,_0x11f582)[_0x536ef1('0x25')](function(){const _0x134dfb=_0x536ef1;logger['info'](_0x134dfb('0x2a'),_0x15707a,_0xe33bdc);})['catch'](function(_0x4929e0){const _0x40d2b5=_0x536ef1;logger['info'](JSON[_0x40d2b5('0x26')](_0x4929e0));});});},Migration[_0x4cb214('0x18')][_0x4cb214('0x5')]=function(_0x42f015){const _0x15ac06=_0x4cb214,_0x40cf81=this;this[_0x15ac06('0x20')][_0x15ac06('0x12')](function(){const _0x5a94e8=_0x15ac06;return _0x40cf81['queryInterface'][_0x5a94e8('0x5')](_0x42f015,{'force':!![]})[_0x5a94e8('0x25')](function(){const _0x2168da=_0x5a94e8;logger[_0x2168da('0x27')](_0x2168da('0x16'),_0x42f015);})[_0x5a94e8('0x28')](function(_0x3df61b){const _0x3ceb03=_0x5a94e8;logger[_0x3ceb03('0x27')](JSON['stringify'](_0x3df61b));});});},Migration['prototype']['addIndex']=function(_0x2074b9,_0x178a12,_0x53033b){const _0xf449d7=_0x4cb214,_0x5a3e66=this;this['sequence'][_0xf449d7('0x12')](function(){const _0xb675e1=_0xf449d7;return _0x5a3e66[_0xb675e1('0x23')]['addIndex'](_0x2074b9,_0x178a12,{'indexName':_0x53033b})[_0xb675e1('0x25')](function(){const _0xeefece=_0xb675e1;logger[_0xeefece('0x27')](_0xeefece('0x21'),_0x2074b9,_0x178a12[_0xeefece('0xe')](','),_0x53033b);})[_0xb675e1('0x28')](function(_0x283722){const _0x301b58=_0xb675e1;logger[_0x301b58('0x27')](JSON[_0x301b58('0x26')](_0x283722));});});},Migration[_0x4cb214('0x18')][_0x4cb214('0x15')]=function(_0x4a2355,_0x23dbe5){const _0xb49d05=_0x4cb214,_0x4dbb7f=this;this[_0xb49d05('0x20')][_0xb49d05('0x12')](function(){const _0x1ffe58=_0xb49d05;return _0x4dbb7f[_0x1ffe58('0x23')][_0x1ffe58('0x15')](_0x4a2355,_0x23dbe5)['then'](function(){const _0x51c066=_0x1ffe58;logger[_0x51c066('0x27')]('removeIndex\x20%s\x20%s',_0x4a2355,_0x23dbe5);})['catch'](function(_0x3b98cf){const _0x173b46=_0x1ffe58;logger[_0x173b46('0x27')](JSON[_0x173b46('0x26')](_0x3b98cf));});});},Migration[_0x4cb214('0x18')][_0x4cb214('0x31')]=function(_0x1a1577){const _0x10d6af=_0x4cb214,_0x25d432=this;this[_0x10d6af('0x20')]['enqueue'](function(){const _0x560a8d=_0x10d6af;return _0x25d432[_0x560a8d('0x23')][_0x560a8d('0x4')]['query'](_0x1a1577)[_0x560a8d('0x25')](function(){const _0x458052=_0x560a8d;logger[_0x458052('0x27')](_0x458052('0x2b'),_0x1a1577);})['catch'](function(_0x140b4e){const _0x25dd3f=_0x560a8d;logger[_0x25dd3f('0x27')](JSON[_0x25dd3f('0x26')](_0x140b4e));});});},Migration[_0x4cb214('0x18')][_0x4cb214('0xc')]=function(_0x1dfb18,_0xcab822){const _0x36cb1a=_0x4cb214,_0x625ffe=this;this['sequence'][_0x36cb1a('0x12')](function(){const _0x5f09e9=_0x36cb1a;return _0x625ffe['queryInterface']['removeColumn'](_0x1dfb18,_0xcab822)[_0x5f09e9('0x25')](function(){const _0x2ef67f=_0x5f09e9;logger[_0x2ef67f('0x27')]('Removed\x20column\x20%s\x20from\x20%s',_0xcab822,_0x1dfb18);})['catch'](function(_0x394180){const _0x1d7360=_0x5f09e9;logger[_0x1d7360('0x27')](util[_0x1d7360('0x7')](_0x394180,{'showHidden':![],'depth':null}));});});},Migration[_0x4cb214('0x18')][_0x4cb214('0xf')]=function(_0x4a499c,_0x1f1b2d,_0x441d33){const _0x3a913c=_0x4cb214,_0x57b344=this;this['sequence'][_0x3a913c('0x12')](function(){const _0x7d1c9e=_0x3a913c;return _0x57b344[_0x7d1c9e('0x23')]['renameColumn'](_0x4a499c,_0x1f1b2d,_0x441d33)[_0x7d1c9e('0x25')](function(){const _0x280f9e=_0x7d1c9e;logger[_0x280f9e('0x27')](_0x280f9e('0x29'),_0x1f1b2d,_0x441d33,_0x4a499c);})[_0x7d1c9e('0x28')](function(_0xad9c61){const _0x55bdb2=_0x7d1c9e;logger[_0x55bdb2('0x27')](util[_0x55bdb2('0x7')](_0xad9c61,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4cb214('0x6')]=function(_0x2100e3){const _0x36c966=_0x4cb214;this['sequence'][_0x36c966('0x12')](function(){return _0x2100e3();});},module[_0x4cb214('0x1c')]={'up':function(_0x14b4b4,_0x3d790e){return new Promise(function(_0x56d7ff){const _0x31a9cb=a950_0x19e2,_0x199378=new Migration(_0x14b4b4);_0x199378[_0x31a9cb('0x1d')](_0x31a9cb('0x9'),'queueTransfer',{'type':_0x3d790e[_0x31a9cb('0x22')],'defaultValue':![]}),_0x199378[_0x31a9cb('0x1d')]('chat_websites','enableCustomerCheckmarks',{'type':_0x3d790e[_0x31a9cb('0x22')],'defaultValue':![]}),_0x199378[_0x31a9cb('0x1d')](_0x31a9cb('0x9'),_0x31a9cb('0x11'),{'type':_0x3d790e[_0x31a9cb('0x30')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x199378[_0x31a9cb('0x1d')](_0x31a9cb('0x9'),'agentTransfer',{'type':_0x3d790e[_0x31a9cb('0x22')],'defaultValue':![]}),_0x199378['addColumn'](_0x31a9cb('0x9'),_0x31a9cb('0x2c'),{'type':_0x3d790e[_0x31a9cb('0x30')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x199378[_0x31a9cb('0x1d')]('chat_websites',_0x31a9cb('0x10'),{'type':_0x3d790e[_0x31a9cb('0x1a')],'defaultValue':_0x31a9cb('0x2e')}),_0x199378[_0x31a9cb('0x1d')](_0x31a9cb('0x9'),_0x31a9cb('0x1'),{'type':_0x3d790e[_0x31a9cb('0x0')]}),_0x199378[_0x31a9cb('0x1d')](_0x31a9cb('0x1f'),'queueTransfer',{'type':_0x3d790e[_0x31a9cb('0x22')],'defaultValue':![]}),_0x199378[_0x31a9cb('0x1d')](_0x31a9cb('0x1f'),_0x31a9cb('0x11'),{'type':_0x3d790e[_0x31a9cb('0x30')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x199378[_0x31a9cb('0x1d')](_0x31a9cb('0x1f'),'agentTransfer',{'type':_0x3d790e[_0x31a9cb('0x22')],'defaultValue':![]}),_0x199378['addColumn'](_0x31a9cb('0x1f'),_0x31a9cb('0x2c'),{'type':_0x3d790e[_0x31a9cb('0x30')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x199378['addColumn'](_0x31a9cb('0xd'),_0x31a9cb('0x2'),{'type':_0x3d790e['BOOLEAN'],'defaultValue':![]}),_0x199378[_0x31a9cb('0x1d')](_0x31a9cb('0xd'),_0x31a9cb('0x11'),{'type':_0x3d790e[_0x31a9cb('0x30')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x199378[_0x31a9cb('0x1d')](_0x31a9cb('0xd'),'agentTransfer',{'type':_0x3d790e['BOOLEAN'],'defaultValue':![]}),_0x199378['addColumn'](_0x31a9cb('0xd'),'agentTransferTimeout',{'type':_0x3d790e[_0x31a9cb('0x30')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x199378[_0x31a9cb('0x1d')](_0x31a9cb('0x1e'),'queueTransfer',{'type':_0x3d790e[_0x31a9cb('0x22')],'defaultValue':![]}),_0x199378[_0x31a9cb('0x1d')](_0x31a9cb('0x1e'),_0x31a9cb('0x11'),{'type':_0x3d790e['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x199378['addColumn'](_0x31a9cb('0x1e'),'agentTransfer',{'type':_0x3d790e[_0x31a9cb('0x22')],'defaultValue':![]}),_0x199378['addColumn']('sms_accounts','agentTransferTimeout',{'type':_0x3d790e['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x199378['addColumn'](_0x31a9cb('0x19'),_0x31a9cb('0x13'),{'type':_0x3d790e[_0x31a9cb('0x30')],'defaultValue':0x1e}),_0x199378[_0x31a9cb('0x31')]('UPDATE\x20settings\x20SET\x20chatTimeout\x20=\x200;'),_0x199378[_0x31a9cb('0x1d')](_0x31a9cb('0x19'),_0x31a9cb('0x14'),{'type':_0x3d790e[_0x31a9cb('0x22')],'defaultValue':!![]}),_0x199378[_0x31a9cb('0x1d')](_0x31a9cb('0x1b'),_0x31a9cb('0x24'),{'type':_0x3d790e[_0x31a9cb('0x30')],'defaultValue':0x0}),_0x199378[_0x31a9cb('0x1d')]('tools_actions',_0x31a9cb('0x17'),{'type':_0x3d790e[_0x31a9cb('0x0')]}),_0x199378[_0x31a9cb('0x6')](_0x56d7ff);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.72.js b/server/migrations/2.0.72.js index 441c022..cf4a833 100644 --- a/server/migrations/2.0.72.js +++ b/server/migrations/2.0.72.js @@ -1 +1 @@ -const a951_0x2fec=['addColumn','migration','tail','then','report_square','inspect','Changed\x20column\x20%s\x20in\x20table\x20%s','catch','removeIndex','sequelize','prototype','removeColumn','info','util','sequence','queryInterface','query\x20%s','join','enqueue','query','final','../config/logger','stringify','removeIndex\x20%s\x20%s','uniqueid','changeColumn','DELETE\x20FROM\x20user_has_voice_queues_rt\x20WHERE\x20UserId\x20NOT\x20IN\x20(SELECT\x20id\x20FROM\x20users\x20WHERE\x20role\x20=\x20\x27agent\x27)','exports','renameColumn','addIndex','leaveAt','project_name','uid_pname','table\x20dropped\x20%s','finally','dropTable'];(function(_0xd45608,_0x2fec5f){const _0x736c8b=function(_0x3bd323){while(--_0x3bd323){_0xd45608['push'](_0xd45608['shift']());}};_0x736c8b(++_0x2fec5f);}(a951_0x2fec,0xd8));const a951_0x736c=function(_0xd45608,_0x2fec5f){_0xd45608=_0xd45608-0x0;let _0x736c8b=a951_0x2fec[_0xd45608];return _0x736c8b;};const _0x4d1335=a951_0x736c;'use strict';const util=require(_0x4d1335('0xd')),logger=require(_0x4d1335('0x15'))(_0x4d1335('0x1')),Sequence=function(){};Sequence[_0x4d1335('0xa')][_0x4d1335('0x12')]=function(_0x3bd323){const _0x3c5461=_0x4d1335;this[_0x3c5461('0x2')]=this[_0x3c5461('0x2')]?this['tail'][_0x3c5461('0x22')](_0x3bd323):_0x3bd323();};const Migration=function(_0x7527f0){const _0x82b4c9=_0x4d1335;this[_0x82b4c9('0xf')]=_0x7527f0,this[_0x82b4c9('0xe')]=new Sequence();};Migration[_0x4d1335('0xa')]['changeColumn']=function(_0x52755b,_0xa5963,_0x3e29df){const _0x4f11d4=_0x4d1335,_0x93fa32=this;this[_0x4f11d4('0xe')]['enqueue'](function(){const _0xc30d52=_0x4f11d4;return _0x93fa32[_0xc30d52('0xf')][_0xc30d52('0x19')](_0x52755b,_0xa5963,_0x3e29df)[_0xc30d52('0x3')](function(){const _0x5a1b43=_0xc30d52;logger[_0x5a1b43('0xc')](_0x5a1b43('0x6'),_0xa5963,_0x52755b);})[_0xc30d52('0x7')](function(_0x327e1b){const _0xac1cdd=_0xc30d52;logger[_0xac1cdd('0xc')](JSON[_0xac1cdd('0x16')](_0x327e1b));});});},Migration[_0x4d1335('0xa')][_0x4d1335('0x0')]=function(_0xe2c544,_0x375d04,_0x13cff5){const _0x1d60d4=_0x4d1335,_0x212c06=this;this[_0x1d60d4('0xe')][_0x1d60d4('0x12')](function(){const _0x245cd7=_0x1d60d4;return _0x212c06[_0x245cd7('0xf')]['addColumn'](_0xe2c544,_0x375d04,_0x13cff5)[_0x245cd7('0x3')](function(){const _0x565aee=_0x245cd7;logger[_0x565aee('0xc')]('Added\x20column\x20%s\x20to\x20%s',_0x375d04,_0xe2c544);})[_0x245cd7('0x7')](function(_0x4d48ff){const _0x5c0551=_0x245cd7;logger[_0x5c0551('0xc')](JSON['stringify'](_0x4d48ff));});});},Migration['prototype'][_0x4d1335('0x23')]=function(_0xfac5d8){const _0x31c1b3=this;this['sequence']['enqueue'](function(){const _0x158017=a951_0x736c;return _0x31c1b3['queryInterface']['dropTable'](_0xfac5d8,{'force':!![]})[_0x158017('0x3')](function(){const _0x6603f1=_0x158017;logger[_0x6603f1('0xc')](_0x6603f1('0x21'),_0xfac5d8);})['catch'](function(_0x13f5dd){const _0x29dfdf=_0x158017;logger[_0x29dfdf('0xc')](JSON['stringify'](_0x13f5dd));});});},Migration[_0x4d1335('0xa')][_0x4d1335('0x1d')]=function(_0xba5397,_0x2c95d7,_0x515b93){const _0x282c7a=_0x4d1335,_0x105b89=this;this[_0x282c7a('0xe')]['enqueue'](function(){const _0x266d91=_0x282c7a;return _0x105b89['queryInterface'][_0x266d91('0x1d')](_0xba5397,_0x2c95d7,{'indexName':_0x515b93})['then'](function(){const _0x4d3a71=_0x266d91;logger[_0x4d3a71('0xc')]('addIndex\x20%s\x20%s\x20%s',_0xba5397,_0x2c95d7[_0x4d3a71('0x11')](','),_0x515b93);})[_0x266d91('0x7')](function(_0x10205c){logger['info'](JSON['stringify'](_0x10205c));});});},Migration[_0x4d1335('0xa')][_0x4d1335('0x8')]=function(_0x178367,_0x4a799a){const _0x77acc5=_0x4d1335,_0x3a7467=this;this[_0x77acc5('0xe')][_0x77acc5('0x12')](function(){const _0xf39492=_0x77acc5;return _0x3a7467['queryInterface']['removeIndex'](_0x178367,_0x4a799a)[_0xf39492('0x3')](function(){const _0x2cd4d0=_0xf39492;logger['info'](_0x2cd4d0('0x17'),_0x178367,_0x4a799a);})[_0xf39492('0x7')](function(_0x1cec90){const _0x35c298=_0xf39492;logger[_0x35c298('0xc')](JSON[_0x35c298('0x16')](_0x1cec90));});});},Migration[_0x4d1335('0xa')][_0x4d1335('0x13')]=function(_0xacf893){const _0x43818e=_0x4d1335,_0x33d32a=this;this[_0x43818e('0xe')][_0x43818e('0x12')](function(){const _0x175779=_0x43818e;return _0x33d32a[_0x175779('0xf')][_0x175779('0x9')][_0x175779('0x13')](_0xacf893)[_0x175779('0x3')](function(){const _0x4716e3=_0x175779;logger['info'](_0x4716e3('0x10'),_0xacf893);})[_0x175779('0x7')](function(_0x503b38){const _0xc55431=_0x175779;logger[_0xc55431('0xc')](JSON[_0xc55431('0x16')](_0x503b38));});});},Migration[_0x4d1335('0xa')]['removeColumn']=function(_0xd2ca41,_0x144697){const _0x4a687f=this;this['sequence']['enqueue'](function(){const _0x58a888=a951_0x736c;return _0x4a687f[_0x58a888('0xf')][_0x58a888('0xb')](_0xd2ca41,_0x144697)[_0x58a888('0x3')](function(){const _0x39a22c=_0x58a888;logger[_0x39a22c('0xc')]('Removed\x20column\x20%s\x20from\x20%s',_0x144697,_0xd2ca41);})['catch'](function(_0x3234f9){const _0x2843ee=_0x58a888;logger[_0x2843ee('0xc')](util[_0x2843ee('0x5')](_0x3234f9,{'showHidden':![],'depth':null}));});});},Migration[_0x4d1335('0xa')][_0x4d1335('0x1c')]=function(_0x26cf69,_0x5e4e9f,_0x38c4a1){const _0x2821f0=_0x4d1335,_0x3bbda8=this;this[_0x2821f0('0xe')][_0x2821f0('0x12')](function(){const _0x4543d3=_0x2821f0;return _0x3bbda8[_0x4543d3('0xf')]['renameColumn'](_0x26cf69,_0x5e4e9f,_0x38c4a1)['then'](function(){const _0x3dd15b=_0x4543d3;logger[_0x3dd15b('0xc')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5e4e9f,_0x38c4a1,_0x26cf69);})[_0x4543d3('0x7')](function(_0x36e868){const _0x168e54=_0x4543d3;logger['info'](util[_0x168e54('0x5')](_0x36e868,{'showHidden':![],'depth':null}));});});},Migration[_0x4d1335('0xa')]['final']=function(_0x52f155){const _0x316020=_0x4d1335;this[_0x316020('0xe')][_0x316020('0x12')](function(){return _0x52f155();});},module[_0x4d1335('0x1b')]={'up':function(_0x3a0e22){return new Promise(function(_0x107230){const _0x2497df=a951_0x736c,_0x5abfe4=new Migration(_0x3a0e22);_0x5abfe4[_0x2497df('0x13')](_0x2497df('0x1a')),_0x5abfe4[_0x2497df('0x1d')](_0x2497df('0x4'),[_0x2497df('0x18'),_0x2497df('0x1f')],_0x2497df('0x20')),_0x5abfe4['addIndex'](_0x2497df('0x4'),['leaveAt'],_0x2497df('0x1e')),_0x5abfe4[_0x2497df('0x14')](_0x107230);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.73.js b/server/migrations/2.0.73.js index aa350d2..30793a3 100644 --- a/server/migrations/2.0.73.js +++ b/server/migrations/2.0.73.js @@ -1 +1 @@ -const a952_0x4c3b=['enqueue','cm_contacts','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex\x20%s\x20%s','stringify','exports','catch','queryInterface','tail','STRING','migration','report_call','cm_hopper_final','table\x20dropped\x20%s','query','inspect','join','originatecalleridname','sequence','removeColumn','wechat','../config/logger','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','dropTable','changeColumn','finally','prototype','addIndex\x20%s\x20%s\x20%s','addIndex','routeid','originatecalleridnum','cm_hopper_history','addColumn','final','then','INTEGER','query\x20%s','fb_data','Added\x20column\x20%s\x20to\x20%s'];(function(_0x1906d,_0x4c3b0e){const _0x54c53=function(_0x1b505c){while(--_0x1b505c){_0x1906d['push'](_0x1906d['shift']());}};_0x54c53(++_0x4c3b0e);}(a952_0x4c3b,0x11f));const a952_0x54c5=function(_0x1906d,_0x4c3b0e){_0x1906d=_0x1906d-0x0;let _0x54c53=a952_0x4c3b[_0x1906d];return _0x54c53;};const _0x480387=a952_0x54c5;'use strict';const util=require('util'),logger=require(_0x480387('0xe'))(_0x480387('0x3')),Sequence=function(){};Sequence[_0x480387('0x14')][_0x480387('0x21')]=function(_0x1b505c){const _0x2aace8=_0x480387;this[_0x2aace8('0x1')]=this[_0x2aace8('0x1')]?this[_0x2aace8('0x1')][_0x2aace8('0x13')](_0x1b505c):_0x1b505c();};const Migration=function(_0x13e6e7){const _0x1b387a=_0x480387;this[_0x1b387a('0x0')]=_0x13e6e7,this[_0x1b387a('0xb')]=new Sequence();};Migration[_0x480387('0x14')][_0x480387('0x12')]=function(_0x15d6bc,_0x54aa77,_0x5ceb7f){const _0x4cad6a=_0x480387,_0x531fb9=this;this[_0x4cad6a('0xb')][_0x4cad6a('0x21')](function(){const _0x4e40e2=_0x4cad6a;return _0x531fb9['queryInterface']['changeColumn'](_0x15d6bc,_0x54aa77,_0x5ceb7f)[_0x4e40e2('0x1c')](function(){const _0x1f66de=_0x4e40e2;logger[_0x1f66de('0x10')](_0x1f66de('0x23'),_0x54aa77,_0x15d6bc);})[_0x4e40e2('0x27')](function(_0x3f2042){const _0x4cdb9d=_0x4e40e2;logger[_0x4cdb9d('0x10')](JSON[_0x4cdb9d('0x25')](_0x3f2042));});});},Migration['prototype'][_0x480387('0x1a')]=function(_0x2503c0,_0x77b68b,_0x316900){const _0x370d6b=_0x480387,_0x48c59e=this;this[_0x370d6b('0xb')][_0x370d6b('0x21')](function(){const _0x533ddf=_0x370d6b;return _0x48c59e[_0x533ddf('0x0')][_0x533ddf('0x1a')](_0x2503c0,_0x77b68b,_0x316900)[_0x533ddf('0x1c')](function(){const _0x16a7ce=_0x533ddf;logger[_0x16a7ce('0x10')](_0x16a7ce('0x20'),_0x77b68b,_0x2503c0);})[_0x533ddf('0x27')](function(_0x268c74){const _0x353d55=_0x533ddf;logger[_0x353d55('0x10')](JSON[_0x353d55('0x25')](_0x268c74));});});},Migration['prototype'][_0x480387('0x11')]=function(_0x247241){const _0x42cf14=_0x480387,_0x53258c=this;this[_0x42cf14('0xb')]['enqueue'](function(){const _0x498fb7=_0x42cf14;return _0x53258c[_0x498fb7('0x0')][_0x498fb7('0x11')](_0x247241,{'force':!![]})['then'](function(){const _0x302584=_0x498fb7;logger[_0x302584('0x10')](_0x302584('0x6'),_0x247241);})[_0x498fb7('0x27')](function(_0x2ad00c){const _0x150bc8=_0x498fb7;logger[_0x150bc8('0x10')](JSON['stringify'](_0x2ad00c));});});},Migration[_0x480387('0x14')][_0x480387('0x16')]=function(_0x5a6beb,_0xd8804d,_0x52d127){const _0xdc3e4e=this;this['sequence']['enqueue'](function(){const _0x3b9239=a952_0x54c5;return _0xdc3e4e[_0x3b9239('0x0')][_0x3b9239('0x16')](_0x5a6beb,_0xd8804d,{'indexName':_0x52d127})[_0x3b9239('0x1c')](function(){const _0x42bbb9=_0x3b9239;logger['info'](_0x42bbb9('0x15'),_0x5a6beb,_0xd8804d[_0x42bbb9('0x9')](','),_0x52d127);})['catch'](function(_0x2505f1){const _0x2ec3d6=_0x3b9239;logger[_0x2ec3d6('0x10')](JSON[_0x2ec3d6('0x25')](_0x2505f1));});});},Migration['prototype']['removeIndex']=function(_0x212475,_0x593286){const _0xeca8f7=_0x480387,_0x547f46=this;this[_0xeca8f7('0xb')][_0xeca8f7('0x21')](function(){const _0x80e600=_0xeca8f7;return _0x547f46[_0x80e600('0x0')]['removeIndex'](_0x212475,_0x593286)[_0x80e600('0x1c')](function(){const _0x197096=_0x80e600;logger[_0x197096('0x10')](_0x197096('0x24'),_0x212475,_0x593286);})[_0x80e600('0x27')](function(_0x22384f){const _0x23b576=_0x80e600;logger[_0x23b576('0x10')](JSON['stringify'](_0x22384f));});});},Migration[_0x480387('0x14')]['query']=function(_0x412d2d){const _0x4f28d7=_0x480387,_0xe69b9b=this;this['sequence'][_0x4f28d7('0x21')](function(){const _0x12909c=_0x4f28d7;return _0xe69b9b[_0x12909c('0x0')]['sequelize'][_0x12909c('0x7')](_0x412d2d)['then'](function(){const _0x420922=_0x12909c;logger['info'](_0x420922('0x1e'),_0x412d2d);})[_0x12909c('0x27')](function(_0x28d5bb){const _0x2dfc93=_0x12909c;logger[_0x2dfc93('0x10')](JSON[_0x2dfc93('0x25')](_0x28d5bb));});});},Migration[_0x480387('0x14')][_0x480387('0xc')]=function(_0x593f9a,_0x1c57b6){const _0x378af7=_0x480387,_0x1d1125=this;this[_0x378af7('0xb')]['enqueue'](function(){const _0x2e4036=_0x378af7;return _0x1d1125[_0x2e4036('0x0')][_0x2e4036('0xc')](_0x593f9a,_0x1c57b6)['then'](function(){const _0x3f0e51=_0x2e4036;logger[_0x3f0e51('0x10')]('Removed\x20column\x20%s\x20from\x20%s',_0x1c57b6,_0x593f9a);})[_0x2e4036('0x27')](function(_0x1b6b16){const _0x53b2b8=_0x2e4036;logger[_0x53b2b8('0x10')](util[_0x53b2b8('0x8')](_0x1b6b16,{'showHidden':![],'depth':null}));});});},Migration[_0x480387('0x14')]['renameColumn']=function(_0x5d6995,_0xc9c66c,_0x1482b0){const _0x5c97fc=_0x480387,_0x38a91f=this;this[_0x5c97fc('0xb')][_0x5c97fc('0x21')](function(){const _0x36a9bf=_0x5c97fc;return _0x38a91f[_0x36a9bf('0x0')]['renameColumn'](_0x5d6995,_0xc9c66c,_0x1482b0)['then'](function(){const _0x388dca=_0x36a9bf;logger[_0x388dca('0x10')](_0x388dca('0xf'),_0xc9c66c,_0x1482b0,_0x5d6995);})[_0x36a9bf('0x27')](function(_0x8a2649){const _0xd03540=_0x36a9bf;logger[_0xd03540('0x10')](util[_0xd03540('0x8')](_0x8a2649,{'showHidden':![],'depth':null}));});});},Migration[_0x480387('0x14')]['final']=function(_0x5b61fc){const _0x2d79f3=_0x480387;this[_0x2d79f3('0xb')][_0x2d79f3('0x21')](function(){return _0x5b61fc();});},module[_0x480387('0x26')]={'up':function(_0x1ec753,_0x145164){return new Promise(function(_0x44fc37){const _0x2fac35=a952_0x54c5,_0xef7ec7=new Migration(_0x1ec753);_0xef7ec7[_0x2fac35('0x1a')](_0x2fac35('0x4'),_0x2fac35('0x17'),{'type':_0x145164[_0x2fac35('0x1d')]}),_0xef7ec7[_0x2fac35('0x1a')](_0x2fac35('0x5'),_0x2fac35('0x18'),{'type':_0x145164[_0x2fac35('0x2')]}),_0xef7ec7['addColumn']('cm_hopper_final',_0x2fac35('0xa'),{'type':_0x145164[_0x2fac35('0x2')]}),_0xef7ec7['addColumn'](_0x2fac35('0x19'),_0x2fac35('0x18'),{'type':_0x145164['STRING']}),_0xef7ec7[_0x2fac35('0x1a')](_0x2fac35('0x19'),'originatecalleridname',{'type':_0x145164[_0x2fac35('0x2')]}),_0xef7ec7[_0x2fac35('0x1a')]('cm_contacts',_0x2fac35('0xd'),{'type':_0x145164[_0x2fac35('0x2')]}),_0xef7ec7[_0x2fac35('0x1a')](_0x2fac35('0x22'),_0x2fac35('0x1f'),{'type':_0x145164['STRING']}),_0xef7ec7[_0x2fac35('0x1b')](_0x44fc37);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.74.js b/server/migrations/2.0.74.js index 28a6bdc..d34c7c0 100644 --- a/server/migrations/2.0.74.js +++ b/server/migrations/2.0.74.js @@ -1 +1 @@ -const a953_0x2d23=['final','../config/logger','join','addColumn','stringify','Removed\x20column\x20%s\x20from\x20%s','queryInterface','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex\x20%s\x20%s','removeIndex','migration','table\x20dropped\x20%s','renameColumn','inspect','tail','sequence','exports','sequelize','prototype','catch','then','info','enqueue','Added\x20column\x20%s\x20to\x20%s','util','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn','addIndex'];(function(_0x1749d1,_0x2d23d5){const _0x322c54=function(_0x5a76b9){while(--_0x5a76b9){_0x1749d1['push'](_0x1749d1['shift']());}};_0x322c54(++_0x2d23d5);}(a953_0x2d23,0x1a6));const a953_0x322c=function(_0x1749d1,_0x2d23d5){_0x1749d1=_0x1749d1-0x0;let _0x322c54=a953_0x2d23[_0x1749d1];return _0x322c54;};const _0x137193=a953_0x322c;'use strict';const util=require(_0x137193('0x8')),logger=require(_0x137193('0xe'))(_0x137193('0x17')),Sequence=function(){};Sequence['prototype'][_0x137193('0x6')]=function(_0x5a76b9){const _0x56456f=_0x137193;this['tail']=this[_0x56456f('0x1b')]?this[_0x56456f('0x1b')]['finally'](_0x5a76b9):_0x5a76b9();};const Migration=function(_0x3e0d2e){const _0x818764=_0x137193;this[_0x818764('0x13')]=_0x3e0d2e,this[_0x818764('0x1c')]=new Sequence();};Migration['prototype'][_0x137193('0x9')]=function(_0x2430eb,_0x20a670,_0x4d1310){const _0xa71e8f=_0x137193,_0x3c671d=this;this[_0xa71e8f('0x1c')]['enqueue'](function(){const _0x164e07=_0xa71e8f;return _0x3c671d['queryInterface'][_0x164e07('0x9')](_0x2430eb,_0x20a670,_0x4d1310)['then'](function(){const _0x56d7a9=_0x164e07;logger[_0x56d7a9('0x5')](_0x56d7a9('0x14'),_0x20a670,_0x2430eb);})[_0x164e07('0x3')](function(_0x353cee){const _0x1b2cb0=_0x164e07;logger[_0x1b2cb0('0x5')](JSON[_0x1b2cb0('0x11')](_0x353cee));});});},Migration[_0x137193('0x2')][_0x137193('0x10')]=function(_0x1d80e8,_0x11f316,_0x2e5766){const _0x475d3e=_0x137193,_0x33abe7=this;this['sequence'][_0x475d3e('0x6')](function(){const _0x10eca0=_0x475d3e;return _0x33abe7[_0x10eca0('0x13')][_0x10eca0('0x10')](_0x1d80e8,_0x11f316,_0x2e5766)[_0x10eca0('0x4')](function(){const _0x530edc=_0x10eca0;logger['info'](_0x530edc('0x7'),_0x11f316,_0x1d80e8);})[_0x10eca0('0x3')](function(_0x580556){const _0x5c0aff=_0x10eca0;logger[_0x5c0aff('0x5')](JSON[_0x5c0aff('0x11')](_0x580556));});});},Migration[_0x137193('0x2')]['dropTable']=function(_0x9d9403){const _0x4405e9=_0x137193,_0x36d2aa=this;this[_0x4405e9('0x1c')][_0x4405e9('0x6')](function(){const _0x175e39=_0x4405e9;return _0x36d2aa[_0x175e39('0x13')]['dropTable'](_0x9d9403,{'force':!![]})[_0x175e39('0x4')](function(){const _0x3d1f33=_0x175e39;logger['info'](_0x3d1f33('0x18'),_0x9d9403);})['catch'](function(_0x2b4ac0){const _0x39be5b=_0x175e39;logger[_0x39be5b('0x5')](JSON[_0x39be5b('0x11')](_0x2b4ac0));});});},Migration[_0x137193('0x2')][_0x137193('0xc')]=function(_0xab11ce,_0x289fba,_0x1d10f9){const _0x42dd6d=_0x137193,_0x2a9f6a=this;this['sequence'][_0x42dd6d('0x6')](function(){const _0x529187=_0x42dd6d;return _0x2a9f6a[_0x529187('0x13')][_0x529187('0xc')](_0xab11ce,_0x289fba,{'indexName':_0x1d10f9})['then'](function(){const _0x4962c9=_0x529187;logger[_0x4962c9('0x5')]('addIndex\x20%s\x20%s\x20%s',_0xab11ce,_0x289fba[_0x4962c9('0xf')](','),_0x1d10f9);})[_0x529187('0x3')](function(_0x13129b){const _0x2167d2=_0x529187;logger[_0x2167d2('0x5')](JSON[_0x2167d2('0x11')](_0x13129b));});});},Migration[_0x137193('0x2')]['removeIndex']=function(_0x46017c,_0x23b038){const _0x3bd755=_0x137193,_0x112527=this;this[_0x3bd755('0x1c')][_0x3bd755('0x6')](function(){const _0x1beb98=_0x3bd755;return _0x112527['queryInterface'][_0x1beb98('0x16')](_0x46017c,_0x23b038)[_0x1beb98('0x4')](function(){const _0x5938cf=_0x1beb98;logger[_0x5938cf('0x5')](_0x5938cf('0x15'),_0x46017c,_0x23b038);})[_0x1beb98('0x3')](function(_0x5ac3e2){const _0xacbab4=_0x1beb98;logger[_0xacbab4('0x5')](JSON[_0xacbab4('0x11')](_0x5ac3e2));});});},Migration[_0x137193('0x2')]['query']=function(_0x4c7f94){const _0x5960af=this;this['sequence']['enqueue'](function(){const _0x29c057=a953_0x322c;return _0x5960af[_0x29c057('0x13')][_0x29c057('0x1')]['query'](_0x4c7f94)[_0x29c057('0x4')](function(){const _0x1ac4e0=_0x29c057;logger[_0x1ac4e0('0x5')]('query\x20%s',_0x4c7f94);})['catch'](function(_0x4e00d0){const _0x891d13=_0x29c057;logger[_0x891d13('0x5')](JSON[_0x891d13('0x11')](_0x4e00d0));});});},Migration[_0x137193('0x2')][_0x137193('0xb')]=function(_0x16a224,_0x444df9){const _0x697d64=_0x137193,_0x175e44=this;this[_0x697d64('0x1c')][_0x697d64('0x6')](function(){const _0x1d01ae=_0x697d64;return _0x175e44['queryInterface'][_0x1d01ae('0xb')](_0x16a224,_0x444df9)['then'](function(){const _0x1e68e0=_0x1d01ae;logger[_0x1e68e0('0x5')](_0x1e68e0('0x12'),_0x444df9,_0x16a224);})[_0x1d01ae('0x3')](function(_0x4ee3b4){const _0x163dab=_0x1d01ae;logger['info'](util[_0x163dab('0x1a')](_0x4ee3b4,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x137193('0x19')]=function(_0x46d256,_0x1831ec,_0xab8c21){const _0x21c38e=_0x137193,_0x523483=this;this[_0x21c38e('0x1c')]['enqueue'](function(){const _0x1aaa5b=_0x21c38e;return _0x523483[_0x1aaa5b('0x13')][_0x1aaa5b('0x19')](_0x46d256,_0x1831ec,_0xab8c21)[_0x1aaa5b('0x4')](function(){const _0x224b79=_0x1aaa5b;logger['info'](_0x224b79('0xa'),_0x1831ec,_0xab8c21,_0x46d256);})[_0x1aaa5b('0x3')](function(_0x964553){logger['info'](util['inspect'](_0x964553,{'showHidden':![],'depth':null}));});});},Migration[_0x137193('0x2')][_0x137193('0xd')]=function(_0x4f35bf){this['sequence']['enqueue'](function(){return _0x4f35bf();});},module[_0x137193('0x0')]={'up':function(_0x17bddb){return new Promise(function(_0x1a4009){const _0x110020=new Migration(_0x17bddb);_0x110020['final'](_0x1a4009);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.75.js b/server/migrations/2.0.75.js index bb254e4..05dc426 100644 --- a/server/migrations/2.0.75.js +++ b/server/migrations/2.0.75.js @@ -1 +1 @@ -const a954_0x131b=['Removed\x20column\x20%s\x20from\x20%s','util','../config/logger','catch','queryInterface','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','prototype','sequence','enqueue','then','exports','removeIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','removeColumn','stringify','renameColumn','query\x20%s','addIndex','changeColumn','addIndex\x20%s\x20%s\x20%s','inspect','query','sequelize','migration','finally','table\x20dropped\x20%s','info','removeIndex\x20%s\x20%s'];(function(_0x33d6d6,_0x131b46){const _0x600299=function(_0x46be13){while(--_0x46be13){_0x33d6d6['push'](_0x33d6d6['shift']());}};_0x600299(++_0x131b46);}(a954_0x131b,0x11c));const a954_0x6002=function(_0x33d6d6,_0x131b46){_0x33d6d6=_0x33d6d6-0x0;let _0x600299=a954_0x131b[_0x33d6d6];return _0x600299;};const _0x1fb791=a954_0x6002;'use strict';const util=require(_0x1fb791('0x7')),logger=require(_0x1fb791('0x8'))(_0x1fb791('0x1')),Sequence=function(){};Sequence[_0x1fb791('0xc')][_0x1fb791('0xe')]=function(_0x46be13){const _0x521504=_0x1fb791;this[_0x521504('0x13')]=this['tail']?this['tail'][_0x521504('0x2')](_0x46be13):_0x46be13();};const Migration=function(_0x46baf7){const _0x51ff3e=_0x1fb791;this[_0x51ff3e('0xa')]=_0x46baf7,this[_0x51ff3e('0xd')]=new Sequence();};Migration[_0x1fb791('0xc')][_0x1fb791('0x19')]=function(_0x1e4a43,_0x4167c8,_0x44833e){const _0x2070af=this;this['sequence']['enqueue'](function(){const _0x33f130=a954_0x6002;return _0x2070af['queryInterface']['changeColumn'](_0x1e4a43,_0x4167c8,_0x44833e)['then'](function(){const _0x1ae7b6=a954_0x6002;logger[_0x1ae7b6('0x4')](_0x1ae7b6('0x12'),_0x4167c8,_0x1e4a43);})[_0x33f130('0x9')](function(_0x349b96){const _0x3ef340=_0x33f130;logger[_0x3ef340('0x4')](JSON[_0x3ef340('0x15')](_0x349b96));});});},Migration[_0x1fb791('0xc')]['addColumn']=function(_0x4fde42,_0x2cb56c,_0x59d3e3){const _0x57eed6=_0x1fb791,_0x54a733=this;this['sequence'][_0x57eed6('0xe')](function(){const _0x160b55=_0x57eed6;return _0x54a733[_0x160b55('0xa')]['addColumn'](_0x4fde42,_0x2cb56c,_0x59d3e3)[_0x160b55('0xf')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x2cb56c,_0x4fde42);})[_0x160b55('0x9')](function(_0x1608e5){const _0x4cf59f=_0x160b55;logger[_0x4cf59f('0x4')](JSON[_0x4cf59f('0x15')](_0x1608e5));});});},Migration[_0x1fb791('0xc')]['dropTable']=function(_0x507138){const _0x5e1858=_0x1fb791,_0x253a61=this;this['sequence'][_0x5e1858('0xe')](function(){const _0x1213d7=_0x5e1858;return _0x253a61[_0x1213d7('0xa')]['dropTable'](_0x507138,{'force':!![]})[_0x1213d7('0xf')](function(){const _0x1abf1b=_0x1213d7;logger[_0x1abf1b('0x4')](_0x1abf1b('0x3'),_0x507138);})[_0x1213d7('0x9')](function(_0x35d679){const _0x3d455e=_0x1213d7;logger[_0x3d455e('0x4')](JSON[_0x3d455e('0x15')](_0x35d679));});});},Migration['prototype'][_0x1fb791('0x18')]=function(_0x1d7d2f,_0x2f8f00,_0x3c7098){const _0x46ed43=_0x1fb791,_0x3089ce=this;this[_0x46ed43('0xd')][_0x46ed43('0xe')](function(){const _0x20e73d=_0x46ed43;return _0x3089ce[_0x20e73d('0xa')]['addIndex'](_0x1d7d2f,_0x2f8f00,{'indexName':_0x3c7098})['then'](function(){const _0xfc1e75=_0x20e73d;logger['info'](_0xfc1e75('0x1a'),_0x1d7d2f,_0x2f8f00['join'](','),_0x3c7098);})[_0x20e73d('0x9')](function(_0x3dcfa0){const _0x417e0e=_0x20e73d;logger[_0x417e0e('0x4')](JSON[_0x417e0e('0x15')](_0x3dcfa0));});});},Migration[_0x1fb791('0xc')][_0x1fb791('0x11')]=function(_0x207e2b,_0x5143dc){const _0x30d3b2=_0x1fb791,_0x4d99a2=this;this[_0x30d3b2('0xd')][_0x30d3b2('0xe')](function(){const _0x1a1b7a=_0x30d3b2;return _0x4d99a2[_0x1a1b7a('0xa')]['removeIndex'](_0x207e2b,_0x5143dc)[_0x1a1b7a('0xf')](function(){const _0x1770e7=_0x1a1b7a;logger[_0x1770e7('0x4')](_0x1770e7('0x5'),_0x207e2b,_0x5143dc);})[_0x1a1b7a('0x9')](function(_0x39758d){const _0x3e14de=_0x1a1b7a;logger[_0x3e14de('0x4')](JSON[_0x3e14de('0x15')](_0x39758d));});});},Migration[_0x1fb791('0xc')][_0x1fb791('0x1c')]=function(_0x27f90d){const _0x3b0bf6=_0x1fb791,_0x147640=this;this[_0x3b0bf6('0xd')][_0x3b0bf6('0xe')](function(){const _0x4fe7ff=_0x3b0bf6;return _0x147640[_0x4fe7ff('0xa')][_0x4fe7ff('0x0')][_0x4fe7ff('0x1c')](_0x27f90d)[_0x4fe7ff('0xf')](function(){const _0x3418b2=_0x4fe7ff;logger[_0x3418b2('0x4')](_0x3418b2('0x17'),_0x27f90d);})[_0x4fe7ff('0x9')](function(_0x301707){const _0x367688=_0x4fe7ff;logger['info'](JSON[_0x367688('0x15')](_0x301707));});});},Migration[_0x1fb791('0xc')]['removeColumn']=function(_0x47af4e,_0x5b36d0){const _0x404cce=_0x1fb791,_0x5856b6=this;this[_0x404cce('0xd')][_0x404cce('0xe')](function(){const _0x309c90=_0x404cce;return _0x5856b6['queryInterface'][_0x309c90('0x14')](_0x47af4e,_0x5b36d0)['then'](function(){const _0x24229c=_0x309c90;logger['info'](_0x24229c('0x6'),_0x5b36d0,_0x47af4e);})['catch'](function(_0x1d1873){const _0x19ae87=_0x309c90;logger[_0x19ae87('0x4')](util[_0x19ae87('0x1b')](_0x1d1873,{'showHidden':![],'depth':null}));});});},Migration[_0x1fb791('0xc')][_0x1fb791('0x16')]=function(_0x42e34a,_0x2df150,_0x2217fc){const _0x3de7bd=_0x1fb791,_0x501e9a=this;this[_0x3de7bd('0xd')]['enqueue'](function(){const _0x52b904=_0x3de7bd;return _0x501e9a[_0x52b904('0xa')][_0x52b904('0x16')](_0x42e34a,_0x2df150,_0x2217fc)[_0x52b904('0xf')](function(){const _0x3b5219=_0x52b904;logger[_0x3b5219('0x4')](_0x3b5219('0xb'),_0x2df150,_0x2217fc,_0x42e34a);})[_0x52b904('0x9')](function(_0x73453b){logger['info'](util['inspect'](_0x73453b,{'showHidden':![],'depth':null}));});});},Migration[_0x1fb791('0xc')]['final']=function(_0xcfd821){const _0x2f5d69=_0x1fb791;this['sequence'][_0x2f5d69('0xe')](function(){return _0xcfd821();});},module[_0x1fb791('0x10')]={'up':function(_0x1bd0e1){return new Promise(function(_0xee542f){const _0x38781c=new Migration(_0x1bd0e1);_0x38781c['final'](_0xee542f);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.76.js b/server/migrations/2.0.76.js index 869e8e2..d01a816 100644 --- a/server/migrations/2.0.76.js +++ b/server/migrations/2.0.76.js @@ -1 +1 @@ -const a955_0x3767=['final','sequelize','ALTER\x20TABLE\x20report_fax_transfer\x20ENCRYPTION=\x27Y\x27;','TRUNCATE\x20sessions','prototype','table\x20dropped\x20%s','migration','addIndex\x20%s\x20%s\x20%s','removeIndex\x20%s\x20%s','query\x20%s','inspect','util','join','addIndex','changeColumn','dropTable','query','sequence','users','queryInterface','addColumn','tail','renameColumn','removeIndex','enqueue','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','removeColumn','Added\x20column\x20%s\x20to\x20%s','then','BOOLEAN','stringify','catch'];(function(_0x50b248,_0x3767c0){const _0x16e8d7=function(_0x50af60){while(--_0x50af60){_0x50b248['push'](_0x50b248['shift']());}};_0x16e8d7(++_0x3767c0);}(a955_0x3767,0x17c));const a955_0x16e8=function(_0x50b248,_0x3767c0){_0x50b248=_0x50b248-0x0;let _0x16e8d7=a955_0x3767[_0x50b248];return _0x16e8d7;};const _0x9ccb77=a955_0x16e8;'use strict';const util=require(_0x9ccb77('0x1b')),logger=require('../config/logger')(_0x9ccb77('0x16')),Sequence=function(){};Sequence[_0x9ccb77('0x14')][_0x9ccb77('0x7')]=function(_0x50af60){const _0xf8a058=_0x9ccb77;this[_0xf8a058('0x4')]=this[_0xf8a058('0x4')]?this[_0xf8a058('0x4')]['finally'](_0x50af60):_0x50af60();};const Migration=function(_0x16e0f7){const _0xaa250e=_0x9ccb77;this[_0xaa250e('0x2')]=_0x16e0f7,this['sequence']=new Sequence();};Migration[_0x9ccb77('0x14')][_0x9ccb77('0x1e')]=function(_0x467320,_0x148221,_0x389cbe){const _0x590ec8=_0x9ccb77,_0x11948b=this;this[_0x590ec8('0x0')]['enqueue'](function(){const _0x48e348=_0x590ec8;return _0x11948b[_0x48e348('0x2')][_0x48e348('0x1e')](_0x467320,_0x148221,_0x389cbe)[_0x48e348('0xc')](function(){const _0x546a68=_0x48e348;logger[_0x546a68('0x9')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x148221,_0x467320);})[_0x48e348('0xf')](function(_0xd3e10e){const _0x53241e=_0x48e348;logger[_0x53241e('0x9')](JSON[_0x53241e('0xe')](_0xd3e10e));});});},Migration['prototype']['addColumn']=function(_0x7ca1d1,_0x32c817,_0x494587){const _0x235466=_0x9ccb77,_0x425107=this;this[_0x235466('0x0')][_0x235466('0x7')](function(){const _0x500a69=_0x235466;return _0x425107['queryInterface'][_0x500a69('0x3')](_0x7ca1d1,_0x32c817,_0x494587)['then'](function(){const _0x3dcd1e=_0x500a69;logger[_0x3dcd1e('0x9')](_0x3dcd1e('0xb'),_0x32c817,_0x7ca1d1);})[_0x500a69('0xf')](function(_0x3dc894){const _0x76b612=_0x500a69;logger[_0x76b612('0x9')](JSON[_0x76b612('0xe')](_0x3dc894));});});},Migration[_0x9ccb77('0x14')]['dropTable']=function(_0x590ad0){const _0x3f1141=_0x9ccb77,_0x37b902=this;this[_0x3f1141('0x0')][_0x3f1141('0x7')](function(){const _0x4e9c2f=_0x3f1141;return _0x37b902[_0x4e9c2f('0x2')][_0x4e9c2f('0x1f')](_0x590ad0,{'force':!![]})[_0x4e9c2f('0xc')](function(){const _0x12c91=_0x4e9c2f;logger[_0x12c91('0x9')](_0x12c91('0x15'),_0x590ad0);})['catch'](function(_0x18e074){const _0x23ebb2=_0x4e9c2f;logger[_0x23ebb2('0x9')](JSON['stringify'](_0x18e074));});});},Migration[_0x9ccb77('0x14')][_0x9ccb77('0x1d')]=function(_0x190f54,_0x478f66,_0x17f4c8){const _0x5f10b7=_0x9ccb77,_0x59bc95=this;this[_0x5f10b7('0x0')][_0x5f10b7('0x7')](function(){const _0x46c337=_0x5f10b7;return _0x59bc95[_0x46c337('0x2')][_0x46c337('0x1d')](_0x190f54,_0x478f66,{'indexName':_0x17f4c8})['then'](function(){const _0x9571b9=_0x46c337;logger[_0x9571b9('0x9')](_0x9571b9('0x17'),_0x190f54,_0x478f66[_0x9571b9('0x1c')](','),_0x17f4c8);})[_0x46c337('0xf')](function(_0x167829){const _0x5e04e5=_0x46c337;logger[_0x5e04e5('0x9')](JSON[_0x5e04e5('0xe')](_0x167829));});});},Migration[_0x9ccb77('0x14')][_0x9ccb77('0x6')]=function(_0x48c644,_0x4caca0){const _0x59a369=_0x9ccb77,_0x3db052=this;this[_0x59a369('0x0')]['enqueue'](function(){const _0x4cccb7=_0x59a369;return _0x3db052[_0x4cccb7('0x2')][_0x4cccb7('0x6')](_0x48c644,_0x4caca0)['then'](function(){const _0x81a3de=_0x4cccb7;logger['info'](_0x81a3de('0x18'),_0x48c644,_0x4caca0);})['catch'](function(_0x3ad684){const _0xdb39a3=_0x4cccb7;logger[_0xdb39a3('0x9')](JSON[_0xdb39a3('0xe')](_0x3ad684));});});},Migration[_0x9ccb77('0x14')]['query']=function(_0x5da14e){const _0x3efeb6=_0x9ccb77,_0x4f4b5b=this;this[_0x3efeb6('0x0')][_0x3efeb6('0x7')](function(){const _0x37ae0e=_0x3efeb6;return _0x4f4b5b[_0x37ae0e('0x2')][_0x37ae0e('0x11')][_0x37ae0e('0x20')](_0x5da14e)[_0x37ae0e('0xc')](function(){const _0x1d42df=_0x37ae0e;logger[_0x1d42df('0x9')](_0x1d42df('0x19'),_0x5da14e);})[_0x37ae0e('0xf')](function(_0x12c026){logger['info'](JSON['stringify'](_0x12c026));});});},Migration[_0x9ccb77('0x14')][_0x9ccb77('0xa')]=function(_0xb26405,_0x11ac03){const _0x5b5985=_0x9ccb77,_0x16a519=this;this[_0x5b5985('0x0')]['enqueue'](function(){const _0x242482=_0x5b5985;return _0x16a519['queryInterface'][_0x242482('0xa')](_0xb26405,_0x11ac03)[_0x242482('0xc')](function(){const _0x2235ce=_0x242482;logger[_0x2235ce('0x9')]('Removed\x20column\x20%s\x20from\x20%s',_0x11ac03,_0xb26405);})[_0x242482('0xf')](function(_0x337aaa){const _0x1b46fc=_0x242482;logger['info'](util[_0x1b46fc('0x1a')](_0x337aaa,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x4fb9fd,_0x3940c2,_0x39b405){const _0x29ee56=_0x9ccb77,_0x2decdb=this;this[_0x29ee56('0x0')]['enqueue'](function(){const _0x1207d6=_0x29ee56;return _0x2decdb[_0x1207d6('0x2')][_0x1207d6('0x5')](_0x4fb9fd,_0x3940c2,_0x39b405)['then'](function(){const _0x33a774=_0x1207d6;logger['info'](_0x33a774('0x8'),_0x3940c2,_0x39b405,_0x4fb9fd);})[_0x1207d6('0xf')](function(_0x295762){const _0x55be35=_0x1207d6;logger[_0x55be35('0x9')](util['inspect'](_0x295762,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x4d69f6){const _0x26792b=_0x9ccb77;this['sequence'][_0x26792b('0x7')](function(){return _0x4d69f6();});},module['exports']={'up':function(_0x5897ab,_0xa306d6){return new Promise(function(_0x46c8a7){const _0x279bc5=a955_0x16e8,_0x17b320=new Migration(_0x5897ab);_0x17b320[_0x279bc5('0x20')](_0x279bc5('0x13')),_0x17b320[_0x279bc5('0x20')]('ALTER\x20TABLE\x20report_chat_transfer\x20ENCRYPTION=\x27Y\x27;'),_0x17b320[_0x279bc5('0x20')]('ALTER\x20TABLE\x20report_mail_transfer\x20ENCRYPTION=\x27Y\x27;'),_0x17b320[_0x279bc5('0x20')](_0x279bc5('0x12')),_0x17b320['query']('ALTER\x20TABLE\x20report_openchannel_transfer\x20ENCRYPTION=\x27Y\x27;'),_0x17b320['query']('ALTER\x20TABLE\x20report_sms_transfer\x20ENCRYPTION=\x27Y\x27;'),_0x17b320[_0x279bc5('0x3')](_0x279bc5('0x1'),'hotdesk',{'type':_0xa306d6[_0x279bc5('0xd')],'defaultValue':![]}),_0x17b320[_0x279bc5('0x10')](_0x46c8a7);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.77.js b/server/migrations/2.0.77.js index c59757c..e25915e 100644 --- a/server/migrations/2.0.77.js +++ b/server/migrations/2.0.77.js @@ -1 +1 @@ -const a956_0x350b=['queryInterface','addColumn','report_square','query','query\x20%s','final','finally','bot','inspect','interface','then','addIndex','renameColumn','prototype','BOOLEAN','enqueue','removeColumn','removeIndex\x20%s\x20%s','users','catch','sequence','sequelize','privacyEnabled','STRING','join','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','changeColumn','../config/logger','migration','removeIndex','addIndex\x20%s\x20%s\x20%s','dropTable','info','tail','stringify'];(function(_0x438688,_0x350b40){const _0x431c62=function(_0x14d656){while(--_0x14d656){_0x438688['push'](_0x438688['shift']());}};_0x431c62(++_0x350b40);}(a956_0x350b,0xde));const a956_0x431c=function(_0x438688,_0x350b40){_0x438688=_0x438688-0x0;let _0x431c62=a956_0x350b[_0x438688];return _0x431c62;};const _0x477b93=a956_0x431c;'use strict';const util=require('util'),logger=require(_0x477b93('0xf'))(_0x477b93('0x10')),Sequence=function(){};Sequence[_0x477b93('0x1')]['enqueue']=function(_0x14d656){const _0x2807bd=_0x477b93;this[_0x2807bd('0x15')]=this['tail']?this[_0x2807bd('0x15')][_0x2807bd('0x1d')](_0x14d656):_0x14d656();};const Migration=function(_0x1cff4b){const _0x38638b=_0x477b93;this['queryInterface']=_0x1cff4b,this[_0x38638b('0x8')]=new Sequence();};Migration['prototype'][_0x477b93('0xe')]=function(_0x3c6354,_0x2d0069,_0x4425bd){const _0x46543d=_0x477b93,_0x20c517=this;this[_0x46543d('0x8')][_0x46543d('0x3')](function(){const _0x5b3956=_0x46543d;return _0x20c517['queryInterface'][_0x5b3956('0xe')](_0x3c6354,_0x2d0069,_0x4425bd)[_0x5b3956('0x21')](function(){const _0x149bc5=_0x5b3956;logger[_0x149bc5('0x14')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x2d0069,_0x3c6354);})[_0x5b3956('0x7')](function(_0x4eb617){const _0x18fc43=_0x5b3956;logger[_0x18fc43('0x14')](JSON[_0x18fc43('0x16')](_0x4eb617));});});},Migration[_0x477b93('0x1')][_0x477b93('0x18')]=function(_0x697204,_0x9a5625,_0x260dea){const _0x23d685=_0x477b93,_0x29a9e2=this;this['sequence'][_0x23d685('0x3')](function(){const _0x335efe=_0x23d685;return _0x29a9e2[_0x335efe('0x17')][_0x335efe('0x18')](_0x697204,_0x9a5625,_0x260dea)[_0x335efe('0x21')](function(){const _0x315d7f=_0x335efe;logger[_0x315d7f('0x14')]('Added\x20column\x20%s\x20to\x20%s',_0x9a5625,_0x697204);})[_0x335efe('0x7')](function(_0x53265b){const _0x10b90c=_0x335efe;logger[_0x10b90c('0x14')](JSON[_0x10b90c('0x16')](_0x53265b));});});},Migration[_0x477b93('0x1')][_0x477b93('0x13')]=function(_0xe21d5a){const _0x3a0070=_0x477b93,_0x4ede1d=this;this[_0x3a0070('0x8')]['enqueue'](function(){const _0x143868=_0x3a0070;return _0x4ede1d[_0x143868('0x17')][_0x143868('0x13')](_0xe21d5a,{'force':!![]})['then'](function(){const _0xfb351e=_0x143868;logger[_0xfb351e('0x14')]('table\x20dropped\x20%s',_0xe21d5a);})[_0x143868('0x7')](function(_0x40d4a5){const _0x2a3d36=_0x143868;logger['info'](JSON[_0x2a3d36('0x16')](_0x40d4a5));});});},Migration[_0x477b93('0x1')][_0x477b93('0x22')]=function(_0x42e7c0,_0x206cc6,_0x7738e0){const _0x355013=_0x477b93,_0x29441b=this;this[_0x355013('0x8')][_0x355013('0x3')](function(){const _0x3eccac=_0x355013;return _0x29441b[_0x3eccac('0x17')][_0x3eccac('0x22')](_0x42e7c0,_0x206cc6,{'indexName':_0x7738e0})[_0x3eccac('0x21')](function(){const _0x40fffa=_0x3eccac;logger[_0x40fffa('0x14')](_0x40fffa('0x12'),_0x42e7c0,_0x206cc6[_0x40fffa('0xc')](','),_0x7738e0);})[_0x3eccac('0x7')](function(_0x422c22){logger['info'](JSON['stringify'](_0x422c22));});});},Migration[_0x477b93('0x1')][_0x477b93('0x11')]=function(_0x57d261,_0x32750b){const _0x2d387f=_0x477b93,_0x5e8fd4=this;this[_0x2d387f('0x8')][_0x2d387f('0x3')](function(){const _0x32425a=_0x2d387f;return _0x5e8fd4[_0x32425a('0x17')]['removeIndex'](_0x57d261,_0x32750b)[_0x32425a('0x21')](function(){const _0x408445=_0x32425a;logger['info'](_0x408445('0x5'),_0x57d261,_0x32750b);})[_0x32425a('0x7')](function(_0x57f091){const _0x4a2545=_0x32425a;logger[_0x4a2545('0x14')](JSON[_0x4a2545('0x16')](_0x57f091));});});},Migration[_0x477b93('0x1')][_0x477b93('0x1a')]=function(_0x5c690a){const _0x4b2bbd=_0x477b93,_0x339fe1=this;this[_0x4b2bbd('0x8')]['enqueue'](function(){const _0x463b02=_0x4b2bbd;return _0x339fe1[_0x463b02('0x17')][_0x463b02('0x9')][_0x463b02('0x1a')](_0x5c690a)['then'](function(){const _0x1c8267=_0x463b02;logger[_0x1c8267('0x14')](_0x1c8267('0x1b'),_0x5c690a);})[_0x463b02('0x7')](function(_0x162eb6){const _0x58d3f0=_0x463b02;logger[_0x58d3f0('0x14')](JSON[_0x58d3f0('0x16')](_0x162eb6));});});},Migration[_0x477b93('0x1')]['removeColumn']=function(_0x43206b,_0x2f5d69){const _0x307868=_0x477b93,_0x1107bd=this;this[_0x307868('0x8')][_0x307868('0x3')](function(){const _0x2dfa55=_0x307868;return _0x1107bd['queryInterface'][_0x2dfa55('0x4')](_0x43206b,_0x2f5d69)[_0x2dfa55('0x21')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x2f5d69,_0x43206b);})[_0x2dfa55('0x7')](function(_0x2b065a){const _0xf63916=_0x2dfa55;logger[_0xf63916('0x14')](util[_0xf63916('0x1f')](_0x2b065a,{'showHidden':![],'depth':null}));});});},Migration[_0x477b93('0x1')][_0x477b93('0x0')]=function(_0x3f7bfa,_0x418abd,_0x40c69b){const _0x12e73f=_0x477b93,_0x53cc58=this;this[_0x12e73f('0x8')]['enqueue'](function(){const _0xf060f9=_0x12e73f;return _0x53cc58[_0xf060f9('0x17')]['renameColumn'](_0x3f7bfa,_0x418abd,_0x40c69b)[_0xf060f9('0x21')](function(){const _0x1537dd=_0xf060f9;logger[_0x1537dd('0x14')](_0x1537dd('0xd'),_0x418abd,_0x40c69b,_0x3f7bfa);})[_0xf060f9('0x7')](function(_0x3c5b58){const _0x1e4f03=_0xf060f9;logger[_0x1e4f03('0x14')](util['inspect'](_0x3c5b58,{'showHidden':![],'depth':null}));});});},Migration[_0x477b93('0x1')][_0x477b93('0x1c')]=function(_0x5b2b3e){const _0x11902b=_0x477b93;this['sequence'][_0x11902b('0x3')](function(){return _0x5b2b3e();});},module['exports']={'up':function(_0x154e01,_0x1c6a33){return new Promise(function(_0x21165a){const _0x39d156=a956_0x431c,_0x549c00=new Migration(_0x154e01);_0x549c00[_0x39d156('0x18')](_0x39d156('0x19'),_0x39d156('0x1e'),{'type':_0x1c6a33['BOOLEAN'],'defaultValue':![]}),_0x549c00[_0x39d156('0x18')](_0x39d156('0x6'),_0x39d156('0x20'),{'type':_0x1c6a33[_0x39d156('0xb')],'defaultValue':null}),_0x549c00['addColumn'](_0x39d156('0x6'),_0x39d156('0xa'),{'type':_0x1c6a33[_0x39d156('0x2')],'defaultValue':![]}),_0x549c00[_0x39d156('0x1c')](_0x21165a);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.78.js b/server/migrations/2.0.78.js index 3d88323..92e322e 100644 --- a/server/migrations/2.0.78.js +++ b/server/migrations/2.0.78.js @@ -1 +1 @@ -const a957_0x5a76=['queryInterface','sequence','Removed\x20column\x20%s\x20from\x20%s','table\x20dropped\x20%s','addIndex\x20%s\x20%s\x20%s','ALTER\x20TABLE\x20square_messages\x20ENCRYPTION=\x27Y\x27;','migration','info','tail','removeColumn','util','exports','query\x20%s','join','stringify','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','../config/logger','query','addColumn','addIndex','Added\x20column\x20%s\x20to\x20%s','dropTable','sequelize','enqueue','final','catch','renameColumn','removeIndex','then','inspect'];(function(_0x59a218,_0x5a768f){const _0x1e4e9a=function(_0xa5ff20){while(--_0xa5ff20){_0x59a218['push'](_0x59a218['shift']());}};_0x1e4e9a(++_0x5a768f);}(a957_0x5a76,0x118));const a957_0x1e4e=function(_0x59a218,_0x5a768f){_0x59a218=_0x59a218-0x0;let _0x1e4e9a=a957_0x5a76[_0x59a218];return _0x1e4e9a;};const _0x493397=a957_0x1e4e;'use strict';const util=require(_0x493397('0x9')),logger=require(_0x493397('0x10'))(_0x493397('0x5')),Sequence=function(){};Sequence[_0x493397('0xf')]['enqueue']=function(_0xa5ff20){const _0x62905b=_0x493397;this[_0x62905b('0x7')]=this[_0x62905b('0x7')]?this['tail']['finally'](_0xa5ff20):_0xa5ff20();};const Migration=function(_0x1b945c){const _0x39d741=_0x493397;this['queryInterface']=_0x1b945c,this[_0x39d741('0x0')]=new Sequence();};Migration[_0x493397('0xf')]['changeColumn']=function(_0x555399,_0x306544,_0x311905){const _0x47729c=_0x493397,_0x1c9106=this;this[_0x47729c('0x0')]['enqueue'](function(){const _0x1a9946=_0x47729c;return _0x1c9106[_0x1a9946('0x1e')]['changeColumn'](_0x555399,_0x306544,_0x311905)['then'](function(){const _0x7c3018=_0x1a9946;logger[_0x7c3018('0x6')](_0x7c3018('0xe'),_0x306544,_0x555399);})[_0x1a9946('0x19')](function(_0x1b5a17){const _0x114b74=_0x1a9946;logger['info'](JSON[_0x114b74('0xd')](_0x1b5a17));});});},Migration[_0x493397('0xf')]['addColumn']=function(_0x5bb691,_0x2a6e59,_0x4adc13){const _0x47411b=_0x493397,_0x31c562=this;this[_0x47411b('0x0')]['enqueue'](function(){const _0x5ab7f8=_0x47411b;return _0x31c562[_0x5ab7f8('0x1e')][_0x5ab7f8('0x12')](_0x5bb691,_0x2a6e59,_0x4adc13)[_0x5ab7f8('0x1c')](function(){const _0x55c74f=_0x5ab7f8;logger[_0x55c74f('0x6')](_0x55c74f('0x14'),_0x2a6e59,_0x5bb691);})[_0x5ab7f8('0x19')](function(_0x41d197){const _0x391ad7=_0x5ab7f8;logger['info'](JSON[_0x391ad7('0xd')](_0x41d197));});});},Migration['prototype']['dropTable']=function(_0x2e6373){const _0x5bf9bb=_0x493397,_0x5e4b06=this;this[_0x5bf9bb('0x0')][_0x5bf9bb('0x17')](function(){const _0x9b8bd3=_0x5bf9bb;return _0x5e4b06[_0x9b8bd3('0x1e')][_0x9b8bd3('0x15')](_0x2e6373,{'force':!![]})[_0x9b8bd3('0x1c')](function(){const _0x4d4aac=_0x9b8bd3;logger['info'](_0x4d4aac('0x2'),_0x2e6373);})[_0x9b8bd3('0x19')](function(_0x4d047b){const _0x4fb400=_0x9b8bd3;logger[_0x4fb400('0x6')](JSON[_0x4fb400('0xd')](_0x4d047b));});});},Migration['prototype'][_0x493397('0x13')]=function(_0x4aee74,_0x303b99,_0x14678a){const _0x49458b=_0x493397,_0x15af92=this;this[_0x49458b('0x0')]['enqueue'](function(){const _0x1be466=_0x49458b;return _0x15af92[_0x1be466('0x1e')][_0x1be466('0x13')](_0x4aee74,_0x303b99,{'indexName':_0x14678a})[_0x1be466('0x1c')](function(){const _0x497160=_0x1be466;logger[_0x497160('0x6')](_0x497160('0x3'),_0x4aee74,_0x303b99[_0x497160('0xc')](','),_0x14678a);})[_0x1be466('0x19')](function(_0x17ce13){const _0x49c877=_0x1be466;logger[_0x49c877('0x6')](JSON[_0x49c877('0xd')](_0x17ce13));});});},Migration[_0x493397('0xf')][_0x493397('0x1b')]=function(_0x1fbcb4,_0x4a5c4e){const _0x3915f6=_0x493397,_0x19bc04=this;this[_0x3915f6('0x0')][_0x3915f6('0x17')](function(){const _0x2fba1f=_0x3915f6;return _0x19bc04[_0x2fba1f('0x1e')][_0x2fba1f('0x1b')](_0x1fbcb4,_0x4a5c4e)[_0x2fba1f('0x1c')](function(){const _0x3a0a50=_0x2fba1f;logger[_0x3a0a50('0x6')]('removeIndex\x20%s\x20%s',_0x1fbcb4,_0x4a5c4e);})[_0x2fba1f('0x19')](function(_0x383cd8){const _0x2f9964=_0x2fba1f;logger[_0x2f9964('0x6')](JSON[_0x2f9964('0xd')](_0x383cd8));});});},Migration[_0x493397('0xf')]['query']=function(_0x38fe80){const _0x574d89=this;this['sequence']['enqueue'](function(){const _0x479353=a957_0x1e4e;return _0x574d89[_0x479353('0x1e')][_0x479353('0x16')]['query'](_0x38fe80)[_0x479353('0x1c')](function(){const _0x5f05ec=_0x479353;logger[_0x5f05ec('0x6')](_0x5f05ec('0xb'),_0x38fe80);})[_0x479353('0x19')](function(_0x474116){const _0x4f03ed=_0x479353;logger[_0x4f03ed('0x6')](JSON['stringify'](_0x474116));});});},Migration['prototype'][_0x493397('0x8')]=function(_0x1cab4e,_0x3dafcc){const _0x4bcdb6=_0x493397,_0x53e7be=this;this[_0x4bcdb6('0x0')][_0x4bcdb6('0x17')](function(){const _0x4b37c0=_0x4bcdb6;return _0x53e7be[_0x4b37c0('0x1e')][_0x4b37c0('0x8')](_0x1cab4e,_0x3dafcc)['then'](function(){const _0x1492e8=_0x4b37c0;logger['info'](_0x1492e8('0x1'),_0x3dafcc,_0x1cab4e);})[_0x4b37c0('0x19')](function(_0x49f984){const _0x10d2ef=_0x4b37c0;logger['info'](util[_0x10d2ef('0x1d')](_0x49f984,{'showHidden':![],'depth':null}));});});},Migration[_0x493397('0xf')][_0x493397('0x1a')]=function(_0x377e55,_0x3478ee,_0x393780){const _0x57e3aa=_0x493397,_0x1573be=this;this['sequence'][_0x57e3aa('0x17')](function(){const _0x3a2196=_0x57e3aa;return _0x1573be['queryInterface'][_0x3a2196('0x1a')](_0x377e55,_0x3478ee,_0x393780)['then'](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3478ee,_0x393780,_0x377e55);})['catch'](function(_0x3adf22){const _0x4d8d89=_0x3a2196;logger[_0x4d8d89('0x6')](util[_0x4d8d89('0x1d')](_0x3adf22,{'showHidden':![],'depth':null}));});});},Migration[_0x493397('0xf')][_0x493397('0x18')]=function(_0x13d336){const _0x4a0da3=_0x493397;this[_0x4a0da3('0x0')][_0x4a0da3('0x17')](function(){return _0x13d336();});},module[_0x493397('0xa')]={'up':function(_0x365d20){return new Promise(function(_0x347973){const _0x4623c0=a957_0x1e4e,_0x493b9b=new Migration(_0x365d20);_0x493b9b[_0x4623c0('0x11')](_0x4623c0('0x4')),_0x493b9b['final'](_0x347973);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.79.js b/server/migrations/2.0.79.js index 507c460..3b4163b 100644 --- a/server/migrations/2.0.79.js +++ b/server/migrations/2.0.79.js @@ -1 +1 @@ -const a958_0x5350=['enqueue','addIndex','../config/logger','catch','Added\x20column\x20%s\x20to\x20%s','util','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','join','migration','tail','Removed\x20column\x20%s\x20from\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','addColumn','final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','then','query\x20%s','table\x20dropped\x20%s','inspect','sequence','changeColumn','exports','removeIndex','prototype','removeIndex\x20%s\x20%s','renameColumn','info','query','dropTable'];(function(_0x108f42,_0x5350c7){const _0x8eb424=function(_0x29cf81){while(--_0x29cf81){_0x108f42['push'](_0x108f42['shift']());}};_0x8eb424(++_0x5350c7);}(a958_0x5350,0x98));const a958_0x8eb4=function(_0x108f42,_0x5350c7){_0x108f42=_0x108f42-0x0;let _0x8eb424=a958_0x5350[_0x108f42];return _0x8eb424;};const _0x4d82ec=a958_0x8eb4;'use strict';const util=require(_0x4d82ec('0x8')),logger=require(_0x4d82ec('0x5'))(_0x4d82ec('0xb')),Sequence=function(){};Sequence[_0x4d82ec('0x1c')]['enqueue']=function(_0x29cf81){const _0x73014e=_0x4d82ec;this[_0x73014e('0xc')]=this[_0x73014e('0xc')]?this[_0x73014e('0xc')]['finally'](_0x29cf81):_0x29cf81();};const Migration=function(_0xed0bb9){const _0x441407=_0x4d82ec;this['queryInterface']=_0xed0bb9,this[_0x441407('0x18')]=new Sequence();};Migration['prototype'][_0x4d82ec('0x19')]=function(_0x17e449,_0x285297,_0x209e72){const _0x36c2e9=_0x4d82ec,_0x35bc4d=this;this[_0x36c2e9('0x18')][_0x36c2e9('0x3')](function(){const _0x37e39e=_0x36c2e9;return _0x35bc4d[_0x37e39e('0x13')][_0x37e39e('0x19')](_0x17e449,_0x285297,_0x209e72)['then'](function(){const _0x115271=_0x37e39e;logger[_0x115271('0x0')](_0x115271('0xe'),_0x285297,_0x17e449);})[_0x37e39e('0x6')](function(_0x2e4807){const _0x2061fe=_0x37e39e;logger[_0x2061fe('0x0')](JSON[_0x2061fe('0xf')](_0x2e4807));});});},Migration[_0x4d82ec('0x1c')][_0x4d82ec('0x10')]=function(_0x46341d,_0x2cf381,_0x224d5b){const _0xabe304=_0x4d82ec,_0x2ec05c=this;this[_0xabe304('0x18')][_0xabe304('0x3')](function(){const _0x115445=_0xabe304;return _0x2ec05c[_0x115445('0x13')][_0x115445('0x10')](_0x46341d,_0x2cf381,_0x224d5b)['then'](function(){const _0x4f283f=_0x115445;logger[_0x4f283f('0x0')](_0x4f283f('0x7'),_0x2cf381,_0x46341d);})[_0x115445('0x6')](function(_0x5b846d){const _0x5219d6=_0x115445;logger[_0x5219d6('0x0')](JSON['stringify'](_0x5b846d));});});},Migration[_0x4d82ec('0x1c')][_0x4d82ec('0x2')]=function(_0x3e9be5){const _0x39ebb2=this;this['sequence']['enqueue'](function(){const _0x105f71=a958_0x8eb4;return _0x39ebb2[_0x105f71('0x13')][_0x105f71('0x2')](_0x3e9be5,{'force':!![]})[_0x105f71('0x14')](function(){const _0x2a3c75=_0x105f71;logger[_0x2a3c75('0x0')](_0x2a3c75('0x16'),_0x3e9be5);})[_0x105f71('0x6')](function(_0x46fdec){const _0x1c407d=_0x105f71;logger[_0x1c407d('0x0')](JSON['stringify'](_0x46fdec));});});},Migration[_0x4d82ec('0x1c')][_0x4d82ec('0x4')]=function(_0x490b02,_0x2962f8,_0xcbfc56){const _0x21364b=_0x4d82ec,_0x149dfe=this;this[_0x21364b('0x18')][_0x21364b('0x3')](function(){const _0xbc7ee3=_0x21364b;return _0x149dfe[_0xbc7ee3('0x13')][_0xbc7ee3('0x4')](_0x490b02,_0x2962f8,{'indexName':_0xcbfc56})[_0xbc7ee3('0x14')](function(){const _0x50533f=_0xbc7ee3;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x490b02,_0x2962f8[_0x50533f('0xa')](','),_0xcbfc56);})[_0xbc7ee3('0x6')](function(_0x92883d){const _0x2fb054=_0xbc7ee3;logger[_0x2fb054('0x0')](JSON[_0x2fb054('0xf')](_0x92883d));});});},Migration[_0x4d82ec('0x1c')][_0x4d82ec('0x1b')]=function(_0x293faf,_0x270a15){const _0x11960a=_0x4d82ec,_0x352776=this;this[_0x11960a('0x18')][_0x11960a('0x3')](function(){const _0x39cd6d=_0x11960a;return _0x352776[_0x39cd6d('0x13')][_0x39cd6d('0x1b')](_0x293faf,_0x270a15)['then'](function(){const _0x380c04=_0x39cd6d;logger[_0x380c04('0x0')](_0x380c04('0x1d'),_0x293faf,_0x270a15);})['catch'](function(_0x5a63e2){const _0x3b0f5d=_0x39cd6d;logger[_0x3b0f5d('0x0')](JSON['stringify'](_0x5a63e2));});});},Migration[_0x4d82ec('0x1c')][_0x4d82ec('0x1')]=function(_0x2266e6){const _0x1f373e=_0x4d82ec,_0x199d18=this;this[_0x1f373e('0x18')][_0x1f373e('0x3')](function(){const _0x7c50fe=_0x1f373e;return _0x199d18[_0x7c50fe('0x13')]['sequelize']['query'](_0x2266e6)[_0x7c50fe('0x14')](function(){const _0x531717=_0x7c50fe;logger[_0x531717('0x0')](_0x531717('0x15'),_0x2266e6);})[_0x7c50fe('0x6')](function(_0x17207e){logger['info'](JSON['stringify'](_0x17207e));});});},Migration[_0x4d82ec('0x1c')]['removeColumn']=function(_0x112502,_0x5e884b){const _0x4634b2=_0x4d82ec,_0x478448=this;this[_0x4634b2('0x18')][_0x4634b2('0x3')](function(){const _0x3cedc1=_0x4634b2;return _0x478448['queryInterface']['removeColumn'](_0x112502,_0x5e884b)[_0x3cedc1('0x14')](function(){const _0x96bc47=_0x3cedc1;logger[_0x96bc47('0x0')](_0x96bc47('0xd'),_0x5e884b,_0x112502);})[_0x3cedc1('0x6')](function(_0x370d1b){logger['info'](util['inspect'](_0x370d1b,{'showHidden':![],'depth':null}));});});},Migration[_0x4d82ec('0x1c')]['renameColumn']=function(_0xa09dbb,_0x319c81,_0x2c5465){const _0x325e07=_0x4d82ec,_0x582d17=this;this['sequence'][_0x325e07('0x3')](function(){const _0x2a448a=_0x325e07;return _0x582d17['queryInterface'][_0x2a448a('0x1e')](_0xa09dbb,_0x319c81,_0x2c5465)['then'](function(){const _0xd1e652=_0x2a448a;logger['info'](_0xd1e652('0x12'),_0x319c81,_0x2c5465,_0xa09dbb);})[_0x2a448a('0x6')](function(_0x5727b1){const _0x3e7cb2=_0x2a448a;logger[_0x3e7cb2('0x0')](util[_0x3e7cb2('0x17')](_0x5727b1,{'showHidden':![],'depth':null}));});});},Migration[_0x4d82ec('0x1c')]['final']=function(_0x5005ac){const _0x245c73=_0x4d82ec;this['sequence'][_0x245c73('0x3')](function(){return _0x5005ac();});},module[_0x4d82ec('0x1a')]={'up':function(_0x2c4e7e){return new Promise(function(_0x4459e0){const _0xa76591=a958_0x8eb4,_0x2b3ccf=new Migration(_0x2c4e7e);_0x2b3ccf[_0xa76591('0x1')](_0xa76591('0x9')),_0x2b3ccf[_0xa76591('0x11')](_0x4459e0);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.80.js b/server/migrations/2.0.80.js index 6df5715..9ae006c 100644 --- a/server/migrations/2.0.80.js +++ b/server/migrations/2.0.80.js @@ -1 +1 @@ -const a959_0x4267=['stringify','changeColumn','sequence','queryInterface','preferred','query','query\x20%s','info','sequelize','removeIndex','removeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','Removed\x20column\x20%s\x20from\x20%s','addIndex','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','Added\x20column\x20%s\x20to\x20%s','renameColumn','inspect','enqueue','catch','BOOLEAN','addColumn','removeIndex\x20%s\x20%s','settings','migration','util','STRING','../config/logger','final','exports','addIndex\x20%s\x20%s\x20%s','table\x20dropped\x20%s','join','prototype'];(function(_0x7b9548,_0x4267c7){const _0x4d50b7=function(_0x47e65b){while(--_0x47e65b){_0x7b9548['push'](_0x7b9548['shift']());}};_0x4d50b7(++_0x4267c7);}(a959_0x4267,0x17a));const a959_0x4d50=function(_0x7b9548,_0x4267c7){_0x7b9548=_0x7b9548-0x0;let _0x4d50b7=a959_0x4267[_0x7b9548];return _0x4d50b7;};const _0x53cda2=a959_0x4d50;'use strict';const util=require(_0x53cda2('0x9')),logger=require(_0x53cda2('0xb'))(_0x53cda2('0x8')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x47e65b){const _0x1a048b=_0x53cda2;this['tail']=this[_0x1a048b('0x21')]?this['tail']['finally'](_0x47e65b):_0x47e65b();};const Migration=function(_0x110c6a){const _0x39b6ac=_0x53cda2;this[_0x39b6ac('0x15')]=_0x110c6a,this[_0x39b6ac('0x14')]=new Sequence();};Migration[_0x53cda2('0x11')][_0x53cda2('0x13')]=function(_0x58e7ce,_0xb7c695,_0x5bfa17){const _0x521c0c=_0x53cda2,_0x5d3a17=this;this[_0x521c0c('0x14')][_0x521c0c('0x2')](function(){const _0x569f09=_0x521c0c;return _0x5d3a17[_0x569f09('0x15')]['changeColumn'](_0x58e7ce,_0xb7c695,_0x5bfa17)[_0x569f09('0x1e')](function(){const _0x565fe0=_0x569f09;logger[_0x565fe0('0x19')](_0x565fe0('0x22'),_0xb7c695,_0x58e7ce);})[_0x569f09('0x3')](function(_0x3873d0){const _0x2658ac=_0x569f09;logger[_0x2658ac('0x19')](JSON[_0x2658ac('0x12')](_0x3873d0));});});},Migration[_0x53cda2('0x11')][_0x53cda2('0x5')]=function(_0x4f8313,_0x58650c,_0x2c8c54){const _0x5b2165=_0x53cda2,_0xdaf29f=this;this[_0x5b2165('0x14')][_0x5b2165('0x2')](function(){const _0x47b048=_0x5b2165;return _0xdaf29f[_0x47b048('0x15')][_0x47b048('0x5')](_0x4f8313,_0x58650c,_0x2c8c54)['then'](function(){const _0x7ac86e=_0x47b048;logger[_0x7ac86e('0x19')](_0x7ac86e('0x23'),_0x58650c,_0x4f8313);})[_0x47b048('0x3')](function(_0x48c391){const _0x526c17=_0x47b048;logger[_0x526c17('0x19')](JSON['stringify'](_0x48c391));});});},Migration[_0x53cda2('0x11')]['dropTable']=function(_0x1273e2){const _0x7a95b0=_0x53cda2,_0x212c5e=this;this[_0x7a95b0('0x14')][_0x7a95b0('0x2')](function(){const _0x2b7780=_0x7a95b0;return _0x212c5e[_0x2b7780('0x15')]['dropTable'](_0x1273e2,{'force':!![]})[_0x2b7780('0x1e')](function(){const _0x141c6c=_0x2b7780;logger[_0x141c6c('0x19')](_0x141c6c('0xf'),_0x1273e2);})[_0x2b7780('0x3')](function(_0x470a01){const _0x4df456=_0x2b7780;logger[_0x4df456('0x19')](JSON[_0x4df456('0x12')](_0x470a01));});});},Migration[_0x53cda2('0x11')][_0x53cda2('0x20')]=function(_0xe5fd1d,_0x33b593,_0x33817c){const _0x59b903=_0x53cda2,_0x3e9f11=this;this[_0x59b903('0x14')][_0x59b903('0x2')](function(){const _0x5203c9=_0x59b903;return _0x3e9f11[_0x5203c9('0x15')][_0x5203c9('0x20')](_0xe5fd1d,_0x33b593,{'indexName':_0x33817c})[_0x5203c9('0x1e')](function(){const _0x830395=_0x5203c9;logger[_0x830395('0x19')](_0x830395('0xe'),_0xe5fd1d,_0x33b593[_0x830395('0x10')](','),_0x33817c);})[_0x5203c9('0x3')](function(_0x15fa1c){const _0x39476f=_0x5203c9;logger[_0x39476f('0x19')](JSON['stringify'](_0x15fa1c));});});},Migration[_0x53cda2('0x11')][_0x53cda2('0x1b')]=function(_0x553109,_0x55e2ac){const _0x1125c9=_0x53cda2,_0x245e5f=this;this[_0x1125c9('0x14')][_0x1125c9('0x2')](function(){const _0x3978ee=_0x1125c9;return _0x245e5f[_0x3978ee('0x15')][_0x3978ee('0x1b')](_0x553109,_0x55e2ac)['then'](function(){const _0x1b3ff5=_0x3978ee;logger[_0x1b3ff5('0x19')](_0x1b3ff5('0x6'),_0x553109,_0x55e2ac);})[_0x3978ee('0x3')](function(_0x16a1be){const _0x401a8c=_0x3978ee;logger[_0x401a8c('0x19')](JSON[_0x401a8c('0x12')](_0x16a1be));});});},Migration[_0x53cda2('0x11')][_0x53cda2('0x17')]=function(_0x526a90){const _0x1adc8d=_0x53cda2,_0x160a30=this;this[_0x1adc8d('0x14')][_0x1adc8d('0x2')](function(){const _0x8c222=_0x1adc8d;return _0x160a30[_0x8c222('0x15')][_0x8c222('0x1a')][_0x8c222('0x17')](_0x526a90)[_0x8c222('0x1e')](function(){const _0x288a0c=_0x8c222;logger['info'](_0x288a0c('0x18'),_0x526a90);})[_0x8c222('0x3')](function(_0x1858f5){const _0x4cd322=_0x8c222;logger[_0x4cd322('0x19')](JSON[_0x4cd322('0x12')](_0x1858f5));});});},Migration[_0x53cda2('0x11')][_0x53cda2('0x1c')]=function(_0x335b1c,_0x4a3d4b){const _0x2031e0=_0x53cda2,_0xfc49c2=this;this[_0x2031e0('0x14')][_0x2031e0('0x2')](function(){const _0x34dc4c=_0x2031e0;return _0xfc49c2['queryInterface'][_0x34dc4c('0x1c')](_0x335b1c,_0x4a3d4b)[_0x34dc4c('0x1e')](function(){const _0x3a9cbf=_0x34dc4c;logger[_0x3a9cbf('0x19')](_0x3a9cbf('0x1f'),_0x4a3d4b,_0x335b1c);})[_0x34dc4c('0x3')](function(_0x1182f0){const _0x5a8cbd=_0x34dc4c;logger['info'](util[_0x5a8cbd('0x1')](_0x1182f0,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x53cda2('0x0')]=function(_0x1ee25c,_0x7ddd93,_0x5a31e7){const _0x52b6c7=this;this['sequence']['enqueue'](function(){const _0x5c66fc=a959_0x4d50;return _0x52b6c7[_0x5c66fc('0x15')][_0x5c66fc('0x0')](_0x1ee25c,_0x7ddd93,_0x5a31e7)[_0x5c66fc('0x1e')](function(){const _0x49a524=_0x5c66fc;logger[_0x49a524('0x19')](_0x49a524('0x1d'),_0x7ddd93,_0x5a31e7,_0x1ee25c);})[_0x5c66fc('0x3')](function(_0x52340e){const _0x29fdec=_0x5c66fc;logger[_0x29fdec('0x19')](util[_0x29fdec('0x1')](_0x52340e,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x53cda2('0xc')]=function(_0x12aab3){this['sequence']['enqueue'](function(){return _0x12aab3();});},module[_0x53cda2('0xd')]={'up':function(_0x4354f9,_0x140931){return new Promise(function(_0x41949a){const _0xd0d219=a959_0x4d50,_0x9fe3c4=new Migration(_0x4354f9);_0x9fe3c4[_0xd0d219('0x5')](_0xd0d219('0x7'),_0xd0d219('0x16'),{'type':_0x140931[_0xd0d219('0xa')]}),_0x9fe3c4[_0xd0d219('0x5')](_0xd0d219('0x7'),'defaultPreferred',{'type':_0x140931[_0xd0d219('0x4')],'defaultValue':!![]}),_0x9fe3c4[_0xd0d219('0xc')](_0x41949a);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.81.js b/server/migrations/2.0.81.js index 3871459..19d37b6 100644 --- a/server/migrations/2.0.81.js +++ b/server/migrations/2.0.81.js @@ -1 +1 @@ -const a960_0x31de=['catch','exports','removeIndex\x20%s\x20%s','migration','smsMethod','final','STRING','prototype','classic+','queryInterface','tail','ENUM','table\x20dropped\x20%s','addIndex\x20%s\x20%s\x20%s','classic','removeIndex','query\x20%s','Added\x20column\x20%s\x20to\x20%s','finally','util','sequelize','../config/logger','enqueue','dropTable','addIndex','renameColumn','info','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','changeColumn','addColumn','sms_accounts','telegram','query','cm_contacts','removeColumn','then','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequence','basic'];(function(_0x54eaee,_0x31de38){const _0x56bd52=function(_0x1c2176){while(--_0x1c2176){_0x54eaee['push'](_0x54eaee['shift']());}};_0x56bd52(++_0x31de38);}(a960_0x31de,0x159));const a960_0x56bd=function(_0x54eaee,_0x31de38){_0x54eaee=_0x54eaee-0x0;let _0x56bd52=a960_0x31de[_0x54eaee];return _0x56bd52;};const _0x4f992c=a960_0x56bd;'use strict';const util=require(_0x4f992c('0x22')),logger=require(_0x4f992c('0x24'))(_0x4f992c('0x12')),Sequence=function(){};Sequence[_0x4f992c('0x16')][_0x4f992c('0x25')]=function(_0x1c2176){const _0x50fb28=_0x4f992c;this[_0x50fb28('0x19')]=this['tail']?this['tail'][_0x50fb28('0x21')](_0x1c2176):_0x1c2176();};const Migration=function(_0x5bd828){const _0x348c35=_0x4f992c;this[_0x348c35('0x18')]=_0x5bd828,this['sequence']=new Sequence();};Migration['prototype'][_0x4f992c('0x4')]=function(_0x2ceda3,_0x397321,_0x187ec8){const _0x2ce6fc=_0x4f992c,_0x21b4ed=this;this[_0x2ce6fc('0xd')][_0x2ce6fc('0x25')](function(){const _0x143798=_0x2ce6fc;return _0x21b4ed[_0x143798('0x18')]['changeColumn'](_0x2ceda3,_0x397321,_0x187ec8)[_0x143798('0xb')](function(){const _0x21238a=_0x143798;logger[_0x21238a('0x1')](_0x21238a('0x2'),_0x397321,_0x2ceda3);})['catch'](function(_0x39f22f){const _0x3a4c7f=_0x143798;logger[_0x3a4c7f('0x1')](JSON[_0x3a4c7f('0x3')](_0x39f22f));});});},Migration[_0x4f992c('0x16')]['addColumn']=function(_0x18493a,_0x462652,_0x58d05b){const _0x381d83=_0x4f992c,_0x450c41=this;this['sequence'][_0x381d83('0x25')](function(){const _0x2f6e51=_0x381d83;return _0x450c41[_0x2f6e51('0x18')][_0x2f6e51('0x5')](_0x18493a,_0x462652,_0x58d05b)[_0x2f6e51('0xb')](function(){const _0x48450e=_0x2f6e51;logger[_0x48450e('0x1')](_0x48450e('0x20'),_0x462652,_0x18493a);})[_0x2f6e51('0xf')](function(_0x4dd6ea){const _0x463ac3=_0x2f6e51;logger[_0x463ac3('0x1')](JSON[_0x463ac3('0x3')](_0x4dd6ea));});});},Migration[_0x4f992c('0x16')][_0x4f992c('0x26')]=function(_0xb56672){const _0x20f319=_0x4f992c,_0x160c23=this;this[_0x20f319('0xd')][_0x20f319('0x25')](function(){const _0x56564f=_0x20f319;return _0x160c23[_0x56564f('0x18')][_0x56564f('0x26')](_0xb56672,{'force':!![]})[_0x56564f('0xb')](function(){const _0x4937c7=_0x56564f;logger['info'](_0x4937c7('0x1b'),_0xb56672);})[_0x56564f('0xf')](function(_0x59e98b){const _0x31a066=_0x56564f;logger[_0x31a066('0x1')](JSON['stringify'](_0x59e98b));});});},Migration[_0x4f992c('0x16')][_0x4f992c('0x27')]=function(_0x34e9f1,_0x3ab4a8,_0x3452c4){const _0x4f381e=_0x4f992c,_0x2cd6db=this;this[_0x4f381e('0xd')][_0x4f381e('0x25')](function(){const _0x512862=_0x4f381e;return _0x2cd6db[_0x512862('0x18')]['addIndex'](_0x34e9f1,_0x3ab4a8,{'indexName':_0x3452c4})['then'](function(){const _0x3407f2=_0x512862;logger['info'](_0x3407f2('0x1c'),_0x34e9f1,_0x3ab4a8['join'](','),_0x3452c4);})[_0x512862('0xf')](function(_0x3e8627){const _0x1ce177=_0x512862;logger['info'](JSON[_0x1ce177('0x3')](_0x3e8627));});});},Migration[_0x4f992c('0x16')][_0x4f992c('0x1e')]=function(_0x47c494,_0x10c9de){const _0x4bef7a=_0x4f992c,_0x11e803=this;this[_0x4bef7a('0xd')][_0x4bef7a('0x25')](function(){const _0x4ccb41=_0x4bef7a;return _0x11e803[_0x4ccb41('0x18')]['removeIndex'](_0x47c494,_0x10c9de)[_0x4ccb41('0xb')](function(){const _0x5e983d=_0x4ccb41;logger[_0x5e983d('0x1')](_0x5e983d('0x11'),_0x47c494,_0x10c9de);})['catch'](function(_0x5ddfa5){const _0x4d7cac=_0x4ccb41;logger[_0x4d7cac('0x1')](JSON['stringify'](_0x5ddfa5));});});},Migration[_0x4f992c('0x16')]['query']=function(_0x212d16){const _0x2ce55b=this;this['sequence']['enqueue'](function(){const _0x236541=a960_0x56bd;return _0x2ce55b[_0x236541('0x18')][_0x236541('0x23')]['query'](_0x212d16)['then'](function(){const _0x4abb71=_0x236541;logger['info'](_0x4abb71('0x1f'),_0x212d16);})[_0x236541('0xf')](function(_0x536b4f){const _0x2276be=_0x236541;logger[_0x2276be('0x1')](JSON['stringify'](_0x536b4f));});});},Migration[_0x4f992c('0x16')][_0x4f992c('0xa')]=function(_0x592b55,_0x4e2a52){const _0x36a764=_0x4f992c,_0x389091=this;this[_0x36a764('0xd')][_0x36a764('0x25')](function(){const _0x27b245=_0x36a764;return _0x389091[_0x27b245('0x18')][_0x27b245('0xa')](_0x592b55,_0x4e2a52)[_0x27b245('0xb')](function(){const _0x1a772b=_0x27b245;logger[_0x1a772b('0x1')]('Removed\x20column\x20%s\x20from\x20%s',_0x4e2a52,_0x592b55);})['catch'](function(_0x34fd26){const _0x5816e4=_0x27b245;logger[_0x5816e4('0x1')](util['inspect'](_0x34fd26,{'showHidden':![],'depth':null}));});});},Migration[_0x4f992c('0x16')][_0x4f992c('0x0')]=function(_0x10c00c,_0x563919,_0x56b982){const _0x51f85b=_0x4f992c,_0x39468a=this;this[_0x51f85b('0xd')][_0x51f85b('0x25')](function(){const _0x2ce302=_0x51f85b;return _0x39468a['queryInterface'][_0x2ce302('0x0')](_0x10c00c,_0x563919,_0x56b982)[_0x2ce302('0xb')](function(){const _0x2433e2=_0x2ce302;logger['info'](_0x2433e2('0xc'),_0x563919,_0x56b982,_0x10c00c);})[_0x2ce302('0xf')](function(_0x2afbd5){const _0x4d63c4=_0x2ce302;logger[_0x4d63c4('0x1')](util['inspect'](_0x2afbd5,{'showHidden':![],'depth':null}));});});},Migration[_0x4f992c('0x16')]['final']=function(_0x5a6ea4){const _0x17f00f=_0x4f992c;this[_0x17f00f('0xd')][_0x17f00f('0x25')](function(){return _0x5a6ea4();});},module[_0x4f992c('0x10')]={'up':function(_0x2d2bca,_0x19bdab){return new Promise(function(_0x29557e){const _0x1ac28c=a960_0x56bd,_0x478e6d=new Migration(_0x2d2bca);_0x478e6d[_0x1ac28c('0x4')](_0x1ac28c('0x6'),_0x1ac28c('0x13'),{'type':_0x19bdab[_0x1ac28c('0x1a')](_0x1ac28c('0xe'),_0x1ac28c('0x1d'),_0x1ac28c('0x17'),'SI','TI','GP')}),_0x478e6d[_0x1ac28c('0x8')]('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'),_0x478e6d['query']('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'),_0x478e6d[_0x1ac28c('0x8')]('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'),_0x478e6d[_0x1ac28c('0x4')](_0x1ac28c('0x6'),_0x1ac28c('0x13'),{'type':_0x19bdab[_0x1ac28c('0x1a')]('SI','TI','GP')}),_0x478e6d[_0x1ac28c('0x5')](_0x1ac28c('0x9'),_0x1ac28c('0x7'),{'type':_0x19bdab[_0x1ac28c('0x15')]}),_0x478e6d[_0x1ac28c('0x14')](_0x29557e);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.82.js b/server/migrations/2.0.82.js index 26178ab..1de452f 100644 --- a/server/migrations/2.0.82.js +++ b/server/migrations/2.0.82.js @@ -1 +1 @@ -const a961_0x3f23=['skebby','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','connectel','then','catch','info','removeIndex','tail','csc','renameColumn','sequelize','removeColumn','clicksend','util','prototype','final','twilio','clickatell','Added\x20column\x20%s\x20to\x20%s','exports','addIndex\x20%s\x20%s\x20%s','inspect','addColumn','sequence','query\x20%s','type','apiKey','join','sms_accounts','stringify','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','Removed\x20column\x20%s\x20from\x20%s','query','enqueue'];(function(_0x31d27f,_0x3f23df){const _0x1a4c5f=function(_0x1cd9de){while(--_0x1cd9de){_0x31d27f['push'](_0x31d27f['shift']());}};_0x1a4c5f(++_0x3f23df);}(a961_0x3f23,0x85));const a961_0x1a4c=function(_0x31d27f,_0x3f23df){_0x31d27f=_0x31d27f-0x0;let _0x1a4c5f=a961_0x3f23[_0x31d27f];return _0x1a4c5f;};const _0x19d2e5=a961_0x1a4c;'use strict';const util=require(_0x19d2e5('0x1d')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence['prototype'][_0x19d2e5('0xe')]=function(_0x1cd9de){const _0x1a2f31=_0x19d2e5;this[_0x1a2f31('0x17')]=this['tail']?this[_0x1a2f31('0x17')]['finally'](_0x1cd9de):_0x1cd9de();};const Migration=function(_0x1cafda){const _0x9a7564=_0x19d2e5;this['queryInterface']=_0x1cafda,this[_0x9a7564('0x2')]=new Sequence();};Migration[_0x19d2e5('0x1e')]['changeColumn']=function(_0x5be85f,_0x2a3678,_0x5667cc){const _0x4f7fd9=_0x19d2e5,_0x2ebb74=this;this[_0x4f7fd9('0x2')][_0x4f7fd9('0xe')](function(){const _0x43c97a=_0x4f7fd9;return _0x2ebb74[_0x43c97a('0xb')]['changeColumn'](_0x5be85f,_0x2a3678,_0x5667cc)[_0x43c97a('0x13')](function(){const _0x54285b=_0x43c97a;logger[_0x54285b('0x15')](_0x54285b('0x11'),_0x2a3678,_0x5be85f);})[_0x43c97a('0x14')](function(_0xd35752){const _0x3da2c7=_0x43c97a;logger['info'](JSON[_0x3da2c7('0x8')](_0xd35752));});});},Migration[_0x19d2e5('0x1e')][_0x19d2e5('0x1')]=function(_0x2442af,_0x1d37d3,_0x5e0a65){const _0x48aeca=_0x19d2e5,_0x552d9f=this;this[_0x48aeca('0x2')]['enqueue'](function(){const _0x111be3=_0x48aeca;return _0x552d9f['queryInterface'][_0x111be3('0x1')](_0x2442af,_0x1d37d3,_0x5e0a65)[_0x111be3('0x13')](function(){const _0x19e636=_0x111be3;logger[_0x19e636('0x15')](_0x19e636('0x22'),_0x1d37d3,_0x2442af);})['catch'](function(_0x4f31cc){const _0x2ec3fe=_0x111be3;logger[_0x2ec3fe('0x15')](JSON['stringify'](_0x4f31cc));});});},Migration[_0x19d2e5('0x1e')][_0x19d2e5('0x10')]=function(_0x6a3747){const _0x184758=_0x19d2e5,_0x13905b=this;this['sequence'][_0x184758('0xe')](function(){const _0x1b071f=_0x184758;return _0x13905b[_0x1b071f('0xb')][_0x1b071f('0x10')](_0x6a3747,{'force':!![]})[_0x1b071f('0x13')](function(){const _0x53458e=_0x1b071f;logger[_0x53458e('0x15')]('table\x20dropped\x20%s',_0x6a3747);})[_0x1b071f('0x14')](function(_0x2ca4fa){const _0x4553b9=_0x1b071f;logger[_0x4553b9('0x15')](JSON[_0x4553b9('0x8')](_0x2ca4fa));});});},Migration['prototype']['addIndex']=function(_0x233cc5,_0x340668,_0x1edb03){const _0x4401bb=_0x19d2e5,_0xeb3806=this;this[_0x4401bb('0x2')][_0x4401bb('0xe')](function(){const _0x28f61f=_0x4401bb;return _0xeb3806[_0x28f61f('0xb')][_0x28f61f('0x9')](_0x233cc5,_0x340668,{'indexName':_0x1edb03})[_0x28f61f('0x13')](function(){const _0x4bbe0d=_0x28f61f;logger['info'](_0x4bbe0d('0x24'),_0x233cc5,_0x340668[_0x4bbe0d('0x6')](','),_0x1edb03);})['catch'](function(_0x1b4db7){const _0x3d0d8a=_0x28f61f;logger['info'](JSON[_0x3d0d8a('0x8')](_0x1b4db7));});});},Migration[_0x19d2e5('0x1e')][_0x19d2e5('0x16')]=function(_0x2da8f1,_0xf4c42){const _0x105331=_0x19d2e5,_0x4c7435=this;this[_0x105331('0x2')]['enqueue'](function(){const _0x42782c=_0x105331;return _0x4c7435['queryInterface'][_0x42782c('0x16')](_0x2da8f1,_0xf4c42)['then'](function(){const _0x33df4f=_0x42782c;logger[_0x33df4f('0x15')]('removeIndex\x20%s\x20%s',_0x2da8f1,_0xf4c42);})['catch'](function(_0x1d6b02){const _0x1baf83=_0x42782c;logger['info'](JSON[_0x1baf83('0x8')](_0x1d6b02));});});},Migration[_0x19d2e5('0x1e')][_0x19d2e5('0xd')]=function(_0x3205dd){const _0x37bc1c=this;this['sequence']['enqueue'](function(){const _0x181982=a961_0x1a4c;return _0x37bc1c[_0x181982('0xb')][_0x181982('0x1a')]['query'](_0x3205dd)[_0x181982('0x13')](function(){const _0x49acb1=_0x181982;logger[_0x49acb1('0x15')](_0x49acb1('0x3'),_0x3205dd);})[_0x181982('0x14')](function(_0x57350b){const _0x5a3da2=_0x181982;logger['info'](JSON[_0x5a3da2('0x8')](_0x57350b));});});},Migration[_0x19d2e5('0x1e')][_0x19d2e5('0x1b')]=function(_0x16929e,_0x32a5c8){const _0x3f0a58=_0x19d2e5,_0xb02646=this;this[_0x3f0a58('0x2')]['enqueue'](function(){const _0x2d0007=_0x3f0a58;return _0xb02646['queryInterface'][_0x2d0007('0x1b')](_0x16929e,_0x32a5c8)[_0x2d0007('0x13')](function(){const _0x38c955=_0x2d0007;logger['info'](_0x38c955('0xc'),_0x32a5c8,_0x16929e);})['catch'](function(_0x2b4c4a){const _0x2d3f7c=_0x2d0007;logger[_0x2d3f7c('0x15')](util[_0x2d3f7c('0x0')](_0x2b4c4a,{'showHidden':![],'depth':null}));});});},Migration[_0x19d2e5('0x1e')][_0x19d2e5('0x19')]=function(_0x2f85d7,_0xd17b11,_0x2e4cb2){const _0x5575f1=_0x19d2e5,_0x1bd4c9=this;this[_0x5575f1('0x2')][_0x5575f1('0xe')](function(){const _0x324f07=_0x5575f1;return _0x1bd4c9[_0x324f07('0xb')][_0x324f07('0x19')](_0x2f85d7,_0xd17b11,_0x2e4cb2)[_0x324f07('0x13')](function(){const _0xde2582=_0x324f07;logger[_0xde2582('0x15')](_0xde2582('0xa'),_0xd17b11,_0x2e4cb2,_0x2f85d7);})[_0x324f07('0x14')](function(_0x272f2a){const _0x333b1c=_0x324f07;logger[_0x333b1c('0x15')](util['inspect'](_0x272f2a,{'showHidden':![],'depth':null}));});});},Migration[_0x19d2e5('0x1e')]['final']=function(_0x4e402f){const _0x94051e=_0x19d2e5;this[_0x94051e('0x2')][_0x94051e('0xe')](function(){return _0x4e402f();});},module[_0x19d2e5('0x23')]={'up':function(_0x3571f3,_0x4183ff){return new Promise(function(_0x100235){const _0x296669=a961_0x1a4c,_0x2ef913=new Migration(_0x3571f3);_0x2ef913['addColumn']('sms_accounts',_0x296669('0x5'),{'type':_0x4183ff['STRING']}),_0x2ef913['changeColumn'](_0x296669('0x7'),_0x296669('0x4'),{'type':_0x4183ff['ENUM'](_0x296669('0x20'),_0x296669('0xf'),_0x296669('0x12'),_0x296669('0x1c'),'plivo',_0x296669('0x21'),_0x296669('0x18'))}),_0x2ef913[_0x296669('0x1f')](_0x100235);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.83.js b/server/migrations/2.0.83.js index 0d5ec16..9007df4 100644 --- a/server/migrations/2.0.83.js +++ b/server/migrations/2.0.83.js @@ -1 +1 @@ -const a962_0x2116=['removeIndex','Removed\x20column\x20%s\x20from\x20%s','finally','then','clicksend','csc','infobip','info','removeIndex\x20%s\x20%s','sms_accounts','sequence','ALTER\x20TABLE\x20cm_hopper\x20ADD\x20CONSTRAINT\x20cm_hopper_ibfk_6\x20FOREIGN\x20KEY\x20(OwnerId)\x20REFERENCES\x20users(id)\x20ON\x20UPDATE\x20CASCADE\x20ON\x20DELETE\x20SET\x20NULL','renameColumn','final','addColumn','report_queue','INTEGER','baseUrl','queuecallerenterreason','cm_hopper','addIndex\x20%s\x20%s\x20%s','../config/logger','dropTable','table\x20dropped\x20%s','skebby','connectel','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','OwnerId','stringify','query','sequelize','fb_data','plivo','changeColumn','twilio','STRING','enqueue','migration','catch','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','cm_contacts','addIndex','tail','util','inspect','prototype','queryInterface'];(function(_0x127d7e,_0x2116b7){const _0x3dbe0b=function(_0x2bc3d5){while(--_0x2bc3d5){_0x127d7e['push'](_0x127d7e['shift']());}};_0x3dbe0b(++_0x2116b7);}(a962_0x2116,0x195));const a962_0x3dbe=function(_0x127d7e,_0x2116b7){_0x127d7e=_0x127d7e-0x0;let _0x3dbe0b=a962_0x2116[_0x127d7e];return _0x3dbe0b;};const _0x8ba8b=a962_0x3dbe;'use strict';const util=require(_0x8ba8b('0x17')),logger=require(_0x8ba8b('0x0'))(_0x8ba8b('0x10')),Sequence=function(){};Sequence[_0x8ba8b('0x19')][_0x8ba8b('0xf')]=function(_0x2bc3d5){const _0x5f14ea=_0x8ba8b;this[_0x5f14ea('0x16')]=this[_0x5f14ea('0x16')]?this[_0x5f14ea('0x16')][_0x5f14ea('0x1d')](_0x2bc3d5):_0x2bc3d5();};const Migration=function(_0x32133e){const _0x2e98db=_0x8ba8b;this['queryInterface']=_0x32133e,this[_0x2e98db('0x25')]=new Sequence();};Migration[_0x8ba8b('0x19')][_0x8ba8b('0xc')]=function(_0x4d32f0,_0x43d466,_0x3dbebb){const _0x517f07=_0x8ba8b,_0x565517=this;this[_0x517f07('0x25')][_0x517f07('0xf')](function(){const _0x1634f5=_0x517f07;return _0x565517[_0x1634f5('0x1a')][_0x1634f5('0xc')](_0x4d32f0,_0x43d466,_0x3dbebb)[_0x1634f5('0x1e')](function(){const _0x5a9311=_0x1634f5;logger['info'](_0x5a9311('0x13'),_0x43d466,_0x4d32f0);})[_0x1634f5('0x11')](function(_0x4dc524){const _0x3e10bb=_0x1634f5;logger[_0x3e10bb('0x22')](JSON['stringify'](_0x4dc524));});});},Migration[_0x8ba8b('0x19')][_0x8ba8b('0x29')]=function(_0x1e90ae,_0x5e10a7,_0x1538e1){const _0x276985=_0x8ba8b,_0x113a81=this;this[_0x276985('0x25')][_0x276985('0xf')](function(){const _0x4ca207=_0x276985;return _0x113a81[_0x4ca207('0x1a')]['addColumn'](_0x1e90ae,_0x5e10a7,_0x1538e1)[_0x4ca207('0x1e')](function(){const _0x52a009=_0x4ca207;logger['info'](_0x52a009('0x12'),_0x5e10a7,_0x1e90ae);})[_0x4ca207('0x11')](function(_0x5b6cfb){const _0x24df7a=_0x4ca207;logger[_0x24df7a('0x22')](JSON[_0x24df7a('0x7')](_0x5b6cfb));});});},Migration[_0x8ba8b('0x19')][_0x8ba8b('0x1')]=function(_0x4ad6cf){const _0xbbd607=_0x8ba8b,_0x249b22=this;this[_0xbbd607('0x25')]['enqueue'](function(){const _0x501b9e=_0xbbd607;return _0x249b22['queryInterface'][_0x501b9e('0x1')](_0x4ad6cf,{'force':!![]})[_0x501b9e('0x1e')](function(){const _0x3d2061=_0x501b9e;logger[_0x3d2061('0x22')](_0x3d2061('0x2'),_0x4ad6cf);})[_0x501b9e('0x11')](function(_0x57c97c){const _0x541fba=_0x501b9e;logger[_0x541fba('0x22')](JSON[_0x541fba('0x7')](_0x57c97c));});});},Migration['prototype'][_0x8ba8b('0x15')]=function(_0x2eb2a6,_0x107b38,_0x4e545e){const _0x54e4d8=_0x8ba8b,_0xe099a=this;this[_0x54e4d8('0x25')][_0x54e4d8('0xf')](function(){const _0xdfa9d7=_0x54e4d8;return _0xe099a[_0xdfa9d7('0x1a')][_0xdfa9d7('0x15')](_0x2eb2a6,_0x107b38,{'indexName':_0x4e545e})[_0xdfa9d7('0x1e')](function(){const _0xed6563=_0xdfa9d7;logger[_0xed6563('0x22')](_0xed6563('0x2f'),_0x2eb2a6,_0x107b38['join'](','),_0x4e545e);})[_0xdfa9d7('0x11')](function(_0x37b1c5){const _0x84883e=_0xdfa9d7;logger[_0x84883e('0x22')](JSON['stringify'](_0x37b1c5));});});},Migration[_0x8ba8b('0x19')][_0x8ba8b('0x1b')]=function(_0x3cf75c,_0x5b7fed){const _0x415c51=_0x8ba8b,_0x287ac1=this;this[_0x415c51('0x25')][_0x415c51('0xf')](function(){const _0x156ccf=_0x415c51;return _0x287ac1[_0x156ccf('0x1a')][_0x156ccf('0x1b')](_0x3cf75c,_0x5b7fed)[_0x156ccf('0x1e')](function(){const _0x5f014a=_0x156ccf;logger[_0x5f014a('0x22')](_0x5f014a('0x23'),_0x3cf75c,_0x5b7fed);})['catch'](function(_0x11992c){const _0x43dabc=_0x156ccf;logger['info'](JSON[_0x43dabc('0x7')](_0x11992c));});});},Migration['prototype'][_0x8ba8b('0x8')]=function(_0x29e7c7){const _0x209dd3=_0x8ba8b,_0x404d33=this;this['sequence'][_0x209dd3('0xf')](function(){const _0x5e8d09=_0x209dd3;return _0x404d33['queryInterface'][_0x5e8d09('0x9')][_0x5e8d09('0x8')](_0x29e7c7)[_0x5e8d09('0x1e')](function(){logger['info']('query\x20%s',_0x29e7c7);})['catch'](function(_0x3ca5eb){const _0x3469bf=_0x5e8d09;logger[_0x3469bf('0x22')](JSON[_0x3469bf('0x7')](_0x3ca5eb));});});},Migration[_0x8ba8b('0x19')]['removeColumn']=function(_0x5a9524,_0x3a4403){const _0xd006bd=_0x8ba8b,_0x5dc207=this;this[_0xd006bd('0x25')]['enqueue'](function(){const _0x2611d7=_0xd006bd;return _0x5dc207[_0x2611d7('0x1a')]['removeColumn'](_0x5a9524,_0x3a4403)['then'](function(){const _0x330284=_0x2611d7;logger['info'](_0x330284('0x1c'),_0x3a4403,_0x5a9524);})[_0x2611d7('0x11')](function(_0x5d9438){const _0x359d80=_0x2611d7;logger[_0x359d80('0x22')](util[_0x359d80('0x18')](_0x5d9438,{'showHidden':![],'depth':null}));});});},Migration[_0x8ba8b('0x19')]['renameColumn']=function(_0x211520,_0x588f0f,_0x37cd15){const _0x1942c6=this;this['sequence']['enqueue'](function(){const _0x47d54f=a962_0x3dbe;return _0x1942c6[_0x47d54f('0x1a')][_0x47d54f('0x27')](_0x211520,_0x588f0f,_0x37cd15)[_0x47d54f('0x1e')](function(){const _0x598ee3=_0x47d54f;logger[_0x598ee3('0x22')](_0x598ee3('0x5'),_0x588f0f,_0x37cd15,_0x211520);})[_0x47d54f('0x11')](function(_0x3e5390){const _0x369ef2=_0x47d54f;logger[_0x369ef2('0x22')](util[_0x369ef2('0x18')](_0x3e5390,{'showHidden':![],'depth':null}));});});},Migration[_0x8ba8b('0x19')][_0x8ba8b('0x28')]=function(_0x5ee6f5){this['sequence']['enqueue'](function(){return _0x5ee6f5();});},module['exports']={'up':function(_0x369bb4,_0x2dab59){return new Promise(function(_0xb79726){const _0x2aa7b1=a962_0x3dbe,_0x117809=new Migration(_0x369bb4);_0x117809[_0x2aa7b1('0x29')](_0x2aa7b1('0x2e'),_0x2aa7b1('0x6'),{'type':_0x2dab59[_0x2aa7b1('0x2b')](0xb)}),_0x117809[_0x2aa7b1('0x8')](_0x2aa7b1('0x26')),_0x117809[_0x2aa7b1('0x29')](_0x2aa7b1('0x14'),_0x2aa7b1('0xa'),{'type':_0x2dab59[_0x2aa7b1('0xe')]}),_0x117809[_0x2aa7b1('0xc')](_0x2aa7b1('0x24'),'type',{'type':_0x2dab59['ENUM'](_0x2aa7b1('0xd'),_0x2aa7b1('0x3'),_0x2aa7b1('0x4'),_0x2aa7b1('0x1f'),_0x2aa7b1('0xb'),'clickatell',_0x2aa7b1('0x20'),_0x2aa7b1('0x21'))}),_0x117809[_0x2aa7b1('0x29')](_0x2aa7b1('0x24'),_0x2aa7b1('0x2c'),{'type':_0x2dab59[_0x2aa7b1('0xe')]}),_0x117809['addColumn'](_0x2aa7b1('0x2a'),_0x2aa7b1('0x2d'),{'type':_0x2dab59[_0x2aa7b1('0x2b')],'defaultValue':0x0}),_0x117809[_0x2aa7b1('0x28')](_0xb79726);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.84.js b/server/migrations/2.0.84.js index 30de3d8..13430b8 100644 --- a/server/migrations/2.0.84.js +++ b/server/migrations/2.0.84.js @@ -1 +1 @@ -const a963_0x303e=['finally','inspect','sequence','final','addColumn','../config/logger','util','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','addIndex','query\x20%s','migration','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','exports','query','stringify','Removed\x20column\x20%s\x20from\x20%s','renameColumn','addIndex\x20%s\x20%s\x20%s','catch','table\x20dropped\x20%s','prototype','join','then','Added\x20column\x20%s\x20to\x20%s','info','sequelize','changeColumn','removeColumn','tail','queryInterface'];(function(_0x28ebcf,_0x303e0d){const _0x53414c=function(_0x52dd98){while(--_0x52dd98){_0x28ebcf['push'](_0x28ebcf['shift']());}};_0x53414c(++_0x303e0d);}(a963_0x303e,0x13e));const a963_0x5341=function(_0x28ebcf,_0x303e0d){_0x28ebcf=_0x28ebcf-0x0;let _0x53414c=a963_0x303e[_0x28ebcf];return _0x53414c;};const _0x270424=a963_0x5341;'use strict';const util=require(_0x270424('0x8')),logger=require(_0x270424('0x7'))(_0x270424('0xd')),Sequence=function(){};Sequence[_0x270424('0x18')][_0x270424('0xa')]=function(_0x52dd98){const _0x4236ac=_0x270424;this[_0x4236ac('0x0')]=this['tail']?this[_0x4236ac('0x0')][_0x4236ac('0x2')](_0x52dd98):_0x52dd98();};const Migration=function(_0x3e315e){const _0x1c57d6=_0x270424;this[_0x1c57d6('0x1')]=_0x3e315e,this[_0x1c57d6('0x4')]=new Sequence();};Migration[_0x270424('0x18')]['changeColumn']=function(_0x4c37c4,_0x44eac5,_0xa2ccb2){const _0x3e5bfe=this;this['sequence']['enqueue'](function(){const _0x5b4632=a963_0x5341;return _0x3e5bfe[_0x5b4632('0x1')][_0x5b4632('0x1e')](_0x4c37c4,_0x44eac5,_0xa2ccb2)[_0x5b4632('0x1a')](function(){const _0x3292f5=_0x5b4632;logger[_0x3292f5('0x1c')](_0x3292f5('0xf'),_0x44eac5,_0x4c37c4);})['catch'](function(_0x1a85a2){const _0xfccbd2=_0x5b4632;logger[_0xfccbd2('0x1c')](JSON[_0xfccbd2('0x12')](_0x1a85a2));});});},Migration[_0x270424('0x18')][_0x270424('0x6')]=function(_0x1be831,_0x57c90c,_0x4e674f){const _0x5521eb=_0x270424,_0xe6b459=this;this[_0x5521eb('0x4')][_0x5521eb('0xa')](function(){const _0xa250fb=_0x5521eb;return _0xe6b459['queryInterface'][_0xa250fb('0x6')](_0x1be831,_0x57c90c,_0x4e674f)[_0xa250fb('0x1a')](function(){const _0x112489=_0xa250fb;logger['info'](_0x112489('0x1b'),_0x57c90c,_0x1be831);})[_0xa250fb('0x16')](function(_0x432d59){const _0x37d463=_0xa250fb;logger['info'](JSON[_0x37d463('0x12')](_0x432d59));});});},Migration['prototype'][_0x270424('0xe')]=function(_0x16d67f){const _0x563b0d=_0x270424,_0x143e99=this;this[_0x563b0d('0x4')][_0x563b0d('0xa')](function(){const _0x299925=_0x563b0d;return _0x143e99[_0x299925('0x1')]['dropTable'](_0x16d67f,{'force':!![]})[_0x299925('0x1a')](function(){const _0x24d284=_0x299925;logger[_0x24d284('0x1c')](_0x24d284('0x17'),_0x16d67f);})[_0x299925('0x16')](function(_0x1ca1db){logger['info'](JSON['stringify'](_0x1ca1db));});});},Migration[_0x270424('0x18')][_0x270424('0xb')]=function(_0x381c3f,_0x916c89,_0x447d3c){const _0x49c4c0=this;this['sequence']['enqueue'](function(){const _0x32bf42=a963_0x5341;return _0x49c4c0[_0x32bf42('0x1')][_0x32bf42('0xb')](_0x381c3f,_0x916c89,{'indexName':_0x447d3c})['then'](function(){const _0x2341eb=_0x32bf42;logger['info'](_0x2341eb('0x15'),_0x381c3f,_0x916c89[_0x2341eb('0x19')](','),_0x447d3c);})[_0x32bf42('0x16')](function(_0x2e403b){const _0x57774f=_0x32bf42;logger[_0x57774f('0x1c')](JSON['stringify'](_0x2e403b));});});},Migration[_0x270424('0x18')]['removeIndex']=function(_0x2b90ab,_0x30f1f0){const _0x3a5e06=_0x270424,_0x39efa3=this;this[_0x3a5e06('0x4')][_0x3a5e06('0xa')](function(){const _0x4e5162=_0x3a5e06;return _0x39efa3[_0x4e5162('0x1')]['removeIndex'](_0x2b90ab,_0x30f1f0)[_0x4e5162('0x1a')](function(){const _0x4cbc39=_0x4e5162;logger[_0x4cbc39('0x1c')]('removeIndex\x20%s\x20%s',_0x2b90ab,_0x30f1f0);})[_0x4e5162('0x16')](function(_0x20feb1){const _0x103ac4=_0x4e5162;logger['info'](JSON[_0x103ac4('0x12')](_0x20feb1));});});},Migration[_0x270424('0x18')][_0x270424('0x11')]=function(_0x4cdf20){const _0x45dcfd=_0x270424,_0x5e876b=this;this[_0x45dcfd('0x4')][_0x45dcfd('0xa')](function(){const _0xdf32c8=_0x45dcfd;return _0x5e876b['queryInterface'][_0xdf32c8('0x1d')][_0xdf32c8('0x11')](_0x4cdf20)[_0xdf32c8('0x1a')](function(){const _0x18408a=_0xdf32c8;logger[_0x18408a('0x1c')](_0x18408a('0xc'),_0x4cdf20);})['catch'](function(_0x248b55){const _0x14bb7a=_0xdf32c8;logger[_0x14bb7a('0x1c')](JSON[_0x14bb7a('0x12')](_0x248b55));});});},Migration['prototype']['removeColumn']=function(_0x2f59b8,_0xe8f694){const _0x7a395f=_0x270424,_0x1ddbbd=this;this[_0x7a395f('0x4')][_0x7a395f('0xa')](function(){const _0x18a17b=_0x7a395f;return _0x1ddbbd['queryInterface'][_0x18a17b('0x1f')](_0x2f59b8,_0xe8f694)[_0x18a17b('0x1a')](function(){const _0x3227fe=_0x18a17b;logger[_0x3227fe('0x1c')](_0x3227fe('0x13'),_0xe8f694,_0x2f59b8);})['catch'](function(_0x242305){logger['info'](util['inspect'](_0x242305,{'showHidden':![],'depth':null}));});});},Migration[_0x270424('0x18')][_0x270424('0x14')]=function(_0x25946c,_0x5bd44c,_0xe86d5){const _0x2637ab=_0x270424,_0x2c8cf8=this;this[_0x2637ab('0x4')]['enqueue'](function(){const _0x446929=_0x2637ab;return _0x2c8cf8[_0x446929('0x1')][_0x446929('0x14')](_0x25946c,_0x5bd44c,_0xe86d5)[_0x446929('0x1a')](function(){const _0x978882=_0x446929;logger[_0x978882('0x1c')](_0x978882('0x9'),_0x5bd44c,_0xe86d5,_0x25946c);})[_0x446929('0x16')](function(_0x4d7f1b){const _0x1c62dd=_0x446929;logger['info'](util[_0x1c62dd('0x3')](_0x4d7f1b,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x270424('0x5')]=function(_0x429182){this['sequence']['enqueue'](function(){return _0x429182();});},module[_0x270424('0x10')]={'up':function(_0xccc02e){return new Promise(function(_0x160d7a){const _0x42066d=new Migration(_0xccc02e);_0x42066d['final'](_0x160d7a);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.1.0.js b/server/migrations/2.1.0.js index c4823f1..0bb7176 100644 --- a/server/migrations/2.1.0.js +++ b/server/migrations/2.1.0.js @@ -1 +1 @@ -const a964_0x3576=['\x20\x20`crudPermissions`\x20varchar(255)\x20DEFAULT\x20NULL,','Added\x20column\x20%s\x20to\x20%s','\x20\x20PRIMARY\x20KEY\x20(`id`),','\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=\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=\x20910\x20THEN\x20\x27Realtime\x27','\x20\x20(','\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,','INSERT\x20INTO\x20tmpExtractedResources','CREATE\x20TABLE\x20tmpFinalProfiles','\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\x20\x20\x20\x20\x20\x20\x20\x20\x20CASE','\x20\x20\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(r.resourceId,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20resourceId,','UPDATE\x20users\x20u,\x20tmpFinalProfiles\x20f','\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\x20tmpGroupedPermissions','info','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSingleProfiles;','\x20\x20ORDER\x20BY\x20userId;','CREATE\x20TABLE\x20`user_profile_has_resources`\x20(','CREATE\x20TABLE\x20tmpNormalizedPermissions','\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','inspect','\x20\x20SELECT\x20x.sectionId,\x20u.MailQueueId,\x20x.userId','\x20\x20`sectionId`\x20int(11)\x20DEFAULT\x20NULL,','\x20\x20INNER\x20JOIN\x20user_has_openchannel_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId','../config/logger','\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\x20WHERE\x20split.userId\x20IN\x20(SELECT\x20*\x20FROM','\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\x20resourceId\x20text,','\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','INSERT\x20INTO\x20tmpNormalizedSections','\x20\x20WHERE\x20u.id\x20=\x20t.userId;','\x20\x20SELECT\x20*\x20FROM\x20tmpSingleProfiles;','\x20\x20\x20\x20userId\x20text','\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)','CREATE\x20TABLE\x20tmpResources','\x20\x20`resourceId`\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=\x20602\x20THEN\x20\x27MailAccounts\x27','\x20\x20INNER\x20JOIN\x20user_has_sms_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\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=\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=\x201502\x20THEN\x20\x27IvrCampaigns\x27','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(501,\x20502,\x20510)\x20THEN\x20\x27Chat\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)',',(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','\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','\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\x20insertedSectionId\x20int(11)\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1301,\x201302,\x201303,\x201305,\x201306,\x201307,\x201308)\x20THEN\x20\x27Integrations\x27','\x20\x20INNER\x20JOIN\x20user_has_openchannel_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20INNER\x20JOIN\x20user_has_mail_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20SELECT\x20GROUP_CONCAT(id),\x20permissions,\x20null','addIndex\x20%s\x20%s\x20%s','\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=\x20402\x20THEN\x20\x27InboundRoutes\x27','\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=\x20401\x20THEN\x20\x27VoiceQueues\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20END','\x20\x20\x20\x20resourceId\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=\x201000\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(SELECT\x20GROUP_CONCAT(userId\x20ORDER\x20BY\x20userId\x20ASC)\x20as\x20users','\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\x20FROM\x20(SELECT','\x20\x20SET\x20insertedId\x20=\x20(SELECT\x20id','\x20\x20\x20\x20\x20\x20insertedSectionId\x20int(11)\x20not\x20null,','\x20\x20n\x20INT\x20NOT\x20NULL\x20AUTO_INCREMENT\x20PRIMARY\x20KEY','\x20\x20\x20\x20\x20\x20WHEN\x20name\x20=\x20\x27Plugins\x27\x20THEN\x20(sectionId\x20-\x2088888)','\x20\x20INNER\x20JOIN\x20voice_queues\x20q\x20ON\x20u.VoiceQueueId\x20=\x20q.id','\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=\x201004\x20THEN\x20\x27Intervals\x27','\x20\x20INNER\x20JOIN\x20user_has_chat_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=\x201302\x20THEN\x20\x27SalesforceAccounts\x27','\x20\x20SELECT\x20\x27\x27,\x20insertedId,\x20name,\x20sectionId,\x20null','INTEGER','\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=\x20501\x20THEN\x20\x27ChatQueues\x27','\x20\x20\x20\x20name\x20varchar(255)\x20not\x20null,','\x20\x20\x20\x20t.permissions\x20permissions','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=\x20510\x20THEN\x20\x27Realtime\x27','sequence','\x20\x20SELECT\x20x.sectionId,\x20u.OpenchannelQueueId,\x20x.userId','\x20\x20SET','\x20\x20\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(fp.userId,\x20\x27,\x27,\x201)\x20userId','\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','\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\x20\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\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\x20SET\x20name\x20=\x20(SELECT','CREATE\x20TABLE\x20tmpSections','\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\x20WHEN\x20sectionId\x20in\x20(901,\x20902,\x20910)\x20THEN\x20\x27Fax\x27','\x20\x20WHERE\x20u.id\x20=\x20f.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\x20SELECT\x20userId,\x20permissions','\x20\x20INNER\x20JOIN\x20user_has_chat_websites\x20u\x20ON\x20u.UserId\x20=\x20x.userId','query','\x20\x20WHERE\x20x.sectionId\x20=\x20801;','\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','CREATE\x20TABLE\x20tmpSingleProfiles','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedUsers;','INSERT\x20INTO\x20tmpSingleProfiles','\x20\x20SET\x20sectionId\x20=\x201003\x20WHERE\x20sectionId\x20>=\x20100000;','\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);','queryInterface','\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','\x20\x20\x20\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','\x20\x20ORDER\x20BY\x20GROUP_CONCAT(id);','\x20\x20\x20\x20\x20\x20profileId\x20int(11)','\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(s.userId,\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\x20SUBSTRING_INDEX(SUBSTRING_INDEX(r.userIds,\x20\x27,\x27,\x20t.n),\x20\x27,\x27,\x20-1)\x20userId','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(301,\x20302,\x20303,\x20304)\x20THEN\x20\x27ContactManager\x27','\x20\x20\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\x20\x20\x20FROM\x20(SELECT','\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20position(\x27,\x27\x20in\x20b.users)\x20=\x200))','\x20\x20`category`\x20varchar(255)\x20NOT\x20NULL,','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201701\x20THEN\x20\x27jscripty\x27','INSERT\x20INTO\x20user_profiles\x20(name,\x20crudPermissions,\x20createdAt,\x20updatedAt)','\x20\x20SET\x20profileId\x20=\x20(SELECT\x20(@cnt\x20:=\x20@cnt\x20+\x201)\x20AS\x20rowNumber','INSERT\x20INTO\x20user_profile_has_sections\x20(name,\x20category,\x20sectionId,\x20enabled,\x20autoAssociation,\x20crudPermissions,\x20createdAt,\x20updatedAt,\x20userProfileId)','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20>=\x20100000\x20THEN\x20\x27Tools\x27','util','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201600\x20THEN\x20\x27Help\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','INSERT\x20INTO\x20tally\x20(n)','\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,','\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','\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\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\x20WHERE\x20userId\x20IN\x20(SELECT\x20split.userId','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpFinalProfiles;','\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\x20INNER\x20JOIN\x20user_has_fax_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=\x201305\x20THEN\x20\x27SugarcrmAccounts\x27','\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\x20INNER\x20JOIN\x20tmpExtractedResources\x20cr\x20ON\x20cr.userId\x20=\x20s.userId\x20AND\x20cr.sectionId\x20=\x20s.sectionId\x20AND\x20cr.resourceId\x20IS\x20NOT\x20NULL;','\x20\x20END','\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\x20resourceId\x20int(11),','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedResources;','\x20\x20WHERE\x20x.sectionId\x20=\x20902;','\x20\x20KEY\x20`sectionId`\x20(`sectionId`),',',(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\x20insertedId\x20=\x20(SELECT','\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)','ON\x20UPDATE\x20CASCADE','\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,','join','sequelize','final','then','\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\x20WHEN\x20x.sectionId\x20=\x20901\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20fax_queues\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20SELECT\x20id,\x20permissions,\x20null','\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','UPDATE\x20tmpNormalizedResources\x20x','\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\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=\x201102\x20THEN\x20\x27SquareRecordings\x27','\x20\x20WHERE\x20t1.name\x20=\x20t2.name\x20AND\x20t1.userProfileId\x20=\x20t2.userProfileId\x20AND\x20t1.sectionId\x20>\x20t2.sectionId;','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSharedProfiles;','\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\x20WHERE\x20userId\x20NOT\x20IN\x20(SELECT\x20split.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','UPDATE\x20tmpFinalProfiles','\x20DROP\x20TABLE\x20IF\x20EXISTS\x20tally;','\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=\x201303\x20THEN\x20\x27FreshdeskAccounts\x27','\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\x20\x20\x20WHEN\x20x.sectionId\x20=\x20802\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20openchannel_accounts\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20SELECT\x20x.sectionId,\x20u.VoiceQueueId,\x20x.userId','\x20\x20FROM\x20tmpNormalizedSections','\x20\x20FROM\x20tmpSections\x20s','CREATE\x20TABLE\x20`user_profiles`\x20(','\x20\x20SELECT\x20x.sectionId,\x20u.SquareProjectId,\x20x.userId','INSERT\x20INTO\x20tmpPermissions','\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)','users','removeColumn','\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\x20WHEN\x20sectionId\x20in\x20(701,\x20702,\x20710)\x20THEN\x20\x27Sms\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\x20\x20\x20CASE','\x20\x20WHERE\x20x.sectionId\x20=\x20702;','\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=\x201300\x20THEN\x20\x27DELETE\x27','tail','\x20\x20\x20\x20userId\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=\x20404\x20THEN\x20\x27InternalRoutes\x27','\x20\x20SET\x20r.sectionId\x20=\x20s.insertedId','UPDATE\x20users\x20u,\x20tmpNormalizedPermissions\x20t','\x20\x20WHERE\x20x.sectionId\x20=\x20602;','CREATE\x20TABLE\x20tmpNormalizedResources','\x20\x20WHERE\x20x.sectionId\x20=\x201103;','\x20\x20SELECT\x20cr.resourceId,\x20name,\x20s.insertedId,\x20s.sectionId','\x20\x20FROM\x20tmpFinalProfiles\x20t','\x20\x20WHERE\x20name\x20in\x20(\x27Plugins\x27,\x20\x27CustomDashboards\x27);','\x20\x20\x20\x20\x20\x20\x20\x20ELSE\x20\x27\x27','INSERT\x20INTO\x20tmpSections','\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','table\x20dropped\x20%s','\x20\x20\x20\x20\x20\x20permissions\x20text\x20not\x20null,','\x20\x20SELECT\x20x.sectionId,\x20u.SmsQueueId,\x20x.userId','\x20\x20SELECT\x20name,\x20resourceId,\x20type,\x20now(),\x20now(),\x20insertedSectionId','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20between\x2088889\x20AND\x2099999\x20THEN\x20\x27AppZone\x27','\x20\x20WHERE\x20name\x20=\x20\x27DELETE\x27;','\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','catch','INSERT\x20INTO\x20tmpCustomResources','UPDATE\x20tmpSections','\x20\x20SELECT\x20*\x20FROM\x20tmpSharedProfiles','\x20\x20\x20\x20userProfileId\x20int(11)\x20not\x20null,','\x20\x20SELECT\x20GROUP_CONCAT(userId),\x20permissions,\x20null','\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20n)\x20AS\x20split;','\x20\x20SELECT\x20userId,\x20permissions,\x20null','\x20\x20FROM\x20user_profiles\x20u','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201400\x20THEN\x20\x27Settings\x27','enqueue','\x20\x20WHERE\x20role\x20=\x20\x27user\x27\x20and\x20permissions\x20is\x20not\x20null\x20and\x20permissions\x20<>\x20\x27\x27','\x20\x20SELECT\x20*','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CASE',')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpCustomResources;','userProfileId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20);','\x20\x20FROM\x20users','\x20\x20SELECT\x20x.sectionId,\x20u.ChatWebsiteId,\x20x.userId','\x20\x20GROUP\x20BY\x20permissions','\x20\x20\x20\x20\x20\x20userId\x20text\x20not\x20null,','\x20\x20\x20\x20\x20\x20permissions\x20text\x20not\x20null','CREATE\x20TABLE\x20tmpPermissions','\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\x20SELECT\x20name,\x20category,\x20sectionId,\x20enabled,\x20autoAssociation,\x20\x27red\x27,\x20now(),\x20now(),\x20userProfileId','\x20\x20WHERE\x20r.name\x20=\x20s.name\x20AND\x20r.userProfileId\x20=\x20s.userProfileId;','\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`type`\x20varchar(255)\x20NOT\x20NULL,','FOREIGN\x20KEY\x20(`userProfileId`)\x20','\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=\x20410\x20THEN\x20\x27VoicePrefixes\x27','\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)','CREATE\x20TABLE\x20tmpGroupedPermissions','\x20\x20WHERE\x20x.sectionId\x20=\x20802;','addColumn','\x20\x20\x20\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\x20\x20\x20category\x20varchar(255)\x20not\x20null,','removeIndex','query\x20%s','INSERT\x20INTO\x20tmpNormalizedResources','\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','\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_voice_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','INSERT\x20INTO\x20tmpNormalizedUsers','\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','stringify','\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)','reportId','\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\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\x20WHERE\x20position(\x27,\x27\x20in\x20b.users)\x20=\x200))','SELECT\x20NULL\x20FROM','renameColumn','\x20\x20WHERE\x20x.sectionId\x20=\x20701;','TRUNCATE\x20TABLE\x20tmpPermissions;','\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\x20KEY\x20`compositeIndex`\x20(`resourceId`,`sectionId`),','addIndex','\x20\x20ORDER\x20BY\x20n)\x20AS\x20split;','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedSections;','\x20\x20\x20\x20p.userIds\x20userId','\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=\x20200\x20THEN\x20\x27DELETE\x27','\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=\x201010\x20THEN\x20\x27Triggers\x27','\x20\x20`userProfileId`\x20int(11)\x20DEFAULT\x20NULL,','\x20\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,','CREATE\x20TABLE\x20tally\x20(','voice_voicemail','\x20\x20FROM\x20tmpSections;','\x20\x20CROSS\x20JOIN\x20(SELECT\x20@cnt\x20:=\x201)\x20as\x20dummy\x20LIMIT\x201)','Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(p.permissions,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20permission,','\x20\x20category\x20=\x20(SELECT','name','\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','CREATE\x20TABLE\x20`user_profile_has_sections`\x20(','STRING','\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\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20202\x20THEN\x20\x27Agents\x27','\x20\x20SELECT\x20x.sectionId,\x20u.SmsAccountId,\x20x.userId','\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\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(801,\x20802,\x20810)\x20THEN\x20\x27Openchannel\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','UPDATE\x20tmpCustomResources','\x20\x20\x20\x20insertedId\x20int(11),','\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201012\x20THEN\x20\x27Variables\x27','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSections;',',(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\x20\x20\x20\x20\x20CASE','CREATE\x20TABLE\x20tmpNormalizedSections','VALUES\x20(\x27Default\x27,\x20\x27red\x27,\x20NULL,\x20NOW(),\x20NOW());','\x20\x20\x20\x20sectionId\x20int(11)','\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=\x20810\x20THEN\x20\x27Realtime\x27','\x20\x20SELECT\x20CONCAT(\x27Profile_\x27,\x20(SELECT\x20(@cnt\x20:=\x20@cnt\x20+\x201)\x20AS\x20rowNumber','\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','\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=\x201007\x20THEN\x20\x27Sounds\x27','\x20\x20\x20\x20\x20\x20userIds\x20varchar(255)\x20not\x20null,','\x20\x20WHERE\x20x.sectionId\x20=\x20501;','\x20\x20WHERE\x20x.sectionId\x20=\x201501\x20AND\x20q.type\x20=\x20\x27outbound\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','\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\x20INNER\x20JOIN\x20user_has_fax_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20302\x20THEN\x20\x27Companies\x27','INSERT\x20INTO\x20tmpSharedProfiles','\x20\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\x20WHERE\x20name\x20=\x20\x27DELETE_MIGRATION\x27;','reportType','\x20\x20\x20\x20\x20\x20sectionId\x20int(11)','analytics_extracted_reports','\x20\x20\x20\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\x20CROSS\x20JOIN\x20(SELECT\x20@cnt\x20:=\x200)\x20as\x20dummy\x20LIMIT\x201)),\x20\x27red\x27,\x20now(),\x20now()','\x20\x20\x20\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\x20type\x20varchar(255)\x20not\x20null,','\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','\x20\x20WHERE\x20userProfileId\x20is\x20null\x20AND\x20role\x20=\x20\x27user\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\x20\x20\x20\x20\x20\x20\x20\x20\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=\x20901\x20THEN\x20\x27FaxQueues\x27','DELETE\x20FROM\x20tmpNormalizedResources','\x20\x20SELECT\x20\x27\x27,\x20resourceId,\x20type,\x20insertedSectionId,\x20sectionId','\x20\x20FROM\x20tmpFinalProfiles;','CREATE\x20TABLE\x20tmpSharedProfiles','\x20\x20SET\x20autoAssociation\x20=\x201\x20WHERE\x20sectionId\x20=\x20100;','\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\x20\x20userId\x20text,','INSERT\x20INTO\x20tmpGroupedPermissions','\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,','prototype','\x20\x20userId\x20int(11)','ADD\x20CONSTRAINT\x20`users_ibfk_1`\x20','CREATE\x20TABLE\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\x20\x20FROM\x20tmpNormalizedUsers','\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\x20WHEN\x20x.sectionId\x20=\x20602\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20mail_accounts\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\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','\x20\x20SELECT\x20x.sectionId,\x20u.ChatQueueId,\x20x.userId','\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=\x20100\x20THEN\x20\x27Dashboards\x27','\x20\x20WHERE\x20x.sectionId\x20=\x20502;','\x20\x20SELECT\x20x.sectionId,\x20u.OpenchannelAccountId,\x20x.userId','\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\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1101,\x201102,\x201103)\x20THEN\x20\x27CallySquare\x27','ALTER\x20TABLE\x20`users`\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\x20enabled\x20tinyint\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(601,\x20602,\x20603,\x20610)\x20THEN\x20\x27Mail\x27','\x20\x20\x20\x20resourceId\x20text'];(function(_0x9a66e0,_0x3576fe){const _0x510898=function(_0x43be38){while(--_0x43be38){_0x9a66e0['push'](_0x9a66e0['shift']());}};_0x510898(++_0x3576fe);}(a964_0x3576,0x16c));const a964_0x5108=function(_0x9a66e0,_0x3576fe){_0x9a66e0=_0x9a66e0-0x0;let _0x510898=a964_0x3576[_0x9a66e0];return _0x510898;};const _0x5db695=a964_0x5108;'use strict';const util=require(_0x5db695('0x7e')),logger=require(_0x5db695('0x1b'))('migration'),Sequence=function(){};Sequence['prototype'][_0x5db695('0xde')]=function(_0x43be38){const _0x3e9cc2=_0x5db695;this[_0x3e9cc2('0xbf')]=this[_0x3e9cc2('0xbf')]?this[_0x3e9cc2('0xbf')]['finally'](_0x43be38):_0x43be38();};const Migration=function(_0xdd669b){const _0x11feb7=_0x5db695;this['queryInterface']=_0xdd669b,this[_0x11feb7('0x53')]=new Sequence();};Migration[_0x5db695('0x15a')][_0x5db695('0x11d')]=function(_0x47c08d,_0x543f90,_0x292fc7){const _0x555416=_0x5db695,_0x53c4dc=this;this['sequence'][_0x555416('0xde')](function(){const _0x360efb=_0x555416;return _0x53c4dc[_0x360efb('0x6c')][_0x360efb('0x11d')](_0x47c08d,_0x543f90,_0x292fc7)[_0x360efb('0x9b')](function(){const _0x4eaef0=_0x360efb;logger['info'](_0x4eaef0('0x11c'),_0x543f90,_0x47c08d);})[_0x360efb('0xd4')](function(_0x5d8ec2){const _0x4e967f=_0x360efb;logger[_0x4e967f('0x11')](JSON['stringify'](_0x5d8ec2));});});},Migration[_0x5db695('0x15a')][_0x5db695('0xf7')]=function(_0x2848a8,_0x423efa,_0x43759a){const _0x9c7b60=_0x5db695,_0x1ec432=this;this[_0x9c7b60('0x53')][_0x9c7b60('0xde')](function(){const _0x42efc0=_0x9c7b60;return _0x1ec432[_0x42efc0('0x6c')][_0x42efc0('0xf7')](_0x2848a8,_0x423efa,_0x43759a)['then'](function(){const _0x42d904=_0x42efc0;logger['info'](_0x42d904('0x2'),_0x423efa,_0x2848a8);})['catch'](function(_0x198a18){const _0x55610b=_0x42efc0;logger['info'](JSON[_0x55610b('0x102')](_0x198a18));});});},Migration['prototype']['dropTable']=function(_0x1e70df){const _0x8141d8=_0x5db695,_0x19e9c8=this;this[_0x8141d8('0x53')][_0x8141d8('0xde')](function(){const _0x441f50=_0x8141d8;return _0x19e9c8[_0x441f50('0x6c')]['dropTable'](_0x1e70df,{'force':!![]})['then'](function(){const _0x19e057=_0x441f50;logger[_0x19e057('0x11')](_0x19e057('0xcd'),_0x1e70df);})['catch'](function(_0x220daf){const _0xc3e8ef=_0x441f50;logger[_0xc3e8ef('0x11')](JSON[_0xc3e8ef('0x102')](_0x220daf));});});},Migration['prototype']['addIndex']=function(_0x93c4e1,_0xc17526,_0x1e4f52){const _0x380e52=_0x5db695,_0x492d6b=this;this[_0x380e52('0x53')][_0x380e52('0xde')](function(){const _0x5aff19=_0x380e52;return _0x492d6b[_0x5aff19('0x6c')][_0x5aff19('0x10e')](_0x93c4e1,_0xc17526,{'indexName':_0x1e4f52})['then'](function(){const _0x779e7a=_0x5aff19;logger['info'](_0x779e7a('0x37'),_0x93c4e1,_0xc17526[_0x779e7a('0x98')](','),_0x1e4f52);})[_0x5aff19('0xd4')](function(_0x57c407){logger['info'](JSON['stringify'](_0x57c407));});});},Migration[_0x5db695('0x15a')][_0x5db695('0xfa')]=function(_0x18c66b,_0x374435){const _0x31696e=_0x5db695,_0x2008af=this;this[_0x31696e('0x53')][_0x31696e('0xde')](function(){const _0x74b5bf=_0x31696e;return _0x2008af[_0x74b5bf('0x6c')]['removeIndex'](_0x18c66b,_0x374435)['then'](function(){logger['info']('removeIndex\x20%s\x20%s',_0x18c66b,_0x374435);})['catch'](function(_0x1cb84d){const _0x22d9ec=_0x74b5bf;logger[_0x22d9ec('0x11')](JSON[_0x22d9ec('0x102')](_0x1cb84d));});});},Migration['prototype'][_0x5db695('0x63')]=function(_0x4108a8){const _0x5d6e8f=_0x5db695,_0x498a3a=this;this['sequence'][_0x5d6e8f('0xde')](function(){const _0x17a919=_0x5d6e8f;return _0x498a3a[_0x17a919('0x6c')][_0x17a919('0x99')]['query'](_0x4108a8)[_0x17a919('0x9b')](function(){const _0x247511=_0x17a919;logger['info'](_0x247511('0xfb'),_0x4108a8);})['catch'](function(_0x1d1f61){const _0x3254ce=_0x17a919;logger[_0x3254ce('0x11')](JSON[_0x3254ce('0x102')](_0x1d1f61));});});},Migration[_0x5db695('0x15a')][_0x5db695('0xb7')]=function(_0xceef16,_0x3b5409){const _0x11e18c=_0x5db695,_0x186fc5=this;this[_0x11e18c('0x53')][_0x11e18c('0xde')](function(){const _0x4b65e3=_0x11e18c;return _0x186fc5[_0x4b65e3('0x6c')]['removeColumn'](_0xceef16,_0x3b5409)[_0x4b65e3('0x9b')](function(){const _0x380812=_0x4b65e3;logger[_0x380812('0x11')](_0x380812('0x14e'),_0x3b5409,_0xceef16);})[_0x4b65e3('0xd4')](function(_0x591a84){const _0x425839=_0x4b65e3;logger['info'](util[_0x425839('0x17')](_0x591a84,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x5db695('0x109')]=function(_0x4dbdc2,_0x2c4ca9,_0x34d2e3){const _0xa972f9=_0x5db695,_0x38b397=this;this[_0xa972f9('0x53')]['enqueue'](function(){const _0x4a2447=_0xa972f9;return _0x38b397[_0x4a2447('0x6c')][_0x4a2447('0x109')](_0x4dbdc2,_0x2c4ca9,_0x34d2e3)[_0x4a2447('0x9b')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x2c4ca9,_0x34d2e3,_0x4dbdc2);})[_0x4a2447('0xd4')](function(_0x1061c4){const _0x150305=_0x4a2447;logger[_0x150305('0x11')](util[_0x150305('0x17')](_0x1061c4,{'showHidden':![],'depth':null}));});});},Migration[_0x5db695('0x15a')][_0x5db695('0x9a')]=function(_0x133f9c){const _0x48fb27=_0x5db695;this[_0x48fb27('0x53')]['enqueue'](function(){return _0x133f9c();});},module['exports']={'up':function(_0x808a04,_0x79e784){return new Promise(function(_0x4e8b54){const _0x384de5=a964_0x5108,_0xf2af81=new Migration(_0x808a04);_0xf2af81[_0x384de5('0xf7')](_0x384de5('0x147'),_0x384de5('0x104'),{'type':_0x79e784[_0x384de5('0x4c')]}),_0xf2af81[_0x384de5('0xf7')](_0x384de5('0x147'),_0x384de5('0x145'),{'type':_0x79e784[_0x384de5('0x123')]}),_0xf2af81[_0x384de5('0xf7')](_0x384de5('0xb6'),_0x384de5('0xe4'),{'type':_0x79e784['INTEGER']}),_0xf2af81[_0x384de5('0xb7')](_0x384de5('0x119'),_0x384de5('0x120')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0xb2')+'\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,'+_0x384de5('0x8')+_0x384de5('0x76')+_0x384de5('0x117')+_0x384de5('0x97')+_0x384de5('0x159')+_0x384de5('0x3')+_0x384de5('0x114')+_0x384de5('0xe2')),_0xf2af81['query']('INSERT\x20INTO\x20`user_profiles`\x20(`name`,\x20`crudPermissions`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)'+_0x384de5('0x132')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x169')+_0x384de5('0x15c')+_0x384de5('0xf1')+'REFERENCES\x20user_profiles(`id`)\x20'+_0x384de5('0x96')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x122')+_0x384de5('0x82')+_0x384de5('0x8')+_0x384de5('0x78')+_0x384de5('0x105')+'\x20\x20`enabled`\x20tinyint(1)\x20DEFAULT\x20NULL,'+_0x384de5('0x2a')+_0x384de5('0x1')+_0x384de5('0x97')+_0x384de5('0x159')+_0x384de5('0x116')+_0x384de5('0x3')+'\x20\x20KEY\x20`userProfileId`\x20(`userProfileId`),'+'\x20\x20KEY\x20`compositeIndex`\x20(`sectionId`,`userProfileId`),'+_0x384de5('0x127')+')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;'),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x14')+_0x384de5('0x82')+_0x384de5('0x8')+_0x384de5('0x27')+_0x384de5('0xf0')+_0x384de5('0x97')+_0x384de5('0x159')+_0x384de5('0x19')+_0x384de5('0x3')+_0x384de5('0x92')+_0x384de5('0x10d')+_0x384de5('0x14c')+')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;'),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x118')+_0x384de5('0x44')+');'),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x81')+_0x384de5('0x108')+_0x384de5('0x161')+_0x384de5('0x2f')+_0x384de5('0x93')+_0x384de5('0x12f')+',(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'+';'),_0xf2af81[_0x384de5('0x63')](_0x384de5('0xeb')+_0x384de5('0x7')+_0x384de5('0x13a')+_0x384de5('0xce')+_0x384de5('0x70')+'\x20\x20);'),_0xf2af81['query'](_0x384de5('0xb4')+_0x384de5('0x9e')+_0x384de5('0xe6')+'\x20\x20WHERE\x20role\x20=\x20\x27user\x27\x20and\x20permissions\x20is\x20not\x20null\x20and\x20permissions\x20<>\x20\x27\x27'+'\x20\x20ORDER\x20BY\x20id;'),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x131')+'\x20\x20('+_0x384de5('0x134')+_0x384de5('0x157')+_0x384de5('0x0')+_0x384de5('0x6b')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x21')+_0x384de5('0xbd')+_0x384de5('0x41')+_0x384de5('0x11e')+_0x384de5('0x111')+_0x384de5('0x20')+'\x20\x20ORDER\x20BY\x20n)\x20AS\x20split;'),_0xf2af81['query'](_0x384de5('0x15')+'\x20\x20('+'\x20\x20\x20\x20permissions\x20text\x20not\x20null,'+_0x384de5('0xc0')+_0x384de5('0x6b')),_0xf2af81[_0x384de5('0x63')]('INSERT\x20INTO\x20tmpNormalizedPermissions'+'\x20\x20SELECT\x20GROUP_CONCAT(sectionId\x20ORDER\x20BY\x20sectionId),\x20userId'+_0x384de5('0xb0')+'\x20\x20GROUP\x20BY\x20userId;'),_0xf2af81[_0x384de5('0x63')](_0x384de5('0xc3')+'\x20\x20SET\x20u.permissions\x20=\x20t.permissions'+_0x384de5('0x22')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x10b')),_0xf2af81['query']('INSERT\x20INTO\x20tmpPermissions'+_0x384de5('0x36')+_0x384de5('0xe6')+_0x384de5('0xdf')+_0x384de5('0xe8')+_0x384de5('0x6f')),_0xf2af81[_0x384de5('0x63')]('CREATE\x20TABLE\x20tmpNormalizedUsers'+'\x20\x20('+_0x384de5('0x134')+'\x20\x20\x20\x20userId\x20text,'+_0x384de5('0x0')+_0x384de5('0x6b')),_0xf2af81['query'](_0x384de5('0x100')+'\x20\x20SELECT\x20permission,\x20userId,\x200'+_0x384de5('0x41')+'\x20\x20s.sectionId\x20permission,'+_0x384de5('0x71')+'\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'+_0x384de5('0x10f')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x15d')+'\x20\x20sectionId\x20int(11)\x20not\x20null,'+_0x384de5('0x8f')+_0x384de5('0x15b')+_0x384de5('0x6b')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x9')+'\x20\x20SELECT\x20x.sectionId,\x20u.VoiceQueueId,\x20x.userId'+_0x384de5('0x4d')+_0x384de5('0xff')+'\x20\x20INNER\x20JOIN\x20voice_queues\x20q\x20ON\x20u.VoiceQueueId\x20=\x20q.id'+_0x384de5('0x138')),_0xf2af81['query'](_0x384de5('0x9')+_0x384de5('0x162')+_0x384de5('0x4d')+_0x384de5('0x49')+_0x384de5('0x13b')),_0xf2af81[_0x384de5('0x63')]('INSERT\x20INTO\x20tmpExtractedResources'+_0x384de5('0xe7')+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+_0x384de5('0x62')+_0x384de5('0x165')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x9')+_0x384de5('0x18')+_0x384de5('0x4d')+'\x20\x20INNER\x20JOIN\x20user_has_mail_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+'\x20\x20WHERE\x20x.sectionId\x20=\x20601;'),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x9')+_0x384de5('0x38')+_0x384de5('0x4d')+_0x384de5('0x35')+_0x384de5('0xc4')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x9')+_0x384de5('0xcf')+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+_0x384de5('0x29')+_0x384de5('0x10a')),_0xf2af81['query'](_0x384de5('0x9')+_0x384de5('0x126')+_0x384de5('0x4d')+'\x20\x20INNER\x20JOIN\x20user_has_sms_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+_0x384de5('0xbc')),_0xf2af81['query'](_0x384de5('0x9')+_0x384de5('0x54')+_0x384de5('0x4d')+_0x384de5('0x34')+_0x384de5('0x64')),_0xf2af81[_0x384de5('0x63')]('INSERT\x20INTO\x20tmpExtractedResources'+_0x384de5('0x166')+_0x384de5('0x4d')+_0x384de5('0x1a')+_0x384de5('0xf6')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x9')+'\x20\x20SELECT\x20x.sectionId,\x20u.FaxQueueId,\x20x.userId'+_0x384de5('0x4d')+_0x384de5('0x13f')+'\x20\x20WHERE\x20x.sectionId\x20=\x20901;'),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x9')+_0x384de5('0xf2')+_0x384de5('0x4d')+_0x384de5('0x89')+_0x384de5('0x91')),_0xf2af81[_0x384de5('0x63')]('INSERT\x20INTO\x20tmpExtractedResources'+_0x384de5('0xb3')+_0x384de5('0x4d')+'\x20\x20INNER\x20JOIN\x20user_has_square_projects\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+_0x384de5('0xc6')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x9')+_0x384de5('0xaf')+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+_0x384de5('0xff')+_0x384de5('0x46')+_0x384de5('0x13c')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0xf5')+'\x20\x20('+'\x20\x20\x20\x20\x20\x20userId\x20text\x20not\x20null,'+_0x384de5('0xea')+_0x384de5('0x6b')),_0xf2af81['query'](_0x384de5('0x158')+_0x384de5('0x61')+'\x20\x20FROM\x20(SELECT'+'\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(t.userIds,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20userId,'+_0x384de5('0x50')+_0x384de5('0x57')+_0x384de5('0x10f')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x154')+'\x20\x20('+'\x20\x20\x20\x20\x20\x20userIds\x20varchar(255)\x20not\x20null,'+'\x20\x20\x20\x20\x20\x20permissions\x20text\x20not\x20null,'+_0x384de5('0x70')+_0x384de5('0x6b')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x142')+_0x384de5('0xd9')+_0x384de5('0x10')+_0x384de5('0xa7')+_0x384de5('0x75')+_0x384de5('0x72')+_0x384de5('0x6e')+_0x384de5('0x148')+_0x384de5('0x14a')+_0x384de5('0x14f')+'\x20\x20WHERE\x20split.userId\x20IN\x20(SELECT\x20*\x20FROM'+_0x384de5('0x59')+'\x20\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'+_0x384de5('0x5a')+_0x384de5('0x143')+_0x384de5('0x107')+'\x20\x20GROUP\x20BY\x20permissions'+'\x20\x20ORDER\x20BY\x20GROUP_CONCAT(userId);'),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x66')+'\x20\x20('+'\x20\x20\x20\x20\x20\x20userId\x20text\x20not\x20null,'+_0x384de5('0xce')+_0x384de5('0x70')+_0x384de5('0x6b')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x68')+_0x384de5('0xdb')+_0x384de5('0x10')+_0x384de5('0x86')+'\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'+_0x384de5('0x30')+_0x384de5('0x9f')+_0x384de5('0x156')+_0x384de5('0x1d')+_0x384de5('0x3f')+_0x384de5('0x15e')+_0x384de5('0xf8')+'\x20\x20\x20\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'+_0x384de5('0x77')+_0x384de5('0x13')),_0xf2af81['query'](_0x384de5('0xa')+_0x384de5('0x7')+_0x384de5('0xe9')+_0x384de5('0xce')+_0x384de5('0x70')+'\x20\x20);'),_0xf2af81['query']('INSERT\x20INTO\x20tmpFinalProfiles'+_0x384de5('0xd7')+'\x20\x20UNION'+_0x384de5('0x23')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x7a')+_0x384de5('0x136')+_0x384de5('0xc8')+_0x384de5('0x149')+_0x384de5('0x153')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0xa9')+_0x384de5('0x7b')+_0x384de5('0xdc')+_0x384de5('0x11b')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x5c')+_0x384de5('0x7')+_0x384de5('0x4f')+_0x384de5('0xf9')+_0x384de5('0x134')+_0x384de5('0x16b')+_0x384de5('0xa2')+_0x384de5('0xd8')+'\x20\x20\x20\x20insertedId\x20int(11),'+_0x384de5('0x24')+_0x384de5('0x6b')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0xcb')+'\x20\x20SELECT\x20\x27\x27,\x20\x27\x27,\x20permission,\x201,\x200,\x20profileId,\x20null,\x20userId'+_0x384de5('0x41')+_0x384de5('0x112')+_0x384de5('0x12c')+_0x384de5('0x56')+'\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tally'+'\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'+_0x384de5('0xda')),_0xf2af81['query'](_0x384de5('0xd6')+_0x384de5('0x55')+'\x20\x20\x20\x20\x20\x20name\x20=\x20(SELECT'+_0x384de5('0xc')+_0x384de5('0x164')+_0x384de5('0xcc')+_0x384de5('0x113')+_0x384de5('0x65')+_0x384de5('0x125')+_0x384de5('0x121')+_0x384de5('0x80')+_0x384de5('0xd3')+_0x384de5('0xa1')+_0x384de5('0x141')+'\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'+_0x384de5('0xfe')+_0x384de5('0x16')+_0x384de5('0x3b')+_0x384de5('0x39')+'\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'+_0x384de5('0xc1')+'\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=\x20406\x20THEN\x20\x27Voicemails\x27'+_0x384de5('0x13d')+_0x384de5('0x15f')+_0x384de5('0xec')+_0x384de5('0xf3')+_0x384de5('0x10c')+'\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'+_0x384de5('0x4e')+_0x384de5('0x4')+_0x384de5('0x52')+'\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'+_0x384de5('0x1c')+_0x384de5('0x28')+_0x384de5('0x84')+_0x384de5('0x2b')+_0x384de5('0x101')+'\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'+'\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=\x20710\x20THEN\x20\x27Realtime\x27'+_0x384de5('0x167')+_0x384de5('0x40')+_0x384de5('0x60')+_0x384de5('0x135')+_0x384de5('0x137')+_0x384de5('0x150')+_0x384de5('0x8e')+_0x384de5('0x6')+_0x384de5('0x3e')+_0x384de5('0xa6')+_0x384de5('0x31')+_0x384de5('0x58')+_0x384de5('0x48')+_0x384de5('0x106')+_0x384de5('0x1e')+_0x384de5('0x139')+'\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'+_0x384de5('0x5')+_0x384de5('0x115')+_0x384de5('0x9c')+_0x384de5('0x12d')+_0x384de5('0x5d')+'\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'+_0x384de5('0xa3')+_0x384de5('0x85')+'\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=\x201201\x20THEN\x20\x27Metrics\x27'+_0x384de5('0xb')+'\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'+_0x384de5('0xbe')+_0x384de5('0xa8')+_0x384de5('0x4a')+_0x384de5('0xac')+_0x384de5('0x8a')+_0x384de5('0xfd')+_0x384de5('0xab')+_0x384de5('0x6a')+_0x384de5('0x83')+_0x384de5('0x8b')+'\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'+_0x384de5('0xf')+_0x384de5('0x2c')+_0x384de5('0x13e')+_0x384de5('0x6d')+'\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'+_0x384de5('0xb8')+'\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'+_0x384de5('0x129')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ELSE\x20\x27\x27'+_0x384de5('0xba')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20),'+_0x384de5('0x11f')+_0x384de5('0x130')+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20100\x20THEN\x20\x27Dashboards\x27'+_0x384de5('0x7d')+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(202,\x20203,\x20204)\x20THEN\x20\x27Staff\x27'+_0x384de5('0x73')+_0x384de5('0x47')+_0x384de5('0x2d')+_0x384de5('0x16c')+_0x384de5('0xb9')+_0x384de5('0x128')+_0x384de5('0x5e')+_0x384de5('0x140')+_0x384de5('0x168')+_0x384de5('0x3a')+_0x384de5('0x33')+_0x384de5('0xdd')+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1501,\x201502,\x201510)\x20THEN\x20\x27MotionDialer\x27'+_0x384de5('0x7f')+_0x384de5('0x79')+_0x384de5('0xd1')+_0x384de5('0xca')+'\x20\x20\x20\x20\x20\x20END'+_0x384de5('0x6b')),_0xf2af81[_0x384de5('0x63')]('DELETE\x20FROM\x20tmpSections'+_0x384de5('0xd2')),_0xf2af81[_0x384de5('0x63')]('CREATE\x20TABLE\x20tmpCustomResources'+_0x384de5('0x7')+'\x20\x20\x20\x20name\x20varchar(255)\x20not\x20null,'+_0x384de5('0xf9')+_0x384de5('0x134')+_0x384de5('0x16b')+_0x384de5('0xa2')+_0x384de5('0xd8')+_0x384de5('0x12b')+_0x384de5('0x24')+_0x384de5('0x6b')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0xd5')+_0x384de5('0xe0')+'\x20\x20FROM\x20tmpSections'+_0x384de5('0xc9')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x51')+_0x384de5('0xa4')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0xd6')+'\x20\x20SET\x20sectionId\x20=\x201801\x20WHERE\x20sectionId\x20between\x2088889\x20AND\x2099999;'),_0xf2af81[_0x384de5('0x63')](_0x384de5('0xd6')+_0x384de5('0x69')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0xd6')+_0x384de5('0x155')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x12a')+_0x384de5('0x94')+_0x384de5('0xbb')+_0x384de5('0x45')+_0x384de5('0x103')+_0x384de5('0x3c')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20);'),_0xf2af81['query'](_0x384de5('0x7c')+_0x384de5('0xed')+_0x384de5('0x11a')),_0xf2af81[_0x384de5('0x63')]('UPDATE\x20tmpSections\x20s'+_0x384de5('0x42')+_0x384de5('0x124')+'\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);'),_0xf2af81['query']('UPDATE\x20tmpCustomResources\x20r,\x20tmpSections\x20s'+_0x384de5('0xc2')+_0x384de5('0xee')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x26')+_0x384de5('0x7')+_0x384de5('0x1f')+_0x384de5('0x74')+_0x384de5('0x43')+_0x384de5('0x146')+_0x384de5('0x6b')),_0xf2af81[_0x384de5('0x63')]('INSERT\x20INTO\x20tmpResources'+_0x384de5('0xc7')+_0x384de5('0xb1')+_0x384de5('0x8c')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0xc5')+'\x20\x20('+_0x384de5('0x4f')+_0x384de5('0x3d')+_0x384de5('0x14b')+_0x384de5('0x32')+_0x384de5('0x133')+_0x384de5('0x6b')),_0xf2af81[_0x384de5('0x63')]('INSERT\x20INTO\x20tmpNormalizedResources'+_0x384de5('0x152')+_0x384de5('0x41')+_0x384de5('0xd')+'\x20\x20\x20\x20\x20\x20\x20\x20r.type\x20type,'+'\x20\x20\x20\x20\x20\x20\x20\x20r.insertedSectionId\x20insertedSectionId,'+'\x20\x20\x20\x20\x20\x20\x20\x20r.sectionId\x20sectionId'+'\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tally'+_0x384de5('0xef')+_0x384de5('0xda')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0xfc')+_0x384de5('0x4b')+'\x20\x20FROM\x20tmpCustomResources;'),_0xf2af81[_0x384de5('0x63')](_0x384de5('0xa0')+_0x384de5('0x5b')+_0x384de5('0xe1')+'\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)'+_0x384de5('0x2e')+'\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)'+_0x384de5('0x88')+_0x384de5('0x160')+'\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)'+_0x384de5('0x25')+_0x384de5('0x16a')+_0x384de5('0xae')+_0x384de5('0x9d')+_0x384de5('0xad')+_0x384de5('0x95')+_0x384de5('0xb5')+'\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)'+_0x384de5('0xf4')+_0x384de5('0x8d')+_0x384de5('0xe5')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x151')+_0x384de5('0x144')),_0xf2af81[_0x384de5('0x63')]('INSERT\x20INTO\x20user_profile_has_resources\x20(name,\x20resourceId,\x20type,\x20createdAt,\x20updatedAt,\x20sectionId)'+_0x384de5('0xd0')+'\x20\x20FROM\x20tmpNormalizedResources;'),_0xf2af81['query'](_0x384de5('0xe')+'\x20\x20SET\x20u.userProfileId\x20=\x20f.profileId'+_0x384de5('0x5f')),_0xf2af81[_0x384de5('0x63')]('UPDATE\x20users\x20u'+_0x384de5('0x163')+_0x384de5('0x14d')),_0xf2af81['query'](_0x384de5('0xaa')),_0xf2af81[_0x384de5('0x63')]('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpPermissions;'),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x110')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x67')),_0xf2af81[_0x384de5('0x63')]('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpExtractedResources;'),_0xf2af81['query']('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpGroupedPermissions;'),_0xf2af81['query'](_0x384de5('0xa5')),_0xf2af81['query'](_0x384de5('0x12')),_0xf2af81['query'](_0x384de5('0x87')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0x12e')),_0xf2af81[_0x384de5('0x63')](_0x384de5('0xe3')),_0xf2af81[_0x384de5('0x63')]('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpResources;'),_0xf2af81['query'](_0x384de5('0x90')),_0xf2af81['final'](_0x4e8b54);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.2.0.js b/server/migrations/2.2.0.js index f4b9386..8d4ea8e 100644 --- a/server/migrations/2.2.0.js +++ b/server/migrations/2.2.0.js @@ -1 +1 @@ -const a965_0x4d32=['util','addIndex','clicksend','Added\x20column\x20%s\x20to\x20%s','ENUM','plivo','query\x20%s','removeColumn','dropTable','enqueue','queryInterface','csc','catch','phoneBarListenPort','then','sms_accounts','tail','addIndex\x20%s\x20%s\x20%s','renameColumn','clickatell','changeColumn','final','sequence','twilio','sequelize','inspect','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','infobip','finally','skebby','removeIndex','removeIndex\x20%s\x20%s','users','addColumn','connectel','Changed\x20column\x20%s\x20in\x20table\x20%s','info','join','prototype','stringify'];(function(_0x29308e,_0x4d32c3){const _0x39f45d=function(_0x4b960c){while(--_0x4b960c){_0x29308e['push'](_0x29308e['shift']());}};_0x39f45d(++_0x4d32c3);}(a965_0x4d32,0x106));const a965_0x39f4=function(_0x29308e,_0x4d32c3){_0x29308e=_0x29308e-0x0;let _0x39f45d=a965_0x4d32[_0x29308e];return _0x39f45d;};const _0x3b18a7=a965_0x39f4;'use strict';const util=require(_0x3b18a7('0x12')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x3b18a7('0x10')][_0x3b18a7('0x1b')]=function(_0x4b960c){const _0x1851f6=_0x3b18a7;this['tail']=this[_0x1851f6('0x22')]?this['tail'][_0x1851f6('0x6')](_0x4b960c):_0x4b960c();};const Migration=function(_0xf2b2a7){const _0x2e0dc5=_0x3b18a7;this[_0x2e0dc5('0x1c')]=_0xf2b2a7,this['sequence']=new Sequence();};Migration[_0x3b18a7('0x10')][_0x3b18a7('0x26')]=function(_0x8a89fa,_0x17cdaf,_0x2cc7d9){const _0xc22286=_0x3b18a7,_0x2ae588=this;this[_0xc22286('0x0')][_0xc22286('0x1b')](function(){const _0x4e37ae=_0xc22286;return _0x2ae588[_0x4e37ae('0x1c')][_0x4e37ae('0x26')](_0x8a89fa,_0x17cdaf,_0x2cc7d9)[_0x4e37ae('0x20')](function(){const _0x43b79c=_0x4e37ae;logger[_0x43b79c('0xe')](_0x43b79c('0xd'),_0x17cdaf,_0x8a89fa);})[_0x4e37ae('0x1e')](function(_0x4ab9b5){const _0x4b36d5=_0x4e37ae;logger[_0x4b36d5('0xe')](JSON[_0x4b36d5('0x11')](_0x4ab9b5));});});},Migration['prototype']['addColumn']=function(_0x138769,_0x410e74,_0x4054fe){const _0x36720e=_0x3b18a7,_0x6e0ccb=this;this[_0x36720e('0x0')][_0x36720e('0x1b')](function(){const _0x1bdba6=_0x36720e;return _0x6e0ccb['queryInterface'][_0x1bdba6('0xb')](_0x138769,_0x410e74,_0x4054fe)[_0x1bdba6('0x20')](function(){const _0x2b3254=_0x1bdba6;logger['info'](_0x2b3254('0x15'),_0x410e74,_0x138769);})[_0x1bdba6('0x1e')](function(_0x56c560){const _0x147ac2=_0x1bdba6;logger[_0x147ac2('0xe')](JSON[_0x147ac2('0x11')](_0x56c560));});});},Migration[_0x3b18a7('0x10')][_0x3b18a7('0x1a')]=function(_0x101abb){const _0xc95ba7=_0x3b18a7,_0x2a604d=this;this[_0xc95ba7('0x0')][_0xc95ba7('0x1b')](function(){const _0x2f377f=_0xc95ba7;return _0x2a604d[_0x2f377f('0x1c')]['dropTable'](_0x101abb,{'force':!![]})[_0x2f377f('0x20')](function(){logger['info']('table\x20dropped\x20%s',_0x101abb);})['catch'](function(_0x375073){const _0x3346a8=_0x2f377f;logger['info'](JSON[_0x3346a8('0x11')](_0x375073));});});},Migration[_0x3b18a7('0x10')]['addIndex']=function(_0x4008f2,_0x12f867,_0xc2e90b){const _0x3e239e=_0x3b18a7,_0x49b8af=this;this[_0x3e239e('0x0')][_0x3e239e('0x1b')](function(){const _0x367e31=_0x3e239e;return _0x49b8af[_0x367e31('0x1c')][_0x367e31('0x13')](_0x4008f2,_0x12f867,{'indexName':_0xc2e90b})[_0x367e31('0x20')](function(){const _0x10536c=_0x367e31;logger[_0x10536c('0xe')](_0x10536c('0x23'),_0x4008f2,_0x12f867[_0x10536c('0xf')](','),_0xc2e90b);})[_0x367e31('0x1e')](function(_0x19b2d1){const _0x3f2618=_0x367e31;logger[_0x3f2618('0xe')](JSON[_0x3f2618('0x11')](_0x19b2d1));});});},Migration[_0x3b18a7('0x10')][_0x3b18a7('0x8')]=function(_0x1640a0,_0x783a39){const _0x46a3e6=_0x3b18a7,_0x571309=this;this[_0x46a3e6('0x0')][_0x46a3e6('0x1b')](function(){const _0x2582bd=_0x46a3e6;return _0x571309['queryInterface'][_0x2582bd('0x8')](_0x1640a0,_0x783a39)[_0x2582bd('0x20')](function(){const _0x122542=_0x2582bd;logger[_0x122542('0xe')](_0x122542('0x9'),_0x1640a0,_0x783a39);})[_0x2582bd('0x1e')](function(_0x2ac118){const _0x398923=_0x2582bd;logger[_0x398923('0xe')](JSON[_0x398923('0x11')](_0x2ac118));});});},Migration[_0x3b18a7('0x10')]['query']=function(_0x4c1a74){const _0x173ef0=_0x3b18a7,_0x5c286e=this;this[_0x173ef0('0x0')][_0x173ef0('0x1b')](function(){const _0x3c784b=_0x173ef0;return _0x5c286e[_0x3c784b('0x1c')][_0x3c784b('0x2')]['query'](_0x4c1a74)[_0x3c784b('0x20')](function(){const _0x2df3db=_0x3c784b;logger[_0x2df3db('0xe')](_0x2df3db('0x18'),_0x4c1a74);})[_0x3c784b('0x1e')](function(_0x29dd89){const _0x53642d=_0x3c784b;logger[_0x53642d('0xe')](JSON['stringify'](_0x29dd89));});});},Migration[_0x3b18a7('0x10')][_0x3b18a7('0x19')]=function(_0x20017c,_0x5035f3){const _0x46d64e=_0x3b18a7,_0x56e66d=this;this['sequence'][_0x46d64e('0x1b')](function(){const _0x13ba86=_0x46d64e;return _0x56e66d['queryInterface'][_0x13ba86('0x19')](_0x20017c,_0x5035f3)[_0x13ba86('0x20')](function(){const _0x5df149=_0x13ba86;logger[_0x5df149('0xe')]('Removed\x20column\x20%s\x20from\x20%s',_0x5035f3,_0x20017c);})[_0x13ba86('0x1e')](function(_0x2b1e31){const _0x175eed=_0x13ba86;logger[_0x175eed('0xe')](util[_0x175eed('0x3')](_0x2b1e31,{'showHidden':![],'depth':null}));});});},Migration[_0x3b18a7('0x10')][_0x3b18a7('0x24')]=function(_0x30f222,_0x5d2a8c,_0x313c35){const _0x56a982=_0x3b18a7,_0x139b10=this;this[_0x56a982('0x0')][_0x56a982('0x1b')](function(){const _0x3961f5=_0x56a982;return _0x139b10['queryInterface'][_0x3961f5('0x24')](_0x30f222,_0x5d2a8c,_0x313c35)['then'](function(){const _0x544495=_0x3961f5;logger[_0x544495('0xe')](_0x544495('0x4'),_0x5d2a8c,_0x313c35,_0x30f222);})[_0x3961f5('0x1e')](function(_0x4cf1cf){const _0x5801ab=_0x3961f5;logger[_0x5801ab('0xe')](util['inspect'](_0x4cf1cf,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x5d9a72){const _0x1951bb=_0x3b18a7;this[_0x1951bb('0x0')][_0x1951bb('0x1b')](function(){return _0x5d9a72();});},module['exports']={'up':function(_0x5265d5,_0x2bb170){return new Promise(function(_0x2ae0e5){const _0xabd8ce=a965_0x39f4,_0x3a6ec7=new Migration(_0x5265d5);_0x3a6ec7[_0xabd8ce('0x26')](_0xabd8ce('0x21'),'type',{'type':_0x2bb170[_0xabd8ce('0x16')](_0xabd8ce('0x1'),_0xabd8ce('0x7'),_0xabd8ce('0xc'),_0xabd8ce('0x14'),_0xabd8ce('0x17'),_0xabd8ce('0x25'),_0xabd8ce('0x1d'),_0xabd8ce('0x5'),'intelepeer')}),_0x3a6ec7[_0xabd8ce('0x26')](_0xabd8ce('0xa'),_0xabd8ce('0x1f'),{'type':_0x2bb170['INTEGER'](0x5),'defaultValue':0x1428}),_0x3a6ec7[_0xabd8ce('0x27')](_0x2ae0e5);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.2.1.js b/server/migrations/2.2.1.js index 184a61a..c7a90e8 100644 --- a/server/migrations/2.2.1.js +++ b/server/migrations/2.2.1.js @@ -1 +1 @@ -const a966_0x2a59=['query\x20%s','queryInterface','final','catch','dropTable','exports','sequence','removeIndex','removeColumn','util','Added\x20column\x20%s\x20to\x20%s','enqueue','then','../config/logger','prototype','tail','addIndex','renameColumn','finally','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','table\x20dropped\x20%s','info','migration','addColumn','stringify','changeColumn','query','sequelize','inspect'];(function(_0x46a8dd,_0x2a59e3){const _0xebbc21=function(_0x39c9af){while(--_0x39c9af){_0x46a8dd['push'](_0x46a8dd['shift']());}};_0xebbc21(++_0x2a59e3);}(a966_0x2a59,0x156));const a966_0xebbc=function(_0x46a8dd,_0x2a59e3){_0x46a8dd=_0x46a8dd-0x0;let _0xebbc21=a966_0x2a59[_0x46a8dd];return _0xebbc21;};const _0x150e91=a966_0xebbc;'use strict';const util=require(_0x150e91('0x8')),logger=require(_0x150e91('0xc'))(_0x150e91('0x17')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x39c9af){const _0x58c504=_0x150e91;this[_0x58c504('0xe')]=this[_0x58c504('0xe')]?this['tail'][_0x58c504('0x11')](_0x39c9af):_0x39c9af();};const Migration=function(_0x26b1af){const _0x49445b=_0x150e91;this['queryInterface']=_0x26b1af,this[_0x49445b('0x5')]=new Sequence();};Migration[_0x150e91('0xd')]['changeColumn']=function(_0x3b6e4c,_0x520ce4,_0x5098bb){const _0x3ede4c=_0x150e91,_0xf62e1b=this;this[_0x3ede4c('0x5')][_0x3ede4c('0xa')](function(){const _0x418d89=_0x3ede4c;return _0xf62e1b['queryInterface'][_0x418d89('0x1a')](_0x3b6e4c,_0x520ce4,_0x5098bb)[_0x418d89('0xb')](function(){const _0x1f8f5c=_0x418d89;logger[_0x1f8f5c('0x16')](_0x1f8f5c('0x12'),_0x520ce4,_0x3b6e4c);})[_0x418d89('0x2')](function(_0x596c24){const _0x551caf=_0x418d89;logger[_0x551caf('0x16')](JSON['stringify'](_0x596c24));});});},Migration['prototype'][_0x150e91('0x18')]=function(_0x4a4814,_0x1e5dd7,_0x1f98a9){const _0x55e04b=_0x150e91,_0x1e6c06=this;this['sequence'][_0x55e04b('0xa')](function(){const _0x15fc1c=_0x55e04b;return _0x1e6c06[_0x15fc1c('0x0')]['addColumn'](_0x4a4814,_0x1e5dd7,_0x1f98a9)[_0x15fc1c('0xb')](function(){const _0x59da35=_0x15fc1c;logger[_0x59da35('0x16')](_0x59da35('0x9'),_0x1e5dd7,_0x4a4814);})[_0x15fc1c('0x2')](function(_0x109901){const _0xe498e9=_0x15fc1c;logger[_0xe498e9('0x16')](JSON['stringify'](_0x109901));});});},Migration[_0x150e91('0xd')][_0x150e91('0x3')]=function(_0x202f2e){const _0x1f614e=_0x150e91,_0x5d3338=this;this[_0x1f614e('0x5')][_0x1f614e('0xa')](function(){const _0x2cc4df=_0x1f614e;return _0x5d3338[_0x2cc4df('0x0')][_0x2cc4df('0x3')](_0x202f2e,{'force':!![]})[_0x2cc4df('0xb')](function(){const _0x171691=_0x2cc4df;logger['info'](_0x171691('0x15'),_0x202f2e);})[_0x2cc4df('0x2')](function(_0x41df1b){const _0x3582d0=_0x2cc4df;logger[_0x3582d0('0x16')](JSON['stringify'](_0x41df1b));});});},Migration['prototype'][_0x150e91('0xf')]=function(_0x225e7c,_0x5496af,_0x40a59e){const _0x440193=_0x150e91,_0x45b84d=this;this[_0x440193('0x5')][_0x440193('0xa')](function(){const _0x1d10de=_0x440193;return _0x45b84d[_0x1d10de('0x0')][_0x1d10de('0xf')](_0x225e7c,_0x5496af,{'indexName':_0x40a59e})['then'](function(){const _0x44f098=_0x1d10de;logger[_0x44f098('0x16')]('addIndex\x20%s\x20%s\x20%s',_0x225e7c,_0x5496af['join'](','),_0x40a59e);})[_0x1d10de('0x2')](function(_0x14f13a){const _0x134c6b=_0x1d10de;logger['info'](JSON[_0x134c6b('0x19')](_0x14f13a));});});},Migration['prototype']['removeIndex']=function(_0x3b4337,_0xd7b407){const _0x31eaa9=_0x150e91,_0x129a70=this;this[_0x31eaa9('0x5')]['enqueue'](function(){const _0x338cae=_0x31eaa9;return _0x129a70['queryInterface'][_0x338cae('0x6')](_0x3b4337,_0xd7b407)[_0x338cae('0xb')](function(){const _0x5f3d06=_0x338cae;logger[_0x5f3d06('0x16')](_0x5f3d06('0x13'),_0x3b4337,_0xd7b407);})[_0x338cae('0x2')](function(_0x2570ae){const _0x1bd891=_0x338cae;logger[_0x1bd891('0x16')](JSON[_0x1bd891('0x19')](_0x2570ae));});});},Migration[_0x150e91('0xd')]['query']=function(_0x5208fd){const _0x4edee3=_0x150e91,_0x58aa82=this;this[_0x4edee3('0x5')][_0x4edee3('0xa')](function(){const _0x278899=_0x4edee3;return _0x58aa82[_0x278899('0x0')][_0x278899('0x1c')][_0x278899('0x1b')](_0x5208fd)[_0x278899('0xb')](function(){const _0x4b7dcd=_0x278899;logger['info'](_0x4b7dcd('0x1e'),_0x5208fd);})[_0x278899('0x2')](function(_0x48715c){const _0x18b3ca=_0x278899;logger['info'](JSON[_0x18b3ca('0x19')](_0x48715c));});});},Migration[_0x150e91('0xd')][_0x150e91('0x7')]=function(_0x2adb25,_0x4bf926){const _0x5b6b8b=_0x150e91,_0x421373=this;this[_0x5b6b8b('0x5')][_0x5b6b8b('0xa')](function(){const _0x34b2ab=_0x5b6b8b;return _0x421373['queryInterface'][_0x34b2ab('0x7')](_0x2adb25,_0x4bf926)[_0x34b2ab('0xb')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x4bf926,_0x2adb25);})['catch'](function(_0x17c487){const _0x191a85=_0x34b2ab;logger[_0x191a85('0x16')](util[_0x191a85('0x1d')](_0x17c487,{'showHidden':![],'depth':null}));});});},Migration[_0x150e91('0xd')][_0x150e91('0x10')]=function(_0x16337a,_0x4366bb,_0x3f107e){const _0x37604e=_0x150e91,_0x127693=this;this[_0x37604e('0x5')][_0x37604e('0xa')](function(){const _0x291eca=_0x37604e;return _0x127693['queryInterface'][_0x291eca('0x10')](_0x16337a,_0x4366bb,_0x3f107e)[_0x291eca('0xb')](function(){const _0x4eeb2f=_0x291eca;logger[_0x4eeb2f('0x16')](_0x4eeb2f('0x14'),_0x4366bb,_0x3f107e,_0x16337a);})[_0x291eca('0x2')](function(_0x3dde3c){logger['info'](util['inspect'](_0x3dde3c,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x47d23b){const _0x5af40c=_0x150e91;this[_0x5af40c('0x5')][_0x5af40c('0xa')](function(){return _0x47d23b();});},module[_0x150e91('0x4')]={'up':function(_0x3897b6){return new Promise(function(_0x150845){const _0x3862db=a966_0xebbc,_0x30ac69=new Migration(_0x3897b6);_0x30ac69[_0x3862db('0x1')](_0x150845);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.2.2.js b/server/migrations/2.2.2.js index 18c06ff..67f3c2f 100644 --- a/server/migrations/2.2.2.js +++ b/server/migrations/2.2.2.js @@ -1 +1 @@ -const a967_0x2a2c=['enqueue','queryInterface','Removed\x20column\x20%s\x20from\x20%s','changeColumn','tail','stringify','removeIndex','inspect','addColumn','removeColumn','migration','join','removeIndex\x20%s\x20%s','then','../config/logger','util','dropTable','renameColumn','final','prototype','Added\x20column\x20%s\x20to\x20%s','addIndex\x20%s\x20%s\x20%s','query\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','query','catch','addIndex','info','sequelize','sequence'];(function(_0x23b7cc,_0x2a2c3c){const _0xfadc4=function(_0x1aed2e){while(--_0x1aed2e){_0x23b7cc['push'](_0x23b7cc['shift']());}};_0xfadc4(++_0x2a2c3c);}(a967_0x2a2c,0x164));const a967_0xfadc=function(_0x23b7cc,_0x2a2c3c){_0x23b7cc=_0x23b7cc-0x0;let _0xfadc4=a967_0x2a2c[_0x23b7cc];return _0xfadc4;};const _0x5f4eab=a967_0xfadc;'use strict';const util=require(_0x5f4eab('0x13')),logger=require(_0x5f4eab('0x12'))(_0x5f4eab('0xe')),Sequence=function(){};Sequence[_0x5f4eab('0x17')][_0x5f4eab('0x4')]=function(_0x1aed2e){const _0x5689fb=_0x5f4eab;this[_0x5689fb('0x8')]=this[_0x5689fb('0x8')]?this[_0x5689fb('0x8')]['finally'](_0x1aed2e):_0x1aed2e();};const Migration=function(_0x261407){const _0x440c6d=_0x5f4eab;this[_0x440c6d('0x5')]=_0x261407,this['sequence']=new Sequence();};Migration['prototype']['changeColumn']=function(_0x44f389,_0x386b76,_0x181e71){const _0xdd711f=_0x5f4eab,_0x415f4c=this;this['sequence'][_0xdd711f('0x4')](function(){const _0x335557=_0xdd711f;return _0x415f4c[_0x335557('0x5')][_0x335557('0x7')](_0x44f389,_0x386b76,_0x181e71)[_0x335557('0x11')](function(){const _0x1800dd=_0x335557;logger[_0x1800dd('0x1')](_0x1800dd('0x1b'),_0x386b76,_0x44f389);})['catch'](function(_0x4c42c5){const _0x3e7c6f=_0x335557;logger['info'](JSON[_0x3e7c6f('0x9')](_0x4c42c5));});});},Migration[_0x5f4eab('0x17')][_0x5f4eab('0xc')]=function(_0x597b7c,_0x4ae400,_0xd26746){const _0xc13d6b=_0x5f4eab,_0x4c3990=this;this[_0xc13d6b('0x3')][_0xc13d6b('0x4')](function(){const _0x34d43c=_0xc13d6b;return _0x4c3990[_0x34d43c('0x5')][_0x34d43c('0xc')](_0x597b7c,_0x4ae400,_0xd26746)[_0x34d43c('0x11')](function(){const _0x457641=_0x34d43c;logger['info'](_0x457641('0x18'),_0x4ae400,_0x597b7c);})[_0x34d43c('0x1d')](function(_0x261f72){const _0x3d213f=_0x34d43c;logger[_0x3d213f('0x1')](JSON[_0x3d213f('0x9')](_0x261f72));});});},Migration[_0x5f4eab('0x17')][_0x5f4eab('0x14')]=function(_0x3c2bd8){const _0x13ecf5=_0x5f4eab,_0xe07daa=this;this[_0x13ecf5('0x3')][_0x13ecf5('0x4')](function(){const _0x23f42d=_0x13ecf5;return _0xe07daa['queryInterface'][_0x23f42d('0x14')](_0x3c2bd8,{'force':!![]})[_0x23f42d('0x11')](function(){const _0x5af904=_0x23f42d;logger[_0x5af904('0x1')]('table\x20dropped\x20%s',_0x3c2bd8);})[_0x23f42d('0x1d')](function(_0x22cc8f){logger['info'](JSON['stringify'](_0x22cc8f));});});},Migration[_0x5f4eab('0x17')][_0x5f4eab('0x0')]=function(_0x23a880,_0x5c577b,_0x4d5c6e){const _0x5aa7cb=_0x5f4eab,_0x305e86=this;this[_0x5aa7cb('0x3')][_0x5aa7cb('0x4')](function(){const _0x2c67a0=_0x5aa7cb;return _0x305e86['queryInterface']['addIndex'](_0x23a880,_0x5c577b,{'indexName':_0x4d5c6e})[_0x2c67a0('0x11')](function(){const _0x3d175b=_0x2c67a0;logger[_0x3d175b('0x1')](_0x3d175b('0x19'),_0x23a880,_0x5c577b[_0x3d175b('0xf')](','),_0x4d5c6e);})['catch'](function(_0xd0432c){const _0x3504c3=_0x2c67a0;logger[_0x3504c3('0x1')](JSON[_0x3504c3('0x9')](_0xd0432c));});});},Migration[_0x5f4eab('0x17')][_0x5f4eab('0xa')]=function(_0x79581d,_0x50f80f){const _0x54b392=_0x5f4eab,_0x2510fe=this;this[_0x54b392('0x3')][_0x54b392('0x4')](function(){const _0x3db7fa=_0x54b392;return _0x2510fe[_0x3db7fa('0x5')][_0x3db7fa('0xa')](_0x79581d,_0x50f80f)[_0x3db7fa('0x11')](function(){const _0x5c6e1a=_0x3db7fa;logger[_0x5c6e1a('0x1')](_0x5c6e1a('0x10'),_0x79581d,_0x50f80f);})['catch'](function(_0x2fdb3d){const _0x350b79=_0x3db7fa;logger[_0x350b79('0x1')](JSON['stringify'](_0x2fdb3d));});});},Migration[_0x5f4eab('0x17')][_0x5f4eab('0x1c')]=function(_0x4e18df){const _0x6fee10=_0x5f4eab,_0x2dea3d=this;this['sequence'][_0x6fee10('0x4')](function(){const _0x2c2998=_0x6fee10;return _0x2dea3d['queryInterface'][_0x2c2998('0x2')][_0x2c2998('0x1c')](_0x4e18df)[_0x2c2998('0x11')](function(){const _0x32982e=_0x2c2998;logger[_0x32982e('0x1')](_0x32982e('0x1a'),_0x4e18df);})[_0x2c2998('0x1d')](function(_0x53f76b){const _0x225dd7=_0x2c2998;logger[_0x225dd7('0x1')](JSON[_0x225dd7('0x9')](_0x53f76b));});});},Migration[_0x5f4eab('0x17')][_0x5f4eab('0xd')]=function(_0x4d78c6,_0x2fb1a2){const _0x74dbee=_0x5f4eab,_0x1165b9=this;this['sequence'][_0x74dbee('0x4')](function(){const _0x442f4e=_0x74dbee;return _0x1165b9[_0x442f4e('0x5')][_0x442f4e('0xd')](_0x4d78c6,_0x2fb1a2)[_0x442f4e('0x11')](function(){const _0x4ef954=_0x442f4e;logger[_0x4ef954('0x1')](_0x4ef954('0x6'),_0x2fb1a2,_0x4d78c6);})[_0x442f4e('0x1d')](function(_0x43490c){const _0x398039=_0x442f4e;logger[_0x398039('0x1')](util[_0x398039('0xb')](_0x43490c,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x5f4eab('0x15')]=function(_0x5ccdea,_0x4803d7,_0x3ae2b2){const _0x1d19ed=_0x5f4eab,_0x582034=this;this[_0x1d19ed('0x3')][_0x1d19ed('0x4')](function(){const _0x49f289=_0x1d19ed;return _0x582034[_0x49f289('0x5')][_0x49f289('0x15')](_0x5ccdea,_0x4803d7,_0x3ae2b2)[_0x49f289('0x11')](function(){const _0x20aeb4=_0x49f289;logger[_0x20aeb4('0x1')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x4803d7,_0x3ae2b2,_0x5ccdea);})[_0x49f289('0x1d')](function(_0xd0230f){const _0x2e6782=_0x49f289;logger[_0x2e6782('0x1')](util['inspect'](_0xd0230f,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x5f4eab('0x16')]=function(_0x4f4ea4){const _0x45c0d4=_0x5f4eab;this[_0x45c0d4('0x3')][_0x45c0d4('0x4')](function(){return _0x4f4ea4();});},module['exports']={'up':function(_0x950fee){return new Promise(function(_0x14480e){const _0x126ba5=a967_0xfadc,_0x1ae03f=new Migration(_0x950fee);_0x1ae03f[_0x126ba5('0x16')](_0x14480e);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.2.3.js b/server/migrations/2.2.3.js index 276394a..8c59aae 100644 --- a/server/migrations/2.2.3.js +++ b/server/migrations/2.2.3.js @@ -1 +1 @@ -const a968_0x54ee=['Removed\x20column\x20%s\x20from\x20%s','removeColumn','tail','mail_interactions','inspect','util','finally','query\x20%s','join','removeIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addColumn','queryInterface','query','sequelize','mail_messages','migration','../config/logger','removeIndex\x20%s\x20%s','addIndex','then','final','info','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','STRING','Added\x20column\x20%s\x20to\x20%s','sequence','enqueue','stringify','inReplyTo','changeColumn','catch','addIndex\x20%s\x20%s\x20%s','dropTable','exports','messageId'];(function(_0x454c6f,_0x54ee2a){const _0x3d45a8=function(_0x3a4a77){while(--_0x3a4a77){_0x454c6f['push'](_0x454c6f['shift']());}};_0x3d45a8(++_0x54ee2a);}(a968_0x54ee,0x89));const a968_0x3d45=function(_0x454c6f,_0x54ee2a){_0x454c6f=_0x454c6f-0x0;let _0x3d45a8=a968_0x54ee[_0x454c6f];return _0x3d45a8;};const _0x1e0368=a968_0x3d45;'use strict';const util=require(_0x1e0368('0x10')),logger=require(_0x1e0368('0x1c'))(_0x1e0368('0x1b')),Sequence=function(){};Sequence['prototype'][_0x1e0368('0x2')]=function(_0x3a4a77){const _0x5708ff=_0x1e0368;this[_0x5708ff('0xd')]=this[_0x5708ff('0xd')]?this[_0x5708ff('0xd')][_0x5708ff('0x11')](_0x3a4a77):_0x3a4a77();};const Migration=function(_0xae8472){const _0x5f4927=_0x1e0368;this[_0x5f4927('0x17')]=_0xae8472,this[_0x5f4927('0x1')]=new Sequence();};Migration[_0x1e0368('0x22')][_0x1e0368('0x5')]=function(_0x57a912,_0x4df3ec,_0x17be81){const _0x378522=_0x1e0368,_0xefedc9=this;this['sequence'][_0x378522('0x2')](function(){const _0x3385ce=_0x378522;return _0xefedc9[_0x3385ce('0x17')][_0x3385ce('0x5')](_0x57a912,_0x4df3ec,_0x17be81)[_0x3385ce('0x1f')](function(){const _0x47a5bb=_0x3385ce;logger[_0x47a5bb('0x21')](_0x47a5bb('0x23'),_0x4df3ec,_0x57a912);})[_0x3385ce('0x6')](function(_0x283a56){const _0x281c97=_0x3385ce;logger['info'](JSON[_0x281c97('0x3')](_0x283a56));});});},Migration['prototype'][_0x1e0368('0x16')]=function(_0x1fb8dd,_0x123e6b,_0x194803){const _0x2e03ae=this;this['sequence']['enqueue'](function(){const _0x1e7de1=a968_0x3d45;return _0x2e03ae['queryInterface']['addColumn'](_0x1fb8dd,_0x123e6b,_0x194803)['then'](function(){const _0x3410b8=a968_0x3d45;logger[_0x3410b8('0x21')](_0x3410b8('0x0'),_0x123e6b,_0x1fb8dd);})[_0x1e7de1('0x6')](function(_0x35d3b6){const _0x269e31=_0x1e7de1;logger['info'](JSON[_0x269e31('0x3')](_0x35d3b6));});});},Migration[_0x1e0368('0x22')][_0x1e0368('0x8')]=function(_0x5db7f8){const _0x41e356=_0x1e0368,_0x33c33f=this;this[_0x41e356('0x1')][_0x41e356('0x2')](function(){const _0xebee9a=_0x41e356;return _0x33c33f['queryInterface'][_0xebee9a('0x8')](_0x5db7f8,{'force':!![]})[_0xebee9a('0x1f')](function(){const _0x16e937=_0xebee9a;logger[_0x16e937('0x21')]('table\x20dropped\x20%s',_0x5db7f8);})[_0xebee9a('0x6')](function(_0x5d44a1){const _0x86bab2=_0xebee9a;logger[_0x86bab2('0x21')](JSON['stringify'](_0x5d44a1));});});},Migration[_0x1e0368('0x22')]['addIndex']=function(_0x1d770d,_0x1fec35,_0x36cd6f){const _0x4fe826=_0x1e0368,_0x23258b=this;this['sequence'][_0x4fe826('0x2')](function(){const _0x802638=_0x4fe826;return _0x23258b[_0x802638('0x17')][_0x802638('0x1e')](_0x1d770d,_0x1fec35,{'indexName':_0x36cd6f})[_0x802638('0x1f')](function(){const _0x557df4=_0x802638;logger['info'](_0x557df4('0x7'),_0x1d770d,_0x1fec35[_0x557df4('0x13')](','),_0x36cd6f);})[_0x802638('0x6')](function(_0x45e7f3){const _0x57582e=_0x802638;logger[_0x57582e('0x21')](JSON[_0x57582e('0x3')](_0x45e7f3));});});},Migration[_0x1e0368('0x22')]['removeIndex']=function(_0x3ce6c3,_0x3eb255){const _0x42733a=_0x1e0368,_0x4cf28f=this;this[_0x42733a('0x1')]['enqueue'](function(){const _0x824c7f=_0x42733a;return _0x4cf28f[_0x824c7f('0x17')][_0x824c7f('0x14')](_0x3ce6c3,_0x3eb255)[_0x824c7f('0x1f')](function(){const _0x5bd984=_0x824c7f;logger[_0x5bd984('0x21')](_0x5bd984('0x1d'),_0x3ce6c3,_0x3eb255);})[_0x824c7f('0x6')](function(_0x5def92){const _0x2ef7ec=_0x824c7f;logger[_0x2ef7ec('0x21')](JSON[_0x2ef7ec('0x3')](_0x5def92));});});},Migration['prototype'][_0x1e0368('0x18')]=function(_0x41884e){const _0x4c2d2d=_0x1e0368,_0x361eae=this;this[_0x4c2d2d('0x1')][_0x4c2d2d('0x2')](function(){const _0x53b748=_0x4c2d2d;return _0x361eae[_0x53b748('0x17')][_0x53b748('0x19')][_0x53b748('0x18')](_0x41884e)['then'](function(){const _0x59f050=_0x53b748;logger[_0x59f050('0x21')](_0x59f050('0x12'),_0x41884e);})[_0x53b748('0x6')](function(_0x25182e){const _0x4ee7b3=_0x53b748;logger[_0x4ee7b3('0x21')](JSON[_0x4ee7b3('0x3')](_0x25182e));});});},Migration['prototype'][_0x1e0368('0xc')]=function(_0x224b88,_0x40e4c5){const _0x43db51=_0x1e0368,_0x48f901=this;this[_0x43db51('0x1')][_0x43db51('0x2')](function(){const _0x369657=_0x43db51;return _0x48f901[_0x369657('0x17')][_0x369657('0xc')](_0x224b88,_0x40e4c5)[_0x369657('0x1f')](function(){const _0x3f6632=_0x369657;logger[_0x3f6632('0x21')](_0x3f6632('0xb'),_0x40e4c5,_0x224b88);})['catch'](function(_0x1ac68e){const _0x16aa54=_0x369657;logger[_0x16aa54('0x21')](util[_0x16aa54('0xf')](_0x1ac68e,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x3adfda,_0xb6fc59,_0x582e43){const _0x2692cb=_0x1e0368,_0x554f22=this;this[_0x2692cb('0x1')][_0x2692cb('0x2')](function(){const _0x4f74dc=_0x2692cb;return _0x554f22[_0x4f74dc('0x17')]['renameColumn'](_0x3adfda,_0xb6fc59,_0x582e43)[_0x4f74dc('0x1f')](function(){const _0x232813=_0x4f74dc;logger[_0x232813('0x21')](_0x232813('0x15'),_0xb6fc59,_0x582e43,_0x3adfda);})[_0x4f74dc('0x6')](function(_0x4275f7){const _0x1e4869=_0x4f74dc;logger[_0x1e4869('0x21')](util[_0x1e4869('0xf')](_0x4275f7,{'showHidden':![],'depth':null}));});});},Migration[_0x1e0368('0x22')]['final']=function(_0x38d75f){const _0x4beb31=_0x1e0368;this[_0x4beb31('0x1')][_0x4beb31('0x2')](function(){return _0x38d75f();});},module[_0x1e0368('0x9')]={'up':function(_0x273661,_0x57bd03){return new Promise(function(_0x32ebc7){const _0x5a5b52=a968_0x3d45,_0x1fa5e9=new Migration(_0x273661);_0x1fa5e9[_0x5a5b52('0x5')](_0x5a5b52('0xe'),_0x5a5b52('0x4'),{'type':_0x57bd03['STRING'](0x1fe)}),_0x1fa5e9[_0x5a5b52('0x5')](_0x5a5b52('0x1a'),_0x5a5b52('0xa'),{'type':_0x57bd03[_0x5a5b52('0x24')](0x1fe)}),_0x1fa5e9[_0x5a5b52('0x20')](_0x32ebc7);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.2.4.js b/server/migrations/2.2.4.js index b34fdb2..ed3fac3 100644 --- a/server/migrations/2.2.4.js +++ b/server/migrations/2.2.4.js @@ -1 +1 @@ -const a969_0x3ac9=['info','addColumn','Added\x20column\x20%s\x20to\x20%s','prototype','migration','tail','query','renameColumn','util','addIndex\x20%s\x20%s\x20%s','enqueue','exports','query\x20%s','then','removeColumn','queryInterface','removeIndex','changeColumn','stringify','finally','ALTER\x20TABLE\x20int_sugarcrm_fields\x20add\x20UNIQUE\x20INDEX\x20sugarcrm_unique_index\x20(idField,\x20FieldId)','dropTable','ALTER\x20TABLE\x20int_zendesk_fields\x20add\x20UNIQUE\x20INDEX\x20zendesk_unique_index\x20(idField,\x20FieldId)','removeIndex\x20%s\x20%s','final','join','ALTER\x20TABLE\x20int_desk_fields\x20add\x20UNIQUE\x20INDEX\x20desk_unique_index\x20(idField,\x20FieldId)','../config/logger','inspect','ALTER\x20TABLE\x20int_freshdesk_fields\x20add\x20UNIQUE\x20INDEX\x20desk_unique_index\x20(idField,\x20FieldId)','catch','table\x20dropped\x20%s','sequence','ALTER\x20TABLE\x20int_salesforce_fields\x20add\x20UNIQUE\x20INDEX\x20salesforce_unique_index\x20(idField,\x20FieldId)'];(function(_0x18aa45,_0x3ac9ac){const _0x5288df=function(_0x3e1739){while(--_0x3e1739){_0x18aa45['push'](_0x18aa45['shift']());}};_0x5288df(++_0x3ac9ac);}(a969_0x3ac9,0x1bf));const a969_0x5288=function(_0x18aa45,_0x3ac9ac){_0x18aa45=_0x18aa45-0x0;let _0x5288df=a969_0x3ac9[_0x18aa45];return _0x5288df;};const _0xecb317=a969_0x5288;'use strict';const util=require(_0xecb317('0x3')),logger=require(_0xecb317('0x16'))(_0xecb317('0x21')),Sequence=function(){};Sequence[_0xecb317('0x20')][_0xecb317('0x5')]=function(_0x3e1739){const _0x57c05a=_0xecb317;this[_0x57c05a('0x0')]=this[_0x57c05a('0x0')]?this[_0x57c05a('0x0')][_0x57c05a('0xe')](_0x3e1739):_0x3e1739();};const Migration=function(_0x3c3764){const _0x161d5d=_0xecb317;this[_0x161d5d('0xa')]=_0x3c3764,this['sequence']=new Sequence();};Migration[_0xecb317('0x20')]['changeColumn']=function(_0x4aac71,_0x45ecca,_0x1bfd47){const _0x11ec24=_0xecb317,_0x3129f0=this;this['sequence'][_0x11ec24('0x5')](function(){const _0x1185f9=_0x11ec24;return _0x3129f0[_0x1185f9('0xa')][_0x1185f9('0xc')](_0x4aac71,_0x45ecca,_0x1bfd47)[_0x1185f9('0x8')](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x45ecca,_0x4aac71);})[_0x1185f9('0x19')](function(_0x3e2e50){const _0x126fb2=_0x1185f9;logger[_0x126fb2('0x1d')](JSON[_0x126fb2('0xd')](_0x3e2e50));});});},Migration[_0xecb317('0x20')][_0xecb317('0x1e')]=function(_0x3975dd,_0x5d3f75,_0x1a98b2){const _0x11fa2c=_0xecb317,_0x5a0135=this;this[_0x11fa2c('0x1b')]['enqueue'](function(){const _0x265f2a=_0x11fa2c;return _0x5a0135[_0x265f2a('0xa')][_0x265f2a('0x1e')](_0x3975dd,_0x5d3f75,_0x1a98b2)[_0x265f2a('0x8')](function(){const _0x243fab=_0x265f2a;logger[_0x243fab('0x1d')](_0x243fab('0x1f'),_0x5d3f75,_0x3975dd);})[_0x265f2a('0x19')](function(_0x3d6d8a){const _0x1ab07e=_0x265f2a;logger[_0x1ab07e('0x1d')](JSON[_0x1ab07e('0xd')](_0x3d6d8a));});});},Migration['prototype'][_0xecb317('0x10')]=function(_0x597444){const _0x4b6295=_0xecb317,_0x5b64f0=this;this['sequence'][_0x4b6295('0x5')](function(){const _0x337d0d=_0x4b6295;return _0x5b64f0[_0x337d0d('0xa')][_0x337d0d('0x10')](_0x597444,{'force':!![]})[_0x337d0d('0x8')](function(){const _0x1b8395=_0x337d0d;logger[_0x1b8395('0x1d')](_0x1b8395('0x1a'),_0x597444);})[_0x337d0d('0x19')](function(_0x5642d6){const _0x595722=_0x337d0d;logger[_0x595722('0x1d')](JSON[_0x595722('0xd')](_0x5642d6));});});},Migration[_0xecb317('0x20')]['addIndex']=function(_0x1793de,_0x5e2b00,_0x3e01d6){const _0xc9bd3c=_0xecb317,_0x463e11=this;this[_0xc9bd3c('0x1b')]['enqueue'](function(){const _0x21acd1=_0xc9bd3c;return _0x463e11[_0x21acd1('0xa')]['addIndex'](_0x1793de,_0x5e2b00,{'indexName':_0x3e01d6})[_0x21acd1('0x8')](function(){const _0x179a2a=_0x21acd1;logger[_0x179a2a('0x1d')](_0x179a2a('0x4'),_0x1793de,_0x5e2b00[_0x179a2a('0x14')](','),_0x3e01d6);})[_0x21acd1('0x19')](function(_0x3e6a77){const _0x19aa45=_0x21acd1;logger[_0x19aa45('0x1d')](JSON[_0x19aa45('0xd')](_0x3e6a77));});});},Migration[_0xecb317('0x20')]['removeIndex']=function(_0x3b9665,_0x2e44de){const _0x3a12b3=_0xecb317,_0x483306=this;this[_0x3a12b3('0x1b')][_0x3a12b3('0x5')](function(){const _0x4c192a=_0x3a12b3;return _0x483306['queryInterface'][_0x4c192a('0xb')](_0x3b9665,_0x2e44de)[_0x4c192a('0x8')](function(){const _0x44df0d=_0x4c192a;logger[_0x44df0d('0x1d')](_0x44df0d('0x12'),_0x3b9665,_0x2e44de);})[_0x4c192a('0x19')](function(_0x256b30){const _0x5ac5fc=_0x4c192a;logger[_0x5ac5fc('0x1d')](JSON[_0x5ac5fc('0xd')](_0x256b30));});});},Migration[_0xecb317('0x20')][_0xecb317('0x1')]=function(_0x428e77){const _0x413eda=_0xecb317,_0x5afd10=this;this[_0x413eda('0x1b')]['enqueue'](function(){const _0x16355d=_0x413eda;return _0x5afd10[_0x16355d('0xa')]['sequelize'][_0x16355d('0x1')](_0x428e77)[_0x16355d('0x8')](function(){const _0x4b1c77=_0x16355d;logger[_0x4b1c77('0x1d')](_0x4b1c77('0x7'),_0x428e77);})[_0x16355d('0x19')](function(_0x5c3e0f){const _0xb4025c=_0x16355d;logger[_0xb4025c('0x1d')](JSON[_0xb4025c('0xd')](_0x5c3e0f));});});},Migration[_0xecb317('0x20')][_0xecb317('0x9')]=function(_0x3ab907,_0x3043fd){const _0xec78ca=_0xecb317,_0x33f36f=this;this[_0xec78ca('0x1b')][_0xec78ca('0x5')](function(){const _0xffa7ec=_0xec78ca;return _0x33f36f['queryInterface'][_0xffa7ec('0x9')](_0x3ab907,_0x3043fd)[_0xffa7ec('0x8')](function(){const _0x55c474=_0xffa7ec;logger[_0x55c474('0x1d')]('Removed\x20column\x20%s\x20from\x20%s',_0x3043fd,_0x3ab907);})[_0xffa7ec('0x19')](function(_0x59ef80){const _0x548f3f=_0xffa7ec;logger[_0x548f3f('0x1d')](util[_0x548f3f('0x17')](_0x59ef80,{'showHidden':![],'depth':null}));});});},Migration[_0xecb317('0x20')]['renameColumn']=function(_0x5c0d59,_0x43ffa9,_0x1e91c4){const _0x1cdab2=_0xecb317,_0x222dd0=this;this[_0x1cdab2('0x1b')][_0x1cdab2('0x5')](function(){const _0x1a4c4b=_0x1cdab2;return _0x222dd0['queryInterface'][_0x1a4c4b('0x2')](_0x5c0d59,_0x43ffa9,_0x1e91c4)[_0x1a4c4b('0x8')](function(){const _0x360914=_0x1a4c4b;logger[_0x360914('0x1d')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x43ffa9,_0x1e91c4,_0x5c0d59);})['catch'](function(_0x504bf7){const _0x10caee=_0x1a4c4b;logger[_0x10caee('0x1d')](util['inspect'](_0x504bf7,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0xecb317('0x13')]=function(_0x8f6257){const _0xd43700=_0xecb317;this[_0xd43700('0x1b')][_0xd43700('0x5')](function(){return _0x8f6257();});},module[_0xecb317('0x6')]={'up':function(_0x1fc28b){return new Promise(function(_0x59f84e){const _0x3a2023=a969_0x5288,_0x4177c0=new Migration(_0x1fc28b);_0x4177c0['query'](_0x3a2023('0x15')),_0x4177c0['query'](_0x3a2023('0x18')),_0x4177c0[_0x3a2023('0x1')](_0x3a2023('0x1c')),_0x4177c0[_0x3a2023('0x1')](_0x3a2023('0xf')),_0x4177c0[_0x3a2023('0x1')]('ALTER\x20TABLE\x20int_vtiger_fields\x20add\x20UNIQUE\x20INDEX\x20vtiger_unique_index\x20(idField,\x20FieldId)'),_0x4177c0[_0x3a2023('0x1')](_0x3a2023('0x11')),_0x4177c0['query']('ALTER\x20TABLE\x20int_zoho_fields\x20add\x20UNIQUE\x20INDEX\x20zoho_unique_index\x20(idField,\x20FieldId)'),_0x4177c0[_0x3a2023('0x13')](_0x59f84e);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.2.5.js b/server/migrations/2.2.5.js index a254e57..35078ff 100644 --- a/server/migrations/2.2.5.js +++ b/server/migrations/2.2.5.js @@ -1 +1 @@ -const a970_0x5283=['changeColumn','util','then','finally','Removed\x20column\x20%s\x20from\x20%s','removeIndex','migration','sequelize','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addColumn','inspect','table\x20dropped\x20%s','tail','join','catch','removeColumn','addIndex\x20%s\x20%s\x20%s','addIndex','query','enqueue','info','dropTable','stringify','prototype','sequence','Added\x20column\x20%s\x20to\x20%s','renameColumn','queryInterface','exports','Changed\x20column\x20%s\x20in\x20table\x20%s','final'];(function(_0x18a649,_0x52831d){const _0x305809=function(_0x379b56){while(--_0x379b56){_0x18a649['push'](_0x18a649['shift']());}};_0x305809(++_0x52831d);}(a970_0x5283,0x12c));const a970_0x3058=function(_0x18a649,_0x52831d){_0x18a649=_0x18a649-0x0;let _0x305809=a970_0x5283[_0x18a649];return _0x305809;};const _0x4c8d8b=a970_0x3058;'use strict';const util=require(_0x4c8d8b('0xb')),logger=require('../config/logger')(_0x4c8d8b('0x10')),Sequence=function(){};Sequence[_0x4c8d8b('0x2')][_0x4c8d8b('0x1d')]=function(_0x379b56){const _0x4e9229=_0x4c8d8b;this['tail']=this[_0x4e9229('0x16')]?this[_0x4e9229('0x16')][_0x4e9229('0xd')](_0x379b56):_0x379b56();};const Migration=function(_0xe29f94){this['queryInterface']=_0xe29f94,this['sequence']=new Sequence();};Migration[_0x4c8d8b('0x2')][_0x4c8d8b('0xa')]=function(_0x2d70cc,_0x4fb411,_0x55bd30){const _0x1e01dc=_0x4c8d8b,_0x59b779=this;this[_0x1e01dc('0x3')][_0x1e01dc('0x1d')](function(){const _0x1661a8=_0x1e01dc;return _0x59b779[_0x1661a8('0x6')][_0x1661a8('0xa')](_0x2d70cc,_0x4fb411,_0x55bd30)[_0x1661a8('0xc')](function(){const _0x363bfb=_0x1661a8;logger['info'](_0x363bfb('0x8'),_0x4fb411,_0x2d70cc);})['catch'](function(_0x31eaf0){const _0x3e4aaa=_0x1661a8;logger['info'](JSON[_0x3e4aaa('0x1')](_0x31eaf0));});});},Migration[_0x4c8d8b('0x2')][_0x4c8d8b('0x13')]=function(_0x135cc1,_0x443f38,_0x457534){const _0x2821bd=_0x4c8d8b,_0x5b45dd=this;this[_0x2821bd('0x3')]['enqueue'](function(){const _0x35085b=_0x2821bd;return _0x5b45dd[_0x35085b('0x6')][_0x35085b('0x13')](_0x135cc1,_0x443f38,_0x457534)[_0x35085b('0xc')](function(){const _0x11d8be=_0x35085b;logger[_0x11d8be('0x1e')](_0x11d8be('0x4'),_0x443f38,_0x135cc1);})[_0x35085b('0x18')](function(_0x5a4c26){const _0x403354=_0x35085b;logger[_0x403354('0x1e')](JSON[_0x403354('0x1')](_0x5a4c26));});});},Migration[_0x4c8d8b('0x2')][_0x4c8d8b('0x0')]=function(_0x3a861a){const _0x45a776=_0x4c8d8b,_0x427864=this;this[_0x45a776('0x3')]['enqueue'](function(){const _0x58932d=_0x45a776;return _0x427864[_0x58932d('0x6')]['dropTable'](_0x3a861a,{'force':!![]})[_0x58932d('0xc')](function(){const _0x49809d=_0x58932d;logger['info'](_0x49809d('0x15'),_0x3a861a);})[_0x58932d('0x18')](function(_0x31ad22){const _0x2173e1=_0x58932d;logger[_0x2173e1('0x1e')](JSON['stringify'](_0x31ad22));});});},Migration[_0x4c8d8b('0x2')]['addIndex']=function(_0x4048cb,_0x541d87,_0x3f0e17){const _0x2b539c=_0x4c8d8b,_0x88d174=this;this[_0x2b539c('0x3')][_0x2b539c('0x1d')](function(){const _0x2f4b72=_0x2b539c;return _0x88d174[_0x2f4b72('0x6')][_0x2f4b72('0x1b')](_0x4048cb,_0x541d87,{'indexName':_0x3f0e17})[_0x2f4b72('0xc')](function(){const _0x2fdb71=_0x2f4b72;logger['info'](_0x2fdb71('0x1a'),_0x4048cb,_0x541d87[_0x2fdb71('0x17')](','),_0x3f0e17);})[_0x2f4b72('0x18')](function(_0x360ea3){const _0x3a4fcd=_0x2f4b72;logger['info'](JSON[_0x3a4fcd('0x1')](_0x360ea3));});});},Migration[_0x4c8d8b('0x2')][_0x4c8d8b('0xf')]=function(_0x116ee5,_0x1627cf){const _0x983803=_0x4c8d8b,_0x90319f=this;this['sequence'][_0x983803('0x1d')](function(){const _0x2c2095=_0x983803;return _0x90319f[_0x2c2095('0x6')][_0x2c2095('0xf')](_0x116ee5,_0x1627cf)[_0x2c2095('0xc')](function(){const _0x46657b=_0x2c2095;logger[_0x46657b('0x1e')]('removeIndex\x20%s\x20%s',_0x116ee5,_0x1627cf);})['catch'](function(_0x1e9589){const _0x505932=_0x2c2095;logger[_0x505932('0x1e')](JSON[_0x505932('0x1')](_0x1e9589));});});},Migration[_0x4c8d8b('0x2')][_0x4c8d8b('0x1c')]=function(_0x4dbb6c){const _0x1d8726=_0x4c8d8b,_0x2fccd7=this;this[_0x1d8726('0x3')][_0x1d8726('0x1d')](function(){const _0x378407=_0x1d8726;return _0x2fccd7['queryInterface'][_0x378407('0x11')][_0x378407('0x1c')](_0x4dbb6c)[_0x378407('0xc')](function(){const _0x18b1b8=_0x378407;logger[_0x18b1b8('0x1e')]('query\x20%s',_0x4dbb6c);})['catch'](function(_0x36571f){const _0x47bb5f=_0x378407;logger[_0x47bb5f('0x1e')](JSON[_0x47bb5f('0x1')](_0x36571f));});});},Migration[_0x4c8d8b('0x2')][_0x4c8d8b('0x19')]=function(_0x410ec7,_0x428023){const _0x41dc67=_0x4c8d8b,_0x2c227a=this;this[_0x41dc67('0x3')][_0x41dc67('0x1d')](function(){const _0x1e3ca8=_0x41dc67;return _0x2c227a[_0x1e3ca8('0x6')][_0x1e3ca8('0x19')](_0x410ec7,_0x428023)[_0x1e3ca8('0xc')](function(){const _0x30e802=_0x1e3ca8;logger[_0x30e802('0x1e')](_0x30e802('0xe'),_0x428023,_0x410ec7);})['catch'](function(_0xc6a0e1){const _0x3dfaae=_0x1e3ca8;logger[_0x3dfaae('0x1e')](util['inspect'](_0xc6a0e1,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4c8d8b('0x5')]=function(_0x5ca6e7,_0x2fe5dc,_0x2fa6b2){const _0xd545a4=_0x4c8d8b,_0xef3109=this;this[_0xd545a4('0x3')]['enqueue'](function(){const _0x36f4ed=_0xd545a4;return _0xef3109[_0x36f4ed('0x6')][_0x36f4ed('0x5')](_0x5ca6e7,_0x2fe5dc,_0x2fa6b2)[_0x36f4ed('0xc')](function(){const _0xb7ffe3=_0x36f4ed;logger[_0xb7ffe3('0x1e')](_0xb7ffe3('0x12'),_0x2fe5dc,_0x2fa6b2,_0x5ca6e7);})[_0x36f4ed('0x18')](function(_0x3bfb35){const _0x2f8cd9=_0x36f4ed;logger[_0x2f8cd9('0x1e')](util[_0x2f8cd9('0x14')](_0x3bfb35,{'showHidden':![],'depth':null}));});});},Migration[_0x4c8d8b('0x2')][_0x4c8d8b('0x9')]=function(_0x25d65f){const _0x574b42=_0x4c8d8b;this[_0x574b42('0x3')]['enqueue'](function(){return _0x25d65f();});},module[_0x4c8d8b('0x7')]={'up':function(_0x4a675b){return new Promise(function(_0x29f486){const _0xefb980=a970_0x3058,_0x32f3a4=new Migration(_0x4a675b);_0x32f3a4[_0xefb980('0x9')](_0x29f486);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.2.6.js b/server/migrations/2.2.6.js index bf1ce82..976577a 100644 --- a/server/migrations/2.2.6.js +++ b/server/migrations/2.2.6.js @@ -1 +1 @@ -const a971_0x3c0d=['Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','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','addIndex\x20%s\x20%s\x20%s','info','mandatoryDispositionPauseId','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','query\x20%s','removeIndex\x20%s\x20%s','changeColumn','removeColumn','ALTER\x20TABLE\x20mail_interactions\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','dropTable','sequence','prototype','sequelize','addColumn','UPDATE\x20square_projects\x20SET\x20preproduction\x20=\x20REPLACE(preproduction,\x27labelBackgroundColor=#ffffff;\x27,\x27\x27)','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','exports','migration','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','BOOLEAN','tail','then','mandatoryDisposition','removeIndex','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','final','queryInterface','UPDATE\x20square_projects\x20SET\x20production\x20=\x20REPLACE(production,\x27labelBackgroundColor=#ffffff;\x27,\x27\x27)','addIndex','openchannel_accounts','catch','inspect','table\x20dropped\x20%s','query','chat_websites','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','stringify','Added\x20column\x20%s\x20to\x20%s','sms_accounts','renameColumn','join','INTEGER','enqueue','finally','voice_queues'];(function(_0x4726e0,_0x3c0d82){const _0x2c7d76=function(_0x1bcee9){while(--_0x1bcee9){_0x4726e0['push'](_0x4726e0['shift']());}};_0x2c7d76(++_0x3c0d82);}(a971_0x3c0d,0x1cd));const a971_0x2c7d=function(_0x4726e0,_0x3c0d82){_0x4726e0=_0x4726e0-0x0;let _0x2c7d76=a971_0x3c0d[_0x4726e0];return _0x2c7d76;};const _0x138853=a971_0x2c7d;'use strict';const util=require('util'),logger=require(_0x138853('0x14'))(_0x138853('0x27')),Sequence=function(){};Sequence[_0x138853('0x21')]['enqueue']=function(_0x1bcee9){const _0x1631b3=_0x138853;this[_0x1631b3('0x2a')]=this[_0x1631b3('0x2a')]?this[_0x1631b3('0x2a')][_0x1631b3('0x11')](_0x1bcee9):_0x1bcee9();};const Migration=function(_0x4451b0){const _0x3d9f66=_0x138853;this[_0x3d9f66('0x0')]=_0x4451b0,this[_0x3d9f66('0x20')]=new Sequence();};Migration['prototype'][_0x138853('0x1c')]=function(_0x4f6d4c,_0x17a084,_0x39fda7){const _0x224558=_0x138853,_0x2c834b=this;this['sequence'][_0x224558('0x10')](function(){const _0x5978b0=_0x224558;return _0x2c834b[_0x5978b0('0x0')][_0x5978b0('0x1c')](_0x4f6d4c,_0x17a084,_0x39fda7)[_0x5978b0('0x2b')](function(){const _0x9ec3cb=_0x5978b0;logger[_0x9ec3cb('0x17')](_0x9ec3cb('0x13'),_0x17a084,_0x4f6d4c);})[_0x5978b0('0x4')](function(_0x3064be){const _0x261f2d=_0x5978b0;logger[_0x261f2d('0x17')](JSON[_0x261f2d('0xa')](_0x3064be));});});},Migration['prototype']['addColumn']=function(_0x5ae4ee,_0x5e4918,_0x511694){const _0x49aaf8=_0x138853,_0x33501e=this;this[_0x49aaf8('0x20')][_0x49aaf8('0x10')](function(){const _0x1e7a47=_0x49aaf8;return _0x33501e[_0x1e7a47('0x0')][_0x1e7a47('0x23')](_0x5ae4ee,_0x5e4918,_0x511694)[_0x1e7a47('0x2b')](function(){const _0x3234b1=_0x1e7a47;logger[_0x3234b1('0x17')](_0x3234b1('0xb'),_0x5e4918,_0x5ae4ee);})[_0x1e7a47('0x4')](function(_0x29e9ae){const _0x216267=_0x1e7a47;logger[_0x216267('0x17')](JSON['stringify'](_0x29e9ae));});});},Migration[_0x138853('0x21')][_0x138853('0x1f')]=function(_0x159628){const _0x4ade00=_0x138853,_0x1070ae=this;this[_0x4ade00('0x20')][_0x4ade00('0x10')](function(){const _0x103a29=_0x4ade00;return _0x1070ae[_0x103a29('0x0')][_0x103a29('0x1f')](_0x159628,{'force':!![]})[_0x103a29('0x2b')](function(){const _0x388db7=_0x103a29;logger['info'](_0x388db7('0x6'),_0x159628);})[_0x103a29('0x4')](function(_0x4a104a){const _0x10a10f=_0x103a29;logger[_0x10a10f('0x17')](JSON[_0x10a10f('0xa')](_0x4a104a));});});},Migration['prototype'][_0x138853('0x2')]=function(_0x4c6f3b,_0x2805bd,_0x907d89){const _0x2b5876=_0x138853,_0x5810be=this;this[_0x2b5876('0x20')]['enqueue'](function(){const _0x1a8f44=_0x2b5876;return _0x5810be['queryInterface']['addIndex'](_0x4c6f3b,_0x2805bd,{'indexName':_0x907d89})[_0x1a8f44('0x2b')](function(){const _0x408512=_0x1a8f44;logger[_0x408512('0x17')](_0x408512('0x16'),_0x4c6f3b,_0x2805bd[_0x408512('0xe')](','),_0x907d89);})['catch'](function(_0x5c7849){const _0x3a1755=_0x1a8f44;logger['info'](JSON[_0x3a1755('0xa')](_0x5c7849));});});},Migration['prototype'][_0x138853('0x2d')]=function(_0x1905b8,_0xb091b1){const _0x2a962e=_0x138853,_0x3df4fb=this;this['sequence'][_0x2a962e('0x10')](function(){const _0x389469=_0x2a962e;return _0x3df4fb[_0x389469('0x0')][_0x389469('0x2d')](_0x1905b8,_0xb091b1)[_0x389469('0x2b')](function(){const _0x48c992=_0x389469;logger[_0x48c992('0x17')](_0x48c992('0x1b'),_0x1905b8,_0xb091b1);})[_0x389469('0x4')](function(_0x58d2ed){const _0x4d4b6e=_0x389469;logger[_0x4d4b6e('0x17')](JSON[_0x4d4b6e('0xa')](_0x58d2ed));});});},Migration[_0x138853('0x21')][_0x138853('0x7')]=function(_0x33c0d3){const _0x46f40d=_0x138853,_0x4f81d9=this;this[_0x46f40d('0x20')]['enqueue'](function(){const _0x327c2e=_0x46f40d;return _0x4f81d9[_0x327c2e('0x0')][_0x327c2e('0x22')][_0x327c2e('0x7')](_0x33c0d3)[_0x327c2e('0x2b')](function(){const _0x1db49a=_0x327c2e;logger[_0x1db49a('0x17')](_0x1db49a('0x1a'),_0x33c0d3);})[_0x327c2e('0x4')](function(_0x1469e6){const _0x5509eb=_0x327c2e;logger['info'](JSON[_0x5509eb('0xa')](_0x1469e6));});});},Migration['prototype'][_0x138853('0x1d')]=function(_0x4eb386,_0x140767){const _0x44e408=_0x138853,_0x3dd8d8=this;this[_0x44e408('0x20')][_0x44e408('0x10')](function(){const _0x6f8a74=_0x44e408;return _0x3dd8d8[_0x6f8a74('0x0')][_0x6f8a74('0x1d')](_0x4eb386,_0x140767)[_0x6f8a74('0x2b')](function(){const _0x37f77e=_0x6f8a74;logger[_0x37f77e('0x17')]('Removed\x20column\x20%s\x20from\x20%s',_0x140767,_0x4eb386);})[_0x6f8a74('0x4')](function(_0xc1a0bf){const _0x294394=_0x6f8a74;logger[_0x294394('0x17')](util[_0x294394('0x5')](_0xc1a0bf,{'showHidden':![],'depth':null}));});});},Migration[_0x138853('0x21')][_0x138853('0xd')]=function(_0x1ffe9a,_0x560f6a,_0x28543a){const _0x4360e4=_0x138853,_0x3a126e=this;this[_0x4360e4('0x20')][_0x4360e4('0x10')](function(){const _0x29283d=_0x4360e4;return _0x3a126e[_0x29283d('0x0')][_0x29283d('0xd')](_0x1ffe9a,_0x560f6a,_0x28543a)['then'](function(){const _0xfa5f9a=_0x29283d;logger[_0xfa5f9a('0x17')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x560f6a,_0x28543a,_0x1ffe9a);})['catch'](function(_0x50df95){const _0x2ea6d2=_0x29283d;logger[_0x2ea6d2('0x17')](util['inspect'](_0x50df95,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x138853('0x2f')]=function(_0x298525){const _0x1a39d4=_0x138853;this[_0x1a39d4('0x20')][_0x1a39d4('0x10')](function(){return _0x298525();});},module[_0x138853('0x26')]={'up':function(_0x503f49,_0x402ea0){return new Promise(function(_0x4c4e83){const _0x2f03b6=a971_0x2c7d,_0x431694=new Migration(_0x503f49);_0x431694['query'](_0x2f03b6('0x1e')),_0x431694[_0x2f03b6('0x7')](_0x2f03b6('0x19')),_0x431694[_0x2f03b6('0x7')](_0x2f03b6('0x24')),_0x431694[_0x2f03b6('0x7')](_0x2f03b6('0x1')),_0x431694[_0x2f03b6('0x23')](_0x2f03b6('0x12'),_0x2f03b6('0x2c'),{'type':_0x402ea0['BOOLEAN'],'defaultValue':![]}),_0x431694[_0x2f03b6('0x23')]('voice_queues',_0x2f03b6('0x18'),{'type':_0x402ea0[_0x2f03b6('0xf')]}),_0x431694[_0x2f03b6('0x7')](_0x2f03b6('0x25')),_0x431694['addColumn'](_0x2f03b6('0x8'),_0x2f03b6('0x2c'),{'type':_0x402ea0[_0x2f03b6('0x29')],'defaultValue':![]}),_0x431694[_0x2f03b6('0x23')]('chat_websites',_0x2f03b6('0x18'),{'type':_0x402ea0[_0x2f03b6('0xf')]}),_0x431694['query'](_0x2f03b6('0x15')),_0x431694[_0x2f03b6('0x23')]('fax_accounts',_0x2f03b6('0x2c'),{'type':_0x402ea0[_0x2f03b6('0x29')],'defaultValue':![]}),_0x431694[_0x2f03b6('0x23')]('fax_accounts',_0x2f03b6('0x18'),{'type':_0x402ea0[_0x2f03b6('0xf')]}),_0x431694[_0x2f03b6('0x7')](_0x2f03b6('0x9')),_0x431694[_0x2f03b6('0x23')]('mail_accounts',_0x2f03b6('0x2c'),{'type':_0x402ea0[_0x2f03b6('0x29')],'defaultValue':![]}),_0x431694[_0x2f03b6('0x23')]('mail_accounts',_0x2f03b6('0x18'),{'type':_0x402ea0['INTEGER']}),_0x431694['query'](_0x2f03b6('0x28')),_0x431694[_0x2f03b6('0x23')](_0x2f03b6('0x3'),'mandatoryDisposition',{'type':_0x402ea0['BOOLEAN'],'defaultValue':![]}),_0x431694[_0x2f03b6('0x23')]('openchannel_accounts','mandatoryDispositionPauseId',{'type':_0x402ea0[_0x2f03b6('0xf')]}),_0x431694['query'](_0x2f03b6('0x2e')),_0x431694[_0x2f03b6('0x23')](_0x2f03b6('0xc'),_0x2f03b6('0x2c'),{'type':_0x402ea0[_0x2f03b6('0x29')],'defaultValue':![]}),_0x431694[_0x2f03b6('0x23')](_0x2f03b6('0xc'),_0x2f03b6('0x18'),{'type':_0x402ea0[_0x2f03b6('0xf')]}),_0x431694[_0x2f03b6('0x7')]('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'),_0x431694['final'](_0x4c4e83);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.0.js b/server/migrations/2.3.0.js index 96ef423..4d94437 100644 --- a/server/migrations/2.3.0.js +++ b/server/migrations/2.3.0.js @@ -1 +1 @@ -const a972_0x3bfd=['stringify','removeIndex','enqueue','inspect','report_call','then','prototype','sequence','migration','finally','queryInterface','addColumn','tail','info','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','removeIndex\x20%s\x20%s','apiKeyIat','removeColumn','apiKeyNonce','uniqueid','query','../config/logger','addIndex','query\x20%s','Removed\x20column\x20%s\x20from\x20%s','users','Changed\x20column\x20%s\x20in\x20table\x20%s','util','catch','exports','changeColumn','addIndex\x20%s\x20%s\x20%s','renameColumn','dropTable','final'];(function(_0xe42398,_0x3bfd61){const _0x3e3455=function(_0x1c1c4f){while(--_0x1c1c4f){_0xe42398['push'](_0xe42398['shift']());}};_0x3e3455(++_0x3bfd61);}(a972_0x3bfd,0x192));const a972_0x3e34=function(_0xe42398,_0x3bfd61){_0xe42398=_0xe42398-0x0;let _0x3e3455=a972_0x3bfd[_0xe42398];return _0x3e3455;};const _0x586e8e=a972_0x3e34;'use strict';const util=require(_0x586e8e('0x16')),logger=require(_0x586e8e('0x10'))(_0x586e8e('0x2')),Sequence=function(){};Sequence['prototype'][_0x586e8e('0x20')]=function(_0x1c1c4f){const _0x59db2a=_0x586e8e;this[_0x59db2a('0x6')]=this['tail']?this[_0x59db2a('0x6')][_0x59db2a('0x3')](_0x1c1c4f):_0x1c1c4f();};const Migration=function(_0x20d0d0){const _0x10effa=_0x586e8e;this[_0x10effa('0x4')]=_0x20d0d0,this[_0x10effa('0x1')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0xf764f1,_0x343b72,_0x3d082a){const _0x1ee65c=_0x586e8e,_0x2c762e=this;this[_0x1ee65c('0x1')][_0x1ee65c('0x20')](function(){const _0x170964=_0x1ee65c;return _0x2c762e[_0x170964('0x4')][_0x170964('0x19')](_0xf764f1,_0x343b72,_0x3d082a)['then'](function(){const _0x5519ab=_0x170964;logger[_0x5519ab('0x7')](_0x5519ab('0x15'),_0x343b72,_0xf764f1);})[_0x170964('0x17')](function(_0x3b8b42){const _0x4a7f2f=_0x170964;logger['info'](JSON[_0x4a7f2f('0x1e')](_0x3b8b42));});});},Migration[_0x586e8e('0x0')]['addColumn']=function(_0xdd4492,_0x330f1d,_0x5b41d7){const _0x1d9837=_0x586e8e,_0x9556fd=this;this['sequence'][_0x1d9837('0x20')](function(){const _0x5d337c=_0x1d9837;return _0x9556fd[_0x5d337c('0x4')]['addColumn'](_0xdd4492,_0x330f1d,_0x5b41d7)[_0x5d337c('0x23')](function(){const _0x1204b3=_0x5d337c;logger[_0x1204b3('0x7')]('Added\x20column\x20%s\x20to\x20%s',_0x330f1d,_0xdd4492);})[_0x5d337c('0x17')](function(_0xa5664){const _0x4b2ac0=_0x5d337c;logger[_0x4b2ac0('0x7')](JSON[_0x4b2ac0('0x1e')](_0xa5664));});});},Migration[_0x586e8e('0x0')][_0x586e8e('0x1c')]=function(_0x17ea01){const _0x50f0f3=_0x586e8e,_0x47bad9=this;this['sequence'][_0x50f0f3('0x20')](function(){const _0x36b0eb=_0x50f0f3;return _0x47bad9[_0x36b0eb('0x4')][_0x36b0eb('0x1c')](_0x17ea01,{'force':!![]})[_0x36b0eb('0x23')](function(){logger['info']('table\x20dropped\x20%s',_0x17ea01);})[_0x36b0eb('0x17')](function(_0x56cb73){const _0x5ab71c=_0x36b0eb;logger[_0x5ab71c('0x7')](JSON[_0x5ab71c('0x1e')](_0x56cb73));});});},Migration['prototype'][_0x586e8e('0x11')]=function(_0x59d2cb,_0x24192d,_0x4ca8fe){const _0x1c8ab2=this;this['sequence']['enqueue'](function(){const _0x191e2a=a972_0x3e34;return _0x1c8ab2[_0x191e2a('0x4')][_0x191e2a('0x11')](_0x59d2cb,_0x24192d,{'indexName':_0x4ca8fe})[_0x191e2a('0x23')](function(){const _0xdccf89=_0x191e2a;logger[_0xdccf89('0x7')](_0xdccf89('0x1a'),_0x59d2cb,_0x24192d[_0xdccf89('0x9')](','),_0x4ca8fe);})[_0x191e2a('0x17')](function(_0x4b019c){const _0x1269f0=_0x191e2a;logger['info'](JSON[_0x1269f0('0x1e')](_0x4b019c));});});},Migration[_0x586e8e('0x0')][_0x586e8e('0x1f')]=function(_0x4cf797,_0x414196){const _0x2bd6f6=this;this['sequence']['enqueue'](function(){const _0x3a5d90=a972_0x3e34;return _0x2bd6f6['queryInterface']['removeIndex'](_0x4cf797,_0x414196)['then'](function(){const _0x47de61=a972_0x3e34;logger[_0x47de61('0x7')](_0x47de61('0xa'),_0x4cf797,_0x414196);})[_0x3a5d90('0x17')](function(_0x38e6f9){const _0x5e2355=_0x3a5d90;logger[_0x5e2355('0x7')](JSON[_0x5e2355('0x1e')](_0x38e6f9));});});},Migration[_0x586e8e('0x0')][_0x586e8e('0xf')]=function(_0x53db96){const _0x551d71=_0x586e8e,_0x137022=this;this[_0x551d71('0x1')][_0x551d71('0x20')](function(){const _0x5867b1=_0x551d71;return _0x137022['queryInterface']['sequelize'][_0x5867b1('0xf')](_0x53db96)['then'](function(){const _0x56c5c6=_0x5867b1;logger[_0x56c5c6('0x7')](_0x56c5c6('0x12'),_0x53db96);})[_0x5867b1('0x17')](function(_0x3c0f75){const _0x2b0127=_0x5867b1;logger[_0x2b0127('0x7')](JSON[_0x2b0127('0x1e')](_0x3c0f75));});});},Migration[_0x586e8e('0x0')][_0x586e8e('0xc')]=function(_0x3838a5,_0x4abc42){const _0xa6f2fa=_0x586e8e,_0x122239=this;this['sequence'][_0xa6f2fa('0x20')](function(){const _0x54626b=_0xa6f2fa;return _0x122239[_0x54626b('0x4')][_0x54626b('0xc')](_0x3838a5,_0x4abc42)[_0x54626b('0x23')](function(){const _0x1cbae4=_0x54626b;logger['info'](_0x1cbae4('0x13'),_0x4abc42,_0x3838a5);})['catch'](function(_0x32a23f){const _0x318bb5=_0x54626b;logger[_0x318bb5('0x7')](util[_0x318bb5('0x21')](_0x32a23f,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x586e8e('0x1b')]=function(_0x10a887,_0x5cc77d,_0x45ef7b){const _0x5dbcf9=_0x586e8e,_0x6f8fba=this;this[_0x5dbcf9('0x1')][_0x5dbcf9('0x20')](function(){const _0x561276=_0x5dbcf9;return _0x6f8fba[_0x561276('0x4')][_0x561276('0x1b')](_0x10a887,_0x5cc77d,_0x45ef7b)[_0x561276('0x23')](function(){const _0x2f5900=_0x561276;logger[_0x2f5900('0x7')](_0x2f5900('0x8'),_0x5cc77d,_0x45ef7b,_0x10a887);})['catch'](function(_0x417d35){logger['info'](util['inspect'](_0x417d35,{'showHidden':![],'depth':null}));});});},Migration[_0x586e8e('0x0')][_0x586e8e('0x1d')]=function(_0x549beb){this['sequence']['enqueue'](function(){return _0x549beb();});},module[_0x586e8e('0x18')]={'up':function(_0x5fc250,_0x4b1e17){return new Promise(function(_0x24ab23){const _0xb134d6=a972_0x3e34,_0x56f17b=new Migration(_0x5fc250);_0x56f17b['addColumn'](_0xb134d6('0x14'),_0xb134d6('0xd'),{'type':_0x4b1e17['STRING']}),_0x56f17b[_0xb134d6('0x5')]('users',_0xb134d6('0xb'),{'type':_0x4b1e17['STRING']}),_0x56f17b['addIndex'](_0xb134d6('0x22'),[_0xb134d6('0xe')],_0xb134d6('0xe')),_0x56f17b['final'](_0x24ab23);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.1.js b/server/migrations/2.3.1.js index 96035e4..53c718b 100644 --- a/server/migrations/2.3.1.js +++ b/server/migrations/2.3.1.js @@ -1 +1 @@ -const a973_0x5bc0=['renameColumn','removeColumn','inspect','final','addColumn','tail','exports','enqueue','info','sequence','Added\x20column\x20%s\x20to\x20%s','query\x20%s','stringify','removeIndex\x20%s\x20%s','queryInterface','then','prototype','query','addIndex','util','sequelize','changeColumn','catch','dropTable','finally','Removed\x20column\x20%s\x20from\x20%s','../config/logger'];(function(_0x55c805,_0x5bc0f1){const _0x515b43=function(_0x12528d){while(--_0x12528d){_0x55c805['push'](_0x55c805['shift']());}};_0x515b43(++_0x5bc0f1);}(a973_0x5bc0,0xb7));const a973_0x515b=function(_0x55c805,_0x5bc0f1){_0x55c805=_0x55c805-0x0;let _0x515b43=a973_0x5bc0[_0x55c805];return _0x515b43;};const _0x50467d=a973_0x515b;'use strict';const util=require(_0x50467d('0x19')),logger=require(_0x50467d('0x5'))('migration'),Sequence=function(){};Sequence[_0x50467d('0x16')][_0x50467d('0xd')]=function(_0x12528d){const _0x4b8338=_0x50467d;this[_0x4b8338('0xb')]=this['tail']?this['tail'][_0x4b8338('0x3')](_0x12528d):_0x12528d();};const Migration=function(_0x170c21){const _0x2d595c=_0x50467d;this[_0x2d595c('0x14')]=_0x170c21,this[_0x2d595c('0xf')]=new Sequence();};Migration[_0x50467d('0x16')]['changeColumn']=function(_0x4f52b8,_0x274187,_0x3a5bf1){const _0x415666=_0x50467d,_0x4611a2=this;this[_0x415666('0xf')][_0x415666('0xd')](function(){const _0x5b95b9=_0x415666;return _0x4611a2['queryInterface'][_0x5b95b9('0x0')](_0x4f52b8,_0x274187,_0x3a5bf1)[_0x5b95b9('0x15')](function(){const _0x3d1c2c=_0x5b95b9;logger[_0x3d1c2c('0xe')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x274187,_0x4f52b8);})['catch'](function(_0x272910){const _0x2e8938=_0x5b95b9;logger[_0x2e8938('0xe')](JSON[_0x2e8938('0x12')](_0x272910));});});},Migration[_0x50467d('0x16')][_0x50467d('0xa')]=function(_0x2cd9be,_0x49868e,_0x2df289){const _0x1c245c=_0x50467d,_0x363b32=this;this[_0x1c245c('0xf')][_0x1c245c('0xd')](function(){const _0x360f79=_0x1c245c;return _0x363b32[_0x360f79('0x14')][_0x360f79('0xa')](_0x2cd9be,_0x49868e,_0x2df289)['then'](function(){const _0x2ed3bd=_0x360f79;logger[_0x2ed3bd('0xe')](_0x2ed3bd('0x10'),_0x49868e,_0x2cd9be);})[_0x360f79('0x1')](function(_0x27d2bc){const _0x5de014=_0x360f79;logger[_0x5de014('0xe')](JSON[_0x5de014('0x12')](_0x27d2bc));});});},Migration[_0x50467d('0x16')]['dropTable']=function(_0x4324f5){const _0x55248d=_0x50467d,_0x3f016c=this;this[_0x55248d('0xf')][_0x55248d('0xd')](function(){const _0x5d2a74=_0x55248d;return _0x3f016c[_0x5d2a74('0x14')][_0x5d2a74('0x2')](_0x4324f5,{'force':!![]})['then'](function(){const _0x2dfc00=_0x5d2a74;logger[_0x2dfc00('0xe')]('table\x20dropped\x20%s',_0x4324f5);})[_0x5d2a74('0x1')](function(_0x58a5f0){const _0x2a5d1b=_0x5d2a74;logger[_0x2a5d1b('0xe')](JSON[_0x2a5d1b('0x12')](_0x58a5f0));});});},Migration[_0x50467d('0x16')]['addIndex']=function(_0xd6a6c6,_0x46302e,_0xb97f9f){const _0xc006df=_0x50467d,_0xec3524=this;this[_0xc006df('0xf')][_0xc006df('0xd')](function(){const _0x4092c1=_0xc006df;return _0xec3524[_0x4092c1('0x14')][_0x4092c1('0x18')](_0xd6a6c6,_0x46302e,{'indexName':_0xb97f9f})[_0x4092c1('0x15')](function(){logger['info']('addIndex\x20%s\x20%s\x20%s',_0xd6a6c6,_0x46302e['join'](','),_0xb97f9f);})[_0x4092c1('0x1')](function(_0x4808eb){logger['info'](JSON['stringify'](_0x4808eb));});});},Migration['prototype']['removeIndex']=function(_0x53da60,_0x29f5a0){const _0x10c576=_0x50467d,_0x5131fe=this;this[_0x10c576('0xf')][_0x10c576('0xd')](function(){return _0x5131fe['queryInterface']['removeIndex'](_0x53da60,_0x29f5a0)['then'](function(){const _0x8b753c=a973_0x515b;logger[_0x8b753c('0xe')](_0x8b753c('0x13'),_0x53da60,_0x29f5a0);})['catch'](function(_0x1d12d3){const _0x41000b=a973_0x515b;logger[_0x41000b('0xe')](JSON['stringify'](_0x1d12d3));});});},Migration[_0x50467d('0x16')][_0x50467d('0x17')]=function(_0xdd4418){const _0x1cf711=_0x50467d,_0x4a5d25=this;this['sequence'][_0x1cf711('0xd')](function(){const _0x38e12e=_0x1cf711;return _0x4a5d25[_0x38e12e('0x14')][_0x38e12e('0x1a')][_0x38e12e('0x17')](_0xdd4418)[_0x38e12e('0x15')](function(){const _0x45cfec=_0x38e12e;logger[_0x45cfec('0xe')](_0x45cfec('0x11'),_0xdd4418);})[_0x38e12e('0x1')](function(_0x4c2b60){const _0x4b1541=_0x38e12e;logger[_0x4b1541('0xe')](JSON['stringify'](_0x4c2b60));});});},Migration[_0x50467d('0x16')]['removeColumn']=function(_0x48288d,_0x494ec0){const _0x194788=_0x50467d,_0x4b9dd5=this;this['sequence'][_0x194788('0xd')](function(){const _0x10d29c=_0x194788;return _0x4b9dd5[_0x10d29c('0x14')][_0x10d29c('0x7')](_0x48288d,_0x494ec0)[_0x10d29c('0x15')](function(){const _0x35ca3d=_0x10d29c;logger[_0x35ca3d('0xe')](_0x35ca3d('0x4'),_0x494ec0,_0x48288d);})[_0x10d29c('0x1')](function(_0x736520){const _0x3949c8=_0x10d29c;logger[_0x3949c8('0xe')](util[_0x3949c8('0x8')](_0x736520,{'showHidden':![],'depth':null}));});});},Migration[_0x50467d('0x16')][_0x50467d('0x6')]=function(_0x4b1d31,_0x3061c9,_0xa9607a){const _0x287939=_0x50467d,_0x1c15d7=this;this['sequence'][_0x287939('0xd')](function(){const _0xf79449=_0x287939;return _0x1c15d7[_0xf79449('0x14')][_0xf79449('0x6')](_0x4b1d31,_0x3061c9,_0xa9607a)[_0xf79449('0x15')](function(){const _0x5a36eb=_0xf79449;logger[_0x5a36eb('0xe')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3061c9,_0xa9607a,_0x4b1d31);})[_0xf79449('0x1')](function(_0x3b1d0b){const _0x149ff4=_0xf79449;logger[_0x149ff4('0xe')](util[_0x149ff4('0x8')](_0x3b1d0b,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x50467d('0x9')]=function(_0x1f5bfe){const _0x2b2f76=_0x50467d;this[_0x2b2f76('0xf')][_0x2b2f76('0xd')](function(){return _0x1f5bfe();});},module[_0x50467d('0xc')]={'up':function(_0x3592ea){return new Promise(function(_0x291467){const _0x26b705=new Migration(_0x3592ea);_0x26b705['final'](_0x291467);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.10.js b/server/migrations/2.3.10.js index 13047ad..4d6a506 100644 --- a/server/migrations/2.3.10.js +++ b/server/migrations/2.3.10.js @@ -1 +1 @@ -const a974_0x4c10=['renameColumn','addIndex\x20%s\x20%s\x20%s','changeColumn','tail','enqueue','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','report_call','prototype','query','inspect','migration','dropTable','final','removeColumn','exports','addColumn','join','removeIndex\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','stringify','removeIndex','catch','sipcallid','then','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','query\x20%s','../config/logger','queryInterface','sequence','info','finally','Removed\x20column\x20%s\x20from\x20%s'];(function(_0xe8f5eb,_0x4c1026){const _0x2e4a6a=function(_0x46d466){while(--_0x46d466){_0xe8f5eb['push'](_0xe8f5eb['shift']());}};_0x2e4a6a(++_0x4c1026);}(a974_0x4c10,0x94));const a974_0x2e4a=function(_0xe8f5eb,_0x4c1026){_0xe8f5eb=_0xe8f5eb-0x0;let _0x2e4a6a=a974_0x4c10[_0xe8f5eb];return _0x2e4a6a;};const _0x27d650=a974_0x2e4a;'use strict';const util=require('util'),logger=require(_0x27d650('0x10'))(_0x27d650('0x21')),Sequence=function(){};Sequence[_0x27d650('0x1e')][_0x27d650('0x1a')]=function(_0x46d466){const _0x5eb499=_0x27d650;this[_0x5eb499('0x19')]=this[_0x5eb499('0x19')]?this['tail'][_0x5eb499('0x14')](_0x46d466):_0x46d466();};const Migration=function(_0x15cbe6){const _0x56dd4c=_0x27d650;this['queryInterface']=_0x15cbe6,this[_0x56dd4c('0x12')]=new Sequence();};Migration[_0x27d650('0x1e')]['changeColumn']=function(_0x28c26f,_0x87796a,_0x3c5046){const _0x162b1d=_0x27d650,_0x30d75a=this;this['sequence'][_0x162b1d('0x1a')](function(){const _0x8bdf42=_0x162b1d;return _0x30d75a['queryInterface'][_0x8bdf42('0x18')](_0x28c26f,_0x87796a,_0x3c5046)[_0x8bdf42('0xc')](function(){const _0x540114=_0x8bdf42;logger[_0x540114('0x13')](_0x540114('0xe'),_0x87796a,_0x28c26f);})[_0x8bdf42('0xa')](function(_0x2d03f8){const _0x52ab04=_0x8bdf42;logger[_0x52ab04('0x13')](JSON[_0x52ab04('0x8')](_0x2d03f8));});});},Migration[_0x27d650('0x1e')][_0x27d650('0x4')]=function(_0xa27078,_0x3ab5f6,_0x5c643f){const _0x57b7c6=_0x27d650,_0x21f827=this;this['sequence'][_0x57b7c6('0x1a')](function(){const _0x3f75c1=_0x57b7c6;return _0x21f827['queryInterface'][_0x3f75c1('0x4')](_0xa27078,_0x3ab5f6,_0x5c643f)[_0x3f75c1('0xc')](function(){const _0x14c993=_0x3f75c1;logger['info'](_0x14c993('0x7'),_0x3ab5f6,_0xa27078);})[_0x3f75c1('0xa')](function(_0x4dd898){const _0x56ee29=_0x3f75c1;logger[_0x56ee29('0x13')](JSON[_0x56ee29('0x8')](_0x4dd898));});});},Migration['prototype']['dropTable']=function(_0xfe1519){const _0x56c2c3=_0x27d650,_0x27fa03=this;this[_0x56c2c3('0x12')]['enqueue'](function(){const _0x8284ae=_0x56c2c3;return _0x27fa03[_0x8284ae('0x11')][_0x8284ae('0x0')](_0xfe1519,{'force':!![]})[_0x8284ae('0xc')](function(){const _0x530eab=_0x8284ae;logger[_0x530eab('0x13')]('table\x20dropped\x20%s',_0xfe1519);})[_0x8284ae('0xa')](function(_0x33b63f){const _0x5c71cf=_0x8284ae;logger['info'](JSON[_0x5c71cf('0x8')](_0x33b63f));});});},Migration[_0x27d650('0x1e')][_0x27d650('0x1b')]=function(_0x8d10aa,_0x25b386,_0x351eaf){const _0x4169eb=_0x27d650,_0x1ec91c=this;this['sequence'][_0x4169eb('0x1a')](function(){const _0x4ea1a3=_0x4169eb;return _0x1ec91c[_0x4ea1a3('0x11')][_0x4ea1a3('0x1b')](_0x8d10aa,_0x25b386,{'indexName':_0x351eaf})[_0x4ea1a3('0xc')](function(){const _0x51d1af=_0x4ea1a3;logger[_0x51d1af('0x13')](_0x51d1af('0x17'),_0x8d10aa,_0x25b386[_0x51d1af('0x5')](','),_0x351eaf);})['catch'](function(_0x3426da){const _0x24806e=_0x4ea1a3;logger[_0x24806e('0x13')](JSON[_0x24806e('0x8')](_0x3426da));});});},Migration[_0x27d650('0x1e')][_0x27d650('0x9')]=function(_0x58c90c,_0x2f2d1c){const _0x29e5f9=_0x27d650,_0xa7a732=this;this[_0x29e5f9('0x12')][_0x29e5f9('0x1a')](function(){const _0x57b33f=_0x29e5f9;return _0xa7a732[_0x57b33f('0x11')][_0x57b33f('0x9')](_0x58c90c,_0x2f2d1c)[_0x57b33f('0xc')](function(){const _0x4db772=_0x57b33f;logger[_0x4db772('0x13')](_0x4db772('0x6'),_0x58c90c,_0x2f2d1c);})[_0x57b33f('0xa')](function(_0x46bc9e){const _0x403246=_0x57b33f;logger['info'](JSON[_0x403246('0x8')](_0x46bc9e));});});},Migration[_0x27d650('0x1e')][_0x27d650('0x1f')]=function(_0x15ca52){const _0x3db5be=_0x27d650,_0x2fd520=this;this[_0x3db5be('0x12')][_0x3db5be('0x1a')](function(){const _0x580264=_0x3db5be;return _0x2fd520[_0x580264('0x11')][_0x580264('0xd')][_0x580264('0x1f')](_0x15ca52)['then'](function(){const _0x3ebc77=_0x580264;logger[_0x3ebc77('0x13')](_0x3ebc77('0xf'),_0x15ca52);})[_0x580264('0xa')](function(_0x2ff398){const _0xcbbabc=_0x580264;logger[_0xcbbabc('0x13')](JSON[_0xcbbabc('0x8')](_0x2ff398));});});},Migration[_0x27d650('0x1e')]['removeColumn']=function(_0x5bb9fb,_0x23346c){const _0x314b6d=_0x27d650,_0x427c39=this;this[_0x314b6d('0x12')][_0x314b6d('0x1a')](function(){const _0x20374d=_0x314b6d;return _0x427c39[_0x20374d('0x11')][_0x20374d('0x2')](_0x5bb9fb,_0x23346c)[_0x20374d('0xc')](function(){const _0x40fad8=_0x20374d;logger[_0x40fad8('0x13')](_0x40fad8('0x15'),_0x23346c,_0x5bb9fb);})['catch'](function(_0x553c03){const _0x1bed5a=_0x20374d;logger[_0x1bed5a('0x13')](util[_0x1bed5a('0x20')](_0x553c03,{'showHidden':![],'depth':null}));});});},Migration[_0x27d650('0x1e')][_0x27d650('0x16')]=function(_0x1d4fae,_0x12baff,_0x3c8567){const _0xda3ea1=_0x27d650,_0x3cac77=this;this[_0xda3ea1('0x12')][_0xda3ea1('0x1a')](function(){const _0x5b266a=_0xda3ea1;return _0x3cac77['queryInterface'][_0x5b266a('0x16')](_0x1d4fae,_0x12baff,_0x3c8567)['then'](function(){const _0x25bf19=_0x5b266a;logger[_0x25bf19('0x13')](_0x25bf19('0x1c'),_0x12baff,_0x3c8567,_0x1d4fae);})['catch'](function(_0x51466f){const _0x243a50=_0x5b266a;logger[_0x243a50('0x13')](util[_0x243a50('0x20')](_0x51466f,{'showHidden':![],'depth':null}));});});},Migration[_0x27d650('0x1e')][_0x27d650('0x1')]=function(_0xb5817a){const _0x11d772=_0x27d650;this['sequence'][_0x11d772('0x1a')](function(){return _0xb5817a();});},module[_0x27d650('0x3')]={'up':function(_0x40809a,_0x5d6713){return new Promise(function(_0x532903){const _0x5c09ff=a974_0x2e4a,_0x51c68b=new Migration(_0x40809a);_0x51c68b[_0x5c09ff('0x4')](_0x5c09ff('0x1d'),_0x5c09ff('0xb'),{'type':_0x5d6713['STRING']}),_0x51c68b['final'](_0x532903);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.2.js b/server/migrations/2.3.2.js index 010d96f..a8dab08 100644 --- a/server/migrations/2.3.2.js +++ b/server/migrations/2.3.2.js @@ -1 +1 @@ -const a975_0x427a=['addIndex\x20%s\x20%s\x20%s','queryInterface','util','removeColumn','settings','sequence','inspect','rtlSupport','Changed\x20column\x20%s\x20in\x20table\x20%s','join','final','then','exports','addColumn','ALTER\x20TABLE\x20int_servicenow_accounts\x20ENCRYPTION=\x27Y\x27;','prototype','BOOLEAN','migration','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex\x20%s\x20%s','sequelize','info','table\x20dropped\x20%s','changeColumn','dropTable','Added\x20column\x20%s\x20to\x20%s','stringify','removeIndex','ALTER\x20TABLE\x20int_dynamics365_accounts\x20ENCRYPTION=\x27Y\x27;','tail','enqueue','query','renameColumn','query\x20%s','addIndex','Removed\x20column\x20%s\x20from\x20%s','catch'];(function(_0x1c6051,_0x427abe){const _0x1872f4=function(_0x38d954){while(--_0x38d954){_0x1c6051['push'](_0x1c6051['shift']());}};_0x1872f4(++_0x427abe);}(a975_0x427a,0xd3));const a975_0x1872=function(_0x1c6051,_0x427abe){_0x1c6051=_0x1c6051-0x0;let _0x1872f4=a975_0x427a[_0x1c6051];return _0x1872f4;};const _0x7ff8d2=a975_0x1872;'use strict';const util=require(_0x7ff8d2('0xd')),logger=require('../config/logger')(_0x7ff8d2('0x1c')),Sequence=function(){};Sequence[_0x7ff8d2('0x1a')][_0x7ff8d2('0x4')]=function(_0x38d954){const _0x58b8f6=_0x7ff8d2;this[_0x58b8f6('0x3')]=this[_0x58b8f6('0x3')]?this[_0x58b8f6('0x3')]['finally'](_0x38d954):_0x38d954();};const Migration=function(_0x440784){this['queryInterface']=_0x440784,this['sequence']=new Sequence();};Migration['prototype'][_0x7ff8d2('0x22')]=function(_0x2c8851,_0x207f39,_0x12ca03){const _0x2b1694=_0x7ff8d2,_0x3959ba=this;this[_0x2b1694('0x10')]['enqueue'](function(){const _0x1e201d=_0x2b1694;return _0x3959ba['queryInterface'][_0x1e201d('0x22')](_0x2c8851,_0x207f39,_0x12ca03)[_0x1e201d('0x16')](function(){const _0x24269b=_0x1e201d;logger['info'](_0x24269b('0x13'),_0x207f39,_0x2c8851);})['catch'](function(_0xc8721a){const _0x4407d4=_0x1e201d;logger['info'](JSON[_0x4407d4('0x0')](_0xc8721a));});});},Migration[_0x7ff8d2('0x1a')][_0x7ff8d2('0x18')]=function(_0x34b407,_0x54553e,_0x4e4ea6){const _0x5dc0dd=this;this['sequence']['enqueue'](function(){const _0x2df2ff=a975_0x1872;return _0x5dc0dd[_0x2df2ff('0xc')]['addColumn'](_0x34b407,_0x54553e,_0x4e4ea6)[_0x2df2ff('0x16')](function(){const _0x918e4b=_0x2df2ff;logger[_0x918e4b('0x20')](_0x918e4b('0x24'),_0x54553e,_0x34b407);})['catch'](function(_0xfcbd9c){const _0x5b74a3=_0x2df2ff;logger[_0x5b74a3('0x20')](JSON[_0x5b74a3('0x0')](_0xfcbd9c));});});},Migration[_0x7ff8d2('0x1a')]['dropTable']=function(_0x108925){const _0x42d909=_0x7ff8d2,_0x5a8bae=this;this[_0x42d909('0x10')][_0x42d909('0x4')](function(){const _0x260212=_0x42d909;return _0x5a8bae[_0x260212('0xc')][_0x260212('0x23')](_0x108925,{'force':!![]})[_0x260212('0x16')](function(){const _0x178a1e=_0x260212;logger['info'](_0x178a1e('0x21'),_0x108925);})['catch'](function(_0xbc27a0){const _0x3657f5=_0x260212;logger[_0x3657f5('0x20')](JSON[_0x3657f5('0x0')](_0xbc27a0));});});},Migration[_0x7ff8d2('0x1a')][_0x7ff8d2('0x8')]=function(_0x3998a8,_0x11a49f,_0x3dcca1){const _0xbabcd9=_0x7ff8d2,_0x5c6894=this;this[_0xbabcd9('0x10')][_0xbabcd9('0x4')](function(){const _0x27be27=_0xbabcd9;return _0x5c6894[_0x27be27('0xc')][_0x27be27('0x8')](_0x3998a8,_0x11a49f,{'indexName':_0x3dcca1})['then'](function(){const _0x13c7cf=_0x27be27;logger['info'](_0x13c7cf('0xb'),_0x3998a8,_0x11a49f[_0x13c7cf('0x14')](','),_0x3dcca1);})['catch'](function(_0x1669c4){const _0x135d62=_0x27be27;logger[_0x135d62('0x20')](JSON['stringify'](_0x1669c4));});});},Migration['prototype']['removeIndex']=function(_0xa406c2,_0x304a5e){const _0x22bdf9=_0x7ff8d2,_0x2392eb=this;this[_0x22bdf9('0x10')][_0x22bdf9('0x4')](function(){const _0x578013=_0x22bdf9;return _0x2392eb[_0x578013('0xc')][_0x578013('0x1')](_0xa406c2,_0x304a5e)['then'](function(){const _0x327675=_0x578013;logger[_0x327675('0x20')](_0x327675('0x1e'),_0xa406c2,_0x304a5e);})[_0x578013('0xa')](function(_0x10f964){logger['info'](JSON['stringify'](_0x10f964));});});},Migration[_0x7ff8d2('0x1a')][_0x7ff8d2('0x5')]=function(_0x4c3889){const _0x16343c=_0x7ff8d2,_0x3b6804=this;this[_0x16343c('0x10')][_0x16343c('0x4')](function(){const _0x52aaf9=_0x16343c;return _0x3b6804['queryInterface'][_0x52aaf9('0x1f')][_0x52aaf9('0x5')](_0x4c3889)[_0x52aaf9('0x16')](function(){const _0x431429=_0x52aaf9;logger[_0x431429('0x20')](_0x431429('0x7'),_0x4c3889);})[_0x52aaf9('0xa')](function(_0x36938c){const _0x5ef762=_0x52aaf9;logger[_0x5ef762('0x20')](JSON[_0x5ef762('0x0')](_0x36938c));});});},Migration[_0x7ff8d2('0x1a')][_0x7ff8d2('0xe')]=function(_0x3eb3f1,_0xe4510e){const _0x47922a=_0x7ff8d2,_0x32fdd6=this;this['sequence'][_0x47922a('0x4')](function(){const _0x1390c9=_0x47922a;return _0x32fdd6[_0x1390c9('0xc')][_0x1390c9('0xe')](_0x3eb3f1,_0xe4510e)['then'](function(){const _0x222ae8=_0x1390c9;logger[_0x222ae8('0x20')](_0x222ae8('0x9'),_0xe4510e,_0x3eb3f1);})[_0x1390c9('0xa')](function(_0x166ee9){const _0x1e40bc=_0x1390c9;logger['info'](util[_0x1e40bc('0x11')](_0x166ee9,{'showHidden':![],'depth':null}));});});},Migration[_0x7ff8d2('0x1a')][_0x7ff8d2('0x6')]=function(_0x4047a2,_0xe653e9,_0x4cf076){const _0x508f41=_0x7ff8d2,_0x28afda=this;this[_0x508f41('0x10')][_0x508f41('0x4')](function(){const _0x475c16=_0x508f41;return _0x28afda[_0x475c16('0xc')]['renameColumn'](_0x4047a2,_0xe653e9,_0x4cf076)[_0x475c16('0x16')](function(){const _0x45b663=_0x475c16;logger[_0x45b663('0x20')](_0x45b663('0x1d'),_0xe653e9,_0x4cf076,_0x4047a2);})[_0x475c16('0xa')](function(_0x50927a){const _0x5e7f71=_0x475c16;logger['info'](util[_0x5e7f71('0x11')](_0x50927a,{'showHidden':![],'depth':null}));});});},Migration[_0x7ff8d2('0x1a')][_0x7ff8d2('0x15')]=function(_0x3403f1){this['sequence']['enqueue'](function(){return _0x3403f1();});},module[_0x7ff8d2('0x17')]={'up':function(_0x44e8d0,_0x41b30a){return new Promise(function(_0x1cc5bb){const _0x4cf832=a975_0x1872,_0x351bea=new Migration(_0x44e8d0);_0x351bea[_0x4cf832('0x5')](_0x4cf832('0x2')),_0x351bea['query'](_0x4cf832('0x19')),_0x351bea[_0x4cf832('0x18')](_0x4cf832('0xf'),_0x4cf832('0x12'),{'type':_0x41b30a[_0x4cf832('0x1b')],'defaultValue':![]}),_0x351bea[_0x4cf832('0x15')](_0x1cc5bb);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.3.js b/server/migrations/2.3.3.js index e51da93..febb49b 100644 --- a/server/migrations/2.3.3.js +++ b/server/migrations/2.3.3.js @@ -1 +1 @@ -const a976_0x38f0=['query\x20%s','addColumn','join','removeIndex\x20%s\x20%s','enqueue','dropTable','tail','addIndex\x20%s\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','sequelize','appdata','fax_applications','removeColumn','then','final','chat_applications','stringify','sequence','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','TEXT','query','finally','changeColumn','ALTER\x20TABLE\x20tools_canned_answers\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','queryInterface','catch','exports','Removed\x20column\x20%s\x20from\x20%s','info','prototype','addIndex','inspect','renameColumn'];(function(_0x50f8aa,_0x38f094){const _0xa01492=function(_0x29d282){while(--_0x29d282){_0x50f8aa['push'](_0x50f8aa['shift']());}};_0xa01492(++_0x38f094);}(a976_0x38f0,0x1a3));const a976_0xa014=function(_0x50f8aa,_0x38f094){_0x50f8aa=_0x50f8aa-0x0;let _0xa01492=a976_0x38f0[_0x50f8aa];return _0xa01492;};const _0x1a0d84=a976_0xa014;'use strict';const util=require('util'),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x29d282){const _0x1e2a97=a976_0xa014;this[_0x1e2a97('0x1d')]=this[_0x1e2a97('0x1d')]?this['tail'][_0x1e2a97('0xb')](_0x29d282):_0x29d282();};const Migration=function(_0x4bdf24){this['queryInterface']=_0x4bdf24,this['sequence']=new Sequence();};Migration[_0x1a0d84('0x13')][_0x1a0d84('0xc')]=function(_0x3edc7f,_0x432863,_0x11697b){const _0x596324=_0x1a0d84,_0x4ad47d=this;this['sequence'][_0x596324('0x1b')](function(){const _0x5c717b=_0x596324;return _0x4ad47d[_0x5c717b('0xe')][_0x5c717b('0xc')](_0x3edc7f,_0x432863,_0x11697b)[_0x5c717b('0x3')](function(){const _0x270d08=_0x5c717b;logger[_0x270d08('0x12')](_0x270d08('0x20'),_0x432863,_0x3edc7f);})[_0x5c717b('0xf')](function(_0x34fa97){const _0x187803=_0x5c717b;logger[_0x187803('0x12')](JSON[_0x187803('0x6')](_0x34fa97));});});},Migration[_0x1a0d84('0x13')][_0x1a0d84('0x18')]=function(_0xfcbcf6,_0x276a80,_0x2eda90){const _0x205581=_0x1a0d84,_0x1c7fb4=this;this[_0x205581('0x7')][_0x205581('0x1b')](function(){const _0x3ce815=_0x205581;return _0x1c7fb4[_0x3ce815('0xe')][_0x3ce815('0x18')](_0xfcbcf6,_0x276a80,_0x2eda90)['then'](function(){const _0x4514b7=_0x3ce815;logger['info'](_0x4514b7('0x1f'),_0x276a80,_0xfcbcf6);})[_0x3ce815('0xf')](function(_0x4835d6){const _0x44f21a=_0x3ce815;logger[_0x44f21a('0x12')](JSON[_0x44f21a('0x6')](_0x4835d6));});});},Migration[_0x1a0d84('0x13')][_0x1a0d84('0x1c')]=function(_0x52ef68){const _0x209024=_0x1a0d84,_0x7e772a=this;this[_0x209024('0x7')][_0x209024('0x1b')](function(){const _0x1e243b=_0x209024;return _0x7e772a['queryInterface']['dropTable'](_0x52ef68,{'force':!![]})[_0x1e243b('0x3')](function(){logger['info']('table\x20dropped\x20%s',_0x52ef68);})[_0x1e243b('0xf')](function(_0x40f53a){const _0x2e0c37=_0x1e243b;logger[_0x2e0c37('0x12')](JSON[_0x2e0c37('0x6')](_0x40f53a));});});},Migration['prototype']['addIndex']=function(_0x58d207,_0x78e707,_0x88c689){const _0x29de4e=_0x1a0d84,_0x41781e=this;this[_0x29de4e('0x7')][_0x29de4e('0x1b')](function(){const _0x51b744=_0x29de4e;return _0x41781e[_0x51b744('0xe')][_0x51b744('0x14')](_0x58d207,_0x78e707,{'indexName':_0x88c689})[_0x51b744('0x3')](function(){const _0xe42afd=_0x51b744;logger[_0xe42afd('0x12')](_0xe42afd('0x1e'),_0x58d207,_0x78e707[_0xe42afd('0x19')](','),_0x88c689);})['catch'](function(_0x9cd2ed){const _0xde8db5=_0x51b744;logger['info'](JSON[_0xde8db5('0x6')](_0x9cd2ed));});});},Migration[_0x1a0d84('0x13')]['removeIndex']=function(_0x3cde79,_0x432490){const _0x102c70=_0x1a0d84,_0x36361b=this;this[_0x102c70('0x7')][_0x102c70('0x1b')](function(){const _0x11555e=_0x102c70;return _0x36361b[_0x11555e('0xe')]['removeIndex'](_0x3cde79,_0x432490)[_0x11555e('0x3')](function(){const _0x7997f0=_0x11555e;logger[_0x7997f0('0x12')](_0x7997f0('0x1a'),_0x3cde79,_0x432490);})['catch'](function(_0x69e79f){const _0x3e2b4c=_0x11555e;logger[_0x3e2b4c('0x12')](JSON[_0x3e2b4c('0x6')](_0x69e79f));});});},Migration['prototype'][_0x1a0d84('0xa')]=function(_0x127133){const _0x4b9630=_0x1a0d84,_0xeddd0e=this;this['sequence'][_0x4b9630('0x1b')](function(){const _0x474208=_0x4b9630;return _0xeddd0e[_0x474208('0xe')][_0x474208('0x21')][_0x474208('0xa')](_0x127133)['then'](function(){const _0xfbc839=_0x474208;logger[_0xfbc839('0x12')](_0xfbc839('0x17'),_0x127133);})[_0x474208('0xf')](function(_0x1c77b){const _0x39b830=_0x474208;logger[_0x39b830('0x12')](JSON[_0x39b830('0x6')](_0x1c77b));});});},Migration[_0x1a0d84('0x13')][_0x1a0d84('0x2')]=function(_0x4de64a,_0x1f1a1f){const _0x353487=_0x1a0d84,_0x3ce40d=this;this[_0x353487('0x7')][_0x353487('0x1b')](function(){const _0x43f4be=_0x353487;return _0x3ce40d[_0x43f4be('0xe')]['removeColumn'](_0x4de64a,_0x1f1a1f)[_0x43f4be('0x3')](function(){const _0x5a4e81=_0x43f4be;logger[_0x5a4e81('0x12')](_0x5a4e81('0x11'),_0x1f1a1f,_0x4de64a);})[_0x43f4be('0xf')](function(_0x9586a9){const _0x589fd7=_0x43f4be;logger['info'](util[_0x589fd7('0x15')](_0x9586a9,{'showHidden':![],'depth':null}));});});},Migration[_0x1a0d84('0x13')]['renameColumn']=function(_0xd5a89c,_0x5e3634,_0x51e998){const _0x58f98a=_0x1a0d84,_0x4c3288=this;this[_0x58f98a('0x7')][_0x58f98a('0x1b')](function(){const _0x4736ef=_0x58f98a;return _0x4c3288[_0x4736ef('0xe')][_0x4736ef('0x16')](_0xd5a89c,_0x5e3634,_0x51e998)[_0x4736ef('0x3')](function(){const _0x12e889=_0x4736ef;logger[_0x12e889('0x12')](_0x12e889('0x8'),_0x5e3634,_0x51e998,_0xd5a89c);})[_0x4736ef('0xf')](function(_0x4856b0){const _0x4ebd54=_0x4736ef;logger[_0x4ebd54('0x12')](util[_0x4ebd54('0x15')](_0x4856b0,{'showHidden':![],'depth':null}));});});},Migration[_0x1a0d84('0x13')][_0x1a0d84('0x4')]=function(_0x2b34f2){const _0x4af8b9=_0x1a0d84;this[_0x4af8b9('0x7')][_0x4af8b9('0x1b')](function(){return _0x2b34f2();});},module[_0x1a0d84('0x10')]={'up':function(_0xc70a70,_0x38102a){return new Promise(function(_0x45708d){const _0x50225=a976_0xa014,_0xbb8f8c=new Migration(_0xc70a70);_0xbb8f8c[_0x50225('0xa')](_0x50225('0xd')),_0xbb8f8c[_0x50225('0xc')](_0x50225('0x5'),_0x50225('0x0'),{'type':_0x38102a[_0x50225('0x9')]()}),_0xbb8f8c[_0x50225('0xc')](_0x50225('0x1'),_0x50225('0x0'),{'type':_0x38102a[_0x50225('0x9')]()}),_0xbb8f8c[_0x50225('0xc')]('mail_applications','appdata',{'type':_0x38102a['TEXT']()}),_0xbb8f8c[_0x50225('0xc')]('openchannel_applications',_0x50225('0x0'),{'type':_0x38102a[_0x50225('0x9')]()}),_0xbb8f8c['changeColumn']('sms_applications',_0x50225('0x0'),{'type':_0x38102a[_0x50225('0x9')]()}),_0xbb8f8c[_0x50225('0x4')](_0x45708d);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.4.js b/server/migrations/2.3.4.js index 634df82..4762513 100644 --- a/server/migrations/2.3.4.js +++ b/server/migrations/2.3.4.js @@ -1 +1 @@ -const a977_0x3198=['sequelize','dropTable','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s','Removed\x20column\x20%s\x20from\x20%s','prototype','../config/logger','catch','removeColumn','exports','renameColumn','inspect','stringify','queryInterface','info','table\x20dropped\x20%s','removeIndex','enqueue','addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','util','final','join','addIndex\x20%s\x20%s\x20%s','changeColumn','then','query\x20%s','addIndex','migration','query','tail'];(function(_0x4e5fc1,_0x31982b){const _0x3012c0=function(_0x2fc583){while(--_0x2fc583){_0x4e5fc1['push'](_0x4e5fc1['shift']());}};_0x3012c0(++_0x31982b);}(a977_0x3198,0xed));const a977_0x3012=function(_0x4e5fc1,_0x31982b){_0x4e5fc1=_0x4e5fc1-0x0;let _0x3012c0=a977_0x3198[_0x4e5fc1];return _0x3012c0;};const _0x36b6b9=a977_0x3012;'use strict';const util=require(_0x36b6b9('0x0')),logger=require(_0x36b6b9('0x11'))(_0x36b6b9('0x8')),Sequence=function(){};Sequence[_0x36b6b9('0x10')]['enqueue']=function(_0x2fc583){const _0x1d44eb=_0x36b6b9;this[_0x1d44eb('0xa')]=this[_0x1d44eb('0xa')]?this[_0x1d44eb('0xa')]['finally'](_0x2fc583):_0x2fc583();};const Migration=function(_0xb58f4c){const _0x94607e=_0x36b6b9;this[_0x94607e('0x18')]=_0xb58f4c,this[_0x94607e('0xd')]=new Sequence();};Migration[_0x36b6b9('0x10')][_0x36b6b9('0x4')]=function(_0x86c143,_0x23a47b,_0x2cc6d8){const _0x26c028=_0x36b6b9,_0x80b646=this;this[_0x26c028('0xd')][_0x26c028('0x1c')](function(){const _0x1b0fbb=_0x26c028;return _0x80b646[_0x1b0fbb('0x18')]['changeColumn'](_0x86c143,_0x23a47b,_0x2cc6d8)[_0x1b0fbb('0x5')](function(){const _0x434c3c=_0x1b0fbb;logger[_0x434c3c('0x19')](_0x434c3c('0xe'),_0x23a47b,_0x86c143);})[_0x1b0fbb('0x12')](function(_0x256230){const _0x43f2c9=_0x1b0fbb;logger[_0x43f2c9('0x19')](JSON[_0x43f2c9('0x17')](_0x256230));});});},Migration[_0x36b6b9('0x10')]['addColumn']=function(_0x43a8ee,_0x2230e9,_0x4ab69f){const _0x4140b1=_0x36b6b9,_0x13c1a6=this;this[_0x4140b1('0xd')][_0x4140b1('0x1c')](function(){const _0x109750=_0x4140b1;return _0x13c1a6[_0x109750('0x18')][_0x109750('0x1d')](_0x43a8ee,_0x2230e9,_0x4ab69f)[_0x109750('0x5')](function(){const _0x4a80dc=_0x109750;logger[_0x4a80dc('0x19')]('Added\x20column\x20%s\x20to\x20%s',_0x2230e9,_0x43a8ee);})[_0x109750('0x12')](function(_0x5f0dce){const _0x23e862=_0x109750;logger[_0x23e862('0x19')](JSON[_0x23e862('0x17')](_0x5f0dce));});});},Migration[_0x36b6b9('0x10')][_0x36b6b9('0xc')]=function(_0x3aa3a1){const _0x5c5fc3=_0x36b6b9,_0xc5466=this;this[_0x5c5fc3('0xd')][_0x5c5fc3('0x1c')](function(){const _0x25015f=_0x5c5fc3;return _0xc5466['queryInterface'][_0x25015f('0xc')](_0x3aa3a1,{'force':!![]})[_0x25015f('0x5')](function(){const _0x6f5156=_0x25015f;logger['info'](_0x6f5156('0x1a'),_0x3aa3a1);})[_0x25015f('0x12')](function(_0x5efe6c){const _0x2a2d5f=_0x25015f;logger[_0x2a2d5f('0x19')](JSON[_0x2a2d5f('0x17')](_0x5efe6c));});});},Migration['prototype'][_0x36b6b9('0x7')]=function(_0x29f925,_0x562207,_0x24edc9){const _0x16d5b9=_0x36b6b9,_0x4beb88=this;this['sequence'][_0x16d5b9('0x1c')](function(){const _0x32b2eb=_0x16d5b9;return _0x4beb88[_0x32b2eb('0x18')][_0x32b2eb('0x7')](_0x29f925,_0x562207,{'indexName':_0x24edc9})[_0x32b2eb('0x5')](function(){const _0x43fde6=_0x32b2eb;logger[_0x43fde6('0x19')](_0x43fde6('0x3'),_0x29f925,_0x562207[_0x43fde6('0x2')](','),_0x24edc9);})[_0x32b2eb('0x12')](function(_0x133c7a){const _0x11ffe7=_0x32b2eb;logger[_0x11ffe7('0x19')](JSON[_0x11ffe7('0x17')](_0x133c7a));});});},Migration[_0x36b6b9('0x10')][_0x36b6b9('0x1b')]=function(_0x2450df,_0x27b15f){const _0x31a4ec=_0x36b6b9,_0x376f35=this;this[_0x31a4ec('0xd')][_0x31a4ec('0x1c')](function(){const _0x41d0ca=_0x31a4ec;return _0x376f35[_0x41d0ca('0x18')]['removeIndex'](_0x2450df,_0x27b15f)[_0x41d0ca('0x5')](function(){const _0x1ad9bf=_0x41d0ca;logger[_0x1ad9bf('0x19')]('removeIndex\x20%s\x20%s',_0x2450df,_0x27b15f);})['catch'](function(_0x3636ca){logger['info'](JSON['stringify'](_0x3636ca));});});},Migration['prototype'][_0x36b6b9('0x9')]=function(_0x4bd271){const _0x1fbe04=_0x36b6b9,_0x1475d9=this;this[_0x1fbe04('0xd')][_0x1fbe04('0x1c')](function(){const _0x2ecd7d=_0x1fbe04;return _0x1475d9['queryInterface'][_0x2ecd7d('0xb')]['query'](_0x4bd271)['then'](function(){const _0x1f2ec1=_0x2ecd7d;logger['info'](_0x1f2ec1('0x6'),_0x4bd271);})[_0x2ecd7d('0x12')](function(_0x459319){const _0x204a1f=_0x2ecd7d;logger['info'](JSON[_0x204a1f('0x17')](_0x459319));});});},Migration[_0x36b6b9('0x10')]['removeColumn']=function(_0x3413ea,_0x155488){const _0x32e8e0=_0x36b6b9,_0x591741=this;this['sequence'][_0x32e8e0('0x1c')](function(){const _0x521a1e=_0x32e8e0;return _0x591741[_0x521a1e('0x18')][_0x521a1e('0x13')](_0x3413ea,_0x155488)[_0x521a1e('0x5')](function(){const _0x16ab8e=_0x521a1e;logger['info'](_0x16ab8e('0xf'),_0x155488,_0x3413ea);})['catch'](function(_0x3ac098){const _0x4da81b=_0x521a1e;logger['info'](util[_0x4da81b('0x16')](_0x3ac098,{'showHidden':![],'depth':null}));});});},Migration[_0x36b6b9('0x10')]['renameColumn']=function(_0x4e2c52,_0x569de0,_0x38ab25){const _0x20536a=_0x36b6b9,_0xb94a03=this;this[_0x20536a('0xd')][_0x20536a('0x1c')](function(){const _0x275e13=_0x20536a;return _0xb94a03[_0x275e13('0x18')][_0x275e13('0x15')](_0x4e2c52,_0x569de0,_0x38ab25)['then'](function(){const _0xb3e5b1=_0x275e13;logger[_0xb3e5b1('0x19')](_0xb3e5b1('0x1e'),_0x569de0,_0x38ab25,_0x4e2c52);})[_0x275e13('0x12')](function(_0xc5a813){logger['info'](util['inspect'](_0xc5a813,{'showHidden':![],'depth':null}));});});},Migration[_0x36b6b9('0x10')]['final']=function(_0x27d51e){this['sequence']['enqueue'](function(){return _0x27d51e();});},module[_0x36b6b9('0x14')]={'up':function(_0x40e1f5){return new Promise(function(_0xdf4cb0){const _0x5281ad=a977_0x3012,_0x29c7e1=new Migration(_0x40e1f5);_0x29c7e1[_0x5281ad('0x1')](_0xdf4cb0);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.5.js b/server/migrations/2.3.5.js index b09b4cc..685fbda 100644 --- a/server/migrations/2.3.5.js +++ b/server/migrations/2.3.5.js @@ -1 +1 @@ -const a978_0x4377=['removeIndex\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','final','query','queryInterface','renameColumn','query\x20%s','inspect','table\x20dropped\x20%s','changeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','dropTable','then','removeIndex','tail','sequence','../config/logger','Added\x20column\x20%s\x20to\x20%s','addColumn','enqueue','exports','finally','indicesType','join','indexName','catch','util','addIndex\x20%s\x20%s\x20%s\x20[%s]','prototype','info','stringify','sequelize','removeColumn'];(function(_0x522385,_0x437765){const _0xe0e2d0=function(_0x42e6c9){while(--_0x42e6c9){_0x522385['push'](_0x522385['shift']());}};_0xe0e2d0(++_0x437765);}(a978_0x4377,0x167));const a978_0xe0e2=function(_0x522385,_0x437765){_0x522385=_0x522385-0x0;let _0xe0e2d0=a978_0x4377[_0x522385];return _0xe0e2d0;};const _0x2db076=a978_0xe0e2;'use strict';const util=require(_0x2db076('0x1e')),logger=require(_0x2db076('0x14'))('migration'),Sequence=function(){};Sequence['prototype'][_0x2db076('0x17')]=function(_0x42e6c9){const _0x3045d0=_0x2db076;this[_0x3045d0('0x12')]=this[_0x3045d0('0x12')]?this[_0x3045d0('0x12')][_0x3045d0('0x19')](_0x42e6c9):_0x42e6c9();};const Migration=function(_0x378d7c){const _0x28aa8e=_0x2db076;this[_0x28aa8e('0x8')]=_0x378d7c,this[_0x28aa8e('0x13')]=new Sequence();};Migration[_0x2db076('0x20')][_0x2db076('0xd')]=function(_0x4e18a3,_0x55ce4a,_0x53649e){const _0x2dc56b=_0x2db076,_0x67348e=this;this[_0x2dc56b('0x13')][_0x2dc56b('0x17')](function(){const _0x3b36e1=_0x2dc56b;return _0x67348e['queryInterface']['changeColumn'](_0x4e18a3,_0x55ce4a,_0x53649e)['then'](function(){const _0x1fa269=a978_0xe0e2;logger['info'](_0x1fa269('0xe'),_0x55ce4a,_0x4e18a3);})[_0x3b36e1('0x1d')](function(_0xc3c20f){const _0x200d5c=_0x3b36e1;logger[_0x200d5c('0x0')](JSON[_0x200d5c('0x1')](_0xc3c20f));});});},Migration[_0x2db076('0x20')][_0x2db076('0x16')]=function(_0x216f0a,_0x6db38e,_0x151eda){const _0x3fc1c4=_0x2db076,_0x8f7e4f=this;this['sequence'][_0x3fc1c4('0x17')](function(){const _0x1dd9aa=_0x3fc1c4;return _0x8f7e4f[_0x1dd9aa('0x8')][_0x1dd9aa('0x16')](_0x216f0a,_0x6db38e,_0x151eda)[_0x1dd9aa('0x10')](function(){const _0x2e7c5d=_0x1dd9aa;logger[_0x2e7c5d('0x0')](_0x2e7c5d('0x15'),_0x6db38e,_0x216f0a);})[_0x1dd9aa('0x1d')](function(_0x3be479){const _0xaf2deb=_0x1dd9aa;logger['info'](JSON[_0xaf2deb('0x1')](_0x3be479));});});},Migration['prototype'][_0x2db076('0xf')]=function(_0x2f679b){const _0xd986ae=_0x2db076,_0x22205c=this;this['sequence'][_0xd986ae('0x17')](function(){const _0x24103b=_0xd986ae;return _0x22205c['queryInterface']['dropTable'](_0x2f679b,{'force':!![]})[_0x24103b('0x10')](function(){const _0x24522f=_0x24103b;logger[_0x24522f('0x0')](_0x24522f('0xc'),_0x2f679b);})[_0x24103b('0x1d')](function(_0x46251c){const _0x1d2393=_0x24103b;logger[_0x1d2393('0x0')](JSON[_0x1d2393('0x1')](_0x46251c));});});},Migration[_0x2db076('0x20')]['addIndex']=function(_0x3bfd67,_0x33ee15,_0x2f6469){const _0x4ca4e0=_0x2db076,_0x5371ec=this;this[_0x4ca4e0('0x13')][_0x4ca4e0('0x17')](function(){const _0x4b16b2=_0x4ca4e0;return _0x5371ec[_0x4b16b2('0x8')]['addIndex'](_0x3bfd67,_0x33ee15,{'indexName':_0x2f6469[_0x4b16b2('0x1c')],'indicesType':_0x2f6469['indicesType']})[_0x4b16b2('0x10')](function(){const _0x5ad77e=_0x4b16b2;logger['info'](_0x5ad77e('0x1f'),_0x3bfd67,_0x33ee15[_0x5ad77e('0x1b')](','),_0x2f6469[_0x5ad77e('0x1c')],_0x2f6469[_0x5ad77e('0x1a')]);})[_0x4b16b2('0x1d')](function(_0x414960){const _0x3e9c0e=_0x4b16b2;logger[_0x3e9c0e('0x0')](JSON[_0x3e9c0e('0x1')](_0x414960));});});},Migration['prototype'][_0x2db076('0x11')]=function(_0x1ceb63,_0x41a0c5){const _0x42860c=_0x2db076,_0x2f52fd=this;this[_0x42860c('0x13')]['enqueue'](function(){const _0x1937eb=_0x42860c;return _0x2f52fd[_0x1937eb('0x8')][_0x1937eb('0x11')](_0x1ceb63,_0x41a0c5)[_0x1937eb('0x10')](function(){const _0x1a1ec4=_0x1937eb;logger[_0x1a1ec4('0x0')](_0x1a1ec4('0x4'),_0x1ceb63,_0x41a0c5);})[_0x1937eb('0x1d')](function(_0x5e885b){const _0x215147=_0x1937eb;logger[_0x215147('0x0')](JSON[_0x215147('0x1')](_0x5e885b));});});},Migration[_0x2db076('0x20')][_0x2db076('0x7')]=function(_0x871870){const _0x51a2bc=_0x2db076,_0x421f3f=this;this['sequence'][_0x51a2bc('0x17')](function(){const _0x511c0a=_0x51a2bc;return _0x421f3f[_0x511c0a('0x8')][_0x511c0a('0x2')][_0x511c0a('0x7')](_0x871870)[_0x511c0a('0x10')](function(){const _0x57e849=_0x511c0a;logger['info'](_0x57e849('0xa'),_0x871870);})[_0x511c0a('0x1d')](function(_0x54f66c){const _0x412249=_0x511c0a;logger[_0x412249('0x0')](JSON[_0x412249('0x1')](_0x54f66c));});});},Migration[_0x2db076('0x20')][_0x2db076('0x3')]=function(_0x2c4d28,_0x222f45){const _0x5ae4dc=_0x2db076,_0x53c98c=this;this[_0x5ae4dc('0x13')]['enqueue'](function(){const _0x1db6f0=_0x5ae4dc;return _0x53c98c[_0x1db6f0('0x8')][_0x1db6f0('0x3')](_0x2c4d28,_0x222f45)[_0x1db6f0('0x10')](function(){const _0x5675e3=_0x1db6f0;logger[_0x5675e3('0x0')]('Removed\x20column\x20%s\x20from\x20%s',_0x222f45,_0x2c4d28);})[_0x1db6f0('0x1d')](function(_0x272134){const _0x2879fe=_0x1db6f0;logger[_0x2879fe('0x0')](util[_0x2879fe('0xb')](_0x272134,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x2db076('0x9')]=function(_0x328fb5,_0x1fb499,_0x1bfbd0){const _0x5c1665=_0x2db076,_0x3d191c=this;this[_0x5c1665('0x13')][_0x5c1665('0x17')](function(){const _0x1a8aa0=_0x5c1665;return _0x3d191c[_0x1a8aa0('0x8')]['renameColumn'](_0x328fb5,_0x1fb499,_0x1bfbd0)['then'](function(){const _0x49bc7e=_0x1a8aa0;logger[_0x49bc7e('0x0')](_0x49bc7e('0x5'),_0x1fb499,_0x1bfbd0,_0x328fb5);})['catch'](function(_0x211b24){const _0x3a14a7=_0x1a8aa0;logger[_0x3a14a7('0x0')](util[_0x3a14a7('0xb')](_0x211b24,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x2db076('0x6')]=function(_0x13ed5e){const _0x224cc0=_0x2db076;this[_0x224cc0('0x13')]['enqueue'](function(){return _0x13ed5e();});},module[_0x2db076('0x18')]={'up':function(_0x692005){return new Promise(function(_0x136649){const _0x386520=a978_0xe0e2,_0x4500b5=new Migration(_0x692005);_0x4500b5[_0x386520('0x6')](_0x136649);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.6.js b/server/migrations/2.3.6.js index 728504e..b95082a 100644 --- a/server/migrations/2.3.6.js +++ b/server/migrations/2.3.6.js @@ -1 +1 @@ -const a979_0x3b60=['indicesType','sequence','table\x20dropped\x20%s','stringify','removeIndex\x20%s\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','exports','changeColumn','Added\x20column\x20%s\x20to\x20%s','tail','catch','sequelize','enqueue','addColumn','renameColumn','dropTable','finally','queryInterface','prototype','final','info','query\x20%s','removeColumn','removeIndex','then','indexName','Removed\x20column\x20%s\x20from\x20%s','addIndex','join','util','inspect'];(function(_0xedfe6d,_0x3b605f){const _0x1c058b=function(_0x4febf1){while(--_0x4febf1){_0xedfe6d['push'](_0xedfe6d['shift']());}};_0x1c058b(++_0x3b605f);}(a979_0x3b60,0x111));const a979_0x1c05=function(_0xedfe6d,_0x3b605f){_0xedfe6d=_0xedfe6d-0x0;let _0x1c058b=a979_0x3b60[_0xedfe6d];return _0x1c058b;};const _0x1106c6=a979_0x1c05;'use strict';const util=require(_0x1106c6('0x4')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x1106c6('0x18')]['enqueue']=function(_0x4febf1){const _0x38fed7=_0x1106c6;this[_0x38fed7('0xf')]=this[_0x38fed7('0xf')]?this['tail'][_0x38fed7('0x16')](_0x4febf1):_0x4febf1();};const Migration=function(_0x2f7f7d){const _0x286cbf=_0x1106c6;this[_0x286cbf('0x17')]=_0x2f7f7d,this[_0x286cbf('0x7')]=new Sequence();};Migration[_0x1106c6('0x18')]['changeColumn']=function(_0x5f6906,_0x1be054,_0x22dc92){const _0x304aa5=_0x1106c6,_0x1d7dbc=this;this[_0x304aa5('0x7')][_0x304aa5('0x12')](function(){const _0x404af0=_0x304aa5;return _0x1d7dbc[_0x404af0('0x17')][_0x404af0('0xd')](_0x5f6906,_0x1be054,_0x22dc92)[_0x404af0('0x1e')](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1be054,_0x5f6906);})[_0x404af0('0x10')](function(_0x752f39){const _0xf737dd=_0x404af0;logger[_0xf737dd('0x1a')](JSON['stringify'](_0x752f39));});});},Migration[_0x1106c6('0x18')][_0x1106c6('0x13')]=function(_0x178d52,_0x3d4fa7,_0x2aad26){const _0x3b94d4=_0x1106c6,_0x35dce5=this;this[_0x3b94d4('0x7')]['enqueue'](function(){const _0x3645c2=_0x3b94d4;return _0x35dce5[_0x3645c2('0x17')][_0x3645c2('0x13')](_0x178d52,_0x3d4fa7,_0x2aad26)[_0x3645c2('0x1e')](function(){const _0x4189a3=_0x3645c2;logger[_0x4189a3('0x1a')](_0x4189a3('0xe'),_0x3d4fa7,_0x178d52);})[_0x3645c2('0x10')](function(_0x28c1be){const _0x152743=_0x3645c2;logger[_0x152743('0x1a')](JSON['stringify'](_0x28c1be));});});},Migration[_0x1106c6('0x18')][_0x1106c6('0x15')]=function(_0x37a670){const _0xaf71a8=_0x1106c6,_0x11e823=this;this[_0xaf71a8('0x7')]['enqueue'](function(){const _0xb9a1e4=_0xaf71a8;return _0x11e823[_0xb9a1e4('0x17')][_0xb9a1e4('0x15')](_0x37a670,{'force':!![]})[_0xb9a1e4('0x1e')](function(){const _0x4f2003=_0xb9a1e4;logger[_0x4f2003('0x1a')](_0x4f2003('0x8'),_0x37a670);})[_0xb9a1e4('0x10')](function(_0x4faf2c){const _0x52bc07=_0xb9a1e4;logger[_0x52bc07('0x1a')](JSON[_0x52bc07('0x9')](_0x4faf2c));});});},Migration[_0x1106c6('0x18')][_0x1106c6('0x2')]=function(_0x4eb6c6,_0x128f32,_0x59da91){const _0x57e491=this;this['sequence']['enqueue'](function(){const _0x2bb373=a979_0x1c05;return _0x57e491[_0x2bb373('0x17')][_0x2bb373('0x2')](_0x4eb6c6,_0x128f32,{'indexName':_0x59da91['indexName'],'indicesType':_0x59da91[_0x2bb373('0x6')]})['then'](function(){const _0x59a54c=_0x2bb373;logger[_0x59a54c('0x1a')](_0x59a54c('0xb'),_0x4eb6c6,_0x128f32[_0x59a54c('0x3')](','),_0x59da91[_0x59a54c('0x0')],_0x59da91['indicesType']);})[_0x2bb373('0x10')](function(_0x188621){const _0xeaf033=_0x2bb373;logger[_0xeaf033('0x1a')](JSON[_0xeaf033('0x9')](_0x188621));});});},Migration[_0x1106c6('0x18')][_0x1106c6('0x1d')]=function(_0x4fd567,_0x43ba6f){const _0x4950ec=_0x1106c6,_0xf9d242=this;this[_0x4950ec('0x7')][_0x4950ec('0x12')](function(){const _0xc7defc=_0x4950ec;return _0xf9d242[_0xc7defc('0x17')][_0xc7defc('0x1d')](_0x4fd567,_0x43ba6f)[_0xc7defc('0x1e')](function(){const _0x5e5f62=_0xc7defc;logger[_0x5e5f62('0x1a')](_0x5e5f62('0xa'),_0x4fd567,_0x43ba6f);})[_0xc7defc('0x10')](function(_0x2bc2a8){const _0x40a017=_0xc7defc;logger[_0x40a017('0x1a')](JSON['stringify'](_0x2bc2a8));});});},Migration[_0x1106c6('0x18')]['query']=function(_0x513113){const _0x40f992=_0x1106c6,_0x58416e=this;this[_0x40f992('0x7')][_0x40f992('0x12')](function(){const _0x362a3d=_0x40f992;return _0x58416e['queryInterface'][_0x362a3d('0x11')]['query'](_0x513113)['then'](function(){const _0x1458c2=_0x362a3d;logger[_0x1458c2('0x1a')](_0x1458c2('0x1b'),_0x513113);})[_0x362a3d('0x10')](function(_0x381fb7){const _0x2e320b=_0x362a3d;logger[_0x2e320b('0x1a')](JSON[_0x2e320b('0x9')](_0x381fb7));});});},Migration['prototype'][_0x1106c6('0x1c')]=function(_0xfc7144,_0x294e78){const _0x90705f=_0x1106c6,_0x5582d3=this;this[_0x90705f('0x7')][_0x90705f('0x12')](function(){const _0x51a708=_0x90705f;return _0x5582d3['queryInterface']['removeColumn'](_0xfc7144,_0x294e78)[_0x51a708('0x1e')](function(){const _0xb79249=_0x51a708;logger['info'](_0xb79249('0x1'),_0x294e78,_0xfc7144);})['catch'](function(_0x2abb29){const _0x5b5874=_0x51a708;logger[_0x5b5874('0x1a')](util[_0x5b5874('0x5')](_0x2abb29,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x1106c6('0x14')]=function(_0x217899,_0x4967da,_0x3b3923){const _0x133589=_0x1106c6,_0x1d5a65=this;this[_0x133589('0x7')][_0x133589('0x12')](function(){const _0x41e901=_0x133589;return _0x1d5a65[_0x41e901('0x17')][_0x41e901('0x14')](_0x217899,_0x4967da,_0x3b3923)['then'](function(){const _0x215ddf=_0x41e901;logger[_0x215ddf('0x1a')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x4967da,_0x3b3923,_0x217899);})[_0x41e901('0x10')](function(_0x6cca1c){const _0x59ec28=_0x41e901;logger['info'](util[_0x59ec28('0x5')](_0x6cca1c,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x1106c6('0x19')]=function(_0x3bd09b){const _0x1e6fee=_0x1106c6;this['sequence'][_0x1e6fee('0x12')](function(){return _0x3bd09b();});},module[_0x1106c6('0xc')]={'up':function(_0x4cf7ab){return new Promise(function(_0x51583e){const _0x38e05b=a979_0x1c05,_0x257b7d=new Migration(_0x4cf7ab);_0x257b7d[_0x38e05b('0x19')](_0x51583e);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.7.js b/server/migrations/2.3.7.js index ea9a557..f862989 100644 --- a/server/migrations/2.3.7.js +++ b/server/migrations/2.3.7.js @@ -1 +1 @@ -const a980_0x4a3a=['renameColumn','INTEGER','info','transfertype','exports','ticketType','final','stringify','../config/logger','removeIndex','agententerreason','transferexten','util','transferuniqueid','report_agent','addIndex','sequence','then','queryInterface','addColumn','enqueue','dropTable','inspect','int_salesforce_configurations','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','migration','query\x20%s','removeIndex\x20%s\x20%s','join','DATE','Removed\x20column\x20%s\x20from\x20%s','Added\x20column\x20%s\x20to\x20%s','Case','finally','addIndex\x20%s\x20%s\x20%s','systemanswertime','STRING','query','Task','FORWARD,\x20BLIND,\x20ATTENDED','transfer','tail','report_call','sequelize','catch','BOOLEAN','table\x20dropped\x20%s','changeColumn','prototype'];(function(_0x17aa3d,_0x4a3a82){const _0x57d536=function(_0x15eb7d){while(--_0x15eb7d){_0x17aa3d['push'](_0x17aa3d['shift']());}};_0x57d536(++_0x4a3a82);}(a980_0x4a3a,0x1bf));const a980_0x57d5=function(_0x17aa3d,_0x4a3a82){_0x17aa3d=_0x17aa3d-0x0;let _0x57d536=a980_0x4a3a[_0x17aa3d];return _0x57d536;};const _0x48aa3a=a980_0x57d5;'use strict';const util=require(_0x48aa3a('0x6')),logger=require(_0x48aa3a('0x2'))(_0x48aa3a('0x13')),Sequence=function(){};Sequence['prototype'][_0x48aa3a('0xe')]=function(_0x15eb7d){const _0x284bcb=_0x48aa3a;this[_0x284bcb('0x23')]=this[_0x284bcb('0x23')]?this[_0x284bcb('0x23')][_0x284bcb('0x1b')](_0x15eb7d):_0x15eb7d();};const Migration=function(_0x411bf8){const _0x61df2c=_0x48aa3a;this[_0x61df2c('0xc')]=_0x411bf8,this['sequence']=new Sequence();};Migration[_0x48aa3a('0x2a')][_0x48aa3a('0x29')]=function(_0x4bbe26,_0x168f13,_0x10b9ca){const _0x1f65da=_0x48aa3a,_0x308943=this;this[_0x1f65da('0xa')]['enqueue'](function(){const _0x4e1172=_0x1f65da;return _0x308943[_0x4e1172('0xc')]['changeColumn'](_0x4bbe26,_0x168f13,_0x10b9ca)['then'](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x168f13,_0x4bbe26);})[_0x4e1172('0x26')](function(_0x4613a8){const _0x336bb6=_0x4e1172;logger[_0x336bb6('0x2d')](JSON[_0x336bb6('0x1')](_0x4613a8));});});},Migration[_0x48aa3a('0x2a')]['addColumn']=function(_0x1df237,_0x198c63,_0x437c34){const _0x5ca46e=this;this['sequence']['enqueue'](function(){const _0x21a242=a980_0x57d5;return _0x5ca46e['queryInterface'][_0x21a242('0xd')](_0x1df237,_0x198c63,_0x437c34)[_0x21a242('0xb')](function(){const _0x10d5f9=_0x21a242;logger[_0x10d5f9('0x2d')](_0x10d5f9('0x19'),_0x198c63,_0x1df237);})[_0x21a242('0x26')](function(_0x1b74df){const _0x5e338b=_0x21a242;logger[_0x5e338b('0x2d')](JSON['stringify'](_0x1b74df));});});},Migration[_0x48aa3a('0x2a')]['dropTable']=function(_0x1fc449){const _0x482304=_0x48aa3a,_0x9ff3ae=this;this[_0x482304('0xa')]['enqueue'](function(){const _0x436879=_0x482304;return _0x9ff3ae[_0x436879('0xc')][_0x436879('0xf')](_0x1fc449,{'force':!![]})[_0x436879('0xb')](function(){const _0x4bbb19=_0x436879;logger[_0x4bbb19('0x2d')](_0x4bbb19('0x28'),_0x1fc449);})[_0x436879('0x26')](function(_0x4ea119){logger['info'](JSON['stringify'](_0x4ea119));});});},Migration[_0x48aa3a('0x2a')][_0x48aa3a('0x9')]=function(_0x103a78,_0xff7e3e,_0x4ace51){const _0x53a43e=this;this['sequence']['enqueue'](function(){const _0x187d03=a980_0x57d5;return _0x53a43e['queryInterface'][_0x187d03('0x9')](_0x103a78,_0xff7e3e,{'indexName':_0x4ace51})['then'](function(){const _0x399718=_0x187d03;logger[_0x399718('0x2d')](_0x399718('0x1c'),_0x103a78,_0xff7e3e[_0x399718('0x16')](','),_0x4ace51);})['catch'](function(_0x296b52){const _0x39e127=_0x187d03;logger[_0x39e127('0x2d')](JSON[_0x39e127('0x1')](_0x296b52));});});},Migration['prototype'][_0x48aa3a('0x3')]=function(_0x248e2,_0x3d31f9){const _0x4bb8f5=_0x48aa3a,_0x8346cb=this;this[_0x4bb8f5('0xa')][_0x4bb8f5('0xe')](function(){const _0x296fea=_0x4bb8f5;return _0x8346cb[_0x296fea('0xc')]['removeIndex'](_0x248e2,_0x3d31f9)[_0x296fea('0xb')](function(){const _0x51bf09=_0x296fea;logger['info'](_0x51bf09('0x15'),_0x248e2,_0x3d31f9);})[_0x296fea('0x26')](function(_0x1a2344){const _0x2341d3=_0x296fea;logger['info'](JSON[_0x2341d3('0x1')](_0x1a2344));});});},Migration[_0x48aa3a('0x2a')][_0x48aa3a('0x1f')]=function(_0x347564){const _0x5d45cc=_0x48aa3a,_0x2c06f3=this;this['sequence'][_0x5d45cc('0xe')](function(){const _0x1cbb18=_0x5d45cc;return _0x2c06f3['queryInterface'][_0x1cbb18('0x25')][_0x1cbb18('0x1f')](_0x347564)[_0x1cbb18('0xb')](function(){const _0x1e4a47=_0x1cbb18;logger[_0x1e4a47('0x2d')](_0x1e4a47('0x14'),_0x347564);})[_0x1cbb18('0x26')](function(_0x12361e){const _0x419eaf=_0x1cbb18;logger[_0x419eaf('0x2d')](JSON[_0x419eaf('0x1')](_0x12361e));});});},Migration['prototype']['removeColumn']=function(_0x2db665,_0x13bd4f){const _0x38f36c=_0x48aa3a,_0x12eecb=this;this[_0x38f36c('0xa')]['enqueue'](function(){const _0x3487c7=_0x38f36c;return _0x12eecb[_0x3487c7('0xc')]['removeColumn'](_0x2db665,_0x13bd4f)[_0x3487c7('0xb')](function(){const _0x4964af=_0x3487c7;logger['info'](_0x4964af('0x18'),_0x13bd4f,_0x2db665);})[_0x3487c7('0x26')](function(_0x1d8541){const _0x334ae9=_0x3487c7;logger[_0x334ae9('0x2d')](util[_0x334ae9('0x10')](_0x1d8541,{'showHidden':![],'depth':null}));});});},Migration[_0x48aa3a('0x2a')][_0x48aa3a('0x2b')]=function(_0x48b64a,_0x40d080,_0x2103c2){const _0x1834e1=_0x48aa3a,_0xef72d9=this;this[_0x1834e1('0xa')][_0x1834e1('0xe')](function(){const _0x344000=_0x1834e1;return _0xef72d9[_0x344000('0xc')][_0x344000('0x2b')](_0x48b64a,_0x40d080,_0x2103c2)[_0x344000('0xb')](function(){const _0x51f6f4=_0x344000;logger['info'](_0x51f6f4('0x12'),_0x40d080,_0x2103c2,_0x48b64a);})[_0x344000('0x26')](function(_0x300cdd){const _0x3d0da0=_0x344000;logger[_0x3d0da0('0x2d')](util['inspect'](_0x300cdd,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x48aa3a('0x0')]=function(_0xc66e1c){const _0x880dd0=_0x48aa3a;this[_0x880dd0('0xa')][_0x880dd0('0xe')](function(){return _0xc66e1c();});},module[_0x48aa3a('0x2f')]={'up':function(_0x4f6ee6,_0x2f2a6e){return new Promise(function(_0x2b00df){const _0x350eed=a980_0x57d5,_0x40efd5=new Migration(_0x4f6ee6);_0x40efd5[_0x350eed('0xd')](_0x350eed('0x8'),_0x350eed('0x22'),{'type':_0x2f2a6e[_0x350eed('0x27')],'defaultValue':![]}),_0x40efd5[_0x350eed('0xd')](_0x350eed('0x8'),_0x350eed('0x2e'),{'type':_0x2f2a6e[_0x350eed('0x1e')],'comment':_0x350eed('0x21')}),_0x40efd5[_0x350eed('0xd')](_0x350eed('0x8'),_0x350eed('0x5'),{'type':_0x2f2a6e[_0x350eed('0x1e')]}),_0x40efd5['addColumn'](_0x350eed('0x8'),_0x350eed('0x7'),{'type':_0x2f2a6e[_0x350eed('0x1e')]}),_0x40efd5[_0x350eed('0xd')](_0x350eed('0x8'),_0x350eed('0x4'),{'type':_0x2f2a6e[_0x350eed('0x2c')],'defaultValue':0x0}),_0x40efd5[_0x350eed('0xd')](_0x350eed('0x24'),_0x350eed('0x1d'),{'type':_0x2f2a6e[_0x350eed('0x17')]}),_0x40efd5[_0x350eed('0xd')](_0x350eed('0x11'),_0x350eed('0x30'),{'type':_0x2f2a6e['ENUM']('Task',_0x350eed('0x1a')),'defaultValue':_0x350eed('0x20')}),_0x40efd5[_0x350eed('0x0')](_0x2b00df);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.8.js b/server/migrations/2.3.8.js index e57c604..36cf292 100644 --- a/server/migrations/2.3.8.js +++ b/server/migrations/2.3.8.js @@ -1 +1 @@ -const a981_0x48d3=['removeIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','table\x20dropped\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','sequelize','removeColumn','catch','query\x20%s','sequence','dropTable','stringify','query','addIndex','info','Added\x20column\x20%s\x20to\x20%s','exports','final','queryInterface','inspect','then','addColumn','prototype','renameColumn','Removed\x20column\x20%s\x20from\x20%s','removeIndex\x20%s\x20%s','changeColumn','enqueue','join','migration'];(function(_0x3d12a9,_0x48d3b4){const _0x1cedc7=function(_0x22323f){while(--_0x22323f){_0x3d12a9['push'](_0x3d12a9['shift']());}};_0x1cedc7(++_0x48d3b4);}(a981_0x48d3,0xbf));const a981_0x1ced=function(_0x3d12a9,_0x48d3b4){_0x3d12a9=_0x3d12a9-0x0;let _0x1cedc7=a981_0x48d3[_0x3d12a9];return _0x1cedc7;};const _0x473798=a981_0x1ced;'use strict';const util=require('util'),logger=require('../config/logger')(_0x473798('0x12')),Sequence=function(){};Sequence['prototype'][_0x473798('0x10')]=function(_0x22323f){const _0x285215=_0x473798;this['tail']=this['tail']?this['tail'][_0x285215('0x17')](_0x22323f):_0x22323f();};const Migration=function(_0x5a36a2){const _0x6fd7fa=_0x473798;this[_0x6fd7fa('0x7')]=_0x5a36a2,this[_0x6fd7fa('0x1c')]=new Sequence();};Migration[_0x473798('0xb')][_0x473798('0xf')]=function(_0x175b1d,_0x1c4b6c,_0x591da5){const _0x3a00ae=_0x473798,_0x1a1438=this;this[_0x3a00ae('0x1c')][_0x3a00ae('0x10')](function(){const _0x4c40fb=_0x3a00ae;return _0x1a1438[_0x4c40fb('0x7')][_0x4c40fb('0xf')](_0x175b1d,_0x1c4b6c,_0x591da5)[_0x4c40fb('0x9')](function(){const _0x1c334f=_0x4c40fb;logger[_0x1c334f('0x3')](_0x1c334f('0x16'),_0x1c4b6c,_0x175b1d);})[_0x4c40fb('0x1a')](function(_0x5bbcd7){const _0x2dc872=_0x4c40fb;logger[_0x2dc872('0x3')](JSON[_0x2dc872('0x0')](_0x5bbcd7));});});},Migration[_0x473798('0xb')][_0x473798('0xa')]=function(_0x27ee59,_0x149eb0,_0x2ac744){const _0x4459b0=_0x473798,_0x4669e8=this;this[_0x4459b0('0x1c')]['enqueue'](function(){const _0x586f92=_0x4459b0;return _0x4669e8['queryInterface'][_0x586f92('0xa')](_0x27ee59,_0x149eb0,_0x2ac744)[_0x586f92('0x9')](function(){const _0x52157a=_0x586f92;logger[_0x52157a('0x3')](_0x52157a('0x4'),_0x149eb0,_0x27ee59);})[_0x586f92('0x1a')](function(_0x5177ab){const _0xab585b=_0x586f92;logger[_0xab585b('0x3')](JSON['stringify'](_0x5177ab));});});},Migration[_0x473798('0xb')][_0x473798('0x1d')]=function(_0x280f5c){const _0x3677e7=_0x473798,_0x2a7e5b=this;this[_0x3677e7('0x1c')]['enqueue'](function(){const _0x3c19f5=_0x3677e7;return _0x2a7e5b['queryInterface'][_0x3c19f5('0x1d')](_0x280f5c,{'force':!![]})[_0x3c19f5('0x9')](function(){const _0x41bd38=_0x3c19f5;logger[_0x41bd38('0x3')](_0x41bd38('0x15'),_0x280f5c);})[_0x3c19f5('0x1a')](function(_0x33f8f7){const _0x179ed3=_0x3c19f5;logger[_0x179ed3('0x3')](JSON[_0x179ed3('0x0')](_0x33f8f7));});});},Migration[_0x473798('0xb')]['addIndex']=function(_0xbe5210,_0x264726,_0x3105c8){const _0x1151a6=_0x473798,_0x2c8186=this;this[_0x1151a6('0x1c')][_0x1151a6('0x10')](function(){const _0x7753b0=_0x1151a6;return _0x2c8186[_0x7753b0('0x7')][_0x7753b0('0x2')](_0xbe5210,_0x264726,{'indexName':_0x3105c8})[_0x7753b0('0x9')](function(){const _0x54a044=_0x7753b0;logger[_0x54a044('0x3')]('addIndex\x20%s\x20%s\x20%s',_0xbe5210,_0x264726[_0x54a044('0x11')](','),_0x3105c8);})[_0x7753b0('0x1a')](function(_0x7ee7f5){const _0x10bc06=_0x7753b0;logger[_0x10bc06('0x3')](JSON[_0x10bc06('0x0')](_0x7ee7f5));});});},Migration[_0x473798('0xb')][_0x473798('0x13')]=function(_0x3477fd,_0x517fd5){const _0x5290ba=_0x473798,_0x3e7930=this;this[_0x5290ba('0x1c')]['enqueue'](function(){const _0x148ad7=_0x5290ba;return _0x3e7930[_0x148ad7('0x7')][_0x148ad7('0x13')](_0x3477fd,_0x517fd5)['then'](function(){const _0x38c8cc=_0x148ad7;logger[_0x38c8cc('0x3')](_0x38c8cc('0xe'),_0x3477fd,_0x517fd5);})[_0x148ad7('0x1a')](function(_0x323ff9){const _0x153bbe=_0x148ad7;logger[_0x153bbe('0x3')](JSON[_0x153bbe('0x0')](_0x323ff9));});});},Migration[_0x473798('0xb')][_0x473798('0x1')]=function(_0x585c19){const _0x26f73e=_0x473798,_0x482999=this;this[_0x26f73e('0x1c')]['enqueue'](function(){const _0x692556=_0x26f73e;return _0x482999[_0x692556('0x7')][_0x692556('0x18')][_0x692556('0x1')](_0x585c19)[_0x692556('0x9')](function(){const _0x4591f8=_0x692556;logger['info'](_0x4591f8('0x1b'),_0x585c19);})[_0x692556('0x1a')](function(_0x1877d5){const _0x51492e=_0x692556;logger[_0x51492e('0x3')](JSON[_0x51492e('0x0')](_0x1877d5));});});},Migration['prototype'][_0x473798('0x19')]=function(_0x8a24c0,_0x18b335){const _0xfbbbf0=_0x473798,_0xce8d72=this;this[_0xfbbbf0('0x1c')]['enqueue'](function(){const _0x119636=_0xfbbbf0;return _0xce8d72['queryInterface']['removeColumn'](_0x8a24c0,_0x18b335)[_0x119636('0x9')](function(){const _0xadb1a7=_0x119636;logger[_0xadb1a7('0x3')](_0xadb1a7('0xd'),_0x18b335,_0x8a24c0);})[_0x119636('0x1a')](function(_0x538293){const _0x59c5ce=_0x119636;logger['info'](util[_0x59c5ce('0x8')](_0x538293,{'showHidden':![],'depth':null}));});});},Migration[_0x473798('0xb')][_0x473798('0xc')]=function(_0x180601,_0x57077a,_0x4a2944){const _0x5f2e6f=_0x473798,_0x1fe249=this;this[_0x5f2e6f('0x1c')][_0x5f2e6f('0x10')](function(){const _0x387fb9=_0x5f2e6f;return _0x1fe249['queryInterface'][_0x387fb9('0xc')](_0x180601,_0x57077a,_0x4a2944)['then'](function(){const _0x101390=_0x387fb9;logger[_0x101390('0x3')](_0x101390('0x14'),_0x57077a,_0x4a2944,_0x180601);})['catch'](function(_0x3f3ee7){const _0x3483da=_0x387fb9;logger[_0x3483da('0x3')](util['inspect'](_0x3f3ee7,{'showHidden':![],'depth':null}));});});},Migration[_0x473798('0xb')]['final']=function(_0x3183b8){const _0x545496=_0x473798;this[_0x545496('0x1c')]['enqueue'](function(){return _0x3183b8();});},module[_0x473798('0x5')]={'up':function(_0x41a269){return new Promise(function(_0x51de60){const _0x4929d6=a981_0x1ced,_0x1d91ac=new Migration(_0x41a269);_0x1d91ac[_0x4929d6('0x6')](_0x51de60);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.9.js b/server/migrations/2.3.9.js index e77373d..cf6932a 100644 --- a/server/migrations/2.3.9.js +++ b/server/migrations/2.3.9.js @@ -1 +1 @@ -const a982_0x2ed2=['changeColumn','removeColumn','util','query','stringify','dropTable','addColumn','table\x20dropped\x20%s','prototype','../config/logger','inspect','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','renameColumn','then','Removed\x20column\x20%s\x20from\x20%s','catch','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequence','removeIndex','addIndex','removeIndex\x20%s\x20%s','enqueue','tail','indicesType','final','queryInterface','migration','query\x20%s','info','sequelize','join','indexName','Added\x20column\x20%s\x20to\x20%s'];(function(_0x5a09c4,_0x2ed226){const _0x435c3a=function(_0x45fb1d){while(--_0x45fb1d){_0x5a09c4['push'](_0x5a09c4['shift']());}};_0x435c3a(++_0x2ed226);}(a982_0x2ed2,0xd9));const a982_0x435c=function(_0x5a09c4,_0x2ed226){_0x5a09c4=_0x5a09c4-0x0;let _0x435c3a=a982_0x2ed2[_0x5a09c4];return _0x435c3a;};const _0x258cfc=a982_0x435c;'use strict';const util=require(_0x258cfc('0x10')),logger=require(_0x258cfc('0x17'))(_0x258cfc('0x7')),Sequence=function(){};Sequence[_0x258cfc('0x16')][_0x258cfc('0x2')]=function(_0x45fb1d){const _0x2dd1c3=_0x258cfc;this[_0x2dd1c3('0x3')]=this['tail']?this[_0x2dd1c3('0x3')]['finally'](_0x45fb1d):_0x45fb1d();};const Migration=function(_0x20a503){const _0x54c49a=_0x258cfc;this[_0x54c49a('0x6')]=_0x20a503,this[_0x54c49a('0x1f')]=new Sequence();};Migration['prototype'][_0x258cfc('0xe')]=function(_0x27ebdf,_0x415550,_0x2a3dcb){const _0x4e372a=this;this['sequence']['enqueue'](function(){const _0x3f44d8=a982_0x435c;return _0x4e372a[_0x3f44d8('0x6')]['changeColumn'](_0x27ebdf,_0x415550,_0x2a3dcb)['then'](function(){const _0x40b731=_0x3f44d8;logger[_0x40b731('0x9')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x415550,_0x27ebdf);})[_0x3f44d8('0x1d')](function(_0x90af05){const _0x4cb6bf=_0x3f44d8;logger[_0x4cb6bf('0x9')](JSON[_0x4cb6bf('0x12')](_0x90af05));});});},Migration['prototype'][_0x258cfc('0x14')]=function(_0x4d8bce,_0x4af752,_0x480eec){const _0x12f69d=_0x258cfc,_0x333c4f=this;this['sequence'][_0x12f69d('0x2')](function(){const _0x36f555=_0x12f69d;return _0x333c4f[_0x36f555('0x6')]['addColumn'](_0x4d8bce,_0x4af752,_0x480eec)[_0x36f555('0x1b')](function(){const _0x2dfec3=_0x36f555;logger[_0x2dfec3('0x9')](_0x2dfec3('0xd'),_0x4af752,_0x4d8bce);})[_0x36f555('0x1d')](function(_0x335b93){logger['info'](JSON['stringify'](_0x335b93));});});},Migration[_0x258cfc('0x16')][_0x258cfc('0x13')]=function(_0x14efb3){const _0x471895=_0x258cfc,_0x49afbc=this;this['sequence'][_0x471895('0x2')](function(){const _0x12032f=_0x471895;return _0x49afbc[_0x12032f('0x6')][_0x12032f('0x13')](_0x14efb3,{'force':!![]})[_0x12032f('0x1b')](function(){const _0x2bae48=_0x12032f;logger[_0x2bae48('0x9')](_0x2bae48('0x15'),_0x14efb3);})[_0x12032f('0x1d')](function(_0x3cad51){const _0x56f161=_0x12032f;logger[_0x56f161('0x9')](JSON[_0x56f161('0x12')](_0x3cad51));});});},Migration[_0x258cfc('0x16')][_0x258cfc('0x0')]=function(_0x5bfd01,_0xbee54f,_0x5cf491){const _0xd64a90=_0x258cfc,_0x38de9e=this;this['sequence'][_0xd64a90('0x2')](function(){const _0x59ac6d=_0xd64a90;return _0x38de9e[_0x59ac6d('0x6')][_0x59ac6d('0x0')](_0x5bfd01,_0xbee54f,{'indexName':_0x5cf491[_0x59ac6d('0xc')],'indicesType':_0x5cf491[_0x59ac6d('0x4')]})[_0x59ac6d('0x1b')](function(){const _0x385756=_0x59ac6d;logger[_0x385756('0x9')](_0x385756('0x1e'),_0x5bfd01,_0xbee54f[_0x385756('0xb')](','),_0x5cf491['indexName'],_0x5cf491[_0x385756('0x4')]);})[_0x59ac6d('0x1d')](function(_0x4d486f){logger['info'](JSON['stringify'](_0x4d486f));});});},Migration[_0x258cfc('0x16')][_0x258cfc('0x20')]=function(_0x11cc7f,_0x36ad7c){const _0x3a4ffb=_0x258cfc,_0x463e48=this;this['sequence'][_0x3a4ffb('0x2')](function(){const _0x4d8a78=_0x3a4ffb;return _0x463e48[_0x4d8a78('0x6')][_0x4d8a78('0x20')](_0x11cc7f,_0x36ad7c)[_0x4d8a78('0x1b')](function(){const _0x3869f7=_0x4d8a78;logger[_0x3869f7('0x9')](_0x3869f7('0x1'),_0x11cc7f,_0x36ad7c);})[_0x4d8a78('0x1d')](function(_0x1b5799){const _0x22efce=_0x4d8a78;logger[_0x22efce('0x9')](JSON['stringify'](_0x1b5799));});});},Migration['prototype'][_0x258cfc('0x11')]=function(_0xc3a41){const _0x2f8619=_0x258cfc,_0x141da1=this;this['sequence'][_0x2f8619('0x2')](function(){const _0x54ef3d=_0x2f8619;return _0x141da1['queryInterface'][_0x54ef3d('0xa')]['query'](_0xc3a41)['then'](function(){const _0x300f87=_0x54ef3d;logger[_0x300f87('0x9')](_0x300f87('0x8'),_0xc3a41);})[_0x54ef3d('0x1d')](function(_0x5b67e5){const _0x2cd4cb=_0x54ef3d;logger[_0x2cd4cb('0x9')](JSON['stringify'](_0x5b67e5));});});},Migration[_0x258cfc('0x16')][_0x258cfc('0xf')]=function(_0x39df2d,_0x487b19){const _0x3be494=_0x258cfc,_0x15ec6d=this;this[_0x3be494('0x1f')]['enqueue'](function(){const _0x47c6ab=_0x3be494;return _0x15ec6d[_0x47c6ab('0x6')][_0x47c6ab('0xf')](_0x39df2d,_0x487b19)[_0x47c6ab('0x1b')](function(){const _0x2cdce4=_0x47c6ab;logger[_0x2cdce4('0x9')](_0x2cdce4('0x1c'),_0x487b19,_0x39df2d);})['catch'](function(_0x5294a1){const _0x8eeb46=_0x47c6ab;logger[_0x8eeb46('0x9')](util[_0x8eeb46('0x18')](_0x5294a1,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x258cfc('0x1a')]=function(_0x1b77c8,_0x2ea68a,_0x244e71){const _0x52c33e=_0x258cfc,_0x2ba7b6=this;this['sequence'][_0x52c33e('0x2')](function(){const _0x5e81b9=_0x52c33e;return _0x2ba7b6[_0x5e81b9('0x6')]['renameColumn'](_0x1b77c8,_0x2ea68a,_0x244e71)[_0x5e81b9('0x1b')](function(){const _0x106fec=_0x5e81b9;logger[_0x106fec('0x9')](_0x106fec('0x19'),_0x2ea68a,_0x244e71,_0x1b77c8);})[_0x5e81b9('0x1d')](function(_0x1eaf0f){const _0x233788=_0x5e81b9;logger[_0x233788('0x9')](util[_0x233788('0x18')](_0x1eaf0f,{'showHidden':![],'depth':null}));});});},Migration[_0x258cfc('0x16')][_0x258cfc('0x5')]=function(_0x3a65bd){const _0x56967f=_0x258cfc;this[_0x56967f('0x1f')]['enqueue'](function(){return _0x3a65bd();});},module['exports']={'up':function(_0x48eafc){return new Promise(function(_0x1b49a8){const _0x27b451=a982_0x435c,_0x42e571=new Migration(_0x48eafc);_0x42e571[_0x27b451('0x5')](_0x1b49a8);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.91.js b/server/migrations/2.3.91.js index 6625339..2b0a14a 100644 --- a/server/migrations/2.3.91.js +++ b/server/migrations/2.3.91.js @@ -1 +1 @@ -const a983_0x3481=['report_call','sequence','queryInterface','Added\x20column\x20%s\x20to\x20%s','addIndex\x20%s\x20%s\x20%s','changeColumn','query','renameColumn','dropTable','removeColumn','removeIndex','finally','util','Removed\x20column\x20%s\x20from\x20%s','addColumn','migration','final','stringify','addIndex','enqueue','removeIndex\x20%s\x20%s','then','info','sipcallid','inspect','catch','prototype','tail','join'];(function(_0x5d73f1,_0x348169){const _0x516720=function(_0x5a6035){while(--_0x5a6035){_0x5d73f1['push'](_0x5d73f1['shift']());}};_0x516720(++_0x348169);}(a983_0x3481,0xa9));const a983_0x5167=function(_0x5d73f1,_0x348169){_0x5d73f1=_0x5d73f1-0x0;let _0x516720=a983_0x3481[_0x5d73f1];return _0x516720;};const _0x8c9a5a=a983_0x5167;'use strict';const util=require(_0x8c9a5a('0x11')),logger=require('../config/logger')(_0x8c9a5a('0x14')),Sequence=function(){};Sequence['prototype'][_0x8c9a5a('0x18')]=function(_0x5a6035){const _0x2ec7a2=_0x8c9a5a;this[_0x2ec7a2('0x3')]=this[_0x2ec7a2('0x3')]?this['tail'][_0x2ec7a2('0x10')](_0x5a6035):_0x5a6035();};const Migration=function(_0x2721d9){const _0x334f33=_0x8c9a5a;this[_0x334f33('0x7')]=_0x2721d9,this[_0x334f33('0x6')]=new Sequence();};Migration[_0x8c9a5a('0x2')][_0x8c9a5a('0xa')]=function(_0x2e5750,_0x1497a8,_0x340573){const _0x5db4d1=_0x8c9a5a,_0x21ea09=this;this[_0x5db4d1('0x6')][_0x5db4d1('0x18')](function(){const _0x53171c=_0x5db4d1;return _0x21ea09[_0x53171c('0x7')][_0x53171c('0xa')](_0x2e5750,_0x1497a8,_0x340573)[_0x53171c('0x1a')](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1497a8,_0x2e5750);})[_0x53171c('0x1')](function(_0xa88544){const _0x2d19f5=_0x53171c;logger[_0x2d19f5('0x1b')](JSON[_0x2d19f5('0x16')](_0xa88544));});});},Migration[_0x8c9a5a('0x2')][_0x8c9a5a('0x13')]=function(_0x2aee98,_0x35c5c6,_0x44f67c){const _0x4ad1c9=_0x8c9a5a,_0x5a78d3=this;this[_0x4ad1c9('0x6')][_0x4ad1c9('0x18')](function(){const _0x3b4b0e=_0x4ad1c9;return _0x5a78d3[_0x3b4b0e('0x7')][_0x3b4b0e('0x13')](_0x2aee98,_0x35c5c6,_0x44f67c)[_0x3b4b0e('0x1a')](function(){const _0x2f893d=_0x3b4b0e;logger[_0x2f893d('0x1b')](_0x2f893d('0x8'),_0x35c5c6,_0x2aee98);})[_0x3b4b0e('0x1')](function(_0x4d46ab){const _0xc42379=_0x3b4b0e;logger[_0xc42379('0x1b')](JSON[_0xc42379('0x16')](_0x4d46ab));});});},Migration[_0x8c9a5a('0x2')][_0x8c9a5a('0xd')]=function(_0x9c4200){const _0x4bf0d9=_0x8c9a5a,_0x18bed4=this;this[_0x4bf0d9('0x6')][_0x4bf0d9('0x18')](function(){const _0x152886=_0x4bf0d9;return _0x18bed4['queryInterface'][_0x152886('0xd')](_0x9c4200,{'force':!![]})[_0x152886('0x1a')](function(){const _0x57e6b3=_0x152886;logger[_0x57e6b3('0x1b')]('table\x20dropped\x20%s',_0x9c4200);})['catch'](function(_0xb0a576){const _0x2fedcf=_0x152886;logger['info'](JSON[_0x2fedcf('0x16')](_0xb0a576));});});},Migration['prototype']['addIndex']=function(_0x37fc6d,_0x2015aa,_0x150cab){const _0x55003b=_0x8c9a5a,_0x58c120=this;this[_0x55003b('0x6')][_0x55003b('0x18')](function(){const _0x40e9a5=_0x55003b;return _0x58c120[_0x40e9a5('0x7')][_0x40e9a5('0x17')](_0x37fc6d,_0x2015aa,{'indexName':_0x150cab})[_0x40e9a5('0x1a')](function(){const _0x6e7e6f=_0x40e9a5;logger['info'](_0x6e7e6f('0x9'),_0x37fc6d,_0x2015aa[_0x6e7e6f('0x4')](','),_0x150cab);})[_0x40e9a5('0x1')](function(_0x2daa5f){const _0x53bc08=_0x40e9a5;logger[_0x53bc08('0x1b')](JSON[_0x53bc08('0x16')](_0x2daa5f));});});},Migration[_0x8c9a5a('0x2')][_0x8c9a5a('0xf')]=function(_0x1aa708,_0x36f544){const _0x21c203=_0x8c9a5a,_0x48c244=this;this[_0x21c203('0x6')][_0x21c203('0x18')](function(){const _0x568611=_0x21c203;return _0x48c244[_0x568611('0x7')][_0x568611('0xf')](_0x1aa708,_0x36f544)[_0x568611('0x1a')](function(){const _0x56ca3f=_0x568611;logger[_0x56ca3f('0x1b')](_0x56ca3f('0x19'),_0x1aa708,_0x36f544);})[_0x568611('0x1')](function(_0x52965c){const _0x12ec98=_0x568611;logger[_0x12ec98('0x1b')](JSON[_0x12ec98('0x16')](_0x52965c));});});},Migration[_0x8c9a5a('0x2')][_0x8c9a5a('0xb')]=function(_0x429697){const _0x41a60a=this;this['sequence']['enqueue'](function(){const _0x225686=a983_0x5167;return _0x41a60a['queryInterface']['sequelize'][_0x225686('0xb')](_0x429697)['then'](function(){logger['info']('query\x20%s',_0x429697);})[_0x225686('0x1')](function(_0x384258){const _0x3e5ec2=_0x225686;logger[_0x3e5ec2('0x1b')](JSON[_0x3e5ec2('0x16')](_0x384258));});});},Migration[_0x8c9a5a('0x2')][_0x8c9a5a('0xe')]=function(_0x5da603,_0x22dd5c){const _0x4d32d3=_0x8c9a5a,_0x3ec848=this;this[_0x4d32d3('0x6')][_0x4d32d3('0x18')](function(){const _0x2ee74b=_0x4d32d3;return _0x3ec848['queryInterface'][_0x2ee74b('0xe')](_0x5da603,_0x22dd5c)[_0x2ee74b('0x1a')](function(){const _0x5b81f5=_0x2ee74b;logger['info'](_0x5b81f5('0x12'),_0x22dd5c,_0x5da603);})[_0x2ee74b('0x1')](function(_0x5e7c8a){const _0x41cf51=_0x2ee74b;logger[_0x41cf51('0x1b')](util[_0x41cf51('0x0')](_0x5e7c8a,{'showHidden':![],'depth':null}));});});},Migration[_0x8c9a5a('0x2')][_0x8c9a5a('0xc')]=function(_0x1fcb44,_0xf59e58,_0x362e5f){const _0x338d79=_0x8c9a5a,_0x403dc7=this;this[_0x338d79('0x6')]['enqueue'](function(){const _0x339155=_0x338d79;return _0x403dc7['queryInterface'][_0x339155('0xc')](_0x1fcb44,_0xf59e58,_0x362e5f)[_0x339155('0x1a')](function(){const _0x488493=_0x339155;logger[_0x488493('0x1b')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0xf59e58,_0x362e5f,_0x1fcb44);})[_0x339155('0x1')](function(_0x5a65a6){const _0x37109e=_0x339155;logger[_0x37109e('0x1b')](util[_0x37109e('0x0')](_0x5a65a6,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x8c9a5a('0x15')]=function(_0x2da270){const _0x884240=_0x8c9a5a;this[_0x884240('0x6')]['enqueue'](function(){return _0x2da270();});},module['exports']={'up':function(_0x3546e1,_0x4c340d){return new Promise(function(_0x32ec93){const _0x1a40f3=a983_0x5167,_0x1ce147=new Migration(_0x3546e1);_0x1ce147[_0x1a40f3('0x13')](_0x1a40f3('0x5'),_0x1a40f3('0x1c'),{'type':_0x4c340d['STRING']}),_0x1ce147[_0x1a40f3('0x15')](_0x32ec93);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.92.js b/server/migrations/2.3.92.js index bd555eb..ce2d4ed 100644 --- a/server/migrations/2.3.92.js +++ b/server/migrations/2.3.92.js @@ -1 +1 @@ -const a984_0x4f9f=['renameColumn','info','sequence','then','addIndex','finally','stringify','removeColumn','addIndex\x20%s\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','join','changeColumn','enqueue','prototype','../config/logger','query','addColumn','inspect','tail','queryInterface','final','removeIndex','catch','query\x20%s','removeIndex\x20%s\x20%s'];(function(_0x6d4a02,_0x4f9f37){const _0x3de638=function(_0x13958e){while(--_0x13958e){_0x6d4a02['push'](_0x6d4a02['shift']());}};_0x3de638(++_0x4f9f37);}(a984_0x4f9f,0x9b));const a984_0x3de6=function(_0x6d4a02,_0x4f9f37){_0x6d4a02=_0x6d4a02-0x0;let _0x3de638=a984_0x4f9f[_0x6d4a02];return _0x3de638;};const _0x597f25=a984_0x3de6;'use strict';const util=require('util'),logger=require(_0x597f25('0x17'))('migration'),Sequence=function(){};Sequence[_0x597f25('0x16')]['enqueue']=function(_0x13958e){const _0xa5431=_0x597f25;this[_0xa5431('0x0')]=this[_0xa5431('0x0')]?this[_0xa5431('0x0')][_0xa5431('0xc')](_0x13958e):_0x13958e();};const Migration=function(_0x28a155){const _0x327b6c=_0x597f25;this['queryInterface']=_0x28a155,this[_0x327b6c('0x9')]=new Sequence();};Migration[_0x597f25('0x16')][_0x597f25('0x14')]=function(_0x9d6ba,_0x373913,_0x2a33bb){const _0x2291a8=this;this['sequence']['enqueue'](function(){const _0x41123f=a984_0x3de6;return _0x2291a8[_0x41123f('0x1')]['changeColumn'](_0x9d6ba,_0x373913,_0x2a33bb)[_0x41123f('0xa')](function(){const _0x510629=_0x41123f;logger[_0x510629('0x8')](_0x510629('0x12'),_0x373913,_0x9d6ba);})[_0x41123f('0x4')](function(_0x2fc8c6){const _0x2fb4d7=_0x41123f;logger[_0x2fb4d7('0x8')](JSON[_0x2fb4d7('0xd')](_0x2fc8c6));});});},Migration['prototype'][_0x597f25('0x19')]=function(_0x46fb9a,_0x304c2d,_0x135da8){const _0x1f7542=_0x597f25,_0x23c656=this;this[_0x1f7542('0x9')][_0x1f7542('0x15')](function(){const _0x342861=_0x1f7542;return _0x23c656[_0x342861('0x1')]['addColumn'](_0x46fb9a,_0x304c2d,_0x135da8)[_0x342861('0xa')](function(){const _0x3efc62=_0x342861;logger[_0x3efc62('0x8')](_0x3efc62('0x10'),_0x304c2d,_0x46fb9a);})['catch'](function(_0x507797){const _0x440b19=_0x342861;logger[_0x440b19('0x8')](JSON[_0x440b19('0xd')](_0x507797));});});},Migration[_0x597f25('0x16')][_0x597f25('0x11')]=function(_0x460d8d){const _0x5db7d0=_0x597f25,_0x5611fe=this;this[_0x5db7d0('0x9')][_0x5db7d0('0x15')](function(){const _0x55b7fd=_0x5db7d0;return _0x5611fe[_0x55b7fd('0x1')][_0x55b7fd('0x11')](_0x460d8d,{'force':!![]})['then'](function(){const _0x3b3f99=_0x55b7fd;logger[_0x3b3f99('0x8')]('table\x20dropped\x20%s',_0x460d8d);})[_0x55b7fd('0x4')](function(_0x16160a){const _0x29efd7=_0x55b7fd;logger[_0x29efd7('0x8')](JSON[_0x29efd7('0xd')](_0x16160a));});});},Migration[_0x597f25('0x16')][_0x597f25('0xb')]=function(_0x450cf3,_0x1f6b96,_0x3084df){const _0xbee5ff=_0x597f25,_0x5464f7=this;this[_0xbee5ff('0x9')][_0xbee5ff('0x15')](function(){const _0x156528=_0xbee5ff;return _0x5464f7[_0x156528('0x1')]['addIndex'](_0x450cf3,_0x1f6b96,{'indexName':_0x3084df})[_0x156528('0xa')](function(){const _0x549711=_0x156528;logger[_0x549711('0x8')](_0x549711('0xf'),_0x450cf3,_0x1f6b96[_0x549711('0x13')](','),_0x3084df);})[_0x156528('0x4')](function(_0x2178e5){const _0x2b0490=_0x156528;logger[_0x2b0490('0x8')](JSON[_0x2b0490('0xd')](_0x2178e5));});});},Migration[_0x597f25('0x16')][_0x597f25('0x3')]=function(_0x3ff863,_0x1bf106){const _0x13f68d=_0x597f25,_0x44154c=this;this[_0x13f68d('0x9')]['enqueue'](function(){const _0x10024a=_0x13f68d;return _0x44154c[_0x10024a('0x1')]['removeIndex'](_0x3ff863,_0x1bf106)[_0x10024a('0xa')](function(){const _0x4f4298=_0x10024a;logger[_0x4f4298('0x8')](_0x4f4298('0x6'),_0x3ff863,_0x1bf106);})[_0x10024a('0x4')](function(_0x297abd){const _0x33c789=_0x10024a;logger[_0x33c789('0x8')](JSON[_0x33c789('0xd')](_0x297abd));});});},Migration[_0x597f25('0x16')][_0x597f25('0x18')]=function(_0x4767f4){const _0x247d64=_0x597f25,_0x825c68=this;this[_0x247d64('0x9')][_0x247d64('0x15')](function(){const _0x45caaf=_0x247d64;return _0x825c68['queryInterface']['sequelize'][_0x45caaf('0x18')](_0x4767f4)[_0x45caaf('0xa')](function(){const _0x13653b=_0x45caaf;logger[_0x13653b('0x8')](_0x13653b('0x5'),_0x4767f4);})[_0x45caaf('0x4')](function(_0x642b59){const _0x46253f=_0x45caaf;logger[_0x46253f('0x8')](JSON[_0x46253f('0xd')](_0x642b59));});});},Migration['prototype']['removeColumn']=function(_0x16f7dc,_0x23df60){const _0x1bf9cd=_0x597f25,_0x16b9ea=this;this[_0x1bf9cd('0x9')][_0x1bf9cd('0x15')](function(){const _0x5d0eb2=_0x1bf9cd;return _0x16b9ea[_0x5d0eb2('0x1')][_0x5d0eb2('0xe')](_0x16f7dc,_0x23df60)[_0x5d0eb2('0xa')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x23df60,_0x16f7dc);})[_0x5d0eb2('0x4')](function(_0x4de10c){const _0x50cb6b=_0x5d0eb2;logger[_0x50cb6b('0x8')](util['inspect'](_0x4de10c,{'showHidden':![],'depth':null}));});});},Migration[_0x597f25('0x16')][_0x597f25('0x7')]=function(_0x4c01e7,_0x5a42f7,_0xc70e3e){const _0x1fdbe5=_0x597f25,_0x4666e1=this;this[_0x1fdbe5('0x9')][_0x1fdbe5('0x15')](function(){const _0x4eefa4=_0x1fdbe5;return _0x4666e1[_0x4eefa4('0x1')][_0x4eefa4('0x7')](_0x4c01e7,_0x5a42f7,_0xc70e3e)[_0x4eefa4('0xa')](function(){const _0x42680f=_0x4eefa4;logger[_0x42680f('0x8')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5a42f7,_0xc70e3e,_0x4c01e7);})[_0x4eefa4('0x4')](function(_0x3d0f57){const _0x34efba=_0x4eefa4;logger['info'](util[_0x34efba('0x1a')](_0x3d0f57,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x597f25('0x2')]=function(_0x55e7f2){const _0x2a9816=_0x597f25;this[_0x2a9816('0x9')][_0x2a9816('0x15')](function(){return _0x55e7f2();});},module['exports']={'up':function(_0x2547fe){return new Promise(function(_0x168740){const _0x574247=a984_0x3de6,_0x5ed1a1=new Migration(_0x2547fe);_0x5ed1a1[_0x574247('0x2')](_0x168740);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.93.js b/server/migrations/2.3.93.js index 68835cf..b977485 100644 --- a/server/migrations/2.3.93.js +++ b/server/migrations/2.3.93.js @@ -1 +1 @@ -const a985_0x208f=['enqueue','inspect','tail','addIndex\x20%s\x20%s\x20%s','stringify','Changed\x20column\x20%s\x20in\x20table\x20%s','final','addIndex','Removed\x20column\x20%s\x20from\x20%s','migration','then','../config/logger','query','info','dropTable','exports','util','removeColumn','prototype','catch','sequence','addColumn','removeIndex','changeColumn','renameColumn','query\x20%s','Added\x20column\x20%s\x20to\x20%s','queryInterface','removeIndex\x20%s\x20%s'];(function(_0x1db62b,_0x208f6f){const _0x3c69a1=function(_0x57a997){while(--_0x57a997){_0x1db62b['push'](_0x1db62b['shift']());}};_0x3c69a1(++_0x208f6f);}(a985_0x208f,0x176));const a985_0x3c69=function(_0x1db62b,_0x208f6f){_0x1db62b=_0x1db62b-0x0;let _0x3c69a1=a985_0x208f[_0x1db62b];return _0x3c69a1;};const _0x56aae4=a985_0x3c69;'use strict';const util=require(_0x56aae4('0x13')),logger=require(_0x56aae4('0xe'))(_0x56aae4('0xc')),Sequence=function(){};Sequence['prototype'][_0x56aae4('0x3')]=function(_0x57a997){const _0x2c11a3=_0x56aae4;this[_0x2c11a3('0x5')]=this['tail']?this[_0x2c11a3('0x5')]['finally'](_0x57a997):_0x57a997();};const Migration=function(_0x41f062){const _0x33ea84=_0x56aae4;this[_0x33ea84('0x1')]=_0x41f062,this['sequence']=new Sequence();};Migration[_0x56aae4('0x15')][_0x56aae4('0x1a')]=function(_0x3e0f98,_0x221408,_0x4e76df){const _0x4dc3af=_0x56aae4,_0x51d2b7=this;this[_0x4dc3af('0x17')][_0x4dc3af('0x3')](function(){const _0x371e9f=_0x4dc3af;return _0x51d2b7[_0x371e9f('0x1')][_0x371e9f('0x1a')](_0x3e0f98,_0x221408,_0x4e76df)[_0x371e9f('0xd')](function(){const _0x1e955d=_0x371e9f;logger[_0x1e955d('0x10')](_0x1e955d('0x8'),_0x221408,_0x3e0f98);})[_0x371e9f('0x16')](function(_0x4af1d4){const _0xab0992=_0x371e9f;logger[_0xab0992('0x10')](JSON[_0xab0992('0x7')](_0x4af1d4));});});},Migration[_0x56aae4('0x15')][_0x56aae4('0x18')]=function(_0x1faa0e,_0x5a2edf,_0x384de3){const _0x538639=_0x56aae4,_0x5ef3ba=this;this[_0x538639('0x17')][_0x538639('0x3')](function(){const _0x585395=_0x538639;return _0x5ef3ba[_0x585395('0x1')][_0x585395('0x18')](_0x1faa0e,_0x5a2edf,_0x384de3)['then'](function(){const _0x317665=_0x585395;logger[_0x317665('0x10')](_0x317665('0x0'),_0x5a2edf,_0x1faa0e);})[_0x585395('0x16')](function(_0x5e487c){const _0x58b54b=_0x585395;logger[_0x58b54b('0x10')](JSON[_0x58b54b('0x7')](_0x5e487c));});});},Migration[_0x56aae4('0x15')][_0x56aae4('0x11')]=function(_0x257560){const _0x9ac4c5=_0x56aae4,_0x483af5=this;this[_0x9ac4c5('0x17')][_0x9ac4c5('0x3')](function(){const _0x403919=_0x9ac4c5;return _0x483af5[_0x403919('0x1')][_0x403919('0x11')](_0x257560,{'force':!![]})[_0x403919('0xd')](function(){logger['info']('table\x20dropped\x20%s',_0x257560);})[_0x403919('0x16')](function(_0x5a7f1a){const _0x584d96=_0x403919;logger[_0x584d96('0x10')](JSON[_0x584d96('0x7')](_0x5a7f1a));});});},Migration[_0x56aae4('0x15')][_0x56aae4('0xa')]=function(_0x21d5c6,_0x402c56,_0x347c82){const _0x10858c=_0x56aae4,_0x468ac9=this;this['sequence'][_0x10858c('0x3')](function(){const _0x2464bb=_0x10858c;return _0x468ac9[_0x2464bb('0x1')][_0x2464bb('0xa')](_0x21d5c6,_0x402c56,{'indexName':_0x347c82})[_0x2464bb('0xd')](function(){const _0x2656b9=_0x2464bb;logger['info'](_0x2656b9('0x6'),_0x21d5c6,_0x402c56['join'](','),_0x347c82);})[_0x2464bb('0x16')](function(_0x1dcd77){const _0x877070=_0x2464bb;logger[_0x877070('0x10')](JSON[_0x877070('0x7')](_0x1dcd77));});});},Migration[_0x56aae4('0x15')]['removeIndex']=function(_0x44831c,_0x32bf18){const _0x421fcd=this;this['sequence']['enqueue'](function(){const _0x27edef=a985_0x3c69;return _0x421fcd[_0x27edef('0x1')][_0x27edef('0x19')](_0x44831c,_0x32bf18)[_0x27edef('0xd')](function(){const _0x516f22=_0x27edef;logger[_0x516f22('0x10')](_0x516f22('0x2'),_0x44831c,_0x32bf18);})[_0x27edef('0x16')](function(_0x594ab5){const _0x2b6214=_0x27edef;logger[_0x2b6214('0x10')](JSON[_0x2b6214('0x7')](_0x594ab5));});});},Migration['prototype'][_0x56aae4('0xf')]=function(_0x34eea2){const _0x474497=_0x56aae4,_0xbfa5fd=this;this[_0x474497('0x17')][_0x474497('0x3')](function(){const _0x1540f9=_0x474497;return _0xbfa5fd[_0x1540f9('0x1')]['sequelize'][_0x1540f9('0xf')](_0x34eea2)[_0x1540f9('0xd')](function(){const _0x11a431=_0x1540f9;logger[_0x11a431('0x10')](_0x11a431('0x1c'),_0x34eea2);})[_0x1540f9('0x16')](function(_0x226818){const _0x208df7=_0x1540f9;logger[_0x208df7('0x10')](JSON[_0x208df7('0x7')](_0x226818));});});},Migration[_0x56aae4('0x15')][_0x56aae4('0x14')]=function(_0xf476d7,_0x29bf9f){const _0x165db2=this;this['sequence']['enqueue'](function(){const _0x5da82e=a985_0x3c69;return _0x165db2[_0x5da82e('0x1')][_0x5da82e('0x14')](_0xf476d7,_0x29bf9f)['then'](function(){const _0x1f8ba3=_0x5da82e;logger[_0x1f8ba3('0x10')](_0x1f8ba3('0xb'),_0x29bf9f,_0xf476d7);})[_0x5da82e('0x16')](function(_0x35bcd3){const _0x15077c=_0x5da82e;logger[_0x15077c('0x10')](util[_0x15077c('0x4')](_0x35bcd3,{'showHidden':![],'depth':null}));});});},Migration[_0x56aae4('0x15')][_0x56aae4('0x1b')]=function(_0x514ce2,_0x42e65b,_0x579c0e){const _0x5e38c2=_0x56aae4,_0xc9f049=this;this['sequence'][_0x5e38c2('0x3')](function(){const _0xd8f4c1=_0x5e38c2;return _0xc9f049['queryInterface'][_0xd8f4c1('0x1b')](_0x514ce2,_0x42e65b,_0x579c0e)['then'](function(){const _0x165846=_0xd8f4c1;logger[_0x165846('0x10')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x42e65b,_0x579c0e,_0x514ce2);})['catch'](function(_0x29ed28){const _0xe1f75c=_0xd8f4c1;logger[_0xe1f75c('0x10')](util[_0xe1f75c('0x4')](_0x29ed28,{'showHidden':![],'depth':null}));});});},Migration[_0x56aae4('0x15')][_0x56aae4('0x9')]=function(_0xd8fcb){const _0x5124f4=_0x56aae4;this[_0x5124f4('0x17')]['enqueue'](function(){return _0xd8fcb();});},module[_0x56aae4('0x12')]={'up':function(_0x145db0){return new Promise(function(_0x25263d){const _0x594f1b=new Migration(_0x145db0);_0x594f1b['final'](_0x25263d);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.94.js b/server/migrations/2.3.94.js index e8f0ba6..e115a1e 100644 --- a/server/migrations/2.3.94.js +++ b/server/migrations/2.3.94.js @@ -1 +1 @@ -const a986_0x5979=['catch','util','dropTable','inspect','queryInterface','enqueue','addIndex','sequelize','then','stringify','changeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','Added\x20column\x20%s\x20to\x20%s','join','renameColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','prototype','Removed\x20column\x20%s\x20from\x20%s','addColumn','info','removeIndex\x20%s\x20%s','removeColumn','final','query','finally','removeIndex','tail','migration','query\x20%s','sequence','exports','addIndex\x20%s\x20%s\x20%s'];(function(_0x180918,_0x5979a9){const _0x2c3595=function(_0x2d729b){while(--_0x2d729b){_0x180918['push'](_0x180918['shift']());}};_0x2c3595(++_0x5979a9);}(a986_0x5979,0x162));const a986_0x2c35=function(_0x180918,_0x5979a9){_0x180918=_0x180918-0x0;let _0x2c3595=a986_0x5979[_0x180918];return _0x2c3595;};const _0x2dd0c1=a986_0x2c35;'use strict';const util=require(_0x2dd0c1('0x1f')),logger=require('../config/logger')(_0x2dd0c1('0x19')),Sequence=function(){};Sequence[_0x2dd0c1('0xe')]['enqueue']=function(_0x2d729b){const _0x44ce31=_0x2dd0c1;this[_0x44ce31('0x18')]=this[_0x44ce31('0x18')]?this[_0x44ce31('0x18')][_0x44ce31('0x16')](_0x2d729b):_0x2d729b();};const Migration=function(_0x5eb757){const _0x341728=_0x2dd0c1;this[_0x341728('0x2')]=_0x5eb757,this['sequence']=new Sequence();};Migration[_0x2dd0c1('0xe')][_0x2dd0c1('0x8')]=function(_0x3a8fcd,_0x2d2426,_0x5b5c35){const _0x156dda=_0x2dd0c1,_0x582617=this;this[_0x156dda('0x1b')]['enqueue'](function(){const _0x1a5072=_0x156dda;return _0x582617['queryInterface'][_0x1a5072('0x8')](_0x3a8fcd,_0x2d2426,_0x5b5c35)['then'](function(){const _0x319c2f=_0x1a5072;logger['info'](_0x319c2f('0x9'),_0x2d2426,_0x3a8fcd);})[_0x1a5072('0x1e')](function(_0xac7926){const _0x5d522d=_0x1a5072;logger[_0x5d522d('0x11')](JSON[_0x5d522d('0x7')](_0xac7926));});});},Migration[_0x2dd0c1('0xe')]['addColumn']=function(_0x19bdc2,_0x3e5b78,_0x2f202b){const _0x22f729=_0x2dd0c1,_0x24d7f3=this;this['sequence'][_0x22f729('0x3')](function(){const _0x2cb519=_0x22f729;return _0x24d7f3[_0x2cb519('0x2')][_0x2cb519('0x10')](_0x19bdc2,_0x3e5b78,_0x2f202b)[_0x2cb519('0x6')](function(){const _0x1f10d1=_0x2cb519;logger['info'](_0x1f10d1('0xa'),_0x3e5b78,_0x19bdc2);})[_0x2cb519('0x1e')](function(_0x4a3bc1){const _0x5b3e23=_0x2cb519;logger[_0x5b3e23('0x11')](JSON[_0x5b3e23('0x7')](_0x4a3bc1));});});},Migration[_0x2dd0c1('0xe')][_0x2dd0c1('0x0')]=function(_0x22c261){const _0x3063da=_0x2dd0c1,_0x11b152=this;this['sequence'][_0x3063da('0x3')](function(){const _0x5aa0da=_0x3063da;return _0x11b152['queryInterface'][_0x5aa0da('0x0')](_0x22c261,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x22c261);})[_0x5aa0da('0x1e')](function(_0x5ad0ab){const _0xc73a41=_0x5aa0da;logger[_0xc73a41('0x11')](JSON[_0xc73a41('0x7')](_0x5ad0ab));});});},Migration[_0x2dd0c1('0xe')][_0x2dd0c1('0x4')]=function(_0xcfecc2,_0x4f12d5,_0x2ae0b3){const _0x35bafd=_0x2dd0c1,_0x439b49=this;this[_0x35bafd('0x1b')]['enqueue'](function(){const _0x34a237=_0x35bafd;return _0x439b49['queryInterface'][_0x34a237('0x4')](_0xcfecc2,_0x4f12d5,{'indexName':_0x2ae0b3})['then'](function(){const _0x3bad5d=_0x34a237;logger[_0x3bad5d('0x11')](_0x3bad5d('0x1d'),_0xcfecc2,_0x4f12d5[_0x3bad5d('0xb')](','),_0x2ae0b3);})[_0x34a237('0x1e')](function(_0x420540){const _0x571bea=_0x34a237;logger[_0x571bea('0x11')](JSON[_0x571bea('0x7')](_0x420540));});});},Migration[_0x2dd0c1('0xe')]['removeIndex']=function(_0x1edfc8,_0x1e2cab){const _0x58d8c4=_0x2dd0c1,_0x7de6f2=this;this[_0x58d8c4('0x1b')][_0x58d8c4('0x3')](function(){const _0x4b256f=_0x58d8c4;return _0x7de6f2[_0x4b256f('0x2')][_0x4b256f('0x17')](_0x1edfc8,_0x1e2cab)['then'](function(){const _0x320e9b=_0x4b256f;logger[_0x320e9b('0x11')](_0x320e9b('0x12'),_0x1edfc8,_0x1e2cab);})[_0x4b256f('0x1e')](function(_0x2eceb0){const _0x256a09=_0x4b256f;logger[_0x256a09('0x11')](JSON[_0x256a09('0x7')](_0x2eceb0));});});},Migration[_0x2dd0c1('0xe')][_0x2dd0c1('0x15')]=function(_0x207696){const _0x457bfb=_0x2dd0c1,_0x2abb85=this;this[_0x457bfb('0x1b')]['enqueue'](function(){const _0x3c042d=_0x457bfb;return _0x2abb85[_0x3c042d('0x2')][_0x3c042d('0x5')][_0x3c042d('0x15')](_0x207696)[_0x3c042d('0x6')](function(){const _0x4ae7b8=_0x3c042d;logger[_0x4ae7b8('0x11')](_0x4ae7b8('0x1a'),_0x207696);})[_0x3c042d('0x1e')](function(_0x55b993){const _0x1b8122=_0x3c042d;logger[_0x1b8122('0x11')](JSON[_0x1b8122('0x7')](_0x55b993));});});},Migration['prototype'][_0x2dd0c1('0x13')]=function(_0x466dc4,_0x4f3064){const _0xe51f13=_0x2dd0c1,_0x3956e6=this;this[_0xe51f13('0x1b')][_0xe51f13('0x3')](function(){const _0x34ec65=_0xe51f13;return _0x3956e6[_0x34ec65('0x2')][_0x34ec65('0x13')](_0x466dc4,_0x4f3064)[_0x34ec65('0x6')](function(){const _0x524879=_0x34ec65;logger['info'](_0x524879('0xf'),_0x4f3064,_0x466dc4);})[_0x34ec65('0x1e')](function(_0x5c625f){const _0x42545c=_0x34ec65;logger[_0x42545c('0x11')](util[_0x42545c('0x1')](_0x5c625f,{'showHidden':![],'depth':null}));});});},Migration[_0x2dd0c1('0xe')][_0x2dd0c1('0xc')]=function(_0x4ed29f,_0x363fb9,_0x310e14){const _0x139534=_0x2dd0c1,_0xec24a0=this;this[_0x139534('0x1b')][_0x139534('0x3')](function(){const _0x1e3bea=_0x139534;return _0xec24a0[_0x1e3bea('0x2')][_0x1e3bea('0xc')](_0x4ed29f,_0x363fb9,_0x310e14)['then'](function(){const _0x5607a7=_0x1e3bea;logger['info'](_0x5607a7('0xd'),_0x363fb9,_0x310e14,_0x4ed29f);})['catch'](function(_0x2dc091){logger['info'](util['inspect'](_0x2dc091,{'showHidden':![],'depth':null}));});});},Migration[_0x2dd0c1('0xe')][_0x2dd0c1('0x14')]=function(_0xf24d3d){const _0x5aa247=_0x2dd0c1;this[_0x5aa247('0x1b')][_0x5aa247('0x3')](function(){return _0xf24d3d();});},module[_0x2dd0c1('0x1c')]={'up':function(_0x36c224){return new Promise(function(_0x1617d0){const _0x131f4b=a986_0x2c35,_0x192833=new Migration(_0x36c224);_0x192833[_0x131f4b('0x14')](_0x1617d0);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.95.js b/server/migrations/2.3.95.js index 6cb4713..75cdfdd 100644 --- a/server/migrations/2.3.95.js +++ b/server/migrations/2.3.95.js @@ -1 +1 @@ -const a987_0x34b5=['catch','dropTable','util','renameColumn','tail','sequelize','prototype','queryInterface','migration','stringify','Added\x20column\x20%s\x20to\x20%s','then','Removed\x20column\x20%s\x20from\x20%s','enqueue','finally','removeColumn','changeColumn','info','query','sequence','addIndex','join','Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','addColumn','exports','inspect','table\x20dropped\x20%s','removeIndex'];(function(_0x174d05,_0x34b5eb){const _0x4a4b1b=function(_0x29f67){while(--_0x29f67){_0x174d05['push'](_0x174d05['shift']());}};_0x4a4b1b(++_0x34b5eb);}(a987_0x34b5,0x121));const a987_0x4a4b=function(_0x174d05,_0x34b5eb){_0x174d05=_0x174d05-0x0;let _0x4a4b1b=a987_0x34b5[_0x174d05];return _0x4a4b1b;};const _0x457cac=a987_0x4a4b;'use strict';const util=require(_0x457cac('0x3')),logger=require(_0x457cac('0x18'))(_0x457cac('0x9')),Sequence=function(){};Sequence['prototype'][_0x457cac('0xe')]=function(_0x29f67){const _0x507b99=_0x457cac;this[_0x507b99('0x5')]=this['tail']?this['tail'][_0x507b99('0xf')](_0x29f67):_0x29f67();};const Migration=function(_0x21ab72){const _0x4ffb76=_0x457cac;this[_0x4ffb76('0x8')]=_0x21ab72,this[_0x4ffb76('0x14')]=new Sequence();};Migration[_0x457cac('0x7')]['changeColumn']=function(_0x123cdf,_0x5850d5,_0x1e159d){const _0x5bcb31=_0x457cac,_0x1b5272=this;this[_0x5bcb31('0x14')]['enqueue'](function(){const _0x2f869d=_0x5bcb31;return _0x1b5272[_0x2f869d('0x8')][_0x2f869d('0x11')](_0x123cdf,_0x5850d5,_0x1e159d)[_0x2f869d('0xc')](function(){const _0x54bd5a=_0x2f869d;logger[_0x54bd5a('0x12')](_0x54bd5a('0x17'),_0x5850d5,_0x123cdf);})['catch'](function(_0x5e4056){const _0x417aef=_0x2f869d;logger[_0x417aef('0x12')](JSON[_0x417aef('0xa')](_0x5e4056));});});},Migration['prototype'][_0x457cac('0x19')]=function(_0x5eee7a,_0x3f62d4,_0x3d3c60){const _0x4bdf6c=_0x457cac,_0x42dfc4=this;this['sequence'][_0x4bdf6c('0xe')](function(){const _0x5b9e27=_0x4bdf6c;return _0x42dfc4[_0x5b9e27('0x8')][_0x5b9e27('0x19')](_0x5eee7a,_0x3f62d4,_0x3d3c60)[_0x5b9e27('0xc')](function(){const _0x1eb2ce=_0x5b9e27;logger[_0x1eb2ce('0x12')](_0x1eb2ce('0xb'),_0x3f62d4,_0x5eee7a);})[_0x5b9e27('0x1')](function(_0x51d779){const _0x2d91a2=_0x5b9e27;logger[_0x2d91a2('0x12')](JSON['stringify'](_0x51d779));});});},Migration[_0x457cac('0x7')][_0x457cac('0x2')]=function(_0x2c3c34){const _0x236b1d=_0x457cac,_0x162654=this;this['sequence'][_0x236b1d('0xe')](function(){const _0x3ee94a=_0x236b1d;return _0x162654[_0x3ee94a('0x8')]['dropTable'](_0x2c3c34,{'force':!![]})[_0x3ee94a('0xc')](function(){const _0x6b6ac5=_0x3ee94a;logger['info'](_0x6b6ac5('0x1c'),_0x2c3c34);})[_0x3ee94a('0x1')](function(_0x502132){const _0x133c11=_0x3ee94a;logger[_0x133c11('0x12')](JSON[_0x133c11('0xa')](_0x502132));});});},Migration[_0x457cac('0x7')][_0x457cac('0x15')]=function(_0xc88f87,_0x294c0b,_0x5657a2){const _0x43d60b=_0x457cac,_0x52fd92=this;this['sequence'][_0x43d60b('0xe')](function(){const _0x1c698c=_0x43d60b;return _0x52fd92['queryInterface'][_0x1c698c('0x15')](_0xc88f87,_0x294c0b,{'indexName':_0x5657a2})[_0x1c698c('0xc')](function(){const _0x205c6c=_0x1c698c;logger[_0x205c6c('0x12')]('addIndex\x20%s\x20%s\x20%s',_0xc88f87,_0x294c0b[_0x205c6c('0x16')](','),_0x5657a2);})[_0x1c698c('0x1')](function(_0x37f35a){const _0x3bd0c7=_0x1c698c;logger[_0x3bd0c7('0x12')](JSON[_0x3bd0c7('0xa')](_0x37f35a));});});},Migration[_0x457cac('0x7')]['removeIndex']=function(_0x2abd0e,_0x54961c){const _0x54c814=_0x457cac,_0x5e490c=this;this[_0x54c814('0x14')][_0x54c814('0xe')](function(){const _0x49fadc=_0x54c814;return _0x5e490c['queryInterface'][_0x49fadc('0x0')](_0x2abd0e,_0x54961c)[_0x49fadc('0xc')](function(){const _0x3d5217=_0x49fadc;logger[_0x3d5217('0x12')]('removeIndex\x20%s\x20%s',_0x2abd0e,_0x54961c);})[_0x49fadc('0x1')](function(_0x4ba151){const _0x4ac533=_0x49fadc;logger['info'](JSON[_0x4ac533('0xa')](_0x4ba151));});});},Migration[_0x457cac('0x7')][_0x457cac('0x13')]=function(_0x351f42){const _0x250dc0=_0x457cac,_0x4ab2e3=this;this['sequence'][_0x250dc0('0xe')](function(){const _0x455fca=_0x250dc0;return _0x4ab2e3[_0x455fca('0x8')][_0x455fca('0x6')][_0x455fca('0x13')](_0x351f42)[_0x455fca('0xc')](function(){logger['info']('query\x20%s',_0x351f42);})['catch'](function(_0x135530){const _0x48bf79=_0x455fca;logger[_0x48bf79('0x12')](JSON[_0x48bf79('0xa')](_0x135530));});});},Migration['prototype']['removeColumn']=function(_0x3535e2,_0x6da8){const _0x294edd=_0x457cac,_0x1e1286=this;this[_0x294edd('0x14')][_0x294edd('0xe')](function(){const _0x2a511c=_0x294edd;return _0x1e1286['queryInterface'][_0x2a511c('0x10')](_0x3535e2,_0x6da8)['then'](function(){const _0x290baa=_0x2a511c;logger[_0x290baa('0x12')](_0x290baa('0xd'),_0x6da8,_0x3535e2);})[_0x2a511c('0x1')](function(_0x1d11b7){const _0x5d107a=_0x2a511c;logger[_0x5d107a('0x12')](util['inspect'](_0x1d11b7,{'showHidden':![],'depth':null}));});});},Migration[_0x457cac('0x7')][_0x457cac('0x4')]=function(_0x4addcd,_0x1a881a,_0x5a8d06){const _0x15cc31=_0x457cac,_0x17a7c1=this;this['sequence'][_0x15cc31('0xe')](function(){const _0x523ca1=_0x15cc31;return _0x17a7c1[_0x523ca1('0x8')][_0x523ca1('0x4')](_0x4addcd,_0x1a881a,_0x5a8d06)['then'](function(){const _0x5fe617=_0x523ca1;logger[_0x5fe617('0x12')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x1a881a,_0x5a8d06,_0x4addcd);})[_0x523ca1('0x1')](function(_0x2f2cc0){const _0x31a594=_0x523ca1;logger[_0x31a594('0x12')](util[_0x31a594('0x1b')](_0x2f2cc0,{'showHidden':![],'depth':null}));});});},Migration[_0x457cac('0x7')]['final']=function(_0x4b370d){const _0x1827ec=_0x457cac;this[_0x1827ec('0x14')][_0x1827ec('0xe')](function(){return _0x4b370d();});},module[_0x457cac('0x1a')]={'up':function(_0x5d0453){return new Promise(function(_0x33795b){const _0x43c971=new Migration(_0x5d0453);_0x43c971['final'](_0x33795b);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.96.js b/server/migrations/2.3.96.js index c4af420..cec8dc0 100644 --- a/server/migrations/2.3.96.js +++ b/server/migrations/2.3.96.js @@ -1 +1 @@ -const a988_0x2ec8=['removeColumn','removeIndex','util','../config/logger','dropTable','info','query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','finally','defaultScreenRecordingPath','Added\x20column\x20%s\x20to\x20%s','table\x20dropped\x20%s','Removed\x20column\x20%s\x20from\x20%s','query\x20%s','join','inspect','settings','stringify','renameColumn','removeIndex\x20%s\x20%s','addIndex','STRING','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','then','addIndex\x20%s\x20%s\x20%s','migration','enqueue','tail','final','changeColumn','addColumn','sequelize','sequence','queryInterface','prototype'];(function(_0x4e35a3,_0x2ec835){const _0x109b3e=function(_0x4038a6){while(--_0x4038a6){_0x4e35a3['push'](_0x4e35a3['shift']());}};_0x109b3e(++_0x2ec835);}(a988_0x2ec8,0xb5));const a988_0x109b=function(_0x4e35a3,_0x2ec835){_0x4e35a3=_0x4e35a3-0x0;let _0x109b3e=a988_0x2ec8[_0x4e35a3];return _0x109b3e;};const _0x332e88=a988_0x109b;'use strict';const util=require(_0x332e88('0x1')),logger=require(_0x332e88('0x2'))(_0x332e88('0x19')),Sequence=function(){};Sequence['prototype'][_0x332e88('0x1a')]=function(_0x4038a6){const _0x5bbbef=_0x332e88;this['tail']=this['tail']?this[_0x5bbbef('0x1b')][_0x5bbbef('0x7')](_0x4038a6):_0x4038a6();};const Migration=function(_0x291ee0){const _0x2a4cf1=_0x332e88;this[_0x2a4cf1('0x21')]=_0x291ee0,this[_0x2a4cf1('0x20')]=new Sequence();};Migration[_0x332e88('0x22')][_0x332e88('0x1d')]=function(_0x55f7f7,_0x392981,_0x17b6f9){const _0x5a0650=_0x332e88,_0x1f1297=this;this[_0x5a0650('0x20')][_0x5a0650('0x1a')](function(){const _0x3c80a3=_0x5a0650;return _0x1f1297[_0x3c80a3('0x21')][_0x3c80a3('0x1d')](_0x55f7f7,_0x392981,_0x17b6f9)[_0x3c80a3('0x17')](function(){const _0x4c0118=_0x3c80a3;logger[_0x4c0118('0x4')](_0x4c0118('0x16'),_0x392981,_0x55f7f7);})[_0x3c80a3('0x15')](function(_0x504d2a){const _0x293132=_0x3c80a3;logger['info'](JSON[_0x293132('0x10')](_0x504d2a));});});},Migration[_0x332e88('0x22')]['addColumn']=function(_0x36399f,_0x1e0105,_0x2929b1){const _0x3fb56e=_0x332e88,_0xc41f8=this;this['sequence'][_0x3fb56e('0x1a')](function(){const _0x5f2c29=_0x3fb56e;return _0xc41f8[_0x5f2c29('0x21')][_0x5f2c29('0x1e')](_0x36399f,_0x1e0105,_0x2929b1)[_0x5f2c29('0x17')](function(){const _0x29a3eb=_0x5f2c29;logger[_0x29a3eb('0x4')](_0x29a3eb('0x9'),_0x1e0105,_0x36399f);})[_0x5f2c29('0x15')](function(_0x446ef4){logger['info'](JSON['stringify'](_0x446ef4));});});},Migration[_0x332e88('0x22')][_0x332e88('0x3')]=function(_0x3c5183){const _0x5db804=this;this['sequence']['enqueue'](function(){const _0xb03e77=a988_0x109b;return _0x5db804['queryInterface'][_0xb03e77('0x3')](_0x3c5183,{'force':!![]})[_0xb03e77('0x17')](function(){const _0x24a2ef=_0xb03e77;logger['info'](_0x24a2ef('0xa'),_0x3c5183);})[_0xb03e77('0x15')](function(_0x2d8e70){logger['info'](JSON['stringify'](_0x2d8e70));});});},Migration[_0x332e88('0x22')][_0x332e88('0x13')]=function(_0x43e3e2,_0x16b4a7,_0x52f045){const _0x8777bd=_0x332e88,_0x3e9338=this;this[_0x8777bd('0x20')][_0x8777bd('0x1a')](function(){const _0x498465=_0x8777bd;return _0x3e9338[_0x498465('0x21')]['addIndex'](_0x43e3e2,_0x16b4a7,{'indexName':_0x52f045})[_0x498465('0x17')](function(){const _0x1b8ff0=_0x498465;logger['info'](_0x1b8ff0('0x18'),_0x43e3e2,_0x16b4a7[_0x1b8ff0('0xd')](','),_0x52f045);})[_0x498465('0x15')](function(_0x2f4042){const _0xe0a8a1=_0x498465;logger[_0xe0a8a1('0x4')](JSON['stringify'](_0x2f4042));});});},Migration['prototype'][_0x332e88('0x0')]=function(_0x2340d7,_0xe87024){const _0xd3d5b9=_0x332e88,_0x4bbb4f=this;this[_0xd3d5b9('0x20')][_0xd3d5b9('0x1a')](function(){const _0xb5f583=_0xd3d5b9;return _0x4bbb4f[_0xb5f583('0x21')][_0xb5f583('0x0')](_0x2340d7,_0xe87024)[_0xb5f583('0x17')](function(){const _0x3a28b8=_0xb5f583;logger[_0x3a28b8('0x4')](_0x3a28b8('0x12'),_0x2340d7,_0xe87024);})[_0xb5f583('0x15')](function(_0x1657dd){logger['info'](JSON['stringify'](_0x1657dd));});});},Migration[_0x332e88('0x22')][_0x332e88('0x5')]=function(_0x5a3bf3){const _0x2e8cb4=_0x332e88,_0x111f1f=this;this['sequence'][_0x2e8cb4('0x1a')](function(){const _0x47e307=_0x2e8cb4;return _0x111f1f[_0x47e307('0x21')][_0x47e307('0x1f')][_0x47e307('0x5')](_0x5a3bf3)['then'](function(){const _0xe87103=_0x47e307;logger[_0xe87103('0x4')](_0xe87103('0xc'),_0x5a3bf3);})['catch'](function(_0x149f69){const _0x4c6e8f=_0x47e307;logger[_0x4c6e8f('0x4')](JSON[_0x4c6e8f('0x10')](_0x149f69));});});},Migration[_0x332e88('0x22')][_0x332e88('0x23')]=function(_0x4c7573,_0x290c69){const _0xae9249=this;this['sequence']['enqueue'](function(){const _0x2b1e6d=a988_0x109b;return _0xae9249['queryInterface'][_0x2b1e6d('0x23')](_0x4c7573,_0x290c69)['then'](function(){const _0x4154dd=_0x2b1e6d;logger['info'](_0x4154dd('0xb'),_0x290c69,_0x4c7573);})[_0x2b1e6d('0x15')](function(_0x12b476){const _0xb4b60b=_0x2b1e6d;logger[_0xb4b60b('0x4')](util[_0xb4b60b('0xe')](_0x12b476,{'showHidden':![],'depth':null}));});});},Migration[_0x332e88('0x22')][_0x332e88('0x11')]=function(_0x4c469e,_0x17ecdc,_0x3a55fd){const _0x478571=_0x332e88,_0x468b43=this;this[_0x478571('0x20')][_0x478571('0x1a')](function(){const _0x46765f=_0x478571;return _0x468b43[_0x46765f('0x21')][_0x46765f('0x11')](_0x4c469e,_0x17ecdc,_0x3a55fd)[_0x46765f('0x17')](function(){const _0xf13d31=_0x46765f;logger[_0xf13d31('0x4')](_0xf13d31('0x6'),_0x17ecdc,_0x3a55fd,_0x4c469e);})['catch'](function(_0x20dacc){const _0x4a1d9a=_0x46765f;logger[_0x4a1d9a('0x4')](util[_0x4a1d9a('0xe')](_0x20dacc,{'showHidden':![],'depth':null}));});});},Migration[_0x332e88('0x22')][_0x332e88('0x1c')]=function(_0x5aa62b){const _0x8d3cfb=_0x332e88;this['sequence'][_0x8d3cfb('0x1a')](function(){return _0x5aa62b();});},module['exports']={'up':function(_0xeabc79,_0x54c1eb){return new Promise(function(_0x4ad0d2){const _0x42113c=a988_0x109b,_0x2618ed=new Migration(_0xeabc79);_0x2618ed[_0x42113c('0x1e')](_0x42113c('0xf'),_0x42113c('0x8'),{'type':_0x54c1eb[_0x42113c('0x14')]}),_0x2618ed['final'](_0x4ad0d2);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.97.js b/server/migrations/2.3.97.js index a607916..62bd66e 100644 --- a/server/migrations/2.3.97.js +++ b/server/migrations/2.3.97.js @@ -1 +1 @@ -const a989_0x32fb=['query','Changed\x20column\x20%s\x20in\x20table\x20%s','Removed\x20column\x20%s\x20from\x20%s','removeColumn','renameColumn','dialPredictiveIntervalMinThreshold','catch','sequelize','prototype','sequence','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','migration','addIndex\x20%s\x20%s\x20%s','table\x20dropped\x20%s','enqueue','dropTable','addColumn','info','addIndex','voice_queues','finally','UNSIGNED','Added\x20column\x20%s\x20to\x20%s','queryInterface','then','INTEGER','stringify','ALTER\x20TABLE\x20migrations\x20DROP\x20PRIMARY\x20KEY','tail','query\x20%s','removeIndex','final','exports','../config/logger','util','dialPredictiveIntervalMaxThreshold','inspect','changeColumn','ALTER\x20TABLE\x20migrations\x20MODIFY\x20COLUMN\x20version\x20varchar(255)\x20NOT\x20NULL\x20UNIQUE','removeIndex\x20%s\x20%s','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20id\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT\x20PRIMARY\x20KEY\x20FIRST'];(function(_0x1fabbc,_0x32fb62){const _0x382956=function(_0x31469b){while(--_0x31469b){_0x1fabbc['push'](_0x1fabbc['shift']());}};_0x382956(++_0x32fb62);}(a989_0x32fb,0x77));const a989_0x3829=function(_0x1fabbc,_0x32fb62){_0x1fabbc=_0x1fabbc-0x0;let _0x382956=a989_0x32fb[_0x1fabbc];return _0x382956;};const _0xf48b51=a989_0x3829;'use strict';const util=require(_0xf48b51('0x26')),logger=require(_0xf48b51('0x25'))(_0xf48b51('0xf')),Sequence=function(){};Sequence[_0xf48b51('0xc')][_0xf48b51('0x12')]=function(_0x31469b){const _0x41adcc=_0xf48b51;this[_0x41adcc('0x20')]=this[_0x41adcc('0x20')]?this['tail'][_0x41adcc('0x18')](_0x31469b):_0x31469b();};const Migration=function(_0x2a8865){const _0x416d0d=_0xf48b51;this[_0x416d0d('0x1b')]=_0x2a8865,this['sequence']=new Sequence();};Migration[_0xf48b51('0xc')][_0xf48b51('0x0')]=function(_0x105ba8,_0x5aca2b,_0x48c3b0){const _0x5968ec=_0xf48b51,_0x5b006a=this;this[_0x5968ec('0xd')][_0x5968ec('0x12')](function(){const _0x419ac0=_0x5968ec;return _0x5b006a[_0x419ac0('0x1b')][_0x419ac0('0x0')](_0x105ba8,_0x5aca2b,_0x48c3b0)[_0x419ac0('0x1c')](function(){const _0x5b36d1=_0x419ac0;logger['info'](_0x5b36d1('0x5'),_0x5aca2b,_0x105ba8);})[_0x419ac0('0xa')](function(_0x5960cb){logger['info'](JSON['stringify'](_0x5960cb));});});},Migration[_0xf48b51('0xc')][_0xf48b51('0x14')]=function(_0x3c1839,_0xa7e903,_0x13d73b){const _0x17f386=_0xf48b51,_0x4ba662=this;this[_0x17f386('0xd')][_0x17f386('0x12')](function(){const _0x492fe7=_0x17f386;return _0x4ba662['queryInterface'][_0x492fe7('0x14')](_0x3c1839,_0xa7e903,_0x13d73b)[_0x492fe7('0x1c')](function(){const _0x415a80=_0x492fe7;logger[_0x415a80('0x15')](_0x415a80('0x1a'),_0xa7e903,_0x3c1839);})[_0x492fe7('0xa')](function(_0x46a8a2){const _0x414432=_0x492fe7;logger[_0x414432('0x15')](JSON[_0x414432('0x1e')](_0x46a8a2));});});},Migration[_0xf48b51('0xc')][_0xf48b51('0x13')]=function(_0x2e6ec3){const _0x57a8ab=_0xf48b51,_0x58697b=this;this[_0x57a8ab('0xd')][_0x57a8ab('0x12')](function(){const _0x59d139=_0x57a8ab;return _0x58697b[_0x59d139('0x1b')][_0x59d139('0x13')](_0x2e6ec3,{'force':!![]})[_0x59d139('0x1c')](function(){const _0x24f4c1=_0x59d139;logger[_0x24f4c1('0x15')](_0x24f4c1('0x11'),_0x2e6ec3);})['catch'](function(_0x24a03){const _0x25a952=_0x59d139;logger[_0x25a952('0x15')](JSON[_0x25a952('0x1e')](_0x24a03));});});},Migration[_0xf48b51('0xc')][_0xf48b51('0x16')]=function(_0x4964bf,_0x3c4678,_0x5085b6){const _0x310e50=_0xf48b51,_0x9f117b=this;this['sequence'][_0x310e50('0x12')](function(){const _0x313a3d=_0x310e50;return _0x9f117b[_0x313a3d('0x1b')][_0x313a3d('0x16')](_0x4964bf,_0x3c4678,{'indexName':_0x5085b6})['then'](function(){const _0x235d10=_0x313a3d;logger[_0x235d10('0x15')](_0x235d10('0x10'),_0x4964bf,_0x3c4678['join'](','),_0x5085b6);})[_0x313a3d('0xa')](function(_0x50c715){const _0x5602ce=_0x313a3d;logger[_0x5602ce('0x15')](JSON['stringify'](_0x50c715));});});},Migration[_0xf48b51('0xc')][_0xf48b51('0x22')]=function(_0x298f49,_0x23dfed){const _0x38c012=this;this['sequence']['enqueue'](function(){const _0x5486f1=a989_0x3829;return _0x38c012[_0x5486f1('0x1b')][_0x5486f1('0x22')](_0x298f49,_0x23dfed)['then'](function(){const _0x342f8d=_0x5486f1;logger[_0x342f8d('0x15')](_0x342f8d('0x2'),_0x298f49,_0x23dfed);})['catch'](function(_0x2e2be1){const _0x5ab134=_0x5486f1;logger[_0x5ab134('0x15')](JSON[_0x5ab134('0x1e')](_0x2e2be1));});});},Migration[_0xf48b51('0xc')][_0xf48b51('0x4')]=function(_0x2e4389){const _0x5ee232=_0xf48b51,_0x5c700d=this;this[_0x5ee232('0xd')][_0x5ee232('0x12')](function(){const _0x10fa88=_0x5ee232;return _0x5c700d['queryInterface'][_0x10fa88('0xb')][_0x10fa88('0x4')](_0x2e4389)[_0x10fa88('0x1c')](function(){const _0x3f277b=_0x10fa88;logger[_0x3f277b('0x15')](_0x3f277b('0x21'),_0x2e4389);})['catch'](function(_0x4cb190){const _0x1fa946=_0x10fa88;logger[_0x1fa946('0x15')](JSON['stringify'](_0x4cb190));});});},Migration[_0xf48b51('0xc')]['removeColumn']=function(_0x4ff07d,_0x87bea4){const _0x1a48d3=_0xf48b51,_0x4bf0b5=this;this[_0x1a48d3('0xd')][_0x1a48d3('0x12')](function(){const _0x5b2bf6=_0x1a48d3;return _0x4bf0b5[_0x5b2bf6('0x1b')][_0x5b2bf6('0x7')](_0x4ff07d,_0x87bea4)['then'](function(){const _0x30c2dc=_0x5b2bf6;logger['info'](_0x30c2dc('0x6'),_0x87bea4,_0x4ff07d);})[_0x5b2bf6('0xa')](function(_0x20c437){const _0x3c491e=_0x5b2bf6;logger['info'](util[_0x3c491e('0x28')](_0x20c437,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0xf48b51('0x8')]=function(_0x3d354c,_0x3c8b03,_0xce627e){const _0x44b996=_0xf48b51,_0x3c90b8=this;this[_0x44b996('0xd')][_0x44b996('0x12')](function(){const _0x5903f8=_0x44b996;return _0x3c90b8[_0x5903f8('0x1b')][_0x5903f8('0x8')](_0x3d354c,_0x3c8b03,_0xce627e)['then'](function(){const _0x46a5e0=_0x5903f8;logger[_0x46a5e0('0x15')](_0x46a5e0('0xe'),_0x3c8b03,_0xce627e,_0x3d354c);})[_0x5903f8('0xa')](function(_0x1b4ec3){const _0x50d733=_0x5903f8;logger[_0x50d733('0x15')](util[_0x50d733('0x28')](_0x1b4ec3,{'showHidden':![],'depth':null}));});});},Migration[_0xf48b51('0xc')][_0xf48b51('0x23')]=function(_0x22b7f0){const _0x32e6f0=_0xf48b51;this[_0x32e6f0('0xd')][_0x32e6f0('0x12')](function(){return _0x22b7f0();});},module[_0xf48b51('0x24')]={'up':function(_0x3e58de,_0x5a207a){return new Promise(function(_0xea2476){const _0x139252=a989_0x3829,_0x49839a=new Migration(_0x3e58de);_0x49839a[_0x139252('0x14')]('voice_queues',_0x139252('0x27'),{'type':_0x5a207a[_0x139252('0x1d')](0x3)[_0x139252('0x19')],'defaultValue':0x14}),_0x49839a[_0x139252('0x14')](_0x139252('0x17'),_0x139252('0x9'),{'type':_0x5a207a['INTEGER'](0x3)[_0x139252('0x19')],'defaultValue':0xa}),_0x49839a[_0x139252('0x4')](_0x139252('0x1f')),_0x49839a[_0x139252('0x4')](_0x139252('0x1')),_0x49839a[_0x139252('0x4')](_0x139252('0x3')),_0x49839a[_0x139252('0x4')]('ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20createdAt\x20datetime\x20NOT\x20NULL\x20DEFAULT\x20CURRENT_TIMESTAMP\x20AFTER\x20version'),_0x49839a[_0x139252('0x4')]('ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20updatedAt\x20datetime\x20NOT\x20NULL\x20DEFAULT\x20CURRENT_TIMESTAMP\x20AFTER\x20createdAt'),_0x49839a[_0x139252('0x23')](_0xea2476);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.98.js b/server/migrations/2.3.98.js index 6d2d279..0568a24 100644 --- a/server/migrations/2.3.98.js +++ b/server/migrations/2.3.98.js @@ -1 +1 @@ -const a990_0x12da=['exports','finally','removeColumn','migration','final','../config/logger','join','addColumn','prototype','sequelize','inspect','enqueue','stringify','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','queryInterface','addIndex','removeIndex\x20%s\x20%s','sequence','renameColumn','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','then','catch','removeIndex','info','query','addIndex\x20%s\x20%s\x20%s','Removed\x20column\x20%s\x20from\x20%s','query\x20%s'];(function(_0x23e04e,_0x12da90){const _0x4817f3=function(_0x5d6a2a){while(--_0x5d6a2a){_0x23e04e['push'](_0x23e04e['shift']());}};_0x4817f3(++_0x12da90);}(a990_0x12da,0xc9));const a990_0x4817=function(_0x23e04e,_0x12da90){_0x23e04e=_0x23e04e-0x0;let _0x4817f3=a990_0x12da[_0x23e04e];return _0x4817f3;};const _0x20086d=a990_0x4817;'use strict';const util=require('util'),logger=require(_0x20086d('0x15'))(_0x20086d('0x13')),Sequence=function(){};Sequence[_0x20086d('0x18')]['enqueue']=function(_0x5d6a2a){const _0x3d34b8=_0x20086d;this[_0x3d34b8('0x1d')]=this[_0x3d34b8('0x1d')]?this[_0x3d34b8('0x1d')][_0x3d34b8('0x11')](_0x5d6a2a):_0x5d6a2a();};const Migration=function(_0x59545f){const _0x327e20=_0x20086d;this[_0x327e20('0x0')]=_0x59545f,this['sequence']=new Sequence();};Migration[_0x20086d('0x18')][_0x20086d('0x5')]=function(_0x5acc08,_0xdd8704,_0x3e88f5){const _0x3a739f=_0x20086d,_0x2fe8e4=this;this['sequence'][_0x3a739f('0x1b')](function(){return _0x2fe8e4['queryInterface']['changeColumn'](_0x5acc08,_0xdd8704,_0x3e88f5)['then'](function(){const _0x23c896=a990_0x4817;logger[_0x23c896('0xb')](_0x23c896('0x1e'),_0xdd8704,_0x5acc08);})['catch'](function(_0x5a630f){const _0x3b4775=a990_0x4817;logger[_0x3b4775('0xb')](JSON[_0x3b4775('0x1c')](_0x5a630f));});});},Migration[_0x20086d('0x18')][_0x20086d('0x17')]=function(_0x25beb6,_0x5aa1ed,_0x4e00b3){const _0x24ab80=this;this['sequence']['enqueue'](function(){const _0x389c2b=a990_0x4817;return _0x24ab80[_0x389c2b('0x0')][_0x389c2b('0x17')](_0x25beb6,_0x5aa1ed,_0x4e00b3)[_0x389c2b('0x8')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x5aa1ed,_0x25beb6);})[_0x389c2b('0x9')](function(_0x5a40d8){const _0x48969a=_0x389c2b;logger[_0x48969a('0xb')](JSON[_0x48969a('0x1c')](_0x5a40d8));});});},Migration[_0x20086d('0x18')]['dropTable']=function(_0x251721){const _0x322ac=_0x20086d,_0x22d183=this;this[_0x322ac('0x3')][_0x322ac('0x1b')](function(){const _0x5217ca=_0x322ac;return _0x22d183['queryInterface'][_0x5217ca('0x7')](_0x251721,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x251721);})['catch'](function(_0x3fb82f){const _0x341fa4=_0x5217ca;logger[_0x341fa4('0xb')](JSON[_0x341fa4('0x1c')](_0x3fb82f));});});},Migration[_0x20086d('0x18')]['addIndex']=function(_0x2024a2,_0x3adbbe,_0x1f1096){const _0x17ef1a=_0x20086d,_0x5eb028=this;this[_0x17ef1a('0x3')][_0x17ef1a('0x1b')](function(){const _0x352d53=_0x17ef1a;return _0x5eb028[_0x352d53('0x0')][_0x352d53('0x1')](_0x2024a2,_0x3adbbe,{'indexName':_0x1f1096})[_0x352d53('0x8')](function(){const _0x3f6a9a=_0x352d53;logger[_0x3f6a9a('0xb')](_0x3f6a9a('0xd'),_0x2024a2,_0x3adbbe[_0x3f6a9a('0x16')](','),_0x1f1096);})[_0x352d53('0x9')](function(_0x108b23){const _0x50b15e=_0x352d53;logger[_0x50b15e('0xb')](JSON[_0x50b15e('0x1c')](_0x108b23));});});},Migration[_0x20086d('0x18')]['removeIndex']=function(_0x1df446,_0x4d1707){const _0x40e7ef=_0x20086d,_0x1df411=this;this[_0x40e7ef('0x3')][_0x40e7ef('0x1b')](function(){const _0x1414e8=_0x40e7ef;return _0x1df411['queryInterface'][_0x1414e8('0xa')](_0x1df446,_0x4d1707)[_0x1414e8('0x8')](function(){const _0x2bf345=_0x1414e8;logger[_0x2bf345('0xb')](_0x2bf345('0x2'),_0x1df446,_0x4d1707);})[_0x1414e8('0x9')](function(_0x3a8aff){const _0x7ccbc6=_0x1414e8;logger[_0x7ccbc6('0xb')](JSON[_0x7ccbc6('0x1c')](_0x3a8aff));});});},Migration[_0x20086d('0x18')]['query']=function(_0x31954b){const _0x5779f0=_0x20086d,_0x11439b=this;this['sequence'][_0x5779f0('0x1b')](function(){const _0x5427e8=_0x5779f0;return _0x11439b[_0x5427e8('0x0')][_0x5427e8('0x19')][_0x5427e8('0xc')](_0x31954b)[_0x5427e8('0x8')](function(){const _0x51122c=_0x5427e8;logger[_0x51122c('0xb')](_0x51122c('0xf'),_0x31954b);})[_0x5427e8('0x9')](function(_0x2dfe78){const _0x420146=_0x5427e8;logger[_0x420146('0xb')](JSON[_0x420146('0x1c')](_0x2dfe78));});});},Migration[_0x20086d('0x18')]['removeColumn']=function(_0x31f7fc,_0x41e11a){const _0x2424fe=_0x20086d,_0x29ca9f=this;this[_0x2424fe('0x3')][_0x2424fe('0x1b')](function(){const _0x2de4a4=_0x2424fe;return _0x29ca9f['queryInterface'][_0x2de4a4('0x12')](_0x31f7fc,_0x41e11a)['then'](function(){const _0x25a778=_0x2de4a4;logger[_0x25a778('0xb')](_0x25a778('0xe'),_0x41e11a,_0x31f7fc);})[_0x2de4a4('0x9')](function(_0x54a6ab){const _0x563872=_0x2de4a4;logger[_0x563872('0xb')](util[_0x563872('0x1a')](_0x54a6ab,{'showHidden':![],'depth':null}));});});},Migration[_0x20086d('0x18')][_0x20086d('0x4')]=function(_0x9c9452,_0x1e34f2,_0x42585e){const _0xac1b84=this;this['sequence']['enqueue'](function(){const _0x1ac604=a990_0x4817;return _0xac1b84[_0x1ac604('0x0')][_0x1ac604('0x4')](_0x9c9452,_0x1e34f2,_0x42585e)['then'](function(){const _0x27ba7a=_0x1ac604;logger['info'](_0x27ba7a('0x6'),_0x1e34f2,_0x42585e,_0x9c9452);})[_0x1ac604('0x9')](function(_0x107ba8){const _0x546ee7=_0x1ac604;logger[_0x546ee7('0xb')](util['inspect'](_0x107ba8,{'showHidden':![],'depth':null}));});});},Migration[_0x20086d('0x18')][_0x20086d('0x14')]=function(_0x237a86){this['sequence']['enqueue'](function(){return _0x237a86();});},module[_0x20086d('0x10')]={'up':function(_0x17b13b){return new Promise(function(_0x4ffe8e){const _0x1215be=a990_0x4817,_0x3b5054=new Migration(_0x17b13b);_0x3b5054[_0x1215be('0x14')](_0x4ffe8e);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.0.js b/server/migrations/2.4.0.js index 8f5d59e..bf6a179 100644 --- a/server/migrations/2.4.0.js +++ b/server/migrations/2.4.0.js @@ -1 +1 @@ -const a991_0x3195=['lastMsgText','indicesType','FULLTEXT','removeColumn','Added\x20column\x20%s\x20to\x20%s','join','removeIndex','addColumn','table\x20dropped\x20%s','finally','body','fti_mail_interactions','phoneBarEnableVideoRecording','BOOLEAN','mail_interactions','dropTable','addIndex','removeIndex\x20%s\x20%s','enqueue','then','inspect','changeColumn','subject','lastMsgBody','sequence','users','mail_messages','catch','query\x20%s','indexName','sequelize','ALTER\x20TABLE\x20mail_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','query','fti_mail_messages','chat_messages','addIndex\x20%s\x20%s\x20%s\x20[%s]','queryInterface','Removed\x20column\x20%s\x20from\x20%s','final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','ALTER\x20TABLE\x20sms_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','ALTER\x20TABLE\x20chat_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','phoneBarEnableScreenRecordingByAgent','util','stringify','Changed\x20column\x20%s\x20in\x20table\x20%s','info','fti_sms_messages','screenrecording','ALTER\x20TABLE\x20openchannel_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','plainBody','fti_openchannel_messages','tail','prototype','TEXT','renameColumn'];(function(_0x3ac236,_0x3195d8){const _0x5c7e3b=function(_0x4aec26){while(--_0x4aec26){_0x3ac236['push'](_0x3ac236['shift']());}};_0x5c7e3b(++_0x3195d8);}(a991_0x3195,0x1a2));const a991_0x5c7e=function(_0x3ac236,_0x3195d8){_0x3ac236=_0x3ac236-0x0;let _0x5c7e3b=a991_0x3195[_0x3ac236];return _0x5c7e3b;};const _0x4d1920=a991_0x5c7e;'use strict';const util=require(_0x4d1920('0x11')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence['prototype'][_0x4d1920('0x30')]=function(_0x4aec26){const _0x299eab=_0x4d1920;this['tail']=this['tail']?this[_0x299eab('0x1a')][_0x299eab('0x27')](_0x4aec26):_0x4aec26();};const Migration=function(_0x16b5ea){const _0x5c641b=_0x4d1920;this[_0x5c641b('0xa')]=_0x16b5ea,this[_0x5c641b('0x36')]=new Sequence();};Migration[_0x4d1920('0x1b')][_0x4d1920('0x33')]=function(_0x4e1c9e,_0x445251,_0x1905cd){const _0x5db395=_0x4d1920,_0x3d426c=this;this[_0x5db395('0x36')][_0x5db395('0x30')](function(){const _0x3ac8c4=_0x5db395;return _0x3d426c[_0x3ac8c4('0xa')][_0x3ac8c4('0x33')](_0x4e1c9e,_0x445251,_0x1905cd)[_0x3ac8c4('0x31')](function(){const _0x42d24f=_0x3ac8c4;logger[_0x42d24f('0x14')](_0x42d24f('0x13'),_0x445251,_0x4e1c9e);})[_0x3ac8c4('0x1')](function(_0x16835f){const _0x25ccff=_0x3ac8c4;logger[_0x25ccff('0x14')](JSON[_0x25ccff('0x12')](_0x16835f));});});},Migration[_0x4d1920('0x1b')]['addColumn']=function(_0x48c272,_0x1b4012,_0x5b3f0a){const _0x7c2ac9=_0x4d1920,_0x1981b2=this;this['sequence'][_0x7c2ac9('0x30')](function(){const _0x5e5976=_0x7c2ac9;return _0x1981b2[_0x5e5976('0xa')][_0x5e5976('0x25')](_0x48c272,_0x1b4012,_0x5b3f0a)['then'](function(){const _0x12327f=_0x5e5976;logger['info'](_0x12327f('0x22'),_0x1b4012,_0x48c272);})[_0x5e5976('0x1')](function(_0x4a0fa2){const _0x43a7b9=_0x5e5976;logger[_0x43a7b9('0x14')](JSON[_0x43a7b9('0x12')](_0x4a0fa2));});});},Migration['prototype'][_0x4d1920('0x2d')]=function(_0x3ff451){const _0x23fbe4=_0x4d1920,_0x3b2d40=this;this[_0x23fbe4('0x36')][_0x23fbe4('0x30')](function(){const _0x44acc6=_0x23fbe4;return _0x3b2d40[_0x44acc6('0xa')]['dropTable'](_0x3ff451,{'force':!![]})['then'](function(){const _0x31d375=_0x44acc6;logger['info'](_0x31d375('0x26'),_0x3ff451);})[_0x44acc6('0x1')](function(_0xe792ad){logger['info'](JSON['stringify'](_0xe792ad));});});},Migration[_0x4d1920('0x1b')][_0x4d1920('0x2e')]=function(_0x2a13d8,_0x3df490,_0x38756c){const _0x5ee927=_0x4d1920,_0x4f439f=this;this[_0x5ee927('0x36')][_0x5ee927('0x30')](function(){const _0x4afcc1=_0x5ee927;return _0x4f439f['queryInterface'][_0x4afcc1('0x2e')](_0x2a13d8,_0x3df490,{'indexName':_0x38756c[_0x4afcc1('0x3')],'indicesType':_0x38756c[_0x4afcc1('0x1f')]})[_0x4afcc1('0x31')](function(){const _0x3327ab=_0x4afcc1;logger[_0x3327ab('0x14')](_0x3327ab('0x9'),_0x2a13d8,_0x3df490[_0x3327ab('0x23')](','),_0x38756c[_0x3327ab('0x3')],_0x38756c[_0x3327ab('0x1f')]);})['catch'](function(_0x39f6e6){const _0x3b913c=_0x4afcc1;logger['info'](JSON[_0x3b913c('0x12')](_0x39f6e6));});});},Migration[_0x4d1920('0x1b')]['removeIndex']=function(_0x422941,_0x52eefc){const _0x161ac0=_0x4d1920,_0x299bf4=this;this[_0x161ac0('0x36')]['enqueue'](function(){const _0x5a45fc=_0x161ac0;return _0x299bf4[_0x5a45fc('0xa')][_0x5a45fc('0x24')](_0x422941,_0x52eefc)[_0x5a45fc('0x31')](function(){const _0x29067a=_0x5a45fc;logger['info'](_0x29067a('0x2f'),_0x422941,_0x52eefc);})[_0x5a45fc('0x1')](function(_0x5f4429){const _0x5ce73=_0x5a45fc;logger['info'](JSON[_0x5ce73('0x12')](_0x5f4429));});});},Migration[_0x4d1920('0x1b')][_0x4d1920('0x6')]=function(_0x12acb9){const _0x5cddfb=_0x4d1920,_0x1b066e=this;this[_0x5cddfb('0x36')][_0x5cddfb('0x30')](function(){const _0x1ec327=_0x5cddfb;return _0x1b066e[_0x1ec327('0xa')][_0x1ec327('0x4')]['query'](_0x12acb9)[_0x1ec327('0x31')](function(){const _0x29c522=_0x1ec327;logger[_0x29c522('0x14')](_0x29c522('0x2'),_0x12acb9);})[_0x1ec327('0x1')](function(_0xa7fb59){const _0x2112d1=_0x1ec327;logger[_0x2112d1('0x14')](JSON[_0x2112d1('0x12')](_0xa7fb59));});});},Migration[_0x4d1920('0x1b')]['removeColumn']=function(_0x398fd6,_0x383044){const _0x23a240=_0x4d1920,_0x70f153=this;this[_0x23a240('0x36')][_0x23a240('0x30')](function(){const _0xabc251=_0x23a240;return _0x70f153[_0xabc251('0xa')][_0xabc251('0x21')](_0x398fd6,_0x383044)[_0xabc251('0x31')](function(){const _0xbfd337=_0xabc251;logger[_0xbfd337('0x14')](_0xbfd337('0xb'),_0x383044,_0x398fd6);})['catch'](function(_0xa38a05){logger['info'](util['inspect'](_0xa38a05,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4d1920('0x1d')]=function(_0x5a847e,_0x44ca61,_0x40f842){const _0x8e228b=_0x4d1920,_0x755ae0=this;this[_0x8e228b('0x36')][_0x8e228b('0x30')](function(){const _0x2296f3=_0x8e228b;return _0x755ae0[_0x2296f3('0xa')]['renameColumn'](_0x5a847e,_0x44ca61,_0x40f842)['then'](function(){const _0x4be40f=_0x2296f3;logger[_0x4be40f('0x14')](_0x4be40f('0xd'),_0x44ca61,_0x40f842,_0x5a847e);})[_0x2296f3('0x1')](function(_0x5d43ed){const _0x28528f=_0x2296f3;logger[_0x28528f('0x14')](util[_0x28528f('0x32')](_0x5d43ed,{'showHidden':![],'depth':null}));});});},Migration[_0x4d1920('0x1b')][_0x4d1920('0xc')]=function(_0x19349d){const _0x299da8=_0x4d1920;this[_0x299da8('0x36')][_0x299da8('0x30')](function(){return _0x19349d();});},module['exports']={'up':function(_0x33890c,_0xb4b960){return new Promise(function(_0x25c52e){const _0x339d60=a991_0x5c7e,_0xa852c=new Migration(_0x33890c);_0xa852c['renameColumn'](_0x339d60('0x37'),_0x339d60('0x2a'),_0x339d60('0x10')),_0xa852c[_0x339d60('0x25')](_0x339d60('0x37'),'phoneBarEnableAutomaticScreenRecording',{'type':_0xb4b960[_0x339d60('0x2b')],'defaultValue':![]}),_0xa852c[_0x339d60('0x25')](_0x339d60('0x37'),_0x339d60('0x16'),{'type':_0xb4b960[_0x339d60('0x2b')],'defaultValue':![]}),_0xa852c['addIndex'](_0x339d60('0x8'),[_0x339d60('0x28')],{'indexName':'fti_chat_messages','indicesType':_0x339d60('0x20')}),_0xa852c[_0x339d60('0x2e')](_0x339d60('0x2c'),['subject','to'],{'indexName':_0x339d60('0x29'),'indicesType':'FULLTEXT'}),_0xa852c[_0x339d60('0x25')](_0x339d60('0x2c'),_0x339d60('0x1e'),{'type':_0xb4b960[_0x339d60('0x1c')]('tiny'),'after':_0x339d60('0x35')}),_0xa852c[_0x339d60('0x25')](_0x339d60('0x0'),_0x339d60('0x18'),{'type':_0xb4b960['TEXT']('medium'),'after':_0x339d60('0x28')}),_0xa852c[_0x339d60('0x2e')](_0x339d60('0x0'),[_0x339d60('0x18'),_0x339d60('0x34')],{'indexName':_0x339d60('0x7'),'indicesType':_0x339d60('0x20')}),_0xa852c['addIndex']('openchannel_messages',[_0x339d60('0x28')],{'indexName':_0x339d60('0x19'),'indicesType':'FULLTEXT'}),_0xa852c['addIndex']('sms_messages',[_0x339d60('0x28')],{'indexName':_0x339d60('0x15'),'indicesType':_0x339d60('0x20')}),_0xa852c[_0x339d60('0x6')](_0x339d60('0xf')),_0xa852c[_0x339d60('0x6')]('ALTER\x20TABLE\x20fax_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci'),_0xa852c[_0x339d60('0x6')](_0x339d60('0x5')),_0xa852c[_0x339d60('0x6')](_0x339d60('0x17')),_0xa852c[_0x339d60('0x6')](_0x339d60('0xe')),_0xa852c[_0x339d60('0xc')](_0x25c52e);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.1.js b/server/migrations/2.4.1.js index 5df639c..aeec765 100644 --- a/server/migrations/2.4.1.js +++ b/server/migrations/2.4.1.js @@ -1 +1 @@ -const a992_0x2026=['renameColumn','exports','changeColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','inspect','final','indexName','prototype','stringify','enqueue','info','sequence','Added\x20column\x20%s\x20to\x20%s','migration','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','removeIndex','addColumn','table\x20dropped\x20%s','catch','sequelize','dropTable','removeColumn','../config/logger','addIndex','indicesType','finally','tail','query','queryInterface','join','query\x20%s'];(function(_0x17da1b,_0x2026ab){const _0x4eabab=function(_0x275516){while(--_0x275516){_0x17da1b['push'](_0x17da1b['shift']());}};_0x4eabab(++_0x2026ab);}(a992_0x2026,0x1ad));const a992_0x4eab=function(_0x17da1b,_0x2026ab){_0x17da1b=_0x17da1b-0x0;let _0x4eabab=a992_0x2026[_0x17da1b];return _0x4eabab;};const _0x16bf31=a992_0x4eab;'use strict';const util=require('util'),logger=require(_0x16bf31('0xa'))(_0x16bf31('0x0')),Sequence=function(){};Sequence[_0x16bf31('0x1a')][_0x16bf31('0x1c')]=function(_0x275516){const _0x525b32=_0x16bf31;this[_0x525b32('0xe')]=this[_0x525b32('0xe')]?this[_0x525b32('0xe')][_0x525b32('0xd')](_0x275516):_0x275516();};const Migration=function(_0x517664){const _0x4128cf=_0x16bf31;this[_0x4128cf('0x10')]=_0x517664,this[_0x4128cf('0x1e')]=new Sequence();};Migration[_0x16bf31('0x1a')][_0x16bf31('0x15')]=function(_0x2772d4,_0x500d55,_0x4c7eee){const _0x4b7bad=this;this['sequence']['enqueue'](function(){const _0x45871d=a992_0x4eab;return _0x4b7bad[_0x45871d('0x10')][_0x45871d('0x15')](_0x2772d4,_0x500d55,_0x4c7eee)[_0x45871d('0x2')](function(){const _0x3ef33a=_0x45871d;logger[_0x3ef33a('0x1d')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x500d55,_0x2772d4);})[_0x45871d('0x6')](function(_0x33ff00){const _0x178282=_0x45871d;logger[_0x178282('0x1d')](JSON[_0x178282('0x1b')](_0x33ff00));});});},Migration['prototype']['addColumn']=function(_0x19d99a,_0x5da47d,_0x20b3a4){const _0x17f507=this;this['sequence']['enqueue'](function(){const _0x24b733=a992_0x4eab;return _0x17f507[_0x24b733('0x10')][_0x24b733('0x4')](_0x19d99a,_0x5da47d,_0x20b3a4)[_0x24b733('0x2')](function(){const _0x3aa5ce=_0x24b733;logger[_0x3aa5ce('0x1d')](_0x3aa5ce('0x1f'),_0x5da47d,_0x19d99a);})[_0x24b733('0x6')](function(_0x1ea733){const _0xd9c877=_0x24b733;logger[_0xd9c877('0x1d')](JSON[_0xd9c877('0x1b')](_0x1ea733));});});},Migration[_0x16bf31('0x1a')]['dropTable']=function(_0x49d96f){const _0x4a1053=_0x16bf31,_0x104de8=this;this[_0x4a1053('0x1e')]['enqueue'](function(){const _0x14b3ee=_0x4a1053;return _0x104de8[_0x14b3ee('0x10')][_0x14b3ee('0x8')](_0x49d96f,{'force':!![]})[_0x14b3ee('0x2')](function(){const _0x19884f=_0x14b3ee;logger[_0x19884f('0x1d')](_0x19884f('0x5'),_0x49d96f);})[_0x14b3ee('0x6')](function(_0x5668df){const _0xb55fb5=_0x14b3ee;logger['info'](JSON[_0xb55fb5('0x1b')](_0x5668df));});});},Migration[_0x16bf31('0x1a')]['addIndex']=function(_0x46877b,_0x415a13,_0x50bee7){const _0x53f518=_0x16bf31,_0x18b577=this;this[_0x53f518('0x1e')][_0x53f518('0x1c')](function(){const _0x2ba966=_0x53f518;return _0x18b577[_0x2ba966('0x10')][_0x2ba966('0xb')](_0x46877b,_0x415a13,{'indexName':_0x50bee7[_0x2ba966('0x19')],'indicesType':_0x50bee7[_0x2ba966('0xc')]})[_0x2ba966('0x2')](function(){const _0x3e7ab1=_0x2ba966;logger[_0x3e7ab1('0x1d')](_0x3e7ab1('0x16'),_0x46877b,_0x415a13[_0x3e7ab1('0x11')](','),_0x50bee7[_0x3e7ab1('0x19')],_0x50bee7[_0x3e7ab1('0xc')]);})[_0x2ba966('0x6')](function(_0x3287a5){const _0x459726=_0x2ba966;logger[_0x459726('0x1d')](JSON[_0x459726('0x1b')](_0x3287a5));});});},Migration[_0x16bf31('0x1a')][_0x16bf31('0x3')]=function(_0xbf4092,_0x50eb6e){const _0x239a3e=_0x16bf31,_0xe97514=this;this[_0x239a3e('0x1e')]['enqueue'](function(){const _0x4b64f7=_0x239a3e;return _0xe97514['queryInterface'][_0x4b64f7('0x3')](_0xbf4092,_0x50eb6e)[_0x4b64f7('0x2')](function(){logger['info']('removeIndex\x20%s\x20%s',_0xbf4092,_0x50eb6e);})['catch'](function(_0x1fbfaa){const _0x252ecd=_0x4b64f7;logger[_0x252ecd('0x1d')](JSON[_0x252ecd('0x1b')](_0x1fbfaa));});});},Migration[_0x16bf31('0x1a')][_0x16bf31('0xf')]=function(_0xfa1bee){const _0x4e8c93=_0x16bf31,_0x1d6e74=this;this[_0x4e8c93('0x1e')][_0x4e8c93('0x1c')](function(){const _0x2771d7=_0x4e8c93;return _0x1d6e74[_0x2771d7('0x10')][_0x2771d7('0x7')]['query'](_0xfa1bee)['then'](function(){const _0x58b7fb=_0x2771d7;logger['info'](_0x58b7fb('0x12'),_0xfa1bee);})[_0x2771d7('0x6')](function(_0x487521){const _0x59aa24=_0x2771d7;logger[_0x59aa24('0x1d')](JSON['stringify'](_0x487521));});});},Migration[_0x16bf31('0x1a')]['removeColumn']=function(_0x3a88a2,_0x3d4307){const _0x48d8c4=_0x16bf31,_0x4271b1=this;this[_0x48d8c4('0x1e')][_0x48d8c4('0x1c')](function(){const _0x274c95=_0x48d8c4;return _0x4271b1['queryInterface'][_0x274c95('0x9')](_0x3a88a2,_0x3d4307)['then'](function(){const _0x5136d2=_0x274c95;logger[_0x5136d2('0x1d')]('Removed\x20column\x20%s\x20from\x20%s',_0x3d4307,_0x3a88a2);})['catch'](function(_0x5e019e){const _0x5439ee=_0x274c95;logger[_0x5439ee('0x1d')](util['inspect'](_0x5e019e,{'showHidden':![],'depth':null}));});});},Migration[_0x16bf31('0x1a')][_0x16bf31('0x13')]=function(_0x36c5cc,_0x3acc46,_0x13f3ba){const _0x56c103=_0x16bf31,_0x57b421=this;this[_0x56c103('0x1e')][_0x56c103('0x1c')](function(){const _0x15e4fc=_0x56c103;return _0x57b421['queryInterface'][_0x15e4fc('0x13')](_0x36c5cc,_0x3acc46,_0x13f3ba)[_0x15e4fc('0x2')](function(){const _0x5cfc90=_0x15e4fc;logger[_0x5cfc90('0x1d')](_0x5cfc90('0x1'),_0x3acc46,_0x13f3ba,_0x36c5cc);})[_0x15e4fc('0x6')](function(_0x5724c1){const _0x4f279e=_0x15e4fc;logger[_0x4f279e('0x1d')](util[_0x4f279e('0x17')](_0x5724c1,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x16bf31('0x18')]=function(_0x12d00c){const _0x444f0c=_0x16bf31;this[_0x444f0c('0x1e')][_0x444f0c('0x1c')](function(){return _0x12d00c();});},module[_0x16bf31('0x14')]={'up':function(_0x3535df){return new Promise(function(_0x23c60f){const _0x368f80=a992_0x4eab,_0x458a45=new Migration(_0x3535df);_0x458a45[_0x368f80('0x18')](_0x23c60f);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.10.js b/server/migrations/2.4.10.js index 203a8ee..54b96f5 100644 --- a/server/migrations/2.4.10.js +++ b/server/migrations/2.4.10.js @@ -1 +1 @@ -const a993_0x315e=['info','../config/logger','favicon','sequelize','tail','catch','chat_interactions','removeIndex','util','inspect','prototype','settings','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','defaultFavicon','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','Removed\x20column\x20%s\x20from\x20%s','changeColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','queryInterface','finally','then','query','removeIndex\x20%s\x20%s','referer','addColumn','stringify','sequence','STRING','join','indicesType','exports','renameColumn','final','dropTable','BOOLEAN','addIndex','query\x20%s','table\x20dropped\x20%s'];(function(_0x3b070d,_0x315e42){const _0x38cc11=function(_0x322c70){while(--_0x322c70){_0x3b070d['push'](_0x3b070d['shift']());}};_0x38cc11(++_0x315e42);}(a993_0x315e,0x1af));const a993_0x38cc=function(_0x3b070d,_0x315e42){_0x3b070d=_0x3b070d-0x0;let _0x38cc11=a993_0x315e[_0x3b070d];return _0x38cc11;};const _0x3a9ea8=a993_0x38cc;'use strict';const util=require(_0x3a9ea8('0x6')),logger=require(_0x3a9ea8('0x26'))('migration'),Sequence=function(){};Sequence[_0x3a9ea8('0x8')][_0x3a9ea8('0xc')]=function(_0x322c70){const _0x2ab8b8=_0x3a9ea8;this[_0x2ab8b8('0x2')]=this[_0x2ab8b8('0x2')]?this[_0x2ab8b8('0x2')][_0x2ab8b8('0x12')](_0x322c70):_0x322c70();};const Migration=function(_0x269786){const _0x226e61=_0x3a9ea8;this[_0x226e61('0x11')]=_0x269786,this[_0x226e61('0x19')]=new Sequence();};Migration[_0x3a9ea8('0x8')]['changeColumn']=function(_0x4b6825,_0x4a0a9a,_0x3b03fd){const _0x9ad5b1=_0x3a9ea8,_0x31957c=this;this[_0x9ad5b1('0x19')]['enqueue'](function(){const _0x454a4b=_0x9ad5b1;return _0x31957c[_0x454a4b('0x11')][_0x454a4b('0xf')](_0x4b6825,_0x4a0a9a,_0x3b03fd)['then'](function(){const _0x5d2b92=_0x454a4b;logger['info'](_0x5d2b92('0xd'),_0x4a0a9a,_0x4b6825);})[_0x454a4b('0x3')](function(_0x336c3a){const _0x30cde5=_0x454a4b;logger[_0x30cde5('0x25')](JSON[_0x30cde5('0x18')](_0x336c3a));});});},Migration[_0x3a9ea8('0x8')][_0x3a9ea8('0x17')]=function(_0x20bfea,_0x53bdf5,_0x26ef8c){const _0x44176b=this;this['sequence']['enqueue'](function(){const _0x2cbc16=a993_0x38cc;return _0x44176b[_0x2cbc16('0x11')][_0x2cbc16('0x17')](_0x20bfea,_0x53bdf5,_0x26ef8c)[_0x2cbc16('0x13')](function(){const _0x49240a=_0x2cbc16;logger[_0x49240a('0x25')]('Added\x20column\x20%s\x20to\x20%s',_0x53bdf5,_0x20bfea);})[_0x2cbc16('0x3')](function(_0x2ef2bd){const _0x5cfec6=_0x2cbc16;logger[_0x5cfec6('0x25')](JSON[_0x5cfec6('0x18')](_0x2ef2bd));});});},Migration[_0x3a9ea8('0x8')]['dropTable']=function(_0x1690e9){const _0x1518fd=_0x3a9ea8,_0x2b00ba=this;this[_0x1518fd('0x19')]['enqueue'](function(){const _0x16c81a=_0x1518fd;return _0x2b00ba[_0x16c81a('0x11')][_0x16c81a('0x20')](_0x1690e9,{'force':!![]})[_0x16c81a('0x13')](function(){const _0x5ed86a=_0x16c81a;logger[_0x5ed86a('0x25')](_0x5ed86a('0x24'),_0x1690e9);})[_0x16c81a('0x3')](function(_0x251137){const _0x3253fe=_0x16c81a;logger[_0x3253fe('0x25')](JSON[_0x3253fe('0x18')](_0x251137));});});},Migration[_0x3a9ea8('0x8')][_0x3a9ea8('0x22')]=function(_0x407c6d,_0x19f1ed,_0x2a8dd5){const _0x53adeb=_0x3a9ea8,_0x2ddbbd=this;this[_0x53adeb('0x19')][_0x53adeb('0xc')](function(){const _0xa965ae=_0x53adeb;return _0x2ddbbd[_0xa965ae('0x11')][_0xa965ae('0x22')](_0x407c6d,_0x19f1ed,{'indexName':_0x2a8dd5['indexName'],'indicesType':_0x2a8dd5[_0xa965ae('0x1c')]})[_0xa965ae('0x13')](function(){const _0x534f16=_0xa965ae;logger[_0x534f16('0x25')](_0x534f16('0x10'),_0x407c6d,_0x19f1ed[_0x534f16('0x1b')](','),_0x2a8dd5['indexName'],_0x2a8dd5[_0x534f16('0x1c')]);})[_0xa965ae('0x3')](function(_0x4dc40f){logger['info'](JSON['stringify'](_0x4dc40f));});});},Migration['prototype'][_0x3a9ea8('0x5')]=function(_0x372b48,_0x201ee3){const _0x554572=_0x3a9ea8,_0x274007=this;this[_0x554572('0x19')][_0x554572('0xc')](function(){const _0x88201a=_0x554572;return _0x274007[_0x88201a('0x11')][_0x88201a('0x5')](_0x372b48,_0x201ee3)[_0x88201a('0x13')](function(){const _0x5a4820=_0x88201a;logger[_0x5a4820('0x25')](_0x5a4820('0x15'),_0x372b48,_0x201ee3);})[_0x88201a('0x3')](function(_0x668073){const _0x52acc9=_0x88201a;logger[_0x52acc9('0x25')](JSON['stringify'](_0x668073));});});},Migration['prototype'][_0x3a9ea8('0x14')]=function(_0x3f30b9){const _0x5621a7=_0x3a9ea8,_0x2a25fe=this;this[_0x5621a7('0x19')][_0x5621a7('0xc')](function(){const _0x350f52=_0x5621a7;return _0x2a25fe[_0x350f52('0x11')][_0x350f52('0x1')][_0x350f52('0x14')](_0x3f30b9)[_0x350f52('0x13')](function(){const _0x482da2=_0x350f52;logger[_0x482da2('0x25')](_0x482da2('0x23'),_0x3f30b9);})[_0x350f52('0x3')](function(_0x20dd80){logger['info'](JSON['stringify'](_0x20dd80));});});},Migration['prototype']['removeColumn']=function(_0x4a77d1,_0x355e67){const _0x3a261b=_0x3a9ea8,_0x29b01e=this;this[_0x3a261b('0x19')][_0x3a261b('0xc')](function(){const _0x386e33=_0x3a261b;return _0x29b01e['queryInterface']['removeColumn'](_0x4a77d1,_0x355e67)['then'](function(){const _0x3ce508=a993_0x38cc;logger[_0x3ce508('0x25')](_0x3ce508('0xe'),_0x355e67,_0x4a77d1);})[_0x386e33('0x3')](function(_0x17c479){const _0x2171a4=_0x386e33;logger[_0x2171a4('0x25')](util[_0x2171a4('0x7')](_0x17c479,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3a9ea8('0x1e')]=function(_0x3ab244,_0x3bba6d,_0x4f29d2){const _0x253cf7=_0x3a9ea8,_0x105aaf=this;this[_0x253cf7('0x19')][_0x253cf7('0xc')](function(){const _0x14462d=_0x253cf7;return _0x105aaf[_0x14462d('0x11')]['renameColumn'](_0x3ab244,_0x3bba6d,_0x4f29d2)[_0x14462d('0x13')](function(){const _0xb29e49=_0x14462d;logger[_0xb29e49('0x25')](_0xb29e49('0xa'),_0x3bba6d,_0x4f29d2,_0x3ab244);})[_0x14462d('0x3')](function(_0x207eed){const _0x542aaf=_0x14462d;logger[_0x542aaf('0x25')](util[_0x542aaf('0x7')](_0x207eed,{'showHidden':![],'depth':null}));});});},Migration[_0x3a9ea8('0x8')][_0x3a9ea8('0x1f')]=function(_0x1cbc15){const _0x75234b=_0x3a9ea8;this[_0x75234b('0x19')][_0x75234b('0xc')](function(){return _0x1cbc15();});},module[_0x3a9ea8('0x1d')]={'up':function(_0x10ea5f,_0x52e026){return new Promise(function(_0x3cdda0){const _0x27082b=a993_0x38cc,_0x18c2ba=new Migration(_0x10ea5f);_0x18c2ba[_0x27082b('0xf')](_0x27082b('0x4'),_0x27082b('0x16'),{'type':_0x52e026['TEXT']}),_0x18c2ba[_0x27082b('0x17')]('settings',_0x27082b('0x0'),{'type':_0x52e026[_0x27082b('0x1a')]}),_0x18c2ba[_0x27082b('0x17')](_0x27082b('0x9'),_0x27082b('0xb'),{'type':_0x52e026[_0x27082b('0x21')],'defaultValue':!![]}),_0x18c2ba[_0x27082b('0x1f')](_0x3cdda0);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.11.js b/server/migrations/2.4.11.js index 5a957b5..d88b4aa 100644 --- a/server/migrations/2.4.11.js +++ b/server/migrations/2.4.11.js @@ -1 +1 @@ -const a994_0x1097=['info','sequence','dropTable','final','Added\x20column\x20%s\x20to\x20%s','renameColumn','removeIndex\x20%s\x20%s','join','changeColumn','../config/logger','stringify','then','indexName','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','removeIndex','addIndex\x20%s\x20%s\x20%s\x20[%s]','indicesType','finally','exports','tail','migration','query','Removed\x20column\x20%s\x20from\x20%s','queryInterface','query\x20%s','prototype','enqueue','table\x20dropped\x20%s','addColumn','addIndex','catch'];(function(_0x25253d,_0x10975f){const _0x239b02=function(_0x18cd1b){while(--_0x18cd1b){_0x25253d['push'](_0x25253d['shift']());}};_0x239b02(++_0x10975f);}(a994_0x1097,0x67));const a994_0x239b=function(_0x25253d,_0x10975f){_0x25253d=_0x25253d-0x0;let _0x239b02=a994_0x1097[_0x25253d];return _0x239b02;};const _0x3dbffa=a994_0x239b;'use strict';const util=require('util'),logger=require(_0x3dbffa('0x5'))(_0x3dbffa('0x12')),Sequence=function(){};Sequence[_0x3dbffa('0x17')][_0x3dbffa('0x18')]=function(_0x18cd1b){const _0x285f4f=_0x3dbffa;this['tail']=this[_0x285f4f('0x11')]?this['tail'][_0x285f4f('0xf')](_0x18cd1b):_0x18cd1b();};const Migration=function(_0xc3b0b3){const _0x4b9722=_0x3dbffa;this[_0x4b9722('0x15')]=_0xc3b0b3,this['sequence']=new Sequence();};Migration['prototype'][_0x3dbffa('0x4')]=function(_0x1dd3f4,_0x2e4ff4,_0x54837d){const _0x33a700=_0x3dbffa,_0x20f348=this;this[_0x33a700('0x1e')][_0x33a700('0x18')](function(){const _0x5423bd=_0x33a700;return _0x20f348['queryInterface']['changeColumn'](_0x1dd3f4,_0x2e4ff4,_0x54837d)[_0x5423bd('0x7')](function(){const _0x30855f=_0x5423bd;logger[_0x30855f('0x1d')](_0x30855f('0xa'),_0x2e4ff4,_0x1dd3f4);})['catch'](function(_0x3cc1b1){const _0x1fc772=_0x5423bd;logger[_0x1fc772('0x1d')](JSON['stringify'](_0x3cc1b1));});});},Migration[_0x3dbffa('0x17')][_0x3dbffa('0x1a')]=function(_0x1b36fe,_0x4e9634,_0x4865e0){const _0x1e9aec=_0x3dbffa,_0x2e9b91=this;this['sequence'][_0x1e9aec('0x18')](function(){const _0x5b5e3a=_0x1e9aec;return _0x2e9b91[_0x5b5e3a('0x15')][_0x5b5e3a('0x1a')](_0x1b36fe,_0x4e9634,_0x4865e0)[_0x5b5e3a('0x7')](function(){const _0x5a12d1=_0x5b5e3a;logger[_0x5a12d1('0x1d')](_0x5a12d1('0x0'),_0x4e9634,_0x1b36fe);})[_0x5b5e3a('0x1c')](function(_0x22a704){const _0x149fdd=_0x5b5e3a;logger[_0x149fdd('0x1d')](JSON[_0x149fdd('0x6')](_0x22a704));});});},Migration[_0x3dbffa('0x17')][_0x3dbffa('0x1f')]=function(_0x2575f8){const _0x2cb646=this;this['sequence']['enqueue'](function(){const _0x4cba73=a994_0x239b;return _0x2cb646['queryInterface'][_0x4cba73('0x1f')](_0x2575f8,{'force':!![]})[_0x4cba73('0x7')](function(){const _0x5d14ed=_0x4cba73;logger[_0x5d14ed('0x1d')](_0x5d14ed('0x19'),_0x2575f8);})['catch'](function(_0x2cd1a9){const _0x2aad13=_0x4cba73;logger[_0x2aad13('0x1d')](JSON[_0x2aad13('0x6')](_0x2cd1a9));});});},Migration['prototype']['addIndex']=function(_0x3cde93,_0x347434,_0x47754c){const _0x452d26=_0x3dbffa,_0x4d7d67=this;this[_0x452d26('0x1e')][_0x452d26('0x18')](function(){const _0x5866cb=_0x452d26;return _0x4d7d67['queryInterface'][_0x5866cb('0x1b')](_0x3cde93,_0x347434,{'indexName':_0x47754c[_0x5866cb('0x8')],'indicesType':_0x47754c[_0x5866cb('0xe')]})['then'](function(){const _0x5694ff=_0x5866cb;logger[_0x5694ff('0x1d')](_0x5694ff('0xd'),_0x3cde93,_0x347434[_0x5694ff('0x3')](','),_0x47754c[_0x5694ff('0x8')],_0x47754c[_0x5694ff('0xe')]);})['catch'](function(_0x6fa16a){const _0x85cdee=_0x5866cb;logger[_0x85cdee('0x1d')](JSON[_0x85cdee('0x6')](_0x6fa16a));});});},Migration['prototype'][_0x3dbffa('0xc')]=function(_0x560b2b,_0x25a322){const _0x1bbb15=_0x3dbffa,_0x3d8211=this;this[_0x1bbb15('0x1e')][_0x1bbb15('0x18')](function(){const _0xd3d967=_0x1bbb15;return _0x3d8211[_0xd3d967('0x15')][_0xd3d967('0xc')](_0x560b2b,_0x25a322)[_0xd3d967('0x7')](function(){const _0x5ca70e=_0xd3d967;logger['info'](_0x5ca70e('0x2'),_0x560b2b,_0x25a322);})['catch'](function(_0x2eb1a4){const _0x20e452=_0xd3d967;logger[_0x20e452('0x1d')](JSON[_0x20e452('0x6')](_0x2eb1a4));});});},Migration[_0x3dbffa('0x17')][_0x3dbffa('0x13')]=function(_0x28f632){const _0x27a8e7=_0x3dbffa,_0x217d7e=this;this[_0x27a8e7('0x1e')][_0x27a8e7('0x18')](function(){const _0x378349=_0x27a8e7;return _0x217d7e[_0x378349('0x15')]['sequelize'][_0x378349('0x13')](_0x28f632)[_0x378349('0x7')](function(){const _0x5288fc=_0x378349;logger[_0x5288fc('0x1d')](_0x5288fc('0x16'),_0x28f632);})[_0x378349('0x1c')](function(_0x3d2521){const _0x420bf9=_0x378349;logger['info'](JSON[_0x420bf9('0x6')](_0x3d2521));});});},Migration[_0x3dbffa('0x17')][_0x3dbffa('0x9')]=function(_0x3a7853,_0x5e3826){const _0x410fac=_0x3dbffa,_0x5c8ab3=this;this[_0x410fac('0x1e')][_0x410fac('0x18')](function(){const _0x335b0b=_0x410fac;return _0x5c8ab3[_0x335b0b('0x15')][_0x335b0b('0x9')](_0x3a7853,_0x5e3826)[_0x335b0b('0x7')](function(){const _0x2a0723=_0x335b0b;logger[_0x2a0723('0x1d')](_0x2a0723('0x14'),_0x5e3826,_0x3a7853);})[_0x335b0b('0x1c')](function(_0x5e6715){const _0x597db0=_0x335b0b;logger[_0x597db0('0x1d')](util[_0x597db0('0xb')](_0x5e6715,{'showHidden':![],'depth':null}));});});},Migration[_0x3dbffa('0x17')][_0x3dbffa('0x1')]=function(_0x2b777b,_0x139208,_0x1b8a24){const _0xa0985=_0x3dbffa,_0x56515c=this;this[_0xa0985('0x1e')][_0xa0985('0x18')](function(){const _0x45c442=_0xa0985;return _0x56515c['queryInterface'][_0x45c442('0x1')](_0x2b777b,_0x139208,_0x1b8a24)[_0x45c442('0x7')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x139208,_0x1b8a24,_0x2b777b);})['catch'](function(_0x59056c){const _0x4bc197=_0x45c442;logger['info'](util[_0x4bc197('0xb')](_0x59056c,{'showHidden':![],'depth':null}));});});},Migration[_0x3dbffa('0x17')][_0x3dbffa('0x20')]=function(_0x167a4f){const _0x3821da=_0x3dbffa;this[_0x3821da('0x1e')][_0x3821da('0x18')](function(){return _0x167a4f();});},module[_0x3dbffa('0x10')]={'up':function(_0x654395){return new Promise(function(_0x54153d){const _0x1dcd8f=a994_0x239b,_0x43e4d1=new Migration(_0x654395);_0x43e4d1[_0x1dcd8f('0x20')](_0x54153d);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.12.js b/server/migrations/2.4.12.js index 455b2b6..923cbf0 100644 --- a/server/migrations/2.4.12.js +++ b/server/migrations/2.4.12.js @@ -1 +1 @@ -const a995_0xb833=['tail','migration','renameColumn','info','sequelize','util','prototype','removeColumn','indicesType','../config/logger','then','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','loginMailFrequency','query','addIndex','addColumn','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','settings','query\x20%s','UPDATE\x20tools_actions\x20SET\x20tools_actions.data5\x20=\x20\x225\x22\x20WHERE\x20tools_actions.action\x20=\x20\x22urlForward\x22','indexName','catch','removeIndex','enqueue','INTEGER','sequence','exports','final','changeColumn','dropTable','finally','queryInterface','Removed\x20column\x20%s\x20from\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','stringify'];(function(_0x4d58c2,_0xb833c3){const _0x53d4fe=function(_0x25c1fa){while(--_0x25c1fa){_0x4d58c2['push'](_0x4d58c2['shift']());}};_0x53d4fe(++_0xb833c3);}(a995_0xb833,0x1d4));const a995_0x53d4=function(_0x4d58c2,_0xb833c3){_0x4d58c2=_0x4d58c2-0x0;let _0x53d4fe=a995_0xb833[_0x4d58c2];return _0x53d4fe;};const _0x543a14=a995_0x53d4;'use strict';const util=require(_0x543a14('0x5')),logger=require(_0x543a14('0x9'))(_0x543a14('0x1')),Sequence=function(){};Sequence[_0x543a14('0x6')][_0x543a14('0x18')]=function(_0x25c1fa){const _0x59d0ac=_0x543a14;this[_0x59d0ac('0x0')]=this[_0x59d0ac('0x0')]?this[_0x59d0ac('0x0')][_0x59d0ac('0x1f')](_0x25c1fa):_0x25c1fa();};const Migration=function(_0x1604c4){const _0x14f6d8=_0x543a14;this[_0x14f6d8('0x20')]=_0x1604c4,this[_0x14f6d8('0x1a')]=new Sequence();};Migration[_0x543a14('0x6')]['changeColumn']=function(_0x5d1946,_0x39e014,_0x3ac8c9){const _0x123c2e=this;this['sequence']['enqueue'](function(){const _0x297ebd=a995_0x53d4;return _0x123c2e['queryInterface'][_0x297ebd('0x1d')](_0x5d1946,_0x39e014,_0x3ac8c9)[_0x297ebd('0xa')](function(){const _0xdaa4ac=_0x297ebd;logger[_0xdaa4ac('0x3')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x39e014,_0x5d1946);})[_0x297ebd('0x16')](function(_0x465bb8){const _0x2baa07=_0x297ebd;logger[_0x2baa07('0x3')](JSON[_0x2baa07('0x23')](_0x465bb8));});});},Migration[_0x543a14('0x6')]['addColumn']=function(_0x147639,_0x67193e,_0x48ca73){const _0x39bd29=_0x543a14,_0x5e2dbc=this;this[_0x39bd29('0x1a')][_0x39bd29('0x18')](function(){const _0x54986e=_0x39bd29;return _0x5e2dbc[_0x54986e('0x20')][_0x54986e('0xf')](_0x147639,_0x67193e,_0x48ca73)[_0x54986e('0xa')](function(){const _0x14aaf1=_0x54986e;logger[_0x14aaf1('0x3')]('Added\x20column\x20%s\x20to\x20%s',_0x67193e,_0x147639);})['catch'](function(_0x2bf199){const _0x2f6ba1=_0x54986e;logger[_0x2f6ba1('0x3')](JSON[_0x2f6ba1('0x23')](_0x2bf199));});});},Migration[_0x543a14('0x6')][_0x543a14('0x1e')]=function(_0x2c17f7){const _0x5d2b77=_0x543a14,_0x202082=this;this[_0x5d2b77('0x1a')][_0x5d2b77('0x18')](function(){const _0x503dbb=_0x5d2b77;return _0x202082[_0x503dbb('0x20')][_0x503dbb('0x1e')](_0x2c17f7,{'force':!![]})[_0x503dbb('0xa')](function(){const _0x524f87=_0x503dbb;logger[_0x524f87('0x3')](_0x524f87('0x10'),_0x2c17f7);})[_0x503dbb('0x16')](function(_0x137406){const _0x49f903=_0x503dbb;logger[_0x49f903('0x3')](JSON[_0x49f903('0x23')](_0x137406));});});},Migration[_0x543a14('0x6')][_0x543a14('0xe')]=function(_0xff1ce7,_0x3e9226,_0x1392ca){const _0x535446=_0x543a14,_0x476a00=this;this[_0x535446('0x1a')][_0x535446('0x18')](function(){const _0x5dbf41=_0x535446;return _0x476a00[_0x5dbf41('0x20')][_0x5dbf41('0xe')](_0xff1ce7,_0x3e9226,{'indexName':_0x1392ca[_0x5dbf41('0x15')],'indicesType':_0x1392ca['indicesType']})[_0x5dbf41('0xa')](function(){const _0x17f5c8=_0x5dbf41;logger['info'](_0x17f5c8('0x22'),_0xff1ce7,_0x3e9226['join'](','),_0x1392ca[_0x17f5c8('0x15')],_0x1392ca[_0x17f5c8('0x8')]);})[_0x5dbf41('0x16')](function(_0x28e394){const _0x3bb209=_0x5dbf41;logger[_0x3bb209('0x3')](JSON[_0x3bb209('0x23')](_0x28e394));});});},Migration[_0x543a14('0x6')][_0x543a14('0x17')]=function(_0x4db35e,_0xd2a8b2){const _0x2bda32=_0x543a14,_0x333f13=this;this[_0x2bda32('0x1a')]['enqueue'](function(){const _0x5968cb=_0x2bda32;return _0x333f13[_0x5968cb('0x20')]['removeIndex'](_0x4db35e,_0xd2a8b2)[_0x5968cb('0xa')](function(){const _0x501314=_0x5968cb;logger[_0x501314('0x3')](_0x501314('0x11'),_0x4db35e,_0xd2a8b2);})[_0x5968cb('0x16')](function(_0x3bdd22){const _0x15d0cf=_0x5968cb;logger['info'](JSON[_0x15d0cf('0x23')](_0x3bdd22));});});},Migration['prototype'][_0x543a14('0xd')]=function(_0x24a3cc){const _0x1b6431=_0x543a14,_0x2f8aca=this;this[_0x1b6431('0x1a')][_0x1b6431('0x18')](function(){const _0x3c68d2=_0x1b6431;return _0x2f8aca[_0x3c68d2('0x20')][_0x3c68d2('0x4')][_0x3c68d2('0xd')](_0x24a3cc)[_0x3c68d2('0xa')](function(){const _0x56a1c4=_0x3c68d2;logger['info'](_0x56a1c4('0x13'),_0x24a3cc);})[_0x3c68d2('0x16')](function(_0x1a6569){const _0x1dcb65=_0x3c68d2;logger['info'](JSON[_0x1dcb65('0x23')](_0x1a6569));});});},Migration[_0x543a14('0x6')][_0x543a14('0x7')]=function(_0x104af5,_0x34ab77){const _0x2537e2=_0x543a14,_0x54a8ff=this;this[_0x2537e2('0x1a')][_0x2537e2('0x18')](function(){const _0x225a27=_0x2537e2;return _0x54a8ff[_0x225a27('0x20')][_0x225a27('0x7')](_0x104af5,_0x34ab77)[_0x225a27('0xa')](function(){const _0xc0f8d8=_0x225a27;logger[_0xc0f8d8('0x3')](_0xc0f8d8('0x21'),_0x34ab77,_0x104af5);})[_0x225a27('0x16')](function(_0x14328c){logger['info'](util['inspect'](_0x14328c,{'showHidden':![],'depth':null}));});});},Migration[_0x543a14('0x6')][_0x543a14('0x2')]=function(_0x5d45b7,_0x1bc837,_0x22de06){const _0xe50c9f=_0x543a14,_0x3db62b=this;this[_0xe50c9f('0x1a')][_0xe50c9f('0x18')](function(){const _0x100a07=_0xe50c9f;return _0x3db62b[_0x100a07('0x20')][_0x100a07('0x2')](_0x5d45b7,_0x1bc837,_0x22de06)[_0x100a07('0xa')](function(){const _0x837778=_0x100a07;logger[_0x837778('0x3')](_0x837778('0xb'),_0x1bc837,_0x22de06,_0x5d45b7);})[_0x100a07('0x16')](function(_0x3cad3d){const _0x5a757a=_0x100a07;logger[_0x5a757a('0x3')](util['inspect'](_0x3cad3d,{'showHidden':![],'depth':null}));});});},Migration[_0x543a14('0x6')]['final']=function(_0x37b024){const _0x445cad=_0x543a14;this[_0x445cad('0x1a')][_0x445cad('0x18')](function(){return _0x37b024();});},module[_0x543a14('0x1b')]={'up':function(_0x5509ad,_0x206f15){return new Promise(function(_0x31dd7c){const _0x9d56bd=a995_0x53d4,_0x58edd8=new Migration(_0x5509ad);_0x58edd8['addColumn'](_0x9d56bd('0x12'),_0x9d56bd('0xc'),{'type':_0x206f15[_0x9d56bd('0x19')],'defaultValue':0xa}),_0x58edd8[_0x9d56bd('0xd')](_0x9d56bd('0x14')),_0x58edd8[_0x9d56bd('0x1c')](_0x31dd7c);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.13.js b/server/migrations/2.4.13.js index 8bd2561..a2d2a3d 100644 --- a/server/migrations/2.4.13.js +++ b/server/migrations/2.4.13.js @@ -1 +1 @@ -const a996_0x3893=['dropTable','jscripty_projects','addColumn','exports','enqueue','finally','removeIndex','queryInterface','join','final','changeColumn','then','catch','renameColumn','sequence','indexName','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sendUnpauseOnSubmit','info','indicesType','BOOLEAN','prototype','Added\x20column\x20%s\x20to\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequelize','addIndex','util','table\x20dropped\x20%s','Removed\x20column\x20%s\x20from\x20%s','removeColumn','query','stringify','inspect','query\x20%s'];(function(_0x5887a3,_0x38937a){const _0x2526d0=function(_0x5a7973){while(--_0x5a7973){_0x5887a3['push'](_0x5887a3['shift']());}};_0x2526d0(++_0x38937a);}(a996_0x3893,0x119));const a996_0x2526=function(_0x5887a3,_0x38937a){_0x5887a3=_0x5887a3-0x0;let _0x2526d0=a996_0x3893[_0x5887a3];return _0x2526d0;};const _0x4cca1c=a996_0x2526;'use strict';const util=require(_0x4cca1c('0x1a')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x4cca1c('0x15')][_0x4cca1c('0x3')]=function(_0x5a7973){const _0x299177=_0x4cca1c;this[_0x299177('0xf')]=this['tail']?this[_0x299177('0xf')][_0x299177('0x4')](_0x5a7973):_0x5a7973();};const Migration=function(_0x34557d){const _0x19ec7c=_0x4cca1c;this['queryInterface']=_0x34557d,this[_0x19ec7c('0xd')]=new Sequence();};Migration[_0x4cca1c('0x15')][_0x4cca1c('0x9')]=function(_0x1fd38e,_0x1ca3d7,_0x331761){const _0x2864fd=_0x4cca1c,_0xaca8fd=this;this[_0x2864fd('0xd')][_0x2864fd('0x3')](function(){const _0x27c9c6=_0x2864fd;return _0xaca8fd[_0x27c9c6('0x6')][_0x27c9c6('0x9')](_0x1fd38e,_0x1ca3d7,_0x331761)['then'](function(){const _0x16d4cd=_0x27c9c6;logger[_0x16d4cd('0x12')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1ca3d7,_0x1fd38e);})[_0x27c9c6('0xb')](function(_0x205a09){const _0x21b576=_0x27c9c6;logger[_0x21b576('0x12')](JSON['stringify'](_0x205a09));});});},Migration[_0x4cca1c('0x15')][_0x4cca1c('0x1')]=function(_0x6b0b43,_0x318bbf,_0x5d2fe2){const _0x378f97=_0x4cca1c,_0x3d7b74=this;this[_0x378f97('0xd')][_0x378f97('0x3')](function(){const _0x3e96cc=_0x378f97;return _0x3d7b74[_0x3e96cc('0x6')]['addColumn'](_0x6b0b43,_0x318bbf,_0x5d2fe2)[_0x3e96cc('0xa')](function(){const _0x57b25e=_0x3e96cc;logger[_0x57b25e('0x12')](_0x57b25e('0x16'),_0x318bbf,_0x6b0b43);})[_0x3e96cc('0xb')](function(_0x3f3f7b){const _0x1fd5e0=_0x3e96cc;logger[_0x1fd5e0('0x12')](JSON['stringify'](_0x3f3f7b));});});},Migration[_0x4cca1c('0x15')]['dropTable']=function(_0x2a6270){const _0x260a65=_0x4cca1c,_0x57a319=this;this[_0x260a65('0xd')][_0x260a65('0x3')](function(){const _0xe80105=_0x260a65;return _0x57a319['queryInterface'][_0xe80105('0x22')](_0x2a6270,{'force':!![]})[_0xe80105('0xa')](function(){const _0x23bbea=_0xe80105;logger[_0x23bbea('0x12')](_0x23bbea('0x1b'),_0x2a6270);})['catch'](function(_0x1b2a85){const _0xea9e65=_0xe80105;logger[_0xea9e65('0x12')](JSON[_0xea9e65('0x1f')](_0x1b2a85));});});},Migration[_0x4cca1c('0x15')][_0x4cca1c('0x19')]=function(_0x375011,_0x498178,_0x29517d){const _0x25af7b=_0x4cca1c,_0x32a397=this;this[_0x25af7b('0xd')][_0x25af7b('0x3')](function(){const _0x65aed0=_0x25af7b;return _0x32a397[_0x65aed0('0x6')][_0x65aed0('0x19')](_0x375011,_0x498178,{'indexName':_0x29517d['indexName'],'indicesType':_0x29517d['indicesType']})[_0x65aed0('0xa')](function(){const _0x562356=_0x65aed0;logger['info'](_0x562356('0x17'),_0x375011,_0x498178[_0x562356('0x7')](','),_0x29517d[_0x562356('0xe')],_0x29517d[_0x562356('0x13')]);})[_0x65aed0('0xb')](function(_0x43c838){const _0x37cf4f=_0x65aed0;logger[_0x37cf4f('0x12')](JSON[_0x37cf4f('0x1f')](_0x43c838));});});},Migration[_0x4cca1c('0x15')]['removeIndex']=function(_0x53950f,_0x4b898f){const _0x542bd1=_0x4cca1c,_0x2731d6=this;this[_0x542bd1('0xd')][_0x542bd1('0x3')](function(){const _0x46f83a=_0x542bd1;return _0x2731d6[_0x46f83a('0x6')][_0x46f83a('0x5')](_0x53950f,_0x4b898f)[_0x46f83a('0xa')](function(){const _0x24c0ea=_0x46f83a;logger[_0x24c0ea('0x12')]('removeIndex\x20%s\x20%s',_0x53950f,_0x4b898f);})[_0x46f83a('0xb')](function(_0x5d87ee){logger['info'](JSON['stringify'](_0x5d87ee));});});},Migration[_0x4cca1c('0x15')][_0x4cca1c('0x1e')]=function(_0x362a72){const _0xfd2523=_0x4cca1c,_0x35095c=this;this[_0xfd2523('0xd')][_0xfd2523('0x3')](function(){const _0x2bf086=_0xfd2523;return _0x35095c[_0x2bf086('0x6')][_0x2bf086('0x18')]['query'](_0x362a72)[_0x2bf086('0xa')](function(){const _0x249774=_0x2bf086;logger['info'](_0x249774('0x21'),_0x362a72);})[_0x2bf086('0xb')](function(_0x2821bd){const _0xcc40a0=_0x2bf086;logger[_0xcc40a0('0x12')](JSON[_0xcc40a0('0x1f')](_0x2821bd));});});},Migration[_0x4cca1c('0x15')][_0x4cca1c('0x1d')]=function(_0x3a6ec3,_0xe7a91c){const _0x296524=_0x4cca1c,_0x5be2fa=this;this[_0x296524('0xd')][_0x296524('0x3')](function(){const _0x1da23e=_0x296524;return _0x5be2fa[_0x1da23e('0x6')][_0x1da23e('0x1d')](_0x3a6ec3,_0xe7a91c)[_0x1da23e('0xa')](function(){const _0x29c06c=_0x1da23e;logger[_0x29c06c('0x12')](_0x29c06c('0x1c'),_0xe7a91c,_0x3a6ec3);})[_0x1da23e('0xb')](function(_0x4a7e26){const _0x19470b=_0x1da23e;logger['info'](util[_0x19470b('0x20')](_0x4a7e26,{'showHidden':![],'depth':null}));});});},Migration[_0x4cca1c('0x15')][_0x4cca1c('0xc')]=function(_0xbfd6b1,_0x1e7453,_0x491d7e){const _0xebcf19=_0x4cca1c,_0x8955e8=this;this[_0xebcf19('0xd')]['enqueue'](function(){const _0x7159f9=_0xebcf19;return _0x8955e8[_0x7159f9('0x6')][_0x7159f9('0xc')](_0xbfd6b1,_0x1e7453,_0x491d7e)[_0x7159f9('0xa')](function(){const _0x4933d5=_0x7159f9;logger[_0x4933d5('0x12')](_0x4933d5('0x10'),_0x1e7453,_0x491d7e,_0xbfd6b1);})[_0x7159f9('0xb')](function(_0x28095c){const _0x27d9a8=_0x7159f9;logger[_0x27d9a8('0x12')](util[_0x27d9a8('0x20')](_0x28095c,{'showHidden':![],'depth':null}));});});},Migration[_0x4cca1c('0x15')][_0x4cca1c('0x8')]=function(_0x1d3696){const _0x4f9dbd=_0x4cca1c;this[_0x4f9dbd('0xd')][_0x4f9dbd('0x3')](function(){return _0x1d3696();});},module[_0x4cca1c('0x2')]={'up':function(_0x571c0b,_0x2ff1b2){return new Promise(function(_0x1863ce){const _0x3c5b67=a996_0x2526,_0x7fca62=new Migration(_0x571c0b);_0x7fca62[_0x3c5b67('0x1')](_0x3c5b67('0x0'),_0x3c5b67('0x11'),{'type':_0x2ff1b2[_0x3c5b67('0x14')],'defaultValue':![]}),_0x7fca62[_0x3c5b67('0x8')](_0x1863ce);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.14.js b/server/migrations/2.4.14.js index 369855f..95ebc4f 100644 --- a/server/migrations/2.4.14.js +++ b/server/migrations/2.4.14.js @@ -1 +1 @@ -const a997_0x591e=['catch','tail','../config/logger','changeColumn','queryInterface','table\x20dropped\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','info','renameColumn','query\x20%s','indexName','enqueue','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','exports','removeColumn','removeIndex\x20%s\x20%s','sequence','dropTable','then','stringify','removeIndex','finally','inspect','indicesType','prototype','Added\x20column\x20%s\x20to\x20%s','final','join'];(function(_0x12ff05,_0x591e5f){const _0x24d2a5=function(_0x42d323){while(--_0x42d323){_0x12ff05['push'](_0x12ff05['shift']());}};_0x24d2a5(++_0x591e5f);}(a997_0x591e,0x6d));const a997_0x24d2=function(_0x12ff05,_0x591e5f){_0x12ff05=_0x12ff05-0x0;let _0x24d2a5=a997_0x591e[_0x12ff05];return _0x24d2a5;};const _0x42634a=a997_0x24d2;'use strict';const util=require('util'),logger=require(_0x42634a('0x9'))('migration'),Sequence=function(){};Sequence['prototype'][_0x42634a('0x12')]=function(_0x42d323){const _0x501498=_0x42634a;this['tail']=this[_0x501498('0x8')]?this[_0x501498('0x8')][_0x501498('0x0')](_0x42d323):_0x42d323();};const Migration=function(_0xcb0895){const _0xfd4472=_0x42634a;this[_0xfd4472('0xb')]=_0xcb0895,this['sequence']=new Sequence();};Migration[_0x42634a('0x3')][_0x42634a('0xa')]=function(_0x54c695,_0x503889,_0x25e250){const _0x1ab579=_0x42634a,_0x2ee65e=this;this[_0x1ab579('0x18')][_0x1ab579('0x12')](function(){const _0x28cea5=_0x1ab579;return _0x2ee65e[_0x28cea5('0xb')][_0x28cea5('0xa')](_0x54c695,_0x503889,_0x25e250)[_0x28cea5('0x1a')](function(){const _0x21c73a=_0x28cea5;logger[_0x21c73a('0xe')](_0x21c73a('0x14'),_0x503889,_0x54c695);})[_0x28cea5('0x7')](function(_0x456ef4){logger['info'](JSON['stringify'](_0x456ef4));});});},Migration[_0x42634a('0x3')]['addColumn']=function(_0x5a0b40,_0x859c52,_0x4aec3d){const _0x3916df=_0x42634a,_0x5dda93=this;this[_0x3916df('0x18')]['enqueue'](function(){const _0xff9c55=_0x3916df;return _0x5dda93[_0xff9c55('0xb')]['addColumn'](_0x5a0b40,_0x859c52,_0x4aec3d)['then'](function(){const _0x4784b0=_0xff9c55;logger['info'](_0x4784b0('0x4'),_0x859c52,_0x5a0b40);})[_0xff9c55('0x7')](function(_0x50679a){const _0x4c07c9=_0xff9c55;logger[_0x4c07c9('0xe')](JSON[_0x4c07c9('0x1b')](_0x50679a));});});},Migration['prototype'][_0x42634a('0x19')]=function(_0xd46897){const _0x52c70a=_0x42634a,_0x23df32=this;this[_0x52c70a('0x18')][_0x52c70a('0x12')](function(){const _0x53a020=_0x52c70a;return _0x23df32[_0x53a020('0xb')][_0x53a020('0x19')](_0xd46897,{'force':!![]})[_0x53a020('0x1a')](function(){const _0x18fb30=_0x53a020;logger[_0x18fb30('0xe')](_0x18fb30('0xc'),_0xd46897);})['catch'](function(_0x40f157){const _0xc48b60=_0x53a020;logger[_0xc48b60('0xe')](JSON['stringify'](_0x40f157));});});},Migration[_0x42634a('0x3')]['addIndex']=function(_0x40c906,_0x54e6c5,_0x3d2b00){const _0x3de7c1=_0x42634a,_0x5cd1ff=this;this[_0x3de7c1('0x18')][_0x3de7c1('0x12')](function(){const _0xcb1be3=_0x3de7c1;return _0x5cd1ff[_0xcb1be3('0xb')]['addIndex'](_0x40c906,_0x54e6c5,{'indexName':_0x3d2b00[_0xcb1be3('0x11')],'indicesType':_0x3d2b00[_0xcb1be3('0x2')]})[_0xcb1be3('0x1a')](function(){const _0x561b82=_0xcb1be3;logger[_0x561b82('0xe')](_0x561b82('0xd'),_0x40c906,_0x54e6c5[_0x561b82('0x6')](','),_0x3d2b00[_0x561b82('0x11')],_0x3d2b00[_0x561b82('0x2')]);})[_0xcb1be3('0x7')](function(_0x36de28){const _0x2974a0=_0xcb1be3;logger[_0x2974a0('0xe')](JSON[_0x2974a0('0x1b')](_0x36de28));});});},Migration['prototype'][_0x42634a('0x1c')]=function(_0x5a643c,_0xac010f){const _0x58bc61=_0x42634a,_0x3a82e0=this;this[_0x58bc61('0x18')]['enqueue'](function(){const _0x4f8ae8=_0x58bc61;return _0x3a82e0['queryInterface']['removeIndex'](_0x5a643c,_0xac010f)['then'](function(){const _0x1c33fc=a997_0x24d2;logger[_0x1c33fc('0xe')](_0x1c33fc('0x17'),_0x5a643c,_0xac010f);})[_0x4f8ae8('0x7')](function(_0x53d169){logger['info'](JSON['stringify'](_0x53d169));});});},Migration[_0x42634a('0x3')]['query']=function(_0x5df364){const _0x4716cc=_0x42634a,_0x51e159=this;this['sequence'][_0x4716cc('0x12')](function(){const _0x2a8321=_0x4716cc;return _0x51e159[_0x2a8321('0xb')][_0x2a8321('0x13')]['query'](_0x5df364)['then'](function(){const _0x56d4d7=_0x2a8321;logger[_0x56d4d7('0xe')](_0x56d4d7('0x10'),_0x5df364);})['catch'](function(_0x514bd8){const _0x2d421e=_0x2a8321;logger[_0x2d421e('0xe')](JSON[_0x2d421e('0x1b')](_0x514bd8));});});},Migration[_0x42634a('0x3')][_0x42634a('0x16')]=function(_0x6ab26,_0x326899){const _0x5a25fe=_0x42634a,_0x1f4abc=this;this[_0x5a25fe('0x18')]['enqueue'](function(){const _0x27143c=_0x5a25fe;return _0x1f4abc[_0x27143c('0xb')]['removeColumn'](_0x6ab26,_0x326899)[_0x27143c('0x1a')](function(){const _0x3f445c=_0x27143c;logger[_0x3f445c('0xe')]('Removed\x20column\x20%s\x20from\x20%s',_0x326899,_0x6ab26);})[_0x27143c('0x7')](function(_0x360c5b){const _0x26dd96=_0x27143c;logger['info'](util[_0x26dd96('0x1')](_0x360c5b,{'showHidden':![],'depth':null}));});});},Migration[_0x42634a('0x3')][_0x42634a('0xf')]=function(_0x476ab9,_0x3b93be,_0xa4ad69){const _0x27f8d7=_0x42634a,_0x362808=this;this[_0x27f8d7('0x18')][_0x27f8d7('0x12')](function(){const _0x554b93=_0x27f8d7;return _0x362808[_0x554b93('0xb')][_0x554b93('0xf')](_0x476ab9,_0x3b93be,_0xa4ad69)['then'](function(){const _0x370ae5=_0x554b93;logger[_0x370ae5('0xe')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3b93be,_0xa4ad69,_0x476ab9);})['catch'](function(_0x5ba4fe){const _0x50fbec=_0x554b93;logger[_0x50fbec('0xe')](util[_0x50fbec('0x1')](_0x5ba4fe,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x42634a('0x5')]=function(_0x3dc448){const _0x32a368=_0x42634a;this[_0x32a368('0x18')]['enqueue'](function(){return _0x3dc448();});},module[_0x42634a('0x15')]={'up':function(_0x23e4db){return new Promise(function(_0x408902){const _0x390e96=new Migration(_0x23e4db);_0x390e96['final'](_0x408902);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.15.js b/server/migrations/2.4.15.js index 001001b..edcad41 100644 --- a/server/migrations/2.4.15.js +++ b/server/migrations/2.4.15.js @@ -1 +1 @@ -const a998_0x1a49=['then','changeColumn','final','tail','UPDATE\x20sms_accounts\x20SET\x20baseUrl\x20=\x20\x22https://sms.csc.lv\x22\x20WHERE\x20type\x20=\x20\x22csc\x22','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s','exports','removeColumn','info','queryInterface','prototype','renameColumn','table\x20dropped\x20%s','migration','sequelize','indicesType','removeIndex','inspect','sequence','enqueue','indexName','finally','stringify','query','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex\x20%s\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','dropTable','catch'];(function(_0x5a548f,_0x1a49c5){const _0x45aafc=function(_0x467deb){while(--_0x467deb){_0x5a548f['push'](_0x5a548f['shift']());}};_0x45aafc(++_0x1a49c5);}(a998_0x1a49,0x1d6));const a998_0x45aa=function(_0x5a548f,_0x1a49c5){_0x5a548f=_0x5a548f-0x0;let _0x45aafc=a998_0x1a49[_0x5a548f];return _0x45aafc;};const _0x12d782=a998_0x45aa;'use strict';const util=require('util'),logger=require('../config/logger')(_0x12d782('0x18')),Sequence=function(){};Sequence[_0x12d782('0x15')][_0x12d782('0x0')]=function(_0x467deb){const _0x5eb3d7=_0x12d782;this[_0x5eb3d7('0xd')]=this[_0x5eb3d7('0xd')]?this[_0x5eb3d7('0xd')][_0x5eb3d7('0x2')](_0x467deb):_0x467deb();};const Migration=function(_0x3ab53d){const _0x5e855e=_0x12d782;this[_0x5e855e('0x14')]=_0x3ab53d,this[_0x5e855e('0x1d')]=new Sequence();};Migration[_0x12d782('0x15')][_0x12d782('0xb')]=function(_0x21e77b,_0x1959d6,_0x3dcb82){const _0xb1bf6=_0x12d782,_0x5eb9aa=this;this['sequence'][_0xb1bf6('0x0')](function(){const _0x12531a=_0xb1bf6;return _0x5eb9aa[_0x12531a('0x14')]['changeColumn'](_0x21e77b,_0x1959d6,_0x3dcb82)[_0x12531a('0xa')](function(){const _0x38c378=_0x12531a;logger[_0x38c378('0x13')](_0x38c378('0x5'),_0x1959d6,_0x21e77b);})['catch'](function(_0x473f35){const _0x53213a=_0x12531a;logger[_0x53213a('0x13')](JSON[_0x53213a('0x3')](_0x473f35));});});},Migration[_0x12d782('0x15')]['addColumn']=function(_0x25fb51,_0x1d79b6,_0x2e62ed){const _0x261ba3=_0x12d782,_0xce213=this;this[_0x261ba3('0x1d')]['enqueue'](function(){const _0x1bfc9a=_0x261ba3;return _0xce213[_0x1bfc9a('0x14')]['addColumn'](_0x25fb51,_0x1d79b6,_0x2e62ed)[_0x1bfc9a('0xa')](function(){const _0x45fa08=_0x1bfc9a;logger[_0x45fa08('0x13')](_0x45fa08('0xf'),_0x1d79b6,_0x25fb51);})[_0x1bfc9a('0x9')](function(_0x42b8ed){const _0x301f8c=_0x1bfc9a;logger[_0x301f8c('0x13')](JSON[_0x301f8c('0x3')](_0x42b8ed));});});},Migration[_0x12d782('0x15')][_0x12d782('0x8')]=function(_0x67857c){const _0x2ba8fa=_0x12d782,_0x379618=this;this[_0x2ba8fa('0x1d')][_0x2ba8fa('0x0')](function(){const _0x49c2a1=_0x2ba8fa;return _0x379618['queryInterface']['dropTable'](_0x67857c,{'force':!![]})[_0x49c2a1('0xa')](function(){const _0x1f69b4=_0x49c2a1;logger['info'](_0x1f69b4('0x17'),_0x67857c);})[_0x49c2a1('0x9')](function(_0x29ba81){const _0x41cc36=_0x49c2a1;logger[_0x41cc36('0x13')](JSON['stringify'](_0x29ba81));});});},Migration[_0x12d782('0x15')]['addIndex']=function(_0x367bc2,_0x301f57,_0xfb23aa){const _0x131cac=_0x12d782,_0x22d1de=this;this[_0x131cac('0x1d')]['enqueue'](function(){const _0x126ae7=_0x131cac;return _0x22d1de[_0x126ae7('0x14')]['addIndex'](_0x367bc2,_0x301f57,{'indexName':_0xfb23aa[_0x126ae7('0x1')],'indicesType':_0xfb23aa[_0x126ae7('0x1a')]})[_0x126ae7('0xa')](function(){const _0x596f4c=_0x126ae7;logger['info'](_0x596f4c('0x7'),_0x367bc2,_0x301f57['join'](','),_0xfb23aa[_0x596f4c('0x1')],_0xfb23aa[_0x596f4c('0x1a')]);})[_0x126ae7('0x9')](function(_0x17a46f){const _0xe8d86e=_0x126ae7;logger[_0xe8d86e('0x13')](JSON[_0xe8d86e('0x3')](_0x17a46f));});});},Migration[_0x12d782('0x15')][_0x12d782('0x1b')]=function(_0xe45bf5,_0x1d95ea){const _0x6adc12=_0x12d782,_0xf2d9fb=this;this[_0x6adc12('0x1d')][_0x6adc12('0x0')](function(){const _0x4f36a8=_0x6adc12;return _0xf2d9fb[_0x4f36a8('0x14')][_0x4f36a8('0x1b')](_0xe45bf5,_0x1d95ea)[_0x4f36a8('0xa')](function(){const _0x2b0743=_0x4f36a8;logger[_0x2b0743('0x13')](_0x2b0743('0x6'),_0xe45bf5,_0x1d95ea);})[_0x4f36a8('0x9')](function(_0x87232){const _0x2590d9=_0x4f36a8;logger[_0x2590d9('0x13')](JSON[_0x2590d9('0x3')](_0x87232));});});},Migration['prototype'][_0x12d782('0x4')]=function(_0x25368f){const _0x11bf25=_0x12d782,_0x2320df=this;this['sequence'][_0x11bf25('0x0')](function(){const _0x4c4630=_0x11bf25;return _0x2320df[_0x4c4630('0x14')][_0x4c4630('0x19')][_0x4c4630('0x4')](_0x25368f)[_0x4c4630('0xa')](function(){const _0x55cf52=_0x4c4630;logger[_0x55cf52('0x13')]('query\x20%s',_0x25368f);})[_0x4c4630('0x9')](function(_0x16a6a8){const _0x268513=_0x4c4630;logger[_0x268513('0x13')](JSON[_0x268513('0x3')](_0x16a6a8));});});},Migration[_0x12d782('0x15')][_0x12d782('0x12')]=function(_0x454ca2,_0x26f432){const _0x1fe2d8=_0x12d782,_0x1fcc8e=this;this[_0x1fe2d8('0x1d')][_0x1fe2d8('0x0')](function(){const _0x57af73=_0x1fe2d8;return _0x1fcc8e[_0x57af73('0x14')]['removeColumn'](_0x454ca2,_0x26f432)[_0x57af73('0xa')](function(){const _0x38d3a0=_0x57af73;logger[_0x38d3a0('0x13')](_0x38d3a0('0x10'),_0x26f432,_0x454ca2);})[_0x57af73('0x9')](function(_0x32335b){const _0x1186d8=_0x57af73;logger[_0x1186d8('0x13')](util['inspect'](_0x32335b,{'showHidden':![],'depth':null}));});});},Migration[_0x12d782('0x15')][_0x12d782('0x16')]=function(_0x536caf,_0x3c63b9,_0x5dd92c){const _0x3b51c8=_0x12d782,_0x199d3b=this;this[_0x3b51c8('0x1d')]['enqueue'](function(){const _0x12068b=_0x3b51c8;return _0x199d3b[_0x12068b('0x14')]['renameColumn'](_0x536caf,_0x3c63b9,_0x5dd92c)[_0x12068b('0xa')](function(){const _0x4a0b5c=_0x12068b;logger[_0x4a0b5c('0x13')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3c63b9,_0x5dd92c,_0x536caf);})[_0x12068b('0x9')](function(_0x39e505){const _0x558a6e=_0x12068b;logger[_0x558a6e('0x13')](util[_0x558a6e('0x1c')](_0x39e505,{'showHidden':![],'depth':null}));});});},Migration[_0x12d782('0x15')][_0x12d782('0xc')]=function(_0x1233ea){const _0x538190=_0x12d782;this[_0x538190('0x1d')][_0x538190('0x0')](function(){return _0x1233ea();});},module[_0x12d782('0x11')]={'up':function(_0x2348b9){return new Promise(function(_0x74379d){const _0x47e3de=a998_0x45aa,_0x536d09=new Migration(_0x2348b9);_0x536d09[_0x47e3de('0x4')](_0x47e3de('0xe')),_0x536d09[_0x47e3de('0xc')](_0x74379d);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.16.js b/server/migrations/2.4.16.js index b4a4908..02e0f82 100644 --- a/server/migrations/2.4.16.js +++ b/server/migrations/2.4.16.js @@ -1 +1 @@ -const a999_0x1e8a=['query','queryInterface','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','enqueue','removeIndex\x20%s\x20%s','changeColumn','fti_cm_contacts','dropTable','then','removeIndex','info','addColumn','prototype','removeColumn','migration','exports','final','mobile','addIndex','lastName','Added\x20column\x20%s\x20to\x20%s','cm_contacts','catch','sequence','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','../config/logger','join','stringify','finally','indexName','tail','indicesType','renameColumn'];(function(_0x5cca9d,_0x1e8a3a){const _0x3d4cc2=function(_0x7f114a){while(--_0x7f114a){_0x5cca9d['push'](_0x5cca9d['shift']());}};_0x3d4cc2(++_0x1e8a3a);}(a999_0x1e8a,0xd2));const a999_0x3d4c=function(_0x5cca9d,_0x1e8a3a){_0x5cca9d=_0x5cca9d-0x0;let _0x3d4cc2=a999_0x1e8a[_0x5cca9d];return _0x3d4cc2;};const _0x32e456=a999_0x3d4c;'use strict';const util=require('util'),logger=require(_0x32e456('0x1b'))(_0x32e456('0xf')),Sequence=function(){};Sequence[_0x32e456('0xd')][_0x32e456('0x4')]=function(_0x7f114a){const _0x503ea4=_0x32e456;this[_0x503ea4('0x20')]=this[_0x503ea4('0x20')]?this[_0x503ea4('0x20')][_0x503ea4('0x1e')](_0x7f114a):_0x7f114a();};const Migration=function(_0x111ed4){const _0x1bb79c=_0x32e456;this[_0x1bb79c('0x1')]=_0x111ed4,this[_0x1bb79c('0x18')]=new Sequence();};Migration[_0x32e456('0xd')][_0x32e456('0x6')]=function(_0x5a7c15,_0x3e36a2,_0x6212ff){const _0x4e5192=this;this['sequence']['enqueue'](function(){const _0x2f165a=a999_0x3d4c;return _0x4e5192[_0x2f165a('0x1')][_0x2f165a('0x6')](_0x5a7c15,_0x3e36a2,_0x6212ff)[_0x2f165a('0x9')](function(){const _0xc7a042=_0x2f165a;logger[_0xc7a042('0xb')](_0xc7a042('0x2'),_0x3e36a2,_0x5a7c15);})[_0x2f165a('0x17')](function(_0x20386d){const _0x4f03d4=_0x2f165a;logger[_0x4f03d4('0xb')](JSON[_0x4f03d4('0x1d')](_0x20386d));});});},Migration['prototype'][_0x32e456('0xc')]=function(_0x1108bf,_0x5a2470,_0x2ab770){const _0x53a930=_0x32e456,_0x497e91=this;this[_0x53a930('0x18')]['enqueue'](function(){const _0x4c1750=_0x53a930;return _0x497e91[_0x4c1750('0x1')][_0x4c1750('0xc')](_0x1108bf,_0x5a2470,_0x2ab770)[_0x4c1750('0x9')](function(){const _0x137332=_0x4c1750;logger[_0x137332('0xb')](_0x137332('0x15'),_0x5a2470,_0x1108bf);})[_0x4c1750('0x17')](function(_0x2f8ff3){const _0x4f85ea=_0x4c1750;logger[_0x4f85ea('0xb')](JSON[_0x4f85ea('0x1d')](_0x2f8ff3));});});},Migration[_0x32e456('0xd')]['dropTable']=function(_0x589c40){const _0x2e3906=_0x32e456,_0x46f508=this;this[_0x2e3906('0x18')][_0x2e3906('0x4')](function(){const _0x208ee0=_0x2e3906;return _0x46f508[_0x208ee0('0x1')][_0x208ee0('0x8')](_0x589c40,{'force':!![]})[_0x208ee0('0x9')](function(){const _0x1df0f4=_0x208ee0;logger[_0x1df0f4('0xb')](_0x1df0f4('0x19'),_0x589c40);})[_0x208ee0('0x17')](function(_0x28e07f){const _0x6cd177=_0x208ee0;logger[_0x6cd177('0xb')](JSON['stringify'](_0x28e07f));});});},Migration[_0x32e456('0xd')][_0x32e456('0x13')]=function(_0x5164c9,_0xc49e0f,_0xe57b0c){const _0x16fe9c=_0x32e456,_0x4b81ce=this;this[_0x16fe9c('0x18')][_0x16fe9c('0x4')](function(){const _0x57da65=_0x16fe9c;return _0x4b81ce[_0x57da65('0x1')][_0x57da65('0x13')](_0x5164c9,_0xc49e0f,{'indexName':_0xe57b0c['indexName'],'indicesType':_0xe57b0c[_0x57da65('0x21')]})[_0x57da65('0x9')](function(){const _0x55cf17=_0x57da65;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x5164c9,_0xc49e0f[_0x55cf17('0x1c')](','),_0xe57b0c[_0x55cf17('0x1f')],_0xe57b0c[_0x55cf17('0x21')]);})[_0x57da65('0x17')](function(_0x7593a6){logger['info'](JSON['stringify'](_0x7593a6));});});},Migration[_0x32e456('0xd')][_0x32e456('0xa')]=function(_0x26c751,_0x2912f4){const _0x4ff08a=_0x32e456,_0x396435=this;this[_0x4ff08a('0x18')][_0x4ff08a('0x4')](function(){const _0x2b4b1b=_0x4ff08a;return _0x396435[_0x2b4b1b('0x1')]['removeIndex'](_0x26c751,_0x2912f4)[_0x2b4b1b('0x9')](function(){const _0x187e4c=_0x2b4b1b;logger['info'](_0x187e4c('0x5'),_0x26c751,_0x2912f4);})[_0x2b4b1b('0x17')](function(_0x585ea7){const _0x8b0fab=_0x2b4b1b;logger[_0x8b0fab('0xb')](JSON[_0x8b0fab('0x1d')](_0x585ea7));});});},Migration[_0x32e456('0xd')][_0x32e456('0x0')]=function(_0x3df2a2){const _0x424ba5=_0x32e456,_0x4de2fe=this;this[_0x424ba5('0x18')]['enqueue'](function(){const _0x3180a3=_0x424ba5;return _0x4de2fe['queryInterface']['sequelize'][_0x3180a3('0x0')](_0x3df2a2)['then'](function(){logger['info']('query\x20%s',_0x3df2a2);})[_0x3180a3('0x17')](function(_0x12ba2b){const _0x299c34=_0x3180a3;logger[_0x299c34('0xb')](JSON['stringify'](_0x12ba2b));});});},Migration[_0x32e456('0xd')][_0x32e456('0xe')]=function(_0xec6b27,_0x2f4a1f){const _0x161b8b=this;this['sequence']['enqueue'](function(){const _0x580aa6=a999_0x3d4c;return _0x161b8b[_0x580aa6('0x1')][_0x580aa6('0xe')](_0xec6b27,_0x2f4a1f)[_0x580aa6('0x9')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x2f4a1f,_0xec6b27);})[_0x580aa6('0x17')](function(_0x1bf1ac){const _0x2000de=_0x580aa6;logger[_0x2000de('0xb')](util[_0x2000de('0x3')](_0x1bf1ac,{'showHidden':![],'depth':null}));});});},Migration[_0x32e456('0xd')][_0x32e456('0x22')]=function(_0xcb025e,_0x43959d,_0x4b81e1){const _0x5daa31=_0x32e456,_0x37e2e5=this;this[_0x5daa31('0x18')]['enqueue'](function(){const _0x20ba25=_0x5daa31;return _0x37e2e5['queryInterface'][_0x20ba25('0x22')](_0xcb025e,_0x43959d,_0x4b81e1)[_0x20ba25('0x9')](function(){const _0x26ce45=_0x20ba25;logger[_0x26ce45('0xb')](_0x26ce45('0x1a'),_0x43959d,_0x4b81e1,_0xcb025e);})[_0x20ba25('0x17')](function(_0xe570bb){const _0x2c7de0=_0x20ba25;logger[_0x2c7de0('0xb')](util[_0x2c7de0('0x3')](_0xe570bb,{'showHidden':![],'depth':null}));});});},Migration[_0x32e456('0xd')][_0x32e456('0x11')]=function(_0x6c9215){const _0x168cb7=_0x32e456;this['sequence'][_0x168cb7('0x4')](function(){return _0x6c9215();});},module[_0x32e456('0x10')]={'up':function(_0x280b79){return new Promise(function(_0x9d5f4d){const _0x22b6b0=a999_0x3d4c,_0x42b333=new Migration(_0x280b79);_0x42b333[_0x22b6b0('0x13')](_0x22b6b0('0x16'),['firstName',_0x22b6b0('0x14'),'phone',_0x22b6b0('0x12'),'fax','email'],{'indexName':_0x22b6b0('0x7'),'indicesType':'FULLTEXT'}),_0x42b333[_0x22b6b0('0x11')](_0x9d5f4d);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.17.js b/server/migrations/2.4.17.js index fbab53d..bc30d6c 100644 --- a/server/migrations/2.4.17.js +++ b/server/migrations/2.4.17.js @@ -1 +1 @@ -const a1000_0x39e8=['query','Added\x20column\x20%s\x20to\x20%s','then','prototype','enqueue','renameColumn','indexName','sequelize','sequence','catch','addIndex\x20%s\x20%s\x20%s\x20[%s]','tail','indicesType','removeColumn','addIndex','queryInterface','removeIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','dropTable','finally','table\x20dropped\x20%s','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','final','removeIndex\x20%s\x20%s','inspect','info','query\x20%s','stringify','util','addColumn'];(function(_0xe5ff07,_0x39e887){const _0x14d68b=function(_0x4911a0){while(--_0x4911a0){_0xe5ff07['push'](_0xe5ff07['shift']());}};_0x14d68b(++_0x39e887);}(a1000_0x39e8,0x18d));const a1000_0x14d6=function(_0xe5ff07,_0x39e887){_0xe5ff07=_0xe5ff07-0x0;let _0x14d68b=a1000_0x39e8[_0xe5ff07];return _0x14d68b;};const _0x51eb21=a1000_0x14d6;'use strict';const util=require(_0x51eb21('0x11')),logger=require(_0x51eb21('0x5'))('migration'),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x4911a0){const _0x3cae7b=_0x51eb21;this['tail']=this[_0x3cae7b('0x1e')]?this[_0x3cae7b('0x1e')][_0x3cae7b('0x7')](_0x4911a0):_0x4911a0();};const Migration=function(_0x54c613){const _0x15b7aa=_0x51eb21;this[_0x15b7aa('0x2')]=_0x54c613,this['sequence']=new Sequence();};Migration[_0x51eb21('0x16')][_0x51eb21('0x9')]=function(_0x2f9eb5,_0x34e5fc,_0x436fcc){const _0x3b25c0=_0x51eb21,_0x2733b4=this;this[_0x3b25c0('0x1b')]['enqueue'](function(){const _0x19c7fd=_0x3b25c0;return _0x2733b4[_0x19c7fd('0x2')][_0x19c7fd('0x9')](_0x2f9eb5,_0x34e5fc,_0x436fcc)[_0x19c7fd('0x15')](function(){const _0x6b542b=_0x19c7fd;logger[_0x6b542b('0xe')](_0x6b542b('0x4'),_0x34e5fc,_0x2f9eb5);})[_0x19c7fd('0x1c')](function(_0x5852c2){const _0x3406fa=_0x19c7fd;logger[_0x3406fa('0xe')](JSON[_0x3406fa('0x10')](_0x5852c2));});});},Migration[_0x51eb21('0x16')][_0x51eb21('0x12')]=function(_0x2ca464,_0x75d6a4,_0x15db12){const _0x124e98=_0x51eb21,_0x52edde=this;this[_0x124e98('0x1b')][_0x124e98('0x17')](function(){const _0x94f937=_0x124e98;return _0x52edde[_0x94f937('0x2')]['addColumn'](_0x2ca464,_0x75d6a4,_0x15db12)[_0x94f937('0x15')](function(){const _0x180c95=_0x94f937;logger['info'](_0x180c95('0x14'),_0x75d6a4,_0x2ca464);})[_0x94f937('0x1c')](function(_0x4af3c8){const _0x5e127e=_0x94f937;logger[_0x5e127e('0xe')](JSON['stringify'](_0x4af3c8));});});},Migration['prototype']['dropTable']=function(_0x4289e2){const _0x178271=_0x51eb21,_0xa904fe=this;this[_0x178271('0x1b')][_0x178271('0x17')](function(){const _0x1fb901=_0x178271;return _0xa904fe[_0x1fb901('0x2')][_0x1fb901('0x6')](_0x4289e2,{'force':!![]})['then'](function(){const _0x1caa09=_0x1fb901;logger[_0x1caa09('0xe')](_0x1caa09('0x8'),_0x4289e2);})[_0x1fb901('0x1c')](function(_0x19208c){const _0x4af56a=_0x1fb901;logger[_0x4af56a('0xe')](JSON['stringify'](_0x19208c));});});},Migration[_0x51eb21('0x16')][_0x51eb21('0x1')]=function(_0x47a201,_0x540d6b,_0x4f488e){const _0x3c89cc=_0x51eb21,_0x2074da=this;this['sequence'][_0x3c89cc('0x17')](function(){const _0x502c32=_0x3c89cc;return _0x2074da[_0x502c32('0x2')][_0x502c32('0x1')](_0x47a201,_0x540d6b,{'indexName':_0x4f488e[_0x502c32('0x19')],'indicesType':_0x4f488e[_0x502c32('0x1f')]})[_0x502c32('0x15')](function(){const _0x12b758=_0x502c32;logger[_0x12b758('0xe')](_0x12b758('0x1d'),_0x47a201,_0x540d6b['join'](','),_0x4f488e[_0x12b758('0x19')],_0x4f488e[_0x12b758('0x1f')]);})['catch'](function(_0x5e75ea){const _0x1760a6=_0x502c32;logger[_0x1760a6('0xe')](JSON[_0x1760a6('0x10')](_0x5e75ea));});});},Migration['prototype'][_0x51eb21('0x3')]=function(_0x269856,_0x5a766e){const _0x1afe06=_0x51eb21,_0x2a2985=this;this[_0x1afe06('0x1b')][_0x1afe06('0x17')](function(){const _0x5555e1=_0x1afe06;return _0x2a2985[_0x5555e1('0x2')][_0x5555e1('0x3')](_0x269856,_0x5a766e)[_0x5555e1('0x15')](function(){const _0x300a03=_0x5555e1;logger[_0x300a03('0xe')](_0x300a03('0xc'),_0x269856,_0x5a766e);})['catch'](function(_0x3f43c4){const _0x3b6f99=_0x5555e1;logger[_0x3b6f99('0xe')](JSON[_0x3b6f99('0x10')](_0x3f43c4));});});},Migration[_0x51eb21('0x16')][_0x51eb21('0x13')]=function(_0x510066){const _0x29ee44=_0x51eb21,_0x4f63be=this;this[_0x29ee44('0x1b')][_0x29ee44('0x17')](function(){const _0xb18578=_0x29ee44;return _0x4f63be['queryInterface'][_0xb18578('0x1a')][_0xb18578('0x13')](_0x510066)[_0xb18578('0x15')](function(){const _0x49580e=_0xb18578;logger[_0x49580e('0xe')](_0x49580e('0xf'),_0x510066);})[_0xb18578('0x1c')](function(_0x14e742){const _0x3bdb42=_0xb18578;logger[_0x3bdb42('0xe')](JSON['stringify'](_0x14e742));});});},Migration[_0x51eb21('0x16')][_0x51eb21('0x0')]=function(_0x4f49cd,_0x53ac14){const _0x167b25=_0x51eb21,_0x2ab2d5=this;this[_0x167b25('0x1b')]['enqueue'](function(){const _0x2431dc=_0x167b25;return _0x2ab2d5[_0x2431dc('0x2')][_0x2431dc('0x0')](_0x4f49cd,_0x53ac14)[_0x2431dc('0x15')](function(){const _0x4c8da6=_0x2431dc;logger[_0x4c8da6('0xe')]('Removed\x20column\x20%s\x20from\x20%s',_0x53ac14,_0x4f49cd);})[_0x2431dc('0x1c')](function(_0x1c2968){const _0x4ae431=_0x2431dc;logger['info'](util[_0x4ae431('0xd')](_0x1c2968,{'showHidden':![],'depth':null}));});});},Migration[_0x51eb21('0x16')][_0x51eb21('0x18')]=function(_0x5f558f,_0x32acb7,_0x5e3ab4){const _0x393b7f=_0x51eb21,_0x1b2c34=this;this['sequence'][_0x393b7f('0x17')](function(){const _0x16f0f2=_0x393b7f;return _0x1b2c34[_0x16f0f2('0x2')]['renameColumn'](_0x5f558f,_0x32acb7,_0x5e3ab4)[_0x16f0f2('0x15')](function(){const _0x465283=_0x16f0f2;logger[_0x465283('0xe')](_0x465283('0xa'),_0x32acb7,_0x5e3ab4,_0x5f558f);})[_0x16f0f2('0x1c')](function(_0x5534db){const _0x5e840d=_0x16f0f2;logger[_0x5e840d('0xe')](util[_0x5e840d('0xd')](_0x5534db,{'showHidden':![],'depth':null}));});});},Migration[_0x51eb21('0x16')][_0x51eb21('0xb')]=function(_0x5c3808){const _0x15f410=_0x51eb21;this[_0x15f410('0x1b')][_0x15f410('0x17')](function(){return _0x5c3808();});},module['exports']={'up':function(_0x1f9f2e){return new Promise(function(_0x2f89b4){const _0x494686=a1000_0x14d6,_0x20df3b=new Migration(_0x1f9f2e);_0x20df3b[_0x494686('0xb')](_0x2f89b4);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.18.js b/server/migrations/2.4.18.js index 19f82da..936c3f4 100644 --- a/server/migrations/2.4.18.js +++ b/server/migrations/2.4.18.js @@ -1 +1 @@ -const a1001_0x334f=['Added\x20column\x20%s\x20to\x20%s','queryInterface','catch','query','removeIndex\x20%s\x20%s','indexName','../config/logger','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex','UPDATE\x20voice_queues\x20SET\x20leavewhenempty\x20=\x20\x22no\x22\x20WHERE\x20leavewhenempty\x20=\x20\x27\x27\x20or\x20leavewhenempty\x20IS\x20NULL','exports','finally','enqueue','removeIndex','indicesType','info','addIndex\x20%s\x20%s\x20%s\x20[%s]','query\x20%s','addColumn','UPDATE\x20voice_queues\x20SET\x20joinempty\x20=\x20\x22yes\x22\x20WHERE\x20joinempty\x20=\x20\x27\x27\x20or\x20joinempty\x20IS\x20NULL','migration','changeColumn','prototype','util','then','tail','sequence','dropTable','inspect','final','removeColumn','table\x20dropped\x20%s','stringify'];(function(_0x278d37,_0x334f72){const _0x157cc6=function(_0x225c3c){while(--_0x225c3c){_0x278d37['push'](_0x278d37['shift']());}};_0x157cc6(++_0x334f72);}(a1001_0x334f,0x10d));const a1001_0x157c=function(_0x278d37,_0x334f72){_0x278d37=_0x278d37-0x0;let _0x157cc6=a1001_0x334f[_0x278d37];return _0x157cc6;};const _0x387509=a1001_0x157c;'use strict';const util=require(_0x387509('0x12')),logger=require(_0x387509('0x1'))(_0x387509('0xf')),Sequence=function(){};Sequence['prototype'][_0x387509('0x7')]=function(_0x225c3c){const _0x34fb7e=_0x387509;this['tail']=this[_0x34fb7e('0x14')]?this[_0x34fb7e('0x14')][_0x34fb7e('0x6')](_0x225c3c):_0x225c3c();};const Migration=function(_0x9f2ec6){const _0x281933=_0x387509;this[_0x281933('0x1d')]=_0x9f2ec6,this['sequence']=new Sequence();};Migration[_0x387509('0x11')]['changeColumn']=function(_0x32b155,_0x5d951e,_0xfb2c0e){const _0x2423c3=_0x387509,_0x3c20e8=this;this[_0x2423c3('0x15')][_0x2423c3('0x7')](function(){const _0x550fa1=_0x2423c3;return _0x3c20e8[_0x550fa1('0x1d')][_0x550fa1('0x10')](_0x32b155,_0x5d951e,_0xfb2c0e)['then'](function(){const _0x291a67=_0x550fa1;logger[_0x291a67('0xa')](_0x291a67('0x2'),_0x5d951e,_0x32b155);})[_0x550fa1('0x1e')](function(_0x4ed12f){const _0x5bf3bf=_0x550fa1;logger['info'](JSON[_0x5bf3bf('0x1b')](_0x4ed12f));});});},Migration[_0x387509('0x11')]['addColumn']=function(_0x158a0a,_0x3d488e,_0x16c956){const _0x51a1a0=_0x387509,_0x5b7992=this;this[_0x51a1a0('0x15')]['enqueue'](function(){const _0x30559b=_0x51a1a0;return _0x5b7992['queryInterface'][_0x30559b('0xd')](_0x158a0a,_0x3d488e,_0x16c956)[_0x30559b('0x13')](function(){const _0x133e27=_0x30559b;logger[_0x133e27('0xa')](_0x133e27('0x1c'),_0x3d488e,_0x158a0a);})['catch'](function(_0x4c2d57){const _0x1aa19f=_0x30559b;logger[_0x1aa19f('0xa')](JSON[_0x1aa19f('0x1b')](_0x4c2d57));});});},Migration[_0x387509('0x11')][_0x387509('0x16')]=function(_0x438a59){const _0x543295=_0x387509,_0x3f498e=this;this['sequence'][_0x543295('0x7')](function(){const _0x3da1df=_0x543295;return _0x3f498e[_0x3da1df('0x1d')][_0x3da1df('0x16')](_0x438a59,{'force':!![]})['then'](function(){const _0x73dba=_0x3da1df;logger['info'](_0x73dba('0x1a'),_0x438a59);})['catch'](function(_0xfede9e){const _0x357379=_0x3da1df;logger[_0x357379('0xa')](JSON[_0x357379('0x1b')](_0xfede9e));});});},Migration['prototype'][_0x387509('0x3')]=function(_0x9cc5ba,_0x1a362e,_0x16ab7c){const _0x1b707c=_0x387509,_0x38f31c=this;this[_0x1b707c('0x15')][_0x1b707c('0x7')](function(){const _0x4f8ed4=_0x1b707c;return _0x38f31c[_0x4f8ed4('0x1d')]['addIndex'](_0x9cc5ba,_0x1a362e,{'indexName':_0x16ab7c[_0x4f8ed4('0x0')],'indicesType':_0x16ab7c[_0x4f8ed4('0x9')]})[_0x4f8ed4('0x13')](function(){const _0xd337d0=_0x4f8ed4;logger['info'](_0xd337d0('0xb'),_0x9cc5ba,_0x1a362e['join'](','),_0x16ab7c['indexName'],_0x16ab7c['indicesType']);})[_0x4f8ed4('0x1e')](function(_0x262e54){logger['info'](JSON['stringify'](_0x262e54));});});},Migration[_0x387509('0x11')][_0x387509('0x8')]=function(_0x5bc83d,_0x732885){const _0xebac5b=_0x387509,_0x452c72=this;this[_0xebac5b('0x15')][_0xebac5b('0x7')](function(){const _0x33db85=_0xebac5b;return _0x452c72['queryInterface']['removeIndex'](_0x5bc83d,_0x732885)['then'](function(){const _0x530bbf=a1001_0x157c;logger['info'](_0x530bbf('0x20'),_0x5bc83d,_0x732885);})[_0x33db85('0x1e')](function(_0x2828ae){const _0x7f5dab=_0x33db85;logger[_0x7f5dab('0xa')](JSON[_0x7f5dab('0x1b')](_0x2828ae));});});},Migration[_0x387509('0x11')][_0x387509('0x1f')]=function(_0x5d1ee6){const _0x1c8438=_0x387509,_0x506b72=this;this[_0x1c8438('0x15')]['enqueue'](function(){const _0x5d0d23=_0x1c8438;return _0x506b72['queryInterface']['sequelize'][_0x5d0d23('0x1f')](_0x5d1ee6)['then'](function(){const _0x386833=_0x5d0d23;logger[_0x386833('0xa')](_0x386833('0xc'),_0x5d1ee6);})[_0x5d0d23('0x1e')](function(_0x28b175){const _0x5694a0=_0x5d0d23;logger[_0x5694a0('0xa')](JSON[_0x5694a0('0x1b')](_0x28b175));});});},Migration[_0x387509('0x11')][_0x387509('0x19')]=function(_0x217026,_0xec9780){const _0xc11b24=_0x387509,_0x36a6ff=this;this[_0xc11b24('0x15')][_0xc11b24('0x7')](function(){const _0x54a18e=_0xc11b24;return _0x36a6ff[_0x54a18e('0x1d')][_0x54a18e('0x19')](_0x217026,_0xec9780)[_0x54a18e('0x13')](function(){const _0x3c05cd=_0x54a18e;logger[_0x3c05cd('0xa')]('Removed\x20column\x20%s\x20from\x20%s',_0xec9780,_0x217026);})['catch'](function(_0x38c15d){logger['info'](util['inspect'](_0x38c15d,{'showHidden':![],'depth':null}));});});},Migration[_0x387509('0x11')]['renameColumn']=function(_0x317dd7,_0x49d29f,_0x34603a){const _0x2d2f4d=_0x387509,_0x1fa071=this;this[_0x2d2f4d('0x15')]['enqueue'](function(){const _0x1c51a4=_0x2d2f4d;return _0x1fa071['queryInterface']['renameColumn'](_0x317dd7,_0x49d29f,_0x34603a)[_0x1c51a4('0x13')](function(){const _0x264fd9=_0x1c51a4;logger[_0x264fd9('0xa')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x49d29f,_0x34603a,_0x317dd7);})['catch'](function(_0x2c3367){const _0x142b07=_0x1c51a4;logger[_0x142b07('0xa')](util[_0x142b07('0x17')](_0x2c3367,{'showHidden':![],'depth':null}));});});},Migration[_0x387509('0x11')]['final']=function(_0x1f3da7){this['sequence']['enqueue'](function(){return _0x1f3da7();});},module[_0x387509('0x5')]={'up':function(_0x59175c){return new Promise(function(_0x2aa950){const _0x239444=a1001_0x157c,_0x2ff384=new Migration(_0x59175c);_0x2ff384[_0x239444('0x1f')](_0x239444('0xe')),_0x2ff384['query'](_0x239444('0x4')),_0x2ff384[_0x239444('0x18')](_0x2aa950);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.19.js b/server/migrations/2.4.19.js index 299d052..5d8f26f 100644 --- a/server/migrations/2.4.19.js +++ b/server/migrations/2.4.19.js @@ -1 +1 @@ -const a1002_0x1ecf=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','turn','contact','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','migration','then','lead','type','enqueue','username','queryInterface','Added\x20column\x20%s\x20to\x20%s','query\x20%s','exports','ENUM','addIndex','stringify','removeIndex','prototype','query','stun','nothing','removeColumn','../config/logger','renameColumn','join','contact_lead','util','addColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','changeColumn','indicesType','int_zoho_configurations','inspect','sequence','Contacts','table\x20dropped\x20%s','indexName','externip','dropTable','removeIndex\x20%s\x20%s','tail','final','Leads','Changed\x20column\x20%s\x20in\x20table\x20%s','moduleSearch','info','UPDATE\x20int_zoho_configurations\x20SET\x20moduleCreate\x20=\x20\x27contact\x27\x20WHERE\x20moduleCreate\x20=\x20\x27Contacts\x27','sequelize','network','catch'];(function(_0x5eb267,_0x1ecfc4){const _0x25cb1c=function(_0x44a535){while(--_0x44a535){_0x5eb267['push'](_0x5eb267['shift']());}};_0x25cb1c(++_0x1ecfc4);}(a1002_0x1ecf,0x174));const a1002_0x25cb=function(_0x5eb267,_0x1ecfc4){_0x5eb267=_0x5eb267-0x0;let _0x25cb1c=a1002_0x1ecf[_0x5eb267];return _0x25cb1c;};const _0x3d2655=a1002_0x25cb;'use strict';const util=require(_0x3d2655('0xc')),logger=require(_0x3d2655('0x8'))(_0x3d2655('0x28')),Sequence=function(){};Sequence[_0x3d2655('0x3')][_0x3d2655('0x2c')]=function(_0x44a535){const _0x38138f=_0x3d2655;this[_0x38138f('0x1a')]=this[_0x38138f('0x1a')]?this['tail']['finally'](_0x44a535):_0x44a535();};const Migration=function(_0x5bb110){const _0x52f317=_0x3d2655;this['queryInterface']=_0x5bb110,this[_0x52f317('0x13')]=new Sequence();};Migration[_0x3d2655('0x3')][_0x3d2655('0xf')]=function(_0x22d5bb,_0x451d1a,_0x4971a7){const _0x2e8cbe=_0x3d2655,_0xa48ece=this;this['sequence'][_0x2e8cbe('0x2c')](function(){const _0x43c3ff=_0x2e8cbe;return _0xa48ece[_0x43c3ff('0x2e')][_0x43c3ff('0xf')](_0x22d5bb,_0x451d1a,_0x4971a7)[_0x43c3ff('0x29')](function(){const _0x8ef5b1=_0x43c3ff;logger['info'](_0x8ef5b1('0x1d'),_0x451d1a,_0x22d5bb);})['catch'](function(_0x2516ac){const _0x6347be=_0x43c3ff;logger[_0x6347be('0x1f')](JSON[_0x6347be('0x1')](_0x2516ac));});});},Migration[_0x3d2655('0x3')][_0x3d2655('0xd')]=function(_0x293311,_0x5e884a,_0x3f314b){const _0x566c59=_0x3d2655,_0x3167b4=this;this[_0x566c59('0x13')][_0x566c59('0x2c')](function(){const _0xb2074b=_0x566c59;return _0x3167b4[_0xb2074b('0x2e')][_0xb2074b('0xd')](_0x293311,_0x5e884a,_0x3f314b)['then'](function(){const _0x75049c=_0xb2074b;logger['info'](_0x75049c('0x2f'),_0x5e884a,_0x293311);})['catch'](function(_0x55ff8a){const _0x380032=_0xb2074b;logger[_0x380032('0x1f')](JSON[_0x380032('0x1')](_0x55ff8a));});});},Migration['prototype'][_0x3d2655('0x18')]=function(_0x4d6bb4){const _0x4abce4=_0x3d2655,_0x3b5ca3=this;this[_0x4abce4('0x13')][_0x4abce4('0x2c')](function(){const _0x327172=_0x4abce4;return _0x3b5ca3['queryInterface'][_0x327172('0x18')](_0x4d6bb4,{'force':!![]})[_0x327172('0x29')](function(){const _0xceb581=_0x327172;logger[_0xceb581('0x1f')](_0xceb581('0x15'),_0x4d6bb4);})['catch'](function(_0x31823e){const _0x5a0c86=_0x327172;logger[_0x5a0c86('0x1f')](JSON['stringify'](_0x31823e));});});},Migration['prototype'][_0x3d2655('0x0')]=function(_0x4dd46,_0x576af0,_0x1821dc){const _0x1726f8=_0x3d2655,_0x230b43=this;this[_0x1726f8('0x13')][_0x1726f8('0x2c')](function(){const _0x21a1f6=_0x1726f8;return _0x230b43[_0x21a1f6('0x2e')][_0x21a1f6('0x0')](_0x4dd46,_0x576af0,{'indexName':_0x1821dc[_0x21a1f6('0x16')],'indicesType':_0x1821dc['indicesType']})['then'](function(){const _0x1295cd=_0x21a1f6;logger['info'](_0x1295cd('0xe'),_0x4dd46,_0x576af0[_0x1295cd('0xa')](','),_0x1821dc[_0x1295cd('0x16')],_0x1821dc[_0x1295cd('0x10')]);})[_0x21a1f6('0x23')](function(_0x1dd0cd){const _0x220129=_0x21a1f6;logger['info'](JSON[_0x220129('0x1')](_0x1dd0cd));});});},Migration[_0x3d2655('0x3')][_0x3d2655('0x2')]=function(_0x2b4a3b,_0x6c5553){const _0x18e37b=_0x3d2655,_0x1c3f1f=this;this[_0x18e37b('0x13')][_0x18e37b('0x2c')](function(){const _0x1416bc=_0x18e37b;return _0x1c3f1f[_0x1416bc('0x2e')]['removeIndex'](_0x2b4a3b,_0x6c5553)['then'](function(){const _0xa6200e=_0x1416bc;logger[_0xa6200e('0x1f')](_0xa6200e('0x19'),_0x2b4a3b,_0x6c5553);})[_0x1416bc('0x23')](function(_0x5c30dd){const _0x4e616f=_0x1416bc;logger[_0x4e616f('0x1f')](JSON['stringify'](_0x5c30dd));});});},Migration[_0x3d2655('0x3')][_0x3d2655('0x4')]=function(_0x274766){const _0x30c23b=_0x3d2655,_0x423d13=this;this[_0x30c23b('0x13')][_0x30c23b('0x2c')](function(){const _0xc92868=_0x30c23b;return _0x423d13[_0xc92868('0x2e')][_0xc92868('0x21')][_0xc92868('0x4')](_0x274766)['then'](function(){const _0x59ba21=_0xc92868;logger[_0x59ba21('0x1f')](_0x59ba21('0x30'),_0x274766);})['catch'](function(_0x478806){const _0x44fa2f=_0xc92868;logger[_0x44fa2f('0x1f')](JSON[_0x44fa2f('0x1')](_0x478806));});});},Migration[_0x3d2655('0x3')][_0x3d2655('0x7')]=function(_0x212250,_0x41289b){const _0x5337b3=_0x3d2655,_0x44e0a5=this;this[_0x5337b3('0x13')][_0x5337b3('0x2c')](function(){const _0x5ecaef=_0x5337b3;return _0x44e0a5[_0x5ecaef('0x2e')][_0x5ecaef('0x7')](_0x212250,_0x41289b)[_0x5ecaef('0x29')](function(){const _0x524ddd=_0x5ecaef;logger[_0x524ddd('0x1f')]('Removed\x20column\x20%s\x20from\x20%s',_0x41289b,_0x212250);})[_0x5ecaef('0x23')](function(_0x27177c){const _0x15174d=_0x5ecaef;logger[_0x15174d('0x1f')](util[_0x15174d('0x12')](_0x27177c,{'showHidden':![],'depth':null}));});});},Migration[_0x3d2655('0x3')][_0x3d2655('0x9')]=function(_0x240026,_0x28244d,_0x481b6f){const _0xffe49e=_0x3d2655,_0x5ec87e=this;this[_0xffe49e('0x13')][_0xffe49e('0x2c')](function(){const _0x1f1dfb=_0xffe49e;return _0x5ec87e[_0x1f1dfb('0x2e')][_0x1f1dfb('0x9')](_0x240026,_0x28244d,_0x481b6f)[_0x1f1dfb('0x29')](function(){const _0x59f7c2=_0x1f1dfb;logger[_0x59f7c2('0x1f')](_0x59f7c2('0x24'),_0x28244d,_0x481b6f,_0x240026);})[_0x1f1dfb('0x23')](function(_0x44c260){const _0x55f3f7=_0x1f1dfb;logger[_0x55f3f7('0x1f')](util[_0x55f3f7('0x12')](_0x44c260,{'showHidden':![],'depth':null}));});});},Migration[_0x3d2655('0x3')][_0x3d2655('0x1b')]=function(_0x5803ec){const _0x3d8db7=_0x3d2655;this[_0x3d8db7('0x13')][_0x3d8db7('0x2c')](function(){return _0x5803ec();});},module[_0x3d2655('0x31')]={'up':function(_0x1b12ac,_0x5bae4b){return new Promise(function(_0x57c4ad){const _0x290925=a1002_0x25cb,_0x4c6bcb=new Migration(_0x1b12ac);_0x4c6bcb[_0x290925('0xd')](_0x290925('0x11'),_0x290925('0x1e'),{'type':_0x5bae4b[_0x290925('0x32')](_0x290925('0xb'),_0x290925('0x26'),_0x290925('0x2a')),'defaultValue':'contact_lead'}),_0x4c6bcb[_0x290925('0xf')]('int_zoho_configurations','moduleCreate',{'type':_0x5bae4b[_0x290925('0x32')](_0x290925('0x1c'),_0x290925('0x14'),'nothing',_0x290925('0x26'),_0x290925('0x2a'))}),_0x4c6bcb['query'](_0x290925('0x20')),_0x4c6bcb['query']('UPDATE\x20int_zoho_configurations\x20SET\x20moduleCreate\x20=\x20\x27lead\x27\x20WHERE\x20moduleCreate\x20=\x20\x27Leads\x27'),_0x4c6bcb[_0x290925('0xf')](_0x290925('0x11'),'moduleCreate',{'type':_0x5bae4b[_0x290925('0x32')](_0x290925('0x6'),_0x290925('0x26'),_0x290925('0x2a')),'defaultValue':_0x290925('0x2a')}),_0x4c6bcb[_0x290925('0xd')](_0x290925('0x22'),_0x290925('0x2d'),{'type':_0x5bae4b['STRING']}),_0x4c6bcb[_0x290925('0xd')](_0x290925('0x22'),'password',{'type':_0x5bae4b['STRING']}),_0x4c6bcb[_0x290925('0xf')](_0x290925('0x22'),_0x290925('0x2b'),{'type':_0x5bae4b[_0x290925('0x32')]('localnet',_0x290925('0x17'),_0x290925('0x5'),_0x290925('0x25'))}),_0x4c6bcb['query']('INSERT\x20INTO\x20network\x20(type,value,\x20createdAt,\x20updatedAt)\x20SELECT\x20\x27stun\x27,\x20stunaddr,\x20current_timestamp(),\x20current_timestamp()\x20from\x20settings\x20WHERE\x20stunaddr<>\x27\x27'),_0x4c6bcb[_0x290925('0x4')](_0x290925('0x27')),_0x4c6bcb[_0x290925('0x1b')](_0x57c4ad);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.2.js b/server/migrations/2.4.2.js index be3a538..b8d7ee6 100644 --- a/server/migrations/2.4.2.js +++ b/server/migrations/2.4.2.js @@ -1 +1 @@ -const a1003_0x31b7=['enqueue','removeIndex','allowedLoginAttempts','disabled','indexName','info','INTEGER','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','stringify','Added\x20column\x20%s\x20to\x20%s','BOOLEAN','then','inspect','query','migration','settings','removeColumn','../config/logger','util','renameColumn','loginAttempts','addIndex','table\x20dropped\x20%s','catch','addColumn','blockedAt','Removed\x20column\x20%s\x20from\x20%s','final','changeColumn','sequence','indicesType','tail','prototype','join','exports','UPDATE\x20settings\x20SET\x20allowedLoginAttempts\x20=\x200,\x20blockDuration\x20=\x200;','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex\x20%s\x20%s','users','DATE','finally','queryInterface','addIndex\x20%s\x20%s\x20%s\x20[%s]'];(function(_0x4dacf4,_0x31b737){const _0x3fdc83=function(_0x5b08e4){while(--_0x5b08e4){_0x4dacf4['push'](_0x4dacf4['shift']());}};_0x3fdc83(++_0x31b737);}(a1003_0x31b7,0x88));const a1003_0x3fdc=function(_0x4dacf4,_0x31b737){_0x4dacf4=_0x4dacf4-0x0;let _0x3fdc83=a1003_0x31b7[_0x4dacf4];return _0x3fdc83;};const _0x3b298f=a1003_0x3fdc;'use strict';const util=require(_0x3b298f('0xb')),logger=require(_0x3b298f('0xa'))(_0x3b298f('0x7')),Sequence=function(){};Sequence['prototype'][_0x3b298f('0x24')]=function(_0x5b08e4){const _0x4b9621=_0x3b298f;this['tail']=this[_0x4b9621('0x18')]?this[_0x4b9621('0x18')][_0x4b9621('0x21')](_0x5b08e4):_0x5b08e4();};const Migration=function(_0x4f73b8){const _0x59873e=_0x3b298f;this[_0x59873e('0x22')]=_0x4f73b8,this[_0x59873e('0x16')]=new Sequence();};Migration['prototype'][_0x3b298f('0x15')]=function(_0x1ccc3a,_0x37046c,_0x47fa02){const _0x17745a=_0x3b298f,_0x5d9a73=this;this['sequence'][_0x17745a('0x24')](function(){const _0x57216e=_0x17745a;return _0x5d9a73[_0x57216e('0x22')][_0x57216e('0x15')](_0x1ccc3a,_0x37046c,_0x47fa02)[_0x57216e('0x4')](function(){const _0xeb502b=_0x57216e;logger[_0xeb502b('0x29')](_0xeb502b('0x1d'),_0x37046c,_0x1ccc3a);})[_0x57216e('0x10')](function(_0x12a71c){logger['info'](JSON['stringify'](_0x12a71c));});});},Migration['prototype'][_0x3b298f('0x11')]=function(_0x542611,_0xba0c4,_0xbd0dfc){const _0x43caf3=_0x3b298f,_0x46f2ca=this;this['sequence'][_0x43caf3('0x24')](function(){const _0x4622b8=_0x43caf3;return _0x46f2ca[_0x4622b8('0x22')][_0x4622b8('0x11')](_0x542611,_0xba0c4,_0xbd0dfc)[_0x4622b8('0x4')](function(){const _0x1e8937=_0x4622b8;logger[_0x1e8937('0x29')](_0x1e8937('0x2'),_0xba0c4,_0x542611);})[_0x4622b8('0x10')](function(_0x351ddc){const _0x5a5b08=_0x4622b8;logger['info'](JSON[_0x5a5b08('0x1')](_0x351ddc));});});},Migration[_0x3b298f('0x19')]['dropTable']=function(_0x2c1772){const _0xf7039f=_0x3b298f,_0x5b6ee3=this;this[_0xf7039f('0x16')][_0xf7039f('0x24')](function(){const _0x147133=_0xf7039f;return _0x5b6ee3[_0x147133('0x22')]['dropTable'](_0x2c1772,{'force':!![]})[_0x147133('0x4')](function(){const _0x57dc86=_0x147133;logger['info'](_0x57dc86('0xf'),_0x2c1772);})['catch'](function(_0x3211f8){const _0x5b503c=_0x147133;logger[_0x5b503c('0x29')](JSON[_0x5b503c('0x1')](_0x3211f8));});});},Migration['prototype'][_0x3b298f('0xe')]=function(_0x1d38bb,_0x3bae7c,_0xaa1ee){const _0x557726=_0x3b298f,_0x8e0011=this;this[_0x557726('0x16')]['enqueue'](function(){const _0x28c478=_0x557726;return _0x8e0011[_0x28c478('0x22')][_0x28c478('0xe')](_0x1d38bb,_0x3bae7c,{'indexName':_0xaa1ee[_0x28c478('0x28')],'indicesType':_0xaa1ee[_0x28c478('0x17')]})[_0x28c478('0x4')](function(){const _0x3a6f02=_0x28c478;logger[_0x3a6f02('0x29')](_0x3a6f02('0x23'),_0x1d38bb,_0x3bae7c[_0x3a6f02('0x1a')](','),_0xaa1ee[_0x3a6f02('0x28')],_0xaa1ee[_0x3a6f02('0x17')]);})[_0x28c478('0x10')](function(_0x4ca5a7){const _0x470efb=_0x28c478;logger[_0x470efb('0x29')](JSON[_0x470efb('0x1')](_0x4ca5a7));});});},Migration[_0x3b298f('0x19')]['removeIndex']=function(_0x446250,_0x551044){const _0x44bdbe=_0x3b298f,_0x2f9b56=this;this[_0x44bdbe('0x16')][_0x44bdbe('0x24')](function(){const _0x4b50fa=_0x44bdbe;return _0x2f9b56[_0x4b50fa('0x22')][_0x4b50fa('0x25')](_0x446250,_0x551044)[_0x4b50fa('0x4')](function(){const _0x528321=_0x4b50fa;logger[_0x528321('0x29')](_0x528321('0x1e'),_0x446250,_0x551044);})[_0x4b50fa('0x10')](function(_0x1b74a4){const _0x3ec4e0=_0x4b50fa;logger[_0x3ec4e0('0x29')](JSON[_0x3ec4e0('0x1')](_0x1b74a4));});});},Migration[_0x3b298f('0x19')][_0x3b298f('0x6')]=function(_0x373c44){const _0x59f054=_0x3b298f,_0x29a7c6=this;this[_0x59f054('0x16')][_0x59f054('0x24')](function(){const _0xbeb015=_0x59f054;return _0x29a7c6[_0xbeb015('0x22')]['sequelize'][_0xbeb015('0x6')](_0x373c44)[_0xbeb015('0x4')](function(){const _0x39ce92=_0xbeb015;logger[_0x39ce92('0x29')]('query\x20%s',_0x373c44);})[_0xbeb015('0x10')](function(_0x4af2aa){const _0x4e958a=_0xbeb015;logger[_0x4e958a('0x29')](JSON[_0x4e958a('0x1')](_0x4af2aa));});});},Migration[_0x3b298f('0x19')]['removeColumn']=function(_0x3ccbbf,_0x1b3615){const _0x429761=_0x3b298f,_0x520d3a=this;this[_0x429761('0x16')][_0x429761('0x24')](function(){const _0x4fadfa=_0x429761;return _0x520d3a[_0x4fadfa('0x22')][_0x4fadfa('0x9')](_0x3ccbbf,_0x1b3615)[_0x4fadfa('0x4')](function(){const _0xde7f07=_0x4fadfa;logger[_0xde7f07('0x29')](_0xde7f07('0x13'),_0x1b3615,_0x3ccbbf);})[_0x4fadfa('0x10')](function(_0x19afb6){const _0xf749db=_0x4fadfa;logger[_0xf749db('0x29')](util[_0xf749db('0x5')](_0x19afb6,{'showHidden':![],'depth':null}));});});},Migration[_0x3b298f('0x19')]['renameColumn']=function(_0x4988d2,_0x4d8553,_0x242212){const _0x16d7e1=_0x3b298f,_0x456d23=this;this[_0x16d7e1('0x16')][_0x16d7e1('0x24')](function(){const _0x24eb5b=_0x16d7e1;return _0x456d23[_0x24eb5b('0x22')][_0x24eb5b('0xc')](_0x4988d2,_0x4d8553,_0x242212)[_0x24eb5b('0x4')](function(){const _0x489203=_0x24eb5b;logger['info'](_0x489203('0x0'),_0x4d8553,_0x242212,_0x4988d2);})[_0x24eb5b('0x10')](function(_0xb16e2b){const _0x23376e=_0x24eb5b;logger[_0x23376e('0x29')](util[_0x23376e('0x5')](_0xb16e2b,{'showHidden':![],'depth':null}));});});},Migration[_0x3b298f('0x19')][_0x3b298f('0x14')]=function(_0x598d71){const _0x1da2a7=_0x3b298f;this[_0x1da2a7('0x16')]['enqueue'](function(){return _0x598d71();});},module[_0x3b298f('0x1b')]={'up':function(_0x1f0f67,_0x43a006){return new Promise(function(_0x279fd3){const _0x26f273=a1003_0x3fdc,_0x2bc4a3=new Migration(_0x1f0f67);_0x2bc4a3[_0x26f273('0x11')](_0x26f273('0x8'),_0x26f273('0x26'),{'type':_0x43a006[_0x26f273('0x2a')],'defaultValue':0x5}),_0x2bc4a3[_0x26f273('0x11')](_0x26f273('0x8'),'blockDuration',{'type':_0x43a006['INTEGER'],'defaultValue':0xa}),_0x2bc4a3[_0x26f273('0x6')](_0x26f273('0x1c')),_0x2bc4a3['addColumn'](_0x26f273('0x1f'),'blocked',{'type':_0x43a006[_0x26f273('0x3')],'defaultValue':![]}),_0x2bc4a3['addColumn'](_0x26f273('0x1f'),_0x26f273('0xd'),{'type':_0x43a006[_0x26f273('0x2a')],'defaultValue':0x0}),_0x2bc4a3['addColumn'](_0x26f273('0x1f'),_0x26f273('0x12'),{'type':_0x43a006[_0x26f273('0x20')],'defaultValue':null}),_0x2bc4a3[_0x26f273('0x11')](_0x26f273('0x1f'),_0x26f273('0x27'),{'type':_0x43a006[_0x26f273('0x3')],'defaultValue':![]}),_0x2bc4a3[_0x26f273('0x6')]('ALTER\x20TABLE\x20screen_recordings\x20ENCRYPTION=\x27Y\x27;'),_0x2bc4a3[_0x26f273('0x14')](_0x279fd3);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.20.js b/server/migrations/2.4.20.js index 1475cb0..ba4feb8 100644 --- a/server/migrations/2.4.20.js +++ b/server/migrations/2.4.20.js @@ -1 +1 @@ -const a1004_0x48d5=['queryInterface','tail','indicesType','then','removeIndex','inspect','join','table\x20dropped\x20%s','stringify','sequence','exports','../config/logger','catch','addIndex','UPDATE\x20settings\x20SET\x20googleSsoEnabled\x20=\x201','Removed\x20column\x20%s\x20from\x20%s','final','sequelize','dropTable','prototype','BOOLEAN','indexName','query','removeIndex\x20%s\x20%s','renameColumn','enqueue','addColumn','changeColumn','removeColumn','query\x20%s','info','settings','Added\x20column\x20%s\x20to\x20%s'];(function(_0x41034c,_0x48d5b0){const _0x242603=function(_0x1d2607){while(--_0x1d2607){_0x41034c['push'](_0x41034c['shift']());}};_0x242603(++_0x48d5b0);}(a1004_0x48d5,0x191));const a1004_0x2426=function(_0x41034c,_0x48d5b0){_0x41034c=_0x41034c-0x0;let _0x242603=a1004_0x48d5[_0x41034c];return _0x242603;};const _0x461687=a1004_0x2426;'use strict';const util=require('util'),logger=require(_0x461687('0x6'))('migration'),Sequence=function(){};Sequence[_0x461687('0xe')][_0x461687('0x14')]=function(_0x1d2607){const _0x160f3e=_0x461687;this[_0x160f3e('0x1d')]=this[_0x160f3e('0x1d')]?this[_0x160f3e('0x1d')]['finally'](_0x1d2607):_0x1d2607();};const Migration=function(_0xdc4b10){const _0xd39514=_0x461687;this[_0xd39514('0x1c')]=_0xdc4b10,this['sequence']=new Sequence();};Migration[_0x461687('0xe')][_0x461687('0x16')]=function(_0x4a4541,_0x664e45,_0x5accbd){const _0x5bdef8=_0x461687,_0x4537b0=this;this['sequence'][_0x5bdef8('0x14')](function(){const _0x736109=_0x5bdef8;return _0x4537b0[_0x736109('0x1c')][_0x736109('0x16')](_0x4a4541,_0x664e45,_0x5accbd)[_0x736109('0x1f')](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x664e45,_0x4a4541);})[_0x736109('0x7')](function(_0xda5885){const _0x57116e=_0x736109;logger[_0x57116e('0x19')](JSON['stringify'](_0xda5885));});});},Migration[_0x461687('0xe')][_0x461687('0x15')]=function(_0x2216d5,_0x5a0a01,_0x510aed){const _0xfaf7e3=_0x461687,_0x508d4f=this;this[_0xfaf7e3('0x4')][_0xfaf7e3('0x14')](function(){const _0x186c75=_0xfaf7e3;return _0x508d4f[_0x186c75('0x1c')][_0x186c75('0x15')](_0x2216d5,_0x5a0a01,_0x510aed)[_0x186c75('0x1f')](function(){const _0x3fbd92=_0x186c75;logger['info'](_0x3fbd92('0x1b'),_0x5a0a01,_0x2216d5);})[_0x186c75('0x7')](function(_0x145861){logger['info'](JSON['stringify'](_0x145861));});});},Migration['prototype'][_0x461687('0xd')]=function(_0x34c205){const _0xe7bda2=_0x461687,_0x30a77c=this;this[_0xe7bda2('0x4')][_0xe7bda2('0x14')](function(){const _0x3deace=_0xe7bda2;return _0x30a77c[_0x3deace('0x1c')]['dropTable'](_0x34c205,{'force':!![]})['then'](function(){const _0xa19d72=_0x3deace;logger[_0xa19d72('0x19')](_0xa19d72('0x2'),_0x34c205);})[_0x3deace('0x7')](function(_0x2526d8){const _0x14506f=_0x3deace;logger[_0x14506f('0x19')](JSON[_0x14506f('0x3')](_0x2526d8));});});},Migration[_0x461687('0xe')][_0x461687('0x8')]=function(_0x8a6fc4,_0x1ecb96,_0x4609c4){const _0x1298e2=_0x461687,_0x2a477c=this;this[_0x1298e2('0x4')][_0x1298e2('0x14')](function(){const _0x1fba75=_0x1298e2;return _0x2a477c[_0x1fba75('0x1c')][_0x1fba75('0x8')](_0x8a6fc4,_0x1ecb96,{'indexName':_0x4609c4[_0x1fba75('0x10')],'indicesType':_0x4609c4[_0x1fba75('0x1e')]})[_0x1fba75('0x1f')](function(){const _0xb43b16=_0x1fba75;logger[_0xb43b16('0x19')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x8a6fc4,_0x1ecb96[_0xb43b16('0x1')](','),_0x4609c4[_0xb43b16('0x10')],_0x4609c4[_0xb43b16('0x1e')]);})['catch'](function(_0x4109d4){const _0x38aeb3=_0x1fba75;logger[_0x38aeb3('0x19')](JSON['stringify'](_0x4109d4));});});},Migration[_0x461687('0xe')][_0x461687('0x20')]=function(_0x4d147d,_0x3af52b){const _0x36ae2f=_0x461687,_0x3633da=this;this[_0x36ae2f('0x4')]['enqueue'](function(){const _0x3e0586=_0x36ae2f;return _0x3633da[_0x3e0586('0x1c')]['removeIndex'](_0x4d147d,_0x3af52b)[_0x3e0586('0x1f')](function(){const _0x5c45d6=_0x3e0586;logger[_0x5c45d6('0x19')](_0x5c45d6('0x12'),_0x4d147d,_0x3af52b);})[_0x3e0586('0x7')](function(_0x3ea450){const _0x34ceaa=_0x3e0586;logger[_0x34ceaa('0x19')](JSON[_0x34ceaa('0x3')](_0x3ea450));});});},Migration[_0x461687('0xe')][_0x461687('0x11')]=function(_0x372e70){const _0x440e31=_0x461687,_0x659265=this;this[_0x440e31('0x4')][_0x440e31('0x14')](function(){const _0x50d298=_0x440e31;return _0x659265[_0x50d298('0x1c')][_0x50d298('0xc')][_0x50d298('0x11')](_0x372e70)[_0x50d298('0x1f')](function(){const _0x1ff2ec=_0x50d298;logger['info'](_0x1ff2ec('0x18'),_0x372e70);})[_0x50d298('0x7')](function(_0x1cd1f7){const _0x2843a4=_0x50d298;logger['info'](JSON[_0x2843a4('0x3')](_0x1cd1f7));});});},Migration[_0x461687('0xe')][_0x461687('0x17')]=function(_0x4c7201,_0x5b8365){const _0x32c261=_0x461687,_0x52f179=this;this[_0x32c261('0x4')]['enqueue'](function(){const _0x277ec4=_0x32c261;return _0x52f179[_0x277ec4('0x1c')][_0x277ec4('0x17')](_0x4c7201,_0x5b8365)[_0x277ec4('0x1f')](function(){const _0x3d8155=_0x277ec4;logger[_0x3d8155('0x19')](_0x3d8155('0xa'),_0x5b8365,_0x4c7201);})[_0x277ec4('0x7')](function(_0x22e068){const _0x56f7db=_0x277ec4;logger[_0x56f7db('0x19')](util[_0x56f7db('0x0')](_0x22e068,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x461687('0x13')]=function(_0x172ff1,_0x3f6aed,_0x23d0c2){const _0x5a3a8d=_0x461687,_0x1503bf=this;this[_0x5a3a8d('0x4')][_0x5a3a8d('0x14')](function(){const _0x4b132c=_0x5a3a8d;return _0x1503bf[_0x4b132c('0x1c')]['renameColumn'](_0x172ff1,_0x3f6aed,_0x23d0c2)['then'](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3f6aed,_0x23d0c2,_0x172ff1);})[_0x4b132c('0x7')](function(_0x4f7849){const _0x20d180=_0x4b132c;logger[_0x20d180('0x19')](util[_0x20d180('0x0')](_0x4f7849,{'showHidden':![],'depth':null}));});});},Migration[_0x461687('0xe')]['final']=function(_0x2c9e8b){const _0x3fa1fc=_0x461687;this[_0x3fa1fc('0x4')][_0x3fa1fc('0x14')](function(){return _0x2c9e8b();});},module[_0x461687('0x5')]={'up':function(_0x3644dc,_0x327150){return new Promise(function(_0x5466ab){const _0x3975b8=a1004_0x2426,_0xf31bff=new Migration(_0x3644dc);_0xf31bff[_0x3975b8('0x15')](_0x3975b8('0x1a'),'googleSsoEnabled',{'type':_0x327150[_0x3975b8('0xf')],'defaultValue':![]}),_0xf31bff[_0x3975b8('0x11')](_0x3975b8('0x9')),_0xf31bff[_0x3975b8('0xb')](_0x5466ab);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.21.js b/server/migrations/2.4.21.js index ca66566..a306bdd 100644 --- a/server/migrations/2.4.21.js +++ b/server/migrations/2.4.21.js @@ -1 +1 @@ -const a1005_0x29d2=['removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','indicesType','renameColumn','queryInterface','sequelize','final','stringify','removeIndex','finally','dropTable','addIndex','prototype','query\x20%s','catch','addColumn','tail','enqueue','info','util','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','query','then','changeColumn','Added\x20column\x20%s\x20to\x20%s','sequence','indexName','table\x20dropped\x20%s'];(function(_0x4b9120,_0x29d280){const _0x19b7a5=function(_0x570e46){while(--_0x570e46){_0x4b9120['push'](_0x4b9120['shift']());}};_0x19b7a5(++_0x29d280);}(a1005_0x29d2,0x131));const a1005_0x19b7=function(_0x4b9120,_0x29d280){_0x4b9120=_0x4b9120-0x0;let _0x19b7a5=a1005_0x29d2[_0x4b9120];return _0x19b7a5;};const _0x24cd67=a1005_0x19b7;'use strict';const util=require(_0x24cd67('0xf')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x24cd67('0x8')]['enqueue']=function(_0x570e46){const _0x24acb0=_0x24cd67;this[_0x24acb0('0xc')]=this['tail']?this[_0x24acb0('0xc')][_0x24acb0('0x5')](_0x570e46):_0x570e46();};const Migration=function(_0x912ad){const _0x58fc42=_0x24cd67;this[_0x58fc42('0x0')]=_0x912ad,this[_0x58fc42('0x16')]=new Sequence();};Migration[_0x24cd67('0x8')][_0x24cd67('0x14')]=function(_0x43751d,_0x3aabd6,_0x23455f){const _0x40adff=_0x24cd67,_0x1e7d62=this;this[_0x40adff('0x16')][_0x40adff('0xd')](function(){const _0x1f6a64=_0x40adff;return _0x1e7d62[_0x1f6a64('0x0')][_0x1f6a64('0x14')](_0x43751d,_0x3aabd6,_0x23455f)[_0x1f6a64('0x13')](function(){const _0x15f763=_0x1f6a64;logger[_0x15f763('0xe')](_0x15f763('0x1a'),_0x3aabd6,_0x43751d);})[_0x1f6a64('0xa')](function(_0x980eef){const _0x1e8915=_0x1f6a64;logger[_0x1e8915('0xe')](JSON['stringify'](_0x980eef));});});},Migration[_0x24cd67('0x8')][_0x24cd67('0xb')]=function(_0x5aeb49,_0x58346f,_0x36a261){const _0x1de0bb=_0x24cd67,_0x4954a1=this;this[_0x1de0bb('0x16')][_0x1de0bb('0xd')](function(){const _0x3ceff3=_0x1de0bb;return _0x4954a1[_0x3ceff3('0x0')][_0x3ceff3('0xb')](_0x5aeb49,_0x58346f,_0x36a261)['then'](function(){const _0x46610a=_0x3ceff3;logger[_0x46610a('0xe')](_0x46610a('0x15'),_0x58346f,_0x5aeb49);})[_0x3ceff3('0xa')](function(_0x30d239){const _0x1c63c5=_0x3ceff3;logger[_0x1c63c5('0xe')](JSON[_0x1c63c5('0x3')](_0x30d239));});});},Migration[_0x24cd67('0x8')][_0x24cd67('0x6')]=function(_0x458a8b){const _0x2a7eb9=_0x24cd67,_0x2b0b17=this;this[_0x2a7eb9('0x16')]['enqueue'](function(){const _0x2267dd=_0x2a7eb9;return _0x2b0b17[_0x2267dd('0x0')][_0x2267dd('0x6')](_0x458a8b,{'force':!![]})[_0x2267dd('0x13')](function(){const _0xd18eac=_0x2267dd;logger['info'](_0xd18eac('0x18'),_0x458a8b);})['catch'](function(_0x59d048){const _0x400dd3=_0x2267dd;logger[_0x400dd3('0xe')](JSON['stringify'](_0x59d048));});});},Migration['prototype'][_0x24cd67('0x7')]=function(_0x571fc2,_0x1aab9a,_0xbca2a4){const _0x448777=_0x24cd67,_0x590165=this;this[_0x448777('0x16')][_0x448777('0xd')](function(){const _0x30dc3a=_0x448777;return _0x590165[_0x30dc3a('0x0')][_0x30dc3a('0x7')](_0x571fc2,_0x1aab9a,{'indexName':_0xbca2a4[_0x30dc3a('0x17')],'indicesType':_0xbca2a4[_0x30dc3a('0x1c')]})['then'](function(){const _0x73e73e=_0x30dc3a;logger[_0x73e73e('0xe')](_0x73e73e('0x11'),_0x571fc2,_0x1aab9a['join'](','),_0xbca2a4[_0x73e73e('0x17')],_0xbca2a4['indicesType']);})[_0x30dc3a('0xa')](function(_0x2a4a3d){const _0x21e7e0=_0x30dc3a;logger[_0x21e7e0('0xe')](JSON[_0x21e7e0('0x3')](_0x2a4a3d));});});},Migration[_0x24cd67('0x8')][_0x24cd67('0x4')]=function(_0x28a075,_0x56c1d0){const _0x4e82f0=_0x24cd67,_0x155138=this;this[_0x4e82f0('0x16')][_0x4e82f0('0xd')](function(){const _0x422876=_0x4e82f0;return _0x155138[_0x422876('0x0')]['removeIndex'](_0x28a075,_0x56c1d0)[_0x422876('0x13')](function(){const _0x297b85=_0x422876;logger[_0x297b85('0xe')]('removeIndex\x20%s\x20%s',_0x28a075,_0x56c1d0);})[_0x422876('0xa')](function(_0x4245ae){const _0x47e3b1=_0x422876;logger[_0x47e3b1('0xe')](JSON[_0x47e3b1('0x3')](_0x4245ae));});});},Migration['prototype']['query']=function(_0x11b8d1){const _0x521928=_0x24cd67,_0x148cdb=this;this[_0x521928('0x16')][_0x521928('0xd')](function(){const _0x287167=_0x521928;return _0x148cdb[_0x287167('0x0')][_0x287167('0x1')][_0x287167('0x12')](_0x11b8d1)[_0x287167('0x13')](function(){const _0x60b8dc=_0x287167;logger[_0x60b8dc('0xe')](_0x60b8dc('0x9'),_0x11b8d1);})[_0x287167('0xa')](function(_0x45dcf7){const _0x105f35=_0x287167;logger[_0x105f35('0xe')](JSON[_0x105f35('0x3')](_0x45dcf7));});});},Migration[_0x24cd67('0x8')][_0x24cd67('0x19')]=function(_0x516db1,_0x547861){const _0x1c1e62=this;this['sequence']['enqueue'](function(){const _0x2564df=a1005_0x19b7;return _0x1c1e62[_0x2564df('0x0')][_0x2564df('0x19')](_0x516db1,_0x547861)[_0x2564df('0x13')](function(){const _0x5baf59=_0x2564df;logger[_0x5baf59('0xe')]('Removed\x20column\x20%s\x20from\x20%s',_0x547861,_0x516db1);})[_0x2564df('0xa')](function(_0x332fb5){const _0x2cd5fa=_0x2564df;logger[_0x2cd5fa('0xe')](util['inspect'](_0x332fb5,{'showHidden':![],'depth':null}));});});},Migration[_0x24cd67('0x8')][_0x24cd67('0x1d')]=function(_0x20bf6a,_0x59a376,_0x12685b){const _0x2b84a8=_0x24cd67,_0x5a87d3=this;this[_0x2b84a8('0x16')]['enqueue'](function(){const _0xe872af=_0x2b84a8;return _0x5a87d3[_0xe872af('0x0')][_0xe872af('0x1d')](_0x20bf6a,_0x59a376,_0x12685b)[_0xe872af('0x13')](function(){const _0x458620=_0xe872af;logger[_0x458620('0xe')](_0x458620('0x10'),_0x59a376,_0x12685b,_0x20bf6a);})[_0xe872af('0xa')](function(_0x38aca5){const _0x5a3c27=_0xe872af;logger[_0x5a3c27('0xe')](util[_0x5a3c27('0x1b')](_0x38aca5,{'showHidden':![],'depth':null}));});});},Migration[_0x24cd67('0x8')][_0x24cd67('0x2')]=function(_0x272ca2){const _0x1ac2cf=_0x24cd67;this['sequence'][_0x1ac2cf('0xd')](function(){return _0x272ca2();});},module['exports']={'up':function(_0x3fb745){return new Promise(function(_0x67017a){const _0x6656ed=a1005_0x19b7,_0xcd8104=new Migration(_0x3fb745);_0xcd8104[_0x6656ed('0x2')](_0x67017a);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.3.js b/server/migrations/2.4.3.js index ae543c7..e1d59e2 100644 --- a/server/migrations/2.4.3.js +++ b/server/migrations/2.4.3.js @@ -1 +1 @@ -const a1006_0x45ec=['join','queryInterface','prototype','finally','then','catch','Removed\x20column\x20%s\x20from\x20%s','dropTable','exports','renameColumn','query','sequence','sequelize','enqueue','indicesType','stringify','tail','final','info','removeIndex','indexName','changeColumn','addColumn','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','query\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','removeColumn','addIndex','inspect','migration'];(function(_0xd455cf,_0x45ec2d){const _0x39b114=function(_0x41d28f){while(--_0x41d28f){_0xd455cf['push'](_0xd455cf['shift']());}};_0x39b114(++_0x45ec2d);}(a1006_0x45ec,0x137));const a1006_0x39b1=function(_0xd455cf,_0x45ec2d){_0xd455cf=_0xd455cf-0x0;let _0x39b114=a1006_0x45ec[_0xd455cf];return _0x39b114;};const _0x39c61d=a1006_0x39b1;'use strict';const util=require('util'),logger=require('../config/logger')(_0x39c61d('0x1d')),Sequence=function(){};Sequence['prototype'][_0x39c61d('0xc')]=function(_0x41d28f){const _0x1204e7=_0x39c61d;this['tail']=this['tail']?this[_0x1204e7('0xf')][_0x1204e7('0x2')](_0x41d28f):_0x41d28f();};const Migration=function(_0x35acd3){const _0x55569f=_0x39c61d;this[_0x55569f('0x0')]=_0x35acd3,this[_0x55569f('0xa')]=new Sequence();};Migration[_0x39c61d('0x1')]['changeColumn']=function(_0x3f4ec2,_0x277c67,_0x994723){const _0x2b6aff=_0x39c61d,_0x47507f=this;this[_0x2b6aff('0xa')][_0x2b6aff('0xc')](function(){const _0x6b3925=_0x2b6aff;return _0x47507f[_0x6b3925('0x0')][_0x6b3925('0x14')](_0x3f4ec2,_0x277c67,_0x994723)[_0x6b3925('0x3')](function(){const _0x378613=_0x6b3925;logger['info'](_0x378613('0x17'),_0x277c67,_0x3f4ec2);})['catch'](function(_0x4e89c7){const _0x21df87=_0x6b3925;logger[_0x21df87('0x11')](JSON[_0x21df87('0xe')](_0x4e89c7));});});},Migration[_0x39c61d('0x1')][_0x39c61d('0x15')]=function(_0x9f778e,_0x175114,_0x3a75ac){const _0x57251e=_0x39c61d,_0x1f20a9=this;this['sequence'][_0x57251e('0xc')](function(){const _0x56161a=_0x57251e;return _0x1f20a9['queryInterface']['addColumn'](_0x9f778e,_0x175114,_0x3a75ac)[_0x56161a('0x3')](function(){const _0x48d90b=_0x56161a;logger['info'](_0x48d90b('0x16'),_0x175114,_0x9f778e);})[_0x56161a('0x4')](function(_0x55e47c){const _0x5a123d=_0x56161a;logger[_0x5a123d('0x11')](JSON[_0x5a123d('0xe')](_0x55e47c));});});},Migration[_0x39c61d('0x1')][_0x39c61d('0x6')]=function(_0x25c729){const _0x27ea87=_0x39c61d,_0x6f1cd9=this;this[_0x27ea87('0xa')][_0x27ea87('0xc')](function(){return _0x6f1cd9['queryInterface']['dropTable'](_0x25c729,{'force':!![]})['then'](function(){const _0x55c31e=a1006_0x39b1;logger[_0x55c31e('0x11')]('table\x20dropped\x20%s',_0x25c729);})['catch'](function(_0x29ca4d){const _0x159e02=a1006_0x39b1;logger[_0x159e02('0x11')](JSON['stringify'](_0x29ca4d));});});},Migration[_0x39c61d('0x1')][_0x39c61d('0x1b')]=function(_0x9ab420,_0x569c13,_0x682527){const _0x133bb0=_0x39c61d,_0x3a494e=this;this[_0x133bb0('0xa')]['enqueue'](function(){const _0x3bc26a=_0x133bb0;return _0x3a494e[_0x3bc26a('0x0')]['addIndex'](_0x9ab420,_0x569c13,{'indexName':_0x682527['indexName'],'indicesType':_0x682527[_0x3bc26a('0xd')]})[_0x3bc26a('0x3')](function(){const _0xc6a3ed=_0x3bc26a;logger[_0xc6a3ed('0x11')](_0xc6a3ed('0x19'),_0x9ab420,_0x569c13[_0xc6a3ed('0x1e')](','),_0x682527[_0xc6a3ed('0x13')],_0x682527[_0xc6a3ed('0xd')]);})[_0x3bc26a('0x4')](function(_0x3e81ad){const _0x35ac87=_0x3bc26a;logger[_0x35ac87('0x11')](JSON[_0x35ac87('0xe')](_0x3e81ad));});});},Migration['prototype'][_0x39c61d('0x12')]=function(_0x35ce95,_0x45e7dc){const _0x5bb352=_0x39c61d,_0x2000aa=this;this['sequence'][_0x5bb352('0xc')](function(){const _0x876adc=_0x5bb352;return _0x2000aa[_0x876adc('0x0')]['removeIndex'](_0x35ce95,_0x45e7dc)[_0x876adc('0x3')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x35ce95,_0x45e7dc);})[_0x876adc('0x4')](function(_0xb4e9fe){const _0x2fe5f0=_0x876adc;logger[_0x2fe5f0('0x11')](JSON[_0x2fe5f0('0xe')](_0xb4e9fe));});});},Migration[_0x39c61d('0x1')][_0x39c61d('0x9')]=function(_0xa08e64){const _0x5f07cd=this;this['sequence']['enqueue'](function(){const _0xeb042e=a1006_0x39b1;return _0x5f07cd[_0xeb042e('0x0')][_0xeb042e('0xb')][_0xeb042e('0x9')](_0xa08e64)['then'](function(){const _0x5a724e=_0xeb042e;logger[_0x5a724e('0x11')](_0x5a724e('0x18'),_0xa08e64);})['catch'](function(_0x2337d3){const _0x462825=_0xeb042e;logger[_0x462825('0x11')](JSON['stringify'](_0x2337d3));});});},Migration[_0x39c61d('0x1')]['removeColumn']=function(_0x1bc2ba,_0x562c41){const _0x3ecf18=this;this['sequence']['enqueue'](function(){const _0x53c13f=a1006_0x39b1;return _0x3ecf18[_0x53c13f('0x0')][_0x53c13f('0x1a')](_0x1bc2ba,_0x562c41)[_0x53c13f('0x3')](function(){const _0x59bce8=_0x53c13f;logger['info'](_0x59bce8('0x5'),_0x562c41,_0x1bc2ba);})[_0x53c13f('0x4')](function(_0x1dc594){const _0x1c6867=_0x53c13f;logger[_0x1c6867('0x11')](util['inspect'](_0x1dc594,{'showHidden':![],'depth':null}));});});},Migration[_0x39c61d('0x1')]['renameColumn']=function(_0x3641e4,_0x271046,_0x3660f3){const _0x5a2029=_0x39c61d,_0xd599f8=this;this[_0x5a2029('0xa')][_0x5a2029('0xc')](function(){const _0x10a37f=_0x5a2029;return _0xd599f8[_0x10a37f('0x0')][_0x10a37f('0x8')](_0x3641e4,_0x271046,_0x3660f3)['then'](function(){const _0x22912f=_0x10a37f;logger[_0x22912f('0x11')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x271046,_0x3660f3,_0x3641e4);})[_0x10a37f('0x4')](function(_0x15a7f9){const _0x4cb5fa=_0x10a37f;logger[_0x4cb5fa('0x11')](util[_0x4cb5fa('0x1c')](_0x15a7f9,{'showHidden':![],'depth':null}));});});},Migration[_0x39c61d('0x1')][_0x39c61d('0x10')]=function(_0x5c4afc){const _0x10fa06=_0x39c61d;this[_0x10fa06('0xa')]['enqueue'](function(){return _0x5c4afc();});},module[_0x39c61d('0x7')]={'up':function(_0x1e0e5b){return new Promise(function(_0x392273){const _0x1aaf8d=a1006_0x39b1,_0x56c598=new Migration(_0x1e0e5b);_0x56c598[_0x1aaf8d('0x10')](_0x392273);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.4.js b/server/migrations/2.4.4.js index 289fd5a..9e96d61 100644 --- a/server/migrations/2.4.4.js +++ b/server/migrations/2.4.4.js @@ -1 +1 @@ -const a1007_0x57e0=['renameColumn','exports','authToken','addIndex\x20%s\x20%s\x20%s\x20[%s]','tail','prototype','query\x20%s','info','Added\x20column\x20%s\x20to\x20%s','addColumn','table\x20dropped\x20%s','addIndex','migration','code','removeIndex','Removed\x20column\x20%s\x20from\x20%s','join','removeColumn','then','sequence','query','removeIndex\x20%s\x20%s','sequelize','queryInterface','finally','zone','changeColumn','refreshToken','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','inspect','util','STRING','indexName','stringify','clientSecret','dropTable','catch','indicesType','int_zoho_accounts','Changed\x20column\x20%s\x20in\x20table\x20%s','enqueue'];(function(_0x51a05f,_0x57e0e2){const _0x432512=function(_0x1777be){while(--_0x1777be){_0x51a05f['push'](_0x51a05f['shift']());}};_0x432512(++_0x57e0e2);}(a1007_0x57e0,0x1a9));const a1007_0x4325=function(_0x51a05f,_0x57e0e2){_0x51a05f=_0x51a05f-0x0;let _0x432512=a1007_0x57e0[_0x51a05f];return _0x432512;};const _0x17d7ad=a1007_0x4325;'use strict';const util=require(_0x17d7ad('0xf')),logger=require('../config/logger')(_0x17d7ad('0x26')),Sequence=function(){};Sequence['prototype'][_0x17d7ad('0x19')]=function(_0x1777be){const _0x4f8f91=_0x17d7ad;this['tail']=this[_0x4f8f91('0x1e')]?this[_0x4f8f91('0x1e')][_0x4f8f91('0x9')](_0x1777be):_0x1777be();};const Migration=function(_0x54b62d){const _0x39b693=_0x17d7ad;this[_0x39b693('0x8')]=_0x54b62d,this[_0x39b693('0x4')]=new Sequence();};Migration[_0x17d7ad('0x1f')][_0x17d7ad('0xb')]=function(_0x519e12,_0x134120,_0x2dd80c){const _0x4ec0e3=this;this['sequence']['enqueue'](function(){const _0x7bbe96=a1007_0x4325;return _0x4ec0e3['queryInterface'][_0x7bbe96('0xb')](_0x519e12,_0x134120,_0x2dd80c)['then'](function(){const _0x1deeb7=_0x7bbe96;logger[_0x1deeb7('0x21')](_0x1deeb7('0x18'),_0x134120,_0x519e12);})[_0x7bbe96('0x15')](function(_0x18fbeb){const _0x3cac8c=_0x7bbe96;logger[_0x3cac8c('0x21')](JSON[_0x3cac8c('0x12')](_0x18fbeb));});});},Migration[_0x17d7ad('0x1f')][_0x17d7ad('0x23')]=function(_0x12898d,_0x511c56,_0x13e63a){const _0x4ff036=_0x17d7ad,_0x17a984=this;this[_0x4ff036('0x4')]['enqueue'](function(){const _0xa8cdc9=_0x4ff036;return _0x17a984[_0xa8cdc9('0x8')][_0xa8cdc9('0x23')](_0x12898d,_0x511c56,_0x13e63a)[_0xa8cdc9('0x3')](function(){const _0x2536d4=_0xa8cdc9;logger[_0x2536d4('0x21')](_0x2536d4('0x22'),_0x511c56,_0x12898d);})[_0xa8cdc9('0x15')](function(_0x4ba27e){const _0x3f229a=_0xa8cdc9;logger[_0x3f229a('0x21')](JSON[_0x3f229a('0x12')](_0x4ba27e));});});},Migration['prototype'][_0x17d7ad('0x14')]=function(_0x58bbc7){const _0x263732=_0x17d7ad,_0x693d3a=this;this['sequence'][_0x263732('0x19')](function(){const _0x4bac41=_0x263732;return _0x693d3a[_0x4bac41('0x8')][_0x4bac41('0x14')](_0x58bbc7,{'force':!![]})[_0x4bac41('0x3')](function(){const _0x5339c0=_0x4bac41;logger[_0x5339c0('0x21')](_0x5339c0('0x24'),_0x58bbc7);})[_0x4bac41('0x15')](function(_0x289167){const _0x411acd=_0x4bac41;logger['info'](JSON[_0x411acd('0x12')](_0x289167));});});},Migration['prototype']['addIndex']=function(_0x4b44c0,_0x92c6,_0x11730a){const _0x21db7f=_0x17d7ad,_0x277dd2=this;this['sequence'][_0x21db7f('0x19')](function(){const _0x41eb75=_0x21db7f;return _0x277dd2[_0x41eb75('0x8')][_0x41eb75('0x25')](_0x4b44c0,_0x92c6,{'indexName':_0x11730a[_0x41eb75('0x11')],'indicesType':_0x11730a[_0x41eb75('0x16')]})[_0x41eb75('0x3')](function(){const _0x20b14a=_0x41eb75;logger[_0x20b14a('0x21')](_0x20b14a('0x1d'),_0x4b44c0,_0x92c6[_0x20b14a('0x1')](','),_0x11730a[_0x20b14a('0x11')],_0x11730a['indicesType']);})[_0x41eb75('0x15')](function(_0x3f68e8){const _0x337769=_0x41eb75;logger[_0x337769('0x21')](JSON[_0x337769('0x12')](_0x3f68e8));});});},Migration[_0x17d7ad('0x1f')][_0x17d7ad('0x28')]=function(_0x4dcc3c,_0x27926b){const _0x2a5a9e=_0x17d7ad,_0x4a54f0=this;this['sequence'][_0x2a5a9e('0x19')](function(){const _0x7e9e15=_0x2a5a9e;return _0x4a54f0[_0x7e9e15('0x8')][_0x7e9e15('0x28')](_0x4dcc3c,_0x27926b)[_0x7e9e15('0x3')](function(){const _0x133aa1=_0x7e9e15;logger[_0x133aa1('0x21')](_0x133aa1('0x6'),_0x4dcc3c,_0x27926b);})[_0x7e9e15('0x15')](function(_0x50b877){const _0x156e63=_0x7e9e15;logger[_0x156e63('0x21')](JSON[_0x156e63('0x12')](_0x50b877));});});},Migration[_0x17d7ad('0x1f')][_0x17d7ad('0x5')]=function(_0x4cb3e4){const _0x1f3f1c=_0x17d7ad,_0x26005c=this;this[_0x1f3f1c('0x4')][_0x1f3f1c('0x19')](function(){const _0x12a5ce=_0x1f3f1c;return _0x26005c[_0x12a5ce('0x8')][_0x12a5ce('0x7')]['query'](_0x4cb3e4)[_0x12a5ce('0x3')](function(){const _0x498ce9=_0x12a5ce;logger[_0x498ce9('0x21')](_0x498ce9('0x20'),_0x4cb3e4);})['catch'](function(_0x874c6b){const _0x579022=_0x12a5ce;logger[_0x579022('0x21')](JSON[_0x579022('0x12')](_0x874c6b));});});},Migration[_0x17d7ad('0x1f')][_0x17d7ad('0x2')]=function(_0x54ec92,_0x5a0b4a){const _0x2fb228=_0x17d7ad,_0x28ad5c=this;this[_0x2fb228('0x4')][_0x2fb228('0x19')](function(){const _0x214b94=_0x2fb228;return _0x28ad5c[_0x214b94('0x8')][_0x214b94('0x2')](_0x54ec92,_0x5a0b4a)[_0x214b94('0x3')](function(){const _0x1b03b6=_0x214b94;logger['info'](_0x1b03b6('0x0'),_0x5a0b4a,_0x54ec92);})[_0x214b94('0x15')](function(_0x139989){const _0x49260e=_0x214b94;logger['info'](util[_0x49260e('0xe')](_0x139989,{'showHidden':![],'depth':null}));});});},Migration[_0x17d7ad('0x1f')][_0x17d7ad('0x1a')]=function(_0x39e84f,_0x377e9d,_0xe9094f){const _0x81fc3a=_0x17d7ad,_0x4b8f4a=this;this['sequence'][_0x81fc3a('0x19')](function(){const _0x3039a5=_0x81fc3a;return _0x4b8f4a[_0x3039a5('0x8')][_0x3039a5('0x1a')](_0x39e84f,_0x377e9d,_0xe9094f)[_0x3039a5('0x3')](function(){const _0x584c65=_0x3039a5;logger[_0x584c65('0x21')](_0x584c65('0xd'),_0x377e9d,_0xe9094f,_0x39e84f);})[_0x3039a5('0x15')](function(_0x4c7dff){const _0x30360b=_0x3039a5;logger[_0x30360b('0x21')](util[_0x30360b('0xe')](_0x4c7dff,{'showHidden':![],'depth':null}));});});},Migration[_0x17d7ad('0x1f')]['final']=function(_0x288a76){const _0x3d08fe=_0x17d7ad;this[_0x3d08fe('0x4')][_0x3d08fe('0x19')](function(){return _0x288a76();});},module[_0x17d7ad('0x1b')]={'up':function(_0x47a651,_0x20ed4e){return new Promise(function(_0x40dced){const _0x388289=a1007_0x4325,_0x13eb96=new Migration(_0x47a651);_0x13eb96['removeColumn'](_0x388289('0x17'),_0x388289('0x1c')),_0x13eb96[_0x388289('0x23')]('int_zoho_accounts',_0x388289('0xa'),{'type':_0x20ed4e[_0x388289('0x10')],'defaultValue':'EU'}),_0x13eb96[_0x388289('0x23')]('int_zoho_accounts','clientId',{'type':_0x20ed4e[_0x388289('0x10')]}),_0x13eb96[_0x388289('0x23')](_0x388289('0x17'),_0x388289('0x13'),{'type':_0x20ed4e['STRING']}),_0x13eb96[_0x388289('0x23')](_0x388289('0x17'),_0x388289('0x27'),{'type':_0x20ed4e[_0x388289('0x10')]}),_0x13eb96[_0x388289('0x23')]('int_zoho_accounts',_0x388289('0xc'),{'type':_0x20ed4e[_0x388289('0x10')]}),_0x13eb96['final'](_0x40dced);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.5.js b/server/migrations/2.4.5.js index 6ce6e88..8a64a27 100644 --- a/server/migrations/2.4.5.js +++ b/server/migrations/2.4.5.js @@ -1 +1 @@ -const a1008_0x1292=['addIndex','removeIndex','then','info','dropTable','renameColumn','sequelize','../config/logger','removeColumn','query','addIndex\x20%s\x20%s\x20%s\x20[%s]','catch','table\x20dropped\x20%s','util','Added\x20column\x20%s\x20to\x20%s','query\x20%s','enqueue','inspect','final','stringify','join','migration','finally','prototype','queryInterface','exports','sequence','removeIndex\x20%s\x20%s','indicesType','Removed\x20column\x20%s\x20from\x20%s','addColumn','changeColumn','indexName','tail'];(function(_0x217e19,_0x129214){const _0x296e32=function(_0x366173){while(--_0x366173){_0x217e19['push'](_0x217e19['shift']());}};_0x296e32(++_0x129214);}(a1008_0x1292,0x193));const a1008_0x296e=function(_0x217e19,_0x129214){_0x217e19=_0x217e19-0x0;let _0x296e32=a1008_0x1292[_0x217e19];return _0x296e32;};const _0x10f53e=a1008_0x296e;'use strict';const util=require(_0x10f53e('0x12')),logger=require(_0x10f53e('0xc'))(_0x10f53e('0x1a')),Sequence=function(){};Sequence['prototype'][_0x10f53e('0x15')]=function(_0x366173){const _0xa7665=_0x10f53e;this[_0xa7665('0x4')]=this['tail']?this[_0xa7665('0x4')][_0xa7665('0x1b')](_0x366173):_0x366173();};const Migration=function(_0x436529){const _0x536d21=_0x10f53e;this[_0x536d21('0x1d')]=_0x436529,this[_0x536d21('0x1f')]=new Sequence();};Migration[_0x10f53e('0x1c')][_0x10f53e('0x2')]=function(_0x2ee5f6,_0xaed044,_0x50d792){const _0x587ecf=_0x10f53e,_0x3bcadb=this;this[_0x587ecf('0x1f')][_0x587ecf('0x15')](function(){const _0x686b97=_0x587ecf;return _0x3bcadb[_0x686b97('0x1d')][_0x686b97('0x2')](_0x2ee5f6,_0xaed044,_0x50d792)[_0x686b97('0x7')](function(){const _0x34ddc6=_0x686b97;logger[_0x34ddc6('0x8')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xaed044,_0x2ee5f6);})['catch'](function(_0x3e1317){const _0x23afa7=_0x686b97;logger[_0x23afa7('0x8')](JSON[_0x23afa7('0x18')](_0x3e1317));});});},Migration[_0x10f53e('0x1c')][_0x10f53e('0x1')]=function(_0xf53e11,_0x498d1f,_0x2355c8){const _0x3ea39f=_0x10f53e,_0x3a154f=this;this[_0x3ea39f('0x1f')]['enqueue'](function(){const _0xc205f0=_0x3ea39f;return _0x3a154f[_0xc205f0('0x1d')][_0xc205f0('0x1')](_0xf53e11,_0x498d1f,_0x2355c8)['then'](function(){const _0x57c622=_0xc205f0;logger[_0x57c622('0x8')](_0x57c622('0x13'),_0x498d1f,_0xf53e11);})['catch'](function(_0x4feb13){const _0x41a513=_0xc205f0;logger['info'](JSON[_0x41a513('0x18')](_0x4feb13));});});},Migration[_0x10f53e('0x1c')]['dropTable']=function(_0x13c4dc){const _0x32bb91=_0x10f53e,_0x36f33d=this;this[_0x32bb91('0x1f')]['enqueue'](function(){const _0x2c574c=_0x32bb91;return _0x36f33d[_0x2c574c('0x1d')][_0x2c574c('0x9')](_0x13c4dc,{'force':!![]})[_0x2c574c('0x7')](function(){const _0x362339=_0x2c574c;logger[_0x362339('0x8')](_0x362339('0x11'),_0x13c4dc);})['catch'](function(_0x491d19){const _0x31ea6d=_0x2c574c;logger['info'](JSON[_0x31ea6d('0x18')](_0x491d19));});});},Migration['prototype'][_0x10f53e('0x5')]=function(_0x551329,_0x2c976d,_0x341551){const _0x3b4338=_0x10f53e,_0x4546ce=this;this[_0x3b4338('0x1f')][_0x3b4338('0x15')](function(){const _0x16eff8=_0x3b4338;return _0x4546ce['queryInterface'][_0x16eff8('0x5')](_0x551329,_0x2c976d,{'indexName':_0x341551[_0x16eff8('0x3')],'indicesType':_0x341551[_0x16eff8('0x21')]})[_0x16eff8('0x7')](function(){const _0x101fdd=_0x16eff8;logger[_0x101fdd('0x8')](_0x101fdd('0xf'),_0x551329,_0x2c976d[_0x101fdd('0x19')](','),_0x341551[_0x101fdd('0x3')],_0x341551[_0x101fdd('0x21')]);})[_0x16eff8('0x10')](function(_0x5749c2){const _0x26713b=_0x16eff8;logger[_0x26713b('0x8')](JSON[_0x26713b('0x18')](_0x5749c2));});});},Migration['prototype'][_0x10f53e('0x6')]=function(_0x575684,_0x273681){const _0x36324c=_0x10f53e,_0x2114b4=this;this[_0x36324c('0x1f')][_0x36324c('0x15')](function(){const _0x39a8ee=_0x36324c;return _0x2114b4[_0x39a8ee('0x1d')][_0x39a8ee('0x6')](_0x575684,_0x273681)[_0x39a8ee('0x7')](function(){const _0x2fc977=_0x39a8ee;logger[_0x2fc977('0x8')](_0x2fc977('0x20'),_0x575684,_0x273681);})['catch'](function(_0x4755cc){const _0x25d321=_0x39a8ee;logger[_0x25d321('0x8')](JSON[_0x25d321('0x18')](_0x4755cc));});});},Migration[_0x10f53e('0x1c')][_0x10f53e('0xe')]=function(_0x15b919){const _0x41b327=_0x10f53e,_0x2ccc47=this;this[_0x41b327('0x1f')][_0x41b327('0x15')](function(){const _0x5a525a=_0x41b327;return _0x2ccc47[_0x5a525a('0x1d')][_0x5a525a('0xb')][_0x5a525a('0xe')](_0x15b919)['then'](function(){const _0x4f3ea0=_0x5a525a;logger[_0x4f3ea0('0x8')](_0x4f3ea0('0x14'),_0x15b919);})[_0x5a525a('0x10')](function(_0xd57cbc){const _0x44d4c9=_0x5a525a;logger[_0x44d4c9('0x8')](JSON[_0x44d4c9('0x18')](_0xd57cbc));});});},Migration[_0x10f53e('0x1c')][_0x10f53e('0xd')]=function(_0xcc6c20,_0x12da34){const _0x1e9682=_0x10f53e,_0x440ac2=this;this[_0x1e9682('0x1f')]['enqueue'](function(){const _0x5b5c23=_0x1e9682;return _0x440ac2[_0x5b5c23('0x1d')][_0x5b5c23('0xd')](_0xcc6c20,_0x12da34)[_0x5b5c23('0x7')](function(){const _0x501f10=_0x5b5c23;logger[_0x501f10('0x8')](_0x501f10('0x0'),_0x12da34,_0xcc6c20);})['catch'](function(_0x1f7280){const _0x364901=_0x5b5c23;logger[_0x364901('0x8')](util[_0x364901('0x16')](_0x1f7280,{'showHidden':![],'depth':null}));});});},Migration[_0x10f53e('0x1c')][_0x10f53e('0xa')]=function(_0x1c361b,_0x209984,_0x3961ff){const _0x50ebde=_0x10f53e,_0xb1e99f=this;this[_0x50ebde('0x1f')]['enqueue'](function(){const _0x23e1a1=_0x50ebde;return _0xb1e99f[_0x23e1a1('0x1d')][_0x23e1a1('0xa')](_0x1c361b,_0x209984,_0x3961ff)[_0x23e1a1('0x7')](function(){const _0x427412=_0x23e1a1;logger[_0x427412('0x8')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x209984,_0x3961ff,_0x1c361b);})[_0x23e1a1('0x10')](function(_0x4b18e5){const _0x520709=_0x23e1a1;logger[_0x520709('0x8')](util[_0x520709('0x16')](_0x4b18e5,{'showHidden':![],'depth':null}));});});},Migration[_0x10f53e('0x1c')][_0x10f53e('0x17')]=function(_0x2431dd){const _0x55c275=_0x10f53e;this['sequence'][_0x55c275('0x15')](function(){return _0x2431dd();});},module[_0x10f53e('0x1e')]={'up':function(_0x32119e){return new Promise(function(_0x1d7873){const _0x1c347f=new Migration(_0x32119e);_0x1c347f['final'](_0x1d7873);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.6.js b/server/migrations/2.4.6.js index b9cd08a..f53af17 100644 --- a/server/migrations/2.4.6.js +++ b/server/migrations/2.4.6.js @@ -1 +1 @@ -const a1009_0x39fd=['indexName','info','prototype','exports','stringify','table\x20dropped\x20%s','sequence','addIndex','removeIndex\x20%s\x20%s','migration','finally','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequelize','query','renameColumn','changeColumn','addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','inspect','tail','Added\x20column\x20%s\x20to\x20%s','removeIndex','dropTable','queryInterface','Removed\x20column\x20%s\x20from\x20%s','indicesType','final','catch','../config/logger','then','util','join'];(function(_0x32c764,_0x39fdd5){const _0x503206=function(_0x10711f){while(--_0x10711f){_0x32c764['push'](_0x32c764['shift']());}};_0x503206(++_0x39fdd5);}(a1009_0x39fd,0x126));const a1009_0x5032=function(_0x32c764,_0x39fdd5){_0x32c764=_0x32c764-0x0;let _0x503206=a1009_0x39fd[_0x32c764];return _0x503206;};const _0x4a61b2=a1009_0x5032;'use strict';const util=require(_0x4a61b2('0x1')),logger=require(_0x4a61b2('0x20'))(_0x4a61b2('0xc')),Sequence=function(){};Sequence[_0x4a61b2('0x5')][_0x4a61b2('0x15')]=function(_0x10711f){const _0xcfdaba=_0x4a61b2;this[_0xcfdaba('0x17')]=this['tail']?this[_0xcfdaba('0x17')][_0xcfdaba('0xd')](_0x10711f):_0x10711f();};const Migration=function(_0x3f7d9a){const _0x3b1dcd=_0x4a61b2;this['queryInterface']=_0x3f7d9a,this[_0x3b1dcd('0x9')]=new Sequence();};Migration['prototype'][_0x4a61b2('0x12')]=function(_0x1e1880,_0x2c93ce,_0x3d8650){const _0x53c020=_0x4a61b2,_0x3679d4=this;this[_0x53c020('0x9')][_0x53c020('0x15')](function(){const _0x323090=_0x53c020;return _0x3679d4['queryInterface'][_0x323090('0x12')](_0x1e1880,_0x2c93ce,_0x3d8650)[_0x323090('0x0')](function(){const _0x110be8=_0x323090;logger[_0x110be8('0x4')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x2c93ce,_0x1e1880);})[_0x323090('0x1f')](function(_0x5ee406){const _0x1138fe=_0x323090;logger[_0x1138fe('0x4')](JSON[_0x1138fe('0x7')](_0x5ee406));});});},Migration[_0x4a61b2('0x5')][_0x4a61b2('0x13')]=function(_0x22d8ae,_0x4cf920,_0x1ecc78){const _0x50691f=_0x4a61b2,_0x425467=this;this['sequence'][_0x50691f('0x15')](function(){const _0x2fd9a7=_0x50691f;return _0x425467[_0x2fd9a7('0x1b')]['addColumn'](_0x22d8ae,_0x4cf920,_0x1ecc78)[_0x2fd9a7('0x0')](function(){const _0x550c8a=_0x2fd9a7;logger['info'](_0x550c8a('0x18'),_0x4cf920,_0x22d8ae);})['catch'](function(_0x28be21){const _0x355730=_0x2fd9a7;logger[_0x355730('0x4')](JSON[_0x355730('0x7')](_0x28be21));});});},Migration[_0x4a61b2('0x5')][_0x4a61b2('0x1a')]=function(_0x37156e){const _0x5ae2ab=_0x4a61b2,_0x277f98=this;this['sequence'][_0x5ae2ab('0x15')](function(){const _0x4ec65f=_0x5ae2ab;return _0x277f98[_0x4ec65f('0x1b')]['dropTable'](_0x37156e,{'force':!![]})[_0x4ec65f('0x0')](function(){const _0x138301=_0x4ec65f;logger[_0x138301('0x4')](_0x138301('0x8'),_0x37156e);})['catch'](function(_0x532ee8){logger['info'](JSON['stringify'](_0x532ee8));});});},Migration['prototype'][_0x4a61b2('0xa')]=function(_0x2d8262,_0xe9672,_0x591742){const _0x57d1c4=_0x4a61b2,_0x1cca41=this;this['sequence'][_0x57d1c4('0x15')](function(){const _0x12af73=_0x57d1c4;return _0x1cca41[_0x12af73('0x1b')]['addIndex'](_0x2d8262,_0xe9672,{'indexName':_0x591742[_0x12af73('0x3')],'indicesType':_0x591742[_0x12af73('0x1d')]})['then'](function(){const _0x199a0e=_0x12af73;logger['info'](_0x199a0e('0xe'),_0x2d8262,_0xe9672[_0x199a0e('0x2')](','),_0x591742[_0x199a0e('0x3')],_0x591742[_0x199a0e('0x1d')]);})[_0x12af73('0x1f')](function(_0x492a4e){logger['info'](JSON['stringify'](_0x492a4e));});});},Migration[_0x4a61b2('0x5')][_0x4a61b2('0x19')]=function(_0x22fcdb,_0x182575){const _0x408a20=_0x4a61b2,_0x18fd0d=this;this[_0x408a20('0x9')][_0x408a20('0x15')](function(){const _0x5e8680=_0x408a20;return _0x18fd0d[_0x5e8680('0x1b')][_0x5e8680('0x19')](_0x22fcdb,_0x182575)[_0x5e8680('0x0')](function(){const _0x21a5ed=_0x5e8680;logger[_0x21a5ed('0x4')](_0x21a5ed('0xb'),_0x22fcdb,_0x182575);})[_0x5e8680('0x1f')](function(_0x4f1141){const _0x250cba=_0x5e8680;logger['info'](JSON[_0x250cba('0x7')](_0x4f1141));});});},Migration['prototype']['query']=function(_0x4b0aef){const _0x2ba41a=_0x4a61b2,_0x2b5798=this;this[_0x2ba41a('0x9')][_0x2ba41a('0x15')](function(){const _0x27a0a1=_0x2ba41a;return _0x2b5798[_0x27a0a1('0x1b')][_0x27a0a1('0xf')][_0x27a0a1('0x10')](_0x4b0aef)[_0x27a0a1('0x0')](function(){const _0xdfc11=_0x27a0a1;logger[_0xdfc11('0x4')]('query\x20%s',_0x4b0aef);})['catch'](function(_0x339c28){const _0x30e8d6=_0x27a0a1;logger['info'](JSON[_0x30e8d6('0x7')](_0x339c28));});});},Migration[_0x4a61b2('0x5')]['removeColumn']=function(_0x509b61,_0xdc5218){const _0x2fb751=_0x4a61b2,_0xd91297=this;this['sequence'][_0x2fb751('0x15')](function(){const _0x92b5ab=_0x2fb751;return _0xd91297[_0x92b5ab('0x1b')]['removeColumn'](_0x509b61,_0xdc5218)['then'](function(){const _0x1b247c=_0x92b5ab;logger[_0x1b247c('0x4')](_0x1b247c('0x1c'),_0xdc5218,_0x509b61);})['catch'](function(_0x109b37){const _0x532170=_0x92b5ab;logger[_0x532170('0x4')](util['inspect'](_0x109b37,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4a61b2('0x11')]=function(_0x545a7f,_0x4a444b,_0x4695d7){const _0x6263c9=_0x4a61b2,_0x4d7aac=this;this['sequence'][_0x6263c9('0x15')](function(){const _0x3a0f03=_0x6263c9;return _0x4d7aac[_0x3a0f03('0x1b')][_0x3a0f03('0x11')](_0x545a7f,_0x4a444b,_0x4695d7)['then'](function(){const _0x4ccfd2=_0x3a0f03;logger[_0x4ccfd2('0x4')](_0x4ccfd2('0x14'),_0x4a444b,_0x4695d7,_0x545a7f);})[_0x3a0f03('0x1f')](function(_0x5f36f6){const _0x1bbac1=_0x3a0f03;logger['info'](util[_0x1bbac1('0x16')](_0x5f36f6,{'showHidden':![],'depth':null}));});});},Migration[_0x4a61b2('0x5')]['final']=function(_0xa724cd){const _0x415ba4=_0x4a61b2;this[_0x415ba4('0x9')][_0x415ba4('0x15')](function(){return _0xa724cd();});},module[_0x4a61b2('0x6')]={'up':function(_0x1b7a96){return new Promise(function(_0x2aff33){const _0x4def73=a1009_0x5032,_0x2b4ec4=new Migration(_0x1b7a96);_0x2b4ec4[_0x4def73('0x1e')](_0x2aff33);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.7.js b/server/migrations/2.4.7.js index f1326c2..2e00a8b 100644 --- a/server/migrations/2.4.7.js +++ b/server/migrations/2.4.7.js @@ -1 +1 @@ -const a1010_0x56f5=['dropTable','chat_websites','chat_interactions','enqueue','moduleCreate','removeIndex','indexName','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequence','table\x20dropped\x20%s','then','tail','removeColumn','ENUM','addColumn','changeColumn','feedbackTitle','Removed\x20column\x20%s\x20from\x20%s','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','migration','stringify','../config/logger','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','prototype','info','query','STRING','catch','inspect','int_zoho_configurations','final','Feedback','Contacts','join','indicesType','addIndex','queryInterface','BOOLEAN','customerPort','enableSendButton'];(function(_0x4a1036,_0x56f565){const _0x5cf13c=function(_0x346b48){while(--_0x346b48){_0x4a1036['push'](_0x4a1036['shift']());}};_0x5cf13c(++_0x56f565);}(a1010_0x56f5,0x164));const a1010_0x5cf1=function(_0x4a1036,_0x56f565){_0x4a1036=_0x4a1036-0x0;let _0x5cf13c=a1010_0x56f5[_0x4a1036];return _0x5cf13c;};const _0x1943ba=a1010_0x5cf1;'use strict';const util=require('util'),logger=require(_0x1943ba('0x23'))(_0x1943ba('0x21')),Sequence=function(){};Sequence[_0x1943ba('0x25')][_0x1943ba('0x10')]=function(_0x346b48){const _0x53a6e7=_0x1943ba;this[_0x53a6e7('0x18')]=this['tail']?this[_0x53a6e7('0x18')]['finally'](_0x346b48):_0x346b48();};const Migration=function(_0x52e661){const _0x1a40a0=_0x1943ba;this[_0x1a40a0('0x9')]=_0x52e661,this[_0x1a40a0('0x15')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0xb4d54b,_0x21e6b5,_0x23ce50){const _0x58d1b6=_0x1943ba,_0x4d1760=this;this[_0x58d1b6('0x15')][_0x58d1b6('0x10')](function(){const _0xe2056d=_0x58d1b6;return _0x4d1760[_0xe2056d('0x9')][_0xe2056d('0x1c')](_0xb4d54b,_0x21e6b5,_0x23ce50)[_0xe2056d('0x17')](function(){const _0x129e29=_0xe2056d;logger['info'](_0x129e29('0x20'),_0x21e6b5,_0xb4d54b);})[_0xe2056d('0x0')](function(_0xd808d){const _0x56565a=_0xe2056d;logger[_0x56565a('0x26')](JSON[_0x56565a('0x22')](_0xd808d));});});},Migration[_0x1943ba('0x25')][_0x1943ba('0x1b')]=function(_0x5c4683,_0x576396,_0x12b518){const _0x1fdc95=_0x1943ba,_0x273eaf=this;this[_0x1fdc95('0x15')][_0x1fdc95('0x10')](function(){const _0x3ead60=_0x1fdc95;return _0x273eaf[_0x3ead60('0x9')][_0x3ead60('0x1b')](_0x5c4683,_0x576396,_0x12b518)[_0x3ead60('0x17')](function(){const _0x125c72=_0x3ead60;logger[_0x125c72('0x26')]('Added\x20column\x20%s\x20to\x20%s',_0x576396,_0x5c4683);})[_0x3ead60('0x0')](function(_0xedc4d1){const _0xf1f325=_0x3ead60;logger[_0xf1f325('0x26')](JSON['stringify'](_0xedc4d1));});});},Migration[_0x1943ba('0x25')][_0x1943ba('0xd')]=function(_0x24a535){const _0x6c7d63=_0x1943ba,_0xfaefec=this;this[_0x6c7d63('0x15')]['enqueue'](function(){const _0x4fbdcc=_0x6c7d63;return _0xfaefec[_0x4fbdcc('0x9')][_0x4fbdcc('0xd')](_0x24a535,{'force':!![]})[_0x4fbdcc('0x17')](function(){const _0x3b79ba=_0x4fbdcc;logger['info'](_0x3b79ba('0x16'),_0x24a535);})[_0x4fbdcc('0x0')](function(_0x183ee8){const _0x509376=_0x4fbdcc;logger[_0x509376('0x26')](JSON[_0x509376('0x22')](_0x183ee8));});});},Migration[_0x1943ba('0x25')][_0x1943ba('0x8')]=function(_0x45febe,_0x2df6bd,_0xdf8d6b){const _0x553e8c=_0x1943ba,_0x437647=this;this[_0x553e8c('0x15')]['enqueue'](function(){const _0x35b40d=_0x553e8c;return _0x437647[_0x35b40d('0x9')]['addIndex'](_0x45febe,_0x2df6bd,{'indexName':_0xdf8d6b[_0x35b40d('0x13')],'indicesType':_0xdf8d6b[_0x35b40d('0x7')]})[_0x35b40d('0x17')](function(){const _0x36c05f=_0x35b40d;logger[_0x36c05f('0x26')](_0x36c05f('0x14'),_0x45febe,_0x2df6bd[_0x36c05f('0x6')](','),_0xdf8d6b['indexName'],_0xdf8d6b[_0x36c05f('0x7')]);})[_0x35b40d('0x0')](function(_0x418832){const _0x19e64b=_0x35b40d;logger[_0x19e64b('0x26')](JSON['stringify'](_0x418832));});});},Migration['prototype']['removeIndex']=function(_0x5eeb6e,_0x5c3335){const _0x4b5745=_0x1943ba,_0x583e70=this;this[_0x4b5745('0x15')][_0x4b5745('0x10')](function(){const _0x518495=_0x4b5745;return _0x583e70[_0x518495('0x9')][_0x518495('0x12')](_0x5eeb6e,_0x5c3335)[_0x518495('0x17')](function(){const _0x53d02b=_0x518495;logger[_0x53d02b('0x26')]('removeIndex\x20%s\x20%s',_0x5eeb6e,_0x5c3335);})[_0x518495('0x0')](function(_0x3a7c17){const _0x371a4a=_0x518495;logger[_0x371a4a('0x26')](JSON[_0x371a4a('0x22')](_0x3a7c17));});});},Migration[_0x1943ba('0x25')][_0x1943ba('0x27')]=function(_0x36ae2f){const _0x42ae1d=_0x1943ba,_0x4fcc4d=this;this['sequence'][_0x42ae1d('0x10')](function(){const _0x149f1c=_0x42ae1d;return _0x4fcc4d[_0x149f1c('0x9')][_0x149f1c('0x1f')][_0x149f1c('0x27')](_0x36ae2f)[_0x149f1c('0x17')](function(){const _0xa49d4d=_0x149f1c;logger[_0xa49d4d('0x26')]('query\x20%s',_0x36ae2f);})[_0x149f1c('0x0')](function(_0x1608bf){const _0x25c1ec=_0x149f1c;logger['info'](JSON[_0x25c1ec('0x22')](_0x1608bf));});});},Migration['prototype'][_0x1943ba('0x19')]=function(_0x412e06,_0x402412){const _0x2b2942=_0x1943ba,_0x54582c=this;this[_0x2b2942('0x15')][_0x2b2942('0x10')](function(){const _0x2b4119=_0x2b2942;return _0x54582c[_0x2b4119('0x9')][_0x2b4119('0x19')](_0x412e06,_0x402412)['then'](function(){const _0x5e33a6=_0x2b4119;logger[_0x5e33a6('0x26')](_0x5e33a6('0x1e'),_0x402412,_0x412e06);})[_0x2b4119('0x0')](function(_0x4fd32e){const _0x597888=_0x2b4119;logger[_0x597888('0x26')](util[_0x597888('0x1')](_0x4fd32e,{'showHidden':![],'depth':null}));});});},Migration[_0x1943ba('0x25')]['renameColumn']=function(_0x277055,_0x2a2fec,_0x3645b9){const _0x330f3a=_0x1943ba,_0x196086=this;this[_0x330f3a('0x15')][_0x330f3a('0x10')](function(){const _0x4a924d=_0x330f3a;return _0x196086[_0x4a924d('0x9')]['renameColumn'](_0x277055,_0x2a2fec,_0x3645b9)['then'](function(){const _0x502695=_0x4a924d;logger[_0x502695('0x26')](_0x502695('0x24'),_0x2a2fec,_0x3645b9,_0x277055);})[_0x4a924d('0x0')](function(_0x4976d9){const _0x12f8f1=_0x4a924d;logger[_0x12f8f1('0x26')](util[_0x12f8f1('0x1')](_0x4976d9,{'showHidden':![],'depth':null}));});});},Migration[_0x1943ba('0x25')][_0x1943ba('0x3')]=function(_0x84006a){const _0x13c9e3=_0x1943ba;this[_0x13c9e3('0x15')]['enqueue'](function(){return _0x84006a();});},module['exports']={'up':function(_0x27bac2,_0x1551aa){return new Promise(function(_0xb5b180){const _0x2e5670=a1010_0x5cf1,_0x7b9432=new Migration(_0x27bac2);_0x7b9432[_0x2e5670('0x1b')](_0x2e5670('0x2'),_0x2e5670('0x11'),{'type':_0x1551aa[_0x2e5670('0x1a')]('Leads',_0x2e5670('0x5')),'defaultValue':'Leads'}),_0x7b9432[_0x2e5670('0x1b')](_0x2e5670('0xf'),_0x2e5670('0xb'),{'type':_0x1551aa[_0x2e5670('0x28')]}),_0x7b9432[_0x2e5670('0x1b')](_0x2e5670('0xe'),_0x2e5670('0xc'),{'type':_0x1551aa[_0x2e5670('0xa')],'defaultValue':![]}),_0x7b9432[_0x2e5670('0x1b')](_0x2e5670('0xe'),_0x2e5670('0x1d'),{'type':_0x1551aa[_0x2e5670('0x28')],'defaultValue':_0x2e5670('0x4')}),_0x7b9432[_0x2e5670('0x3')](_0xb5b180);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.8.js b/server/migrations/2.4.8.js index f10e917..7d26553 100644 --- a/server/migrations/2.4.8.js +++ b/server/migrations/2.4.8.js @@ -1 +1 @@ -const a1011_0x4039=['dropTable','../config/logger','table\x20dropped\x20%s','util','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','tail','removeIndex','indicesType','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','Added\x20column\x20%s\x20to\x20%s','query','migration','sequelize','join','stringify','Removed\x20column\x20%s\x20from\x20%s','finally','removeColumn','final','sequence','query\x20%s','addIndex','exports','then','inspect','addColumn','info','catch','prototype'];(function(_0x4b3cbf,_0x40390e){const _0x21aa3e=function(_0x38b884){while(--_0x38b884){_0x4b3cbf['push'](_0x4b3cbf['shift']());}};_0x21aa3e(++_0x40390e);}(a1011_0x4039,0x11f));const a1011_0x21aa=function(_0x4b3cbf,_0x40390e){_0x4b3cbf=_0x4b3cbf-0x0;let _0x21aa3e=a1011_0x4039[_0x4b3cbf];return _0x21aa3e;};const _0x6a6338=a1011_0x21aa;'use strict';const util=require(_0x6a6338('0x1a')),logger=require(_0x6a6338('0x18'))(_0x6a6338('0x5')),Sequence=function(){};Sequence[_0x6a6338('0x16')][_0x6a6338('0x1')]=function(_0x38b884){const _0x13c3fe=_0x6a6338;this[_0x13c3fe('0x1d')]=this[_0x13c3fe('0x1d')]?this['tail'][_0x13c3fe('0xa')](_0x38b884):_0x38b884();};const Migration=function(_0x25c1da){const _0x8bdc11=_0x6a6338;this[_0x8bdc11('0x1c')]=_0x25c1da,this[_0x8bdc11('0xd')]=new Sequence();};Migration[_0x6a6338('0x16')]['changeColumn']=function(_0x597616,_0x29cc11,_0xa4c858){const _0x458049=_0x6a6338,_0x30920c=this;this[_0x458049('0xd')][_0x458049('0x1')](function(){const _0x4b2774=_0x458049;return _0x30920c[_0x4b2774('0x1c')]['changeColumn'](_0x597616,_0x29cc11,_0xa4c858)['then'](function(){const _0x3150f6=_0x4b2774;logger[_0x3150f6('0x14')](_0x3150f6('0x2'),_0x29cc11,_0x597616);})[_0x4b2774('0x15')](function(_0x1f3259){const _0x58521d=_0x4b2774;logger[_0x58521d('0x14')](JSON[_0x58521d('0x8')](_0x1f3259));});});},Migration['prototype'][_0x6a6338('0x13')]=function(_0x41781a,_0x301b10,_0x3c1e2e){const _0x187744=_0x6a6338,_0x32999f=this;this[_0x187744('0xd')][_0x187744('0x1')](function(){const _0x32b2f3=_0x187744;return _0x32999f[_0x32b2f3('0x1c')]['addColumn'](_0x41781a,_0x301b10,_0x3c1e2e)[_0x32b2f3('0x11')](function(){const _0x1a64a3=_0x32b2f3;logger[_0x1a64a3('0x14')](_0x1a64a3('0x3'),_0x301b10,_0x41781a);})['catch'](function(_0x5136a6){const _0x107e72=_0x32b2f3;logger[_0x107e72('0x14')](JSON[_0x107e72('0x8')](_0x5136a6));});});},Migration[_0x6a6338('0x16')][_0x6a6338('0x17')]=function(_0x238356){const _0x42adc1=_0x6a6338,_0x164804=this;this['sequence'][_0x42adc1('0x1')](function(){const _0xea2473=_0x42adc1;return _0x164804[_0xea2473('0x1c')][_0xea2473('0x17')](_0x238356,{'force':!![]})[_0xea2473('0x11')](function(){const _0x1c09a7=_0xea2473;logger[_0x1c09a7('0x14')](_0x1c09a7('0x19'),_0x238356);})['catch'](function(_0xd81746){const _0x22b989=_0xea2473;logger[_0x22b989('0x14')](JSON[_0x22b989('0x8')](_0xd81746));});});},Migration['prototype'][_0x6a6338('0xf')]=function(_0x1fa8d6,_0x5bac7e,_0x5ca5a8){const _0x61ea03=this;this['sequence']['enqueue'](function(){const _0x495584=a1011_0x21aa;return _0x61ea03['queryInterface'][_0x495584('0xf')](_0x1fa8d6,_0x5bac7e,{'indexName':_0x5ca5a8['indexName'],'indicesType':_0x5ca5a8[_0x495584('0x0')]})[_0x495584('0x11')](function(){const _0x41b513=_0x495584;logger[_0x41b513('0x14')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x1fa8d6,_0x5bac7e[_0x41b513('0x7')](','),_0x5ca5a8['indexName'],_0x5ca5a8[_0x41b513('0x0')]);})[_0x495584('0x15')](function(_0x1463c4){const _0x20646c=_0x495584;logger[_0x20646c('0x14')](JSON['stringify'](_0x1463c4));});});},Migration['prototype'][_0x6a6338('0x1e')]=function(_0x1ff5df,_0x5f0198){const _0x243dc1=_0x6a6338,_0x2cd4c4=this;this[_0x243dc1('0xd')][_0x243dc1('0x1')](function(){const _0x5342dd=_0x243dc1;return _0x2cd4c4['queryInterface'][_0x5342dd('0x1e')](_0x1ff5df,_0x5f0198)[_0x5342dd('0x11')](function(){const _0x113a0a=_0x5342dd;logger[_0x113a0a('0x14')]('removeIndex\x20%s\x20%s',_0x1ff5df,_0x5f0198);})[_0x5342dd('0x15')](function(_0x509d92){const _0xd06436=_0x5342dd;logger[_0xd06436('0x14')](JSON[_0xd06436('0x8')](_0x509d92));});});},Migration[_0x6a6338('0x16')][_0x6a6338('0x4')]=function(_0x26c1ef){const _0x2dfc24=_0x6a6338,_0x1a357d=this;this[_0x2dfc24('0xd')][_0x2dfc24('0x1')](function(){const _0x11fa8c=_0x2dfc24;return _0x1a357d[_0x11fa8c('0x1c')][_0x11fa8c('0x6')][_0x11fa8c('0x4')](_0x26c1ef)[_0x11fa8c('0x11')](function(){const _0xb86578=_0x11fa8c;logger[_0xb86578('0x14')](_0xb86578('0xe'),_0x26c1ef);})['catch'](function(_0x1b2788){const _0x4c5a89=_0x11fa8c;logger[_0x4c5a89('0x14')](JSON[_0x4c5a89('0x8')](_0x1b2788));});});},Migration[_0x6a6338('0x16')]['removeColumn']=function(_0x583f2f,_0x426a3b){const _0x2aae87=_0x6a6338,_0x415157=this;this[_0x2aae87('0xd')][_0x2aae87('0x1')](function(){const _0x52bb03=_0x2aae87;return _0x415157[_0x52bb03('0x1c')][_0x52bb03('0xb')](_0x583f2f,_0x426a3b)[_0x52bb03('0x11')](function(){const _0x533d8c=_0x52bb03;logger['info'](_0x533d8c('0x9'),_0x426a3b,_0x583f2f);})[_0x52bb03('0x15')](function(_0x283f59){const _0x32d955=_0x52bb03;logger['info'](util[_0x32d955('0x12')](_0x283f59,{'showHidden':![],'depth':null}));});});},Migration[_0x6a6338('0x16')]['renameColumn']=function(_0x3dfdfb,_0x1b9ee5,_0x3971ea){const _0x17b4b5=_0x6a6338,_0x38f90e=this;this[_0x17b4b5('0xd')][_0x17b4b5('0x1')](function(){const _0x53d9ef=_0x17b4b5;return _0x38f90e[_0x53d9ef('0x1c')]['renameColumn'](_0x3dfdfb,_0x1b9ee5,_0x3971ea)[_0x53d9ef('0x11')](function(){const _0x22d574=_0x53d9ef;logger[_0x22d574('0x14')](_0x22d574('0x1b'),_0x1b9ee5,_0x3971ea,_0x3dfdfb);})['catch'](function(_0x5f5333){const _0x34f893=_0x53d9ef;logger[_0x34f893('0x14')](util[_0x34f893('0x12')](_0x5f5333,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x6a6338('0xc')]=function(_0x44070b){const _0x229865=_0x6a6338;this['sequence'][_0x229865('0x1')](function(){return _0x44070b();});},module[_0x6a6338('0x10')]={'up':function(_0x51d4be){return new Promise(function(_0x34b79c){const _0x2b142f=new Migration(_0x51d4be);_0x2b142f['final'](_0x34b79c);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.9.js b/server/migrations/2.4.9.js index 624d014..2fe343d 100644 --- a/server/migrations/2.4.9.js +++ b/server/migrations/2.4.9.js @@ -1 +1 @@ -const a1012_0x1fc1=['tail','catch','../config/logger','removeIndex\x20%s\x20%s','stringify','exports','migration','Changed\x20column\x20%s\x20in\x20table\x20%s','indicesType','queryInterface','dropTable','Removed\x20column\x20%s\x20from\x20%s','query','enqueue','indexName','removeColumn','inspect','Added\x20column\x20%s\x20to\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','changeColumn','final','join','table\x20dropped\x20%s','addColumn','sequence','finally','then','renameColumn','prototype','info','removeIndex','addIndex'];(function(_0x5f25f6,_0x1fc11c){const _0x4d4d2e=function(_0x2ed05a){while(--_0x2ed05a){_0x5f25f6['push'](_0x5f25f6['shift']());}};_0x4d4d2e(++_0x1fc11c);}(a1012_0x1fc1,0xe5));const a1012_0x4d4d=function(_0x5f25f6,_0x1fc11c){_0x5f25f6=_0x5f25f6-0x0;let _0x4d4d2e=a1012_0x1fc1[_0x5f25f6];return _0x4d4d2e;};const _0x173290=a1012_0x4d4d;'use strict';const util=require('util'),logger=require(_0x173290('0x1d'))(_0x173290('0x1')),Sequence=function(){};Sequence[_0x173290('0x17')][_0x173290('0x8')]=function(_0x2ed05a){const _0xce0fa0=_0x173290;this[_0xce0fa0('0x1b')]=this[_0xce0fa0('0x1b')]?this[_0xce0fa0('0x1b')][_0xce0fa0('0x14')](_0x2ed05a):_0x2ed05a();};const Migration=function(_0xadee65){const _0x5d38b1=_0x173290;this[_0x5d38b1('0x4')]=_0xadee65,this[_0x5d38b1('0x13')]=new Sequence();};Migration['prototype'][_0x173290('0xe')]=function(_0x2cdbab,_0x1ad6c4,_0x5dc5ec){const _0x4ecca0=_0x173290,_0x54ef3c=this;this[_0x4ecca0('0x13')][_0x4ecca0('0x8')](function(){const _0xb45f00=_0x4ecca0;return _0x54ef3c[_0xb45f00('0x4')][_0xb45f00('0xe')](_0x2cdbab,_0x1ad6c4,_0x5dc5ec)['then'](function(){const _0x121aa0=_0xb45f00;logger['info'](_0x121aa0('0x2'),_0x1ad6c4,_0x2cdbab);})['catch'](function(_0x2e2604){const _0x3190a2=_0xb45f00;logger['info'](JSON[_0x3190a2('0x1f')](_0x2e2604));});});},Migration[_0x173290('0x17')][_0x173290('0x12')]=function(_0x2a2965,_0x91c32,_0x402167){const _0x2d8b80=_0x173290,_0x42546f=this;this[_0x2d8b80('0x13')]['enqueue'](function(){const _0x4dd611=_0x2d8b80;return _0x42546f['queryInterface']['addColumn'](_0x2a2965,_0x91c32,_0x402167)[_0x4dd611('0x15')](function(){const _0x5a2048=_0x4dd611;logger[_0x5a2048('0x18')](_0x5a2048('0xc'),_0x91c32,_0x2a2965);})[_0x4dd611('0x1c')](function(_0x4d5775){const _0x23a2f7=_0x4dd611;logger['info'](JSON[_0x23a2f7('0x1f')](_0x4d5775));});});},Migration[_0x173290('0x17')][_0x173290('0x5')]=function(_0x40e53e){const _0x220680=this;this['sequence']['enqueue'](function(){const _0x3af4bc=a1012_0x4d4d;return _0x220680[_0x3af4bc('0x4')][_0x3af4bc('0x5')](_0x40e53e,{'force':!![]})[_0x3af4bc('0x15')](function(){const _0x31f7=_0x3af4bc;logger[_0x31f7('0x18')](_0x31f7('0x11'),_0x40e53e);})[_0x3af4bc('0x1c')](function(_0x404fdf){const _0xcd64a5=_0x3af4bc;logger[_0xcd64a5('0x18')](JSON[_0xcd64a5('0x1f')](_0x404fdf));});});},Migration[_0x173290('0x17')][_0x173290('0x1a')]=function(_0x5bd293,_0x47506f,_0x3fed00){const _0xbd5eeb=_0x173290,_0x39f864=this;this[_0xbd5eeb('0x13')][_0xbd5eeb('0x8')](function(){const _0x393d09=_0xbd5eeb;return _0x39f864[_0x393d09('0x4')][_0x393d09('0x1a')](_0x5bd293,_0x47506f,{'indexName':_0x3fed00[_0x393d09('0x9')],'indicesType':_0x3fed00[_0x393d09('0x3')]})[_0x393d09('0x15')](function(){const _0x1d8a93=_0x393d09;logger['info'](_0x1d8a93('0xd'),_0x5bd293,_0x47506f[_0x1d8a93('0x10')](','),_0x3fed00[_0x1d8a93('0x9')],_0x3fed00[_0x1d8a93('0x3')]);})[_0x393d09('0x1c')](function(_0x52978c){const _0x173106=_0x393d09;logger[_0x173106('0x18')](JSON[_0x173106('0x1f')](_0x52978c));});});},Migration[_0x173290('0x17')][_0x173290('0x19')]=function(_0x3cc169,_0x194d59){const _0x5928fb=this;this['sequence']['enqueue'](function(){const _0x43a921=a1012_0x4d4d;return _0x5928fb[_0x43a921('0x4')][_0x43a921('0x19')](_0x3cc169,_0x194d59)['then'](function(){const _0xcdf056=_0x43a921;logger[_0xcdf056('0x18')](_0xcdf056('0x1e'),_0x3cc169,_0x194d59);})['catch'](function(_0x2d9217){const _0xd5e529=_0x43a921;logger['info'](JSON[_0xd5e529('0x1f')](_0x2d9217));});});},Migration[_0x173290('0x17')][_0x173290('0x7')]=function(_0x3679c1){const _0x4b270d=_0x173290,_0x11a1c4=this;this[_0x4b270d('0x13')][_0x4b270d('0x8')](function(){const _0x3dc9bf=_0x4b270d;return _0x11a1c4[_0x3dc9bf('0x4')]['sequelize'][_0x3dc9bf('0x7')](_0x3679c1)[_0x3dc9bf('0x15')](function(){logger['info']('query\x20%s',_0x3679c1);})[_0x3dc9bf('0x1c')](function(_0x1ceae3){const _0x23dcc=_0x3dc9bf;logger['info'](JSON[_0x23dcc('0x1f')](_0x1ceae3));});});},Migration[_0x173290('0x17')][_0x173290('0xa')]=function(_0x54349e,_0xc0809d){const _0x27de08=this;this['sequence']['enqueue'](function(){const _0xcfb452=a1012_0x4d4d;return _0x27de08[_0xcfb452('0x4')][_0xcfb452('0xa')](_0x54349e,_0xc0809d)[_0xcfb452('0x15')](function(){const _0xe730da=_0xcfb452;logger[_0xe730da('0x18')](_0xe730da('0x6'),_0xc0809d,_0x54349e);})[_0xcfb452('0x1c')](function(_0x4a876a){const _0x1ce8c7=_0xcfb452;logger[_0x1ce8c7('0x18')](util['inspect'](_0x4a876a,{'showHidden':![],'depth':null}));});});},Migration[_0x173290('0x17')][_0x173290('0x16')]=function(_0x2050b2,_0x12efc0,_0x17b440){const _0x1bc6e9=_0x173290,_0xbf2ad1=this;this[_0x1bc6e9('0x13')][_0x1bc6e9('0x8')](function(){const _0xcd60b7=_0x1bc6e9;return _0xbf2ad1[_0xcd60b7('0x4')]['renameColumn'](_0x2050b2,_0x12efc0,_0x17b440)[_0xcd60b7('0x15')](function(){const _0x34e989=_0xcd60b7;logger[_0x34e989('0x18')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x12efc0,_0x17b440,_0x2050b2);})[_0xcd60b7('0x1c')](function(_0x2c3f61){const _0xe4c725=_0xcd60b7;logger[_0xe4c725('0x18')](util[_0xe4c725('0xb')](_0x2c3f61,{'showHidden':![],'depth':null}));});});},Migration[_0x173290('0x17')][_0x173290('0xf')]=function(_0x10c5f1){const _0xd7d2c2=_0x173290;this[_0xd7d2c2('0x13')][_0xd7d2c2('0x8')](function(){return _0x10c5f1();});},module[_0x173290('0x0')]={'up':function(_0x54c210){return new Promise(function(_0x214541){const _0x360d58=a1012_0x4d4d,_0x4bf938=new Migration(_0x54c210);_0x4bf938[_0x360d58('0xf')](_0x214541);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.5.0.js b/server/migrations/2.5.0.js index 5b6df23..74a6e44 100644 --- a/server/migrations/2.5.0.js +++ b/server/migrations/2.5.0.js @@ -1 +1 @@ -const a1013_0x1832=['sPositive','\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_2`\x20FOREIGN\x20KEY\x20(`ListId`)\x20REFERENCES\x20`cm_lists`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE','\x20`mandatoryDispositionPauseId`\x20int(11)\x20DEFAULT\x20NULL,','addIndex','\x20`remote`\x20varchar(255)\x20NOT\x20NULL,','Removed\x20column\x20%s\x20from\x20%s','final','query\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','transcribeName','query','tools_canned_answers','\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,','settings','failureReason','vidaooEscalation','\x20`queueTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','enqueue','sentimentRegion','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','WhatsappAccountId','voice_recordings','fileUri','bucket','../config/logger','migration','sNeutral','sentiment','INTEGER','ALTER\x20TABLE\x20tools_dispositions\x20ADD\x20CONSTRAINT\x20`name_whatsapp`\x20UNIQUE\x20KEY\x20(`name`,`WhatsappAccountId`)','\x20KEY\x20`mandatoryDispositionPauseId`\x20(`mandatoryDispositionPauseId`),','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','stringify','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','language','indicesType','sentimentAccountId','location','queryInterface','tempSentiment','FLOAT','vidaooApiKey','\x20`authToken`\x20varchar(255)\x20DEFAULT\x20NULL,','renameColumn','STRING','sNegative','transcribe','\x20`mandatoryDisposition`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','users','whatsappPause','TEXT','\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,','automaticTranscribe','sequence','tail','exports','dropTable','transcribeAccountId','prototype','NEW','catch','chat_websites','changeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','sMixed','\x20PRIMARY\x20KEY\x20(`id`),','\x20`name`\x20varchar(255)\x20NOT\x20NULL,','removeIndex','\x20`phone`\x20varchar(255)\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,','addColumn','Added\x20column\x20%s\x20to\x20%s','indexName','\x20`agentTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,','\x20`waitForTheAssignedAgent`\x20int(11)\x20DEFAULT\x20\x2710\x27,','\x20`createdAt`\x20datetime\x20NOT\x20NULL,','\x20UNIQUE\x20KEY\x20`name`\x20(`name`),','inspect','automaticSentiment','\x20`updatedAt`\x20datetime\x20NOT\x20NULL,','tools_dispositions','util','removeColumn','info','fileText','transcribeRegion','then','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','vidaooSessionId','BOOLEAN','\x20`notificationTemplate`\x20text,','join','CREATE\x20TABLE\x20`whatsapp_accounts`\x20(','table\x20dropped\x20%s'];(function(_0x3233f8,_0x183264){const _0x1b7910=function(_0x4ae2a1){while(--_0x4ae2a1){_0x3233f8['push'](_0x3233f8['shift']());}};_0x1b7910(++_0x183264);}(a1013_0x1832,0xde));const a1013_0x1b79=function(_0x3233f8,_0x183264){_0x3233f8=_0x3233f8-0x0;let _0x1b7910=a1013_0x1832[_0x3233f8];return _0x1b7910;};const _0x35e3c7=a1013_0x1b79;'use strict';const util=require(_0x35e3c7('0x2f')),logger=require(_0x35e3c7('0x54'))(_0x35e3c7('0x55')),Sequence=function(){};Sequence[_0x35e3c7('0x18')][_0x35e3c7('0x4d')]=function(_0x4ae2a1){const _0x4a652d=_0x35e3c7;this[_0x4a652d('0x14')]=this[_0x4a652d('0x14')]?this[_0x4a652d('0x14')]['finally'](_0x4ae2a1):_0x4ae2a1();};const Migration=function(_0x479caf){this['queryInterface']=_0x479caf,this['sequence']=new Sequence();};Migration['prototype'][_0x35e3c7('0x1c')]=function(_0x1e521c,_0x3631e7,_0x20bb54){const _0x48069a=_0x35e3c7,_0x46a927=this;this[_0x48069a('0x13')]['enqueue'](function(){const _0x4093b0=_0x48069a;return _0x46a927[_0x4093b0('0x4')][_0x4093b0('0x1c')](_0x1e521c,_0x3631e7,_0x20bb54)[_0x4093b0('0x34')](function(){const _0x1a6f33=_0x4093b0;logger[_0x1a6f33('0x31')](_0x1a6f33('0x1d'),_0x3631e7,_0x1e521c);})[_0x4093b0('0x1a')](function(_0x12f56b){const _0x55fa03=_0x4093b0;logger[_0x55fa03('0x31')](JSON[_0x55fa03('0x5c')](_0x12f56b));});});},Migration['prototype'][_0x35e3c7('0x24')]=function(_0x486486,_0x1cb795,_0x425f20){const _0x397829=_0x35e3c7,_0x28a8c6=this;this[_0x397829('0x13')][_0x397829('0x4d')](function(){const _0x173f8f=_0x397829;return _0x28a8c6['queryInterface']['addColumn'](_0x486486,_0x1cb795,_0x425f20)['then'](function(){const _0x3dcfff=a1013_0x1b79;logger[_0x3dcfff('0x31')](_0x3dcfff('0x25'),_0x1cb795,_0x486486);})[_0x173f8f('0x1a')](function(_0x4e2895){const _0x3d2109=_0x173f8f;logger[_0x3d2109('0x31')](JSON[_0x3d2109('0x5c')](_0x4e2895));});});},Migration['prototype']['dropTable']=function(_0x1dadc7){const _0x4977be=_0x35e3c7,_0x4c1dcf=this;this[_0x4977be('0x13')]['enqueue'](function(){const _0x3eedab=_0x4977be;return _0x4c1dcf[_0x3eedab('0x4')][_0x3eedab('0x16')](_0x1dadc7,{'force':!![]})[_0x3eedab('0x34')](function(){const _0x8b50f4=_0x3eedab;logger[_0x8b50f4('0x31')](_0x8b50f4('0x3b'),_0x1dadc7);})[_0x3eedab('0x1a')](function(_0xa2d7e9){const _0x562f21=_0x3eedab;logger[_0x562f21('0x31')](JSON[_0x562f21('0x5c')](_0xa2d7e9));});});},Migration[_0x35e3c7('0x18')][_0x35e3c7('0x3f')]=function(_0xec5103,_0x46ac8d,_0x1a55cf){const _0x35b497=_0x35e3c7,_0x28a6ea=this;this[_0x35b497('0x13')][_0x35b497('0x4d')](function(){const _0x53d9be=_0x35b497;return _0x28a6ea[_0x53d9be('0x4')]['addIndex'](_0xec5103,_0x46ac8d,{'indexName':_0x1a55cf[_0x53d9be('0x26')],'indicesType':_0x1a55cf[_0x53d9be('0x1')]})[_0x53d9be('0x34')](function(){const _0x2949d5=_0x53d9be;logger[_0x2949d5('0x31')](_0x2949d5('0x44'),_0xec5103,_0x46ac8d[_0x2949d5('0x39')](','),_0x1a55cf[_0x2949d5('0x26')],_0x1a55cf['indicesType']);})[_0x53d9be('0x1a')](function(_0x20fedf){const _0x5e58a1=_0x53d9be;logger[_0x5e58a1('0x31')](JSON[_0x5e58a1('0x5c')](_0x20fedf));});});},Migration[_0x35e3c7('0x18')][_0x35e3c7('0x21')]=function(_0xb31186,_0x42d025){const _0x2f4c95=_0x35e3c7,_0x41bfec=this;this['sequence'][_0x2f4c95('0x4d')](function(){const _0x12fc9d=_0x2f4c95;return _0x41bfec[_0x12fc9d('0x4')]['removeIndex'](_0xb31186,_0x42d025)['then'](function(){logger['info']('removeIndex\x20%s\x20%s',_0xb31186,_0x42d025);})[_0x12fc9d('0x1a')](function(_0x58e9c1){logger['info'](JSON['stringify'](_0x58e9c1));});});},Migration[_0x35e3c7('0x18')][_0x35e3c7('0x46')]=function(_0xf65e6d){const _0x44b0c6=_0x35e3c7,_0x12aed7=this;this[_0x44b0c6('0x13')][_0x44b0c6('0x4d')](function(){const _0x1be559=_0x44b0c6;return _0x12aed7[_0x1be559('0x4')]['sequelize'][_0x1be559('0x46')](_0xf65e6d)[_0x1be559('0x34')](function(){const _0xd6907c=_0x1be559;logger['info'](_0xd6907c('0x43'),_0xf65e6d);})[_0x1be559('0x1a')](function(_0x2d2e98){const _0x514e8b=_0x1be559;logger[_0x514e8b('0x31')](JSON[_0x514e8b('0x5c')](_0x2d2e98));});});},Migration[_0x35e3c7('0x18')][_0x35e3c7('0x30')]=function(_0x2e34d2,_0xd46ee5){const _0x125419=_0x35e3c7,_0x4844d7=this;this[_0x125419('0x13')][_0x125419('0x4d')](function(){const _0x56d713=_0x125419;return _0x4844d7[_0x56d713('0x4')][_0x56d713('0x30')](_0x2e34d2,_0xd46ee5)[_0x56d713('0x34')](function(){const _0xd2cb90=_0x56d713;logger['info'](_0xd2cb90('0x41'),_0xd46ee5,_0x2e34d2);})['catch'](function(_0x55c8f9){const _0x4c64a7=_0x56d713;logger[_0x4c64a7('0x31')](util[_0x4c64a7('0x2b')](_0x55c8f9,{'showHidden':![],'depth':null}));});});},Migration[_0x35e3c7('0x18')]['renameColumn']=function(_0x582ab4,_0x301c07,_0x2c12a8){const _0x3cb401=_0x35e3c7,_0x25325f=this;this[_0x3cb401('0x13')][_0x3cb401('0x4d')](function(){const _0x185619=_0x3cb401;return _0x25325f[_0x185619('0x4')][_0x185619('0x9')](_0x582ab4,_0x301c07,_0x2c12a8)[_0x185619('0x34')](function(){const _0x5ca78d=_0x185619;logger[_0x5ca78d('0x31')](_0x5ca78d('0x35'),_0x301c07,_0x2c12a8,_0x582ab4);})[_0x185619('0x1a')](function(_0x21409e){const _0x26af86=_0x185619;logger['info'](util[_0x26af86('0x2b')](_0x21409e,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x35e3c7('0x42')]=function(_0x13a117){const _0x30d641=_0x35e3c7;this['sequence'][_0x30d641('0x4d')](function(){return _0x13a117();});},module[_0x35e3c7('0x15')]={'up':function(_0x45d489,_0x132d3a){return new Promise(function(_0x4237d2){const _0x51fb63=a1013_0x1b79,_0x1f3482=new Migration(_0x45d489);_0x1f3482['query'](_0x51fb63('0x3a')+_0x51fb63('0x48')+_0x51fb63('0x20')+'\x20`key`\x20varchar(255)\x20NOT\x20NULL,'+_0x51fb63('0x40')+'\x20`token`\x20varchar(255)\x20DEFAULT\x20NULL,'+_0x51fb63('0x22')+'\x20`type`\x20enum(\x27twilio\x27)\x20DEFAULT\x20NULL,'+'\x20`accountSid`\x20varchar(255)\x20DEFAULT\x20NULL,'+_0x51fb63('0x8')+_0x51fb63('0x38')+'\x20`notificationSound`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,'+'\x20`notificationShake`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,'+_0x51fb63('0x28')+_0x51fb63('0x4c')+'\x20`queueTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,'+'\x20`agentTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,'+_0x51fb63('0x27')+_0x51fb63('0x3e')+_0x51fb63('0xd')+_0x51fb63('0x11')+_0x51fb63('0x29')+_0x51fb63('0x2d')+'\x20`ListId`\x20int(11)\x20DEFAULT\x20NULL,'+_0x51fb63('0x1f')+_0x51fb63('0x2a')+_0x51fb63('0x5a')+'\x20KEY\x20`ListId`\x20(`ListId`),'+_0x51fb63('0x23')+_0x51fb63('0x3d')+')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;'),_0x1f3482[_0x51fb63('0x24')](_0x51fb63('0x2e'),_0x51fb63('0x50'),{'type':_0x132d3a[_0x51fb63('0x58')]}),_0x1f3482[_0x51fb63('0x24')](_0x51fb63('0x47'),_0x51fb63('0x50'),{'type':_0x132d3a[_0x51fb63('0x58')]}),_0x1f3482[_0x51fb63('0x24')]('users',_0x51fb63('0xf'),{'type':_0x132d3a[_0x51fb63('0x37')],'defaultValue':![]}),_0x1f3482['addColumn'](_0x51fb63('0xe'),'whatsappCapacity',{'type':_0x132d3a[_0x51fb63('0x37')],'defaultValue':![]}),_0x1f3482[_0x51fb63('0x46')](_0x51fb63('0x4f')),_0x1f3482[_0x51fb63('0x46')](_0x51fb63('0x59')),_0x1f3482[_0x51fb63('0x46')](_0x51fb63('0x5b')),_0x1f3482[_0x51fb63('0x46')](_0x51fb63('0x5d')),_0x1f3482['addColumn']('chat_interactions',_0x51fb63('0x36'),{'type':_0x132d3a[_0x51fb63('0x10')]}),_0x1f3482['addColumn'](_0x51fb63('0x1b'),_0x51fb63('0x4b'),{'type':_0x132d3a[_0x51fb63('0x37')],'defaultValue':![]}),_0x1f3482['addColumn'](_0x51fb63('0x1b'),_0x51fb63('0x7'),{'type':_0x132d3a['STRING']}),_0x1f3482[_0x51fb63('0x24')](_0x51fb63('0x51'),_0x51fb63('0x3'),{'type':_0x132d3a[_0x51fb63('0x10')]}),_0x1f3482[_0x51fb63('0x24')](_0x51fb63('0x51'),_0x51fb63('0x45'),{'type':_0x132d3a['STRING']}),_0x1f3482[_0x51fb63('0x24')](_0x51fb63('0x51'),'transcribeStatus',{'type':_0x132d3a[_0x51fb63('0xa')],'defaultValue':_0x51fb63('0x19')}),_0x1f3482[_0x51fb63('0x24')]('voice_recordings',_0x51fb63('0x52'),{'type':_0x132d3a[_0x51fb63('0x10')]}),_0x1f3482[_0x51fb63('0x24')](_0x51fb63('0x51'),_0x51fb63('0x32'),{'type':_0x132d3a['TEXT']}),_0x1f3482['addColumn'](_0x51fb63('0x51'),_0x51fb63('0x4a'),{'type':_0x132d3a['TEXT']}),_0x1f3482[_0x51fb63('0x24')](_0x51fb63('0x51'),_0x51fb63('0x57'),{'type':_0x132d3a[_0x51fb63('0xa')]}),_0x1f3482['addColumn'](_0x51fb63('0x51'),_0x51fb63('0x3c'),{'type':_0x132d3a['FLOAT']}),_0x1f3482[_0x51fb63('0x24')](_0x51fb63('0x51'),_0x51fb63('0xb'),{'type':_0x132d3a[_0x51fb63('0x6')]}),_0x1f3482['addColumn'](_0x51fb63('0x51'),_0x51fb63('0x56'),{'type':_0x132d3a[_0x51fb63('0x6')]}),_0x1f3482[_0x51fb63('0x24')]('voice_recordings',_0x51fb63('0x1e'),{'type':_0x132d3a[_0x51fb63('0x6')]}),_0x1f3482[_0x51fb63('0x24')]('voice_recordings',_0x51fb63('0x5'),{'type':_0x132d3a[_0x51fb63('0x37')]}),_0x1f3482[_0x51fb63('0x24')](_0x51fb63('0x49'),_0x51fb63('0xc'),{'type':_0x132d3a[_0x51fb63('0x37')]}),_0x1f3482[_0x51fb63('0x24')](_0x51fb63('0x49'),_0x51fb63('0x12'),{'type':_0x132d3a[_0x51fb63('0x37')]}),_0x1f3482[_0x51fb63('0x24')]('settings',_0x51fb63('0x17'),{'type':_0x132d3a[_0x51fb63('0x58')]}),_0x1f3482['addColumn'](_0x51fb63('0x49'),_0x51fb63('0x33'),{'type':_0x132d3a[_0x51fb63('0xa')]}),_0x1f3482['addColumn']('settings',_0x51fb63('0x57'),{'type':_0x132d3a['BOOLEAN']}),_0x1f3482[_0x51fb63('0x24')]('settings',_0x51fb63('0x2c'),{'type':_0x132d3a['BOOLEAN']}),_0x1f3482[_0x51fb63('0x24')](_0x51fb63('0x49'),_0x51fb63('0x2'),{'type':_0x132d3a[_0x51fb63('0x58')]}),_0x1f3482['addColumn'](_0x51fb63('0x49'),_0x51fb63('0x4e'),{'type':_0x132d3a[_0x51fb63('0xa')]}),_0x1f3482[_0x51fb63('0x24')]('settings',_0x51fb63('0x0'),{'type':_0x132d3a[_0x51fb63('0xa')]}),_0x1f3482[_0x51fb63('0x24')](_0x51fb63('0x49'),_0x51fb63('0x53'),{'type':_0x132d3a['STRING']}),_0x1f3482['final'](_0x4237d2);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.5.1.js b/server/migrations/2.5.1.js index 5fd56d0..e5253f8 100644 --- a/server/migrations/2.5.1.js +++ b/server/migrations/2.5.1.js @@ -1 +1 @@ -const a1014_0x1a3b=['prototype','exports','stringify','table\x20dropped\x20%s','indicesType','Added\x20column\x20%s\x20to\x20%s','removeColumn','inspect','then','addColumn','removeIndex\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','renameColumn','sequence','enqueue','catch','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequelize','tail','dropTable','changeColumn','util','final','removeIndex','addIndex','queryInterface','../config/logger','Removed\x20column\x20%s\x20from\x20%s','indexName','info'];(function(_0x2f5cdd,_0x1a3b6d){const _0x249971=function(_0x54d3a6){while(--_0x54d3a6){_0x2f5cdd['push'](_0x2f5cdd['shift']());}};_0x249971(++_0x1a3b6d);}(a1014_0x1a3b,0xb3));const a1014_0x2499=function(_0x2f5cdd,_0x1a3b6d){_0x2f5cdd=_0x2f5cdd-0x0;let _0x249971=a1014_0x1a3b[_0x2f5cdd];return _0x249971;};const _0x393b9c=a1014_0x2499;'use strict';const util=require(_0x393b9c('0x16')),logger=require(_0x393b9c('0x1b'))('migration'),Sequence=function(){};Sequence[_0x393b9c('0x1')][_0x393b9c('0xf')]=function(_0x54d3a6){const _0x396c39=_0x393b9c;this[_0x396c39('0x13')]=this[_0x396c39('0x13')]?this[_0x396c39('0x13')]['finally'](_0x54d3a6):_0x54d3a6();};const Migration=function(_0x2a34ba){const _0x5f5220=_0x393b9c;this[_0x5f5220('0x1a')]=_0x2a34ba,this[_0x5f5220('0xe')]=new Sequence();};Migration[_0x393b9c('0x1')][_0x393b9c('0x15')]=function(_0x18f149,_0x568515,_0x35dc24){const _0x5468fa=_0x393b9c,_0x7992de=this;this[_0x5468fa('0xe')]['enqueue'](function(){const _0x62cdb8=_0x5468fa;return _0x7992de[_0x62cdb8('0x1a')][_0x62cdb8('0x15')](_0x18f149,_0x568515,_0x35dc24)[_0x62cdb8('0x9')](function(){const _0x160f86=_0x62cdb8;logger[_0x160f86('0x0')](_0x160f86('0xc'),_0x568515,_0x18f149);})[_0x62cdb8('0x10')](function(_0x316852){const _0x197328=_0x62cdb8;logger[_0x197328('0x0')](JSON[_0x197328('0x3')](_0x316852));});});},Migration[_0x393b9c('0x1')][_0x393b9c('0xa')]=function(_0x5aba3b,_0x5693d3,_0x58cd5c){const _0x5b9a77=_0x393b9c,_0x323dd8=this;this[_0x5b9a77('0xe')][_0x5b9a77('0xf')](function(){const _0x4a9ac3=_0x5b9a77;return _0x323dd8[_0x4a9ac3('0x1a')][_0x4a9ac3('0xa')](_0x5aba3b,_0x5693d3,_0x58cd5c)[_0x4a9ac3('0x9')](function(){const _0x103da8=_0x4a9ac3;logger[_0x103da8('0x0')](_0x103da8('0x6'),_0x5693d3,_0x5aba3b);})['catch'](function(_0x5bd56d){const _0xd553ae=_0x4a9ac3;logger[_0xd553ae('0x0')](JSON['stringify'](_0x5bd56d));});});},Migration[_0x393b9c('0x1')][_0x393b9c('0x14')]=function(_0x298236){const _0xb02af8=_0x393b9c,_0x375d50=this;this[_0xb02af8('0xe')][_0xb02af8('0xf')](function(){const _0x49ae4f=_0xb02af8;return _0x375d50[_0x49ae4f('0x1a')]['dropTable'](_0x298236,{'force':!![]})[_0x49ae4f('0x9')](function(){const _0x5f2976=_0x49ae4f;logger[_0x5f2976('0x0')](_0x5f2976('0x4'),_0x298236);})[_0x49ae4f('0x10')](function(_0x1c998e){const _0x1a99be=_0x49ae4f;logger['info'](JSON[_0x1a99be('0x3')](_0x1c998e));});});},Migration[_0x393b9c('0x1')][_0x393b9c('0x19')]=function(_0x49bce0,_0x56f97a,_0xe8f56e){const _0x4baf2f=_0x393b9c,_0xf40830=this;this[_0x4baf2f('0xe')][_0x4baf2f('0xf')](function(){const _0xc0c493=_0x4baf2f;return _0xf40830[_0xc0c493('0x1a')][_0xc0c493('0x19')](_0x49bce0,_0x56f97a,{'indexName':_0xe8f56e['indexName'],'indicesType':_0xe8f56e[_0xc0c493('0x5')]})[_0xc0c493('0x9')](function(){const _0x3af98a=_0xc0c493;logger[_0x3af98a('0x0')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x49bce0,_0x56f97a['join'](','),_0xe8f56e[_0x3af98a('0x1d')],_0xe8f56e['indicesType']);})['catch'](function(_0xe720c6){const _0x521efa=_0xc0c493;logger['info'](JSON[_0x521efa('0x3')](_0xe720c6));});});},Migration[_0x393b9c('0x1')]['removeIndex']=function(_0x251a3c,_0x45c746){const _0x5ec2ac=_0x393b9c,_0x5418c4=this;this[_0x5ec2ac('0xe')]['enqueue'](function(){const _0x55fc5c=_0x5ec2ac;return _0x5418c4['queryInterface'][_0x55fc5c('0x18')](_0x251a3c,_0x45c746)[_0x55fc5c('0x9')](function(){const _0x16c498=_0x55fc5c;logger[_0x16c498('0x0')](_0x16c498('0xb'),_0x251a3c,_0x45c746);})['catch'](function(_0x5a4d74){logger['info'](JSON['stringify'](_0x5a4d74));});});},Migration[_0x393b9c('0x1')]['query']=function(_0x58d698){const _0x43c047=_0x393b9c,_0x41c19f=this;this['sequence'][_0x43c047('0xf')](function(){const _0x2124a8=_0x43c047;return _0x41c19f[_0x2124a8('0x1a')][_0x2124a8('0x12')]['query'](_0x58d698)['then'](function(){const _0x2f1c58=_0x2124a8;logger[_0x2f1c58('0x0')]('query\x20%s',_0x58d698);})[_0x2124a8('0x10')](function(_0x52d781){const _0x1c1d9f=_0x2124a8;logger[_0x1c1d9f('0x0')](JSON[_0x1c1d9f('0x3')](_0x52d781));});});},Migration['prototype'][_0x393b9c('0x7')]=function(_0xc11a07,_0x1d9b9f){const _0x35ee02=_0x393b9c,_0x244772=this;this[_0x35ee02('0xe')][_0x35ee02('0xf')](function(){const _0x76d682=_0x35ee02;return _0x244772[_0x76d682('0x1a')]['removeColumn'](_0xc11a07,_0x1d9b9f)[_0x76d682('0x9')](function(){const _0x1879d7=_0x76d682;logger[_0x1879d7('0x0')](_0x1879d7('0x1c'),_0x1d9b9f,_0xc11a07);})[_0x76d682('0x10')](function(_0x1933d2){logger['info'](util['inspect'](_0x1933d2,{'showHidden':![],'depth':null}));});});},Migration[_0x393b9c('0x1')][_0x393b9c('0xd')]=function(_0x589fe5,_0x16d323,_0x2c65b1){const _0x3d0cb6=_0x393b9c,_0x6b7bc8=this;this[_0x3d0cb6('0xe')][_0x3d0cb6('0xf')](function(){const _0x272039=_0x3d0cb6;return _0x6b7bc8[_0x272039('0x1a')][_0x272039('0xd')](_0x589fe5,_0x16d323,_0x2c65b1)['then'](function(){const _0x3c02f4=_0x272039;logger[_0x3c02f4('0x0')](_0x3c02f4('0x11'),_0x16d323,_0x2c65b1,_0x589fe5);})[_0x272039('0x10')](function(_0x12f862){const _0x2773bd=_0x272039;logger['info'](util[_0x2773bd('0x8')](_0x12f862,{'showHidden':![],'depth':null}));});});},Migration[_0x393b9c('0x1')][_0x393b9c('0x17')]=function(_0x525872){const _0x56619b=_0x393b9c;this[_0x56619b('0xe')][_0x56619b('0xf')](function(){return _0x525872();});},module[_0x393b9c('0x2')]={'up':function(_0x2b2544){return new Promise(function(_0x5ea929){const _0x3a0a8f=a1014_0x2499,_0x3a04cc=new Migration(_0x2b2544);_0x3a04cc[_0x3a0a8f('0x17')](_0x5ea929);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.5.2.js b/server/migrations/2.5.2.js index e64710d..c565d24 100644 --- a/server/migrations/2.5.2.js +++ b/server/migrations/2.5.2.js @@ -1 +1 @@ -const a1015_0x2380=['addColumn','countdropretry','cm_hopper','../config/logger','removeColumn','campaigns','dropTable','dialNoSuchNumberRetryFrequency','indicesType','join','addIndex\x20%s\x20%s\x20%s\x20[%s]','INTEGER','prototype','info','dialMachineMaxRetry','indexName','ALTER\x20TABLE\x20whatsapp_interactions\x20ENCRYPTION=\x27Y\x27;','then','voice_queues','addIndex','countnosuchnumberretry','cm_hopper_history','finally','dialAbandonedMaxRetry','exports','catch','dialAgentRejectMaxRetry','ALTER\x20TABLE\x20whatsapp_messages\x20ENCRYPTION=\x27Y\x27;','dialDropRetryFrequency','ALTER\x20TABLE\x20voice_extensions\x20DROP\x20FOREIGN\x20KEY\x20voice_extensions_ibfk_7','dialMachineRetryFrequency','renameColumn','sequence','ALTER\x20TABLE\x20whatsapp_accounts\x20ENCRYPTION=\x27Y\x27;','query','dialAgentRejectRetryFrequency','removeIndex','tail','ALTER\x20TABLE\x20report_whatsapp_queue\x20ENCRYPTION=\x27Y\x27;','Added\x20column\x20%s\x20to\x20%s','cm_hopper_final','ALTER\x20TABLE\x20voice_extensions\x20ADD\x20CONSTRAINT\x20voice_extensions_ibfk_7\x20FOREIGN\x20KEY\x20(VoicePrefixId)\x20REFERENCES\x20voice_prefixes(id)\x20ON\x20UPDATE\x20CASCADE\x20ON\x20DELETE\x20CASCADE','table\x20dropped\x20%s','util','query\x20%s','enqueue','stringify','countagentrejectretry','Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','migration','ALTER\x20TABLE\x20voice_extensions\x20DROP\x20INDEX\x20voice_extensions_ibfk_7','dialAbandonedRetryFrequency','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','final','countabandonedretry','sequelize','removeIndex\x20%s\x20%s','countmachineretry','dialNoSuchNumberMaxRetry','queryInterface'];(function(_0xaacbb3,_0x238029){const _0x4aebfc=function(_0x15c170){while(--_0x15c170){_0xaacbb3['push'](_0xaacbb3['shift']());}};_0x4aebfc(++_0x238029);}(a1015_0x2380,0x110));const a1015_0x4aeb=function(_0xaacbb3,_0x238029){_0xaacbb3=_0xaacbb3-0x0;let _0x4aebfc=a1015_0x2380[_0xaacbb3];return _0x4aebfc;};const _0xf24c2b=a1015_0x4aeb;'use strict';const util=require(_0xf24c2b('0xf')),logger=require(_0xf24c2b('0x24'))(_0xf24c2b('0x16')),Sequence=function(){};Sequence['prototype'][_0xf24c2b('0x11')]=function(_0x15c170){const _0x433a49=_0xf24c2b;this['tail']=this[_0x433a49('0x9')]?this[_0x433a49('0x9')][_0x433a49('0x37')](_0x15c170):_0x15c170();};const Migration=function(_0x22e766){this['queryInterface']=_0x22e766,this['sequence']=new Sequence();};Migration[_0xf24c2b('0x2d')]['changeColumn']=function(_0x357c1f,_0x1def95,_0x485156){const _0x4d4c30=_0xf24c2b,_0x3d1dbe=this;this[_0x4d4c30('0x4')]['enqueue'](function(){const _0x3ddb94=_0x4d4c30;return _0x3d1dbe['queryInterface'][_0x3ddb94('0x15')](_0x357c1f,_0x1def95,_0x485156)[_0x3ddb94('0x32')](function(){const _0x2a9277=_0x3ddb94;logger[_0x2a9277('0x2e')](_0x2a9277('0x14'),_0x1def95,_0x357c1f);})['catch'](function(_0x1d5fc1){const _0x533133=_0x3ddb94;logger[_0x533133('0x2e')](JSON[_0x533133('0x12')](_0x1d5fc1));});});},Migration[_0xf24c2b('0x2d')][_0xf24c2b('0x21')]=function(_0x32fbe8,_0x3ef7f7,_0x5391dc){const _0x4b5f7b=_0xf24c2b,_0x5bda03=this;this['sequence'][_0x4b5f7b('0x11')](function(){const _0x1219d2=_0x4b5f7b;return _0x5bda03[_0x1219d2('0x20')]['addColumn'](_0x32fbe8,_0x3ef7f7,_0x5391dc)[_0x1219d2('0x32')](function(){const _0x1fc6b0=_0x1219d2;logger['info'](_0x1fc6b0('0xb'),_0x3ef7f7,_0x32fbe8);})['catch'](function(_0x5adf9f){const _0x2da953=_0x1219d2;logger['info'](JSON[_0x2da953('0x12')](_0x5adf9f));});});},Migration[_0xf24c2b('0x2d')][_0xf24c2b('0x27')]=function(_0x53906c){const _0x5359bb=_0xf24c2b,_0xc9fd53=this;this[_0x5359bb('0x4')]['enqueue'](function(){const _0x2c887f=_0x5359bb;return _0xc9fd53['queryInterface'][_0x2c887f('0x27')](_0x53906c,{'force':!![]})[_0x2c887f('0x32')](function(){const _0x140c97=_0x2c887f;logger[_0x140c97('0x2e')](_0x140c97('0xe'),_0x53906c);})['catch'](function(_0x4baa3e){const _0x3cee6f=_0x2c887f;logger[_0x3cee6f('0x2e')](JSON[_0x3cee6f('0x12')](_0x4baa3e));});});},Migration[_0xf24c2b('0x2d')][_0xf24c2b('0x34')]=function(_0x5b1ef8,_0x5aed52,_0x5b44da){const _0x1cbdb7=_0xf24c2b,_0x1fcec7=this;this[_0x1cbdb7('0x4')][_0x1cbdb7('0x11')](function(){const _0x2e70f4=_0x1cbdb7;return _0x1fcec7[_0x2e70f4('0x20')][_0x2e70f4('0x34')](_0x5b1ef8,_0x5aed52,{'indexName':_0x5b44da['indexName'],'indicesType':_0x5b44da[_0x2e70f4('0x29')]})['then'](function(){const _0x4ffe56=_0x2e70f4;logger['info'](_0x4ffe56('0x2b'),_0x5b1ef8,_0x5aed52[_0x4ffe56('0x2a')](','),_0x5b44da[_0x4ffe56('0x30')],_0x5b44da['indicesType']);})['catch'](function(_0x4f4d30){const _0x662d7e=_0x2e70f4;logger[_0x662d7e('0x2e')](JSON['stringify'](_0x4f4d30));});});},Migration[_0xf24c2b('0x2d')][_0xf24c2b('0x8')]=function(_0x3ccba0,_0x34c03b){const _0x578291=_0xf24c2b,_0x1fb487=this;this['sequence'][_0x578291('0x11')](function(){const _0x38595b=_0x578291;return _0x1fb487['queryInterface'][_0x38595b('0x8')](_0x3ccba0,_0x34c03b)[_0x38595b('0x32')](function(){const _0x446a5b=_0x38595b;logger[_0x446a5b('0x2e')](_0x446a5b('0x1d'),_0x3ccba0,_0x34c03b);})[_0x38595b('0x3a')](function(_0x104194){const _0x41f728=_0x38595b;logger[_0x41f728('0x2e')](JSON['stringify'](_0x104194));});});},Migration[_0xf24c2b('0x2d')][_0xf24c2b('0x6')]=function(_0x2e9717){const _0x10a9d7=_0xf24c2b,_0x3eaa4c=this;this['sequence'][_0x10a9d7('0x11')](function(){const _0x50617e=_0x10a9d7;return _0x3eaa4c[_0x50617e('0x20')][_0x50617e('0x1c')][_0x50617e('0x6')](_0x2e9717)[_0x50617e('0x32')](function(){const _0x5e9c3b=_0x50617e;logger[_0x5e9c3b('0x2e')](_0x5e9c3b('0x10'),_0x2e9717);})[_0x50617e('0x3a')](function(_0x235507){const _0x5be10e=_0x50617e;logger['info'](JSON[_0x5be10e('0x12')](_0x235507));});});},Migration[_0xf24c2b('0x2d')][_0xf24c2b('0x25')]=function(_0x18f8e9,_0x2db5da){const _0x11240e=_0xf24c2b,_0x5b3f2c=this;this['sequence'][_0x11240e('0x11')](function(){const _0x23ac8a=_0x11240e;return _0x5b3f2c['queryInterface']['removeColumn'](_0x18f8e9,_0x2db5da)[_0x23ac8a('0x32')](function(){const _0x287424=_0x23ac8a;logger[_0x287424('0x2e')]('Removed\x20column\x20%s\x20from\x20%s',_0x2db5da,_0x18f8e9);})[_0x23ac8a('0x3a')](function(_0x3eea06){logger['info'](util['inspect'](_0x3eea06,{'showHidden':![],'depth':null}));});});},Migration[_0xf24c2b('0x2d')][_0xf24c2b('0x3')]=function(_0x34a033,_0xccbf00,_0x20639c){const _0x203757=_0xf24c2b,_0x31ccc7=this;this[_0x203757('0x4')][_0x203757('0x11')](function(){const _0x4357da=_0x203757;return _0x31ccc7[_0x4357da('0x20')][_0x4357da('0x3')](_0x34a033,_0xccbf00,_0x20639c)[_0x4357da('0x32')](function(){const _0x39fe48=_0x4357da;logger['info'](_0x39fe48('0x19'),_0xccbf00,_0x20639c,_0x34a033);})[_0x4357da('0x3a')](function(_0x53660a){const _0x5d4135=_0x4357da;logger[_0x5d4135('0x2e')](util['inspect'](_0x53660a,{'showHidden':![],'depth':null}));});});},Migration[_0xf24c2b('0x2d')][_0xf24c2b('0x1a')]=function(_0x32ba92){this['sequence']['enqueue'](function(){return _0x32ba92();});},module[_0xf24c2b('0x39')]={'up':function(_0x764c96,_0x5cc536){return new Promise(function(_0x2079ea){const _0x1817b2=a1015_0x4aeb,_0x4548ff=new Migration(_0x764c96);_0x4548ff[_0x1817b2('0x6')](_0x1817b2('0x5')),_0x4548ff[_0x1817b2('0x6')](_0x1817b2('0x31')),_0x4548ff[_0x1817b2('0x6')](_0x1817b2('0x3c')),_0x4548ff['query'](_0x1817b2('0xa')),_0x4548ff[_0x1817b2('0x6')]('ALTER\x20TABLE\x20cloud_providers\x20ENCRYPTION=\x27Y\x27;'),_0x4548ff[_0x1817b2('0x6')](_0x1817b2('0x1')),_0x4548ff[_0x1817b2('0x6')](_0x1817b2('0x17')),_0x4548ff[_0x1817b2('0x6')](_0x1817b2('0xd')),_0x4548ff[_0x1817b2('0x21')](_0x1817b2('0x33'),_0x1817b2('0x1f'),{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x3}),_0x4548ff['addColumn'](_0x1817b2('0x33'),_0x1817b2('0x28'),{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x96}),_0x4548ff[_0x1817b2('0x21')]('voice_queues','dialDropMaxRetry',{'type':_0x5cc536['INTEGER'],'defaultValue':0x3}),_0x4548ff[_0x1817b2('0x21')](_0x1817b2('0x33'),_0x1817b2('0x0'),{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x96}),_0x4548ff[_0x1817b2('0x21')](_0x1817b2('0x33'),_0x1817b2('0x38'),{'type':_0x5cc536['INTEGER'],'defaultValue':0x3}),_0x4548ff[_0x1817b2('0x21')](_0x1817b2('0x33'),_0x1817b2('0x18'),{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x96}),_0x4548ff['addColumn'](_0x1817b2('0x33'),_0x1817b2('0x2f'),{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x3}),_0x4548ff['addColumn']('voice_queues',_0x1817b2('0x2'),{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x96}),_0x4548ff[_0x1817b2('0x21')](_0x1817b2('0x33'),_0x1817b2('0x3b'),{'type':_0x5cc536['INTEGER'],'defaultValue':0x3}),_0x4548ff[_0x1817b2('0x21')](_0x1817b2('0x33'),_0x1817b2('0x7'),{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x96}),_0x4548ff[_0x1817b2('0x21')](_0x1817b2('0x26'),_0x1817b2('0x1f'),{'type':_0x5cc536['INTEGER'],'defaultValue':0x3}),_0x4548ff['addColumn']('campaigns',_0x1817b2('0x28'),{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x96}),_0x4548ff[_0x1817b2('0x21')](_0x1817b2('0x26'),'dialDropMaxRetry',{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x3}),_0x4548ff[_0x1817b2('0x21')](_0x1817b2('0x26'),'dialDropRetryFrequency',{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x96}),_0x4548ff[_0x1817b2('0x21')](_0x1817b2('0x26'),_0x1817b2('0x38'),{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x3}),_0x4548ff[_0x1817b2('0x21')](_0x1817b2('0x26'),_0x1817b2('0x18'),{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x96}),_0x4548ff[_0x1817b2('0x21')](_0x1817b2('0x26'),_0x1817b2('0x2f'),{'type':_0x5cc536['INTEGER'],'defaultValue':0x3}),_0x4548ff[_0x1817b2('0x21')]('campaigns',_0x1817b2('0x2'),{'type':_0x5cc536['INTEGER'],'defaultValue':0x96}),_0x4548ff[_0x1817b2('0x21')](_0x1817b2('0x26'),_0x1817b2('0x3b'),{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x3}),_0x4548ff['addColumn'](_0x1817b2('0x26'),_0x1817b2('0x7'),{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x96}),_0x4548ff['addColumn'](_0x1817b2('0x23'),_0x1817b2('0x35'),{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x0}),_0x4548ff[_0x1817b2('0x21')](_0x1817b2('0x23'),_0x1817b2('0x22'),{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x0}),_0x4548ff[_0x1817b2('0x21')]('cm_hopper','countabandonedretry',{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x0}),_0x4548ff[_0x1817b2('0x21')](_0x1817b2('0x23'),_0x1817b2('0x1e'),{'type':_0x5cc536['INTEGER'],'defaultValue':0x0}),_0x4548ff['addColumn'](_0x1817b2('0x23'),_0x1817b2('0x13'),{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x0}),_0x4548ff[_0x1817b2('0x21')](_0x1817b2('0xc'),'countnosuchnumberretry',{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x0}),_0x4548ff['addColumn']('cm_hopper_final','countdropretry',{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x0}),_0x4548ff[_0x1817b2('0x21')](_0x1817b2('0xc'),'countabandonedretry',{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x0}),_0x4548ff['addColumn'](_0x1817b2('0xc'),_0x1817b2('0x1e'),{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x0}),_0x4548ff[_0x1817b2('0x21')](_0x1817b2('0xc'),_0x1817b2('0x13'),{'type':_0x5cc536['INTEGER'],'defaultValue':0x0}),_0x4548ff[_0x1817b2('0x21')]('cm_hopper_history',_0x1817b2('0x35'),{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x0}),_0x4548ff['addColumn'](_0x1817b2('0x36'),_0x1817b2('0x22'),{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x0}),_0x4548ff[_0x1817b2('0x21')](_0x1817b2('0x36'),_0x1817b2('0x1b'),{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x0}),_0x4548ff[_0x1817b2('0x21')]('cm_hopper_history',_0x1817b2('0x1e'),{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x0}),_0x4548ff[_0x1817b2('0x21')](_0x1817b2('0x36'),_0x1817b2('0x13'),{'type':_0x5cc536[_0x1817b2('0x2c')],'defaultValue':0x0}),_0x4548ff[_0x1817b2('0x1a')](_0x2079ea);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.5.3.js b/server/migrations/2.5.3.js index 08bd2eb..d20684a 100644 --- a/server/migrations/2.5.3.js +++ b/server/migrations/2.5.3.js @@ -1 +1 @@ -const a1016_0x1b87=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','final','join','Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','info','Added\x20column\x20%s\x20to\x20%s','changeColumn','chat_websites','then','dropTable','tail','color','migration','sequelize','stringify','util','addIndex\x20%s\x20%s\x20%s\x20[%s]','catch','#011F6A','addColumn','inspect','removeIndex','query\x20%s','addIndex','sequence','query','enqueue','prototype','removeIndex\x20%s\x20%s','exports','color_button','renameColumn','indicesType','removeColumn','Removed\x20column\x20%s\x20from\x20%s','indexName','finally'];(function(_0x1b0b2e,_0x1b872d){const _0x51592e=function(_0x293836){while(--_0x293836){_0x1b0b2e['push'](_0x1b0b2e['shift']());}};_0x51592e(++_0x1b872d);}(a1016_0x1b87,0x15e));const a1016_0x5159=function(_0x1b0b2e,_0x1b872d){_0x1b0b2e=_0x1b0b2e-0x0;let _0x51592e=a1016_0x1b87[_0x1b0b2e];return _0x51592e;};const _0x89a334=a1016_0x5159;'use strict';const util=require(_0x89a334('0x12')),logger=require(_0x89a334('0x6'))(_0x89a334('0xf')),Sequence=function(){};Sequence['prototype'][_0x89a334('0x1d')]=function(_0x293836){const _0x4351e7=_0x89a334;this[_0x4351e7('0xd')]=this[_0x4351e7('0xd')]?this['tail'][_0x4351e7('0x0')](_0x293836):_0x293836();};const Migration=function(_0x27fb21){const _0x3166a3=_0x89a334;this[_0x3166a3('0x2')]=_0x27fb21,this['sequence']=new Sequence();};Migration[_0x89a334('0x1e')][_0x89a334('0x9')]=function(_0x169d25,_0x17aa5e,_0x884b33){const _0x4f2a8e=_0x89a334,_0x3f2a5c=this;this[_0x4f2a8e('0x1b')][_0x4f2a8e('0x1d')](function(){const _0x16bc48=_0x4f2a8e;return _0x3f2a5c[_0x16bc48('0x2')]['changeColumn'](_0x169d25,_0x17aa5e,_0x884b33)[_0x16bc48('0xb')](function(){const _0x583f7f=_0x16bc48;logger[_0x583f7f('0x7')](_0x583f7f('0x5'),_0x17aa5e,_0x169d25);})[_0x16bc48('0x14')](function(_0x46f87e){const _0x19fbeb=_0x16bc48;logger['info'](JSON[_0x19fbeb('0x11')](_0x46f87e));});});},Migration[_0x89a334('0x1e')][_0x89a334('0x16')]=function(_0x4ea017,_0x37a421,_0x3b8baa){const _0x572085=_0x89a334,_0xba4c4c=this;this[_0x572085('0x1b')][_0x572085('0x1d')](function(){const _0x3561f5=_0x572085;return _0xba4c4c['queryInterface'][_0x3561f5('0x16')](_0x4ea017,_0x37a421,_0x3b8baa)[_0x3561f5('0xb')](function(){const _0xa88ba7=_0x3561f5;logger[_0xa88ba7('0x7')](_0xa88ba7('0x8'),_0x37a421,_0x4ea017);})[_0x3561f5('0x14')](function(_0x13f98f){const _0x92ba94=_0x3561f5;logger[_0x92ba94('0x7')](JSON[_0x92ba94('0x11')](_0x13f98f));});});},Migration[_0x89a334('0x1e')][_0x89a334('0xc')]=function(_0x5266bc){const _0x4e6e12=_0x89a334,_0x99ad32=this;this[_0x4e6e12('0x1b')][_0x4e6e12('0x1d')](function(){const _0x1f25bf=_0x4e6e12;return _0x99ad32[_0x1f25bf('0x2')][_0x1f25bf('0xc')](_0x5266bc,{'force':!![]})[_0x1f25bf('0xb')](function(){logger['info']('table\x20dropped\x20%s',_0x5266bc);})['catch'](function(_0x1eccd5){const _0xa9e89d=_0x1f25bf;logger['info'](JSON[_0xa9e89d('0x11')](_0x1eccd5));});});},Migration['prototype'][_0x89a334('0x1a')]=function(_0x3a6e76,_0x55b589,_0xd7d4ec){const _0x47998a=_0x89a334,_0x50701e=this;this[_0x47998a('0x1b')]['enqueue'](function(){const _0x3c31f5=_0x47998a;return _0x50701e['queryInterface'][_0x3c31f5('0x1a')](_0x3a6e76,_0x55b589,{'indexName':_0xd7d4ec[_0x3c31f5('0x26')],'indicesType':_0xd7d4ec[_0x3c31f5('0x23')]})[_0x3c31f5('0xb')](function(){const _0x1319f5=_0x3c31f5;logger['info'](_0x1319f5('0x13'),_0x3a6e76,_0x55b589[_0x1319f5('0x4')](','),_0xd7d4ec[_0x1319f5('0x26')],_0xd7d4ec['indicesType']);})['catch'](function(_0x34f319){const _0x2ed46b=_0x3c31f5;logger[_0x2ed46b('0x7')](JSON[_0x2ed46b('0x11')](_0x34f319));});});},Migration['prototype']['removeIndex']=function(_0x12c88b,_0x748bdc){const _0x100ee0=_0x89a334,_0x20511d=this;this[_0x100ee0('0x1b')][_0x100ee0('0x1d')](function(){const _0x346947=_0x100ee0;return _0x20511d[_0x346947('0x2')][_0x346947('0x18')](_0x12c88b,_0x748bdc)['then'](function(){const _0x3ed4d6=_0x346947;logger['info'](_0x3ed4d6('0x1f'),_0x12c88b,_0x748bdc);})[_0x346947('0x14')](function(_0x5dcc6d){const _0x1d3710=_0x346947;logger[_0x1d3710('0x7')](JSON['stringify'](_0x5dcc6d));});});},Migration[_0x89a334('0x1e')][_0x89a334('0x1c')]=function(_0x3a7441){const _0x416a0e=_0x89a334,_0x4703d7=this;this[_0x416a0e('0x1b')][_0x416a0e('0x1d')](function(){const _0x3ec597=_0x416a0e;return _0x4703d7[_0x3ec597('0x2')][_0x3ec597('0x10')]['query'](_0x3a7441)[_0x3ec597('0xb')](function(){const _0x2f5480=_0x3ec597;logger[_0x2f5480('0x7')](_0x2f5480('0x19'),_0x3a7441);})['catch'](function(_0x16f058){const _0x5b93be=_0x3ec597;logger[_0x5b93be('0x7')](JSON[_0x5b93be('0x11')](_0x16f058));});});},Migration[_0x89a334('0x1e')]['removeColumn']=function(_0x2d0ab5,_0x2c10f3){const _0x593e74=_0x89a334,_0x366b05=this;this[_0x593e74('0x1b')][_0x593e74('0x1d')](function(){const _0x66f589=_0x593e74;return _0x366b05[_0x66f589('0x2')][_0x66f589('0x24')](_0x2d0ab5,_0x2c10f3)[_0x66f589('0xb')](function(){const _0x2b3a71=_0x66f589;logger[_0x2b3a71('0x7')](_0x2b3a71('0x25'),_0x2c10f3,_0x2d0ab5);})[_0x66f589('0x14')](function(_0x1e9318){const _0x403207=_0x66f589;logger[_0x403207('0x7')](util['inspect'](_0x1e9318,{'showHidden':![],'depth':null}));});});},Migration[_0x89a334('0x1e')]['renameColumn']=function(_0x40fb56,_0x2e9081,_0x5e47d4){const _0x49003b=_0x89a334,_0x3e6298=this;this[_0x49003b('0x1b')][_0x49003b('0x1d')](function(){const _0x3b9d84=_0x49003b;return _0x3e6298[_0x3b9d84('0x2')][_0x3b9d84('0x22')](_0x40fb56,_0x2e9081,_0x5e47d4)[_0x3b9d84('0xb')](function(){const _0x3ef0f2=_0x3b9d84;logger[_0x3ef0f2('0x7')](_0x3ef0f2('0x1'),_0x2e9081,_0x5e47d4,_0x40fb56);})[_0x3b9d84('0x14')](function(_0x31d6ef){const _0x32cb87=_0x3b9d84;logger[_0x32cb87('0x7')](util[_0x32cb87('0x17')](_0x31d6ef,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x89a334('0x3')]=function(_0xb8c87b){const _0x133621=_0x89a334;this['sequence'][_0x133621('0x1d')](function(){return _0xb8c87b();});},module[_0x89a334('0x20')]={'up':function(_0x226ac5,_0x511583){return new Promise(function(_0x5580fb){const _0x4b01d9=a1016_0x5159,_0x2642db=new Migration(_0x226ac5);_0x2642db[_0x4b01d9('0x9')](_0x4b01d9('0xa'),_0x4b01d9('0xe'),{'type':_0x511583['STRING'],'allowNull':![],'defaultValue':_0x4b01d9('0x15'),'validate':{'notEmpty':!![]}}),_0x2642db['changeColumn'](_0x4b01d9('0xa'),_0x4b01d9('0x21'),{'type':_0x511583['STRING'],'allowNull':![],'defaultValue':_0x4b01d9('0x15'),'validate':{'notEmpty':!![]}}),_0x2642db[_0x4b01d9('0x3')](_0x5580fb);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.5.4.js b/server/migrations/2.5.4.js index 901d352..edbb3b0 100644 --- a/server/migrations/2.5.4.js +++ b/server/migrations/2.5.4.js @@ -1 +1 @@ -const a1017_0x5372=['sequelize','catch','enqueue','sequence','inspect','exports','Added\x20column\x20%s\x20to\x20%s','migration','addIndex','then','../config/logger','removeIndex\x20%s\x20%s','final','Removed\x20column\x20%s\x20from\x20%s','indicesType','stringify','tail','indexName','addColumn','table\x20dropped\x20%s','queryInterface','info','Changed\x20column\x20%s\x20in\x20table\x20%s','query','prototype','util','removeIndex','dropTable','join','changeColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','query\x20%s'];(function(_0xa01599,_0x5372b3){const _0x29e14e=function(_0x13c964){while(--_0x13c964){_0xa01599['push'](_0xa01599['shift']());}};_0x29e14e(++_0x5372b3);}(a1017_0x5372,0x18a));const a1017_0x29e1=function(_0xa01599,_0x5372b3){_0xa01599=_0xa01599-0x0;let _0x29e14e=a1017_0x5372[_0xa01599];return _0x29e14e;};const _0x3cd12e=a1017_0x29e1;'use strict';const util=require(_0x3cd12e('0xf')),logger=require(_0x3cd12e('0x0'))(_0x3cd12e('0x1d')),Sequence=function(){};Sequence[_0x3cd12e('0xe')][_0x3cd12e('0x18')]=function(_0x13c964){const _0x1e1c38=_0x3cd12e;this[_0x1e1c38('0x6')]=this[_0x1e1c38('0x6')]?this['tail']['finally'](_0x13c964):_0x13c964();};const Migration=function(_0x42c778){const _0x1011c5=_0x3cd12e;this['queryInterface']=_0x42c778,this[_0x1011c5('0x19')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x545254,_0x25a3f7,_0x58656c){const _0x30ba07=_0x3cd12e,_0x321b1f=this;this['sequence'][_0x30ba07('0x18')](function(){const _0x4577d2=_0x30ba07;return _0x321b1f[_0x4577d2('0xa')][_0x4577d2('0x13')](_0x545254,_0x25a3f7,_0x58656c)[_0x4577d2('0x1f')](function(){const _0x2fcc1c=_0x4577d2;logger[_0x2fcc1c('0xb')](_0x2fcc1c('0xc'),_0x25a3f7,_0x545254);})[_0x4577d2('0x17')](function(_0x358fdc){const _0x1dc37f=_0x4577d2;logger[_0x1dc37f('0xb')](JSON[_0x1dc37f('0x5')](_0x358fdc));});});},Migration[_0x3cd12e('0xe')][_0x3cd12e('0x8')]=function(_0x5dfd52,_0x595872,_0x24c04a){const _0x1d012d=_0x3cd12e,_0x5eacbd=this;this[_0x1d012d('0x19')][_0x1d012d('0x18')](function(){const _0x174d5b=_0x1d012d;return _0x5eacbd[_0x174d5b('0xa')][_0x174d5b('0x8')](_0x5dfd52,_0x595872,_0x24c04a)[_0x174d5b('0x1f')](function(){const _0x177193=_0x174d5b;logger[_0x177193('0xb')](_0x177193('0x1c'),_0x595872,_0x5dfd52);})[_0x174d5b('0x17')](function(_0x5dd71f){const _0x5c5622=_0x174d5b;logger[_0x5c5622('0xb')](JSON[_0x5c5622('0x5')](_0x5dd71f));});});},Migration['prototype']['dropTable']=function(_0x5ebb29){const _0xfb42c2=_0x3cd12e,_0x2658e7=this;this[_0xfb42c2('0x19')]['enqueue'](function(){const _0x4df47e=_0xfb42c2;return _0x2658e7[_0x4df47e('0xa')][_0x4df47e('0x11')](_0x5ebb29,{'force':!![]})[_0x4df47e('0x1f')](function(){const _0x3fca13=_0x4df47e;logger[_0x3fca13('0xb')](_0x3fca13('0x9'),_0x5ebb29);})[_0x4df47e('0x17')](function(_0x101cdf){const _0x15f573=_0x4df47e;logger[_0x15f573('0xb')](JSON[_0x15f573('0x5')](_0x101cdf));});});},Migration[_0x3cd12e('0xe')][_0x3cd12e('0x1e')]=function(_0x25ccb4,_0x9c42e8,_0x4274df){const _0x4a4947=_0x3cd12e,_0x47ffe5=this;this[_0x4a4947('0x19')]['enqueue'](function(){const _0x360746=_0x4a4947;return _0x47ffe5[_0x360746('0xa')][_0x360746('0x1e')](_0x25ccb4,_0x9c42e8,{'indexName':_0x4274df[_0x360746('0x7')],'indicesType':_0x4274df[_0x360746('0x4')]})[_0x360746('0x1f')](function(){const _0x1d8b9a=_0x360746;logger[_0x1d8b9a('0xb')](_0x1d8b9a('0x14'),_0x25ccb4,_0x9c42e8[_0x1d8b9a('0x12')](','),_0x4274df['indexName'],_0x4274df['indicesType']);})['catch'](function(_0x4d9f2f){const _0x2ebb62=_0x360746;logger[_0x2ebb62('0xb')](JSON[_0x2ebb62('0x5')](_0x4d9f2f));});});},Migration[_0x3cd12e('0xe')][_0x3cd12e('0x10')]=function(_0x3749a1,_0x2cb101){const _0x483b21=_0x3cd12e,_0x30d1c5=this;this[_0x483b21('0x19')][_0x483b21('0x18')](function(){const _0x5534f2=_0x483b21;return _0x30d1c5[_0x5534f2('0xa')]['removeIndex'](_0x3749a1,_0x2cb101)[_0x5534f2('0x1f')](function(){const _0x4df361=_0x5534f2;logger[_0x4df361('0xb')](_0x4df361('0x1'),_0x3749a1,_0x2cb101);})[_0x5534f2('0x17')](function(_0x1c3b08){const _0x83c629=_0x5534f2;logger[_0x83c629('0xb')](JSON[_0x83c629('0x5')](_0x1c3b08));});});},Migration['prototype']['query']=function(_0x34d274){const _0x2d66ae=_0x3cd12e,_0x4a9215=this;this[_0x2d66ae('0x19')][_0x2d66ae('0x18')](function(){const _0x3417df=_0x2d66ae;return _0x4a9215[_0x3417df('0xa')][_0x3417df('0x16')][_0x3417df('0xd')](_0x34d274)[_0x3417df('0x1f')](function(){const _0x4dd510=_0x3417df;logger[_0x4dd510('0xb')](_0x4dd510('0x15'),_0x34d274);})['catch'](function(_0x46964a){const _0x50211b=_0x3417df;logger[_0x50211b('0xb')](JSON[_0x50211b('0x5')](_0x46964a));});});},Migration[_0x3cd12e('0xe')]['removeColumn']=function(_0x1c3925,_0x498330){const _0x439243=_0x3cd12e,_0x237406=this;this['sequence'][_0x439243('0x18')](function(){const _0x58dfe1=_0x439243;return _0x237406[_0x58dfe1('0xa')]['removeColumn'](_0x1c3925,_0x498330)[_0x58dfe1('0x1f')](function(){const _0x5a81a5=_0x58dfe1;logger[_0x5a81a5('0xb')](_0x5a81a5('0x3'),_0x498330,_0x1c3925);})[_0x58dfe1('0x17')](function(_0x10f077){const _0x3d6741=_0x58dfe1;logger['info'](util[_0x3d6741('0x1a')](_0x10f077,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x4c8508,_0x29cc6f,_0x2cd5f8){const _0x582f6c=_0x3cd12e,_0x4f3567=this;this[_0x582f6c('0x19')]['enqueue'](function(){const _0x42791e=_0x582f6c;return _0x4f3567[_0x42791e('0xa')]['renameColumn'](_0x4c8508,_0x29cc6f,_0x2cd5f8)['then'](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x29cc6f,_0x2cd5f8,_0x4c8508);})[_0x42791e('0x17')](function(_0x5c05ce){const _0x15e344=_0x42791e;logger['info'](util[_0x15e344('0x1a')](_0x5c05ce,{'showHidden':![],'depth':null}));});});},Migration[_0x3cd12e('0xe')]['final']=function(_0xdc0a88){const _0x74ec28=_0x3cd12e;this[_0x74ec28('0x19')]['enqueue'](function(){return _0xdc0a88();});},module[_0x3cd12e('0x1b')]={'up':function(_0x3de3e4){return new Promise(function(_0xca991b){const _0x19a287=a1017_0x29e1,_0x48682e=new Migration(_0x3de3e4);_0x48682e[_0x19a287('0x2')](_0xca991b);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.5.5.js b/server/migrations/2.5.5.js index bd77bc7..4ddb566 100644 --- a/server/migrations/2.5.5.js +++ b/server/migrations/2.5.5.js @@ -1 +1 @@ -const a1018_0x411a=['updatedAt','settingsEnabled','passwordResetAt','voice_recordings','tools_dispositions','ENUM','chat_interactions','name','sequelize','report_queue','userSecondDisposition','util','third','then','passwordHistoryLimit','userThirdDisposition','users','Removed\x20column\x20%s\x20from\x20%s','join','cm_custom_fields','query','description','secondDisposition','sms_interactions','disposition','addIndex','second','previousPasswords','queryInterface','UPDATE\x20tools_actions\x20SET\x20data3\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data3\x20=\x20\x270\x27','enforcePasswordHistory','thirdDisposition','INTEGER','UPDATE\x20tools_actions\x20SET\x20data4\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data4\x20=\x20\x270\x27','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','whatsapp_interactions','ParentId','final','addColumn','UNSIGNED','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','cm_hopper_final','settings','catch','indicesType','first','indexName','changeColumn','openchannel_interactions','inspect','userDisposition','BOOLEAN','STRING','renameColumn','enqueue','voice','prototype','removeIndex\x20%s\x20%s','mail_interactions','sequence','report_call','fax_interactions','stringify','actionType','tail','query\x20%s','info','dropTable','level','clickToAction','migration','table\x20dropped\x20%s'];(function(_0x4a18cc,_0x411abc){const _0x231b1a=function(_0x8f0ac9){while(--_0x8f0ac9){_0x4a18cc['push'](_0x4a18cc['shift']());}};_0x231b1a(++_0x411abc);}(a1018_0x411a,0x97));const a1018_0x231b=function(_0x4a18cc,_0x411abc){_0x4a18cc=_0x4a18cc-0x0;let _0x231b1a=a1018_0x411a[_0x4a18cc];return _0x231b1a;};const _0x9669a6=a1018_0x231b;'use strict';const util=require(_0x9669a6('0x8')),logger=require('../config/logger')(_0x9669a6('0x45')),Sequence=function(){};Sequence[_0x9669a6('0x37')][_0x9669a6('0x35')]=function(_0x8f0ac9){const _0x31f803=_0x9669a6;this[_0x31f803('0x3f')]=this[_0x31f803('0x3f')]?this[_0x31f803('0x3f')][_0x31f803('0x21')](_0x8f0ac9):_0x8f0ac9();};const Migration=function(_0x281a28){this['queryInterface']=_0x281a28,this['sequence']=new Sequence();};Migration[_0x9669a6('0x37')][_0x9669a6('0x2e')]=function(_0x216485,_0xd7fb34,_0x302c68){const _0x478b05=_0x9669a6,_0x3fcb49=this;this[_0x478b05('0x3a')][_0x478b05('0x35')](function(){const _0x45e28f=_0x478b05;return _0x3fcb49['queryInterface'][_0x45e28f('0x2e')](_0x216485,_0xd7fb34,_0x302c68)[_0x45e28f('0xa')](function(){const _0x1e0348=_0x45e28f;logger[_0x1e0348('0x41')](_0x1e0348('0x20'),_0xd7fb34,_0x216485);})[_0x45e28f('0x2a')](function(_0x45441f){const _0x2e7664=_0x45e28f;logger[_0x2e7664('0x41')](JSON[_0x2e7664('0x3d')](_0x45441f));});});},Migration[_0x9669a6('0x37')]['addColumn']=function(_0xd9c029,_0x324f4e,_0x7ae141){const _0x46a5a9=_0x9669a6,_0x1ec0bb=this;this[_0x46a5a9('0x3a')][_0x46a5a9('0x35')](function(){const _0x2a558d=_0x46a5a9;return _0x1ec0bb[_0x2a558d('0x19')]['addColumn'](_0xd9c029,_0x324f4e,_0x7ae141)[_0x2a558d('0xa')](function(){const _0x525b83=_0x2a558d;logger[_0x525b83('0x41')]('Added\x20column\x20%s\x20to\x20%s',_0x324f4e,_0xd9c029);})[_0x2a558d('0x2a')](function(_0x499fdc){const _0x5ca652=_0x2a558d;logger[_0x5ca652('0x41')](JSON[_0x5ca652('0x3d')](_0x499fdc));});});},Migration[_0x9669a6('0x37')][_0x9669a6('0x42')]=function(_0x3515d6){const _0x24cc64=_0x9669a6,_0x5acdad=this;this[_0x24cc64('0x3a')][_0x24cc64('0x35')](function(){const _0x249ced=_0x24cc64;return _0x5acdad[_0x249ced('0x19')][_0x249ced('0x42')](_0x3515d6,{'force':!![]})['then'](function(){const _0x539130=_0x249ced;logger[_0x539130('0x41')](_0x539130('0x46'),_0x3515d6);})[_0x249ced('0x2a')](function(_0x595f0d){const _0x3dff68=_0x249ced;logger[_0x3dff68('0x41')](JSON['stringify'](_0x595f0d));});});},Migration[_0x9669a6('0x37')]['addIndex']=function(_0x4647b3,_0x26d4fe,_0x223b20){const _0x432ce8=_0x9669a6,_0x3072d7=this;this[_0x432ce8('0x3a')]['enqueue'](function(){const _0x43aed9=_0x432ce8;return _0x3072d7[_0x43aed9('0x19')][_0x43aed9('0x16')](_0x4647b3,_0x26d4fe,{'indexName':_0x223b20[_0x43aed9('0x2d')],'indicesType':_0x223b20[_0x43aed9('0x2b')]})['then'](function(){const _0x5c577a=_0x43aed9;logger[_0x5c577a('0x41')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x4647b3,_0x26d4fe[_0x5c577a('0xf')](','),_0x223b20[_0x5c577a('0x2d')],_0x223b20[_0x5c577a('0x2b')]);})['catch'](function(_0x4c1793){const _0x5b7216=_0x43aed9;logger['info'](JSON[_0x5b7216('0x3d')](_0x4c1793));});});},Migration['prototype']['removeIndex']=function(_0x23dd0c,_0x184870){const _0x2c12c0=this;this['sequence']['enqueue'](function(){const _0x11fa44=a1018_0x231b;return _0x2c12c0[_0x11fa44('0x19')]['removeIndex'](_0x23dd0c,_0x184870)[_0x11fa44('0xa')](function(){const _0x3e074c=_0x11fa44;logger['info'](_0x3e074c('0x38'),_0x23dd0c,_0x184870);})['catch'](function(_0x15a8b3){const _0x2cee73=_0x11fa44;logger['info'](JSON[_0x2cee73('0x3d')](_0x15a8b3));});});},Migration['prototype']['query']=function(_0x4899f2){const _0x2085b9=_0x9669a6,_0x288ead=this;this[_0x2085b9('0x3a')][_0x2085b9('0x35')](function(){const _0x630111=_0x2085b9;return _0x288ead['queryInterface'][_0x630111('0x5')][_0x630111('0x11')](_0x4899f2)[_0x630111('0xa')](function(){const _0x375e5f=_0x630111;logger['info'](_0x375e5f('0x40'),_0x4899f2);})[_0x630111('0x2a')](function(_0x4d6ee0){const _0x50ef00=_0x630111;logger[_0x50ef00('0x41')](JSON[_0x50ef00('0x3d')](_0x4d6ee0));});});},Migration[_0x9669a6('0x37')][_0x9669a6('0x1f')]=function(_0x1a094b,_0x4c5fe2){const _0xbc20c9=_0x9669a6,_0x3914f5=this;this[_0xbc20c9('0x3a')][_0xbc20c9('0x35')](function(){const _0x18cf6f=_0xbc20c9;return _0x3914f5['queryInterface'][_0x18cf6f('0x1f')](_0x1a094b,_0x4c5fe2)[_0x18cf6f('0xa')](function(){const _0x12b6d3=_0x18cf6f;logger[_0x12b6d3('0x41')](_0x12b6d3('0xe'),_0x4c5fe2,_0x1a094b);})[_0x18cf6f('0x2a')](function(_0x3c83cc){const _0x3ffcec=_0x18cf6f;logger[_0x3ffcec('0x41')](util[_0x3ffcec('0x30')](_0x3c83cc,{'showHidden':![],'depth':null}));});});},Migration[_0x9669a6('0x37')][_0x9669a6('0x34')]=function(_0x42a1b7,_0x4715fa,_0x1b8304){const _0x28b602=_0x9669a6,_0x4e935c=this;this['sequence'][_0x28b602('0x35')](function(){const _0x1f2fe4=_0x28b602;return _0x4e935c[_0x1f2fe4('0x19')][_0x1f2fe4('0x34')](_0x42a1b7,_0x4715fa,_0x1b8304)['then'](function(){const _0xda97f9=_0x1f2fe4;logger[_0xda97f9('0x41')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x4715fa,_0x1b8304,_0x42a1b7);})[_0x1f2fe4('0x2a')](function(_0x25f840){const _0x1a80ae=_0x1f2fe4;logger[_0x1a80ae('0x41')](util['inspect'](_0x25f840,{'showHidden':![],'depth':null}));});});},Migration[_0x9669a6('0x37')][_0x9669a6('0x24')]=function(_0x1856f1){const _0x54f3da=_0x9669a6;this[_0x54f3da('0x3a')][_0x54f3da('0x35')](function(){return _0x1856f1();});},module['exports']={'up':function(_0x26ec51,_0x11757f){return new Promise(function(_0x532983){const _0x3e4e2e=a1018_0x231b,_0x3ecf14=new Migration(_0x26ec51);_0x3ecf14[_0x3e4e2e('0x11')](_0x3e4e2e('0x1a')),_0x3ecf14[_0x3e4e2e('0x11')](_0x3e4e2e('0x27')),_0x3ecf14[_0x3e4e2e('0x11')](_0x3e4e2e('0x1e')),_0x3ecf14[_0x3e4e2e('0x25')](_0x3e4e2e('0x29'),_0x3e4e2e('0x1b'),{'type':_0x11757f[_0x3e4e2e('0x32')],'defaultValue':!![]}),_0x3ecf14['addColumn'](_0x3e4e2e('0x29'),_0x3e4e2e('0xb'),{'type':_0x11757f['INTEGER'](0x2)[_0x3e4e2e('0x26')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5}}),_0x3ecf14[_0x3e4e2e('0x25')](_0x3e4e2e('0xd'),_0x3e4e2e('0x18'),{'type':_0x11757f[_0x3e4e2e('0x33')],'after':_0x3e4e2e('0x49')}),_0x3ecf14['addColumn'](_0x3e4e2e('0xd'),_0x3e4e2e('0x48'),{'type':_0x11757f[_0x3e4e2e('0x32')],'defaultValue':!![]}),_0x3ecf14[_0x3e4e2e('0x25')](_0x3e4e2e('0x10'),_0x3e4e2e('0x44'),{'type':_0x11757f['BOOLEAN'],'defaultValue':![]}),_0x3ecf14[_0x3e4e2e('0x25')](_0x3e4e2e('0x10'),_0x3e4e2e('0x3e'),{'type':_0x11757f[_0x3e4e2e('0x2')]('voice'),'allowNull':![],'defaultValue':_0x3e4e2e('0x36')}),_0x3ecf14['addColumn']('tools_dispositions',_0x3e4e2e('0x43'),{'type':_0x11757f[_0x3e4e2e('0x2')](_0x3e4e2e('0x2c'),_0x3e4e2e('0x17'),_0x3e4e2e('0x9')),'allowNull':![],'defaultValue':_0x3e4e2e('0x2c'),'after':_0x3e4e2e('0x4')}),_0x3ecf14['addColumn']('tools_dispositions',_0x3e4e2e('0x12'),{'type':_0x11757f[_0x3e4e2e('0x33')],'after':_0x3e4e2e('0x43')}),_0x3ecf14[_0x3e4e2e('0x25')](_0x3e4e2e('0x1'),_0x3e4e2e('0x23'),{'type':_0x11757f[_0x3e4e2e('0x1d')],'after':_0x3e4e2e('0x47')}),_0x3ecf14[_0x3e4e2e('0x11')]('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'),_0x3ecf14[_0x3e4e2e('0x25')]('report_call',_0x3e4e2e('0x7'),{'type':_0x11757f[_0x3e4e2e('0x33')],'after':_0x3e4e2e('0x31')}),_0x3ecf14[_0x3e4e2e('0x25')](_0x3e4e2e('0x3b'),'userThirdDisposition',{'type':_0x11757f[_0x3e4e2e('0x33')],'after':_0x3e4e2e('0x7')}),_0x3ecf14[_0x3e4e2e('0x25')](_0x3e4e2e('0x6'),'secondDisposition',{'type':_0x11757f[_0x3e4e2e('0x33')],'after':'disposition'}),_0x3ecf14[_0x3e4e2e('0x25')](_0x3e4e2e('0x6'),_0x3e4e2e('0x1c'),{'type':_0x11757f[_0x3e4e2e('0x33')],'after':_0x3e4e2e('0x13')}),_0x3ecf14['addColumn'](_0x3e4e2e('0x0'),_0x3e4e2e('0x7'),{'type':_0x11757f[_0x3e4e2e('0x33')],'after':'userDisposition'}),_0x3ecf14[_0x3e4e2e('0x25')]('voice_recordings',_0x3e4e2e('0xc'),{'type':_0x11757f['STRING'],'after':_0x3e4e2e('0x7')}),_0x3ecf14[_0x3e4e2e('0x25')]('chat_interactions','secondDisposition',{'type':_0x11757f['STRING'],'after':_0x3e4e2e('0x15')}),_0x3ecf14[_0x3e4e2e('0x25')](_0x3e4e2e('0x3'),_0x3e4e2e('0x1c'),{'type':_0x11757f[_0x3e4e2e('0x33')],'after':_0x3e4e2e('0x13')}),_0x3ecf14[_0x3e4e2e('0x25')](_0x3e4e2e('0x3c'),_0x3e4e2e('0x13'),{'type':_0x11757f[_0x3e4e2e('0x33')],'after':_0x3e4e2e('0x15')}),_0x3ecf14['addColumn'](_0x3e4e2e('0x3c'),'thirdDisposition',{'type':_0x11757f[_0x3e4e2e('0x33')],'after':_0x3e4e2e('0x13')}),_0x3ecf14[_0x3e4e2e('0x25')]('mail_interactions','secondDisposition',{'type':_0x11757f['STRING'],'after':'disposition'}),_0x3ecf14[_0x3e4e2e('0x25')](_0x3e4e2e('0x39'),_0x3e4e2e('0x1c'),{'type':_0x11757f[_0x3e4e2e('0x33')],'after':_0x3e4e2e('0x13')}),_0x3ecf14[_0x3e4e2e('0x25')](_0x3e4e2e('0x2f'),_0x3e4e2e('0x13'),{'type':_0x11757f[_0x3e4e2e('0x33')],'after':'disposition'}),_0x3ecf14[_0x3e4e2e('0x25')]('openchannel_interactions',_0x3e4e2e('0x1c'),{'type':_0x11757f[_0x3e4e2e('0x33')],'after':_0x3e4e2e('0x13')}),_0x3ecf14['addColumn'](_0x3e4e2e('0x14'),_0x3e4e2e('0x13'),{'type':_0x11757f['STRING'],'after':_0x3e4e2e('0x15')}),_0x3ecf14[_0x3e4e2e('0x25')](_0x3e4e2e('0x14'),_0x3e4e2e('0x1c'),{'type':_0x11757f[_0x3e4e2e('0x33')],'after':_0x3e4e2e('0x13')}),_0x3ecf14[_0x3e4e2e('0x25')](_0x3e4e2e('0x22'),_0x3e4e2e('0x13'),{'type':_0x11757f[_0x3e4e2e('0x33')],'after':_0x3e4e2e('0x15')}),_0x3ecf14['addColumn']('whatsapp_interactions',_0x3e4e2e('0x1c'),{'type':_0x11757f[_0x3e4e2e('0x33')],'after':_0x3e4e2e('0x13')}),_0x3ecf14[_0x3e4e2e('0x25')](_0x3e4e2e('0x28'),_0x3e4e2e('0x13'),{'type':_0x11757f[_0x3e4e2e('0x33')],'after':_0x3e4e2e('0x15')}),_0x3ecf14['addColumn'](_0x3e4e2e('0x28'),_0x3e4e2e('0x1c'),{'type':_0x11757f['STRING'],'after':_0x3e4e2e('0x13')}),_0x3ecf14[_0x3e4e2e('0x24')](_0x532983);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.5.6.js b/server/migrations/2.5.6.js index 3164852..761cc32 100644 --- a/server/migrations/2.5.6.js +++ b/server/migrations/2.5.6.js @@ -1 +1 @@ -const a1019_0x25bb=['lastName','inspect','then','dropTable','stringify','finally','../config/logger','removeIndex','cm_contacts','final','email','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','changeColumn','indexName','addIndex','queryInterface','renameColumn','indicesType','tail','fax','enqueue','sequence','Removed\x20column\x20%s\x20from\x20%s','info','removeColumn','sequelize','exports','prototype','addIndex\x20%s\x20%s\x20%s\x20[%s]','Added\x20column\x20%s\x20to\x20%s','query','query\x20%s','catch','mobile','removeIndex\x20%s\x20%s','addColumn','util','FULLTEXT'];(function(_0x5f3b22,_0x25bb7d){const _0xdc2aea=function(_0x3a1e42){while(--_0x3a1e42){_0x5f3b22['push'](_0x5f3b22['shift']());}};_0xdc2aea(++_0x25bb7d);}(a1019_0x25bb,0x16a));const a1019_0xdc2a=function(_0x5f3b22,_0x25bb7d){_0x5f3b22=_0x5f3b22-0x0;let _0xdc2aea=a1019_0x25bb[_0x5f3b22];return _0xdc2aea;};const _0x1e5f9b=a1019_0xdc2a;'use strict';const util=require(_0x1e5f9b('0x10')),logger=require(_0x1e5f9b('0x18'))('migration'),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x3a1e42){const _0x112877=_0x1e5f9b;this['tail']=this[_0x112877('0x24')]?this['tail'][_0x112877('0x17')](_0x3a1e42):_0x3a1e42();};const Migration=function(_0x4c601a){const _0x15fda5=_0x1e5f9b;this[_0x15fda5('0x21')]=_0x4c601a,this[_0x15fda5('0x1')]=new Sequence();};Migration[_0x1e5f9b('0x7')]['changeColumn']=function(_0x19f7ec,_0x42470b,_0x5d44d7){const _0x5277c6=_0x1e5f9b,_0x17dabb=this;this[_0x5277c6('0x1')][_0x5277c6('0x0')](function(){const _0x41a664=_0x5277c6;return _0x17dabb[_0x41a664('0x21')][_0x41a664('0x1e')](_0x19f7ec,_0x42470b,_0x5d44d7)[_0x41a664('0x14')](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x42470b,_0x19f7ec);})[_0x41a664('0xc')](function(_0x3103c6){const _0x29a1de=_0x41a664;logger[_0x29a1de('0x3')](JSON[_0x29a1de('0x16')](_0x3103c6));});});},Migration[_0x1e5f9b('0x7')]['addColumn']=function(_0x3ac570,_0x3604ab,_0x1338c4){const _0x5ea8cc=_0x1e5f9b,_0x32592d=this;this['sequence'][_0x5ea8cc('0x0')](function(){const _0x47d61d=_0x5ea8cc;return _0x32592d[_0x47d61d('0x21')][_0x47d61d('0xf')](_0x3ac570,_0x3604ab,_0x1338c4)[_0x47d61d('0x14')](function(){const _0x5b6fc5=_0x47d61d;logger[_0x5b6fc5('0x3')](_0x5b6fc5('0x9'),_0x3604ab,_0x3ac570);})[_0x47d61d('0xc')](function(_0x56e89a){const _0x5a0d48=_0x47d61d;logger['info'](JSON[_0x5a0d48('0x16')](_0x56e89a));});});},Migration['prototype']['dropTable']=function(_0x31367f){const _0x2a2731=_0x1e5f9b,_0xb2b91f=this;this['sequence'][_0x2a2731('0x0')](function(){const _0x4da1e7=_0x2a2731;return _0xb2b91f[_0x4da1e7('0x21')][_0x4da1e7('0x15')](_0x31367f,{'force':!![]})[_0x4da1e7('0x14')](function(){logger['info']('table\x20dropped\x20%s',_0x31367f);})['catch'](function(_0x5d963b){const _0x439e48=_0x4da1e7;logger['info'](JSON[_0x439e48('0x16')](_0x5d963b));});});},Migration['prototype'][_0x1e5f9b('0x20')]=function(_0x341566,_0xf13a1e,_0x37e2bc){const _0x480398=_0x1e5f9b,_0x34b9b1=this;this[_0x480398('0x1')][_0x480398('0x0')](function(){const _0x176ac2=_0x480398;return _0x34b9b1[_0x176ac2('0x21')][_0x176ac2('0x20')](_0x341566,_0xf13a1e,{'indexName':_0x37e2bc[_0x176ac2('0x1f')],'indicesType':_0x37e2bc[_0x176ac2('0x23')]})[_0x176ac2('0x14')](function(){const _0x38f691=_0x176ac2;logger['info'](_0x38f691('0x8'),_0x341566,_0xf13a1e['join'](','),_0x37e2bc[_0x38f691('0x1f')],_0x37e2bc[_0x38f691('0x23')]);})[_0x176ac2('0xc')](function(_0x4f786b){const _0x5b9f91=_0x176ac2;logger['info'](JSON[_0x5b9f91('0x16')](_0x4f786b));});});},Migration[_0x1e5f9b('0x7')]['removeIndex']=function(_0x301186,_0x1e6bcf){const _0x1a25d9=_0x1e5f9b,_0x3ad156=this;this[_0x1a25d9('0x1')][_0x1a25d9('0x0')](function(){const _0x290a2e=_0x1a25d9;return _0x3ad156[_0x290a2e('0x21')][_0x290a2e('0x19')](_0x301186,_0x1e6bcf)['then'](function(){const _0x78b5f4=_0x290a2e;logger[_0x78b5f4('0x3')](_0x78b5f4('0xe'),_0x301186,_0x1e6bcf);})[_0x290a2e('0xc')](function(_0xb172fa){const _0x70aadb=_0x290a2e;logger[_0x70aadb('0x3')](JSON[_0x70aadb('0x16')](_0xb172fa));});});},Migration['prototype'][_0x1e5f9b('0xa')]=function(_0x2b326e){const _0x341f09=_0x1e5f9b,_0x1c4fcd=this;this[_0x341f09('0x1')]['enqueue'](function(){const _0x2c8c96=_0x341f09;return _0x1c4fcd[_0x2c8c96('0x21')][_0x2c8c96('0x5')][_0x2c8c96('0xa')](_0x2b326e)['then'](function(){const _0x12a95e=_0x2c8c96;logger[_0x12a95e('0x3')](_0x12a95e('0xb'),_0x2b326e);})['catch'](function(_0x22d901){const _0x179dc7=_0x2c8c96;logger[_0x179dc7('0x3')](JSON[_0x179dc7('0x16')](_0x22d901));});});},Migration[_0x1e5f9b('0x7')]['removeColumn']=function(_0x583fd9,_0x58ee46){const _0x2237e1=_0x1e5f9b,_0x2230c9=this;this[_0x2237e1('0x1')][_0x2237e1('0x0')](function(){const _0x52ae2a=_0x2237e1;return _0x2230c9[_0x52ae2a('0x21')][_0x52ae2a('0x4')](_0x583fd9,_0x58ee46)[_0x52ae2a('0x14')](function(){const _0x1dc7a9=_0x52ae2a;logger[_0x1dc7a9('0x3')](_0x1dc7a9('0x2'),_0x58ee46,_0x583fd9);})[_0x52ae2a('0xc')](function(_0x1b8059){const _0x54da6b=_0x52ae2a;logger[_0x54da6b('0x3')](util[_0x54da6b('0x13')](_0x1b8059,{'showHidden':![],'depth':null}));});});},Migration[_0x1e5f9b('0x7')][_0x1e5f9b('0x22')]=function(_0x514043,_0x38e764,_0x55b9c9){const _0x5c5f9c=_0x1e5f9b,_0x144c86=this;this[_0x5c5f9c('0x1')]['enqueue'](function(){const _0x1b6a45=_0x5c5f9c;return _0x144c86[_0x1b6a45('0x21')][_0x1b6a45('0x22')](_0x514043,_0x38e764,_0x55b9c9)[_0x1b6a45('0x14')](function(){const _0x648e98=_0x1b6a45;logger[_0x648e98('0x3')](_0x648e98('0x1d'),_0x38e764,_0x55b9c9,_0x514043);})[_0x1b6a45('0xc')](function(_0x254ce1){const _0x2aa760=_0x1b6a45;logger[_0x2aa760('0x3')](util[_0x2aa760('0x13')](_0x254ce1,{'showHidden':![],'depth':null}));});});},Migration[_0x1e5f9b('0x7')]['final']=function(_0x31101e){const _0x15e4c8=_0x1e5f9b;this['sequence'][_0x15e4c8('0x0')](function(){return _0x31101e();});},module[_0x1e5f9b('0x6')]={'up':function(_0x325814){return new Promise(function(_0x27cdfb){const _0x3d752c=a1019_0xdc2a,_0x10bff0=new Migration(_0x325814);_0x10bff0[_0x3d752c('0x20')](_0x3d752c('0x1a'),['firstName',_0x3d752c('0x12'),'phone',_0x3d752c('0xd'),_0x3d752c('0x25'),_0x3d752c('0x1c')],{'indexName':'fti_cm_contacts','indicesType':_0x3d752c('0x11')}),_0x10bff0[_0x3d752c('0x1b')](_0x27cdfb);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/3.0.0.js b/server/migrations/3.0.0.js index 9745f8e..3560687 100644 --- a/server/migrations/3.0.0.js +++ b/server/migrations/3.0.0.js @@ -1 +1 @@ -const a1020_0xcefa=['indexName','join','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','query\x20%s','enqueue','indicesType','queryInterface','ALTER\x20TABLE\x20users\x20ADD\x20CONSTRAINT\x20`users_ibfk_1`\x20FOREIGN\x20KEY\x20(userProfileId)\x20REFERENCES\x20user_profiles(id)\x20ON\x20DELETE\x20RESTRICT','Removed\x20column\x20%s\x20from\x20%s','addIndex','renameColumn','DROP\x20INDEX\x20`users_ibfk_1`\x20ON\x20users','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','prototype','ALTER\x20TABLE\x20users\x20DROP\x20FOREIGN\x20KEY\x20`users_ibfk_1`','finally','removeIndex','inspect','catch','Added\x20column\x20%s\x20to\x20%s','sequelize','removeIndex\x20%s\x20%s','dropTable','query','changeColumn','info','final','../config/logger','sequence'];(function(_0x22f296,_0xcefa05){const _0x2c7f48=function(_0x5efa67){while(--_0x5efa67){_0x22f296['push'](_0x22f296['shift']());}};_0x2c7f48(++_0xcefa05);}(a1020_0xcefa,0xd1));const a1020_0x2c7f=function(_0x22f296,_0xcefa05){_0x22f296=_0x22f296-0x0;let _0x2c7f48=a1020_0xcefa[_0x22f296];return _0x2c7f48;};const _0x6746a9=a1020_0x2c7f;'use strict';const util=require('util'),logger=require(_0x6746a9('0x14'))('migration'),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x5efa67){const _0x51d18e=_0x6746a9;this[_0x51d18e('0x3')]=this[_0x51d18e('0x3')]?this[_0x51d18e('0x3')][_0x51d18e('0x8')](_0x5efa67):_0x5efa67();};const Migration=function(_0x69cd30){const _0x5e7ab3=_0x6746a9;this[_0x5e7ab3('0x1e')]=_0x69cd30,this[_0x5e7ab3('0x15')]=new Sequence();};Migration[_0x6746a9('0x6')][_0x6746a9('0x11')]=function(_0x4e009b,_0x3d4390,_0x485873){const _0x1db1b6=_0x6746a9,_0x513bd3=this;this[_0x1db1b6('0x15')][_0x1db1b6('0x1c')](function(){const _0x1c6160=_0x1db1b6;return _0x513bd3[_0x1c6160('0x1e')][_0x1c6160('0x11')](_0x4e009b,_0x3d4390,_0x485873)[_0x1c6160('0x5')](function(){const _0x4645d6=_0x1c6160;logger[_0x4645d6('0x12')](_0x4645d6('0x19'),_0x3d4390,_0x4e009b);})[_0x1c6160('0xb')](function(_0x16d164){const _0x411d9e=_0x1c6160;logger[_0x411d9e('0x12')](JSON[_0x411d9e('0x1a')](_0x16d164));});});},Migration[_0x6746a9('0x6')]['addColumn']=function(_0x290193,_0x4eb5b8,_0x468dd6){const _0x381612=_0x6746a9,_0x9bffb0=this;this[_0x381612('0x15')][_0x381612('0x1c')](function(){const _0x329f0f=_0x381612;return _0x9bffb0[_0x329f0f('0x1e')]['addColumn'](_0x290193,_0x4eb5b8,_0x468dd6)['then'](function(){const _0x3f42e3=_0x329f0f;logger[_0x3f42e3('0x12')](_0x3f42e3('0xc'),_0x4eb5b8,_0x290193);})[_0x329f0f('0xb')](function(_0x3675c5){const _0x168aac=_0x329f0f;logger[_0x168aac('0x12')](JSON[_0x168aac('0x1a')](_0x3675c5));});});},Migration[_0x6746a9('0x6')]['dropTable']=function(_0x5817c0){const _0x1dedb0=_0x6746a9,_0x59d93b=this;this[_0x1dedb0('0x15')]['enqueue'](function(){const _0x12e7a2=_0x1dedb0;return _0x59d93b['queryInterface'][_0x12e7a2('0xf')](_0x5817c0,{'force':!![]})[_0x12e7a2('0x5')](function(){logger['info']('table\x20dropped\x20%s',_0x5817c0);})[_0x12e7a2('0xb')](function(_0x493f2b){const _0x24fc3c=_0x12e7a2;logger['info'](JSON[_0x24fc3c('0x1a')](_0x493f2b));});});},Migration['prototype'][_0x6746a9('0x0')]=function(_0x2eb3e4,_0x306a7e,_0x97c207){const _0x43eea9=_0x6746a9,_0x10d89b=this;this['sequence'][_0x43eea9('0x1c')](function(){const _0x52afeb=_0x43eea9;return _0x10d89b[_0x52afeb('0x1e')][_0x52afeb('0x0')](_0x2eb3e4,_0x306a7e,{'indexName':_0x97c207[_0x52afeb('0x16')],'indicesType':_0x97c207[_0x52afeb('0x1d')]})[_0x52afeb('0x5')](function(){const _0xc05b47=_0x52afeb;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x2eb3e4,_0x306a7e[_0xc05b47('0x17')](','),_0x97c207[_0xc05b47('0x16')],_0x97c207['indicesType']);})['catch'](function(_0x17dac0){const _0x2f232b=_0x52afeb;logger[_0x2f232b('0x12')](JSON[_0x2f232b('0x1a')](_0x17dac0));});});},Migration[_0x6746a9('0x6')][_0x6746a9('0x9')]=function(_0x23fdf6,_0x112541){const _0x197f67=_0x6746a9,_0x3875aa=this;this[_0x197f67('0x15')][_0x197f67('0x1c')](function(){const _0x2edcbb=_0x197f67;return _0x3875aa[_0x2edcbb('0x1e')]['removeIndex'](_0x23fdf6,_0x112541)[_0x2edcbb('0x5')](function(){const _0x2e66c3=_0x2edcbb;logger['info'](_0x2e66c3('0xe'),_0x23fdf6,_0x112541);})[_0x2edcbb('0xb')](function(_0xad9588){const _0x1ab9d1=_0x2edcbb;logger[_0x1ab9d1('0x12')](JSON[_0x1ab9d1('0x1a')](_0xad9588));});});},Migration[_0x6746a9('0x6')][_0x6746a9('0x10')]=function(_0x1adbf5){const _0x1896e1=this;this['sequence']['enqueue'](function(){const _0x533cc3=a1020_0x2c7f;return _0x1896e1[_0x533cc3('0x1e')][_0x533cc3('0xd')][_0x533cc3('0x10')](_0x1adbf5)[_0x533cc3('0x5')](function(){const _0x48bcfe=_0x533cc3;logger[_0x48bcfe('0x12')](_0x48bcfe('0x1b'),_0x1adbf5);})['catch'](function(_0x38cb57){const _0x38e14f=_0x533cc3;logger[_0x38e14f('0x12')](JSON[_0x38e14f('0x1a')](_0x38cb57));});});},Migration[_0x6746a9('0x6')][_0x6746a9('0x18')]=function(_0x335283,_0x45c49a){const _0x3afe28=_0x6746a9,_0x262767=this;this[_0x3afe28('0x15')][_0x3afe28('0x1c')](function(){const _0x5d727b=_0x3afe28;return _0x262767[_0x5d727b('0x1e')]['removeColumn'](_0x335283,_0x45c49a)['then'](function(){const _0x33e149=_0x5d727b;logger[_0x33e149('0x12')](_0x33e149('0x20'),_0x45c49a,_0x335283);})[_0x5d727b('0xb')](function(_0x4a7828){const _0x3147f4=_0x5d727b;logger[_0x3147f4('0x12')](util['inspect'](_0x4a7828,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x6746a9('0x1')]=function(_0x58d6ec,_0x39cdb9,_0x17a4fb){const _0xd6699=_0x6746a9,_0x33d8ac=this;this['sequence'][_0xd6699('0x1c')](function(){const _0x51a54a=_0xd6699;return _0x33d8ac['queryInterface'][_0x51a54a('0x1')](_0x58d6ec,_0x39cdb9,_0x17a4fb)[_0x51a54a('0x5')](function(){const _0x1f84e6=_0x51a54a;logger[_0x1f84e6('0x12')](_0x1f84e6('0x4'),_0x39cdb9,_0x17a4fb,_0x58d6ec);})[_0x51a54a('0xb')](function(_0x18ee87){const _0x381222=_0x51a54a;logger[_0x381222('0x12')](util[_0x381222('0xa')](_0x18ee87,{'showHidden':![],'depth':null}));});});},Migration[_0x6746a9('0x6')]['final']=function(_0x364d26){const _0x2db42e=_0x6746a9;this[_0x2db42e('0x15')][_0x2db42e('0x1c')](function(){return _0x364d26();});},module['exports']={'up':function(_0x207cd4){return new Promise(function(_0x506aac){const _0x4d2f4c=a1020_0x2c7f,_0x19c3a3=new Migration(_0x207cd4);_0x19c3a3[_0x4d2f4c('0x10')](_0x4d2f4c('0x7')),_0x19c3a3['query'](_0x4d2f4c('0x2')),_0x19c3a3[_0x4d2f4c('0x10')](_0x4d2f4c('0x1f')),_0x19c3a3[_0x4d2f4c('0x13')](_0x506aac);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/mysqldb/index.js b/server/mysqldb/index.js index 29da96d..71a8dc1 100644 --- a/server/mysqldb/index.js +++ b/server/mysqldb/index.js @@ -1 +1 @@ -const a1021_0xcabb=['CampaignId','../api/integration/integration.model','VoiceExtension','SalesforceAccount','../api/whatsappMessage/whatsappMessage.model','../api/openchannelQueue/openchannelQueue.model','Contacts','UserSmsQueue','../api/intDynamics365Account/intDynamics365Account.model','FaxQueueReport','DeskConfiguration','Attachments','../api/smsMessage/smsMessage.model','SugarcrmField','JscriptyQuestionReport','ZendeskAccount','Notifications','OpenchannelTransferReport','DefaultReportId','Variable','Queue','UserProfileResource','ZohoAccount','DashboardItem','ServicenowAccount','utf8mb4','../api/userSmsQueue/userSmsQueue.model','../api/whatsappInteraction/whatsappInteraction.model','Migration','MailAccountId','AnyCondition','../api/mailQueueReport/mailQueueReport.model','MailInteractions','ZendeskField','cm_user_has_lists','../api/analyticMetric/analyticMetric.model','FromWhatsappAccountId','UserProfileSection','AccountId','FromAgent','MailApplication','../api/voiceMailMessage/voiceMailMessage.model','mysql','VoiceAgentReport','SmsQueueId','VoicePrefixes','../api/voiceExtension/voiceExtension.model','campaigns_has_cm_blacklists','VoicePrefix','User','../api/jscriptyProject/jscriptyProject.model','../api/cmCustomField/cmCustomField.model','user_has_whatsapp_interactions','FromUserId','user_has_voice_prefixes','FromFaxAccountId','../api/intFreshsalesAccount/intFreshsalesAccount.model','ServicenowConfiguration','../api/squareProject/squareProject.model','VtigerConfiguration','../api/chatProactiveAction/chatProactiveAction.model','MailInteraction','UserChatQueue','VtigerField','Interval','SmsAccount','moh_has_sounds','MailAccount','ChatWebsite','FaxMessage','SubjectId','../api/mailSubstatus/mailSubstatus.model','AnalyticFieldReport','../api/mailQueue/mailQueue.model','Company','TagId','../api/automation/automation.model','SmsApplications','WhatsappTransferReport','int_freshdesk_configuration_has_tags','VoiceMusicOnHold','Dispositions','../api/intSalesforceAccount/intSalesforceAccount.model','Dynamics365Field','Setting','../api/analyticExtractedReport/analyticExtractedReport.model','TrunkId','../api/chatQueue/chatQueue.model','OwnerId','../api/chatGroup/chatGroup.model','belongsTo','../api/campaign/campaign.model','../api/userProfileSection/userProfileSection.model','../api/openchannelApplication/openchannelApplication.model','OpenchannelApplication','ZendeskConfiguration','../api/intVtigerField/intVtigerField.model','ToMailAccountId','mysqlPassword','SalesforceConfiguration','Subject','MailQueues','../api/integrationReport/integrationReport.model','VoiceQueueReport','campaigns_has_cm_lists','team_has_chat_queues','Pause','Lists','sequelize','../api/cmCompany/cmCompany.model','../api/cmList/cmList.model','../api/intFreshsalesConfiguration/intFreshsalesConfiguration.model','JscriptySessionReport','FaxApplications','UserChatInteractions','FreshdeskField','Interaction','IntegrationReport','WhatsappQueue','Items','Descriptions','ToChatQueueId','Extensions','mail_interaction_has_tags','AgentReports','../api/plugin/plugin.model','../api/voiceTransferReport/voiceTransferReport.model','../api/analyticDefaultReport/analyticDefaultReport.model','WhatsappQueueReport','FieldId','MailApplications','SmsInteraction','Dynamics365Account','team_has_whatsapp_queues','DeskField','WhatsappAccount','SenderId','OneAny','CannedAnswer','../api/chatQueueReport/chatQueueReport.model','../api/voiceQueue/voiceQueue.model','hasMany','Team','MailMessage','FromOpenchannelAccountId','Condition','UserOpenchannelInteractions','ToOpenchannelAccountId','WhatsappApplication','Tags','user_has_sms_accounts','ChatQueues','AllConditions','List','../api/mailApplication/mailApplication.model','SmsQueueReport','Campaign','FromAccount','ZohoField','CmHopperHistory','Any','../api/migration/migration.model','mandatoryDispositionPauseId','Trigger','ChatWebsites','Sound','Template','AnalyticMetric','../api/intSugarcrmConfiguration/intSugarcrmConfiguration.model','Teams','SessionId','exports','../api/cmHopper/cmHopper.model','CompanyId','Queues','../api/voiceAgentReport/voiceAgentReport.model','Contact','AnalyticDefaultReport','UserProfile','AnalyticCustomReport','../api/tag/tag.model','CmContact','Exntensions','WhatsappMessage','../api/chatApplication/chatApplication.model','OpenchannelQueue','user_has_teams','ReportAgentPreview','OpenchannelQueueReport','MailServerIn','../api/memberReport/memberReport.model','SugarcrmConfiguration','VariableId','ToAccount','../api/intFreshsalesField/intFreshsalesField.model','../api/intVtigerConfiguration/intVtigerConfiguration.model','VoiceQueues','OpenchannelInteractionId','ChatInteractions','Actions','UserOpenchannelQueue','user_has_mail_accounts','DeskAccount','ChatWebsiteId','WhatsappInteraction','../api/setting/setting.model','FaxQueue','../api/userMailQueue/userMailQueue.model','MetricId','user_has_chat_interactions','ChatApplication','ToAgent','Answers','sectionId','ChatProactiveAction','SquareReport','WhatsappQueues','FaxInteractions','../api/intServicenowConfiguration/intServicenowConfiguration.model','../api/chatWebsite/chatWebsite.model','mysqlUser','VoiceRecording','FromId','SmsQueue','team_has_sms_queues','../api/cmHopperFinal/cmHopperFinal.model','../api/faxTransferReport/faxTransferReport.model','../api/voicePrefix/voicePrefix.model','UserFaxQueue','../api/dashboard/dashboard.model','OpenchannelInteraction','../api/mailTransferReport/mailTransferReport.model','CustomReportId','Dynamics365Configuration','../api/whatsappTransferReport/whatsappTransferReport.model','ChatInternalMessage','../api/cannedAnswer/cannedAnswer.model','VoiceQueueId','VtigerAccount','FaxAccountId','Messages','MailServerOut','WhatsappAccountId','voice_queues_has_cm_blacklists','../api/user/user.model','../api/mailServerOut/mailServerOut.model','voice_queues_has_cm_lists','../api/faxAccount/faxAccount.model','SmsInteractions','UserMailInteractions','FaxTransferReport','Agents','JscriptyProject','uniqueid','ChatQueue','hasOne','../api/action/action.model','Users','WhatsappInteractionId','VoiceQueue','ChatGroup','ChatOfflineMessage','BlackLists','belongsToMany','ScreenRecording','CmCompany','../api/squareReport/squareReport.model','../api/smsApplication/smsApplication.model','../api/smsQueueReport/smsQueueReport.model','../api/faxInteraction/faxInteraction.model','ToSmsAccountId','SalesforceField','Dashboard','TrunkBackup','../config/environment','ChatInteractionId','VoiceMail','SmsInteractionId','SugarcrmAccount','Fields','Automation','../api/voiceRecording/voiceRecording.model','../api/trunk/trunk.model','chat_group_has_users','IntervalId','JscriptySessions','FaxInteractionId','WhatsappQueueId','CustomFields','JscriptyAnswerReport','../api/intVtigerAccount/intVtigerAccount.model','Integration','../api/intSalesforceConfiguration/intSalesforceConfiguration.model','FreshsalesConfiguration','ToFaxQueueId','OpenchannelMessage','MailQueueReport','../api/openchannelTransferReport/openchannelTransferReport.model','../api/mailServerIn/mailServerIn.model','ToQueue','../api/userChatQueue/userChatQueue.model','whatsapp_interaction_has_tags','TrunkBackupId','ChatMessage','../api/whatsappAccount/whatsappAccount.model','Website','../api/disposition/disposition.model','UserVoiceQueue','name','UserWhatsappInteractions','user_has_square_projects','../api/screenRecording/screenRecording.model','ChatInteraction','../api/attachment/attachment.model','AnyConditions','Schedule','user_has_openchannel_interactions','../api/chatInteraction/chatInteraction.model','OpenchannelAccount','../api/voiceContext/voiceContext.model','CmList','mailboxuser','../api/intServicenowAccount/intServicenowAccount.model','Mohs','SmsAccounts','UserWhatsappQueue','user_has_openchannel_accounts','openchannel_interaction_has_tags','../api/userVoiceQueue/userVoiceQueue.model','Attachment','OpenchannelInteractions','OpenchannelAccountId','SmsAccountId','../api/dashboardItem/dashboardItem.model','AutomationAllId','../api/openchannelMessage/openchannelMessage.model','ListId','Action','../api/squareRecording/squareRecording.model','team_has_mail_queues','ToSmsQueueId','cascade','../api/userFaxQueue/userFaxQueue.model','../api/intDynamics365Field/intDynamics365Field.model','HopperHistory','UserSmsInteractions','FaxAccount','ChatTransferReport','ToId','SquareOdbc','ToQueueId','AutomationId','Owner','ZohoConfiguration','Configurations','cm_contact_has_tags','mandatoryDispositionPause','options','SmsApplication','../api/faxApplication/faxApplication.model','All','SmsMessage','ContactId','DescriptionId','../api/voiceMusicOnHold/voiceMusicOnHold.model','../api/jscriptyAnswerReport/jscriptyAnswerReport.model','../api/analyticCustomReport/analyticCustomReport.model','FreshsalesField','../api/smsTransferReport/smsTransferReport.model','../api/voiceDialReport/voiceDialReport.model','../api/smsInteraction/smsInteraction.model','../api/cmContact/cmContact.model','utf8','VoiceCallReport','VoiceMailMessage','../api/variable/variable.model','CmHopperFinal','../api/voiceMail/voiceMail.model','team_has_fax_queues','OpenchannelQueues','SquareRecording','Account','../api/team/team.model','../api/faxQueueReport/faxQueueReport.model','Field','../api/intFreshdeskConfiguration/intFreshdeskConfiguration.model','Network','../api/userVoiceQueueRt/userVoiceQueueRt.model','ToFaxAccountId','../api/userProfileResource/userProfileResource.model','FaxApplication','ThroughTags','MailTransferReport','../api/notification/notification.model','restrict','MailInteractionId','Tag','SmsQueues','MailQueue','../api/license/license.model','../api/voiceQueueReport/voiceQueueReport.model','Disposition','FaxQueues','HopperFinals','FromChatWebsiteId','../api/intSugarcrmField/intSugarcrmField.model','UserId','FreshdeskConfiguration','../api/intDeskAccount/intDeskAccount.model','../api/intSalesforceField/intSalesforceField.model','determine','../api/intDeskField/intDeskField.model','AnalyticExtractedReport','../config/config.service','user_has_sms_interactions','AllCondition','SquareMessage','../api/condition/condition.model','HopperHistories','License','user_has_fax_interactions','../api/chatMessage/chatMessage.model','../api/smsAccount/smsAccount.model','VoiceChanSpy','Trunk','fax_interaction_has_tags','sms_interaction_has_tags','team_has_openchannel_queues','../api/intFreshdeskField/intFreshdeskField.model','../api/whatsappQueue/whatsappQueue.model','Sounds','../api/squareReportDetail/squareReportDetail.model','sequelizeHistory','../api/schedule/schedule.model','Interactions','MemberReport','Members','ChatQueueReport','FreshsalesAccount','UserMailQueue','AttachmentId','SquareProject','../api/cdr/cdr.model','../api/faxQueue/faxQueue.model','../api/userOpenchannelQueue/userOpenchannelQueue.model','user_has_chat_websites','password','UserVoiceQueueRt','VoiceTransferReport','username','HopperBlacks','Subjects','MailAccounts','ParentId','ServicenowField','Applications','FaxAccounts','user_has_mail_interactions','cm_user_has_contacts','CmHopper','CmCustomField','SpiedAgents','FaxInteraction','ChatQueueId','Recordings','ChatGroupId','Description','Notification','../api/chatTransferReport/chatTransferReport.model','CmHopperBlack','chat_interaction_has_tags','FreshdeskAccount','lodash','QueueCalls','SmsTransferReport','DataTypes','TriggerId','../api/cloudProvider/cloudProvider.model','SquareProjectId','int_desk_configuration_has_tags','mailbox','Hoppers','team_has_voice_queues','../api/analyticFieldReport/analyticFieldReport.model','ProjectId','OneAll','ToUserId','user_has_whatsapp_accounts','../api/intZohoConfiguration/intZohoConfiguration.model','../api/chatInternalMessage/chatInternalMessage.model','../api/intDeskConfiguration/intDeskConfiguration.model','Plugin','../api/squareOdbc/squareOdbc.model','int_zendesk_configuration_has_tags','user_has_fax_accounts','../api/pause/pause.model'];(function(_0x553573,_0xcabb8c){const _0x100803=function(_0x6cbe6a){while(--_0x6cbe6a){_0x553573['push'](_0x553573['shift']());}};_0x100803(++_0xcabb8c);}(a1021_0xcabb,0x15b));const a1021_0x1008=function(_0x553573,_0xcabb8c){_0x553573=_0x553573-0x0;let _0x100803=a1021_0xcabb[_0x553573];return _0x100803;};const _0xf07975=a1021_0x1008;'use strict';const config=require(_0xf07975('0x1a7')),cs=require(_0xf07975('0x42'))['getConfigService'](),Sequelize=require(_0xf07975('0x101')),_=require(_0xf07975('0x7d')),jstz=require('jstz'),timezone=jstz[_0xf07975('0x3f')](),DEFAULTS={'database':cs['mysqlDatabase'],'username':cs[_0xf07975('0x171')],'password':cs[_0xf07975('0xf7')],'options':{'host':cs['dbHost'],'port':cs['dbPort'],'dialect':_0xf07975('0xbf'),'dialectOptions':{'charset':_0xf07975('0xae')},'logging':![],'timezone':timezone[_0xf07975('0x1c9')](),'define':{'charset':_0xf07975('0x19'),'collate':'utf8_general_ci'}}};config[_0xf07975('0x101')]=_['defaultsDeep'](config[_0xf07975('0x101')],DEFAULTS),config[_0xf07975('0x55')]=_['defaultsDeep'](config[_0xf07975('0x55')],DEFAULTS);const db={'Sequelize':Sequelize,'sequelize':new Sequelize(config[_0xf07975('0x101')]['database'],config['sequelize'][_0xf07975('0x66')],config['sequelize'][_0xf07975('0x63')],config[_0xf07975('0x101')]['options'])},dbH={'Sequelize':Sequelize,'sequelize':new Sequelize(config[_0xf07975('0x55')]['database'],config['sequelizeHistory']['username'],config[_0xf07975('0x55')][_0xf07975('0x63')],config[_0xf07975('0x55')][_0xf07975('0xa')])};db['User']=require(_0xf07975('0x189'))(db[_0xf07975('0x101')],Sequelize['DataTypes']),db['VoiceChanSpy']=require('../api/voiceChanSpy/voiceChanSpy.model')(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['VoiceContext']=require(_0xf07975('0x1d4'))(db['sequelize'],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x97')]=require(_0xf07975('0xc3'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['VoiceMusicOnHold']=require(_0xf07975('0x11'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x198')]=require(_0xf07975('0x121'))(db['sequelize'],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x172')]=require(_0xf07975('0x1ae'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x19d')]=require(_0xf07975('0x1cc'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x1a9')]=require(_0xf07975('0x1e'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['VoiceMailMessage']=require(_0xf07975('0xbe'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['VoiceCallReport']=require('../api/voiceCallReport/voiceCallReport.model')(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['VoiceDialReport']=require(_0xf07975('0x16'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['VoiceAgentReport']=require(_0xf07975('0x144'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['VoiceQueueReport']=require(_0xf07975('0x35'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x58')]=require(_0xf07975('0x153'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['Trunk']=require(_0xf07975('0x1af'))(db['sequelize'],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x65')]=require(_0xf07975('0x113'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x64')]=require(_0xf07975('0x28'))(db[_0xf07975('0x101')],Sequelize['DataTypes']),db[_0xf07975('0x1c8')]=require(_0xf07975('0x1dd'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['UserChatQueue']=require(_0xf07975('0x1c1'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x5c')]=require(_0xf07975('0x164'))(db['sequelize'],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x179')]=require(_0xf07975('0x1eb'))(db['sequelize'],Sequelize[_0xf07975('0x80')]),db['UserSmsQueue']=require(_0xf07975('0xaf'))(db[_0xf07975('0x101')],Sequelize['DataTypes']),db[_0xf07975('0x15d')]=require(_0xf07975('0x61'))(db[_0xf07975('0x101')],Sequelize['DataTypes']),db['UserWhatsappQueue']=require('../api/userWhatsappQueue/userWhatsappQueue.model')(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x152')]=require(_0xf07975('0x1bf'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x186')]=require(_0xf07975('0x18a'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['MailAccount']=require('../api/mailAccount/mailAccount.model')(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x33')]=require(_0xf07975('0xde'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['MailSubstatus']=require(_0xf07975('0xdc'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0xd2')]=require('../api/mailInteraction/mailInteraction.model')(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x124')]=require('../api/mailMessage/mailMessage.model')(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['MailApplication']=require(_0xf07975('0x12f'))(db['sequelize'],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x1bd')]=require(_0xf07975('0xb4'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x1a5')]=require(_0xf07975('0x17a'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0xac')]=require(_0xf07975('0x1e2'))(db['sequelize'],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x1ef')]=require(_0xf07975('0x18c'))(db['sequelize'],Sequelize['DataTypes']),db[_0xf07975('0x2b')]=require(_0xf07975('0xc'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x73')]=require(_0xf07975('0x1a2'))(db[_0xf07975('0x101')],Sequelize['DataTypes']),db['FaxMessage']=require('../api/faxMessage/faxMessage.model')(db['sequelize'],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x163')]=require(_0xf07975('0x60'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x9e')]=require(_0xf07975('0x24'))(db['sequelize'],Sequelize['DataTypes']),db[_0xf07975('0xd6')]=require(_0xf07975('0x4b'))(db[_0xf07975('0x101')],Sequelize['DataTypes']),db[_0xf07975('0xb')]=require(_0xf07975('0x1a0'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x118')]=require(_0xf07975('0x17'))(db[_0xf07975('0x101')],Sequelize['DataTypes']),db[_0xf07975('0xe')]=require(_0xf07975('0xa1'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x174')]=require('../api/smsQueue/smsQueue.model')(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['OpenchannelAccount']=require('../api/openchannelAccount/openchannelAccount.model')(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0xf3')]=require(_0xf07975('0xf2'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x17b')]=require('../api/openchannelInteraction/openchannelInteraction.model')(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x1bc')]=require(_0xf07975('0x1e4'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x14e')]=require(_0xf07975('0x9a'))(db['sequelize'],Sequelize['DataTypes']),db[_0xf07975('0xd9')]=require(_0xf07975('0x170'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['OpenchannelQueueReport']=require('../api/openchannelQueueReport/openchannelQueueReport.model')(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x167')]=require(_0xf07975('0x14d'))(db['sequelize'],Sequelize['DataTypes']),db[_0xf07975('0x1cd')]=require(_0xf07975('0x1d2'))(db[_0xf07975('0x101')],Sequelize['DataTypes']),db[_0xf07975('0x1c4')]=require(_0xf07975('0x4a'))(db[_0xf07975('0x101')],Sequelize['DataTypes']),db['ChatOfflineMessage']=require('../api/chatOfflineMessage/chatOfflineMessage.model')(db[_0xf07975('0x101')],Sequelize['DataTypes']),db[_0xf07975('0x193')]=require(_0xf07975('0xec'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x199')]=require(_0xf07975('0xee'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x16b')]=require(_0xf07975('0xd1'))(db['sequelize'],Sequelize[_0xf07975('0x80')]),db['CmCompany']=require(_0xf07975('0x102'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x14a')]=require(_0xf07975('0x18'))(db[_0xf07975('0x101')],Sequelize['DataTypes']),db[_0xf07975('0x70')]=require(_0xf07975('0x141'))(db[_0xf07975('0x101')],Sequelize['DataTypes']),db['CmHopperBlack']=require('../api/cmHopperBlack/cmHopperBlack.model')(db['sequelize'],Sequelize['DataTypes']),db[_0xf07975('0x1d')]=require(_0xf07975('0x176'))(db[_0xf07975('0x101')],Sequelize['DataTypes']),db[_0xf07975('0x134')]=require('../api/cmHopperHistory/cmHopperHistory.model')(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x150')]=require('../api/reportAgentPreview/reportAgentPreview.model')(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x71')]=require(_0xf07975('0xc8'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x1e6')]=require(_0xf07975('0x195'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['Automation']=require(_0xf07975('0xe1'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x11f')]=require(_0xf07975('0x181'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['Disposition']=require(_0xf07975('0x1c7'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x126')]=require(_0xf07975('0x46'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0xd5')]=require('../api/interval/interval.model')(db[_0xf07975('0x101')],Sequelize['DataTypes']),db[_0xf07975('0xff')]=require(_0xf07975('0x94'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['Cdr']=require(_0xf07975('0x5f'))(db['sequelize'],Sequelize[_0xf07975('0x80')]),db['VoiceQueuesLog']=require('../api/voiceQueuesLog/voiceQueuesLog.model')(db['sequelize'],Sequelize['DataTypes']),db[_0xf07975('0x1d0')]=require(_0xf07975('0x56'))(db['sequelize'],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x13a')]=require('../api/sound/sound.model')(db[_0xf07975('0x101')],Sequelize['DataTypes']),db[_0xf07975('0x31')]=require(_0xf07975('0x149'))(db['sequelize'],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x13b')]=require('../api/template/template.model')(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['Trigger']=require('../api/trigger/trigger.model')(db[_0xf07975('0x101')],Sequelize['DataTypes']),db[_0xf07975('0xa8')]=require(_0xf07975('0x1c'))(db['sequelize'],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x1b8')]=require(_0xf07975('0x96'))(db[_0xf07975('0x101')],Sequelize['DataTypes']),db[_0xf07975('0x10a')]=require(_0xf07975('0xfb'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x148')]=require(_0xf07975('0x13'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x146')]=require(_0xf07975('0x114'))(db['sequelize'],Sequelize['DataTypes']),db[_0xf07975('0x41')]=require(_0xf07975('0xea'))(db[_0xf07975('0x101')],Sequelize['DataTypes']),db[_0xf07975('0x13c')]=require(_0xf07975('0xb8'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0xdd')]=require(_0xf07975('0x88'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['AnalyticTreeReport']=require('../api/analyticTreeReport/analyticTreeReport.model')(db['sequelize'],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x98')]=require(_0xf07975('0xe7'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0xf8')]=require(_0xf07975('0x1b9'))(db['sequelize'],Sequelize['DataTypes']),db[_0xf07975('0x1a4')]=require(_0xf07975('0x3e'))(db[_0xf07975('0x101')],Sequelize['DataTypes']),db[_0xf07975('0x1ab')]=require('../api/intSugarcrmAccount/intSugarcrmAccount.model')(db[_0xf07975('0x101')],Sequelize['DataTypes']),db['SugarcrmConfiguration']=require(_0xf07975('0x13d'))(db[_0xf07975('0x101')],Sequelize['DataTypes']),db[_0xf07975('0xa2')]=require(_0xf07975('0x3a'))(db[_0xf07975('0x101')],Sequelize['DataTypes']),db['DeskAccount']=require(_0xf07975('0x3d'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['DeskConfiguration']=require(_0xf07975('0x8f'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x11b')]=require(_0xf07975('0x40'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0xab')]=require('../api/intZohoAccount/intZohoAccount.model')(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x6')]=require(_0xf07975('0x8d'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['ZohoField']=require('../api/intZohoField/intZohoField.model')(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0xa4')]=require('../api/intZendeskAccount/intZendeskAccount.model')(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0xf4')]=require('../api/intZendeskConfiguration/intZendeskConfiguration.model')(db['sequelize'],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0xb6')]=require('../api/intZendeskField/intZendeskField.model')(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x7c')]=require('../api/intFreshdeskAccount/intFreshdeskAccount.model')(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['FreshdeskConfiguration']=require(_0xf07975('0x26'))(db[_0xf07975('0x101')],Sequelize['DataTypes']),db['FreshdeskField']=require(_0xf07975('0x51'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['VtigerAccount']=require(_0xf07975('0x1b7'))(db['sequelize'],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0xd0')]=require(_0xf07975('0x158'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0xd4')]=require(_0xf07975('0xf5'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['ServicenowAccount']=require(_0xf07975('0x1d7'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0xce')]=require(_0xf07975('0x16f'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x6b')]=require('../api/intServicenowField/intServicenowField.model')(db[_0xf07975('0x101')],Sequelize['DataTypes']),db[_0xf07975('0x119')]=require(_0xf07975('0x9d'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x17e')]=require('../api/intDynamics365Configuration/intDynamics365Configuration.model')(db[_0xf07975('0x101')],Sequelize['DataTypes']),db[_0xf07975('0xe8')]=require(_0xf07975('0x1ec'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x5b')]=require(_0xf07975('0xcd'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['FreshsalesConfiguration']=require(_0xf07975('0x104'))(db['sequelize'],Sequelize['DataTypes']),db[_0xf07975('0x14')]=require(_0xf07975('0x157'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x1b8')]=require(_0xf07975('0x96'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x27')]=require('../api/network/network.model')(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x5a')]=require(_0xf07975('0x120'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['ChatInternalMessage']=require(_0xf07975('0x8e'))(db['sequelize'],Sequelize['DataTypes']),db[_0xf07975('0x1b6')]=require(_0xf07975('0x12'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['JscriptyQuestionReport']=require('../api/jscriptyQuestionReport/jscriptyQuestionReport.model')(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x105')]=require('../api/jscriptySessionReport/jscriptySessionReport.model')(db['sequelize'],Sequelize['DataTypes']),db[_0xf07975('0x130')]=require(_0xf07975('0x1a1'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x16c')]=require(_0xf07975('0x19f'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['SquareDetailsReport']=require(_0xf07975('0x54'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['JscriptyProject']=require(_0xf07975('0xc7'))(db['sequelize'],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0xe9')]=require(_0xf07975('0x162'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x2')]=require(_0xf07975('0x91'))(db[_0xf07975('0x101')],Sequelize['DataTypes']),db['SquareProject']=require(_0xf07975('0xcf'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x21')]=require(_0xf07975('0x1e7'))(db['sequelize'],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x45')]=require('../api/squareMessage/squareMessage.model')(db[_0xf07975('0x101')],Sequelize['DataTypes']),db['Team']=require(_0xf07975('0x23'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x48')]=require(_0xf07975('0x34'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['Campaign']=require(_0xf07975('0xf0'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0xb1')]=require(_0xf07975('0x136'))(db['sequelize'],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x1de')]=require(_0xf07975('0x1ce'))(db[_0xf07975('0x101')],Sequelize['DataTypes']),db[_0xf07975('0x90')]=require(_0xf07975('0x112'))(db[_0xf07975('0x101')],Sequelize['DataTypes']),db[_0xf07975('0x2d')]=require(_0xf07975('0x17c'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x0')]=require(_0xf07975('0x79'))(db['sequelize'],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x18f')]=require(_0xf07975('0x177'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0xa6')]=require(_0xf07975('0x1be'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x7f')]=require(_0xf07975('0x15'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x1d5')]=require(_0xf07975('0x103'))(db[_0xf07975('0x101')],Sequelize['DataTypes']),db[_0xf07975('0xc5')]=require(_0xf07975('0x178'))(db['sequelize'],Sequelize['DataTypes']),db[_0xf07975('0x147')]=require('../api/userProfile/userProfile.model')(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['UserProfileSection']=require(_0xf07975('0xf1'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0xaa')]=require(_0xf07975('0x2a'))(db['sequelize'],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x78')]=require(_0xf07975('0x2e'))(db['sequelize'],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x11c')]=require(_0xf07975('0x1c5'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['WhatsappApplication']=require('../api/whatsappApplication/whatsappApplication.model')(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db['WhatsappInteraction']=require(_0xf07975('0xb0'))(db['sequelize'],Sequelize['DataTypes']),db[_0xf07975('0x14c')]=require(_0xf07975('0x99'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0x115')]=require('../api/whatsappQueueReport/whatsappQueueReport.model')(db['sequelize'],Sequelize['DataTypes']),db['WhatsappTransferReport']=require(_0xf07975('0x17f'))(db[_0xf07975('0x101')],Sequelize['DataTypes']),db[_0xf07975('0x10b')]=require(_0xf07975('0x52'))(db[_0xf07975('0x101')],Sequelize['DataTypes']),db['CloudProvider']=require(_0xf07975('0x82'))(db[_0xf07975('0x101')],Sequelize[_0xf07975('0x80')]),db[_0xf07975('0xc6')][_0xf07975('0x194')](db['VoiceMail'],{'as':_0xf07975('0x1a9'),'onDelete':_0xf07975('0x1ea'),'foreignKey':_0xf07975('0x3b')}),db[_0xf07975('0xc6')][_0xf07975('0x122')](db[_0xf07975('0x172')],{'as':_0xf07975('0x75'),'foreignKey':'UserId'}),db[_0xf07975('0xc6')][_0xf07975('0x122')](db[_0xf07975('0x64')],{'as':'VoiceQueuesRt','foreignKey':_0xf07975('0x3b')}),db[_0xf07975('0xc6')][_0xf07975('0x122')](db[_0xf07975('0x97')],{'as':_0xf07975('0x10f'),'onDelete':_0xf07975('0x1ea'),'hooks':!![]}),db['User'][_0xf07975('0x122')](db[_0xf07975('0x1d')],{'as':_0xf07975('0x38'),'foreignKey':_0xf07975('0x3b')}),db['User'][_0xf07975('0x122')](db[_0xf07975('0x134')],{'as':'HopperHistory','foreignKey':_0xf07975('0x3b')}),db[_0xf07975('0xc6')][_0xf07975('0x122')](db[_0xf07975('0x150')],{'as':'ReportAgentPreview','foreignKey':_0xf07975('0x3b')}),db[_0xf07975('0xc6')][_0xf07975('0x122')](db[_0xf07975('0x17b')],{'as':_0xf07975('0x1df'),'foreignKey':_0xf07975('0x3b')}),db[_0xf07975('0xc6')][_0xf07975('0x122')](db['ChatInteraction'],{'as':_0xf07975('0x15b'),'foreignKey':'UserId'}),db['User'][_0xf07975('0x122')](db[_0xf07975('0x118')],{'as':_0xf07975('0x18d'),'foreignKey':'UserId'}),db[_0xf07975('0xc6')][_0xf07975('0x122')](db[_0xf07975('0x73')],{'as':_0xf07975('0x16e'),'foreignKey':_0xf07975('0x3b')}),db[_0xf07975('0xc6')]['hasMany'](db['MailInteraction'],{'as':_0xf07975('0xb5'),'foreignKey':_0xf07975('0x3b')}),db['User'][_0xf07975('0x122')](db[_0xf07975('0x161')],{'as':'WhatsappInteractions','foreignKey':_0xf07975('0x3b')}),db[_0xf07975('0xc6')][_0xf07975('0x122')](db[_0xf07975('0x78')],{'as':_0xf07975('0xa5'),'foreignKey':_0xf07975('0x11d')}),db['User'][_0xf07975('0xef')](db[_0xf07975('0x147')],{'as':'UserProfile','foreignKey':'userProfileId','onDelete':'restrict'}),db['User'][_0xf07975('0x19c')](db[_0xf07975('0x199')],{'as':'Groups','through':_0xf07975('0x1b0')}),db[_0xf07975('0xc6')][_0xf07975('0x19c')](db['CmContact'],{'as':_0xf07975('0x9b'),'through':'cm_user_has_contacts'}),db[_0xf07975('0xc6')][_0xf07975('0x19c')](db[_0xf07975('0x1d5')],{'as':_0xf07975('0x100'),'through':_0xf07975('0xb7')}),db[_0xf07975('0xc6')][_0xf07975('0x19c')](db['Team'],{'through':'user_has_teams'}),db[_0xf07975('0xc6')][_0xf07975('0x19c')](db[_0xf07975('0xd2')],{'as':_0xf07975('0x18e'),'through':_0xf07975('0x6e')}),db[_0xf07975('0xc6')][_0xf07975('0x19c')](db[_0xf07975('0x1cd')],{'as':_0xf07975('0x107'),'through':_0xf07975('0x166')}),db['User']['belongsToMany'](db[_0xf07975('0x73')],{'as':'UserFaxInteractions','through':'user_has_fax_interactions'}),db['User'][_0xf07975('0x19c')](db['SmsInteraction'],{'as':_0xf07975('0x1ee'),'through':'user_has_sms_interactions'}),db[_0xf07975('0xc6')][_0xf07975('0x19c')](db[_0xf07975('0x17b')],{'as':_0xf07975('0x127'),'through':'user_has_openchannel_interactions'}),db[_0xf07975('0xc6')][_0xf07975('0x19c')](db[_0xf07975('0x161')],{'as':_0xf07975('0x1ca'),'through':_0xf07975('0xc9')}),db[_0xf07975('0xc6')][_0xf07975('0x19c')](db[_0xf07975('0x198')],{'as':_0xf07975('0x159'),'through':_0xf07975('0x1c8'),'required':![]}),db[_0xf07975('0xc6')][_0xf07975('0x19c')](db[_0xf07975('0x33')],{'as':_0xf07975('0xfa'),'through':_0xf07975('0x5c'),'required':![]}),db['User'][_0xf07975('0x19c')](db[_0xf07975('0x193')],{'as':_0xf07975('0x12c'),'through':'UserChatQueue','required':![],'hooks':!![]}),db[_0xf07975('0xc6')]['belongsToMany'](db[_0xf07975('0x163')],{'as':'FaxQueues','through':_0xf07975('0x179'),'required':![]}),db['User'][_0xf07975('0x19c')](db['SmsQueue'],{'as':_0xf07975('0x32'),'through':_0xf07975('0x9c'),'required':![]}),db[_0xf07975('0xc6')]['belongsToMany'](db[_0xf07975('0x14e')],{'as':_0xf07975('0x20'),'through':_0xf07975('0x15d'),'required':![]}),db[_0xf07975('0xc6')][_0xf07975('0x19c')](db[_0xf07975('0x10b')],{'as':'WhatsappQueues','through':_0xf07975('0x1da'),'required':![]}),db[_0xf07975('0xc6')][_0xf07975('0x19c')](db[_0xf07975('0x1d5')],{'through':'cm_user_has_lists'}),db[_0xf07975('0xc6')][_0xf07975('0x19c')](db[_0xf07975('0xc5')],{'as':_0xf07975('0xc2'),'through':_0xf07975('0xcb'),'required':![]}),db[_0xf07975('0xc6')][_0xf07975('0x19c')](db[_0xf07975('0xd9')],{'as':_0xf07975('0x139'),'through':_0xf07975('0x62')}),db['User'][_0xf07975('0x19c')](db[_0xf07975('0x1ef')],{'as':_0xf07975('0x6d'),'through':_0xf07975('0x93')}),db['User'][_0xf07975('0x19c')](db[_0xf07975('0xd8')],{'as':_0xf07975('0x69'),'through':_0xf07975('0x15e')}),db['User'][_0xf07975('0x19c')](db[_0xf07975('0x1d3')],{'as':'OpenchannelAccounts','through':_0xf07975('0x1db')}),db['User'][_0xf07975('0x19c')](db['SmsAccount'],{'as':_0xf07975('0x1d9'),'through':'user_has_sms_accounts'}),db['User'][_0xf07975('0x19c')](db[_0xf07975('0x11c')],{'as':'WhatsappAccounts','through':_0xf07975('0x8c')}),db[_0xf07975('0xc6')][_0xf07975('0x19c')](db[_0xf07975('0x5e')],{'as':'SquareProjects','through':_0xf07975('0x1cb')}),db[_0xf07975('0x4c')][_0xf07975('0x122')](db['VoiceExtension'],{'as':_0xf07975('0x72'),'onDelete':_0xf07975('0x1ea'),'foreignKey':'ChanSpyId'}),db['VoiceContext'][_0xf07975('0x122')](db[_0xf07975('0x97')],{'onDelete':_0xf07975('0x1ea')}),db[_0xf07975('0x97')][_0xf07975('0x122')](db[_0xf07975('0x97')],{'as':_0xf07975('0x6c'),'onDelete':_0xf07975('0x1ea')}),db['VoiceMusicOnHold']['belongsToMany'](db['Sound'],{'as':_0xf07975('0x53'),'through':'moh_has_sounds'}),db[_0xf07975('0x198')][_0xf07975('0x122')](db[_0xf07975('0x64')],{'as':_0xf07975('0x59'),'foreignKey':_0xf07975('0x182')}),db[_0xf07975('0x198')][_0xf07975('0x122')](db[_0xf07975('0x70')],{'as':_0xf07975('0x86'),'foreignKey':_0xf07975('0x182')}),db[_0xf07975('0x198')][_0xf07975('0x122')](db[_0xf07975('0x1d')],{'as':_0xf07975('0x38'),'foreignKey':_0xf07975('0x182')}),db[_0xf07975('0x198')][_0xf07975('0x122')](db[_0xf07975('0x134')],{'as':'HopperHistories','foreignKey':'VoiceQueueId'}),db[_0xf07975('0x198')][_0xf07975('0x122')](db[_0xf07975('0x150')],{'as':_0xf07975('0x150'),'foreignKey':_0xf07975('0x182')}),db[_0xf07975('0x198')][_0xf07975('0x122')](db[_0xf07975('0x7a')],{'as':_0xf07975('0x67'),'foreignKey':_0xf07975('0x182')}),db[_0xf07975('0x198')][_0xf07975('0x122')](db['JscriptySessionReport'],{'as':_0xf07975('0x1b2'),'foreignKey':_0xf07975('0x182')}),db[_0xf07975('0x198')][_0xf07975('0xef')](db['Trunk'],{'as':_0xf07975('0x4d'),'foreignKey':_0xf07975('0xeb')}),db['VoiceQueue'][_0xf07975('0xef')](db[_0xf07975('0x4d')],{'as':_0xf07975('0x1a6'),'foreignKey':'TrunkBackupId'}),db[_0xf07975('0x198')][_0xf07975('0xef')](db[_0xf07975('0xd5')],{'as':_0xf07975('0xd5'),'foreignKey':_0xf07975('0x1b1')}),db[_0xf07975('0x198')]['belongsTo'](db['Pause'],{'as':_0xf07975('0x9'),'foreignKey':'mandatoryDispositionPauseId'}),db['VoiceQueue']['belongsToMany'](db['CmList'],{'as':'Lists','through':_0xf07975('0x18b')}),db[_0xf07975('0x198')][_0xf07975('0x19c')](db[_0xf07975('0xc6')],{'as':_0xf07975('0x190'),'through':_0xf07975('0x1c8')}),db[_0xf07975('0x198')][_0xf07975('0x19c')](db[_0xf07975('0x123')],{'as':_0xf07975('0x13e'),'through':_0xf07975('0x87')}),db[_0xf07975('0x198')][_0xf07975('0x19c')](db['CmList'],{'as':_0xf07975('0x19b'),'through':_0xf07975('0x188')}),db[_0xf07975('0x172')]['belongsTo'](db[_0xf07975('0xc6')],{'as':_0xf07975('0xc6'),'foreignKey':_0xf07975('0x3b')}),db[_0xf07975('0x19d')][_0xf07975('0xef')](db[_0xf07975('0xc6')],{'as':'User','foreignKey':_0xf07975('0x3b')}),db[_0xf07975('0x1a9')]['hasMany'](db['VoiceMailMessage'],{'as':'Messages','onDelete':_0xf07975('0x1ea'),'foreignKey':_0xf07975('0x1d6'),'sourceKey':_0xf07975('0x85')}),db[_0xf07975('0x1b')][_0xf07975('0xef')](db[_0xf07975('0x1a9')],{'foreignKey':'mailboxuser','targetKey':_0xf07975('0x85')}),db[_0xf07975('0x1a')]['hasMany'](db[_0xf07975('0xfc')],{'as':_0xf07975('0x7e'),'foreignKey':'uniqueid','constraints':![]}),db[_0xf07975('0x1a')][_0xf07975('0x122')](db[_0xf07975('0xc0')],{'as':_0xf07975('0x111'),'foreignKey':_0xf07975('0x192'),'constraints':![]}),db['VoiceCallReport'][_0xf07975('0xef')](db['User'],{'as':_0xf07975('0xc6'),'foreignKey':_0xf07975('0x3b')}),db[_0xf07975('0x1a')]['belongsTo'](db[_0xf07975('0x14a')],{'as':_0xf07975('0x145'),'foreignKey':_0xf07975('0xf')}),db[_0xf07975('0xd8')][_0xf07975('0x194')](db[_0xf07975('0x152')],{'as':'Imap','foreignKey':_0xf07975('0xb2'),'onDelete':_0xf07975('0x1ea')}),db[_0xf07975('0xd8')][_0xf07975('0x194')](db['MailServerOut'],{'as':'Smtp','foreignKey':_0xf07975('0xb2'),'onDelete':'cascade'}),db['MailAccount'][_0xf07975('0x122')](db[_0xf07975('0x36')],{'as':_0xf07975('0xe6'),'foreignKey':'MailAccountId'}),db[_0xf07975('0xd8')][_0xf07975('0x122')](db['CannedAnswer'],{'as':'Answers','foreignKey':_0xf07975('0xb2')}),db['MailAccount'][_0xf07975('0x122')](db[_0xf07975('0x124')],{'as':_0xf07975('0x185'),'foreignKey':_0xf07975('0xb2')}),db[_0xf07975('0xd8')][_0xf07975('0x122')](db[_0xf07975('0xd2')],{'as':'Interactions'}),db[_0xf07975('0xd8')][_0xf07975('0x122')](db[_0xf07975('0xbd')],{'as':_0xf07975('0x6c')}),db[_0xf07975('0xd8')][_0xf07975('0xef')](db[_0xf07975('0x1d5')],{'as':_0xf07975('0x12e'),'foreignKey':_0xf07975('0x1e5')}),db[_0xf07975('0xd8')][_0xf07975('0xef')](db['Template'],{'as':'Template','foreignKey':'TemplateId'}),db[_0xf07975('0xd8')][_0xf07975('0xef')](db[_0xf07975('0xff')],{'as':_0xf07975('0x9'),'foreignKey':_0xf07975('0x137')}),db[_0xf07975('0xd8')]['belongsToMany'](db[_0xf07975('0xc6')],{'as':_0xf07975('0x190'),'through':_0xf07975('0x15e')}),db[_0xf07975('0x33')]['belongsToMany'](db['User'],{'as':_0xf07975('0x190'),'through':_0xf07975('0x5c')}),db[_0xf07975('0x33')][_0xf07975('0x19c')](db['Team'],{'through':_0xf07975('0x1e8'),'as':_0xf07975('0x13e')}),db[_0xf07975('0xd2')][_0xf07975('0x122')](db[_0xf07975('0x124')],{'as':_0xf07975('0x185'),'onDelete':_0xf07975('0x1ea'),'foreignKey':_0xf07975('0x30')}),db['MailInteraction'][_0xf07975('0xef')](db['MailAccount'],{'as':_0xf07975('0x22'),'foreignKey':'MailAccountId'}),db['MailInteraction'][_0xf07975('0xef')](db[_0xf07975('0x14a')],{'as':_0xf07975('0x145'),'foreignKey':_0xf07975('0xf')}),db['MailInteraction'][_0xf07975('0xef')](db[_0xf07975('0xc6')],{'as':_0xf07975('0x5'),'foreignKey':_0xf07975('0x3b')}),db[_0xf07975('0xd2')]['belongsToMany'](db['Tag'],{'through':'mail_interaction_has_tags','as':_0xf07975('0x12a')}),db[_0xf07975('0xd2')][_0xf07975('0x19c')](db[_0xf07975('0x31')],{'through':_0xf07975('0x110'),'as':_0xf07975('0x2c')}),db['MailInteraction'][_0xf07975('0x19c')](db[_0xf07975('0xc6')],{'as':'Users','through':'user_has_mail_interactions','foreignKey':'MailInteractionId'}),db[_0xf07975('0x124')][_0xf07975('0x122')](db['Attachment'],{'as':_0xf07975('0xa0'),'onDelete':_0xf07975('0x1ea')}),db[_0xf07975('0x124')][_0xf07975('0xef')](db[_0xf07975('0xc6')],{'as':'User'}),db['MailMessage']['belongsTo'](db[_0xf07975('0x14a')],{'onDelete':_0xf07975('0x1ea'),'as':'Contact'}),db['MailMessage']['belongsTo'](db[_0xf07975('0xd2')],{'as':_0xf07975('0x109'),'foreignKey':'MailInteractionId'}),db[_0xf07975('0x124')][_0xf07975('0xef')](db[_0xf07975('0xd8')],{'as':_0xf07975('0x22'),'foreignKey':'MailAccountId'}),db[_0xf07975('0xbd')][_0xf07975('0xef')](db[_0xf07975('0xc6')],{'onDelete':_0xf07975('0x2f')}),db[_0xf07975('0xbd')][_0xf07975('0xef')](db[_0xf07975('0x33')],{'onDelete':_0xf07975('0x2f')}),db[_0xf07975('0xbd')][_0xf07975('0xef')](db[_0xf07975('0xd8')],{'onDelete':_0xf07975('0x2f')}),db[_0xf07975('0xbd')][_0xf07975('0xef')](db[_0xf07975('0xd5')],{'onDelete':_0xf07975('0x2f'),'foreignKey':'IntervalId'}),db[_0xf07975('0xbd')][_0xf07975('0xef')](db[_0xf07975('0x31')],{'onDelete':_0xf07975('0x2f'),'foreignKey':_0xf07975('0xe0')}),db[_0xf07975('0x1bd')][_0xf07975('0xef')](db[_0xf07975('0xd8')],{}),db[_0xf07975('0x1bd')]['belongsTo'](db[_0xf07975('0x1d5')],{'as':_0xf07975('0x12e'),'foreignKey':_0xf07975('0x1e5')}),db['MailQueueReport']['belongsTo'](db[_0xf07975('0x14a')],{'as':_0xf07975('0x145'),'foreignKey':_0xf07975('0xf')}),db['MailQueueReport']['belongsTo'](db[_0xf07975('0xd2')],{}),db['MailQueueReport']['belongsTo'](db['MailMessage'],{}),db[_0xf07975('0x1bd')][_0xf07975('0xef')](db['User'],{}),db['MailQueueReport']['belongsTo'](db[_0xf07975('0x33')],{}),db[_0xf07975('0x1a5')]['hasMany'](db[_0xf07975('0xac')],{'as':_0xf07975('0x10c'),'onDelete':_0xf07975('0x1ea')}),db['FaxAccount'][_0xf07975('0x122')](db['Disposition'],{'as':_0xf07975('0xe6'),'foreignKey':_0xf07975('0x184')}),db[_0xf07975('0x1ef')]['hasMany'](db['CannedAnswer'],{'as':_0xf07975('0x169'),'foreignKey':'FaxAccountId'}),db[_0xf07975('0x1ef')][_0xf07975('0x122')](db[_0xf07975('0x73')],{'as':_0xf07975('0x57')}),db['FaxAccount']['hasMany'](db[_0xf07975('0x2b')],{'as':_0xf07975('0x6c')}),db[_0xf07975('0x1ef')][_0xf07975('0x122')](db[_0xf07975('0x97')],{'as':_0xf07975('0x14b'),'onDelete':_0xf07975('0x1ea')}),db[_0xf07975('0x1ef')]['hasMany'](db[_0xf07975('0xda')],{'as':_0xf07975('0x185')}),db[_0xf07975('0x1ef')]['belongsTo'](db['Trunk'],{'as':'Trunk'}),db[_0xf07975('0x1ef')][_0xf07975('0xef')](db['CmList'],{'as':_0xf07975('0x12e'),'foreignKey':_0xf07975('0x1e5')}),db[_0xf07975('0x1ef')]['belongsTo'](db[_0xf07975('0xff')],{'as':_0xf07975('0x9'),'foreignKey':_0xf07975('0x137')}),db[_0xf07975('0x1ef')][_0xf07975('0x19c')](db['User'],{'as':_0xf07975('0x190'),'through':_0xf07975('0x93')}),db[_0xf07975('0x2b')][_0xf07975('0xef')](db['User'],{'onDelete':'restrict'}),db[_0xf07975('0x2b')]['belongsTo'](db[_0xf07975('0x163')],{'onDelete':_0xf07975('0x2f')}),db['FaxApplication'][_0xf07975('0xef')](db[_0xf07975('0x1ef')],{'onDelete':_0xf07975('0x2f')}),db[_0xf07975('0x2b')][_0xf07975('0xef')](db['Tag'],{'onDelete':'restrict','foreignKey':'TagId'}),db[_0xf07975('0x73')][_0xf07975('0x122')](db[_0xf07975('0xda')],{'as':'Messages','onDelete':_0xf07975('0x1ea'),'foreignKey':_0xf07975('0x1b3')}),db[_0xf07975('0x73')][_0xf07975('0xef')](db[_0xf07975('0x1ef')],{'as':'Account','foreignKey':_0xf07975('0x184')}),db[_0xf07975('0x73')][_0xf07975('0xef')](db['CmContact'],{'as':_0xf07975('0x145'),'foreignKey':_0xf07975('0xf')}),db[_0xf07975('0x73')][_0xf07975('0xef')](db[_0xf07975('0xc6')],{'as':_0xf07975('0x5'),'foreignKey':'UserId'}),db[_0xf07975('0x73')][_0xf07975('0x19c')](db['Tag'],{'through':'fax_interaction_has_tags','as':'Tags'}),db[_0xf07975('0x73')][_0xf07975('0x19c')](db[_0xf07975('0x31')],{'through':'fax_interaction_has_tags','as':_0xf07975('0x2c')}),db[_0xf07975('0x73')][_0xf07975('0x19c')](db[_0xf07975('0xc6')],{'as':_0xf07975('0x196'),'through':_0xf07975('0x49'),'foreignKey':_0xf07975('0x1b3')}),db['FaxMessage'][_0xf07975('0xef')](db[_0xf07975('0xc6')],{'onDelete':_0xf07975('0x1ea'),'as':'User'}),db[_0xf07975('0xda')][_0xf07975('0xef')](db['FaxInteraction'],{'as':_0xf07975('0x109'),'foreignKey':_0xf07975('0x1b3')}),db[_0xf07975('0xda')][_0xf07975('0xef')](db['CmContact'],{'onDelete':'cascade','as':_0xf07975('0x145')}),db[_0xf07975('0xda')]['belongsTo'](db['Attachment'],{'as':_0xf07975('0x1de'),'foreignKey':'AttachmentId'}),db[_0xf07975('0xda')][_0xf07975('0xef')](db[_0xf07975('0x1ef')],{'as':_0xf07975('0x22'),'foreignKey':_0xf07975('0x184')}),db[_0xf07975('0x163')][_0xf07975('0x19c')](db[_0xf07975('0xc6')],{'as':_0xf07975('0x190'),'through':_0xf07975('0x179')}),db['FaxQueue'][_0xf07975('0x19c')](db[_0xf07975('0x123')],{'through':_0xf07975('0x1f'),'as':'Teams'}),db[_0xf07975('0x9e')]['belongsTo'](db[_0xf07975('0x1ef')],{}),db[_0xf07975('0x9e')][_0xf07975('0xef')](db[_0xf07975('0x1d5')],{'as':_0xf07975('0x12e'),'foreignKey':_0xf07975('0x1e5')}),db['FaxQueueReport'][_0xf07975('0xef')](db[_0xf07975('0x14a')],{'as':'Contact','foreignKey':_0xf07975('0xf')}),db['FaxQueueReport'][_0xf07975('0xef')](db[_0xf07975('0x73')],{}),db[_0xf07975('0x9e')][_0xf07975('0xef')](db[_0xf07975('0xda')],{}),db['FaxQueueReport'][_0xf07975('0xef')](db[_0xf07975('0xc6')],{}),db[_0xf07975('0x9e')][_0xf07975('0xef')](db[_0xf07975('0x163')],{}),db['SmsAccount'][_0xf07975('0x122')](db[_0xf07975('0x36')],{'as':_0xf07975('0xe6'),'foreignKey':_0xf07975('0x1e1')}),db[_0xf07975('0xd6')][_0xf07975('0x122')](db['CannedAnswer'],{'as':'Answers','foreignKey':_0xf07975('0x1e1')}),db[_0xf07975('0xd6')][_0xf07975('0x122')](db['SmsMessage'],{'as':_0xf07975('0x185'),'foreignKey':_0xf07975('0x1e1')}),db[_0xf07975('0xd6')][_0xf07975('0x122')](db['SmsInteraction'],{'as':_0xf07975('0x57')}),db[_0xf07975('0xd6')][_0xf07975('0x122')](db[_0xf07975('0xb')],{'as':'Applications'}),db['SmsAccount'][_0xf07975('0xef')](db['CmList'],{'as':_0xf07975('0x12e'),'foreignKey':'ListId'}),db[_0xf07975('0xd6')][_0xf07975('0xef')](db[_0xf07975('0xff')],{'as':_0xf07975('0x9'),'foreignKey':_0xf07975('0x137')}),db[_0xf07975('0xd6')][_0xf07975('0x19c')](db[_0xf07975('0xc6')],{'as':_0xf07975('0x190'),'through':_0xf07975('0x12b')}),db[_0xf07975('0xb')]['belongsTo'](db[_0xf07975('0xc6')],{'onDelete':_0xf07975('0x2f')}),db[_0xf07975('0xb')]['belongsTo'](db[_0xf07975('0x174')],{'onDelete':'restrict'}),db['SmsApplication'][_0xf07975('0xef')](db[_0xf07975('0xd6')],{'onDelete':'restrict'}),db[_0xf07975('0xb')]['belongsTo'](db[_0xf07975('0xd5')],{'onDelete':_0xf07975('0x2f'),'foreignKey':_0xf07975('0x1b1')}),db['SmsApplication'][_0xf07975('0xef')](db['Tag'],{'onDelete':_0xf07975('0x2f'),'foreignKey':_0xf07975('0xe0')}),db['SmsInteraction'][_0xf07975('0x122')](db[_0xf07975('0xe')],{'as':_0xf07975('0x185'),'onDelete':_0xf07975('0x1ea'),'foreignKey':_0xf07975('0x1aa')}),db[_0xf07975('0x118')][_0xf07975('0xef')](db[_0xf07975('0xd6')],{'as':'Account','foreignKey':_0xf07975('0x1e1')}),db[_0xf07975('0x118')]['belongsTo'](db['CmContact'],{'as':'Contact','foreignKey':'ContactId'}),db[_0xf07975('0x118')][_0xf07975('0xef')](db[_0xf07975('0xc6')],{'as':'Owner','foreignKey':'UserId'}),db[_0xf07975('0x118')][_0xf07975('0x19c')](db[_0xf07975('0x31')],{'through':'sms_interaction_has_tags','as':_0xf07975('0x12a')}),db[_0xf07975('0x118')][_0xf07975('0x19c')](db['Tag'],{'through':_0xf07975('0x4f'),'as':_0xf07975('0x2c')}),db[_0xf07975('0x118')][_0xf07975('0x19c')](db['User'],{'as':_0xf07975('0x196'),'through':_0xf07975('0x43'),'foreignKey':'SmsInteractionId'}),db[_0xf07975('0xe')][_0xf07975('0xef')](db[_0xf07975('0xc6')],{'as':'User'}),db[_0xf07975('0xe')]['belongsTo'](db[_0xf07975('0x14a')],{'onDelete':'cascade','as':_0xf07975('0x145')}),db[_0xf07975('0xe')][_0xf07975('0xef')](db[_0xf07975('0x118')],{'onDelete':'cascade','as':'Interaction','foreignKey':_0xf07975('0x1aa')}),db[_0xf07975('0xe')]['belongsTo'](db[_0xf07975('0xd6')],{'as':_0xf07975('0x22'),'foreignKey':_0xf07975('0x1e1')}),db['SmsQueue'][_0xf07975('0x19c')](db[_0xf07975('0xc6')],{'as':_0xf07975('0x190'),'through':_0xf07975('0x9c'),'foreignKey':_0xf07975('0xc1')}),db[_0xf07975('0x174')]['belongsToMany'](db[_0xf07975('0x123')],{'through':_0xf07975('0x175'),'as':_0xf07975('0x13e')}),db[_0xf07975('0x1d3')][_0xf07975('0x122')](db[_0xf07975('0x36')],{'as':_0xf07975('0xe6'),'foreignKey':_0xf07975('0x1e0')}),db[_0xf07975('0x1d3')][_0xf07975('0x122')](db[_0xf07975('0x11f')],{'as':_0xf07975('0x169'),'foreignKey':_0xf07975('0x1e0')}),db[_0xf07975('0x1d3')][_0xf07975('0x122')](db[_0xf07975('0x17b')],{'as':'Interactions','foreignKey':_0xf07975('0x1e0')}),db[_0xf07975('0x1d3')][_0xf07975('0x122')](db['OpenchannelMessage'],{'as':_0xf07975('0x185'),'foreignKey':_0xf07975('0x1e0')}),db[_0xf07975('0x1d3')][_0xf07975('0x122')](db[_0xf07975('0xf3')],{'as':_0xf07975('0x6c'),'foreignKey':_0xf07975('0x1e0')}),db['OpenchannelAccount'][_0xf07975('0xef')](db['CmList'],{'as':_0xf07975('0x12e'),'foreignKey':'ListId'}),db[_0xf07975('0x1d3')][_0xf07975('0xef')](db[_0xf07975('0xff')],{'as':_0xf07975('0x9'),'foreignKey':_0xf07975('0x137')}),db[_0xf07975('0x1d3')][_0xf07975('0x19c')](db[_0xf07975('0xc6')],{'as':_0xf07975('0x190'),'through':'user_has_openchannel_accounts'}),db[_0xf07975('0xf3')][_0xf07975('0xef')](db['User'],{'onDelete':_0xf07975('0x2f')}),db['OpenchannelApplication'][_0xf07975('0xef')](db[_0xf07975('0x14e')],{'onDelete':'restrict','foreignKey':'OpenchannelQueueId'}),db['OpenchannelApplication'][_0xf07975('0xef')](db[_0xf07975('0x1d3')],{'onDelete':'restrict','foreignKey':_0xf07975('0x1e0')}),db['OpenchannelApplication']['belongsTo'](db[_0xf07975('0xd5')],{'onDelete':_0xf07975('0x2f'),'foreignKey':_0xf07975('0x1b1')}),db[_0xf07975('0xf3')][_0xf07975('0xef')](db[_0xf07975('0x31')],{'onDelete':_0xf07975('0x2f'),'foreignKey':_0xf07975('0xe0')}),db['OpenchannelInteraction'][_0xf07975('0x122')](db[_0xf07975('0x1bc')],{'as':_0xf07975('0x185'),'onDelete':_0xf07975('0x1ea'),'foreignKey':_0xf07975('0x15a')}),db[_0xf07975('0x17b')][_0xf07975('0xef')](db[_0xf07975('0x1d3')],{'as':'Account','foreignKey':_0xf07975('0x1e0')}),db[_0xf07975('0x17b')]['belongsTo'](db['CmContact'],{'as':_0xf07975('0x145'),'foreignKey':_0xf07975('0xf')}),db[_0xf07975('0x17b')][_0xf07975('0xef')](db['User'],{'as':_0xf07975('0x5'),'foreignKey':_0xf07975('0x3b')}),db[_0xf07975('0x17b')][_0xf07975('0x19c')](db[_0xf07975('0x31')],{'through':_0xf07975('0x1dc'),'as':_0xf07975('0x12a')}),db[_0xf07975('0x17b')][_0xf07975('0x19c')](db[_0xf07975('0x31')],{'through':_0xf07975('0x1dc'),'as':_0xf07975('0x2c')}),db[_0xf07975('0x17b')][_0xf07975('0x19c')](db['User'],{'as':'Users','through':_0xf07975('0x1d1'),'foreignKey':'OpenchannelInteractionId'}),db[_0xf07975('0x1bc')][_0xf07975('0xef')](db[_0xf07975('0xc6')],{'onDelete':_0xf07975('0x1ea'),'as':_0xf07975('0xc6')}),db[_0xf07975('0x1bc')][_0xf07975('0xef')](db[_0xf07975('0x14a')],{'onDelete':_0xf07975('0x1ea'),'as':_0xf07975('0x145')}),db['OpenchannelMessage'][_0xf07975('0xef')](db[_0xf07975('0x17b')],{'onDelete':_0xf07975('0x1ea'),'as':_0xf07975('0x109'),'foreignKey':_0xf07975('0x15a')}),db[_0xf07975('0x1bc')][_0xf07975('0xef')](db[_0xf07975('0x1de')],{'as':_0xf07975('0x1de'),'foreignKey':_0xf07975('0x5d')}),db[_0xf07975('0x1bc')][_0xf07975('0xef')](db[_0xf07975('0x1d3')],{'as':_0xf07975('0x22'),'foreignKey':_0xf07975('0x1e0')}),db[_0xf07975('0x14e')][_0xf07975('0x19c')](db[_0xf07975('0xc6')],{'as':_0xf07975('0x190'),'through':_0xf07975('0x15d'),'foreignKey':'OpenchannelQueueId'}),db[_0xf07975('0x14e')][_0xf07975('0x19c')](db[_0xf07975('0x123')],{'through':_0xf07975('0x50'),'as':'Teams'}),db[_0xf07975('0xd9')][_0xf07975('0x122')](db[_0xf07975('0x36')],{'as':'Dispositions','foreignKey':'ChatWebsiteId'}),db[_0xf07975('0xd9')][_0xf07975('0x122')](db[_0xf07975('0x11f')],{'as':_0xf07975('0x169'),'foreignKey':_0xf07975('0x160')}),db[_0xf07975('0xd9')][_0xf07975('0x122')](db[_0xf07975('0x16b')],{'as':'ProactiveActions'}),db[_0xf07975('0xd9')][_0xf07975('0x122')](db[_0xf07975('0x1cd')],{'as':_0xf07975('0x57')}),db[_0xf07975('0xd9')][_0xf07975('0x122')](db[_0xf07975('0x167')],{'as':_0xf07975('0x6c')}),db[_0xf07975('0xd9')][_0xf07975('0x122')](db[_0xf07975('0x1c4')],{'as':_0xf07975('0x185')}),db[_0xf07975('0xd9')][_0xf07975('0xef')](db[_0xf07975('0x1d5')],{'as':'List','foreignKey':'ListId'}),db[_0xf07975('0xd9')][_0xf07975('0xef')](db[_0xf07975('0xd5')],{'as':_0xf07975('0xd5'),'foreignKey':'IntervalId'}),db[_0xf07975('0xd9')][_0xf07975('0xef')](db[_0xf07975('0xff')],{'as':_0xf07975('0x9'),'foreignKey':'mandatoryDispositionPauseId'}),db[_0xf07975('0xd9')]['belongsToMany'](db[_0xf07975('0xc6')],{'as':'Agents','through':_0xf07975('0x62')}),db[_0xf07975('0x151')]['belongsTo'](db[_0xf07975('0x1d3')],{}),db['OpenchannelQueueReport'][_0xf07975('0xef')](db[_0xf07975('0x1d5')],{'as':_0xf07975('0x12e'),'foreignKey':'ListId'}),db['OpenchannelQueueReport'][_0xf07975('0xef')](db[_0xf07975('0x14a')],{'as':_0xf07975('0x145'),'foreignKey':_0xf07975('0xf')}),db[_0xf07975('0x151')][_0xf07975('0xef')](db['OpenchannelInteraction'],{}),db['OpenchannelQueueReport']['belongsTo'](db['OpenchannelMessage'],{}),db[_0xf07975('0x151')][_0xf07975('0xef')](db[_0xf07975('0xc6')],{}),db['OpenchannelQueueReport']['belongsTo'](db[_0xf07975('0x14e')],{}),db[_0xf07975('0x167')]['belongsTo'](db[_0xf07975('0xc6')],{'as':'Agent','foreignKey':_0xf07975('0x3b'),'onDelete':_0xf07975('0x2f')}),db[_0xf07975('0x167')][_0xf07975('0xef')](db[_0xf07975('0x193')],{'as':_0xf07975('0xa9'),'foreignKey':_0xf07975('0x74'),'onDelete':_0xf07975('0x2f')}),db[_0xf07975('0x167')]['belongsTo'](db[_0xf07975('0xd9')],{'as':_0xf07975('0x1c6'),'foreignKey':'ChatWebsiteId','onDelete':_0xf07975('0x2f')}),db[_0xf07975('0x167')][_0xf07975('0xef')](db[_0xf07975('0x31')],{'onDelete':_0xf07975('0x2f'),'foreignKey':_0xf07975('0xe0')}),db[_0xf07975('0x1cd')][_0xf07975('0x122')](db[_0xf07975('0x1c4')],{'as':'Messages','onDelete':_0xf07975('0x1ea'),'foreignKey':_0xf07975('0x1a8')}),db[_0xf07975('0x1cd')][_0xf07975('0xef')](db[_0xf07975('0xd9')],{'as':_0xf07975('0x22'),'foreignKey':_0xf07975('0x160')}),db[_0xf07975('0x1cd')][_0xf07975('0xef')](db['CmContact'],{'as':_0xf07975('0x145'),'foreignKey':_0xf07975('0xf')}),db[_0xf07975('0x1cd')][_0xf07975('0xef')](db[_0xf07975('0xc6')],{'as':_0xf07975('0x5'),'foreignKey':'UserId'}),db[_0xf07975('0x1cd')][_0xf07975('0x19c')](db['Tag'],{'through':'chat_interaction_has_tags','as':_0xf07975('0x12a')}),db[_0xf07975('0x1cd')][_0xf07975('0x19c')](db[_0xf07975('0x31')],{'through':'chat_interaction_has_tags','as':_0xf07975('0x2c')}),db[_0xf07975('0x1cd')][_0xf07975('0x19c')](db['User'],{'as':_0xf07975('0x196'),'through':_0xf07975('0x166'),'foreignKey':_0xf07975('0x1a8')}),db[_0xf07975('0x1c4')]['belongsTo'](db[_0xf07975('0xc6')],{'onDelete':_0xf07975('0x1ea'),'as':_0xf07975('0xc6')}),db[_0xf07975('0x1c4')][_0xf07975('0xef')](db[_0xf07975('0x14a')],{'onDelete':_0xf07975('0x1ea'),'as':_0xf07975('0x145'),'foreignKey':'ContactId'}),db[_0xf07975('0x1c4')]['belongsTo'](db['ChatInteraction'],{'onDelete':_0xf07975('0x1ea'),'as':_0xf07975('0x109'),'foreignKey':'ChatInteractionId'}),db['ChatMessage'][_0xf07975('0xef')](db[_0xf07975('0x1de')],{'as':_0xf07975('0x1de'),'foreignKey':_0xf07975('0x5d')}),db[_0xf07975('0x1c4')][_0xf07975('0xef')](db[_0xf07975('0xd9')],{'as':_0xf07975('0x22'),'foreignKey':_0xf07975('0x160')}),db[_0xf07975('0x19a')][_0xf07975('0xef')](db['CmContact'],{'onDelete':_0xf07975('0x1ea'),'as':_0xf07975('0x145'),'foreignKey':_0xf07975('0xf')}),db[_0xf07975('0x19a')][_0xf07975('0xef')](db[_0xf07975('0xd9')],{'as':_0xf07975('0x22'),'foreignKey':_0xf07975('0x160')}),db[_0xf07975('0x193')][_0xf07975('0x19c')](db['User'],{'as':'Agents','through':_0xf07975('0xd3'),'hooks':!![]}),db[_0xf07975('0x193')][_0xf07975('0x19c')](db[_0xf07975('0x123')],{'through':_0xf07975('0xfe'),'as':'Teams'}),db['ChatGroup'][_0xf07975('0x122')](db[_0xf07975('0x180')],{'as':_0xf07975('0x185'),'foreignKey':_0xf07975('0x76'),'onDelete':_0xf07975('0x1ea')}),db[_0xf07975('0x199')][_0xf07975('0x19c')](db[_0xf07975('0xc6')],{'as':_0xf07975('0x59'),'through':_0xf07975('0x1b0')}),db[_0xf07975('0x16b')][_0xf07975('0xef')](db[_0xf07975('0xd9')],{'as':_0xf07975('0x1c6'),'foreignKey':_0xf07975('0x160')}),db[_0xf07975('0x19e')]['hasMany'](db['CmContact'],{'as':_0xf07975('0x9b'),'foreignKey':_0xf07975('0x142')}),db['CmContact'][_0xf07975('0x122')](db[_0xf07975('0x70')],{'as':_0xf07975('0x86'),'foreignKey':_0xf07975('0xf')}),db['CmContact'][_0xf07975('0x122')](db[_0xf07975('0x1d')],{'as':_0xf07975('0x38'),'foreignKey':'ContactId'}),db['CmContact']['hasMany'](db[_0xf07975('0x134')],{'as':_0xf07975('0x47'),'foreignKey':_0xf07975('0xf')}),db[_0xf07975('0x14a')][_0xf07975('0x122')](db[_0xf07975('0x150')],{'as':_0xf07975('0x150'),'foreignKey':_0xf07975('0xf')}),db[_0xf07975('0x14a')][_0xf07975('0x122')](db[_0xf07975('0x105')],{'as':_0xf07975('0x1b2'),'foreignKey':_0xf07975('0xf')}),db[_0xf07975('0x14a')][_0xf07975('0x122')](db[_0xf07975('0x17b')],{'as':_0xf07975('0x1df'),'foreignKey':_0xf07975('0xf'),'onDelete':_0xf07975('0x2f')}),db['CmContact'][_0xf07975('0x122')](db['ChatInteraction'],{'as':_0xf07975('0x15b'),'foreignKey':_0xf07975('0xf'),'onDelete':_0xf07975('0x2f')}),db['CmContact'][_0xf07975('0x122')](db[_0xf07975('0x118')],{'as':'SmsInteractions','foreignKey':_0xf07975('0xf'),'onDelete':_0xf07975('0x2f')}),db[_0xf07975('0x14a')][_0xf07975('0x122')](db[_0xf07975('0x73')],{'as':_0xf07975('0x16e'),'foreignKey':_0xf07975('0xf'),'onDelete':_0xf07975('0x2f')}),db[_0xf07975('0x14a')][_0xf07975('0x122')](db[_0xf07975('0xd2')],{'as':'MailInteractions','foreignKey':_0xf07975('0xf'),'onDelete':_0xf07975('0x2f')}),db[_0xf07975('0x14a')][_0xf07975('0xef')](db[_0xf07975('0x19e')],{'as':_0xf07975('0xdf'),'foreignKey':_0xf07975('0x142')}),db[_0xf07975('0x14a')]['belongsTo'](db[_0xf07975('0x1d5')],{'as':_0xf07975('0x12e'),'foreignKey':_0xf07975('0x1e5'),'onDelete':'cascade'}),db[_0xf07975('0x14a')][_0xf07975('0x19c')](db[_0xf07975('0xc6')],{'as':_0xf07975('0x196'),'through':_0xf07975('0x6f')}),db[_0xf07975('0x14a')][_0xf07975('0x19c')](db[_0xf07975('0x31')],{'as':_0xf07975('0x12a'),'through':_0xf07975('0x8')}),db[_0xf07975('0x14a')][_0xf07975('0x19c')](db[_0xf07975('0x31')],{'through':_0xf07975('0x8'),'as':_0xf07975('0x2c')}),db[_0xf07975('0x70')][_0xf07975('0xef')](db[_0xf07975('0x14a')],{'as':_0xf07975('0x145'),'foreignKey':_0xf07975('0xf'),'onDelete':_0xf07975('0x1ea')}),db['CmHopper']['belongsTo'](db[_0xf07975('0x1d5')],{'as':_0xf07975('0x12e'),'foreignKey':_0xf07975('0x1e5'),'onDelete':_0xf07975('0x1ea')}),db[_0xf07975('0x70')][_0xf07975('0xef')](db[_0xf07975('0xc6')],{'as':'Agent','foreignKey':'UserId'}),db[_0xf07975('0x70')]['belongsTo'](db[_0xf07975('0x198')],{'as':_0xf07975('0xa9'),'foreignKey':_0xf07975('0x182'),'onDelete':'cascade'}),db[_0xf07975('0x70')][_0xf07975('0xef')](db[_0xf07975('0x131')],{'as':_0xf07975('0x131'),'foreignKey':_0xf07975('0x95'),'onDelete':_0xf07975('0x1ea')}),db['CmHopper']['belongsTo'](db['User'],{'as':_0xf07975('0x5'),'foreignKey':_0xf07975('0xed')}),db['CmHopperBlack'][_0xf07975('0xef')](db[_0xf07975('0x14a')],{'as':_0xf07975('0x145'),'foreignKey':_0xf07975('0xf'),'onDelete':_0xf07975('0x1ea')}),db[_0xf07975('0x7a')][_0xf07975('0xef')](db[_0xf07975('0x1d5')],{'as':_0xf07975('0x12e'),'foreignKey':_0xf07975('0x1e5'),'onDelete':_0xf07975('0x1ea')}),db[_0xf07975('0x7a')][_0xf07975('0xef')](db[_0xf07975('0x198')],{'as':'Queue','foreignKey':_0xf07975('0x182'),'onDelete':'cascade'}),db[_0xf07975('0x7a')]['belongsTo'](db['Campaign'],{'as':'Campaign','foreignKey':_0xf07975('0x95'),'onDelete':'cascade'}),db[_0xf07975('0x1ad')][_0xf07975('0x122')](db[_0xf07975('0x126')],{'as':{'plural':_0xf07975('0xd'),'singular':_0xf07975('0x8a')},'foreignKey':_0xf07975('0x1e3'),'onDelete':_0xf07975('0x1ea'),'hooks':!![]}),db[_0xf07975('0x1ad')][_0xf07975('0x122')](db['Condition'],{'as':{'plural':_0xf07975('0x135'),'singular':_0xf07975('0x11e')},'foreignKey':'AutomationAnyId','onDelete':'cascade','hooks':!![]}),db[_0xf07975('0x1ad')][_0xf07975('0x122')](db[_0xf07975('0x1e6')],{'as':_0xf07975('0x15c'),'foreignKey':_0xf07975('0x4'),'onDelete':'cascade','hooks':!![]}),db[_0xf07975('0x36')][_0xf07975('0x122')](db[_0xf07975('0x36')],{'as':_0xf07975('0xe6'),'foreignKey':_0xf07975('0x6a'),'onDelete':_0xf07975('0x1ea')}),db['Interval'][_0xf07975('0x122')](db[_0xf07975('0xd5')],{'as':'Intervals','foreignKey':_0xf07975('0x1b1'),'onDelete':'cascade','hooks':!![],'required':![]}),db[_0xf07975('0xd5')][_0xf07975('0x122')](db[_0xf07975('0x97')],{'as':'Extensions','foreignKey':_0xf07975('0x1b1'),'onDelete':_0xf07975('0x2f')}),db['Interval'][_0xf07975('0x122')](db[_0xf07975('0xbd')],{'as':_0xf07975('0x117'),'foreignKey':_0xf07975('0x1b1')}),db['Interval'][_0xf07975('0x122')](db['ChatApplication'],{'as':'ChatApplications','foreignKey':_0xf07975('0x1b1')}),db[_0xf07975('0xd5')][_0xf07975('0x122')](db[_0xf07975('0x2b')],{'as':_0xf07975('0x106'),'foreignKey':_0xf07975('0x1b1')}),db['Interval'][_0xf07975('0x122')](db['SmsApplication'],{'as':_0xf07975('0xe2'),'foreignKey':'IntervalId'}),db['Schedule']['belongsTo'](db[_0xf07975('0xd8')],{}),db['Schedule'][_0xf07975('0xef')](db[_0xf07975('0x146')],{'foreignKey':_0xf07975('0xa7')}),db[_0xf07975('0x1d0')][_0xf07975('0xef')](db[_0xf07975('0x148')],{'foreignKey':_0xf07975('0x17d')}),db['Sound']['belongsToMany'](db[_0xf07975('0xe5')],{'as':_0xf07975('0x1d8'),'through':_0xf07975('0xd7'),'onDelete':_0xf07975('0x2f')}),db[_0xf07975('0x31')]['belongsToMany'](db['CmContact'],{'through':_0xf07975('0x8')}),db[_0xf07975('0x31')]['belongsToMany'](db[_0xf07975('0x1cd')],{'through':_0xf07975('0x7b')}),db[_0xf07975('0x31')][_0xf07975('0x19c')](db[_0xf07975('0xd2')],{'through':_0xf07975('0x110')}),db[_0xf07975('0x31')][_0xf07975('0x19c')](db[_0xf07975('0x118')],{'through':_0xf07975('0x4f')}),db['Tag'][_0xf07975('0x19c')](db[_0xf07975('0x73')],{'through':_0xf07975('0x4e')}),db[_0xf07975('0x31')][_0xf07975('0x19c')](db[_0xf07975('0x17b')],{'through':_0xf07975('0x1dc')}),db[_0xf07975('0x31')][_0xf07975('0x19c')](db['WhatsappInteraction'],{'through':_0xf07975('0x1c2')}),db[_0xf07975('0x138')][_0xf07975('0x122')](db[_0xf07975('0x126')],{'as':{'plural':_0xf07975('0x12d'),'singular':_0xf07975('0x44')},'foreignKey':'TriggerAllId','onDelete':'cascade','hooks':!![]}),db[_0xf07975('0x138')]['hasMany'](db[_0xf07975('0x126')],{'as':{'plural':_0xf07975('0x1cf'),'singular':_0xf07975('0xb3')},'foreignKey':'TriggerAnyId','onDelete':_0xf07975('0x1ea'),'hooks':!![]}),db[_0xf07975('0x138')][_0xf07975('0x122')](db['Action'],{'as':_0xf07975('0x15c'),'foreignKey':_0xf07975('0x81'),'onDelete':_0xf07975('0x1ea'),'hooks':!![]}),db[_0xf07975('0x148')]['hasMany'](db['AnalyticFieldReport'],{'as':_0xf07975('0x1ac'),'onDelete':_0xf07975('0x1ea'),'foreignKey':'CustomReportId','hooks':!![]}),db[_0xf07975('0x146')][_0xf07975('0x122')](db['AnalyticFieldReport'],{'as':_0xf07975('0x1ac'),'onDelete':_0xf07975('0x1ea'),'foreignKey':_0xf07975('0xa7')}),db[_0xf07975('0x13c')][_0xf07975('0x122')](db[_0xf07975('0xdd')],{'as':_0xf07975('0x1ac'),'onDelete':_0xf07975('0x1ea'),'foreignKey':_0xf07975('0x165')}),db[_0xf07975('0xdd')][_0xf07975('0xef')](db[_0xf07975('0x13c')],{'foreignKey':_0xf07975('0x165')}),db[_0xf07975('0x98')][_0xf07975('0x122')](db[_0xf07975('0xf8')],{'as':_0xf07975('0x7'),'onDelete':'cascade','foreignKey':_0xf07975('0xbb')}),db[_0xf07975('0xf8')][_0xf07975('0x122')](db['SalesforceField'],{'as':_0xf07975('0x68'),'onDelete':'cascade','foreignKey':'SubjectId'}),db[_0xf07975('0xf8')]['hasMany'](db[_0xf07975('0x1a4')],{'as':_0xf07975('0x10d'),'onDelete':'cascade','foreignKey':_0xf07975('0x10')}),db[_0xf07975('0xf8')][_0xf07975('0x122')](db[_0xf07975('0x1a4')],{'as':_0xf07975('0x1ac'),'onDelete':_0xf07975('0x1ea'),'foreignKey':_0xf07975('0x116')}),db[_0xf07975('0xf8')][_0xf07975('0xef')](db[_0xf07975('0x98')],{'as':_0xf07975('0x22'),'foreignKey':_0xf07975('0xbb')}),db[_0xf07975('0x1a4')][_0xf07975('0x122')](db['SalesforceField'],{'as':_0xf07975('0xf9'),'foreignKey':_0xf07975('0xdb')}),db[_0xf07975('0x1a4')][_0xf07975('0x122')](db[_0xf07975('0x1a4')],{'as':_0xf07975('0x77'),'foreignKey':_0xf07975('0x10')}),db['SalesforceField']['hasMany'](db[_0xf07975('0x1a4')],{'as':'Field','foreignKey':_0xf07975('0x116')}),db['SalesforceField'][_0xf07975('0xef')](db['Variable'],{'as':_0xf07975('0xa8'),'foreignKey':_0xf07975('0x155')}),db['SugarcrmAccount'][_0xf07975('0x122')](db['SugarcrmConfiguration'],{'as':_0xf07975('0x7'),'onDelete':_0xf07975('0x1ea'),'foreignKey':_0xf07975('0xbb')}),db[_0xf07975('0x154')][_0xf07975('0x122')](db['SugarcrmField'],{'as':_0xf07975('0x68'),'onDelete':_0xf07975('0x1ea'),'foreignKey':_0xf07975('0xdb')}),db['SugarcrmConfiguration']['hasMany'](db[_0xf07975('0xa2')],{'as':_0xf07975('0x10d'),'onDelete':_0xf07975('0x1ea'),'foreignKey':_0xf07975('0x10')}),db[_0xf07975('0x154')][_0xf07975('0x122')](db[_0xf07975('0xa2')],{'as':_0xf07975('0x1ac'),'onDelete':_0xf07975('0x1ea'),'foreignKey':_0xf07975('0x116')}),db[_0xf07975('0x154')]['belongsTo'](db[_0xf07975('0x1ab')],{'as':_0xf07975('0x22'),'foreignKey':_0xf07975('0xbb')}),db[_0xf07975('0xa2')][_0xf07975('0x122')](db[_0xf07975('0xa2')],{'as':_0xf07975('0xf9'),'foreignKey':_0xf07975('0xdb')}),db[_0xf07975('0xa2')][_0xf07975('0x122')](db[_0xf07975('0xa2')],{'as':'Description','foreignKey':'DescriptionId'}),db[_0xf07975('0xa2')]['hasMany'](db[_0xf07975('0xa2')],{'as':_0xf07975('0x25'),'foreignKey':_0xf07975('0x116')}),db['SugarcrmField'][_0xf07975('0xef')](db[_0xf07975('0xa8')],{'as':'Variable','foreignKey':_0xf07975('0x155')}),db[_0xf07975('0x15f')]['hasMany'](db['DeskConfiguration'],{'as':_0xf07975('0x7'),'onDelete':_0xf07975('0x1ea'),'foreignKey':'AccountId'}),db['DeskConfiguration'][_0xf07975('0x122')](db[_0xf07975('0x11b')],{'as':'Subjects','onDelete':_0xf07975('0x1ea'),'foreignKey':_0xf07975('0xdb')}),db[_0xf07975('0x9f')][_0xf07975('0x122')](db['DeskField'],{'as':_0xf07975('0x10d'),'onDelete':_0xf07975('0x1ea'),'foreignKey':'DescriptionId'}),db[_0xf07975('0x9f')][_0xf07975('0x122')](db[_0xf07975('0x11b')],{'as':_0xf07975('0x1ac'),'onDelete':'cascade','foreignKey':_0xf07975('0x116')}),db[_0xf07975('0x9f')][_0xf07975('0xef')](db[_0xf07975('0x15f')],{'as':_0xf07975('0x22'),'foreignKey':_0xf07975('0xbb')}),db[_0xf07975('0x9f')][_0xf07975('0x19c')](db[_0xf07975('0x31')],{'through':_0xf07975('0x84')}),db['DeskField']['hasMany'](db['DeskField'],{'as':_0xf07975('0xf9'),'foreignKey':'SubjectId'}),db[_0xf07975('0x11b')]['hasMany'](db['DeskField'],{'as':'Description','foreignKey':_0xf07975('0x10')}),db[_0xf07975('0x11b')][_0xf07975('0x122')](db[_0xf07975('0x11b')],{'as':_0xf07975('0x25'),'foreignKey':_0xf07975('0x116')}),db['DeskField'][_0xf07975('0xef')](db[_0xf07975('0xa8')],{'as':_0xf07975('0xa8'),'foreignKey':_0xf07975('0x155')}),db[_0xf07975('0xab')][_0xf07975('0x122')](db[_0xf07975('0x6')],{'as':_0xf07975('0x7'),'onDelete':_0xf07975('0x1ea'),'foreignKey':_0xf07975('0xbb')}),db[_0xf07975('0x6')][_0xf07975('0x122')](db['ZohoField'],{'as':_0xf07975('0x68'),'onDelete':_0xf07975('0x1ea'),'foreignKey':_0xf07975('0xdb')}),db[_0xf07975('0x6')][_0xf07975('0x122')](db[_0xf07975('0x133')],{'as':_0xf07975('0x10d'),'onDelete':_0xf07975('0x1ea'),'foreignKey':_0xf07975('0x10')}),db['ZohoConfiguration']['hasMany'](db[_0xf07975('0x133')],{'as':'Fields','onDelete':_0xf07975('0x1ea'),'foreignKey':'FieldId'}),db[_0xf07975('0x6')]['belongsTo'](db['ZohoAccount'],{'as':'Account','foreignKey':_0xf07975('0xbb')}),db[_0xf07975('0x133')][_0xf07975('0x122')](db[_0xf07975('0x133')],{'as':_0xf07975('0xf9'),'foreignKey':_0xf07975('0xdb')}),db['ZohoField'][_0xf07975('0x122')](db[_0xf07975('0x133')],{'as':'Description','foreignKey':_0xf07975('0x10')}),db[_0xf07975('0x133')][_0xf07975('0x122')](db[_0xf07975('0x133')],{'as':'Field','foreignKey':_0xf07975('0x116')}),db['ZohoField'][_0xf07975('0xef')](db['Variable'],{'as':_0xf07975('0xa8'),'foreignKey':_0xf07975('0x155')}),db['ZendeskAccount']['hasMany'](db[_0xf07975('0xf4')],{'as':_0xf07975('0x7'),'onDelete':_0xf07975('0x1ea'),'foreignKey':_0xf07975('0xbb')}),db['ZendeskConfiguration'][_0xf07975('0x122')](db[_0xf07975('0xb6')],{'as':'Subjects','foreignKey':'SubjectId'}),db[_0xf07975('0xf4')]['hasMany'](db[_0xf07975('0xb6')],{'as':_0xf07975('0x10d'),'foreignKey':_0xf07975('0x10')}),db[_0xf07975('0xf4')][_0xf07975('0x122')](db[_0xf07975('0xb6')],{'as':'Fields','foreignKey':_0xf07975('0x116')}),db[_0xf07975('0xf4')]['belongsTo'](db[_0xf07975('0xa4')],{'as':_0xf07975('0x22'),'foreignKey':_0xf07975('0xbb')}),db['ZendeskConfiguration'][_0xf07975('0x19c')](db[_0xf07975('0x31')],{'through':_0xf07975('0x92')}),db[_0xf07975('0xb6')][_0xf07975('0x122')](db[_0xf07975('0xb6')],{'as':_0xf07975('0xf9'),'foreignKey':_0xf07975('0xdb')}),db['ZendeskField']['hasMany'](db[_0xf07975('0xb6')],{'as':_0xf07975('0x77'),'foreignKey':'DescriptionId'}),db[_0xf07975('0xb6')][_0xf07975('0x122')](db[_0xf07975('0xb6')],{'as':_0xf07975('0x25'),'foreignKey':_0xf07975('0x116')}),db[_0xf07975('0xb6')]['belongsTo'](db[_0xf07975('0xa8')],{'as':_0xf07975('0xa8'),'foreignKey':_0xf07975('0x155')}),db[_0xf07975('0x7c')][_0xf07975('0x122')](db[_0xf07975('0x3c')],{'as':_0xf07975('0x7'),'onDelete':'cascade','foreignKey':_0xf07975('0xbb')}),db[_0xf07975('0x3c')]['hasMany'](db[_0xf07975('0x108')],{'as':_0xf07975('0x68'),'onDelete':'cascade','foreignKey':_0xf07975('0xdb')}),db[_0xf07975('0x3c')]['hasMany'](db['FreshdeskField'],{'as':_0xf07975('0x10d'),'onDelete':_0xf07975('0x1ea'),'foreignKey':'DescriptionId'}),db['FreshdeskConfiguration'][_0xf07975('0x122')](db['FreshdeskField'],{'as':_0xf07975('0x1ac'),'onDelete':_0xf07975('0x1ea'),'foreignKey':_0xf07975('0x116')}),db[_0xf07975('0x3c')][_0xf07975('0xef')](db[_0xf07975('0x7c')],{'as':_0xf07975('0x22'),'foreignKey':_0xf07975('0xbb')}),db['FreshdeskConfiguration'][_0xf07975('0x19c')](db['Tag'],{'through':_0xf07975('0xe4')}),db[_0xf07975('0x108')][_0xf07975('0x122')](db[_0xf07975('0x108')],{'as':'Subject','foreignKey':_0xf07975('0xdb')}),db[_0xf07975('0x108')][_0xf07975('0x122')](db[_0xf07975('0x108')],{'as':'Description','foreignKey':'DescriptionId'}),db[_0xf07975('0x108')][_0xf07975('0x122')](db['FreshdeskField'],{'as':_0xf07975('0x25'),'foreignKey':_0xf07975('0x116')}),db[_0xf07975('0x108')]['belongsTo'](db[_0xf07975('0xa8')],{'as':_0xf07975('0xa8'),'foreignKey':_0xf07975('0x155')}),db[_0xf07975('0x183')][_0xf07975('0x122')](db[_0xf07975('0xd0')],{'as':_0xf07975('0x7'),'onDelete':_0xf07975('0x1ea'),'foreignKey':_0xf07975('0xbb')}),db[_0xf07975('0xd0')][_0xf07975('0x122')](db[_0xf07975('0xd4')],{'as':_0xf07975('0x68'),'foreignKey':_0xf07975('0xdb')}),db[_0xf07975('0xd0')][_0xf07975('0x122')](db[_0xf07975('0xd4')],{'as':_0xf07975('0x10d'),'foreignKey':_0xf07975('0x10')}),db[_0xf07975('0xd0')][_0xf07975('0x122')](db[_0xf07975('0xd4')],{'as':_0xf07975('0x1ac'),'foreignKey':_0xf07975('0x116')}),db[_0xf07975('0xd0')]['belongsTo'](db[_0xf07975('0x183')],{'as':_0xf07975('0x22'),'foreignKey':_0xf07975('0xbb')}),db[_0xf07975('0xd4')][_0xf07975('0x122')](db[_0xf07975('0xd4')],{'as':'Subject','foreignKey':_0xf07975('0xdb')}),db[_0xf07975('0xd4')][_0xf07975('0x122')](db[_0xf07975('0xd4')],{'as':_0xf07975('0x77'),'foreignKey':'DescriptionId'}),db['VtigerField']['hasMany'](db['VtigerField'],{'as':_0xf07975('0x25'),'foreignKey':_0xf07975('0x116')}),db[_0xf07975('0xd4')][_0xf07975('0xef')](db[_0xf07975('0xa8')],{'as':_0xf07975('0xa8'),'foreignKey':'VariableId'}),db[_0xf07975('0xad')]['hasMany'](db[_0xf07975('0xce')],{'as':_0xf07975('0x7'),'onDelete':'cascade','foreignKey':_0xf07975('0xbb')}),db[_0xf07975('0xce')]['hasMany'](db[_0xf07975('0x6b')],{'as':_0xf07975('0x68'),'foreignKey':_0xf07975('0xdb')}),db[_0xf07975('0xce')][_0xf07975('0x122')](db['ServicenowField'],{'as':_0xf07975('0x10d'),'foreignKey':_0xf07975('0x10')}),db[_0xf07975('0xce')][_0xf07975('0x122')](db[_0xf07975('0x6b')],{'as':_0xf07975('0x1ac'),'foreignKey':_0xf07975('0x116')}),db[_0xf07975('0xce')][_0xf07975('0xef')](db[_0xf07975('0xad')],{'as':'Account','foreignKey':_0xf07975('0xbb')}),db[_0xf07975('0x6b')][_0xf07975('0x122')](db[_0xf07975('0x6b')],{'as':'Subject','foreignKey':_0xf07975('0xdb')}),db[_0xf07975('0x6b')][_0xf07975('0x122')](db[_0xf07975('0x6b')],{'as':_0xf07975('0x77'),'foreignKey':_0xf07975('0x10')}),db[_0xf07975('0x6b')]['hasMany'](db[_0xf07975('0x6b')],{'as':'Field','foreignKey':_0xf07975('0x116')}),db[_0xf07975('0x6b')]['belongsTo'](db[_0xf07975('0xa8')],{'as':_0xf07975('0xa8'),'foreignKey':_0xf07975('0x155')}),db[_0xf07975('0x119')][_0xf07975('0x122')](db[_0xf07975('0x17e')],{'as':_0xf07975('0x7'),'onDelete':_0xf07975('0x1ea'),'foreignKey':_0xf07975('0xbb')}),db['Dynamics365Configuration']['hasMany'](db[_0xf07975('0xe8')],{'as':_0xf07975('0x68'),'onDelete':_0xf07975('0x1ea'),'foreignKey':'SubjectId'}),db[_0xf07975('0x17e')]['hasMany'](db[_0xf07975('0xe8')],{'as':_0xf07975('0x10d'),'onDelete':_0xf07975('0x1ea'),'foreignKey':_0xf07975('0x10')}),db[_0xf07975('0x17e')][_0xf07975('0x122')](db[_0xf07975('0xe8')],{'as':_0xf07975('0x1ac'),'onDelete':'cascade','foreignKey':_0xf07975('0x116')}),db[_0xf07975('0x17e')][_0xf07975('0xef')](db[_0xf07975('0x119')],{'as':_0xf07975('0x22'),'foreignKey':_0xf07975('0xbb')}),db[_0xf07975('0xe8')][_0xf07975('0x122')](db[_0xf07975('0xe8')],{'as':_0xf07975('0xf9'),'foreignKey':_0xf07975('0xdb')}),db[_0xf07975('0xe8')][_0xf07975('0x122')](db[_0xf07975('0xe8')],{'as':_0xf07975('0x77'),'foreignKey':'DescriptionId'}),db[_0xf07975('0xe8')][_0xf07975('0x122')](db['Dynamics365Field'],{'as':_0xf07975('0x25'),'foreignKey':_0xf07975('0x116')}),db[_0xf07975('0xe8')]['belongsTo'](db[_0xf07975('0xa8')],{'as':_0xf07975('0xa8'),'foreignKey':_0xf07975('0x155')}),db['FreshsalesAccount'][_0xf07975('0x122')](db[_0xf07975('0x1ba')],{'as':'Configurations','onDelete':_0xf07975('0x1ea'),'foreignKey':_0xf07975('0xbb')}),db[_0xf07975('0x1ba')][_0xf07975('0x122')](db['FreshsalesField'],{'as':_0xf07975('0x68'),'foreignKey':_0xf07975('0xdb')}),db[_0xf07975('0x1ba')][_0xf07975('0x122')](db[_0xf07975('0x14')],{'as':'Descriptions','foreignKey':_0xf07975('0x10')}),db[_0xf07975('0x1ba')]['hasMany'](db[_0xf07975('0x14')],{'as':_0xf07975('0x1ac'),'foreignKey':_0xf07975('0x116')}),db[_0xf07975('0x1ba')][_0xf07975('0xef')](db[_0xf07975('0x5b')],{'as':_0xf07975('0x22'),'foreignKey':_0xf07975('0xbb')}),db['FreshsalesField'][_0xf07975('0x122')](db['FreshsalesField'],{'as':_0xf07975('0xf9'),'foreignKey':_0xf07975('0xdb')}),db[_0xf07975('0x14')][_0xf07975('0x122')](db['FreshsalesField'],{'as':_0xf07975('0x77'),'foreignKey':'DescriptionId'}),db[_0xf07975('0x14')][_0xf07975('0x122')](db[_0xf07975('0x14')],{'as':_0xf07975('0x25'),'foreignKey':_0xf07975('0x116')}),db[_0xf07975('0x14')][_0xf07975('0xef')](db['Variable'],{'as':_0xf07975('0xa8'),'foreignKey':_0xf07975('0x155')}),db[_0xf07975('0x5a')]['belongsTo'](db[_0xf07975('0xd9')],{}),db[_0xf07975('0x5a')]['belongsTo'](db['CmList'],{'as':'List','foreignKey':_0xf07975('0x1e5')}),db['ChatQueueReport'][_0xf07975('0xef')](db[_0xf07975('0x14a')],{'as':'Contact','foreignKey':_0xf07975('0xf')}),db[_0xf07975('0x5a')][_0xf07975('0xef')](db[_0xf07975('0x1cd')],{}),db[_0xf07975('0x5a')][_0xf07975('0xef')](db['ChatMessage'],{}),db[_0xf07975('0x5a')][_0xf07975('0xef')](db[_0xf07975('0xc6')],{}),db[_0xf07975('0x5a')][_0xf07975('0xef')](db[_0xf07975('0x193')],{}),db[_0xf07975('0x180')]['belongsTo'](db[_0xf07975('0xc6')],{'onDelete':'cascade','foreignKey':_0xf07975('0x173')}),db[_0xf07975('0x180')][_0xf07975('0xef')](db[_0xf07975('0xc6')],{'onDelete':'cascade','foreignKey':_0xf07975('0x1')}),db['JscriptySessionReport'][_0xf07975('0x122')](db[_0xf07975('0xa3')],{'foreignKey':_0xf07975('0x13f'),'onDelete':_0xf07975('0x1ea')}),db[_0xf07975('0x105')][_0xf07975('0x122')](db[_0xf07975('0x1b6')],{'foreignKey':_0xf07975('0x13f'),'onDelete':_0xf07975('0x1ea')}),db['SmsQueueReport'][_0xf07975('0xef')](db['SmsAccount'],{}),db[_0xf07975('0x130')][_0xf07975('0xef')](db[_0xf07975('0x1d5')],{'as':_0xf07975('0x12e'),'foreignKey':_0xf07975('0x1e5')}),db[_0xf07975('0x130')]['belongsTo'](db[_0xf07975('0x14a')],{'as':'Contact','foreignKey':_0xf07975('0xf')}),db[_0xf07975('0x130')]['belongsTo'](db[_0xf07975('0x118')],{}),db[_0xf07975('0x130')][_0xf07975('0xef')](db[_0xf07975('0xe')],{}),db[_0xf07975('0x130')][_0xf07975('0xef')](db[_0xf07975('0xc6')],{}),db[_0xf07975('0x130')][_0xf07975('0xef')](db[_0xf07975('0x174')],{}),db[_0xf07975('0x191')][_0xf07975('0x122')](db[_0xf07975('0x105')],{'foreignKey':'ProjectId'}),db[_0xf07975('0x191')][_0xf07975('0x122')](db[_0xf07975('0xa3')],{'foreignKey':_0xf07975('0x89')}),db['JscriptyProject'][_0xf07975('0x122')](db[_0xf07975('0x1b6')],{'foreignKey':_0xf07975('0x89')}),db[_0xf07975('0x5e')][_0xf07975('0x19c')](db[_0xf07975('0xc6')],{'as':'Users','through':_0xf07975('0x1cb')}),db['Team'][_0xf07975('0x19c')](db[_0xf07975('0xc6')],{'as':_0xf07975('0x190'),'through':_0xf07975('0x14f')}),db[_0xf07975('0x123')][_0xf07975('0x19c')](db[_0xf07975('0x198')],{'through':'team_has_voice_queues','as':_0xf07975('0x159')}),db[_0xf07975('0x123')][_0xf07975('0x19c')](db[_0xf07975('0x33')],{'through':_0xf07975('0x1e8'),'as':_0xf07975('0xfa')}),db[_0xf07975('0x123')]['belongsToMany'](db[_0xf07975('0x193')],{'through':_0xf07975('0xfe'),'as':'ChatQueues'}),db[_0xf07975('0x123')][_0xf07975('0x19c')](db[_0xf07975('0x163')],{'through':'team_has_fax_queues','as':_0xf07975('0x37')}),db['Team'][_0xf07975('0x19c')](db[_0xf07975('0x174')],{'through':'team_has_sms_queues','as':'SmsQueues'}),db[_0xf07975('0x123')]['belongsToMany'](db[_0xf07975('0x14e')],{'through':'team_has_openchannel_queues','as':_0xf07975('0x20')}),db[_0xf07975('0x123')][_0xf07975('0x19c')](db[_0xf07975('0x10b')],{'through':_0xf07975('0x11a'),'as':_0xf07975('0x16d')}),db[_0xf07975('0x131')][_0xf07975('0x122')](db[_0xf07975('0x70')],{'as':_0xf07975('0x86'),'foreignKey':_0xf07975('0x95')}),db['Campaign'][_0xf07975('0x122')](db[_0xf07975('0x1d')],{'as':_0xf07975('0x38'),'foreignKey':_0xf07975('0x95')}),db['Campaign'][_0xf07975('0x122')](db[_0xf07975('0x134')],{'as':_0xf07975('0x47'),'foreignKey':_0xf07975('0x95')}),db[_0xf07975('0x131')][_0xf07975('0x122')](db[_0xf07975('0x7a')],{'as':_0xf07975('0x67'),'foreignKey':_0xf07975('0x95')}),db[_0xf07975('0x131')][_0xf07975('0xef')](db[_0xf07975('0x4d')],{'as':'Trunk','foreignKey':'TrunkId'}),db[_0xf07975('0x131')][_0xf07975('0xef')](db['Trunk'],{'as':_0xf07975('0x1a6'),'foreignKey':_0xf07975('0x1c3')}),db[_0xf07975('0x131')]['belongsTo'](db['Interval'],{'as':_0xf07975('0xd5'),'foreignKey':_0xf07975('0x1b1')}),db[_0xf07975('0x131')][_0xf07975('0xef')](db[_0xf07975('0x5e')],{'as':'SquareProject','foreignKey':_0xf07975('0x83')}),db[_0xf07975('0x131')][_0xf07975('0x19c')](db[_0xf07975('0x1d5')],{'as':_0xf07975('0x100'),'through':_0xf07975('0xfd')}),db['Campaign']['belongsToMany'](db[_0xf07975('0x1d5')],{'as':'BlackLists','through':_0xf07975('0xc4')}),db['MailTransferReport'][_0xf07975('0xef')](db[_0xf07975('0x124')],{}),db[_0xf07975('0x2d')][_0xf07975('0xef')](db[_0xf07975('0xd2')],{}),db['MailTransferReport']['belongsTo'](db['MailAccount'],{'foreignKey':'FromMailAccountId','as':'FromAccount'}),db[_0xf07975('0x2d')]['belongsTo'](db[_0xf07975('0xc6')],{'foreignKey':'FromUserId','as':'FromAgent'}),db[_0xf07975('0x2d')][_0xf07975('0xef')](db[_0xf07975('0xc6')],{'foreignKey':_0xf07975('0x8b'),'as':_0xf07975('0x168')}),db[_0xf07975('0x2d')]['belongsTo'](db[_0xf07975('0x33')],{'foreignKey':'ToMailQueueId','as':_0xf07975('0x1c0')}),db[_0xf07975('0x2d')][_0xf07975('0xef')](db[_0xf07975('0xd8')],{'foreignKey':_0xf07975('0xf6'),'as':'ToAccount'}),db[_0xf07975('0x0')][_0xf07975('0xef')](db['ChatMessage'],{}),db[_0xf07975('0x0')][_0xf07975('0xef')](db[_0xf07975('0x1cd')],{}),db['ChatTransferReport'][_0xf07975('0xef')](db[_0xf07975('0xd9')],{'foreignKey':_0xf07975('0x39'),'as':'FromAccount'}),db[_0xf07975('0x0')][_0xf07975('0xef')](db[_0xf07975('0xc6')],{'foreignKey':_0xf07975('0xca'),'as':'FromAgent'}),db[_0xf07975('0x0')][_0xf07975('0xef')](db['User'],{'foreignKey':_0xf07975('0x8b'),'as':_0xf07975('0x168')}),db['ChatTransferReport'][_0xf07975('0xef')](db[_0xf07975('0x193')],{'foreignKey':_0xf07975('0x10e'),'as':_0xf07975('0x1c0')}),db['ChatTransferReport'][_0xf07975('0xef')](db[_0xf07975('0xd9')],{'foreignKey':'ToChatWebsiteId','as':'ToAccount'}),db['FaxTransferReport'][_0xf07975('0xef')](db[_0xf07975('0xda')],{}),db['FaxTransferReport'][_0xf07975('0xef')](db[_0xf07975('0x73')],{}),db[_0xf07975('0x18f')][_0xf07975('0xef')](db[_0xf07975('0x1ef')],{'foreignKey':_0xf07975('0xcc'),'as':_0xf07975('0x132')}),db[_0xf07975('0x18f')][_0xf07975('0xef')](db['User'],{'foreignKey':_0xf07975('0xca'),'as':_0xf07975('0xbc')}),db[_0xf07975('0x18f')][_0xf07975('0xef')](db[_0xf07975('0xc6')],{'foreignKey':_0xf07975('0x8b'),'as':_0xf07975('0x168')}),db['FaxTransferReport'][_0xf07975('0xef')](db[_0xf07975('0x163')],{'foreignKey':_0xf07975('0x1bb'),'as':'ToQueue'}),db['FaxTransferReport'][_0xf07975('0xef')](db['FaxAccount'],{'foreignKey':_0xf07975('0x29'),'as':_0xf07975('0x156')}),db[_0xf07975('0xa6')][_0xf07975('0xef')](db['OpenchannelMessage'],{}),db['OpenchannelTransferReport']['belongsTo'](db[_0xf07975('0x17b')],{}),db[_0xf07975('0xa6')][_0xf07975('0xef')](db[_0xf07975('0x1d3')],{'foreignKey':_0xf07975('0x125'),'as':'FromAccount'}),db['OpenchannelTransferReport'][_0xf07975('0xef')](db[_0xf07975('0xc6')],{'foreignKey':_0xf07975('0xca'),'as':_0xf07975('0xbc')}),db['OpenchannelTransferReport'][_0xf07975('0xef')](db[_0xf07975('0xc6')],{'foreignKey':_0xf07975('0x8b'),'as':_0xf07975('0x168')}),db['OpenchannelTransferReport']['belongsTo'](db['OpenchannelQueue'],{'foreignKey':'ToOpenchannelQueueId','as':_0xf07975('0x1c0')}),db[_0xf07975('0xa6')][_0xf07975('0xef')](db[_0xf07975('0x1d3')],{'foreignKey':_0xf07975('0x128'),'as':'ToAccount'}),db['SmsTransferReport'][_0xf07975('0xef')](db[_0xf07975('0xe')],{}),db['SmsTransferReport']['belongsTo'](db[_0xf07975('0x118')],{}),db[_0xf07975('0x7f')][_0xf07975('0xef')](db[_0xf07975('0xd6')],{'foreignKey':'FromSmsAccountId','as':'FromAccount'}),db['SmsTransferReport'][_0xf07975('0xef')](db['User'],{'foreignKey':_0xf07975('0xca'),'as':_0xf07975('0xbc')}),db[_0xf07975('0x7f')][_0xf07975('0xef')](db[_0xf07975('0xc6')],{'foreignKey':_0xf07975('0x8b'),'as':_0xf07975('0x168')}),db[_0xf07975('0x7f')][_0xf07975('0xef')](db['SmsQueue'],{'foreignKey':_0xf07975('0x1e9'),'as':'ToQueue'}),db['SmsTransferReport'][_0xf07975('0xef')](db['SmsAccount'],{'foreignKey':_0xf07975('0x1a3'),'as':'ToAccount'}),db[_0xf07975('0x1d5')]['hasMany'](db['Disposition'],{'as':_0xf07975('0xe6'),'foreignKey':_0xf07975('0x1e5')}),db[_0xf07975('0x1d5')][_0xf07975('0x122')](db['CmCustomField'],{'as':_0xf07975('0x1b5'),'foreignKey':'ListId'}),db['CmList'][_0xf07975('0x122')](db[_0xf07975('0x14a')],{'as':_0xf07975('0x9b'),'onDelete':_0xf07975('0x1ea'),'foreignKey':'ListId'}),db[_0xf07975('0x1d5')][_0xf07975('0x122')](db[_0xf07975('0x1d')],{'as':_0xf07975('0x38'),'foreignKey':'ListId'}),db['CmList']['hasMany'](db[_0xf07975('0x134')],{'as':_0xf07975('0x1ed'),'foreignKey':_0xf07975('0x1e5')}),db[_0xf07975('0x1d5')]['hasMany'](db[_0xf07975('0x150')],{'as':_0xf07975('0x150'),'foreignKey':_0xf07975('0x1e5')}),db[_0xf07975('0x1d5')]['belongsToMany'](db['VoiceQueue'],{'as':_0xf07975('0x143'),'through':_0xf07975('0x18b')}),db[_0xf07975('0x1d5')][_0xf07975('0x19c')](db[_0xf07975('0xc6')],{'as':_0xf07975('0x190'),'through':_0xf07975('0xb7')}),db['VoicePrefix']['hasMany'](db['VoiceExtension'],{'as':_0xf07975('0x10f'),'onDelete':_0xf07975('0x1ea')}),db[_0xf07975('0xc5')][_0xf07975('0x19c')](db[_0xf07975('0xc6')],{'as':_0xf07975('0x190'),'through':_0xf07975('0xcb')}),db[_0xf07975('0x147')][_0xf07975('0x122')](db[_0xf07975('0xc6')],{'as':_0xf07975('0x196'),'foreignKey':'userProfileId'}),db[_0xf07975('0x147')][_0xf07975('0x122')](db['UserProfileSection'],{'as':'UserProfileSections','foreignKey':'userProfileId','onDelete':_0xf07975('0x1ea')}),db[_0xf07975('0xba')][_0xf07975('0x122')](db[_0xf07975('0xaa')],{'as':'Resources','foreignKey':_0xf07975('0x16a'),'onDelete':_0xf07975('0x1ea')}),db[_0xf07975('0x11c')][_0xf07975('0x122')](db[_0xf07975('0x36')],{'as':_0xf07975('0xe6'),'foreignKey':_0xf07975('0x187')}),db[_0xf07975('0x11c')][_0xf07975('0x122')](db[_0xf07975('0x11f')],{'as':_0xf07975('0x169'),'foreignKey':_0xf07975('0x187')}),db[_0xf07975('0x11c')]['hasMany'](db['WhatsappMessage'],{'as':'Messages','foreignKey':_0xf07975('0x187')}),db['WhatsappAccount'][_0xf07975('0x122')](db[_0xf07975('0x161')],{'as':_0xf07975('0x57')}),db[_0xf07975('0x11c')][_0xf07975('0x122')](db[_0xf07975('0x129')],{'as':_0xf07975('0x6c')}),db[_0xf07975('0x11c')][_0xf07975('0xef')](db[_0xf07975('0x1d5')],{'as':_0xf07975('0x12e'),'foreignKey':_0xf07975('0x1e5')}),db[_0xf07975('0x11c')][_0xf07975('0xef')](db['Pause'],{'as':_0xf07975('0x9'),'foreignKey':_0xf07975('0x137')}),db[_0xf07975('0x11c')][_0xf07975('0x19c')](db[_0xf07975('0xc6')],{'as':_0xf07975('0x190'),'through':'user_has_whatsapp_accounts'}),db[_0xf07975('0x129')][_0xf07975('0xef')](db[_0xf07975('0xc6')],{'onDelete':_0xf07975('0x2f')}),db['WhatsappApplication']['belongsTo'](db['WhatsappQueue'],{'onDelete':_0xf07975('0x2f')}),db[_0xf07975('0x129')][_0xf07975('0xef')](db['WhatsappAccount'],{'onDelete':_0xf07975('0x2f')}),db[_0xf07975('0x129')][_0xf07975('0xef')](db[_0xf07975('0xd5')],{'onDelete':_0xf07975('0x2f'),'foreignKey':_0xf07975('0x1b1')}),db[_0xf07975('0x129')]['belongsTo'](db[_0xf07975('0x31')],{'onDelete':_0xf07975('0x2f'),'foreignKey':_0xf07975('0xe0')}),db[_0xf07975('0x161')][_0xf07975('0x122')](db[_0xf07975('0x14c')],{'as':_0xf07975('0x185'),'onDelete':_0xf07975('0x1ea'),'foreignKey':_0xf07975('0x197')}),db['WhatsappInteraction'][_0xf07975('0xef')](db[_0xf07975('0x11c')],{'as':_0xf07975('0x22'),'foreignKey':_0xf07975('0x187')}),db[_0xf07975('0x161')][_0xf07975('0xef')](db[_0xf07975('0x14a')],{'as':_0xf07975('0x145'),'foreignKey':'ContactId'}),db[_0xf07975('0x161')][_0xf07975('0xef')](db['User'],{'as':_0xf07975('0x5'),'foreignKey':_0xf07975('0x3b')}),db[_0xf07975('0x161')][_0xf07975('0x19c')](db[_0xf07975('0x31')],{'through':_0xf07975('0x1c2'),'as':_0xf07975('0x12a')}),db['WhatsappInteraction'][_0xf07975('0x19c')](db[_0xf07975('0x31')],{'through':_0xf07975('0x1c2'),'as':_0xf07975('0x2c')}),db[_0xf07975('0x161')]['belongsToMany'](db[_0xf07975('0xc6')],{'as':_0xf07975('0x196'),'through':'user_has_whatsapp_interactions','foreignKey':'WhatsappInteractionId'}),db[_0xf07975('0x14c')][_0xf07975('0xef')](db[_0xf07975('0xc6')],{'as':_0xf07975('0xc6')}),db[_0xf07975('0x14c')][_0xf07975('0xef')](db[_0xf07975('0x14a')],{'onDelete':_0xf07975('0x1ea'),'as':_0xf07975('0x145')}),db[_0xf07975('0x14c')][_0xf07975('0xef')](db[_0xf07975('0x161')],{'onDelete':'cascade','as':_0xf07975('0x109'),'foreignKey':'WhatsappInteractionId'}),db[_0xf07975('0x14c')][_0xf07975('0xef')](db[_0xf07975('0x11c')],{'as':_0xf07975('0x22'),'foreignKey':'WhatsappAccountId'}),db['WhatsappQueueReport'][_0xf07975('0xef')](db['WhatsappAccount'],{}),db[_0xf07975('0x115')][_0xf07975('0xef')](db[_0xf07975('0x1d5')],{'as':_0xf07975('0x12e'),'foreignKey':_0xf07975('0x1e5')}),db[_0xf07975('0x115')][_0xf07975('0xef')](db[_0xf07975('0x14a')],{'as':_0xf07975('0x145'),'foreignKey':_0xf07975('0xf')}),db[_0xf07975('0x115')]['belongsTo'](db[_0xf07975('0x161')],{}),db[_0xf07975('0x115')]['belongsTo'](db[_0xf07975('0x10b')],{}),db['WhatsappQueueReport'][_0xf07975('0xef')](db[_0xf07975('0x14c')],{}),db[_0xf07975('0x115')][_0xf07975('0xef')](db[_0xf07975('0xc6')],{}),db['WhatsappTransferReport'][_0xf07975('0xef')](db[_0xf07975('0x14c')],{}),db[_0xf07975('0xe3')][_0xf07975('0xef')](db[_0xf07975('0x161')],{}),db[_0xf07975('0xe3')][_0xf07975('0xef')](db[_0xf07975('0x11c')],{'foreignKey':_0xf07975('0xb9'),'as':_0xf07975('0x132')}),db[_0xf07975('0xe3')][_0xf07975('0xef')](db['WhatsappAccount'],{'foreignKey':'ToWhatsappAccountId','as':'ToAccount'}),db[_0xf07975('0xe3')][_0xf07975('0xef')](db[_0xf07975('0x10b')],{'foreignKey':_0xf07975('0x3'),'as':'ToQueue'}),db[_0xf07975('0xe3')][_0xf07975('0xef')](db[_0xf07975('0xc6')],{'foreignKey':'FromUserId','as':_0xf07975('0xbc')}),db['WhatsappTransferReport'][_0xf07975('0xef')](db[_0xf07975('0xc6')],{'foreignKey':'ToUserId','as':_0xf07975('0x168')}),db[_0xf07975('0x10b')][_0xf07975('0x19c')](db['User'],{'as':_0xf07975('0x190'),'through':_0xf07975('0x1da'),'foreignKey':_0xf07975('0x1b4')}),db[_0xf07975('0x10b')][_0xf07975('0x19c')](db[_0xf07975('0x123')],{'through':_0xf07975('0x11a'),'as':_0xf07975('0x13e')}),module[_0xf07975('0x140')]={'db':db,'dbH':dbH}; \ No newline at end of file +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 diff --git a/server/rediscache/index.js b/server/rediscache/index.js index f6d031a..472b543 100644 --- a/server/rediscache/index.js +++ b/server/rediscache/index.js @@ -1 +1 @@ -const a1022_0x3b28=['../config/environment','redisHost','exports','socket.io-emitter','../config/config.service','getConfigService','redis'];(function(_0x5bc8c0,_0x3b2824){const _0x37eea4=function(_0x503b9f){while(--_0x503b9f){_0x5bc8c0['push'](_0x5bc8c0['shift']());}};_0x37eea4(++_0x3b2824);}(a1022_0x3b28,0x184));const a1022_0x37ee=function(_0x5bc8c0,_0x3b2824){_0x5bc8c0=_0x5bc8c0-0x0;let _0x37eea4=a1022_0x3b28[_0x5bc8c0];return _0x37eea4;};const _0x34ad5e=a1022_0x37ee,Redis=require('ioredis'),socketEmitter=require(_0x34ad5e('0x0')),config=require(_0x34ad5e('0x4')),cs=require(_0x34ad5e('0x1'))[_0x34ad5e('0x2')](),MAX_RETRIES=0xa,REDIS_CONFIG={'host':cs[_0x34ad5e('0x5')],'port':cs['redisPort'],'retryStrategy':function(_0x503b9f){if(_0x503b9f{const _0x4a43f9=a1024_0x5a81;this[_0x4a43f9('0x12')][_0x4a43f9('0x31')](_0x5d9403,_0x500e58,function(){const _0x32febd=_0x4a43f9;console[_0x32febd('0x5')](_0x32febd('0x29'),_0x500e58,_0x5d9403),require(_0x32febd('0x1a'))[_0x32febd('0x16')](),_0x688ef3(_0x32febd('0x3f')+_0x500e58+':'+_0x5d9403);});});}['close'](){return new Promise(_0xf1cd93=>{const _0x1e68ff=a1024_0x5a81;this[_0x1e68ff('0x12')][_0x1e68ff('0x44')](()=>{const _0x16141c=_0x1e68ff;console[_0x16141c('0x5')](_0x16141c('0x17')),_0xf1cd93();});});}}module[_0x5da2dc('0x1')]={'RPC':RPC}; \ No newline at end of file +const a1024_0x1154=['../api/variable/variable.rpc','log','lodash','../api/intServicenowAccount/intServicenowAccount.rpc','../api/intDynamics365Account/intDynamics365Account.rpc','../api/voiceQueue/voiceQueue.rpc','../api/voiceTransferReport/voiceTransferReport.rpc','../api/intVtigerAccount/intVtigerAccount.rpc','../api/intFreshsalesAccount/intFreshsalesAccount.rpc','server','../api/cmHopper/cmHopper.rpc','../api/cmHopperHistory/cmHopperHistory.rpc','../api/sound/sound.rpc','../api/trunk/trunk.rpc','../api/template/template.rpc','../api/smsMessage/smsMessage.rpc','../api/pause/pause.rpc','merge','../api/voiceRecording/voiceRecording.rpc','../api/cmHopperBlack/cmHopperBlack.rpc','../api/userVoiceQueueRt/userVoiceQueueRt.rpc','../api/intSugarcrmAccount/intSugarcrmAccount.rpc','../api/faxAccount/faxAccount.rpc','../api/openchannelQueue/openchannelQueue.rpc','../api/intZendeskAccount/intZendeskAccount.rpc','../config/triggers','jayson/promise','localhost','../api/squareReport/squareReport.rpc','error','Express\x20RPC\x20server\x20closed','close','../api/attachment/attachment.rpc','../api/interval/interval.rpc','../api/intFreshdeskAccount/intFreshdeskAccount.rpc','../api/squareReportDetail/squareReportDetail.rpc','../api/whatsappInteraction/whatsappInteraction.rpc','rpc','../api/voiceAgentReport/voiceAgentReport.rpc','../api/faxQueueReport/faxQueueReport.rpc','../api/cmContact/cmContact.rpc','../api/faxInteraction/faxInteraction.rpc','../api/mailQueue/mailQueue.rpc','../api/plugin/plugin.rpc','../api/faxMessage/faxMessage.rpc','../api/voiceQueueReport/voiceQueueReport.rpc','../api/memberReport/memberReport.rpc','../api/whatsappQueue/whatsappQueue.rpc','../api/smsQueue/smsQueue.rpc','../api/smsAccount/smsAccount.rpc','Express\x20RPC\x20server\x20listening\x20on\x20%s:%d!','host','../api/whatsappAccount/whatsappAccount.rpc','../api/campaign/campaign.rpc','RPC\x20listening\x20on\x20','../api/voiceCallReport/voiceCallReport.rpc','../api/whatsappMessage/whatsappMessage.rpc','../api/voiceDialReport/voiceDialReport.rpc','../api/trigger/trigger.rpc','../api/smsInteraction/smsInteraction.rpc','../api/faxApplication/faxApplication.rpc','../api/reportAgentPreview/reportAgentPreview.rpc','../api/whatsappQueueReport/whatsappQueueReport.rpc','../api/mailInteraction/mailInteraction.rpc','../api/mailQueueReport/mailQueueReport.rpc','../api/chatQueueReport/chatQueueReport.rpc','../api/mailServerIn/mailServerIn.rpc','../api/smsQueueReport/smsQueueReport.rpc','../api/chatInteraction/chatInteraction.rpc','../api/chatMessage/chatMessage.rpc','../api/faxQueue/faxQueue.rpc','../api/intDeskAccount/intDeskAccount.rpc','port','../api/openchannelApplication/openchannelApplication.rpc','../api/mailMessage/mailMessage.rpc','http'];(function(_0x56045a,_0x115462){const _0x10f930=function(_0x21f90b){while(--_0x21f90b){_0x56045a['push'](_0x56045a['shift']());}};_0x10f930(++_0x115462);}(a1024_0x1154,0x1f0));const a1024_0x10f9=function(_0x56045a,_0x115462){_0x56045a=_0x56045a-0x0;let _0x10f930=a1024_0x1154[_0x56045a];return _0x10f930;};const _0x9daf09=a1024_0x10f9;'use strict';const jayson=require(_0x9daf09('0x3e')),_=require(_0x9daf09('0x26')),config=require('../config/environment');function init(){const _0x391193=_0x9daf09;let _0x21f90b={};return _0x21f90b=_[_0x391193('0x35')](_0x21f90b,require('../api/user/user.rpc')),_0x21f90b=_['merge'](_0x21f90b,require('../api/voiceExtension/voiceExtension.rpc')),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x29'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x36'))),_0x21f90b=_['merge'](_0x21f90b,require(_0x391193('0xf'))),_0x21f90b=_['merge'](_0x21f90b,require(_0x391193('0x11'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x4a'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x5'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x6'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x31'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x2a'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x38'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x1a'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require('../api/mailAccount/mailAccount.rpc')),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x2'))),_0x21f90b=_['merge'](_0x21f90b,require(_0x391193('0x17'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x22'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require('../api/mailApplication/mailApplication.rpc')),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x18'))),_0x21f90b=_['merge'](_0x21f90b,require(_0x391193('0x3a'))),_0x21f90b=_['merge'](_0x21f90b,require(_0x391193('0x14'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x1'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x4'))),_0x21f90b=_['merge'](_0x21f90b,require(_0x391193('0x1e'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x4b'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x9'))),_0x21f90b=_['merge'](_0x21f90b,require(_0x391193('0x13'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x33'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x8'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x21'))),_0x21f90b=_['merge'](_0x21f90b,require('../api/openchannelInteraction/openchannelInteraction.rpc')),_0x21f90b=_['merge'](_0x21f90b,require('../api/openchannelMessage/openchannelMessage.rpc')),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x3b'))),_0x21f90b=_['merge'](_0x21f90b,require('../api/openchannelQueueReport/openchannelQueueReport.rpc')),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x1c'))),_0x21f90b=_['merge'](_0x21f90b,require(_0x391193('0x1d'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require('../api/chatQueue/chatQueue.rpc')),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x0'))),_0x21f90b=_['merge'](_0x21f90b,require(_0x391193('0x2e'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x37'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require('../api/cmHopperFinal/cmHopperFinal.rpc')),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x2f'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x15'))),_0x21f90b=_['merge'](_0x21f90b,require(_0x391193('0x45'))),_0x21f90b=_['merge'](_0x21f90b,require(_0x391193('0x34'))),_0x21f90b=_['merge'](_0x21f90b,require(_0x391193('0x30'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x32'))),_0x21f90b=_['merge'](_0x21f90b,require(_0x391193('0x12'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x24'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require('../api/intSalesforceAccount/intSalesforceAccount.rpc')),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x39'))),_0x21f90b=_['merge'](_0x21f90b,require(_0x391193('0x1f'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require('../api/intZohoAccount/intZohoAccount.rpc')),_0x21f90b=_['merge'](_0x21f90b,require(_0x391193('0x3c'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x46'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x2b'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x27'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x28'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x2c'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x19'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x1b'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x40'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x47'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require('../api/squareOdbc/squareOdbc.rpc')),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require('../api/squareProject/squareProject.rpc')),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require('../api/squareRecording/squareRecording.rpc')),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require('../api/squareMessage/squareMessage.rpc')),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0xd'))),_0x21f90b=_['merge'](_0x21f90b,require(_0x391193('0x44'))),_0x21f90b=_['merge'](_0x21f90b,require(_0x391193('0x3'))),_0x21f90b=_['merge'](_0x21f90b,require(_0x391193('0xc'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x48'))),_0x21f90b=_['merge'](_0x21f90b,require(_0x391193('0x10'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x16'))),_0x21f90b=_[_0x391193('0x35')](_0x21f90b,require(_0x391193('0x7'))),_0x21f90b;}class RPC{constructor(_0x3977ee){const _0x5cf87b=_0x9daf09;this['port']=config[_0x5cf87b('0x49')][_0x5cf87b('0x20')]||config[_0x5cf87b('0x20')]+0x1,this[_0x5cf87b('0xb')]=config[_0x5cf87b('0x49')]['ip']||_0x5cf87b('0x3f');const _0xb3ef17=init();this['server']=jayson['server'](_0xb3ef17)[_0x5cf87b('0x23')](),typeof _0x3977ee==='function'&&this[_0x5cf87b('0x2d')]['on'](_0x5cf87b('0x41'),_0x3977ee);}['listen'](){const {port:_0x458cda,host:_0x531b0a}=this;return new Promise(_0x2e65a6=>{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 diff --git a/server/services/agi/channel.js b/server/services/agi/channel.js index bf82fbb..29f11b1 100644 --- a/server/services/agi/channel.js +++ b/server/services/agi/channel.js @@ -1 +1 @@ -const a1025_0x2507=['sendRequest','ANSWER','520-Invalid','toString','events','wav','label','sayPhonetic','destroy','beep','wait','./error','join','extension','SET\x20CONTEXT\x20%s','BEEP','sync','length','answer','hangup','SET\x20VARIABLE\x20%s\x20\x22%s\x22','exports','isArray','SAY\x20DIGITS\x20%s\x20%s','continueAt','search','inherits','indexOf','code','SAY\x20PHONETIC\x20\x22%s\x22\x20%s','command','pipe','isBoolean','substr','setTimeout','GET\x20VARIABLE\x20\x22%s\x22','getData','EXEC\x20%s\x20%s','startsWith','520\x20End\x20of\x20proper','noop','prototype','getVariable','setContext','setPriority','utf8','result=','split','format','substring','setVariable','HANGUP','setEncoding','SET\x20PRIORITY\x20%s','no\x20code','call','SET\x20EXTENSION\x20%s','recordFile','GOTO\x20%s\x20%s\x20%s','function','./reply','streamFile','emit','sayDigits','write','error','exec','close','NO\x20MESSAGE','ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s','RECORD\x20FILE\x20\x22%s\x22\x20\x22%s\x22\x20\x22%s\x22\x20%s\x20%s\x20%s','VERBOSE\x20\x22%s\x22','timeout','STREAM\x20FILE\x20\x22%s\x22\x20\x22%s\x22','sayNumber','toLowerCase','E_AGI_SOCKET_CLOSE','setExtension'];(function(_0xfcf231,_0x250709){const _0xf8fd46=function(_0x56e9ec){while(--_0x56e9ec){_0xfcf231['push'](_0xfcf231['shift']());}};_0xf8fd46(++_0x250709);}(a1025_0x2507,0x18a));const a1025_0xf8fd=function(_0xfcf231,_0x250709){_0xfcf231=_0xfcf231-0x0;let _0xf8fd46=a1025_0x2507[_0xfcf231];return _0xf8fd46;};const _0x1d9446=a1025_0xf8fd;'use strict';const util=require('util'),_=require('lodash'),EventEmitter=require(_0x1d9446('0x0'))['EventEmitter'],AGIReply=require(_0x1d9446('0x38')),AGIError=require(_0x1d9446('0x7'));function AGIChannel(_0x56e9ec){const _0x246bbc=_0x1d9446,_0x1fafc4=this,_0x2c31a1=new AGIReply();let _0x20d82e=![],_0x5ef64c={};EventEmitter[_0x246bbc('0x33')](_0x1fafc4),_0x56e9ec[_0x246bbc('0x30')](_0x246bbc('0x29')),_0x56e9ec[_0x246bbc('0x1e')](0x8*0x3c*0x3c*0x3e8),_0x2c31a1[_0x246bbc('0x30')](_0x246bbc('0x29')),_0x2c31a1['on']('headers',function(_0x160317){const _0xb2adbf=_0x246bbc;for(const _0x34546a in _0x160317){_0x1fafc4[_0x34546a]=_0x160317[_0x34546a];}_0x1fafc4[_0xb2adbf('0x3a')]('ready');}),_0x2c31a1['on']('line',function(_0x188184){const _0x224140=_0x246bbc;if(_0x188184[_0x224140('0x47')]()==_0x224140('0xf')){_0x1fafc4['emit'](_0x224140('0xf'));return;}_0x188184[_0x224140('0x2d')](0x0,0xb)==_0x224140('0x4c')&&(_0x20d82e=!![]);_0x20d82e?(_0x5ef64c['rx']+=_0x188184+'\x0a',_0x188184[_0x224140('0x15')](_0x224140('0x23'))!=-0x1&&(_0x20d82e=![])):_0x5ef64c['rx']=_0x188184;if(_0x20d82e)return;if(typeof _0x5ef64c['cb']=='function'){let _0xab7642=_0x5ef64c['rx'][_0x224140('0x2d')](0x0,0x3),_0x451bda=null,_0x4f66dd=null;_0xab7642=parseInt(_0xab7642);if(isNaN(_0xab7642)){_0x5ef64c['cb'](null,{'code':0x1f4,'result':-0x1,'extra':_0x224140('0x32')});return;}if(_0xab7642!=0xc8){_0x5ef64c['cb'](null,{'code':_0xab7642,'result':-0x1,'extra':'KO'});return;}_0x451bda=_0x5ef64c['rx']['substring'](0x4)['replace'](_0x224140('0x2a'),'');_0x451bda[_0x224140('0x17')]('\x20')!=-0x1&&(_0x451bda=_0x451bda[_0x224140('0x1d')](0x0,_0x451bda[_0x224140('0x17')]('\x20')));_[_0x224140('0x22')](_0x451bda,'-1')&&(_0x451bda=parseInt(_0x451bda));_0x4f66dd=_0x5ef64c['rx'][_0x224140('0x2b')]('\x20');if(_0x4f66dd[_0x224140('0xd')]==0x3)_0x4f66dd=_0x4f66dd[0x2][_0x224140('0x2d')](0x1,_0x4f66dd[0x2][_0x224140('0xd')]-0x1);else{if(_0x4f66dd[_0x224140('0xd')]>0x3){const _0x33aa68=/\((.+)\)/,_0x2585d9=_0x5ef64c['rx']['match'](_0x33aa68);_0x2585d9?_0x4f66dd=_0x2585d9[0x1]:_0x4f66dd=null;}else _0x4f66dd=null;}_0x5ef64c['cb'](null,{'code':_0xab7642,'result':_0x451bda,'extra':_0x4f66dd});}}),_0x56e9ec['on'](_0x246bbc('0x3d'),function(_0x43d8de){const _0x187ddb=_0x246bbc;_0x1fafc4[_0x187ddb('0x3a')](_0x187ddb('0x3d'),new AGIError('E_AGI_SOCKET_ERROR',_0x43d8de[_0x187ddb('0x18')]));}),_0x56e9ec['on'](_0x246bbc('0x3f'),function(){const _0x2e5b0f=_0x246bbc;_0x1fafc4['emit'](_0x2e5b0f('0x3f'),new AGIError(_0x2e5b0f('0x48')));}),_0x56e9ec['on'](_0x246bbc('0x44'),function(){const _0x4e05c2=_0x246bbc;_0x1fafc4[_0x4e05c2('0x3a')](_0x4e05c2('0x44'),new AGIError('E_AGI_SOCKET_TIMEOUT')),_0x56e9ec['destroy']();}),_0x56e9ec[_0x246bbc('0x1b')](_0x2c31a1),(this['command']=function(_0x4c48dd,_0x29adbd){const _0x4ee1da=_0x246bbc;_0x4c48dd=_0x4c48dd||'',_0x29adbd=typeof _0x29adbd==_0x4ee1da('0x37')?_0x29adbd:new Function(),_0x5ef64c={'tx':_0x4c48dd,'rx':'','cb':_0x29adbd},_0x56e9ec[_0x4ee1da('0x3c')](_0x4c48dd+'\x0a');},this[_0x246bbc('0x3f')]=function(){const _0xe756b2=_0x246bbc;_0x56e9ec[_0xe756b2('0x4')]();});}util[_0x1d9446('0x16')](AGIChannel,EventEmitter),AGIChannel['prototype']['sendRequest']=function(_0x5b3d11){const _0x2bb0e9=_0x1d9446;return this[_0x2bb0e9('0x1a')][_0x2bb0e9('0xc')](this,_0x5b3d11);},AGIChannel['prototype'][_0x1d9446('0xe')]=function(){const _0x2bc188=_0x1d9446;return this[_0x2bc188('0x4a')](_0x2bc188('0x4b'));},AGIChannel[_0x1d9446('0x25')][_0x1d9446('0x20')]=function(_0x48834d,_0x37f7a8,_0x108b9d){const _0x3636a8=_0x1d9446;return _0x48834d=_0x48834d===undefined?_0x3636a8('0x5'):_0x48834d,_0x37f7a8=_0x37f7a8===undefined?'5':_0x37f7a8,_0x108b9d=_0x108b9d===undefined?'1':_0x108b9d,this[_0x3636a8('0x4a')](util['format']('GET\x20DATA\x20\x22%s\x22\x20%s\x20%s',_0x48834d,_0x37f7a8*0x3e8,_0x108b9d));},AGIChannel[_0x1d9446('0x25')][_0x1d9446('0x24')]=function(_0x43507d){const _0x2f34af=_0x1d9446;return _0x43507d=_0x43507d||_0x2f34af('0x40'),this['sendRequest'](util[_0x2f34af('0x2c')](_0x2f34af('0x43'),_0x43507d));},AGIChannel[_0x1d9446('0x25')][_0x1d9446('0x3e')]=function(_0x228872,_0x11d385){const _0x2c2274=_0x1d9446;if(_[_0x2c2274('0x12')](_0x11d385))return this[_0x2c2274('0x4a')](util[_0x2c2274('0x2c')](_0x2c2274('0x21'),_0x228872,_0x11d385[_0x2c2274('0x8')](',')));return this[_0x2c2274('0x4a')](util[_0x2c2274('0x2c')]('EXEC\x20%s\x20%s',_0x228872,_0x11d385));},AGIChannel[_0x1d9446('0x25')][_0x1d9446('0x27')]=function(_0x416dbc){const _0x30d044=_0x1d9446;return this[_0x30d044('0x4a')](util[_0x30d044('0x2c')](_0x30d044('0xa'),_0x416dbc));},AGIChannel[_0x1d9446('0x25')][_0x1d9446('0x49')]=function(_0x6d377c){const _0x16a0b7=_0x1d9446;return this[_0x16a0b7('0x4a')](util[_0x16a0b7('0x2c')](_0x16a0b7('0x34'),_0x6d377c));},AGIChannel[_0x1d9446('0x25')][_0x1d9446('0x28')]=function(_0x495c5f){const _0x2cf33e=_0x1d9446;return this[_0x2cf33e('0x4a')](util[_0x2cf33e('0x2c')](_0x2cf33e('0x31'),_0x495c5f));},AGIChannel[_0x1d9446('0x25')][_0x1d9446('0xf')]=function(){const _0x5bb257=_0x1d9446;return this[_0x5bb257('0x4a')](_0x5bb257('0x2f'));},AGIChannel[_0x1d9446('0x25')][_0x1d9446('0x2e')]=function(_0x285017,_0x512142){const _0x1d8e7e=_0x1d9446,_0x1475ab=_[_0x1d8e7e('0x1c')](_0x512142)||_['isNumber'](_0x512142)?_0x512142[_0x1d8e7e('0x4d')]():_0x512142;return this['sendRequest'](util['format'](_0x1d8e7e('0x10'),_0x285017,_0x1475ab?_0x1475ab['toString']()['replace'](/(\r\n|\n|\r)/gm,'\x20'):''));},AGIChannel['prototype'][_0x1d9446('0x46')]=function(_0x3ef976,_0x763585){const _0xa656ba=_0x1d9446;return this[_0xa656ba('0x4a')](util['format']('SAY\x20NUMBER\x20%s\x20%s',_0x3ef976,_0x763585));},AGIChannel['prototype'][_0x1d9446('0x3b')]=function(_0x3eb30e,_0x422229){const _0x453a32=_0x1d9446;return this[_0x453a32('0x4a')](util['format'](_0x453a32('0x13'),_0x3eb30e,_0x422229));},AGIChannel[_0x1d9446('0x25')][_0x1d9446('0x3')]=function(_0x12e765,_0x421f4b){const _0x5a785e=_0x1d9446;return this[_0x5a785e('0x4a')](util[_0x5a785e('0x2c')](_0x5a785e('0x19'),_0x12e765,_0x421f4b));},AGIChannel[_0x1d9446('0x25')][_0x1d9446('0x14')]=function(_0x3fab5a,_0x1a95ad,_0x15d2d6){const _0x305974=_0x1d9446;return _0x1a95ad=_0x1a95ad||this[_0x305974('0x9')],_0x15d2d6=_0x15d2d6||0x1,this[_0x305974('0x27')](_0x3fab5a),this[_0x305974('0x49')](_0x1a95ad),this['setPriority'](_0x15d2d6),this['noop'](util[_0x305974('0x2c')](_0x305974('0x36'),_0x3fab5a,_0x1a95ad,_0x15d2d6));},AGIChannel[_0x1d9446('0x25')][_0x1d9446('0x26')]=function(_0x34b21f){const _0x2b94bc=_0x1d9446;return this[_0x2b94bc('0x4a')](util['format'](_0x2b94bc('0x1f'),_0x34b21f));},AGIChannel[_0x1d9446('0x25')][_0x1d9446('0x35')]=function(_0x55c4b6,_0x3fd6ca,_0x5deb47,_0x2e0c60,_0x530eda,_0x1b9fd4){const _0x1482d4=_0x1d9446;return _0x3fd6ca=_0x3fd6ca||_0x1482d4('0x1'),_0x5deb47=_0x5deb47||'',_0x2e0c60=_0x2e0c60===undefined?-0x1:_0x2e0c60==='-1'?-0x1:_0x2e0c60*0x3e8,_0x530eda=_0x530eda===undefined?'':'s='+_0x530eda,_0x1b9fd4=_0x1b9fd4?_0x1482d4('0xb'):'',this[_0x1482d4('0x4a')](util[_0x1482d4('0x2c')](_0x1482d4('0x42'),_0x55c4b6,_0x3fd6ca,_0x5deb47,_0x2e0c60,_0x1b9fd4,_0x530eda));},AGIChannel[_0x1d9446('0x25')][_0x1d9446('0x39')]=function(_0x21659b,_0x11a5b1){const _0x507e4f=_0x1d9446;return _0x11a5b1=_0x11a5b1||'',this[_0x507e4f('0x4a')](util['format'](_0x507e4f('0x45'),_0x21659b,_0x11a5b1));},AGIChannel[_0x1d9446('0x25')]['agi']=function(_0x51e545){const _0x39d2df=_0x1d9446;return this[_0x39d2df('0x3e')]('AGI',_0x51e545);},AGIChannel['prototype'][_0x1d9446('0x6')]=function(_0x4ad873){const _0x411186=_0x1d9446;return this[_0x411186('0x3e')]('WAIT',_0x4ad873);},AGIChannel[_0x1d9446('0x25')][_0x1d9446('0x3d')]=function(_0x55ee82,_0x1d4838){const _0x43777b=_0x1d9446;return this['noop'](util['format'](_0x43777b('0x41'),_0x55ee82['id'],_0x55ee82[_0x43777b('0x2')],_0x1d4838)),{'code':0x1f4,'result':'-1','extra':''};},module[_0x1d9446('0x11')]=AGIChannel; \ No newline at end of file +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 diff --git a/server/services/agi/error.js b/server/services/agi/error.js index a2d76ec..ce5c707 100644 --- a/server/services/agi/error.js +++ b/server/services/agi/error.js @@ -1 +1 @@ -const a1026_0x53ac=['Missing\x20\x27ivr.entry\x27\x20menu.','Server\x20error.\x20Code:\x20%s.','E_AGI_UNDEFINED','exports','Missing\x20\x27ivr.agi_network_script\x27.','push','name','[LICENSE]\x20Server\x20max\x20connection.\x20Count:\x20%s.','Empty\x20command.','Socket\x20closed.','format','Undefined\x20error.','Server\x20closed.','Argument\x20\x27port\x27\x20missing\x20in\x20function\x20call.'];(function(_0x389a5e,_0x53ac74){const _0x313979=function(_0x445f7f){while(--_0x445f7f){_0x389a5e['push'](_0x389a5e['shift']());}};_0x313979(++_0x53ac74);}(a1026_0x53ac,0xc8));const a1026_0x3139=function(_0x389a5e,_0x53ac74){_0x389a5e=_0x389a5e-0x0;let _0x313979=a1026_0x53ac[_0x389a5e];return _0x313979;};const _0x23e791=a1026_0x3139;'use strict';const util=require('util'),error={'E_AGI_UNDEFINED':_0x23e791('0x7'),'E_AGI_ARGUMENT_PORT':_0x23e791('0x9'),'E_AGI_SERVER_ERROR':_0x23e791('0xb'),'E_AGI_SERVER_CLOSE':_0x23e791('0x8'),'E_AGI_SERVER_MAXCONNECTION':_0x23e791('0x3'),'E_AGI_SERVER_VOICE_DISABLED':'[LICENSE\x20VOICE]\x20Server\x20license\x20voice\x20disabled.','E_AGI_SOCKET_ERROR':'Socket\x20error.\x20Code:\x20%s.','E_AGI_SOCKET_CLOSE':_0x23e791('0x5'),'E_AGI_SOCKET_TIMEOUT':'Socket\x20timeout.','E_AGI_COMMAND_EMPTY':_0x23e791('0x4'),'E_AGI_IVR_AGI_NETWORK_SCRIPT':_0x23e791('0x0'),'E_AGI_IVR_ENTRY':_0x23e791('0xa')};function AGIError(_0x445f7f){const _0x6c8e77=_0x23e791;_0x445f7f=_0x445f7f||null;const _0x3e6109=_0x3e6109||[];let _0x8664b9=0x1,_0x22d233='';!error[_0x445f7f]&&(_0x445f7f=_0x6c8e77('0xc'));_0x3e6109['push'](error[_0x445f7f]);while(arguments[_0x8664b9]){_0x3e6109[_0x6c8e77('0x1')](arguments[_0x8664b9]),_0x8664b9++;}_0x22d233=util[_0x6c8e77('0x6')]['apply'](util,_0x3e6109),this['message']=_0x22d233,this[_0x6c8e77('0x2')]=_0x445f7f;}module[_0x23e791('0xd')]=AGIError; \ No newline at end of file +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 diff --git a/server/services/agi/graph/index.js b/server/services/agi/graph/index.js index 7daf0fa..6a98202 100644 --- a/server/services/agi/graph/index.js +++ b/server/services/agi/graph/index.js @@ -1 +1 @@ -const a1027_0x1138=['getVertex','invalid','default','addEdge','max\x20retry\x20reach','target','length','edges','vswitch','vertices','numberOfEdges','size','menu','traverseBFS','push','prototype','../../../config/logger','relations','agicommand','condition\x20not\x20found','no\x20vertex\x20found','no\x20edge/s\x20available','lodash','info','split','default\x20on\x20switch\x20not\x20found','includes'];(function(_0x1ddc8e,_0x113838){const _0x1cf84a=function(_0x4f576f){while(--_0x4f576f){_0x1ddc8e['push'](_0x1ddc8e['shift']());}};_0x1cf84a(++_0x113838);}(a1027_0x1138,0x1b9));const a1027_0x1cf8=function(_0x1ddc8e,_0x113838){_0x1ddc8e=_0x1ddc8e-0x0;let _0x1cf84a=a1027_0x1138[_0x1ddc8e];return _0x1cf84a;};const _0x5e9d29=a1027_0x1cf8;'use strict';const _=require(_0x5e9d29('0xd')),logger=require(_0x5e9d29('0x7'))('agi'),verticesWithRetry=[_0x5e9d29('0x3'),'getdigits','getsecretdigits'],Graph=function(){const _0x5852b5=_0x5e9d29;this[_0x5852b5('0x0')]={},this[_0x5852b5('0x19')]={},this['numberOfEdges']=0x0;};Graph[_0x5e9d29('0x6')]['addVertex']=function(_0x4f576f){this['vertices'][_0x4f576f['id']]=_0x4f576f,this['edges'][_0x4f576f['id']]=[];},Graph[_0x5e9d29('0x6')][_0x5e9d29('0x15')]=function(_0x4bf8b6,_0x16277f,_0x359f82){const _0x5d7674=_0x5e9d29;this[_0x5d7674('0x19')][_0x4bf8b6][_0x5d7674('0x5')]({'target':_0x16277f,'condition':_0x359f82}),this['numberOfEdges']+=0x1;},Graph[_0x5e9d29('0x6')][_0x5e9d29('0x2')]=function(){const _0x3953c1=_0x5e9d29;return _[_0x3953c1('0x2')](this[_0x3953c1('0x0')]);},Graph[_0x5e9d29('0x6')][_0x5e9d29('0x8')]=function(){const _0x1f5436=_0x5e9d29;return this[_0x1f5436('0x1')];},Graph[_0x5e9d29('0x6')][_0x5e9d29('0x12')]=function(_0x4c277f){const _0x1ed978=_0x5e9d29;return this[_0x1ed978('0x0')][_0x4c277f];},Graph['prototype'][_0x5e9d29('0x4')]=function(_0x23ebb8,_0x29d0e9){const _0x34e9a9=_0x5e9d29;if(!this['vertices'][_0x23ebb8])return logger[_0x34e9a9('0xe')](_0x34e9a9('0xb'));const _0x2bdff7=_0x29d0e9(this[_0x34e9a9('0x0')][_0x23ebb8]);if(!_0x2bdff7)return logger[_0x34e9a9('0xe')]('stop\x20traverse');if(this['edges'][_0x23ebb8]['length']===0x0)return logger[_0x34e9a9('0xe')](_0x34e9a9('0xc'));const _0x271c6f=![],_0x3d4b0f=[];for(let _0x3c341d=0x0,_0x5c02c1=[],_0x51a84f=![];_0x3c341d\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','then','root','result','getLicense','close','continueAt','listening','arg_1','[LISTENING]\x20Cally\x20Square\x20listening\x20%s:%d','./vertices','stack','priority','../../config/license/util','YYYY-MM-DD\x20HH:mm:ss','mxGraphModel','mxCell','undefined','substring','isArray','port','Project\x20%s\x20not\x20published','log','../../globals','127.0.0.1','extension','agi','target','[HANGUP]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','[ERROR]\x20%s','vertex','traverseBFS','debug','length','defaults','[CLOSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','createSquareReport','[START]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','info','error','inspect','retry','voice','finally','message','Cally\x20Square\x20server\x20listening\x20on\x20port\x20%d!','toString','source','uniqueid','xml2json','catch','isUndefined','gotoc\x20block\x20stop\x20traverse\x20BFS','response','gotoc','value','[LICENSE]\x20VOICE\x20IS\x20DISABLED','code'];(function(_0x284229,_0x4b182f){const _0x292e64=function(_0x4947db){while(--_0x4947db){_0x284229['push'](_0x284229['shift']());}};_0x292e64(++_0x4b182f);}(a1028_0x4b18,0x6e));const a1028_0x292e=function(_0x284229,_0x4b182f){_0x284229=_0x284229-0x0;let _0x292e64=a1028_0x4b18[_0x284229];return _0x292e64;};const _0x4dcc01=a1028_0x292e;'use strict';require(_0x4dcc01('0x11'));const parser=require(_0x4dcc01('0x2b')),_=require(_0x4dcc01('0x3c')),util=require('util'),moment=require(_0x4dcc01('0x42')),config=require('../../config/environment'),logger=require('../../config/logger')('agi'),utilLicense=require(_0x4dcc01('0x7')),rpc=require('./rpc'),mailRpc=require('./mailRpc'),Graph=require('./graph'),Vertices=require(_0x4dcc01('0x4')),AGI_CODE_SUCCESS=0xc8,AGI_RESULT_ERROR=-0x1;config[_0x4dcc01('0x14')]=_[_0x4dcc01('0x1c')](config[_0x4dcc01('0x14')],{'ip':_0x4dcc01('0x12'),'port':0x11dd});async function connectionHandler(_0x4947db){const _0x14344d=_0x4dcc01;try{await setChannelVariables(_0x4947db),await agiHandler(_0x4947db);}catch(_0x6cd323){logger[_0x14344d('0x21')](_0x6cd323[_0x14344d('0x5')]);}}function listeningHandler(){const _0x56fa36=_0x4dcc01;console[_0x56fa36('0x10')](_0x56fa36('0x27'),config[_0x56fa36('0x14')][_0x56fa36('0xe')]),logger[_0x56fa36('0x20')](util[_0x56fa36('0x47')](_0x56fa36('0x3'),config['agi']['ip'],config[_0x56fa36('0x14')]['port']));}function errorHandler(_0xa1957e){const _0x181eda=_0x4dcc01;_0xa1957e&&_0xa1957e[_0x181eda('0x48')]&&_0xa1957e[_0x181eda('0x26')]?logger[_0x181eda('0x21')](util['format']('[%s]\x20%s',_0xa1957e[_0x181eda('0x48')],_0xa1957e['message'])):logger[_0x181eda('0x21')](util[_0x181eda('0x47')](_0x181eda('0x17'),_0xa1957e[_0x181eda('0x5')]));}function closeHandler(){const _0x5ba9bb=_0x4dcc01;logger[_0x5ba9bb('0x20')](util[_0x5ba9bb('0x47')](_0x5ba9bb('0x1d'),this[_0x5ba9bb('0x2')],this[_0x5ba9bb('0x3d')],this[_0x5ba9bb('0x3b')],this[_0x5ba9bb('0x41')],this[_0x5ba9bb('0x2a')]));try{createSquareReport(this);}catch(_0x4a8bb3){logger[_0x5ba9bb('0x21')](_0x4a8bb3['stack']);}}function timeoutHandler(){const _0xebe357=_0x4dcc01;logger['info'](util[_0xebe357('0x47')]('[TIMEOUT]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s',this[_0xebe357('0x2')],this['calleridname'],this[_0xebe357('0x3b')],this[_0xebe357('0x41')],this[_0xebe357('0x2a')]));}function hangupHandler(){const _0x203811=_0x4dcc01;logger['info'](util[_0x203811('0x47')](_0x203811('0x16'),this[_0x203811('0x2')],this[_0x203811('0x3d')],this[_0x203811('0x3b')],this[_0x203811('0x41')],this[_0x203811('0x2a')])),this[_0x203811('0x34')]=!![];}function getRoot(_0x5f2202){const _0x1c4174=_0x4dcc01;return parser['toJson'](_0x5f2202,{'object':!![]})[_0x1c4174('0x9')][_0x1c4174('0x4d')];}function addVertex(_0x3b201a,_0x2e39ad,_0xc74e35){const _0x5cba40=_0x4dcc01;_0x2e39ad['agicommand']=_0xc74e35,typeof _0x2e39ad['retry']!==_0x5cba40('0xb')&&(_0x2e39ad['maxRetry']=parseInt(_0x2e39ad[_0x5cba40('0x23')],0xa)),_0x3b201a['addVertex'](_['omit'](_0x2e39ad,_0x5cba40('0xa')));}function initGraph(_0x5e062b,_0x674e46){const _0x12fdbd=_0x4dcc01,_0x5c8ae8=new Graph();for(const _0x3b145f in _0x5e062b){if(typeof _0x5e062b[_0x3b145f]!=='undefined'){if(_[_0x12fdbd('0xd')](_0x5e062b[_0x3b145f]))for(let _0x5ae988=0x0;_0x5ae988<_0x5e062b[_0x3b145f][_0x12fdbd('0x1b')];_0x5ae988+=0x1){addVertex(_0x5c8ae8,_0x5e062b[_0x3b145f][_0x5ae988],_0x3b145f);}else addVertex(_0x5c8ae8,_0x5e062b[_0x3b145f],_0x3b145f);}}for(let _0x1717a8=0x0;_0x1717a8<_0x674e46[_0x12fdbd('0x1b')];_0x1717a8+=0x1){_0x674e46[_0x1717a8]['source']&&_0x674e46[_0x1717a8][_0x12fdbd('0x15')]&&_0x5c8ae8['addEdge'](_0x674e46[_0x1717a8][_0x12fdbd('0x29')],_0x674e46[_0x1717a8]['target'],_0x674e46[_0x1717a8][_0x12fdbd('0x31')]);}return _0x5c8ae8;}function getSquareProject(_0x515325,_0x30debf){const _0x406e65=_0x4dcc01;rpc['getSquareProject'](_0x515325)[_0x406e65('0x4c')](function(_0x282006){_0x30debf(null,_0x282006);})[_0x406e65('0x2c')](function(_0x5e6bba){_0x30debf(null,_0x5e6bba);});}function createSquareReport(_0x46ffb8,_0x43930b){const _0x35f87c=_0x4dcc01;rpc[_0x35f87c('0x1e')](_0x46ffb8)['then'](function(_0x193ce3){_0x43930b&&_0x43930b(null,_0x193ce3);})[_0x35f87c('0x2c')](function(_0x5fad90){_0x43930b&&_0x43930b(null,_0x5fad90);});}async function setChannelVariables(_0x699633){const _0x3ecbfb=_0x4dcc01;for(const _0x1cf90c in _0x699633){typeof _0x699633[_0x1cf90c]!==_0x3ecbfb('0xb')&&(_0x1cf90c['indexOf']('agi_')===0x0&&(_0x699633[_0x1cf90c[_0x3ecbfb('0xc')](0x4)]=_0x699633[_0x1cf90c],delete _0x699633[_0x1cf90c]));}return Promise[_0x3ecbfb('0x37')](_0x699633);}function getLogFromObject(_0x37e7aa){const _0x403744=_0x4dcc01;return util[_0x403744('0x22')](_0x37e7aa,{'showHidden':![],'depth':null});}async function agiHandler(_0x29f9ea){const _0x825bf1=_0x4dcc01;let _0x4d2c1,_0x18ab04,_0x52034c,_0x5bf025;logger[_0x825bf1('0x1a')]('variables',JSON[_0x825bf1('0x35')](_0x29f9ea,null,0x2)),logger[_0x825bf1('0x20')](util[_0x825bf1('0x47')](_0x825bf1('0x1f'),_0x29f9ea[_0x825bf1('0x2')],_0x29f9ea['calleridname'],_0x29f9ea[_0x825bf1('0x3b')],_0x29f9ea[_0x825bf1('0x41')],_0x29f9ea[_0x825bf1('0x2a')])),_0x29f9ea['on']('error',errorHandler),_0x29f9ea['on'](_0x825bf1('0x50'),closeHandler),_0x29f9ea['on']('timeout',timeoutHandler),_0x29f9ea['evtHangup']=![],_0x29f9ea['on']('hangup',hangupHandler);const _0x73c366=getSquareProject['sync'](null,_0x29f9ea[_0x825bf1('0x2')]);return _0x73c366?_0x73c366[_0x825bf1('0x3a')]?(_0x4d2c1=getRoot(_0x73c366[_0x825bf1('0x3a')]),_0x4d2c1&&_0x4d2c1['start']&&(logger['debug']('root',JSON['stringify'](_0x4d2c1,null,0x2)),_0x29f9ea[_0x825bf1('0x39')]=moment()[_0x825bf1('0x47')](_0x825bf1('0x8')),_0x18ab04=initGraph(_[_0x825bf1('0x38')](_0x4d2c1,_0x825bf1('0xa')),_0x4d2c1[_0x825bf1('0xa')]),_0x52034c=new Vertices(_0x29f9ea,rpc,mailRpc),logger['info'](util[_0x825bf1('0x47')]('[START\x20TRAVERSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s',_0x29f9ea[_0x825bf1('0x2')],_0x29f9ea['calleridname'],_0x29f9ea[_0x825bf1('0x3b')],_0x29f9ea['dnid'],_0x29f9ea[_0x825bf1('0x2a')])),_0x18ab04[_0x825bf1('0x19')](_0x4d2c1[_0x825bf1('0x3e')]['id'],function(_0x48097b){const _0x114de8=_0x825bf1;try{_0x48097b=_0x52034c['clear'](_0x48097b),logger['debug']('vertex',JSON[_0x114de8('0x35')](_0x48097b,null,0x2));if(_0x48097b[_0x114de8('0x45')]===_0x114de8('0x30'))return logger[_0x114de8('0x20')](_0x114de8('0x2e')),_0x29f9ea[_0x114de8('0x43')]=_0x48097b['context']||_0x29f9ea[_0x114de8('0x43')],_0x29f9ea[_0x114de8('0x13')]=_0x48097b[_0x114de8('0x13')],_0x29f9ea[_0x114de8('0x6')]=_0x48097b[_0x114de8('0x6')]?_0x48097b['priority']-0x1:0x1,null;else return _0x48097b&&_0x52034c[_0x48097b[_0x114de8('0x45')]]?(_0x5bf025=_0x52034c[_0x48097b['agicommand']](_0x48097b),logger[_0x114de8('0x20')](_0x114de8('0x2f'),JSON[_0x114de8('0x35')](_0x5bf025,null,0x2)),_0x5bf025&&_0x5bf025[_0x114de8('0x33')]===AGI_CODE_SUCCESS&&_0x5bf025['result']!==AGI_RESULT_ERROR&&!_0x29f9ea[_0x114de8('0x34')]?(logger[_0x114de8('0x1a')](_0x114de8('0x2f'),getLogFromObject(_0x5bf025)),_[_0x114de8('0x2d')](_0x5bf025[_0x114de8('0x4e')])?null:_0x5bf025[_0x114de8('0x4e')]['toString']()):(logger[_0x114de8('0x21')](_0x114de8('0x2f'),getLogFromObject(_0x5bf025)),null)):(logger[_0x114de8('0x21')](_0x114de8('0x46')),null);}catch(_0x3c33a6){return logger['error'](_0x3c33a6['stack']),null;}}),_0x4d2c1['finally']&&(logger[_0x825bf1('0x20')](util[_0x825bf1('0x47')](_0x825bf1('0x4b'),_0x29f9ea['arg_1'],_0x29f9ea[_0x825bf1('0x3d')],_0x29f9ea[_0x825bf1('0x3b')],_0x29f9ea[_0x825bf1('0x41')],_0x29f9ea[_0x825bf1('0x2a')])),_0x18ab04['traverseBFS'](_0x4d2c1['finally']['id'],function(_0x5919fc){const _0x54518a=_0x825bf1;try{return _0x5919fc=_0x52034c[_0x54518a('0x36')](_0x5919fc),logger[_0x54518a('0x1a')](_0x54518a('0x18'),JSON[_0x54518a('0x35')](_0x5919fc,null,0x2)),_0x5919fc&&_0x52034c[_0x5919fc[_0x54518a('0x45')]]?(_0x5bf025=_0x52034c[_0x5919fc[_0x54518a('0x45')]](_0x5919fc),_0x5bf025?(logger[_0x54518a('0x1a')](_0x54518a('0x2f'),getLogFromObject(_0x5bf025)),_['isUndefined'](_0x5bf025[_0x54518a('0x4e')])?null:_0x5bf025[_0x54518a('0x4e')][_0x54518a('0x28')]()):(logger[_0x54518a('0x21')]('response',getLogFromObject(_0x5bf025)),null)):(logger[_0x54518a('0x21')](_0x54518a('0x46')),null);}catch(_0x5836da){return logger[_0x54518a('0x21')](_0x5836da[_0x54518a('0x5')]),null;}})),logger['info'](util[_0x825bf1('0x47')]('[END]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s',_0x29f9ea[_0x825bf1('0x2')],_0x29f9ea[_0x825bf1('0x3d')],_0x29f9ea[_0x825bf1('0x3b')],_0x29f9ea[_0x825bf1('0x41')],_0x29f9ea[_0x825bf1('0x2a')])),logger[_0x825bf1('0x20')](util[_0x825bf1('0x47')]('[GOTO]\x20context:\x20%s\x20extension:\x20%s\x20priority:\x20%s',_0x29f9ea[_0x825bf1('0x43')],_0x29f9ea[_0x825bf1('0x13')],parseInt(_0x29f9ea[_0x825bf1('0x6')],0xa)+0x1)),_0x29f9ea[_0x825bf1('0x0')](_0x29f9ea['context'],_0x29f9ea[_0x825bf1('0x13')],parseInt(_0x29f9ea['priority'],0xa)+0x1),_0x29f9ea[_0x825bf1('0x50')]())):(logger['error'](util[_0x825bf1('0x47')](_0x825bf1('0xf'),_0x29f9ea['arg_1'])),_0x29f9ea[_0x825bf1('0x0')](_0x29f9ea['context'],_0x29f9ea[_0x825bf1('0x13')],parseInt(_0x29f9ea['priority'],0xa)+0x1),_0x29f9ea[_0x825bf1('0x50')]()):(logger[_0x825bf1('0x21')](util[_0x825bf1('0x47')](_0x825bf1('0x49'),_0x29f9ea[_0x825bf1('0x2')])),_0x29f9ea['continueAt'](_0x29f9ea[_0x825bf1('0x43')],_0x29f9ea[_0x825bf1('0x13')],parseInt(_0x29f9ea[_0x825bf1('0x6')],0xa)+0x1),_0x29f9ea[_0x825bf1('0x50')]()),Promise[_0x825bf1('0x37')]();}function main(){const _0x8a6e57=_0x4dcc01;let _0x33b4eb;return utilLicense[_0x8a6e57('0x4f')]()[_0x8a6e57('0x4c')](function(_0x47defe){const _0x1a00ac=_0x8a6e57;_0x47defe&&(_0x47defe[_0x1a00ac('0x24')]?_0x47defe['callysquare']&&_0x47defe[_0x1a00ac('0x4a')]>0x0?(logger[_0x1a00ac('0x20')](util[_0x1a00ac('0x47')](_0x1a00ac('0x40'),_0x47defe[_0x1a00ac('0x4a')])),_0x33b4eb=_0x47defe[_0x1a00ac('0x4a')]):logger[_0x1a00ac('0x20')](_0x1a00ac('0x44')):(logger[_0x1a00ac('0x20')](_0x1a00ac('0x32')),_0x33b4eb=-0x1));})[_0x8a6e57('0x2c')](function(_0x2862ac){const _0x3bba3d=_0x8a6e57;logger[_0x3bba3d('0x21')]('[LICENSE]',_0x2862ac[_0x3bba3d('0x5')]);})[_0x8a6e57('0x25')](function(){const _0x1bb2ca=_0x8a6e57,_0x116b4c=require(_0x1bb2ca('0x3f'))(config['agi'][_0x1bb2ca('0xe')],config[_0x1bb2ca('0x14')]['ip'],_0x33b4eb);_0x116b4c['on']('error',errorHandler),_0x116b4c['on'](_0x1bb2ca('0x1'),listeningHandler),_0x116b4c['on']('connection',connectionHandler),_0x116b4c['on'](_0x1bb2ca('0x50'),closeHandler);});}main(); \ No newline at end of file +const a1028_0x5d90=['resolve','agi','util','../../config/logger','priority','value','agicommand\x20not\x20found','log','debug','indexOf','finally','maxRetry','clear','port','variables','./graph','listening','[ERROR]\x20%s','[START]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\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 diff --git a/server/services/agi/mailRpc/index.js b/server/services/agi/mailRpc/index.js index 4aadbc3..c0bd2d6 100644 --- a/server/services/agi/mailRpc/index.js +++ b/server/services/agi/mailRpc/index.js @@ -1 +1 @@ -const a1029_0x250e=['result','client','jayson/promise','message','then','http','SendMail','error'];(function(_0xd11cb6,_0x250eb6){const _0x39b834=function(_0x458107){while(--_0x458107){_0xd11cb6['push'](_0xd11cb6['shift']());}};_0x39b834(++_0x250eb6);}(a1029_0x250e,0xd3));const a1029_0x39b8=function(_0xd11cb6,_0x250eb6){_0xd11cb6=_0xd11cb6-0x0;let _0x39b834=a1029_0x250e[_0xd11cb6];return _0x39b834;};const _0x17e70e=a1029_0x39b8;'use strict';const jayson=require(_0x17e70e('0x7')),client=jayson[_0x17e70e('0x6')][_0x17e70e('0x2')]({'port':0x232b});function request(_0x458107,_0xa3ddc9){return new Promise(function(_0x5bc5aa,_0x202446){const _0x14b050=a1029_0x39b8;return client['request'](_0x458107,_0xa3ddc9)[_0x14b050('0x1')](function(_0x2c97c6){const _0x5f14b1=_0x14b050;return _0x2c97c6[_0x5f14b1('0x4')]?_0x202446(_0x2c97c6[_0x5f14b1('0x4')][_0x5f14b1('0x0')]):_0x5bc5aa(_0x2c97c6[_0x5f14b1('0x5')]);})['catch'](function(_0x5dd18f){return _0x202446(_0x5dd18f);});});}exports['sendMailMessage']=function(_0xba519,_0x2679a9){const _0x5dd72b=_0x17e70e;return request(_0x5dd72b('0x3'),{'account':_0xba519,'message':_0x2679a9});}; \ No newline at end of file +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 diff --git a/server/services/agi/reply.js b/server/services/agi/reply.js index 314b555..15403b0 100644 --- a/server/services/agi/reply.js +++ b/server/services/agi/reply.js @@ -1 +1 @@ -const a1030_0x3303=['_inBody','Transform','trim','slice','indexOf','inherits','length','_localBuffer','toString','\x0d\x0a\x0d\x0a','substring','emit','stream','line','prototype','_transform','exports'];(function(_0xfb23be,_0x330355){const _0x1e944c=function(_0x12f177){while(--_0x12f177){_0xfb23be['push'](_0xfb23be['shift']());}};_0x1e944c(++_0x330355);}(a1030_0x3303,0xd4));const a1030_0x1e94=function(_0xfb23be,_0x330355){_0xfb23be=_0xfb23be-0x0;let _0x1e944c=a1030_0x3303[_0xfb23be];return _0x1e944c;};const _0x21064e=a1030_0x1e94;'use strict';const util=require('util'),Transform=require(_0x21064e('0x4'))[_0x21064e('0xa')];function AGIReply(_0x12f177){const _0x52c2ae=_0x21064e;Transform['call'](this,_0x12f177),this[_0x52c2ae('0x10')]='',this['_inBody']=![];}util[_0x21064e('0xe')](AGIReply,Transform),AGIReply[_0x21064e('0x6')][_0x21064e('0x7')]=function(_0x542ed4,_0x2a6d19,_0x1d664b){const _0x4dc09e=_0x21064e,_0x4c43d4='\x0a',_0x3f1d34=['\x0a\x0a',_0x4dc09e('0x1')];let _0x40b65d=-0x1,_0x226ff3=-0x1,_0x54e422='',_0x5ddf99=0x0,_0x36d8f9='',_0x1bb005='';this[_0x4dc09e('0x10')]+=_0x542ed4[_0x4dc09e('0x0')](),_0x36d8f9=this['_localBuffer'];if(!this['_inBody']){_0x5ddf99=0x0;while(_0x3f1d34[_0x5ddf99]){while((_0x226ff3=_0x36d8f9['indexOf'](_0x3f1d34[_0x5ddf99]))!=-0x1){_0x54e422=_0x3f1d34[_0x5ddf99],_0x1bb005=_0x36d8f9[_0x4dc09e('0x2')](0x0,_0x226ff3),_0x36d8f9=_0x36d8f9[_0x4dc09e('0x2')](_0x226ff3+_0x54e422[_0x4dc09e('0xf')]);const _0x12cf5b=_0x1bb005['split'](_0x4c43d4);let _0xf7c1c1=0x0;const _0x2a4ac0={};let _0x1f2b23='',_0x2510d4='',_0x4ce029=-0x1;while(_0x12cf5b[_0xf7c1c1]){_0x4ce029=_0x12cf5b[_0xf7c1c1][_0x4dc09e('0xd')](':');if(_0x4ce029!=-0x1)_0x1f2b23=_0x12cf5b[_0xf7c1c1][_0x4dc09e('0xc')](0x0,_0x4ce029)['trim'](),_0x2510d4=_0x12cf5b[_0xf7c1c1][_0x4dc09e('0xc')](_0x4ce029+0x1)[_0x4dc09e('0xb')](),_0x1f2b23[_0x4dc09e('0xf')]>0x0&&(_0x2a4ac0[_0x1f2b23]=_0x2510d4);else{}_0xf7c1c1++;}this['emit']('headers',_0x2a4ac0),this[_0x4dc09e('0x9')]=!![];}_0x5ddf99++;}this[_0x4dc09e('0x10')]=_0x36d8f9;}else{while((_0x40b65d=_0x36d8f9['indexOf'](_0x4c43d4))!=-0x1){_0x1bb005=_0x36d8f9[_0x4dc09e('0x2')](0x0,_0x40b65d),this[_0x4dc09e('0x3')](_0x4dc09e('0x5'),_0x1bb005),_0x36d8f9=_0x36d8f9[_0x4dc09e('0x2')](_0x40b65d+_0x4c43d4[_0x4dc09e('0xf')]);}this[_0x4dc09e('0x10')]=_0x36d8f9;}_0x1d664b();},module[_0x21064e('0x8')]=AGIReply; \ No newline at end of file +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 diff --git a/server/services/agi/rpc/index.js b/server/services/agi/rpc/index.js index 22d4618..fef1c95 100644 --- a/server/services/agi/rpc/index.js +++ b/server/services/agi/rpc/index.js @@ -1 +1 @@ -const a1031_0x534a=['CreateSquareDetailsReport','getIntervalById','YYYY-MM-DD\x20HH:mm:ss','Intervals','LoginUser','ShowSmsAccount','createSquareRecording','arg_1','CreateSquareReport','CreateSquareMessage','getUserById','getTrunkById','production','email','save_name','merge','error','dsn','ShowSquareProject','agentLogout','getMailAccountById','ShowCmHopper','Interval','createCmContact','message','getSquareProjectById','http','createSquareReport','arg_2','ShowMailAccount','ShowPause','then','moment','request','UnpauseUser','name','LogoutUser','MailServerOut','PauseUser','Smtp','lodash','CreateSmsMessage','ShowSound','ShowInterval','createSquareDetailsReport','createSmsMessage','getVoiceQueueById','getSquareOdbcById','jayson/promise','catch','getVariableById','createSquareMessage','CreateSquareRecording','agentLogin','format','ShowSquareOdbc','getPauseById','phone','ShowTrunk'];(function(_0x5c73aa,_0x534a85){const _0x4316c8=function(_0x48f900){while(--_0x48f900){_0x5c73aa['push'](_0x5c73aa['shift']());}};_0x4316c8(++_0x534a85);}(a1031_0x534a,0xad));const a1031_0x4316=function(_0x5c73aa,_0x534a85){_0x5c73aa=_0x5c73aa-0x0;let _0x4316c8=a1031_0x534a[_0x5c73aa];return _0x4316c8;};const _0x5dc4fd=a1031_0x4316;'use strict';const moment=require(_0x5dc4fd('0x24')),_=require(_0x5dc4fd('0x2c')),jayson=require(_0x5dc4fd('0x34')),client=jayson['client'][_0x5dc4fd('0x1e')]({'port':0x2329});function request(_0x48f900,_0x36311c){return new Promise(function(_0x253d72,_0x52600f){const _0x3e2692=a1031_0x4316;return client[_0x3e2692('0x25')](_0x48f900,_0x36311c)[_0x3e2692('0x23')](function(_0x27dcd8){const _0x1a26c6=_0x3e2692;return _0x27dcd8[_0x1a26c6('0x14')]?_0x52600f(_0x27dcd8[_0x1a26c6('0x14')][_0x1a26c6('0x1c')]):_0x253d72(_0x27dcd8['result']);})[_0x3e2692('0x35')](function(_0x4e2c07){return _0x52600f(_0x4e2c07);});});}exports['getSquareProject']=function(_0x5eb391){const _0x3d4c4e=_0x5dc4fd;return request('ShowSquareProject',{'options':{'raw':![],'where':{'name':_0x5eb391},'attributes':[_0x3d4c4e('0x10')]}});},exports[_0x5dc4fd('0x18')]=function(_0x5e1085){const _0xac9c4=_0x5dc4fd;return request(_0xac9c4('0x21'),{'options':{'raw':![],'where':{'id':_0x5e1085},'include':[{'model':_0xac9c4('0x29'),'as':_0xac9c4('0x2b')}],'attributes':['id',_0xac9c4('0x27'),_0xac9c4('0x11')]}});},exports[_0x5dc4fd('0x1d')]=function(_0x49a764){const _0x11c293=_0x5dc4fd;return request(_0x11c293('0x16'),{'options':{'where':{'id':_0x49a764},'attributes':[_0x11c293('0x27')]}});},exports[_0x5dc4fd('0x32')]=function(_0x1de513){return request('ShowVoiceQueue',{'options':{'where':{'id':_0x1de513},'attributes':['name']}});},exports[_0x5dc4fd('0x36')]=function(_0x12bd47){const _0x49e743=_0x5dc4fd;return request('ShowVariable',{'options':{'where':{'id':_0x12bd47},'attributes':[_0x49e743('0x27')]}});},exports[_0x5dc4fd('0x33')]=function(_0x5336bb){const _0x286f85=_0x5dc4fd;return request(_0x286f85('0x0'),{'options':{'where':{'id':_0x5336bb},'attributes':[_0x286f85('0x15')]}});},exports[_0x5dc4fd('0xe')]=function(_0xd811e1){return request('ShowUser',{'options':{'where':{'id':_0xd811e1},'attributes':['name']}});},exports[_0x5dc4fd('0xf')]=function(_0x4ce8e8){const _0x2c494a=_0x5dc4fd;return request(_0x2c494a('0x3'),{'options':{'where':{'id':_0x4ce8e8},'attributes':[_0x2c494a('0x27')]}});},exports['getSoundById']=function(_0x185e84){const _0x166b68=_0x5dc4fd;return request(_0x166b68('0x2e'),{'options':{'where':{'id':_0x185e84},'attributes':[_0x166b68('0x12')]}});},exports[_0x5dc4fd('0x5')]=function(_0x107bfd){const _0xad77ff=_0x5dc4fd;return request(_0xad77ff('0x2f'),{'options':{'raw':![],'where':{'id':_0x107bfd},'include':[{'model':_0xad77ff('0x1a'),'as':_0xad77ff('0x7')}]}});},exports['getSmsAccountById']=function(_0x2c92e5){const _0x40559c=_0x5dc4fd;return request(_0x40559c('0x9'),{'options':{'where':{'id':_0x2c92e5},'attributes':['id','name']}});},exports[_0x5dc4fd('0x31')]=function(_0x4d5c50){const _0x4d3e96=_0x5dc4fd;return request(_0x4d3e96('0x2d'),{'body':_0x4d5c50});},exports[_0x5dc4fd('0x30')]=function(_0x799bbf){const _0x3fd4ce=_0x5dc4fd;return request(_0x3fd4ce('0x4'),{'body':_0x799bbf});},exports[_0x5dc4fd('0x1f')]=function(_0x36c190){const _0x302e04=_0x5dc4fd;return request(_0x302e04('0xc'),{'body':_[_0x302e04('0x13')](_0x36c190,{'project_name':_0x36c190[_0x302e04('0xb')],'prev_project_name':_0x36c190[_0x302e04('0x20')]||'','is_subproject':_0x36c190[_0x302e04('0x20')]?!![]:![],'leaveAt':moment()[_0x302e04('0x3a')](_0x302e04('0x6'))})});},exports[_0x5dc4fd('0xa')]=function(_0x3b0a7c){const _0x429ac3=_0x5dc4fd;return request(_0x429ac3('0x38'),{'body':_0x3b0a7c});},exports[_0x5dc4fd('0x37')]=function(_0x54ff29){const _0x3b8f43=_0x5dc4fd;return request(_0x3b8f43('0xd'),{'body':_0x54ff29});},exports[_0x5dc4fd('0x1b')]=function(_0x4af054){const _0x1d3164=_0x5dc4fd;return request(_0x1d3164('0x19'),{'options':{'raw':![],'where':{'phone':_0x4af054[_0x1d3164('0x2')],'ListId':_0x4af054['ListId']}}})['then'](function(_0x5a5621){if(_0x5a5621)return _0x5a5621;return request('CreateCmContact',{'body':_0x4af054});});},exports[_0x5dc4fd('0x1')]=function(_0x558c9a){const _0x5a78f7=_0x5dc4fd;return request(_0x5a78f7('0x22'),{'options':{'where':{'id':_0x558c9a},'attributes':[_0x5a78f7('0x27')]}});},exports[_0x5dc4fd('0x39')]=function(_0x1f545c,_0x32a40f){const _0x19f42a=_0x5dc4fd;return request(_0x19f42a('0x8'),{'body':{'interface':_0x32a40f},'options':{'where':_0x1f545c}});},exports['agentPause']=function(_0x53fd78,_0x33e59b,_0x41a44f){const _0x51861e=_0x5dc4fd;return request(_0x51861e('0x2a'),{'body':{'type':_0x33e59b,'uniqueid':_0x41a44f},'options':{'where':_0x53fd78}});},exports['agentUnpause']=function(_0x1c751f){const _0x3a1486=_0x5dc4fd;return request(_0x3a1486('0x26'),{'body':{},'options':{'where':_0x1c751f}});},exports[_0x5dc4fd('0x17')]=function(_0x5e2728){const _0x2cac7b=_0x5dc4fd;return request(_0x2cac7b('0x28'),{'body':{},'options':{'where':_0x5e2728}});}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/aws/index.js b/server/services/agi/scripts/aws/index.js index b7d0855..1adf3af 100644 --- a/server/services/agi/scripts/aws/index.js +++ b/server/services/agi/scripts/aws/index.js @@ -1 +1 @@ -const a1032_0x5c85=['./lex','./polly'];(function(_0xeb4571,_0x5c85de){const _0xa36c37=function(_0x23f0ab){while(--_0x23f0ab){_0xeb4571['push'](_0xeb4571['shift']());}};_0xa36c37(++_0x5c85de);}(a1032_0x5c85,0xf6));const a1032_0xa36c=function(_0xeb4571,_0x5c85de){_0xeb4571=_0xeb4571-0x0;let _0xa36c37=a1032_0x5c85[_0xeb4571];return _0xa36c37;};const _0x58437b=a1032_0xa36c,polly=require(_0x58437b('0x1')),lex=require(_0x58437b('0x0'));module['exports']={'polly':polly,'lex':lex}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/aws/lex/index.js b/server/services/agi/scripts/aws/lex/index.js index cae1d87..4ad7b08 100644 --- a/server/services/agi/scripts/aws/lex/index.js +++ b/server/services/agi/scripts/aws/lex/index.js @@ -1 +1 @@ -const a1033_0x2f39=['exports','./lib/api'];(function(_0x4e4415,_0x2f3936){const _0x1040a3=function(_0x3e9d1e){while(--_0x3e9d1e){_0x4e4415['push'](_0x4e4415['shift']());}};_0x1040a3(++_0x2f3936);}(a1033_0x2f39,0x9a));const a1033_0x1040=function(_0x4e4415,_0x2f3936){_0x4e4415=_0x4e4415-0x0;let _0x1040a3=a1033_0x2f39[_0x4e4415];return _0x1040a3;};const _0x4736b8=a1033_0x1040;'use strict';const lex=require(_0x4736b8('0x1'));module[_0x4736b8('0x0')]=function(_0x3e9d1e,_0x56d2fc,_0x32fb9d,_0x5883a8,_0x1ca10f,_0x356bb3){return lex(_0x3e9d1e,_0x56d2fc,_0x32fb9d,_0x5883a8,_0x1ca10f,_0x356bb3);}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/aws/lex/lib/api.js b/server/services/agi/scripts/aws/lex/lib/api.js index 9b942d0..07a0efc 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_0x232b=['postText','undefined','LexRuntime','exports','aws-sdk','slots'];(function(_0x42f2a2,_0x232b5c){const _0x175b95=function(_0x4ceffc){while(--_0x4ceffc){_0x42f2a2['push'](_0x42f2a2['shift']());}};_0x175b95(++_0x232b5c);}(a1034_0x232b,0xcf));const a1034_0x175b=function(_0x42f2a2,_0x232b5c){_0x42f2a2=_0x42f2a2-0x0;let _0x175b95=a1034_0x232b[_0x42f2a2];return _0x175b95;};const _0x70cfae=a1034_0x175b;'use strict';const AWS=require(_0x70cfae('0x1'));function lexResult(_0x4ceffc,_0x4a64f3){return new Promise(function(_0x547fbd,_0x1ada67){const _0xbdf263=a1034_0x175b;_0x4ceffc[_0xbdf263('0x3')](_0x4a64f3,function(_0x4c069b,_0x387c6d){const _0x44647b=_0xbdf263;_0x4c069b&&_0x1ada67(_0x4c069b);if(_0x387c6d[_0x44647b('0x2')])for(const _0x52fa62 in _0x387c6d['slots']){if(typeof _0x387c6d[_0x44647b('0x2')][_0x52fa62]!==_0x44647b('0x4')){const _0xa690b6=_0x387c6d['slots'][_0x52fa62];_0x387c6d['slot_'+_0x52fa62]=_0xa690b6;}}_0x547fbd(_0x387c6d);});});}module[_0x70cfae('0x0')]=function(_0x5a17e6,_0x218fd2,_0x60732c,_0x266fe4,_0x448cd4,_0x546b3d){const _0x130fab=_0x70cfae,_0x4a1f1f=new AWS[(_0x130fab('0x5'))]({'accessKeyId':_0x218fd2,'secretAccessKey':_0x60732c,'region':_0x266fe4}),_0x4160e8={'botAlias':'$LATEST','botName':_0x546b3d,'inputText':_0x448cd4,'userId':_0x5a17e6};return lexResult(_0x4a1f1f,_0x4160e8);}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/aws/polly/index.js b/server/services/agi/scripts/aws/polly/index.js index 0d03385..e43dad9 100644 --- a/server/services/agi/scripts/aws/polly/index.js +++ b/server/services/agi/scripts/aws/polly/index.js @@ -1 +1 @@ -const a1035_0x2618=['./lib/api','exports'];(function(_0x5e31f6,_0x26181b){const _0x555adf=function(_0x403814){while(--_0x403814){_0x5e31f6['push'](_0x5e31f6['shift']());}};_0x555adf(++_0x26181b);}(a1035_0x2618,0x9d));const a1035_0x555a=function(_0x5e31f6,_0x26181b){_0x5e31f6=_0x5e31f6-0x0;let _0x555adf=a1035_0x2618[_0x5e31f6];return _0x555adf;};const _0x2af1e1=a1035_0x555a;'use strict';const polly=require(_0x2af1e1('0x1'));module[_0x2af1e1('0x0')]=function(_0x403814,_0x3eb706,_0x2850b3,_0x44275c,_0x4b5e0e,_0x492b0a,_0x59b462){return polly(_0x403814,_0x3eb706,_0x2850b3,_0x44275c,_0x4b5e0e,_0x492b0a,_0x59b462);}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/aws/polly/lib/api.js b/server/services/agi/scripts/aws/polly/lib/api.js index 84ff7f7..af80bc3 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_0x342e=['Invalid\x20data\x20response\x20from\x20aws\x20Polly!','exports','synthesizeSpeech','Polly','AudioStream','writeFile','No\x20data\x20response\x20from\x20aws\x20Polly!','mp3'];(function(_0x95e3bf,_0x342e47){const _0xd6c855=function(_0x123e8c){while(--_0x123e8c){_0x95e3bf['push'](_0x95e3bf['shift']());}};_0xd6c855(++_0x342e47);}(a1036_0x342e,0x17b));const a1036_0xd6c8=function(_0x95e3bf,_0x342e47){_0x95e3bf=_0x95e3bf-0x0;let _0xd6c855=a1036_0x342e[_0x95e3bf];return _0xd6c855;};const _0x358d4a=a1036_0xd6c8;'use strict';const fs=require('fs'),AWS=require('aws-sdk');function pollyResult(_0x123e8c,_0x31fbe3,_0xd3d35c){return new Promise(function(_0x4746ee,_0x1a7fda){const _0x105044=a1036_0xd6c8;_0x123e8c[_0x105044('0x7')](_0x31fbe3,function(_0x5ca93a,_0x46b480){const _0x32393e=_0x105044;if(_0x5ca93a)_0x1a7fda(_0x5ca93a);else _0x46b480?_0x46b480['AudioStream']instanceof Buffer?fs[_0x32393e('0x2')](_0xd3d35c,_0x46b480[_0x32393e('0x1')],function(_0xee544){_0xee544?_0x1a7fda(_0xee544):_0x4746ee();}):_0x1a7fda(new Error(_0x32393e('0x5'))):_0x1a7fda(new Error(_0x32393e('0x3')));});});}module[_0x358d4a('0x6')]=function(_0x1b54e9,_0x31bff8,_0x52b1bf,_0xdf381f,_0x253ae2,_0x219c6a,_0x4b0e4f){const _0x3818d0=_0x358d4a,_0x482ed7=new AWS[(_0x3818d0('0x0'))]({'accessKeyId':_0x1b54e9,'secretAccessKey':_0x31bff8,'region':_0x52b1bf}),_0x32bb41={'Text':_0x253ae2,'TextType':_0x219c6a||'text','OutputFormat':_0x3818d0('0x4'),'VoiceId':_0xdf381f};return pollyResult(_0x482ed7,_0x32bb41,_0x4b0e4f);}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/google/asr/index.js b/server/services/agi/scripts/google/asr/index.js index e26a032..5a82749 100644 --- a/server/services/agi/scripts/google/asr/index.js +++ b/server/services/agi/scripts/google/asr/index.js @@ -1 +1 @@ -const a1037_0x4529=['exports','./lib/api'];(function(_0x3eecc0,_0x4529e1){const _0x5e112f=function(_0x50747c){while(--_0x50747c){_0x3eecc0['push'](_0x3eecc0['shift']());}};_0x5e112f(++_0x4529e1);}(a1037_0x4529,0x7b));const a1037_0x5e11=function(_0x3eecc0,_0x4529e1){_0x3eecc0=_0x3eecc0-0x0;let _0x5e112f=a1037_0x4529[_0x3eecc0];return _0x5e112f;};const _0x3bf715=a1037_0x5e11;'use strict';const asr=require(_0x3bf715('0x0'));module[_0x3bf715('0x1')]=function(_0x50747c,_0x599310,_0x5435ed){return asr(_0x50747c,_0x599310,_0x5435ed);}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/google/asr/lib/api.js b/server/services/agi/scripts/google/asr/lib/api.js index f7ef10b..8239573 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_0x4c55=['LINEAR16','length','https://speech.googleapis.com','toString','undefined','key\x20should\x20be\x20a\x20string','/v1/speech:recognize?key=','POST','exports','string','readFileSync','lang\x20should\x20be\x20a\x20string'];(function(_0x314ed1,_0x4c5517){const _0xa6aef3=function(_0x3f26eb){while(--_0x3f26eb){_0x314ed1['push'](_0x314ed1['shift']());}};_0xa6aef3(++_0x4c5517);}(a1038_0x4c55,0x16b));const a1038_0xa6ae=function(_0x314ed1,_0x4c5517){_0x314ed1=_0x314ed1-0x0;let _0xa6aef3=a1038_0x4c55[_0x314ed1];return _0xa6aef3;};const _0x4a2c40=a1038_0xa6ae;'use strict';const fs=require('fs'),host=_0x4a2c40('0xb');module[_0x4a2c40('0x5')]=function(_0x3f26eb,_0x144afe,_0x60d39f){return new Promise(function(_0x3d3e63,_0x4c6736){const _0x41a70b=a1038_0xa6ae;let _0xee6e54;if(typeof _0x3f26eb!=='string'||_0x3f26eb['length']===0x0)return _0x4c6736('filepath\x20should\x20be\x20a\x20string');if(typeof _0x144afe!==_0x41a70b('0x6')||_0x144afe[_0x41a70b('0xa')]===0x0)return _0x4c6736(_0x41a70b('0x2'));if(typeof _0x60d39f!==_0x41a70b('0x1')&&(typeof _0x60d39f!==_0x41a70b('0x6')||_0x60d39f['length']===0x0))return _0x4c6736(_0x41a70b('0x8'));try{_0xee6e54=fs[_0x41a70b('0x7')](_0x3f26eb)[_0x41a70b('0x0')]('base64');}catch(_0x3ed68f){return _0x4c6736(_0x3ed68f);}return _0x3d3e63({'method':_0x41a70b('0x4'),'uri':host+_0x41a70b('0x3')+_0x144afe,'body':{'config':{'encoding':_0x41a70b('0x9'),'sampleRateHertz':'8000','languageCode':_0x60d39f},'audio':{'content':_0xee6e54}},'json':!![]});});}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/google/index.js b/server/services/agi/scripts/google/index.js index b6fed00..0704e84 100644 --- a/server/services/agi/scripts/google/index.js +++ b/server/services/agi/scripts/google/index.js @@ -1 +1 @@ -const a1039_0x3463=['./asr'];(function(_0xad446,_0x34630c){const _0x583b3f=function(_0xbe8326){while(--_0xbe8326){_0xad446['push'](_0xad446['shift']());}};_0x583b3f(++_0x34630c);}(a1039_0x3463,0x177));const a1039_0x583b=function(_0xad446,_0x34630c){_0xad446=_0xad446-0x0;let _0x583b3f=a1039_0x3463[_0xad446];return _0x583b3f;};const _0x3dc791=a1039_0x583b,asr=require(_0x3dc791('0x0'));module['exports']={'asr':asr}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/index.js b/server/services/agi/scripts/index.js index c71b3d8..2cabc19 100644 --- a/server/services/agi/scripts/index.js +++ b/server/services/agi/scripts/index.js @@ -1 +1 @@ -const a1040_0xb844=['randomstring','.wav','metadata','asr','unlink','googleDialogflow','alternatives','name','http','request\x20to\x20','777','input','text:synthesize','protocol','transcode','Tilde\x20ASR\x20confidence','https','createWriteStream','googleASR\x20confidence','then','Data','format','url','stringify','sestekNDA','actionIncomplete','https://api.ispeech.org/api/rest','./google','ispeechTTS','join','googleTTS','end','AudioFromTts','writeFile','uri','info','../../../config/logger','resolve','googleCloudTTS\x20path','base64','transcript','result','model=%s','map','./sestek','finish\x20download\x20file','message','resolvedQuery','chmodSync','\x20failed,\x20status\x20code\x20=\x20','[%s]\x20%s:%s','results','channelData','google-tts-api','tmp','finish\x20to\x20convert','isFallbackIntent','agi','split','awsLex','statusCode','ssml','request-promise-native','pipe','googleCloudTTS','path','wav','freeform=3','pathname','awsPolly','CustomActionData','download\x20error','error','action','start','tildeASR','host','get','util','.mp3','textRequest','googleASR','Tilde\x20ASR\x20transcription','code','statusMessage','POST','writeFileSync','https:','confidence','?key=','ispeechASR','voice','readFileSync','finish','CustomAction','catch','%s?apikey=%s&action=convert&text=%s&voice=%s&speed=%s&format=mp3','./aws','MP3','nda','text','status','speech','generate'];(function(_0x248d53,_0xb844a9){const _0x3f44bc=function(_0x158bd6){while(--_0x158bd6){_0x248d53['push'](_0x248d53['shift']());}};_0x3f44bc(++_0xb844a9);}(a1040_0xb844,0x1d3));const a1040_0x3f44=function(_0x248d53,_0xb844a9){_0x248d53=_0x248d53-0x0;let _0x3f44bc=a1040_0xb844[_0x248d53];return _0x3f44bc;};const _0x2573f9=a1040_0x3f44;'use strict';const fs=require('fs'),path=require(_0x2573f9('0xe')),http=require(_0x2573f9('0x3d')),https=require(_0x2573f9('0x45')),{URL}=require(_0x2573f9('0x4b')),rs=require(_0x2573f9('0x35')),sox=require('sox'),rp=require(_0x2573f9('0xb')),util=require(_0x2573f9('0x1b')),querystring=require('querystring'),tts=require(_0x2573f9('0x2')),apiai=require('apiai-promise'),md5=require('md5'),google=require(_0x2573f9('0x50')),aws=require(_0x2573f9('0x2e')),tilde=require('./tilde'),sestek=require(_0x2573f9('0x61')),logger=require(_0x2573f9('0x59'))(_0x2573f9('0x6')),ISPEECH_API=_0x2573f9('0x4f');function downloadFile(_0x158bd6,_0x1b8deb){return new Promise(function(_0xc9e0b4,_0x4b33b3){const _0x33f04d=a1040_0x3f44,_0x37ec23=new URL(_0x158bd6),_0x21326b=_0x37ec23[_0x33f04d('0x42')]===_0x33f04d('0x24')?https:http,_0x14972a={'host':_0x37ec23['host'],'path':_0x37ec23[_0x33f04d('0x11')],'headers':{'user-agent':'WHAT_EVER'}};_0x21326b[_0x33f04d('0x1a')](_0x14972a,function(_0x408343){const _0x577d7a=_0x33f04d;if(_0x408343[_0x577d7a('0x9')]!==0xc8){logger['error'](_0x577d7a('0x3e')+_0x158bd6+_0x577d7a('0x66')+_0x408343[_0x577d7a('0x9')]+'\x20('+_0x408343[_0x577d7a('0x21')]+')'),_0x4b33b3(new Error(_0x577d7a('0x3e')+_0x158bd6+_0x577d7a('0x66')+_0x408343[_0x577d7a('0x9')]+'\x20('+_0x408343[_0x577d7a('0x21')]+')'));return;}const _0x459bc1=fs[_0x577d7a('0x46')](_0x1b8deb);_0x459bc1['on'](_0x577d7a('0x2a'),function(){const _0x1b18c3=_0x577d7a;logger['info'](_0x1b18c3('0x62')),_0x459bc1['close'](_0xc9e0b4);}),_0x459bc1['on']('error',function(_0x41dc61){const _0x591f14=_0x577d7a;fs[_0x591f14('0x39')](_0x1b8deb),logger[_0x591f14('0x15')](_0x591f14('0x14'),_0x41dc61),_0x4b33b3(_0x41dc61);}),_0x408343[_0x577d7a('0xc')](_0x459bc1);})['on'](_0x33f04d('0x15'),function(_0x19d0a9){const _0x537a04=_0x33f04d;logger[_0x537a04('0x15')](_0x19d0a9),_0x4b33b3(_0x19d0a9);})[_0x33f04d('0x54')]();});}function uploadFile(_0x5da011){return new Promise(function(_0x1d5b6f,_0x4c44ee){const _0x5b34ae=a1040_0x3f44,_0x5b72c7=new URL(_0x5da011),_0x5b76e7=_0x5b72c7[_0x5b34ae('0x42')]==='https:'?https:http,_0x1cceca={'host':_0x5b72c7[_0x5b34ae('0x19')],'path':_0x5b72c7[_0x5b34ae('0x11')],'headers':{'user-agent':'WHAT_EVER'}};_0x5b76e7[_0x5b34ae('0x1a')](_0x1cceca,function(_0x5e9bd0){const _0x44b3fa=_0x5b34ae;if(_0x5e9bd0['statusCode']!==0xc8){_0x4c44ee(new Error(_0x44b3fa('0x3e')+_0x5da011+_0x44b3fa('0x66')+_0x5e9bd0[_0x44b3fa('0x9')]+'\x20('+_0x5e9bd0[_0x44b3fa('0x21')]+')'));return;}let _0x2a32fe='';_0x5e9bd0['on']('data',function(_0x138074){_0x2a32fe+=_0x138074;}),_0x5e9bd0['on'](_0x44b3fa('0x54'),function(){_0x1d5b6f(_0x2a32fe);});})['on']('error',function(_0x27f392){_0x4c44ee(_0x27f392);})[_0x5b34ae('0x54')]();});}function convertFile(_0x1b92d3,_0x4f566a){return new Promise(function(_0x1f3bc4,_0x2f42f5){const _0x34d2c2=a1040_0x3f44,_0x518381=sox[_0x34d2c2('0x43')](_0x1b92d3,_0x4f566a,{'sampleRate':0x1f40,'format':_0x34d2c2('0xf'),'channelCount':0x1,'bitRate':0xc0*0x400,'compressionQuality':0x5});_0x518381['on'](_0x34d2c2('0x15'),function(_0x3b4ee1){const _0x66378d=_0x34d2c2;logger[_0x66378d('0x15')]('error\x20convert',_0x3b4ee1),_0x2f42f5(_0x3b4ee1);}),_0x518381['on'](_0x34d2c2('0x54'),function(){const _0x2c4f02=_0x34d2c2;logger[_0x2c4f02('0x58')](_0x2c4f02('0x4')),_0x1f3bc4();}),_0x518381[_0x34d2c2('0x17')]();});}function base64Decode(_0x1f5e52,_0xf120b1){const _0x2c69ce=_0x2573f9,_0x35748e=path['resolve'](__dirname,'tmp',rs[_0x2c69ce('0x34')](0x4)+_0x2c69ce('0x36'));return fs[_0x2c69ce('0x23')](_0x35748e,_0x1f5e52,_0x2c69ce('0x5c')),convertFile(_0x35748e,_0xf120b1)['then'](function(){const _0x38da07=_0x2c69ce;try{fs[_0x38da07('0x39')](_0x35748e),fs[_0x38da07('0x65')](_0xf120b1,'777');}catch(_0x4cb8cb){logger['error'](_0x4cb8cb);}return _0xf120b1[_0x38da07('0x7')]('.')[0x0];});}function base64Encode(_0x50d98c){const _0x2d30eb=_0x2573f9,_0x2a8c15=fs[_0x2d30eb('0x29')](_0x50d98c);return Buffer['from'](_0x2a8c15)['toString'](_0x2d30eb('0x5c'));}exports[_0x2573f9('0xd')]=function(_0x59d8a4,_0x152a10,_0x1da133,_0x2deda5,_0x58e3c8){const _0xfe3dd=_0x2573f9;let _0xf98d13,_0x327893;const _0x22da70='https://texttospeech.googleapis.com/v1/',_0x3029da=_0xfe3dd('0x26')+_0x59d8a4,_0x2aca1c={};_0x152a10===_0xfe3dd('0xa')?_0x2aca1c[_0xfe3dd('0x40')]={'ssml':_0x1da133}:_0x2aca1c['input']={'text':_0x1da133};_0x2aca1c[_0xfe3dd('0x28')]={'languageCode':_0x2deda5,'ssmlGender':_0x58e3c8},_0x2aca1c['audioConfig']={'audioEncoding':_0xfe3dd('0x2f'),'sampleRateHertz':0x1f40};const _0xeddcaf={'url':_0x22da70+_0xfe3dd('0x41')+_0x3029da,'method':_0xfe3dd('0x22'),'json':!![],'body':_0x2aca1c};return rp(_0xeddcaf)['then'](function(_0x2f43b3){return new Promise(function(_0x58143c,_0x11ca62){const _0x1b882b=a1040_0x3f44;_0xf98d13=path['resolve'](__dirname,_0x1b882b('0x3'),rs[_0x1b882b('0x34')](0x4)+_0x1b882b('0x1c'));const _0x180031=Buffer['from'](_0x2f43b3['audioContent'],_0x1b882b('0x5c'));return fs[_0x1b882b('0x56')](_0xf98d13,_0x180031,function(_0x213f59){_0x11ca62(_0x213f59);},function(_0x319c8a){const _0x531439=_0x1b882b;fs[_0x531439('0x65')](_0xf98d13,_0x531439('0x3f')),_0x58143c(_0x319c8a);});});})[_0xfe3dd('0x48')](function(){const _0x532b4b=_0xfe3dd;return _0x327893=path[_0x532b4b('0x5a')](__dirname,_0x532b4b('0x3'),rs[_0x532b4b('0x34')](0x4)+_0x532b4b('0x36')),convertFile(_0xf98d13,_0x327893);})[_0xfe3dd('0x48')](function(){const _0x2ee8e6=_0xfe3dd;try{fs[_0x2ee8e6('0x39')](_0xf98d13),fs[_0x2ee8e6('0x65')](_0x327893,'777');}catch(_0x29a416){logger['error'](_0x29a416);}return logger[_0x2ee8e6('0x58')](_0x2ee8e6('0x5b'),_0x327893[_0x2ee8e6('0x7')]('.')[0x0]),_0x327893[_0x2ee8e6('0x7')]('.')[0x0];});},exports[_0x2573f9('0x53')]=function(_0x437e8c,_0x49c0af){const _0x4a709b=_0x2573f9;let _0x26bc44,_0x36af31;return tts(_0x437e8c,_0x49c0af||'en',0x1)['then'](function(_0x3b5931){const _0x4bec9b=a1040_0x3f44;return logger[_0x4bec9b('0x58')](_0x3b5931),_0x26bc44=path[_0x4bec9b('0x5a')](__dirname,_0x4bec9b('0x3'),rs['generate'](0x4)+'.mp3'),downloadFile(_0x3b5931,_0x26bc44);})[_0x4a709b('0x48')](function(){const _0x53c3c8=_0x4a709b;return _0x36af31=path[_0x53c3c8('0x5a')](__dirname,_0x53c3c8('0x3'),rs[_0x53c3c8('0x34')](0x4)+_0x53c3c8('0x36')),convertFile(_0x26bc44,_0x36af31);})['then'](function(){const _0x1657e4=_0x4a709b;try{fs[_0x1657e4('0x39')](_0x26bc44),fs[_0x1657e4('0x65')](_0x36af31,_0x1657e4('0x3f'));}catch(_0x4cdbe3){logger[_0x1657e4('0x15')](_0x4cdbe3);}return logger[_0x1657e4('0x58')]('goggleTTS\x20path',_0x36af31[_0x1657e4('0x7')]('.')[0x0]),_0x36af31[_0x1657e4('0x7')]('.')[0x0];});},exports[_0x2573f9('0x1e')]=function(_0x5258a5,_0x17fe39,_0x1ef80f){const _0x2d4d63=_0x2573f9;return google[_0x2d4d63('0x38')](_0x5258a5,_0x17fe39,_0x1ef80f)['then'](function(_0x14e720){const _0x263e70=_0x2d4d63;return logger[_0x263e70('0x58')](_0x14e720[_0x263e70('0x57')]),rp(_0x14e720);})['then'](function(_0x21b800){const _0xa6b3dd=_0x2d4d63;let _0x1440ba='',_0x5b4cce=0x0;try{fs[_0xa6b3dd('0x39')](_0x5258a5);}catch(_0x2e6ce7){logger['error'](_0x2e6ce7);}return _0x21b800&&_0x21b800[_0xa6b3dd('0x0')]&&(_0x1440ba=_0x21b800[_0xa6b3dd('0x0')][_0xa6b3dd('0x60')](function(_0x3da3f6){const _0x2ff7b6=_0xa6b3dd;return _0x3da3f6&&_0x3da3f6[_0x2ff7b6('0x3b')][0x0]&&_0x3da3f6['alternatives'][0x0][_0x2ff7b6('0x5d')]?_0x3da3f6[_0x2ff7b6('0x3b')][0x0][_0x2ff7b6('0x5d')]:'';})[_0xa6b3dd('0x52')]('\x0a'),_0x5b4cce=_0x21b800[_0xa6b3dd('0x0')][_0xa6b3dd('0x60')](function(_0x7e578d){const _0x39fdf8=_0xa6b3dd;return _0x7e578d&&_0x7e578d[_0x39fdf8('0x3b')][0x0]&&_0x7e578d[_0x39fdf8('0x3b')][0x0][_0x39fdf8('0x25')]?_0x7e578d[_0x39fdf8('0x3b')][0x0][_0x39fdf8('0x25')]:0x0;})[_0xa6b3dd('0x52')]('\x0a')),logger[_0xa6b3dd('0x58')]('googleASR\x20transcription',_0x1440ba),logger[_0xa6b3dd('0x58')](_0xa6b3dd('0x47'),_0x5b4cce),{'transcript':_0x1440ba,'confidence':_0x5b4cce};})[_0x2d4d63('0x2c')](function(_0xa67bc8){const _0x244d2e=_0x2d4d63;logger[_0x244d2e('0x15')](_0x244d2e('0x67'),_0xa67bc8[_0x244d2e('0x9')],_0xa67bc8[_0x244d2e('0x3c')],_0xa67bc8[_0x244d2e('0x63')]);});},exports[_0x2573f9('0x3a')]=function(_0x544913,_0x4ac5df,_0x1f27d2,_0x3e4a23){const _0x3e5895=_0x2573f9,_0x560581=apiai(_0x4ac5df,{'language':_0x3e4a23||'en'});return _0x560581[_0x3e5895('0x1d')](_0x1f27d2,{'sessionId':md5(_0x544913)})[_0x3e5895('0x48')](function(_0xd53936){const _0x32ad7f=_0x3e5895;return logger[_0x32ad7f('0x58')](JSON['stringify'](_0xd53936)),{'source':_0xd53936[_0x32ad7f('0x5e')]['source'],'resolvedQuery':_0xd53936['result'][_0x32ad7f('0x64')],'action':_0xd53936[_0x32ad7f('0x5e')][_0x32ad7f('0x16')],'actionIncomplete':_0xd53936[_0x32ad7f('0x5e')][_0x32ad7f('0x4e')],'speech':_0xd53936[_0x32ad7f('0x5e')]['fulfillment'][_0x32ad7f('0x33')],'score':_0xd53936[_0x32ad7f('0x5e')]['score'],'statusCode':_0xd53936[_0x32ad7f('0x32')][_0x32ad7f('0x20')],'endConversation':_0xd53936['result'][_0x32ad7f('0x37')]['endConversation']||![],'isFallbackIntent':_0xd53936[_0x32ad7f('0x5e')][_0x32ad7f('0x37')][_0x32ad7f('0x5')]};});},exports[_0x2573f9('0x18')]=function(_0x464bf0,_0x4e27c5,_0x24c4fa,_0x50ed13){const _0x1959c1=_0x2573f9;return tilde['asr'](_0x464bf0,_0x4e27c5,_0x24c4fa,_0x50ed13)[_0x1959c1('0x48')](function(_0xb77aa7){const _0x3667fe=_0x1959c1;try{fs['unlink'](_0x464bf0);}catch(_0x1aec00){logger[_0x3667fe('0x15')](_0x1aec00);}return logger[_0x3667fe('0x58')](_0x3667fe('0x1f'),_0xb77aa7[_0x3667fe('0x5d')]),logger['info'](_0x3667fe('0x44'),_0xb77aa7['confidence']),_0xb77aa7;});},exports[_0x2573f9('0x12')]=function(_0x2ba9b0,_0x829591,_0x53d046,_0x1363d4,_0x3ef6bd,_0x3c97cf){const _0x52d1c9=_0x2573f9,_0xf22fb=path[_0x52d1c9('0x5a')](__dirname,_0x52d1c9('0x3'),rs[_0x52d1c9('0x34')](0x4)+_0x52d1c9('0x1c'));let _0x5bdb10;return aws['polly'](_0x2ba9b0,_0x829591,_0x53d046,_0x1363d4,_0x3ef6bd,_0x3c97cf,_0xf22fb)['then'](function(){const _0x89698=_0x52d1c9;return _0x5bdb10=path[_0x89698('0x5a')](__dirname,'tmp',rs[_0x89698('0x34')](0x4)+_0x89698('0x36')),convertFile(_0xf22fb,_0x5bdb10);})[_0x52d1c9('0x48')](function(){const _0x581214=_0x52d1c9;try{fs[_0x581214('0x39')](_0xf22fb),fs['chmodSync'](_0x5bdb10,_0x581214('0x3f'));}catch(_0x5df3d1){logger[_0x581214('0x15')](_0x5df3d1);}return _0x5bdb10[_0x581214('0x7')]('.')[0x0];});},exports[_0x2573f9('0x8')]=function(_0x5b2c1b,_0x5a0eb2,_0x4e8d01,_0x3fffe,_0x4cea45,_0x4cb678){const _0x16dc05=_0x2573f9;return aws['lex'](_0x5b2c1b,_0x5a0eb2,_0x4e8d01,_0x3fffe,_0x4cea45,_0x4cb678)[_0x16dc05('0x48')](function(_0x265cbf){const _0x2e98a2=_0x16dc05;return logger[_0x2e98a2('0x58')](JSON[_0x2e98a2('0x4c')](_0x265cbf)),_0x265cbf;});},exports[_0x2573f9('0x51')]=function(_0x34b077,_0x3d542b,_0x36188c,_0x21a435){const _0x1042e9=_0x2573f9,_0x55b5e4=util[_0x1042e9('0x4a')](_0x1042e9('0x2d'),ISPEECH_API,_0x34b077,encodeURIComponent(_0x3d542b),_0x36188c,_0x21a435),_0x21bb0c=path[_0x1042e9('0x5a')](__dirname,'tmp',rs['generate'](0x4)+_0x1042e9('0x1c'));let _0x2140ff;return downloadFile(_0x55b5e4,_0x21bb0c)['then'](function(){const _0x27cb3f=_0x1042e9;return _0x2140ff=path[_0x27cb3f('0x5a')](__dirname,_0x27cb3f('0x3'),rs[_0x27cb3f('0x34')](0x4)+_0x27cb3f('0x36')),convertFile(_0x21bb0c,_0x2140ff);})[_0x1042e9('0x48')](function(){const _0x1b8549=_0x1042e9;try{fs[_0x1b8549('0x39')](_0x21bb0c),fs[_0x1b8549('0x65')](_0x2140ff,_0x1b8549('0x3f'));}catch(_0x2ddf1e){logger[_0x1b8549('0x15')](_0x2ddf1e);}return _0x2140ff['split']('.')[0x0];});},exports[_0x2573f9('0x27')]=function(_0x412cdf,_0x4233e2,_0x18d6f3,_0x20edb2){const _0x128212=_0x2573f9,_0x25f27c=util[_0x128212('0x4a')]('%s?apikey=%s&action=recognize&locale=%s&content-type=audio/x-wav&audio=%s&%s',ISPEECH_API,_0x4233e2,_0x18d6f3,base64Encode(_0x412cdf),_0x20edb2?util['format'](_0x128212('0x5f'),encodeURIComponent(_0x20edb2)):_0x128212('0x10'));return uploadFile(_0x25f27c)['then'](function(_0x519848){return querystring['parse'](_0x519848);});},exports[_0x2573f9('0x4d')]=function(_0x324539,_0x1b4c8f){const _0x4becfd=_0x2573f9;return sestek[_0x4becfd('0x30')](_0x324539,_0x1b4c8f)['then'](function(_0x3534ae){const _0x434249=_0x4becfd;logger[_0x434249('0x58')](JSON['stringify'](_0x3534ae));const _0x4ef19f={'speech':_0x3534ae[_0x434249('0x31')],'action':_0x3534ae[_0x434249('0x1')]?_0x3534ae['channelData'][_0x434249('0x2b')]:undefined,'actiondata':_0x3534ae[_0x434249('0x1')]?_0x3534ae[_0x434249('0x1')][_0x434249('0x13')]:undefined};if(_0x3534ae[_0x434249('0x1')]&&_0x3534ae[_0x434249('0x1')][_0x434249('0x55')])return base64Decode(_0x3534ae[_0x434249('0x1')][_0x434249('0x55')][_0x434249('0x49')],path[_0x434249('0x5a')](__dirname,'tmp',rs[_0x434249('0x34')](0x4)+_0x434249('0x36')))[_0x434249('0x48')](function(_0x56fa4c){return _0x4ef19f['audiofile']=_0x56fa4c,_0x4ef19f;});return _0x4ef19f;});},exports['dirName']=function(){return __dirname;}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/sestek/index.js b/server/services/agi/scripts/sestek/index.js index 7320d8e..8108051 100644 --- a/server/services/agi/scripts/sestek/index.js +++ b/server/services/agi/scripts/sestek/index.js @@ -1 +1 @@ -const a1041_0x338d=['exports'];(function(_0x446f65,_0x338d5d){const _0x4676d3=function(_0x4d9b0c){while(--_0x4d9b0c){_0x446f65['push'](_0x446f65['shift']());}};_0x4676d3(++_0x338d5d);}(a1041_0x338d,0x6a));const a1041_0x4676=function(_0x446f65,_0x338d5d){_0x446f65=_0x446f65-0x0;let _0x4676d3=a1041_0x338d[_0x446f65];return _0x4676d3;};const _0x5e3eae=a1041_0x4676,nda=require('./nda');module[_0x5e3eae('0x0')]={'nda':nda}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/sestek/nda/index.js b/server/services/agi/scripts/sestek/nda/index.js index 94e11dc..6a1e135 100644 --- a/server/services/agi/scripts/sestek/nda/index.js +++ b/server/services/agi/scripts/sestek/nda/index.js @@ -1 +1 @@ -const a1042_0x40ba=['Nda','calleridname','message','ndaactivity_type','body','access_token','AudioOutputSettings','agi','ndagenerate_audio','Bearer\x20','POST','password','/token','ndassistant_url','project','CustomAction','dnid','ProjectName','info','text','uniqueid','custom_action','toString','custom_action_data','url','../../../../../config/logger','request-promise-native','channelData','CustomActionData','stringify','ndauth_url','/api/NaturalDialogAssistant/v1/Run','audio/wav'];(function(_0x23ba43,_0x40ba16){const _0x38c23d=function(_0x52ec53){while(--_0x52ec53){_0x23ba43['push'](_0x23ba43['shift']());}};_0x38c23d(++_0x40ba16);}(a1042_0x40ba,0x70));const a1042_0x38c2=function(_0x23ba43,_0x40ba16){_0x23ba43=_0x23ba43-0x0;let _0x38c23d=a1042_0x40ba[_0x23ba43];return _0x38c23d;};const _0x45103f=a1042_0x38c2;'use strict';const rp=require(_0x45103f('0xd')),url=require(_0x45103f('0xb')),logger=require(_0x45103f('0xc'))(_0x45103f('0x1b'));module['exports']=function(_0x52ec53,_0x5ceb7f){const _0x3fbc4b=_0x45103f,_0x128311=new url['URL'](_0x3fbc4b('0x20'),_0x5ceb7f[_0x3fbc4b('0x11')])[_0x3fbc4b('0x9')](),_0x565213={'method':_0x3fbc4b('0x1e'),'uri':_0x128311,'form':{'grant_type':_0x3fbc4b('0x1f'),'username':_0x5ceb7f['username'],'password':_0x5ceb7f[_0x3fbc4b('0x1f')]},'json':!![]};return rp(_0x565213)['then'](function(_0x566ac5){const _0x439520=_0x3fbc4b,_0x187dd9=new url['URL'](_0x439520('0x12'),_0x5ceb7f[_0x439520('0x0')])[_0x439520('0x9')](),_0x24820b={'method':_0x439520('0x1e'),'uri':_0x187dd9,'body':{'type':_0x5ceb7f[_0x439520('0x17')]||_0x439520('0x16'),'channelId':_0x439520('0x14'),'conversation':{'id':_0x52ec53[_0x439520('0x7')]},'from':{'id':_0x52ec53['callerid'],'name':_0x52ec53[_0x439520('0x15')]},'recipient':{'id':_0x52ec53[_0x439520('0x3')],'name':_0x52ec53['extension']},'text':_0x5ceb7f[_0x439520('0x6')],'channelData':{}},'headers':{'Authorization':_0x439520('0x1d')+_0x566ac5[_0x439520('0x19')]},'json':!![]};return _0x5ceb7f['project']&&(_0x24820b[_0x439520('0x18')][_0x439520('0xe')][_0x439520('0x4')]=_0x5ceb7f[_0x439520('0x1')]),_0x5ceb7f[_0x439520('0x1c')]=='1'&&(_0x24820b[_0x439520('0x18')][_0x439520('0xe')][_0x439520('0x1a')]={'Generate':!![],'PutInStructuredPart':![],'ExpectedFormat':_0x439520('0x13')}),_0x5ceb7f[_0x439520('0x8')]&&(_0x24820b[_0x439520('0x18')]['channelData'][_0x439520('0x2')]=_0x5ceb7f[_0x439520('0x8')],_0x5ceb7f[_0x439520('0xa')]&&(_0x24820b[_0x439520('0x18')][_0x439520('0xe')][_0x439520('0xf')]=_0x5ceb7f[_0x439520('0xa')])),logger[_0x439520('0x5')](JSON[_0x439520('0x10')](_0x24820b)),rp(_0x24820b);});}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/tilde/asr/index.js b/server/services/agi/scripts/tilde/asr/index.js index df14c6f..f7a57fb 100644 --- a/server/services/agi/scripts/tilde/asr/index.js +++ b/server/services/agi/scripts/tilde/asr/index.js @@ -1 +1 @@ -const a1043_0x562b=['./lib/api'];(function(_0x3ea279,_0x562b75){const _0x51c5c3=function(_0x5bf18b){while(--_0x5bf18b){_0x3ea279['push'](_0x3ea279['shift']());}};_0x51c5c3(++_0x562b75);}(a1043_0x562b,0x1b7));const a1043_0x51c5=function(_0x3ea279,_0x562b75){_0x3ea279=_0x3ea279-0x0;let _0x51c5c3=a1043_0x562b[_0x3ea279];return _0x51c5c3;};const _0x1d2057=a1043_0x51c5;'use strict';const asr=require(_0x1d2057('0x0'));module['exports']=function(_0x5bf18b,_0x270341,_0x42fa1c,_0xe34fab){return asr(_0x5bf18b,_0x270341,_0x42fa1c,_0xe34fab);}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/tilde/asr/lib/api.js b/server/services/agi/scripts/tilde/asr/lib/api.js index f1de924..fdb7264 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_0xa06d=['No\x20speech.\x20Sent\x20when\x20the\x20incoming\x20audio\x20contains\x20a\x20large\x20portion\x20of\x20silence\x20or\x20non-speech','moment','Close\x20Tilde\x20ASR\x20socket','lodash','Tilde\x20ASR\x20send\x20error','send','final','open','digest','hypotheses','terminate','parse','Authentication\x20failed.','message','update','../../../../../../config/logger','All\x20recognition\x20workers\x20are\x20currently\x20in\x20use\x20and\x20real-time\x20recognition\x20is\x20not\x20possible.','createReadStream','sha1','error','Aborted.\x20Recognition\x20was\x20aborted\x20for\x20some\x20reason.','Open\x20Tilde\x20ASR\x20socket','Success.','likelihood','result','info','hex','transcript','Not\x20available.\x20Max\x20load\x20limit\x20reached.','data','crypto','isNil','wss://runa.tilde.lv/client/ws/speech/LVASR-ONLINE','unix','stringify','close','Tilde\x20ASR\x20hypoteses','isObject'];(function(_0x5c2f5f,_0xa06d6d){const _0x2864ac=function(_0xfd08e2){while(--_0xfd08e2){_0x5c2f5f['push'](_0x5c2f5f['shift']());}};_0x2864ac(++_0xa06d6d);}(a1044_0xa06d,0x88));const a1044_0x2864=function(_0x5c2f5f,_0xa06d6d){_0x5c2f5f=_0x5c2f5f-0x0;let _0x2864ac=a1044_0xa06d[_0x5c2f5f];return _0x2864ac;};const _0xc3e70=a1044_0x2864;'use strict';const _=require(_0xc3e70('0x13')),fs=require('fs'),WebSocket=require('ws'),moment=require(_0xc3e70('0x11')),crypto=require(_0xc3e70('0x8')),logger=require(_0xc3e70('0x1f'))('agi');module['exports']=function(_0xfd08e2,_0x4e9a2d,_0x165f6e,_0x29a644){return new Promise(function(_0x370751){const _0x1b8320=a1044_0x2864;logger[_0x1b8320('0x3')]('Tilde\x20URI',_0x29a644||_0x1b8320('0xa'));const _0x188211=new WebSocket(_0x29a644||'wss://runa.tilde.lv/client/ws/speech/LVASR-ONLINE',{'perMessageDeflate':![]});let _0x419cd5='',_0x4edd1a='0',_0x2bcfc8='1',_0x9af5a3=_0x1b8320('0x10');function _0x4da3cc(_0x5866d1){const _0x49cd2d=_0x1b8320,_0x18f41f=crypto['createHash'](_0x49cd2d('0x22'));return _0x18f41f[_0x49cd2d('0x1e')](_0x5866d1),_0x18f41f[_0x49cd2d('0x18')](_0x49cd2d('0x4'));}function _0x23b5a9(){const _0x5aa0da=_0x1b8320;try{logger['info'](_0x5aa0da('0x25'));const _0x4c00e5=moment()[_0x5aa0da('0xb')](),_0x23fe81=_0x4da3cc(_0x4c00e5+_0x4e9a2d+_0x165f6e);_0x188211[_0x5aa0da('0x15')](JSON[_0x5aa0da('0xc')]({'appID':_0x4e9a2d,'timestamp':_0x4c00e5,'appKey':_0x23fe81}));const _0x518795=fs[_0x5aa0da('0x21')](_0xfd08e2);_0x518795['on'](_0x5aa0da('0x7'),function(_0x40f598){_0x188211['send'](_0x40f598);}),_0x518795['on']('close',function(){_0x188211['send']('EOS');});}catch(_0x525da0){logger['error'](_0x5aa0da('0x14'),JSON[_0x5aa0da('0xc')](_0x525da0)),_0x188211[_0x5aa0da('0x1a')]();}}function _0x461048(_0xa2fbf4){const _0x16e0e2=_0x1b8320;try{if(_0xa2fbf4){const _0x2dd026=JSON[_0x16e0e2('0x1b')](_0xa2fbf4);switch(_0x2dd026['status']){case 0x0:_0x2dd026[_0x16e0e2('0x2')]&&(_0x2dd026[_0x16e0e2('0x2')][_0x16e0e2('0x16')]&&(logger['info'](_0x16e0e2('0xe'),JSON[_0x16e0e2('0xc')](_0x2dd026[_0x16e0e2('0x2')][_0x16e0e2('0x19')])),_0x419cd5=_0x2dd026['result'][_0x16e0e2('0x19')][0x0][_0x16e0e2('0x5')],_0x4edd1a=_0x2dd026[_0x16e0e2('0x2')][_0x16e0e2('0x19')][0x0][_0x16e0e2('0x1')],_0x2bcfc8='0',_0x9af5a3=_0x16e0e2('0x0'),_0x188211['terminate']()));break;case 0x1:logger[_0x16e0e2('0x3')](_0x16e0e2('0x10')),_0x2bcfc8='1',_0x9af5a3=_0x16e0e2('0x10');break;case 0x2:logger['info'](_0x16e0e2('0x24')),_0x2bcfc8='2',_0x9af5a3='Aborted.\x20Recognition\x20was\x20aborted\x20for\x20some\x20reason.';break;case 0x9:logger[_0x16e0e2('0x3')](_0x16e0e2('0x6')),_0x2bcfc8='9',_0x9af5a3='Not\x20available.\x20Max\x20load\x20limit\x20reached.';break;case 0xa:logger[_0x16e0e2('0x3')](_0x16e0e2('0x1c')),_0x2bcfc8='10',_0x9af5a3=_0x16e0e2('0x1c');break;case 0xb:logger['info']('All\x20recognition\x20workers\x20are\x20currently\x20in\x20use\x20and\x20real-time\x20recognition\x20is\x20not\x20possible.'),_0x2bcfc8='11',_0x9af5a3=_0x16e0e2('0x20');}}}catch(_0x3c4ef9){logger['error']('Tilde\x20ASR\x20parse\x20error',JSON[_0x16e0e2('0xc')](_0x3c4ef9)),_0x188211[_0x16e0e2('0x1a')]();}}function _0x7dbcb7(){const _0x24279a=_0x1b8320;logger[_0x24279a('0x3')](_0x24279a('0x12')),_0x370751({'transcript':_0x419cd5,'confidence':_0x4edd1a,'status':_0x2bcfc8,'status_message':_0x9af5a3});}function _0x3d0581(_0x41a10e){const _0x1e606d=_0x1b8320;logger[_0x1e606d('0x23')]('Error\x20Tilde\x20ASR\x20socket'),!_[_0x1e606d('0x9')](_0x41a10e)&&logger['error'](_[_0x1e606d('0xf')](_0x41a10e)?JSON[_0x1e606d('0xc')](_0x41a10e):_0x41a10e);}_0x188211['on'](_0x1b8320('0x17'),_0x23b5a9),_0x188211['on'](_0x1b8320('0x1d'),_0x461048),_0x188211['on'](_0x1b8320('0xd'),_0x7dbcb7),_0x188211['on'](_0x1b8320('0x23'),_0x3d0581);});}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/tilde/index.js b/server/services/agi/scripts/tilde/index.js index 0c02839..d015212 100644 --- a/server/services/agi/scripts/tilde/index.js +++ b/server/services/agi/scripts/tilde/index.js @@ -1 +1 @@ -const a1045_0x3b1e=['exports','./asr'];(function(_0x179d84,_0x3b1ed7){const _0x3f2bce=function(_0x2141e3){while(--_0x2141e3){_0x179d84['push'](_0x179d84['shift']());}};_0x3f2bce(++_0x3b1ed7);}(a1045_0x3b1e,0x196));const a1045_0x3f2b=function(_0x179d84,_0x3b1ed7){_0x179d84=_0x179d84-0x0;let _0x3f2bce=a1045_0x3b1e[_0x179d84];return _0x3f2bce;};const _0x45968b=a1045_0x3f2b,asr=require(_0x45968b('0x1'));module[_0x45968b('0x0')]={'asr':asr}; \ No newline at end of file +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 diff --git a/server/services/agi/server.js b/server/services/agi/server.js index c9fe000..0fc00ea 100644 --- a/server/services/agi/server.js +++ b/server/services/agi/server.js @@ -1 +1 @@ -const a1046_0x231f=['./channel','EventEmitter','exports','createServer','destroy','events','ready','inherits','util','connection','error','close','E_AGI_SERVER_MAXCONNECTION','E_AGI_ARGUMENT_PORT','call','listen','E_AGI_SERVER_ERROR','listening','net','emit'];(function(_0x78e5f9,_0x231fce){const _0x3649c4=function(_0x2345e1){while(--_0x2345e1){_0x78e5f9['push'](_0x78e5f9['shift']());}};_0x3649c4(++_0x231fce);}(a1046_0x231f,0x114));const a1046_0x3649=function(_0x78e5f9,_0x231fce){_0x78e5f9=_0x78e5f9-0x0;let _0x3649c4=a1046_0x231f[_0x78e5f9];return _0x3649c4;};const _0x2add32=a1046_0x3649;'use strict';const util=require(_0x2add32('0xc')),net=require(_0x2add32('0x2')),EventEmitter=require(_0x2add32('0x9'))[_0x2add32('0x5')],AGIError=require('./error'),AGIChannel=require(_0x2add32('0x4')),AGIServer=function(_0x2345e1,_0x3b9b15,_0x3e9ec3){const _0x17809b=_0x2add32,_0x2deb27=this;_0x2345e1=_0x2345e1||0x11dd,_0x3b9b15=_0x3b9b15||'127.0.0.1';let _0x91affc=null,_0x2450b0=0x0;EventEmitter[_0x17809b('0x12')](_0x2deb27);function _0x1311e3(){const _0x233034=_0x17809b;if(!_0x2345e1)return _0x2deb27[_0x233034('0x3')](_0x233034('0xe'),new AGIError(_0x233034('0x11'))),![];_0x91affc=net[_0x233034('0x7')](),_0x91affc[_0x233034('0x13')](_0x2345e1,_0x3b9b15),_0x91affc['on'](_0x233034('0x1'),function(){const _0x1831d1=_0x233034;_0x2deb27[_0x1831d1('0x3')](_0x1831d1('0x1'));}),_0x91affc['on'](_0x233034('0xd'),function(_0xc7d9ef){_0x91affc['getConnections'](function(_0x1c8c19,_0x4de161){const _0x58dcc9=a1046_0x3649;if(_0x1c8c19)_0x2deb27[_0x58dcc9('0x3')](_0x58dcc9('0xe'),new AGIError(_0x58dcc9('0x0'),_0x1c8c19));else{if(_0x3e9ec3&&_0x3e9ec3<0x0)_0x2deb27[_0x58dcc9('0x3')]('error',new AGIError('E_AGI_SERVER_VOICE_DISABLED')),_0xc7d9ef[_0x58dcc9('0x8')]();else{if(_0x3e9ec3&&_0x3e9ec3>0x0&&_0x3e9ec3<_0x4de161)_0x2450b0+=0x1,_0x2deb27[_0x58dcc9('0x3')]('error',new AGIError(_0x58dcc9('0x10'),_0x2450b0)),_0xc7d9ef[_0x58dcc9('0x8')]();else{const _0x513386=new AGIChannel(_0xc7d9ef);_0x513386['on'](_0x58dcc9('0xa'),function(){const _0x2692ad=_0x58dcc9;_0x2deb27[_0x2692ad('0x3')](_0x2692ad('0xd'),_0x513386);});}}}});}),_0x91affc['on']('error',function(_0x36172d){const _0x24b0d0=_0x233034;_0x2deb27[_0x24b0d0('0x3')](_0x24b0d0('0xe'),new AGIError(_0x24b0d0('0x0'),_0x36172d['code']));}),_0x91affc['on'](_0x233034('0xf'),function(){const _0xf8e9e5=_0x233034;_0x2deb27[_0xf8e9e5('0x3')]('close',new AGIError('E_AGI_SERVER_CLOSE'));});}process['nextTick'](function(){_0x1311e3();});};util[_0x2add32('0xb')](AGIServer,EventEmitter),module[_0x2add32('0x6')]=function(_0x4da734,_0x143a4f,_0x4a72a5){return new AGIServer(_0x4da734,_0x143a4f,_0x4a72a5);}; \ No newline at end of file +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 diff --git a/server/services/agi/vertices.js b/server/services/agi/vertices.js index 1da6323..7a85260 100644 --- a/server/services/agi/vertices.js +++ b/server/services/agi/vertices.js @@ -1 +1 @@ -const a1047_0x585e=['appid','beep','awspolly','extension','createCmContact','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','test','en-US','parse','getVoiceQueueById','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','TildeASR\x20Result\x20%s','aws_text_type','Enter\x20in\x20MENU\x20(%s)\x20block','prototype','Enter\x20in\x20SET\x20(%s)\x20block','no\x20text\x20configured','Dialogflow\x20Result\x20%s','dialogflow_language','getPauseById','tts','noop','isPlainObject','database','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','isConfigured','Enter\x20in\x20GOAL\x20(%s)\x20block','math','ispeech\x20%s\x20file\x20created','sms_text','no\x20find\x20by\x20configured','replaceAllVariables','QUEUE','toLowerCase','Enter\x20in\x20SYSTEM\x20(%s)\x20block','%s_ROWS_COUNT','ispeech\x20TTS\x20is\x20unreachable','apiKey','FIND\x20AGENT\x20%s\x20BY\x20%s','awsPolly','Enter\x20in\x20LOGOUT\x20(%s)\x20block','getMailAccountById','secure','no\x20variable\x20selected\x20for\x20the\x20response','model','sh\x20command:\x20%s\x20result\x20no\x20stored','sestekasr','Trying\x20ispeech\x20TTS\x20%s','email','wav','variable_id','info','no\x20trunk\x20selected','Enter\x20in\x20PAUSE\x20(%s)\x20block','command','queue_id','uniqueid','method','variable_value','username','out','sendSMS\x20message','toString','macro','ndassistant_url','unpause','%s_STATUS_MESSAGE','Executed\x20command\x20MRCPRecog\x20%s','intKey','bcc','hiddendigitsnum','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','Query\x20executed\x20correctly\x20%s','opts','accountcode','no\x20condition\x20configured','getSound','getSquareProject','join','getSmsAccountById','toUpperCase','goalname','Response:','getVariable','vswitch','then','ext_dial','%s/recordings/%s.%s','SIP/%s/%s','indexOf','aws_polly_voice','dialogflow','RECOG_CONFIDENCE()','substr','grammar','lastName','wait','TILDE_ASR_%s','aws_secret_access_key','callback','callback_priority','maxdigit','getTrunkById','goal','Trying\x20SendSMS\x20with\x20account\x20%s','template_id','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','finally','restAPI','Enter\x20in\x20QUEUE\x20(%s)\x20block','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','voicemail','headers','add','pause','LUMENVOX_ASR_TRANSCRIPT','sendFax','agicommand','Enter\x20in\x20RECORD\x20(%s)\x20block','response','Amazon\x20Lex\x20ready\x20for\x20fulfillment','getSquareOdbcById','createSquareDetailsReport','RECORDING_SAVENAME','sms_account_id','yes','sendMailMessage','randomstring','%s_%s','phone','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','odbc','RECOG_INPUT()','no\x20user\x20selected','Enter\x20in\x20MATH\x20(%s)\x20block','gotoiftime','retry','Amazon\x20Lex\x20Result\x20%s','IFTIME\x20%s\x20%s','Executed\x20command\x20%s\x20%s','sip_id','AGENT\x20%s\x20FOUND\x20BY','tilde\x20%s\x20file\x20created','no\x20sms\x20account\x20configured','Enter\x20in\x20SENDSMS\x20(%s)\x20block','SENDFAX\x20block\x20not\x20implemented','getSmsAccount','getPause','pass','getVariableById','operation','googleASR','stringify','ISPEECH_ASR_%s','length','getSoundById','no\x20appsecret\x20configured','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','ispeech_tts_language','sesteknda','agentLogin','AWS_LEX_%s','getTrunk','Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block','rawBody','aws_bot_name','shellCommand','name','google_asr_language','channel','Sestek\x20NDA\x20%s\x20file\x20created','recordFile','google_tts_language','callback_','close','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','condition','audiofile','../../config/logger','googleTTS','ispeechTTS','no\x20queue\x20found','getUserById','login','util','Answer','user','rawHeaders','ispeech_asr_language','GOOGLE_ASR_%s','file_id','EVAL\x20CONDITION\x20%s\x20%s','IntervalId','Trying\x20Google\x20Cloud\x20TTS\x20%s','createSquareRecording','streamFile','logout','agentUnpause','isString','arg_1','no\x20query\x20configured','%s[%s][%s]','render','trunk_id','google_cloud_tts','aws_lex_region','error','no\x20file\x20audio\x20found','lumenvoxtts','key','agentLogout','Wait\x20%s\x20seconds\x20before\x20answer','POST','.wav','gotoc','PUT','getData','debug','saveRestApiResult','text','generate','mindigit','failure','%s[%s]','answer','Dialogflow\x20is\x20unreachable','no\x20valid\x20credentials\x20configured','/var/opt/motion2/server/files','bot','mailRpc','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','sendMail','NOBEEP','no\x20odbc\x20database\x20found','Enter\x20in\x20DIAL\x20(%s)\x20block','Enter\x20in\x20GOTOIF\x20(%s)\x20block','getIntervalById','uri','label','no\x20variable\x20selected\x20for\x20the\x20result','DIALOGFLOW_%s','shelljs','awsLex','no\x20key\x20configured','delay','Enter\x20in\x20TILDEASR\x20(%s)\x20block','replace','DIAL','start','Intervals','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','computedVariables','AGI','true','getsecretdigits','recursiveNodeIndex','recordingFormat','unlink','format','Enter\x20in\x20DATABASE\x20(%s)\x20block','languageCode','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','lumenvoxasr','dnid','Callback\x20scheduled\x20at\x20','extra','false','getdigits','Trying\x20Amazon\x20Lex:\x20%s','catch','Recording\x20%s\x20%s\x20%s\x20%s','SIP/%s','GoogleASR\x20Result\x20%s','host','isNil','no\x20file\x20audio\x20selected','options','ispeechtts','Google\x20Cloud\x20TTS\x20is\x20unreachable','MP3','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','context','statusCode','no\x20queue\x20selected','port','math\x20%s','callerid','Enter\x20in\x20ANSWER\x20(%s)\x20block','undefined','LOCAL','menu','interval','IspeechASR\x20Result\x20%s','trim','no\x20subproject\x20selected','number','200','Skipped\x20Answer','Smtp','Error\x20closing\x20connection\x20to\x20odbc\x20%s','args','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','no\x20operation\x20configured','PLAYBACK','service','result','no\x20intervals\x20found','MRCP_RECOG_TRANSCRIPT','no\x20trunk\x20found','agi','odbc_id','googleasr','isArray','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','no\x20appid\x20configured','queue','scheduledAt','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','lodash','./scripts','setVariable','replaceAll','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','Google\x20TTS\x20is\x20unreachable','interval_id','forEach','auth','minutes','mustache','end','internal','speed','agi://%s/square,\x22%s\x22,\x22%s\x22','AGENT\x20%s\x20NOT\x20FOUND\x20BY','aws\x20Polly\x20is\x20unreachable','SestekNDA\x20Result\x20%s','timeout','Error\x20executing\x20query\x20%s','variable\x20%s\x20set','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','getSoundPath','success','no\x20variable\x20found','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','google\x20%s\x20file\x20created','Trying\x20aws\x20Polly\x20%s','googleCloudTTS','Amazon\x20Lex\x20is\x20unreachable','tildeasr','%s/recordings/%s','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','MRCPSynth','save_name','maxRetry','exec','url','awslex','appsecret','account_id','Google\x20TTS\x20%s\x20file\x20created','SestekNDA\x20is\x20unreachable','Mail\x20message\x20added\x20to\x20outgoing\x20process','custom_app','no\x20apiKey\x20configured','sayphonetic','password','tildeASR','Sms\x20message\x20added\x20to\x20outgoing\x20process','aws\x20Polly\x20%s\x20file\x20created','exports','escape_digits','sestektts','subject','agentPause','isEmpty','message','LUMENVOX_ASR_INSTANCE','mailbox','pause_id','%s/%s@from-sip/n','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','audioEncoding','request-promise-native','speech','googleDialogflow','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','getUser','moment','query:\x20%s','no\x20database\x20selected','no\x20mail\x20account\x20configured','no\x20username\x20configured','clone','variable\x20%s[key]\x20set','SESTEK_NDA_%s','split','hangup','restapi','google_cloud_tts_text_type','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','127.0.0.1','body','sync','subproject','sendSMS','../../config/environment','MALE','getQueryOdbc','\x22%s\x22\x20<%s>','rpc','priority','createSquareMessage','getSquareOdbc','MRCPRecog','no\x20grammar\x20configured','%s.%s','aws_access_key_id','no\x20variable\x20selected','getIntervals','VOICEMAIL','no\x20bot\x20name\x20configured','ispeechASR','getSquareProjectById','application','mrcprecog','list_id','includes','Enter\x20in\x20START\x20(%s)\x20block','IFTIME(%s?true:false)','sendMail\x20message','findBy','saynumber','agent','sayPhonetic','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','no\x20interval\x20configured','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','gotoif','ispeechasr','Executed\x20command\x20MRCPSynth\x20%s','hiddendigitspos','project_id','Enter\x20in\x20NOOP\x20(%s)\x20block','getAndSetVariable','trunk_name'];(function(_0x32b6d2,_0x585e07){const _0xbb5d7a=function(_0x13655d){while(--_0x13655d){_0x32b6d2['push'](_0x32b6d2['shift']());}};_0xbb5d7a(++_0x585e07);}(a1047_0x585e,0x169));const a1047_0xbb5d=function(_0x32b6d2,_0x585e07){_0x32b6d2=_0x32b6d2-0x0;let _0xbb5d7a=a1047_0x585e[_0x32b6d2];return _0xbb5d7a;};const _0x4d5684=a1047_0xbb5d;'use strict';const fs=require('fs'),util=require(_0x4d5684('0x110')),_=require(_0x4d5684('0x198')),sh=require(_0x4d5684('0x149')),odbc=require(_0x4d5684('0xda')),rs=require(_0x4d5684('0xd6')),moment=require(_0x4d5684('0x1d')),Mustache=require(_0x4d5684('0x1a2')),rp=require(_0x4d5684('0x18')),logger=require(_0x4d5684('0x10a'))(_0x4d5684('0x18f')),config=require(_0x4d5684('0x2f')),scripts=require(_0x4d5684('0x199')),FILES_PATH=_0x4d5684('0x13b'),recursiveMapAttributes=[_0x4d5684('0x113'),_0x4d5684('0xfb')],verticesWithRetry=[_0x4d5684('0x17b'),_0x4d5684('0x163'),'getsecretdigits'],AGIVertices=function(_0x13655d,_0x3ddb91,_0x5cc99a){const _0x55b80b=_0x4d5684;this['channel']=_0x13655d,this[_0x55b80b('0x33')]=_0x3ddb91,this['mailRpc']=_0x5cc99a;};AGIVertices['prototype']['getVariable']=function(_0x5c17f4,_0x31b6d3){const _0xa3e93d=_0x4d5684;this[_0xa3e93d('0x33')][_0xa3e93d('0xec')](_0x5c17f4)[_0xa3e93d('0xac')](function(_0x5854be){const _0xa24849=_0xa3e93d;_0x31b6d3(null,_0x5854be?_0x5854be[_0xa24849('0xfe')]:![]);})[_0xa3e93d('0x165')](function(_0xc08129){_0x31b6d3(_0xc08129);});},AGIVertices['prototype']['getVoiceQueue']=function(_0x49edc7,_0x9537ed){const _0x19b396=_0x4d5684;this[_0x19b396('0x33')][_0x19b396('0x60')](_0x49edc7)[_0x19b396('0xac')](function(_0x40ef2d){_0x9537ed(null,_0x40ef2d?_0x40ef2d['name']:![]);})['catch'](function(_0x5e2e9f){_0x9537ed(_0x5e2e9f);});},AGIVertices['prototype'][_0x4d5684('0xa4')]=function(_0x385261,_0x4e5b65){const _0x4c5e25=_0x4d5684;this[_0x4c5e25('0x33')][_0x4c5e25('0x40')](_0x385261)['then'](function(_0x458d01){const _0x4d33ce=_0x4c5e25;_0x4e5b65(null,_0x458d01?_0x458d01[_0x4d33ce('0xfe')]:![]);})[_0x4c5e25('0x165')](function(_0x3c72b5){_0x4e5b65(_0x3c72b5);});},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x36')]=function(_0x5a2562,_0x1c3673){const _0x4180fa=_0x4d5684;this[_0x4180fa('0x33')][_0x4180fa('0xd0')](_0x5a2562)[_0x4180fa('0xac')](function(_0x49086f){_0x1c3673(null,_0x49086f?_0x49086f['dsn']:![]);})[_0x4180fa('0x165')](function(_0x5ca555){_0x1c3673(_0x5ca555);});},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x1c')]=function(_0x433b0f,_0x3365cb){const _0x3c7323=_0x4d5684;this[_0x3c7323('0x33')][_0x3c7323('0x10e')](_0x433b0f)[_0x3c7323('0xac')](function(_0x5b6d54){const _0x1bc96f=_0x3c7323;_0x3365cb(null,_0x5b6d54?_0x5b6d54[_0x1bc96f('0xfe')]:![]);})['catch'](function(_0x1ef9a1){_0x3365cb(_0x1ef9a1);});},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0xf9')]=function(_0xff3a9a,_0x218181){const _0x4e44d3=_0x4d5684;this[_0x4e44d3('0x33')][_0x4e44d3('0xbd')](_0xff3a9a)['then'](function(_0x396339){const _0x4e6e28=_0x4e44d3;_0x218181(null,_0x396339?_0x396339[_0x4e6e28('0xfe')]:![]);})[_0x4e44d3('0x165')](function(_0x383ff7){_0x218181(_0x383ff7);});},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0xa3')]=function(_0x515e7c,_0x11de80){const _0x3e6fd2=_0x4d5684,_0x2ab80c=this;this['rpc'][_0x3e6fd2('0xf2')](_0x515e7c)[_0x3e6fd2('0xac')](function(_0x29e711){const _0x14ca42=_0x3e6fd2;_0x11de80(null,_0x29e711?_0x2ab80c['getSoundPath'](_0x29e711[_0x14ca42('0x1ba')]):![]);})[_0x3e6fd2('0x165')](function(_0x17c99b){_0x11de80(_0x17c99b);});},AGIVertices[_0x4d5684('0x65')]['getMailAccount']=function(_0x5b5475,_0x46cfcd){const _0x342b68=_0x4d5684;this[_0x342b68('0x33')][_0x342b68('0x80')](_0x5b5475)[_0x342b68('0xac')](function(_0x59d8d5){_0x46cfcd(null,_0x59d8d5?_0x59d8d5:![]);})[_0x342b68('0x165')](function(_0x846c00){_0x46cfcd(_0x846c00);});},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0xd5')]=function(_0x30eba1,_0x486c54,_0x4a2c17){const _0x52e7b0=_0x4d5684;this[_0x52e7b0('0x13d')][_0x52e7b0('0xd5')](_0x30eba1,_0x486c54)[_0x52e7b0('0xac')](function(){_0x4a2c17(null);})[_0x52e7b0('0x165')](function(_0x94af62){_0x4a2c17(_0x94af62);});},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x3c')]=function(_0x4d6989,_0xa925a2){const _0x3b2127=_0x4d5684;this[_0x3b2127('0x33')][_0x3b2127('0x144')](_0x4d6989)[_0x3b2127('0xac')](function(_0x31fc9f){const _0x37f371=_0x3b2127;_0x31fc9f?_0x31fc9f[_0x37f371('0x118')]?_0xa925a2(null,[_0x31fc9f[_0x37f371('0x17c')]]):_0xa925a2(null,_['map'](_0x31fc9f[_0x37f371('0x151')],_0x37f371('0x17c'))):_0xa925a2(null,![]);})[_0x3b2127('0x165')](function(_0x270b56){_0xa925a2(_0x270b56);});},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x1ae')]=function(_0x582a82){const _0x2d9c0a=_0x4d5684;return util[_0x2d9c0a('0x15a')]('%s/sounds/converted/%s',FILES_PATH,_0x582a82);},AGIVertices['prototype'][_0x4d5684('0x31')]=function(_0x259a52,_0x1c3aca,_0xaba868){odbc['open'](_0x259a52,function(_0x32fc56){const _0x1f638a=a1047_0xbb5d;_0x32fc56?(logger[_0x1f638a('0x126')]('Error\x20getting\x20ODBC\x20connection\x20%s',_0x32fc56),_0xaba868(_0x32fc56)):(logger[_0x1f638a('0x8a')]('ODBC\x20connection\x20successfully'),odbc['query'](_0x1c3aca,function(_0x3bbfd3,_0x1fb12d){const _0x51aed5=_0x1f638a;_0x3bbfd3?(logger[_0x51aed5('0x8a')](_0x51aed5('0x1ab'),_0x1c3aca),_0xaba868(_0x3bbfd3)):(logger[_0x51aed5('0x8a')](_0x51aed5('0x9f'),_0x1c3aca),odbc[_0x51aed5('0x105')](function(_0x2d5684){const _0xc19903=_0x51aed5;_0x2d5684&&logger[_0xc19903('0x126')](_0xc19903('0x184'),_0x2d5684),_0xaba868(null,_0x1fb12d);}));}));});},AGIVertices['prototype'][_0x4d5684('0xe9')]=function(_0x1925ff,_0x36fec2){const _0x4fdb0f=_0x4d5684;this['rpc'][_0x4fdb0f('0xa6')](_0x1925ff)['then'](function(_0x52dad7){_0x36fec2(null,_0x52dad7?_0x52dad7:![]);})[_0x4fdb0f('0x165')](function(_0x816133){_0x36fec2(_0x816133);});},AGIVertices[_0x4d5684('0x65')]['createSmsMessage']=function(_0x10abb2,_0x351132){const _0x5a0a29=_0x4d5684;this[_0x5a0a29('0x33')]['createSmsMessage'](_0x10abb2)[_0x5a0a29('0xac')](function(_0x4e3763){_0x351132(null,_0x4e3763);})[_0x5a0a29('0x165')](function(_0x461079){_0x351132(_0x461079);});},AGIVertices[_0x4d5684('0x65')]['createSquareDetailsReport']=function(_0x5ac73d,_0x1ab1f0,_0x5b3146){const _0x5bff59=_0x4d5684;this[_0x5bff59('0x33')]['createSquareDetailsReport']({'uniqueid':this['channel'][_0x5bff59('0x8f')],'node':_0x5ac73d['label'],'application':_0x5ac73d[_0x5bff59('0xcc')],'data':_0x1ab1f0||null,'project_name':this[_0x5bff59('0x100')]['arg_1'],'callerid':this[_0x5bff59('0x100')][_0x5bff59('0x177')]})['then'](function(_0x5569c9){_0x5b3146&&_0x5b3146(null,_0x5569c9);})['catch'](function(_0x457b47){_0x5b3146&&_0x5b3146(_0x457b47);});},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x11a')]=function(_0x255728,_0x4f424c,_0x121ad9,_0x5f33ae){const _0x90205d=_0x4d5684;this[_0x90205d('0x33')]['createSquareRecording']({'uniqueid':this[_0x90205d('0x100')][_0x90205d('0x8f')],'callerid':this['channel'][_0x90205d('0x177')],'calleridname':this[_0x90205d('0x100')]['calleridname'],'context':this[_0x90205d('0x100')]['context'],'extension':this[_0x90205d('0x100')][_0x90205d('0x5a')],'priority':this[_0x90205d('0x100')][_0x90205d('0x34')],'accountcode':this['channel'][_0x90205d('0xa1')],'dnid':this[_0x90205d('0x100')][_0x90205d('0x15f')],'projectName':this[_0x90205d('0x100')]['arg_1'],'saveName':_0x4f424c,'filename':_0x255728['file']||_0x4f424c,'savePath':_0x121ad9})['then'](function(_0x41f67a){_0x5f33ae(null,_0x41f67a);})[_0x90205d('0x165')](function(_0x5f2f30){_0x5f33ae(_0x5f2f30);});},AGIVertices['prototype'][_0x4d5684('0x35')]=function(_0x896b47,_0x4fbc9d,_0x23c380){const _0x5f48ad=_0x4d5684;this[_0x5f48ad('0x33')]['createSquareMessage']({'uniqueid':this[_0x5f48ad('0x100')]['uniqueid'],'body':_0x896b47,'direction':_0x4fbc9d})[_0x5f48ad('0xac')](function(_0x3c2ed1){_0x23c380&&_0x23c380(null,_0x3c2ed1);})[_0x5f48ad('0x165')](function(_0x361c7f){_0x23c380&&_0x23c380(_0x361c7f);});},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x5b')]=function(_0xcf1069,_0x4dcf21){const _0x23c63e=_0x4d5684;this[_0x23c63e('0x33')][_0x23c63e('0x5b')]({'firstName':_[_0x23c63e('0x10')](_0xcf1069[_0x23c63e('0xfe')])||_[_0x23c63e('0x16a')](_0xcf1069[_0x23c63e('0xfe')])?_0x23c63e('0x104')+Math['random']():_0xcf1069['name'],'lastName':_[_0x23c63e('0x10')](_0xcf1069[_0x23c63e('0xb6')])||_['isNil'](_0xcf1069[_0x23c63e('0xb6')])?null:_0xcf1069[_0x23c63e('0xb6')],'phone':_0xcf1069[_0x23c63e('0xd8')],'ListId':_0xcf1069[_0x23c63e('0x43')],'scheduledat':_0xcf1069[_0x23c63e('0x196')],'callbackUniqueid':this['channel'][_0x23c63e('0x8f')],'tags':_0x23c63e('0xba'),'description':_0x23c63e('0x160')+_0xcf1069[_0x23c63e('0x196')][_0x23c63e('0x95')](),'priority':_0xcf1069[_0x23c63e('0xbb')]})[_0x23c63e('0xac')](function(_0x27c9d2){_0x4dcf21(null,_0x27c9d2);})[_0x23c63e('0x165')](function(_0x1afbf8){_0x4dcf21(_0x1afbf8);});},AGIVertices[_0x4d5684('0x65')]['getPause']=function(_0x23f6ee,_0x148eca){const _0x384009=_0x4d5684;this['rpc'][_0x384009('0x6a')](_0x23f6ee)[_0x384009('0xac')](function(_0x19cf26){const _0x499bc0=_0x384009;_0x148eca(null,_0x19cf26?_0x19cf26[_0x499bc0('0xfe')]:![]);})[_0x384009('0x165')](function(_0x31dd3a){_0x148eca(_0x31dd3a);});},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0xf')]=function(_0x482786,_0x12c384,_0x7004ff){const _0x5c6ebb=_0x4d5684,_0x425804={'role':_0x5c6ebb('0x4a')};_0x425804[_0x482786]=this[_0x5c6ebb('0x100')][_0x5c6ebb('0x177')],this[_0x5c6ebb('0x33')][_0x5c6ebb('0xf')](_0x425804,_0x12c384,this[_0x5c6ebb('0x100')][_0x5c6ebb('0x8f')])[_0x5c6ebb('0xac')](function(_0x897e2f){_0x7004ff(null,_['isNil'](_0x897e2f)?![]:!![]);})[_0x5c6ebb('0x165')](function(_0x199608){logger['error'](_0x199608),_0x7004ff(null,![]);});},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x11d')]=function(_0x243547,_0x4bd5a0){const _0x581b31=_0x4d5684,_0xa2c25b={'role':_0x581b31('0x4a')};_0xa2c25b[_0x243547]=this[_0x581b31('0x100')][_0x581b31('0x177')],this[_0x581b31('0x33')][_0x581b31('0x11d')](_0xa2c25b)[_0x581b31('0xac')](function(_0x21bf09){const _0x9a77bc=_0x581b31;_0x4bd5a0(null,_[_0x9a77bc('0x16a')](_0x21bf09)?![]:!![]);})[_0x581b31('0x165')](function(_0x3853df){logger['error'](_0x3853df),_0x4bd5a0(null,![]);});},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x12a')]=function(_0x1ccac9,_0x23c174){const _0x512b9a=_0x4d5684,_0x35025c={'role':'agent'};_0x35025c[_0x1ccac9]=this['channel']['callerid'],this[_0x512b9a('0x33')][_0x512b9a('0x12a')](_0x35025c)[_0x512b9a('0xac')](function(_0x74b41){const _0x59bd54=_0x512b9a;_0x23c174(null,_[_0x59bd54('0x16a')](_0x74b41)?![]:!![]);})[_0x512b9a('0x165')](function(_0x2c85fa){logger['error'](_0x2c85fa),_0x23c174(null,![]);});},AGIVertices[_0x4d5684('0x65')]['agentLogin']=function(_0x4fc9d7,_0x41dfa5){const _0x578197=_0x4d5684,_0x361887={'role':_0x578197('0x4a')};_0x361887[_0x4fc9d7]=this[_0x578197('0x100')][_0x578197('0x177')];const _0x2c0d68=_0x4fc9d7!=_0x578197('0x1a4')?util[_0x578197('0x15a')](_0x578197('0x15'),_0x578197('0x17a'),this[_0x578197('0x100')]['callerid']):undefined;this[_0x578197('0x33')][_0x578197('0xf7')](_0x361887,_0x2c0d68)['then'](function(_0x56ad72){_0x41dfa5(null,_['isNil'](_0x56ad72)?![]:!![]);})[_0x578197('0x165')](function(_0x4a0a95){const _0x378e02=_0x578197;logger[_0x378e02('0x126')](_0x4a0a95),_0x41dfa5(null,![]);});},AGIVertices[_0x4d5684('0x65')]['shellCommand']=function(_0x4dcefc,_0x3572b5){const _0x321b6b=_0x4d5684;sh[_0x321b6b('0x1bc')](_[_0x321b6b('0x17e')](_0x4dcefc),function(_0x5b9d1d,_0x5c7749){const _0x532a47=_0x321b6b,_0x287d67=_0x5c7749[_0x532a47('0x14e')](/(\r\n|\n|\r)/gm,'');_0x3572b5(null,_0x287d67);});},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x1b4')]=function(_0x598433,_0x1f928b){const _0x3444bf=_0x4d5684;scripts[_0x3444bf('0x1b4')](_0x598433[_0x3444bf('0x7c')],_0x598433[_0x3444bf('0x28')]||'text',_0x598433['text'],_0x598433[_0x3444bf('0x15c')]||_0x3444bf('0x5e'),_0x598433['ssmlGender']||_0x3444bf('0x30'),_0x598433[_0x3444bf('0x17')]||_0x3444bf('0x16f'))[_0x3444bf('0xac')](function(_0x3dd26e){_0x1f928b(null,_0x3dd26e);})['catch'](function(_0x3d389b){_0x1f928b(_0x3d389b);});},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x10b')]=function(_0x4f4c00,_0x280170){const _0x1626bf=_0x4d5684;scripts[_0x1626bf('0x10b')](_0x4f4c00[_0x1626bf('0x133')],_0x4f4c00[_0x1626bf('0x103')]||'en',0x1)[_0x1626bf('0xac')](function(_0x449efc){_0x280170(null,_0x449efc);})[_0x1626bf('0x165')](function(_0x298b67){_0x280170(_0x298b67);});},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0xc3')]=function(_0x1a54e4,_0x24ae8b){const _0xaa58e5=_0x4d5684,_0x3a9b36={'uri':_0x1a54e4[_0xaa58e5('0x1bd')],'method':_0x1a54e4['method'],'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x1a54e4[_0xaa58e5('0x1aa')])===_0xaa58e5('0x180')&&parseInt(_0x1a54e4[_0xaa58e5('0x1aa')])>=0x1?parseInt(_0x1a54e4[_0xaa58e5('0x1aa')])*0x3e8:0x5*0x3e8};if(_[_0xaa58e5('0x44')]([_0xaa58e5('0x12c'),_0xaa58e5('0x12f')],_0x3a9b36[_0xaa58e5('0x90')][_0xaa58e5('0xa7')]()))try{_0x3a9b36[_0xaa58e5('0x2b')]=_0x1a54e4[_0xaa58e5('0xfb')]?JSON[_0xaa58e5('0x5f')](_0x1a54e4[_0xaa58e5('0xfb')]):{};}catch(_0x37d428){logger[_0xaa58e5('0x126')](_0xaa58e5('0xc1'),_0x37d428);}try{_0x3a9b36['headers']=_0x1a54e4[_0xaa58e5('0x113')]?JSON['parse'](_0x1a54e4[_0xaa58e5('0x113')]):{};}catch(_0x3f6482){logger[_0xaa58e5('0x126')](_0xaa58e5('0x9e'),_0x3f6482);}if(_0x1a54e4[_0xaa58e5('0x153')])try{const _0x4eb4f1=require(_0x1a54e4[_0xaa58e5('0x153')])[_0xaa58e5('0x2c')](this,_0x3a9b36);_0x3a9b36[_0xaa58e5('0x145')]=Mustache[_0xaa58e5('0x122')](_0x1a54e4[_0xaa58e5('0x1bd')],_0x4eb4f1,{},['$$','$$']),_0x3a9b36[_0xaa58e5('0xc7')]&&(_0x3a9b36['headers']=JSON['parse'](Mustache[_0xaa58e5('0x122')](JSON['stringify'](_0x3a9b36['headers']),_0x4eb4f1,{},['$$','$$']))),_0x3a9b36[_0xaa58e5('0x2b')]&&(_0x3a9b36['body']=JSON[_0xaa58e5('0x5f')](Mustache[_0xaa58e5('0x122')](JSON[_0xaa58e5('0xef')](_0x3a9b36[_0xaa58e5('0x2b')]),_0x4eb4f1,{},['$$','$$'])));}catch(_0x1de069){logger['error']('An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function',_0x1de069);}rp(_0x3a9b36)['then'](function(_0x2aeba8){const _0x2d6db7=_0xaa58e5,_0x336deb={'statusCode':_0x2aeba8[_0x2d6db7('0x173')]||0xc8,'statusMessage':_0x2aeba8['statusMessage']||'OK','headers':_0x2aeba8[_0x2d6db7('0xc7')]||{},'body':_0x2aeba8[_0x2d6db7('0x2b')]||{}};_0x24ae8b(null,_0x336deb);})[_0xaa58e5('0x165')](function(_0x132a75){const _0x2467ee=_0xaa58e5,_0x41663f={'statusCode':_0x132a75[_0x2467ee('0x173')]||0x1f4,'statusMessage':_0x132a75[_0x2467ee('0x11')]||'500\x20-\x20Internal\x20Server\x20Error','headers':_0x132a75[_0x2467ee('0x16c')][_0x2467ee('0xc7')]||{},'body':_0x132a75[_0x2467ee('0x16c')][_0x2467ee('0x2b')]||{}};_0x24ae8b(null,_0x41663f);});},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x1a')]=function(_0x5d138e,_0x293f32){const _0x2c7840=_0x4d5684;scripts[_0x2c7840('0x1a')](this[_0x2c7840('0x100')][_0x2c7840('0x8f')],_0x5d138e[_0x2c7840('0x129')],_0x5d138e[_0x2c7840('0x133')],_0x5d138e[_0x2c7840('0x69')]||'en')[_0x2c7840('0xac')](function(_0x5eb7ec){_0x293f32(null,_0x5eb7ec);})[_0x2c7840('0x165')](function(_0x2d935c){_0x293f32(_0x2d935c);});},AGIVertices['prototype']['sestekNDA']=function(_0x3445b6,_0x4cdafc){const _0x147bf1=_0x4d5684;scripts['sestekNDA'](this[_0x147bf1('0x100')],_0x3445b6)[_0x147bf1('0xac')](function(_0x497244){_0x4cdafc(null,_0x497244);})['catch'](function(_0x56abbe){_0x4cdafc(_0x56abbe);});},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x10c')]=function(_0x3cd545,_0x1ca098){const _0x2c5b29=_0x4d5684;scripts[_0x2c5b29('0x10c')](_0x3cd545[_0x2c5b29('0x129')],_0x3cd545['text'],_0x3cd545[_0x2c5b29('0xf5')]||'en-US',_0x3cd545[_0x2c5b29('0x1a5')])[_0x2c5b29('0xac')](function(_0x7b65af){_0x1ca098(null,_0x7b65af);})[_0x2c5b29('0x165')](function(_0x4a3c64){_0x1ca098(_0x4a3c64);});},AGIVertices[_0x4d5684('0x65')]['ispeechASR']=function(_0x39848c,_0x28a7d2,_0x5db8cc){const _0x1b9dd0=_0x4d5684;scripts[_0x1b9dd0('0x3f')](_0x28a7d2,_0x39848c[_0x1b9dd0('0x129')],_0x39848c[_0x1b9dd0('0x114')]||'en-US',this[_0x1b9dd0('0x70')](_0x39848c[_0x1b9dd0('0x83')])?_0x39848c[_0x1b9dd0('0x83')]:undefined)[_0x1b9dd0('0xac')](function(_0x5eaf9e){_0x5db8cc(null,_0x5eaf9e);})['catch'](function(_0x13e6e0){_0x5db8cc(_0x13e6e0);});},AGIVertices['prototype'][_0x4d5684('0x7e')]=function(_0x554a7c,_0x45b661){const _0x4aa96c=_0x4d5684;scripts[_0x4aa96c('0x7e')](_0x554a7c[_0x4aa96c('0x3a')],_0x554a7c['aws_secret_access_key'],_0x554a7c['aws_polly_region'],_0x554a7c[_0x4aa96c('0xb1')]||'Amy',_0x554a7c[_0x4aa96c('0x133')],_0x554a7c[_0x4aa96c('0x63')]||_0x4aa96c('0x133'))[_0x4aa96c('0xac')](function(_0x2f5f6b){_0x45b661(null,_0x2f5f6b);})[_0x4aa96c('0x165')](function(_0x17d7cc){_0x45b661(_0x17d7cc);});},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x14a')]=function(_0x58f0df,_0x408c50){const _0x3cb07c=_0x4d5684;scripts[_0x3cb07c('0x14a')](this['channel'][_0x3cb07c('0x8f')],_0x58f0df[_0x3cb07c('0x3a')],_0x58f0df['aws_secret_access_key'],_0x58f0df[_0x3cb07c('0x125')],_0x58f0df[_0x3cb07c('0x133')],_0x58f0df['aws_bot_name'])['then'](function(_0x2ca21f){_0x408c50(null,_0x2ca21f);})[_0x3cb07c('0x165')](function(_0x4175d6){_0x408c50(_0x4175d6);});},AGIVertices['prototype'][_0x4d5684('0xee')]=function(_0x26f496,_0x2d42e5,_0x4a750a){const _0x121b00=_0x4d5684;scripts[_0x121b00('0xee')](_0x2d42e5,_0x26f496[_0x121b00('0x129')],_0x26f496[_0x121b00('0xff')]||'en-US')[_0x121b00('0xac')](function(_0x531fcc){_0x4a750a(null,_0x531fcc);})[_0x121b00('0x165')](function(_0x5b14cf){_0x4a750a(_0x5b14cf);});},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x8')]=function(_0xdea3b8,_0x56bcbb,_0x52227f){const _0x5b6991=_0x4d5684;scripts[_0x5b6991('0x8')](_0x56bcbb,_0xdea3b8[_0x5b6991('0x57')],_0xdea3b8['appsecret'],_0xdea3b8[_0x5b6991('0x145')])['then'](function(_0x345835){_0x52227f(null,_0x345835);})[_0x5b6991('0x165')](function(_0x4c33fb){_0x52227f(_0x4c33fb);});},AGIVertices[_0x4d5684('0x65')]['clear']=function(_0xd6a68b){const _0x20d4d0=_0x4d5684,_0x399990=_[_0x20d4d0('0x44')](verticesWithRetry,_0xd6a68b[_0x20d4d0('0xcc')])?_0xd6a68b:_[_0x20d4d0('0x22')](_0xd6a68b);for(const _0x11f4a7 in _0x399990){typeof _0x399990[_0x11f4a7]!==_0x20d4d0('0x179')&&(_0x399990[_0x11f4a7]&&_[_0x20d4d0('0x11e')](_0x399990[_0x11f4a7])&&(_[_0x20d4d0('0x44')](recursiveMapAttributes,_0x11f4a7)?_0x399990[_0x11f4a7]=this['replaceObjectAllVariables'](_0x399990[_0x11f4a7]):_0x399990[_0x11f4a7]=this[_0x20d4d0('0x76')](_0x399990[_0x11f4a7])));}return _0x399990;},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x157')]=function(_0x29cbeb){const _0x326025=_0x4d5684;for(const _0x4cffa8 in _0x29cbeb){if(typeof _0x29cbeb[_0x4cffa8]!==_0x326025('0x179')){if(_[_0x326025('0x6d')](_0x29cbeb[_0x4cffa8]))this['recursiveNodeIndex'](_0x29cbeb[_0x4cffa8]);else{if(_['isArray'](_0x29cbeb[_0x4cffa8]))for(let _0x42f558=0x0;_0x42f558<_0x29cbeb[_0x4cffa8][_0x326025('0xf1')];_0x42f558++){this[_0x326025('0x157')](_0x29cbeb[_0x4cffa8][_0x42f558]);}else _[_0x326025('0x11e')](_0x29cbeb[_0x4cffa8])&&(_0x29cbeb[_0x4cffa8]=this['replaceAllVariables'](_0x29cbeb[_0x4cffa8]));}}}},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x132')]=function(_0x5508d2,_0x3e4d72){const _0x4f8440=_0x4d5684;for(const _0x173d9d in _0x5508d2){if(typeof _0x5508d2[_0x173d9d]!=='undefined'){if(_[_0x4f8440('0x6d')](_0x5508d2[_0x173d9d]))!_['isEmpty'](_0x5508d2[_0x173d9d])&&this['saveRestApiResult'](_0x5508d2[_0x173d9d],util[_0x4f8440('0x15a')](_0x4f8440('0x39'),_0x3e4d72,_0x173d9d));else{if(_['isArray'](_0x5508d2[_0x173d9d]))for(let _0x23fc93=0x0;_0x23fc93<_0x5508d2[_0x173d9d][_0x4f8440('0xf1')];_0x23fc93++){this['saveRestApiResult'](_0x5508d2[_0x173d9d][_0x23fc93],util[_0x4f8440('0x15a')](_0x4f8440('0x39'),_0x3e4d72,_0x173d9d+'['+_0x23fc93+']'));}else!_[_0x4f8440('0x16a')](_0x5508d2[_0x173d9d])&&this['channel'][_0x4f8440('0x19a')](util['format'](_0x4f8440('0x39'),_0x3e4d72,_0x173d9d),_0x5508d2[_0x173d9d]);}}}},AGIVertices['prototype']['replaceObjectAllVariables']=function(_0xfb987){const _0x1f3855=_0x4d5684;try{const _0x1f96dc=JSON[_0x1f3855('0x5f')](_0xfb987);return this[_0x1f3855('0x157')](_0x1f96dc),JSON['stringify'](_0x1f96dc);}catch(_0x40bb53){return this[_0x1f3855('0x76')](_0xfb987);}},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x76')]=function(_0xf6a2ce){const _0x5946ae=_0x4d5684,_0x2d5451=_0xf6a2ce[_0x5946ae('0x25')]('{');for(let _0x21c0f2=0x1;_0x21c0f2<_0x2d5451[_0x5946ae('0xf1')];_0x21c0f2+=0x1){const _0x4a3127=_0x2d5451[_0x21c0f2]['split']('}');_0x4a3127[_0x5946ae('0xf1')]>0x1&&(_0xf6a2ce=_0xf6a2ce[_0x5946ae('0x19b')]('{'+_0x4a3127[0x0]+'}',this['channel']['getVariable'](_0x4a3127[0x0])['extra']||_0x4a3127[0x0]));}if(_0x2d5451[_0x5946ae('0xf1')]===0x1)return _0xf6a2ce[_0x5946ae('0x95')]();return this['replaceAllVariables'](_0xf6a2ce);},AGIVertices['prototype']['getAndSetVariable']=function(_0xb57145,_0x2f1821){const _0x3f706a=_0x4d5684,_0x2f0dd5=this[_0x3f706a('0x100')][_0x3f706a('0xaa')](_0xb57145);if(_0x2f0dd5[_0x3f706a('0x18b')]===-0x1)return _0x2f0dd5;return logger[_0x3f706a('0x8a')](util[_0x3f706a('0x15a')]('The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s',_0x2f1821,_0x2f0dd5['extra'])),this[_0x3f706a('0x100')][_0x3f706a('0x19a')](_0x2f1821,_0x2f0dd5[_0x3f706a('0x161')]);},AGIVertices[_0x4d5684('0x65')]['isConfigured']=function(_0x41f164){return _0x41f164&&_0x41f164!=='0'&&_0x41f164!=='-1'&&_0x41f164!=='';},AGIVertices[_0x4d5684('0x65')]['maxRetry']=function(_0x239453){const _0x5643dd=_0x4d5684;return this[_0x5643dd('0xd1')][_0x5643dd('0x2c')](this,_0x239453,'-'),_0x239453[_0x5643dd('0xdf')]=_0x239453[_0x5643dd('0x1bb')],{'code':0xc8,'result':'-'};},AGIVertices['prototype']['mrcpsynth']=function(_0x4860b1){const _0x5011d8=_0x4d5684;logger[_0x5011d8('0x8a')](util[_0x5011d8('0x15a')](_0x5011d8('0x29'),_0x4860b1[_0x5011d8('0x146')]));if(!this[_0x5011d8('0x70')](_0x4860b1[_0x5011d8('0x133')]))return this['channel'][_0x5011d8('0x6c')](_0x5011d8('0x67'));let _0x3fd665='\x22'+_0x4860b1['text']+'\x22';this[_0x5011d8('0x70')](_0x4860b1[_0x5011d8('0x16c')])&&(_0x3fd665+=','+_0x4860b1[_0x5011d8('0x16c')]);const _0x4cbcfe=this[_0x5011d8('0x100')][_0x5011d8('0x1bc')](_0x5011d8('0x1b9'),_0x3fd665);if(_0x4cbcfe[_0x5011d8('0x18b')]===-0x1)return _0x4cbcfe;return this[_0x5011d8('0x100')][_0x5011d8('0x6c')](util[_0x5011d8('0x15a')](_0x5011d8('0x51'),_0x3fd665));},AGIVertices['prototype'][_0x4d5684('0x42')]=function(_0x5722ce){const _0x2f3586=_0x4d5684;logger[_0x2f3586('0x8a')](util['format'](_0x2f3586('0x4c'),_0x5722ce[_0x2f3586('0x146')]));if(!this[_0x2f3586('0x70')](_0x5722ce[_0x2f3586('0xb5')]))return this[_0x2f3586('0x100')][_0x2f3586('0x6c')](_0x2f3586('0x38'));let _0x199577=_0x5722ce[_0x2f3586('0xb5')];this[_0x2f3586('0x70')](_0x5722ce[_0x2f3586('0x16c')])&&(_0x199577+=','+_0x5722ce['options']);const _0x4b8e5f=this[_0x2f3586('0x100')][_0x2f3586('0x1bc')]('MRCPRecog',_0x199577);if(_0x4b8e5f[_0x2f3586('0x18b')]===-0x1)return _0x4b8e5f;const _0x9766e6=this['getAndSetVariable'](_0x2f3586('0xb3'),'MRCP_RECOG_CONFIDENCE');if(_0x9766e6[_0x2f3586('0x18b')]===-0x1)return _0x9766e6;const _0x50cc12=this['getAndSetVariable'](_0x2f3586('0xdb'),_0x2f3586('0x18d'));if(_0x50cc12[_0x2f3586('0x18b')]===-0x1)return _0x50cc12;const _0x1c9d10=this['getAndSetVariable']('RECOG_INSTANCE()','MRCP_RECOG_INSTANCE');if(_0x1c9d10[_0x2f3586('0x18b')]===-0x1)return _0x1c9d10;return this[_0x2f3586('0x100')][_0x2f3586('0x6c')](util['format']('Executed\x20command\x20MRCPRecog\x20%s',_0x199577));},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x18f')]=function(_0xd62735){const _0x5124cd=_0x4d5684;return logger[_0x5124cd('0x8a')](util[_0x5124cd('0x15a')]('Enter\x20in\x20AGI\x20(%s)\x20block',_0xd62735[_0x5124cd('0x146')])),this[_0x5124cd('0x100')][_0x5124cd('0x18f')]([_0xd62735['command'],_0xd62735[_0x5124cd('0x185')]]);},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x138')]=function(_0x187b2f){const _0x53dfab=_0x4d5684;logger[_0x53dfab('0x8a')](util['format'](_0x53dfab('0x178'),_0x187b2f[_0x53dfab('0x146')]));if(this['isConfigured'](_0x187b2f['timeout'])){logger[_0x53dfab('0x8a')](util[_0x53dfab('0x15a')](_0x53dfab('0x12b'),_0x187b2f[_0x53dfab('0x1aa')]));const _0x2d37f9=this['channel'][_0x53dfab('0xb7')](_0x187b2f[_0x53dfab('0x1aa')]);if(_0x2d37f9[_0x53dfab('0x18b')]===-0x1)return _0x2d37f9;}return this[_0x53dfab('0x100')][_0x53dfab('0x138')]();},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0xba')]=function(_0x2e0c12){const _0x2482e7=_0x4d5684;logger[_0x2482e7('0x8a')](util[_0x2482e7('0x15a')]('Enter\x20in\x20CALLBACK\x20(%s)\x20block',_0x2e0c12[_0x2482e7('0x146')]));if(!this[_0x2482e7('0x70')](_0x2e0c12[_0x2482e7('0x43')]))return this['channel']['error'](_0x2e0c12,'no\x20list\x20selected');return _0x2e0c12[_0x2482e7('0x196')]=moment(),this[_0x2482e7('0x70')](_0x2e0c12['delay'])&&(_0x2e0c12[_0x2482e7('0x196')]=moment()[_0x2482e7('0xc8')](_0x2e0c12[_0x2482e7('0x14c')],_0x2482e7('0x1a1'))),!this[_0x2482e7('0x70')](_0x2e0c12[_0x2482e7('0xbb')])&&(_0x2e0c12['callback_priority']=0x2),this[_0x2482e7('0x5b')]['sync'](this,_0x2e0c12),this[_0x2482e7('0x100')][_0x2482e7('0x6c')](util[_0x2482e7('0x15a')](_0x2482e7('0x106'),_0x2e0c12['phone'],_0x2e0c12[_0x2482e7('0x43')],_0x2e0c12[_0x2482e7('0x196')]));},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x4')]=function(_0x2fdd4d){const _0x2e89ea=_0x4d5684;logger[_0x2e89ea('0x8a')](util['format'](_0x2e89ea('0x1b8'),_0x2fdd4d[_0x2e89ea('0x146')]));const _0x2d7789=this[_0x2e89ea('0x100')][_0x2e89ea('0x1bc')](_0x2fdd4d[_0x2e89ea('0x41')],_0x2fdd4d[_0x2e89ea('0x16c')]);if(_0x2d7789['result']===-0x1)return _0x2d7789;return this[_0x2e89ea('0x100')][_0x2e89ea('0x6c')](util['format'](_0x2e89ea('0xe2'),_0x2fdd4d[_0x2e89ea('0x41')],_0x2fdd4d[_0x2e89ea('0x16c')]));},AGIVertices['prototype'][_0x4d5684('0x128')]=function(_0x4857c8){const _0x1b197c=_0x4d5684;logger['info'](util[_0x1b197c('0x15a')]('Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block',_0x4857c8[_0x1b197c('0x146')]));if(!this[_0x1b197c('0x70')](_0x4857c8[_0x1b197c('0x133')]))return this['channel'][_0x1b197c('0x6c')](_0x1b197c('0x67'));let _0x579235='\x22'+_0x4857c8[_0x1b197c('0x133')]+'\x22';this['isConfigured'](_0x4857c8[_0x1b197c('0x16c')])&&(_0x579235+=','+_0x4857c8[_0x1b197c('0x16c')]);const _0x35eec7=this[_0x1b197c('0x100')][_0x1b197c('0x1bc')]('MRCPSynth',_0x579235);if(_0x35eec7[_0x1b197c('0x18b')]===-0x1)return _0x35eec7;return this['channel']['noop'](util[_0x1b197c('0x15a')](_0x1b197c('0x51'),_0x579235));},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0xd')]=function(_0x5d0559){const _0x210bae=_0x4d5684;logger[_0x210bae('0x8a')](util[_0x210bae('0x15a')]('Enter\x20in\x20SESTEKTTS\x20(%s)\x20block',_0x5d0559['label']));if(!this[_0x210bae('0x70')](_0x5d0559[_0x210bae('0x133')]))return this['channel'][_0x210bae('0x6c')](_0x210bae('0x67'));let _0x5b4b6d='\x22'+_0x5d0559[_0x210bae('0x133')]+'\x22';this[_0x210bae('0x70')](_0x5d0559[_0x210bae('0x16c')])&&(_0x5b4b6d+=','+_0x5d0559['options']);const _0x3729d3=this[_0x210bae('0x100')][_0x210bae('0x1bc')](_0x210bae('0x1b9'),_0x5b4b6d);if(_0x3729d3[_0x210bae('0x18b')]===-0x1)return _0x3729d3;return this[_0x210bae('0x100')][_0x210bae('0x6c')](util[_0x210bae('0x15a')](_0x210bae('0x51'),_0x5b4b6d));},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x15e')]=function(_0x4a9c22){const _0x23646b=_0x4d5684;logger['info'](util[_0x23646b('0x15a')](_0x23646b('0x6f'),_0x4a9c22[_0x23646b('0x146')]));if(!this[_0x23646b('0x70')](_0x4a9c22[_0x23646b('0xb5')]))return this[_0x23646b('0x100')]['noop'](_0x23646b('0x38'));let _0x2fe5c1=_0x4a9c22[_0x23646b('0xb5')];this[_0x23646b('0x70')](_0x4a9c22['options'])&&(_0x2fe5c1+=','+_0x4a9c22[_0x23646b('0x16c')]);const _0x1074f1=this['channel']['exec'](_0x23646b('0x37'),_0x2fe5c1);if(_0x1074f1[_0x23646b('0x18b')]===-0x1)return _0x1074f1;const _0x3632d7=this[_0x23646b('0x55')](_0x23646b('0xb3'),'LUMENVOX_ASR_CONFIDENCE');if(_0x3632d7['result']===-0x1)return _0x3632d7;const _0x1a4bf1=this[_0x23646b('0x55')](_0x23646b('0xdb'),_0x23646b('0xca'));if(_0x1a4bf1[_0x23646b('0x18b')]===-0x1)return _0x1a4bf1;const _0x10eaf1=this[_0x23646b('0x55')]('RECOG_INSTANCE()',_0x23646b('0x12'));if(_0x10eaf1[_0x23646b('0x18b')]===-0x1)return _0x10eaf1;return this[_0x23646b('0x100')][_0x23646b('0x6c')](util[_0x23646b('0x15a')](_0x23646b('0x9a'),_0x2fe5c1));},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x85')]=function(_0x255144){const _0x4af131=_0x4d5684;logger[_0x4af131('0x8a')](util[_0x4af131('0x15a')](_0x4af131('0x186'),_0x255144['label']));if(!this[_0x4af131('0x70')](_0x255144[_0x4af131('0xb5')]))return this[_0x4af131('0x100')][_0x4af131('0x6c')]('no\x20grammar\x20configured');let _0x377bf=_0x255144[_0x4af131('0xb5')];this[_0x4af131('0x70')](_0x255144[_0x4af131('0x16c')])&&(_0x377bf+=','+_0x255144[_0x4af131('0x16c')]);const _0x148cbb=this['channel'][_0x4af131('0x1bc')](_0x4af131('0x37'),_0x377bf);if(_0x148cbb['result']===-0x1)return _0x148cbb;const _0x373770=this[_0x4af131('0x55')](_0x4af131('0xb3'),'SESTEK_ASR_CONFIDENCE');if(_0x373770['result']===-0x1)return _0x373770;const _0x5f361f=this[_0x4af131('0x55')](_0x4af131('0xdb'),'SESTEK_ASR_TRANSCRIPT');if(_0x5f361f['result']===-0x1)return _0x5f361f;const _0x14fa30=this[_0x4af131('0x55')]('RECOG_INSTANCE()','SESTEK_ASR_INSTANCE');if(_0x14fa30[_0x4af131('0x18b')]===-0x1)return _0x14fa30;return this[_0x4af131('0x100')][_0x4af131('0x6c')](util['format'](_0x4af131('0x9a'),_0x377bf));},AGIVertices['prototype'][_0x4d5684('0x6e')]=function(_0x21cd10){const _0xd8da6b=_0x4d5684;logger[_0xd8da6b('0x8a')](util[_0xd8da6b('0x15a')](_0xd8da6b('0x15b'),_0x21cd10[_0xd8da6b('0x146')]));if(!this[_0xd8da6b('0x70')](_0x21cd10[_0xd8da6b('0x190')]))return this[_0xd8da6b('0x100')][_0xd8da6b('0x126')](_0x21cd10,_0xd8da6b('0x1f'));const _0x4f40bb=this[_0xd8da6b('0x36')][_0xd8da6b('0x2c')](this,_0x21cd10['odbc_id']);if(!_0x4f40bb)return this[_0xd8da6b('0x100')][_0xd8da6b('0x126')](_0x21cd10,_0xd8da6b('0x141'));if(!this['isConfigured'](_0x21cd10['query']))return this[_0xd8da6b('0x100')]['error'](_0x21cd10,_0xd8da6b('0x120'));const _0x2fbd90=_0x21cd10['query']['replace'](/(\r\n|\n|\r)/gm,'\x20');this[_0xd8da6b('0x100')][_0xd8da6b('0x6c')](util[_0xd8da6b('0x15a')](_0xd8da6b('0x1e'),_0x2fbd90));const _0x254572=this['getQueryOdbc']['sync'](this,_0x4f40bb,_0x2fbd90);this[_0xd8da6b('0xd1')]['sync'](this,_0x21cd10,_0x2fbd90);if(!this[_0xd8da6b('0x70')](_0x21cd10[_0xd8da6b('0x89')]))return this['channel'][_0xd8da6b('0x6c')](_0xd8da6b('0x147'));const _0x38f397=this[_0xd8da6b('0xaa')]['sync'](this,_0x21cd10[_0xd8da6b('0x89')]);if(!_0x38f397)return this[_0xd8da6b('0x100')][_0xd8da6b('0x126')](_0x21cd10,_0xd8da6b('0x1b0'));const _0x33c40c=this;return _0x254572[_0xd8da6b('0x19f')](function(_0x130f24,_0x47a4b8){const _0x4ddbce=_0xd8da6b;Object['keys'](_0x130f24)[_0x4ddbce('0x19f')](function(_0x460c30){const _0x142f0e=_0x4ddbce;_0x33c40c[_0x142f0e('0x100')][_0x142f0e('0x19a')](util[_0x142f0e('0x15a')](_0x142f0e('0x121'),_0x38f397,_0x47a4b8,_0x460c30),_0x130f24[_0x460c30]);});}),this['channel'][_0xd8da6b('0x19a')](util[_0xd8da6b('0x15a')](_0xd8da6b('0x7a'),_0x38f397),_0x254572[_0xd8da6b('0xf1')]),this[_0xd8da6b('0x100')][_0xd8da6b('0x6c')](util[_0xd8da6b('0x15a')]('variable\x20%s\x20set',_0x38f397));},AGIVertices[_0x4d5684('0x65')]['dial']=function(_0x470a3d){const _0x20196a=_0x4d5684;logger[_0x20196a('0x131')](util[_0x20196a('0x15a')](_0x20196a('0x142'),_0x470a3d[_0x20196a('0x146')]));if(!this['isConfigured'](_0x470a3d['sip_id']))return this[_0x20196a('0x100')]['error'](_0x470a3d,_0x20196a('0xdc'));const _0x2381e2=this[_0x20196a('0x1c')][_0x20196a('0x2c')](this,_0x470a3d[_0x20196a('0xe3')]);if(!_0x2381e2)return this[_0x20196a('0x100')][_0x20196a('0x126')](_0x470a3d,'no\x20user\x20found');const _0x39edf0=this[_0x20196a('0x100')][_0x20196a('0x1bc')]('DIAL',[util['format'](_0x20196a('0x167'),_0x2381e2),_0x470a3d[_0x20196a('0x1aa')],_0x470a3d[_0x20196a('0xa0')],_0x470a3d['url']]);if(_0x39edf0[_0x20196a('0x18b')]===-0x1)return _0x39edf0;return this[_0x20196a('0x100')][_0x20196a('0x6c')](util[_0x20196a('0x15a')]('Executed\x20command\x20%s','DIAL'));},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0xb2')]=function(_0x14081c){const _0x2dce84=_0x4d5684;logger[_0x2dce84('0x8a')](util[_0x2dce84('0x15a')](_0x2dce84('0x5c'),_0x14081c[_0x2dce84('0x146')]));if(!this[_0x2dce84('0x70')](_0x14081c['key']))return this[_0x2dce84('0x100')]['noop'](_0x2dce84('0x14b'));if(!this['isConfigured'](_0x14081c[_0x2dce84('0x133')]))return this[_0x2dce84('0x100')][_0x2dce84('0x6c')](_0x2dce84('0x67'));this['channel']['bot']=!![],this[_0x2dce84('0xd1')](_0x14081c),this[_0x2dce84('0x35')](_0x14081c[_0x2dce84('0x133')],'in'),this['channel'][_0x2dce84('0x6c')](util[_0x2dce84('0x15a')]('Trying\x20Dialogflow:\x20%s',_0x14081c[_0x2dce84('0x133')]));const _0x2b019e=this[_0x2dce84('0x1a')][_0x2dce84('0x2c')](this,_0x14081c);if(_0x2b019e){for(const _0x9a8770 in _0x2b019e){typeof _0x2b019e[_0x9a8770]!==_0x2dce84('0x179')&&this[_0x2dce84('0x100')][_0x2dce84('0x19a')](util[_0x2dce84('0x15a')](_0x2dce84('0x148'),_0x9a8770[_0x2dce84('0xa7')]()),_0x2b019e[_0x9a8770]);}return this[_0x2dce84('0x35')](_0x2b019e[_0x2dce84('0x19')],_0x2dce84('0x93')),this['channel'][_0x2dce84('0x6c')](util[_0x2dce84('0x15a')](_0x2dce84('0x68'),_0x2b019e[_0x2dce84('0x19')]));}return this[_0x2dce84('0x100')][_0x2dce84('0x126')](_0x14081c,_0x2dce84('0x139'));},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0xf6')]=function(_0x3cf5b0){const _0x3811fc=_0x4d5684;logger[_0x3811fc('0x8a')](util[_0x3811fc('0x15a')](_0x3811fc('0x197'),_0x3cf5b0['label']));if(!this['isConfigured'](_0x3cf5b0['ndauth_url']))return this[_0x3811fc('0x100')][_0x3811fc('0x6c')]('no\x20ndauth\x20url\x20configured');if(!this['isConfigured'](_0x3cf5b0[_0x3811fc('0x92')]))return this[_0x3811fc('0x100')]['noop'](_0x3811fc('0x21'));if(!this[_0x3811fc('0x70')](_0x3cf5b0[_0x3811fc('0x7')]))return this[_0x3811fc('0x100')]['noop']('no\x20password\x20configured');if(!this[_0x3811fc('0x70')](_0x3cf5b0[_0x3811fc('0x97')]))return this[_0x3811fc('0x100')][_0x3811fc('0x6c')](_0x3811fc('0x67'));this[_0x3811fc('0x100')][_0x3811fc('0x13c')]=!![],this[_0x3811fc('0xd1')](_0x3cf5b0),this[_0x3811fc('0x35')](_0x3cf5b0['text'],'in'),this[_0x3811fc('0x100')][_0x3811fc('0x6c')](util[_0x3811fc('0x15a')]('Trying\x20SestekNDA:\x20%s',_0x3cf5b0[_0x3811fc('0x133')]));const _0x20a232=this['sestekNDA'][_0x3811fc('0x2c')](this,_0x3cf5b0);if(_0x20a232){for(const _0x1ab389 in _0x20a232){typeof _0x20a232[_0x1ab389]!==_0x3811fc('0x179')&&this[_0x3811fc('0x100')][_0x3811fc('0x19a')](util[_0x3811fc('0x15a')](_0x3811fc('0x24'),_0x1ab389['toUpperCase']()),_0x20a232[_0x1ab389]);}this[_0x3811fc('0x35')](_0x20a232[_0x3811fc('0x19')],_0x3811fc('0x93'));if(_0x20a232[_0x3811fc('0x109')]){this[_0x3811fc('0x100')][_0x3811fc('0x6c')](util[_0x3811fc('0x15a')](_0x3811fc('0x101'),_0x20a232['audiofile']));const _0x76bdc=this[_0x3811fc('0x100')]['streamFile'](_0x20a232[_0x3811fc('0x109')]);try{fs[_0x3811fc('0x159')](_0x20a232[_0x3811fc('0x109')]+_0x3811fc('0x12d'));}catch(_0x4ad397){logger[_0x3811fc('0x126')](_0x4ad397);}return _0x76bdc;}else return this['channel'][_0x3811fc('0x6c')](util['format'](_0x3811fc('0x1a9'),_0x20a232[_0x3811fc('0x19')]));}return this[_0x3811fc('0x100')]['error'](_0x3cf5b0,_0x3811fc('0x2'));},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x1a3')]=function(_0x32aed3){const _0x17ee50=_0x4d5684;return logger[_0x17ee50('0x8a')](util['format']('Enter\x20in\x20END\x20(%s)\x20block',_0x32aed3[_0x17ee50('0x146')])),this['channel']['noop'](_0x17ee50('0x1a3'));},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0xad')]=function(_0x241a34){const _0x411d3a=_0x4d5684;logger[_0x411d3a('0x8a')](util[_0x411d3a('0x15a')](_0x411d3a('0x171'),_0x241a34[_0x411d3a('0x146')]));let _0x4bbcfe='';if(_0x241a34[_0x411d3a('0x123')]){if(!this[_0x411d3a('0x70')](_0x241a34[_0x411d3a('0x123')]))return this[_0x411d3a('0x100')][_0x411d3a('0x126')](_0x241a34,_0x411d3a('0x8b'));else{const _0xe47ac8=parseInt(_0x241a34[_0x411d3a('0x123')],0xa);if(isNaN(_0xe47ac8))_0x4bbcfe=_0x241a34[_0x411d3a('0x123')];else{_0x4bbcfe=this['getTrunk'][_0x411d3a('0x2c')](this,_0x241a34[_0x411d3a('0x123')]);if(!_0x4bbcfe)return this[_0x411d3a('0x100')]['error'](_0x241a34,_0x411d3a('0x18e'));}}}else{if(_0x241a34['trunk_name'])_0x4bbcfe=_0x241a34[_0x411d3a('0x56')];else return this[_0x411d3a('0x100')][_0x411d3a('0x126')](_0x241a34,'no\x20trunk\x20selected');}const _0x31074d=this[_0x411d3a('0x100')][_0x411d3a('0x1bc')](_0x411d3a('0x14f'),[util['format'](_0x411d3a('0xaf'),_0x4bbcfe,_0x241a34[_0x411d3a('0xd8')]),_0x241a34['timeout'],_0x241a34[_0x411d3a('0xa0')],_0x241a34[_0x411d3a('0x1bd')]]);if(_0x31074d[_0x411d3a('0x18b')]===-0x1)return _0x31074d;return this['channel']['noop'](util[_0x411d3a('0x15a')]('Executed\x20command\x20%s',_0x411d3a('0x14f')));},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0xc2')]=function(_0x3be383){const _0x44eb68=_0x4d5684;return logger[_0x44eb68('0x8a')](util[_0x44eb68('0x15a')]('Enter\x20in\x20FINALLY\x20(%s)\x20block',_0x3be383['label'])),this['channel'][_0x44eb68('0x6c')]('finally');},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x163')]=function(_0x2cd60f){const _0x50de0d=_0x4d5684;logger['info'](util[_0x50de0d('0x15a')](_0x50de0d('0x61'),_0x2cd60f['label']));if(_0x2cd60f[_0x50de0d('0xdf')]===0x0)return this['maxRetry'](_0x2cd60f);_0x2cd60f[_0x50de0d('0xdf')]-=0x1;if(!this[_0x50de0d('0x70')](_0x2cd60f[_0x50de0d('0x116')]))return this['channel']['error'](_0x2cd60f,_0x50de0d('0x16b'));const _0x4f565b=this[_0x50de0d('0xa3')]['sync'](this,_0x2cd60f[_0x50de0d('0x116')]);if(!_0x4f565b)return this[_0x50de0d('0x100')][_0x50de0d('0x126')](_0x2cd60f,_0x50de0d('0x127'));if(!this['isConfigured'](_0x2cd60f[_0x50de0d('0x89')]))return this['channel']['error'](_0x50de0d('0x147'));const _0x5bf8d9=this['channel'][_0x50de0d('0x130')](_0x4f565b,_0x2cd60f[_0x50de0d('0xce')],_0x2cd60f[_0x50de0d('0xbc')]),_0x5db26b=_0x5bf8d9[_0x50de0d('0x18b')]?_0x5bf8d9[_0x50de0d('0x18b')][_0x50de0d('0x95')]():'';logger[_0x50de0d('0x8a')](_0x50de0d('0x5d'),JSON[_0x50de0d('0xef')](_0x5bf8d9));if(_0x5bf8d9[_0x50de0d('0x18b')]===-0x1)return this[_0x50de0d('0xd1')]['sync'](this,_0x2cd60f,_0x5db26b),_0x5bf8d9;else _0x5bf8d9['extra']===_0x50de0d('0x1aa')?_0x5bf8d9[_0x50de0d('0x18b')]=_0x5db26b[_0x50de0d('0xf1')]>=parseInt(_0x2cd60f[_0x50de0d('0x135')])?'x':'i':_0x5bf8d9[_0x50de0d('0x18b')]=_0x5db26b[_0x50de0d('0xf1')]>=parseInt(_0x2cd60f[_0x50de0d('0x135')])&&_0x5db26b['length']<=parseInt(_0x2cd60f[_0x50de0d('0xbc')])?'x':'i';const _0x56b4a6=this[_0x50de0d('0xaa')][_0x50de0d('0x2c')](this,_0x2cd60f[_0x50de0d('0x89')]);if(!_0x56b4a6)return this['channel']['error'](_0x2cd60f,_0x50de0d('0x1b0'));this[_0x50de0d('0x100')][_0x50de0d('0x19a')](_0x56b4a6,_0x5db26b);if(this[_0x50de0d('0x70')](_0x2cd60f['hiddendigitsnum'])){const _0x21419b=parseInt(_0x2cd60f[_0x50de0d('0x9d')],0xa),_0x4748e6=rs[_0x50de0d('0x134')]({'charset':'*','length':_0x21419b}),_0x17161e=_0x5db26b[_0x50de0d('0xf1')];_0x17161e>0x0?_0x17161e>_0x21419b?this[_0x50de0d('0xd1')][_0x50de0d('0x2c')](this,_0x2cd60f,_0x2cd60f[_0x50de0d('0x52')]==='first'?_0x4748e6+_0x5db26b[_0x50de0d('0xb4')](_0x21419b):_0x5db26b[_0x50de0d('0xb4')](0x0,_0x17161e-_0x21419b)+_0x4748e6):this['createSquareDetailsReport'][_0x50de0d('0x2c')](this,_0x2cd60f,rs['generate']({'charset':'*','length':_0x17161e})):this[_0x50de0d('0xd1')][_0x50de0d('0x2c')](this,_0x2cd60f,'');}else this[_0x50de0d('0xd1')][_0x50de0d('0x2c')](this,_0x2cd60f,_0x5db26b);return _0x5bf8d9;},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x156')]=function(_0x492220){const _0x11f6eb=_0x4d5684;return logger[_0x11f6eb('0x8a')](util[_0x11f6eb('0x15a')](_0x11f6eb('0x4e'),_0x492220['label'])),this[_0x11f6eb('0x163')](_0x492220);},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0xbe')]=function(_0xc7a6a7){const _0x22bb6c=_0x4d5684;return logger['info'](util[_0x22bb6c('0x15a')](_0x22bb6c('0x71'),_0xc7a6a7['label'])),this[_0x22bb6c('0xd1')][_0x22bb6c('0x2c')](this,_0xc7a6a7,_0xc7a6a7[_0x22bb6c('0xa8')]),this['channel'][_0x22bb6c('0x6c')](util[_0x22bb6c('0x15a')]('GOAL\x20%s',_0xc7a6a7[_0x22bb6c('0xa8')]));},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x59')]=function(_0x16c376){const _0xe4796f=_0x4d5684;logger[_0xe4796f('0x8a')](util[_0xe4796f('0x15a')](_0xe4796f('0x19c'),_0x16c376[_0xe4796f('0x146')]));if(!this[_0xe4796f('0x70')](_0x16c376[_0xe4796f('0x3a')])||!this['isConfigured'](_0x16c376['aws_secret_access_key']))return this[_0xe4796f('0x100')]['noop'](_0xe4796f('0x13a'));if(!this[_0xe4796f('0x70')](_0x16c376[_0xe4796f('0x133')]))return this[_0xe4796f('0x100')][_0xe4796f('0x6c')](_0xe4796f('0x67'));this[_0xe4796f('0x100')][_0xe4796f('0x6c')](util[_0xe4796f('0x15a')](_0xe4796f('0x1b3'),_0x16c376[_0xe4796f('0x133')]));const _0xad5499=this['awsPolly'][_0xe4796f('0x2c')](this,_0x16c376);if(_0xad5499){this['channel'][_0xe4796f('0x6c')](util[_0xe4796f('0x15a')](_0xe4796f('0xa'),_0xad5499));const _0x208d99=this['channel'][_0xe4796f('0x11b')](_0xad5499);try{fs[_0xe4796f('0x159')](_0xad5499+'.wav');}catch(_0x4de66f){logger[_0xe4796f('0x126')](_0x4de66f);}return _0x208d99;}return this[_0xe4796f('0x100')]['error'](_0x16c376,_0xe4796f('0x1a8'));},AGIVertices['prototype'][_0x4d5684('0x1be')]=function(_0x1ffc99){const _0x11aa19=_0x4d5684;logger['info'](util[_0x11aa19('0x15a')](_0x11aa19('0xf4'),_0x1ffc99[_0x11aa19('0x146')]));if(!this['isConfigured'](_0x1ffc99[_0x11aa19('0x3a')])||!this[_0x11aa19('0x70')](_0x1ffc99[_0x11aa19('0xb9')]))return this['channel'][_0x11aa19('0x6c')](_0x11aa19('0x13a'));if(!this[_0x11aa19('0x70')](_0x1ffc99[_0x11aa19('0xfc')]))return this[_0x11aa19('0x100')]['noop'](_0x11aa19('0x3e'));if(!this[_0x11aa19('0x70')](_0x1ffc99['text']))return this['channel']['noop'](_0x11aa19('0x67'));this[_0x11aa19('0x100')][_0x11aa19('0x13c')]=!![],this[_0x11aa19('0xd1')](_0x1ffc99),this['createSquareMessage'](_0x1ffc99[_0x11aa19('0x133')],'in'),this[_0x11aa19('0x100')][_0x11aa19('0x6c')](util[_0x11aa19('0x15a')](_0x11aa19('0x164'),_0x1ffc99[_0x11aa19('0x133')]));const _0x1ad503=this[_0x11aa19('0x14a')][_0x11aa19('0x2c')](this,_0x1ffc99);if(_0x1ad503){for(const _0x3518bf in _0x1ad503){typeof _0x1ad503[_0x3518bf]!==_0x11aa19('0x179')&&_[_0x11aa19('0x11e')](_0x1ad503[_0x3518bf])&&this[_0x11aa19('0x100')][_0x11aa19('0x19a')](util[_0x11aa19('0x15a')](_0x11aa19('0xf8'),_0x3518bf['toUpperCase']()),_0x1ad503[_0x3518bf]);}return _[_0x11aa19('0x16a')](_0x1ad503[_0x11aa19('0x11')])?this[_0x11aa19('0x100')][_0x11aa19('0x6c')](_0x11aa19('0xcf')):(this['createSquareMessage'](_0x1ad503[_0x11aa19('0x11')],'out'),this['channel'][_0x11aa19('0x6c')](util[_0x11aa19('0x15a')](_0x11aa19('0xe0'),_0x1ad503[_0x11aa19('0x11')])));}return this[_0x11aa19('0x100')]['error'](_0x1ffc99,_0x11aa19('0x1b5'));},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x191')]=function(_0x5920f5){const _0x42aa78=_0x4d5684;logger['info'](util[_0x42aa78('0x15a')](_0x42aa78('0x1b'),_0x5920f5[_0x42aa78('0x146')],_0x5920f5[_0x42aa78('0x1aa')]));if(!this[_0x42aa78('0x70')](_0x5920f5[_0x42aa78('0x129')]))return this[_0x42aa78('0x100')][_0x42aa78('0x6c')](_0x42aa78('0x14b'));const _0xb8af23=_0x42aa78('0x88'),_0x37d1cc=util[_0x42aa78('0x15a')]('%s/recordings/%s',FILES_PATH,rs['generate'](0x4)),_0x5c4b72=util[_0x42aa78('0x15a')](_0x42aa78('0x39'),_0x37d1cc,_0xb8af23);let _0x270bfc=!![];_0x5920f5[_0x42aa78('0x58')]===_0x42aa78('0x140')&&(_0x270bfc=![]);const _0x10d635=this[_0x42aa78('0x100')][_0x42aa78('0x102')](_0x37d1cc,_0xb8af23,_0x5920f5[_0x42aa78('0x9b')],_0x5920f5[_0x42aa78('0x1aa')],undefined,_0x270bfc);if(_0x10d635['result']!==-0x1){this[_0x42aa78('0x100')]['noop'](util[_0x42aa78('0x15a')](_0x42aa78('0x1b2'),_0x5c4b72));const _0x5ad35e=this[_0x42aa78('0xee')]['sync'](this,_0x5920f5,_0x5c4b72);if(_0x5ad35e){for(const _0x1939e1 in _0x5ad35e){typeof _0x5ad35e[_0x1939e1]!==_0x42aa78('0x179')&&this['channel'][_0x42aa78('0x19a')](util[_0x42aa78('0x15a')](_0x42aa78('0x115'),_0x1939e1[_0x42aa78('0xa7')]()),_0x5ad35e[_0x1939e1]);}return this[_0x42aa78('0x100')][_0x42aa78('0x6c')](util[_0x42aa78('0x15a')](_0x42aa78('0x168'),JSON[_0x42aa78('0xef')](_0x5ad35e)));}}return _0x10d635;},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x1b6')]=function(_0x208083){const _0x2a1c98=_0x4d5684;logger[_0x2a1c98('0x8a')](util[_0x2a1c98('0x15a')](_0x2a1c98('0x14d'),_0x208083[_0x2a1c98('0x146')]));if(!this[_0x2a1c98('0x70')](_0x208083[_0x2a1c98('0x57')]))return this[_0x2a1c98('0x100')][_0x2a1c98('0x6c')](_0x2a1c98('0x194'));if(!this['isConfigured'](_0x208083[_0x2a1c98('0x1bf')]))return this[_0x2a1c98('0x100')]['noop'](_0x2a1c98('0xf3'));const _0x197018=_0x2a1c98('0x88'),_0x29ba30=util[_0x2a1c98('0x15a')]('%s/recordings/%s',FILES_PATH,rs[_0x2a1c98('0x134')](0x4)),_0x260b47=util[_0x2a1c98('0x15a')](_0x2a1c98('0x39'),_0x29ba30,_0x197018);let _0x5661a2=!![];_0x208083['beep']===_0x2a1c98('0x140')&&(_0x5661a2=![]);const _0x44e500=this[_0x2a1c98('0x100')][_0x2a1c98('0x102')](_0x29ba30,_0x197018,_0x208083[_0x2a1c98('0x9b')],_0x208083['timeout'],undefined,_0x5661a2);if(_0x44e500[_0x2a1c98('0x18b')]!==-0x1){this[_0x2a1c98('0x100')][_0x2a1c98('0x6c')](util[_0x2a1c98('0x15a')](_0x2a1c98('0xe5'),_0x260b47));const _0xf9c110=this[_0x2a1c98('0x8')]['sync'](this,_0x208083,_0x260b47);if(_0xf9c110){for(const _0x250135 in _0xf9c110){typeof _0xf9c110[_0x250135]!==_0x2a1c98('0x179')&&this[_0x2a1c98('0x100')][_0x2a1c98('0x19a')](util[_0x2a1c98('0x15a')](_0x2a1c98('0xb8'),_0x250135['toUpperCase']()),_0xf9c110[_0x250135]);}return this[_0x2a1c98('0x100')][_0x2a1c98('0x6c')](util['format'](_0x2a1c98('0x62'),JSON[_0x2a1c98('0xef')](_0xf9c110)));}}return _0x44e500;},AGIVertices['prototype'][_0x4d5684('0x12e')]=function(_0x4b7747){const _0x97c0e0=_0x4d5684;return logger[_0x97c0e0('0x8a')](util[_0x97c0e0('0x15a')]('Enter\x20in\x20GOTO\x20(%s)\x20block',_0x4b7747[_0x97c0e0('0x146')])),this[_0x97c0e0('0x100')]['continueAt'](_0x4b7747[_0x97c0e0('0x172')],_0x4b7747[_0x97c0e0('0x5a')],_0x4b7747[_0x97c0e0('0x34')]);},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x4f')]=function(_0x381f7f){const _0xe8c805=_0x4d5684;logger[_0xe8c805('0x8a')](util[_0xe8c805('0x15a')](_0xe8c805('0x143'),_0x381f7f['label']));if(!this[_0xe8c805('0x70')](_0x381f7f[_0xe8c805('0x108')]))return this[_0xe8c805('0x100')][_0xe8c805('0x126')](_0x381f7f,_0xe8c805('0xa2'));try{const _0x5bce1c=eval(_0x381f7f[_0xe8c805('0x108')])?'true':_0xe8c805('0x162');return this[_0xe8c805('0x100')][_0xe8c805('0x6c')](util['format'](_0xe8c805('0x117'),_0x381f7f[_0xe8c805('0x108')],_0x5bce1c)),{'code':0xc8,'result':_0x5bce1c};}catch(_0x15940c){return{'code':0xc8,'result':_0xe8c805('0x162')};}},AGIVertices['prototype'][_0x4d5684('0xde')]=function(_0x5ff60f){const _0x3fe3be=_0x4d5684;logger[_0x3fe3be('0x8a')](util[_0x3fe3be('0x15a')](_0x3fe3be('0x1ad'),_0x5ff60f[_0x3fe3be('0x146')]));if(!this[_0x3fe3be('0x70')](_0x5ff60f[_0x3fe3be('0x19e')]))return this['channel'][_0x3fe3be('0x126')](_0x5ff60f,_0x3fe3be('0x4d'));const _0x4c00e7=this[_0x3fe3be('0x3c')][_0x3fe3be('0x2c')](this,_0x5ff60f[_0x3fe3be('0x19e')]);if(!_0x4c00e7)return this[_0x3fe3be('0x100')][_0x3fe3be('0x126')](_0x5ff60f,_0x3fe3be('0x18c'));for(let _0x464ec3=0x0;_0x464ec3<_0x4c00e7[_0x3fe3be('0xf1')];_0x464ec3+=0x1){const _0x4d54e4=this[_0x3fe3be('0x100')][_0x3fe3be('0xaa')](util[_0x3fe3be('0x15a')](_0x3fe3be('0x46'),_0x4c00e7[_0x464ec3]));if(_0x4d54e4[_0x3fe3be('0x18b')]===-0x1)return _0x4d54e4;logger[_0x3fe3be('0x8a')](util[_0x3fe3be('0x15a')](_0x3fe3be('0xe1'),_0x4c00e7[_0x464ec3],_0x4d54e4['extra']));if(_0x4d54e4[_0x3fe3be('0x161')]===_0x3fe3be('0x155'))return logger[_0x3fe3be('0x8a')](util[_0x3fe3be('0x15a')]('IFTIME\x20%s\x20%s',_0x4c00e7[_0x464ec3],_0x3fe3be('0x155'))),this[_0x3fe3be('0x100')][_0x3fe3be('0x6c')](util[_0x3fe3be('0x15a')](_0x3fe3be('0xe1'),_0x4c00e7[_0x464ec3],_0x3fe3be('0x155'))),{'code':0xc8,'result':_0x3fe3be('0x155')};else logger[_0x3fe3be('0x8a')](util[_0x3fe3be('0x15a')](_0x3fe3be('0xe1'),_0x4c00e7[_0x464ec3],_0x3fe3be('0x162'))),this[_0x3fe3be('0x100')][_0x3fe3be('0x6c')](util['format'](_0x3fe3be('0xe1'),_0x4c00e7[_0x464ec3],'false'));}return{'code':0xc8,'result':_0x3fe3be('0x162')};},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x26')]=function(_0x4af4ee){const _0x27fe3c=_0x4d5684;return logger[_0x27fe3c('0x8a')](util[_0x27fe3c('0x15a')]('Enter\x20in\x20HANGUP\x20(%s)\x20block',_0x4af4ee['label'])),this[_0x27fe3c('0x100')][_0x27fe3c('0x26')]();},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x50')]=function(_0xf353f3){const _0x15d52a=_0x4d5684;logger[_0x15d52a('0x8a')](util[_0x15d52a('0x15a')](_0x15d52a('0x187'),_0xf353f3[_0x15d52a('0x146')]));if(!this[_0x15d52a('0x70')](_0xf353f3['key']))return this[_0x15d52a('0x100')][_0x15d52a('0x6c')]('no\x20key\x20configured');const _0x368ca3=_0x15d52a('0x88'),_0x5a1332=util[_0x15d52a('0x15a')](_0x15d52a('0x1b7'),FILES_PATH,rs[_0x15d52a('0x134')](0x4)),_0xb4df8f=util[_0x15d52a('0x15a')](_0x15d52a('0x39'),_0x5a1332,_0x368ca3);let _0x12b810=!![];_0xf353f3['beep']===_0x15d52a('0x140')&&(_0x12b810=![]);const _0x3a1e47=this[_0x15d52a('0x100')]['recordFile'](_0x5a1332,_0x368ca3,_0xf353f3[_0x15d52a('0x9b')],_0xf353f3['timeout'],undefined,_0x12b810);if(_0x3a1e47[_0x15d52a('0x18b')]!==-0x1){this[_0x15d52a('0x100')][_0x15d52a('0x6c')](util[_0x15d52a('0x15a')](_0x15d52a('0x73'),_0xb4df8f));const _0xb0724a=this[_0x15d52a('0x3f')]['sync'](this,_0xf353f3,_0xb4df8f);if(_0xb0724a){for(const _0x4cb6b7 in _0xb0724a){typeof _0xb0724a[_0x4cb6b7]!==_0x15d52a('0x179')&&this['channel'][_0x15d52a('0x19a')](util['format'](_0x15d52a('0xf0'),_0x4cb6b7[_0x15d52a('0xa7')]()),_0xb0724a[_0x4cb6b7]);}return this['channel']['noop'](util[_0x15d52a('0x15a')](_0x15d52a('0x17d'),JSON['stringify'](_0xb0724a)));}}return _0x3a1e47;},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x16d')]=function(_0x252394){const _0x470d7d=_0x4d5684;logger['info'](util[_0x470d7d('0x15a')]('Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block',_0x252394[_0x470d7d('0x146')]));if(!this[_0x470d7d('0x70')](_0x252394[_0x470d7d('0x129')]))return this[_0x470d7d('0x100')][_0x470d7d('0x6c')](_0x470d7d('0x14b'));if(!this['isConfigured'](_0x252394['text']))return this[_0x470d7d('0x100')]['noop'](_0x470d7d('0x67'));this[_0x470d7d('0x100')]['noop'](util[_0x470d7d('0x15a')](_0x470d7d('0x86'),_0x252394[_0x470d7d('0x133')]));const _0x5313ff=this[_0x470d7d('0x10c')][_0x470d7d('0x2c')](this,_0x252394);if(_0x5313ff){this['channel'][_0x470d7d('0x6c')](util[_0x470d7d('0x15a')]('ispeech\x20%s\x20file\x20created',_0x5313ff));const _0x5d10c=this[_0x470d7d('0x100')][_0x470d7d('0x11b')](_0x5313ff,_0x252394['intKey']);try{fs['unlink'](_0x5313ff+_0x470d7d('0x12d'));}catch(_0x380fd4){logger[_0x470d7d('0x126')](_0x380fd4);}return _0x5d10c;}return this[_0x470d7d('0x100')][_0x470d7d('0x126')](_0x252394,_0x470d7d('0x7b'));},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x10f')]=function(_0x28b252){const _0x3a3d29=_0x4d5684;logger[_0x3a3d29('0x8a')](util['format']('Enter\x20in\x20LOGIN\x20(%s)\x20block',_0x28b252[_0x3a3d29('0x146')]));if(!this['isConfigured'](_0x28b252[_0x3a3d29('0x48')]))return this['channel']['error'](_0x28b252,'no\x20find\x20by\x20configured');logger[_0x3a3d29('0x8a')](util[_0x3a3d29('0x15a')](_0x3a3d29('0x7d'),this['channel'][_0x3a3d29('0x177')],_0x28b252[_0x3a3d29('0x48')]));const _0x267e3f=this['agentLogin'][_0x3a3d29('0x2c')](this,_0x28b252[_0x3a3d29('0x48')]);return _0x267e3f?(logger[_0x3a3d29('0x8a')](util[_0x3a3d29('0x15a')](_0x3a3d29('0xe4'),this[_0x3a3d29('0x100')][_0x3a3d29('0x177')],_0x28b252[_0x3a3d29('0x48')])),this[_0x3a3d29('0x100')][_0x3a3d29('0x6c')](util[_0x3a3d29('0x15a')](_0x3a3d29('0xe4'),this[_0x3a3d29('0x100')][_0x3a3d29('0x177')],_0x28b252[_0x3a3d29('0x48')])),{'code':0xc8,'result':_0x3a3d29('0x1af')}):(logger[_0x3a3d29('0x8a')](util['format'](_0x3a3d29('0x1a7'),this[_0x3a3d29('0x100')][_0x3a3d29('0x177')],_0x28b252[_0x3a3d29('0x48')])),this[_0x3a3d29('0x100')][_0x3a3d29('0x6c')](util[_0x3a3d29('0x15a')](_0x3a3d29('0x1a7'),this[_0x3a3d29('0x100')][_0x3a3d29('0x177')],_0x28b252[_0x3a3d29('0x48')])),{'code':0xc8,'result':'failure'});},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x11c')]=function(_0x15cc67){const _0x46df36=_0x4d5684;logger['info'](util[_0x46df36('0x15a')](_0x46df36('0x7f'),_0x15cc67[_0x46df36('0x146')]));if(!this[_0x46df36('0x70')](_0x15cc67[_0x46df36('0x48')]))return this['channel']['error'](_0x15cc67,_0x46df36('0x75'));logger[_0x46df36('0x8a')](util['format'](_0x46df36('0x7d'),this['channel'][_0x46df36('0x177')],_0x15cc67[_0x46df36('0x48')]));const _0x1cbc4c=this[_0x46df36('0x12a')][_0x46df36('0x2c')](this,_0x15cc67[_0x46df36('0x48')]);return _0x1cbc4c?(logger[_0x46df36('0x8a')](util['format'](_0x46df36('0xe4'),this[_0x46df36('0x100')]['callerid'],_0x15cc67[_0x46df36('0x48')])),this[_0x46df36('0x100')]['noop'](util[_0x46df36('0x15a')](_0x46df36('0xe4'),this[_0x46df36('0x100')][_0x46df36('0x177')],_0x15cc67[_0x46df36('0x48')])),{'code':0xc8,'result':'success'}):(logger[_0x46df36('0x8a')](util[_0x46df36('0x15a')](_0x46df36('0x1a7'),this[_0x46df36('0x100')][_0x46df36('0x177')],_0x15cc67[_0x46df36('0x48')])),this[_0x46df36('0x100')]['noop'](util[_0x46df36('0x15a')](_0x46df36('0x1a7'),this['channel'][_0x46df36('0x177')],_0x15cc67['findBy'])),{'code':0xc8,'result':'failure'});},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x72')]=function(_0x27b8df){const _0x33118f=_0x4d5684;logger[_0x33118f('0x8a')](util[_0x33118f('0x15a')](_0x33118f('0xdd'),_0x27b8df[_0x33118f('0x146')]));if(!this[_0x33118f('0x70')](_0x27b8df[_0x33118f('0xed')]))return this[_0x33118f('0x100')][_0x33118f('0x126')](_0x27b8df,_0x33118f('0x188'));this[_0x33118f('0x100')][_0x33118f('0x6c')](util[_0x33118f('0x15a')](_0x33118f('0x176'),_0x27b8df['operation']));const _0x596d2a=eval(_0x27b8df[_0x33118f('0xed')]);if(!this[_0x33118f('0x70')](_0x27b8df['variable_id']))return this[_0x33118f('0x100')]['noop'](_0x33118f('0x147'));const _0x4cc444=this[_0x33118f('0xaa')]['sync'](this,_0x27b8df['variable_id']);if(!_0x4cc444)return this[_0x33118f('0x100')][_0x33118f('0x126')](_0x27b8df,'no\x20variable\x20found');if(_[_0x33118f('0x192')](_0x596d2a)){const _0x42c8dc=this;return _0x596d2a[_0x33118f('0x19f')](function(_0x4dd32c,_0x15a19e){const _0x1f8c4f=_0x33118f;_0x42c8dc[_0x1f8c4f('0x100')]['setVariable'](util[_0x1f8c4f('0x15a')](_0x1f8c4f('0x137'),_0x4cc444,_0x15a19e),_0x4dd32c);}),this[_0x33118f('0x100')]['noop'](util[_0x33118f('0x15a')](_0x33118f('0x23'),_0x4cc444));}else return this[_0x33118f('0x100')][_0x33118f('0x19a')](_0x4cc444,_0x596d2a);},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x17b')]=function(_0x1724e6){const _0x6f1682=_0x4d5684;logger[_0x6f1682('0x8a')](util['format'](_0x6f1682('0x64'),_0x1724e6[_0x6f1682('0x146')]));if(_0x1724e6[_0x6f1682('0xdf')]===0x0)return this[_0x6f1682('0x1bb')](_0x1724e6);_0x1724e6['retry']-=0x1;if(!this[_0x6f1682('0x70')](_0x1724e6[_0x6f1682('0x116')]))return this[_0x6f1682('0x100')][_0x6f1682('0x126')](_0x1724e6,'no\x20file\x20audio\x20selected');const _0x474222=this[_0x6f1682('0xa3')][_0x6f1682('0x2c')](this,_0x1724e6['file_id']);if(!_0x474222)return this[_0x6f1682('0x100')][_0x6f1682('0x126')](_0x1724e6,_0x6f1682('0x127'));const _0x2cfb4a=this[_0x6f1682('0x100')][_0x6f1682('0x130')](_0x474222,_0x1724e6[_0x6f1682('0xce')],_0x1724e6['digit']);let _0x234171=_0x2cfb4a[_0x6f1682('0x18b')];if(_0x2cfb4a[_0x6f1682('0x18b')]===-0x1)return this['createSquareDetailsReport'][_0x6f1682('0x2c')](this,_0x1724e6,'-1'),_0x2cfb4a;else{if(_0x2cfb4a['extra']===_0x6f1682('0x1aa'))_0x2cfb4a['result']=_0x2cfb4a[_0x6f1682('0x18b')][_0x6f1682('0xf1')]>0x0?_0x2cfb4a[_0x6f1682('0x18b')]:'t';else _[_0x6f1682('0x10')](_0x2cfb4a[_0x6f1682('0x18b')])&&(_0x2cfb4a[_0x6f1682('0x18b')]='#',_0x234171='#');}if(!this[_0x6f1682('0x70')](_0x1724e6[_0x6f1682('0x89')]))this[_0x6f1682('0x100')][_0x6f1682('0x6c')](_0x6f1682('0x147'));else{const _0x41530d=this[_0x6f1682('0xaa')][_0x6f1682('0x2c')](this,_0x1724e6[_0x6f1682('0x89')]);if(!_0x41530d)return this['channel'][_0x6f1682('0x126')](_0x1724e6,_0x6f1682('0x1b0'));this[_0x6f1682('0x100')][_0x6f1682('0x19a')](_0x41530d,_0x234171);}return this[_0x6f1682('0xd1')][_0x6f1682('0x2c')](this,_0x1724e6,_0x234171),_0x2cfb4a;},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x6c')]=function(_0x11db35){const _0x379d64=_0x4d5684;return logger['info'](util[_0x379d64('0x15a')](_0x379d64('0x54'),_0x11db35[_0x379d64('0x146')])),this['channel'][_0x379d64('0x6c')](_0x11db35['output']||_0x11db35[_0x379d64('0x146')]);},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0xc9')]=function(_0x2d45ff){const _0x56651d=_0x4d5684;logger[_0x56651d('0x8a')](util[_0x56651d('0x15a')](_0x56651d('0x8c'),_0x2d45ff[_0x56651d('0x146')]));if(!this[_0x56651d('0x70')](_0x2d45ff[_0x56651d('0x48')]))return this['channel'][_0x56651d('0x126')](_0x2d45ff,'no\x20find\x20by\x20configured');logger[_0x56651d('0x8a')](util[_0x56651d('0x15a')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0x56651d('0x100')][_0x56651d('0x177')],_0x2d45ff[_0x56651d('0x48')]));const _0x33224b=this[_0x56651d('0xea')][_0x56651d('0x2c')](this,_0x2d45ff[_0x56651d('0x14')]),_0x826387=this[_0x56651d('0xf')][_0x56651d('0x2c')](this,_0x2d45ff[_0x56651d('0x48')],_0x33224b);return _0x826387?(logger[_0x56651d('0x8a')](util[_0x56651d('0x15a')](_0x56651d('0xe4'),this[_0x56651d('0x100')][_0x56651d('0x177')],_0x2d45ff[_0x56651d('0x48')])),this[_0x56651d('0x100')][_0x56651d('0x6c')](util[_0x56651d('0x15a')](_0x56651d('0xe4'),this['channel'][_0x56651d('0x177')],_0x2d45ff[_0x56651d('0x48')])),{'code':0xc8,'result':'success'}):(logger[_0x56651d('0x8a')](util[_0x56651d('0x15a')](_0x56651d('0x1a7'),this[_0x56651d('0x100')][_0x56651d('0x177')],_0x2d45ff[_0x56651d('0x48')])),this[_0x56651d('0x100')]['noop'](util[_0x56651d('0x15a')](_0x56651d('0xe4'),this['channel']['callerid'],_0x2d45ff[_0x56651d('0x48')])),{'code':0xc8,'result':_0x56651d('0x136')});},AGIVertices['prototype']['playback']=function(_0x226650){const _0x545e07=_0x4d5684;logger[_0x545e07('0x8a')](util[_0x545e07('0x15a')](_0x545e07('0x152'),_0x226650[_0x545e07('0x146')]));if(!this[_0x545e07('0x70')](_0x226650['file_id']))return this[_0x545e07('0x100')][_0x545e07('0x126')](_0x226650,'no\x20file\x20audio\x20selected');const _0x452761=this[_0x545e07('0xa3')][_0x545e07('0x2c')](this,_0x226650[_0x545e07('0x116')]);if(!_0x452761)return this[_0x545e07('0x100')][_0x545e07('0x126')](_0x226650,'no\x20file\x20audio\x20found');const _0x4b57ca=this[_0x545e07('0x100')]['exec'](_0x545e07('0x189'),[_0x452761,_0x226650[_0x545e07('0xa0')]]);if(_0x4b57ca[_0x545e07('0x18b')]===-0x1)return _0x4b57ca;return this[_0x545e07('0x100')][_0x545e07('0x6c')](util['format'](_0x545e07('0xe2'),_0x545e07('0x189'),_0x452761));},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x195')]=function(_0x58bb90){const _0x36ffeb=_0x4d5684;logger[_0x36ffeb('0x8a')](util[_0x36ffeb('0x15a')](_0x36ffeb('0xc4'),_0x58bb90[_0x36ffeb('0x146')]));if(!this[_0x36ffeb('0x70')](_0x58bb90[_0x36ffeb('0x8e')]))return this[_0x36ffeb('0x100')][_0x36ffeb('0x126')](_0x58bb90,_0x36ffeb('0x174'));let _0xf2809c='';const _0x4b6345=parseInt(_0x58bb90['queue_id'],0xa);if(isNaN(_0x4b6345))_0xf2809c=_0x58bb90[_0x36ffeb('0x8e')];else{_0xf2809c=this['getVoiceQueue'][_0x36ffeb('0x2c')](this,_0x58bb90[_0x36ffeb('0x8e')]);if(!_0xf2809c)return this[_0x36ffeb('0x100')][_0x36ffeb('0x126')](_0x58bb90,_0x36ffeb('0x10d'));}let _0x46c609='';if(this[_0x36ffeb('0x70')](_0x58bb90['file_id'])){const _0x1be7e3=this['getSound'][_0x36ffeb('0x2c')](this,_0x58bb90['file_id']);_0x1be7e3&&(_0x46c609=_0x1be7e3);}this[_0x36ffeb('0xd1')]['sync'](this,_0x58bb90,_0xf2809c);_0x58bb90[_0x36ffeb('0xa0')]['indexOf']('x')<0x0&&(_0x58bb90[_0x36ffeb('0xa0')]+='x');_0x58bb90[_0x36ffeb('0xa0')][_0x36ffeb('0xb0')]('X')<0x0&&(_0x58bb90[_0x36ffeb('0xa0')]+='X');this['channel'][_0x36ffeb('0x19a')]('XMCS-QUEUE',_0xf2809c?_0xf2809c[_0x36ffeb('0x78')]():'');const _0x3f34fe=this[_0x36ffeb('0x100')]['exec']('QUEUE',[_0xf2809c,_0x58bb90[_0x36ffeb('0xa0')],_0x58bb90[_0x36ffeb('0x1bd')],_0x46c609,_0x58bb90[_0x36ffeb('0x1aa')],_0x58bb90['agi'],_0x58bb90[_0x36ffeb('0x96')],_0x58bb90['gosub'],'',_0x58bb90['position']]);if(_0x3f34fe[_0x36ffeb('0x18b')]===-0x1)return _0x3f34fe;return this[_0x36ffeb('0x100')]['noop'](util[_0x36ffeb('0x15a')](_0x36ffeb('0xe2'),_0x36ffeb('0x77'),_0xf2809c));},AGIVertices['prototype']['record']=function(_0x43b3c2){const _0x34e600=_0x4d5684;logger[_0x34e600('0x8a')](util[_0x34e600('0x15a')](_0x34e600('0xcd'),_0x43b3c2[_0x34e600('0x146')]));const _0x4d902b=_0x43b3c2[_0x34e600('0x158')]||'wav',_0xc3bea5=util['format'](_0x34e600('0xd7'),this[_0x34e600('0x100')]['uniqueid'],rs[_0x34e600('0x134')](0x5)),_0x3920bc=util[_0x34e600('0x15a')](_0x34e600('0xae'),FILES_PATH,_0xc3bea5,_0x4d902b),_0x200f89=util[_0x34e600('0x15a')](_0x34e600('0x1b7'),FILES_PATH,_0xc3bea5);return this[_0x34e600('0x11a')]['sync'](this,_0x43b3c2,_0xc3bea5,_0x3920bc),this[_0x34e600('0x100')][_0x34e600('0x19a')](_0x34e600('0xd2'),_0xc3bea5),logger['info'](_0x34e600('0x166'),_0x200f89,_0x4d902b,_0x43b3c2[_0x34e600('0xc')],_0x43b3c2[_0x34e600('0x1aa')]),this[_0x34e600('0x100')][_0x34e600('0x102')](_0x200f89,_0x4d902b,_0x43b3c2[_0x34e600('0xc')],_0x43b3c2[_0x34e600('0x1aa')],undefined,!![]);},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x27')]=function(_0x3b33e4){const _0x56d68b=_0x4d5684;logger[_0x56d68b('0x8a')](util['format']('Enter\x20in\x20RESTAPI\x20(%s)\x20block',_0x3b33e4[_0x56d68b('0x146')]));if(!this[_0x56d68b('0x70')](_0x3b33e4[_0x56d68b('0x1bd')]))return this['channel'][_0x56d68b('0x6c')]('no\x20url\x20configured');const _0x5c7f30=this[_0x56d68b('0xc3')][_0x56d68b('0x2c')](this,_0x3b33e4);logger['info'](util[_0x56d68b('0x15a')](_0x56d68b('0xa9'),util['inspect'](_0x5c7f30,{'showHidden':![],'depth':null})));if(!this[_0x56d68b('0x70')](_0x3b33e4[_0x56d68b('0x89')]))return this[_0x56d68b('0x100')]['noop'](_0x56d68b('0x82'));const _0x3ec17b=this[_0x56d68b('0xaa')]['sync'](this,_0x3b33e4[_0x56d68b('0x89')]);if(!_0x3ec17b)return this['channel']['error'](_0x3b33e4,_0x56d68b('0x1b0'));this[_0x56d68b('0x100')][_0x56d68b('0x19a')](util[_0x56d68b('0x15a')]('%s_STATUS_CODE',_0x3ec17b),_0x5c7f30[_0x56d68b('0x173')]?_0x5c7f30[_0x56d68b('0x173')]:_0x56d68b('0x181')),this[_0x56d68b('0x100')]['setVariable'](util['format'](_0x56d68b('0x99'),_0x3ec17b),_0x5c7f30['statusMessage']?_0x5c7f30['statusMessage']:'OK');if(_0x5c7f30[_0x56d68b('0x2b')])try{this[_0x56d68b('0x132')](_0x5c7f30[_0x56d68b('0x2b')],_0x3ec17b);}catch(_0x2d3ef9){logger['error'](util[_0x56d68b('0x15a')](_0x56d68b('0x170'),_0x3ec17b));}return this[_0x56d68b('0x100')][_0x56d68b('0x6c')](util[_0x56d68b('0x15a')](_0x56d68b('0x1ac'),_0x3ec17b));},AGIVertices[_0x4d5684('0x65')]['saydigits']=function(_0x483e31){const _0x53516b=_0x4d5684;return logger['info'](util[_0x53516b('0x15a')](_0x53516b('0x16'),_0x483e31[_0x53516b('0x146')])),this[_0x53516b('0x100')]['sayDigits'](_0x483e31['digits'][_0x53516b('0x14e')](/\s+/g,''),_0x483e31[_0x53516b('0xc')]);},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x49')]=function(_0x207008){const _0x2a7b5e=_0x4d5684;return logger['info'](util['format'](_0x2a7b5e('0x15d'),_0x207008['label'])),this[_0x2a7b5e('0x100')]['sayNumber'](_0x207008[_0x2a7b5e('0x180')][_0x2a7b5e('0x14e')](/\s+/g,''),_0x207008[_0x2a7b5e('0xc')]);},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x6')]=function(_0x2a8352){const _0x31dc51=_0x4d5684;return logger['info'](util[_0x31dc51('0x15a')](_0x31dc51('0x193'),_0x2a8352[_0x31dc51('0x146')])),this[_0x31dc51('0x100')][_0x31dc51('0x4b')](_0x2a8352[_0x31dc51('0x133')],_0x2a8352[_0x31dc51('0xc')]);},AGIVertices['prototype'][_0x4d5684('0x13f')]=function(_0x99479c){const _0x224e19=_0x4d5684;logger[_0x224e19('0x8a')](util[_0x224e19('0x15a')](_0x224e19('0xd9'),_0x99479c['label']));if(!this[_0x224e19('0x70')](_0x99479c[_0x224e19('0x0')]))return this[_0x224e19('0x100')]['noop'](_0x224e19('0x20'));const _0x58df44=this['getMailAccount'][_0x224e19('0x2c')](this,_0x99479c[_0x224e19('0x0')]);if(!_0x58df44||!_0x58df44[_0x224e19('0x183')])return this[_0x224e19('0x100')]['error'](_0x99479c,'no\x20mail\x20account\x20found');const _0x4848cc={'from':util[_0x224e19('0x15a')](_0x224e19('0x32'),_0x58df44[_0x224e19('0xfe')],_0x58df44[_0x224e19('0x87')]||_0x58df44['Smtp']['user']),'to':_0x99479c['to']||'','cc':_0x99479c['cc']||'','bcc':_0x99479c[_0x224e19('0x9c')]||'','subject':_0x99479c[_0x224e19('0xe')],'html':_0x99479c[_0x224e19('0x133')],'text':_0x99479c[_0x224e19('0x133')]},_0x4f06e8={'tls':{'rejectUnauthorized':![]}};_0x58df44[_0x224e19('0x183')]['service']?_0x4f06e8[_0x224e19('0x18a')]=_0x58df44[_0x224e19('0x183')][_0x224e19('0x18a')]:(_0x4f06e8['host']=_0x58df44[_0x224e19('0x183')][_0x224e19('0x169')],_0x4f06e8[_0x224e19('0x175')]=_0x58df44[_0x224e19('0x183')][_0x224e19('0x175')],_0x4f06e8['secure']=_0x58df44[_0x224e19('0x183')][_0x224e19('0x81')]);_0x58df44[_0x224e19('0x183')]['authentication']&&(_0x4f06e8[_0x224e19('0x1a0')]={'user':_0x58df44[_0x224e19('0x183')][_0x224e19('0x112')],'pass':_0x58df44[_0x224e19('0x183')][_0x224e19('0xeb')]});if(this['isConfigured'](_0x99479c[_0x224e19('0xc0')])){}return logger[_0x224e19('0x131')](_0x224e19('0x47'),JSON[_0x224e19('0xef')](_0x4848cc)),this[_0x224e19('0xd1')]['sync'](this,_0x99479c,_0x99479c[_0x224e19('0x0')]),this[_0x224e19('0x100')]['noop'](util['format']('Trying\x20SendMail\x20with\x20account\x20%s',_0x58df44[_0x224e19('0xfe')])),this[_0x224e19('0xd5')][_0x224e19('0x2c')](this,_0x4f06e8,_0x4848cc),this[_0x224e19('0x100')][_0x224e19('0x6c')](_0x224e19('0x3'));},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0xcb')]=function(_0x25705d){const _0xab8dbf=_0x4d5684;return logger['info'](util[_0xab8dbf('0x15a')]('Enter\x20in\x20SENDFAX\x20(%s)\x20block',_0x25705d[_0xab8dbf('0x146')])),this['channel']['noop'](_0xab8dbf('0xe8'));},AGIVertices['prototype'][_0x4d5684('0x2e')]=function(_0xe1b08e){const _0x49fd93=_0x4d5684;logger[_0x49fd93('0x8a')](util[_0x49fd93('0x15a')](_0x49fd93('0xe7'),_0xe1b08e[_0x49fd93('0x146')]));if(!this[_0x49fd93('0x70')](_0xe1b08e[_0x49fd93('0xd3')]))return this[_0x49fd93('0x100')][_0x49fd93('0x6c')](_0x49fd93('0xe6'));const _0x2a972e=this[_0x49fd93('0xe9')]['sync'](this,_0xe1b08e[_0x49fd93('0xd3')]);if(!_0x2a972e)return this[_0x49fd93('0x100')]['error'](_0xe1b08e,'no\x20sms\x20account\x20found');const _0x197766={'body':_0xe1b08e[_0x49fd93('0x74')],'phone':_0xe1b08e['to']||'','SmsAccountId':_0x2a972e['id']};return logger['debug'](_0x49fd93('0x94'),JSON[_0x49fd93('0xef')](_0x197766)),this[_0x49fd93('0xd1')][_0x49fd93('0x2c')](this,_0xe1b08e,_0xe1b08e[_0x49fd93('0xd3')]),this[_0x49fd93('0x100')][_0x49fd93('0x6c')](util[_0x49fd93('0x15a')](_0x49fd93('0xbf'),_0x2a972e[_0x49fd93('0xfe')])),this['createSmsMessage'][_0x49fd93('0x2c')](this,_0x197766),this[_0x49fd93('0x100')][_0x49fd93('0x6c')](_0x49fd93('0x9'));},AGIVertices[_0x4d5684('0x65')]['set']=function(_0x2660f7){const _0x52ec7c=_0x4d5684;logger[_0x52ec7c('0x8a')](util[_0x52ec7c('0x15a')](_0x52ec7c('0x66'),_0x2660f7['label']));if(!this[_0x52ec7c('0x70')](_0x2660f7[_0x52ec7c('0x89')]))return this[_0x52ec7c('0x100')][_0x52ec7c('0x126')](_0x2660f7,'no\x20variable\x20selected');const _0x5b61ef=this['getVariable']['sync'](this,_0x2660f7[_0x52ec7c('0x89')]);if(!_0x5b61ef)return this['channel'][_0x52ec7c('0x126')](_0x2660f7,_0x52ec7c('0x1b0'));return this[_0x52ec7c('0x100')][_0x52ec7c('0x19a')](_0x5b61ef,_0x2660f7[_0x52ec7c('0x91')]);},AGIVertices['prototype'][_0x4d5684('0x150')]=function(_0x20e0d3){const _0x1b34e2=_0x4d5684;logger[_0x1b34e2('0x8a')](util['format'](_0x1b34e2('0x45'),_0x20e0d3['label'])),this['channel'][_0x1b34e2('0x6c')]('START\x20CALLY\x20SQUARE');if(_0x20e0d3[_0x1b34e2('0x138')]===_0x1b34e2('0xd4'))return this['channel'][_0x1b34e2('0x6c')](_0x1b34e2('0x111')),this[_0x1b34e2('0x100')][_0x1b34e2('0x138')]();return this[_0x1b34e2('0x100')][_0x1b34e2('0x6c')](_0x1b34e2('0x182'));},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x2d')]=function(_0x3e8129){const _0x59f869=_0x4d5684;logger[_0x59f869('0x8a')](util[_0x59f869('0x15a')]('Enter\x20in\x20SUBPROJECT\x20(%s)\x20block',_0x3e8129[_0x59f869('0x146')]));if(!this['isConfigured'](_0x3e8129[_0x59f869('0x53')]))return this[_0x59f869('0x100')][_0x59f869('0x126')](_0x3e8129,_0x59f869('0x17f'));const _0x252b7b=this[_0x59f869('0xa4')][_0x59f869('0x2c')](this,_0x3e8129[_0x59f869('0x53')]);if(!this['isConfigured'](_0x252b7b))return this[_0x59f869('0x100')][_0x59f869('0x126')](_0x3e8129,util['format']('no\x20subproject\x20found\x20with\x20id\x20%d',_0x3e8129['project_id']));if(_0x252b7b===this[_0x59f869('0x100')][_0x59f869('0x11f')])return this[_0x59f869('0x100')][_0x59f869('0x126')](_0x3e8129,_0x59f869('0xc5'));this[_0x59f869('0xd1')]['sync'](this,_0x3e8129,_0x252b7b);const _0x4c2312=this[_0x59f869('0x100')][_0x59f869('0x1bc')](_0x59f869('0x154'),util['format'](_0x59f869('0x1a6'),config[_0x59f869('0x18f')][_0x59f869('0x169')]||_0x59f869('0x2a'),_0x252b7b,this[_0x59f869('0x100')][_0x59f869('0x11f')]));if(_0x4c2312['result']===-0x1)return _0x4c2312;return this[_0x59f869('0x100')]['noop'](util[_0x59f869('0x15a')](_0x59f869('0xe2'),_0x59f869('0x154'),_0x252b7b));},AGIVertices[_0x4d5684('0x65')]['system']=function(_0x28fcd6){const _0x275140=_0x4d5684;logger[_0x275140('0x8a')](util[_0x275140('0x15a')](_0x275140('0x79'),_0x28fcd6[_0x275140('0x146')]));const _0x202cf6=this[_0x275140('0xfd')][_0x275140('0x2c')](this,_0x28fcd6[_0x275140('0x8d')]);this['createSquareDetailsReport'][_0x275140('0x2c')](this,_0x28fcd6,_0x28fcd6[_0x275140('0x8d')]);if(this[_0x275140('0x70')](_0x28fcd6['variable_id'])){const _0x18eeb2=this[_0x275140('0xaa')][_0x275140('0x2c')](this,_0x28fcd6[_0x275140('0x89')]);if(_0x18eeb2)return this[_0x275140('0x100')][_0x275140('0x19a')](_0x18eeb2,_0x202cf6),this['channel']['noop'](util[_0x275140('0x15a')](_0x275140('0x107'),_0x28fcd6['command'],_0x18eeb2));}return this[_0x275140('0x100')][_0x275140('0x6c')](util['format'](_0x275140('0x84'),_0x28fcd6[_0x275140('0x8d')]));},AGIVertices['prototype'][_0x4d5684('0x124')]=function(_0x1f24e0){const _0x4f00fb=_0x4d5684;logger[_0x4f00fb('0x8a')](util[_0x4f00fb('0x15a')](_0x4f00fb('0xfa'),_0x1f24e0[_0x4f00fb('0x146')])),_0x1f24e0[_0x4f00fb('0x133')]=_0x1f24e0[_0x4f00fb('0x133')][_0x4f00fb('0x14e')](/(\r\n|\n|\r)/gm,'\x20');if(!this['isConfigured'](_0x1f24e0['apiKey']))return this[_0x4f00fb('0x100')][_0x4f00fb('0x6c')](_0x4f00fb('0x5'));if(!this[_0x4f00fb('0x70')](_0x1f24e0[_0x4f00fb('0x133')]))return this[_0x4f00fb('0x100')][_0x4f00fb('0x6c')](_0x4f00fb('0x67'));this[_0x4f00fb('0x100')][_0x4f00fb('0x6c')](util[_0x4f00fb('0x15a')](_0x4f00fb('0x119'),_0x1f24e0[_0x4f00fb('0x133')]));const _0x241b06=this[_0x4f00fb('0x1b4')][_0x4f00fb('0x2c')](this,_0x1f24e0);if(_0x241b06){this[_0x4f00fb('0x100')]['noop'](util[_0x4f00fb('0x15a')](_0x4f00fb('0x13e'),_0x241b06));const _0x37914a=this[_0x4f00fb('0x100')][_0x4f00fb('0x11b')](_0x241b06);try{fs[_0x4f00fb('0x159')](_0x241b06+_0x4f00fb('0x12d'));}catch(_0x4eb85c){logger[_0x4f00fb('0x126')](_0x4eb85c);}return _0x37914a;}return this[_0x4f00fb('0x100')][_0x4f00fb('0x126')](_0x1f24e0,_0x4f00fb('0x16e'));},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x6b')]=function(_0x5bd030){const _0x2c3e06=_0x4d5684;logger[_0x2c3e06('0x8a')](util['format']('Enter\x20in\x20GOOGLETTS\x20(%s)\x20block',_0x5bd030[_0x2c3e06('0x146')])),_0x5bd030[_0x2c3e06('0x133')]=_0x5bd030[_0x2c3e06('0x133')][_0x2c3e06('0x14e')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x2c3e06('0x70')](_0x5bd030[_0x2c3e06('0x133')]))return this['channel'][_0x2c3e06('0x6c')]('no\x20text\x20configured');this[_0x2c3e06('0x100')][_0x2c3e06('0x6c')](util[_0x2c3e06('0x15a')]('Trying\x20Google\x20TTS\x20%s',_0x5bd030['text']));const _0x2d8cf6=this[_0x2c3e06('0x10b')][_0x2c3e06('0x2c')](this,_0x5bd030);if(_0x2d8cf6){this[_0x2c3e06('0x100')]['noop'](util[_0x2c3e06('0x15a')](_0x2c3e06('0x1'),_0x2d8cf6));const _0x3eff0c=this[_0x2c3e06('0x100')][_0x2c3e06('0x11b')](_0x2d8cf6);try{fs[_0x2c3e06('0x159')](_0x2d8cf6+_0x2c3e06('0x12d'));}catch(_0x1d9c85){logger['error'](_0x1d9c85);}return _0x3eff0c;}return this[_0x2c3e06('0x100')]['error'](_0x5bd030,_0x2c3e06('0x19d'));},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0x98')]=function(_0x3d4395){const _0x4514f1=_0x4d5684;logger[_0x4514f1('0x8a')](util[_0x4514f1('0x15a')]('Enter\x20in\x20UNPAUSE\x20(%s)\x20block',_0x3d4395[_0x4514f1('0x146')]));if(!this['isConfigured'](_0x3d4395['findBy']))return this[_0x4514f1('0x100')]['error'](_0x3d4395,_0x4514f1('0x75'));logger[_0x4514f1('0x8a')](util[_0x4514f1('0x15a')](_0x4514f1('0x7d'),this[_0x4514f1('0x100')][_0x4514f1('0x177')],_0x3d4395[_0x4514f1('0x48')]));const _0x33abf1=this[_0x4514f1('0x11d')][_0x4514f1('0x2c')](this,_0x3d4395[_0x4514f1('0x48')]);return _0x33abf1?(logger['info'](util['format']('AGENT\x20%s\x20FOUND\x20BY',this['channel'][_0x4514f1('0x177')],_0x3d4395[_0x4514f1('0x48')])),this[_0x4514f1('0x100')][_0x4514f1('0x6c')](util['format'](_0x4514f1('0xe4'),this['channel'][_0x4514f1('0x177')],_0x3d4395[_0x4514f1('0x48')])),{'code':0xc8,'result':'success'}):(logger[_0x4514f1('0x8a')](util[_0x4514f1('0x15a')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x4514f1('0x100')][_0x4514f1('0x177')],_0x3d4395[_0x4514f1('0x48')])),this[_0x4514f1('0x100')][_0x4514f1('0x6c')](util[_0x4514f1('0x15a')](_0x4514f1('0x1a7'),this[_0x4514f1('0x100')]['callerid'],_0x3d4395[_0x4514f1('0x48')])),{'code':0xc8,'result':_0x4514f1('0x136')});},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0xc6')]=function(_0x5449ea){const _0x45cad6=_0x4d5684;logger[_0x45cad6('0x8a')](util[_0x45cad6('0x15a')](_0x45cad6('0x1b1'),_0x5449ea['label']));const _0x7a8c84=this[_0x45cad6('0x100')][_0x45cad6('0x1bc')](_0x45cad6('0x3d'),[_0x5449ea['mailbox'],_0x5449ea[_0x45cad6('0x16c')]]);if(_0x7a8c84[_0x45cad6('0x18b')]===-0x1)return _0x7a8c84;return this[_0x45cad6('0x100')][_0x45cad6('0x6c')](util[_0x45cad6('0x15a')](_0x45cad6('0xe2'),_0x45cad6('0x3d'),_0x5449ea[_0x45cad6('0x13')]));},AGIVertices[_0x4d5684('0x65')][_0x4d5684('0xab')]=function(_0x1d832c){const _0x51d109=_0x4d5684;logger[_0x51d109('0x8a')](util[_0x51d109('0x15a')]('Enter\x20in\x20SWITCH\x20(%s)\x20block',_0x1d832c['label']));if(!this[_0x51d109('0x70')](_0x1d832c[_0x51d109('0x89')]))return this[_0x51d109('0x100')]['error'](_0x1d832c,_0x51d109('0x3b'));const _0x2a314c=this['getVariable'][_0x51d109('0x2c')](this,_0x1d832c[_0x51d109('0x89')]);if(!_0x2a314c)return this[_0x51d109('0x100')]['error'](_0x1d832c,_0x51d109('0x1b0'));const _0x459f04=this['channel'][_0x51d109('0xaa')](_0x2a314c);return{'code':0xc8,'result':_0x459f04[_0x51d109('0x161')]?_0x459f04['extra']:'-'};},String[_0x4d5684('0x65')][_0x4d5684('0x19b')]=function(_0x5c0110,_0x166857){const _0x488558=_0x4d5684;return this[_0x488558('0x25')](_0x5c0110)[_0x488558('0xa5')](_0x166857);},module[_0x4d5684('0xb')]=AGIVertices; \ No newline at end of file +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 diff --git a/server/services/ami/acw/index.js b/server/services/ami/acw/index.js index 93c2ab8..9aa099f 100644 --- a/server/services/ami/acw/index.js +++ b/server/services/ami/acw/index.js @@ -1 +1 @@ -const a1048_0x35a9=['secondtransfereruniqueid','../rpc/voiceAgentReport','transfertargetuniqueid','[ACW][syncAgentConnect]\x20%s','[%s][BLINDTRANSFER:UNIQUEID]','agentconnect','syncAgentRingNoAnswer','prototype','then','syncAttendedTransfer','moment','mandatoryDispositionPause','[%s][HANGUP:LINKEDID]','syncHangupRequest','YYYY-MM-DD\x20HH:mm:ss','attendedtransfer','exports','[ACW][syncAgentConnectPreview]\x20%s','[ACW][syncHangup]\x20%s','savePause','[%s][UPDATE][ERRORS:%s]','channels','Action','seconds','error','diff','voicePause','[%s][UPDATE][ACWTIME:%s]','queue','stopAcw','autopause','info','lastPauseAt','update','syncAgentConnectPreview','hanguprequest','transfereeuniqueid','isUndefined','../../../config/logger','[TIMER][STOP][AGENT:%s]','voiceQueues','getAgent','mandatoryDisposition','acw','milliseconds','acwTimeout','[ACW][STOP]\x20%s','../rpc/user','[ACW][syncAttendedTransfer]\x20%s','name','timer','origtransfereruniqueid','[%s][HANGUPATTENDEDTRANSFER:UNIQUEID]','stringify','timers','attended','updateAcw','interface','[ACW][syncHangupRequest]\x20%s','[%s][BLINDTRANSFER:LINKEDID]','format','Auto-Pause','message','custom:agentConnectPreview','finally','uniqueid','transfererlinkedid','bind','catch','linkedid','startAcw','[%s][TIMER:%s][AGENT:%s][QUEUE:%s]','[%s][HANGUPATTENDEDTRANSFER:LINKEDID]','lodash','blindtransfer','../ami','[%s][INPAUSE][AGENT:%s][QUEUE:%s]','[%s][AUTOPAUSE][AGENT:%s][QUEUE:%]','syncAgentConnect','agents','syncHangup','syncBlindTransfer','QueuePause','saveUnpause'];(function(_0xf9ad27,_0x35a95f){const _0x535814=function(_0x270bbd){while(--_0x270bbd){_0xf9ad27['push'](_0xf9ad27['shift']());}};_0x535814(++_0x35a95f);}(a1048_0x35a9,0x84));const a1048_0x5358=function(_0xf9ad27,_0x35a95f){_0xf9ad27=_0xf9ad27-0x0;let _0x535814=a1048_0x35a9[_0xf9ad27];return _0x535814;};const _0x3ed21d=a1048_0x5358;'use strict';const _=require(_0x3ed21d('0x19')),moment=require(_0x3ed21d('0x2e')),ami=require(_0x3ed21d('0x1b')),logger=require(_0x3ed21d('0x4a'))(_0x3ed21d('0x4f')),RpcUser=require(_0x3ed21d('0x53')),RpcVoiceAgentReport=require(_0x3ed21d('0x25'));function Acw(_0x270bbd){const _0xc04108=_0x3ed21d;this['voiceQueues']=_0x270bbd[_0xc04108('0x4c')],this['agents']=_0x270bbd[_0xc04108('0x1f')],this[_0xc04108('0x6')]=_0x270bbd['timers'],this[_0xc04108('0x39')]={},ami['on'](_0xc04108('0x29'),this[_0xc04108('0x1e')]['bind'](this)),ami['on'](_0xc04108('0x47'),this[_0xc04108('0x31')][_0xc04108('0x13')](this)),ami['on']('hangup',this[_0xc04108('0x20')][_0xc04108('0x13')](this)),ami['on']('agentringnoanswer',this[_0xc04108('0x2a')][_0xc04108('0x13')](this)),ami['on'](_0xc04108('0x33'),this[_0xc04108('0x2d')][_0xc04108('0x13')](this)),ami['on'](_0xc04108('0x1a'),this[_0xc04108('0x21')][_0xc04108('0x13')](this)),ami['on'](_0xc04108('0xf'),this[_0xc04108('0x46')][_0xc04108('0x13')](this));}function getDiff(_0x113f4e){const _0x49b0ff=_0x3ed21d,_0x5e2e44=moment()[_0x49b0ff('0x50')](0x0),_0x5786d9=moment(_0x113f4e)[_0x49b0ff('0x50')](0x0);return _0x5e2e44[_0x49b0ff('0x3d')](_0x5786d9,_0x49b0ff('0x3b'));}Acw[_0x3ed21d('0x2b')][_0x3ed21d('0x16')]=function(_0x204de1){const _0x2e6338=_0x3ed21d;try{const _0xbc6368=this,_0x2057e3=this['channels'][_0x204de1]['interface'],_0x5571ac=this[_0x2e6338('0x39')][_0x204de1][_0x2e6338('0x40')],_0x522aa9=this[_0x2e6338('0x4c')][_0x5571ac];let _0x3a5d8a=![],_0x5502f0='ACW';_0x522aa9[_0x2e6338('0x4e')]&&(_0x522aa9[_0x2e6338('0x2f')]['name']&&(_0x3a5d8a=!![],_0x5502f0=_0x522aa9['mandatoryDispositionPause'][_0x2e6338('0x1')])),ami[_0x2e6338('0x3a')]({'action':_0x2e6338('0x22'),'interface':_0x2057e3,'paused':!![],'reason':_0x5502f0})[_0x2e6338('0x2c')](function(){const _0x547360=_0x2e6338;if(_0xbc6368[_0x547360('0x1f')][_0x2057e3])return RpcUser[_0x547360('0x4d')](_0xbc6368[_0x547360('0x1f')][_0x2057e3]['id'])[_0x547360('0x2c')](function(_0x5f3bcc){const _0x2c8ce4=_0x547360;if(_0x5f3bcc&&!_0x5f3bcc[_0x2c8ce4('0x3e')]){logger[_0x2c8ce4('0x43')]('[%s][START][AGENT:%s][QUEUE:%s]',_0x204de1,_0x2057e3,_0x5571ac);const _0x34da54=_0xbc6368['channels'][_0x204de1][_0x2c8ce4('0x7')]&&_0xbc6368['channels'][_0x204de1]['destlinkedid']?_0xbc6368[_0x2c8ce4('0x39')][_0x204de1]['destlinkedid']:_0x204de1;return RpcUser[_0x2c8ce4('0x37')](_0xbc6368[_0x2c8ce4('0x1f')][_0x2057e3],_0x5502f0,_0x34da54)[_0x2c8ce4('0x2c')](function(){const _0x5e58ed=_0x2c8ce4;!_0x3a5d8a&&(_0xbc6368[_0x5e58ed('0x6')][_0x2057e3]={},logger[_0x5e58ed('0x43')]('[%s][TIMER:%s][AGENT:%s][QUEUE:%s]',_0x204de1,_0xbc6368[_0x5e58ed('0x4c')][_0x5571ac]['acwTimeout'],_0x2057e3,_0x5571ac),_0xbc6368['timers'][_0x2057e3]['timer']=setTimeout(_0xbc6368['stopAcw'][_0x5e58ed('0x13')](_0xbc6368,_0x2057e3),_0xbc6368[_0x5e58ed('0x4c')][_0x5571ac][_0x5e58ed('0x51')]*0x3e8),_0xbc6368[_0x5e58ed('0x6')][_0x2057e3][_0x5e58ed('0x44')]=moment()[_0x5e58ed('0xc')](_0x5e58ed('0x32')),_0xbc6368['timers'][_0x2057e3]['uniqueid']=_0x204de1,_0xbc6368[_0x5e58ed('0x6')][_0x2057e3][_0x5e58ed('0x40')]=_0x5571ac,_0xbc6368[_0x5e58ed('0x6')][_0x2057e3][_0x5e58ed('0x8')]=function(){const _0xa3bd63=_0x5e58ed,_0x4bf7dc=getDiff(_0xbc6368[_0xa3bd63('0x6')][_0x2057e3]['lastPauseAt']);clearTimeout(_0xbc6368[_0xa3bd63('0x6')][_0x2057e3][_0xa3bd63('0x2')]),_0xbc6368[_0xa3bd63('0x6')][_0x2057e3][_0xa3bd63('0x2')]=![],RpcVoiceAgentReport['update']({'acwtime':_0x4bf7dc},_0xbc6368[_0xa3bd63('0x6')][_0x2057e3]['uniqueid'],_0x2057e3)[_0xa3bd63('0x2c')](function(_0x1d3954){const _0x1f4401=_0xa3bd63;logger[_0x1f4401('0x43')](_0x1f4401('0x3f'),_0x204de1,_0x4bf7dc,_0x1d3954);})['catch'](function(_0x42d968){logger['error']('[%s][UPDATE][ERRORS:%s]',_0x204de1,_0x42d968);}),delete _0xbc6368[_0xa3bd63('0x6')][_0x2057e3];});});}else logger['info'](_0x2c8ce4('0x1c'),_0x204de1,_0x2057e3,_0x5571ac);});})['catch'](function(){const _0x564738=_0x2e6338;logger['error'](_0x564738('0x17'),_0x204de1,_0xbc6368[_0x564738('0x4c')][_0x5571ac]['acwTimeout'],_0x2057e3,_0x5571ac);})[_0x2e6338('0x10')](function(){const _0x3a4c8a=_0x2e6338;delete _0xbc6368[_0x3a4c8a('0x39')][_0x204de1];});}catch(_0x4a7bb2){logger['error']('[ACW][START]\x20%s',_0x4a7bb2[_0x2e6338('0xe')]);}},Acw['prototype'][_0x3ed21d('0x41')]=function(_0x1b63c9){const _0x2788e2=_0x3ed21d;try{const _0x3bb42d=this;if(_0x3bb42d[_0x2788e2('0x6')][_0x1b63c9]){_0x3bb42d[_0x2788e2('0x6')][_0x1b63c9][_0x2788e2('0x2')]=![];const _0x54adf2=_0x3bb42d['timers'][_0x1b63c9][_0x2788e2('0x11')],_0x5c23f3=_0x3bb42d['timers'][_0x1b63c9][_0x2788e2('0x40')],_0x36c2d6=_0x3bb42d[_0x2788e2('0x4c')][_0x5c23f3]['acwTimeout'];logger[_0x2788e2('0x43')](_0x2788e2('0x4b'),_0x1b63c9),RpcUser[_0x2788e2('0x23')](this['agents'][_0x1b63c9]),RpcVoiceAgentReport[_0x2788e2('0x45')]({'acwtime':_0x36c2d6,'agentacw':!![]},_0x54adf2,_0x1b63c9)[_0x2788e2('0x2c')](function(_0x22a514){const _0x354fce=_0x2788e2;logger[_0x354fce('0x43')]('[%s][UPDATE][ACWTIME:%s]',_0x54adf2,_0x36c2d6,_0x22a514);})[_0x2788e2('0x14')](function(_0x2a4772){const _0x3d4841=_0x2788e2;logger[_0x3d4841('0x3c')](_0x3d4841('0x38'),_0x54adf2,_0x2a4772);});}else logger[_0x2788e2('0x3c')]('[ACW][STOP]\x20Interface\x20%s\x20doesn\x27t\x20have\x20timer',_0x1b63c9),_0x3bb42d['timers']&&logger[_0x2788e2('0x43')]('[ACW][TIMERS]',JSON[_0x2788e2('0x5')](_0x3bb42d[_0x2788e2('0x6')]));}catch(_0x3e6716){logger[_0x2788e2('0x3c')](_0x2788e2('0x52'),_0x3e6716[_0x2788e2('0xe')]);}},Acw[_0x3ed21d('0x2b')][_0x3ed21d('0x1e')]=function(_0x234358){const _0x21b6a7=_0x3ed21d;try{this[_0x21b6a7('0x4c')][_0x234358[_0x21b6a7('0x40')]]&&(this[_0x21b6a7('0x4c')][_0x234358['queue']][_0x21b6a7('0x4f')]||this['voiceQueues'][_0x234358[_0x21b6a7('0x40')]][_0x21b6a7('0x4e')])&&(this[_0x21b6a7('0x1f')][_0x234358[_0x21b6a7('0x9')]]&&(this[_0x21b6a7('0x39')][_0x234358['uniqueid']]={'queue':_0x234358[_0x21b6a7('0x40')],'interface':_0x234358[_0x21b6a7('0x9')],'destlinkedid':_0x234358['destlinkedid']}));}catch(_0x21b7a1){logger['error'](_0x21b6a7('0x27'),_0x21b7a1[_0x21b6a7('0xe')]);}},Acw[_0x3ed21d('0x2b')]['syncAgentConnectPreview']=function(_0x35cced){const _0xc62fc=_0x3ed21d;try{this[_0xc62fc('0x4c')][_0x35cced[_0xc62fc('0x40')]]&&(this[_0xc62fc('0x4c')][_0x35cced[_0xc62fc('0x40')]][_0xc62fc('0x4f')]||this[_0xc62fc('0x4c')][_0x35cced[_0xc62fc('0x40')]][_0xc62fc('0x4e')])&&(this['agents'][_0x35cced[_0xc62fc('0x9')]]&&(this[_0xc62fc('0x39')][_0x35cced['uniqueid']]={'queue':_0x35cced[_0xc62fc('0x40')],'interface':_0x35cced[_0xc62fc('0x9')]}));}catch(_0x722071){logger[_0xc62fc('0x3c')](_0xc62fc('0x35'),_0x722071['message']);}},Acw[_0x3ed21d('0x2b')]['syncHangupRequest']=function(_0x31bac3){const _0x4882a8=_0x3ed21d;try{if(this[_0x4882a8('0x39')][_0x31bac3[_0x4882a8('0x11')]]&&_[_0x4882a8('0x49')](this[_0x4882a8('0x39')][_0x31bac3['uniqueid']]['attended']))logger[_0x4882a8('0x43')]('[%s][HANGUP:UNIQUEID]',_0x31bac3[_0x4882a8('0x11')]),this[_0x4882a8('0x16')](_0x31bac3[_0x4882a8('0x11')]);else this[_0x4882a8('0x39')][_0x31bac3[_0x4882a8('0x15')]]&&_[_0x4882a8('0x49')](this[_0x4882a8('0x39')][_0x31bac3['linkedid']][_0x4882a8('0x7')])&&(logger['info'](_0x4882a8('0x30'),_0x31bac3[_0x4882a8('0x15')]),this[_0x4882a8('0x16')](_0x31bac3['linkedid']));}catch(_0x3914a2){logger[_0x4882a8('0x3c')](_0x4882a8('0xa'),_0x3914a2[_0x4882a8('0xe')]);}},Acw[_0x3ed21d('0x2b')]['syncHangup']=function(_0x1dbb8e){const _0x8614b2=_0x3ed21d;try{if(this[_0x8614b2('0x39')][_0x1dbb8e['uniqueid']]&&this['channels'][_0x1dbb8e[_0x8614b2('0x11')]][_0x8614b2('0x7')])logger[_0x8614b2('0x43')](_0x8614b2('0x4'),_0x1dbb8e[_0x8614b2('0x11')]),this[_0x8614b2('0x16')](_0x1dbb8e[_0x8614b2('0x11')]);else this[_0x8614b2('0x39')][_0x1dbb8e['linkedid']]&&this[_0x8614b2('0x39')][_0x1dbb8e[_0x8614b2('0x15')]][_0x8614b2('0x7')]&&(logger[_0x8614b2('0x43')](_0x8614b2('0x18'),_0x1dbb8e[_0x8614b2('0x15')]),this['startAcw'](_0x1dbb8e[_0x8614b2('0x15')]));}catch(_0x1456f7){logger[_0x8614b2('0x3c')](_0x8614b2('0x36'),_0x1456f7['message']);}},Acw[_0x3ed21d('0x2b')][_0x3ed21d('0x2d')]=function(_0x4e1f55){const _0x20c9dc=_0x3ed21d;try{if(!_['isNil'](this['channels'][_0x4e1f55[_0x20c9dc('0x48')]]))this[_0x20c9dc('0x16')](_0x4e1f55[_0x20c9dc('0x48')]),this[_0x20c9dc('0x39')][_0x4e1f55[_0x20c9dc('0x24')]]&&(this[_0x20c9dc('0x39')][_0x4e1f55[_0x20c9dc('0x24')]][_0x20c9dc('0x7')]=!![],this['channels'][_0x4e1f55['transfertargetuniqueid']]=this[_0x20c9dc('0x39')][_0x4e1f55[_0x20c9dc('0x24')]],delete this[_0x20c9dc('0x39')][_0x4e1f55['secondtransfereruniqueid']]);else!_['isNil'](this[_0x20c9dc('0x39')][_0x4e1f55[_0x20c9dc('0x26')]])&&(this[_0x20c9dc('0x16')](_0x4e1f55[_0x20c9dc('0x26')]),this[_0x20c9dc('0x39')][_0x4e1f55[_0x20c9dc('0x3')]]&&(this[_0x20c9dc('0x39')][_0x4e1f55[_0x20c9dc('0x3')]][_0x20c9dc('0x7')]=!![],this[_0x20c9dc('0x39')][_0x4e1f55[_0x20c9dc('0x48')]]=this[_0x20c9dc('0x39')][_0x4e1f55[_0x20c9dc('0x3')]],delete this[_0x20c9dc('0x39')][_0x4e1f55[_0x20c9dc('0x3')]]));}catch(_0x5855e3){logger[_0x20c9dc('0x3c')](_0x20c9dc('0x0'),_0x5855e3[_0x20c9dc('0xe')]);}},Acw['prototype'][_0x3ed21d('0x21')]=function(_0x28e350){const _0x3f7890=_0x3ed21d;try{if(this[_0x3f7890('0x39')][_0x28e350['transfereruniqueid']])logger[_0x3f7890('0x43')](_0x3f7890('0x28'),JSON[_0x3f7890('0x5')](_0x28e350['transfereruniqueid'])),this['startAcw'](_0x28e350['transfereruniqueid']);else this[_0x3f7890('0x39')][_0x28e350[_0x3f7890('0x12')]]&&(logger[_0x3f7890('0x43')](_0x3f7890('0xb'),JSON['stringify'](_0x28e350['transfererlinkedid'])),this[_0x3f7890('0x16')](_0x28e350[_0x3f7890('0x12')]));}catch(_0x48901b){logger[_0x3f7890('0x3c')]('[ACW][syncBlindTransfer]\x20%s',_0x48901b[_0x3f7890('0xe')]);}},Acw[_0x3ed21d('0x2b')]['syncAgentRingNoAnswer']=function(_0x1df492){const _0x41c897=_0x3ed21d;try{if(this[_0x41c897('0x4c')][_0x1df492[_0x41c897('0x40')]]&&this[_0x41c897('0x4c')][_0x1df492[_0x41c897('0x40')]][_0x41c897('0x42')]==='all'){if(this[_0x41c897('0x1f')][_0x1df492[_0x41c897('0x9')]])return logger[_0x41c897('0x43')](_0x41c897('0x1d'),_0x1df492['uniqueid'],_0x1df492[_0x41c897('0x9')],_0x1df492[_0x41c897('0x40')]),RpcUser[_0x41c897('0x37')](this[_0x41c897('0x1f')][_0x1df492[_0x41c897('0x9')]],_0x41c897('0xd'),_0x1df492[_0x41c897('0x11')]);}}catch(_0x40ce6e){logger[_0x41c897('0x3c')]('[ACW][syncAgentRingNoAnswer]\x20%s',_0x40ce6e[_0x41c897('0xe')]);}},module[_0x3ed21d('0x34')]=Acw; \ No newline at end of file +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 diff --git a/server/services/ami/ami.js b/server/services/ami/ami.js index 5dae0b3..cfd2a12 100644 --- a/server/services/ami/ami.js +++ b/server/services/ami/ami.js @@ -1 +1 @@ -const a1049_0x4d09=['once','info','../../config/logger','fullybooted','actionDeviceStateList','devicestatelist','Manager\x20\x22%s\x22\x20error\x20to\x20%s:%s\x20with:\x0a%s','Shutdown\x20\x22%s\x22\x20to\x20%s:%s\x20with:\x0a%s','Manager\x20\x22%s\x22\x20closed\x20to\x20%s:%s','catch','port','sippeerstatus','shutdown','password','inspect','actionCoreShowChannels','then','actionQueueSummary','Manager\x20\x22%s\x22\x20logged\x20on\x20to\x20%s:%s','actionSipShowRegistry','username','format','connect','close','exports','keepConnected','actionSipPeerStatus','error','Fullybooted\x20\x22%s\x22\x20to\x20%s:%s','asterisk','../../config/environment','Action','log','resolve'];(function(_0x99a421,_0x4d0982){const _0x291762=function(_0x9cc43e){while(--_0x9cc43e){_0x99a421['push'](_0x99a421['shift']());}};_0x291762(++_0x4d0982);}(a1049_0x4d09,0x1ad));const a1049_0x2917=function(_0x99a421,_0x4d0982){_0x99a421=_0x99a421-0x0;let _0x291762=a1049_0x4d09[_0x99a421];return _0x291762;};const _0x4b4321=a1049_0x2917;'use strict';const Manager=require('asterisk-manager'),util=require('util'),logger=require(_0x4b4321('0xf'))('ami'),config=require(_0x4b4321('0x9')),ami=new Manager(config[_0x4b4321('0x8')][_0x4b4321('0x17')],config[_0x4b4321('0x8')]['ip'],config[_0x4b4321('0x8')][_0x4b4321('0x21')],config[_0x4b4321('0x8')][_0x4b4321('0x1a')],!![]);ami[_0x4b4321('0x4')](),ami[_0x4b4321('0xa')]=util['promisify'](ami['action']);function error(_0x9cc43e){const _0x3a2f9f=_0x4b4321;logger[_0x3a2f9f('0x6')](util[_0x3a2f9f('0x0')](_0x3a2f9f('0x13'),config[_0x3a2f9f('0x8')][_0x3a2f9f('0x21')],config[_0x3a2f9f('0x8')]['ip'],config[_0x3a2f9f('0x8')]['port'],util['inspect'](_0x9cc43e,![],null)));}function close(){const _0x499f6d=_0x4b4321;logger[_0x499f6d('0x6')](util[_0x499f6d('0x0')](_0x499f6d('0x15'),config[_0x499f6d('0x8')][_0x499f6d('0x21')],config[_0x499f6d('0x8')]['ip'],config[_0x499f6d('0x8')]['port']));}ami['actionSipShowRegistry']=function(){return function(){const _0xb464d6=a1049_0x2917;return ami[_0xb464d6('0xa')]({'action':'sipshowregistry'});};},ami[_0x4b4321('0x11')]=function(){return function(){const _0x11bff3=a1049_0x2917;return ami[_0x11bff3('0xa')]({'action':_0x11bff3('0x12')});};},ami['actionSipPeerStatus']=function(){return function(){const _0x4e9cdf=a1049_0x2917;return ami['Action']({'action':_0x4e9cdf('0x18')});};},ami[_0x4b4321('0x1e')]=function(){return function(){const _0x40d7b8=a1049_0x2917;return ami[_0x40d7b8('0xa')]({'action':'queuesummary'});};},ami[_0x4b4321('0x1c')]=function(){return function(){const _0x38668c=a1049_0x2917;return ami[_0x38668c('0xa')]({'action':'coreshowchannels'});};};function connect(){const _0x503150=_0x4b4321;logger[_0x503150('0xe')](util[_0x503150('0x0')](_0x503150('0x1f'),config[_0x503150('0x8')][_0x503150('0x21')],config['asterisk']['ip'],config[_0x503150('0x8')][_0x503150('0x17')])),ami[_0x503150('0xd')](_0x503150('0x6'),error),ami[_0x503150('0xd')](_0x503150('0x2'),close);}ami['on'](_0x4b4321('0x1'),connect),ami['on'](_0x4b4321('0x19'),function(_0x442390){const _0x1fc7e3=_0x4b4321;logger['info'](util[_0x1fc7e3('0x0')](_0x1fc7e3('0x14'),config[_0x1fc7e3('0x8')][_0x1fc7e3('0x21')],config['asterisk']['ip'],config[_0x1fc7e3('0x8')]['port'],util[_0x1fc7e3('0x1b')](_0x442390,![],null)));}),ami['on'](_0x4b4321('0x10'),function(){const _0x53328f=_0x4b4321;return logger[_0x53328f('0xe')](util[_0x53328f('0x0')](_0x53328f('0x7'),config[_0x53328f('0x8')][_0x53328f('0x21')],config[_0x53328f('0x8')]['ip'],config['asterisk'][_0x53328f('0x17')])),Promise[_0x53328f('0xc')]()[_0x53328f('0x1d')](ami[_0x53328f('0x20')]())[_0x53328f('0x1d')](ami[_0x53328f('0x11')]())[_0x53328f('0x1d')](ami[_0x53328f('0x5')]())[_0x53328f('0x1d')](ami[_0x53328f('0x1e')]())[_0x53328f('0x1d')](ami['actionCoreShowChannels']())[_0x53328f('0x16')](function(_0x2d93c3){const _0x512d59=_0x53328f;console[_0x512d59('0xb')](_0x2d93c3);});}),ami[_0x4b4321('0xd')](_0x4b4321('0x6'),error),ami[_0x4b4321('0xd')](_0x4b4321('0x2'),close),module[_0x4b4321('0x3')]=ami; \ No newline at end of file +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 diff --git a/server/services/ami/client.js b/server/services/ami/client.js index 02a99c1..e878f9f 100644 --- a/server/services/ami/client.js +++ b/server/services/ami/client.js @@ -1 +1 @@ -const a1050_0xe2fb=['ami','then','catch','client','Request','error','rpc','memberReport','debug','exports','result','message','jayson/promise'];(function(_0x4c2124,_0xe2fbb){const _0x341758=function(_0x4dcfe4){while(--_0x4dcfe4){_0x4c2124['push'](_0x4c2124['shift']());}};_0x341758(++_0xe2fbb);}(a1050_0xe2fb,0xa4));const a1050_0x3417=function(_0x4c2124,_0xe2fbb){_0x4c2124=_0x4c2124-0x0;let _0x341758=a1050_0xe2fb[_0x4c2124];return _0x341758;};const _0x5d99d4=a1050_0x3417;'use strict';const jayson=require(_0x5d99d4('0x4')),logger=require('../../config/logger')(_0x5d99d4('0x5')),client=jayson[_0x5d99d4('0x8')]['http']({'port':0x2329});client[_0x5d99d4('0x9')]=function(_0x4dcfe4,_0x27090a){return new Promise(function(_0x3a7b1c,_0x260eab){const _0x49bfeb=a1050_0x3417;return client['request'](_0x4dcfe4,_0x27090a)[_0x49bfeb('0x6')](function(_0x433702){const _0x584ae8=_0x49bfeb;return logger[_0x584ae8('0x0')](_0x584ae8('0xb'),'memberReport',_0x4dcfe4,_0x27090a,_0x433702),_0x433702[_0x584ae8('0xa')]?(logger[_0x584ae8('0xa')](_0x584ae8('0xb'),_0x584ae8('0xc'),_0x4dcfe4,_0x433702[_0x584ae8('0xa')][_0x584ae8('0x3')],_0x27090a),_0x260eab(_0x433702[_0x584ae8('0xa')]['message'])):_0x3a7b1c(_0x433702[_0x584ae8('0x2')]);})[_0x49bfeb('0x7')](function(_0xe88882){const _0x5617fa=_0x49bfeb;return logger[_0x5617fa('0xa')](_0x5617fa('0xb'),_0x5617fa('0xc'),_0x4dcfe4,_0xe88882,_0x27090a),_0x260eab(_0xe88882);});});},module[_0x5d99d4('0x1')]=client; \ No newline at end of file +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 diff --git a/server/services/ami/dialer/action.js b/server/services/ami/dialer/action.js index 81f2c51..6b92adf 100644 --- a/server/services/ami/dialer/action.js +++ b/server/services/ami/dialer/action.js @@ -1 +1 @@ -const a1051_0x48c3=['idHopper','originatecalleridnum','YYYY-MM-DD\x20HH:mm:ss','ListId','countbusyretry','string','callback','dialQueueTimeout','uniqueid','scheduledat','exports','countdropretry','getQueue','lastName','phone','lodash','countcongestionretry','name','number','callbackat','UserId','firstName','callbackuniqueid','moment','countnoanswerretry','ContactFirstName','dialCutDigit','active','originatecalleridname','voiceQueue','Contact','countnosuchnumberretry','queue','countmachineretry','ContactId','countagentrejectretry','prototype','type','countabandonedretry','isNil','starttime','VoiceQueueId','recallme','\x22%s\x22\x20<%s>','util','getCaller'];(function(_0x44bb46,_0x48c3d7){const _0x409d73=function(_0x157a3b){while(--_0x157a3b){_0x44bb46['push'](_0x44bb46['shift']());}};_0x409d73(++_0x48c3d7);}(a1051_0x48c3,0xf3));const a1051_0x409d=function(_0x44bb46,_0x48c3d7){_0x44bb46=_0x44bb46-0x0;let _0x409d73=a1051_0x48c3[_0x44bb46];return _0x409d73;};const _0x312b61=a1051_0x409d;'use strict';const util=require(_0x312b61('0x1f')),_=require(_0x312b61('0x2')),moment=require(_0x312b61('0xa'));function checkNameSurname(_0x157a3b,_0x40ad09,_0xe5e99d){const _0x10bbc2=_0x312b61;let _0x3dd4b6='';!_[_0x10bbc2('0x1a')](_0x40ad09)&&_0x10bbc2('0x26')===typeof _0x40ad09&&(_0x3dd4b6+=_0x40ad09);!_[_0x10bbc2('0x1a')](_0xe5e99d)&&'string'===typeof _0xe5e99d&&(_0x3dd4b6+='\x20'+_0xe5e99d);if(_0x3dd4b6!=='')return _0x3dd4b6;return _0x157a3b;}function Action(_0x15a330,_0x32abc6,_0x4ba21b){const _0x4d9e81=_0x312b61;this[_0x4d9e81('0x10')]=_0x15a330,this[_0x4d9e81('0x29')]=_0x4ba21b||undefined,this[_0x4d9e81('0x4')]=checkNameSurname(_0x32abc6[_0x4d9e81('0x11')]['phone'],_0x32abc6['Contact'][_0x4d9e81('0x8')],_0x32abc6[_0x4d9e81('0x11')][_0x4d9e81('0x0')]),this[_0x4d9e81('0x5')]=_0x32abc6[_0x4d9e81('0x11')][_0x4d9e81('0x1')],this[_0x4d9e81('0x13')]=_0x15a330[_0x4d9e81('0x4')],this[_0x4d9e81('0xe')]=_0x32abc6[_0x4d9e81('0xe')]||![],this['type']=_0x15a330[_0x4d9e81('0x18')],this['dialQueueTimeout']=_0x15a330[_0x4d9e81('0x28')]||0x3,this['scheduledat']=_0x32abc6[_0x4d9e81('0x2a')],this[_0x4d9e81('0x25')]=_0x32abc6['countbusyretry'],this['countcongestionretry']=_0x32abc6[_0x4d9e81('0x3')],this['countnoanswerretry']=_0x32abc6[_0x4d9e81('0xb')],this[_0x4d9e81('0x12')]=_0x32abc6[_0x4d9e81('0x12')],this['countdropretry']=_0x32abc6[_0x4d9e81('0x2c')],this[_0x4d9e81('0x19')]=_0x32abc6[_0x4d9e81('0x19')],this[_0x4d9e81('0x14')]=_0x32abc6[_0x4d9e81('0x14')],this[_0x4d9e81('0x16')]=_0x32abc6['countagentrejectretry'],this[_0x4d9e81('0x15')]=_0x32abc6['ContactId'],this[_0x4d9e81('0x24')]=_0x32abc6[_0x4d9e81('0x24')],this[_0x4d9e81('0x7')]=_0x32abc6[_0x4d9e81('0x7')],this['VoiceQueueId']=_0x32abc6[_0x4d9e81('0x1c')],this['CampaignId']=_0x32abc6['CampaignId'],this[_0x4d9e81('0x21')]=_0x32abc6['id'],this[_0x4d9e81('0xc')]=_0x32abc6['Contact'][_0x4d9e81('0x8')]||'',this[_0x4d9e81('0x1b')]=moment()['format'](_0x4d9e81('0x23')),this[_0x4d9e81('0x27')]=_0x32abc6[_0x4d9e81('0x27')],this[_0x4d9e81('0x9')]=_0x32abc6[_0x4d9e81('0x9')],this['callbackat']=_0x32abc6[_0x4d9e81('0x6')],this['recallme']=_0x32abc6[_0x4d9e81('0x1d')],this[_0x4d9e81('0x22')]='',this[_0x4d9e81('0xf')]='';}Action[_0x312b61('0x17')][_0x312b61('0x20')]=function(){const _0x352888=_0x312b61;return util['format'](_0x352888('0x1e'),this[_0x352888('0x4')],this[_0x352888('0x10')][_0x352888('0xd')]>0x0?this['number']['substring'](this['voiceQueue'][_0x352888('0xd')]):this[_0x352888('0x5')]);},Action[_0x312b61('0x17')][_0x312b61('0x2d')]=function(){const _0x4fc9cf=_0x312b61;return this[_0x4fc9cf('0x13')];},module[_0x312b61('0x2b')]=Action; \ No newline at end of file +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 diff --git a/server/services/ami/dialer/agentComplete.js b/server/services/ami/dialer/agentComplete.js index 33a5465..5145cb9 100644 --- a/server/services/ami/dialer/agentComplete.js +++ b/server/services/ami/dialer/agentComplete.js @@ -1 +1 @@ -const a1052_0x4bdc=['queue','number','countnosuchnumberretry','moment','reason','holdtime','callbackuniqueid','countbusyretry','talktime','countnoanswerretry','statedesc','diff','scheduledat','milliseconds','ringtime','CampaignId','callback','uniqueid','originatecalleridnum','seconds','calleridnum','membername','responsetime','exports','YYYY-MM-DD\x20HH:mm:ss','countmachineretry','starttime','countdropretry','ContactId','UserId','name','answertime','endtime','Answer','countagentrejectretry','ListId','countcongestionretry','calleridname','outbound','callbackat','type','originatecalleridname','state','format','countabandonedretry','campaigntype','countglobal'];(function(_0x510022,_0x4bdc0b){const _0x3b5971=function(_0x2fcbe3){while(--_0x2fcbe3){_0x510022['push'](_0x510022['shift']());}};_0x3b5971(++_0x4bdc0b);}(a1052_0x4bdc,0x1ce));const a1052_0x3b59=function(_0x510022,_0x4bdc0b){_0x510022=_0x510022-0x0;let _0x3b5971=a1052_0x4bdc[_0x510022];return _0x3b5971;};const _0x255988=a1052_0x3b59;'use strict';const moment=require(_0x255988('0xb'));function getSeconds(_0x2fcbe3,_0x283222){const _0x5b672e=_0x255988,_0xe73193=moment(_0x2fcbe3)[_0x5b672e('0x15')](0x0),_0x4eef5d=moment(_0x283222)[_0x5b672e('0x15')](0x0);return _0xe73193[_0x5b672e('0x13')](_0x4eef5d,_0x5b672e('0x1b'));}function AgentComplete(_0xc4d8f9,_0x356001){const _0x1c2ff0=_0x255988;this[_0x1c2ff0('0x3')]=0x4,this[_0x1c2ff0('0x12')]=_0x1c2ff0('0x29'),this[_0x1c2ff0('0x14')]=_0xc4d8f9[_0x1c2ff0('0x14')],this[_0x1c2ff0('0x1')]=_0xc4d8f9['type'],this[_0x1c2ff0('0x6')]=_0xc4d8f9[_0x1c2ff0('0x1')]===_0x1c2ff0('0x2e')?'queue':_0xc4d8f9[_0x1c2ff0('0x1')],this[_0x1c2ff0('0xf')]=_0xc4d8f9['countbusyretry'],this[_0x1c2ff0('0x2c')]=_0xc4d8f9[_0x1c2ff0('0x2c')],this[_0x1c2ff0('0x11')]=_0xc4d8f9[_0x1c2ff0('0x11')],this[_0x1c2ff0('0x7')]=_0xc4d8f9[_0x1c2ff0('0xf')]+_0xc4d8f9[_0x1c2ff0('0x2c')]+_0xc4d8f9['countnoanswerretry']+_0xc4d8f9[_0x1c2ff0('0xa')]+_0xc4d8f9[_0x1c2ff0('0x23')]+_0xc4d8f9[_0x1c2ff0('0x5')]+_0xc4d8f9[_0x1c2ff0('0x21')]+_0xc4d8f9[_0x1c2ff0('0x2a')],this['countnosuchnumberretry']=_0xc4d8f9[_0x1c2ff0('0xa')],this[_0x1c2ff0('0x23')]=_0xc4d8f9[_0x1c2ff0('0x23')],this[_0x1c2ff0('0x5')]=_0xc4d8f9[_0x1c2ff0('0x5')],this[_0x1c2ff0('0x21')]=_0xc4d8f9['countmachineretry'],this['countagentrejectretry']=_0xc4d8f9[_0x1c2ff0('0x2a')],this[_0x1c2ff0('0x19')]=_0x356001[_0x1c2ff0('0x19')],this[_0x1c2ff0('0x2d')]=_0xc4d8f9[_0x1c2ff0('0x26')],this[_0x1c2ff0('0x1c')]=_0xc4d8f9[_0x1c2ff0('0x9')],this[_0x1c2ff0('0x22')]=_0xc4d8f9[_0x1c2ff0('0x22')],this[_0x1c2ff0('0x1e')]=_0xc4d8f9[_0x1c2ff0('0x1e')],this[_0x1c2ff0('0x27')]=_0xc4d8f9[_0x1c2ff0('0x27')],this['endtime']=moment()[_0x1c2ff0('0x4')](_0x1c2ff0('0x20')),this[_0x1c2ff0('0x16')]=getSeconds(_0xc4d8f9[_0x1c2ff0('0x1e')],_0xc4d8f9[_0x1c2ff0('0x22')]),this[_0x1c2ff0('0xd')]=getSeconds(_0xc4d8f9[_0x1c2ff0('0x27')],_0xc4d8f9['responsetime']),this[_0x1c2ff0('0x10')]=getSeconds(this[_0x1c2ff0('0x28')],_0xc4d8f9[_0x1c2ff0('0x27')]),this['queue']=_0x356001[_0x1c2ff0('0x8')],this[_0x1c2ff0('0x1d')]=_0x356001[_0x1c2ff0('0x1d')],this[_0x1c2ff0('0xc')]=_0x356001['reason'],this['callback']=_0xc4d8f9[_0x1c2ff0('0x18')],this['callbackuniqueid']=_0xc4d8f9[_0x1c2ff0('0xe')],this[_0x1c2ff0('0x0')]=_0xc4d8f9[_0x1c2ff0('0x0')],this['recallme']=_0xc4d8f9['recallme'],this[_0x1c2ff0('0x24')]=_0xc4d8f9['ContactId'],this['ListId']=_0xc4d8f9[_0x1c2ff0('0x2b')],this[_0x1c2ff0('0x25')]=_0xc4d8f9[_0x1c2ff0('0x25')],this['VoiceQueueId']=_0xc4d8f9['VoiceQueueId'],this[_0x1c2ff0('0x17')]=_0xc4d8f9[_0x1c2ff0('0x17')],this[_0x1c2ff0('0x1a')]=_0xc4d8f9[_0x1c2ff0('0x1a')]||'',this[_0x1c2ff0('0x2')]=_0xc4d8f9[_0x1c2ff0('0x2')]||'';}module[_0x255988('0x1f')]=AgentComplete; \ No newline at end of file +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 diff --git a/server/services/ami/dialer/final.js b/server/services/ami/dialer/final.js index 1951e88..e988712 100644 --- a/server/services/ami/dialer/final.js +++ b/server/services/ami/dialer/final.js @@ -1 +1 @@ -var a1053_0x392a=['originatecalleridnum','countabandonedretry','calleridname','countagentrejectretry','countnosuchnumberretry','scheduledat','countnoanswerretry','recallme','CampaignId','starttime','responsetime','queue','uniqueid','endtime','talktime','countmachineretry','type','campaigntype','callbackat','ListId','countglobal','callbackuniqueid','countbusyretry','countcongestionretry','exports','holdtime','originatecalleridname','callback','VoiceQueueId','calleridnum','ContactId','countdropretry'];(function(_0x50f5fd,_0x392a02){var _0x261178=function(_0x49c831){while(--_0x49c831){_0x50f5fd['push'](_0x50f5fd['shift']());}};_0x261178(++_0x392a02);}(a1053_0x392a,0x13f));var a1053_0x2611=function(_0x50f5fd,_0x392a02){_0x50f5fd=_0x50f5fd-0x0;var _0x261178=a1053_0x392a[_0x50f5fd];return _0x261178;};var _0x19e255=a1053_0x2611;'use strict';function Final(_0x49c831){var _0x4f10ad=a1053_0x2611;this['uniqueid']=_0x49c831[_0x4f10ad('0xd')],this[_0x4f10ad('0x6')]=_0x49c831[_0x4f10ad('0x6')],this[_0x4f10ad('0x11')]=_0x49c831[_0x4f10ad('0x11')],this[_0x4f10ad('0x12')]=_0x49c831[_0x4f10ad('0x11')]==='outbound'?_0x4f10ad('0xc'):_0x49c831['type'],this[_0x4f10ad('0x17')]=_0x49c831[_0x4f10ad('0x17')],this[_0x4f10ad('0x18')]=_0x49c831['countcongestionretry'],this[_0x4f10ad('0x7')]=_0x49c831[_0x4f10ad('0x7')],this[_0x4f10ad('0x15')]=_0x49c831[_0x4f10ad('0x17')]+_0x49c831[_0x4f10ad('0x18')]+_0x49c831[_0x4f10ad('0x7')]+_0x49c831[_0x4f10ad('0x5')]+_0x49c831[_0x4f10ad('0x0')]+_0x49c831[_0x4f10ad('0x2')]+_0x49c831[_0x4f10ad('0x10')]+_0x49c831[_0x4f10ad('0x4')],this[_0x4f10ad('0x5')]=_0x49c831[_0x4f10ad('0x5')],this[_0x4f10ad('0x0')]=_0x49c831['countdropretry'],this[_0x4f10ad('0x2')]=_0x49c831[_0x4f10ad('0x2')],this[_0x4f10ad('0x10')]=_0x49c831[_0x4f10ad('0x10')],this[_0x4f10ad('0x4')]=_0x49c831[_0x4f10ad('0x4')],this[_0x4f10ad('0xc')]=_0x49c831[_0x4f10ad('0xc')],this[_0x4f10ad('0x3')]=_0x49c831[_0x4f10ad('0x3')],this[_0x4f10ad('0x1e')]=_0x49c831[_0x4f10ad('0x1e')],this['starttime']=_0x49c831[_0x4f10ad('0xa')],this['responsetime']=_0x49c831['responsetime'],this[_0x4f10ad('0xe')]=_0x49c831[_0x4f10ad('0xb')],this['ringtime']=_0x49c831['ringtime']||0x0,this[_0x4f10ad('0x1a')]=_0x49c831[_0x4f10ad('0x1a')]||0x0,this['talktime']=_0x49c831[_0x4f10ad('0xf')]||0x0,this[_0x4f10ad('0x1c')]=_0x49c831[_0x4f10ad('0x1c')],this[_0x4f10ad('0x16')]=_0x49c831[_0x4f10ad('0x16')],this[_0x4f10ad('0x13')]=_0x49c831[_0x4f10ad('0x13')],this[_0x4f10ad('0x8')]=_0x49c831['recallme'],this['ContactId']=_0x49c831[_0x4f10ad('0x1f')],this[_0x4f10ad('0x14')]=_0x49c831[_0x4f10ad('0x14')],this['UserId']=_0x49c831['UserId'],this[_0x4f10ad('0x1d')]=_0x49c831['VoiceQueueId'],this[_0x4f10ad('0x9')]=_0x49c831[_0x4f10ad('0x9')],this[_0x4f10ad('0x1')]=_0x49c831[_0x4f10ad('0x1')]||'',this['originatecalleridname']=_0x49c831[_0x4f10ad('0x1b')]||'';}module[_0x19e255('0x19')]=Final; \ No newline at end of file +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 diff --git a/server/services/ami/dialer/hangup.js b/server/services/ami/dialer/hangup.js index 0f276b9..927565e 100644 --- a/server/services/ami/dialer/hangup.js +++ b/server/services/ami/dialer/hangup.js @@ -1 +1 @@ -const a1054_0x32e6=['seconds','countnosuchnumberretry','type','Answer','VoiceQueueId','cause-txt','callback','uniqueid','milliseconds','ringtime','calleridname','callbackuniqueid','ContactId','starttime','countnoanswerretry','talktime','number','endtime','countglobal','calleridnum','CampaignId','diff','format','scheduledat','membername','countmachineretry','state','UserId','IVR','countcongestionretry','responsetime','countdropretry','countbusyretry','statedesc','countagentrejectretry','queue','campaigntype','YYYY-MM-DD\x20HH:mm:ss','outbound','name','countabandonedretry','callbackat'];(function(_0x4da1d8,_0x32e6b5){const _0x42325a=function(_0x425070){while(--_0x425070){_0x4da1d8['push'](_0x4da1d8['shift']());}};_0x42325a(++_0x32e6b5);}(a1054_0x32e6,0xc3));const a1054_0x4232=function(_0x4da1d8,_0x32e6b5){_0x4da1d8=_0x4da1d8-0x0;let _0x42325a=a1054_0x32e6[_0x4da1d8];return _0x42325a;};'use strict';const moment=require('moment');function getSeconds(_0x425070,_0x2e1092){const _0x149eee=a1054_0x4232,_0x5748d2=moment(_0x425070)[_0x149eee('0x17')](0x0),_0x2b48a0=moment(_0x2e1092)[_0x149eee('0x17')](0x0);return _0x5748d2[_0x149eee('0x24')](_0x2b48a0,_0x149eee('0xf'));}function Hangup(_0x3f1e3,_0x227cc0){const _0x2d71f8=a1054_0x4232;this[_0x2d71f8('0x29')]=0x4,this[_0x2d71f8('0x6')]=_0x2d71f8('0x12'),this[_0x2d71f8('0x26')]=_0x3f1e3['scheduledat'],this[_0x2d71f8('0x11')]=_0x3f1e3[_0x2d71f8('0x11')],this[_0x2d71f8('0x9')]=_0x3f1e3[_0x2d71f8('0x11')]===_0x2d71f8('0xb')?_0x2d71f8('0x8'):_0x3f1e3[_0x2d71f8('0x11')],this[_0x2d71f8('0x5')]=_0x3f1e3[_0x2d71f8('0x5')],this[_0x2d71f8('0x2')]=_0x3f1e3['countcongestionretry'],this[_0x2d71f8('0x1d')]=_0x3f1e3['countnoanswerretry'],this[_0x2d71f8('0x21')]=_0x3f1e3[_0x2d71f8('0x5')]+_0x3f1e3[_0x2d71f8('0x2')]+_0x3f1e3[_0x2d71f8('0x1d')]+_0x3f1e3[_0x2d71f8('0x10')]+_0x3f1e3['countdropretry']+_0x3f1e3[_0x2d71f8('0xd')]+_0x3f1e3['countmachineretry']+_0x3f1e3[_0x2d71f8('0x7')],this['countnosuchnumberretry']=_0x3f1e3[_0x2d71f8('0x10')],this[_0x2d71f8('0x4')]=_0x3f1e3[_0x2d71f8('0x4')],this[_0x2d71f8('0xd')]=_0x3f1e3[_0x2d71f8('0xd')],this[_0x2d71f8('0x28')]=_0x3f1e3[_0x2d71f8('0x28')],this[_0x2d71f8('0x7')]=_0x3f1e3['countagentrejectretry'],this[_0x2d71f8('0x16')]=_0x227cc0[_0x2d71f8('0x16')],this[_0x2d71f8('0x19')]=_0x3f1e3[_0x2d71f8('0xc')],this[_0x2d71f8('0x22')]=_0x3f1e3[_0x2d71f8('0x1f')],this[_0x2d71f8('0x1c')]=_0x3f1e3[_0x2d71f8('0x1c')],this[_0x2d71f8('0x3')]=_0x3f1e3[_0x2d71f8('0x3')],this[_0x2d71f8('0x20')]=moment()[_0x2d71f8('0x25')](_0x2d71f8('0xa')),this[_0x2d71f8('0x18')]=getSeconds(_0x3f1e3[_0x2d71f8('0x3')],_0x3f1e3[_0x2d71f8('0x1c')]),this['holdtime']=0x0,this[_0x2d71f8('0x1e')]=getSeconds(this[_0x2d71f8('0x20')],_0x3f1e3[_0x2d71f8('0x3')]),this[_0x2d71f8('0x8')]=_0x3f1e3[_0x2d71f8('0x8')],this[_0x2d71f8('0x27')]=_0x2d71f8('0x1'),this['reason']=_0x227cc0[_0x2d71f8('0x14')],this[_0x2d71f8('0x15')]=_0x3f1e3[_0x2d71f8('0x15')],this[_0x2d71f8('0x1a')]=_0x3f1e3[_0x2d71f8('0x1a')],this[_0x2d71f8('0xe')]=_0x3f1e3[_0x2d71f8('0xe')],this['recallme']=_0x3f1e3['recallme'],this[_0x2d71f8('0x1b')]=_0x3f1e3['ContactId'],this['ListId']=_0x3f1e3['ListId'],this[_0x2d71f8('0x0')]=_0x3f1e3[_0x2d71f8('0x0')],this['VoiceQueueId']=_0x3f1e3[_0x2d71f8('0x13')],this[_0x2d71f8('0x23')]=_0x3f1e3['CampaignId'];}module['exports']=Hangup; \ No newline at end of file +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 diff --git a/server/services/ami/dialer/history.js b/server/services/ami/dialer/history.js index 3330b4c..96fa57d 100644 --- a/server/services/ami/dialer/history.js +++ b/server/services/ami/dialer/history.js @@ -1 +1 @@ -const a1055_0x2c91=['outbound','calleridnum','campaigntype','countdropretry','countbusyretry','endtime','seconds','countmachineretry','responsetime','calleridname','ListId','countnosuchnumberretry','countabandonedretry','countagentrejectretry','starttime','countcongestionretry','originatecalleridnum','diff','countnoanswerretry','VoiceQueueId','name','callbackat','milliseconds','recallme','ringtime','number','CampaignId','callbackuniqueid','type','holdtime','originatecalleridname','scheduledat','ContactId','uniqueid','callback','countglobal','exports','UserId'];(function(_0x18674f,_0x2c91ce){const _0x2a77f3=function(_0x22cec4){while(--_0x22cec4){_0x18674f['push'](_0x18674f['shift']());}};_0x2a77f3(++_0x2c91ce);}(a1055_0x2c91,0x170));const a1055_0x2a77=function(_0x18674f,_0x2c91ce){_0x18674f=_0x18674f-0x0;let _0x2a77f3=a1055_0x2c91[_0x18674f];return _0x2a77f3;};const _0x45471d=a1055_0x2a77;'use strict';const moment=require('moment');function getSeconds(_0x22cec4,_0x54bec5){const _0x28fe2b=a1055_0x2a77,_0xf187bd=moment(_0x22cec4)[_0x28fe2b('0x22')](0x0),_0x375f9b=moment(_0x54bec5)[_0x28fe2b('0x22')](0x0);return _0xf187bd[_0x28fe2b('0x1d')](_0x375f9b,_0x28fe2b('0x12'));}function History(_0x33472e){const _0x57f775=a1055_0x2a77;this[_0x57f775('0x7')]=_0x33472e[_0x57f775('0x7')],this['scheduledat']=_0x33472e[_0x57f775('0x5')]||undefined,this['type']=_0x33472e[_0x57f775('0x2')],this[_0x57f775('0xe')]=_0x33472e[_0x57f775('0x2')]===_0x57f775('0xc')?'queue':_0x33472e[_0x57f775('0x2')],this['countbusyretry']=_0x33472e[_0x57f775('0x10')],this[_0x57f775('0x1b')]=_0x33472e[_0x57f775('0x1b')],this[_0x57f775('0x1e')]=_0x33472e[_0x57f775('0x1e')],this[_0x57f775('0x9')]=_0x33472e[_0x57f775('0x10')]+_0x33472e[_0x57f775('0x1b')]+_0x33472e[_0x57f775('0x1e')]+_0x33472e['countnosuchnumberretry']+_0x33472e[_0x57f775('0xf')]+_0x33472e[_0x57f775('0x18')]+_0x33472e[_0x57f775('0x13')]+_0x33472e[_0x57f775('0x19')],this[_0x57f775('0x17')]=_0x33472e[_0x57f775('0x17')],this[_0x57f775('0xf')]=_0x33472e[_0x57f775('0xf')],this[_0x57f775('0x18')]=_0x33472e[_0x57f775('0x18')],this[_0x57f775('0x13')]=_0x33472e[_0x57f775('0x13')],this['countagentrejectretry']=_0x33472e['countagentrejectretry'],this['queue']=_0x33472e['queue'],this[_0x57f775('0x15')]=_0x33472e[_0x57f775('0x20')],this[_0x57f775('0xd')]=_0x33472e[_0x57f775('0x25')],this[_0x57f775('0x1a')]=_0x33472e[_0x57f775('0x1a')],this['responsetime']=_0x33472e[_0x57f775('0x14')],this[_0x57f775('0x11')]=_0x33472e[_0x57f775('0x14')],this[_0x57f775('0x24')]=getSeconds(_0x33472e[_0x57f775('0x14')],_0x33472e[_0x57f775('0x1a')]),this[_0x57f775('0x3')]=0x0,this['talktime']=0x0,this['callback']=_0x33472e[_0x57f775('0x8')],this[_0x57f775('0x1')]=_0x33472e[_0x57f775('0x1')],this['callbackat']=_0x33472e[_0x57f775('0x21')],this[_0x57f775('0x23')]=_0x33472e[_0x57f775('0x23')],this[_0x57f775('0x6')]=_0x33472e[_0x57f775('0x6')],this[_0x57f775('0x16')]=_0x33472e[_0x57f775('0x16')],this[_0x57f775('0xb')]=_0x33472e['UserId'],this[_0x57f775('0x1f')]=_0x33472e[_0x57f775('0x1f')],this[_0x57f775('0x0')]=_0x33472e[_0x57f775('0x0')],this['originatecalleridnum']=_0x33472e[_0x57f775('0x1c')]||'',this[_0x57f775('0x4')]=_0x33472e[_0x57f775('0x4')]||'';}module[_0x45471d('0xa')]=History; \ No newline at end of file +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 diff --git a/server/services/ami/dialer/index.js b/server/services/ami/dialer/index.js index 4acd915..bdcc60a 100644 --- a/server/services/ami/dialer/index.js +++ b/server/services/ami/dialer/index.js @@ -1 +1 @@ -const a1056_0x49bc=['-----\x20Stats\x20Predictive\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','syncCampaigns','actionOriginate','updatedAt','[booked][unlock]','predictiveIntervalTotalCalls','[handlePredictive]','tryOriginatePredictive','startMethodPredictive','interval\x20=\x20','dialMethod','[actions]','\x22\x22\x20<>','One\x20call\x20every:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','varset','[unlockContact]\x20','[booked][RR][finaly]','Success','[getVoiceQueueRtPauses]\x20','stateinterface','inspect','Trunk','buildObj','predictiveIntervalAnsweredCalls','[rescheduleContact][dialRecallInQueue]','bind','originatecalleridname','dialNoSuchNumberRetryFrequency','---------------------------','Action','locked','dialPredictiveOptimizationPercentage','RECALLFAILEDTIMEOUT','getCaller','Drop','predictiveIntervalDroppedCallsCallersExit','Agent','actionid','TRUNK_IS_NOT_REACHABLE','countReScheduled','[CatchErlangB]','Contact.phone','[startMethodPredictive][StartProgressive]','floor','timezones','getContactDialerIvr','amdstatus','[decremetOriginate]\x20is\x20null\x20or\x20undefined','milliseconds','dialBusyMaxRetry','getContactDialer','predictiveIntervalMultiplicativeFactor','agentcomplete','dialOriginateCallerIdName','roundrobin','originateresponse','interval','syncAgentComplete','[syncAgentComplete][createHistory][0]','callProgressDetecting','\x22%s\x22\x20<%s>','MACHINE','countcongestionretry','\x20INTERVAL_IS_NULL','AVG\x20Hold\x20Time:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','unlockContact','catch','countnosuchnumberretry','reason\x208\x20congestion','%s%s','reason\x205\x20busy','sequence','_rr','stack','agentconnect','tail','outboundNoAnswerCallsDay','talking','queue','minutes','OriginateError','getDataPredictiveOld','add','isSuccess','[actionOriginate]\x20','run','Interval','Avg\x20Talk\x20Time\x20is\x20not\x20enough\x20for\x20predictive','campaign:ivr:%s','check\x20failure','../../../config/logger','notFound','getDataPredictive','RecallFailedTimeout','busy','./final','from-sip','responsetime','noanswer','maxNumberOriginate','handlePredictive','collection\x20data\x20in\x20progressive\x20at','then','recallme','dialer','queuemember','syncNewExten','../../../config/config.service','contactsId','finally','Total\x20Calls\x20are\x20not\x20enough\x20for\x20predictive','INTERVAL_IS_NULL','Interval:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','iftime\x20%s,%s','[callProgressDetecting]','m\x20=\x20','[getDataPredictive]','recalculate\x20predictive\x20at','XMD-AMDINITIALSILENCE','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','isUndefined','nosuchnumber','dialRandomLastDigitCallerIdNumber','syncAgentConnect','response','[syncAgentComplete][createHistory][20]','reachable','RECALLINQUEUE','resolve','syncVarSet','predictiveIntervalAvgTalktime','cause-txt','prototype','queueStatusComplete:\x20','syncOriginateResponse','loopCampaigns','random','Congestion','ACTIVE','contactAgent-idHopper:\x20','abandoned','History\x20information\x20are\x20empty','answertime','Busy','calleridname','pTalking','dialAgentRejectRetryFrequency','[rescheduleContact][NoAnswer]','predictiveIntervalAvailable','dialNoAnswerMaxRetry','newexten','message','Failure','outboundDropCallsDayCallersExit','[booked][unlock3]','[syncHangupIvr]','dialAMDBetweenWordsSilence','answered','emptyContact','strategy','[ifTime][Action]','checkDialMethod','getQueue','dialPredictiveInterval','[syncHangupIvr][createHistory]','checkContactBlack','tags','createHistory','XMD-AMDMAXIMUMNUMBEROFWORDS','NONE','isTrunkReachable','[moveContactManagedDialer]\x20','TrunkBackup','diff','XMD-ORIGINATECALLERIDNAME','dialAMDMinWordLength','method\x20not\x20recognized','loggedIn','Amax\x20=\x20','syncQueueCallerAbandon','unmanaged','[unlock2][syncQueueStatusComplete]','moveContactManagedDialer','syncQueueMember','XMD-AMDMINWORDLENGTH','startProgressive','handlePower','rrmemory','busyFactor','checkIfTimeIntervals','HangupInAMD','queueCallerAbandonCreateState','countagentrejectretry','congestion','outboundBlacklistCallsDay','sumHoldTime','countdropretry','[unlock][syncQueueStatusComplete]','[getContactDialer2][Empty]','Contact','countglobal','NoAnswer','./action','startPredictive','AVAILABLE_CONTACTS_FINISHED','predictiveIntervalErlangCallsDroppedCalls','[abandonmentRate]','trim','[syncHangupInAMD]','[stopMethodPredictive][ReStartProgressive][ExceededDropInterval]','outboundUnknownCallsDay','stringify','entity\x20is\x20undefine','reason\x2020\x20agentreject','loggerHandler','checkIsTrunkReachable','UserId','dialMachineRetryFrequency','is\x20not\x20active','Queue:\x20','dialPredictiveOptimization','[actionOriginateIvr]\x20','[syncAgentComplete][createHistory][8]','predictiveIntervalHitRate','predictiveIntervalPauses','content','./agentComplete','optionPredictive','dropRate','[rescheduleContact][Abandoned]','dialAMDAfterGreetingSilence','exports','state','AgentReject','dialAMDTotalAnalysisTime','agiafterat','custom:agentnosuchnumber','syncQueueStatusComplete','checkIsBlackList','dialAMDMaximumWordLength','originated','SIP/%s/%s%s','substring','predictiveIntervalDroppedCallsTimeout','dialAMDGreeting','status','ListId','erlangCalls','Answered\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','booked','CampaignId','outboundNoSuchCallsDay','\x20NOT\x20Active','[callProgressDetecting]\x20','dialAbandonedRetryFrequency','Machine','syncQueueSummary','[rescheduleContact][Machine]','dialAMDMaximumNumberOfWords','dialRecallInQueue','dialOrderByScheduledAt','[syncAgentComplete]','\x22agi://%s/square,%s\x22','[Originate][historyBlacklist]','Unknow','[Dialer][checkChannel]','Abandoned','dialCutDigit','NoSuchNumber','[averageHandleTime]\x20','idHopper','preview','countmachineretry','originatecalleridnum','[syncQueueSummary]','agiIp','AMD','originate\x20action\x20Error','reason\x200\x20no\x20such\x20number....','variable','membername','VoiceQueueId','[getContactDialer2]','lodash','ivr','scheduledat','TIMEZONE_UNKNOW','agentBusyFactor','\x22%s,%s%s,,,%s\x22','reason\x203\x20ringing\x20no\x20answer','AVG\x20Talk\x20Time:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','enqueue','handleIvr','getVoiceQueueRtPauses','XMD-AMDAFTERGREETINGSILENCE','contacts','originate','Global','starttime','statedesc','Error','[ifTime][promiseAll]','isNil','Drop\x20in\x20this\x20interval','dialAgentRejectMaxRetry','dialAMDInitialSilence','calleridnum','Drop\x20Rate:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','TIMEOUT','emit','NOT_ACTIVE','ContactId','power','checkIsBlackListIvr','checkIfTime','HANGUP','endtime','\x20AGENTS\x20NOT\x20LOGGED','[Catch][Preview][syncQueueStatusComplete]','name','[Originate][HistoryRecallClose]','droptime','predictive','AnswerAGI','[rescheduleContact][Drop]','reason','[getContactCampaign2]','[getContactCampaign2][Empty]','Amax:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','switch\x20in\x20progressive\x20because\x20available\x20agents\x20(','dialCongestionRetryFrequency','outboundAbandonedCallsDay','../ami','[Originate][HistoryDialRecallInQueue][historyCatch]','pick','avgHandleTime','[syncAgentComplete][createHistory][5]','[rescheduleContact]\x20[Busy]','dialAgiAfterHangupAgent','waiting','dialPowerLevel','length','trunks','error','phone','[syncHangupInAMD][createHistory]','ivrOriginated','callerid','YYYY-MM-DD\x20HH:mm:ss','updateOriginated','countnoanswerretry','log','[rescheduleContact]\x20[Congestion]','[rescheduleContact]\x20','dialPrefix','clearing\x20variable\x20handle\x20predictive','saveInDb','[checkIsBlackList]\x20','outboundBusyCallsDay','reason19\x20machine....','outboundAnswerAgiCallsDay','predictiveIntervalAvgHoldtime','[checkIsBlackListIvr]\x20','channels','sendMessageOneNotActive','[busyFactor]','[Originate][HistoryRecallClose][historyCatch]','dialNoSuchNumberMaxRetry','outbound','Unknown\x20Predictive','[getContactDialer2][ReScheduled]','Dropped\x20Timeout:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Intervals','one\x20call\x20every:','paused','\x20Intervals\x20is\x20empty\x20','queueBooked','outboundAnswerCallsDay','dialQueueProject2','dialOriginateTimeout','outboundCongestionCallsDay','erlangAbandonmentRate','Agent:\x20','dialNoAnswerRetryFrequency','reason\x2019\x20machine....','[unlockOriginate][syncQueueStatusComplete]','AGI','SIP/%s','dialDropMaxRetry','erlangCallToSecond','channel','object','clearZombieChannels','[booked][checkContactBlack][else]','countabandonedretry','dialOriginateCallerIdNumber','./queueCallerAbandon','queueBookedRR','dialQueueTimeout','dialCongestionMaxRetry','XMD-AMDTOTALANALYSISTIME','[unlockQueueStatus][undefined]','[updateOriginated]\x20is\x20null\x20or\x20undefined','dialAMDActive','../rpc/cmHopperHistory','isArray','dialMachineMaxRetry',')\x20are\x20more\x20than\x20threshold\x20(','[syncQueueSummary]\x20Campaign\x20Ivr:\x20','[getContactDialer]\x20','[syncAgentComplete][createHistory][3]','---------\x20ErlangB\x20---------','uniqueId','Max\x20Drop\x20','[syncHangupInAMDIvr][createHistory]','voiceQueues','outboundReCallsDay','[originate][error]','dialLimitQueue','string','Timezone:\x20','seconds','XMD-','started\x20in\x20predictive\x20at','dialAbandonedMaxRetry','type','Umin\x20=\x20','actions','[getContactDialerPredictive]','[booked][checkContactBlack]','indexOf','predictiveIntervalMaxThreshold','queueStatusComplete','../rpc/cmHopper','total','XMD-CAMPAIGNID','queuestatuscomplete','Blacklist','some','sumDuration','custom:agentnoanswer','uniqueid','INTERVAL_IS_OVERTIME','active','dialQueueProject','[syncHangupInAMDIvr]','dialActive','rescheduleContact','info','uuid','dropreason','progressive','syncHangup','undefined','xcally-motion-dialer','unlockRR','all','countbusyretry','queuecallerabandon','\x20trunk\x20is\x20not\x20reachable','./history','ivrAnswerCallsDay','averageHandleTime','../rpc/voiceQueueRt','\x20Intervals\x20is\x20null\x20','command','available','voice_queue:save','not_inuse','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','outboundQueuePauses','outboundOriginateFailureCallsDay','agents','checkRetriveMax','Umin:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','dialGlobalMaxRetry','BLACKLIST','push','contact\x20is\x20undefine','../preview/util/util','dialTimezone','RESCHEDULED_CONTACTS','true','Dropped\x20Exit:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','[moveContactManagedDialer][0]','[decremetOriginate]\x20object\x20originated\x20is\x20negative','is\x20disactive','launchHandleIvr','pow','abandonmentRate','ivrTotalCallsDays','[syncAgentComplete][createHistory][11]','isEmpty','merge','\x5cw{0,','GLOBAL_INTERVAL_IS_OVERTIME','Contact\x20updated','agent','dialGlobalInterval','format','stateGlobal','campaigns','hangup','[syncAgentComplete][createHistory]','contactsRescheduled','unmonitored','Ts\x20=\x20','voicePause','outboundDropCallsDayACS','RUNNING','ifTime','[unlock3][syncQueueStatusComplete]','temp','predictiveIntervalMinThreshold','[syncQueueSummary]\x20Campaign\x20Queue:\x20','XMD-AMDBETWEENWORDSSILENCE','../rpc/cmHopperBlack','outboundDropCallsDayTimeout','voice:queue:%s','AGENTS_NOT_LOGGED','[syncCampaigns]','[updateOriginated]\x20object\x20originated\x20is\x20negative','\x20Interval\x20is\x20overtime:\x20','util','[originateError]:\x20%s','[syncAgentComplete][createHistory][?]','createStateFinal'];(function(_0x40db6a,_0x49bc6a){const _0x366579=function(_0x449851){while(--_0x449851){_0x40db6a['push'](_0x40db6a['shift']());}};_0x366579(++_0x49bc6a);}(a1056_0x49bc,0x126));const a1056_0x3665=function(_0x40db6a,_0x49bc6a){_0x40db6a=_0x40db6a-0x0;let _0x366579=a1056_0x49bc[_0x40db6a];return _0x366579;};const _0x4b75f8=a1056_0x3665;'use strict';const util=require(_0x4b75f8('0xe7')),_=require(_0x4b75f8('0x207')),uuid=require(_0x4b75f8('0x9d')),moment=require('moment'),rr=require('rr'),md5=require('md5'),ut=require(_0x4b75f8('0xbb')),config=require('../../../config/environment/'),logger=require(_0x4b75f8('0x146'))(_0x4b75f8('0x154')),loggerBooked=require('../../../config/logger')(_0x4b75f8('0x1e5')),loggerPredictive=require(_0x4b75f8('0x146'))(_0x4b75f8('0x1e')),loggerPredictiveCalls=require('../../../config/logger')('predictiveCalls'),loggerSyncQueueSummary=require('../../../config/logger')('syncQueueSummary'),ami=require(_0x4b75f8('0x28')),{getSocket}=require('../../../rediscache'),io=getSocket(),cmHopper=require(_0x4b75f8('0x8d')),cmHopperHistory=require(_0x4b75f8('0x70')),cmHopperBlack=require(_0x4b75f8('0xe0')),voiceQueueRt=require(_0x4b75f8('0xab')),Action=require(_0x4b75f8('0x1b6')),History=require(_0x4b75f8('0xa8')),Final=require(_0x4b75f8('0x14b')),AgentComplete=require(_0x4b75f8('0x1ce')),QueueCallerAbandon=require(_0x4b75f8('0x68')),Hangup=require('./hangup'),{getConfigService}=require(_0x4b75f8('0x157')),strategy={'rrmemory':'rrmemory','roundrobin':'roundrobin'},Sequence=function(){};Sequence[_0x4b75f8('0x170')][_0x4b75f8('0x210')]=function(_0x449851){const _0x1bdf9e=_0x4b75f8;this['tail']=this[_0x1bdf9e('0x137')]?this[_0x1bdf9e('0x137')][_0x1bdf9e('0x159')](_0x449851):_0x449851();};function Dialer(_0x33d3a3,_0x10fc09){const _0xfb7cac=_0x4b75f8;this[_0xfb7cac('0x133')]=new Sequence(),this[_0xfb7cac('0x1fb')]=_0x10fc09,this[_0xfb7cac('0x7b')]=_0x33d3a3['voiceQueues'],this[_0xfb7cac('0xd1')]=_0x33d3a3['campaigns'],this['agents']=_0x33d3a3['agents'],this['trunks']=_0x33d3a3[_0xfb7cac('0x32')],this[_0xfb7cac('0x14f')]=config[_0xfb7cac('0x14f')]||0x2,this[_0xfb7cac('0x47')]={},this[_0xfb7cac('0x87')]={},this[_0xfb7cac('0x158')]={},this[_0xfb7cac('0x78')]={},this[_0xfb7cac('0x1cf')]={},this[_0xfb7cac('0x1b7')]={},this[_0xfb7cac('0x1a5')]={},this[_0xfb7cac('0x36')]={},this[_0xfb7cac('0x54')]={},this[_0xfb7cac('0x69')]={},ami['on'](_0xfb7cac('0x136'),this[_0xfb7cac('0x167')][_0xfb7cac('0x105')](this)),ami['on'](_0xfb7cac('0xa6'),this[_0xfb7cac('0x19f')][_0xfb7cac('0x105')](this)),ami['on'](_0xfb7cac('0x123'),this[_0xfb7cac('0x172')][_0xfb7cac('0x105')](this)),ami['on'](_0xfb7cac('0x120'),this[_0xfb7cac('0x125')][_0xfb7cac('0x105')](this)),ami['on']('custom:queuesummary',this[_0xfb7cac('0x1ec')][_0xfb7cac('0x105')](this)),ami['on'](_0xfb7cac('0xd2'),this['syncHangup'][_0xfb7cac('0x105')](this)),ami['on'](_0xfb7cac('0x182'),this[_0xfb7cac('0x156')][_0xfb7cac('0x105')](this)),ami['on'](_0xfb7cac('0xfa'),this['syncVarSet']['bind'](this)),ami['on'](_0xfb7cac('0x155'),this[_0xfb7cac('0x1a3')][_0xfb7cac('0x105')](this)),ami['on'](_0xfb7cac('0x90'),this['syncQueueStatusComplete'][_0xfb7cac('0x105')](this)),this[_0xfb7cac('0x173')](),this['loopClearZombieChannels']();}function isNotNull(_0x24c804){const _0x2b21cb=_0x4b75f8;return _0x24c804!==null&&!_[_0x2b21cb('0x164')](_0x24c804);}function checkIsLoggedIn(_0xe90e71,_0x1ee355){return function(){const _0xecda6f=a1056_0x3665;if(_0x1ee355<=0x0){_0xe90e71[_0xecda6f('0x183')]=_0xecda6f('0xe3');throw _0xe90e71[_0xecda6f('0x1b')]+_0xecda6f('0x19');}};}function isActive(_0x766c12){return _0x766c12;}function checkIsActive(_0x4dab10,_0x23c5b6){return function(){const _0x3eb938=a1056_0x3665;if(!isActive(_0x23c5b6)){_0x4dab10['message']='NOT_ACTIVE';throw _0x4dab10['name']+_0x3eb938('0x1e8');}};}function checkInterval(_0x26585c){return function(){const _0x86f5d0=a1056_0x3665;if(!isNotNull(_0x26585c[_0x86f5d0('0x142')])){_0x26585c[_0x86f5d0('0x183')]=_0x86f5d0('0x15b');throw _0x26585c['name']+'\x20INTERVAL_IS_NULL';}if(!isNotNull(_0x26585c['Interval']['Intervals'])){_0x26585c[_0x86f5d0('0x183')]=_0x86f5d0('0x15b');throw _0x26585c['name']+_0x86f5d0('0x12b');}if(!isNotNull(_[_0x86f5d0('0xc8')](_0x26585c['Interval'][_0x86f5d0('0x50')]))){_0x26585c['message']=_0x86f5d0('0x15b');throw _0x26585c[_0x86f5d0('0x1b')]+_0x86f5d0('0x12b');}};}function msgResponse(_0x5a21c4,_0x180a8e,_0x1f95e7){return{'action':_0x5a21c4,'response':_0x180a8e,'message':_0x1f95e7,'stack':_0x1f95e7};}function myreject(_0x42e154){return function(_0x4ed5e8){const _0x105450=a1056_0x3665;return _0x42e154(msgResponse(_0x105450('0x18c'),_0x105450('0x8'),JSON['stringify'](_0x4ed5e8)));};}function getSeconds(_0x27e4e5,_0x3c7502){const _0x143404=_0x4b75f8,_0xc72fe0=moment(_0x27e4e5)[_0x143404('0x11c')](0x0),_0x5b9b00=moment(_0x3c7502)[_0x143404('0x11c')](0x0);return _0xc72fe0[_0x143404('0x199')](_0x5b9b00,_0x143404('0x81'));}function emit(_0x23e878,_0x12ba38,_0x5ee5a2){io['to'](_0x23e878)['emit'](_0x12ba38,_0x5ee5a2);}function emitVoiceQueueSummary(_0x16bb56){const _0x3e3f1d=_0x4b75f8;if(_0x16bb56[_0x3e3f1d('0x85')]===_0x3e3f1d('0x4c')){const _0x265c21={'id':_0x16bb56['id'],'name':_0x16bb56[_0x3e3f1d('0x1b')],'strategy':_0x16bb56[_0x3e3f1d('0x18b')],'answered':_0x16bb56[_0x3e3f1d('0x189')],'available':_0x16bb56['available'],'loggedIn':_0x16bb56[_0x3e3f1d('0x19d')],'pTalking':_0x16bb56['pTalking'],'sumBillable':_0x16bb56['sumBillable'],'sumDuration':_0x16bb56[_0x3e3f1d('0x93')],'sumHoldTime':_0x16bb56[_0x3e3f1d('0x1af')]||0x0,'talking':_0x16bb56['talking'],'total':_0x16bb56[_0x3e3f1d('0x8e')],'type':_0x16bb56[_0x3e3f1d('0x85')],'unmanaged':_0x16bb56[_0x3e3f1d('0x1a0')],'abandoned':_0x16bb56[_0x3e3f1d('0x178')],'waiting':_0x16bb56['waiting'],'loggedInDb':_0x16bb56['loggedInDb'],'dialActive':_0x16bb56[_0x3e3f1d('0x9a')],'dialMethod':_0x16bb56['dialMethod'],'dialOriginateCallerIdName':_0x16bb56[_0x3e3f1d('0x121')],'dialOriginateCallerIdNumber':_0x16bb56[_0x3e3f1d('0x67')],'dialOriginateTimeout':_0x16bb56[_0x3e3f1d('0x57')],'dialPrefix':_0x16bb56['dialPrefix'],'outboundAnswerAgiCallsDay':_0x16bb56['outboundAnswerAgiCallsDay'],'outboundAnswerCallsDay':_0x16bb56['outboundAnswerCallsDay'],'outboundBlacklistCallsDay':_0x16bb56[_0x3e3f1d('0x1ae')],'outboundBusyCallsDay':_0x16bb56[_0x3e3f1d('0x42')],'outboundCongestionCallsDay':_0x16bb56['outboundCongestionCallsDay'],'outboundDropCallsDayACS':_0x16bb56[_0x3e3f1d('0xd8')],'outboundDropCallsDayCallersExit':_0x16bb56[_0x3e3f1d('0x185')],'outboundDropCallsDayTimeout':_0x16bb56['outboundDropCallsDayTimeout'],'outboundNoAnswerCallsDay':_0x16bb56[_0x3e3f1d('0x138')],'outboundNoSuchCallsDay':_0x16bb56[_0x3e3f1d('0x1e7')],'outboundOriginateFailureCallsDay':_0x16bb56['outboundOriginateFailureCallsDay'],'outboundReCallsDay':_0x16bb56[_0x3e3f1d('0x7c')],'outboundRejectCallsDay':_0x16bb56['outboundRejectCallsDay'],'outboundUnknownCallsDay':_0x16bb56['outboundUnknownCallsDay'],'predictiveIntervalAnsweredCalls':_0x16bb56[_0x3e3f1d('0x103')],'predictiveIntervalAvgHoldtime':_0x16bb56['predictiveIntervalAvgHoldtime'],'predictiveIntervalAvgTalktime':_0x16bb56[_0x3e3f1d('0x16e')],'predictiveIntervalDroppedCallsCallersExit':_0x16bb56[_0x3e3f1d('0x10f')],'predictiveIntervalDroppedCallsTimeout':_0x16bb56['predictiveIntervalDroppedCallsTimeout'],'predictiveIntervalErlangCalls':_0x16bb56['predictiveIntervalErlangCalls'],'predictiveIntervalErlangCallsDroppedCalls':_0x16bb56[_0x3e3f1d('0x1b9')],'predictiveIntervalHitRate':_0x16bb56[_0x3e3f1d('0x1cb')],'predictiveIntervalMultiplicativeFactor':_0x16bb56[_0x3e3f1d('0x11f')],'predictiveIntervalPauses':_0x16bb56[_0x3e3f1d('0x1cc')],'predictiveIntervalAvailable':_0x16bb56[_0x3e3f1d('0x180')],'predictiveIntervalTotalCalls':_0x16bb56[_0x3e3f1d('0xf1')],'message':_0x16bb56[_0x3e3f1d('0x183')],'originated':_0x16bb56[_0x3e3f1d('0x1dc')],'erlangCalls':_0x16bb56[_0x3e3f1d('0x1e3')],'erlangCallToSecond':_0x16bb56[_0x3e3f1d('0x61')],'erlangAbandonmentRate':_0x16bb56[_0x3e3f1d('0x59')],'erlangBusyFactor':_0x16bb56['erlangBusyFactor'],'startPredictive':_0x16bb56[_0x3e3f1d('0x1b7')],'startProgressive':_0x16bb56[_0x3e3f1d('0x1a5')]};_0x16bb56[_0x3e3f1d('0x101')]&&(_0x265c21[_0x3e3f1d('0x101')]={'id':_0x16bb56[_0x3e3f1d('0x101')]['id'],'name':_0x16bb56[_0x3e3f1d('0x101')][_0x3e3f1d('0x1b')],'active':_0x16bb56[_0x3e3f1d('0x101')][_0x3e3f1d('0x97')],'callerid':_0x16bb56['Trunk']['callerid']});_0x16bb56[_0x3e3f1d('0x142')]&&(_0x265c21[_0x3e3f1d('0x142')]={'id':_0x16bb56['Interval']['id'],'name':_0x16bb56['Interval'][_0x3e3f1d('0x1b')]});const _0x5231c8=md5(JSON['stringify'](_0x265c21));_0x16bb56['md5']!==_0x5231c8&&(_0x16bb56['md5']=_0x5231c8,emit(util[_0x3e3f1d('0xcf')](_0x3e3f1d('0xe2'),_0x265c21['name']),_0x3e3f1d('0xaf'),_0x265c21));}}function emitCampaignSummary(_0x20fb3f){const _0x4f66a8=_0x4b75f8;_0x20fb3f[_0x4f66a8('0x85')]==='ivr'&&emit(util['format'](_0x4f66a8('0x144'),_0x20fb3f['name']),'campaign:save',_0x20fb3f);}function checkGetDataPredictive(_0x1519a0){const _0x5f0faf=_0x4b75f8;if(isNotNull(_0x1519a0)){if(!_[_0x5f0faf('0xc8')](_0x1519a0)){loggerPredictive[_0x5f0faf('0x9c')](_0x5f0faf('0xeb')),loggerPredictive[_0x5f0faf('0x9c')]('Total\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x1519a0[_0x5f0faf('0xf1')]),loggerPredictive[_0x5f0faf('0x9c')](_0x5f0faf('0x1e4'),_0x1519a0[_0x5f0faf('0x103')]),loggerPredictive[_0x5f0faf('0x9c')](_0x5f0faf('0x4f'),_0x1519a0['predictiveIntervalDroppedCallsTimeout']),loggerPredictive[_0x5f0faf('0x9c')](_0x5f0faf('0xbf'),_0x1519a0[_0x5f0faf('0x10f')]),loggerPredictive['info'](_0x5f0faf('0x12c'),_0x1519a0[_0x5f0faf('0x45')]),loggerPredictive[_0x5f0faf('0x9c')](_0x5f0faf('0x20e'),_0x1519a0[_0x5f0faf('0x16e')]),loggerPredictive['info'](_0x5f0faf('0x108'));if(_0x1519a0['predictiveIntervalTotalCalls']>0x0){if(!_[_0x5f0faf('0x164')](_0x1519a0['predictiveIntervalAvgTalktime'])&&_0x1519a0[_0x5f0faf('0x16e')]>0x0)return!![];else loggerPredictive[_0x5f0faf('0x9c')](_0x5f0faf('0x143'));if(!_[_0x5f0faf('0x164')](_0x1519a0[_0x5f0faf('0x45')])&&_0x1519a0['predictiveIntervalAvgHoldtime']>0x0)return!![];else loggerPredictive[_0x5f0faf('0x9c')]('Avg\x20Hold\x20Time\x20is\x20not\x20enough\x20for\x20predictive');}else loggerPredictive['info'](_0x5f0faf('0x15a'));}else loggerPredictive[_0x5f0faf('0x9c')](_0x5f0faf('0x179'));}else loggerPredictive[_0x5f0faf('0x9c')]('History\x20information\x20are\x20empty');return![];}function mergeDataErlangB(_0x4e783a){return function(_0x390bce){const _0x1c3930=a1056_0x3665;loggerPredictive[_0x1c3930('0x9c')](_0x1c3930('0x77')),loggerPredictive[_0x1c3930('0x9c')]('Scheduled\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x390bce[_0x1c3930('0x1e3')]),loggerPredictive[_0x1c3930('0x9c')](_0x1c3930('0xf9'),_0x390bce['erlangCallToSecond']),loggerPredictive[_0x1c3930('0x9c')](_0x1c3930('0xf'),_0x390bce['erlangAbandonmentRate']),loggerPredictive[_0x1c3930('0x9c')]('Agent\x20Busy\x20Factor:\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x390bce['erlangBusyFactor']),loggerPredictive['info'](_0x1c3930('0xf'),_0x390bce[_0x1c3930('0x59')]),loggerPredictive[_0x1c3930('0x9c')](_0x1c3930('0x108')),_[_0x1c3930('0xc9')](_0x4e783a,_0x390bce);};}function getDiff(_0x5e1a13){const _0x4e9851=_0x4b75f8,_0x3b13e8=moment()['milliseconds'](0x0),_0x236f46=moment(_0x5e1a13)[_0x4e9851('0x11c')](0x0);return _0x3b13e8['diff'](_0x236f46,'seconds');}function ifInterval(_0x44911e,_0x68757b){const _0x364510=_0x4b75f8;if(_[_0x364510('0x164')](_0x68757b))return![];return getDiff(_0x68757b)<_0x44911e*0x3c?!![]:![];}function freeVariablesPredictive(_0x4ac811){const _0x1f4d93=_0x4b75f8;isNotNull(_0x4ac811)&&(!_['isUndefined'](_0x4ac811['startProgressive'])&&(_0x4ac811[_0x1f4d93('0x1a5')]=undefined,loggerPredictive['info'](_0x4ac811['name'],'clearing\x20variable\x20start\x20progressive')),!_[_0x1f4d93('0x164')](_0x4ac811['startPredictive'])&&(_0x4ac811[_0x1f4d93('0x1b7')]=undefined,loggerPredictive[_0x1f4d93('0x9c')](_0x4ac811[_0x1f4d93('0x1b')],'clearing\x20variable\x20start\x20predictive')),!_[_0x1f4d93('0x164')](_0x4ac811[_0x1f4d93('0x150')])&&(clearInterval(_0x4ac811[_0x1f4d93('0x150')]),_0x4ac811[_0x1f4d93('0x150')]=undefined,loggerPredictive[_0x1f4d93('0x9c')](_0x4ac811[_0x1f4d93('0x1b')],_0x1f4d93('0x3f'))));}function erlangb(_0x456503,_0x3ea9fc){if(_0x3ea9fc===0x0)return 0x0;let _0x471afa=0x1;for(let _0x5a9d2=0x1;_0x5a9d2<=_0x3ea9fc;_0x5a9d2+=0x1){_0x471afa=0x1+_0x471afa*_0x5a9d2/_0x456503;}return 0x1/_0x471afa;}function isVoiceQueueOutbound(_0x276d28){const _0x2fe213=_0x4b75f8;return _0x276d28===_0x2fe213('0x4c');}function isNotPreview(_0x2e7241){return _0x2e7241!=='preview';}function isCampaignIvr(_0x3fee13){return _0x3fee13==='ivr';}function getCallerId(_0xb7eea5,_0x233786,_0x3af84f){const _0x50dc80=_0x4b75f8;if(!_['isUndefined'](_0x3af84f)&&_0x50dc80('0x7f')===typeof _0x3af84f&&!_[_0x50dc80('0xc8')](_0x3af84f)){if(!_[_0x50dc80('0x164')](_0x233786)&&_0x50dc80('0x7f')===typeof _0x233786&&!_[_0x50dc80('0xc8')](_0x233786))return util['format'](_0x50dc80('0x128'),_0x233786,_0x3af84f);return util[_0x50dc80('0xcf')](_0x50dc80('0x128'),_0x3af84f,_0x3af84f);}if(!_[_0x50dc80('0x164')](_0xb7eea5)&&_0x50dc80('0x7f')===typeof _0xb7eea5&&!_[_0x50dc80('0xc8')](_0xb7eea5))return _0xb7eea5;return _0x50dc80('0xf8');}function loggerCatchQueueSummary(_0x4a77e2,_0x524abb){return function(_0x2996bd){const _0x43272e=a1056_0x3665;freeVariablesPredictive(_0x524abb),emitVoiceQueueSummary(_0x524abb),emitCampaignSummary(_0x524abb),loggerSyncQueueSummary[_0x43272e('0x33')](_0x4a77e2,util[_0x43272e('0x100')](_0x2996bd,{'showHidden':![],'depth':null}));};}function loggerCatchPredictive(_0xbaa945,_0x9900b5){return function(_0xa5fffb){const _0x388b87=a1056_0x3665;loggerPredictive[_0x388b87('0x33')](_0x9900b5[_0x388b87('0x1b')],_0xbaa945),loggerPredictive[_0x388b87('0x33')](_0xa5fffb[_0x388b87('0x135')]),freeVariablesPredictive(_0x9900b5);};}function loggerCatch(_0x171e5f){return function(_0x31e475){const _0x1dce5a=a1056_0x3665;logger[_0x1dce5a('0x33')](_0x171e5f,util[_0x1dce5a('0x100')](_0x31e475,{'showHidden':![],'depth':null}));};}function checkContactEmpty(_0x5e110a){const _0x2c43e9=_0x4b75f8;return _0x5e110a&&!_[_0x2c43e9('0x164')](_0x5e110a)&&_0x5e110a['length']>0x0;}function decremetOriginate(_0x4f42d3){const _0x4f7ddc=_0x4b75f8;!_[_0x4f7ddc('0x164')](_0x4f42d3)&&_0x4f42d3!==null?typeof _0x4f42d3[_0x4f7ddc('0x1dc')]!==_0x4f7ddc('0xa1')&&(_0x4f42d3[_0x4f7ddc('0x1dc')]>0x0?_0x4f42d3[_0x4f7ddc('0x1dc')]-=0x1:logger[_0x4f7ddc('0x33')](_0x4f7ddc('0xc1'))):logger['error'](_0x4f7ddc('0x11b'));}function checkContactLowerLimitOriginate(_0x59a2d4,_0x244005,_0x54b34d){if(_0x244005>_0x54b34d)for(let _0x5d6f62=0x0;_0x5d6f62<_0x244005-_0x54b34d;_0x5d6f62+=0x1){decremetOriginate(_0x59a2d4);}}function loggerGetContactDialer(_0x527398,_0x1232b0,_0x3d353b){return function(_0x4385ac){const _0x17e3f9=a1056_0x3665;checkContactLowerLimitOriginate(_0x1232b0,_0x3d353b,0x0),logger['error'](_0x527398,util[_0x17e3f9('0x100')](_0x4385ac,{'showHidden':![],'depth':null}));};}function sendMessageReschedule(_0x3585fc){return function(_0x22e089){const _0x2791c5=a1056_0x3665;isNotNull(_0x22e089)&&isNotNull(_0x22e089[0x0])&&(_0x22e089[0x0][_0x2791c5('0xd4')]>0x0?(_0x3585fc['message']=_0x2791c5('0xbd'),logger[_0x2791c5('0x9c')](_0x2791c5('0x4e')+_0x3585fc[_0x2791c5('0x1b')],_0x22e089[0x0]['contactsRescheduled'],_0x2791c5('0x3'))):(_0x3585fc[_0x2791c5('0x183')]=_0x2791c5('0x1b8'),logger[_0x2791c5('0x9c')](_0x2791c5('0x1b2')+_0x3585fc[_0x2791c5('0x1b')])));};}function notSendMessagesQueue(_0x40d3a2){const _0x5ac28d=_0x4b75f8;_0x40d3a2[_0x5ac28d('0x48')]&&(freeVariablesPredictive(_0x40d3a2),_0x40d3a2[_0x5ac28d('0x1dc')]===0x0&&_0x40d3a2['talking']===0x0&&_0x40d3a2[_0x5ac28d('0x2f')]===0x0&&(_0x40d3a2[_0x5ac28d('0x17d')]||0x0)===0x0?(_0x40d3a2[_0x5ac28d('0x48')]=![],_0x40d3a2[_0x5ac28d('0xae')]=0x0,_0x40d3a2['message']=_0x5ac28d('0x12'),loggerSyncQueueSummary[_0x5ac28d('0x33')](_0x5ac28d('0xde'),_0x40d3a2[_0x5ac28d('0x1b')],_0x5ac28d('0x1c6'))):(_0x40d3a2[_0x5ac28d('0x183')]='IS_DISACTIVED',loggerSyncQueueSummary['error'](_0x5ac28d('0xde'),_0x40d3a2[_0x5ac28d('0x1b')],'is\x20disactive')),emitVoiceQueueSummary(_0x40d3a2));}function notSendMessagesCampaign(_0x6c8c10){const _0x1820a8=_0x4b75f8;_0x6c8c10[_0x1820a8('0x48')]&&(_0x6c8c10[_0x1820a8('0x1dc')]===0x0?(_0x6c8c10['sendMessageOneNotActive']=![],_0x6c8c10[_0x1820a8('0x183')]=_0x1820a8('0x12'),loggerSyncQueueSummary[_0x1820a8('0x33')](_0x1820a8('0x74'),_0x6c8c10[_0x1820a8('0x1b')],_0x1820a8('0x1c6'))):(_0x6c8c10[_0x1820a8('0x183')]='IS_DISACTIVED',loggerSyncQueueSummary[_0x1820a8('0x33')](_0x1820a8('0x74'),_0x6c8c10[_0x1820a8('0x1b')],_0x1820a8('0xc2'))),emitCampaignSummary(_0x6c8c10));}function createObjHistory(_0x369770,_0x3a4db3,_0xb6e92f,_0x31ecfd,_0x4a57cc){const _0x229f59=_0x4b75f8;_0x369770['message']=_0xb6e92f;const _0x4e9457=new Action(_0x369770,_0x3a4db3),_0x20b1b1=new History(_0x4e9457);return _0x20b1b1[_0x229f59('0x1d4')]=_0x31ecfd,_0x20b1b1[_0x229f59('0x7')]=_0x4a57cc,_0x20b1b1['endtime']=_0x4e9457[_0x229f59('0x6')],_0x20b1b1;}Dialer['prototype']['loopClearZombieChannels']=function(){const _0x49530c=this;setInterval(function(){const _0x458354=a1056_0x3665;_0x49530c[_0x458354('0x64')](_0x49530c['uniqueId'],'[uniqueid]'),_0x49530c[_0x458354('0x64')](_0x49530c[_0x458354('0x87')],_0x458354('0xf7'));},0x32c8);},Dialer[_0x4b75f8('0x170')][_0x4b75f8('0x64')]=function(_0x424808,_0xc7841){const _0x138c9d=_0x4b75f8,_0x2513bc=this;for(const _0x54ec17 in _0x424808){typeof _0x424808[_0x54ec17]!==_0x138c9d('0xa1')&&this[_0x138c9d('0x133')][_0x138c9d('0x210')](function(){const _0x2f815c=_0x138c9d;if(!_['isNil'](_0x424808[_0x54ec17]))return ami[_0x2f815c('0x109')]({'action':_0x2f815c('0x1e1'),'channel':_0x424808[_0x54ec17]['channel']})[_0x2f815c('0x12e')](function(_0x12f4ea){const _0x283a32=_0x2f815c;_0x12f4ea[_0x283a32('0x183')]==='No\x20such\x20channel'&&setTimeout(function(){const _0x26a5e9=_0x283a32;_0x424808[_0x54ec17]&&_0x424808[_0x54ec17][_0x26a5e9('0x85')]!==_0x26a5e9('0x208')&&(_0x2513bc[_0x26a5e9('0x39')](_0x2513bc[_0x26a5e9('0x7b')][_0x424808[_0x54ec17]['queue']]),logger[_0x26a5e9('0x33')](_0x26a5e9('0x1f5'),_0xc7841,_0x54ec17,_0x424808[_0x54ec17][_0x26a5e9('0x13a')]),delete _0x424808[_0x54ec17]),_0x424808[_0x54ec17]&&_0x424808[_0x54ec17][_0x26a5e9('0x85')]===_0x26a5e9('0x208')&&(_0x2513bc['updateOriginated'](_0x2513bc[_0x26a5e9('0xd1')][_0x424808[_0x54ec17]['queue']]),logger[_0x26a5e9('0x33')]('[Dialer][checkChannel][ivr]',_0xc7841,_0x54ec17,_0x424808[_0x54ec17]['queue']),delete _0x424808[_0x54ec17]);},0x2328);});});}},Dialer[_0x4b75f8('0x170')]['countReScheduled']=function(_0x2b557e){const _0x380191=_0x4b75f8;return Promise[_0x380191('0x16c')]()[_0x380191('0x152')](cmHopper['countReScheduled'](_0x2b557e))[_0x380191('0x12e')](loggerCatch('[countReScheduled]\x20'));},Dialer[_0x4b75f8('0x170')][_0x4b75f8('0x1da')]=function(_0x405440){const _0x4bcd31=_0x4b75f8;return Promise[_0x4bcd31('0x16c')]()[_0x4bcd31('0x152')](cmHopperBlack[_0x4bcd31('0x1da')](_0x405440))[_0x4bcd31('0x12e')](loggerCatch(_0x4bcd31('0x41')));},Dialer['prototype'][_0x4b75f8('0x15')]=function(_0x43eb25){const _0x107383=_0x4b75f8;return Promise[_0x107383('0x16c')]()['then'](cmHopperBlack[_0x107383('0x15')](_0x43eb25))[_0x107383('0x12e')](loggerCatch(_0x107383('0x46')));},Dialer['prototype'][_0x4b75f8('0xaa')]=function(_0x2a963b){const _0xc055fa=_0x4b75f8;return Promise['resolve']()[_0xc055fa('0x152')](cmHopperHistory[_0xc055fa('0x2b')](_0x2a963b))['catch'](loggerCatch(_0xc055fa('0x1f9')));},Dialer[_0x4b75f8('0x170')][_0x4b75f8('0x9b')]=function(_0x47d237){const _0x3d1ad8=_0x4b75f8;return Promise[_0x3d1ad8('0x16c')]()[_0x3d1ad8('0x152')](cmHopper['rescheduleContact'](_0x47d237))[_0x3d1ad8('0x12e')](loggerCatch(_0x3d1ad8('0x3d')));},Dialer[_0x4b75f8('0x170')]['unlockContact']=function(_0x42786c,_0x246083,_0x15a126){const _0x55bc02=_0x4b75f8;return Promise[_0x55bc02('0x16c')]()['then'](cmHopper[_0x55bc02('0x12d')](_0x42786c,_0x246083,_0x15a126))[_0x55bc02('0x12e')](loggerCatch(_0x55bc02('0xfb')));},Dialer[_0x4b75f8('0x170')][_0x4b75f8('0x11e')]=function(_0x2ac5a2,_0x2238dc,_0x4c973a,_0x43c092){const _0x55b3e8=_0x4b75f8;return Promise['resolve']()[_0x55b3e8('0x152')](cmHopper[_0x55b3e8('0x11e')](_0x2ac5a2,_0x2238dc,_0x4c973a,_0x43c092))['catch'](loggerCatch(_0x55b3e8('0x75')));},Dialer[_0x4b75f8('0x170')][_0x4b75f8('0x119')]=function(_0x5e99a1,_0x19e617,_0x199b7f){const _0x366434=_0x4b75f8;return Promise[_0x366434('0x16c')]()[_0x366434('0x152')](cmHopper['getContactDialerIvr'](_0x5e99a1,_0x19e617,_0x199b7f))['catch'](loggerCatch(_0x366434('0x75')));},Dialer[_0x4b75f8('0x170')]['getVoiceQueueRtPauses']=function(_0x442548){const _0xae8968=_0x4b75f8;return Promise['resolve']()[_0xae8968('0x152')](voiceQueueRt[_0xae8968('0x1')](_0x442548))[_0xae8968('0x12e')](loggerCatch(_0xae8968('0xfe')));},Dialer[_0x4b75f8('0x170')][_0x4b75f8('0x1a2')]=function(_0x4004b3){const _0x33dbcd=_0x4b75f8;return Promise[_0x33dbcd('0x16c')]()[_0x33dbcd('0x152')](cmHopper['moveContactManagedDialer'](_0x4004b3))['catch'](loggerCatch(_0x33dbcd('0x197')));},Dialer[_0x4b75f8('0x170')]['createHistory']=function(_0x1e6093){const _0x59db15=_0x4b75f8;return Promise[_0x59db15('0x16c')]()[_0x59db15('0x152')](cmHopperHistory[_0x59db15('0x193')](_0x1e6093))['catch'](loggerCatch('[createHistory]\x20'));},Dialer[_0x4b75f8('0x170')][_0x4b75f8('0x39')]=function(_0x3166a7){const _0x439fba=_0x4b75f8;!_[_0x439fba('0x164')](_0x3166a7)&&_0x3166a7!==null?typeof _0x3166a7[_0x439fba('0x1dc')]!=='undefined'&&(_0x3166a7[_0x439fba('0x1dc')]>0x0?_0x3166a7['originated']-=0x1:logger[_0x439fba('0x33')](_0x439fba('0xe5'))):logger[_0x439fba('0x33')](_0x439fba('0x6e'));},Dialer[_0x4b75f8('0x170')][_0x4b75f8('0x1c2')]=function(_0x216d7c,_0xed9f6d){const _0x4c3af1=this;return function(_0x669d22){const _0x4bc8c7=a1056_0x3665;_0x4c3af1[_0x4bc8c7('0x39')](_0xed9f6d),logger['error'](_0x216d7c,util[_0x4bc8c7('0x100')](_0x669d22,{'showHidden':![],'depth':null}));};},Dialer[_0x4b75f8('0x170')][_0x4b75f8('0x18a')]=function(_0x475262,_0x343d8f,_0x485e64){const _0xc23e63=_0x4b75f8,_0x438f27={'state':0x19,'statedesc':_0xc23e63('0x147')};this[_0xc23e63('0x39')](_0x343d8f),this['saveInDb'](_['merge'](_0x438f27,_[_0xc23e63('0x2a')](_0x485e64,[_0xc23e63('0x13'),_0xc23e63('0x1e2'),_0xc23e63('0x1c4'),_0xc23e63('0x205'),_0xc23e63('0x1e6')])),'[emptyContact][createHistory]','[emptyContact]'),logger['error'](_0x475262);},Dialer[_0x4b75f8('0x170')][_0x4b75f8('0x13f')]=function(_0x5106dc){const _0x1e046e=_0x4b75f8;return _0x5106dc===_0x1e046e('0xfd');},Dialer['prototype'][_0x4b75f8('0x196')]=function(_0x9a00d2){const _0x5dd79e=_0x4b75f8;return!_['isUndefined'](_0x9a00d2)&&_0x9a00d2&&!_[_0x5dd79e('0x164')](_0x9a00d2[_0x5dd79e('0x1b')])&&!_[_0x5dd79e('0x164')](_0x9a00d2[_0x5dd79e('0x97')])&&_0x9a00d2[_0x5dd79e('0x97')]&&(this[_0x5dd79e('0x32')][util['format'](_0x5dd79e('0x5f'),_0x9a00d2['name'])][_0x5dd79e('0x1e1')]===_0x5dd79e('0x16a')||this[_0x5dd79e('0x32')][util[_0x5dd79e('0xcf')]('SIP/%s',_0x9a00d2[_0x5dd79e('0x1b')])][_0x5dd79e('0x1e1')]===_0x5dd79e('0xd5'));},Dialer['prototype'][_0x4b75f8('0x40')]=function(_0x27ee39,_0x4f86e8,_0x4eba73){const _0x3628ca=_0x4b75f8;this[_0x3628ca('0x193')](_0x27ee39)[_0x3628ca('0x12e')](loggerCatch(_0x4f86e8)),this[_0x3628ca('0x1a2')](_0x27ee39)['catch'](loggerCatch(_0x4eba73));},Dialer[_0x4b75f8('0x170')][_0x4b75f8('0x16d')]=function(_0x10e5e0){const _0x49828f=_0x4b75f8,_0x1f8b70=this[_0x49828f('0x78')][_0x10e5e0['uniqueid']];let _0x291891;if(!_[_0x49828f('0xa')](_0x10e5e0)&&!_[_0x49828f('0xa')](_0x10e5e0['variable'])&&!_['isNil'](_0x10e5e0[_0x49828f('0x203')][_0x49828f('0x11a')])&&_0x10e5e0['exten']===_0x49828f('0xa2')&&_0x1f8b70){_0x1f8b70[_0x49828f('0x85')]!==_0x49828f('0x208')&&this[_0x49828f('0x7b')][_0x1f8b70[_0x49828f('0x13a')]]['dialAMDActive']&&_0x10e5e0[_0x49828f('0x20f')]===_0x49828f('0x17')&&(delete this[_0x49828f('0x78')][_0x10e5e0['uniqueid']],this[_0x49828f('0x39')](this['voiceQueues'][_0x1f8b70['queue']]),this[_0x49828f('0x7b')][_0x1f8b70[_0x49828f('0x13a')]]['outboundAnswerCallsDay']+=0x1,this[_0x49828f('0x7b')][_0x1f8b70['queue']]['outboundAnswerAgiCallsDay']+=0x1,_0x291891=new Hangup(_0x1f8b70,_0x10e5e0),_0x291891['state']=0x12,_0x291891[_0x49828f('0x7')]=_0x49828f('0x1aa'),_0x291891[_0x49828f('0x204')]=_0x49828f('0x200'),this['saveInDb'](_0x291891,_0x49828f('0x35'),_0x49828f('0x1bc')));if(_0x1f8b70[_0x49828f('0x85')]!=='ivr'&&this[_0x49828f('0x7b')][_0x1f8b70[_0x49828f('0x13a')]]['dialAMDActive']&&_0x10e5e0[_0x49828f('0x20f')]==='MACHINE'){const _0x2432a5=this;return new Promise(function(_0x2dead0,_0x59075a){const _0x211730=_0x49828f;delete _0x2432a5['uniqueId'][_0x10e5e0[_0x211730('0x95')]],_0x2432a5['updateOriginated'](_0x2432a5[_0x211730('0x7b')][_0x1f8b70[_0x211730('0x13a')]]),_0x2432a5['voiceQueues'][_0x1f8b70['queue']][_0x211730('0x55')]+=0x1,_0x2432a5['voiceQueues'][_0x1f8b70[_0x211730('0x13a')]][_0x211730('0x44')]+=0x1;const _0x1b9bf5=_0x2432a5[_0x211730('0x7b')][_0x1f8b70[_0x211730('0x13a')]],_0x1e2c64=new Hangup(_0x1f8b70,_0x10e5e0);_0x1e2c64['state']=0x13,_0x1e2c64[_0x211730('0x7')]=_0x211730('0x1eb'),_0x1e2c64[_0x211730('0x204')]='AMD',_0x1e2c64[_0x211730('0x1fc')]+=0x1,_0x1e2c64[_0x211730('0x1b4')]+=0x1,_0x1e2c64['amd']=!![],_0x2432a5['createHistory'](_0x1e2c64)[_0x211730('0x12e')](loggerCatch('[syncAgentComplete][createHistory][0]')),_0x1e2c64['countbusyretry']+_0x1e2c64['countcongestionretry']+_0x1e2c64['countnoanswerretry']+_0x1e2c64[_0x211730('0x12f')]+_0x1e2c64[_0x211730('0x1b0')]+_0x1e2c64[_0x211730('0x66')]+_0x1e2c64[_0x211730('0x1fc')]+_0x1e2c64[_0x211730('0x1ac')]>=_0x1b9bf5[_0x211730('0xb7')]?_0x2432a5[_0x211730('0xd0')](_0x1e2c64,_0x2dead0,_0x59075a,_0x211730('0x43')):_0x1e2c64[_0x211730('0x1fc')]>=_0x1b9bf5[_0x211730('0x72')]?_0x2432a5[_0x211730('0xea')](_0x1e2c64,_0x2dead0,_0x59075a,_0x211730('0x5c')):(_0x2432a5[_0x211730('0x9b')]({'active':![],'countmachineretry':_0x1e2c64[_0x211730('0x1fc')],'scheduledat':moment()[_0x211730('0x13e')](_0x1b9bf5[_0x211730('0x1c5')],_0x211730('0x13b'))[_0x211730('0xcf')](_0x211730('0x38')),'ContactId':_0x1e2c64[_0x211730('0x13')],'ListId':_0x1e2c64['ListId'],'VoiceQueueId':_0x1e2c64['VoiceQueueId']||undefined,'CampaignId':_0x1e2c64[_0x211730('0x1e6')]||undefined})['catch'](loggerCatch('[rescheduleContact][Machine]')),_0x2dead0({'reschedule':0x1}));});}_0x1f8b70[_0x49828f('0x85')]==='ivr'&&this[_0x49828f('0xd1')][_0x1f8b70[_0x49828f('0x13a')]][_0x49828f('0x6f')]&&_0x10e5e0[_0x49828f('0x20f')]==='HANGUP'&&(delete this[_0x49828f('0x78')][_0x10e5e0[_0x49828f('0x95')]],this[_0x49828f('0x39')](this[_0x49828f('0xd1')][_0x1f8b70[_0x49828f('0x13a')]]),_0x291891=new Hangup(_0x1f8b70,_0x10e5e0),_0x291891['state']=0x12,_0x291891[_0x49828f('0x7')]=_0x49828f('0x1aa'),_0x291891[_0x49828f('0x204')]=_0x49828f('0x200'),this['saveInDb'](_0x291891,_0x49828f('0x7a'),_0x49828f('0x99')));if(_0x1f8b70[_0x49828f('0x85')]===_0x49828f('0x208')&&this[_0x49828f('0xd1')][_0x1f8b70['queue']][_0x49828f('0x6f')]&&_0x10e5e0[_0x49828f('0x20f')]===_0x49828f('0x129')){const _0x1b2b6e=this;return new Promise(function(_0x5177d3,_0x46bb63){const _0x4ea3e8=_0x49828f;delete _0x1b2b6e['uniqueId'][_0x10e5e0[_0x4ea3e8('0x95')]],_0x1b2b6e[_0x4ea3e8('0x39')](_0x1b2b6e['campaigns'][_0x1f8b70[_0x4ea3e8('0x13a')]]),_0x1b2b6e[_0x4ea3e8('0xd1')][_0x1f8b70[_0x4ea3e8('0x13a')]][_0x4ea3e8('0x55')]+=0x1,_0x1b2b6e['campaigns'][_0x1f8b70[_0x4ea3e8('0x13a')]][_0x4ea3e8('0x44')]+=0x1;const _0x22b180=_0x1b2b6e[_0x4ea3e8('0xd1')][_0x1f8b70[_0x4ea3e8('0x13a')]],_0x4eaa84=new Hangup(_0x1f8b70,_0x10e5e0);_0x4eaa84['state']=0x13,_0x4eaa84['statedesc']='Machine',_0x4eaa84[_0x4ea3e8('0x204')]=_0x4ea3e8('0x200'),_0x4eaa84[_0x4ea3e8('0x1fc')]+=0x1,_0x4eaa84[_0x4ea3e8('0x1b4')]+=0x1,_0x4eaa84['amd']=!![],_0x1b2b6e[_0x4ea3e8('0x193')](_0x4eaa84)[_0x4ea3e8('0x12e')](loggerCatch('[syncAgentComplete][createHistory][0]')),_0x4eaa84[_0x4ea3e8('0xa5')]+_0x4eaa84['countcongestionretry']+_0x4eaa84[_0x4ea3e8('0x3a')]+_0x4eaa84['countnosuchnumberretry']+_0x4eaa84[_0x4ea3e8('0x1b0')]+_0x4eaa84[_0x4ea3e8('0x66')]+_0x4eaa84[_0x4ea3e8('0x1fc')]+_0x4eaa84[_0x4ea3e8('0x1ac')]>=_0x22b180[_0x4ea3e8('0xb7')]?_0x1b2b6e[_0x4ea3e8('0xd0')](_0x4eaa84,_0x5177d3,_0x46bb63,'reason19\x20machine....'):_0x4eaa84['countmachineretry']>=_0x22b180['dialMachineMaxRetry']?_0x1b2b6e[_0x4ea3e8('0xea')](_0x4eaa84,_0x5177d3,_0x46bb63,_0x4ea3e8('0x5c')):(_0x1b2b6e['rescheduleContact']({'active':![],'countmachineretry':_0x4eaa84['countmachineretry'],'scheduledat':moment()[_0x4ea3e8('0x13e')](_0x22b180[_0x4ea3e8('0x1c5')],_0x4ea3e8('0x13b'))[_0x4ea3e8('0xcf')](_0x4ea3e8('0x38')),'ContactId':_0x4eaa84['ContactId'],'ListId':_0x4eaa84[_0x4ea3e8('0x1e2')],'VoiceQueueId':_0x4eaa84[_0x4ea3e8('0x205')]||undefined,'CampaignId':_0x4eaa84[_0x4ea3e8('0x1e6')]||undefined})[_0x4ea3e8('0x12e')](loggerCatch('[rescheduleContact][Machine]')),_0x5177d3({'reschedule':0x1}));});}}},Dialer['prototype'][_0x4b75f8('0xa0')]=function(_0x5f5c28){const _0xd6b482=_0x4b75f8,_0x3cb4aa=this[_0xd6b482('0x78')][_0x5f5c28[_0xd6b482('0x95')]];let _0x4d01a0;_0x3cb4aa&&_0x3cb4aa[_0xd6b482('0x85')]===_0xd6b482('0x208')&&(delete this[_0xd6b482('0x78')][_0x5f5c28[_0xd6b482('0x95')]],this[_0xd6b482('0x39')](this['campaigns'][_0x3cb4aa['queue']]),this[_0xd6b482('0xd1')][_0x3cb4aa[_0xd6b482('0x13a')]][_0xd6b482('0xa9')]+=0x1,_0x4d01a0=new Hangup(_0x3cb4aa,_0x5f5c28),this[_0xd6b482('0x193')](_0x4d01a0)[_0xd6b482('0x12e')](loggerCatch(_0xd6b482('0x190'))),this[_0xd6b482('0x1a2')](_0x4d01a0)[_0xd6b482('0x12e')](loggerCatch(_0xd6b482('0x187')))),_0x3cb4aa&&_0x3cb4aa['type']!==_0xd6b482('0x208')&&isNotNull(this['voiceQueues'][_0x3cb4aa[_0xd6b482('0x13a')]]['dialQueueProject'])&&(delete this[_0xd6b482('0x78')][_0x5f5c28['uniqueid']],this[_0xd6b482('0x39')](this[_0xd6b482('0x7b')][_0x3cb4aa[_0xd6b482('0x13a')]]),this[_0xd6b482('0x7b')][_0x3cb4aa[_0xd6b482('0x13a')]]['outboundAnswerCallsDay']+=0x1,this['voiceQueues'][_0x3cb4aa[_0xd6b482('0x13a')]][_0xd6b482('0x44')]+=0x1,_0x4d01a0=new Hangup(_0x3cb4aa,_0x5f5c28),_0x4d01a0[_0xd6b482('0x1d4')]=0x10,_0x4d01a0[_0xd6b482('0x7')]=_0xd6b482('0x1f'),_0x4d01a0[_0xd6b482('0x204')]=_0xd6b482('0x5e'),this[_0xd6b482('0x193')](_0x4d01a0)[_0xd6b482('0x12e')](loggerCatch(_0xd6b482('0x190'))),this['moveContactManagedDialer'](_0x4d01a0)[_0xd6b482('0x12e')](loggerCatch(_0xd6b482('0x187')))),_0x3cb4aa&&_0x3cb4aa[_0xd6b482('0x85')]!==_0xd6b482('0x208')&&!isNotNull(this[_0xd6b482('0x7b')][_0x3cb4aa[_0xd6b482('0x13a')]]['dialQueueProject'])&&(delete this[_0xd6b482('0x78')][_0x5f5c28['uniqueid']],this['updateOriginated'](this[_0xd6b482('0x7b')][_0x3cb4aa['queue']]),this[_0xd6b482('0x7b')][_0x3cb4aa[_0xd6b482('0x13a')]]['outboundUnknownCallsDay']+=0x1,_0x4d01a0=new Hangup(_0x3cb4aa,_0x5f5c28),_0x4d01a0[_0xd6b482('0x1d4')]=0xc,_0x4d01a0[_0xd6b482('0x7')]=_0x5f5c28[_0xd6b482('0x16f')],_0x4d01a0[_0xd6b482('0x204')]=_0xd6b482('0x1f4'),this['createHistory'](_0x4d01a0)[_0xd6b482('0x12e')](loggerCatch(_0xd6b482('0x190'))),this[_0xd6b482('0x1a2')](_0x4d01a0)[_0xd6b482('0x12e')](loggerCatch(_0xd6b482('0x187'))));},Dialer['prototype'][_0x4b75f8('0x125')]=function(_0x22457d){const _0x59cfed=_0x4b75f8,_0x33f152=this['uniqueId'][_0x22457d['uniqueid']];if(this[_0x59cfed('0x7b')][_0x22457d[_0x59cfed('0x13a')]]){if(_0x33f152&&_0x33f152[_0x59cfed('0x85')]!==_0x59cfed('0x208')){delete this['uniqueId'][_0x22457d[_0x59cfed('0x95')]],this[_0x59cfed('0x7b')][_0x22457d[_0x59cfed('0x13a')]][_0x59cfed('0x55')]+=0x1;const _0x4e5bd5=new AgentComplete(_0x33f152,_0x22457d);_0x22457d['reason']===_0x59cfed('0xcd')&&(_0x4e5bd5[_0x59cfed('0x1d7')]=this['voiceQueues'][_0x22457d[_0x59cfed('0x13a')]]['dialQueueProject2']&&this['voiceQueues'][_0x22457d[_0x59cfed('0x13a')]][_0x59cfed('0x2e')]?moment()['format'](_0x59cfed('0x38')):undefined),this[_0x59cfed('0x193')](_0x4e5bd5)[_0x59cfed('0x12e')](loggerCatch(_0x59cfed('0xd3'))),this[_0x59cfed('0x1a2')](_0x4e5bd5)['catch'](loggerCatch(_0x59cfed('0x1f1')));}}},Dialer['prototype'][_0x4b75f8('0x167')]=function(_0x118048){const _0x3e9151=_0x4b75f8;this[_0x3e9151('0x7b')][_0x118048['queue']]&&(this[_0x3e9151('0x78')][_0x118048[_0x3e9151('0x95')]]&&this['uniqueId'][_0x118048[_0x3e9151('0x95')]][_0x3e9151('0x85')]!==_0x3e9151('0x208')&&(this[_0x3e9151('0x39')](this[_0x3e9151('0x7b')][_0x118048[_0x3e9151('0x13a')]]),this['uniqueId'][_0x118048[_0x3e9151('0x95')]][_0x3e9151('0x17a')]=moment()[_0x3e9151('0xcf')](_0x3e9151('0x38'))));},Dialer['prototype'][_0x4b75f8('0x1ab')]=function(_0x904c11){const _0x47c7ca=_0x4b75f8;this['createHistory'](_0x904c11)[_0x47c7ca('0x12e')](loggerCatch('[syncAgentComplete][createHistory]')),this[_0x47c7ca('0x1a2')](_0x904c11)[_0x47c7ca('0x12e')](loggerCatch('[syncQueueCallerAbandon]\x20[Drop]'));},Dialer[_0x4b75f8('0x170')][_0x4b75f8('0x19f')]=function(_0xdfafdd){const _0x272524=_0x4b75f8,_0x4cdb2e=this['uniqueId'][_0xdfafdd[_0x272524('0x95')]];if(this[_0x272524('0x7b')][_0xdfafdd[_0x272524('0x13a')]]){if(_0x4cdb2e&&_0x4cdb2e[_0x272524('0x85')]!=='ivr'){delete this['uniqueId'][_0xdfafdd['uniqueid']],this['updateOriginated'](this['voiceQueues'][_0xdfafdd['queue']]),_0x4cdb2e[_0x272524('0x1d')]=moment()['format'](_0x272524('0x38'));const _0x5d1b9c=new QueueCallerAbandon(_0x4cdb2e,_0xdfafdd);if(getSeconds(_0x4cdb2e[_0x272524('0x1d')],_0x4cdb2e[_0x272524('0x14d')])>=_0x4cdb2e['dialQueueTimeout']){this[_0x272524('0x7b')][_0xdfafdd[_0x272524('0x13a')]][_0x272524('0x1df')]+=0x1,this[_0x272524('0x7b')][_0xdfafdd[_0x272524('0x13a')]][_0x272524('0xe1')]+=0x1,this['voiceQueues'][_0xdfafdd['queue']]['predictiveIntervalErlangCallsDroppedCalls']+=0x1,_0x5d1b9c[_0x272524('0x1d4')]=0xa,_0x5d1b9c[_0x272524('0x7')]='Drop',_0x5d1b9c[_0x272524('0x9e')]=_0x272524('0x10'),_0x5d1b9c['agiafterat']=this[_0x272524('0x7b')][_0xdfafdd[_0x272524('0x13a')]][_0x272524('0x56')]?moment()[_0x272524('0xcf')](_0x272524('0x38')):undefined,_0x5d1b9c[_0x272524('0x1b0')]+=0x1,_0x5d1b9c[_0x272524('0x1b4')]+=0x1;if(_0x5d1b9c['countdropretry']>=this[_0x272524('0x7b')][_0xdfafdd[_0x272524('0x13a')]][_0x272524('0x60')])this[_0x272524('0x1ab')](_0x5d1b9c);else{this['rescheduleContact']({'active':![],'countdropretry':_0x5d1b9c[_0x272524('0x1b0')],'scheduledat':moment()[_0x272524('0x13e')](this['voiceQueues'][_0xdfafdd['queue']]['dialDropRetryFrequency'],_0x272524('0x13b'))['format'](_0x272524('0x38')),'ContactId':_0x4cdb2e[_0x272524('0x13')],'ListId':_0x4cdb2e[_0x272524('0x1e2')],'VoiceQueueId':_0x4cdb2e[_0x272524('0x205')]||undefined,'CampaignId':_0x4cdb2e[_0x272524('0x1e6')]||undefined})[_0x272524('0x12e')](loggerCatch(_0x272524('0x20')));const _0x2ae0b4=new History(_0x5d1b9c);_0x2ae0b4[_0x272524('0x1d4')]=0xa,_0x2ae0b4['statedesc']=_0x272524('0x10e'),_0x2ae0b4[_0x272524('0x6')]=moment()['format'](_0x272524('0x38')),_0x2ae0b4[_0x272524('0x18')]=_0x2ae0b4['starttime'],_0x2ae0b4[_0x272524('0x17c')]=_0x5d1b9c[_0x272524('0x17c')],_0x2ae0b4[_0x272524('0xe')]=_0x5d1b9c[_0x272524('0xe')],this[_0x272524('0x193')](_0x2ae0b4)[_0x272524('0x12e')](loggerCatch('[syncAgentComplete][createHistory][10]'));}}else{this[_0x272524('0x7b')][_0xdfafdd[_0x272524('0x13a')]]['predictiveIntervalDroppedCallsCallersExit']+=0x1,this[_0x272524('0x7b')][_0xdfafdd[_0x272524('0x13a')]][_0x272524('0x185')]+=0x1,_0x5d1b9c['state']=0xb,_0x5d1b9c[_0x272524('0x7')]=_0x272524('0x1f6'),_0x5d1b9c[_0x272524('0x9e')]='CALLEREXIT',_0x5d1b9c[_0x272524('0x66')]+=0x1,_0x5d1b9c[_0x272524('0x1b4')]+=0x1;if(_0x5d1b9c[_0x272524('0x66')]>=this[_0x272524('0x7b')][_0xdfafdd['queue']][_0x272524('0x84')])this[_0x272524('0x1ab')](_0x5d1b9c);else{this['rescheduleContact']({'active':![],'countabandonedretry':_0x5d1b9c['countabandonedretry'],'scheduledat':moment()[_0x272524('0x13e')](this[_0x272524('0x7b')][_0xdfafdd['queue']][_0x272524('0x1ea')],_0x272524('0x13b'))[_0x272524('0xcf')]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x4cdb2e['ContactId'],'ListId':_0x4cdb2e[_0x272524('0x1e2')],'VoiceQueueId':_0x4cdb2e[_0x272524('0x205')]||undefined,'CampaignId':_0x4cdb2e[_0x272524('0x1e6')]||undefined})[_0x272524('0x12e')](loggerCatch(_0x272524('0x1d1')));const _0x269402=new History(_0x5d1b9c);_0x269402[_0x272524('0x1d4')]=0xb,_0x269402[_0x272524('0x7')]=_0x272524('0x1f6'),_0x269402[_0x272524('0x6')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),_0x269402[_0x272524('0x18')]=_0x269402['starttime'],_0x269402[_0x272524('0x17c')]=_0x5d1b9c[_0x272524('0x17c')],_0x269402['calleridnum']=_0x5d1b9c['calleridnum'],this['createHistory'](_0x269402)[_0x272524('0x12e')](loggerCatch(_0x272524('0xc7')));}}}}},Dialer[_0x4b75f8('0x170')][_0x4b75f8('0x156')]=function(_0x489a96){const _0x571b60=_0x4b75f8;this[_0x571b60('0x87')][_0x489a96[_0x571b60('0x95')]]&&(this[_0x571b60('0x87')][_0x489a96[_0x571b60('0x95')]][_0x571b60('0x62')]=_0x489a96[_0x571b60('0x62')]),this[_0x571b60('0x78')][_0x489a96[_0x571b60('0x95')]]&&(this[_0x571b60('0x78')][_0x489a96[_0x571b60('0x95')]][_0x571b60('0x62')]=_0x489a96[_0x571b60('0x62')]);},Dialer['prototype'][_0x4b75f8('0x1a3')]=function(_0x5e92bf){const _0x1c48dd=_0x4b75f8;if(strategy[this['voiceQueues'][this[_0x1c48dd('0x87')][_0x5e92bf[_0x1c48dd('0x111')]]['queue']][_0x1c48dd('0x18b')]]===_0x1c48dd('0x122'))this['actions'][_0x5e92bf[_0x1c48dd('0x111')]]&&_[_0x1c48dd('0xa')](this[_0x1c48dd('0x87')][_0x5e92bf['actionid']][_0x1c48dd('0x10a')])&&_0x5e92bf[_0x1c48dd('0x1e1')]==='1'&&_0x5e92bf[_0x1c48dd('0x52')]==='0'&&(this[_0x1c48dd('0xb4')][_0x5e92bf[_0x1c48dd('0xff')]]&&(!this[_0x1c48dd('0xb4')][_0x5e92bf['stateinterface']][_0x1c48dd('0x10a')]&&(this[_0x1c48dd('0xb4')][_0x5e92bf[_0x1c48dd('0xff')]][_0x1c48dd('0x10a')]=!![],this['actions'][_0x5e92bf[_0x1c48dd('0x111')]][_0x1c48dd('0x10a')]=!![],this['actions'][_0x5e92bf[_0x1c48dd('0x111')]][_0x1c48dd('0xff')]=_0x5e92bf[_0x1c48dd('0xff')])));else(strategy[this[_0x1c48dd('0x7b')][this['actions'][_0x5e92bf['actionid']]['queue']][_0x1c48dd('0x18b')]]||_0x1c48dd('0x1a7'))===_0x1c48dd('0x1a7')&&(this[_0x1c48dd('0x87')][_0x5e92bf[_0x1c48dd('0x111')]]&&(this[_0x1c48dd('0xb4')][_0x5e92bf[_0x1c48dd('0xff')]]&&(this['actions'][_0x5e92bf[_0x1c48dd('0x111')]]['stateinterface']=_0x5e92bf[_0x1c48dd('0xff')],_['isNil'](this[_0x1c48dd('0x54')][this[_0x1c48dd('0x87')][_0x5e92bf[_0x1c48dd('0x111')]][_0x1c48dd('0x13a')]])&&(this['queueBooked'][this['actions'][_0x5e92bf[_0x1c48dd('0x111')]][_0x1c48dd('0x13a')]]=[]),this[_0x1c48dd('0x54')][this[_0x1c48dd('0x87')][_0x5e92bf[_0x1c48dd('0x111')]][_0x1c48dd('0x13a')]][_0x1c48dd('0xb9')](_[_0x1c48dd('0xc9')](_[_0x1c48dd('0x2a')](this[_0x1c48dd('0x87')][_0x5e92bf[_0x1c48dd('0x111')]],[_0x1c48dd('0x1fa'),'stateinterface']),{'status':_0x5e92bf[_0x1c48dd('0x1e1')],'paused':_0x5e92bf[_0x1c48dd('0x52')]})))));};function unlockQueueStatus(_0x55dfcc,_0x308ba0){setTimeout(function(){const _0x65d83e=a1056_0x3665;_[_0x65d83e('0x164')](_0x55dfcc[_0x65d83e('0x8c')])&&loggerBooked[_0x65d83e('0x33')](_0x65d83e('0x6d'),_0x308ba0),_0x55dfcc['queueStatusComplete']=!![],loggerBooked[_0x65d83e('0x9c')]('[booked][unlockQueueStatus]',_0x308ba0,JSON[_0x65d83e('0x1bf')](_[_0x65d83e('0x2a')](_0x55dfcc,[_0x65d83e('0x1b'),'queueStatusComplete'])));},0x1f3);}Dialer[_0x4b75f8('0x170')][_0x4b75f8('0x1d9')]=function(_0x5d481d){const _0xec9aee=_0x4b75f8,_0x2038a1=this,_0x27d242=_0x2038a1[_0xec9aee('0x7b')][_0x2038a1[_0xec9aee('0x87')][_0x5d481d[_0xec9aee('0x111')]][_0xec9aee('0x13a')]];if(strategy[this[_0xec9aee('0x7b')][this['actions'][_0x5d481d[_0xec9aee('0x111')]][_0xec9aee('0x13a')]][_0xec9aee('0x18b')]]===_0xec9aee('0x122'))this[_0xec9aee('0x87')][_0x5d481d[_0xec9aee('0x111')]]&&this[_0xec9aee('0x87')][_0x5d481d[_0xec9aee('0x111')]][_0xec9aee('0xff')]?this[_0xec9aee('0x1fb')][_0xec9aee('0x141')](this[_0xec9aee('0x87')][_0x5d481d[_0xec9aee('0x111')]][_0xec9aee('0x1fa')],this['actions'][_0x5d481d['actionid']][_0xec9aee('0xff')])[_0xec9aee('0x12e')](function(_0x17f7e4){const _0x1eeeb3=_0xec9aee;logger[_0x1eeeb3('0x33')](_0x1eeeb3('0x1a'),util[_0x1eeeb3('0x100')](_0x17f7e4,{'showHidden':![],'depth':null}));})[_0xec9aee('0x159')](function(){const _0x12a261=_0xec9aee;_0x2038a1['updateOriginated'](_0x2038a1['voiceQueues'][_0x2038a1[_0x12a261('0x87')][_0x5d481d[_0x12a261('0x111')]]['queue']]),_0x2038a1[_0x12a261('0xb4')][_0x2038a1[_0x12a261('0x87')][_0x5d481d[_0x12a261('0x111')]][_0x12a261('0xff')]][_0x12a261('0x10a')]=![],delete _0x2038a1[_0x12a261('0x87')][_0x5d481d[_0x12a261('0x111')]],unlockQueueStatus(_0x27d242);}):(this['updateOriginated'](this['voiceQueues'][this['actions'][_0x5d481d[_0xec9aee('0x111')]]['queue']]),this['rescheduleContact']({'active':![],'ContactId':this[_0xec9aee('0x87')][_0x5d481d[_0xec9aee('0x111')]][_0xec9aee('0x13')],'ListId':this[_0xec9aee('0x87')][_0x5d481d[_0xec9aee('0x111')]][_0xec9aee('0x1e2')],'VoiceQueueId':this[_0xec9aee('0x87')][_0x5d481d[_0xec9aee('0x111')]][_0xec9aee('0x205')]||undefined,'CampaignId':this['actions'][_0x5d481d[_0xec9aee('0x111')]]['CampaignId']||undefined})[_0xec9aee('0x12e')](loggerCatch(_0xec9aee('0x1b1'))),delete this[_0xec9aee('0x87')][_0x5d481d['actionid']],unlockQueueStatus(_0x27d242));else{if((strategy[this[_0xec9aee('0x7b')][this[_0xec9aee('0x87')][_0x5d481d[_0xec9aee('0x111')]][_0xec9aee('0x13a')]][_0xec9aee('0x18b')]]||'rrmemory')===_0xec9aee('0x1a7')){let _0x19eab8;if(this['actions'][_0x5d481d['actionid']]&&!_[_0xec9aee('0xc8')](this[_0xec9aee('0x54')][this[_0xec9aee('0x87')][_0x5d481d[_0xec9aee('0x111')]][_0xec9aee('0x13a')]])){this[_0xec9aee('0x69')][_0x2038a1['actions'][_0x5d481d[_0xec9aee('0x111')]][_0xec9aee('0x13a')]]&&(this[_0xec9aee('0x69')][_0x2038a1[_0xec9aee('0x87')][_0x5d481d['actionid']][_0xec9aee('0x13a')]]=this[_0xec9aee('0x69')][this['actions'][_0x5d481d[_0xec9aee('0x111')]][_0xec9aee('0x13a')]]?this[_0xec9aee('0x69')][this['actions'][_0x5d481d[_0xec9aee('0x111')]][_0xec9aee('0x13a')]]:this[_0xec9aee('0x54')][this[_0xec9aee('0x87')][_0x5d481d[_0xec9aee('0x111')]][_0xec9aee('0x13a')]]?this[_0xec9aee('0x54')][this[_0xec9aee('0x87')][_0x5d481d['actionid']][_0xec9aee('0x13a')]][_0xec9aee('0x134')]||0x0:0x0);this[_0xec9aee('0x54')][this['actions'][_0x5d481d[_0xec9aee('0x111')]][_0xec9aee('0x13a')]][_0xec9aee('0x134')]=this[_0xec9aee('0x69')][this[_0xec9aee('0x87')][_0x5d481d[_0xec9aee('0x111')]][_0xec9aee('0x13a')]];for(let _0x5f11a2=0x0;_0x5f11a2=0x0?!![]:![];})['catch'](myreject(_0x31f901)));}else _0x4be253['push'](ami[_0x5cbe20('0x109')]({'action':_0x5cbe20('0xad'),'command':util[_0x5cbe20('0xcf')](_0x5cbe20('0x15d'),_0x56f92e,!_[_0x5cbe20('0x164')](config[_0x5cbe20('0x118')][_0x255e04])?_0x255e04:'')})[_0x5cbe20('0x152')](function(_0x1343e2){const _0x32e626=_0x5cbe20;return _0x1343e2[_0x32e626('0x1cd')][_0x32e626('0x8a')]('true')>=0x0?!![]:![];})[_0x5cbe20('0x12e')](myreject(_0x31f901)));Promise[_0x5cbe20('0xa4')](_0x4be253)[_0x5cbe20('0x152')](function(_0x27e167){const _0x32e0dd=_0x5cbe20,_0x108f43=_[_0x32e0dd('0x92')](_0x27e167);return _0x108f43?_0x52b6b9(_0x108f43):(_0x58cb23[_0x32e0dd('0x183')]=_0x26379b?_0x32e0dd('0xcb'):_0x32e0dd('0x96'),_0x31f901(msgResponse(_0x32e0dd('0x9'),_0x32e0dd('0x184'),'Global:\x20'+_0x26379b+'\x20'+_0x4dac76+_0x32e0dd('0xe6')+util[_0x32e0dd('0x100')](_0x56f92e,{'showHidden':![],'depth':null})+_0x32e0dd('0x80')+_0x255e04)));})[_0x5cbe20('0x12e')](function(_0x40703a){const _0x2b6133=_0x5cbe20;return _0x31f901(msgResponse(_0x2b6133('0xda'),'Failure',JSON[_0x2b6133('0x1bf')](_0x40703a)));});});},Dialer[_0x4b75f8('0x170')][_0x4b75f8('0x18d')]=function(_0x3984f4){const _0x36a03b=this;return function(){const _0x4e3b5f=a1056_0x3665;switch(_0x3984f4[_0x4e3b5f('0xf6')]){case _0x4e3b5f('0x9f'):freeVariablesPredictive(_0x3984f4),_0x36a03b[_0x4e3b5f('0x1a6')](_0x3984f4,0x1);break;case _0x4e3b5f('0x14'):freeVariablesPredictive(_0x3984f4),_0x36a03b[_0x4e3b5f('0x1a6')](_0x3984f4,_0x3984f4[_0x4e3b5f('0x30')]);break;case _0x4e3b5f('0x1e'):_0x36a03b['predictive'](_0x3984f4);break;case _0x4e3b5f('0x1e5'):freeVariablesPredictive(_0x3984f4),_0x36a03b['handlePower'](_0x3984f4,0x1);break;default:freeVariablesPredictive(_0x3984f4),logger[_0x4e3b5f('0x33')]('Queue',_0x3984f4[_0x4e3b5f('0x1b')],_0x4e3b5f('0x19c'));}};},Dialer['prototype'][_0x4b75f8('0xc3')]=function(_0x58b83a){const _0x1351bc=this;return function(){const _0x506560=a1056_0x3665;_0x1351bc[_0x506560('0x0')](_0x58b83a);};},Dialer[_0x4b75f8('0x170')][_0x4b75f8('0x1ec')]=function(_0x212322){const _0x16440c=_0x4b75f8,_0x4b001f=this;isNotPreview(_0x212322[_0x16440c('0xf6')])?isVoiceQueueOutbound(_0x212322[_0x16440c('0x85')])&&isActive(_0x212322[_0x16440c('0x9a')])?(_0x212322['sendMessageOneNotActive']=!![],Promise[_0x16440c('0x16c')]()[_0x16440c('0x152')](checkIsLoggedIn(_0x212322,_0x212322['loggedIn']))['then'](checkIsActive(_0x212322,_0x212322[_0x16440c('0x9a')]))[_0x16440c('0x152')](checkInterval(_0x212322))[_0x16440c('0x152')](_0x4b001f[_0x16440c('0x1c3')](_0x212322))['then'](_0x4b001f[_0x16440c('0x16')](_0x212322[_0x16440c('0xce')],_0x212322[_0x16440c('0xbc')],_0x212322[_0x16440c('0x1b')],_0x212322))[_0x16440c('0x152')](_0x4b001f[_0x16440c('0x1a9')](_0x212322[_0x16440c('0x142')],_0x212322[_0x16440c('0xbc')],_0x212322[_0x16440c('0x1b')],_0x212322))[_0x16440c('0x152')](_0x4b001f[_0x16440c('0x18d')](_0x212322))[_0x16440c('0x12e')](loggerCatchQueueSummary(_0x16440c('0x1fe'),_0x212322))):notSendMessagesQueue(_0x212322):freeVariablesPredictive(_0x212322);},Dialer['prototype']['syncCampaigns']=function(){const _0x2ec213=_0x4b75f8,_0x124861=this;let _0x3e9dc4;for(const _0x23eaf5 in this[_0x2ec213('0xd1')]){typeof this[_0x2ec213('0xd1')][_0x23eaf5]!==_0x2ec213('0xa1')&&(_0x3e9dc4=this[_0x2ec213('0xd1')][_0x23eaf5],isCampaignIvr(_0x3e9dc4['type'])&&isActive(_0x3e9dc4[_0x2ec213('0x97')])?(_0x3e9dc4[_0x2ec213('0x48')]=!![],Promise['resolve']()[_0x2ec213('0x152')](checkIsActive(_0x3e9dc4,_0x3e9dc4['active']))[_0x2ec213('0x152')](checkInterval(_0x3e9dc4))[_0x2ec213('0x152')](_0x124861[_0x2ec213('0x1c3')](_0x3e9dc4))[_0x2ec213('0x152')](_0x124861[_0x2ec213('0x16')](_0x3e9dc4[_0x2ec213('0xce')],_0x3e9dc4[_0x2ec213('0xbc')],_0x3e9dc4['name'],_0x3e9dc4))['then'](_0x124861[_0x2ec213('0x1a9')](_0x3e9dc4[_0x2ec213('0x142')],_0x3e9dc4[_0x2ec213('0xbc')],_0x3e9dc4[_0x2ec213('0x1b')],_0x3e9dc4))[_0x2ec213('0x152')](_0x124861[_0x2ec213('0xc3')](_0x3e9dc4))[_0x2ec213('0x12e')](loggerCatchQueueSummary(_0x2ec213('0xe4'),_0x3e9dc4))):notSendMessagesCampaign(_0x3e9dc4));}};function getCallerIdRandom(_0x1c12e6,_0x34d0d5){const _0x176ac4=_0x4b75f8;_0x34d0d5<=0x0&&(_0x34d0d5=0x1);const _0x2f1d54=new RegExp(_0x176ac4('0xca')+_0x34d0d5+'}$'),_0x298dbf=Math['pow'](0xa,_0x34d0d5-0x1),_0x2cea2e=Math[_0x176ac4('0xc4')](0xa,_0x34d0d5)-0x1;return util[_0x176ac4('0xcf')]('%s',_['replace'](_0x1c12e6,_0x2f1d54,_[_0x176ac4('0x174')](_0x298dbf,_0x2cea2e)));}function extractCalleridName(_0x468d6a){const _0x51dc3f=_0x468d6a['match'](/"(.*?)"/);return _0x51dc3f?_0x51dc3f[0x1]:_0x468d6a;}function extractCalleridNumber(_0x39f574){const _0x5bee3e=_0x39f574['match'](/<(.*?)>/);return _0x5bee3e?_0x5bee3e[0x1]:_0x39f574;}Dialer[_0x4b75f8('0x170')][_0x4b75f8('0xee')]=function(_0x49985a,_0x198341){const _0x7adc33=_0x4b75f8,_0x1ee91c=getConfigService(),_0x35dfe5=this,_0x141fe2=uuid['v4']();return this[_0x7adc33('0x87')][_0x141fe2]=new Action(_0x49985a,_0x198341,_0x141fe2),new Promise(function(_0x5a5cf0,_0x502828){const _0x32fe67=_0x7adc33;if(_['isUndefined'](_0x49985a)&&_0x32fe67('0x63')!==typeof _0x49985a)return _0x502828(msgResponse(_0x32fe67('0x4'),'Failure','voiceQueue\x20is\x20undefine'));if(_[_0x32fe67('0x164')](_0x198341[_0x32fe67('0x1b3')][_0x32fe67('0x34')])||_0x198341[_0x32fe67('0x1b3')][_0x32fe67('0x34')]===null)return _0x502828(msgResponse(_0x32fe67('0x4'),'Failure',_0x32fe67('0xba')));const _0x25114f={'XMD-CALLERID':_0x35dfe5['actions'][_0x141fe2][_0x32fe67('0x10d')](),'XMD-AGI':_0x49985a[_0x32fe67('0x98')]?util[_0x32fe67('0xcf')]('\x22agi://%s/square,%s\x22',_0x1ee91c[_0x32fe67('0x1ff')],_0x49985a[_0x32fe67('0x98')]):_0x32fe67('0x195'),'XMD-AGIAFTER':_0x49985a[_0x32fe67('0x56')]?util[_0x32fe67('0xcf')](_0x32fe67('0x1f2'),_0x1ee91c[_0x32fe67('0x1ff')],_0x49985a[_0x32fe67('0x56')]):'NONE','XMD-QUEUE':_0x49985a[_0x32fe67('0x85')]===_0x32fe67('0x4c')?util[_0x32fe67('0xcf')](_0x32fe67('0x20c'),_0x49985a[_0x32fe67('0x1b')],_0x49985a['dialQueueOptions']||'',_0x49985a[_0x32fe67('0x2e')]?'c':'',_0x49985a[_0x32fe67('0x6a')]||0x3):_0x32fe67('0x195'),'XMD-CONTACTID':_0x198341['ContactId'],'XMD-CDRTYPE':'dialer','CALLERID(all)':_0x35dfe5[_0x32fe67('0x87')][_0x141fe2]['getCaller'](),'XMD-AMD':_0x49985a[_0x32fe67('0x6f')]?_0x32fe67('0x176'):_0x32fe67('0x195'),'XMD-DESTINATION':_0x32fe67('0xa2')};_0x49985a[_0x32fe67('0x6f')]&&(_0x25114f[_0x32fe67('0x162')]=_0x49985a[_0x32fe67('0xd')]||0x9c4,_0x25114f['XMD-AMDGREETING']=_0x49985a[_0x32fe67('0x1e0')]||0x5dc,_0x25114f[_0x32fe67('0x2')]=_0x49985a[_0x32fe67('0x1d2')]||0x320,_0x25114f[_0x32fe67('0x6c')]=_0x49985a[_0x32fe67('0x1d6')]||0x1388,_0x25114f[_0x32fe67('0x1a4')]=_0x49985a[_0x32fe67('0x19b')]||0x64,_0x25114f[_0x32fe67('0xdf')]=_0x49985a[_0x32fe67('0x188')]||0x32,_0x25114f[_0x32fe67('0x194')]=_0x49985a[_0x32fe67('0x1ee')]||0x3,_0x25114f['XMD-AMDSILENCETHRESHOLD']=_0x49985a['dialAMDSilenceThreshold']||0x100,_0x25114f['XMD-AMDMAXIMUMWORDLENGTH']=_0x49985a[_0x32fe67('0x1db')]||0x1388);_0x49985a[_0x32fe67('0x85')]===_0x32fe67('0x4c')?_0x25114f['XMD-VOICEQUEUEID']=_0x198341[_0x32fe67('0x205')]:_0x25114f[_0x32fe67('0x8f')]=_0x198341[_0x32fe67('0x1e6')];for(const _0x213f98 in _0x198341[_0x32fe67('0x1b3')]){typeof _0x198341[_0x32fe67('0x1b3')][_0x213f98]!==_0x32fe67('0xa1')&&(isNotNull(_0x198341[_0x32fe67('0x1b3')][_0x213f98])&&_0x213f98!=='id'&&_0x213f98!==_0x32fe67('0x192')&&_0x213f98!=='createdAt'&&_0x213f98!==_0x32fe67('0xef')&&(_0x25114f[util['format'](_0x32fe67('0x131'),_0x32fe67('0x82'),_['toUpper'](_0x213f98))]=_0x198341[_0x32fe67('0x1b3')][_0x213f98]));}const _0xf3aad0=_0x35dfe5[_0x32fe67('0x196')](_0x49985a['Trunk'])?getCallerId(_0x49985a[_0x32fe67('0x101')][_0x32fe67('0x37')],_0x49985a[_0x32fe67('0x121')],_0x49985a['dialRandomLastDigitCallerIdNumber']>0x0?getCallerIdRandom(_0x49985a[_0x32fe67('0x67')],_0x49985a['dialRandomLastDigitCallerIdNumber']):_0x49985a[_0x32fe67('0x67')]):getCallerId(_[_0x32fe67('0xa')](_0x49985a[_0x32fe67('0x198')])?_0x49985a[_0x32fe67('0x101')]['callerid']:_0x49985a['TrunkBackup']['callerid'],_0x49985a[_0x32fe67('0x121')],_0x49985a[_0x32fe67('0x166')]>0x0?getCallerIdRandom(_0x49985a[_0x32fe67('0x67')],_0x49985a[_0x32fe67('0x166')]):_0x49985a[_0x32fe67('0x67')]);if(_0xf3aad0){const _0x471280=extractCalleridName(_0xf3aad0);_0x25114f[_0x32fe67('0x19a')]=_0x471280,_0x35dfe5[_0x32fe67('0x87')][_0x141fe2][_0x32fe67('0x106')]=_0x471280;const _0x56ae54=extractCalleridNumber(_0xf3aad0);_0x25114f['XMD-ORIGINATECALLERIDNUM']==_0x56ae54,_0x35dfe5[_0x32fe67('0x87')][_0x141fe2][_0x32fe67('0x1fd')]=_0x56ae54;}return ami[_0x32fe67('0x109')]({'actionid':_0x141fe2,'action':_0x32fe67('0x4'),'channel':_0x35dfe5[_0x32fe67('0x196')](_0x49985a[_0x32fe67('0x101')])?util[_0x32fe67('0xcf')](_0x32fe67('0x1dd'),_0x49985a['Trunk'][_0x32fe67('0x1b')],isNotNull(_0x49985a['dialPrefix'])?_0x49985a['dialPrefix'][_0x32fe67('0x1bb')]()||'':'',_0x49985a[_0x32fe67('0x1f7')]>0x0?_0x198341[_0x32fe67('0x1b3')][_0x32fe67('0x34')][_0x32fe67('0x1de')](_0x49985a[_0x32fe67('0x1f7')]):_0x198341['Contact'][_0x32fe67('0x34')]):util[_0x32fe67('0xcf')](_0x32fe67('0x1dd'),_[_0x32fe67('0xa')](_0x49985a[_0x32fe67('0x198')])?_0x49985a[_0x32fe67('0x101')][_0x32fe67('0x1b')]:_0x49985a[_0x32fe67('0x198')][_0x32fe67('0x1b')],isNotNull(_0x49985a[_0x32fe67('0x3e')])?_0x49985a[_0x32fe67('0x3e')][_0x32fe67('0x1bb')]()||'':'',_0x49985a[_0x32fe67('0x1f7')]>0x0?_0x198341[_0x32fe67('0x1b3')][_0x32fe67('0x34')][_0x32fe67('0x1de')](_0x49985a['dialCutDigit']):_0x198341[_0x32fe67('0x1b3')]['phone']),'callerid':_0xf3aad0,'Exten':_0x32fe67('0xa2'),'Context':_0x32fe67('0x14c'),'Priority':'1','variable':_0x25114f,'timeout':(_0x49985a[_0x32fe67('0x57')]||0x1e)*0x3e8,'async':!![],'channelid':_0x141fe2})[_0x32fe67('0x152')](function(_0x274b15){return _0x5a5cf0(_0x274b15);})[_0x32fe67('0x12e')](function(_0x3d96e0){const _0x1b7c91=_0x32fe67;_0x49985a[_0x1b7c91('0xb3')]+=0x1;const _0xc91466=new History(_0x35dfe5[_0x1b7c91('0x87')][_0x141fe2]);logger[_0x1b7c91('0x33')](util['format'](_0x1b7c91('0xe8'),JSON[_0x1b7c91('0x1bf')](_0x3d96e0))),_0xc91466['state']=0xe,_0xc91466[_0x1b7c91('0x7')]=_0x1b7c91('0x13c'),_0xc91466[_0x1b7c91('0x6')]=moment()[_0x1b7c91('0xcf')](_0x1b7c91('0x38')),_0xc91466[_0x1b7c91('0x18')]=_0xc91466[_0x1b7c91('0x6')],_0x35dfe5[_0x1b7c91('0x193')](_0xc91466)[_0x1b7c91('0x12e')](loggerCatch(_0x1b7c91('0x7d'))),_0x35dfe5['moveContactManagedDialer'](_0xc91466)[_0x1b7c91('0x12e')](loggerCatch(_0x1b7c91('0x7d')))[_0x1b7c91('0x159')](function(){const _0x5abf76=_0x1b7c91;return delete _0x35dfe5['actions'][_0x141fe2],_0x502828(msgResponse(_0x5abf76('0x4'),_0x5abf76('0x8'),_0x5abf76('0x201')));});});});},Dialer['prototype']['syncOriginateResponse']=function(_0x2cbb08){const _0x253532=_0x4b75f8,_0x5d957e=this[_0x253532('0x87')][_0x2cbb08['actionid']];if(_0x5d957e){delete this[_0x253532('0x87')][_0x2cbb08[_0x253532('0x111')]],_0x5d957e[_0x253532('0x14d')]=moment()[_0x253532('0xcf')](_0x253532('0x38'));const _0xb91b33=_0x5d957e['type']==='ivr'?this[_0x253532('0xd1')][_0x5d957e[_0x253532('0x13a')]]:this[_0x253532('0x7b')][_0x5d957e[_0x253532('0x18e')]()];if(!this[_0x253532('0x13f')](_0x2cbb08[_0x253532('0x168')]))return this[_0x253532('0x39')](_0xb91b33),this[_0x253532('0x127')](_0x5d957e,_0xb91b33,_0x2cbb08)['then'](function(){})[_0x253532('0x12e')](loggerCatch(_0x253532('0x1e9')));else this[_0x253532('0x78')][_0x2cbb08[_0x253532('0x95')]]=_0x5d957e;}},Dialer[_0x4b75f8('0x170')][_0x4b75f8('0xb5')]=function(_0x4a941d,_0x52d6a0,_0x47bf0a){const _0x380bba=_0x4b75f8,_0x575983=new History(_0x52d6a0);if(_0x575983[_0x380bba('0xa5')]+_0x575983[_0x380bba('0x12a')]+_0x575983['countnoanswerretry']+_0x575983[_0x380bba('0x12f')]+_0x575983[_0x380bba('0x1b0')]+_0x575983['countabandonedretry']+_0x575983[_0x380bba('0x1fc')]+_0x575983[_0x380bba('0x1ac')]>=_0x47bf0a[_0x380bba('0xb7')]-0x1)return!![];switch(_0x4a941d){case 0x3:if(_0x575983['countnoanswerretry']>=_0x47bf0a[_0x380bba('0x181')]-0x1)return!![];else this[_0x380bba('0x9b')]({'active':![],'countnoanswerretry':_0x575983[_0x380bba('0x3a')]+=0x1,'scheduledat':moment()['add'](_0x47bf0a[_0x380bba('0x5b')],_0x380bba('0x13b'))[_0x380bba('0xcf')](_0x380bba('0x38')),'ContactId':_0x575983[_0x380bba('0x13')],'ListId':_0x575983[_0x380bba('0x1e2')],'VoiceQueueId':_0x575983[_0x380bba('0x205')]||undefined,'CampaignId':_0x575983[_0x380bba('0x1e6')]||undefined})[_0x380bba('0x12e')](loggerCatch(_0x380bba('0x17f')));break;case 0x5:if(_0x575983['countbusyretry']>=_0x47bf0a[_0x380bba('0x11d')]-0x1)return!![];else this['rescheduleContact']({'active':![],'countbusyretry':_0x575983[_0x380bba('0xa5')]+=0x1,'scheduledat':moment()[_0x380bba('0x13e')](_0x47bf0a['dialBusyRetryFrequency'],_0x380bba('0x13b'))['format'](_0x380bba('0x38')),'ContactId':_0x575983['ContactId'],'ListId':_0x575983[_0x380bba('0x1e2')],'VoiceQueueId':_0x575983[_0x380bba('0x205')]||undefined,'CampaignId':_0x575983[_0x380bba('0x1e6')]||undefined})[_0x380bba('0x12e')](loggerCatch(_0x380bba('0x2d')));break;case 0x8:if(_0x575983[_0x380bba('0x12a')]>=_0x47bf0a[_0x380bba('0x6b')]-0x1)return!![];else this[_0x380bba('0x9b')]({'active':![],'countcongestionretry':_0x575983['countcongestionretry']+=0x1,'scheduledat':moment()['add'](_0x47bf0a[_0x380bba('0x26')],_0x380bba('0x13b'))[_0x380bba('0xcf')](_0x380bba('0x38')),'ContactId':_0x575983[_0x380bba('0x13')],'ListId':_0x575983['ListId'],'VoiceQueueId':_0x575983['VoiceQueueId']||undefined,'CampaignId':_0x575983[_0x380bba('0x1e6')]||undefined})[_0x380bba('0x12e')](loggerCatch(_0x380bba('0x3c')));break;case 0x0:if(_0x575983[_0x380bba('0x12f')]>=_0x47bf0a['dialNoSuchNumberMaxRetry']-0x1)return!![];else this[_0x380bba('0x9b')]({'active':![],'countnosuchnumberretry':_0x575983['countnosuchnumberretry']+=0x1,'scheduledat':moment()[_0x380bba('0x13e')](_0x47bf0a[_0x380bba('0x107')],_0x380bba('0x13b'))['format'](_0x380bba('0x38')),'ContactId':_0x575983[_0x380bba('0x13')],'ListId':_0x575983['ListId'],'VoiceQueueId':_0x575983['VoiceQueueId']||undefined,'CampaignId':_0x575983['CampaignId']||undefined})['catch'](loggerCatch('[rescheduleContact][NoSuchNumber]'));break;case 0xa:if(_0x575983[_0x380bba('0x1b0')]>=_0x47bf0a[_0x380bba('0x60')]-0x1)return!![];else this[_0x380bba('0x9b')]({'active':![],'countdropretry':_0x575983['countdropretry']+=0x1,'scheduledat':moment()[_0x380bba('0x13e')](_0x47bf0a['dialDropRetryFrequency'],'minutes')[_0x380bba('0xcf')]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x575983[_0x380bba('0x13')],'ListId':_0x575983[_0x380bba('0x1e2')],'VoiceQueueId':_0x575983['VoiceQueueId']||undefined,'CampaignId':_0x575983[_0x380bba('0x1e6')]||undefined})[_0x380bba('0x12e')](loggerCatch('[rescheduleContact][Drop]'));break;case 0xb:if(_0x575983[_0x380bba('0x66')]>=_0x47bf0a[_0x380bba('0x84')]-0x1)return!![];else this[_0x380bba('0x9b')]({'active':![],'countabandonedretry':_0x575983[_0x380bba('0x66')]+=0x1,'scheduledat':moment()['add'](_0x47bf0a[_0x380bba('0x1ea')],_0x380bba('0x13b'))[_0x380bba('0xcf')](_0x380bba('0x38')),'ContactId':_0x575983['ContactId'],'ListId':_0x575983[_0x380bba('0x1e2')],'VoiceQueueId':_0x575983[_0x380bba('0x205')]||undefined,'CampaignId':_0x575983[_0x380bba('0x1e6')]||undefined})[_0x380bba('0x12e')](loggerCatch(_0x380bba('0x1d1')));break;case 0x13:if(_0x575983[_0x380bba('0x1fc')]>=_0x47bf0a['dialMachineMaxRetry']-0x1)return!![];else this[_0x380bba('0x9b')]({'active':![],'countmachineretry':_0x575983['countmachineretry']+=0x1,'scheduledat':moment()[_0x380bba('0x13e')](_0x47bf0a[_0x380bba('0x1c5')],_0x380bba('0x13b'))[_0x380bba('0xcf')](_0x380bba('0x38')),'ContactId':_0x575983[_0x380bba('0x13')],'ListId':_0x575983[_0x380bba('0x1e2')],'VoiceQueueId':_0x575983[_0x380bba('0x205')]||undefined,'CampaignId':_0x575983[_0x380bba('0x1e6')]||undefined})[_0x380bba('0x12e')](loggerCatch(_0x380bba('0x1ed')));break;case 0x14:if(_0x575983['countagentrejectretry']>=_0x47bf0a[_0x380bba('0xc')]-0x1)return!![];else this[_0x380bba('0x9b')]({'active':![],'countagentrejectretry':_0x575983['countagentrejectretry']+=0x1,'scheduledat':moment()[_0x380bba('0x13e')](_0x47bf0a[_0x380bba('0x17e')],'minutes')[_0x380bba('0xcf')](_0x380bba('0x38')),'ContactId':_0x575983[_0x380bba('0x13')],'ListId':_0x575983[_0x380bba('0x1e2')],'VoiceQueueId':_0x575983[_0x380bba('0x205')]||undefined,'CampaignId':_0x575983[_0x380bba('0x1e6')]||undefined})[_0x380bba('0x12e')](loggerCatch('[rescheduleContact][AgentReject]'));break;default:return!![];}},Dialer['prototype']['callProgressDetecting']=function(_0x2fdd69,_0x444c66,_0x44dcb8){const _0x3b8d9a=this,_0x124e01=new History(_0x2fdd69);return new Promise(function(_0x2a30c3,_0xf7de18){const _0x26838a=a1056_0x3665;if(_[_0x26838a('0x164')](_0x444c66)&&_0x26838a('0x63')!==typeof _0x444c66)return _0xf7de18(msgResponse(_0x26838a('0x15e'),_0x26838a('0x184'),_0x26838a('0x1c0')));if(_[_0x26838a('0x164')](_0x44dcb8)&&_0x26838a('0x63')!==typeof _0x44dcb8)return _0xf7de18(msgResponse(_0x26838a('0x15e'),_0x26838a('0x184'),'evt\x20is\x20undefine'));switch(_0x44dcb8[_0x26838a('0x21')]){case'0':_0x444c66[_0x26838a('0x1e7')]+=0x1,_0x124e01['state']=0x0,_0x124e01[_0x26838a('0x7')]=_0x26838a('0x1f8'),_0x124e01[_0x26838a('0x12f')]+=0x1,_0x124e01[_0x26838a('0x1b4')]+=0x1,ami[_0x26838a('0x11')](_0x26838a('0x1d8'),ut['buildObj'](_0x2fdd69,_0x26838a('0x165'))),_0x3b8d9a['createHistory'](_0x124e01)[_0x26838a('0x12e')](loggerCatch(_0x26838a('0x126')));_0x3b8d9a[_0x26838a('0xb5')](0x0,_0x2fdd69,_0x444c66)&&(_0x124e01['countnosuchnumberretry']>=_0x444c66[_0x26838a('0x4b')]?_0x3b8d9a[_0x26838a('0xea')](_0x124e01,_0x2a30c3,_0xf7de18,'reason\x200\x20no\x20such\x20number....'):_0x3b8d9a[_0x26838a('0xd0')](_0x124e01,_0x2a30c3,_0xf7de18,_0x26838a('0x202')));break;case'3':_0x444c66['outboundNoAnswerCallsDay']+=0x1,_0x124e01[_0x26838a('0x1d4')]=0x3,_0x124e01[_0x26838a('0x7')]=_0x26838a('0x1b5'),_0x124e01[_0x26838a('0x3a')]+=0x1,_0x124e01[_0x26838a('0x1b4')]+=0x1,ami['emit'](_0x26838a('0x94'),ut['buildObj'](_0x2fdd69,_0x26838a('0x14e'))),_0x3b8d9a[_0x26838a('0x193')](_0x124e01)[_0x26838a('0x12e')](loggerCatch(_0x26838a('0x76')));_0x3b8d9a[_0x26838a('0xb5')](0x3,_0x2fdd69,_0x444c66)&&(_0x124e01[_0x26838a('0x3a')]>=_0x444c66[_0x26838a('0x181')]?_0x3b8d9a['createStateFinal'](_0x124e01,_0x2a30c3,_0xf7de18,_0x26838a('0x20d')):_0x3b8d9a[_0x26838a('0xd0')](_0x124e01,_0x2a30c3,_0xf7de18,_0x26838a('0x20d')));break;case'5':_0x444c66['outboundBusyCallsDay']+=0x1,_0x124e01[_0x26838a('0x1d4')]=0x5,_0x124e01[_0x26838a('0x7')]=_0x26838a('0x17b'),_0x124e01[_0x26838a('0xa5')]+=0x1,_0x124e01[_0x26838a('0x1b4')]+=0x1,ami['emit']('custom:agentbusy',ut[_0x26838a('0x102')](_0x2fdd69,_0x26838a('0x14a'))),_0x3b8d9a[_0x26838a('0x193')](_0x124e01)[_0x26838a('0x12e')](loggerCatch(_0x26838a('0x2c')));_0x3b8d9a['checkRetriveMax'](0x5,_0x2fdd69,_0x444c66)&&(_0x124e01['countbusyretry']>=_0x444c66[_0x26838a('0x11d')]?_0x3b8d9a[_0x26838a('0xea')](_0x124e01,_0x2a30c3,_0xf7de18,'reason\x205\x20busy'):_0x3b8d9a['stateGlobal'](_0x124e01,_0x2a30c3,_0xf7de18,_0x26838a('0x132')));break;case'8':_0x444c66[_0x26838a('0x58')]+=0x1,_0x124e01[_0x26838a('0x1d4')]=0x8,_0x124e01['statedesc']=_0x26838a('0x175'),_0x124e01[_0x26838a('0x12a')]+=0x1,_0x124e01[_0x26838a('0x1b4')]+=0x1,ami['emit']('custom:agentcongestion',ut[_0x26838a('0x102')](_0x2fdd69,_0x26838a('0x1ad'))),_0x3b8d9a[_0x26838a('0x193')](_0x124e01)[_0x26838a('0x12e')](loggerCatch(_0x26838a('0x1ca')));_0x3b8d9a[_0x26838a('0xb5')](0x8,_0x2fdd69,_0x444c66)&&(_0x124e01[_0x26838a('0x12a')]>=_0x444c66[_0x26838a('0x6b')]?_0x3b8d9a[_0x26838a('0xea')](_0x124e01,_0x2a30c3,_0xf7de18,_0x26838a('0x130')):_0x3b8d9a['stateGlobal'](_0x124e01,_0x2a30c3,_0xf7de18,'reason\x208\x20congestion'));break;case'11':_0x444c66[_0x26838a('0x27')]+=0x1,_0x124e01[_0x26838a('0x1d4')]=0xb,_0x124e01[_0x26838a('0x7')]='Abandoned',_0x124e01[_0x26838a('0x66')]+=0x1,_0x124e01[_0x26838a('0x1b4')]+=0x1,_0x3b8d9a[_0x26838a('0x193')](_0x124e01)[_0x26838a('0x12e')](loggerCatch(_0x26838a('0xc7')));_0x3b8d9a['checkRetriveMax'](0xb,_0x2fdd69,_0x444c66)&&(_0x124e01[_0x26838a('0x66')]>=_0x444c66[_0x26838a('0x84')]?_0x3b8d9a[_0x26838a('0xea')](_0x124e01,_0x2a30c3,_0xf7de18,'reason\x2011\x20abandoned'):_0x3b8d9a[_0x26838a('0xd0')](_0x124e01,_0x2a30c3,_0xf7de18,'reason\x2011\x20abandoned'));break;case'20':_0x444c66['outboundRejectCallsDay']+=0x1,_0x124e01['state']=0x14,_0x124e01[_0x26838a('0x7')]=_0x26838a('0x1d5'),_0x124e01[_0x26838a('0x1ac')]+=0x1,_0x124e01['countglobal']+=0x1,ami[_0x26838a('0x11')]('custom:agentreject',ut[_0x26838a('0x102')](_0x2fdd69,'agentreject')),_0x3b8d9a['createHistory'](_0x124e01)[_0x26838a('0x12e')](loggerCatch(_0x26838a('0x169')));_0x3b8d9a[_0x26838a('0xb5')](0x14,_0x2fdd69,_0x444c66)&&(_0x124e01[_0x26838a('0x1ac')]>=_0x444c66[_0x26838a('0xc')]?_0x3b8d9a[_0x26838a('0xea')](_0x124e01,_0x2a30c3,_0xf7de18,_0x26838a('0x1c1')):_0x3b8d9a[_0x26838a('0xd0')](_0x124e01,_0x2a30c3,_0xf7de18,'reason\x2020\x20agentreject'));break;default:_0x444c66[_0x26838a('0x1be')]+=0x1,_0x124e01['state']=0xc,_0x124e01[_0x26838a('0x7')]=_0x44dcb8[_0x26838a('0x21')],_0x3b8d9a[_0x26838a('0x193')](_0x124e01)[_0x26838a('0x12e')](loggerCatch(_0x26838a('0xe9')));_0x3b8d9a[_0x26838a('0xb5')](_0x44dcb8[_0x26838a('0x21')],_0x2fdd69,_0x444c66)&&(_0x124e01[_0x26838a('0xa5')]+_0x124e01[_0x26838a('0x12a')]+_0x124e01['countnoanswerretry']+_0x124e01[_0x26838a('0x12f')]+_0x124e01[_0x26838a('0x1b0')]+_0x124e01[_0x26838a('0x66')]+_0x124e01[_0x26838a('0x1fc')]+_0x124e01[_0x26838a('0x1ac')]>=_0x444c66[_0x26838a('0xb7')]?_0x3b8d9a[_0x26838a('0xd0')](_0x124e01,_0x2a30c3,_0xf7de18,_0x44dcb8[_0x26838a('0x21')]):_0x3b8d9a[_0x26838a('0xea')](_0x124e01,_0x2a30c3,_0xf7de18,_0x44dcb8[_0x26838a('0x21')]));}});},Dialer[_0x4b75f8('0x170')]['stateGlobal']=function(_0x2aa547,_0x6099b5,_0x59f24c,_0x37f982){const _0x54a6bb=_0x4b75f8,_0x388ef5=new Final(_0x2aa547);_0x388ef5['state']=0xf,_0x388ef5[_0x54a6bb('0x7')]=_0x54a6bb('0x5'),this[_0x54a6bb('0xea')](_0x388ef5,_0x6099b5,_0x59f24c,_0x37f982);},Dialer['prototype']['createStateFinal']=function(_0xc602cd,_0x1c3332,_0x512dc7,_0x1958de){const _0x536ac7=_0x4b75f8;this[_0x536ac7('0x1a2')](_0xc602cd)[_0x536ac7('0x152')](function(){const _0x3eb5f0=_0x536ac7;return _0x1c3332(msgResponse(_0x3eb5f0('0x15e'),'Success',_0x1958de));})[_0x536ac7('0x12e')](function(){const _0x55d16a=_0x536ac7;return _0x512dc7(msgResponse(_0x55d16a('0xc0'),_0x55d16a('0x184'),'contact\x20not\x20moved'));});},Dialer[_0x4b75f8('0x170')][_0x4b75f8('0x1e')]=function(_0x44e321){const _0x300407=_0x4b75f8,_0x1a0278=_0x44e321[_0x300407('0x10b')]/0x64,_0x1494b9=_0x44e321[_0x300407('0xe1')]/(_0x44e321[_0x300407('0xe1')]+_0x44e321[_0x300407('0x55')]),_0x43b266=Math['round'](_0x44e321[_0x300407('0x180')]*(_0x44e321[_0x300407('0x8b')]/0x64)),_0x457fd0=Math['round'](_0x44e321[_0x300407('0x180')]*(_0x44e321[_0x300407('0xdd')]/0x64)),_0x49d7e2=_0x44e321[_0x300407('0xae')]+_0x44e321[_0x300407('0x139')],_0xcfabc=Math[_0x300407('0x117')](_0x44e321[_0x300407('0x1e3')]*_0x44e321[_0x300407('0x59')]*_0x44e321['predictiveIntervalHitRate']*_0x44e321['predictiveIntervalMultiplicativeFactor']);if(_[_0x300407('0x164')](_0x44e321[_0x300407('0x1a5')]))!_[_0x300407('0x164')](_0x44e321[_0x300407('0x1b7')])&&(_0x44e321[_0x300407('0x1b7')]=undefined,loggerPredictive[_0x300407('0x33')](_0x300407('0x116'),'check\x20predictive\x20is\x20not\x20undefine')),!_['isUndefined'](_0x44e321[_0x300407('0x150')])&&(loggerPredictive[_0x300407('0x33')]('[startMethodPredictive][StartProgressive]','check\x20handlePredictive\x20is\x20not\x20undefine'),clearInterval(_0x44e321[_0x300407('0x150')]),_0x44e321[_0x300407('0x150')]=undefined),_0x44e321[_0x300407('0x1a5')]=moment()[_0x300407('0xcf')](_0x300407('0x38')),loggerPredictive[_0x300407('0x9c')](_0x44e321[_0x300407('0x1b')],_0x300407('0x151'),_0x44e321[_0x300407('0x1a5')]),this[_0x300407('0x1a6')](_0x44e321,0x1);else{if(ifInterval(_0x44e321[_0x300407('0x18f')],_0x44e321[_0x300407('0x1a5')]))this[_0x300407('0x1a6')](_0x44e321,0x1),loggerPredictiveCalls[_0x300407('0x9c')]('[startMethodPredictive][StartProgressive][Loop]',_0x44e321[_0x300407('0x1a5')],_0x44e321[_0x300407('0x1b')]),_0x44e321[_0x300407('0x1e3')]=0x0,_0x44e321[_0x300407('0x1b9')]=0x0;else{if(_0x1a0278<_0x1494b9&&_0x44e321[_0x300407('0x1c8')]===_0x300407('0x1d0'))freeVariablesPredictive(_0x44e321),loggerPredictive['info']('[stopMethodPredictive][ReStartProgressive][ExceededDropDay]','Dropped\x20calls\x20day',_0x1494b9,'startProgressive',_0x44e321[_0x300407('0x1b')]);else{if(_0xcfabc<_0x44e321[_0x300407('0x1b9')]&&_0x44e321[_0x300407('0x1c8')]===_0x300407('0x1d0'))freeVariablesPredictive(_0x44e321),loggerPredictive[_0x300407('0x9c')](_0x300407('0x1bd'),_0x300407('0x79'),_0xcfabc,_0x300407('0xb'),_0x44e321[_0x300407('0x1b9')],'startProgressive',_0x44e321[_0x300407('0x1b')]);else{if(!ifInterval(_0x44e321[_0x300407('0x18f')],_0x44e321[_0x300407('0x1a5')])&&_[_0x300407('0x164')](_0x44e321[_0x300407('0x1b7')])&&!_[_0x300407('0x164')](_0x44e321[_0x300407('0x1a5')]))_0x44e321[_0x300407('0x1b7')]=moment()[_0x300407('0xcf')](_0x300407('0x38')),loggerPredictive[_0x300407('0x9c')](_0x44e321[_0x300407('0x1b')],_0x300407('0x83'),_0x44e321[_0x300407('0x1b7')]),this[_0x300407('0xaa')](_0x44e321[_0x300407('0x18f')])[_0x300407('0x152')](this[_0x300407('0x148')](_0x44e321))['then'](mergeDataErlangB(_0x44e321))[_0x300407('0x152')](this[_0x300407('0xf4')](_0x44e321))[_0x300407('0x12e')](loggerCatchPredictive('Predictive\x20after\x20first\x20interval',_0x44e321));else{if(!ifInterval(_0x44e321[_0x300407('0x18f')],_0x44e321[_0x300407('0x1b7')]))_0x44e321[_0x300407('0x1b9')]=0x0,_0x44e321['startPredictive']=moment()[_0x300407('0xcf')]('YYYY-MM-DD\x20HH:mm:ss'),loggerPredictive[_0x300407('0x9c')](_0x44e321[_0x300407('0x1b')],_0x300407('0x161'),_0x44e321['startPredictive']),clearInterval(_0x44e321[_0x300407('0x150')]),_0x44e321['handlePredictive']=undefined,this[_0x300407('0xaa')](_0x44e321[_0x300407('0x18f')])['then'](this[_0x300407('0x148')](_0x44e321))[_0x300407('0x152')](mergeDataErlangB(_0x44e321))[_0x300407('0x152')](this[_0x300407('0xf4')](_0x44e321))['catch'](loggerCatchPredictive('Predictive\x20for\x20every\x20interval',_0x44e321));else{if(_0x44e321[_0x300407('0x180')]&&_0x49d7e2<_0x44e321[_0x300407('0x180')]-_0x457fd0)freeVariablesPredictive(_0x44e321),loggerPredictive['info'](_0x44e321[_0x300407('0x1b')],_0x300407('0x25'),_0x49d7e2,')\x20are\x20less\x20than\x20threshold\x20(',_0x44e321[_0x300407('0x180')],'-',_0x457fd0,'=',_0x44e321[_0x300407('0x180')]-_0x457fd0,')');else _0x44e321[_0x300407('0x180')]&&_0x49d7e2>_0x44e321[_0x300407('0x180')]+_0x43b266&&(freeVariablesPredictive(_0x44e321),loggerPredictive[_0x300407('0x9c')](_0x44e321[_0x300407('0x1b')],'switch\x20in\x20progressive\x20because\x20available\x20agents\x20(',_0x49d7e2,_0x300407('0x73'),_0x44e321[_0x300407('0x180')],'+',_0x43b266,'=',_0x44e321[_0x300407('0x180')]+_0x43b266,')'));}}}}}}},Dialer[_0x4b75f8('0x170')][_0x4b75f8('0x148')]=function(_0x4f343a){const _0x1e78ea=this;return function(_0x19edfc){return new Promise(function(_0x298255,_0x1d4499){const _0x46d8a0=a1056_0x3665;_[_0x46d8a0('0xc9')](_0x4f343a,_0x19edfc[0x0]);if(checkGetDataPredictive(_0x19edfc[0x0])){const _0x31b647=_0x4f343a[_0x46d8a0('0x139')]+_0x4f343a[_0x46d8a0('0xae')];_0x4f343a[_0x46d8a0('0x180')]=_0x31b647;const _0x1775f3=_0x31b647,_0x1c3c0b=_0x4f343a[_0x46d8a0('0x18f')]*0x3c,_0x10fb1a=_0x19edfc[0x0][_0x46d8a0('0x16e')]+_0x19edfc[0x0][_0x46d8a0('0x45')],_0x2e38d7=(_0x19edfc[0x0][_0x46d8a0('0x103')]+_0x19edfc[0x0][_0x46d8a0('0x1df')]+_0x19edfc[0x0][_0x46d8a0('0x10f')])/_0x19edfc[0x0][_0x46d8a0('0xf1')];_0x4f343a[_0x46d8a0('0x1cb')]=_0x2e38d7>0x0?_0x2e38d7:0x1;switch(_0x4f343a[_0x46d8a0('0x1c8')]){case'dropRate':{const _0x3b5598=_0x4f343a[_0x46d8a0('0x10b')]/0x64;return _0x1e78ea[_0x46d8a0('0xc5')](_0x1775f3,_0x1c3c0b,_0x10fb1a,_0x2e38d7,_0x3b5598)['then'](function(_0x3fa09f){return _0x298255(_0x3fa09f);});}case _0x46d8a0('0x20b'):{const _0x30dc58=_0x4f343a[_0x46d8a0('0x10b')]/0x64;return _0x1e78ea['busyFactor'](_0x1775f3,_0x1c3c0b,_0x10fb1a,_0x2e38d7,_0x30dc58)[_0x46d8a0('0x152')](function(_0x269425){return _0x298255(_0x269425);});}default:return _0x1d4499(msgResponse(_0x46d8a0('0x160'),_0x46d8a0('0x184'),_0x46d8a0('0x4d')));}}else return _0x1d4499(msgResponse(_0x46d8a0('0x160'),_0x46d8a0('0x184'),_0x46d8a0('0x145')));});};},Dialer[_0x4b75f8('0x170')][_0x4b75f8('0x13d')]=function(_0x2e60ae){const _0x28690b=this;return function(_0x3cd6e1){return new Promise(function(_0x9c5e13,_0x4d78b9){const _0x5bdd13=a1056_0x3665;_[_0x5bdd13('0xc9')](_0x2e60ae,_0x3cd6e1[0x0]);if(checkGetDataPredictive(_0x3cd6e1[0x0])){loggerPredictive['info'](JSON[_0x5bdd13('0x1bf')](_0x3cd6e1[0x0]));if(_0x2e60ae[_0x5bdd13('0x1c8')]===_0x5bdd13('0x1d0'))return _0x28690b[_0x5bdd13('0x1')](_0x2e60ae['id'])['then'](function(_0x3e633f){const _0x38bc2a=_0x5bdd13,_0xbfb80e=_0x2e60ae[_0x38bc2a('0x19d')]-_0x3e633f[0x0][_0x38bc2a('0xb2')],_0x42b3ef=_0x2e60ae[_0x38bc2a('0x18f')]*0x3c,_0x5475c9=_0x3cd6e1[0x0][_0x38bc2a('0x16e')]+_0x3cd6e1[0x0]['predictiveIntervalAvgHoldtime'],_0x113bc5=(_0x3cd6e1[0x0][_0x38bc2a('0x103')]+_0x3cd6e1[0x0][_0x38bc2a('0x1df')]+_0x3cd6e1[0x0][_0x38bc2a('0x10f')])/_0x3cd6e1[0x0][_0x38bc2a('0xf1')],_0x4cb5d3=_0x2e60ae[_0x38bc2a('0x10b')]/0x64;return _0x2e60ae[_0x38bc2a('0x1cc')]=_0x3e633f[0x0][_0x38bc2a('0xb2')]||0x0,_0x2e60ae[_0x38bc2a('0x1cb')]=_0x113bc5>0x0?_0x113bc5:0x1,_0x28690b[_0x38bc2a('0xc5')](_0xbfb80e,_0x42b3ef,_0x5475c9,_0x113bc5,_0x4cb5d3);})[_0x5bdd13('0x152')](function(_0x4d2742){return _0x9c5e13(_0x4d2742);})[_0x5bdd13('0x12e')](function(_0x5834e1){const _0x4fad7f=_0x5bdd13;return _0x4d78b9(msgResponse('[CatchErlangB]',_0x4fad7f('0x184'),JSON[_0x4fad7f('0x1bf')](_0x5834e1)));});if(_0x2e60ae['dialPredictiveOptimization']===_0x5bdd13('0x20b'))return _0x28690b[_0x5bdd13('0x1')](_0x2e60ae['id'])['then'](function(_0x15bfc3){const _0x18ab68=_0x5bdd13,_0xf78bd7=_0x2e60ae['loggedIn']-_0x15bfc3[0x0][_0x18ab68('0xb2')],_0x44ce03=_0x2e60ae[_0x18ab68('0x18f')]*0x3c,_0x29ab06=_0x3cd6e1[0x0]['predictiveIntervalAvgTalktime']+_0x3cd6e1[0x0][_0x18ab68('0x45')],_0x3f0eda=(_0x3cd6e1[0x0][_0x18ab68('0x103')]+_0x3cd6e1[0x0][_0x18ab68('0x1df')]+_0x3cd6e1[0x0][_0x18ab68('0x10f')])/_0x3cd6e1[0x0][_0x18ab68('0xf1')],_0x541621=_0x2e60ae[_0x18ab68('0x10b')]/0x64;return _0x2e60ae[_0x18ab68('0x1cc')]=_0x15bfc3[0x0]['outboundQueuePauses']||0x0,_0x2e60ae[_0x18ab68('0x1cb')]=_0x3f0eda>0x0?_0x3f0eda:0x1,_0x28690b['busyFactor'](_0xf78bd7,_0x44ce03,_0x29ab06,_0x3f0eda,_0x541621);})[_0x5bdd13('0x152')](function(_0x3b4cd5){return _0x9c5e13(_0x3b4cd5);})[_0x5bdd13('0x12e')](function(_0x368bc8){const _0x24b2af=_0x5bdd13;return _0x4d78b9(msgResponse(_0x24b2af('0x114'),_0x24b2af('0x184'),JSON[_0x24b2af('0x1bf')](_0x368bc8)));});}else return _0x4d78b9(msgResponse(_0x5bdd13('0x160'),'Failure',_0x5bdd13('0x145')));});};},Dialer[_0x4b75f8('0x170')][_0x4b75f8('0xf4')]=function(_0x1dd201){const _0x528532=this;return function(){const _0x4521e3=a1056_0x3665;let _0x46c053=0x0,_0x4d2e3e=Math[_0x4521e3('0x117')](_0x1dd201['erlangCallToSecond']*0x3e8);_0x4d2e3e>0x0?(_0x4d2e3e=_0x4d2e3e<0x64?0x64:_0x4d2e3e,loggerPredictive[_0x4521e3('0x9c')](_0x1dd201[_0x4521e3('0x1b')],_0x4521e3('0x51'),_0x4d2e3e,_0x4521e3('0x11c')),_0x1dd201[_0x4521e3('0x150')]=setInterval(function(){const _0x549916=_0x4521e3;_0x528532['handlePredictive'](_0x1dd201),loggerPredictiveCalls[_0x549916('0x9c')](_0x549916('0xf2'),_0x46c053+=0x1);},_0x4d2e3e)):loggerPredictive[_0x4521e3('0x9c')](_0x1dd201[_0x4521e3('0x1b')],'fail\x20to\x20scheduled\x20calls');};},Dialer[_0x4b75f8('0x170')][_0x4b75f8('0x191')]=function(_0x173a4c,_0x3adc55){const _0x117dd7=this;return function(_0xe7243e){const _0x5abefb=a1056_0x3665;if(_[_0x5abefb('0xc8')](_0xe7243e)){if(_[_0x5abefb('0xa')](_0x3adc55[_0x5abefb('0x1c4')])||!_0x3adc55[_0x5abefb('0x153')]){if(_0x173a4c[_0x5abefb('0xf6')]==='booked'){_0x173a4c[_0x5abefb('0x8c')]=_['isUndefined'](_0x173a4c['queueStatusComplete'])?!![]:_0x173a4c[_0x5abefb('0x8c')];const _0xa610b4=uuid['v4']();_0x117dd7[_0x5abefb('0x87')][_0xa610b4]=new Action(_0x173a4c,_0x3adc55,_0xa610b4),loggerBooked[_0x5abefb('0x9c')](_0x5abefb('0x89'),_0xa610b4,_0x5abefb('0x171'),JSON[_0x5abefb('0x1bf')](_0x173a4c[_0x5abefb('0x8c')]),'Queue:\x20',_0x173a4c['name']),_0x173a4c['queueStatusComplete']?(_0x173a4c[_0x5abefb('0x8c')]=![],_0x117dd7[_0x5abefb('0x54')][_0x117dd7[_0x5abefb('0x87')][_0xa610b4][_0x5abefb('0x13a')]]=[],ami[_0x5abefb('0x109')]({'actionid':_0xa610b4,'action':'queuestatus','queue':_0x173a4c[_0x5abefb('0x1b')]})[_0x5abefb('0x12e')](function(){const _0x27f901=_0x5abefb;_0x117dd7['updateOriginated'](_0x173a4c),_0x117dd7[_0x27f901('0x9b')]({'active':![],'ContactId':_0x117dd7[_0x27f901('0x87')][_0xa610b4][_0x27f901('0x13')],'ListId':_0x117dd7['actions'][_0xa610b4]['ListId'],'VoiceQueueId':_0x117dd7[_0x27f901('0x87')][_0xa610b4][_0x27f901('0x205')]||undefined,'CampaignId':_0x117dd7[_0x27f901('0x87')][_0xa610b4][_0x27f901('0x1e6')]||undefined})[_0x27f901('0x12e')](loggerCatch('[unlockOriginate][syncQueueStatusComplete]')),delete _0x117dd7[_0x27f901('0x87')][_0xa610b4];})):(loggerBooked['info'](_0x5abefb('0x65'),JSON[_0x5abefb('0x1bf')](_0x173a4c['queueStatusComplete']),_0x5abefb('0x1c7'),_0x173a4c['name']),_0x117dd7['updateOriginated'](_0x173a4c),_0x117dd7[_0x5abefb('0x9b')]({'active':![],'ContactId':_0x117dd7[_0x5abefb('0x87')][_0xa610b4][_0x5abefb('0x13')],'ListId':_0x117dd7[_0x5abefb('0x87')][_0xa610b4][_0x5abefb('0x1e2')],'VoiceQueueId':_0x117dd7['actions'][_0xa610b4][_0x5abefb('0x205')]||undefined,'CampaignId':_0x117dd7[_0x5abefb('0x87')][_0xa610b4][_0x5abefb('0x1e6')]||undefined})[_0x5abefb('0x12e')](loggerCatch(_0x5abefb('0x5d'))),delete _0x117dd7[_0x5abefb('0x87')][_0xa610b4]);}else return _0x117dd7[_0x5abefb('0xee')](_0x173a4c,_0x3adc55);}else getDiff(_0x3adc55[_0x5abefb('0x209')])<_0x173a4c['dialRecallMeTimeout']*0x3c?_0x3adc55['Agent']&&!_0x3adc55[_0x5abefb('0x110')][_0x5abefb('0xd7')]?_0x117dd7[_0x5abefb('0x1fb')]['run'](_0x3adc55['id'])[_0x5abefb('0x159')](function(){const _0x362384=_0x5abefb;_0x117dd7[_0x362384('0x39')](_0x173a4c);}):_0x117dd7[_0x5abefb('0x12d')]({'active':![]},_0x3adc55['id'],0x1)[_0x5abefb('0x159')](function(){const _0x3bf154=_0x5abefb;console[_0x3bf154('0x3b')](_0x3bf154('0xcc')),_0x117dd7[_0x3bf154('0x39')](_0x173a4c);}):(_0x173a4c[_0x5abefb('0x7c')]+=0x1,_0x117dd7[_0x5abefb('0x39')](_0x173a4c),_0x173a4c[_0x5abefb('0x1ef')]?(_0x117dd7[_0x5abefb('0x9b')]({'active':![],'recallme':![],'UserId':null,'ContactId':_0x3adc55[_0x5abefb('0x13')],'ListId':_0x3adc55[_0x5abefb('0x1e2')],'VoiceQueueId':_0x3adc55['VoiceQueueId']||undefined,'CampaignId':_0x3adc55['CampaignId']||undefined})['catch'](loggerCatch(_0x5abefb('0x104'))),_0x117dd7['createHistory'](createObjHistory(_0x173a4c,_0x3adc55,_0x5abefb('0x16b'),0x17,'RecallInQueue'))[_0x5abefb('0x12e')](loggerCatch(_0x5abefb('0x29')))):_0x117dd7[_0x5abefb('0x40')](createObjHistory(_0x173a4c,_0x3adc55,_0x5abefb('0x10c'),0x16,_0x5abefb('0x149')),_0x5abefb('0x4a'),_0x5abefb('0x1c')));}else{_0x173a4c[_0x5abefb('0x1ae')]+=0x1,_0x117dd7[_0x5abefb('0x40')](createObjHistory(_0x173a4c,_0x3adc55,_0x5abefb('0xb8'),0xd,_0x5abefb('0x91')),_0x5abefb('0x1f3'),'[Originate][MoveBlacklist]');throw'inBlackList';}};},Dialer[_0x4b75f8('0x170')][_0x4b75f8('0x0')]=function(_0x284241){const _0x1c64c3=_0x4b75f8,_0x54aa60=this;let _0x4c8ae4=_0x284241['limitCalls']-_0x284241['originated']-_0x284241['temp'];emitCampaignSummary(_0x284241),_0x4c8ae4>0x0&&(_0x4c8ae4>this[_0x1c64c3('0x14f')]&&(_0x4c8ae4=this['maxNumberOriginate']),_0x284241[_0x1c64c3('0xdc')]+=_0x4c8ae4,this['getContactDialerIvr'](_0x284241['id'],_0x4c8ae4,_0x284241['dialOrderByScheduledAt'])[_0x1c64c3('0x152')](function(_0x5d2e22){const _0xb5da1b=_0x1c64c3;_0x284241['temp']-=_0x4c8ae4,_0x284241['temp']=_0x284241[_0xb5da1b('0xdc')]>0x0?_0x284241['temp']:0x0;if(!checkContactEmpty(_0x5d2e22))_0x284241['message']=_0xb5da1b('0x1b8'),logger['info'](_0xb5da1b('0x23')+_0x284241['name']);else{_0x284241[_0xb5da1b('0x1dc')]+=_0x5d2e22[_0xb5da1b('0x31')],_0x284241[_0xb5da1b('0x183')]=_0xb5da1b('0xd9');for(let _0x582a10=0x0;_0x582a10<_0x5d2e22['length'];_0x582a10+=0x1){_0x284241[_0xb5da1b('0xc6')]+=0x1,_['isNil'](_0x5d2e22[_0x582a10])||_[_0xb5da1b('0xa')](_0x5d2e22[_0x582a10][_0xb5da1b('0x1b3')])||_['isNil'](_0x5d2e22[_0x582a10][_0xb5da1b('0x1b3')][_0xb5da1b('0x34')])?_0x54aa60[_0xb5da1b('0x18a')](_0xb5da1b('0x140'),_0x284241,_0x5d2e22[_0x582a10]):_0x54aa60[_0xb5da1b('0x15')](_[_0xb5da1b('0x2a')](_0x5d2e22[_0x582a10],['CampaignId','Contact.phone']))[_0xb5da1b('0x152')](_0x54aa60['checkContactBlack'](_0x284241,_0x5d2e22[_0x582a10]))['catch'](_0x54aa60[_0xb5da1b('0x1c2')](_0xb5da1b('0x1c9'),_0x284241));}}})[_0x1c64c3('0x12e')](loggerGetContactDialer(_0x1c64c3('0x22'),_0x284241,_0x4c8ae4)));},Dialer['prototype'][_0x4b75f8('0x1a6')]=function(_0x1a0871,_0x4f4676){const _0x368241=_0x4b75f8,_0x38c760=this,_0x53006e=[];let _0x5f5477=_0x4f4676>=0x1?_0x4f4676:0x1;_0x1a0871[_0x368241('0xf6')]==='booked'&&(_0x5f5477=0x1);let _0x3481c0=Math[_0x368241('0x117')](_0x1a0871['available']*_0x5f5477)-_0x1a0871[_0x368241('0x1dc')]-_0x1a0871[_0x368241('0xdc')];emitVoiceQueueSummary(_0x1a0871);if(_0x1a0871[_0x368241('0x7e')]>0x0){const _0x973c25=_0x1a0871[_0x368241('0x7e')]-_0x1a0871[_0x368241('0x1dc')]-_0x1a0871['talking']-_0x1a0871['temp']-_0x1a0871[_0x368241('0x17d')];_0x3481c0>_0x973c25&&(_0x3481c0=_0x973c25);}if(_0x3481c0>0x0){_0x1a0871[_0x368241('0xf6')]===_0x368241('0x1e5')&&(_0x3481c0=0x1);_0x3481c0>this[_0x368241('0x14f')]&&(_0x3481c0=this['maxNumberOriginate']);_0x1a0871[_0x368241('0xdc')]+=_0x3481c0;for(const _0x49468a in this[_0x368241('0xb4')]){typeof this[_0x368241('0xb4')][_0x49468a]!==_0x368241('0xa1')&&(this['agents'][_0x49468a][_0x368241('0x1d4')]===_0x368241('0xb0')&&this[_0x368241('0xb4')][_0x49468a]['status']===_0x368241('0x16a')&&_0x53006e[_0x368241('0xb9')](this[_0x368241('0xb4')][_0x49468a]['id']));}this['getContactDialer'](_0x1a0871['id'],_0x53006e,_0x3481c0,_0x1a0871[_0x368241('0x1f0')])[_0x368241('0x152')](function(_0xdbe6b0){const _0x290719=_0x368241;_0x1a0871['temp']-=_0x3481c0,_0x1a0871[_0x290719('0xdc')]=_0x1a0871[_0x290719('0xdc')]>0x0?_0x1a0871['temp']:0x0;if(!checkContactEmpty(_0xdbe6b0))_0x38c760[_0x290719('0x113')](_0x1a0871)[_0x290719('0x152')](sendMessageReschedule(_0x1a0871))[_0x290719('0x12e')](loggerCatch('[countReScheduled]\x20'));else{_0x1a0871[_0x290719('0x1dc')]+=_0xdbe6b0[_0x290719('0x31')],_0x1a0871[_0x290719('0x183')]=_0x1a0871['dialMethod']===_0x290719('0x1e5')?_0x290719('0x176'):'RUNNING';for(let _0x2eee7e=0x0;_0x2eee7e<_0xdbe6b0[_0x290719('0x31')];_0x2eee7e+=0x1){_[_0x290719('0xa')](_0xdbe6b0[_0x2eee7e])||_[_0x290719('0xa')](_0xdbe6b0[_0x2eee7e][_0x290719('0x1b3')])||_[_0x290719('0xa')](_0xdbe6b0[_0x2eee7e]['Contact'][_0x290719('0x34')])?_0x38c760[_0x290719('0x18a')](_0x290719('0x140'),_0x1a0871,_0xdbe6b0[_0x2eee7e]):_0x38c760[_0x290719('0x1da')](_[_0x290719('0x2a')](_0xdbe6b0[_0x2eee7e],[_0x290719('0x205'),_0x290719('0x115')]))[_0x290719('0x152')](_0x38c760[_0x290719('0x191')](_0x1a0871,_0xdbe6b0[_0x2eee7e]))[_0x290719('0x12e')](_0x38c760[_0x290719('0x1c2')](_0x290719('0x140'),_0x1a0871));}}})[_0x368241('0x12e')](loggerGetContactDialer(_0x368241('0x206'),_0x1a0871,_0x3481c0));}},Dialer[_0x4b75f8('0x170')][_0x4b75f8('0x150')]=function(_0x4ca6e8){const _0x4ca34f=_0x4b75f8;if(_0x4ca6e8['dialLimitQueue']>0x0){const _0x2b8c7e=_0x4ca6e8['dialLimitQueue']-_0x4ca6e8['originated']-_0x4ca6e8[_0x4ca34f('0x139')];_0x2b8c7e>0x0?this[_0x4ca34f('0xf3')](_0x4ca6e8):loggerPredictiveCalls[_0x4ca34f('0x9c')]('[handlePredictive][limitChannel]');}else this['tryOriginatePredictive'](_0x4ca6e8);},Dialer[_0x4b75f8('0x170')][_0x4b75f8('0xf3')]=function(_0x337bb8){const _0x20d295=_0x4b75f8,_0x19fc20=this,_0x474915=[];_0x337bb8['originated']+=0x1;for(const _0x5b0c93 in this[_0x20d295('0xb4')]){typeof this[_0x20d295('0xb4')][_0x5b0c93]!==_0x20d295('0xa1')&&(this[_0x20d295('0xb4')][_0x5b0c93]['state']===_0x20d295('0xb0')&&this[_0x20d295('0xb4')][_0x5b0c93][_0x20d295('0x1e1')]===_0x20d295('0x16a')&&_0x474915[_0x20d295('0xb9')](this[_0x20d295('0xb4')][_0x5b0c93]['id']));}this[_0x20d295('0x11e')](_0x337bb8['id'],_0x474915,0x1,_0x337bb8[_0x20d295('0x1f0')])['then'](function(_0x46d341){const _0x372bb4=_0x20d295;!checkContactEmpty(_0x46d341)?(checkContactLowerLimitOriginate(_0x337bb8,0x1,0x0),_0x19fc20[_0x372bb4('0x113')](_0x337bb8)[_0x372bb4('0x152')](sendMessageReschedule(_0x337bb8))['catch'](loggerCatch('[countReScheduled]\x20'))):(_0x337bb8['message']=_0x372bb4('0xd9'),_[_0x372bb4('0xa')](_0x46d341[0x0])||_[_0x372bb4('0xa')](_0x46d341[0x0][_0x372bb4('0x1b3')])||_[_0x372bb4('0xa')](_0x46d341[0x0][_0x372bb4('0x1b3')]['phone'])?_0x19fc20['emptyContact'](_0x372bb4('0x140'),_0x337bb8,_0x46d341[0x0]):_0x19fc20[_0x372bb4('0x1da')](_[_0x372bb4('0x2a')](_0x46d341[0x0],[_0x372bb4('0x205'),'Contact.phone']))['then'](_0x19fc20['checkContactBlack'](_0x337bb8,_0x46d341[0x0]))[_0x372bb4('0x12e')](_0x19fc20[_0x372bb4('0x1c2')]('[actionOriginatePredictive]\x20',_0x337bb8)));})[_0x20d295('0x12e')](loggerGetContactDialer(_0x20d295('0x88'),_0x337bb8,0x1)),emitVoiceQueueSummary(_0x337bb8);},Dialer['prototype']['abandonmentRate']=function(_0x5449c9,_0x4a297b,_0x3a7914,_0x260006,_0x4d808b,_0x15961c){const _0xb1e915=_0x4b75f8;return loggerPredictive[_0xb1e915('0x9c')]('--------\x20Drop\x20Rate\x20--------'),loggerPredictive['info'](_0xb1e915('0x163'),_0x5449c9),loggerPredictive[_0xb1e915('0x9c')](_0xb1e915('0x15c'),_0x4a297b),loggerPredictive[_0xb1e915('0x9c')](_0xb1e915('0xec'),_0x3a7914),loggerPredictive['info'](_0xb1e915('0xb1'),_0x260006),loggerPredictive['info'](_0xb1e915('0x24'),_0x4d808b),loggerPredictive[_0xb1e915('0x9c')](_0xb1e915('0x108')),new Promise(function(_0x1a6be1,_0xf9eade){const _0x3d1011=_0xb1e915;if(_0x5449c9<=0x0||isNaN(_0x5449c9))return _0xf9eade(msgResponse('[abandonmentRate]',_0x3d1011('0x8'),_0x3d1011('0x15f')+_0x5449c9));if(_0x3a7914<=0x0||isNaN(_0x3a7914))return _0xf9eade(msgResponse(_0x3d1011('0x1ba'),_0x3d1011('0x8'),_0x3d1011('0xd6')+_0x3a7914));if(_0x260006<=0x0||isNaN(_0x260006))return _0xf9eade(msgResponse('[abandonmentRate]',_0x3d1011('0x8'),'p\x20=\x20'+_0x260006));if(_0x4a297b<=0x0||isNaN(_0x4a297b))return _0xf9eade(msgResponse('[abandonmentRate]',_0x3d1011('0x8'),_0x3d1011('0xf5')+_0x4a297b));if(_0x4d808b<=0x0||isNaN(_0x4d808b))return _0xf9eade(msgResponse('[abandonmentRate]',_0x3d1011('0x8'),_0x3d1011('0x19e')+_0x4d808b));_0x15961c=_0x15961c||0x0;const _0x295a4a=0x1/_0x3a7914;let _0x562466=0x0,_0x143638=0x0,_0x586d24=0x0,_0x37d3fb=0x0,_0xb80cf=0x0;for(_0xb80cf=0x0;_0x586d24<_0x4d808b;_0xb80cf+=0x1){_0x143638=_0xb80cf/_0x4a297b,_0x562466=(_0x260006*_0x143638+_0x15961c)/_0x295a4a,_0x586d24=erlangb(_0x562466,_0x5449c9),_0x37d3fb=_0x562466/_0x5449c9*(0x1-erlangb(_0x562466,_0x5449c9));}return _0x1a6be1({'erlangCalls':_0xb80cf,'erlangCallToSecond':_0x4a297b/_0xb80cf,'erlangAbandonmentRate':_0x586d24,'erlangBusyFactor':_0x37d3fb});});},Dialer['prototype'][_0x4b75f8('0x1a8')]=function(_0xa487fa,_0x3e1514,_0x1b52d7,_0x44d9ce,_0x1f0f89,_0xbae93a){const _0x5203da=_0x4b75f8;return loggerPredictive[_0x5203da('0x9c')]('----\x20Agent\x20Busy\x20Factor\x20----'),loggerPredictive['info'](_0x5203da('0x163'),_0xa487fa),loggerPredictive[_0x5203da('0x9c')](_0x5203da('0x15c'),_0x3e1514),loggerPredictive[_0x5203da('0x9c')]('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',_0x1b52d7),loggerPredictive[_0x5203da('0x9c')](_0x5203da('0xb1'),_0x44d9ce),loggerPredictive[_0x5203da('0x9c')](_0x5203da('0xb6'),_0x1f0f89),loggerPredictive[_0x5203da('0x9c')](_0x5203da('0x108')),new Promise(function(_0x2cbcbc,_0x5d23b9){const _0x35de21=_0x5203da;if(_0xa487fa<=0x0||isNaN(_0xa487fa))return _0x5d23b9(msgResponse(_0x35de21('0x49'),_0x35de21('0x8'),_0x35de21('0x15f')+_0xa487fa));if(_0x1b52d7<=0x0||isNaN(_0x1b52d7))return _0x5d23b9(msgResponse('[busyFactor]','Error',_0x35de21('0xd6')+_0x1b52d7));if(_0x44d9ce<=0x0||isNaN(_0x44d9ce))return _0x5d23b9(msgResponse(_0x35de21('0x49'),_0x35de21('0x8'),'p\x20=\x20'+_0x44d9ce));if(_0x3e1514<=0x0||isNaN(_0x3e1514))return _0x5d23b9(msgResponse(_0x35de21('0x49'),_0x35de21('0x8'),'interval\x20=\x20'+_0x3e1514));if(_0x1f0f89<=0x0||isNaN(_0x1f0f89))return _0x5d23b9(msgResponse(_0x35de21('0x49'),_0x35de21('0x8'),_0x35de21('0x86')+_0x1f0f89));_0xbae93a=_0xbae93a||0x0;const _0x5d760e=0x1/_0x1b52d7;let _0x53ab85=0x0,_0x2fe355=0x0,_0x1ddda2=0x0,_0x3860f9=0x0,_0x233c08=0x0;for(_0x233c08=0x0;_0x3860f9<_0x1f0f89;_0x233c08+=0x1){_0x2fe355=_0x233c08/_0x3e1514,_0x53ab85=(_0x44d9ce*_0x2fe355+_0xbae93a)/_0x5d760e,_0x1ddda2=erlangb(_0x53ab85,_0xa487fa),_0x3860f9=_0x53ab85/_0xa487fa*(0x1-erlangb(_0x53ab85,_0xa487fa));}return _0x2cbcbc({'erlangCalls':_0x233c08,'erlangCallToSecond':_0x3e1514/_0x233c08,'erlangAbandonmentRate':_0x1ddda2,'erlangBusyFactor':_0x3860f9});});},module[_0x4b75f8('0x1d3')]=Dialer; \ No newline at end of file +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 diff --git a/server/services/ami/dialer/queueCallerAbandon.js b/server/services/ami/dialer/queueCallerAbandon.js index 9b4e0eb..e03ee94 100644 --- a/server/services/ami/dialer/queueCallerAbandon.js +++ b/server/services/ami/dialer/queueCallerAbandon.js @@ -1 +1 @@ -const a1057_0x579e=['calleridnum','countabandonedretry','callbackuniqueid','membername','type','queue','calleridname','outbound','campaigntype','diff','uniqueid','droptime','countnosuchnumberretry','countmachineretry','exports','VoiceQueueId','countcongestionretry','countnoanswerretry','UserId','scheduledat','endtime','holdtime','seconds','talktime','reason','ContactId','milliseconds','callback','starttime','countagentrejectretry','countglobal','countdropretry','originatecalleridnum','callbackat','countbusyretry','CampaignId','responsetime','recallme','originatecalleridname','ListId','ringtime'];(function(_0x225fc1,_0x579e9b){const _0x286475=function(_0xf65854){while(--_0xf65854){_0x225fc1['push'](_0x225fc1['shift']());}};_0x286475(++_0x579e9b);}(a1057_0x579e,0x1d4));const a1057_0x2864=function(_0x225fc1,_0x579e9b){_0x225fc1=_0x225fc1-0x0;let _0x286475=a1057_0x579e[_0x225fc1];return _0x286475;};const _0x315340=a1057_0x2864;'use strict';const moment=require('moment');function getSeconds(_0xf65854,_0x3ceee0){const _0x1b739e=a1057_0x2864,_0x121751=moment(_0xf65854)['milliseconds'](0x0),_0x25d367=moment(_0x3ceee0)[_0x1b739e('0x9')](0x0);return _0x121751[_0x1b739e('0x21')](_0x25d367,_0x1b739e('0x5'));}function QueueCallerAbandon(_0x383c6e,_0x503796){const _0x1c0cd4=a1057_0x2864;this['scheduledat']=_0x383c6e[_0x1c0cd4('0x2')],this[_0x1c0cd4('0x1c')]=_0x383c6e[_0x1c0cd4('0x1c')],this[_0x1c0cd4('0x20')]=_0x383c6e['type']===_0x1c0cd4('0x1f')?_0x1c0cd4('0x1d'):_0x383c6e[_0x1c0cd4('0x1c')],this[_0x1c0cd4('0x11')]=_0x383c6e['countbusyretry'],this[_0x1c0cd4('0x28')]=_0x383c6e[_0x1c0cd4('0x28')],this[_0x1c0cd4('0x0')]=_0x383c6e[_0x1c0cd4('0x0')],this[_0x1c0cd4('0xd')]=_0x383c6e['countbusyretry']+_0x383c6e[_0x1c0cd4('0x28')]+_0x383c6e['countnoanswerretry']+_0x383c6e['countnosuchnumberretry']+_0x383c6e['countdropretry']+_0x383c6e[_0x1c0cd4('0x19')]+_0x383c6e[_0x1c0cd4('0x25')]+_0x383c6e['countagentrejectretry'],this[_0x1c0cd4('0x24')]=_0x383c6e[_0x1c0cd4('0x24')],this['countdropretry']=_0x383c6e[_0x1c0cd4('0xe')],this['countabandonedretry']=_0x383c6e[_0x1c0cd4('0x19')],this['countmachineretry']=_0x383c6e[_0x1c0cd4('0x25')],this[_0x1c0cd4('0xc')]=_0x383c6e[_0x1c0cd4('0xc')],this[_0x1c0cd4('0x22')]=_0x503796[_0x1c0cd4('0x22')],this[_0x1c0cd4('0x1e')]=_0x383c6e['name'],this[_0x1c0cd4('0x18')]=_0x383c6e['number'],this[_0x1c0cd4('0xb')]=_0x383c6e[_0x1c0cd4('0xb')],this[_0x1c0cd4('0x13')]=_0x383c6e[_0x1c0cd4('0x13')],this[_0x1c0cd4('0x23')]=_0x383c6e[_0x1c0cd4('0x23')],this[_0x1c0cd4('0x3')]=this[_0x1c0cd4('0x23')],this[_0x1c0cd4('0x17')]=getSeconds(_0x383c6e[_0x1c0cd4('0x13')],_0x383c6e[_0x1c0cd4('0xb')]),this[_0x1c0cd4('0x4')]=getSeconds(this[_0x1c0cd4('0x23')],_0x383c6e[_0x1c0cd4('0x13')]),this[_0x1c0cd4('0x6')]=0x0,this[_0x1c0cd4('0x1d')]=_0x503796[_0x1c0cd4('0x1d')],this[_0x1c0cd4('0x1b')]=_0x503796['connectedlinename'],this[_0x1c0cd4('0x7')]=_0x503796[_0x1c0cd4('0x7')],this[_0x1c0cd4('0xa')]=_0x383c6e[_0x1c0cd4('0xa')],this[_0x1c0cd4('0x1a')]=_0x383c6e['callbackuniqueid'],this[_0x1c0cd4('0x10')]=_0x383c6e[_0x1c0cd4('0x10')],this[_0x1c0cd4('0x14')]=_0x383c6e[_0x1c0cd4('0x14')],this[_0x1c0cd4('0x8')]=_0x383c6e[_0x1c0cd4('0x8')],this[_0x1c0cd4('0x16')]=_0x383c6e[_0x1c0cd4('0x16')],this['UserId']=_0x383c6e[_0x1c0cd4('0x1')],this[_0x1c0cd4('0x27')]=_0x383c6e[_0x1c0cd4('0x27')],this[_0x1c0cd4('0x12')]=_0x383c6e[_0x1c0cd4('0x12')],this[_0x1c0cd4('0xf')]=_0x383c6e[_0x1c0cd4('0xf')]||'',this[_0x1c0cd4('0x15')]=_0x383c6e[_0x1c0cd4('0x15')]||'';}module[_0x315340('0x26')]=QueueCallerAbandon; \ No newline at end of file +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 diff --git a/server/services/ami/fax/action.js b/server/services/ami/fax/action.js index 0202e2a..7cb75ac 100644 --- a/server/services/ami/fax/action.js +++ b/server/services/ami/fax/action.js @@ -1 +1 @@ -const a1058_0x8c23=['channel','fax','AttachmentId','localstationid','uniqueid','headerinfo','util','path','tech','exports','%s/%s/%s','name'];(function(_0x5a10e1,_0x8c23db){const _0x536c78=function(_0x27678d){while(--_0x27678d){_0x5a10e1['push'](_0x5a10e1['shift']());}};_0x536c78(++_0x8c23db);}(a1058_0x8c23,0x184));const a1058_0x536c=function(_0x5a10e1,_0x8c23db){_0x5a10e1=_0x5a10e1-0x0;let _0x536c78=a1058_0x8c23[_0x5a10e1];return _0x536c78;};const _0x2b0a64=a1058_0x536c;'use strict';const util=require(_0x2b0a64('0x2'));function Action(_0x27678d,_0x35685f,_0x38461e){const _0x10fe2a=_0x2b0a64;this[_0x10fe2a('0x0')]=_0x27678d||undefined,this[_0x10fe2a('0x8')]=util['format'](_0x10fe2a('0x6'),_0x35685f[_0x10fe2a('0x4')],_0x35685f['Trunk'][_0x10fe2a('0x7')],_0x38461e[_0x10fe2a('0x9')]),this[_0x10fe2a('0xb')]=_0x35685f[_0x10fe2a('0xb')],this[_0x10fe2a('0x1')]=_0x35685f[_0x10fe2a('0x1')],this[_0x10fe2a('0x3')]=_0x38461e[_0x10fe2a('0x3')],this['AttachmentId']=_0x38461e[_0x10fe2a('0xa')];}module[_0x2b0a64('0x5')]=Action; \ No newline at end of file +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 diff --git a/server/services/ami/fax/index.js b/server/services/ami/fax/index.js index 2c20260..3c1c0d5 100644 --- a/server/services/ami/fax/index.js +++ b/server/services/ami/fax/index.js @@ -1 +1 @@ -const a1060_0x5141=['syncHangup','[Fax][execOriginate][failure]','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','reason','transferrate','Fax\x20failed','../rpc/faxAccount','syncOriginateResponse','SENDING\x20FAILED:\x20','pagestransferred','bind','application/pdf','/var/opt/motion2/server/files/attachments/','newstate','status','operation','syncNewchannel','undefined','fax','%s/%s.tif','../rpc/attachment','AttachmentId','uuid','path','util','[Fax][Message][Error][NoUpdate1]','[Fax][checkTrunk][Trunk\x20not\x20work]','trunks','checkAfterSend','./util/gs','\x20syncNewchannel\x20','\x20syncFaxStatus\x20','message','Convert\x20pdf\x20to\x20tif','Empty\x20Fax','\x20Trunk\x20is\x20not\x20active','updateStatus','parse','receivefax','value','\x20result\x20conversion\x20file\x20','logger','actions','faxpages','update','Fax\x20received','error','info','filename','FaxAccountId','channels','Trunk\x20not\x20working','syncVarSet','syncNewState','pick','SENDING\x20FAILED\x20','[Fax][Message][Error][Updated]','localstationid','\x20hangup\x20sendFile\x20','[Fax][Message][NoUpdate2]','Trunk','Is\x20Valid','calleridnum','active','prototype','faxstatus','[Fax][execOriginate][success]','faxAccounts','channelstatedesc','unmonitored','variable','response','execOriginate','then','remotestationid','format','stringify','SIP/%s','isNil','.pdf','name','exten','exports','Action','./util/util','channelstate','tiff2pdf','syncNewExten','uniqueid','Empty\x20path','faxstatusstring','finally','../ami','catch','syncReceiveFax','context','Trunk\x20Reachable','[Fax][checkTrunk][Empty\x20Fax]','execute','../rpc/faxMessage','XMF-PATH','channel','\x20receiveFax\x20','SENDING\x20FAILED','syncFaxStatus','[Fax][Message][NoUpdate1]','variablesAction','addVariables','isTrunkReachable','\x20hangup\x20faxRiceive\x20','newexten'];(function(_0x54459c,_0x5141ec){const _0xa40a76=function(_0xf6ad3d){while(--_0xf6ad3d){_0x54459c['push'](_0x54459c['shift']());}};_0xa40a76(++_0x5141ec);}(a1060_0x5141,0xaa));const a1060_0xa40a=function(_0x54459c,_0x5141ec){_0x54459c=_0x54459c-0x0;let _0xa40a76=a1060_0x5141[_0x54459c];return _0xa40a76;};const _0x216e9d=a1060_0xa40a;'use strict';const util=require(_0x216e9d('0x4c')),_=require('lodash'),uuid=require(_0x216e9d('0x4a')),path=require('path'),tiff2pdf=require(_0x216e9d('0x1b')),gs=require(_0x216e9d('0x51')),logger=require('../../../config/logger')(_0x216e9d('0x46')),ami=require(_0x216e9d('0x21')),ut=require(_0x216e9d('0x19')),Action=require('./action'),faxAccount=require(_0x216e9d('0x3a')),attachment=require(_0x216e9d('0x48')),faxMessage=require(_0x216e9d('0x28'));function Fax(_0xf6ad3d){const _0x53b2b3=_0x216e9d;this['channels']={},this[_0x53b2b3('0x8')]=_0xf6ad3d['faxAccounts'],this[_0x53b2b3('0x4f')]=_0xf6ad3d[_0x53b2b3('0x4f')],this[_0x53b2b3('0x5e')]={},ami['on']('newchannel',this['syncNewchannel'][_0x53b2b3('0x3e')](this)),ami['on']('varset',this[_0x53b2b3('0x68')][_0x53b2b3('0x3e')](this)),ami['on'](_0x53b2b3('0x41'),this[_0x53b2b3('0x69')][_0x53b2b3('0x3e')](this)),ami['on'](_0x53b2b3('0x33'),this[_0x53b2b3('0x1c')]['bind'](this)),ami['on'](_0x53b2b3('0x6'),this[_0x53b2b3('0x2d')][_0x53b2b3('0x3e')](this)),ami['on'](_0x53b2b3('0x5a'),this['syncReceiveFax'][_0x53b2b3('0x3e')](this)),ami['on']('hangup',this['syncHangup'][_0x53b2b3('0x3e')](this)),ami['on']('originateresponse',this[_0x53b2b3('0x3b')][_0x53b2b3('0x3e')](this));}Fax[_0x216e9d('0x5')][_0x216e9d('0x44')]=function(_0x191ae7){const _0x4a83d7=_0x216e9d;if(_0x191ae7[_0x4a83d7('0x24')]==='from-voip-provider')for(const _0x25424d in this[_0x4a83d7('0x8')]){typeof this[_0x4a83d7('0x8')][_0x25424d]!==_0x4a83d7('0x45')&&(_0x191ae7[_0x4a83d7('0x16')]===this[_0x4a83d7('0x8')][_0x25424d][_0x4a83d7('0x6d')]&&(this[_0x4a83d7('0x66')][_0x191ae7[_0x4a83d7('0x1d')]]={},this['channels'][_0x191ae7[_0x4a83d7('0x1d')]][_0x4a83d7('0x2a')]=_0x191ae7[_0x4a83d7('0x2a')],this[_0x4a83d7('0x66')][_0x191ae7[_0x4a83d7('0x1d')]]['id']=this[_0x4a83d7('0x8')][_0x25424d]['id'],this[_0x4a83d7('0x66')][_0x191ae7[_0x4a83d7('0x1d')]]['name']=this[_0x4a83d7('0x8')][_0x25424d]['name'],logger[_0x4a83d7('0x63')](_0x191ae7['uniqueid'],'\x20syncNewchannel\x20')));}this[_0x4a83d7('0x5e')][_0x191ae7[_0x4a83d7('0x1d')]]&&(this[_0x4a83d7('0x66')][_0x191ae7[_0x4a83d7('0x1d')]]={},this[_0x4a83d7('0x66')][_0x191ae7[_0x4a83d7('0x1d')]]['channel']=_0x191ae7[_0x4a83d7('0x2a')],logger[_0x4a83d7('0x63')](_0x191ae7[_0x4a83d7('0x1d')],_0x4a83d7('0x52')));},Fax[_0x216e9d('0x5')][_0x216e9d('0x68')]=function(_0x562c6c){const _0x256ef0=_0x216e9d;if(this[_0x256ef0('0x66')][_0x562c6c['uniqueid']])for(const _0x5556c4 in _0x562c6c[_0x256ef0('0xb')]){typeof _0x562c6c[_0x256ef0('0xb')][_0x5556c4]!==_0x256ef0('0x45')&&(this[_0x256ef0('0x66')][_0x562c6c[_0x256ef0('0x1d')]][_0x5556c4]=_0x562c6c['value']);}},Fax[_0x216e9d('0x5')][_0x216e9d('0x69')]=function(_0x46d5e4){const _0x27a9ee=_0x216e9d;this[_0x27a9ee('0x66')][_0x46d5e4[_0x27a9ee('0x1d')]]&&(this[_0x27a9ee('0x66')][_0x46d5e4[_0x27a9ee('0x1d')]][_0x27a9ee('0x1a')]=_0x46d5e4['channelstate'],this[_0x27a9ee('0x66')][_0x46d5e4[_0x27a9ee('0x1d')]][_0x27a9ee('0x9')]=_0x46d5e4['channelstatedesc']);},Fax[_0x216e9d('0x5')][_0x216e9d('0x1c')]=function(_0x30598d){const _0x518389=_0x216e9d;if(this[_0x518389('0x66')][_0x30598d[_0x518389('0x1d')]])for(const _0x452b90 in _0x30598d['variable']){typeof _0x30598d[_0x518389('0xb')][_0x452b90]!==_0x518389('0x45')&&(this[_0x518389('0x66')][_0x30598d[_0x518389('0x1d')]][_0x452b90]=_0x30598d[_0x518389('0x5b')]);}},Fax['prototype']['syncFaxStatus']=function(_0xca2f97){const _0x41d8c2=_0x216e9d;this[_0x41d8c2('0x66')][_0xca2f97[_0x41d8c2('0x1d')]]&&(this['channels'][_0xca2f97[_0x41d8c2('0x1d')]][_0x41d8c2('0x43')]=_0xca2f97[_0x41d8c2('0x43')],this[_0x41d8c2('0x66')][_0xca2f97['uniqueid']][_0x41d8c2('0x42')]=_0xca2f97[_0x41d8c2('0x42')],this['channels'][_0xca2f97['uniqueid']][_0x41d8c2('0x6d')]=_0xca2f97[_0x41d8c2('0x6d')],this[_0x41d8c2('0x66')][_0xca2f97[_0x41d8c2('0x1d')]][_0x41d8c2('0x64')]=_0xca2f97[_0x41d8c2('0x64')],logger[_0x41d8c2('0x63')](_0xca2f97['uniqueid'],_0x41d8c2('0x53')));},Fax[_0x216e9d('0x5')][_0x216e9d('0x23')]=function(_0x8af8d){const _0x566dd7=_0x216e9d;if(this[_0x566dd7('0x66')][_0x8af8d['uniqueid']]){const _0x1415e0=this[_0x566dd7('0x66')][_0x8af8d[_0x566dd7('0x1d')]]['id'];this['channels'][_0x8af8d[_0x566dd7('0x1d')]][_0x566dd7('0xf')]=_0x8af8d[_0x566dd7('0xf')],this['channels'][_0x8af8d[_0x566dd7('0x1d')]][_0x566dd7('0x3d')]=_0x8af8d[_0x566dd7('0x3d')],this[_0x566dd7('0x66')][_0x8af8d['uniqueid']][_0x566dd7('0x6d')]=_0x8af8d[_0x566dd7('0x6d')],this[_0x566dd7('0x66')][_0x8af8d[_0x566dd7('0x1d')]]['resolution']=_0x8af8d['resolution'],this[_0x566dd7('0x66')][_0x8af8d[_0x566dd7('0x1d')]][_0x566dd7('0x38')]=_0x8af8d[_0x566dd7('0x38')],this['channels'][_0x8af8d['uniqueid']][_0x566dd7('0x64')]=_0x8af8d[_0x566dd7('0x64')],this[_0x566dd7('0x66')][_0x8af8d[_0x566dd7('0x1d')]][_0x566dd7('0x3')]=_0x8af8d[_0x566dd7('0x3')],this['channels'][_0x8af8d[_0x566dd7('0x1d')]][_0x566dd7('0x3d')]>0x0&&tiff2pdf(_0x8af8d[_0x566dd7('0x64')],_0x566dd7('0x40'),function(_0x432073){const _0x31af35=_0x566dd7;logger[_0x31af35('0x63')](_0x8af8d[_0x31af35('0x1d')],_0x31af35('0x5c'),_0x432073[_0x31af35('0x54')]),attachment['create']({'name':path[_0x31af35('0x59')](_0x8af8d[_0x31af35('0x64')])['name'],'basename':path[_0x31af35('0x59')](_0x8af8d[_0x31af35('0x64')])[_0x31af35('0x15')]+_0x31af35('0x14'),'type':_0x31af35('0x3f')})[_0x31af35('0xe')](function(_0x1a07cb){const _0x5558c0=_0x31af35;faxAccount['notify'](_0x1415e0,{'from':_0x8af8d['calleridnum'],'mapKey':_0x5558c0('0x46'),'body':path[_0x5558c0('0x59')](_0x8af8d[_0x5558c0('0x64')])[_0x5558c0('0x15')]+_0x5558c0('0x14'),'AttachmentId':_0x1a07cb['id']})[_0x5558c0('0x22')](function(_0x1d451){const _0x5a8b6c=_0x5558c0;logger['error'](_0x8af8d[_0x5a8b6c('0x1d')],'\x20notify\x20',JSON[_0x5a8b6c('0x11')](_0x1d451));});})[_0x31af35('0x22')](function(_0x349ad4){const _0x1b0639=_0x31af35;logger[_0x1b0639('0x62')](_0x8af8d[_0x1b0639('0x1d')],_0x1b0639('0x2b'),JSON[_0x1b0639('0x11')](_0x349ad4));});}),logger[_0x566dd7('0x63')](_0x8af8d[_0x566dd7('0x1d')],_0x566dd7('0x2b'));}},Fax[_0x216e9d('0x5')][_0x216e9d('0x3b')]=function(_0x457187){const _0x1fd8be=_0x216e9d;this[_0x1fd8be('0x5e')][_0x457187['uniqueid']]&&_['merge'](this[_0x1fd8be('0x66')][_0x457187[_0x1fd8be('0x1d')]],_[_0x1fd8be('0x6a')](_0x457187,[_0x1fd8be('0xc'),_0x1fd8be('0x37')]));};function updateStatus(_0x75d8a1){const _0x15f7d3=_0x216e9d;_0x75d8a1[_0x15f7d3('0x49')]?faxMessage['update'](_0x75d8a1[_0x15f7d3('0x49')],{'failMessage':_0x15f7d3('0x6b')})['then'](function(_0x883cf8){const _0x272b5c=_0x15f7d3;ut['logger'](_0x272b5c('0x6c'),_0x883cf8);})[_0x15f7d3('0x22')](function(_0x3b6786){const _0x3d411d=_0x15f7d3;ut[_0x3d411d('0x5d')](_0x3d411d('0x4d'),_0x3b6786);}):ut[_0x15f7d3('0x5d')]('[Fax][Message][Error][NoUpdate2]');}Fax[_0x216e9d('0x5')][_0x216e9d('0x58')]=function(_0x778f36,_0x55acad,_0x43d152){const _0x391768=_0x216e9d,_0x14649e=this;let _0x4bce80={};_0x55acad?_0x4bce80={'read':_0x55acad}:_0x4bce80={'failMessage':_0x43d152},this[_0x391768('0x5e')][_0x778f36][_0x391768('0x49')]?faxMessage[_0x391768('0x60')](this['actions'][_0x778f36][_0x391768('0x49')],_0x4bce80)[_0x391768('0xe')](function(_0xf3b288){const _0x2289b9=_0x391768;ut[_0x2289b9('0x5d')]('[Fax][Message][Updated]',_0xf3b288);})[_0x391768('0x22')](function(_0x5e80c3){const _0x1580c5=_0x391768;ut[_0x1580c5('0x5d')](_0x1580c5('0x2e'),_0x5e80c3);})[_0x391768('0x20')](function(){const _0xa75cb2=_0x391768;delete _0x14649e['channels'][_0x778f36],delete _0x14649e[_0xa75cb2('0x5e')][_0x778f36];}):(ut[_0x391768('0x5d')](_0x391768('0x0')),delete this[_0x391768('0x66')][_0x778f36],delete this['actions'][_0x778f36]);},Fax[_0x216e9d('0x5')][_0x216e9d('0x34')]=function(_0x5d9e7c){const _0x17deed=_0x216e9d;this[_0x17deed('0x66')][_0x5d9e7c[_0x17deed('0x1d')]]&&(this[_0x17deed('0x5e')][_0x5d9e7c[_0x17deed('0x1d')]]&&(this[_0x17deed('0x66')][_0x5d9e7c['uniqueid']]['id']=this[_0x17deed('0x5e')][_0x5d9e7c['uniqueid']]['id'],this['channels'][_0x5d9e7c[_0x17deed('0x1d')]][_0x17deed('0x15')]=this[_0x17deed('0x5e')][_0x5d9e7c[_0x17deed('0x1d')]][_0x17deed('0x15')]),logger[_0x17deed('0x63')](_0x5d9e7c[_0x17deed('0x1d')],this['actions'][_0x5d9e7c[_0x17deed('0x1d')]]?_0x17deed('0x6e'):_0x17deed('0x32'),JSON[_0x17deed('0x11')](this[_0x17deed('0x66')][_0x5d9e7c[_0x17deed('0x1d')]])),this[_0x17deed('0x5e')][_0x5d9e7c[_0x17deed('0x1d')]]&&(this['channels'][_0x5d9e7c[_0x17deed('0x1d')]][_0x17deed('0x5f')]>0x0&&this[_0x17deed('0x66')][_0x5d9e7c[_0x17deed('0x1d')]][_0x17deed('0x6')]==='SUCCESS'?this[_0x17deed('0x58')](_0x5d9e7c[_0x17deed('0x1d')],!![]):this['updateStatus'](_0x5d9e7c[_0x17deed('0x1d')],![],this[_0x17deed('0x66')][_0x5d9e7c[_0x17deed('0x1d')]][_0x17deed('0x1f')]?_0x17deed('0x3c')+this[_0x17deed('0x66')][_0x5d9e7c[_0x17deed('0x1d')]][_0x17deed('0x1f')]:_0x17deed('0x2c'))));},Fax['prototype']['send']=function(_0x450bcc){const _0x34bc94=this;return new Promise(function(_0x3e3c66,_0x1d21fc){const _0x2622b0=a1060_0xa40a;_0x34bc94[_0x2622b0('0xd')](_0x450bcc,_0x34bc94[_0x2622b0('0x8')][_0x450bcc[_0x2622b0('0x65')]])['then'](function(_0x3fc726){const _0x4f1d81=_0x2622b0;ut[_0x4f1d81('0x5d')](_0x4f1d81('0x7'),_0x3fc726),_0x3e3c66(ut['message'](_0x4f1d81('0x61')));})['catch'](function(_0x3a7598){const _0x138d0c=_0x2622b0;ut[_0x138d0c('0x5d')](_0x138d0c('0x35'),_0x3a7598),updateStatus(_0x450bcc),_0x1d21fc(ut['message'](_0x138d0c('0x39')));});});},Fax[_0x216e9d('0x5')][_0x216e9d('0x50')]=function(_0x1ed811){const _0x188b0b=this;return new Promise(function(_0x102ef6,_0x27e715){const _0x5e7f8a=a1060_0xa40a,_0x1c9df4=_0x188b0b['checkTrunk'](_0x188b0b[_0x5e7f8a('0x8')][_0x1ed811[_0x5e7f8a('0x65')]][_0x5e7f8a('0x1')],_0x1ed811);_0x1c9df4['isValid']?_0x102ef6(ut['message'](_0x5e7f8a('0x25'))):_0x27e715(ut[_0x5e7f8a('0x54')](_0x1c9df4[_0x5e7f8a('0x54')]));});};function originate(_0x56628a,_0x5ddb9e,_0x2f0ba1){return new Promise(function(_0x3568d0,_0x5dd097){const _0x3661dc=a1060_0xa40a;if(_0x2f0ba1){const _0x3f69fa=util[_0x3661dc('0x10')](_0x3661dc('0x36'),path[_0x3661dc('0x59')](_0x56628a[_0x3661dc('0x4b')])[_0x3661dc('0x15')],_0x56628a[_0x3661dc('0x4b')]);gs[_0x3661dc('0x27')](_0x3f69fa)[_0x3661dc('0xe')](function(){const _0x544634=_0x3661dc;_0x56628a[_0x544634('0x4b')]=util[_0x544634('0x10')](_0x544634('0x47'),path[_0x544634('0x59')](_0x56628a[_0x544634('0x4b')])['dir'],path[_0x544634('0x59')](_0x56628a[_0x544634('0x4b')])[_0x544634('0x15')]),_0x5ddb9e[_0x544634('0x29')]=_0x56628a[_0x544634('0x4b')],ut[_0x544634('0x5d')](_0x544634('0x55'),''),ami[_0x544634('0x18')](ut[_0x544634('0x2f')](_0x56628a,_0x5ddb9e))[_0x544634('0xe')](function(_0x2eedf5){_0x3568d0(_0x2eedf5);})['catch'](function(_0x32c1b5){_0x5dd097(_0x32c1b5);});})[_0x3661dc('0x22')](function(_0x1fedad){_0x5dd097(_0x1fedad);});}else ami[_0x3661dc('0x18')](ut[_0x3661dc('0x2f')](_0x56628a,_0x5ddb9e))[_0x3661dc('0xe')](function(_0x3a3e98){_0x3568d0(_0x3a3e98);})['catch'](function(_0x49d787){_0x5dd097(_0x49d787);});});}Fax[_0x216e9d('0x5')]['execOriginate']=function(_0x506038,_0x3749a5){const _0x14c52e=this;return new Promise(function(_0x5c6638,_0x4862b2){const _0x4a73af=a1060_0xa40a,_0x41ce34=uuid['v4'](),_0x4f6fd8=ut[_0x4a73af('0x30')](_0x506038,_0x3749a5);_0x14c52e['actions'][_0x41ce34]=new Action(_0x41ce34,_0x3749a5,_0x506038);const _0x11e5ba=_0x14c52e['actions'][_0x41ce34];path['parse'](_0x506038[_0x4a73af('0x4b')])['ext']===_0x4a73af('0x14')?originate(_0x11e5ba,_0x4f6fd8,!![])[_0x4a73af('0xe')](function(_0x563b23){_0x5c6638(_0x563b23);})[_0x4a73af('0x22')](function(_0x58e1b0){_0x4862b2(_0x58e1b0);}):originate(_0x11e5ba,_0x4f6fd8,![])[_0x4a73af('0xe')](function(_0x573d08){_0x5c6638(_0x573d08);})[_0x4a73af('0x22')](function(_0x536b0f){_0x4862b2(_0x536b0f);});});},Fax['prototype'][_0x216e9d('0x31')]=function(_0x1339bf){const _0x2226da=_0x216e9d;return!_[_0x2226da('0x13')](_0x1339bf)&&!_[_0x2226da('0x13')](_0x1339bf[_0x2226da('0x15')])&&!_[_0x2226da('0x13')](_0x1339bf[_0x2226da('0x4')])&&_0x1339bf[_0x2226da('0x4')]&&!_[_0x2226da('0x13')](this[_0x2226da('0x4f')][util[_0x2226da('0x10')](_0x2226da('0x12'),_0x1339bf[_0x2226da('0x15')])])&&!_[_0x2226da('0x13')](this[_0x2226da('0x4f')][util[_0x2226da('0x10')](_0x2226da('0x12'),_0x1339bf[_0x2226da('0x15')])][_0x2226da('0x42')])&&(this['trunks'][util[_0x2226da('0x10')]('SIP/%s',_0x1339bf['name'])]['status']==='reachable'||this['trunks'][util[_0x2226da('0x10')](_0x2226da('0x12'),_0x1339bf['name'])][_0x2226da('0x42')]===_0x2226da('0xa'));},Fax[_0x216e9d('0x5')]['checkTrunk']=function(_0x119cba,_0x489afe){const _0x5521ba=_0x216e9d;if(!this[_0x5521ba('0x31')](_0x119cba))return ut[_0x5521ba('0x5d')](_0x5521ba('0x4e'),_[_0x5521ba('0x13')](_0x119cba)?'':_0x119cba[_0x5521ba('0x15')]+_0x5521ba('0x57')),{'isValid':![],'message':_0x5521ba('0x67')};if(_[_0x5521ba('0x13')](_0x489afe[_0x5521ba('0x46')]))return ut[_0x5521ba('0x5d')](_0x5521ba('0x26'),JSON[_0x5521ba('0x11')](_0x489afe)),{'isValid':![],'message':_0x5521ba('0x56')};if(_[_0x5521ba('0x13')](_0x489afe['path']))return ut[_0x5521ba('0x5d')]('[Fax][checkTrunk][Empty\x20path]',JSON[_0x5521ba('0x11')](_0x489afe)),{'isValid':![],'message':_0x5521ba('0x1e')};return{'isValid':!![],'message':_0x5521ba('0x2')};},module[_0x216e9d('0x17')]=Fax; \ No newline at end of file +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 diff --git a/server/services/ami/fax/rpcDb.js b/server/services/ami/fax/rpcDb.js index ffa6255..7c4e1e7 100644 --- a/server/services/ami/fax/rpcDb.js +++ b/server/services/ami/fax/rpcDb.js @@ -1 +1 @@ -const a1061_0x5cc3=['util','preview','catch','notify','../rpc/faxAccount','error','then','inspect'];(function(_0x229e04,_0x5cc381){const _0x16fd4a=function(_0x122dd1){while(--_0x122dd1){_0x229e04['push'](_0x229e04['shift']());}};_0x16fd4a(++_0x5cc381);}(a1061_0x5cc3,0xf3));const a1061_0x16fd=function(_0x229e04,_0x5cc381){_0x229e04=_0x229e04-0x0;let _0x16fd4a=a1061_0x5cc3[_0x229e04];return _0x16fd4a;};const _0x402730=a1061_0x16fd;'use strict';const util=require(_0x402730('0x5')),logger=require('../../../config/logger')(_0x402730('0x6')),faxAccount=require(_0x402730('0x1'));function loggerCatch(_0x122dd1){return function(_0x20f430){const _0x42b978=a1061_0x16fd;logger[_0x42b978('0x2')](_0x122dd1,util[_0x42b978('0x4')](_0x20f430,{'showHidden':![],'depth':null}));};}exports[_0x402730('0x0')]=function(_0x35e605,_0x50bfff){const _0x4ab7ee=_0x402730;return Promise['resolve']()[_0x4ab7ee('0x3')](faxAccount[_0x4ab7ee('0x0')](_0x35e605,_0x50bfff))[_0x4ab7ee('0x7')](loggerCatch('[Notify]\x20'));}; \ No newline at end of file +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 diff --git a/server/services/ami/fax/util/gs.js b/server/services/ami/fax/util/gs.js index 42d7b24..7dd0810 100644 --- a/server/services/ami/fax/util/gs.js +++ b/server/services/ami/fax/util/gs.js @@ -1 +1 @@ -const a1062_0x2495=['inspect','execute','child_process','util','../../../../config/logger','\x20Error\x20:','info','exec','fax'];(function(_0x3fe248,_0x249586){const _0x360396=function(_0x27d8c5){while(--_0x27d8c5){_0x3fe248['push'](_0x3fe248['shift']());}};_0x360396(++_0x249586);}(a1062_0x2495,0xa5));const a1062_0x3603=function(_0x3fe248,_0x249586){_0x3fe248=_0x3fe248-0x0;let _0x360396=a1062_0x2495[_0x3fe248];return _0x360396;};const _0x532d88=a1062_0x3603;'use strict';const util=require(_0x532d88('0x0')),logger=require(_0x532d88('0x1'))(_0x532d88('0x5')),exec=require(_0x532d88('0x8'))[_0x532d88('0x4')];exports[_0x532d88('0x7')]=function(_0x27d8c5){return new Promise(function(_0x562637,_0x11175d){exec(_0x27d8c5,function(_0x3fee8e,_0x5abf6b,_0x10a885){const _0x565117=a1062_0x3603;logger[_0x565117('0x3')]('Exec\x20gs',_0x5abf6b),_0x3fee8e&&(logger[_0x565117('0x3')]('Exec\x20gs',_0x565117('0x2'),util[_0x565117('0x6')](_0x3fee8e,{'showHidden':![],'depth':null}),_0x5abf6b,_0x10a885),_0x11175d(_0x3fee8e)),_0x562637(_0x5abf6b);});});}; \ No newline at end of file +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 diff --git a/server/services/ami/fax/util/util.js b/server/services/ami/fax/util/util.js index f1bea44..5c1b6e8 100644 --- a/server/services/ami/fax/util/util.js +++ b/server/services/ami/fax/util/util.js @@ -1 +1 @@ -const a1063_0x393d=['util','originate','addVariables','variablesAction','gateway','\x22%s\x22\x20<%s>','minrate','inspect','faxdetect','logger','info','channel','path','fax','ecm','message','t38timeout','localstationid','uniqueid','headerinfo','format','\x22%s\x22'];(function(_0x10757b,_0x393df9){const _0x1ad0af=function(_0x35e040){while(--_0x35e040){_0x10757b['push'](_0x10757b['shift']());}};_0x1ad0af(++_0x393df9);}(a1063_0x393d,0x15b));const a1063_0x1ad0=function(_0x10757b,_0x393df9){_0x10757b=_0x10757b-0x0;let _0x1ad0af=a1063_0x393d[_0x10757b];return _0x1ad0af;};const _0x155054=a1063_0x1ad0;'use strict';const util=require(_0x155054('0x5')),logger=require('../../../../config/logger')(_0x155054('0x12'));exports[_0x155054('0x14')]=function(_0x35e040){return{'message':_0x35e040};},exports[_0x155054('0xe')]=function(_0xaf00b9,_0x315346){const _0x21fdcd=_0x155054;logger[_0x21fdcd('0xf')](_0xaf00b9,util[_0x21fdcd('0xc')](_0x315346,{'showHidden':![],'depth':null}));},exports[_0x155054('0x7')]=function(_0x243eab,_0x3c70c0){const _0x2aeec9=_0x155054,_0x5c59ef={'XMF-ECM':_0x3c70c0[_0x2aeec9('0x13')],'XMF-HEADERINFO':_0x3c70c0['headerinfo'],'XMF-MINRATE':_0x3c70c0[_0x2aeec9('0xb')],'XMF-MAXRATE':_0x3c70c0['maxrate'],'XMF-MODEM':util[_0x2aeec9('0x3')](_0x2aeec9('0x4'),_0x3c70c0['modem']),'XMF-GATEWAY':_0x3c70c0[_0x2aeec9('0x9')],'XMF-FAXDETECT':_0x3c70c0[_0x2aeec9('0xd')],'XMF-T38TIMEOUT':_0x3c70c0[_0x2aeec9('0x15')],'XMF-LOCALSTATIONID':_0x3c70c0[_0x2aeec9('0x0')],'XMF-PATH':_0x243eab[_0x2aeec9('0x11')]};return _0x5c59ef;},exports[_0x155054('0x8')]=function(_0x24742c,_0x4e5dd2){const _0x2fe82d=_0x155054;return{'actionid':_0x24742c[_0x2fe82d('0x1')],'action':_0x2fe82d('0x6'),'channel':_0x24742c[_0x2fe82d('0x10')],'Exten':'xcally-motion-fax','Context':'from-sip','Priority':'1','callerid':util[_0x2fe82d('0x3')](_0x2fe82d('0xa'),_0x24742c[_0x2fe82d('0x2')]?_0x24742c[_0x2fe82d('0x2')]:'',_0x24742c[_0x2fe82d('0x0')]),'variable':_0x4e5dd2,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x24742c['uniqueid']};}; \ No newline at end of file +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 diff --git a/server/services/ami/index.js b/server/services/ami/index.js index cca0d0f..d866513 100644 --- a/server/services/ami/index.js +++ b/server/services/ami/index.js @@ -1 +1 @@ -const a1064_0xe853=['initCampaigns','initTrunks','initTriggers','./rpc/template','initFreshsalesAccounts','initZendeskAccounts','getTriggers','initSugarcrmAccounts','initServicenowAccounts','./rpc/integrations/servicenow','initVoiceQueueHopperHistory','initAgents','hour','getVtigerAccounts','initVtigerAccounts','./rpc/campaign','./rpc/integrations/zoho','./rpc/cmHopperHistory','initVoiceQueueReports','getVoiceQueues','resolve','../../globals','getTelephones','initVoiceCallReports','getSalesforceAccounts','catch','getTemplates','./rpc/user','initVoiceExtensions','./realtime','getDynamics365Accounts','getCampaigns','getVoiceQueueReports','getVoiceCallReports','./rpc/voiceQueue','./rpc/integrations/salesforce','getSugarcrmAccounts','getFreshdeskAccounts','./rpc/voiceCallReport','initDeskAccounts','then','./rpc/integrations/freshsales','initFreshdeskAccounts','./rpc/integrations/dynamics365','initTelephones','./rpc/integrations/vtiger','./rpc/faxAccount','./rpc/voiceQueueReport','./report','getFaxAccounts','getServicenowAccounts','./rpc/integrations/desk','initZohoAccounts','log','./server','get','./rpc/trunk','listen','getZohoAccounts','sync','./fax','./rpc/integrations/zendesk'];(function(_0x2773c8,_0xe853bc){const _0x25f7c7=function(_0x53df04){while(--_0x53df04){_0x2773c8['push'](_0x2773c8['shift']());}};_0x25f7c7(++_0xe853bc);}(a1064_0xe853,0x7b));const a1064_0x25f7=function(_0x2773c8,_0xe853bc){_0x2773c8=_0x2773c8-0x0;let _0x25f7c7=a1064_0xe853[_0x2773c8];return _0x25f7c7;};const _0xbaab69=a1064_0x25f7;'use strict';require(_0xbaab69('0x16'));const moment=require('moment'),server=require(_0xbaab69('0x37')),Realtime=require(_0xbaab69('0x1e')),Report=require(_0xbaab69('0x31')),Preview=require('./preview'),Fax=require(_0xbaab69('0x3d')),user=require(_0xbaab69('0x1c')),voiceQueue=require(_0xbaab69('0x23')),voiceQueueReport=require(_0xbaab69('0x30')),voiceCallReport=require(_0xbaab69('0x27')),trunk=require(_0xbaab69('0x39')),trigger=require('./rpc/trigger'),template=require(_0xbaab69('0x4')),cmHopperHistory=require(_0xbaab69('0x12')),campaign=require(_0xbaab69('0x10')),voiceExtension=require('./rpc/voiceExtension'),faxAccount=require(_0xbaab69('0x2f')),zendesk=require(_0xbaab69('0x0')),salesforce=require(_0xbaab69('0x24')),sugarcrm=require('./rpc/integrations/sugarcrm'),freshdesk=require('./rpc/integrations/freshdesk'),desk=require(_0xbaab69('0x34')),zoho=require(_0xbaab69('0x11')),vtiger=require(_0xbaab69('0x2e')),freshsales=require(_0xbaab69('0x2a')),servicenow=require(_0xbaab69('0xa')),dynamics365=require(_0xbaab69('0x2c')),realtime=new Realtime(),report=new Report(realtime),preview=new Preview(realtime),fax=new Fax(realtime);let isTrue=!![],initP=!![];function ifMidnight(){const _0x3962bd=_0xbaab69;moment()[_0x3962bd('0x38')](_0x3962bd('0xd'))===0x0&&initP&&(initP=![],isTrue=!![],initParams()),moment()[_0x3962bd('0x38')](_0x3962bd('0xd'))===0x1&&isTrue&&(isTrue=![],initP=!![]);}function initRealtime(){const _0x38617e=_0xbaab69;return ifMidnight(),Promise['resolve']()[_0x38617e('0x29')](user['getAgents']())[_0x38617e('0x29')](realtime[_0x38617e('0xc')]())[_0x38617e('0x29')](user[_0x38617e('0x17')]())[_0x38617e('0x29')](realtime[_0x38617e('0x2d')]())['then'](trunk['getTrunks']())[_0x38617e('0x29')](realtime[_0x38617e('0x2')]())[_0x38617e('0x29')](voiceQueue[_0x38617e('0x14')]())['then'](realtime['initVoiceQueues']())[_0x38617e('0x29')](trigger[_0x38617e('0x7')]())[_0x38617e('0x29')](realtime[_0x38617e('0x3')]())[_0x38617e('0x29')](template[_0x38617e('0x1b')]())[_0x38617e('0x29')](realtime['initTemplates']())['then'](zendesk['getZendeskAccounts']())['then'](realtime[_0x38617e('0x6')]())['then'](salesforce[_0x38617e('0x19')]())[_0x38617e('0x29')](realtime['initSalesforceAccounts']())[_0x38617e('0x29')](sugarcrm[_0x38617e('0x25')]())['then'](realtime[_0x38617e('0x8')]())['then'](freshdesk[_0x38617e('0x26')]())['then'](realtime[_0x38617e('0x2b')]())['then'](desk['getDeskAccounts']())['then'](realtime[_0x38617e('0x28')]())[_0x38617e('0x29')](zoho[_0x38617e('0x3b')]())[_0x38617e('0x29')](realtime[_0x38617e('0x35')]())[_0x38617e('0x29')](vtiger[_0x38617e('0xe')]())['then'](realtime[_0x38617e('0xf')]())[_0x38617e('0x29')](freshsales['getFreshsalesAccounts']())[_0x38617e('0x29')](realtime[_0x38617e('0x5')]())['then'](servicenow[_0x38617e('0x33')]())[_0x38617e('0x29')](realtime[_0x38617e('0x9')]())[_0x38617e('0x29')](dynamics365[_0x38617e('0x1f')]())[_0x38617e('0x29')](realtime['initDynamics365Accounts']())[_0x38617e('0x29')](campaign[_0x38617e('0x20')]())[_0x38617e('0x29')](realtime[_0x38617e('0x1')]())['then'](voiceExtension['getVoiceExtensions']())[_0x38617e('0x29')](realtime[_0x38617e('0x1d')]())[_0x38617e('0x29')](faxAccount[_0x38617e('0x32')]())[_0x38617e('0x29')](realtime['initFaxAccounts']())['then'](function(){return realtime;});}function initParams(){const _0x2d199d=_0xbaab69;return Promise[_0x2d199d('0x15')]()[_0x2d199d('0x29')](voiceQueueReport[_0x2d199d('0x21')]())[_0x2d199d('0x29')](realtime[_0x2d199d('0x13')]())['then'](cmHopperHistory['getVoiceQueueHopperHistory']())['then'](realtime[_0x2d199d('0xb')]())[_0x2d199d('0x29')](cmHopperHistory['getCampaignHopperHistory']())[_0x2d199d('0x29')](realtime['initCampaignHopperHistory']())[_0x2d199d('0x29')](voiceCallReport[_0x2d199d('0x22')]())[_0x2d199d('0x29')](realtime[_0x2d199d('0x18')]())[_0x2d199d('0x29')](function(){})[_0x2d199d('0x1a')](function(_0x53df04){const _0x1fb927=_0x2d199d;console[_0x1fb927('0x36')](_0x53df04);});}function main(){const _0x30bdef=_0xbaab69;return server[_0x30bdef('0x3a')](realtime,preview,fax)['then'](function(){return initRealtime();})[_0x30bdef('0x29')](function(){return initParams();})[_0x30bdef('0x29')](function(){const _0x1257cc=_0x30bdef;report[_0x1257cc('0x3c')](),setInterval(initRealtime,0x1388);})[_0x30bdef('0x1a')](function(_0x1df5d6){const _0x437d65=_0x30bdef;console[_0x437d65('0x36')](_0x1df5d6);});}main(); \ No newline at end of file +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 diff --git a/server/services/ami/model/agent.js b/server/services/ami/model/agent.js index e259456..a5de5fd 100644 --- a/server/services/ami/model/agent.js +++ b/server/services/ami/model/agent.js @@ -1 +1 @@ -const a1065_0x54b5=['state','voiceStatusCallerIdNumber','status','fullname','not_inuse','util','name','accountcode','email','stringify','local','online','idle','voiceStatusQueue','statePause','user:save','interface','voiceStatusTime','format','prototype','onhold','stateTime','inuse','address','updateStatusRealtime','voiceStatus','lodash','moment','toLowerCase','unknown','emit','md5'];(function(_0x18ec6c,_0x54b525){const _0x4b7700=function(_0x3dbae6){while(--_0x3dbae6){_0x18ec6c['push'](_0x18ec6c['shift']());}};_0x4b7700(++_0x54b525);}(a1065_0x54b5,0x196));const a1065_0x4b77=function(_0x18ec6c,_0x54b525){_0x18ec6c=_0x18ec6c-0x0;let _0x4b7700=a1065_0x54b5[_0x18ec6c];return _0x4b7700;};const _0x11d284=a1065_0x4b77;'use strict';const _=require(_0x11d284('0x4')),util=require(_0x11d284('0xf')),moment=require(_0x11d284('0x5')),md5=require('md5'),{getSocket}=require('../../../rediscache'),io=getSocket();function Agent(_0x3dbae6){const _0x3e3a75=_0x11d284;this['id']=_0x3dbae6['id']||0x0,this['name']=_0x3dbae6[_0x3e3a75('0x10')]||'',this[_0x3e3a75('0x12')]=_0x3dbae6[_0x3e3a75('0x12')]||'',this[_0x3e3a75('0x11')]=_0x3dbae6[_0x3e3a75('0x11')]||'',this[_0x3e3a75('0xd')]=_0x3dbae6['fullname']||'',this[_0x3e3a75('0xa')]=_0x3e3a75('0x7'),this[_0x3e3a75('0x1f')]=0x0,this[_0x3e3a75('0xc')]='unknown',this[_0x3e3a75('0x1')]='',this['phone']='',this['mobile']='',this[_0x3e3a75('0x1a')]='',this[_0x3e3a75('0x15')]=_0x3dbae6[_0x3e3a75('0x15')]||![],this[_0x3e3a75('0x3')]=_0x3e3a75('0x7'),this[_0x3e3a75('0x1b')]=0x0,this[_0x3e3a75('0xb')]='',this[_0x3e3a75('0x17')]='',this[_0x3e3a75('0x1e')]=![],this[_0x3e3a75('0x14')]=![],this[_0x3e3a75('0x9')]='';}Agent[_0x11d284('0x1d')][_0x11d284('0x2')]=function(_0x42e8df){const _0x3dfa91=_0x11d284;let _0x65f840;if(_0x42e8df&&_0x42e8df['state']){_0x65f840=_0x42e8df['state'][_0x3dfa91('0x6')]();switch(_0x65f840){case _0x3dfa91('0xe'):_0x65f840=_0x3dfa91('0x16');break;case _0x3dfa91('0x0'):_0x65f840='talking';break;}}(_0x65f840&&this[_0x3dfa91('0x3')]!==_0x65f840||_0x42e8df[_0x3dfa91('0x18')])&&(this[_0x3dfa91('0x1b')]=_['toNumber'](moment()['format']('x')));_0x65f840&&(this[_0x3dfa91('0x3')]=_0x65f840);const _0x317b01={'id':this['id'],'name':this[_0x3dfa91('0x10')],'email':this[_0x3dfa91('0x12')],'accountcode':this[_0x3dfa91('0x11')],'fullname':this['fullname'],'state':this[_0x3dfa91('0xa')],'stateTime':this[_0x3dfa91('0x1f')],'status':this[_0x3dfa91('0xc')],'address':this[_0x3dfa91('0x1')],'online':this[_0x3dfa91('0x15')],'voiceStatus':this[_0x3dfa91('0x3')],'voiceStatusTime':this['voiceStatusTime'],'voiceStatusCallerIdNumber':this[_0x3dfa91('0xb')],'voiceStatusQueue':this[_0x3dfa91('0x17')],'interface':this[_0x3dfa91('0x1a')],'onhold':this['onhold']},_0x20babf=md5(JSON[_0x3dfa91('0x13')](_0x317b01));this[_0x3dfa91('0x9')]!==_0x20babf&&(this[_0x3dfa91('0x9')]=_0x20babf,io['to'](util[_0x3dfa91('0x1c')]('user:%s',_0x317b01[_0x3dfa91('0x10')]))[_0x3dfa91('0x8')](_0x3dfa91('0x19'),_0x317b01));},module['exports']=Agent; \ No newline at end of file +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 diff --git a/server/services/ami/model/campaign.js b/server/services/ami/model/campaign.js index 88f91b7..a502b83 100644 --- a/server/services/ami/model/campaign.js +++ b/server/services/ami/model/campaign.js @@ -1 +1 @@ -var a1066_0x8e82=['dialAMDBetweenWordsSilence','campaign','dialNoAnswerMaxRetry','dialOrderByScheduledAt','exports','dialTimezone','dialNoAnswerRetryFrequency','dialAgentRejectRetryFrequency','sendMessageOneNotActive','dialGlobalMaxRetry','dialOriginateTimeout','type','dialOriginateCallerIdNumber','Trunk','dialAMDAfterGreetingSilence','dialAMDTotalAnalysisTime','dialAMDMaximumWordLength','dialAbandonedMaxRetry','dialAMDActive','dialAgentRejectMaxRetry','SquareProject','dialCutDigit','dialAMDInitialSilence','TrunkBackup','dialGlobalInterval','dialDropRetryFrequency','name','dialNoSuchNumberMaxRetry','dialQueueProject','Interval','active','dialCongestionRetryFrequency','dialBusyRetryFrequency','ivrTotalCallsDays','dialNoSuchNumberRetryFrequency','dialMachineRetryFrequency','dialOriginateCallerIdName','dialAMDMinWordLength','dialCongestionMaxRetry','dialAMDSilenceThreshold','dialAMDMaximumNumberOfWords','dialRandomLastDigitCallerIdNumber','dialPrefix','dialMachineMaxRetry','dialAbandonedRetryFrequency','dialAMDGreeting','dialBusyMaxRetry'];(function(_0xa845b4,_0x8e82e1){var _0x1bd255=function(_0x169f3d){while(--_0x169f3d){_0xa845b4['push'](_0xa845b4['shift']());}};_0x1bd255(++_0x8e82e1);}(a1066_0x8e82,0x112));var a1066_0x1bd2=function(_0xa845b4,_0x8e82e1){_0xa845b4=_0xa845b4-0x0;var _0x1bd255=a1066_0x8e82[_0xa845b4];return _0x1bd255;};var _0x403fd4=a1066_0x1bd2;'use strict';function Campaign(_0x169f3d){var _0x3de4e9=a1066_0x1bd2;this['id']=_0x169f3d['id']||0x0,this[_0x3de4e9('0x22')]=_0x169f3d['name']||'',this[_0x3de4e9('0x13')]=_0x169f3d[_0x3de4e9('0x13')]||_0x3de4e9('0x9'),this['originated']=0x0,this['temp']=0x0,this['ivrAnswerCallsDay']=0x0,this[_0x3de4e9('0x29')]=0x0,this['message']='',this[_0x3de4e9('0x10')]=!![],this[_0x3de4e9('0x26')]=_0x169f3d[_0x3de4e9('0x26')],this['limitCalls']=_0x169f3d['limitCalls'],this['dialTimezone']=_0x169f3d[_0x3de4e9('0xd')]||null,this[_0x3de4e9('0x20')]=_0x169f3d['dialGlobalInterval']?_0x169f3d['dialGlobalInterval']:null,this['dialOriginateCallerIdName']=_0x169f3d[_0x3de4e9('0x2c')],this[_0x3de4e9('0x14')]=_0x169f3d['dialOriginateCallerIdNumber'],this[_0x3de4e9('0x12')]=_0x169f3d[_0x3de4e9('0x12')]||0x1e,this['dialCongestionMaxRetry']=_0x169f3d[_0x3de4e9('0x2e')],this['dialCongestionRetryFrequency']=_0x169f3d[_0x3de4e9('0x27')],this[_0x3de4e9('0x7')]=_0x169f3d[_0x3de4e9('0x7')],this[_0x3de4e9('0x28')]=_0x169f3d[_0x3de4e9('0x28')],this['dialNoAnswerMaxRetry']=_0x169f3d[_0x3de4e9('0xa')],this[_0x3de4e9('0xe')]=_0x169f3d[_0x3de4e9('0xe')],this[_0x3de4e9('0x11')]=_0x169f3d[_0x3de4e9('0x11')],this[_0x3de4e9('0x23')]=_0x169f3d['dialNoSuchNumberMaxRetry']||0x3,this[_0x3de4e9('0x2a')]=_0x169f3d[_0x3de4e9('0x2a')]||0x96,this['dialDropMaxRetry']=_0x169f3d['dialDropMaxRetry']||0x3,this[_0x3de4e9('0x21')]=_0x169f3d[_0x3de4e9('0x21')]||0x96,this[_0x3de4e9('0x19')]=_0x169f3d[_0x3de4e9('0x19')]||0x3,this[_0x3de4e9('0x5')]=_0x169f3d[_0x3de4e9('0x5')]||0x96,this[_0x3de4e9('0x4')]=_0x169f3d[_0x3de4e9('0x4')]||0x3,this[_0x3de4e9('0x2b')]=_0x169f3d[_0x3de4e9('0x2b')]||0x96,this[_0x3de4e9('0x1b')]=_0x169f3d[_0x3de4e9('0x1b')]||0x3,this[_0x3de4e9('0xf')]=_0x169f3d[_0x3de4e9('0xf')]||0x96,this[_0x3de4e9('0xb')]=_0x169f3d[_0x3de4e9('0xb')]||'DESC',this[_0x3de4e9('0x3')]=_0x169f3d['dialPrefix']||undefined,this['dialRandomLastDigitCallerIdNumber']=_0x169f3d[_0x3de4e9('0x2')]||undefined,this[_0x3de4e9('0x1d')]=_0x169f3d[_0x3de4e9('0x1d')]||undefined,this['TrunkBackup']=_0x169f3d['TrunkBackup']?_0x169f3d[_0x3de4e9('0x1f')]:undefined,this[_0x3de4e9('0x15')]=_0x169f3d[_0x3de4e9('0x15')]?_0x169f3d[_0x3de4e9('0x15')]:undefined,this[_0x3de4e9('0x25')]=_0x169f3d[_0x3de4e9('0x25')]?_0x169f3d[_0x3de4e9('0x25')]:undefined,this[_0x3de4e9('0x1c')]=_0x169f3d['SquareProject']?_0x169f3d[_0x3de4e9('0x1c')]:undefined,this[_0x3de4e9('0x24')]=_0x169f3d[_0x3de4e9('0x1c')]?_0x169f3d[_0x3de4e9('0x1c')][_0x3de4e9('0x22')]:undefined,this[_0x3de4e9('0x1a')]=_0x169f3d[_0x3de4e9('0x1a')]||![],this['dialAMDInitialSilence']=_0x169f3d[_0x3de4e9('0x1e')],this[_0x3de4e9('0x6')]=_0x169f3d[_0x3de4e9('0x6')],this[_0x3de4e9('0x16')]=_0x169f3d[_0x3de4e9('0x16')],this[_0x3de4e9('0x17')]=_0x169f3d[_0x3de4e9('0x17')],this[_0x3de4e9('0x2d')]=_0x169f3d[_0x3de4e9('0x2d')],this[_0x3de4e9('0x8')]=_0x169f3d[_0x3de4e9('0x8')],this[_0x3de4e9('0x1')]=_0x169f3d[_0x3de4e9('0x1')],this['dialAMDSilenceThreshold']=_0x169f3d[_0x3de4e9('0x0')],this[_0x3de4e9('0x18')]=_0x169f3d[_0x3de4e9('0x18')];}module[_0x403fd4('0xc')]=Campaign; \ No newline at end of file +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 diff --git a/server/services/ami/model/channel.js b/server/services/ami/model/channel.js index 9da29b4..2b575e7 100644 --- a/server/services/ami/model/channel.js +++ b/server/services/ami/model/channel.js @@ -1 +1 @@ -var a1067_0x13c7=['answered','answertime','accountcode','exports','connectedlinenum','uniqueid','queue','abandoned','lastdata','monitors','monitor','starttime','endtime','context','transfercalleridnum','billableseconds','lastapplication','exten','calleridname','calleridnum','duration','tag','disposition','unmanaged','connectedlinename','holdtime','linkedid'];(function(_0x1f2c24,_0x13c79e){var _0xae1fdc=function(_0x121f7a){while(--_0x121f7a){_0x1f2c24['push'](_0x1f2c24['shift']());}};_0xae1fdc(++_0x13c79e);}(a1067_0x13c7,0x100));var a1067_0xae1f=function(_0x1f2c24,_0x13c79e){_0x1f2c24=_0x1f2c24-0x0;var _0xae1fdc=a1067_0x13c7[_0x1f2c24];return _0xae1fdc;};var _0x414550=a1067_0xae1f;'use strict';function Channel(){var _0x1f1cbc=a1067_0xae1f;this[_0x1f1cbc('0x19')]=null,this['channel']='',this['destinationchannel']='',this[_0x1f1cbc('0x6')]=0x0,this[_0x1f1cbc('0x5')]='',this[_0x1f1cbc('0x12')]=undefined,this[_0x1f1cbc('0xb')]=undefined,this[_0x1f1cbc('0x10')]=0x0,this[_0x1f1cbc('0x0')]='',this[_0x1f1cbc('0x13')]=0x0,this[_0x1f1cbc('0xd')]=0x0,this[_0x1f1cbc('0x4')]=0x0,this[_0x1f1cbc('0xe')]=![],this[_0x1f1cbc('0xf')]=null,this[_0x1f1cbc('0x1a')]=null,this[_0x1f1cbc('0xa')]=![],this[_0x1f1cbc('0x15')]=![],this[_0x1f1cbc('0x3')]='',this[_0x1f1cbc('0x16')]='',this[_0x1f1cbc('0x7')]=0x0,this[_0x1f1cbc('0x2')]=0x0,this[_0x1f1cbc('0xc')]=0x0,this['type']=null,this[_0x1f1cbc('0x8')]=null,this[_0x1f1cbc('0x9')]=null,this[_0x1f1cbc('0x18')]=![],this['monitorFilename']=null,this[_0x1f1cbc('0x14')]=null,this[_0x1f1cbc('0x17')]=[],this[_0x1f1cbc('0x1')]=undefined,this['transferconnectedlinenum']=undefined,this['mohtime']=0x0;}module[_0x414550('0x11')]=Channel; \ No newline at end of file +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 diff --git a/server/services/ami/model/deskAccount.js b/server/services/ami/model/deskAccount.js index da07660..8b94a8b 100644 --- a/server/services/ami/model/deskAccount.js +++ b/server/services/ami/model/deskAccount.js @@ -1 +1 @@ -var a1068_0x9560=['token','remoteUri','serverUrl','password','tokenSecret','name','username','authType','exports','type','consumerKey','consumerSecret'];(function(_0x1ce1f2,_0x956078){var _0x3575a2=function(_0x120652){while(--_0x120652){_0x1ce1f2['push'](_0x1ce1f2['shift']());}};_0x3575a2(++_0x956078);}(a1068_0x9560,0xc8));var a1068_0x3575=function(_0x1ce1f2,_0x956078){_0x1ce1f2=_0x1ce1f2-0x0;var _0x3575a2=a1068_0x9560[_0x1ce1f2];return _0x3575a2;};var _0x5e824a=a1068_0x3575;'use strict';function DeskAccount(_0x120652){var _0x1adc97=a1068_0x3575;this['id']=_0x120652['id']||0x0,this[_0x1adc97('0x9')]=_0x120652[_0x1adc97('0x9')]||'',this[_0x1adc97('0xa')]=_0x120652[_0x1adc97('0xa')]||'',this[_0x1adc97('0x5')]=_0x120652[_0x1adc97('0x5')]||'',this[_0x1adc97('0xb')]=_0x120652[_0x1adc97('0xb')]||'',this[_0x1adc97('0x7')]=_0x120652[_0x1adc97('0x7')]||'',this[_0x1adc97('0x2')]=_0x120652[_0x1adc97('0x2')]||'',this['consumerSecret']=_0x120652[_0x1adc97('0x3')]||'',this[_0x1adc97('0x4')]=_0x120652[_0x1adc97('0x4')]||'',this[_0x1adc97('0x8')]=_0x120652[_0x1adc97('0x8')]||'',this[_0x1adc97('0x1')]=_0x120652[_0x1adc97('0x1')]||'',this[_0x1adc97('0x6')]=_0x120652[_0x1adc97('0x6')]||'',this['Configurations']=_0x120652['Configurations']||{};}module[_0x5e824a('0x0')]=DeskAccount; \ No newline at end of file +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 diff --git a/server/services/ami/model/dynamics365Account.js b/server/services/ami/model/dynamics365Account.js index 65acb3a..45fe635 100644 --- a/server/services/ami/model/dynamics365Account.js +++ b/server/services/ami/model/dynamics365Account.js @@ -1 +1 @@ -var a1069_0x7063=['Configurations','clientSecret','password','tenantId','clientId','username','remoteUri','serverUrl','name','exports'];(function(_0x30fff8,_0x7063e1){var _0x43d129=function(_0x67a5c7){while(--_0x67a5c7){_0x30fff8['push'](_0x30fff8['shift']());}};_0x43d129(++_0x7063e1);}(a1069_0x7063,0xa3));var a1069_0x43d1=function(_0x30fff8,_0x7063e1){_0x30fff8=_0x30fff8-0x0;var _0x43d129=a1069_0x7063[_0x30fff8];return _0x43d129;};var _0x209108=a1069_0x43d1;'use strict';function Dynamics365Account(_0x67a5c7){var _0x2c6ac6=a1069_0x43d1;this['id']=_0x67a5c7['id']||0x0,this[_0x2c6ac6('0x5')]=_0x67a5c7[_0x2c6ac6('0x5')]||'',this[_0x2c6ac6('0x2')]=_0x67a5c7[_0x2c6ac6('0x2')]||'',this['password']=_0x67a5c7[_0x2c6ac6('0x9')]||'',this['remoteUri']=_0x67a5c7[_0x2c6ac6('0x3')]||'',this[_0x2c6ac6('0x0')]=_0x67a5c7[_0x2c6ac6('0x0')]||'',this[_0x2c6ac6('0x1')]=_0x67a5c7[_0x2c6ac6('0x1')]||'',this[_0x2c6ac6('0x8')]=_0x67a5c7[_0x2c6ac6('0x8')]||{},this[_0x2c6ac6('0x4')]=_0x67a5c7[_0x2c6ac6('0x4')]||'',this[_0x2c6ac6('0x7')]=_0x67a5c7[_0x2c6ac6('0x7')]||{};}module[_0x209108('0x6')]=Dynamics365Account; \ No newline at end of file +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 diff --git a/server/services/ami/model/faxAccount.js b/server/services/ami/model/faxAccount.js index c026d34..2de4e79 100644 --- a/server/services/ami/model/faxAccount.js +++ b/server/services/ami/model/faxAccount.js @@ -1 +1 @@ -var a1070_0x39c3=['maxrate','Trunk','exports','description','faxdetect','ecm','modem','ListId','localstationid','gateway','tech','key','SIP','headerinfo','name','v17,v27,v29'];(function(_0x4b2a1a,_0x39c348){var _0x498af2=function(_0x5393ed){while(--_0x5393ed){_0x4b2a1a['push'](_0x4b2a1a['shift']());}};_0x498af2(++_0x39c348);}(a1070_0x39c3,0x103));var a1070_0x498a=function(_0x4b2a1a,_0x39c348){_0x4b2a1a=_0x4b2a1a-0x0;var _0x498af2=a1070_0x39c3[_0x4b2a1a];return _0x498af2;};var _0x49ce27=a1070_0x498a;'use strict';function FaxAccount(_0x5393ed){var _0x2a3fbb=a1070_0x498a;this['id']=_0x5393ed['id']||0x0,this[_0x2a3fbb('0xb')]=_0x5393ed[_0x2a3fbb('0xb')]||'',this[_0x2a3fbb('0x0')]=_0x5393ed[_0x2a3fbb('0x0')],this[_0x2a3fbb('0x2')]=_0x5393ed['ecm'],this[_0x2a3fbb('0xa')]=_0x5393ed[_0x2a3fbb('0xa')],this[_0x2a3fbb('0x5')]=_0x5393ed[_0x2a3fbb('0x5')],this['minrate']=_0x5393ed['minrate']||0x960,this[_0x2a3fbb('0xd')]=_0x5393ed[_0x2a3fbb('0xd')]||0x3840,this[_0x2a3fbb('0x3')]=_0x5393ed['modem']||_0x2a3fbb('0xc'),this[_0x2a3fbb('0x6')]=_0x5393ed['gateway']||'no',this[_0x2a3fbb('0x1')]=_0x5393ed[_0x2a3fbb('0x1')]||'no',this['t38timeout']=_0x5393ed['t38timeout']||0x1388,this[_0x2a3fbb('0x7')]=_0x5393ed['tech']||_0x2a3fbb('0x9'),this[_0x2a3fbb('0xe')]=_0x5393ed['Trunk']?_0x5393ed[_0x2a3fbb('0xe')]:undefined,this[_0x2a3fbb('0x4')]=_0x5393ed[_0x2a3fbb('0x4')],this[_0x2a3fbb('0x8')]=_0x5393ed['key'];}module[_0x49ce27('0xf')]=FaxAccount; \ No newline at end of file +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 diff --git a/server/services/ami/model/freshdeskAccount.js b/server/services/ami/model/freshdeskAccount.js index 3e47190..21050cf 100644 --- a/server/services/ami/model/freshdeskAccount.js +++ b/server/services/ami/model/freshdeskAccount.js @@ -1 +1 @@ -var a1071_0x72ea=['exports','username','apiKey','name','serverUrl','remoteUri','token','Configurations'];(function(_0x490dc1,_0x72eaf9){var _0x4fdefa=function(_0x2103f0){while(--_0x2103f0){_0x490dc1['push'](_0x490dc1['shift']());}};_0x4fdefa(++_0x72eaf9);}(a1071_0x72ea,0x87));var a1071_0x4fde=function(_0x490dc1,_0x72eaf9){_0x490dc1=_0x490dc1-0x0;var _0x4fdefa=a1071_0x72ea[_0x490dc1];return _0x4fdefa;};var _0x3dc143=a1071_0x4fde;'use strict';function FreshdeskAccount(_0x2103f0){var _0x5741e7=a1071_0x4fde;this['id']=_0x2103f0['id']||0x0,this['name']=_0x2103f0[_0x5741e7('0x4')]||'',this[_0x5741e7('0x2')]=_0x2103f0[_0x5741e7('0x2')]||'',this[_0x5741e7('0x3')]=_0x2103f0[_0x5741e7('0x7')]||'',this[_0x5741e7('0x6')]=_0x2103f0['remoteUri']||'',this[_0x5741e7('0x5')]=_0x2103f0['serverUrl']||'',this[_0x5741e7('0x0')]=_0x2103f0['Configurations']||{};}module[_0x3dc143('0x1')]=FreshdeskAccount; \ No newline at end of file +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 diff --git a/server/services/ami/model/freshsalesAccount.js b/server/services/ami/model/freshsalesAccount.js index c2d72ca..bd32531 100644 --- a/server/services/ami/model/freshsalesAccount.js +++ b/server/services/ami/model/freshsalesAccount.js @@ -1 +1 @@ -var a1072_0x529a=['apiKey','remoteUri','username','exports','serverUrl','Configurations'];(function(_0x1aa241,_0x529a00){var _0x43b7c7=function(_0x48b4b2){while(--_0x48b4b2){_0x1aa241['push'](_0x1aa241['shift']());}};_0x43b7c7(++_0x529a00);}(a1072_0x529a,0x111));var a1072_0x43b7=function(_0x1aa241,_0x529a00){_0x1aa241=_0x1aa241-0x0;var _0x43b7c7=a1072_0x529a[_0x1aa241];return _0x43b7c7;};var _0x1f175e=a1072_0x43b7;'use strict';function FreshsalesAccount(_0x48b4b2){var _0x2ea7e0=a1072_0x43b7;this['id']=_0x48b4b2['id']||0x0,this['name']=_0x48b4b2['name']||'',this[_0x2ea7e0('0x5')]=_0x48b4b2[_0x2ea7e0('0x5')]||'',this[_0x2ea7e0('0x3')]=_0x48b4b2['token']||'',this['remoteUri']=_0x48b4b2[_0x2ea7e0('0x4')]||'',this['serverUrl']=_0x48b4b2[_0x2ea7e0('0x1')]||'',this[_0x2ea7e0('0x2')]=_0x48b4b2[_0x2ea7e0('0x2')]||{};}module[_0x1f175e('0x0')]=FreshsalesAccount; \ No newline at end of file +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 diff --git a/server/services/ami/model/queueReport.js b/server/services/ami/model/queueReport.js index be8726e..29edf83 100644 --- a/server/services/ami/model/queueReport.js +++ b/server/services/ami/model/queueReport.js @@ -1 +1 @@ -var a1073_0x20c1=['context','inbound','channel','originalposition','queuecallerabandon','queuecallercomplete','calleridnum','count','lastAssignedTo','type','queuecallerexit','variables','exten','assigned','queuecallerleaveAt','mohtime','accountcode','queuecallerexitAt','holdtime','connectedlinenum','queue','position','queuecallerjoinAt','queuecallercompleteAt'];(function(_0x126e06,_0x20c1a9){var _0x1bb71a=function(_0x39b13c){while(--_0x39b13c){_0x126e06['push'](_0x126e06['shift']());}};_0x1bb71a(++_0x20c1a9);}(a1073_0x20c1,0x168));var a1073_0x1bb7=function(_0x126e06,_0x20c1a9){_0x126e06=_0x126e06-0x0;var _0x1bb71a=a1073_0x20c1[_0x126e06];return _0x1bb71a;};'use strict';function QueueReport(){var _0x2731a2=a1073_0x1bb7;this[_0x2731a2('0x9')]=_0x2731a2('0x1'),this['uniqueid']='',this[_0x2731a2('0x6')]='',this['calleridname']='',this[_0x2731a2('0x14')]='',this[_0x2731a2('0x16')]=null,this[_0x2731a2('0xe')]=null,this[_0x2731a2('0x15')]=0x1,this[_0x2731a2('0x7')]=0x1,this[_0x2731a2('0x4')]=![],this['queuecallerabandonAt']=null,this[_0x2731a2('0x5')]=![],this[_0x2731a2('0x17')]=null,this[_0x2731a2('0xa')]=![],this[_0x2731a2('0x11')]=null,this[_0x2731a2('0x3')]=0x1,this[_0x2731a2('0x2')]='',this[_0x2731a2('0x13')]='',this['connectedlinename']='',this[_0x2731a2('0x10')]='',this[_0x2731a2('0x0')]='',this[_0x2731a2('0xc')]='',this['priority']='',this[_0x2731a2('0x12')]=0x0,this[_0x2731a2('0xd')]=![],this[_0x2731a2('0x8')]='',this[_0x2731a2('0xf')]=0x0,this[_0x2731a2('0xb')]={};}module['exports']=QueueReport; \ No newline at end of file +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 diff --git a/server/services/ami/model/salesforceAccount.js b/server/services/ami/model/salesforceAccount.js index 347fbb0..2a3b848 100644 --- a/server/services/ami/model/salesforceAccount.js +++ b/server/services/ami/model/salesforceAccount.js @@ -1 +1 @@ -var a1074_0x21bb=['username','exports','Configurations','remoteUri','type','clientId','password','clientSecret','name'];(function(_0xeaa6d9,_0x21bb0d){var _0x2e98f3=function(_0x54539a){while(--_0x54539a){_0xeaa6d9['push'](_0xeaa6d9['shift']());}};_0x2e98f3(++_0x21bb0d);}(a1074_0x21bb,0x189));var a1074_0x2e98=function(_0xeaa6d9,_0x21bb0d){_0xeaa6d9=_0xeaa6d9-0x0;var _0x2e98f3=a1074_0x21bb[_0xeaa6d9];return _0x2e98f3;};var _0x5746c9=a1074_0x2e98;'use strict';function SalesforceAccount(_0x54539a){var _0x578101=a1074_0x2e98;this['id']=_0x54539a['id']||0x0,this[_0x578101('0x2')]=_0x54539a['name']||'',this[_0x578101('0x3')]=_0x54539a['username']||'',this['remoteUri']=_0x54539a[_0x578101('0x6')]||'',this[_0x578101('0x0')]=_0x54539a['password']||'',this['clientId']=_0x54539a[_0x578101('0x8')]||'',this[_0x578101('0x1')]=_0x54539a[_0x578101('0x1')]||'',this['securityToken']=_0x54539a['securityToken']||'',this[_0x578101('0x7')]=_0x54539a['type']||'integrationTab',this['serverUrl']=_0x54539a['serverUrl']||'',this[_0x578101('0x5')]=_0x54539a[_0x578101('0x5')]||{};}module[_0x5746c9('0x4')]=SalesforceAccount; \ No newline at end of file +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 diff --git a/server/services/ami/model/servicenowAccount.js b/server/services/ami/model/servicenowAccount.js index 8ea77ab..f839a46 100644 --- a/server/services/ami/model/servicenowAccount.js +++ b/server/services/ami/model/servicenowAccount.js @@ -1 +1 @@ -var a1075_0x4f8e=['username','serverUrl','name','remoteUri','password','Configurations'];(function(_0x5442d5,_0x4f8e25){var _0x3eaabc=function(_0x389c7b){while(--_0x389c7b){_0x5442d5['push'](_0x5442d5['shift']());}};_0x3eaabc(++_0x4f8e25);}(a1075_0x4f8e,0x13b));var a1075_0x3eaa=function(_0x5442d5,_0x4f8e25){_0x5442d5=_0x5442d5-0x0;var _0x3eaabc=a1075_0x4f8e[_0x5442d5];return _0x3eaabc;};'use strict';function ServicenowAccount(_0x389c7b){var _0x56f254=a1075_0x3eaa;this['id']=_0x389c7b['id']||0x0,this['name']=_0x389c7b[_0x56f254('0x5')]||'',this[_0x56f254('0x3')]=_0x389c7b['username']||'',this['password']=_0x389c7b[_0x56f254('0x1')]||'',this[_0x56f254('0x0')]=_0x389c7b[_0x56f254('0x0')]||'',this['serverUrl']=_0x389c7b[_0x56f254('0x4')]||'',this[_0x56f254('0x2')]=_0x389c7b[_0x56f254('0x2')]||{};}module['exports']=ServicenowAccount; \ No newline at end of file +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 diff --git a/server/services/ami/model/sugarcrmAccount.js b/server/services/ami/model/sugarcrmAccount.js index 38860c3..a1294dc 100644 --- a/server/services/ami/model/sugarcrmAccount.js +++ b/server/services/ami/model/sugarcrmAccount.js @@ -1 +1 @@ -var a1076_0x5473=['serverUrl','Configurations','password','remoteUri','name'];(function(_0x141030,_0x54734e){var _0x423e1a=function(_0x458fc5){while(--_0x458fc5){_0x141030['push'](_0x141030['shift']());}};_0x423e1a(++_0x54734e);}(a1076_0x5473,0x1a3));var a1076_0x423e=function(_0x141030,_0x54734e){_0x141030=_0x141030-0x0;var _0x423e1a=a1076_0x5473[_0x141030];return _0x423e1a;};'use strict';function SugarcrmAccount(_0x458fc5){var _0x3cc3bc=a1076_0x423e;this['id']=_0x458fc5['id']||0x0,this[_0x3cc3bc('0x0')]=_0x458fc5[_0x3cc3bc('0x0')]||'',this['username']=_0x458fc5['username']||'',this[_0x3cc3bc('0x3')]=_0x458fc5[_0x3cc3bc('0x3')]||'',this['remoteUri']=_0x458fc5[_0x3cc3bc('0x4')]||'',this[_0x3cc3bc('0x1')]=_0x458fc5[_0x3cc3bc('0x1')]||'',this['Configurations']=_0x458fc5[_0x3cc3bc('0x2')]||{};}module['exports']=SugarcrmAccount; \ No newline at end of file +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 diff --git a/server/services/ami/model/telephone.js b/server/services/ami/model/telephone.js index a4ab605..20f23bf 100644 --- a/server/services/ami/model/telephone.js +++ b/server/services/ami/model/telephone.js @@ -1 +1 @@ -var a1077_0xd38e=['name','address','accountcode','unknown','exports','status'];(function(_0x1c679d,_0xd38e7a){var _0x36ff35=function(_0x54faf4){while(--_0x54faf4){_0x1c679d['push'](_0x1c679d['shift']());}};_0x36ff35(++_0xd38e7a);}(a1077_0xd38e,0xb0));var a1077_0x36ff=function(_0x1c679d,_0xd38e7a){_0x1c679d=_0x1c679d-0x0;var _0x36ff35=a1077_0xd38e[_0x1c679d];return _0x36ff35;};var _0x472b89=a1077_0x36ff;'use strict';function Telephone(_0x54faf4){var _0x297ea9=a1077_0x36ff;this['id']=_0x54faf4['id']||0x0,this['name']=_0x54faf4[_0x297ea9('0x4')]||'',this[_0x297ea9('0x0')]=_0x54faf4[_0x297ea9('0x0')]||'',this['state']=_0x297ea9('0x1'),this['stateTime']=0x0,this[_0x297ea9('0x3')]=_0x297ea9('0x1'),this[_0x297ea9('0x5')]='';}module[_0x472b89('0x2')]=Telephone; \ No newline at end of file +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 diff --git a/server/services/ami/model/template.js b/server/services/ami/model/template.js index ea9605b..510d539 100644 --- a/server/services/ami/model/template.js +++ b/server/services/ami/model/template.js @@ -1 +1 @@ -var a1078_0xb50d=['html','exports','name'];(function(_0x2a4280,_0xb50d7){var _0x5e00d=function(_0x209fdd){while(--_0x209fdd){_0x2a4280['push'](_0x2a4280['shift']());}};_0x5e00d(++_0xb50d7);}(a1078_0xb50d,0x114));var a1078_0x5e00=function(_0x2a4280,_0xb50d7){_0x2a4280=_0x2a4280-0x0;var _0x5e00d=a1078_0xb50d[_0x2a4280];return _0x5e00d;};var _0x109436=a1078_0x5e00;'use strict';function template(_0x209fdd){var _0x265582=a1078_0x5e00;this['id']=_0x209fdd['id']||0x0,this[_0x265582('0x2')]=_0x209fdd[_0x265582('0x2')]||'',this[_0x265582('0x0')]=_0x209fdd[_0x265582('0x0')]||'';}module[_0x109436('0x1')]=template; \ No newline at end of file +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 diff --git a/server/services/ami/model/trigger.js b/server/services/ami/model/trigger.js index e5ca10a..94e791e 100644 --- a/server/services/ami/model/trigger.js +++ b/server/services/ami/model/trigger.js @@ -1 +1 @@ -var a1079_0x8f6f=['exports','AnyConditions','AllConditions','Actions','name','channel','status','voice'];(function(_0x5e14ec,_0x8f6fc){var _0x535131=function(_0x3b5fd2){while(--_0x3b5fd2){_0x5e14ec['push'](_0x5e14ec['shift']());}};_0x535131(++_0x8f6fc);}(a1079_0x8f6f,0x67));var a1079_0x5351=function(_0x5e14ec,_0x8f6fc){_0x5e14ec=_0x5e14ec-0x0;var _0x535131=a1079_0x8f6f[_0x5e14ec];return _0x535131;};var _0x2c50d7=a1079_0x5351;'use strict';function Trigger(_0x3b5fd2){var _0x54f1a7=a1079_0x5351;this['id']=_0x3b5fd2['id']||0x0,this[_0x54f1a7('0x5')]=_0x3b5fd2[_0x54f1a7('0x5')]||'',this[_0x54f1a7('0x6')]=_0x3b5fd2['channel']||_0x54f1a7('0x0'),this['status']=_0x3b5fd2[_0x54f1a7('0x7')]||![],this[_0x54f1a7('0x3')]=_0x3b5fd2[_0x54f1a7('0x3')]||[],this['AnyConditions']=_0x3b5fd2[_0x54f1a7('0x2')]||[],this[_0x54f1a7('0x4')]=_0x3b5fd2[_0x54f1a7('0x4')]||[];}module[_0x2c50d7('0x1')]=Trigger; \ No newline at end of file +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 diff --git a/server/services/ami/model/trunk.js b/server/services/ami/model/trunk.js index f206541..786ed2c 100644 --- a/server/services/ami/model/trunk.js +++ b/server/services/ami/model/trunk.js @@ -1 +1 @@ -var a1080_0x3dd3=['port','domainport','active','state','split','registrationtime','registry','stateTime','status','host','name','refresh','unknown','stateRegistry','address','indexOf','domain'];(function(_0x369dd0,_0x3dd31d){var _0x9235f8=function(_0x1ff618){while(--_0x1ff618){_0x369dd0['push'](_0x369dd0['shift']());}};_0x9235f8(++_0x3dd31d);}(a1080_0x3dd3,0xf9));var a1080_0x9235=function(_0x369dd0,_0x3dd31d){_0x369dd0=_0x369dd0-0x0;var _0x9235f8=a1080_0x3dd3[_0x369dd0];return _0x9235f8;};'use strict';function Trunk(_0x1ff618){var _0xf14ab3=a1080_0x9235;this['id']=_0x1ff618['id']||0x0,this[_0xf14ab3('0x8')]=_0x1ff618[_0xf14ab3('0x8')]||![],this['name']=_0x1ff618[_0xf14ab3('0x10')]||'',this[_0xf14ab3('0x9')]='unknown',this[_0xf14ab3('0xd')]=0x0,this[_0xf14ab3('0xe')]=_0xf14ab3('0x1'),this[_0xf14ab3('0xc')]=_0x1ff618[_0xf14ab3('0xc')]&&_0x1ff618['registry'][_0xf14ab3('0x4')](':')?_0x1ff618[_0xf14ab3('0xc')][_0xf14ab3('0xa')](':')[0x0]:'',this[_0xf14ab3('0xf')]='',this[_0xf14ab3('0x6')]='',this[_0xf14ab3('0x5')]='',this[_0xf14ab3('0x7')]='',this[_0xf14ab3('0x0')]='',this[_0xf14ab3('0x2')]=_0xf14ab3('0x1'),this[_0xf14ab3('0xb')]='',this[_0xf14ab3('0x3')]='';}module['exports']=Trunk; \ No newline at end of file +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 diff --git a/server/services/ami/model/voiceExtension.js b/server/services/ami/model/voiceExtension.js index 79c1d09..7fd1bfb 100644 --- a/server/services/ami/model/voiceExtension.js +++ b/server/services/ami/model/voiceExtension.js @@ -1 +1 @@ -var a1081_0x572d=['exten','mandatoryDisposition','none'];(function(_0x304467,_0x572d70){var _0x3ed64c=function(_0x1ae56e){while(--_0x1ae56e){_0x304467['push'](_0x304467['shift']());}};_0x3ed64c(++_0x572d70);}(a1081_0x572d,0x15c));var a1081_0x3ed6=function(_0x304467,_0x572d70){_0x304467=_0x304467-0x0;var _0x3ed64c=a1081_0x572d[_0x304467];return _0x3ed64c;};'use strict';function voiceExtension(_0x1ae56e){var _0x562065=a1081_0x3ed6;this['id']=_0x1ae56e['id']||0x0,this[_0x562065('0x0')]=_0x1ae56e[_0x562065('0x0')]||'',this['recordingFormat']=_0x1ae56e['recordingFormat']||_0x562065('0x2'),this[_0x562065('0x1')]=_0x1ae56e[_0x562065('0x1')]||![];}module['exports']=voiceExtension; \ No newline at end of file +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 diff --git a/server/services/ami/model/voiceQueue.js b/server/services/ami/model/voiceQueue.js index 2c10259..4a0bc14 100644 --- a/server/services/ami/model/voiceQueue.js +++ b/server/services/ami/model/voiceQueue.js @@ -1 +1 @@ -const a1082_0x9099=['anonymous','predictiveIntervalTotalCalls','dialRecallInQueue','dialAMDMinWordLength','dialLimitQueue','dialAMDAfterGreetingSilence','TrunkBackup','unmanaged','originated','predictiveIntervalHitRate','dialAgentRejectMaxRetry','answered','predictiveIntervalAnsweredCalls','dialOriginateCallerIdNumber','dialCutDigit','talking','acw','dialNoAnswerMaxRetry','dialRecallMeTimeout','dialAMDInitialSilence','dialNoAnswerRetryFrequency','dialQueueProject','outboundBusyCallsDay','timeout','dialTimezone','dialPredictiveInterval','startPredictive','sendMessageOneNotActive','dialBusyRetryFrequency','dialAgentRejectRetryFrequency','roundrobin','Trunk','pTalking','autopause','predictiveIntervalMinThreshold','outboundDropCallsDayCallersExit','dropRate','dialAMDMaximumWordLength','DESC','dialAbandonedRetryFrequency','dialPrefix','dialAMDTotalAnalysisTime','dialNoSuchNumberRetryFrequency','exports','outboundCongestionCallsDay','predictiveIntervalMultiplicativeFactor','dialLimitChannel','dialPredictiveIntervalMaxThreshold','dialQueueOptions','monitor_format','dialActive','dialPredictiveOptimizationPercentage','dialOriginateTimeout','outboundAnswerCallsDay','dialMethod','dialGlobalInterval','dialRandomLastDigitCallerIdNumber','outboundDropCallsDayACS','strategy','loggedIn','dialDropMaxRetry','dialAMDActive','rrmemory','predictiveIntervalAvgTalktime','dialAgiAfterHangupAgent','erlangBusyFactor','dialMachineMaxRetry','predictiveIntervalErlangCalls','mandatoryDisposition','Interval','dialOriginateCallerIdName','dialAMDSilenceThreshold','dialAMDGreeting','erlangAbandonmentRate','dialCongestionMaxRetry','outboundAnswerAgiCallsDay','dialBusyMaxRetry','mandatoryDispositionPause','progressive','dialAMDBetweenWordsSilence','dialCongestionRetryFrequency','total','wav49','acwTimeout','dialAMDMaximumNumberOfWords','dialMachineRetryFrequency','inbound','dialOrderByScheduledAt','predictiveIntervalMaxThreshold','dialAgiAfterHangupClient','predictiveIntervalDroppedCallsTimeout','dialDropRetryFrequency','message','outboundUnknownCallsDay','dialAbandonedMaxRetry','gsm','sumBillable','predictiveIntervalAvailable','name','waiting','outboundNoSuchCallsDay','dialPowerLevel','erlangCalls','predictiveIntervalDroppedCallsCallersExit','handlePredictive','erlangCallToSecond','predictiveIntervalAvgHoldtime','outboundDropCallsDayTimeout'];(function(_0x13fecd,_0x9099f3){const _0x18f9aa=function(_0x4d8ba7){while(--_0x4d8ba7){_0x13fecd['push'](_0x13fecd['shift']());}};_0x18f9aa(++_0x9099f3);}(a1082_0x9099,0xbb));const a1082_0x18f9=function(_0x13fecd,_0x9099f3){_0x13fecd=_0x13fecd-0x0;let _0x18f9aa=a1082_0x9099[_0x13fecd];return _0x18f9aa;};const _0x2f24eb=a1082_0x18f9;'use strict';const monitorFormat={'wav':'wav','wav49':_0x2f24eb('0x3'),'gsm':_0x2f24eb('0x10')},strategy={'rrmemory':_0x2f24eb('0x5b'),'roundrobin':_0x2f24eb('0x3b')};function VoiceQueue(_0x4d8ba7){const _0x5d0ca7=_0x2f24eb;this['id']=_0x4d8ba7['id']||0x0,this['name']=_0x4d8ba7[_0x5d0ca7('0x13')]||'',this[_0x5d0ca7('0x4e')]=_0x4d8ba7[_0x5d0ca7('0x4e')]||'',this['type']=_0x4d8ba7['type']||_0x5d0ca7('0x7'),this[_0x5d0ca7('0x14')]=0x0,this[_0x5d0ca7('0x2c')]=0x0,this[_0x5d0ca7('0x2')]=0x0,this[_0x5d0ca7('0x28')]=0x0,this['sumDuration']=0x0,this['sumHoldTime']=0x0,this[_0x5d0ca7('0x11')]=0x0,this[_0x5d0ca7('0x24')]=0x0,this['abandoned']=0x0,this[_0x5d0ca7('0x58')]=0x0,this['available']=0x0,this[_0x5d0ca7('0x2d')]=_0x4d8ba7[_0x5d0ca7('0x2d')]||![],this[_0x5d0ca7('0x4')]=_0x4d8ba7[_0x5d0ca7('0x4')]||0xa,this[_0x5d0ca7('0x3e')]=_0x4d8ba7[_0x5d0ca7('0x3e')]||'no',this[_0x5d0ca7('0x38')]=!![],this[_0x5d0ca7('0xd')]='',this[_0x5d0ca7('0x25')]=0x0,this['temp']=0x0,this[_0x5d0ca7('0x35')]=_0x4d8ba7[_0x5d0ca7('0x35')]||null,this[_0x5d0ca7('0x54')]=_0x4d8ba7[_0x5d0ca7('0x54')]?_0x4d8ba7[_0x5d0ca7('0x54')]:null,this[_0x5d0ca7('0x4f')]=_0x4d8ba7['dialActive'],this['dialMethod']=_0x4d8ba7[_0x5d0ca7('0x53')]||_0x5d0ca7('0x6b'),this[_0x5d0ca7('0x4b')]=_0x4d8ba7[_0x5d0ca7('0x4b')]||0x0,this[_0x5d0ca7('0x21')]=_0x4d8ba7[_0x5d0ca7('0x21')]||0x0,this[_0x5d0ca7('0x16')]=_0x4d8ba7[_0x5d0ca7('0x16')]||0x1,this['dialPredictiveOptimization']=_0x4d8ba7['dialPredictiveOptimization']||_0x5d0ca7('0x41'),this[_0x5d0ca7('0x50')]=_0x4d8ba7[_0x5d0ca7('0x50')]||0.03,this[_0x5d0ca7('0x36')]=_0x4d8ba7[_0x5d0ca7('0x36')]||0x258,this[_0x5d0ca7('0x63')]=_0x4d8ba7['dialOriginateCallerIdName']||_0x5d0ca7('0x1d'),this[_0x5d0ca7('0x2a')]=_0x4d8ba7['dialOriginateCallerIdNumber']||'anonymous',this['dialOriginateTimeout']=_0x4d8ba7[_0x5d0ca7('0x51')]||0x1e,this[_0x5d0ca7('0x4d')]=_0x4d8ba7[_0x5d0ca7('0x4d')]||'tTxX',this['dialQueueTimeout']=_0x4d8ba7['dialQueueTimeout']||0x3,this['dialQueueProject']=_0x4d8ba7[_0x5d0ca7('0x32')]||undefined,this[_0x5d0ca7('0x67')]=_0x4d8ba7[_0x5d0ca7('0x67')]||0x3,this[_0x5d0ca7('0x1')]=_0x4d8ba7[_0x5d0ca7('0x1')]||0x96,this[_0x5d0ca7('0x69')]=_0x4d8ba7[_0x5d0ca7('0x69')]||0x3,this[_0x5d0ca7('0x39')]=_0x4d8ba7[_0x5d0ca7('0x39')]||0x96,this[_0x5d0ca7('0x2e')]=_0x4d8ba7[_0x5d0ca7('0x2e')]||0x3,this[_0x5d0ca7('0x31')]=_0x4d8ba7[_0x5d0ca7('0x31')]||0x96,this['dialNoSuchNumberMaxRetry']=_0x4d8ba7['dialNoSuchNumberMaxRetry']||0x3,this[_0x5d0ca7('0x47')]=_0x4d8ba7[_0x5d0ca7('0x47')]||0x96,this[_0x5d0ca7('0x59')]=_0x4d8ba7[_0x5d0ca7('0x59')]||0x3,this[_0x5d0ca7('0xc')]=_0x4d8ba7[_0x5d0ca7('0xc')]||0x96,this['dialAbandonedMaxRetry']=_0x4d8ba7[_0x5d0ca7('0xf')]||0x3,this[_0x5d0ca7('0x44')]=_0x4d8ba7[_0x5d0ca7('0x44')]||0x96,this[_0x5d0ca7('0x5f')]=_0x4d8ba7[_0x5d0ca7('0x5f')]||0x3,this[_0x5d0ca7('0x6')]=_0x4d8ba7[_0x5d0ca7('0x6')]||0x96,this[_0x5d0ca7('0x27')]=_0x4d8ba7['dialAgentRejectMaxRetry']||0x3,this[_0x5d0ca7('0x3a')]=_0x4d8ba7[_0x5d0ca7('0x3a')]||0x96,this['dialGlobalMaxRetry']=_0x4d8ba7['dialGlobalMaxRetry']||0x4,this[_0x5d0ca7('0x3c')]=_0x4d8ba7[_0x5d0ca7('0x3c')]?_0x4d8ba7['Trunk']:undefined,this[_0x5d0ca7('0x23')]=_0x4d8ba7['TrunkBackup']?_0x4d8ba7[_0x5d0ca7('0x23')]:undefined,this[_0x5d0ca7('0x45')]=_0x4d8ba7[_0x5d0ca7('0x45')]||undefined,this[_0x5d0ca7('0x62')]=_0x4d8ba7[_0x5d0ca7('0x62')]?_0x4d8ba7[_0x5d0ca7('0x62')]:undefined,this[_0x5d0ca7('0x8')]=_0x4d8ba7['dialOrderByScheduledAt']||_0x5d0ca7('0x43'),this['dialRandomLastDigitCallerIdNumber']=_0x4d8ba7[_0x5d0ca7('0x55')]||undefined,this[_0x5d0ca7('0x2b')]=_0x4d8ba7['dialCutDigit']||undefined,this[_0x5d0ca7('0x57')]=strategy[_0x4d8ba7[_0x5d0ca7('0x57')]]||_0x5d0ca7('0x5b'),this['queueStatusComplete']=!![],this[_0x5d0ca7('0x5a')]=_0x4d8ba7['dialAMDActive']||![],this[_0x5d0ca7('0x30')]=_0x4d8ba7[_0x5d0ca7('0x30')],this[_0x5d0ca7('0x65')]=_0x4d8ba7[_0x5d0ca7('0x65')],this[_0x5d0ca7('0x22')]=_0x4d8ba7[_0x5d0ca7('0x22')],this[_0x5d0ca7('0x46')]=_0x4d8ba7[_0x5d0ca7('0x46')],this['dialAMDMinWordLength']=_0x4d8ba7[_0x5d0ca7('0x20')],this[_0x5d0ca7('0x0')]=_0x4d8ba7['dialAMDBetweenWordsSilence'],this[_0x5d0ca7('0x5')]=_0x4d8ba7['dialAMDMaximumNumberOfWords'],this[_0x5d0ca7('0x64')]=_0x4d8ba7['dialAMDSilenceThreshold'],this[_0x5d0ca7('0x42')]=_0x4d8ba7[_0x5d0ca7('0x42')],this['outboundRejectCallsDay']=0x0,this[_0x5d0ca7('0x3d')]=0x0,this[_0x5d0ca7('0x34')]=_0x4d8ba7[_0x5d0ca7('0x34')],this[_0x5d0ca7('0x52')]=0x0,this[_0x5d0ca7('0x68')]=0x0,this['outboundNoAnswerCallsDay']=0x0,this[_0x5d0ca7('0x33')]=0x0,this[_0x5d0ca7('0x49')]=0x0,this[_0x5d0ca7('0x15')]=0x0,this[_0x5d0ca7('0xe')]=0x0,this['outboundBlacklistCallsDay']=0x0,this['outboundOriginateFailureCallsDay']=0x0,this[_0x5d0ca7('0x40')]=0x0,this[_0x5d0ca7('0x1c')]=0x0,this[_0x5d0ca7('0x56')]=0x0,this['outboundReCallsDay']=0x0,this['outboundAbandonedDay']=0x0,this['startProgressive']=undefined,this[_0x5d0ca7('0x37')]=undefined,this[_0x5d0ca7('0x19')]=undefined,this[_0x5d0ca7('0x4a')]=1.05,this[_0x5d0ca7('0x1e')]=0x0,this[_0x5d0ca7('0x29')]=0x0,this[_0x5d0ca7('0x18')]=0x0,this[_0x5d0ca7('0xb')]=0x0,this[_0x5d0ca7('0x1b')]=0x0,this[_0x5d0ca7('0x5c')]=0x0,this['predictiveIntervalPauses']=0x0,this[_0x5d0ca7('0x12')]=0x0,this[_0x5d0ca7('0x9')]=_0x4d8ba7[_0x5d0ca7('0x4c')]||0x14,this[_0x5d0ca7('0x3f')]=_0x4d8ba7['dialPredictiveIntervalMaxThreshold']||0xa,this[_0x5d0ca7('0x60')]=0x0,this['predictiveIntervalErlangCallsDroppedCalls']=0x0,this[_0x5d0ca7('0x26')]=0x1,this[_0x5d0ca7('0x17')]=0x0,this[_0x5d0ca7('0x1a')]=0x0,this[_0x5d0ca7('0x66')]=0x0,this[_0x5d0ca7('0x5e')]=0x0,this['dialRecallMeTimeout']=_0x4d8ba7[_0x5d0ca7('0x2f')]||0x1e,this[_0x5d0ca7('0x1f')]=_0x4d8ba7[_0x5d0ca7('0x1f')]||![],this['dialQueueProject2']=_0x4d8ba7['dialQueueProject2']||undefined,this[_0x5d0ca7('0xa')]=_0x4d8ba7[_0x5d0ca7('0xa')]||![],this[_0x5d0ca7('0x5d')]=_0x4d8ba7['dialAgiAfterHangupAgent']||![],this[_0x5d0ca7('0x4e')]=monitorFormat[_0x4d8ba7[_0x5d0ca7('0x4e')]]?monitorFormat[_0x4d8ba7[_0x5d0ca7('0x4e')]]:undefined,this['mandatoryDisposition']=_0x4d8ba7[_0x5d0ca7('0x61')]||![],this[_0x5d0ca7('0x6a')]=_0x4d8ba7['mandatoryDispositionPause']?_0x4d8ba7['mandatoryDispositionPause']:undefined;}module[_0x2f24eb('0x48')]=VoiceQueue; \ No newline at end of file +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 diff --git a/server/services/ami/model/vtigerAccount.js b/server/services/ami/model/vtigerAccount.js index 537cec1..6a823fb 100644 --- a/server/services/ami/model/vtigerAccount.js +++ b/server/services/ami/model/vtigerAccount.js @@ -1 +1 @@ -var a1083_0x168d=['name','username','remoteUri','exports','serverUrl','Configurations'];(function(_0x33d0af,_0x168d45){var _0x23b1e8=function(_0x5f5abd){while(--_0x5f5abd){_0x33d0af['push'](_0x33d0af['shift']());}};_0x23b1e8(++_0x168d45);}(a1083_0x168d,0x173));var a1083_0x23b1=function(_0x33d0af,_0x168d45){_0x33d0af=_0x33d0af-0x0;var _0x23b1e8=a1083_0x168d[_0x33d0af];return _0x23b1e8;};var _0x2faddd=a1083_0x23b1;'use strict';function VtigerAccount(_0x5f5abd){var _0x13b7fb=a1083_0x23b1;this['id']=_0x5f5abd['id']||0x0,this[_0x13b7fb('0x1')]=_0x5f5abd[_0x13b7fb('0x1')]||'',this[_0x13b7fb('0x2')]=_0x5f5abd[_0x13b7fb('0x2')]||'',this['accessKey']=_0x5f5abd['accessKey']||'',this[_0x13b7fb('0x3')]=_0x5f5abd[_0x13b7fb('0x3')]||'',this[_0x13b7fb('0x5')]=_0x5f5abd['serverUrl']||'',this[_0x13b7fb('0x0')]=_0x5f5abd['Configurations']||{};}module[_0x2faddd('0x4')]=VtigerAccount; \ No newline at end of file +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 diff --git a/server/services/ami/model/zendeskAccount.js b/server/services/ami/model/zendeskAccount.js index f5efce7..a882948 100644 --- a/server/services/ami/model/zendeskAccount.js +++ b/server/services/ami/model/zendeskAccount.js @@ -1 +1 @@ -var a1084_0x4791=['password','Configurations','type','name','token','username','serverUrl','authType','remoteUri'];(function(_0x89b8ad,_0x479131){var _0x56d47d=function(_0x204938){while(--_0x204938){_0x89b8ad['push'](_0x89b8ad['shift']());}};_0x56d47d(++_0x479131);}(a1084_0x4791,0xbb));var a1084_0x56d4=function(_0x89b8ad,_0x479131){_0x89b8ad=_0x89b8ad-0x0;var _0x56d47d=a1084_0x4791[_0x89b8ad];return _0x56d47d;};'use strict';function ZendeskAccount(_0x204938){var _0x46b46a=a1084_0x56d4;this['id']=_0x204938['id']||0x0,this['name']=_0x204938[_0x46b46a('0x5')]||'',this[_0x46b46a('0x7')]=_0x204938[_0x46b46a('0x7')]||'',this[_0x46b46a('0x2')]=_0x204938[_0x46b46a('0x2')]||'',this[_0x46b46a('0x6')]=_0x204938[_0x46b46a('0x6')]||'',this['remoteUri']=_0x204938[_0x46b46a('0x1')]||'',this[_0x46b46a('0x0')]=_0x204938[_0x46b46a('0x0')]||'',this['type']=_0x204938[_0x46b46a('0x4')]||'integrationTab',this[_0x46b46a('0x8')]=_0x204938[_0x46b46a('0x8')]||'',this['Configurations']=_0x204938[_0x46b46a('0x3')]||{};}module['exports']=ZendeskAccount; \ No newline at end of file +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 diff --git a/server/services/ami/model/zohoAccount.js b/server/services/ami/model/zohoAccount.js index 96d82e6..1c14f1a 100644 --- a/server/services/ami/model/zohoAccount.js +++ b/server/services/ami/model/zohoAccount.js @@ -1 +1 @@ -var a1085_0x56d1=['serverUrl','description','name','code','exports','host','zone','clientId','clientSecret','Configurations','refreshToken'];(function(_0x53520e,_0x56d1bf){var _0x1cdc5a=function(_0x3ea69a){while(--_0x3ea69a){_0x53520e['push'](_0x53520e['shift']());}};_0x1cdc5a(++_0x56d1bf);}(a1085_0x56d1,0x1a3));var a1085_0x1cdc=function(_0x53520e,_0x56d1bf){_0x53520e=_0x53520e-0x0;var _0x1cdc5a=a1085_0x56d1[_0x53520e];return _0x1cdc5a;};var _0x3db374=a1085_0x1cdc;'use strict';function ZohoAccount(_0x3ea69a){var _0x11692d=a1085_0x1cdc;this['id']=_0x3ea69a['id']||0x0,this[_0x11692d('0x1')]=_0x3ea69a['name']||'',this['description']=_0x3ea69a[_0x11692d('0x0')]||'',this[_0x11692d('0x4')]=_0x3ea69a[_0x11692d('0x4')]||'',this[_0x11692d('0x5')]=_0x3ea69a[_0x11692d('0x5')]||'',this[_0x11692d('0x6')]=_0x3ea69a['clientId']||'',this[_0x11692d('0x7')]=_0x3ea69a['clientSecret']||'',this[_0x11692d('0xa')]=_0x3ea69a['serverUrl']||'',this['code']=_0x3ea69a[_0x11692d('0x2')]||'',this['refreshToken']=_0x3ea69a[_0x11692d('0x9')]||'',this['Configurations']=_0x3ea69a[_0x11692d('0x8')]||{};}module[_0x3db374('0x3')]=ZohoAccount; \ No newline at end of file +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 diff --git a/server/services/ami/preview/action.js b/server/services/ami/preview/action.js index 9f427d5..34d74df 100644 --- a/server/services/ami/preview/action.js +++ b/server/services/ami/preview/action.js @@ -1 +1 @@ -const a1086_0x1a71=['UserId','countagentrejectretry','firstName','recallme','getCaller','string','countglobal','countcongestionretry','ListId','phone','originatecalleridname','channelAgent','countmachineretry','VoiceQueueId','SIP/%s','callbackuniqueid','dialAnswer','lastName','prototype','uniqueid','callbackat','countnosuchnumberretry','ContactId','campaigntype','util','countabandonedretry','\x22%s\x22\x20<%s>','name','originatecalleridnum','Contact','idContact','countbusyretry','calleridname','callback','scheduledat','countdropretry','number','format','countnoanswerretry','isNil','membername','queue','Agent','exports','calleridnum','active','lodash'];(function(_0x164894,_0x1a712c){const _0x5868bc=function(_0x5c4b26){while(--_0x5c4b26){_0x164894['push'](_0x164894['shift']());}};_0x5868bc(++_0x1a712c);}(a1086_0x1a71,0x1c2));const a1086_0x5868=function(_0x164894,_0x1a712c){_0x164894=_0x164894-0x0;let _0x5868bc=a1086_0x1a71[_0x164894];return _0x5868bc;};const _0x488ab9=a1086_0x5868;'use strict';const util=require(_0x488ab9('0x2c')),_=require(_0x488ab9('0x13'));function checkNameSurname(_0x5c4b26,_0x5e3891,_0x11fcb5){const _0x148567=_0x488ab9;let _0x2ebc49='';!_[_0x148567('0xc')](_0x5e3891)&&'string'===typeof _0x5e3891&&(_0x2ebc49+=_0x5e3891);!_[_0x148567('0xc')](_0x11fcb5)&&_0x148567('0x19')===typeof _0x11fcb5&&(_0x2ebc49+='\x20'+_0x11fcb5);if(_0x2ebc49!=='')return _0x2ebc49;return _0x5c4b26;}function Action(_0x243763,_0x4642e5,_0x2f0682,_0xc7f7e5){const _0x5f56ca=_0x488ab9;this[_0x5f56ca('0x27')]=_0x2f0682||undefined,this[_0x5f56ca('0x3')]=_0x243763['id'],this[_0x5f56ca('0xe')]=_0x4642e5['name'],this['type']=_0x4642e5['type'],this[_0x5f56ca('0x2b')]=_0x5f56ca('0xe'),this[_0x5f56ca('0x24')]=![],this['membername']=_['isNil'](_0x243763[_0x5f56ca('0xf')])?undefined:_0x243763[_0x5f56ca('0xf')][_0x5f56ca('0x0')],this[_0x5f56ca('0x1f')]=this[_0x5f56ca('0xd')]?util[_0x5f56ca('0xa')](_0x5f56ca('0x22'),this[_0x5f56ca('0xd')]):_0xc7f7e5||undefined,this[_0x5f56ca('0x5')]=checkNameSurname(_0x243763['Contact'][_0x5f56ca('0x1d')],_0x243763[_0x5f56ca('0x2')][_0x5f56ca('0x16')],_0x243763['Contact'][_0x5f56ca('0x25')]),this[_0x5f56ca('0x12')]=_0x243763[_0x5f56ca('0x12')]||![],this[_0x5f56ca('0x11')]=_0x243763[_0x5f56ca('0x2')][_0x5f56ca('0x1d')],this[_0x5f56ca('0x7')]=_0x243763[_0x5f56ca('0x7')],this[_0x5f56ca('0x4')]=_0x243763[_0x5f56ca('0x4')]||0x0,this['countcongestionretry']=_0x243763[_0x5f56ca('0x1b')]||0x0,this[_0x5f56ca('0xb')]=_0x243763[_0x5f56ca('0xb')]||0x0,this[_0x5f56ca('0x1a')]=(_0x243763[_0x5f56ca('0x4')]||0x0)+(_0x243763[_0x5f56ca('0x1b')]||0x0)+(_0x243763[_0x5f56ca('0xb')]||0x0)+(_0x243763[_0x5f56ca('0x29')]||0x0)+(_0x243763[_0x5f56ca('0x8')]||0x0)+(_0x243763[_0x5f56ca('0x2d')]||0x0)+(_0x243763[_0x5f56ca('0x20')]||0x0)+(_0x243763[_0x5f56ca('0x15')]||0x0),this[_0x5f56ca('0x29')]=_0x243763[_0x5f56ca('0x29')]||0x0,this[_0x5f56ca('0x8')]=_0x243763[_0x5f56ca('0x8')]||0x0,this['countabandonedretry']=_0x243763[_0x5f56ca('0x2d')]||0x0,this[_0x5f56ca('0x20')]=_0x243763[_0x5f56ca('0x20')]||0x0,this[_0x5f56ca('0x15')]=_0x243763[_0x5f56ca('0x15')]||0x0,this[_0x5f56ca('0x6')]=_0x243763[_0x5f56ca('0x6')],this[_0x5f56ca('0x23')]=_0x243763[_0x5f56ca('0x23')],this[_0x5f56ca('0x28')]=_0x243763[_0x5f56ca('0x28')],this[_0x5f56ca('0x17')]=_0x243763[_0x5f56ca('0x17')],this[_0x5f56ca('0x2a')]=_0x243763['ContactId'],this[_0x5f56ca('0x1c')]=_0x243763['ListId'],this[_0x5f56ca('0x14')]=_[_0x5f56ca('0xc')](_0x243763[_0x5f56ca('0xf')])?_0x243763[_0x5f56ca('0x14')]:_0x243763[_0x5f56ca('0xf')]['id'],this['VoiceQueueId']=_0x243763[_0x5f56ca('0x21')],this[_0x5f56ca('0x1')]='',this[_0x5f56ca('0x1e')]='';}Action[_0x488ab9('0x26')][_0x488ab9('0x18')]=function(){const _0x8d2fbe=_0x488ab9;return util['format'](_0x8d2fbe('0x2e'),this[_0x8d2fbe('0x5')],this[_0x8d2fbe('0x9')]);},module[_0x488ab9('0x10')]=Action; \ No newline at end of file +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 diff --git a/server/services/ami/preview/index.js b/server/services/ami/preview/index.js index fe8cd7e..7b8aba8 100644 --- a/server/services/ami/preview/index.js +++ b/server/services/ami/preview/index.js @@ -1 +1 @@ -const a1087_0xa882=['isEmpty','TrunkBackup','custom:agentbusy','[callProgressDetectingAgent][logCongestion]','UserId','dialRecallMeTimeout','type','dialRandomLastDigitCallerIdNumber','updateOriginated','scheduledat','agentreject','Agent','\x20is\x20disactive','countnosuchnumberretry','custom:agentreject','dialNoSuchNumberMaxRetry','startProgressive','dialBusyRetryFrequency','rescheduleContact','outboundCongestionCallsDay','cloneAction','busy','[CampaignPreview]\x20Campaign\x20Queue:\x20','isTrunkReachable','Answer','[callProgressDetectingCustomer][logAnswerGlobal]','custom:agentnosuchnumber','[syncHangup][talking][cause]','dialNoAnswerMaxRetry','[HistoryDialRecallInQueue][historyCatch]','pTalking','unmanaged','logCustomer','[callProgressDetectingCustomer][logBusy]','total','unlock','isNil','dialCongestionMaxRetry','[callProgressDetectingCustomer][logCongestionGlobal]','[16]','error','scheduledAt','getCallerId','ANSWER','syncBlindTransfer','ABANDONED','buildObj','object','destuniqueid','isActive','clone','voiceQueues','transfertargetlinkedid','waiting','agentReadyId','talking','recallme','dialend','originated','dialOriginateTimeout','[Dialer][checkChannel][Preview]','dialstatus','countnoanswerretry','dialOriginateCallerIdName','syncVarSet','outboundDropCallsDayACS','hanguprequest','dialActive','CONGESTION','variable','starttime','status','\x20Trunk\x20is\x20not\x20active','voicePause','voice_queue:save','answertime','reachable','trunks','AgentReject','[callProgressDetectingAgent]','validateContact','response','clearZombieChannels','originateresponse','checkInBlack','IsNotLoggedIn','channel','predictiveIntervalAvailable','[Preview][validateContact][Campaign\x20Active]','execCall','outboundNoAnswerCallsDay','lookAgent','startPredictive','[clearZombieChannel]','Action','statedesc','rescheduleContactInQueue','preview','dialOriginateCallerIdNumber','activeContact','Contact\x20is\x20undefined','blindtransfer','[originated][decrement][callProgressDetectingAgent]','queue','custom:agentnoanswer','uniqueid','predictiveIntervalPauses','keys','unlockAgent','Contact','loggerError','varset','newexten','[callProgressDetectingCustomer][logAbandoned]','booked','talktime','NOT_ACTIVE','Congestion','[DEBUG]\x20Emit\x20voice_queue_channel:remove\x20event','execRun','recallMe','syncCampaigns','erlangCalls','No\x20such\x20channel','outboundNoSuchCallsDay','getContactPreview','size','complete','checkIsBlackList','callProgressDetectingCustomer','outboundDropCallsDayCallersExit','[syncVarSet][Preview]','[callProgressDetectingCustomer][logBusyGlobal]','[callProgressDetectingAgent][logNoSuch]','loggedInDb','actionid','dialCutDigit','[getContactRecallMe]','NoAnswer','createAgentHistory','predictiveIntervalMultiplicativeFactor','predictiveIntervalDroppedCallsTimeout','predictiveIntervalAvgHoldtime','createCustomerHistory','outboundBlacklistCallsDay','syncNewExten','active','stringify','cause-txt','custom:agentringnoanswer','campaignsPreview','[callProgressDetectingCustomer][logNoSuchGlobal]','nosuchnumber','erlangCallToSecond','Empty\x20Contact','[originated][decrement][callProgressDetectingCustomer]','NOANSWER','[callProgressDetectingCustomer][logUnknown]','pick','isFailure','Empty\x20Campaign','BUSY','sumDuration','dialRecallInQueue','isValid','Global','outboundAbandonedCallsDay','info','sendMessageOneNotActive','countglobal','buildAcw','dialAbandonedMaxRety','predictiveIntervalErlangCalls','sumBillable','contactId','dialAbandonedRetryFrequency','./util/util','format','agents','clockClearZombieChannels','Busy','custom:agentConnectPreview','Calling','extractCalleridName','ListId','SIP/%s/%s%s','[HistoryRecallClose]','md5','tail','dialAgentRejectMaxRetry','[Preview][execCall][success]','actions','RecallInQueue','variables','predictiveIntervalTotalCalls','createBody','disableContact','[Preview][validateContact][Empty\x20Contact]','\x20Queue','syncOriginateResponse','[callProgressDetectingAgent][logNoAnswer]','pTalking:\x20','linkedid','originatecalleridnum','available','erlangBusyFactor','Queue','[callProgressDetectingCustomer][logNoAnswer]','logAgent','totalGlobal','transfer','prototype','Call\x20unsuccessful','connect','[callProgressDetectingCustomer][logCongestion]','Trunk','callProgressDetectingAgent','dialAgentRejectRetryFrequency','dialNoAnswerRetryFrequency','catch','noanswer','value','originated:\x20','outbound','cause','erlangAbandonmentRate','unlockContact','dialGlobalMaxRetry','Interval','channelstate','reason','addVariable','outboundOriginateFailureCallsDay','campaign\x20Name:\x20','getContactRecallMe','filterKey','[RecallMe]','emit','dialAnswer','substring','[Dialer][decrementTalkink][no\x20Hangup][Preview]','isUndefined','logger','clearZombieChannel','[syncHangup][talking][decrement]','sequence','[callProgressDetectingCustomer][logUnknownGlobal]','outboundUnknownCallsDay','[callProgressDetectingCustomer][logNoSuch]','../../../config/logger','custom:agentcalled','CANCEL','\x20is\x20not\x20active','dialNoSuchNumberRetryFrequency','[Preview][execCall][failure]','createCustomerFinal','undefined','called','NoSuchNumber','outboundAnswerCallsDay','SIP/%s','predictiveIntervalHitRate','[originateFailure][logOriginateFailure]','outboundReCallsDay','[callProgressDetectingAgent][logBusy]','../../../rediscache','YYYY-MM-DD\x20HH:mm:ss','[callProgressDetectingCustomer]','\x20Not\x20Active','message','logLookAgent','responsetime','addVariables','countagentrejectretry','inspect','callerid','ACTIVE','logger2','countbusyretry','\x20Trunk\x20Backup\x20is\x20not\x20active','trim','voice_queue_channel:remove','[Dialer][checkChannel][pTalking][Preview]','dialPrefix','../ami','idContact','setMessage','\x20IdHopper:\x20','loggedIn','countcongestionretry','[Preview][validateContact][Trunk\x20not\x20work]','syncHangupRequest','predictiveIntervalAnsweredCalls','sumHoldTime','[callProgressDetectingCustomer][logAgentReject]','unmonitored','getDiff','syncDialEnd','custom:agentcongestion','strategy','[syncHangup][talking][transfer]','custom:agentconnect','voice:queue:%s','bind','transfererlinkedid','run','getCallerIdRandom','originatecalleridname','dialMethod','predictiveIntervalDroppedCallsCallersExit','VoiceQueueId','paused','[syncHangup][talking][increment]','countabandonedretry','destlinkedid','Call\x20failed','phone','then','[Preview][getContactPreview]','name','outboundAnswerAgiCallsDay','lodash'];(function(_0x2c6980,_0xa8822c){const _0x8028c1=function(_0x65587c){while(--_0x65587c){_0x2c6980['push'](_0x2c6980['shift']());}};_0x8028c1(++_0xa8822c);}(a1087_0xa882,0xfd));const a1087_0x8028=function(_0x2c6980,_0xa8822c){_0x2c6980=_0x2c6980-0x0;let _0x8028c1=a1087_0xa882[_0x2c6980];return _0x8028c1;};const _0x5599f0=a1087_0x8028;'use strict';const util=require('util'),_=require(_0x5599f0('0x44')),uuid=require('uuid'),moment=require('moment'),md5=require(_0x5599f0('0x100')),logger=require('../../../config/logger')(_0x5599f0('0xa6')),loggerAction=require(_0x5599f0('0x13e'))('actionPreview'),ami=require(_0x5599f0('0x1f')),rpcDb=require('./rpcDb'),Action=require('./action'),ut=require(_0x5599f0('0xf5')),{getSocket}=require(_0x5599f0('0xc')),io=getSocket(),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x65587c){const _0x59b590=_0x5599f0;this[_0x59b590('0x101')]=this[_0x59b590('0x101')]?this[_0x59b590('0x101')]['finally'](_0x65587c):_0x65587c();};function Preview(_0x5b3c0f){const _0x120381=_0x5599f0;this['sequence']=new Sequence(),this[_0x120381('0xdb')]=_0x5b3c0f[_0x120381('0x78')],this[_0x120381('0x92')]=_0x5b3c0f[_0x120381('0x92')],this['actions']={},this[_0x120381('0xf7')]=_0x5b3c0f[_0x120381('0xf7')],this[_0x120381('0xf8')]=0x0,ami['on'](_0x120381('0x98'),this[_0x120381('0x10c')][_0x120381('0x32')](this)),ami['on']('hangup',this['syncHangup'][_0x120381('0x32')](this)),ami['on'](_0x120381('0x87'),this[_0x120381('0x26')][_0x120381('0x32')](this)),ami['on'](_0x120381('0x7e'),this['syncDialEnd']['bind'](this)),ami['on'](_0x120381('0xb5'),this[_0x120381('0xd6')][_0x120381('0x32')](this)),ami['on'](_0x120381('0xb4'),this['syncVarSet'][_0x120381('0x32')](this)),ami['on']('attendedtransfer',this['syncAttendedTransfer'][_0x120381('0x32')](this)),ami['on'](_0x120381('0xaa'),this[_0x120381('0x71')][_0x120381('0x32')](this)),this['loopCampaigns'](this['campaignsPreview']);}function emit(_0x2ce695,_0x41f4e6,_0x22eabe){const _0x5c4c72=_0x5599f0;io['to'](_0x2ce695)[_0x5c4c72('0x132')](_0x41f4e6,_0x22eabe);}function emitCampaignPreview(_0x54934d){const _0x427234=_0x5599f0;if(_0x54934d[_0x427234('0x4b')]===_0x427234('0x124')){const _0x22146f={'id':_0x54934d['id'],'name':_0x54934d[_0x427234('0x42')],'strategy':_0x54934d[_0x427234('0x2e')],'answered':_0x54934d['answered'],'available':_0x54934d[_0x427234('0x111')],'loggedIn':_0x54934d[_0x427234('0x23')],'pTalking':_0x54934d[_0x427234('0x63')],'sumBillable':_0x54934d[_0x427234('0xf2')],'sumDuration':_0x54934d[_0x427234('0xe7')],'sumHoldTime':_0x54934d[_0x427234('0x28')]||0x0,'talking':_0x54934d[_0x427234('0x7c')],'total':_0x54934d['total'],'type':_0x54934d[_0x427234('0x4b')],'unmanaged':_0x54934d[_0x427234('0x64')],'abandoned':_0x54934d['abandoned'],'waiting':_0x54934d[_0x427234('0x7a')],'loggedInDb':_0x54934d[_0x427234('0xcb')],'dialActive':_0x54934d['dialActive'],'dialMethod':_0x54934d['dialMethod'],'dialOriginateCallerIdName':_0x54934d[_0x427234('0x84')],'dialOriginateCallerIdNumber':_0x54934d['dialOriginateCallerIdNumber'],'dialOriginateTimeout':_0x54934d[_0x427234('0x80')],'dialPrefix':_0x54934d['dialPrefix'],'outboundAnswerAgiCallsDay':_0x54934d[_0x427234('0x43')],'outboundAnswerCallsDay':_0x54934d[_0x427234('0x6')],'outboundBlacklistCallsDay':_0x54934d[_0x427234('0xd5')],'outboundBusyCallsDay':_0x54934d['outboundBusyCallsDay'],'outboundCongestionCallsDay':_0x54934d['outboundCongestionCallsDay'],'outboundDropCallsDayACS':_0x54934d[_0x427234('0x86')],'outboundDropCallsDayCallersExit':_0x54934d[_0x427234('0xc7')],'outboundDropCallsDayTimeout':_0x54934d['outboundDropCallsDayTimeout'],'outboundNoAnswerCallsDay':_0x54934d[_0x427234('0x9f')],'outboundNoSuchCallsDay':_0x54934d[_0x427234('0xc1')],'outboundOriginateFailureCallsDay':_0x54934d[_0x427234('0x12d')],'outboundReCallsDay':_0x54934d[_0x427234('0xa')],'outboundRejectCallsDay':_0x54934d['outboundRejectCallsDay'],'outboundUnknownCallsDay':_0x54934d[_0x427234('0x13c')],'outboundAbandonedCallsDay':_0x54934d['outboundAbandonedCallsDay'],'predictiveIntervalAnsweredCalls':_0x54934d[_0x427234('0x27')],'predictiveIntervalAvgHoldtime':_0x54934d[_0x427234('0xd3')],'predictiveIntervalAvgTalktime':_0x54934d['predictiveIntervalAvgTalktime'],'predictiveIntervalDroppedCallsCallersExit':_0x54934d[_0x427234('0x38')],'predictiveIntervalDroppedCallsTimeout':_0x54934d[_0x427234('0xd2')],'predictiveIntervalErlangCalls':_0x54934d[_0x427234('0xf1')],'predictiveIntervalErlangCallsDroppedCalls':_0x54934d['predictiveIntervalErlangCallsDroppedCalls'],'predictiveIntervalHitRate':_0x54934d[_0x427234('0x8')],'predictiveIntervalMultiplicativeFactor':_0x54934d[_0x427234('0xd1')],'predictiveIntervalPauses':_0x54934d[_0x427234('0xaf')],'predictiveIntervalAvailable':_0x54934d[_0x427234('0x9c')],'predictiveIntervalTotalCalls':_0x54934d[_0x427234('0x107')],'message':_0x54934d[_0x427234('0x10')],'originated':_0x54934d['originated'],'erlangCalls':_0x54934d[_0x427234('0xbf')],'erlangCallToSecond':_0x54934d[_0x427234('0xde')],'erlangAbandonmentRate':_0x54934d[_0x427234('0x126')],'erlangBusyFactor':_0x54934d[_0x427234('0x112')],'startPredictive':_0x54934d[_0x427234('0xa1')],'startProgressive':_0x54934d[_0x427234('0x55')]};_0x54934d[_0x427234('0x11c')]&&(_0x22146f[_0x427234('0x11c')]={'id':_0x54934d[_0x427234('0x11c')]['id'],'name':_0x54934d[_0x427234('0x11c')]['name'],'active':_0x54934d[_0x427234('0x11c')][_0x427234('0xd7')],'callerid':_0x54934d[_0x427234('0x11c')][_0x427234('0x16')]});_0x54934d[_0x427234('0x129')]&&(_0x22146f[_0x427234('0x129')]={'id':_0x54934d[_0x427234('0x129')]['id'],'name':_0x54934d['Interval'][_0x427234('0x42')]});const _0x16b480=md5(JSON[_0x427234('0xd8')](_0x22146f));_0x54934d[_0x427234('0x100')]!==_0x16b480&&(_0x54934d[_0x427234('0x100')]=_0x16b480,emit(util[_0x427234('0xf6')](_0x427234('0x31'),_0x22146f[_0x427234('0x42')]),_0x427234('0x8f'),_0x22146f));}}function emitVoiceQueueChannelRemove(_0x38d970){const _0x24236c=_0x5599f0;logger[_0x24236c('0xec')](_0x24236c('0xbb'),JSON[_0x24236c('0xd8')](_0x38d970)),emit(util['format'](_0x24236c('0x31'),_0x38d970['name']),_0x24236c('0x1c'),_0x38d970);}function notSendMessagesQueue(_0x3a55f9){const _0x26bc04=_0x5599f0;_0x3a55f9[_0x26bc04('0xed')]&&(_0x3a55f9[_0x26bc04('0x7f')]===0x0&&_0x3a55f9[_0x26bc04('0x63')]===0x0?(_0x3a55f9['sendMessageOneNotActive']=![],_0x3a55f9['available']=0x0,_0x3a55f9[_0x26bc04('0x3a')]=0x0,_0x3a55f9['message']=_0x26bc04('0xb9'),ut[_0x26bc04('0x137')](_0x26bc04('0x5b'),_0x3a55f9[_0x26bc04('0x42')]+_0x26bc04('0x141'))):(_0x3a55f9[_0x26bc04('0x10')]='IS_DISACTIVED',ut['logger']('[CampaignPreview]\x20Campaign\x20Queue:\x20',_0x3a55f9[_0x26bc04('0x42')]+_0x26bc04('0x51'))),emitCampaignPreview(_0x3a55f9));}Preview[_0x5599f0('0x118')]['loopCampaigns']=function(){const _0x5c79d9=this;setInterval(function(){const _0x44b65b=a1087_0x8028;_0x5c79d9[_0x44b65b('0xbe')]();},0x7cf);},Preview[_0x5599f0('0x118')][_0x5599f0('0xbe')]=function(){const _0xbb5c0a=_0x5599f0,_0x481935=this['campaignsPreview'];this['clockClearZombieChannels']+=0x1;for(const _0x5bd63e in _0x481935){typeof _0x481935[_0x5bd63e]!==_0xbb5c0a('0x3')&&(_0x481935[_0x5bd63e][_0xbb5c0a('0x37')]===_0xbb5c0a('0xa6')||_0x481935[_0x5bd63e][_0xbb5c0a('0x37')]===_0xbb5c0a('0xb7'))&&_0x481935[_0x5bd63e]['type']===_0xbb5c0a('0x124')&&(this['clockClearZombieChannels']>0x7&&(this[_0xbb5c0a('0xf8')]=0x0,this[_0xbb5c0a('0x97')]())),typeof _0x481935[_0x5bd63e]!==_0xbb5c0a('0x3')&&_0x481935[_0x5bd63e][_0xbb5c0a('0x37')]===_0xbb5c0a('0xa6')&&_0x481935[_0x5bd63e]['type']===_0xbb5c0a('0x124')&&(_0x481935[_0x5bd63e][_0xbb5c0a('0x88')]?(this[_0xbb5c0a('0x21')](_0x481935[_0x5bd63e]),this['recallMe'](_0x481935[_0x5bd63e])):notSendMessagesQueue(_0x481935[_0x5bd63e]));}},Preview['prototype'][_0x5599f0('0x138')]=function(_0x5838af){const _0x122903=_0x5599f0,_0x238e1a=this;this[_0x122903('0x13a')]['enqueue'](function(){const _0x722ebf=_0x122903;if(!_[_0x722ebf('0x69')](_0x238e1a['actions'][_0x5838af]))return loggerAction[_0x722ebf('0xec')]('[clearZombieChannels][talking]',_0x5838af,'Queue',_0x238e1a[_0x722ebf('0x104')][_0x5838af][_0x722ebf('0xac')],'originated:\x20',JSON[_0x722ebf('0xd8')](_0x238e1a[_0x722ebf('0xdb')][_0x238e1a[_0x722ebf('0x104')][_0x5838af][_0x722ebf('0xac')]][_0x722ebf('0x7f')]),_0x722ebf('0x10e'),JSON['stringify'](_0x238e1a[_0x722ebf('0xdb')][_0x238e1a[_0x722ebf('0x104')][_0x5838af][_0x722ebf('0xac')]][_0x722ebf('0x63')]),JSON[_0x722ebf('0xd8')](_0x238e1a[_0x722ebf('0x104')][_0x5838af][_0x722ebf('0x133')]),JSON[_0x722ebf('0xd8')](_['pick'](_0x238e1a[_0x722ebf('0x104')][_0x5838af],[_0x722ebf('0xf3'),_0x722ebf('0x49'),_0x722ebf('0x39'),_0x722ebf('0xfd')]))),ami[_0x722ebf('0xa3')]({'action':'status','channel':_0x238e1a[_0x722ebf('0x104')][_0x5838af][_0x722ebf('0x9b')]})[_0x722ebf('0x120')](function(_0x9777d6){const _0x222bee=_0x722ebf;_0x9777d6[_0x222bee('0x10')]===_0x222bee('0xc0')&&setTimeout(function(){const _0x221e46=_0x222bee;_0x238e1a[_0x221e46('0x104')][_0x5838af]&&(ut[_0x221e46('0x4d')](_0x238e1a[_0x221e46('0xdb')][_0x238e1a[_0x221e46('0x104')][_0x5838af][_0x221e46('0xac')]],_0x221e46('0xa2')),_0x238e1a[_0x221e46('0x104')][_0x5838af]['dialAnswer']===!![]&&(ut['decrementTalkink'](_0x238e1a[_0x221e46('0xdb')][_0x238e1a[_0x221e46('0x104')][_0x5838af]['queue']],'[clearZombieChannel]'),ut[_0x221e46('0xb3')](_0x221e46('0x1d')+_0x5838af,_0x238e1a[_0x221e46('0x104')][_0x5838af][_0x221e46('0xac')])),ut['loggerError'](_0x221e46('0x81')+_0x5838af,_0x238e1a[_0x221e46('0x104')][_0x5838af]['queue']),delete _0x238e1a[_0x221e46('0x104')][_0x5838af]);},0x2328);});});},Preview[_0x5599f0('0x118')][_0x5599f0('0x97')]=function(){const _0x5945df=_0x5599f0,_0xae06db=this;loggerAction[_0x5945df('0xec')]('[action]',_[_0x5945df('0xc3')](this[_0x5945df('0x104')]));for(const _0x1c6834 in this[_0x5945df('0x104')]){typeof _0xae06db[_0x5945df('0x104')][_0x1c6834]!==_0x5945df('0x3')&&_0xae06db[_0x5945df('0x138')](_0x1c6834);}},Preview[_0x5599f0('0x118')][_0x5599f0('0xbd')]=function(_0x323bc5){const _0x34eb94=_0x5599f0,_0x1f4539=this;rpcDb[_0x34eb94('0x12f')](_0x323bc5['id'],ut[_0x34eb94('0x7b')](this['agents']))[_0x34eb94('0x40')](function(_0x5922cc){const _0x7e46ba=_0x34eb94;if(!_[_0x7e46ba('0x69')](_0x5922cc))for(let _0xcb646c=0x0;_0xcb646c<_0x5922cc['length'];_0xcb646c+=0x1){if(ut[_0x7e46ba('0x2b')](_0x5922cc[_0xcb646c][_0x7e46ba('0x4e')])<_0x323bc5[_0x7e46ba('0x4a')]*0x3c)_0x5922cc[_0xcb646c][_0x7e46ba('0x50')]&&!_0x5922cc[_0xcb646c]['Agent'][_0x7e46ba('0x8e')]?_0x1f4539[_0x7e46ba('0x34')](_0x5922cc[_0xcb646c]['id'])[_0x7e46ba('0x40')](ut[_0x7e46ba('0x18')](_0x7e46ba('0x131')))[_0x7e46ba('0x120')](ut[_0x7e46ba('0x18')](_0x7e46ba('0x131'))):rpcDb['disableContact'](_0x5922cc[_0xcb646c]['id']);else{const _0x414361=new Action(_0x5922cc[_0xcb646c],_0x323bc5);_0x414361[_0x7e46ba('0x8b')]=moment()[_0x7e46ba('0xf6')](_0x7e46ba('0xd')),_0x323bc5[_0x7e46ba('0xa')]+=0x1,ut[_0x7e46ba('0x65')](_0x414361,0x17,_0x7e46ba('0x105')),_0x323bc5[_0x7e46ba('0xe8')]?(rpcDb[_0x7e46ba('0xa5')](ut[_0x7e46ba('0x108')](_0x5922cc[_0xcb646c])),rpcDb[_0x7e46ba('0xd4')](_0x414361,_0x7e46ba('0x62'))):(ut[_0x7e46ba('0x65')](_0x414361,0x16,'RecallFailedTimeout'),rpcDb['createCustomerHistory'](_0x414361,'[HistoryRecallClose]'),rpcDb[_0x7e46ba('0x2')](_0x414361,_0x7e46ba('0xff')));}}})[_0x34eb94('0x120')](ut[_0x34eb94('0x18')](_0x34eb94('0xce')));},Preview[_0x5599f0('0x118')][_0x5599f0('0x21')]=function(_0x269ee2){const _0x4d66a8=_0x5599f0;_0x269ee2[_0x4d66a8('0xed')]=!![];if(ut[_0x4d66a8('0x9a')](_0x269ee2[_0x4d66a8('0x23')]))_0x269ee2[_0x4d66a8('0x10')]='AGENTS_NOT_LOGGED';else{if(!ut[_0x4d66a8('0x76')](_0x269ee2[_0x4d66a8('0x88')]))_0x269ee2[_0x4d66a8('0x10')]=_0x4d66a8('0xb9');else!this['isTrunkReachable'](_0x269ee2[_0x4d66a8('0x11c')])?!this['isTrunkReachable'](_0x269ee2[_0x4d66a8('0x46')])?_0x269ee2['message']='TRUNK_IS_NOT_REACHABLE':_0x269ee2['message']=_0x4d66a8('0x17'):_0x269ee2[_0x4d66a8('0x10')]=_0x4d66a8('0x17');}emitCampaignPreview(_0x269ee2);},Preview['prototype'][_0x5599f0('0xc6')]=function(_0x1a5d62,_0x323549,_0x48aeac){const _0x2a5da6=_0x5599f0,_0x427de9=this[_0x2a5da6('0x104')][_0x323549],_0x4d7d09=this[_0x2a5da6('0xdb')][_0x427de9[_0x2a5da6('0xac')]];let _0x535290;if(_0x4d7d09){switch(_0x48aeac){case'1':_0x4d7d09[_0x2a5da6('0xc1')]+=0x1,_0x427de9[_0x2a5da6('0x52')]+=0x1,_0x427de9[_0x2a5da6('0xee')]=ut[_0x2a5da6('0x116')](_0x427de9),ut[_0x2a5da6('0x65')](_0x427de9,0x0,_0x2a5da6('0x5')),ami['emit'](_0x2a5da6('0x5f'),ut[_0x2a5da6('0x73')](_0x427de9,_0x2a5da6('0xdd'))),rpcDb[_0x2a5da6('0xd4')](_0x427de9,_0x2a5da6('0x13d'));ut[_0x2a5da6('0x116')](_0x427de9)>=_0x4d7d09[_0x2a5da6('0x128')]?(_0x535290=ut[_0x2a5da6('0x59')](_0x427de9,0xf,_0x2a5da6('0xea')),rpcDb[_0x2a5da6('0x2')](_0x535290,_0x2a5da6('0xdc'))):_0x427de9[_0x2a5da6('0x52')]>=_0x4d7d09[_0x2a5da6('0x54')]?rpcDb['createCustomerFinal'](_0x427de9,_0x2a5da6('0xdc')):rpcDb['rescheduleContact'](ut[_0x2a5da6('0x6e')](_0x427de9,_0x2a5da6('0x52'),_0x4d7d09[_0x2a5da6('0x0')]),_0x427de9[_0x2a5da6('0xb1')],_0x427de9[_0x2a5da6('0xa8')]);delete this[_0x2a5da6('0x104')][_0x1a5d62[_0x2a5da6('0x10f')]];break;case'ANSWER':{const _0xf04a87=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');_0x427de9[_0x2a5da6('0x12')]=_0xf04a87,_0x427de9[_0x2a5da6('0x90')]=_0xf04a87,_0x427de9[_0x2a5da6('0x133')]=!![],_0x4d7d09[_0x2a5da6('0x63')]+=0x1,logger['info'](_0x2a5da6('0x3b'),_0x427de9[_0x2a5da6('0xae')],_0x2a5da6('0x10b'),_0x4d7d09['name'],_0x2a5da6('0x10e'),_0x4d7d09[_0x2a5da6('0x63')]),ami[_0x2a5da6('0x132')](_0x2a5da6('0x30'),ut[_0x2a5da6('0x73')](_0x427de9,_0x2a5da6('0x11a'))),_0x4d7d09['acw']&&ami[_0x2a5da6('0x132')](_0x2a5da6('0xfa'),ut[_0x2a5da6('0xef')](_0x427de9));}break;case'16':ami[_0x2a5da6('0x132')]('custom:agentcomplete',ut[_0x2a5da6('0x73')](_0x427de9,_0x2a5da6('0xc4'))),emitVoiceQueueChannelRemove(ut[_0x2a5da6('0x73')](_0x427de9,_0x2a5da6('0xc4'))),_0x4d7d09[_0x2a5da6('0x6')]+=0x1,_0x4d7d09[_0x2a5da6('0x67')]+=0x1,_0x4d7d09['answered']+=0x1,ut['decrementTalkink'](_0x4d7d09,_0x2a5da6('0x6c')),_0x427de9[_0x2a5da6('0xee')]=ut[_0x2a5da6('0x116')](_0x427de9),ut[_0x2a5da6('0x65')](_0x427de9,0x4,_0x2a5da6('0x5d')),rpcDb[_0x2a5da6('0xd4')](_0x427de9,'[callProgressDetectingCustomer][logAnswer]'),rpcDb[_0x2a5da6('0x2')](_0x427de9,_0x2a5da6('0x5e')),rpcDb['crateCustomerReportQueue'](_0x427de9),_0x4d7d09[_0x2a5da6('0xe7')]+=_0x427de9[_0x2a5da6('0xb8')],_0x4d7d09[_0x2a5da6('0xf2')]+=_0x427de9[_0x2a5da6('0xb8')],logger[_0x2a5da6('0xec')](_0x2a5da6('0x139'),_0x427de9[_0x2a5da6('0xae')],'\x20Queue',_0x4d7d09[_0x2a5da6('0x42')],'pTalking:\x20',_0x4d7d09['pTalking']),delete this[_0x2a5da6('0x104')][_0x1a5d62['linkedid']];break;case _0x2a5da6('0xe6'):_0x4d7d09['outboundBusyCallsDay']+=0x1,_0x427de9[_0x2a5da6('0x19')]+=0x1,_0x427de9[_0x2a5da6('0xee')]=ut['totalGlobal'](_0x427de9),ut['logCustomer'](_0x427de9,0x5,_0x2a5da6('0xf9')),ami[_0x2a5da6('0x132')](_0x2a5da6('0x47'),ut['buildObj'](_0x427de9,_0x2a5da6('0x5a'))),rpcDb[_0x2a5da6('0xd4')](_0x427de9,_0x2a5da6('0x66'));ut[_0x2a5da6('0x116')](_0x427de9)>=_0x4d7d09[_0x2a5da6('0x128')]?(_0x535290=ut['cloneAction'](_0x427de9,0xf,_0x2a5da6('0xea')),rpcDb[_0x2a5da6('0x2')](_0x535290,_0x2a5da6('0xc9'))):_0x427de9['countbusyretry']>=_0x4d7d09['dialBusyMaxRetry']?rpcDb[_0x2a5da6('0x2')](_0x427de9,_0x2a5da6('0x66')):rpcDb[_0x2a5da6('0x57')](ut[_0x2a5da6('0x6e')](_0x427de9,'countbusyretry',_0x4d7d09['dialBusyRetryFrequency']),_0x427de9[_0x2a5da6('0xb1')],_0x427de9[_0x2a5da6('0xa8')]);break;case _0x2a5da6('0xe1'):_0x4d7d09[_0x2a5da6('0x9f')]+=0x1,_0x427de9[_0x2a5da6('0x83')]+=0x1,_0x427de9[_0x2a5da6('0xee')]=ut[_0x2a5da6('0x116')](_0x427de9),ut['logCustomer'](_0x427de9,0x3,_0x2a5da6('0xcf')),ami[_0x2a5da6('0x132')](_0x2a5da6('0xad'),ut['buildObj'](_0x427de9,_0x2a5da6('0x121'))),rpcDb['createCustomerHistory'](_0x427de9,_0x2a5da6('0x114'));ut[_0x2a5da6('0x116')](_0x427de9)>=_0x4d7d09[_0x2a5da6('0x128')]?(_0x535290=ut[_0x2a5da6('0x59')](_0x427de9,0xf,_0x2a5da6('0xea')),rpcDb[_0x2a5da6('0x2')](_0x535290,'[callProgressDetectingCustomer][logNoAnswerGlobal]')):_0x427de9[_0x2a5da6('0x83')]>=_0x4d7d09[_0x2a5da6('0x61')]?rpcDb[_0x2a5da6('0x2')](_0x427de9,_0x2a5da6('0x114')):rpcDb[_0x2a5da6('0x57')](ut['scheduledAt'](_0x427de9,'countnoanswerretry',_0x4d7d09[_0x2a5da6('0x11f')]),_0x427de9[_0x2a5da6('0xb1')],_0x427de9[_0x2a5da6('0xa8')]);break;case _0x2a5da6('0x89'):_0x4d7d09[_0x2a5da6('0x58')]+=0x1,_0x427de9[_0x2a5da6('0x24')]+=0x1,_0x427de9[_0x2a5da6('0xee')]=ut[_0x2a5da6('0x116')](_0x427de9),ut[_0x2a5da6('0x65')](_0x427de9,0x8,_0x2a5da6('0xba')),ami['emit'](_0x2a5da6('0x2d'),ut[_0x2a5da6('0x73')](_0x427de9,'congestion')),rpcDb[_0x2a5da6('0xd4')](_0x427de9,_0x2a5da6('0x11b'));ut[_0x2a5da6('0x116')](_0x427de9)>=_0x4d7d09[_0x2a5da6('0x128')]?(_0x535290=ut[_0x2a5da6('0x59')](_0x427de9,0xf,_0x2a5da6('0xea')),rpcDb[_0x2a5da6('0x2')](_0x535290,_0x2a5da6('0x6b'))):_0x427de9[_0x2a5da6('0x24')]>=_0x4d7d09[_0x2a5da6('0x6a')]?rpcDb[_0x2a5da6('0x2')](_0x427de9,_0x2a5da6('0x11b')):rpcDb[_0x2a5da6('0x57')](ut[_0x2a5da6('0x6e')](_0x427de9,'countcongestionretry',_0x4d7d09[_0x2a5da6('0x56')]),_0x427de9[_0x2a5da6('0xb1')],_0x427de9['activeContact']);break;case _0x2a5da6('0x140'):_0x4d7d09['outboundRejectCallsDay']+=0x1,_0x427de9[_0x2a5da6('0x14')]+=0x1,_0x427de9[_0x2a5da6('0xee')]=ut[_0x2a5da6('0x116')](_0x427de9),ut['logCustomer'](_0x427de9,0x14,_0x2a5da6('0x93')),ami[_0x2a5da6('0x132')](_0x2a5da6('0x53'),ut[_0x2a5da6('0x73')](_0x427de9,_0x2a5da6('0x4f'))),rpcDb[_0x2a5da6('0xd4')](_0x427de9,'[syncHangupRequest][logAgentReject]');ut[_0x2a5da6('0x116')](_0x427de9)>=_0x4d7d09[_0x2a5da6('0x128')]?(_0x535290=ut[_0x2a5da6('0x59')](_0x427de9,0x14,_0x2a5da6('0x93')),rpcDb['createCustomerFinal'](_0x535290,_0x2a5da6('0x29'))):_0x427de9[_0x2a5da6('0x14')]>=_0x4d7d09[_0x2a5da6('0x102')]?rpcDb[_0x2a5da6('0x2')](_0x427de9,_0x2a5da6('0x29')):rpcDb[_0x2a5da6('0x57')](ut[_0x2a5da6('0x6e')](_0x427de9,_0x2a5da6('0x14'),_0x4d7d09[_0x2a5da6('0x11e')]),_0x427de9[_0x2a5da6('0xb1')],_0x427de9['activeContact']);break;case _0x2a5da6('0x72'):_0x4d7d09[_0x2a5da6('0xeb')]+=0x1,_0x427de9[_0x2a5da6('0x3c')]+=0x1,_0x427de9[_0x2a5da6('0xee')]=ut[_0x2a5da6('0x116')](_0x427de9),ut[_0x2a5da6('0x65')](_0x427de9,0xb,'Abandoned'),rpcDb[_0x2a5da6('0xd4')](_0x427de9,_0x2a5da6('0xb6'));ut[_0x2a5da6('0x116')](_0x427de9)>=_0x4d7d09[_0x2a5da6('0x128')]?(_0x535290=ut[_0x2a5da6('0x59')](_0x427de9,0xf,_0x2a5da6('0xea')),rpcDb['createCustomerFinal'](_0x535290,_0x2a5da6('0xb6'))):_0x427de9['countabandonedetry']>=_0x4d7d09[_0x2a5da6('0xf0')]?rpcDb['createCustomerFinal'](_0x427de9,_0x2a5da6('0xb6')):rpcDb[_0x2a5da6('0x57')](ut[_0x2a5da6('0x6e')](_0x427de9,_0x2a5da6('0x3c'),_0x4d7d09[_0x2a5da6('0xf4')]),_0x427de9[_0x2a5da6('0xb1')],_0x427de9[_0x2a5da6('0xa8')]);break;default:_0x427de9[_0x2a5da6('0x133')]&&(ut['decrementTalkink'](_0x4d7d09,'[default]'),ut[_0x2a5da6('0xb3')](_0x2a5da6('0x135')+_0x4d7d09[_0x2a5da6('0x42')],_0x1a5d62));_0x4d7d09[_0x2a5da6('0x13c')]+=0x1,_0x427de9[_0x2a5da6('0xee')]=ut[_0x2a5da6('0x116')](_0x427de9),ut[_0x2a5da6('0x65')](_0x427de9,0xc,_0x1a5d62[_0x2a5da6('0xd9')]||_0x1a5d62[_0x2a5da6('0x82')]),rpcDb[_0x2a5da6('0xd4')](_0x427de9,_0x2a5da6('0xe2'));ut[_0x2a5da6('0x116')](_0x427de9)>=_0x4d7d09['dialGlobalMaxRetry']?(_0x535290=ut['cloneAction'](_0x427de9,0xf,_0x2a5da6('0xea')),rpcDb[_0x2a5da6('0x2')](_0x535290,_0x2a5da6('0x13b'))):rpcDb[_0x2a5da6('0x2')](_0x427de9,_0x2a5da6('0x13b'));delete this[_0x2a5da6('0x104')][_0x1a5d62[_0x2a5da6('0x10f')]];}!(_0x427de9['dialAnswer']&&_0x48aeac==='16')&&(ut[_0x2a5da6('0x4d')](_0x4d7d09,_0x2a5da6('0xe')),logger['info'](_0x2a5da6('0xe0'),_0x427de9['uniqueid'],_0x2a5da6('0x10b'),_0x4d7d09[_0x2a5da6('0x42')],_0x2a5da6('0x123'),_0x4d7d09[_0x2a5da6('0x7f')])),_0x48aeac!==_0x2a5da6('0x70')&&(delete this[_0x2a5da6('0x104')][_0x1a5d62[_0x2a5da6('0x10f')]],delete this['actions'][_0x1a5d62[_0x2a5da6('0x3d')]]);}},Preview['prototype'][_0x5599f0('0x11d')]=function(_0xf7c31d,_0x26987f,_0x369b91){const _0x4b5122=_0x5599f0;if(_[_0x4b5122('0x136')](_0x26987f)&&_0x4b5122('0x74')!==typeof _0x26987f)return;if(_[_0x4b5122('0x136')](_0x369b91)&&_0x4b5122('0x74')!==typeof _0x369b91)return;switch(_0x369b91[_0x4b5122('0x12b')]){case'0':ut[_0x4b5122('0x115')](_0xf7c31d,0x0,_0x4b5122('0x5')),rpcDb['createAgentHistory'](_0xf7c31d,_0x4b5122('0xca'));break;case'3':ut[_0x4b5122('0x115')](_0xf7c31d,0x3,_0x4b5122('0xcf')),rpcDb[_0x4b5122('0xd0')](_0xf7c31d,_0x4b5122('0x10d'));break;case'5':ut[_0x4b5122('0x115')](_0xf7c31d,0x5,_0x4b5122('0xf9')),rpcDb[_0x4b5122('0xd0')](_0xf7c31d,_0x4b5122('0xb'));break;case'8':ut['logAgent'](_0xf7c31d,0x8,_0x4b5122('0xba')),rpcDb[_0x4b5122('0xd0')](_0xf7c31d,_0x4b5122('0x48'));break;case'22':ut['logAgent'](_0xf7c31d,0x16,'AnswerAGI'),rpcDb[_0x4b5122('0xd0')](_0xf7c31d,'[callProgressDetectingAgent][logAnswerAGI]');break;default:ut[_0x4b5122('0x115')](_0xf7c31d,0xc,_0x369b91[_0x4b5122('0x12b')]),rpcDb['createAgentHistory'](_0xf7c31d,_0x4b5122('0x48'));}ut[_0x4b5122('0x4d')](_0x26987f,_0x4b5122('0x94')),logger[_0x4b5122('0xec')](_0x4b5122('0xab'),_0xf7c31d[_0x4b5122('0xae')],'\x20Queue',_0x26987f[_0x4b5122('0x42')],'originated:\x20',_0x26987f[_0x4b5122('0x7f')]),delete this[_0x4b5122('0x104')][_0xf7c31d[_0x4b5122('0xae')]];},Preview[_0x5599f0('0x118')][_0x5599f0('0x99')]=function(_0x1c1c39,_0x5bd68c,_0x313a7e,_0x37aa3e,_0x18ec77){const _0x30aab4=this;return new Promise(function(_0x3f9db7,_0x2d4313){const _0x202c60=a1087_0x8028;if(_[_0x202c60('0x69')](_0x5bd68c)||_['isNil'](_0x5bd68c[_0x202c60('0xb2')])||_[_0x202c60('0x69')](_0x5bd68c['Contact']['phone'])||_['isNil'](_0x5bd68c['VoiceQueueId'])){_0x2d4313(ut[_0x202c60('0x10')](_0x202c60('0xa9'),_0x37aa3e,_0x18ec77));return;}const _0x4dd3de=uuid['v4'](),_0x49304d=_0x30aab4[_0x202c60('0xdb')][_0x5bd68c[_0x202c60('0x113')][_0x202c60('0x42')]],_0x211ef5=_0x313a7e?_0x30aab4['agents'][_0x313a7e]['id']:undefined;_0x30aab4[_0x202c60('0x104')][_0x4dd3de]=new Action(_0x5bd68c,_0x49304d,_0x4dd3de,_0x313a7e,_0x211ef5);const _0x2249d0=_0x30aab4['actions'][_0x4dd3de];_0x2249d0['unlockAgent']=_0x37aa3e,_0x2249d0[_0x202c60('0xa8')]=_0x18ec77,_0x2249d0[_0x202c60('0xa0')]=_0x313a7e,_[_0x202c60('0x45')](_0x1c1c39)?_0x30aab4[_0x202c60('0x9e')](_0x2249d0,_0x49304d,_0x5bd68c,_0x313a7e)[_0x202c60('0x40')](function(_0x5e3289){const _0x117fa7=_0x202c60;logger['info'](_0x117fa7('0x103'),'Queue:\x20'+_0x2249d0[_0x117fa7('0xac')]+_0x117fa7('0x22')+_0x2249d0[_0x117fa7('0x20')],JSON[_0x117fa7('0xd8')](_0x5e3289)),ami[_0x117fa7('0x132')](_0x117fa7('0x13f'),ut['buildObj'](_0x2249d0,_0x117fa7('0x4'))),_0x3f9db7(ut[_0x117fa7('0x10')](_0x117fa7('0xfb')));})[_0x202c60('0x120')](function(_0x3a727d){const _0x1cacee=_0x202c60;ut['logger'](_0x1cacee('0x1'),_0x3a727d),_0x2d4313(ut[_0x1cacee('0x10')](_0x1cacee('0x3e'),_0x37aa3e,_0x18ec77));}):(_0x49304d[_0x202c60('0xd5')]+=0x1,ut['logBlacklist'](_0x2249d0),rpcDb['createHistory'](_0x2249d0,'[Blacklist][error]'),delete _0x30aab4[_0x202c60('0x104')][_0x4dd3de],_0x2d4313(ut['message']('Contact\x20in\x20black\x20List',_0x37aa3e,_0x18ec77)));});},Preview[_0x5599f0('0x118')][_0x5599f0('0x5c')]=function(_0x338310){const _0x4711c2=_0x5599f0;return!_[_0x4711c2('0x69')](_0x338310)&&!_[_0x4711c2('0x69')](_0x338310[_0x4711c2('0x42')])&&!_[_0x4711c2('0x69')](_0x338310['active'])&&_0x338310[_0x4711c2('0xd7')]&&!_[_0x4711c2('0x69')](this[_0x4711c2('0x92')][util['format'](_0x4711c2('0x7'),_0x338310[_0x4711c2('0x42')])])&&!_['isNil'](this['trunks'][util[_0x4711c2('0xf6')](_0x4711c2('0x7'),_0x338310['name'])]['status'])&&(this[_0x4711c2('0x92')][util['format']('SIP/%s',_0x338310[_0x4711c2('0x42')])][_0x4711c2('0x8c')]===_0x4711c2('0x91')||this[_0x4711c2('0x92')][util[_0x4711c2('0xf6')](_0x4711c2('0x7'),_0x338310['name'])][_0x4711c2('0x8c')]===_0x4711c2('0x2a'));},Preview['prototype'][_0x5599f0('0x34')]=function(_0x31f98b,_0x12588e){const _0x321d40=this;return new Promise(function(_0x5c0cc2,_0x17f8dc){const _0x162f9b=a1087_0x8028;_0x321d40[_0x162f9b('0xbc')](_0x31f98b,_0x12588e)['then'](function(_0x10e1b1){const _0x1330cc=_0x162f9b;_0x5c0cc2(_[_0x1330cc('0xe3')](_0x10e1b1,[_0x1330cc('0x10')]));})[_0x162f9b('0x120')](function(_0x389fd4){const _0x5230b9=_0x162f9b;_0x389fd4[_0x5230b9('0x68')]&&rpcDb[_0x5230b9('0x127')](_0x31f98b),_0x389fd4[_0x5230b9('0xd7')]&&rpcDb[_0x5230b9('0x109')](_0x31f98b),_0x17f8dc(_['pick'](_0x389fd4,[_0x5230b9('0x10')]));});});},Preview['prototype'][_0x5599f0('0xbc')]=function(_0x6eaf96,_0x3fcd44){const _0x5ad309=this;return new Promise(function(_0x5fe6e,_0x2a3ddd){const _0x2b000a=a1087_0x8028;let _0x5a95a8,_0x2f4579;rpcDb[_0x2b000a('0xc2')](_0x6eaf96)['then'](function(_0x58798f){const _0x1ac2ae=_0x2b000a;!_[_0x1ac2ae('0x69')](_0x58798f[0x0])&&(_0x2f4579=_0x58798f[0x0][_0x1ac2ae('0x7d')]?![]:!![],_0x5a95a8=_0x58798f[0x0][_0x1ac2ae('0x7d')]?!![]:![],_0x5a95a8=_0x3fcd44?!![]:_0x5a95a8);const _0x13d29f=_0x5ad309[_0x1ac2ae('0x95')](_0x58798f);_0x13d29f[_0x1ac2ae('0xe9')]?rpcDb[_0x1ac2ae('0xc5')](_[_0x1ac2ae('0xe3')](_0x58798f[0x0],[_0x1ac2ae('0x39'),'Contact.phone']))[_0x1ac2ae('0x40')](function(_0x147037){const _0x45e869=_0x1ac2ae;_0x5ad309[_0x45e869('0x99')](_0x147037,_0x58798f[0x0],_0x3fcd44,_0x2f4579,_0x5a95a8)[_0x45e869('0x40')](function(_0x5513f5){_0x5fe6e(_0x5513f5);})['catch'](function(_0x5046a2){_0x2a3ddd(_0x5046a2);});})[_0x1ac2ae('0x120')](function(_0x2a140d){const _0x24fbd5=_0x1ac2ae;ut[_0x24fbd5('0x137')]('[Preview][checkIsBlackList]',_0x2a140d),_0x2a3ddd(ut[_0x24fbd5('0x10')](_0x24fbd5('0x119'),_0x2f4579,_0x5a95a8));}):_0x2a3ddd(ut[_0x1ac2ae('0x10')](_0x13d29f[_0x1ac2ae('0x10')],_0x2f4579,_0x5a95a8));})[_0x2b000a('0x120')](function(_0x155361){const _0x51d94f=_0x2b000a;ut[_0x51d94f('0x137')](_0x51d94f('0x41'),_0x155361),_0x2a3ddd(ut[_0x51d94f('0x10')](_0x51d94f('0x119'),![],!![]));});});},Preview['prototype'][_0x5599f0('0x95')]=function(_0x1c9e59){const _0x59691a=_0x5599f0;if(_['isNil'](_0x1c9e59)||_[_0x59691a('0x45')](_0x1c9e59)||!_[_0x59691a('0x69')](_0x1c9e59[0x0]['Agent'])&&_['isNil'](_0x1c9e59[0x0][_0x59691a('0x50')]['name']))return ut[_0x59691a('0x137')](_0x59691a('0x10a'),_0x1c9e59),{'isValid':![],'message':_0x59691a('0xdf')};const _0x1747a2=this[_0x59691a('0xdb')][_0x1c9e59[0x0][_0x59691a('0x113')][_0x59691a('0x42')]];_0x1747a2['message']=_0x59691a('0x17');if(_[_0x59691a('0x69')](_0x1747a2))return ut[_0x59691a('0x137')]('[Preview][validateContact][Empty\x20Campaign]',_0x1747a2),{'isValid':![],'message':_0x59691a('0xe5')};if(!this[_0x59691a('0x5c')](_0x1747a2['Trunk'])){ut[_0x59691a('0x137')]('[Preview][validateContact][Trunk\x20not\x20work]',_0x59691a('0x12e')+_0x1747a2[_0x59691a('0x42')]+_0x59691a('0x8d'));if(!this[_0x59691a('0x5c')](_0x1747a2['TrunkBackup']))return ut['logger'](_0x59691a('0x25'),_0x1747a2[_0x59691a('0x42')]+_0x59691a('0x1a')),{'isValid':![],'message':'Trunk\x20not\x20work'};}if(!ut[_0x59691a('0x76')](_0x1747a2[_0x59691a('0x88')]))return ut[_0x59691a('0x137')](_0x59691a('0x9d'),_0x1747a2['name']+_0x59691a('0xf')),{'isValid':![],'message':'campaign\x20Name:\x20'+_0x1747a2[_0x59691a('0x42')]+_0x59691a('0xf')};return{'isValid':!![],'message':'Is\x20Valid'};},Preview[_0x5599f0('0x118')][_0x5599f0('0x9e')]=function(_0x470508,_0x2a4b05,_0x2e65a4,_0x294af7){const _0x247851=this;return new Promise(function(_0xf197bc,_0x5e5060){const _0x158373=a1087_0x8028,_0xcfada4=_0x470508['uniqueid'],_0x37af9d=_0x247851['isTrunkReachable'](_0x2a4b05[_0x158373('0x11c')])?util[_0x158373('0xf6')]('SIP/%s/%s%s',_0x2a4b05[_0x158373('0x11c')][_0x158373('0x42')],_[_0x158373('0x69')](_0x2a4b05[_0x158373('0x1e')])?'':_0x2a4b05[_0x158373('0x1e')][_0x158373('0x1b')]()||'',_0x2a4b05[_0x158373('0xcd')]>0x0?_0x2e65a4[_0x158373('0xb2')]['phone']['substring'](_0x2a4b05[_0x158373('0xcd')]):_0x2e65a4[_0x158373('0xb2')][_0x158373('0x3f')]):util[_0x158373('0xf6')](_0x158373('0xfe'),_[_0x158373('0x69')](_0x2a4b05[_0x158373('0x46')])?_0x2a4b05['Trunk'][_0x158373('0x42')]:_0x2a4b05['TrunkBackup'][_0x158373('0x42')],_[_0x158373('0x69')](_0x2a4b05[_0x158373('0x1e')])?'':_0x2a4b05[_0x158373('0x1e')][_0x158373('0x1b')]()||'',_0x2a4b05[_0x158373('0xcd')]>0x0?_0x2e65a4[_0x158373('0xb2')]['phone'][_0x158373('0x134')](_0x2a4b05[_0x158373('0xcd')]):_0x2e65a4[_0x158373('0xb2')][_0x158373('0x3f')]),_0x572146=_0x247851[_0x158373('0x5c')](_0x2a4b05[_0x158373('0x11c')])?ut[_0x158373('0x6f')](_0x2a4b05[_0x158373('0x11c')][_0x158373('0x16')],_0x2a4b05[_0x158373('0x84')],_0x2a4b05[_0x158373('0x4c')]>0x0?ut[_0x158373('0x35')](_0x2a4b05[_0x158373('0xa7')],_0x2a4b05[_0x158373('0x4c')]):_0x2a4b05[_0x158373('0xa7')]):ut[_0x158373('0x6f')](_['isNil'](_0x2a4b05[_0x158373('0x46')])?_0x2a4b05[_0x158373('0x11c')][_0x158373('0x16')]:_0x2a4b05['TrunkBackup'][_0x158373('0x16')],_0x2a4b05[_0x158373('0x84')],_0x2a4b05[_0x158373('0x4c')]>0x0?ut[_0x158373('0x35')](_0x2a4b05[_0x158373('0xa7')],_0x2a4b05['dialRandomLastDigitCallerIdNumber']):_0x2a4b05['dialOriginateCallerIdNumber']);_0x572146&&(_0x470508[_0x158373('0x36')]=ut[_0x158373('0xfc')](_0x572146),_0x470508[_0x158373('0x110')]=ut['extractCalleridNumber'](_0x572146));const _0x36e829=ut[_0x158373('0x13')](_0x2a4b05,_0x2e65a4,_0x37af9d,_0x572146,_0xcfada4,_0x470508);_['merge'](_0x470508,ut['toLowerVariables'](_0x36e829)),_0x470508[_0x158373('0x8b')]=moment()[_0x158373('0xf6')]('YYYY-MM-DD\x20HH:mm:ss'),ami[_0x158373('0xa3')](ut['variablesAction'](_0x470508,_0x2a4b05,_0x36e829,_0x470508[_0x158373('0xa8')],_0x294af7))[_0x158373('0x40')](function(_0x3613cb){const _0x3481f3=_0x158373;_0x2a4b05[_0x3481f3('0x7f')]+=0x1,logger[_0x3481f3('0xec')]('[originated][increment]',_0xcfada4,_0x3481f3('0x10b'),_0x2a4b05[_0x3481f3('0x42')],_0x3481f3('0x123'),_0x2a4b05[_0x3481f3('0x7f')]),_0xf197bc(_0x3613cb);})[_0x158373('0x120')](function(_0x23dac6){const _0x400693=_0x158373;ut['logAgent'](_0x470508,0xe,'OriginateError'),rpcDb[_0x400693('0xd0')](_0x470508,_0x400693('0x9')),_0x5e5060(_0x23dac6);});});},Preview['prototype'][_0x5599f0('0xd6')]=function(_0x15f87a){const _0x27be7d=_0x5599f0;this['actions'][_0x15f87a[_0x27be7d('0x10f')]]&&(this[_0x27be7d('0x104')][_0x15f87a[_0x27be7d('0x10f')]][_0x27be7d('0x9b')]=_0x15f87a[_0x27be7d('0x9b')]);},Preview['prototype'][_0x5599f0('0x10c')]=function(_0x2d0f98){const _0x46fa6f=_0x5599f0,_0x18e904=this,_0x5cea86=this[_0x46fa6f('0x104')][_0x2d0f98[_0x46fa6f('0xcc')]];if(_0x5cea86){_0x5cea86[_0x46fa6f('0xa0')]&&this[_0x46fa6f('0xf7')][_0x5cea86[_0x46fa6f('0xa0')]]&&ut[_0x46fa6f('0x11')](_0x5cea86,this['agents'][_0x5cea86[_0x46fa6f('0xa0')]][_0x46fa6f('0x42')],this[_0x46fa6f('0xf7')][_0x5cea86[_0x46fa6f('0xa0')]]['id']);const _0x25e4ae=_[_0x46fa6f('0x77')](_0x5cea86);_0x25e4ae[_0x46fa6f('0x12')]=moment()['format'](_0x46fa6f('0xd'));const _0x4ac111=_0x18e904[_0x46fa6f('0xdb')][_0x5cea86[_0x46fa6f('0xac')]];ut[_0x46fa6f('0xe4')](_0x2d0f98[_0x46fa6f('0x96')])?(_0x5cea86['unlockAgent']&&rpcDb[_0x46fa6f('0x127')](_0x5cea86['idContact']),_0x5cea86[_0x46fa6f('0xa8')]&&rpcDb[_0x46fa6f('0x109')](_0x5cea86[_0x46fa6f('0x20')]),ami[_0x46fa6f('0x132')](_0x46fa6f('0xda'),ut[_0x46fa6f('0x73')](_0x5cea86,'rejected')),this['callProgressDetectingAgent'](_0x25e4ae,_0x4ac111,_0x2d0f98)):(_0x5cea86['starttime']=moment()[_0x46fa6f('0xf6')](_0x46fa6f('0xd')),ut[_0x46fa6f('0x115')](_0x25e4ae,0x4,_0x46fa6f('0x5d')),rpcDb[_0x46fa6f('0xd0')](_0x25e4ae,'[callProgressDetectingAgent][logAnswer]'));}},Preview[_0x5599f0('0x118')]['syncHangup']=function(_0x4807a7){const _0x4f19b7=_0x5599f0,_0x4099cf=this['actions'][_0x4807a7[_0x4f19b7('0x10f')]];let _0x4f6c58;_0x4099cf&&(_0x4f6c58=this['campaignsPreview'][_0x4099cf[_0x4f19b7('0xac')]],logger['info']('[syncHangup][talking]',_0x4807a7[_0x4f19b7('0x10f')],_0x4f19b7('0x10b'),_0x4f6c58[_0x4f19b7('0x42')],_0x4f19b7('0x10e'),_0x4f6c58['pTalking']));if(this[_0x4f19b7('0x104')][_0x4807a7[_0x4f19b7('0x10f')]]&&_0x4807a7['linkedid']!==_0x4807a7['uniqueid']){if(_0x4807a7[_0x4f19b7('0x125')]==='16'&&this['actions'][_0x4807a7[_0x4f19b7('0x10f')]][_0x4f19b7('0x133')])this['callProgressDetectingCustomer'](_0x4807a7,_0x4807a7[_0x4f19b7('0x10f')],_0x4807a7[_0x4f19b7('0x125')]);else this['actions'][_0x4807a7[_0x4f19b7('0x10f')]]['dialAnswer']&&(logger[_0x4f19b7('0xec')](_0x4f19b7('0x60'),_0x4807a7[_0x4f19b7('0x10f')],_0x4807a7[_0x4f19b7('0x125')],'\x20Queue',_0x4f6c58[_0x4f19b7('0x42')],_0x4f19b7('0x10e'),_0x4f6c58[_0x4f19b7('0x63')]),this['callProgressDetectingCustomer'](_0x4807a7,_0x4807a7['linkedid'],_0x4807a7[_0x4f19b7('0x125')]));}else{if(_0x4099cf&&_[_0x4f19b7('0x69')](_0x4099cf[_0x4f19b7('0xa4')])&&_0x4f6c58['dialQueueProject']&&_0x4807a7[_0x4f19b7('0x10f')]===_0x4807a7[_0x4f19b7('0xae')]&&_[_0x4f19b7('0x69')](_0x4807a7[_0x4f19b7('0x12b')])&&_0x4807a7[_0x4f19b7('0x125')]==='16'&&_0x4807a7[_0x4f19b7('0x12a')]==='6'&&_[_0x4f19b7('0x136')](_0x4099cf[_0x4f19b7('0x117')]))_0x4099cf['unlockAgent']&&rpcDb[_0x4f19b7('0x127')](_0x4099cf[_0x4f19b7('0x20')]),_0x4099cf[_0x4f19b7('0xa8')]&&rpcDb[_0x4f19b7('0x109')](_0x4099cf['idContact']),_0x4807a7[_0x4f19b7('0x12b')]='22',this[_0x4f19b7('0x11d')](_0x4099cf,_0x4f6c58,_0x4807a7);else{if(_0x4099cf&&_0x4099cf[_0x4f19b7('0x117')]){if(_0x4807a7['cause']==='16'&&this[_0x4f19b7('0x104')][_0x4807a7[_0x4f19b7('0x10f')]][_0x4f19b7('0x133')])logger['info'](_0x4f19b7('0x2f'),_0x4807a7[_0x4f19b7('0x10f')],_0x4807a7[_0x4f19b7('0x125')],_0x4f19b7('0x10b'),_0x4f6c58[_0x4f19b7('0x42')],_0x4f19b7('0x10e'),_0x4f6c58['pTalking']),this[_0x4f19b7('0xc6')](_0x4807a7,_0x4807a7[_0x4f19b7('0x10f')],_0x4807a7[_0x4f19b7('0x125')]);else this[_0x4f19b7('0x104')][_0x4807a7[_0x4f19b7('0x10f')]][_0x4f19b7('0x133')]&&(logger[_0x4f19b7('0xec')](_0x4f19b7('0x60'),_0x4807a7[_0x4f19b7('0x10f')],_0x4807a7[_0x4f19b7('0x125')],_0x4f19b7('0x10b'),_0x4f6c58[_0x4f19b7('0x42')],_0x4f19b7('0x10e'),_0x4f6c58[_0x4f19b7('0x63')]),this[_0x4f19b7('0xc6')](_0x4807a7,_0x4807a7[_0x4f19b7('0x10f')],_0x4807a7[_0x4f19b7('0x125')]));}}}},Preview['prototype'][_0x5599f0('0x2c')]=function(_0x270e24){const _0x2ae30a=_0x5599f0;this['actions'][_0x270e24[_0x2ae30a('0x3d')]]&&_0x270e24[_0x2ae30a('0x3d')]!==_0x270e24[_0x2ae30a('0x75')]&&this[_0x2ae30a('0xc6')](_0x270e24,_0x270e24[_0x2ae30a('0x3d')],_0x270e24[_0x2ae30a('0x82')]);},Preview[_0x5599f0('0x118')][_0x5599f0('0x26')]=function(_0x3d3566){const _0x5eb48e=_0x5599f0;this[_0x5eb48e('0x104')][_0x3d3566['linkedid']]&&_0x3d3566[_0x5eb48e('0x10f')]!==_0x3d3566[_0x5eb48e('0xae')]&&!this[_0x5eb48e('0x104')][_0x3d3566[_0x5eb48e('0x10f')]]['dialAnswer']&&(_0x3d3566['cause']==='1'&&this[_0x5eb48e('0xc6')](_0x3d3566,_0x3d3566[_0x5eb48e('0x10f')],_0x3d3566[_0x5eb48e('0x125')]));},Preview[_0x5599f0('0x118')][_0x5599f0('0x12c')]=function(_0xbc49f5,_0x4c004f,_0x47992c){const _0x3c7345=_0x5599f0;this[_0x3c7345('0x104')][_0xbc49f5]&&(_['isNil'](this[_0x3c7345('0x104')][_0xbc49f5]['variables'])&&(this['actions'][_0xbc49f5][_0x3c7345('0x106')]={}),this[_0x3c7345('0x104')][_0xbc49f5]['variables'][_0x4c004f]=_0x47992c);},Preview['prototype'][_0x5599f0('0x85')]=function(_0x170794){const _0x3616ca=_0x5599f0;try{!_[_0x3616ca('0x69')](_0x170794)&&(ut[_0x3616ca('0x130')](_['keys'](_0x170794[_0x3616ca('0x8a')])[0x0])&&this[_0x3616ca('0x12c')](_0x170794['uniqueid'],_[_0x3616ca('0xb0')](_0x170794[_0x3616ca('0x8a')])[0x0],_0x170794[_0x3616ca('0x122')]));}catch(_0x1d613a){logger[_0x3616ca('0x6d')](_0x3616ca('0xc8'),util[_0x3616ca('0x15')](_0x1d613a,{'showHidden':![],'depth':null}));}},Preview[_0x5599f0('0x118')]['syncAttendedTransfer']=function(_0x3cfc97){const _0x571721=_0x5599f0;_0x3cfc97&&(this[_0x571721('0x104')][_0x3cfc97[_0x571721('0x79')]]&&(this[_0x571721('0x104')][_0x3cfc97[_0x571721('0x79')]][_0x571721('0x117')]=!![]));},Preview[_0x5599f0('0x118')][_0x5599f0('0x71')]=function(_0x37dbb0){const _0xf114d3=_0x5599f0;_0x37dbb0&&(this['actions'][_0x37dbb0[_0xf114d3('0x33')]]&&(this[_0xf114d3('0x104')][_0x37dbb0['transfererlinkedid']][_0xf114d3('0x117')]=!![]));},module['exports']=Preview; \ No newline at end of file +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 diff --git a/server/services/ami/preview/rpcDb.js b/server/services/ami/preview/rpcDb.js index 53d4ba5..87330cc 100644 --- a/server/services/ami/preview/rpcDb.js +++ b/server/services/ami/preview/rpcDb.js @@ -1 +1 @@ -const a1088_0x473f=['[checkIsBlackList]\x20','context','[activeContact]\x20','createCustomerHistory','moveContactManagedDialer','[rescheduleContactInQueue]\x20','createHistory','[getContactPreview]\x20','[rescheduleContact]\x20','rescheduleContactInQueue','rescheduleContact','../rpc/agentReportPreview','../rpc/cmHopperHistory','../../../config/logger','countReScheduled','type','createCustomerFinal','then','COMPLETED','[countReScheduled]\x20','lastAssignedTo','preview','unlockContact','queuecallercomplete','checkIsBlackList','holdtime','crateCustomerReportQueue','xcally-motion-preview','membername','../rpc/cmHopperBlack','disableContact','UserId','getContactRecallMe','[createHistory]\x20','createAgentHistory','calleridnum','../rpc/cmHopper','[voiceQueueReport]\x20','active','[GetContactRecallMe]\x20','calleridname','queuecallerjoinAt','queuecallercompleteAt','catch','[unlockContact]\x20','resolve','error','[moveContactManagedDialer]\x20','answertime','queuecallerleaveAt','assigned','queue','exten'];(function(_0x347647,_0x473f61){const _0x2c8008=function(_0x54d585){while(--_0x54d585){_0x347647['push'](_0x347647['shift']());}};_0x2c8008(++_0x473f61);}(a1088_0x473f,0x8f));const a1088_0x2c80=function(_0x347647,_0x473f61){_0x347647=_0x347647-0x0;let _0x2c8008=a1088_0x473f[_0x347647];return _0x2c8008;};const _0x5e1fc8=a1088_0x2c80;'use strict';const util=require('util'),logger=require(_0x5e1fc8('0x1d'))(_0x5e1fc8('0x25')),cmHopper=require(_0x5e1fc8('0x34')),cmHopperHistory=require(_0x5e1fc8('0x1c')),cmHopperBlack=require(_0x5e1fc8('0x2d')),agentReportPreview=require(_0x5e1fc8('0x1b')),voiceQueueReport=require('../rpc/voiceQueueReport');function loggerCatch(_0x54d585){return function(_0x15de78){const _0xd1cd96=a1088_0x2c80;logger[_0xd1cd96('0x9')](_0x54d585,util['inspect'](_0x15de78,{'showHidden':![],'depth':null}));};}function create(_0x4d4948){const _0x25dadb=_0x5e1fc8;return Promise['resolve']()['then'](cmHopperHistory[_0x25dadb('0x16')](_0x4d4948))[_0x25dadb('0x6')](loggerCatch('[createHistory]\x20'));}function createAgent(_0x35fdec){const _0x110f87=_0x5e1fc8;return Promise[_0x110f87('0x8')]()[_0x110f87('0x21')](agentReportPreview[_0x110f87('0x16')](_0x35fdec))['catch'](loggerCatch(_0x110f87('0x31')));}function moveContact(_0x4e6b64){const _0x2cf174=_0x5e1fc8;return Promise[_0x2cf174('0x8')]()['then'](cmHopper[_0x2cf174('0x14')](_0x4e6b64,!![]))[_0x2cf174('0x6')](loggerCatch(_0x2cf174('0xa')));}exports[_0x5e1fc8('0x28')]=function(_0x12b175){const _0x1abed9=_0x5e1fc8;return Promise['resolve']()['then'](cmHopperBlack[_0x1abed9('0x28')](_0x12b175))['catch'](loggerCatch(_0x1abed9('0x10')));},exports['getContactPreview']=function(_0x1f3ef9){const _0x1cfc94=_0x5e1fc8;return Promise[_0x1cfc94('0x8')]()[_0x1cfc94('0x21')](cmHopper['getContactPreview'](_0x1f3ef9))[_0x1cfc94('0x6')](loggerCatch(_0x1cfc94('0x17')));},exports[_0x5e1fc8('0x16')]=function(_0x2ab12e,_0xd85cfa){const _0x25944c=_0x5e1fc8;create(_0x2ab12e)[_0x25944c('0x6')](loggerCatch(_0xd85cfa)),moveContact(_0x2ab12e)[_0x25944c('0x6')](loggerCatch(_0xd85cfa));},exports[_0x5e1fc8('0x32')]=function(_0x1a5bfe,_0x415339){const _0x467845=_0x5e1fc8;createAgent(_0x1a5bfe)[_0x467845('0x6')](loggerCatch(_0x415339));},exports[_0x5e1fc8('0x13')]=function(_0x71d5f0,_0x4ae53e){const _0x485ef0=_0x5e1fc8;create(_0x71d5f0)[_0x485ef0('0x6')](loggerCatch(_0x4ae53e));},exports[_0x5e1fc8('0x20')]=function(_0x336b11,_0x48e1f5){moveContact(_0x336b11)['catch'](loggerCatch(_0x48e1f5));},exports['rescheduleContact']=function(_0x482dc2,_0x190788,_0x4512b9){const _0x43988a=_0x5e1fc8;return _0x190788&&(_0x482dc2[_0x43988a('0x2f')]=null),_0x4512b9&&(_0x482dc2[_0x43988a('0x1')]=![]),Promise[_0x43988a('0x8')]()['then'](cmHopper[_0x43988a('0x1a')](_0x482dc2))[_0x43988a('0x6')](loggerCatch(_0x43988a('0x18')));},exports[_0x5e1fc8('0x1e')]=function(_0x16f860){const _0x28bd5d=_0x5e1fc8;return Promise['resolve']()['then'](cmHopper['countReScheduled'](_0x16f860))[_0x28bd5d('0x6')](loggerCatch(_0x28bd5d('0x23')));},exports[_0x5e1fc8('0x26')]=function(_0x3cce87){const _0x2f0c17=_0x5e1fc8;return Promise[_0x2f0c17('0x8')]()[_0x2f0c17('0x21')](cmHopper[_0x2f0c17('0x26')]({'UserId':null},_0x3cce87,0x1))[_0x2f0c17('0x6')](loggerCatch(_0x2f0c17('0x7')));},exports[_0x5e1fc8('0x2e')]=function(_0x4dcd0e){const _0x34e113=_0x5e1fc8;return Promise[_0x34e113('0x8')]()[_0x34e113('0x21')](cmHopper[_0x34e113('0x26')]({'active':![]},_0x4dcd0e,0x1))['catch'](loggerCatch(_0x34e113('0x12')));},exports[_0x5e1fc8('0x2a')]=function(_0x4617dc){const _0x2ffefb=_0x5e1fc8,_0x1facf7={};return _0x1facf7[_0x2ffefb('0x1f')]=_0x4617dc[_0x2ffefb('0x1f')],_0x1facf7['uniqueid']=_0x4617dc['uniqueid'],_0x1facf7[_0x2ffefb('0x33')]=_0x4617dc[_0x2ffefb('0x33')],_0x1facf7['calleridname']=_0x4617dc[_0x2ffefb('0x3')],_0x1facf7['queue']=_0x4617dc[_0x2ffefb('0xe')],_0x1facf7[_0x2ffefb('0x4')]=_0x4617dc['answertime'],_0x1facf7[_0x2ffefb('0xc')]=_0x4617dc[_0x2ffefb('0xb')],_0x1facf7[_0x2ffefb('0x27')]=0x1,_0x1facf7[_0x2ffefb('0x5')]=_0x4617dc['endtime'],_0x1facf7['connectedlinename']=_0x4617dc[_0x2ffefb('0x2c')],_0x1facf7[_0x2ffefb('0x11')]='from-sip',_0x1facf7[_0x2ffefb('0xf')]=_0x2ffefb('0x2b'),_0x1facf7[_0x2ffefb('0x29')]=0x0,_0x1facf7[_0x2ffefb('0xd')]=0x1,_0x1facf7[_0x2ffefb('0x24')]=_0x4617dc[_0x2ffefb('0x2c')],_0x1facf7['queuecallerexitreason']=_0x2ffefb('0x22'),Promise[_0x2ffefb('0x8')]()[_0x2ffefb('0x21')](voiceQueueReport['create'](_0x1facf7))[_0x2ffefb('0x6')](loggerCatch(_0x2ffefb('0x0')));},exports['getContactRecallMe']=function(_0x25d269,_0x234a7c){const _0x561624=_0x5e1fc8;return Promise[_0x561624('0x8')]()[_0x561624('0x21')](cmHopper[_0x561624('0x30')](_0x25d269,_0x234a7c))['catch'](loggerCatch(_0x561624('0x2')));},exports[_0x5e1fc8('0x19')]=function(_0x425a18){const _0x5b8dae=_0x5e1fc8;return Promise['resolve']()[_0x5b8dae('0x21')](cmHopper[_0x5b8dae('0x1a')](_0x425a18,!![],!![]))[_0x5b8dae('0x6')](loggerCatch(_0x5b8dae('0x15')));}; \ No newline at end of file +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 diff --git a/server/services/ami/preview/util/util.js b/server/services/ami/preview/util/util.js index ff26492..efe52a8 100644 --- a/server/services/ami/preview/util/util.js +++ b/server/services/ami/preview/util/util.js @@ -1 +1 @@ -const a1089_0x3199=['xmd-agi','info','moment','XMD-','rtpaudioqos','originated','logLookAgent','xmd-dialchannel','isFailure','rtpaudioqosrtt','string','xmd-dialurl','ListId','xmd-dialoptions','UserId','endtime','xcally-motion-preview','seconds','random','error','YYYY-MM-DD\x20HH:mm:ss','toUpper','dialer','\x22%s\x22\x20<%s>','responsetime','_XCALLY_MIXMONITOR_FORMAT','dialPreviewUrl','countglobal','countnosuchnumberretry','loggerCatch','Queue','type','isNil','rtpaudioqosjitter','idContact','[decrementTalkink]\x20is\x20null\x20or\x20undefined','countagentrejectretry','callbackuniqueid','rtpaudioqoslossbridged','rtpaudioqosbridged','pow','interface','diff','lastevent','message','milliseconds','agentReadyId','channelAgent','queue','inspect','dialOriginateTimeout','dialQueueProject2','createBody','monitor_format','totalGlobal','state','not_inuse','xmd-voicequeueid','dialAnswer','starttime','logger','\x22\x22\x20<>','add','match','isEmpty','callback','pTalking','xmd-agiafter','buildAcw','originatecalleridname','countnoanswerretry','countcongestionretry','\x22agi://%s/square,%s\x22','isActive','Blacklist','dialQueueProject','uniqueid','\x22rtTxX%s%s\x22','\x5cw{0,','isUndefined','ringtime','[updateOriginated]\x20is\x20null\x20or\x20undefined','preview','active','BOOKED','U(xcally-mixmonitor-context)','Failure','scheduledat','decrementTalkink','rtpaudioqosloss','VoiceQueueId','rtpaudioqosjitterbridged','callbackat','push','replace','calleridname','extractCalleridNumber','lodash','[decrementTalkink]\x20object\x20talking\x20is\x20negative','logBlacklist','logCustomer','statedesc','format','answertime','Contact','getCallerIdRandom','xmd-cdrtype','status','RECALL','name','buildObj','from-sip','talktime','recallme','calleridnum','agiIp','undefined','../../../../config/config.service','xmd-callerid','membername','clone','%s%s','[updateOriginated]\x20object\x20originated\x20is\x20negative','scheduledAt','ContactId','_XCALLY_MIXMONITOR_UNIQUEID','NONE','logger2'];(function(_0x20064e,_0x31995b){const _0x3bd8cf=function(_0x358fc5){while(--_0x358fc5){_0x20064e['push'](_0x20064e['shift']());}};_0x3bd8cf(++_0x31995b);}(a1089_0x3199,0x183));const a1089_0x3bd8=function(_0x20064e,_0x31995b){_0x20064e=_0x20064e-0x0;let _0x3bd8cf=a1089_0x3199[_0x20064e];return _0x3bd8cf;};const _0x5d129b=a1089_0x3bd8;'use strict';const util=require('util'),_=require(_0x5d129b('0x5e')),moment=require(_0x5d129b('0x7f')),logger=require('../../../../config/logger')(_0x5d129b('0x4f')),{getConfigService}=require(_0x5d129b('0x72'));function getSeconds(_0x358fc5,_0x44ed7e){const _0x4855de=_0x5d129b,_0x390441=moment(_0x358fc5)[_0x4855de('0x2a')](0x0),_0x792eff=moment(_0x44ed7e)[_0x4855de('0x2a')](0x0);return _0x390441[_0x4855de('0x27')](_0x792eff,_0x4855de('0xe'));}exports[_0x5d129b('0x1a')]=function(_0x4950d3){return function(_0x2702b8){const _0x4aa9ae=a1089_0x3bd8;logger[_0x4aa9ae('0x10')](_0x4950d3,util[_0x4aa9ae('0x2e')](_0x2702b8,{'showHidden':![],'depth':null}));};},exports[_0x5d129b('0x39')]=function(_0x4922b4,_0x2b8d22){const _0x513840=_0x5d129b;logger[_0x513840('0x7e')](_0x4922b4,util[_0x513840('0x2e')](_0x2b8d22,{'showHidden':![],'depth':null}));},exports['loggerError']=function(_0x29b8f5,_0x40cd90){const _0x349928=_0x5d129b;logger[_0x349928('0x10')](_0x29b8f5,util[_0x349928('0x2e')](_0x40cd90,{'showHidden':![],'depth':null}));},exports[_0x5d129b('0x7c')]=function(_0x589f47){return function(_0x30072c){const _0x4632b1=a1089_0x3bd8;logger[_0x4632b1('0x7e')](_0x589f47,util[_0x4632b1('0x2e')](_0x30072c,{'showHidden':![],'depth':null}));};},exports[_0x5d129b('0x29')]=function(_0x16f20c,_0x3e4e01,_0x402d31){return{'message':_0x16f20c,'unlock':_0x3e4e01,'active':_0x402d31};},exports['getCallerId']=function(_0x4d56f9,_0x19d1a2,_0x18a691){const _0x57ee6e=_0x5d129b;if(!_[_0x57ee6e('0x4c')](_0x18a691)&&_0x57ee6e('0x7')===typeof _0x18a691&&!_[_0x57ee6e('0x3d')](_0x18a691)){if(!_[_0x57ee6e('0x4c')](_0x19d1a2)&&_0x57ee6e('0x7')===typeof _0x19d1a2&&!_['isEmpty'](_0x19d1a2))return util[_0x57ee6e('0x63')](_0x57ee6e('0x14'),_0x19d1a2,_0x18a691);return util['format']('\x22%s\x22\x20<%s>',_0x18a691,_0x18a691);}if(!_[_0x57ee6e('0x4c')](_0x4d56f9)&&_0x57ee6e('0x7')===typeof _0x4d56f9&&!_[_0x57ee6e('0x3d')](_0x4d56f9))return _0x4d56f9;return _0x57ee6e('0x3a');},exports[_0x5d129b('0x46')]=function(_0x5856e5){if(_['isNil'](_0x5856e5))return![];return _0x5856e5;},exports['addVariables']=function(_0x205b86,_0xa0acab,_0x2c30c2,_0x1bf2ff,_0x271d20,_0x2ed5ae){const _0x15e584=_0x5d129b,_0x483d4a=getConfigService(),_0x1c5a53={'XMD-QUEUE':_0xa0acab['Queue']?_0xa0acab[_0x15e584('0x1b')][_0x15e584('0x6a')]:'','XMD-CALLERID':_0x1bf2ff,'XMD-CALLERID-PREVIEW':_0x2ed5ae?util[_0x15e584('0x63')]('\x22%s\x22\x20<%s>',_0x2ed5ae[_0x15e584('0x5c')],_0x2ed5ae[_0x15e584('0x6f')]):_0x1bf2ff,'XMD-DIALID':_0x271d20,'XMD-CONTACTID':_0xa0acab[_0x15e584('0x79')],'XMD-CDRTYPE':_0x15e584('0x13'),'CALLERID(all)':_0x1bf2ff,'XMD-VOICEQUEUEID':_0xa0acab[_0x15e584('0x57')],'XMD-DIALCHANNEL':_0x2c30c2,'XMD-DIALTIMEOUT':_0x205b86[_0x15e584('0x2f')]||0x1e,'XMD-DIALOPTIONS':util['format'](_0x15e584('0x4a'),_0x205b86[_0x15e584('0x30')]?'g':'',_[_0x15e584('0x3d')](_0x205b86[_0x15e584('0x32')])?'':_0x15e584('0x52')),'XMD-DIALURL':_0x205b86[_0x15e584('0x17')]||'','XMD-AGI':_0x205b86[_0x15e584('0x48')]?util[_0x15e584('0x63')](_0x15e584('0x45'),_0x483d4a[_0x15e584('0x70')],_0x205b86[_0x15e584('0x48')]):_0x15e584('0x7b'),'XMD-AGIAFTER':_0x205b86[_0x15e584('0x30')]?util[_0x15e584('0x63')](_0x15e584('0x45'),_0x483d4a[_0x15e584('0x70')],_0x205b86[_0x15e584('0x30')]):_0x15e584('0x7b'),'XMD-ORIGINATECALLERIDNUM':_0x2ed5ae?_0x2ed5ae['originatecalleridnum']:'','XMD-ORIGINATECALLERIDNAME':_0x2ed5ae?_0x2ed5ae[_0x15e584('0x42')]:'','XMD-DESTINATION':_0x15e584('0xd')};!_[_0x15e584('0x3d')](_0x205b86['monitor_format'])&&(_0x1c5a53[util['format']('%s',_0x15e584('0x16'))]=_0x205b86[_0x15e584('0x32')],_0x1c5a53[util[_0x15e584('0x63')]('%s',_0x15e584('0x7a'))]=_0x271d20);if(_0xa0acab&&_0xa0acab[_0x15e584('0x65')])for(const _0x4978ca in _0xa0acab['Contact']){typeof _0xa0acab[_0x15e584('0x65')][_0x4978ca]!==_0x15e584('0x71')&&(!_['isNil'](_0xa0acab[_0x15e584('0x65')][_0x4978ca])&&_0x4978ca!=='id'&&_0x4978ca!=='tags'&&_0x4978ca!=='createdAt'&&_0x4978ca!=='updatedAt'&&(_0x1c5a53[util[_0x15e584('0x63')](_0x15e584('0x76'),_0x15e584('0x0'),_[_0x15e584('0x12')](_0x4978ca))]=_0xa0acab[_0x15e584('0x65')][_0x4978ca]));}return _0x1c5a53;},exports['toLowerVariables']=function(_0x226b84){const _0x3aea26=_0x5d129b,_0x4056de={};for(const _0x342edb in _0x226b84){typeof _0x226b84[_0x342edb]!=='undefined'&&(_0x4056de[util[_0x3aea26('0x63')]('%s',_['toLower'](_0x342edb))]=_0x226b84[_0x342edb]);}return{'variables':_0x4056de};},exports['updateOriginated']=function(_0x474cb4,_0x54fdfa){const _0x42fc66=_0x5d129b;!_[_0x42fc66('0x1d')](_0x474cb4)?typeof _0x474cb4['originated']!=='undefined'&&(_0x474cb4['originated']>0x0?_0x474cb4[_0x42fc66('0x2')]-=0x1:logger[_0x42fc66('0x10')](_0x42fc66('0x77'),_0x54fdfa)):logger['error'](_0x42fc66('0x4e'),_0x54fdfa);},exports[_0x5d129b('0x60')]=function(_0x306798){const _0x30c62c=_0x5d129b,_0x52c948=moment()[_0x30c62c('0x63')](_0x30c62c('0x11'));_0x306798[_0x30c62c('0x34')]=0xd,_0x306798[_0x30c62c('0x62')]=_0x30c62c('0x47'),_0x306798[_0x30c62c('0x38')]=_0x52c948,_0x306798[_0x30c62c('0x15')]=_0x52c948,_0x306798[_0x30c62c('0xc')]=_0x52c948;},exports['logAgent']=function(_0x47ef05,_0x3e8d87,_0x55562f){const _0x348064=_0x5d129b,_0x29e116=moment()[_0x348064('0x63')](_0x348064('0x11'));_0x47ef05[_0x348064('0x34')]=_0x3e8d87,_0x47ef05[_0x348064('0x62')]=_0x55562f,_0x47ef05['responsetime']=_0x29e116,_0x47ef05[_0x348064('0x4d')]=getSeconds(_0x47ef05['responsetime'],_0x47ef05[_0x348064('0x38')]);},exports[_0x5d129b('0x3')]=function(_0x35a445,_0x5ee81e,_0x3dfe00){const _0x5222eb=_0x5d129b;_0x35a445[_0x5222eb('0x74')]=_0x5ee81e,_0x35a445['UserId']=_0x3dfe00;},exports[_0x5d129b('0x61')]=function(_0x3d54b2,_0x4508e2,_0x58fe35){const _0x1f98c1=_0x5d129b,_0x2b6fba=moment()[_0x1f98c1('0x63')](_0x1f98c1('0x11'));_0x3d54b2['state']=_0x4508e2,_0x3d54b2[_0x1f98c1('0x62')]=_0x58fe35,_0x3d54b2[_0x1f98c1('0x15')]=_0x3d54b2[_0x1f98c1('0x15')]?_0x3d54b2['responsetime']:_0x2b6fba,_0x3d54b2[_0x1f98c1('0xc')]=_0x3d54b2[_0x1f98c1('0xc')]?_0x3d54b2[_0x1f98c1('0xc')]:_0x2b6fba,_0x3d54b2['ringtime']=getSeconds(_0x3d54b2[_0x1f98c1('0x15')]||0x0,_0x3d54b2[_0x1f98c1('0x38')]||0x0),_0x3d54b2[_0x1f98c1('0x6d')]=_0x3d54b2[_0x1f98c1('0x64')]?getSeconds(_0x3d54b2[_0x1f98c1('0xc')],_0x3d54b2[_0x1f98c1('0x64')]):0x0;},exports[_0x5d129b('0x5')]=function(_0x4cb71b){const _0x17d7ba=_0x5d129b;return _0x4cb71b===_0x17d7ba('0x53');},exports['variablesAction']=function(_0x804e6,_0x58bdad,_0x4de977,_0x402923,_0x50f132){const _0xec7b4c=_0x5d129b;let _0x3c6a41=_0x402923?_0xec7b4c('0x69'):_0x804e6['calleridname'];return _0x3c6a41=_0x50f132?_0xec7b4c('0x51'):_0x3c6a41,{'actionid':_0x804e6['uniqueid'],'action':'originate','channel':_0x804e6[_0xec7b4c('0x2c')],'callerid':util[_0xec7b4c('0x63')](_0xec7b4c('0x14'),_0x3c6a41,_0x804e6[_0xec7b4c('0x6f')]),'Exten':_0xec7b4c('0xd'),'Context':_0xec7b4c('0x6c'),'Priority':'1','variable':_0x4de977,'timeout':(_0x58bdad['timeout']||0x1e)*0x3e8,'async':!![],'channelid':_0x804e6[_0xec7b4c('0x49')]};},exports[_0x5d129b('0x33')]=function(_0x299443){const _0x2b4c69=_0x5d129b;return _0x299443['countbusyretry']+_0x299443['countcongestionretry']+_0x299443[_0x2b4c69('0x43')]+_0x299443[_0x2b4c69('0x21')]+_0x299443[_0x2b4c69('0x19')];},exports['cloneAction']=function(_0x3f9ca2){const _0x27c953=_0x5d129b,_0x26d0cb=_[_0x27c953('0x75')](_0x3f9ca2);return _0x26d0cb[_0x27c953('0x34')]=0xf,_0x26d0cb[_0x27c953('0x62')]='Global',_0x26d0cb;},exports[_0x5d129b('0x78')]=function(_0x1a6474,_0x2ed719,_0x3262ad){const _0x41b789=_0x5d129b,_0x2a55e5={};return _0x2a55e5[_0x2ed719]=_0x1a6474[_0x2ed719],_0x2a55e5['active']=![],_0x2a55e5['scheduledat']=moment()[_0x41b789('0x3b')](_0x3262ad,'minutes')['format'](_0x41b789('0x11')),_0x2a55e5[_0x41b789('0x79')]=_0x1a6474['ContactId'],_0x2a55e5['ListId']=_0x1a6474['ListId'],_0x2a55e5[_0x41b789('0x57')]=_0x1a6474[_0x41b789('0x57')]||undefined,_0x2a55e5;},exports[_0x5d129b('0x55')]=function(_0x59b3b7,_0x315c3f){const _0x5bfca6=_0x5d129b;!_['isNil'](_0x59b3b7)?_0x59b3b7[_0x5bfca6('0x3f')]>0x0?_0x59b3b7[_0x5bfca6('0x3f')]-=0x1:logger[_0x5bfca6('0x10')](_0x315c3f,_0x5bfca6('0x5f')):logger[_0x5bfca6('0x10')](_0x315c3f,_0x5bfca6('0x20'));},exports['IsNotLoggedIn']=function(_0xf0d410){if(_0xf0d410<=0x0)return!![];return![];},exports[_0x5d129b('0x6b')]=function(_0x30280e,_0x298b09){const _0x537492=_0x5d129b;return _0x30280e[_0x537492('0x28')]=_0x298b09,_0x30280e[_0x537492('0x6a')]=_0x30280e['queue'],_0x30280e[_0x537492('0x26')]=_0x30280e[_0x537492('0x2c')],_0x30280e;},exports[_0x5d129b('0x41')]=function(_0x51b596){const _0x48b997=_0x5d129b,_0x2b64fc={};return _0x2b64fc[_0x48b997('0x2d')]=_0x51b596['queue'],_0x2b64fc[_0x48b997('0x26')]=_0x51b596[_0x48b997('0x2c')],_0x2b64fc[_0x48b997('0x49')]=_0x51b596['uniqueid'],_0x2b64fc;},exports[_0x5d129b('0x2b')]=function(_0x21bbb7){const _0x28b84d=_0x5d129b,_0x45f0ab=[];for(const _0x2e022c in _0x21bbb7){typeof _0x21bbb7[_0x2e022c]!==_0x28b84d('0x71')&&(!_['isNil'](_0x21bbb7[_0x2e022c])&&_0x21bbb7[_0x2e022c]['state']===_0x28b84d('0x35')&&_0x21bbb7[_0x2e022c][_0x28b84d('0x68')]==='reachable'&&_0x45f0ab[_0x28b84d('0x5a')](_0x21bbb7[_0x2e022c]['id']));}return _0x45f0ab;},exports['getDiff']=function(_0x5df08a){const _0x388b6b=_0x5d129b,_0x413553=moment()['milliseconds'](0x0),_0x4a6e9e=moment(_0x5df08a)[_0x388b6b('0x2a')](0x0);return _0x413553[_0x388b6b('0x27')](_0x4a6e9e,'seconds');},exports[_0x5d129b('0x31')]=function(_0x48881c){const _0x4f5eed=_0x5d129b;return{'active':![],'recallme':![],'UserId':null,'ContactId':_0x48881c['ContactId'],'ListId':_0x48881c[_0x4f5eed('0x9')],'VoiceQueueId':_0x48881c['VoiceQueueId']||undefined,'CampaignId':_0x48881c['CampaignId']||undefined};},exports['filterKey']=function(_0x395888){const _0x510678=_0x5d129b;if(_0x395888===_0x510678('0x49')||_0x395888===_0x510678('0x1f')||_0x395888===_0x510678('0x2d')||_0x395888===_0x510678('0x1c')||_0x395888==='campaigntype'||_0x395888===_0x510678('0x37')||_0x395888===_0x510678('0x74')||_0x395888===_0x510678('0x2c')||_0x395888===_0x510678('0x5c')||_0x395888===_0x510678('0x50')||_0x395888===_0x510678('0x6f')||_0x395888===_0x510678('0x54')||_0x395888==='countbusyretry'||_0x395888===_0x510678('0x44')||_0x395888===_0x510678('0x43')||_0x395888===_0x510678('0x18')||_0x395888===_0x510678('0x3e')||_0x395888===_0x510678('0x22')||_0x395888===_0x510678('0x59')||_0x395888===_0x510678('0x6e')||_0x395888==='ContactId'||_0x395888==='ListId'||_0x395888===_0x510678('0xb')||_0x395888==='VoiceQueueId'||_0x395888==='sipcallid'||_0x395888===_0x510678('0x36')||_0x395888==='xmd-queue'||_0x395888==='xmd-phone'||_0x395888==='xmd-listid'||_0x395888===_0x510678('0x8')||_0x395888==='xmd-dialtimeout'||_0x395888===_0x510678('0xa')||_0x395888==='xmd-dialid'||_0x395888===_0x510678('0x4')||_0x395888==='xmd-contactid'||_0x395888===_0x510678('0x67')||_0x395888===_0x510678('0x73')||_0x395888===_0x510678('0x40')||_0x395888===_0x510678('0x7d')||_0x395888===_0x510678('0x1')||_0x395888===_0x510678('0x24')||_0x395888==='rtpaudioqosjitter'||_0x395888===_0x510678('0x58')||_0x395888===_0x510678('0x56')||_0x395888===_0x510678('0x23')||_0x395888==='rtpaudioqosrtt'||_0x395888==='rtpaudioqosrttbridged'||_0x395888===_0x510678('0x1')||_0x395888===_0x510678('0x24')||_0x395888===_0x510678('0x1e')||_0x395888===_0x510678('0x58')||_0x395888===_0x510678('0x56')||_0x395888===_0x510678('0x23')||_0x395888===_0x510678('0x6')||_0x395888==='rtpaudioqosrttbridged'||_0x395888==='bridgepeer'||_0x395888==='bridgepvtcallid'||_0x395888===_0x510678('0x34')||_0x395888==='statedesc')return![];return!![];},exports[_0x5d129b('0x66')]=function(_0x55671d,_0x2e54c3){const _0x5d4411=_0x5d129b;_0x2e54c3<=0x0&&(_0x2e54c3=0x1);const _0x1e40ad=new RegExp(_0x5d4411('0x4b')+_0x2e54c3+'}$'),_0x3dc754=Math['pow'](0xa,_0x2e54c3-0x1),_0x3cae4e=Math[_0x5d4411('0x25')](0xa,_0x2e54c3)-0x1;return util[_0x5d4411('0x63')]('%s',_[_0x5d4411('0x5b')](_0x55671d,_0x1e40ad,_[_0x5d4411('0xf')](_0x3dc754,_0x3cae4e)));},exports['extractCalleridName']=function(_0x9aee39){const _0x485416=_0x5d129b,_0x32454c=_0x9aee39[_0x485416('0x3c')](/"(.*?)"/);return _0x32454c?_0x32454c[0x1]:_0x9aee39;},exports[_0x5d129b('0x5d')]=function(_0x461de1){const _0x2179e4=_0x5d129b,_0x39451f=_0x461de1[_0x2179e4('0x3c')](/<(.*?)>/);return _0x39451f?_0x39451f[0x1]:_0x461de1;}; \ No newline at end of file +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 diff --git a/server/services/ami/properties.js b/server/services/ami/properties.js index de43d03..fabe27a 100644 --- a/server/services/ami/properties.js +++ b/server/services/ami/properties.js @@ -1 +1 @@ -var a1090_0x49c3=['voicechannel','voicequeuechannelhangup','string','voicequeuechannelredirect','queueremove','reload','queuepause','number','voicequeuechannel','boolean'];(function(_0x9d8bcf,_0x49c356){var _0x39039f=function(_0x561394){while(--_0x561394){_0x9d8bcf['push'](_0x9d8bcf['shift']());}};_0x39039f(++_0x49c356);}(a1090_0x49c3,0x1e0));var a1090_0x3903=function(_0x9d8bcf,_0x49c356){_0x9d8bcf=_0x9d8bcf-0x0;var _0x39039f=a1090_0x49c3[_0x9d8bcf];return _0x39039f;};var _0xe40a0e=a1090_0x3903;'use strict';exports['queueadd']={'queue':{'type':'string','required':!![]},'interface':{'type':'string','required':!![]},'membername':{'type':_0xe40a0e('0x2'),'required':!![]},'penalty':{'type':_0xe40a0e('0x7'),'required':![]},'paused':{'type':_0xe40a0e('0x9'),'required':![]}},exports[_0xe40a0e('0x4')]={'queue':{'type':_0xe40a0e('0x2'),'required':!![]},'interface':{'type':_0xe40a0e('0x2'),'required':!![]}},exports[_0xe40a0e('0x6')]={'interface':{'type':'string','required':!![]},'paused':{'type':_0xe40a0e('0x9')},'reason':{'type':_0xe40a0e('0x2'),'required':![]}},exports[_0xe40a0e('0x5')]={'module':{'type':'string','required':![]}},exports[_0xe40a0e('0x8')]={'uniqueid':{'type':_0xe40a0e('0x2'),'required':!![]}},exports[_0xe40a0e('0x0')]={'uniqueid':{'type':_0xe40a0e('0x2'),'required':!![]},'filename':{'type':_0xe40a0e('0x2')},'format':{'type':_0xe40a0e('0x2')},'mixmonitorid':{'type':_0xe40a0e('0x2')}},exports[_0xe40a0e('0x1')]={'uniqueid':{'type':_0xe40a0e('0x2'),'required':!![]}},exports[_0xe40a0e('0x3')]={'uniqueid':{'type':_0xe40a0e('0x2'),'required':!![]},'exten':{'type':'string','required':!![]},'context':{'type':_0xe40a0e('0x2')}}; \ No newline at end of file +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 diff --git a/server/services/ami/realtime/index.js b/server/services/ami/realtime/index.js index 065b2a9..fd41875 100644 --- a/server/services/ami/realtime/index.js +++ b/server/services/ami/realtime/index.js @@ -1 +1 @@ -const a1091_0x1e36=['initDynamics365Accounts','triggers','dynamics365Accounts','initTemplates','sugarcrmAccounts','deskAccounts','initFreshsalesAccounts','initAgents','initDeskAccounts','../model/zohoAccount','total','faxAccounts','../model/vtigerAccount','outboundAnswerAgiCallsDay','queuecallerexit','sumDuration','merge','initCampaignHopperHistory','../model/voiceQueue','duration','ANSWERED','../model/salesforceAccount','outboundChannels','diff','initFreshdeskAccounts','answered','templates','isUndefined','mapKeys','salesforceAccounts','length','initZohoAccounts','initFaxAccounts','SIP/%s','isNil','timers','zendeskAccounts','abandoned','zohoAccounts','queueStatusComplete','voiceQueues','initVtigerAccounts','../model/dynamics365Account','../model/servicenowAccount','servicenowAccounts','vtigerAccounts','SquareProject','queuecallerabandonAt','initTelephones','queuecallerjoinAt','interface','unmanaged','undefined','../model/voiceExtension','util','../model/trigger','outboundOriginateFailureCallsDay','initSalesforceAccounts','initZendeskAccounts','initVoiceExtensions','outboundNoAnswerCallsDay','groupBy','uniqueid','initServicenowAccounts','../model/campaign','../model/sugarcrmAccount','../model/freshsalesAccount','sumBillable','queuecallerexitAt','ivrAnswerCallsDay','../model/freshdeskAccount','freshdeskAccounts','format','name','voiceExtensions','../model/zendeskAccount','sumHoldTime','outboundBusyCallsDay','queue','telephones','queuecallercompleteAt','queuecallercomplete','billableseconds','outbound','campaigns','freshsalesAccounts','channels','exports','outboundUnknownCallsDay','agents','queuecallerabandon','prototype','initTriggers','outboundAnswerCallsDay','initVoiceCallReports','outboundBlacklistCallsDay','initCampaigns','mergeFromDatabase','queuecallerleaveAt','trunks','seconds','initTrunks','../model/trunk','lodash','dialQueueProject'];(function(_0x2b912c,_0x1e36dd){const _0x5c024e=function(_0x68d8f2){while(--_0x68d8f2){_0x2b912c['push'](_0x2b912c['shift']());}};_0x5c024e(++_0x1e36dd);}(a1091_0x1e36,0xdc));const a1091_0x5c02=function(_0x2b912c,_0x1e36dd){_0x2b912c=_0x2b912c-0x0;let _0x5c024e=a1091_0x1e36[_0x2b912c];return _0x5c024e;};const _0x357ae9=a1091_0x5c02;'use strict';const util=require(_0x357ae9('0x2c')),_=require(_0x357ae9('0x5d')),moment=require('moment'),Agent=require('../model/agent'),Telephone=require('../model/telephone'),Trunk=require(_0x357ae9('0x5c')),VoiceQueue=require(_0x357ae9('0x8')),Trigger=require(_0x357ae9('0x2d')),Template=require('../model/template'),Campaign=require(_0x357ae9('0x36')),VoiceExtension=require(_0x357ae9('0x2b')),ZendeskAccount=require(_0x357ae9('0x41')),SalesforceAccount=require(_0x357ae9('0xb')),FreshdeskAccount=require(_0x357ae9('0x3c')),SugarcrmAccount=require(_0x357ae9('0x37')),ZohoAccount=require(_0x357ae9('0x68')),DeskAccount=require('../model/deskAccount'),VtigerAccount=require(_0x357ae9('0x2')),ServicenowAccount=require(_0x357ae9('0x21')),Dynamics365Account=require(_0x357ae9('0x20')),FreshsalesAccount=require(_0x357ae9('0x38')),FaxAccount=require('../model/faxAccount'),Realtime=function(){const _0x1e42e2=_0x357ae9;this[_0x1e42e2('0x4f')]={},this[_0x1e42e2('0x45')]={},this[_0x1e42e2('0x59')]={},this[_0x1e42e2('0x1e')]={},this[_0x1e42e2('0x60')]={},this[_0x1e42e2('0x4a')]={},this['templates']={},this[_0x1e42e2('0x49')]={'total':0x0,'answered':0x0,'sumHoldTime':0x0,'sumDuration':0x0,'sumBillable':0x0},this[_0x1e42e2('0x40')]={},this[_0x1e42e2('0x4c')]={},this['queueChannels']={},this[_0x1e42e2('0xc')]={},this[_0x1e42e2('0x19')]={},this[_0x1e42e2('0x1a')]={},this[_0x1e42e2('0x13')]={},this['sugarcrmAccounts']={},this['freshdeskAccounts']={},this[_0x1e42e2('0x1c')]={},this[_0x1e42e2('0x64')]={},this[_0x1e42e2('0x23')]={},this['servicenowAccounts']={},this[_0x1e42e2('0x61')]={},this[_0x1e42e2('0x4b')]={},this[_0x1e42e2('0x1')]={};};function freeIsNotKey(_0x68d8f2,_0x3ca309,_0xc1b32e){const _0x2419bc=_0x357ae9,_0xe467cd=_[_0x2419bc('0x12')](_0x68d8f2,function(_0x13b492){return _0x13b492[_0xc1b32e];});for(const _0xce660c in _0x3ca309){typeof _0x3ca309[_0xce660c]!==_0x2419bc('0x2a')&&(!_0xe467cd[_0xce660c]&&delete _0x3ca309[_0xce660c]);}}function freeIsNotKeySip(_0x52bb17,_0x1bc443){const _0x45c94f=_0x357ae9,_0x9e968e=_['mapKeys'](_0x52bb17,function(_0x5aaa03){const _0xc3b6da=a1091_0x5c02;return util[_0xc3b6da('0x3e')](_0xc3b6da('0x17'),_0x5aaa03[_0xc3b6da('0x3f')]);});for(const _0xb4727b in _0x1bc443){typeof _0x1bc443[_0xb4727b]!==_0x45c94f('0x2a')&&(!_0x9e968e[_0xb4727b]&&delete _0x1bc443[_0xb4727b]);}}function freeIsNotKeyAgent(_0x4ba9ee,_0x55848e){const _0x49021c=_0x357ae9,_0xb2dbed=_[_0x49021c('0x12')](_0x4ba9ee,function(_0xe5e404){const _0x1d4a19=_0x49021c,_0x29e23f=_[_0x1d4a19('0x18')](_0xe5e404['interface'])?util[_0x1d4a19('0x3e')](_0x1d4a19('0x17'),_0xe5e404[_0x1d4a19('0x3f')]):_0xe5e404[_0x1d4a19('0x28')];return _0x29e23f;});for(const _0x2e4684 in _0x55848e){typeof _0x55848e[_0x2e4684]!==_0x49021c('0x2a')&&(!_0xb2dbed[_0x2e4684]&&delete _0x55848e[_0x2e4684]);}}function clearVoiceCallReports(_0x24c35d){const _0x5f06cd=_0x357ae9;_0x24c35d[_0x5f06cd('0x0')]=0x0,_0x24c35d[_0x5f06cd('0xf')]=0x0,_0x24c35d[_0x5f06cd('0x42')]=0x0,_0x24c35d[_0x5f06cd('0x5')]=0x0,_0x24c35d[_0x5f06cd('0x39')]=0x0;}function clearCampaigns(_0x16c922){const _0x4e5072=_0x357ae9;if(!_['isEmpty'](_0x16c922))for(const _0x49a2ff in _0x16c922){typeof _0x16c922[_0x49a2ff]!=='undefined'&&(_0x16c922[_0x49a2ff]['ivrTotalCallsDays']=0x0,_0x16c922[_0x49a2ff][_0x4e5072('0x3b')]=0x0);}}function clearVoiceQueues(_0x498894){const _0x132457=_0x357ae9;if(!_['isEmpty'](_0x498894))for(const _0x3c2121 in _0x498894){typeof _0x498894[_0x3c2121]!==_0x132457('0x2a')&&(_0x498894[_0x3c2121][_0x132457('0x0')]=0x0,_0x498894[_0x3c2121][_0x132457('0xf')]=0x0,_0x498894[_0x3c2121][_0x132457('0x29')]=0x0,_0x498894[_0x3c2121][_0x132457('0x1b')]=0x0,_0x498894[_0x3c2121][_0x132457('0x42')]=0x0,_0x498894[_0x3c2121]['sumDuration']=0x0,_0x498894[_0x3c2121][_0x132457('0x39')]=0x0,_0x498894[_0x3c2121]['outboundAnswerAgiCallsDay']=0x0,_0x498894[_0x3c2121][_0x132457('0x32')]=0x0,_0x498894[_0x3c2121][_0x132457('0x43')]=0x0,_0x498894[_0x3c2121]['outboundCongestionCallsDay']=0x0,_0x498894[_0x3c2121]['outboundNoSuchCallsDay']=0x0,_0x498894[_0x3c2121][_0x132457('0x4e')]=0x0,_0x498894[_0x3c2121]['outboundDropCallsDayTimeout']=0x0,_0x498894[_0x3c2121]['outboundDropCallsDayCallersExit']=0x0,_0x498894[_0x3c2121][_0x132457('0x55')]=0x0,_0x498894[_0x3c2121][_0x132457('0x2e')]=0x0,_0x498894[_0x3c2121]['outboundRejectCallsDay']=0x0,_0x498894[_0x3c2121]['outboundReCallsDay']=0x0,_0x498894[_0x3c2121][_0x132457('0x3')]=0x0,_0x498894[_0x3c2121][_0x132457('0x53')]=0x0,_0x498894[_0x3c2121][_0x132457('0x1d')]=!![]);}}Realtime['prototype']['mergeFromDatabase']=function(_0x32f6b3,_0x5dd366){const _0x3abc75=_0x357ae9;for(const _0xcbe4f3 in _0x5dd366){typeof _0x32f6b3[_0xcbe4f3]!==_0x3abc75('0x2a')&&(_0x32f6b3[_0xcbe4f3]=_0x5dd366[_0xcbe4f3]);}},Realtime[_0x357ae9('0x51')][_0x357ae9('0x66')]=function(){const _0x3a3855=this;return function(_0x18bccb){const _0x55e942=a1091_0x5c02;if(_0x18bccb){freeIsNotKeyAgent(_0x18bccb,_0x3a3855[_0x55e942('0x4f')]);for(let _0x162dac=0x0,_0x224001={};_0x162dac<_0x18bccb[_0x55e942('0x14')];_0x162dac+=0x1){_0x224001=_0x18bccb[_0x162dac];const _0xf506b9=_['isNil'](_0x224001[_0x55e942('0x28')])?util[_0x55e942('0x3e')](_0x55e942('0x17'),_0x224001[_0x55e942('0x3f')]):_0x224001[_0x55e942('0x28')];_[_0x55e942('0x11')](_0x3a3855['agents'][_0xf506b9])?_0x3a3855[_0x55e942('0x4f')][_0xf506b9]=new Agent(_0x224001):_0x3a3855['mergeFromDatabase'](_0x3a3855['agents'][_0xf506b9],_0x224001);}}return _0x3a3855[_0x55e942('0x4f')];};},Realtime[_0x357ae9('0x51')][_0x357ae9('0x26')]=function(){const _0x14f746=this;return function(_0x557e95){const _0x56f6d5=a1091_0x5c02;if(_0x557e95){freeIsNotKeySip(_0x557e95,_0x14f746[_0x56f6d5('0x45')]);for(let _0x5b6bff=0x0,_0xd913f5={};_0x5b6bff<_0x557e95['length'];_0x5b6bff+=0x1){_0xd913f5=_0x557e95[_0x5b6bff],_[_0x56f6d5('0x11')](_0x14f746[_0x56f6d5('0x45')][util[_0x56f6d5('0x3e')](_0x56f6d5('0x17'),_0xd913f5[_0x56f6d5('0x3f')])])?_0x14f746[_0x56f6d5('0x45')][util[_0x56f6d5('0x3e')](_0x56f6d5('0x17'),_0xd913f5[_0x56f6d5('0x3f')])]=new Telephone(_0xd913f5):_0x14f746[_0x56f6d5('0x57')](_0x14f746[_0x56f6d5('0x45')][util[_0x56f6d5('0x3e')](_0x56f6d5('0x17'),_0xd913f5['name'])],_0xd913f5);}}return _0x14f746[_0x56f6d5('0x45')];};},Realtime[_0x357ae9('0x51')][_0x357ae9('0x5b')]=function(){const _0x590030=this;return function(_0x44f5f7){const _0x409211=a1091_0x5c02;if(_0x44f5f7){freeIsNotKeySip(_0x44f5f7,_0x590030[_0x409211('0x59')]);for(let _0x276e69=0x0,_0x56afb4={};_0x276e69<_0x44f5f7['length'];_0x276e69+=0x1){_0x56afb4=_0x44f5f7[_0x276e69],_[_0x409211('0x11')](_0x590030[_0x409211('0x59')][util[_0x409211('0x3e')](_0x409211('0x17'),_0x56afb4[_0x409211('0x3f')])])?_0x590030[_0x409211('0x59')][util[_0x409211('0x3e')]('SIP/%s',_0x56afb4[_0x409211('0x3f')])]=new Trunk(_0x56afb4):_0x590030['mergeFromDatabase'](_0x590030[_0x409211('0x59')][util[_0x409211('0x3e')](_0x409211('0x17'),_0x56afb4[_0x409211('0x3f')])],_0x56afb4);}}return _0x590030[_0x409211('0x59')];};},Realtime[_0x357ae9('0x51')]['initVoiceQueues']=function(){const _0x29a0b2=this;return function(_0x4594c3){const _0x51a585=a1091_0x5c02;if(_0x4594c3){freeIsNotKey(_0x4594c3,_0x29a0b2[_0x51a585('0x1e')],'name');for(let _0xe714f1=0x0,_0x36027e={};_0xe714f1<_0x4594c3['length'];_0xe714f1+=0x1){_0x36027e=_0x4594c3[_0xe714f1],_[_0x51a585('0x11')](_0x29a0b2[_0x51a585('0x1e')][_0x36027e[_0x51a585('0x3f')]])?_0x29a0b2['voiceQueues'][_0x36027e[_0x51a585('0x3f')]]=new VoiceQueue(_0x36027e):_0x29a0b2[_0x51a585('0x57')](_0x29a0b2['voiceQueues'][_0x36027e['name']],_0x36027e);}}return _0x29a0b2[_0x51a585('0x1e')];};},Realtime[_0x357ae9('0x51')][_0x357ae9('0x52')]=function(){const _0x49cc01=this;return function(_0x55822a){const _0x5f3759=a1091_0x5c02;if(_0x55822a){freeIsNotKey(_0x55822a,_0x49cc01[_0x5f3759('0x60')],'id');for(let _0x5e3403=0x0,_0x718403={};_0x5e3403<_0x55822a['length'];_0x5e3403+=0x1){_0x718403=_0x55822a[_0x5e3403],_[_0x5f3759('0x11')](_0x49cc01[_0x5f3759('0x60')][_0x718403['id']])?_0x49cc01['triggers'][_0x718403['id']]=new Trigger(_0x718403):_0x49cc01['mergeFromDatabase'](_0x49cc01[_0x5f3759('0x60')][_0x718403['id']],_0x718403);}}return _0x49cc01['triggers'];};},Realtime[_0x357ae9('0x51')][_0x357ae9('0x62')]=function(){const _0x4a85e6=this;return function(_0x1e2ad9){const _0x3c38f0=a1091_0x5c02;if(_0x1e2ad9){freeIsNotKey(_0x1e2ad9,_0x4a85e6['templates'],'id');for(let _0x4734c5=0x0,_0x108f63={};_0x4734c5<_0x1e2ad9[_0x3c38f0('0x14')];_0x4734c5+=0x1){_0x108f63=_0x1e2ad9[_0x4734c5],_[_0x3c38f0('0x11')](_0x4a85e6[_0x3c38f0('0x10')][_0x108f63['id']])?_0x4a85e6[_0x3c38f0('0x10')][_0x108f63['id']]=new Template(_0x108f63):_0x4a85e6[_0x3c38f0('0x57')](_0x4a85e6[_0x3c38f0('0x10')][_0x108f63['id']],_0x108f63);}}return _0x4a85e6['templates'];};},Realtime['prototype'][_0x357ae9('0x30')]=function(){const _0x28c4b9=this;return function(_0x2461be){const _0x4c8f51=a1091_0x5c02;if(_0x2461be){freeIsNotKey(_0x2461be,_0x28c4b9[_0x4c8f51('0x1a')],'id');for(let _0x33ff87=0x0,_0x19140e={};_0x33ff87<_0x2461be[_0x4c8f51('0x14')];_0x33ff87+=0x1){_0x19140e=_0x2461be[_0x33ff87],_[_0x4c8f51('0x11')](_0x28c4b9[_0x4c8f51('0x1a')][_0x19140e['id']])?_0x28c4b9['zendeskAccounts'][_0x19140e['id']]=new ZendeskAccount(_0x19140e):_0x28c4b9[_0x4c8f51('0x57')](_0x28c4b9[_0x4c8f51('0x1a')][_0x19140e['id']],_0x19140e);}}return _0x28c4b9[_0x4c8f51('0x1a')];};},Realtime['prototype'][_0x357ae9('0x2f')]=function(){const _0x5491a5=this;return function(_0x226a3e){const _0x468750=a1091_0x5c02;if(_0x226a3e){freeIsNotKey(_0x226a3e,_0x5491a5[_0x468750('0x13')],'id');for(let _0x2dcb02=0x0,_0x220265={};_0x2dcb02<_0x226a3e[_0x468750('0x14')];_0x2dcb02+=0x1){_0x220265=_0x226a3e[_0x2dcb02],_[_0x468750('0x11')](_0x5491a5[_0x468750('0x13')][_0x220265['id']])?_0x5491a5[_0x468750('0x13')][_0x220265['id']]=new SalesforceAccount(_0x220265):_0x5491a5[_0x468750('0x57')](_0x5491a5[_0x468750('0x13')][_0x220265['id']],_0x220265);}}return _0x5491a5[_0x468750('0x13')];};},Realtime[_0x357ae9('0x51')][_0x357ae9('0xe')]=function(){const _0x2d4266=this;return function(_0x359f9d){const _0x82155=a1091_0x5c02;if(_0x359f9d){freeIsNotKey(_0x359f9d,_0x2d4266[_0x82155('0x3d')],'id');for(let _0x5c3f65=0x0,_0x34f4a9={};_0x5c3f65<_0x359f9d['length'];_0x5c3f65+=0x1){_0x34f4a9=_0x359f9d[_0x5c3f65],_[_0x82155('0x11')](_0x2d4266[_0x82155('0x3d')][_0x34f4a9['id']])?_0x2d4266[_0x82155('0x3d')][_0x34f4a9['id']]=new FreshdeskAccount(_0x34f4a9):_0x2d4266[_0x82155('0x57')](_0x2d4266[_0x82155('0x3d')][_0x34f4a9['id']],_0x34f4a9);}}return _0x2d4266[_0x82155('0x3d')];};},Realtime['prototype'][_0x357ae9('0x15')]=function(){const _0x4e5728=this;return function(_0x5b7b77){const _0x413ecf=a1091_0x5c02;if(_0x5b7b77){freeIsNotKey(_0x5b7b77,_0x4e5728['zohoAccounts'],'id');for(let _0x393d19=0x0,_0x23fb04={};_0x393d19<_0x5b7b77[_0x413ecf('0x14')];_0x393d19+=0x1){_0x23fb04=_0x5b7b77[_0x393d19],_[_0x413ecf('0x11')](_0x4e5728['zohoAccounts'][_0x23fb04['id']])?_0x4e5728[_0x413ecf('0x1c')][_0x23fb04['id']]=new ZohoAccount(_0x23fb04):_0x4e5728[_0x413ecf('0x57')](_0x4e5728['zohoAccounts'][_0x23fb04['id']],_0x23fb04);}}return _0x4e5728[_0x413ecf('0x1c')];};},Realtime[_0x357ae9('0x51')][_0x357ae9('0x67')]=function(){const _0x3a0109=this;return function(_0x1c67d6){const _0x4c7873=a1091_0x5c02;if(_0x1c67d6){freeIsNotKey(_0x1c67d6,_0x3a0109[_0x4c7873('0x64')],'id');for(let _0x3a655e=0x0,_0x2e955e={};_0x3a655e<_0x1c67d6[_0x4c7873('0x14')];_0x3a655e+=0x1){_0x2e955e=_0x1c67d6[_0x3a655e],_[_0x4c7873('0x11')](_0x3a0109[_0x4c7873('0x64')][_0x2e955e['id']])?_0x3a0109[_0x4c7873('0x64')][_0x2e955e['id']]=new DeskAccount(_0x2e955e):_0x3a0109['mergeFromDatabase'](_0x3a0109[_0x4c7873('0x64')][_0x2e955e['id']],_0x2e955e);}}return _0x3a0109['deskAccounts'];};},Realtime['prototype']['initSugarcrmAccounts']=function(){const _0x983c35=this;return function(_0x37b87a){const _0x3263b7=a1091_0x5c02;if(_0x37b87a){freeIsNotKey(_0x37b87a,_0x983c35[_0x3263b7('0x63')],'id');for(let _0x1a4a1d=0x0,_0x438208={};_0x1a4a1d<_0x37b87a[_0x3263b7('0x14')];_0x1a4a1d+=0x1){_0x438208=_0x37b87a[_0x1a4a1d],_[_0x3263b7('0x11')](_0x983c35[_0x3263b7('0x63')][_0x438208['id']])?_0x983c35[_0x3263b7('0x63')][_0x438208['id']]=new SugarcrmAccount(_0x438208):_0x983c35[_0x3263b7('0x57')](_0x983c35[_0x3263b7('0x63')][_0x438208['id']],_0x438208);}}return _0x983c35[_0x3263b7('0x63')];};},Realtime[_0x357ae9('0x51')][_0x357ae9('0x1f')]=function(){const _0x1231c7=this;return function(_0x2bf813){const _0x138bd4=a1091_0x5c02;if(_0x2bf813){freeIsNotKey(_0x2bf813,_0x1231c7['vtigerAccounts'],'id');for(let _0x423494=0x0,_0x4826b7={};_0x423494<_0x2bf813[_0x138bd4('0x14')];_0x423494+=0x1){_0x4826b7=_0x2bf813[_0x423494],_[_0x138bd4('0x11')](_0x1231c7[_0x138bd4('0x23')][_0x4826b7['id']])?_0x1231c7[_0x138bd4('0x23')][_0x4826b7['id']]=new VtigerAccount(_0x4826b7):_0x1231c7[_0x138bd4('0x57')](_0x1231c7[_0x138bd4('0x23')][_0x4826b7['id']],_0x4826b7);}}return _0x1231c7[_0x138bd4('0x23')];};},Realtime['prototype'][_0x357ae9('0x35')]=function(){const _0x9662cc=this;return function(_0x25494a){const _0xe617ee=a1091_0x5c02;if(_0x25494a){freeIsNotKey(_0x25494a,_0x9662cc[_0xe617ee('0x22')],'id');for(let _0x35f809=0x0,_0x12c7b9={};_0x35f809<_0x25494a[_0xe617ee('0x14')];_0x35f809+=0x1){_0x12c7b9=_0x25494a[_0x35f809],_[_0xe617ee('0x11')](_0x9662cc[_0xe617ee('0x22')][_0x12c7b9['id']])?_0x9662cc[_0xe617ee('0x22')][_0x12c7b9['id']]=new ServicenowAccount(_0x12c7b9):_0x9662cc['mergeFromDatabase'](_0x9662cc[_0xe617ee('0x22')][_0x12c7b9['id']],_0x12c7b9);}}return _0x9662cc[_0xe617ee('0x22')];};},Realtime[_0x357ae9('0x51')][_0x357ae9('0x5f')]=function(){const _0x4230a2=this;return function(_0x387870){const _0x4c3839=a1091_0x5c02;if(_0x387870){freeIsNotKey(_0x387870,_0x4230a2[_0x4c3839('0x61')],'id');for(let _0x3a8f18=0x0,_0x15d592={};_0x3a8f18<_0x387870['length'];_0x3a8f18+=0x1){_0x15d592=_0x387870[_0x3a8f18],_['isUndefined'](_0x4230a2[_0x4c3839('0x61')][_0x15d592['id']])?_0x4230a2['dynamics365Accounts'][_0x15d592['id']]=new Dynamics365Account(_0x15d592):_0x4230a2[_0x4c3839('0x57')](_0x4230a2[_0x4c3839('0x61')][_0x15d592['id']],_0x15d592);}}return _0x4230a2[_0x4c3839('0x61')];};},Realtime[_0x357ae9('0x51')][_0x357ae9('0x65')]=function(){const _0x1c1dd1=this;return function(_0x3530f4){const _0x26c461=a1091_0x5c02;if(_0x3530f4){freeIsNotKey(_0x3530f4,_0x1c1dd1[_0x26c461('0x4b')],'id');for(let _0x20eb21=0x0,_0x37ea85={};_0x20eb21<_0x3530f4[_0x26c461('0x14')];_0x20eb21+=0x1){_0x37ea85=_0x3530f4[_0x20eb21],_[_0x26c461('0x11')](_0x1c1dd1['freshsalesAccounts'][_0x37ea85['id']])?_0x1c1dd1['freshsalesAccounts'][_0x37ea85['id']]=new FreshsalesAccount(_0x37ea85):_0x1c1dd1[_0x26c461('0x57')](_0x1c1dd1['freshsalesAccounts'][_0x37ea85['id']],_0x37ea85);}}return _0x1c1dd1[_0x26c461('0x4b')];};},Realtime[_0x357ae9('0x51')]['initVoiceQueueHopperHistory']=function(){const _0x16ec51=this;return function(_0x201169){const _0x36fbda=a1091_0x5c02;for(let _0x1ab3a4=0x0;_0x1ab3a4<_0x201169['length'];_0x1ab3a4+=0x1){_[_0x36fbda('0x6')](_0x16ec51[_0x36fbda('0x1e')][_0x201169[_0x1ab3a4][_0x36fbda('0x3f')]],_0x201169[_0x1ab3a4]);}return _0x16ec51[_0x36fbda('0x1e')];};},Realtime[_0x357ae9('0x51')]['initVoiceQueueReports']=function(){const _0x500924=this;return function(_0x2faa65){const _0x479449=a1091_0x5c02;clearVoiceQueues(_0x500924['voiceQueues']);if(_0x2faa65){_0x2faa65=_[_0x479449('0x33')](_0x2faa65,_0x479449('0x34'));for(const _0x2f91d1 in _0x2faa65){if(typeof _0x2faa65[_0x2f91d1]!==_0x479449('0x2a'))for(let _0x396471=0x0;_0x396471<_0x2faa65[_0x2f91d1]['length'];_0x396471+=0x1){const _0x1d4e0f=_0x2faa65[_0x2f91d1][_0x396471][_0x479449('0x44')];_0x500924[_0x479449('0x1e')][_0x1d4e0f]&&(_0x2faa65[_0x2f91d1][_0x396471][_0x479449('0x4')]&&(_0x500924['voiceQueues'][_0x1d4e0f]['unmanaged']+=0x1),_0x2faa65[_0x2f91d1][_0x396471][_0x479449('0x50')]&&(_0x500924[_0x479449('0x1e')][_0x1d4e0f]['abandoned']+=0x1),_0x500924[_0x479449('0x1e')][_0x1d4e0f][_0x479449('0x42')]+=moment(_0x2faa65[_0x2f91d1][_0x396471][_0x479449('0x58')])[_0x479449('0xd')](moment(_0x2faa65[_0x2f91d1][_0x396471]['queuecallerjoinAt']),_0x479449('0x5a'))||0x0,_0x396471===_0x2faa65[_0x2f91d1][_0x479449('0x14')]-0x1?(_0x500924[_0x479449('0x1e')][_0x1d4e0f][_0x479449('0x5')]+=moment(_0x2faa65[_0x2f91d1][_0x396471]['queuecallercompleteAt']||_0x2faa65[_0x2f91d1][_0x396471][_0x479449('0x25')]||_0x2faa65[_0x2f91d1][_0x396471][_0x479449('0x3a')])[_0x479449('0xd')](moment(_0x2faa65[_0x2f91d1][_0x396471][_0x479449('0x27')]),_0x479449('0x5a'))||0x0,_0x500924[_0x479449('0x1e')][_0x1d4e0f][_0x479449('0x0')]+=0x1,_0x2faa65[_0x2f91d1][_0x396471][_0x479449('0x47')]&&(_0x500924[_0x479449('0x1e')][_0x1d4e0f][_0x479449('0xf')]+=0x1,_0x500924['voiceQueues'][_0x1d4e0f][_0x479449('0x39')]+=moment(_0x2faa65[_0x2f91d1][_0x396471][_0x479449('0x46')])[_0x479449('0xd')](moment(_0x2faa65[_0x2f91d1][_0x396471][_0x479449('0x58')]),'seconds')||0x0)):_0x500924[_0x479449('0x1e')][_0x1d4e0f]['sumDuration']+=_0x500924[_0x479449('0x1e')][_0x1d4e0f][_0x479449('0x42')]||0x0);}}}return _0x500924[_0x479449('0x1e')];};},Realtime[_0x357ae9('0x51')][_0x357ae9('0x54')]=function(){const _0x594759=this;return function(_0x8a1bb6){const _0x255b89=a1091_0x5c02;clearVoiceCallReports(_0x594759[_0x255b89('0x49')]);if(_0x8a1bb6)for(let _0x321e99=0x0;_0x321e99<_0x8a1bb6[_0x255b89('0x14')];_0x321e99+=0x1){_0x594759['outbound'][_0x255b89('0x0')]+=0x1,_0x594759[_0x255b89('0x49')][_0x255b89('0x5')]+=_0x8a1bb6[_0x321e99][_0x255b89('0x9')],_0x8a1bb6[_0x321e99]['disposition']===_0x255b89('0xa')&&(_0x594759['outbound'][_0x255b89('0xf')]+=0x1,_0x594759['outbound']['sumHoldTime']+=_0x8a1bb6[_0x321e99][_0x255b89('0x9')]-_0x8a1bb6[_0x321e99]['billableseconds']||0x0,_0x594759[_0x255b89('0x49')][_0x255b89('0x39')]+=_0x8a1bb6[_0x321e99][_0x255b89('0x48')]);}return _0x594759[_0x255b89('0x49')];};},Realtime[_0x357ae9('0x51')][_0x357ae9('0x56')]=function(){const _0x5808b6=this;return function(_0x196290){const _0x487872=a1091_0x5c02;if(_0x196290){freeIsNotKey(_0x196290,_0x5808b6[_0x487872('0x4a')],_0x487872('0x3f'));for(let _0x39ccdf=0x0,_0x2e6624={};_0x39ccdf<_0x196290[_0x487872('0x14')];_0x39ccdf+=0x1){_0x2e6624=_0x196290[_0x39ccdf],_[_0x487872('0x11')](_0x5808b6[_0x487872('0x4a')][_0x2e6624[_0x487872('0x3f')]])?_0x5808b6['campaigns'][_0x2e6624['name']]=new Campaign(_0x2e6624):(_0x5808b6[_0x487872('0x57')](_0x5808b6[_0x487872('0x4a')][_0x2e6624[_0x487872('0x3f')]],_0x2e6624),_0x5808b6[_0x487872('0x4a')][_0x2e6624[_0x487872('0x3f')]][_0x487872('0x5e')]=_0x2e6624['SquareProject']?_0x2e6624[_0x487872('0x24')][_0x487872('0x3f')]:undefined);}}return _0x5808b6[_0x487872('0x4a')];};},Realtime['prototype'][_0x357ae9('0x31')]=function(){const _0x3d86d4=this;return function(_0x55c642){const _0x28913a=a1091_0x5c02;if(_0x55c642){freeIsNotKey(_0x55c642,_0x3d86d4[_0x28913a('0x40')],'id');for(let _0x40c075=0x0,_0x1d19ee={};_0x40c075<_0x55c642[_0x28913a('0x14')];_0x40c075+=0x1){_0x1d19ee=_0x55c642[_0x40c075],_[_0x28913a('0x11')](_0x3d86d4[_0x28913a('0x40')][_0x1d19ee['id']])?_0x3d86d4[_0x28913a('0x40')][_0x1d19ee['id']]=new VoiceExtension(_0x1d19ee):_0x3d86d4[_0x28913a('0x57')](_0x3d86d4[_0x28913a('0x40')][_0x1d19ee['id']],_0x1d19ee);}}return _0x3d86d4[_0x28913a('0x40')];};},Realtime[_0x357ae9('0x51')][_0x357ae9('0x7')]=function(){const _0x2b2a9b=this;return function(_0x39c1bf){const _0x56ada4=a1091_0x5c02;clearCampaigns(_0x2b2a9b['campaigns']);for(let _0x1a4722=0x0;_0x1a4722<_0x39c1bf['length'];_0x1a4722+=0x1){_['merge'](_0x2b2a9b[_0x56ada4('0x4a')][_0x39c1bf[_0x1a4722][_0x56ada4('0x3f')]],_0x39c1bf[_0x1a4722]);}return _0x2b2a9b[_0x56ada4('0x4a')];};},Realtime[_0x357ae9('0x51')][_0x357ae9('0x16')]=function(){const _0x23ccef=this;return function(_0x1a92d0){const _0x229283=a1091_0x5c02;if(_0x1a92d0){freeIsNotKey(_0x1a92d0,_0x23ccef['faxAccounts'],'id');for(let _0x2e5a38=0x0,_0x112f91={};_0x2e5a38<_0x1a92d0['length'];_0x2e5a38+=0x1){_0x112f91=_0x1a92d0[_0x2e5a38],_[_0x229283('0x11')](_0x23ccef[_0x229283('0x1')][_0x112f91['id']])?_0x23ccef[_0x229283('0x1')][_0x112f91['id']]=new FaxAccount(_0x112f91):_0x23ccef['mergeFromDatabase'](_0x23ccef[_0x229283('0x1')][_0x112f91['id']],_0x112f91);}}return _0x23ccef[_0x229283('0x1')];};},module[_0x357ae9('0x4d')]=Realtime; \ No newline at end of file +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 diff --git a/server/services/ami/report/index.js b/server/services/ami/report/index.js index ea1d84f..4f6e3ea 100644 --- a/server/services/ami/report/index.js +++ b/server/services/ami/report/index.js @@ -1 +1 @@ -const a1092_0x38be=['assigned','format','sync','monitors','blindTransfer','disposition','interface','../rpc/voiceAgentReport','voiceDialReport','from-sip','from-voip-provider','xcally-motion-dialer','\x22%s\x22\x20<%s>','ANSWERED','voiceAgentReport','findAgent','prototype','length','match','accountcode','agents','originatecalleridnum','blindtransfer','voiceCallReport','type','attendedTransfer','queue','SIP/%s','exten','name','custom:voiceAgentReport','phone','../rpc/voiceTransferReport','membername','channel','../ami','callerid','custom:voiceCallReport','xcally-motion-preview','queuecallercompleteAt','destination','destinationchannel','connectedlinenum','find','../rpc/voiceRecording','lastapplication','telephones','context','create','custom:voiceQueueReport','queuecallerexit','dialer','startsWith','indexOf','substring','bind','util','queuecallerexitAt','calleridname','calleridpreview','lastIndexOf','voiceQueueReport','realtime','createdAt','isNil','calleridnum'];(function(_0x8932a2,_0x38be5a){const _0x47a9ae=function(_0x4e92fa){while(--_0x4e92fa){_0x8932a2['push'](_0x8932a2['shift']());}};_0x47a9ae(++_0x38be5a);}(a1092_0x38be,0xe9));const a1092_0x47a9=function(_0x8932a2,_0x38be5a){_0x8932a2=_0x8932a2-0x0;let _0x47a9ae=a1092_0x38be[_0x8932a2];return _0x47a9ae;};const _0x32ec15=a1092_0x47a9;'use strict';const _=require('lodash'),moment=require('moment'),util=require(_0x32ec15('0x15')),config=require('../../../config/environment'),ami=require(_0x32ec15('0x0')),RpcVoiceAgentReport=require(_0x32ec15('0x26')),RpcVoiceCallReport=require('../rpc/voiceCallReport'),RpcVoiceDialReport=require('../rpc/voiceDialReport'),RpcMemberReport=require('../rpc/memberReport'),RpcVoiceQueueReport=require('../rpc/voiceQueueReport'),RpcVoiceRecording=require(_0x32ec15('0x9')),RpcVoiceTransferReport=require(_0x32ec15('0x3f'));function Report(_0x4e92fa){const _0x31b6aa=_0x32ec15;this[_0x31b6aa('0x1b')]=_0x4e92fa,this[_0x31b6aa('0x33')]=_0x4e92fa['agents'],this[_0x31b6aa('0xb')]=_0x4e92fa[_0x31b6aa('0xb')];}Report[_0x32ec15('0x2f')][_0x32ec15('0x21')]=function(){const _0x1508c2=_0x32ec15;config['xdr']&&config['xdr']['disabled']&&(ami['on'](_0x1508c2('0xe'),this[_0x1508c2('0x1a')]['bind'](this)),ami['on'](_0x1508c2('0x2'),this[_0x1508c2('0x36')][_0x1508c2('0x14')](this)),ami['on'](_0x1508c2('0x3d'),this[_0x1508c2('0x2d')]['bind'](this)),ami['on']('custom:voiceDialReport',this[_0x1508c2('0x27')][_0x1508c2('0x14')](this)),ami['on'](_0x1508c2('0x35'),this['blindTransfer'][_0x1508c2('0x14')](this)),ami['on']('attendedtransfer',this['attendedTransfer'][_0x1508c2('0x14')](this)));},Report['prototype'][_0x32ec15('0x2e')]=function(_0x9e21bb){const _0x30caee=_0x32ec15;let _0x3c6432=undefined;_0x3c6432=_[_0x30caee('0x8')](this[_0x30caee('0x33')],function(_0x267205){const _0x44b5e8=_0x30caee;return _0x267205[_0x44b5e8('0x32')]==_0x9e21bb||_0x267205[_0x44b5e8('0x3c')]==_0x9e21bb;});if(_['isNil'](_0x3c6432)){const _0x35882d=_['find'](this['telephones'],function(_0x24276d){return _0x24276d['accountcode']==_0x9e21bb||_0x24276d['name']==_0x9e21bb;});_0x35882d&&(_0x3c6432=_[_0x30caee('0x8')](this[_0x30caee('0x33')],function(_0x2434ae){const _0x440e12=_0x30caee;return _0x2434ae[_0x440e12('0x25')]==util[_0x440e12('0x20')](_0x440e12('0x3a'),_0x35882d[_0x440e12('0x3c')]);}));}return _0x3c6432;},Report[_0x32ec15('0x2f')][_0x32ec15('0x1a')]=function(_0x1bf1d9){const _0x28639f=_0x32ec15;for(let _0x4b1788=0x0;_0x4b1788<_0x1bf1d9[_0x28639f('0x30')];_0x4b1788+=0x1){const _0x73925e=this[_0x28639f('0x2e')](_0x1bf1d9[_0x4b1788][_0x28639f('0x7')]);_0x73925e&&(_0x1bf1d9[_0x4b1788][_0x28639f('0x32')]=_0x73925e[_0x28639f('0x32')],_0x1bf1d9[_0x4b1788][_0x28639f('0x1f')]=!![],_0x1bf1d9[_0x4b1788]['lastAssignedTo']=_0x73925e['name'],_0x1bf1d9[_0x4b1788][_0x28639f('0x25')]=_[_0x28639f('0x1d')](_0x73925e[_0x28639f('0x25')])?util[_0x28639f('0x20')](_0x28639f('0x3a'),_0x73925e[_0x28639f('0x3c')]):_0x73925e[_0x28639f('0x25')],_0x1bf1d9[_0x4b1788]['queuecallercomplete']&&(_0x1bf1d9[_0x4b1788][_0x28639f('0x4')]=moment()[_0x28639f('0x20')]('YYYY-MM-DD\x20HH:mm:ss')),_0x1bf1d9[_0x4b1788][_0x28639f('0xf')]&&(_0x1bf1d9[_0x4b1788][_0x28639f('0x16')]=moment()[_0x28639f('0x20')]('YYYY-MM-DD\x20HH:mm:ss')),RpcMemberReport['voiceQueueReport'](_0x1bf1d9[_0x4b1788])),RpcVoiceQueueReport[_0x28639f('0xd')](_0x1bf1d9[_0x4b1788]);}};function extractCalleridNumber(_0x751027){const _0x5ca413=_0x32ec15,_0xd483eb=_0x751027[_0x5ca413('0x31')](/<(.*?)>/);return _0xd483eb?_0xd483eb[0x1]:_0x751027;}Report['prototype'][_0x32ec15('0x36')]=function(_0x21e995){const _0x15f2e4=_0x32ec15;_0x21e995['destination']=_0x21e995[_0x15f2e4('0x5')]||_0x21e995['exten'];if(_0x21e995[_0x15f2e4('0x37')]==_0x15f2e4('0x10')){_0x21e995[_0x15f2e4('0xa')]=_0x15f2e4('0x39'),_0x21e995['lastdata']=_0x21e995[_0x15f2e4('0x39')];if(_0x21e995[_0x15f2e4('0xc')]==_0x15f2e4('0x29'))_0x21e995[_0x15f2e4('0x32')]='',_0x21e995[_0x15f2e4('0x5')]=extractCalleridNumber(_0x21e995[_0x15f2e4('0x1')]);else _0x21e995['context']==_0x15f2e4('0x28')&&(_0x21e995[_0x15f2e4('0x5')]==_0x15f2e4('0x3')?(_0x21e995[_0x15f2e4('0x5')]=extractCalleridNumber(_0x21e995['calleridpreview']),_0x21e995[_0x15f2e4('0x1e')]=_0x21e995['originatecalleridnum'],_0x21e995[_0x15f2e4('0x6')]=[_0x21e995[_0x15f2e4('0x41')],_0x21e995[_0x15f2e4('0x41')]=_0x21e995[_0x15f2e4('0x6')]][0x0],_0x21e995[_0x15f2e4('0x1')]=_0x21e995[_0x15f2e4('0x18')]):(_0x21e995[_0x15f2e4('0x5')]=_0x21e995[_0x15f2e4('0x1e')],_0x21e995['calleridnum']=_0x21e995['originatecalleridnum'],_0x21e995[_0x15f2e4('0x24')]==_0x15f2e4('0x2c')?_0x21e995['accountcode']=_0x21e995[_0x15f2e4('0x7')]:_0x21e995[_0x15f2e4('0x32')]=''));}else _0x21e995['callerid']=util[_0x15f2e4('0x20')](_0x15f2e4('0x2b'),_0x21e995[_0x15f2e4('0x17')],_0x21e995[_0x15f2e4('0x1e')]);RpcVoiceCallReport['create'](_0x21e995);if(_0x21e995['monitor'])for(let _0x490583=0x0;_0x490583<_0x21e995['monitors']['length'];_0x490583+=0x1){_0x21e995['monitorFilename']=_0x21e995[_0x15f2e4('0x22')][_0x490583]['filename'],_0x21e995['createdAt']=_0x21e995[_0x15f2e4('0x22')][_0x490583][_0x15f2e4('0x1c')];if(_0x21e995[_0x15f2e4('0x3b')]==_0x15f2e4('0x3'))_0x21e995[_0x15f2e4('0x1e')]=_0x21e995[_0x15f2e4('0x7')],_0x21e995['calleridname']=_0x21e995['connectedlinename'],_0x21e995[_0x15f2e4('0x7')]=_0x21e995['accountcode'],_0x21e995['connectedlinename']=_0x21e995[_0x15f2e4('0x40')],_0x21e995['exten']=_0x21e995[_0x15f2e4('0x34')];else _0x21e995[_0x15f2e4('0x3b')]==_0x15f2e4('0x2a')&&(_0x21e995[_0x15f2e4('0x1e')]=_0x21e995[_0x15f2e4('0x5')],_0x21e995[_0x15f2e4('0x3b')]=_0x21e995[_0x15f2e4('0x34')]);RpcVoiceRecording[_0x15f2e4('0xd')](_0x21e995);}},Report[_0x32ec15('0x2f')][_0x32ec15('0x2d')]=function(_0x51592d){const _0x3bc775=_0x32ec15;_['isArray'](_0x51592d)?_0x51592d['forEach'](function(_0x48f18e){RpcVoiceAgentReport['create'](_0x48f18e);}):RpcVoiceAgentReport[_0x3bc775('0xd')](_0x51592d);},Report[_0x32ec15('0x2f')][_0x32ec15('0x27')]=function(_0x3ce0d5){const _0x18e04a=_0x32ec15;RpcVoiceDialReport['create'](_0x3ce0d5);let _0x359ec1=undefined;const _0x3e51d6=_0x3ce0d5[_0x18e04a('0x41')];if(_[_0x18e04a('0x11')](_0x3e51d6,'Local')){const _0x15e899=_0x3e51d6[_0x18e04a('0x13')](_0x3e51d6[_0x18e04a('0x12')]('/')+0x1,_0x3e51d6[_0x18e04a('0x12')]('@'));_0x359ec1=_[_0x18e04a('0x8')](this[_0x18e04a('0x33')],function(_0x14a602){const _0x4e87d4=_0x18e04a;return _0x14a602['mobile']==_0x15e899||_0x14a602[_0x4e87d4('0x3e')]==_0x15e899||_0x14a602[_0x4e87d4('0x32')]==_0x15e899;});}else{const _0xa7bc07=_0x3e51d6[_0x18e04a('0x13')](_0x3e51d6[_0x18e04a('0x12')]('/')+0x1,_0x3e51d6[_0x18e04a('0x19')]('-'));_0x359ec1=this[_0x18e04a('0x2e')](_0xa7bc07);}_0x359ec1&&(_0x3ce0d5['interface']=_[_0x18e04a('0x1d')](_0x359ec1['interface'])?util['format'](_0x18e04a('0x3a'),_0x359ec1[_0x18e04a('0x3c')]):_0x359ec1[_0x18e04a('0x25')],_0x3ce0d5[_0x18e04a('0x40')]=_0x359ec1[_0x18e04a('0x3c')],_0x3ce0d5['accountcode']=_0x359ec1[_0x18e04a('0x32')],RpcMemberReport[_0x18e04a('0x27')](_0x3ce0d5));},Report[_0x32ec15('0x2f')]['blindTransfer']=function(_0x3b23d6){const _0x122541=_0x32ec15;RpcVoiceTransferReport[_0x122541('0x23')](_0x3b23d6);},Report['prototype'][_0x32ec15('0x38')]=function(_0x16fab8){const _0x5eceae=_0x32ec15;RpcVoiceTransferReport[_0x5eceae('0x38')](_0x16fab8);},module['exports']=Report; \ No newline at end of file +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 diff --git a/server/services/ami/report/userReport.js b/server/services/ami/report/userReport.js index 2e875ca..55c99f0 100644 --- a/server/services/ami/report/userReport.js +++ b/server/services/ami/report/userReport.js @@ -1 +1 @@ -const a1093_0x259c=['emit','local','Local','toLowerCase','stateRegistry','indexOf','lodash','../ami','bind','devicestatechange','phone','isNotNull','actionSipShowRegistry','address','peer','syncDeviceState','inuse','format','peerstatus','device','ami','[syncRegistry][UserReport]','merge','resolve','Queue','prototype','mobile','isUndefined','toNumber','telephones','stateTime','substring','status','registry','agents','trunks','exports','telephone:save','../../../config/logger','telephone:%s','loopSyncRealTimeShow','inspect','startsWith','then','state','catch','syncRegistry','find','error','[syncPeerStatus][UserReport]','updateStatusRealtime','actionSipPeerStatus','[loopSyncRealTimeShow]','trunk:save','registryentry','moment','name','actionDeviceStateList','event','username','trunk:%s','actionid'];(function(_0x33b06f,_0x259c2e){const _0xf8b6db=function(_0x2378cc){while(--_0x2378cc){_0x33b06f['push'](_0x33b06f['shift']());}};_0xf8b6db(++_0x259c2e);}(a1093_0x259c,0x12d));const a1093_0xf8b6=function(_0x33b06f,_0x259c2e){_0x33b06f=_0x33b06f-0x0;let _0xf8b6db=a1093_0x259c[_0x33b06f];return _0xf8b6db;};const _0x4c10a7=a1093_0xf8b6;'use strict';const _=require(_0x4c10a7('0xf')),moment=require(_0x4c10a7('0x2')),util=require('util'),logger=require(_0x4c10a7('0x2f'))(_0x4c10a7('0x1d')),ami=require(_0x4c10a7('0x10')),{getSocket}=require('../../../rediscache'),io=getSocket();function UserReport(_0x2378cc){const _0x3196dc=_0x4c10a7;return this['trunks']=_0x2378cc['trunks'],this[_0x3196dc('0x2b')]=_0x2378cc['agents'],this[_0x3196dc('0x26')]=_0x2378cc['telephones'],ami['on'](_0x3196dc('0x1'),this[_0x3196dc('0x37')][_0x3196dc('0x11')](this)),ami['on'](_0x3196dc('0x2a'),this[_0x3196dc('0x37')][_0x3196dc('0x11')](this)),ami['on'](_0x3196dc('0x12'),this[_0x3196dc('0x18')][_0x3196dc('0x11')](this)),ami['on'](_0x3196dc('0x1b'),this['syncPeerStatus'][_0x3196dc('0x11')](this)),this[_0x3196dc('0x31')](),Promise[_0x3196dc('0x20')]()[_0x3196dc('0x34')](ami[_0x3196dc('0x15')]())[_0x3196dc('0x34')](ami['actionDeviceStateList']())[_0x3196dc('0x34')](ami[_0x3196dc('0x3c')]())[_0x3196dc('0x36')](loggerCatch(_0x3196dc('0x3d')));}function loggerCatch(_0x29e9ad){return function(_0xd2d58d){const _0x57bd2e=a1093_0xf8b6;logger[_0x57bd2e('0x39')](_0x29e9ad,util[_0x57bd2e('0x32')](_0xd2d58d,{'showHidden':![],'depth':null}));};}UserReport['prototype'][_0x4c10a7('0x31')]=function(){setInterval(function(){const _0x1519cd=a1093_0xf8b6;Promise[_0x1519cd('0x20')]()[_0x1519cd('0x34')](ami[_0x1519cd('0x15')]())[_0x1519cd('0x34')](ami[_0x1519cd('0x4')]())['then'](ami[_0x1519cd('0x3c')]())[_0x1519cd('0x36')](loggerCatch(_0x1519cd('0x3d')));},0x32c8);},UserReport[_0x4c10a7('0x22')][_0x4c10a7('0x14')]=function(_0x5b8edc){const _0x152632=_0x4c10a7;return _0x5b8edc!==null&&!_[_0x152632('0x24')](_0x5b8edc);},UserReport['prototype'][_0x4c10a7('0x9')]=function(_0x200af1,_0x56d489,_0x535b61){const _0x49870e=_0x4c10a7;io['to'](_0x200af1)[_0x49870e('0x9')](_0x56d489,_0x535b61);},UserReport[_0x4c10a7('0x22')]['syncRegistry']=function(_0xfaeb49){const _0x27bfdb=_0x4c10a7;try{if(this[_0x27bfdb('0x14')](_0xfaeb49)){const _0x10ee08=_['find'](this[_0x27bfdb('0x2c')],{'registry':_0xfaeb49['username']});_0x10ee08&&(_0xfaeb49[_0x27bfdb('0xd')]=_0xfaeb49[_0x27bfdb('0x35')],_[_0x27bfdb('0x1f')](_0x10ee08,_['omit'](_0xfaeb49,[_0x27bfdb('0x5'),_0x27bfdb('0x8'),_0x27bfdb('0x6'),_0x27bfdb('0x35')])),this[_0x27bfdb('0x9')](util[_0x27bfdb('0x1a')]('trunk:%s',_0x10ee08[_0x27bfdb('0x3')]),_0x27bfdb('0x0'),_0x10ee08));}}catch(_0x8ff625){logger[_0x27bfdb('0x39')](_0x27bfdb('0x1e'),util[_0x27bfdb('0x32')](_0x8ff625,{'showHidden':![],'depth':null}));}},UserReport[_0x4c10a7('0x22')][_0x4c10a7('0x18')]=function(_0x5c1837){const _0x9fce0b=_0x4c10a7;try{if(this['isNotNull'](_0x5c1837)){if(this[_0x9fce0b('0x2b')][_0x5c1837[_0x9fce0b('0x1c')]])(!this[_0x9fce0b('0x2b')][_0x5c1837[_0x9fce0b('0x1c')]][_0x9fce0b('0xa')]||_0x5c1837[_0x9fce0b('0x35')][_0x9fce0b('0xc')]()==_0x9fce0b('0x19'))&&(this['agents'][_0x5c1837[_0x9fce0b('0x1c')]][_0x9fce0b('0xa')]=![],this[_0x9fce0b('0x2b')][_0x5c1837['device']][_0x9fce0b('0x35')]!==_0x5c1837['state'][_0x9fce0b('0xc')]()&&(this[_0x9fce0b('0x2b')][_0x5c1837['device']][_0x9fce0b('0x27')]=_[_0x9fce0b('0x25')](moment()['format']('x'))),this[_0x9fce0b('0x2b')][_0x5c1837[_0x9fce0b('0x1c')]][_0x9fce0b('0x35')]=_0x5c1837[_0x9fce0b('0x35')][_0x9fce0b('0xc')](),this[_0x9fce0b('0x2b')][_0x5c1837[_0x9fce0b('0x1c')]][_0x9fce0b('0x3b')](_0x5c1837));else{if(this[_0x9fce0b('0x26')][_0x5c1837[_0x9fce0b('0x1c')]])this['telephones'][_0x5c1837['device']][_0x9fce0b('0x35')]!==_0x5c1837[_0x9fce0b('0x35')][_0x9fce0b('0xc')]()&&(this[_0x9fce0b('0x26')][_0x5c1837['device']][_0x9fce0b('0x27')]=_[_0x9fce0b('0x25')](moment()['format']('x'))),this['telephones'][_0x5c1837[_0x9fce0b('0x1c')]]['state']=_0x5c1837[_0x9fce0b('0x35')][_0x9fce0b('0xc')](),this['emit'](util[_0x9fce0b('0x1a')](_0x9fce0b('0x30'),this[_0x9fce0b('0x26')][_0x5c1837[_0x9fce0b('0x1c')]][_0x9fce0b('0x3')]),_0x9fce0b('0x2e'),this[_0x9fce0b('0x26')][_0x5c1837[_0x9fce0b('0x1c')]]);else{if(this[_0x9fce0b('0x2c')][_0x5c1837[_0x9fce0b('0x1c')]])this[_0x9fce0b('0x2c')][_0x5c1837[_0x9fce0b('0x1c')]][_0x9fce0b('0x35')]!==_0x5c1837['state'][_0x9fce0b('0xc')]()&&(this[_0x9fce0b('0x2c')][_0x5c1837['device']][_0x9fce0b('0x27')]=_[_0x9fce0b('0x25')](moment()['format']('x'))),this[_0x9fce0b('0x2c')][_0x5c1837[_0x9fce0b('0x1c')]][_0x9fce0b('0x35')]=_0x5c1837[_0x9fce0b('0x35')]['toLowerCase'](),this[_0x9fce0b('0x9')](util[_0x9fce0b('0x1a')](_0x9fce0b('0x7'),this['trunks'][_0x5c1837['device']][_0x9fce0b('0x3')]),_0x9fce0b('0x0'),this['trunks'][_0x5c1837[_0x9fce0b('0x1c')]]);else{if(_['startsWith'](_0x5c1837['device'],_0x9fce0b('0x21'))){}else{if(_[_0x9fce0b('0x33')](_0x5c1837[_0x9fce0b('0x1c')],_0x9fce0b('0xb'))){const _0x6b827b=_0x5c1837[_0x9fce0b('0x1c')],_0x2d7776=_0x6b827b[_0x9fce0b('0x28')](_0x6b827b[_0x9fce0b('0xe')]('/')+0x1,_0x6b827b[_0x9fce0b('0xe')]('@')),_0x6c4062=_[_0x9fce0b('0x38')](this[_0x9fce0b('0x2b')],function(_0xc3e25b){const _0x2d31c5=_0x9fce0b;return _0xc3e25b[_0x2d31c5('0x23')]==_0x2d7776||_0xc3e25b[_0x2d31c5('0x13')]==_0x2d7776||_0xc3e25b['accountcode']==_0x2d7776;});_0x6c4062&&(_0x6c4062[_0x9fce0b('0x35')]!==_0x5c1837[_0x9fce0b('0x35')][_0x9fce0b('0xc')]()&&(_0x6c4062[_0x9fce0b('0x27')]=_[_0x9fce0b('0x25')](moment()[_0x9fce0b('0x1a')]('x'))),_0x6c4062[_0x9fce0b('0x35')]=_0x5c1837['state'][_0x9fce0b('0xc')](),_0x6c4062[_0x9fce0b('0xa')]=!![],_0x6c4062[_0x9fce0b('0x3b')](_0x5c1837));}else{}}}}}}}catch(_0x4c7192){logger[_0x9fce0b('0x39')]('[syncDeviceState][UserReport]',util[_0x9fce0b('0x32')](_0x4c7192,{'showHidden':![],'depth':null}));}},UserReport['prototype']['syncPeerStatus']=function(_0x21cdf3){const _0x4df33d=_0x4c10a7;try{if(this[_0x4df33d('0x14')](_0x21cdf3)&&this[_0x4df33d('0x14')](_0x21cdf3[_0x4df33d('0x1b')])){if(this[_0x4df33d('0x2b')][_0x21cdf3['peer']])(!this[_0x4df33d('0x2b')][_0x21cdf3['peer']][_0x4df33d('0xa')]||_0x21cdf3[_0x4df33d('0x1b')]['toLowerCase']()=='registered')&&(this[_0x4df33d('0x2b')][_0x21cdf3[_0x4df33d('0x17')]][_0x4df33d('0xa')]=![],this[_0x4df33d('0x2b')][_0x21cdf3[_0x4df33d('0x17')]][_0x4df33d('0x29')]=_0x21cdf3[_0x4df33d('0x1b')]['toLowerCase'](),this[_0x4df33d('0x2b')][_0x21cdf3[_0x4df33d('0x17')]][_0x4df33d('0x16')]=_0x21cdf3[_0x4df33d('0x16')],this[_0x4df33d('0x2b')][_0x21cdf3[_0x4df33d('0x17')]][_0x4df33d('0x3b')](_0x21cdf3));else{if(this[_0x4df33d('0x26')][_0x21cdf3[_0x4df33d('0x17')]])this[_0x4df33d('0x26')][_0x21cdf3[_0x4df33d('0x17')]][_0x4df33d('0x29')]=_0x21cdf3[_0x4df33d('0x1b')][_0x4df33d('0xc')](),this[_0x4df33d('0x26')][_0x21cdf3['peer']]['address']=_0x21cdf3[_0x4df33d('0x16')],this[_0x4df33d('0x9')](util['format'](_0x4df33d('0x30'),this['telephones'][_0x21cdf3[_0x4df33d('0x17')]][_0x4df33d('0x3')]),_0x4df33d('0x2e'),this[_0x4df33d('0x26')][_0x21cdf3[_0x4df33d('0x17')]]);else{if(this[_0x4df33d('0x2c')][_0x21cdf3[_0x4df33d('0x17')]])this['trunks'][_0x21cdf3[_0x4df33d('0x17')]][_0x4df33d('0x29')]=_0x21cdf3[_0x4df33d('0x1b')][_0x4df33d('0xc')](),this['trunks'][_0x21cdf3['peer']][_0x4df33d('0x16')]=_0x21cdf3['address'],this['emit'](util[_0x4df33d('0x1a')]('trunk:%s',this[_0x4df33d('0x2c')][_0x21cdf3['peer']][_0x4df33d('0x3')]),_0x4df33d('0x0'),this[_0x4df33d('0x2c')][_0x21cdf3['peer']]);else{}}}}}catch(_0x31b189){logger[_0x4df33d('0x39')](_0x4df33d('0x3a'),util[_0x4df33d('0x32')](_0x31b189,{'showHidden':![],'depth':null}));}},module[_0x4c10a7('0x2d')]=UserReport; \ No newline at end of file +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 diff --git a/server/services/ami/report/voiceAgentReport.js b/server/services/ami/report/voiceAgentReport.js index 4b47382..00277f5 100644 --- a/server/services/ami/report/voiceAgentReport.js +++ b/server/services/ami/report/voiceAgentReport.js @@ -1 +1 @@ -const a1094_0x36ed=['complete','memberpenalty','rtpaudioqosrttbridged','rtpaudioqosjitterbridged','event','addVariable','blindtransfer','custom:agentringnoanswer','emit','../../../config/logger','variable','custom:agentqueuecallerabandon','rejected','[syncAgentCalled][VoiceAgentReport]','channel','secondtransfereruniqueid','includes','attendedtransfer','lastIndexOf','omit','error','[syncMusicOnHoldStart][VoiceAgentReport]','sipcallid','rtpaudioqos','rtpaudioqosjitter','agentringnoanswerAt','acwTimeout','user:%s','bind','connectedlinename','queuecallerabandon','syncHangup','rtpaudioqoslossbridged','agentringnoanswer','musiconholdstop','privilege','syncBlindTransfer','syncAgentConnect','agentconnect','inspect','interface','rtpaudioqosrtt','reason','bridgepvtcallid','variables','syncAttendedTransfer','inbound','moment','voiceQueues','isNotNull','hangup','merge','custom:agentansweredelsewhere','user:agentconnect','format','musiconholdstart','util','custom:agentconnect','destuniqueid','[syncHangup][VoiceAgentReport]','../../../rediscache','prototype','isUndefined','agentacw','memberrealtime','syncMusicOnHoldStop','transfer','diff','channels','agent','holdtime','varset','uniqueid','lastevent','agents','[syncVarSet][VoiceAgentReport]','destconnectedlinenum','acw','called','queue','keys','YYYY-MM-DD\x20HH:mm:ss','../ami','seconds','abandoned','answered_elsewhere','user:agentcomplete','talktime','syncVarSet','connectedlinenum','[syncMusicOnHoldStop][VoiceAgentReport]','agentcomplete','memberdynamic','custom:agentcalled','syncMusicOnHoldStart','agentcompleteAt','undefined','[syncAgentConnect][VoiceAgentReport]','syncAgentComplete','lodash','syncAgentRingNoAnswer','destchannelstate','user:called','syncAgentCalled','destchannelstatedesc','agentconnectAt','acwtime','connect','exports','values','memberinterface','value','transfereeuniqueid','memberlastcall','[syncAgentRingNoAnswer][VoiceAgentReport]','pick','agentcalled','membername','syncQueueCallerAbandon'];(function(_0x47f29c,_0x36ed29){const _0x358e98=function(_0x142513){while(--_0x142513){_0x47f29c['push'](_0x47f29c['shift']());}};_0x358e98(++_0x36ed29);}(a1094_0x36ed,0x144));const a1094_0x358e=function(_0x47f29c,_0x36ed29){_0x47f29c=_0x47f29c-0x0;let _0x358e98=a1094_0x36ed[_0x47f29c];return _0x358e98;};const _0x118cdf=a1094_0x358e;'use strict';const _=require(_0x118cdf('0xd')),moment=require(_0x118cdf('0x50')),util=require(_0x118cdf('0x59')),logger=require(_0x118cdf('0x2a'))('ami'),ami=require(_0x118cdf('0x73')),{getSocket}=require(_0x118cdf('0x5d')),io=getSocket();function VoiceAgentReport(_0x142513){const _0x460f13=_0x118cdf;this[_0x460f13('0x65')]={},this[_0x460f13('0x51')]=_0x142513[_0x460f13('0x51')],this[_0x460f13('0x6b')]=_0x142513[_0x460f13('0x6b')],this[_0x460f13('0x4d')]={},ami['on'](_0x460f13('0x1e'),this[_0x460f13('0x11')][_0x460f13('0x3d')](this)),ami['on'](_0x460f13('0x47'),this[_0x460f13('0x46')][_0x460f13('0x3d')](this)),ami['on']('agentringnoanswer',this['syncAgentRingNoAnswer'][_0x460f13('0x3d')](this)),ami['on'](_0x460f13('0x3f'),this[_0x460f13('0x20')][_0x460f13('0x3d')](this)),ami['on'](_0x460f13('0x5'),this['syncAgentComplete'][_0x460f13('0x3d')](this)),ami['on'](_0x460f13('0x68'),this[_0x460f13('0x2')]['bind'](this)),ami['on'](_0x460f13('0x53'),this[_0x460f13('0x40')][_0x460f13('0x3d')](this)),ami['on'](_0x460f13('0x58'),this[_0x460f13('0x8')][_0x460f13('0x3d')](this)),ami['on'](_0x460f13('0x43'),this[_0x460f13('0x62')][_0x460f13('0x3d')](this)),ami['on'](_0x460f13('0x32'),this[_0x460f13('0x4e')][_0x460f13('0x3d')](this)),ami['on'](_0x460f13('0x27'),this[_0x460f13('0x45')]['bind'](this));}VoiceAgentReport[_0x118cdf('0x5e')]['emit']=function(_0x150c7e,_0x31d22c,_0x485667){const _0x15e2c8=_0x118cdf;io['to'](_0x150c7e)[_0x15e2c8('0x29')](_0x31d22c,_0x485667);},VoiceAgentReport[_0x118cdf('0x5e')]['isNotNull']=function(_0x18da46){const _0x5ef5b7=_0x118cdf;return _0x18da46!==null&&!_[_0x5ef5b7('0x5f')](_0x18da46);},VoiceAgentReport['prototype'][_0x118cdf('0x11')]=function(_0x92a842){const _0x2242ab=_0x118cdf;try{this[_0x2242ab('0x52')](_0x92a842)&&(_[_0x2242ab('0x5f')](this[_0x2242ab('0x65')][_0x92a842[_0x2242ab('0x69')]])&&(this[_0x2242ab('0x65')][_0x92a842[_0x2242ab('0x69')]]={}),_[_0x2242ab('0x5f')](this['channels'][_0x92a842[_0x2242ab('0x69')]][_0x92a842[_0x2242ab('0x5b')]])&&(this[_0x2242ab('0x65')][_0x92a842[_0x2242ab('0x69')]][_0x92a842[_0x2242ab('0x5b')]]={'agentcalledAt':moment()['format'](_0x2242ab('0x72')),'lastevent':_0x2242ab('0x6f'),'variables':this[_0x2242ab('0x4d')][_0x92a842[_0x2242ab('0x69')]],'type':this['voiceQueues'][_0x92a842[_0x2242ab('0x70')]]?this[_0x2242ab('0x51')][_0x92a842[_0x2242ab('0x70')]]['type']||_0x2242ab('0x4f'):_0x2242ab('0x4f')}),_[_0x2242ab('0x54')](this[_0x2242ab('0x65')][_0x92a842[_0x2242ab('0x69')]][_0x92a842['destuniqueid']],_[_0x2242ab('0x34')](_0x92a842,[_0x2242ab('0x25'),_0x2242ab('0x44')])),ami[_0x2242ab('0x29')](_0x2242ab('0x7'),this[_0x2242ab('0x65')][_0x92a842[_0x2242ab('0x69')]][_0x92a842[_0x2242ab('0x5b')]]),this['emit'](util[_0x2242ab('0x57')](_0x2242ab('0x3c'),_0x92a842[_0x2242ab('0x1f')]),_0x2242ab('0x10'),this['channels'][_0x92a842['uniqueid']][_0x92a842[_0x2242ab('0x5b')]]));}catch(_0x529eeb){logger[_0x2242ab('0x35')](_0x2242ab('0x2e'),util[_0x2242ab('0x48')](_0x529eeb,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x118cdf('0x5e')]['syncAgentConnect']=function(_0x39aab6){const _0x253609=_0x118cdf;try{if(this[_0x253609('0x52')](_0x39aab6)){if(this[_0x253609('0x65')][_0x39aab6[_0x253609('0x69')]])for(const _0x428c2f in this[_0x253609('0x65')][_0x39aab6['uniqueid']]){if(typeof this['channels'][_0x39aab6[_0x253609('0x69')]][_0x428c2f]!==_0x253609('0xa')){if(_0x39aab6[_0x253609('0x5b')]===_0x428c2f)this[_0x253609('0x65')][_0x39aab6[_0x253609('0x69')]][_0x428c2f][_0x253609('0x13')]=moment()[_0x253609('0x57')](_0x253609('0x72')),this[_0x253609('0x65')][_0x39aab6[_0x253609('0x69')]][_0x428c2f][_0x253609('0x6a')]=_0x253609('0x15'),this[_0x253609('0x65')][_0x39aab6[_0x253609('0x69')]][_0x428c2f][_0x253609('0x67')]=_0x39aab6[_0x253609('0x67')],this[_0x253609('0x65')][_0x39aab6[_0x253609('0x69')]][_0x428c2f][_0x253609('0x3')]=_0x39aab6['connectedlinenum'],this[_0x253609('0x65')][_0x39aab6['uniqueid']][_0x428c2f][_0x253609('0x3e')]=_0x39aab6['connectedlinename'],this['channels'][_0x39aab6[_0x253609('0x69')]][_0x428c2f]['destchannelstate']=_0x39aab6[_0x253609('0xf')],this['channels'][_0x39aab6[_0x253609('0x69')]][_0x428c2f][_0x253609('0x12')]=_0x39aab6[_0x253609('0x12')],_[_0x253609('0x54')](this['agents'][_0x39aab6[_0x253609('0x49')]],_[_0x253609('0x1d')](_0x39aab6,['queue',_0x253609('0x6d')])),this[_0x253609('0x29')](util['format'](_0x253609('0x3c'),_0x39aab6[_0x253609('0x1f')]),_0x253609('0x56'),this[_0x253609('0x65')][_0x39aab6[_0x253609('0x69')]][_0x39aab6[_0x253609('0x5b')]]),ami[_0x253609('0x29')](_0x253609('0x5a'),this[_0x253609('0x65')][_0x39aab6[_0x253609('0x69')]][_0x428c2f]);else!this['channels'][_0x39aab6[_0x253609('0x69')]][_0x428c2f][_0x253609('0x42')]&&!this[_0x253609('0x65')][_0x39aab6['uniqueid']][_0x428c2f][_0x253609('0x5')]&&(this['channels'][_0x39aab6['uniqueid']][_0x428c2f][_0x253609('0x42')]=!![],this['channels'][_0x39aab6[_0x253609('0x69')]][_0x428c2f]['agentringnoanswerAt']=moment()[_0x253609('0x57')]('YYYY-MM-DD\x20HH:mm:ss'),this['channels'][_0x39aab6[_0x253609('0x69')]][_0x428c2f][_0x253609('0x4b')]=_0x253609('0x76'),this['channels'][_0x39aab6[_0x253609('0x69')]][_0x428c2f][_0x253609('0x6a')]=_0x253609('0x76'),this[_0x253609('0x65')][_0x39aab6[_0x253609('0x69')]][_0x428c2f]['answeredelsewheredestinationuniqueid']=_0x39aab6[_0x253609('0x5b')],this['channels'][_0x39aab6['uniqueid']][_0x428c2f]['answeredelsewheremembername']=_0x39aab6['membername'],ami[_0x253609('0x29')](_0x253609('0x55'),this[_0x253609('0x65')][_0x39aab6['uniqueid']][_0x428c2f]));}}}}catch(_0x47e457){logger[_0x253609('0x35')](_0x253609('0xb'),util[_0x253609('0x48')](_0x47e457,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x118cdf('0x5e')][_0x118cdf('0xe')]=function(_0x5ca071){const _0x3446a2=_0x118cdf;try{this[_0x3446a2('0x52')](_0x5ca071)&&(this['channels'][_0x5ca071['uniqueid']]&&this['channels'][_0x5ca071[_0x3446a2('0x69')]][_0x5ca071[_0x3446a2('0x5b')]]&&(this[_0x3446a2('0x65')][_0x5ca071[_0x3446a2('0x69')]][_0x5ca071[_0x3446a2('0x5b')]]['agentringnoanswer']=!![],this[_0x3446a2('0x65')][_0x5ca071[_0x3446a2('0x69')]][_0x5ca071[_0x3446a2('0x5b')]][_0x3446a2('0x3a')]=moment()[_0x3446a2('0x57')]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x3446a2('0x65')][_0x5ca071[_0x3446a2('0x69')]][_0x5ca071['destuniqueid']][_0x3446a2('0x4b')]='rejected',this['channels'][_0x5ca071[_0x3446a2('0x69')]][_0x5ca071[_0x3446a2('0x5b')]][_0x3446a2('0x6a')]=_0x3446a2('0x2d'),ami['emit'](_0x3446a2('0x28'),this[_0x3446a2('0x65')][_0x5ca071['uniqueid']][_0x5ca071[_0x3446a2('0x5b')]])));}catch(_0x2ba5af){logger[_0x3446a2('0x35')](_0x3446a2('0x1c'),util[_0x3446a2('0x48')](_0x2ba5af,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x118cdf('0x5e')][_0x118cdf('0x20')]=function(_0x4bf977){const _0x34b956=_0x118cdf;try{if(this[_0x34b956('0x52')](_0x4bf977)){if(this[_0x34b956('0x65')][_0x4bf977[_0x34b956('0x69')]])for(const _0x2358ed in this[_0x34b956('0x65')][_0x4bf977[_0x34b956('0x69')]]){typeof this['channels'][_0x4bf977[_0x34b956('0x69')]][_0x2358ed]!==_0x34b956('0xa')&&!this[_0x34b956('0x65')][_0x4bf977['uniqueid']][_0x2358ed][_0x34b956('0x42')]&&!this['channels'][_0x4bf977['uniqueid']][_0x2358ed][_0x34b956('0x5')]&&(this[_0x34b956('0x65')][_0x4bf977[_0x34b956('0x69')]][_0x2358ed][_0x34b956('0x42')]=!![],this['channels'][_0x4bf977[_0x34b956('0x69')]][_0x2358ed][_0x34b956('0x3a')]=moment()[_0x34b956('0x57')](_0x34b956('0x72')),this['channels'][_0x4bf977[_0x34b956('0x69')]][_0x2358ed][_0x34b956('0x4b')]=_0x34b956('0x75'),this[_0x34b956('0x65')][_0x4bf977[_0x34b956('0x69')]][_0x2358ed][_0x34b956('0x6a')]=_0x34b956('0x75'),ami[_0x34b956('0x29')](_0x34b956('0x2c'),this[_0x34b956('0x65')][_0x4bf977['uniqueid']][_0x2358ed]));}}}catch(_0x2a0dec){logger[_0x34b956('0x35')]('[syncQueueCallerAbandon][VoiceAgentReport]',util['inspect'](_0x2a0dec,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x118cdf('0x5e')][_0x118cdf('0xc')]=function(_0x507333){const _0x2a544b=_0x118cdf;try{if(this[_0x2a544b('0x52')](_0x507333)){if(this['channels'][_0x507333[_0x2a544b('0x69')]])for(const _0x2f1001 in this[_0x2a544b('0x65')][_0x507333[_0x2a544b('0x69')]]){typeof this[_0x2a544b('0x65')][_0x507333[_0x2a544b('0x69')]][_0x2f1001]!==_0x2a544b('0xa')&&(this[_0x2a544b('0x65')][_0x507333[_0x2a544b('0x69')]][_0x2f1001]['agentconnectAt']&&!this['channels'][_0x507333[_0x2a544b('0x69')]][_0x2f1001]['agentcomplete']&&(this['channels'][_0x507333['uniqueid']][_0x2f1001][_0x2a544b('0x5')]=!![],this[_0x2a544b('0x65')][_0x507333[_0x2a544b('0x69')]][_0x2f1001][_0x2a544b('0x9')]=moment()[_0x2a544b('0x57')](_0x2a544b('0x72')),this['channels'][_0x507333[_0x2a544b('0x69')]][_0x2f1001][_0x2a544b('0x6a')]=_0x2a544b('0x21'),this[_0x2a544b('0x65')][_0x507333[_0x2a544b('0x69')]][_0x2f1001][_0x2a544b('0x1')]=_0x507333[_0x2a544b('0x1')],this[_0x2a544b('0x65')][_0x507333['uniqueid']][_0x2f1001][_0x2a544b('0x4b')]=_0x507333[_0x2a544b('0x4b')]=='transfer'?_0x2a544b('0x66'):_0x507333[_0x2a544b('0x4b')],this[_0x2a544b('0x51')][_0x507333['queue']]&&this['voiceQueues'][_0x507333[_0x2a544b('0x70')]][_0x2a544b('0x6e')]&&(this[_0x2a544b('0x65')][_0x507333[_0x2a544b('0x69')]][_0x2f1001][_0x2a544b('0x60')]=!![],this[_0x2a544b('0x65')][_0x507333[_0x2a544b('0x69')]][_0x2f1001][_0x2a544b('0x14')]=this[_0x2a544b('0x51')][_0x507333['queue']][_0x2a544b('0x3b')]),this[_0x2a544b('0x6b')][_0x507333['interface']]=_[_0x2a544b('0x34')](this[_0x2a544b('0x6b')][_0x507333[_0x2a544b('0x49')]],['queue',_0x2a544b('0x6d')]),this['emit'](util[_0x2a544b('0x57')](_0x2a544b('0x3c'),_0x507333[_0x2a544b('0x1f')]),_0x2a544b('0x0'),this['channels'][_0x507333[_0x2a544b('0x69')]][_0x2f1001]),ami['emit']('custom:agentcomplete',this[_0x2a544b('0x65')][_0x507333[_0x2a544b('0x69')]][_0x2f1001])));}}}catch(_0x2d9105){logger[_0x2a544b('0x35')]('[syncAgentComplete][VoiceAgentReport]',util['inspect'](_0x2d9105,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x118cdf('0x5e')][_0x118cdf('0x2')]=function(_0x40850){const _0x4a3a6c=_0x118cdf;try{if(this[_0x4a3a6c('0x52')](_0x40850)){this[_0x4a3a6c('0x26')](_0x40850[_0x4a3a6c('0x69')],_[_0x4a3a6c('0x71')](_0x40850[_0x4a3a6c('0x2b')])[0x0],_0x40850[_0x4a3a6c('0x19')]);if(this[_0x4a3a6c('0x65')][_0x40850['uniqueid']])for(const _0x33fb0b in this[_0x4a3a6c('0x65')][_0x40850[_0x4a3a6c('0x69')]]){typeof this[_0x4a3a6c('0x65')][_0x40850[_0x4a3a6c('0x69')]][_0x33fb0b]!==_0x4a3a6c('0xa')&&(_[_0x4a3a6c('0x5f')](this['channels'][_0x40850['uniqueid']][_0x33fb0b][_0x4a3a6c('0x4d')])&&(this['channels'][_0x40850[_0x4a3a6c('0x69')]][_0x33fb0b][_0x4a3a6c('0x4d')]={}),this[_0x4a3a6c('0x65')][_0x40850[_0x4a3a6c('0x69')]][_0x33fb0b][_0x4a3a6c('0x4d')]=this['variables'][_0x40850[_0x4a3a6c('0x69')]]);}}}catch(_0x21da7d){logger[_0x4a3a6c('0x35')](_0x4a3a6c('0x6c'),util['inspect'](_0x21da7d,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x118cdf('0x5e')][_0x118cdf('0x26')]=function(_0x34e0fa,_0xc71349,_0x2d7f08){const _0x4c36ba=_0x118cdf,_0x391c5b=[_0x4c36ba('0x38'),'rtpaudioqosbridged',_0x4c36ba('0x39'),_0x4c36ba('0x24'),'rtpaudioqosloss',_0x4c36ba('0x41'),_0x4c36ba('0x4a'),_0x4c36ba('0x23'),_0x4c36ba('0x37'),'sipuri','bridgepeer',_0x4c36ba('0x4c'),'membercalls',_0x4c36ba('0x6'),_0x4c36ba('0x18'),_0x4c36ba('0x1b'),'membername',_0x4c36ba('0x22'),_0x4c36ba('0x61')];!_['isNil'](_0xc71349)&&!_[_0x4c36ba('0x31')](_0x391c5b,_0xc71349)&&(_[_0x4c36ba('0x5f')](this[_0x4c36ba('0x4d')][_0x34e0fa])&&(this[_0x4c36ba('0x4d')][_0x34e0fa]={}),this[_0x4c36ba('0x4d')][_0x34e0fa][_0xc71349]=_0x2d7f08);},VoiceAgentReport[_0x118cdf('0x5e')][_0x118cdf('0x40')]=function(_0x5f3869){const _0x476fcf=_0x118cdf;try{if(this[_0x476fcf('0x52')](_0x5f3869)){if(this[_0x476fcf('0x65')][_0x5f3869[_0x476fcf('0x69')]]){for(const _0x299156 in this[_0x476fcf('0x65')][_0x5f3869['uniqueid']]){typeof this[_0x476fcf('0x65')][_0x5f3869['uniqueid']][_0x299156]!==_0x476fcf('0xa')&&(this['channels'][_0x5f3869[_0x476fcf('0x69')]][_0x299156][_0x476fcf('0x4b')]==_0x476fcf('0x63')&&this[_0x476fcf('0x65')][_0x5f3869[_0x476fcf('0x69')]][_0x299156][_0x476fcf('0x5')]&&(this['channels'][_0x5f3869[_0x476fcf('0x69')]][_0x299156]['agentcompleteAt']=moment()[_0x476fcf('0x57')](_0x476fcf('0x72'))));}ami[_0x476fcf('0x29')]('custom:voiceAgentReport',_[_0x476fcf('0x17')](this[_0x476fcf('0x65')][_0x5f3869[_0x476fcf('0x69')]])),delete this[_0x476fcf('0x65')][_0x5f3869[_0x476fcf('0x69')]];}this[_0x476fcf('0x4d')][_0x5f3869[_0x476fcf('0x69')]]&&delete this[_0x476fcf('0x4d')][_0x5f3869[_0x476fcf('0x69')]];}}catch(_0xd58ff4){logger[_0x476fcf('0x35')](_0x476fcf('0x5c'),util[_0x476fcf('0x48')](_0xd58ff4,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x118cdf('0x5e')][_0x118cdf('0x4e')]=function(_0xf9f323){const _0x304e90=_0x118cdf;try{if(this[_0x304e90('0x52')](_0xf9f323)){if(this[_0x304e90('0x65')][_0xf9f323[_0x304e90('0x1a')]])for(const _0x3993d5 in this[_0x304e90('0x65')][_0xf9f323[_0x304e90('0x1a')]]){if(typeof this['channels'][_0xf9f323['transfereeuniqueid']][_0x3993d5]!==_0x304e90('0xa')){if(_0xf9f323['origtransfereruniqueid']===_0x3993d5){const _0x1df272=moment();this[_0x304e90('0x65')][_0xf9f323['transfereeuniqueid']][_0x3993d5][_0x304e90('0x5')]=!![],this[_0x304e90('0x65')][_0xf9f323[_0x304e90('0x1a')]][_0x3993d5][_0x304e90('0x9')]=moment()[_0x304e90('0x57')]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x304e90('0x65')][_0xf9f323[_0x304e90('0x1a')]][_0x3993d5]['reason']=_0x304e90('0x63'),this[_0x304e90('0x65')][_0xf9f323['transfereeuniqueid']][_0x3993d5][_0x304e90('0x6a')]=_0x304e90('0x21'),this[_0x304e90('0x65')][_0xf9f323['transfereeuniqueid']][_0x3993d5][_0x304e90('0x1')]=_0x1df272[_0x304e90('0x64')](this[_0x304e90('0x65')][_0xf9f323[_0x304e90('0x1a')]][_0x3993d5]['agentconnectAt'],_0x304e90('0x74'));}}}if(this['channels'][_0xf9f323[_0x304e90('0x30')]]){const _0x2e6bff=this['channels'][_0xf9f323[_0x304e90('0x30')]];this[_0x304e90('0x65')][_0xf9f323[_0x304e90('0x30')]]=this[_0x304e90('0x65')][_0xf9f323[_0x304e90('0x1a')]],this[_0x304e90('0x65')][_0xf9f323[_0x304e90('0x1a')]]=_0x2e6bff;}}}catch(_0x4caf5a){logger[_0x304e90('0x35')]('[syncAttendedTransfer][VoiceAgentReport]',util[_0x304e90('0x48')](_0x4caf5a,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x118cdf('0x5e')][_0x118cdf('0x45')]=function(_0x500ab4){const _0x5627ff=_0x118cdf;try{if(this[_0x5627ff('0x52')](_0x500ab4)){if(this[_0x5627ff('0x65')][_0x500ab4[_0x5627ff('0x1a')]])for(const _0x46be29 in this[_0x5627ff('0x65')][_0x500ab4[_0x5627ff('0x1a')]]){if(typeof this[_0x5627ff('0x65')][_0x500ab4[_0x5627ff('0x1a')]][_0x46be29]!==_0x5627ff('0xa')){if(_0x500ab4['transfereruniqueid']===_0x46be29){const _0x45fdff=moment();this[_0x5627ff('0x65')][_0x500ab4['transfereeuniqueid']][_0x46be29][_0x5627ff('0x5')]=!![],this['channels'][_0x500ab4[_0x5627ff('0x1a')]][_0x46be29][_0x5627ff('0x9')]=_0x45fdff,this[_0x5627ff('0x65')][_0x500ab4[_0x5627ff('0x1a')]][_0x46be29]['reason']='transfer',this['channels'][_0x500ab4[_0x5627ff('0x1a')]][_0x46be29]['lastevent']=_0x5627ff('0x21'),this[_0x5627ff('0x65')][_0x500ab4['transfereeuniqueid']][_0x46be29][_0x5627ff('0x1')]=_0x45fdff[_0x5627ff('0x64')](this[_0x5627ff('0x65')][_0x500ab4[_0x5627ff('0x1a')]][_0x46be29][_0x5627ff('0x13')],_0x5627ff('0x74'));}}}}}catch(_0x235481){logger['error']('[syncBlindTransfer][VoiceAgentReport]',util['inspect'](_0x235481,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x118cdf('0x5e')][_0x118cdf('0x8')]=function(_0x202a24){const _0x5e5496=_0x118cdf;let _0x132562='';try{this['isNotNull'](_0x202a24)&&(_0x202a24[_0x5e5496('0x2f')]&&(_0x132562=_0x202a24[_0x5e5496('0x2f')]['substring'](0x0,_0x202a24[_0x5e5496('0x2f')][_0x5e5496('0x33')]('-')),this[_0x5e5496('0x6b')][_0x132562]&&(this['agents'][_0x132562]['onhold']=!![])));}catch(_0x2220f4){logger['error'](_0x5e5496('0x36'),util[_0x5e5496('0x48')](_0x2220f4,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x118cdf('0x5e')][_0x118cdf('0x62')]=function(_0x3729c7){const _0x2f1903=_0x118cdf;let _0x2b7499='';try{this[_0x2f1903('0x52')](_0x3729c7)&&(_0x3729c7[_0x2f1903('0x2f')]&&(_0x2b7499=_0x3729c7[_0x2f1903('0x2f')]['substring'](0x0,_0x3729c7[_0x2f1903('0x2f')][_0x2f1903('0x33')]('-')),this[_0x2f1903('0x6b')][_0x2b7499]&&(this[_0x2f1903('0x6b')][_0x2b7499]['onhold']=![])));}catch(_0x1cabb1){logger[_0x2f1903('0x35')](_0x2f1903('0x4'),util[_0x2f1903('0x48')](_0x1cabb1,{'showHidden':![],'depth':null}));}},module[_0x118cdf('0x16')]=VoiceAgentReport; \ No newline at end of file +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 diff --git a/server/services/ami/report/voiceCallReport.js b/server/services/ami/report/voiceCallReport.js index e853223..6ea6153 100644 --- a/server/services/ami/report/voiceCallReport.js +++ b/server/services/ami/report/voiceCallReport.js @@ -1 +1 @@ -const a1095_0x14b2=['lastdata','endsWith','destconnectedlinenum','applicationdata','context','originatecalleridnum','prototype','dial','mohstarttime','voicemail','monitors','omit','custom:voiceCallReport','transfereecalleridnum','ami','agents','starttime','callerid','merge','syncMusicOnHoldStop','isUndefined','NO\x20ANSWER','musiconholdstart','monitorFilename','isNotNull','find','destinationchannel','secondtransfereruniqueid','extension','transfertargetuniqueid','diff','mohtime','destination','syncAttendedTransfer','format','xmcs-queue','blindtransfer','pick','newcallerid','bind','FAILED','newexten','value','variable','origtransfereruniqueid','sipcallid','varset','isNil','linkedid','name','set','agi','[syncNewExten][VoiceCallReport]','uniqueid','exports','membername','lodash','xmd-phone','disposition','log','calleridnum','[syncHangup][VoiceCallReport]','calleridpreview','syncNewChannel','match','lastapplication','toLowerCase','syncMusicOnHoldStart','syncVarSet','[syncVarSet][VoiceCallReport]','error','accountcode','channels','xmd-queue','answertime','transfercalleridnum','BUSY','resolve','connectedlinenum','sipcalllinkedid','from-sip','transfereeuniqueid','catch','mixmonitor_filename','xmd-originatecalleridnum','coreshowchannel','origtransferercalleridnum','musiconholdstop','endtime','appdata','xmd-callerid-preview','transferconnectedlinenum','user:agentcomplete','syncNewCallerId','replace','type','syncBlindTransfer','xmd-callerid','channel','startsWith','duration','[syncMusicOnHoldStop][VoiceCallReport]','hangup','.wav49','transfertargetcalleridnum','../../../rediscache','toNumber','cdr(','answered','[syncNewChannel][VoiceCallReport]','billableseconds','milliseconds','application','subtract','monitor','attendedtransfer','syncHangup','xmd-cdrtype','sipcalluniqueid','../model/channel','exten','holdtime','queue','YYYY-MM-DD\x20HH:mm:ss','moment','keys','split','emit','../ami','xmd-destination','inspect','OutgoingSpoolFailed','channelstate','seconds','newchannel','syncMixMonitorFilename','ANSWERED','user:%s','syncNewState'];(function(_0x38712e,_0x14b20c){const _0x158978=function(_0x418575){while(--_0x418575){_0x38712e['push'](_0x38712e['shift']());}};_0x158978(++_0x14b20c);}(a1095_0x14b2,0x113));const a1095_0x1589=function(_0x38712e,_0x14b20c){_0x38712e=_0x38712e-0x0;let _0x158978=a1095_0x14b2[_0x38712e];return _0x158978;};const _0x4cf56e=a1095_0x1589;'use strict';const _=require(_0x4cf56e('0x3b')),moment=require(_0x4cf56e('0x7f')),util=require('util'),path=require('path'),logger=require('../../../config/logger')(_0x4cf56e('0x11')),ami=require(_0x4cf56e('0x83')),Channel=require(_0x4cf56e('0x7a')),applications=[_0x4cf56e('0x35'),_0x4cf56e('0x7d'),_0x4cf56e('0x36'),_0x4cf56e('0xa'),'playback',_0x4cf56e('0xc')],dispositions=[_0x4cf56e('0x18'),_0x4cf56e('0x2b'),_0x4cf56e('0x2b'),_0x4cf56e('0x18'),'NO\x20ANSWER',_0x4cf56e('0x18'),_0x4cf56e('0x0'),_0x4cf56e('0x4f'),_0x4cf56e('0x2b'),'FAILED',_0x4cf56e('0x2b')],{getSocket}=require(_0x4cf56e('0x6c')),io=getSocket();function VoiceCallReport(_0x418575){const _0x3ea385=_0x4cf56e;return this['channels']=_0x418575[_0x3ea385('0x4b')],this['agents']=_0x418575[_0x3ea385('0x12')],ami['on'](_0x3ea385('0x58'),this['syncNewExten'][_0x3ea385('0x2a')](this)),ami['on'](_0x3ea385('0x2c'),this['syncNewExten'][_0x3ea385('0x2a')](this)),ami['on'](_0x3ea385('0x89'),this[_0x3ea385('0x42')][_0x3ea385('0x2a')](this)),ami['on']('newstate',this[_0x3ea385('0x2')][_0x3ea385('0x2a')](this)),ami['on'](_0x3ea385('0x31'),this[_0x3ea385('0x47')][_0x3ea385('0x2a')](this)),ami['on'](_0x3ea385('0x69'),this['syncHangup'][_0x3ea385('0x2a')](this)),ami['on'](_0x3ea385('0x29'),this[_0x3ea385('0x60')][_0x3ea385('0x2a')](this)),ami['on'](_0x3ea385('0x76'),this[_0x3ea385('0x24')]['bind'](this)),ami['on'](_0x3ea385('0x27'),this[_0x3ea385('0x63')][_0x3ea385('0x2a')](this)),ami['on'](_0x3ea385('0x19'),this[_0x3ea385('0x46')][_0x3ea385('0x2a')](this)),ami['on'](_0x3ea385('0x5a'),this[_0x3ea385('0x16')][_0x3ea385('0x2a')](this)),Promise[_0x3ea385('0x50')]()['then'](ami['actionCoreShowChannels']())[_0x3ea385('0x55')](function(_0x4af71a){const _0x207e10=_0x3ea385;console[_0x207e10('0x3e')](_0x4af71a);});}VoiceCallReport[_0x4cf56e('0x9')][_0x4cf56e('0x1b')]=function(_0x41690a){const _0x5b79c4=_0x4cf56e;return _0x41690a!==null&&!_[_0x5b79c4('0x17')](_0x41690a);},VoiceCallReport[_0x4cf56e('0x9')][_0x4cf56e('0x82')]=function(_0x568aad,_0x239e1d,_0xc59664){const _0x28b51f=_0x4cf56e;io['to'](_0x568aad)[_0x28b51f('0x82')](_0x239e1d,_0xc59664);},VoiceCallReport[_0x4cf56e('0x9')]['syncNewCallerId']=function(_0x3d6a92){const _0x4a8606=_0x4cf56e;try{this[_0x4a8606('0x1b')](_0x3d6a92)&&(_0x3d6a92[_0x4a8606('0x38')]===_0x3d6a92[_0x4a8606('0x33')]&&(!_[_0x4a8606('0x17')](this[_0x4a8606('0x4b')][_0x3d6a92[_0x4a8606('0x38')]])&&_[_0x4a8606('0x15')](this[_0x4a8606('0x4b')][_0x3d6a92[_0x4a8606('0x38')]],_['pick'](_0x3d6a92,_[_0x4a8606('0x80')](this[_0x4a8606('0x4b')][_0x3d6a92[_0x4a8606('0x38')]])))));}catch(_0x2d2e28){logger[_0x4a8606('0x49')]('[syncNewCallerId][VoiceCallReport]',util[_0x4a8606('0x85')](_0x2d2e28,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x4cf56e('0x9')][_0x4cf56e('0x42')]=function(_0x545ea1){const _0x58f84a=_0x4cf56e;try{this[_0x58f84a('0x1b')](_0x545ea1)&&(_0x545ea1['uniqueid']===_0x545ea1[_0x58f84a('0x33')]&&_0x545ea1[_0x58f84a('0x65')]!=_0x58f84a('0x86')&&(_[_0x58f84a('0x17')](this[_0x58f84a('0x4b')][_0x545ea1[_0x58f84a('0x38')]])&&(this['channels'][_0x545ea1[_0x58f84a('0x38')]]=new Channel(),this[_0x58f84a('0x4b')][_0x545ea1[_0x58f84a('0x38')]][_0x58f84a('0x13')]=moment()[_0x58f84a('0x25')](_0x58f84a('0x7e')),this['channels'][_0x545ea1[_0x58f84a('0x38')]]['disposition']=dispositions[_[_0x58f84a('0x6d')](_0x545ea1['channelstate'])],_[_0x58f84a('0x15')](this[_0x58f84a('0x4b')][_0x545ea1[_0x58f84a('0x38')]],_[_0x58f84a('0x28')](_0x545ea1,_[_0x58f84a('0x80')](this[_0x58f84a('0x4b')][_0x545ea1['uniqueid']]))),_0x545ea1[_0x58f84a('0x7')]===_0x58f84a('0x53')&&(this[_0x58f84a('0x12')][_0x545ea1['channel'][_0x58f84a('0x81')]('-')[0x0]]&&(this[_0x58f84a('0x12')][_0x545ea1['channel'][_0x58f84a('0x81')]('-')[0x0]][_0x58f84a('0x5')]=_0x545ea1[_0x58f84a('0x7b')],this[_0x58f84a('0x82')](util['format'](_0x58f84a('0x1'),this[_0x58f84a('0x12')][_0x545ea1['channel'][_0x58f84a('0x81')]('-')[0x0]][_0x58f84a('0x34')]),'user:agentconnect',{'destaccountcode':this['agents'][_0x545ea1[_0x58f84a('0x65')][_0x58f84a('0x81')]('-')[0x0]][_0x58f84a('0x4a')],'destconnectedlinenum':_0x545ea1[_0x58f84a('0x7b')]}))))));}catch(_0x5837cf){logger[_0x58f84a('0x49')](_0x58f84a('0x70'),util[_0x58f84a('0x85')](_0x5837cf,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x4cf56e('0x9')]['syncNewExten']=function(_0xd09189){const _0x45ec80=_0x4cf56e;try{if(this[_0x45ec80('0x1b')](_0xd09189)){if(_0xd09189[_0x45ec80('0x38')]===_0xd09189[_0x45ec80('0x33')]&&_0xd09189[_0x45ec80('0x7b')]!='h'&&_0xd09189[_0x45ec80('0x65')]!=_0x45ec80('0x86')){_0xd09189[_0x45ec80('0x73')]=_0xd09189[_0x45ec80('0x73')][_0x45ec80('0x45')](),_0xd09189[_0x45ec80('0x6')]=(_0xd09189[_0x45ec80('0x5c')]||_0xd09189[_0x45ec80('0x6')])['toLowerCase']();_[_0x45ec80('0x17')](this[_0x45ec80('0x4b')][_0xd09189[_0x45ec80('0x38')]])&&(this[_0x45ec80('0x4b')][_0xd09189[_0x45ec80('0x38')]]=new Channel(),this[_0x45ec80('0x4b')][_0xd09189[_0x45ec80('0x38')]][_0x45ec80('0x13')]=_0xd09189[_0x45ec80('0x67')]?moment()[_0x45ec80('0x74')](moment[_0x45ec80('0x67')](_0xd09189[_0x45ec80('0x67')])[_0x45ec80('0x88')](),'seconds')['format']('YYYY-MM-DD\x20HH:mm:ss'):moment()[_0x45ec80('0x25')](_0x45ec80('0x7e')),this[_0x45ec80('0x4b')][_0xd09189['uniqueid']][_0x45ec80('0x3d')]='NO\x20ANSWER');_[_0x45ec80('0x15')](this['channels'][_0xd09189[_0x45ec80('0x38')]],_[_0x45ec80('0x28')](_0xd09189,_['keys'](this[_0x45ec80('0x4b')][_0xd09189['uniqueid']])));if(_['includes'](applications,_0xd09189[_0x45ec80('0x73')])){this[_0x45ec80('0x4b')][_0xd09189[_0x45ec80('0x38')]][_0x45ec80('0x44')]=_0xd09189[_0x45ec80('0x73')],this[_0x45ec80('0x4b')][_0xd09189[_0x45ec80('0x38')]][_0x45ec80('0x3')]=_0xd09189[_0x45ec80('0x6')];if(_0xd09189[_0x45ec80('0x73')]===_0x45ec80('0x35')&&_[_0x45ec80('0x66')](_0xd09189['applicationdata'],_0x45ec80('0x6e'))){const _0x1098f8=_0xd09189['applicationdata'][_0x45ec80('0x81')]('='),_0x1ecfb0=_0x1098f8[0x0][_0x45ec80('0x43')](/cdr\((.*)\)/);_0x1ecfb0&&(this[_0x45ec80('0x4b')][_0xd09189[_0x45ec80('0x38')]][_0x1ecfb0[0x1]]=_0x1098f8[0x1]);}else _0xd09189[_0x45ec80('0x73')]==='queue'&&(this['channels'][_0xd09189['uniqueid']][_0x45ec80('0x7d')]=_0xd09189['applicationdata'][_0x45ec80('0x81')](',')[0x0]);}}}}catch(_0x1f75a0){logger[_0x45ec80('0x49')](_0x45ec80('0x37'),util[_0x45ec80('0x85')](_0x1f75a0,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x4cf56e('0x9')][_0x4cf56e('0x2')]=function(_0x56c6fb){const _0x238a81=_0x4cf56e;try{if(this[_0x238a81('0x1b')](_0x56c6fb)){if(_0x56c6fb[_0x238a81('0x38')]!==_0x56c6fb['linkedid']){if(this[_0x238a81('0x4b')][_0x56c6fb[_0x238a81('0x33')]]){if(_0x56c6fb[_0x238a81('0x87')]==='6'){if(!this[_0x238a81('0x4b')][_0x56c6fb[_0x238a81('0x33')]][_0x238a81('0x6f')]){const _0x262620=moment();this['channels'][_0x56c6fb[_0x238a81('0x33')]][_0x238a81('0x6f')]=!![],this[_0x238a81('0x4b')][_0x56c6fb[_0x238a81('0x33')]][_0x238a81('0x4d')]=_0x262620[_0x238a81('0x25')](_0x238a81('0x7e')),this[_0x238a81('0x4b')][_0x56c6fb[_0x238a81('0x33')]][_0x238a81('0x13')]&&(this[_0x238a81('0x4b')][_0x56c6fb[_0x238a81('0x33')]]['holdtime']=_0x262620['diff'](this['channels'][_0x56c6fb[_0x238a81('0x33')]][_0x238a81('0x13')],_0x238a81('0x88')));}this['channels'][_0x56c6fb[_0x238a81('0x33')]][_0x238a81('0x33')]=_0x56c6fb[_0x238a81('0x38')],_0x56c6fb['calleridnum']!=='xcally-motion-preview'&&(this[_0x238a81('0x4b')][_0x56c6fb[_0x238a81('0x33')]][_0x238a81('0x51')]=_0x56c6fb[_0x238a81('0x3f')]),this[_0x238a81('0x4b')][_0x56c6fb[_0x238a81('0x33')]]['connectedlinename']=_0x56c6fb['calleridname'],this[_0x238a81('0x4b')][_0x56c6fb[_0x238a81('0x33')]][_0x238a81('0x1d')]=_0x56c6fb[_0x238a81('0x65')],this['channels'][_0x56c6fb['linkedid']][_0x238a81('0x3d')]=dispositions[_[_0x238a81('0x6d')](_0x56c6fb[_0x238a81('0x87')])],this['agents'][_0x56c6fb[_0x238a81('0x65')][_0x238a81('0x81')]('-')[0x0]]&&(this[_0x238a81('0x4b')][_0x56c6fb[_0x238a81('0x33')]]['UserId']=this[_0x238a81('0x12')][_0x56c6fb[_0x238a81('0x65')][_0x238a81('0x81')]('-')[0x0]]['id'],this['channels'][_0x56c6fb[_0x238a81('0x33')]][_0x238a81('0x3a')]=this[_0x238a81('0x12')][_0x56c6fb[_0x238a81('0x65')][_0x238a81('0x81')]('-')[0x0]][_0x238a81('0x34')]);}}}else this[_0x238a81('0x4b')][_0x56c6fb['uniqueid']]&&(_0x56c6fb[_0x238a81('0x87')]==='6'&&(this[_0x238a81('0x12')][_0x56c6fb[_0x238a81('0x65')]['split']('-')[0x0]]&&(this[_0x238a81('0x4b')][_0x56c6fb[_0x238a81('0x38')]]['UserId']=this['agents'][_0x56c6fb[_0x238a81('0x65')]['split']('-')[0x0]]['id'],this[_0x238a81('0x4b')][_0x56c6fb[_0x238a81('0x38')]]['membername']=this[_0x238a81('0x12')][_0x56c6fb[_0x238a81('0x65')][_0x238a81('0x81')]('-')[0x0]][_0x238a81('0x34')])));}}catch(_0x4f44ed){logger[_0x238a81('0x49')]('[syncNewState][VoiceCallReport]',util[_0x238a81('0x85')](_0x4f44ed,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x4cf56e('0x9')][_0x4cf56e('0x8a')]=function(_0x3a9c2d,_0xa1ff55){const _0x405210=_0x4cf56e;if(this[_0x405210('0x4b')][_0x3a9c2d]){this[_0x405210('0x4b')][_0x3a9c2d][_0x405210('0x75')]=!![];_[_0x405210('0x4')](_0xa1ff55,_0x405210('0x6a'))&&(_0xa1ff55=_0xa1ff55[_0x405210('0x61')](_0x405210('0x6a'),'.WAV'));this[_0x405210('0x4b')][_0x3a9c2d][_0x405210('0x1a')]=_0xa1ff55;const _0x497f2e=_[_0x405210('0x1c')](this[_0x405210('0x4b')][_0x3a9c2d][_0x405210('0xd')],{'filename':_0xa1ff55});_[_0x405210('0x32')](_0x497f2e)&&this[_0x405210('0x4b')][_0x3a9c2d][_0x405210('0xd')]['push']({'filename':_0xa1ff55,'createdAt':moment()[_0x405210('0x25')](_0x405210('0x7e')),'mixmonitorid':'','status':'rec'});}},VoiceCallReport[_0x4cf56e('0x9')][_0x4cf56e('0x47')]=function(_0xa36e98){const _0x381f54=_0x4cf56e;try{if(this[_0x381f54('0x1b')](_0xa36e98)){if(this[_0x381f54('0x4b')][_0xa36e98[_0x381f54('0x38')]]&&_0xa36e98[_0x381f54('0x65')]!='OutgoingSpoolFailed'){if(this[_0x381f54('0x1b')](_0xa36e98[_0x381f54('0x2e')])){if(this['isNotNull'](_0xa36e98[_0x381f54('0x2e')][_0x381f54('0x56')]))this['syncMixMonitorFilename'](_0xa36e98[_0x381f54('0x38')],_0xa36e98[_0x381f54('0x2d')]);else{if(this['isNotNull'](_0xa36e98[_0x381f54('0x2e')][_0x381f54('0x3c')]))this[_0x381f54('0x4b')][_0xa36e98['uniqueid']][_0x381f54('0x3f')]=_0xa36e98['value'];else{if(this[_0x381f54('0x1b')](_0xa36e98[_0x381f54('0x2e')][_0x381f54('0x64')]))this['channels'][_0xa36e98[_0x381f54('0x38')]][_0x381f54('0x14')]=_0xa36e98[_0x381f54('0x2d')];else{if(this[_0x381f54('0x1b')](_0xa36e98[_0x381f54('0x2e')][_0x381f54('0x78')]))this[_0x381f54('0x4b')][_0xa36e98[_0x381f54('0x38')]][_0x381f54('0x62')]=_0xa36e98[_0x381f54('0x2d')];else{if(this[_0x381f54('0x1b')](_0xa36e98[_0x381f54('0x2e')][_0x381f54('0x4c')]))this['channels'][_0xa36e98['uniqueid']][_0x381f54('0x7d')]=_0xa36e98[_0x381f54('0x2d')][_0x381f54('0x81')](',')[0x0];else{if(this[_0x381f54('0x1b')](_0xa36e98[_0x381f54('0x2e')][_0x381f54('0x57')]))this['channels'][_0xa36e98['uniqueid']][_0x381f54('0x8')]=_0xa36e98['value'];else{if(this[_0x381f54('0x1b')](_0xa36e98[_0x381f54('0x2e')][_0x381f54('0x84')]))this['channels'][_0xa36e98[_0x381f54('0x38')]][_0x381f54('0x23')]=_0xa36e98['value'];else{if(this[_0x381f54('0x1b')](_0xa36e98[_0x381f54('0x2e')][_0x381f54('0x5d')]))this[_0x381f54('0x4b')][_0xa36e98[_0x381f54('0x38')]][_0x381f54('0x41')]=_0xa36e98[_0x381f54('0x2d')];else{if(this[_0x381f54('0x1b')](_0xa36e98['variable'][_0x381f54('0x26')]))this[_0x381f54('0x4b')][_0xa36e98[_0x381f54('0x38')]][_0x381f54('0x7d')]=_0xa36e98[_0x381f54('0x2d')];else this['isNotNull'](_0xa36e98['variable']['sipcallid'])&&(this[_0x381f54('0x4b')][_0xa36e98['uniqueid']][_0x381f54('0x79')]=_0xa36e98[_0x381f54('0x2d')]);}}}}}}}}}}else{if(this['isNotNull'](_0xa36e98[_0x381f54('0x2e')][_0x381f54('0x56')])){if(_0xa36e98['value']){const _0x10832d=path['parse'](_0xa36e98[_0x381f54('0x2d')])[_0x381f54('0x34')];this[_0x381f54('0x8a')](_0x10832d,_0xa36e98[_0x381f54('0x2d')]);}}else this[_0x381f54('0x4b')][_0xa36e98[_0x381f54('0x33')]]&&(this[_0x381f54('0x1b')](_0xa36e98[_0x381f54('0x2e')])&&(this[_0x381f54('0x1b')](_0xa36e98[_0x381f54('0x2e')][_0x381f54('0x30')])&&(this[_0x381f54('0x4b')][_0xa36e98['linkedid']][_0x381f54('0x52')]=_0xa36e98['value'])));}}}catch(_0x3a1a05){logger[_0x381f54('0x49')](_0x381f54('0x48'),util[_0x381f54('0x85')](_0x3a1a05,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x4cf56e('0x9')][_0x4cf56e('0x77')]=function(_0x4b0ca9){const _0x41e00d=_0x4cf56e;try{if(this[_0x41e00d('0x1b')](_0x4b0ca9)){if(this[_0x41e00d('0x4b')][_0x4b0ca9['uniqueid']]){const _0x152dd=moment();this[_0x41e00d('0x4b')][_0x4b0ca9[_0x41e00d('0x38')]][_0x41e00d('0x5b')]=_0x152dd[_0x41e00d('0x25')](_0x41e00d('0x7e')),this['channels'][_0x4b0ca9[_0x41e00d('0x38')]][_0x41e00d('0x67')]=_0x152dd[_0x41e00d('0x21')](this[_0x41e00d('0x4b')][_0x4b0ca9[_0x41e00d('0x38')]][_0x41e00d('0x13')],'seconds'),this[_0x41e00d('0x4b')][_0x4b0ca9[_0x41e00d('0x38')]]['answered']&&(this[_0x41e00d('0x4b')][_0x4b0ca9[_0x41e00d('0x38')]]['billableseconds']=_0x152dd[_0x41e00d('0x21')](this['channels'][_0x4b0ca9[_0x41e00d('0x38')]][_0x41e00d('0x4d')],_0x41e00d('0x88')),this['channels'][_0x4b0ca9[_0x41e00d('0x38')]][_0x41e00d('0x7c')]=this[_0x41e00d('0x4b')][_0x4b0ca9[_0x41e00d('0x38')]][_0x41e00d('0x67')]-this['channels'][_0x4b0ca9[_0x41e00d('0x38')]][_0x41e00d('0x71')]),_0x4b0ca9['context']===_0x41e00d('0x53')&&(this[_0x41e00d('0x12')][_0x4b0ca9[_0x41e00d('0x65')]['split']('-')[0x0]]&&(this[_0x41e00d('0x12')][_0x4b0ca9['channel'][_0x41e00d('0x81')]('-')[0x0]]=_[_0x41e00d('0xe')](this[_0x41e00d('0x12')][_0x4b0ca9[_0x41e00d('0x65')][_0x41e00d('0x81')]('-')[0x0]],['destconnectedlinenum']),this['emit'](util[_0x41e00d('0x25')]('user:%s',this['agents'][_0x4b0ca9[_0x41e00d('0x65')][_0x41e00d('0x81')]('-')[0x0]][_0x41e00d('0x34')]),_0x41e00d('0x5f'),{'destaccountcode':this[_0x41e00d('0x12')][_0x4b0ca9[_0x41e00d('0x65')]['split']('-')[0x0]][_0x41e00d('0x4a')]}))),ami[_0x41e00d('0x82')](_0x41e00d('0xf'),this['channels'][_0x4b0ca9['uniqueid']]),delete this[_0x41e00d('0x4b')][_0x4b0ca9[_0x41e00d('0x38')]];}}}catch(_0x40cf68){logger[_0x41e00d('0x49')](_0x41e00d('0x40'),util[_0x41e00d('0x85')](_0x40cf68,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x4cf56e('0x9')]['syncAttendedTransfer']=function(_0x192fdb){const _0x577bdb=_0x4cf56e;try{if(this[_0x577bdb('0x1b')](_0x192fdb)){if(this[_0x577bdb('0x4b')][_0x192fdb['transfereeuniqueid']]){this[_0x577bdb('0x4b')][_0x192fdb[_0x577bdb('0x54')]][_0x577bdb('0x4e')]=_0x192fdb[_0x577bdb('0x59')],this[_0x577bdb('0x4b')][_0x192fdb[_0x577bdb('0x54')]][_0x577bdb('0x5e')]=_0x192fdb[_0x577bdb('0x6b')];if(this[_0x577bdb('0x4b')][_0x192fdb[_0x577bdb('0x1e')]]){const _0x3d7881=this[_0x577bdb('0x4b')][_0x192fdb['secondtransfereruniqueid']];this[_0x577bdb('0x4b')][_0x192fdb[_0x577bdb('0x1e')]]=this['channels'][_0x192fdb['transfereeuniqueid']],this[_0x577bdb('0x4b')][_0x192fdb[_0x577bdb('0x54')]]=_0x3d7881;}}else{if(this['channels'][_0x192fdb[_0x577bdb('0x20')]]){this['channels'][_0x192fdb['transfertargetuniqueid']][_0x577bdb('0x4e')]=_0x192fdb[_0x577bdb('0x59')],this[_0x577bdb('0x4b')][_0x192fdb['transfertargetuniqueid']]['transferconnectedlinenum']=_0x192fdb[_0x577bdb('0x6b')];if(this[_0x577bdb('0x4b')][_0x192fdb[_0x577bdb('0x2f')]]){const _0x175eae=this['channels'][_0x192fdb[_0x577bdb('0x2f')]];this[_0x577bdb('0x4b')][_0x192fdb['origtransfereruniqueid']]=this[_0x577bdb('0x4b')][_0x192fdb[_0x577bdb('0x20')]],this[_0x577bdb('0x4b')][_0x192fdb[_0x577bdb('0x20')]]=_0x175eae;}}}}}catch(_0x46e65b){logger[_0x577bdb('0x49')]('[syncAttendedTransfer][VoiceCallReport]',util[_0x577bdb('0x85')](_0x46e65b,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x4cf56e('0x9')][_0x4cf56e('0x63')]=function(_0x5ee5ea){const _0x460f76=_0x4cf56e;try{this[_0x460f76('0x1b')](_0x5ee5ea)&&(this[_0x460f76('0x4b')][_0x5ee5ea[_0x460f76('0x54')]]&&(this[_0x460f76('0x4b')][_0x5ee5ea['transfereeuniqueid']][_0x460f76('0x4e')]=_0x5ee5ea[_0x460f76('0x10')],this[_0x460f76('0x4b')][_0x5ee5ea[_0x460f76('0x54')]][_0x460f76('0x5e')]=_0x5ee5ea[_0x460f76('0x1f')],this['syncHangup']({'event':'BlindTransfer','uniqueid':_0x5ee5ea[_0x460f76('0x54')],'context':_0x5ee5ea[_0x460f76('0x7')],'channel':_0x5ee5ea['transfererchannel']})));}catch(_0x25e688){logger[_0x460f76('0x49')]('[syncBlindTransfer][VoiceCallReport]',util[_0x460f76('0x85')](_0x25e688,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x4cf56e('0x9')][_0x4cf56e('0x46')]=function(_0x4094e9){const _0x2e0fa9=_0x4cf56e;try{this[_0x2e0fa9('0x1b')](_0x4094e9)&&(this['channels'][_0x4094e9[_0x2e0fa9('0x38')]]&&(!_[_0x2e0fa9('0x32')](this['channels'][_0x4094e9[_0x2e0fa9('0x38')]][_0x2e0fa9('0x4d')])&&(this[_0x2e0fa9('0x4b')][_0x4094e9[_0x2e0fa9('0x38')]]['mohstarttime']=moment()[_0x2e0fa9('0x25')](_0x2e0fa9('0x7e')))));}catch(_0x1e4066){logger[_0x2e0fa9('0x49')]('[syncMusicOnHoldStart][VoiceCallReport]',util[_0x2e0fa9('0x85')](_0x1e4066,{'showHidden':![],'depth':null}));}},VoiceCallReport['prototype'][_0x4cf56e('0x16')]=function(_0x26d1fb){const _0x234372=_0x4cf56e;try{this['isNotNull'](_0x26d1fb)&&(this['channels'][_0x26d1fb[_0x234372('0x38')]]&&(!_[_0x234372('0x32')](this[_0x234372('0x4b')][_0x26d1fb[_0x234372('0x38')]][_0x234372('0xb')])&&(this['channels'][_0x26d1fb[_0x234372('0x38')]][_0x234372('0x22')]+=moment()[_0x234372('0x72')](0x0)['diff'](this[_0x234372('0x4b')][_0x26d1fb[_0x234372('0x38')]][_0x234372('0xb')],_0x234372('0x88')),delete this[_0x234372('0x4b')][_0x26d1fb[_0x234372('0x38')]][_0x234372('0xb')])));}catch(_0x266a0c){logger[_0x234372('0x49')](_0x234372('0x68'),util[_0x234372('0x85')](_0x266a0c,{'showHidden':![],'depth':null}));}},module[_0x4cf56e('0x39')]=VoiceCallReport; \ No newline at end of file +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 diff --git a/server/services/ami/report/voiceDialReport.js b/server/services/ami/report/voiceDialReport.js index 8a4644d..4af5faf 100644 --- a/server/services/ami/report/voiceDialReport.js +++ b/server/services/ami/report/voiceDialReport.js @@ -1 +1 @@ -const a1096_0x1bfc=['syncVarSet','syncDialBegin','connectedlinename','billableseconds','channels','lodash','emit','membername','voice_outbound_channel:remove','rtpaudioqosjitter','channel','uniqueid','[syncDialEnd][VoiceDialReport]','rtpaudioqosbridged','voice:outbound','isNotNull','dialstatus','voice_outbound_channel:save','variables','lastIndexOf','privilege','membercalls','holdtime','omit','endtime','varset','rtpaudioqos','rtpaudioqosrtt','sumBillable','error','outboundrouteid','duration','ami','hangup','moment','[syncVarSet][VoiceDialReport]','stringify','sipuri','ANSWER','YYYY-MM-DD\x20HH:mm:ss','inspect','info','outbound','[syncDialBegin][VoiceDialReport]','connect','rtpaudioqosjitterbridged','substring','sipcallid','answertime','sumHoldTime','addVariable','bind','merge','diff','memberrealtime','[syncHangup][VoiceDialReport]','util','exports','bridgepvtcallid','syncDialEnd','[DEBUG]\x20Emit\x20voice_outbound_channel:remove\x20event','memberpenalty','memberlastcall','../../../rediscache','dialend','variable','starttime','event','isUndefined','connectedlinenum','isNil','../ami','called','rtpaudioqosrttbridged','prototype','custom:dialbegin','dialbegin','seconds','format'];(function(_0x2a7c7f,_0x1bfc00){const _0xb22cdb=function(_0xe1b3be){while(--_0xe1b3be){_0x2a7c7f['push'](_0x2a7c7f['shift']());}};_0xb22cdb(++_0x1bfc00);}(a1096_0x1bfc,0x147));const a1096_0xb22c=function(_0x2a7c7f,_0x1bfc00){_0x2a7c7f=_0x2a7c7f-0x0;let _0xb22cdb=a1096_0x1bfc[_0x2a7c7f];return _0xb22cdb;};const _0x3e61f6=a1096_0xb22c;'use strict';const _=require(_0x3e61f6('0x49')),moment=require(_0x3e61f6('0x17')),util=require(_0x3e61f6('0x2d')),logger=require('../../../config/logger')(_0x3e61f6('0x15')),ami=require(_0x3e61f6('0x3c')),{getSocket}=require(_0x3e61f6('0x34')),io=getSocket();function VoiceDialReport(_0xe1b3be){const _0x17d415=_0x3e61f6;this['channels']=_0xe1b3be['outboundChannels'],this[_0x17d415('0x1f')]=_0xe1b3be['outbound'],this[_0x17d415('0x7')]={},ami['on'](_0x17d415('0x41'),this[_0x17d415('0x45')][_0x17d415('0x28')](this)),ami['on'](_0x17d415('0x35'),this['syncDialEnd'][_0x17d415('0x28')](this)),ami['on'](_0x17d415('0xe'),this[_0x17d415('0x44')]['bind'](this)),ami['on'](_0x17d415('0x16'),this['syncHangup'][_0x17d415('0x28')](this));}VoiceDialReport[_0x3e61f6('0x3f')]['isNotNull']=function(_0x1e848c){const _0x1de688=_0x3e61f6;return _0x1e848c!==null&&!_[_0x1de688('0x39')](_0x1e848c);},VoiceDialReport[_0x3e61f6('0x3f')][_0x3e61f6('0x4a')]=function(_0x23cab,_0x5c2c6e,_0x218e2e){io['to'](_0x23cab)['emit'](_0x5c2c6e,_0x218e2e);},VoiceDialReport[_0x3e61f6('0x3f')]['syncDialBegin']=function(_0x387b28){const _0x50f36f=_0x3e61f6;try{this[_0x50f36f('0x4')](_0x387b28)&&(this['channels'][_0x387b28[_0x50f36f('0x0')]]&&(_[_0x50f36f('0x29')](this[_0x50f36f('0x48')][_0x387b28[_0x50f36f('0x0')]],{'starttime':moment()[_0x50f36f('0x43')](_0x50f36f('0x1c')),'lastevent':_0x50f36f('0x3d'),'interface':_0x387b28[_0x50f36f('0x4e')]['substring'](0x0,_0x387b28[_0x50f36f('0x4e')][_0x50f36f('0x8')]('-')),'membername':_0x387b28[_0x50f36f('0x4e')][_0x50f36f('0x23')](_0x387b28['channel'][_0x50f36f('0x8')]('/')+0x1,_0x387b28[_0x50f36f('0x4e')][_0x50f36f('0x8')]('-'))},_[_0x50f36f('0xc')](_0x387b28,[_0x50f36f('0x38'),_0x50f36f('0x9')])),this[_0x50f36f('0x4a')](_0x50f36f('0x3'),_0x50f36f('0x6'),this[_0x50f36f('0x48')][_0x387b28['uniqueid']]),ami[_0x50f36f('0x4a')](_0x50f36f('0x40'),this[_0x50f36f('0x48')][_0x387b28[_0x50f36f('0x0')]])));}catch(_0x301ea8){logger['error'](_0x50f36f('0x20'),util[_0x50f36f('0x1d')](_0x301ea8,{'showHidden':![],'depth':null}));}},VoiceDialReport['prototype'][_0x3e61f6('0x30')]=function(_0x3011c4){const _0x43967f=_0x3e61f6;try{this[_0x43967f('0x4')](_0x3011c4)&&(this[_0x43967f('0x48')][_0x3011c4[_0x43967f('0x0')]]&&(this[_0x43967f('0x48')][_0x3011c4[_0x43967f('0x0')]][_0x43967f('0x5')]=_0x3011c4[_0x43967f('0x5')],_0x3011c4['dialstatus']===_0x43967f('0x1b')&&(this[_0x43967f('0x48')][_0x3011c4[_0x43967f('0x0')]]['connectedlinenum']=_0x3011c4[_0x43967f('0x3a')],this[_0x43967f('0x48')][_0x3011c4[_0x43967f('0x0')]][_0x43967f('0x46')]=_0x3011c4[_0x43967f('0x46')],this['channels'][_0x3011c4[_0x43967f('0x0')]]['answertime']=moment()['format'](_0x43967f('0x1c')),this[_0x43967f('0x48')][_0x3011c4[_0x43967f('0x0')]]['lastevent']=_0x43967f('0x21'),ami['emit']('custom:dialconnect',this[_0x43967f('0x48')][_0x3011c4[_0x43967f('0x0')]])),this[_0x43967f('0x4a')](_0x43967f('0x3'),'voice_outbound_channel:save',this[_0x43967f('0x48')][_0x3011c4[_0x43967f('0x0')]])));}catch(_0x52f16e){logger['error'](_0x43967f('0x1'),util['inspect'](_0x52f16e,{'showHidden':![],'depth':null}));}},VoiceDialReport[_0x3e61f6('0x3f')][_0x3e61f6('0x44')]=function(_0x388813){const _0x1a550=_0x3e61f6;try{this['isNotNull'](_0x388813)&&(this[_0x1a550('0x27')](_0x388813[_0x1a550('0x0')],_['keys'](_0x388813[_0x1a550('0x36')])[0x0],_0x388813['value']),this[_0x1a550('0x4')](_0x388813[_0x1a550('0x36')])&&this[_0x1a550('0x4')](_0x388813[_0x1a550('0x36')][_0x1a550('0x13')])&&(_['isUndefined'](this[_0x1a550('0x48')][_0x388813[_0x1a550('0x0')]])&&(this['channels'][_0x388813[_0x1a550('0x0')]]={'routeId':_0x388813['value'],'variables':this[_0x1a550('0x7')][_0x388813['uniqueid']]},this[_0x1a550('0x4a')](_0x1a550('0x3'),_0x1a550('0x6'),this[_0x1a550('0x48')][_0x388813[_0x1a550('0x0')]]))));}catch(_0x1a03f6){logger[_0x1a550('0x12')](_0x1a550('0x18'),util[_0x1a550('0x1d')](_0x1a03f6,{'showHidden':![],'depth':null}));}},VoiceDialReport[_0x3e61f6('0x3f')][_0x3e61f6('0x27')]=function(_0x1c2c71,_0x107d12,_0x11ef68){const _0x28b71d=_0x3e61f6,_0x4e14ce=[_0x28b71d('0xf'),_0x28b71d('0x2'),_0x28b71d('0x4d'),_0x28b71d('0x22'),'rtpaudioqosloss','rtpaudioqoslossbridged',_0x28b71d('0x10'),_0x28b71d('0x3e'),_0x28b71d('0x24'),_0x28b71d('0x1a'),'bridgepeer',_0x28b71d('0x2f'),_0x28b71d('0xa'),'memberdynamic','memberinterface',_0x28b71d('0x33'),_0x28b71d('0x4b'),_0x28b71d('0x32'),_0x28b71d('0x2b')];!_[_0x28b71d('0x3b')](_0x107d12)&&!_['includes'](_0x4e14ce,_0x107d12)&&(_[_0x28b71d('0x39')](this[_0x28b71d('0x7')][_0x1c2c71])&&(this[_0x28b71d('0x7')][_0x1c2c71]={}),this['variables'][_0x1c2c71][_0x107d12]=_0x11ef68);},VoiceDialReport[_0x3e61f6('0x3f')]['syncHangup']=function(_0x2a6139){const _0x87c9ed=_0x3e61f6;try{this[_0x87c9ed('0x4')](_0x2a6139)&&(this[_0x87c9ed('0x48')][_0x2a6139[_0x87c9ed('0x0')]]&&(this[_0x87c9ed('0x48')][_0x2a6139[_0x87c9ed('0x0')]][_0x87c9ed('0xd')]=moment()[_0x87c9ed('0x43')]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x87c9ed('0x48')][_0x2a6139['uniqueid']][_0x87c9ed('0x14')]=moment(this['channels'][_0x2a6139[_0x87c9ed('0x0')]][_0x87c9ed('0xd')])[_0x87c9ed('0x2a')](this[_0x87c9ed('0x48')][_0x2a6139[_0x87c9ed('0x0')]][_0x87c9ed('0x37')],_0x87c9ed('0x42')),this[_0x87c9ed('0x48')][_0x2a6139[_0x87c9ed('0x0')]]['lastevent']='complete',this[_0x87c9ed('0x1f')]['total']+=0x1,this[_0x87c9ed('0x48')][_0x2a6139[_0x87c9ed('0x0')]][_0x87c9ed('0x25')]&&(this[_0x87c9ed('0x1f')]['answered']+=0x1,this[_0x87c9ed('0x48')][_0x2a6139[_0x87c9ed('0x0')]][_0x87c9ed('0xb')]=moment(this[_0x87c9ed('0x48')][_0x2a6139[_0x87c9ed('0x0')]]['answertime'])['diff'](this[_0x87c9ed('0x48')][_0x2a6139['uniqueid']][_0x87c9ed('0x37')],_0x87c9ed('0x42')),this[_0x87c9ed('0x48')][_0x2a6139['uniqueid']][_0x87c9ed('0x47')]=moment(this[_0x87c9ed('0x48')][_0x2a6139['uniqueid']][_0x87c9ed('0xd')])['diff'](this[_0x87c9ed('0x48')][_0x2a6139[_0x87c9ed('0x0')]]['answertime'],_0x87c9ed('0x42')),this[_0x87c9ed('0x1f')][_0x87c9ed('0x26')]+=this[_0x87c9ed('0x48')][_0x2a6139[_0x87c9ed('0x0')]]['holdtime']||0x0,this[_0x87c9ed('0x1f')][_0x87c9ed('0x11')]+=this['channels'][_0x2a6139[_0x87c9ed('0x0')]][_0x87c9ed('0x47')]),this[_0x87c9ed('0x1f')]['sumDuration']+=this[_0x87c9ed('0x48')][_0x2a6139['uniqueid']][_0x87c9ed('0x14')],ami[_0x87c9ed('0x4a')]('custom:voiceDialReport',this[_0x87c9ed('0x48')][_0x2a6139[_0x87c9ed('0x0')]]),ami['emit']('custom:dialend',this['channels'][_0x2a6139[_0x87c9ed('0x0')]]),this['emit'](_0x87c9ed('0x3'),'voice_outbound:save',this[_0x87c9ed('0x1f')]),logger[_0x87c9ed('0x1e')](_0x87c9ed('0x31'),JSON[_0x87c9ed('0x19')](this[_0x87c9ed('0x48')][_0x2a6139[_0x87c9ed('0x0')]])),this['emit']('voice:outbound',_0x87c9ed('0x4c'),this['channels'][_0x2a6139[_0x87c9ed('0x0')]]),delete this[_0x87c9ed('0x48')][_0x2a6139[_0x87c9ed('0x0')]]),this[_0x87c9ed('0x7')][_0x2a6139[_0x87c9ed('0x0')]]&&delete this[_0x87c9ed('0x7')][_0x2a6139[_0x87c9ed('0x0')]]);}catch(_0x164529){logger[_0x87c9ed('0x12')](_0x87c9ed('0x2c'),util[_0x87c9ed('0x1d')](_0x164529,{'showHidden':![],'depth':null}));}},module[_0x3e61f6('0x2e')]=VoiceDialReport; \ No newline at end of file +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 diff --git a/server/services/ami/report/voiceQueueReport.js b/server/services/ami/report/voiceQueueReport.js index f908125..500b64e 100644 --- a/server/services/ami/report/voiceQueueReport.js +++ b/server/services/ami/report/voiceQueueReport.js @@ -1 +1 @@ -const a1097_0x2251=['queuecallerjoinAt','abandoned','loopQueueShow','emit','waiting','syncHangup','info','channels','queuecallercompleteAt','addVariable','queuecallerabandon','[voiceQueueReport][checkVariables]','syncQueueCallerLeave','queueStatusComplete','[syncBlindTransfer][VoiceQueueReport]','total','BlindTransfer','sequence','memberinterface','bridgepvtcallid','emitVoiceQueueChannelRemove','[syncQueueCallerLeave][VoiceQueueReport]','keys','unmanaged','util','queueChannels','format','queuesummary','[FullyBooted]\x20clear\x20realtime','queue','clearZombieChannels','exports','extension','syncQueueSummaryComplete','syncQueueSummary','enqueue','secondtransfererexten','agentcomplete','bridgepeer','toNumber','syncFullyBooted','uniqueid','queues','ATTENDEDTRANSFER','message','syncMusicOnHoldStart','switch','origtransfererexten','isEmpty','sipuri','TIMEOUT','[syncVarSet][VoiceQueueReport]','undefined','startsWith','md5','then','rtpaudioqosjitter','sumHoldTime','mohtime','queuesummarycomplete','lastevent','variables','YYYY-MM-DD\x20HH:mm:ss','rtpaudioqosrtt','origtransfereruniqueid','name','merge','queuecallerexit','value','inspect','add','COMPLETEDBY','Trunk','Interval','queuecallercomplete','agentconnect','error','custom:timeout','voice_queue_channel:save','transfertype','transfereeuniqueid','BLINDTRANSFER','queuecallerexitAt','musiconholdstart','transferexten','reason','sumBillable','queuecallerexitreason','originalposition','tail','emitVoiceQueueSummary','last','callerid','[syncMusicOnHoldStop][VoiceQueueReport]','queuecallerleaveAt','../../../config/logger','queueposition','COMPLETED','../model/queueReport','available','membercalls','bind','custom:queuecallerunmanaged','transfererchannel','stringify','voiceQueues','destexten','[voiceQueueReport][checkChannel]','length','pTalking','[syncAgentComplete][VoiceQueueReport]','channel','catch','variable','mohstarttime','transferuniqueid','No\x20such\x20channel','inbound','lastAssignedTo','membername','loopQueueSummary','active','fullybooted','secondtransfereruniqueid','rtpaudioqosjitterbridged','queuestatus','loggedin','prototype','push','transfertargetuniqueid','type','CONTINUE','agents','ATTENDED','../../../rediscache','[syncAgentConnect][VoiceQueueReport]','originated','syncQueueCallerJoin','isUndefined','syncAgentComplete','campaigns','answered','sumDuration','loggedIn','[queues]','memberpenalty','linkedid','includes','[DEBUG]\x20Emit\x20voice_queue_channel:remove\x20event','custom:queuesummary','syncNewExten','callers','connectedlinename','pick','syncMusicOnHoldStop','syncBlindTransfer','diff','syncAttendedTransfer','FORWARDTRANSFER','clearQueueReport','voice:queue:%s','flagQueueSummary','countBy','rtpaudioqos','isNil','custom:voiceQueueReport','ABANDONED','assigned','count','seconds','FORWARD','connectedlinenum','[syncHangup][VoiceQueueReport]','transfer','finally','position','voice_queue:save','isNotNull','blindtransfer','strategy','moment','syncQueueCallerAbandon','emitVoiceQueueChannelSave','milliseconds','context','syncVarSet','musiconholdstop','talking','toUpperCase','rtpaudioqosrttbridged','voice_queue_channel:remove','queuecallerabandonAt','status','queueReports','holdtime','syncAgentConnect','[queuesummary]','[syncMusicOnHoldStart][VoiceQueueReport]','memberdynamic'];(function(_0x2a6ba0,_0x22513c){const _0x4dfcb1=function(_0x41266e){while(--_0x41266e){_0x2a6ba0['push'](_0x2a6ba0['shift']());}};_0x4dfcb1(++_0x22513c);}(a1097_0x2251,0xbd));const a1097_0x4dfc=function(_0x2a6ba0,_0x22513c){_0x2a6ba0=_0x2a6ba0-0x0;let _0x4dfcb1=a1097_0x2251[_0x2a6ba0];return _0x4dfcb1;};const _0x1f9a77=a1097_0x4dfc;'use strict';const _=require('lodash'),moment=require(_0x1f9a77('0xbe')),util=require(_0x1f9a77('0x22')),md5=require(_0x1f9a77('0x40')),logger=require(_0x1f9a77('0x69'))('ami'),ami=require('../ami'),QueueReport=require(_0x1f9a77('0x6c')),{getSocket}=require(_0x1f9a77('0x90')),io=getSocket(),Sequence=function(){};Sequence[_0x1f9a77('0x89')][_0x1f9a77('0x2d')]=function(_0x41266e){const _0x33a156=_0x1f9a77;this[_0x33a156('0x63')]=this['tail']?this['tail'][_0x33a156('0xb8')](_0x41266e):_0x41266e();};function VoiceQueueReport(_0x46b678){const _0x234b8d=_0x1f9a77;this[_0x234b8d('0x1b')]=new Sequence(),this[_0x234b8d('0x4')]={},this[_0x234b8d('0x8e')]=_0x46b678[_0x234b8d('0x8e')],this[_0x234b8d('0x11')]=_0x46b678[_0x234b8d('0x23')],this[_0x234b8d('0x73')]=_0x46b678[_0x234b8d('0x73')],this[_0x234b8d('0xab')]=!![],this[_0x234b8d('0x96')]=_0x46b678[_0x234b8d('0x96')],this[_0x234b8d('0x47')]={},ami['on'](_0x234b8d('0x25'),this[_0x234b8d('0x2c')]['bind'](this)),ami['on'](_0x234b8d('0x45'),this[_0x234b8d('0x2b')][_0x234b8d('0x6f')](this)),ami['on']('queuecallerjoin',this[_0x234b8d('0x93')][_0x234b8d('0x6f')](this)),ami['on'](_0x234b8d('0x14'),this[_0x234b8d('0xbf')][_0x234b8d('0x6f')](this)),ami['on']('queuecallerleave',this[_0x234b8d('0x16')][_0x234b8d('0x6f')](this)),ami['on'](_0x234b8d('0x2f'),this['syncAgentComplete'][_0x234b8d('0x6f')](this)),ami['on'](_0x234b8d('0x55'),this[_0x234b8d('0x6')]['bind'](this)),ami['on']('varset',this[_0x234b8d('0xc3')][_0x234b8d('0x6f')](this)),ami['on']('hangup',this['syncHangup'][_0x234b8d('0x6f')](this)),ami['on'](_0x234b8d('0x84'),this[_0x234b8d('0x32')][_0x234b8d('0x6f')](this)),ami['on'](_0x234b8d('0x5d'),this[_0x234b8d('0x37')][_0x234b8d('0x6f')](this)),ami['on'](_0x234b8d('0xc4'),this[_0x234b8d('0xa4')][_0x234b8d('0x6f')](this)),ami['on']('attendedtransfer',this[_0x234b8d('0xa7')][_0x234b8d('0x6f')](this)),ami['on'](_0x234b8d('0xbc'),this[_0x234b8d('0xa5')]['bind'](this)),this['loopQueueSummary'](),this['loopQueueShow']();}function clearChannels(_0x82df0b){const _0x4612b3=_0x1f9a77;if(!_[_0x4612b3('0x3a')](_0x82df0b))for(const _0x4fba4f in _0x82df0b){typeof _0x82df0b[_0x4fba4f]!==_0x4612b3('0x3e')&&delete _0x82df0b[_0x4fba4f];}}function clearCampaigns(_0xa87d34){const _0x2604fa=_0x1f9a77;if(!_[_0x2604fa('0x3a')](_0xa87d34))for(const _0x129b74 in _0xa87d34){typeof _0xa87d34[_0x129b74]!==_0x2604fa('0x3e')&&(_0xa87d34[_0x129b74][_0x2604fa('0x92')]=0x0);}}function clearVoiceQueues(_0x5a8a55){const _0xa28822=_0x1f9a77;if(!_[_0xa28822('0x3a')](_0x5a8a55))for(const _0xaef3f9 in _0x5a8a55){typeof _0x5a8a55[_0xaef3f9]!==_0xa28822('0x3e')&&(_0x5a8a55[_0xaef3f9]['originated']=0x0,_0x5a8a55[_0xaef3f9][_0xa28822('0xc5')]=0x0,_0x5a8a55[_0xaef3f9][_0xa28822('0x77')]=0x0,_0x5a8a55[_0xaef3f9][_0xa28822('0xe')]=0x0,_0x5a8a55[_0xaef3f9][_0xa28822('0x17')]=!![]);}}function clearAgentBooked(_0x5b66ae){const _0x2867be=_0x1f9a77;if(!_[_0x2867be('0x3a')](_0x5b66ae))for(const _0x425a09 in _0x5b66ae){typeof _0x5b66ae[_0x425a09]!==_0x2867be('0x3e')&&(_0x5b66ae[_0x425a09]['unlockRR']=!![]);}}VoiceQueueReport['prototype']['clearZombieChannels']=function(){const _0x5c202a=_0x1f9a77,_0x11fafa=this;for(const _0x16c238 in this[_0x5c202a('0x11')]){typeof this[_0x5c202a('0x11')][_0x16c238]!==_0x5c202a('0x3e')&&!this[_0x5c202a('0x11')][_0x16c238][_0x5c202a('0x38')]&&this[_0x5c202a('0x1b')][_0x5c202a('0x2d')](function(){const _0x411f1f=_0x5c202a;if(!_['isNil'](_0x11fafa[_0x411f1f('0x11')][_0x16c238]))return ami['Action']({'action':_0x411f1f('0x3'),'channel':_0x11fafa[_0x411f1f('0x11')][_0x16c238][_0x411f1f('0x79')]})[_0x411f1f('0x7a')](function(_0x4f601e){const _0x5db6d9=_0x411f1f;_0x4f601e[_0x5db6d9('0x36')]===_0x5db6d9('0x7e')&&setTimeout(function(){const _0x208b39=_0x5db6d9;_0x11fafa[_0x208b39('0x11')][_0x16c238]&&(delete _0x11fafa[_0x208b39('0x11')][_0x16c238],logger['error'](_0x208b39('0x75'),_0x16c238)),_0x11fafa[_0x208b39('0x4')][_0x16c238]&&(delete _0x11fafa['queueReports'][_0x16c238],logger['error']('[voiceQueueReport][checkQueueReport]',_0x16c238)),_0x11fafa[_0x208b39('0x47')][_0x16c238]&&(delete _0x11fafa[_0x208b39('0x47')][_0x16c238],logger['error'](_0x208b39('0x15'),_0x16c238));},0x1f40);});});}},VoiceQueueReport[_0x1f9a77('0x89')][_0x1f9a77('0x32')]=function(){const _0x25b5c8=_0x1f9a77;logger['error'](_0x25b5c8('0x26')),clearChannels(this[_0x25b5c8('0x11')]),this[_0x25b5c8('0xa9')](this[_0x25b5c8('0x4')]),clearAgentBooked(this[_0x25b5c8('0x8e')]),clearVoiceQueues(this[_0x25b5c8('0x73')]),clearCampaigns(this['campaigns']);},VoiceQueueReport[_0x1f9a77('0x89')][_0x1f9a77('0xa9')]=function(_0x5dfcc8){const _0x1c2c90=_0x1f9a77,_0x253fff=this;if(!_[_0x1c2c90('0x3a')](_0x5dfcc8))for(const _0x5c0be2 in _0x5dfcc8){typeof _0x5dfcc8[_0x5c0be2]!==_0x1c2c90('0x3e')&&(_0x253fff['emitVoiceQueueChannelRemove'](_0x5dfcc8[_0x5c0be2]),delete _0x5dfcc8[_0x5c0be2]);}};function loggerCatch(_0x52f3ed){return function(_0x352b59){const _0x4b0082=a1097_0x4dfc;logger[_0x4b0082('0x56')](_0x52f3ed,util[_0x4b0082('0x4f')](_0x352b59,{'showHidden':![],'depth':null}));};}VoiceQueueReport[_0x1f9a77('0x89')][_0x1f9a77('0xd')]=function(_0x37191f,_0x57a574,_0x35f605){const _0x409dbd=_0x1f9a77;io['to'](_0x37191f)[_0x409dbd('0xd')](_0x57a574,_0x35f605);},VoiceQueueReport[_0x1f9a77('0x89')][_0x1f9a77('0xc0')]=function(_0x343a06){const _0x41cfdb=_0x1f9a77;this[_0x41cfdb('0xd')](util[_0x41cfdb('0x24')](_0x41cfdb('0xaa'),_0x343a06[_0x41cfdb('0x4b')]),_0x41cfdb('0x58'),_0x343a06);},VoiceQueueReport['prototype'][_0x1f9a77('0x1e')]=function(_0x4691e5){const _0x1e3dfb=_0x1f9a77;logger[_0x1e3dfb('0x10')](_0x1e3dfb('0x9e'),JSON[_0x1e3dfb('0x72')](_0x4691e5)),this['emit'](util[_0x1e3dfb('0x24')](_0x1e3dfb('0xaa'),_0x4691e5[_0x1e3dfb('0x4b')]),_0x1e3dfb('0x1'),_0x4691e5);},VoiceQueueReport[_0x1f9a77('0x89')][_0x1f9a77('0x64')]=function(_0x1328ab){const _0x35dce3=_0x1f9a77;if(_0x1328ab[_0x35dce3('0x8c')]===_0x35dce3('0x7f')){const _0xd0507c={'id':_0x1328ab['id'],'name':_0x1328ab[_0x35dce3('0x4b')],'strategy':_0x1328ab[_0x35dce3('0xbd')],'answered':_0x1328ab[_0x35dce3('0x97')],'available':_0x1328ab[_0x35dce3('0x6d')],'loggedIn':_0x1328ab[_0x35dce3('0x99')],'pTalking':_0x1328ab[_0x35dce3('0x77')],'sumBillable':_0x1328ab['sumBillable'],'sumDuration':_0x1328ab[_0x35dce3('0x98')],'sumHoldTime':_0x1328ab[_0x35dce3('0x43')]||0x0,'talking':_0x1328ab[_0x35dce3('0xc5')],'total':_0x1328ab[_0x35dce3('0x19')],'type':_0x1328ab[_0x35dce3('0x8c')],'unmanaged':_0x1328ab[_0x35dce3('0x21')],'abandoned':_0x1328ab['abandoned'],'waiting':_0x1328ab['waiting']};_0x1328ab[_0x35dce3('0x52')]&&(_0xd0507c[_0x35dce3('0x52')]={'id':_0x1328ab[_0x35dce3('0x52')]['id'],'name':_0x1328ab[_0x35dce3('0x52')][_0x35dce3('0x4b')],'active':_0x1328ab[_0x35dce3('0x52')][_0x35dce3('0x83')],'callerid':_0x1328ab[_0x35dce3('0x52')][_0x35dce3('0x66')]});_0x1328ab[_0x35dce3('0x53')]&&(_0xd0507c['Interval']={'id':_0x1328ab[_0x35dce3('0x53')]['id'],'name':_0x1328ab[_0x35dce3('0x53')]['name']});const _0x90d9a1=md5(JSON['stringify'](_0xd0507c));_0x1328ab[_0x35dce3('0x40')]!==_0x90d9a1&&(_0x1328ab[_0x35dce3('0x40')]=_0x90d9a1,this['emit'](util['format'](_0x35dce3('0xaa'),_0xd0507c[_0x35dce3('0x4b')]),_0x35dce3('0xba'),_0xd0507c));}},VoiceQueueReport[_0x1f9a77('0x89')][_0x1f9a77('0xbb')]=function(_0x52abe0){const _0xff854b=_0x1f9a77;return _0x52abe0!==null&&!_[_0xff854b('0x94')](_0x52abe0);},VoiceQueueReport[_0x1f9a77('0x89')][_0x1f9a77('0xc')]=function(){const _0x32154d=this;setInterval(function(){const _0x330b22=a1097_0x4dfc;_0x32154d[_0x330b22('0x28')](),ami['Action']({'action':_0x330b22('0x34')})['catch'](loggerCatch(_0x330b22('0x9a')));},0x2710);},VoiceQueueReport[_0x1f9a77('0x89')][_0x1f9a77('0x82')]=function(){const _0x5bc690=this;setInterval(function(){const _0x47349d=a1097_0x4dfc;if(_0x5bc690[_0x47349d('0xab')])return ami['Action']({'action':_0x47349d('0x25')})[_0x47349d('0x41')](function(){const _0x51f193=_0x47349d;_0x5bc690[_0x51f193('0xab')]=![];})[_0x47349d('0x7a')](loggerCatch(_0x47349d('0x7')));},0x3e8);},VoiceQueueReport[_0x1f9a77('0x89')][_0x1f9a77('0x2c')]=function(_0x3c149a){const _0x1da981=_0x1f9a77;try{if(this[_0x1da981('0xbb')](_0x3c149a)&&this['isNotNull'](_0x3c149a[_0x1da981('0x27')])){if(this[_0x1da981('0x73')][_0x3c149a[_0x1da981('0x27')]]){const _0x22c7cf=_[_0x1da981('0xac')](this[_0x1da981('0x11')],_0x1da981('0x27'))[_0x3c149a[_0x1da981('0x27')]]||0x0,_0x2e07c3=_0x22c7cf-_0x3c149a[_0x1da981('0xa1')];(this['voiceQueues'][_0x3c149a[_0x1da981('0x27')]][_0x1da981('0xe')]!==_[_0x1da981('0x31')](_0x3c149a[_0x1da981('0xa1')])||this['voiceQueues'][_0x3c149a[_0x1da981('0x27')]][_0x1da981('0x99')]!==_[_0x1da981('0x31')](_0x3c149a[_0x1da981('0x88')])||this['voiceQueues'][_0x3c149a[_0x1da981('0x27')]]['available']!==_['toNumber'](_0x3c149a['available'])||this[_0x1da981('0x73')][_0x3c149a[_0x1da981('0x27')]]['talking']!==_0x2e07c3)&&(this[_0x1da981('0x73')][_0x3c149a[_0x1da981('0x27')]]['waiting']=_['toNumber'](_0x3c149a[_0x1da981('0xa1')]),this[_0x1da981('0x73')][_0x3c149a[_0x1da981('0x27')]][_0x1da981('0x99')]=_[_0x1da981('0x31')](_0x3c149a[_0x1da981('0x88')]),this['voiceQueues'][_0x3c149a[_0x1da981('0x27')]][_0x1da981('0x6d')]=_['toNumber'](_0x3c149a[_0x1da981('0x6d')]),this[_0x1da981('0x73')][_0x3c149a['queue']][_0x1da981('0xc5')]=_0x2e07c3>0x0?_0x2e07c3:0x0,this['voiceQueues'][_0x3c149a[_0x1da981('0x27')]][_0x1da981('0xc5')]=this[_0x1da981('0x73')][_0x3c149a[_0x1da981('0x27')]][_0x1da981('0xc5')]>_[_0x1da981('0x31')](_0x3c149a['loggedin'])?_[_0x1da981('0x31')](_0x3c149a['loggedin']):this[_0x1da981('0x73')][_0x3c149a[_0x1da981('0x27')]][_0x1da981('0xc5')],this[_0x1da981('0x64')](this[_0x1da981('0x73')][_0x3c149a[_0x1da981('0x27')]])),ami[_0x1da981('0xd')](_0x1da981('0x9f'),this[_0x1da981('0x73')][_0x3c149a[_0x1da981('0x27')]]);}}}catch(_0x3613c3){logger[_0x1da981('0x56')]('[syncQueueSummary][VoiceQueueReport]',util[_0x1da981('0x4f')](_0x3613c3,{'showHidden':![],'depth':null}));}},VoiceQueueReport['prototype'][_0x1f9a77('0x2b')]=function(){const _0x5a7d5c=_0x1f9a77;this[_0x5a7d5c('0xab')]=!![];},VoiceQueueReport[_0x1f9a77('0x89')][_0x1f9a77('0xa0')]=function(){},VoiceQueueReport[_0x1f9a77('0x89')][_0x1f9a77('0x93')]=function(_0x560ce1){const _0x29cf3f=_0x1f9a77;try{if(this[_0x29cf3f('0xbb')](_0x560ce1)){_[_0x29cf3f('0x94')](this[_0x29cf3f('0x4')][_0x560ce1['uniqueid']])&&(this[_0x29cf3f('0x4')][_0x560ce1['uniqueid']]=[],this[_0x29cf3f('0x11')][_0x560ce1[_0x29cf3f('0x33')]]={});const _0xff2f5c=new QueueReport();_0xff2f5c[_0x29cf3f('0x4b')]=_0x560ce1[_0x29cf3f('0x27')],_0xff2f5c[_0x29cf3f('0x8c')]=this[_0x29cf3f('0x73')][_0xff2f5c[_0x29cf3f('0x4b')]]&&this[_0x29cf3f('0x73')][_0xff2f5c[_0x29cf3f('0x4b')]][_0x29cf3f('0x8c')]?this[_0x29cf3f('0x73')][_0xff2f5c['name']][_0x29cf3f('0x8c')]||_0x29cf3f('0x7f'):_0x29cf3f('0x7f'),_0xff2f5c['queue']=_0x560ce1[_0x29cf3f('0x27')],_0xff2f5c['queuecallerjoinAt']=moment()[_0x29cf3f('0x24')](_0x29cf3f('0x48')),_0xff2f5c[_0x29cf3f('0xb9')]=_0x560ce1[_0x29cf3f('0xb9')],_0xff2f5c['count']=_0x560ce1[_0x29cf3f('0xb2')],_[_0x29cf3f('0x4c')](_0xff2f5c,_[_0x29cf3f('0xa3')](_0x560ce1,_[_0x29cf3f('0x20')](_0xff2f5c))),this[_0x29cf3f('0x4')][_0x560ce1[_0x29cf3f('0x33')]][_0x29cf3f('0x8a')](_0xff2f5c),this[_0x29cf3f('0x11')][_0x560ce1[_0x29cf3f('0x33')]]=_0xff2f5c,this[_0x29cf3f('0xc0')](_0xff2f5c);}}catch(_0x29a80d){logger[_0x29cf3f('0x56')]('[syncQueueCallerJoin][VoiceQueueReport]',util['inspect'](_0x29a80d,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x1f9a77('0x89')]['syncQueueCallerAbandon']=function(_0x1ccec1){const _0x2e4f6f=_0x1f9a77;try{if(this[_0x2e4f6f('0xbb')](_0x1ccec1)){if(this[_0x2e4f6f('0x4')][_0x1ccec1[_0x2e4f6f('0x33')]]){const _0xb7b756=_[_0x2e4f6f('0x65')](this[_0x2e4f6f('0x4')][_0x1ccec1[_0x2e4f6f('0x33')]]);_0xb7b756[_0x2e4f6f('0x54')]=![],_0xb7b756[_0x2e4f6f('0x12')]=null,_0xb7b756['holdtime']=_0x1ccec1['holdtime'],_0xb7b756[_0x2e4f6f('0x62')]=_0x1ccec1[_0x2e4f6f('0x62')],_0xb7b756[_0x2e4f6f('0x14')]=!![],_0xb7b756[_0x2e4f6f('0x2')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),_0xb7b756['queuecallerexitreason']=_0x2e4f6f('0xb0'),_0xb7b756[_0x2e4f6f('0x80')]=null,this[_0x2e4f6f('0x11')][_0x1ccec1[_0x2e4f6f('0x33')]]=_0xb7b756,this['emitVoiceQueueChannelRemove'](_0xb7b756);}}}catch(_0x548979){logger[_0x2e4f6f('0x56')]('[syncQueueCallerAbandon][VoiceQueueReport]',util[_0x2e4f6f('0x4f')](_0x548979,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x1f9a77('0x89')][_0x1f9a77('0x16')]=function(_0x5810c0){const _0x326a6f=_0x1f9a77;try{if(this[_0x326a6f('0xbb')](_0x5810c0)){if(this[_0x326a6f('0x4')][_0x5810c0[_0x326a6f('0x33')]]){const _0x3696a2=_[_0x326a6f('0x65')](this['queueReports'][_0x5810c0[_0x326a6f('0x33')]]);_0x3696a2['queuecallerleaveAt']=moment()[_0x326a6f('0x24')](_0x326a6f('0x48')),_0x3696a2[_0x326a6f('0xb5')]=_0x5810c0[_0x326a6f('0xb5')],_0x3696a2[_0x326a6f('0xa2')]=_0x5810c0[_0x326a6f('0xa2')],this[_0x326a6f('0x11')][_0x5810c0[_0x326a6f('0x33')]]=_0x3696a2,this[_0x326a6f('0xc0')](_0x3696a2);}}}catch(_0x1dd034){logger[_0x326a6f('0x56')](_0x326a6f('0x1f'),util[_0x326a6f('0x4f')](_0x1dd034,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x1f9a77('0x89')][_0x1f9a77('0x6')]=function(_0x4b1772){const _0x2b9241=_0x1f9a77;try{if(this[_0x2b9241('0xbb')](_0x4b1772)){if(this[_0x2b9241('0x4')][_0x4b1772[_0x2b9241('0x33')]]){const _0x48d9bd=_[_0x2b9241('0x65')](this[_0x2b9241('0x4')][_0x4b1772[_0x2b9241('0x33')]]);_0x48d9bd[_0x2b9241('0x54')]=!![],_0x48d9bd[_0x2b9241('0x61')]='COMPLETEDBYAGENT';}}}catch(_0x15d536){logger[_0x2b9241('0x56')](_0x2b9241('0x91'),util['inspect'](_0x15d536,{'showHidden':![],'depth':null}));}},VoiceQueueReport['prototype'][_0x1f9a77('0x95')]=function(_0x16879a){const _0xccffe5=_0x1f9a77;try{if(this[_0xccffe5('0xbb')](_0x16879a)){if(this[_0xccffe5('0x4')][_0x16879a[_0xccffe5('0x33')]]){const _0x4ea2a5=_['last'](this[_0xccffe5('0x4')][_0x16879a[_0xccffe5('0x33')]]);_0x4ea2a5[_0xccffe5('0x14')]=![],_0x4ea2a5['queuecallerabandonAt']=null,_0x4ea2a5[_0xccffe5('0xb1')]=!![],_0x4ea2a5[_0xccffe5('0x80')]=_0x16879a['membername'],_0x4ea2a5['holdtime']=_0x16879a[_0xccffe5('0x5')],_0x4ea2a5[_0xccffe5('0x54')]=!![],_0x4ea2a5[_0xccffe5('0x4d')]=![],_0x4ea2a5[_0xccffe5('0x5c')]=null;if(!_0x4ea2a5[_0xccffe5('0xb7')]){if(_0x16879a[_0xccffe5('0x5f')]==_0xccffe5('0xb7'))_0x4ea2a5[_0xccffe5('0x61')]=_0xccffe5('0x6b');else{if(_[_0xccffe5('0x3f')](_0x16879a[_0xccffe5('0x79')]['toLowerCase'](),'local/')){if(this[_0xccffe5('0x4')][_0x16879a['linkedid']]){const _0x41df44=_[_0xccffe5('0x65')](this[_0xccffe5('0x4')][_0x16879a[_0xccffe5('0x9c')]]);_0x41df44['queuecallercomplete']=![],_0x41df44['queuecallerexit']=!![],_0x41df44[_0xccffe5('0x5c')]=moment(_0x4ea2a5['queuecallerjoinAt'])[_0xccffe5('0x50')](_0x16879a[_0xccffe5('0x5')],_0xccffe5('0xb3'))[_0xccffe5('0x24')](_0xccffe5('0x48')),_0x41df44[_0xccffe5('0x61')]=_0xccffe5('0xa8'),_0x41df44[_0xccffe5('0xb7')]=!![],_0x41df44[_0xccffe5('0x59')]=_0xccffe5('0xb4'),_0x41df44[_0xccffe5('0x5e')]=_0x16879a[_0xccffe5('0x74')],_0x41df44[_0xccffe5('0x7d')]=_0x16879a[_0xccffe5('0x33')];const _0x18beb9=this[_0xccffe5('0x4')][_0x16879a[_0xccffe5('0x9c')]];this[_0xccffe5('0x4')][_0x16879a[_0xccffe5('0x9c')]]=this[_0xccffe5('0x4')][_0x16879a['uniqueid']],this[_0xccffe5('0x4')][_0x16879a[_0xccffe5('0x33')]]=_0x18beb9;}}else _0x4ea2a5['queuecallerexitreason']=_0xccffe5('0x51')+_0x16879a[_0xccffe5('0x5f')][_0xccffe5('0xc6')]();}}this[_0xccffe5('0x11')][_0x16879a['uniqueid']]=_0x4ea2a5,this[_0xccffe5('0x1e')](_0x4ea2a5);}}}catch(_0x413c2d){logger[_0xccffe5('0x56')](_0xccffe5('0x78'),util[_0xccffe5('0x4f')](_0x413c2d,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x1f9a77('0x89')][_0x1f9a77('0xc3')]=function(_0x208663){const _0x3cf612=_0x1f9a77;try{if(this[_0x3cf612('0xbb')](_0x208663)){this['addVariable'](_0x208663[_0x3cf612('0x33')],_[_0x3cf612('0x20')](_0x208663['variable'])[0x0],_0x208663['value']);if(this[_0x3cf612('0x4')][_0x208663['uniqueid']]){const _0xabcf1c=_[_0x3cf612('0x65')](this[_0x3cf612('0x4')][_0x208663[_0x3cf612('0x33')]]);if(_0xabcf1c){if(this[_0x3cf612('0xbb')](_0x208663[_0x3cf612('0x7b')])&&this['isNotNull'](_0x208663[_0x3cf612('0x7b')][_0x3cf612('0x87')])){switch(_0x208663[_0x3cf612('0x4e')]){case _0x3cf612('0x8d'):_0xabcf1c[_0x3cf612('0x4d')]=![],_0xabcf1c[_0x3cf612('0x5c')]=null;break;case _0x3cf612('0x3c'):_0xabcf1c[_0x3cf612('0x46')]='timeout',ami['emit'](_0x3cf612('0x57'),_0xabcf1c);break;default:_0xabcf1c['queuecallerexit']=!![],_0xabcf1c['queuecallerexitAt']=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),_0xabcf1c[_0x3cf612('0x68')]=moment()[_0x3cf612('0x24')]('YYYY-MM-DD\x20HH:mm:ss');}_0xabcf1c['queuecallerabandon']=![],_0xabcf1c[_0x3cf612('0x2')]=null,_0xabcf1c[_0x3cf612('0x61')]=_0x208663[_0x3cf612('0x4e')],this[_0x3cf612('0x11')][_0x208663[_0x3cf612('0x33')]]=_0xabcf1c,this['emitVoiceQueueChannelRemove'](_0xabcf1c);}else this[_0x3cf612('0xbb')](_0x208663[_0x3cf612('0x7b')])&&this[_0x3cf612('0xbb')](_0x208663[_0x3cf612('0x7b')][_0x3cf612('0x6a')])&&(!_0xabcf1c[_0x3cf612('0x14')]&&(_0xabcf1c[_0x3cf612('0x4d')]=!![],_0xabcf1c[_0x3cf612('0x5c')]=moment()[_0x3cf612('0x24')]('YYYY-MM-DD\x20HH:mm:ss'),_0xabcf1c[_0x3cf612('0x61')]='EXITWITHKEY',_0xabcf1c[_0x3cf612('0x68')]=moment()[_0x3cf612('0x24')](_0x3cf612('0x48')),this[_0x3cf612('0x11')][_0x208663[_0x3cf612('0x33')]]=_0xabcf1c));_0xabcf1c[_0x3cf612('0x47')]=this[_0x3cf612('0x47')][_0x208663[_0x3cf612('0x33')]];}}}}catch(_0x25ad91){logger[_0x3cf612('0x56')](_0x3cf612('0x3d'),util[_0x3cf612('0x4f')](_0x25ad91,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x1f9a77('0x89')][_0x1f9a77('0x13')]=function(_0x113769,_0x568a72,_0x5c5a84){const _0x5c1571=_0x1f9a77,_0x52a3f8=[_0x5c1571('0xad'),'rtpaudioqosbridged',_0x5c1571('0x42'),_0x5c1571('0x86'),'rtpaudioqosloss','rtpaudioqoslossbridged',_0x5c1571('0x49'),_0x5c1571('0x0'),'sipcallid',_0x5c1571('0x3b'),_0x5c1571('0x30'),_0x5c1571('0x1d'),_0x5c1571('0x6e'),_0x5c1571('0x9'),_0x5c1571('0x1c'),'memberlastcall',_0x5c1571('0x81'),_0x5c1571('0x9b'),'memberrealtime'];!_[_0x5c1571('0xae')](_0x568a72)&&!_[_0x5c1571('0x9d')](_0x52a3f8,_0x568a72)&&(_[_0x5c1571('0x94')](this[_0x5c1571('0x47')][_0x113769])&&(this[_0x5c1571('0x47')][_0x113769]={}),this[_0x5c1571('0x47')][_0x113769][_0x568a72]=_0x5c5a84);},VoiceQueueReport[_0x1f9a77('0x89')][_0x1f9a77('0xf')]=function(_0x25b4c7){const _0x4e20f9=_0x1f9a77;try{if(this[_0x4e20f9('0xbb')](_0x25b4c7)){if(this[_0x4e20f9('0x4')][_0x25b4c7[_0x4e20f9('0x33')]]){for(let _0x3a7450=0x0,_0x2fb54f={};_0x3a74500x0?_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={};_0x365832=0x0?moment(_0xcac189[_0x4a3729('0xa')])[_0x4a3729('0xf')](_0xcac189['starttime'],'seconds'):null,'data1':_0x4a3729('0x1b'),'data2':_0xcac189[_0x4a3729('0x11')],'data3':_0xcac189[_0x4a3729('0x18')],'data4':_0xcac189[_0x4a3729('0xc')]||null,'role':_0x4a3729('0x16'),'internal':_0xcac189[_0x4a3729('0x11')]?_['toNumber'](_0xcac189[_0x4a3729('0x11')]):undefined,'uniqueid':_0xcac189[_0x4a3729('0xb')]},'log':'CreateMemberReport'});}; \ No newline at end of file +const a1118_0x4ca2=['accountcode','moment','diff','agent','lodash','inbound','Request','queuecallerexitAt','../client','seconds','toNumber','TALKING','CreateMemberReport','endtime','queue','exten','lastAssignedTo','outbound','SIP/%s','queuecallerleaveAt','interface','voiceDialReport','starttime','util','isNil','uniqueid','voice','format'];(function(_0x171885,_0x4ca24d){const _0x5126d7=function(_0x41cb07){while(--_0x41cb07){_0x171885['push'](_0x171885['shift']());}};_0x5126d7(++_0x4ca24d);}(a1118_0x4ca2,0x1c1));const a1118_0x5126=function(_0x171885,_0x4ca24d){_0x171885=_0x171885-0x0;let _0x5126d7=a1118_0x4ca2[_0x171885];return _0x5126d7;};const _0x4bf68f=a1118_0x5126;'use strict';const moment=require(_0x4bf68f('0x0')),_=require(_0x4bf68f('0x3')),util=require(_0x4bf68f('0x16')),client=require(_0x4bf68f('0x7'));exports['voiceQueueReport']=function(_0x41cb07){const _0x451480=_0x4bf68f,_0x29dc69=_0x41cb07['queuecallercompleteAt']||_0x41cb07[_0x451480('0x6')];return client[_0x451480('0x5')](_0x451480('0xb'),{'body':{'channel':_0x451480('0x19'),'membername':_0x41cb07[_0x451480('0xf')],'interface':_[_0x451480('0x17')](_0x41cb07[_0x451480('0x13')])?util[_0x451480('0x1a')](_0x451480('0x11'),_0x41cb07[_0x451480('0xf')]):_0x41cb07[_0x451480('0x13')],'type':_0x451480('0xa'),'enterAt':_0x41cb07['queuecallerleaveAt'],'exitAt':_0x29dc69,'duration':moment(_0x29dc69)[_0x451480('0x1')](_0x41cb07[_0x451480('0x12')],'seconds'),'data1':_0x451480('0x4'),'data2':_0x41cb07['calleridnum'],'data3':_0x41cb07[_0x451480('0xe')],'data4':null,'data5':_0x41cb07[_0x451480('0xd')],'role':_0x451480('0x2'),'internal':_0x41cb07[_0x451480('0x1b')]?_[_0x451480('0x9')](_0x41cb07['accountcode']):undefined,'uniqueid':_0x41cb07[_0x451480('0x18')]},'log':_0x451480('0xb')});},exports[_0x4bf68f('0x14')]=function(_0x53f6a5){const _0x43c1ab=_0x4bf68f;return client[_0x43c1ab('0x5')](_0x43c1ab('0xb'),{'body':{'channel':_0x43c1ab('0x19'),'membername':_0x53f6a5['membername'],'interface':_0x53f6a5[_0x43c1ab('0x13')],'type':_0x43c1ab('0xa'),'enterAt':_0x53f6a5['starttime'],'exitAt':_0x53f6a5[_0x43c1ab('0xc')],'duration':moment(_0x53f6a5[_0x43c1ab('0xc')])['diff'](_0x53f6a5[_0x43c1ab('0x15')],_0x43c1ab('0x8'))>=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 diff --git a/server/services/ami/rpc/template.js b/server/services/ami/rpc/template.js index 6150c0d..cda411c 100644 --- a/server/services/ami/rpc/template.js +++ b/server/services/ami/rpc/template.js @@ -1 +1 @@ -const a1119_0x285f=['Request','../client','GetTemplate','getTemplates','name','html'];(function(_0x24fed9,_0x285f55){const _0x126407=function(_0x1a89b6){while(--_0x1a89b6){_0x24fed9['push'](_0x24fed9['shift']());}};_0x126407(++_0x285f55);}(a1119_0x285f,0x97));const a1119_0x1264=function(_0x24fed9,_0x285f55){_0x24fed9=_0x24fed9-0x0;let _0x126407=a1119_0x285f[_0x24fed9];return _0x126407;};const _0x1fadcb=a1119_0x1264;'use strict';const client=require(_0x1fadcb('0x0'));exports[_0x1fadcb('0x2')]=function(){return function(){const _0x366e56=a1119_0x1264;return client[_0x366e56('0x5')](_0x366e56('0x1'),{'options':{'raw':!![],'attributes':['id',_0x366e56('0x3'),_0x366e56('0x4')]},'log':_0x366e56('0x1')});};}; \ No newline at end of file +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 diff --git a/server/services/ami/rpc/trigger.js b/server/services/ami/rpc/trigger.js index 22fe9a3..1fe3b1d 100644 --- a/server/services/ami/rpc/trigger.js +++ b/server/services/ami/rpc/trigger.js @@ -1 +1 @@ -const a1120_0x2f41=['name','AnyConditions','Actions','channel','action','field','../client','operator','Request','data3','data6','data5','Condition','value'];(function(_0x414075,_0x2f4134){const _0x3ef7a7=function(_0x3c9497){while(--_0x3c9497){_0x414075['push'](_0x414075['shift']());}};_0x3ef7a7(++_0x2f4134);}(a1120_0x2f41,0x138));const a1120_0x3ef7=function(_0x414075,_0x2f4134){_0x414075=_0x414075-0x0;let _0x3ef7a7=a1120_0x2f41[_0x414075];return _0x3ef7a7;};const _0x56ee78=a1120_0x3ef7;'use strict';const client=require(_0x56ee78('0x2'));exports['getTriggers']=function(){return function(){const _0x3df0f2=a1120_0x3ef7;return client[_0x3df0f2('0x4')]('GetTrigger',{'options':{'raw':![],'attributes':['id',_0x3df0f2('0xa'),_0x3df0f2('0xd'),'status'],'include':[{'model':_0x3df0f2('0x8'),'as':'AllConditions','attributes':['id',_0x3df0f2('0x1'),_0x3df0f2('0x3'),_0x3df0f2('0x9')]},{'model':_0x3df0f2('0x8'),'as':_0x3df0f2('0xb'),'attributes':['id',_0x3df0f2('0x1'),'operator',_0x3df0f2('0x9')]},{'model':'Action','as':_0x3df0f2('0xc'),'attributes':['id',_0x3df0f2('0x0'),'data1','data2',_0x3df0f2('0x5'),'data4',_0x3df0f2('0x7'),_0x3df0f2('0x6'),'data7']}]},'log':'GetTrigger'});};}; \ No newline at end of file +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 diff --git a/server/services/ami/rpc/trunk.js b/server/services/ami/rpc/trunk.js index db36a4f..80973d9 100644 --- a/server/services/ami/rpc/trunk.js +++ b/server/services/ami/rpc/trunk.js @@ -1 +1 @@ -const a1121_0x2d45=['name','registry','GetTrunk','../client','Request','getTrunks'];(function(_0x1f0af9,_0x2d45f3){const _0x1958c5=function(_0x19c2af){while(--_0x19c2af){_0x1f0af9['push'](_0x1f0af9['shift']());}};_0x1958c5(++_0x2d45f3);}(a1121_0x2d45,0x1a5));const a1121_0x1958=function(_0x1f0af9,_0x2d45f3){_0x1f0af9=_0x1f0af9-0x0;let _0x1958c5=a1121_0x2d45[_0x1f0af9];return _0x1958c5;};const _0x5b1703=a1121_0x1958;'use strict';const client=require(_0x5b1703('0x2'));exports[_0x5b1703('0x4')]=function(){return function(){const _0x5a5749=a1121_0x1958;return client[_0x5a5749('0x3')]('GetTrunk',{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0x5a5749('0x5'),_0x5a5749('0x0')]},'log':_0x5a5749('0x1')});};}; \ No newline at end of file +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 diff --git a/server/services/ami/rpc/user.js b/server/services/ami/rpc/user.js index acb5bec..09d5748 100644 --- a/server/services/ami/rpc/user.js +++ b/server/services/ami/rpc/user.js @@ -1 +1 @@ -const a1122_0x2b73=['GetUser','UnpauseUser','Request','../client','ShowUser','saveUnpause','PauseUser','fullname','getAgent','savePause','internal','email','accountcode','agent','lastPauseAt','getTelephones','name','pauseType','interface','lastLoginAt','voicePause','mobile','getAgents','online','phone'];(function(_0x44263f,_0x2b738c){const _0x5b7d68=function(_0x4f3a56){while(--_0x4f3a56){_0x44263f['push'](_0x44263f['shift']());}};_0x5b7d68(++_0x2b738c);}(a1122_0x2b73,0x81));const a1122_0x5b7d=function(_0x44263f,_0x2b738c){_0x44263f=_0x44263f-0x0;let _0x5b7d68=a1122_0x2b73[_0x44263f];return _0x5b7d68;};const _0x5ba1bb=a1122_0x5b7d;'use strict';const client=require(_0x5ba1bb('0x18'));exports[_0x5ba1bb('0x12')]=function(){return function(){const _0x28fc6c=a1122_0x5b7d;return client[_0x28fc6c('0x17')](_0x28fc6c('0x15'),{'options':{'raw':![],'where':{'role':'agent'},'attributes':['id',_0x28fc6c('0xc'),'email',_0x28fc6c('0x8'),'fullname',_0x28fc6c('0x13'),_0x28fc6c('0xf'),_0x28fc6c('0xd'),_0x28fc6c('0xa'),_0x28fc6c('0x10'),_0x28fc6c('0x14'),_0x28fc6c('0x11'),_0x28fc6c('0xe')]},'log':_0x28fc6c('0x12')});};},exports[_0x5ba1bb('0xb')]=function(){return function(){const _0x892ce7=a1122_0x5b7d;return client['Request'](_0x892ce7('0x15'),{'options':{'raw':!![],'where':{'role':'telephone'},'attributes':['id',_0x892ce7('0xc'),_0x892ce7('0x8'),_0x892ce7('0x6')]},'log':'getTelephones'});};},exports[_0x5ba1bb('0x5')]=function(_0x4f3a56,_0x539197,_0x42283b){const _0x596102=_0x5ba1bb;return client['Request'](_0x596102('0x2'),{'body':{'type':_0x539197,'uniqueid':_0x42283b},'options':{'where':{'id':_0x4f3a56['id']}},'log':'savePause'});},exports[_0x5ba1bb('0x1')]=function(_0x25c9a9){const _0xacdf0=_0x5ba1bb;return client[_0xacdf0('0x17')](_0xacdf0('0x16'),{'body':{},'options':{'where':{'id':_0x25c9a9['id']}},'log':_0xacdf0('0x5')});},exports[_0x5ba1bb('0x4')]=function(_0x3dfbed){const _0x333586=_0x5ba1bb;return client[_0x333586('0x17')](_0x333586('0x0'),{'options':{'raw':![],'where':{'role':_0x333586('0x9'),'id':_0x3dfbed},'attributes':['id',_0x333586('0xc'),_0x333586('0x7'),'accountcode',_0x333586('0x3'),_0x333586('0x13'),'lastLoginAt','pauseType',_0x333586('0xa'),_0x333586('0x10'),'interface']},'log':_0x333586('0x4')});}; \ No newline at end of file +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 diff --git a/server/services/ami/rpc/voiceAgentReport.js b/server/services/ami/rpc/voiceAgentReport.js index 5da5176..a5f6f18 100644 --- a/server/services/ami/rpc/voiceAgentReport.js +++ b/server/services/ami/rpc/voiceAgentReport.js @@ -1 +1 @@ -const a1123_0x51ad=['../client','Request','CreateVoiceAgentReport','create','UpdateVoiceAgentReport'];(function(_0x1ce359,_0x51addc){const _0x478ecf=function(_0x18cb31){while(--_0x18cb31){_0x1ce359['push'](_0x1ce359['shift']());}};_0x478ecf(++_0x51addc);}(a1123_0x51ad,0x1ac));const a1123_0x478e=function(_0x1ce359,_0x51addc){_0x1ce359=_0x1ce359-0x0;let _0x478ecf=a1123_0x51ad[_0x1ce359];return _0x478ecf;};const _0x3cd1ca=a1123_0x478e;'use strict';const client=require(_0x3cd1ca('0x2'));exports[_0x3cd1ca('0x0')]=function(_0x18cb31){const _0x4fa03b=_0x3cd1ca;return client[_0x4fa03b('0x3')](_0x4fa03b('0x4'),{'body':_0x18cb31,'log':'CreateVoiceAgentReport'});},exports['update']=function(_0x46e0a2,_0x3ce94e,_0xacf9a5){const _0x3452e6=_0x3cd1ca;return client[_0x3452e6('0x3')](_0x3452e6('0x1'),{'body':_0x46e0a2,'options':{'where':{'uniqueid':_0x3ce94e,'interface':_0xacf9a5,'agentcomplete':!![]}},'log':_0x3452e6('0x1')});}; \ No newline at end of file +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 diff --git a/server/services/ami/rpc/voiceCallReport.js b/server/services/ami/rpc/voiceCallReport.js index 2dcee1e..011ba10 100644 --- a/server/services/ami/rpc/voiceCallReport.js +++ b/server/services/ami/rpc/voiceCallReport.js @@ -1 +1 @@ -const a1124_0x25fa=['getVoiceCallReports','callerid','outbound','endOf','Request','day','merge','duration','YYYY-MM-DD\x20HH:mm:ss','calleridnum','GetVoiceCallReport','../client','GetVoiceCallReports','disposition','CreateVoiceCallReport','context','moment','type','format','create'];(function(_0x37a43d,_0x25fa25){const _0x1f36ae=function(_0x45ec2b){while(--_0x45ec2b){_0x37a43d['push'](_0x37a43d['shift']());}};_0x1f36ae(++_0x25fa25);}(a1124_0x25fa,0xf8));const a1124_0x1f36=function(_0x37a43d,_0x25fa25){_0x37a43d=_0x37a43d-0x0;let _0x1f36ae=a1124_0x25fa[_0x37a43d];return _0x1f36ae;};const _0x515687=a1124_0x1f36;'use strict';const moment=require(_0x515687('0x8')),_=require('lodash'),client=require(_0x515687('0x3'));exports[_0x515687('0xb')]=function(_0x45ec2b){const _0x2c6fbd=_0x515687;return client[_0x2c6fbd('0x10')](_0x2c6fbd('0x6'),{'body':_[_0x2c6fbd('0x12')](_0x45ec2b,{'source':_0x45ec2b[_0x2c6fbd('0x1')],'destinationcontext':_0x45ec2b[_0x2c6fbd('0x7')],'callerid':_0x45ec2b[_0x2c6fbd('0xd')],'amaflags':'DOCUMENTATION'}),'log':_0x2c6fbd('0x6')});},exports[_0x515687('0xc')]=function(){return function(){const _0x123fe6=a1124_0x1f36;return client[_0x123fe6('0x10')](_0x123fe6('0x2'),{'options':{'where':{'type':[_0x123fe6('0xe')],'createdAt':{'$between':[moment()['startOf'](_0x123fe6('0x11'))[_0x123fe6('0xa')]('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0x123fe6('0xf')]('day')[_0x123fe6('0xa')](_0x123fe6('0x0'))]}},'attributes':[_0x123fe6('0x9'),_0x123fe6('0x5'),_0x123fe6('0x13'),'billableseconds']},'log':_0x123fe6('0x4')});};}; \ No newline at end of file +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 diff --git a/server/services/ami/rpc/voiceDialReport.js b/server/services/ami/rpc/voiceDialReport.js index 27ea5d1..5df2afe 100644 --- a/server/services/ami/rpc/voiceDialReport.js +++ b/server/services/ami/rpc/voiceDialReport.js @@ -1 +1 @@ -const a1125_0x120a=['CreateVoiceDialReport','create','Request'];(function(_0x57fc66,_0x120aa1){const _0x42e9e4=function(_0x2da5df){while(--_0x2da5df){_0x57fc66['push'](_0x57fc66['shift']());}};_0x42e9e4(++_0x120aa1);}(a1125_0x120a,0x13d));const a1125_0x42e9=function(_0x57fc66,_0x120aa1){_0x57fc66=_0x57fc66-0x0;let _0x42e9e4=a1125_0x120a[_0x57fc66];return _0x42e9e4;};const _0x486f43=a1125_0x42e9;'use strict';const client=require('../client');exports[_0x486f43('0x2')]=function(_0x2da5df){const _0x5e6277=_0x486f43;return client[_0x5e6277('0x0')]('CreateVoiceDialReport',{'body':_0x2da5df,'log':_0x5e6277('0x1')});}; \ No newline at end of file +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 diff --git a/server/services/ami/rpc/voiceExtension.js b/server/services/ami/rpc/voiceExtension.js index 4c68522..de27d90 100644 --- a/server/services/ami/rpc/voiceExtension.js +++ b/server/services/ami/rpc/voiceExtension.js @@ -1 +1 @@ -const a1126_0x17bd=['../client','recordingFormat','GetVoiceExtension','exten','getVoiceExtensions'];(function(_0x48d1c8,_0x17bd58){const _0x56e90e=function(_0x3f2b0c){while(--_0x3f2b0c){_0x48d1c8['push'](_0x48d1c8['shift']());}};_0x56e90e(++_0x17bd58);}(a1126_0x17bd,0x144));const a1126_0x56e9=function(_0x48d1c8,_0x17bd58){_0x48d1c8=_0x48d1c8-0x0;let _0x56e90e=a1126_0x17bd[_0x48d1c8];return _0x56e90e;};const _0x539dc7=a1126_0x56e9;'use strict';const client=require(_0x539dc7('0x1'));exports[_0x539dc7('0x0')]=function(){return function(){const _0x56f45b=a1126_0x56e9;return client['Request'](_0x56f45b('0x3'),{'options':{'raw':!![],'attributes':['id',_0x56f45b('0x4'),_0x56f45b('0x2')],'where':{'VoiceExtensionId':null}},'log':_0x56f45b('0x0')});};}; \ No newline at end of file +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 diff --git a/server/services/ami/rpc/voiceQueue.js b/server/services/ami/rpc/voiceQueue.js index 64e7fc3..2a2a07f 100644 --- a/server/services/ami/rpc/voiceQueue.js +++ b/server/services/ami/rpc/voiceQueue.js @@ -1 +1 @@ -const a1127_0x2a49=['dialNoAnswerRetryFrequency','dialQueueProject','dialTimezone','dialNoSuchNumberRetryFrequency','dialCheckDuplicateType','dialAgentRejectRetryFrequency','dialRandomLastDigitCallerIdNumber','dialBusyMaxRetry','timeout','dialDropMaxRetry','autopause','dialLimitChannel','dialGlobalMaxRetry','callerid','dialMachineRetryFrequency','Request','dialAMDAfterGreetingSilence','dialPredictiveIntervalMaxThreshold','Interval','dialPowerLevel','Trunk','dialAgiAfterHangupAgent','TrunkBackup','dialAMDSilenceThreshold','dialCongestionRetryFrequency','dialLimitQueue','mandatoryDispositionPause','dialAgentRejectMaxRetry','Intervals','dialOriginateTimeout','dialNoSuchNumberMaxRetry','strategy','name','../client','dialNoAnswerMaxRetry','getVoiceQueues','dialMethod','dialPredictiveOptimizationPercentage','dialAMDMaximumNumberOfWords','dialPredictiveInterval','dialPredictiveOptimization','type','dialMachineMaxRetry','monitor_format','dialCongestionMaxRetry','dialAMDGreeting','GetVoiceQueue','dialBusyRetryFrequency','dialAgiAfterHangupClient','dialRecallMeTimeout','active','Pause'];(function(_0x2c4685,_0x2a4937){const _0x37e3ce=function(_0x3a4dd6){while(--_0x3a4dd6){_0x2c4685['push'](_0x2c4685['shift']());}};_0x37e3ce(++_0x2a4937);}(a1127_0x2a49,0xb6));const a1127_0x37e3=function(_0x2c4685,_0x2a4937){_0x2c4685=_0x2c4685-0x0;let _0x37e3ce=a1127_0x2a49[_0x2c4685];return _0x37e3ce;};const _0x3127cb=a1127_0x37e3;'use strict';const client=require(_0x3127cb('0x7'));exports['getVoiceQueues']=function(){return function(){const _0x40c26e=a1127_0x37e3;return client[_0x40c26e('0x29')](_0x40c26e('0x14'),{'options':{'raw':![],'attributes':['id',_0x40c26e('0x6'),'acw','acwTimeout',_0x40c26e('0x24'),_0x40c26e('0x11'),_0x40c26e('0xf'),'dialActive',_0x40c26e('0xa'),_0x40c26e('0x25'),_0x40c26e('0x33'),_0x40c26e('0x2d'),_0x40c26e('0xe'),_0x40c26e('0xb'),_0x40c26e('0xd'),'dialOriginateCallerIdName','dialOriginateCallerIdNumber',_0x40c26e('0x3'),'dialQueueOptions','dialQueueTimeout',_0x40c26e('0x1b'),_0x40c26e('0x12'),_0x40c26e('0x32'),_0x40c26e('0x21'),_0x40c26e('0x15'),_0x40c26e('0x8'),_0x40c26e('0x1a'),_0x40c26e('0x26'),_0x40c26e('0x1c'),'dialGlobalInterval','dialPrefix',_0x40c26e('0x1e'),'dialAMDActive','dialAMDInitialSilence',_0x40c26e('0x13'),_0x40c26e('0x2a'),'dialAMDTotalAnalysisTime','dialAMDMinWordLength','dialAMDBetweenWordsSilence',_0x40c26e('0xc'),_0x40c26e('0x31'),'dialAMDMaximumWordLength',_0x40c26e('0x22'),_0x40c26e('0x17'),'dialRecallInQueue','dialOrderByScheduledAt',_0x40c26e('0x2f'),_0x40c26e('0x16'),'dialQueueProject2',_0x40c26e('0x11'),_0x40c26e('0x5'),_0x40c26e('0x20'),'dialCutDigit',_0x40c26e('0x4'),_0x40c26e('0x1d'),_0x40c26e('0x23'),'dialDropRetryFrequency','dialAbandonedMaxRetry','dialAbandonedRetryFrequency',_0x40c26e('0x10'),_0x40c26e('0x28'),_0x40c26e('0x1'),_0x40c26e('0x1f'),'mandatoryDisposition',_0x40c26e('0x2b'),'dialPredictiveIntervalMinThreshold'],'include':[{'model':_0x40c26e('0x2e'),'as':'Trunk','attributes':['id',_0x40c26e('0x6'),_0x40c26e('0x27'),_0x40c26e('0x18')]},{'model':_0x40c26e('0x19'),'as':_0x40c26e('0x0'),'attributes':['id',_0x40c26e('0x6')]},{'model':'Trunk','as':_0x40c26e('0x30'),'attributes':['id',_0x40c26e('0x6'),_0x40c26e('0x27'),_0x40c26e('0x18')]},{'model':_0x40c26e('0x2c'),'as':_0x40c26e('0x2c'),'attributes':['id',_0x40c26e('0x6')],'include':[{'model':'Interval','as':_0x40c26e('0x2'),'attributes':['id',_0x40c26e('0x6'),'interval']}]}]},'log':_0x40c26e('0x9')});};}; \ No newline at end of file +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 diff --git a/server/services/ami/rpc/voiceQueueReport.js b/server/services/ami/rpc/voiceQueueReport.js index 2d225f3..c104709 100644 --- a/server/services/ami/rpc/voiceQueueReport.js +++ b/server/services/ami/rpc/voiceQueueReport.js @@ -1 +1 @@ -const a1128_0x5848=['startOf','queuecallerabandon','day','create','queue','CreateVoiceQueueReport','YYYY-MM-DD\x20HH:mm:ss','queuecallerabandonAt','endOf','queuecallercomplete','GetVoiceQueueReport','GetVoiceQueueReports','queuecallerjoinAt','format','queuecallerleaveAt','Request','queuecallercompleteAt','queuecallerexitAt'];(function(_0x4c8e50,_0x584891){const _0x459e02=function(_0x459b4f){while(--_0x459b4f){_0x4c8e50['push'](_0x4c8e50['shift']());}};_0x459e02(++_0x584891);}(a1128_0x5848,0x111));const a1128_0x459e=function(_0x4c8e50,_0x584891){_0x4c8e50=_0x4c8e50-0x0;let _0x459e02=a1128_0x5848[_0x4c8e50];return _0x459e02;};const _0x52db72=a1128_0x459e;'use strict';const moment=require('moment'),client=require('../client');exports[_0x52db72('0x0')]=function(_0x459b4f){const _0x47b28f=_0x52db72;return client[_0x47b28f('0xc')](_0x47b28f('0x2'),{'body':_0x459b4f,'log':_0x47b28f('0x2')});},exports['getVoiceQueueReports']=function(){return function(){const _0xcfca0f=a1128_0x459e;return client[_0xcfca0f('0xc')](_0xcfca0f('0x7'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xcfca0f('0xf')](_0xcfca0f('0x11'))['format']('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0xcfca0f('0x5')](_0xcfca0f('0x11'))[_0xcfca0f('0xa')](_0xcfca0f('0x3'))]}},'attributes':['uniqueid',_0xcfca0f('0x1'),_0xcfca0f('0x9'),_0xcfca0f('0xb'),_0xcfca0f('0x6'),_0xcfca0f('0xd'),'queuecallerexit',_0xcfca0f('0xe'),_0xcfca0f('0x10'),_0xcfca0f('0x4')]},'log':_0xcfca0f('0x8')});};}; \ No newline at end of file +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 diff --git a/server/services/ami/rpc/voiceQueueRt.js b/server/services/ami/rpc/voiceQueueRt.js index e3b1dd1..dfe81db 100644 --- a/server/services/ami/rpc/voiceQueueRt.js +++ b/server/services/ami/rpc/voiceQueueRt.js @@ -1 +1 @@ -const a1129_0x351b=['../client','Request','getVoiceQueueRtPauses'];(function(_0x4d1b43,_0x351b31){const _0x10adf4=function(_0x3d16f9){while(--_0x3d16f9){_0x4d1b43['push'](_0x4d1b43['shift']());}};_0x10adf4(++_0x351b31);}(a1129_0x351b,0xc3));const a1129_0x10ad=function(_0x4d1b43,_0x351b31){_0x4d1b43=_0x4d1b43-0x0;let _0x10adf4=a1129_0x351b[_0x4d1b43];return _0x10adf4;};const _0x4f0d0a=a1129_0x10ad;'use strict';const client=require(_0x4f0d0a('0x0'));exports[_0x4f0d0a('0x2')]=function(_0x3d16f9){return function(){const _0x40f084=a1129_0x10ad;return client[_0x40f084('0x1')]('GetVoiceQueueRtPauses',{'options':{'where':{'VoiceQueueId':_0x3d16f9,'paused':!![]},'raw':!![]},'log':_0x40f084('0x2')});};}; \ No newline at end of file +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 diff --git a/server/services/ami/rpc/voiceRecording.js b/server/services/ami/rpc/voiceRecording.js index f174d65..f7093a9 100644 --- a/server/services/ami/rpc/voiceRecording.js +++ b/server/services/ami/rpc/voiceRecording.js @@ -1 +1 @@ -const a1130_0x221e=['create','lodash','merge','monitorFilename','CreateVoiceRecording','Request'];(function(_0x5ee4b4,_0x221e83){const _0xa87eca=function(_0x15ef30){while(--_0x15ef30){_0x5ee4b4['push'](_0x5ee4b4['shift']());}};_0xa87eca(++_0x221e83);}(a1130_0x221e,0xe5));const a1130_0xa87e=function(_0x5ee4b4,_0x221e83){_0x5ee4b4=_0x5ee4b4-0x0;let _0xa87eca=a1130_0x221e[_0x5ee4b4];return _0xa87eca;};const _0x28a6ba=a1130_0xa87e;'use strict';const _=require(_0x28a6ba('0x0')),client=require('../client');exports[_0x28a6ba('0x5')]=function(_0x15ef30){const _0x3333e0=_0x28a6ba;return client[_0x3333e0('0x4')](_0x3333e0('0x3'),{'body':_[_0x3333e0('0x1')](_0x15ef30,{'value':_0x15ef30[_0x3333e0('0x2')]}),'log':'CreateVoiceRecording'});}; \ No newline at end of file +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 diff --git a/server/services/ami/rpc/voiceTransferReport.js b/server/services/ami/rpc/voiceTransferReport.js index 5a6b153..6e87474 100644 --- a/server/services/ami/rpc/voiceTransferReport.js +++ b/server/services/ami/rpc/voiceTransferReport.js @@ -1 +1 @@ -const a1131_0x140d=['transferercalleridnum','transfereraccountcode','Request','origtransfererchannel','transfereelinkedid','result','transfertargetcalleridname','transfertargetaccountcode','secondtransfererexten','origtransferercalleridnum','transfererchannel','blindTransfer','origtransfereraccountcode','transfereecontext','transfererexten','transfereeaccountcode','origtransfererexten','attended','attendedTransfer','origtransfererlinkedid','isexternal','transferercontext','transfereeexten','transfertargetconnectedlinenum','secondtransferercontext','transfertargetlinkedid','transfertargetexten','transfereechannel','context','transfereecalleridname','CreateVoiceTransferReport','../client','blind','origtransferercontext','secondtransfererconnectedlinenum','transfertargetchannel','transfereeconnectedlinename','transferercalleridname','transfereecalleridnum'];(function(_0x4f9418,_0x140d9c){const _0x44e815=function(_0x527132){while(--_0x527132){_0x4f9418['push'](_0x4f9418['shift']());}};_0x44e815(++_0x140d9c);}(a1131_0x140d,0x11c));const a1131_0x44e8=function(_0x4f9418,_0x140d9c){_0x4f9418=_0x4f9418-0x0;let _0x44e815=a1131_0x140d[_0x4f9418];return _0x44e815;};const _0x431e2b=a1131_0x44e8;'use strict';const client=require(_0x431e2b('0x14'));exports[_0x431e2b('0x0')]=function(_0x527132){const _0xc61bae=_0x431e2b;return client[_0xc61bae('0x1e')](_0xc61bae('0x13'),{'body':{'result':_0x527132[_0xc61bae('0x21')],'transfererchannel':_0x527132[_0xc61bae('0x26')],'transferercalleridnum':_0x527132[_0xc61bae('0x1c')],'transferercalleridname':_0x527132[_0xc61bae('0x1a')],'transfererconnectedlinenum':_0x527132['transfererconnectedlinenum'],'transfererconnectedlinename':_0x527132['transfererconnectedlinename'],'transfereraccountcode':_0x527132[_0xc61bae('0x1d')],'transferercontext':_0x527132[_0xc61bae('0xa')],'transfererexten':_0x527132[_0xc61bae('0x3')],'transfererlinkedid':_0x527132['transfererlinkedid'],'transfereechannel':_0x527132[_0xc61bae('0x10')],'transfereecalleridnum':_0x527132[_0xc61bae('0x1b')],'transfereecalleridname':_0x527132[_0xc61bae('0x12')],'transfereeconnectedlinenum':_0x527132['transfereeconnectedlinenum'],'transfereeconnectedlinename':_0x527132[_0xc61bae('0x19')],'transfereeaccountcode':_0x527132[_0xc61bae('0x4')],'transfereecontext':_0x527132[_0xc61bae('0x2')],'transfereeexten':_0x527132[_0xc61bae('0xb')],'transfereelinkedid':_0x527132[_0xc61bae('0x20')],'isexternal':_0x527132[_0xc61bae('0x9')],'context':_0x527132[_0xc61bae('0x11')],'extension':_0x527132['extension'],'type':_0xc61bae('0x15')},'log':'CreateVoiceTransferReport'});},exports[_0x431e2b('0x7')]=function(_0x909641){const _0x6adf37=_0x431e2b;return client[_0x6adf37('0x1e')](_0x6adf37('0x13'),{'body':{'result':_0x909641[_0x6adf37('0x21')],'transfererchannel':_0x909641[_0x6adf37('0x1f')],'transferercalleridnum':_0x909641[_0x6adf37('0x25')],'transferercalleridname':_0x909641['origtransferercalleridname'],'transfererconnectedlinenum':_0x909641[_0x6adf37('0x17')],'transfererconnectedlinename':_0x909641['secondtransfererconnectedlinename'],'transfereraccountcode':_0x909641[_0x6adf37('0x1')],'transferercontext':_0x909641[_0x6adf37('0xd')],'transfererexten':_0x909641[_0x6adf37('0x24')],'transfererlinkedid':_0x909641[_0x6adf37('0x8')],'transfereechannel':_0x909641[_0x6adf37('0x18')],'transfereecalleridnum':_0x909641['transfertargetcalleridnum'],'transfereecalleridname':_0x909641[_0x6adf37('0x22')],'transfereeconnectedlinenum':_0x909641[_0x6adf37('0xc')],'transfereeconnectedlinename':_0x909641['transfertargetconnectedlinename'],'transfereeaccountcode':_0x909641[_0x6adf37('0x23')],'transfereecontext':_0x909641['transfertargetcontext'],'transfereeexten':_0x909641[_0x6adf37('0xf')],'transfereelinkedid':_0x909641[_0x6adf37('0xe')],'isexternal':_0x909641[_0x6adf37('0x9')],'context':_0x909641[_0x6adf37('0x16')],'extension':_0x909641[_0x6adf37('0x5')],'type':_0x6adf37('0x6')},'log':'CreateVoiceTransferReport'});}; \ No newline at end of file +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 diff --git a/server/services/ami/server/index.js b/server/services/ami/server/index.js index 29b2974..246df02 100644 --- a/server/services/ami/server/index.js +++ b/server/services/ami/server/index.js @@ -1 +1 @@ -const a1132_0x31d1=['error','erlangAbandonmentRate','emit','startProgressive','timers','voicequeuechannel','dialOriginateTimeout','catch','predictiveIntervalAvgTalktime','channel','voiceQueues','pick','mixmonitorid','Action','message','outboundNoAnswerCallsDay','total','lodash','MixMonitor\x20Success','monitors','Interval','join','find','Hangup','YYYY-MM-DD\x20HH:mm:ss','outboundDropCallsDayACS','Event\x20name\x20mandatory','sumHoldTime','callerid','outboundRejectCallsDay','predictiveIntervalTotalCalls','voicequeuechannelhangup','module','Redirect','loggedIn','isConnected','content','length','talking','outboundOriginateFailureCallsDay','dialOriginateCallerIdName','loggedInDb','outboundNoSuchCallsDay','dialPrefix','isNil','outboundCongestionCallsDay','exten','../ami','Channel\x20doesn\x27t\x20exist','dialMethod','predictiveIntervalPauses','erlangCallToSecond','listen','dialActive','%s.%s','type','stop','faxAccounts','action','timer','erlangBusyFactor','resolve','map','127.0.0.1','/var/spool/asterisk/monitor/','outboundUnknownCallsDay','rec','dialOriginateCallerIdNumber','agents','ami\x20disconnected','log','uniqueid','validate','RPC\x20listening\x20on\x20port:','originated','then','QueuePause','telephones','util','pause','predictiveIntervalErlangCalls','predictiveIntervalAvgHoldtime','erlangCalls','status','jayson/promise','Trunk','predictiveIntervalAnsweredCalls','outboundAnswerCallsDay','startPredictive','name','channels','StopMixMonitor','context','outboundAnswerAgiCallsDay','http','filename','toLowerCase','updateAcw','predictiveIntervalMultiplicativeFactor','predictiveIntervalHitRate','queueChannels','predictiveIntervalDroppedCallsTimeout','event','outbound','undefined','outboundBusyCallsDay','predictiveIntervalErlangCallsDroppedCalls','voicequeuechannelredirect','username','predictiveIntervalAvailable','Reload','asterisk','ai(mixmonitorid)','values','outboundDropCallsDayTimeout','StopMixMonitor\x20Success','wav','MixMonitor','active','pTalking','outboundChannels','../../../config/environment','format','sumDuration','command','unmanaged','destinationchannel','outboundDropCallsDayCallersExit','AMI\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!','predictiveIntervalDroppedCallsCallersExit','Command','keys','push','checkAfterSend'];(function(_0x1801ba,_0x31d128){const _0x217fdd=function(_0xaa04c4){while(--_0xaa04c4){_0x1801ba['push'](_0x1801ba['shift']());}};_0x217fdd(++_0x31d128);}(a1132_0x31d1,0x1c9));const a1132_0x217f=function(_0x1801ba,_0x31d128){_0x1801ba=_0x1801ba-0x0;let _0x217fdd=a1132_0x31d1[_0x1801ba];return _0x217fdd;};const _0x2c4403=a1132_0x217f;'use strict';const _=require(_0x2c4403('0x60')),util=require(_0x2c4403('0x17')),jayson=require(_0x2c4403('0x1d')),schema=require('validate'),moment=require('moment'),config=require(_0x2c4403('0x42')),properties=require('../properties'),ami=require(_0x2c4403('0x7e'));exports[_0x2c4403('0x83')]=function(_0xaa04c4,_0x2308f3,_0x140588){return new Promise(function(_0x3958fc,_0x25fbb5){const _0x2b248e=a1132_0x217f,_0x136f05={'QueuePause':function(_0x4ed0e4){return new Promise(function(_0x5891f9){const _0x3d74a7=a1132_0x217f,_0x551329=util['format']('%s/%s','SIP',_0x4ed0e4[_0x3d74a7('0x22')]);_0xaa04c4[_0x3d74a7('0x53')]&&_0xaa04c4[_0x3d74a7('0x53')][_0x551329]&&_0xaa04c4['timers'][_0x551329][_0x3d74a7('0x4')]&&_0xaa04c4[_0x3d74a7('0x53')][_0x551329][_0x3d74a7('0x2a')](),_0xaa04c4[_0x3d74a7('0xd')][_0x551329]&&_0xaa04c4[_0x3d74a7('0xd')][_0x551329]['updateStatusRealtime']({'statePause':_0x4ed0e4[_0x3d74a7('0x18')]?!![]:![]}),_0x5891f9({'code':0xc8,'message':_0x3d74a7('0x15')});});},'Reload':function(_0x278419){const _0x14ec2f=this;return new Promise(function(_0x360919,_0x3c05a2){const _0x3a1836=a1132_0x217f;if(ami[_0x3a1836('0x72')]()==![])return _0x3c05a2(_0x14ec2f[_0x3a1836('0x4f')](0x1f4,[config[_0x3a1836('0x38')]['ip'],config[_0x3a1836('0x38')][_0x3a1836('0x35')],_0x3a1836('0xe')][_0x3a1836('0x64')]('\x20')));return _0x278419=_[_0x3a1836('0x5a')](_0x278419,_[_0x3a1836('0x4c')](properties[_0x3a1836('0x6f')])),_0x278419[_0x3a1836('0x3')]=_0x3a1836('0x37'),ami[_0x3a1836('0x5c')](_0x278419)[_0x3a1836('0x14')](function(_0x321376){const _0x568f59=_0x3a1836;_0x360919({'code':0xc8,'message':_0x321376[_0x568f59('0x5d')]});})['catch'](function(_0x3d6210){const _0xd78ee=_0x3a1836;_0x3c05a2(_0x14ec2f[_0xd78ee('0x4f')](0x1f5,_0x3d6210[_0xd78ee('0x5d')]));});});},'Command':function(_0x25b17f){const _0x61fdb=this;return new Promise(function(_0x18b1cc,_0x2069d9){const _0x51c188=a1132_0x217f;if(ami[_0x51c188('0x72')]()==![])return _0x2069d9(_0x61fdb['error'](0x1f4,[config[_0x51c188('0x38')]['ip'],config[_0x51c188('0x38')][_0x51c188('0x35')],'ami\x20disconnected'][_0x51c188('0x64')]('\x20')));return _0x25b17f=_['pick'](_0x25b17f,_0x51c188('0x45')),_0x25b17f[_0x51c188('0x3')]=_0x51c188('0x4b'),ami[_0x51c188('0x5c')](_0x25b17f)['then'](function(_0x44ba37){const _0x51c4c7=_0x51c188;_0x18b1cc({'code':0xc8,'message':_0x44ba37[_0x51c4c7('0x73')]});})['catch'](function(_0x48d81b){const _0x140cc2=_0x51c188;_0x2069d9(_0x61fdb[_0x140cc2('0x4f')](0x1f5,_0x48d81b[_0x140cc2('0x5d')]));});});},'VoiceQueues':function(){return new Promise(function(_0xd530d){const _0x216401=a1132_0x217f,_0xe4058d=[];for(const _0xde0c14 in _0xaa04c4['voiceQueues']){if(typeof _0xaa04c4[_0x216401('0x59')][_0xde0c14]!==_0x216401('0x31')){const _0x45e465=_0xaa04c4['voiceQueues'][_0xde0c14],_0x5e4c22={'id':_0x45e465['id'],'name':_0x45e465[_0x216401('0x22')],'strategy':_0x45e465['strategy'],'answered':_0x45e465['answered'],'available':_0x45e465['available'],'loggedIn':_0x45e465[_0x216401('0x71')],'pTalking':_0x45e465[_0x216401('0x40')],'sumBillable':_0x45e465['sumBillable'],'sumDuration':_0x45e465[_0x216401('0x44')],'sumHoldTime':_0x45e465[_0x216401('0x6a')]||0x0,'talking':_0x45e465[_0x216401('0x75')],'total':_0x45e465[_0x216401('0x5f')],'type':_0x45e465[_0x216401('0x0')],'unmanaged':_0x45e465[_0x216401('0x46')],'abandoned':_0x45e465['abandoned'],'waiting':_0x45e465['waiting'],'loggedInDb':_0x45e465[_0x216401('0x78')]};_0x45e465[_0x216401('0x0')]===_0x216401('0x30')&&(_0x5e4c22[_0x216401('0x84')]=_0x45e465['dialActive'],_0x5e4c22[_0x216401('0x80')]=_0x45e465['dialMethod'],_0x5e4c22['dialOriginateCallerIdName']=_0x45e465[_0x216401('0x77')],_0x5e4c22[_0x216401('0xc')]=_0x45e465[_0x216401('0xc')],_0x5e4c22['dialOriginateTimeout']=_0x45e465[_0x216401('0x55')],_0x5e4c22[_0x216401('0x7a')]=_0x45e465['dialPrefix'],_0x5e4c22[_0x216401('0x26')]=_0x45e465[_0x216401('0x26')],_0x5e4c22[_0x216401('0x20')]=_0x45e465['outboundAnswerCallsDay'],_0x5e4c22['outboundBlacklistCallsDay']=_0x45e465['outboundBlacklistCallsDay'],_0x5e4c22[_0x216401('0x32')]=_0x45e465['outboundBusyCallsDay'],_0x5e4c22[_0x216401('0x7c')]=_0x45e465[_0x216401('0x7c')],_0x5e4c22[_0x216401('0x68')]=_0x45e465[_0x216401('0x68')],_0x5e4c22[_0x216401('0x48')]=_0x45e465[_0x216401('0x48')],_0x5e4c22[_0x216401('0x3b')]=_0x45e465['outboundDropCallsDayTimeout'],_0x5e4c22[_0x216401('0x5e')]=_0x45e465[_0x216401('0x5e')],_0x5e4c22['outboundNoSuchCallsDay']=_0x45e465[_0x216401('0x79')],_0x5e4c22[_0x216401('0x76')]=_0x45e465['outboundOriginateFailureCallsDay'],_0x5e4c22['outboundReCallsDay']=_0x45e465['outboundReCallsDay'],_0x5e4c22[_0x216401('0x6c')]=_0x45e465['outboundRejectCallsDay'],_0x5e4c22[_0x216401('0xa')]=_0x45e465[_0x216401('0xa')],_0x5e4c22[_0x216401('0x1f')]=_0x45e465[_0x216401('0x1f')],_0x5e4c22[_0x216401('0x1a')]=_0x45e465[_0x216401('0x1a')],_0x5e4c22['predictiveIntervalAvgTalktime']=_0x45e465[_0x216401('0x57')],_0x5e4c22[_0x216401('0x4a')]=_0x45e465[_0x216401('0x4a')],_0x5e4c22[_0x216401('0x2e')]=_0x45e465[_0x216401('0x2e')],_0x5e4c22['predictiveIntervalErlangCalls']=_0x45e465[_0x216401('0x19')],_0x5e4c22[_0x216401('0x33')]=_0x45e465[_0x216401('0x33')],_0x5e4c22[_0x216401('0x2c')]=_0x45e465[_0x216401('0x2c')],_0x5e4c22[_0x216401('0x2b')]=_0x45e465['predictiveIntervalMultiplicativeFactor'],_0x5e4c22['predictiveIntervalPauses']=_0x45e465[_0x216401('0x81')],_0x5e4c22[_0x216401('0x36')]=_0x45e465[_0x216401('0x36')],_0x5e4c22[_0x216401('0x6d')]=_0x45e465[_0x216401('0x6d')],_0x5e4c22[_0x216401('0x5d')]=_0x45e465[_0x216401('0x5d')],_0x5e4c22[_0x216401('0x13')]=_0x45e465[_0x216401('0x13')],_0x5e4c22['erlangCalls']=_0x45e465[_0x216401('0x1b')],_0x5e4c22[_0x216401('0x82')]=_0x45e465['erlangCallToSecond'],_0x5e4c22[_0x216401('0x50')]=_0x45e465[_0x216401('0x50')],_0x5e4c22[_0x216401('0x5')]=_0x45e465['erlangBusyFactor'],_0x5e4c22[_0x216401('0x21')]=_0x45e465[_0x216401('0x21')],_0x5e4c22[_0x216401('0x52')]=_0x45e465['startProgressive']),_0x45e465[_0x216401('0x1e')]&&(_0x5e4c22[_0x216401('0x1e')]={'id':_0x45e465['Trunk']['id'],'name':_0x45e465[_0x216401('0x1e')]['name'],'active':_0x45e465[_0x216401('0x1e')][_0x216401('0x3f')],'callerid':_0x45e465[_0x216401('0x1e')][_0x216401('0x6b')]}),_0x45e465[_0x216401('0x63')]&&(_0x5e4c22[_0x216401('0x63')]={'id':_0x45e465['Interval']['id'],'name':_0x45e465['Interval'][_0x216401('0x22')]}),_0xe4058d[_0x216401('0x4d')](_0x5e4c22);}}_0xd530d({'count':_0xe4058d[_0x216401('0x74')],'rows':_0xe4058d});});},'VoiceChannels':function(){return new Promise(function(_0xe2734e){const _0x42a5df=a1132_0x217f,_0x8902cd=_[_0x42a5df('0x3a')](_0xaa04c4[_0x42a5df('0x23')]);_0xe2734e({'count':_0x8902cd['length'],'rows':_0x8902cd});});},'VoiceChannelMixMonitor':function(_0x24a1c7){const _0x4ff936=this;return new Promise(function(_0x5cc404,_0x5e75e2){const _0x54e3c6=a1132_0x217f;if(ami[_0x54e3c6('0x72')]()==![])return _0x5e75e2(_0x4ff936[_0x54e3c6('0x4f')](0x1f4,[config['asterisk']['ip'],config['asterisk'][_0x54e3c6('0x35')],'ami\x20disconnected']['join']('\x20')));const _0x278eb2=schema(properties['voicechannel'])['validate'](_0x24a1c7);if(_0x278eb2[_0x54e3c6('0x74')]>0x0)return _0x5e75e2(_0x4ff936[_0x54e3c6('0x4f')](0x1f4,_[_0x54e3c6('0x7')](_0x278eb2,_0x54e3c6('0x5d'))[_0x54e3c6('0x64')](',\x20')));const _0x332028=_['find'](_0xaa04c4['channels'],{'uniqueid':_0x24a1c7[_0x54e3c6('0x10')]});if(_0x332028&&_0x332028['channel']){const _0x1bc56e=util[_0x54e3c6('0x43')](_0x54e3c6('0x85'),_0x24a1c7[_0x54e3c6('0x28')]||_0x24a1c7[_0x54e3c6('0x10')],_0x24a1c7[_0x54e3c6('0x43')]||'wav');return ami['Action']({'action':_0x54e3c6('0x3e'),'channel':_0x332028[_0x54e3c6('0x58')],'file':_0x1bc56e,'options':_0x54e3c6('0x39')})['then'](function(_0x456765){const _0x1bc7b7=_0x54e3c6,_0x5403f7=_[_0x1bc7b7('0x65')](_0x332028[_0x1bc7b7('0x62')],{'filename':_0x1bc7b7('0x9')+_0x1bc56e['toLowerCase']()});_[_0x1bc7b7('0x7b')](_0x5403f7)?_0x332028['monitors'][_0x1bc7b7('0x4d')]({'filename':_0x1bc7b7('0x9')+_0x1bc56e[_0x1bc7b7('0x29')](),'createdAt':moment()[_0x1bc7b7('0x43')](_0x1bc7b7('0x67')),'mixmonitorid':_0x456765[_0x1bc7b7('0x5b')],'status':_0x1bc7b7('0xb')}):(_0x5403f7[_0x1bc7b7('0x5b')]=_0x456765['mixmonitorid'],_0x5403f7[_0x1bc7b7('0x1c')]=_0x1bc7b7('0xb')),_0x5cc404({'code':0xc8,'message':[_0x24a1c7[_0x1bc7b7('0x10')],_0x1bc7b7('0x61'),_0x456765['mixmonitorid']]['join']('\x20'),'mixmonitorid':_0x456765['mixmonitorid']});})[_0x54e3c6('0x56')](function(_0x5a0647){const _0x112bae=_0x54e3c6;_0x5e75e2(_0x4ff936[_0x112bae('0x4f')](0x1f5,[_0x24a1c7[_0x112bae('0x10')],_0x5a0647[_0x112bae('0x5d')]['toLowerCase']()]['join']('\x20')));});}else return _0x5e75e2(_0x4ff936[_0x54e3c6('0x4f')](0x1f5,_0x54e3c6('0x7f')));});},'VoiceChannelStopMixMonitor':function(_0x3fb64f){const _0x4d6731=this;return new Promise(function(_0x247f7e,_0xe9a559){const _0x32763b=a1132_0x217f;if(ami[_0x32763b('0x72')]()==![])return _0xe9a559(_0x4d6731[_0x32763b('0x4f')](0x1f4,[config[_0x32763b('0x38')]['ip'],config[_0x32763b('0x38')][_0x32763b('0x35')],_0x32763b('0xe')][_0x32763b('0x64')]('\x20')));const _0x3548f4=schema(properties['voicechannel'])['validate'](_0x3fb64f);if(_0x3548f4['length']>0x0)return _0xe9a559(_0x4d6731[_0x32763b('0x4f')](0x1f4,_[_0x32763b('0x7')](_0x3548f4,_0x32763b('0x5d'))['join'](',\x20')));const _0x4192c2=_[_0x32763b('0x65')](_0xaa04c4[_0x32763b('0x23')],{'uniqueid':_0x3fb64f['uniqueid']});return _0x4192c2?Promise[_0x32763b('0x6')]()[_0x32763b('0x14')](function(){const _0x1bd630=_0x32763b;if(_0x4192c2[_0x1bd630('0x58')])return ami[_0x1bd630('0x5c')]({'action':_0x1bd630('0x24'),'channel':_0x4192c2['channel'],'mixmonitorid':_0x3fb64f['mixmonitorid']})[_0x1bd630('0x56')](function(){});})[_0x32763b('0x14')](function(){const _0xf395a1=_0x32763b;if(_0x4192c2['destinationchannel'])return ami['Action']({'action':_0xf395a1('0x24'),'channel':_0x4192c2[_0xf395a1('0x47')],'mixmonitorid':_0x3fb64f[_0xf395a1('0x5b')]})[_0xf395a1('0x56')](function(){});})['then'](function(){const _0x82b26e=_0x32763b,_0x42f6c3=_[_0x82b26e('0x65')](_0x4192c2['monitors'],{'mixmonitorid':_0x3fb64f[_0x82b26e('0x5b')]});_0x42f6c3&&(_0x42f6c3[_0x82b26e('0x1c')]=_0x82b26e('0x1'));})[_0x32763b('0x14')](function(){const _0x9fa2a0=_0x32763b,_0x4b5a28=util[_0x9fa2a0('0x43')](_0x9fa2a0('0x85'),_0x3fb64f[_0x9fa2a0('0x28')]||_0x3fb64f[_0x9fa2a0('0x10')],_0x3fb64f[_0x9fa2a0('0x43')]||_0x9fa2a0('0x3d')),_0x4c335d=_[_0x9fa2a0('0x65')](_0x4192c2[_0x9fa2a0('0x62')],{'filename':_0x9fa2a0('0x9')+_0x4b5a28[_0x9fa2a0('0x29')]()});_0x4c335d&&(_0x4c335d['status']=_0x9fa2a0('0x1'));})[_0x32763b('0x14')](function(){const _0x320c21=_0x32763b;_0x247f7e({'code':0xc8,'message':[_0x3fb64f[_0x320c21('0x10')],_0x320c21('0x3c')]['join']('\x20')});})[_0x32763b('0x56')](function(_0x11d55a){const _0x314a05=_0x32763b;_0xe9a559(_0x4d6731[_0x314a05('0x4f')](0x1f5,[_0x3fb64f[_0x314a05('0x10')],_0x11d55a[_0x314a05('0x5d')][_0x314a05('0x29')]()][_0x314a05('0x64')]('\x20')));}):_0xe9a559(_0x4d6731[_0x32763b('0x4f')](0x1f5,_0x32763b('0x7f')));});},'VoiceQueuesChannels':function(){return new Promise(function(_0x3ac7ed){const _0x582789=a1132_0x217f,_0x3de892=_[_0x582789('0x3a')](_0xaa04c4[_0x582789('0x2d')]);_0x3ac7ed({'count':_0x3de892[_0x582789('0x74')],'rows':_0x3de892});});},'VoiceQueuesChannel':function(_0x23c1e1){const _0x4a6223=this;return new Promise(function(_0x2323b0,_0xe43459){const _0x1074b7=a1132_0x217f,_0x4ef5a7=schema(properties[_0x1074b7('0x54')])[_0x1074b7('0x11')](_0x23c1e1);if(_0x4ef5a7['length']>0x0)return _0xe43459(_0x4a6223[_0x1074b7('0x4f')](0x1f4,_['map'](_0x4ef5a7,_0x1074b7('0x5d'))[_0x1074b7('0x64')](',\x20')));const _0x30a1dc=_['find'](_0xaa04c4[_0x1074b7('0x2d')],{'uniqueid':_0x23c1e1['uniqueid']});if(_0x30a1dc)_0x2323b0(_0x30a1dc);else return _0xe43459(_0x4a6223['error'](0x1f5,_0x1074b7('0x7f')));});},'VoiceQueuesChannelHangup':function(_0x2d02b2){const _0x1c0a40=this;return new Promise(function(_0x57bcdc,_0x514fd7){const _0x147e04=a1132_0x217f;if(ami['isConnected']()==![])return _0x514fd7(_0x1c0a40[_0x147e04('0x4f')](0x1f4,[config[_0x147e04('0x38')]['ip'],config[_0x147e04('0x38')][_0x147e04('0x35')],_0x147e04('0xe')]['join']('\x20')));const _0x434bc8=schema(properties[_0x147e04('0x6e')])[_0x147e04('0x11')](_0x2d02b2);if(_0x434bc8[_0x147e04('0x74')]>0x0)return _0x514fd7(_0x1c0a40['error'](0x1f4,_[_0x147e04('0x7')](_0x434bc8,'message')[_0x147e04('0x64')](',\x20')));const _0x4ab429=_[_0x147e04('0x65')](_0xaa04c4[_0x147e04('0x2d')],{'uniqueid':_0x2d02b2[_0x147e04('0x10')]});return _0x4ab429&&_0x4ab429[_0x147e04('0x58')]?ami[_0x147e04('0x5c')]({'action':_0x147e04('0x66'),'channel':_0x4ab429[_0x147e04('0x58')]})[_0x147e04('0x14')](function(_0x134e6a){const _0x1ea3c5=_0x147e04;_0x57bcdc({'code':0xc8,'message':[_0x2d02b2[_0x1ea3c5('0x10')],_0x134e6a['message'][_0x1ea3c5('0x29')]()][_0x1ea3c5('0x64')]('\x20')});})[_0x147e04('0x56')](function(_0x29bfe4){const _0x1c87d8=_0x147e04;_0x514fd7(_0x1c0a40['error'](0x1f5,[_0x2d02b2[_0x1c87d8('0x10')],_0x29bfe4[_0x1c87d8('0x5d')][_0x1c87d8('0x29')]()][_0x1c87d8('0x64')]('\x20')));}):_0x514fd7(_0x1c0a40[_0x147e04('0x4f')](0x1f5,'Channel\x20doesn\x27t\x20exist'));});},'VoiceQueuesChannelRedirect':function(_0x2b8904){const _0x48ae1a=this;return new Promise(function(_0x3e5362,_0x35e04){const _0x110631=a1132_0x217f;if(ami[_0x110631('0x72')]()==![])return _0x35e04(_0x48ae1a['error'](0x1f4,[config[_0x110631('0x38')]['ip'],config[_0x110631('0x38')][_0x110631('0x35')],_0x110631('0xe')][_0x110631('0x64')]('\x20')));const _0x33a8c4=schema(properties[_0x110631('0x34')])[_0x110631('0x11')](_0x2b8904);if(_0x33a8c4['length']>0x0)return _0x35e04(_0x48ae1a[_0x110631('0x4f')](0x1f4,_[_0x110631('0x7')](_0x33a8c4,_0x110631('0x5d'))['join'](',\x20')));const _0x5b3781=_['find'](_0xaa04c4['queueChannels'],{'uniqueid':_0x2b8904[_0x110631('0x10')]});return _0x5b3781&&_0x5b3781[_0x110631('0x58')]?ami[_0x110631('0x5c')]({'action':_0x110631('0x70'),'channel':_0x5b3781[_0x110631('0x58')],'exten':_0x2b8904[_0x110631('0x7d')],'context':_0x2b8904[_0x110631('0x25')]||_0x5b3781[_0x110631('0x25')],'priority':0x1})[_0x110631('0x14')](function(_0x48a5dd){const _0x2926e0=_0x110631;_0x3e5362({'code':0xc8,'message':[_0x2b8904[_0x2926e0('0x10')],_0x48a5dd[_0x2926e0('0x5d')][_0x2926e0('0x29')]()]['join']('\x20')});})[_0x110631('0x56')](function(_0x35daa0){const _0x28c7c4=_0x110631;_0x35e04(_0x48ae1a[_0x28c7c4('0x4f')](0x1f5,[_0x2b8904['uniqueid'],_0x35daa0[_0x28c7c4('0x5d')][_0x28c7c4('0x29')]()]['join']('\x20')));}):_0x35e04(_0x48ae1a[_0x110631('0x4f')](0x1f5,_0x110631('0x7f')));});},'Agents':function(){return new Promise(function(_0x477ef2){const _0x5f3b03=a1132_0x217f,_0x5813d1=_[_0x5f3b03('0x3a')](_0xaa04c4[_0x5f3b03('0xd')]);_0x477ef2({'count':_0x5813d1['length'],'rows':_0x5813d1});});},'Telephones':function(){return new Promise(function(_0x1dacfc){const _0x1b7b91=a1132_0x217f,_0x1fc604=_[_0x1b7b91('0x3a')](_0xaa04c4[_0x1b7b91('0x16')]);_0x1dacfc({'count':_0x1fc604[_0x1b7b91('0x74')],'rows':_0x1fc604});});},'Trunks':function(){return new Promise(function(_0x5c42c3){const _0x24c757=a1132_0x217f,_0x390772=_[_0x24c757('0x3a')](_0xaa04c4['trunks']);_0x5c42c3({'count':_0x390772[_0x24c757('0x74')],'rows':_0x390772});});},'OutboundChannels':function(){return new Promise(function(_0x2474a9){const _0x3b7755=a1132_0x217f,_0x16d750=_[_0x3b7755('0x3a')](_0xaa04c4[_0x3b7755('0x41')]);_0x2474a9({'count':_0x16d750[_0x3b7755('0x74')],'rows':_0x16d750});});},'Outbound':function(){return new Promise(function(_0x150ee4){const _0x2f79d1=a1132_0x217f;_0x150ee4(_0xaa04c4[_0x2f79d1('0x30')]);});},'Campaigns':function(){return new Promise(function(_0x121790){const _0x559afc=a1132_0x217f,_0x34aef5=_[_0x559afc('0x3a')](_0xaa04c4['campaigns']);_0x121790({'count':_0x34aef5[_0x559afc('0x74')],'rows':_0x34aef5});});},'VoiceQueuesPreview':function(_0x19f566){const _0x30a3c8=this;return new Promise(function(_0x398a3d,_0x2df5fd){const _0x3f91e3=a1132_0x217f;_0x2308f3['run'](_0x19f566['id'])[_0x3f91e3('0x14')](function(_0x451ea8){const _0x235706=_0x3f91e3;_0x398a3d({'code':0xc8,'message':_0x451ea8[_0x235706('0x5d')]});})[_0x3f91e3('0x56')](function(_0x2ffb31){const _0x393551=_0x3f91e3;_0x2df5fd(_0x30a3c8[_0x393551('0x4f')](0x1f4,_0x2ffb31[_0x393551('0x5d')]));});});},'EventManager':function(_0x47a5b2){const _0x47bbc5=this;return new Promise(function(_0xbcb159,_0x40d69a){const _0x4b35ca=a1132_0x217f;if(!_0x47a5b2[_0x4b35ca('0x2f')])return _0x40d69a(_0x47bbc5[_0x4b35ca('0x4f')](0x1f4,_0x4b35ca('0x69')));ami[_0x4b35ca('0x51')]('custom:'+_0x47a5b2[_0x4b35ca('0x2f')],_0x47a5b2[_0x4b35ca('0x5d')]),_0xbcb159({'code':0xc8,'message':_0x47a5b2});});},'FaxAccounts':function(){return new Promise(function(_0xe84bcd){const _0x8e18a=a1132_0x217f,_0x2ebd8b=_[_0x8e18a('0x3a')](_0xaa04c4[_0x8e18a('0x2')]);_0xe84bcd({'count':_0x2ebd8b[_0x8e18a('0x74')],'rows':_0x2ebd8b});});},'SendFax':function(_0x54db5a){const _0x34faeb=this;return new Promise(function(_0x4717cf,_0x4edcaf){const _0x2971a6=a1132_0x217f;_0x140588['send'](_0x54db5a)[_0x2971a6('0x14')](function(_0x56aaf8){const _0x20cd23=_0x2971a6;_0x4717cf({'code':0xc8,'message':_0x56aaf8[_0x20cd23('0x5d')]});})[_0x2971a6('0x56')](function(_0xa2ed3c){const _0x2aea57=_0x2971a6;_0x4edcaf(_0x34faeb['error'](0x1f4,_0xa2ed3c[_0x2aea57('0x5d')]));});});},'CheckAfterSend':function(_0xc2e37e){const _0x3b8684=this;return new Promise(function(_0x36b355,_0x172c3b){const _0x48b7ac=a1132_0x217f;_0x140588[_0x48b7ac('0x4e')](_0xc2e37e)['then'](function(_0x5a61c6){_0x36b355({'code':0xc8,'message':_0x5a61c6['message']});})[_0x48b7ac('0x56')](function(_0xfaecaf){const _0x346cb9=_0x48b7ac;_0x172c3b(_0x3b8684[_0x346cb9('0x4f')](0x1f4,_0xfaecaf[_0x346cb9('0x5d')]));});});}},_0x4477f4=jayson['server'](_0x136f05)[_0x2b248e('0x27')]();_0x4477f4['on'](_0x2b248e('0x4f'),function(_0x383041){return _0x25fbb5(_0x383041);}),_0x4477f4[_0x2b248e('0x83')](0x232a,_0x2b248e('0x8'),function(){const _0x26728d=_0x2b248e;return console[_0x26728d('0xf')](_0x26728d('0x49'),0x232a),_0x3958fc(_0x26728d('0x12')+0x232a);});});}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/cmContact/index.js b/server/services/ami/trigger/cmContact/index.js index 111788d..cda075e 100644 --- a/server/services/ami/trigger/cmContact/index.js +++ b/server/services/ami/trigger/cmContact/index.js @@ -1 +1 @@ -const a1133_0x5640=['union','resolve','createdAt','xmd-contactid2','../../../../rediscache','trigger','[CM][%s][%s]','data2','destcalleridnum','lastName','sequelize','data4','action','info','stringify','[CM][%s][%s]\x20Contact\x20not\x20found','exec','calleridnum','isEmpty','trigger:%s','[CM][%s][%s]\x20Contact\x20found:%s','phone','name','util','isNil','user:%s','ListId','calleridname','then','map','../../rpc/cmContact','data1','split','','uniqueid','data3','[CM][%s][%s]\x20Autocreate\x20enabled','createContact','emit','merge','mobile','../../../../config/logger','routeId','format','getContacts','[CM][%s][%s]\x20Autocreate\x20disabled','toLowerCase','firstName','length','destcalleridname','updatedAt'];(function(_0x3cfb9c,_0x5640b1){const _0x12ffe=function(_0x214a52){while(--_0x214a52){_0x3cfb9c['push'](_0x3cfb9c['shift']());}};_0x12ffe(++_0x5640b1);}(a1133_0x5640,0x143));const a1133_0x12ff=function(_0x3cfb9c,_0x5640b1){_0x3cfb9c=_0x3cfb9c-0x0;let _0x12ffe=a1133_0x5640[_0x3cfb9c];return _0x12ffe;};const _0x1a319e=a1133_0x12ff;'use strict';const util=require(_0x1a319e('0x6')),_=require('lodash'),logger=require(_0x1a319e('0x18'))(_0x1a319e('0x27')),cmContactRpc=require(_0x1a319e('0xd')),{Op}=require(_0x1a319e('0x2c')),{getSocket}=require(_0x1a319e('0x26')),io=getSocket();function emit(_0x214a52,_0x1b6496,_0x26a877,_0x6eac25,_0x56247c){const _0x47e3c1=_0x1a319e;logger['info'](_0x47e3c1('0x28'),_0x214a52,_0x1b6496['id'],_0x26a877,_0x6eac25,JSON[_0x47e3c1('0x30')](_0x56247c)),io['to'](_0x26a877)[_0x47e3c1('0x15')](_0x6eac25,_0x56247c);}exports[_0x1a319e('0x32')]=function(_0x2a6d93,_0x449695,_0x5a971b,_0x342bb3){const _0x122672=_0x1a319e;let _0x491269,_0x4177db;const _0x7e42ea={},_0xeb32c8=Number(_0x5a971b[_0x122672('0xe')]),_0x462d3c=_0x5a971b[_0x122672('0x29')]?Boolean(Number(_0x5a971b[_0x122672('0x29')])):![];let _0x5b55ad=[];if(_0x342bb3[_0x122672('0x25')]&&!_[_0x122672('0x1')](_0x342bb3[_0x122672('0x25')]))_0x7e42ea['id']=_0x342bb3[_0x122672('0x25')];!_0x7e42ea['id']&&(_0x7e42ea[_0x122672('0x9')]=_0xeb32c8,_0x5b55ad=_0x5a971b[_0x122672('0x12')]&&_0x5a971b[_0x122672('0x12')]!=='0'?_0x5a971b['data3'][_0x122672('0xf')](','):[_0x122672('0x4')],_0x7e42ea[Op['or']]=_[_0x122672('0xc')](_0x5b55ad,function(_0x46baf0){const _0x66012e=_0x122672,_0x3adbe2={};return _0x3adbe2[_0x46baf0]=_0x342bb3['routeId']?_0x342bb3['destcalleridnum']:_0x342bb3[_0x66012e('0x0')],_0x3adbe2;}));const _0x41a4c7=['id',_0x122672('0x1e'),_0x122672('0x2b'),_0x122672('0x4'),_0x122672('0x17'),'fax',_0x122672('0x9'),_0x122672('0x24'),'scheduledAt',_0x122672('0x21')],_0x14e793=_[_0x122672('0x22')](_0x41a4c7,_0x5b55ad);Promise[_0x122672('0x23')]()[_0x122672('0xb')](cmContactRpc[_0x122672('0x1b')]({'attributes':_0x14e793,'where':_0x7e42ea}))[_0x122672('0xb')](function(_0x11953d){const _0x408596=_0x122672;_0x4177db=_0x11953d;if(!_[_0x408596('0x1')](_0x4177db)){_0x4177db[_0x408596('0x1f')]===0x1?(_0x491269=_0x4177db[0x0],logger[_0x408596('0x2f')](_0x408596('0x3'),_0x342bb3[_0x408596('0x11')],_0x449695['id'],_0x491269['id'])):logger['info']('[CM][%s][%s]\x20Multiple\x20contacts\x20found:[%s]',_0x342bb3[_0x408596('0x11')],_0x449695['id'],_[_0x408596('0xc')](_0x4177db,'id')['join'](','));return;}else{logger['info'](_0x408596('0x31'),_0x342bb3[_0x408596('0x11')],_0x449695['id']);if(_0x462d3c){logger[_0x408596('0x2f')](_0x408596('0x13'),_0x342bb3[_0x408596('0x11')],_0x449695['id']);const _0x525e36=_0x5a971b[_0x408596('0x2d')]&&_0x5a971b[_0x408596('0x2d')]!=='0'?_0x5a971b[_0x408596('0x2d')]:'phone',_0x301061={'ListId':_0xeb32c8};return _0x301061[_0x525e36]=_[_0x408596('0x7')](_0x342bb3[_0x408596('0x19')])?_0x342bb3['calleridnum']:_0x342bb3[_0x408596('0x2a')],_['isNil'](_0x342bb3[_0x408596('0x19')])?_0x301061['firstName']=_0x342bb3[_0x408596('0xa')]&&_0x342bb3['calleridname']!==_0x408596('0x10')?_0x342bb3[_0x408596('0xa')]:'Unknown':_0x301061[_0x408596('0x1e')]=_0x342bb3[_0x408596('0x20')]&&_0x342bb3['destcalleridname']!==_0x408596('0x10')?_0x342bb3[_0x408596('0x20')]:'Unknown',Promise[_0x408596('0x23')]()['then'](cmContactRpc[_0x408596('0x14')](_0x301061))['then'](function(_0x412e9c){const _0x1f0f73=_0x408596;_0x491269=_0x412e9c;_0x491269&&logger['info']('[CM][%s][%s]\x20Contact\x20created:%s',_0x342bb3[_0x1f0f73('0x11')],_0x449695['id'],_0x491269['id']);return;});}else{logger['info'](_0x408596('0x1c'),_0x342bb3[_0x408596('0x11')],_0x449695['id']);return;}}})['then'](function(){const _0x37a3a7=_0x122672;_0x2a6d93&&emit(_0x342bb3[_0x37a3a7('0x11')],_0x449695,util[_0x37a3a7('0x1a')](_0x37a3a7('0x8'),_0x2a6d93[_0x37a3a7('0x5')]),util[_0x37a3a7('0x1a')](_0x37a3a7('0x2'),_0x5a971b[_0x37a3a7('0x2e')][_0x37a3a7('0x1d')]()),{'evt':_[_0x37a3a7('0x16')](_0x342bb3,{'autoCreate':_0x462d3c}),'contact':_0x491269,'contacts':!_0x491269?_0x4177db:undefined});});}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/index.js b/server/services/ami/trigger/index.js index cb228ab..3fbb72d 100644 --- a/server/services/ami/trigger/index.js +++ b/server/services/ami/trigger/index.js @@ -1 +1 @@ -const a1134_0x34b9=['name','deskAccounts','parse','prototype','../ami','./cmContact','clone','templates','field','integration','trigger','../../../rediscache','undefined','freshsalesAccounts','bind','checkTrigger','custom:agentcongestion','render','custom:agentnoanswer','upperFirst','accounts','uri','queue','custom:newinteraction','agents','isNil','custom:closedinteraction','some','./urlforward','custom:dialend','checkTriggers','winapp','AnyConditions','data2','sugarcrmAccounts','browser','AccountId','channel','checkConditions','event','length','custom:outgoingmessage','custom:rejectmessage','location','data3','custom:agentnosuchnumber','600','winApplication','urlforward','user:%s','info','exec','AllConditions','Actions','lodash','operator','syncCustomEvent','custom:acceptmessage','exports','every','stringify','script','data1','interface','uriLocation','variables','salesforceAccounts','custom:agentreject','triggers','membername','zohoAccounts','interaction','zendeskAccounts','syncAgentDial','TemplateId','custom:agentcomplete','dynamics365Accounts','data4','url','custom:dialbegin','custom:timeout','winArguments','util','jscripty','custom:queuecallerabandon','popup','voiceExtensions','./integration','search','voiceQueues','data5','format','value','custom:agentbusy','query','custom:agentconnect','status','lastevent','routeId','servicenowAccounts','contactmanager','action','800','toLowerCase','emit','html','mustache','template\x20not\x20found','windowHeight','windowWidth','merge','data6','ChatWebsiteId'];(function(_0x17ea94,_0x34b92a){const _0x3e3b86=function(_0x4e9f97){while(--_0x4e9f97){_0x17ea94['push'](_0x17ea94['shift']());}};_0x3e3b86(++_0x34b92a);}(a1134_0x34b9,0xd2));const a1134_0x3e3b=function(_0x17ea94,_0x34b92a){_0x17ea94=_0x17ea94-0x0;let _0x3e3b86=a1134_0x34b9[_0x17ea94];return _0x3e3b86;};const _0x1ae530=a1134_0x3e3b;'use strict';const util=require(_0x1ae530('0x62')),_=require(_0x1ae530('0x46')),url=require(_0x1ae530('0x5e')),Mustache=require(_0x1ae530('0x9')),urlforward=require(_0x1ae530('0x2c')),integration=require(_0x1ae530('0x67')),cmContact=require(_0x1ae530('0x15')),script=require('./script'),logger=require('../../../config/logger')(_0x1ae530('0x1a')),ami=require(_0x1ae530('0x14')),{getSocket}=require(_0x1ae530('0x1b')),io=getSocket(),operators={'equals':function(_0x4e9f97,_0x198456){return _0x4e9f97==_0x198456;},'not_equals':function(_0x2987a3,_0x541017){return _0x2987a3!=_0x541017;}},barAndWebActions=[_0x1ae530('0x65'),_0x1ae530('0x5e'),_0x1ae530('0x2f')];function Trigger(_0x2a5850){const _0x572b9a=_0x1ae530;this['triggers']=_0x2a5850[_0x572b9a('0x54')],this[_0x572b9a('0x28')]=_0x2a5850[_0x572b9a('0x28')],this[_0x572b9a('0x69')]=_0x2a5850['voiceQueues'],this[_0x572b9a('0x17')]=_0x2a5850[_0x572b9a('0x17')],this[_0x572b9a('0x66')]=_0x2a5850[_0x572b9a('0x66')],this[_0x572b9a('0x58')]=_0x2a5850['zendeskAccounts'],this['freshdeskAccounts']=_0x2a5850['freshdeskAccounts'],this[_0x572b9a('0x52')]=_0x2a5850[_0x572b9a('0x52')],this['sugarcrmAccounts']=_0x2a5850[_0x572b9a('0x32')],this[_0x572b9a('0x56')]=_0x2a5850[_0x572b9a('0x56')],this[_0x572b9a('0x11')]=_0x2a5850[_0x572b9a('0x11')],this['vtigerAccounts']=_0x2a5850['vtigerAccounts'],this[_0x572b9a('0x2')]=_0x2a5850[_0x572b9a('0x2')],this[_0x572b9a('0x5c')]=_0x2a5850['dynamics365Accounts'],this[_0x572b9a('0x1d')]=_0x2a5850[_0x572b9a('0x1d')],this['accounts']={'zendesk':this[_0x572b9a('0x58')],'salesforce':this[_0x572b9a('0x52')],'freshdesk':this['freshdeskAccounts'],'sugarcrm':this[_0x572b9a('0x32')],'zoho':this[_0x572b9a('0x56')],'desk':this[_0x572b9a('0x11')],'vtiger':this['vtigerAccounts'],'dynamics365':this[_0x572b9a('0x5c')],'freshsales':this['freshsalesAccounts'],'servicenow':this['servicenowAccounts']},ami['on']('custom:agentcalled',this[_0x572b9a('0x48')]['bind'](this)),ami['on'](_0x572b9a('0x6f'),this[_0x572b9a('0x48')][_0x572b9a('0x1e')](this)),ami['on']('custom:agentringnoanswer',this['syncCustomEvent'][_0x572b9a('0x1e')](this)),ami['on'](_0x572b9a('0x5b'),this[_0x572b9a('0x48')]['bind'](this)),ami['on'](_0x572b9a('0x3d'),this[_0x572b9a('0x48')][_0x572b9a('0x1e')](this)),ami['on'](_0x572b9a('0x22'),this['syncCustomEvent'][_0x572b9a('0x1e')](this)),ami['on'](_0x572b9a('0x6d'),this[_0x572b9a('0x48')][_0x572b9a('0x1e')](this)),ami['on'](_0x572b9a('0x20'),this[_0x572b9a('0x48')][_0x572b9a('0x1e')](this)),ami['on'](_0x572b9a('0x53'),this[_0x572b9a('0x48')]['bind'](this)),ami['on'](_0x572b9a('0x64'),this[_0x572b9a('0x48')]['bind'](this)),ami['on'](_0x572b9a('0x60'),this[_0x572b9a('0x48')][_0x572b9a('0x1e')](this)),ami['on'](_0x572b9a('0x5f'),this[_0x572b9a('0x59')][_0x572b9a('0x1e')](this)),ami['on']('custom:dialconnect',this[_0x572b9a('0x59')][_0x572b9a('0x1e')](this)),ami['on'](_0x572b9a('0x2d'),this[_0x572b9a('0x59')]['bind'](this)),ami['on'](_0x572b9a('0x27'),this[_0x572b9a('0x48')][_0x572b9a('0x1e')](this)),ami['on'](_0x572b9a('0x2a'),this[_0x572b9a('0x48')][_0x572b9a('0x1e')](this)),ami['on']('custom:incomingmessage',this['syncCustomEvent'][_0x572b9a('0x1e')](this)),ami['on'](_0x572b9a('0x39'),this['syncCustomEvent'][_0x572b9a('0x1e')](this)),ami['on'](_0x572b9a('0x49'),this[_0x572b9a('0x48')][_0x572b9a('0x1e')](this)),ami['on'](_0x572b9a('0x3a'),this[_0x572b9a('0x48')]['bind'](this));}Trigger[_0x1ae530('0x13')]['emit']=function(_0x538cc7,_0x56dab8,_0x37b287){const _0x363c75=_0x1ae530;logger[_0x363c75('0x42')](_0x538cc7,_0x56dab8,JSON[_0x363c75('0x4c')](_0x37b287)),io['to'](_0x538cc7)[_0x363c75('0x7')](_0x56dab8,_0x37b287);},Trigger['prototype'][_0x1ae530('0x48')]=function(_0x5142c3){const _0x4f1fbd=_0x1ae530,_0x91d54b=_[_0x4f1fbd('0x16')](_0x5142c3);this[_0x4f1fbd('0x2e')](_0x91d54b);},Trigger[_0x1ae530('0x13')]['syncAgentDial']=function(_0x1ea07b){const _0x3108a9=_0x1ae530;this['agents'][_0x1ea07b[_0x3108a9('0x4f')]]&&this[_0x3108a9('0x48')](_0x1ea07b);},Trigger[_0x1ae530('0x13')][_0x1ae530('0x2e')]=function(_0x2f9ad1){const _0x3cd778=_0x1ae530;let _0x3bc7c3;for(const _0x181c3b in this[_0x3cd778('0x54')]){if(typeof this['triggers'][_0x181c3b]!==_0x3cd778('0x1c')){if(this['triggers'][_0x181c3b][_0x3cd778('0x70')]){_0x3bc7c3=this[_0x3cd778('0x1f')](this['triggers'][_0x181c3b],_0x2f9ad1);if(_0x3bc7c3){_[_0x3cd778('0xd')](_0x2f9ad1,_0x2f9ad1[_0x3cd778('0x51')]);for(let _0x59057d=0x0,_0x22e3d1;_0x59057d0x0&&(_0x56de58=_[_0x1cdaa1('0x9')](_0x5432c8,_0x4bbb15)),_0x56de58;}function getCustomFields(_0x497385,_0x2df04b){const _0x51adc7=_0x38ad8e,_0x5c480c={'custom_fields':{}};return _0x497385[_0x51adc7('0x29')]>0x0&&_[_0x51adc7('0x17')](_0x497385,function(_0x5c69af){const _0x4cf084=_0x51adc7;if(_0x5c69af['type']==='string'&&_0x5c69af[_0x4cf084('0x2d')]&&!_0x5c69af[_0x4cf084('0x3b')])_0x5c480c[_0x5c69af[_0x4cf084('0x2d')][_0x4cf084('0x59')]()]=_0x5c69af[_0x4cf084('0x40')]['toString']();else{if(_0x5c69af[_0x4cf084('0x58')]===_0x4cf084('0x5b')&&_0x5c69af[_0x4cf084('0x2f')]&&_0x5c69af[_0x4cf084('0x3b')])_0x5c480c['custom_fields'][_0x5c69af[_0x4cf084('0x2f')]]=_0x5c69af[_0x4cf084('0x40')]['toString']();else{if(_0x5c69af[_0x4cf084('0x58')]===_0x4cf084('0x3c')&&_0x5c69af[_0x4cf084('0x54')]&&_0x5c69af[_0x4cf084('0x2f')]&&_0x5c69af['customField'])_0x2df04b[_0x5c69af[_0x4cf084('0x54')]]&&(_0x5c480c[_0x4cf084('0x45')][_0x5c69af[_0x4cf084('0x2f')]]=_0x2df04b[_0x5c69af[_0x4cf084('0x54')]][_0x4cf084('0x66')]());else _0x5c69af[_0x4cf084('0x58')]===_0x4cf084('0x1c')&&_0x5c69af['Variable']&&_0x5c69af[_0x4cf084('0x20')][_0x4cf084('0x55')]&&_0x5c69af[_0x4cf084('0x2f')]&&_0x5c69af['customField']&&(_0x2df04b[_0x5c69af[_0x4cf084('0x20')]['name'][_0x4cf084('0x59')]()]&&(_0x5c480c['custom_fields'][_0x5c69af[_0x4cf084('0x2f')]]=_0x2df04b[_0x5c69af[_0x4cf084('0x20')][_0x4cf084('0x55')][_0x4cf084('0x59')]()]['toString']()));}}}),_0x5c480c[_0x51adc7('0x18')]&&(_0x5c480c[_0x51adc7('0x18')]=Number(_0x5c480c[_0x51adc7('0x18')])),_0x5c480c;}function getTicket(_0x49a1cd,_0x1a7e8d,_0x807f0a,_0x7916aa,_0xccd7f4){const _0x3e901c=_0x38ad8e;logger[_0x3e901c('0x37')](_0x3e901c('0x21'));const _0x503ad9=_[_0x3e901c('0x57')]({'subject':intUtil[_0x3e901c('0x3')](_0x7916aa['Subjects'],_0xccd7f4,'\x20'),'type':_0x3e901c('0x34'),'status':'new','labels':[_0x3e901c('0x38'),'Motion','CTI'][_0x3e901c('0x63')](getTags(_0x7916aa[_0x3e901c('0xb')],_0x3e901c('0x55'))),'description':intUtil[_0x3e901c('0x3')](_0x7916aa['Descriptions'],_0xccd7f4,'\x0a'),'_links':{'assigned_user':{'href':util[_0x3e901c('0x1d')]('/api/v2/users/%d',_0x1a7e8d['id']),'class':_0x3e901c('0x1')}},'message':{'direction':'in','body':intUtil['getString'](_0x7916aa[_0x3e901c('0x56')],_0xccd7f4,'\x0a')}},getCustomFields(_0x7916aa[_0x3e901c('0x49')],_0xccd7f4));return request({'uri':util[_0x3e901c('0x1d')](_0x3e901c('0x13'),_0x49a1cd[_0x3e901c('0x48')],_0x807f0a['id']),'method':_0x3e901c('0x65'),'body':_0x503ad9});}exports[_0x38ad8e('0x43')]=function(_0x26fdc0,_0x128c3a,_0x560b2e,_0x1871b0,_0x1c360b,_0x2ee4cb){const _0x11b2ae=_0x38ad8e;let _0x26a055,_0x476466;return _0x2ee4cb[_0x11b2ae('0x48')]=intUtil[_0x11b2ae('0x26')](_0x2ee4cb[_0x11b2ae('0x48')]),_0x2ee4cb[_0x11b2ae('0x0')]=intUtil[_0x11b2ae('0x26')](_0x2ee4cb[_0x11b2ae('0x0')]),_0x1c360b&&_0x1c360b[_0x11b2ae('0x4e')]?(logger['info'](_0x11b2ae('0x51'),_0x11b2ae('0x3a')),_0x128c3a[_0x11b2ae('0x11')]=util[_0x11b2ae('0x1d')](_0x11b2ae('0x31'),_0x2ee4cb[_0x11b2ae('0x0')],_0x128c3a[_0x11b2ae('0x36')],md5(_0x128c3a[_0x11b2ae('0x36')]))):_0x128c3a[_0x11b2ae('0x11')]='',headers[_0x11b2ae('0x1f')]=getAuth(_0x2ee4cb),getUser(_0x2ee4cb,_0x1871b0[_0x11b2ae('0x5')])[_0x11b2ae('0x32')](function(_0x365a1a){const _0x2ca098=_0x11b2ae;return _0x26a055=_0x365a1a,logger['info'](_0x2ca098('0x2'),_0x26a055['id']),getEndUser(_0x2ee4cb,_0x128c3a['calleridname'],_0x128c3a[_0x2ca098('0x2a')]);})['then'](function(_0x32e64a){const _0x3ca5bd=_0x11b2ae;return _0x476466=_0x32e64a,logger[_0x3ca5bd('0x37')](_0x3ca5bd('0x28'),_0x476466['id']),getTicket(_0x2ee4cb,_0x26a055,_0x476466,_0x560b2e,_0x128c3a);})[_0x11b2ae('0x32')](function(_0x12e61f){const _0x42e7a7=_0x11b2ae;if(_0x12e61f){logger['info'](_0x42e7a7('0x16')),logger[_0x42e7a7('0x37')](_0x42e7a7('0x1a'),_0x12e61f['id']);switch(_0x2ee4cb[_0x42e7a7('0x58')]){case'integrationTab':logger[_0x42e7a7('0x37')](_0x42e7a7('0x51'),_0x42e7a7('0x22')),emit(util[_0x42e7a7('0x1d')](_0x42e7a7('0x3f'),_0x1871b0[_0x42e7a7('0x55')]),_0x42e7a7('0x4d'),{'recordId':_0x12e61f['id']});break;case _0x42e7a7('0x6'):logger['info']('[QUEUE]',_0x42e7a7('0x24')),emit(util[_0x42e7a7('0x1d')](_0x42e7a7('0x3f'),_0x1871b0[_0x42e7a7('0x55')]),_0x42e7a7('0xe'),{'uri':util[_0x42e7a7('0x1d')](_0x42e7a7('0x23'),_0x12e61f['id'])});break;default:logger[_0x42e7a7('0x64')]('[QUEUE]','Desk\x20account\x20type\x20not\x20recognized');}}})[_0x11b2ae('0x2c')](function(_0x35c9a7){const _0x2e5274=_0x11b2ae;console['error'](_0x35c9a7),logger[_0x2e5274('0x64')](_0x2e5274('0x51'),JSON[_0x2e5274('0x2e')](_0x35c9a7));});},exports[_0x38ad8e('0xa')]=function(_0x27d6f9,_0x529445,_0x5b60b4,_0x589ac9,_0x3e8f7d,_0x4918da,_0x3d7e54){const _0x1045a6=_0x38ad8e;let _0x5d63c8,_0x40b72d;return _0x4918da[_0x1045a6('0x48')]=intUtil['stripTrailingSlash'](_0x4918da[_0x1045a6('0x48')]),_0x4918da[_0x1045a6('0x0')]=intUtil[_0x1045a6('0x26')](_0x4918da['serverUrl']),_0x3d7e54&&_0x3d7e54[_0x1045a6('0x3d')]&&_0x3d7e54['recordingFormat']!==_0x1045a6('0xc')&&(logger[_0x1045a6('0x37')](_0x1045a6('0x2b'),_0x1045a6('0x3a')),_0x529445['recordingURL']=util['format']('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x4918da[_0x1045a6('0x0')],_0x529445[_0x1045a6('0x36')],md5(_0x529445[_0x1045a6('0x36')]))),headers[_0x1045a6('0x1f')]=getAuth(_0x4918da),getUser(_0x4918da,_0x589ac9[_0x1045a6('0x5')])[_0x1045a6('0x32')](function(_0x586068){const _0x54aee9=_0x1045a6;return _0x5d63c8=_0x586068,logger[_0x54aee9('0x37')]('The\x20User\x20ID\x20is:',_0x5d63c8['id']),getEndUser(_0x4918da,_0x529445[_0x54aee9('0x47')],_0x529445[_0x54aee9('0x50')]);})[_0x1045a6('0x32')](function(_0x2d1e84){const _0x42cfe6=_0x1045a6;return _0x40b72d=_0x2d1e84,logger[_0x42cfe6('0x37')](_0x42cfe6('0x28'),_0x40b72d['id']),getTicket(_0x4918da,_0x5d63c8,_0x40b72d,_0x5b60b4,_0x529445);})[_0x1045a6('0x32')](function(_0x5e524e){const _0x3e5619=_0x1045a6;if(_0x5e524e){logger['info'](_0x3e5619('0x16')),logger[_0x3e5619('0x37')](_0x3e5619('0x1a'),_0x5e524e['id']);switch(_0x4918da[_0x3e5619('0x58')]){case _0x3e5619('0x15'):logger[_0x3e5619('0x37')](_0x3e5619('0x51'),_0x3e5619('0x22')),emit(util['format'](_0x3e5619('0x3f'),_0x589ac9[_0x3e5619('0x55')]),'trigger:desk:display',{'recordId':_0x5e524e['id']});break;case'newTab':logger[_0x3e5619('0x37')](_0x3e5619('0x51'),_0x3e5619('0x24')),emit(util['format'](_0x3e5619('0x3f'),_0x589ac9['name']),_0x3e5619('0xe'),{'uri':util[_0x3e5619('0x1d')](_0x3e5619('0x27'),_0x4918da[_0x3e5619('0x48')],_0x5e524e['id'])});break;default:logger['error'](_0x3e5619('0x2b'),_0x3e5619('0x44'));}}})[_0x1045a6('0x2c')](function(_0x73c909){const _0x580c4c=_0x1045a6;logger[_0x580c4c('0x64')](_0x580c4c('0x2b'),JSON[_0x580c4c('0x2e')](_0x73c909));});},exports[_0x38ad8e('0x4a')]=function(_0x116240,_0x2244ac,_0x5df67b,_0x5866e9,_0x51ab07,_0x5e38e7){const _0x24ace3=_0x38ad8e;let _0x1e3878,_0x1010f5;return _0x5e38e7[_0x24ace3('0x48')]=intUtil[_0x24ace3('0x26')](_0x5e38e7[_0x24ace3('0x48')]),_0x5e38e7[_0x24ace3('0x0')]=intUtil[_0x24ace3('0x26')](_0x5e38e7[_0x24ace3('0x0')]),_0x51ab07&&_0x51ab07[_0x24ace3('0x4e')]?(logger[_0x24ace3('0x37')]('['+_0x2244ac[_0x24ace3('0x46')][_0x24ace3('0xf')]()+']',_0x24ace3('0x3a')),_0x2244ac[_0x24ace3('0x11')]=util[_0x24ace3('0x1d')](_0x24ace3('0x31'),_0x5e38e7[_0x24ace3('0x0')],_0x2244ac['uniqueid'],md5(_0x2244ac[_0x24ace3('0x36')]))):_0x2244ac[_0x24ace3('0x11')]='',headers[_0x24ace3('0x1f')]=getAuth(_0x5e38e7),getUser(_0x5e38e7)['then'](function(_0x15f9aa){const _0x1a892b=_0x24ace3;return _0x1e3878=_0x15f9aa,logger[_0x1a892b('0x37')](_0x1a892b('0x2'),_0x1e3878['id']),getEndUser(_0x5e38e7,_0x2244ac[_0x1a892b('0x3e')],_0x2244ac[_0x1a892b('0x2a')]);})[_0x24ace3('0x32')](function(_0xa72f16){const _0x56877a=_0x24ace3;return _0x1010f5=_0xa72f16,logger[_0x56877a('0x37')]('The\x20Enduser\x20ID\x20is:',_0x1010f5['id']),getTicket(_0x5e38e7,_0x1e3878,_0x1010f5,_0x5df67b,_0x2244ac);})[_0x24ace3('0x32')](function(_0x2ed2dd){const _0x322e30=_0x24ace3;_0x2ed2dd&&(logger[_0x322e30('0x37')]('Ticket\x20created!'),logger[_0x322e30('0x37')](_0x322e30('0x1a'),_0x2ed2dd['id']));})[_0x24ace3('0x2c')](function(_0x3dbab5){const _0x238636=_0x24ace3;logger[_0x238636('0x64')]('['+_0x2244ac[_0x238636('0x46')][_0x238636('0xf')]()+']',JSON[_0x238636('0x2e')](_0x3dbab5));});}; \ No newline at end of file +const a1135_0x1461=['%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','[QUEUE]','Variable','toUpperCase','The\x20Enduser\x20ID\x20is:','user','nameField','%s/customers','Authorization','Recording\x20is\x20enabled!','variableName','new','calleridname','defaults','forEach','application/json','idField','info','calleridnum','%s/users/me','toLowerCase','stringify','Ticket\x20created!','name','user:%s','recordingURL','[HTTP]','%s/agent/tickets/%s','find','serverUrl','Desk\x20account\x20type\x20not\x20recognized','Creating\x20new\x20ticket...','Agent\x20found!','remoteUri','xCALLY','merge','newTab','getString','map','password','string','debug','authType','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','custom_fields','email','%s/customers/search','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','variable','format','%s/token:%s','The\x20User\x20ID\x20is:','work','%s/customers/%d/cases','customField','type','Displaying\x20ticket\x20to\x20agent...','./util','Motion','catch','Getting\x20agent\x20with\x20email','Basic\x20%s','none','trigger:browser:url','entries','%s:%s','uniqueid','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','CTI','Descriptions','request-promise-native','username','error','POST','customVariable','lastevent','then','content','Searching\x20enduser\x20with\x20phone','stripTrailingSlash','integrationTab','trigger:desk:display','%s/users','unmanaged','../../../../config/logger','basic','monitor_format','destcalleridnum','The\x20Ticket\x20ID\x20is:','length','destcalleridname','[OUTBOUND]','toString','Enduser\x20found!','priority','total_entries','https://xcally.desk.com/web/agent/case/%d','_embedded','desk','md5'];(function(_0x2b6c78,_0x1461ee){const _0x8b6950=function(_0x4048d6){while(--_0x4048d6){_0x2b6c78['push'](_0x2b6c78['shift']());}};_0x8b6950(++_0x1461ee);}(a1135_0x1461,0x131));const a1135_0x8b69=function(_0x2b6c78,_0x1461ee){_0x2b6c78=_0x2b6c78-0x0;let _0x8b6950=a1135_0x1461[_0x2b6c78];return _0x8b6950;};const _0x5d418a=a1135_0x8b69;'use strict';const _=require('lodash'),rp=require(_0x5d418a('0x41')),md5=require(_0x5d418a('0x5e')),util=require('util'),intUtil=require(_0x5d418a('0x34')),logger=require(_0x5d418a('0x4f'))(_0x5d418a('0x5d')),{getSocket}=require('../../../../rediscache'),io=getSocket();function emit(_0x4048d6,_0x5b18ba,_0x1d7293){io['to'](_0x4048d6)['emit'](_0x5b18ba,_0x1d7293);}const headers={'Content-Type':'application/json','Accept':_0x5d418a('0xa')};function getUser(_0x320788,_0xd04e37){const _0x21e232=_0x5d418a;return intUtil['validateEmail'](_0xd04e37)===!![]?(logger[_0x21e232('0xc')](_0x21e232('0x37'),_0xd04e37),request({'uri':util['format'](_0x21e232('0x4d'),_0x320788[_0x21e232('0x1c')])})['then'](function(_0x57fc31){const _0x19c370=_0x21e232;if(_0x57fc31[_0x19c370('0x5a')])return _[_0x19c370('0x17')](_0x57fc31[_0x19c370('0x5c')][_0x19c370('0x3b')],{'email':_0xd04e37});})['then'](function(_0x2c2085){const _0x1200a8=_0x21e232;return _0x2c2085?(logger[_0x1200a8('0xc')](_0x1200a8('0x1b')),_0x2c2085):(logger[_0x1200a8('0xc')](_0x1200a8('0x2a')),request({'uri':util[_0x1200a8('0x2c')](_0x1200a8('0xe'),_0x320788[_0x1200a8('0x1c')])}));})):(logger['info']('Invalid\x20email\x20format,\x20using\x20the\x20admin\x20account!'),request({'uri':util[_0x21e232('0x2c')](_0x21e232('0xe'),_0x320788[_0x21e232('0x1c')])}));}function request(_0x5dc9bc){const _0x55fa4d=_0x5d418a;return logger[_0x55fa4d('0x24')](_0x55fa4d('0x15'),JSON[_0x55fa4d('0x10')](_0x5dc9bc)),rp(_[_0x55fa4d('0x8')](_0x5dc9bc,{'method':'GET','headers':headers,'json':!![]}));}function getAuth(_0x31a5fd){const _0xeac682=_0x5d418a;let _0x5dd8e2;if(_0x31a5fd[_0xeac682('0x25')]===_0xeac682('0x50'))_0x5dd8e2=util[_0xeac682('0x2c')](_0xeac682('0x3c'),_0x31a5fd[_0xeac682('0x42')],_0x31a5fd[_0xeac682('0x22')]);else _0x31a5fd[_0xeac682('0x25')]==='token'&&(_0x5dd8e2=util[_0xeac682('0x2c')](_0xeac682('0x2d'),_0x31a5fd['username'],_0x31a5fd['token']));return util[_0xeac682('0x2c')](_0xeac682('0x38'),Buffer['from'](_0x5dd8e2)[_0xeac682('0x57')]('base64'));}function getEndUser(_0x22c1c9,_0x3de480,_0x2a74b5){const _0x59a35a=_0x5d418a;return logger[_0x59a35a('0xc')](_0x59a35a('0x49'),_0x2a74b5),request({'uri':util[_0x59a35a('0x2c')](_0x59a35a('0x29'),_0x22c1c9[_0x59a35a('0x1c')]),'qs':{'phone':_0x2a74b5}})[_0x59a35a('0x47')](function(_0x532bb0){const _0xad0781=_0x59a35a;return _0x532bb0[_0xad0781('0x5a')]?(logger[_0xad0781('0xc')](_0xad0781('0x58')),_0x532bb0[_0xad0781('0x5c')][_0xad0781('0x3b')][0x0]):(logger[_0xad0781('0xc')](_0xad0781('0x26')),request({'uri':util[_0xad0781('0x2c')](_0xad0781('0x2'),_0x22c1c9[_0xad0781('0x1c')]),'method':'POST','body':{'first_name':_0x3de480,'title':_0x3de480,'phone_numbers':[{'type':_0xad0781('0x2f'),'value':_0x2a74b5}]}}));});}function getTags(_0x3dfc21,_0x4fed63){const _0x3379ce=_0x5d418a;let _0xbfaa64=[];return _0x3dfc21&&_0x3dfc21[_0x3379ce('0x54')]>0x0&&(_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 diff --git a/server/services/ami/trigger/integration/dynamics365.js b/server/services/ami/trigger/integration/dynamics365.js index 652a9e4..06dabb1 100644 --- a/server/services/ami/trigger/integration/dynamics365.js +++ b/server/services/ami/trigger/integration/dynamics365.js @@ -1 +1 @@ -const a1136_0x5d52=['content',']\x20Call\x20direction:\x20%s','value','idField','Recording\x20is\x20enabled!','outbound','emit','serverUrl',']\x20The\x20Enduser\x20ID\x20is:','contacts?$select=telephone1','recordingURL','inspect','Subjects','../../../../config/logger','validateEmail','headers','clientSecret',']\x20Enduser\x20Created!','trigger:browser:url','callDirection','util','none','indexOf',']\x20Enduser\x20created!','name','dynamics365','remoteUri','userEmail','uniqueid','[OUTBOUND]','monitor_format','ticketId','[QUEUE]','Bearer\x20','substring','toLowerCase','type','GET','telephone1','%s/main.aspx?pagetype=entityrecord&etn=%s&id=%s','email','error','access_token',']\x20The\x20User\x20ID\x20is:','userId','length','./util',']\x20The\x20User\x20email\x20is:','Fields','getString','internalemailaddress','../../../../rediscache','username','md5','message','contactid','systemusers?$select=internalemailaddress,isdisabled,systemuserid','ticketType','/systemusers(','assign','POST','unmanaged','forEach','4.0','password','stripTrailingSlash','toUpperCase','info',']\x20Agent\x20found\x20','enduserId','recordingFormat','phonecall','tenantId','request-promise-native','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','calleridnum','then',']\x20Wrong\x20credentials!','/contacts(','isNil','Displaying\x20call\x20in\x20a\x20new\x20tab...','systemuserid','lastIndexOf','format','isdisabled','customField','queue','odata-entityid','catch','clientId'];(function(_0x1d21d5,_0x5d52bf){const _0x5ad7c6=function(_0x14c1f9){while(--_0x14c1f9){_0x1d21d5['push'](_0x1d21d5['shift']());}};_0x5ad7c6(++_0x5d52bf);}(a1136_0x5d52,0x79));const a1136_0x5ad7=function(_0x1d21d5,_0x5d52bf){_0x1d21d5=_0x1d21d5-0x0;let _0x5ad7c6=a1136_0x5d52[_0x1d21d5];return _0x5ad7c6;};const _0x1e0782=a1136_0x5ad7;'use strict';const _=require('lodash'),rp=require(_0x1e0782('0x2a')),util=require(_0x1e0782('0x4f')),intUtil=require(_0x1e0782('0xf')),md5=require(_0x1e0782('0x16')),logger=require(_0x1e0782('0x48'))(_0x1e0782('0x54')),{getSocket}=require(_0x1e0782('0x14')),io=getSocket();function getAuthToken(_0x14c1f9,_0x4c5053,_0x3efdb3){const _0x2aa322=_0x1e0782,_0x595290={'method':_0x2aa322('0x1d'),'uri':_0x4c5053,'form':{'client_id':_0x14c1f9[_0x2aa322('0x3a')],'resource':_0x14c1f9[_0x2aa322('0x55')],'username':_0x14c1f9[_0x2aa322('0x15')],'password':_0x14c1f9[_0x2aa322('0x21')],'grant_type':_0x2aa322('0x21'),'client_secret':_0x14c1f9[_0x2aa322('0x4b')]},'json':!![]};return rp(_0x595290)[_0x2aa322('0x2d')](function(_0x33e5d1){const _0x4ee8bf=_0x2aa322;return _0x33e5d1[_0x4ee8bf('0xb')];})[_0x2aa322('0x39')](function(_0x477217){const _0x86d338=_0x2aa322;return logger[_0x86d338('0xa')]('['+[_0x3efdb3[_0x86d338('0x23')]()]+_0x86d338('0x2e')),_0x477217['message'];});}function getUser(_0x1de885,_0x4e23cd,_0x2fd719,_0x152b14,_0x3cff22,_0x21d072){return new Promise(function(_0x3334dd,_0x4240eb){const _0x25f392=a1136_0x5ad7;return getAuthToken(_0x4e23cd,_0x152b14,_0x21d072)[_0x25f392('0x2d')](function(_0x2c442f){const _0x1a8c39=_0x25f392,_0x59f396={'method':_0x1a8c39('0x6'),'uri':_0x3cff22+_0x1a8c39('0x19'),'headers':{'Authorization':_0x1a8c39('0x2')+_0x2c442f,'OData-Version':_0x1a8c39('0x20')},'json':!![]};return rp(_0x59f396);})[_0x25f392('0x2d')](function(_0x516a32){const _0x4f7566=_0x25f392,_0x2b0382=_0x516a32[_0x4f7566('0x3d')];let _0x4075a6=![],_0x223ae9=null;if(!_[_0x4f7566('0x30')](_0x2fd719)){if(intUtil[_0x4f7566('0x49')](_0x2fd719[_0x4f7566('0x9')])){_0x1de885[_0x4f7566('0x56')]=_0x2fd719[_0x4f7566('0x9')];for(_0x223ae9=0x0;_0x223ae9<_0x2b0382[_0x4f7566('0xe')];_0x223ae9++){_0x2b0382[_0x223ae9][_0x4f7566('0x13')]===_0x2fd719['email']&&!_0x2b0382[_0x223ae9][_0x4f7566('0x35')]&&(_0x4075a6=!![],logger[_0x4f7566('0x24')]('['+[_0x21d072[_0x4f7566('0x23')]()]+_0x4f7566('0x25')+_0x2b0382[_0x223ae9][_0x4f7566('0x32')]+'!'),_0x1de885['userId']=_0x2b0382[_0x223ae9][_0x4f7566('0x32')]);}}}if(!_0x4075a6){logger[_0x4f7566('0x24')]('['+[_0x21d072[_0x4f7566('0x23')]()]+']\x20Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!'),_0x1de885[_0x4f7566('0x56')]=_0x4e23cd[_0x4f7566('0x15')];for(_0x223ae9=0x0;_0x223ae9<_0x2b0382[_0x4f7566('0xe')];_0x223ae9++){_0x2b0382[_0x223ae9][_0x4f7566('0x13')]===_0x4e23cd[_0x4f7566('0x15')]&&(_0x1de885[_0x4f7566('0xd')]=_0x2b0382[_0x223ae9][_0x4f7566('0x32')]);}}_0x3334dd(_0x1de885);})[_0x25f392('0x39')](function(_0x442697){const _0x8e849a=_0x25f392;_0x4240eb(_0x442697[_0x8e849a('0x17')]);});});}function createEndUser(_0x5ba7ea,_0x1d8967,_0x327477,_0x133bc4,_0x52a43d,_0x255f0c){return new Promise(function(_0x2dcaa0,_0x386a73){const _0x4e6bae=a1136_0x5ad7;return getAuthToken(_0x1d8967,_0x327477,_0x255f0c)[_0x4e6bae('0x2d')](function(_0x6a86f9){const _0x143198=_0x4e6bae,_0x21fbf1=_0x255f0c['toLowerCase']()===_0x143198('0x40')?_0x52a43d['destcalleridnum']:_0x52a43d['calleridnum'],_0x64d586={'method':'POST','uri':_0x133bc4+'contacts','body':{'telephone1':_0x21fbf1,'fullname':_0x21fbf1,'firstname':_0x21fbf1,'lastname':'_','mobilephone':null,'address1_telephone1':null,'ownerid@odata.bind':_0x143198('0x1b')+_0x5ba7ea[_0x143198('0xd')]+')'},'headers':{'Authorization':_0x143198('0x2')+_0x6a86f9,'OData-Version':_0x143198('0x20')},'json':!![],'resolveWithFullResponse':!![]};return rp(_0x64d586);})[_0x4e6bae('0x2d')](function(_0x49f79b){const _0x44386f=_0x4e6bae,_0x560f2c=_0x49f79b[_0x44386f('0x4a')][_0x44386f('0x38')],_0x40eac6=_0x560f2c[_0x44386f('0x3')](_0x560f2c[_0x44386f('0x33')]('(')+0x1,_0x560f2c['lastIndexOf'](')'));_0x5ba7ea[_0x44386f('0x26')]=_0x40eac6,_0x2dcaa0(_0x5ba7ea);})[_0x4e6bae('0x39')](function(_0x5904ae){const _0x1571d0=_0x4e6bae;_0x386a73(_0x5904ae[_0x1571d0('0x17')]);});});}function getEndUser(_0x343f49,_0x5b7046,_0x17c266,_0x23d976,_0xdcca8,_0x342869){return new Promise(function(_0x4a3798){const _0x1bf2d7=a1136_0x5ad7;return getAuthToken(_0x5b7046,_0x17c266,_0x342869)[_0x1bf2d7('0x2d')](function(_0x39d5ac){const _0x59e4fb=_0x1bf2d7,_0x3d945b={'method':'GET','uri':_0x23d976+_0x59e4fb('0x44'),'headers':{'Authorization':_0x59e4fb('0x2')+_0x39d5ac,'If-None-Match':null,'OData-Version':_0x59e4fb('0x20')},'json':!![]};return rp(_0x3d945b);})[_0x1bf2d7('0x2d')](function(_0x355bf7){const _0x46973f=_0x1bf2d7;let _0x5764b1=null;if(_0x355bf7){const _0x3737f8=_0x355bf7[_0x46973f('0x3d')];let _0x30c3e8=![];for(_0x5764b1=0x0;_0x5764b1<_0x3737f8[_0x46973f('0xe')];_0x5764b1++){const _0x38ccaf=_0x342869[_0x46973f('0x4')]()===_0x46973f('0x40')?_0xdcca8['destcalleridnum']:_0xdcca8[_0x46973f('0x2c')];_0x3737f8[_0x5764b1][_0x46973f('0x7')]===_0x38ccaf&&(_0x30c3e8=!![],_0x343f49[_0x46973f('0x26')]=_0x3737f8[_0x5764b1][_0x46973f('0x18')]);}if(_0x30c3e8)_0x4a3798(_0x343f49);else return createEndUser(_0x343f49,_0x5b7046,_0x17c266,_0x23d976,_0xdcca8,_0x342869)[_0x46973f('0x2d')](function(_0x26ce35){const _0x122c2d=_0x46973f;logger[_0x122c2d('0x24')]('['+[_0x342869[_0x122c2d('0x23')]()]+_0x122c2d('0x52'),_0x26ce35[_0x122c2d('0x26')]),_0x4a3798(_0x26ce35);});}else return createEndUser(_0x343f49,_0x5b7046,_0x17c266,_0x23d976,_0xdcca8,_0x342869)[_0x46973f('0x2d')](function(_0x38857f){const _0x16dd3c=_0x46973f;logger[_0x16dd3c('0x24')]('['+[_0x342869['toUpperCase']()]+_0x16dd3c('0x4c'),_0x38857f['enduserId']),_0x4a3798(_0x38857f);});});});}function getCustomFields(_0x2ae40b,_0x4a2692,_0x41144c){const _0xe07253=_0x1e0782,_0x6309fb={};return _0x2ae40b[_0xe07253('0xe')]>0x0&&_[_0xe07253('0x1f')](_0x2ae40b,function(_0x2f0c90){const _0x5b53c3=_0xe07253;if(_0x2f0c90[_0x5b53c3('0x5')]==='string'&&_0x2f0c90['nameField']&&!_0x2f0c90[_0x5b53c3('0x36')]){const _0x14d523=_0x2f0c90[_0x5b53c3('0x3e')][_0x5b53c3('0x4')](),_0x4ea4cb=_0x14d523[_0x5b53c3('0x3')](0x0,_0x14d523[_0x5b53c3('0x51')]('_')),_0x41677d=_0x14d523['substring'](_0x14d523['indexOf']('_')+0x1);_0x4ea4cb===_0x41144c&&(_0x6309fb[_0x41677d]=_0x2f0c90[_0x5b53c3('0x3b')]);}}),_0x6309fb;}function getTicket(_0x493ba0,_0x509a9d,_0x38d9ed,_0x39e879,_0xa3702c,_0x4c715e,_0x3fe415){return new Promise(function(_0x2518b8,_0x1c96c3){const _0x516fc=a1136_0x5ad7;let _0x4fcda8;return getAuthToken(_0x509a9d,_0x38d9ed,_0x3fe415)[_0x516fc('0x2d')](function(_0x4e5b96){const _0x26fe7b=_0x516fc;return _0x4c715e[_0x26fe7b('0x1a')]==='incident'&&(_0x4fcda8={'method':_0x26fe7b('0x1d'),'uri':_0x39e879+'incidents','body':Object[_0x26fe7b('0x1c')]({},{'title':intUtil['getString'](_0x4c715e['Subjects'],_0xa3702c,'\x20'),'description':intUtil['getString'](_0x4c715e['Descriptions'],_0xa3702c,'\x0a'),'customerid_contact@odata.bind':'/contacts('+_0x493ba0[_0x26fe7b('0x26')]+')','ownerid@odata.bind':_0x26fe7b('0x1b')+_0x493ba0[_0x26fe7b('0xd')]+')','caseorigincode':'1'},getCustomFields(_0x4c715e[_0x26fe7b('0x11')],_0xa3702c,_0x4c715e[_0x26fe7b('0x1a')])),'headers':{'Authorization':_0x26fe7b('0x2')+_0x4e5b96,'OData-Version':_0x26fe7b('0x20')},'json':!![],'resolveWithFullResponse':!![]}),_0x4c715e[_0x26fe7b('0x1a')]===_0x26fe7b('0x28')&&(_0x4fcda8={'method':_0x26fe7b('0x1d'),'uri':_0x39e879+'phonecalls','body':Object[_0x26fe7b('0x1c')]({},{'subject':intUtil[_0x26fe7b('0x12')](_0x4c715e[_0x26fe7b('0x47')],_0xa3702c,'\x20'),'phonenumber':String(_0xa3702c['calleridnum']),'description':intUtil[_0x26fe7b('0x12')](_0x4c715e['Descriptions'],_0xa3702c,'\x0a'),'regardingobjectid_contact@odata.bind':'/contacts('+_0x493ba0[_0x26fe7b('0x26')]+')','ownerid@odata.bind':_0x26fe7b('0x1b')+_0x493ba0[_0x26fe7b('0xd')]+')','directioncode':_0x493ba0[_0x26fe7b('0x4e')]==='queue'?![]:!![],'phonecall_activity_parties':[{'partyid_systemuser@odata.bind':_0x26fe7b('0x1b')+_0x493ba0[_0x26fe7b('0xd')]+')','participationtypemask':_0x493ba0[_0x26fe7b('0x4e')]===_0x26fe7b('0x37')?0x2:0x1},{'partyid_contact@odata.bind':_0x26fe7b('0x2f')+_0x493ba0['enduserId']+')','participationtypemask':_0x493ba0[_0x26fe7b('0x4e')]===_0x26fe7b('0x37')?0x1:0x2}]},getCustomFields(_0x4c715e[_0x26fe7b('0x11')],_0xa3702c,_0x4c715e[_0x26fe7b('0x1a')])),'headers':{'Authorization':_0x26fe7b('0x2')+_0x4e5b96,'OData-Version':'4.0'},'json':!![],'resolveWithFullResponse':!![]}),rp(_0x4fcda8);})[_0x516fc('0x2d')](function(_0x25b232){const _0x253d6b=_0x516fc,_0x5b3953=_0x25b232[_0x253d6b('0x4a')][_0x253d6b('0x38')],_0x85f77b=_0x5b3953[_0x253d6b('0x3')](_0x5b3953[_0x253d6b('0x33')]('(')+0x1,_0x5b3953[_0x253d6b('0x33')](')'));_0x493ba0[_0x253d6b('0x0')]=_0x85f77b,_0x2518b8(_0x493ba0);})[_0x516fc('0x39')](function(_0x406526){const _0x12d8f9=_0x516fc;_0x1c96c3(_0x406526[_0x12d8f9('0x17')]);});});}function emit(_0x4536fa,_0x2f4f9a,_0x3dedc8,_0x47abc5){const _0x23950f=_0x1e0782,_0x422af8={'uri':util[_0x23950f('0x34')](_0x23950f('0x8'),_0x4536fa,_0x3dedc8,_0x47abc5)};io['to'](util[_0x23950f('0x34')]('user:%s',_0x2f4f9a))[_0x23950f('0x41')](_0x23950f('0x4d'),_0x422af8);}exports['cs']=function(_0x369251,_0x4b8d2b,_0x20d79a,_0x1649c8,_0x49fdb7,_0x28296d,_0x15ee3d,_0x65d63b){const _0x479d6e=_0x1e0782,_0xa3b246={};_0x28296d[_0x479d6e('0x55')]=intUtil['stripTrailingSlash'](_0x28296d['remoteUri']),_0x28296d[_0x479d6e('0x42')]=intUtil[_0x479d6e('0x22')](_0x28296d[_0x479d6e('0x42')]),_0xa3b246[_0x479d6e('0x4e')]=_0x65d63b===_0x479d6e('0x37')||_0x65d63b===_0x479d6e('0x1e')?_0x479d6e('0x37'):'outbound';const _0x9604ee=util[_0x479d6e('0x34')]('%s/api/data/v9.0/',_0x28296d[_0x479d6e('0x55')]),_0xe8ac07=util[_0x479d6e('0x34')]('https://login.microsoftonline.com/%s/oauth2/token',_0x28296d[_0x479d6e('0x29')]),_0x21b5bd=util[_0x479d6e('0x34')](_0x479d6e('0x2b'),_0x28296d[_0x479d6e('0x42')],_0x4b8d2b[_0x479d6e('0x57')],md5(_0x4b8d2b[_0x479d6e('0x57')]));if(_0x49fdb7&&_0x49fdb7[_0x479d6e('0x59')])logger[_0x479d6e('0x24')](_0x479d6e('0x1'),_0x479d6e('0x3f')),_0x4b8d2b['recordingURL']=_0x21b5bd;else _0x15ee3d&&_0x15ee3d['recordingFormat']&&_0x15ee3d[_0x479d6e('0x27')]!==_0x479d6e('0x50')?(logger[_0x479d6e('0x24')](_0x479d6e('0x58'),'Recording\x20is\x20enabled!'),_0x4b8d2b[_0x479d6e('0x45')]=_0x21b5bd):_0x4b8d2b[_0x479d6e('0x45')]='';return getUser(_0xa3b246,_0x28296d,_0x1649c8,_0xe8ac07,_0x9604ee,_0x65d63b)[_0x479d6e('0x2d')](function(_0x313c2c){const _0x1a605c=_0x479d6e;return logger[_0x1a605c('0x24')]('['+_0x65d63b[_0x1a605c('0x23')]()+_0x1a605c('0xc'),_0x313c2c[_0x1a605c('0xd')]),logger[_0x1a605c('0x24')]('['+_0x65d63b[_0x1a605c('0x23')]()+_0x1a605c('0x10'),_0x313c2c[_0x1a605c('0x56')]),getEndUser(_0x313c2c,_0x28296d,_0xe8ac07,_0x9604ee,_0x4b8d2b,_0x65d63b);})[_0x479d6e('0x2d')](function(_0x412298){const _0x488f45=_0x479d6e;return logger['info']('['+_0x65d63b[_0x488f45('0x23')]()+_0x488f45('0x43'),_0x412298[_0x488f45('0x26')]),logger[_0x488f45('0x24')]('['+_0x65d63b[_0x488f45('0x23')]()+']\x20The\x20Enduser\x20phone\x20is:',_0x4b8d2b['calleridnum']),getTicket(_0x412298,_0x28296d,_0xe8ac07,_0x9604ee,_0x4b8d2b,_0x20d79a,_0x65d63b);})[_0x479d6e('0x2d')](function(_0x1db031){const _0x4254f5=_0x479d6e;logger[_0x4254f5('0x24')](util[_0x4254f5('0x34')]('['+_0x65d63b[_0x4254f5('0x23')]()+']\x20The\x20%s\x20ID\x20is:\x20%s',_0x20d79a[_0x4254f5('0x1a')],_0x1db031[_0x4254f5('0x0')])),logger[_0x4254f5('0x24')](util[_0x4254f5('0x34')]('['+_0x65d63b[_0x4254f5('0x23')]()+_0x4254f5('0x3c'),_0x65d63b)),_0x65d63b!==_0x4254f5('0x1e')&&(logger[_0x4254f5('0x24')]('['+_0x65d63b[_0x4254f5('0x23')]()+']',_0x4254f5('0x31')),emit(_0x28296d[_0x4254f5('0x55')],_0x1649c8[_0x4254f5('0x53')],_0x20d79a[_0x4254f5('0x1a')],_0x1db031['ticketId']));})[_0x479d6e('0x39')](function(_0xbc4152){const _0x2faf59=_0x479d6e;logger[_0x2faf59('0xa')]('['+_0x65d63b[_0x2faf59('0x23')]()+']\x20Error\x20running\x20Dynamics365\x20integration',util[_0x2faf59('0x46')](_0xbc4152,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/integration/freshdesk.js b/server/services/ami/trigger/integration/freshdesk.js index 5b4a790..ea362d0 100644 --- a/server/services/ami/trigger/integration/freshdesk.js +++ b/server/services/ami/trigger/integration/freshdesk.js @@ -1 +1 @@ -const a1137_0x4e74=['uniqueid','[QUEUE]','map','toLowerCase','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','remoteUri','string','Enduser\x20created.','calleridnum','then','defaults','serverUrl','Descriptions','Recording\x20is\x20enabled!','calleridname','lodash','Searching\x20enduser\x20with\x20phone','customField','variableName','custom_fields','Variable','type','getString','length','%s/api/v2/tickets','Caller\x20-\x20%s','error','md5','recordingURL','format','freshdesk','destcalleridname','user:%s','email','trigger:browser:url','request-promise-native','Authorization','outbound','Fields','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','Basic\x20%s','unmanaged','stringify','[OUTBOUND]','The\x20Enduser\x20ID\x20is:','Enduser\x20found!','emit','[HTTP]','Ticket\x20created!','catch','variable','idField','nameField','The\x20User\x20ID\x20is:','value','toString','%s/api/v2/agents/me','debug','base64','stripTrailingSlash','merge','%s/helpdesk/tickets/%d','toUpperCase','find','forEach','customVariable','keyBy','info','application/json','%s/api/v2/contacts','destcalleridnum','content','POST','lastevent','Admin\x20account\x20selected.','util','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','
','name','push','apiKey','Agent\x20found!','contact','mapValues','../../../../rediscache','%s/api/v2/agents','The\x20Ticket\x20ID\x20is:','Subjects'];(function(_0x4f781f,_0x4e74a0){const _0x2a3556=function(_0x24f779){while(--_0x24f779){_0x4f781f['push'](_0x4f781f['shift']());}};_0x2a3556(++_0x4e74a0);}(a1137_0x4e74,0x100));const a1137_0x2a35=function(_0x4f781f,_0x4e74a0){_0x4f781f=_0x4f781f-0x0;let _0x2a3556=a1137_0x4e74[_0x4f781f];return _0x2a3556;};const _0x50e7b2=a1137_0x2a35;'use strict';const _=require(_0x50e7b2('0x17')),rp=require(_0x50e7b2('0x2b')),md5=require(_0x50e7b2('0x23')),util=require(_0x50e7b2('0x53')),intUtil=require('./util'),logger=require('../../../../config/logger')(_0x50e7b2('0x26')),{getSocket}=require(_0x50e7b2('0x4')),io=getSocket(),headers={'Content-Type':_0x50e7b2('0x4c'),'Accept':_0x50e7b2('0x4c')};function emit(_0x24f779,_0x51b5b5,_0x590a2b){const _0x2c185c=_0x50e7b2;io['to'](_0x24f779)[_0x2c185c('0x36')](_0x51b5b5,_0x590a2b);}function getTicket(_0x39e3d9,_0x385dc3,_0x5516e0,_0x2e4791,_0x17cdf2){const _0x417492=_0x50e7b2;logger[_0x417492('0x4b')]('Creating\x20new\x20ticket...');const _0x594596=_[_0x417492('0x44')]({'responder_id':_0x385dc3['id'],'requester_id':_0x5516e0['id'],'name':util['format'](_0x417492('0x21'),_0x17cdf2[_0x417492('0x16')]),'phone':_0x17cdf2[_0x417492('0x10')],'source':0x3,'priority':0x1,'status':0x2,'subject':intUtil[_0x417492('0x1e')](_0x2e4791[_0x417492('0x7')],_0x17cdf2,'\x20'),'description':intUtil[_0x417492('0x1e')](_0x2e4791[_0x417492('0x14')],_0x17cdf2,_0x417492('0x55')),'tags':getTags(_0x2e4791['Tags'],_0x417492('0x56'))},getCustomFields(_0x2e4791[_0x417492('0x2e')],_0x17cdf2));return _0x594596[_0x417492('0x1b')]=_[_0x417492('0x3')](_[_0x417492('0x4a')](_0x594596['custom_fields'],'id'),_0x417492('0x3e')),request({'uri':util[_0x417492('0x25')](_0x417492('0x20'),_0x39e3d9['remoteUri']),'method':_0x417492('0x50'),'body':_0x594596})['then'](function(_0x45e6e8){const _0x454f39=_0x417492;return logger[_0x454f39('0x4b')](_0x454f39('0x38')),_0x45e6e8;});}function getUser(_0x5558fd,_0x31b491){const _0x4346d5=_0x50e7b2;return intUtil['validateEmail'](_0x31b491)?request({'uri':util[_0x4346d5('0x25')](_0x4346d5('0x5'),_0x5558fd['remoteUri']),'qs':{'email':_0x31b491}})[_0x4346d5('0x11')](function(_0x428904){const _0x160dc8=_0x4346d5;return _0x428904[_0x160dc8('0x1f')]?(logger[_0x160dc8('0x4b')](_0x160dc8('0x1')),_['find'](_0x428904,function(_0xa0409e){const _0x1529cd=_0x160dc8;return _0xa0409e[_0x1529cd('0x2')][_0x1529cd('0x29')]===_0x31b491;})):(logger['info'](_0x160dc8('0x54')),request({'uri':util[_0x160dc8('0x25')](_0x160dc8('0x40'),_0x5558fd['remoteUri'])})[_0x160dc8('0x11')](function(_0x85fafb){const _0x59fafb=_0x160dc8;return logger[_0x59fafb('0x4b')](_0x59fafb('0x52')),_0x85fafb;}));}):(logger['info']('Invalid\x20email\x20format,\x20using\x20the\x20admin\x20account!'),request({'uri':util[_0x4346d5('0x25')](_0x4346d5('0x40'),_0x5558fd[_0x4346d5('0xd')])})[_0x4346d5('0x11')](function(_0x4316c1){const _0x340824=_0x4346d5;return logger[_0x340824('0x4b')](_0x340824('0x52')),_0x4316c1;}));}function getEndUser(_0x5ab812,_0x497da9,_0x1fd25e){const _0xc30d32=_0x50e7b2;return logger[_0xc30d32('0x4b')](_0xc30d32('0x18'),_0x1fd25e),request({'uri':util[_0xc30d32('0x25')](_0xc30d32('0x4d'),_0x5ab812['remoteUri']),'qs':{'phone':_0x1fd25e}})['then'](function(_0x5e0352){const _0x40fc13=_0xc30d32;return _0x5e0352[_0x40fc13('0x1f')]?(logger[_0x40fc13('0x4b')](_0x40fc13('0x35')),_[_0x40fc13('0x47')](_0x5e0352,{'phone':_0x1fd25e})):(logger[_0x40fc13('0x4b')]('Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!'),request({'uri':util[_0x40fc13('0x25')](_0x40fc13('0x4d'),_0x5ab812[_0x40fc13('0xd')]),'method':'POST','body':{'name':_0x497da9,'phone':_0x1fd25e}})['then'](function(_0xedba78){const _0x276cd8=_0x40fc13;return logger[_0x276cd8('0x4b')](_0x276cd8('0xf')),_0xedba78;}));});}function getAuth(_0xffc0b3){const _0x58035e=_0x50e7b2;return util[_0x58035e('0x25')](_0x58035e('0x30'),Buffer['from'](_0xffc0b3[_0x58035e('0x0')]+':X')[_0x58035e('0x3f')](_0x58035e('0x42')));}function request(_0x83943f){const _0x12e5ba=_0x50e7b2;return logger[_0x12e5ba('0x41')](_0x12e5ba('0x37'),JSON[_0x12e5ba('0x32')](_0x83943f)),rp(_[_0x12e5ba('0x12')](_0x83943f,{'method':'GET','headers':headers,'json':!![]}));}function getTags(_0x3e20c1,_0x23f867){const _0x38835a=_0x50e7b2;let _0x15d0a9=[];return _0x3e20c1&&_0x3e20c1[_0x38835a('0x1f')]>0x0&&(_0x15d0a9=_[_0x38835a('0xa')](_0x3e20c1,_0x23f867)),_0x15d0a9;}function getCustomFields(_0x204534,_0x3a0785){const _0x24d66c=_0x50e7b2,_0x177e60={'custom_fields':[]};return _0x204534['length']>0x0&&_[_0x24d66c('0x48')](_0x204534,function(_0x21ecd2){const _0x4813a2=_0x24d66c;if(_0x21ecd2[_0x4813a2('0x1d')]===_0x4813a2('0xe')&&_0x21ecd2[_0x4813a2('0x3c')]&&!_0x21ecd2[_0x4813a2('0x19')])_0x177e60[_0x21ecd2[_0x4813a2('0x3c')][_0x4813a2('0xb')]()]=_0x21ecd2['content'][_0x4813a2('0x3f')]();else{if(_0x21ecd2[_0x4813a2('0x1d')]==='string'&&_0x21ecd2[_0x4813a2('0x3b')]&&_0x21ecd2[_0x4813a2('0x19')])_0x177e60[_0x4813a2('0x1b')][_0x4813a2('0x57')]({'id':_0x21ecd2[_0x4813a2('0x3b')],'value':_0x21ecd2[_0x4813a2('0x4f')]['toString']()});else{if(_0x21ecd2[_0x4813a2('0x1d')]===_0x4813a2('0x3a')&&_0x21ecd2['variableName']&&_0x21ecd2[_0x4813a2('0x3b')]&&_0x21ecd2[_0x4813a2('0x19')])_0x3a0785[_0x21ecd2[_0x4813a2('0x1a')]]&&_0x177e60[_0x4813a2('0x1b')][_0x4813a2('0x57')]({'id':_0x21ecd2[_0x4813a2('0x3b')],'value':_0x3a0785[_0x21ecd2[_0x4813a2('0x1a')]][_0x4813a2('0x3f')]()});else _0x21ecd2['type']===_0x4813a2('0x49')&&_0x21ecd2[_0x4813a2('0x1c')]&&_0x21ecd2[_0x4813a2('0x1c')][_0x4813a2('0x56')]&&_0x21ecd2[_0x4813a2('0x3b')]&&_0x21ecd2['customField']&&(_0x3a0785[_0x21ecd2[_0x4813a2('0x1c')]['name']['toLowerCase']()]&&_0x177e60['custom_fields'][_0x4813a2('0x57')]({'id':_0x21ecd2['idField'],'value':_0x3a0785[_0x21ecd2[_0x4813a2('0x1c')][_0x4813a2('0x56')][_0x4813a2('0xb')]()][_0x4813a2('0x3f')]()}));}}}),_0x177e60;}exports['queue']=function(_0x240fd8,_0xbad6a4,_0x2dac,_0x5ddd76,_0x33970b,_0x37e71c){const _0x429d6e=_0x50e7b2;let _0xfd94f9,_0x2f2a53;return _0x37e71c['remoteUri']=intUtil[_0x429d6e('0x43')](_0x37e71c['remoteUri']),_0x37e71c[_0x429d6e('0x13')]=intUtil[_0x429d6e('0x43')](_0x37e71c[_0x429d6e('0x13')]),_0x33970b&&_0x33970b['monitor_format']?(logger[_0x429d6e('0x4b')](_0x429d6e('0x9'),_0x429d6e('0x15')),_0xbad6a4[_0x429d6e('0x24')]=util[_0x429d6e('0x25')]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x37e71c['serverUrl'],_0xbad6a4['uniqueid'],md5(_0xbad6a4[_0x429d6e('0x8')]))):_0xbad6a4[_0x429d6e('0x24')]='',headers[_0x429d6e('0x2c')]=getAuth(_0x37e71c),getUser(_0x37e71c,_0x5ddd76[_0x429d6e('0x29')])['then'](function(_0x1878ee){const _0x38f699=_0x429d6e;return _0xfd94f9=_0x1878ee,logger['info'](_0x38f699('0x3d'),_0xfd94f9['id']),getEndUser(_0x37e71c,_0xbad6a4[_0x38f699('0x16')],_0xbad6a4[_0x38f699('0x10')]);})[_0x429d6e('0x11')](function(_0x22455c){const _0x5b62c3=_0x429d6e;return _0x2f2a53=_0x22455c,logger['info'](_0x5b62c3('0x34'),_0x2f2a53['id']),getTicket(_0x37e71c,_0xfd94f9,_0x2f2a53,_0x2dac,_0xbad6a4);})[_0x429d6e('0x11')](function(_0x23e35d){const _0x2528d5=_0x429d6e;_0x23e35d&&_0x23e35d['id']&&(logger['info']('Ticket\x20created!'),logger[_0x2528d5('0x4b')](_0x2528d5('0x6'),_0x23e35d['id']),logger[_0x2528d5('0x4b')]('[QUEUE]',_0x2528d5('0xc')),emit(util[_0x2528d5('0x25')](_0x2528d5('0x28'),_0x5ddd76['name']),'trigger:browser:url',{'uri':util[_0x2528d5('0x25')](_0x2528d5('0x45'),_0x37e71c[_0x2528d5('0xd')],_0x23e35d['id'])}));})[_0x429d6e('0x39')](function(_0x2f2596){const _0x23174b=_0x429d6e;logger[_0x23174b('0x22')](_0x23174b('0x9'),JSON[_0x23174b('0x32')](_0x2f2596));});},exports[_0x50e7b2('0x2d')]=function(_0x2c77e3,_0x3bb2f9,_0x30ea9e,_0x13f93a,_0x4955b2,_0xfa84c5,_0x28e0e0){const _0x5ec267=_0x50e7b2;let _0x2fe0ac,_0x45cfba;return _0xfa84c5[_0x5ec267('0xd')]=intUtil['stripTrailingSlash'](_0xfa84c5[_0x5ec267('0xd')]),_0xfa84c5['serverUrl']=intUtil[_0x5ec267('0x43')](_0xfa84c5[_0x5ec267('0x13')]),_0x28e0e0&&_0x28e0e0['recordingFormat']&&_0x28e0e0['recordingFormat']!=='none'&&(logger[_0x5ec267('0x4b')](_0x5ec267('0x33'),_0x5ec267('0x15')),_0x3bb2f9[_0x5ec267('0x24')]=util[_0x5ec267('0x25')](_0x5ec267('0x2f'),_0xfa84c5[_0x5ec267('0x13')],_0x3bb2f9[_0x5ec267('0x8')],md5(_0x3bb2f9[_0x5ec267('0x8')]))),headers[_0x5ec267('0x2c')]=getAuth(_0xfa84c5),getUser(_0xfa84c5,_0x13f93a[_0x5ec267('0x29')])['then'](function(_0x1f698a){const _0x3dbcfd=_0x5ec267;return _0x2fe0ac=_0x1f698a,logger[_0x3dbcfd('0x4b')](_0x3dbcfd('0x3d'),_0x2fe0ac['id']),getEndUser(_0xfa84c5,_0x3bb2f9[_0x3dbcfd('0x27')],_0x3bb2f9[_0x3dbcfd('0x4e')]);})[_0x5ec267('0x11')](function(_0x384832){const _0x28bfa4=_0x5ec267;return _0x45cfba=_0x384832,logger['info'](_0x28bfa4('0x34'),_0x45cfba['id']),getTicket(_0xfa84c5,_0x2fe0ac,_0x45cfba,_0x30ea9e,_0x3bb2f9);})[_0x5ec267('0x11')](function(_0x4953d9){const _0x803c09=_0x5ec267;_0x4953d9&&_0x4953d9['id']&&(logger['info'](_0x803c09('0x38')),logger['info'](_0x803c09('0x6'),_0x4953d9['id']),logger[_0x803c09('0x4b')](_0x803c09('0x33'),_0x803c09('0xc')),emit(util[_0x803c09('0x25')](_0x803c09('0x28'),_0x13f93a[_0x803c09('0x56')]),_0x803c09('0x2a'),{'uri':util['format'](_0x803c09('0x45'),_0xfa84c5[_0x803c09('0xd')],_0x4953d9['id'])}));})[_0x5ec267('0x39')](function(_0x50c00a){const _0x355371=_0x5ec267;logger[_0x355371('0x22')](_0x355371('0x33'),JSON['stringify'](_0x50c00a));});},exports[_0x50e7b2('0x31')]=function(_0x221c87,_0x1f0df3,_0x5f2e11,_0x2b2873,_0x47a6ca,_0x27591f){const _0x52ffaa=_0x50e7b2;let _0x680293,_0x270de9;return _0x27591f[_0x52ffaa('0xd')]=intUtil[_0x52ffaa('0x43')](_0x27591f[_0x52ffaa('0xd')]),_0x27591f[_0x52ffaa('0x13')]=intUtil[_0x52ffaa('0x43')](_0x27591f[_0x52ffaa('0x13')]),_0x47a6ca&&_0x47a6ca['monitor_format']?(logger[_0x52ffaa('0x4b')]('['+_0x1f0df3[_0x52ffaa('0x51')][_0x52ffaa('0x46')]()+']',_0x52ffaa('0x15')),_0x1f0df3[_0x52ffaa('0x24')]=util[_0x52ffaa('0x25')](_0x52ffaa('0x2f'),_0x27591f[_0x52ffaa('0x13')],_0x1f0df3[_0x52ffaa('0x8')],md5(_0x1f0df3[_0x52ffaa('0x8')]))):_0x1f0df3[_0x52ffaa('0x24')]='',headers['Authorization']=getAuth(_0x27591f),getUser(_0x27591f,'')['then'](function(_0x1c9ccd){const _0xea9fcb=_0x52ffaa;return _0x680293=_0x1c9ccd,logger[_0xea9fcb('0x4b')](_0xea9fcb('0x3d'),_0x680293['id']),getEndUser(_0x27591f,_0x1f0df3[_0xea9fcb('0x16')],_0x1f0df3['calleridnum']);})[_0x52ffaa('0x11')](function(_0x482e66){const _0x5f264e=_0x52ffaa;return _0x270de9=_0x482e66,logger[_0x5f264e('0x4b')](_0x5f264e('0x34'),_0x270de9['id']),getTicket(_0x27591f,_0x680293,_0x270de9,_0x5f2e11,_0x1f0df3);})['then'](function(_0x298bf1){const _0x192e8e=_0x52ffaa;_0x298bf1&&(logger[_0x192e8e('0x4b')]('Ticket\x20created!'),logger['info'](_0x192e8e('0x6'),_0x298bf1['id']));})[_0x52ffaa('0x39')](function(_0x3e5bff){const _0x1f894d=_0x52ffaa;logger[_0x1f894d('0x22')]('['+_0x1f0df3[_0x1f894d('0x51')][_0x1f894d('0x46')]()+']',JSON[_0x1f894d('0x32')](_0x3e5bff));});}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/integration/freshsales.js b/server/services/ami/trigger/integration/freshsales.js index 9932365..c393f4b 100644 --- a/server/services/ami/trigger/integration/freshsales.js +++ b/server/services/ami/trigger/integration/freshsales.js @@ -1 +1 @@ -const a1138_0x25df=['moment','Descriptions','Contact','../../../../rediscache','format','freshsales','Getting\x20contacts\x20filter','message','/api/selector/owners','outbound','Admin\x20selected','/api/contacts/filters','trigger:browser:url','recordingURL','agentEmail','catch','Recording\x20is\x20enabled!','mobile_number','destcalleridnum','queue','Token\x20token=',']\x20Error\x20running\x20Freshsales\x20integration','apiKey','remoteUri','../../../../config/logger','filters','users','contactNumber','util','adminEmail','calleridnum','recordingFormat','/api/tasks','error','none','adminId','GET','/api/contacts','serverUrl','Getting\x20contact\x20list','contacts','toLowerCase','Displaying\x20task\x20in\x20a\x20new\x20tab...','toUpperCase','request-promise-native','endUserId','then','userEmail','POST','inspect','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','add','forEach','emit','Searching\x20contact\x20with\x20phone','All\x20Contacts','uniqueid','email','info','/api/contacts/view/','Requested\x20Resource\x20not\x20Found','name','contact','The\x20ticket\x20ID\x20is:\x20%s','user:%s','YYYY-MM-DDTHH:mm:ss','username','find','Getting\x20user\x20list','Task\x20created:','getString','ticketId','User\x20found:','userId','Contact\x20created:','unmanaged','headers','stripTrailingSlash','length','[OUTBOUND]','lodash'];(function(_0x28451b,_0x25df6b){const _0x3c8620=function(_0x389cf4){while(--_0x389cf4){_0x28451b['push'](_0x28451b['shift']());}};_0x3c8620(++_0x25df6b);}(a1138_0x25df,0x9d));const a1138_0x3c86=function(_0x28451b,_0x25df6b){_0x28451b=_0x28451b-0x0;let _0x3c8620=a1138_0x25df[_0x28451b];return _0x3c8620;};const _0x3c8948=a1138_0x3c86;'use strict';const _=require(_0x3c8948('0x4')),rp=require(_0x3c8948('0x31')),md5=require('md5'),util=require(_0x3c8948('0x21')),moment=require(_0x3c8948('0x5')),intUtil=require('./util'),logger=require(_0x3c8948('0x1d'))(_0x3c8948('0xa')),{getSocket}=require(_0x3c8948('0x8')),io=getSocket();function getAdminId(_0x389cf4,_0x22c4f0,_0x2237db,_0x2a380d){return new Promise(function(_0x549c26,_0x5b278c){const _0x37e489=a1138_0x3c86;let _0x2c9d53=![];const _0x18e2ca={'method':'GET','uri':_0x2a380d+_0x37e489('0xd'),'json':!![]};return _0x18e2ca['headers']=_0x2237db,logger['info']('Getting\x20admin\x20information'),rp(_0x18e2ca)['then'](function(_0x5cd8ed){const _0x41b3c6=_0x37e489;if(_0x5cd8ed){const _0x4227d2=_0x5cd8ed[_0x41b3c6('0x1f')];let _0x2942d7=null;for(_0x2942d7=0x0;_0x2942d7<_0x4227d2[_0x41b3c6('0x2')];_0x2942d7++){_0x4227d2[_0x2942d7][_0x41b3c6('0x3e')]===_0x389cf4[_0x41b3c6('0x22')]&&(_0x389cf4['adminId']=_0x4227d2[_0x2942d7]['id'],_0x2c9d53=!![]);}_0x2c9d53?(logger[_0x41b3c6('0x3f')]('Admin\x20found:',_0x389cf4['adminId']),_0x549c26(_0x389cf4)):_0x5b278c({'statusCode':0x194,'message':_0x41b3c6('0x41')});}else _0x5b278c({'statusCode':0x194,'message':_0x41b3c6('0x41')});})[_0x37e489('0x14')](function(_0x4fdc5b){const _0x52f799=_0x37e489;logger[_0x52f799('0x26')]('['+[_0x22c4f0[_0x52f799('0x30')]()]+']',_0x4fdc5b['message']),_0x5b278c(_0x4fdc5b);});});}function getUser(_0x84a5c6,_0x132670,_0x589ddd){return function(_0x58a738){return new Promise(function(_0x33f348,_0x319b67){const _0x125c5d=a1138_0x3c86,_0x5b3d39={'method':'GET','uri':_0x589ddd+_0x125c5d('0xd'),'json':!![]};return _0x5b3d39['headers']=_0x132670,logger['info'](_0x125c5d('0x49')),rp(_0x5b3d39)[_0x125c5d('0x33')](function(_0x42ca2b){const _0x5e9bfa=_0x125c5d;if(_0x42ca2b){const _0x3a5bc8=_0x42ca2b[_0x5e9bfa('0x1f')];let _0x3ad502=![],_0x532069=null;if(_0x58a738[_0x5e9bfa('0x13')]!==null){logger[_0x5e9bfa('0x3f')]('Getting\x20user\x20with\x20email',_0x58a738[_0x5e9bfa('0x13')]),_0x58a738[_0x5e9bfa('0x34')]=_0x58a738[_0x5e9bfa('0x13')];for(_0x532069=0x0;_0x532069<_0x3a5bc8['length'];_0x532069++){_0x3a5bc8[_0x532069]['email']===_0x58a738['agentEmail']&&(_0x3ad502=!![],_0x58a738[_0x5e9bfa('0x4e')]=_0x3a5bc8[_0x532069]['id'],logger[_0x5e9bfa('0x3f')](_0x5e9bfa('0x4d'),_0x58a738[_0x5e9bfa('0x4e')]));}}!_0x3ad502&&(logger[_0x5e9bfa('0x3f')](_0x5e9bfa('0xf')),_0x58a738[_0x5e9bfa('0x34')]=_0x58a738[_0x5e9bfa('0x22')],_0x58a738[_0x5e9bfa('0x4e')]=_0x58a738[_0x5e9bfa('0x28')],_0x3ad502=!![]),_0x3ad502?_0x33f348(_0x58a738):_0x319b67({'statusCode':0x194,'message':'Requested\x20Resource\x20not\x20Found'});}else _0x319b67({'statusCode':0x194,'message':_0x5e9bfa('0x41')});})[_0x125c5d('0x14')](function(_0x3902b5){const _0x1a6061=_0x125c5d;logger['error']('['+[_0x84a5c6[_0x1a6061('0x30')]()]+']',_0x3902b5[_0x1a6061('0xc')]),_0x319b67(_0x3902b5);});});};}function getEndUser(_0x22c2ce,_0x2e1dda,_0x31a61b){return function(_0x31d2cb){return new Promise(function(_0x203104){const _0x4f9526=a1138_0x3c86;let _0x50c530=0x0;const _0x7da6a9={'method':_0x4f9526('0x29'),'uri':_0x31a61b+_0x4f9526('0x10'),'json':!![]};return _0x7da6a9['headers']=_0x2e1dda,logger[_0x4f9526('0x3f')](_0x4f9526('0xb')),rp(_0x7da6a9)[_0x4f9526('0x33')](function(_0x1bc752){const _0x2cdda7=_0x4f9526;_0x1bc752[_0x2cdda7('0x1e')][_0x2cdda7('0x39')](function(_0x4fe435){const _0x4e0a60=_0x2cdda7;_0x4fe435['name']===_0x4e0a60('0x3c')&&(_0x50c530=_0x4fe435['id']);});})[_0x4f9526('0x33')](function(){const _0x33c538=_0x4f9526;logger['info'](_0x33c538('0x2c'));const _0x49459a={'method':_0x33c538('0x29'),'uri':_0x31a61b+_0x33c538('0x40')+_0x50c530,'json':!![]};return _0x49459a['headers']=_0x2e1dda,rp(_0x49459a);})[_0x4f9526('0x33')](function(_0x2b100c){const _0x1a0d4b=_0x4f9526;logger[_0x1a0d4b('0x3f')](_0x1a0d4b('0x3b'),_0x31d2cb[_0x1a0d4b('0x20')]);if(_0x2b100c[_0x1a0d4b('0x2d')][_0x1a0d4b('0x2')]>0x0){const _0x3a9e8c=_[_0x1a0d4b('0x48')](_0x2b100c[_0x1a0d4b('0x2d')],function(_0x366e0c){const _0x406049=_0x1a0d4b;if(_0x366e0c['work_number']===_0x31d2cb[_0x406049('0x20')]||_0x366e0c[_0x406049('0x16')]===_0x31d2cb['contactNumber'])return _0x366e0c;});if(_0x3a9e8c)_0x31d2cb[_0x1a0d4b('0x32')]=_0x3a9e8c['id'],logger[_0x1a0d4b('0x3f')]('Contact\x20found:',_0x31d2cb[_0x1a0d4b('0x32')]),_0x203104(_0x31d2cb);else return createEndUser(_0x31d2cb,_0x22c2ce,_0x2e1dda,_0x31a61b)[_0x1a0d4b('0x33')](function(_0x523b1e){const _0x11087f=_0x1a0d4b;logger['info'](_0x11087f('0x4f'),_0x31d2cb[_0x11087f('0x32')]),_0x203104(_0x523b1e);});}else return createEndUser(_0x31d2cb,_0x22c2ce,_0x2e1dda,_0x31a61b)[_0x1a0d4b('0x33')](function(_0x2ed42f){const _0x5f29b4=_0x1a0d4b;logger[_0x5f29b4('0x3f')]('Contact\x20created:',_0x31d2cb[_0x5f29b4('0x32')]),_0x203104(_0x2ed42f);});})['catch'](function(_0x27ead4){const _0x1ad849=_0x4f9526;throw new Error(_0x27ead4[_0x1ad849('0xc')]);});});};}function createEndUser(_0x3aa3e6,_0x24f517,_0x4e5874,_0x3786ec){return new Promise(function(_0x21a22b,_0x5a5ed5){const _0x4c3697=a1138_0x3c86,_0x4831c3=moment(),_0x3767eb={'method':_0x4c3697('0x35'),'uri':_0x3786ec+_0x4c3697('0x2a'),'body':{'contact':{'last_name':_0x3aa3e6[_0x4c3697('0x20')],'work_number':_0x3aa3e6[_0x4c3697('0x20')],'mobile_number':_0x3aa3e6[_0x4c3697('0x20')],'owner_id':_0x3aa3e6[_0x4c3697('0x4e')],'created_at':_0x4831c3[_0x4c3697('0x9')](_0x4c3697('0x46'))}},'json':!![]};return _0x3767eb[_0x4c3697('0x0')]=_0x4e5874,logger[_0x4c3697('0x3f')]('Contact\x20not\x20found,\x20creating\x20a\x20new\x20contact'),rp(_0x3767eb)['then'](function(_0x309339){const _0x1be637=_0x4c3697;_0x3aa3e6[_0x1be637('0x32')]=_0x309339[_0x1be637('0x43')]['id'],_0x21a22b(_0x3aa3e6);})['catch'](function(_0x16747f){const _0x512b95=_0x4c3697;logger[_0x512b95('0x26')]('['+[_0x24f517[_0x512b95('0x30')]()]+']',_0x16747f[_0x512b95('0xc')]),_0x5a5ed5(_0x16747f['message']);});});}function getTicket(_0x5ea0a6,_0x44d5fc,_0x8fb2c6,_0x319cc9,_0x16b813){return function(_0x44a0fc){const _0x5e7587=a1138_0x3c86;return logger[_0x5e7587('0x3f')]('Creating\x20new\x20task'),new Promise(function(_0x2fa8c6,_0x1b4b20){const _0x233e13=_0x5e7587,_0x28def2=moment(),_0x5ce5f6={'method':_0x233e13('0x35'),'uri':_0x8fb2c6+_0x233e13('0x25'),'body':{'title':intUtil['getString'](_0x319cc9['Subjects'],_0x16b813,'\x20'),'description':intUtil[_0x233e13('0x4b')](_0x319cc9[_0x233e13('0x6')],_0x16b813,'\x0a'),'owner_id':_0x44a0fc[_0x233e13('0x4e')],'creater_id':_0x44a0fc['adminId'],'targetable_id':_0x44a0fc[_0x233e13('0x32')],'targetable_type':_0x233e13('0x7'),'created_at':_0x28def2['format'](_0x233e13('0x46')),'due_date':_0x28def2[_0x233e13('0x38')](0x1e,'m')[_0x233e13('0x9')]('YYYY-MM-DDTHH:mm:ss')},'json':!![]};return _0x5ce5f6[_0x233e13('0x0')]=_0x44d5fc,rp(_0x5ce5f6)[_0x233e13('0x33')](function(_0x16a75c){const _0x57df03=_0x233e13;_0x44a0fc[_0x57df03('0x4c')]=_0x16a75c['task']['id'],logger['info'](_0x57df03('0x4a'),_0x44a0fc[_0x57df03('0x4c')]),_0x2fa8c6(_0x44a0fc);})[_0x233e13('0x14')](function(_0x29e56d){const _0x3f337c=_0x233e13;logger[_0x3f337c('0x26')]('['+[_0x5ea0a6[_0x3f337c('0x30')]()]+']',_0x29e56d['message']),_0x1b4b20(_0x29e56d[_0x3f337c('0xc')]);});});};}function emit(_0x2b00ab,_0x121c57,_0x4d1325){const _0x474cb1=_0x3c8948,_0x3d9b99={'uri':_0x2b00ab+'/contacts/'+_0x4d1325};io['to'](util[_0x474cb1('0x9')](_0x474cb1('0x45'),_0x121c57))[_0x474cb1('0x3a')](_0x474cb1('0x11'),_0x3d9b99);}exports['cs']=function(_0x491c88,_0x249e3d,_0x1ea648,_0x3086b4,_0x347b3f,_0xe65d06,_0xd99d54,_0xa0c29b){const _0xaccb1d=_0x3c8948,_0x211c06={},_0x2737a7={'Authorization':_0xaccb1d('0x19')+_0xe65d06[_0xaccb1d('0x1b')]};_0xe65d06['remoteUri']=intUtil[_0xaccb1d('0x1')](_0xe65d06[_0xaccb1d('0x1c')]),_0xe65d06[_0xaccb1d('0x2b')]=intUtil[_0xaccb1d('0x1')](_0xe65d06[_0xaccb1d('0x2b')]);const _0x5596de=_0xe65d06[_0xaccb1d('0x1c')];_0x211c06[_0xaccb1d('0x22')]=_0xe65d06[_0xaccb1d('0x47')],_0x211c06[_0xaccb1d('0x20')]=_0xa0c29b[_0xaccb1d('0x2e')]()===_0xaccb1d('0xe')?_0x249e3d[_0xaccb1d('0x17')]:_0x249e3d[_0xaccb1d('0x23')],_0x211c06['callDirection']=_0xa0c29b===_0xaccb1d('0x18')||_0xa0c29b===_0xaccb1d('0x50')?_0xaccb1d('0x18'):_0xaccb1d('0xe');_0x3086b4&&(_0x211c06['agentEmail']=_0x3086b4[_0xaccb1d('0x3e')]);const _0x2e40d7=util[_0xaccb1d('0x9')](_0xaccb1d('0x37'),_0xe65d06[_0xaccb1d('0x2b')],_0x249e3d[_0xaccb1d('0x3d')],md5(_0x249e3d[_0xaccb1d('0x3d')]));if(_0x347b3f&&_0x347b3f['monitor_format'])logger[_0xaccb1d('0x3f')]('[QUEUE]',_0xaccb1d('0x15')),_0x249e3d['recordingURL']=_0x2e40d7;else _0xd99d54&&_0xd99d54[_0xaccb1d('0x24')]&&_0xd99d54[_0xaccb1d('0x24')]!==_0xaccb1d('0x27')?(logger[_0xaccb1d('0x3f')](_0xaccb1d('0x3'),_0xaccb1d('0x15')),_0x249e3d['recordingURL']=_0x2e40d7):_0x249e3d[_0xaccb1d('0x12')]='';return getAdminId(_0x211c06,_0xa0c29b,_0x2737a7,_0x5596de)[_0xaccb1d('0x33')](getUser(_0xa0c29b,_0x2737a7,_0x5596de))[_0xaccb1d('0x33')](getEndUser(_0xa0c29b,_0x2737a7,_0x5596de))[_0xaccb1d('0x33')](getTicket(_0xa0c29b,_0x2737a7,_0x5596de,_0x1ea648,_0x249e3d))[_0xaccb1d('0x33')](function(_0x37ed1f){const _0x118226=_0xaccb1d;logger['info'](util[_0x118226('0x9')](_0x118226('0x44'),_0x37ed1f[_0x118226('0x4c')])),_0xa0c29b!=='unmanaged'&&(logger['info']('['+[_0xa0c29b['toUpperCase']()]+']',_0x118226('0x2f')),emit(_0x5596de,_0x3086b4[_0x118226('0x42')],_0x37ed1f[_0x118226('0x32')]));})[_0xaccb1d('0x14')](function(_0x27ddd3){const _0x500726=_0xaccb1d;logger['error']('['+[_0xa0c29b[_0x500726('0x30')]()]+_0x500726('0x1a'),util[_0x500726('0x36')](_0x27ddd3,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/integration/index.js b/server/services/ami/trigger/integration/index.js index f079358..d5661c8 100644 --- a/server/services/ami/trigger/integration/index.js +++ b/server/services/ami/trigger/integration/index.js @@ -1 +1 @@ -const a1139_0x5e25=['./freshdesk','routeId','EVENT\x20UNKNOWN','salesforce','toLowerCase','queue','servicenow','zendesk','Configurations','./servicenow','../../../../config/logger','./desk','outbound','vtiger','[EXEC]','data2','unmanaged','./zoho','find','format','freshdesk','log','%s\x20account\x20#%s\x20not\x20found','dynamics365','./salesforce','desk','data3','sugarcrm','includes','util','data1','freshsales','zoho','lodash','error'];(function(_0x17e63f,_0x5e25fc){const _0x4b086c=function(_0x5d37a9){while(--_0x5d37a9){_0x17e63f['push'](_0x17e63f['shift']());}};_0x4b086c(++_0x5e25fc);}(a1139_0x5e25,0xfe));const a1139_0x4b08=function(_0x17e63f,_0x5e25fc){_0x17e63f=_0x17e63f-0x0;let _0x4b086c=a1139_0x5e25[_0x17e63f];return _0x4b086c;};const _0xc88e21=a1139_0x4b08;'use strict';const _=require(_0xc88e21('0x18')),util=require(_0xc88e21('0x14')),zendesk=require('./zendesk'),salesforce=require(_0xc88e21('0xf')),sugarcrm=require('./sugarcrm'),freshdesk=require(_0xc88e21('0x1a')),zoho=require(_0xc88e21('0x8')),desk=require(_0xc88e21('0x2')),vtiger=require('./vtiger'),servicenow=require(_0xc88e21('0x0')),dynamics365=require('./dynamics365'),freshsales=require('./freshsales'),integrations=[_0xc88e21('0x21'),'salesforce',_0xc88e21('0x12'),_0xc88e21('0xb'),_0xc88e21('0x17'),_0xc88e21('0x10'),_0xc88e21('0x4'),_0xc88e21('0xe'),_0xc88e21('0x16'),_0xc88e21('0x20')];exports['exec']=function(_0x5d37a9,_0x36a6fe,_0x4f24e7,_0x4d34bf,_0x172d5f,_0x4aa67c){const _0x129e33=_0xc88e21;if(_0x4f24e7){if(_[_0x129e33('0x13')](integrations,_0x5d37a9[_0x129e33('0x15')]['toLowerCase']()))try{let _0x106760=null,_0x204d48='';const _0x590f59=_0x4f24e7[_0x5d37a9[_0x129e33('0x15')]['toLowerCase']()];if(_0x590f59){const _0x4f677c=_0x590f59[_0x5d37a9[_0x129e33('0x6')]];if(_0x4f677c){const _0x43a259=_[_0x129e33('0x9')](_0x4f677c[_0x129e33('0x22')],{'id':parseInt(_0x5d37a9[_0x129e33('0x11')],0xa)});if(_0x43a259){if(_0x4d34bf){if(_0x172d5f&&_0x36a6fe[_0x129e33('0x1f')])_0x204d48='queue';else _0x36a6fe[_0x129e33('0x1b')]?_0x204d48=_0x129e33('0x3'):console['log'](_0x129e33('0x1c'),_0x36a6fe);}else _0x204d48=_0x129e33('0x7');switch(_0x5d37a9[_0x129e33('0x15')][_0x129e33('0x1e')]()){case _0x129e33('0x21'):zendesk[_0x204d48](_0x5d37a9,_0x36a6fe,_0x43a259,_0x4d34bf,_0x172d5f,_0x4f677c,_0x4aa67c);break;case _0x129e33('0x1d'):salesforce[_0x204d48](_0x5d37a9,_0x36a6fe,_0x43a259,_0x4d34bf,_0x172d5f,_0x4f677c,_0x4aa67c);break;case _0x129e33('0x12'):sugarcrm[_0x204d48](_0x5d37a9,_0x36a6fe,_0x43a259,_0x4d34bf,_0x172d5f,_0x4f677c,_0x4aa67c);break;case'freshdesk':freshdesk[_0x204d48](_0x5d37a9,_0x36a6fe,_0x43a259,_0x4d34bf,_0x172d5f,_0x4f677c,_0x4aa67c);break;case _0x129e33('0x17'):zoho[_0x204d48](_0x5d37a9,_0x36a6fe,_0x43a259,_0x4d34bf,_0x172d5f,_0x4f677c,_0x4aa67c);break;case'desk':desk[_0x204d48](_0x5d37a9,_0x36a6fe,_0x43a259,_0x4d34bf,_0x172d5f,_0x4f677c,_0x4aa67c);break;case'vtiger':vtiger[_0x204d48](_0x5d37a9,_0x36a6fe,_0x43a259,_0x4d34bf,_0x172d5f,_0x4f677c,_0x4aa67c);break;case _0x129e33('0x16'):freshsales['cs'](_0x5d37a9,_0x36a6fe,_0x43a259,_0x4d34bf,_0x172d5f,_0x4f677c,_0x4aa67c,_0x204d48);break;case _0x129e33('0x20'):servicenow['cs'](_0x5d37a9,_0x36a6fe,_0x43a259,_0x4d34bf,_0x172d5f,_0x4f677c,_0x4aa67c,_0x204d48);break;case _0x129e33('0xe'):dynamics365['cs'](_0x5d37a9,_0x36a6fe,_0x43a259,_0x4d34bf,_0x172d5f,_0x4f677c,_0x4aa67c,_0x204d48);break;default:console[_0x129e33('0xc')]('unknown\x20integration');}}else _0x106760=require(_0x129e33('0x1'))(_0x5d37a9[_0x129e33('0x15')][_0x129e33('0x1e')]()),_0x106760[_0x129e33('0x19')]('[EXEC]',util[_0x129e33('0xa')]('%s\x20configuration\x20#%s\x20not\x20found',_0x5d37a9[_0x129e33('0x15')][_0x129e33('0x1e')](),_0x5d37a9[_0x129e33('0x11')]));}else _0x106760=require(_0x129e33('0x1'))(_0x5d37a9[_0x129e33('0x15')][_0x129e33('0x1e')]()),_0x106760['error'](_0x129e33('0x5'),util[_0x129e33('0xa')](_0x129e33('0xd'),_0x5d37a9[_0x129e33('0x15')][_0x129e33('0x1e')](),_0x5d37a9[_0x129e33('0x6')]));}else{}}catch(_0x245474){console[_0x129e33('0x19')](_0x245474);}}}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/integration/salesforce.js b/server/services/ami/trigger/integration/salesforce.js index 5e96d9d..a06d7fb 100644 --- a/server/services/ami/trigger/integration/salesforce.js +++ b/server/services/ami/trigger/integration/salesforce.js @@ -1 +1 @@ -const a1140_0x38a1=['recordingFormat','none','Variable','variableName','info','Contact','Enduser\x20with\x20phone\x20%s\x20not\x20found.','clientId','toLowerCase','Caller\x20-\x20%s','Searching\x20enduser\x20with\x20phone\x20%s.\x20Serching\x20method\x20used\x20%s.','Fields','securityToken','validateEmail','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','Case','moduleSearch','ContactId','calleridnum','remoteUri','[OUTBOUND]','ticketType','display_name','recordingURL','../../../../rediscache','then','type','integrationTab','lastevent','isNil','email','user:%s','calleridname','salesforce','WhoId','string','Task','contact','Connection\x20established.','[OUTBOUND]\x20Ticket\x20%s\x20created.','destcalleridnum','Agent\x20%s\x20not\x20found.\x20Switch\x20to\x20the\x20admin\x20account.','idField','serverUrl','contact_lead','sobject','https://login.salesforce.com','resolve','password','assign','User','name','forEach','execute','newTab','variable','login','emit','Lead','find','getString','catch','destcalleridname','[QUEUE]','[QUEUE]\x20Salesforce\x20account\x20type\x20not\x20recognized.','outbound','Descriptions','trigger:browser:url','identity','moduleCreate','trigger:salesforce:display','Company','lodash',']\x20Integration\x20account\x20type\x20%s.','concat','No\x20Company','stringify','[OUTBOUND]\x20Displaying\x20ticket\x20%s\x20to\x20agent\x20%s.\x20Integration\x20account\x20type\x20%s.','stripTrailingSlash','clientSecret','length','Name','Enduser\x20with\x20phone\x20%s\x20found.','md5','toString','Subjects','moment','%s/%s/e','format','instanceUrl','Phone','Connection','error','[QUEUE]\x20Ticket\x20%s\x20created','queue','../../../../config/logger','create','upperFirst','uniqueid','[QUEUE]\x20Displaying\x20ticket\x20%s\x20to\x20agent\x20%s.\x20Integration\x20account\x20type\x20%s.','Recording\x20is\x20enabled!','Email','lead','user_id','toUpperCase','unmanaged','content','monitor_format','./util'];(function(_0x320150,_0x38a1cc){const _0x31b202=function(_0x3a7101){while(--_0x3a7101){_0x320150['push'](_0x320150['shift']());}};_0x31b202(++_0x38a1cc);}(a1140_0x38a1,0x1d9));const a1140_0x31b2=function(_0x320150,_0x38a1cc){_0x320150=_0x320150-0x0;let _0x31b202=a1140_0x38a1[_0x320150];return _0x31b202;};const _0x487c2e=a1140_0x31b2;'use strict';const _=require(_0x487c2e('0x23')),moment=require(_0x487c2e('0x31')),md5=require(_0x487c2e('0x2e')),jsforce=require('jsforce'),util=require('util'),intUtil=require(_0x487c2e('0x47')),logger=require(_0x487c2e('0x3a'))(_0x487c2e('0x69')),{getSocket}=require(_0x487c2e('0x60')),io=getSocket();function emit(_0x3a7101,_0x5cdaae,_0x4c661e){const _0x354715=_0x487c2e;io['to'](_0x3a7101)[_0x354715('0x14')](_0x5cdaae,_0x4c661e);}function getTicket(_0x2b4aad,_0x13fb96,_0x621142,_0x470aae,_0x40e0d6,_0x2bf26d,_0x485a97){const _0x40f5ee=_0x487c2e;let _0x59fe1d={};if(_0x470aae['ticketType']===_0x40f5ee('0x6c'))_0x59fe1d=Object[_0x40f5ee('0xc')]({},{'OwnerId':_0x13fb96['id'],'ActivityDate':moment['utc'](),'IsReminderSet':![],'IsRecurrence':![],'Subject':intUtil[_0x40f5ee('0x17')](_0x470aae[_0x40f5ee('0x30')],_0x40e0d6,'\x20'),'Description':intUtil[_0x40f5ee('0x17')](_0x470aae[_0x40f5ee('0x1d')],_0x40e0d6,'\x0a')},getCustomFields(_0x2bf26d,_0x40e0d6)),_0x621142&&(_0x59fe1d[_0x40f5ee('0x6a')]=_0x621142['id']);else _0x470aae[_0x40f5ee('0x5d')]===_0x40f5ee('0x57')&&(_0x59fe1d=Object[_0x40f5ee('0xc')]({},{'OwnerId':_0x13fb96['id'],'Subject':intUtil['getString'](_0x470aae[_0x40f5ee('0x30')],_0x40e0d6,'\x20'),'Description':intUtil[_0x40f5ee('0x17')](_0x470aae[_0x40f5ee('0x1d')],_0x40e0d6,'\x0a')},getCustomFields(_0x2bf26d,_0x40e0d6)),_0x621142&&(_0x59fe1d[_0x40f5ee('0x59')]=_0x621142['id']));return _0x485a97[_0x40f5ee('0x8')](_0x470aae[_0x40f5ee('0x5d')])[_0x40f5ee('0x3b')](_0x59fe1d);}function getUser(_0x113f00,_0xe87ef7,_0x357f00){const _0x30224a=_0x487c2e;if(!_['isNil'](_0xe87ef7)&&intUtil[_0x30224a('0x55')](_0xe87ef7)){const _0x233e0c={'Email':_0xe87ef7},_0x2a64dc={'Id':!![],'Username':!![],'Name':!![],'Email':!![]};return _0x357f00[_0x30224a('0x8')](_0x30224a('0xd'))[_0x30224a('0x16')](_0x233e0c,_0x2a64dc)[_0x30224a('0x10')]()[_0x30224a('0x61')](function(_0xc1fa2a){const _0x2b3811=_0x30224a;if(_0xc1fa2a[_0x2b3811('0x2b')]){const _0xb7581a=_['find'](_0xc1fa2a,function(_0x35adce){const _0x39cdf1=_0x2b3811;return _0x35adce[_0x39cdf1('0x40')]===_0xe87ef7;});if(_0xb7581a)return logger[_0x2b3811('0x4c')]('Agent\x20%s\x20found.',_0xe87ef7),Promise['resolve']({'id':_0xb7581a['Id'],'name':_0xb7581a[_0x2b3811('0x2c')]});}else return logger['info'](_0x2b3811('0x4'),_0xe87ef7),_0x357f00[_0x2b3811('0x1f')]()[_0x2b3811('0x61')](function(_0x401e07){const _0x246b7d=_0x2b3811;return Promise[_0x246b7d('0xa')]({'id':_0x401e07[_0x246b7d('0x42')],'name':_0x401e07[_0x246b7d('0x5e')]});});});}else return logger[_0x30224a('0x4c')](_0x30224a('0x4'),_0xe87ef7),_0x357f00[_0x30224a('0x1f')]()[_0x30224a('0x61')](function(_0xde7f8e){const _0x1d8463=_0x30224a;return Promise['resolve']({'id':_0xde7f8e[_0x1d8463('0x42')],'name':_0xde7f8e['display_name']});});}function getEndUser(_0x5966fb,_0x382772,_0x2705ae,_0x7a908e,_0x47fa2b){const _0x2b94d5=_0x487c2e,_0xf508c4={'Phone':_0x7a908e},_0x43cb8c={'Id':!![],'Name':!![],'Phone':!![]};return Promise[_0x2b94d5('0xa')]()[_0x2b94d5('0x61')](function(){const _0x2ae440=_0x2b94d5;if(_0x382772[_0x2ae440('0x5d')]===_0x2ae440('0x6c')){logger[_0x2ae440('0x4c')](_0x2ae440('0x52'),_0x7a908e,_0x382772[_0x2ae440('0x58')]);switch(_0x382772[_0x2ae440('0x58')]){case _0x2ae440('0x7'):return _0x47fa2b[_0x2ae440('0x8')](_0x2ae440('0x4d'))[_0x2ae440('0x16')](_0xf508c4,_0x43cb8c)[_0x2ae440('0x10')]()[_0x2ae440('0x61')](function(_0x5f3b23){const _0x25552a=_0x2ae440;return _0x5f3b23&&_0x5f3b23['length']?_0x5f3b23:_0x47fa2b[_0x25552a('0x8')](_0x25552a('0x15'))[_0x25552a('0x16')](_0xf508c4,_0x43cb8c);});case'contact':return _0x47fa2b[_0x2ae440('0x8')](_0x2ae440('0x4d'))[_0x2ae440('0x16')](_0xf508c4,_0x43cb8c)[_0x2ae440('0x10')]();case _0x2ae440('0x41'):return _0x47fa2b['sobject'](_0x2ae440('0x15'))['find'](_0xf508c4,_0x43cb8c);default:return null;}}else{if(_0x382772[_0x2ae440('0x5d')]===_0x2ae440('0x57'))return logger[_0x2ae440('0x4c')](_0x2ae440('0x52'),_0x7a908e,_0x2ae440('0x0')),_0x47fa2b[_0x2ae440('0x8')]('Contact')[_0x2ae440('0x16')](_0xf508c4,_0x43cb8c)[_0x2ae440('0x10')]();}})['then'](function(_0x2157f1){const _0x227783=_0x2b94d5;if(_0x2157f1&&_0x2157f1[_0x227783('0x2b')]){const _0x22a8a2=_[_0x227783('0x16')](_0x2157f1,function(_0x57ffe8){const _0x3a0333=_0x227783;return _0x57ffe8[_0x3a0333('0x35')]===_0x7a908e;});if(_0x22a8a2)return Promise[_0x227783('0xa')]({'id':_0x22a8a2['Id'],'name':_0x22a8a2[_0x227783('0x2c')],'phone':_0x22a8a2['Phone']});}})[_0x2b94d5('0x61')](function(_0x2b9af3){const _0x117de2=_0x2b94d5;if(_0x2b9af3)return logger['info'](_0x117de2('0x2d'),_0x7a908e),Promise[_0x117de2('0xa')](_0x2b9af3);else{logger[_0x117de2('0x4c')](_0x117de2('0x4e'),_0x7a908e);const _0x4981ee={'LastName':_0x2705ae!==''?_0x2705ae:util[_0x117de2('0x33')](_0x117de2('0x51'),_0x7a908e),'Phone':_0x7a908e};if(_0x382772['moduleCreate']){if(_0x382772['moduleCreate']===_0x117de2('0x0'))logger[_0x117de2('0x4c')]('Enduser\x20with\x20phone\x20%s.\x20Creating\x20method\x20used\x20%s.',_0x7a908e,_0x382772[_0x117de2('0x20')]);else{if(_0x382772['moduleCreate']===_0x117de2('0x41')&&_0x382772[_0x117de2('0x5d')]===_0x117de2('0x6c'))logger['info']('Enduser\x20with\x20phone\x20%s.\x20Creating\x20method\x20used\x20%s.',_0x7a908e,_0x382772[_0x117de2('0x20')]),_0x4981ee[_0x117de2('0x22')]=_0x117de2('0x26');else return null;}}return _0x47fa2b[_0x117de2('0x8')](_[_0x117de2('0x3c')](_0x382772['moduleCreate']))['create'](_0x4981ee);}});}function getCustomFields(_0x19e8c7,_0x4d64ab){const _0x8efd76=_0x487c2e,_0x84fe84={};return _0x19e8c7[_0x8efd76('0x2b')]>0x0&&_[_0x8efd76('0xf')](_0x19e8c7,function(_0x20f927){const _0x46c0af=_0x8efd76;if(_0x20f927[_0x46c0af('0x62')]===_0x46c0af('0x6b')&&_0x20f927[_0x46c0af('0x5')])_0x84fe84[_0x20f927[_0x46c0af('0x5')]]=_0x20f927[_0x46c0af('0x45')][_0x46c0af('0x2f')]();else{if(_0x20f927[_0x46c0af('0x62')]===_0x46c0af('0x12')&&_0x20f927['variableName']&&_0x20f927[_0x46c0af('0x5')])_0x4d64ab[_0x20f927['variableName']]&&(_0x84fe84[_0x20f927['idField']]=_0x4d64ab[_0x20f927[_0x46c0af('0x4b')]]['toString']());else _0x20f927[_0x46c0af('0x62')]==='customVariable'&&_0x20f927[_0x46c0af('0x4a')]&&_0x20f927[_0x46c0af('0x4a')]['name']&&_0x20f927['idField']&&(_0x4d64ab[_0x20f927[_0x46c0af('0x4a')]['name'][_0x46c0af('0x50')]()]&&(_0x84fe84[_0x20f927['idField']]=_0x4d64ab[_0x20f927[_0x46c0af('0x4a')][_0x46c0af('0xe')][_0x46c0af('0x50')]()][_0x46c0af('0x2f')]()));}}),_0x84fe84;}function getConnection(_0x1ffff0){const _0x4c999e=_0x487c2e,_0x15b827=_0x1ffff0[_0x4c999e('0xb')][_0x4c999e('0x25')](_0x1ffff0[_0x4c999e('0x54')]),_0x2f0e78=new jsforce[(_0x4c999e('0x36'))]({'oauth2':{'loginUrl':_0x1ffff0['remoteUri']||_0x4c999e('0x9'),'clientId':_0x1ffff0[_0x4c999e('0x4f')],'clientSecret':_0x1ffff0[_0x4c999e('0x2a')]}});return _0x2f0e78[_0x4c999e('0x13')](_0x1ffff0['username'],_0x15b827)[_0x4c999e('0x61')](function(){const _0x180158=_0x4c999e;return logger[_0x180158('0x4c')](_0x180158('0x1')),_0x2f0e78;});}exports[_0x487c2e('0x39')]=function(_0xfa84c6,_0x30c19d,_0x3eb15c,_0x556f40,_0x119aaa,_0x5ee871){const _0x39e962=_0x487c2e;let _0x40cea2,_0x2ec945,_0x3e715d,_0xf22da9;return _0x5ee871[_0x39e962('0x6')]=intUtil['stripTrailingSlash'](_0x5ee871[_0x39e962('0x6')]),_0x5ee871['remoteUri']=intUtil[_0x39e962('0x29')](_0x5ee871[_0x39e962('0x5b')]),_0x119aaa&&_0x119aaa['monitor_format']?(logger['info'](_0x39e962('0x1a'),'Recording\x20is\x20enabled!'),_0x30c19d[_0x39e962('0x5f')]=util[_0x39e962('0x33')](_0x39e962('0x56'),_0x5ee871[_0x39e962('0x6')],_0x30c19d[_0x39e962('0x3d')],md5(_0x30c19d[_0x39e962('0x3d')]))):_0x30c19d[_0x39e962('0x5f')]='',getConnection(_0x5ee871)[_0x39e962('0x61')](function(_0x2ee4b4){const _0x5e5315=_0x39e962;return _0xf22da9=_0x2ee4b4,getUser(_0x5ee871,_0x556f40[_0x5e5315('0x66')],_0xf22da9);})[_0x39e962('0x61')](function(_0x1e1a80){const _0x9c5d2b=_0x39e962;return _0x40cea2=_0x1e1a80,getEndUser(_0x5ee871,_0x3eb15c,_0x30c19d[_0x9c5d2b('0x68')],_0x30c19d[_0x9c5d2b('0x5a')],_0xf22da9);})[_0x39e962('0x61')](function(_0x75c359){const _0x336c50=_0x39e962;return _0x2ec945=_0x75c359,getTicket(_0x5ee871,_0x40cea2,_0x2ec945,_0x3eb15c,_0x30c19d,_0x3eb15c[_0x336c50('0x53')],_0xf22da9,'queue');})['then'](function(_0x2157a9){const _0x529a31=_0x39e962;_0x3e715d=_0x2157a9,logger[_0x529a31('0x4c')](_0x529a31('0x38'),_0x3e715d['id']),logger['info'](_0x529a31('0x3e'),_0x3e715d['id'],_0x556f40[_0x529a31('0xe')],_0x5ee871['type']);switch(_0x5ee871[_0x529a31('0x62')]){case _0x529a31('0x63'):emit(util[_0x529a31('0x33')](_0x529a31('0x67'),_0x556f40[_0x529a31('0xe')]),'trigger:salesforce:display',{'recordId':_0x3e715d['id']});break;case _0x529a31('0x11'):emit(util[_0x529a31('0x33')](_0x529a31('0x67'),_0x556f40[_0x529a31('0xe')]),_0x529a31('0x1e'),{'uri':util['format'](_0x529a31('0x32'),_0xf22da9[_0x529a31('0x34')],_0x3e715d['id'])});break;default:logger['error'](_0x529a31('0x1b'));}})[_0x39e962('0x18')](function(_0x4bdc37){const _0x14a69f=_0x39e962;logger[_0x14a69f('0x37')](_0x14a69f('0x1a'),JSON[_0x14a69f('0x27')](_0x4bdc37));});},exports[_0x487c2e('0x1c')]=function(_0x286f62,_0x2b0b62,_0x41ab80,_0x19d349,_0x1bf750,_0x4a5bb6,_0x2d8420){const _0xadad4d=_0x487c2e;let _0x3d1dc9,_0x96b96e,_0x31ed3d,_0x1f3c67;return _0x4a5bb6[_0xadad4d('0x6')]=intUtil[_0xadad4d('0x29')](_0x4a5bb6['serverUrl']),_0x4a5bb6[_0xadad4d('0x5b')]=intUtil[_0xadad4d('0x29')](_0x4a5bb6['remoteUri']),_0x2d8420&&_0x2d8420[_0xadad4d('0x48')]&&_0x2d8420[_0xadad4d('0x48')]!==_0xadad4d('0x49')&&(logger[_0xadad4d('0x4c')](_0xadad4d('0x5c'),_0xadad4d('0x3f')),_0x2b0b62['recordingURL']=util[_0xadad4d('0x33')](_0xadad4d('0x56'),_0x4a5bb6[_0xadad4d('0x6')],_0x2b0b62[_0xadad4d('0x3d')],md5(_0x2b0b62['uniqueid']))),getConnection(_0x4a5bb6)[_0xadad4d('0x61')](function(_0x4f465a){const _0x4cb309=_0xadad4d;return _0x1f3c67=_0x4f465a,getUser(_0x4a5bb6,_0x19d349[_0x4cb309('0x66')],_0x1f3c67);})[_0xadad4d('0x61')](function(_0x1353d4){const _0x4a1462=_0xadad4d;return _0x3d1dc9=_0x1353d4,getEndUser(_0x4a5bb6,_0x41ab80,_0x2b0b62[_0x4a1462('0x19')],_0x2b0b62[_0x4a1462('0x3')],_0x1f3c67);})[_0xadad4d('0x61')](function(_0x5050d8){const _0x487daf=_0xadad4d;return _0x96b96e=_0x5050d8,getTicket(_0x4a5bb6,_0x3d1dc9,_0x96b96e,_0x41ab80,_0x2b0b62,_0x41ab80[_0x487daf('0x53')],_0x1f3c67,_0x487daf('0x1c'));})[_0xadad4d('0x61')](function(_0x149118){const _0x3e93ed=_0xadad4d;_0x31ed3d=_0x149118,logger[_0x3e93ed('0x4c')](_0x3e93ed('0x2'),_0x31ed3d['id']),logger[_0x3e93ed('0x4c')](_0x3e93ed('0x28'),_0x31ed3d['id'],_0x19d349['name'],_0x4a5bb6[_0x3e93ed('0x62')]);switch(_0x4a5bb6[_0x3e93ed('0x62')]){case _0x3e93ed('0x63'):emit(util[_0x3e93ed('0x33')](_0x3e93ed('0x67'),_0x19d349[_0x3e93ed('0xe')]),_0x3e93ed('0x21'),{'recordId':_0x31ed3d['id']});break;case _0x3e93ed('0x11'):emit(util[_0x3e93ed('0x33')](_0x3e93ed('0x67'),_0x19d349[_0x3e93ed('0xe')]),_0x3e93ed('0x1e'),{'uri':util[_0x3e93ed('0x33')]('%s/%s/e',_0x1f3c67[_0x3e93ed('0x34')],_0x31ed3d['id'])});break;default:logger[_0x3e93ed('0x37')](_0x3e93ed('0x5c'),'Salesforce\x20account\x20type\x20not\x20recognized');}})[_0xadad4d('0x18')](function(_0x422598){const _0x16f9db=_0xadad4d;logger[_0x16f9db('0x37')]('[OUTBOUND]',JSON[_0x16f9db('0x27')](_0x422598));});},exports[_0x487c2e('0x44')]=function(_0x2acc39,_0x56fe16,_0x3b8089,_0x408968,_0x2cbd1d,_0x3c3695){const _0x35ccc2=_0x487c2e;let _0x3a9f01,_0x2eaf7e,_0x178498,_0x562411;return _0x3c3695[_0x35ccc2('0x6')]=intUtil[_0x35ccc2('0x29')](_0x3c3695[_0x35ccc2('0x6')]),_0x3c3695[_0x35ccc2('0x5b')]=intUtil[_0x35ccc2('0x29')](_0x3c3695[_0x35ccc2('0x5b')]),_0x2cbd1d&&_0x2cbd1d[_0x35ccc2('0x46')]?(logger[_0x35ccc2('0x4c')]('['+_0x56fe16['lastevent']['toUpperCase']()+']',_0x35ccc2('0x3f')),_0x56fe16[_0x35ccc2('0x5f')]=util[_0x35ccc2('0x33')]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x3c3695['serverUrl'],_0x56fe16['uniqueid'],md5(_0x56fe16[_0x35ccc2('0x3d')]))):_0x56fe16['recordingURL']='',getConnection(_0x3c3695)['then'](function(_0x57a495){const _0x1ffb14=_0x35ccc2;return _0x562411=_0x57a495,!_[_0x1ffb14('0x65')](_0x408968)?getUser(_0x3c3695,_0x408968[_0x1ffb14('0xe')],_0x562411):getUser(_0x3c3695,null,_0x562411);})[_0x35ccc2('0x61')](function(_0x4a25d7){const _0x7723a1=_0x35ccc2;return _0x3a9f01=_0x4a25d7,getEndUser(_0x3c3695,_0x3b8089,_0x56fe16[_0x7723a1('0x68')],_0x56fe16[_0x7723a1('0x5a')],_0x562411);})[_0x35ccc2('0x61')](function(_0x4143ab){const _0x3fae87=_0x35ccc2;return _0x2eaf7e=_0x4143ab,getTicket(_0x3c3695,_0x3a9f01,_0x2eaf7e,_0x3b8089,_0x56fe16,_0x3b8089[_0x3fae87('0x53')],_0x562411);})[_0x35ccc2('0x61')](function(_0x4eea89){const _0x16bc28=_0x35ccc2;_0x178498=_0x4eea89,logger[_0x16bc28('0x4c')]('['+_0x56fe16[_0x16bc28('0x64')]['toUpperCase']()+']\x20Ticket\x20%s\x20created.',_0x178498['id']),logger['info']('['+_0x56fe16[_0x16bc28('0x64')][_0x16bc28('0x43')]()+_0x16bc28('0x24'),_0x3c3695['type']);})[_0x35ccc2('0x18')](function(_0x5cdc4e){const _0x3913ca=_0x35ccc2;logger['error']('['+_0x56fe16[_0x3913ca('0x64')][_0x3913ca('0x43')]()+']',JSON[_0x3913ca('0x27')](_0x5cdc4e));});}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/integration/servicenow.js b/server/services/ami/trigger/integration/servicenow.js index c5a835f..2a2e08b 100644 --- a/server/services/ami/trigger/integration/servicenow.js +++ b/server/services/ami/trigger/integration/servicenow.js @@ -1 +1 @@ -const a1141_0x535c=['isNil',']\x20getTicket\x20input\x20crm','stripTrailingSlash','user','toUpperCase','%255EORDERBYDESCnumber','callDirection','string','user:%s','password','],\x20getUser\x20entity','endUserId','POST','%26sysparm_record_target%3Dincident','result','endUserNumber','emit','adminEmail','customField','],\x20createEndUser\x20crm','System','sysparm_limit=1','outbound','format',']\x20Error\x20running\x20ServiceNow\x20integration','],\x20EndUser\x20schema','],\x20getAdminUser\x20crm',']\x20POST\x20incident\x20entity\x20schema','trigger:browser:url','number','inspect','recordingURL','content','[OUTBOUND]','remoteUri','Descriptions','sys_id','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','md5','nameField','%26sysparm_record_row%3D1%26sysparm_record_rows%3D39','sys_user?sysparm_query=email%3D','uniqueid','idField','email','error','util','info','ticketNumber','Variable','toLowerCase','variableName','../../../../rediscache','unmanaged','],\x20getUser\x20crm','request-promise-native','destcalleridnum','Recording\x20is\x20enabled!','catch','message','Fields','[QUEUE]','length','then','serverUrl','toString','type','ticketId','Displaying\x20call\x20in\x20a\x20new\x20tab...','true','../../../../config/logger','assign','userEmail',']\x20getTicket\x20crm','GET','],\x20getUser\x20input\x20crm','calleridnum','userId','adminId','%26sysparm_record_list%3Dactive%253Dtrue','customVariable','monitor_format','%s/api/now/table/','name','queue','./util','active','],\x20getEndUser\x20input\x20crm','],\x20getUser\x20rp\x20obj'];(function(_0x1cbf79,_0x535c6a){const _0x2b092c=function(_0x1d224a){while(--_0x1d224a){_0x1cbf79['push'](_0x1cbf79['shift']());}};_0x2b092c(++_0x535c6a);}(a1141_0x535c,0xad));const a1141_0x2b09=function(_0x1cbf79,_0x535c6a){_0x1cbf79=_0x1cbf79-0x0;let _0x2b092c=a1141_0x535c[_0x1cbf79];return _0x2b092c;};const _0x4030fe=a1141_0x2b09;'use strict';const _=require('lodash'),rp=require(_0x4030fe('0x3c')),util=require(_0x4030fe('0x33')),md5=require(_0x4030fe('0x2b')),intUtil=require(_0x4030fe('0x1')),logger=require(_0x4030fe('0x4b'))('servicenow'),{getSocket}=require(_0x4030fe('0x39')),io=getSocket();function getAdminUser(_0x1d224a,_0x13fc9e,_0x3cf10d,_0x27941e,_0x30842a,_0x8d4e9){return new Promise(function(_0x170d9c,_0x565a10){const _0x3839f1=a1141_0x2b09,_0x252674={'method':'GET','uri':_0x27941e+'sys_user?sysparm_query=user_name%3Dadmin'+'&'+_0x30842a+'&'+_0x8d4e9,'auth':_0x13fc9e,'json':!![]};return rp(_0x252674)[_0x3839f1('0x44')](function(_0x17979a){const _0x4b0ebd=_0x3839f1;_0x17979a[_0x4b0ebd('0x13')]['length']>0x0&&(_0x3cf10d[_0x4b0ebd('0x53')]=_0x17979a[_0x4b0ebd('0x13')][0x0][_0x4b0ebd('0x29')]),logger[_0x4b0ebd('0x34')]('['+[_0x1d224a[_0x4b0ebd('0x9')]()]+_0x4b0ebd('0x1f'),_0x3cf10d),_0x170d9c(_0x3cf10d);})['catch'](function(_0x3f30b1){const _0x11a258=_0x3839f1;logger[_0x11a258('0x32')]('['+[_0x1d224a[_0x11a258('0x9')]()]+']',_0x3f30b1['message']),_0x565a10(_0x3f30b1[_0x11a258('0x40')]);});});}function getUser(_0x3277cd,_0x2641d6,_0xfa3f6f,_0x50de1a,_0x2070f3){return function(_0x1043a7){const _0x17ceb7=a1141_0x2b09;return logger[_0x17ceb7('0x34')]('['+[_0x3277cd['toUpperCase']()]+_0x17ceb7('0x50'),_0x1043a7),new Promise(function(_0x3022b6,_0xce8da5){const _0x351251=_0x17ceb7;if(intUtil['validateEmail'](_0x1043a7[_0x351251('0x4d')])){const _0x33515c={'method':_0x351251('0x4f'),'uri':_0xfa3f6f+_0x351251('0x2e')+_0x1043a7[_0x351251('0x4d')]+'&'+_0x50de1a+'&'+_0x2070f3,'auth':_0x2641d6,'json':!![]};return logger[_0x351251('0x34')]('['+[_0x3277cd[_0x351251('0x9')]()]+_0x351251('0x4'),_0x33515c),rp(_0x33515c)[_0x351251('0x44')](function(_0x4cb9d9){const _0x2ae072=_0x351251;logger['info']('['+[_0x3277cd[_0x2ae072('0x9')]()]+_0x2ae072('0xf'),_0x4cb9d9),_0x4cb9d9[_0x2ae072('0x13')][_0x2ae072('0x43')]>0x0&&String(_0x4cb9d9[_0x2ae072('0x13')][0x0][_0x2ae072('0x2')])===_0x2ae072('0x4a')?_0x1043a7[_0x2ae072('0x52')]=_0x4cb9d9[_0x2ae072('0x13')][0x0][_0x2ae072('0x29')]:(_0x1043a7[_0x2ae072('0x52')]=_0x1043a7[_0x2ae072('0x53')],_0x1043a7['userEmail']=_0x1043a7[_0x2ae072('0x16')]),logger[_0x2ae072('0x34')]('['+[_0x3277cd[_0x2ae072('0x9')]()]+_0x2ae072('0x3b'),_0x1043a7),_0x3022b6(_0x1043a7);})[_0x351251('0x3f')](function(_0x38f132){const _0x89a701=_0x351251;logger[_0x89a701('0x32')]('['+[_0x3277cd['toUpperCase']()]+']',_0x38f132[_0x89a701('0x40')]),_0xce8da5(_0x38f132[_0x89a701('0x40')]);});}else logger[_0x351251('0x34')]('['+[_0x3277cd[_0x351251('0x9')]()]+']\x20using\x20admin\x20profile'),_0x1043a7['userId']=_0x1043a7[_0x351251('0x53')],_0x1043a7[_0x351251('0x4d')]=_0x1043a7[_0x351251('0x16')],_0x3022b6(_0x1043a7);});};}function createEndUser(_0x423071,_0x1e2ae1,_0xdd91fa,_0x35515d,_0x330639){const _0x572b12=_0x4030fe;return logger['info']('['+[_0x423071[_0x572b12('0x9')]()]+'],\x20createEndUser\x20input\x20crm',_0xdd91fa),new Promise(function(_0x5540ac,_0x2ffc8b){const _0x41d218=_0x572b12,_0x53aaed={'method':_0x41d218('0x11'),'uri':_0x35515d+'sys_user?'+_0x330639,'body':{'user_name':_0xdd91fa['endUserNumber'],'roles':_0x41d218('0x8'),'first_name':_0xdd91fa[_0x41d218('0x14')],'active':_0x41d218('0x4a'),'date_format':_0x41d218('0x19'),'phone':_0xdd91fa[_0x41d218('0x14')]},'auth':_0x1e2ae1,'json':!![]};return rp(_0x53aaed)[_0x41d218('0x44')](function(_0x24a039){const _0x1af5ca=_0x41d218;logger[_0x1af5ca('0x34')]('['+[_0x423071[_0x1af5ca('0x9')]()]+_0x1af5ca('0x1e'),_0x24a039[_0x1af5ca('0x13')]),_0xdd91fa[_0x1af5ca('0x10')]=_0x24a039[_0x1af5ca('0x13')]['sys_id'],_0x5540ac(_0xdd91fa);})[_0x41d218('0x3f')](function(_0x398975){const _0x5421d6=_0x41d218;logger[_0x5421d6('0x32')]('['+[_0x423071['toUpperCase']()]+']',_0x398975[_0x5421d6('0x40')]),_0x2ffc8b(_0x398975[_0x5421d6('0x40')]);});});}function getEndUser(_0x4c6a7d,_0x1e0525,_0x243e05,_0x15b8e3,_0x57e30c){return function(_0x519b3c){const _0x408fa5=a1141_0x2b09;return logger[_0x408fa5('0x34')]('['+[_0x4c6a7d[_0x408fa5('0x9')]()]+_0x408fa5('0x3'),_0x519b3c),new Promise(function(_0x49790c,_0x23db54){const _0x3e2277=_0x408fa5,_0x38c2df={'method':_0x3e2277('0x4f'),'uri':_0x243e05+'sys_user?sysparm_query=phone%3D'+_0x519b3c[_0x3e2277('0x14')]+'&'+_0x15b8e3+'&'+_0x57e30c,'auth':_0x1e0525,'json':!![]};return rp(_0x38c2df)['then'](function(_0x43e37f){const _0x64a9c9=_0x3e2277;if(_0x43e37f[_0x64a9c9('0x13')]['length']>0x0)_0x519b3c[_0x64a9c9('0x10')]=_0x43e37f['result'][0x0][_0x64a9c9('0x29')],logger[_0x64a9c9('0x34')]('['+[_0x4c6a7d[_0x64a9c9('0x9')]()]+'],\x20getEndUser\x20crm',_0x519b3c),_0x49790c(_0x519b3c);else return createEndUser(_0x4c6a7d,_0x1e0525,_0x519b3c,_0x243e05,_0x15b8e3)[_0x64a9c9('0x44')](function(_0x1d273f){const _0x57e646=_0x64a9c9;logger[_0x57e646('0x34')]('['+[_0x4c6a7d[_0x57e646('0x9')]()]+_0x57e646('0x18'),_0x1d273f),_0x49790c(_0x1d273f);});})[_0x3e2277('0x3f')](function(_0x36f6e9){const _0x1dfbf8=_0x3e2277;logger[_0x1dfbf8('0x32')]('['+[_0x4c6a7d[_0x1dfbf8('0x9')]()]+']',_0x36f6e9[_0x1dfbf8('0x40')]),_0x23db54(_0x36f6e9[_0x1dfbf8('0x40')]);});});};}function getCustomFields(_0x1684f7,_0x54023c){const _0x29b6c0=_0x4030fe,_0x58544b={};return _0x1684f7[_0x29b6c0('0x43')]>0x0&&_['forEach'](_0x1684f7,function(_0x3225bb){const _0x2b3d05=_0x29b6c0;if(_0x3225bb[_0x2b3d05('0x47')]==='string'&&_0x3225bb[_0x2b3d05('0x2c')]&&!_0x3225bb[_0x2b3d05('0x17')])_0x58544b[_0x3225bb[_0x2b3d05('0x30')][_0x2b3d05('0x37')]()]=_0x3225bb[_0x2b3d05('0x25')][_0x2b3d05('0x46')]();else{if(_0x3225bb['type']===_0x2b3d05('0xc')&&_0x3225bb['idField']&&_0x3225bb[_0x2b3d05('0x17')])_0x58544b[_0x3225bb['idField'][_0x2b3d05('0x37')]()]=_0x3225bb['content']['toString']();else{if(_0x3225bb['type']==='variable'&&_0x3225bb[_0x2b3d05('0x38')]&&_0x3225bb[_0x2b3d05('0x30')]&&_0x3225bb['customField'])_0x58544b[_0x3225bb[_0x2b3d05('0x30')]['toLowerCase']()]=_0x54023c[_0x3225bb['variableName']]['toString']();else _0x3225bb[_0x2b3d05('0x47')]===_0x2b3d05('0x55')&&_0x3225bb[_0x2b3d05('0x36')]&&_0x3225bb[_0x2b3d05('0x36')][_0x2b3d05('0x58')]&&_0x3225bb['idField']&&_0x3225bb[_0x2b3d05('0x17')]&&(_0x58544b[_0x3225bb[_0x2b3d05('0x30')]['toLowerCase']()]=_0x54023c[_0x3225bb[_0x2b3d05('0x36')][_0x2b3d05('0x58')][_0x2b3d05('0x37')]()][_0x2b3d05('0x46')]());}}}),_0x58544b;}function getTicket(_0x2b8ead,_0x17af0d,_0x5ed012,_0x4ad813,_0x1de8c2,_0x162678){return function(_0x20972a){const _0x3bf8be=a1141_0x2b09;return logger[_0x3bf8be('0x34')]('['+[_0x2b8ead[_0x3bf8be('0x9')]()]+_0x3bf8be('0x6'),_0x20972a),new Promise(function(_0x2e8c5f,_0x289919){const _0x56c046=_0x3bf8be,_0x2e1711=_0x2b8ead[_0x56c046('0x37')]()===_0x56c046('0x1b')?_0x20972a[_0x56c046('0x52')]:_0x20972a['endUserId'],_0x149c87={'method':_0x56c046('0x11'),'uri':_0x5ed012+'incident'+'?'+_0x162678,'body':Object[_0x56c046('0x4c')]({},{'active':_0x56c046('0x4a'),'caller_id':_0x2e1711,'assigned_to':_0x20972a[_0x56c046('0x52')],'short_description':intUtil['getString'](_0x4ad813['Subjects'],_0x1de8c2,'\x20'),'description':intUtil['getString'](_0x4ad813[_0x56c046('0x28')],_0x1de8c2,'\x0a')},getCustomFields(_0x4ad813[_0x56c046('0x41')],_0x1de8c2)),'auth':_0x17af0d,'json':!![]};return rp(_0x149c87)[_0x56c046('0x44')](function(_0x4e0b2a){const _0x16015f=_0x56c046;logger[_0x16015f('0x34')]('['+[_0x2b8ead[_0x16015f('0x9')]()]+_0x16015f('0x20'),_0x4e0b2a[_0x16015f('0x13')]),_0x20972a[_0x16015f('0x48')]=_0x4e0b2a[_0x16015f('0x13')]['sys_id'],_0x20972a[_0x16015f('0x35')]=_0x4e0b2a[_0x16015f('0x13')][_0x16015f('0x22')],logger['info']('['+[_0x2b8ead[_0x16015f('0x9')]()]+_0x16015f('0x4e'),_0x20972a),_0x2e8c5f(_0x20972a);})[_0x56c046('0x3f')](function(_0x3e328d){const _0x3ce5c1=_0x56c046;logger[_0x3ce5c1('0x32')]('['+[_0x2b8ead['toUpperCase']()]+']',_0x3e328d['message']),_0x289919(_0x3e328d['message']);});});};}function emit(_0x499555,_0x5bd12c,_0xd30c16){const _0x1c07d3=_0x4030fe,_0x146bf5=_0x1c07d3('0x12')+_0x1c07d3('0x2d')+_0x1c07d3('0x54')+_0x1c07d3('0xa'),_0x45d3a6={'uri':_0x499555+'/nav_to.do?uri=incident.do?sys_id%3D'+_0xd30c16+_0x146bf5};io['to'](util[_0x1c07d3('0x1c')](_0x1c07d3('0xd'),_0x5bd12c))[_0x1c07d3('0x15')](_0x1c07d3('0x21'),_0x45d3a6);}exports['cs']=function(_0x57a59f,_0x3a9a1c,_0x89882f,_0x54a516,_0x3d9aed,_0x143de4,_0x220956,_0x409f95){const _0x3f7559=_0x4030fe,_0x32b53f={},_0x30c8f6={'user':_0x143de4['username'],'pass':_0x143de4[_0x3f7559('0xe')]},_0x38509f=_0x3f7559('0x1a'),_0x215b30='sysparm_display_value=true';_0x143de4[_0x3f7559('0x27')]=intUtil[_0x3f7559('0x7')](_0x143de4['remoteUri']),_0x143de4[_0x3f7559('0x45')]=intUtil[_0x3f7559('0x7')](_0x143de4['serverUrl']);const _0x33f89a=util[_0x3f7559('0x1c')](_0x3f7559('0x57'),_0x143de4['remoteUri']);_0x32b53f['userEmail']=!_[_0x3f7559('0x5')](_0x54a516)?_0x54a516[_0x3f7559('0x31')]:null,_0x32b53f['adminEmail']=_0x143de4[_0x3f7559('0x31')],_0x32b53f[_0x3f7559('0x14')]=_0x409f95[_0x3f7559('0x37')]()===_0x3f7559('0x1b')?_0x3a9a1c[_0x3f7559('0x3d')]:_0x3a9a1c[_0x3f7559('0x51')],_0x32b53f[_0x3f7559('0xb')]=_0x409f95===_0x3f7559('0x0')||_0x409f95===_0x3f7559('0x3a')?'queue':'outbound';const _0x492a26=util[_0x3f7559('0x1c')](_0x3f7559('0x2a'),_0x143de4['serverUrl'],_0x3a9a1c[_0x3f7559('0x2f')],md5(_0x3a9a1c[_0x3f7559('0x2f')]));if(_0x3d9aed&&_0x3d9aed[_0x3f7559('0x56')])logger[_0x3f7559('0x34')](_0x3f7559('0x42'),_0x3f7559('0x3e')),_0x3a9a1c['recordingURL']=_0x492a26;else _0x220956&&_0x220956['recordingFormat']&&_0x220956['recordingFormat']!=='none'?(logger['info'](_0x3f7559('0x26'),'Recording\x20is\x20enabled!'),_0x3a9a1c[_0x3f7559('0x24')]=_0x492a26):_0x3a9a1c[_0x3f7559('0x24')]='';return getAdminUser(_0x409f95,_0x30c8f6,_0x32b53f,_0x33f89a,_0x215b30,_0x38509f)['then'](getUser(_0x409f95,_0x30c8f6,_0x33f89a,_0x215b30,_0x38509f))[_0x3f7559('0x44')](getEndUser(_0x409f95,_0x30c8f6,_0x33f89a,_0x215b30,_0x38509f))[_0x3f7559('0x44')](getTicket(_0x409f95,_0x30c8f6,_0x33f89a,_0x89882f,_0x3a9a1c,_0x215b30))['then'](function(_0x4b0425){const _0x210e75=_0x3f7559;logger[_0x210e75('0x34')](util['format']('The\x20ticket\x20ID\x20is:\x20%s',_0x4b0425[_0x210e75('0x48')])),logger[_0x210e75('0x34')](util[_0x210e75('0x1c')]('call\x20direction:\x20%s',_0x409f95)),_0x409f95!==_0x210e75('0x3a')&&(logger[_0x210e75('0x34')]('['+[_0x409f95[_0x210e75('0x9')]()]+']',_0x210e75('0x49')),emit(_0x143de4[_0x210e75('0x27')],_0x54a516['name'],_0x4b0425['ticketId']));})[_0x3f7559('0x3f')](function(_0x4222cb){const _0x41c184=_0x3f7559;logger[_0x41c184('0x32')]('['+[_0x409f95[_0x41c184('0x9')]()]+_0x41c184('0x1d'),util[_0x41c184('0x23')](_0x4222cb,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/integration/sugarcrm.js b/server/services/ami/trigger/integration/sugarcrm.js index 2e23217..e64dcae 100644 --- a/server/services/ami/trigger/integration/sugarcrm.js +++ b/server/services/ami/trigger/integration/sugarcrm.js @@ -1 +1 @@ -const a1142_0x42ba=['name','find','variableName','login','Employees','resolve','Fields','toUpperCase','created_by','date_start','remoteUri','monitor_format','catch','forEach','description','../../../../config/logger','error','Caller\x20-\x20%s','Enduser\x20created.','uniqueid','unmanaged','set_relationship','info','Agent\x20found!','length','%s/service/v4_1/rest.php','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','name_value_list','format','%s/#bwc/index.php?module=Calls&action=EditView&record=%s','push','slice','stripTrailingSlash','Descriptions','request-promise-native','','xCALLY\x20Motion\x20integration','%s/index.php?action=ajaxui#ajaxUILoc=index.php%3Fmodule%3DCalls%26action%3DEditView%26record%3D%s','The\x20Enduser\x20ID\x20is:','Outbound','parent_type','then','get_entry_list','contacts.phone_home\x20=\x20\x22%s\x22','get_server_info','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','../../../../rediscache','value','./util','user_id','password','entry_list','Agent\x20not\x20available,\x20using\x20the\x20admin\x20account!','Calls','username','[OUTBOUND]','getString','version','uri','recordingURL','parent_id','JSON','Recording\x20is\x20enabled!','The\x20User\x20ID\x20is:','Contacts','assigned_user_id','idField','first_name','debug','duration_hours','Creating\x20new\x20ticket...','Searching\x20enduser\x20with\x20phone','POST','The\x20Ticket\x20ID\x20is:','users','Ticket\x20created!','sessionID','outbound','destcalleridnum','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','INSTR\x20(\x20users.user_name,\x20\x22%s\x22)\x20>\x200','util','recordingFormat','set_entry','serverUrl','user_name','charAt','stringify','contacts','none','Enduser\x20found!','Inbound','phone_home','calleridname','isNil','destcalleridname','[QUEUE]','toISOString','calleridnum','parent_name'];(function(_0x2735f5,_0x42ba7a){const _0x34af5d=function(_0x93c780){while(--_0x93c780){_0x2735f5['push'](_0x2735f5['shift']());}};_0x34af5d(++_0x42ba7a);}(a1142_0x42ba,0xa1));const a1142_0x34af=function(_0x2735f5,_0x42ba7a){_0x2735f5=_0x2735f5-0x0;let _0x34af5d=a1142_0x42ba[_0x2735f5];return _0x34af5d;};const _0x3f2f18=a1142_0x34af;'use strict';const _=require('lodash'),rp=require(_0x3f2f18('0x49')),md5=require('md5'),util=require(_0x3f2f18('0x14')),intUtil=require(_0x3f2f18('0x57')),logger=require(_0x3f2f18('0x36'))('sugarcrm'),{getSocket}=require(_0x3f2f18('0x55')),io=getSocket(),def={'method':_0x3f2f18('0xb'),'json':!![]};function emit(_0x93c780,_0x5c750d,_0x2553bf){io['to'](_0x93c780)['emit'](_0x5c750d,_0x2553bf);}function getTicket(_0x24d7ba,_0x59b5e0,_0x41f009,_0x365fdf,_0x45c857,_0x22c92e,_0x13acba,_0x35cc8d){const _0x5c6aee=_0x3f2f18;logger[_0x5c6aee('0x3d')](_0x5c6aee('0x9'));const _0x3d4585=new Date(),_0x38a7dd=[{'name':_0x5c6aee('0x27'),'value':intUtil[_0x5c6aee('0x5f')](_0x365fdf['Subjects'],_0x45c857,'\x20')},{'name':_0x5c6aee('0x4'),'value':_0x59b5e0['id']},{'name':_0x5c6aee('0x2f'),'value':_0x59b5e0['id']},{'name':_0x5c6aee('0x35'),'value':intUtil[_0x5c6aee('0x5f')](_0x365fdf[_0x5c6aee('0x48')],_0x45c857,'\x0a')},{'name':_0x5c6aee('0x30'),'value':_0x3d4585[_0x5c6aee('0x24')]()[_0x5c6aee('0x46')](0x0,0x13)['replace']('T','\x20')},{'name':_0x5c6aee('0x8'),'value':'0'},{'name':'duration_minutes','value':'15'},{'name':_0x5c6aee('0x63'),'value':_0x41f009['id']},{'name':_0x5c6aee('0x4f'),'value':_0x5c6aee('0x3')},{'name':_0x5c6aee('0x26'),'value':_0x41f009[_0x5c6aee('0x27')]},{'name':'direction','value':_0x35cc8d}];return _0x22c92e['length']&&_[_0x5c6aee('0x34')](_0x22c92e,function(_0x425409){const _0xcaba3f=_0x5c6aee;_0x45c857[_0x425409['variableName']]&&_0x38a7dd[_0xcaba3f('0x45')]({'name':_0x425409[_0xcaba3f('0x5')],'value':_0x45c857[_0x425409[_0xcaba3f('0x29')]]});}),request({'form':{'method':'set_entry','input_type':_0x5c6aee('0x0'),'response_type':_0x5c6aee('0x0'),'rest_data':JSON['stringify']({'session':_0x13acba['id'],'module_name':'Calls','name_value_list':_0x38a7dd})}});}function getServerInfo(_0x3e1ee2){const _0x382502=_0x3f2f18;return request({'form':{'method':_0x382502('0x53'),'input_type':_0x382502('0x0'),'response_type':_0x382502('0x0'),'rest_data':JSON[_0x382502('0x1a')]({'session':_0x3e1ee2['id']})}});}function getUser(_0x3ebc91,_0x367f1a,_0x45d32f){const _0x2f0545=_0x3f2f18;return!_['isNil'](_0x367f1a)?(logger[_0x2f0545('0x3d')]('Getting\x20agent\x20with\x20name',_0x367f1a),request({'form':{'method':'get_entry_list','input_type':_0x2f0545('0x0'),'response_type':_0x2f0545('0x0'),'rest_data':JSON[_0x2f0545('0x1a')]({'session':_0x45d32f['id'],'module_name':_0x2f0545('0x2b'),'query':util[_0x2f0545('0x43')](_0x2f0545('0x13'),_0x367f1a),'order_by':'','offset':'0','select_fields':['id',_0x2f0545('0x27'),'user_name'],'link_name_to_fields_array':[],'max_results':-0x1,'deleted':'0'})}})[_0x2f0545('0x50')](function(_0xa76ede){const _0xae52b5=_0x2f0545;if(_0xa76ede['entry_list'][_0xae52b5('0x3f')]){const _0x4e5a41=_['find'](_0xa76ede[_0xae52b5('0x5a')],function(_0x41216e){const _0x3a98b8=_0xae52b5;return _0x41216e[_0x3a98b8('0x42')][_0x3a98b8('0x18')][_0x3a98b8('0x56')]===_0x367f1a;});if(_0x4e5a41)return logger[_0xae52b5('0x3d')](_0xae52b5('0x3e')),Promise[_0xae52b5('0x2c')]({'id':_0x4e5a41[_0xae52b5('0x42')]['id'][_0xae52b5('0x56')],'name':_0x4e5a41['name_value_list'][_0xae52b5('0x27')][_0xae52b5('0x56')]});}return logger[_0xae52b5('0x3d')](_0xae52b5('0x54')),Promise[_0xae52b5('0x2c')]({'id':_0x45d32f[_0xae52b5('0x42')][_0xae52b5('0x58')]['value'],'name':_0x45d32f[_0xae52b5('0x42')][_0xae52b5('0x18')][_0xae52b5('0x56')]});})):(logger[_0x2f0545('0x3d')](_0x2f0545('0x5b')),Promise['resolve']({'id':_0x45d32f[_0x2f0545('0x42')][_0x2f0545('0x58')][_0x2f0545('0x56')],'name':_0x45d32f[_0x2f0545('0x42')][_0x2f0545('0x18')]['value']}));}function getEndUser(_0x571b7b,_0x3fba36,_0x5791e8,_0x2880a6){const _0x10b591=_0x3f2f18;return logger[_0x10b591('0x3d')](_0x10b591('0xa'),_0x5791e8),request({'form':{'method':_0x10b591('0x51'),'input_type':_0x10b591('0x0'),'response_type':_0x10b591('0x0'),'rest_data':JSON[_0x10b591('0x1a')]({'session':_0x2880a6['id'],'module_name':_0x10b591('0x3'),'query':util[_0x10b591('0x43')](_0x10b591('0x52'),_0x5791e8),'order_by':'','offset':'0','select_fields':['id',_0x10b591('0x27'),'phone_home'],'link_name_to_fields_array':[],'max_results':-0x1,'deleted':'0'})}})[_0x10b591('0x50')](function(_0x2f0835){const _0x19d77f=_0x10b591;if(_0x2f0835[_0x19d77f('0x5a')][_0x19d77f('0x3f')]){const _0x426feb=_[_0x19d77f('0x28')](_0x2f0835['entry_list'],function(_0x1a49d5){const _0x12ec66=_0x19d77f;return _0x1a49d5[_0x12ec66('0x42')][_0x12ec66('0x1f')][_0x12ec66('0x56')]===_0x5791e8;});if(_0x426feb)return logger['info'](_0x19d77f('0x1d')),Promise['resolve']({'id':_0x426feb[_0x19d77f('0x42')]['id'][_0x19d77f('0x56')],'name':_0x426feb['name_value_list']['name']['value'],'phone':_0x426feb[_0x19d77f('0x42')][_0x19d77f('0x1f')]['value']});}else return logger[_0x19d77f('0x3d')]('Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!'),request({'form':{'method':_0x19d77f('0x16'),'input_type':_0x19d77f('0x0'),'response_type':_0x19d77f('0x0'),'rest_data':JSON[_0x19d77f('0x1a')]({'session':_0x2880a6['id'],'module_name':_0x19d77f('0x3'),'name_value_list':[{'name':_0x19d77f('0x6'),'value':_0x3fba36!==_0x19d77f('0x4a')?_0x3fba36:util[_0x19d77f('0x43')](_0x19d77f('0x38'),_0x5791e8)},{'name':_0x19d77f('0x1f'),'value':_0x5791e8}]})}})[_0x19d77f('0x50')](function(_0x290154){const _0x48acd9=_0x19d77f;return logger[_0x48acd9('0x3d')](_0x48acd9('0x39')),Promise[_0x48acd9('0x2c')]({'id':_0x290154['id'],'name':_0x290154[_0x48acd9('0x5a')][_0x48acd9('0x6')][_0x48acd9('0x56')],'phone':_0x290154[_0x48acd9('0x5a')][_0x48acd9('0x1f')]['value']});});});}function request(_0x39102a){const _0x4a26f3=_0x3f2f18;return logger[_0x4a26f3('0x7')]('[HTTP]',JSON[_0x4a26f3('0x1a')](_0x39102a)),rp(_['merge'](def,_0x39102a));}function getConnection(_0x320e87){const _0x217b69=_0x3f2f18;return request({'method':_0x217b69('0xb'),'form':{'method':_0x217b69('0x2a'),'input_type':_0x217b69('0x0'),'response_type':_0x217b69('0x0'),'rest_data':JSON[_0x217b69('0x1a')]({'user_auth':{'user_name':_0x320e87[_0x217b69('0x5d')],'password':_0x320e87[_0x217b69('0x59')],'encryption':'PLAIN'},'application':_0x217b69('0x4b')})}})[_0x217b69('0x50')](function(_0xbd9ffd){const _0x5b4b36=_0x217b69,_0x3843dd=_0xbd9ffd;if(_0x3843dd['id'])return def[_0x5b4b36('0xf')]=_0x3843dd['id'],Promise[_0x5b4b36('0x2c')](_0x3843dd);else throw new Error(util[_0x5b4b36('0x43')]('Account\x20%d\x20is\x20not\x20valid',_0x320e87['id']));});}function setRelationship(_0xd52821,_0x458f99,_0x4dbc3b,_0x4cf5be){const _0x46bb24=_0x3f2f18;return request({'form':{'method':_0x46bb24('0x3c'),'input_type':_0x46bb24('0x0'),'response_type':_0x46bb24('0x0'),'rest_data':JSON[_0x46bb24('0x1a')]({'session':_0xd52821['id'],'module_name':_0x46bb24('0x5c'),'module_id':_0x4dbc3b['id'],'link_field_name':_0x4cf5be,'related_ids':[_0x458f99['id']]})}});}exports['queue']=function(_0x25afcc,_0x56ec2c,_0x13a921,_0x53a4ee,_0x2daea3,_0x24f6e1){const _0x2d2197=_0x3f2f18;let _0x48b578,_0x7ec253,_0xe9c410,_0x53482b;return _0x24f6e1['remoteUri']=intUtil[_0x2d2197('0x47')](_0x24f6e1[_0x2d2197('0x31')]),_0x24f6e1[_0x2d2197('0x17')]=intUtil['stripTrailingSlash'](_0x24f6e1['serverUrl']),def[_0x2d2197('0x61')]=util[_0x2d2197('0x43')](_0x2d2197('0x40'),_0x24f6e1[_0x2d2197('0x31')]),_0x2daea3&&_0x2daea3[_0x2d2197('0x32')]?(logger[_0x2d2197('0x3d')](_0x2d2197('0x23'),'Recording\x20is\x20enabled!'),_0x56ec2c[_0x2d2197('0x62')]=util[_0x2d2197('0x43')]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x24f6e1[_0x2d2197('0x17')],_0x56ec2c[_0x2d2197('0x3a')],md5(_0x56ec2c[_0x2d2197('0x3a')]))):_0x56ec2c[_0x2d2197('0x62')]='',getConnection(_0x24f6e1)[_0x2d2197('0x50')](function(_0x3e3efe){return _0x53482b=_0x3e3efe,getUser(_0x24f6e1,_0x53a4ee['name'],_0x53482b);})[_0x2d2197('0x50')](function(_0xa44e65){const _0x5c6e07=_0x2d2197;return _0x48b578=_0xa44e65,logger['info'](_0x5c6e07('0x2'),_0x48b578['id']),getEndUser(_0x24f6e1,_0x56ec2c[_0x5c6e07('0x20')],_0x56ec2c[_0x5c6e07('0x25')],_0x53482b);})['then'](function(_0x2ccc39){const _0x484669=_0x2d2197;return _0x7ec253=_0x2ccc39,logger['info'](_0x484669('0x4d'),_0x7ec253['id']),getTicket(_0x24f6e1,_0x48b578,_0x7ec253,_0x13a921,_0x56ec2c,_0x13a921[_0x484669('0x2d')],_0x53482b,_0x484669('0x1e'));})[_0x2d2197('0x50')](function(_0x170a0f){const _0x50c8f4=_0x2d2197;return _0xe9c410=_0x170a0f,logger['info'](_0x50c8f4('0xe')),logger['info'](_0x50c8f4('0xc'),_0xe9c410['id']),setRelationship(_0x53482b,_0x48b578,_0xe9c410,_0x50c8f4('0xd'));})[_0x2d2197('0x50')](function(){return setRelationship(_0x53482b,_0x7ec253,_0xe9c410,'contacts');})['then'](function(){return getServerInfo(_0x53482b);})[_0x2d2197('0x50')](function(_0x3b0b13){const _0xe6b859=_0x2d2197,_0x115eab=parseInt(_0x3b0b13[_0xe6b859('0x60')][_0xe6b859('0x19')](0x0));let _0x2c2297=util[_0xe6b859('0x43')](_0xe6b859('0x4c'),_0x24f6e1['remoteUri'],_0xe9c410['id']);_0x115eab>0x6&&(_0x2c2297=util[_0xe6b859('0x43')](_0xe6b859('0x44'),_0x24f6e1[_0xe6b859('0x31')],_0xe9c410['id'])),logger['info'](_0xe6b859('0x23'),_0xe6b859('0x12')),emit(util[_0xe6b859('0x43')]('user:%s',_0x53a4ee[_0xe6b859('0x27')]),'trigger:browser:url',{'uri':_0x2c2297});})[_0x2d2197('0x33')](function(_0x38d44d){const _0x14feae=_0x2d2197;logger[_0x14feae('0x37')]('[QUEUE]',JSON[_0x14feae('0x1a')](_0x38d44d));});},exports[_0x3f2f18('0x10')]=function(_0x613c30,_0x1d2c24,_0x4de786,_0x1487c7,_0x100d11,_0x18a69b,_0x4e771d){const _0x41c539=_0x3f2f18;let _0x224b23,_0x143f5a,_0x5455cc,_0x1fb3c8;return _0x18a69b[_0x41c539('0x31')]=intUtil['stripTrailingSlash'](_0x18a69b['remoteUri']),_0x18a69b[_0x41c539('0x17')]=intUtil[_0x41c539('0x47')](_0x18a69b[_0x41c539('0x17')]),def[_0x41c539('0x61')]=util['format']('%s/service/v4_1/rest.php',_0x18a69b[_0x41c539('0x31')]),_0x4e771d&&_0x4e771d[_0x41c539('0x15')]&&_0x4e771d['recordingFormat']!==_0x41c539('0x1c')&&(logger[_0x41c539('0x3d')](_0x41c539('0x5e'),'Recording\x20is\x20enabled!'),_0x1d2c24['recordingURL']=util['format'](_0x41c539('0x41'),_0x18a69b[_0x41c539('0x17')],_0x1d2c24[_0x41c539('0x3a')],md5(_0x1d2c24[_0x41c539('0x3a')]))),getConnection(_0x18a69b)['then'](function(_0x63c55a){const _0x31fd73=_0x41c539;return _0x1fb3c8=_0x63c55a,getUser(_0x18a69b,_0x1487c7[_0x31fd73('0x27')],_0x1fb3c8);})[_0x41c539('0x50')](function(_0x4c5be1){const _0x1040ff=_0x41c539;return _0x224b23=_0x4c5be1,logger[_0x1040ff('0x3d')](_0x1040ff('0x2'),_0x224b23['id']),getEndUser(_0x18a69b,_0x1d2c24[_0x1040ff('0x22')],_0x1d2c24[_0x1040ff('0x11')],_0x1fb3c8);})[_0x41c539('0x50')](function(_0x4cbe0e){const _0x4f386d=_0x41c539;return _0x143f5a=_0x4cbe0e,logger['info'](_0x4f386d('0x4d'),_0x143f5a['id']),getTicket(_0x18a69b,_0x224b23,_0x143f5a,_0x4de786,_0x1d2c24,_0x4de786[_0x4f386d('0x2d')],_0x1fb3c8,_0x4f386d('0x4e'));})[_0x41c539('0x50')](function(_0x1b55d5){const _0x2d0018=_0x41c539;return _0x5455cc=_0x1b55d5,logger[_0x2d0018('0x3d')](_0x2d0018('0xe')),logger[_0x2d0018('0x3d')](_0x2d0018('0xc'),_0x5455cc['id']),setRelationship(_0x1fb3c8,_0x224b23,_0x5455cc,_0x2d0018('0xd'));})[_0x41c539('0x50')](function(){const _0x3daa14=_0x41c539;return setRelationship(_0x1fb3c8,_0x143f5a,_0x5455cc,_0x3daa14('0x1b'));})[_0x41c539('0x50')](function(){return getServerInfo(_0x1fb3c8);})[_0x41c539('0x50')](function(_0x2649f7){const _0x209405=_0x41c539,_0x498e52=parseInt(_0x2649f7[_0x209405('0x60')][_0x209405('0x19')](0x0));let _0x439b46=util[_0x209405('0x43')]('%s/index.php?action=ajaxui#ajaxUILoc=index.php%3Fmodule%3DCalls%26action%3DEditView%26record%3D%s',_0x18a69b[_0x209405('0x31')],_0x5455cc['id']);_0x498e52>0x6&&(_0x439b46=util[_0x209405('0x43')]('%s/#bwc/index.php?module=Calls&action=EditView&record=%s',_0x18a69b[_0x209405('0x31')],_0x5455cc['id'])),logger[_0x209405('0x3d')](_0x209405('0x5e'),_0x209405('0x12')),emit(util[_0x209405('0x43')]('user:%s',_0x1487c7[_0x209405('0x27')]),'trigger:browser:url',{'uri':_0x439b46});})[_0x41c539('0x33')](function(_0x3e4873){const _0x519ea7=_0x41c539;logger[_0x519ea7('0x37')](_0x519ea7('0x5e'),JSON[_0x519ea7('0x1a')](_0x3e4873));});},exports[_0x3f2f18('0x3b')]=function(_0x1a2dd6,_0x2d4cda,_0x441ddb,_0x184e2c,_0x3c079d,_0x2e626b){const _0x190e76=_0x3f2f18;let _0x15f194,_0x58bfbc,_0x4f3ae4,_0x41b578;return _0x2e626b['remoteUri']=intUtil[_0x190e76('0x47')](_0x2e626b[_0x190e76('0x31')]),_0x2e626b[_0x190e76('0x17')]=intUtil[_0x190e76('0x47')](_0x2e626b[_0x190e76('0x17')]),def[_0x190e76('0x61')]=util[_0x190e76('0x43')](_0x190e76('0x40'),_0x2e626b['remoteUri']),_0x3c079d&&_0x3c079d[_0x190e76('0x32')]?(logger[_0x190e76('0x3d')]('['+_0x2d4cda['lastevent'][_0x190e76('0x2e')]()+']',_0x190e76('0x1')),_0x2d4cda[_0x190e76('0x62')]=util[_0x190e76('0x43')]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x2e626b['serverUrl'],_0x2d4cda[_0x190e76('0x3a')],md5(_0x2d4cda[_0x190e76('0x3a')]))):_0x2d4cda[_0x190e76('0x62')]='',getConnection(_0x2e626b)[_0x190e76('0x50')](function(_0x5d0d29){const _0x56179c=_0x190e76;return _0x41b578=_0x5d0d29,!_[_0x56179c('0x21')](_0x184e2c)?getUser(_0x2e626b,_0x184e2c['name'],_0x41b578):getUser(_0x2e626b,null,_0x41b578);})[_0x190e76('0x50')](function(_0x20b89e){const _0x5c24d9=_0x190e76;return _0x15f194=_0x20b89e,logger[_0x5c24d9('0x3d')](_0x5c24d9('0x2'),_0x15f194['id']),getEndUser(_0x2e626b,_0x2d4cda[_0x5c24d9('0x20')],_0x2d4cda[_0x5c24d9('0x25')],_0x41b578);})[_0x190e76('0x50')](function(_0x5f02d2){const _0x537124=_0x190e76;return _0x58bfbc=_0x5f02d2,logger[_0x537124('0x3d')]('The\x20Enduser\x20ID\x20is:',_0x58bfbc['id']),getTicket(_0x2e626b,_0x15f194,_0x58bfbc,_0x441ddb,_0x2d4cda,_0x441ddb[_0x537124('0x2d')],_0x41b578,_0x537124('0x1e'));})['then'](function(_0xd6ee9){const _0x294313=_0x190e76;return _0x4f3ae4=_0xd6ee9,logger[_0x294313('0x3d')](_0x294313('0xe')),logger[_0x294313('0x3d')]('The\x20Ticket\x20ID\x20is:',_0x4f3ae4['id']),setRelationship(_0x41b578,_0x15f194,_0x4f3ae4,_0x294313('0xd'));})[_0x190e76('0x50')](function(){const _0x3ac2a5=_0x190e76;return setRelationship(_0x41b578,_0x58bfbc,_0x4f3ae4,_0x3ac2a5('0x1b'));})['then'](function(){return getServerInfo(_0x41b578);})[_0x190e76('0x33')](function(_0x47a481){const _0x2c13e4=_0x190e76;logger[_0x2c13e4('0x37')]('['+_0x2d4cda['lastevent']['toUpperCase']()+']',JSON['stringify'](_0x47a481));});}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/integration/util.js b/server/services/ami/trigger/integration/util.js index 9ec1afb..26a01ea 100644 --- a/server/services/ami/trigger/integration/util.js +++ b/server/services/ami/trigger/integration/util.js @@ -1 +1 @@ -const a1143_0x2ec9=['push','substring','customVariable','sortBy','Variable','keyType','key','string','util','name','stripTrailingSlash','toLowerCase','lastIndexOf','toString','variableName','type','keyValue','format','%s:\x20%s','validateEmail','lodash','join','length','slice'];(function(_0x3d889f,_0x2ec9db){const _0x38a3fa=function(_0x2f12ea){while(--_0x2f12ea){_0x3d889f['push'](_0x3d889f['shift']());}};_0x38a3fa(++_0x2ec9db);}(a1143_0x2ec9,0x10b));const a1143_0x38a3=function(_0x3d889f,_0x2ec9db){_0x3d889f=_0x3d889f-0x0;let _0x38a3fa=a1143_0x2ec9[_0x3d889f];return _0x38a3fa;};const _0x23e99e=a1143_0x38a3;'use strict';const _=require(_0x23e99e('0x11')),util=require(_0x23e99e('0x5'));exports['getString']=function(_0x2f12ea,_0x4993f8,_0xd8d99a){const _0x3eb304=_0x23e99e,_0x5afe6f=[];if(_0x2f12ea['length']>0x0){const _0xaaeacb=_[_0x3eb304('0x0')](_0x2f12ea,['id']);for(let _0x540e49=0x0;_0x540e49<_0xaaeacb[_0x3eb304('0x13')];_0x540e49++){const _0x12b9fb=_0xaaeacb[_0x540e49];if(_0x12b9fb[_0x3eb304('0xc')]===_0x3eb304('0x4'))_0x5afe6f[_0x3eb304('0x15')](_0x12b9fb['content']);else{if(_0x12b9fb[_0x3eb304('0xc')]==='variable'&&_0x12b9fb['variableName'])_0x4993f8[_0x12b9fb[_0x3eb304('0xb')]]&&_0x5afe6f[_0x3eb304('0x15')](_0x4993f8[_0x12b9fb[_0x3eb304('0xb')]][_0x3eb304('0xa')]());else{if(_0x12b9fb[_0x3eb304('0xc')]===_0x3eb304('0x17')&&_0x12b9fb['Variable']&&_0x12b9fb[_0x3eb304('0x1')][_0x3eb304('0x6')])_0x4993f8[_0x12b9fb[_0x3eb304('0x1')][_0x3eb304('0x6')][_0x3eb304('0x8')]()]&&_0x5afe6f[_0x3eb304('0x15')](_0x4993f8[_0x12b9fb[_0x3eb304('0x1')]['name'][_0x3eb304('0x8')]()]['toString']());else{if(_0x12b9fb[_0x3eb304('0xc')]===_0x3eb304('0xd')){if(_0x12b9fb[_0x3eb304('0x2')]===_0x3eb304('0x4')&&_0x12b9fb[_0x3eb304('0x3')])_0x5afe6f[_0x3eb304('0x15')](util['format'](_0x3eb304('0xf'),_0x12b9fb[_0x3eb304('0x3')],_0x12b9fb['keyContent']));else{if(_0x12b9fb['keyType']==='variable'&&_0x12b9fb['variableName']&&_0x12b9fb['key'])_0x4993f8[_0x12b9fb['variableName']]&&_0x5afe6f[_0x3eb304('0x15')](util[_0x3eb304('0xe')](_0x3eb304('0xf'),_0x12b9fb['key'],_0x4993f8[_0x12b9fb[_0x3eb304('0xb')]]));else _0x12b9fb['keyType']===_0x3eb304('0x17')&&_0x12b9fb[_0x3eb304('0x1')]&&_0x12b9fb['Variable'][_0x3eb304('0x6')]&&_0x12b9fb[_0x3eb304('0x3')]&&(_0x4993f8[_0x12b9fb[_0x3eb304('0x1')][_0x3eb304('0x6')][_0x3eb304('0x8')]()]&&_0x5afe6f[_0x3eb304('0x15')](util[_0x3eb304('0xe')](_0x3eb304('0xf'),_0x12b9fb['key'],_0x4993f8[_0x12b9fb[_0x3eb304('0x1')][_0x3eb304('0x6')][_0x3eb304('0x8')]()])));}}}}}}}return _0x5afe6f[_0x3eb304('0x12')](_0xd8d99a);},exports[_0x23e99e('0x7')]=function(_0x469f62){const _0x14a3a5=_0x23e99e,_0x55e83b=_0x469f62[_0x14a3a5('0x14')](-0x1);return _0x55e83b==='/'&&(_0x469f62=_0x469f62[_0x14a3a5('0x16')](0x0,_0x469f62[_0x14a3a5('0x9')](_0x55e83b))),_0x469f62;},exports[_0x23e99e('0x10')]=function(_0x2a288d){const _0x33c950=_0x23e99e;if(!_['isNil'](_0x2a288d)&&_0x2a288d!==''){const _0x533bc2=/^(([^<>()[\]\\.,;:\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 _0x533bc2['test'](String(_0x2a288d)[_0x33c950('0x8')]());}else return![];}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/integration/vtiger.js b/server/services/ami/trigger/integration/vtiger.js index 077643c..b07b213 100644 --- a/server/services/ami/trigger/integration/vtiger.js +++ b/server/services/ami/trigger/integration/vtiger.js @@ -1 +1 @@ -const a1144_0x419d=['Getting\x20agent\x20with\x20email','Agent\x20found!','getUser','email1','vTiger','toUpperCase','firstname','error','then','idField','request-promise-native','monitor_format','util','variable','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','md5','create','createTicket','getEndUser','[HTTP]','stripTrailingSlash','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','lastevent','resolve','lodash','Fields','The\x20Enduser\x20ID\x20is:','variableName','[vTiger],\x20%s,\x20%s,\x20%s','serverUrl','statusCode','Open','%s/webservice.php','length','uniqueid','calleridnum','Contacts','[OUTBOUND]','recordingFormat','Subjects','remoteUri','username','./util','Searching\x20end\x20user\x20with\x20phone','token','recordingURL','POST','userId','info','toString','[QUEUE]','The\x20Ticket\x20ID\x20is:','HelpDesk','type','Recording\x20is\x20enabled!','../../../../config/logger','trigger:browser:url','query','validateEmail','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','getchallenge','format','getString','Account\x20%d\x20is\x20not\x20valid','success','Variable','split','../../../../rediscache','last_name','outbound','getConnection','Ticket\x20created!','Ticket\x20could\x20not\x20be\x20created\x20due\x20to:\x20%s','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','result','unmanaged','toLowerCase','name','stringify','SELECT\x20first_name,\x20last_name,\x20email1\x20FROM\x20Users\x20WHERE\x20email1=\x27%s\x27;','catch','lastname','GET','sessionName','calleridname','Creating\x20new\x20ticket...','user:%s','The\x20User\x20ID\x20is:','emit','%s/index.php?module=HelpDesk&view=Detail&record=%s&app=SUPPORT','queue','admin','login','Enduser\x20created.'];(function(_0x27bc51,_0x419d71){const _0x4972fe=function(_0x35b1df){while(--_0x35b1df){_0x27bc51['push'](_0x27bc51['shift']());}};_0x4972fe(++_0x419d71);}(a1144_0x419d,0xda));const a1144_0x4972=function(_0x27bc51,_0x419d71){_0x27bc51=_0x27bc51-0x0;let _0x4972fe=a1144_0x419d[_0x27bc51];return _0x4972fe;};const _0x4a6f59=a1144_0x4972;'use strict';const _=require(_0x4a6f59('0x58')),rp=require(_0x4a6f59('0x4a')),md5=require(_0x4a6f59('0x4f')),util=require(_0x4a6f59('0x4c')),intUtil=require(_0x4a6f59('0xc')),logger=require(_0x4a6f59('0x19'))(_0x4a6f59('0x44')),{getSocket}=require(_0x4a6f59('0x25')),io=getSocket();function emit(_0x35b1df,_0x27ed81,_0x337155){const _0x19b1cb=_0x4a6f59;io['to'](_0x35b1df)[_0x19b1cb('0x3a')](_0x27ed81,_0x337155);}function getCustomFields(_0x2d3770,_0xc15b7c){const _0x4f0061={};return _0x2d3770['length']>0x0&&_['forEach'](_0x2d3770,function(_0x1cdbb6){const _0x362aeb=a1144_0x4972;if(_0x1cdbb6[_0x362aeb('0x17')]==='string'&&_0x1cdbb6[_0x362aeb('0x49')])_0x4f0061[_0x1cdbb6[_0x362aeb('0x49')]]=_0x1cdbb6['content'][_0x362aeb('0x13')]();else{if(_0x1cdbb6[_0x362aeb('0x17')]===_0x362aeb('0x4d')&&_0x1cdbb6['variableName']&&_0x1cdbb6['idField']&&_0xc15b7c[_0x1cdbb6[_0x362aeb('0x5b')]])_0x4f0061[_0x1cdbb6[_0x362aeb('0x49')]]=_0xc15b7c[_0x1cdbb6[_0x362aeb('0x5b')]]['toString']();else _0x1cdbb6['type']==='customVariable'&&_0x1cdbb6[_0x362aeb('0x23')]&&_0x1cdbb6[_0x362aeb('0x23')][_0x362aeb('0x2f')]&&_0x1cdbb6[_0x362aeb('0x49')]&&_0xc15b7c[_0x1cdbb6['Variable'][_0x362aeb('0x2f')][_0x362aeb('0x2e')]()]&&(_0x4f0061[_0x1cdbb6['idField']]=_0xc15b7c[_0x1cdbb6[_0x362aeb('0x23')]['name'][_0x362aeb('0x2e')]()][_0x362aeb('0x13')]());}}),_0x4f0061;}function createTicket(_0x48af2d,_0x666617,_0x1a06cf,_0x5c7e3c,_0x1f928f,_0x3956c3,_0xc7e6f2){const _0x39c957=_0x4a6f59;logger[_0x39c957('0x12')](_0x39c957('0x37'));const _0x173122=_['merge']({'parent_id':'','assigned_user_id':_0x666617['id'],'ticketpriorities':'Normal','ticketstatus':_0x39c957('0x1'),'ticket_title':intUtil['getString'](_0x5c7e3c[_0x39c957('0x9')],_0x1f928f,'\x20'),'description':intUtil[_0x39c957('0x20')](_0x5c7e3c['Descriptions'],_0x1f928f,'\x0a'),'contact_id':_0x1a06cf['id']},getCustomFields(_0x3956c3,_0x1f928f)),_0x340a33={'method':_0x39c957('0x10'),'uri':util[_0x39c957('0x1f')](_0x39c957('0x2'),_0x48af2d[_0x39c957('0xa')]),'form':{'operation':_0x39c957('0x50'),'username':_0x48af2d[_0x39c957('0xb')],'sessionName':_0xc7e6f2['sessionName'],'elementType':_0x39c957('0x16'),'element':JSON['stringify'](_0x173122)},'json':!![]};return request(_0x340a33)['then'](function(_0x36a38c){const _0x3d503f=_0x39c957;if(_0x36a38c[_0x3d503f('0x22')])return Promise[_0x3d503f('0x57')]({'id':_0x36a38c['result']['id']});else throw new Error(util[_0x3d503f('0x1f')](_0x3d503f('0x2a'),JSON[_0x3d503f('0x30')](_0x36a38c[_0x3d503f('0x47')])));})[_0x39c957('0x32')](function(_0x1ec05f){const _0x5f44b1=_0x39c957,_0x393089=_0x1ec05f[_0x5f44b1('0x0')]||0x1f4;logger['error'](_0x5f44b1('0x5c'),_0x5f44b1('0x51'),_0x393089,JSON[_0x5f44b1('0x30')](_0x1ec05f));});}function getUser(_0x5dbb9a,_0x114fb3,_0x128aa4){const _0x5f396f=_0x4a6f59;return intUtil[_0x5f396f('0x1c')](_0x114fb3)?(logger[_0x5f396f('0x12')](_0x5f396f('0x40'),_0x114fb3),request({'method':_0x5f396f('0x34'),'uri':util[_0x5f396f('0x1f')](_0x5f396f('0x2'),_0x5dbb9a[_0x5f396f('0xa')]),'qs':{'operation':_0x5f396f('0x1b'),'username':_0x5dbb9a[_0x5f396f('0xb')],'sessionName':_0x128aa4[_0x5f396f('0x35')],'query':util['format'](_0x5f396f('0x31'),_0x114fb3)},'json':!![]})[_0x5f396f('0x48')](function(_0x3953a1){const _0x38309e=_0x5f396f;return _0x3953a1[_0x38309e('0x22')]&&_0x3953a1[_0x38309e('0x2c')][_0x38309e('0x3')]?(logger[_0x38309e('0x12')](_0x38309e('0x41')),Promise['resolve']({'id':_0x3953a1[_0x38309e('0x2c')][0x0]['id'],'email':_0x3953a1['result'][0x0][_0x38309e('0x43')],'name':_0x3953a1['result'][0x0]['first_name']+'\x20'+_0x3953a1[_0x38309e('0x2c')][_0x38309e('0x26')]})):(logger['info'](_0x38309e('0x55')),Promise['resolve']({'id':_0x128aa4[_0x38309e('0x11')],'email':_0x5dbb9a[_0x38309e('0xb')],'name':_0x38309e('0x3d')}));})[_0x5f396f('0x32')](function(_0x1b4b50){const _0x4ea455=_0x5f396f,_0x3f9fa3=_0x1b4b50[_0x4ea455('0x0')]||0x1f4;logger[_0x4ea455('0x47')](_0x4ea455('0x5c'),'getUser',_0x3f9fa3,JSON['stringify'](_0x1b4b50));})):(logger['info'](_0x5f396f('0x55')),Promise[_0x5f396f('0x57')]({'id':_0x128aa4[_0x5f396f('0x11')],'email':_0x5dbb9a[_0x5f396f('0xb')],'name':_0x5f396f('0x3d')})[_0x5f396f('0x32')](function(_0x2048a7){const _0x196016=_0x5f396f,_0xf9a488=_0x2048a7['statusCode']||0x1f4;logger[_0x196016('0x47')]('[vTiger],\x20%s,\x20%s,\x20%s',_0x196016('0x42'),_0xf9a488,JSON[_0x196016('0x30')](_0x2048a7));}));}function getEndUser(_0x2452f5,_0x22b51f,_0x4b6f3f,_0x2ae9a1){const _0x18a1d1=_0x4a6f59;return logger[_0x18a1d1('0x12')](_0x18a1d1('0xd'),_0x4b6f3f),request({'method':_0x18a1d1('0x34'),'uri':util['format'](_0x18a1d1('0x2'),_0x2452f5[_0x18a1d1('0xa')]),'qs':{'operation':_0x18a1d1('0x1b'),'username':_0x2452f5[_0x18a1d1('0xb')],'sessionName':_0x2ae9a1[_0x18a1d1('0x35')],'query':util['format']('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;',_0x4b6f3f,_0x4b6f3f,_0x4b6f3f,_0x4b6f3f,_0x4b6f3f)},'json':!![]})['then'](function(_0x116fe8){const _0x10084c=_0x18a1d1;return _0x116fe8[_0x10084c('0x22')]&&_0x116fe8[_0x10084c('0x2c')][_0x10084c('0x3')]?(logger['info']('Enduser\x20found!'),Promise[_0x10084c('0x57')]({'id':_0x116fe8[_0x10084c('0x2c')][0x0]['id'],'name':_0x116fe8['result'][0x0][_0x10084c('0x46')]+'\x20'+_0x116fe8['result'][0x0][_0x10084c('0x33')],'phone':_0x4b6f3f})):(logger[_0x10084c('0x12')](_0x10084c('0x4e')),request({'method':_0x10084c('0x10'),'uri':util['format'](_0x10084c('0x2'),_0x2452f5[_0x10084c('0xa')]),'form':{'operation':_0x10084c('0x50'),'sessionName':_0x2ae9a1[_0x10084c('0x35')],'elementType':_0x10084c('0x6'),'element':JSON[_0x10084c('0x30')]({'lastname':_0x22b51f,'phone':_0x4b6f3f,'assigned_user_id':'\x20'})},'json':!![]})['then'](function(_0x5c48e7){const _0xceae4b=_0x10084c;return logger[_0xceae4b('0x12')](_0xceae4b('0x3f')),Promise[_0xceae4b('0x57')]({'id':_0x5c48e7[_0xceae4b('0x2c')]['id'],'name':_0x5c48e7[_0xceae4b('0x2c')][_0xceae4b('0x33')],'phone':_0x5c48e7[_0xceae4b('0x2c')]['phone']});})[_0x10084c('0x32')](function(_0x11213e){const _0xdb9b8a=_0x10084c,_0x30c49d=_0x11213e[_0xdb9b8a('0x0')]||0x1f4;logger['error'](_0xdb9b8a('0x5c'),_0xdb9b8a('0x52'),_0x30c49d,JSON[_0xdb9b8a('0x30')](_0x11213e));}));});}function getConnection(_0x529e30){const _0x339fa5=_0x4a6f59,_0x5987b4=_0x529e30[_0x339fa5('0xb')],_0x700ce7=_0x529e30['accessKey'];return request({'method':'GET','uri':util['format'](_0x339fa5('0x2'),_0x529e30[_0x339fa5('0xa')]),'qs':{'operation':_0x339fa5('0x1e'),'username':_0x5987b4},'json':!![]})[_0x339fa5('0x48')](function(_0x1a23ba){const _0x3e0ee7=_0x339fa5;if(_0x1a23ba[_0x3e0ee7('0x22')])return request({'method':_0x3e0ee7('0x10'),'uri':util[_0x3e0ee7('0x1f')](_0x3e0ee7('0x2'),_0x529e30['remoteUri']),'form':{'operation':_0x3e0ee7('0x3e'),'username':_0x5987b4,'accessKey':md5(_0x1a23ba[_0x3e0ee7('0x2c')][_0x3e0ee7('0xe')]+_0x700ce7)},'json':!![]});})[_0x339fa5('0x48')](function(_0x1609e6){const _0x43ef77=_0x339fa5;if(_0x1609e6[_0x43ef77('0x22')])return Promise[_0x43ef77('0x57')](_0x1609e6[_0x43ef77('0x2c')]);else throw new Error(util[_0x43ef77('0x1f')](_0x43ef77('0x21'),_0x529e30['id']));})[_0x339fa5('0x32')](function(_0x587f04){const _0x55345b=_0x339fa5,_0x566c4e=_0x587f04[_0x55345b('0x0')]||0x1f4;logger[_0x55345b('0x47')](_0x55345b('0x5c'),_0x55345b('0x28'),_0x566c4e,JSON[_0x55345b('0x30')](_0x587f04));});}function request(_0x175e1a){const _0xa03c14=_0x4a6f59;return logger['info'](_0xa03c14('0x53'),JSON[_0xa03c14('0x30')](_0x175e1a)),rp(_0x175e1a);}exports[_0x4a6f59('0x3c')]=function(_0x29ba44,_0x485ab2,_0x46605b,_0x952b90,_0x24097f,_0xa5656d){const _0x1ffbf1=_0x4a6f59;let _0x2818df,_0x4f8e84,_0x1381dd,_0x4db71f;return _0xa5656d[_0x1ffbf1('0xa')]=intUtil['stripTrailingSlash'](_0xa5656d[_0x1ffbf1('0xa')]),_0x24097f&&_0x24097f[_0x1ffbf1('0x4b')]?(logger[_0x1ffbf1('0x12')](_0x1ffbf1('0x14'),_0x1ffbf1('0x18')),_0x485ab2[_0x1ffbf1('0xf')]=util[_0x1ffbf1('0x1f')](_0x1ffbf1('0x2b'),_0xa5656d[_0x1ffbf1('0x5d')],_0x485ab2[_0x1ffbf1('0x4')],md5(_0x485ab2[_0x1ffbf1('0x4')]))):_0x485ab2['recordingURL']='',getConnection(_0xa5656d)[_0x1ffbf1('0x48')](function(_0x5a1429){return _0x4db71f=_0x5a1429,getUser(_0xa5656d,_0x952b90['email'],_0x4db71f);})['then'](function(_0x42f8f5){const _0x864af8=_0x1ffbf1;return _0x2818df=_0x42f8f5,logger[_0x864af8('0x12')](_0x864af8('0x39'),_0x2818df['id']),getEndUser(_0xa5656d,_0x485ab2[_0x864af8('0x36')],_0x485ab2[_0x864af8('0x5')],_0x4db71f);})[_0x1ffbf1('0x48')](function(_0x2a96c6){const _0x15193d=_0x1ffbf1;return _0x4f8e84=_0x2a96c6,logger[_0x15193d('0x12')](_0x15193d('0x5a'),_0x4f8e84['id']),createTicket(_0xa5656d,_0x2818df,_0x4f8e84,_0x46605b,_0x485ab2,_0x46605b['Fields'],_0x4db71f);})[_0x1ffbf1('0x48')](function(_0x3915fb){const _0x1c897f=_0x1ffbf1;_0x1381dd=_0x3915fb,logger[_0x1c897f('0x12')](_0x1c897f('0x29')),logger[_0x1c897f('0x12')](_0x1c897f('0x15'),_0x1381dd['id']);const _0x289a90=util[_0x1c897f('0x1f')](_0x1c897f('0x3b'),_0xa5656d['remoteUri'],_[_0x1c897f('0x24')](_0x1381dd['id'],'x')[0x1]);logger[_0x1c897f('0x12')]('[QUEUE]',_0x1c897f('0x1d')),emit(util[_0x1c897f('0x1f')]('user:%s',_0x952b90['name']),_0x1c897f('0x1a'),{'uri':_0x289a90});})[_0x1ffbf1('0x32')](function(_0x20a145){const _0x37d17c=_0x1ffbf1;logger[_0x37d17c('0x47')]('[QUEUE]',JSON[_0x37d17c('0x30')](_0x20a145));});},exports[_0x4a6f59('0x27')]=function(_0x52bd1b,_0x3b622b,_0x377d25,_0x1575c0,_0x55b13e,_0x491715,_0x3871dd){const _0x593988=_0x4a6f59;let _0x5b3722,_0x31cae1,_0x539899,_0x32ba97;return _0x491715[_0x593988('0xa')]=intUtil[_0x593988('0x54')](_0x491715[_0x593988('0xa')]),_0x491715[_0x593988('0x5d')]=intUtil[_0x593988('0x54')](_0x491715[_0x593988('0x5d')]),_0x3871dd&&_0x3871dd['recordingFormat']&&_0x3871dd[_0x593988('0x8')]!=='none'&&(logger['info'](_0x593988('0x7'),'Recording\x20is\x20enabled!'),_0x3b622b[_0x593988('0xf')]=util['format'](_0x593988('0x2b'),_0x491715[_0x593988('0x5d')],_0x3b622b[_0x593988('0x4')],md5(_0x3b622b['uniqueid']))),getConnection(_0x491715)[_0x593988('0x48')](function(_0x30e66f){return _0x32ba97=_0x30e66f,getUser(_0x491715,_0x1575c0['email'],_0x32ba97);})[_0x593988('0x48')](function(_0x5b86af){const _0x3da7ea=_0x593988;return _0x5b3722=_0x5b86af,logger[_0x3da7ea('0x12')](_0x3da7ea('0x39'),_0x5b3722['id']),getEndUser(_0x491715,_0x3b622b['destcalleridname'],_0x3b622b['destcalleridnum'],_0x32ba97);})[_0x593988('0x48')](function(_0x250230){const _0x2dd38a=_0x593988;return _0x31cae1=_0x250230,logger['info'](_0x2dd38a('0x5a'),_0x31cae1['id']),createTicket(_0x491715,_0x5b3722,_0x31cae1,_0x377d25,_0x3b622b,_0x377d25[_0x2dd38a('0x59')],_0x32ba97);})[_0x593988('0x48')](function(_0x46a02e){const _0x175bfd=_0x593988;_0x539899=_0x46a02e,logger[_0x175bfd('0x12')](_0x175bfd('0x29')),logger[_0x175bfd('0x12')](_0x175bfd('0x15'),_0x539899['id']);const _0x47b46c=util[_0x175bfd('0x1f')](_0x175bfd('0x3b'),_0x491715[_0x175bfd('0xa')],_[_0x175bfd('0x24')](_0x539899['id'],'x')[0x1]);logger['info'](_0x175bfd('0x7'),_0x175bfd('0x1d')),emit(util['format'](_0x175bfd('0x38'),_0x1575c0['name']),_0x175bfd('0x1a'),{'uri':_0x47b46c});})[_0x593988('0x32')](function(_0x355ece){const _0x14aae2=_0x593988;logger[_0x14aae2('0x47')]('[OUTBOUND]',JSON[_0x14aae2('0x30')](_0x355ece));});},exports[_0x4a6f59('0x2d')]=function(_0x5c5dc7,_0x507121,_0x358a39,_0x103c01,_0x1aa658,_0x4a32a3){const _0x2ab89d=_0x4a6f59;let _0x1bcbb2,_0xbe6b7c,_0x460f64,_0x218cb9;return _0x4a32a3[_0x2ab89d('0xa')]=intUtil[_0x2ab89d('0x54')](_0x4a32a3[_0x2ab89d('0xa')]),_0x4a32a3[_0x2ab89d('0x5d')]=intUtil[_0x2ab89d('0x54')](_0x4a32a3[_0x2ab89d('0x5d')]),_0x1aa658&&_0x1aa658['monitor_format']?(logger[_0x2ab89d('0x12')]('['+_0x507121['lastevent'][_0x2ab89d('0x45')]()+']',_0x2ab89d('0x18')),_0x507121[_0x2ab89d('0xf')]=util[_0x2ab89d('0x1f')]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x4a32a3[_0x2ab89d('0x5d')],_0x507121[_0x2ab89d('0x4')],md5(_0x507121[_0x2ab89d('0x4')]))):_0x507121[_0x2ab89d('0xf')]='',getConnection(_0x4a32a3)['then'](function(_0x2c5bfe){return _0x218cb9=_0x2c5bfe,getUser(_0x4a32a3,'',_0x218cb9);})[_0x2ab89d('0x48')](function(_0x499f78){const _0x464bee=_0x2ab89d;return _0x1bcbb2=_0x499f78,logger['info'](_0x464bee('0x39'),_0x1bcbb2['id']),getEndUser(_0x4a32a3,_0x507121[_0x464bee('0x36')],_0x507121[_0x464bee('0x5')],_0x218cb9);})[_0x2ab89d('0x48')](function(_0x272b81){const _0x34d9f6=_0x2ab89d;return _0xbe6b7c=_0x272b81,logger['info'](_0x34d9f6('0x5a'),_0xbe6b7c['id']),createTicket(_0x4a32a3,_0x1bcbb2,_0xbe6b7c,_0x358a39,_0x507121,_0x358a39[_0x34d9f6('0x59')],_0x218cb9);})[_0x2ab89d('0x48')](function(_0x348cdc){const _0x5301ef=_0x2ab89d;_0x460f64=_0x348cdc,logger[_0x5301ef('0x12')](_0x5301ef('0x29')),logger[_0x5301ef('0x12')](_0x5301ef('0x15'),_0x460f64['id']);})[_0x2ab89d('0x32')](function(_0x3fa799){const _0x23db41=_0x2ab89d;logger[_0x23db41('0x47')]('['+_0x507121[_0x23db41('0x56')][_0x23db41('0x45')]()+']',JSON[_0x23db41('0x30')](_0x3fa799));});}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/integration/zendesk.js b/server/services/ami/trigger/integration/zendesk.js index ba6982a..9163db0 100644 --- a/server/services/ami/trigger/integration/zendesk.js +++ b/server/services/ami/trigger/integration/zendesk.js @@ -1 +1 @@ -const a1145_0x5104=['newTab','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','format','Caller\x20-\x20%s','type:user\x20role:agent\x20email:%s','monitor_format','Recording\x20is\x20enabled!','results','username','toUpperCase','first','POST','%s/channels/voice/agents/%d/tickets/%d/display.json','variableName','customField','outbound','[OUTBOUND]\x20Error\x20running\x20Zendesk\x20integration','../../../../config/logger','calleridnum','./util','name','find','error','serverUrl','uniqueid','Enduser\x20created.','Basic\x20%s','Zendesk\x20account\x20type\x20not\x20recognized','content','user:%s','password','%s/users.json','%s/token:%s','integrationTab','type','Enduser\x20found!','inspect','toString','merge','/api/v2','Fields','push','[QUEUE]\x20Error\x20running\x20Zendesk\x20integration','Subjects','custom_fields','base64','Searching\x20enduser\x20with\x20phone','[HTTP]','filter','\x20Error\x20running\x20Zendesk\x20integration','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','[QUEUE]','[OUTBOUND]','length','lodash','stripTrailingSlash','info','agent','Variable','Authorization','type:user\x20role:end-user\x20phone:%s','authType','../../../../rediscache','application/json','queue','destcalleridnum','remoteUri','emit','token','map','then','customVariable','Descriptions','end-user','md5','destcalleridname','lastevent','idField','forEach','zendesk','request-promise-native','%s/agent/tickets/%s','Displaying\x20ticket\x20to\x20agent...','toLowerCase','recordingFormat','ticket','user','none','util','calleridname','GET','trigger:browser:url','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','%s/tickets.json','count','The\x20User\x20ID\x20is:','%s:%s','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','unmanaged','%s/search.json','getString','variable','catch','The\x20Enduser\x20ID\x20is:','Admin\x20account\x20selected.','Ticket\x20created!','nameField','defaults','string','email','replace','recordingURL'];(function(_0x365b62,_0x510458){const _0x57f7c3=function(_0x294c98){while(--_0x294c98){_0x365b62['push'](_0x365b62['shift']());}};_0x57f7c3(++_0x510458);}(a1145_0x5104,0xd7));const a1145_0x57f7=function(_0x365b62,_0x510458){_0x365b62=_0x365b62-0x0;let _0x57f7c3=a1145_0x5104[_0x365b62];return _0x57f7c3;};const _0x5f263b=a1145_0x57f7;'use strict';const _=require(_0x5f263b('0x3f')),rp=require(_0x5f263b('0x59')),md5=require(_0x5f263b('0x53')),util=require(_0x5f263b('0x61')),intUtil=require(_0x5f263b('0x1c')),logger=require(_0x5f263b('0x1a'))(_0x5f263b('0x58')),{getSocket}=require(_0x5f263b('0x47')),io=getSocket();function emit(_0x294c98,_0x196f34,_0x2f3fd7){const _0x5af081=_0x5f263b;io['to'](_0x294c98)[_0x5af081('0x4c')](_0x196f34,_0x2f3fd7);}const headers={'Content-Type':_0x5f263b('0x48'),'Accept':_0x5f263b('0x48')};function getTicket(_0x52baea,_0x3fe50d,_0x26d3a5,_0x1c91a7,_0x2074ef){const _0x567533=_0x5f263b;return logger[_0x567533('0x41')]('Creating\x20new\x20ticket...'),request({'uri':util['format'](_0x567533('0x66'),_0x52baea[_0x567533('0x4b')]),'method':_0x567533('0x14'),'body':{'ticket':_[_0x567533('0x2f')]({'requester_id':_0x26d3a5['id'],'submitter_id':_0x3fe50d?_0x3fe50d['id']:undefined,'assignee_id':_0x3fe50d?_0x3fe50d['id']:undefined,'tags':getTags(_0x1c91a7['Tags'],_0x567533('0x1d')),'subject':intUtil['getString'](_0x1c91a7[_0x567533('0x34')],_0x2074ef,'\x20'),'description':intUtil[_0x567533('0x6d')](_0x1c91a7[_0x567533('0x51')],_0x2074ef,'\x0a'),'comment':{'public':![],'body':intUtil[_0x567533('0x6d')](_0x1c91a7['Descriptions'],_0x2074ef,'\x0a')}},getCustomFields(_0x1c91a7[_0x567533('0x31')],_0x2074ef))}})[_0x567533('0x4f')](function(_0x4580d9){const _0x920df4=_0x567533;return logger[_0x920df4('0x41')](_0x920df4('0x2')),_0x4580d9[_0x920df4('0x5e')];});}function getUser(_0x7f42a5,_0x54bf31){const _0x42e49b=_0x5f263b;return intUtil['validateEmail'](_0x54bf31)?(logger['info']('Getting\x20agent\x20with\x20email',_0x54bf31),request({'uri':util['format'](_0x42e49b('0x6c'),_0x7f42a5[_0x42e49b('0x4b')]),'qs':{'query':util[_0x42e49b('0xb')](_0x42e49b('0xd'),_0x54bf31)}})['then'](function(_0x4e163e){const _0x2284a1=_0x42e49b;return _0x4e163e[_0x2284a1('0x67')]?(logger[_0x2284a1('0x41')]('Agent\x20found!'),_[_0x2284a1('0x1e')](_0x4e163e['results'],{'email':_0x54bf31,'role':_0x2284a1('0x42')})):(logger['info'](_0x2284a1('0x3b')),request({'uri':util[_0x2284a1('0xb')]('%s/users/me.json',_0x7f42a5[_0x2284a1('0x4b')])})[_0x2284a1('0x4f')](function(_0x3c47f0){const _0x156a7e=_0x2284a1;return logger[_0x156a7e('0x41')](_0x156a7e('0x1')),_0x3c47f0[_0x156a7e('0x5f')];}));})):(logger[_0x42e49b('0x41')](_0x42e49b('0x3b')),request({'uri':util[_0x42e49b('0xb')]('%s/users/me.json',_0x7f42a5['remoteUri'])})[_0x42e49b('0x4f')](function(_0x476db3){const _0x35e9b8=_0x42e49b;return logger[_0x35e9b8('0x41')](_0x35e9b8('0x1')),_0x476db3[_0x35e9b8('0x5f')];}));}function getEndUser(_0x53fa34,_0x5adac6,_0x122c7d){const _0x4b2e49=_0x5f263b;return logger[_0x4b2e49('0x41')](_0x4b2e49('0x37'),_0x122c7d),request({'uri':util[_0x4b2e49('0xb')](_0x4b2e49('0x6c'),_0x53fa34['remoteUri']),'qs':{'query':util[_0x4b2e49('0xb')](_0x4b2e49('0x45'),_0x122c7d)}})['then'](function(_0x17eecf){const _0x1b41ee=_0x4b2e49;let _0x29a66c;return _0x17eecf[_0x1b41ee('0x10')][_0x1b41ee('0x3e')]&&(_0x17eecf[_0x1b41ee('0x10')]=_[_0x1b41ee('0x39')](_0x17eecf[_0x1b41ee('0x10')],{'suspended':![],'role':_0x1b41ee('0x52')}),_0x17eecf[_0x1b41ee('0x10')][_0x1b41ee('0x3e')]&&(_0x29a66c=_[_0x1b41ee('0x13')](_0x17eecf[_0x1b41ee('0x10')]))),_0x29a66c?(logger[_0x1b41ee('0x41')](_0x1b41ee('0x2c')),_0x29a66c):(logger['info'](_0x1b41ee('0xa')),request({'uri':util[_0x1b41ee('0xb')](_0x1b41ee('0x28'),_0x53fa34[_0x1b41ee('0x4b')]),'method':_0x1b41ee('0x14'),'body':{'user':{'role':'end-user','name':util[_0x1b41ee('0xb')](_0x1b41ee('0xc'),_0x5adac6||_0x122c7d),'phone':_0x122c7d}}})['then'](function(_0x358588){const _0x27c4e9=_0x1b41ee;return logger[_0x27c4e9('0x41')](_0x27c4e9('0x22')),_0x358588[_0x27c4e9('0x5f')];}));});}function getAuth(_0x47c7d5){const _0x3399b1=_0x5f263b;let _0x36b2f4;if(_0x47c7d5[_0x3399b1('0x46')]===_0x3399b1('0x27'))_0x36b2f4=util[_0x3399b1('0xb')](_0x3399b1('0x69'),_0x47c7d5[_0x3399b1('0x11')],_0x47c7d5[_0x3399b1('0x27')]);else _0x47c7d5[_0x3399b1('0x46')]===_0x3399b1('0x4d')&&(_0x36b2f4=util[_0x3399b1('0xb')](_0x3399b1('0x29'),_0x47c7d5[_0x3399b1('0x11')],_0x47c7d5[_0x3399b1('0x4d')]));return util[_0x3399b1('0xb')](_0x3399b1('0x23'),Buffer['from'](_0x36b2f4)[_0x3399b1('0x2e')](_0x3399b1('0x36')));}function request(_0x5bc290){const _0x4aa1eb=_0x5f263b;return logger['debug'](_0x4aa1eb('0x38'),JSON['stringify'](_0x5bc290)),rp(_[_0x4aa1eb('0x4')](_0x5bc290,{'method':_0x4aa1eb('0x63'),'headers':headers,'json':!![]}));}function getTags(_0x5ea422,_0xe5dba8){const _0xca61c9=_0x5f263b;let _0x4cbdbd=[];return _0x5ea422&&_0x5ea422[_0xca61c9('0x3e')]>0x0&&(_0x4cbdbd=_[_0xca61c9('0x4e')](_0x5ea422,_0xe5dba8)),_0x4cbdbd;}function getCustomFields(_0x56299d,_0x5000fc){const _0x5eb646=_0x5f263b,_0x2bdddf={'custom_fields':[]};return _0x56299d[_0x5eb646('0x3e')]>0x0&&_[_0x5eb646('0x57')](_0x56299d,function(_0x4d3f8a){const _0x160b41=_0x5eb646;if(_0x4d3f8a[_0x160b41('0x2b')]===_0x160b41('0x5')&&_0x4d3f8a[_0x160b41('0x3')]&&!_0x4d3f8a[_0x160b41('0x17')])_0x2bdddf[_0x4d3f8a[_0x160b41('0x3')][_0x160b41('0x5c')]()]=_0x4d3f8a['content'][_0x160b41('0x2e')]();else{if(_0x4d3f8a[_0x160b41('0x2b')]===_0x160b41('0x5')&&_0x4d3f8a['idField']&&_0x4d3f8a[_0x160b41('0x17')])_0x2bdddf['custom_fields'][_0x160b41('0x32')]({'id':_0x4d3f8a[_0x160b41('0x56')],'value':_0x4d3f8a[_0x160b41('0x25')][_0x160b41('0x2e')]()});else{if(_0x4d3f8a[_0x160b41('0x2b')]===_0x160b41('0x6e')&&_0x4d3f8a[_0x160b41('0x16')]&&_0x4d3f8a[_0x160b41('0x56')]&&_0x4d3f8a[_0x160b41('0x17')])_0x5000fc[_0x4d3f8a['variableName']]&&_0x2bdddf['custom_fields'][_0x160b41('0x32')]({'id':_0x4d3f8a[_0x160b41('0x56')],'value':_0x5000fc[_0x4d3f8a['variableName']][_0x160b41('0x2e')]()});else _0x4d3f8a[_0x160b41('0x2b')]===_0x160b41('0x50')&&_0x4d3f8a[_0x160b41('0x43')]&&_0x4d3f8a['Variable'][_0x160b41('0x1d')]&&_0x4d3f8a[_0x160b41('0x56')]&&_0x4d3f8a['customField']&&(_0x5000fc[_0x4d3f8a[_0x160b41('0x43')][_0x160b41('0x1d')][_0x160b41('0x5c')]()]&&_0x2bdddf[_0x160b41('0x35')][_0x160b41('0x32')]({'id':_0x4d3f8a['idField'],'value':_0x5000fc[_0x4d3f8a[_0x160b41('0x43')][_0x160b41('0x1d')][_0x160b41('0x5c')]()][_0x160b41('0x2e')]()}));}}}),_0x2bdddf;}exports[_0x5f263b('0x49')]=function(_0x54b942,_0x35b161,_0x42c15e,_0x1c582d,_0x2ed0f0,_0x18f574){const _0x1e4775=_0x5f263b;let _0x2021cd,_0x4f62ec;return _0x18f574[_0x1e4775('0x4b')]=intUtil[_0x1e4775('0x40')](_0x18f574[_0x1e4775('0x4b')]),_0x18f574['serverUrl']=intUtil['stripTrailingSlash'](_0x18f574[_0x1e4775('0x20')]),_0x2ed0f0&&_0x2ed0f0[_0x1e4775('0xe')]?(logger[_0x1e4775('0x41')](_0x1e4775('0x3c'),_0x1e4775('0xf')),_0x35b161['recordingURL']=util['format']('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x18f574[_0x1e4775('0x20')],_0x35b161[_0x1e4775('0x21')],md5(_0x35b161[_0x1e4775('0x21')]))):_0x35b161['recordingURL']='',headers[_0x1e4775('0x44')]=getAuth(_0x18f574),getUser(_0x18f574,_0x1c582d[_0x1e4775('0x6')])['then'](function(_0x331d06){const _0x3d069b=_0x1e4775;return _0x2021cd=_0x331d06,logger['info'](_0x3d069b('0x68'),_0x2021cd['id']),getEndUser(_0x18f574,_0x35b161[_0x3d069b('0x62')],_0x35b161[_0x3d069b('0x1b')]);})[_0x1e4775('0x4f')](function(_0x10a33b){const _0x1ab2d9=_0x1e4775;return _0x4f62ec=_0x10a33b,logger['info'](_0x1ab2d9('0x0'),_0x4f62ec['id']),getTicket(_0x18f574,_0x2021cd,_0x4f62ec,_0x42c15e,_0x35b161);})[_0x1e4775('0x4f')](function(_0x14eb8e){const _0x2c63ec=_0x1e4775;if(_0x14eb8e){logger[_0x2c63ec('0x41')]('The\x20Ticket\x20ID\x20is:',_0x14eb8e['id']);switch(_0x18f574['type']){case _0x2c63ec('0x2a'):logger[_0x2c63ec('0x41')](_0x2c63ec('0x3c'),_0x2c63ec('0x5b'));return request({'uri':util['format'](_0x2c63ec('0x15'),_0x18f574[_0x2c63ec('0x4b')],_0x2021cd['id'],_0x14eb8e['id']),'method':'POST'});case _0x2c63ec('0x9'):logger[_0x2c63ec('0x41')](_0x2c63ec('0x3c'),_0x2c63ec('0x6a')),emit(util[_0x2c63ec('0xb')](_0x2c63ec('0x26'),_0x1c582d[_0x2c63ec('0x1d')]),_0x2c63ec('0x64'),{'uri':util[_0x2c63ec('0xb')](_0x2c63ec('0x5a'),_0x18f574[_0x2c63ec('0x4b')]['replace'](_0x2c63ec('0x30')),_0x14eb8e['id'])});break;default:logger[_0x2c63ec('0x1f')]('[QUEUE]',_0x2c63ec('0x24'));}}})[_0x1e4775('0x6f')](function(_0x5c189e){const _0x5c8341=_0x1e4775;logger['error'](_0x5c8341('0x33'),util[_0x5c8341('0x2d')](_0x5c189e,{'showHidden':!![],'depth':null}));});},exports[_0x5f263b('0x18')]=function(_0x428cdd,_0x467fb0,_0x24c020,_0x4ad0b7,_0x3f7d8e,_0x5852cb,_0x205315){const _0x1f5ee2=_0x5f263b;let _0x1e6b6b,_0x254de3;return _0x5852cb[_0x1f5ee2('0x4b')]=intUtil[_0x1f5ee2('0x40')](_0x5852cb[_0x1f5ee2('0x4b')]),_0x5852cb[_0x1f5ee2('0x20')]=intUtil[_0x1f5ee2('0x40')](_0x5852cb['serverUrl']),_0x205315&&_0x205315[_0x1f5ee2('0x5d')]&&_0x205315[_0x1f5ee2('0x5d')]!==_0x1f5ee2('0x60')&&(logger[_0x1f5ee2('0x41')](_0x1f5ee2('0x3d'),_0x1f5ee2('0xf')),_0x467fb0[_0x1f5ee2('0x8')]=util['format'](_0x1f5ee2('0x65'),_0x5852cb[_0x1f5ee2('0x20')],_0x467fb0[_0x1f5ee2('0x21')],md5(_0x467fb0['uniqueid']))),headers[_0x1f5ee2('0x44')]=getAuth(_0x5852cb),getUser(_0x5852cb,_0x4ad0b7[_0x1f5ee2('0x6')])[_0x1f5ee2('0x4f')](function(_0x56c2f4){const _0x35bafe=_0x1f5ee2;return _0x1e6b6b=_0x56c2f4,logger[_0x35bafe('0x41')](_0x35bafe('0x68'),_0x1e6b6b['id']),getEndUser(_0x5852cb,_0x467fb0[_0x35bafe('0x54')],_0x467fb0[_0x35bafe('0x4a')]);})[_0x1f5ee2('0x4f')](function(_0x51290f){const _0x16dcaf=_0x1f5ee2;return _0x254de3=_0x51290f,logger[_0x16dcaf('0x41')](_0x16dcaf('0x0'),_0x254de3['id']),getTicket(_0x5852cb,_0x1e6b6b,_0x254de3,_0x24c020,_0x467fb0);})[_0x1f5ee2('0x4f')](function(_0x175bc8){const _0x4d14db=_0x1f5ee2;if(_0x175bc8){logger[_0x4d14db('0x41')]('The\x20Ticket\x20ID\x20is:',_0x175bc8['id']);switch(_0x5852cb[_0x4d14db('0x2b')]){case'integrationTab':logger['info']('[OUTBOUND]','Displaying\x20ticket\x20to\x20agent...');return request({'uri':util[_0x4d14db('0xb')](_0x4d14db('0x15'),_0x5852cb[_0x4d14db('0x4b')],_0x1e6b6b['id'],_0x175bc8['id']),'method':_0x4d14db('0x14')});case _0x4d14db('0x9'):logger['info'](_0x4d14db('0x3d'),_0x4d14db('0x6a')),emit(util[_0x4d14db('0xb')](_0x4d14db('0x26'),_0x4ad0b7[_0x4d14db('0x1d')]),_0x4d14db('0x64'),{'uri':util[_0x4d14db('0xb')](_0x4d14db('0x5a'),_0x5852cb[_0x4d14db('0x4b')][_0x4d14db('0x7')](_0x4d14db('0x30')),_0x175bc8['id'])});break;default:logger[_0x4d14db('0x1f')](_0x4d14db('0x3d'),'Zendesk\x20account\x20type\x20not\x20recognized');}}})['catch'](function(_0x567185){const _0x272297=_0x1f5ee2;logger[_0x272297('0x1f')](_0x272297('0x19'),util[_0x272297('0x2d')](_0x567185,{'showHidden':!![],'depth':null}));});},exports[_0x5f263b('0x6b')]=function(_0x4a884d,_0x467e56,_0x323d8e,_0x2e02d7,_0x31e0c4,_0x518f0b){const _0x48ece7=_0x5f263b;let _0x37d108,_0x5a2d4d;return _0x518f0b[_0x48ece7('0x4b')]=intUtil['stripTrailingSlash'](_0x518f0b[_0x48ece7('0x4b')]),_0x518f0b[_0x48ece7('0x20')]=intUtil[_0x48ece7('0x40')](_0x518f0b[_0x48ece7('0x20')]),_0x31e0c4&&_0x31e0c4[_0x48ece7('0xe')]?(logger[_0x48ece7('0x41')]('['+_0x467e56[_0x48ece7('0x55')][_0x48ece7('0x12')]()+']',_0x48ece7('0xf')),_0x467e56[_0x48ece7('0x8')]=util['format']('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x518f0b[_0x48ece7('0x20')],_0x467e56[_0x48ece7('0x21')],md5(_0x467e56[_0x48ece7('0x21')]))):_0x467e56['recordingURL']='',headers['Authorization']=getAuth(_0x518f0b),getUser(_0x518f0b)[_0x48ece7('0x4f')](function(_0x3d688b){const _0x16c92d=_0x48ece7;return _0x37d108=_0x3d688b,logger[_0x16c92d('0x41')]('The\x20User\x20ID\x20is:',_0x37d108['id']),getEndUser(_0x518f0b,_0x467e56[_0x16c92d('0x62')],_0x467e56[_0x16c92d('0x1b')]);})[_0x48ece7('0x4f')](function(_0x26609e){const _0xf47a0b=_0x48ece7;return _0x5a2d4d=_0x26609e,logger[_0xf47a0b('0x41')](_0xf47a0b('0x0'),_0x5a2d4d['id']),getTicket(_0x518f0b,_0x37d108,_0x5a2d4d,_0x323d8e,_0x467e56);})[_0x48ece7('0x4f')](function(_0x548e61){const _0x11e832=_0x48ece7;_0x548e61&&logger[_0x11e832('0x41')]('The\x20Ticket\x20ID\x20is:',_0x548e61['id']);})['catch'](function(_0x5b3a9e){const _0x3b6ace=_0x48ece7;logger[_0x3b6ace('0x1f')]('['+_0x467e56[_0x3b6ace('0x55')][_0x3b6ace('0x12')]()+']'+_0x3b6ace('0x3a'),util[_0x3b6ace('0x2d')](_0x5b3a9e,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/integration/zoho.js b/server/services/ami/trigger/integration/zoho.js index 31c0c2c..8a366b2 100644 --- a/server/services/ami/trigger/integration/zoho.js +++ b/server/services/ami/trigger/integration/zoho.js @@ -1 +1 @@ -const a1146_0x35b4=['Descriptions','Timeout','calleridname','enduserType','https://www.zohoapis.','Variable','moment','user','[QUEUE]','/downloads?type=uniqueid&token=','destcalleridnum','YYYY-MM-DDTHH:mm:ss','merge','clientId','First_Name','last_name','role','../../../../rediscache','host','refreshToken','Subject','https://crm.','https://accounts.zoho.in','destcalleridname','The\x20failing\x20result\x20is','md5','CREATE\x20ERROR','utc','recordingURL','serverUrl','/crm/v2/Calls','stringify','isNil','Call_Start_Time','Failing\x20creating\x20the\x20access_token','then','getString','Who_Id','name','toString','talktime','catch','/crm/v2/Leads/search?criteria=((Phone:equals:','timeout','access_token','string','monitor_format','Answered','unmanaged','Displaying\x20call\x20to\x20agent\x20in\x20a\x20new\x20tab...','Last_Name','data','forEach','contact_lead','nothing','queue','Administrator','isArrayLikeObject','$se_module','called','split','code','Subjects','findIndex','endtime','info','zoho.eu','request-promise-native','log','Call_Result','startCase','https://accounts.zoho.com.au','Search\x20user','The\x20User\x20ID\x20is:','Call_Type','SUCCESS','users','first_name','ActiveUsers','seconds','profile','toUpperCase','customVariable','diff','Call_Duration','calleridnum','expires_in','[HTTP]','Called','Fields','../../../../config/logger','Agent\x20found!','Recording\x20is\x20enabled!','com','indexOf','administrator','Owner','lastevent','recordingFormat','https://accounts.zoho.com','Rejected','emit','idField','/crm/EntityInfo.do?module=Calls&id=','content','Zoho-oauthtoken\x20','GET','POST','The\x20Call\x20ID\x20is:','uniqueid','Description','Call\x20created!','Using\x20the\x20admin\x20account!','/crm/v2/','Leads','Full_Name','Creating\x20new\x20call...','stack','https://accounts.zoho.eu','trigger:browser:url','error','rejected','[OUTBOUND]','email','variable','/api/voice/recordings/','zone','type','Contacts','variableName','stripTrailingSlash','moduleCreate','complete','format','none','Inbound','details','err','lead','starttime','user:%s','abandoned','/crm/v2/Contacts/search?criteria=((Phone:equals:','mm:ss','uri'];(function(_0x2e8505,_0x35b49f){const _0x3a01fd=function(_0x2bd664){while(--_0x2bd664){_0x2e8505['push'](_0x2e8505['shift']());}};_0x3a01fd(++_0x35b49f);}(a1146_0x35b4,0x1d6));const a1146_0x3a01=function(_0x2e8505,_0x35b49f){_0x2e8505=_0x2e8505-0x0;let _0x3a01fd=a1146_0x35b4[_0x2e8505];return _0x3a01fd;};const _0x556813=a1146_0x3a01;'use strict';const _=require('lodash'),rp=require(_0x556813('0x20')),md5=require(_0x556813('0x87')),util=require('util'),intUtil=require('./util'),moment=require(_0x556813('0x74')),logger=require(_0x556813('0x37'))('zoho'),{getSocket}=require(_0x556813('0x7f')),io=getSocket();function emit(_0x2bd664,_0x5dfbaa,_0x77a95c){const _0x3f77bb=_0x556813;io['to'](_0x2bd664)[_0x3f77bb('0x42')](_0x5dfbaa,_0x77a95c);}function request(_0x3d67be){const _0x5ebb45=_0x556813;return logger['debug'](_0x5ebb45('0x34'),JSON[_0x5ebb45('0x8d')](_0x3d67be)),rp(_0x3d67be);}function getCustomFields(_0x3bc5a9,_0x52ba6d){const _0x2a93bd=_0x556813,_0x397da0={};return _0x3bc5a9['length']>0x0&&_[_0x2a93bd('0x11')](_0x3bc5a9,function(_0x4a257b){const _0x1a5e6b=_0x2a93bd;if(_0x4a257b[_0x1a5e6b('0x5c')]===_0x1a5e6b('0xa')&&_0x4a257b[_0x1a5e6b('0x43')])_0x397da0[_0x4a257b[_0x1a5e6b('0x43')]]=_0x4a257b[_0x1a5e6b('0x45')]['toString']();else{if(_0x4a257b['type']===_0x1a5e6b('0x59')&&_0x4a257b[_0x1a5e6b('0x5e')]&&_0x4a257b['idField']&&_0x52ba6d[_0x4a257b[_0x1a5e6b('0x5e')]])_0x397da0[_0x4a257b[_0x1a5e6b('0x43')]]=_0x52ba6d[_0x4a257b[_0x1a5e6b('0x5e')]][_0x1a5e6b('0x4')]();else _0x4a257b['type']===_0x1a5e6b('0x2f')&&_0x4a257b['Variable']&&_0x4a257b[_0x1a5e6b('0x73')]['name']&&_0x4a257b[_0x1a5e6b('0x43')]&&_0x52ba6d[_0x4a257b[_0x1a5e6b('0x73')]['name']['toLowerCase']()]&&(_0x397da0[_0x4a257b[_0x1a5e6b('0x43')]]=_0x52ba6d[_0x4a257b[_0x1a5e6b('0x73')][_0x1a5e6b('0x3')]['toLowerCase']()][_0x1a5e6b('0x4')]());}}),_0x397da0;}function getName(_0x44f14d){const _0x1fe52d=_0x556813;if(_0x44f14d[_0x1fe52d('0x3b')]('\x20')>0x0){const _0x4b7d94=_0x44f14d[_0x1fe52d('0x19')](/ (.+)/);if(_0x4b7d94[0x1])return _0x4b7d94;}return[_0x44f14d,_0x44f14d];}const accountsTokens={};function getAccessToken(_0x4e032b){return new Promise(function(_0x59d3af,_0x301004){const _0x2d7a59=a1146_0x3a01;!_[_0x2d7a59('0x8e')](accountsTokens[_0x4e032b['id']])&&!_[_0x2d7a59('0x8e')](accountsTokens[_0x4e032b['id']][_0x2d7a59('0x9')])&&(moment()['isBefore'](accountsTokens[_0x4e032b['id']][_0x2d7a59('0x33')])&&_0x59d3af(accountsTokens[_0x4e032b['id']][_0x2d7a59('0x9')]));let _0x46ba33;switch(_0x4e032b[_0x2d7a59('0x5b')]){case'US':_0x46ba33=_0x2d7a59('0x40');break;case'AU':_0x46ba33=_0x2d7a59('0x24');break;case'EU':_0x46ba33=_0x2d7a59('0x53');break;case'IN':_0x46ba33=_0x2d7a59('0x84');break;case'CN':_0x46ba33='https://accounts.zoho.com.cn';break;default:_0x46ba33=_0x2d7a59('0x53');break;}const _0xbb47de={'method':'POST','uri':_0x46ba33+'/oauth/v2/token','qs':{'refresh_token':_0x4e032b[_0x2d7a59('0x81')],'client_id':_0x4e032b[_0x2d7a59('0x7b')],'client_secret':_0x4e032b['clientSecret'],'grant_type':'refresh_token'},'json':!![]};return rp(_0xbb47de)[_0x2d7a59('0x0')](function(_0x475a92){const _0x5cbd34=_0x2d7a59;accountsTokens[_0x4e032b['id']]={'access_token':_0x475a92[_0x5cbd34('0x9')],'expires_in':moment()['add'](_0x475a92[_0x5cbd34('0x33')],_0x5cbd34('0x2c'))},_0x59d3af(_0x475a92['access_token']);})['catch'](function(_0x42b771){const _0x557674=_0x2d7a59;logger[_0x557674('0x55')](_0x557674('0x90'),_0x42b771[_0x557674('0x52')]),_0x301004(_0x42b771);});});}function getUser(_0x156cf7,_0x361027,_0x1ea4e1,_0x17b5e0){const _0x5dfb3d=_0x556813;return logger[_0x5dfb3d('0x1e')](_0x5dfb3d('0x25')),request({'method':_0x5dfb3d('0x47'),'uri':util[_0x5dfb3d('0x62')]('https://www.zohoapis.%s/crm/v2/users',_0x361027),'qs':{'type':_0x5dfb3d('0x2b')},'headers':{'Authorization':_0x5dfb3d('0x46')+_0x156cf7},'json':!![]})['then'](function(_0x7a794f){const _0x3fd64a=_0x5dfb3d;if(_0x7a794f[_0x3fd64a('0x29')]){let _0x4489c9=-0x1;if(_[_0x3fd64a('0x16')](_0x7a794f[_0x3fd64a('0x29')]))return!_[_0x3fd64a('0x8e')](_0x17b5e0)&&(_0x4489c9=_[_0x3fd64a('0x1c')](_0x7a794f[_0x3fd64a('0x29')],function(_0x1987b6){const _0x5e95f9=_0x3fd64a;return _0x1987b6[_0x5e95f9('0x58')]===_0x17b5e0;})),_0x4489c9>=0x0?logger[_0x3fd64a('0x1e')](_0x3fd64a('0x38')):(logger[_0x3fd64a('0x1e')](_0x3fd64a('0x4d')),_0x4489c9=_['findIndex'](_0x7a794f[_0x3fd64a('0x29')],function(_0x2fe125){const _0x532891=_0x3fd64a;return _0x2fe125[_0x532891('0x2d')][_0x532891('0x3')]===_0x532891('0x15');})),_0x7a794f[_0x3fd64a('0x29')][_0x4489c9];else{if(_0x7a794f['user']['profile']['name']==='Administrator'){logger[_0x3fd64a('0x1e')](_0x3fd64a('0x4d'));const _0xac8d78=_0x7a794f[_0x3fd64a('0x75')];return _0xac8d78;}else{logger[_0x3fd64a('0x55')](_0x3fd64a('0x86'),JSON[_0x3fd64a('0x8d')](_0x7a794f));throw new Error('Unable\x20to\x20retrieve\x20zoho\x20account\x20users:\x20'+JSON[_0x3fd64a('0x8d')](_0x7a794f));}}}else{logger[_0x3fd64a('0x55')](_0x3fd64a('0x86'),JSON[_0x3fd64a('0x8d')](_0x7a794f));throw new Error('Unable\x20to\x20retrieve\x20zoho\x20account\x20users:\x20'+JSON[_0x3fd64a('0x8d')](_0x7a794f));}})[_0x5dfb3d('0x6')](function(_0x146f6b){const _0x4f6837=_0x5dfb3d;console[_0x4f6837('0x55')](_0x146f6b);});}function getZohoUser(_0x6481a7,_0x3ff358){return new Promise(function(_0x43b2b3,_0x4ce39b){const _0xfd81c3=a1146_0x3a01;request(_0x6481a7)[_0xfd81c3('0x0')](function(_0x2469d2){const _0x2ea284=_0xfd81c3;let _0x51ec1b=null;_0x2469d2&&(_0x51ec1b=_0x2469d2[_0x2ea284('0x10')][0x0],_0x51ec1b[_0x2ea284('0x71')]=_0x3ff358),_0x43b2b3(_0x51ec1b);})[_0xfd81c3('0x6')](function(_0x39bbe4){_0x4ce39b(_0x39bbe4);});});}function createEndUser(_0x28cd38,_0x4ed3d6,_0x28a9b9,_0x6490eb,_0x307ccd,_0x286ab1){const _0x423735=_0x556813;return _0x28a9b9=getName(_0x28a9b9),request({'method':_0x423735('0x48'),'uri':_0x423735('0x72')+_0x4ed3d6+_0x423735('0x4e')+_[_0x423735('0x23')](_0x286ab1[_0x423735('0x60')])+'s','body':{'data':[{'Last_Name':_0x28a9b9[0x1],'First_Name':_0x28a9b9[0x0],'Phone':_0x6490eb,'Owner':{'name':!_['isNil'](_0x307ccd['role'][_0x423735('0x3')])?_0x307ccd[_0x423735('0x7e')][_0x423735('0x3')]:!_[_0x423735('0x8e')](_0x307ccd[_0x423735('0x2a')])?_0x307ccd['first_name']+'\x20'+_0x307ccd[_0x423735('0x7d')]:_0x307ccd[_0x423735('0x7d')],'id':_0x307ccd['id']}}]},'headers':{'Authorization':_0x423735('0x46')+_0x28cd38},'json':!![]})[_0x423735('0x0')](function(_0x2c9c87){const _0x1d7a93=_0x423735;if(_0x2c9c87&&_0x2c9c87[_0x1d7a93('0x10')][0x0][_0x1d7a93('0x1a')]===_0x1d7a93('0x28')){const _0x41b24c=_0x2c9c87['data'][0x0][_0x1d7a93('0x65')];return _0x41b24c[_0x1d7a93('0x71')]=_[_0x1d7a93('0x23')](_0x286ab1['moduleCreate'])+'s',_0x41b24c;}const _0x34d12a=_0x2c9c87[_0x1d7a93('0x10')];logger[_0x1d7a93('0x55')]('The\x20failing\x20result\x20is',JSON[_0x1d7a93('0x8d')](_0x34d12a));throw new Error('Error:\x20'+JSON[_0x1d7a93('0x8d')](_0x34d12a));})['catch'](function(_0x502ddf){const _0x10d90e=_0x423735;console[_0x10d90e('0x21')](_0x10d90e('0x88'),_0x502ddf);});}function getEndUser(_0x514ca7,_0x17dbac,_0x3c7879,_0x24b72c,_0x25d717,_0x390bf4,_0x2090ec){const _0x330fe1=_0x556813,_0x43336b={'method':_0x330fe1('0x47'),'uri':'','headers':{'Authorization':_0x330fe1('0x46')+_0x514ca7},'json':!![]};switch(_0x2090ec['moduleSearch']){case _0x330fe1('0x12'):_0x43336b['uri']=_0x330fe1('0x72')+_0x17dbac+_0x330fe1('0x6b')+_0x25d717+'))';return getZohoUser(_0x43336b,_0x330fe1('0x5d'))[_0x330fe1('0x0')](function(_0x323b54){const _0x2ca06f=_0x330fe1;if(_0x323b54)return _0x323b54;return _0x43336b['uri']=_0x2ca06f('0x72')+_0x17dbac+_0x2ca06f('0x7')+_0x25d717+'))',getZohoUser(_0x43336b,_0x2ca06f('0x4f'))[_0x2ca06f('0x0')](function(_0x43cfff){const _0x1625c8=_0x2ca06f;if(_0x43cfff)return _0x43cfff;return _0x2090ec[_0x1625c8('0x60')]!=_0x1625c8('0x13')?createEndUser(_0x514ca7,_0x17dbac,_0x24b72c,_0x25d717,_0x390bf4,_0x2090ec):{};});});case'contact':_0x43336b[_0x330fe1('0x6d')]=_0x330fe1('0x72')+_0x17dbac+_0x330fe1('0x6b')+_0x25d717+'))';return getZohoUser(_0x43336b,_0x330fe1('0x5d'))[_0x330fe1('0x0')](function(_0xf8d905){const _0x17a448=_0x330fe1;if(_0xf8d905)return _0xf8d905;return _0x2090ec[_0x17a448('0x60')]!=_0x17a448('0x13')?createEndUser(_0x514ca7,_0x17dbac,_0x24b72c,_0x25d717,_0x390bf4,_0x2090ec):{};});case _0x330fe1('0x67'):_0x43336b['uri']='https://www.zohoapis.'+_0x17dbac+'/crm/v2/Leads/search?criteria=((Phone:equals:'+_0x25d717+'))';return getZohoUser(_0x43336b,_0x330fe1('0x4f'))[_0x330fe1('0x0')](function(_0xf04b29){const _0x528b4f=_0x330fe1;if(_0xf04b29)return _0xf04b29;return _0x2090ec[_0x528b4f('0x60')]!=_0x528b4f('0x13')?createEndUser(_0x514ca7,_0x17dbac,_0x24b72c,_0x25d717,_0x390bf4,_0x2090ec):{};});}}function getCall(_0x52c042,_0x5d2ed0,_0x5adf74,_0x20088c,_0x55ddb6,_0xb7910f,_0x24a083,_0x432fa3){const _0x231f3e=_0x556813;logger[_0x231f3e('0x1e')](_0x231f3e('0x51'));let _0x562ed3={};_0x562ed3[_0x231f3e('0x3d')]={'name':!_['isNil'](_0x20088c['role'][_0x231f3e('0x3')])&&!_[_0x231f3e('0x8e')](_0x20088c[_0x231f3e('0x2d')][_0x231f3e('0x3')])&&_0x20088c[_0x231f3e('0x2d')]['name']===_0x231f3e('0x3c')?_0x20088c[_0x231f3e('0x7e')][_0x231f3e('0x3')]:!_[_0x231f3e('0x8e')](_0x20088c[_0x231f3e('0x2a')])?_0x20088c[_0x231f3e('0x2a')]+'\x20'+_0x20088c[_0x231f3e('0x7d')]:_0x20088c[_0x231f3e('0x7d')],'id':_0x20088c['id']},_0x562ed3[_0x231f3e('0x82')]=intUtil[_0x231f3e('0x1')](_0xb7910f[_0x231f3e('0x1b')],_0x24a083,'\x20'),_0x562ed3[_0x231f3e('0x4b')]=intUtil[_0x231f3e('0x1')](_0xb7910f[_0x231f3e('0x6e')],_0x24a083,'\x0a');_0x55ddb6[_0x231f3e('0x71')]==='Contacts'&&(_0x562ed3[_0x231f3e('0x2')]={'name':!_[_0x231f3e('0x8e')](_0x55ddb6[_0x231f3e('0x50')])?_0x55ddb6[_0x231f3e('0x50')]:!_[_0x231f3e('0x8e')](_0x55ddb6['First_Name'])?_0x55ddb6['First_Name']+'\x20'+_0x55ddb6[_0x231f3e('0xf')]:_0x55ddb6['Last_Name'],'id':_0x55ddb6['id']});_0x55ddb6[_0x231f3e('0x71')]===_0x231f3e('0x4f')&&(_0x562ed3['What_Id']={'name':!_['isNil'](_0x55ddb6['Full_Name'])?_0x55ddb6['Full_Name']:!_['isNil'](_0x55ddb6[_0x231f3e('0x7c')])?_0x55ddb6[_0x231f3e('0x7c')]+'\x20'+_0x55ddb6[_0x231f3e('0xf')]:_0x55ddb6[_0x231f3e('0xf')],'id':_0x55ddb6['id']},_0x562ed3[_0x231f3e('0x17')]=_['startCase'](_0x55ddb6[_0x231f3e('0x71')]));if(_0x24a083[_0x231f3e('0x5')])_0x562ed3[_0x231f3e('0x31')]=moment['utc'](parseInt(_0x24a083[_0x231f3e('0x5')])*0x3e8)[_0x231f3e('0x62')](_0x231f3e('0x6c'));else _0x24a083['answertime']&&_0x24a083[_0x231f3e('0x1d')]&&(_0x562ed3[_0x231f3e('0x31')]=moment[_0x231f3e('0x89')](moment(_0x24a083['endtime'],'YYYY-MM-DDTHH:mm:ss')[_0x231f3e('0x30')](moment(_0x24a083[_0x231f3e('0x68')],'YYYY-MM-DDTHH:mm:ss')))[_0x231f3e('0x62')](_0x231f3e('0x6c')));switch(_0x24a083[_0x231f3e('0x3e')]){case _0x231f3e('0x18'):_0x562ed3['Call_Result']=_0x231f3e('0x35');break;case _0x231f3e('0x61'):case'connect':_0x562ed3['Call_Result']=_0x231f3e('0xc');break;case _0x231f3e('0x56'):_0x562ed3[_0x231f3e('0x22')]=_0x231f3e('0x41');break;case _0x231f3e('0x6a'):_0x562ed3[_0x231f3e('0x22')]='Abandoned';break;case _0x231f3e('0x8'):_0x562ed3['Call_Result']=_0x231f3e('0x6f');break;default:break;}return _0x562ed3[_0x231f3e('0x8f')]=(_0x432fa3==='outbound'?moment(_0x24a083[_0x231f3e('0x68')])[_0x231f3e('0x62')](_0x231f3e('0x79')):moment(_0x24a083['agentcalledAt'])[_0x231f3e('0x62')](_0x231f3e('0x79')))||moment()[_0x231f3e('0x62')](_0x231f3e('0x79')),_0x562ed3[_0x231f3e('0x27')]=_0x432fa3||_0x231f3e('0x64'),_0x562ed3=_[_0x231f3e('0x7a')](_0x562ed3,getCustomFields(_0xb7910f[_0x231f3e('0x36')],_0x24a083)),request({'method':_0x231f3e('0x48'),'uri':_0x231f3e('0x72')+_0x5d2ed0+_0x231f3e('0x8c'),'headers':{'Authorization':_0x231f3e('0x46')+_0x52c042},'body':{'data':[_0x562ed3]},'json':!![]})[_0x231f3e('0x0')](function(_0x33165f){const _0x35ae09=_0x231f3e;if(_0x33165f&&_0x33165f[_0x35ae09('0x10')][0x0][_0x35ae09('0x1a')]==='SUCCESS')return logger['info'](_0x35ae09('0x4c')),{'id':_0x33165f[_0x35ae09('0x10')][0x0]['details']['id']};})[_0x231f3e('0x6')](function(_0x4c282f){const _0xc31cae=_0x231f3e;logger['info'](_0xc31cae('0x66'),_0x4c282f[_0xc31cae('0x52')]),console[_0xc31cae('0x21')](_0xc31cae('0x66'),_0x4c282f);});}exports[_0x556813('0x14')]=function(_0x3b0dfb,_0x15a95a,_0x39e0c9,_0x55ccd6,_0x1a86c6,_0x4c71b5){const _0x465f19=_0x556813;let _0x3de2c3,_0x7f3001,_0x5c5966;_0x4c71b5[_0x465f19('0x80')]=intUtil[_0x465f19('0x5f')](_0x4c71b5[_0x465f19('0x80')]),_0x4c71b5[_0x465f19('0x8b')]=intUtil['stripTrailingSlash'](_0x4c71b5[_0x465f19('0x8b')]);_0x1a86c6&&_0x1a86c6['monitor_format']?(logger[_0x465f19('0x1e')]('[QUEUE]',_0x465f19('0x39')),_0x15a95a['recordingURL']=_0x4c71b5[_0x465f19('0x8b')]+_0x465f19('0x5a')+_0x15a95a[_0x465f19('0x4a')]+_0x465f19('0x77')+md5(_0x15a95a[_0x465f19('0x4a')])):_0x15a95a['recordingURL']='';const _0x5bc5c5=_0x4c71b5[_0x465f19('0x80')]===_0x465f19('0x1f')?'eu':_0x465f19('0x3a');return getAccessToken(_0x4c71b5)[_0x465f19('0x0')](function(_0x3b1fdb){return _0x5c5966=_0x3b1fdb,getUser(_0x5c5966,_0x5bc5c5,_0x4c71b5,_0x55ccd6['email']);})[_0x465f19('0x0')](function(_0x478f47){const _0x21885f=_0x465f19;return _0x3de2c3=_0x478f47,logger[_0x21885f('0x1e')](_0x21885f('0x26'),_0x3de2c3['id']),getEndUser(_0x5c5966,_0x5bc5c5,_0x4c71b5,_0x15a95a[_0x21885f('0x70')],_0x15a95a[_0x21885f('0x32')],_0x3de2c3,_0x39e0c9);})[_0x465f19('0x0')](function(_0x5af873){const _0x1195b6=_0x465f19;return _0x7f3001=_0x5af873,getCall(_0x5c5966,_0x5bc5c5,_0x4c71b5,_0x3de2c3,_0x7f3001,_0x39e0c9,_0x15a95a,_0x1195b6('0x64'));})[_0x465f19('0x0')](function(_0xfff1cc){const _0x3816e2=_0x465f19;_0xfff1cc&&(logger[_0x3816e2('0x1e')](_0x3816e2('0x49'),_0xfff1cc['id']),logger[_0x3816e2('0x1e')](_0x3816e2('0x76'),_0x3816e2('0xe')),emit(util['format'](_0x3816e2('0x69'),_0x55ccd6['name']),_0x3816e2('0x54'),{'uri':_0x3816e2('0x83')+_0x4c71b5[_0x3816e2('0x80')]+_0x3816e2('0x44')+_0xfff1cc['id']}));})[_0x465f19('0x6')](function(_0x1cd738){const _0x63bb19=_0x465f19;logger[_0x63bb19('0x55')](_0x63bb19('0x76'),JSON[_0x63bb19('0x8d')](_0x1cd738));});},exports['outbound']=function(_0x33f6c9,_0x29add3,_0xfcdb8a,_0x117f85,_0x314a89,_0x66773a,_0x138f6f){const _0x277e2c=_0x556813;let _0x2597c2,_0x58cff0,_0x54011f;_0x66773a[_0x277e2c('0x80')]=intUtil[_0x277e2c('0x5f')](_0x66773a[_0x277e2c('0x80')]),_0x66773a['serverUrl']=intUtil[_0x277e2c('0x5f')](_0x66773a[_0x277e2c('0x8b')]);_0x138f6f&&_0x138f6f['recordingFormat']&&_0x138f6f[_0x277e2c('0x3f')]!==_0x277e2c('0x63')&&(logger['info'](_0x277e2c('0x57'),'Recording\x20is\x20enabled!'),_0x29add3[_0x277e2c('0x8a')]=_0x66773a[_0x277e2c('0x8b')]+_0x277e2c('0x5a')+_0x29add3[_0x277e2c('0x4a')]+_0x277e2c('0x77')+md5(_0x29add3['uniqueid']));const _0x451796=_0x66773a[_0x277e2c('0x80')]===_0x277e2c('0x1f')?'eu':_0x277e2c('0x3a');return getAccessToken(_0x66773a)[_0x277e2c('0x0')](function(_0xb5425){const _0x50a22a=_0x277e2c;return _0x54011f=_0xb5425,getUser(_0x54011f,_0x451796,_0x66773a,_0x117f85[_0x50a22a('0x58')]);})[_0x277e2c('0x0')](function(_0x47812e){const _0x27e3aa=_0x277e2c;return _0x2597c2=_0x47812e,logger['info'](_0x27e3aa('0x26'),_0x2597c2['id']),getEndUser(_0x54011f,_0x451796,_0x66773a,_0x29add3[_0x27e3aa('0x85')],_0x29add3[_0x27e3aa('0x78')],_0x2597c2,_0xfcdb8a);})[_0x277e2c('0x0')](function(_0x112fbf){return _0x58cff0=_0x112fbf,getCall(_0x54011f,_0x451796,_0x66773a,_0x2597c2,_0x58cff0,_0xfcdb8a,_0x29add3,'Outbound');})[_0x277e2c('0x0')](function(_0x16a6da){const _0x5825a5=_0x277e2c;_0x16a6da&&(logger[_0x5825a5('0x1e')]('The\x20Call\x20ID\x20is:',_0x16a6da['id']),logger[_0x5825a5('0x1e')](_0x5825a5('0x57'),_0x5825a5('0xe')),emit(util[_0x5825a5('0x62')](_0x5825a5('0x69'),_0x117f85[_0x5825a5('0x3')]),_0x5825a5('0x54'),{'uri':'https://crm.'+_0x66773a[_0x5825a5('0x80')]+_0x5825a5('0x44')+_0x16a6da['id']}));})[_0x277e2c('0x6')](function(_0x153a86){const _0x5ca843=_0x277e2c;logger[_0x5ca843('0x55')]('[OUTBOUND]',JSON[_0x5ca843('0x8d')](_0x153a86));});},exports[_0x556813('0xd')]=function(_0x2d321a,_0xafae31,_0x445bf9,_0x33ff3c,_0x3832c7,_0x520bbd){const _0x123c52=_0x556813;let _0x3f6c2d,_0x10c48a,_0x2705f2;_0x520bbd[_0x123c52('0x80')]=intUtil[_0x123c52('0x5f')](_0x520bbd['host']),_0x520bbd[_0x123c52('0x8b')]=intUtil[_0x123c52('0x5f')](_0x520bbd[_0x123c52('0x8b')]);_0x3832c7&&_0x3832c7[_0x123c52('0xb')]?(logger[_0x123c52('0x1e')]('['+_0xafae31[_0x123c52('0x3e')][_0x123c52('0x2e')]()+']',_0x123c52('0x39')),_0xafae31['recordingURL']=_0x520bbd['serverUrl']+'/api/voice/recordings/'+_0xafae31[_0x123c52('0x4a')]+'/downloads?type=uniqueid&token='+md5(_0xafae31[_0x123c52('0x4a')])):_0xafae31[_0x123c52('0x8a')]='';const _0x412d6a=_0x520bbd[_0x123c52('0x80')]===_0x123c52('0x1f')?'eu':_0x123c52('0x3a');return getAccessToken(_0x520bbd)[_0x123c52('0x0')](function(_0x1eb4a8){return _0x2705f2=_0x1eb4a8,getUser(_0x2705f2,_0x412d6a,_0x520bbd);})['then'](function(_0x30aba7){const _0x655d0d=_0x123c52;return _0x3f6c2d=_0x30aba7,logger[_0x655d0d('0x1e')]('The\x20User\x20ID\x20is:',_0x3f6c2d['id']),getEndUser(_0x2705f2,_0x412d6a,_0x520bbd,_0xafae31[_0x655d0d('0x70')],_0xafae31[_0x655d0d('0x32')],_0x3f6c2d,_0x445bf9);})['then'](function(_0x14fa04){const _0x41a583=_0x123c52;return _0x10c48a=_0x14fa04,getCall(_0x2705f2,_0x412d6a,_0x520bbd,_0x3f6c2d,_0x10c48a,_0x445bf9,_0xafae31,_0x41a583('0x64'));})[_0x123c52('0x0')](function(_0x29e6b6){const _0x670941=_0x123c52;_0x29e6b6&&logger['info'](_0x670941('0x49'),_0x29e6b6['id']);})[_0x123c52('0x6')](function(_0x2b6392){const _0x4f65c0=_0x123c52;logger[_0x4f65c0('0x55')]('['+_0xafae31[_0x4f65c0('0x3e')]['toUpperCase']()+']',JSON[_0x4f65c0('0x8d')](_0x2b6392));});}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/script/index.js b/server/services/ami/trigger/script/index.js index 84683cc..109a0e8 100644 --- a/server/services/ami/trigger/script/index.js +++ b/server/services/ami/trigger/script/index.js @@ -1 +1 @@ -const a1147_0x2f61=['%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s','../../../../config/logger','info','render','format','mustache','data2','%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s','data3'];(function(_0x5d1a5d,_0x2f61f7){const _0x210ce3=function(_0x1990b5){while(--_0x1990b5){_0x5d1a5d['push'](_0x5d1a5d['shift']());}};_0x210ce3(++_0x2f61f7);}(a1147_0x2f61,0x159));const a1147_0x210c=function(_0x5d1a5d,_0x2f61f7){_0x5d1a5d=_0x5d1a5d-0x0;let _0x210ce3=a1147_0x2f61[_0x5d1a5d];return _0x210ce3;};const _0x436afe=a1147_0x210c;'use strict';const util=require('util'),sh=require('shelljs'),Mustache=require(_0x436afe('0x2')),logger=require(_0x436afe('0x7'))('trigger');exports['exec']=function(_0x1990b5,_0x1c65e7){const _0x37654e=_0x436afe,_0x1d22b7=_0x1990b5[_0x37654e('0x3')]?_0x1990b5[_0x37654e('0x3')]:'Script',_0x3ae6a7=_0x1990b5[_0x37654e('0x5')]?Mustache[_0x37654e('0x0')](_0x1990b5[_0x37654e('0x5')],_0x1c65e7):_0x1c65e7;sh['exec'](_0x3ae6a7,function(_0x4e98d2,_0x5d2f1a,_0x11294d){const _0x4e36a3=_0x37654e;_0x4e98d2!==0x0?logger['error'](util[_0x4e36a3('0x1')](_0x4e36a3('0x4'),_0x1d22b7,_0x3ae6a7,_0x4e98d2,_0x11294d)):logger[_0x4e36a3('0x8')](util[_0x4e36a3('0x1')](_0x4e36a3('0x6'),_0x1d22b7,_0x3ae6a7,_0x5d2f1a));});}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/urlforward/index.js b/server/services/ami/trigger/urlforward/index.js index dd580a4..691cbfe 100644 --- a/server/services/ami/trigger/urlforward/index.js +++ b/server/services/ami/trigger/urlforward/index.js @@ -1 +1 @@ -const a1148_0x3002=['data2','catch','data1','mustache','then','object','statusCode','number','data6','headers','info','stringify','../../../../config/logger','%s\x20%s\x20sending\x20request\x20with\x20following\x20options:\x20%s','PUT','error','render','%s\x20%s\x20succeeded\x20with\x20status:\x20%d\x20and\x20response:\x20%s','request-promise-native','body','format','data7','GET','data5','parse','lodash','DELETE','name','%s\x20%s\x20failed\x20with\x20status:\x20%d\x20and\x20error:\x20%s\x20%s','exec','message','POST'];(function(_0xd89391,_0x300240){const _0x47dd52=function(_0x1ad9e9){while(--_0x1ad9e9){_0xd89391['push'](_0xd89391['shift']());}};_0x47dd52(++_0x300240);}(a1148_0x3002,0x125));const a1148_0x47dd=function(_0xd89391,_0x300240){_0xd89391=_0xd89391-0x0;let _0x47dd52=a1148_0x3002[_0xd89391];return _0x47dd52;};const _0x1b71d9=a1148_0x47dd;'use strict';const rp=require(_0x1b71d9('0xd')),util=require('util'),_=require(_0x1b71d9('0x14')),Mustache=require(_0x1b71d9('0x1e')),logger=require(_0x1b71d9('0x7'))('trigger');exports[_0x1b71d9('0x18')]=function(_0x1ad9e9,_0x2c6497){const _0x388b03=_0x1b71d9;let _0x50f031,_0x5c1292;const _0x135532={'method':_0x1ad9e9[_0x388b03('0x1d')]['toUpperCase'](),'uri':Mustache[_0x388b03('0xb')](_0x1ad9e9[_0x388b03('0x1b')],_0x2c6497),'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x1ad9e9[_0x388b03('0x12')])===_0x388b03('0x2')&&parseInt(_0x1ad9e9['data5'])>=0x1&&parseInt(_0x1ad9e9[_0x388b03('0x12')])<=0xa?parseInt(_0x1ad9e9[_0x388b03('0x12')])*0x3e8:0x5*0x3e8};try{_0x135532[_0x388b03('0x4')]=_0x1ad9e9[_0x388b03('0x3')]?JSON[_0x388b03('0x13')](Mustache[_0x388b03('0xb')](_0x1ad9e9[_0x388b03('0x3')],_0x2c6497)):{};}catch(_0x38b565){logger[_0x388b03('0xa')](_0x38b565['stack']);}switch(_0x1ad9e9[_0x388b03('0x1d')]['toUpperCase']()){case _0x388b03('0x11'):case _0x388b03('0x15'):_0x50f031=null,_0x135532['qs']=_0x2c6497;break;case _0x388b03('0x1a'):case _0x388b03('0x9'):if(_0x1ad9e9[_0x388b03('0x10')])try{_0x50f031=JSON['parse'](Mustache[_0x388b03('0xb')](_0x1ad9e9[_0x388b03('0x10')],_0x2c6497)),_0x135532[_0x388b03('0xe')]=_0x50f031;}catch(_0x1643bd){logger['error'](_0x1643bd['stack']),logger[_0x388b03('0xa')]('body\x20has\x20been\x20passed\x20to\x20URLforward\x20in\x20a\x20wrong\x20format');}else _0x50f031=_0x2c6497,_0x135532[_0x388b03('0xe')]=_0x50f031;break;}logger[_0x388b03('0x5')](util[_0x388b03('0xf')](_0x388b03('0x8'),_0x1ad9e9['data1'],_0x1ad9e9['data2'],JSON[_0x388b03('0x6')](_0x135532))),rp(_0x135532)[_0x388b03('0x1f')](function(_0x4eeb50){const _0x543270=_0x388b03;_0x50f031=!_['isNil'](_0x50f031)?',\x20request\x20body:\x20'+_0x50f031:'',_0x5c1292=typeof _0x4eeb50[_0x543270('0xe')]===_0x543270('0x0')?JSON[_0x543270('0x6')](_0x4eeb50[_0x543270('0xe')]):_0x4eeb50['body'],logger[_0x543270('0x5')](util[_0x543270('0xf')](_0x543270('0xc'),_0x1ad9e9[_0x543270('0x1d')],_0x1ad9e9[_0x543270('0x1b')],_0x4eeb50[_0x543270('0x1')],_0x5c1292));})[_0x388b03('0x1c')](function(_0xbde02){const _0x12f00e=_0x388b03;logger[_0x12f00e('0xa')](util['format'](_0x12f00e('0x17'),_0x1ad9e9[_0x12f00e('0x1d')],_0x1ad9e9['data2'],_0xbde02[_0x12f00e('0x1')],_0xbde02[_0x12f00e('0x16')],_0xbde02[_0x12f00e('0x19')]));});}; \ No newline at end of file +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 diff --git a/server/services/email/client.js b/server/services/email/client.js index be5f934..a28c31b 100644 --- a/server/services/email/client.js +++ b/server/services/email/client.js @@ -1 +1 @@ -const a1149_0x3236=['debug','routing','http','client','request','error','exports','Request','message','jayson/promise','rpc','../../config/logger','catch','result'];(function(_0x1fa656,_0x3236f0){const _0x398742=function(_0x48d4ef){while(--_0x48d4ef){_0x1fa656['push'](_0x1fa656['shift']());}};_0x398742(++_0x3236f0);}(a1149_0x3236,0x1f0));const a1149_0x3987=function(_0x1fa656,_0x3236f0){_0x1fa656=_0x1fa656-0x0;let _0x398742=a1149_0x3236[_0x1fa656];return _0x398742;};const _0x53f476=a1149_0x3987;'use strict';const jayson=require(_0x53f476('0x3')),logger=require(_0x53f476('0x5'))(_0x53f476('0x9')),client=jayson[_0x53f476('0xb')][_0x53f476('0xa')]({'port':0x2329});client[_0x53f476('0x1')]=function(_0x48d4ef,_0x3c43e1){return new Promise(function(_0x5123ab,_0x3fd8cf){const _0x2db56a=a1149_0x3987;return client[_0x2db56a('0xc')](_0x48d4ef,_0x3c43e1)['then'](function(_0x435059){const _0x1548b6=_0x2db56a;return logger[_0x1548b6('0x8')](_0x1548b6('0x4'),_0x1548b6('0x9'),_0x48d4ef,_0x3c43e1,_0x435059),_0x435059['error']?(logger['error'](_0x1548b6('0x4'),_0x1548b6('0x9'),_0x48d4ef,_0x435059[_0x1548b6('0xd')][_0x1548b6('0x2')],_0x3c43e1),_0x3fd8cf(_0x435059[_0x1548b6('0xd')][_0x1548b6('0x2')])):_0x5123ab(_0x435059[_0x1548b6('0x7')]);})[_0x2db56a('0x6')](function(_0x4d9feb){const _0x3297e9=_0x2db56a;return logger['error'](_0x3297e9('0x4'),_0x3297e9('0x9'),_0x48d4ef,_0x4d9feb,_0x3c43e1),_0x3fd8cf(_0x4d9feb);});});},module[_0x53f476('0x0')]=client; \ No newline at end of file +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 diff --git a/server/services/email/index.js b/server/services/email/index.js index be5c362..51b8c90 100644 --- a/server/services/email/index.js +++ b/server/services/email/index.js @@ -1 +1 @@ -const a1150_0x3c43=['./rpc/mailAccount','Setting','findOne','listen','./server','catch','then','../../globals','refresh','getMailAccounts','loginMailFrequency'];(function(_0x2877fb,_0x3c4345){const _0xc22e61=function(_0x5947d7){while(--_0x5947d7){_0x2877fb['push'](_0x2877fb['shift']());}};_0xc22e61(++_0x3c4345);}(a1150_0x3c43,0x149));const a1150_0xc22e=function(_0x2877fb,_0x3c4345){_0x2877fb=_0x2877fb-0x0;let _0xc22e61=a1150_0x3c43[_0x2877fb];return _0xc22e61;};const _0x25c098=a1150_0xc22e;'use strict';require(_0x25c098('0x8'));const server=require(_0x25c098('0x5')),Realtime=require('./realtime'),EmailChannel=require('./lib/email'),mailAccount=require(_0x25c098('0x1')),realtime=new Realtime(),email=new EmailChannel(realtime),db=require('../../mysqldb')['db'];function initRealtime(){const _0x270dcb=_0x25c098;return Promise['resolve']()[_0x270dcb('0x7')](mailAccount[_0x270dcb('0xa')]())[_0x270dcb('0x7')](realtime['initMailAccounts']())['then'](function(){const _0x5cd611=_0x270dcb;return email[_0x5cd611('0x9')](realtime['mailAccounts']),realtime;});}function main(){const _0x155c92=_0x25c098;return server[_0x155c92('0x4')](realtime,email)[_0x155c92('0x7')](function(){return initRealtime();})[_0x155c92('0x7')](function(){const _0x43dd22=_0x155c92;return db[_0x43dd22('0x2')][_0x43dd22('0x3')]({'attributes':['id','loginMailFrequency'],'raw':!![]});})[_0x155c92('0x7')](function(_0x5947d7){const _0x4c8989=_0x155c92;return setInterval(initRealtime,_0x5947d7[_0x4c8989('0x0')]*0x3e8);})[_0x155c92('0x6')](function(_0x20b725){console['log'](_0x20b725);});}main(); \ No newline at end of file +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 diff --git a/server/services/email/lib/email.js b/server/services/email/lib/email.js index f53159d..b70f95b 100644 --- a/server/services/email/lib/email.js +++ b/server/services/email/lib/email.js @@ -1 +1 @@ -const a1151_0x4fd2=['lastName','Mail\x20not\x20accepted\x20from\x20routing\x20%s','catch','error','verify','./smtp','../../../rediscache','connected','md5','end','info','from','emit','email','bind','status','../../../config/logger','stringify','handleImapError','disabled','mailAccount:update','handleImapBox','mailAccounts','box','verifySmtp','firstName','prototype','Smtp','sendMail','handleImapEmail','exports','messageStatus','../rpc/mailAccount','smtp','messages','isNil','notify','handleImapEnd','lastSync','moment','then','Imap','lodash','name','active','key','./imap','start\x20email\x20channel','imapAccounts','total'];(function(_0x2119f8,_0x4fd24c){const _0x3abb66=function(_0x57f9a8){while(--_0x57f9a8){_0x2119f8['push'](_0x2119f8['shift']());}};_0x3abb66(++_0x4fd24c);}(a1151_0x4fd2,0x8d));const a1151_0x3abb=function(_0x2119f8,_0x4fd24c){_0x2119f8=_0x2119f8-0x0;let _0x3abb66=a1151_0x4fd2[_0x2119f8];return _0x3abb66;};const _0x4c7ba0=a1151_0x3abb;'use strict';const _=require(_0x4c7ba0('0x1')),moment=require(_0x4c7ba0('0x30')),md5=require(_0x4c7ba0('0x11')),logger=require(_0x4c7ba0('0x19'))('email'),{getSocket}=require(_0x4c7ba0('0xf')),io=getSocket(),EmailImap=require(_0x4c7ba0('0x5')),EmailSmtp=require(_0x4c7ba0('0xe')),mailAccount=require(_0x4c7ba0('0x29')),md5Accounts={};function EmailChannel(_0x57f9a8){const _0xe191f7=_0x4c7ba0;logger[_0xe191f7('0x13')](_0xe191f7('0x6')),this[_0xe191f7('0x1f')]=_0x57f9a8[_0xe191f7('0x1f')],this['imapAccounts']={},this[_0xe191f7('0x2a')]=new EmailSmtp();}EmailChannel[_0x4c7ba0('0x23')]['emit']=function(_0x18e3fe){const _0x23b90a=_0x4c7ba0,_0x176b1b=this[_0x23b90a('0x1f')][_0x18e3fe],_0x189df7={'id':_0x176b1b['id'],'name':_0x176b1b['name'],'key':_0x176b1b[_0x23b90a('0x4')],'active':_0x176b1b[_0x23b90a('0x3')],'Imap':{'status':_0x176b1b['Imap'][_0x23b90a('0x18')],'messageStatus':_0x176b1b[_0x23b90a('0x0')]['messageStatus'],'total':_0x176b1b['Imap'][_0x23b90a('0x8')]}};_[_0x23b90a('0x2c')](md5Accounts[_0x18e3fe])&&(md5Accounts[_0x18e3fe]={});const _0x525e3f=md5(JSON[_0x23b90a('0x1a')](_0x189df7));md5Accounts[_0x18e3fe]['md5']!==_0x525e3f&&(md5Accounts[_0x18e3fe][_0x23b90a('0x11')]=_0x525e3f,io[_0x23b90a('0x15')](_0x23b90a('0x1d'),_0x189df7));},EmailChannel['prototype']['refresh']=function(_0xbfd546){const _0x5152cb=_0x4c7ba0;for(const _0x222bb5 in _0xbfd546){if(typeof _0xbfd546[_0x222bb5]!=='undefined'){if(_0xbfd546[_0x222bb5][_0x5152cb('0x0')]&&_0xbfd546[_0x222bb5][_0x5152cb('0x3')]){const _0x1567d1=_0xbfd546[_0x222bb5][_0x5152cb('0x0')];typeof this[_0x5152cb('0x7')][_0x1567d1['id']]==='undefined'&&(this[_0x5152cb('0x7')][_0x1567d1['id']]=new EmailImap(_0x1567d1,_0xbfd546[_0x222bb5][_0x5152cb('0x16')]),this['imapAccounts'][_0x1567d1['id']]['on'](_0x5152cb('0x20'),this[_0x5152cb('0x1e')][_0x5152cb('0x17')](this,_0x222bb5)),this['imapAccounts'][_0x1567d1['id']]['on']('email',this[_0x5152cb('0x26')][_0x5152cb('0x17')](this,_0x222bb5)),this[_0x5152cb('0x7')][_0x1567d1['id']]['on'](_0x5152cb('0x12'),this[_0x5152cb('0x2e')]['bind'](this,_0x222bb5)),this[_0x5152cb('0x7')][_0x1567d1['id']]['on'](_0x5152cb('0xc'),this[_0x5152cb('0x1b')][_0x5152cb('0x17')](this,_0x222bb5)));}else _['isNil'](this['mailAccounts'][_0x222bb5][_0x5152cb('0x0')])&&(this['mailAccounts'][_0x222bb5][_0x5152cb('0x0')]={}),this[_0x5152cb('0x1f')][_0x222bb5][_0x5152cb('0x0')][_0x5152cb('0x18')]=_0x5152cb('0x1c'),this[_0x5152cb('0x1f')][_0x222bb5][_0x5152cb('0x0')][_0x5152cb('0x28')]='',this[_0x5152cb('0x15')](_0x222bb5);}}},EmailChannel[_0x4c7ba0('0x23')]['handleImapBox']=function(_0x795a6,_0x97f44e){const _0x533339=_0x4c7ba0;if(this['mailAccounts'][_0x795a6])return this[_0x533339('0x1f')][_0x795a6][_0x533339('0x0')][_0x533339('0x18')]=_0x533339('0x10'),this[_0x533339('0x1f')][_0x795a6][_0x533339('0x0')][_0x533339('0x28')]=_0x97f44e[_0x533339('0x2')],_0x97f44e['messages']&&(this[_0x533339('0x1f')][_0x795a6][_0x533339('0x0')]['total']=_0x97f44e[_0x533339('0x2b')]['total']),this[_0x533339('0x15')](_0x795a6);},EmailChannel['prototype']['handleImapEmail']=function(_0x19ee43,_0x4e9c08){const _0x582ce8=_0x4c7ba0;logger['info']('New\x20email\x20from\x20%s\x20%s\x20%s\x20to\x20%s',_0x4e9c08[_0x582ce8('0x22')],_0x4e9c08[_0x582ce8('0x9')],_0x4e9c08[_0x582ce8('0x14')],_0x19ee43);if(this[_0x582ce8('0x1f')][_0x19ee43])return mailAccount[_0x582ce8('0x2d')](_0x19ee43,_0x4e9c08)[_0x582ce8('0x31')](function(_0x27ea61){const _0x14edf8=_0x582ce8;_0x27ea61&&logger[_0x14edf8('0x13')]('Mail\x20accepted\x20from\x20routing');})[_0x582ce8('0xb')](function(_0x1718fa){const _0x746533=_0x582ce8;logger[_0x746533('0xc')](_0x746533('0xa'),JSON['stringify'](_0x1718fa));});},EmailChannel[_0x4c7ba0('0x23')][_0x4c7ba0('0x2e')]=function(_0x1b5423){const _0x52de61=_0x4c7ba0;this[_0x52de61('0x1f')][_0x1b5423]&&this[_0x52de61('0x1f')][_0x1b5423][_0x52de61('0x0')]&&(this['imapAccounts'][this[_0x52de61('0x1f')][_0x1b5423][_0x52de61('0x0')]['id']]&&delete this[_0x52de61('0x7')][this[_0x52de61('0x1f')][_0x1b5423][_0x52de61('0x0')]['id']],this[_0x52de61('0x1f')][_0x1b5423]['Imap'][_0x52de61('0x2f')]=moment(),this['emit'](_0x1b5423));},EmailChannel[_0x4c7ba0('0x23')]['handleImapError']=function(_0x48a32d,_0x5274ab){const _0x407bf2=_0x4c7ba0;if(this[_0x407bf2('0x1f')][_0x48a32d])return this[_0x407bf2('0x1f')][_0x48a32d][_0x407bf2('0x0')][_0x407bf2('0x18')]=_0x407bf2('0xc'),this[_0x407bf2('0x1f')][_0x48a32d][_0x407bf2('0x0')][_0x407bf2('0x28')]=_0x5274ab,this[_0x407bf2('0x15')](_0x48a32d);},EmailChannel[_0x4c7ba0('0x23')][_0x4c7ba0('0x25')]=function(_0x1d9c70,_0x21413f){const _0x4a70c0=_0x4c7ba0;return this[_0x4a70c0('0x2a')]['send'](_0x1d9c70,_0x21413f);},EmailChannel[_0x4c7ba0('0x23')][_0x4c7ba0('0x21')]=function(_0x489536){const _0xc54366=_0x4c7ba0,_0x1b8cf4=this;if(this['mailAccounts'][_0x489536['id']])return _[_0xc54366('0x2c')](this[_0xc54366('0x1f')][_0x489536['id']]['Smtp'])&&(this[_0xc54366('0x1f')][_0x489536['id']][_0xc54366('0x24')]={}),this['mailAccounts'][_0x489536['id']]['Smtp'][_0xc54366('0x2f')]=moment(),new Promise(function(_0x2de1ab,_0x4a7061){const _0x1943e9=_0xc54366;return _0x1b8cf4[_0x1943e9('0x2a')]['verify'](_0x489536)['then'](function(_0xb80eec){const _0x474b57=_0x1943e9;_0x1b8cf4[_0x474b57('0x1f')][_0x489536['id']][_0x474b57('0x24')][_0x474b57('0x18')]='verified',_0x1b8cf4[_0x474b57('0x1f')][_0x489536['id']]['Smtp'][_0x474b57('0x28')]='',_0x1b8cf4[_0x474b57('0x15')](_0x489536['id']),_0x2de1ab(_0xb80eec);})[_0x1943e9('0xb')](function(_0x1f15e6){const _0x3925b4=_0x1943e9;_0x1b8cf4[_0x3925b4('0x1f')][_0x489536['id']]['Smtp'][_0x3925b4('0x18')]=_0x3925b4('0xc'),_0x1b8cf4[_0x3925b4('0x1f')][_0x489536['id']][_0x3925b4('0x24')][_0x3925b4('0x28')]=_0x1f15e6,_0x1b8cf4[_0x3925b4('0x15')](_0x489536['id']),_0x4a7061(_0x1f15e6);});});return this[_0xc54366('0x2a')][_0xc54366('0xd')](_0x489536);},module[_0x4c7ba0('0x27')]=EmailChannel; \ No newline at end of file +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 diff --git a/server/services/email/lib/imap.js b/server/services/email/lib/imap.js index 0b22af8..ed80726 100644 --- a/server/services/email/lib/imap.js +++ b/server/services/email/lib/imap.js @@ -1 +1 @@ -const a1152_0x1362=['getAccount','account','anonymous@xcally.com','simpleParser','length','user','port','handleSimpleParser','./utils','parser','email','exports','stringify','connect','handleEnd','connTimeout','error','events','handleMessageBody','handleFetchError','inherits','ready','prototype','openBox','attributes','handleFetchEnd','readUnseen','end','../../../config/logger','INBOX','mailbox','Iconv','tls','handleCloseBox','autotls','bind','handleOpenBox','handleFetchMessage','lodash','imap','once','UNSEEN','isNil','required','host','mailparser','textCode','authentication','handleReady','fetch','getHost','handleError','body','search','iconv','emit','box','closeBox','authTimeout','handleMessageEnd','handleMessageAttributes','password','service'];(function(_0x34bd9f,_0x1362c2){const _0xdf3c6b=function(_0x190b95){while(--_0x190b95){_0x34bd9f['push'](_0x34bd9f['shift']());}};_0xdf3c6b(++_0x1362c2);}(a1152_0x1362,0xd6));const a1152_0xdf3c=function(_0x34bd9f,_0x1362c2){_0x34bd9f=_0x34bd9f-0x0;let _0xdf3c6b=a1152_0x1362[_0x34bd9f];return _0xdf3c6b;};const _0x2b8412=a1152_0xdf3c;'use strict';const util=require('util'),Imap=require(_0x2b8412('0xe')),_=require(_0x2b8412('0xd')),simpleParser=require(_0x2b8412('0x14'))[_0x2b8412('0x29')],Iconv=require(_0x2b8412('0x1d'))[_0x2b8412('0x6')],EventEmitter=require(_0x2b8412('0x37'))['EventEmitter'],utils=require(_0x2b8412('0x2e')),logger=require(_0x2b8412('0x3'))(_0x2b8412('0x30'));function EmailImap(_0x190b95,_0x1edb33){const _0x1eb4a1=_0x2b8412;this['mailbox']=_0x1eb4a1('0x4'),this['account']=this[_0x1eb4a1('0x26')](_0x190b95,_0x1edb33),this[_0x1eb4a1('0xe')]=new Imap(this[_0x1eb4a1('0x27')]),this['imap'][_0x1eb4a1('0xf')](_0x1eb4a1('0x3b'),this[_0x1eb4a1('0x17')][_0x1eb4a1('0xa')](this)),this['imap']['once'](_0x1eb4a1('0x2'),this[_0x1eb4a1('0x34')]['bind'](this)),this[_0x1eb4a1('0xe')]['on'](_0x1eb4a1('0x36'),this[_0x1eb4a1('0x1a')][_0x1eb4a1('0xa')](this)),this['imap'][_0x1eb4a1('0x33')]();}util[_0x2b8412('0x3a')](EmailImap,EventEmitter),EmailImap[_0x2b8412('0x3c')][_0x2b8412('0x26')]=function(_0x242545,_0x2d5879){const _0x306425=_0x2b8412,_0x1c7737={'connTimeout':_0x242545[_0x306425('0x35')]?_0x242545[_0x306425('0x35')]*0x3e8:0x2710,'authTimeout':_0x242545[_0x306425('0x21')]?_0x242545[_0x306425('0x21')]*0x3e8:0x1388};return _[_0x306425('0x11')](_0x242545['service'])?(_0x242545[_0x306425('0x16')]&&(_0x1c7737[_0x306425('0x2b')]=_0x242545[_0x306425('0x2b')],_0x1c7737['password']=_0x242545[_0x306425('0x24')]),_0x1c7737[_0x306425('0x13')]=_0x242545[_0x306425('0x13')],_0x1c7737['port']=_0x242545['port']||0x3e1,_0x242545[_0x306425('0x7')]?_0x1c7737[_0x306425('0x7')]=!![]:(_0x1c7737[_0x306425('0x7')]=![],_0x1c7737[_0x306425('0x9')]=_0x306425('0x12'))):(_0x1c7737[_0x306425('0x2b')]=_0x242545[_0x306425('0x2b')],_0x1c7737[_0x306425('0x24')]=_0x242545[_0x306425('0x24')],_0x1c7737[_0x306425('0x13')]=utils[_0x306425('0x19')](_0x242545[_0x306425('0x25')]),_0x1c7737[_0x306425('0x2c')]=0x3e1,_0x1c7737[_0x306425('0x7')]=!![]),_0x1c7737[_0x306425('0x30')]=_0x2d5879||_0x242545[_0x306425('0x2b')]||_0x306425('0x28'),_0x1c7737;},EmailImap['prototype']['handleReady']=function(){const _0x5963f2=_0x2b8412;this[_0x5963f2('0xe')][_0x5963f2('0x3d')](this[_0x5963f2('0x5')],![],this[_0x5963f2('0xb')]['bind'](this));},EmailImap[_0x2b8412('0x3c')][_0x2b8412('0xb')]=function(_0x20e6c4,_0x509381){const _0x4dac2b=_0x2b8412;_0x20e6c4?this[_0x4dac2b('0x1a')](_0x20e6c4,!![]):(this['emit'](_0x4dac2b('0x1f'),_0x509381),this[_0x4dac2b('0x1')]());},EmailImap['prototype']['handleCloseBox']=function(_0x4d8f3e){const _0x1180eb=_0x2b8412;_0x4d8f3e?this[_0x1180eb('0x1a')](_0x4d8f3e,!![]):this[_0x1180eb('0xe')][_0x1180eb('0x2')]();},EmailImap[_0x2b8412('0x3c')][_0x2b8412('0x1')]=function(){const _0xf87be5=_0x2b8412;this[_0xf87be5('0xe')][_0xf87be5('0x1c')]([_0xf87be5('0x10')],this['handleReadUnseen'][_0xf87be5('0xa')](this));},EmailImap['prototype']['handleReadUnseen']=function(_0x2da1e5,_0x3a5895){const _0x2007df=_0x2b8412;if(_0x2da1e5)this['handleError'](_0x2da1e5,!![]);else{if(_0x3a5895[_0x2007df('0x2a')])try{const _0x177d72=this[_0x2007df('0xe')][_0x2007df('0x18')](_0x3a5895,{'bodies':'','markSeen':!![]});_0x177d72['on']('message',this[_0x2007df('0xc')][_0x2007df('0xa')](this)),_0x177d72[_0x2007df('0xf')](_0x2007df('0x36'),this[_0x2007df('0x39')][_0x2007df('0xa')](this)),_0x177d72[_0x2007df('0xf')](_0x2007df('0x2'),this[_0x2007df('0x0')][_0x2007df('0xa')](this));}catch(_0x7853dd){logger['error'](_0x7853dd);}else this['imap'][_0x2007df('0x20')](!![],this[_0x2007df('0x8')][_0x2007df('0xa')](this));}},EmailImap[_0x2b8412('0x3c')]['handleFetchMessage']=function(_0x40420b){const _0x268cda=_0x2b8412;_0x40420b['on'](_0x268cda('0x1b'),this['handleMessageBody']['bind'](this)),_0x40420b['once'](_0x268cda('0x3e'),this[_0x268cda('0x23')]['bind'](this)),_0x40420b[_0x268cda('0xf')]('end',this[_0x268cda('0x22')][_0x268cda('0xa')](this));},EmailImap[_0x2b8412('0x3c')][_0x2b8412('0x38')]=function(_0x2d9ab1){const _0x2298d4=_0x2b8412;simpleParser(_0x2d9ab1,{'Iconv':Iconv},this['handleSimpleParser'][_0x2298d4('0xa')](this));},EmailImap[_0x2b8412('0x3c')]['handleMessageAttributes']=function(){},EmailImap[_0x2b8412('0x3c')]['handleMessageEnd']=function(){},EmailImap['prototype'][_0x2b8412('0x2d')]=function(_0x39b818,_0x245bad){const _0x81e033=_0x2b8412;if(_0x39b818)logger['error'](_0x39b818);else{const _0x4abef7=this;utils[_0x81e033('0x2f')](this[_0x81e033('0x27')],_0x245bad,function(_0x3207dd){const _0x28053c=_0x81e033;_0x4abef7['emit'](_0x28053c('0x30'),_0x3207dd);});}},EmailImap[_0x2b8412('0x3c')][_0x2b8412('0x0')]=function(){const _0x522747=_0x2b8412;this[_0x522747('0xe')][_0x522747('0x20')](!![],this[_0x522747('0x8')][_0x522747('0xa')](this));},EmailImap['prototype'][_0x2b8412('0x39')]=function(_0x293939){const _0x69faa2=_0x2b8412;this[_0x69faa2('0x1a')](_0x293939),this['imap'][_0x69faa2('0x20')](!![],this[_0x69faa2('0x8')][_0x69faa2('0xa')](this));},EmailImap[_0x2b8412('0x3c')][_0x2b8412('0x34')]=function(){const _0x35ee2b=_0x2b8412;this[_0x35ee2b('0x1e')](_0x35ee2b('0x2'));},EmailImap[_0x2b8412('0x3c')][_0x2b8412('0x1a')]=function(_0x303cb0,_0x3ae2d3){const _0x4c0c81=_0x2b8412;logger[_0x4c0c81('0x36')](_0x4c0c81('0x1a'),this[_0x4c0c81('0x27')][_0x4c0c81('0x30')],JSON[_0x4c0c81('0x32')](_0x303cb0));let _0x1d5c7e='';if(_0x303cb0){if(_0x303cb0[_0x4c0c81('0x15')])_0x1d5c7e=_0x303cb0[_0x4c0c81('0x15')];else for(const _0x177786 in _0x303cb0){typeof _0x303cb0[_0x177786]!=='undefined'&&(_0x1d5c7e+=_['upperFirst'](_0x177786)+':\x20'+_0x303cb0[_0x177786]+'\x0a');}}_0x3ae2d3?this['imap'][_0x4c0c81('0x2')]():(this[_0x4c0c81('0x1e')](_0x4c0c81('0x36'),_0x1d5c7e),this[_0x4c0c81('0x1e')](_0x4c0c81('0x2')));},module[_0x2b8412('0x31')]=EmailImap; \ No newline at end of file +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 diff --git a/server/services/email/lib/smtp.js b/server/services/email/lib/smtp.js index b64e347..23a440c 100644 --- a/server/services/email/lib/smtp.js +++ b/server/services/email/lib/smtp.js @@ -1 +1 @@ -const a1153_0x4989=['send','verify','nodemailer-plugin-inline-base64','sendMail','toString','createTransport','Not\x20verifired','exports'];(function(_0x5a1ccb,_0x49893e){const _0x4cabbe=function(_0x2257a1){while(--_0x2257a1){_0x5a1ccb['push'](_0x5a1ccb['shift']());}};_0x4cabbe(++_0x49893e);}(a1153_0x4989,0x16b));const a1153_0x4cab=function(_0x5a1ccb,_0x49893e){_0x5a1ccb=_0x5a1ccb-0x0;let _0x4cabbe=a1153_0x4989[_0x5a1ccb];return _0x4cabbe;};const _0x50bdeb=a1153_0x4cab;'use strict';const nodemailer=require('nodemailer'),inlineBase64=require(_0x50bdeb('0x7'));function EmailSmtp(){}EmailSmtp['prototype'][_0x50bdeb('0x5')]=function(_0x2257a1,_0x201993){return new Promise(function(_0x2acca5,_0x3a3f44){const _0x186e39=a1153_0x4cab,_0x48dd36=nodemailer[_0x186e39('0x2')](_0x2257a1);_0x48dd36['use']('compile',inlineBase64()),_0x48dd36[_0x186e39('0x0')](_0x201993,function(_0x26b8b0,_0x4e8d28){const _0x14fe03=_0x186e39;_0x26b8b0?_0x3a3f44(_0x26b8b0[_0x14fe03('0x1')]()):_0x2acca5(_0x4e8d28);});});},EmailSmtp['prototype'][_0x50bdeb('0x6')]=function(_0x2c81d5){return new Promise(function(_0x5b0dc8,_0x1789a0){const _0x4de8f6=a1153_0x4cab,_0x583e97=nodemailer[_0x4de8f6('0x2')](_0x2c81d5);_0x583e97[_0x4de8f6('0x6')](function(_0x5e8005,_0x133536){const _0xf0d8f8=_0x4de8f6;_0x5e8005?_0x1789a0(_0x5e8005[_0xf0d8f8('0x1')]()):_0x133536?_0x5b0dc8(_0x133536):_0x1789a0(_0xf0d8f8('0x3'));});});},module[_0x50bdeb('0x4')]=EmailSmtp; \ No newline at end of file +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 diff --git a/server/services/email/lib/utils.js b/server/services/email/lib/utils.js index 917960d..31a1d90 100644 --- a/server/services/email/lib/utils.js +++ b/server/services/email/lib/utils.js @@ -1 +1 @@ -const a1154_0x3eb8=['format','Title','path','moment','join','isEmpty','name','split','0x1?_0x4dcd6b[_0x5e4107('0xd')]():'';}return'';}function getMails(_0x133448,_0xd94162){const _0x5c2458=_0x423368;let _0x5d1e3f='';for(let _0x37c57e=0x0;_0x37c57e<_0xd94162[_0x5c2458('0x17')]['length'];_0x37c57e+=0x1){_0xd94162[_0x5c2458('0x17')][_0x37c57e][_0x5c2458('0x1a')]!==_0x133448&&(!_['isEmpty'](_0x5d1e3f)&&(_0x5d1e3f+=','),_0x5d1e3f+=_0xd94162[_0x5c2458('0x17')][_0x37c57e][_0x5c2458('0x26')]||_0xd94162[_0x5c2458('0x17')][_0x37c57e][_0x5c2458('0x1a')]||'',_0x5d1e3f+='\x20<',_0x5d1e3f+=_0xd94162['value'][_0x37c57e][_0x5c2458('0x1a')]?_0xd94162[_0x5c2458('0x17')][_0x37c57e][_0x5c2458('0x1a')]:_0x5c2458('0x3b')+random[_0x5c2458('0x15')](0x6)+_0x5c2458('0x1'),_0x5d1e3f+='>');}return _0x5d1e3f;}function parseEmail(_0x23c7ab,_0x1a59ae,_0x25aead){const _0x3cf3fb=_0x423368;if(_0x1a59ae['html']){const _0x5d3cb0=/)<[^<]*)*<\/script>/gi;while(_0x5d3cb0['test'](_0x1a59ae[_0x3cf3fb('0x1e')])){_0x1a59ae[_0x3cf3fb('0x1e')]=_0x1a59ae[_0x3cf3fb('0x1e')][_0x3cf3fb('0x10')](_0x5d3cb0,'');}_0x25aead[_0x3cf3fb('0x2b')]=_0x1a59ae['html'];}else _0x25aead[_0x3cf3fb('0x2b')]=_0x1a59ae[_0x3cf3fb('0x2f')];_0x25aead[_0x3cf3fb('0x2b')]&&(_0x25aead[_0x3cf3fb('0x2b')]=_0x25aead['body'][_0x3cf3fb('0x10')](/Empty\x20message

';if(_0x5be2cf[_0x460944('0x2d')])for(let _0x43f128=0x0;_0x43f128<_0x5be2cf[_0x460944('0x2d')][_0x460944('0x2a')];_0x43f128++){const _0x28d2a7=_0x5be2cf[_0x460944('0x2d')][_0x43f128];_0x49cfc3[_0x460944('0x3c')]['attachments'][_0x460944('0xe')]({'filename':_0x28d2a7[_0x460944('0x21')],'content':Buffer[_0x460944('0x3e')](_0x28d2a7[_0x460944('0x2c')])});}}_0x584cee(parseEmail(_0x1eaa37,_0x193330,_0x49cfc3));})):(_0x193330[_0x137bf1('0x1e')]='

Empty\x20message

',_0x584cee(parseEmail(_0x1eaa37,_0x193330,_0x49cfc3)));}else _0x584cee(parseEmail(_0x1eaa37,_0x193330,_0x49cfc3));},exports[_0x423368('0x16')]=function(_0x263ef2){const _0x479261=_0x423368;switch(_0x263ef2){case _0x479261('0x18'):return _0x479261('0x9');case _0x479261('0x43'):return _0x479261('0x33');case'hotmail':return _0x479261('0xf');case'outlook365':return _0x479261('0x37');}return _0x479261('0x1c');}; \ No newline at end of file +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 diff --git a/server/services/email/model/mailAccount.js b/server/services/email/model/mailAccount.js index 94cc091..1536a82 100644 --- a/server/services/email/model/mailAccount.js +++ b/server/services/email/model/mailAccount.js @@ -1 +1 @@ -var a1155_0x4cce=['Imap','Service','key','Smtp','exports'];(function(_0x403d86,_0x4ccea3){var _0x295a47=function(_0x1a0e9d){while(--_0x1a0e9d){_0x403d86['push'](_0x403d86['shift']());}};_0x295a47(++_0x4ccea3);}(a1155_0x4cce,0xc3));var a1155_0x295a=function(_0x403d86,_0x4ccea3){_0x403d86=_0x403d86-0x0;var _0x295a47=a1155_0x4cce[_0x403d86];return _0x295a47;};var _0x1ad65d=a1155_0x295a;'use strict';function MailAccount(_0x1a0e9d){var _0x803915=a1155_0x295a;this['id']=_0x1a0e9d['id']||0x0,this['name']=_0x1a0e9d['name']||_0x803915('0x1'),this[_0x803915('0x2')]=_0x1a0e9d['key']||'SERV',this['active']=_0x1a0e9d['active']||![],this[_0x803915('0x0')]=_0x1a0e9d[_0x803915('0x0')]||[],this['Smtp']=_0x1a0e9d[_0x803915('0x3')]||[];}module[_0x1ad65d('0x4')]=MailAccount; \ No newline at end of file +var a1155_0x2728=['Smtp','Imap','key','name','active'];(function(_0x289632,_0x2728d9){var _0x391aa9=function(_0xac0b17){while(--_0xac0b17){_0x289632['push'](_0x289632['shift']());}};_0x391aa9(++_0x2728d9);}(a1155_0x2728,0xbb));var a1155_0x391a=function(_0x289632,_0x2728d9){_0x289632=_0x289632-0x0;var _0x391aa9=a1155_0x2728[_0x289632];return _0x391aa9;};'use strict';function MailAccount(_0xac0b17){var _0x4218bb=a1155_0x391a;this['id']=_0xac0b17['id']||0x0,this[_0x4218bb('0x1')]=_0xac0b17[_0x4218bb('0x1')]||'Service',this['key']=_0xac0b17[_0x4218bb('0x0')]||'SERV',this[_0x4218bb('0x2')]=_0xac0b17[_0x4218bb('0x2')]||![],this[_0x4218bb('0x4')]=_0xac0b17[_0x4218bb('0x4')]||[],this[_0x4218bb('0x3')]=_0xac0b17['Smtp']||[];}module['exports']=MailAccount; \ No newline at end of file diff --git a/server/services/email/realtime/index.js b/server/services/email/realtime/index.js index f46b917..7451331 100644 --- a/server/services/email/realtime/index.js +++ b/server/services/email/realtime/index.js @@ -1 +1 @@ -const a1156_0x27d0=['undefined','exports','length','mapKeys','prototype','mergeFromDatabase','initMailAccounts','mailAccounts'];(function(_0x400ca1,_0x27d016){const _0x3b1f6b=function(_0x2fdb94){while(--_0x2fdb94){_0x400ca1['push'](_0x400ca1['shift']());}};_0x3b1f6b(++_0x27d016);}(a1156_0x27d0,0x1ec));const a1156_0x3b1f=function(_0x400ca1,_0x27d016){_0x400ca1=_0x400ca1-0x0;let _0x3b1f6b=a1156_0x27d0[_0x400ca1];return _0x3b1f6b;};const _0x425b70=a1156_0x3b1f;'use strict';const _=require('lodash'),MailAccount=require('../model/mailAccount'),Realtime=function(){const _0x4ccdfa=a1156_0x3b1f;this[_0x4ccdfa('0x3')]={};};function freeIsNotKey(_0x2fdb94,_0x11a0c3,_0x2f2fdf){const _0x47ecf9=a1156_0x3b1f,_0x3eec15=_[_0x47ecf9('0x7')](_0x2fdb94,function(_0x7c6340){return _0x7c6340[_0x2f2fdf];});for(const _0x54c716 in _0x11a0c3){typeof _0x11a0c3[_0x54c716]!==_0x47ecf9('0x4')&&(!_0x3eec15[_0x54c716]&&delete _0x11a0c3[_0x54c716]);}}Realtime[_0x425b70('0x0')][_0x425b70('0x1')]=function(_0x82435,_0x1ef7bd){for(const _0x1da2ef in _0x1ef7bd){typeof _0x82435[_0x1da2ef]!=='undefined'&&(_0x82435[_0x1da2ef]=_0x1ef7bd[_0x1da2ef]);}},Realtime[_0x425b70('0x0')][_0x425b70('0x2')]=function(){const _0x2db7c1=this;return function(_0x48dadb){const _0x2399e6=a1156_0x3b1f;if(_0x48dadb){freeIsNotKey(_0x48dadb,_0x2db7c1[_0x2399e6('0x3')],'id');for(let _0x4a31a5=0x0,_0x21ed40={};_0x4a31a5<_0x48dadb[_0x2399e6('0x6')];_0x4a31a5+=0x1){_0x21ed40=_0x48dadb[_0x4a31a5],_['isUndefined'](_0x2db7c1[_0x2399e6('0x3')][_0x21ed40['id']])?_0x2db7c1['mailAccounts'][_0x21ed40['id']]=new MailAccount(_0x21ed40):_['merge'](_0x2db7c1[_0x2399e6('0x3')][_0x21ed40['id']],_0x21ed40);}}return _0x2db7c1[_0x2399e6('0x3')];};},module[_0x425b70('0x5')]=Realtime; \ No newline at end of file +const a1156_0x562d=['length','prototype','mailAccounts','undefined','lodash','mergeFromDatabase','../model/mailAccount','isUndefined','exports'];(function(_0x470c22,_0x562da9){const _0x298253=function(_0x5664bf){while(--_0x5664bf){_0x470c22['push'](_0x470c22['shift']());}};_0x298253(++_0x562da9);}(a1156_0x562d,0x122));const a1156_0x2982=function(_0x470c22,_0x562da9){_0x470c22=_0x470c22-0x0;let _0x298253=a1156_0x562d[_0x470c22];return _0x298253;};const _0x574a4d=a1156_0x2982;'use strict';const _=require(_0x574a4d('0x2')),MailAccount=require(_0x574a4d('0x4')),Realtime=function(){const _0x3eb17c=_0x574a4d;this[_0x3eb17c('0x0')]={};};function freeIsNotKey(_0x5664bf,_0x5d566c,_0x4e1fe1){const _0x542c31=_0x574a4d,_0x1963e7=_['mapKeys'](_0x5664bf,function(_0x3f0ea3){return _0x3f0ea3[_0x4e1fe1];});for(const _0x51d6b4 in _0x5d566c){typeof _0x5d566c[_0x51d6b4]!==_0x542c31('0x1')&&(!_0x1963e7[_0x51d6b4]&&delete _0x5d566c[_0x51d6b4]);}}Realtime[_0x574a4d('0x8')][_0x574a4d('0x3')]=function(_0x3fc9c3,_0x76c3d4){const _0x2441ee=_0x574a4d;for(const _0x5efc30 in _0x76c3d4){typeof _0x3fc9c3[_0x5efc30]!==_0x2441ee('0x1')&&(_0x3fc9c3[_0x5efc30]=_0x76c3d4[_0x5efc30]);}},Realtime[_0x574a4d('0x8')]['initMailAccounts']=function(){const _0x4767e8=this;return function(_0x5bfaea){const _0x886f54=a1156_0x2982;if(_0x5bfaea){freeIsNotKey(_0x5bfaea,_0x4767e8[_0x886f54('0x0')],'id');for(let _0x62a1e5=0x0,_0x30ea0f={};_0x62a1e5<_0x5bfaea[_0x886f54('0x7')];_0x62a1e5+=0x1){_0x30ea0f=_0x5bfaea[_0x62a1e5],_[_0x886f54('0x5')](_0x4767e8[_0x886f54('0x0')][_0x30ea0f['id']])?_0x4767e8['mailAccounts'][_0x30ea0f['id']]=new MailAccount(_0x30ea0f):_['merge'](_0x4767e8['mailAccounts'][_0x30ea0f['id']],_0x30ea0f);}}return _0x4767e8[_0x886f54('0x0')];};},module[_0x574a4d('0x6')]=Realtime; \ No newline at end of file diff --git a/server/services/email/rpc/mailAccount.js b/server/services/email/rpc/mailAccount.js index 0f78227..7abaa69 100644 --- a/server/services/email/rpc/mailAccount.js +++ b/server/services/email/rpc/mailAccount.js @@ -1 +1 @@ -const a1157_0x25b5=['../client','TemplateId','Smtp','Imap','notify','GetMailAccount','NotifyMailAccount','service','key','getMailAccounts','name','getMailAccount','MailServerOut','active','ListId','Request'];(function(_0x494f72,_0x25b5c9){const _0x2b73ff=function(_0x38239a){while(--_0x38239a){_0x494f72['push'](_0x494f72['shift']());}};_0x2b73ff(++_0x25b5c9);}(a1157_0x25b5,0x1ec));const a1157_0x2b73=function(_0x494f72,_0x25b5c9){_0x494f72=_0x494f72-0x0;let _0x2b73ff=a1157_0x25b5[_0x494f72];return _0x2b73ff;};const _0x3e9605=a1157_0x2b73;'use strict';const client=require(_0x3e9605('0x4'));exports[_0x3e9605('0xd')]=function(){return function(){const _0x230efe=a1157_0x2b73;return client[_0x230efe('0x3')](_0x230efe('0x9'),{'options':{'attributes':['id',_0x230efe('0xe'),_0x230efe('0xb'),'email',_0x230efe('0x1'),_0x230efe('0xc'),_0x230efe('0x2'),_0x230efe('0x5')],'raw':![],'include':[{'model':'MailServerIn','as':_0x230efe('0x7')},{'model':_0x230efe('0x0'),'as':_0x230efe('0x6')}]},'log':_0x230efe('0xf')});};},exports[_0x3e9605('0x8')]=function(_0x38239a,_0x2c196c){const _0x47805a=_0x3e9605;return client['Request'](_0x47805a('0xa'),{'account':{'id':_0x38239a},'body':_0x2c196c,'log':_0x47805a('0xa')});}; \ No newline at end of file +const a1157_0x21ca=['notify','getMailAccount','MailServerOut','TemplateId','getMailAccounts','Request','NotifyMailAccount','active','Smtp','ListId','Imap','key','../client','GetMailAccount','email','MailServerIn'];(function(_0xa26f5e,_0x21ca18){const _0x1699bf=function(_0x406854){while(--_0x406854){_0xa26f5e['push'](_0xa26f5e['shift']());}};_0x1699bf(++_0x21ca18);}(a1157_0x21ca,0x1ca));const a1157_0x1699=function(_0xa26f5e,_0x21ca18){_0xa26f5e=_0xa26f5e-0x0;let _0x1699bf=a1157_0x21ca[_0xa26f5e];return _0x1699bf;};const _0x5648f1=a1157_0x1699;'use strict';const client=require(_0x5648f1('0x2'));exports[_0x5648f1('0xa')]=function(){return function(){const _0xd98dfe=a1157_0x1699;return client[_0xd98dfe('0xb')](_0xd98dfe('0x3'),{'options':{'attributes':['id','name','service',_0xd98dfe('0x4'),_0xd98dfe('0xd'),_0xd98dfe('0x1'),_0xd98dfe('0xf'),_0xd98dfe('0x9')],'raw':![],'include':[{'model':_0xd98dfe('0x5'),'as':_0xd98dfe('0x0')},{'model':_0xd98dfe('0x8'),'as':_0xd98dfe('0xe')}]},'log':_0xd98dfe('0x7')});};},exports[_0x5648f1('0x6')]=function(_0x406854,_0xe2a84e){const _0x3bb18e=_0x5648f1;return client['Request'](_0x3bb18e('0xc'),{'account':{'id':_0x406854},'body':_0xe2a84e,'log':_0x3bb18e('0xc')});}; \ No newline at end of file diff --git a/server/services/email/server/index.js b/server/services/email/server/index.js index 7f6e582..40262b2 100644 --- a/server/services/email/server/index.js +++ b/server/services/email/server/index.js @@ -1 +1 @@ -const a1158_0x5b91=['Imap','email','then','Smtp','length','catch','Email\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!','stringify','jayson/promise','Verified','listen','pass','server','error','RPC\x20listening\x20on\x20port:','http','values','account','../../../config/logger','sendMail','message','password'];(function(_0xcb4a5,_0x5b911b){const _0x374736=function(_0x9c891b){while(--_0x9c891b){_0xcb4a5['push'](_0xcb4a5['shift']());}};_0x374736(++_0x5b911b);}(a1158_0x5b91,0x11c));const a1158_0x3747=function(_0xcb4a5,_0x5b911b){_0xcb4a5=_0xcb4a5-0x0;let _0x374736=a1158_0x5b91[_0xcb4a5];return _0x374736;};const _0x396a7d=a1158_0x3747;'use strict';const jayson=require(_0x396a7d('0xa')),_=require('lodash'),logger=require(_0x396a7d('0x14'))(_0x396a7d('0x3'));exports['listen']=function(_0x9c891b,_0x38a437){return new Promise(function(_0x58aa1b,_0x17292e){const _0x54cd86=a1158_0x3747,_0xbc8351={'SendMail':function(_0x525442){const _0x6dbea2=this;return new Promise(function(_0x36bde5,_0x5949cd){const _0x46d526=a1158_0x3747;_0x38a437[_0x46d526('0x15')](_0x525442[_0x46d526('0x13')],_0x525442[_0x46d526('0x0')])[_0x46d526('0x4')](function(_0x2f8ef9){_0x36bde5({'code':0xc8,'message':_0x2f8ef9});})[_0x46d526('0x7')](function(_0x3fc08c){const _0x26f3a8=_0x46d526;_0x5949cd(_0x6dbea2[_0x26f3a8('0xf')](0x1f4,_0x3fc08c));});});},'VerifySmtp':function(_0x41dd82){const _0x19dc85=this;return new Promise(function(_0x490e19,_0x486d94){const _0x4872a8=a1158_0x3747;_0x38a437['verifySmtp'](_0x41dd82[_0x4872a8('0x13')])[_0x4872a8('0x4')](function(){const _0x122604=_0x4872a8;_0x490e19({'code':0xc8,'message':_0x122604('0xb')});})['catch'](function(_0x43c8bc){_0x486d94(_0x19dc85['error'](0x1f4,_0x43c8bc));});});},'MailAccounts':function(){return new Promise(function(_0x5d35f2){const _0x18f813=a1158_0x3747,_0x17e202=_[_0x18f813('0x12')](_0x9c891b['mailAccounts']);for(let _0x51ae44=0x0;_0x51ae44<_0x17e202[_0x18f813('0x6')];_0x51ae44+=0x1){_0x17e202[_0x51ae44]['Imap']&&_0x17e202[_0x51ae44][_0x18f813('0x2')][_0x18f813('0x1')]&&delete _0x17e202[_0x51ae44][_0x18f813('0x2')][_0x18f813('0x1')],_0x17e202[_0x51ae44]['Smtp']&&_0x17e202[_0x51ae44][_0x18f813('0x5')][_0x18f813('0xd')]&&delete _0x17e202[_0x51ae44][_0x18f813('0x5')][_0x18f813('0xd')];}_0x5d35f2({'count':_0x17e202[_0x18f813('0x6')],'rows':_0x17e202});});}},_0xf16302=jayson[_0x54cd86('0xe')](_0xbc8351)[_0x54cd86('0x11')]();_0xf16302['on'](_0x54cd86('0xf'),function(_0x1c9242){const _0x3f80fd=_0x54cd86;return logger['error'](JSON[_0x3f80fd('0x9')](_0x1c9242)),_0x17292e(_0x1c9242);}),_0xf16302[_0x54cd86('0xc')](0x232b,'127.0.0.1',function(){const _0x1ce4c9=_0x54cd86;return console['log'](_0x1ce4c9('0x8'),0x232b),_0x58aa1b(_0x1ce4c9('0x10')+0x232b);});});}; \ No newline at end of file +const a1158_0x161f=['then','RPC\x20listening\x20on\x20port:','password','lodash','catch','pass','Imap','sendMail','message','Smtp','jayson/promise','server','../../../config/logger','account','length','verifySmtp','email','mailAccounts','listen','Verified','error','values','Email\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!'];(function(_0x105861,_0x161fc7){const _0x26aec0=function(_0x364b00){while(--_0x364b00){_0x105861['push'](_0x105861['shift']());}};_0x26aec0(++_0x161fc7);}(a1158_0x161f,0x72));const a1158_0x26ae=function(_0x105861,_0x161fc7){_0x105861=_0x105861-0x0;let _0x26aec0=a1158_0x161f[_0x105861];return _0x26aec0;};const _0x3f194c=a1158_0x26ae;'use strict';const jayson=require(_0x3f194c('0xb')),_=require(_0x3f194c('0x4')),logger=require(_0x3f194c('0xd'))(_0x3f194c('0x11'));exports[_0x3f194c('0x13')]=function(_0x364b00,_0x512584){return new Promise(function(_0x3defbb,_0x1ee1b6){const _0x3bc2d8=a1158_0x26ae,_0x205617={'SendMail':function(_0x284439){const _0x1f0c64=this;return new Promise(function(_0x121ee0,_0x5caf82){const _0x3e79a1=a1158_0x26ae;_0x512584[_0x3e79a1('0x8')](_0x284439[_0x3e79a1('0xe')],_0x284439[_0x3e79a1('0x9')])[_0x3e79a1('0x1')](function(_0x2eaaf6){_0x121ee0({'code':0xc8,'message':_0x2eaaf6});})[_0x3e79a1('0x5')](function(_0x20b3b9){const _0x5e4dbd=_0x3e79a1;_0x5caf82(_0x1f0c64[_0x5e4dbd('0x15')](0x1f4,_0x20b3b9));});});},'VerifySmtp':function(_0x27bb4f){const _0x4b2c29=this;return new Promise(function(_0x517cca,_0xd7a8d2){const _0x447bc9=a1158_0x26ae;_0x512584[_0x447bc9('0x10')](_0x27bb4f[_0x447bc9('0xe')])[_0x447bc9('0x1')](function(){const _0x4da422=_0x447bc9;_0x517cca({'code':0xc8,'message':_0x4da422('0x14')});})[_0x447bc9('0x5')](function(_0x3564f0){const _0x871717=_0x447bc9;_0xd7a8d2(_0x4b2c29[_0x871717('0x15')](0x1f4,_0x3564f0));});});},'MailAccounts':function(){return new Promise(function(_0x5482b4){const _0x31f258=a1158_0x26ae,_0x61d670=_[_0x31f258('0x16')](_0x364b00[_0x31f258('0x12')]);for(let _0x2f6b97=0x0;_0x2f6b97<_0x61d670[_0x31f258('0xf')];_0x2f6b97+=0x1){_0x61d670[_0x2f6b97]['Imap']&&_0x61d670[_0x2f6b97][_0x31f258('0x7')]['password']&&delete _0x61d670[_0x2f6b97]['Imap'][_0x31f258('0x3')],_0x61d670[_0x2f6b97][_0x31f258('0xa')]&&_0x61d670[_0x2f6b97][_0x31f258('0xa')][_0x31f258('0x6')]&&delete _0x61d670[_0x2f6b97][_0x31f258('0xa')][_0x31f258('0x6')];}_0x5482b4({'count':_0x61d670[_0x31f258('0xf')],'rows':_0x61d670});});}},_0x5c526a=jayson[_0x3bc2d8('0xc')](_0x205617)['http']();_0x5c526a['on'](_0x3bc2d8('0x15'),function(_0x84c866){const _0x1fe43b=_0x3bc2d8;return logger[_0x1fe43b('0x15')](JSON['stringify'](_0x84c866)),_0x1ee1b6(_0x84c866);}),_0x5c526a[_0x3bc2d8('0x13')](0x232b,'127.0.0.1',function(){const _0x15a852=_0x3bc2d8;return console['log'](_0x15a852('0x0'),0x232b),_0x3defbb(_0x15a852('0x2')+0x232b);});});}; \ No newline at end of file diff --git a/server/services/express/index.js b/server/services/express/index.js index d20180a..ef9bb8a 100644 --- a/server/services/express/index.js +++ b/server/services/express/index.js @@ -1 +1 @@ -const a1159_0x3bdf=['once','polling','../../config/socketio','../../config/express','exports','log','socket.io','listening','sticky-session','adapter','default','http','socket.io-redis','../../config/environment','express','../../globals','port','createServer'];(function(_0x569bda,_0x3bdf8e){const _0x179ff0=function(_0x9c96bf){while(--_0x9c96bf){_0x569bda['push'](_0x569bda['shift']());}};_0x179ff0(++_0x3bdf8e);}(a1159_0x3bdf,0x1af));const a1159_0x179f=function(_0x569bda,_0x3bdf8e){_0x569bda=_0x569bda-0x0;let _0x179ff0=a1159_0x3bdf[_0x569bda];return _0x179ff0;};const _0x390a3e=a1159_0x179f;'use strict';require(_0x390a3e('0x10'));const http=require(_0x390a3e('0xc')),express=require(_0x390a3e('0xf')),sticky=require(_0x390a3e('0x9')),config=require(_0x390a3e('0xe')),{getRedis}=require('../../rediscache'),app=express(),server=http[_0x390a3e('0x0')](app);server['timeout']=0xdbba0;if(sticky['listen'](server,config[_0x390a3e('0x11')])){const socketio=require(_0x390a3e('0x7'))(server,{'transports':['websocket',_0x390a3e('0x2')]});socketio[_0x390a3e('0xa')](require(_0x390a3e('0xd'))({'pubClient':getRedis(),'subClient':getRedis()})),require('../../config/triggers')['default'](),require(_0x390a3e('0x3'))['default'](socketio),require(_0x390a3e('0x4'))[_0x390a3e('0xb')](app),require('../../routes')[_0x390a3e('0xb')](app);}else server[_0x390a3e('0x1')](_0x390a3e('0x8'),function(){const _0x49e163=_0x390a3e;console[_0x49e163('0x6')]('Express\x20server\x20listening\x20on\x20port\x20%d!',config['port']);});module[_0x390a3e('0x5')]=app; \ No newline at end of file +const a1159_0x2514=['default','Express\x20server\x20listening\x20on\x20port\x20%d!','../../config/environment','sticky-session','polling','exports','log','socket.io','../../config/socketio','timeout','socket.io-redis','websocket','../../rediscache','port','../../config/express','../../globals','express','listening'];(function(_0xfd2273,_0x25143e){const _0x102938=function(_0x3bc60e){while(--_0x3bc60e){_0xfd2273['push'](_0xfd2273['shift']());}};_0x102938(++_0x25143e);}(a1159_0x2514,0x66));const a1159_0x1029=function(_0xfd2273,_0x25143e){_0xfd2273=_0xfd2273-0x0;let _0x102938=a1159_0x2514[_0xfd2273];return _0x102938;};const _0x565bc0=a1159_0x1029;'use strict';require(_0x565bc0('0x3'));const http=require('http'),express=require(_0x565bc0('0x4')),sticky=require(_0x565bc0('0x9')),config=require(_0x565bc0('0x8')),{getRedis}=require(_0x565bc0('0x0')),app=express(),server=http['createServer'](app);server[_0x565bc0('0xf')]=0xdbba0;if(sticky['listen'](server,config[_0x565bc0('0x1')])){const socketio=require(_0x565bc0('0xd'))(server,{'transports':[_0x565bc0('0x11'),_0x565bc0('0xa')]});socketio['adapter'](require(_0x565bc0('0x10'))({'pubClient':getRedis(),'subClient':getRedis()})),require('../../config/triggers')[_0x565bc0('0x6')](),require(_0x565bc0('0xe'))['default'](socketio),require(_0x565bc0('0x2'))[_0x565bc0('0x6')](app),require('../../routes')[_0x565bc0('0x6')](app);}else server['once'](_0x565bc0('0x5'),function(){const _0x571b4b=_0x565bc0;console[_0x571b4b('0xc')](_0x571b4b('0x7'),config[_0x571b4b('0x1')]);});module[_0x565bc0('0xb')]=app; \ No newline at end of file diff --git a/server/services/routing/client.js b/server/services/routing/client.js index 84343b0..8abf606 100644 --- a/server/services/routing/client.js +++ b/server/services/routing/client.js @@ -1 +1 @@ -const a1160_0x4c05=['debug','Request','request','routing','error','message','rpc','client','exports','../../config/logger'];(function(_0x54917f,_0x4c05e1){const _0x524f0c=function(_0x3607e7){while(--_0x3607e7){_0x54917f['push'](_0x54917f['shift']());}};_0x524f0c(++_0x4c05e1);}(a1160_0x4c05,0x181));const a1160_0x524f=function(_0x54917f,_0x4c05e1){_0x54917f=_0x54917f-0x0;let _0x524f0c=a1160_0x4c05[_0x54917f];return _0x524f0c;};const _0x59cc11=a1160_0x524f;'use strict';const jayson=require('jayson/promise'),logger=require(_0x59cc11('0x4'))(_0x59cc11('0x8')),client=jayson[_0x59cc11('0x2')]['http']({'port':0x2329});client[_0x59cc11('0x6')]=function(_0x3607e7,_0x1bed4d){return new Promise(function(_0x3784a4,_0x5c9729){const _0xd70d1a=a1160_0x524f;return client[_0xd70d1a('0x7')](_0x3607e7,_0x1bed4d)['then'](function(_0x14b731){const _0x5ed106=_0xd70d1a;return logger[_0x5ed106('0x5')](_0x5ed106('0x1'),_0x5ed106('0x8'),_0x3607e7,_0x1bed4d,_0x14b731),_0x14b731[_0x5ed106('0x9')]?(logger[_0x5ed106('0x9')](_0x5ed106('0x1'),_0x5ed106('0x8'),_0x3607e7,_0x14b731[_0x5ed106('0x9')][_0x5ed106('0x0')],_0x1bed4d),_0x5c9729(_0x14b731[_0x5ed106('0x9')][_0x5ed106('0x0')])):_0x3784a4(_0x14b731['result']);})['catch'](function(_0x3df0af){const _0x2edbb7=_0xd70d1a;return logger[_0x2edbb7('0x9')]('rpc',_0x2edbb7('0x8'),_0x3607e7,_0x3df0af,_0x1bed4d),_0x5c9729(_0x3df0af);});});},module[_0x59cc11('0x3')]=client; \ No newline at end of file +const a1160_0x4a02=['routing','rpc','error','then','client','Request','message','http','exports','jayson/promise','request'];(function(_0x3f3c2c,_0x4a02b0){const _0xd5257b=function(_0xee4152){while(--_0xee4152){_0x3f3c2c['push'](_0x3f3c2c['shift']());}};_0xd5257b(++_0x4a02b0);}(a1160_0x4a02,0x16e));const a1160_0xd525=function(_0x3f3c2c,_0x4a02b0){_0x3f3c2c=_0x3f3c2c-0x0;let _0xd5257b=a1160_0x4a02[_0x3f3c2c];return _0xd5257b;};const _0x1e26a6=a1160_0xd525;'use strict';const jayson=require(_0x1e26a6('0x6')),logger=require('../../config/logger')(_0x1e26a6('0x8')),client=jayson[_0x1e26a6('0x1')][_0x1e26a6('0x4')]({'port':0x2329});client[_0x1e26a6('0x2')]=function(_0xee4152,_0x434c94){return new Promise(function(_0x4d5b72,_0x635d03){const _0x46a498=a1160_0xd525;return client[_0x46a498('0x7')](_0xee4152,_0x434c94)[_0x46a498('0x0')](function(_0x2ac80f){const _0x2c3dd1=_0x46a498;return logger['debug'](_0x2c3dd1('0x9'),_0x2c3dd1('0x8'),_0xee4152,_0x434c94,_0x2ac80f),_0x2ac80f['error']?(logger[_0x2c3dd1('0xa')](_0x2c3dd1('0x9'),_0x2c3dd1('0x8'),_0xee4152,_0x2ac80f['error']['message'],_0x434c94),_0x635d03(_0x2ac80f['error'][_0x2c3dd1('0x3')])):_0x4d5b72(_0x2ac80f['result']);})['catch'](function(_0xe28336){const _0x4145bb=_0x46a498;return logger[_0x4145bb('0xa')](_0x4145bb('0x9'),_0x4145bb('0x8'),_0xee4152,_0xe28336,_0x434c94),_0x635d03(_0xe28336);});});},module[_0x1e26a6('0x5')]=client; \ No newline at end of file diff --git a/server/services/routing/index.js b/server/services/routing/index.js index 135bb78..75e4cec 100644 --- a/server/services/routing/index.js +++ b/server/services/routing/index.js @@ -1 +1 @@ -const a1161_0x5a50=['initMailQueues','getAgents','then','./rpc/interval','initSmsQueues','./rpc/whatsappQueue','./rpc/smsQueue','resolve','getMailQueues','../../globals','getChatQueues','listen','getIntervals','./rpc/user','initIntervals','getFaxQueues','getSmsQueues','./realtime','./rpc/mailQueue','./server','catch','getOpenchannelQueues','initWhatsappQueues','initChatQueues','initOpenchannelQueues'];(function(_0x4e6576,_0x5a50d0){const _0x2c272f=function(_0x35d71c){while(--_0x35d71c){_0x4e6576['push'](_0x4e6576['shift']());}};_0x2c272f(++_0x5a50d0);}(a1161_0x5a50,0x8e));const a1161_0x2c27=function(_0x4e6576,_0x5a50d0){_0x4e6576=_0x4e6576-0x0;let _0x2c272f=a1161_0x5a50[_0x4e6576];return _0x2c272f;};const _0x2adb31=a1161_0x2c27;'use strict';require(_0x2adb31('0x11'));const server=require(_0x2adb31('0x2')),Realtime=require(_0x2adb31('0x0')),user=require(_0x2adb31('0x15')),interval=require(_0x2adb31('0xb')),openchannelQueue=require('./rpc/openchannelQueue'),chatQueue=require('./rpc/chatQueue'),smsQueue=require(_0x2adb31('0xe')),mailQueue=require(_0x2adb31('0x1')),faxQueue=require('./rpc/faxQueue'),whatsappQueue=require(_0x2adb31('0xd')),realtime=new Realtime();function initRealtime(){const _0x252803=_0x2adb31;return Promise[_0x252803('0xf')]()['then'](user[_0x252803('0x9')]())[_0x252803('0xa')](realtime['initAgents']())[_0x252803('0xa')](interval[_0x252803('0x14')]())[_0x252803('0xa')](realtime[_0x252803('0x16')]())['then'](openchannelQueue[_0x252803('0x4')]())[_0x252803('0xa')](realtime[_0x252803('0x7')]())[_0x252803('0xa')](chatQueue[_0x252803('0x12')]())[_0x252803('0xa')](realtime[_0x252803('0x6')]())[_0x252803('0xa')](smsQueue[_0x252803('0x18')]())[_0x252803('0xa')](realtime[_0x252803('0xc')]())[_0x252803('0xa')](mailQueue[_0x252803('0x10')]())[_0x252803('0xa')](realtime[_0x252803('0x8')]())['then'](faxQueue[_0x252803('0x17')]())['then'](realtime['initFaxQueues']())[_0x252803('0xa')](whatsappQueue['getWhatsappQueues']())[_0x252803('0xa')](realtime[_0x252803('0x5')]())[_0x252803('0xa')](function(){return realtime;});}function main(){const _0x400222=_0x2adb31;return server[_0x400222('0x13')](realtime)[_0x400222('0xa')](function(){return initRealtime();})[_0x400222('0xa')](function(){return setInterval(initRealtime,0x1388);})[_0x400222('0x3')](function(_0x35d71c){console['log'](_0x35d71c);});}main(); \ No newline at end of file +const a1161_0x1763=['./rpc/interval','getIntervals','listen','initChatQueues','then','getWhatsappQueues','./server','getSmsQueues','initMailQueues','./rpc/whatsappQueue','initOpenchannelQueues','catch','getMailQueues','log','./rpc/chatQueue','./rpc/openchannelQueue','initSmsQueues','getAgents','getFaxQueues','initFaxQueues','./rpc/mailQueue','../../globals'];(function(_0x2a9c17,_0x176385){const _0x11b1d1=function(_0x5d422f){while(--_0x5d422f){_0x2a9c17['push'](_0x2a9c17['shift']());}};_0x11b1d1(++_0x176385);}(a1161_0x1763,0x1b0));const a1161_0x11b1=function(_0x2a9c17,_0x176385){_0x2a9c17=_0x2a9c17-0x0;let _0x11b1d1=a1161_0x1763[_0x2a9c17];return _0x11b1d1;};const _0x3519f5=a1161_0x11b1;'use strict';require(_0x3519f5('0x7'));const server=require(_0x3519f5('0xe')),Realtime=require('./realtime'),user=require('./rpc/user'),interval=require(_0x3519f5('0x8')),openchannelQueue=require(_0x3519f5('0x1')),chatQueue=require(_0x3519f5('0x0')),smsQueue=require('./rpc/smsQueue'),mailQueue=require(_0x3519f5('0x6')),faxQueue=require('./rpc/faxQueue'),whatsappQueue=require(_0x3519f5('0x11')),realtime=new Realtime();function initRealtime(){const _0x1e785f=_0x3519f5;return Promise['resolve']()[_0x1e785f('0xc')](user[_0x1e785f('0x3')]())[_0x1e785f('0xc')](realtime['initAgents']())[_0x1e785f('0xc')](interval[_0x1e785f('0x9')]())[_0x1e785f('0xc')](realtime['initIntervals']())[_0x1e785f('0xc')](openchannelQueue['getOpenchannelQueues']())['then'](realtime[_0x1e785f('0x12')]())[_0x1e785f('0xc')](chatQueue['getChatQueues']())[_0x1e785f('0xc')](realtime[_0x1e785f('0xb')]())['then'](smsQueue[_0x1e785f('0xf')]())[_0x1e785f('0xc')](realtime[_0x1e785f('0x2')]())[_0x1e785f('0xc')](mailQueue[_0x1e785f('0x14')]())[_0x1e785f('0xc')](realtime[_0x1e785f('0x10')]())[_0x1e785f('0xc')](faxQueue[_0x1e785f('0x4')]())[_0x1e785f('0xc')](realtime[_0x1e785f('0x5')]())[_0x1e785f('0xc')](whatsappQueue[_0x1e785f('0xd')]())[_0x1e785f('0xc')](realtime['initWhatsappQueues']())[_0x1e785f('0xc')](function(){return realtime;});}function main(){const _0x1e3cd6=_0x3519f5;return server[_0x1e3cd6('0xa')](realtime)['then'](function(){return initRealtime();})[_0x1e3cd6('0xc')](function(){return setInterval(initRealtime,0x1388);})[_0x1e3cd6('0x13')](function(_0x5d422f){const _0x5e2360=_0x1e3cd6;console[_0x5e2360('0x15')](_0x5d422f);});}main(); \ No newline at end of file diff --git a/server/services/routing/lib/rule-engine.js b/server/services/routing/lib/rule-engine.js index 56df227..044b425 100644 --- a/server/services/routing/lib/rule-engine.js +++ b/server/services/routing/lib/rule-engine.js @@ -1 +1 @@ -const a1162_0x3182=['inherits','length','concat','isString','condition','object','priority','matches','prioritize','filter','restart','orderBy','turn','sync','name','index_','isNil','isArray','ignoreFactChanges','init','call','lodash','toString','rules','asc','execute','push','ruleRef','isEqual','prototype','matchPath','map','consequence','noop','clone','events','register','activeRules','nextTick','findRules','parse','fromJSON','util'];(function(_0x17b8f8,_0x3182c9){const _0x2e6adc=function(_0x18a250){while(--_0x18a250){_0x17b8f8['push'](_0x17b8f8['shift']());}};_0x2e6adc(++_0x3182c9);}(a1162_0x3182,0x1e6));const a1162_0x2e6a=function(_0x17b8f8,_0x3182c9){_0x17b8f8=_0x17b8f8-0x0;let _0x2e6adc=a1162_0x3182[_0x17b8f8];return _0x2e6adc;};const _0x2a5690=a1162_0x2e6a;'use strict';const _=require(_0x2a5690('0x8')),util=require(_0x2a5690('0x1d')),EventEmitter=require(_0x2a5690('0x16'))['EventEmitter'];function RuleEngine(_0x18a250,_0x32342b){const _0x51c523=_0x2a5690;return this[_0x51c523('0x6')](),!_['isNil'](_0x18a250)&&this['register'](_0x18a250),_0x32342b&&(this[_0x51c523('0x5')]=_0x32342b[_0x51c523('0x5')]),this;}util[_0x2a5690('0x1e')](RuleEngine,EventEmitter),RuleEngine[_0x2a5690('0x10')][_0x2a5690('0x6')]=function(){const _0x5c1df0=_0x2a5690;this[_0x5c1df0('0xa')]=[],this[_0x5c1df0('0x18')]=[];},RuleEngine[_0x2a5690('0x10')][_0x2a5690('0x17')]=function(_0x31809e){const _0x3a4ae6=_0x2a5690;if(Array[_0x3a4ae6('0x4')](_0x31809e))this[_0x3a4ae6('0xa')]=this[_0x3a4ae6('0xa')][_0x3a4ae6('0x20')](_0x31809e);else _0x31809e!==null&&_['isObject'](_0x31809e)&&this[_0x3a4ae6('0xa')][_0x3a4ae6('0xd')](_0x31809e);this[_0x3a4ae6('0x0')]();},RuleEngine[_0x2a5690('0x10')]['sync']=function(){const _0x3430c9=_0x2a5690;this[_0x3430c9('0x18')]=this[_0x3430c9('0xa')]['filter'](function(_0x1c8449){const _0x23be9e=_0x3430c9;_[_0x23be9e('0x3')](_0x1c8449['on'])&&(_0x1c8449['on']=!![]);if(_0x1c8449['on']===!![])return _0x1c8449;}),this['activeRules']=_[_0x3430c9('0x29')](this[_0x3430c9('0x18')],['p'],[_0x3430c9('0xb')]);},RuleEngine[_0x2a5690('0x10')][_0x2a5690('0xc')]=function(_0x3af918,_0x3f405b){const _0x47e61f=_0x2a5690;let _0x2f83b6=![];_0x3af918['result']=!![];const _0x19ee3e=_[_0x47e61f('0x15')](_0x3af918);let _0x279612=_[_0x47e61f('0x15')](_0x3af918);const _0x51223f=this['activeRules'],_0x126e7e=[],_0x1f9faa=this[_0x47e61f('0x5')];(function _0x34dc0b(_0x12df57){const _0x4b070b=_0x47e61f,_0x446892={'rules':function(){return _0x51223f;},'rule':function(){return _0x51223f[_0x12df57];},'when':function(_0x281f15){const _0x493654=a1162_0x2e6a;if(_0x281f15){const _0x462847=_0x51223f[_0x12df57][_0x493654('0x13')];_0x462847[_0x493654('0xe')]=_0x51223f[_0x12df57]['id']||_0x51223f[_0x12df57][_0x493654('0x1')]||_0x493654('0x2')+_0x12df57,process[_0x493654('0x19')](function(){const _0x400492=_0x493654;_0x126e7e[_0x400492('0xd')](_0x462847[_0x400492('0xe')]),_0x462847[_0x400492('0x7')](_0x19ee3e,_0x446892);});}else process[_0x493654('0x19')](function(){_0x446892['next']();});},'restart':function(){return _0x34dc0b(0x0);},'stop':function(){return _0x2f83b6=!![],_0x34dc0b(0x0);},'next':function(_0x57d5a1){const _0x45c007=a1162_0x2e6a;!_0x1f9faa&&!_[_0x45c007('0xf')](_0x279612,_0x19ee3e)?(_0x279612=_[_0x45c007('0x15')](_0x19ee3e),process[_0x45c007('0x19')](function(){const _0x36697a=_0x45c007;_0x446892[_0x36697a('0x28')]();})):process[_0x45c007('0x19')](function(){const _0x2b517c=_0x45c007;return _[_0x2b517c('0x3')](_0x57d5a1)?_0x34dc0b(_0x12df57+0x1):_0x34dc0b(_0x57d5a1);});}};if(_0x12df57<_0x51223f[_0x4b070b('0x1f')]&&_0x2f83b6===![]){const _0x2c5fcf=_0x51223f[_0x12df57][_0x4b070b('0x22')];_0x2c5fcf[_0x4b070b('0x7')](_0x19ee3e,_0x446892);}else process[_0x4b070b('0x19')](function(){const _0x4e2401=_0x4b070b;return _0x19ee3e[_0x4e2401('0x11')]=_0x126e7e,_0x3f405b?_0x3f405b(_0x19ee3e):_[_0x4e2401('0x14')]();});}(0x0));},RuleEngine[_0x2a5690('0x10')]['findRules']=function(_0x4dfeef){const _0x1d2488=_0x2a5690;if(_[_0x1d2488('0x3')](_0x4dfeef))return this[_0x1d2488('0xa')];else{const _0x190968=_[_0x1d2488('0x25')](_0x4dfeef);return _[_0x1d2488('0x27')](this[_0x1d2488('0xa')],_0x190968);}},RuleEngine[_0x2a5690('0x10')][_0x2a5690('0x2a')]=function(_0x4a9147,_0x9057c3){const _0x2da724=_0x2a5690,_0x1701f1=_0x4a9147==='on'||_0x4a9147==='ON'?!![]:![],_0x3c2eaa=this['findRules'](_0x9057c3);for(let _0xece7c5=0x0,_0xd6df8f=_0x3c2eaa[_0x2da724('0x1f')];_0xece7c5<_0xd6df8f;_0xece7c5+=0x1){_0x3c2eaa[_0xece7c5]['on']=_0x1701f1;}this[_0x2da724('0x0')]();},RuleEngine['prototype'][_0x2a5690('0x26')]=function(_0x486912,_0x4df151){const _0x5a09f5=_0x2a5690;_0x486912=parseInt(_0x486912,0xa);const _0x284a38=this[_0x5a09f5('0x1a')](_0x4df151);for(let _0x49b61b=0x0,_0x4d58bb=_0x284a38[_0x5a09f5('0x1f')];_0x49b61b<_0x4d58bb;_0x49b61b+=0x1){_0x284a38[_0x49b61b][_0x5a09f5('0x24')]=_0x486912;}this[_0x5a09f5('0x0')]();},RuleEngine[_0x2a5690('0x10')]['toJSON']=function(){const _0x1f9cb3=_0x2a5690;let _0x5bfa3e=this['rules'];if(_0x5bfa3e instanceof Array)_0x5bfa3e=_0x5bfa3e[_0x1f9cb3('0x12')](function(_0x24a057){const _0x2d2e20=_0x1f9cb3;return _0x24a057[_0x2d2e20('0x22')]=_0x24a057['condition'][_0x2d2e20('0x9')](),_0x24a057[_0x2d2e20('0x13')]=_0x24a057[_0x2d2e20('0x13')][_0x2d2e20('0x9')](),_0x24a057;});else!_['isNil'](_0x5bfa3e)&&(_0x5bfa3e[_0x1f9cb3('0x22')]=_0x5bfa3e[_0x1f9cb3('0x22')][_0x1f9cb3('0x9')](),_0x5bfa3e[_0x1f9cb3('0x13')]=_0x5bfa3e[_0x1f9cb3('0x13')][_0x1f9cb3('0x9')]());return _0x5bfa3e;},RuleEngine['prototype'][_0x2a5690('0x1c')]=function(_0x5b2286){const _0x27878a=_0x2a5690;this[_0x27878a('0x6')]();_[_0x27878a('0x21')](_0x5b2286)&&(_0x5b2286=JSON[_0x27878a('0x1b')](_0x5b2286));if(_0x5b2286 instanceof Array)_0x5b2286=_0x5b2286['map'](function(_0x248485){const _0x3fdab0=_0x27878a;return _0x248485[_0x3fdab0('0x22')]=eval('('+_0x248485[_0x3fdab0('0x22')]+')'),_0x248485[_0x3fdab0('0x13')]=eval('('+_0x248485['consequence']+')'),_0x248485;});else _0x5b2286!==null&&typeof _0x5b2286==_0x27878a('0x23')&&(_0x5b2286[_0x27878a('0x22')]=eval('('+_0x5b2286[_0x27878a('0x22')]+')'),_0x5b2286[_0x27878a('0x13')]=eval('('+_0x5b2286[_0x27878a('0x13')]+')'));this[_0x27878a('0x17')](_0x5b2286);},module['exports']=RuleEngine; \ No newline at end of file +const a1162_0x13f6=['next','index_','isObject','inherits','toString','ignoreFactChanges','events','condition','push','util','exports','init','consequence','restart','activeRules','fromJSON','lodash','isArray','isNil','findRules','result','prioritize','sync','clone','name','prototype','isString','register','length','concat','turn','object','map','rules','parse','priority','ruleRef','nextTick','filter','call'];(function(_0x1da441,_0x13f67b){const _0x2edc4f=function(_0x154429){while(--_0x154429){_0x1da441['push'](_0x1da441['shift']());}};_0x2edc4f(++_0x13f67b);}(a1162_0x13f6,0xa9));const a1162_0x2edc=function(_0x1da441,_0x13f67b){_0x1da441=_0x1da441-0x0;let _0x2edc4f=a1162_0x13f6[_0x1da441];return _0x2edc4f;};const _0x1f9378=a1162_0x2edc;'use strict';const _=require(_0x1f9378('0x7')),util=require(_0x1f9378('0x0')),EventEmitter=require(_0x1f9378('0x25'))['EventEmitter'];function RuleEngine(_0x154429,_0x9b3332){const _0x56e698=_0x1f9378;return this[_0x56e698('0x2')](),!_[_0x56e698('0x9')](_0x154429)&&this[_0x56e698('0x12')](_0x154429),_0x9b3332&&(this[_0x56e698('0x24')]=_0x9b3332[_0x56e698('0x24')]),this;}util[_0x1f9378('0x22')](RuleEngine,EventEmitter),RuleEngine[_0x1f9378('0x10')]['init']=function(){const _0x2046fe=_0x1f9378;this[_0x2046fe('0x18')]=[],this[_0x2046fe('0x5')]=[];},RuleEngine[_0x1f9378('0x10')][_0x1f9378('0x12')]=function(_0x4c77c7){const _0x4c8d60=_0x1f9378;if(Array[_0x4c8d60('0x8')](_0x4c77c7))this[_0x4c8d60('0x18')]=this['rules'][_0x4c8d60('0x14')](_0x4c77c7);else _0x4c77c7!==null&&_[_0x4c8d60('0x21')](_0x4c77c7)&&this[_0x4c8d60('0x18')][_0x4c8d60('0x27')](_0x4c77c7);this[_0x4c8d60('0xd')]();},RuleEngine['prototype'][_0x1f9378('0xd')]=function(){const _0x3f4de0=_0x1f9378;this[_0x3f4de0('0x5')]=this['rules']['filter'](function(_0x438913){_['isNil'](_0x438913['on'])&&(_0x438913['on']=!![]);if(_0x438913['on']===!![])return _0x438913;}),this['activeRules']=_['orderBy'](this[_0x3f4de0('0x5')],['p'],['asc']);},RuleEngine['prototype']['execute']=function(_0x2bcf11,_0x3690ae){const _0x4e6aac=_0x1f9378;let _0x5775d8=![];_0x2bcf11[_0x4e6aac('0xb')]=!![];const _0x458049=_[_0x4e6aac('0xe')](_0x2bcf11);let _0x21bb3b=_['clone'](_0x2bcf11);const _0x5ea29e=this[_0x4e6aac('0x5')],_0x268dfe=[],_0x7153d=this[_0x4e6aac('0x24')];(function _0x3749e8(_0x117ad7){const _0x355d81=_0x4e6aac,_0x5a10da={'rules':function(){return _0x5ea29e;},'rule':function(){return _0x5ea29e[_0x117ad7];},'when':function(_0x3fd098){const _0x40971c=a1162_0x2edc;if(_0x3fd098){const _0x2341be=_0x5ea29e[_0x117ad7][_0x40971c('0x3')];_0x2341be[_0x40971c('0x1b')]=_0x5ea29e[_0x117ad7]['id']||_0x5ea29e[_0x117ad7][_0x40971c('0xf')]||_0x40971c('0x20')+_0x117ad7,process[_0x40971c('0x1c')](function(){const _0x222ec3=_0x40971c;_0x268dfe[_0x222ec3('0x27')](_0x2341be[_0x222ec3('0x1b')]),_0x2341be[_0x222ec3('0x1e')](_0x458049,_0x5a10da);});}else process[_0x40971c('0x1c')](function(){const _0x2a34f2=_0x40971c;_0x5a10da[_0x2a34f2('0x1f')]();});},'restart':function(){return _0x3749e8(0x0);},'stop':function(){return _0x5775d8=!![],_0x3749e8(0x0);},'next':function(_0xa5346b){const _0x21eb03=a1162_0x2edc;!_0x7153d&&!_['isEqual'](_0x21bb3b,_0x458049)?(_0x21bb3b=_['clone'](_0x458049),process['nextTick'](function(){const _0x542041=a1162_0x2edc;_0x5a10da[_0x542041('0x4')]();})):process[_0x21eb03('0x1c')](function(){return _['isNil'](_0xa5346b)?_0x3749e8(_0x117ad7+0x1):_0x3749e8(_0xa5346b);});}};if(_0x117ad7<_0x5ea29e['length']&&_0x5775d8===![]){const _0x51d097=_0x5ea29e[_0x117ad7][_0x355d81('0x26')];_0x51d097[_0x355d81('0x1e')](_0x458049,_0x5a10da);}else process[_0x355d81('0x1c')](function(){return _0x458049['matchPath']=_0x268dfe,_0x3690ae?_0x3690ae(_0x458049):_['noop']();});}(0x0));},RuleEngine[_0x1f9378('0x10')][_0x1f9378('0xa')]=function(_0x4aa756){const _0x5c1580=_0x1f9378;if(_['isNil'](_0x4aa756))return this['rules'];else{const _0x54c028=_['matches'](_0x4aa756);return _[_0x5c1580('0x1d')](this[_0x5c1580('0x18')],_0x54c028);}},RuleEngine['prototype'][_0x1f9378('0x15')]=function(_0x59b3e2,_0x492d49){const _0x580daa=_0x1f9378,_0x4d183f=_0x59b3e2==='on'||_0x59b3e2==='ON'?!![]:![],_0x1dde53=this[_0x580daa('0xa')](_0x492d49);for(let _0x527230=0x0,_0x3b5ea6=_0x1dde53[_0x580daa('0x13')];_0x527230<_0x3b5ea6;_0x527230+=0x1){_0x1dde53[_0x527230]['on']=_0x4d183f;}this[_0x580daa('0xd')]();},RuleEngine[_0x1f9378('0x10')][_0x1f9378('0xc')]=function(_0x35c720,_0x4152a0){const _0x53d4ee=_0x1f9378;_0x35c720=parseInt(_0x35c720,0xa);const _0x1a77db=this[_0x53d4ee('0xa')](_0x4152a0);for(let _0x473def=0x0,_0x15a86b=_0x1a77db[_0x53d4ee('0x13')];_0x473def<_0x15a86b;_0x473def+=0x1){_0x1a77db[_0x473def][_0x53d4ee('0x1a')]=_0x35c720;}this[_0x53d4ee('0xd')]();},RuleEngine[_0x1f9378('0x10')]['toJSON']=function(){const _0x93fe3c=_0x1f9378;let _0x1dc362=this[_0x93fe3c('0x18')];if(_0x1dc362 instanceof Array)_0x1dc362=_0x1dc362['map'](function(_0x21f98c){const _0x1af43b=_0x93fe3c;return _0x21f98c[_0x1af43b('0x26')]=_0x21f98c[_0x1af43b('0x26')][_0x1af43b('0x23')](),_0x21f98c[_0x1af43b('0x3')]=_0x21f98c[_0x1af43b('0x3')][_0x1af43b('0x23')](),_0x21f98c;});else!_[_0x93fe3c('0x9')](_0x1dc362)&&(_0x1dc362[_0x93fe3c('0x26')]=_0x1dc362[_0x93fe3c('0x26')][_0x93fe3c('0x23')](),_0x1dc362[_0x93fe3c('0x3')]=_0x1dc362[_0x93fe3c('0x3')][_0x93fe3c('0x23')]());return _0x1dc362;},RuleEngine['prototype'][_0x1f9378('0x6')]=function(_0xf2f82f){const _0x58593f=_0x1f9378;this[_0x58593f('0x2')]();_[_0x58593f('0x11')](_0xf2f82f)&&(_0xf2f82f=JSON[_0x58593f('0x19')](_0xf2f82f));if(_0xf2f82f instanceof Array)_0xf2f82f=_0xf2f82f[_0x58593f('0x17')](function(_0x1fdcb9){const _0x47c8f2=_0x58593f;return _0x1fdcb9[_0x47c8f2('0x26')]=eval('('+_0x1fdcb9['condition']+')'),_0x1fdcb9[_0x47c8f2('0x3')]=eval('('+_0x1fdcb9[_0x47c8f2('0x3')]+')'),_0x1fdcb9;});else _0xf2f82f!==null&&typeof _0xf2f82f==_0x58593f('0x16')&&(_0xf2f82f['condition']=eval('('+_0xf2f82f[_0x58593f('0x26')]+')'),_0xf2f82f[_0x58593f('0x3')]=eval('('+_0xf2f82f[_0x58593f('0x3')]+')'));this['register'](_0xf2f82f);},module[_0x1f9378('0x1')]=RuleEngine; \ No newline at end of file diff --git a/server/services/routing/mailRpc/index.js b/server/services/routing/mailRpc/index.js index 6a2af76..288ef42 100644 --- a/server/services/routing/mailRpc/index.js +++ b/server/services/routing/mailRpc/index.js @@ -1 +1 @@ -const a1163_0x4ac1=['client','jayson/promise','catch','then','result','SendMail','sendMailMessage','error'];(function(_0x34951c,_0x4ac157){const _0x566f52=function(_0x318002){while(--_0x318002){_0x34951c['push'](_0x34951c['shift']());}};_0x566f52(++_0x4ac157);}(a1163_0x4ac1,0x1e4));const a1163_0x566f=function(_0x34951c,_0x4ac157){_0x34951c=_0x34951c-0x0;let _0x566f52=a1163_0x4ac1[_0x34951c];return _0x566f52;};const _0x110479=a1163_0x566f;'use strict';const jayson=require(_0x110479('0x5')),client=jayson[_0x110479('0x4')]['http']({'port':0x232b});function request(_0x318002,_0x504b67){return new Promise(function(_0x4044d9,_0x8de04){const _0x371f4d=a1163_0x566f;return client['request'](_0x318002,_0x504b67)[_0x371f4d('0x7')](function(_0x340da8){const _0x136278=_0x371f4d;return _0x340da8[_0x136278('0x3')]?_0x8de04(_0x340da8['error']['message']):_0x4044d9(_0x340da8[_0x136278('0x0')]);})[_0x371f4d('0x6')](function(_0x2124e1){return _0x8de04(_0x2124e1);});});}exports[_0x110479('0x2')]=function(_0xb7a799,_0x216d60){const _0x1f16db=_0x110479;return request(_0x1f16db('0x1'),{'account':_0xb7a799,'message':_0x216d60});}; \ No newline at end of file +const a1163_0x10c1=['client','jayson/promise','message','request','then','result','error'];(function(_0x5cb473,_0x10c1a2){const _0x5717d9=function(_0xfc9651){while(--_0xfc9651){_0x5cb473['push'](_0x5cb473['shift']());}};_0x5717d9(++_0x10c1a2);}(a1163_0x10c1,0xcd));const a1163_0x5717=function(_0x5cb473,_0x10c1a2){_0x5cb473=_0x5cb473-0x0;let _0x5717d9=a1163_0x10c1[_0x5cb473];return _0x5717d9;};const _0x1da5e7=a1163_0x5717;'use strict';const jayson=require(_0x1da5e7('0x6')),client=jayson[_0x1da5e7('0x5')]['http']({'port':0x232b});function request(_0xfc9651,_0x16c631){return new Promise(function(_0x27b9a4,_0x136fe5){const _0x528bc0=a1163_0x5717;return client[_0x528bc0('0x1')](_0xfc9651,_0x16c631)[_0x528bc0('0x2')](function(_0x45c81d){const _0xa95483=_0x528bc0;return _0x45c81d[_0xa95483('0x4')]?_0x136fe5(_0x45c81d[_0xa95483('0x4')][_0xa95483('0x0')]):_0x27b9a4(_0x45c81d[_0xa95483('0x3')]);})['catch'](function(_0x435e84){return _0x136fe5(_0x435e84);});});}exports['sendMailMessage']=function(_0x169cec,_0xe0a7e6){return request('SendMail',{'account':_0x169cec,'message':_0xe0a7e6});}; \ No newline at end of file diff --git a/server/services/routing/model/agent.js b/server/services/routing/model/agent.js index b4ae6f2..c28e45e 100644 --- a/server/services/routing/model/agent.js +++ b/server/services/routing/model/agent.js @@ -1 +1 @@ -const a1164_0xdc8b=['mailCapacity','smsStatus','prototype','mailPause','chatStatus','faxStatus','emit','chatStatusTime','user:save','openchannelPause','voicePause','StatusTime','whatsappCapacity','idle','sms','chatPause','faxCurrentCapacity','maxcapacity','smsPause','format','chat','whatsappStatusTime','CurrentCapacity','toNumber','busy','moment','smsCurrentCapacity','smsStatusTime','mailStatusTime','openchannelCurrentCapacity','exports','stringify','chatCurrentCapacity','openchannelCapacity','name','openchannelStatus','fax','Capacity','lodash','faxPause','mailCurrentCapacity','unknown','smsCapacity','online','getChannelStatus','md5','whatsapp','whatsappStatus','updateRealtime','busyQueue','Status','faxCapacity','chatCapacity','../../../rediscache','openchannelStatusTime'];(function(_0x56a77d,_0xdc8b95){const _0x5e13fb=function(_0x204cdb){while(--_0x204cdb){_0x56a77d['push'](_0x56a77d['shift']());}};_0x5e13fb(++_0xdc8b95);}(a1164_0xdc8b,0xb9));const a1164_0x5e13=function(_0x56a77d,_0xdc8b95){_0x56a77d=_0x56a77d-0x0;let _0x5e13fb=a1164_0xdc8b[_0x56a77d];return _0x5e13fb;};const _0x2900de=a1164_0x5e13;'use strict';const _=require(_0x2900de('0x12')),moment=require(_0x2900de('0x5')),md5=require('md5'),{getSocket}=require(_0x2900de('0x21')),io=getSocket();function Agent(_0x204cdb){const _0x3eccb2=_0x2900de;this['id']=_0x204cdb['id']||0x0,this[_0x3eccb2('0xe')]=_0x204cdb['name']||'',this['online']=_0x204cdb['online']||!![],this[_0x3eccb2('0x2d')]=_0x204cdb[_0x3eccb2('0x2d')]||![],this['chatPause']=_0x204cdb[_0x3eccb2('0x32')]||![],this[_0x3eccb2('0x26')]=_0x204cdb[_0x3eccb2('0x26')]||![],this[_0x3eccb2('0x13')]=_0x204cdb['faxPause']||![],this[_0x3eccb2('0x35')]=_0x204cdb[_0x3eccb2('0x35')]||![],this[_0x3eccb2('0x2c')]=_0x204cdb[_0x3eccb2('0x2c')]||![],this[_0x3eccb2('0x27')]=_0x3eccb2('0x15'),this[_0x3eccb2('0x2a')]=0x0,this[_0x3eccb2('0x20')]=_0x204cdb[_0x3eccb2('0x20')]||0x0,this[_0x3eccb2('0xc')]=0x0,this['mailStatus']=_0x3eccb2('0x15'),this[_0x3eccb2('0x8')]=0x0,this[_0x3eccb2('0x23')]=_0x204cdb['mailCapacity']||0x0,this['mailCurrentCapacity']=0x0,this[_0x3eccb2('0x28')]=_0x3eccb2('0x15'),this['faxStatusTime']=0x0,this['faxCapacity']=_0x204cdb[_0x3eccb2('0x1f')]||0x0,this[_0x3eccb2('0x33')]=0x0,this[_0x3eccb2('0x24')]='unknown',this[_0x3eccb2('0x7')]=0x0,this['smsCapacity']=_0x204cdb[_0x3eccb2('0x16')]||0x0,this[_0x3eccb2('0x6')]=0x0,this[_0x3eccb2('0x1b')]='unknown',this[_0x3eccb2('0x1')]=0x0,this['whatsappCapacity']=_0x204cdb['whatsappCapacity']||0x0,this['whatsappCurrentCapacity']=0x0,this[_0x3eccb2('0xf')]=_0x3eccb2('0x15'),this[_0x3eccb2('0x22')]=0x0,this['openchannelCapacity']=_0x204cdb[_0x3eccb2('0xd')]||0x0,this['openchannelCurrentCapacity']=0x0,this['busy']=![],this[_0x3eccb2('0x1d')]=undefined,this[_0x3eccb2('0x19')]='',this['updateRealtime']();}Agent[_0x2900de('0x25')][_0x2900de('0x18')]=function(_0x1c6f56){const _0x104165=_0x2900de;return this[_0x1c6f56+_0x104165('0x2')]>0x0?this[_0x1c6f56+_0x104165('0x11')]>0x0&&this[_0x1c6f56+_0x104165('0x2')]>=this[_0x1c6f56+_0x104165('0x11')]?_0x104165('0x34'):'working':_0x104165('0x30');},Agent[_0x2900de('0x25')][_0x2900de('0x1c')]=function(){const _0x2fc904=_0x2900de,_0x15fda8=['mail',_0x2fc904('0x0'),'openchannel',_0x2fc904('0x10'),_0x2fc904('0x31'),_0x2fc904('0x1a')];for(let _0x48e197=0x0;_0x48e197<_0x15fda8['length'];_0x48e197+=0x1){const _0x3a8e4b=this['getChannelStatus'](_0x15fda8[_0x48e197]);this[_0x15fda8[_0x48e197]+_0x2fc904('0x1e')]!==_0x3a8e4b&&(this[_0x15fda8[_0x48e197]+_0x2fc904('0x2e')]=_[_0x2fc904('0x3')](moment()[_0x2fc904('0x36')]('x'))),this[_0x15fda8[_0x48e197]+_0x2fc904('0x1e')]=_0x3a8e4b;}const _0x456ed7={'id':this['id'],'name':this[_0x2fc904('0xe')],'online':this[_0x2fc904('0x17')],'voicePause':this[_0x2fc904('0x2d')],'chatPause':this[_0x2fc904('0x32')],'mailPause':this[_0x2fc904('0x26')],'smsPause':this[_0x2fc904('0x35')],'faxPause':this[_0x2fc904('0x13')],'openchannelPause':this['openchannelPause'],'chatStatus':this[_0x2fc904('0x27')],'chatStatusTime':this[_0x2fc904('0x2a')],'chatCapacity':this[_0x2fc904('0x20')],'chatCurrentCapacity':this[_0x2fc904('0xc')],'mailStatus':this['mailStatus'],'mailStatusTime':this[_0x2fc904('0x8')],'mailCapacity':this[_0x2fc904('0x23')],'mailCurrentCapacity':this[_0x2fc904('0x14')],'faxStatus':this['faxStatus'],'faxStatusTime':this['faxStatusTime'],'faxCapacity':this[_0x2fc904('0x1f')],'faxCurrentCapacity':this[_0x2fc904('0x33')],'smsStatus':this[_0x2fc904('0x24')],'smsStatusTime':this['smsStatusTime'],'smsCapacity':this[_0x2fc904('0x16')],'smsCurrentCapacity':this[_0x2fc904('0x6')],'whatsappStatus':this[_0x2fc904('0x1b')],'whatsappStatusTime':this[_0x2fc904('0x1')],'whatsappCapacity':this[_0x2fc904('0x2f')],'whatsappCurrentCapacity':this['whatsappCurrentCapacity'],'openchannelStatus':this[_0x2fc904('0xf')],'openchannelStatusTime':this[_0x2fc904('0x22')],'openchannelCapacity':this[_0x2fc904('0xd')],'openchannelCurrentCapacity':this[_0x2fc904('0x9')],'busy':this[_0x2fc904('0x4')],'busyQueue':this[_0x2fc904('0x1d')]},_0x1c35d8=md5(JSON[_0x2fc904('0xb')](_0x456ed7));this[_0x2fc904('0x19')]!==_0x1c35d8&&(this['md5']=_0x1c35d8,io[_0x2fc904('0x29')](_0x2fc904('0x2b'),_0x456ed7));},module[_0x2900de('0xa')]=Agent; \ No newline at end of file +const a1164_0xf18b=['whatsappCurrentCapacity','faxStatusTime','CurrentCapacity','openchannelCapacity','md5','chat','openchannelStatus','mailCurrentCapacity','working','openchannelCurrentCapacity','../../../rediscache','emit','stringify','whatsapp','updateRealtime','format','chatStatusTime','unknown','busyQueue','faxCapacity','sms','Status','faxPause','smsCurrentCapacity','chatCapacity','voicePause','fax','openchannelPause','mailCapacity','whatsappStatusTime','idle','faxCurrentCapacity','exports','getChannelStatus','name','StatusTime','toNumber','chatPause','smsPause','prototype','mailStatusTime','smsStatusTime','Capacity','mailPause','chatStatus','online','openchannelStatusTime','whatsappCapacity','user:save','moment','smsCapacity','mail','smsStatus','whatsappStatus'];(function(_0x5bb6d1,_0xf18b95){const _0xb03fa2=function(_0x23b106){while(--_0x23b106){_0x5bb6d1['push'](_0x5bb6d1['shift']());}};_0xb03fa2(++_0xf18b95);}(a1164_0xf18b,0xff));const a1164_0xb03f=function(_0x5bb6d1,_0xf18b95){_0x5bb6d1=_0x5bb6d1-0x0;let _0xb03fa2=a1164_0xf18b[_0x5bb6d1];return _0xb03fa2;};const _0x484fc7=a1164_0xb03f;'use strict';const _=require('lodash'),moment=require(_0x484fc7('0xa')),md5=require(_0x484fc7('0x13')),{getSocket}=require(_0x484fc7('0x19')),io=getSocket();function Agent(_0x23b106){const _0x8da97b=_0x484fc7;this['id']=_0x23b106['id']||0x0,this['name']=_0x23b106[_0x8da97b('0x31')]||'',this[_0x8da97b('0x6')]=_0x23b106[_0x8da97b('0x6')]||!![],this['voicePause']=_0x23b106['voicePause']||![],this[_0x8da97b('0x34')]=_0x23b106[_0x8da97b('0x34')]||![],this[_0x8da97b('0x4')]=_0x23b106[_0x8da97b('0x4')]||![],this[_0x8da97b('0x25')]=_0x23b106[_0x8da97b('0x25')]||![],this[_0x8da97b('0x35')]=_0x23b106['smsPause']||![],this[_0x8da97b('0x2a')]=_0x23b106['openchannelPause']||![],this[_0x8da97b('0x5')]='unknown',this[_0x8da97b('0x1f')]=0x0,this[_0x8da97b('0x27')]=_0x23b106[_0x8da97b('0x27')]||0x0,this['chatCurrentCapacity']=0x0,this['mailStatus']=_0x8da97b('0x20'),this[_0x8da97b('0x1')]=0x0,this['mailCapacity']=_0x23b106['mailCapacity']||0x0,this[_0x8da97b('0x16')]=0x0,this['faxStatus']=_0x8da97b('0x20'),this[_0x8da97b('0x10')]=0x0,this[_0x8da97b('0x22')]=_0x23b106['faxCapacity']||0x0,this[_0x8da97b('0x2e')]=0x0,this['smsStatus']='unknown',this[_0x8da97b('0x2')]=0x0,this[_0x8da97b('0xb')]=_0x23b106['smsCapacity']||0x0,this['smsCurrentCapacity']=0x0,this[_0x8da97b('0xe')]=_0x8da97b('0x20'),this['whatsappStatusTime']=0x0,this[_0x8da97b('0x8')]=_0x23b106[_0x8da97b('0x8')]||0x0,this[_0x8da97b('0xf')]=0x0,this[_0x8da97b('0x15')]=_0x8da97b('0x20'),this[_0x8da97b('0x7')]=0x0,this[_0x8da97b('0x12')]=_0x23b106[_0x8da97b('0x12')]||0x0,this[_0x8da97b('0x18')]=0x0,this['busy']=![],this['busyQueue']=undefined,this[_0x8da97b('0x13')]='',this[_0x8da97b('0x1d')]();}Agent[_0x484fc7('0x0')]['getChannelStatus']=function(_0x167ef8){const _0x5f2fd3=_0x484fc7;return this[_0x167ef8+_0x5f2fd3('0x11')]>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 diff --git a/server/services/routing/model/chatQueue.js b/server/services/routing/model/chatQueue.js index 8c79c6e..0fca95a 100644 --- a/server/services/routing/model/chatQueue.js +++ b/server/services/routing/model/chatQueue.js @@ -1 +1 @@ -const a1165_0x2a9f=['prototype','md5','paused','name','updateRealtime','Agents','../../../rediscache','format','chatPause','length','timeout','mapAgentsId','lodash','util','exports','strategy','online','_rr','waiting','stringify','loggedIn','available','emit','updateRouting'];(function(_0x538159,_0x2a9fb4){const _0x3d2234=function(_0x26bac9){while(--_0x26bac9){_0x538159['push'](_0x538159['shift']());}};_0x3d2234(++_0x2a9fb4);}(a1165_0x2a9f,0x173));const a1165_0x3d22=function(_0x538159,_0x2a9fb4){_0x538159=_0x538159-0x0;let _0x3d2234=a1165_0x2a9f[_0x538159];return _0x3d2234;};const _0x25a103=a1165_0x3d22;'use strict';const _=require(_0x25a103('0x1')),md5=require(_0x25a103('0xe')),util=require(_0x25a103('0x2')),{getSocket}=require(_0x25a103('0x13')),io=getSocket();function ChatQueue(_0x26bac9){const _0x6318eb=_0x25a103;this['id']=_0x26bac9['id']||0x0,this['name']=_0x26bac9[_0x6318eb('0x10')]||'',this['timeout']=_0x26bac9[_0x6318eb('0x17')]||0xa,this[_0x6318eb('0x4')]=_0x26bac9[_0x6318eb('0x4')]||'beepall',this['Agents']=_0x26bac9['Agents'],this['mapAgentsId']={},this[_0x6318eb('0x7')]=0x0,this[_0x6318eb('0xe')]='',this[_0x6318eb('0xc')](),this[_0x6318eb('0x11')]();}ChatQueue[_0x25a103('0xd')][_0x25a103('0xc')]=function(){const _0x554998=_0x25a103,_0xd6926d=this[_0x554998('0x0')]['_rr'];this[_0x554998('0x0')]=_['map'](this[_0x554998('0x12')],'id'),this[_0x554998('0x0')][_0x554998('0x6')]=_0xd6926d;},ChatQueue['prototype'][_0x25a103('0x11')]=function(){const _0x26acf4=_0x25a103;this[_0x26acf4('0x9')]=0x0,this['paused']=0x0;for(let _0x53c429=0x0;_0x53c429=0x0?this[_0x26acf4('0xa')]:0x0;const _0x32b902={'id':this['id'],'available':this[_0x26acf4('0xa')],'loggedIn':this[_0x26acf4('0x9')],'name':this['name'],'paused':this['paused'],'waiting':this['waiting']},_0x3a523f=md5(JSON[_0x26acf4('0x8')](_0x32b902));this[_0x26acf4('0xe')]!==_0x3a523f&&(this[_0x26acf4('0xe')]=_0x3a523f,io['to'](util[_0x26acf4('0x14')]('chat:queue:%s',_0x32b902[_0x26acf4('0x10')]))[_0x26acf4('0xb')]('chat_queue:save',_0x32b902));},module[_0x25a103('0x3')]=ChatQueue; \ No newline at end of file +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 diff --git a/server/services/routing/model/faxQueue.js b/server/services/routing/model/faxQueue.js index 7be29a4..a8ce50b 100644 --- a/server/services/routing/model/faxQueue.js +++ b/server/services/routing/model/faxQueue.js @@ -1 +1 @@ -const a1166_0x1b50=['name','md5','format','_rr','prototype','strategy','length','emit','stringify','fax:queue:%s','../../../rediscache','timeout','available','updateRouting','waiting','paused','fax_queue:save','faxPause','updateRealtime','mapAgentsId','beepall','Agents','loggedIn','util'];(function(_0x5309e4,_0x1b505f){const _0x2df188=function(_0x30bebc){while(--_0x30bebc){_0x5309e4['push'](_0x5309e4['shift']());}};_0x2df188(++_0x1b505f);}(a1166_0x1b50,0x1c4));const a1166_0x2df1=function(_0x5309e4,_0x1b505f){_0x5309e4=_0x5309e4-0x0;let _0x2df188=a1166_0x1b50[_0x5309e4];return _0x2df188;};const _0x565b99=a1166_0x2df1;'use strict';const _=require('lodash'),md5=require(_0x565b99('0x5')),util=require(_0x565b99('0x3')),{getSocket}=require(_0x565b99('0xe')),io=getSocket();function FaxQueue(_0x30bebc){const _0x504a48=_0x565b99;this['id']=_0x30bebc['id']||0x0,this['name']=_0x30bebc[_0x504a48('0x4')]||'',this[_0x504a48('0xf')]=_0x30bebc['timeout']||0xa,this[_0x504a48('0x9')]=_0x30bebc[_0x504a48('0x9')]||_0x504a48('0x0'),this['Agents']=_0x30bebc[_0x504a48('0x1')],this['mapAgentsId']={},this['waiting']=0x0,this[_0x504a48('0x5')]='',this['updateRouting'](),this['updateRealtime']();}FaxQueue[_0x565b99('0x8')][_0x565b99('0x11')]=function(){const _0x1eec90=_0x565b99,_0x90378e=this[_0x1eec90('0x17')][_0x1eec90('0x7')];this[_0x1eec90('0x17')]=_['map'](this[_0x1eec90('0x1')],'id'),this[_0x1eec90('0x17')][_0x1eec90('0x7')]=_0x90378e;},FaxQueue[_0x565b99('0x8')][_0x565b99('0x16')]=function(){const _0x5c751b=_0x565b99;this[_0x5c751b('0x2')]=0x0,this[_0x5c751b('0x13')]=0x0;for(let _0x5dfcaa=0x0;_0x5dfcaa=0x0?this[_0x5c751b('0x10')]:0x0;const _0x111787={'id':this['id'],'available':this['available'],'loggedIn':this[_0x5c751b('0x2')],'name':this[_0x5c751b('0x4')],'paused':this[_0x5c751b('0x13')],'waiting':this[_0x5c751b('0x12')]},_0x9fee26=md5(JSON[_0x5c751b('0xc')](_0x111787));this[_0x5c751b('0x5')]!==_0x9fee26&&(this[_0x5c751b('0x5')]=_0x9fee26,io['to'](util[_0x5c751b('0x6')](_0x5c751b('0xd'),_0x111787[_0x5c751b('0x4')]))[_0x5c751b('0xb')](_0x5c751b('0x14'),_0x111787));},module['exports']=FaxQueue; \ No newline at end of file +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 diff --git a/server/services/routing/model/interval.js b/server/services/routing/model/interval.js index 919b26c..7771ef1 100644 --- a/server/services/routing/model/interval.js +++ b/server/services/routing/model/interval.js @@ -1 +1 @@ -var a1167_0x3523=['exports','Intervals'];(function(_0x4f0e6f,_0x352304){var _0x2d71d6=function(_0xd3284e){while(--_0xd3284e){_0x4f0e6f['push'](_0x4f0e6f['shift']());}};_0x2d71d6(++_0x352304);}(a1167_0x3523,0x1a0));var a1167_0x2d71=function(_0x4f0e6f,_0x352304){_0x4f0e6f=_0x4f0e6f-0x0;var _0x2d71d6=a1167_0x3523[_0x4f0e6f];return _0x2d71d6;};var _0x1004f5=a1167_0x2d71;'use strict';function Interval(_0xd3284e){var _0x396ac4=a1167_0x2d71;this['id']=_0xd3284e['id']||0x0,this['name']=_0xd3284e['name']||'',this[_0x396ac4('0x1')]=_0xd3284e[_0x396ac4('0x1')]||{};}module[_0x1004f5('0x0')]=Interval; \ No newline at end of file +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 diff --git a/server/services/routing/model/mailQueue.js b/server/services/routing/model/mailQueue.js index 6d3217c..ce1a423 100644 --- a/server/services/routing/model/mailQueue.js +++ b/server/services/routing/model/mailQueue.js @@ -1 +1 @@ -const a1168_0x4a16=['mailPause','timeout','_rr','prototype','lodash','name','md5','exports','length','Agents','mapAgentsId','loggedIn','../../../rediscache','updateRouting','paused','available','updateRealtime','stringify','strategy','mail_queue:save','beepall','waiting'];(function(_0x46b075,_0x4a1646){const _0x14a652=function(_0x4b9e7b){while(--_0x4b9e7b){_0x46b075['push'](_0x46b075['shift']());}};_0x14a652(++_0x4a1646);}(a1168_0x4a16,0x1e4));const a1168_0x14a6=function(_0x46b075,_0x4a1646){_0x46b075=_0x46b075-0x0;let _0x14a652=a1168_0x4a16[_0x46b075];return _0x14a652;};const _0x69c640=a1168_0x14a6;'use strict';const _=require(_0x69c640('0x4')),md5=require(_0x69c640('0x6')),util=require('util'),{getSocket}=require(_0x69c640('0xc')),io=getSocket();function MailQueue(_0x4b9e7b){const _0x3d304f=_0x69c640;this['id']=_0x4b9e7b['id']||0x0,this[_0x3d304f('0x5')]=_0x4b9e7b[_0x3d304f('0x5')]||'',this[_0x3d304f('0x1')]=_0x4b9e7b['timeout']||0xa,this[_0x3d304f('0x12')]=_0x4b9e7b[_0x3d304f('0x12')]||_0x3d304f('0x14'),this[_0x3d304f('0x9')]=_0x4b9e7b['Agents'],this[_0x3d304f('0xa')]={},this['waiting']=0x0,this[_0x3d304f('0x6')]='',this[_0x3d304f('0xd')](),this[_0x3d304f('0x10')]();}MailQueue[_0x69c640('0x3')]['updateRouting']=function(){const _0x503232=_0x69c640,_0x2c330f=this[_0x503232('0xa')][_0x503232('0x2')];this[_0x503232('0xa')]=_['map'](this[_0x503232('0x9')],'id'),this['mapAgentsId']['_rr']=_0x2c330f;},MailQueue[_0x69c640('0x3')][_0x69c640('0x10')]=function(){const _0x4dcdac=_0x69c640;this[_0x4dcdac('0xb')]=0x0,this[_0x4dcdac('0xe')]=0x0;for(let _0x2fb16c=0x0;_0x2fb16c=0x0?this['available']:0x0;const _0x174363={'id':this['id'],'available':this[_0x4dcdac('0xf')],'loggedIn':this[_0x4dcdac('0xb')],'name':this[_0x4dcdac('0x5')],'paused':this['paused'],'waiting':this[_0x4dcdac('0x15')]},_0x5d463c=md5(JSON[_0x4dcdac('0x11')](_0x174363));this[_0x4dcdac('0x6')]!==_0x5d463c&&(this['md5']=_0x5d463c,io['to'](util['format']('mail:queue:%s',_0x174363[_0x4dcdac('0x5')]))['emit'](_0x4dcdac('0x13'),_0x174363));},module[_0x69c640('0x7')]=MailQueue; \ No newline at end of file +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 diff --git a/server/services/routing/model/openchannelQueue.js b/server/services/routing/model/openchannelQueue.js index a69b42c..bc9b7d6 100644 --- a/server/services/routing/model/openchannelQueue.js +++ b/server/services/routing/model/openchannelQueue.js @@ -1 +1 @@ -const a1169_0x4694=['Agents','openchannel:queue:%s','name','prototype','paused','openchannel_queue:save','timeout','map','waiting','updateRealtime','available','util','online','loggedIn','mapAgentsId','updateRouting','exports','format','md5','stringify','_rr','strategy'];(function(_0x3e47b2,_0x469451){const _0x991e77=function(_0x265efc){while(--_0x265efc){_0x3e47b2['push'](_0x3e47b2['shift']());}};_0x991e77(++_0x469451);}(a1169_0x4694,0x114));const a1169_0x991e=function(_0x3e47b2,_0x469451){_0x3e47b2=_0x3e47b2-0x0;let _0x991e77=a1169_0x4694[_0x3e47b2];return _0x991e77;};const _0x4297f0=a1169_0x991e;'use strict';const _=require('lodash'),md5=require(_0x4297f0('0x6')),util=require(_0x4297f0('0x15')),{getSocket}=require('../../../rediscache'),io=getSocket();function OpenchannelQueue(_0x265efc){const _0x77e837=_0x4297f0;this['id']=_0x265efc['id']||0x0,this[_0x77e837('0xc')]=_0x265efc[_0x77e837('0xc')]||'',this[_0x77e837('0x10')]=_0x265efc[_0x77e837('0x10')]||0xa,this[_0x77e837('0x9')]=_0x265efc[_0x77e837('0x9')]||'beepall',this['Agents']=_0x265efc[_0x77e837('0xa')],this['mapAgentsId']={},this[_0x77e837('0x12')]=0x0,this['md5']='',this['updateRouting'](),this[_0x77e837('0x13')]();}OpenchannelQueue[_0x4297f0('0xd')][_0x4297f0('0x3')]=function(){const _0x1f6de4=_0x4297f0,_0x2a6445=this[_0x1f6de4('0x2')][_0x1f6de4('0x8')];this[_0x1f6de4('0x2')]=_[_0x1f6de4('0x11')](this[_0x1f6de4('0xa')],'id'),this[_0x1f6de4('0x2')][_0x1f6de4('0x8')]=_0x2a6445;},OpenchannelQueue[_0x4297f0('0xd')][_0x4297f0('0x13')]=function(){const _0x52b19f=_0x4297f0;this['loggedIn']=0x0,this[_0x52b19f('0xe')]=0x0;for(let _0x3309ff=0x0;_0x3309ff=0x0?this[_0x52b19f('0x14')]:0x0;const _0x612ad={'id':this['id'],'available':this[_0x52b19f('0x14')],'loggedIn':this[_0x52b19f('0x1')],'name':this['name'],'paused':this['paused'],'waiting':this[_0x52b19f('0x12')]},_0x16db07=md5(JSON[_0x52b19f('0x7')](_0x612ad));this[_0x52b19f('0x6')]!==_0x16db07&&(this['md5']=_0x16db07,io['to'](util[_0x52b19f('0x5')](_0x52b19f('0xb'),_0x612ad['name']))['emit'](_0x52b19f('0xf'),_0x612ad));},module[_0x4297f0('0x4')]=OpenchannelQueue; \ No newline at end of file +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 diff --git a/server/services/routing/model/smsQueue.js b/server/services/routing/model/smsQueue.js index 0385aea..623bed8 100644 --- a/server/services/routing/model/smsQueue.js +++ b/server/services/routing/model/smsQueue.js @@ -1 +1 @@ -const a1170_0x4869=['timeout','Agents','stringify','waiting','paused','lodash','updateRouting','strategy','loggedIn','emit','prototype','md5','format','beepall','map','util','sms_queue:save','mapAgentsId','length','available','../../../rediscache','name','_rr'];(function(_0x113e00,_0x4869e3){const _0x438b9e=function(_0x9b7805){while(--_0x9b7805){_0x113e00['push'](_0x113e00['shift']());}};_0x438b9e(++_0x4869e3);}(a1170_0x4869,0x1ef));const a1170_0x438b=function(_0x113e00,_0x4869e3){_0x113e00=_0x113e00-0x0;let _0x438b9e=a1170_0x4869[_0x113e00];return _0x438b9e;};const _0x4fb75e=a1170_0x438b;'use strict';const _=require(_0x4fb75e('0x10')),md5=require(_0x4fb75e('0x16')),util=require(_0x4fb75e('0x3')),{getSocket}=require(_0x4fb75e('0x8')),io=getSocket();function SmsQueue(_0x9b7805){const _0x1eb614=_0x4fb75e;this['id']=_0x9b7805['id']||0x0,this['name']=_0x9b7805[_0x1eb614('0x9')]||'',this[_0x1eb614('0xb')]=_0x9b7805['timeout']||0xa,this['strategy']=_0x9b7805[_0x1eb614('0x12')]||_0x1eb614('0x1'),this['Agents']=_0x9b7805[_0x1eb614('0xc')],this['mapAgentsId']={},this[_0x1eb614('0xe')]=0x0,this['md5']='',this[_0x1eb614('0x11')](),this['updateRealtime']();}SmsQueue[_0x4fb75e('0x15')][_0x4fb75e('0x11')]=function(){const _0x1c7b1f=_0x4fb75e,_0x23dfda=this[_0x1c7b1f('0x5')][_0x1c7b1f('0xa')];this['mapAgentsId']=_[_0x1c7b1f('0x2')](this['Agents'],'id'),this['mapAgentsId']['_rr']=_0x23dfda;},SmsQueue[_0x4fb75e('0x15')]['updateRealtime']=function(){const _0x1513c9=_0x4fb75e;this['loggedIn']=0x0,this['paused']=0x0;for(let _0x4404ae=0x0;_0x4404ae=0x0?this[_0x1513c9('0x7')]:0x0;const _0x4755aa={'id':this['id'],'available':this[_0x1513c9('0x7')],'loggedIn':this[_0x1513c9('0x13')],'name':this[_0x1513c9('0x9')],'paused':this[_0x1513c9('0xf')],'waiting':this[_0x1513c9('0xe')]},_0x5bae30=md5(JSON[_0x1513c9('0xd')](_0x4755aa));this['md5']!==_0x5bae30&&(this[_0x1513c9('0x16')]=_0x5bae30,io['to'](util[_0x1513c9('0x0')]('sms:queue:%s',_0x4755aa[_0x1513c9('0x9')]))[_0x1513c9('0x14')](_0x1513c9('0x4'),_0x4755aa));},module['exports']=SmsQueue; \ No newline at end of file +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 diff --git a/server/services/routing/model/whatsappQueue.js b/server/services/routing/model/whatsappQueue.js index 4bc4201..220b5c4 100644 --- a/server/services/routing/model/whatsappQueue.js +++ b/server/services/routing/model/whatsappQueue.js @@ -1 +1 @@ -const a1171_0x1d63=['Agents','format','waiting','prototype','loggedIn','lodash','updateRealtime','exports','strategy','name','paused','emit','whatsappPause','timeout','whatsapp_queue:save','map','mapAgentsId','_rr','online','available','length','updateRouting','md5','whatsapp:queue:%s'];(function(_0x4fdf4b,_0x1d63fe){const _0x39cc0a=function(_0xd009a0){while(--_0xd009a0){_0x4fdf4b['push'](_0x4fdf4b['shift']());}};_0x39cc0a(++_0x1d63fe);}(a1171_0x1d63,0xb3));const a1171_0x39cc=function(_0x4fdf4b,_0x1d63fe){_0x4fdf4b=_0x4fdf4b-0x0;let _0x39cc0a=a1171_0x1d63[_0x4fdf4b];return _0x39cc0a;};const _0x41cd2e=a1171_0x39cc;'use strict';const _=require(_0x41cd2e('0x12')),md5=require(_0x41cd2e('0xb')),util=require('util'),{getSocket}=require('../../../rediscache'),io=getSocket();function WhatsappQueue(_0xd009a0){const _0x3067eb=_0x41cd2e;this['id']=_0xd009a0['id']||0x0,this[_0x3067eb('0x16')]=_0xd009a0[_0x3067eb('0x16')]||'',this[_0x3067eb('0x2')]=_0xd009a0[_0x3067eb('0x2')]||0xa,this[_0x3067eb('0x15')]=_0xd009a0['strategy']||'beepall',this[_0x3067eb('0xd')]=_0xd009a0[_0x3067eb('0xd')],this[_0x3067eb('0x5')]={},this[_0x3067eb('0xf')]=0x0,this[_0x3067eb('0xb')]='',this['updateRouting'](),this[_0x3067eb('0x13')]();}WhatsappQueue[_0x41cd2e('0x10')][_0x41cd2e('0xa')]=function(){const _0x25b06b=_0x41cd2e,_0x252474=this['mapAgentsId'][_0x25b06b('0x6')];this[_0x25b06b('0x5')]=_[_0x25b06b('0x4')](this[_0x25b06b('0xd')],'id'),this[_0x25b06b('0x5')][_0x25b06b('0x6')]=_0x252474;},WhatsappQueue[_0x41cd2e('0x10')][_0x41cd2e('0x13')]=function(){const _0x5c2937=_0x41cd2e;this[_0x5c2937('0x11')]=0x0,this[_0x5c2937('0x17')]=0x0;for(let _0xc2e51f=0x0;_0xc2e51f=0x0?this[_0x5c2937('0x8')]:0x0;const _0x4317b4={'id':this['id'],'available':this[_0x5c2937('0x8')],'loggedIn':this[_0x5c2937('0x11')],'name':this[_0x5c2937('0x16')],'paused':this['paused'],'waiting':this[_0x5c2937('0xf')]},_0x1cd01d=md5(JSON['stringify'](_0x4317b4));this['md5']!==_0x1cd01d&&(this[_0x5c2937('0xb')]=_0x1cd01d,io['to'](util[_0x5c2937('0xe')](_0x5c2937('0xc'),_0x4317b4[_0x5c2937('0x16')]))[_0x5c2937('0x0')](_0x5c2937('0x3'),_0x4317b4));},module[_0x41cd2e('0x14')]=WhatsappQueue; \ No newline at end of file +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 diff --git a/server/services/routing/realtime/index.js b/server/services/routing/realtime/index.js index df667cb..6a8d716 100644 --- a/server/services/routing/realtime/index.js +++ b/server/services/routing/realtime/index.js @@ -1 +1 @@ -const a1172_0x50ff=['agents','../model/faxQueue','length','chatQueues','../model/openchannelQueue','updateRouting','../model/interval','undefined','initFaxQueues','mailQueuesWaitingInteractions','lodash','../model/whatsappQueue','faxQueues','mailQueues','initIntervals','updateRealtime','smsQueues','exports','whatsappQueues','mergeFromDatabase','../model/chatQueue','faxQueuesWaitingInteractions','isUndefined','prototype','initMailQueues','initWhatsappQueues','initChatQueues','openchannelQueuesWaitingInteractions','whatsappQueuesWaitingInteractions','openchannelQueues','smsQueuesWaitingInteractions','../model/smsQueue','intervals'];(function(_0x1a5fff,_0x50ff83){const _0x4846fa=function(_0x34ed19){while(--_0x34ed19){_0x1a5fff['push'](_0x1a5fff['shift']());}};_0x4846fa(++_0x50ff83);}(a1172_0x50ff,0x95));const a1172_0x4846=function(_0x1a5fff,_0x50ff83){_0x1a5fff=_0x1a5fff-0x0;let _0x4846fa=a1172_0x50ff[_0x1a5fff];return _0x4846fa;};const _0x194257=a1172_0x4846;'use strict';const _=require(_0x194257('0x1a')),Agent=require('../model/agent'),Interval=require(_0x194257('0x16')),OpenchannelQueue=require(_0x194257('0x14')),ChatQueue=require(_0x194257('0x3')),SmsQueue=require(_0x194257('0xe')),MailQueue=require('../model/mailQueue'),FaxQueue=require(_0x194257('0x11')),WhatsappQueue=require(_0x194257('0x1b')),Realtime=function(){const _0x556646=_0x194257;this[_0x556646('0x10')]={},this[_0x556646('0xf')]={},this[_0x556646('0xc')]={},this[_0x556646('0x13')]={},this['smsQueues']={},this[_0x556646('0x1d')]={},this['faxQueues']={},this[_0x556646('0x1')]={},this['chatQueuesWaitingInteractions']={},this[_0x556646('0x19')]={},this[_0x556646('0xa')]={},this[_0x556646('0xd')]={},this[_0x556646('0x4')]={},this[_0x556646('0xb')]={};};function freeIsNotKey(_0x34ed19,_0x3736ae,_0x3484c9){const _0x21d8c4=_0x194257,_0x5189af=_['mapKeys'](_0x34ed19,function(_0x24d0be){return _0x24d0be[_0x3484c9];});for(const _0x5cf2a1 in _0x3736ae){typeof _0x3736ae[_0x5cf2a1]!==_0x21d8c4('0x17')&&(!_0x5189af[_0x5cf2a1]&&delete _0x3736ae[_0x5cf2a1]);}}Realtime[_0x194257('0x6')][_0x194257('0x2')]=function(_0x55b225,_0x2ed529){const _0x3f2234=_0x194257;for(const _0x2f3f6f in _0x2ed529){typeof _0x55b225[_0x2f3f6f]!==_0x3f2234('0x17')&&(_0x55b225[_0x2f3f6f]=_0x2ed529[_0x2f3f6f]);}},Realtime[_0x194257('0x6')]['initAgents']=function(){const _0x2b8873=this;return function(_0x38357a){const _0x3de5b7=a1172_0x4846;if(_0x38357a){freeIsNotKey(_0x38357a,_0x2b8873[_0x3de5b7('0x10')],'id');for(let _0x4ecb77=0x0,_0x394ec0={};_0x4ecb77<_0x38357a[_0x3de5b7('0x12')];_0x4ecb77+=0x1){_0x394ec0=_0x38357a[_0x4ecb77],_['isUndefined'](_0x2b8873[_0x3de5b7('0x10')][_0x394ec0['id']])?_0x2b8873['agents'][_0x394ec0['id']]=new Agent(_0x394ec0):_0x2b8873[_0x3de5b7('0x2')](_0x2b8873[_0x3de5b7('0x10')][_0x394ec0['id']],_0x394ec0);}}return _0x2b8873[_0x3de5b7('0x10')];};},Realtime['prototype'][_0x194257('0x1e')]=function(){const _0x4a2e64=this;return function(_0x322ffa){const _0x35a39b=a1172_0x4846;if(_0x322ffa){freeIsNotKey(_0x322ffa,_0x4a2e64[_0x35a39b('0xf')],'id');for(let _0xefd419=0x0,_0x4bc306={};_0xefd419<_0x322ffa[_0x35a39b('0x12')];_0xefd419+=0x1){_0x4bc306=_0x322ffa[_0xefd419],_[_0x35a39b('0x5')](_0x4a2e64[_0x35a39b('0xf')][_0x4bc306['id']])?_0x4a2e64[_0x35a39b('0xf')][_0x4bc306['id']]=new Interval(_0x4bc306):_0x4a2e64[_0x35a39b('0x2')](_0x4a2e64[_0x35a39b('0xf')][_0x4bc306['id']],_0x4bc306);}}return _0x4a2e64[_0x35a39b('0xf')];};},Realtime['prototype']['initOpenchannelQueues']=function(){const _0x4246cb=this;return function(_0x424a25){const _0x98b7e8=a1172_0x4846;if(_0x424a25){freeIsNotKey(_0x424a25,_0x4246cb['openchannelQueues'],'id');for(let _0x4330fd=0x0,_0x38a456={};_0x4330fd<_0x424a25[_0x98b7e8('0x12')];_0x4330fd+=0x1){_0x38a456=_0x424a25[_0x4330fd],_[_0x98b7e8('0x5')](_0x4246cb[_0x98b7e8('0xc')][_0x38a456['id']])?_0x4246cb[_0x98b7e8('0xc')][_0x38a456['id']]=new OpenchannelQueue(_0x38a456):_0x4246cb[_0x98b7e8('0x2')](_0x4246cb[_0x98b7e8('0xc')][_0x38a456['id']],_0x38a456),_0x4246cb[_0x98b7e8('0xc')][_0x38a456['id']][_0x98b7e8('0x15')](),_0x4246cb['openchannelQueues'][_0x38a456['id']][_0x98b7e8('0x1f')]();}}return _0x4246cb['openchannelQueues'];};},Realtime[_0x194257('0x6')][_0x194257('0x9')]=function(){const _0x1f12eb=this;return function(_0xa7abdc){const _0x83f052=a1172_0x4846;if(_0xa7abdc){freeIsNotKey(_0xa7abdc,_0x1f12eb[_0x83f052('0x13')],'id');for(let _0x3adfc3=0x0,_0xd70eb={};_0x3adfc3<_0xa7abdc[_0x83f052('0x12')];_0x3adfc3+=0x1){_0xd70eb=_0xa7abdc[_0x3adfc3],_['isUndefined'](_0x1f12eb[_0x83f052('0x13')][_0xd70eb['id']])?_0x1f12eb[_0x83f052('0x13')][_0xd70eb['id']]=new ChatQueue(_0xd70eb):_0x1f12eb[_0x83f052('0x2')](_0x1f12eb[_0x83f052('0x13')][_0xd70eb['id']],_0xd70eb),_0x1f12eb['chatQueues'][_0xd70eb['id']][_0x83f052('0x15')](),_0x1f12eb[_0x83f052('0x13')][_0xd70eb['id']]['updateRealtime']();}}return _0x1f12eb[_0x83f052('0x13')];};},Realtime[_0x194257('0x6')]['initSmsQueues']=function(){const _0x516c0c=this;return function(_0x5b2f40){const _0xe3c67b=a1172_0x4846;if(_0x5b2f40){freeIsNotKey(_0x5b2f40,_0x516c0c[_0xe3c67b('0x20')],'id');for(let _0x1cc0f3=0x0,_0x2cfb7a={};_0x1cc0f3<_0x5b2f40[_0xe3c67b('0x12')];_0x1cc0f3+=0x1){_0x2cfb7a=_0x5b2f40[_0x1cc0f3],_[_0xe3c67b('0x5')](_0x516c0c[_0xe3c67b('0x20')][_0x2cfb7a['id']])?_0x516c0c[_0xe3c67b('0x20')][_0x2cfb7a['id']]=new SmsQueue(_0x2cfb7a):_0x516c0c[_0xe3c67b('0x2')](_0x516c0c[_0xe3c67b('0x20')][_0x2cfb7a['id']],_0x2cfb7a),_0x516c0c[_0xe3c67b('0x20')][_0x2cfb7a['id']]['updateRouting'](),_0x516c0c[_0xe3c67b('0x20')][_0x2cfb7a['id']][_0xe3c67b('0x1f')]();}}return _0x516c0c[_0xe3c67b('0x20')];};},Realtime[_0x194257('0x6')][_0x194257('0x7')]=function(){const _0x14def6=this;return function(_0x36c4ed){const _0xa79683=a1172_0x4846;if(_0x36c4ed){freeIsNotKey(_0x36c4ed,_0x14def6[_0xa79683('0x1d')],'id');for(let _0x44a710=0x0,_0x3ee2a0={};_0x44a710<_0x36c4ed[_0xa79683('0x12')];_0x44a710+=0x1){_0x3ee2a0=_0x36c4ed[_0x44a710],_[_0xa79683('0x5')](_0x14def6['mailQueues'][_0x3ee2a0['id']])?_0x14def6[_0xa79683('0x1d')][_0x3ee2a0['id']]=new MailQueue(_0x3ee2a0):_0x14def6[_0xa79683('0x2')](_0x14def6[_0xa79683('0x1d')][_0x3ee2a0['id']],_0x3ee2a0),_0x14def6[_0xa79683('0x1d')][_0x3ee2a0['id']][_0xa79683('0x15')](),_0x14def6[_0xa79683('0x1d')][_0x3ee2a0['id']][_0xa79683('0x1f')]();}}return _0x14def6['mailQueues'];};},Realtime['prototype'][_0x194257('0x18')]=function(){const _0x4c1faa=this;return function(_0x5be402){const _0x393442=a1172_0x4846;if(_0x5be402){freeIsNotKey(_0x5be402,_0x4c1faa[_0x393442('0x1c')],'id');for(let _0x58914d=0x0,_0x5660d5={};_0x58914d<_0x5be402[_0x393442('0x12')];_0x58914d+=0x1){_0x5660d5=_0x5be402[_0x58914d],_[_0x393442('0x5')](_0x4c1faa[_0x393442('0x1c')][_0x5660d5['id']])?_0x4c1faa[_0x393442('0x1c')][_0x5660d5['id']]=new FaxQueue(_0x5660d5):_0x4c1faa[_0x393442('0x2')](_0x4c1faa[_0x393442('0x1c')][_0x5660d5['id']],_0x5660d5),_0x4c1faa['faxQueues'][_0x5660d5['id']][_0x393442('0x15')](),_0x4c1faa[_0x393442('0x1c')][_0x5660d5['id']][_0x393442('0x1f')]();}}return _0x4c1faa[_0x393442('0x1c')];};},Realtime[_0x194257('0x6')][_0x194257('0x8')]=function(){const _0x21675c=this;return function(_0x1c51a5){const _0x490d3c=a1172_0x4846;if(_0x1c51a5){freeIsNotKey(_0x1c51a5,_0x21675c[_0x490d3c('0x1')],'id');for(let _0x3f3cb1=0x0,_0x42a360={};_0x3f3cb1<_0x1c51a5[_0x490d3c('0x12')];_0x3f3cb1+=0x1){_0x42a360=_0x1c51a5[_0x3f3cb1],_['isUndefined'](_0x21675c[_0x490d3c('0x1')][_0x42a360['id']])?_0x21675c[_0x490d3c('0x1')][_0x42a360['id']]=new WhatsappQueue(_0x42a360):_0x21675c[_0x490d3c('0x2')](_0x21675c[_0x490d3c('0x1')][_0x42a360['id']],_0x42a360),_0x21675c[_0x490d3c('0x1')][_0x42a360['id']][_0x490d3c('0x15')](),_0x21675c[_0x490d3c('0x1')][_0x42a360['id']][_0x490d3c('0x1f')]();}}return _0x21675c['whatsappQueues'];};},module[_0x194257('0x0')]=Realtime; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/chatInteraction.js b/server/services/routing/rpc/chatInteraction.js index d8ea928..9029121 100644 --- a/server/services/routing/rpc/chatInteraction.js +++ b/server/services/routing/rpc/chatInteraction.js @@ -1 +1 @@ -const a1173_0xd29d=['Request','addTags','UpdateChatInteraction','AddTagsToChatInteraction','updateChatInteraction','update','addTagsToChatInteraction','../client'];(function(_0x65f991,_0xd29de2){const _0x56b754=function(_0x232adf){while(--_0x232adf){_0x65f991['push'](_0x65f991['shift']());}};_0x56b754(++_0xd29de2);}(a1173_0xd29d,0xbe));const a1173_0x56b7=function(_0x65f991,_0xd29de2){_0x65f991=_0x65f991-0x0;let _0x56b754=a1173_0xd29d[_0x65f991];return _0x56b754;};const _0x481183=a1173_0x56b7;'use strict';const client=require(_0x481183('0x1'));exports[_0x481183('0x7')]=function(_0x232adf,_0x46044c){const _0x1b11c6=_0x481183;return client[_0x1b11c6('0x2')](_0x1b11c6('0x4'),{'body':_0x46044c,'options':{'where':{'id':_0x232adf}},'log':_0x1b11c6('0x6')});},exports[_0x481183('0x3')]=function(_0xb7d351,_0x4c8667){const _0xcb210d=_0x481183;return client[_0xcb210d('0x2')](_0xcb210d('0x5'),{'body':_0x4c8667,'options':{'where':{'id':_0xb7d351}},'log':_0xcb210d('0x0')});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/chatMessage.js b/server/services/routing/rpc/chatMessage.js index 6aa5605..e82bfe0 100644 --- a/server/services/routing/rpc/chatMessage.js +++ b/server/services/routing/rpc/chatMessage.js @@ -1 +1 @@ -const a1174_0x11f3=['../client','CreateChatMessage','createChatMessage','Request','create'];(function(_0x129c07,_0x11f338){const _0x1920fc=function(_0x494021){while(--_0x494021){_0x129c07['push'](_0x129c07['shift']());}};_0x1920fc(++_0x11f338);}(a1174_0x11f3,0xb1));const a1174_0x1920=function(_0x129c07,_0x11f338){_0x129c07=_0x129c07-0x0;let _0x1920fc=a1174_0x11f3[_0x129c07];return _0x1920fc;};const _0xb7e002=a1174_0x1920;'use strict';const client=require(_0xb7e002('0x3'));exports[_0xb7e002('0x2')]=function(_0x494021){const _0x2ba4ec=_0xb7e002;return client[_0x2ba4ec('0x1')](_0x2ba4ec('0x4'),{'body':_0x494021,'log':_0x2ba4ec('0x0')});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/chatQueue.js b/server/services/routing/rpc/chatQueue.js index d3647ea..c3a4d35 100644 --- a/server/services/routing/rpc/chatQueue.js +++ b/server/services/routing/rpc/chatQueue.js @@ -1 +1 @@ -const a1175_0x2c0b=['Agents','strategy','chatPause','getChatQueues','timeout','../client','User','name'];(function(_0xf76402,_0x2c0bf6){const _0x51defb=function(_0x43e045){while(--_0x43e045){_0xf76402['push'](_0xf76402['shift']());}};_0x51defb(++_0x2c0bf6);}(a1175_0x2c0b,0x1bf));const a1175_0x51de=function(_0xf76402,_0x2c0bf6){_0xf76402=_0xf76402-0x0;let _0x51defb=a1175_0x2c0b[_0xf76402];return _0x51defb;};const _0x4511c9=a1175_0x51de;'use strict';const client=require(_0x4511c9('0x6'));exports[_0x4511c9('0x4')]=function(){return function(){const _0x2eaadd=a1175_0x51de;return client['Request']('GetChatQueue',{'options':{'raw':![],'attributes':['id','name',_0x2eaadd('0x5'),_0x2eaadd('0x2')],'include':[{'model':_0x2eaadd('0x7'),'as':_0x2eaadd('0x1'),'attributes':['id',_0x2eaadd('0x0'),'online',_0x2eaadd('0x3')]}]},'log':'getChatQueues'});};}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/chatQueueReport.js b/server/services/routing/rpc/chatQueueReport.js index 0afc4fe..9bd4ec9 100644 --- a/server/services/routing/rpc/chatQueueReport.js +++ b/server/services/routing/rpc/chatQueueReport.js @@ -1 +1 @@ -const a1176_0x8064=['CreateChatQueueReport','Request','DESC','update'];(function(_0x583996,_0x8064cd){const _0x23a656=function(_0x3866ec){while(--_0x3866ec){_0x583996['push'](_0x583996['shift']());}};_0x23a656(++_0x8064cd);}(a1176_0x8064,0x1d5));const a1176_0x23a6=function(_0x583996,_0x8064cd){_0x583996=_0x583996-0x0;let _0x23a656=a1176_0x8064[_0x583996];return _0x23a656;};const _0x37e29c=a1176_0x23a6;'use strict';const client=require('../client');exports['create']=function(_0x3866ec){const _0x30d3a3=a1176_0x23a6;return client[_0x30d3a3('0x0')](_0x30d3a3('0x3'),{'body':_0x3866ec,'log':_0x30d3a3('0x3')});},exports[_0x37e29c('0x2')]=function(_0x33b761,_0x347bdd){const _0x19e4f8=_0x37e29c;return client['Request']('UpdateChatQueueReport',{'body':_0x347bdd,'options':{'where':{'uniqueid':_0x33b761},'order':[['id',_0x19e4f8('0x1')]],'limit':0x1},'log':'UpdateChatQueueReport'});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/faxInteraction.js b/server/services/routing/rpc/faxInteraction.js index 155579e..8e66b1d 100644 --- a/server/services/routing/rpc/faxInteraction.js +++ b/server/services/routing/rpc/faxInteraction.js @@ -1 +1 @@ -const a1177_0x3028=['../client','AddTagsToFaxInteraction','Request','addTags','UpdateFaxInteraction','updateFaxInteraction'];(function(_0x91003f,_0x3028c4){const _0x456dcc=function(_0x53237d){while(--_0x53237d){_0x91003f['push'](_0x91003f['shift']());}};_0x456dcc(++_0x3028c4);}(a1177_0x3028,0x75));const a1177_0x456d=function(_0x91003f,_0x3028c4){_0x91003f=_0x91003f-0x0;let _0x456dcc=a1177_0x3028[_0x91003f];return _0x456dcc;};const _0x224829=a1177_0x456d;'use strict';const client=require(_0x224829('0x3'));exports['update']=function(_0x53237d,_0x1bad22){const _0x253b2c=_0x224829;return client[_0x253b2c('0x5')](_0x253b2c('0x1'),{'body':_0x1bad22,'options':{'where':{'id':_0x53237d}},'log':_0x253b2c('0x2')});},exports[_0x224829('0x0')]=function(_0x1fc218,_0x3ef87f){const _0x3121f1=_0x224829;return client['Request'](_0x3121f1('0x4'),{'body':_0x3ef87f,'options':{'where':{'id':_0x1fc218}},'log':'addTagsToFaxInteraction'});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/faxMessage.js b/server/services/routing/rpc/faxMessage.js index 0fa4f0c..a83db91 100644 --- a/server/services/routing/rpc/faxMessage.js +++ b/server/services/routing/rpc/faxMessage.js @@ -1 +1 @@ -const a1178_0x53a9=['create','Request','CreateFaxMessage','../client'];(function(_0x5e4721,_0x53a9bd){const _0x5f1fcf=function(_0x1ab55){while(--_0x1ab55){_0x5e4721['push'](_0x5e4721['shift']());}};_0x5f1fcf(++_0x53a9bd);}(a1178_0x53a9,0x83));const a1178_0x5f1f=function(_0x5e4721,_0x53a9bd){_0x5e4721=_0x5e4721-0x0;let _0x5f1fcf=a1178_0x53a9[_0x5e4721];return _0x5f1fcf;};const _0x4ca8fc=a1178_0x5f1f;'use strict';const client=require(_0x4ca8fc('0x0'));exports[_0x4ca8fc('0x1')]=function(_0x1ab55){const _0x1c5e35=_0x4ca8fc;return client[_0x1c5e35('0x2')](_0x1c5e35('0x3'),{'body':_0x1ab55,'log':'createFaxMessage'});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/faxQueue.js b/server/services/routing/rpc/faxQueue.js index 32878a6..bec46b7 100644 --- a/server/services/routing/rpc/faxQueue.js +++ b/server/services/routing/rpc/faxQueue.js @@ -1 +1 @@ -const a1179_0x3978=['timeout','../client','faxPause','name','online','getFaxQueues','GetFaxQueue','strategy','Agents','User'];(function(_0x1d7c29,_0x397881){const _0x216ad8=function(_0x1f5b3b){while(--_0x1f5b3b){_0x1d7c29['push'](_0x1d7c29['shift']());}};_0x216ad8(++_0x397881);}(a1179_0x3978,0x12a));const a1179_0x216a=function(_0x1d7c29,_0x397881){_0x1d7c29=_0x1d7c29-0x0;let _0x216ad8=a1179_0x3978[_0x1d7c29];return _0x216ad8;};const _0xf9a0c4=a1179_0x216a;'use strict';const client=require(_0xf9a0c4('0x3'));exports[_0xf9a0c4('0x7')]=function(){return function(){const _0x5a8c91=a1179_0x216a;return client['Request'](_0x5a8c91('0x8'),{'options':{'raw':![],'attributes':['id','name',_0x5a8c91('0x2'),_0x5a8c91('0x9')],'include':[{'model':_0x5a8c91('0x1'),'as':_0x5a8c91('0x0'),'attributes':['id',_0x5a8c91('0x5'),_0x5a8c91('0x6'),_0x5a8c91('0x4')]}]},'log':_0x5a8c91('0x7')});};}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/faxQueueReport.js b/server/services/routing/rpc/faxQueueReport.js index 754966d..fff2bc8 100644 --- a/server/services/routing/rpc/faxQueueReport.js +++ b/server/services/routing/rpc/faxQueueReport.js @@ -1 +1 @@ -const a1180_0x1613=['CreateFaxQueueReport','Request','create','update','UpdateFaxQueueReport'];(function(_0x4549e0,_0x16138b){const _0x3dc5da=function(_0x306a69){while(--_0x306a69){_0x4549e0['push'](_0x4549e0['shift']());}};_0x3dc5da(++_0x16138b);}(a1180_0x1613,0x1d6));const a1180_0x3dc5=function(_0x4549e0,_0x16138b){_0x4549e0=_0x4549e0-0x0;let _0x3dc5da=a1180_0x1613[_0x4549e0];return _0x3dc5da;};const _0x40d93e=a1180_0x3dc5;'use strict';const client=require('../client');exports[_0x40d93e('0x2')]=function(_0x306a69){const _0x5c9d93=_0x40d93e;return client[_0x5c9d93('0x1')](_0x5c9d93('0x0'),{'body':_0x306a69,'log':_0x5c9d93('0x0')});},exports[_0x40d93e('0x3')]=function(_0x596d06,_0x2621d1){const _0x56c2f1=_0x40d93e;return client[_0x56c2f1('0x1')]('UpdateFaxQueueReport',{'body':_0x2621d1,'options':{'where':{'uniqueid':_0x596d06},'order':[['id','DESC']],'limit':0x1},'log':_0x56c2f1('0x4')});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/interval.js b/server/services/routing/rpc/interval.js index ddef37b..59ae122 100644 --- a/server/services/routing/rpc/interval.js +++ b/server/services/routing/rpc/interval.js @@ -1 +1 @@ -const a1181_0x6180=['name','GetInterval','getIntervals','Request','interval'];(function(_0x349d5d,_0x618053){const _0x285b47=function(_0x47ec46){while(--_0x47ec46){_0x349d5d['push'](_0x349d5d['shift']());}};_0x285b47(++_0x618053);}(a1181_0x6180,0x11c));const a1181_0x285b=function(_0x349d5d,_0x618053){_0x349d5d=_0x349d5d-0x0;let _0x285b47=a1181_0x6180[_0x349d5d];return _0x285b47;};const _0xc063f5=a1181_0x285b;'use strict';const client=require('../client');exports[_0xc063f5('0x3')]=function(){return function(){const _0x5420b0=a1181_0x285b;return client[_0x5420b0('0x4')](_0x5420b0('0x2'),{'options':{'raw':![],'where':{'IntervalId':null},'attributes':['id',_0x5420b0('0x1')],'include':[{'model':'Interval','as':'Intervals','attributes':['id',_0x5420b0('0x1'),_0x5420b0('0x0')]}]},'log':_0x5420b0('0x3')});};}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/mailInteraction.js b/server/services/routing/rpc/mailInteraction.js index e65d8cc..15f1850 100644 --- a/server/services/routing/rpc/mailInteraction.js +++ b/server/services/routing/rpc/mailInteraction.js @@ -1 +1 @@ -const a1182_0x4f3d=['UpdateMailInteraction','updateMailInteraction','AddTagsToMailInteraction','../client','update','Request','addTagsToChatInteraction'];(function(_0x495cf2,_0x4f3de1){const _0xa9720d=function(_0x2bf966){while(--_0x2bf966){_0x495cf2['push'](_0x495cf2['shift']());}};_0xa9720d(++_0x4f3de1);}(a1182_0x4f3d,0x1de));const a1182_0xa972=function(_0x495cf2,_0x4f3de1){_0x495cf2=_0x495cf2-0x0;let _0xa9720d=a1182_0x4f3d[_0x495cf2];return _0xa9720d;};const _0x19a3a8=a1182_0xa972;'use strict';const client=require(_0x19a3a8('0x1'));exports[_0x19a3a8('0x2')]=function(_0x2bf966,_0x27c250){const _0x4ae9ae=_0x19a3a8;return client[_0x4ae9ae('0x3')](_0x4ae9ae('0x5'),{'body':_0x27c250,'options':{'where':{'id':_0x2bf966}},'log':_0x4ae9ae('0x6')});},exports['addTags']=function(_0x43c8af,_0x7eae40){const _0x9ec083=_0x19a3a8;return client[_0x9ec083('0x3')](_0x9ec083('0x0'),{'body':_0x7eae40,'options':{'where':{'id':_0x43c8af}},'log':_0x9ec083('0x4')});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/mailMessage.js b/server/services/routing/rpc/mailMessage.js index f7311b5..86f8f94 100644 --- a/server/services/routing/rpc/mailMessage.js +++ b/server/services/routing/rpc/mailMessage.js @@ -1 +1 @@ -const a1183_0x2451=['createMailMessage','CreateMailMessage','../client','create'];(function(_0x515536,_0x24519d){const _0x497e3d=function(_0x1bf0b9){while(--_0x1bf0b9){_0x515536['push'](_0x515536['shift']());}};_0x497e3d(++_0x24519d);}(a1183_0x2451,0x158));const a1183_0x497e=function(_0x515536,_0x24519d){_0x515536=_0x515536-0x0;let _0x497e3d=a1183_0x2451[_0x515536];return _0x497e3d;};const _0x1b429e=a1183_0x497e;'use strict';const client=require(_0x1b429e('0x2'));exports[_0x1b429e('0x3')]=function(_0x1bf0b9){const _0x464794=_0x1b429e;return client['Request'](_0x464794('0x1'),{'body':_0x1bf0b9,'log':_0x464794('0x0')});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/mailQueue.js b/server/services/routing/rpc/mailQueue.js index c052274..0a300fa 100644 --- a/server/services/routing/rpc/mailQueue.js +++ b/server/services/routing/rpc/mailQueue.js @@ -1 +1 @@ -const a1184_0xbf94=['strategy','name','User','online','getMailQueues','GetMailQueue','timeout','../client','Request','mailPause'];(function(_0x352e5f,_0xbf94a9){const _0x160019=function(_0x818d74){while(--_0x818d74){_0x352e5f['push'](_0x352e5f['shift']());}};_0x160019(++_0xbf94a9);}(a1184_0xbf94,0x1ed));const a1184_0x1600=function(_0x352e5f,_0xbf94a9){_0x352e5f=_0x352e5f-0x0;let _0x160019=a1184_0xbf94[_0x352e5f];return _0x160019;};const _0x17f19e=a1184_0x1600;'use strict';const client=require(_0x17f19e('0x4'));exports[_0x17f19e('0x1')]=function(){return function(){const _0xd2bda4=a1184_0x1600;return client[_0xd2bda4('0x5')](_0xd2bda4('0x2'),{'options':{'raw':![],'attributes':['id',_0xd2bda4('0x8'),_0xd2bda4('0x3'),_0xd2bda4('0x7')],'include':[{'model':_0xd2bda4('0x9'),'as':'Agents','attributes':['id',_0xd2bda4('0x8'),_0xd2bda4('0x0'),_0xd2bda4('0x6')]}]},'log':'getMailQueues'});};}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/mailQueueReport.js b/server/services/routing/rpc/mailQueueReport.js index a36f58a..21ec923 100644 --- a/server/services/routing/rpc/mailQueueReport.js +++ b/server/services/routing/rpc/mailQueueReport.js @@ -1 +1 @@ -const a1185_0xc7da=['CreateMailQueueReport','DESC','UpdateMailQueueReport','Request','create','../client'];(function(_0x1278c2,_0xc7dafc){const _0x173a8e=function(_0x386c5f){while(--_0x386c5f){_0x1278c2['push'](_0x1278c2['shift']());}};_0x173a8e(++_0xc7dafc);}(a1185_0xc7da,0x157));const a1185_0x173a=function(_0x1278c2,_0xc7dafc){_0x1278c2=_0x1278c2-0x0;let _0x173a8e=a1185_0xc7da[_0x1278c2];return _0x173a8e;};const _0x57197c=a1185_0x173a;'use strict';const client=require(_0x57197c('0x4'));exports[_0x57197c('0x3')]=function(_0x386c5f){const _0x4f129f=_0x57197c;return client[_0x4f129f('0x2')](_0x4f129f('0x5'),{'body':_0x386c5f,'log':'CreateMailQueueReport'});},exports['update']=function(_0x1713f6,_0x16e208){const _0xa3a3d8=_0x57197c;return client[_0xa3a3d8('0x2')]('UpdateMailQueueReport',{'body':_0x16e208,'options':{'where':{'uniqueid':_0x1713f6},'order':[['id',_0xa3a3d8('0x0')]],'limit':0x1},'log':_0xa3a3d8('0x1')});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/openchannelInteraction.js b/server/services/routing/rpc/openchannelInteraction.js index d731d69..74c5aec 100644 --- a/server/services/routing/rpc/openchannelInteraction.js +++ b/server/services/routing/rpc/openchannelInteraction.js @@ -1 +1 @@ -const a1186_0xaa12=['AddTagsToOpenchannelInteraction','updateOpenchannelInteraction','addTags','../client','addTagsToChatInteraction','Request'];(function(_0x4ae8b0,_0xaa1257){const _0x412217=function(_0x2fe072){while(--_0x2fe072){_0x4ae8b0['push'](_0x4ae8b0['shift']());}};_0x412217(++_0xaa1257);}(a1186_0xaa12,0x15e));const a1186_0x4122=function(_0x4ae8b0,_0xaa1257){_0x4ae8b0=_0x4ae8b0-0x0;let _0x412217=a1186_0xaa12[_0x4ae8b0];return _0x412217;};const _0x3cb343=a1186_0x4122;'use strict';const client=require(_0x3cb343('0x1'));exports['update']=function(_0x2fe072,_0x23311c){const _0x254436=_0x3cb343;return client[_0x254436('0x3')]('UpdateOpenchannelInteraction',{'body':_0x23311c,'options':{'where':{'id':_0x2fe072}},'log':_0x254436('0x5')});},exports[_0x3cb343('0x0')]=function(_0x14d767,_0x459505){const _0x4a3466=_0x3cb343;return client[_0x4a3466('0x3')](_0x4a3466('0x4'),{'body':_0x459505,'options':{'where':{'id':_0x14d767}},'log':_0x4a3466('0x2')});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/openchannelMessage.js b/server/services/routing/rpc/openchannelMessage.js index ad88163..ee58fb1 100644 --- a/server/services/routing/rpc/openchannelMessage.js +++ b/server/services/routing/rpc/openchannelMessage.js @@ -1 +1 @@ -const a1187_0x2dbd=['create','Request'];(function(_0x25f014,_0x2dbd73){const _0x5342ca=function(_0x2af3ed){while(--_0x2af3ed){_0x25f014['push'](_0x25f014['shift']());}};_0x5342ca(++_0x2dbd73);}(a1187_0x2dbd,0xd6));const a1187_0x5342=function(_0x25f014,_0x2dbd73){_0x25f014=_0x25f014-0x0;let _0x5342ca=a1187_0x2dbd[_0x25f014];return _0x5342ca;};const _0x206279=a1187_0x5342;'use strict';const client=require('../client');exports[_0x206279('0x0')]=function(_0x2af3ed){const _0x14a12e=_0x206279;return client[_0x14a12e('0x1')]('CreateOpenchannelMessage',{'body':_0x2af3ed,'log':'createOpenchannelMessage'});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/openchannelQueue.js b/server/services/routing/rpc/openchannelQueue.js index d3660e7..07d0460 100644 --- a/server/services/routing/rpc/openchannelQueue.js +++ b/server/services/routing/rpc/openchannelQueue.js @@ -1 +1 @@ -const a1188_0x418c=['name','getOpenchannelQueues','../client','Agents','strategy','timeout','User','online','Request'];(function(_0x54e2ce,_0x418c58){const _0x27d89b=function(_0x88f615){while(--_0x88f615){_0x54e2ce['push'](_0x54e2ce['shift']());}};_0x27d89b(++_0x418c58);}(a1188_0x418c,0x10b));const a1188_0x27d8=function(_0x54e2ce,_0x418c58){_0x54e2ce=_0x54e2ce-0x0;let _0x27d89b=a1188_0x418c[_0x54e2ce];return _0x27d89b;};const _0x5c0af8=a1188_0x27d8;'use strict';const client=require(_0x5c0af8('0x5'));exports['getOpenchannelQueues']=function(){return function(){const _0x55ed81=a1188_0x27d8;return client[_0x55ed81('0x2')]('GetOpenchannelQueue',{'options':{'raw':![],'attributes':['id','name',_0x55ed81('0x8'),_0x55ed81('0x7')],'include':[{'model':_0x55ed81('0x0'),'as':_0x55ed81('0x6'),'attributes':['id',_0x55ed81('0x3'),_0x55ed81('0x1'),'openchannelPause']}]},'log':_0x55ed81('0x4')});};}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/openchannelQueueReport.js b/server/services/routing/rpc/openchannelQueueReport.js index c170ddf..167166f 100644 --- a/server/services/routing/rpc/openchannelQueueReport.js +++ b/server/services/routing/rpc/openchannelQueueReport.js @@ -1 +1 @@ -const a1189_0x457f=['../client','update','Request','CreateOpenchannelQueueReport','create','DESC','UpdateOpenchannelQueueReport'];(function(_0x578b5e,_0x457f31){const _0x371411=function(_0xa53622){while(--_0xa53622){_0x578b5e['push'](_0x578b5e['shift']());}};_0x371411(++_0x457f31);}(a1189_0x457f,0x109));const a1189_0x3714=function(_0x578b5e,_0x457f31){_0x578b5e=_0x578b5e-0x0;let _0x371411=a1189_0x457f[_0x578b5e];return _0x371411;};const _0x407415=a1189_0x3714;'use strict';const client=require(_0x407415('0x1'));exports[_0x407415('0x5')]=function(_0xa53622){const _0x44af13=_0x407415;return client[_0x44af13('0x3')](_0x44af13('0x4'),{'body':_0xa53622,'log':_0x44af13('0x4')});},exports[_0x407415('0x2')]=function(_0x133792,_0x45ef46){const _0x472111=_0x407415;return client[_0x472111('0x3')](_0x472111('0x0'),{'body':_0x45ef46,'options':{'where':{'uniqueid':_0x133792},'order':[['id',_0x472111('0x6')]],'limit':0x1},'log':_0x472111('0x0')});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/smsInteraction.js b/server/services/routing/rpc/smsInteraction.js index 1afc9da..de52be7 100644 --- a/server/services/routing/rpc/smsInteraction.js +++ b/server/services/routing/rpc/smsInteraction.js @@ -1 +1 @@ -const a1190_0x57ed=['../client','Request','addTags','AddTagsToSmsInteraction','UpdateSmsInteraction','updateSmsInteraction','addTagsToSmsInteraction'];(function(_0x5022d2,_0x57ed43){const _0x2c878d=function(_0x3b8ff6){while(--_0x3b8ff6){_0x5022d2['push'](_0x5022d2['shift']());}};_0x2c878d(++_0x57ed43);}(a1190_0x57ed,0x80));const a1190_0x2c87=function(_0x5022d2,_0x57ed43){_0x5022d2=_0x5022d2-0x0;let _0x2c878d=a1190_0x57ed[_0x5022d2];return _0x2c878d;};const _0x170d3a=a1190_0x2c87;'use strict';const client=require(_0x170d3a('0x5'));exports['update']=function(_0x3b8ff6,_0xf57c9c){const _0x4f968d=_0x170d3a;return client[_0x4f968d('0x6')](_0x4f968d('0x2'),{'body':_0xf57c9c,'options':{'where':{'id':_0x3b8ff6}},'log':_0x4f968d('0x3')});},exports[_0x170d3a('0x0')]=function(_0x2be83b,_0xb9ebef){const _0x343d17=_0x170d3a;return client[_0x343d17('0x6')](_0x343d17('0x1'),{'body':_0xb9ebef,'options':{'where':{'id':_0x2be83b}},'log':_0x343d17('0x4')});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/smsMessage.js b/server/services/routing/rpc/smsMessage.js index 9d61c6a..18eef63 100644 --- a/server/services/routing/rpc/smsMessage.js +++ b/server/services/routing/rpc/smsMessage.js @@ -1 +1 @@ -const a1191_0x4fb0=['createSmsMessage','create','CreateSmsMessage','../client'];(function(_0x632bd8,_0x4fb04a){const _0x5812a7=function(_0x471c56){while(--_0x471c56){_0x632bd8['push'](_0x632bd8['shift']());}};_0x5812a7(++_0x4fb04a);}(a1191_0x4fb0,0x1cb));const a1191_0x5812=function(_0x632bd8,_0x4fb04a){_0x632bd8=_0x632bd8-0x0;let _0x5812a7=a1191_0x4fb0[_0x632bd8];return _0x5812a7;};const _0x271444=a1191_0x5812;'use strict';const client=require(_0x271444('0x0'));exports[_0x271444('0x2')]=function(_0x471c56){const _0xc897ff=_0x271444;return client['Request'](_0xc897ff('0x3'),{'body':_0x471c56,'log':_0xc897ff('0x1')});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/smsQueue.js b/server/services/routing/rpc/smsQueue.js index 38c129d..6bbf0db 100644 --- a/server/services/routing/rpc/smsQueue.js +++ b/server/services/routing/rpc/smsQueue.js @@ -1 +1 @@ -const a1192_0x5dda=['smsPause','User','name','getSmsQueues','GetSmsQueue','Agents','timeout','../client'];(function(_0x5b5c3f,_0x5dda56){const _0x1bf4e2=function(_0x1d74d6){while(--_0x1d74d6){_0x5b5c3f['push'](_0x5b5c3f['shift']());}};_0x1bf4e2(++_0x5dda56);}(a1192_0x5dda,0x17f));const a1192_0x1bf4=function(_0x5b5c3f,_0x5dda56){_0x5b5c3f=_0x5b5c3f-0x0;let _0x1bf4e2=a1192_0x5dda[_0x5b5c3f];return _0x1bf4e2;};const _0x23f5de=a1192_0x1bf4;'use strict';const client=require(_0x23f5de('0x0'));exports[_0x23f5de('0x4')]=function(){return function(){const _0x6c3cd1=a1192_0x1bf4;return client['Request'](_0x6c3cd1('0x5'),{'options':{'raw':![],'attributes':['id',_0x6c3cd1('0x3'),_0x6c3cd1('0x7'),'strategy'],'include':[{'model':_0x6c3cd1('0x2'),'as':_0x6c3cd1('0x6'),'attributes':['id',_0x6c3cd1('0x3'),'online',_0x6c3cd1('0x1')]}]},'log':_0x6c3cd1('0x4')});};}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/smsQueueReport.js b/server/services/routing/rpc/smsQueueReport.js index b1a0bc3..8b29892 100644 --- a/server/services/routing/rpc/smsQueueReport.js +++ b/server/services/routing/rpc/smsQueueReport.js @@ -1 +1 @@ -const a1193_0x38c4=['../client','create','UpdateSmsQueueReport','Request','update','DESC','CreateSmsQueueReport'];(function(_0x68c1c2,_0x38c46b){const _0x467722=function(_0x4236e6){while(--_0x4236e6){_0x68c1c2['push'](_0x68c1c2['shift']());}};_0x467722(++_0x38c46b);}(a1193_0x38c4,0x79));const a1193_0x4677=function(_0x68c1c2,_0x38c46b){_0x68c1c2=_0x68c1c2-0x0;let _0x467722=a1193_0x38c4[_0x68c1c2];return _0x467722;};const _0x128485=a1193_0x4677;'use strict';const client=require(_0x128485('0x5'));exports[_0x128485('0x6')]=function(_0x4236e6){const _0x4cd60c=_0x128485;return client['Request'](_0x4cd60c('0x4'),{'body':_0x4236e6,'log':_0x4cd60c('0x4')});},exports[_0x128485('0x2')]=function(_0x452fe9,_0x40ca43){const _0x5d5eee=_0x128485;return client[_0x5d5eee('0x1')](_0x5d5eee('0x0'),{'body':_0x40ca43,'options':{'where':{'uniqueid':_0x452fe9},'order':[['id',_0x5d5eee('0x3')]],'limit':0x1},'log':'UpdateSmsQueueReport'});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/user.js b/server/services/routing/rpc/user.js index 55041e9..529bc90 100644 --- a/server/services/routing/rpc/user.js +++ b/server/services/routing/rpc/user.js @@ -1 +1 @@ -const a1194_0x44a6=['pauseType','smsCapacity','mailPause','faxCapacity','name','whatsappPause','openchannelPause','online','mailCapacity','openchannelCapacity','Request','faxPause','../client','whatsappCapacity','GetUser','getAgents'];(function(_0x4f9da9,_0x44a6d7){const _0x33a9fd=function(_0x4661bd){while(--_0x4661bd){_0x4f9da9['push'](_0x4f9da9['shift']());}};_0x33a9fd(++_0x44a6d7);}(a1194_0x44a6,0x1e4));const a1194_0x33a9=function(_0x4f9da9,_0x44a6d7){_0x4f9da9=_0x4f9da9-0x0;let _0x33a9fd=a1194_0x44a6[_0x4f9da9];return _0x33a9fd;};const _0x4af124=a1194_0x33a9;'use strict';const client=require(_0x4af124('0x8'));exports[_0x4af124('0xb')]=function(){return function(){const _0x23f0a7=a1194_0x33a9;return client[_0x23f0a7('0x6')](_0x23f0a7('0xa'),{'options':{'raw':!![],'where':{'role':'agent'},'attributes':['id',_0x23f0a7('0x0'),_0x23f0a7('0x3'),_0x23f0a7('0xc'),'lastPauseAt','voicePause','chatPause',_0x23f0a7('0xe'),_0x23f0a7('0x7'),'smsPause',_0x23f0a7('0x1'),_0x23f0a7('0x2'),'chatCapacity',_0x23f0a7('0x4'),_0x23f0a7('0xf'),_0x23f0a7('0xd'),_0x23f0a7('0x9'),_0x23f0a7('0x5')]},'log':_0x23f0a7('0xb')});};}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/whatsappInteraction.js b/server/services/routing/rpc/whatsappInteraction.js index 8cbec07..ff271b8 100644 --- a/server/services/routing/rpc/whatsappInteraction.js +++ b/server/services/routing/rpc/whatsappInteraction.js @@ -1 +1 @@ -const a1195_0x5b7e=['AddTagsToWhatsappInteraction','addTagsToWhatsappInteraction','UpdateWhatsappInteraction','addTags','updateWhatsappInteraction','update'];(function(_0x4f9d70,_0x5b7e10){const _0x252749=function(_0x400b63){while(--_0x400b63){_0x4f9d70['push'](_0x4f9d70['shift']());}};_0x252749(++_0x5b7e10);}(a1195_0x5b7e,0x183));const a1195_0x2527=function(_0x4f9d70,_0x5b7e10){_0x4f9d70=_0x4f9d70-0x0;let _0x252749=a1195_0x5b7e[_0x4f9d70];return _0x252749;};const _0x284643=a1195_0x2527;'use strict';const client=require('../client');exports[_0x284643('0x2')]=function(_0x400b63,_0x334541){const _0x563503=_0x284643;return client['Request'](_0x563503('0x5'),{'body':_0x334541,'options':{'where':{'id':_0x400b63}},'log':_0x563503('0x1')});},exports[_0x284643('0x0')]=function(_0x149039,_0x11fcda){const _0x191991=_0x284643;return client['Request'](_0x191991('0x3'),{'body':_0x11fcda,'options':{'where':{'id':_0x149039}},'log':_0x191991('0x4')});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/whatsappMessage.js b/server/services/routing/rpc/whatsappMessage.js index 6d1c327..e13901b 100644 --- a/server/services/routing/rpc/whatsappMessage.js +++ b/server/services/routing/rpc/whatsappMessage.js @@ -1 +1 @@ -const a1196_0x304b=['../client','CreateWhatsappMessage','Request'];(function(_0x4e7013,_0x304be3){const _0x3c302d=function(_0x215636){while(--_0x215636){_0x4e7013['push'](_0x4e7013['shift']());}};_0x3c302d(++_0x304be3);}(a1196_0x304b,0x7b));const a1196_0x3c30=function(_0x4e7013,_0x304be3){_0x4e7013=_0x4e7013-0x0;let _0x3c302d=a1196_0x304b[_0x4e7013];return _0x3c302d;};const _0x4323fb=a1196_0x3c30;'use strict';const client=require(_0x4323fb('0x0'));exports['create']=function(_0x215636){const _0x534e3b=_0x4323fb;return client[_0x534e3b('0x2')](_0x534e3b('0x1'),{'body':_0x215636,'log':'createWhatsappMessage'});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/whatsappQueue.js b/server/services/routing/rpc/whatsappQueue.js index 591d44d..96d51b9 100644 --- a/server/services/routing/rpc/whatsappQueue.js +++ b/server/services/routing/rpc/whatsappQueue.js @@ -1 +1 @@ -const a1197_0x53c4=['User','name','Agents','whatsappPause','Request','../client','online','getWhatsappQueues','GetWhatsappQueue'];(function(_0xd138cf,_0x53c421){const _0x301276=function(_0x4616a9){while(--_0x4616a9){_0xd138cf['push'](_0xd138cf['shift']());}};_0x301276(++_0x53c421);}(a1197_0x53c4,0x14f));const a1197_0x3012=function(_0xd138cf,_0x53c421){_0xd138cf=_0xd138cf-0x0;let _0x301276=a1197_0x53c4[_0xd138cf];return _0x301276;};const _0x5a8e05=a1197_0x3012;'use strict';const client=require(_0x5a8e05('0x3'));exports['getWhatsappQueues']=function(){return function(){const _0x46c59f=a1197_0x3012;return client[_0x46c59f('0x2')](_0x46c59f('0x6'),{'options':{'raw':![],'attributes':['id',_0x46c59f('0x8'),'timeout','strategy'],'include':[{'model':_0x46c59f('0x7'),'as':_0x46c59f('0x0'),'attributes':['id',_0x46c59f('0x8'),_0x46c59f('0x4'),_0x46c59f('0x1')]}]},'log':_0x46c59f('0x5')});};}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/whatsappQueueReport.js b/server/services/routing/rpc/whatsappQueueReport.js index 3a2c741..309af5c 100644 --- a/server/services/routing/rpc/whatsappQueueReport.js +++ b/server/services/routing/rpc/whatsappQueueReport.js @@ -1 +1 @@ -const a1198_0xe6c3=['../client','create','DESC','update','UpdateWhatsappQueueReport','Request','CreateWhatsappQueueReport'];(function(_0x589a3d,_0xe6c38f){const _0x28d234=function(_0x3096f5){while(--_0x3096f5){_0x589a3d['push'](_0x589a3d['shift']());}};_0x28d234(++_0xe6c38f);}(a1198_0xe6c3,0x128));const a1198_0x28d2=function(_0x589a3d,_0xe6c38f){_0x589a3d=_0x589a3d-0x0;let _0x28d234=a1198_0xe6c3[_0x589a3d];return _0x28d234;};const _0xdd1952=a1198_0x28d2;'use strict';const client=require(_0xdd1952('0x5'));exports[_0xdd1952('0x6')]=function(_0x3096f5){const _0x52f2a5=_0xdd1952;return client[_0x52f2a5('0x3')]('CreateWhatsappQueueReport',{'body':_0x3096f5,'log':_0x52f2a5('0x4')});},exports[_0xdd1952('0x1')]=function(_0x647be6,_0x1c2196){const _0x3a4657=_0xdd1952;return client[_0x3a4657('0x3')](_0x3a4657('0x2'),{'body':_0x1c2196,'options':{'where':{'uniqueid':_0x647be6},'order':[['id',_0x3a4657('0x0')]],'limit':0x1},'log':_0x3a4657('0x2')});}; \ No newline at end of file +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 diff --git a/server/services/routing/server/applications/agent.js b/server/services/routing/server/applications/agent.js index 996cce8..fc45464 100644 --- a/server/services/routing/server/applications/agent.js +++ b/server/services/routing/server/applications/agent.js @@ -1 +1 @@ -const a1199_0x3342=['format','name','next','timeout','join','routing','./strategy','close','[%s][AGENT]\x20ROUTING\x20END','toLowerCase','[%s][AGENT]\x20ROUTING\x20STOPPED','stop','START:%s','name\x20is\x20a\x20string\x20and\x20it\x20is\x20required','agent','atimeout','string','info','lodash','find','[%s][AGENT]\x20%s','message','channel','error','length','createQueue','agents','end','util','number','rules','map','complete','seq-queue'];(function(_0x4f916a,_0x3342b6){const _0x3bb4a9=function(_0x33de4a){while(--_0x33de4a){_0x4f916a['push'](_0x4f916a['shift']());}};_0x3bb4a9(++_0x3342b6);}(a1199_0x3342,0xbb));const a1199_0x3bb4=function(_0x4f916a,_0x3342b6){_0x4f916a=_0x4f916a-0x0;let _0x3bb4a9=a1199_0x3342[_0x4f916a];return _0x3bb4a9;};const _0x17898a=a1199_0x3bb4;'use strict';const schema=require('validate'),_=require(_0x17898a('0x1')),util=require(_0x17898a('0xb')),seqqueue=require(_0x17898a('0x10')),logger=require('../../../../config/logger')(_0x17898a('0x16')),strategy=require(_0x17898a('0x17')),queue=schema({'name':{'type':_0x17898a('0x21'),'required':!![],'message':_0x17898a('0x1e')},'timeout':{'type':_0x17898a('0xc'),'message':'timeout\x20is\x20a\x20number'}});function writeLog(_0x33de4a,_0x2bc8a6,_0x3ce933){const _0x2a2b3d=_0x17898a;return logger[_0x2a2b3d('0x0')](util[_0x2a2b3d('0x11')]('[%s][AGENT][NAME:%s][STATUS:%s]',_0x33de4a,_0x2bc8a6[_0x2a2b3d('0x12')],_0x3ce933));}function handleFindAgent(_0x931cc7){return function(_0x588bdc){const _0x4cd5d2=a1199_0x3bb4;return _0x588bdc[_0x4cd5d2('0x12')][_0x4cd5d2('0x1a')]()===_0x931cc7[_0x4cd5d2('0x1a')]();};}exports['consequence']=function(_0x25ab79,_0x3f2d42,_0x4ccae5,_0x10bbe8){return function(_0x32951a){const _0xfb6725=a1199_0x3bb4;try{const _0x407194={'name':_0x3f2d42[0x0],'timeout':_0x3f2d42[0x1]},_0x297486=queue['validate'](_0x407194,{'typecast':!![]});if(_0x297486[_0xfb6725('0x7')])logger['error'](_0xfb6725('0x3'),_0x25ab79,_[_0xfb6725('0xe')](_0x297486,_0xfb6725('0x4'))[_0xfb6725('0x15')](',\x20')),_0x32951a['stop']();else{const _0x1c272b=_[_0xfb6725('0x2')](_0x4ccae5[_0xfb6725('0x9')],handleFindAgent(_0x407194[_0xfb6725('0x12')]));if(_0x1c272b){const _0x41c3e2=(_0x407194[_0xfb6725('0x14')]||0xa)*0x3e8;let _0x2c9eeb;const _0x32a086=seqqueue[_0xfb6725('0x8')](_0x41c3e2);_0x32a086['id']=_0x25ab79,_0x32a086[_0xfb6725('0x20')]=_0x41c3e2,_0x32a086[_0xfb6725('0x5')]=_0x10bbe8[_0xfb6725('0x5')],writeLog(_0x25ab79,_0x1c272b,util[_0xfb6725('0x11')](_0xfb6725('0x1d'),_0x41c3e2)),_0x4ccae5[_0xfb6725('0xd')][_0x25ab79]['on'](_0xfb6725('0xa'),function(){const _0x533536=_0xfb6725;logger[_0x533536('0x0')](_0x533536('0x1b'),_0x25ab79),clearTimeout(_0x2c9eeb),_0x2c9eeb=undefined,_0x32a086[_0x533536('0x18')](),_0x4ccae5['rules'][_0x25ab79]&&delete _0x4ccae5[_0x533536('0xd')][_0x25ab79],_0x32951a['stop']();}),_0x4ccae5[_0xfb6725('0xd')][_0x25ab79]['on'](_0xfb6725('0xf'),function(){const _0x481d2d=_0xfb6725;_0x4ccae5[_0x481d2d('0xd')][_0x25ab79]&&delete _0x4ccae5[_0x481d2d('0xd')][_0x25ab79];}),_0x2c9eeb=setTimeout(function(){const _0x3ec005=_0xfb6725;logger['info'](_0x3ec005('0x19'),_0x25ab79),clearTimeout(_0x2c9eeb),_0x32a086[_0x3ec005('0x18')](),_0x32951a[_0x3ec005('0x13')]();},_0x41c3e2),strategy[_0xfb6725('0x1f')](_0x32a086,_0x1c272b,_0x4ccae5,_0x10bbe8);}else logger[_0xfb6725('0x6')]('[%s][AGENT]\x20agent\x20not\x20found\x20%s',_0x25ab79,_0x407194[_0xfb6725('0x12')]),_0x32951a[_0xfb6725('0x1c')]();}}catch(_0x11a1c7){console['log'](_0x11a1c7),logger[_0xfb6725('0x6')]('[%s][QUEUE]\x20%s',_0x25ab79,_0x11a1c7['stack']),_0x32951a[_0xfb6725('0x1c')]();}};}; \ No newline at end of file +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 diff --git a/server/services/routing/server/applications/amazonlex.js b/server/services/routing/server/applications/amazonlex.js index af26a40..a688c59 100644 --- a/server/services/routing/server/applications/amazonlex.js +++ b/server/services/routing/server/applications/amazonlex.js @@ -1 +1 @@ -const a1200_0x4c27=['consequence','toString','interaction','../../../../config/logger','InteractionId','AccountId','account','create','../../rpc/smsMessage','../../rpc/mailMessage','next','../../rpc/chatMessage','[%s][AMAZONLEX]\x20%s','isEmpty','../../rpc/faxMessage','getMustacheRender','isNil','amazonlex','LexRuntime','routing','./utils','lodash','channel','UserId','Agent\x20is\x20managing\x20the\x20interaction.\x20Go\x20to\x20next\x20application.','aws-sdk','upperFirst','[%s][AMAZONLEX]\x20Welcome\x20Message\x20is\x20empty.\x20It\x20will\x20wait\x20for\x20a\x20message\x20from\x20customer!','chat','stringify','stop','message','format','Message','postText','out','info','YYYY-MM-DD\x20HH:mm:ss','contact','../../rpc/openchannelMessage','catch','finally','dialogState','created','../../rpc/whatsappMessage','then','body','error','ChatWebsiteId'];(function(_0x39dd9a,_0x4c275f){const _0x5a74fd=function(_0x334098){while(--_0x334098){_0x39dd9a['push'](_0x39dd9a['shift']());}};_0x5a74fd(++_0x4c275f);}(a1200_0x4c27,0x1a9));const a1200_0x5a74=function(_0x39dd9a,_0x4c275f){_0x39dd9a=_0x39dd9a-0x0;let _0x5a74fd=a1200_0x4c27[_0x39dd9a];return _0x5a74fd;};const _0x23c283=a1200_0x5a74;'use strict';const _=require(_0x23c283('0x25')),moment=require('moment'),AWS=require(_0x23c283('0x29')),utils=require(_0x23c283('0x24')),logger=require(_0x23c283('0x13'))(_0x23c283('0x23')),rpc={'chatMessage':require(_0x23c283('0x1b')),'openchannelMessage':require(_0x23c283('0x6')),'mailMessage':require(_0x23c283('0x19')),'smsMessage':require(_0x23c283('0x18')),'faxMessage':require(_0x23c283('0x1e')),'whatsappMessage':require(_0x23c283('0xb'))};exports[_0x23c283('0x10')]=function(_0x334098,_0x7849f4){return function(_0x4a26b6){const _0x147c6a=a1200_0x5a74;try{if(!_[_0x147c6a('0x20')](this['interaction'][_0x147c6a('0x27')]))return logger['info'](_0x147c6a('0x1c'),_0x334098,_0x147c6a('0x28')),_0x4a26b6[_0x147c6a('0x1a')]();const _0x5873d9={'ContactId':this[_0x147c6a('0x5')]['id'],'sentAt':moment()[_0x147c6a('0x30')](_0x147c6a('0x4')),'direction':_0x147c6a('0x2')},_0x9375de=this[_0x147c6a('0x26')];_0x9375de===_0x147c6a('0x2c')?_0x5873d9[_0x147c6a('0xf')]=this[_0x147c6a('0x16')]['id']:_0x5873d9[_['upperFirst'](_0x9375de)+_0x147c6a('0x15')]=this[_0x147c6a('0x16')]['id'];_0x5873d9[_[_0x147c6a('0x2a')](_0x9375de)+_0x147c6a('0x14')]=this['interaction']['id'];if(this[_0x147c6a('0x12')][_0x147c6a('0xa')]){const _0x59e0e6=_0x7849f4[0x4];if(!_[_0x147c6a('0x1d')](_0x59e0e6))return _0x5873d9[_0x147c6a('0xd')]=utils[_0x147c6a('0x1f')](_0x59e0e6,this),rpc[_0x9375de+_0x147c6a('0x0')][_0x147c6a('0x17')](_0x5873d9)['then'](function(){const _0x3d1de9=_0x147c6a;logger[_0x3d1de9('0x3')](_0x3d1de9('0x1c'),_0x334098,_0x5873d9[_0x3d1de9('0xd')]);})[_0x147c6a('0x7')](function(_0x581054){const _0x40fe9c=_0x147c6a;logger['error'](_0x40fe9c('0x1c'),_0x334098,JSON['stringify'](_0x581054));})[_0x147c6a('0x8')](function(){const _0x4ebb75=_0x147c6a;logger[_0x4ebb75('0x3')]('[%s][AMAZONLEX]\x20Welcome\x20Message\x20has\x20been\x20sent!',_0x334098),_0x4a26b6[_0x4ebb75('0x2e')]();});else logger['info'](_0x147c6a('0x2b'),_0x334098),_0x4a26b6[_0x147c6a('0x2e')]();}else{const _0x21103b=this,_0x6218b7=new AWS[(_0x147c6a('0x22'))]({'accessKeyId':_0x7849f4[0x0],'secretAccessKey':_0x7849f4[0x1],'region':_0x7849f4[0x2]}),_0x16d1cf={'botAlias':'$LATEST','botName':_0x7849f4[0x3],'inputText':this[_0x147c6a('0x2f')]['body'],'userId':this[_0x147c6a('0x26')]+':'+this[_0x147c6a('0x12')]['id'][_0x147c6a('0x11')]()};_0x6218b7[_0x147c6a('0x1')](_0x16d1cf,function(_0x70c9b5,_0x5a2edf){const _0xe49b11=_0x147c6a;if(_0x70c9b5)logger[_0xe49b11('0xe')](_0xe49b11('0x1c'),_0x334098,_0x70c9b5[_0xe49b11('0x2f')]),_0x4a26b6[_0xe49b11('0x1a')]();else{if(_0x5a2edf&&_0x5a2edf['message'])return _0x21103b[_0xe49b11('0xd')][_0xe49b11('0x21')]=_0x5a2edf,_0x5873d9[_0xe49b11('0xd')]=_0x5a2edf[_0xe49b11('0x2f')],rpc[_0x9375de+'Message'][_0xe49b11('0x17')](_0x5873d9)[_0xe49b11('0xc')](function(){const _0x21f0e6=_0xe49b11;logger['info']('[%s][AMAZONLEX]\x20%s',_0x334098,_0x5873d9[_0x21f0e6('0xd')]),_0x5a2edf[_0x21f0e6('0x9')]=='Failed'?_0x4a26b6['next']():_0x4a26b6[_0x21f0e6('0x2e')]();})[_0xe49b11('0x7')](function(_0x39f2b7){const _0x2c7f46=_0xe49b11;logger[_0x2c7f46('0xe')](_0x2c7f46('0x1c'),_0x334098,JSON[_0x2c7f46('0x2d')](_0x39f2b7)),_0x4a26b6[_0x2c7f46('0x1a')]();});else _0x4a26b6[_0xe49b11('0x1a')]();}});}}catch(_0x4bd3af){logger[_0x147c6a('0xe')](_0x147c6a('0x1c'),_0x334098,JSON['stringify'](_0x4bd3af)),_0x4a26b6[_0x147c6a('0x2e')]();}};}; \ No newline at end of file +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 diff --git a/server/services/routing/server/applications/autoreply.js b/server/services/routing/server/applications/autoreply.js index 59f2ef9..7b5d7bb 100644 --- a/server/services/routing/server/applications/autoreply.js +++ b/server/services/routing/server/applications/autoreply.js @@ -1 +1 @@ -const a1201_0x276a=['account','../../mailRpc','interaction','finally','auth','[%s][AUTOREPLY]\x20%s','YYYY-MM-DD\x20HH:mm:ss','user','upperFirst','','stringify','startsWith','sendMailMessage','from','./utils','subject','chat'];(function(_0x379d14,_0x276a36){const _0x4030ba=function(_0x5056ff){while(--_0x5056ff){_0x379d14['push'](_0x379d14['shift']());}};_0x4030ba(++_0x276a36);}(a1201_0x276a,0x19a));const a1201_0x4030=function(_0x379d14,_0x276a36){_0x379d14=_0x379d14-0x0;let _0x4030ba=a1201_0x276a[_0x379d14];return _0x4030ba;};const _0x3dd77e=a1201_0x4030;'use strict';const _=require('lodash'),moment=require('moment'),utils=require(_0x3dd77e('0x15')),logger=require(_0x3dd77e('0x2c'))('routing'),rpc={'chatMessage':require(_0x3dd77e('0x26')),'openchannelMessage':require(_0x3dd77e('0x28')),'mailMessage':require(_0x3dd77e('0xa')),'smsMessage':require(_0x3dd77e('0x39')),'faxMessage':require(_0x3dd77e('0x30')),'whatsappMessage':require(_0x3dd77e('0x2f'))},mailRpc=require(_0x3dd77e('0x19'));exports['consequence']=function(_0x5056ff,_0x4c7d77){return function(_0x4431e0){const _0x5318cd=a1201_0x4030;try{if(_0x4c7d77[0x0]==='1'&&(_[_0x5318cd('0x5')](this[_0x5318cd('0x1a')][_0x5318cd('0x23')])||!this[_0x5318cd('0x1a')]['created']))return logger['info']('[%s][AUTOREPLY]\x20%s',_0x5056ff,'Autoreply\x20already\x20sent'),_0x4431e0[_0x5318cd('0x2e')]();const _0x460656=this[_0x5318cd('0x35')],_0x21a278={'body':utils[_0x5318cd('0x3a')](_0x4c7d77[0x1],this),'ContactId':this[_0x5318cd('0x3b')]['id'],'sentAt':moment()[_0x5318cd('0x2b')](_0x5318cd('0x1e')),'direction':_0x5318cd('0x1')};this[_0x5318cd('0x3c')]&&(_0x21a278['to']=this[_0x5318cd('0x3c')][_0x5318cd('0x14')]||'',_0x21a278['cc']=this[_0x5318cd('0x3c')]['cc']||'',_0x21a278['from']=this[_0x5318cd('0x3c')]['to']||'',_0x21a278[_0x5318cd('0x6')]=this[_0x5318cd('0x3c')][_0x5318cd('0x6')]||'',_0x21a278[_0x5318cd('0x27')]=!![],this[_0x5318cd('0x3c')][_0x5318cd('0x16')]&&(_0x21a278[_0x5318cd('0x16')]='',_0x21a278['subject']+=_[_0x5318cd('0x12')](this[_0x5318cd('0x3c')][_0x5318cd('0x16')],_0x5318cd('0x25'))?'':_0x5318cd('0x29'),_0x21a278[_0x5318cd('0x16')]+=this[_0x5318cd('0x3c')][_0x5318cd('0x16')]));this[_0x5318cd('0x35')]===_0x5318cd('0x17')?_0x21a278[_0x5318cd('0x4')]=this[_0x5318cd('0x18')]['id']:_0x21a278[_[_0x5318cd('0x20')](this[_0x5318cd('0x35')])+_0x5318cd('0x37')]=this[_0x5318cd('0x18')]['id'];_0x21a278[_[_0x5318cd('0x20')](this['channel'])+_0x5318cd('0xc')]=this[_0x5318cd('0x1a')]['id'];if(rpc[this['channel']+_0x5318cd('0xf')]){if(this[_0x5318cd('0x35')]===_0x5318cd('0x8')){const _0x7f7642={'tls':{'rejectUnauthorized':![]}};return this['account'][_0x5318cd('0x32')][_0x5318cd('0x22')]?_0x7f7642[_0x5318cd('0x22')]=this[_0x5318cd('0x18')][_0x5318cd('0x32')][_0x5318cd('0x22')]:(_0x7f7642[_0x5318cd('0x2a')]=this[_0x5318cd('0x18')]['Smtp'][_0x5318cd('0x2a')],_0x7f7642[_0x5318cd('0x31')]=this[_0x5318cd('0x18')][_0x5318cd('0x32')][_0x5318cd('0x31')],_0x7f7642[_0x5318cd('0x9')]=this[_0x5318cd('0x18')][_0x5318cd('0x32')][_0x5318cd('0x9')]),this['account']['Smtp']['authentication']&&(_0x7f7642[_0x5318cd('0x1c')]={'user':this[_0x5318cd('0x18')][_0x5318cd('0x32')][_0x5318cd('0x1f')],'pass':this[_0x5318cd('0x18')][_0x5318cd('0x32')][_0x5318cd('0xb')]}),_0x21a278[_0x5318cd('0x33')]=this[_0x5318cd('0x3c')][_0x5318cd('0x34')],_0x21a278[_0x5318cd('0x36')]=''+_[_0x5318cd('0x0')](_0x21a278[_0x5318cd('0x38')],_0x5318cd('0x7'),_0x5318cd('0x21'))+_0x5318cd('0x10'),mailRpc[_0x5318cd('0x13')](_0x7f7642,_0x21a278)[_0x5318cd('0xd')](function(_0x2b7296){const _0x3e786d=_0x5318cd;return logger[_0x3e786d('0x3d')]('[%s][AUTOREPLY]\x20SMTP\x20SENT',_0x5056ff),_0x21a278['messageId']=_0x2b7296['message'][_0x3e786d('0x34')],rpc[_0x460656+_0x3e786d('0xf')][_0x3e786d('0x2')](_0x21a278);})['then'](function(_0x149a4e){const _0x49a505=_0x5318cd;logger[_0x49a505('0x3d')](_0x49a505('0x1d'),_0x5056ff,JSON[_0x49a505('0x11')](_0x149a4e));})[_0x5318cd('0xe')](function(_0x2d34ee){const _0x38f2fc=_0x5318cd;logger[_0x38f2fc('0x2d')](_0x38f2fc('0x3'),_0x5056ff,JSON[_0x38f2fc('0x11')](_0x2d34ee));})['finally'](function(){_0x4431e0['next']();});}else return rpc[this[_0x5318cd('0x35')]+_0x5318cd('0xf')]['create'](_0x21a278)[_0x5318cd('0xd')](function(){const _0xfec8b7=_0x5318cd;logger[_0xfec8b7('0x3d')](_0xfec8b7('0x1d'),_0x5056ff,_0x21a278[_0xfec8b7('0x38')]);})[_0x5318cd('0xe')](function(_0x522624){const _0x1511c6=_0x5318cd;logger[_0x1511c6('0x2d')]('[%s][AUTOREPLY]\x20%s',_0x5056ff,JSON[_0x1511c6('0x11')](_0x522624));})[_0x5318cd('0x1b')](function(){const _0x16f4b4=_0x5318cd;_0x4431e0[_0x16f4b4('0x2e')]();});}}catch(_0x577de0){logger[_0x5318cd('0x2d')](_0x5318cd('0x1d'),_0x5056ff,JSON[_0x5318cd('0x11')](_0x577de0)),_0x4431e0[_0x5318cd('0x24')]();}};}; \ No newline at end of file +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 diff --git a/server/services/routing/server/applications/close.js b/server/services/routing/server/applications/close.js index bde0dfd..1512e3f 100644 --- a/server/services/routing/server/applications/close.js +++ b/server/services/routing/server/applications/close.js @@ -1 +1 @@ -const a1202_0x25c8=['routing','update','../../../../config/logger','consequence','format','moment','Interaction','system','finally','[%s][CLOSE]\x20%s','../../rpc/openchannelInteraction','error','info','then','../../rpc/whatsappInteraction','stop','stringify','channel','../../rpc/faxInteraction'];(function(_0x1b5c69,_0x25c8f6){const _0x54076d=function(_0xc272b8){while(--_0xc272b8){_0x1b5c69['push'](_0x1b5c69['shift']());}};_0x54076d(++_0x25c8f6);}(a1202_0x25c8,0x194));const a1202_0x5407=function(_0x1b5c69,_0x25c8f6){_0x1b5c69=_0x1b5c69-0x0;let _0x54076d=a1202_0x25c8[_0x1b5c69];return _0x54076d;};const _0x179d9c=a1202_0x5407;'use strict';const moment=require(_0x179d9c('0x0')),logger=require(_0x179d9c('0x10'))(_0x179d9c('0xe')),rpc={'chatInteraction':require('../../rpc/chatInteraction'),'openchannelInteraction':require(_0x179d9c('0x5')),'smsInteraction':require('../../rpc/smsInteraction'),'mailInteraction':require('../../rpc/mailInteraction'),'faxInteraction':require(_0x179d9c('0xd')),'whatsappInteraction':require(_0x179d9c('0x9'))};exports[_0x179d9c('0x11')]=function(_0xc272b8,_0x13e32a,_0x345694,_0x1caef5){return function(_0x298d37){const _0x46944f=a1202_0x5407;try{logger[_0x46944f('0x7')]('[%s][CLOSE]\x20reason\x20%s',_0xc272b8,_0x13e32a[0x0]);const _0x3fc36b={'closed':0x1,'closedAt':moment()[_0x46944f('0x12')]('YYYY-MM-DD\x20HH:mm:ss'),'closeReason':_0x46944f('0x2'),'disposition':_0x13e32a[0x0]};rpc[_0x1caef5[_0x46944f('0xc')]+'Interaction']&&rpc[_0x1caef5[_0x46944f('0xc')]+_0x46944f('0x1')][_0x46944f('0xf')](_0x1caef5['interaction']['id'],_0x3fc36b)[_0x46944f('0x8')](function(){const _0x4aa472=_0x46944f;logger[_0x4aa472('0x7')]('[%s][CLOSE]\x20interaction\x20%s\x20has\x20been\x20closed!',_0xc272b8,_0x1caef5['interaction']['id']);})['catch'](function(_0x5cf821){const _0x2a56ce=_0x46944f;logger['error'](_0x2a56ce('0x4'),_0xc272b8,JSON[_0x2a56ce('0xb')](_0x5cf821));})[_0x46944f('0x3')](function(){_0x298d37['stop']();});}catch(_0x1b2f21){logger[_0x46944f('0x6')](_0x46944f('0x4'),_0xc272b8,JSON[_0x46944f('0xb')](_0x1b2f21)),_0x298d37[_0x46944f('0xa')]();}};}; \ No newline at end of file +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 diff --git a/server/services/routing/server/applications/dialogflow.js b/server/services/routing/server/applications/dialogflow.js index fef561d..59658d0 100644 --- a/server/services/routing/server/applications/dialogflow.js +++ b/server/services/routing/server/applications/dialogflow.js @@ -1 +1 @@ -const a1203_0x9039=['stop','../../../../config/logger','out','stringify','UserId','contact','info','created','isNil','../../rpc/faxMessage','../../rpc/whatsappMessage','AccountId','chat','[%s][DIALOGFLOW]\x20Welcome\x20Message\x20is\x20empty.\x20It\x20will\x20wait\x20for\x20a\x20message\x20from\x20customer!','interaction','./utils','md5','fulfillment','then','[%s][DIALOGFLOW]\x20%s','../../rpc/smsMessage','endConversation','next','../../rpc/openchannelMessage','isEmpty','result','apiai-promise','body','metadata','Message','catch','message','create','error','lodash','finally','InteractionId','dialogflow','../../rpc/mailMessage'];(function(_0xaa7f54,_0x9039d2){const _0xc0d9c4=function(_0x41ef36){while(--_0x41ef36){_0xaa7f54['push'](_0xaa7f54['shift']());}};_0xc0d9c4(++_0x9039d2);}(a1203_0x9039,0x149));const a1203_0xc0d9=function(_0xaa7f54,_0x9039d2){_0xaa7f54=_0xaa7f54-0x0;let _0xc0d9c4=a1203_0x9039[_0xaa7f54];return _0xc0d9c4;};const _0x28d2ae=a1203_0xc0d9;'use strict';const _=require(_0x28d2ae('0x11')),moment=require('moment'),apiai=require(_0x28d2ae('0x9')),md5=require(_0x28d2ae('0x26')),utils=require(_0x28d2ae('0x25')),logger=require(_0x28d2ae('0x17'))('routing'),rpc={'chatMessage':require('../../rpc/chatMessage'),'openchannelMessage':require(_0x28d2ae('0x6')),'mailMessage':require(_0x28d2ae('0x15')),'smsMessage':require(_0x28d2ae('0x3')),'faxMessage':require(_0x28d2ae('0x1f')),'whatsappMessage':require(_0x28d2ae('0x20'))};exports['consequence']=function(_0x41ef36,_0x21d53f){return function(_0x225277){const _0x49d82b=a1203_0xc0d9;try{if(!_[_0x49d82b('0x1e')](this[_0x49d82b('0x24')][_0x49d82b('0x1a')]))return logger[_0x49d82b('0x1c')]('[%s][DIALOGFLOW]\x20%s',_0x41ef36,'Agent\x20is\x20managing\x20the\x20interaction.\x20Go\x20to\x20next\x20application.'),_0x225277[_0x49d82b('0x5')]();const _0x19fb44={'ContactId':this[_0x49d82b('0x1b')]['id'],'sentAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'direction':_0x49d82b('0x18')},_0x1b54da=this['channel'];_0x1b54da===_0x49d82b('0x22')?_0x19fb44['ChatWebsiteId']=this['account']['id']:_0x19fb44[_['upperFirst'](_0x1b54da)+_0x49d82b('0x21')]=this['account']['id'];_0x19fb44[_['upperFirst'](_0x1b54da)+_0x49d82b('0x13')]=this['interaction']['id'];if(this[_0x49d82b('0x24')][_0x49d82b('0x1d')]){const _0x4743e8=_0x21d53f[0x2];if(!_[_0x49d82b('0x7')](_0x4743e8))return _0x19fb44[_0x49d82b('0xa')]=utils['getMustacheRender'](_0x4743e8,this),rpc[_0x1b54da+_0x49d82b('0xc')][_0x49d82b('0xf')](_0x19fb44)[_0x49d82b('0x1')](function(){const _0x133441=_0x49d82b;logger[_0x133441('0x1c')](_0x133441('0x2'),_0x41ef36,_0x19fb44[_0x133441('0xa')]);})['catch'](function(_0x45bbea){const _0x55e5cf=_0x49d82b;logger['error'](_0x55e5cf('0x2'),_0x41ef36,JSON[_0x55e5cf('0x19')](_0x45bbea));})[_0x49d82b('0x12')](function(){const _0x4486fb=_0x49d82b;logger[_0x4486fb('0x1c')]('[%s][DIALOGFLOW]\x20Welcome\x20Message\x20has\x20been\x20sent!',_0x41ef36),_0x225277[_0x4486fb('0x16')]();});else logger[_0x49d82b('0x1c')](_0x49d82b('0x23'),_0x41ef36),_0x225277[_0x49d82b('0x16')]();}else{const _0x2c1abc=this,_0xc86289=apiai(_0x21d53f[0x0],{'language':_0x21d53f[0x1]||'en'});return _0xc86289['textRequest'](this[_0x49d82b('0xe')][_0x49d82b('0xa')],{'sessionId':md5(this[_0x49d82b('0x24')]['id'])})['then'](function(_0x50d2e2){const _0x350e55=_0x49d82b;return _0x2c1abc[_0x350e55('0xa')][_0x350e55('0x14')]=_0x50d2e2,_0x19fb44[_0x350e55('0xa')]=_0x50d2e2[_0x350e55('0x8')][_0x350e55('0x0')]['speech'],rpc[_0x1b54da+_0x350e55('0xc')][_0x350e55('0xf')](_0x19fb44)[_0x350e55('0x1')](function(){const _0x1af7c7=_0x350e55;logger[_0x1af7c7('0x1c')]('[%s][DIALOGFLOW]\x20%s',_0x41ef36,_0x19fb44[_0x1af7c7('0xa')]),_0x50d2e2[_0x1af7c7('0x8')][_0x1af7c7('0xb')][_0x1af7c7('0x4')]?_0x225277[_0x1af7c7('0x5')]():_0x225277[_0x1af7c7('0x16')]();})['catch'](function(_0x57caf3){const _0x18a49d=_0x350e55;logger['error'](_0x18a49d('0x2'),_0x41ef36,JSON[_0x18a49d('0x19')](_0x57caf3)),_0x225277[_0x18a49d('0x5')]();});})[_0x49d82b('0xd')](function(_0x3b4612){const _0x13a2f8=_0x49d82b;logger[_0x13a2f8('0x10')](_0x13a2f8('0x2'),_0x41ef36,_0x3b4612['message']),_0x225277[_0x13a2f8('0x5')]();});}}catch(_0x267679){logger[_0x49d82b('0x10')]('[%s][DIALOGFLOW]\x20%s',_0x41ef36,JSON[_0x49d82b('0x19')](_0x267679)),_0x225277[_0x49d82b('0x16')]();}};}; \ No newline at end of file +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 diff --git a/server/services/routing/server/applications/gotoif.js b/server/services/routing/server/applications/gotoif.js index f631cd8..2f5a3ed 100644 --- a/server/services/routing/server/applications/gotoif.js +++ b/server/services/routing/server/applications/gotoif.js @@ -1 +1 @@ -const a1204_0x8703=['[%s][GOTOIF]\x20priority\x20%s\x20not\x20found','stop','info','lodash','./utils','replace','consequence','number','next','condition\x20is\x20a\x20string\x20and\x20it\x20is\x20required','map','[%s][GOTOIF]\x20eval\x20error:\x20%s','[%s][GOTOIF]\x20condition\x20%s\x20is\x20%s\x20try\x20goto\x20priority\x20%s','stringify','../../../../config/logger','priority\x20true\x20is\x20a\x20number','[%s][GOTOIF]\x20%s','getMustacheRender','length','error','fromString','string','routing','priority\x20false\x20is\x20a\x20number','validate'];(function(_0x5f34e1,_0x8703a0){const _0x573811=function(_0xb91e21){while(--_0xb91e21){_0x5f34e1['push'](_0x5f34e1['shift']());}};_0x573811(++_0x8703a0);}(a1204_0x8703,0x75));const a1204_0x5738=function(_0x5f34e1,_0x8703a0){_0x5f34e1=_0x5f34e1-0x0;let _0x573811=a1204_0x8703[_0x5f34e1];return _0x573811;};const _0x175b51=a1204_0x5738;'use strict';const schema=require(_0x175b51('0x7')),_=require(_0x175b51('0xb')),htmlToText=require('html-to-text'),utils=require(_0x175b51('0xc')),logger=require(_0x175b51('0x16'))(_0x175b51('0x5')),gotoif=schema({'condition':{'type':_0x175b51('0x4'),'required':!![],'message':_0x175b51('0x11')},'priorityTrue':{'type':_0x175b51('0xf'),'message':_0x175b51('0x17')},'priorityFalse':{'type':'number','message':_0x175b51('0x6')}});exports[_0x175b51('0xe')]=function(_0xb91e21,_0x4fc331){return function(_0x5908be){const _0x406a43=a1204_0x5738;try{const _0x3fb694={'condition':htmlToText[_0x406a43('0x3')](utils[_0x406a43('0x0')](_0x4fc331[0x0],this),{'wordwrap':![]})[_0x406a43('0xd')](/<\/?[^>]+(>|$)/g,''),'priorityTrue':_0x4fc331[0x1],'priorityFalse':_0x4fc331[0x2]},_0x4fd120=gotoif['validate'](_0x3fb694,{'typecast':!![]});if(_0x4fd120[_0x406a43('0x1')])logger[_0x406a43('0x2')](_0x406a43('0x18'),_0xb91e21,_[_0x406a43('0x12')](_0x4fd120,'message')['join'](',\x20')),_0x5908be[_0x406a43('0x9')]();else try{const _0x30f2da=eval('('+_0x3fb694['condition']+')'),_0x21d5ea=_0x30f2da?_0x3fb694['priorityTrue']:_0x3fb694['priorityFalse'];logger[_0x406a43('0xa')](_0x406a43('0x14'),_0xb91e21,_0x3fb694['condition'],_0x30f2da,_0x21d5ea||_0x406a43('0x10'));if(_0x21d5ea){const _0x45950d=_['findIndex'](_0x5908be['rules'](),{'p':_0x21d5ea});_0x45950d>=0x0?(logger[_0x406a43('0xa')]('[%s][GOTOIF]\x20priority\x20%s\x20found\x20at\x20index:\x20%s',_0xb91e21,_0x21d5ea||_0x406a43('0x10'),_0x45950d),_0x5908be['next'](_0x45950d)):(logger[_0x406a43('0xa')](_0x406a43('0x8'),_0xb91e21,_0x21d5ea||_0x406a43('0x10')),_0x5908be['stop']());}else _0x5908be[_0x406a43('0x10')]();}catch(_0x69b62f){logger['error'](_0x406a43('0x13'),_0xb91e21,_0x69b62f['message']),_0x5908be['stop']();}}catch(_0x55f045){logger[_0x406a43('0x2')](_0x406a43('0x18'),_0xb91e21,JSON[_0x406a43('0x15')](_0x55f045)),_0x5908be[_0x406a43('0x9')]();}};}; \ No newline at end of file +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 diff --git a/server/services/routing/server/applications/gotop.js b/server/services/routing/server/applications/gotop.js index a40b1b6..dc4164d 100644 --- a/server/services/routing/server/applications/gotop.js +++ b/server/services/routing/server/applications/gotop.js @@ -1 +1 @@ -const a1205_0x1ba6=['error','[%s][GOTOP]\x20priority\x20%s','next','validate','[%s][GOTOP]\x20priority\x20%s\x20found\x20at\x20index:\x20%s','stringify','[%s][GOTOP]\x20%s','stop','map','lodash','../../../../config/logger','[%s][GOTOP]\x20priority\x20%s\x20not\x20found','consequence','info','join','length','routing','priority\x20is\x20a\x20number\x20and\x20it\x20is\x20required','priority','findIndex','number'];(function(_0x299a14,_0x1ba65e){const _0x19c429=function(_0x5646a4){while(--_0x5646a4){_0x299a14['push'](_0x299a14['shift']());}};_0x19c429(++_0x1ba65e);}(a1205_0x1ba6,0x1ab));const a1205_0x19c4=function(_0x299a14,_0x1ba65e){_0x299a14=_0x299a14-0x0;let _0x19c429=a1205_0x1ba6[_0x299a14];return _0x19c429;};const _0x457fad=a1205_0x19c4;'use strict';const schema=require(_0x457fad('0x11')),_=require(_0x457fad('0x2')),logger=require(_0x457fad('0x3'))(_0x457fad('0x9')),gotop=schema({'priority':{'type':_0x457fad('0xd'),'required':!![],'message':_0x457fad('0xa')}});exports[_0x457fad('0x5')]=function(_0x5646a4,_0x14570c){return function(_0x661a6f){const _0x44cb65=a1205_0x19c4;try{const _0x20cdb0={'priority':_0x14570c[0x0]},_0x44324e=gotop[_0x44cb65('0x11')](_0x20cdb0,{'typecast':!![]});if(_0x44324e[_0x44cb65('0x8')])logger[_0x44cb65('0xe')](_0x44cb65('0x14'),_0x5646a4,_[_0x44cb65('0x1')](_0x44324e,'message')[_0x44cb65('0x7')](',\x20')),_0x661a6f[_0x44cb65('0x0')]();else{logger[_0x44cb65('0x6')](_0x44cb65('0xf'),_0x5646a4,_0x20cdb0[_0x44cb65('0xb')]);if(_0x20cdb0['priority']){const _0x4d1153=_[_0x44cb65('0xc')](_0x661a6f['rules'](),{'p':_0x20cdb0[_0x44cb65('0xb')]});_0x4d1153>=0x0?(logger[_0x44cb65('0x6')](_0x44cb65('0x12'),_0x5646a4,_0x20cdb0[_0x44cb65('0xb')]||_0x44cb65('0x10'),_0x4d1153),_0x661a6f[_0x44cb65('0x10')](_0x4d1153)):(logger[_0x44cb65('0x6')](_0x44cb65('0x4'),_0x5646a4,_0x20cdb0['priority']||_0x44cb65('0x10')),_0x661a6f[_0x44cb65('0x0')]());}else _0x661a6f[_0x44cb65('0x10')]();}}catch(_0x21bd15){logger[_0x44cb65('0xe')](_0x44cb65('0x14'),_0x5646a4,JSON[_0x44cb65('0x13')](_0x21bd15)),_0x661a6f[_0x44cb65('0x0')]();}};}; \ No newline at end of file +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 diff --git a/server/services/routing/server/applications/message.js b/server/services/routing/server/applications/message.js index 58292c6..434c42c 100644 --- a/server/services/routing/server/applications/message.js +++ b/server/services/routing/server/applications/message.js @@ -1 +1 @@ -const a1206_0x4828=['[%s][MESSAGE]\x20%s','./utils','channel','body','error','then','chat','account','../../rpc/smsMessage','create','../../rpc/chatMessage','../../rpc/whatsappMessage','stop','Message','InteractionId','../../rpc/mailMessage','stringify','consequence','next','routing','../../rpc/faxMessage','getMustacheRender','catch','upperFirst'];(function(_0x815ed4,_0x482837){const _0x534a7c=function(_0x1e6daa){while(--_0x1e6daa){_0x815ed4['push'](_0x815ed4['shift']());}};_0x534a7c(++_0x482837);}(a1206_0x4828,0xc9));const a1206_0x534a=function(_0x815ed4,_0x482837){_0x815ed4=_0x815ed4-0x0;let _0x534a7c=a1206_0x4828[_0x815ed4];return _0x534a7c;};const _0x519e8b=a1206_0x534a;'use strict';const _=require('lodash'),utils=require(_0x519e8b('0x10')),logger=require('../../../../config/logger')(_0x519e8b('0xa')),rpc={'chatMessage':require(_0x519e8b('0x1')),'openchannelMessage':require('../../rpc/openchannelMessage'),'mailMessage':require(_0x519e8b('0x6')),'smsMessage':require(_0x519e8b('0x17')),'faxMessage':require(_0x519e8b('0xb')),'whatsappMessage':require(_0x519e8b('0x2'))};exports[_0x519e8b('0x8')]=function(_0x1e6daa,_0x4682c2){return function(_0x4534b5){const _0x2abef2=a1206_0x534a;try{const _0x286b2a={'body':utils[_0x2abef2('0xc')](_0x4682c2[0x0],this),'ContactId':this['contact']['id']};this[_0x2abef2('0x11')]===_0x2abef2('0x15')?_0x286b2a['ChatWebsiteId']=this[_0x2abef2('0x16')]['id']:_0x286b2a[_[_0x2abef2('0xe')](this[_0x2abef2('0x11')])+'AccountId']=this[_0x2abef2('0x16')]['id'];_0x286b2a[_[_0x2abef2('0xe')](this[_0x2abef2('0x11')])+_0x2abef2('0x5')]=this['interaction']['id'];if(rpc[this[_0x2abef2('0x11')]+_0x2abef2('0x4')])return rpc[this[_0x2abef2('0x11')]+_0x2abef2('0x4')][_0x2abef2('0x0')](_0x286b2a)[_0x2abef2('0x14')](function(){const _0x5e75a9=_0x2abef2;logger['info'](_0x5e75a9('0xf'),_0x1e6daa,_0x286b2a[_0x5e75a9('0x12')]),_0x4534b5[_0x5e75a9('0x9')]();})[_0x2abef2('0xd')](function(_0x368be5){const _0x109e79=_0x2abef2;logger[_0x109e79('0x13')](_0x109e79('0xf'),_0x1e6daa,JSON[_0x109e79('0x7')](_0x368be5)),_0x4534b5['stop']();});}catch(_0xcac73){logger[_0x2abef2('0x13')](_0x2abef2('0xf'),_0x1e6daa,JSON['stringify'](_0xcac73)),_0x4534b5[_0x2abef2('0x3')]();}};}; \ No newline at end of file +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 diff --git a/server/services/routing/server/applications/noop.js b/server/services/routing/server/applications/noop.js index bada0c6..df27d30 100644 --- a/server/services/routing/server/applications/noop.js +++ b/server/services/routing/server/applications/noop.js @@ -1 +1 @@ -const a1207_0x141d=['stop','../../../../config/logger','routing','[%s][NOOP]\x20%s','consequence','next','error','stringify','getMustacheRender','./utils'];(function(_0x5b5629,_0x141d3a){const _0x45d3c6=function(_0x5565ed){while(--_0x5565ed){_0x5b5629['push'](_0x5b5629['shift']());}};_0x45d3c6(++_0x141d3a);}(a1207_0x141d,0x1d9));const a1207_0x45d3=function(_0x5b5629,_0x141d3a){_0x5b5629=_0x5b5629-0x0;let _0x45d3c6=a1207_0x141d[_0x5b5629];return _0x45d3c6;};const _0x99f18b=a1207_0x45d3;'use strict';const utils=require(_0x99f18b('0x6')),logger=require(_0x99f18b('0x8'))(_0x99f18b('0x9'));exports[_0x99f18b('0x1')]=function(_0x5565ed,_0x2ac5fb){return function(_0x3ac31c){const _0x5fb1cb=a1207_0x45d3;try{logger['info']('[%s][NOOP]\x20%s',_0x5565ed,utils[_0x5fb1cb('0x5')](_0x2ac5fb[0x0],this)),_0x3ac31c[_0x5fb1cb('0x2')]();}catch(_0x165573){logger[_0x5fb1cb('0x3')](_0x5fb1cb('0x0'),_0x5565ed,JSON[_0x5fb1cb('0x4')](_0x165573)),_0x3ac31c[_0x5fb1cb('0x7')]();}};}; \ No newline at end of file +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 diff --git a/server/services/routing/server/applications/queue.js b/server/services/routing/server/applications/queue.js index d08e1fe..e3d624a 100644 --- a/server/services/routing/server/applications/queue.js +++ b/server/services/routing/server/applications/queue.js @@ -1 +1 @@ -const a1208_0x208d=['moment','channel','catch','remove','map','stack','waiting','format','qtimeout','../../rpc/mailQueueReport','[%s][START:QUEUE][NAME:%s]','%s_queue_waiting_interaction:%s','../../rpc/whatsappQueueReport','rrmemory','list','chat','[%s][QUEUE]\x20ROUTING\x20STOPPED','WebsiteId','emit','from','seq-queue','MessageId','../../../../rediscache','../../rpc/faxQueueReport','atimeout','find','close','body','[%s][QUEUE]\x20%s','accepted','[%s][END:QUEUE][NAME:%s]','save','routing','toLowerCase','pick','stop','%sQueuesWaitingInteractions','create','length','update','consequence','strategy','name','./strategy','string','info','../../../../config/logger','YYYY-MM-DD\x20HH:mm:ss','../../rpc/openchannelQueueReport','validate','joinAt','upperFirst','message','../../rpc/chatQueueReport','contact','QueueReport','beepall','create\x20queue\x20report','%s:queue:%s','number','queue_id','interaction','error','timeout','name\x20is\x20a\x20string\x20and\x20it\x20is\x20required','InteractionId','util','update\x20queue\x20report','[%s][QUEUE]\x20queue\x20not\x20found\x20%s','account','rules','complete','[%s][QUEUE]\x20APPLICATION\x20END','queue'];(function(_0x3ec6c0,_0x208d31){const _0x3f0c07=function(_0x394548){while(--_0x394548){_0x3ec6c0['push'](_0x3ec6c0['shift']());}};_0x3f0c07(++_0x208d31);}(a1208_0x208d,0x8f));const a1208_0x3f0c=function(_0x3ec6c0,_0x208d31){_0x3ec6c0=_0x3ec6c0-0x0;let _0x3f0c07=a1208_0x208d[_0x3ec6c0];return _0x3f0c07;};const _0x637198=a1208_0x3f0c;'use strict';const schema=require(_0x637198('0x36')),_=require('lodash'),util=require(_0x637198('0x47')),seqqueue=require(_0x637198('0x19')),moment=require(_0x637198('0x5')),logger=require(_0x637198('0x33'))(_0x637198('0x25')),strategy=require(_0x637198('0x30')),{getSocket}=require(_0x637198('0x1b')),io=getSocket(),attributes=['id',_0x637198('0x41'),_0x637198('0x0'),_0x637198('0x4'),'from',_0x637198('0x37')];function emit(_0x394548,_0x462e8b,_0x33b3fe){const _0x22bf7d=_0x637198;io['to'](_0x394548)[_0x22bf7d('0x17')](_0x462e8b,_0x33b3fe);}function emitChannelQueueInteraction(_0x2c1e0e,_0x39c461,_0x4830ad,_0x942a62,_0x10b7dd,_0x7e5c9e,_0x3bcd0b,_0x5eebc1){const _0x3f0311=_0x637198,_0x41fda0=_['clone'](_0x4830ad);_0x41fda0[_0x3f0311('0x41')]=_0x5eebc1,_0x41fda0[_0x3f0311('0x4')]=_0x39c461,_0x41fda0[_0x3f0311('0x0')]=_0x942a62,_0x41fda0['id']=_0x10b7dd,_0x7e5c9e?_0x3bcd0b[util[_0x3f0311('0xc')](_0x3f0311('0x29'),_0x2c1e0e)][_0x10b7dd]=_[_0x3f0311('0x27')](_0x41fda0,attributes):delete _0x3bcd0b[util[_0x3f0311('0xc')](_0x3f0311('0x29'),_0x2c1e0e)][_0x10b7dd],emit(util[_0x3f0311('0xc')](_0x3f0311('0x3f'),_0x2c1e0e,_0x39c461),util['format'](_0x3f0311('0x10'),_0x2c1e0e,_0x7e5c9e?_0x3f0311('0x24'):_0x3f0311('0x8')),_[_0x3f0311('0x27')](_0x41fda0,attributes));}const rpc={'openchannelQueueReport':require(_0x637198('0x35')),'mailQueueReport':require(_0x637198('0xe')),'chatQueueReport':require(_0x637198('0x3a')),'smsQueueReport':require('../../rpc/smsQueueReport'),'faxQueueReport':require(_0x637198('0x1c')),'whatsappQueueReport':require(_0x637198('0x11'))},queue=schema({'name':{'type':_0x637198('0x31'),'required':!![],'message':_0x637198('0x45')},'timeout':{'type':_0x637198('0x40'),'message':'timeout\x20is\x20a\x20number'}});function startRouting(_0x2c374c,_0x2b08f9,_0x28657f,_0x19d3d8){const _0x43f388=_0x637198;if(_0x2c374c&&_0x2b08f9&&_0x28657f){_0x2b08f9[_0x43f388('0xb')]+=0x1;const _0x520180={'uniqueid':_0x2c374c,'from':_0x28657f['body']?_0x28657f[_0x43f388('0x20')][_0x43f388('0x18')]:'','joinAt':moment()[_0x43f388('0xc')](_0x43f388('0x34')),'ContactId':_0x28657f[_0x43f388('0x3b')]?_0x28657f['contact']['id']:null,'ListId':_0x28657f[_0x43f388('0x13')]?_0x28657f['list']['id']:null};_0x520180[_['upperFirst'](_0x28657f['channel'])+'QueueId']=_0x2b08f9['id']||null,_0x520180[_[_0x43f388('0x38')](_0x28657f[_0x43f388('0x6')])+_0x43f388('0x46')]=_0x28657f[_0x43f388('0x42')]?_0x28657f[_0x43f388('0x42')]['id']:null,_0x520180[_[_0x43f388('0x38')](_0x28657f[_0x43f388('0x6')])+_0x43f388('0x1a')]=_0x28657f[_0x43f388('0x39')]?_0x28657f[_0x43f388('0x39')]['id']:null,_0x520180[_[_0x43f388('0x38')](_0x28657f[_0x43f388('0x6')])+(_0x28657f[_0x43f388('0x6')]!==_0x43f388('0x14')?'AccountId':_0x43f388('0x16'))]=_0x28657f[_0x43f388('0x0')]?_0x28657f[_0x43f388('0x0')]['id']:null,logger['info'](util[_0x43f388('0xc')](_0x43f388('0xf'),_0x2c374c,_0x2b08f9[_0x43f388('0x2f')])),emitChannelQueueInteraction(_0x28657f['channel'],_0x2b08f9[_0x43f388('0x2f')],_0x520180,_0x28657f['account'][_0x43f388('0x2f')],_0x28657f[_0x43f388('0x39')]['id'],!![],_0x19d3d8,_0x2b08f9['id']);if(rpc[_0x28657f[_0x43f388('0x6')]+_0x43f388('0x3c')])return rpc[_0x28657f['channel']+_0x43f388('0x3c')][_0x43f388('0x2a')](_0x520180)[_0x43f388('0x7')](function(){const _0x26e0e6=_0x43f388;logger['error'](_0x26e0e6('0x3e'));});}}function stopRouting(_0x188781,_0x5c5f25,_0x33b3e7,_0x1628a2){const _0x32c434=_0x637198;if(_0x188781&&_0x5c5f25){_0x5c5f25['waiting']-=0x1;const _0x14ebb9={'leaveAt':moment()[_0x32c434('0xc')](_0x32c434('0x34')),'acceptAt':moment()[_0x32c434('0xc')](_0x32c434('0x34')),'reason':_0x32c434('0x22')};logger[_0x32c434('0x32')](util[_0x32c434('0xc')]('[%s][STOP:QUEUE][NAME:%s]',_0x188781,_0x5c5f25[_0x32c434('0x2f')])),emitChannelQueueInteraction(_0x33b3e7[_0x32c434('0x6')],_0x5c5f25[_0x32c434('0x2f')],_0x33b3e7['body'],_0x33b3e7[_0x32c434('0x0')][_0x32c434('0x2f')],_0x33b3e7['message']['id'],![],_0x1628a2,_0x5c5f25['id']);if(rpc[_0x33b3e7[_0x32c434('0x6')]+_0x32c434('0x3c')])return rpc[_0x33b3e7[_0x32c434('0x6')]+_0x32c434('0x3c')][_0x32c434('0x2c')](_0x188781,_0x14ebb9)[_0x32c434('0x7')](function(){const _0x4224bf=_0x32c434;logger[_0x4224bf('0x43')](_0x4224bf('0x48'));});}}function endRouting(_0x20d976,_0x1429cd,_0x5bc07f,_0x2f545a){const _0x1fa91d=_0x637198;if(_0x20d976&&_0x1429cd){_0x1429cd[_0x1fa91d('0xb')]-=0x1;const _0x58c28b={'leaveAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'exitAt':moment()['format'](_0x1fa91d('0x34')),'reason':_0x1fa91d('0x44')};logger['info'](util[_0x1fa91d('0xc')](_0x1fa91d('0x23'),_0x20d976,_0x1429cd[_0x1fa91d('0x2f')])),emitChannelQueueInteraction(_0x5bc07f[_0x1fa91d('0x6')],_0x1429cd[_0x1fa91d('0x2f')],_0x5bc07f[_0x1fa91d('0x20')],_0x5bc07f['account'][_0x1fa91d('0x2f')],_0x5bc07f['message']['id'],![],_0x2f545a);if(rpc[_0x5bc07f[_0x1fa91d('0x6')]+_0x1fa91d('0x3c')])return rpc[_0x5bc07f[_0x1fa91d('0x6')]+_0x1fa91d('0x3c')][_0x1fa91d('0x2c')](_0x20d976,_0x58c28b)[_0x1fa91d('0x7')](function(){const _0x30d12d=_0x1fa91d;logger[_0x30d12d('0x43')](_0x30d12d('0x48'));});}}function handleFindQueue(_0x192d49){return function(_0xdbb15){const _0x37c788=a1208_0x3f0c;return _0xdbb15[_0x37c788('0x2f')][_0x37c788('0x26')]()===_0x192d49['toLowerCase']();};}exports[_0x637198('0x2d')]=function(_0xf2007f,_0x386b04,_0x388ca8,_0x31d886){return function(_0xb63f9e){const _0x5080ee=a1208_0x3f0c;try{const _0x44d6af={'name':_0x386b04[0x0],'timeout':_0x386b04[0x1]},_0x51554a=queue[_0x5080ee('0x36')](_0x44d6af,{'typecast':!![]});if(_0x51554a[_0x5080ee('0x2b')])logger['error'](_0x5080ee('0x21'),_0xf2007f,_[_0x5080ee('0x9')](_0x51554a,'message')['join'](',\x20')),_0xb63f9e[_0x5080ee('0x28')]();else{const _0x4a030b=_[_0x5080ee('0x1e')](_0x388ca8[_0x31d886['channel']+'Queues'],handleFindQueue(_0x44d6af[_0x5080ee('0x2f')]));if(_0x4a030b){startRouting(_0xf2007f,_0x4a030b,_0x31d886,_0x388ca8);const _0x1cb46f=(_0x4a030b[_0x5080ee('0x44')]||0xa)*0x3e8;let _0x46e341=(_0x44d6af['timeout']||0x14)*0x3e8,_0x39177c;_0x1cb46f>_0x46e341&&(_0x46e341=_0x1cb46f);const _0x313765=seqqueue['createQueue'](_0x1cb46f);_0x313765['id']=_0xf2007f,_0x313765[_0x5080ee('0x1d')]=_0x1cb46f,_0x313765[_0x5080ee('0xd')]=_0x46e341,_0x313765[_0x5080ee('0x6')]=_0x31d886[_0x5080ee('0x6')],_0x388ca8[_0x5080ee('0x1')][_0xf2007f]['on']('end',function(){const _0x57f072=_0x5080ee;logger[_0x57f072('0x32')](_0x57f072('0x15'),_0xf2007f),stopRouting(_0xf2007f,_0x4a030b,_0x31d886,_0x388ca8),clearTimeout(_0x39177c),_0x39177c=undefined,_0x313765[_0x57f072('0x1f')](!![]),_0x388ca8[_0x57f072('0x1')][_0xf2007f]&&delete _0x388ca8[_0x57f072('0x1')][_0xf2007f],_0xb63f9e[_0x57f072('0x28')]();}),_0x388ca8[_0x5080ee('0x1')][_0xf2007f]['on'](_0x5080ee('0x2'),function(){const _0x2a8687=_0x5080ee;_0x388ca8['rules'][_0xf2007f]&&delete _0x388ca8[_0x2a8687('0x1')][_0xf2007f];}),_0x39177c=setTimeout(function(){const _0x2ff53b=_0x5080ee;logger[_0x2ff53b('0x32')](_0x2ff53b('0x3'),_0xf2007f),endRouting(_0xf2007f,_0x4a030b,_0x31d886,_0x388ca8),clearTimeout(_0x39177c),_0x313765[_0x2ff53b('0x1f')](!![]),_0xb63f9e['next']();},_0x46e341);switch(_0x4a030b[_0x5080ee('0x2e')]){case'rrmemory':strategy[_0x5080ee('0x12')](_0x313765,_0x4a030b,_0x388ca8,_0x31d886);break;default:strategy[_0x5080ee('0x3d')](_0x313765,_0x4a030b,_0x388ca8,_0x31d886);}}else logger[_0x5080ee('0x43')](_0x5080ee('0x49'),_0xf2007f,_0x44d6af[_0x5080ee('0x2f')]),_0xb63f9e[_0x5080ee('0x28')]();}}catch(_0x20681f){console['log'](_0x20681f),logger[_0x5080ee('0x43')](_0x5080ee('0x21'),_0xf2007f,_0x20681f[_0x5080ee('0xa')]),_0xb63f9e[_0x5080ee('0x28')]();}};}; \ No newline at end of file +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 diff --git a/server/services/routing/server/applications/strategy/agent.js b/server/services/routing/server/applications/strategy/agent.js index 8067424..c5767ca 100644 --- a/server/services/routing/server/applications/strategy/agent.js +++ b/server/services/routing/server/applications/strategy/agent.js @@ -1 +1 @@ -const a1209_0x45f0=['notificationId','agents','timeout','hideNotification','uuid','bind','RINGING','busyQueue','[%s][AGENT]\x20timeout\x20with\x20%s','realtime','squeue','handleDrained','STOP','handleRun','[%s][AGENT]\x20agent\x20skipped,\x20unknown\x20id\x20%s','busy','exports','routing','showNotification','agent','../../../../../config/logger','./util','info','TIMEOUT','[%s][AGENT]\x20try\x20with\x20%s','prototype','drained','writeLog','push','handleTimeout','isNil','forcedOwnership','isAgentAvailable','[%s][AGENT]\x20agent\x20%s\x20is\x20not\x20available'];(function(_0xe3da44,_0x45f0d8){const _0x81ada2=function(_0x13f968){while(--_0x13f968){_0xe3da44['push'](_0xe3da44['shift']());}};_0x81ada2(++_0x45f0d8);}(a1209_0x45f0,0x128));const a1209_0x81ad=function(_0xe3da44,_0x45f0d8){_0xe3da44=_0xe3da44-0x0;let _0x81ada2=a1209_0x45f0[_0xe3da44];return _0x81ada2;};const _0x477555=a1209_0x81ad;'use strict';const _=require('lodash'),uuid=require(_0x477555('0xe')),util=require(_0x477555('0x1f')),logger=require(_0x477555('0x1e'))(_0x477555('0x1b')),Agent=function(_0x13f968,_0x22e196,_0x40a341,_0x253994){const _0x46ef44=_0x477555;this[_0x46ef44('0xa')]=uuid['v4'](),this[_0x46ef44('0x14')]=_0x13f968,this[_0x46ef44('0x1d')]=_0x22e196,this[_0x46ef44('0x13')]=_0x40a341,this[_0x46ef44('0x1b')]=_0x253994,this[_0x46ef44('0x14')][_0x46ef44('0x4')](this[_0x46ef44('0x17')][_0x46ef44('0xf')](this),this[_0x46ef44('0x5')][_0x46ef44('0xf')](this)),this['squeue']['on'](_0x46ef44('0xc'),this[_0x46ef44('0x5')][_0x46ef44('0xf')](this)),this[_0x46ef44('0x14')]['on'](_0x46ef44('0x2'),this[_0x46ef44('0x15')][_0x46ef44('0xf')](this));};Agent['prototype'][_0x477555('0x4')]=function(){const _0x1474c0=_0x477555;this['squeue'][_0x1474c0('0x4')](this['handleRun'][_0x1474c0('0xf')](this),this[_0x1474c0('0x5')][_0x1474c0('0xf')](this));},Agent[_0x477555('0x1')][_0x477555('0x15')]=function(){const _0x30092d=_0x477555;this[_0x30092d('0x5')](!![]);},Agent[_0x477555('0x1')][_0x477555('0x17')]=function(){const _0x2dcfa1=_0x477555;logger['info'](_0x2dcfa1('0x0'),this[_0x2dcfa1('0x14')]['id'],this[_0x2dcfa1('0x1d')]['id']),_[_0x2dcfa1('0x6')](this[_0x2dcfa1('0x13')][_0x2dcfa1('0xb')][this[_0x2dcfa1('0x1d')]['id']])?(logger[_0x2dcfa1('0x20')](_0x2dcfa1('0x18'),this[_0x2dcfa1('0x14')]['id'],this[_0x2dcfa1('0x1d')]['id']),setTimeout(this[_0x2dcfa1('0x4')][_0x2dcfa1('0xf')](this),0x3e8)):this[_0x2dcfa1('0x1b')][_0x2dcfa1('0x7')]||util[_0x2dcfa1('0x8')](this[_0x2dcfa1('0x14')]['id'],this['realtime'][_0x2dcfa1('0xb')][this[_0x2dcfa1('0x1d')]['id']],this[_0x2dcfa1('0x14')]['channel'],![])?(this[_0x2dcfa1('0x13')][_0x2dcfa1('0xb')][this[_0x2dcfa1('0x1d')]['id']]['busy']=!![],this[_0x2dcfa1('0x13')][_0x2dcfa1('0xb')][this[_0x2dcfa1('0x1d')]['id']][_0x2dcfa1('0x11')]=undefined,util[_0x2dcfa1('0x1c')](this[_0x2dcfa1('0xa')],this[_0x2dcfa1('0x14')]['id'],this[_0x2dcfa1('0x13')]['agents'][this[_0x2dcfa1('0x1d')]['id']],null,this[_0x2dcfa1('0x1b')]),util[_0x2dcfa1('0x3')](this['squeue']['id'],this[_0x2dcfa1('0x13')]['agents'][this[_0x2dcfa1('0x1d')]['id']],_0x2dcfa1('0x10')+(this['routing'][_0x2dcfa1('0x7')]?':FORCED':''))):(logger[_0x2dcfa1('0x20')](_0x2dcfa1('0x9'),this[_0x2dcfa1('0x14')]['id'],this[_0x2dcfa1('0x1d')]['id']),setTimeout(this[_0x2dcfa1('0x4')]['bind'](this),0x3e8));},Agent[_0x477555('0x1')][_0x477555('0x5')]=function(_0x3d54a2){const _0x36fcc4=_0x477555;if(_['isNil'](this['realtime'][_0x36fcc4('0xb')][this[_0x36fcc4('0x1d')]['id']]))return logger[_0x36fcc4('0x20')](_0x36fcc4('0x18'),this[_0x36fcc4('0x14')]['id'],this['agent']['id']);else logger['info'](_0x36fcc4('0x12'),this[_0x36fcc4('0x14')]['id'],this[_0x36fcc4('0x1d')]['id']),util[_0x36fcc4('0xd')](this[_0x36fcc4('0xa')],this[_0x36fcc4('0x14')]['id'],this[_0x36fcc4('0x13')][_0x36fcc4('0xb')][this[_0x36fcc4('0x1d')]['id']],null,this['routing']),this['realtime'][_0x36fcc4('0xb')][this[_0x36fcc4('0x1d')]['id']][_0x36fcc4('0x19')]=![],this['realtime'][_0x36fcc4('0xb')][this[_0x36fcc4('0x1d')]['id']][_0x36fcc4('0x11')]=undefined,util[_0x36fcc4('0x3')](this[_0x36fcc4('0x14')]['id'],this['realtime'][_0x36fcc4('0xb')][this[_0x36fcc4('0x1d')]['id']],_0x3d54a2?_0x36fcc4('0x16'):_0x36fcc4('0x21'));!_0x3d54a2&&setTimeout(this['push'][_0x36fcc4('0xf')](this),0x3e8);};function agent(_0x3177a6,_0x405adf,_0x5b527e,_0x25d7e2){return new Agent(_0x3177a6,_0x405adf,_0x5b527e,_0x25d7e2);}module[_0x477555('0x1a')]=agent; \ No newline at end of file +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 diff --git a/server/services/routing/server/applications/strategy/beepall.js b/server/services/routing/server/applications/strategy/beepall.js index 07c5518..0bc2332 100644 --- a/server/services/routing/server/applications/strategy/beepall.js +++ b/server/services/routing/server/applications/strategy/beepall.js @@ -1 +1 @@ -const a1210_0x3142=['routing','STOP','bind','queue','agents','prototype','RINGING','lodash','hideNotification','realtime','info','isAgentAvailable','handleTimeout','isNil','exports','writeLog','TIMEOUT','squeue','busy','uuid','notificationId','handleRun','timeout','./util','handleDrained','length','[%s][QUEUE]\x20agent\x20skipped,\x20unknown\x20id\x20%s','Agents','busyQueue','showNotification','name','[%s][QUEUE]\x20EMPTY','push'];(function(_0x56f647,_0x31422e){const _0xcf3ecd=function(_0x4daf03){while(--_0x4daf03){_0x56f647['push'](_0x56f647['shift']());}};_0xcf3ecd(++_0x31422e);}(a1210_0x3142,0x194));const a1210_0xcf3e=function(_0x56f647,_0x31422e){_0x56f647=_0x56f647-0x0;let _0xcf3ecd=a1210_0x3142[_0x56f647];return _0xcf3ecd;};const _0x614a0f=a1210_0xcf3e;'use strict';const _=require(_0x614a0f('0x20')),uuid=require(_0x614a0f('0xb')),util=require(_0x614a0f('0xf')),logger=require('../../../../../config/logger')(_0x614a0f('0x19')),Beepall=function(_0x4daf03,_0x2c260f,_0x3d2edd,_0xfe96e3){const _0x1f9739=_0x614a0f;this[_0x1f9739('0xc')]=uuid['v4'](),this['squeue']=_0x4daf03,this[_0x1f9739('0x1c')]=_0x2c260f,this['realtime']=_0x3d2edd,this['routing']=_0xfe96e3,this[_0x1f9739('0x9')][_0x1f9739('0x18')](this[_0x1f9739('0xd')][_0x1f9739('0x1b')](this),this[_0x1f9739('0x4')][_0x1f9739('0x1b')](this)),this['squeue']['on'](_0x1f9739('0xe'),this[_0x1f9739('0x4')][_0x1f9739('0x1b')](this)),this[_0x1f9739('0x9')]['on']('drained',this[_0x1f9739('0x10')][_0x1f9739('0x1b')](this));};Beepall[_0x614a0f('0x1e')]['push']=function(){const _0x5dcd94=_0x614a0f;this[_0x5dcd94('0x9')]['push'](this[_0x5dcd94('0xd')][_0x5dcd94('0x1b')](this),this[_0x5dcd94('0x4')][_0x5dcd94('0x1b')](this));},Beepall[_0x614a0f('0x1e')][_0x614a0f('0x10')]=function(){this['handleTimeout'](!![]);},Beepall[_0x614a0f('0x1e')][_0x614a0f('0xd')]=function(){const _0x267b6b=_0x614a0f;let _0x2fe24d=!![];if(!_[_0x267b6b('0x5')](this['queue'])&&!_[_0x267b6b('0x5')](this[_0x267b6b('0x1c')]['Agents'])&&this[_0x267b6b('0x1c')][_0x267b6b('0x13')][_0x267b6b('0x11')]>0x0){for(let _0x45e1e7=0x0,_0xb433a9;_0x45e1e70x0){for(let _0x3be114=0x0,_0x35b6fa;_0x3be1140x0&&_0x3d64a2[_0x3ee155+'CurrentCapacity']>=_0x3d64a2[_0x3ee155+_0x736c23('0x20')])return writeLog(_0x2740ee,_0x3d64a2,_0x3ee155['toUpperCase']()+'\x20MAXCAPACITY'),![];}return!![];},exports[_0x6bfe00('0x19')]=function(_0x5273a7,_0x1a3040,_0x1faec7,_0x34da2f,_0x15da0b){return sendNotification(!![],_0x5273a7,_0x1a3040,_0x1faec7,_0x34da2f,_0x15da0b);},exports[_0x6bfe00('0x1d')]=function(_0x149cb7,_0x4cfaa2,_0x425fd0,_0x316af2,_0x56f050){return sendNotification(![],_0x149cb7,_0x4cfaa2,_0x425fd0,_0x316af2,_0x56f050);},exports[_0x6bfe00('0x13')]=writeLog; \ No newline at end of file +const a1213_0x5c43=['user:save','Pause','account','\x20MAXCAPACITY','showNotification','emit','notification:%s','Capacity','queue','I\x20can\x27t\x20render\x20your\x20template','format','PAUSE','isAgentAvailable','save','notificationSound','online','busy','notificationTemplate','notificationShake','[%s][QUEUE]\x20%s','CurrentCapacity','OFFLINE','getMustacheRender','../../../../../config/logger','split','message','error','msg','info','undefined','remove','../../../../../rediscache','../utils','routing','body','util','user:%s','name','toUpperCase'];(function(_0x5bf221,_0x5c43d6){const _0x4aeffe=function(_0x4d1871){while(--_0x4d1871){_0x5bf221['push'](_0x5bf221['shift']());}};_0x4aeffe(++_0x5c43d6);}(a1213_0x5c43,0x154));const a1213_0x4aef=function(_0x5bf221,_0x5c43d6){_0x5bf221=_0x5bf221-0x0;let _0x4aeffe=a1213_0x5c43[_0x5bf221];return _0x4aeffe;};const _0x2de200=a1213_0x4aef;'use strict';const util=require(_0x2de200('0x7')),utils=require(_0x2de200('0x4')),logger=require(_0x2de200('0x22'))(_0x2de200('0x5')),{getSocket}=require(_0x2de200('0x3')),io=getSocket();function sendNotification(_0x4d1871,_0x23a6fd,_0x4926d6,_0x500a06,_0x4ff0ce,_0x31ed76){const _0x2db331=_0x2de200;io['to'](util[_0x2db331('0x15')]('user:%s',_0x500a06[_0x2db331('0x9')]))[_0x2db331('0x10')](_0x2db331('0xb'),_0x500a06);const _0x4304cb=_0x31ed76||{},_0x5a04cd=_0x4926d6[_0x2db331('0x23')]('.'),_0xb28347={'uniqueid':_0x23a6fd,'channel':_0x5a04cd[0x0],'id':_0x5a04cd[0x1],'title':_0x5a04cd[0x0]+'\x20interaction','interactionId':_0x5a04cd[0x2],'queue':_0x4ff0ce?_0x4ff0ce['name']:null,'sound':_0x4304cb[_0x2db331('0xd')][_0x2db331('0x19')],'shake':_0x4304cb[_0x2db331('0xd')][_0x2db331('0x1d')]};try{!_0x4304cb[_0x2db331('0x6')]&&(_0x4304cb['body']={});if(_0x4ff0ce)_0x4304cb[_0x2db331('0x6')][_0x2db331('0x13')]=_0x4ff0ce;else _0x4304cb[_0x2db331('0x6')][_0x2db331('0x13')]&&delete _0x4304cb[_0x2db331('0x6')][_0x2db331('0x13')];_0xb28347['msg']=utils[_0x2db331('0x21')](_0x4304cb[_0x2db331('0xd')][_0x2db331('0x1c')],_0x4304cb);}catch(_0x33ff68){_0xb28347[_0x2db331('0x26')]=_0x2db331('0x14'),logger[_0x2db331('0x25')](util[_0x2db331('0x15')](_0x2db331('0x1e'),_0x23a6fd,_0x33ff68[_0x2db331('0x24')]));}io['to'](util['format'](_0x2db331('0x8'),_0x500a06[_0x2db331('0x9')]))[_0x2db331('0x10')](util[_0x2db331('0x15')](_0x2db331('0x11'),_0x4d1871?_0x2db331('0x18'):_0x2db331('0x2')),_0xb28347);}function writeLog(_0x953c57,_0x25f574,_0x21745c){const _0x77d099=_0x2de200;return logger[_0x77d099('0x0')](util[_0x77d099('0x15')]('[%s][QUEUE][AGENT:%s][STATUS:%s]',_0x953c57,_0x25f574['name'],_0x21745c));}exports[_0x2de200('0x17')]=function(_0x23e159,_0x3ee991,_0x372512,_0x7f41a1){const _0x2d8236=_0x2de200;if(_0x3ee991[_0x2d8236('0x1b')])return writeLog(_0x23e159,_0x3ee991,'BUSY'),![];if(!_0x3ee991[_0x2d8236('0x1a')])return writeLog(_0x23e159,_0x3ee991,_0x2d8236('0x20')),![];if(_0x3ee991[_0x372512+_0x2d8236('0xc')])return writeLog(_0x23e159,_0x3ee991,_0x2d8236('0x16')),![];if(_0x7f41a1&&typeof _0x3ee991[_0x372512+'Capacity']!==_0x2d8236('0x1')&&typeof _0x3ee991[_0x372512+'CurrentCapacity']!==_0x2d8236('0x1')){if(_0x3ee991[_0x372512+_0x2d8236('0x12')]>0x0&&_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 diff --git a/server/services/routing/server/applications/system.js b/server/services/routing/server/applications/system.js index 9255151..c0cfd94 100644 --- a/server/services/routing/server/applications/system.js +++ b/server/services/routing/server/applications/system.js @@ -1 +1 @@ -const a1214_0x1f58=['../../../../config/logger','message','isObject','routing','body','info','[%s][SYSTEM]\x20set\x20variable\x20%s:\x20%s','[%s][SYSTEM]\x20%s','exec','trim','validate','lodash','length','error','[%s][SYSTEM]\x20no\x20command\x20executed,\x20force\x20next','command\x20is\x20a\x20string\x20and\x20it\x20is\x20required','map','shelljs','[%s][SYSTEM]\x20commnad:\x20%s','getMustacheRender','next','stringify','isEmpty'];(function(_0x375a37,_0x1f58f7){const _0x11694f=function(_0x552ad8){while(--_0x552ad8){_0x375a37['push'](_0x375a37['shift']());}};_0x11694f(++_0x1f58f7);}(a1214_0x1f58,0xae));const a1214_0x1169=function(_0x375a37,_0x1f58f7){_0x375a37=_0x375a37-0x0;let _0x11694f=a1214_0x1f58[_0x375a37];return _0x11694f;};const _0x2e9fb0=a1214_0x1169;'use strict';const schema=require(_0x2e9fb0('0x14')),sh=require(_0x2e9fb0('0x4')),_=require(_0x2e9fb0('0x15')),utils=require('./utils'),logger=require(_0x2e9fb0('0xa'))(_0x2e9fb0('0xd')),system=schema({'command':{'type':'string','required':!![],'message':_0x2e9fb0('0x2')}});exports['consequence']=function(_0x552ad8,_0xb51d1){return function(_0x16bf52){const _0x2d2545=a1214_0x1169;try{const _0x1e92b9={'command':_0xb51d1[0x0]},_0x2180c8=system[_0x2d2545('0x14')](_0x1e92b9,{'typecast':!![]});if(_0x2180c8[_0x2d2545('0x16')])logger[_0x2d2545('0x0')](_0x2d2545('0x11'),_0x552ad8,_[_0x2d2545('0x3')](_0x2180c8,_0x2d2545('0xb'))['join'](',\x20')),logger[_0x2d2545('0xf')](_0x2d2545('0x1'),_0x552ad8),_0x16bf52[_0x2d2545('0x7')]();else{const _0x35774a=this,_0x108f89=utils[_0x2d2545('0x6')](_0xb51d1[0x0],this);logger[_0x2d2545('0xf')](_0x2d2545('0x5'),_0x552ad8,_0x108f89),sh[_0x2d2545('0x12')](_[_0x2d2545('0x13')](_0x108f89),function(_0x478af4,_0x5ac444){const _0x243b5c=_0x2d2545;logger['info']('[%s][SYSTEM]\x20result\x20code:\x20%s',_0x552ad8,_0x478af4);if(_0x478af4==0x0){const _0x2c62cf=_0x5ac444['replace'](/(\r\n|\n|\r)/gm,'');_['isNil'](_0xb51d1[0x1])||_[_0x243b5c('0x9')](_0xb51d1[0x1])?(logger['info']('[%s][SYSTEM]\x20no\x20variable',_0x552ad8),_0x35774a[_0x243b5c('0xe')][_0xb51d1[0x1]]=_0x2c62cf):(logger[_0x243b5c('0xf')](_0x243b5c('0x10'),_0x552ad8,_0xb51d1[0x1],_0x2c62cf),_0x35774a[_0x243b5c('0xe')][_0xb51d1[0x1]]=_0x2c62cf);}_0x16bf52['next']();});}}catch(_0x1a3a28){logger[_0x2d2545('0x0')](_0x2d2545('0x11'),_0x552ad8,_[_0x2d2545('0xc')](_0x1a3a28)?JSON[_0x2d2545('0x8')](_0x1a3a28):_0x1a3a28),logger[_0x2d2545('0xf')](_0x2d2545('0x1'),_0x552ad8),_0x16bf52['next']();}};}; \ No newline at end of file +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 diff --git a/server/services/routing/server/applications/tag.js b/server/services/routing/server/applications/tag.js index 5c02176..a17481e 100644 --- a/server/services/routing/server/applications/tag.js +++ b/server/services/routing/server/applications/tag.js @@ -1 +1 @@ -const a1215_0x56e2=['routing','isObject','catch','[%s][TAG]\x20tag\x20\x22%s\x22\x20added\x20to\x20%s\x20interaction\x20%s','../../rpc/whatsappInteraction','TagId\x20is\x20a\x20string\x20and\x20it\x20is\x20required','../../rpc/mailInteraction','../../rpc/openchannelInteraction','number','info','error','../../rpc/faxInteraction','stringify','[%s][TAG]\x20%s','consequence','length','channel','../../../../config/logger','validate','join','lodash','[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next','interaction','then','next','Interaction'];(function(_0x142ad6,_0x56e29a){const _0x32f13f=function(_0x34ca01){while(--_0x34ca01){_0x142ad6['push'](_0x142ad6['shift']());}};_0x32f13f(++_0x56e29a);}(a1215_0x56e2,0xf1));const a1215_0x32f1=function(_0x142ad6,_0x56e29a){_0x142ad6=_0x142ad6-0x0;let _0x32f13f=a1215_0x56e2[_0x142ad6];return _0x32f13f;};const _0x7f5827=a1215_0x32f1;'use strict';const schema=require(_0x7f5827('0xb')),_=require(_0x7f5827('0xd')),rpc={'chatInteraction':require('../../rpc/chatInteraction'),'openchannelInteraction':require(_0x7f5827('0x0')),'smsInteraction':require('../../rpc/smsInteraction'),'mailInteraction':require(_0x7f5827('0x19')),'faxInteraction':require(_0x7f5827('0x4')),'whatsappInteraction':require(_0x7f5827('0x17'))},logger=require(_0x7f5827('0xa'))(_0x7f5827('0x13')),tag=schema({'tag':{'type':_0x7f5827('0x1'),'required':!![],'message':_0x7f5827('0x18')}});exports[_0x7f5827('0x7')]=function(_0x34ca01,_0x515831,_0x1608fd,_0x2a3f80){return function(_0x441913){const _0x418c73=a1215_0x32f1;try{const _0x521a57={'tag':_0x515831[0x0]},_0x3447e4=tag['validate'](_0x521a57,{'typecast':!![]});if(_0x3447e4[_0x418c73('0x8')])logger[_0x418c73('0x3')]('[%s][TAG]\x20%s',_0x34ca01,_['map'](_0x3447e4,'message')[_0x418c73('0xc')](',\x20')),logger[_0x418c73('0x2')](_0x418c73('0xe'),_0x34ca01),_0x441913[_0x418c73('0x11')]();else{const _0x5e93a8={'ids':[_0x515831[0x0]]};rpc[_0x2a3f80[_0x418c73('0x9')]+_0x418c73('0x12')]&&rpc[_0x2a3f80[_0x418c73('0x9')]+_0x418c73('0x12')]['addTags'](_0x2a3f80[_0x418c73('0xf')]['id'],_0x5e93a8)[_0x418c73('0x10')](function(){const _0x2929ab=_0x418c73;logger[_0x2929ab('0x2')](_0x2929ab('0x16'),_0x34ca01,_0x515831[0x1],_0x2a3f80[_0x2929ab('0x9')],_0x2a3f80[_0x2929ab('0xf')]['id']);})[_0x418c73('0x15')](function(_0x1c3d19){const _0x1d59f2=_0x418c73;logger[_0x1d59f2('0x3')](_0x1d59f2('0x6'),_0x34ca01,JSON[_0x1d59f2('0x5')](_0x1c3d19)),logger[_0x1d59f2('0x2')]('[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next',_0x34ca01);})['finally'](function(){_0x441913['next']();});}}catch(_0x27a8d4){logger[_0x418c73('0x3')]('[%s][TAG]\x20%s',_0x34ca01,_[_0x418c73('0x14')](_0x27a8d4)?JSON[_0x418c73('0x5')](_0x27a8d4):_0x27a8d4),logger[_0x418c73('0x2')](_0x418c73('0xe'),_0x34ca01),_0x441913[_0x418c73('0x11')]();}};}; \ No newline at end of file +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 diff --git a/server/services/routing/server/applications/utils.js b/server/services/routing/server/applications/utils.js index 1ec245f..b14ed25 100644 --- a/server/services/routing/server/applications/utils.js +++ b/server/services/routing/server/applications/utils.js @@ -1 +1 @@ -const a1216_0x3a88=['mustache','body','merge','interaction','account','contact'];(function(_0x17257d,_0x3a882a){const _0x35267b=function(_0x374eee){while(--_0x374eee){_0x17257d['push'](_0x17257d['shift']());}};_0x35267b(++_0x3a882a);}(a1216_0x3a88,0x135));const a1216_0x3526=function(_0x17257d,_0x3a882a){_0x17257d=_0x17257d-0x0;let _0x35267b=a1216_0x3a88[_0x17257d];return _0x35267b;};const _0x2c588c=a1216_0x3526;'use strict';const Mustache=require(_0x2c588c('0x3')),_=require('lodash');module['exports']={'getMustacheRender':function(_0x374eee,_0x340da7){const _0x55092a=_0x2c588c;return Mustache['render'](_0x374eee,_[_0x55092a('0x5')](_0x340da7[_0x55092a('0x4')],{'contact':_0x340da7[_0x55092a('0x2')],'message':_0x340da7['message'],'account':_0x340da7[_0x55092a('0x1')],'interaction':_0x340da7[_0x55092a('0x0')],'list':_0x340da7['list']}))||'';}}; \ No newline at end of file +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 diff --git a/server/services/routing/server/index.js b/server/services/routing/server/index.js index 36b989f..26ff4a1 100644 --- a/server/services/routing/server/index.js +++ b/server/services/routing/server/index.js @@ -1 +1 @@ -const a1217_0x3c1c=['applications','routing\x20is\x20empty','info','smsQueues','length','format','chatQueuesWaitingInteractions','isNil','channel','available','matchPath','agent\x20not\x20found','%s.%s.%s','isArray','mailQueuesWaitingInteractions','app','agent','../lib/rule-engine','message\x20is\x20empty','No\x20applications\x20to\x20execute','slice','agents','toLowerCase','busyQueue','undefined','interaction','faxQueuesWaitingInteractions','error','waiting','appdata','../../../config/logger','dialogflow','name','lodash','Intervals','catch','emit','.js','TagId','priority','existsSync','path','values','Please\x20create\x20a\x20new\x20file\x20under','openchannelQueues','smsQueuesWaitingInteractions','map','loggedIn','%s:%s:%s','IntervalId','split','on\x20interval','stringify','error\x20update\x20queue\x20report','capacity','amazonlex','intervals','paused','stack','message','push','../rpc/openchannelQueueReport','complete','RPC\x20listening\x20on\x20port:','listen','chatQueues','autoreply','server','updateRealtime','\x20|\x20','join','end','../rpc/faxQueueReport','faxQueues','routing','whatsappQueuesWaitingInteractions','rules','interval','mailQueues','Routing\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!','util','QueueReport','busy','./interval','jayson/promise','127.0.0.1','whatsappQueues','../rpc/mailQueueReport','CurrentCapacity'];(function(_0x4d05ee,_0x3c1c59){const _0x1ef6a6=function(_0x1c1c74){while(--_0x1c1c74){_0x4d05ee['push'](_0x4d05ee['shift']());}};_0x1ef6a6(++_0x3c1c59);}(a1217_0x3c1c,0xfc));const a1217_0x1ef6=function(_0x4d05ee,_0x3c1c59){_0x4d05ee=_0x4d05ee-0x0;let _0x1ef6a6=a1217_0x3c1c[_0x4d05ee];return _0x1ef6a6;};const _0x5996f7=a1217_0x1ef6;'use strict';const _=require(_0x5996f7('0x30')),util=require(_0x5996f7('0x6')),path=require(_0x5996f7('0x38')),fs=require('fs'),jayson=require(_0x5996f7('0xa')),logger=require(_0x5996f7('0x2d'))(_0x5996f7('0x0')),rpc={'openchannelQueueReport':require(_0x5996f7('0x4c')),'mailQueueReport':require(_0x5996f7('0xd')),'chatQueueReport':require('../rpc/chatQueueReport'),'smsQueueReport':require('../rpc/smsQueueReport'),'faxQueueReport':require(_0x5996f7('0x57')),'whatsappQueueReport':require('../rpc/whatsappQueueReport')},RuleEngine=require(_0x5996f7('0x20'));function getId(_0x1c1c74,_0x4ba770,_0x359788){const _0x5b9aed=_0x5996f7;return util[_0x5b9aed('0x14')](_0x5b9aed('0x1b'),_0x1c1c74,_0x4ba770||0x0,_0x359788||0x0);}function getIntervals(_0x38b588,_0x417899){const _0x5c3983=_0x5996f7;let _0x1fb736=[];if(!_['isNil'](_0x417899[_0x5c3983('0x40')])&&!_[_0x5c3983('0x16')](_0x38b588[_0x417899[_0x5c3983('0x40')]])&&!_[_0x5c3983('0x16')](_0x38b588[_0x417899['IntervalId']][_0x5c3983('0x31')]))_0x1fb736=_[_0x5c3983('0x3d')](_0x38b588[_0x417899['IntervalId']][_0x5c3983('0x31')],_0x5c3983('0x3'));else!_[_0x5c3983('0x16')](_0x417899[_0x5c3983('0x3')])&&(_0x1fb736=[_0x417899[_0x5c3983('0x3')]]);return _0x1fb736;}exports[_0x5996f7('0x4f')]=function(_0x2b568e){const _0x27ba78=_0x5996f7;return _0x2b568e[_0x27ba78('0x2')]={},new Promise(function(_0x2fb3dc,_0x726f71){const _0x3e7b26=_0x27ba78,_0x360422={'Start':function(_0x14d1be){const _0x17e08a=this;return new Promise(function(_0x1d3885,_0x276738){const _0xd8f22c=a1217_0x1ef6;if(_0x14d1be)try{const _0x47018c=[],_0x251842=getId(_0x14d1be[_0xd8f22c('0x17')],_0x14d1be[_0xd8f22c('0x4a')]?_0x14d1be[_0xd8f22c('0x4a')]['id']:0x0,_0x14d1be[_0xd8f22c('0x28')]?_0x14d1be[_0xd8f22c('0x28')]['id']:0x0);if(_0x14d1be['applications']&&_[_0xd8f22c('0x1c')](_0x14d1be[_0xd8f22c('0xf')])&&_0x14d1be['applications'][_0xd8f22c('0x13')]){for(let _0x79b1d6=0x0;_0x79b1d6<_0x14d1be[_0xd8f22c('0xf')]['length'];_0x79b1d6+=0x1){const _0x27466e=_0x14d1be[_0xd8f22c('0xf')][_0x79b1d6];if(fs[_0xd8f22c('0x37')](path['join'](__dirname,'applications',_0x27466e[_0xd8f22c('0x1e')]+_0xd8f22c('0x34')))){let _0x11d242=[];switch(_0x27466e[_0xd8f22c('0x1e')][_0xd8f22c('0x25')]()){case _0xd8f22c('0x51'):{const _0x55d60f=_0x27466e[_0xd8f22c('0x2c')][_0xd8f22c('0x41')](',');_0x11d242['push'](_0x55d60f[0x0]),_0x11d242[_0xd8f22c('0x4b')](_0x55d60f[_0xd8f22c('0x23')](0x1,_0x55d60f[_0xd8f22c('0x13')])['join'](','));}break;case _0xd8f22c('0x2e'):{const _0x3b3216=_0x27466e[_0xd8f22c('0x2c')]['split'](',');_0x11d242[_0xd8f22c('0x4b')](_0x3b3216[0x0]),_0x11d242[_0xd8f22c('0x4b')](_0x3b3216[0x1]),_0x11d242[_0xd8f22c('0x4b')](_0x3b3216[_0xd8f22c('0x23')](0x2,_0x3b3216[_0xd8f22c('0x13')])[_0xd8f22c('0x55')](','));}break;case _0xd8f22c('0x46'):{const _0x1a7dd5=_0x27466e[_0xd8f22c('0x2c')][_0xd8f22c('0x41')](',');_0x11d242['push'](_0x1a7dd5[0x0]),_0x11d242['push'](_0x1a7dd5[0x1]),_0x11d242[_0xd8f22c('0x4b')](_0x1a7dd5[0x2]),_0x11d242[_0xd8f22c('0x4b')](_0x1a7dd5[0x3]),_0x11d242[_0xd8f22c('0x4b')](_0x1a7dd5[_0xd8f22c('0x23')](0x4,_0x1a7dd5[_0xd8f22c('0x13')])[_0xd8f22c('0x55')](','));}break;case _0xd8f22c('0x4a'):_0x11d242[_0xd8f22c('0x4b')](_0x27466e[_0xd8f22c('0x2c')]);break;case'tag':_0x11d242['push'](_0x27466e[_0xd8f22c('0x35')]),_0x11d242[_0xd8f22c('0x4b')](_0x27466e['appdata']);break;default:_0x11d242=_[_0xd8f22c('0x16')](_0x27466e['appdata'])?[]:_0x27466e[_0xd8f22c('0x2c')]['split'](',');}const _0xd9f038={'id':util[_0xd8f22c('0x14')](_0xd8f22c('0x3f'),_0x251842,_0x27466e['id'],_0x27466e[_0xd8f22c('0x1e')]),'condition':require(_0xd8f22c('0x9'))['condition'](_0x251842,getIntervals(_0x2b568e[_0xd8f22c('0x47')],_0x27466e),_0x2b568e),'consequence':require('./applications/'+_0x27466e[_0xd8f22c('0x1e')])['consequence'](_0x251842,_0x11d242,_0x2b568e,_0x14d1be),'p':_0x27466e[_0xd8f22c('0x36')]||0x0};logger[_0xd8f22c('0x11')]('Push\x20new\x20rule',_0xd9f038['id'],_0xd8f22c('0x42'),getIntervals(_0x2b568e[_0xd8f22c('0x47')],_0x27466e)[_0xd8f22c('0x55')](_0xd8f22c('0x54'))),_0x47018c[_0xd8f22c('0x4b')](_0xd9f038);}else logger[_0xd8f22c('0x2a')](_0xd8f22c('0x3a'),path['join'](__dirname,'applications',_0x27466e[_0xd8f22c('0x1e')]+_0xd8f22c('0x34')));}return _0x2b568e[_0xd8f22c('0x2')][_0x251842]=new RuleEngine(_0x47018c),_0x2b568e[_0xd8f22c('0x2')][_0x251842]['execute'](_0x14d1be,function(_0x4e5b1d){const _0x5024aa=_0xd8f22c;logger[_0x5024aa('0x11')]('Applications\x20executed',JSON[_0x5024aa('0x43')](_0x4e5b1d[_0x5024aa('0x19')])),_0x2b568e[_0x5024aa('0x2')][_0x251842]&&_0x2b568e[_0x5024aa('0x2')][_0x251842][_0x5024aa('0x33')](_0x5024aa('0x4d'));}),_0x1d3885({'code':0xc8,'message':_0x14d1be});}else return logger[_0xd8f22c('0x11')](_0xd8f22c('0x22')),_0x1d3885({'code':0xc8,'message':_0x14d1be});}catch(_0x55ed8f){return logger[_0xd8f22c('0x2a')](_0x55ed8f['stack']),_0x276738(_0x17e08a['error'](0x1f4,_0x55ed8f));}return _0x276738(_0xd8f22c('0x10'));});},'AcceptMessage':function(_0x25c342){const _0x5ba7e1=this;return new Promise(function(_0x3f5937,_0x1036b7){const _0x478f5d=a1217_0x1ef6;if(_0x25c342[_0x478f5d('0x4a')]&&_0x25c342[_0x478f5d('0x4a')]['id'])try{const _0x4cc46c=getId(_0x25c342[_0x478f5d('0x17')],_0x25c342[_0x478f5d('0x4a')]?_0x25c342[_0x478f5d('0x4a')]['id']:0x0,_0x25c342[_0x478f5d('0x28')]?_0x25c342[_0x478f5d('0x28')]['id']:0x0);return _0x2b568e[_0x478f5d('0x2')][_0x4cc46c]&&(_0x2b568e[_0x478f5d('0x2')][_0x4cc46c][_0x478f5d('0x33')](_0x478f5d('0x56')),rpc[_0x25c342['channel']+'QueueReport']&&rpc[_0x25c342[_0x478f5d('0x17')]+_0x478f5d('0x7')]['update'](_0x4cc46c,{'UserId':_0x25c342[_0x478f5d('0x4a')]['UserId']})[_0x478f5d('0x32')](function(){const _0x3199b1=_0x478f5d;logger['error'](_0x3199b1('0x44'));})),_0x3f5937({'code':0xc8,'message':_0x25c342});}catch(_0x2a8524){return logger['error'](_0x2a8524[_0x478f5d('0x49')]),_0x1036b7(_0x5ba7e1[_0x478f5d('0x2a')](0x1f4,_0x2a8524));}return logger['error'](_0x478f5d('0x21')),_0x1036b7(_0x5ba7e1['error'](0x1f4,'message\x20is\x20empty'));});},'RejectMessage':function(_0x52f161){const _0x47624f=this;return new Promise(function(_0x1c9931,_0x2dbced){const _0x579a8c=a1217_0x1ef6;if(_0x52f161[_0x579a8c('0x1f')]&&_0x52f161[_0x579a8c('0x1f')]['id'])try{return _0x2b568e['agents'][_0x52f161['agent']['id']]&&(_0x2b568e[_0x579a8c('0x24')][_0x52f161[_0x579a8c('0x1f')]['id']][_0x579a8c('0x8')]=![],_0x2b568e[_0x579a8c('0x24')][_0x52f161[_0x579a8c('0x1f')]['id']][_0x579a8c('0x26')]=undefined),_0x1c9931({'code':0xc8,'message':_0x52f161});}catch(_0x243b38){return logger[_0x579a8c('0x2a')](_0x243b38[_0x579a8c('0x49')]),_0x2dbced(_0x47624f[_0x579a8c('0x2a')](0x1f4,_0x243b38));}return logger[_0x579a8c('0x2a')](_0x579a8c('0x21')),_0x2dbced(_0x47624f[_0x579a8c('0x2a')](0x1f4,_0x579a8c('0x21')));});},'AbandonInteraction':function(_0x41aec7){const _0x44a7c5=this;return new Promise(function(_0x5306eb,_0x3cc408){const _0xc1125b=a1217_0x1ef6;if(_0x41aec7['channel']&&_0x41aec7[_0xc1125b('0x28')]&&_0x41aec7['interaction']['id'])try{const _0xf090a0=getId(_0x41aec7[_0xc1125b('0x17')],_0x41aec7[_0xc1125b('0x4a')]?_0x41aec7[_0xc1125b('0x4a')]['id']:0x0,_0x41aec7[_0xc1125b('0x28')]?_0x41aec7[_0xc1125b('0x28')]['id']:0x0);return _0x2b568e['rules'][_0xf090a0]&&_0x2b568e[_0xc1125b('0x2')][_0xf090a0][_0xc1125b('0x33')](_0xc1125b('0x56')),_0x5306eb({'code':0xc8,'message':_0x41aec7});}catch(_0xf0dc79){return logger['error'](_0xf0dc79['stack']),_0x3cc408(_0x44a7c5[_0xc1125b('0x2a')](0x1f4,_0xf0dc79));}return logger[_0xc1125b('0x2a')](_0xc1125b('0x21')),_0x3cc408(_0x44a7c5[_0xc1125b('0x2a')](0x1f4,_0xc1125b('0x21')));});},'AgentCapacity':function(_0x1edc9a){const _0x3a5131=this;return new Promise(function(_0x1b8259,_0x5204b3){const _0x57384c=a1217_0x1ef6;if(typeof _0x2b568e[_0x57384c('0x24')][_0x1edc9a['id']]!==_0x57384c('0x27')){for(const _0x5a54fe in _0x1edc9a[_0x57384c('0x45')]){typeof _0x1edc9a[_0x57384c('0x45')][_0x5a54fe]!=='undefined'&&(typeof _0x2b568e[_0x57384c('0x24')][_0x1edc9a['id']][_0x5a54fe+'CurrentCapacity']!==_0x57384c('0x27')&&(_0x2b568e[_0x57384c('0x24')][_0x1edc9a['id']][_0x5a54fe+_0x57384c('0xe')]=parseInt(_0x1edc9a[_0x57384c('0x45')][_0x5a54fe],0xa)));}return _0x2b568e[_0x57384c('0x24')][_0x1edc9a['id']][_0x57384c('0x53')](),_0x1b8259({'code':0xc8,'message':_0x2b568e[_0x57384c('0x24')][_0x1edc9a['id']]});}else return _0x5204b3(_0x3a5131['error'](0x1f4,_0x57384c('0x1a')));});},'Agents':function(){return new Promise(function(_0x1c48b1){const _0x3efdbc=a1217_0x1ef6,_0x51a910=_[_0x3efdbc('0x39')](_0x2b568e[_0x3efdbc('0x24')]);_0x1c48b1({'count':_0x51a910[_0x3efdbc('0x13')],'rows':_0x51a910});});},'ChatQueues':function(){return new Promise(function(_0x2e21a0){const _0x4073ca=a1217_0x1ef6,_0x4a1c71=[];for(const _0x434f06 in _0x2b568e['chatQueues']){if(typeof _0x2b568e[_0x4073ca('0x50')][_0x434f06]!==_0x4073ca('0x27')){const _0x2c4a79=_0x2b568e[_0x4073ca('0x50')][_0x434f06],_0x1885c6={'id':_0x2c4a79['id'],'available':_0x2c4a79[_0x4073ca('0x18')],'loggedIn':_0x2c4a79[_0x4073ca('0x3e')],'name':_0x2c4a79[_0x4073ca('0x2f')],'paused':_0x2c4a79['paused'],'waiting':_0x2c4a79['waiting']};_0x4a1c71['push'](_0x1885c6);}}_0x2e21a0({'count':_0x4a1c71[_0x4073ca('0x13')],'rows':_0x4a1c71});});},'MailQueues':function(){return new Promise(function(_0x535e56){const _0x449672=a1217_0x1ef6,_0x21fde3=[];for(const _0x23ab85 in _0x2b568e['mailQueues']){if(typeof _0x2b568e[_0x449672('0x4')][_0x23ab85]!=='undefined'){const _0xc224f=_0x2b568e[_0x449672('0x4')][_0x23ab85],_0x30db3f={'id':_0xc224f['id'],'available':_0xc224f['available'],'loggedIn':_0xc224f['loggedIn'],'name':_0xc224f['name'],'paused':_0xc224f['paused'],'waiting':_0xc224f[_0x449672('0x2b')]};_0x21fde3[_0x449672('0x4b')](_0x30db3f);}}_0x535e56({'count':_0x21fde3[_0x449672('0x13')],'rows':_0x21fde3});});},'OpenchannelQueues':function(){return new Promise(function(_0x15cb38){const _0x505a6a=a1217_0x1ef6,_0x576973=[];for(const _0x39770 in _0x2b568e['openchannelQueues']){if(typeof _0x2b568e[_0x505a6a('0x3b')][_0x39770]!=='undefined'){const _0x1eb130=_0x2b568e['openchannelQueues'][_0x39770],_0x55e0ec={'id':_0x1eb130['id'],'available':_0x1eb130[_0x505a6a('0x18')],'loggedIn':_0x1eb130[_0x505a6a('0x3e')],'name':_0x1eb130[_0x505a6a('0x2f')],'paused':_0x1eb130[_0x505a6a('0x48')],'waiting':_0x1eb130[_0x505a6a('0x2b')]};_0x576973['push'](_0x55e0ec);}}_0x15cb38({'count':_0x576973[_0x505a6a('0x13')],'rows':_0x576973});});},'SmsQueues':function(){return new Promise(function(_0x18031a){const _0x21f826=a1217_0x1ef6,_0x219102=[];for(const _0xbe4a77 in _0x2b568e[_0x21f826('0x12')]){if(typeof _0x2b568e[_0x21f826('0x12')][_0xbe4a77]!=='undefined'){const _0xf15f04=_0x2b568e['smsQueues'][_0xbe4a77],_0x5c909d={'id':_0xf15f04['id'],'available':_0xf15f04[_0x21f826('0x18')],'loggedIn':_0xf15f04['loggedIn'],'name':_0xf15f04[_0x21f826('0x2f')],'paused':_0xf15f04[_0x21f826('0x48')],'waiting':_0xf15f04[_0x21f826('0x2b')]};_0x219102[_0x21f826('0x4b')](_0x5c909d);}}_0x18031a({'count':_0x219102['length'],'rows':_0x219102});});},'FaxQueues':function(){return new Promise(function(_0x955cb1){const _0x146ff4=a1217_0x1ef6,_0x3427b4=[];for(const _0x1c8855 in _0x2b568e['faxQueues']){if(typeof _0x2b568e['faxQueues'][_0x1c8855]!==_0x146ff4('0x27')){const _0x198be7=_0x2b568e[_0x146ff4('0x58')][_0x1c8855],_0x20148a={'id':_0x198be7['id'],'available':_0x198be7[_0x146ff4('0x18')],'loggedIn':_0x198be7[_0x146ff4('0x3e')],'name':_0x198be7[_0x146ff4('0x2f')],'paused':_0x198be7['paused'],'waiting':_0x198be7[_0x146ff4('0x2b')]};_0x3427b4[_0x146ff4('0x4b')](_0x20148a);}}_0x955cb1({'count':_0x3427b4[_0x146ff4('0x13')],'rows':_0x3427b4});});},'WhatsappQueues':function(){return new Promise(function(_0x30fb1d){const _0x1f02c9=a1217_0x1ef6,_0x20e073=[];for(const _0x52777e in _0x2b568e[_0x1f02c9('0xc')]){if(typeof _0x2b568e[_0x1f02c9('0xc')][_0x52777e]!==_0x1f02c9('0x27')){const _0x40e583=_0x2b568e['whatsappQueues'][_0x52777e],_0x4aef6b={'id':_0x40e583['id'],'available':_0x40e583['available'],'loggedIn':_0x40e583[_0x1f02c9('0x3e')],'name':_0x40e583['name'],'paused':_0x40e583[_0x1f02c9('0x48')],'waiting':_0x40e583[_0x1f02c9('0x2b')]};_0x20e073['push'](_0x4aef6b);}}_0x30fb1d({'count':_0x20e073[_0x1f02c9('0x13')],'rows':_0x20e073});});},'ChatQueuesWaitingInteractions':function(){return new Promise(function(_0x31ad81){const _0xa73e35=a1217_0x1ef6,_0x31fd9e=_[_0xa73e35('0x39')](_0x2b568e[_0xa73e35('0x15')]);_0x31ad81({'count':_0x31fd9e['length'],'rows':_0x31fd9e});});},'MailQueuesWaitingInteractions':function(){return new Promise(function(_0x59208a){const _0x4fea80=a1217_0x1ef6,_0x38a4ea=_[_0x4fea80('0x39')](_0x2b568e[_0x4fea80('0x1d')]);_0x59208a({'count':_0x38a4ea[_0x4fea80('0x13')],'rows':_0x38a4ea});});},'OpenchannelQueuesWaitingInteractions':function(){return new Promise(function(_0xda66e9){const _0xe97880=a1217_0x1ef6,_0x28128d=_['values'](_0x2b568e['openchannelQueuesWaitingInteractions']);_0xda66e9({'count':_0x28128d[_0xe97880('0x13')],'rows':_0x28128d});});},'SmsQueuesWaitingInteractions':function(){return new Promise(function(_0x39b818){const _0x237ac2=a1217_0x1ef6,_0x496d51=_['values'](_0x2b568e[_0x237ac2('0x3c')]);_0x39b818({'count':_0x496d51[_0x237ac2('0x13')],'rows':_0x496d51});});},'FaxQueuesWaitingInteractions':function(){return new Promise(function(_0x1fcfa8){const _0x18215f=a1217_0x1ef6,_0x2d9984=_[_0x18215f('0x39')](_0x2b568e[_0x18215f('0x29')]);_0x1fcfa8({'count':_0x2d9984['length'],'rows':_0x2d9984});});},'WhatsappQueuesWaitingInteractions':function(){return new Promise(function(_0x5492eb){const _0x4795c5=a1217_0x1ef6,_0x2dcfcf=_[_0x4795c5('0x39')](_0x2b568e[_0x4795c5('0x1')]);_0x5492eb({'count':_0x2dcfcf[_0x4795c5('0x13')],'rows':_0x2dcfcf});});}},_0x113c1b=jayson[_0x3e7b26('0x52')](_0x360422)['http']();_0x113c1b['on'](_0x3e7b26('0x2a'),function(_0x464016){const _0x22f74d=_0x3e7b26;return logger[_0x22f74d('0x2a')](JSON[_0x22f74d('0x43')](_0x464016)),_0x726f71(_0x464016);}),_0x113c1b[_0x3e7b26('0x4f')](0x232c,_0x3e7b26('0xb'),function(){const _0x4375e0=_0x3e7b26;return console['log'](_0x4375e0('0x5'),0x232c),_0x2fb3dc(_0x4375e0('0x4e')+0x232c);});});}; \ No newline at end of file +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 diff --git a/server/services/routing/server/interval.js b/server/services/routing/server/interval.js index 509384c..e2032d8 100644 --- a/server/services/routing/server/interval.js +++ b/server/services/routing/server/interval.js @@ -1 +1 @@ -const a1218_0x1187=['all','result','Command','http','routing','iftime\x20%s','[%s][INTERVAL]\x20%s\x20%s','true','condition','message','jayson/promise','stack','join','format','catch','log','rules','client','request','stop','error','indexOf','info','when','util','\x20|\x20','length','[%s][INTERVAL]\x20%s'];(function(_0xe90fde,_0x118718){const _0x4b9e41=function(_0x24950b){while(--_0x24950b){_0xe90fde['push'](_0xe90fde['shift']());}};_0x4b9e41(++_0x118718);}(a1218_0x1187,0x149));const a1218_0x4b9e=function(_0xe90fde,_0x118718){_0xe90fde=_0xe90fde-0x0;let _0x4b9e41=a1218_0x1187[_0xe90fde];return _0x4b9e41;};const _0x2eb4b6=a1218_0x4b9e;'use strict';const util=require(_0x2eb4b6('0x3')),jayson=require(_0x2eb4b6('0x11')),_=require('lodash'),logger=require('../../../config/logger')(_0x2eb4b6('0xb')),client=jayson[_0x2eb4b6('0x18')][_0x2eb4b6('0xa')]({'port':0x232a});function request(_0x24950b,_0x6f1e10){return new Promise(function(_0x1f4234,_0xcaadc5){const _0x280e5c=a1218_0x4b9e;return client[_0x280e5c('0x19')](_0x24950b,_0x6f1e10)['then'](function(_0x16971a){const _0x397d82=_0x280e5c;return _0x16971a['error']?_0xcaadc5(_0x16971a[_0x397d82('0x1b')][_0x397d82('0x10')]):_0x1f4234(_0x16971a[_0x397d82('0x8')]);})[_0x280e5c('0x15')](function(_0xe69c54){return _0xcaadc5(_0xe69c54);});});}exports[_0x2eb4b6('0xf')]=function(_0x3aa0c7,_0x50cc4b,_0x36cdfd){return function(_0x39b3ac){const _0x4025ed=a1218_0x4b9e;if(_0x36cdfd['rules']&&!_0x36cdfd[_0x4025ed('0x17')][_0x3aa0c7])return logger['info']('[%s][INTERVAL]\x20ROUTING\x20STOPPED',_0x3aa0c7),_0x39b3ac[_0x4025ed('0x1a')]();const _0x4c062d=[];for(let _0x5394d8=0x0;_0x5394d8<_0x50cc4b[_0x4025ed('0x5')];_0x5394d8+=0x1){_0x4c062d['push'](request(_0x4025ed('0x9'),{'command':util[_0x4025ed('0x14')](_0x4025ed('0xc'),_0x50cc4b[_0x5394d8])})['then'](function(_0x4d268e){const _0x2a56ee=_0x4025ed;return _0x4d268e&&_0x4d268e['message']&&_0x4d268e[_0x2a56ee('0x10')][_0x2a56ee('0x0')](_0x2a56ee('0xe'))>=0x0?!![]:![];})[_0x4025ed('0x15')](function(){const _0x219321=_0x4025ed;logger[_0x219321('0x1b')](_0x219321('0x6'),_0x3aa0c7,_0x50cc4b[_0x5394d8]);}));}Promise[_0x4025ed('0x7')](_0x4c062d)['then'](function(_0x57bdad){const _0x41520f=_0x4025ed,_0x39dd0b=_['some'](_0x57bdad);logger[_0x41520f('0x1')]('[%s][INTERVAL]\x20%s\x20%s',_0x3aa0c7,_0x50cc4b[_0x41520f('0x13')](_0x41520f('0x4')),_0x39dd0b),_0x39b3ac[_0x41520f('0x2')](_0x39dd0b);})[_0x4025ed('0x15')](function(_0x560d57){const _0x6cf7ee=_0x4025ed;console[_0x6cf7ee('0x16')](_0x560d57),logger['error'](_0x6cf7ee('0xd'),_0x3aa0c7,_0x50cc4b[_0x6cf7ee('0x13')](_0x6cf7ee('0x4')),_0x560d57[_0x6cf7ee('0x12')]),_0x39b3ac['stop']();});};}; \ No newline at end of file +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 diff --git a/server/services/xdr/agents.controller.js b/server/services/xdr/agents.controller.js index f47d6f2..c48f7a6 100644 --- a/server/services/xdr/agents.controller.js +++ b/server/services/xdr/agents.controller.js @@ -1 +1 @@ -const a1219_0x3fbe=['transfereeuniqueid','info','push','origtransfereruniqueid','hangup','splice','calleridnum','secondtransfererexten','ATTENDED','agententerreason','complete','blind','agentcomplete','getVoiceQueueByName','transfereruniqueid','agentacw','lastevent','calleridname','agentconnectAt','request','secondtransfererlinkedid','acw','channel','transferexten','origtransfererlinkedid','cause','secondtransfereruniqueid','timeout','answeredelsewheredestinationuniqueid','format','connectedlinename','forIn','lodash','./utils','answeredelsewheremembername','transfertargetuniqueid','agent','diffTime','CreateVoiceAgentReport','abandoned','interface','queue','indexOf','now','connectedlinenum','destuniqueid','clone','queuecallerabandon','agentcalled','transfertype','attendedtransfer','holdtime','type','agentringnoanswer','uniqueid','agentconnect','util','origtransfererexten','agentcalledAt','error','isNil','reason','transfer','agentringnoanswerAt','answered_elsewhere','connect','includes','talktime','transferuniqueid','stack','ringtime','agentcompleteAt'];(function(_0x23c8bb,_0x3fbe40){const _0x557145=function(_0x303c03){while(--_0x303c03){_0x23c8bb['push'](_0x23c8bb['shift']());}};_0x557145(++_0x3fbe40);}(a1219_0x3fbe,0x10e));const a1219_0x5571=function(_0x23c8bb,_0x3fbe40){_0x23c8bb=_0x23c8bb-0x0;let _0x557145=a1219_0x3fbe[_0x23c8bb];return _0x557145;};const _0x230355=a1219_0x5571;'use strict';const _=require(_0x230355('0x32')),util=require(_0x230355('0x2')),utils=require(_0x230355('0x33')),agents={},transfers={},unanswered=[];function writeDB(_0x303c03,_0x4308e9){const _0x4adb5a=_0x230355;utils[_0x4adb5a('0x13')](util[_0x4adb5a('0x2f')]('AGENT|%s|%s|%s|%s|%s|%s|%s|%s',_0x303c03[_0x4adb5a('0x0')],_0x303c03[_0x4adb5a('0x28')],_0x303c03[_0x4adb5a('0x3b')],_0x303c03['membername'],_0x303c03[_0x4adb5a('0x3a')],_0x303c03[_0x4adb5a('0x18')],_0x303c03[_0x4adb5a('0x3e')],_0x303c03[_0x4adb5a('0x22')])),_0x303c03[_0x4adb5a('0x3b')]?utils[_0x4adb5a('0x1f')](_0x303c03[_0x4adb5a('0x3b')])['then'](function(_0x3a028a){const _0x2521ce=_0x4adb5a;_0x3a028a&&(_0x303c03[_0x2521ce('0x46')]=_0x3a028a[_0x2521ce('0x46')],_0x303c03[_0x2521ce('0x21')]=_0x303c03[_0x2521ce('0x1e')]?_0x3a028a[_0x2521ce('0x27')]:![],_0x303c03['acwtime']=_0x303c03[_0x2521ce('0x21')]?_0x3a028a['acwTimeout']:0x0),utils[_0x2521ce('0x25')](_0x2521ce('0x38'),_0x303c03);}):utils['request'](_0x4adb5a('0x38'),_0x303c03),_0x4308e9?delete transfers[_0x303c03['uniqueid']]:delete agents[_0x303c03[_0x4adb5a('0x3f')]];}exports[_0x230355('0x42')]=function(_0x472a2d){const _0x1e42f4=_0x230355;try{agents[_0x472a2d[_0x1e42f4('0x3f')]]=_0x472a2d,agents[_0x472a2d[_0x1e42f4('0x3f')]][_0x1e42f4('0x4')]=utils[_0x1e42f4('0x3d')](),agents[_0x472a2d[_0x1e42f4('0x3f')]][_0x1e42f4('0x22')]='called',agents[_0x472a2d['destuniqueid']][_0x1e42f4('0x3e')]=null,agents[_0x472a2d[_0x1e42f4('0x3f')]]['connectedlinename']=null;}catch(_0x2843d6){utils['error'](_0x2843d6[_0x1e42f4('0xf')]);}},exports[_0x230355('0x47')]=function(_0xb29282){const _0x48f305=_0x230355;try{!_[_0x48f305('0x6')](agents[_0xb29282[_0x48f305('0x3f')]])&&(agents[_0xb29282[_0x48f305('0x3f')]][_0x48f305('0x47')]=!![],agents[_0xb29282[_0x48f305('0x3f')]][_0x48f305('0x9')]=utils[_0x48f305('0x3d')](),agents[_0xb29282[_0x48f305('0x3f')]][_0x48f305('0x22')]=_0x48f305('0x2d'),agents[_0xb29282[_0x48f305('0x3f')]][_0x48f305('0x7')]='timeout',agents[_0xb29282['destuniqueid']][_0x48f305('0x45')]=_0xb29282[_0x48f305('0x10')]?parseInt(_0xb29282[_0x48f305('0x10')])/0x3e8:0x0,agents[_0xb29282[_0x48f305('0x3f')]]['talktime']=0x0,unanswered[_0x48f305('0x14')](_0xb29282[_0x48f305('0x3f')]));}catch(_0x130515){utils['error'](_0x130515['stack']);}},exports[_0x230355('0x41')]=function(_0x521560){const _0x1b1b82=_0x230355;try{_[_0x1b1b82('0x31')](agents,function(_0x23f871){const _0x564462=_0x1b1b82;_0x23f871[_0x564462('0x0')]==_0x521560[_0x564462('0x0')]&&!_[_0x564462('0xc')](unanswered,_0x23f871[_0x564462('0x3f')])&&(_0x23f871[_0x564462('0x47')]=!![],_0x23f871[_0x564462('0x9')]=utils['now'](),_0x23f871[_0x564462('0x22')]=_0x564462('0x39'),_0x23f871[_0x564462('0x7')]=_0x564462('0x39'),_0x23f871[_0x564462('0x45')]=_0x521560[_0x564462('0x45')],_0x23f871[_0x564462('0xd')]=0x0,writeDB(_0x23f871));});}catch(_0x129fd1){utils[_0x1b1b82('0x5')](_0x129fd1[_0x1b1b82('0xf')]);}},exports[_0x230355('0x1')]=function(_0x14ceb6){const _0x26c0a0=_0x230355;try{agents[_0x14ceb6['destuniqueid']]&&(agents[_0x14ceb6['destuniqueid']]['agentconnectAt']=utils[_0x26c0a0('0x3d')](),agents[_0x14ceb6[_0x26c0a0('0x3f')]][_0x26c0a0('0x3e')]=_0x14ceb6['connectedlinenum'],agents[_0x14ceb6[_0x26c0a0('0x3f')]][_0x26c0a0('0x30')]=_0x14ceb6[_0x26c0a0('0x30')],agents[_0x14ceb6[_0x26c0a0('0x3f')]]['holdtime']=_0x14ceb6[_0x26c0a0('0x10')],agents[_0x14ceb6[_0x26c0a0('0x3f')]][_0x26c0a0('0x22')]=_0x26c0a0('0xb'),_['forIn'](agents,function(_0x14b0fc){const _0x16ef1f=_0x26c0a0;_0x14b0fc['destuniqueid']!=_0x14ceb6[_0x16ef1f('0x3f')]&&_0x14b0fc['uniqueid']==_0x14ceb6[_0x16ef1f('0x0')]&&(_0x14b0fc['talktime']=0x0,_0x14b0fc['holdtime']=_0x14ceb6['ringtime'],_0x14b0fc['agentringnoanswer']=!![],_0x14b0fc['agentringnoanswerAt']=utils[_0x16ef1f('0x3d')](),_0x14b0fc[_0x16ef1f('0x22')]='answered_elsewhere',_0x14b0fc[_0x16ef1f('0x7')]=_0x16ef1f('0xa'),_0x14b0fc[_0x16ef1f('0x2e')]=_0x14ceb6[_0x16ef1f('0x3f')],_0x14b0fc[_0x16ef1f('0x34')]=_0x14ceb6['membername'],writeDB(_0x14b0fc));}));}catch(_0x708fa6){utils[_0x26c0a0('0x5')](_0x708fa6[_0x26c0a0('0xf')]);}},exports['agentcomplete']=function(_0x245a12){const _0x5f281d=_0x230355;try{!_[_0x5f281d('0x6')](agents[_0x245a12[_0x5f281d('0x3f')]])&&(agents[_0x245a12[_0x5f281d('0x3f')]][_0x5f281d('0x1e')]=!![],agents[_0x245a12[_0x5f281d('0x3f')]][_0x5f281d('0x11')]=utils[_0x5f281d('0x3d')](),agents[_0x245a12[_0x5f281d('0x3f')]][_0x5f281d('0xd')]=utils[_0x5f281d('0x37')](agents[_0x245a12[_0x5f281d('0x3f')]][_0x5f281d('0x11')],agents[_0x245a12[_0x5f281d('0x3f')]][_0x5f281d('0x24')]),agents[_0x245a12[_0x5f281d('0x3f')]]['reason']=_0x245a12['reason'],agents[_0x245a12[_0x5f281d('0x3f')]][_0x5f281d('0x22')]=_0x5f281d('0x1c'),writeDB(agents[_0x245a12['destuniqueid']]));}catch(_0x1cf2f4){utils[_0x5f281d('0x5')](_0x1cf2f4[_0x5f281d('0xf')]);}},exports['blindtransfer']=function(_0x3b1967){const _0x3dc22a=_0x230355;try{!_[_0x3dc22a('0x6')](agents[_0x3b1967[_0x3dc22a('0x20')]])&&(agents[_0x3b1967[_0x3dc22a('0x20')]][_0x3dc22a('0x8')]=!![],agents[_0x3b1967['transfereruniqueid']][_0x3dc22a('0x43')]=_0x3dc22a('0x1d'),agents[_0x3b1967['transfereruniqueid']][_0x3dc22a('0x29')]=_0x3b1967['extension'],agents[_0x3b1967[_0x3dc22a('0x20')]][_0x3dc22a('0xe')]=agents[_0x3b1967[_0x3dc22a('0x20')]]['uniqueid']);}catch(_0x269dec){utils[_0x3dc22a('0x5')](_0x269dec[_0x3dc22a('0xf')]);}},exports[_0x230355('0x44')]=function(_0x3a794a){const _0xfb63ab=_0x230355;try{if(_0x3a794a[_0xfb63ab('0x15')]==_0x3a794a[_0xfb63ab('0x2a')])!_[_0xfb63ab('0x6')](agents[_0x3a794a[_0xfb63ab('0x2c')]])&&(agents[_0x3a794a[_0xfb63ab('0x2c')]][_0xfb63ab('0x8')]=!![],agents[_0x3a794a['secondtransfereruniqueid']][_0xfb63ab('0x43')]=_0xfb63ab('0x1a'),agents[_0x3a794a[_0xfb63ab('0x2c')]]['transferexten']=_0x3a794a[_0xfb63ab('0x3')],agents[_0x3a794a[_0xfb63ab('0x2c')]][_0xfb63ab('0xe')]=_0x3a794a[_0xfb63ab('0x15')]),_0x3a794a[_0xfb63ab('0x12')]&&agents[_0x3a794a['transfereeuniqueid']]&&(agents[_0x3a794a['transfereeuniqueid']]['agententerreason']=0x1,transfers[_0x3a794a[_0xfb63ab('0x12')]]=_[_0xfb63ab('0x40')](agents[_0x3a794a[_0xfb63ab('0x12')]]),transfers[_0x3a794a[_0xfb63ab('0x12')]]['calleridnum']=agents[_0x3a794a[_0xfb63ab('0x2c')]][_0xfb63ab('0x18')],transfers[_0x3a794a[_0xfb63ab('0x12')]][_0xfb63ab('0x23')]=agents[_0x3a794a[_0xfb63ab('0x2c')]][_0xfb63ab('0x23')],transfers[_0x3a794a[_0xfb63ab('0x12')]]['agentcalledAt']=utils['now'](),transfers[_0x3a794a[_0xfb63ab('0x12')]]['agentconnectAt']=utils[_0xfb63ab('0x3d')](),transfers[_0x3a794a[_0xfb63ab('0x12')]][_0xfb63ab('0x45')]=0x0,transfers[_0x3a794a['transfereeuniqueid']][_0xfb63ab('0x1b')]=0x2);else _0x3a794a[_0xfb63ab('0x2c')]==_0x3a794a[_0xfb63ab('0x26')]&&(!_[_0xfb63ab('0x6')](agents[_0x3a794a[_0xfb63ab('0x15')]])&&(agents[_0x3a794a['origtransfereruniqueid']][_0xfb63ab('0x8')]=!![],agents[_0x3a794a['origtransfereruniqueid']]['transfertype']=_0xfb63ab('0x1a'),agents[_0x3a794a[_0xfb63ab('0x15')]][_0xfb63ab('0x29')]=_0x3a794a[_0xfb63ab('0x19')],agents[_0x3a794a[_0xfb63ab('0x15')]][_0xfb63ab('0xe')]=_0x3a794a[_0xfb63ab('0x2c')]),_0x3a794a[_0xfb63ab('0x35')]&&agents[_0x3a794a[_0xfb63ab('0x35')]]&&(agents[_0x3a794a[_0xfb63ab('0x35')]][_0xfb63ab('0x1b')]=0x1,transfers[_0x3a794a[_0xfb63ab('0x35')]]=_[_0xfb63ab('0x40')](agents[_0x3a794a[_0xfb63ab('0x35')]]),transfers[_0x3a794a[_0xfb63ab('0x35')]]['calleridnum']=agents[_0x3a794a[_0xfb63ab('0x15')]][_0xfb63ab('0x18')],transfers[_0x3a794a[_0xfb63ab('0x35')]][_0xfb63ab('0x23')]=agents[_0x3a794a[_0xfb63ab('0x15')]][_0xfb63ab('0x23')],transfers[_0x3a794a[_0xfb63ab('0x35')]][_0xfb63ab('0x4')]=utils[_0xfb63ab('0x3d')](),transfers[_0x3a794a[_0xfb63ab('0x35')]][_0xfb63ab('0x24')]=utils[_0xfb63ab('0x3d')](),transfers[_0x3a794a[_0xfb63ab('0x35')]][_0xfb63ab('0x45')]=0x0,transfers[_0x3a794a[_0xfb63ab('0x35')]][_0xfb63ab('0x1b')]=0x2));}catch(_0x3539d6){utils[_0xfb63ab('0x5')](_0x3539d6[_0xfb63ab('0xf')]);}},exports[_0x230355('0x16')]=function(_0x487faa){const _0x48d0b5=_0x230355;try{if(agents[_0x487faa['uniqueid']]&&agents[_0x487faa['uniqueid']]['reason']===_0x48d0b5('0x2d')){_0x487faa[_0x48d0b5('0x2b')]==='21'&&(agents[_0x487faa['uniqueid']][_0x48d0b5('0x7')]='rejected',agents[_0x487faa['uniqueid']]['lastevent']='rejected');writeDB(agents[_0x487faa[_0x48d0b5('0x0')]]);const _0x5f30a7=unanswered[_0x48d0b5('0x3c')](_0x487faa[_0x48d0b5('0x0')]);if(_0x5f30a7>-0x1)unanswered[_0x48d0b5('0x17')](_0x5f30a7,0x1);}transfers[_0x487faa[_0x48d0b5('0x0')]]&&(transfers[_0x487faa[_0x48d0b5('0x0')]][_0x48d0b5('0x1e')]=!![],transfers[_0x487faa['uniqueid']][_0x48d0b5('0x11')]=utils[_0x48d0b5('0x3d')](),transfers[_0x487faa[_0x48d0b5('0x0')]][_0x48d0b5('0xd')]=utils[_0x48d0b5('0x37')](transfers[_0x487faa['uniqueid']][_0x48d0b5('0x11')],transfers[_0x487faa['uniqueid']][_0x48d0b5('0x24')]),transfers[_0x487faa[_0x48d0b5('0x0')]][_0x48d0b5('0x7')]=_0x48d0b5('0x36'),transfers[_0x487faa['uniqueid']][_0x48d0b5('0x22')]=_0x48d0b5('0x1c'),writeDB(transfers[_0x487faa[_0x48d0b5('0x0')]],!![])),agents[_0x487faa[_0x48d0b5('0x0')]]&&agents[_0x487faa[_0x48d0b5('0x0')]][_0x48d0b5('0x24')]&&(agents[_0x487faa[_0x48d0b5('0x0')]][_0x48d0b5('0x1e')]=!![],agents[_0x487faa['uniqueid']]['agentcompleteAt']=utils['now'](),agents[_0x487faa['uniqueid']][_0x48d0b5('0xd')]=utils[_0x48d0b5('0x37')](agents[_0x487faa['uniqueid']]['agentcompleteAt'],agents[_0x487faa[_0x48d0b5('0x0')]][_0x48d0b5('0x24')]),agents[_0x487faa[_0x48d0b5('0x0')]][_0x48d0b5('0x7')]=agents[_0x487faa[_0x48d0b5('0x0')]]['transfer']?'transfer':'agent',agents[_0x487faa[_0x48d0b5('0x0')]]['lastevent']=_0x48d0b5('0x1c'),writeDB(agents[_0x487faa[_0x48d0b5('0x0')]]));}catch(_0x565c77){utils[_0x48d0b5('0x5')](_0x565c77[_0x48d0b5('0xf')]);}}; \ No newline at end of file +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 diff --git a/server/services/xdr/calls.controller.js b/server/services/xdr/calls.controller.js index a754014..e912128 100644 --- a/server/services/xdr/calls.controller.js +++ b/server/services/xdr/calls.controller.js @@ -1 +1 @@ -const a1220_0xc4bd=['execif','isNil','destination','getUserByInternal','xmd-phone','Queue','localtwolinkedid','xmd-cdrtype','xmd-contactid','transfereechannel','callerid','error','variable','lodash','diffTime','noop','ContactId','calleridnum','hangup','substring','split','linkedid','appdata','channelstate','format','musiconholdstartAt','xmd-queue','varset','cdr','source','stack','musiconholdstop','set','application','newchannel','util','mohtime','ANSWERED','includes','OutgoingSpoolFailed','calleridname','transfertargetchannel','UserId','channel','outboundrouteid','destinationchannel','CALL|%s|%s|%s|%s|%s|%s|%s|%s','./utils','answertime','BUSY','routeid','endtime','now','toLowerCase','type','CreateVoiceCallReport','gotoif','starttime','lastapplication','accountcode','systemanswertime','transfer','duration','userfield','sipcallid','startsWith','exten','xmd-originatecalleridnum','billableseconds','xmd-callerid','xmd-callerid-preview','NO\x20ANSWER','value','lastIndexOf','FAILED','attendedtransfer','uniqueid'];(function(_0x508fd6,_0xc4bd9e){const _0x37d6ca=function(_0x3b40cd){while(--_0x3b40cd){_0x508fd6['push'](_0x508fd6['shift']());}};_0x37d6ca(++_0xc4bd9e);}(a1220_0xc4bd,0x185));const a1220_0x37d6=function(_0x508fd6,_0xc4bd9e){_0x508fd6=_0x508fd6-0x0;let _0x37d6ca=a1220_0xc4bd[_0x508fd6];return _0x37d6ca;};const _0x543e3f=a1220_0x37d6;'use strict';const _=require(_0x543e3f('0x9')),util=require(_0x543e3f('0x1f')),utils=require(_0x543e3f('0x2b')),dispositions=['NO\x20ANSWER',_0x543e3f('0x46'),_0x543e3f('0x46'),_0x543e3f('0x43'),_0x543e3f('0x43'),_0x543e3f('0x43'),_0x543e3f('0x21'),_0x543e3f('0x2d'),_0x543e3f('0x46'),'FAILED',_0x543e3f('0x46')],channels={};function writeDB(_0x3b40cd){const _0x5d052a=_0x543e3f;utils['info'](util[_0x5d052a('0x14')](_0x5d052a('0x2a'),_0x3b40cd[_0x5d052a('0x48')],_0x3b40cd[_0x5d052a('0x27')],_0x3b40cd['type'],_0x3b40cd[_0x5d052a('0x37')],_0x3b40cd[_0x5d052a('0x19')],_0x3b40cd[_0x5d052a('0x4b')],_0x3b40cd['callerid'],_0x3b40cd['disposition'])),_0x3b40cd['accountcode']?utils[_0x5d052a('0x4c')](_0x3b40cd['accountcode'])['then'](function(_0x510fd3){const _0x501dd3=_0x5d052a;_0x510fd3&&(_0x3b40cd[_0x501dd3('0x26')]=_0x510fd3['id']),utils['request'](_0x501dd3('0x33'),_0x3b40cd);}):utils['request'](_0x5d052a('0x33'),_0x3b40cd),channels[_0x3b40cd[_0x5d052a('0x48')]]&&delete channels[_0x3b40cd[_0x5d052a('0x48')]];}exports[_0x543e3f('0x1e')]=function(_0x43ce7a){const _0x3c0544=_0x543e3f;try{_0x43ce7a['uniqueid']==_0x43ce7a[_0x3c0544('0x11')]&&_0x43ce7a[_0x3c0544('0x27')]!=_0x3c0544('0x23')&&(channels[_0x43ce7a[_0x3c0544('0x48')]]={'uniqueid':_0x43ce7a[_0x3c0544('0x48')],'accountcode':_0x43ce7a['accountcode'],'source':_0x43ce7a[_0x3c0544('0xd')],'destination':_0x43ce7a[_0x3c0544('0x3e')],'destinationcontext':_0x43ce7a['context'],'channel':_0x43ce7a[_0x3c0544('0x27')],'starttime':utils[_0x3c0544('0x30')](),'answertime':null,'systemanswertime':null,'mohtime':0x0,'disposition':_0x3c0544('0x43'),'amaflags':'DOCUMENTATION'});}catch(_0x5690dc){utils[_0x3c0544('0x7')](_0x5690dc[_0x3c0544('0x1a')]);}},exports['newstate']=function(_0x1f8ac6){const _0x59c144=_0x543e3f;try{if(!_['isNil'](channels[_0x1f8ac6['uniqueid']])&&_0x1f8ac6[_0x59c144('0x13')]==0x6)_[_0x59c144('0x4a')](channels[_0x1f8ac6[_0x59c144('0x48')]][_0x59c144('0x38')])&&(channels[_0x1f8ac6[_0x59c144('0x48')]]['systemanswertime']=utils[_0x59c144('0x30')]());else!_[_0x59c144('0x4a')](channels[_0x1f8ac6[_0x59c144('0x11')]])&&_0x1f8ac6[_0x59c144('0x13')]==0x6&&_0x1f8ac6['context']!=_0x59c144('0x39')&&(channels[_0x1f8ac6[_0x59c144('0x11')]][_0x59c144('0x37')]=_0x1f8ac6[_0x59c144('0x37')],channels[_0x1f8ac6[_0x59c144('0x11')]][_0x59c144('0x29')]=_0x1f8ac6[_0x59c144('0x27')],_[_0x59c144('0x4a')](channels[_0x1f8ac6['linkedid']][_0x59c144('0x2c')])&&(channels[_0x1f8ac6['linkedid']]['answertime']=utils[_0x59c144('0x30')]()),channels[_0x1f8ac6[_0x59c144('0x11')]]['disposition']=dispositions[_['toNumber'](_0x1f8ac6['channelstate'])]||_0x59c144('0x21'));}catch(_0xb35943){utils[_0x59c144('0x7')](_0xb35943[_0x59c144('0x1a')]);}},exports[_0x543e3f('0xe')]=function(_0x222e7c){const _0x57fab3=_0x543e3f;try{!_[_0x57fab3('0x4a')](channels[_0x222e7c['uniqueid']])&&(_[_0x57fab3('0x4a')](channels[_0x222e7c[_0x57fab3('0x48')]]['callerid'])&&(channels[_0x222e7c[_0x57fab3('0x48')]][_0x57fab3('0x6')]=_0x222e7c[_0x57fab3('0x24')]+'\x20<'+_0x222e7c[_0x57fab3('0xd')]+'>'),channels[_0x222e7c[_0x57fab3('0x48')]][_0x57fab3('0x2f')]=utils['now'](),channels[_0x222e7c['uniqueid']][_0x57fab3('0x3a')]=utils['diffTime'](channels[_0x222e7c[_0x57fab3('0x48')]]['endtime'],channels[_0x222e7c[_0x57fab3('0x48')]][_0x57fab3('0x35')]),channels[_0x222e7c[_0x57fab3('0x48')]][_0x57fab3('0x40')]=channels[_0x222e7c['uniqueid']][_0x57fab3('0x2c')]?utils[_0x57fab3('0xa')](channels[_0x222e7c['uniqueid']][_0x57fab3('0x2f')],channels[_0x222e7c[_0x57fab3('0x48')]][_0x57fab3('0x2c')]):0x0,writeDB(channels[_0x222e7c['uniqueid']]));}catch(_0x470c4c){utils[_0x57fab3('0x7')](_0x470c4c['stack']);}},exports[_0x543e3f('0x47')]=function(_0x10c31c){const _0x21b0ad=_0x543e3f;try{if(!_[_0x21b0ad('0x4a')](channels[_0x10c31c[_0x21b0ad('0x2')]])){if(channels[_0x10c31c['localtwolinkedid']][_0x21b0ad('0x27')]==_0x10c31c[_0x21b0ad('0x5')])channels[_0x10c31c[_0x21b0ad('0x2')]][_0x21b0ad('0x29')]=_0x10c31c['secondtransfererchannel'],channels[_0x10c31c[_0x21b0ad('0x2')]][_0x21b0ad('0x3b')]='_attended';else(channels[_0x10c31c[_0x21b0ad('0x2')]][_0x21b0ad('0x27')]=_0x10c31c[_0x21b0ad('0x25')])&&(channels[_0x10c31c[_0x21b0ad('0x2')]][_0x21b0ad('0x29')]=_0x10c31c['origtransfererchannel'],channels[_0x10c31c[_0x21b0ad('0x2')]][_0x21b0ad('0x3b')]='_attended');}}catch(_0x1909b3){utils[_0x21b0ad('0x7')](_0x1909b3[_0x21b0ad('0x1a')]);}},exports['musiconholdstart']=function(_0x4ac1ed){const _0x2eff04=_0x543e3f;try{!_[_0x2eff04('0x4a')](channels[_0x4ac1ed[_0x2eff04('0x48')]])&&(channels[_0x4ac1ed[_0x2eff04('0x48')]]['musiconholdstartAt']=utils['now']());}catch(_0x38ab3e){utils[_0x2eff04('0x7')](_0x38ab3e[_0x2eff04('0x1a')]);}},exports[_0x543e3f('0x1b')]=function(_0x2981ba){const _0x7762d1=_0x543e3f;try{!_[_0x7762d1('0x4a')](channels[_0x2981ba[_0x7762d1('0x48')]])&&(!_[_0x7762d1('0x4a')](channels[_0x2981ba['uniqueid']]['musiconholdstartAt'])&&(channels[_0x2981ba[_0x7762d1('0x48')]][_0x7762d1('0x20')]+=utils[_0x7762d1('0xa')](utils[_0x7762d1('0x30')](),channels[_0x2981ba[_0x7762d1('0x48')]][_0x7762d1('0x15')]),delete channels[_0x2981ba[_0x7762d1('0x48')]]['musiconholdstartAt']));}catch(_0x4c69bf){utils[_0x7762d1('0x7')](_0x4c69bf['stack']);}},exports[_0x543e3f('0x17')]=function(_0x5413ef){const _0x411c50=_0x543e3f;try{!_[_0x411c50('0x4a')](channels[_0x5413ef[_0x411c50('0x48')]])&&(!_['isNil'](_0x5413ef['variable'][_0x411c50('0x3f')])&&(channels[_0x5413ef[_0x411c50('0x48')]][_0x411c50('0x19')]=_0x5413ef[_0x411c50('0x44')]),!_[_0x411c50('0x4a')](_0x5413ef[_0x411c50('0x8')][_0x411c50('0x0')])&&(channels[_0x5413ef[_0x411c50('0x48')]]['destination']=_0x5413ef[_0x411c50('0x44')],channels[_0x5413ef[_0x411c50('0x48')]][_0x411c50('0x6')]='\x22'+_0x5413ef[_0x411c50('0x44')]+'\x22\x20<'+_0x5413ef[_0x411c50('0x44')]+'>'),(!_['isNil'](_0x5413ef[_0x411c50('0x8')][_0x411c50('0x42')])||!_[_0x411c50('0x4a')](_0x5413ef[_0x411c50('0x8')][_0x411c50('0x41')]))&&(channels[_0x5413ef[_0x411c50('0x48')]][_0x411c50('0x6')]=_0x5413ef[_0x411c50('0x44')]),(!_[_0x411c50('0x4a')](_0x5413ef['variable'][_0x411c50('0x16')])||!_[_0x411c50('0x4a')](_0x5413ef[_0x411c50('0x8')]['xmcs-queue']))&&(channels[_0x5413ef['uniqueid']][_0x411c50('0x36')]=_0x411c50('0x1'),channels[_0x5413ef['uniqueid']]['lastdata']=_0x5413ef[_0x411c50('0x44')],channels[_0x5413ef[_0x411c50('0x48')]]['queue']=!![]),!_[_0x411c50('0x4a')](_0x5413ef[_0x411c50('0x8')][_0x411c50('0x4')])&&(channels[_0x5413ef[_0x411c50('0x48')]][_0x411c50('0xc')]=_0x5413ef[_0x411c50('0x44')]),!_[_0x411c50('0x4a')](_0x5413ef['variable'][_0x411c50('0x3')])&&(channels[_0x5413ef[_0x411c50('0x48')]][_0x411c50('0x32')]=_0x5413ef['value']),!_['isNil'](_0x5413ef[_0x411c50('0x8')][_0x411c50('0x28')])&&(channels[_0x5413ef[_0x411c50('0x48')]][_0x411c50('0x2e')]=_0x5413ef[_0x411c50('0x44')]),!_[_0x411c50('0x4a')](_0x5413ef[_0x411c50('0x8')][_0x411c50('0x3c')])&&(channels[_0x5413ef[_0x411c50('0x48')]][_0x411c50('0x3c')]=_0x5413ef['value']));}catch(_0x37818b){utils['error'](_0x37818b[_0x411c50('0x1a')]);}},exports['newexten']=function(_0x113570){const _0x174a5b=_0x543e3f;try{if(!_[_0x174a5b('0x4a')](channels[_0x113570[_0x174a5b('0x48')]])){if(_0x113570['application'][_0x174a5b('0x31')]()==_0x174a5b('0x1c')&&_[_0x174a5b('0x3d')](_0x113570[_0x174a5b('0x12')]['toLowerCase'](),_0x174a5b('0x18'))){const _0xe44c7c=_0x113570[_0x174a5b('0x12')][_0x174a5b('0x10')]('='),_0x436ad2=_0xe44c7c[0x0][_0x174a5b('0xf')](_0xe44c7c[0x0][_0x174a5b('0x45')]('(')+0x1,_0xe44c7c[0x0][_0x174a5b('0x45')](')')),_0x4692c4=_0xe44c7c[0x1];channels[_0x113570[_0x174a5b('0x48')]][_0x436ad2]=_0x4692c4;}!_[_0x174a5b('0x22')](['hangup',_0x174a5b('0xb'),_0x174a5b('0x49'),_0x174a5b('0x1c'),_0x174a5b('0x34')],_0x113570[_0x174a5b('0x1d')][_0x174a5b('0x31')]())&&(channels[_0x113570[_0x174a5b('0x48')]][_0x174a5b('0x36')]=_0x113570[_0x174a5b('0x1d')],channels[_0x113570[_0x174a5b('0x48')]]['lastdata']=_0x113570[_0x174a5b('0x12')]);}}catch(_0x4fc06b){utils[_0x174a5b('0x7')](_0x4fc06b[_0x174a5b('0x1a')]);}}; \ No newline at end of file +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 diff --git a/server/services/xdr/core.controller.js b/server/services/xdr/core.controller.js index df1af0a..99996d9 100644 --- a/server/services/xdr/core.controller.js +++ b/server/services/xdr/core.controller.js @@ -1 +1 @@ -const a1221_0x40ae=['CONNECTED','managerevent','error','FULLYBOOTED','SHUTDOWN','CLOSE','shutdown','./utils','connect','info','fullybooted'];(function(_0x134971,_0x40aed6){const _0x5112af=function(_0x379abc){while(--_0x379abc){_0x134971['push'](_0x134971['shift']());}};_0x5112af(++_0x40aed6);}(a1221_0x40ae,0xd1));const a1221_0x5112=function(_0x134971,_0x40aed6){_0x134971=_0x134971-0x0;let _0x5112af=a1221_0x40ae[_0x134971];return _0x5112af;};const _0xa079aa=a1221_0x5112;'use strict';const utils=require(_0xa079aa('0x7'));exports[_0xa079aa('0x8')]=function(){const _0x548e01=_0xa079aa;utils[_0x548e01('0x9')](_0x548e01('0x0'));},exports[_0xa079aa('0x6')]=function(){const _0x4a7462=_0xa079aa;utils[_0x4a7462('0x9')](_0x4a7462('0x4'));},exports[_0xa079aa('0xa')]=function(){const _0x4eb96b=_0xa079aa;utils[_0x4eb96b('0x9')](_0x4eb96b('0x3'));},exports[_0xa079aa('0x2')]=function(_0x379abc){const _0x376974=_0xa079aa;utils[_0x376974('0x2')](_0x379abc);},exports['close']=function(){const _0x1c32f1=_0xa079aa;utils[_0x1c32f1('0x9')](_0x1c32f1('0x5'));},exports[_0xa079aa('0x1')]=function(){}; \ No newline at end of file +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 diff --git a/server/services/xdr/dials.controller.js b/server/services/xdr/dials.controller.js index 955da1f..31256ca 100644 --- a/server/services/xdr/dials.controller.js +++ b/server/services/xdr/dials.controller.js @@ -1 +1 @@ -const a1222_0x432c=['stack','toLowerCase','dialbegin','lastevent','value','holdtime','dialend','starttime','CreateVoiceDialReport','complete','application','connect','assign','dialstring','ANSWER','answertime','uniqueid','format','DIAL|%s|%s|%s|%s|%s|%s','diffTime','varset','endtime','calleridnum','error','./utils','request','util','dialstatus','billableseconds','hangup','duration','channel','isNil','info','now','split','startsWith','outboundrouteid','appdata','variable'];(function(_0x88b768,_0x432ca5){const _0xe11b61=function(_0x131b76){while(--_0x131b76){_0x88b768['push'](_0x88b768['shift']());}};_0xe11b61(++_0x432ca5);}(a1222_0x432c,0x7f));const a1222_0xe11b=function(_0x88b768,_0x432ca5){_0x88b768=_0x88b768-0x0;let _0xe11b61=a1222_0x432c[_0x88b768];return _0xe11b61;};const _0x2f7be7=a1222_0xe11b;'use strict';const _=require('lodash'),util=require(_0x2f7be7('0x13')),utils=require(_0x2f7be7('0x11')),dials={};function writeDB(_0x131b76){const _0x1d3f26=_0x2f7be7;utils[_0x1d3f26('0x1a')](util[_0x1d3f26('0xa')](_0x1d3f26('0xb'),_0x131b76[_0x1d3f26('0x9')],_0x131b76[_0x1d3f26('0x18')],_0x131b76[_0x1d3f26('0x6')],_0x131b76[_0x1d3f26('0xf')],_0x131b76['connectedlinenum'],_0x131b76[_0x1d3f26('0x14')])),utils[_0x1d3f26('0x12')](_0x1d3f26('0x1'),_0x131b76),delete dials[_0x131b76[_0x1d3f26('0x9')]];}exports['newexten']=function(_0x14b83d){const _0x9438dc=_0x2f7be7;try{if(_0x14b83d[_0x9438dc('0x3')]['toLowerCase']()=='set'&&_[_0x9438dc('0x1d')](_0x14b83d[_0x9438dc('0x1f')][_0x9438dc('0x22')](),'cdr(routeid)')){const _0x4ec9f1=_0x14b83d[_0x9438dc('0x1f')][_0x9438dc('0x1c')]('=');dials[_0x14b83d['uniqueid']]={'routeId':_0x4ec9f1[0x1]};}}catch(_0x194e77){utils[_0x9438dc('0x10')](_0x194e77[_0x9438dc('0x21')]);}},exports[_0x2f7be7('0xd')]=function(_0x1caa76){const _0x56171f=_0x2f7be7;try{!_['isNil'](_0x1caa76[_0x56171f('0x20')][_0x56171f('0x1e')])&&(dials[_0x1caa76[_0x56171f('0x9')]]={'routeId':_0x1caa76[_0x56171f('0x25')]});}catch(_0x3d675b){utils[_0x56171f('0x10')](_0x3d675b[_0x56171f('0x21')]);}},exports[_0x2f7be7('0x23')]=function(_0x2c4a4e){const _0x32e70c=_0x2f7be7;try{!_[_0x32e70c('0x19')](dials[_0x2c4a4e[_0x32e70c('0x9')]])&&(dials[_0x2c4a4e['uniqueid']]=_[_0x32e70c('0x5')](dials[_0x2c4a4e[_0x32e70c('0x9')]],_0x2c4a4e),dials[_0x2c4a4e['uniqueid']]['starttime']=utils['now'](),dials[_0x2c4a4e[_0x32e70c('0x9')]][_0x32e70c('0x24')]='called');}catch(_0xe36308){utils[_0x32e70c('0x10')](_0xe36308[_0x32e70c('0x21')]);}},exports[_0x2f7be7('0x27')]=function(_0x117f6b){const _0x4211da=_0x2f7be7;try{!_[_0x4211da('0x19')](dials[_0x117f6b[_0x4211da('0x9')]])&&(dials[_0x117f6b['uniqueid']][_0x4211da('0x14')]=_0x117f6b[_0x4211da('0x14')],_0x117f6b[_0x4211da('0x14')]==_0x4211da('0x7')&&(dials[_0x117f6b['uniqueid']]=_['assign'](dials[_0x117f6b[_0x4211da('0x9')]],_0x117f6b),dials[_0x117f6b['uniqueid']][_0x4211da('0x8')]=utils[_0x4211da('0x1b')](),dials[_0x117f6b[_0x4211da('0x9')]][_0x4211da('0x24')]=_0x4211da('0x4')));}catch(_0x7c5d77){utils[_0x4211da('0x10')](_0x7c5d77['stack']);}},exports[_0x2f7be7('0x16')]=function(_0x11f947){const _0x206781=_0x2f7be7;try{!_[_0x206781('0x19')](dials[_0x11f947[_0x206781('0x9')]])&&(dials[_0x11f947['uniqueid']]=_['assign'](dials[_0x11f947['uniqueid']],{'endtime':utils[_0x206781('0x1b')](),'lastevent':_0x206781('0x2')}),dials[_0x11f947[_0x206781('0x9')]][_0x206781('0x17')]=utils[_0x206781('0xc')](dials[_0x11f947[_0x206781('0x9')]][_0x206781('0xe')],dials[_0x11f947[_0x206781('0x9')]]['starttime']),dials[_0x11f947['uniqueid']][_0x206781('0x26')]=utils['diffTime'](dials[_0x11f947[_0x206781('0x9')]][_0x206781('0x8')]||dials[_0x11f947[_0x206781('0x9')]][_0x206781('0xe')],dials[_0x11f947[_0x206781('0x9')]][_0x206781('0x0')]),dials[_0x11f947[_0x206781('0x9')]][_0x206781('0x15')]=dials[_0x11f947[_0x206781('0x9')]][_0x206781('0x8')]?utils[_0x206781('0xc')](dials[_0x11f947[_0x206781('0x9')]][_0x206781('0xe')],dials[_0x11f947[_0x206781('0x9')]][_0x206781('0x8')]):0x0,writeDB(dials[_0x11f947['uniqueid']]));}catch(_0x4756f2){utils['error'](_0x4756f2[_0x206781('0x21')]);}}; \ No newline at end of file +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 diff --git a/server/services/xdr/index.js b/server/services/xdr/index.js index 70b2ebe..85d6b4a 100644 --- a/server/services/xdr/index.js +++ b/server/services/xdr/index.js @@ -1 +1 @@ -const a1223_0x3250=['agentcalled','newstate','port','queuecallerleave','./utils','username','../../globals','queuecallerjoin','keepConnected','xdr','info','./calls.controller','error','hangup','attendedtransfer','disabled','devicestatechange','dialbegin','agentcomplete','shutdown','musiconholdstart','dialend','managerevent','agentconnect','cdr','asterisk','queuecallerabandon','blindtransfer','newchannel','./queues.controller','newexten','./recordings.controller','password','close','./core.controller','varset','./dials.controller','musiconholdstop','asterisk-manager','agentringnoanswer'];(function(_0x32c5a1,_0x3250ce){const _0xa1e727=function(_0x577817){while(--_0x577817){_0x32c5a1['push'](_0x32c5a1['shift']());}};_0xa1e727(++_0x3250ce);}(a1223_0x3250,0x1af));const a1223_0xa1e7=function(_0x32c5a1,_0x3250ce){_0x32c5a1=_0x32c5a1-0x0;let _0xa1e727=a1223_0x3250[_0x32c5a1];return _0xa1e727;};const _0x3c0c51=a1223_0xa1e7;require(_0x3c0c51('0xf'));const AsteriskManager=require(_0x3c0c51('0x7')),config=require('../../config/environment'),utils=require(_0x3c0c51('0xd')),ami=new AsteriskManager(config[_0x3c0c51('0x22')][_0x3c0c51('0xb')],config[_0x3c0c51('0x22')]['ip'],config[_0x3c0c51('0x22')][_0x3c0c51('0xe')],config[_0x3c0c51('0x22')][_0x3c0c51('0x1')],!![]);ami[_0x3c0c51('0x11')]();if(config[_0x3c0c51('0x12')]&&config[_0x3c0c51('0x12')][_0x3c0c51('0x18')])utils[_0x3c0c51('0x13')]('XDR\x20DISABLED');else{const agents=require('./agents.controller'),calls=require(_0x3c0c51('0x14')),queues=require(_0x3c0c51('0x26')),recordings=require(_0x3c0c51('0x0')),members=require('./members.controller'),dials=require(_0x3c0c51('0x5')),transfers=require('./transfers.controller'),core=require(_0x3c0c51('0x3'));ami['on']('connect',core['connect']),ami['on'](_0x3c0c51('0x1c'),core[_0x3c0c51('0x1c')]),ami['on']('fullybooted',core['fullybooted']),ami['on'](_0x3c0c51('0x15'),core[_0x3c0c51('0x15')]),ami['on']('close',core[_0x3c0c51('0x2')]),ami['on'](_0x3c0c51('0x1f'),core[_0x3c0c51('0x1f')]),ami['on']('devicestatechange',function(_0x577817){const _0x5cdbbe=_0x3c0c51;try{members[_0x5cdbbe('0x19')](_0x577817);}catch(_0x5017e8){utils[_0x5cdbbe('0x15')](_0x5017e8);}}),ami['on'](_0x3c0c51('0x9'),function(_0x5f1105){const _0xb9453=_0x3c0c51;try{agents[_0xb9453('0x9')](_0x5f1105);}catch(_0x2bb733){utils[_0xb9453('0x15')](_0x2bb733);}}),ami['on'](_0x3c0c51('0x8'),function(_0x45e98b){const _0x4097a7=_0x3c0c51;try{agents[_0x4097a7('0x8')](_0x45e98b);}catch(_0x4d9dc8){utils[_0x4097a7('0x15')](_0x4d9dc8);}}),ami['on'](_0x3c0c51('0x20'),function(_0x4ac57e){const _0x3acc31=_0x3c0c51;try{agents[_0x3acc31('0x20')](_0x4ac57e),queues[_0x3acc31('0x20')](_0x4ac57e);}catch(_0x44626a){utils[_0x3acc31('0x15')](_0x44626a);}}),ami['on'](_0x3c0c51('0x1b'),function(_0x5d5104){const _0x2fc060=_0x3c0c51;try{agents[_0x2fc060('0x1b')](_0x5d5104),queues['agentcomplete'](_0x5d5104),members[_0x2fc060('0x1b')](_0x5d5104);}catch(_0x4d0495){utils[_0x2fc060('0x15')](_0x4d0495);}}),ami['on']('queuecallerabandon',function(_0x4cca7a){const _0x20a234=_0x3c0c51;try{agents[_0x20a234('0x23')](_0x4cca7a),queues[_0x20a234('0x23')](_0x4cca7a);}catch(_0x3e965e){utils[_0x20a234('0x15')](_0x3e965e);}}),ami['on'](_0x3c0c51('0x10'),function(_0x394666){const _0x35b536=_0x3c0c51;try{queues[_0x35b536('0x10')](_0x394666),recordings[_0x35b536('0x10')](_0x394666);}catch(_0x3363b9){utils['error'](_0x3363b9);}}),ami['on'](_0x3c0c51('0xc'),function(_0x43b4c4){const _0x4b95b6=_0x3c0c51;try{queues[_0x4b95b6('0xc')](_0x43b4c4);}catch(_0x3c8a04){utils[_0x4b95b6('0x15')](_0x3c8a04);}}),ami['on'](_0x3c0c51('0x1d'),function(_0x4572b5){const _0x1bd92c=_0x3c0c51;try{queues[_0x1bd92c('0x1d')](_0x4572b5),calls[_0x1bd92c('0x1d')](_0x4572b5);}catch(_0x324bd8){utils[_0x1bd92c('0x15')](_0x324bd8);}}),ami['on'](_0x3c0c51('0x6'),function(_0x43c79c){const _0xb93a2d=_0x3c0c51;try{queues[_0xb93a2d('0x6')](_0x43c79c),calls[_0xb93a2d('0x6')](_0x43c79c);}catch(_0x175bac){utils[_0xb93a2d('0x15')](_0x175bac);}}),ami['on']('newstate',function(_0x5d67e9){const _0x8f907=_0x3c0c51;try{calls[_0x8f907('0xa')](_0x5d67e9),recordings[_0x8f907('0xa')](_0x5d67e9);}catch(_0x4db77c){utils[_0x8f907('0x15')](_0x4db77c);}}),ami['on']('hangup',function(_0xf08317){const _0x29a6ae=_0x3c0c51;try{calls['hangup'](_0xf08317),recordings[_0x29a6ae('0x16')](_0xf08317),dials[_0x29a6ae('0x16')](_0xf08317),agents[_0x29a6ae('0x16')](_0xf08317),queues[_0x29a6ae('0x16')](_0xf08317);}catch(_0xa6763b){utils[_0x29a6ae('0x15')](_0xa6763b);}}),ami['on'](_0x3c0c51('0x21'),function(_0x40bcf0){const _0x4e5ebb=_0x3c0c51;try{members[_0x4e5ebb('0x21')](_0x40bcf0);}catch(_0x281def){utils['error'](_0x281def);}}),ami['on'](_0x3c0c51('0x24'),function(_0x24e03a){const _0x3807bc=_0x3c0c51;try{queues[_0x3807bc('0x24')](_0x24e03a),agents['blindtransfer'](_0x24e03a),transfers[_0x3807bc('0x24')](_0x24e03a);}catch(_0x3c4876){utils['error'](_0x3c4876);}}),ami['on']('attendedtransfer',function(_0x463806){const _0x548345=_0x3c0c51;try{queues[_0x548345('0x17')](_0x463806),transfers[_0x548345('0x17')](_0x463806),agents[_0x548345('0x17')](_0x463806),calls[_0x548345('0x17')](_0x463806);}catch(_0x54a07b){utils[_0x548345('0x15')](_0x54a07b);}}),ami['on']('varset',function(_0x35d2eb){const _0x4834d=_0x3c0c51;try{queues['varset'](_0x35d2eb),recordings[_0x4834d('0x4')](_0x35d2eb),calls[_0x4834d('0x4')](_0x35d2eb),dials['varset'](_0x35d2eb);}catch(_0x20a2a1){utils['error'](_0x20a2a1);}}),ami['on']('newexten',function(_0x122f9c){const _0x1e98ec=_0x3c0c51;try{calls[_0x1e98ec('0x27')](_0x122f9c),recordings['newexten'](_0x122f9c),dials[_0x1e98ec('0x27')](_0x122f9c);}catch(_0x54836a){utils[_0x1e98ec('0x15')](_0x54836a);}}),ami['on'](_0x3c0c51('0x25'),function(_0x242270){const _0x3da186=_0x3c0c51;try{calls['newchannel'](_0x242270),recordings[_0x3da186('0x25')](_0x242270);}catch(_0x27de5f){utils['error'](_0x27de5f);}}),ami['on'](_0x3c0c51('0x1a'),function(_0x1e1497){const _0xac1a30=_0x3c0c51;try{dials[_0xac1a30('0x1a')](_0x1e1497);}catch(_0x4c155b){utils[_0xac1a30('0x15')](_0x4c155b);}}),ami['on'](_0x3c0c51('0x1e'),function(_0x25eb8e){const _0x4fc18e=_0x3c0c51;try{dials[_0x4fc18e('0x1e')](_0x25eb8e);}catch(_0x2ff0cd){utils[_0x4fc18e('0x15')](_0x2ff0cd);}});} \ No newline at end of file +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 diff --git a/server/services/xdr/members.controller.js b/server/services/xdr/members.controller.js index 8bb6062..46b1684 100644 --- a/server/services/xdr/members.controller.js +++ b/server/services/xdr/members.controller.js @@ -1 +1 @@ -const a1224_0x8e6c=['queue','lodash','channel','CreateMemberReport','type','cdr','split','Local/_attended@transfer','util','error','data3','diffTime','exitAt','info','enterAt','internal','BUSY','isNil','request','source','uniqueid','Queue:','device','data1','then','now','assign','data2','duration','getUserByInterface','name','format','interface','startsWith','catch','membername','some','destination','agent','INUSE','destinationchannel','MEMBER|%s|%s|%s|%s|%s|%s'];(function(_0x232463,_0x8e6ca5){const _0x4f8b32=function(_0x167c82){while(--_0x167c82){_0x232463['push'](_0x232463['shift']());}};_0x4f8b32(++_0x8e6ca5);}(a1224_0x8e6c,0x1e9));const a1224_0x4f8b=function(_0x232463,_0x8e6ca5){_0x232463=_0x232463-0x0;let _0x4f8b32=a1224_0x8e6c[_0x232463];return _0x4f8b32;};const _0x52ae34=a1224_0x4f8b;'use strict';const _=require(_0x52ae34('0x10')),util=require(_0x52ae34('0x17')),utils=require('./utils'),members={},exclude=[_0x52ae34('0x16'),_0x52ae34('0x24')];function writeDB(_0x167c82){const _0x4e6a69=_0x52ae34;utils[_0x4e6a69('0x1c')](util[_0x4e6a69('0x4')](_0x4e6a69('0xe'),_0x167c82[_0x4e6a69('0x23')],_0x167c82[_0x4e6a69('0x5')],_0x167c82[_0x4e6a69('0x11')],_0x167c82[_0x4e6a69('0x0')],_0x167c82[_0x4e6a69('0x8')],_0x167c82['type'])),_0x167c82['interface']&&utils[_0x4e6a69('0x2')](_0x167c82['interface'])[_0x4e6a69('0x27')](function(_0x42a0b8){const _0x26b9b8=_0x4e6a69;_0x42a0b8?(_0x167c82[_0x26b9b8('0x8')]=_0x42a0b8[_0x26b9b8('0x3')],_0x167c82[_0x26b9b8('0x1e')]=_0x42a0b8[_0x26b9b8('0x1e')],utils[_0x26b9b8('0x21')]('CreateMemberReport',_0x167c82)):utils['getUserByName'](_0x167c82[_0x26b9b8('0x5')][_0x26b9b8('0x15')]('/')[0x1])[_0x26b9b8('0x27')](function(_0x42e063){const _0x430e52=_0x26b9b8;_0x42e063&&(_0x167c82[_0x430e52('0x8')]=_0x42e063[_0x430e52('0x3')],_0x167c82[_0x430e52('0x1e')]=_0x42e063[_0x430e52('0x1e')],utils['request'](_0x430e52('0x12'),_0x167c82));});})[_0x4e6a69('0x7')](function(_0x6a98c1){const _0x3e5221=_0x4e6a69;utils[_0x3e5221('0x18')](_0x6a98c1);}),delete members[_0x167c82[_0x4e6a69('0x5')]];}function startsWith(_0x4ada14,_0xe0cb83){const _0x153ba0=_0x52ae34;return _[_0x153ba0('0x9')](_0x4ada14,function(_0x27ee00){const _0x51ae53=_0x153ba0;return _[_0x51ae53('0x6')](_0xe0cb83,_0x27ee00);});}exports['devicestatechange']=function(_0x84243f){const _0x5778d2=_0x52ae34;switch(_0x84243f['state']){case _0x5778d2('0xc'):case _0x5778d2('0x1f'):!startsWith(exclude,_0x84243f[_0x5778d2('0x25')])&&(members[_0x84243f['device']]={'channel':'voice','interface':_0x84243f['device'],'type':'TALKING','enterAt':utils[_0x5778d2('0x28')](),'role':_0x5778d2('0xb')});break;case'NOT_INUSE':!_[_0x5778d2('0x20')](members[_0x84243f[_0x5778d2('0x25')]])&&(members[_0x84243f[_0x5778d2('0x25')]][_0x5778d2('0x1b')]=utils[_0x5778d2('0x28')](),members[_0x84243f[_0x5778d2('0x25')]][_0x5778d2('0x1')]=utils[_0x5778d2('0x1a')](members[_0x84243f['device']]['exitAt'],members[_0x84243f[_0x5778d2('0x25')]][_0x5778d2('0x1d')]),members[_0x84243f[_0x5778d2('0x25')]][_0x5778d2('0x23')]&&writeDB(members[_0x84243f[_0x5778d2('0x25')]]));break;default:break;}},exports['agentcomplete']=function(_0x377379){const _0x24992e=_0x52ae34;!_[_0x24992e('0x20')](members[_0x377379[_0x24992e('0x5')]])&&(members[_0x377379[_0x24992e('0x5')]]=_['assign'](members[_0x377379[_0x24992e('0x5')]],{'data4':_0x377379[_0x24992e('0xf')],'uniqueid':_0x377379[_0x24992e('0x23')]}));},exports[_0x52ae34('0x14')]=function(_0x57aa66){const _0x217643=_0x52ae34;if(_0x57aa66['channel']){const _0x524fc9=_0x57aa66['channel'][_0x217643('0x15')]('-')[0x0];!_[_0x217643('0x20')](members[_0x524fc9])&&(members[_0x524fc9]=_['assign'](members[_0x524fc9],{'data1':members[_0x524fc9][_0x217643('0x26')]||_0x57aa66[_0x217643('0x13')],'data2':members[_0x524fc9][_0x217643('0x0')]||_0x57aa66['source'],'data3':members[_0x524fc9][_0x217643('0x19')]||_0x57aa66[_0x217643('0xa')],'uniqueid':members[_0x524fc9][_0x217643('0x23')]||_0x57aa66[_0x217643('0x23')]}),members[_0x524fc9]['exitAt']&&writeDB(members[_0x524fc9]));}if(_0x57aa66[_0x217643('0xd')]){const _0x4dd46d=_0x57aa66[_0x217643('0xd')][_0x217643('0x15')]('-')[0x0];!_[_0x217643('0x20')](members[_0x4dd46d])&&(members[_0x4dd46d]=_[_0x217643('0x29')](members[_0x4dd46d],{'data1':members[_0x4dd46d]['data1']||_0x57aa66['type'],'data2':members[_0x4dd46d]['data2']||_0x57aa66[_0x217643('0x22')],'data3':members[_0x4dd46d][_0x217643('0x19')]||_0x57aa66[_0x217643('0xa')],'uniqueid':members[_0x4dd46d][_0x217643('0x23')]||_0x57aa66['uniqueid']}),members[_0x4dd46d]['exitAt']&&writeDB(members[_0x4dd46d]));}}; \ No newline at end of file +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 diff --git a/server/services/xdr/queues.controller.js b/server/services/xdr/queues.controller.js index d719f32..0ae5f37 100644 --- a/server/services/xdr/queues.controller.js +++ b/server/services/xdr/queues.controller.js @@ -1 +1 @@ -const a1225_0x2d8d=['ATTENDEDTRANSFER','error','transfertargetuniqueid','EXITWITHKEY','queue','connectedlinename','getVoiceQueueByName','util','queuecallerleave','varset','membername','then','isNil','transfereduniqueid','diffTime','assign','secondtransfereruniqueid','./utils','queuecallerabandonAt','musiconholdstop','connectedlinenum','origtransfererlinkedid','secondtransfererexten','queuecallercomplete','CreateVoiceQueueReport','extension','ATTENDED','holdtime','queuecallerenterreason','COMPLETEDBYAGENT','count','accountcode','stack','queuecallerexitreason','queuecallerjoin','clone','request','queuecallerjoinAt','toUpperCase','hangup','uniqueid','COMPLETEDBY','variable','info','calleridnum','calleridname','agentconnect','queuecallercompleteAt','transfertargetlinkedid','origtransfereruniqueid','agentcomplete','blindtransfer','transfereelinkedid','value','secondtransfererlinkedid','transferexten','transfer','format','position','queuestatus','mohtime','queuecallerexit','queuecallerleaveAt','queuecallerexitAt','BLIND','reason','origtransfererexten','lastAssignedTo','transfertype','type','musiconholdstartAt','queuecallerabandon','transferuniqueid','transfereeuniqueid','now'];(function(_0x3629d5,_0x2d8d4e){const _0x335507=function(_0x245a84){while(--_0x245a84){_0x3629d5['push'](_0x3629d5['shift']());}};_0x335507(++_0x2d8d4e);}(a1225_0x2d8d,0x18e));const a1225_0x3355=function(_0x3629d5,_0x2d8d4e){_0x3629d5=_0x3629d5-0x0;let _0x335507=a1225_0x2d8d[_0x3629d5];return _0x335507;};const _0x3cb72f=a1225_0x3355;'use strict';const _=require('lodash'),util=require(_0x3cb72f('0x3b')),utils=require(_0x3cb72f('0x45')),queues={};function writeDB(_0x245a84){const _0xd6eab4=_0x3cb72f;utils[_0xd6eab4('0x14')](util[_0xd6eab4('0x22')]('QUEUE|%s|%s|%s|%s|%s|%s|%s',_0x245a84[_0xd6eab4('0x11')],_0x245a84['channel'],_0x245a84[_0xd6eab4('0x38')],_0x245a84[_0xd6eab4('0x2c')],_0x245a84[_0xd6eab4('0x15')],_0x245a84['accountcode'],_0x245a84[_0xd6eab4('0xa')])),_0x245a84[_0xd6eab4('0x38')]?utils[_0xd6eab4('0x3a')](_0x245a84['queue'])[_0xd6eab4('0x3f')](function(_0x65e7e0){const _0x5a0834=_0xd6eab4;_0x65e7e0&&(_0x245a84[_0x5a0834('0x2e')]=_0x65e7e0[_0x5a0834('0x2e')]),utils[_0x5a0834('0xd')]('CreateVoiceQueueReport',_0x245a84);}):utils['request'](_0xd6eab4('0x1'),_0x245a84),_0x245a84[_0xd6eab4('0x41')]?delete queues[_0x245a84[_0xd6eab4('0x41')]]:delete queues[_0x245a84['uniqueid']];}exports[_0x3cb72f('0xb')]=function(_0x48d44d){const _0x26e27d=_0x3cb72f;queues[_0x48d44d[_0x26e27d('0x11')]]=_[_0x26e27d('0x43')](_0x48d44d,{'originalposition':_0x48d44d[_0x26e27d('0x23')],'queuecallerjoinAt':utils[_0x26e27d('0x33')](),'mohtime':0x0});},exports[_0x3cb72f('0x10')]=function(_0x35fd49){const _0x158f14=_0x3cb72f;!_['isNil'](queues[_0x35fd49[_0x158f14('0x11')]])&&(queues[_0x35fd49['uniqueid']][_0x158f14('0x27')]?(!queues[_0x35fd49[_0x158f14('0x11')]][_0x158f14('0x30')]&&!queues[_0x35fd49[_0x158f14('0x11')]][_0x158f14('0x26')]&&(queues[_0x35fd49[_0x158f14('0x11')]]['queuecallercomplete']=!![],queues[_0x35fd49[_0x158f14('0x11')]][_0x158f14('0x18')]=utils[_0x158f14('0x33')](),queues[_0x35fd49[_0x158f14('0x11')]][_0x158f14('0xa')]=_0x158f14('0x6')),writeDB(queues[_0x35fd49[_0x158f14('0x11')]])):queues[_0x35fd49[_0x158f14('0x11')]]['transfereduniqueid']&&(queues[queues[_0x35fd49[_0x158f14('0x11')]]['transfereduniqueid']]=queues[_0x35fd49['uniqueid']],queues[queues[_0x35fd49['uniqueid']][_0x158f14('0x41')]][_0x158f14('0x5')]=0x2,delete queues[_0x35fd49[_0x158f14('0x11')]]));},exports[_0x3cb72f('0x3d')]=function(_0x54cbce){const _0x36bcca=_0x3cb72f;if(!_[_0x36bcca('0x40')](_0x54cbce[_0x36bcca('0x13')][_0x36bcca('0x24')])&&_0x54cbce[_0x36bcca('0x1e')]['toUpperCase']()!=='CONTINUE')!_[_0x36bcca('0x40')](queues[_0x54cbce[_0x36bcca('0x11')]])&&(queues[_0x54cbce['uniqueid']][_0x36bcca('0x30')]=![],queues[_0x54cbce[_0x36bcca('0x11')]][_0x36bcca('0x46')]=null,queues[_0x54cbce[_0x36bcca('0x11')]][_0x36bcca('0x26')]=!![],queues[_0x54cbce['uniqueid']][_0x36bcca('0x28')]=utils[_0x36bcca('0x33')](),queues[_0x54cbce[_0x36bcca('0x11')]]['queuecallerexitreason']=_0x54cbce[_0x36bcca('0x1e')][_0x36bcca('0xf')](),writeDB(queues[_0x54cbce[_0x36bcca('0x11')]]));else!_[_0x36bcca('0x40')](_0x54cbce[_0x36bcca('0x13')]['queueposition'])&&(!_[_0x36bcca('0x40')](queues[_0x54cbce[_0x36bcca('0x11')]])&&!queues[_0x54cbce[_0x36bcca('0x11')]][_0x36bcca('0x30')]&&(queues[_0x54cbce[_0x36bcca('0x11')]][_0x36bcca('0x30')]=![],queues[_0x54cbce['uniqueid']][_0x36bcca('0x46')]=null,queues[_0x54cbce[_0x36bcca('0x11')]][_0x36bcca('0x26')]=!![],queues[_0x54cbce['uniqueid']][_0x36bcca('0x28')]=utils[_0x36bcca('0x33')](),queues[_0x54cbce['uniqueid']][_0x36bcca('0xa')]=_0x36bcca('0x37')));},exports[_0x3cb72f('0x30')]=function(_0x3c2d94){const _0x859390=_0x3cb72f;!_[_0x859390('0x40')](queues[_0x3c2d94[_0x859390('0x11')]])&&(queues[_0x3c2d94[_0x859390('0x11')]][_0x859390('0x26')]=![],queues[_0x3c2d94[_0x859390('0x11')]][_0x859390('0x28')]=null,queues[_0x3c2d94[_0x859390('0x11')]]['queuecallerabandon']=!![],queues[_0x3c2d94[_0x859390('0x11')]][_0x859390('0x46')]=utils[_0x859390('0x33')](),queues[_0x3c2d94[_0x859390('0x11')]][_0x859390('0xa')]='ABANDONED');},exports['queuecallerleave']=function(_0x34a6e2){const _0x430456=_0x3cb72f;!_['isNil'](queues[_0x34a6e2[_0x430456('0x11')]])&&(queues[_0x34a6e2[_0x430456('0x11')]][_0x430456('0x3c')]=!![],queues[_0x34a6e2[_0x430456('0x11')]]['queuecallerleaveAt']=utils[_0x430456('0x33')](),queues[_0x34a6e2[_0x430456('0x11')]]['holdtime']=utils['diffTime'](queues[_0x34a6e2[_0x430456('0x11')]][_0x430456('0x27')],queues[_0x34a6e2[_0x430456('0x11')]][_0x430456('0xe')]),queues[_0x34a6e2[_0x430456('0x11')]]['position']=_0x34a6e2[_0x430456('0x23')],queues[_0x34a6e2[_0x430456('0x11')]][_0x430456('0x7')]=_0x34a6e2[_0x430456('0x7')],queues[_0x34a6e2['uniqueid']][_0x430456('0x48')]=_0x34a6e2['connectedlinenum'],queues[_0x34a6e2[_0x430456('0x11')]][_0x430456('0x39')]=_0x34a6e2[_0x430456('0x39')]);},exports[_0x3cb72f('0x17')]=function(_0x18a515){const _0x46d591=_0x3cb72f;!_[_0x46d591('0x40')](queues[_0x18a515['uniqueid']])&&(queues[_0x18a515[_0x46d591('0x11')]][_0x46d591('0x30')]=![],queues[_0x18a515[_0x46d591('0x11')]][_0x46d591('0x30')]=![],queues[_0x18a515[_0x46d591('0x11')]][_0x46d591('0x46')]=null,queues[_0x18a515['uniqueid']][_0x46d591('0x26')]=![],queues[_0x18a515[_0x46d591('0x11')]]['queuecallerexitreason']=null,queues[_0x18a515[_0x46d591('0x11')]]['queuecallerexitAt']=null,queues[_0x18a515['uniqueid']]['assigned']=!![],queues[_0x18a515['uniqueid']][_0x46d591('0x8')]=_0x18a515['destaccountcode'],queues[_0x18a515['uniqueid']]['lastAssignedTo']=_0x18a515[_0x46d591('0x3e')]);},exports[_0x3cb72f('0x1b')]=function(_0x3f1277){const _0x5963c0=_0x3cb72f;!_[_0x5963c0('0x40')](queues[_0x3f1277[_0x5963c0('0x11')]])&&(queues[_0x3f1277['uniqueid']][_0x5963c0('0x27')]&&(queues[_0x3f1277[_0x5963c0('0x11')]][_0x5963c0('0x30')]=![],queues[_0x3f1277[_0x5963c0('0x11')]]['queuecallerabandon']=![],queues[_0x3f1277[_0x5963c0('0x11')]]['queuecallerabandonAt']=null,queues[_0x3f1277[_0x5963c0('0x11')]][_0x5963c0('0x26')]=![],queues[_0x3f1277[_0x5963c0('0x11')]][_0x5963c0('0x28')]=null,queues[_0x3f1277[_0x5963c0('0x11')]]['assigned']=!![],queues[_0x3f1277['uniqueid']][_0x5963c0('0x2c')]=_0x3f1277[_0x5963c0('0x3e')],queues[_0x3f1277[_0x5963c0('0x11')]][_0x5963c0('0x0')]=!![],queues[_0x3f1277[_0x5963c0('0x11')]][_0x5963c0('0x18')]=utils[_0x5963c0('0x33')](),_0x3f1277[_0x5963c0('0x2a')]==_0x5963c0('0x21')?!queues[_0x3f1277['uniqueid']][_0x5963c0('0x21')]&&(queues[_0x3f1277[_0x5963c0('0x11')]][_0x5963c0('0xa')]='TRANSFER'):queues[_0x3f1277[_0x5963c0('0x11')]][_0x5963c0('0xa')]=_0x5963c0('0x12')+_0x3f1277[_0x5963c0('0x2a')][_0x5963c0('0xf')](),writeDB(queues[_0x3f1277['uniqueid']])));},exports[_0x3cb72f('0x1c')]=function(_0x564df0){const _0x185b0d=_0x3cb72f;!_['isNil'](queues[_0x564df0[_0x185b0d('0x32')]])&&(queues[_0x564df0['transfereeuniqueid']]['transfer']=!![],queues[_0x564df0[_0x185b0d('0x32')]][_0x185b0d('0x2d')]=_0x185b0d('0x29'),queues[_0x564df0[_0x185b0d('0x32')]][_0x185b0d('0x20')]=_0x564df0[_0x185b0d('0x2')],queues[_0x564df0[_0x185b0d('0x32')]][_0x185b0d('0x31')]=_0x564df0['transfereeuniqueid'],queues[_0x564df0['transfereeuniqueid']][_0x185b0d('0xa')]='BLINDTRANSFER');},exports['attendedtransfer']=function(_0x447bc5){const _0x505e89=_0x3cb72f;try{if(_0x447bc5[_0x505e89('0x1a')]==_0x447bc5[_0x505e89('0x49')])!_['isNil'](queues[_0x447bc5[_0x505e89('0x1f')]])&&(queues[_0x447bc5[_0x505e89('0x1f')]][_0x505e89('0x21')]=!![],queues[_0x447bc5[_0x505e89('0x1f')]]['transfertype']=_0x505e89('0x3'),queues[_0x447bc5[_0x505e89('0x1f')]][_0x505e89('0x20')]=_0x447bc5[_0x505e89('0x2b')],queues[_0x447bc5[_0x505e89('0x1f')]][_0x505e89('0x31')]=_0x447bc5[_0x505e89('0x1a')],queues[_0x447bc5[_0x505e89('0x1f')]][_0x505e89('0xa')]='ATTENDEDTRANSFER'),!_[_0x505e89('0x40')](queues[_0x447bc5['origtransfererlinkedid']])&&(_0x447bc5['transfereelinkedid']&&queues[_0x447bc5[_0x505e89('0x1d')]]?(queues[_0x447bc5[_0x505e89('0x1d')]]['queuecallerenterreason']=0x1,queues[_0x447bc5[_0x505e89('0x32')]]=_['clone'](queues[_0x447bc5[_0x505e89('0x1d')]]),queues[_0x447bc5[_0x505e89('0x32')]][_0x505e89('0x41')]=_0x447bc5[_0x505e89('0x36')],queues[_0x447bc5['transfereeuniqueid']][_0x505e89('0x5')]=0x2,queues[_0x447bc5[_0x505e89('0x32')]][_0x505e89('0x15')]=queues[_0x447bc5[_0x505e89('0x1f')]][_0x505e89('0x15')],queues[_0x447bc5[_0x505e89('0x32')]][_0x505e89('0x16')]=queues[_0x447bc5[_0x505e89('0x1f')]][_0x505e89('0x16')],queues[_0x447bc5[_0x505e89('0x32')]][_0x505e89('0xe')]=utils[_0x505e89('0x33')](),queues[_0x447bc5[_0x505e89('0x32')]][_0x505e89('0x27')]=utils[_0x505e89('0x33')](),queues[_0x447bc5[_0x505e89('0x32')]][_0x505e89('0x4')]=0x0,queues[_0x447bc5[_0x505e89('0x32')]][_0x505e89('0x25')]=0x0):queues[_0x447bc5['origtransfererlinkedid']]['transfereduniqueid']=_0x447bc5['secondtransfererlinkedid']);else _0x447bc5[_0x505e89('0x44')]==_0x447bc5[_0x505e89('0x1f')]&&(!_[_0x505e89('0x40')](queues[_0x447bc5['origtransfererlinkedid']])&&(queues[_0x447bc5['origtransfererlinkedid']][_0x505e89('0x21')]=!![],queues[_0x447bc5[_0x505e89('0x49')]][_0x505e89('0x2d')]=_0x505e89('0x3'),queues[_0x447bc5[_0x505e89('0x49')]][_0x505e89('0x20')]=_0x447bc5[_0x505e89('0x4a')],queues[_0x447bc5[_0x505e89('0x49')]][_0x505e89('0x31')]=_0x447bc5[_0x505e89('0x44')],queues[_0x447bc5['origtransfererlinkedid']][_0x505e89('0xa')]=_0x505e89('0x34')),!_[_0x505e89('0x40')](queues[_0x447bc5[_0x505e89('0x1f')]])&&(_0x447bc5[_0x505e89('0x19')]&&queues[_0x447bc5[_0x505e89('0x19')]]?(queues[_0x447bc5['transfertargetlinkedid']][_0x505e89('0x5')]=0x1,queues[_0x447bc5[_0x505e89('0x36')]]=_[_0x505e89('0xc')](queues[_0x447bc5['transfertargetlinkedid']]),queues[_0x447bc5[_0x505e89('0x36')]][_0x505e89('0x41')]=_0x447bc5[_0x505e89('0x36')],queues[_0x447bc5[_0x505e89('0x36')]][_0x505e89('0x5')]=0x2,queues[_0x447bc5[_0x505e89('0x36')]][_0x505e89('0x15')]=queues[_0x447bc5[_0x505e89('0x49')]][_0x505e89('0x15')],queues[_0x447bc5[_0x505e89('0x36')]][_0x505e89('0x16')]=queues[_0x447bc5[_0x505e89('0x49')]][_0x505e89('0x16')],queues[_0x447bc5['transfertargetuniqueid']][_0x505e89('0xe')]=utils[_0x505e89('0x33')](),queues[_0x447bc5['transfertargetuniqueid']][_0x505e89('0x27')]=utils['now'](),queues[_0x447bc5[_0x505e89('0x36')]][_0x505e89('0x4')]=0x0,queues[_0x447bc5['transfertargetuniqueid']]['mohtime']=0x0):queues[_0x447bc5[_0x505e89('0x1f')]][_0x505e89('0x41')]=_0x447bc5[_0x505e89('0x49')]));}catch(_0x376f60){utils[_0x505e89('0x35')](_0x376f60[_0x505e89('0x9')]);}},exports['musiconholdstart']=function(_0x371385){const _0x29775f=_0x3cb72f;!_[_0x29775f('0x40')](queues[_0x371385[_0x29775f('0x11')]])&&(queues[_0x371385[_0x29775f('0x11')]]['musiconholdstartAt']=utils[_0x29775f('0x33')]());},exports[_0x3cb72f('0x47')]=function(_0x23b246){const _0x4ea791=_0x3cb72f;!_[_0x4ea791('0x40')](queues[_0x23b246[_0x4ea791('0x11')]])&&(!_[_0x4ea791('0x40')](queues[_0x23b246[_0x4ea791('0x11')]]['musiconholdstartAt'])&&(queues[_0x23b246[_0x4ea791('0x11')]][_0x4ea791('0x25')]+=utils[_0x4ea791('0x42')](utils[_0x4ea791('0x33')](),queues[_0x23b246['uniqueid']][_0x4ea791('0x2f')]),delete queues[_0x23b246['uniqueid']][_0x4ea791('0x2f')]));}; \ No newline at end of file +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 diff --git a/server/services/xdr/recordings.controller.js b/server/services/xdr/recordings.controller.js index 9d78c56..b30a398 100644 --- a/server/services/xdr/recordings.controller.js +++ b/server/services/xdr/recordings.controller.js @@ -1 +1 @@ -const a1226_0x2b27=['membername','lastIndexOf','application','uniqueid','CreateVoiceRecording','replace','./utils','endsWith','type','toLowerCase','variable','appdata','UserId','request','accountcode','context','push','channelstate','newchannel','then','transfer','exten','varset','isNil','outbound','linkedid','lodash','find','stack','.WAV','set','connectedlinename','forEach','value','queue','split','channel','queuecallerjoin','calleridnum','getUserByInternal','connectedlinenum','.wav49','error','calleridname','newexten'];(function(_0x47b9e2,_0x2b2717){const _0x4a321c=function(_0x5de924){while(--_0x5de924){_0x47b9e2['push'](_0x47b9e2['shift']());}};_0x4a321c(++_0x2b2717);}(a1226_0x2b27,0x1d1));const a1226_0x4a32=function(_0x47b9e2,_0x2b2717){_0x47b9e2=_0x47b9e2-0x0;let _0x4a321c=a1226_0x2b27[_0x47b9e2];return _0x4a321c;};const _0x404f70=a1226_0x4a32;'use strict';const _=require(_0x404f70('0xb')),utils=require(_0x404f70('0x24')),recordings={};function writeDB(_0x5de924){const _0x3f6f71=_0x404f70;utils['debug'](_0x5de924),_0x5de924[_0x3f6f71('0x2c')]?utils[_0x3f6f71('0x18')](_0x5de924['accountcode'])[_0x3f6f71('0x4')](function(_0x4486d0){const _0x5eb614=_0x3f6f71;_0x4486d0&&(_0x5de924[_0x5eb614('0x1e')]=_0x4486d0['name'],_0x5de924[_0x5eb614('0x2a')]=_0x4486d0['id']),utils[_0x5eb614('0x2b')](_0x5eb614('0x22'),_0x5de924);}):utils['request'](_0x3f6f71('0x22'),_0x5de924);}exports[_0x404f70('0x3')]=function(_0x5d9165){const _0x469121=_0x404f70;try{_0x5d9165[_0x469121('0x21')]==_0x5d9165[_0x469121('0xa')]&&(recordings[_0x5d9165[_0x469121('0x21')]]={'uniqueid':_0x5d9165[_0x469121('0x21')],'accountcode':_0x5d9165['accountcode'],'exten':_0x5d9165[_0x469121('0x6')],'context':_0x5d9165[_0x469121('0x0')],'channel':_0x5d9165[_0x469121('0x15')],'monitors':[]});}catch(_0x1bbd20){utils[_0x469121('0x1b')](_0x1bbd20[_0x469121('0xd')]);}},exports['newstate']=function(_0xc69ad7){const _0x21b219=_0x404f70;try{if(!_[_0x21b219('0x8')](recordings[_0xc69ad7['uniqueid']])&&_0xc69ad7[_0x21b219('0x2')]==0x6){}else!_['isNil'](recordings[_0xc69ad7[_0x21b219('0xa')]])&&_0xc69ad7[_0x21b219('0x2')]==0x6&&_0xc69ad7[_0x21b219('0x0')]!=_0x21b219('0x5')&&(recordings[_0xc69ad7[_0x21b219('0xa')]][_0x21b219('0x2c')]=_0xc69ad7[_0x21b219('0x2c')]);}catch(_0x55a7c4){utils[_0x21b219('0x1b')](_0x55a7c4['stack']);}},exports[_0x404f70('0x7')]=function(_0x1bcadb){const _0x435437=_0x404f70;try{if(!_[_0x435437('0x8')](_0x1bcadb[_0x435437('0x28')])&&!_[_0x435437('0x8')](_0x1bcadb[_0x435437('0x28')]['mixmonitor_filename'])){_[_0x435437('0x25')](_0x1bcadb['value'],_0x435437('0x1a'))&&(_0x1bcadb[_0x435437('0x12')]=_0x1bcadb[_0x435437('0x12')][_0x435437('0x23')](_0x435437('0x1a'),_0x435437('0xe')));if(recordings[_0x1bcadb[_0x435437('0xa')]]){const _0x539219=_[_0x435437('0xc')](recordings[_0x1bcadb['linkedid']]['monitors'],{'value':_0x1bcadb[_0x435437('0x12')]});_[_0x435437('0x8')](_0x539219)&&recordings[_0x1bcadb[_0x435437('0xa')]]['monitors'][_0x435437('0x1')]({'value':_0x1bcadb[_0x435437('0x12')]});}}}catch(_0x47eea0){utils[_0x435437('0x1b')](_0x47eea0[_0x435437('0xd')]);}},exports['hangup']=function(_0xdd1fb9){const _0x51477e=_0x404f70;try{!_[_0x51477e('0x8')](recordings[_0xdd1fb9[_0x51477e('0x21')]])&&(recordings[_0xdd1fb9['uniqueid']][_0x51477e('0x17')]=_0xdd1fb9[_0x51477e('0x17')],recordings[_0xdd1fb9[_0x51477e('0x21')]][_0x51477e('0x1c')]=_0xdd1fb9[_0x51477e('0x1c')],recordings[_0xdd1fb9[_0x51477e('0x21')]]['connectedlinenum']=_0xdd1fb9[_0x51477e('0x19')],recordings[_0xdd1fb9['uniqueid']][_0x51477e('0x10')]=_0xdd1fb9[_0x51477e('0x10')],recordings[_0xdd1fb9[_0x51477e('0x21')]][_0x51477e('0x26')]==_0x51477e('0x9')&&recordings[_0xdd1fb9[_0x51477e('0x21')]][_0x51477e('0x2c')]&&(recordings[_0xdd1fb9[_0x51477e('0x21')]][_0x51477e('0x19')]=recordings[_0xdd1fb9['uniqueid']][_0x51477e('0x2c')],recordings[_0xdd1fb9[_0x51477e('0x21')]][_0x51477e('0x10')]=''),recordings[_0xdd1fb9[_0x51477e('0x21')]]['monitors'][_0x51477e('0x11')](_0x2d135a=>{const _0x15212f=_0x51477e,_0x2152b0=_['clone'](recordings[_0xdd1fb9[_0x15212f('0x21')]]);_0x2152b0['value']=_0x2d135a[_0x15212f('0x12')],writeDB(_0x2152b0);}),delete recordings[_0xdd1fb9['uniqueid']]);}catch(_0x53b490){utils['error'](_0x53b490['stack']);}},exports[_0x404f70('0x1d')]=function(_0x46ee1f){const _0xce0eaa=_0x404f70;try{if(!_[_0xce0eaa('0x8')](recordings[_0x46ee1f[_0xce0eaa('0x21')]])){if(_0x46ee1f[_0xce0eaa('0x20')][_0xce0eaa('0x27')]()==_0xce0eaa('0xf')&&_['startsWith'](_0x46ee1f[_0xce0eaa('0x29')]['toLowerCase'](),'cdr')){const _0x4f6c89=_0x46ee1f[_0xce0eaa('0x29')][_0xce0eaa('0x14')]('='),_0x15875b=_0x4f6c89[0x0]['substring'](_0x4f6c89[0x0][_0xce0eaa('0x1f')]('(')+0x1,_0x4f6c89[0x0]['lastIndexOf'](')')),_0x2f4f03=_0x4f6c89[0x1];recordings[_0x46ee1f['uniqueid']][_0x15875b]=_0x2f4f03;}}}catch(_0x59e1f1){utils[_0xce0eaa('0x1b')](_0x59e1f1['stack']);}},exports[_0x404f70('0x16')]=function(_0x9be6da){const _0x5e172a=_0x404f70;try{!_[_0x5e172a('0x8')](recordings[_0x9be6da[_0x5e172a('0x21')]])&&(recordings[_0x9be6da['uniqueid']][_0x5e172a('0x13')]=_0x9be6da['queue']);}catch(_0x478abf){utils['error'](_0x478abf['stack']);}}; \ No newline at end of file +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 diff --git a/server/services/xdr/transfers.controller.js b/server/services/xdr/transfers.controller.js index 29992f3..b85d4dd 100644 --- a/server/services/xdr/transfers.controller.js +++ b/server/services/xdr/transfers.controller.js @@ -1 +1 @@ -const a1227_0x16fd=['type','CreateVoiceTransferReport','origtransfererlinkedid','attended','transfertargetchannel','transfertargetconnectedlinename','transfertargetconnectedlinenum','origtransfereraccountcode','stack','./utils','secondtransfererconnectedlinenum','origtransfererchannel','attendedtransfer','secondtransfererexten','transfertargetcalleridnum','transfertargetcalleridname','secondtransfererconnectedlinename','blindtransfer','origtransferercontext','assign','info','lodash','secondtransferercontext','util','transfertargetaccountcode','origtransfererexten','error','transfertargetexten','origtransferercalleridnum'];(function(_0x1c7f36,_0x16fdb2){const _0x2ff3c0=function(_0x4ff36a){while(--_0x4ff36a){_0x1c7f36['push'](_0x1c7f36['shift']());}};_0x2ff3c0(++_0x16fdb2);}(a1227_0x16fd,0x86));const a1227_0x2ff3=function(_0x1c7f36,_0x16fdb2){_0x1c7f36=_0x1c7f36-0x0;let _0x2ff3c0=a1227_0x16fd[_0x1c7f36];return _0x2ff3c0;};const _0x2ea4ec=a1227_0x2ff3;'use strict';const _=require(_0x2ea4ec('0x3')),util=require(_0x2ea4ec('0x5')),utils=require(_0x2ea4ec('0x14'));function writeDB(_0x4ff36a){const _0x3c0fda=_0x2ea4ec;utils[_0x3c0fda('0x2')](util['format']('TRANSFER|%s',_0x4ff36a['type'])),utils['request'](_0x3c0fda('0xc'),_0x4ff36a);}exports[_0x2ea4ec('0x1c')]=function(_0x198238){const _0x2d76cf=_0x2ea4ec;try{_0x198238[_0x2d76cf('0xb')]='blind',writeDB(_0x198238);}catch(_0x48fdd3){utils[_0x2d76cf('0x8')](_0x48fdd3[_0x2d76cf('0x13')]);}},exports[_0x2ea4ec('0x17')]=function(_0x45d46d){const _0x158dd1=_0x2ea4ec;try{_0x45d46d=_[_0x158dd1('0x1')](_0x45d46d,{'transfererchannel':_0x45d46d[_0x158dd1('0x16')],'transferercalleridnum':_0x45d46d[_0x158dd1('0xa')],'transferercalleridname':_0x45d46d['origtransferercalleridname'],'transfererconnectedlinenum':_0x45d46d[_0x158dd1('0x15')],'transfererconnectedlinename':_0x45d46d[_0x158dd1('0x1b')],'transfereraccountcode':_0x45d46d[_0x158dd1('0x12')],'transferercontext':_0x45d46d[_0x158dd1('0x4')],'transfererexten':_0x45d46d[_0x158dd1('0x18')],'transfererlinkedid':_0x45d46d[_0x158dd1('0xd')],'context':_0x45d46d[_0x158dd1('0x0')],'extension':_0x45d46d[_0x158dd1('0x7')],'type':_0x158dd1('0xe')}),_['isNil'](_0x45d46d['transfereechannel'])&&(_0x45d46d=_['assign'](_0x45d46d,{'transfereechannel':_0x45d46d[_0x158dd1('0xf')],'transfereecalleridnum':_0x45d46d[_0x158dd1('0x19')],'transfereecalleridname':_0x45d46d[_0x158dd1('0x1a')],'transfereeconnectedlinenum':_0x45d46d[_0x158dd1('0x11')],'transfereeconnectedlinename':_0x45d46d[_0x158dd1('0x10')],'transfereeaccountcode':_0x45d46d[_0x158dd1('0x6')],'transfereecontext':_0x45d46d['transfertargetcontext'],'transfereeexten':_0x45d46d[_0x158dd1('0x9')],'transfereelinkedid':_0x45d46d['transfertargetlinkedid']})),writeDB(_0x45d46d);}catch(_0x4a2a1e){utils[_0x158dd1('0x8')](_0x4a2a1e[_0x158dd1('0x13')]);}}; \ No newline at end of file +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 diff --git a/server/services/xdr/utils.js b/server/services/xdr/utils.js index bb7951f..000c778 100644 --- a/server/services/xdr/utils.js +++ b/server/services/xdr/utils.js @@ -1 +1 @@ -const a1228_0x505c=['NOTFOUND','getVoiceQueueByName','addTime','then','interface','stringify','FOUND','request','isAfter','../../config/logger','subtract','client','type','isBefore','getUserByInterface','http','stack','error','xdr','catch','name','sumTime','diff','internal','format','result','seconds','jayson/promise','GetUser','getUserByInternal','info','length','debug','acwTimeout','add','YYYY-MM-DD\x20HH:mm:ss','GETVOICEQUEUEBYNAME|'];(function(_0x5ca152,_0x505cc1){const _0x1934fc=function(_0x3196d4){while(--_0x3196d4){_0x5ca152['push'](_0x5ca152['shift']());}};_0x1934fc(++_0x505cc1);}(a1228_0x505c,0xf5));const a1228_0x1934=function(_0x5ca152,_0x505cc1){_0x5ca152=_0x5ca152-0x0;let _0x1934fc=a1228_0x505c[_0x5ca152];return _0x1934fc;};const _0x428068=a1228_0x1934;'use strict';const jayson=require(_0x428068('0x4')),moment=require('moment'),client=jayson[_0x428068('0x19')][_0x428068('0x1d')]({'port':0x2329}),logger=require(_0x428068('0x17'))(_0x428068('0x20'));exports[_0x428068('0x7')]=function(_0x3196d4){logger['info'](_0x3196d4);},exports['debug']=function(_0x122ef6){const _0x26b29f=_0x428068;logger['debug'](JSON[_0x26b29f('0x13')](_0x122ef6));},exports[_0x428068('0x1f')]=function(_0x531435){const _0x20c122=_0x428068;logger[_0x20c122('0x1f')](_0x531435[_0x20c122('0x1e')]);},exports[_0x428068('0x15')]=function(_0x2df703,_0x147250){const _0x29d034=_0x428068;return client[_0x29d034('0x15')](_0x2df703,{'body':_0x147250})[_0x29d034('0x11')](function(_0x4c061f){const _0x566c04=_0x29d034;logger[_0x566c04('0x9')](JSON['stringify'](_0x4c061f));})[_0x29d034('0x21')](function(_0x374abe){const _0x43b01e=_0x29d034;logger[_0x43b01e('0x1f')](_0x374abe['stack']);});};function getUser(_0x270991){const _0x43ffab=_0x428068;return client[_0x43ffab('0x15')](_0x43ffab('0x5'),{'options':{'raw':!![],'attributes':['id',_0x43ffab('0x0'),_0x43ffab('0x22'),_0x43ffab('0x12')],'where':_0x270991,'limit':0x1}})['then'](function(_0xf2cf01){const _0x35a6be=_0x43ffab;return logger['info']('GETUSER|'+JSON[_0x35a6be('0x13')](_0x270991)+'|'+(_0xf2cf01[_0x35a6be('0x2')][_0x35a6be('0x8')]?_0x35a6be('0x14'):_0x35a6be('0xe'))),_0xf2cf01[_0x35a6be('0x2')][_0x35a6be('0x8')]?_0xf2cf01[_0x35a6be('0x2')][0x0]:null;});}exports[_0x428068('0x6')]=function(_0x3fe9ff){return new Promise(function(_0x213f08){const _0x27250e=a1228_0x1934;return _0x3fe9ff?getUser({'internal':_0x3fe9ff})[_0x27250e('0x11')](function(_0x546d2d){return _0x213f08(_0x546d2d);})[_0x27250e('0x21')](function(_0x4999a0){const _0x10ea19=_0x27250e;return logger['error'](_0x4999a0[_0x10ea19('0x1e')]),_0x213f08(null);}):_0x213f08(null);});},exports[_0x428068('0x1c')]=function(_0x1fee10){return new Promise(function(_0x3f1524){const _0x5d0a2d=a1228_0x1934;return _0x1fee10?getUser({'interface':_0x1fee10})[_0x5d0a2d('0x11')](function(_0x439723){return _0x3f1524(_0x439723);})[_0x5d0a2d('0x21')](function(_0x1481d5){const _0x13a6ea=_0x5d0a2d;return logger[_0x13a6ea('0x1f')](_0x1481d5[_0x13a6ea('0x1e')]),_0x3f1524(null);}):_0x3f1524(null);});},exports['getUserByName']=function(_0x510eb8){return new Promise(function(_0x120b9a){const _0x68d77d=a1228_0x1934;return _0x510eb8?getUser({'name':_0x510eb8})['then'](function(_0x1c4f5f){return _0x120b9a(_0x1c4f5f);})[_0x68d77d('0x21')](function(_0x4416ed){const _0x83185f=_0x68d77d;return logger['error'](_0x4416ed[_0x83185f('0x1e')]),_0x120b9a(null);}):_0x120b9a(null);});},exports[_0x428068('0xf')]=function(_0x12184c){return new Promise(function(_0x3118fe){const _0xb65658=a1228_0x1934;return _0x12184c?client[_0xb65658('0x15')]('GetVoiceQueue',{'options':{'raw':!![],'attributes':['id',_0xb65658('0x22'),_0xb65658('0x1a'),'acw',_0xb65658('0xa')],'where':{'name':_0x12184c},'limit':0x1}})['then'](function(_0x30b6cc){const _0xa62c65=_0xb65658;return logger[_0xa62c65('0x7')](_0xa62c65('0xd')+_0x12184c+'|'+(_0x30b6cc['result'][_0xa62c65('0x8')]?'FOUND':_0xa62c65('0xe'))),_0x3118fe(_0x30b6cc['result'][_0xa62c65('0x8')]?_0x30b6cc[_0xa62c65('0x2')][0x0]:null);})['catch'](function(_0xfa498c){const _0x3f6af3=_0xb65658;return logger[_0x3f6af3('0x1f')](_0xfa498c['stack']),_0x3118fe(null);}):_0x3118fe(null);});},exports[_0x428068('0x10')]=function(_0x17ecb0,_0x4da271){const _0xee0a34=_0x428068;return moment(_0x17ecb0)[_0xee0a34('0xb')](_0x4da271,'seconds')['format'](_0xee0a34('0xc'));},exports['subtractTime']=function(_0xabfca0,_0x516db7){const _0x548cb6=_0x428068;return moment(_0xabfca0)[_0x548cb6('0x18')](_0x516db7,_0x548cb6('0x3'))[_0x548cb6('0x1')](_0x548cb6('0xc'));},exports['diffTime']=function(_0xfbb192,_0x577e14){const _0x355ab4=_0x428068;return moment(_0xfbb192)[_0x355ab4('0x24')](moment(_0x577e14),_0x355ab4('0x3'));},exports[_0x428068('0x23')]=function(_0x15df12,_0x5b5575){return parseInt(_0x15df12,0xa)+parseInt(_0x5b5575,0xa);},exports['now']=function(){const _0x1ba7b3=_0x428068;return moment()['format'](_0x1ba7b3('0xc'));},exports['isAfter']=function(_0x4c20fa,_0x1db4d6){const _0x4935d6=_0x428068;return _0x1db4d6?moment(_0x4c20fa)[_0x4935d6('0x16')](_0x1db4d6):!![];},exports[_0x428068('0x1b')]=function(_0x59b09d,_0x159215){if(_0x159215)return moment(_0x59b09d)['isBefore'](_0x159215);else return _0x59b09d?!![]:![];}; \ No newline at end of file +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